(self.webpackChunkClientApp=self.webpackChunkClientApp||[]).push([["main"],{3439:(m,y,b)=>{"use strict";var T={};b.r(T),b.d(T,{attrToBoolean:()=>$p,attrToNumber:()=>ud,attrToString:()=>Mg,defaultComparator:()=>t_,exists:()=>rr,jsonEquals:()=>Cu,makeNull:()=>vp,missing:()=>$o,missingOrEmpty:()=>_c,referenceCompare:()=>a1,toStringOrNull:()=>Up,values:()=>dd});var C={};b.r(C),b.d(C,{cloneObject:()=>U,copyPropertiesIfPresent:()=>In,copyPropertyIfPresent:()=>Li,deepCloneDefinition:()=>Ue,deepCloneObject:()=>ve,deepFreeze:()=>l1,get:()=>Yp,getAllKeysInObjects:()=>Co,getAllValuesInObject:()=>ls,getProperty:()=>et,getValueUsingField:()=>v0,isNonNullObject:()=>Rf,iterateObject:()=>Vo,mergeDeep:()=>Es,missingOrEmptyObject:()=>wu,removeAllReferences:()=>pd,set:()=>mh,setProperty:()=>It});var E={};b.r(E),b.d(E,{callIfPresent:()=>Of,compose:()=>oC,debounce:()=>hd,doOnce:()=>sa,executeAfter:()=>hm,executeInAWhile:()=>c1,executeNextVMTurn:()=>b0,getFunctionName:()=>Um,getFunctionParameters:()=>oa,isFunction:()=>y0,noop:()=>Wh,throttle:()=>u1,waitUntil:()=>d1});var D={};b.r(D),b.d(D,{areEqual:()=>$l,compareArrays:()=>sC,existsAndNotEmpty:()=>f1,firstExistingValue:()=>h1,flatten:()=>sn,forEachReverse:()=>zi,includes:()=>ht,insertArrayIntoArray:()=>Wp,insertIntoArray:()=>qh,last:()=>Ja,moveInArray:()=>Ee,pushAll:()=>Pn,removeAllFromArray:()=>Rg,removeFromArray:()=>Yl,removeRepeatsFromArray:()=>i_,shallowCompare:()=>aC,sortNumerically:()=>OT,toStrings:()=>Jn});var k={};b.r(k),b.d(k,{addAgGridEventPath:()=>w0,addChangeListener:()=>_h,addSafePassiveEventListener:()=>r_,createEventPath:()=>Pf,getCtrlForEvent:()=>Ou,getEventPath:()=>Og,isElementInEventPath:()=>sp,isEventSupported:()=>Ca,isStopPropagationForAgGrid:()=>Jl,stopPropagationForAgGrid:()=>Wl});var R={};b.r(R),b.d(R,{camelCaseToHumanText:()=>fm,camelCaseToHyphen:()=>T0,capitalise:()=>Xp,escapeString:()=>Ju,hyphenToCamelCase:()=>g1,utf8_encode:()=>cC});var P={};b.r(P),b.d(P,{convertToMap:()=>Kh,keys:()=>o_,mapById:()=>Pg});var G={};b.r(G),b.d(G,{browserSupportsPreventScroll:()=>N2,getBodyHeight:()=>T1,getBodyWidth:()=>j2,getBrowserInfo:()=>Vg,getMaxDivHeight:()=>G2,getScrollbarWidth:()=>FT,getTabIndex:()=>w1,hasOverflowScrolling:()=>xP,isBrowserChrome:()=>Hg,isBrowserEdge:()=>p_,isBrowserFirefox:()=>b1,isBrowserSafari:()=>jg,isIOSUserAgent:()=>zm,isInvisibleScrollbar:()=>V2,isMacOsUserAgent:()=>C1});var Q={};b.r(Q),b.d(Q,{addOrRemoveAttribute:()=>ae,addStylesToElement:()=>E1,appendHtml:()=>pC,clearElement:()=>eu,copyNodeList:()=>GT,ensureDomOrder:()=>Yg,formatSize:()=>fC,getAbsoluteHeight:()=>bh,getAbsoluteWidth:()=>Jh,getElementAttribute:()=>I0,getElementSize:()=>D0,getInnerHeight:()=>x1,getInnerWidth:()=>Gf,getScrollLeft:()=>k0,insertWithDomOrder:()=>Wg,isElement:()=>m_,isElementChildOfClass:()=>qm,isFocusableFormField:()=>Nf,isHorizontalScrollShowing:()=>h_,isNode:()=>mC,isNodeOrElement:()=>R0,isRtlNegativeScroll:()=>dC,isVerticalScrollShowing:()=>NT,isVisible:()=>Zh,iterateNamedNodeMap:()=>D1,loadTemplate:()=>Su,nodeListForEach:()=>Pe,offsetHeight:()=>A0,offsetWidth:()=>Ch,prependDC:()=>hC,radioCssClass:()=>S1,removeElement:()=>LT,removeFromParent:()=>Xm,setCheckboxState:()=>B,setDisabled:()=>$g,setDisplayed:()=>Pl,setDomChildOrder:()=>vm,setElementHeight:()=>M0,setElementWidth:()=>f_,setFixedHeight:()=>zg,setFixedWidth:()=>Km,setScrollLeft:()=>jd,setVisible:()=>PT});var H={};b.r(H),b.d(H,{bindCellRendererToHtmlElement:()=>Rt,cssStyleObjectToMarkup:()=>Ct,findLineByLeastSquares:()=>_t,getNameOfClass:()=>Ke,message:()=>Tt});var Z={};b.r(Z),b.d(Z,{getAriaDescribedBy:()=>mi,getAriaLevel:()=>Xn,getAriaPosInSet:()=>gr,getAriaSortState:()=>di,removeAriaExpanded:()=>ys,removeAriaSort:()=>ap,setAriaChecked:()=>md,setAriaColCount:()=>cc,setAriaColIndex:()=>Ll,setAriaColSpan:()=>Zs,setAriaDescribedBy:()=>_r,setAriaDescription:()=>Fi,setAriaDisabled:()=>wo,setAriaExpanded:()=>Yr,setAriaLabel:()=>Bn,setAriaLabelledBy:()=>Un,setAriaLevel:()=>ar,setAriaMultiSelectable:()=>Sl,setAriaPosInSet:()=>Tl,setAriaRole:()=>Qn,setAriaRowCount:()=>fl,setAriaRowIndex:()=>fa,setAriaSelected:()=>Rc,setAriaSetSize:()=>To,setAriaSort:()=>tu});var X={};b.r(X),b.d(X,{stringToArray:()=>wa});var z={};b.r(z),b.d(z,{cleanNumber:()=>Hd,createArrayOfNumbers:()=>zl,decToHex:()=>Ud,formatNumberCommas:()=>Th,formatNumberTwoDecimalPlacesAndCommas:()=>wh,isNumeric:()=>Fu,padStartWidthZeros:()=>wp,sum:()=>Sd});var fe={};b.r(fe),b.d(fe,{parseDateTimeFromString:()=>Sh,serialiseDate:()=>Tp});var q={};b.r(q),b.d(q,{fuzzyCheckStrings:()=>ef,fuzzySuggestions:()=>Uc,get_bigrams:()=>g_,string_distances:()=>qg,string_weighted_distances:()=>O0});var ne={};b.r(ne),b.d(ne,{createIcon:()=>Pu,createIconNoSpan:()=>Oc,iconNameClassMap:()=>Xg});var N={};b.r(N),b.d(N,{isEventFromPrintableCharacter:()=>b_,isUserSuppressingHeaderKeyboardEvent:()=>VT,isUserSuppressingKeyboardEvent:()=>_C,normaliseQwertyAzerty:()=>ym});var Y={};b.r(Y),b.d(Y,{areEventsNear:()=>jT});var W={};b.r(W),b.d(W,{sortRowNodesByOrder:()=>$2,traverseNodesWithKey:()=>C_});var J={};b.r(J),b.d(J,{convertToSet:()=>yC});var n=b(7705),K=b(1413);let se=null;function De(){return se}class _e{}const be=new n.nKC("");let Ve=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(i){return new(i||t)};static \u0275prov=n.jDH({token:t,factory:()=>(0,n.WQX)(Se),providedIn:"platform"})}return t})();const Ie=new n.nKC("");let Se=(()=>{class t extends Ve{_location;_history;_doc=(0,n.WQX)(be);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return De().getBaseHref(this._doc)}onPopState(e){const i=De().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=De().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,i,o){this._history.pushState(e,i,o)}replaceState(e,i,o){this._history.replaceState(e,i,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static \u0275fac=function(i){return new(i||t)};static \u0275prov=n.jDH({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function de(t,r){if(0==t.length)return r;if(0==r.length)return t;let e=0;return t.endsWith("/")&&e++,r.startsWith("/")&&e++,2==e?t+r.substring(1):1==e?t+r:t+"/"+r}function le(t){const r=t.match(/#|\?|$/),e=r&&r.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function xe(t){return t&&"?"!==t[0]?"?"+t:t}let We=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(i){return new(i||t)};static \u0275prov=n.jDH({token:t,factory:()=>(0,n.WQX)(ut),providedIn:"root"})}return t})();const st=new n.nKC("");let ut=(()=>{class t extends We{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,i){super(),this._platformLocation=e,this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??(0,n.WQX)(be).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return de(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+xe(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${i}${o}`:i}pushState(e,i,o,s){const a=this.prepareExternalUrl(o+xe(s));this._platformLocation.pushState(e,i,a)}replaceState(e,i,o,s){const a=this.prepareExternalUrl(o+xe(s));this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(i){return new(i||t)(n.KVO(Ve),n.KVO(st,8))};static \u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ae=(()=>{class t extends We{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(e,i){super(),this._platformLocation=e,null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){const i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=de(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,o,s){let a=this.prepareExternalUrl(o+xe(s));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.pushState(e,i,a)}replaceState(e,i,o,s){let a=this.prepareExternalUrl(o+xe(s));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(i){return new(i||t)(n.KVO(Ve),n.KVO(st,8))};static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})(),ye=(()=>{class t{_subject=new K.B;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._basePath=function Nt(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(le(vt(i))),this._locationStrategy.onPopState(o=>{this._subject.next({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+xe(i))}normalize(e){return t.stripTrailingSlash(function Qe(t,r){if(!t||!r.startsWith(t))return r;const e=r.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:r}(this._basePath,vt(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",o=null){this._locationStrategy.pushState(o,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+xe(i)),o)}replaceState(e,i="",o=null){this._locationStrategy.replaceState(o,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+xe(i)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(o=>o(e,i))}subscribe(e,i,o){return this._subject.subscribe({next:e,error:i??void 0,complete:o??void 0})}static normalizeQueryParams=xe;static joinWithSlash=de;static stripTrailingSlash=le;static \u0275fac=function(i){return new(i||t)(n.KVO(We))};static \u0275prov=n.jDH({token:t,factory:()=>function Re(){return new ye((0,n.KVO)(We))}(),providedIn:"root"})}return t})();function vt(t){return t.replace(/\/index.html$/,"")}const Dt={ADP:[void 0,void 0,0],AFN:[void 0,"\u060b",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058f",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20bc"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GHS:[void 0,"GH\u20b5"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202fCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var qe=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}(qe||{}),Ge=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}(Ge||{}),dt=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}(dt||{}),Dn=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}(Dn||{});function $n(t,r){return Ro((0,n.H5H)(t)[n.KH2.DateFormat],r)}function Ii(t,r){return Ro((0,n.H5H)(t)[n.KH2.TimeFormat],r)}function Ni(t,r){return Ro((0,n.H5H)(t)[n.KH2.DateTimeFormat],r)}function Ki(t,r){const e=(0,n.H5H)(t),i=e[n.KH2.NumberSymbols][r];if(typeof i>"u"){if(12===r)return e[n.KH2.NumberSymbols][0];if(13===r)return e[n.KH2.NumberSymbols][1]}return i}function Qr(t,r){return(0,n.H5H)(t)[n.KH2.NumberFormats][r]}function Ns(t){if(!t[n.KH2.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[n.KH2.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ro(t,r){for(let e=r;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new Error("Locale data API: locale data undefined")}function Xo(t){const[r,e]=t.split(":");return{hours:+r,minutes:+e}}const Xa=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ya={},Dr=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var ja=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}(ja||{}),ws=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}(ws||{}),Ko=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}(Ko||{});function da(t,r,e,i){let o=function Du(t){if(Ec(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[o,s=1,a=1]=t.split("-").map(l=>+l);return Bo(o,s-1,a)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(Xa))return function Ka(t){const r=new Date(0);let e=0,i=0;const o=t[8]?r.setUTCFullYear:r.setFullYear,s=t[8]?r.setUTCHours:r.setHours;t[9]&&(e=Number(t[9]+t[10]),i=Number(t[9]+t[11])),o.call(r,Number(t[1]),Number(t[2])-1,Number(t[3]));const a=Number(t[4]||0)-e,l=Number(t[5]||0)-i,c=Number(t[6]||0),d=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return s.call(r,a,l,c,d),r}(i)}const r=new Date(t);if(!Ec(r))throw new Error(`Unable to convert "${t}" into a date`);return r}(t);r=Dl(e,r)||r;let l,a=[];for(;r;){if(l=Dr.exec(r),!l){a.push(r);break}{a=a.concat(l.slice(1));const f=a.pop();if(!f)break;r=f}}let c=o.getTimezoneOffset();i&&(c=Fa(i,c),o=function ad(t,r,e){const i=e?-1:1,o=t.getTimezoneOffset();return function xc(t,r){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+r),t}(t,i*(Fa(r,o)-o))}(o,i,!0));let d="";return a.forEach(f=>{const v=function qu(t){if(uu[t])return uu[t];let r;switch(t){case"G":case"GG":case"GGG":r=_s(Ko.Eras,dt.Abbreviated);break;case"GGGG":r=_s(Ko.Eras,dt.Wide);break;case"GGGGG":r=_s(Ko.Eras,dt.Narrow);break;case"y":r=os(ws.FullYear,1,0,!1,!0);break;case"yy":r=os(ws.FullYear,2,0,!0,!0);break;case"yyy":r=os(ws.FullYear,3,0,!1,!0);break;case"yyyy":r=os(ws.FullYear,4,0,!1,!0);break;case"Y":r=Xl(1);break;case"YY":r=Xl(2,!0);break;case"YYY":r=Xl(3);break;case"YYYY":r=Xl(4);break;case"M":case"L":r=os(ws.Month,1,1);break;case"MM":case"LL":r=os(ws.Month,2,1);break;case"MMM":r=_s(Ko.Months,dt.Abbreviated);break;case"MMMM":r=_s(Ko.Months,dt.Wide);break;case"MMMMM":r=_s(Ko.Months,dt.Narrow);break;case"LLL":r=_s(Ko.Months,dt.Abbreviated,Ge.Standalone);break;case"LLLL":r=_s(Ko.Months,dt.Wide,Ge.Standalone);break;case"LLLLL":r=_s(Ko.Months,dt.Narrow,Ge.Standalone);break;case"w":r=rc(1);break;case"ww":r=rc(2);break;case"W":r=rc(1,!0);break;case"d":r=os(ws.Date,1);break;case"dd":r=os(ws.Date,2);break;case"c":case"cc":r=os(ws.Day,1);break;case"ccc":r=_s(Ko.Days,dt.Abbreviated,Ge.Standalone);break;case"cccc":r=_s(Ko.Days,dt.Wide,Ge.Standalone);break;case"ccccc":r=_s(Ko.Days,dt.Narrow,Ge.Standalone);break;case"cccccc":r=_s(Ko.Days,dt.Short,Ge.Standalone);break;case"E":case"EE":case"EEE":r=_s(Ko.Days,dt.Abbreviated);break;case"EEEE":r=_s(Ko.Days,dt.Wide);break;case"EEEEE":r=_s(Ko.Days,dt.Narrow);break;case"EEEEEE":r=_s(Ko.Days,dt.Short);break;case"a":case"aa":case"aaa":r=_s(Ko.DayPeriods,dt.Abbreviated);break;case"aaaa":r=_s(Ko.DayPeriods,dt.Wide);break;case"aaaaa":r=_s(Ko.DayPeriods,dt.Narrow);break;case"b":case"bb":case"bbb":r=_s(Ko.DayPeriods,dt.Abbreviated,Ge.Standalone,!0);break;case"bbbb":r=_s(Ko.DayPeriods,dt.Wide,Ge.Standalone,!0);break;case"bbbbb":r=_s(Ko.DayPeriods,dt.Narrow,Ge.Standalone,!0);break;case"B":case"BB":case"BBB":r=_s(Ko.DayPeriods,dt.Abbreviated,Ge.Format,!0);break;case"BBBB":r=_s(Ko.DayPeriods,dt.Wide,Ge.Format,!0);break;case"BBBBB":r=_s(Ko.DayPeriods,dt.Narrow,Ge.Format,!0);break;case"h":r=os(ws.Hours,1,-12);break;case"hh":r=os(ws.Hours,2,-12);break;case"H":r=os(ws.Hours,1);break;case"HH":r=os(ws.Hours,2);break;case"m":r=os(ws.Minutes,1);break;case"mm":r=os(ws.Minutes,2);break;case"s":r=os(ws.Seconds,1);break;case"ss":r=os(ws.Seconds,2);break;case"S":r=os(ws.FractionalSeconds,1);break;case"SS":r=os(ws.FractionalSeconds,2);break;case"SSS":r=os(ws.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":r=Hs(ja.Short);break;case"ZZZZZ":r=Hs(ja.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":r=Hs(ja.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":r=Hs(ja.Long);break;default:return null}return uu[t]=r,r}(f);d+=v?v(o,e,c):"''"===f?"'":f.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),d}function Bo(t,r,e){const i=new Date(0);return i.setFullYear(t,r,e),i.setHours(0,0,0),i}function Dl(t,r){const e=function Gt(t){return(0,n.H5H)(t)[n.KH2.LocaleId]}(t);if(ya[e]??={},ya[e][r])return ya[e][r];let i="";switch(r){case"shortDate":i=$n(t,Dn.Short);break;case"mediumDate":i=$n(t,Dn.Medium);break;case"longDate":i=$n(t,Dn.Long);break;case"fullDate":i=$n(t,Dn.Full);break;case"shortTime":i=Ii(t,Dn.Short);break;case"mediumTime":i=Ii(t,Dn.Medium);break;case"longTime":i=Ii(t,Dn.Long);break;case"fullTime":i=Ii(t,Dn.Full);break;case"short":const o=Dl(t,"shortTime"),s=Dl(t,"shortDate");i=qr(Ni(t,Dn.Short),[o,s]);break;case"medium":const a=Dl(t,"mediumTime"),l=Dl(t,"mediumDate");i=qr(Ni(t,Dn.Medium),[a,l]);break;case"long":const c=Dl(t,"longTime"),d=Dl(t,"longDate");i=qr(Ni(t,Dn.Long),[c,d]);break;case"full":const f=Dl(t,"fullTime"),v=Dl(t,"fullDate");i=qr(Ni(t,Dn.Full),[f,v])}return i&&(ya[e][r]=i),i}function qr(t,r){return r&&(t=t.replace(/\{([^}]+)}/g,function(e,i){return null!=r&&i in r?r[i]:e})),t}function Wo(t,r,e="-",i,o){let s="";(t<0||o&&t<=0)&&(o?t=1-t:(t=-t,s=e));let a=String(t);for(;a.length<r;)a="0"+a;return i&&(a=a.slice(a.length-r)),s+a}function os(t,r,e=0,i=!1,o=!1){return function(s,a){let l=function Gs(t,r){switch(t){case ws.FullYear:return r.getFullYear();case ws.Month:return r.getMonth();case ws.Date:return r.getDate();case ws.Hours:return r.getHours();case ws.Minutes:return r.getMinutes();case ws.Seconds:return r.getSeconds();case ws.FractionalSeconds:return r.getMilliseconds();case ws.Day:return r.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}(t,s);if((e>0||l>-e)&&(l+=e),t===ws.Hours)0===l&&-12===e&&(l=12);else if(t===ws.FractionalSeconds)return function Il(t,r){return Wo(t,3).substring(0,r)}(l,r);const c=Ki(a,5);return Wo(l,r,c,i,o)}}function _s(t,r,e=Ge.Format,i=!1){return function(o,s){return function vl(t,r,e,i,o,s){switch(e){case Ko.Months:return function Ot(t,r,e){const i=(0,n.H5H)(t),s=Ro([i[n.KH2.MonthsFormat],i[n.KH2.MonthsStandalone]],r);return Ro(s,e)}(r,o,i)[t.getMonth()];case Ko.Days:return function Kt(t,r,e){const i=(0,n.H5H)(t),s=Ro([i[n.KH2.DaysFormat],i[n.KH2.DaysStandalone]],r);return Ro(s,e)}(r,o,i)[t.getDay()];case Ko.DayPeriods:const a=t.getHours(),l=t.getMinutes();if(s){const d=function to(t){const r=(0,n.H5H)(t);return Ns(r),(r[n.KH2.ExtraData][2]||[]).map(i=>"string"==typeof i?Xo(i):[Xo(i[0]),Xo(i[1])])}(r),f=function Qs(t,r,e){const i=(0,n.H5H)(t);Ns(i);const s=Ro([i[n.KH2.ExtraData][0],i[n.KH2.ExtraData][1]],r)||[];return Ro(s,e)||[]}(r,o,i),v=d.findIndex(w=>{if(Array.isArray(w)){const[x,I]=w,M=a>=x.hours&&l>=x.minutes,F=a<I.hours||a===I.hours&&l<I.minutes;if(x.hours<I.hours){if(M&&F)return!0}else if(M||F)return!0}else if(w.hours===a&&w.minutes===l)return!0;return!1});if(-1!==v)return f[v]}return function An(t,r,e){const i=(0,n.H5H)(t),s=Ro([i[n.KH2.DayPeriodsFormat],i[n.KH2.DayPeriodsStandalone]],r);return Ro(s,e)}(r,o,i)[a<12?0:1];case Ko.Eras:return function Vt(t,r){return Ro((0,n.H5H)(t)[n.KH2.Eras],r)}(r,i)[t.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${e}`)}}(o,s,t,r,e,i)}}function Hs(t){return function(r,e,i){const o=-1*i,s=Ki(e,5),a=o>0?Math.floor(o/60):Math.ceil(o/60);switch(t){case ja.Short:return(o>=0?"+":"")+Wo(a,2,s)+Wo(Math.abs(o%60),2,s);case ja.ShortGMT:return"GMT"+(o>=0?"+":"")+Wo(a,1,s);case ja.Long:return"GMT"+(o>=0?"+":"")+Wo(a,2,s)+":"+Wo(Math.abs(o%60),2,s);case ja.Extended:return 0===i?"Z":(o>=0?"+":"")+Wo(a,2,s)+":"+Wo(Math.abs(o%60),2,s);default:throw new Error(`Unknown zone width "${t}"`)}}}const es=0,Al=4;function Ml(t){const r=t.getDay(),e=0===r?-3:Al-r;return Bo(t.getFullYear(),t.getMonth(),t.getDate()+e)}function rc(t,r=!1){return function(e,i){let o;if(r){const s=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,a=e.getDate();o=1+Math.floor((a+s)/7)}else{const s=Ml(e),a=function Us(t){const r=Bo(t,es,1).getDay();return Bo(t,0,1+(r<=Al?Al:Al+7)-r)}(s.getFullYear()),l=s.getTime()-a.getTime();o=1+Math.round(l/6048e5)}return Wo(o,t,Ki(i,5))}}function Xl(t,r=!1){return function(e,i){return Wo(Ml(e).getFullYear(),t,Ki(i,5),r)}}const uu={};function Fa(t,r){t=t.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?r:e}function Ec(t){return t instanceof Date&&!isNaN(t.valueOf())}const ri=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function At(t,r,e,i,o,s,a=!1){let l="",c=!1;if(isFinite(t)){let d=function Oi(t){let i,o,s,a,l,r=Math.abs(t)+"",e=0;for((o=r.indexOf("."))>-1&&(r=r.replace(".","")),(s=r.search(/e/i))>0?(o<0&&(o=s),o+=+r.slice(s+1),r=r.substring(0,s)):o<0&&(o=r.length),s=0;"0"===r.charAt(s);s++);if(s===(l=r.length))i=[0],o=1;else{for(l--;"0"===r.charAt(l);)l--;for(o-=s,i=[],a=0;s<=l;s++,a++)i[a]=Number(r.charAt(s))}return o>22&&(i=i.splice(0,21),e=o-1,o=1),{digits:i,exponent:e,integerLen:o}}(t);a&&(d=function En(t){if(0===t.digits[0])return t;const r=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===r?t.digits.push(0,0):1===r&&t.digits.push(0),t.integerLen+=2),t}(d));let f=r.minInt,v=r.minFrac,w=r.maxFrac;if(s){const pe=s.match(ri);if(null===pe)throw new Error(`${s} is not a valid digit info`);const we=pe[1],je=pe[3],tt=pe[5];null!=we&&(f=or(we)),null!=je&&(v=or(je)),null!=tt?w=or(tt):null!=je&&v>w&&(w=v)}!function ir(t,r,e){if(r>e)throw new Error(`The minimum number of digits after fraction (${r}) is higher than the maximum (${e}).`);let i=t.digits,o=i.length-t.integerLen;const s=Math.min(Math.max(r,o),e);let a=s+t.integerLen,l=i[a];if(a>0){i.splice(Math.max(t.integerLen,a));for(let v=a;v<i.length;v++)i[v]=0}else{o=Math.max(0,o),t.integerLen=1,i.length=Math.max(1,a=s+1),i[0]=0;for(let v=1;v<a;v++)i[v]=0}if(l>=5)if(a-1<0){for(let v=0;v>a;v--)i.unshift(0),t.integerLen++;i.unshift(1),t.integerLen++}else i[a-1]++;for(;o<Math.max(0,s);o++)i.push(0);let c=0!==s;const d=r+t.integerLen,f=i.reduceRight(function(v,w,x,I){return I[x]=(w+=v)<10?w:w-10,c&&(0===I[x]&&x>=d?I.pop():c=!1),w>=10?1:0},0);f&&(i.unshift(f),t.integerLen++)}(d,v,w);let x=d.digits,I=d.integerLen;const M=d.exponent;let F=[];for(c=x.every(pe=>!pe);I<f;I++)x.unshift(0);for(;I<0;I++)x.unshift(0);I>0?F=x.splice(I,x.length):(F=x,x=[0]);const re=[];for(x.length>=r.lgSize&&re.unshift(x.splice(-r.lgSize,x.length).join(""));x.length>r.gSize;)re.unshift(x.splice(-r.gSize,x.length).join(""));x.length&&re.unshift(x.join("")),l=re.join(Ki(e,i)),F.length&&(l+=Ki(e,o)+F.join("")),M&&(l+=Ki(e,6)+"+"+M)}else l=Ki(e,9);return l=t<0&&!c?r.negPre+l+r.negSuf:r.posPre+l+r.posSuf,l}function _n(t,r,e,i,o){const a=Mn(Qr(r,qe.Currency),Ki(r,5));return a.minFrac=function ol(t){let r;const e=Dt[t];return e&&(r=e[2]),"number"==typeof r?r:2}(i),a.maxFrac=a.minFrac,At(t,a,r,13,12,o).replace("\xa4",e).replace("\xa4","").trim()}function qt(t,r,e){return At(t,Mn(Qr(r,qe.Decimal),Ki(r,5)),r,1,0,e)}function Mn(t,r="-"){const e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=t.split(";"),o=i[0],s=i[1],a=-1!==o.indexOf(".")?o.split("."):[o.substring(0,o.lastIndexOf("0")+1),o.substring(o.lastIndexOf("0")+1)],l=a[0],c=a[1]||"";e.posPre=l.substring(0,l.indexOf("#"));for(let f=0;f<c.length;f++){const v=c.charAt(f);"0"===v?e.minFrac=e.maxFrac=f+1:"#"===v?e.maxFrac=f+1:e.posSuf+=v}const d=l.split(",");if(e.gSize=d[1]?d[1].length:0,e.lgSize=d[2]||d[1]?(d[2]||d[1]).length:0,s){const f=o.length-e.posPre.length-e.posSuf.length,v=s.indexOf("#");e.negPre=s.substring(0,v).replace(/'/g,""),e.negSuf=s.slice(v+f).replace(/'/g,"")}else e.negPre=r+e.posPre,e.negSuf=e.posSuf;return e}function or(t){const r=parseInt(t);if(isNaN(r))throw new Error("Invalid integer literal when parsing "+t);return r}function ss(t,r){r=encodeURIComponent(r);for(const e of t.split(";")){const i=e.indexOf("="),[o,s]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(o.trim()===r)return decodeURIComponent(s)}return null}const Ho=/\s+/,Ps=[];let bi=(()=>{class t{_ngEl;_renderer;initialClasses=Ps;rawClass;stateMap=new Map;constructor(e,i){this._ngEl=e,this._renderer=i}set klass(e){this.initialClasses=null!=e?e.trim().split(Ho):Ps}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(Ho):e}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const i of e)this._updateState(i,!0);else if(null!=e)for(const i of Object.keys(e))this._updateState(i,!!e[i]);this._applyStateDiff()}_updateState(e,i){const o=this.stateMap.get(e);void 0!==o?(o.enabled!==i&&(o.changed=!0,o.enabled=i),o.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const i=e[0],o=e[1];o.changed?(this._toggleClass(i,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),o.touched=!1}}_toggleClass(e,i){(e=e.trim()).length>0&&e.split(Ho).forEach(o=>{i?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static \u0275fac=function(i){return new(i||t)(n.rXU(n.aKT),n.rXU(n.sFG))};static \u0275dir=n.FsC({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return t})();class Bs{$implicit;ngForOf;index;count;constructor(r,e,i,o){this.$implicit=r,this.ngForOf=e,this.index=i,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let oo=(()=>{class t{_viewContainer;_template;_differs;set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(e,i,o){this._viewContainer=e,this._template=i,this._differs=o}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((o,s,a)=>{if(null==o.previousIndex)i.createEmbeddedView(this._template,new Bs(o.item,this._ngForOf,-1,-1),null===a?void 0:a);else if(null==a)i.remove(null===s?void 0:s);else if(null!==s){const l=i.get(s);i.move(l,a),Kc(l,o)}});for(let o=0,s=i.length;o<s;o++){const l=i.get(o).context;l.index=o,l.count=s,l.ngForOf=this._ngForOf}e.forEachIdentityChange(o=>{Kc(i.get(o.currentIndex),o)})}static ngTemplateContextGuard(e,i){return!0}static \u0275fac=function(i){return new(i||t)(n.rXU(n.c1b),n.rXU(n.C4Q),n.rXU(n._q3))};static \u0275dir=n.FsC({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return t})();function Kc(t,r){t.context.$implicit=r.item}let fi=(()=>{class t{_viewContainer;_context=new _l;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(e,i){this._viewContainer=e,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){al("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){al("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(e,i){return!0}static \u0275fac=function(i){return new(i||t)(n.rXU(n.c1b),n.rXU(n.C4Q))};static \u0275dir=n.FsC({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return t})();class _l{$implicit=null;ngIf=null}function al(t,r){if(r&&!r.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${(0,n.Tbb)(r)}'.`)}let Jr=(()=>{class t{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(e,i,o){this._ngEl=e,this._differs=i,this._renderer=o}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[o,s]=e.split("."),a=-1===o.indexOf("-")?void 0:n.czy.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,o,s?`${i}${s}`:i,a):this._renderer.removeStyle(this._ngEl.nativeElement,o,a)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}static \u0275fac=function(i){return new(i||t)(n.rXU(n.aKT),n.rXU(n.MKu),n.rXU(n.sFG))};static \u0275dir=n.FsC({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return t})(),uo=(()=>{class t{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(e){this._viewContainerRef=e}ngOnChanges(e){if(this._shouldRecreateView(e)){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const o=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,i,o)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,i,o),get:(e,i,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,o)}})}static \u0275fac=function(i){return new(i||t)(n.rXU(n.c1b))};static \u0275dir=n.FsC({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[n.OA$]})}return t})();function gc(t,r){return new n.wOt(2100,!1)}class Ic{createSubscription(r,e){return(0,n.O8t)(()=>r.subscribe({next:e,error:i=>{throw i}}))}dispose(r){(0,n.O8t)(()=>r.unsubscribe())}}class te{createSubscription(r,e){return r.then(e,i=>{throw i})}dispose(r){}}const he=new te,$e=new Ic;let ct=(()=>{class t{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;constructor(e){this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){if(!this._obj){if(e)try{this.markForCheckOnValueUpdate=!1,this._subscribe(e)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if((0,n.jNT)(e))return he;if((0,n.zjR)(e))return $e;throw gc()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(i){return new(i||t)(n.rXU(n.gRc,16))};static \u0275pipe=n.EJ8({name:"async",type:t,pure:!1})}return t})();const an=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let oi=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw gc();return e.replace(an,i=>i[0].toUpperCase()+i.slice(1).toLowerCase())}static \u0275fac=function(i){return new(i||t)};static \u0275pipe=n.EJ8({name:"titlecase",type:t,pure:!0})}return t})();const Zn=new n.nKC(""),vr=new n.nKC("");let ti=(()=>{class t{locale;defaultTimezone;defaultOptions;constructor(e,i,o){this.locale=e,this.defaultTimezone=i,this.defaultOptions=o}transform(e,i,o,s){if(null==e||""===e||e!=e)return null;try{return da(e,i??this.defaultOptions?.dateFormat??"mediumDate",s||this.locale,o??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(a){throw gc()}}static \u0275fac=function(i){return new(i||t)(n.rXU(n.xe9,16),n.rXU(Zn,24),n.rXU(vr,24))};static \u0275pipe=n.EJ8({name:"date",type:t,pure:!0})}return t})(),Zo=(()=>{class t{differs;constructor(e){this.differs=e}differ;keyValues=[];compareFn=jr;transform(e,i=jr){if(!e||!(e instanceof Map)&&"object"!=typeof e)return null;this.differ??=this.differs.find(e).create();const o=this.differ.diff(e),s=i!==this.compareFn;return o&&(this.keyValues=[],o.forEachItem(a=>{this.keyValues.push(function Or(t,r){return{key:t,value:r}}(a.key,a.currentValue))})),(o||s)&&(i&&this.keyValues.sort(i),this.compareFn=i),this.keyValues}static \u0275fac=function(i){return new(i||t)(n.rXU(n.MKu,16))};static \u0275pipe=n.EJ8({name:"keyvalue",type:t,pure:!1})}return t})();function jr(t,r){const e=t.key,i=r.key;if(e===i)return 0;if(void 0===e)return 1;if(void 0===i)return-1;if(null===e)return 1;if(null===i)return-1;if("string"==typeof e&&"string"==typeof i)return e<i?-1:1;if("number"==typeof e&&"number"==typeof i)return e-i;if("boolean"==typeof e&&"boolean"==typeof i)return e<i?-1:1;const o=String(e),s=String(i);return o==s?0:o<s?-1:1}let as=(()=>{class t{_locale;constructor(e){this._locale=e}transform(e,i,o){if(!Qa(e))return null;o||=this._locale;try{return qt(Vs(e),o,i)}catch(s){throw gc()}}static \u0275fac=function(i){return new(i||t)(n.rXU(n.xe9,16))};static \u0275pipe=n.EJ8({name:"number",type:t,pure:!0})}return t})(),oc=(()=>{class t{_locale;_defaultCurrencyCode;constructor(e,i="USD"){this._locale=e,this._defaultCurrencyCode=i}transform(e,i=this._defaultCurrencyCode,o="symbol",s,a){if(!Qa(e))return null;a||=this._locale,"boolean"==typeof o&&(o=o?"symbol":"code");let l=i||this._defaultCurrencyCode;"code"!==o&&(l="symbol"===o||"symbol-narrow"===o?function El(t,r,e="en"){const i=function rs(t){return(0,n.H5H)(t)[n.KH2.Currencies]}(e)[t]||Dt[t]||[],o=i[1];return"narrow"===r&&"string"==typeof o?o:i[0]||t}(l,"symbol"===o?"wide":"narrow",a):o);try{return _n(Vs(e),a,l,i,s)}catch(c){throw gc()}}static \u0275fac=function(i){return new(i||t)(n.rXU(n.xe9,16),n.rXU(n.Ocv,16))};static \u0275pipe=n.EJ8({name:"currency",type:t,pure:!0})}return t})();function Qa(t){return!(null==t||""===t||t!=t)}function Vs(t){if("string"==typeof t&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if("number"!=typeof t)throw new Error(`${t} is not a number`);return t}let gn=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({})}return t})();const po="browser";function Gr(t){return t===po}function ts(t){return"server"===t}let va=(()=>{class t{static \u0275prov=(0,n.jDH)({token:t,providedIn:"root",factory:()=>Gr((0,n.WQX)(n.Agw))?new Ma((0,n.WQX)(be),window):new Ul})}return t})();class Ma{document;window;offset=()=>[0,0];constructor(r,e){this.document=r,this.window=e}setOffset(r){this.offset=Array.isArray(r)?()=>r:r}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(r){this.window.scrollTo(r[0],r[1])}scrollToAnchor(r){const e=function Pa(t,r){const e=t.getElementById(r)||t.getElementsByName(r)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&"function"==typeof t.body.attachShadow){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let o=i.currentNode;for(;o;){const s=o.shadowRoot;if(s){const a=s.getElementById(r)||s.querySelector(`[name="${r}"]`);if(a)return a}o=i.nextNode()}}return null}(this.document,r);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(r){this.window.history.scrollRestoration=r}scrollToElement(r){const e=r.getBoundingClientRect(),i=e.left+this.window.pageXOffset,o=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(i-s[0],o-s[1])}}class Ul{setOffset(r){}getScrollPosition(){return[0,0]}scrollToPosition(r){}scrollToAnchor(r){}setHistoryScrollRestoration(r){}}class Ft{}class jt extends _e{supportsDOMEvents=!0}class Gn extends jt{static makeCurrent(){!function Fe(t){se??=t}(new Gn)}onAndCancel(r,e,i){return r.addEventListener(e,i),()=>{r.removeEventListener(e,i)}}dispatchEvent(r,e){r.dispatchEvent(e)}remove(r){r.remove()}createElement(r,e){return(e=e||this.getDefaultDocument()).createElement(r)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(r){return r.nodeType===Node.ELEMENT_NODE}isShadowRoot(r){return r instanceof DocumentFragment}getGlobalEventTarget(r,e){return"window"===e?window:"document"===e?r:"body"===e?r.body:null}getBaseHref(r){const e=function Ei(){return Cn=Cn||document.querySelector("base"),Cn?Cn.getAttribute("href"):null}();return null==e?null:function vi(t){return new URL(t,document.baseURI).pathname}(e)}resetBaseElement(){Cn=null}getUserAgent(){return window.navigator.userAgent}getCookie(r){return ss(document.cookie,r)}}let Cn=null,li=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(i){return new(i||t)};static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const Pi=new n.nKC("");let Qi=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,i){this._zone=i,e.forEach(o=>{o.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,o){return this._findPluginFor(i).addEventListener(e,i,o)}getZone(){return this._zone}_findPluginFor(e){let i=this._eventNameToPlugin.get(e);if(i)return i;if(i=this._plugins.find(s=>s.supports(e)),!i)throw new n.wOt(5101,!1);return this._eventNameToPlugin.set(e,i),i}static \u0275fac=function(i){return new(i||t)(n.KVO(Pi),n.KVO(n.SKi))};static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();class no{_doc;constructor(r){this._doc=r}manager}const mt="ng-app-id";function on(t){for(const r of t)r.remove()}function mn(t,r){const e=r.createElement("style");return e.textContent=t,e}function zn(t,r){const e=r.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}let pi=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(e,i,o,s={}){this.doc=e,this.appId=i,this.nonce=o,this.isServer=ts(s),function Ln(t,r,e,i){const o=t.head?.querySelectorAll(`style[${mt}="${r}"],link[${mt}="${r}"]`);if(o)for(const s of o)s.removeAttribute(mt),s instanceof HTMLLinkElement?i.set(s.href.slice(s.href.lastIndexOf("/")+1),{usage:0,elements:[s]}):s.textContent&&e.set(s.textContent,{usage:0,elements:[s]})}(e,i,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,i){for(const o of e)this.addUsage(o,this.inline,mn);i?.forEach(o=>this.addUsage(o,this.external,zn))}removeStyles(e,i){for(const o of e)this.removeUsage(o,this.inline);i?.forEach(o=>this.removeUsage(o,this.external))}addUsage(e,i,o){const s=i.get(e);s?s.usage++:i.set(e,{usage:1,elements:[...this.hosts].map(a=>this.addElement(a,o(e,this.doc)))})}removeUsage(e,i){const o=i.get(e);o&&(o.usage--,o.usage<=0&&(on(o.elements),i.delete(e)))}ngOnDestroy(){for(const[,{elements:e}]of[...this.inline,...this.external])on(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(const[i,{elements:o}]of this.inline)o.push(this.addElement(e,mn(i,this.doc)));for(const[i,{elements:o}]of this.external)o.push(this.addElement(e,zn(i,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,i){return this.nonce&&i.setAttribute("nonce",this.nonce),this.isServer&&i.setAttribute(mt,this.appId),e.appendChild(i)}static \u0275fac=function(i){return new(i||t)(n.KVO(be),n.KVO(n.sZ2),n.KVO(n.BIS,8),n.KVO(n.Agw))};static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const _i={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},yi=/%COMP%/g,As=new n.nKC("",{providedIn:"root",factory:()=>!0});function Yn(t,r){return r.map(e=>e.replace(yi,t))}let fr=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,i,o,s,a,l,c,d=null){this.eventManager=e,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=l,this.ngZone=c,this.nonce=d,this.platformIsServer=ts(l),this.defaultRenderer=new Pr(e,a,c,this.platformIsServer)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===n.gXe.ShadowDom&&(i={...i,encapsulation:n.gXe.Emulated});const o=this.getOrCreateRenderer(e,i);return o instanceof Te?o.applyToHost(e):o instanceof ee&&o.applyStyles(),o}getOrCreateRenderer(e,i){const o=this.rendererByCompId;let s=o.get(i.id);if(!s){const a=this.doc,l=this.ngZone,c=this.eventManager,d=this.sharedStylesHost,f=this.removeStylesOnCompDestroy,v=this.platformIsServer;switch(i.encapsulation){case n.gXe.Emulated:s=new Te(c,d,i,this.appId,f,a,l,v);break;case n.gXe.ShadowDom:return new oe(c,d,e,i,a,l,this.nonce,v);default:s=new ee(c,d,i,f,a,l,v)}o.set(i.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}static \u0275fac=function(i){return new(i||t)(n.KVO(Qi),n.KVO(pi),n.KVO(n.sZ2),n.KVO(As),n.KVO(be),n.KVO(n.Agw),n.KVO(n.SKi),n.KVO(n.BIS))};static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();class Pr{eventManager;doc;ngZone;platformIsServer;data=Object.create(null);throwOnSyntheticProps=!0;constructor(r,e,i,o){this.eventManager=r,this.doc=e,this.ngZone=i,this.platformIsServer=o}destroy(){}destroyNode=null;createElement(r,e){return e?this.doc.createElementNS(_i[e]||e,r):this.doc.createElement(r)}createComment(r){return this.doc.createComment(r)}createText(r){return this.doc.createTextNode(r)}appendChild(r,e){(He(r)?r.content:r).appendChild(e)}insertBefore(r,e,i){r&&(He(r)?r.content:r).insertBefore(e,i)}removeChild(r,e){e.remove()}selectRootElement(r,e){let i="string"==typeof r?this.doc.querySelector(r):r;if(!i)throw new n.wOt(-5104,!1);return e||(i.textContent=""),i}parentNode(r){return r.parentNode}nextSibling(r){return r.nextSibling}setAttribute(r,e,i,o){if(o){e=o+":"+e;const s=_i[o];s?r.setAttributeNS(s,e,i):r.setAttribute(e,i)}else r.setAttribute(e,i)}removeAttribute(r,e,i){if(i){const o=_i[i];o?r.removeAttributeNS(o,e):r.removeAttribute(`${i}:${e}`)}else r.removeAttribute(e)}addClass(r,e){r.classList.add(e)}removeClass(r,e){r.classList.remove(e)}setStyle(r,e,i,o){o&(n.czy.DashCase|n.czy.Important)?r.style.setProperty(e,i,o&n.czy.Important?"important":""):r.style[e]=i}removeStyle(r,e,i){i&n.czy.DashCase?r.style.removeProperty(e):r.style[e]=""}setProperty(r,e,i){null!=r&&(r[e]=i)}setValue(r,e){r.nodeValue=e}listen(r,e,i){if("string"==typeof r&&!(r=De().getGlobalEventTarget(this.doc,r)))throw new Error(`Unsupported event target ${r} for event ${e}`);return this.eventManager.addEventListener(r,e,this.decoratePreventDefault(i))}decoratePreventDefault(r){return e=>{if("__ngUnwrap__"===e)return r;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>r(e)):r(e))&&e.preventDefault()}}}function He(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class oe extends Pr{sharedStylesHost;hostEl;shadowRoot;constructor(r,e,i,o,s,a,l,c){super(r,s,a,c),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const d=Yn(o.id,o.styles);for(const v of d){const w=document.createElement("style");l&&w.setAttribute("nonce",l),w.textContent=v,this.shadowRoot.appendChild(w)}const f=o.getExternalStyles?.();if(f)for(const v of f){const w=zn(v,s);l&&w.setAttribute("nonce",l),this.shadowRoot.appendChild(w)}}nodeOrShadowRoot(r){return r===this.hostEl?this.shadowRoot:r}appendChild(r,e){return super.appendChild(this.nodeOrShadowRoot(r),e)}insertBefore(r,e,i){return super.insertBefore(this.nodeOrShadowRoot(r),e,i)}removeChild(r,e){return super.removeChild(null,e)}parentNode(r){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(r)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class ee extends Pr{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(r,e,i,o,s,a,l,c){super(r,s,a,l),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o,this.styles=c?Yn(c,i.styles):i.styles,this.styleUrls=i.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}}class Te extends ee{contentAttr;hostAttr;constructor(r,e,i,o,s,a,l,c){const d=o+"-"+i.id;super(r,e,i,s,a,l,c,d),this.contentAttr=function Yi(t){return"_ngcontent-%COMP%".replace(yi,t)}(d),this.hostAttr=function vn(t){return"_nghost-%COMP%".replace(yi,t)}(d)}applyToHost(r){this.applyStyles(),this.setAttribute(r,this.hostAttr,"")}createElement(r,e){const i=super.createElement(r,e);return super.setAttribute(i,this.contentAttr,""),i}}let Le=(()=>{class t extends no{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,o){return e.addEventListener(i,o,!1),()=>this.removeEventListener(e,i,o)}removeEventListener(e,i,o){return e.removeEventListener(i,o)}static \u0275fac=function(i){return new(i||t)(n.KVO(be))};static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const ot=["alt","control","meta","shift"],gt={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Lt={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let On=(()=>{class t extends no{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,o){const s=t.parseEventName(i),a=t.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>De().onAndCancel(e,s.domEventName,a))}static parseEventName(e){const i=e.toLowerCase().split("."),o=i.shift();if(0===i.length||"keydown"!==o&&"keyup"!==o)return null;const s=t._normalizeKey(i.pop());let a="",l=i.indexOf("code");if(l>-1&&(i.splice(l,1),a="code."),ot.forEach(d=>{const f=i.indexOf(d);f>-1&&(i.splice(f,1),a+=d+".")}),a+=s,0!=i.length||0===s.length)return null;const c={};return c.domEventName=o,c.fullKey=a,c}static matchEventFullKeyCode(e,i){let o=gt[e.key]||e.key,s="";return i.indexOf("code.")>-1&&(o=e.code,s="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),ot.forEach(a=>{a!==o&&(0,Lt[a])(e)&&(s+=a+".")}),s+=o,s===i)}static eventCallback(e,i,o){return s=>{t.matchEventFullKeyCode(s,e)&&o.runGuarded(()=>i(s))}}static _normalizeKey(e){return"esc"===e?"escape":e}static \u0275fac=function(i){return new(i||t)(n.KVO(be))};static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const ha=(0,n.oH4)(n.fpN,"browser",[{provide:n.Agw,useValue:po},{provide:n.PLl,useValue:function Ur(){Gn.makeCurrent()},multi:!0},{provide:be,useFactory:function ia(){return(0,n.TL$)(document),document},deps:[]}]),$a=new n.nKC(""),Np=[{provide:n.e01,useClass:class Mi{addToWindow(r){n.JZv.getAngularTestability=(i,o=!0)=>{const s=r.findTestabilityInTree(i,o);if(null==s)throw new n.wOt(5103,!1);return s},n.JZv.getAllAngularTestabilities=()=>r.getAllTestabilities(),n.JZv.getAllAngularRootElements=()=>r.getAllRootElements(),n.JZv.frameworkStabilizers||(n.JZv.frameworkStabilizers=[]),n.JZv.frameworkStabilizers.push(i=>{const o=n.JZv.getAllAngularTestabilities();let s=o.length;const a=function(){s--,0==s&&i()};o.forEach(l=>{l.whenStable(a)})})}findTestabilityInTree(r,e,i){return null==e?null:r.getTestability(e)??(i?De().isShadowRoot(e)?this.findTestabilityInTree(r,e.host,!0):this.findTestabilityInTree(r,e.parentElement,!0):null)}},deps:[]},{provide:n.WHO,useClass:n.NYb,deps:[n.SKi,n.giA,n.e01]},{provide:n.NYb,useClass:n.NYb,deps:[n.SKi,n.giA,n.e01]}],Gp=[{provide:n.H8p,useValue:"root"},{provide:n.zcH,useFactory:function Oo(){return new n.zcH},deps:[]},{provide:Pi,useClass:Le,multi:!0,deps:[be,n.SKi,n.Agw]},{provide:Pi,useClass:On,multi:!0,deps:[be]},fr,pi,Qi,{provide:n._9s,useExisting:fr},{provide:Ft,useClass:li,deps:[]},[]];let vc=(()=>{class t{constructor(e){}static \u0275fac=function(i){return new(i||t)(n.KVO($a,12))};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({providers:[...Gp,...Np],imports:[gn,n.Hbi]})}return t})(),cm=(()=>{class t{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(i){return new(i||t)(n.KVO(be))};static \u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ku=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=n.jDH({token:t,factory:function(i){let o=null;return o=i?new(i||t):n.KVO(fh),o},providedIn:"root"})}return t})(),fh=(()=>{class t extends Ku{_doc;constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case n.WPN.NONE:return i;case n.WPN.HTML:return(0,n.ZF7)(i,"HTML")?(0,n.rcV)(i):(0,n.h9k)(this._doc,String(i)).toString();case n.WPN.STYLE:return(0,n.ZF7)(i,"Style")?(0,n.rcV)(i):i;case n.WPN.SCRIPT:if((0,n.ZF7)(i,"Script"))return(0,n.rcV)(i);throw new n.wOt(5200,!1);case n.WPN.URL:return(0,n.ZF7)(i,"URL")?(0,n.rcV)(i):(0,n.$MX)(String(i));case n.WPN.RESOURCE_URL:if((0,n.ZF7)(i,"ResourceURL"))return(0,n.rcV)(i);throw new n.wOt(5201,!1);default:throw new n.wOt(5202,!1)}}bypassSecurityTrustHtml(e){return(0,n.Kcf)(e)}bypassSecurityTrustStyle(e){return(0,n.cWb)(e)}bypassSecurityTrustScript(e){return(0,n.UyX)(e)}bypassSecurityTrustUrl(e){return(0,n.osQ)(e)}bypassSecurityTrustResourceUrl(e){return(0,n.e5t)(e)}static \u0275fac=function(i){return new(i||t)(n.KVO(be))};static \u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function vp(t){return null==t||""===t?null:t}function rr(t,r){return void 0===r&&(r=!1),null!=t&&(""!==t||r)}function $o(t){return!rr(t)}function _c(t){return null==t||0===t.length}function Up(t){return null!=t&&"function"==typeof t.toString?t.toString():null}function ud(t){if(void 0!==t){if(null===t||""===t)return null;if("number"==typeof t)return isNaN(t)?void 0:t;var r=parseInt(t,10);return isNaN(r)?void 0:r}}function $p(t){if(void 0!==t)return null!==t&&""!==t&&("boolean"==typeof t?t:/true/i.test(t))}function Mg(t){if(null!=t&&""!==t)return t}function a1(t,r){return null==t&&null==r||!(null==t&&null!=r||null!=t&&null==r)&&t===r}function Cu(t,r){return(t?JSON.stringify(t):null)===(r?JSON.stringify(r):null)}function t_(t,r,e){void 0===e&&(e=!1);var i=null==t,o=null==r;if(t&&t.toNumber&&(t=t.toNumber()),r&&r.toNumber&&(r=r.toNumber()),i&&o)return 0;if(i)return-1;if(o)return 1;function s(a,l){return a>l?1:a<l?-1:0}if("string"!=typeof t||!e)return s(t,r);try{return t.localeCompare(r)}catch{return s(t,r)}}function dd(t){if(t instanceof Set||t instanceof Map){var r=[];return t.forEach(function(e){return r.push(e)}),r}return Object.values(t)}var pm=function(){function t(){this.existingKeys={}}return t.prototype.addExistingKeys=function(r){for(var e=0;e<r.length;e++)this.existingKeys[r[e]]=!0},t.prototype.getUniqueKey=function(r,e){r=Up(r);for(var i=0;;){var o=void 0;if(r?(o=r,0!==i&&(o+="_"+i)):e?(o=e,0!==i&&(o+="_"+i)):o=""+i,!this.existingKeys[o])return this.existingKeys[o]=!0,o;i++}},t}();function Vo(t,r){null!=t&&(Array.isArray(t)?t.forEach(function(e,i){return r(""+i,e)}):Object.keys(t).forEach(function(e){return r(e,t[e])}))}function U(t){for(var r={},e=Object.keys(t),i=0;i<e.length;i++){var o=e[i];r[o]=t[o]}return r}function ve(t){return JSON.parse(JSON.stringify(t))}function Ue(t,r){if(t){var e=t,i={};return Object.keys(e).forEach(function(o){if(!(r&&r.indexOf(o)>=0)){var s=e[o],a=Rf(s)&&s.constructor===Object;i[o]=a?Ue(s):s}}),i}}function et(t,r){return t[r]}function It(t,r,e){t[r]=e}function In(t,r){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];e.forEach(function(o){return Li(t,r,o)})}function Li(t,r,e,i){var o=et(t,e);void 0!==o&&It(r,e,i?i(o):o)}function Co(t){var r={};return t.filter(function(e){return null!=e}).forEach(function(e){Object.keys(e).forEach(function(i){return r[i]=null})}),Object.keys(r)}function ls(t){if(!t)return[];var r=Object;if("function"==typeof r.values)return r.values(t);var e=[];for(var i in t)t.hasOwnProperty(i)&&t.propertyIsEnumerable(i)&&e.push(t[i]);return e}function Es(t,r,e,i){void 0===e&&(e=!0),void 0===i&&(i=!1),rr(r)&&Vo(r,function(o,s){var a=t[o];a!==s&&(i&&null==a&&null!=s&&"object"==typeof s&&s.constructor===Object&&(t[o]=a={}),Rf(s)&&Rf(a)&&!Array.isArray(a)?Es(a,s,e,i):(e||void 0!==s)&&(t[o]=s))})}function wu(t){return $o(t)||0===Object.keys(t).length}function Yp(t,r,e){if(null==t)return e;for(var i=r.split("."),o=t;i.length>1;)if(null==(o=o[i.shift()]))return e;return o[i[0]]??e}function mh(t,r,e){if(null!=t){for(var i=r.split("."),o=t;i.length>1;)if(null==(o=o[i.shift()]))return;o[i[0]]=e}}function l1(t){return Object.freeze(t),dd(t).forEach(function(r){(Rf(r)||"function"==typeof r)&&l1(r)}),t}function v0(t,r,e){if(r&&t){if(!e)return t[r];for(var i=r.split("."),o=t,s=0;s<i.length;s++){if(null==o)return;o=o[i[s]]}return o}}function pd(t,r){Object.keys(t).forEach(function(o){"object"==typeof t[o]&&(t[o]=void 0)});var e=Object.getPrototypeOf(t),i={};Object.keys(e).forEach(function(o){"function"==typeof e[o]&&(i[o]={value:function(){console.warn("AG Grid: "+r+" function "+o+"() cannot be called as the grid has been destroyed.\n                     Please don't call grid API functions on destroyed grids - as a matter of fact you shouldn't\n                     be keeping the API reference, your application has a memory leak! Remove the API reference\n                     when the grid is destroyed.")},writable:!0})}),Object.defineProperties(t,i)}function Rf(t){return"object"==typeof t&&null!==t}var Hm=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,_0=/([^\s,]+)/g,bd={};function sa(t,r){bd[r]||(t(),bd[r]=!0)}function Um(t){if(t.name)return t.name;var r=/function\s+([^\(]+)/.exec(t.toString());return r&&2===r.length?r[1].trim():null}function oa(t){var r=t.toString().replace(Hm,"");return r.slice(r.indexOf("(")+1,r.indexOf(")")).match(_0)||[]}function y0(t){return!!(t&&t.constructor&&t.call&&t.apply)}function c1(t){hm(t,400)}var gh=[],n_=!1;function b0(t){gh.push(t),!n_&&(n_=!0,window.setTimeout(function(){var r=gh.slice();gh.length=0,n_=!1,r.forEach(function(e){return e()})},0))}function hm(t,r){void 0===r&&(r=0),t.length>0&&window.setTimeout(function(){return t.forEach(function(e){return e()})},r)}function hd(t,r,e){var i;return void 0===e&&(e=!1),function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var a=this,l=e&&!i;window.clearTimeout(i),i=window.setTimeout(function(){i=null,e||t.apply(a,o)},r),l&&t.apply(a,o)}}function u1(t,r){var e=0;return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var a=(new Date).getTime();a-e<r||(e=a,t.apply(this,i))}}function d1(t,r,e,i){void 0===e&&(e=100);var o=(new Date).getTime(),s=null,a=!1,l=function(){var c=(new Date).getTime()-o>e;(t()||c)&&(r(),a=!0,null!=s&&(window.clearInterval(s),s=null),c&&i&&console.warn(i))};l(),a||(s=window.setInterval(l,10))}function oC(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return function(e){return t.reduce(function(i,o){return o(i)},e)}}function Of(t){t&&t()}var Wh=function(){},Mc=function(){function t(r,e){if(this.beanWrappers={},this.destroyed=!1,r&&r.beanClasses){this.contextParams=r,this.logger=e,this.logger.log(">> creating ag-Application Context"),this.createBeans();var i=this.getBeanInstances();this.wireBeans(i),this.logger.log(">> ag-Application Context ready - component is alive")}}return t.prototype.getBeanInstances=function(){return dd(this.beanWrappers).map(function(r){return r.beanInstance})},t.prototype.createBean=function(r,e){if(!r)throw Error("Can't wire to bean since it is null");return this.wireBeans([r],e),r},t.prototype.wireBeans=function(r,e){this.autoWireBeans(r),this.methodWireBeans(r),this.callLifeCycleMethods(r,"preConstructMethods"),rr(e)&&r.forEach(e),this.callLifeCycleMethods(r,"postConstructMethods")},t.prototype.createBeans=function(){var r=this;this.contextParams.beanClasses.forEach(this.createBeanWrapper.bind(this)),Vo(this.beanWrappers,function(i,o){var s;o.bean.__agBeanMetaData&&o.bean.__agBeanMetaData.autowireMethods&&o.bean.__agBeanMetaData.autowireMethods.agConstructor&&(s=o.bean.__agBeanMetaData.autowireMethods.agConstructor);var a=r.getBeansForParameters(s,o.bean.name),l=function MT(t,r){var e=[null].concat(r);return new(t.bind.apply(t,e))}(o.bean,a);o.beanInstance=l});var e=Object.keys(this.beanWrappers).join(", ");this.logger.log("created beans: "+e)},t.prototype.createBeanWrapper=function(r){var e=r.__agBeanMetaData;if(!e){var i;return i=r.prototype.constructor?Um(r.prototype.constructor):""+r,void console.error("Context item "+i+" is not a bean")}this.beanWrappers[e.beanName]={bean:r,beanInstance:null,beanName:e.beanName}},t.prototype.autoWireBeans=function(r){var e=this;r.forEach(function(i){e.forEachMetaDataInHierarchy(i,function(o,s){var a=o.agClassAttributes;a&&a.forEach(function(l){var c=e.lookupBeanInstance(s,l.beanName,l.optional);i[l.attributeName]=c})})})},t.prototype.methodWireBeans=function(r){var e=this;r.forEach(function(i){e.forEachMetaDataInHierarchy(i,function(o,s){Vo(o.autowireMethods,function(a,l){if("agConstructor"!==a){var c=e.getBeansForParameters(l,s);i[a].apply(i,c)}})})})},t.prototype.forEachMetaDataInHierarchy=function(r,e){for(var i=Object.getPrototypeOf(r);null!=i;){var o=i.constructor;o.hasOwnProperty("__agBeanMetaData")&&e(o.__agBeanMetaData,this.getBeanName(o)),i=Object.getPrototypeOf(i)}},t.prototype.getBeanName=function(r){if(r.__agBeanMetaData&&r.__agBeanMetaData.beanName)return r.__agBeanMetaData.beanName;var e=r.toString();return e.substring(9,e.indexOf("("))},t.prototype.getBeansForParameters=function(r,e){var i=this,o=[];return r&&Vo(r,function(s,a){var l=i.lookupBeanInstance(e,a);o[Number(s)]=l}),o},t.prototype.lookupBeanInstance=function(r,e,i){if(void 0===i&&(i=!1),"context"===e)return this;if(this.contextParams.providedBeanInstances&&this.contextParams.providedBeanInstances.hasOwnProperty(e))return this.contextParams.providedBeanInstances[e];var o=this.beanWrappers[e];return o?o.beanInstance:(i||console.error("AG Grid: unable to find bean reference "+e+" while initialising "+r),null)},t.prototype.callLifeCycleMethods=function(r,e){var i=this;r.forEach(function(o){return i.callLifeCycleMethodsOnBean(o,e)})},t.prototype.callLifeCycleMethodsOnBean=function(r,e,i){var o={};this.forEachMetaDataInHierarchy(r,function(a){var l=a[e];l&&l.forEach(function(c){c!=i&&(o[c]=!0)})}),Object.keys(o).forEach(function(a){return r[a]()})},t.prototype.getBean=function(r){return this.lookupBeanInstance("getBean",r,!0)},t.prototype.destroy=function(){if(!this.destroyed){this.logger.log(">> Shutting down ag-Application Context");var r=this.getBeanInstances();this.destroyBeans(r),this.contextParams.providedBeanInstances=null,this.destroyed=!0,this.logger.log(">> ag-Application Context shut down - component is dead")}},t.prototype.destroyBean=function(r){r&&this.destroyBeans([r])},t.prototype.destroyBeans=function(r){var e=this;return r?(r.forEach(function(i){e.callLifeCycleMethodsOnBean(i,"preDestroyMethods","destroy"),"function"==typeof i.destroy&&i.destroy()}),[]):[]},t}();function vh(t,r,e){var i=Cd(t.constructor);i.preConstructMethods||(i.preConstructMethods=[]),i.preConstructMethods.push(r)}function qi(t,r,e){var i=Cd(t.constructor);i.postConstructMethods||(i.postConstructMethods=[]),i.postConstructMethods.push(r)}function Ru(t,r,e){var i=Cd(t.constructor);i.preDestroyMethods||(i.preDestroyMethods=[]),i.preDestroyMethods.push(r)}function Kr(t){return function(r){Cd(r).beanName=t}}function Xe(t){return function(r,e,i){C0(r,t,!1,0,e,null)}}function _a(t){return function(r,e,i){C0(r,t,!0,0,e,null)}}function C0(t,r,e,i,o,s){if(null!==r)if("number"!=typeof s){var a=Cd(t.constructor);a.agClassAttributes||(a.agClassAttributes=[]),a.agClassAttributes.push({attributeName:o,beanName:r,optional:e})}else console.error("AG Grid: Autowired should be on an attribute");else console.error("AG Grid: Autowired name should not be null")}function Hc(t){return function(r,e,i){var s,o="function"==typeof r?r:r.constructor;if("number"==typeof i){var a=void 0;e?(s=Cd(o),a=e):(s=Cd(o),a="agConstructor"),s.autowireMethods||(s.autowireMethods={}),s.autowireMethods[a]||(s.autowireMethods[a]={}),s.autowireMethods[a][i]=t}}}function Cd(t){return t.hasOwnProperty("__agBeanMetaData")||(t.__agBeanMetaData={}),t.__agBeanMetaData}var p1=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},Ff=function(t,r){return function(e,i){r(e,i,t)}},fd=function(){function t(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}return t.prototype.setBeans=function(r,e,i,o){if(void 0===o&&(o=null),this.frameworkOverrides=i,o){var s=e.useAsyncEvents();this.addGlobalListener(o,s)}},t.prototype.getListeners=function(r,e,i){var o=e?this.allAsyncListeners:this.allSyncListeners,s=o.get(r);return!s&&i&&o.set(r,s=new Set),s},t.prototype.noRegisteredListenersExist=function(){return 0===this.allSyncListeners.size&&0===this.allAsyncListeners.size&&0===this.globalSyncListeners.size&&0===this.globalAsyncListeners.size},t.prototype.addEventListener=function(r,e,i){void 0===i&&(i=!1),this.getListeners(r,i,!0).add(e)},t.prototype.removeEventListener=function(r,e,i){void 0===i&&(i=!1);var o=this.getListeners(r,i,!1);o&&(o.delete(e),0===o.size)&&(i?this.allAsyncListeners:this.allSyncListeners).delete(r)},t.prototype.addGlobalListener=function(r,e){void 0===e&&(e=!1),(e?this.globalAsyncListeners:this.globalSyncListeners).add(r)},t.prototype.removeGlobalListener=function(r,e){void 0===e&&(e=!1),(e?this.globalAsyncListeners:this.globalSyncListeners).delete(r)},t.prototype.dispatchEvent=function(r){this.dispatchToListeners(r,!0),this.dispatchToListeners(r,!1),this.firedEvents[r.type]=!0},t.prototype.dispatchEventOnce=function(r){this.firedEvents[r.type]||this.dispatchEvent(r)},t.prototype.dispatchToListeners=function(r,e){var i=this,o=r.type,a=this.getListeners(o,e,!1);a&&a.forEach(function(d){e?i.dispatchAsync(function(){return d(r)}):d(r)}),(e?this.globalAsyncListeners:this.globalSyncListeners).forEach(function(c){e?i.dispatchAsync(function(){return i.frameworkOverrides.dispatchEvent(o,function(){return c(o,r)},!0)}):i.frameworkOverrides.dispatchEvent(o,function(){return c(o,r)},!0)})},t.prototype.dispatchAsync=function(r){this.asyncFunctionsQueue.push(r),this.scheduled||(window.setTimeout(this.flushAsyncQueue.bind(this),0),this.scheduled=!0)},t.prototype.flushAsyncQueue=function(){this.scheduled=!1;var r=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],r.forEach(function(e){return e()})},p1([Ff(0,Hc("loggerFactory")),Ff(1,Hc("gridOptionsWrapper")),Ff(2,Hc("frameworkOverrides")),Ff(3,Hc("globalEventListener"))],t.prototype,"setBeans",null),p1([Kr("eventService")],t)}(),Nn=function(){function t(){}return t.ROW_BUFFER_SIZE=10,t.LAYOUT_INTERVAL=500,t.BATCH_WAIT_MILLIS=50,t.EXPORT_TYPE_DRAG_COPY="dragCopy",t.EXPORT_TYPE_CLIPBOARD="clipboard",t.EXPORT_TYPE_EXCEL="excel",t.EXPORT_TYPE_CSV="csv",t.ROW_MODEL_TYPE_INFINITE="infinite",t.ROW_MODEL_TYPE_VIEWPORT="viewport",t.ROW_MODEL_TYPE_CLIENT_SIDE="clientSide",t.ROW_MODEL_TYPE_SERVER_SIDE="serverSide",t.ALWAYS="always",t.ONLY_WHEN_GROUPING="onlyWhenGrouping",t.PINNED_TOP="top",t.PINNED_BOTTOM="bottom",t.DOM_LAYOUT_NORMAL="normal",t.DOM_LAYOUT_PRINT="print",t.DOM_LAYOUT_AUTO_HEIGHT="autoHeight",t.GROUP_AUTO_COLUMN_ID="ag-Grid-AutoColumn",t.SOURCE_PASTE="paste",t.PINNED_RIGHT="right",t.PINNED_LEFT="left",t.SORT_ASC="asc",t.SORT_DESC="desc",t.INPUT_SELECTOR="input, select, button, textarea",t.FOCUSABLE_SELECTOR="[tabindex], input, select, button, textarea",t.FOCUSABLE_EXCLUDE=".ag-hidden, .ag-hidden *, [disabled], .ag-disabled, .ag-disabled *",t}(),mo=function(t){return t.CommunityCoreModule="@ag-grid-community/core",t.CommunityAllModules="@ag-grid-community/all",t.InfiniteRowModelModule="@ag-grid-community/infinite-row-model",t.ClientSideRowModelModule="@ag-grid-community/client-side-row-model",t.CsvExportModule="@ag-grid-community/csv-export",t.EnterpriseCoreModule="@ag-grid-enterprise/core",t.EnterpriseAllModules="@ag-grid-enterprise/all",t.RowGroupingModule="@ag-grid-enterprise/row-grouping",t.ColumnToolPanelModule="@ag-grid-enterprise/column-tool-panel",t.FiltersToolPanelModule="@ag-grid-enterprise/filter-tool-panel",t.MenuModule="@ag-grid-enterprise/menu",t.SetFilterModule="@ag-grid-enterprise/set-filter",t.MultiFilterModule="@ag-grid-enterprise/multi-filter",t.StatusBarModule="@ag-grid-enterprise/status-bar",t.SideBarModule="@ag-grid-enterprise/side-bar",t.RangeSelectionModule="@ag-grid-enterprise/range-selection",t.MasterDetailModule="@ag-grid-enterprise/master-detail",t.RichSelectModule="@ag-grid-enterprise/rich-select",t.GridChartsModule="@ag-grid-enterprise/charts",t.ViewportRowModelModule="@ag-grid-enterprise/viewport-row-model",t.ServerSideRowModelModule="@ag-grid-enterprise/server-side-row-model",t.ExcelExportModule="@ag-grid-enterprise/excel-export",t.ClipboardModule="@ag-grid-enterprise/clipboard",t.SparklinesModule="@ag-grid-enterprise/sparklines",t.AngularModule="@ag-grid-community/angular",t.ReactModule="@ag-grid-community/react",t.VueModule="@ag-grid-community/vue",t.PolymerModule="@ag-grid-community/polymer",t}(mo||{}),qo=function(){function t(){}return t.register=function(r,e){void 0===e&&(e=!0),t.modulesMap[r.moduleName]=r,void 0===t.moduleBased?t.moduleBased=e:t.moduleBased!==e&&sa(function(){console.warn("AG Grid: You are mixing modules (i.e. @ag-grid-community/core) and packages (ag-grid-community) - you can only use one or the other of these mechanisms."),console.warn("Please see https://www.ag-grid.com/javascript-grid/packages-modules/ for more information.")},"ModulePackageCheck")},t.registerModules=function(r,e){void 0===e&&(e=!0),r&&r.forEach(function(i){return t.register(i,e)})},t.assertRegistered=function(r,e){return!!this.isRegistered(r)||(o=t.moduleBased?"AG Grid: unable to use "+e+" as module "+r+" is not present. Please see: https://www.ag-grid.com/javascript-grid/modules/":"AG Grid: unable to use "+e+" as package 'ag-grid-enterprise' is not present. Please see: https://www.ag-grid.com/javascript-grid/packages/",sa(function(){console.warn(o)},e+r),!1);var o},t.isRegistered=function(r){return!!t.modulesMap[r]},t.getRegisteredModules=function(){return dd(t.modulesMap)},t.isPackageBased=function(){return!t.moduleBased},t.modulesMap={},t}(),zh=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},RT=0,ms=function(){function t(r,e,i,o){this.instanceId=RT++,this.autoHeaderHeight=null,this.moving=!1,this.menuVisible=!1,this.filterActive=!1,this.eventService=new fd,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.colDef=r,this.userProvidedColDef=e,this.colId=i,this.primary=o,this.setState(r)}return t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.setState=function(r){void 0!==r.sort?(r.sort===Nn.SORT_ASC||r.sort===Nn.SORT_DESC)&&(this.sort=r.sort):(r.initialSort===Nn.SORT_ASC||r.initialSort===Nn.SORT_DESC)&&(this.sort=r.initialSort);var e=ud(r.sortIndex),i=ud(r.initialSortIndex);void 0!==e?null!==e&&(this.sortIndex=e):null!==i&&(this.sortIndex=i);var o=$p(r.hide),s=$p(r.initialHide);this.visible=void 0!==o?!o:!s,this.setPinned(void 0!==r.pinned?r.pinned:r.initialPinned);var a=ud(r.flex),l=ud(r.initialFlex);void 0!==a?this.flex=a:void 0!==l&&(this.flex=l)},t.prototype.setColDef=function(r,e){this.colDef=r,this.userProvidedColDef=e,this.initMinAndMaxWidths(),this.initDotNotation()},t.prototype.getUserProvidedColDef=function(){return this.userProvidedColDef},t.prototype.setParent=function(r){this.parent=r},t.prototype.getParent=function(){return this.parent},t.prototype.setOriginalParent=function(r){this.originalParent=r},t.prototype.getOriginalParent=function(){return this.originalParent},t.prototype.initialise=function(){this.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.initDotNotation(),this.validate()},t.prototype.initDotNotation=function(){var r=this.gridOptionsWrapper.isSuppressFieldDotNotation();this.fieldContainsDots=rr(this.colDef.field)&&this.colDef.field.indexOf(".")>=0&&!r,this.tooltipFieldContainsDots=rr(this.colDef.tooltipField)&&this.colDef.tooltipField.indexOf(".")>=0&&!r},t.prototype.initMinAndMaxWidths=function(){var r=this.colDef;this.minWidth=this.columnUtils.calculateColMinWidth(r),this.maxWidth=this.columnUtils.calculateColMaxWidth(r)},t.prototype.resetActualWidth=function(r){void 0===r&&(r="api");var e=this.columnUtils.calculateColInitialWidth(this.colDef);this.setActualWidth(e,r,!0)},t.prototype.isEmptyGroup=function(){return!1},t.prototype.isRowGroupDisplayed=function(r){return!($o(this.colDef)||$o(this.colDef.showRowGroup)||!0!==this.colDef.showRowGroup&&this.colDef.showRowGroup!==r)},t.prototype.isPrimary=function(){return this.primary},t.prototype.isFilterAllowed=function(){return!!this.colDef.filter||!!this.colDef.filterFramework},t.prototype.isFieldContainsDots=function(){return this.fieldContainsDots},t.prototype.isTooltipFieldContainsDots=function(){return this.tooltipFieldContainsDots},t.prototype.validate=function(){var r=this.colDef;function e(a,l,c){sa(function(){c?console.warn(a,c):sa(function(){return console.warn(a)},l)},l)}this.gridOptionsWrapper.isRowModelDefault()&&!qo.isRegistered(mo.RowGroupingModule)&&["enableRowGroup","rowGroup","rowGroupIndex","enablePivot","enableValue","pivot","pivotIndex","aggFunc"].forEach(function(a){rr(r[a])&&(qo.isPackageBased()?e("AG Grid: "+a+" is only valid in ag-grid-enterprise, your column definition should not have "+a,"ColumnRowGroupingMissing"+a):e("AG Grid: "+a+" is only valid with AG Grid Enterprise Module "+mo.RowGroupingModule+" - your column definition should not have "+a,"ColumnRowGroupingMissing"+a))}),qo.isRegistered(mo.RichSelectModule)||("agRichSelect"===this.colDef.cellEditor||"agRichSelectCellEditor"===this.colDef.cellEditor)&&(qo.isPackageBased()?e("AG Grid: "+this.colDef.cellEditor+" can only be used with ag-grid-enterprise","ColumnRichSelectMissing"):e("AG Grid: "+this.colDef.cellEditor+" can only be used with AG Grid Enterprise Module "+mo.RichSelectModule,"ColumnRichSelectMissing")),this.gridOptionsWrapper.isTreeData()&&["rowGroup","rowGroupIndex","pivot","pivotIndex"].forEach(function(a){rr(r[a])&&e("AG Grid: "+a+" is not possible when doing tree data, your column definition should not have "+a,"TreeDataCannotRowGroup")}),rr(this.colDef.width)&&"number"!=typeof this.colDef.width&&e("AG Grid: colDef.width should be a number, not "+typeof this.colDef.width,"ColumnCheck_asdfawef"),r.pinnedRowCellRenderer&&e("AG Grid: pinnedRowCellRenderer no longer exists, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue. See https://www.ag-grid.com/javascript-grid/cell-rendering/#many-renderers-one-column","colDef.pinnedRowCellRenderer-deprecated"),r.pinnedRowCellRendererParams&&e("AG Grid: pinnedRowCellRenderer no longer exists, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue. See https://www.ag-grid.com/javascript-grid/cell-rendering/#many-renderers-one-column","colDef.pinnedRowCellRenderer-deprecated"),r.pinnedRowCellRendererFramework&&e("AG Grid: pinnedRowCellRenderer no longer exists, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue. See https://www.ag-grid.com/javascript-grid/cell-rendering/#many-renderers-one-column","colDef.pinnedRowCellRenderer-deprecated"),r.pinnedRowValueGetter&&e("AG Grid: pinnedRowCellRenderer is deprecated, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue.","colDef.pinnedRowCellRenderer-deprecated")},t.prototype.addEventListener=function(r,e){this.eventService.addEventListener(r,e)},t.prototype.removeEventListener=function(r,e){this.eventService.removeEventListener(r,e)},t.prototype.createColumnFunctionCallbackParams=function(r){return{node:r,data:r.data,column:this,colDef:this.colDef,context:this.gridOptionsWrapper.getContext(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()}},t.prototype.isSuppressNavigable=function(r){if("boolean"==typeof this.colDef.suppressNavigable)return this.colDef.suppressNavigable;if("function"==typeof this.colDef.suppressNavigable){var e=this.createColumnFunctionCallbackParams(r);return(0,this.colDef.suppressNavigable)(e)}return!1},t.prototype.isCellEditable=function(r){return!(r.group&&!this.gridOptionsWrapper.isEnableGroupEdit())&&this.isColumnFunc(r,this.colDef.editable)},t.prototype.isSuppressFillHandle=function(){return!!$p(this.colDef.suppressFillHandle)},t.prototype.isAutoHeight=function(){return!!$p(this.colDef.autoHeight)},t.prototype.isAutoHeaderHeight=function(){return!!$p(this.colDef.autoHeaderHeight)},t.prototype.isRowDrag=function(r){return this.isColumnFunc(r,this.colDef.rowDrag)},t.prototype.isDndSource=function(r){return this.isColumnFunc(r,this.colDef.dndSource)},t.prototype.isCellCheckboxSelection=function(r){return this.isColumnFunc(r,this.colDef.checkboxSelection)},t.prototype.isSuppressPaste=function(r){return this.isColumnFunc(r,this.colDef?this.colDef.suppressPaste:null)},t.prototype.isResizable=function(){return!!$p(this.colDef.resizable)},t.prototype.isColumnFunc=function(r,e){return"boolean"==typeof e?e:"function"==typeof e&&e(this.createColumnFunctionCallbackParams(r))},t.prototype.setMoving=function(r,e){void 0===e&&(e="api"),this.moving=r,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_MOVING_CHANGED,e))},t.prototype.createColumnEvent=function(r,e){return{api:this.gridApi,columnApi:this.columnApi,type:r,column:this,columns:[this],source:e}},t.prototype.isMoving=function(){return this.moving},t.prototype.getSort=function(){return this.sort},t.prototype.setSort=function(r,e){void 0===e&&(e="api"),this.sort!==r&&(this.sort=r,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_SORT_CHANGED,e)))},t.prototype.setMenuVisible=function(r,e){void 0===e&&(e="api"),this.menuVisible!==r&&(this.menuVisible=r,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_MENU_VISIBLE_CHANGED,e)))},t.prototype.isMenuVisible=function(){return this.menuVisible},t.prototype.isSortAscending=function(){return this.sort===Nn.SORT_ASC},t.prototype.isSortDescending=function(){return this.sort===Nn.SORT_DESC},t.prototype.isSortNone=function(){return $o(this.sort)},t.prototype.isSorting=function(){return rr(this.sort)},t.prototype.getSortIndex=function(){return this.sortIndex},t.prototype.setSortIndex=function(r){this.sortIndex=r},t.prototype.setAggFunc=function(r){this.aggFunc=r},t.prototype.getAggFunc=function(){return this.aggFunc},t.prototype.getLeft=function(){return this.left},t.prototype.getOldLeft=function(){return this.oldLeft},t.prototype.getRight=function(){return this.left+this.actualWidth},t.prototype.setLeft=function(r,e){void 0===e&&(e="api"),this.oldLeft=this.left,this.left!==r&&(this.left=r,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_LEFT_CHANGED,e)))},t.prototype.isFilterActive=function(){return this.filterActive},t.prototype.setFilterActive=function(r,e,i){void 0===e&&(e="api"),this.filterActive!==r&&(this.filterActive=r,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_FILTER_ACTIVE_CHANGED,e)));var o=this.createColumnEvent(t.EVENT_FILTER_CHANGED,e);i&&Es(o,i),this.eventService.dispatchEvent(o)},t.prototype.setPinned=function(r){this.pinned=!0===r||r===Nn.PINNED_LEFT?Nn.PINNED_LEFT:r===Nn.PINNED_RIGHT?Nn.PINNED_RIGHT:null},t.prototype.setFirstRightPinned=function(r,e){void 0===e&&(e="api"),this.firstRightPinned!==r&&(this.firstRightPinned=r,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_FIRST_RIGHT_PINNED_CHANGED,e)))},t.prototype.setLastLeftPinned=function(r,e){void 0===e&&(e="api"),this.lastLeftPinned!==r&&(this.lastLeftPinned=r,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_LAST_LEFT_PINNED_CHANGED,e)))},t.prototype.isFirstRightPinned=function(){return this.firstRightPinned},t.prototype.isLastLeftPinned=function(){return this.lastLeftPinned},t.prototype.isPinned=function(){return this.pinned===Nn.PINNED_LEFT||this.pinned===Nn.PINNED_RIGHT},t.prototype.isPinnedLeft=function(){return this.pinned===Nn.PINNED_LEFT},t.prototype.isPinnedRight=function(){return this.pinned===Nn.PINNED_RIGHT},t.prototype.getPinned=function(){return this.pinned},t.prototype.setVisible=function(r,e){void 0===e&&(e="api");var i=!0===r;this.visible!==i&&(this.visible=i,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_VISIBLE_CHANGED,e)))},t.prototype.isVisible=function(){return this.visible},t.prototype.getColDef=function(){return this.colDef},t.prototype.getColumnGroupShow=function(){return this.colDef.columnGroupShow},t.prototype.getColId=function(){return this.colId},t.prototype.getId=function(){return this.getColId()},t.prototype.getUniqueId=function(){return this.getId()},t.prototype.getDefinition=function(){return this.colDef},t.prototype.getActualWidth=function(){return this.actualWidth},t.prototype.getAutoHeaderHeight=function(){return this.autoHeaderHeight},t.prototype.setAutoHeaderHeight=function(r){var e=r!==this.autoHeaderHeight;return this.autoHeaderHeight=r,e},t.prototype.createBaseColDefParams=function(r){return{node:r,data:r.data,colDef:this.colDef,column:this,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}},t.prototype.getColSpan=function(r){if($o(this.colDef.colSpan))return 1;var e=this.createBaseColDefParams(r),i=this.colDef.colSpan(e);return Math.max(i,1)},t.prototype.getRowSpan=function(r){if($o(this.colDef.rowSpan))return 1;var e=this.createBaseColDefParams(r),i=this.colDef.rowSpan(e);return Math.max(i,1)},t.prototype.setActualWidth=function(r,e,i){void 0===e&&(e="api"),void 0===i&&(i=!1),null!=this.minWidth&&(r=Math.max(r,this.minWidth)),null!=this.maxWidth&&(r=Math.min(r,this.maxWidth)),this.actualWidth!==r&&(this.actualWidth=r,this.flex&&"flex"!==e&&"gridInitializing"!==e&&(this.flex=null),i||this.fireColumnWidthChangedEvent(e))},t.prototype.fireColumnWidthChangedEvent=function(r){this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_WIDTH_CHANGED,r))},t.prototype.isGreaterThanMax=function(r){return null!=this.maxWidth&&r>this.maxWidth},t.prototype.getMinWidth=function(){return this.minWidth},t.prototype.getMaxWidth=function(){return this.maxWidth},t.prototype.getFlex=function(){return this.flex||0},t.prototype.setFlex=function(r){this.flex!==r&&(this.flex=r)},t.prototype.setMinimum=function(r){void 0===r&&(r="api"),rr(this.minWidth)&&this.setActualWidth(this.minWidth,r)},t.prototype.setRowGroupActive=function(r,e){void 0===e&&(e="api"),this.rowGroupActive!==r&&(this.rowGroupActive=r,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_ROW_GROUP_CHANGED,e)))},t.prototype.isRowGroupActive=function(){return this.rowGroupActive},t.prototype.setPivotActive=function(r,e){void 0===e&&(e="api"),this.pivotActive!==r&&(this.pivotActive=r,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_PIVOT_CHANGED,e)))},t.prototype.isPivotActive=function(){return this.pivotActive},t.prototype.isAnyFunctionActive=function(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()},t.prototype.isAnyFunctionAllowed=function(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()},t.prototype.setValueActive=function(r,e){void 0===e&&(e="api"),this.aggregationActive!==r&&(this.aggregationActive=r,this.eventService.dispatchEvent(this.createColumnEvent(t.EVENT_VALUE_CHANGED,e)))},t.prototype.isValueActive=function(){return this.aggregationActive},t.prototype.isAllowPivot=function(){return!0===this.colDef.enablePivot},t.prototype.isAllowValue=function(){return!0===this.colDef.enableValue},t.prototype.isAllowRowGroup=function(){return!0===this.colDef.enableRowGroup},t.prototype.getMenuTabs=function(r){var e=this.getColDef().menuTabs;return null==e&&(e=r),e},t.prototype.isLockPosition=function(){return console.warn("AG Grid: since v21, col.isLockPosition() should not be used, please use col.getColDef().lockPosition instead."),!!this.colDef&&!!this.colDef.lockPosition},t.prototype.isLockVisible=function(){return console.warn("AG Grid: since v21, col.isLockVisible() should not be used, please use col.getColDef().lockVisible instead."),!!this.colDef&&!!this.colDef.lockVisible},t.prototype.isLockPinned=function(){return console.warn("AG Grid: since v21, col.isLockPinned() should not be used, please use col.getColDef().lockPinned instead."),!!this.colDef&&!!this.colDef.lockPinned},t.EVENT_MOVING_CHANGED="movingChanged",t.EVENT_LEFT_CHANGED="leftChanged",t.EVENT_WIDTH_CHANGED="widthChanged",t.EVENT_LAST_LEFT_PINNED_CHANGED="lastLeftPinnedChanged",t.EVENT_FIRST_RIGHT_PINNED_CHANGED="firstRightPinnedChanged",t.EVENT_VISIBLE_CHANGED="visibleChanged",t.EVENT_FILTER_CHANGED="filterChanged",t.EVENT_FILTER_ACTIVE_CHANGED="filterActiveChanged",t.EVENT_SORT_CHANGED="sortChanged",t.EVENT_MENU_VISIBLE_CHANGED="menuVisibleChanged",t.EVENT_ROW_GROUP_CHANGED="columnRowGroupChanged",t.EVENT_PIVOT_CHANGED="columnPivotChanged",t.EVENT_VALUE_CHANGED="columnValueChanged",zh([Xe("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),zh([Xe("columnUtils")],t.prototype,"columnUtils",void 0),zh([Xe("columnApi")],t.prototype,"columnApi",void 0),zh([Xe("gridApi")],t.prototype,"gridApi",void 0),zh([Xe("context")],t.prototype,"context",void 0),zh([qi],t.prototype,"initialise",null),t}();function h1(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var e=0;e<t.length;e++){var i=t[e];if(rr(i))return i}return null}function f1(t){return null!=t&&t.length>0}function Ja(t){if(t&&t.length)return t[t.length-1]}function $l(t,r,e){return null==t&&null==r||null!=t&&null!=r&&t.length===r.length&&t.every(function(i,o){return e?e(i,r[o]):r[o]===i})}function sC(t,r){return $l(t,r)}function aC(t,r){return $l(t,r)}function OT(t){return t.sort(function(r,e){return r-e})}function i_(t,r){if(t)for(var e=t.length-2;e>=0;e--)t[e]===r&&t[e+1]===r&&t.splice(e+1,1)}function Yl(t,r){var e=t.indexOf(r);e>=0&&t.splice(e,1)}function Rg(t,r){r.forEach(function(e){return Yl(t,e)})}function qh(t,r,e){t.splice(e,0,r)}function Wp(t,r,e){if(null!=t&&null!=r)for(var i=r.length-1;i>=0;i--)qh(t,r[i],e)}function Ee(t,r,e){Rg(t,r),r.slice().reverse().forEach(function(i){return qh(t,i,e)})}function ht(t,r){return t.indexOf(r)>-1}function sn(t){return[].concat.apply([],t)}function Pn(t,r){null==r||null==t||r.forEach(function(e){return t.push(e)})}function Jn(t){return t.map(Up)}function zi(t,r){if(null!=t)for(var e=t.length-1;e>=0;e--)r(t[e],e)}var zr=function(){function t(r,e,i,o){this.displayedChildren=[],this.localEventService=new fd,this.groupId=e,this.instanceId=i,this.providedColumnGroup=r,this.pinned=o}return t.createUniqueId=function(r,e){return r+"_"+e},t.prototype.reset=function(){this.parent=null,this.children=null,this.displayedChildren=null},t.prototype.getParent=function(){return this.parent},t.prototype.setParent=function(r){this.parent=r},t.prototype.getUniqueId=function(){return t.createUniqueId(this.groupId,this.instanceId)},t.prototype.isEmptyGroup=function(){return 0===this.displayedChildren.length},t.prototype.isMoving=function(){var r=this.getProvidedColumnGroup().getLeafColumns();return!(!r||0===r.length)&&r.every(function(e){return e.isMoving()})},t.prototype.checkLeft=function(){if(this.displayedChildren.forEach(function(o){o instanceof t&&o.checkLeft()}),this.displayedChildren.length>0)if(this.gridOptionsWrapper.isEnableRtl()){var e=Ja(this.displayedChildren).getLeft();this.setLeft(e)}else{var i=this.displayedChildren[0].getLeft();this.setLeft(i)}else this.setLeft(null)},t.prototype.getLeft=function(){return this.left},t.prototype.getOldLeft=function(){return this.oldLeft},t.prototype.setLeft=function(r){this.oldLeft=r,this.left!==r&&(this.left=r,this.localEventService.dispatchEvent(this.createAgEvent(t.EVENT_LEFT_CHANGED)))},t.prototype.getPinned=function(){return this.pinned},t.prototype.createAgEvent=function(r){return{type:r}},t.prototype.addEventListener=function(r,e){this.localEventService.addEventListener(r,e)},t.prototype.removeEventListener=function(r,e){this.localEventService.removeEventListener(r,e)},t.prototype.getGroupId=function(){return this.groupId},t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.isChildInThisGroupDeepSearch=function(r){var e=!1;return this.children.forEach(function(i){r===i&&(e=!0),i instanceof t&&i.isChildInThisGroupDeepSearch(r)&&(e=!0)}),e},t.prototype.getActualWidth=function(){var r=0;return this.displayedChildren&&this.displayedChildren.forEach(function(e){r+=e.getActualWidth()}),r},t.prototype.isResizable=function(){if(!this.displayedChildren)return!1;var r=!1;return this.displayedChildren.forEach(function(e){e.isResizable()&&(r=!0)}),r},t.prototype.getMinWidth=function(){var r=0;return this.displayedChildren.forEach(function(e){r+=e.getMinWidth()||0}),r},t.prototype.addChild=function(r){this.children||(this.children=[]),this.children.push(r)},t.prototype.getDisplayedChildren=function(){return this.displayedChildren},t.prototype.getLeafColumns=function(){var r=[];return this.addLeafColumns(r),r},t.prototype.getDisplayedLeafColumns=function(){var r=[];return this.addDisplayedLeafColumns(r),r},t.prototype.getDefinition=function(){return this.providedColumnGroup.getColGroupDef()},t.prototype.getColGroupDef=function(){return this.providedColumnGroup.getColGroupDef()},t.prototype.isPadding=function(){return this.providedColumnGroup.isPadding()},t.prototype.isExpandable=function(){return this.providedColumnGroup.isExpandable()},t.prototype.isExpanded=function(){return this.providedColumnGroup.isExpanded()},t.prototype.setExpanded=function(r){this.providedColumnGroup.setExpanded(r)},t.prototype.addDisplayedLeafColumns=function(r){this.displayedChildren.forEach(function(e){e instanceof ms?r.push(e):e instanceof t&&e.addDisplayedLeafColumns(r)})},t.prototype.addLeafColumns=function(r){this.children.forEach(function(e){e instanceof ms?r.push(e):e instanceof t&&e.addLeafColumns(r)})},t.prototype.getChildren=function(){return this.children},t.prototype.getColumnGroupShow=function(){return this.providedColumnGroup.getColumnGroupShow()},t.prototype.getProvidedColumnGroup=function(){return this.providedColumnGroup},t.prototype.getOriginalColumnGroup=function(){return console.warn("AG Grid: columnGroup.getOriginalColumnGroup() is deprecated due to a method rename, use columnGroup.getProvidedColumnGroup() instead"),this.getProvidedColumnGroup()},t.prototype.getPaddingLevel=function(){var r=this.getParent();return this.isPadding()&&r&&r.isPadding()?1+r.getPaddingLevel():0},t.prototype.calculateDisplayedColumns=function(){var r=this;this.displayedChildren=[];for(var e=this;null!=e&&e.isPadding();)e=e.getParent();if(!e||!e.providedColumnGroup.isExpandable())return this.displayedChildren=this.children,void this.localEventService.dispatchEvent(this.createAgEvent(t.EVENT_DISPLAYED_CHILDREN_CHANGED));this.children.forEach(function(o){if(!(o instanceof t)||o.displayedChildren&&o.displayedChildren.length)switch(o.getColumnGroupShow()){case t.HEADER_GROUP_SHOW_OPEN:e.providedColumnGroup.isExpanded()&&r.displayedChildren.push(o);break;case t.HEADER_GROUP_SHOW_CLOSED:e.providedColumnGroup.isExpanded()||r.displayedChildren.push(o);break;default:r.displayedChildren.push(o)}}),this.localEventService.dispatchEvent(this.createAgEvent(t.EVENT_DISPLAYED_CHILDREN_CHANGED))},t.HEADER_GROUP_SHOW_OPEN="open",t.HEADER_GROUP_SHOW_CLOSED="closed",t.EVENT_LEFT_CHANGED="leftChanged",t.EVENT_DISPLAYED_CHILDREN_CHANGED="displayedChildrenChanged",function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);o>3&&s&&Object.defineProperty(r,e,s)}([Xe("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),t}(),Zr=function(){function t(r,e,i,o){this.localEventService=new fd,this.expandable=!1,this.colGroupDef=r,this.groupId=e,this.expanded=!!r&&!!r.openByDefault,this.padding=i,this.level=o}return t.prototype.setOriginalParent=function(r){this.originalParent=r},t.prototype.getOriginalParent=function(){return this.originalParent},t.prototype.getLevel=function(){return this.level},t.prototype.isVisible=function(){return!!this.children&&this.children.some(function(r){return r.isVisible()})},t.prototype.isPadding=function(){return this.padding},t.prototype.setExpanded=function(r){this.expanded=void 0!==r&&r,this.localEventService.dispatchEvent({type:t.EVENT_EXPANDED_CHANGED})},t.prototype.isExpandable=function(){return this.expandable},t.prototype.isExpanded=function(){return this.expanded},t.prototype.getGroupId=function(){return this.groupId},t.prototype.getId=function(){return this.getGroupId()},t.prototype.setChildren=function(r){this.children=r},t.prototype.getChildren=function(){return this.children},t.prototype.getColGroupDef=function(){return this.colGroupDef},t.prototype.getLeafColumns=function(){var r=[];return this.addLeafColumns(r),r},t.prototype.addLeafColumns=function(r){this.children&&this.children.forEach(function(e){e instanceof ms?r.push(e):e instanceof t&&e.addLeafColumns(r)})},t.prototype.getColumnGroupShow=function(){var r=this.colGroupDef;if(r)return r.columnGroupShow},t.prototype.setupExpandable=function(){var r=this;this.setExpandable(),this.getLeafColumns().forEach(function(e){return e.addEventListener(ms.EVENT_VISIBLE_CHANGED,r.onColumnVisibilityChanged.bind(r))})},t.prototype.setExpandable=function(){if(!this.isPadding()){for(var r=!1,e=!1,i=!1,o=this.findChildrenRemovingPadding(),s=0,a=o.length;s<a;s++){var l=o[s];if(l.isVisible()){var c=l.getColumnGroupShow();c===zr.HEADER_GROUP_SHOW_OPEN?(r=!0,i=!0):c===zr.HEADER_GROUP_SHOW_CLOSED?(e=!0,i=!0):(r=!0,e=!0)}}var d=r&&e&&i;this.expandable!==d&&(this.expandable=d,this.localEventService.dispatchEvent({type:t.EVENT_EXPANDABLE_CHANGED}))}},t.prototype.findChildrenRemovingPadding=function(){var r=[],e=function(i){i.forEach(function(o){o instanceof t&&o.isPadding()?e(o.children):r.push(o)})};return e(this.children),r},t.prototype.onColumnVisibilityChanged=function(){this.setExpandable()},t.prototype.addEventListener=function(r,e){this.localEventService.addEventListener(r,e)},t.prototype.removeEventListener=function(r,e){this.localEventService.removeEventListener(r,e)},t.EVENT_EXPANDED_CHANGED="expandedChanged",t.EVENT_EXPANDABLE_CHANGED="expandableChanged",t}(),aa={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}},ra="__ag_Grid_Stop_Propagation",Cl=["touchstart","touchend","touchmove","touchcancel"],yc={};function Wl(t){t[ra]=!0}function Jl(t){return!0===t[ra]}var Ca=function(){var t={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return function(e){if("boolean"==typeof yc[e])return yc[e];var i=document.createElement(t[e]||"div");return yc[e="on"+e]=e in i}}();function Ou(t,r,e){for(var i=r.target;i;){var o=t.getDomData(i,e);if(o)return o;i=i.parentElement}return null}function _h(t,r){t.addEventListener("changed",r),t.addEventListener("paste",r),t.addEventListener("input",r)}function sp(t,r){return!(!r||!t)&&Og(r).indexOf(t)>=0}function Pf(t){for(var r=[],e=t.target;e;)r.push(e),e=e.parentElement;return r}function w0(t){t.__agGridEventPath=Og(t)}function Og(t){var r=t;return r.path?r.path:r.composedPath?r.composedPath():r.__agGridEventPath?r.__agGridEventPath:Pf(t)}function r_(t,r,e,i){var o=ht(Cl,e);t&&t.addEventListener&&t.addEventListener(r,e,i,o?{passive:!0}:void 0)}var Xh=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},Zi=function(){function t(){var r=this;this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.isAlive=function(){return!r.destroyed}}return t.prototype.getFrameworkOverrides=function(){return this.frameworkOverrides},t.prototype.getContext=function(){return this.context},t.prototype.destroy=function(){this.destroyFunctions.forEach(function(r){return r()}),this.destroyFunctions.length=0,this.destroyed=!0,this.dispatchEvent({type:t.EVENT_DESTROYED})},t.prototype.addEventListener=function(r,e){this.localEventService||(this.localEventService=new fd),this.localEventService.addEventListener(r,e)},t.prototype.removeEventListener=function(r,e){this.localEventService&&this.localEventService.removeEventListener(r,e)},t.prototype.dispatchEventAsync=function(r){var e=this;window.setTimeout(function(){return e.dispatchEvent(r)},0)},t.prototype.dispatchEvent=function(r){this.localEventService&&this.localEventService.dispatchEvent(r)},t.prototype.addManagedListener=function(r,e,i){var o=this;if(!this.destroyed){r instanceof HTMLElement?r_(this.getFrameworkOverrides(),r,e,i):r.addEventListener(e,i);var s=function(){return r.removeEventListener(e,i),o.destroyFunctions=o.destroyFunctions.filter(function(a){return a!==s}),null};return this.destroyFunctions.push(s),s}},t.prototype.addDestroyFunc=function(r){this.isAlive()?this.destroyFunctions.push(r):r()},t.prototype.createManagedBean=function(r,e){var i=this.createBean(r,e);return this.addDestroyFunc(this.destroyBean.bind(this,r,e)),i},t.prototype.createBean=function(r,e,i){return(e||this.getContext()).createBean(r,i)},t.prototype.destroyBean=function(r,e){return(e||this.getContext()).destroyBean(r)},t.prototype.destroyBeans=function(r,e){var i=this;return r&&r.forEach(function(o){return i.destroyBean(o,e)}),[]},t.EVENT_DESTROYED="destroyed",Xh([Xe("frameworkOverrides")],t.prototype,"frameworkOverrides",void 0),Xh([Xe("context")],t.prototype,"context",void 0),Xh([Xe("eventService")],t.prototype,"eventService",void 0),Xh([Xe("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Xh([Ru],t.prototype,"destroy",null),t}(),m1=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),$m=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},Bd=function(t,r){return function(e,i){r(e,i,t)}},zp=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return m1(r,t),r.prototype.setBeans=function(e){this.logger=e.create("ColumnFactory")},r.prototype.createColumnTree=function(e,i,o){var s=new pm,a=this.extractExistingTreeData(o),l=a.existingCols,c=a.existingGroups;s.addExistingKeys(a.existingColKeys);var f=this.recursivelyCreateColumns(e,0,i,l,s,c),v=this.findMaxDept(f,0);this.logger.log("Number of levels for grouped columns is "+v);var w=this.balanceColumnTree(f,0,v,s);return this.columnUtils.depthFirstOriginalTreeSearch(null,w,function(I,M){I instanceof Zr&&I.setupExpandable(),I.setOriginalParent(M)}),{columnTree:w,treeDept:v}},r.prototype.extractExistingTreeData=function(e){var i=[],o=[],s=[];return e&&this.columnUtils.depthFirstOriginalTreeSearch(null,e,function(a){if(a instanceof Zr)o.push(a);else{var c=a;s.push(c.getId()),i.push(c)}}),{existingCols:i,existingGroups:o,existingColKeys:s}},r.prototype.createForAutoGroups=function(e,i){var o=this;return e.map(function(s){return o.createAutoGroupTreeItem(i,s)})},r.prototype.createAutoGroupTreeItem=function(e,i){for(var s=i,a=this.findDepth(e)-1;a>=0;a--){var l=new Zr(null,"FAKE_PATH_"+i.getId()+"}_"+a,!0,a);this.context.createBean(l),l.setChildren([s]),s.setOriginalParent(l),s=l}return s},r.prototype.findDepth=function(e){for(var i=0,o=e;o&&o[0]&&o[0]instanceof Zr;)i++,o=o[0].getChildren();return i},r.prototype.balanceColumnTree=function(e,i,o,s){for(var a=[],l=0;l<e.length;l++){var c=e[l];if(c instanceof Zr){var d=c,f=this.balanceColumnTree(d.getChildren(),i+1,o,s);d.setChildren(f),a.push(d)}else{for(var v=void 0,w=void 0,x=o-1;x>=i;x--){var I=s.getUniqueKey(null,null),M=this.createMergedColGroupDef(null),F=new Zr(M,I,!0,i);this.context.createBean(F),w&&w.setChildren([F]),w=F,v||(v=w)}if(v&&w){if(a.push(v),e.some(function(pe){return pe instanceof Zr})){w.setChildren([c]);continue}w.setChildren(e);break}a.push(c)}}return a},r.prototype.findMaxDept=function(e,i){for(var o=i,s=0;s<e.length;s++){var a=e[s];if(a instanceof Zr){var c=this.findMaxDept(a.getChildren(),i+1);o<c&&(o=c)}}return o},r.prototype.recursivelyCreateColumns=function(e,i,o,s,a,l){var c=this;return(e||[]).map(function(d){return c.isColumnGroup(d)?c.createColumnGroup(o,d,i,s,a,l):c.createColumn(o,d,s,a)})},r.prototype.createColumnGroup=function(e,i,o,s,a,l){var c=this.createMergedColGroupDef(i),d=a.getUniqueKey(c.groupId||null,null),f=new Zr(c,d,!1,o);this.context.createBean(f);var v=this.findExistingGroup(i,l);v&&Yl(l,v),v&&v.isExpanded()&&f.setExpanded(!0);var w=this.recursivelyCreateColumns(c.children,o+1,e,s,a,l);return f.setChildren(w),f},r.prototype.createMergedColGroupDef=function(e){var i={};return Object.assign(i,this.gridOptionsWrapper.getDefaultColGroupDef()),Object.assign(i,e),this.checkForDeprecatedItems(i),i},r.prototype.createColumn=function(e,i,o,s){var a=this.mergeColDefs(i);this.checkForDeprecatedItems(a);var l=this.findExistingColumn(i,o);if(o&&l&&Yl(o,l),l)l.setColDef(a,i),this.applyColumnState(l,a);else{var c=s.getUniqueKey(a.colId,a.field);l=new ms(a,i,c,e),this.context.createBean(l)}return l},r.prototype.applyColumnState=function(e,i){var o=ud(i.flex);if(void 0!==o&&e.setFlex(o),e.getFlex()<=0){var a=ud(i.width);if(null!=a)e.setActualWidth(a);else{var l=e.getActualWidth();e.setActualWidth(l)}}void 0!==i.sort&&e.setSort(i.sort==Nn.SORT_ASC||i.sort==Nn.SORT_DESC?i.sort:void 0);var c=ud(i.sortIndex);void 0!==c&&e.setSortIndex(c);var d=$p(i.hide);void 0!==d&&e.setVisible(!d),void 0!==i.pinned&&e.setPinned(i.pinned)},r.prototype.findExistingColumn=function(e,i){return(i||[]).find(function(o){var s=o.getUserProvidedColDef();if(!s)return!1;var l=null!=e.field;return null!=e.colId?o.getId()===e.colId:l?s.field===e.field:s===e})},r.prototype.findExistingGroup=function(e,i){return i.find(function(o){return!(!o.getColGroupDef()||null==e.groupId||o.getId()!==e.groupId)})},r.prototype.mergeColDefs=function(e){var i={},o=this.gridOptionsWrapper.getDefaultColDef();Es(i,o,!1,!0);var s=e.type;s||(s=o&&o.type),s&&this.assignColumnTypes(s,i),Es(i,e,!1,!0);var a=this.gridOptionsWrapper.getAutoGroupColumnDef(),l=this.gridOptionsWrapper.isColumnsSortingCoupledToGroup();return e.rowGroup&&a&&l&&Es(i,{sort:a.sort,initialSort:a.initialSort},!1,!0),i},r.prototype.assignColumnTypes=function(e,i){var o=[];if(e instanceof Array)e.some(function(c){return"string"!=typeof c})?console.warn("AG Grid: if colDef.type is supplied an array it should be of type 'string[]'"):o=e;else{if("string"!=typeof e)return void console.warn("AG Grid: colDef.type should be of type 'string' | 'string[]'");o=e.split(",")}var a=Object.assign({},aa);Vo(this.gridOptionsWrapper.getColumnTypes()||{},function(c,d){c in a?console.warn("AG Grid: the column type '"+c+"' is a default column type and cannot be overridden."):a[c]=d}),o.forEach(function(c){var d=a[c.trim()];d?Es(i,d,!1,!0):console.warn("AG Grid: colDef.type '"+c+"' does not correspond to defined gridOptions.columnTypes")})},r.prototype.checkForDeprecatedItems=function(e){if(e){var i=e;void 0!==i.group&&console.warn("AG Grid: colDef.group is invalid, please check documentation on how to do grouping as it changed in version 3"),void 0!==i.headerGroup&&console.warn("AG Grid: colDef.headerGroup is invalid, please check documentation on how to do grouping as it changed in version 3"),void 0!==i.headerGroupShow&&console.warn("AG Grid: colDef.headerGroupShow is invalid, should be columnGroupShow, please check documentation on how to do grouping as it changed in version 3"),void 0!==i.suppressRowGroup&&console.warn("AG Grid: colDef.suppressRowGroup is deprecated, please use colDef.type instead"),void 0!==i.suppressAggregation&&console.warn("AG Grid: colDef.suppressAggregation is deprecated, please use colDef.type instead"),(i.suppressRowGroup||i.suppressAggregation)&&console.warn("AG Grid: colDef.suppressAggregation and colDef.suppressRowGroup are deprecated, use allowRowGroup, allowPivot and allowValue instead"),i.displayName&&(console.warn("AG Grid: Found displayName "+i.displayName+", please use headerName instead, displayName is deprecated."),i.headerName=i.displayName)}},r.prototype.isColumnGroup=function(e){return void 0!==e.children},$m([Xe("columnUtils")],r.prototype,"columnUtils",void 0),$m([Bd(0,Hc("loggerFactory"))],r.prototype,"setBeans",null),$m([Kr("columnFactory")],r)}(Zi),Et=function(){function t(){}return t.EVENT_COLUMN_EVERYTHING_CHANGED="columnEverythingChanged",t.EVENT_NEW_COLUMNS_LOADED="newColumnsLoaded",t.EVENT_COLUMN_PIVOT_MODE_CHANGED="columnPivotModeChanged",t.EVENT_COLUMN_ROW_GROUP_CHANGED="columnRowGroupChanged",t.EVENT_EXPAND_COLLAPSE_ALL="expandOrCollapseAll",t.EVENT_COLUMN_PIVOT_CHANGED="columnPivotChanged",t.EVENT_GRID_COLUMNS_CHANGED="gridColumnsChanged",t.EVENT_COLUMN_VALUE_CHANGED="columnValueChanged",t.EVENT_COLUMN_MOVED="columnMoved",t.EVENT_COLUMN_VISIBLE="columnVisible",t.EVENT_COLUMN_PINNED="columnPinned",t.EVENT_COLUMN_GROUP_OPENED="columnGroupOpened",t.EVENT_COLUMN_RESIZED="columnResized",t.EVENT_DISPLAYED_COLUMNS_CHANGED="displayedColumnsChanged",t.EVENT_VIRTUAL_COLUMNS_CHANGED="virtualColumnsChanged",t.EVENT_ASYNC_TRANSACTIONS_FLUSHED="asyncTransactionsFlushed",t.EVENT_ROW_GROUP_OPENED="rowGroupOpened",t.EVENT_ROW_DATA_CHANGED="rowDataChanged",t.EVENT_ROW_DATA_UPDATED="rowDataUpdated",t.EVENT_PINNED_ROW_DATA_CHANGED="pinnedRowDataChanged",t.EVENT_RANGE_SELECTION_CHANGED="rangeSelectionChanged",t.EVENT_CHART_CREATED="chartCreated",t.EVENT_CHART_RANGE_SELECTION_CHANGED="chartRangeSelectionChanged",t.EVENT_CHART_OPTIONS_CHANGED="chartOptionsChanged",t.EVENT_CHART_DESTROYED="chartDestroyed",t.EVENT_TOOL_PANEL_VISIBLE_CHANGED="toolPanelVisibleChanged",t.EVENT_COLUMN_PANEL_ITEM_DRAG_START="columnPanelItemDragStart",t.EVENT_COLUMN_PANEL_ITEM_DRAG_END="columnPanelItemDragEnd",t.EVENT_MODEL_UPDATED="modelUpdated",t.EVENT_PASTE_START="pasteStart",t.EVENT_PASTE_END="pasteEnd",t.EVENT_FILL_START="fillStart",t.EVENT_FILL_END="fillEnd",t.EVENT_CELL_CLICKED="cellClicked",t.EVENT_CELL_DOUBLE_CLICKED="cellDoubleClicked",t.EVENT_CELL_MOUSE_DOWN="cellMouseDown",t.EVENT_CELL_CONTEXT_MENU="cellContextMenu",t.EVENT_CELL_VALUE_CHANGED="cellValueChanged",t.EVENT_CELL_EDIT_REQUEST="cellEditRequest",t.EVENT_ROW_VALUE_CHANGED="rowValueChanged",t.EVENT_CELL_FOCUSED="cellFocused",t.EVENT_FULL_WIDTH_ROW_FOCUSED="fullWidthRowFocused",t.EVENT_ROW_SELECTED="rowSelected",t.EVENT_SELECTION_CHANGED="selectionChanged",t.EVENT_CELL_KEY_DOWN="cellKeyDown",t.EVENT_CELL_KEY_PRESS="cellKeyPress",t.EVENT_CELL_MOUSE_OVER="cellMouseOver",t.EVENT_CELL_MOUSE_OUT="cellMouseOut",t.EVENT_FILTER_CHANGED="filterChanged",t.EVENT_FILTER_MODIFIED="filterModified",t.EVENT_FILTER_OPENED="filterOpened",t.EVENT_SORT_CHANGED="sortChanged",t.EVENT_VIRTUAL_ROW_REMOVED="virtualRowRemoved",t.EVENT_ROW_CLICKED="rowClicked",t.EVENT_ROW_DOUBLE_CLICKED="rowDoubleClicked",t.EVENT_GRID_READY="gridReady",t.EVENT_GRID_SIZE_CHANGED="gridSizeChanged",t.EVENT_VIEWPORT_CHANGED="viewportChanged",t.EVENT_SCROLLBAR_WIDTH_CHANGED="scrollbarWidthChanged",t.EVENT_FIRST_DATA_RENDERED="firstDataRendered",t.EVENT_DRAG_STARTED="dragStarted",t.EVENT_DRAG_STOPPED="dragStopped",t.EVENT_CHECKBOX_CHANGED="checkboxChanged",t.EVENT_ROW_EDITING_STARTED="rowEditingStarted",t.EVENT_ROW_EDITING_STOPPED="rowEditingStopped",t.EVENT_CELL_EDITING_STARTED="cellEditingStarted",t.EVENT_CELL_EDITING_STOPPED="cellEditingStopped",t.EVENT_BODY_SCROLL="bodyScroll",t.EVENT_BODY_SCROLL_END="bodyScrollEnd",t.EVENT_HEIGHT_SCALE_CHANGED="heightScaleChanged",t.EVENT_PAGINATION_CHANGED="paginationChanged",t.EVENT_COMPONENT_STATE_CHANGED="componentStateChanged",t.EVENT_BODY_HEIGHT_CHANGED="bodyHeightChanged",t.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED="displayedColumnsWidthChanged",t.EVENT_SCROLL_VISIBILITY_CHANGED="scrollVisibilityChanged",t.EVENT_COLUMN_HOVER_CHANGED="columnHoverChanged",t.EVENT_FLASH_CELLS="flashCells",t.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED="paginationPixelOffsetChanged",t.EVENT_DISPLAYED_ROWS_CHANGED="displayedRowsChanged",t.EVENT_LEFT_PINNED_WIDTH_CHANGED="leftPinnedWidthChanged",t.EVENT_RIGHT_PINNED_WIDTH_CHANGED="rightPinnedWidthChanged",t.EVENT_ROW_CONTAINER_HEIGHT_CHANGED="rowContainerHeightChanged",t.EVENT_HEADER_HEIGHT_CHANGED="headerHeightChanged",t.EVENT_COLUMN_HEADER_HEIGHT_CHANGED="columnHeaderHeightChanged",t.EVENT_ROW_DRAG_ENTER="rowDragEnter",t.EVENT_ROW_DRAG_MOVE="rowDragMove",t.EVENT_ROW_DRAG_LEAVE="rowDragLeave",t.EVENT_ROW_DRAG_END="rowDragEnd",t.EVENT_POPUP_TO_FRONT="popupToFront",t.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST="columnRowGroupChangeRequest",t.EVENT_COLUMN_PIVOT_CHANGE_REQUEST="columnPivotChangeRequest",t.EVENT_COLUMN_VALUE_CHANGE_REQUEST="columnValueChangeRequest",t.EVENT_COLUMN_AGG_FUNC_CHANGE_REQUEST="columnAggFuncChangeRequest",t.EVENT_KEYBOARD_FOCUS="keyboardFocus",t.EVENT_MOUSE_FOCUS="mouseFocus",t.EVENT_STORE_UPDATED="storeUpdated",t}(),Fg=function(){function t(){this.existingIds={}}return t.prototype.getInstanceIdForKey=function(r){var i,e=this.existingIds[r];return this.existingIds[r]=i="number"!=typeof e?0:e+1,i},t}(),lC=/[&<>"']/g,qp={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function cC(t){var r=String.fromCharCode;function o(v,w){return r(v>>w&63|128)}function s(v){if(v>=0&&v<=31&&10!==v)return"_x"+v.toString(16).toUpperCase().padStart(4,"0")+"_";if(!(4294967168&v))return r(v);var I="";return 4294965248&v?4294901760&v?4292870144&v||(I=r(v>>18&7|240),I+=o(v,12),I+=o(v,6)):(function i(v){if(v>=55296&&v<=57343)throw Error("Lone surrogate U+"+v.toString(16).toUpperCase()+" is not a scalar value")}(v),I=r(v>>12&15|224),I+=o(v,6)):I=r(v>>6&31|192),I+r(63&v|128)}for(var a=function e(v){var w=[];if(!v)return[];for(var M,F,x=v.length,I=0;I<x;)(M=v.charCodeAt(I++))>=55296&&M<=56319&&I<x?56320==(64512&(F=v.charCodeAt(I++)))?w.push(((1023&M)<<10)+(1023&F)+65536):(w.push(M),I--):w.push(M);return w}(t),l=a.length,c=-1,f="";++c<l;)f+=s(a[c]);return f}function T0(t){return null==t?null:t.replace(/([A-Z])/g,function(r){return"-"+r[0].toLowerCase()})}function g1(t){return null==t?null:t.replace(/-([a-z])/g,function(r){return r[1].toUpperCase()})}function Xp(t){return t[0].toUpperCase()+t.substr(1).toLowerCase()}function Ju(t){return null==t?null:t.toString().toString().replace(lC,function(r){return qp[r]})}function fm(t){return t&&null!=t?t.replace(/([A-Z])([A-Z])([a-z])|([a-z])([A-Z])/g,"$1$4 $2$3$5").replace("."," ").split(" ").map(function(i){return i.substring(0,1).toUpperCase()+(i.length>1?i.substring(1,i.length):"")}).join(" "):null}function Kh(t){var r=new Map;return t.forEach(function(e){return r.set(e[0],e[1])}),r}function Pg(t,r){var e=new Map;return t.forEach(function(i){return e.set(r(i),i)}),e}function o_(t){var r=[];return t.forEach(function(e,i){return r.push(i)}),r}var wd=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),wl=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},mm=function(t,r){return function(e,i){r(e,i,t)}},Lf=function(t){var r="function"==typeof Symbol&&Symbol.iterator,e=r&&t[r],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")},yh=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var o,a,i=e.call(t),s=[];try{for(;(void 0===r||r-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return s},_p=function(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(yh(arguments[r]));return t},gm=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.primaryHeaderRowCount=0,e.secondaryHeaderRowCount=0,e.gridHeaderRowCount=0,e.displayedColumnsLeft=[],e.displayedColumnsRight=[],e.displayedColumnsCenter=[],e.displayedColumns=[],e.displayedColumnsAndGroupsMap={},e.viewportColumns=[],e.viewportColumnsCenter=[],e.autoHeightActiveAtLeastOnce=!1,e.rowGroupColumns=[],e.valueColumns=[],e.pivotColumns=[],e.ready=!1,e.autoGroupsNeedBuilding=!1,e.forceRecreateAutoGroups=!1,e.pivotMode=!1,e.bodyWidth=0,e.leftWidth=0,e.rightWidth=0,e.bodyWidthDirty=!0,e.colDefVersion=0,e.flexColsCalculatedAtLestOnce=!1,e}return wd(r,t),r.prototype.init=function(){var e=this;this.suppressColumnVirtualisation=this.gridOptionsWrapper.isSuppressColumnVirtualisation();var i=this.gridOptionsWrapper.isPivotMode();this.isPivotSettingAllowed(i)&&(this.pivotMode=i),this.usingTreeData=this.gridOptionsWrapper.isTreeData(),this.addManagedListener(this.gridOptionsWrapper,"autoGroupColumnDef",function(){return e.onAutoGroupColumnDefChanged()}),this.addManagedListener(this.gridOptionsWrapper,"defaultColDef",function(){return e.onDefaultColDefChanged()})},r.prototype.onAutoGroupColumnDefChanged=function(){this.autoGroupsNeedBuilding=!0,this.forceRecreateAutoGroups=!0,this.updateGridColumns(),this.updateDisplayedColumns("gridOptionsChanged")},r.prototype.onDefaultColDefChanged=function(){this.colDefVersion++,this.forceRecreateAutoGroups=!0,this.createColumnsFromColumnDefs(!0)},r.prototype.getColDefVersion=function(){return this.colDefVersion},r.prototype.setColumnDefs=function(e,i){void 0===i&&(i="api");var o=!!this.columnDefs;this.colDefVersion++,this.columnDefs=e,this.createColumnsFromColumnDefs(o,i)},r.prototype.createColumnsFromColumnDefs=function(e,i){var o=this;void 0===i&&(i="api");var s=e?this.compareColumnStatesAndRaiseEvents(i):void 0;this.valueCache.expire(),this.autoGroupsNeedBuilding=!0;var a=this.primaryColumns,c=this.columnFactory.createColumnTree(this.columnDefs,!0,this.primaryColumnTree);this.primaryColumnTree=c.columnTree,this.primaryHeaderRowCount=c.treeDept+1,this.primaryColumns=this.getColumnsFromTree(this.primaryColumnTree),this.primaryColumnsMap={},this.primaryColumns.forEach(function(v){return o.primaryColumnsMap[v.getId()]=v}),this.extractRowGroupColumns(i,a),this.extractPivotColumns(i,a),this.extractValueColumns(i,a),this.ready=!0,(this.gridColsArePrimary||void 0===this.gridColsArePrimary)&&(this.updateGridColumns(),e&&!this.gridOptionsWrapper.isMaintainColumnOrder()&&this.orderGridColumnsLikePrimary(),this.updateDisplayedColumns(i),this.checkViewportColumns()),this.dispatchEverythingChanged(i),s&&s(),this.dispatchNewColumnsLoaded()},r.prototype.dispatchNewColumnsLoaded=function(){this.eventService.dispatchEvent({type:Et.EVENT_NEW_COLUMNS_LOADED,api:this.gridApi,columnApi:this.columnApi})},r.prototype.dispatchEverythingChanged=function(e){void 0===e&&(e="api"),this.eventService.dispatchEvent({type:Et.EVENT_COLUMN_EVERYTHING_CHANGED,api:this.gridApi,columnApi:this.columnApi,source:e})},r.prototype.orderGridColumnsLikePrimary=function(){var e=this,i=this.primaryColumns;i&&(this.gridColumns.sort(function(o,s){var a=i.indexOf(o),l=i.indexOf(s),c=a>=0,d=l>=0;return c&&d?a-l:c?1:d?-1:e.gridColumns.indexOf(o)-e.gridColumns.indexOf(s)}),this.gridColumns=this.placeLockedColumns(this.gridColumns))},r.prototype.getAllDisplayedAutoHeightCols=function(){return this.displayedAutoHeightCols},r.prototype.setViewport=function(){this.gridOptionsWrapper.isEnableRtl()?(this.viewportLeft=this.bodyWidth-this.scrollPosition-this.scrollWidth,this.viewportRight=this.bodyWidth-this.scrollPosition):(this.viewportLeft=this.scrollPosition,this.viewportRight=this.scrollWidth+this.scrollPosition)},r.prototype.getDisplayedColumnsStartingAt=function(e){for(var i=e,o=[];null!=i;)o.push(i),i=this.getDisplayedColAfter(i);return o},r.prototype.checkViewportColumns=function(){if(null!=this.displayedColumnsCenter){var e=this.viewportColumns.map(function(s){return s.getId()}).join("#");this.extractViewport(),e!==this.viewportColumns.map(function(s){return s.getId()}).join("#")&&this.eventService.dispatchEvent({type:Et.EVENT_VIRTUAL_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi})}},r.prototype.setViewportPosition=function(e,i){(e!==this.scrollWidth||i!==this.scrollPosition||this.bodyWidthDirty)&&(this.scrollWidth=e,this.scrollPosition=i,this.bodyWidthDirty=!0,this.setViewport(),this.ready&&this.checkViewportColumns())},r.prototype.isPivotMode=function(){return this.pivotMode},r.prototype.isPivotSettingAllowed=function(e){return!e||!this.gridOptionsWrapper.isTreeData()||(console.warn("AG Grid: Pivot mode not available in conjunction Tree Data i.e. 'gridOptions.treeData: true'"),!1)},r.prototype.setPivotMode=function(e,i){void 0===i&&(i="api"),e!==this.pivotMode&&this.isPivotSettingAllowed(this.pivotMode)&&(this.pivotMode=e,this.autoGroupsNeedBuilding=!0,this.updateGridColumns(),this.updateDisplayedColumns(i),this.eventService.dispatchEvent({type:Et.EVENT_COLUMN_PIVOT_MODE_CHANGED,api:this.gridApi,columnApi:this.columnApi}))},r.prototype.getSecondaryPivotColumn=function(e,i){if($o(this.secondaryColumns))return null;var o=this.getPrimaryColumn(i),s=null;return this.secondaryColumns.forEach(function(a){var l=a.getColDef().pivotKeys,c=a.getColDef().pivotValueColumn;$l(l,e)&&c===o&&(s=a)}),s},r.prototype.setBeans=function(e){this.logger=e.create("columnModel")},r.prototype.setFirstRightAndLastLeftPinned=function(e){var i,o;this.gridOptionsWrapper.isEnableRtl()?(i=this.displayedColumnsLeft?this.displayedColumnsLeft[0]:null,o=this.displayedColumnsRight?Ja(this.displayedColumnsRight):null):(i=this.displayedColumnsLeft?Ja(this.displayedColumnsLeft):null,o=this.displayedColumnsRight?this.displayedColumnsRight[0]:null),this.gridColumns.forEach(function(s){s.setLastLeftPinned(s===i,e),s.setFirstRightPinned(s===o,e)})},r.prototype.autoSizeColumns=function(e){var i=this,o=e.columns,s=e.skipHeader,a=e.skipHeaderGroups,l=e.stopAtGroup,c=e.source,d=void 0===c?"api":c;this.animationFrameService.flushAllFrames();for(var f=[],v=-1,w=s??this.gridOptionsWrapper.isSkipHeaderOnAutoSize(),x=a??w;0!==v;)v=0,this.actionOnGridColumns(o,function(I){if(f.indexOf(I)>=0)return!1;var M=i.autoWidthCalculator.getPreferredWidthForColumn(I,w);if(M>0){var F=i.normaliseColumnWidth(I,M);I.setActualWidth(F,d),f.push(I),v++}return!0},d);x||this.autoSizeColumnGroupsByColumns(o,l),this.fireColumnResizedEvent(f,!0,"autosizeColumns")},r.prototype.fireColumnResizedEvent=function(e,i,o,s){void 0===s&&(s=null),e&&e.length&&this.eventService.dispatchEvent({type:Et.EVENT_COLUMN_RESIZED,columns:e,column:1===e.length?e[0]:null,flexColumns:s,finished:i,api:this.gridApi,columnApi:this.columnApi,source:o})},r.prototype.autoSizeColumn=function(e,i,o){void 0===o&&(o="api"),e&&this.autoSizeColumns({columns:[e],skipHeader:i,skipHeaderGroups:!0,source:o})},r.prototype.autoSizeColumnGroupsByColumns=function(e,i){var o,s,a,l,f,c=new Set;this.getGridColumns(e).forEach(function(pe){for(var we=pe.getParent();we&&we!=i;)we.isPadding()||c.add(we),we=we.getParent()});try{for(var w=Lf(c),x=w.next();!x.done;x=w.next()){var I=x.value;try{for(var M=(a=void 0,Lf(this.ctrlsService.getHeaderRowContainerCtrls())),F=M.next();!F.done&&!(f=F.value.getHeaderCtrlForColumn(I));F=M.next());}catch(pe){a={error:pe}}finally{try{F&&!F.done&&(l=M.return)&&l.call(M)}finally{if(a)throw a.error}}f&&f.resizeLeafColumnsToFit()}}catch(pe){o={error:pe}}finally{try{x&&!x.done&&(s=w.return)&&s.call(w)}finally{if(o)throw o.error}}return[]},r.prototype.autoSizeAllColumns=function(e,i){void 0===i&&(i="api");var o=this.getAllDisplayedColumns();this.autoSizeColumns({columns:o,skipHeader:e,source:i})},r.prototype.getColumnsFromTree=function(e){var i=[],o=function(s){for(var a=0;a<s.length;a++){var l=s[a];l instanceof ms?i.push(l):l instanceof Zr&&o(l.getChildren())}};return o(e),i},r.prototype.getAllDisplayedTrees=function(){return this.displayedTreeLeft&&this.displayedTreeRight&&this.displayedTreeCentre?this.displayedTreeLeft.concat(this.displayedTreeCentre).concat(this.displayedTreeRight):null},r.prototype.getPrimaryColumnTree=function(){return this.primaryColumnTree},r.prototype.getHeaderRowCount=function(){return this.gridHeaderRowCount},r.prototype.getDisplayedTreeLeft=function(){return this.displayedTreeLeft},r.prototype.getDisplayedTreeRight=function(){return this.displayedTreeRight},r.prototype.getDisplayedTreeCentre=function(){return this.displayedTreeCentre},r.prototype.isColumnDisplayed=function(e){return this.getAllDisplayedColumns().indexOf(e)>=0},r.prototype.getAllDisplayedColumns=function(){return this.displayedColumns},r.prototype.getViewportColumns=function(){return this.viewportColumns},r.prototype.getDisplayedLeftColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedColumnsLeft):this.displayedColumnsLeft},r.prototype.getDisplayedRightColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedColumnsRight):this.displayedColumnsRight},r.prototype.getDisplayedColumnsForRow=function(e,i,o,s){for(var d,a=[],l=null,c=function(v){var pe,w=i[v],x=i.length-v,I=Math.min(w.getColSpan(e),x),M=[w];if(I>1){for(var F=I-1,re=1;re<=F;re++)M.push(i[v+re]);v+=F}o?(pe=!1,M.forEach(function(je){o(je)&&(pe=!0)})):pe=!0,pe&&(0===a.length&&l&&s&&s(w)&&a.push(l),a.push(w)),l=w,d=v},f=0;f<i.length;f++)c(f),f=d;return a},r.prototype.getViewportCenterColumnsForRow=function(e){var i=this;if(!this.colSpanActive)return this.viewportColumnsCenter;var s=this.suppressColumnVirtualisation?null:this.isColumnInViewport.bind(this);return this.getDisplayedColumnsForRow(e,this.displayedColumnsCenter,s,function(a){var l=a.getLeft();return rr(l)&&l>i.viewportLeft})},r.prototype.getAriaColumnIndex=function(e){return this.getAllGridColumns().indexOf(e)+1},r.prototype.isColumnInViewport=function(e){if(e.isAutoHeight()||e.isAutoHeaderHeight())return!0;var i=e.getLeft()||0,o=i+e.getActualWidth(),s=this.viewportLeft-200,a=this.viewportRight+200;return!(i<s&&o<s||i>a&&o>a)},r.prototype.getDisplayedColumnsLeftWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsLeft)},r.prototype.getDisplayedColumnsRightWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsRight)},r.prototype.updatePrimaryColumnList=function(e,i,o,s,a,l){var c=this;if(void 0===l&&(l="api"),e&&!_c(e)){var d=!1;e.forEach(function(v){var w=c.getPrimaryColumn(v);if(w){if(o){if(i.indexOf(w)>=0)return;i.push(w)}else{if(i.indexOf(w)<0)return;Yl(i,w)}s(w),d=!0}}),d&&(this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(l),this.eventService.dispatchEvent({type:a,columns:i,column:1===i.length?i[0]:null,api:this.gridApi,columnApi:this.columnApi,source:l}))}},r.prototype.setRowGroupColumns=function(e,i){void 0===i&&(i="api"),this.autoGroupsNeedBuilding=!0,this.setPrimaryColumnList(e,this.rowGroupColumns,Et.EVENT_COLUMN_ROW_GROUP_CHANGED,this.setRowGroupActive.bind(this),i)},r.prototype.setRowGroupActive=function(e,i,o){e!==i.isRowGroupActive()&&(i.setRowGroupActive(e,o),!e&&!this.gridOptionsWrapper.isSuppressMakeColumnVisibleAfterUnGroup()&&this.setColumnVisible(i,!0,o))},r.prototype.addRowGroupColumn=function(e,i){void 0===i&&(i="api"),e&&this.addRowGroupColumns([e],i)},r.prototype.addRowGroupColumns=function(e,i){void 0===i&&(i="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!0,this.setRowGroupActive.bind(this,!0),Et.EVENT_COLUMN_ROW_GROUP_CHANGED,i)},r.prototype.removeRowGroupColumns=function(e,i){void 0===i&&(i="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!1,this.setRowGroupActive.bind(this,!1),Et.EVENT_COLUMN_ROW_GROUP_CHANGED,i)},r.prototype.removeRowGroupColumn=function(e,i){void 0===i&&(i="api"),e&&this.removeRowGroupColumns([e],i)},r.prototype.addPivotColumns=function(e,i){void 0===i&&(i="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!0,function(o){return o.setPivotActive(!0,i)},Et.EVENT_COLUMN_PIVOT_CHANGED,i)},r.prototype.setPivotColumns=function(e,i){void 0===i&&(i="api"),this.setPrimaryColumnList(e,this.pivotColumns,Et.EVENT_COLUMN_PIVOT_CHANGED,function(o,s){s.setPivotActive(o,i)},i)},r.prototype.addPivotColumn=function(e,i){void 0===i&&(i="api"),this.addPivotColumns([e],i)},r.prototype.removePivotColumns=function(e,i){void 0===i&&(i="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!1,function(o){return o.setPivotActive(!1,i)},Et.EVENT_COLUMN_PIVOT_CHANGED,i)},r.prototype.removePivotColumn=function(e,i){void 0===i&&(i="api"),this.removePivotColumns([e],i)},r.prototype.setPrimaryColumnList=function(e,i,o,s,a){var l=this;i.length=0,rr(e)&&e.forEach(function(c){var d=l.getPrimaryColumn(c);d&&i.push(d)}),(this.primaryColumns||[]).forEach(function(c){var d=i.indexOf(c)>=0;s(d,c)}),this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(a),this.fireColumnEvent(o,i,a)},r.prototype.setValueColumns=function(e,i){void 0===i&&(i="api"),this.setPrimaryColumnList(e,this.valueColumns,Et.EVENT_COLUMN_VALUE_CHANGED,this.setValueActive.bind(this),i)},r.prototype.setValueActive=function(e,i,o){if(e!==i.isValueActive()&&(i.setValueActive(e,o),e&&!i.getAggFunc())){var s=this.aggFuncService.getDefaultAggFunc(i);i.setAggFunc(s)}},r.prototype.addValueColumns=function(e,i){void 0===i&&(i="api"),this.updatePrimaryColumnList(e,this.valueColumns,!0,this.setValueActive.bind(this,!0),Et.EVENT_COLUMN_VALUE_CHANGED,i)},r.prototype.addValueColumn=function(e,i){void 0===i&&(i="api"),e&&this.addValueColumns([e],i)},r.prototype.removeValueColumn=function(e,i){void 0===i&&(i="api"),this.removeValueColumns([e],i)},r.prototype.removeValueColumns=function(e,i){void 0===i&&(i="api"),this.updatePrimaryColumnList(e,this.valueColumns,!1,this.setValueActive.bind(this,!1),Et.EVENT_COLUMN_VALUE_CHANGED,i)},r.prototype.normaliseColumnWidth=function(e,i){var o=e.getMinWidth();rr(o)&&i<o&&(i=o);var s=e.getMaxWidth();return rr(s)&&e.isGreaterThanMax(i)&&(i=s),i},r.prototype.getPrimaryOrGridColumn=function(e){return this.getPrimaryColumn(e)||this.getGridColumn(e)},r.prototype.setColumnWidths=function(e,i,o,s){var a=this;void 0===s&&(s="api");var l=[];e.forEach(function(c){var d=a.getPrimaryOrGridColumn(c.key);if(d&&(l.push({width:c.newWidth,ratios:[1],columns:[d]}),"shift"===a.gridOptionsWrapper.getColResizeDefault()&&(i=!i),i)){var v=a.getDisplayedColAfter(d);if(!v)return;var w=d.getActualWidth()-c.newWidth,x=v.getActualWidth()+w;l.push({width:x,ratios:[1],columns:[v]})}}),0!==l.length&&this.resizeColumnSets({resizeSets:l,finished:o,source:s})},r.prototype.checkMinAndMaxWidthsForSet=function(e){var o=e.width,s=0,a=0,l=!0;return e.columns.forEach(function(f){var v=f.getMinWidth();s+=v||0;var w=f.getMaxWidth();rr(w)&&w>0?a+=w:l=!1}),o>=s&&(!l||o<=a)},r.prototype.resizeColumnSets=function(e){var i=this,o=e.resizeSets,s=e.finished,a=e.source;if(!o||o.every(function(I){return i.checkMinAndMaxWidthsForSet(I)})){var d=[],f=[];o.forEach(function(I){var M=I.width,F=I.columns,re=I.ratios,pe={},we={};F.forEach(function(lt){return f.push(lt)});for(var je=!0,tt=0,nt=function(){if(++tt>1e3)return console.error("AG Grid: infinite loop in resizeColumnSets"),"break";je=!1;var lt=[],bt=0,Wt=M;F.forEach(function(en,ci){we[en.getId()]?Wt-=pe[en.getId()]:(lt.push(en),bt+=re[ci])});var Zt=1/bt;lt.forEach(function(en,ci){var ki;ci===lt.length-1?ki=Wt:(ki=Math.round(re[ci]*M*Zt),Wt-=ki);var Xr=en.getMinWidth(),Lr=en.getMaxWidth();rr(Xr)&&ki<Xr?(ki=Xr,we[en.getId()]=!0,je=!0):rr(Lr)&&Lr>0&&ki>Lr&&(ki=Lr,we[en.getId()]=!0,je=!0),pe[en.getId()]=ki})};je&&"break"!==nt(););F.forEach(function(lt){var bt=pe[lt.getId()];lt.getActualWidth()!==bt&&(lt.setActualWidth(bt,a),d.push(lt))})});var v=d.length>0,w=[];v&&(w=this.refreshFlexedColumns({resizingCols:f,skipSetLeft:!0}),this.setLeftValues(a),this.updateBodyWidths(),this.checkViewportColumns());var x=f.concat(w);(v||s)&&this.fireColumnResizedEvent(x,s,a,w)}else s&&this.fireColumnResizedEvent(o&&o.length>0?o[0].columns:null,s,a)},r.prototype.setColumnAggFunc=function(e,i,o){if(void 0===o&&(o="api"),e){var s=this.getPrimaryColumn(e);s&&(s.setAggFunc(i),this.fireColumnEvent(Et.EVENT_COLUMN_VALUE_CHANGED,[s],o))}},r.prototype.fireColumnEvent=function(e,i,o){this.eventService.dispatchEvent({type:e,columns:i,column:i&&1==i.length?i[0]:null,api:this.gridApi,columnApi:this.columnApi,source:o})},r.prototype.moveRowGroupColumn=function(e,i,o){void 0===o&&(o="api");var s=this.rowGroupColumns[e];this.rowGroupColumns.splice(e,1),this.rowGroupColumns.splice(i,0,s),this.eventService.dispatchEvent({type:Et.EVENT_COLUMN_ROW_GROUP_CHANGED,columns:this.rowGroupColumns,column:1===this.rowGroupColumns.length?this.rowGroupColumns[0]:null,api:this.gridApi,columnApi:this.columnApi,source:o})},r.prototype.moveColumns=function(e,i,o){if(void 0===o&&(o="api"),this.columnAnimationService.start(),i>this.gridColumns.length-e.length)return console.warn("AG Grid: tried to insert columns in invalid location, toIndex = "+i),void console.warn("AG Grid: remember that you should not count the moving columns when calculating the new index");var s=this.getGridColumns(e);!this.doesMovePassRules(s,i)||(Ee(this.gridColumns,s,i),this.updateDisplayedColumns(o),this.eventService.dispatchEvent({type:Et.EVENT_COLUMN_MOVED,columns:s,column:1===s.length?s[0]:null,toIndex:i,api:this.gridApi,columnApi:this.columnApi,source:o}),this.columnAnimationService.finish())},r.prototype.doesMovePassRules=function(e,i){var o=this.getProposedColumnOrder(e,i);return this.doesOrderPassRules(o)},r.prototype.doesOrderPassRules=function(e){return!(!this.doesMovePassMarryChildren(e)||!this.doesMovePassLockedPositions(e))},r.prototype.getProposedColumnOrder=function(e,i){var o=this.gridColumns.slice();return Ee(o,e,i),o},r.prototype.sortColumnsLikeGridColumns=function(e){var i=this;!e||e.length<=1||e.filter(function(s){return i.gridColumns.indexOf(s)<0}).length>0||e.sort(function(s,a){return i.gridColumns.indexOf(s)-i.gridColumns.indexOf(a)})},r.prototype.doesMovePassLockedPositions=function(e){var i=0,o=!0;return e.forEach(function(a){var l=function(a){return a?!0===a||"left"===a?0:2:1}(a.getColDef().lockPosition);l<i&&(o=!1),i=l}),o},r.prototype.doesMovePassMarryChildren=function(e){var i=!0;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,function(o){if(o instanceof Zr){var s=o,a=s.getColGroupDef();if(a&&a.marryChildren){var c=[];s.getLeafColumns().forEach(function(x){var I=e.indexOf(x);c.push(I)}),Math.max.apply(Math,c)-Math.min.apply(Math,c)>s.getLeafColumns().length-1&&(i=!1)}}}),i},r.prototype.moveColumn=function(e,i,o){void 0===o&&(o="api"),this.moveColumns([e],i,o)},r.prototype.moveColumnByIndex=function(e,i,o){void 0===o&&(o="api"),this.moveColumn(this.gridColumns[e],i,o)},r.prototype.getColumnDefs=function(){var e=this;if(this.primaryColumns){var i=this.primaryColumns.slice();return this.gridColsArePrimary?i.sort(function(o,s){return e.gridColumns.indexOf(o)-e.gridColumns.indexOf(s)}):this.lastPrimaryOrder&&i.sort(function(o,s){return e.lastPrimaryOrder.indexOf(o)-e.lastPrimaryOrder.indexOf(s)}),this.columnDefFactory.buildColumnDefs(i,this.rowGroupColumns,this.pivotColumns)}},r.prototype.getBodyContainerWidth=function(){return this.bodyWidth},r.prototype.getContainerWidth=function(e){switch(e){case Nn.PINNED_LEFT:return this.leftWidth;case Nn.PINNED_RIGHT:return this.rightWidth;default:return this.bodyWidth}},r.prototype.updateBodyWidths=function(){var e=this.getWidthOfColsInList(this.displayedColumnsCenter),i=this.getWidthOfColsInList(this.displayedColumnsLeft),o=this.getWidthOfColsInList(this.displayedColumnsRight);this.bodyWidthDirty=this.bodyWidth!==e,(this.bodyWidth!==e||this.leftWidth!==i||this.rightWidth!==o)&&(this.bodyWidth=e,this.leftWidth=i,this.rightWidth=o,this.eventService.dispatchEvent({type:Et.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,api:this.gridApi,columnApi:this.columnApi}))},r.prototype.getValueColumns=function(){return this.valueColumns?this.valueColumns:[]},r.prototype.getPivotColumns=function(){return this.pivotColumns?this.pivotColumns:[]},r.prototype.isPivotActive=function(){return this.pivotColumns&&this.pivotColumns.length>0&&this.pivotMode},r.prototype.getRowGroupColumns=function(){return this.rowGroupColumns?this.rowGroupColumns:[]},r.prototype.getDisplayedCenterColumns=function(){return this.displayedColumnsCenter},r.prototype.getDisplayedLeftColumns=function(){return this.displayedColumnsLeft},r.prototype.getDisplayedRightColumns=function(){return this.displayedColumnsRight},r.prototype.getDisplayedColumns=function(e){switch(e){case Nn.PINNED_LEFT:return this.getDisplayedLeftColumns();case Nn.PINNED_RIGHT:return this.getDisplayedRightColumns();default:return this.getDisplayedCenterColumns()}},r.prototype.getAllPrimaryColumns=function(){return this.primaryColumns?this.primaryColumns.slice():null},r.prototype.getSecondaryColumns=function(){return this.secondaryColumns?this.secondaryColumns.slice():null},r.prototype.getAllColumnsForQuickFilter=function(){return this.columnsForQuickFilter},r.prototype.getAllGridColumns=function(){return this.gridColumns},r.prototype.isEmpty=function(){return _c(this.gridColumns)},r.prototype.isRowGroupEmpty=function(){return _c(this.rowGroupColumns)},r.prototype.setColumnVisible=function(e,i,o){void 0===o&&(o="api"),this.setColumnsVisible([e],i,o)},r.prototype.setColumnsVisible=function(e,i,o){var s=this;void 0===i&&(i=!1),void 0===o&&(o="api"),this.columnAnimationService.start(),this.actionOnGridColumns(e,function(a){return a.isVisible()!==i&&(a.setVisible(i,o),!0)},o,function(){return{type:Et.EVENT_COLUMN_VISIBLE,visible:i,column:null,columns:null,api:s.gridApi,columnApi:s.columnApi,source:o}}),this.columnAnimationService.finish()},r.prototype.setColumnPinned=function(e,i,o){void 0===o&&(o="api"),e&&this.setColumnsPinned([e],i,o)},r.prototype.setColumnsPinned=function(e,i,o){var a,s=this;void 0===o&&(o="api"),"print"!==this.gridOptionsWrapper.getDomLayout()?(this.columnAnimationService.start(),a=!0===i||i===Nn.PINNED_LEFT?Nn.PINNED_LEFT:i===Nn.PINNED_RIGHT?Nn.PINNED_RIGHT:null,this.actionOnGridColumns(e,function(l){return l.getPinned()!==a&&(l.setPinned(a),!0)},o,function(){return{type:Et.EVENT_COLUMN_PINNED,pinned:a,column:null,columns:null,api:s.gridApi,columnApi:s.columnApi,source:o}}),this.columnAnimationService.finish()):console.warn("Changing the column pinning status is not allowed with domLayout='print'")},r.prototype.actionOnGridColumns=function(e,i,o,s){var a=this;if(!_c(e)){var l=[];if(e.forEach(function(d){var f=a.getGridColumn(d);f&&!1!==i(f)&&l.push(f)}),l.length&&(this.updateDisplayedColumns(o),rr(s)&&s)){var c=s();c.columns=l,c.column=1===l.length?l[0]:null,this.eventService.dispatchEvent(c)}}},r.prototype.getDisplayedColBefore=function(e){var i=this.getAllDisplayedColumns(),o=i.indexOf(e);return o>0?i[o-1]:null},r.prototype.getDisplayedColAfter=function(e){var i=this.getAllDisplayedColumns(),o=i.indexOf(e);return o<i.length-1?i[o+1]:null},r.prototype.getDisplayedGroupAfter=function(e){return this.getDisplayedGroupAtDirection(e,"After")},r.prototype.getDisplayedGroupBefore=function(e){return this.getDisplayedGroupAtDirection(e,"Before")},r.prototype.getDisplayedGroupAtDirection=function(e,i){for(var o=e.getProvidedColumnGroup().getLevel()+e.getPaddingLevel(),s=e.getDisplayedLeafColumns(),a="After"===i?Ja(s):s[0],l="getDisplayedCol"+i;;){var c=this[l](a);if(!c)return null;var d=this.getColumnGroupAtLevel(c,o);if(d!==e)return d}},r.prototype.getColumnGroupAtLevel=function(e,i){for(var o=e.getParent();!(o.getProvidedColumnGroup().getLevel()+o.getPaddingLevel()<=i);)o=o.getParent();return o},r.prototype.isPinningLeft=function(){return this.displayedColumnsLeft.length>0},r.prototype.isPinningRight=function(){return this.displayedColumnsRight.length>0},r.prototype.getPrimaryAndSecondaryAndAutoColumns=function(){var e;return(e=[]).concat.apply(e,_p([this.primaryColumns||[],this.groupAutoColumns||[],this.secondaryColumns||[]]))},r.prototype.getPrimaryAndAutoGroupCols=function(){var e;return(e=[]).concat.apply(e,_p([this.primaryColumns||[],this.groupAutoColumns||[]]))},r.prototype.getPrimaryAndSecondaryColumns=function(){var e;return(e=[]).concat.apply(e,_p([this.primaryColumns||[],this.secondaryColumns||[]]))},r.prototype.createStateItemFromColumn=function(e){var i=e.isRowGroupActive()?this.rowGroupColumns.indexOf(e):null,o=e.isPivotActive()?this.pivotColumns.indexOf(e):null,s=e.isValueActive()?e.getAggFunc():null,a=null!=e.getSort()?e.getSort():null,l=null!=e.getSortIndex()?e.getSortIndex():null,c=null!=e.getFlex()&&e.getFlex()>0?e.getFlex():null;return{colId:e.getColId(),width:e.getActualWidth(),hide:!e.isVisible(),pinned:e.getPinned(),sort:a,sortIndex:l,aggFunc:s,rowGroup:e.isRowGroupActive(),rowGroupIndex:i,pivot:e.isPivotActive(),pivotIndex:o,flex:c}},r.prototype.getColumnState=function(){if($o(this.primaryColumns)||!this.isAlive())return[];var i=this.getPrimaryAndSecondaryAndAutoColumns().map(this.createStateItemFromColumn.bind(this));return this.orderColumnStateList(i),i},r.prototype.orderColumnStateList=function(e){var i=Kh(this.gridColumns.map(function(o,s){return[o.getColId(),s]}));e.sort(function(o,s){return(i.has(o.colId)?i.get(o.colId):-1)-(i.has(s.colId)?i.get(s.colId):-1)})},r.prototype.resetColumnState=function(e){void 0===e&&(e="api");var i=this.getColumnsFromTree(this.primaryColumnTree),o=[],s=1e3,a=1e3,l=[];this.groupAutoColumns&&(l=l.concat(this.groupAutoColumns)),i&&(l=l.concat(i)),l.forEach(function(c){var d=function(rt,lt){return rt??lt??null},f=c.getColDef(),v=d(f.sort,f.initialSort),w=d(f.sortIndex,f.initialSortIndex),x=d(f.hide,f.initialHide),I=d(f.pinned,f.initialPinned),M=d(f.width,f.initialWidth),F=d(f.flex,f.initialFlex),re=d(f.rowGroupIndex,f.initialRowGroupIndex),pe=d(f.rowGroup,f.initialRowGroup);null==re&&(null==pe||0==pe)&&(re=null,pe=null);var we=d(f.pivotIndex,f.initialPivotIndex),je=d(f.pivot,f.initialPivot);null==we&&(null==je||0==je)&&(we=null,je=null);var tt=d(f.aggFunc,f.initialAggFunc),nt={colId:c.getColId(),sort:v,sortIndex:w,hide:x,pinned:I,width:M,flex:F,rowGroup:pe,rowGroupIndex:re,pivot:je,pivotIndex:we,aggFunc:tt};$o(re)&&pe&&(nt.rowGroupIndex=s++),$o(we)&&je&&(nt.pivotIndex=a++),o.push(nt)}),this.applyColumnState({state:o,applyOrder:!0},e)},r.prototype.applyColumnState=function(e,i){var o=this;if(void 0===i&&(i="api"),_c(this.primaryColumns))return!1;if(e&&e.state&&!e.state.forEach)return console.warn("AG Grid: applyColumnState() - the state attribute should be an array, however an array was not found. Please provide an array of items (one for each col you want to change) for state."),!1;var s=function(d,f,v){var w=o.compareColumnStatesAndRaiseEvents(i);o.autoGroupsNeedBuilding=!0;var x=f.slice(),I={},M={},F=[],re=[],pe=0,we=o.rowGroupColumns.slice(),je=o.pivotColumns.slice();d.forEach(function(lt){var bt=lt.colId||"";if(bt.startsWith(Nn.GROUP_AUTO_COLUMN_ID))return F.push(lt),void re.push(lt);var Zt=v(bt);Zt?(o.syncColumnWithStateItem(Zt,lt,e.defaultState,I,M,!1,i),Yl(x,Zt)):(re.push(lt),pe+=1)});var tt=function(lt){return o.syncColumnWithStateItem(lt,null,e.defaultState,I,M,!1,i)};x.forEach(tt);var nt=function(lt,bt,Wt,Zt){var en=lt[Wt.getId()],ci=lt[Zt.getId()],Wi=null!=en,ki=null!=ci;if(Wi&&ki)return en-ci;if(Wi)return-1;if(ki)return 1;var Xr=bt.indexOf(Wt),Lr=bt.indexOf(Zt),Jo=Xr>=0;return Jo&&Lr>=0?Xr-Lr:Jo?-1:1};o.rowGroupColumns.sort(nt.bind(o,I,we)),o.pivotColumns.sort(nt.bind(o,M,je)),o.updateGridColumns();var rt=o.groupAutoColumns?o.groupAutoColumns.slice():[];return F.forEach(function(lt){var bt=o.getAutoColumn(lt.colId);Yl(rt,bt),o.syncColumnWithStateItem(bt,lt,e.defaultState,null,null,!0,i)}),rt.forEach(tt),o.applyOrderAfterApplyState(e),o.updateDisplayedColumns(i),o.dispatchEverythingChanged(i),w(),{unmatchedAndAutoStates:re,unmatchedCount:pe}};this.columnAnimationService.start();var a=s(e.state||[],this.primaryColumns||[],function(d){return o.getPrimaryColumn(d)}),l=a.unmatchedAndAutoStates,c=a.unmatchedCount;return(l.length>0||rr(e.defaultState))&&(c=s(l,this.secondaryColumns||[],function(d){return o.getSecondaryColumn(d)}).unmatchedCount),this.columnAnimationService.finish(),0===c},r.prototype.applyOrderAfterApplyState=function(e){var i=this;if(e.applyOrder&&e.state){var o=[],s={};e.state.forEach(function(l){if(l.colId&&!s[l.colId]){var c=i.gridColumnsMap[l.colId];c&&(o.push(c),s[l.colId]=!0)}});var a=0;if(this.gridColumns.forEach(function(l){var c=l.getColId();null!=s[c]||(c.startsWith(Nn.GROUP_AUTO_COLUMN_ID)?qh(o,l,a++):o.push(l))}),o=this.placeLockedColumns(o),!this.doesMovePassMarryChildren(o))return void console.warn("AG Grid: Applying column order broke a group where columns should be married together. Applying new order has been discarded.");this.gridColumns=o}},r.prototype.compareColumnStatesAndRaiseEvents=function(e){var i=this,o={rowGroupColumns:this.rowGroupColumns.slice(),pivotColumns:this.pivotColumns.slice(),valueColumns:this.valueColumns.slice()},s=this.getColumnState(),a={};return s.forEach(function(l){a[l.colId]=l}),function(){if(!i.gridOptionsWrapper.isSuppressColumnStateEvents()){var l=i.getPrimaryAndSecondaryAndAutoColumns(),c=function(re,pe,we,je){$l(pe.map(je),we.map(je))||i.eventService.dispatchEvent({type:re,columns:we,column:1===we.length?we[0]:null,api:i.gridApi,columnApi:i.columnApi,source:e})},d=function(re){var pe=[];return l.forEach(function(we){var je=a[we.getColId()];je&&re(je,we)&&pe.push(we)}),pe},f=function(re){return re.getColId()};c(Et.EVENT_COLUMN_ROW_GROUP_CHANGED,o.rowGroupColumns,i.rowGroupColumns,f),c(Et.EVENT_COLUMN_PIVOT_CHANGED,o.pivotColumns,i.pivotColumns,f),d(function(re,pe){var we=null!=re.aggFunc,je=we!=pe.isValueActive(),tt=we&&re.aggFunc!=pe.getAggFunc();return je||tt}).length>0&&i.fireColumnEvent(Et.EVENT_COLUMN_VALUE_CHANGED,i.valueColumns,e),i.fireColumnResizedEvent(d(function(re,pe){return re.width!=pe.getActualWidth()}),!0,e),i.raiseColumnPinnedEvent(d(function(re,pe){return re.pinned!=pe.getPinned()}),e),i.raiseColumnVisibleEvent(d(function(re,pe){return re.hide==pe.isVisible()}),e),d(function(re,pe){return re.sort!=pe.getSort()||re.sortIndex!=pe.getSortIndex()}).length>0&&i.sortController.dispatchSortChangedEvents(e),i.raiseColumnMovedEvent(s,e)}}},r.prototype.raiseColumnPinnedEvent=function(e,i){if(e.length){var o=1===e.length?e[0]:null,s=this.getCommonValue(e,function(l){return l.getPinned()});this.eventService.dispatchEvent({type:Et.EVENT_COLUMN_PINNED,pinned:s??null,columns:e,column:o,api:this.gridApi,columnApi:this.columnApi,source:i})}},r.prototype.getCommonValue=function(e,i){if(e&&0!=e.length){for(var o=i(e[0]),s=1;s<e.length;s++)if(o!==i(e[s]))return;return o}},r.prototype.raiseColumnVisibleEvent=function(e,i){if(e.length){var o=1===e.length?e[0]:null,s=this.getCommonValue(e,function(l){return l.isVisible()});this.eventService.dispatchEvent({type:Et.EVENT_COLUMN_VISIBLE,visible:s,columns:e,column:o,api:this.gridApi,columnApi:this.columnApi,source:i})}},r.prototype.raiseColumnMovedEvent=function(e,i){var o=this,s=this.getColumnState(),a={};s.forEach(function(w){return a[w.colId]=w});var l={};e.forEach(function(w){a[w.colId]&&(l[w.colId]=!0)});var c=e.filter(function(w){return l[w.colId]}),d=s.filter(function(w){return l[w.colId]}),f=[];d.forEach(function(w,x){var I=c&&c[x];if(I&&I.colId!==w.colId){var M=o.getGridColumn(I.colId);M&&f.push(M)}}),f.length&&this.eventService.dispatchEvent({type:Et.EVENT_COLUMN_MOVED,columns:f,column:null,api:this.gridApi,columnApi:this.columnApi,source:i})},r.prototype.syncColumnWithStateItem=function(e,i,o,s,a,l,c){if(e){var d=function(bt,Wt){var Zt={value1:void 0,value2:void 0},en=!1;return i&&(void 0!==i[bt]&&(Zt.value1=i[bt],en=!0),rr(Wt)&&void 0!==i[Wt]&&(Zt.value2=i[Wt],en=!0)),!en&&o&&(void 0!==o[bt]&&(Zt.value1=o[bt]),rr(Wt)&&void 0!==o[Wt]&&(Zt.value2=o[Wt])),Zt},f=d("hide").value1;void 0!==f&&e.setVisible(!f,c);var v=d("pinned").value1;void 0!==v&&e.setPinned(v);var w=this.columnUtils.calculateColMinWidth(e.getColDef()),x=d("flex").value1;if(void 0!==x&&e.setFlex(x),e.getFlex()<=0){var M=d("width").value1;null!=M&&null!=w&&M>=w&&e.setActualWidth(M,c)}var F=d("sort").value1;void 0!==F&&e.setSort(F===Nn.SORT_DESC||F===Nn.SORT_ASC?F:void 0,c);var re=d("sortIndex").value1;if(void 0!==re&&e.setSortIndex(re),!l&&e.isPrimary()){var pe=d("aggFunc").value1;void 0!==pe&&("string"==typeof pe?(e.setAggFunc(pe),e.isValueActive()||(e.setValueActive(!0,c),this.valueColumns.push(e))):(rr(pe)&&console.warn("AG Grid: stateItem.aggFunc must be a string. if using your own aggregation functions, register the functions first before using them in get/set state. This is because it is intended for the column state to be stored and retrieved as simple JSON."),e.isValueActive()&&(e.setValueActive(!1,c),Yl(this.valueColumns,e))));var we=d("rowGroup","rowGroupIndex"),je=we.value1,tt=we.value2;(void 0!==je||void 0!==tt)&&("number"==typeof tt||je?(e.isRowGroupActive()||(e.setRowGroupActive(!0,c),this.rowGroupColumns.push(e)),s&&"number"==typeof tt&&(s[e.getId()]=tt)):e.isRowGroupActive()&&(e.setRowGroupActive(!1,c),Yl(this.rowGroupColumns,e)));var nt=d("pivot","pivotIndex"),rt=nt.value1,lt=nt.value2;(void 0!==rt||void 0!==lt)&&("number"==typeof lt||rt?(e.isPivotActive()||(e.setPivotActive(!0,c),this.pivotColumns.push(e)),a&&"number"==typeof lt&&(a[e.getId()]=lt)):e.isPivotActive()&&(e.setPivotActive(!1,c),Yl(this.pivotColumns,e)))}}},r.prototype.getGridColumns=function(e){return this.getColumns(e,this.getGridColumn.bind(this))},r.prototype.getColumns=function(e,i){var o=[];return e&&e.forEach(function(s){var a=i(s);a&&o.push(a)}),o},r.prototype.getColumnWithValidation=function(e){if(null==e)return null;var i=this.getGridColumn(e);return i||console.warn("AG Grid: could not find column "+e),i},r.prototype.getPrimaryColumn=function(e){return this.primaryColumns?this.getColumn(e,this.primaryColumns,this.primaryColumnsMap):null},r.prototype.getGridColumn=function(e){return this.getColumn(e,this.gridColumns,this.gridColumnsMap)},r.prototype.getSecondaryColumn=function(e){return this.secondaryColumns?this.getColumn(e,this.secondaryColumns,this.secondaryColumnsMap):null},r.prototype.getColumn=function(e,i,o){if(!e)return null;if("string"==typeof e&&o[e])return o[e];for(var s=0;s<i.length;s++)if(this.columnsMatch(i[s],e))return i[s];return this.getAutoColumn(e)},r.prototype.getSourceColumnsForGroupColumn=function(e){var i=e.getColDef().showRowGroup;if(!i)return null;if(!0===i)return this.rowGroupColumns.slice(0);var o=this.getPrimaryColumn(i);return o?[o]:null},r.prototype.getAutoColumn=function(e){var i=this;return this.groupAutoColumns&&rr(this.groupAutoColumns)&&!$o(this.groupAutoColumns)&&this.groupAutoColumns.find(function(o){return i.columnsMatch(o,e)})||null},r.prototype.columnsMatch=function(e,i){var o=e===i,s=e.getColDef()===i,a=e.getColId()==i;return o||s||a},r.prototype.getDisplayNameForColumn=function(e,i,o){if(void 0===o&&(o=!1),!e)return null;var s=this.getHeaderName(e.getColDef(),e,null,null,i);return o?this.wrapHeaderNameWithAggFunc(e,s):s},r.prototype.getDisplayNameForProvidedColumnGroup=function(e,i,o){var s=i?i.getColGroupDef():null;return s?this.getHeaderName(s,null,e,i,o):null},r.prototype.getDisplayNameForColumnGroup=function(e,i){return this.getDisplayNameForProvidedColumnGroup(e,e.getProvidedColumnGroup(),i)},r.prototype.getHeaderName=function(e,i,o,s,a){var l=e.headerValueGetter;if(l){var c={colDef:e,column:i,columnGroup:o,providedColumnGroup:s,location:a,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};return"function"==typeof l?l(c):"string"==typeof l?this.expressionService.evaluate(l,c):(console.warn("ag-grid: headerValueGetter must be a function or a string"),"")}return null!=e.headerName?e.headerName:e.field?fm(e.field):""},r.prototype.wrapHeaderNameWithAggFunc=function(e,i){if(this.gridOptionsWrapper.isSuppressAggFuncInHeader())return i;var l,o=e.getColDef().pivotValueColumn,a=null;if(rr(o)){var c=this.gridOptionsWrapper.isRemovePivotHeaderRowWhenSingleValueColumn()&&1===this.valueColumns.length,d=void 0!==e.getColDef().pivotTotalColumnIds;if(c&&!d)return i;a=o?o.getAggFunc():null,l=!0}else{var f=e.isValueActive(),v=this.pivotMode||!this.isRowGroupEmpty();f&&v?(a=e.getAggFunc(),l=!0):l=!1}if(l){var w="string"==typeof a?a:"func";return this.gridOptionsWrapper.getLocaleTextFunc()(w,w)+"("+i+")"}return i},r.prototype.getColumnGroup=function(e,i){if(!e)return null;if(e instanceof zr)return e;var o=this.getAllDisplayedTrees(),s="number"==typeof i,a=null;return this.columnUtils.depthFirstAllColumnTreeSearch(o,function(l){if(l instanceof zr){var c=l;(s?e===c.getGroupId()&&i===c.getInstanceId():e===c.getGroupId())&&(a=c)}}),a},r.prototype.isReady=function(){return this.ready},r.prototype.extractValueColumns=function(e,i){this.valueColumns=this.extractColumns(i,this.valueColumns,function(o,s){return o.setValueActive(s,e)},function(){},function(){},function(o){var s=o.aggFunc;return null===s||""===s?null:void 0!==s?!!s:void 0},function(o){return null!=o.initialAggFunc&&""!=o.initialAggFunc}),this.valueColumns.forEach(function(o){var s=o.getColDef();null!=s.aggFunc&&""!=s.aggFunc?o.setAggFunc(s.aggFunc):o.getAggFunc()||o.setAggFunc(s.initialAggFunc)})},r.prototype.extractRowGroupColumns=function(e,i){this.rowGroupColumns=this.extractColumns(i,this.rowGroupColumns,function(o,s){return o.setRowGroupActive(s,e)},function(o){return o.rowGroupIndex},function(o){return o.initialRowGroupIndex},function(o){return o.rowGroup},function(o){return o.initialRowGroup})},r.prototype.extractColumns=function(e,i,o,s,a,l,c){void 0===e&&(e=[]),void 0===i&&(i=[]);var d=[],f=[];(this.primaryColumns||[]).forEach(function(x){var I=e.indexOf(x)<0,M=x.getColDef(),F=$p(l(M)),re=$p(c(M)),pe=ud(s(M)),we=ud(a(M));(void 0!==F?F:void 0!==pe?null!==pe&&pe>=0:I?void 0!==re?re:void 0!==we&&null!=we&&we>=0:i.indexOf(x)>=0)&&((I?null!=pe||null!=we:null!=pe)?d.push(x):f.push(x))});var v=function(x){var I=s(x.getColDef()),M=a(x.getColDef());return I??M};d.sort(function(x,I){var M=v(x),F=v(I);return M===F?0:M<F?-1:1});var w=[].concat(d);return i.forEach(function(x){f.indexOf(x)>=0&&w.push(x)}),f.forEach(function(x){w.indexOf(x)<0&&w.push(x)}),i.forEach(function(x){w.indexOf(x)<0&&o(x,!1)}),w.forEach(function(x){i.indexOf(x)<0&&o(x,!0)}),w},r.prototype.extractPivotColumns=function(e,i){this.pivotColumns=this.extractColumns(i,this.pivotColumns,function(o,s){return o.setPivotActive(s,e)},function(o){return o.pivotIndex},function(o){return o.initialPivotIndex},function(o){return o.pivot},function(o){return o.initialPivot})},r.prototype.resetColumnGroupState=function(e){void 0===e&&(e="api");var i=[];this.columnUtils.depthFirstOriginalTreeSearch(null,this.primaryColumnTree,function(o){if(o instanceof Zr){var s=o.getColGroupDef(),a={groupId:o.getGroupId(),open:s?s.openByDefault:void 0};i.push(a)}}),this.setColumnGroupState(i,e)},r.prototype.getColumnGroupState=function(){var e=[];return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,function(i){i instanceof Zr&&e.push({groupId:i.getGroupId(),open:i.isExpanded()})}),e},r.prototype.setColumnGroupState=function(e,i){var o=this;void 0===i&&(i="api"),this.columnAnimationService.start();var s=[];e.forEach(function(a){var c=a.open,d=o.getProvidedColumnGroup(a.groupId);d&&d.isExpanded()!==c&&(o.logger.log("columnGroupOpened("+d.getGroupId()+","+c+")"),d.setExpanded(c),s.push(d))}),this.updateGroupsAndDisplayedColumns(i),this.setFirstRightAndLastLeftPinned(i),s.forEach(function(a){o.eventService.dispatchEvent({type:Et.EVENT_COLUMN_GROUP_OPENED,columnGroup:a,api:o.gridApi,columnApi:o.columnApi})}),this.columnAnimationService.finish()},r.prototype.setColumnGroupOpened=function(e,i,o){var s;void 0===o&&(o="api"),s=e instanceof Zr?e.getId():e||"",this.setColumnGroupState([{groupId:s,open:i}],o)},r.prototype.getProvidedColumnGroup=function(e){"string"!=typeof e&&console.error("AG Grid: group key must be a string");var i=null;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,function(o){o instanceof Zr&&o.getId()===e&&(i=o)}),i},r.prototype.calculateColumnsForDisplay=function(){var e=this;return this.pivotMode&&$o(this.secondaryColumns)?this.gridColumns.filter(function(o){var s=e.groupAutoColumns&&ht(e.groupAutoColumns,o),a=e.valueColumns&&ht(e.valueColumns,o);return s||a}):this.gridColumns.filter(function(o){return e.groupAutoColumns&&ht(e.groupAutoColumns,o)||o.isVisible()})},r.prototype.checkColSpanActiveInCols=function(e){var i=!1;return e.forEach(function(o){rr(o.getColDef().colSpan)&&(i=!0)}),i},r.prototype.calculateColumnsForGroupDisplay=function(){var e=this;this.groupDisplayColumns=[],this.groupDisplayColumnsMap={};var i=function(o){var s=o.getColDef(),a=s.showRowGroup;s&&rr(a)&&(e.groupDisplayColumns.push(o),"string"==typeof a?e.groupDisplayColumnsMap[a]=o:!0===a&&e.getRowGroupColumns().forEach(function(l){e.groupDisplayColumnsMap[l.getId()]=o}))};this.gridColumns.forEach(i),this.groupAutoColumns&&this.groupAutoColumns.forEach(i)},r.prototype.getGroupDisplayColumns=function(){return this.groupDisplayColumns},r.prototype.getGroupDisplayColumnForGroup=function(e){return this.groupDisplayColumnsMap[e]},r.prototype.updateDisplayedColumns=function(e){var i=this.calculateColumnsForDisplay();this.buildDisplayedTrees(i),this.calculateColumnsForGroupDisplay(),this.updateGroupsAndDisplayedColumns(e),this.setFirstRightAndLastLeftPinned(e)},r.prototype.isSecondaryColumnsPresent=function(){return rr(this.secondaryColumns)},r.prototype.setSecondaryColumns=function(e,i){var o=this;void 0===i&&(i="api");var s=e&&e.length>0;if(s||!$o(this.secondaryColumns)){if(s){this.processSecondaryColumnDefinitions(e);var a=this.columnFactory.createColumnTree(e,!1,this.secondaryBalancedTree||this.previousSecondaryColumns||void 0);this.secondaryBalancedTree=a.columnTree,this.secondaryHeaderRowCount=a.treeDept+1,this.secondaryColumns=this.getColumnsFromTree(this.secondaryBalancedTree),this.secondaryColumnsMap={},this.secondaryColumns.forEach(function(l){return o.secondaryColumnsMap[l.getId()]=l}),this.previousSecondaryColumns=null}else this.previousSecondaryColumns=this.secondaryBalancedTree,this.secondaryBalancedTree=null,this.secondaryHeaderRowCount=-1,this.secondaryColumns=null,this.secondaryColumnsMap={};this.updateGridColumns(),this.updateDisplayedColumns(i)}},r.prototype.processSecondaryColumnDefinitions=function(e){var i=this.gridOptionsWrapper.getProcessPivotResultColDefFunc(),o=this.gridOptionsWrapper.getProcessPivotResultColGroupDefFunc();if(i||o){var s=function(a){a.forEach(function(l){if(rr(l.children)){var d=l;o&&o(d),s(d.children)}else i&&i(l)})};e&&s(e)}},r.prototype.updateGridColumns=function(){var e=this;if(this.gridColsArePrimary?this.lastPrimaryOrder=this.gridColumns:this.lastSecondaryOrder=this.gridColumns,this.secondaryColumns&&this.secondaryBalancedTree){var i=this.secondaryColumns.every(function(s){return void 0!==e.gridColumnsMap[s.getColId()]});this.gridBalancedTree=this.secondaryBalancedTree.slice(),this.gridHeaderRowCount=this.secondaryHeaderRowCount,this.gridColumns=this.secondaryColumns.slice(),this.gridColsArePrimary=!1,i&&this.orderGridColsLike(this.lastSecondaryOrder)}else this.primaryColumns&&(this.gridBalancedTree=this.primaryColumnTree.slice(),this.gridHeaderRowCount=this.primaryHeaderRowCount,this.gridColumns=this.primaryColumns.slice(),this.gridColsArePrimary=!0,this.orderGridColsLike(this.lastPrimaryOrder));this.addAutoGroupToGridColumns(),this.gridColumns=this.placeLockedColumns(this.gridColumns),this.setupQuickFilterColumns(),this.clearDisplayedAndViewportColumns(),this.colSpanActive=this.checkColSpanActiveInCols(this.gridColumns),this.gridColumnsMap={},this.gridColumns.forEach(function(s){return e.gridColumnsMap[s.getId()]=s}),this.setAutoHeightActive(),this.eventService.dispatchEvent({type:Et.EVENT_GRID_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi})},r.prototype.setAutoHeightActive=function(){if(this.autoHeightActive=this.gridColumns.filter(function(s){return s.isAutoHeight()}).length>0,this.autoHeightActive){this.autoHeightActiveAtLeastOnce=!0;var e=this.rowModel.getType();e!==Nn.ROW_MODEL_TYPE_CLIENT_SIDE&&e!==Nn.ROW_MODEL_TYPE_SERVER_SIDE&&sa(function(){return console.warn("AG Grid - autoHeight columns only work with Client Side Row Model and Server Side Row Model.")},"autoHeightActive.wrongRowModel")}},r.prototype.orderGridColsLike=function(e){if(!$o(e)){var i=Kh(e.map(function(f,v){return[f,v]})),o=!0;if(this.gridColumns.forEach(function(f){i.has(f)&&(o=!1)}),!o){var s=Kh(this.gridColumns.map(function(f){return[f,!0]})),a=e.filter(function(f){return s.has(f)}),l=Kh(a.map(function(f){return[f,!0]})),c=this.gridColumns.filter(function(f){return!l.has(f)}),d=a.slice();c.forEach(function(f){var v=f.getOriginalParent();if(v){for(var w=[];!w.length&&v;)v.getLeafColumns().forEach(function(F){var re=d.indexOf(F)>=0,pe=w.indexOf(F)<0;re&&pe&&w.push(F)}),v=v.getOriginalParent();if(w.length){var I=w.map(function(F){return d.indexOf(F)}),M=Math.max.apply(Math,_p(I));qh(d,f,M+1)}else d.push(f)}else d.push(f)}),this.gridColumns=d}}},r.prototype.isPrimaryColumnGroupsPresent=function(){return this.primaryHeaderRowCount>1},r.prototype.setupQuickFilterColumns=function(){this.groupAutoColumns?this.columnsForQuickFilter=(this.primaryColumns||[]).concat(this.groupAutoColumns):this.primaryColumns&&(this.columnsForQuickFilter=this.primaryColumns)},r.prototype.placeLockedColumns=function(e){var i=[],o=[],s=[];return e.forEach(function(a){var l=a.getColDef().lockPosition;"right"===l?s.push(a):"left"===l||!0===l?i.push(a):o.push(a)}),_p(i,o,s)},r.prototype.addAutoGroupToGridColumns=function(){if(this.createGroupAutoColumnsIfNeeded(),!$o(this.groupAutoColumns)){this.gridColumns=this.groupAutoColumns?this.groupAutoColumns.concat(this.gridColumns):this.gridColumns;var e=this.columnFactory.createForAutoGroups(this.groupAutoColumns,this.gridBalancedTree);this.gridBalancedTree=e.concat(this.gridBalancedTree)}},r.prototype.clearDisplayedAndViewportColumns=function(){this.displayedTreeLeft=[],this.displayedTreeRight=[],this.displayedTreeCentre=[],this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={},this.displayedColumnsLeft=[],this.displayedColumnsRight=[],this.displayedColumnsCenter=[],this.displayedColumns=[],this.viewportColumns=[]},r.prototype.updateGroupsAndDisplayedColumns=function(e){this.updateOpenClosedVisibilityInColumnGroups(),this.deriveDisplayedColumns(e),this.refreshFlexedColumns(),this.extractViewport(),this.updateBodyWidths(),this.eventService.dispatchEvent({type:Et.EVENT_DISPLAYED_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi})},r.prototype.deriveDisplayedColumns=function(e){this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeLeft,this.displayedColumnsLeft),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeCentre,this.displayedColumnsCenter),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeRight,this.displayedColumnsRight),this.joinDisplayedColumns(),this.setLeftValues(e),this.displayedAutoHeightCols=this.displayedColumns.filter(function(i){return i.isAutoHeight()})},r.prototype.isAutoRowHeightActive=function(){return this.autoHeightActive},r.prototype.wasAutoRowHeightEverActive=function(){return this.autoHeightActiveAtLeastOnce},r.prototype.joinDisplayedColumns=function(){this.displayedColumns=this.gridOptionsWrapper.isEnableRtl()?this.displayedColumnsRight.concat(this.displayedColumnsCenter).concat(this.displayedColumnsLeft):this.displayedColumnsLeft.concat(this.displayedColumnsCenter).concat(this.displayedColumnsRight)},r.prototype.setLeftValues=function(e){this.setLeftValuesOfColumns(e),this.setLeftValuesOfGroups()},r.prototype.setLeftValuesOfColumns=function(e){var i=this;if(this.primaryColumns){var o=this.primaryColumns.slice(0),s=this.gridOptionsWrapper.isEnableRtl();[this.displayedColumnsLeft,this.displayedColumnsRight,this.displayedColumnsCenter].forEach(function(a){if(s){var l=i.getWidthOfColsInList(a);a.forEach(function(d){l-=d.getActualWidth(),d.setLeft(l,e)})}else{var c=0;a.forEach(function(d){d.setLeft(c,e),c+=d.getActualWidth()})}Rg(o,a)}),o.forEach(function(a){a.setLeft(null,e)})}},r.prototype.setLeftValuesOfGroups=function(){[this.displayedTreeLeft,this.displayedTreeRight,this.displayedTreeCentre].forEach(function(e){e.forEach(function(i){i instanceof zr&&i.checkLeft()})})},r.prototype.derivedDisplayedColumnsFromDisplayedTree=function(e,i){i.length=0,this.columnUtils.depthFirstDisplayedColumnTreeSearch(e,function(o){o instanceof ms&&i.push(o)})},r.prototype.extractViewportColumns=function(){this.viewportColumnsCenter=this.suppressColumnVirtualisation?this.displayedColumnsCenter:this.filterOutColumnsWithinViewport(),this.viewportColumns=this.viewportColumnsCenter.concat(this.displayedColumnsLeft).concat(this.displayedColumnsRight)},r.prototype.getVirtualHeaderGroupRow=function(e,i){var o;switch(e){case Nn.PINNED_LEFT:o=this.viewportRowLeft[i];break;case Nn.PINNED_RIGHT:o=this.viewportRowRight[i];break;default:o=this.viewportRowCenter[i]}return $o(o)&&(o=[]),o},r.prototype.extractViewportRows=function(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={};var e={};this.viewportColumns.forEach(function(o){return e[o.getId()]=!0});var i=function(o,s,a){for(var l=!1,c=0;c<o.length;c++){var d=o[c],f=!1;if(d instanceof ms)f=!0===e[d.getId()];else{var w=d.getDisplayedChildren();w&&(f=i(w,s,a+1))}f&&(l=!0,s[a]||(s[a]=[]),s[a].push(d))}return l};i(this.displayedTreeLeft,this.viewportRowLeft,0),i(this.displayedTreeRight,this.viewportRowRight,0),i(this.displayedTreeCentre,this.viewportRowCenter,0)},r.prototype.extractViewport=function(){this.extractViewportColumns(),this.extractViewportRows()},r.prototype.filterOutColumnsWithinViewport=function(){return this.displayedColumnsCenter.filter(this.isColumnInViewport.bind(this))},r.prototype.refreshFlexedColumns=function(e){var i=this;void 0===e&&(e={});var o=e.source?e.source:"flex";if(null!=e.viewportWidth&&(this.flexViewportWidth=e.viewportWidth),!this.flexViewportWidth)return[];var s=-1;e.resizingCols&&e.resizingCols.forEach(function(je){var tt=i.displayedColumnsCenter.indexOf(je);s<tt&&(s=tt)});var a=function(je){var tt=i.displayedColumnsCenter.indexOf(je)>s;return je.getFlex()&&tt},l=this.displayedColumnsCenter.filter(function(je){return!a(je)}),c=this.displayedColumnsCenter.filter(function(je){return a(je)}),d=[];if(!c.length)return[];var v,f=[];e:for(;;){var w=c.reduce(function(je,tt){return je+tt.getFlex()},0);v=this.flexViewportWidth-this.getWidthOfColsInList(l);for(var x=0;x<c.length;x++){var I=c[x],M=v*I.getFlex()/w,F=0,re=I.getMinWidth(),pe=I.getMaxWidth();if(rr(re)&&M<re?F=re:rr(pe)&&M>pe&&(F=pe),F){I.setActualWidth(F,o),Yl(c,I),d.push(I),l.push(I);continue e}f[x]=Math.round(M)}break}var we=v;return c.forEach(function(je,tt){je.setActualWidth(Math.min(f[tt],we),o),d.push(je),we-=f[tt]}),e.skipSetLeft||this.setLeftValues(o),e.updateBodyWidths&&this.updateBodyWidths(),e.fireResizedEvent&&this.fireColumnResizedEvent(d,!0,o,c),this.flexColsCalculatedAtLestOnce||(this.gridOptionsWrapper.isRowModelDefault()&&this.rowModel.resetRowHeights(),this.flexColsCalculatedAtLestOnce=!0),c},r.prototype.sizeColumnsToFit=function(e,i,o){void 0===i&&(i="sizeColumnsToFit");var s=this.getAllDisplayedColumns(),a=e===this.getWidthOfColsInList(s);if(!(e<=0||!s.length||a)){var l=[],c=[];s.forEach(function(je){!0===je.getColDef().suppressSizeToFit?c.push(je):l.push(je)});var d=l.slice(0),f=!1,v=function(je){Yl(l,je),c.push(je)};for(l.forEach(function(je){return je.resetActualWidth(i)});!f;){f=!0;var w=e-this.getWidthOfColsInList(c);if(w<=0)l.forEach(function(je){je.setMinimum(i)});else for(var x=w/this.getWidthOfColsInList(l),I=w,M=l.length-1;M>=0;M--){var F=l[M],re=F.getMinWidth(),pe=F.getMaxWidth(),we=Math.round(F.getActualWidth()*x);rr(re)&&we<re?(we=re,v(F),f=!1):rr(pe)&&F.isGreaterThanMax(we)?(we=pe,v(F),f=!1):0===M&&(we=I),F.setActualWidth(we,i,!0),I-=we}}d.forEach(function(je){je.fireColumnWidthChangedEvent(i)}),this.setLeftValues(i),this.updateBodyWidths(),!o&&this.fireColumnResizedEvent(d,!0,i)}},r.prototype.buildDisplayedTrees=function(e){var i=[],o=[],s=[];e.forEach(function(l){switch(l.getPinned()){case"left":i.push(l);break;case"right":o.push(l);break;default:s.push(l)}});var a=new Fg;this.displayedTreeLeft=this.displayedGroupCreator.createDisplayedGroups(i,this.gridBalancedTree,a,Nn.PINNED_LEFT,this.displayedTreeLeft),this.displayedTreeRight=this.displayedGroupCreator.createDisplayedGroups(o,this.gridBalancedTree,a,Nn.PINNED_RIGHT,this.displayedTreeRight),this.displayedTreeCentre=this.displayedGroupCreator.createDisplayedGroups(s,this.gridBalancedTree,a,null,this.displayedTreeCentre),this.updateDisplayedMap()},r.prototype.updateDisplayedMap=function(){var e=this;this.displayedColumnsAndGroupsMap={};var i=function(o){e.displayedColumnsAndGroupsMap[o.getUniqueId()]=o};this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeCentre,i),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeLeft,i),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeRight,i)},r.prototype.isDisplayed=function(e){return this.displayedColumnsAndGroupsMap[e.getUniqueId()]===e},r.prototype.updateOpenClosedVisibilityInColumnGroups=function(){var e=this.getAllDisplayedTrees();this.columnUtils.depthFirstAllColumnTreeSearch(e,function(i){i instanceof zr&&i.calculateDisplayedColumns()})},r.prototype.getGroupAutoColumns=function(){return this.groupAutoColumns},r.prototype.createGroupAutoColumnsIfNeeded=function(){if(this.autoGroupsNeedBuilding){this.autoGroupsNeedBuilding=!1;var e=this.gridOptionsWrapper.isGroupUseEntireRow(this.pivotMode),i=this.pivotMode?this.gridOptionsWrapper.isPivotSuppressAutoColumn():this.gridOptionsWrapper.isGroupSuppressAutoColumn();if(!(this.rowGroupColumns.length>0||this.usingTreeData)||i||e)this.groupAutoColumns=null;else{var l=this.autoGroupColService.createAutoGroupColumns(this.groupAutoColumns||[],this.rowGroupColumns);(!this.autoColsEqual(l,this.groupAutoColumns)||this.forceRecreateAutoGroups)&&(this.groupAutoColumns=l)}}},r.prototype.autoColsEqual=function(e,i){return $l(e,i,function(o,s){return o.getColId()===s.getColId()})},r.prototype.getWidthOfColsInList=function(e){return e.reduce(function(i,o){return i+o.getActualWidth()},0)},r.prototype.getGridBalancedTree=function(){return this.gridBalancedTree},r.prototype.hasFloatingFilters=function(){return!!this.gridColumns&&this.gridColumns.some(function(i){return i.getColDef().floatingFilter})},r.prototype.getFirstDisplayedColumn=function(){var e=this.gridOptionsWrapper.isEnableRtl(),i=["getDisplayedLeftColumns","getDisplayedCenterColumns","getDisplayedRightColumns"];e&&i.reverse();for(var o=0;o<i.length;o++){var s=this[i[o]]();if(s.length)return e?Ja(s):s[0]}return null},r.prototype.setColumnHeaderHeight=function(e,i){e.setAutoHeaderHeight(i)&&this.eventService.dispatchEvent({type:Et.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,column:e,columns:[e],api:this.gridApi,columnApi:this.columnApi,source:"autosizeColumnHeaderHeight"})},r.prototype.getColumnGroupHeaderRowHeight=function(){return this.isPivotMode()?this.gridOptionsWrapper.getPivotGroupHeaderHeight():this.gridOptionsWrapper.getGroupHeaderHeight()},r.prototype.getColumnHeaderRowHeight=function(){var e=this.isPivotMode()?this.gridOptionsWrapper.getPivotHeaderHeight():this.gridOptionsWrapper.getHeaderHeight(),i=this.getAllDisplayedColumns().filter(function(o){return o.isAutoHeaderHeight()}).map(function(o){return o.getAutoHeaderHeight()||0});return Math.max.apply(Math,_p([e],i))},wl([Xe("expressionService")],r.prototype,"expressionService",void 0),wl([Xe("columnFactory")],r.prototype,"columnFactory",void 0),wl([Xe("displayedGroupCreator")],r.prototype,"displayedGroupCreator",void 0),wl([Xe("ctrlsService")],r.prototype,"ctrlsService",void 0),wl([Xe("autoWidthCalculator")],r.prototype,"autoWidthCalculator",void 0),wl([Xe("columnUtils")],r.prototype,"columnUtils",void 0),wl([Xe("columnAnimationService")],r.prototype,"columnAnimationService",void 0),wl([Xe("autoGroupColService")],r.prototype,"autoGroupColService",void 0),wl([_a("aggFuncService")],r.prototype,"aggFuncService",void 0),wl([_a("valueCache")],r.prototype,"valueCache",void 0),wl([_a("animationFrameService")],r.prototype,"animationFrameService",void 0),wl([Xe("rowModel")],r.prototype,"rowModel",void 0),wl([Xe("columnApi")],r.prototype,"columnApi",void 0),wl([Xe("gridApi")],r.prototype,"gridApi",void 0),wl([Xe("sortController")],r.prototype,"sortController",void 0),wl([Xe("columnDefFactory")],r.prototype,"columnDefFactory",void 0),wl([qi],r.prototype,"init",null),wl([mm(0,Hc("loggerFactory"))],r.prototype,"setBeans",null),wl([Kr("columnModel")],r)}(Zi),Jc=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),yp=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return Jc(r,t),r.prototype.calculateColMinWidth=function(e){return null!=e.minWidth?e.minWidth:this.gridOptionsWrapper.getMinColWidth()},r.prototype.calculateColMaxWidth=function(e){return null!=e.maxWidth?e.maxWidth:this.gridOptionsWrapper.getMaxColWidth()||Number.MAX_SAFE_INTEGER},r.prototype.calculateColInitialWidth=function(e){var s,i=this.calculateColMinWidth(e),o=this.calculateColMaxWidth(e),a=ud(e.width),l=ud(e.initialWidth);return s=null!=a?a:null!=l?l:this.gridOptionsWrapper.getColWidth(),Math.max(Math.min(s,o),i)},r.prototype.getOriginalPathForColumn=function(e,i){var o=[],s=!1,a=function(l,c){for(var d=0;d<l.length;d++){if(s)return;var f=l[d];f instanceof Zr?(a(f.getChildren(),c+1),o[c]=f):f===e&&(s=!0)}};return a(i,0),s?o:null},r.prototype.depthFirstOriginalTreeSearch=function(e,i,o){var s=this;i&&i.forEach(function(a){a instanceof Zr&&s.depthFirstOriginalTreeSearch(a,a.getChildren(),o),o(a,e)})},r.prototype.depthFirstAllColumnTreeSearch=function(e,i){var o=this;e&&e.forEach(function(s){s instanceof zr&&o.depthFirstAllColumnTreeSearch(s.getChildren(),i),i(s)})},r.prototype.depthFirstDisplayedColumnTreeSearch=function(e,i){var o=this;e&&e.forEach(function(s){s instanceof zr&&o.depthFirstDisplayedColumnTreeSearch(s.getDisplayedChildren(),i),i(s)})},r=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s}([Kr("columnUtils")],r),r}(Zi),Qh=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),v1=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return Qh(r,t),r.prototype.createDisplayedGroups=function(e,i,o,s,a){var d,f,l=this,c=[],v=this.mapOldGroupsById(a);return e.forEach(function(w){for(var x=l.getOriginalPathForColumn(i,w),I=[],M=!f,F=0;F<x.length;F++)if(M||x[F]!==f[F]){var re=l.createColumnGroup(x[F],o,v,s);I[F]=re,0==F?c.push(re):I[F-1].addChild(re)}else I[F]=d[F];0===I.length?c.push(w):Ja(I).addChild(w),d=I,f=x}),this.setupParentsIntoColumns(c,null),c},r.prototype.createColumnGroup=function(e,i,o,s){var a=e.getGroupId(),l=i.getInstanceIdForKey(a),d=o[zr.createUniqueId(a,l)];return d&&d.getProvidedColumnGroup()!==e&&(d=null),rr(d)?d.reset():(d=new zr(e,a,l,s),this.context.createBean(d)),d},r.prototype.mapOldGroupsById=function(e){var i={},o=function(s){s.forEach(function(a){if(a instanceof zr){var l=a;i[a.getUniqueId()]=l,o(l.getChildren())}})};return e&&o(e),i},r.prototype.setupParentsIntoColumns=function(e,i){var o=this;e.forEach(function(s){if(s.setParent(i),s instanceof zr){var a=s;o.setupParentsIntoColumns(a.getChildren(),a)}})},r.prototype.getOriginalPathForColumn=function(e,i){var o=[],s=!1,a=function(l,c){for(var d=0;d<l.length;d++){if(s)return;var f=l[d];f instanceof Zr?(a(f.getChildren(),c+1),o[c]=f):f===i&&(s=!0)}};return a(e,0),s?o:(console.warn("AG Grid: could not get path"),null)},r=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s}([Kr("displayedGroupCreator")],r),r}(Zi),s_=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var o,a,i=e.call(t),s=[];try{for(;(void 0===r||r-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return s},bp=function(){function t(){}return t.STRING_PROPERTIES=["sortingOrder","rowClass","rowSelection","overlayLoadingTemplate","overlayNoRowsTemplate","quickFilterText","rowModelType","editType","domLayout","clipboardDelimiter","rowGroupPanelShow","multiSortKey","pivotColumnGroupTotals","pivotRowTotals","pivotPanelShow","fillHandleDirection","serverSideStoreType","groupDisplayType","treeDataDisplayType"],t.OBJECT_PROPERTIES=["components","frameworkComponents","rowStyle","context","autoGroupColumnDef","localeText","icons","datasource","serverSideDatasource","viewportDatasource","groupRowRendererParams","aggFuncs","fullWidthCellRendererParams","defaultColGroupDef","defaultColDef","defaultExportParams","defaultCsvExportParams","defaultExcelExportParams","columnTypes","rowClassRules","detailCellRendererParams","loadingCellRendererParams","loadingOverlayComponentParams","noRowsOverlayComponentParams","popupParent","colResizeDefault","statusBar","sideBar","chartThemeOverrides","customChartThemes"],t.ARRAY_PROPERTIES=["alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData","chartThemes"],t.NUMBER_PROPERTIES=["rowHeight","detailRowHeight","rowBuffer","colWidth","headerHeight","groupHeaderHeight","floatingFiltersHeight","pivotHeaderHeight","pivotGroupHeaderHeight","groupDefaultExpanded","minColWidth","maxColWidth","viewportRowModelPageSize","viewportRowModelBufferSize","autoSizePadding","maxBlocksInCache","maxConcurrentDatasourceRequests","tooltipShowDelay","tooltipHideDelay","cacheOverflowSize","paginationPageSize","cacheBlockSize","infiniteInitialRowCount","scrollbarWidth","batchUpdateWaitMillis","asyncTransactionWaitMillis","blockLoadDebounceMillis","keepDetailRowsCount","undoRedoCellEditingLimit","cellFlashDelay","cellFadeDelay","tabIndex"],t.BOOLEAN_PROPERTIES=["suppressMakeColumnVisibleAfterUnGroup","suppressRowClickSelection","suppressCellSelection","suppressCellFocus","suppressHorizontalScroll","alwaysShowHorizontalScroll","alwaysShowVerticalScroll","debug","enableBrowserTooltips","enableCellExpressions","angularCompileRows","angularCompileFilters","groupSuppressAutoColumn","groupSelectsChildren","groupIncludeFooter","groupIncludeTotalFooter","groupUseEntireRow","groupSuppressBlankHeader","suppressMenuHide","suppressRowDeselection","unSortIcon","suppressMultiSort","alwaysMultiSort","singleClickEdit","suppressLoadingOverlay","suppressNoRowsOverlay","suppressAutoSize","skipHeaderOnAutoSize","suppressParentsInRowNodes","suppressColumnMoveAnimation","suppressMovableColumns","suppressFieldDotNotation","enableRangeSelection","enableRangeHandle","enableFillHandle","suppressClearOnFillReduction","deltaSort","suppressTouch","suppressAsyncEvents","allowContextMenuWithControlKey","suppressContextMenu","rememberGroupStateWhenNewData","enableCellChangeFlash","suppressDragLeaveHidesColumns","suppressRowGroupHidesColumns","suppressMiddleClickScrolls","suppressPreventDefaultOnMouseWheel","suppressCopyRowsToClipboard","copyHeadersToClipboard","copyGroupHeadersToClipboard","pivotMode","suppressAggFuncInHeader","suppressColumnVirtualisation","suppressAggAtRootLevel","suppressFocusAfterRefresh","functionsPassive","functionsReadOnly","animateRows","groupSelectsFiltered","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","enableRtl","suppressClickEdit","rowDragEntireRow","rowDragManaged","suppressRowDrag","suppressMoveWhenRowDragging","rowDragMultiRow","enableGroupEdit","embedFullWidthRows","deprecatedEmbedFullWidthRows","suppressPaginationPanel","groupHideOpenParents","groupMultiAutoColumn","pagination","stopEditingWhenGridLosesFocus","paginationAutoPageSize","suppressScrollOnNewData","suppressScrollWhenPopupsAreOpen","purgeClosedRowNodes","cacheQuickFilter","deltaRowDataMode","ensureDomOrder","accentedSort","suppressChangeDetection","valueCache","valueCacheNeverExpires","aggregateOnlyChangedColumns","suppressAnimationFrame","suppressExcelExport","suppressCsvExport","treeData","masterDetail","suppressMultiRangeSelection","enterMovesDownAfterEdit","enterMovesDown","suppressPropertyNamesCheck","rowMultiSelectWithClick","suppressEnterpriseResetOnNewColumns","suppressRowHoverHighlight","suppressRowTransform","suppressClipboardPaste","suppressLastEmptyLineOnPaste","suppressSetColumnStateEvents","suppressColumnStateEvents","enableCharts","deltaColumnMode","suppressMaintainUnsortedOrder","enableCellTextSelection","suppressBrowserResizeObserver","suppressMaxRenderedRowRestriction","excludeChildrenWhenTreeDataFiltering","tooltipMouseTrack","keepDetailRows","paginateChildRows","preventDefaultOnContextMenu","undoRedoCellEditing","allowDragFromColumnsToolPanel","immutableData","immutableColumns","pivotSuppressAutoColumn","suppressExpandablePivotGroups","applyColumnDefOrder","debounceVerticalScrollbar","detailRowAutoHeight","serverSideFilteringAlwaysResets","serverSideSortingAlwaysResets","serverSideSortAllLevels","serverSideFilterAllLevels","serverSideSortOnServer","serverSideFilterOnServer","suppressAggFilteredOnly","showOpenedGroup","suppressClipboardApi","suppressModelUpdateAfterUpdateTransaction","stopEditingWhenCellsLoseFocus","maintainColumnOrder","groupMaintainOrder","columnHoverHighlight","reactUi","suppressReactUi","readOnlyEdit","suppressRowVirtualisation","resetRowDataOnUpdate","removePivotHeaderRowWhenSingleValueColumn","suppressCopySingleCellRanges","groupRowsSticky","serverSideInfiniteScroll"],t.ALL_PROPERTIES=function(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(s_(arguments[r]));return t}(t.ARRAY_PROPERTIES,t.OBJECT_PROPERTIES,t.STRING_PROPERTIES,t.NUMBER_PROPERTIES,t.FUNCTION_PROPERTIES=["localeTextFunc","getLocaleText","groupRowInnerRenderer","groupRowInnerRendererFramework","groupRowRenderer","groupRowRendererFramework","isExternalFilterPresent","getRowHeight","doesExternalFilterPass","getRowClass","getRowStyle","getContextMenuItems","getMainMenuItems","processRowPostCreate","processCellForClipboard","groupRowAggNodes","getGroupRowAgg","getRowNodeId","isFullWidthCell","isFullWidthRow","fullWidthCellRenderer","fullWidthCellRendererFramework","processSecondaryColDef","processSecondaryColGroupDef","processPivotResultColDef","processPivotResultColGroupDef","getBusinessKeyForNode","sendToClipboard","navigateToNextHeader","tabToNextHeader","navigateToNextCell","tabToNextCell","processCellFromClipboard","getDocument","postProcessPopup","getChildCount","getDataPath","loadingCellRenderer","loadingCellRendererFramework","loadingOverlayComponent","loadingOverlayComponentFramework","noRowsOverlayComponent","noRowsOverlayComponentFramework","detailCellRenderer","detailCellRendererFramework","isRowMaster","isRowSelectable","postSort","postSortRows","processHeaderForClipboard","processGroupHeaderForClipboard","paginationNumberFormatter","processDataFromClipboard","getServerSideGroupKey","isServerSideGroup","suppressKeyboardEvent","createChartContainer","getChartToolbarItems","fillOperation","isApplyServerSideTransaction","getServerSideStoreParams","getServerSideGroupLevelParams","isServerSideGroupOpenByDefault","isGroupOpenByDefault","defaultGroupSortComparator","defaultGroupOrderComparator","initialGroupOrderComparator","loadingCellRendererSelector","getRowId","groupAggFiltering"],t.BOOLEAN_PROPERTIES),t.FRAMEWORK_PROPERTIES=["__ob__","__v_skip","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],t}(),fu=function(){return fu=Object.assign||function(t){for(var r,e=1,i=arguments.length;e<i;e++)for(var o in r=arguments[e])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t},fu.apply(this,arguments)},Ym=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var o,a,i=e.call(t),s=[];try{for(;(void 0===r||r-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return s},Ng=function(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(Ym(arguments[r]));return t},Td=function(){function t(){}return t.getEventCallbacks=function(){return t.EVENT_CALLBACKS||(t.EVENT_CALLBACKS=t.EVENTS.map(function(r){return t.getCallbackForEvent(r)})),t.EVENT_CALLBACKS},t.copyAttributesToGridOptions=function(r,e,i){void 0===i&&(i=!1),"object"!=typeof r&&(r={});var o=r,s=function(a){return typeof e[a]<"u"};return s("groupAggFiltering")&&"function"!=typeof e.groupAggFiltering&&(o.groupAggFiltering=t.toBoolean(e.groupAggFiltering),delete e.groupAggFiltering),Ng(t.ARRAY_PROPERTIES,t.STRING_PROPERTIES,t.OBJECT_PROPERTIES,t.FUNCTION_PROPERTIES,t.getEventCallbacks()).filter(s).forEach(function(a){return o[a]=e[a]}),t.BOOLEAN_PROPERTIES.filter(s).forEach(function(a){return o[a]=t.toBoolean(e[a])}),t.NUMBER_PROPERTIES.filter(s).forEach(function(a){return o[a]=t.toNumber(e[a])}),r},t.getCallbackForEvent=function(r){return!r||r.length<2?r:"on"+r[0].toUpperCase()+r.substr(1)},t.processOnChange=function(r,e,i,o){if(r){var s=fu({},r),a=e,l=function(f){return s[f]};l("groupAggFiltering")&&(a.groupAggFiltering="function"==typeof s.groupAggFiltering?s.groupAggFiltering:t.toBoolean(s.groupAggFiltering),delete s.groupAggFiltering),s.rowClass&&(i.setRowClass(s.rowClass.currentValue),delete s.rowClass),Ng(t.ARRAY_PROPERTIES,t.OBJECT_PROPERTIES,t.STRING_PROPERTIES,t.getEventCallbacks()).filter(l).forEach(function(f){return a[f]=s[f].currentValue}),t.BOOLEAN_PROPERTIES.filter(l).forEach(function(f){return a[f]=t.toBoolean(s[f].currentValue)}),t.NUMBER_PROPERTIES.filter(l).forEach(function(f){return a[f]=t.toNumber(s[f].currentValue)}),s.enableCellTextSelection&&(i.setEnableCellTextSelection(t.toBoolean(s.enableCellTextSelection.currentValue)),delete s.enableCellTextSelection),s.quickFilterText&&(i.setQuickFilter(s.quickFilterText.currentValue),delete s.quickFilterText),s.autoGroupColumnDef&&(i.setAutoGroupColumnDef(s.autoGroupColumnDef.currentValue,"gridOptionsChanged"),delete s.autoGroupColumnDef),s.columnDefs&&(i.setColumnDefs(s.columnDefs.currentValue,"gridOptionsChanged"),delete s.columnDefs),s.defaultColDef&&(i.setDefaultColDef(s.defaultColDef.currentValue,"gridOptionsChanged"),delete s.defaultColDef),s.paginationPageSize&&(i.paginationSetPageSize(t.toNumber(s.paginationPageSize.currentValue)),delete s.paginationPageSize),s.pivotMode&&(o.setPivotMode(t.toBoolean(s.pivotMode.currentValue)),delete s.pivotMode),s.groupRemoveSingleChildren&&(i.setGroupRemoveSingleChildren(t.toBoolean(s.groupRemoveSingleChildren.currentValue)),delete s.groupRemoveSingleChildren),s.suppressRowDrag&&(i.setSuppressRowDrag(t.toBoolean(s.suppressRowDrag.currentValue)),delete s.suppressRowDrag),s.suppressMoveWhenRowDragging&&(i.setSuppressMoveWhenRowDragging(t.toBoolean(s.suppressMoveWhenRowDragging.currentValue)),delete s.suppressMoveWhenRowDragging),s.suppressRowClickSelection&&(i.setSuppressRowClickSelection(t.toBoolean(s.suppressRowClickSelection.currentValue)),delete s.suppressRowClickSelection),s.suppressClipboardPaste&&(i.setSuppressClipboardPaste(t.toBoolean(s.suppressClipboardPaste.currentValue)),delete s.suppressClipboardPaste),s.headerHeight&&(i.setHeaderHeight(t.toNumber(s.headerHeight.currentValue)),delete s.headerHeight);var c=i;Object.keys(s).forEach(function(f){var v="set"+f.charAt(0).toUpperCase()+f.substring(1);c[v]&&c[v](r[f].currentValue)});var d={type:Et.EVENT_COMPONENT_STATE_CHANGED,api:e.api,columnApi:e.columnApi};Vo(r,function(f,v){d[f]=v}),i.dispatchEvent(d)}},t.toBoolean=function(r){return"boolean"==typeof r?r:"string"==typeof r&&("TRUE"===r.toUpperCase()||""==r)},t.toNumber=function(r){return"number"==typeof r?r:"string"==typeof r?Number(r):void 0},t.EVENTS=[],t.PUBLIC_EVENTS=[],t.EXCLUDED_INTERNAL_EVENTS=[],t.STRING_PROPERTIES=bp.STRING_PROPERTIES,t.OBJECT_PROPERTIES=bp.OBJECT_PROPERTIES,t.ARRAY_PROPERTIES=bp.ARRAY_PROPERTIES,t.NUMBER_PROPERTIES=bp.NUMBER_PROPERTIES,t.BOOLEAN_PROPERTIES=bp.BOOLEAN_PROPERTIES,t.FUNCTION_PROPERTIES=bp.FUNCTION_PROPERTIES,t.ALL_PROPERTIES=bp.ALL_PROPERTIES,t}();Td.EVENTS=dd(Et),Td.EXCLUDED_INTERNAL_EVENTS=[Et.EVENT_SCROLLBAR_WIDTH_CHANGED,Et.EVENT_CHECKBOX_CHANGED,Et.EVENT_HEIGHT_SCALE_CHANGED,Et.EVENT_BODY_HEIGHT_CHANGED,Et.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,Et.EVENT_SCROLL_VISIBILITY_CHANGED,Et.EVENT_COLUMN_HOVER_CHANGED,Et.EVENT_FLASH_CELLS,Et.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,Et.EVENT_DISPLAYED_ROWS_CHANGED,Et.EVENT_LEFT_PINNED_WIDTH_CHANGED,Et.EVENT_RIGHT_PINNED_WIDTH_CHANGED,Et.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,Et.EVENT_POPUP_TO_FRONT,Et.EVENT_KEYBOARD_FOCUS,Et.EVENT_MOUSE_FOCUS,Et.EVENT_STORE_UPDATED,Et.EVENT_COLUMN_PANEL_ITEM_DRAG_START,Et.EVENT_COLUMN_PANEL_ITEM_DRAG_END,Et.EVENT_FILL_START,Et.EVENT_FILL_END,Et.EVENT_FULL_WIDTH_ROW_FOCUSED,Et.EVENT_HEADER_HEIGHT_CHANGED,Et.EVENT_COLUMN_HEADER_HEIGHT_CHANGED],Td.PUBLIC_EVENTS=Td.EVENTS.filter(function(t){return!ht(Td.EXCLUDED_INTERNAL_EVENTS,t)});var Gg,Bg,c_,_1,x0,Cp,Kp,u_,d_,E0,Ug,l_=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),bc=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.componentsMappedByName={},e}return l_(r,t),r.prototype.setupComponents=function(e){var i=this;e&&e.forEach(function(o){return i.addComponent(o)})},r.prototype.addComponent=function(e){var o=e.componentName.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase().toUpperCase();this.componentsMappedByName[o]=e.componentClass},r.prototype.getComponentClass=function(e){return this.componentsMappedByName[e]},r=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s}([Kr("agStackComponentsRegistry")],r),r}(Zi),Vd=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var o,a,i=e.call(t),s=[];try{for(;(void 0===r||r-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return s},lc=function(){function t(){}return t.STRING_PROPERTIES=["headerName","columnGroupShow","headerClass","toolPanelClass","headerValueGetter","pivotKeys","groupId","colId","sort","initialSort","field","type","tooltipComponent","tooltipField","headerTooltip","cellClass","showRowGroup","filter","initialAggFunc","defaultAggFunc","aggFunc","pinned","initialPinned","chartDataType","cellEditorPopupPosition"],t.OBJECT_PROPERTIES=["headerGroupComponent","headerGroupComponentFramework","headerGroupComponentParams","cellStyle","cellRenderer","cellRendererParams","cellRendererFramework","cellEditor","cellEditorFramework","cellEditorParams","pinnedRowCellRendererFramework","pinnedRowCellRendererParams","filterFramework","filterParams","pivotValueColumn","headerComponent","headerComponentFramework","headerComponentParams","floatingFilterComponent","floatingFilterComponentParams","floatingFilterComponentFramework","floatingFilterFramework","tooltipComponent","tooltipComponentParams","tooltipComponentFramework","refData","columnsMenuParams"],t.ARRAY_PROPERTIES=["children","sortingOrder","allowedAggFuncs","menuTabs","pivotTotalColumnIds","cellClassRules","icons"],t.NUMBER_PROPERTIES=["sortedAt","sortIndex","initialSortIndex","flex","initialFlex","width","initialWidth","minWidth","maxWidth","rowGroupIndex","initialRowGroupIndex","pivotIndex","initialPivotIndex"],t.BOOLEAN_PROPERTIES=["suppressCellFlash","suppressColumnsToolPanel","suppressFiltersToolPanel","openByDefault","marryChildren","hide","initialHide","rowGroup","initialRowGroup","pivot","initialPivot","checkboxSelection","headerCheckboxSelection","headerCheckboxSelectionFilteredOnly","suppressMenu","suppressMovable","lockPosition","lockVisible","lockPinned","unSortIcon","suppressSizeToFit","suppressAutoSize","enableRowGroup","enablePivot","enableValue","editable","suppressPaste","suppressNavigable","enableCellChangeFlash","rowDrag","dndSource","autoHeight","wrapText","sortable","resizable","singleClickEdit","floatingFilter","cellEditorPopup","suppressFillHandle","wrapHeaderText","autoHeaderHeight"],t.ALL_PROPERTIES=function(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(Vd(arguments[r]));return t}(t.ARRAY_PROPERTIES,t.OBJECT_PROPERTIES,t.STRING_PROPERTIES,t.NUMBER_PROPERTIES,t.FUNCTION_PROPERTIES=["dndSourceOnRowDrag","valueGetter","valueSetter","filterValueGetter","keyCreator","pinnedRowCellRenderer","valueFormatter","pinnedRowValueFormatter","valueParser","comparator","equals","pivotComparator","suppressKeyboardEvent","suppressHeaderKeyboardEvent","colSpan","rowSpan","getQuickFilterText","newValueHandler","onCellValueChanged","onCellClicked","onCellDoubleClicked","onCellContextMenu","rowDragText","tooltipValueGetter","tooltipComponent","tooltipComponentFramework","cellRendererSelector","cellEditorSelector"],t.BOOLEAN_PROPERTIES),t.FRAMEWORK_PROPERTIES=["__ob__","__v_skip","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],t}(),Tu=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var o,a,i=e.call(t),s=[];try{for(;(void 0===r||r-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return s},Zc=function(){function t(r,e,i,o){void 0===o&&(o=1),this.r=Math.min(1,Math.max(0,r||0)),this.g=Math.min(1,Math.max(0,e||0)),this.b=Math.min(1,Math.max(0,i||0)),this.a=Math.min(1,Math.max(0,o||0))}return t.fromString=function(r){if(r.indexOf("#")>=0)return t.fromHexString(r);var e=t.nameToHex[r];if(e)return t.fromHexString(e);if(r.indexOf("rgb")>=0)return t.fromRgbaString(r);throw new Error("Invalid color string: '"+r+"'")},t.parseHex=function(r){var e;switch((r=r.replace(/ /g,"").slice(1)).length){case 6:case 8:e=[];for(var i=0;i<r.length;i+=2)e.push(parseInt(""+r[i]+r[i+1],16));break;case 3:case 4:e=r.split("").map(function(o){return parseInt(o,16)}).map(function(o){return o+16*o})}if(e.length>=3&&e.every(function(o){return o>=0}))return 3===e.length&&e.push(255),e},t.fromHexString=function(r){var e=t.parseHex(r);if(e){var i=Tu(e,4);return new t(i[0]/255,i[1]/255,i[2]/255,i[3]/255)}throw new Error("Malformed hexadecimal color string: '"+r+"'")},t.stringToRgba=function(r){for(var e=Tu([NaN,NaN],2),i=e[0],o=e[1],s=0;s<r.length;s++){var a=r[s];if(i||"("!==a){if(")"===a){o=s;break}}else i=s}var l=i&&o&&r.substring(i+1,o);if(l){var c=l.split(","),d=[];for(s=0;s<c.length;s++){var f=c[s],v=parseFloat(f);if(isNaN(v))return;f.indexOf("%")>=0?(v=Math.max(0,Math.min(100,v)),v/=100):3===s?v=Math.max(0,Math.min(1,v)):(v=Math.max(0,Math.min(255,v)),v/=255),d.push(v)}return d}},t.fromRgbaString=function(r){var e=t.stringToRgba(r);if(e){if(3===e.length)return new t(e[0],e[1],e[2]);if(4===e.length)return new t(e[0],e[1],e[2],e[3])}throw new Error("Malformed rgb/rgba color string: '"+r+"'")},t.fromArray=function(r){if(4===r.length)return new t(r[0],r[1],r[2],r[3]);if(3===r.length)return new t(r[0],r[1],r[2]);throw new Error("The given array should contain 3 or 4 color components (numbers).")},t.fromHSB=function(r,e,i,o){void 0===o&&(o=1);var s=t.HSBtoRGB(r,e,i);return new t(s[0],s[1],s[2],o)},t.padHex=function(r){return 1===r.length?"0"+r:r},t.prototype.toHexString=function(){var r="#"+t.padHex(Math.round(255*this.r).toString(16))+t.padHex(Math.round(255*this.g).toString(16))+t.padHex(Math.round(255*this.b).toString(16));return this.a<1&&(r+=t.padHex(Math.round(255*this.a).toString(16))),r},t.prototype.toRgbaString=function(r){void 0===r&&(r=3);var e=[Math.round(255*this.r),Math.round(255*this.g),Math.round(255*this.b)],i=Math.pow(10,r);return 1!==this.a?(e.push(Math.round(this.a*i)/i),"rgba("+e.join(", ")+")"):"rgb("+e.join(", ")+")"},t.prototype.toString=function(){return 1===this.a?this.toHexString():this.toRgbaString()},t.prototype.toHSB=function(){return t.RGBtoHSB(this.r,this.g,this.b)},t.RGBtoHSB=function(r,e,i){var o=Math.min(r,e,i),s=Math.max(r,e,i),l=NaN;if(o!==s){var c=s-o,d=(s-r)/c,f=(s-e)/c,v=(s-i)/c;l=r===s?v-f:e===s?2+d-v:4+f-d,(l/=6)<0&&(l+=1)}return[360*l,0!==s?(s-o)/s:0,s]},t.HSBtoRGB=function(r,e,i){isNaN(r)&&(r=0),r=(r%360+360)%360/360;var o=0,s=0,a=0;if(0===e)o=s=a=i;else{var l=6*(r-Math.floor(r)),c=l-Math.floor(l),d=i*(1-e),f=i*(1-e*c),v=i*(1-e*(1-c));switch(0|l){case 0:o=i,s=v,a=d;break;case 1:o=f,s=i,a=d;break;case 2:o=d,s=i,a=v;break;case 3:o=d,s=f,a=i;break;case 4:o=v,s=d,a=i;break;case 5:o=i,s=d,a=f}}return[o,s,a]},t.prototype.derive=function(r,e,i,o){var s=t.RGBtoHSB(this.r,this.g,this.b),a=s[2];0==a&&i>1&&(a=.05);var l=((s[0]+r)%360+360)%360,c=Math.max(Math.min(s[1]*e,1),0);a=Math.max(Math.min(a*i,1),0);var d=Math.max(Math.min(this.a*o,1),0),f=t.HSBtoRGB(l,c,a);return f.push(d),t.fromArray(f)},t.prototype.brighter=function(){return this.derive(0,1,1/.7,1)},t.prototype.darker=function(){return this.derive(0,1,.7,1)},t.nameToHex=Object.freeze({aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgreen:"#006400",darkgrey:"#A9A9A9",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",green:"#008000",greenyellow:"#ADFF2F",grey:"#808080",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgreen:"#90EE90",lightgrey:"#D3D3D3",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"}),t}(),Wm=function(t){var r="function"==typeof Symbol&&Symbol.iterator,e=r&&t[r],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")};function Vg(){if(E0)return E0;var e,i,t=navigator.userAgent,r=t.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];if(/trident/i.test(r[1]))return{name:"IE",version:i=null!=(e=/\brv[ :]+(\d+)/g.exec(t)||[])[1]?parseFloat(e[1]):0};if("Chrome"===r[1]&&null!=(e=t.match(/\bOPR|Edge\/(\d+)/)))return{name:"Opera",version:i=null!=e[1]?parseFloat(e[1]):0};r=r[2]?[r[1],r[2]]:[navigator.appName,navigator.appVersion,"-?"],null!=(e=t.match(/version\/(\d+)/i))&&r.splice(1,1,e[1]);var o=r[0];return i=null!=r[1]?parseFloat(r[1]):0,E0={name:o,version:i}}function p_(){return void 0===c_&&(c_=!function y1(){return void 0===Bg&&(Bg=!!document.documentMode),Bg}()&&!!window.StyleMedia),c_}function jg(){return void 0===Gg&&(Gg=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),Gg}function Hg(){if(void 0===_1){var t=window;_1=!!t.chrome&&(!!t.chrome.webstore||!!t.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return _1}function b1(){if(void 0===x0){var t=window;x0=typeof t.InstallTrigger<"u"}return x0}function C1(){return void 0===Cp&&(Cp=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),Cp}function zm(){return void 0===Kp&&(Kp=(/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!window.MSStream),Kp}function N2(){return!jg()||Vg().version>=15}function w1(t){if(!t)return null;var r=t.tabIndex,e=t.getAttribute("tabIndex");return-1!==r||null!==e&&(""!==e||b1())?r.toString():null}function G2(){if(!document.body)return-1;var t=1e6,r=navigator.userAgent.toLowerCase().match(/firefox/)?6e6:1e9,e=document.createElement("div");for(document.body.appendChild(e);;){var i=2*t;if(e.style.height=i+"px",i>r||e.clientHeight!==i)break;t=i}return document.body.removeChild(e),t}function FT(){return null==d_&&B2(),d_}function B2(){var t=document.body,r=document.createElement("div");r.style.width=r.style.height="100px",r.style.opacity="0",r.style.overflow="scroll",r.style.msOverflowStyle="scrollbar",r.style.position="absolute",t.appendChild(r);var e=r.offsetWidth-r.clientWidth;0===e&&0===r.clientWidth&&(e=null),r.parentNode&&r.parentNode.removeChild(r),null!=e&&(d_=e,u_=0===e)}function V2(){return null==u_&&B2(),u_}function xP(){var t,r,e=["webkit","moz","o","ms"],i=document.createElement("div"),s=!1;document.getElementsByTagName("body")[0].appendChild(i),i.setAttribute("style",e.map(function(f){return"-"+f+"-overflow-scrolling: touch"}).concat("overflow-scrolling: touch").join(";"));var l=window.getComputedStyle(i);if("touch"===l.overflowScrolling&&(s=!0),!s)try{for(var c=Wm(e),d=c.next();!d.done;d=c.next())if("touch"===l[d.value+"OverflowScrolling"]){s=!0;break}}catch(f){t={error:f}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(t)throw t.error}}return i.parentNode&&i.parentNode.removeChild(i),s}function j2(){return document.body?document.body.clientWidth:window.innerHeight?window.innerWidth:document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:-1}function T1(){return document.body?document.body.clientHeight:window.innerHeight?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:-1}function S1(t,r,e){for(var i=t.parentElement,o=i&&i.firstChild;o;)r&&o.classList.toggle(r,o===t),e&&o.classList.toggle(e,o!==t),o=o.nextSibling}function Nf(t){var r=Element.prototype.matches||Element.prototype.msMatchesSelector,e=r.call(t,Nn.INPUT_SELECTOR),i=r.call(t,Nn.FOCUSABLE_EXCLUDE),o=Zh(t);return e&&!i&&o}function Pl(t,r){t.classList.toggle("ag-hidden",!r)}function PT(t,r){t.classList.toggle("ag-invisible",!r)}function $g(t,r){var e="disabled",i=r?function(o){return o.setAttribute(e,"")}:function(o){return o.removeAttribute(e)};i(t),Pe(t.querySelectorAll("input"),function(o){return i(o)})}function qm(t,r,e){for(var i=0;t;){if(t.classList.contains(r))return!0;if(t=t.parentElement,"number"==typeof e){if(++i>e)break}else if(t===e)break}return!1}function D0(t){var r=window.getComputedStyle(t),i=r.width,o=r.paddingTop,s=r.paddingRight,a=r.paddingBottom,l=r.paddingLeft,c=r.marginTop,d=r.marginRight,f=r.marginBottom,v=r.marginLeft,w=r.boxSizing;return{height:parseFloat(r.height),width:parseFloat(i),paddingTop:parseFloat(o),paddingRight:parseFloat(s),paddingBottom:parseFloat(a),paddingLeft:parseFloat(l),marginTop:parseFloat(c),marginRight:parseFloat(d),marginBottom:parseFloat(f),marginLeft:parseFloat(v),boxSizing:w}}function x1(t){var r=D0(t);return"border-box"===r.boxSizing?r.height-r.paddingTop-r.paddingBottom:r.height}function Gf(t){var r=D0(t);return"border-box"===r.boxSizing?r.width-r.paddingLeft-r.paddingRight:r.width}function bh(t){var r=D0(t);return Math.ceil(t.offsetHeight+(r.marginBottom+r.marginTop))}function Jh(t){var r=D0(t);return Math.ceil(t.offsetWidth+(r.marginLeft+r.marginRight))}function dC(){if("boolean"==typeof Ug)return Ug;var t=document.createElement("div");return t.style.direction="rtl",t.style.width="1px",t.style.height="1px",t.style.position="fixed",t.style.top="0px",t.style.overflow="hidden",t.dir="rtl",t.innerHTML='<div style="width: 2px">\n            <span style="display: inline-block; width: 1px"></span>\n            <span style="display: inline-block; width: 1px"></span>\n        </div>',document.body.appendChild(t),t.scrollLeft=1,Ug=0===Math.floor(t.scrollLeft),document.body.removeChild(t),Ug}function k0(t,r){var e=t.scrollLeft;return r&&(e=Math.abs(e),Hg()&&!dC()&&(e=t.scrollWidth-t.clientWidth-e)),e}function jd(t,r,e){e&&(dC()?r*=-1:(jg()||Hg())&&(r=t.scrollWidth-t.clientWidth-r)),t.scrollLeft=r}function eu(t){for(;t&&t.firstChild;)t.removeChild(t.firstChild)}function LT(t,r){Xm(t.querySelector(r))}function Xm(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function Zh(t){return null!==t.offsetParent}function Su(t){if(null!==DOMParser)return(new DOMParser).parseFromString(t,"text/html").body.firstChild;var i=document.createElement("div");return i.innerHTML=(t||"").trim(),i.firstChild}function pC(t,r){t.lastChild?t.insertAdjacentHTML("afterbegin",r):t.innerHTML=r}function I0(t,r){return t.attributes&&t.attributes[r]?t.attributes[r].value:null}function A0(t){return t&&t.clientHeight?t.clientHeight:0}function Ch(t){return t&&t.clientWidth?t.clientWidth:0}function Yg(t,r,e){e&&e.nextSibling===r||(e?e.nextSibling?t.insertBefore(r,e.nextSibling):t.appendChild(r):t.firstChild&&t.firstChild!==r&&t.insertAdjacentElement("afterbegin",r))}function vm(t,r){for(var e=0;e<r.length;e++){var i=r[e],o=t.children[e];o!==i&&t.insertBefore(i,o)}}function Wg(t,r,e){e?e.insertAdjacentElement("afterend",r):t.firstChild?t.insertAdjacentElement("afterbegin",r):t.appendChild(r)}function hC(t,r){rr(t.firstChild)?t.insertBefore(r,t.firstChild):t.appendChild(r)}function E1(t,r){r&&Object.keys(r).forEach(function(e){var i=g1(e);i&&(t.style[i]=r[e])})}function h_(t){return t.clientWidth<t.scrollWidth}function NT(t){return t.clientHeight<t.scrollHeight}function f_(t,r){"flex"===r?(t.style.removeProperty("width"),t.style.removeProperty("minWidth"),t.style.removeProperty("maxWidth"),t.style.flex="1 1 auto"):Km(t,r)}function Km(t,r){r=fC(r),t.style.width=r.toString(),t.style.maxWidth=r.toString(),t.style.minWidth=r.toString()}function M0(t,r){"flex"===r?(t.style.removeProperty("height"),t.style.removeProperty("minHeight"),t.style.removeProperty("maxHeight"),t.style.flex="1 1 auto"):zg(t,r)}function zg(t,r){r=fC(r),t.style.height=r.toString(),t.style.maxHeight=r.toString(),t.style.minHeight=r.toString()}function fC(t){return"number"==typeof t?t+"px":t}function mC(t){return"function"==typeof Node?t instanceof Node:t&&"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName}function m_(t){return"function"==typeof HTMLElement?t instanceof HTMLElement:t&&Rf(t)&&1===t.nodeType&&"string"==typeof t.nodeName}function R0(t){return mC(t)||m_(t)}function GT(t){if(null==t)return[];var r=[];return Pe(t,function(e){return r.push(e)}),r}function D1(t,r){if(t)for(var e=0;e<t.length;e++){var i=t[e];r(i.name,i.value)}}function B(t,r){"boolean"==typeof r?(t.checked=r,t.indeterminate=!1):t.indeterminate=!0}function ae(t,r,e){null==e?t.removeAttribute(r):t.setAttribute(r,e.toString())}function Pe(t,r){if(null!=t)for(var e=0;e<t.length;e++)r(t[e])}function Ke(t){var e=t.toString(),i=/function (.{1,})\(/.exec(e);return i&&i.length>1?i[1]:""}function _t(t){var r=t.length,e=0;if(r<=1)return t;for(var i=0;i<t.length;i++){var o=t[i],s=o.toString().split("e-");s.length>1?e=Math.max(e,parseInt(s[1],10)):Math.floor(o)!==o&&(e=Math.max(e,o.toString().split(".")[1].length))}for(var a=0,l=0,c=0,d=0,f=0,v=0;v<r;v++)a+=v,l+=f=t[v],d+=v*v,c+=v*f;var w=(r*c-a*l)/(r*d-a*a),x=l/r-w*a/r,I=[];for(v=0;v<=r;v++)I.push(parseFloat((v*w+x).toFixed(e)));return I}function Ct(t){if(!t)return"";var r=[];return Vo(t,function(e,i){var o=T0(e);r.push(o+": "+i+";")}),r.join(" ")}function Tt(t){var r=document.createElement("div"),e=document.querySelector("#__ag__message");r.innerHTML=t,e||(e=Su('<div id="__ag__message" style="display: inline-block; position: absolute; top: 0px; left: 0px; color: white; background-color: black; z-index: 20; padding: 2px; border: 1px solid darkred; height: 200px; overflow-y: auto;"></div>'),document.body&&document.body.appendChild(e)),e.insertBefore(r,e.children[0])}function Rt(t,r){t.then(function(e){var i=e.getGui();null!=i&&("object"==typeof i?r.appendChild(i):r.innerHTML=i)})}function Pt(t,r,e){t.setAttribute(jn(r),e.toString())}function Xt(t,r){t.removeAttribute(jn(r))}function jn(t){return"aria-"+t}function Qn(t,r){r?t.setAttribute("role",r):t.removeAttribute("role")}function di(t){return t.isSortAscending()?"ascending":t.isSortDescending()?"descending":"none"}function Xn(t){return parseInt(t.getAttribute("aria-level"),10)}function gr(t){return parseInt(t.getAttribute("aria-posinset"),10)}function mi(t){return t.getAttribute("aria-describedby")||""}function Bn(t,r){var e="label";r?Pt(t,e,r):Xt(t,e)}function Un(t,r){var e="labelledby";r?Pt(t,e,r):Xt(t,e)}function Fi(t,r){var e="description";r?Pt(t,e,r):Xt(t,e)}function _r(t,r){var e="describedby";r?Pt(t,e,r):Xt(t,e)}function ar(t,r){Pt(t,"level",r)}function wo(t,r){Pt(t,"disabled",r)}function Yr(t,r){Pt(t,"expanded",r)}function ys(t){Xt(t,"expanded")}function To(t,r){Pt(t,"setsize",r)}function Tl(t,r){Pt(t,"posinset",r)}function Sl(t,r){Pt(t,"multiselectable",r)}function fl(t,r){Pt(t,"rowcount",r)}function fa(t,r){Pt(t,"rowindex",r)}function cc(t,r){Pt(t,"colcount",r)}function Ll(t,r){Pt(t,"colindex",r)}function Zs(t,r){Pt(t,"colspan",r)}function tu(t,r){Pt(t,"sort",r)}function ap(t){Xt(t,"sort")}function Rc(t,r){var e="selected";r?Pt(t,e,r):Xt(t,e)}function md(t,r){Pt(t,"checked",void 0===r?"mixed":r)}function wa(t,r){void 0===r&&(r=",");var e=[],i=function(w){return"\r"===w||"\n"===w},o=!1;if(""===t)return[[""]];for(var a,l,c,s=function(w,x,I){var M=t[I-1],F=t[I],re=t[I+1],pe=function(){e[w]||(e[w]=[]),e[w][x]||(e[w][x]="")};if(pe(),'"'===F){if(o)return'"'===re?(e[w][x]+='"',I++):o=!1,a=w,l=x,c=I,"continue";if(void 0===M||M===r||i(M))return o=!0,a=w,l=x,c=I,"continue"}if(!o){if(F===r)return x++,pe(),a=w,l=x,c=I,"continue";if(i(F))return x=0,w++,pe(),"\r"===F&&"\n"===re&&I++,a=w,l=x,c=I,"continue"}e[w][x]+=F,a=w,l=x,c=I},d=0,f=0,v=0;v<t.length;v++)s(d,f,v),d=a,f=l,v=c;return e}function wp(t,r){return t.toString().padStart(r,"0")}function zl(t,r){for(var e=[],i=t;i<=r;i++)e.push(i);return e}function Fu(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function Hd(t){return"string"==typeof t&&(t=parseInt(t,10)),"number"==typeof t?Math.floor(t):null}function Ud(t,r){for(var e="",i=0;i<r;i++)e+=String.fromCharCode(255&t),t>>>=8;return e}function wh(t,r,e){return"number"!=typeof t?"":Th(Math.round(100*t)/100,r,e)}function Th(t,r,e){return"number"!=typeof t?"":t.toString().replace(".",e).replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+r)}function Sd(t){return null==t?null:t.reduce(function(r,e){return r+e},0)}var _m=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var o,a,i=e.call(t),s=[];try{for(;(void 0===r||r-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return s};function Tp(t,r,e){if(void 0===r&&(r=!0),void 0===e&&(e="-"),!t)return null;var i=[t.getFullYear(),t.getMonth()+1,t.getDate()].map(function(o){return wp(o,2)}).join(e);return r&&(i+=" "+[t.getHours(),t.getMinutes(),t.getSeconds()].map(function(o){return wp(o,2)}).join(":")),i}function Sh(t){if(!t)return null;var r=_m(t.split(" "),2),e=r[0],i=r[1];if(!e)return null;var o=e.split("-").map(function(I){return parseInt(I,10)});if(3!==o.filter(function(I){return!isNaN(I)}).length)return null;var s=_m(o,3),a=s[0],l=s[1],c=s[2],d=new Date(a,l-1,c);if(d.getFullYear()!==a||d.getMonth()!==l-1||d.getDate()!==c)return null;if(!i||"00:00:00"===i)return d;var f=_m(i.split(":").map(function(I){return parseInt(I,10)}),3),v=f[0],w=f[1],x=f[2];return v>=0&&v<24&&d.setHours(v),w>=0&&w<60&&d.setMinutes(w),x>=0&&x<60&&d.setSeconds(x),d}function ef(t,r,e){var i={},o=t.filter(function(s){return!r.some(function(a){return a===s})});return o.length>0&&o.forEach(function(s){return i[s]=Uc(s,e)}),i}function Uc(t,r,e,i){var o=i?O0:qg,s=r.map(function(a){return{value:a,relevance:o(t.toLowerCase(),a.toLocaleLowerCase())}});return s.sort(function(a,l){return l.relevance-a.relevance}),e&&(s=s.filter(function(a){return 0!==a.relevance})),s.map(function(a){return a.value})}function g_(t){var i,o,s,r=t.toLowerCase(),e=new Array(r.length-1);for(i=o=0,s=e.length;o<=s;i=o+=1)e[i]=r.slice(i,i+2);return e}function qg(t,r){if(0===t.length&&0===r.length)return 0;var a,l,e=g_(t),i=g_(r),o=e.length+i.length,s=0;for(a=0,l=e.length;a<l;a++){var f,c=e[a],d=void 0;for(d=0,f=i.length;d<f;d++)c===i[d]&&s++}return s>0?2*s/o:0}function O0(t,r){for(var e=t.replace(/\s/g,""),i=r.replace(/\s/g,""),o=0,s=0,a=0;a<e.length;a++){var l=i.indexOf(e[a],s);-1!==l&&(o+=100-100*(s=l)/1e4*100)}return o}var Xg={columnGroupOpened:"expanded",columnGroupClosed:"contracted",columnSelectClosed:"tree-closed",columnSelectOpen:"tree-open",columnSelectIndeterminate:"tree-indeterminate",columnMovePin:"pin",columnMoveHide:"eye-slash",columnMoveMove:"arrows",columnMoveLeft:"left",columnMoveRight:"right",columnMoveGroup:"group",columnMoveValue:"aggregation",columnMovePivot:"pivot",dropNotAllowed:"not-allowed",groupContracted:"tree-closed",groupExpanded:"tree-open",chart:"chart",close:"cross",cancel:"cancel",check:"tick",first:"first",previous:"previous",next:"next",last:"last",linked:"linked",unlinked:"unlinked",colorPicker:"color-picker",groupLoading:"loading",menu:"menu",filter:"filter",columns:"columns",maximize:"maximize",minimize:"minimize",menuPin:"pin",menuValue:"aggregation",menuAddRowGroup:"group",menuRemoveRowGroup:"group",clipboardCopy:"copy",clipboardPaste:"paste",pivotPanel:"pivot",rowGroupPanel:"group",valuePanel:"aggregation",columnDrag:"grip",rowDrag:"grip",save:"save",csvExport:"csv",excelExport:"excel",smallDown:"small-down",smallLeft:"small-left",smallRight:"small-right",smallUp:"small-up",sortAscending:"asc",sortDescending:"desc",sortUnSort:"none"};function Pu(t,r,e){var i=Oc(t,r,e);if(i&&i.className.indexOf("ag-icon")>-1)return i;var o=document.createElement("span");return o.appendChild(i),o}function Oc(t,r,e,i){var o=null,s=e&&e.getColDef().icons;if(s&&(o=s[t]),r&&!o){var a=r.getIcons();a&&(o=a[t])}if(!o){var c=document.createElement("span"),d=Xg[t];return d||(i?d=t:(console.warn("AG Grid: Did not find icon "+t),d="")),c.setAttribute("class","ag-icon ag-icon-"+d),c.setAttribute("unselectable","on"),Qn(c,"presentation"),c}var l=void 0;if("function"==typeof o)l=o();else{if("string"!=typeof o)throw new Error("icon from grid options needs to be a string or a function");l=o}return"string"==typeof l?Su(l):R0(l)?l:void console.warn("AG Grid: iconRenderer should return back a string or a dom object")}var gi=function(){function t(){}return t.BACKSPACE="Backspace",t.TAB="Tab",t.ENTER="Enter",t.ESCAPE="Escape",t.SPACE=" ",t.LEFT="ArrowLeft",t.UP="ArrowUp",t.RIGHT="ArrowRight",t.DOWN="ArrowDown",t.DELETE="Delete",t.F2="F2",t.PAGE_UP="PageUp",t.PAGE_DOWN="PageDown",t.PAGE_HOME="Home",t.PAGE_END="End",t.A="KeyA",t.C="KeyC",t.V="KeyV",t.D="KeyD",t.Z="KeyZ",t.Y="KeyY",t}(),v_="Del",__=46,gC=65,vC=67,H2=86,Qm=68,y_=90,BT=89;function b_(t){if(t.altKey||t.ctrlKey||t.metaKey)return!1;var r=1===t.key.length,e=function U2(t){return p_()&&t.key===v_&&t.charCode===__}(t);return r||e}function _C(t,r,e,i,o){var s=t.getSuppressKeyboardEventFunc(),a=i?i.getColDef().suppressKeyboardEvent:void 0;if(!s&&!a)return!1;var l={event:r,editing:o,column:i,api:t.getApi(),node:e,data:e.data,colDef:i.getColDef(),context:t.getContext(),columnApi:t.getColumnApi()};return!(!a||!a(l))||!!s&&s(l)}function VT(t,r,e,i){var o=i.getDefinition(),s=o&&o.suppressHeaderKeyboardEvent;return!!rr(s)&&!!s({api:t.getApi(),columnApi:t.getColumnApi(),context:t.getContext(),colDef:o,column:i,headerRowIndex:e,event:r})}function ym(t){var e;switch(t.keyCode){case gC:e=gi.A;break;case vC:e=gi.C;break;case H2:e=gi.V;break;case Qm:e=gi.D;break;case y_:e=gi.Z;break;case BT:e=gi.Y;break;default:e=t.code}return e}function jT(t,r,e){if(0===e)return!1;var i=Math.abs(t.clientX-r.clientX),o=Math.abs(t.clientY-r.clientY);return Math.max(i,o)<=e}function $2(t,r){if(t){for(var e=function(l,c){var d=r[l.id],f=r[c.id],v=void 0!==d,w=void 0!==f;return v&&w?d-f:v||w?v?1:-1:l.__objectId-c.__objectId},s=!1,a=0;a<t.length-1;a++)if(e(t[a],t[a+1])>0){s=!0;break}s&&t.sort(e)}}function C_(t,r){var e=[];!function i(o){o&&o.forEach(function(s){if(s.group||s.hasChildren()){e.push(s.key);var a=e.join("|");r(s,a),i(s.childrenAfterGroup),e.pop()}})}(t)}function yC(t){var r=new Set;return t.forEach(function(e){return r.add(e)}),r}var nu=function(){return nu=Object.assign||function(t){for(var r,e=1,i=arguments.length;e<i;e++)for(var o in r=arguments[e])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t},nu.apply(this,arguments)},ln=nu(nu(nu(nu(nu(nu(nu(nu(nu(nu(nu(nu(nu(nu(nu(nu(nu(nu(nu(nu({},H),Z),D),G),X),fe),Q),k),E),q),T),ne),N),P),Y),z),C),W),J),R),bm=function(){function t(r,e){void 0===r&&(r=0),void 0===e&&(e=1),this.nextValue=r,this.step=e}return t.prototype.next=function(){var r=this.nextValue;return this.nextValue+=this.step,r},t.prototype.peek=function(){return this.nextValue},t.prototype.skip=function(r){this.nextValue+=r},t}(),Bf=function(t){return t[t.IN_PROGRESS=0]="IN_PROGRESS",t[t.RESOLVED=1]="RESOLVED",t}(Bf||{}),Zu=function(){function t(r){var e=this;this.status=Bf.IN_PROGRESS,this.resolution=null,this.waiters=[],r(function(i){return e.onDone(i)},function(i){return e.onReject(i)})}return t.all=function(r){return new t(function(e){var i=r.length,o=new Array(i);r.forEach(function(s,a){s.then(function(l){o[a]=l,0==--i&&e(o)})})})},t.resolve=function(r){return void 0===r&&(r=null),new t(function(e){return e(r)})},t.prototype.then=function(r){var e=this;return new t(function(i){e.status===Bf.RESOLVED?i(r(e.resolution)):e.waiters.push(function(o){return i(r(o))})})},t.prototype.resolveNow=function(r,e){return this.status===Bf.RESOLVED?e(this.resolution):r},t.prototype.onDone=function(r){this.status=Bf.RESOLVED,this.resolution=r,this.waiters.forEach(function(e){return e(r)})},t.prototype.onReject=function(r){console.warn("TBI")},t}(),DI=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),F0=function(){return F0=Object.assign||function(t){for(var r,e=1,i=arguments.length;e<i;e++)for(var o in r=arguments[e])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t},F0.apply(this,arguments)},Kg=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},xh=function(t){return t[t.NOTHING=0]="NOTHING",t[t.WAITING_TO_SHOW=1]="WAITING_TO_SHOW",t[t.SHOWING=2]="SHOWING",t}(xh||{}),Cm=function(t){function r(e){var i=t.call(this)||this;return i.DEFAULT_SHOW_TOOLTIP_DELAY=2e3,i.DEFAULT_HIDE_TOOLTIP_DELAY=1e4,i.SHOW_QUICK_TOOLTIP_DIFF=1e3,i.FADE_OUT_TOOLTIP_TIMEOUT=1e3,i.state=xh.NOTHING,i.tooltipInstanceCount=0,i.tooltipMouseTrack=!1,i.parentComp=e,i}return DI(r,t),r.prototype.postConstruct=function(){this.tooltipShowDelay=this.gridOptionsWrapper.getTooltipDelay("show")||this.DEFAULT_SHOW_TOOLTIP_DELAY,this.tooltipHideDelay=this.gridOptionsWrapper.getTooltipDelay("hide")||this.DEFAULT_HIDE_TOOLTIP_DELAY,this.tooltipMouseTrack=this.gridOptionsWrapper.isTooltipMouseTrack();var e=this.parentComp.getGui();this.addManagedListener(e,"mouseenter",this.onMouseEnter.bind(this)),this.addManagedListener(e,"mouseleave",this.onMouseLeave.bind(this)),this.addManagedListener(e,"mousemove",this.onMouseMove.bind(this)),this.addManagedListener(e,"mousedown",this.onMouseDown.bind(this)),this.addManagedListener(e,"keydown",this.onKeyDown.bind(this))},r.prototype.destroy=function(){this.setToDoNothing(),t.prototype.destroy.call(this)},r.prototype.onMouseEnter=function(e){if(!zm()&&this.state==xh.NOTHING){var i=this.isLastTooltipHiddenRecently()?200:this.tooltipShowDelay;this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),i),this.lastMouseEvent=e,this.state=xh.WAITING_TO_SHOW}},r.prototype.onMouseLeave=function(){this.setToDoNothing()},r.prototype.onKeyDown=function(){this.setToDoNothing()},r.prototype.setToDoNothing=function(){this.state===xh.SHOWING&&this.hideTooltip(),this.clearTimeouts(),this.state=xh.NOTHING},r.prototype.onMouseMove=function(e){this.lastMouseEvent=e,this.tooltipMouseTrack&&this.state===xh.SHOWING&&this.tooltipComp&&this.positionTooltipUnderLastMouseEvent()},r.prototype.onMouseDown=function(){this.setToDoNothing()},r.prototype.hideTooltip=function(){this.tooltipComp&&(this.destroyTooltipComp(),r.lastTooltipHideTime=(new Date).getTime()),this.state=xh.NOTHING},r.prototype.destroyTooltipComp=function(){var e=this;this.tooltipComp.getGui().classList.add("ag-tooltip-hiding");var i=this.tooltipPopupDestroyFunc,o=this.tooltipComp;window.setTimeout(function(){i(),e.getContext().destroyBean(o)},this.FADE_OUT_TOOLTIP_TIMEOUT),this.tooltipPopupDestroyFunc=void 0,this.tooltipComp=void 0},r.prototype.isLastTooltipHiddenRecently=function(){return(new Date).getTime()-r.lastTooltipHideTime<this.SHOW_QUICK_TOOLTIP_DIFF},r.prototype.showTooltip=function(){var e=F0({},this.parentComp.getTooltipParams());if(rr(e.value)){this.state=xh.SHOWING,this.tooltipInstanceCount++;var i=this.newTooltipComponentCallback.bind(this,this.tooltipInstanceCount);this.userComponentFactory.getTooltipCompDetails(e).newAgStackInstance().then(i)}else this.setToDoNothing()},r.prototype.newTooltipComponentCallback=function(e,i){if(this.state!==xh.SHOWING||this.tooltipInstanceCount!==e)this.getContext().destroyBean(i);else{var s=i.getGui();this.tooltipComp=i,s.classList.contains("ag-tooltip")||s.classList.add("ag-tooltip-custom");var a=this.gridOptionsWrapper.getLocaleTextFunc(),l=this.popupService.addPopup({eChild:s,ariaLabel:a("ariaLabelTooltip","Tooltip")});l&&(this.tooltipPopupDestroyFunc=l.hideFunc),this.positionTooltipUnderLastMouseEvent(),this.hideTooltipTimeoutId=window.setTimeout(this.hideTooltip.bind(this),this.tooltipHideDelay)}},r.prototype.positionTooltipUnderLastMouseEvent=function(){this.popupService.positionPopupUnderMouseEvent({type:"tooltip",mouseEvent:this.lastMouseEvent,ePopup:this.tooltipComp.getGui(),nudgeY:18})},r.prototype.clearTimeouts=function(){this.showTooltipTimeoutId&&(window.clearTimeout(this.showTooltipTimeoutId),this.showTooltipTimeoutId=void 0),this.hideTooltipTimeoutId&&(window.clearTimeout(this.hideTooltipTimeoutId),this.hideTooltipTimeoutId=void 0)},Kg([Xe("popupService")],r.prototype,"popupService",void 0),Kg([Xe("userComponentFactory")],r.prototype,"userComponentFactory",void 0),Kg([Xe("columnApi")],r.prototype,"columnApi",void 0),Kg([Xe("gridApi")],r.prototype,"gridApi",void 0),Kg([qi],r.prototype,"postConstruct",null),r}(Zi),W2=function(){function t(r){this.cssClassStates={},this.getGui=r}return t.prototype.addCssClass=function(r){var e=this,i=(r||"").split(" ");i.length>1?i.forEach(function(s){return e.addCssClass(s)}):!0!==this.cssClassStates[r]&&r.length&&(this.getGui().classList.add(r),this.cssClassStates[r]=!0)},t.prototype.removeCssClass=function(r){var e=this,i=(r||"").split(" ");i.length>1?i.forEach(function(s){return e.removeCssClass(s)}):!1!==this.cssClassStates[r]&&r.length&&(this.getGui().classList.remove(r),this.cssClassStates[r]=!1)},t.prototype.containsCssClass=function(r){return this.getGui().classList.contains(r)},t.prototype.addOrRemoveCssClass=function(r,e){var i=this;if(r){if(r.indexOf(" ")>=0){var o=(r||"").split(" ");if(o.length>1)return void o.forEach(function(a){return i.addOrRemoveCssClass(a,e)})}this.cssClassStates[r]!==e&&r.length&&(this.getGui().classList.toggle(r,e),this.cssClassStates[r]=e)}},t}(),P0=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),CC=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},wC=new bm,Do=function(t){function r(e){var i=t.call(this)||this;return i.displayed=!0,i.visible=!0,i.compId=wC.next(),i.cssClassManager=new W2(function(){return i.eGui}),e&&i.setTemplate(e),i}return P0(r,t),r.prototype.preConstructOnComponent=function(){this.usingBrowserTooltips=this.gridOptionsWrapper.isEnableBrowserTooltips()},r.prototype.getCompId=function(){return this.compId},r.prototype.getTooltipParams=function(){return{value:this.tooltipText,location:"UNKNOWN"}},r.prototype.setTooltip=function(e){var i=this;this.tooltipText!=e&&(this.tooltipText&&(i.usingBrowserTooltips?i.getGui().removeAttribute("title"):i.tooltipFeature=i.destroyBean(i.tooltipFeature)),null!=e&&(this.tooltipText=e,this.tooltipText&&(i.usingBrowserTooltips?i.getGui().setAttribute("title",i.tooltipText):i.tooltipFeature=i.createBean(new Cm(i)))))},r.prototype.createChildComponentsFromTags=function(e,i){var o=this;GT(e.childNodes).forEach(function(a){if(a instanceof HTMLElement){var l=o.createComponentFromElement(a,function(d){d.getGui()&&o.copyAttributesFromNode(a,d.getGui())},i);if(l){if(l.addItems&&a.children.length){o.createChildComponentsFromTags(a,i);var c=Array.prototype.slice.call(a.children);l.addItems(c)}o.swapComponentForNode(l,e,a)}else a.childNodes&&o.createChildComponentsFromTags(a,i)}})},r.prototype.createComponentFromElement=function(e,i,o){var s=e.nodeName,a=o?o[e.getAttribute("ref")]:void 0,l=this.agStackComponentsRegistry.getComponentClass(s);if(l){r.elementGettingCreated=e;var c=new l(a);return c.setParentComponent(this),this.createBean(c,null,i),c}return null},r.prototype.copyAttributesFromNode=function(e,i){D1(e.attributes,function(o,s){return i.setAttribute(o,s)})},r.prototype.swapComponentForNode=function(e,i,o){var s=e.getGui();i.replaceChild(s,o),i.insertBefore(document.createComment(o.nodeName),s),this.addDestroyFunc(this.destroyBean.bind(this,e)),this.swapInComponentForQuerySelectors(e,o)},r.prototype.swapInComponentForQuerySelectors=function(e,i){var o=this;this.iterateOverQuerySelectors(function(s){o[s.attributeName]===i&&(o[s.attributeName]=e)})},r.prototype.iterateOverQuerySelectors=function(e){for(var i=Object.getPrototypeOf(this);null!=i;){var o=i.__agComponentMetaData,s=Um(i.constructor);o&&o[s]&&o[s].querySelectors&&o[s].querySelectors.forEach(function(a){return e(a)}),i=Object.getPrototypeOf(i)}},r.prototype.setTemplate=function(e,i){var o=Su(e);this.setTemplateFromElement(o,i)},r.prototype.setTemplateFromElement=function(e,i){this.eGui=e,this.eGui.__agComponent=this,this.wireQuerySelectors(),this.getContext()&&this.createChildComponentsFromTags(this.getGui(),i)},r.prototype.createChildComponentsPreConstruct=function(){this.getGui()&&this.createChildComponentsFromTags(this.getGui())},r.prototype.wireQuerySelectors=function(){var e=this;if(this.eGui){var i=this;this.iterateOverQuerySelectors(function(o){var s=function(c){return i[o.attributeName]=c};if(o.refSelector&&e.eGui.getAttribute("ref")===o.refSelector)s(e.eGui);else{var l=e.eGui.querySelector(o.querySelector);l&&s(l.__agComponent||l)}})}},r.prototype.getGui=function(){return this.eGui},r.prototype.getFocusableElement=function(){return this.eGui},r.prototype.setParentComponent=function(e){this.parentComponent=e},r.prototype.getParentComponent=function(){return this.parentComponent},r.prototype.setGui=function(e){this.eGui=e},r.prototype.queryForHtmlElement=function(e){return this.eGui.querySelector(e)},r.prototype.queryForHtmlInputElement=function(e){return this.eGui.querySelector(e)},r.prototype.appendChild=function(e,i){if(i||(i=this.eGui),null!=e)if(R0(e))i.appendChild(e);else{var o=e;i.appendChild(o.getGui()),this.addDestroyFunc(this.destroyBean.bind(this,o))}},r.prototype.isDisplayed=function(){return this.displayed},r.prototype.setVisible=function(e){e!==this.visible&&(this.visible=e,PT(this.eGui,e))},r.prototype.setDisplayed=function(e){e!==this.displayed&&(this.displayed=e,Pl(this.eGui,e),this.dispatchEvent({type:r.EVENT_DISPLAYED_CHANGED,visible:this.displayed}))},r.prototype.destroy=function(){this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature)),t.prototype.destroy.call(this)},r.prototype.addGuiEventListener=function(e,i){var o=this;this.eGui.addEventListener(e,i),this.addDestroyFunc(function(){return o.eGui.removeEventListener(e,i)})},r.prototype.addCssClass=function(e){this.cssClassManager.addCssClass(e)},r.prototype.removeCssClass=function(e){this.cssClassManager.removeCssClass(e)},r.prototype.containsCssClass=function(e){return this.cssClassManager.containsCssClass(e)},r.prototype.addOrRemoveCssClass=function(e,i){this.cssClassManager.addOrRemoveCssClass(e,i)},r.prototype.getAttribute=function(e){var i=this.eGui;return i?i.getAttribute(e):null},r.prototype.getRefElement=function(e){return this.queryForHtmlElement('[ref="'+e+'"]')},r.EVENT_DISPLAYED_CHANGED="displayedChanged",CC([Xe("agStackComponentsRegistry")],r.prototype,"agStackComponentsRegistry",void 0),CC([vh],r.prototype,"preConstructOnComponent",null),CC([vh],r.prototype,"createChildComponentsPreConstruct",null),r}(Zi);function Ti(t){return kI.bind(this,"[ref="+t+"]",t)}function kI(t,r,e,i,o){null!==t?"number"!=typeof o?function L0(t,r,e){var i=function II(t,r){return t.__agComponentMetaData||(t.__agComponentMetaData={}),t.__agComponentMetaData[r]||(t.__agComponentMetaData[r]={}),t.__agComponentMetaData[r]}(t,Um(t.constructor));i[r]||(i[r]=[]),i[r].push(e)}(e,"querySelectors",{attributeName:i,querySelector:t,refSelector:r}):console.error("AG Grid: QuerySelector should be on an attribute"):console.error("AG Grid: QuerySelector selector should not be null")}var Qg=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),N0=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},Jg=function(t){function r(){return t.call(this,'\n            <div class="ag-floating-filter-input" role="presentation">\n                <ag-input-text-field ref="eFloatingFilterText"></ag-input-text-field>\n            </div>')||this}return Qg(r,t),r.prototype.destroy=function(){t.prototype.destroy.call(this)},r.prototype.init=function(e){this.params=e;var i=this.columnModel.getDisplayNameForColumn(e.column,"header",!0),o=this.gridOptionsWrapper.getLocaleTextFunc();this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(i+" "+o("ariaFilterInput","Filter Input"))},r.prototype.onParentModelChanged=function(e){var i=this;e?this.params.parentFilterInstance(function(o){if(o.getModelAsString){var s=o.getModelAsString(e);i.eFloatingFilterText.setValue(s)}}):this.eFloatingFilterText.setValue("")},N0([Ti("eFloatingFilterText")],r.prototype,"eFloatingFilterText",void 0),N0([Xe("columnModel")],r.prototype,"columnModel",void 0),r}(Do),Jm=function(){function t(r,e,i,o){var s=this;this.alive=!0,this.context=r,this.eParent=o,e.getDateCompDetails(i).newAgStackInstance().then(function(c){s.alive?(s.dateComp=c,c&&(o.appendChild(c.getGui()),c.afterGuiAttached&&c.afterGuiAttached(),s.tempValue&&c.setDate(s.tempValue),null!=s.disabled&&s.setDateCompDisabled(s.disabled))):r.destroyBean(c)})}return t.prototype.destroy=function(){this.alive=!1,this.dateComp=this.context.destroyBean(this.dateComp)},t.prototype.getDate=function(){return this.dateComp?this.dateComp.getDate():this.tempValue},t.prototype.setDate=function(r){this.dateComp?this.dateComp.setDate(r):this.tempValue=r},t.prototype.setDisabled=function(r){this.dateComp?this.setDateCompDisabled(r):this.disabled=r},t.prototype.setDisplayed=function(r){Pl(this.eParent,r)},t.prototype.setInputPlaceholder=function(r){this.dateComp&&this.dateComp.setInputPlaceholder&&this.dateComp.setInputPlaceholder(r)},t.prototype.setInputAriaLabel=function(r){this.dateComp&&this.dateComp.setInputAriaLabel&&this.dateComp.setInputAriaLabel(r)},t.prototype.afterGuiAttached=function(r){this.dateComp&&"function"==typeof this.dateComp.afterGuiAttached&&this.dateComp.afterGuiAttached(r)},t.prototype.setDateCompDisabled=function(r){null!=this.dateComp&&null!=this.dateComp.setDisabled&&this.dateComp.setDisabled(r)},t}(),Zm=function(){return Zm=Object.assign||function(t){for(var r,e=1,i=arguments.length;e<i;e++)for(var o in r=arguments[e])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t},Zm.apply(this,arguments)},wm=function(){function t(){this.customFilterOptions={}}return t.prototype.init=function(r,e){this.filterOptions=r.filterOptions||e,this.mapCustomOptions(),this.selectDefaultItem(r),this.checkForDeprecatedParams()},t.prototype.checkForDeprecatedParams=function(){this.filterOptions.some(function(r){return"string"!=typeof r&&null!=r.test})&&console.warn("AG Grid: [IFilterOptionDef] since v26.2.0, test() has been replaced with predicate()."),this.filterOptions.some(function(r){return"string"!=typeof r&&null!=r.hideFilterInput})&&console.warn("AG Grid: [IFilterOptionDef] since v26.2.0, useOfHideFilterInput has been replaced with numberOfInputs.")},t.prototype.getFilterOptions=function(){return this.filterOptions},t.prototype.mapCustomOptions=function(){var r=this;this.filterOptions&&this.filterOptions.forEach(function(e){if("string"!=typeof e){if(![["displayKey"],["displayName"],["predicate","test"]].every(function(l){return!!l.some(function(c){return null!=e[c]})||(console.warn("AG Grid: ignoring FilterOptionDef as it doesn't contain one of '"+l+"'"),!1)}))return void(r.filterOptions=r.filterOptions.filter(function(l){return l===e})||[]);var s=e.test,a=Zm({},e);null!=s&&null==e.predicate&&(a.predicate=function(l,c){return s(l[0],c)},delete a.test),a.hideFilterInput&&null==a.numberOfInputs&&(a.numberOfInputs=0,delete a.hideFilterInput),r.customFilterOptions[e.displayKey]=a}})},t.prototype.selectDefaultItem=function(r){if(r.defaultOption)this.defaultOption=r.defaultOption;else if(this.filterOptions.length>=1){var e=this.filterOptions[0];"string"==typeof e?this.defaultOption=e:e.displayKey?this.defaultOption=e.displayKey:console.warn("AG Grid: invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'")}else console.warn("AG Grid: no filter options for filter")},t.prototype.getDefaultOption=function(){return this.defaultOption},t.prototype.getCustomOption=function(r){return this.customFilterOptions[r]},t}(),TC={applyFilter:"Apply",clearFilter:"Clear",resetFilter:"Reset",cancelFilter:"Cancel",textFilter:"Text Filter",numberFilter:"Number Filter",dateFilter:"Date Filter",setFilter:"Set Filter",filterOoo:"Filter...",empty:"Choose One",equals:"Equals",notEqual:"Not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"In range",inRangeStart:"From",inRangeEnd:"To",lessThanOrEqual:"Less than or equals",greaterThanOrEqual:"Greater than or equals",contains:"Contains",notContains:"Not contains",startsWith:"Starts with",endsWith:"Ends with",blank:"Blank",notBlank:"Not blank",andCondition:"AND",orCondition:"OR",dateFormatOoo:"yyyy-mm-dd"},SC=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),G0=function(){return G0=Object.assign||function(t){for(var r,e=1,i=arguments.length;e<i;e++)for(var o in r=arguments[e])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t},G0.apply(this,arguments)},HT=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},xd=function(t){function r(e,i){void 0===i&&(i={});var o=t.call(this)||this;return o.eFocusableElement=e,o.callbacks=i,o.callbacks=G0({shouldStopEventPropagation:function(){return!1},onTabKeyDown:function(s){if(!s.defaultPrevented){var a=o.focusService.findNextFocusableElement(o.eFocusableElement,!1,s.shiftKey);a&&(a.focus(),s.preventDefault())}}},i),o}return SC(r,t),r.prototype.postConstruct=function(){this.eFocusableElement.classList.add(r.FOCUS_MANAGED_CLASS),this.addKeyDownListeners(this.eFocusableElement),this.callbacks.onFocusIn&&this.addManagedListener(this.eFocusableElement,"focusin",this.callbacks.onFocusIn),this.callbacks.onFocusOut&&this.addManagedListener(this.eFocusableElement,"focusout",this.callbacks.onFocusOut)},r.prototype.addKeyDownListeners=function(e){var i=this;this.addManagedListener(e,"keydown",function(o){if(!o.defaultPrevented&&!Jl(o)){if(i.callbacks.shouldStopEventPropagation(o))return void Wl(o);o.key===gi.TAB?i.callbacks.onTabKeyDown(o):i.callbacks.handleKeyDown&&i.callbacks.handleKeyDown(o)}})},r.FOCUS_MANAGED_CLASS="ag-focus-managed",HT([Xe("focusService")],r.prototype,"focusService",void 0),HT([qi],r.prototype,"postConstruct",null),r}(Zi),xC=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),AI=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},z2=function(t){function r(e){var i=t.call(this)||this;return i.filterNameKey=e,i.applyActive=!1,i.hidePopup=null,i.appliedModel=null,i}return xC(r,t),r.prototype.postConstruct=function(){this.resetTemplate(),this.createManagedBean(new xd(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)}))},r.prototype.handleKeyDown=function(e){},r.prototype.getFilterTitle=function(){return this.translate(this.filterNameKey)},r.prototype.isFilterActive=function(){return!!this.appliedModel},r.prototype.resetTemplate=function(e){var i='\n            <div class="ag-filter-wrapper">\n                <div class="ag-filter-body-wrapper ag-'+this.getCssIdentifier()+'-body-wrapper">\n                    '+this.createBodyTemplate()+"\n                </div>\n            </div>";this.setTemplate(i,e)},r.prototype.isReadOnly=function(){return!!this.providedFilterParams.readOnly},r.prototype.init=function(e){var i=this;this.setParams(e),this.resetUiToDefaults(!0).then(function(){i.updateUiVisibility(),i.setupOnBtApplyDebounce()})},r.prototype.setParams=function(e){this.providedFilterParams=e,this.applyActive=r.isUseApplyButton(e),this.createButtonPanel()},r.prototype.createButtonPanel=function(){var e=this,i=this.providedFilterParams.buttons;if(!(!i||i.length<1||this.isReadOnly())){var o=document.createElement("div");o.classList.add("ag-filter-apply-panel"),yC(i).forEach(function(a){return function(a){var l,c;switch(a){case"apply":l=e.translate("applyFilter"),c=function(f){return e.onBtApply(!1,!1,f)};break;case"clear":l=e.translate("clearFilter"),c=function(){return e.onBtClear()};break;case"reset":l=e.translate("resetFilter"),c=function(){return e.onBtReset()};break;case"cancel":l=e.translate("cancelFilter"),c=function(f){e.onBtCancel(f)};break;default:return void console.warn("AG Grid: Unknown button type specified")}var d=Su('<button\n                    type="button"\n                    ref="'+a+'FilterButton"\n                    class="ag-standard-button ag-filter-apply-panel-button"\n                >'+l+"\n                </button>");o.appendChild(d),e.addManagedListener(d,"click",c)}(a)}),this.getGui().appendChild(o)}},r.prototype.getDefaultDebounceMs=function(){return 0},r.prototype.setupOnBtApplyDebounce=function(){var e=r.getDebounceMs(this.providedFilterParams,this.getDefaultDebounceMs());this.onBtApplyDebounce=hd(this.onBtApply.bind(this),e)},r.prototype.getModel=function(){return this.appliedModel?this.appliedModel:null},r.prototype.setModel=function(e){var i=this;return(null!=e?this.setModelIntoUi(e):this.resetUiToDefaults()).then(function(){i.updateUiVisibility(),i.applyModel()})},r.prototype.onBtCancel=function(e){var i=this,o=this.getModel(),s=function(){i.onUiChanged(!1,"prevent"),i.providedFilterParams.closeOnApply&&i.close(e)};null!=o?this.setModelIntoUi(o).then(s):this.resetUiToDefaults().then(s)},r.prototype.onBtClear=function(){var e=this;this.resetUiToDefaults().then(function(){return e.onUiChanged()})},r.prototype.onBtReset=function(){this.onBtClear(),this.onBtApply()},r.prototype.applyModel=function(){var e=this.getModelFromUi();if(!this.isModelValid(e))return!1;var i=this.appliedModel;return this.appliedModel=e,!this.areModelsEqual(i,e)},r.prototype.isModelValid=function(e){return!0},r.prototype.onBtApply=function(e,i,o){void 0===e&&(e=!1),void 0===i&&(i=!1),this.applyModel()&&this.providedFilterParams.filterChangedCallback({afterFloatingFilter:e,afterDataChange:i}),this.providedFilterParams.closeOnApply&&this.applyActive&&!e&&!i&&this.close(o)},r.prototype.onNewRowsLoaded=function(){},r.prototype.close=function(e){if(this.hidePopup){var s,o=e&&e.key;("Enter"===o||"Space"===o)&&(s={keyboardEvent:e}),this.hidePopup(s),this.hidePopup=null}},r.prototype.onUiChanged=function(e,i){if(void 0===e&&(e=!1),this.updateUiVisibility(),this.providedFilterParams.filterModifiedCallback(),this.applyActive&&!this.isReadOnly){var o=this.isModelValid(this.getModelFromUi());$g(this.getRefElement("applyFilterButton"),!o)}e&&!i||"immediately"===i?this.onBtApply(e):(!this.applyActive&&!i||"debounce"===i)&&this.onBtApplyDebounce()},r.prototype.afterGuiAttached=function(e){null!=e&&(this.hidePopup=e.hidePopup)},r.getDebounceMs=function(e,i){return r.isUseApplyButton(e)?(null!=e.debounceMs&&console.warn("AG Grid: debounceMs is ignored when apply button is present"),0):null!=e.debounceMs?e.debounceMs:i},r.isUseApplyButton=function(e){return!!e.buttons&&e.buttons.indexOf("apply")>=0},r.prototype.destroy=function(){this.hidePopup=null,t.prototype.destroy.call(this)},r.prototype.translate=function(e){return this.gridOptionsWrapper.getLocaleTextFunc()(e,TC[e])},r.prototype.getCellValue=function(e){var i=this.providedFilterParams;return this.providedFilterParams.valueGetter({api:i.api,colDef:i.colDef,column:i.column,columnApi:i.columnApi,context:i.context,data:e.data,getValue:function(d){return e.data[d]},node:e})},AI([Xe("rowModel")],r.prototype,"rowModel",void 0),AI([Xe("valueService")],r.prototype,"valueService",void 0),AI([qi],r.prototype,"postConstruct",null),r}(Do),M6=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),q2=function(t){function r(e,i){var o=t.call(this,i)||this;return o.labelSeparator="",o.labelAlignment="left",o.disabled=!1,o.label="",o.config=e||{},o}return M6(r,t),r.prototype.postConstruct=function(){this.addCssClass("ag-labeled"),this.eLabel.classList.add("ag-label");var e=this.config,i=e.labelSeparator,o=e.label,s=e.labelWidth,a=e.labelAlignment;null!=i&&this.setLabelSeparator(i),null!=o&&this.setLabel(o),null!=s&&this.setLabelWidth(s),this.setLabelAlignment(a||this.labelAlignment),this.refreshLabel()},r.prototype.refreshLabel=function(){eu(this.eLabel),"string"==typeof this.label?this.eLabel.innerText=this.label+this.labelSeparator:this.label&&this.eLabel.appendChild(this.label),""===this.label?(this.eLabel.classList.add("ag-hidden"),Qn(this.eLabel,"presentation")):(this.eLabel.classList.remove("ag-hidden"),Qn(this.eLabel,null))},r.prototype.setLabelSeparator=function(e){return this.labelSeparator===e||(this.labelSeparator=e,null!=this.label&&this.refreshLabel()),this},r.prototype.getLabelId=function(){return this.eLabel.id=this.eLabel.id||"ag-"+this.getCompId()+"-label",this.eLabel.id},r.prototype.getLabel=function(){return this.label},r.prototype.setLabel=function(e){return this.label===e||(this.label=e,this.refreshLabel()),this},r.prototype.setLabelAlignment=function(e){var o=this.getGui().classList;return o.toggle("ag-label-align-left","left"===e),o.toggle("ag-label-align-right","right"===e),o.toggle("ag-label-align-top","top"===e),this},r.prototype.setLabelWidth=function(e){return null==this.label||f_(this.eLabel,e),this},r.prototype.setDisabled=function(e){e=!!e;var i=this.getGui();return $g(i,e),i.classList.toggle("ag-disabled",e),this.disabled=e,this},r.prototype.isDisabled=function(){return!!this.disabled},function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);o>3&&s&&Object.defineProperty(r,e,s)}([qi],r.prototype,"postConstruct",null),r}(Do),O6=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),w_=function(t){function r(e,i,o){var s=t.call(this,e,i)||this;return s.className=o,s}return O6(r,t),r.prototype.postConstruct=function(){t.prototype.postConstruct.call(this),this.className&&this.addCssClass(this.className)},r.prototype.onValueChange=function(e){var i=this;return this.addManagedListener(this,r.EVENT_CHANGED,function(){return e(i.getValue())}),this},r.prototype.getWidth=function(){return this.getGui().clientWidth},r.prototype.setWidth=function(e){return Km(this.getGui(),e),this},r.prototype.getPreviousValue=function(){return this.previousValue},r.prototype.getValue=function(){return this.value},r.prototype.setValue=function(e,i){return this.value===e||(this.previousValue=this.value,this.value=e,i||this.dispatchEvent({type:r.EVENT_CHANGED})),this},r.EVENT_CHANGED="valueChange",r}(q2),F6=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),X2=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},EP=function(t){function r(e,i,o,s){var a=t.call(this,e,'<div class="ag-picker-field" role="presentation">\n                <div ref="eLabel"></div>\n                <div ref="eWrapper"\n                    class="ag-wrapper ag-picker-field-wrapper"\n                    tabIndex="-1"\n                    aria-expanded="false"\n                    '+(s?'role="'+s+'"':"")+'\n                >\n                    <div ref="eDisplayField" class="ag-picker-field-display"></div>\n                    <div ref="eIcon" class="ag-picker-field-icon" aria-hidden="true"></div>\n                </div>\n            </div>',i)||this;return a.pickerIcon=o,a.isPickerDisplayed=!1,a.isDestroyingPicker=!1,a.skipClick=!1,a}return F6(r,t),r.prototype.postConstruct=function(){var e=this;t.prototype.postConstruct.call(this);var i=this.getCompId()+"-display";this.eDisplayField.setAttribute("id",i),_r(this.eWrapper,i);var o=function(){e.skipClick?e.skipClick=!1:e.isDisabled()||(e.pickerComponent=e.showPicker())},s=this.getGui();if(this.addManagedListener(s,"mousedown",function(l){!e.skipClick&&e.pickerComponent&&e.pickerComponent.isAlive()&&Zh(e.pickerComponent.getGui())&&s.contains(l.target)&&(e.skipClick=!0)}),this.addManagedListener(s,"keydown",function(l){switch(l.key){case gi.UP:case gi.DOWN:case gi.ENTER:case gi.SPACE:o();case gi.ESCAPE:e.isPickerDisplayed&&l.preventDefault()}}),this.addManagedListener(this.eWrapper,"click",o),this.addManagedListener(this.eLabel,"click",o),this.pickerIcon){var a=Oc(this.pickerIcon,this.gridOptionsWrapper);a&&this.eIcon.appendChild(a)}},r.prototype.refreshLabel=function(){rr(this.getLabel())?Un(this.eWrapper,this.getLabelId()):this.eWrapper.removeAttribute("aria-labelledby"),t.prototype.refreshLabel.call(this)},r.prototype.setAriaLabel=function(e){return Bn(this.eWrapper,e),this},r.prototype.setInputWidth=function(e){return f_(this.eWrapper,e),this},r.prototype.getFocusableElement=function(){return this.eWrapper},X2([Ti("eLabel")],r.prototype,"eLabel",void 0),X2([Ti("eWrapper")],r.prototype,"eWrapper",void 0),X2([Ti("eDisplayField")],r.prototype,"eDisplayField",void 0),X2([Ti("eIcon")],r.prototype,"eIcon",void 0),r}(w_),MI=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),DP=function(t){function r(e){void 0===e&&(e="default");var i=t.call(this,'<div class="ag-list ag-'+e+'-list" role="listbox"></div>')||this;return i.cssIdentifier=e,i.options=[],i.itemEls=[],i}return MI(r,t),r.prototype.init=function(){this.addManagedListener(this.getGui(),"keydown",this.handleKeyDown.bind(this))},r.prototype.handleKeyDown=function(e){var i=e.key;switch(i){case gi.ENTER:if(this.highlightedEl){var o=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(o)}else this.setValue(this.getValue());break;case gi.DOWN:case gi.UP:var s=i===gi.DOWN,a=void 0;if(e.preventDefault(),this.highlightedEl){var c=this.itemEls.indexOf(this.highlightedEl)+(s?1:-1);c=Math.min(Math.max(c,0),this.itemEls.length-1),a=this.itemEls[c]}else a=this.itemEls[s?0:this.itemEls.length-1];this.highlightItem(a)}},r.prototype.addOptions=function(e){var i=this;return e.forEach(function(o){return i.addOption(o)}),this},r.prototype.addOption=function(e){var i=e.value,s=Ju(e.text||i);return this.options.push({value:i,text:s}),this.renderOption(i,s),this.updateIndices(),this},r.prototype.updateIndices=function(){var e=this.getGui().querySelectorAll(".ag-list-item");e.forEach(function(i,o){Tl(i,o+1),To(i,e.length)})},r.prototype.renderOption=function(e,i){var o=this,s=document.createElement("div");Qn(s,"option"),s.classList.add("ag-list-item","ag-"+this.cssIdentifier+"-list-item"),s.innerHTML="<span>"+i+"</span>",s.tabIndex=-1,this.itemEls.push(s),this.addManagedListener(s,"mouseover",function(){return o.highlightItem(s)}),this.addManagedListener(s,"mouseleave",function(){return o.clearHighlighted()}),this.addManagedListener(s,"click",function(){return o.setValue(e)}),this.getGui().appendChild(s)},r.prototype.setValue=function(e,i){if(this.value===e)return this.fireItemSelected(),this;if(null==e)return this.reset(),this;var o=this.options.findIndex(function(a){return a.value===e});if(-1!==o){var s=this.options[o];this.value=s.value,this.displayValue=null!=s.text?s.text:s.value,this.highlightItem(this.itemEls[o]),i||this.fireChangeEvent()}return this},r.prototype.setValueByIndex=function(e){return this.setValue(this.options[e].value)},r.prototype.getValue=function(){return this.value},r.prototype.getDisplayValue=function(){return this.displayValue},r.prototype.refreshHighlighted=function(){var e=this;this.clearHighlighted();var i=this.options.findIndex(function(o){return o.value===e.value});-1!==i&&this.highlightItem(this.itemEls[i])},r.prototype.reset=function(){this.value=null,this.displayValue=null,this.clearHighlighted(),this.fireChangeEvent()},r.prototype.highlightItem=function(e){e.offsetParent&&(this.clearHighlighted(),this.highlightedEl=e,this.highlightedEl.classList.add(r.ACTIVE_CLASS),Rc(this.highlightedEl,!0),this.highlightedEl.focus())},r.prototype.clearHighlighted=function(){!this.highlightedEl||!this.highlightedEl.offsetParent||(this.highlightedEl.classList.remove(r.ACTIVE_CLASS),Rc(this.highlightedEl,!1),this.highlightedEl=null)},r.prototype.fireChangeEvent=function(){this.dispatchEvent({type:w_.EVENT_CHANGED}),this.fireItemSelected()},r.prototype.fireItemSelected=function(){this.dispatchEvent({type:r.EVENT_ITEM_SELECTED})},r.EVENT_ITEM_SELECTED="selectedItem",r.ACTIVE_CLASS="ag-active-item",function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);o>3&&s&&Object.defineProperty(r,e,s)}([qi],r.prototype,"init",null),r}(Do),B0=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),UT=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},K2=function(t){function r(e){return t.call(this,e,"ag-select","smallDown","listbox")||this}return B0(r,t),r.prototype.init=function(){var e=this;this.listComponent=this.createBean(new DP("select")),this.listComponent.setParentComponent(this),this.eWrapper.tabIndex=0,this.listComponent.addManagedListener(this.listComponent,DP.EVENT_ITEM_SELECTED,function(){e.hideList&&e.hideList()}),this.listComponent.addManagedListener(this.listComponent,w_.EVENT_CHANGED,function(){e.setValue(e.listComponent.getValue(),!1,!0),e.hideList&&e.hideList()})},r.prototype.showPicker=function(){var e=this,i=this.listComponent.getGui(),o=this.gridOptionsWrapper.getDocument(),s=this.addManagedListener(o.body,"wheel",function(d){!i.contains(d.target)&&e.hideList&&e.hideList()}),a=this.addManagedListener(i,"focusout",function(d){!i.contains(d.relatedTarget)&&e.hideList&&e.hideList()}),l=this.gridOptionsWrapper.getLocaleTextFunc(),c=this.popupService.addPopup({modal:!0,eChild:i,closeOnEsc:!0,closedCallback:function(){e.hideList=null,e.isPickerDisplayed=!1,a(),s(),e.isAlive()&&(Yr(e.eWrapper,!1),e.getFocusableElement().focus())},ariaLabel:l("ariaLabelSelectField","Select Field")});return c&&(this.hideList=c.hideFunc),this.isPickerDisplayed=!0,f_(i,Jh(this.eWrapper)),Yr(this.eWrapper,!0),i.style.maxHeight=x1(this.popupService.getPopupParent())+"px",i.style.position="absolute",this.popupService.positionPopupUnderComponent({type:"ag-list",eventSource:this.eWrapper,ePopup:i,keepWithinBounds:!0}),this.listComponent.refreshHighlighted(),this.listComponent},r.prototype.addOptions=function(e){var i=this;return e.forEach(function(o){return i.addOption(o)}),this},r.prototype.addOption=function(e){return this.listComponent.addOption(e),this},r.prototype.setValue=function(e,i,o){return this.value===e?this:(o||this.listComponent.setValue(e,!0),this.listComponent.getValue()===this.getValue()?this:(this.eDisplayField.innerHTML=this.listComponent.getDisplayValue(),t.prototype.setValue.call(this,e,i)))},r.prototype.destroy=function(){this.hideList&&this.hideList(),this.destroyBean(this.listComponent),t.prototype.destroy.call(this)},UT([Xe("popupService")],r.prototype,"popupService",void 0),UT([qi],r.prototype,"init",null),r}(EP),EC=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),RI=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},T_=function(t){function r(e,i,o,s){void 0===o&&(o="text"),void 0===s&&(s="input");var a=t.call(this,e,'\n            <div role="presentation">\n                <div ref="eLabel" class="ag-input-field-label"></div>\n                <div ref="eWrapper" class="ag-wrapper ag-input-wrapper" role="presentation">\n                    <'+s+' ref="eInput" class="ag-input-field-input"></'+s+">\n                </div>\n            </div>",i)||this;return a.inputType=o,a.displayFieldTag=s,a}return EC(r,t),r.prototype.postConstruct=function(){t.prototype.postConstruct.call(this),this.setInputType(),this.eLabel.classList.add(this.className+"-label"),this.eWrapper.classList.add(this.className+"-input-wrapper"),this.eInput.classList.add(this.className+"-input"),this.addCssClass("ag-input-field"),this.eInput.id=this.eInput.id||"ag-"+this.getCompId()+"-input";var e=this.config,i=e.width,o=e.value;null!=i&&this.setWidth(i),null!=o&&this.setValue(o),this.addInputListeners()},r.prototype.refreshLabel=function(){rr(this.getLabel())?Un(this.eInput,this.getLabelId()):this.eInput.removeAttribute("aria-labelledby"),t.prototype.refreshLabel.call(this)},r.prototype.addInputListeners=function(){var e=this;this.addManagedListener(this.eInput,"input",function(i){return e.setValue(i.target.value)})},r.prototype.setInputType=function(){"input"===this.displayFieldTag&&this.eInput.setAttribute("type",this.inputType)},r.prototype.getInputElement=function(){return this.eInput},r.prototype.setInputWidth=function(e){return f_(this.eWrapper,e),this},r.prototype.setInputName=function(e){return this.getInputElement().setAttribute("name",e),this},r.prototype.getFocusableElement=function(){return this.eInput},r.prototype.setMaxLength=function(e){return this.eInput.maxLength=e,this},r.prototype.setInputPlaceholder=function(e){return ae(this.eInput,"placeholder",e),this},r.prototype.setInputAriaLabel=function(e){return Bn(this.eInput,e),this},r.prototype.setDisabled=function(e){return $g(this.eInput,e),t.prototype.setDisabled.call(this,e)},RI([Ti("eLabel")],r.prototype,"eLabel",void 0),RI([Ti("eWrapper")],r.prototype,"eWrapper",void 0),RI([Ti("eInput")],r.prototype,"eInput",void 0),r}(w_),aK=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Zg=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},Sp=function(t){return t[t.One=0]="One",t[t.Two=1]="Two",t}(Sp||{}),ed=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return aK(r,t),r.prototype.getNumberOfInputs=function(e){var i=this.optionsFactory.getCustomOption(e);return i?i.numberOfInputs??1:e&&[r.EMPTY,r.NOT_BLANK,r.BLANK].indexOf(e)>=0?0:e===r.IN_RANGE?2:1},r.prototype.onFloatingFilterChanged=function(e,i){this.setTypeFromFloatingFilter(e),this.setValueFromFloatingFilter(i),this.onUiChanged(!0)},r.prototype.setTypeFromFloatingFilter=function(e){this.eType1.setValue(e),this.eType2.setValue(this.optionsFactory.getDefaultOption()),(this.isDefaultOperator("AND")?this.eJoinOperatorAnd:this.eJoinOperatorOr).setValue(!0)},r.prototype.getModelFromUi=function(){return this.isConditionUiComplete(Sp.One)?this.isAllowTwoConditions()&&this.isConditionUiComplete(Sp.Two)?{filterType:this.getFilterType(),operator:this.getJoinOperator(),condition1:this.createCondition(Sp.One),condition2:this.createCondition(Sp.Two)}:this.createCondition(Sp.One):null},r.prototype.getConditionTypes=function(){return[this.eType1.getValue(),this.eType2.getValue()]},r.prototype.getJoinOperator=function(){return!0===this.eJoinOperatorOr.getValue()?"OR":"AND"},r.prototype.areModelsEqual=function(e,i){if(!e&&!i)return!0;if(!e&&i||e&&!i)return!1;var l,o=!e.operator,s=!i.operator;if(!o&&s||o&&!s)return!1;if(o)l=this.areSimpleModelsEqual(e,i);else{var f=e,v=i;l=f.operator===v.operator&&this.areSimpleModelsEqual(f.condition1,v.condition1)&&this.areSimpleModelsEqual(f.condition2,v.condition2)}return l},r.prototype.setModelIntoUi=function(e){if(e.operator){var o=e,s="OR"===o.operator;this.eJoinOperatorAnd.setValue(!s),this.eJoinOperatorOr.setValue(s),this.eType1.setValue(o.condition1.type),this.eType2.setValue(o.condition2.type),this.setConditionIntoUi(o.condition1,Sp.One),this.setConditionIntoUi(o.condition2,Sp.Two)}else{var a=e;this.eJoinOperatorAnd.setValue(this.isDefaultOperator("AND")),this.eJoinOperatorOr.setValue(this.isDefaultOperator("OR")),this.eType1.setValue(a.type),this.eType2.setValue(this.optionsFactory.getDefaultOption()),this.setConditionIntoUi(a,Sp.One),this.setConditionIntoUi(null,Sp.Two)}return Zu.resolve()},r.prototype.doesFilterPass=function(e){var i=this,o=this.getModel();if(null==o)return!0;var s=o.operator,a=[];return s?a.push(o.condition1,o.condition2):a.push(o),a[s&&"OR"===s?"some":"every"](function(d){return i.individualConditionPasses(e,d)})},r.prototype.setParams=function(e){t.prototype.setParams.call(this,e),this.optionsFactory=new wm,this.optionsFactory.init(e,this.getDefaultFilterOptions()),this.allowTwoConditions=!e.suppressAndOrCondition,this.alwaysShowBothConditions=!!e.alwaysShowBothConditions,this.defaultJoinOperator=this.getDefaultJoinOperator(e.defaultJoinOperator),this.putOptionsIntoDropdown(),this.addChangedListeners()},r.prototype.getDefaultJoinOperator=function(e){return ht(["AND","OR"],e)?e:"AND"},r.prototype.putOptionsIntoDropdown=function(){var e=this,i=this.optionsFactory.getFilterOptions(),o=[this.eType1,this.eType2];i.forEach(function(s){var a="string"==typeof s?e.createBoilerplateListOption(s):e.createCustomListOption(s);o.forEach(function(l){return l.addOption(a)})}),o.forEach(function(s){return s.setDisabled(i.length<=1)})},r.prototype.createBoilerplateListOption=function(e){return{value:e,text:this.translate(e)}},r.prototype.createCustomListOption=function(e){var i=e.displayKey,o=this.optionsFactory.getCustomOption(e.displayKey);return{value:i,text:o?this.gridOptionsWrapper.getLocaleTextFunc()(o.displayKey,o.displayName):this.translate(i)}},r.prototype.isAllowTwoConditions=function(){return this.allowTwoConditions},r.prototype.createBodyTemplate=function(){return'\n            <ag-select class="ag-filter-select" ref="eOptions1"></ag-select>\n            '+this.createValueTemplate(Sp.One)+'\n            <div class="ag-filter-condition" ref="eJoinOperatorPanel">\n               <ag-radio-button ref="eJoinOperatorAnd" class="ag-filter-condition-operator ag-filter-condition-operator-and"></ag-radio-button>\n               <ag-radio-button ref="eJoinOperatorOr" class="ag-filter-condition-operator ag-filter-condition-operator-or"></ag-radio-button>\n            </div>\n            <ag-select class="ag-filter-select" ref="eOptions2"></ag-select>\n            '+this.createValueTemplate(Sp.Two)},r.prototype.getCssIdentifier=function(){return"simple-filter"},r.prototype.updateUiVisibility=function(){var e=this,o=[this.eCondition1Body,this.eCondition2Body];[[this.eType1],[this.eType2,this.eJoinOperatorPanel,this.eJoinOperatorAnd,this.eJoinOperatorOr]].forEach(function(s,a){var l=e.isConditionVisible(a),c=e.isConditionDisabled(a);s.forEach(function(d){d instanceof T_||d instanceof K2?(d.setDisabled(c),d.setDisplayed(l)):($g(d,c),Pl(d,l))})}),o.forEach(function(s,a){Pl(s,e.isConditionBodyVisible(a))}),this.forEachInput(function(s,a,l,c){e.setElementDisplayed(s,a<c),e.setElementDisabled(s,e.isConditionDisabled(l))}),this.resetPlaceholder()},r.prototype.afterGuiAttached=function(e){if(t.prototype.afterGuiAttached.call(this,e),this.resetPlaceholder(),!e||!e.suppressFocus&&!this.isReadOnly()){var i=this.getInputs()[0][0];if(!i)return;i instanceof T_&&i.getInputElement().focus()}},r.prototype.resetPlaceholder=function(){var e=this,i=this.gridOptionsWrapper.getLocaleTextFunc();this.forEachInput(function(o,s,a,l){if(o instanceof T_){var c=0===s&&l>1?"inRangeStart":0===s?"filterOoo":"inRangeEnd",d=0===s&&l>1?i("ariaFilterFromValue","Filter from value"):0===s?i("ariaFilterValue","Filter Value"):i("ariaFilterToValue","Filter to Value");o.setInputPlaceholder(e.translate(c)),o.setInputAriaLabel(d)}})},r.prototype.setElementValue=function(e,i,o){e instanceof T_&&e.setValue(null!=i?String(i):null,o)},r.prototype.setElementDisplayed=function(e,i){e instanceof Do&&Pl(e.getGui(),i)},r.prototype.setElementDisabled=function(e,i){e instanceof Do&&$g(e.getGui(),i)},r.prototype.attachElementOnChange=function(e,i){e instanceof T_&&e.onValueChange(i)},r.prototype.forEachInput=function(e){var i=this,o=this.getInputs();this.getConditionTypes().forEach(function(s,a){for(var l=i.getNumberOfInputs(s),c=0;c<o[a].length;c++){var d=o[a][c];null!=d&&e(d,c,a,l)}})},r.prototype.isConditionVisible=function(e){return 0===e||!!this.allowTwoConditions&&(this.isReadOnly()?this.isConditionUiComplete(e):!!this.alwaysShowBothConditions||this.isConditionUiComplete(e-1))},r.prototype.isConditionDisabled=function(e){return!(!this.isReadOnly()&&this.isConditionVisible(e))||0!==e&&!this.isConditionUiComplete(e-1)},r.prototype.isConditionBodyVisible=function(e){if(!this.isConditionVisible(e))return!1;var i=this.getConditionTypes()[e];return this.getNumberOfInputs(i)>0},r.prototype.isConditionUiComplete=function(e){return!(this.getConditionTypes()[e]===r.EMPTY||this.getValues(e).some(function(o){return null==o}))},r.prototype.resetUiToDefaults=function(e){var i=this,s=this.gridOptionsWrapper.getLocaleTextFunc()("ariaFilteringOperator","Filtering operator"),a="ag-simple-filter-and-or-"+this.getCompId(),l=this.optionsFactory.getDefaultOption();return this.eType1.setValue(l,e).setAriaLabel(s).setDisabled(this.isReadOnly()),this.eType2.setValue(this.optionsFactory.getDefaultOption(),e).setAriaLabel(s).setDisabled(this.isReadOnly()),this.eJoinOperatorAnd.setValue(this.isDefaultOperator("AND"),e).setName(a).setLabel(this.translate("andCondition")).setDisabled(this.isReadOnly()),this.eJoinOperatorOr.setValue(this.isDefaultOperator("OR"),e).setName(a).setLabel(this.translate("orCondition")).setDisabled(this.isReadOnly()),this.forEachInput(function(c){i.setElementValue(c,null,e),i.setElementDisabled(c,i.isReadOnly())}),this.resetPlaceholder(),Zu.resolve()},r.prototype.setConditionIntoUi=function(e,i){var o=this,s=this.mapValuesFromModel(e);this.forEachInput(function(a,l,c,d){c===i&&o.setElementValue(a,null!=s[l]?s[l]:null)})},r.prototype.setValueFromFloatingFilter=function(e){var i=this;this.forEachInput(function(o,s,a,l){i.setElementValue(o,0===s&&0===a?e:null)})},r.prototype.isDefaultOperator=function(e){return e===this.defaultJoinOperator},r.prototype.addChangedListeners=function(){var e=this;if(!this.isReadOnly()){var i=function(){return e.onUiChanged()};this.eType1.onValueChange(i),this.eType2.onValueChange(i),this.eJoinOperatorOr.onValueChange(i),this.eJoinOperatorAnd.onValueChange(i),this.forEachInput(function(o){e.attachElementOnChange(o,i)})}},r.prototype.individualConditionPasses=function(e,i){var o=this.getCellValue(e.node),s=this.mapValuesFromModel(i),a=this.optionsFactory.getCustomOption(i.type);return this.evaluateCustomFilter(a,s,o)??(null==o?this.evaluateNullValue(i.type):this.evaluateNonNullValue(s,o,i,e))},r.prototype.evaluateCustomFilter=function(e,i,o){if(null!=e){var s=e.predicate;if(null!=s&&!i.some(function(a){return null==a}))return s(i,o)}},r.prototype.isBlank=function(e){return null==e||"string"==typeof e&&0===e.trim().length},r.EMPTY="empty",r.BLANK="blank",r.NOT_BLANK="notBlank",r.EQUALS="equals",r.NOT_EQUAL="notEqual",r.LESS_THAN="lessThan",r.LESS_THAN_OR_EQUAL="lessThanOrEqual",r.GREATER_THAN="greaterThan",r.GREATER_THAN_OR_EQUAL="greaterThanOrEqual",r.IN_RANGE="inRange",r.CONTAINS="contains",r.NOT_CONTAINS="notContains",r.STARTS_WITH="startsWith",r.ENDS_WITH="endsWith",Zg([Ti("eOptions1")],r.prototype,"eType1",void 0),Zg([Ti("eOptions2")],r.prototype,"eType2",void 0),Zg([Ti("eJoinOperatorPanel")],r.prototype,"eJoinOperatorPanel",void 0),Zg([Ti("eJoinOperatorAnd")],r.prototype,"eJoinOperatorAnd",void 0),Zg([Ti("eJoinOperatorOr")],r.prototype,"eJoinOperatorOr",void 0),Zg([Ti("eCondition1Body")],r.prototype,"eCondition1Body",void 0),Zg([Ti("eCondition2Body")],r.prototype,"eCondition2Body",void 0),r}(z2),kP=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),$d=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return kP(r,t),r.prototype.setParams=function(e){t.prototype.setParams.call(this,e),this.scalarFilterParams=e},r.prototype.evaluateNullValue=function(e){switch(e){case r.EQUALS:case r.NOT_EQUAL:if(this.scalarFilterParams.includeBlanksInEquals)return!0;break;case r.GREATER_THAN:case r.GREATER_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInGreaterThan)return!0;break;case r.LESS_THAN:case r.LESS_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInLessThan)return!0;break;case r.IN_RANGE:if(this.scalarFilterParams.includeBlanksInRange)return!0;break;case r.BLANK:return!0;case r.NOT_BLANK:return!1}return!1},r.prototype.evaluateNonNullValue=function(e,i,o){var s=this.comparator(),a=null!=e[0]?s(e[0],i):0;switch(o.type){case r.EQUALS:return 0===a;case r.NOT_EQUAL:return 0!==a;case r.GREATER_THAN:return a>0;case r.GREATER_THAN_OR_EQUAL:return a>=0;case r.LESS_THAN:return a<0;case r.LESS_THAN_OR_EQUAL:return a<=0;case r.IN_RANGE:var l=s(e[1],i);return this.scalarFilterParams.inRangeInclusive?a>=0&&l<=0:a>0&&l<0;case r.BLANK:return this.isBlank(i);case r.NOT_BLANK:return!this.isBlank(i);default:return console.warn('AG Grid: Unexpected type of filter "'+o.type+'", it looks like the filter was configured with incorrect Filter Options'),!0}},r}(ed),k1=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),OI=function(){return OI=Object.assign||function(t){for(var r,e=1,i=arguments.length;e<i;e++)for(var o in r=arguments[e])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t},OI.apply(this,arguments)},$T=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},AP=1/0,MP=function(t){function r(){var e=t.call(this,"dateFilter")||this;return e.minValidYear=1e3,e.maxValidYear=AP,e}return k1(r,t),r.prototype.afterGuiAttached=function(e){t.prototype.afterGuiAttached.call(this,e),this.dateCondition1FromComp.afterGuiAttached(e)},r.prototype.mapValuesFromModel=function(e){var i=e||{},o=i.dateFrom,s=i.dateTo,a=i.type;return[o&&Sh(o)||null,s&&Sh(s)||null].slice(0,this.getNumberOfInputs(a))},r.prototype.comparator=function(){return this.dateFilterParams.comparator?this.dateFilterParams.comparator:this.defaultComparator.bind(this)},r.prototype.defaultComparator=function(e,i){return null==i||i<e?-1:i>e?1:0},r.prototype.setParams=function(e){t.prototype.setParams.call(this,e),this.dateFilterParams=e;var i=function(o,s){if(null!=e[o]){if(!isNaN(e[o]))return null==e[o]?s:Number(e[o]);console.warn("AG Grid: DateFilter "+o+" is not a number")}return s};this.minValidYear=i("minValidYear",1e3),this.maxValidYear=i("maxValidYear",AP),this.minValidYear>this.maxValidYear&&console.warn("AG Grid: DateFilter minValidYear should be <= maxValidYear"),this.createDateComponents()},r.prototype.createDateComponents=function(){var e=this,i=function(o){return new Jm(e.getContext(),e.userComponentFactory,{onDateChanged:function(){return e.onUiChanged()},filterParams:e.dateFilterParams},o)};this.dateCondition1FromComp=i(this.eCondition1PanelFrom),this.dateCondition1ToComp=i(this.eCondition1PanelTo),this.dateCondition2FromComp=i(this.eCondition2PanelFrom),this.dateCondition2ToComp=i(this.eCondition2PanelTo),this.addDestroyFunc(function(){e.forEachInput(function(o){return o.destroy()})})},r.prototype.setElementValue=function(e,i,o){e.setDate(i)},r.prototype.setElementDisplayed=function(e,i){e.setDisplayed(i)},r.prototype.setElementDisabled=function(e,i){e.setDisabled(i)},r.prototype.getDefaultFilterOptions=function(){return r.DEFAULT_FILTER_OPTIONS},r.prototype.createValueTemplate=function(e){var i=e===Sp.One?"1":"2";return'\n            <div class="ag-filter-body" ref="eCondition'+i+'Body">\n                <div class="ag-filter-from ag-filter-date-from" ref="eCondition'+i+'PanelFrom"></div>\n                <div class="ag-filter-to ag-filter-date-to" ref="eCondition'+i+'PanelTo"></div>\n            </div>'},r.prototype.isConditionUiComplete=function(e){var i=this;if(!t.prototype.isConditionUiComplete.call(this,e))return!1;var s=!0;return this.forEachInput(function(a,l,c,d){c!==e||!s||l>=d||(s=s&&function(a){return null!=a&&a.getUTCFullYear()>=i.minValidYear&&a.getUTCFullYear()<=i.maxValidYear}(a.getDate()))}),s},r.prototype.areSimpleModelsEqual=function(e,i){return e.dateFrom===i.dateFrom&&e.dateTo===i.dateTo&&e.type===i.type},r.prototype.getFilterType=function(){return"date"},r.prototype.createCondition=function(e){var i=this.getConditionTypes()[e],o={},s=this.getValues(e);return s.length>0&&(o.dateFrom=Tp(s[0])),s.length>1&&(o.dateTo=Tp(s[1])),OI({dateFrom:null,dateTo:null,filterType:this.getFilterType(),type:i},o)},r.prototype.resetPlaceholder=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),i=this.translate("dateFormatOoo"),o=e("ariaFilterValue","Filter Value");this.forEachInput(function(s){s.setInputPlaceholder(i),s.setInputAriaLabel(o)})},r.prototype.getInputs=function(){return[[this.dateCondition1FromComp,this.dateCondition1ToComp],[this.dateCondition2FromComp,this.dateCondition2ToComp]]},r.prototype.getValues=function(e){var i=[];return this.forEachInput(function(o,s,a,l){e===a&&s<l&&i.push(o.getDate())}),i},r.DEFAULT_FILTER_OPTIONS=[$d.EQUALS,$d.GREATER_THAN,$d.LESS_THAN,$d.NOT_EQUAL,$d.IN_RANGE,$d.BLANK,$d.NOT_BLANK],$T([Ti("eCondition1PanelFrom")],r.prototype,"eCondition1PanelFrom",void 0),$T([Ti("eCondition1PanelTo")],r.prototype,"eCondition1PanelTo",void 0),$T([Ti("eCondition2PanelFrom")],r.prototype,"eCondition2PanelFrom",void 0),$T([Ti("eCondition2PanelTo")],r.prototype,"eCondition2PanelTo",void 0),$T([Xe("userComponentFactory")],r.prototype,"userComponentFactory",void 0),r}($d),S_=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),I1=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return S_(r,t),r.prototype.getDefaultDebounceMs=function(){return 0},r.prototype.destroy=function(){t.prototype.destroy.call(this)},r.prototype.getTextFromModel=function(e){if(!e)return null;if(null!=e.operator){var o=e,s=o||{},a=s.condition1,l=s.condition2,c=this.optionsFactory.getCustomOption(a.type),d=this.optionsFactory.getCustomOption(l.type);return[this.conditionToString(a,c),o.operator,this.conditionToString(l,d)].join(" ")}var f=e,v=this.optionsFactory.getCustomOption(f.type),w=v||{},x=w.displayKey,I=w.displayName;return x&&I&&0===w.numberOfInputs?(this.gridOptionsWrapper.getLocaleTextFunc()(x,I),I):this.conditionToString(f,v)},r.prototype.isEventFromFloatingFilter=function(e){return e&&e.afterFloatingFilter},r.prototype.getLastType=function(){return this.lastType},r.prototype.isReadOnly=function(){return this.readOnly},r.prototype.setLastTypeFromModel=function(e){e?this.lastType=(e.operator?e.condition1:e).type:this.lastType=this.optionsFactory.getDefaultOption()},r.prototype.canWeEditAfterModelFromParentFilter=function(e){return e?!e.operator&&this.isTypeEditable(e.type):this.isTypeEditable(this.lastType)},r.prototype.init=function(e){this.optionsFactory=new wm,this.optionsFactory.init(e.filterParams,this.getDefaultFilterOptions()),this.lastType=this.optionsFactory.getDefaultOption(),this.readOnly=!!e.filterParams.readOnly;var i=this.isTypeEditable(this.lastType);this.setEditable(i)},r.prototype.doesFilterHaveSingleInput=function(e){var o=(this.optionsFactory.getCustomOption(e)||{}).numberOfInputs;return null==o||1==o},r.prototype.isTypeEditable=function(e){var i=[ed.IN_RANGE,ed.EMPTY,ed.BLANK,ed.NOT_BLANK];return!!e&&!this.isReadOnly()&&this.doesFilterHaveSingleInput(e)&&i.indexOf(e)<0},r}(Do),L6=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),FI=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},N6=function(t){function r(){return t.call(this,'\n            <div class="ag-floating-filter-input" role="presentation">\n                <ag-input-text-field ref="eReadOnlyText"></ag-input-text-field>\n                <div ref="eDateWrapper" style="display: flex;"></div>\n            </div>')||this}return L6(r,t),r.prototype.getDefaultFilterOptions=function(){return MP.DEFAULT_FILTER_OPTIONS},r.prototype.conditionToString=function(e,i){var o=e.type,a=o==ed.IN_RANGE||2===(i||{}).numberOfInputs,l=Sh(e.dateFrom),c=Sh(e.dateTo);return a?Tp(l,!1)+"-"+Tp(c,!1):null!=l?""+Tp(l,!1):""+o},r.prototype.init=function(e){t.prototype.init.call(this,e),this.params=e,this.createDateComponent();var i=this.gridOptionsWrapper.getLocaleTextFunc();this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(i("ariaDateFilterInput","Date Filter Input"))},r.prototype.setEditable=function(e){Pl(this.eDateWrapper,e),Pl(this.eReadOnlyText.getGui(),!e)},r.prototype.onParentModelChanged=function(e,i){if(!this.isEventFromFloatingFilter(i)){t.prototype.setLastTypeFromModel.call(this,e);var o=!this.isReadOnly()&&this.canWeEditAfterModelFromParentFilter(e);this.setEditable(o),o?(this.dateComp.setDate(e?Sh(e.dateFrom):null),this.eReadOnlyText.setValue("")):(this.eReadOnlyText.setValue(this.getTextFromModel(e)),this.dateComp.setDate(null))}},r.prototype.onDateChanged=function(){var e=this,o=Tp(this.dateComp.getDate());this.params.parentFilterInstance(function(s){if(s){var a=Sh(o);s.onFloatingFilterChanged(e.getLastType()||null,a)}})},r.prototype.createDateComponent=function(){var e=this,i=z2.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),o={onDateChanged:hd(this.onDateChanged.bind(this),i),filterParams:this.params.column.getColDef().filterParams};this.dateComp=new Jm(this.getContext(),this.userComponentFactory,o,this.eDateWrapper),this.addDestroyFunc(function(){return e.dateComp.destroy()})},FI([Xe("userComponentFactory")],r.prototype,"userComponentFactory",void 0),FI([Ti("eReadOnlyText")],r.prototype,"eReadOnlyText",void 0),FI([Ti("eDateWrapper")],r.prototype,"eDateWrapper",void 0),r}(I1),G6=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),V6=function(t){function r(){return t.call(this,'\n            <div class="ag-filter-filter">\n                <ag-input-text-field class="ag-date-filter" ref="eDateInput"></ag-input-text-field>\n            </div>')||this}return G6(r,t),r.prototype.destroy=function(){t.prototype.destroy.call(this)},r.prototype.init=function(e){var i=this,o=this.gridOptionsWrapper.getDocument(),s=this.eDateInput.getInputElement();this.shouldUseBrowserDatePicker(e)&&(s.type="date"),this.addManagedListener(s,"mousedown",function(){i.eDateInput.isDisabled()||s.focus()}),this.addManagedListener(s,"input",function(d){d.target===o.activeElement&&(i.eDateInput.isDisabled()||e.onDateChanged())});var a=e.filterParams||{},l=a.minValidYear,c=a.maxValidYear;l&&(s.min=l+"-01-01"),c&&(s.max=c+"-12-31")},r.prototype.getDate=function(){return Sh(this.eDateInput.getValue())},r.prototype.setDate=function(e){this.eDateInput.setValue(Tp(e,!1))},r.prototype.setInputPlaceholder=function(e){this.eDateInput.setInputPlaceholder(e)},r.prototype.setDisabled=function(e){this.eDateInput.setDisabled(e)},r.prototype.afterGuiAttached=function(e){(!e||!e.suppressFocus)&&this.eDateInput.getInputElement().focus()},r.prototype.shouldUseBrowserDatePicker=function(e){return e.filterParams&&null!=e.filterParams.browserDatePicker?e.filterParams.browserDatePicker:Hg()||b1()},function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);o>3&&s&&Object.defineProperty(r,e,s)}([Ti("eDateInput")],r.prototype,"eDateInput",void 0),r}(Do),RP=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Q2=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},OP=function(t){function r(){return t.call(this,"numberFilter")||this}return RP(r,t),r.prototype.mapValuesFromModel=function(e){var i=e||{};return[i.filter??null,i.filterTo??null].slice(0,this.getNumberOfInputs(i.type))},r.prototype.getDefaultDebounceMs=function(){return 500},r.prototype.comparator=function(){return function(e,i){return e===i?0:e<i?1:-1}},r.prototype.setParams=function(e){this.numberFilterParams=e;var i=this.getAllowedCharPattern();if(i){var o={allowedCharPattern:i};this.resetTemplate({"eValue-index0-1":o,"eValue-index1-1":o,"eValue-index0-2":o,"eValue-index1-2":o})}t.prototype.setParams.call(this,e)},r.prototype.getDefaultFilterOptions=function(){return r.DEFAULT_FILTER_OPTIONS},r.prototype.createValueTemplate=function(e){var i=e===Sp.One?"1":"2",s=this.getAllowedCharPattern()?"ag-input-text-field":"ag-input-number-field";return'\n            <div class="ag-filter-body" ref="eCondition'+i+'Body" role="presentation">\n                <'+s+' class="ag-filter-from ag-filter-filter" ref="eValue-index0-'+i+'"></'+s+">\n                <"+s+' class="ag-filter-to ag-filter-filter" ref="eValue-index1-'+i+'"></'+s+">\n            </div>"},r.prototype.getValues=function(e){var i=this,o=[];return this.forEachInput(function(s,a,l,c){e===l&&a<c&&o.push(i.stringToFloat(s.getValue()))}),o},r.prototype.areSimpleModelsEqual=function(e,i){return e.filter===i.filter&&e.filterTo===i.filterTo&&e.type===i.type},r.prototype.getFilterType=function(){return"number"},r.prototype.stringToFloat=function(e){if("number"==typeof e)return e;var i=vp(e);return null!=i&&""===i.trim()&&(i=null),this.numberFilterParams.numberParser?this.numberFilterParams.numberParser(i):null==i||"-"===i.trim()?null:parseFloat(i)},r.prototype.createCondition=function(e){var i=this.getConditionTypes()[e],o={filterType:this.getFilterType(),type:i},s=this.getValues(e);return s.length>0&&(o.filter=s[0]),s.length>1&&(o.filterTo=s[1]),o},r.prototype.getInputs=function(){return[[this.eValueFrom1,this.eValueTo1],[this.eValueFrom2,this.eValueTo2]]},r.prototype.getAllowedCharPattern=function(){return(this.numberFilterParams||{}).allowedCharPattern||(Hg()||p_()?null:"\\d\\-\\.")},r.DEFAULT_FILTER_OPTIONS=[$d.EQUALS,$d.NOT_EQUAL,$d.LESS_THAN,$d.LESS_THAN_OR_EQUAL,$d.GREATER_THAN,$d.GREATER_THAN_OR_EQUAL,$d.IN_RANGE,$d.BLANK,$d.NOT_BLANK],Q2([Ti("eValue-index0-1")],r.prototype,"eValueFrom1",void 0),Q2([Ti("eValue-index1-1")],r.prototype,"eValueTo1",void 0),Q2([Ti("eValue-index0-2")],r.prototype,"eValueFrom2",void 0),Q2([Ti("eValue-index1-2")],r.prototype,"eValueTo2",void 0),r}($d),j6=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),J2=function(){return J2=Object.assign||function(t){for(var r,e=1,i=arguments.length;e<i;e++)for(var o in r=arguments[e])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t},J2.apply(this,arguments)},A1=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},eg=function(t){function r(){return t.call(this,"textFilter")||this}return j6(r,t),r.trimInput=function(e){var i=e&&e.trim();return""===i?e:i},r.prototype.getDefaultDebounceMs=function(){return 500},r.prototype.setParams=function(e){t.prototype.setParams.call(this,e),this.textFilterParams=e,this.matcher=this.getTextMatcher(),this.formatter=this.textFilterParams.textFormatter||(this.textFilterParams.caseSensitive?r.DEFAULT_FORMATTER:r.DEFAULT_LOWERCASE_FORMATTER)},r.prototype.getTextMatcher=function(){var e=this.textFilterParams.textCustomComparator;return e?(ln.doOnce(function(){return console.warn("AG Grid - textCustomComparator is deprecated, use textMatcher instead.")},"textCustomComparator.deprecated"),function(i){return e(i.filterOption,i.value,i.filterText)}):this.textFilterParams.textMatcher||r.DEFAULT_MATCHER},r.prototype.createCondition=function(e){var i=this.getConditionTypes()[e],o={filterType:this.getFilterType(),type:i},s=this.getValues(e);return s.length>0&&(o.filter=s[0]),s.length>1&&(o.filterTo=s[1]),o},r.prototype.getFilterType=function(){return"text"},r.prototype.areSimpleModelsEqual=function(e,i){return e.filter===i.filter&&e.filterTo===i.filterTo&&e.type===i.type},r.prototype.getInputs=function(){return[[this.eValueFrom1,this.eValueTo1],[this.eValueFrom2,this.eValueTo2]]},r.prototype.getValues=function(e){var i=this,o=[];return this.forEachInput(function(s,a,l,c){if(e===l&&a<c){var d=vp(s.getValue()),f=(i.textFilterParams.trimInput?r.trimInput(d):d)||null;o.push(f),s.setValue(f,!0)}}),o},r.prototype.getDefaultFilterOptions=function(){return r.DEFAULT_FILTER_OPTIONS},r.prototype.createValueTemplate=function(e){var i=e===Sp.One?"1":"2";return'\n            <div class="ag-filter-body" ref="eCondition'+i+'Body" role="presentation">\n                <ag-input-text-field class=".ag-filter-from ag-filter-filter" ref="eValue-index0-'+i+'"></ag-input-text-field>\n                <ag-input-text-field class="ag-filter-to ag-filter-filter" ref="eValue-index1-'+i+'"></ag-input-text-field>\n            </div>'},r.prototype.mapValuesFromModel=function(e){var i=e||{};return[i.filter||null,i.filterTo||null].slice(0,this.getNumberOfInputs(i.type))},r.prototype.evaluateNullValue=function(e){return!!e&&[ed.NOT_EQUAL,ed.NOT_CONTAINS,ed.BLANK].indexOf(e)>=0},r.prototype.evaluateNonNullValue=function(e,i,o,s){var a=this,l=e.map(function(re){return a.formatter(re)})||[],c=this.formatter(i),d=this.textFilterParams,f=d.api,v=d.colDef,w=d.column,x=d.columnApi,I=d.context,M=d.textFormatter;if(o.type===ed.BLANK)return this.isBlank(i);if(o.type===ed.NOT_BLANK)return!this.isBlank(i);var F={api:f,colDef:v,column:w,columnApi:x,context:I,node:s.node,data:s.data,filterOption:o.type,value:c,textFormatter:M};return l.some(function(re){return a.matcher(J2(J2({},F),{filterText:re}))})},r.DEFAULT_FILTER_OPTIONS=[ed.CONTAINS,ed.NOT_CONTAINS,ed.EQUALS,ed.NOT_EQUAL,ed.STARTS_WITH,ed.ENDS_WITH,ed.BLANK,ed.NOT_BLANK],r.DEFAULT_FORMATTER=function(e){return e},r.DEFAULT_LOWERCASE_FORMATTER=function(e){return null==e?null:e.toString().toLowerCase()},r.DEFAULT_MATCHER=function(e){var o=e.value,s=e.filterText;if(null==s)return!1;switch(e.filterOption){case r.CONTAINS:return o.indexOf(s)>=0;case r.NOT_CONTAINS:return o.indexOf(s)<0;case r.EQUALS:return o===s;case r.NOT_EQUAL:return o!=s;case r.STARTS_WITH:return 0===o.indexOf(s);case r.ENDS_WITH:var a=o.lastIndexOf(s);return a>=0&&a===o.length-s.length;default:return!1}},A1([Ti("eValue-index0-1")],r.prototype,"eValueFrom1",void 0),A1([Ti("eValue-index1-1")],r.prototype,"eValueTo1",void 0),A1([Ti("eValue-index0-2")],r.prototype,"eValueFrom2",void 0),A1([Ti("eValue-index1-2")],r.prototype,"eValueTo2",void 0),r}(ed),YT=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Z2=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},PI=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return YT(r,t),r.prototype.postConstruct=function(){this.resetTemplate()},r.prototype.resetTemplate=function(e){this.setTemplate('\n            <div class="ag-floating-filter-input" role="presentation">\n                <ag-input-text-field ref="eFloatingFilterInput"></ag-input-text-field>\n            </div>\n        ',e)},r.prototype.getDefaultDebounceMs=function(){return 500},r.prototype.onParentModelChanged=function(e,i){this.isEventFromFloatingFilter(i)||(this.setLastTypeFromModel(e),this.eFloatingFilterInput.setValue(this.getTextFromModel(e)),this.setEditable(this.canWeEditAfterModelFromParentFilter(e)))},r.prototype.init=function(e){t.prototype.init.call(this,e),this.params=e,this.applyActive=z2.isUseApplyButton(this.params.filterParams);var i=this.params.filterParams.allowedCharPattern;if(null!=i&&this.resetTemplate({eFloatingFilterInput:{allowedCharPattern:i}}),!this.isReadOnly()){var o=z2.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),s=hd(this.syncUpWithParentFilter.bind(this),o),a=this.eFloatingFilterInput.getGui();this.addManagedListener(a,"input",s),this.addManagedListener(a,"keypress",s),this.addManagedListener(a,"keydown",s)}var l=e.column.getDefinition();(this.isReadOnly()||l.filterParams&&l.filterParams.filterOptions&&1===l.filterParams.filterOptions.length&&"inRange"===l.filterParams.filterOptions[0])&&this.eFloatingFilterInput.setDisabled(!0);var c=this.columnModel.getDisplayNameForColumn(e.column,"header",!0),d=this.gridOptionsWrapper.getLocaleTextFunc();this.eFloatingFilterInput.setInputAriaLabel(c+" "+d("ariaFilterInput","Filter Input"))},r.prototype.syncUpWithParentFilter=function(e){var i=this;if(!this.applyActive||e.key===gi.ENTER){var s=this.eFloatingFilterInput.getValue();this.params.filterParams.trimInput&&(s=eg.trimInput(s),this.eFloatingFilterInput.setValue(s,!0)),this.params.parentFilterInstance(function(a){a&&a.onFloatingFilterChanged(i.getLastType()||null,s||null)})}},r.prototype.conditionToString=function(e,i){return e.type==ed.IN_RANGE||2===(i||{}).numberOfInputs?e.filter+"-"+e.filterTo:null!=e.filter?""+e.filter:""+e.type},r.prototype.setEditable=function(e){this.eFloatingFilterInput.setDisabled(!e)},Z2([Xe("columnModel")],r.prototype,"columnModel",void 0),Z2([Ti("eFloatingFilterInput")],r.prototype,"eFloatingFilterInput",void 0),Z2([qi],r.prototype,"postConstruct",null),r}(I1),FP=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),lK=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return FP(r,t),r.prototype.getDefaultFilterOptions=function(){return OP.DEFAULT_FILTER_OPTIONS},r}(PI),cK=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),uK=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return cK(r,t),r.prototype.getDefaultFilterOptions=function(){return eg.DEFAULT_FILTER_OPTIONS},r}(PI),xp=function(){function t(r,e){var i=this;void 0===e&&(e=!1),this.destroyFuncs=[],this.touching=!1,this.eventService=new fd,this.eElement=r,this.preventMouseClick=e;var o=this.onTouchStart.bind(this),s=this.onTouchMove.bind(this),a=this.onTouchEnd.bind(this);this.eElement.addEventListener("touchstart",o,{passive:!0}),this.eElement.addEventListener("touchmove",s,{passive:!0}),this.eElement.addEventListener("touchend",a,{passive:!1}),this.destroyFuncs.push(function(){i.eElement.removeEventListener("touchstart",o,{passive:!0}),i.eElement.removeEventListener("touchmove",s,{passive:!0}),i.eElement.removeEventListener("touchend",a,{passive:!1})})}return t.prototype.getActiveTouch=function(r){for(var e=0;e<r.length;e++)if(r[e].identifier===this.touchStart.identifier)return r[e];return null},t.prototype.addEventListener=function(r,e){this.eventService.addEventListener(r,e)},t.prototype.removeEventListener=function(r,e){this.eventService.removeEventListener(r,e)},t.prototype.onTouchStart=function(r){var e=this;if(!this.touching){this.touchStart=r.touches[0],this.touching=!0,this.moved=!1;var i=this.touchStart;window.setTimeout(function(){e.touching&&e.touchStart===i&&!e.moved&&(e.moved=!0,e.eventService.dispatchEvent({type:t.EVENT_LONG_TAP,touchStart:e.touchStart,touchEvent:r}))},500)}},t.prototype.onTouchMove=function(r){if(this.touching){var e=this.getActiveTouch(r.touches);e&&!jT(e,this.touchStart,4)&&(this.moved=!0)}},t.prototype.onTouchEnd=function(r){this.touching&&(this.moved||(this.eventService.dispatchEvent({type:t.EVENT_TAP,touchStart:this.touchStart}),this.checkForDoubleTap()),this.preventMouseClick&&r.preventDefault(),this.touching=!1)},t.prototype.checkForDoubleTap=function(){var r=(new Date).getTime();this.lastTapTime&&this.lastTapTime>0&&r-this.lastTapTime>t.DOUBLE_TAP_MILLIS?(this.eventService.dispatchEvent({type:t.EVENT_DOUBLE_TAP,touchStart:this.touchStart}),this.lastTapTime=null):this.lastTapTime=r},t.prototype.destroy=function(){this.destroyFuncs.forEach(function(r){return r()})},t.EVENT_TAP="tap",t.EVENT_DOUBLE_TAP="doubleTap",t.EVENT_LONG_TAP="longTap",t.DOUBLE_TAP_MILLIS=500,t}(),LI=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),M1=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},dK=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.lastMovingChanged=0,e}return LI(r,t),r.prototype.destroy=function(){t.prototype.destroy.call(this)},r.prototype.refresh=function(e){return this.params=e,this.workOutTemplate()==this.currentTemplate&&this.workOutShowMenu()==this.currentShowMenu&&this.workOutSort()==this.currentSort&&(this.setDisplayName(e),!0)},r.prototype.workOutTemplate=function(){var e=h1(this.params.template,r.TEMPLATE);return e&&e.trim?e.trim():e},r.prototype.init=function(e){this.params=e,this.currentTemplate=this.workOutTemplate(),this.setTemplate(this.currentTemplate),this.setupTap(),this.setupIcons(e.column),this.setMenu(),this.setupSort(),this.setupFilterIcon(),this.setDisplayName(e)},r.prototype.setDisplayName=function(e){if(this.currentDisplayName!=e.displayName){this.currentDisplayName=e.displayName;var i=Ju(this.currentDisplayName);this.eText&&(this.eText.innerHTML=i)}},r.prototype.setupIcons=function(e){this.addInIcon("menu",this.eMenu,e),this.addInIcon("filter",this.eFilter,e)},r.prototype.addInIcon=function(e,i,o){if(null!=i){var s=Oc(e,this.gridOptionsWrapper,o);s&&i.appendChild(s)}},r.prototype.setupTap=function(){var e=this,i=this.gridOptionsWrapper;if(!i.isSuppressTouch()){var o=new xp(this.getGui(),!0),s=i.isSuppressMenuHide(),a=s&&rr(this.eMenu),l=a?new xp(this.eMenu,!0):o;this.params.enableMenu&&this.addManagedListener(l,xp[a?"EVENT_TAP":"EVENT_LONG_TAP"],function(v){i.getApi().showColumnMenuAfterMouseClick(e.params.column,v.touchStart)}),this.params.enableSorting&&this.addManagedListener(o,xp.EVENT_TAP,function(v){s&&e.eMenu.contains(v.touchStart.target)||e.sortController.progressSort(e.params.column,!1,"uiColumnSorted")}),this.addDestroyFunc(function(){return o.destroy()}),a&&this.addDestroyFunc(function(){return l.destroy()})}},r.prototype.workOutShowMenu=function(){var e=!this.gridOptionsWrapper.isSuppressMenuHide(),i=zm()&&e;return this.params.enableMenu&&!i},r.prototype.setMenu=function(){var e=this;if(this.eMenu){if(this.currentShowMenu=this.workOutShowMenu(),!this.currentShowMenu)return void Xm(this.eMenu);var i=this.gridOptionsWrapper.isSuppressMenuHide();this.addManagedListener(this.eMenu,"click",function(){return e.showMenu(e.eMenu)}),this.eMenu.classList.toggle("ag-header-menu-always-show",i)}},r.prototype.showMenu=function(e){e||(e=this.eMenu),this.menuFactory.showMenuAfterButtonClick(this.params.column,e,"columnMenu")},r.prototype.workOutSort=function(){return this.params.enableSorting},r.prototype.setupSort=function(){var e=this;if(this.currentSort=this.params.enableSorting,this.eSortIndicator&&this.eSortIndicator.setupSort(this.params.column),this.currentSort){var i=this.gridOptionsWrapper.isMultiSortKeyCtrl();this.addManagedListener(this.params.column,ms.EVENT_MOVING_CHANGED,function(){e.lastMovingChanged=(new Date).getTime()}),this.eLabel&&this.addManagedListener(this.eLabel,"click",function(s){var a=e.params.column.isMoving(),l=(new Date).getTime();a||l-e.lastMovingChanged<50||e.params.progressSort(i?s.ctrlKey||s.metaKey:s.shiftKey)});var o=function(){var s;if(e.addOrRemoveCssClass("ag-header-cell-sorted-asc",e.params.column.isSortAscending()),e.addOrRemoveCssClass("ag-header-cell-sorted-desc",e.params.column.isSortDescending()),e.addOrRemoveCssClass("ag-header-cell-sorted-none",e.params.column.isSortNone()),e.params.column.getColDef().showRowGroup){var l=null===(s=e.columnModel.getSourceColumnsForGroupColumn(e.params.column))||void 0===s?void 0:s.every(function(d){return e.params.column.getSort()==d.getSort()});e.addOrRemoveCssClass("ag-header-cell-sorted-mixed",!l)}};this.addManagedListener(this.eventService,Et.EVENT_SORT_CHANGED,o),this.addManagedListener(this.eventService,Et.EVENT_COLUMN_ROW_GROUP_CHANGED,o)}},r.prototype.setupFilterIcon=function(){this.eFilter&&(this.addManagedListener(this.params.column,ms.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged())},r.prototype.onFilterChanged=function(){var e=this.params.column.isFilterActive();this.eFilter.classList.toggle("ag-hidden",!e)},r.TEMPLATE='<div class="ag-cell-label-container" role="presentation">\n            <span ref="eMenu" class="ag-header-icon ag-header-cell-menu-button" aria-hidden="true"></span>\n            <div ref="eLabel" class="ag-header-cell-label" role="presentation">\n                <span ref="eText" class="ag-header-cell-text"></span>\n                <span ref="eFilter" class="ag-header-icon ag-header-label-icon ag-filter-icon" aria-hidden="true"></span>\n                <ag-sort-indicator ref="eSortIndicator"></ag-sort-indicator>\n            </div>\n        </div>',M1([Xe("sortController")],r.prototype,"sortController",void 0),M1([Xe("menuFactory")],r.prototype,"menuFactory",void 0),M1([Xe("columnModel")],r.prototype,"columnModel",void 0),M1([Ti("eFilter")],r.prototype,"eFilter",void 0),M1([Ti("eSortIndicator")],r.prototype,"eSortIndicator",void 0),M1([Ti("eMenu")],r.prototype,"eMenu",void 0),M1([Ti("eLabel")],r.prototype,"eLabel",void 0),M1([Ti("eText")],r.prototype,"eText",void 0),r}(Do),PP=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),NI=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},H6=function(t){function r(){return t.call(this,r.TEMPLATE)||this}return PP(r,t),r.prototype.destroy=function(){t.prototype.destroy.call(this)},r.prototype.init=function(e){this.params=e,this.checkWarnings(),this.setupLabel(),this.addGroupExpandIcon(),this.setupExpandIcons()},r.prototype.checkWarnings=function(){this.params.template&&sa(function(){return console.warn("AG Grid: A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)")},"HeaderGroupComp.templateNotSupported")},r.prototype.setupExpandIcons=function(){var e=this;this.addInIcon("columnGroupOpened","agOpened"),this.addInIcon("columnGroupClosed","agClosed");var i=function(a){if(!Jl(a)){var l=!e.params.columnGroup.isExpanded();e.columnModel.setColumnGroupOpened(e.params.columnGroup.getProvidedColumnGroup(),l,"uiColumnExpanded")}};this.addTouchAndClickListeners(this.eCloseIcon,i),this.addTouchAndClickListeners(this.eOpenIcon,i);var o=function(a){Wl(a)};this.addManagedListener(this.eCloseIcon,"dblclick",o),this.addManagedListener(this.eOpenIcon,"dblclick",o),this.addManagedListener(this.getGui(),"dblclick",i),this.updateIconVisibility();var s=this.params.columnGroup.getProvidedColumnGroup();this.addManagedListener(s,Zr.EVENT_EXPANDED_CHANGED,this.updateIconVisibility.bind(this)),this.addManagedListener(s,Zr.EVENT_EXPANDABLE_CHANGED,this.updateIconVisibility.bind(this))},r.prototype.addTouchAndClickListeners=function(e,i){var o=new xp(e,!0);this.addManagedListener(o,xp.EVENT_TAP,i),this.addDestroyFunc(function(){return o.destroy()}),this.addManagedListener(e,"click",i)},r.prototype.updateIconVisibility=function(){if(this.params.columnGroup.isExpandable()){var i=this.params.columnGroup.isExpanded();Pl(this.eOpenIcon,i),Pl(this.eCloseIcon,!i)}else Pl(this.eOpenIcon,!1),Pl(this.eCloseIcon,!1)},r.prototype.addInIcon=function(e,i){var o=Oc(e,this.gridOptionsWrapper,null);o&&this.getRefElement(i).appendChild(o)},r.prototype.addGroupExpandIcon=function(){if(!this.params.columnGroup.isExpandable())return Pl(this.eOpenIcon,!1),void Pl(this.eCloseIcon,!1)},r.prototype.setupLabel=function(){var e=this.params.displayName;if(rr(e)){var i=Ju(e);this.getRefElement("agLabel").innerHTML=i}},r.TEMPLATE='<div class="ag-header-group-cell-label" ref="agContainer" role="presentation">\n            <span ref="agLabel" class="ag-header-group-text" role="presentation"></span>\n            <span ref="agOpened" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-expanded"></span>\n            <span ref="agClosed" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-collapsed"></span>\n        </div>',NI([Xe("columnModel")],r.prototype,"columnModel",void 0),NI([Ti("agOpened")],r.prototype,"eOpenIcon",void 0),NI([Ti("agClosed")],r.prototype,"eCloseIcon",void 0),r}(Do),U6=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),R1=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},LP=function(t){function r(){var e=t.call(this)||this;return e.setTemplate(r.TEMPLATE),e}return U6(r,t),r.prototype.setupSort=function(e,i){var o=this;void 0===i&&(i=!1),this.column=e,this.suppressOrder=i,this.setupMultiSortIndicator(),this.column.getColDef().sortable&&(this.addInIcon("sortAscending",this.eSortAsc,e),this.addInIcon("sortDescending",this.eSortDesc,e),this.addInIcon("sortUnSort",this.eSortNone,e),this.addManagedListener(this.eventService,Et.EVENT_SORT_CHANGED,function(){return o.onSortChanged()}),this.addManagedListener(this.eventService,Et.EVENT_COLUMN_ROW_GROUP_CHANGED,function(){return o.onSortChanged()}),this.onSortChanged())},r.prototype.addInIcon=function(e,i,o){if(null!=i){var s=Oc(e,this.gridOptionsWrapper,o);s&&i.appendChild(s)}},r.prototype.onSortChanged=function(){this.updateIcons(),this.suppressOrder||this.updateSortOrder()},r.prototype.updateIcons=function(){var e=this.sortController.getDisplaySortForColumn(this.column);if(this.eSortAsc&&this.eSortAsc.classList.toggle("ag-hidden",!("asc"===e)),this.eSortDesc&&this.eSortDesc.classList.toggle("ag-hidden",!("desc"===e)),this.eSortNone){var s=!this.column.getColDef().unSortIcon&&!this.gridOptionsWrapper.isUnSortIcon();this.eSortNone.classList.toggle("ag-hidden",s||!(null==e))}},r.prototype.setupMultiSortIndicator=function(){var e=this;this.addInIcon("sortUnSort",this.eSortMixed,this.column);var i=this.column.getColDef().showRowGroup;this.gridOptionsWrapper.isColumnsSortingCoupledToGroup()&&i&&(this.addManagedListener(this.eventService,Et.EVENT_SORT_CHANGED,function(){return e.updateMultiSortIndicator()}),this.addManagedListener(this.eventService,Et.EVENT_COLUMN_ROW_GROUP_CHANGED,function(){return e.updateMultiSortIndicator()}),this.updateMultiSortIndicator())},r.prototype.updateMultiSortIndicator=function(){if(this.eSortMixed){var e="mixed"===this.sortController.getDisplaySortForColumn(this.column);this.eSortMixed.classList.toggle("ag-hidden",!e)}},r.prototype.updateSortOrder=function(){var e=this;if(this.eSortOrder){var o=this.sortController.getColumnsWithSortingOrdered(),s=this.sortController.getDisplaySortIndexForColumn(this.column)??-1,a=o.some(function(c){return e.sortController.getDisplaySortIndexForColumn(c)??!1});Pl(this.eSortOrder,s>=0&&a),s>=0?this.eSortOrder.innerHTML=(s+1).toString():eu(this.eSortOrder)}},r.TEMPLATE='<span class="ag-sort-indicator-container">\n            <span ref="eSortOrder" class="ag-sort-indicator-icon ag-sort-order ag-hidden" aria-hidden="true"></span>\n            <span ref="eSortAsc" class="ag-sort-indicator-icon ag-sort-ascending-icon ag-hidden" aria-hidden="true"></span>\n            <span ref="eSortDesc" class="ag-sort-indicator-icon ag-sort-descending-icon ag-hidden" aria-hidden="true"></span>\n            <span ref="eSortMixed" class="ag-sort-indicator-icon ag-sort-mixed-icon ag-hidden" aria-hidden="true"></span>\n            <span ref="eSortNone" class="ag-sort-indicator-icon ag-sort-none-icon ag-hidden" aria-hidden="true"></span>\n        </span>',R1([Ti("eSortOrder")],r.prototype,"eSortOrder",void 0),R1([Ti("eSortAsc")],r.prototype,"eSortAsc",void 0),R1([Ti("eSortDesc")],r.prototype,"eSortDesc",void 0),R1([Ti("eSortMixed")],r.prototype,"eSortMixed",void 0),R1([Ti("eSortNone")],r.prototype,"eSortNone",void 0),R1([Xe("columnModel")],r.prototype,"columnModel",void 0),R1([Xe("sortController")],r.prototype,"sortController",void 0),r}(Do),NP=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),DC=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return NP(r,t),r.prototype.isPopup=function(){return!0},r.prototype.setParentComponent=function(e){e.addCssClass("ag-has-popup"),t.prototype.setParentComponent.call(this,e)},r.prototype.destroy=function(){var e=this.parentComponent;e&&e.isAlive()&&e.getGui().classList.remove("ag-has-popup"),t.prototype.destroy.call(this)},r}(Do),$6=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),GP=function(t){function r(){return t.call(this,r.TEMPLATE)||this}return $6(r,t),r.prototype.init=function(e){this.params=e,this.focusAfterAttached=e.cellStartedEdit,this.eTextArea.setMaxLength(e.maxLength||200).setCols(e.cols||60).setRows(e.rows||10),rr(e.value)&&this.eTextArea.setValue(e.value.toString(),!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this))},r.prototype.onKeyDown=function(e){var i=e.key;(i===gi.LEFT||i===gi.UP||i===gi.RIGHT||i===gi.DOWN||e.shiftKey&&i===gi.ENTER)&&e.stopPropagation()},r.prototype.afterGuiAttached=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc();this.eTextArea.setInputAriaLabel(e("ariaInputEditor","Input Editor")),this.focusAfterAttached&&this.eTextArea.getFocusableElement().focus()},r.prototype.getValue=function(){return this.params.parseValue(this.eTextArea.getValue())},r.TEMPLATE='<div class="ag-large-text" tabindex="0">\n            <ag-input-text-area ref="eTextArea" class="ag-large-text-input"></ag-input-text-area>\n        </div>',function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);o>3&&s&&Object.defineProperty(r,e,s)}([Ti("eTextArea")],r.prototype,"eTextArea",void 0),r}(DC),eE=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),GI=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},tE=function(t){function r(){var e=t.call(this,'<div class="ag-cell-edit-wrapper"><ag-select class="ag-cell-editor" ref="eSelect"></ag-select></div>')||this;return e.startedByEnter=!1,e}return eE(r,t),r.prototype.init=function(e){var i=this;if(this.focusAfterAttached=e.cellStartedEdit,$o(e.values))console.warn("AG Grid: no values found for select cellEditor");else{this.startedByEnter=null!=e.eventKey&&e.eventKey===gi.ENTER;var o=!1;e.values.forEach(function(s){var a={value:s},l=i.valueFormatterService.formatValue(e.column,null,s);a.text=null!=l?l:s,i.eSelect.addOption(a),o=o||e.value===s}),o?this.eSelect.setValue(e.value,!0):e.values.length&&this.eSelect.setValue(e.values[0],!0),this.gridOptionsWrapper.isFullRowEdit()||this.eSelect.onValueChange(function(){return e.stopEditing()})}},r.prototype.afterGuiAttached=function(){this.focusAfterAttached&&this.eSelect.getFocusableElement().focus(),this.startedByEnter&&this.eSelect.showPicker()},r.prototype.focusIn=function(){this.eSelect.getFocusableElement().focus()},r.prototype.getValue=function(){return this.eSelect.getValue()},r.prototype.isPopup=function(){return!1},GI([Xe("valueFormatterService")],r.prototype,"valueFormatterService",void 0),GI([Ti("eSelect")],r.prototype,"eSelect",void 0),r}(DC),W6=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),O1=function(t){function r(){var e=t.call(this)||this;return sa(function(){return console.warn('AG Grid: The PopupSelectCellEditor (agPopupSelectCellEditor) is deprecated. Instead use {cellEditor: "agSelectCellEditor", cellEditorPopup: true} ')},"PopupSelectCellEditor.deprecated"),e}return W6(r,t),r.prototype.isPopup=function(){return!0},r}(tE),BP=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),WT=function(t){function r(){return t.call(this,r.TEMPLATE)||this}return BP(r,t),r.prototype.init=function(e){this.params=e;var o,i=this.eInput;e.cellStartedEdit?(this.focusAfterAttached=!0,e.eventKey===gi.BACKSPACE||e.eventKey===gi.DELETE?o="":e.charPress?o=e.charPress:(o=this.getStartValue(e),e.eventKey!==gi.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,o=this.getStartValue(e)),null!=o&&i.setValue(o,!0),this.addManagedListener(i.getGui(),"keydown",function(s){var a=s.key;(a===gi.PAGE_UP||a===gi.PAGE_DOWN)&&s.preventDefault()})},r.prototype.afterGuiAttached=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),i=this.eInput;if(i.setInputAriaLabel(e("ariaInputEditor","Input Editor")),this.focusAfterAttached){jg()||i.getFocusableElement().focus();var o=i.getInputElement();if(this.highlightAllOnFocus)o.select();else{var s=i.getValue(),a=rr(s)&&s.length||0;a&&o.setSelectionRange(a,a)}}},r.prototype.focusIn=function(){var e=this.eInput,i=e.getFocusableElement(),o=e.getInputElement();i.focus(),o.select()},r.prototype.getValue=function(){return this.params.parseValue(this.eInput.getValue())},r.prototype.getStartValue=function(e){return e.useFormatter||e.column.getColDef().refData?e.formatValue(e.value):e.value},r.prototype.isPopup=function(){return!1},r.TEMPLATE='<div class="ag-cell-edit-wrapper"><ag-input-text-field class="ag-cell-editor" ref="eInput"></ag-input-text-field></div>',function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);o>3&&s&&Object.defineProperty(r,e,s)}([Ti("eInput")],r.prototype,"eInput",void 0),r}(DC),BI=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),q6=function(t){function r(){var e=t.call(this)||this;return sa(function(){return console.warn('AG Grid: The PopupTextCellEditor (agPopupTextCellEditor) is deprecated. Instead use {cellEditor: "agTextCellEditor", cellEditorPopup: true} ')},"PopupTextCellEditor.deprecated"),e}return BI(r,t),r.prototype.isPopup=function(){return!0},r}(WT),X6=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),pK=function(t){function r(){var e=t.call(this,r.TEMPLATE)||this;return e.refreshCount=0,e}return X6(r,t),r.prototype.init=function(e){this.eValue=this.queryForHtmlElement(".ag-value-change-value"),this.eDelta=this.queryForHtmlElement(".ag-value-change-delta"),this.refresh(e)},r.prototype.showDelta=function(e,i){var o=Math.abs(i),s=e.formatValue(o),a=rr(s)?s:o,l=i>=0;this.eDelta.innerHTML=l?"\u2191"+a:"\u2193"+a,this.eDelta.classList.toggle("ag-value-change-delta-up",l),this.eDelta.classList.toggle("ag-value-change-delta-down",!l)},r.prototype.setTimerToRemoveDelta=function(){var e=this;this.refreshCount++;var i=this.refreshCount;window.setTimeout(function(){i===e.refreshCount&&e.hideDeltaValue()},2e3)},r.prototype.hideDeltaValue=function(){this.eValue.classList.remove("ag-value-change-value-highlight"),eu(this.eDelta)},r.prototype.refresh=function(e){var i=e.value;return i!==this.lastValue&&(rr(e.valueFormatted)?this.eValue.innerHTML=e.valueFormatted:rr(e.value)?this.eValue.innerHTML=i:eu(this.eValue),!this.filterManager.isSuppressFlashingCellsBecauseFiltering())&&("number"==typeof i&&"number"==typeof this.lastValue&&this.showDelta(e,i-this.lastValue),this.lastValue&&this.eValue.classList.add("ag-value-change-value-highlight"),this.setTimerToRemoveDelta(),this.lastValue=i,!0)},r.TEMPLATE='<span><span class="ag-value-change-delta"></span><span class="ag-value-change-value"></span></span>',function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);o>3&&s&&Object.defineProperty(r,e,s)}([Xe("filterManager")],r.prototype,"filterManager",void 0),r}(Do),hK=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),J6=function(t){function r(){var e=t.call(this,r.TEMPLATE)||this;return e.refreshCount=0,e.eCurrent=e.queryForHtmlElement(".ag-value-slide-current"),e}return hK(r,t),r.prototype.init=function(e){this.refresh(e)},r.prototype.addSlideAnimation=function(){var e=this;this.refreshCount++;var i=this.refreshCount;this.ePrevious&&this.getGui().removeChild(this.ePrevious),this.ePrevious=Su('<span class="ag-value-slide-previous ag-value-slide-out"></span>'),this.ePrevious.innerHTML=this.eCurrent.innerHTML,this.getGui().insertBefore(this.ePrevious,this.eCurrent),window.setTimeout(function(){i===e.refreshCount&&e.ePrevious.classList.add("ag-value-slide-out-end")},50),window.setTimeout(function(){i===e.refreshCount&&(e.getGui().removeChild(e.ePrevious),e.ePrevious=null)},3e3)},r.prototype.refresh=function(e){var i=e.value;return $o(i)&&(i=""),i!==this.lastValue&&!this.filterManager.isSuppressFlashingCellsBecauseFiltering()&&(this.addSlideAnimation(),this.lastValue=i,rr(e.valueFormatted)?this.eCurrent.innerHTML=e.valueFormatted:rr(e.value)?this.eCurrent.innerHTML=i:eu(this.eCurrent),!0)},r.TEMPLATE='<span>\n            <span class="ag-value-slide-current"></span>\n        </span>',function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);o>3&&s&&Object.defineProperty(r,e,s)}([Xe("filterManager")],r.prototype,"filterManager",void 0),r}(Do),V0=function(t){return t[t.Above=0]="Above",t[t.Below=1]="Below",t}(V0||{}),Ta=function(){function t(r){this.rowIndex=null,this.key=null,this.childrenMapped={},this.displayed=!1,this.rowTop=null,this.oldRowTop=null,this.selectable=!0,this.__objectId=t.OBJECT_ID_SEQUENCE++,this.__autoHeights={},this.alreadyRendered=!1,this.highlighted=null,this.selected=!1,this.onRowHeightChangedDebounced=hd(this.onRowHeightChanged.bind(this),100),this.beans=r}return t.prototype.setData=function(r){this.setDataCommon(r,!1)},t.prototype.updateData=function(r){this.setDataCommon(r,!0)},t.prototype.setDataCommon=function(r,e){var i=this.data;this.data=r,this.beans.valueCache.onDataChanged(),this.updateDataOnDetailNode(),this.checkRowSelectable();var o=this.createDataChangedEvent(r,i,e);this.dispatchLocalEvent(o)},t.prototype.updateDataOnDetailNode=function(){this.detailNode&&(this.detailNode.data=this.data)},t.prototype.createDataChangedEvent=function(r,e,i){return{type:t.EVENT_DATA_CHANGED,node:this,oldData:e,newData:r,update:i}},t.prototype.createLocalRowEvent=function(r){return{type:r,node:this}},t.prototype.getRowIndexString=function(){return this.rowPinned===Nn.PINNED_TOP?"t-"+this.rowIndex:this.rowPinned===Nn.PINNED_BOTTOM?"b-"+this.rowIndex:this.rowIndex.toString()},t.prototype.createDaemonNode=function(){var r=new t(this.beans);return r.id=this.id,r.data=this.data,r.daemon=!0,r.selected=this.selected,r.level=this.level,r},t.prototype.setDataAndId=function(r,e){var i=rr(this.id)?this.createDaemonNode():null,o=this.data;this.data=r,this.updateDataOnDetailNode(),this.setId(e),this.beans.selectionService.syncInRowNode(this,i),this.checkRowSelectable();var s=this.createDataChangedEvent(r,o,!1);this.dispatchLocalEvent(s)},t.prototype.checkRowSelectable=function(){var r=this.beans.gridOptionsWrapper.getIsRowSelectableFunc();this.setRowSelectable(!r||r(this))},t.prototype.setRowSelectable=function(r){if(this.selectable!==r&&(this.selectable=r,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_SELECTABLE_CHANGED)),this.beans.gridOptionsWrapper.isGroupSelectsChildren())){var i=this.calculateSelectedFromChildren();this.setSelected(i??!1)}},t.prototype.setId=function(r){var e=this.beans.gridOptionsWrapper.getRowIdFunc();if(e)if(this.data){var i=this.getGroupKeys(!0);this.id=e({data:this.data,parentKeys:i.length>0?i:void 0,level:this.level}),null!==this.id&&"string"==typeof this.id&&this.id.startsWith(t.ID_PREFIX_ROW_GROUP)&&console.error("AG Grid: Row IDs cannot start with "+t.ID_PREFIX_ROW_GROUP+", this is a reserved prefix for AG Grid's row grouping feature."),null!==this.id&&"string"!=typeof this.id&&(this.id=""+this.id)}else this.id=void 0;else this.id=r},t.prototype.getGroupKeys=function(r){void 0===r&&(r=!1);var e=[],i=this;for(r&&(i=i.parent);i&&i.level>=0;)e.push(i.key),i=i.parent;return e.reverse(),e},t.prototype.isPixelInRange=function(r){return!(!rr(this.rowTop)||!rr(this.rowHeight))&&r>=this.rowTop&&r<this.rowTop+this.rowHeight},t.prototype.setFirstChild=function(r){this.firstChild!==r&&(this.firstChild=r,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_FIRST_CHILD_CHANGED)))},t.prototype.setLastChild=function(r){this.lastChild!==r&&(this.lastChild=r,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_LAST_CHILD_CHANGED)))},t.prototype.setChildIndex=function(r){this.childIndex!==r&&(this.childIndex=r,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_CHILD_INDEX_CHANGED)))},t.prototype.setRowTop=function(r){this.oldRowTop=this.rowTop,this.rowTop!==r&&(this.rowTop=r,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_TOP_CHANGED)),this.setDisplayed(null!==r))},t.prototype.clearRowTopAndRowIndex=function(){this.oldRowTop=null,this.setRowTop(null),this.setRowIndex(null)},t.prototype.setDisplayed=function(r){this.displayed!==r&&(this.displayed=r,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_DISPLAYED_CHANGED)))},t.prototype.setDragging=function(r){this.dragging!==r&&(this.dragging=r,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_DRAGGING_CHANGED)))},t.prototype.setHighlighted=function(r){r!==this.highlighted&&(this.highlighted=r,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_HIGHLIGHT_CHANGED)))},t.prototype.setAllChildrenCount=function(r){this.allChildrenCount!==r&&(this.allChildrenCount=r,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_ALL_CHILDREN_COUNT_CHANGED)))},t.prototype.setMaster=function(r){this.master!==r&&(this.master&&!r&&(this.expanded=!1),this.master=r,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_MASTER_CHANGED)))},t.prototype.setGroup=function(r){this.group!==r&&(this.group&&!r&&(this.expanded=!1),this.group=r,this.updateHasChildren(),this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_GROUP_CHANGED)))},t.prototype.setRowHeight=function(r,e){void 0===e&&(e=!1),this.rowHeight=r,this.rowHeightEstimated=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_HEIGHT_CHANGED))},t.prototype.setRowAutoHeight=function(r,e){this.__autoHeights||(this.__autoHeights={}),this.__autoHeights[e.getId()]=r,null!=r&&(null==this.checkAutoHeightsDebounced&&(this.checkAutoHeightsDebounced=hd(this.checkAutoHeights.bind(this),1)),this.checkAutoHeightsDebounced())},t.prototype.checkAutoHeights=function(){var r=!1,e=!0,i=0,o=this.__autoHeights;null!=o&&(this.beans.columnModel.getAllDisplayedAutoHeightCols().forEach(function(a){var l=o[a.getId()];null!=l?(e=!1,l>i&&(i=l)):r=!0}),!r&&((e||i<10)&&(i=this.beans.gridOptionsWrapper.getRowHeightForNode(this).height),i!=this.rowHeight&&(this.setRowHeight(i),this.onRowHeightChangedDebounced())))},t.prototype.onRowHeightChanged=function(){var r=this.beans.rowModel;r.onRowHeightChanged&&r.onRowHeightChanged()},t.prototype.setRowIndex=function(r){this.rowIndex!==r&&(this.rowIndex=r,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_ROW_INDEX_CHANGED)))},t.prototype.setUiLevel=function(r){this.uiLevel!==r&&(this.uiLevel=r,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_UI_LEVEL_CHANGED)))},t.prototype.setExpanded=function(r,e){if(this.expanded!==r){this.expanded=r,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_EXPANDED_CHANGED));var i=Object.assign({},this.createGlobalRowEvent(Et.EVENT_ROW_GROUP_OPENED),{expanded:r,event:e||null});this.beans.rowNodeEventThrottle.dispatchExpanded(i),this.beans.gridOptionsWrapper.isGroupIncludeFooter()&&this.beans.rowRenderer.refreshCells({rowNodes:[this]})}},t.prototype.createGlobalRowEvent=function(r){return{type:r,node:this,data:this.data,rowIndex:this.rowIndex,rowPinned:this.rowPinned,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi()}},t.prototype.dispatchLocalEvent=function(r){this.eventService&&this.eventService.dispatchEvent(r)},t.prototype.setDataValue=function(r,e,i){var o=this.beans.columnModel.getPrimaryColumn(r),s=this.beans.valueService.getValue(o,this),a=this.beans.valueService.setValue(this,o,e,i);return this.dispatchCellChangedEvent(o,e,s),this.checkRowSelectable(),a},t.prototype.setGroupValue=function(r,e){var i=this.beans.columnModel.getGridColumn(r);$o(this.groupData)&&(this.groupData={});var o=i.getColId(),s=this.groupData[o];s!==e&&(this.groupData[o]=e,this.dispatchCellChangedEvent(i,e,s))},t.prototype.setAggData=function(r){var e=this,i=Co([this.aggData,r]),o=this.aggData;this.aggData=r,this.eventService&&i.forEach(function(s){var a=e.beans.columnModel.getGridColumn(s);e.dispatchCellChangedEvent(a,e.aggData?e.aggData[s]:void 0,o?o[s]:void 0)})},t.prototype.updateHasChildren=function(){var r=this.group&&!this.footer||this.childrenAfterGroup&&this.childrenAfterGroup.length>0;r!==this.__hasChildren&&(this.__hasChildren=!!r,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_HAS_CHILDREN_CHANGED)))},t.prototype.hasChildren=function(){return null==this.__hasChildren&&this.updateHasChildren(),this.__hasChildren},t.prototype.isEmptyRowGroupNode=function(){return this.group&&_c(this.childrenAfterGroup)},t.prototype.dispatchCellChangedEvent=function(r,e,i){this.dispatchLocalEvent({type:t.EVENT_CELL_CHANGED,node:this,column:r,newValue:e,oldValue:i})},t.prototype.resetQuickFilterAggregateText=function(){this.quickFilterAggregateText=null},t.prototype.isExpandable=function(){return!!(this.hasChildren()&&!this.footer||this.master)},t.prototype.isSelected=function(){return this.footer?this.sibling.isSelected():this.selected},t.prototype.depthFirstSearch=function(r){this.childrenAfterGroup&&this.childrenAfterGroup.forEach(function(e){return e.depthFirstSearch(r)}),r(this)},t.prototype.calculateSelectedFromChildren=function(){var r,e=!1,i=!1,o=!1;if(null===(r=this.childrenAfterGroup)||void 0===r||!r.length)return this.selectable?this.selected:null;for(var s=0;s<this.childrenAfterGroup.length;s++){var a=this.childrenAfterGroup[s],l=a.isSelected();if(!a.selectable){var c=a.calculateSelectedFromChildren();if(null===c)continue;l=c}switch(l){case!0:e=!0;break;case!1:i=!0;break;default:o=!0}}return o||e&&i?void 0:!!e||!i&&(this.selectable?this.selected:null)},t.prototype.setSelectedInitialValue=function(r){this.selected=r},t.prototype.setSelected=function(r,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1),this.setSelectedParams({newValue:r,clearSelection:e,suppressFinishActions:i,rangeSelect:!1})},t.prototype.isRowPinned=function(){return this.rowPinned===Nn.PINNED_TOP||this.rowPinned===Nn.PINNED_BOTTOM},t.prototype.setSelectedParams=function(r){var e,i=this.beans.gridOptionsWrapper.isGroupSelectsChildren(),o=!0===r.newValue,s=!0===r.clearSelection,a=!0===r.suppressFinishActions,l=!0===r.rangeSelect,c=i&&!0===r.groupSelectsFiltered;if(void 0===this.id)return console.warn("AG Grid: cannot select node until id for node is known"),0;if(this.rowPinned)return console.warn("AG Grid: cannot select pinned rows"),0;if(this.footer)return this.sibling.setSelectedParams(r);if(l&&this.beans.selectionService.getLastSelectedNode()){var d=this.beans.selectionService.getLastSelectedNode()!==this,f=this.beans.gridOptionsWrapper.isRowSelectionMulti();if(d&&f){var v=this.doRowRangeSelection(r.newValue);return this.beans.selectionService.setLastSelectedNode(this),v}}var w=0;return c&&this.group||this.selectThisNode(o,r.event)&&w++,i&&!(null===(e=this.childrenAfterGroup)||void 0===e)&&e.length&&(w+=this.selectChildNodes(o,c)),a||(o&&(s||!this.beans.gridOptionsWrapper.isRowSelectionMulti())&&(w+=this.beans.selectionService.clearOtherNodes(this)),w>0&&(this.beans.selectionService.updateGroupsFromChildrenSelections(),this.beans.eventService.dispatchEvent({type:Et.EVENT_SELECTION_CHANGED,api:this.beans.gridApi,columnApi:this.beans.columnApi})),o&&this.beans.selectionService.setLastSelectedNode(this)),w},t.prototype.doRowRangeSelection=function(r){var e=this;void 0===r&&(r=!0);var i=this.beans.gridOptionsWrapper.isGroupSelectsChildren(),o=this.beans.selectionService.getLastSelectedNode(),s=this.beans.rowModel.getNodesInRangeForSelection(this,o),a=0;return s.forEach(function(c){c.group&&i||!1===r&&e===c||c.selectThisNode(r)&&a++}),this.beans.selectionService.updateGroupsFromChildrenSelections(),this.beans.eventService.dispatchEvent({type:Et.EVENT_SELECTION_CHANGED,api:this.beans.gridApi,columnApi:this.beans.columnApi}),a},t.prototype.isParentOfNode=function(r){for(var e=this.parent;e;){if(e===r)return!0;e=e.parent}return!1},t.prototype.selectThisNode=function(r,e){if(!this.selectable&&r||this.selected===r)return!1;this.selected=r,this.eventService&&this.dispatchLocalEvent(this.createLocalRowEvent(t.EVENT_ROW_SELECTED));var s=Object.assign({},this.createGlobalRowEvent(Et.EVENT_ROW_SELECTED),{event:e||null});return this.beans.eventService.dispatchEvent(s),!0},t.prototype.selectChildNodes=function(r,e){var i=e?this.childrenAfterAggFilter:this.childrenAfterGroup;if($o(i))return 0;for(var o=0,s=0;s<i.length;s++)o+=i[s].setSelectedParams({newValue:r,clearSelection:!1,suppressFinishActions:!0,groupSelectsFiltered:e});return o},t.prototype.addEventListener=function(r,e){this.eventService||(this.eventService=new fd),this.eventService.addEventListener(r,e)},t.prototype.removeEventListener=function(r,e){this.eventService&&(this.eventService.removeEventListener(r,e),this.eventService.noRegisteredListenersExist()&&(this.eventService=null))},t.prototype.onMouseEnter=function(){this.dispatchLocalEvent(this.createLocalRowEvent(t.EVENT_MOUSE_ENTER))},t.prototype.onMouseLeave=function(){this.dispatchLocalEvent(this.createLocalRowEvent(t.EVENT_MOUSE_LEAVE))},t.prototype.getFirstChildOfFirstChild=function(r){for(var e=this,i=!0,o=!1,s=null;i&&!o;){var a=e.parent;rr(a)&&e.firstChild?a.rowGroupColumn===r&&(o=!0,s=a):i=!1,e=a}return o?s:null},t.prototype.isFullWidthCell=function(){var r=this.beans.gridOptionsWrapper.getIsFullWidthCellFunc();return!!r&&r({rowNode:this})},t.prototype.getRoute=function(){if(null!=this.key){for(var r=[],e=this;null!=e.key;)r.push(e.key),e=e.parent;return r.reverse()}},t.ID_PREFIX_ROW_GROUP="row-group-",t.ID_PREFIX_TOP_PINNED="t-",t.ID_PREFIX_BOTTOM_PINNED="b-",t.OBJECT_ID_SEQUENCE=0,t.EVENT_ROW_SELECTED="rowSelected",t.EVENT_DATA_CHANGED="dataChanged",t.EVENT_CELL_CHANGED="cellChanged",t.EVENT_ALL_CHILDREN_COUNT_CHANGED="allChildrenCountChanged",t.EVENT_MASTER_CHANGED="masterChanged",t.EVENT_GROUP_CHANGED="groupChanged",t.EVENT_MOUSE_ENTER="mouseEnter",t.EVENT_MOUSE_LEAVE="mouseLeave",t.EVENT_HEIGHT_CHANGED="heightChanged",t.EVENT_TOP_CHANGED="topChanged",t.EVENT_DISPLAYED_CHANGED="displayedChanged",t.EVENT_FIRST_CHILD_CHANGED="firstChildChanged",t.EVENT_LAST_CHILD_CHANGED="lastChildChanged",t.EVENT_CHILD_INDEX_CHANGED="childIndexChanged",t.EVENT_ROW_INDEX_CHANGED="rowIndexChanged",t.EVENT_EXPANDED_CHANGED="expandedChanged",t.EVENT_HAS_CHILDREN_CHANGED="hasChildrenChanged",t.EVENT_SELECTABLE_CHANGED="selectableChanged",t.EVENT_UI_LEVEL_CHANGED="uiLevelChanged",t.EVENT_HIGHLIGHT_CHANGED="rowHighlightChanged",t.EVENT_DRAGGING_CHANGED="draggingChanged",t}(),jP=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),HP=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},UP=function(t){function r(){return t.call(this,'\n            <div class="ag-selection-checkbox" role="presentation">\n                <ag-checkbox role="presentation" ref="eCheckbox"></ag-checkbox>\n            </div>')||this}return jP(r,t),r.prototype.postConstruct=function(){this.eCheckbox.setPassive(!0)},r.prototype.getCheckboxId=function(){return this.eCheckbox.getInputElement().id},r.prototype.onDataChanged=function(){this.onSelectionChanged()},r.prototype.onSelectableChanged=function(){this.showOrHideSelect()},r.prototype.onSelectionChanged=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),i=this.rowNode.isSelected(),o=void 0===i?e("ariaIndeterminate","indeterminate"):!0===i?e("ariaChecked","checked"):e("ariaUnchecked","unchecked"),s=e("ariaRowToggleSelection","Press Space to toggle row selection");this.eCheckbox.setValue(i,!0),this.eCheckbox.setInputAriaLabel(s+" ("+o+")")},r.prototype.onCheckedClicked=function(e){var i=this.gridOptionsWrapper.isGroupSelectsFiltered();return this.rowNode.setSelectedParams({newValue:!1,rangeSelect:e.shiftKey,groupSelectsFiltered:i})},r.prototype.onUncheckedClicked=function(e){var i=this.gridOptionsWrapper.isGroupSelectsFiltered();return this.rowNode.setSelectedParams({newValue:!0,rangeSelect:e.shiftKey,groupSelectsFiltered:i})},r.prototype.init=function(e){var i=this;if(this.rowNode=e.rowNode,this.column=e.column,this.onSelectionChanged(),this.addGuiEventListener("click",function(l){return Wl(l)}),this.addGuiEventListener("dblclick",function(l){return Wl(l)}),this.addManagedListener(this.eCheckbox.getInputElement(),"click",function(l){var c=i.eCheckbox.getValue();void 0===i.eCheckbox.getPreviousValue()||void 0===c?0===i.onUncheckedClicked(l||{})&&i.onCheckedClicked(l):c?i.onCheckedClicked(l):i.onUncheckedClicked(l||{})}),this.addManagedListener(this.rowNode,Ta.EVENT_ROW_SELECTED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.rowNode,Ta.EVENT_DATA_CHANGED,this.onDataChanged.bind(this)),this.addManagedListener(this.rowNode,Ta.EVENT_SELECTABLE_CHANGED,this.onSelectableChanged.bind(this)),this.gridOptionsWrapper.getIsRowSelectableFunc()||this.checkboxCallbackExists()){var a=this.showOrHideSelect.bind(this);this.addManagedListener(this.eventService,Et.EVENT_DISPLAYED_COLUMNS_CHANGED,a),this.addManagedListener(this.rowNode,Ta.EVENT_DATA_CHANGED,a),this.addManagedListener(this.rowNode,Ta.EVENT_CELL_CHANGED,a),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")},r.prototype.showOrHideSelect=function(){var e=this.rowNode.selectable;e&&this.checkboxCallbackExists()&&(e=this.column.isCellCheckboxSelection(this.rowNode)),this.setVisible(e)},r.prototype.checkboxCallbackExists=function(){var e=this.column?this.column.getColDef():null;return!!e&&"function"==typeof e.checkboxSelection},HP([Ti("eCheckbox")],r.prototype,"eCheckbox",void 0),HP([qi],r.prototype,"postConstruct",null),r}(Do),Z6=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),F1=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},nE=function(t){var r="function"==typeof Symbol&&Symbol.iterator,e=r&&t[r],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")},Ed=function(t){return t[t.ToolPanel=0]="ToolPanel",t[t.HeaderCell=1]="HeaderCell",t[t.RowDrag=2]="RowDrag",t[t.ChartPanel=3]="ChartPanel",t}(Ed||{}),j0=function(t){return t[t.Up=0]="Up",t[t.Down=1]="Down",t}(j0||{}),x_=function(t){return t[t.Left=0]="Left",t[t.Right=1]="Right",t}(x_||{}),Zl=function(t){function r(){var i=null!==t&&t.apply(this,arguments)||this;return i.dragSourceAndParamsList=[],i.dropTargets=[],i}var e;return Z6(r,t),e=r,r.prototype.init=function(){this.ePinnedIcon=Pu("columnMovePin",this.gridOptionsWrapper,null),this.eHideIcon=Pu("columnMoveHide",this.gridOptionsWrapper,null),this.eMoveIcon=Pu("columnMoveMove",this.gridOptionsWrapper,null),this.eLeftIcon=Pu("columnMoveLeft",this.gridOptionsWrapper,null),this.eRightIcon=Pu("columnMoveRight",this.gridOptionsWrapper,null),this.eGroupIcon=Pu("columnMoveGroup",this.gridOptionsWrapper,null),this.eAggregateIcon=Pu("columnMoveValue",this.gridOptionsWrapper,null),this.ePivotIcon=Pu("columnMovePivot",this.gridOptionsWrapper,null),this.eDropNotAllowedIcon=Pu("dropNotAllowed",this.gridOptionsWrapper,null)},r.prototype.addDragSource=function(i,o){void 0===o&&(o=!1);var s={eElement:i.eElement,dragStartPixels:i.dragStartPixels,onDragStart:this.onDragStart.bind(this,i),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this)};this.dragSourceAndParamsList.push({params:s,dragSource:i}),this.dragService.addDragSource(s,o)},r.prototype.removeDragSource=function(i){var o=this.dragSourceAndParamsList.find(function(s){return s.dragSource===i});o&&(this.dragService.removeDragSource(o.params),Yl(this.dragSourceAndParamsList,o))},r.prototype.clearDragSourceParamsList=function(){var i=this;this.dragSourceAndParamsList.forEach(function(o){return i.dragService.removeDragSource(o.params)}),this.dragSourceAndParamsList.length=0},r.prototype.nudge=function(){this.dragging&&this.onDragging(this.eventLastTime,!0)},r.prototype.onDragStart=function(i,o){this.dragging=!0,this.dragSource=i,this.eventLastTime=o,this.dragItem=this.dragSource.getDragItem(),this.lastDropTarget=this.dragSource.dragSourceDropTarget,this.dragSource.onDragStarted&&this.dragSource.onDragStarted(),this.createGhost()},r.prototype.onDragStop=function(i){if(this.eventLastTime=null,this.dragging=!1,this.dragSource.onDragStopped&&this.dragSource.onDragStopped(),this.lastDropTarget&&this.lastDropTarget.onDragStop){var o=this.createDropTargetEvent(this.lastDropTarget,i,null,null,!1);this.lastDropTarget.onDragStop(o)}this.lastDropTarget=null,this.dragItem=null,this.removeGhost()},r.prototype.onDragging=function(i,o){var a,l,c,d,s=this,f=this.getHorizontalDirection(i),v=this.getVerticalDirection(i);this.eventLastTime=i,this.positionGhost(i);var w=this.dropTargets.filter(function(M){return s.isMouseOnDropTarget(i,M)}),x=this.findCurrentDropTarget(i,w);if(x!==this.lastDropTarget)null!==this.lastDropTarget&&null===x&&(null===(l=(a=this.dragSource).onGridExit)||void 0===l||l.call(a,this.dragItem)),null===this.lastDropTarget&&null!==x&&(null===(d=(c=this.dragSource).onGridEnter)||void 0===d||d.call(c,this.dragItem)),this.leaveLastTargetIfExists(i,f,v,o),this.enterDragTargetIfExists(x,i,f,v,o),this.lastDropTarget=x;else if(x&&x.onDragging){var I=this.createDropTargetEvent(x,i,f,v,o);x.onDragging(I)}},r.prototype.getAllContainersFromDropTarget=function(i){var o=i.getSecondaryContainers?i.getSecondaryContainers():null,s=[[i.getContainer()]];return o?s.concat(o):s},r.prototype.allContainersIntersect=function(i,o){var s,a;try{for(var l=nE(o),c=l.next();!c.done;c=l.next()){var f=c.value.getBoundingClientRect();if(0===f.width||0===f.height)return!1;if(!(i.clientX>=f.left&&i.clientX<f.right&&i.clientY>=f.top&&i.clientY<f.bottom))return!1}}catch(x){s={error:x}}finally{try{c&&!c.done&&(a=l.return)&&a.call(l)}finally{if(s)throw s.error}}return!0},r.prototype.isMouseOnDropTarget=function(i,o){var s,a,l=this.getAllContainersFromDropTarget(o),c=!1;try{for(var d=nE(l),f=d.next();!f.done;f=d.next())if(this.allContainersIntersect(i,f.value)){c=!0;break}}catch(w){s={error:w}}finally{try{f&&!f.done&&(a=d.return)&&a.call(d)}finally{if(s)throw s.error}}return!(o.targetContainsSource&&!o.getContainer().contains(this.dragSource.eElement))&&c&&o.isInterestedIn(this.dragSource.type,this.dragSource.eElement)},r.prototype.findCurrentDropTarget=function(i,o){var s,a,l,c,d=o.length;if(0===d)return null;if(1===d)return o[0];var v=this.gridOptionsWrapper.getDocument().elementsFromPoint(i.x,i.y);try{for(var w=nE(v),x=w.next();!x.done;x=w.next()){var I=x.value;try{for(var M=(l=void 0,nE(o)),F=M.next();!F.done;F=M.next()){var re=F.value;if(-1!==sn(this.getAllContainersFromDropTarget(re)).indexOf(I))return re}}catch(we){l={error:we}}finally{try{F&&!F.done&&(c=M.return)&&c.call(M)}finally{if(l)throw l.error}}}}catch(we){s={error:we}}finally{try{x&&!x.done&&(a=w.return)&&a.call(w)}finally{if(s)throw s.error}}return null},r.prototype.enterDragTargetIfExists=function(i,o,s,a,l){if(i){if(i.onDragEnter){var c=this.createDropTargetEvent(i,o,s,a,l);i.onDragEnter(c)}this.setGhostIcon(i.getIconName?i.getIconName():null)}},r.prototype.leaveLastTargetIfExists=function(i,o,s,a){if(this.lastDropTarget){if(this.lastDropTarget.onDragLeave){var l=this.createDropTargetEvent(this.lastDropTarget,i,o,s,a);this.lastDropTarget.onDragLeave(l)}this.setGhostIcon(null)}},r.prototype.addDropTarget=function(i){this.dropTargets.push(i)},r.prototype.removeDropTarget=function(i){this.dropTargets=this.dropTargets.filter(function(o){return o.getContainer()!==i.getContainer()})},r.prototype.hasExternalDropZones=function(){return this.dropTargets.some(function(i){return i.external})},r.prototype.findExternalZone=function(i){return this.dropTargets.filter(function(s){return s.external}).find(function(s){return s.getContainer()===i.getContainer()})||null},r.prototype.getHorizontalDirection=function(i){var o=this.eventLastTime&&this.eventLastTime.clientX,s=i.clientX;return o===s?null:o>s?x_.Left:x_.Right},r.prototype.getVerticalDirection=function(i){var o=this.eventLastTime&&this.eventLastTime.clientY,s=i.clientY;return o===s?null:o>s?j0.Up:j0.Down},r.prototype.createDropTargetEvent=function(i,o,s,a,l){var c=i.getContainer(),d=c.getBoundingClientRect(),f=this;return{event:o,x:o.clientX-d.left,y:o.clientY-d.top,vDirection:a,hDirection:s,dragSource:f.dragSource,fromNudge:l,dragItem:f.dragItem,api:f.gridApi,columnApi:f.columnApi,dropZoneTarget:c}},r.prototype.positionGhost=function(i){var o=this.eGhost;if(o){var a=o.getBoundingClientRect().height,l=j2()-2,c=T1()-2,d=i.pageY-a/2,f=i.pageX-10,v=this.gridOptionsWrapper.getDocument(),w=v.defaultView||window,x=w.pageYOffset||v.documentElement.scrollTop,I=w.pageXOffset||v.documentElement.scrollLeft;l>0&&f+o.clientWidth>l+I&&(f=l+I-o.clientWidth),f<0&&(f=0),c>0&&d+o.clientHeight>c+x&&(d=c+x-o.clientHeight),d<0&&(d=0),o.style.left=f+"px",o.style.top=d+"px"}},r.prototype.removeGhost=function(){this.eGhost&&this.eGhostParent&&this.eGhostParent.removeChild(this.eGhost),this.eGhost=null},r.prototype.createGhost=function(){this.eGhost=Su(e.GHOST_TEMPLATE);var i=this.environment.getTheme().theme;i&&this.eGhost.classList.add(i),this.eGhostIcon=this.eGhost.querySelector(".ag-dnd-ghost-icon"),this.setGhostIcon(null);var o=this.eGhost.querySelector(".ag-dnd-ghost-label"),s=this.dragSource.dragItemName;y0(s)&&(s=s()),o.innerHTML=Ju(s)||"",this.eGhost.style.height="25px",this.eGhost.style.top="20px",this.eGhost.style.left="20px";var a=this.gridOptionsWrapper.getDocument(),l=null;try{l=a.fullscreenElement}catch{}finally{l||(l=a.querySelector("body"))}this.eGhostParent=l,this.eGhostParent?this.eGhostParent.appendChild(this.eGhost):console.warn("AG Grid: could not find document body, it is needed for dragging columns")},r.prototype.setGhostIcon=function(i,o){void 0===o&&(o=!1),eu(this.eGhostIcon);var s=null;switch(i||(i=this.dragSource.defaultIconName||e.ICON_NOT_ALLOWED),i){case e.ICON_PINNED:s=this.ePinnedIcon;break;case e.ICON_MOVE:s=this.eMoveIcon;break;case e.ICON_LEFT:s=this.eLeftIcon;break;case e.ICON_RIGHT:s=this.eRightIcon;break;case e.ICON_GROUP:s=this.eGroupIcon;break;case e.ICON_AGGREGATE:s=this.eAggregateIcon;break;case e.ICON_PIVOT:s=this.ePivotIcon;break;case e.ICON_NOT_ALLOWED:s=this.eDropNotAllowedIcon;break;case e.ICON_HIDE:s=this.eHideIcon}this.eGhostIcon.classList.toggle("ag-shake-left-to-right",o),(s!==this.eHideIcon||!this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns())&&s&&this.eGhostIcon.appendChild(s)},r.ICON_PINNED="pinned",r.ICON_MOVE="move",r.ICON_LEFT="left",r.ICON_RIGHT="right",r.ICON_GROUP="group",r.ICON_AGGREGATE="aggregate",r.ICON_PIVOT="pivot",r.ICON_NOT_ALLOWED="notAllowed",r.ICON_HIDE="hide",r.GHOST_TEMPLATE='<div class="ag-dnd-ghost ag-unselectable">\n            <span class="ag-dnd-ghost-icon ag-shake-left-to-right"></span>\n            <div class="ag-dnd-ghost-label"></div>\n        </div>',F1([Xe("dragService")],r.prototype,"dragService",void 0),F1([Xe("environment")],r.prototype,"environment",void 0),F1([Xe("columnApi")],r.prototype,"columnApi",void 0),F1([Xe("gridApi")],r.prototype,"gridApi",void 0),F1([qi],r.prototype,"init",null),F1([Ru],r.prototype,"clearDragSourceParamsList",null),e=F1([Kr("dragAndDropService")],r)}(Zi),kC=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),iE=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},VI=function(t){function r(e,i,o,s,a,l){var c=t.call(this)||this;return c.cellValueFn=e,c.rowNode=i,c.column=o,c.customGui=s,c.dragStartPixels=a,c.suppressVisibilityChange=l,c.dragSource=null,c}return kC(r,t),r.prototype.isCustomGui=function(){return null!=this.customGui},r.prototype.postConstruct=function(){if(this.customGui?this.setDragElement(this.customGui,this.dragStartPixels):(this.setTemplate('<div class="ag-drag-handle ag-row-drag" aria-hidden="true"></div>'),this.getGui().appendChild(Oc("rowDrag",this.beans.gridOptionsWrapper,null)),this.addDragSource()),this.checkCompatibility(),!this.suppressVisibilityChange){var e=this.beans.gridOptionsWrapper.isRowDragManaged()?new mK(this,this.beans,this.rowNode,this.column):new fK(this,this.beans,this.rowNode,this.column);this.createManagedBean(e,this.beans.context)}},r.prototype.setDragElement=function(e,i){this.setTemplateFromElement(e),this.addDragSource(i)},r.prototype.getSelectedCount=function(){if(!this.beans.gridOptionsWrapper.isRowDragMultiRow())return 1;var i=this.beans.selectionService.getSelectedNodes();return-1!==i.indexOf(this.rowNode)?i.length:1},r.prototype.checkCompatibility=function(){var e=this.beans.gridOptionsWrapper.isRowDragManaged();this.beans.gridOptionsWrapper.isTreeData()&&e&&sa(function(){return console.warn("AG Grid: If using row drag with tree data, you cannot have rowDragManaged=true")},"RowDragComp.managedAndTreeData")},r.prototype.addDragSource=function(e){var i=this;void 0===e&&(e=4),this.dragSource&&this.removeDragSource();var o={rowNode:this.rowNode,columns:this.column?[this.column]:void 0,defaultTextValue:this.cellValueFn()},s=this.column&&this.column.getColDef().rowDragText,a=this.gridOptionsWrapper.getLocaleTextFunc();this.dragSource={type:Ed.RowDrag,eElement:this.getGui(),dragItemName:function(){var l=i.getSelectedCount();return s?s(o,l):1===l?i.cellValueFn():l+" "+a("rowDragRows","rows")},getDragItem:function(){return o},dragStartPixels:e,dragSourceDomDataKey:this.beans.gridOptionsWrapper.getDomDataKey()},this.beans.dragAndDropService.addDragSource(this.dragSource,!0)},r.prototype.removeDragSource=function(){this.dragSource&&this.beans.dragAndDropService.removeDragSource(this.dragSource),this.dragSource=null},iE([Xe("beans")],r.prototype,"beans",void 0),iE([qi],r.prototype,"postConstruct",null),iE([Ru],r.prototype,"removeDragSource",null),r}(Do),eB=function(t){function r(e,i,o){var s=t.call(this)||this;return s.parent=e,s.rowNode=i,s.column=o,s}return kC(r,t),r.prototype.setDisplayedOrVisible=function(e){if(e)this.parent.setDisplayed(!1);else{var i=!0,o=!1;this.column&&(i=this.column.isRowDrag(this.rowNode)||this.parent.isCustomGui(),o=y0(this.column.getColDef().rowDrag)),o?(this.parent.setDisplayed(!0),this.parent.setVisible(i)):(this.parent.setDisplayed(i),this.parent.setVisible(!0))}},r}(Zi),fK=function(t){function r(e,i,o,s){var a=t.call(this,e,o,s)||this;return a.beans=i,a}return kC(r,t),r.prototype.postConstruct=function(){this.addManagedListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.addManagedListener(this.rowNode,Ta.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Ta.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Ta.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,Et.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.workOutVisibility()},r.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},r.prototype.workOutVisibility=function(){var e=this.beans.gridOptionsWrapper.isSuppressRowDrag();this.setDisplayedOrVisible(e)},iE([qi],r.prototype,"postConstruct",null),r}(eB),mK=function(t){function r(e,i,o,s){var a=t.call(this,e,o,s)||this;return a.beans=i,a}return kC(r,t),r.prototype.postConstruct=function(){this.addManagedListener(this.beans.eventService,Et.EVENT_SORT_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,Et.EVENT_FILTER_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,Et.EVENT_COLUMN_ROW_GROUP_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,Et.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Ta.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Ta.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.workOutVisibility()},r.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},r.prototype.workOutVisibility=function(){var i=this.beans.ctrlsService.getGridBodyCtrl().getRowDragFeature(),o=i&&i.shouldPreventRowMove(),s=this.beans.gridOptionsWrapper.isSuppressRowDrag(),a=this.beans.dragAndDropService.hasExternalDropZones();this.setDisplayedOrVisible(o&&!a||s)},iE([qi],r.prototype,"postConstruct",null),r}(eB),tB=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),P1=function(){return P1=Object.assign||function(t){for(var r,e=1,i=arguments.length;e<i;e++)for(var o in r=arguments[e])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t},P1.apply(this,arguments)},E_=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},$P=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return tB(r,t),r.prototype.init=function(e,i,o,s,a,l,c){this.params=c,this.eGui=i,this.eCheckbox=o,this.eExpanded=s,this.eContracted=a,this.comp=e,this.compClass=l;var d=this.isTopLevelFooter(),f=this.isEmbeddedRowMismatch(),v=null==c.value,w=!1;if(this.gridOptionsWrapper.isGroupIncludeFooter()&&this.gridOptionsWrapper.isGroupHideOpenParents()){var x=c.node;x.footer&&(w=(c.colDef&&c.colDef.showRowGroup)!==(x.rowGroupColumn&&x.rowGroupColumn.getColId()))}this.cellIsBlank=!d&&(f||v||w),!this.cellIsBlank&&(this.setupShowingValueForOpenedParent(),this.findDisplayedGroupNode(),this.addFullWidthRowDraggerIfNeeded(),this.addExpandAndContract(),this.addCheckboxIfNeeded(),this.addValueElement(),this.setupIndent(),this.refreshAriaExpanded())},r.prototype.destroy=function(){t.prototype.destroy.call(this),this.expandListener=null},r.prototype.refreshAriaExpanded=function(){var e=this.params,i=e.node,o=e.eParentOfValue;if(this.expandListener&&(this.expandListener=this.expandListener()),this.isExpandable()){var s=function(){Yr(o,!!i.expanded)};this.expandListener=this.addManagedListener(i,Ta.EVENT_EXPANDED_CHANGED,s)||null,s()}else ys(o)},r.prototype.isTopLevelFooter=function(){if(!this.gridOptionsWrapper.isGroupIncludeTotalFooter()||null!=this.params.value||-1!=this.params.node.level)return!1;var e=this.params.colDef;if(null==e||!0===e.showRowGroup)return!0;var o=this.columnModel.getRowGroupColumns();return!o||0===o.length||o[0].getId()===e.showRowGroup},r.prototype.isEmbeddedRowMismatch=function(){if(!this.params.fullWidth||!this.gridOptionsWrapper.isEmbedFullWidthRows())return!1;var e=this.params.pinned===Nn.PINNED_LEFT,i=this.params.pinned===Nn.PINNED_RIGHT,o=!e&&!i;return this.gridOptionsWrapper.isEnableRtl()?this.columnModel.isPinningLeft()?!i:!o:this.columnModel.isPinningLeft()?!e:!o},r.prototype.findDisplayedGroupNode=function(){var e=this.params.column,i=this.params.node;if(this.showingValueForOpenedParent)for(var o=i.parent;null!=o;){if(o.rowGroupColumn&&e.isRowGroupDisplayed(o.rowGroupColumn.getId())){this.displayedGroupNode=o;break}o=o.parent}$o(this.displayedGroupNode)&&(this.displayedGroupNode=i)},r.prototype.setupShowingValueForOpenedParent=function(){var e=this.params.node,i=this.params.column;if(this.gridOptionsWrapper.isGroupHideOpenParents())if(e.groupData){if(null!=e.rowGroupColumn){var s=e.rowGroupColumn.getId();if(i.isRowGroupDisplayed(s))return void(this.showingValueForOpenedParent=!1)}var l=null!=e.groupData[i.getId()];this.showingValueForOpenedParent=l}else this.showingValueForOpenedParent=!1;else this.showingValueForOpenedParent=!1},r.prototype.addValueElement=function(){this.displayedGroupNode.footer?this.addFooterValue():(this.addGroupValue(),this.addChildCount())},r.prototype.addGroupValue=function(){var e=this.adjustParamsWithDetailsFromRelatedColumn(),i=this.getInnerCompDetails(e);this.comp.setInnerRenderer(i,e.valueFormatted??e.value)},r.prototype.adjustParamsWithDetailsFromRelatedColumn=function(){var e=this.displayedGroupNode.rowGroupColumn,i=this.params.column;if(!e)return this.params;if(null!=i&&!i.isRowGroupDisplayed(e.getId()))return this.params;var a=this.params,l=this.params,f=this.valueFormatterService.formatValue(e,l.node,l.value);return P1(P1({},a),{valueFormatted:f})},r.prototype.addFooterValue=function(){var e=this.params.footerValueGetter,i="";if(e){var o=U(this.params);o.value=this.params.value,"function"==typeof e?i=e(o):"string"==typeof e?i=this.expressionService.evaluate(e,o):console.warn("AG Grid: footerValueGetter should be either a function or a string (expression)")}else i="Total "+(null!=this.params.value?this.params.value:"");var s=this.getInnerCompDetails(this.params);this.comp.setInnerRenderer(s,i)},r.prototype.getInnerCompDetails=function(e){var i=this;if(e.fullWidth)return this.userComponentFactory.getFullWidthGroupRowInnerCellRenderer(this.gridOptions.groupRowRendererParams,e);var o=this.userComponentFactory.getInnerRendererDetails(e,e),s=function(f){return f&&f.componentClass==i.compClass};if(o&&!s(o))return o;var a=this.displayedGroupNode.rowGroupColumn,l=a?a.getColDef():void 0;if(l){var c=this.userComponentFactory.getCellRendererDetails(l,e);if(c&&!s(c))return c;if(s(c)&&l.cellRendererParams&&l.cellRendererParams.innerRenderer)return this.userComponentFactory.getInnerRendererDetails(l.cellRendererParams,e)}},r.prototype.addChildCount=function(){this.params.suppressCount||(this.addManagedListener(this.displayedGroupNode,Ta.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.updateChildCount.bind(this)),this.updateChildCount())},r.prototype.updateChildCount=function(){var e=this.displayedGroupNode.allChildrenCount,i=this.isShowRowGroupForThisRow();this.comp.setChildCount(i&&null!=e&&e>=0?"("+e+")":"")},r.prototype.isShowRowGroupForThisRow=function(){if(this.gridOptionsWrapper.isTreeData())return!0;var e=this.displayedGroupNode.rowGroupColumn;if(!e)return!1;var i=this.params.column;return null==i||i.isRowGroupDisplayed(e.getId())},r.prototype.addExpandAndContract=function(){var e=this.params,i=Oc("groupExpanded",this.gridOptionsWrapper,null),o=Oc("groupContracted",this.gridOptionsWrapper,null);i&&this.eExpanded.appendChild(i),o&&this.eContracted.appendChild(o);var s=e.eGridCell;!this.gridOptionsWrapper.isEnableGroupEdit()&&this.isExpandable()&&!e.suppressDoubleClickExpand&&this.addManagedListener(s,"dblclick",this.onCellDblClicked.bind(this)),this.addManagedListener(this.eExpanded,"click",this.onExpandClicked.bind(this)),this.addManagedListener(this.eContracted,"click",this.onExpandClicked.bind(this)),this.addManagedListener(s,"keydown",this.onKeyDown.bind(this)),this.addManagedListener(e.node,Ta.EVENT_EXPANDED_CHANGED,this.showExpandAndContractIcons.bind(this)),this.showExpandAndContractIcons();var a=this.onRowNodeIsExpandableChanged.bind(this);this.addManagedListener(this.displayedGroupNode,Ta.EVENT_ALL_CHILDREN_COUNT_CHANGED,a),this.addManagedListener(this.displayedGroupNode,Ta.EVENT_MASTER_CHANGED,a),this.addManagedListener(this.displayedGroupNode,Ta.EVENT_GROUP_CHANGED,a),this.addManagedListener(this.displayedGroupNode,Ta.EVENT_HAS_CHILDREN_CHANGED,a)},r.prototype.onExpandClicked=function(e){Jl(e)||(Wl(e),this.onExpandOrContract(e))},r.prototype.onExpandOrContract=function(e){var i=this.displayedGroupNode,o=!i.expanded;!o&&i.sticky&&this.scrollToStickyNode(i),i.setExpanded(o,e)},r.prototype.scrollToStickyNode=function(e){this.ctrlsService.getGridBodyCtrl().getScrollFeature().setVerticalScrollPosition(e.rowTop-e.stickyRowTop)},r.prototype.isExpandable=function(){if(this.showingValueForOpenedParent)return!0;var e=this.displayedGroupNode,i=this.columnModel.isPivotMode()&&e.leafGroup;if(!e.isExpandable()||e.footer||i)return!1;var s=this.params.column;return null==s||"string"!=typeof s.getColDef().showRowGroup||this.isShowRowGroupForThisRow()},r.prototype.showExpandAndContractIcons=function(){var e=this,o=e.displayedGroupNode,s=e.columnModel,a=e.params.node,l=this.isExpandable();if(l){var c=!!this.showingValueForOpenedParent||a.expanded;this.comp.setExpandedDisplayed(c),this.comp.setContractedDisplayed(!c)}else this.comp.setExpandedDisplayed(!1),this.comp.setContractedDisplayed(!1);var d=s.isPivotMode(),f=d&&o.leafGroup,v=l&&!f,w=a.footer&&-1===a.level;this.comp.addOrRemoveCssClass("ag-cell-expandable",v),this.comp.addOrRemoveCssClass("ag-row-group",v),d?this.comp.addOrRemoveCssClass("ag-pivot-leaf-group",f):w||this.comp.addOrRemoveCssClass("ag-row-group-leaf-indent",!v)},r.prototype.onRowNodeIsExpandableChanged=function(){this.showExpandAndContractIcons(),this.setIndent(),this.refreshAriaExpanded()},r.prototype.setupIndent=function(){this.params.suppressPadding||(this.addManagedListener(this.params.node,Ta.EVENT_UI_LEVEL_CHANGED,this.setIndent.bind(this)),this.setIndent())},r.prototype.setIndent=function(){if(!this.gridOptionsWrapper.isGroupHideOpenParents()){var e=this.params,i=e.node,o=!!e.colDef,s=this.gridOptionsWrapper.isTreeData(),l=!o||s||!0===e.colDef.showRowGroup?i.uiLevel:0;e.padding>=0&&sa(function(){return console.warn("AG Grid: cellRendererParams.padding no longer works, it was deprecated in since v14.2 and removed in v26, configuring padding for groupCellRenderer should be done with Sass variables and themes. Please see the AG Grid documentation page for Themes, in particular the property $row-group-indent-size.")},"groupCellRenderer->doDeprecatedWay"),this.indentClass&&this.comp.addOrRemoveCssClass(this.indentClass,!1),this.indentClass="ag-row-group-indent-"+l,this.comp.addOrRemoveCssClass(this.indentClass,!0)}},r.prototype.addFullWidthRowDraggerIfNeeded=function(){var e=this;if(this.params.fullWidth&&this.params.rowDrag){var i=new VI(function(){return e.params.value},this.params.node);this.createManagedBean(i,this.context),this.eGui.insertAdjacentElement("afterbegin",i.getGui())}},r.prototype.isUserWantsSelected=function(){var e=this.params.checkbox;return"function"==typeof e?e(this.params):!0===e},r.prototype.addCheckboxIfNeeded=function(){var e=this,i=this.displayedGroupNode,o=this.isUserWantsSelected()&&!i.footer&&!i.rowPinned&&!i.detail;if(o){var s=new UP;this.getContext().createBean(s),s.init({rowNode:i,column:this.params.column}),this.eCheckbox.appendChild(s.getGui()),this.addDestroyFunc(function(){return e.getContext().destroyBean(s)})}this.comp.setCheckboxVisible(o)},r.prototype.onKeyDown=function(e){e.key!==gi.ENTER||this.params.suppressEnterExpand||this.params.column&&this.params.column.isCellEditable(this.params.node)||this.onExpandOrContract(e)},r.prototype.onCellDblClicked=function(e){Jl(e)||sp(this.eExpanded,e)||sp(this.eContracted,e)||this.onExpandOrContract(e)},E_([Xe("expressionService")],r.prototype,"expressionService",void 0),E_([Xe("valueFormatterService")],r.prototype,"valueFormatterService",void 0),E_([Xe("columnModel")],r.prototype,"columnModel",void 0),E_([Xe("userComponentFactory")],r.prototype,"userComponentFactory",void 0),E_([Xe("gridOptions")],r.prototype,"gridOptions",void 0),E_([Xe("ctrlsService")],r.prototype,"ctrlsService",void 0),r}(Zi),YP=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),IC=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},jI=function(t){function r(){return t.call(this,r.TEMPLATE)||this}return YP(r,t),r.prototype.init=function(e){var i=this,o={setInnerRenderer:function(c,d){return i.setRenderDetails(c,d)},setChildCount:function(c){return i.eChildCount.innerHTML=c},addOrRemoveCssClass:function(c,d){return i.addOrRemoveCssClass(c,d)},setContractedDisplayed:function(c){return Pl(i.eContracted,c)},setExpandedDisplayed:function(c){return Pl(i.eExpanded,c)},setCheckboxVisible:function(c){return i.eCheckbox.classList.toggle("ag-invisible",!c)}},s=this.createManagedBean(new $P),a=!e.colDef,l=this.getGui();s.init(o,l,this.eCheckbox,this.eExpanded,this.eContracted,this.constructor,e),a&&Qn(l,"gridcell")},r.prototype.setRenderDetails=function(e,i){var o=this;if(e){var s=e.newAgStackInstance();if(!s)return;s.then(function(a){if(a){var l=function(){return o.context.destroyBean(a)};o.isAlive()?(o.eValue.appendChild(a.getGui()),o.addDestroyFunc(l)):l()}})}else this.eValue.innerText=i},r.prototype.destroy=function(){this.getContext().destroyBean(this.innerCellRenderer),t.prototype.destroy.call(this)},r.prototype.refresh=function(){return!1},r.TEMPLATE='<span class="ag-cell-wrapper">\n            <span class="ag-group-expanded" ref="eExpanded"></span>\n            <span class="ag-group-contracted" ref="eContracted"></span>\n            <span class="ag-group-checkbox ag-invisible" ref="eCheckbox"></span>\n            <span class="ag-group-value" ref="eValue"></span>\n            <span class="ag-group-child-count" ref="eChildCount"></span>\n        </span>',IC([Ti("eExpanded")],r.prototype,"eExpanded",void 0),IC([Ti("eContracted")],r.prototype,"eContracted",void 0),IC([Ti("eCheckbox")],r.prototype,"eCheckbox",void 0),IC([Ti("eValue")],r.prototype,"eValue",void 0),IC([Ti("eChildCount")],r.prototype,"eChildCount",void 0),r}(Do),WP=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),HI=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},AC=function(t){function r(){return t.call(this,r.TEMPLATE)||this}return WP(r,t),r.prototype.init=function(e){e.node.failedLoad?this.setupFailed():this.setupLoading()},r.prototype.setupFailed=function(){this.eLoadingText.innerText="ERR"},r.prototype.setupLoading=function(){var e=Oc("groupLoading",this.gridOptionsWrapper,null);e&&this.eLoadingIcon.appendChild(e);var i=this.gridOptionsWrapper.getLocaleTextFunc();this.eLoadingText.innerText=i("loadingOoo","Loading")},r.prototype.refresh=function(e){return!1},r.prototype.destroy=function(){t.prototype.destroy.call(this)},r.TEMPLATE='<div class="ag-loading">\n            <span class="ag-loading-icon" ref="eLoadingIcon"></span>\n            <span class="ag-loading-text" ref="eLoadingText"></span>\n        </div>',HI([Ti("eLoadingIcon")],r.prototype,"eLoadingIcon",void 0),HI([Ti("eLoadingText")],r.prototype,"eLoadingText",void 0),r}(Do),Vf=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),zP=function(t){function r(){return t.call(this)||this}return Vf(r,t),r.prototype.destroy=function(){t.prototype.destroy.call(this)},r.prototype.init=function(e){var i=this.gridOptionsWrapper.getOverlayLoadingTemplate()?this.gridOptionsWrapper.getOverlayLoadingTemplate():r.DEFAULT_LOADING_OVERLAY_TEMPLATE,o=this.gridOptionsWrapper.getLocaleTextFunc(),s=i.replace("[LOADING...]",o("loadingOoo","Loading..."));this.setTemplate(s)},r.DEFAULT_LOADING_OVERLAY_TEMPLATE='<span class="ag-overlay-loading-center">[LOADING...]</span>',r}(Do),gK=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),nB=function(t){function r(){return t.call(this)||this}return gK(r,t),r.prototype.destroy=function(){t.prototype.destroy.call(this)},r.prototype.init=function(e){var i=this.gridOptionsWrapper.getOverlayNoRowsTemplate()?this.gridOptionsWrapper.getOverlayNoRowsTemplate():r.DEFAULT_NO_ROWS_TEMPLATE,o=this.gridOptionsWrapper.getLocaleTextFunc(),s=i.replace("[NO_ROWS_TO_SHOW]",o("noRowsToShow","No Rows To Show"));this.setTemplate(s)},r.DEFAULT_NO_ROWS_TEMPLATE='<span class="ag-overlay-no-rows-center">[NO_ROWS_TO_SHOW]</span>',r}(Do),vK=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),_K=function(t){function r(){return t.call(this,'<div class="ag-tooltip"></div>')||this}return vK(r,t),r.prototype.init=function(e){var i=e.value;this.getGui().innerHTML=Ju(i)},r}(DC),qP=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),qT=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},yK=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.agGridDefaults={agDateInput:V6,agColumnHeader:dK,agColumnGroupHeader:H6,agSortIndicator:LP,agTextColumnFloatingFilter:uK,agNumberColumnFloatingFilter:lK,agDateColumnFloatingFilter:N6,agReadOnlyFloatingFilter:Jg,agAnimateShowChangeCellRenderer:pK,agAnimateSlideCellRenderer:J6,agGroupCellRenderer:jI,agGroupRowRenderer:jI,agLoadingCellRenderer:AC,agCellEditor:WT,agTextCellEditor:WT,agSelectCellEditor:tE,agPopupTextCellEditor:q6,agPopupSelectCellEditor:O1,agLargeTextCellEditor:GP,agTextColumnFilter:eg,agNumberColumnFilter:OP,agDateColumnFilter:MP,agLoadingOverlay:zP,agNoRowsOverlay:nB,agTooltipComponent:_K},e.agDeprecatedNames={set:{newComponentName:"agSetColumnFilter",propertyHolder:"filter"},text:{newComponentName:"agTextColumnFilter",propertyHolder:"filter"},number:{newComponentName:"agNumberColumnFilter",propertyHolder:"filter"},date:{newComponentName:"agDateColumnFilter",propertyHolder:"filter"},group:{newComponentName:"agGroupCellRenderer",propertyHolder:"cellRenderer"},animateShowChange:{newComponentName:"agAnimateShowChangeCellRenderer",propertyHolder:"cellRenderer"},animateSlide:{newComponentName:"agAnimateSlideCellRenderer",propertyHolder:"cellRenderer"},select:{newComponentName:"agSelectCellEditor",propertyHolder:"cellEditor"},largeText:{newComponentName:"agLargeTextCellEditor",propertyHolder:"cellEditor"},popupSelect:{newComponentName:"agPopupSelectCellEditor",propertyHolder:"cellEditor"},popupText:{newComponentName:"agPopupTextCellEditor",propertyHolder:"cellEditor"},richSelect:{newComponentName:"agRichSelectCellEditor",propertyHolder:"cellEditor"},headerComponent:{newComponentName:"agColumnHeader",propertyHolder:"headerComponent"}},e.jsComps={},e.fwComps={},e}return qP(r,t),r.prototype.init=function(){var e=this;null!=this.gridOptions.components&&Vo(this.gridOptions.components,function(i,o){return e.registerJsComponent(i,o)}),null!=this.gridOptions.frameworkComponents&&Vo(this.gridOptions.frameworkComponents,function(i,o){return e.registerFwComponent(i,o)})},r.prototype.registerDefaultComponent=function(e,i){var o=this.translateIfDeprecated(e);this.agGridDefaults[o]?console.error("Trying to overwrite a default component. You should call registerComponent"):this.agGridDefaults[o]=i},r.prototype.registerJsComponent=function(e,i){var o=this.translateIfDeprecated(e);this.fwComps[o]?console.error("Trying to register a component that you have already registered for frameworks: "+o):this.jsComps[o]=i},r.prototype.registerFwComponent=function(e,i){sa(function(){return console.warn("AG Grid: As of v27, registering components via grid property frameworkComponents is deprecated. Instead register both JavaScript AND Framework Components via the components property.")},"UserComponentRegistry.frameworkComponentsDeprecated");var s=this.translateIfDeprecated(e);this.fwComps[s]=i},r.prototype.retrieve=function(e){var i=this.translateIfDeprecated(e),o=function(f,v){return{componentFromFramework:v,component:f}},s=this.getFrameworkOverrides().frameworkComponent(i);if(null!=s)return o(s,!0);var a=this.fwComps[i];if(a)return o(a,!0);var l=this.jsComps[i];if(l)return o(l,this.getFrameworkOverrides().isFrameworkComponent(l));var d=this.agGridDefaults[i];return d?o(d,!1):(Object.keys(this.agGridDefaults).indexOf(i)<0&&console.warn("AG Grid: Looking for component ["+i+"] but it wasn't found."),null)},r.prototype.translateIfDeprecated=function(e){var i=this.agDeprecatedNames[e];return null!=i?(sa(function(){console.warn("ag-grid. Since v15.0 component names have been renamed to be namespaced. You should rename "+i.propertyHolder+":"+e+" to "+i.propertyHolder+":"+i.newComponentName)},"DEPRECATE_COMPONENT_"+e),i.newComponentName):e},qT([Xe("gridOptions")],r.prototype,"gridOptions",void 0),qT([Xe("agComponentUtils")],r.prototype,"agComponentUtils",void 0),qT([qi],r.prototype,"init",null),qT([Kr("userComponentRegistry")],r)}(Zi),H0={propertyName:"dateComponent",cellRenderer:!1},rE={propertyName:"headerComponent",cellRenderer:!1},UI={propertyName:"headerGroupComponent",cellRenderer:!1},oE={propertyName:"cellRenderer",cellRenderer:!0},iB={propertyName:"cellEditor",cellRenderer:!1},L1={propertyName:"innerRenderer",cellRenderer:!0},$I={propertyName:"loadingOverlayComponent",cellRenderer:!1},XP={propertyName:"noRowsOverlayComponent",cellRenderer:!1},YI={propertyName:"tooltipComponent",cellRenderer:!1},MC={propertyName:"filter",cellRenderer:!1},KP={propertyName:"floatingFilterComponent",cellRenderer:!1},rB={propertyName:"toolPanel",cellRenderer:!1},QP={propertyName:"statusPanel",cellRenderer:!1},oB={propertyName:"fullWidthCellRenderer",cellRenderer:!0},sB={propertyName:"loadingCellRenderer",cellRenderer:!0},JP={propertyName:"groupRowRenderer",cellRenderer:!0},WI={propertyName:"detailCellRenderer",cellRenderer:!0},XT=function(){function t(){}return t.getFloatingFilterType=function(r){return this.filterToFloatingFilterMapping[r]},t.filterToFloatingFilterMapping={set:"agSetColumnFloatingFilter",agSetColumnFilter:"agSetColumnFloatingFilter",multi:"agMultiColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",number:"agNumberColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",date:"agDateColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",text:"agTextColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"},t}(),KT=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),U0=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},aB=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return KT(r,t),r.prototype.getHeaderCompDetails=function(e,i){return this.getCompDetails(e,rE,"agColumnHeader",i)},r.prototype.getHeaderGroupCompDetails=function(e){var i=e.columnGroup.getColGroupDef();return this.getCompDetails(i,UI,"agColumnGroupHeader",e)},r.prototype.getFullWidthCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,oB,null,e,!0)},r.prototype.getFullWidthLoadingCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,sB,"agLoadingCellRenderer",e,!0)},r.prototype.getFullWidthGroupCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,JP,"agGroupRowRenderer",e,!0)},r.prototype.getFullWidthDetailCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,WI,"agDetailCellRenderer",e,!0)},r.prototype.getInnerRendererDetails=function(e,i){return this.getCompDetails(e,L1,null,i)},r.prototype.getFullWidthGroupRowInnerCellRenderer=function(e,i){return this.getCompDetails(e,L1,null,i)},r.prototype.getCellRendererDetails=function(e,i){return this.getCompDetails(e,oE,null,i)},r.prototype.getCellEditorDetails=function(e,i){return this.getCompDetails(e,iB,"agCellEditor",i,!0)},r.prototype.getFilterDetails=function(e,i,o){return this.getCompDetails(e,MC,o,i,!0)},r.prototype.getDateCompDetails=function(e){return this.getCompDetails(this.gridOptions,H0,"agDateInput",e,!0)},r.prototype.getLoadingOverlayCompDetails=function(e){return this.getCompDetails(this.gridOptions,$I,"agLoadingOverlay",e,!0)},r.prototype.getNoRowsOverlayCompDetails=function(e){return this.getCompDetails(this.gridOptions,XP,"agNoRowsOverlay",e,!0)},r.prototype.getTooltipCompDetails=function(e){return this.getCompDetails(e.colDef,YI,"agTooltipComponent",e,!0)},r.prototype.getSetFilterCellRendererDetails=function(e,i){return this.getCompDetails(e,oE,null,i)},r.prototype.getFloatingFilterCompDetails=function(e,i,o){return this.getCompDetails(e,KP,o,i)},r.prototype.getToolPanelCompDetails=function(e,i){return this.getCompDetails(e,rB,null,i,!0)},r.prototype.getStatusPanelCompDetails=function(e,i){return this.getCompDetails(e,QP,null,i,!0)},r.prototype.getCompDetails=function(e,i,o,s,a){var l=this;void 0===a&&(a=!1);var c=i.propertyName,d=i.cellRenderer,f=this.getCompKeys(e,i,s),v=f.compName,w=f.jsComp,x=f.fwComp,I=f.paramsFromSelector,M=f.popupFromSelector,F=f.popupPositionFromSelector,re=function(tt){var nt=l.userComponentRegistry.retrieve(tt);nt&&(w=nt.componentFromFramework?void 0:nt.component,x=nt.componentFromFramework?nt.component:void 0)};if(null!=v&&re(v),null==w&&null==x&&null!=o&&re(o),w&&d&&!this.agComponentUtils.doesImplementIComponent(w)&&(w=this.agComponentUtils.adaptFunction(c,w)),w||x){var pe=this.mergeParamsWithApplicationProvidedParams(e,i,s,I),we=null==w,je=w||x;return{componentFromFramework:we,componentClass:je,params:pe,type:i,popupFromSelector:M,popupPositionFromSelector:F,newAgStackInstance:function(){return l.newAgStackInstance(je,we,pe,i)}}}a&&console.error("Could not find component "+v+", did you forget to configure this component?")},r.prototype.getCompKeys=function(e,i,o){var l,c,d,f,v,w,s=this,a=i.propertyName;if(e){var x=e,I=x[a+"Selector"],M=I?I(o):null,F=function(pe,we){var je=function(){var nt="AG Grid: As of v27, the property "+a+"Framework is deprecated. The property "+a+" can now be used for JavaScript AND Framework Components.";sa(function(){return console.warn(nt)},"UserComponentFactory."+a+"FrameworkDeprecated")};"string"==typeof pe?l=pe:"string"==typeof we?(je(),l=we):null!=pe&&!0!==pe?s.getFrameworkOverrides().isFrameworkComponent(pe)?d=pe:c=pe:null!=we&&(je(),d=we)};if(M){if(null!=M.frameworkComponent){var re="AG Grid: As of v27, the return for "+a+"Selector has attributes [component, params] only. The attribute frameworkComponent is deprecated. You should now return back Framework Components using the 'component' attribute and the grid works out if it's a framework component or not.";sa(function(){return console.warn(re)},"UserComponentFactory."+a+"FrameworkSelectorDeprecated"),F(M.frameworkComponent,void 0)}else F(M.component,void 0);f=M.params,v=M.popup,w=M.popupPosition}else F(x[a],x[a+"Framework"])}return{compName:l,jsComp:c,fwComp:d,paramsFromSelector:f,popupFromSelector:v,popupPositionFromSelector:w}},r.prototype.newAgStackInstance=function(e,i,o,s){var c;if(i){var d=this.componentMetadataProvider.retrieve(s.propertyName);c=this.frameworkComponentWrapper.wrap(e,d.mandatoryMethodList,d.optionalMethodList,s)}else c=new e;var f=this.initComponent(c,o);return null==f?Zu.resolve(c):f.then(function(){return c})},r.prototype.mergeParamsWithApplicationProvidedParams=function(e,i,o,s){void 0===s&&(s=null);var a={context:this.gridOptionsWrapper.getContext(),columnApi:this.gridOptionsWrapper.getColumnApi(),api:this.gridOptionsWrapper.getApi()};Es(a,o);var c=e&&e[i.propertyName+"Params"];return"function"==typeof c?Es(a,c(o)):"object"==typeof c&&Es(a,c),Es(a,s),a},r.prototype.initComponent=function(e,i){if(this.context.createBean(e),null!=e.init)return e.init(i)},r.prototype.getDefaultFloatingFilterType=function(e){if(null==e)return null;var i=null,o=this.getCompKeys(e,MC),s=o.compName,a=o.jsComp,l=o.fwComp;return s?i=XT.getFloatingFilterType(s):null==a&&null==l&&!0===e.filter&&(i=qo.isRegistered(mo.SetFilterModule)?"agSetColumnFloatingFilter":"agTextColumnFloatingFilter"),i},U0([Xe("gridOptions")],r.prototype,"gridOptions",void 0),U0([Xe("agComponentUtils")],r.prototype,"agComponentUtils",void 0),U0([Xe("componentMetadataProvider")],r.prototype,"componentMetadataProvider",void 0),U0([Xe("userComponentRegistry")],r.prototype,"userComponentRegistry",void 0),U0([_a("frameworkComponentWrapper")],r.prototype,"frameworkComponentWrapper",void 0),U0([Kr("userComponentFactory")],r)}(Zi),D_=function(t){return t[t.SINGLE_SHEET=0]="SINGLE_SHEET",t[t.MULTI_SHEET=1]="MULTI_SHEET",t}(D_||{}),ZP=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),jf=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},eL=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.dragEndFunctions=[],e.dragSources=[],e}return ZP(r,t),r.prototype.init=function(){this.logger=this.loggerFactory.create("DragService")},r.prototype.removeAllListeners=function(){this.dragSources.forEach(this.removeListener.bind(this)),this.dragSources.length=0},r.prototype.removeListener=function(e){var i=e.dragSource.eElement;i.removeEventListener("mousedown",e.mouseDownListener),e.touchEnabled&&i.removeEventListener("touchstart",e.touchStartListener,{passive:!0})},r.prototype.removeDragSource=function(e){var i=this.dragSources.find(function(o){return o.dragSource===e});i&&(this.removeListener(i),Yl(this.dragSources,i))},r.prototype.isDragging=function(){return this.dragging},r.prototype.addDragSource=function(e,i){var o=this;void 0===i&&(i=!1);var s=this.onMouseDown.bind(this,e);e.eElement.addEventListener("mousedown",s);var a=null,l=this.gridOptionsWrapper.isSuppressTouch();i&&!l&&e.eElement.addEventListener("touchstart",a=function(c){c.cancelable&&c.preventDefault(),o.onTouchStart(e,c)},{passive:!0}),this.dragSources.push({dragSource:e,mouseDownListener:s,touchStartListener:a,touchEnabled:i})},r.prototype.onTouchStart=function(e,i){var o=this;this.currentDragParams=e,this.dragging=!1;var s=i.touches[0];this.touchLastTime=s,this.touchStart=s;var l=function(v){return o.onTouchUp(v,e.eElement)},d=e.eElement,f=[{target:document,type:"touchmove",listener:function(v){v.cancelable&&v.preventDefault()},options:{passive:!1}},{target:d,type:"touchmove",listener:function(v){return o.onTouchMove(v,e.eElement)},options:{passive:!0}},{target:d,type:"touchend",listener:l,options:{passive:!0}},{target:d,type:"touchcancel",listener:l,options:{passive:!0}}];this.addTemporaryEvents(f),0===e.dragStartPixels&&this.onCommonMove(s,this.touchStart,e.eElement)},r.prototype.onMouseDown=function(e,i){var o=this,s=i;if(!(e.skipMouseEvent&&e.skipMouseEvent(i)||s._alreadyProcessedByDragService||(s._alreadyProcessedByDragService=!0,0!==i.button))){this.currentDragParams=e,this.dragging=!1,this.mouseStartEvent=i;var a=this.gridOptionsWrapper.getDocument();this.addTemporaryEvents([{target:a,type:"mousemove",listener:function(w){return o.onMouseMove(w,e.eElement)}},{target:a,type:"mouseup",listener:function(w){return o.onMouseUp(w,e.eElement)}},{target:a,type:"contextmenu",listener:function(w){return w.preventDefault()}}]),0===e.dragStartPixels&&this.onMouseMove(i,e.eElement)}},r.prototype.addTemporaryEvents=function(e){e.forEach(function(i){i.target.addEventListener(i.type,i.listener,i.options)}),this.dragEndFunctions.push(function(){e.forEach(function(i){i.target.removeEventListener(i.type,i.listener,i.options)})})},r.prototype.isEventNearStartEvent=function(e,i){var o=this.currentDragParams.dragStartPixels;return jT(e,i,rr(o)?o:4)},r.prototype.getFirstActiveTouch=function(e){for(var i=0;i<e.length;i++)if(e[i].identifier===this.touchStart.identifier)return e[i];return null},r.prototype.onCommonMove=function(e,i,o){if(!this.dragging){if(!this.dragging&&this.isEventNearStartEvent(e,i))return;this.dragging=!0,this.eventService.dispatchEvent({type:Et.EVENT_DRAG_STARTED,api:this.gridApi,columnApi:this.columnApi,target:o}),this.currentDragParams.onDragStart(i),this.currentDragParams.onDragging(i)}this.currentDragParams.onDragging(e)},r.prototype.onTouchMove=function(e,i){var o=this.getFirstActiveTouch(e.touches);o&&this.onCommonMove(o,this.touchStart,i)},r.prototype.onMouseMove=function(e,i){jg()&&"mousemove"===e.type&&e.cancelable&&this.mouseEventService.isEventFromThisGrid(e)&&!this.isOverFormFieldElement(e)&&e.preventDefault(),this.onCommonMove(e,this.mouseStartEvent,i)},r.prototype.isOverFormFieldElement=function(e){var i,o;return!(null===(o=null===(i=e.target)||void 0===i?void 0:i.tagName.toLocaleLowerCase())||void 0===o||!o.match("^a$|textarea|input|select|button"))},r.prototype.onTouchUp=function(e,i){var o=this.getFirstActiveTouch(e.changedTouches);o||(o=this.touchLastTime),this.onUpCommon(o,i)},r.prototype.onMouseUp=function(e,i){this.onUpCommon(e,i)},r.prototype.onUpCommon=function(e,i){this.dragging&&(this.dragging=!1,this.currentDragParams.onDragStop(e),this.eventService.dispatchEvent({type:Et.EVENT_DRAG_STOPPED,api:this.gridApi,columnApi:this.columnApi,target:i})),this.mouseStartEvent=null,this.touchStart=null,this.touchLastTime=null,this.currentDragParams=null,this.dragEndFunctions.forEach(function(s){return s()}),this.dragEndFunctions.length=0},jf([Xe("loggerFactory")],r.prototype,"loggerFactory",void 0),jf([Xe("columnApi")],r.prototype,"columnApi",void 0),jf([Xe("gridApi")],r.prototype,"gridApi",void 0),jf([Xe("mouseEventService")],r.prototype,"mouseEventService",void 0),jf([qi],r.prototype,"init",null),jf([Ru],r.prototype,"removeAllListeners",null),jf([Kr("dragService")],r)}(Zi),tL=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),RC=function(){return RC=Object.assign||function(t){for(var r,e=1,i=arguments.length;e<i;e++)for(var o in r=arguments[e])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t},RC.apply(this,arguments)},ev=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},nL=function(t){function r(){var i=null!==t&&t.apply(this,arguments)||this;return i.allColumnFilters=new Map,i.activeAggregateFilters=[],i.activeColumnFilters=[],i.quickFilter=null,i.quickFilterParts=null,i.processingFilterChange=!1,i}var e;return tL(r,t),e=r,r.prototype.init=function(){var i=this;this.addManagedListener(this.eventService,Et.EVENT_GRID_COLUMNS_CHANGED,function(){return i.onColumnsChanged()}),this.addManagedListener(this.eventService,Et.EVENT_COLUMN_VALUE_CHANGED,function(){return i.refreshFiltersForAggregations()}),this.addManagedListener(this.eventService,Et.EVENT_COLUMN_PIVOT_CHANGED,function(){return i.refreshFiltersForAggregations()}),this.addManagedListener(this.eventService,Et.EVENT_COLUMN_PIVOT_MODE_CHANGED,function(){return i.refreshFiltersForAggregations()}),this.quickFilter=this.parseQuickFilter(this.gridOptionsWrapper.getQuickFilterText()),this.setQuickFilterParts(),this.allowShowChangeAfterFilter=this.gridOptionsWrapper.isAllowShowChangeAfterFilter(),this.externalFilterPresent=this.gridOptionsWrapper.isExternalFilterPresent()},r.prototype.setQuickFilterParts=function(){this.quickFilterParts=this.quickFilter?this.quickFilter.split(" "):null},r.prototype.setFilterModel=function(i){var o=this,s=[],a=this.getFilterModel();if(i){var l=yC(Object.keys(i));this.allColumnFilters.forEach(function(c,d){s.push(o.setModelOnFilterWrapper(c.filterPromise,i[d])),l.delete(d)}),l.forEach(function(c){var d=o.columnModel.getPrimaryColumn(c)||o.columnModel.getGridColumn(c);if(d)if(d.isFilterAllowed()){var f=o.getOrCreateFilterWrapper(d,"NO_UI");f?s.push(o.setModelOnFilterWrapper(f.filterPromise,i[c])):console.warn("AG-Grid: setFilterModel() - unable to fully apply model, unable to create filter for colId: "+c)}else console.warn("AG Grid: setFilterModel() - unable to fully apply model, filtering disabled for colId: "+c);else console.warn("AG Grid: setFilterModel() - no column found for colId: "+c)})}else this.allColumnFilters.forEach(function(c){s.push(o.setModelOnFilterWrapper(c.filterPromise,null))});Zu.all(s).then(function(){var c=o.getFilterModel(),d=[];o.allColumnFilters.forEach(function(f,v){ln.jsonEquals(a?a[v]:null,c?c[v]:null)||d.push(f.column)}),d.length>0&&o.onFilterChanged({columns:d})})},r.prototype.setModelOnFilterWrapper=function(i,o){return new Zu(function(s){i.then(function(a){"function"!=typeof a.setModel&&(console.warn("AG Grid: filter missing setModel method, which is needed for setFilterModel"),s()),(a.setModel(o)||Zu.resolve()).then(function(){return s()})})})},r.prototype.getFilterModel=function(){var i={};return this.allColumnFilters.forEach(function(o,s){var l=o.filterPromise.resolveNow(null,function(d){return d});if(null==l)return null;if("function"==typeof l.getModel){var c=l.getModel();rr(c)&&(i[s]=c)}else console.warn("AG Grid: filter API missing getModel method, which is needed for getFilterModel")}),i},r.prototype.isColumnFilterPresent=function(){return this.activeColumnFilters.length>0},r.prototype.isAggregateFilterPresent=function(){return!!this.activeAggregateFilters.length},r.prototype.isExternalFilterPresent=function(){return this.externalFilterPresent},r.prototype.doAggregateFiltersPass=function(i,o){return this.doColumnFiltersPass(i,o,!0)},r.prototype.updateActiveFilters=function(){var i=this;this.activeColumnFilters.length=0,this.activeAggregateFilters.length=0;var o=function(l){return!!l&&(l.isFilterActive?l.isFilterActive():(console.warn("AG Grid: Filter is missing isFilterActive() method"),!1))},s=!!this.gridOptionsWrapper.getGroupAggFiltering();this.allColumnFilters.forEach(function(l){if(l.filterPromise.resolveNow(!1,o)){var c=l.filterPromise.resolveNow(null,function(d){return d});!function(l){if(!l.isPrimary())return!0;var d=!i.columnModel.isPivotActive();return!(!l.isValueActive()||!d)&&(!!i.columnModel.isPivotMode()||s)}(l.column)?i.activeColumnFilters.push(c):i.activeAggregateFilters.push(c)}})},r.prototype.updateFilterFlagInColumns=function(i,o){this.allColumnFilters.forEach(function(s){var a=s.filterPromise.resolveNow(!1,function(l){return l.isFilterActive()});s.column.setFilterActive(a,i,o)})},r.prototype.isAnyFilterPresent=function(){return this.isQuickFilterPresent()||this.isColumnFilterPresent()||this.isAggregateFilterPresent()||this.isExternalFilterPresent()},r.prototype.doColumnFiltersPass=function(i,o,s){for(var c=s?this.activeAggregateFilters:this.activeColumnFilters,d=s?i.aggData:i.data,f=0;f<c.length;f++){var v=c[f];if(null!=v&&v!==o){if("function"!=typeof v.doesFilterPass)throw new Error("Filter is missing method doesFilterPass");if(!v.doesFilterPass({node:i,data:d}))return!1}}return!0},r.prototype.parseQuickFilter=function(i){return rr(i)?this.gridOptionsWrapper.isRowModelDefault()?i.toUpperCase():(console.warn("AG Grid - Quick filtering only works with the Client-Side Row Model"),null):null},r.prototype.setQuickFilter=function(i){if(null==i||"string"==typeof i){var o=this.parseQuickFilter(i);this.quickFilter!==o&&(this.quickFilter=o,this.setQuickFilterParts(),this.onFilterChanged())}else console.warn("AG Grid - setQuickFilter() only supports string inputs, received: "+typeof i)},r.prototype.refreshFiltersForAggregations=function(){this.gridOptionsWrapper.getGroupAggFiltering()&&this.onFilterChanged()},r.prototype.callOnFilterChangedOutsideRenderCycle=function(i){var o=this;void 0===i&&(i={});var s=function(){return o.onFilterChanged(i)};this.rowRenderer.isRefreshInProgress()?setTimeout(s,0):s()},r.prototype.onFilterChanged=function(i){void 0===i&&(i={});var o=i.filterInstance,s=i.additionalEventAttributes,a=i.columns;this.updateActiveFilters(),this.updateFilterFlagInColumns("filterChanged",s),this.externalFilterPresent=this.gridOptionsWrapper.isExternalFilterPresent(),this.allColumnFilters.forEach(function(c){c.filterPromise&&c.filterPromise.then(function(d){d&&d!==o&&d.onAnyFilterChanged&&d.onAnyFilterChanged()})});var l={type:Et.EVENT_FILTER_CHANGED,api:this.gridApi,columnApi:this.columnApi,columns:a||[]};s&&Es(l,s),this.processingFilterChange=!0,this.eventService.dispatchEvent(l),this.processingFilterChange=!1},r.prototype.isSuppressFlashingCellsBecauseFiltering=function(){return!this.allowShowChangeAfterFilter&&this.processingFilterChange},r.prototype.isQuickFilterPresent=function(){return null!==this.quickFilter},r.prototype.doesRowPassOtherFilters=function(i,o){return this.doesRowPassFilter({rowNode:o,filterInstanceToSkip:i})},r.prototype.doesRowPassQuickFilterNoCache=function(i,o){var s=this;return this.columnModel.getAllColumnsForQuickFilter().some(function(l){var c=s.getQuickFilterTextForColumn(l,i);return rr(c)&&c.indexOf(o)>=0})},r.prototype.doesRowPassQuickFilterCache=function(i,o){return i.quickFilterAggregateText||this.aggregateRowForQuickFilter(i),i.quickFilterAggregateText.indexOf(o)>=0},r.prototype.doesRowPassQuickFilter=function(i){var o=this,s=this.gridOptionsWrapper.isCacheQuickFilter();return this.quickFilterParts.every(function(a){return s?o.doesRowPassQuickFilterCache(i,a):o.doesRowPassQuickFilterNoCache(i,a)})},r.prototype.doesRowPassAggregateFilters=function(i){return!(this.isAggregateFilterPresent()&&!this.doAggregateFiltersPass(i.rowNode,i.filterInstanceToSkip))},r.prototype.doesRowPassFilter=function(i){return!(this.isQuickFilterPresent()&&!this.doesRowPassQuickFilter(i.rowNode)||this.isExternalFilterPresent()&&!this.gridOptionsWrapper.doesExternalFilterPass(i.rowNode)||this.isColumnFilterPresent()&&!this.doColumnFiltersPass(i.rowNode,i.filterInstanceToSkip))},r.prototype.getQuickFilterTextForColumn=function(i,o){var s=this.valueService.getValue(i,o,!0),a=i.getColDef();if(a.getQuickFilterText){var l={value:s,node:o,data:o.data,column:i,colDef:a,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};s=a.getQuickFilterText(l)}return rr(s)?s.toString().toUpperCase():null},r.prototype.aggregateRowForQuickFilter=function(i){var o=this,s=[];this.columnModel.getAllColumnsForQuickFilter().forEach(function(l){var c=o.getQuickFilterTextForColumn(l,i);rr(c)&&s.push(c)}),i.quickFilterAggregateText=s.join(e.QUICK_FILTER_SEPARATOR)},r.prototype.onNewRowsLoaded=function(i){this.allColumnFilters.forEach(function(o){o.filterPromise.then(function(s){s.onNewRowsLoaded&&s.onNewRowsLoaded()})}),this.updateFilterFlagInColumns(i),this.updateActiveFilters()},r.prototype.createValueGetter=function(i){var o=this;return function(s){return o.valueService.getValue(i,s.node,!0)}},r.prototype.getFilterComponent=function(i,o,s){var a;if(void 0===s&&(s=!0),s)return(null===(a=this.getOrCreateFilterWrapper(i,o))||void 0===a?void 0:a.filterPromise)||null;var l=this.cachedFilter(i);return l?l.filterPromise:null},r.prototype.isFilterActive=function(i){var o=this.cachedFilter(i);return!!o&&o.filterPromise.resolveNow(!1,function(s){return s.isFilterActive()})},r.prototype.getOrCreateFilterWrapper=function(i,o){if(!i.isFilterAllowed())return null;var s=this.cachedFilter(i);return s?"NO_UI"!==o&&this.putIntoGui(s,o):(s=this.createFilterWrapper(i,o),this.allColumnFilters.set(i.getColId(),s)),s},r.prototype.cachedFilter=function(i){return this.allColumnFilters.get(i.getColId())},r.prototype.createFilterInstance=function(i){var l,o=this,s=qo.isRegistered(mo.SetFilterModule)?"agSetColumnFilter":"agTextColumnFilter",a=i.getColDef(),c=RC(RC({},this.createFilterParams(i,a)),{filterModifiedCallback:function(){o.eventService.dispatchEvent({type:Et.EVENT_FILTER_MODIFIED,api:o.gridApi,columnApi:o.columnApi,column:i,filterInstance:l})},filterChangedCallback:function(v){o.callOnFilterChangedOutsideRenderCycle({filterInstance:l,additionalEventAttributes:v,columns:[i]})},doesRowPassOtherFilter:function(v){return o.doesRowPassOtherFilters(l,v)}}),d=this.userComponentFactory.getFilterDetails(a,c,s);if(!d)return null;var f=d.newAgStackInstance();return f&&f.then(function(v){return l=v}),f},r.prototype.createFilterParams=function(i,o){return{api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),column:i,colDef:U(o),rowModel:this.rowModel,filterChangedCallback:function(){},filterModifiedCallback:function(){},valueGetter:this.createValueGetter(i),context:this.gridOptionsWrapper.getContext(),doesRowPassOtherFilter:function(){return!0}}},r.prototype.createFilterWrapper=function(i,o){var s={column:i,filterPromise:null,compiledElement:null,guiPromise:Zu.resolve(null)};return s.filterPromise=this.createFilterInstance(i),s.filterPromise&&this.putIntoGui(s,o),s},r.prototype.putIntoGui=function(i,o){var s=this,a=document.createElement("div");a.className="ag-filter",i.guiPromise=new Zu(function(l){i.filterPromise.then(function(c){var d=c.getGui();rr(d)||console.warn("AG Grid: getGui method from filter returned "+d+", it should be a DOM element or an HTML template string."),"string"==typeof d&&(d=Su(d)),a.appendChild(d),l(a),s.eventService.dispatchEvent({type:Et.EVENT_FILTER_OPENED,column:i.column,source:o,eGui:a,api:s.gridApi,columnApi:s.columnApi})})})},r.prototype.onColumnsChanged=function(){var i=this,o=[];this.allColumnFilters.forEach(function(s,a){!(s.column.isPrimary()?i.columnModel.getPrimaryColumn(a):i.columnModel.getGridColumn(a))&&(o.push(s.column),i.disposeFilterWrapper(s,"filterDestroyed"))}),o.length>0&&this.onFilterChanged({columns:o})},r.prototype.destroyFilter=function(i,o){void 0===o&&(o="api");var s=this.allColumnFilters.get(i.getColId());s&&(this.disposeFilterWrapper(s,o),this.onFilterChanged({columns:[i]}))},r.prototype.disposeFilterWrapper=function(i,o){var s=this;i.filterPromise.then(function(a){(a.setModel(null)||Zu.resolve()).then(function(){s.getContext().destroyBean(a),i.column.setFilterActive(!1,o),s.allColumnFilters.delete(i.column.getColId())})})},r.prototype.destroy=function(){var i=this;t.prototype.destroy.call(this),this.allColumnFilters.forEach(function(o){return i.disposeFilterWrapper(o,"filterDestroyed")})},r.QUICK_FILTER_SEPARATOR="\n",ev([Xe("valueService")],r.prototype,"valueService",void 0),ev([Xe("columnModel")],r.prototype,"columnModel",void 0),ev([Xe("rowModel")],r.prototype,"rowModel",void 0),ev([Xe("columnApi")],r.prototype,"columnApi",void 0),ev([Xe("gridApi")],r.prototype,"gridApi",void 0),ev([Xe("userComponentFactory")],r.prototype,"userComponentFactory",void 0),ev([Xe("rowRenderer")],r.prototype,"rowRenderer",void 0),ev([qi],r.prototype,"init",null),ev([Ru],r.prototype,"destroy",null),e=ev([Kr("filterManager")],r)}(Zi),iL=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),sE=function(t){function r(e,i){var o=t.call(this,e)||this;return o.ctrl=i,o}return iL(r,t),r.prototype.getCtrl=function(){return this.ctrl},r}(Do),zI=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),QT=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},aE=function(t){function r(e){return t.call(this,r.TEMPLATE,e)||this}return zI(r,t),r.prototype.postConstruct=function(){var e=this,i=this.getGui();this.ctrl.setComp({addOrRemoveCssClass:function(s,a){return e.addOrRemoveCssClass(s,a)},addOrRemoveBodyCssClass:function(s,a){return e.eFloatingFilterBody.classList.toggle(s,a)},addOrRemoveButtonWrapperCssClass:function(s,a){return e.eButtonWrapper.classList.toggle(s,a)},setCompDetails:function(s){return e.setCompDetails(s)},getFloatingFilterComp:function(){return e.compPromise},setWidth:function(s){return i.style.width=s},setMenuIcon:function(s){return e.eButtonShowMainFilter.appendChild(s)}},i,this.eButtonShowMainFilter,this.eFloatingFilterBody)},r.prototype.setCompDetails=function(e){var i=this;this.compPromise=e.newAgStackInstance(),this.compPromise.then(function(o){return i.afterCompCreated(o)})},r.prototype.afterCompCreated=function(e){var i=this;e&&(this.addDestroyFunc(function(){return i.context.destroyBean(e)}),this.isAlive()&&(this.eFloatingFilterBody.appendChild(e.getGui()),e.afterGuiAttached&&e.afterGuiAttached()))},r.TEMPLATE='<div class="ag-header-cell ag-floating-filter" role="gridcell" tabindex="-1">\n            <div ref="eFloatingFilterBody" role="presentation"></div>\n            <div class="ag-floating-filter-button ag-hidden" ref="eButtonWrapper" role="presentation">\n                <button type="button" aria-label="Open Filter Menu" class="ag-floating-filter-button-button" ref="eButtonShowMainFilter" tabindex="-1"></button>\n            </div>\n        </div>',QT([Ti("eFloatingFilterBody")],r.prototype,"eFloatingFilterBody",void 0),QT([Ti("eButtonWrapper")],r.prototype,"eButtonWrapper",void 0),QT([Ti("eButtonShowMainFilter")],r.prototype,"eButtonShowMainFilter",void 0),QT([qi],r.prototype,"postConstruct",null),r}(sE),$0=function(){function t(){}return t.parse=function(r){if(!r)return null;if(!0===r)return{toolPanels:[t.DEFAULT_COLUMN_COMP,t.DEFAULT_FILTER_COMP],defaultToolPanel:"columns"};if("string"==typeof r)return t.parse([r]);if(Array.isArray(r)){var e=[];return r.forEach(function(o){var s=t.DEFAULT_BY_KEY[o];s?e.push(s):console.warn("AG Grid: the key "+o+" is not a valid key for specifying a tool panel, valid keys are: "+Object.keys(t.DEFAULT_BY_KEY).join(","))}),0===e.length?null:{toolPanels:e,defaultToolPanel:e[0].id}}return{toolPanels:t.parseComponents(r.toolPanels),defaultToolPanel:r.defaultToolPanel,hiddenByDefault:r.hiddenByDefault,position:r.position}},t.parseComponents=function(r){var e=[];return r&&r.forEach(function(i){var o=null;if("string"==typeof i){var s=t.DEFAULT_BY_KEY[i];if(!s)return void console.warn("AG Grid: the key "+i+" is not a valid key for specifying a tool panel, valid keys are: "+Object.keys(t.DEFAULT_BY_KEY).join(","));o=s}else o=i;e.push(o)}),e},t.DEFAULT_BY_KEY={columns:t.DEFAULT_COLUMN_COMP={id:"columns",labelDefault:"Columns",labelKey:"columns",iconKey:"columns",toolPanel:"agColumnsToolPanel"},filters:t.DEFAULT_FILTER_COMP={id:"filters",labelDefault:"Filters",labelKey:"filters",iconKey:"filter",toolPanel:"agFiltersToolPanel"}},t}(),JT=function(){return JT=Object.assign||function(t){for(var r,e=1,i=arguments.length;e<i;e++)for(var o in r=arguments[e])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t},JT.apply(this,arguments)},tv=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},OC=function(t,r){return function(e,i){r(e,i,t)}},rL=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var o,a,i=e.call(t),s=[];try{for(;(void 0===r||r-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return s},ZT=function(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(rL(arguments[r]));return t};function Gi(t){return!0===t||"true"===t}function cE(t){return"number"==typeof t?t:"string"==typeof t?parseInt(t,10):void 0}function aL(t,r){var e=parseInt(t,10);return Fu(e)&&e>0?e:r}var So=function(){function t(){this.propertyEventService=new fd,this.domDataKey="__AG_"+Math.random().toString(),this.destroyed=!1}var r;return r=t,t.prototype.agWire=function(e,i){this.gridOptions.api=e,this.gridOptions.columnApi=i,this.checkForDeprecated(),this.checkForViolations()},t.prototype.destroy=function(){this.gridOptions.api=null,this.gridOptions.columnApi=null,this.destroyed=!0},t.prototype.init=function(){var e=this;!0!==this.gridOptions.suppressPropertyNamesCheck&&(this.checkGridOptionsProperties(),this.checkColumnDefProperties()),null!=this.gridOptions.sideBar&&(this.gridOptions.sideBar=$0.parse(this.gridOptions.sideBar));var i=this.useAsyncEvents();if(this.eventService.addGlobalListener(this.globalEventHandler.bind(this),i),this.isGroupSelectsChildren()&&this.isSuppressParentsInRowNodes()&&console.warn("AG Grid: 'groupSelectsChildren' does not work with 'suppressParentsInRowNodes', this selection method needs the part in rowNode to work"),this.isGroupSelectsChildren()&&(this.isRowSelectionMulti()||console.warn("AG Grid: rowSelection must be 'multiple' for groupSelectsChildren to make sense"),this.isRowModelServerSide()&&console.warn("AG Grid: group selects children is NOT support for Server Side Row Model. This is because the rows are lazy loaded, so selecting a group is not possible asthe grid has no way of knowing what the children are.")),this.isGroupRemoveSingleChildren()&&this.isGroupHideOpenParents()&&console.warn("AG Grid: groupRemoveSingleChildren and groupHideOpenParents do not work with each other, you need to pick one. And don't ask us how to use these together on our support forum either, you will get the same answer!"),this.isRowModelServerSide()){var o=function(a){return"AG Grid: '"+a+"' is not supported on the Server-Side Row Model"};rr(this.gridOptions.groupDefaultExpanded)&&console.warn(o("groupDefaultExpanded")),rr(this.gridOptions.groupDefaultExpanded)&&console.warn(o("groupIncludeFooter")),rr(this.gridOptions.groupDefaultExpanded)&&console.warn(o("groupIncludeTotalFooter"))}this.isEnableRangeSelection()&&qo.assertRegistered(mo.RangeSelectionModule,"enableRangeSelection"),!this.isEnableRangeSelection()&&(this.isEnableRangeHandle()||this.isEnableFillHandle())&&console.warn("AG Grid: 'enableRangeHandle' and 'enableFillHandle' will not work unless 'enableRangeSelection' is set to true"),this.isGroupRowsSticky()&&this.isGroupHideOpenParents()&&console.warn("AG Grid: groupRowsSticky and groupHideOpenParents do not work with each other, you need to pick one.");var s=function(a){e.gridOptions.icons&&e.gridOptions.icons[a]&&console.warn("gridOptions.icons."+a+" is no longer supported. For information on how to style checkboxes and radio buttons, see https://www.ag-grid.com/javascript-grid-icons/")};s("radioButtonOff"),s("radioButtonOn"),s("checkboxChecked"),s("checkboxUnchecked"),s("checkboxIndeterminate"),this.getScrollbarWidth()},t.prototype.checkColumnDefProperties=function(){var e=this;null!=this.gridOptions.columnDefs&&this.gridOptions.columnDefs.forEach(function(i){var o=Object.getOwnPropertyNames(i),s=ZT(lc.ALL_PROPERTIES,lc.FRAMEWORK_PROPERTIES);e.checkProperties(o,s,s,"colDef","https://www.ag-grid.com/javascript-grid-column-properties/")})},t.prototype.checkGridOptionsProperties=function(){var e=Object.getOwnPropertyNames(this.gridOptions),i=ZT(bp.ALL_PROPERTIES,bp.FRAMEWORK_PROPERTIES,dd(Et).map(function(s){return Td.getCallbackForEvent(s)})),o=ZT(i,["api","columnApi"]);this.checkProperties(e,o,i,"gridOptions","https://www.ag-grid.com/javascript-data-grid/grid-options/")},t.prototype.checkProperties=function(e,i,o,s,a){var l=ef(e,i,o);Vo(l,function(c,d){console.warn("ag-grid: invalid "+s+" property '"+c+"' did you mean any of these: "+d.slice(0,8).join(", "))}),Object.keys(l).length>0&&console.warn("ag-grid: to see all the valid "+s+" properties please check: "+a)},t.prototype.mergeGridCommonParams=function(e){var i=this;return e?function(s){var a=JT(JT({},s),{api:i.getApi(),columnApi:i.getColumnApi(),context:i.getContext()});return e(a)}:e},t.prototype.getDomDataKey=function(){return this.domDataKey},t.prototype.getDomData=function(e,i){var o=e[this.getDomDataKey()];return o?o[i]:void 0},t.prototype.setDomData=function(e,i,o){var s=this.getDomDataKey(),a=e[s];$o(a)&&(e[s]=a={}),a[i]=o},t.prototype.isRowSelection=function(){return"single"===this.gridOptions.rowSelection||"multiple"===this.gridOptions.rowSelection},t.prototype.isSuppressRowDeselection=function(){return Gi(this.gridOptions.suppressRowDeselection)},t.prototype.isRowSelectionMulti=function(){return"multiple"===this.gridOptions.rowSelection},t.prototype.isRowMultiSelectWithClick=function(){return Gi(this.gridOptions.rowMultiSelectWithClick)},t.prototype.getContext=function(){return this.gridOptions.context},t.prototype.isPivotMode=function(){return Gi(this.gridOptions.pivotMode)},t.prototype.isSuppressExpandablePivotGroups=function(){return Gi(this.gridOptions.suppressExpandablePivotGroups)},t.prototype.getPivotColumnGroupTotals=function(){return this.gridOptions.pivotColumnGroupTotals},t.prototype.getPivotRowTotals=function(){return this.gridOptions.pivotRowTotals},t.prototype.isRowModelInfinite=function(){return this.gridOptions.rowModelType===Nn.ROW_MODEL_TYPE_INFINITE},t.prototype.isRowModelViewport=function(){return this.gridOptions.rowModelType===Nn.ROW_MODEL_TYPE_VIEWPORT},t.prototype.isRowModelServerSide=function(){return this.gridOptions.rowModelType===Nn.ROW_MODEL_TYPE_SERVER_SIDE},t.prototype.isRowModelDefault=function(){return $o(this.gridOptions.rowModelType)||this.gridOptions.rowModelType===Nn.ROW_MODEL_TYPE_CLIENT_SIDE},t.prototype.isFullRowEdit=function(){return"fullRow"===this.gridOptions.editType},t.prototype.isSuppressFocusAfterRefresh=function(){return Gi(this.gridOptions.suppressFocusAfterRefresh)},t.prototype.isSuppressBrowserResizeObserver=function(){return Gi(this.gridOptions.suppressBrowserResizeObserver)},t.prototype.isSuppressMaintainUnsortedOrder=function(){return Gi(this.gridOptions.suppressMaintainUnsortedOrder)},t.prototype.isSuppressClearOnFillReduction=function(){return Gi(this.gridOptions.suppressClearOnFillReduction)},t.prototype.isShowToolPanel=function(){return Gi(this.gridOptions.sideBar&&Array.isArray(this.getSideBar().toolPanels))},t.prototype.getSideBar=function(){return this.gridOptions.sideBar},t.prototype.isSuppressTouch=function(){return Gi(this.gridOptions.suppressTouch)},t.prototype.isMaintainColumnOrder=function(){return Gi(this.gridOptions.maintainColumnOrder)},t.prototype.isSuppressRowTransform=function(){return Gi(this.gridOptions.suppressRowTransform)},t.prototype.isSuppressColumnStateEvents=function(){return Gi(this.gridOptions.suppressColumnStateEvents)},t.prototype.isAllowDragFromColumnsToolPanel=function(){return Gi(this.gridOptions.allowDragFromColumnsToolPanel)},t.prototype.useAsyncEvents=function(){return!Gi(this.gridOptions.suppressAsyncEvents)},t.prototype.isEnableCellChangeFlash=function(){return Gi(this.gridOptions.enableCellChangeFlash)},t.prototype.getCellFlashDelay=function(){return this.gridOptions.cellFlashDelay||500},t.prototype.getCellFadeDelay=function(){return this.gridOptions.cellFadeDelay||1e3},t.prototype.isGroupSelectsChildren=function(){return Gi(this.gridOptions.groupSelectsChildren)},t.prototype.isSuppressRowHoverHighlight=function(){return Gi(this.gridOptions.suppressRowHoverHighlight)},t.prototype.isColumnHoverHighlight=function(){return Gi(this.gridOptions.columnHoverHighlight)},t.prototype.isGroupSelectsFiltered=function(){return Gi(this.gridOptions.groupSelectsFiltered)},t.prototype.isGroupHideOpenParents=function(){return Gi(this.gridOptions.groupHideOpenParents)},t.prototype.isGroupMaintainOrder=function(){return Gi(this.gridOptions.groupMaintainOrder)},t.prototype.getAutoGroupColumnDef=function(){return this.gridOptions.autoGroupColumnDef},t.prototype.isColumnsSortingCoupledToGroup=function(){var e,i=this.getAutoGroupColumnDef();return this.isRowModelDefault()&&!(null!==(e=i)&&void 0!==e&&e.comparator)},t.prototype.isGroupMultiAutoColumn=function(){return this.gridOptions.groupDisplayType?this.matchesGroupDisplayType("multipleColumns",this.gridOptions.groupDisplayType):Gi(this.gridOptions.groupHideOpenParents)},t.prototype.isGroupUseEntireRow=function(e){return!e&&!!this.gridOptions.groupDisplayType&&this.matchesGroupDisplayType("groupRows",this.gridOptions.groupDisplayType)},t.prototype.isGroupRowsSticky=function(){return Gi(this.gridOptions.groupRowsSticky)},t.prototype.isGroupSuppressAutoColumn=function(){return!(!this.gridOptions.groupDisplayType||!this.matchesGroupDisplayType("custom",this.gridOptions.groupDisplayType))||!!this.gridOptions.treeDataDisplayType&&this.matchesTreeDataDisplayType("custom",this.gridOptions.treeDataDisplayType)},t.prototype.isGroupRemoveSingleChildren=function(){return Gi(this.gridOptions.groupRemoveSingleChildren)},t.prototype.isGroupRemoveLowestSingleChildren=function(){return Gi(this.gridOptions.groupRemoveLowestSingleChildren)},t.prototype.isGroupIncludeFooter=function(){return Gi(this.gridOptions.groupIncludeFooter)},t.prototype.isGroupIncludeTotalFooter=function(){return Gi(this.gridOptions.groupIncludeTotalFooter)},t.prototype.isGroupSuppressBlankHeader=function(){return Gi(this.gridOptions.groupSuppressBlankHeader)},t.prototype.isSuppressRowClickSelection=function(){return Gi(this.gridOptions.suppressRowClickSelection)},t.prototype.isSuppressCellFocus=function(){return Gi(this.gridOptions.suppressCellFocus)},t.prototype.isSuppressMultiSort=function(){return Gi(this.gridOptions.suppressMultiSort)},t.prototype.isAlwaysMultiSort=function(){return Gi(this.gridOptions.alwaysMultiSort)},t.prototype.isMultiSortKeyCtrl=function(){return"ctrl"===this.gridOptions.multiSortKey},t.prototype.isPivotSuppressAutoColumn=function(){return Gi(this.gridOptions.pivotSuppressAutoColumn)},t.prototype.isSuppressDragLeaveHidesColumns=function(){return Gi(this.gridOptions.suppressDragLeaveHidesColumns)},t.prototype.isSuppressRowGroupHidesColumns=function(){return Gi(this.gridOptions.suppressRowGroupHidesColumns)},t.prototype.isSuppressScrollOnNewData=function(){return Gi(this.gridOptions.suppressScrollOnNewData)},t.prototype.isSuppressScrollWhenPopupsAreOpen=function(){return Gi(this.gridOptions.suppressScrollWhenPopupsAreOpen)},t.prototype.isRowDragEntireRow=function(){return Gi(this.gridOptions.rowDragEntireRow)},t.prototype.isSuppressRowDrag=function(){return Gi(this.gridOptions.suppressRowDrag)},t.prototype.isRowDragManaged=function(){return Gi(this.gridOptions.rowDragManaged)},t.prototype.isSuppressMoveWhenRowDragging=function(){return Gi(this.gridOptions.suppressMoveWhenRowDragging)},t.prototype.isRowDragMultiRow=function(){return Gi(this.gridOptions.rowDragMultiRow)},t.prototype.getDomLayout=function(){var e=this.gridOptions.domLayout||Nn.DOM_LAYOUT_NORMAL;return-1===[Nn.DOM_LAYOUT_PRINT,Nn.DOM_LAYOUT_AUTO_HEIGHT,Nn.DOM_LAYOUT_NORMAL].indexOf(e)?(sa(function(){return console.warn("AG Grid: "+e+" is not valid for DOM Layout, valid values are "+Nn.DOM_LAYOUT_NORMAL+", "+Nn.DOM_LAYOUT_AUTO_HEIGHT+" and "+Nn.DOM_LAYOUT_PRINT)},"warn about dom layout values"),Nn.DOM_LAYOUT_NORMAL):e},t.prototype.isSuppressHorizontalScroll=function(){return Gi(this.gridOptions.suppressHorizontalScroll)},t.prototype.isSuppressMaxRenderedRowRestriction=function(){return Gi(this.gridOptions.suppressMaxRenderedRowRestriction)},t.prototype.isExcludeChildrenWhenTreeDataFiltering=function(){return Gi(this.gridOptions.excludeChildrenWhenTreeDataFiltering)},t.prototype.isAlwaysShowHorizontalScroll=function(){return Gi(this.gridOptions.alwaysShowHorizontalScroll)},t.prototype.isAlwaysShowVerticalScroll=function(){return Gi(this.gridOptions.alwaysShowVerticalScroll)},t.prototype.isDebounceVerticalScrollbar=function(){return Gi(this.gridOptions.debounceVerticalScrollbar)},t.prototype.isSuppressLoadingOverlay=function(){return Gi(this.gridOptions.suppressLoadingOverlay)},t.prototype.isSuppressNoRowsOverlay=function(){return Gi(this.gridOptions.suppressNoRowsOverlay)},t.prototype.isSuppressFieldDotNotation=function(){return Gi(this.gridOptions.suppressFieldDotNotation)},t.prototype.getPinnedTopRowData=function(){return this.gridOptions.pinnedTopRowData},t.prototype.getPinnedBottomRowData=function(){return this.gridOptions.pinnedBottomRowData},t.prototype.isFunctionsPassive=function(){return Gi(this.gridOptions.functionsPassive)},t.prototype.isSuppressChangeDetection=function(){return Gi(this.gridOptions.suppressChangeDetection)},t.prototype.isSuppressAnimationFrame=function(){return Gi(this.gridOptions.suppressAnimationFrame)},t.prototype.getQuickFilterText=function(){return this.gridOptions.quickFilterText},t.prototype.isCacheQuickFilter=function(){return Gi(this.gridOptions.cacheQuickFilter)},t.prototype.isUnSortIcon=function(){return Gi(this.gridOptions.unSortIcon)},t.prototype.isSuppressMenuHide=function(){return Gi(this.gridOptions.suppressMenuHide)},t.prototype.isEnterMovesDownAfterEdit=function(){return Gi(this.gridOptions.enterMovesDownAfterEdit)},t.prototype.isEnterMovesDown=function(){return Gi(this.gridOptions.enterMovesDown)},t.prototype.isUndoRedoCellEditing=function(){return Gi(this.gridOptions.undoRedoCellEditing)},t.prototype.getUndoRedoCellEditingLimit=function(){return cE(this.gridOptions.undoRedoCellEditingLimit)},t.prototype.getRowStyle=function(){return this.gridOptions.rowStyle},t.prototype.getRowClass=function(){return this.gridOptions.rowClass},t.prototype.getRowStyleFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getRowStyle)},t.prototype.getRowClassFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getRowClass)},t.prototype.rowClassRules=function(){return this.gridOptions.rowClassRules},t.prototype.isServerSideInfiniteScroll=function(){return Gi(this.gridOptions.serverSideInfiniteScroll)},t.prototype.getServerSideGroupLevelParamsFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getServerSideGroupLevelParams)},t.prototype.getCreateChartContainerFunc=function(){return this.mergeGridCommonParams(this.gridOptions.createChartContainer)},t.prototype.getPopupParent=function(){return this.gridOptions.popupParent},t.prototype.getBlockLoadDebounceMillis=function(){return this.gridOptions.blockLoadDebounceMillis},t.prototype.getPostProcessPopupFunc=function(){return this.mergeGridCommonParams(this.gridOptions.postProcessPopup)},t.prototype.getPaginationNumberFormatterFunc=function(){return this.mergeGridCommonParams(this.gridOptions.paginationNumberFormatter)},t.prototype.getChildCountFunc=function(){return this.gridOptions.getChildCount},t.prototype.getIsApplyServerSideTransactionFunc=function(){return this.mergeGridCommonParams(this.gridOptions.isApplyServerSideTransaction)},t.prototype.getInitialGroupOrderComparator=function(){var e=this.gridOptions,i=e.initialGroupOrderComparator,o=e.defaultGroupOrderComparator;return i?this.mergeGridCommonParams(i):o?function(s){return o(s.nodeA,s.nodeB)}:void 0},t.prototype.getIsFullWidthCellFunc=function(){var e=this.gridOptions,i=e.isFullWidthRow,o=e.isFullWidthCell;return i?this.mergeGridCommonParams(i):o?function(s){return o(s.rowNode)}:void 0},t.prototype.getFullWidthCellRendererParams=function(){return this.gridOptions.fullWidthCellRendererParams},t.prototype.isEmbedFullWidthRows=function(){return Gi(this.gridOptions.embedFullWidthRows)||Gi(this.gridOptions.deprecatedEmbedFullWidthRows)},t.prototype.isDetailRowAutoHeight=function(){return Gi(this.gridOptions.detailRowAutoHeight)},t.prototype.getSuppressKeyboardEventFunc=function(){return this.gridOptions.suppressKeyboardEvent},t.prototype.getBusinessKeyForNodeFunc=function(){return this.gridOptions.getBusinessKeyForNode},t.prototype.getApi=function(){return this.gridOptions.api},t.prototype.getColumnApi=function(){return this.gridOptions.columnApi},t.prototype.isReadOnlyEdit=function(){return Gi(this.gridOptions.readOnlyEdit)},t.prototype.isImmutableData=function(){var e=null!=this.gridOptions.getRowId,i=Gi(this.gridOptions.immutableData);return!Gi(this.gridOptions.resetRowDataOnUpdate)&&(e||i)},t.prototype.isEnsureDomOrder=function(){return Gi(this.gridOptions.ensureDomOrder)},t.prototype.isEnableCharts=function(){return!!Gi(this.gridOptions.enableCharts)&&qo.assertRegistered(mo.GridChartsModule,"enableCharts")},t.prototype.getColResizeDefault=function(){return this.gridOptions.colResizeDefault},t.prototype.isSingleClickEdit=function(){return Gi(this.gridOptions.singleClickEdit)},t.prototype.isSuppressClickEdit=function(){return Gi(this.gridOptions.suppressClickEdit)},t.prototype.isStopEditingWhenCellsLoseFocus=function(){return Gi(this.gridOptions.stopEditingWhenCellsLoseFocus)},t.prototype.getGroupDefaultExpanded=function(){return this.gridOptions.groupDefaultExpanded},t.prototype.getMaxConcurrentDatasourceRequests=function(){var e=cE(this.gridOptions.maxConcurrentDatasourceRequests);return null==e?2:e<=0?void 0:e},t.prototype.getMaxBlocksInCache=function(){return this.gridOptions.maxBlocksInCache},t.prototype.getCacheOverflowSize=function(){return this.gridOptions.cacheOverflowSize},t.prototype.getPaginationPageSize=function(){return cE(this.gridOptions.paginationPageSize)},t.prototype.isPaginateChildRows=function(){return!(!this.isGroupRemoveSingleChildren()&&!this.isGroupRemoveLowestSingleChildren())||Gi(this.gridOptions.paginateChildRows)},t.prototype.getCacheBlockSize=function(){return aL(this.gridOptions.cacheBlockSize)},t.prototype.getInfiniteInitialRowCount=function(){return this.gridOptions.infiniteInitialRowCount},t.prototype.isPurgeClosedRowNodes=function(){return Gi(this.gridOptions.purgeClosedRowNodes)},t.prototype.isSuppressPaginationPanel=function(){return Gi(this.gridOptions.suppressPaginationPanel)},t.prototype.getRowData=function(){return this.gridOptions.rowData},t.prototype.isEnableRtl=function(){return Gi(this.gridOptions.enableRtl)},t.prototype.getRowGroupPanelShow=function(){return this.gridOptions.rowGroupPanelShow},t.prototype.getPivotPanelShow=function(){return this.gridOptions.pivotPanelShow},t.prototype.isAngularCompileRows=function(){return Gi(this.gridOptions.angularCompileRows)},t.prototype.isAngularCompileFilters=function(){return Gi(this.gridOptions.angularCompileFilters)},t.prototype.isDebug=function(){return Gi(this.gridOptions.debug)},t.prototype.getColumnDefs=function(){return this.gridOptions.columnDefs},t.prototype.getColumnTypes=function(){return this.gridOptions.columnTypes},t.prototype.getDatasource=function(){return this.gridOptions.datasource},t.prototype.getViewportDatasource=function(){return this.gridOptions.viewportDatasource},t.prototype.getServerSideDatasource=function(){return this.gridOptions.serverSideDatasource},t.prototype.isAccentedSort=function(){return Gi(this.gridOptions.accentedSort)},t.prototype.isEnableBrowserTooltips=function(){return Gi(this.gridOptions.enableBrowserTooltips)},t.prototype.isEnableCellExpressions=function(){return Gi(this.gridOptions.enableCellExpressions)},t.prototype.isEnableGroupEdit=function(){return Gi(this.gridOptions.enableGroupEdit)},t.prototype.isSuppressMiddleClickScrolls=function(){return Gi(this.gridOptions.suppressMiddleClickScrolls)},t.prototype.isPreventDefaultOnContextMenu=function(){return Gi(this.gridOptions.preventDefaultOnContextMenu)},t.prototype.isSuppressPreventDefaultOnMouseWheel=function(){return Gi(this.gridOptions.suppressPreventDefaultOnMouseWheel)},t.prototype.isSuppressColumnVirtualisation=function(){return Gi(this.gridOptions.suppressColumnVirtualisation)},t.prototype.isSuppressRowVirtualisation=function(){return Gi(this.gridOptions.suppressRowVirtualisation)},t.prototype.isSuppressContextMenu=function(){return Gi(this.gridOptions.suppressContextMenu)},t.prototype.isAllowContextMenuWithControlKey=function(){return Gi(this.gridOptions.allowContextMenuWithControlKey)},t.prototype.isSuppressCopyRowsToClipboard=function(){return Gi(this.gridOptions.suppressCopyRowsToClipboard)},t.prototype.isSuppressCopySingleCellRanges=function(){return Gi(this.gridOptions.suppressCopySingleCellRanges)},t.prototype.isCopyHeadersToClipboard=function(){return Gi(this.gridOptions.copyHeadersToClipboard)},t.prototype.isCopyGroupHeadersToClipboard=function(){return Gi(this.gridOptions.copyGroupHeadersToClipboard)},t.prototype.isSuppressClipboardPaste=function(){return Gi(this.gridOptions.suppressClipboardPaste)},t.prototype.isSuppressLastEmptyLineOnPaste=function(){return Gi(this.gridOptions.suppressLastEmptyLineOnPaste)},t.prototype.isPagination=function(){return Gi(this.gridOptions.pagination)},t.prototype.isSuppressEnterpriseResetOnNewColumns=function(){return Gi(this.gridOptions.suppressEnterpriseResetOnNewColumns)},t.prototype.getProcessDataFromClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processDataFromClipboard)},t.prototype.getAsyncTransactionWaitMillis=function(){return rr(this.gridOptions.asyncTransactionWaitMillis)?this.gridOptions.asyncTransactionWaitMillis:Nn.BATCH_WAIT_MILLIS},t.prototype.isSuppressMovableColumns=function(){return Gi(this.gridOptions.suppressMovableColumns)},t.prototype.isAnimateRows=function(){return!this.isEnsureDomOrder()&&Gi(this.gridOptions.animateRows)},t.prototype.isSuppressColumnMoveAnimation=function(){return Gi(this.gridOptions.suppressColumnMoveAnimation)},t.prototype.isSuppressAggFuncInHeader=function(){return Gi(this.gridOptions.suppressAggFuncInHeader)},t.prototype.isSuppressAggAtRootLevel=function(){return Gi(this.gridOptions.suppressAggAtRootLevel)},t.prototype.isSuppressAggFilteredOnly=function(){return void 0!==this.getGroupAggFiltering()||Gi(this.gridOptions.suppressAggFilteredOnly)},t.prototype.isRemovePivotHeaderRowWhenSingleValueColumn=function(){return Gi(this.gridOptions.removePivotHeaderRowWhenSingleValueColumn)},t.prototype.isShowOpenedGroup=function(){return Gi(this.gridOptions.showOpenedGroup)},t.prototype.isReactUi=function(){return Gi(this.gridOptions.reactUi)},t.prototype.isSuppressReactUi=function(){return Gi(this.gridOptions.suppressReactUi)},t.prototype.isEnableRangeSelection=function(){return qo.isRegistered(mo.RangeSelectionModule)&&Gi(this.gridOptions.enableRangeSelection)},t.prototype.isEnableRangeHandle=function(){return Gi(this.gridOptions.enableRangeHandle)},t.prototype.isEnableFillHandle=function(){return Gi(this.gridOptions.enableFillHandle)},t.prototype.getFillHandleDirection=function(){var e=this.gridOptions.fillHandleDirection;return e?"x"!==e&&"y"!==e&&"xy"!==e?(sa(function(){return console.warn("AG Grid: valid values for fillHandleDirection are 'x', 'y' and 'xy'. Default to 'xy'.")},"warn invalid fill direction"),"xy"):e:"xy"},t.prototype.getFillOperation=function(){return this.mergeGridCommonParams(this.gridOptions.fillOperation)},t.prototype.isSuppressMultiRangeSelection=function(){return Gi(this.gridOptions.suppressMultiRangeSelection)},t.prototype.isPaginationAutoPageSize=function(){return Gi(this.gridOptions.paginationAutoPageSize)},t.prototype.isRememberGroupStateWhenNewData=function(){return Gi(this.gridOptions.rememberGroupStateWhenNewData)},t.prototype.getIcons=function(){return this.gridOptions.icons},t.prototype.getGroupAggFiltering=function(){var e=this.gridOptions.groupAggFiltering;return"function"==typeof e?this.mergeGridCommonParams(e):Gi(e)?function(){return!0}:void 0},t.prototype.getAggFuncs=function(){return this.gridOptions.aggFuncs},t.prototype.getSortingOrder=function(){return this.gridOptions.sortingOrder},t.prototype.getAlignedGrids=function(){return this.gridOptions.alignedGrids},t.prototype.isMasterDetail=function(){return!!Gi(this.gridOptions.masterDetail)&&qo.assertRegistered(mo.MasterDetailModule,"masterDetail")},t.prototype.isKeepDetailRows=function(){return Gi(this.gridOptions.keepDetailRows)},t.prototype.getKeepDetailRowsCount=function(){var e=this.gridOptions.keepDetailRowsCount;return rr(e)&&e>0?this.gridOptions.keepDetailRowsCount:10},t.prototype.getIsRowMasterFunc=function(){return this.gridOptions.isRowMaster},t.prototype.getIsRowSelectableFunc=function(){return this.gridOptions.isRowSelectable},t.prototype.getGroupRowRendererParams=function(){return this.gridOptions.groupRowRendererParams},t.prototype.getOverlayLoadingTemplate=function(){return this.gridOptions.overlayLoadingTemplate},t.prototype.getOverlayNoRowsTemplate=function(){return this.gridOptions.overlayNoRowsTemplate},t.prototype.isSuppressAutoSize=function(){return Gi(this.gridOptions.suppressAutoSize)},t.prototype.isEnableCellTextSelection=function(){return Gi(this.gridOptions.enableCellTextSelection)},t.prototype.isSuppressParentsInRowNodes=function(){return Gi(this.gridOptions.suppressParentsInRowNodes)},t.prototype.isSuppressClipboardApi=function(){return Gi(this.gridOptions.suppressClipboardApi)},t.prototype.isFunctionsReadOnly=function(){return Gi(this.gridOptions.functionsReadOnly)},t.prototype.isEnableCellTextSelect=function(){return Gi(this.gridOptions.enableCellTextSelection)},t.prototype.getDefaultColDef=function(){return this.gridOptions.defaultColDef},t.prototype.getDefaultColGroupDef=function(){return this.gridOptions.defaultColGroupDef},t.prototype.getDefaultExportParams=function(e){return this.gridOptions.defaultExportParams?(console.warn("AG Grid: Since v25.2 `defaultExportParams`  has been replaced by `default"+Xp(e)+"ExportParams`'"),this.gridOptions.defaultExportParams):"csv"===e&&this.gridOptions.defaultCsvExportParams?this.gridOptions.defaultCsvExportParams:"excel"===e&&this.gridOptions.defaultExcelExportParams?this.gridOptions.defaultExcelExportParams:void 0},t.prototype.isSuppressCsvExport=function(){return Gi(this.gridOptions.suppressCsvExport)},t.prototype.isAllowShowChangeAfterFilter=function(){return Gi(this.gridOptions.allowShowChangeAfterFilter)},t.prototype.isSuppressExcelExport=function(){return Gi(this.gridOptions.suppressExcelExport)},t.prototype.isSuppressMakeColumnVisibleAfterUnGroup=function(){return Gi(this.gridOptions.suppressMakeColumnVisibleAfterUnGroup)},t.prototype.getDataPathFunc=function(){return this.gridOptions.getDataPath},t.prototype.getIsServerSideGroupFunc=function(){return this.gridOptions.isServerSideGroup},t.prototype.getIsServerSideGroupOpenByDefaultFunc=function(){return this.mergeGridCommonParams(this.gridOptions.isServerSideGroupOpenByDefault)},t.prototype.getIsGroupOpenByDefaultFunc=function(){return this.mergeGridCommonParams(this.gridOptions.isGroupOpenByDefault)},t.prototype.getServerSideGroupKeyFunc=function(){return this.gridOptions.getServerSideGroupKey},t.prototype.getGroupRowAggFunc=function(){var e=this.gridOptions,i=e.getGroupRowAgg,o=e.groupRowAggNodes;return i?this.mergeGridCommonParams(i):o?function(s){return o(s.nodes)}:void 0},t.prototype.getContextMenuItemsFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getContextMenuItems)},t.prototype.getMainMenuItemsFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getMainMenuItems)},t.prototype.getRowIdFunc=function(){var e=this.gridOptions,i=e.getRowId,o=e.getRowNodeId;return i?this.mergeGridCommonParams(i):o?function(s){return o(s.data)}:void 0},t.prototype.getNavigateToNextHeaderFunc=function(){return this.mergeGridCommonParams(this.gridOptions.navigateToNextHeader)},t.prototype.getTabToNextHeaderFunc=function(){return this.mergeGridCommonParams(this.gridOptions.tabToNextHeader)},t.prototype.getNavigateToNextCellFunc=function(){return this.mergeGridCommonParams(this.gridOptions.navigateToNextCell)},t.prototype.getTabToNextCellFunc=function(){return this.mergeGridCommonParams(this.gridOptions.tabToNextCell)},t.prototype.getGridTabIndex=function(){return(this.gridOptions.tabIndex||0).toString()},t.prototype.isTreeData=function(){return!!Gi(this.gridOptions.treeData)&&qo.assertRegistered(mo.RowGroupingModule,"Tree Data")},t.prototype.isValueCache=function(){return Gi(this.gridOptions.valueCache)},t.prototype.isValueCacheNeverExpires=function(){return Gi(this.gridOptions.valueCacheNeverExpires)},t.prototype.isDeltaSort=function(){return Gi(this.gridOptions.deltaSort)},t.prototype.isAggregateOnlyChangedColumns=function(){return Gi(this.gridOptions.aggregateOnlyChangedColumns)},t.prototype.getProcessPivotResultColDefFunc=function(){return this.gridOptions.processPivotResultColDef||this.gridOptions.processSecondaryColDef},t.prototype.getProcessPivotResultColGroupDefFunc=function(){return this.gridOptions.processPivotResultColGroupDef||this.gridOptions.processSecondaryColGroupDef},t.prototype.getSendToClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.sendToClipboard)},t.prototype.getProcessRowPostCreateFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processRowPostCreate)},t.prototype.getProcessCellForClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processCellForClipboard)},t.prototype.getProcessHeaderForClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processHeaderForClipboard)},t.prototype.getProcessGroupHeaderForClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processGroupHeaderForClipboard)},t.prototype.getProcessCellFromClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processCellFromClipboard)},t.prototype.getViewportRowModelPageSize=function(){return aL(this.gridOptions.viewportRowModelPageSize,5)},t.prototype.getViewportRowModelBufferSize=function(){return function sL(t,r){return t>=0?t:r}(this.gridOptions.viewportRowModelBufferSize,5)},t.prototype.isServerSideSortAllLevels=function(){var e=Gi(this.gridOptions.serverSideSortAllLevels);return!this.isRowModelServerSide()&&e?(sa(function(){return console.warn("AG Grid: The `serverSideSortAllLevels` property can only be used with the server side row model.")},"serverSideSortAllLevels"),!1):e},t.prototype.isServerSideFilterAllLevels=function(){var e=Gi(this.gridOptions.serverSideFilterAllLevels);return!this.isRowModelServerSide()&&e?(sa(function(){return console.warn("AG Grid: The `serverSideFilterAllLevels` property can only be used with the server side row model.")},"serverSideFilterAllLevels"),!1):e},t.prototype.isServerSideSortOnServer=function(){var e=Gi(this.gridOptions.serverSideSortOnServer);return!this.isRowModelServerSide()&&e?(sa(function(){return console.warn("AG Grid: The `serverSideSortOnServer` property can only be used with the server side row model.")},"serverSideSortOnServerRowModel"),!1):this.isTreeData()&&e?(sa(function(){return console.warn("AG Grid: The `serverSideSortOnServer` property cannot be used while using tree data.")},"serverSideSortOnServerTreeData"),!1):e},t.prototype.isServerSideFilterOnServer=function(){var e=Gi(this.gridOptions.serverSideFilterOnServer);return!this.isRowModelServerSide()&&e?(sa(function(){return console.warn("AG Grid: The `serverSideFilterOnServer` property can only be used with the server side row model.")},"serverSideFilterOnServerRowModel"),!1):this.isTreeData()&&e?(sa(function(){return console.warn("AG Grid: The `serverSideFilterOnServer` property cannot be used while using tree data.")},"serverSideFilterOnServerTreeData"),!1):e},t.prototype.getPostSortFunc=function(){var e=this.gridOptions,i=e.postSortRows,o=e.postSort;return i?this.mergeGridCommonParams(i):o?function(s){return o(s.nodes)}:void 0},t.prototype.getChartToolbarItemsFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getChartToolbarItems)},t.prototype.getChartThemeOverrides=function(){return this.gridOptions.chartThemeOverrides},t.prototype.getCustomChartThemes=function(){return this.gridOptions.customChartThemes},t.prototype.getChartThemes=function(){return this.gridOptions.chartThemes||["ag-default","ag-material","ag-pastel","ag-vivid","ag-solar"]},t.prototype.getClipboardDelimiter=function(){return rr(this.gridOptions.clipboardDelimiter)?this.gridOptions.clipboardDelimiter:"\t"},t.prototype.setProperty=function(e,i,o){void 0===o&&(o=!1);var s=this.gridOptions,a=s[e];(o||a!==i)&&(s[e]=i,this.propertyEventService.dispatchEvent({type:e,currentValue:i,previousValue:a}))},t.prototype.addEventListener=function(e,i){this.propertyEventService.addEventListener(e,i)},t.prototype.removeEventListener=function(e,i){this.propertyEventService.removeEventListener(e,i)},t.prototype.isSkipHeaderOnAutoSize=function(){return!!this.gridOptions.skipHeaderOnAutoSize},t.prototype.getAutoSizePadding=function(){var e=this.gridOptions.autoSizePadding;return null!=e&&e>=0?e:20},t.prototype.getHeaderHeight=function(){return"number"==typeof this.gridOptions.headerHeight?this.gridOptions.headerHeight:this.getFromTheme(25,"headerHeight")},t.prototype.getFloatingFiltersHeight=function(){return"number"==typeof this.gridOptions.floatingFiltersHeight?this.gridOptions.floatingFiltersHeight:this.getFromTheme(25,"headerHeight")},t.prototype.getGroupHeaderHeight=function(){return"number"==typeof this.gridOptions.groupHeaderHeight?this.gridOptions.groupHeaderHeight:this.getHeaderHeight()},t.prototype.getPivotHeaderHeight=function(){return"number"==typeof this.gridOptions.pivotHeaderHeight?this.gridOptions.pivotHeaderHeight:this.getHeaderHeight()},t.prototype.getPivotGroupHeaderHeight=function(){return"number"==typeof this.gridOptions.pivotGroupHeaderHeight?this.gridOptions.pivotGroupHeaderHeight:this.getGroupHeaderHeight()},t.prototype.isExternalFilterPresent=function(){return"function"==typeof this.gridOptions.isExternalFilterPresent&&this.gridOptions.isExternalFilterPresent({api:this.getApi(),columnApi:this.getColumnApi(),context:this.getContext()})},t.prototype.doesExternalFilterPass=function(e){return"function"==typeof this.gridOptions.doesExternalFilterPass&&this.gridOptions.doesExternalFilterPass(e)},t.prototype.getTooltipDelay=function(e){var i=this.gridOptions,a="show"===e?i.tooltipShowDelay:i.tooltipHideDelay,l=Xp(e);return rr(a)?(a<0&&sa(function(){return console.warn("ag-grid: tooltip"+l+"Delay should not be lower than 0")},"tooltip"+l+"DelayWarn"),Math.max(200,a)):null},t.prototype.isTooltipMouseTrack=function(){return Gi(this.gridOptions.tooltipMouseTrack)},t.prototype.isSuppressModelUpdateAfterUpdateTransaction=function(){return Gi(this.gridOptions.suppressModelUpdateAfterUpdateTransaction)},t.prototype.getDocument=function(){var e=null;return this.gridOptions.getDocument&&rr(this.gridOptions.getDocument)?e=this.gridOptions.getDocument():this.eGridDiv&&(e=this.eGridDiv.ownerDocument),e&&rr(e)?e:document},t.prototype.getMinColWidth=function(){var e=this.gridOptions.minColWidth;if(rr(e)&&e>r.MIN_COL_WIDTH)return this.gridOptions.minColWidth;var i=this.getFromTheme(null,"headerCellMinWidth");return rr(i)?Math.max(i,r.MIN_COL_WIDTH):r.MIN_COL_WIDTH},t.prototype.getMaxColWidth=function(){return this.gridOptions.maxColWidth&&this.gridOptions.maxColWidth>r.MIN_COL_WIDTH?this.gridOptions.maxColWidth:null},t.prototype.getColWidth=function(){return"number"!=typeof this.gridOptions.colWidth||this.gridOptions.colWidth<r.MIN_COL_WIDTH?200:this.gridOptions.colWidth},t.prototype.getRowBuffer=function(){var e=this.gridOptions.rowBuffer;return"number"==typeof e?e<0&&(sa(function(){return console.warn("AG Grid: rowBuffer should not be negative")},"warn rowBuffer negative"),this.gridOptions.rowBuffer=e=0):e=Nn.ROW_BUFFER_SIZE,e},t.prototype.getRowBufferInPixels=function(){return this.getRowBuffer()*this.getRowHeightAsNumber()},t.prototype.getScrollbarWidth=function(){if(null==this.scrollbarWidth){var i="number"==typeof this.gridOptions.scrollbarWidth&&this.gridOptions.scrollbarWidth>=0?this.gridOptions.scrollbarWidth:FT();null!=i&&(this.scrollbarWidth=i,this.eventService.dispatchEvent({type:Et.EVENT_SCROLLBAR_WIDTH_CHANGED}))}return this.scrollbarWidth},t.prototype.checkForDeprecated=function(){var e=this.gridOptions;e.deprecatedEmbedFullWidthRows&&console.warn("AG Grid: since v21.2, deprecatedEmbedFullWidthRows has been replaced with embedFullWidthRows."),e.rowDeselection&&console.warn("AG Grid: since v24.x, rowDeselection is deprecated and the behaviour is true by default. Please use `suppressRowDeselection` to prevent rows from being deselected."),e.enableMultiRowDragging&&(e.rowDragMultiRow=!0,delete e.enableMultiRowDragging,console.warn("AG Grid: since v26.1, `enableMultiRowDragging` is deprecated. Please use `rowDragMultiRow`."));var i=function(a,l,c){null!=e[a]&&(console.warn("AG Grid: since version "+c+", '"+a+"' is deprecated / renamed, please use the new property name '"+l+"' instead."),null==e[l]&&(e[l]=e[a]))};if(i("batchUpdateWaitMillis","asyncTransactionWaitMillis","23.1.x"),i("deltaRowDataMode","immutableData","23.1.x"),i("serverSideFilteringAlwaysResets","serverSideFilterAllLevels","28.0.0"),i("serverSideSortingAlwaysResets","serverSideSortAllLevels","28.0.0"),(e.immutableColumns||e.deltaColumnMode)&&console.warn("AG Grid: since v24.0, immutableColumns and deltaColumnMode properties are gone. The grid now works like this as default. To keep column order maintained, set grid property applyColumnDefOrder=true"),i("suppressSetColumnStateEvents","suppressColumnStateEvents","24.0.x"),e.groupRowInnerRenderer||e.groupRowInnerRendererParams||e.groupRowInnerRendererFramework){console.warn("AG Grid: since v24.0, grid properties groupRowInnerRenderer, groupRowInnerRendererFramework and groupRowInnerRendererParams are no longer used."),console.warn("  Instead use the grid properties groupRowRendererParams.innerRenderer, groupRowRendererParams.innerRendererFramework and groupRowRendererParams.innerRendererParams."),console.warn("  For example instead of this:"),console.warn('    groupRowInnerRenderer: "myRenderer"'),console.warn("    groupRowInnerRendererParams: {x: a}"),console.warn("  Replace with this:"),console.warn("    groupRowRendererParams: {"),console.warn('      innerRenderer: "myRenderer",'),console.warn("      innerRendererParams: {x: a}"),console.warn("    }"),console.warn("  We have copied the properties over for you. However to stop this error message, please change your application code."),e.groupRowRendererParams||(e.groupRowRendererParams={});var o=e.groupRowRendererParams;e.groupRowInnerRenderer&&(o.innerRenderer=e.groupRowInnerRenderer),e.groupRowInnerRendererParams&&(o.innerRendererParams=e.groupRowInnerRendererParams),e.groupRowInnerRendererFramework&&(o.innerRendererFramework=e.groupRowInnerRendererFramework)}e.rememberGroupStateWhenNewData&&console.warn("AG Grid: since v24.0, grid property rememberGroupStateWhenNewData is deprecated. This feature was provided before Transaction Updates worked (which keep group state). Now that transaction updates are possible and they keep group state, this feature is no longer needed."),e.detailCellRendererParams&&e.detailCellRendererParams.autoHeight&&(console.warn("AG Grid: since v24.1, grid property detailCellRendererParams.autoHeight is replaced with grid property detailRowAutoHeight. This allows this feature to work when you provide a custom DetailCellRenderer"),e.detailRowAutoHeight=!0),e.suppressKeyboardEvent&&console.warn("AG Grid: since v24.1 suppressKeyboardEvent in the gridOptions has been deprecated and will be removed in\n                 future versions of AG Grid. If you need this to be set for every column use the defaultColDef property."),e.suppressEnterpriseResetOnNewColumns&&console.warn("AG Grid: since v25, grid property suppressEnterpriseResetOnNewColumns is deprecated. This was a temporary property to allow changing columns in Server Side Row Model without triggering a reload. Now that it is possible to dynamically change columns in the grid, this is no longer needed."),e.suppressColumnStateEvents&&console.warn('AG Grid: since v25, grid property suppressColumnStateEvents no longer works due to a refactor that we did. It should be possible to achieve similar using event.source, which would be "api" if the event was due to setting column state via the API'),e.defaultExportParams&&console.warn("AG Grid: since v25.2, the grid property `defaultExportParams` has been replaced by `defaultCsvExportParams` and `defaultExcelExportParams`."),e.stopEditingWhenGridLosesFocus&&(console.warn("AG Grid: since v25.2.2, the grid property `stopEditingWhenGridLosesFocus` has been replaced by `stopEditingWhenCellsLoseFocus`."),e.stopEditingWhenCellsLoseFocus=!0),e.applyColumnDefOrder&&console.warn("AG Grid: since v26.0, the grid property `applyColumnDefOrder` is no longer needed, as this is the default behaviour. To turn this behaviour off, set maintainColumnOrder=true"),e.groupMultiAutoColumn&&(console.warn("AG Grid: since v26.0, the grid property `groupMultiAutoColumn` has been replaced by `groupDisplayType = 'multipleColumns'`"),e.groupDisplayType="multipleColumns"),e.groupUseEntireRow&&(console.warn("AG Grid: since v26.0, the grid property `groupUseEntireRow` has been replaced by `groupDisplayType = 'groupRows'`"),e.groupDisplayType="groupRows"),e.groupSuppressAutoColumn&&(console.warn("AG Grid: since v26.0, the grid property `groupSuppressAutoColumn` has been replaced by `"+(e.treeData?"treeDataDisplayType":"groupDisplayType")+" = 'custom'`"),e.groupDisplayType="custom"),e.defaultGroupOrderComparator&&console.warn("AG Grid: since v27.2, the grid property `defaultGroupOrderComparator` is deprecated and has been replaced by `initialGroupOrderComparator` and now receives a single params object."),e.defaultGroupSortComparator&&(console.warn("AG Grid: since v26.0, the grid property `defaultGroupSortComparator` has been replaced by `initialGroupOrderComparator`"),e.defaultGroupOrderComparator=e.defaultGroupSortComparator),e.groupRowAggNodes&&console.warn("AG Grid: since v27.2, the grid property `groupRowAggNodes` is deprecated and has been replaced by `getGroupRowAgg` and now receives a single params object."),e.postSort&&console.warn("AG Grid: since v27.2, the grid property `postSort` is deprecated and has been replaced by `postSortRows` and now receives a single params object."),e.isFullWidthCell&&console.warn("AG Grid: since v27.2, the grid property `isFullWidthCell` is deprecated and has been replaced by `isFullWidthRow` and now receives a single params object."),e.localeTextFunc&&console.warn("AG Grid: since v27.2, the grid property `localeTextFunc` is deprecated and has been replaced by `getLocaleText` and now receives a single params object."),e.colWidth&&console.warn("AG Grid: since v26.1, the grid property `colWidth` is deprecated and should be set via `defaultColDef.width`."),e.minColWidth&&console.warn("AG Grid: since v26.1, the grid property `minColWidth` is deprecated and should be set via `defaultColDef.minWidth`."),e.maxColWidth&&console.warn("AG Grid: since v26.1, the grid property `maxColWidth` is deprecated and should be set via `defaultColDef.maxWidth`."),e.reactUi&&console.warn("AG Grid: since v27.0, React UI is on by default, so no need for reactUi=true. To turn it off, set suppressReactUi=true."),e.suppressReactUi&&console.warn("AG Grid: The legacy React rendering engine is deprecated and will be removed in the next major version of the grid."),e.suppressCellSelection&&(console.warn("AG Grid: since v27.0, `suppressCellSelection` has been replaced by `suppressCellFocus`."),e.suppressCellFocus=e.suppressCellSelection),e.getRowNodeId&&console.warn("AG Grid: since v27.1, `getRowNodeId` is deprecated and has been replaced by `getRowId`. The difference: if getRowId() is implemented then immutable data is enabled by default."),e.immutableData&&(e.getRowId?console.warn("AG Grid: since v27.1, `immutableData` is deprecated. With the `getRowId` callback implemented, immutable data is enabled by default so you can remove `immutableData=true`."):console.warn("AG Grid: since v27.1, `immutableData` is deprecated. To enable immutable data you must implement the `getRowId()` callback.")),e.clipboardDeliminator&&(console.warn("AG Grid: since v27.1, `clipboardDeliminator` has been replaced by `clipboardDelimiter`."),e.clipboardDelimiter=e.clipboardDeliminator),i("processSecondaryColDef","processPivotResultColDef","28.0.x"),i("processSecondaryColGroupDef","processPivotResultColGroupDef","28.0.x"),e.serverSideStoreType&&(console.warn("AG Grid: since v28.0, `serverSideStoreType` has been replaced by `serverSideInfiniteScroll`. Set to true to use Partial Store, and false to use Full Store."),e.serverSideInfiniteScroll="partial"===e.serverSideStoreType),i("getServerSideStoreParams","getServerSideGroupLevelParams","28.0.x")},t.prototype.checkForViolations=function(){this.isTreeData()&&this.treeDataViolations()},t.prototype.treeDataViolations=function(){this.isRowModelDefault()&&$o(this.getDataPathFunc())&&console.warn("AG Grid: property usingTreeData=true with rowModel=clientSide, but you did not provide getDataPath function, please provide getDataPath function if using tree data."),this.isRowModelServerSide()&&($o(this.getIsServerSideGroupFunc())&&console.warn("AG Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide isServerSideGroup function, please provide isServerSideGroup function if using tree data."),$o(this.getServerSideGroupKeyFunc())&&console.warn("AG Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide getServerSideGroupKey function, please provide getServerSideGroupKey function if using tree data."))},t.prototype.getLocaleTextFunc=function(){var e=this,i=this.gridOptions,o=i.localeText,s=i.getLocaleText;return s?function(l,c,d){var f={key:l,defaultValue:c,variableValues:d,api:e.getApi(),columnApi:e.getColumnApi(),context:e.getContext()};return s(f)}:i.localeTextFunc||function(l,c,d){var f=o&&o[l];if(f&&d&&d.length)for(var v=0;!(v>=d.length)&&-1!==f.indexOf("${variable}");)f=f.replace("${variable}",d[v++]);return f??c}},t.prototype.globalEventHandler=function(e,i){if(!this.destroyed){var o=Td.getCallbackForEvent(e);"function"==typeof this.gridOptions[o]&&this.gridOptions[o](i)}},t.prototype.setRowHeightVariable=function(e){var o=e+"px";this.eGridDiv.style.getPropertyValue("--ag-line-height").trim()!=o&&this.eGridDiv.style.setProperty("--ag-line-height",o)},t.prototype.getRowHeightAsNumber=function(){if(!this.gridOptions.rowHeight||$o(this.gridOptions.rowHeight))return this.getDefaultRowHeight();var e=this.gridOptions.rowHeight;return e&&this.isNumeric(e)?(this.setRowHeightVariable(e),e):(console.warn("AG Grid row height must be a number if not using standard row model"),this.getDefaultRowHeight())},t.prototype.isGetRowHeightFunction=function(){return"function"==typeof this.gridOptions.getRowHeight},t.prototype.getRowHeightForNode=function(e,i,o){if(void 0===i&&(i=!1),null==o&&(o=this.getDefaultRowHeight()),this.isGetRowHeightFunction()){if(i)return{height:o,estimated:!0};var s={node:e,data:e.data},a=this.mergeGridCommonParams(this.gridOptions.getRowHeight)(s);if(this.isNumeric(a))return 0===a&&sa(function(){return console.warn("AG Grid: The return of `getRowHeight` cannot be zero. If the intention is to hide rows, use a filter instead.")},"invalidRowHeight"),{height:Math.max(1,a),estimated:!1}}return e.detail&&this.isMasterDetail()?this.isDetailRowAutoHeight()?{height:1,estimated:!1}:this.isNumeric(this.gridOptions.detailRowHeight)?{height:this.gridOptions.detailRowHeight,estimated:!1}:{height:300,estimated:!1}:{height:this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:o,estimated:!1}},t.prototype.isDynamicRowHeight=function(){return"function"==typeof this.gridOptions.getRowHeight},t.prototype.getListItemHeight=function(){return this.getFromTheme(20,"listItemHeight")},t.prototype.chartMenuPanelWidth=function(){return this.environment.chartMenuPanelWidth()},t.prototype.isNumeric=function(e){return!isNaN(e)&&"number"==typeof e&&isFinite(e)},t.prototype.getFromTheme=function(e,i){var o=this.environment.getTheme().theme;return o&&0===o.indexOf("ag-theme")?this.environment.getSassVariable(o,i):e},t.prototype.getDefaultRowHeight=function(){return this.getFromTheme(25,"rowHeight")},t.prototype.matchesGroupDisplayType=function(e,i){var o=["groupRows","multipleColumns","custom","singleColumn"];return o.indexOf(i)<0?(console.warn("AG Grid: '"+i+"' is not a valid groupDisplayType value - possible values are: '"+o.join("', '")+"'"),!1):i===e},t.prototype.matchesTreeDataDisplayType=function(e,i){var o=["auto","custom"];return o.indexOf(i)<0?(console.warn("AG Grid: '"+i+"' is not a valid treeDataDisplayType value - possible values are: '"+o.join("', '")+"'"),!1):i===e},t.MIN_COL_WIDTH=10,t.PROP_HEADER_HEIGHT="headerHeight",t.PROP_GROUP_REMOVE_SINGLE_CHILDREN="groupRemoveSingleChildren",t.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN="groupRemoveLowestSingleChildren",t.PROP_PIVOT_HEADER_HEIGHT="pivotHeaderHeight",t.PROP_SUPPRESS_CLIPBOARD_PASTE="suppressClipboardPaste",t.PROP_GROUP_HEADER_HEIGHT="groupHeaderHeight",t.PROP_PIVOT_GROUP_HEADER_HEIGHT="pivotGroupHeaderHeight",t.PROP_NAVIGATE_TO_NEXT_CELL="navigateToNextCell",t.PROP_TAB_TO_NEXT_CELL="tabToNextCell",t.PROP_NAVIGATE_TO_NEXT_HEADER="navigateToNextHeader",t.PROP_TAB_TO_NEXT_HEADER="tabToNextHeader",t.PROP_IS_EXTERNAL_FILTER_PRESENT="isExternalFilterPresent",t.PROP_DOES_EXTERNAL_FILTER_PASS="doesExternalFilterPass",t.PROP_FLOATING_FILTERS_HEIGHT="floatingFiltersHeight",t.PROP_SUPPRESS_ROW_CLICK_SELECTION="suppressRowClickSelection",t.PROP_SUPPRESS_ROW_DRAG="suppressRowDrag",t.PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG="suppressMoveWhenRowDragging",t.PROP_GET_ROW_CLASS="getRowClass",t.PROP_GET_ROW_STYLE="getRowStyle",t.PROP_GET_ROW_HEIGHT="getRowHeight",t.PROP_POPUP_PARENT="popupParent",t.PROP_DOM_LAYOUT="domLayout",t.PROP_ROW_CLASS="rowClass",t.PROP_FILL_HANDLE_DIRECTION="fillHandleDirection",t.PROP_GROUP_ROW_AGG_NODES="groupRowAggNodes",t.PROP_GET_GROUP_ROW_AGG="getGroupRowAgg",t.PROP_GET_BUSINESS_KEY_FOR_NODE="getBusinessKeyForNode",t.PROP_GET_CHILD_COUNT="getChildCount",t.PROP_PROCESS_ROW_POST_CREATE="processRowPostCreate",t.PROP_GET_ROW_NODE_ID="getRowNodeId",t.PROP_GET_ROW_ID="getRowId",t.PROP_IS_FULL_WIDTH_CELL="isFullWidthCell",t.PROP_IS_FULL_WIDTH_ROW="isFullWidthRow",t.PROP_IS_ROW_SELECTABLE="isRowSelectable",t.PROP_IS_ROW_MASTER="isRowMaster",t.PROP_POST_SORT="postSort",t.PROP_POST_SORT_ROWS="postSortRows",t.PROP_GET_DOCUMENT="getDocument",t.PROP_POST_PROCESS_POPUP="postProcessPopup",t.PROP_DEFAULT_GROUP_ORDER_COMPARATOR="defaultGroupOrderComparator",t.PROP_INITIAL_GROUP_ORDER_COMPARATOR="initialGroupOrderComparator",t.PROP_PAGINATION_NUMBER_FORMATTER="paginationNumberFormatter",t.PROP_GET_CONTEXT_MENU_ITEMS="getContextMenuItems",t.PROP_GET_MAIN_MENU_ITEMS="getMainMenuItems",t.PROP_PROCESS_CELL_FOR_CLIPBOARD="processCellForClipboard",t.PROP_PROCESS_CELL_FROM_CLIPBOARD="processCellFromClipboard",t.PROP_SEND_TO_CLIPBOARD="sendToClipboard",t.PROP_PROCESS_PIVOT_RESULT_COL_DEF="processPivotResultColDef",t.PROP_PROCESS_PIVOT_RESULT_COL_GROUP_DEF="processPivotResultColGroupDef",t.PROP_GET_CHART_TOOLBAR_ITEMS="getChartToolbarItems",t.PROP_GET_SERVER_SIDE_GROUP_PARAMS="getServerSideGroupLevelParams",t.PROP_IS_SERVER_SIDE_GROUPS_OPEN_BY_DEFAULT="isServerSideGroupOpenByDefault",t.PROP_IS_APPLY_SERVER_SIDE_TRANSACTION="isApplyServerSideTransaction",t.PROP_IS_SERVER_SIDE_GROUP="isServerSideGroup",t.PROP_GET_SERVER_SIDE_GROUP_KEY="getServerSideGroupKey",tv([Xe("gridOptions")],t.prototype,"gridOptions",void 0),tv([Xe("eventService")],t.prototype,"eventService",void 0),tv([Xe("environment")],t.prototype,"environment",void 0),tv([Xe("eGridDiv")],t.prototype,"eGridDiv",void 0),tv([OC(0,Hc("gridApi")),OC(1,Hc("columnApi"))],t.prototype,"agWire",null),tv([Ru],t.prototype,"destroy",null),tv([qi],t.prototype,"init",null),r=tv([Kr("gridOptionsWrapper")],t)}(),dB=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),uE=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},Yd=function(t){return t.AUTO_HEIGHT="ag-layout-auto-height",t.NORMAL="ag-layout-normal",t.PRINT="ag-layout-print",t}(Yd||{}),qI=function(t){function r(e){var i=t.call(this)||this;return i.view=e,i}return dB(r,t),r.prototype.postConstruct=function(){this.addManagedListener(this.gridOptionsWrapper,So.PROP_DOM_LAYOUT,this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()},r.prototype.updateLayoutClasses=function(){var e=this.gridOptionsWrapper.getDomLayout(),i={autoHeight:e===Nn.DOM_LAYOUT_AUTO_HEIGHT,normal:e===Nn.DOM_LAYOUT_NORMAL,print:e===Nn.DOM_LAYOUT_PRINT};this.view.updateLayoutClasses(i.autoHeight?Yd.AUTO_HEIGHT:i.print?Yd.PRINT:Yd.NORMAL,i)},uE([Xe("gridOptionsWrapper")],r.prototype,"gridOptionsWrapper",void 0),uE([qi],r.prototype,"postConstruct",null),r}(Zi),tg=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),nv=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},lL=function(t){function r(e){var i=t.call(this)||this;return i.scrollLeft=-1,i.nextScrollTop=-1,i.scrollTop=-1,i.eBodyViewport=e,i.resetLastHorizontalScrollElementDebounced=hd(i.resetLastHorizontalScrollElement.bind(i),500),i}return tg(r,t),r.prototype.postConstruct=function(){var e=this;this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.addManagedListener(this.eventService,Et.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this)),this.ctrlsService.whenReady(function(i){e.centerRowContainerCtrl=i.centerRowContainerCtrl,e.onDisplayedColumnsWidthChanged(),e.addScrollListener()})},r.prototype.addScrollListener=function(){var e=this.ctrlsService.getFakeHScrollCtrl();this.addManagedListener(this.centerRowContainerCtrl.getViewportElement(),"scroll",this.onCenterViewportScroll.bind(this)),this.addManagedListener(e.getViewport(),"scroll",this.onFakeHorizontalScroll.bind(this));var i=this.gridOptionsWrapper.isDebounceVerticalScrollbar()?hd(this.onVerticalScroll.bind(this),100):this.onVerticalScroll.bind(this);this.addManagedListener(this.eBodyViewport,"scroll",i)},r.prototype.onDisplayedColumnsWidthChanged=function(){this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()},r.prototype.horizontallyScrollHeaderCenterAndFloatingCenter=function(e){if(null!=this.centerRowContainerCtrl){void 0===e&&(e=this.centerRowContainerCtrl.getCenterViewportScrollLeft());var o=this.enableRtl?e:-e,s=this.ctrlsService.getTopCenterRowContainerCtrl(),a=this.ctrlsService.getStickyTopCenterRowContainerCtrl(),l=this.ctrlsService.getBottomCenterRowContainerCtrl(),c=this.ctrlsService.getFakeHScrollCtrl();this.ctrlsService.getHeaderRowContainerCtrl().setHorizontalScroll(o),l.setContainerTranslateX(o),s.setContainerTranslateX(o),a.setContainerTranslateX(o);var f=this.centerRowContainerCtrl.getViewportElement();jd(this.lastHorizontalScrollElement===f?c.getViewport():this.centerRowContainerCtrl.getViewportElement(),Math.abs(e),this.enableRtl)}},r.prototype.isControllingScroll=function(e){return this.lastHorizontalScrollElement?e===this.lastHorizontalScrollElement:(this.lastHorizontalScrollElement=e,!0)},r.prototype.onFakeHorizontalScroll=function(){var e=this.ctrlsService.getFakeHScrollCtrl().getViewport();this.isControllingScroll(e)&&this.onBodyHorizontalScroll(e)},r.prototype.onCenterViewportScroll=function(){var e=this.centerRowContainerCtrl.getViewportElement();this.isControllingScroll(e)&&this.onBodyHorizontalScroll(e)},r.prototype.onBodyHorizontalScroll=function(e){var i=this.centerRowContainerCtrl.getViewportElement();this.shouldBlockScrollUpdate("horizontal",i.scrollLeft,!0)||(this.doHorizontalScroll(Math.round(k0(e,this.enableRtl))),this.resetLastHorizontalScrollElementDebounced())},r.prototype.onVerticalScroll=function(){var e=this.eBodyViewport.scrollTop;this.shouldBlockScrollUpdate("vertical",e,!0)||(this.animationFrameService.setScrollTop(e),this.nextScrollTop=e,this.gridOptionsWrapper.isSuppressAnimationFrame()?(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()):this.animationFrameService.schedule())},r.prototype.resetLastHorizontalScrollElement=function(){this.lastHorizontalScrollElement=null},r.prototype.doHorizontalScroll=function(e){var o=k0(this.ctrlsService.getFakeHScrollCtrl().getViewport(),this.enableRtl);this.scrollLeft===e&&e===o||(this.scrollLeft=e,this.fireScrollEvent("horizontal"),this.horizontallyScrollHeaderCenterAndFloatingCenter(e),this.onHorizontalViewportChanged())},r.prototype.fireScrollEvent=function(e){var i=this,o={type:Et.EVENT_BODY_SCROLL,api:this.gridApi,columnApi:this.columnApi,direction:e,left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(o),window.clearTimeout(this.scrollTimer),this.scrollTimer=void 0,this.scrollTimer=window.setTimeout(function(){var s=Object.assign({},o,{type:Et.EVENT_BODY_SCROLL_END});i.eventService.dispatchEvent(s)},100)},r.prototype.shouldBlockScrollUpdate=function(e,i,o){if(void 0===o&&(o=!1),o&&!zm())return!1;if("vertical"===e){var s=x1(this.eBodyViewport);if(i<0||i+s>this.eBodyViewport.scrollHeight)return!0}if("horizontal"===e){var l=this.centerRowContainerCtrl.getCenterWidth(),c=this.centerRowContainerCtrl.getViewportElement().scrollWidth;if(this.enableRtl&&dC()){if(i>0)return!0}else if(i<0)return!0;if(Math.abs(i)+l>c)return!0}return!1},r.prototype.redrawRowsAfterScroll=function(){this.fireScrollEvent("vertical")},r.prototype.onHorizontalViewportChanged=function(){this.centerRowContainerCtrl.onHorizontalViewportChanged()},r.prototype.checkScrollLeft=function(){this.scrollLeft!==this.centerRowContainerCtrl.getCenterViewportScrollLeft()&&this.onBodyHorizontalScroll(this.centerRowContainerCtrl.getViewportElement())},r.prototype.executeAnimationFrameScroll=function(){var e=this.scrollTop!=this.nextScrollTop;return e&&(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()),e},r.prototype.setHorizontalScrollPosition=function(e){var o=this.centerRowContainerCtrl.getViewportElement().scrollWidth-this.centerRowContainerCtrl.getCenterWidth();this.shouldBlockScrollUpdate("horizontal",e)&&(e=this.enableRtl&&dC()?e>0?0:o:Math.min(Math.max(e,0),o)),jd(this.centerRowContainerCtrl.getViewportElement(),Math.abs(e),this.enableRtl),this.doHorizontalScroll(e)},r.prototype.setVerticalScrollPosition=function(e){this.eBodyViewport.scrollTop=e},r.prototype.getVScrollPosition=function(){return{top:this.eBodyViewport.scrollTop,bottom:this.eBodyViewport.scrollTop+this.eBodyViewport.offsetHeight}},r.prototype.getHScrollPosition=function(){return this.centerRowContainerCtrl.getHScrollPosition()},r.prototype.isHorizontalScrollShowing=function(){return this.centerRowContainerCtrl.isHorizontalScrollShowing()},r.prototype.scrollHorizontally=function(e){var i=this.centerRowContainerCtrl.getViewportElement().scrollLeft;return this.setHorizontalScrollPosition(i+e),this.centerRowContainerCtrl.getViewportElement().scrollLeft-i},r.prototype.scrollToTop=function(){this.eBodyViewport.scrollTop=0},r.prototype.ensureNodeVisible=function(e,i){void 0===i&&(i=null);for(var o=this.rowModel.getRowCount(),s="function"==typeof e,a=-1,l=0;l<o;l++){var c=this.rowModel.getRow(l);if(s){if(e(c)){a=l;break}}else if(e===c||e===c.data){a=l;break}}a>=0&&this.ensureIndexVisible(a,i)},r.prototype.ensureIndexVisible=function(e,i){if(this.gridOptionsWrapper.getDomLayout()!==Nn.DOM_LAYOUT_PRINT){var o=this.paginationProxy.getRowCount();if("number"!=typeof e||e<0||e>=o)return void console.warn("invalid row index for ensureIndexVisible: "+e);this.gridOptionsWrapper.isPagination()&&!this.gridOptionsWrapper.isSuppressPaginationPanel()||this.paginationProxy.goToPageWithIndex(e);var f,c=this.ctrlsService.getGridBodyCtrl().getStickyTopHeight(),d=this.paginationProxy.getRow(e);do{var v=d.rowTop,w=d.rowHeight,x=this.paginationProxy.getPixelOffset(),I=d.rowTop-x,M=I+d.rowHeight,F=this.getVScrollPosition(),re=this.heightScaler.getDivStretchOffset(),pe=F.top+re,we=F.bottom+re,je=we-pe,tt=this.heightScaler.getScrollPositionForPixel(I),nt=this.heightScaler.getScrollPositionForPixel(M-je),rt=Math.min((tt+nt)/2,I),Wt=null;"top"===i?Wt=tt:"bottom"===i?Wt=nt:"middle"===i?Wt=rt:pe+c>I?Wt=tt-c:we<M&&(Wt=nt),null!==Wt&&(this.eBodyViewport.scrollTop=Wt,this.rowRenderer.redrawAfterScroll()),f=v!==d.rowTop||w!==d.rowHeight}while(f);this.animationFrameService.flushAllFrames()}},r.prototype.ensureColumnVisible=function(e,i){void 0===i&&(i="auto");var o=this.columnModel.getGridColumn(e);if(o&&!o.isPinned()&&this.columnModel.isColumnDisplayed(o)){var s=this.getPositionedHorizontalScroll(o,i);null!==s&&this.centerRowContainerCtrl.setCenterViewportScrollLeft(s),this.centerRowContainerCtrl.onHorizontalViewportChanged(),this.animationFrameService.flushAllFrames()}},r.prototype.getPositionedHorizontalScroll=function(e,i){var o=this.isColumnOutsideViewport(e),s=o.columnBeforeStart,a=o.columnAfterEnd,l=this.centerRowContainerCtrl.getCenterWidth()<e.getActualWidth(),c=this.centerRowContainerCtrl.getCenterWidth(),d=this.enableRtl,f=(d?s:a)||l,v=d?a:s;"auto"!==i&&(f="start"===i,v="end"===i);var w="middle"===i;if(f||v||w){var x=this.getColumnBounds(e),I=x.colLeft,F=x.colRight;return w?x.colMiddle-c/2:f?d?F:I:d?I-c:F-c}return null},r.prototype.isColumnOutsideViewport=function(e){var i=this.getViewportBounds(),o=i.start,s=i.end,a=this.getColumnBounds(e),l=a.colLeft,c=a.colRight,d=this.enableRtl;return{columnBeforeStart:d?o>c:s<c,columnAfterEnd:d?s<l:o>l}},r.prototype.getColumnBounds=function(e){var i=this.enableRtl,o=this.columnModel.getBodyContainerWidth(),s=e.getActualWidth(),a=e.getLeft(),l=i?-1:1,c=i?o-a:a;return{colLeft:c,colMiddle:c+s/2*l,colRight:c+s*l}},r.prototype.getViewportBounds=function(){var e=this.centerRowContainerCtrl.getCenterWidth(),i=this.centerRowContainerCtrl.getCenterViewportScrollLeft();return{start:i,end:e+i,width:e}},nv([Xe("ctrlsService")],r.prototype,"ctrlsService",void 0),nv([Xe("animationFrameService")],r.prototype,"animationFrameService",void 0),nv([Xe("columnApi")],r.prototype,"columnApi",void 0),nv([Xe("gridApi")],r.prototype,"gridApi",void 0),nv([Xe("paginationProxy")],r.prototype,"paginationProxy",void 0),nv([Xe("rowModel")],r.prototype,"rowModel",void 0),nv([Xe("rowContainerHeightService")],r.prototype,"heightScaler",void 0),nv([Xe("rowRenderer")],r.prototype,"rowRenderer",void 0),nv([Xe("columnModel")],r.prototype,"columnModel",void 0),nv([qi],r.prototype,"postConstruct",null),r}(Zi),XI=function(){function t(r){this.tickingInterval=null,this.onScrollCallback=null,this.scrollContainer=r.scrollContainer,this.scrollHorizontally=-1!==r.scrollAxis.indexOf("x"),this.scrollVertically=-1!==r.scrollAxis.indexOf("y"),this.scrollByTick=null!=r.scrollByTick?r.scrollByTick:20,r.onScrollCallback&&(this.onScrollCallback=r.onScrollCallback),this.scrollVertically&&(this.getVerticalPosition=r.getVerticalPosition,this.setVerticalPosition=r.setVerticalPosition),this.scrollHorizontally&&(this.getHorizontalPosition=r.getHorizontalPosition,this.setHorizontalPosition=r.setHorizontalPosition),this.shouldSkipVerticalScroll=r.shouldSkipVerticalScroll||function(){return!1},this.shouldSkipHorizontalScroll=r.shouldSkipHorizontalScroll||function(){return!1}}return t.prototype.check=function(r,e){void 0===e&&(e=!1);var i=e||this.shouldSkipVerticalScroll();if(!i||!this.shouldSkipHorizontalScroll()){var o=this.scrollContainer.getBoundingClientRect(),s=this.scrollByTick;this.tickLeft=r.clientX<o.left+s,this.tickRight=r.clientX>o.right-s,this.tickUp=r.clientY<o.top+s&&!i,this.tickDown=r.clientY>o.bottom-s&&!i,this.tickLeft||this.tickRight||this.tickUp||this.tickDown?this.ensureTickingStarted():this.ensureCleared()}},t.prototype.ensureTickingStarted=function(){null===this.tickingInterval&&(this.tickingInterval=window.setInterval(this.doTick.bind(this),100),this.tickCount=0)},t.prototype.doTick=function(){var r;if(this.tickCount++,r=this.tickCount>20?200:this.tickCount>10?80:40,this.scrollVertically){var e=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(e-r),this.tickDown&&this.setVerticalPosition(e+r)}if(this.scrollHorizontally){var i=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(i-r),this.tickRight&&this.setHorizontalPosition(i+r)}this.onScrollCallback&&this.onScrollCallback()},t.prototype.ensureCleared=function(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)},t}(),pB=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),KI=function(){return KI=Object.assign||function(t){for(var r,e=1,i=arguments.length;e<i;e++)for(var o in r=arguments[e])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t},KI.apply(this,arguments)},tf=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},cL=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var o,a,i=e.call(t),s=[];try{for(;(void 0===r||r-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return s},fB=function(t){function r(e){var i=t.call(this)||this;return i.isMultiRowDrag=!1,i.isGridSorted=!1,i.isGridFiltered=!1,i.isRowGroupActive=!1,i.eContainer=e,i}return pB(r,t),r.prototype.postConstruct=function(){var e=this;this.gridOptionsWrapper.isRowModelDefault()&&(this.clientSideRowModel=this.rowModel);var i=function(){e.onSortChanged(),e.onFilterChanged(),e.onRowGroupChanged()};this.addManagedListener(this.eventService,Et.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,Et.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,Et.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,Et.EVENT_MODEL_UPDATED,function(){i()}),i(),this.ctrlsService.whenReady(function(){var o=e.ctrlsService.getGridBodyCtrl();e.autoScrollService=new XI({scrollContainer:o.getBodyViewportElement(),scrollAxis:"y",getVerticalPosition:function(){return o.getScrollFeature().getVScrollPosition().top},setVerticalPosition:function(s){return o.getScrollFeature().setVerticalScrollPosition(s)},onScrollCallback:function(){e.onDragging(e.lastDraggingEvent)}})})},r.prototype.onSortChanged=function(){this.isGridSorted=this.sortController.isSortActive()},r.prototype.onFilterChanged=function(){this.isGridFiltered=this.filterManager.isAnyFilterPresent()},r.prototype.onRowGroupChanged=function(){var e=this.columnModel.getRowGroupColumns();this.isRowGroupActive=!_c(e)},r.prototype.getContainer=function(){return this.eContainer},r.prototype.isInterestedIn=function(e){return e===Ed.RowDrag},r.prototype.getIconName=function(){return this.gridOptionsWrapper.isRowDragManaged()&&this.shouldPreventRowMove()?Zl.ICON_NOT_ALLOWED:Zl.ICON_MOVE},r.prototype.shouldPreventRowMove=function(){return this.isGridSorted||this.isGridFiltered||this.isRowGroupActive},r.prototype.getRowNodes=function(e){var i=this;if(!this.isFromThisGrid(e))return e.dragItem.rowNodes||[];var o=this.gridOptionsWrapper.isRowDragMultiRow(),s=function(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(cL(arguments[r]));return t}(this.selectionService.getSelectedNodes()).sort(function(l,c){return null==l.rowIndex||null==c.rowIndex?0:i.getRowIndexNumber(l)-i.getRowIndexNumber(c)}),a=e.dragItem.rowNode;return o&&-1!==s.indexOf(a)?(this.isMultiRowDrag=!0,s):(this.isMultiRowDrag=!1,[a])},r.prototype.onDragEnter=function(e){e.dragItem.rowNodes=this.getRowNodes(e),this.dispatchGridEvent(Et.EVENT_ROW_DRAG_ENTER,e),this.getRowNodes(e).forEach(function(i){i.setDragging(!0)}),this.onEnterOrDragging(e)},r.prototype.onDragging=function(e){this.onEnterOrDragging(e)},r.prototype.isFromThisGrid=function(e){return e.dragSource.dragSourceDomDataKey===this.gridOptionsWrapper.getDomDataKey()},r.prototype.isDropZoneWithinThisGrid=function(e){return!this.ctrlsService.getGridBodyCtrl().getGui().contains(e.dropZoneTarget)},r.prototype.onEnterOrDragging=function(e){this.dispatchGridEvent(Et.EVENT_ROW_DRAG_MOVE,e),this.lastDraggingEvent=e;var i=this.mouseEventService.getNormalisedPosition(e).y;this.gridOptionsWrapper.isRowDragManaged()&&this.doManagedDrag(e,i),this.autoScrollService.check(e.event)},r.prototype.doManagedDrag=function(e,i){var o=this.isFromThisGrid(e),s=this.gridOptionsWrapper.isRowDragManaged(),a=e.dragItem.rowNodes;s&&this.shouldPreventRowMove()||(this.gridOptionsWrapper.isSuppressMoveWhenRowDragging()||!o?this.isDropZoneWithinThisGrid(e)||this.clientSideRowModel.highlightRowAtPixel(a[0],i):this.moveRows(a,i))},r.prototype.getRowIndexNumber=function(e){return parseInt(Ja(e.getRowIndexString().split("-")),10)},r.prototype.moveRowAndClearHighlight=function(e){var i=this,o=this.clientSideRowModel.getLastHighlightedRowNode(),s=o&&o.highlighted===V0.Below,a=this.mouseEventService.getNormalisedPosition(e).y,l=e.dragItem.rowNodes,c=s?1:0;if(this.isFromThisGrid(e))l.forEach(function(v){v.rowTop<a&&(c-=1)}),this.moveRows(l,a,c);else{var d=this.gridOptionsWrapper.getRowIdFunc(),f=this.clientSideRowModel.getRowIndexAtPixel(a)+1;this.clientSideRowModel.getHighlightPosition(a)===V0.Above&&f--,this.clientSideRowModel.updateRowData({add:l.map(function(v){return v.data}).filter(function(v){return!i.clientSideRowModel.getRowNode(d?d({data:v,level:0}):v.id)}),addIndex:f})}this.clearRowHighlight()},r.prototype.clearRowHighlight=function(){this.clientSideRowModel.highlightRowAtPixel(null)},r.prototype.moveRows=function(e,i,o){void 0===o&&(o=0),this.clientSideRowModel.ensureRowsAtPixel(e,i,o)&&(this.focusService.clearFocusedCell(),this.rangeService&&this.rangeService.removeAllCellRanges())},r.prototype.addRowDropZone=function(e){var i=this;if(e.getContainer())if(this.dragAndDropService.findExternalZone(e))console.warn("AG Grid: addRowDropZone - target already exists in the list of DropZones. Use `removeRowDropZone` before adding it again.");else{var o={getContainer:e.getContainer};e.fromGrid?(e.fromGrid=void 0,o=e):(e.onDragEnter&&(o.onDragEnter=function(s){e.onDragEnter(i.draggingToRowDragEvent(Et.EVENT_ROW_DRAG_ENTER,s))}),e.onDragLeave&&(o.onDragLeave=function(s){e.onDragLeave(i.draggingToRowDragEvent(Et.EVENT_ROW_DRAG_LEAVE,s))}),e.onDragging&&(o.onDragging=function(s){e.onDragging(i.draggingToRowDragEvent(Et.EVENT_ROW_DRAG_MOVE,s))}),e.onDragStop&&(o.onDragStop=function(s){e.onDragStop(i.draggingToRowDragEvent(Et.EVENT_ROW_DRAG_END,s))})),this.dragAndDropService.addDropTarget(KI({isInterestedIn:function(s){return s===Ed.RowDrag},getIconName:function(){return Zl.ICON_MOVE},external:!0},o))}else sa(function(){return console.warn("AG Grid: addRowDropZone - A container target needs to be provided")},"add-drop-zone-empty-target")},r.prototype.getRowDropZone=function(e){var i=this,o=this.getContainer.bind(this),s=this.onDragEnter.bind(this),a=this.onDragLeave.bind(this),l=this.onDragging.bind(this),c=this.onDragStop.bind(this);return e?{getContainer:o,onDragEnter:e.onDragEnter?function(d){s(d),e.onDragEnter(i.draggingToRowDragEvent(Et.EVENT_ROW_DRAG_ENTER,d))}:s,onDragLeave:e.onDragLeave?function(d){a(d),e.onDragLeave(i.draggingToRowDragEvent(Et.EVENT_ROW_DRAG_LEAVE,d))}:a,onDragging:e.onDragging?function(d){l(d),e.onDragging(i.draggingToRowDragEvent(Et.EVENT_ROW_DRAG_MOVE,d))}:l,onDragStop:e.onDragStop?function(d){c(d),e.onDragStop(i.draggingToRowDragEvent(Et.EVENT_ROW_DRAG_END,d))}:c,fromGrid:!0}:{getContainer:o,onDragEnter:s,onDragLeave:a,onDragging:l,onDragStop:c,fromGrid:!0}},r.prototype.draggingToRowDragEvent=function(e,i){var l,c,o=this.mouseEventService.getNormalisedPosition(i).y,a=-1;switch(o>this.paginationProxy.getCurrentPageHeight()||(a=this.rowModel.getRowIndexAtPixel(o),l=this.rowModel.getRow(a)),i.vDirection){case j0.Down:c="down";break;case j0.Up:c="up";break;default:c=null}return{type:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),event:i.event,node:i.dragItem.rowNode,nodes:i.dragItem.rowNodes,overIndex:a,overNode:l,y:o,vDirection:c}},r.prototype.dispatchGridEvent=function(e,i){var o=this.draggingToRowDragEvent(e,i);this.eventService.dispatchEvent(o)},r.prototype.onDragLeave=function(e){this.dispatchGridEvent(Et.EVENT_ROW_DRAG_LEAVE,e),this.stopDragging(e),this.gridOptionsWrapper.isRowDragManaged()&&this.clearRowHighlight(),this.isFromThisGrid(e)&&(this.isMultiRowDrag=!1)},r.prototype.onDragStop=function(e){this.dispatchGridEvent(Et.EVENT_ROW_DRAG_END,e),this.stopDragging(e),this.gridOptionsWrapper.isRowDragManaged()&&(this.gridOptionsWrapper.isSuppressMoveWhenRowDragging()||!this.isFromThisGrid(e))&&!this.isDropZoneWithinThisGrid(e)&&this.moveRowAndClearHighlight(e)},r.prototype.stopDragging=function(e){this.autoScrollService.ensureCleared(),this.getRowNodes(e).forEach(function(i){i.setDragging(!1)})},tf([Xe("dragAndDropService")],r.prototype,"dragAndDropService",void 0),tf([Xe("rowModel")],r.prototype,"rowModel",void 0),tf([Xe("paginationProxy")],r.prototype,"paginationProxy",void 0),tf([Xe("columnModel")],r.prototype,"columnModel",void 0),tf([Xe("focusService")],r.prototype,"focusService",void 0),tf([Xe("sortController")],r.prototype,"sortController",void 0),tf([Xe("filterManager")],r.prototype,"filterManager",void 0),tf([Xe("selectionService")],r.prototype,"selectionService",void 0),tf([Xe("mouseEventService")],r.prototype,"mouseEventService",void 0),tf([Xe("ctrlsService")],r.prototype,"ctrlsService",void 0),tf([_a("rangeService")],r.prototype,"rangeService",void 0),tf([Xe("columnApi")],r.prototype,"columnApi",void 0),tf([Xe("gridApi")],r.prototype,"gridApi",void 0),tf([qi],r.prototype,"postConstruct",null),r}(Zi),mB=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Ds=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},FC=function(t){return t.ANIMATION_ON="ag-row-animation",t.ANIMATION_OFF="ag-row-no-animation",t}(FC||{}),QI="ag-selectable",N1="ag-force-vertical-scroll",JI="ag-column-moving",uL=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.stickyTopHeight=0,e}return mB(r,t),r.prototype.getScrollFeature=function(){return this.bodyScrollFeature},r.prototype.getBodyViewportElement=function(){return this.eBodyViewport},r.prototype.setComp=function(e,i,o,s,a,l){this.comp=e,this.eGridBody=i,this.eBodyViewport=o,this.eTop=s,this.eBottom=a,this.eStickyTop=l,this.setCellTextSelection(this.gridOptionsWrapper.isEnableCellTextSelect()),this.createManagedBean(new qI(this.comp)),this.bodyScrollFeature=this.createManagedBean(new lL(this.eBodyViewport)),this.addRowDragListener(),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([s,o,a,l]),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.ctrlsService.registerGridBodyCtrl(this)},r.prototype.getComp=function(){return this.comp},r.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,Et.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Et.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.addManagedListener(this.eventService,Et.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,Et.EVENT_HEADER_HEIGHT_CHANGED,this.onHeaderHeightChanged.bind(this))},r.prototype.addFocusListeners=function(e){var i=this;e.forEach(function(o){i.addManagedListener(o,"focusin",function(s){var l=qm(s.target,"ag-root",o);o.classList.toggle("ag-has-focus",!l)}),i.addManagedListener(o,"focusout",function(s){var a=s.target,l=s.relatedTarget,c=o.contains(l),d=qm(l,"ag-root",o);qm(a,"ag-root",o)||(!c||d)&&o.classList.remove("ag-has-focus")})})},r.prototype.setColumnMovingCss=function(e){this.comp.setColumnMovingCss(e?JI:null,e)},r.prototype.setCellTextSelection=function(e){void 0===e&&(e=!1),this.comp.setCellSelectableCss(e?QI:null,e)},r.prototype.onScrollVisibilityChanged=function(){var e=this.scrollVisibleService.isVerticalScrollShowing();this.setVerticalScrollPaddingVisible(e),this.setStickyTopWidth(e)},r.prototype.onGridColumnsChanged=function(){var e=this.columnModel.getAllGridColumns();this.comp.setColumnCount(e?e.length:0)},r.prototype.disableBrowserDragging=function(){this.addManagedListener(this.eGridBody,"dragstart",function(e){if(e.target instanceof HTMLImageElement)return e.preventDefault(),!1})},r.prototype.addStopEditingWhenGridLosesFocus=function(){var e=this;if(this.gridOptionsWrapper.isStopEditingWhenCellsLoseFocus()){var i=function(s){var a=s.relatedTarget;if(null!==w1(a)){var l=o.some(function(d){return d.contains(a)})&&e.mouseEventService.isElementInThisGrid(a);if(!l){var c=e.popupService;l=c.getActivePopups().some(function(d){return d.contains(a)})||c.isElementWithinCustomPopup(a)}l||e.rowRenderer.stopEditing()}else e.rowRenderer.stopEditing()},o=[this.eBodyViewport,this.eBottom,this.eTop,this.eStickyTop];o.forEach(function(s){return e.addManagedListener(s,"focusout",i)})}},r.prototype.updateRowCount=function(){var e=this.headerNavigationService.getHeaderRowCount(),i=this.rowModel.isLastRowIndexKnown()?this.rowModel.getRowCount():-1;this.comp.setRowCount(-1===i?-1:e+i)},r.prototype.registerBodyViewportResizeListener=function(e){this.comp.registerBodyViewportResizeListener(e)},r.prototype.setVerticalScrollPaddingVisible=function(e){this.comp.setPinnedTopBottomOverflowY(e?"scroll":"hidden")},r.prototype.isVerticalScrollShowing=function(){var e=this.gridOptionsWrapper.isAlwaysShowVerticalScroll();return this.comp.setAlwaysVerticalScrollClass(e?N1:null,e),e||NT(this.eBodyViewport)},r.prototype.setupRowAnimationCssClass=function(){var e=this,i=function(){var o=e.gridOptionsWrapper.isAnimateRows()&&!e.rowContainerHeightService.isStretching();e.comp.setRowAnimationCssOnBodyViewport(o?FC.ANIMATION_ON:FC.ANIMATION_OFF,o)};i(),this.addManagedListener(this.eventService,Et.EVENT_HEIGHT_SCALE_CHANGED,i)},r.prototype.getGridBodyElement=function(){return this.eGridBody},r.prototype.addBodyViewportListener=function(){var e=this;this.addManagedListener(this.eBodyViewport,"contextmenu",function(o){e.gridOptionsWrapper.isPreventDefaultOnContextMenu()&&o.preventDefault();var s=o.target;(s===e.eBodyViewport||s===e.ctrlsService.getCenterRowContainerCtrl().getViewportElement())&&e.contextMenuFactory&&e.contextMenuFactory.onContextMenu(o,null,null,null,null,e.eGridBody)}),this.addManagedListener(this.eBodyViewport,"wheel",this.onBodyViewportWheel.bind(this)),this.addManagedListener(this.eStickyTop,"wheel",this.onStickyTopWheel.bind(this))},r.prototype.onBodyViewportWheel=function(e){this.gridOptionsWrapper.isSuppressScrollWhenPopupsAreOpen()&&this.popupService.hasAnchoredPopup()&&e.preventDefault()},r.prototype.onStickyTopWheel=function(e){e.preventDefault(),e.offsetY&&this.scrollVertically(e.deltaY)},r.prototype.getGui=function(){return this.eGridBody},r.prototype.scrollVertically=function(e){var i=this.eBodyViewport.scrollTop;return this.bodyScrollFeature.setVerticalScrollPosition(i+e),this.eBodyViewport.scrollTop-i},r.prototype.addRowDragListener=function(){this.rowDragFeature=this.createManagedBean(new fB(this.eBodyViewport)),this.dragAndDropService.addDropTarget(this.rowDragFeature)},r.prototype.getRowDragFeature=function(){return this.rowDragFeature},r.prototype.onPinnedRowDataChanged=function(){this.setFloatingHeights()},r.prototype.setFloatingHeights=function(){var e=this.pinnedRowModel,i=e.getPinnedTopTotalHeight();i&&(i+=1);var o=e.getPinnedBottomTotalHeight();o&&(o+=1),this.comp.setTopHeight(i),this.comp.setBottomHeight(o),this.comp.setTopDisplay(i?"inherit":"none"),this.comp.setBottomDisplay(o?"inherit":"none"),this.setStickyTopOffsetTop()},r.prototype.setStickyTopHeight=function(e){void 0===e&&(e=0),this.comp.setStickyTopHeight(e+"px"),this.stickyTopHeight=e},r.prototype.getStickyTopHeight=function(){return this.stickyTopHeight},r.prototype.setStickyTopWidth=function(e){if(e){var i=this.gridOptionsWrapper.getScrollbarWidth();this.comp.setStickyTopWidth("calc(100% - "+i+"px)")}else this.comp.setStickyTopWidth("100%")},r.prototype.onHeaderHeightChanged=function(){this.setStickyTopOffsetTop()},r.prototype.setStickyTopOffsetTop=function(){var i=this.ctrlsService.getGridHeaderCtrl().getHeaderHeight(),o=this.pinnedRowModel.getPinnedTopTotalHeight(),s=0;i>0&&(s+=i+1),o>0&&(s+=o+1),this.comp.setStickyTopTop(s+"px")},r.prototype.sizeColumnsToFit=function(e){var i=this,s=this.isVerticalScrollShowing()?this.gridOptionsWrapper.getScrollbarWidth():0,l=Gf(this.eBodyViewport)-s;l>0?this.columnModel.sizeColumnsToFit(l,"sizeColumnsToFit"):void 0===e?window.setTimeout(function(){i.sizeColumnsToFit(100)},0):100===e?window.setTimeout(function(){i.sizeColumnsToFit(500)},100):500===e?window.setTimeout(function(){i.sizeColumnsToFit(-1)},500):console.warn("AG Grid: tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?")},r.prototype.addScrollEventListener=function(e){this.eBodyViewport.addEventListener("scroll",e)},r.prototype.removeScrollEventListener=function(e){this.eBodyViewport.removeEventListener("scroll",e)},Ds([Xe("rowContainerHeightService")],r.prototype,"rowContainerHeightService",void 0),Ds([Xe("ctrlsService")],r.prototype,"ctrlsService",void 0),Ds([Xe("columnModel")],r.prototype,"columnModel",void 0),Ds([Xe("scrollVisibleService")],r.prototype,"scrollVisibleService",void 0),Ds([_a("contextMenuFactory")],r.prototype,"contextMenuFactory",void 0),Ds([Xe("headerNavigationService")],r.prototype,"headerNavigationService",void 0),Ds([Xe("dragAndDropService")],r.prototype,"dragAndDropService",void 0),Ds([Xe("pinnedRowModel")],r.prototype,"pinnedRowModel",void 0),Ds([Xe("rowRenderer")],r.prototype,"rowRenderer",void 0),Ds([Xe("popupService")],r.prototype,"popupService",void 0),Ds([Xe("mouseEventService")],r.prototype,"mouseEventService",void 0),Ds([Xe("rowModel")],r.prototype,"rowModel",void 0),r}(Zi),G1=function(t){return t[t.FILL=0]="FILL",t[t.RANGE=1]="RANGE",t}(G1||{}),ng=function(t){return t[t.VALUE=0]="VALUE",t[t.DIMENSION=1]="DIMENSION",t}(ng||{}),ig="ag-cell-range-selected",gB=function(){function t(r,e){this.beans=r,this.cellCtrl=e}return t.prototype.setComp=function(r,e){this.cellComp=r,this.eGui=e,this.onRangeSelectionChanged()},t.prototype.onRangeSelectionChanged=function(){this.cellComp&&(this.rangeCount=this.beans.rangeService.getCellRangeCount(this.cellCtrl.getCellPosition()),this.hasChartRange=this.getHasChartRange(),this.cellComp.addOrRemoveCssClass(ig,0!==this.rangeCount),this.cellComp.addOrRemoveCssClass(ig+"-1",1===this.rangeCount),this.cellComp.addOrRemoveCssClass(ig+"-2",2===this.rangeCount),this.cellComp.addOrRemoveCssClass(ig+"-3",3===this.rangeCount),this.cellComp.addOrRemoveCssClass(ig+"-4",this.rangeCount>=4),this.cellComp.addOrRemoveCssClass("ag-cell-range-chart",this.hasChartRange),Rc(this.eGui,this.rangeCount>0||void 0),this.cellComp.addOrRemoveCssClass("ag-cell-range-single-cell",this.isSingleCell()),this.updateRangeBorders(),this.refreshHandle())},t.prototype.updateRangeBorders=function(){var r=this.getRangeBorders(),e=this.isSingleCell(),o=!e&&r.right,s=!e&&r.bottom,a=!e&&r.left;this.cellComp.addOrRemoveCssClass("ag-cell-range-top",!e&&r.top),this.cellComp.addOrRemoveCssClass("ag-cell-range-right",o),this.cellComp.addOrRemoveCssClass("ag-cell-range-bottom",s),this.cellComp.addOrRemoveCssClass("ag-cell-range-left",a)},t.prototype.isSingleCell=function(){var r=this.beans.rangeService;return 1===this.rangeCount&&r&&!r.isMoreThanOneCell()},t.prototype.getHasChartRange=function(){var r=this.beans.rangeService;if(!this.rangeCount||!r)return!1;var e=r.getCellRanges();return e.length>0&&e.every(function(i){return ht([ng.DIMENSION,ng.VALUE],i.type)})},t.prototype.updateRangeBordersIfRangeCount=function(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())},t.prototype.getRangeBorders=function(){var v,w,r=this,e=this.beans.gridOptionsWrapper.isEnableRtl(),i=!1,o=!1,s=!1,a=!1,l=this.cellCtrl.getCellPosition().column,c=this.beans,d=c.rangeService,f=c.columnModel;e?(v=f.getDisplayedColAfter(l),w=f.getDisplayedColBefore(l)):(v=f.getDisplayedColBefore(l),w=f.getDisplayedColAfter(l));var x=d.getCellRanges().filter(function(pe){return d.isCellInSpecificRange(r.cellCtrl.getCellPosition(),pe)});v||(a=!0),w||(o=!0);for(var I=0;I<x.length&&!(i&&o&&s&&a);I++){var M=x[I],F=d.getRangeStartRow(M),re=d.getRangeEndRow(M);!i&&this.beans.rowPositionUtils.sameRow(F,this.cellCtrl.getCellPosition())&&(i=!0),!s&&this.beans.rowPositionUtils.sameRow(re,this.cellCtrl.getCellPosition())&&(s=!0),!a&&v&&M.columns.indexOf(v)<0&&(a=!0),!o&&w&&M.columns.indexOf(w)<0&&(o=!0)}return{top:i,right:o,bottom:s,left:a}},t.prototype.refreshHandle=function(){if(this.beans.rangeService){var r=this.shouldHaveSelectionHandle();this.selectionHandle&&!r&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),r&&this.addSelectionHandle(),this.cellComp.addOrRemoveCssClass("ag-cell-range-handle",!!this.selectionHandle)}},t.prototype.shouldHaveSelectionHandle=function(){var r=this.beans,e=r.gridOptionsWrapper,i=r.rangeService,o=i.getCellRanges(),s=o.length;if(this.rangeCount<1||s<1)return!1;var a=Ja(o),l=this.cellCtrl.getCellPosition(),c=e.isEnableFillHandle()&&!this.cellCtrl.isSuppressFillHandle(),d=e.isEnableRangeHandle(),f=1===s&&!this.cellCtrl.isEditing()&&(c||d);if(this.hasChartRange){var w=o[0].type===ng.DIMENSION&&i.isCellInSpecificRange(l,o[0]);this.cellComp.addOrRemoveCssClass("ag-cell-range-chart-category",w),f=a.type===ng.VALUE}return f&&null!=a.endRow&&i.isContiguousRange(a)&&i.isBottomRightCell(a,l)},t.prototype.addSelectionHandle=function(){var r=this.beans,e=r.gridOptionsWrapper,o=Ja(r.rangeService.getCellRanges()).type,a=e.isEnableFillHandle()&&$o(o)?G1.FILL:G1.RANGE;this.selectionHandle&&this.selectionHandle.getType()!==a&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),this.selectionHandle||(this.selectionHandle=this.beans.selectionHandleFactory.createSelectionHandle(a)),this.selectionHandle.refresh(this.cellCtrl)},t.prototype.destroy=function(){this.beans.context.destroyBean(this.selectionHandle)},t}(),vB=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),_B=function(t){function r(e,i){var o=t.call(this)||this;return o.cellCtrl=e,o.beans=i,o.column=e.getColumn(),o.rowNode=e.getRowNode(),o.setupColSpan(),o.setupRowSpan(),o}return vB(r,t),r.prototype.setupRowSpan=function(){this.rowSpan=this.column.getRowSpan(this.rowNode)},r.prototype.setComp=function(e){this.eGui=e,this.onLeftChanged(),this.onWidthChanged(),this.applyRowSpan()},r.prototype.onDisplayColumnsChanged=function(){var e=this.getColSpanningList();$l(this.colsSpanning,e)||(this.colsSpanning=e,this.onWidthChanged(),this.onLeftChanged())},r.prototype.setupColSpan=function(){null!=this.column.getColDef().colSpan&&(this.colsSpanning=this.getColSpanningList(),this.addManagedListener(this.beans.eventService,Et.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayColumnsChanged.bind(this)),this.addManagedListener(this.beans.eventService,Et.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onWidthChanged.bind(this)))},r.prototype.onWidthChanged=function(){if(this.eGui){var e=this.getCellWidth();this.eGui.style.width=e+"px"}},r.prototype.getCellWidth=function(){return this.colsSpanning?this.colsSpanning.reduce(function(e,i){return e+i.getActualWidth()},0):this.column.getActualWidth()},r.prototype.getColSpanningList=function(){var e=this.column.getColSpan(this.rowNode),i=[];if(1===e)i.push(this.column);else for(var o=this.column,s=this.column.getPinned(),a=0;o&&a<e&&(i.push(o),(o=this.beans.columnModel.getDisplayedColAfter(o))&&!$o(o)&&s===o.getPinned());a++);return i},r.prototype.onLeftChanged=function(){if(this.eGui){var e=this.modifyLeftForPrintLayout(this.getCellLeft());this.eGui.style.left=e+"px"}},r.prototype.getCellLeft=function(){return(this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?Ja(this.colsSpanning):this.column).getLeft()},r.prototype.modifyLeftForPrintLayout=function(e){if(!this.cellCtrl.isPrintLayout()||this.column.getPinned()===Nn.PINNED_LEFT)return e;var i=this.beans.columnModel.getDisplayedColumnsLeftWidth();return this.column.getPinned()===Nn.PINNED_RIGHT?i+this.beans.columnModel.getBodyContainerWidth()+(e||0):i+(e||0)},r.prototype.applyRowSpan=function(){if(1!==this.rowSpan){var e=this.beans.gridOptionsWrapper.getRowHeightAsNumber();this.eGui.style.height=e*this.rowSpan+"px",this.eGui.style.zIndex="1"}},r.prototype.destroy=function(){t.prototype.destroy.call(this)},r}(Zi),pL=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),yB=function(t){function r(e,i){var o=t.call(this)||this;return o.staticClasses=[],o.cellCtrl=e,o.beans=i,o.column=e.getColumn(),o.rowNode=e.getRowNode(),o}return pL(r,t),r.prototype.setComp=function(e){this.cellComp=e,this.applyUserStyles(),this.applyCellClassRules(),this.applyClassesFromColDef()},r.prototype.applyCellClassRules=function(){var e=this,i=this.column.getColDef(),o={value:this.cellCtrl.getValue(),data:this.rowNode.data,node:this.rowNode,colDef:i,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()};this.beans.stylingService.processClassRules(i.cellClassRules,o,function(s){return e.cellComp.addOrRemoveCssClass(s,!0)},function(s){return e.cellComp.addOrRemoveCssClass(s,!1)})},r.prototype.applyUserStyles=function(){var e=this.column.getColDef();if(e.cellStyle){var i;if("function"==typeof e.cellStyle){var o={column:this.column,value:this.cellCtrl.getValue(),colDef:e,data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()};i=(0,e.cellStyle)(o)}else i=e.cellStyle;this.cellComp.setUserStyles(i)}},r.prototype.applyClassesFromColDef=function(){var e=this,i=this.column.getColDef(),o={value:this.cellCtrl.getValue(),data:this.rowNode.data,node:this.rowNode,colDef:i,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()};this.staticClasses.length&&this.staticClasses.forEach(function(s){return e.cellComp.addOrRemoveCssClass(s,!1)}),this.staticClasses=this.beans.stylingService.getStaticCellClasses(i,o),this.staticClasses.length&&this.staticClasses.forEach(function(s){return e.cellComp.addOrRemoveCssClass(s,!0)})},r.prototype.destroy=function(){t.prototype.destroy.call(this)},r}(Zi),bB=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),oA=function(t){function r(e,i){var o=t.call(this)||this;return o.ctrl=e,o.beans=i,o}return bB(r,t),r.prototype.setComp=function(e){this.comp=e,this.setupTooltip()},r.prototype.setupTooltip=function(){this.browserTooltips=this.beans.gridOptionsWrapper.isEnableBrowserTooltips(),this.updateTooltipText(),this.browserTooltips?this.comp.setTitle(null!=this.tooltip?this.tooltip:void 0):this.createTooltipFeatureIfNeeded()},r.prototype.updateTooltipText=function(){this.tooltip=this.ctrl.getTooltipValue()},r.prototype.createTooltipFeatureIfNeeded=function(){var e=this;null==this.genericTooltipFeature&&(this.genericTooltipFeature=this.createManagedBean(new Cm({getTooltipParams:function(){return e.getTooltipParams()},getGui:function(){return e.ctrl.getGui()}}),this.beans.context))},r.prototype.refreshToolTip=function(){this.updateTooltipText(),this.browserTooltips&&this.comp.setTitle(null!=this.tooltip?this.tooltip:void 0)},r.prototype.getTooltipParams=function(){var e=this.ctrl,i=e.getColumn?e.getColumn():void 0,o=e.getColDef?e.getColDef():void 0,s=e.getRowNode?e.getRowNode():void 0;return{location:e.getLocation(),colDef:o,column:i,rowIndex:e.getRowIndex?e.getRowIndex():void 0,node:s,data:s?s.data:void 0,value:this.getTooltipText(),valueFormatted:e.getValueFormatted?e.getValueFormatted():void 0}},r.prototype.getTooltipText=function(){return this.tooltip},r.prototype.destroy=function(){t.prototype.destroy.call(this)},r}(Zi),Sa=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},sA=function(){function t(){}return t.prototype.postConstruct=function(){this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail(),this.gridOptionsWrapper.isRowModelDefault()&&(this.clientSideRowModel=this.rowModel),this.gridOptionsWrapper.isRowModelServerSide()&&(this.serverSideRowModel=this.rowModel)},Sa([Xe("resizeObserverService")],t.prototype,"resizeObserverService",void 0),Sa([Xe("paginationProxy")],t.prototype,"paginationProxy",void 0),Sa([Xe("context")],t.prototype,"context",void 0),Sa([Xe("columnApi")],t.prototype,"columnApi",void 0),Sa([Xe("gridApi")],t.prototype,"gridApi",void 0),Sa([Xe("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Sa([Xe("expressionService")],t.prototype,"expressionService",void 0),Sa([Xe("rowRenderer")],t.prototype,"rowRenderer",void 0),Sa([Xe("templateService")],t.prototype,"templateService",void 0),Sa([Xe("valueService")],t.prototype,"valueService",void 0),Sa([Xe("eventService")],t.prototype,"eventService",void 0),Sa([Xe("columnModel")],t.prototype,"columnModel",void 0),Sa([Xe("headerNavigationService")],t.prototype,"headerNavigationService",void 0),Sa([Xe("navigationService")],t.prototype,"navigationService",void 0),Sa([Xe("columnAnimationService")],t.prototype,"columnAnimationService",void 0),Sa([_a("rangeService")],t.prototype,"rangeService",void 0),Sa([Xe("focusService")],t.prototype,"focusService",void 0),Sa([_a("contextMenuFactory")],t.prototype,"contextMenuFactory",void 0),Sa([Xe("popupService")],t.prototype,"popupService",void 0),Sa([Xe("valueFormatterService")],t.prototype,"valueFormatterService",void 0),Sa([Xe("stylingService")],t.prototype,"stylingService",void 0),Sa([Xe("columnHoverService")],t.prototype,"columnHoverService",void 0),Sa([Xe("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Sa([Xe("userComponentRegistry")],t.prototype,"userComponentRegistry",void 0),Sa([Xe("animationFrameService")],t.prototype,"animationFrameService",void 0),Sa([Xe("dragAndDropService")],t.prototype,"dragAndDropService",void 0),Sa([Xe("sortController")],t.prototype,"sortController",void 0),Sa([Xe("filterManager")],t.prototype,"filterManager",void 0),Sa([Xe("rowContainerHeightService")],t.prototype,"rowContainerHeightService",void 0),Sa([Xe("frameworkOverrides")],t.prototype,"frameworkOverrides",void 0),Sa([Xe("cellPositionUtils")],t.prototype,"cellPositionUtils",void 0),Sa([Xe("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),Sa([Xe("selectionService")],t.prototype,"selectionService",void 0),Sa([_a("selectionHandleFactory")],t.prototype,"selectionHandleFactory",void 0),Sa([Xe("rowCssClassCalculator")],t.prototype,"rowCssClassCalculator",void 0),Sa([Xe("rowModel")],t.prototype,"rowModel",void 0),Sa([Xe("ctrlsService")],t.prototype,"ctrlsService",void 0),Sa([Xe("ctrlsFactory")],t.prototype,"ctrlsFactory",void 0),Sa([Xe("agStackComponentsRegistry")],t.prototype,"agStackComponentsRegistry",void 0),Sa([Xe("valueCache")],t.prototype,"valueCache",void 0),Sa([Xe("rowNodeEventThrottle")],t.prototype,"rowNodeEventThrottle",void 0),Sa([qi],t.prototype,"postConstruct",null),Sa([Kr("beans")],t)}(),hL=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),CB=function(t){function r(e,i,o){var s=t.call(this)||this;return s.cellCtrl=e,s.beans=i,s.column=o,s}return hL(r,t),r.prototype.onMouseEvent=function(e,i){if(!Jl(i))switch(e){case"click":this.onCellClicked(i);break;case"mousedown":case"touchstart":this.onMouseDown(i);break;case"dblclick":this.onCellDoubleClicked(i);break;case"mouseout":this.onMouseOut(i);break;case"mouseover":this.onMouseOver(i)}},r.prototype.onCellClicked=function(e){if(this.isDoubleClickOnIPad())return this.onCellDoubleClicked(e),void e.preventDefault();var i=this.beans,o=i.eventService,s=i.rangeService,a=i.gridOptionsWrapper;s&&(e.ctrlKey||e.metaKey)&&s.getCellRangeCount(this.cellCtrl.getCellPosition())>1&&s.intersectLastRange(!0);var c=this.cellCtrl.createEvent(e,Et.EVENT_CELL_CLICKED);o.dispatchEvent(c);var d=this.column.getColDef();d.onCellClicked&&window.setTimeout(function(){return d.onCellClicked(c)},0),(a.isSingleClickEdit()||d.singleClickEdit)&&!a.isSuppressClickEdit()&&this.cellCtrl.startRowOrCellEdit()},r.prototype.isDoubleClickOnIPad=function(){if(!zm()||Ca("dblclick"))return!1;var e=(new Date).getTime(),i=e-this.lastIPadMouseClickEvent<200;return this.lastIPadMouseClickEvent=e,i},r.prototype.onCellDoubleClicked=function(e){var i=this.column.getColDef(),o=this.cellCtrl.createEvent(e,Et.EVENT_CELL_DOUBLE_CLICKED);this.beans.eventService.dispatchEvent(o),"function"==typeof i.onCellDoubleClicked&&window.setTimeout(function(){return i.onCellDoubleClicked(o)},0),!this.beans.gridOptionsWrapper.isSingleClickEdit()&&!this.beans.gridOptionsWrapper.isSuppressClickEdit()&&this.cellCtrl.startRowOrCellEdit(null,null,e)},r.prototype.onMouseDown=function(e){var i=e.ctrlKey,o=e.metaKey,s=e.shiftKey,a=e.target,l=this.beans,c=l.eventService,d=l.rangeService;if(!this.isRightClickInExistingRange(e)){var f=d&&0!=d.getCellRanges().length;if(!s||!f){var v=p_()&&!this.cellCtrl.isEditing()&&!Nf(a);this.cellCtrl.focusCell(v)}if(s&&f&&e.preventDefault(),!this.containsWidget(a)){if(d){var w=this.cellCtrl.getCellPosition();s?d.extendLatestRangeToCell(w):d.setRangeToCell(w,i||o)}c.dispatchEvent(this.cellCtrl.createEvent(e,Et.EVENT_CELL_MOUSE_DOWN))}}},r.prototype.isRightClickInExistingRange=function(e){var i=this.beans.rangeService;return!(!i||!i.isCellInAnyRange(this.cellCtrl.getCellPosition())||2!==e.button)},r.prototype.containsWidget=function(e){return qm(e,"ag-selection-checkbox",3)},r.prototype.onMouseOut=function(e){if(!this.mouseStayingInsideCell(e)){var i=this.cellCtrl.createEvent(e,Et.EVENT_CELL_MOUSE_OUT);this.beans.eventService.dispatchEvent(i),this.beans.columnHoverService.clearMouseOver()}},r.prototype.onMouseOver=function(e){if(!this.mouseStayingInsideCell(e)){var i=this.cellCtrl.createEvent(e,Et.EVENT_CELL_MOUSE_OVER);this.beans.eventService.dispatchEvent(i),this.beans.columnHoverService.setMouseOver([this.column])}},r.prototype.mouseStayingInsideCell=function(e){if(!e.target||!e.relatedTarget)return!1;var i=this.cellCtrl.getGui(),o=i.contains(e.target),s=i.contains(e.relatedTarget);return o&&s},r.prototype.destroy=function(){},r}(sA),wB=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),nf=function(t){function r(e,i,o,s,a){var l=t.call(this)||this;return l.cellCtrl=e,l.beans=i,l.rowNode=s,l.rowCtrl=a,l}return wB(r,t),r.prototype.setComp=function(e){this.eGui=e},r.prototype.onKeyDown=function(e){var i=e.key;switch(i){case gi.ENTER:this.onEnterKeyDown(e);break;case gi.F2:this.onF2KeyDown(e);break;case gi.ESCAPE:this.onEscapeKeyDown(e);break;case gi.TAB:this.onTabKeyDown(e);break;case gi.BACKSPACE:case gi.DELETE:this.onBackspaceOrDeleteKeyPressed(i,e);break;case gi.DOWN:case gi.UP:case gi.RIGHT:case gi.LEFT:this.onNavigationKeyPressed(e,i)}},r.prototype.onNavigationKeyPressed=function(e,i){this.cellCtrl.isEditing()||(e.shiftKey&&this.cellCtrl.isRangeSelectionEnabled()?this.onShiftRangeSelect(e):this.beans.navigationService.navigateToNextCell(e,i,this.cellCtrl.getCellPosition(),!0),e.preventDefault())},r.prototype.onShiftRangeSelect=function(e){if(this.beans.rangeService){var i=this.beans.rangeService.extendLatestRangeInDirection(e);i&&this.beans.navigationService.ensureCellVisible(i)}},r.prototype.onTabKeyDown=function(e){this.beans.navigationService.onTabKeyDown(this.cellCtrl,e)},r.prototype.onBackspaceOrDeleteKeyPressed=function(e,i){this.cellCtrl.isEditing()||this.cellCtrl.startRowOrCellEdit(e,void 0,i)},r.prototype.onEnterKeyDown=function(e){this.cellCtrl.isEditing()||this.rowCtrl.isEditing()?this.cellCtrl.stopEditingAndFocus():this.beans.gridOptionsWrapper.isEnterMovesDown()?this.beans.navigationService.navigateToNextCell(null,gi.DOWN,this.cellCtrl.getCellPosition(),!1):(this.cellCtrl.startRowOrCellEdit(gi.ENTER,void 0,e),this.cellCtrl.isEditing()&&e.preventDefault())},r.prototype.onF2KeyDown=function(e){this.cellCtrl.isEditing()||this.cellCtrl.startRowOrCellEdit(gi.F2,void 0,e)},r.prototype.onEscapeKeyDown=function(e){this.cellCtrl.isEditing()&&(this.cellCtrl.stopRowOrCellEdit(!0),this.cellCtrl.focusCell(!0))},r.prototype.onKeyPress=function(e){if(e.target===this.eGui&&!this.cellCtrl.isEditing()){var s=String.fromCharCode(e.charCode);" "===s?this.onSpaceKeyPressed(e):b_(e)&&(this.cellCtrl.startRowOrCellEdit(null,s,e),e.preventDefault())}},r.prototype.onSpaceKeyPressed=function(e){var i=this.beans.gridOptionsWrapper;if(!this.cellCtrl.isEditing()&&i.isRowSelection()){var o=this.rowNode.isSelected(),s=!o;if(s||!i.isSuppressRowDeselection()){var a=this.beans.gridOptionsWrapper.isGroupSelectsFiltered(),l=this.rowNode.setSelectedParams({newValue:s,rangeSelect:e.shiftKey,groupSelectsFiltered:a});void 0===o&&0===l&&this.rowNode.setSelectedParams({newValue:!1,rangeSelect:e.shiftKey,groupSelectsFiltered:a})}}e.preventDefault()},r.prototype.destroy=function(){},r}(Zi),TB=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),CK=function(t){function r(e,i,o,s){var a=t.call(this,'<div class="ag-drag-handle ag-row-drag" draggable="true"></div>')||this;return a.rowNode=e,a.column=i,a.beans=o,a.eCell=s,a}return TB(r,t),r.prototype.postConstruct=function(){this.getGui().appendChild(Oc("rowDrag",this.beans.gridOptionsWrapper,null)),this.addGuiEventListener("mousedown",function(i){i.stopPropagation()}),this.addDragSource(),this.checkVisibility()},r.prototype.addDragSource=function(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))},r.prototype.onDragStart=function(e){var i=this,o=this.column.getColDef().dndSourceOnRowDrag;e.dataTransfer.setDragImage(this.eCell,0,0),o?o({rowNode:this.rowNode,dragEvent:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}):function(){try{var l=JSON.stringify(i.rowNode.data);e.dataTransfer.setData("application/json",l),e.dataTransfer.setData("text/plain",l)}catch{}}()},r.prototype.checkVisibility=function(){var e=this.column.isDndSource(this.rowNode);this.setDisplayed(e)},function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);o>3&&s&&Object.defineProperty(r,e,s)}([qi],r.prototype,"postConstruct",null),r}(Do),aA=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),tS=function(){return tS=Object.assign||function(t){for(var r,e=1,i=arguments.length;e<i;e++)for(var o in r=arguments[e])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t},tS.apply(this,arguments)},dE="ag-cell-not-inline-editing",lA=0,B1=function(t){function r(e,i,o,s){var a=t.call(this)||this;return a.suppressRefreshCell=!1,a.column=e,a.rowNode=i,a.beans=o,a.rowCtrl=s,a.instanceId=e.getId()+"-"+lA++,a.createCellPosition(),a.addFeatures(),a}return aA(r,t),r.prototype.addFeatures=function(){var e=this;this.cellPositionFeature=new _B(this,this.beans),this.addDestroyFunc(function(){return e.cellPositionFeature.destroy()}),this.cellCustomStyleFeature=new yB(this,this.beans),this.addDestroyFunc(function(){return e.cellCustomStyleFeature.destroy()}),this.cellMouseListenerFeature=new CB(this,this.beans,this.column),this.addDestroyFunc(function(){return e.cellMouseListenerFeature.destroy()}),this.cellKeyboardListenerFeature=new nf(this,this.beans,this.column,this.rowNode,this.rowCtrl),this.addDestroyFunc(function(){return e.cellKeyboardListenerFeature.destroy()}),this.beans.rangeService&&this.beans.gridOptionsWrapper.isEnableRangeSelection()&&(this.cellRangeFeature=new gB(this.beans,this),this.addDestroyFunc(function(){return e.cellRangeFeature.destroy()})),this.addTooltipFeature()},r.prototype.addTooltipFeature=function(){var e=this;this.tooltipFeature=new oA({getColumn:function(){return e.column},getColDef:function(){return e.column.getColDef()},getRowIndex:function(){return e.cellPosition.rowIndex},getRowNode:function(){return e.rowNode},getGui:function(){return e.getGui()},getLocation:function(){return"cell"},getTooltipValue:function(){var s=e.column.getColDef(),a=e.rowNode.data;if(s.tooltipField&&rr(a))return v0(a,s.tooltipField,e.column.isTooltipFieldContainsDots());var l=s.tooltipValueGetter;return l?l({location:"cell",api:e.beans.gridOptionsWrapper.getApi(),columnApi:e.beans.gridOptionsWrapper.getColumnApi(),context:e.beans.gridOptionsWrapper.getContext(),colDef:e.column.getColDef(),column:e.column,rowIndex:e.cellPosition.rowIndex,node:e.rowNode,data:e.rowNode.data,value:e.value,valueFormatted:e.valueFormatted}):null},getValueFormatted:function(){return e.valueFormatted}},this.beans),this.addDestroyFunc(function(){return e.tooltipFeature.destroy()})},r.prototype.setComp=function(e,i,o,s,a){this.cellComp=e,this.gow=this.beans.gridOptionsWrapper,this.eGui=i,this.eCellWrapper=o,this.printLayout=s,this.updateAndFormatValue(!0),this.addDomData(),this.onCellFocused(),this.applyStaticCssClasses(),this.setWrapText(),this.onFirstRightPinnedChanged(),this.onLastLeftPinnedChanged(),this.onColumnHover(),this.setupControlComps(),this.setupAutoHeight(),this.setAriaColIndex(),this.gow.isSuppressCellFocus()||this.cellComp.setTabIndex(-1);var l=Ju(this.column.getId());this.cellComp.setColId(l),this.cellComp.setRole("gridcell"),this.cellPositionFeature.setComp(i),this.cellCustomStyleFeature.setComp(e),this.tooltipFeature.setComp(e),this.cellKeyboardListenerFeature.setComp(this.eGui),this.cellRangeFeature&&this.cellRangeFeature.setComp(e,i),a&&this.isCellEditable()?this.startEditing():this.showValue()},r.prototype.setupAutoHeight=function(){var e=this;if(this.column.isAutoHeight()){var i=this.eCellWrapper,o=i.parentElement,s=this.beans.gridOptionsWrapper.getRowHeightForNode(this.rowNode).height,a=function(d){if(!e.editing&&e.isAlive()){var f=D0(o),I=i.offsetHeight+f.paddingTop+f.paddingBottom;if(d<5){var M=e.beans.gridOptionsWrapper.getDocument();if(!M||!M.contains(i)||0==I)return void e.beans.frameworkOverrides.setTimeout(function(){return a(d+1)},0)}var pe=Math.max(I,s);e.rowNode.setRowAutoHeight(pe,e.column)}},l=function(){return a(0)};l();var c=this.beans.resizeObserverService.observeResize(i,l);this.addDestroyFunc(function(){c(),e.rowNode.setRowAutoHeight(void 0,e.column)})}},r.prototype.getInstanceId=function(){return this.instanceId},r.prototype.showValue=function(e){void 0===e&&(e=!1);var i=null!=this.valueFormatted?this.valueFormatted:this.value,o=this.createCellRendererParams(),s=this.beans.userComponentFactory.getCellRendererDetails(this.column.getColDef(),o);this.cellComp.setRenderDetails(s,i,e),this.refreshHandle()},r.prototype.setupControlComps=function(){var e=this.column.getColDef();this.includeSelection=this.isIncludeControl(e.checkboxSelection),this.includeRowDrag=this.isIncludeControl(e.rowDrag),this.includeDndSource=this.isIncludeControl(e.dndSource),this.cellComp.setIncludeSelection(this.includeSelection),this.cellComp.setIncludeDndSource(this.includeDndSource),this.cellComp.setIncludeRowDrag(this.includeRowDrag)},r.prototype.isForceWrapper=function(){return this.beans.gridOptionsWrapper.isEnableCellTextSelection()||this.column.isAutoHeight()},r.prototype.isIncludeControl=function(e){return!(null!=this.rowNode.rowPinned||"function"!=typeof e&&!0!==e)},r.prototype.refreshShouldDestroy=function(){var e=this.column.getColDef(),i=this.includeSelection!=this.isIncludeControl(e.checkboxSelection),o=this.includeRowDrag!=this.isIncludeControl(e.rowDrag),s=this.includeDndSource!=this.isIncludeControl(e.dndSource);return i||o||s},r.prototype.startEditing=function(e,i,o,s){var a,l;if(void 0===e&&(e=null),void 0===i&&(i=null),void 0===o&&(o=!1),void 0===s&&(s=null),this.isCellEditable()&&!this.editing){var c=this.createCellEditorParams(e,i,o),d=this.column.getColDef(),f=this.beans.userComponentFactory.getCellEditorDetails(d,c),v=null!=(null===(a=f)||void 0===a?void 0:a.popupFromSelector)?f.popupFromSelector:!!d.cellEditorPopup,w=null!=(null===(l=f)||void 0===l?void 0:l.popupPositionFromSelector)?f.popupPositionFromSelector:d.cellEditorPopupPosition;this.setEditing(!0,v),this.cellComp.setEditDetails(f,v,w);var x=this.createEvent(s,Et.EVENT_CELL_EDITING_STARTED);this.beans.eventService.dispatchEvent(x)}},r.prototype.setEditing=function(e,i){void 0===i&&(i=!1),this.editing!==e&&(this.editing=e,this.editingInPopup=i,this.setInlineEditingClass())},r.prototype.stopRowOrCellEdit=function(e){void 0===e&&(e=!1),this.beans.gridOptionsWrapper.isFullRowEdit()?this.rowCtrl.stopRowEditing(e):this.stopEditing(e)},r.prototype.onPopupEditorClosed=function(){this.isEditing()&&this.stopEditingAndFocus()},r.prototype.takeValueFromCellEditor=function(e){var i={newValueExists:!1};if(e)return i;var o=this.cellComp.getCellEditor();return o?o.isCancelAfterEnd&&o.isCancelAfterEnd()?i:{newValue:o.getValue(),newValueExists:!0}:i},r.prototype.saveNewValue=function(e,i){if(i===e)return!1;if(this.beans.gridOptionsWrapper.isReadOnlyEdit())return this.dispatchEventForSaveValueReadOnly(e,i),!1;this.suppressRefreshCell=!0;var o=this.rowNode.setDataValue(this.column,i);return this.suppressRefreshCell=!1,o},r.prototype.dispatchEventForSaveValueReadOnly=function(e,i){var o=this.rowNode,s={type:Et.EVENT_CELL_EDIT_REQUEST,event:null,rowIndex:o.rowIndex,rowPinned:o.rowPinned,column:this.column,api:this.beans.gridApi,columnApi:this.beans.columnApi,colDef:this.column.getColDef(),context:this.beans.gridOptionsWrapper.getContext(),data:o.data,node:o,oldValue:e,newValue:i,value:i,source:void 0};this.beans.eventService.dispatchEvent(s)},r.prototype.stopEditing=function(e){if(void 0===e&&(e=!1),!this.editing)return!1;var i=this.takeValueFromCellEditor(e),o=i.newValue,s=i.newValueExists,a=this.getValueFromValueService(),l=!1;return s&&(l=this.saveNewValue(a,o)),this.setEditing(!1),this.cellComp.setEditDetails(),this.updateAndFormatValue(),this.refreshCell({forceRefresh:!0,suppressFlash:!0}),this.dispatchEditingStoppedEvent(a,o),l},r.prototype.dispatchEditingStoppedEvent=function(e,i){var o=tS(tS({},this.createEvent(null,Et.EVENT_CELL_EDITING_STOPPED)),{oldValue:e,newValue:i});this.beans.eventService.dispatchEvent(o)},r.prototype.setInlineEditingClass=function(){if(this.isAlive()){var e=this.editing&&!this.editingInPopup,i=this.editing&&this.editingInPopup;this.cellComp.addOrRemoveCssClass("ag-cell-inline-editing",e),this.cellComp.addOrRemoveCssClass(dE,!e),this.cellComp.addOrRemoveCssClass("ag-cell-popup-editing",i),this.rowCtrl.setInlineEditingCss(this.editing)}},r.prototype.hackSayEditingInPopup=function(){this.editingInPopup||(this.editingInPopup=!0,this.setInlineEditingClass())},r.prototype.createCellEditorParams=function(e,i,o){return{value:this.getValueFromValueService(),key:e,eventKey:e,charPress:i,column:this.column,colDef:this.column.getColDef(),rowIndex:this.getCellPosition().rowIndex,node:this.rowNode,data:this.rowNode.data,api:this.beans.gridOptionsWrapper.getApi(),cellStartedEdit:o,columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),onKeyDown:this.onKeyDown.bind(this),stopEditing:this.stopEditingAndFocus.bind(this),eGridCell:this.getGui(),parseValue:this.parseValue.bind(this),formatValue:this.formatValue.bind(this)}},r.prototype.createCellRendererParams=function(){var e=this;return{value:this.value,valueFormatted:this.valueFormatted,getValue:this.getValueFromValueService.bind(this),setValue:function(s){return e.beans.valueService.setValue(e.rowNode,e.column,s)},formatValue:this.formatValue.bind(this),data:this.rowNode.data,node:this.rowNode,pinned:this.column.getPinned(),colDef:this.column.getColDef(),column:this.column,rowIndex:this.getCellPosition().rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),refreshCell:this.refreshCell.bind(this),eGridCell:this.getGui(),eParentOfValue:this.cellComp.getParentOfValue(),registerRowDragger:function(s,a,l,c){return e.registerRowDragger(s,a,c)},addRowCompListener:function(s,a){console.warn("AG Grid: since AG Grid v26, params.addRowCompListener() is deprecated. If you need this functionality, please contact AG Grid support and advise why so that we can revert with an appropriate workaround, as we dont have any valid use cases for it. This method was originally provided as a work around to know when cells were destroyed in AG Grid before custom Cell Renderers could be provided."),e.rowCtrl.addEventListener(s,a)}}},r.prototype.parseValue=function(e){var i=this.column.getColDef(),o={node:this.rowNode,data:this.rowNode.data,oldValue:this.getValue(),newValue:e,colDef:i,column:this.column,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()},s=i.valueParser;return rr(s)?this.beans.expressionService.evaluate(s,o):e},r.prototype.setFocusOutOnEditor=function(){if(this.editing){var e=this.cellComp.getCellEditor();e&&e.focusOut&&e.focusOut()}},r.prototype.setFocusInOnEditor=function(){if(this.editing){var e=this.cellComp.getCellEditor();e&&e.focusIn?e.focusIn():this.focusCell(!0)}},r.prototype.onCellChanged=function(e){this.cellComp&&e.column===this.column&&this.refreshCell({})},r.prototype.refreshCell=function(e){if(!this.suppressRefreshCell&&!this.editing&&this.cellComp){var i=this.column.getColDef(),o=null!=e&&!!e.newData,s=null!=e&&!!e.suppressFlash||!!i.suppressCellFlash,l=e&&e.forceRefresh||null==i.field&&null==i.valueGetter&&null==i.showRowGroup||o,c=this.updateAndFormatValue();if(l||c){this.showValue(o);var f=this.beans.filterManager.isSuppressFlashingCellsBecauseFiltering();!s&&!f&&(this.beans.gridOptionsWrapper.isEnableCellChangeFlash()||i.enableCellChangeFlash)&&this.flashCell(),this.cellCustomStyleFeature.applyUserStyles(),this.cellCustomStyleFeature.applyClassesFromColDef()}this.refreshToolTip(),this.cellCustomStyleFeature.applyCellClassRules()}},r.prototype.stopEditingAndFocus=function(e){void 0===e&&(e=!1),this.stopRowOrCellEdit(),this.focusCell(!0),e||this.navigateAfterEdit()},r.prototype.navigateAfterEdit=function(){this.beans.gridOptionsWrapper.isFullRowEdit()||this.beans.gridOptionsWrapper.isEnterMovesDownAfterEdit()&&this.beans.navigationService.navigateToNextCell(null,gi.DOWN,this.getCellPosition(),!1)},r.prototype.flashCell=function(e){this.animateCell("data-changed",e&&e.flashDelay,e&&e.fadeDelay)},r.prototype.animateCell=function(e,i,o){var s=this,a="ag-cell-"+e,l="ag-cell-"+e+"-animation",c=this.beans.gridOptionsWrapper;i||(i=c.getCellFlashDelay()),rr(o)||(o=c.getCellFadeDelay()),this.cellComp.addOrRemoveCssClass(a,!0),this.cellComp.addOrRemoveCssClass(l,!1),window.setTimeout(function(){s.isAlive()&&(s.cellComp.addOrRemoveCssClass(a,!1),s.cellComp.addOrRemoveCssClass(l,!0),s.eGui.style.transition="background-color "+o+"ms",window.setTimeout(function(){s.isAlive()&&(s.cellComp.addOrRemoveCssClass(l,!1),s.eGui.style.transition="")},o))},i)},r.prototype.onFlashCells=function(e){if(this.cellComp){var i=this.beans.cellPositionUtils.createId(this.getCellPosition());e.cells[i]&&this.animateCell("highlight")}},r.prototype.isCellEditable=function(){return this.column.isCellEditable(this.rowNode)},r.prototype.isSuppressFillHandle=function(){return this.column.isSuppressFillHandle()},r.prototype.formatValue=function(e){return this.callValueFormatter(e)??e},r.prototype.callValueFormatter=function(e){return this.beans.valueFormatterService.formatValue(this.column,this.rowNode,e)},r.prototype.updateAndFormatValue=function(e){void 0===e&&(e=!1);var i=this.value,o=this.valueFormatted;return this.value=this.getValueFromValueService(),this.valueFormatted=this.callValueFormatter(this.value),!!e||!this.valuesAreEqual(i,this.value)||this.valueFormatted!=o},r.prototype.valuesAreEqual=function(e,i){var o=this.column.getColDef();return o.equals?o.equals(e,i):e===i},r.prototype.getComp=function(){return this.cellComp},r.prototype.getValueFromValueService=function(){var e=this.rowNode.leafGroup&&this.beans.columnModel.isPivotMode(),i=this.rowNode.group&&this.rowNode.expanded&&!this.rowNode.footer&&!e,o=this.beans.gridOptionsWrapper.isGroupIncludeFooter(),s=this.beans.gridOptionsWrapper.isGroupSuppressBlankHeader();return this.beans.valueService.getValue(this.column,this.rowNode,!1,i&&o&&!s)},r.prototype.getValue=function(){return this.value},r.prototype.getValueFormatted=function(){return this.valueFormatted},r.prototype.addDomData=function(){var e=this,i=this.getGui();this.beans.gridOptionsWrapper.setDomData(i,r.DOM_DATA_KEY_CELL_CTRL,this),this.addDestroyFunc(function(){return e.beans.gridOptionsWrapper.setDomData(i,r.DOM_DATA_KEY_CELL_CTRL,null)})},r.prototype.createEvent=function(e,i){return{type:i,node:this.rowNode,data:this.rowNode.data,value:this.value,column:this.column,colDef:this.column.getColDef(),context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridApi,columnApi:this.beans.columnApi,rowPinned:this.rowNode.rowPinned,event:e,rowIndex:this.rowNode.rowIndex}},r.prototype.onKeyPress=function(e){this.cellKeyboardListenerFeature.onKeyPress(e)},r.prototype.onKeyDown=function(e){this.cellKeyboardListenerFeature.onKeyDown(e)},r.prototype.onMouseEvent=function(e,i){this.cellMouseListenerFeature.onMouseEvent(e,i)},r.prototype.getGui=function(){return this.eGui},r.prototype.refreshToolTip=function(){this.tooltipFeature.refreshToolTip()},r.prototype.getColSpanningList=function(){return this.cellPositionFeature.getColSpanningList()},r.prototype.onLeftChanged=function(){this.cellComp&&this.cellPositionFeature.onLeftChanged()},r.prototype.onDisplayedColumnsChanged=function(){this.eGui&&this.setAriaColIndex()},r.prototype.setAriaColIndex=function(){var e=this.beans.columnModel.getAriaColumnIndex(this.column);Ll(this.getGui(),e)},r.prototype.isSuppressNavigable=function(){return this.column.isSuppressNavigable(this.rowNode)},r.prototype.onWidthChanged=function(){return this.cellPositionFeature.onWidthChanged()},r.prototype.getColumn=function(){return this.column},r.prototype.getRowNode=function(){return this.rowNode},r.prototype.getBeans=function(){return this.beans},r.prototype.isPrintLayout=function(){return this.printLayout},r.prototype.appendChild=function(e){this.eGui.appendChild(e)},r.prototype.refreshHandle=function(){this.editing||this.cellRangeFeature&&this.cellRangeFeature.refreshHandle()},r.prototype.getCellPosition=function(){return this.cellPosition},r.prototype.isEditing=function(){return this.editing},r.prototype.startRowOrCellEdit=function(e,i,o){void 0===o&&(o=null),this.beans.gridOptionsWrapper.isFullRowEdit()?this.rowCtrl.startRowEditing(e,i,this):this.startEditing(e,i,!0,o)},r.prototype.getRowCtrl=function(){return this.rowCtrl},r.prototype.getRowPosition=function(){return{rowIndex:this.cellPosition.rowIndex,rowPinned:this.cellPosition.rowPinned}},r.prototype.updateRangeBordersIfRangeCount=function(){this.cellComp&&this.cellRangeFeature&&this.cellRangeFeature.updateRangeBordersIfRangeCount()},r.prototype.onRangeSelectionChanged=function(){this.cellComp&&this.cellRangeFeature&&this.cellRangeFeature.onRangeSelectionChanged()},r.prototype.isRangeSelectionEnabled=function(){return null!=this.cellRangeFeature},r.prototype.focusCell=function(e){void 0===e&&(e=!1),this.beans.focusService.setFocusedCell({rowIndex:this.getCellPosition().rowIndex,column:this.column,rowPinned:this.rowNode.rowPinned,forceBrowserFocus:e})},r.prototype.onRowIndexChanged=function(){this.createCellPosition(),this.onCellFocused(),this.cellRangeFeature&&this.cellRangeFeature.onRangeSelectionChanged()},r.prototype.onFirstRightPinnedChanged=function(){if(this.cellComp){var e=this.column.isFirstRightPinned();this.cellComp.addOrRemoveCssClass("ag-cell-first-right-pinned",e)}},r.prototype.onLastLeftPinnedChanged=function(){if(this.cellComp){var e=this.column.isLastLeftPinned();this.cellComp.addOrRemoveCssClass("ag-cell-last-left-pinned",e)}},r.prototype.onCellFocused=function(e){if(this.cellComp&&!this.gow.isSuppressCellFocus()){var i=this.beans.focusService.isCellFocused(this.cellPosition);this.cellComp.addOrRemoveCssClass("ag-cell-focus",i),i&&e&&e.forceBrowserFocus&&this.cellComp.getFocusableElement().focus({preventScroll:!!e.preventScrollOnBrowserFocus});var s=this.beans.gridOptionsWrapper.isFullRowEdit();!i&&!s&&this.editing&&this.stopRowOrCellEdit()}},r.prototype.createCellPosition=function(){this.cellPosition={rowIndex:this.rowNode.rowIndex,rowPinned:vp(this.rowNode.rowPinned),column:this.column}},r.prototype.applyStaticCssClasses=function(){this.cellComp.addOrRemoveCssClass("ag-cell",!0),this.cellComp.addOrRemoveCssClass(dE,!0);var e=1==this.column.isAutoHeight();this.cellComp.addOrRemoveCssClass("ag-cell-auto-height",e),this.cellComp.addOrRemoveCssClass("ag-cell-normal-height",!e)},r.prototype.onColumnHover=function(){if(this.cellComp&&this.beans.gridOptionsWrapper.isColumnHoverHighlight()){var e=this.beans.columnHoverService.isHovered(this.column);this.cellComp.addOrRemoveCssClass("ag-column-hover",e)}},r.prototype.onNewColumnsLoaded=function(){this.cellComp&&(this.setWrapText(),this.editing||this.refreshCell({forceRefresh:!0,suppressFlash:!0}))},r.prototype.setWrapText=function(){var e=1==this.column.getColDef().wrapText;this.cellComp.addOrRemoveCssClass("ag-cell-wrap-text",e)},r.prototype.dispatchCellContextMenuEvent=function(e){var i=this.column.getColDef(),o=this.createEvent(e,Et.EVENT_CELL_CONTEXT_MENU);this.beans.eventService.dispatchEvent(o),i.onCellContextMenu&&window.setTimeout(function(){return i.onCellContextMenu(o)},0)},r.prototype.getCellRenderer=function(){return this.cellComp?this.cellComp.getCellRenderer():null},r.prototype.getCellEditor=function(){return this.cellComp?this.cellComp.getCellEditor():null},r.prototype.destroy=function(){t.prototype.destroy.call(this)},r.prototype.createSelectionCheckbox=function(){var e=new UP;return this.beans.context.createBean(e),e.init({rowNode:this.rowNode,column:this.column}),e},r.prototype.createDndSource=function(){var e=new CK(this.rowNode,this.column,this.beans,this.eGui);return this.beans.context.createBean(e),e},r.prototype.registerRowDragger=function(e,i,o){var s=this;if(this.customRowDragComp)this.customRowDragComp.setDragElement(e,i);else{var a=this.createRowDragComp(e,i,o);a&&(this.customRowDragComp=a,this.addDestroyFunc(function(){return s.beans.context.destroyBean(a)}))}},r.prototype.createRowDragComp=function(e,i,o){var s=this,a=this.beans.gridOptionsWrapper.isPagination(),l=this.beans.gridOptionsWrapper.isRowDragManaged(),c=this.beans.gridOptionsWrapper.isRowModelDefault();if(l){if(!c)return void sa(function(){return console.warn("AG Grid: managed row dragging is only allowed in the Client Side Row Model")},"CellComp.addRowDragging");if(a)return void sa(function(){return console.warn("AG Grid: managed row dragging is not possible when doing pagination")},"CellComp.addRowDragging")}var d=new VI(function(){return s.value},this.rowNode,this.column,e,i,o);return this.beans.context.createBean(d),d},r.DOM_DATA_KEY_CELL_CTRL="cellCtrl",r}(Zi),iv=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),cA=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var o,a,i=e.call(t),s=[];try{for(;(void 0===r||r-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return s},Hf=function(t){return t.Normal="Normal",t.FullWidth="FullWidth",t.FullWidthLoading="FullWidthLoading",t.FullWidthGroup="FullWidthGroup",t.FullWidthDetail="FullWidthDetail",t}(Hf||{}),mL=0,Y0=function(t){function r(e,i,o,s,a){var l=t.call(this)||this;return l.allRowGuis=[],l.active=!0,l.centerCellCtrls={list:[],map:{}},l.leftCellCtrls={list:[],map:{}},l.rightCellCtrls={list:[],map:{}},l.lastMouseDownOnDragger=!1,l.updateColumnListsPending=!1,l.beans=i,l.rowNode=e,l.paginationPage=l.beans.paginationProxy.getCurrentPage(),l.useAnimationFrameForCreate=s,l.printLayout=a,l.instanceId=e.id+"-"+mL++,l.setAnimateFlags(o),l.rowFocused=l.beans.focusService.isRowFocused(l.rowNode.rowIndex,l.rowNode.rowPinned),l.rowLevel=l.beans.rowCssClassCalculator.calculateRowLevel(l.rowNode),l.setRowType(),l.addListeners(),l}return iv(r,t),r.prototype.isSticky=function(){return this.rowNode.sticky},r.prototype.getBeans=function(){return this.beans},r.prototype.getInstanceId=function(){return this.instanceId},r.prototype.setComp=function(e,i,o){var s={rowComp:e,element:i,containerType:o};this.allRowGuis.push(s),o===Uf.LEFT?this.leftGui=s:o===Uf.RIGHT?this.rightGui=s:o===Uf.FULL_WIDTH?this.fullWidthGui=s:this.centerGui=s,(null!=this.leftGui&&null!=this.rightGui&&null!=this.centerGui||null!=this.fullWidthGui)&&this.initialiseRowComps()},r.prototype.isCacheable=function(){return this.rowType===Hf.FullWidthDetail&&this.beans.gridOptionsWrapper.isKeepDetailRows()},r.prototype.setCached=function(e){var i=e?"none":"";this.allRowGuis.forEach(function(o){return o.element.style.display=i})},r.prototype.initialiseRowComps=function(){var e=this,i=this.beans.gridOptionsWrapper;this.onRowHeightChanged(),this.updateRowIndexes(),this.setFocusedClasses(),this.setStylesFromGridOptions(),i.isRowSelection()&&this.rowNode.selectable&&this.onRowSelected(),this.updateColumnLists(!this.useAnimationFrameForCreate),this.slideRowIn&&b0(this.onTopChanged.bind(this)),this.fadeRowIn&&b0(function(){e.allRowGuis.forEach(function(l){return l.rowComp.addOrRemoveCssClass("ag-opacity-zero",!1)})});var o=this.getRowBusinessKey(),s=Ju(this.rowNode.id),a=Ju(o);this.allRowGuis.forEach(function(l){var c=l.rowComp;c.setRole("row"),e.getInitialRowClasses(l.containerType).forEach(function(f){return c.addOrRemoveCssClass(f,!0)}),e.rowNode.group&&Yr(l.element,1==e.rowNode.expanded),null!=s&&c.setRowId(s),null!=a&&c.setRowBusinessKey(a),e.isFullWidth()&&!e.beans.gridOptionsWrapper.isSuppressCellFocus()&&c.setTabIndex(-1),i.setDomData(l.element,r.DOM_DATA_KEY_ROW_CTRL,e),e.addDestroyFunc(function(){return i.setDomData(l.element,r.DOM_DATA_KEY_ROW_CTRL,null)}),e.useAnimationFrameForCreate?e.beans.animationFrameService.createTask(e.addHoverFunctionality.bind(e,l.element),e.rowNode.rowIndex,"createTasksP2"):e.addHoverFunctionality(l.element),e.isFullWidth()&&e.setupFullWidth(l),i.isRowDragEntireRow()&&e.addRowDraggerToRow(l),e.useAnimationFrameForCreate&&e.beans.animationFrameService.addDestroyTask(function(){e.isAlive()&&l.rowComp.addOrRemoveCssClass("ag-after-created",!0)})}),this.executeProcessRowPostCreateFunc()},r.prototype.addRowDraggerToRow=function(e){if(this.beans.gridOptionsWrapper.isEnableRangeSelection())sa(function(){console.warn("AG Grid: Setting `rowDragEntireRow: true` in the gridOptions doesn't work with `enableRangeSelection: true`")},"rowDragAndRangeSelectionEnabled");else{var o=new VI(function(){return"1 row"},this.rowNode,void 0,e.element,void 0,!0);this.createManagedBean(o,this.beans.context)}},r.prototype.setupFullWidth=function(e){var i=this.getPinnedForContainer(e.containerType),o=this.createFullWidthParams(e.element,i),s=qo.isRegistered(mo.MasterDetailModule);if(this.rowType!=Hf.FullWidthDetail||s){var a;switch(this.rowType){case Hf.FullWidthDetail:a=this.beans.userComponentFactory.getFullWidthDetailCellRendererDetails(o);break;case Hf.FullWidthGroup:a=this.beans.userComponentFactory.getFullWidthGroupCellRendererDetails(o);break;case Hf.FullWidthLoading:a=this.beans.userComponentFactory.getFullWidthLoadingCellRendererDetails(o);break;default:a=this.beans.userComponentFactory.getFullWidthCellRendererDetails(o)}e.rowComp.showFullWidth(a)}else qo.isPackageBased()?console.warn("AG Grid: cell renderer 'agDetailCellRenderer' (for master detail) not found. Can only be used with ag-grid-enterprise package."):console.warn("AG Grid: cell renderer 'agDetailCellRenderer' (for master detail) not found. Can only be used with AG Grid Enterprise Module "+mo.MasterDetailModule)},r.prototype.isPrintLayout=function(){return this.printLayout},r.prototype.getCellElement=function(e){var i=this.getCellCtrl(e);return i?i.getGui():null},r.prototype.executeProcessRowPostCreateFunc=function(){var e=this.beans.gridOptionsWrapper.getProcessRowPostCreateFunc();e&&e({eRow:this.centerGui?this.centerGui.element:void 0,ePinnedLeftRow:this.leftGui?this.leftGui.element:void 0,ePinnedRightRow:this.rightGui?this.rightGui.element:void 0,node:this.rowNode,rowIndex:this.rowNode.rowIndex,addRenderedRowListener:this.addEventListener.bind(this)})},r.prototype.setRowType=function(){var e=this.rowNode.stub,i=this.rowNode.isFullWidthCell(),o=this.beans.doingMasterDetail&&this.rowNode.detail,s=this.beans.columnModel.isPivotMode(),l=!!this.rowNode.group&&!this.rowNode.footer&&this.beans.gridOptionsWrapper.isGroupUseEntireRow(s);this.rowType=e?Hf.FullWidthLoading:o?Hf.FullWidthDetail:i?Hf.FullWidth:l?Hf.FullWidthGroup:Hf.Normal},r.prototype.updateColumnLists=function(e){var i=this;if(void 0===e&&(e=!1),!this.isFullWidth()){if(e||this.beans.gridOptionsWrapper.isSuppressAnimationFrame()||this.printLayout)return void this.updateColumnListsImpl();this.updateColumnListsPending||(this.beans.animationFrameService.createTask(function(){i.active&&i.updateColumnListsImpl()},this.rowNode.rowIndex,"createTasksP1"),this.updateColumnListsPending=!0)}},r.prototype.createCellCtrls=function(e,i,o){var s=this;void 0===o&&(o=null);var a={list:[],map:{}},l=function(c,d){a.list.push(d),a.map[c]=d};return i.forEach(function(c){var d=c.getInstanceId(),f=e.map[d];f||(f=new B1(c,s.rowNode,s.beans,s)),l(d,f)}),e.list.forEach(function(c){if(null==a.map[c.getColumn().getInstanceId()]){if(!s.isCellEligibleToBeRemoved(c,o))return void l(c.getColumn().getInstanceId(),c);c.destroy()}}),a},r.prototype.updateColumnListsImpl=function(){var e=this;this.updateColumnListsPending=!1;var i=this.beans.columnModel;if(this.printLayout)this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,i.getAllDisplayedColumns()),this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}};else{var o=i.getViewportCenterColumnsForRow(this.rowNode);this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,o);var s=i.getDisplayedLeftColumnsForRow(this.rowNode);this.leftCellCtrls=this.createCellCtrls(this.leftCellCtrls,s,Nn.PINNED_LEFT);var a=i.getDisplayedRightColumnsForRow(this.rowNode);this.rightCellCtrls=this.createCellCtrls(this.rightCellCtrls,a,Nn.PINNED_RIGHT)}this.allRowGuis.forEach(function(l){l.rowComp.setCellCtrls((l.containerType===Uf.LEFT?e.leftCellCtrls:l.containerType===Uf.RIGHT?e.rightCellCtrls:e.centerCellCtrls).list)})},r.prototype.isCellEligibleToBeRemoved=function(e,i){var o=!0;if(e.getColumn().getPinned()!=i)return o;var l=e.isEditing(),c=this.beans.focusService.isCellFocused(e.getCellPosition());if(l||c){var f=e.getColumn();return!(this.beans.columnModel.getAllDisplayedColumns().indexOf(f)>=0)&&o}return o},r.prototype.setAnimateFlags=function(e){if(!this.isSticky()&&e){var i=rr(this.rowNode.oldRowTop);this.slideRowIn=i,this.fadeRowIn=!i}else this.slideRowIn=!1,this.fadeRowIn=!1},r.prototype.isEditing=function(){return this.editingRow},r.prototype.stopRowEditing=function(e){this.stopEditing(e)},r.prototype.isFullWidth=function(){return this.rowType!==Hf.Normal},r.prototype.getRowType=function(){return this.rowType},r.prototype.refreshFullWidth=function(){var e=this,i=function(d,f){if(!d)return!0;var v=d.rowComp.getFullWidthCellRenderer();if(!v||!v.refresh)return!1;var w=e.createFullWidthParams(d.element,f);return v.refresh(w)},o=i(this.fullWidthGui,null),s=i(this.centerGui,null),a=i(this.leftGui,Nn.PINNED_LEFT),l=i(this.rightGui,Nn.PINNED_RIGHT);return o&&s&&a&&l},r.prototype.addListeners=function(){this.addManagedListener(this.rowNode,Ta.EVENT_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.rowNode,Ta.EVENT_ROW_SELECTED,this.onRowSelected.bind(this)),this.addManagedListener(this.rowNode,Ta.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addManagedListener(this.rowNode,Ta.EVENT_TOP_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(this.rowNode,Ta.EVENT_EXPANDED_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,Ta.EVENT_HAS_CHILDREN_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,Ta.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addManagedListener(this.rowNode,Ta.EVENT_CELL_CHANGED,this.onRowNodeCellChanged.bind(this)),this.addManagedListener(this.rowNode,Ta.EVENT_HIGHLIGHT_CHANGED,this.onRowNodeHighlightChanged.bind(this)),this.addManagedListener(this.rowNode,Ta.EVENT_DRAGGING_CHANGED,this.onRowNodeDraggingChanged.bind(this)),this.addManagedListener(this.rowNode,Ta.EVENT_UI_LEVEL_CHANGED,this.onUiLevelChanged.bind(this));var e=this.beans.eventService;this.addManagedListener(e,Et.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,this.onPaginationPixelOffsetChanged.bind(this)),this.addManagedListener(e,Et.EVENT_HEIGHT_SCALE_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(e,Et.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(e,Et.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(e,Et.EVENT_CELL_FOCUSED,this.onCellFocusChanged.bind(this)),this.addManagedListener(e,Et.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addManagedListener(e,Et.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedListener(e,Et.EVENT_COLUMN_MOVED,this.onColumnMoved.bind(this)),this.addListenersForCellComps()},r.prototype.onColumnMoved=function(){this.updateColumnLists()},r.prototype.addListenersForCellComps=function(){var e=this;this.addManagedListener(this.rowNode,Ta.EVENT_ROW_INDEX_CHANGED,function(){e.getAllCellCtrls().forEach(function(i){return i.onRowIndexChanged()})}),this.addManagedListener(this.rowNode,Ta.EVENT_CELL_CHANGED,function(i){e.getAllCellCtrls().forEach(function(o){return o.onCellChanged(i)})})},r.prototype.onRowNodeDataChanged=function(e){this.getAllCellCtrls().forEach(function(i){return i.refreshCell({suppressFlash:!e.update,newData:!e.update})}),this.onRowSelected(),this.postProcessCss()},r.prototype.onRowNodeCellChanged=function(){this.postProcessCss()},r.prototype.postProcessCss=function(){this.setStylesFromGridOptions(),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()},r.prototype.onRowNodeHighlightChanged=function(){var e=this.rowNode.highlighted;this.allRowGuis.forEach(function(i){var s=e===V0.Below;i.rowComp.addOrRemoveCssClass("ag-row-highlight-above",e===V0.Above),i.rowComp.addOrRemoveCssClass("ag-row-highlight-below",s)})},r.prototype.onRowNodeDraggingChanged=function(){this.postProcessRowDragging()},r.prototype.postProcessRowDragging=function(){var e=this.rowNode.dragging;this.allRowGuis.forEach(function(i){return i.rowComp.addOrRemoveCssClass("ag-row-dragging",e)})},r.prototype.updateExpandedCss=function(){var e=this.rowNode.isExpandable(),i=1==this.rowNode.expanded;this.allRowGuis.forEach(function(o){o.rowComp.addOrRemoveCssClass("ag-row-group",e),o.rowComp.addOrRemoveCssClass("ag-row-group-expanded",e&&i),o.rowComp.addOrRemoveCssClass("ag-row-group-contracted",e&&!i),Yr(o.element,e&&i)})},r.prototype.onDisplayedColumnsChanged=function(){this.updateColumnLists(!0),this.beans.columnModel.wasAutoRowHeightEverActive()&&this.rowNode.checkAutoHeights()},r.prototype.onVirtualColumnsChanged=function(){this.updateColumnLists()},r.prototype.getRowPosition=function(){return{rowPinned:vp(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}},r.prototype.onKeyboardNavigate=function(e){var i=this.allRowGuis.find(function(d){return d.element.contains(e.target)});if((i?i.element:null)===e.target){var a=this.rowNode,l=this.beans.focusService.getFocusedCell();this.beans.navigationService.navigateToNextCell(e,e.key,{rowIndex:a.rowIndex,rowPinned:a.rowPinned,column:l&&l.column},!0),e.preventDefault()}},r.prototype.onTabKeyDown=function(e){if(!e.defaultPrevented&&!Jl(e)){var i=this.allRowGuis.find(function(l){return l.element.contains(e.target)}),o=i?i.element:null,s=o===e.target,a=null;s||(a=this.beans.focusService.findNextFocusableElement(o,!1,e.shiftKey)),(this.isFullWidth()&&s||!a)&&this.beans.navigationService.onTabKeyDown(this,e)}},r.prototype.onFullWidthRowFocused=function(e){var i,o=this.rowNode,s=this.isFullWidth()&&e.rowIndex===o.rowIndex&&e.rowPinned==o.rowPinned,a=this.fullWidthGui?this.fullWidthGui.element:null===(i=this.centerGui)||void 0===i?void 0:i.element;a&&(a.classList.toggle("ag-full-width-focus",s),s&&a.focus({preventScroll:!0}))},r.prototype.refreshCell=function(e){this.centerCellCtrls=this.removeCellCtrl(this.centerCellCtrls,e),this.leftCellCtrls=this.removeCellCtrl(this.leftCellCtrls,e),this.rightCellCtrls=this.removeCellCtrl(this.rightCellCtrls,e),this.updateColumnLists()},r.prototype.removeCellCtrl=function(e,i){var o={list:[],map:{}};return e.list.forEach(function(s){s!==i&&(o.list.push(s),o.map[s.getInstanceId()]=s)}),o},r.prototype.onMouseEvent=function(e,i){switch(e){case"dblclick":this.onRowDblClick(i);break;case"click":this.onRowClick(i);break;case"touchstart":case"mousedown":this.onRowMouseDown(i)}},r.prototype.createRowEvent=function(e,i){return{type:e,node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,rowPinned:this.rowNode.rowPinned,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),event:i}},r.prototype.createRowEventWithSource=function(e,i){var o=this.createRowEvent(e,i);return o.source=this,o},r.prototype.onRowDblClick=function(e){if(!Jl(e)){var i=this.createRowEventWithSource(Et.EVENT_ROW_DOUBLE_CLICKED,e);this.beans.eventService.dispatchEvent(i)}},r.prototype.onRowMouseDown=function(e){if(this.lastMouseDownOnDragger=qm(e.target,"ag-row-drag",3),this.isFullWidth()){var i=this.rowNode;this.beans.focusService.setFocusedCell({rowIndex:i.rowIndex,column:this.beans.columnModel.getAllDisplayedColumns()[0],rowPinned:i.rowPinned,forceBrowserFocus:!0})}},r.prototype.onRowClick=function(e){if(!Jl(e)&&!this.lastMouseDownOnDragger){var o=this.createRowEventWithSource(Et.EVENT_ROW_CLICKED,e);this.beans.eventService.dispatchEvent(o);var s=e.ctrlKey||e.metaKey,a=e.shiftKey;if(!(this.beans.gridOptionsWrapper.isGroupSelectsChildren()&&this.rowNode.group||!this.rowNode.selectable||this.rowNode.rowPinned||!this.beans.gridOptionsWrapper.isRowSelection()||this.beans.gridOptionsWrapper.isSuppressRowClickSelection())){var c=this.beans.gridOptionsWrapper.isRowMultiSelectWithClick(),d=!this.beans.gridOptionsWrapper.isSuppressRowDeselection();this.rowNode.isSelected()?c?this.rowNode.setSelectedParams({newValue:!1,event:e}):s?d&&this.rowNode.setSelectedParams({newValue:!1,event:e}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!a,rangeSelect:a,event:e}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!c&&!s,rangeSelect:a,event:e})}}},r.prototype.setupDetailRowAutoHeight=function(e){var i=this;if(this.rowType===Hf.FullWidthDetail&&this.beans.gridOptionsWrapper.isDetailRowAutoHeight()){var o=function(){var a=e.clientHeight;null!=a&&a>0&&i.beans.frameworkOverrides.setTimeout(function(){i.rowNode.setRowHeight(a),i.beans.clientSideRowModel?i.beans.clientSideRowModel.onRowHeightChanged():i.beans.serverSideRowModel&&i.beans.serverSideRowModel.onRowHeightChanged()},0)},s=this.beans.resizeObserverService.observeResize(e,o);this.addDestroyFunc(s),o()}},r.prototype.createFullWidthParams=function(e,i){var o=this;return{fullWidth:!0,data:this.rowNode.data,node:this.rowNode,value:this.rowNode.key,valueFormatted:this.rowNode.key,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),eGridCell:e,eParentOfValue:e,pinned:i,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:function(a,l,c,d){return o.addFullWidthRowDragging(a,l,c,d)}}},r.prototype.addFullWidthRowDragging=function(e,i,o,s){if(void 0===o&&(o=""),this.isFullWidth()){var a=new VI(function(){return o},this.rowNode,void 0,e,i,s);this.createManagedBean(a,this.beans.context)}},r.prototype.onUiLevelChanged=function(){var e=this.beans.rowCssClassCalculator.calculateRowLevel(this.rowNode);if(this.rowLevel!=e){var i="ag-row-level-"+e,o="ag-row-level-"+this.rowLevel;this.allRowGuis.forEach(function(s){s.rowComp.addOrRemoveCssClass(i,!0),s.rowComp.addOrRemoveCssClass(o,!1)})}this.rowLevel=e},r.prototype.isFirstRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageFirstRow()},r.prototype.isLastRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageLastRow()},r.prototype.onModelUpdated=function(){this.refreshFirstAndLastRowStyles()},r.prototype.refreshFirstAndLastRowStyles=function(){var e=this.isFirstRowOnPage(),i=this.isLastRowOnPage();this.firstRowOnPage!==e&&(this.firstRowOnPage=e,this.allRowGuis.forEach(function(o){return o.rowComp.addOrRemoveCssClass("ag-row-first",e)})),this.lastRowOnPage!==i&&(this.lastRowOnPage=i,this.allRowGuis.forEach(function(o){return o.rowComp.addOrRemoveCssClass("ag-row-last",i)}))},r.prototype.stopEditing=function(e){void 0===e&&(e=!1);var i=this.getAllCellCtrls().map(function(s){return s.stopEditing(e)});if(this.editingRow){if(!e&&i.some(function(s){return s})){var o=this.createRowEvent(Et.EVENT_ROW_VALUE_CHANGED);this.beans.eventService.dispatchEvent(o)}this.setEditingRow(!1)}},r.prototype.setInlineEditingCss=function(e){this.allRowGuis.forEach(function(i){i.rowComp.addOrRemoveCssClass("ag-row-inline-editing",e),i.rowComp.addOrRemoveCssClass("ag-row-not-inline-editing",!e)})},r.prototype.setEditingRow=function(e){this.editingRow=e,this.allRowGuis.forEach(function(o){return o.rowComp.addOrRemoveCssClass("ag-row-editing",e)});var i=this.createRowEvent(e?Et.EVENT_ROW_EDITING_STARTED:Et.EVENT_ROW_EDITING_STOPPED);this.beans.eventService.dispatchEvent(i)},r.prototype.startRowEditing=function(e,i,o,s){void 0===e&&(e=null),void 0===i&&(i=null),void 0===o&&(o=null),void 0===s&&(s=null),!this.editingRow&&(this.getAllCellCtrls().forEach(function(a){var l=a===o;l?a.startEditing(e,i,l,s):a.startEditing(null,null,l,s)}),this.setEditingRow(!0))},r.prototype.getAllCellCtrls=function(){var e=function(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(cA(arguments[r]));return t}(this.centerCellCtrls.list,this.leftCellCtrls.list,this.rightCellCtrls.list);return e},r.prototype.postProcessClassesFromGridOptions=function(){var e=this,i=this.beans.rowCssClassCalculator.processClassesFromGridOptions(this.rowNode);!i||!i.length||i.forEach(function(o){e.allRowGuis.forEach(function(s){return s.rowComp.addOrRemoveCssClass(o,!0)})})},r.prototype.postProcessRowClassRules=function(){var e=this;this.beans.rowCssClassCalculator.processRowClassRules(this.rowNode,function(i){e.allRowGuis.forEach(function(o){return o.rowComp.addOrRemoveCssClass(i,!0)})},function(i){e.allRowGuis.forEach(function(o){return o.rowComp.addOrRemoveCssClass(i,!1)})})},r.prototype.setStylesFromGridOptions=function(){var e=this.processStylesFromGridOptions();this.allRowGuis.forEach(function(i){return i.rowComp.setUserStyles(e)})},r.prototype.getRowBusinessKey=function(){var e=this.beans.gridOptionsWrapper.getBusinessKeyForNodeFunc();if("function"==typeof e)return e(this.rowNode)},r.prototype.getPinnedForContainer=function(e){return e===Uf.LEFT?Nn.PINNED_LEFT:e===Uf.RIGHT?Nn.PINNED_RIGHT:null},r.prototype.getInitialRowClasses=function(e){var i=this.getPinnedForContainer(e),o={rowNode:this.rowNode,rowFocused:this.rowFocused,fadeRowIn:this.fadeRowIn,rowIsEven:this.rowNode.rowIndex%2==0,rowLevel:this.rowLevel,fullWidthRow:this.isFullWidth(),firstRowOnPage:this.isFirstRowOnPage(),lastRowOnPage:this.isLastRowOnPage(),printLayout:this.printLayout,expandable:this.rowNode.isExpandable(),pinned:i};return this.beans.rowCssClassCalculator.getInitialRowClasses(o)},r.prototype.processStylesFromGridOptions=function(){var e=this.beans.gridOptionsWrapper.getRowStyle();if(!e||"function"!=typeof e){var o,i=this.beans.gridOptionsWrapper.getRowStyleFunc();return i&&(o=i({data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex})),Object.assign({},e,o)}console.warn("AG Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead")},r.prototype.onRowSelected=function(){var e=this,i=!!this.rowNode.isSelected();this.allRowGuis.forEach(function(o){o.rowComp.addOrRemoveCssClass("ag-row-selected",i),Rc(o.element,!!i||void 0);var s=e.createAriaLabel();Bn(o.element,s??"")})},r.prototype.createAriaLabel=function(){var e=this.rowNode.isSelected();if(!e||!this.beans.gridOptionsWrapper.isSuppressRowDeselection())return this.beans.gridOptionsWrapper.getLocaleTextFunc()(e?"ariaRowDeselect":"ariaRowSelect","Press SPACE to "+(e?"deselect":"select")+" this row.")},r.prototype.isUseAnimationFrameForCreate=function(){return this.useAnimationFrameForCreate},r.prototype.addHoverFunctionality=function(e){var i=this;this.active&&(this.addManagedListener(e,"mouseenter",function(){return i.rowNode.onMouseEnter()}),this.addManagedListener(e,"mouseleave",function(){return i.rowNode.onMouseLeave()}),this.addManagedListener(this.rowNode,Ta.EVENT_MOUSE_ENTER,function(){i.beans.gridOptionsWrapper.isSuppressRowHoverHighlight()||e.classList.add("ag-row-hover")}),this.addManagedListener(this.rowNode,Ta.EVENT_MOUSE_LEAVE,function(){e.classList.remove("ag-row-hover")}))},r.prototype.roundRowTopToBounds=function(e){var o=this.beans.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),s=this.applyPaginationOffset(o.top,!0)-100,a=this.applyPaginationOffset(o.bottom,!0)+100;return Math.min(Math.max(s,e),a)},r.prototype.getFrameworkOverrides=function(){return this.beans.frameworkOverrides},r.prototype.onRowHeightChanged=function(){if(null!=this.rowNode.rowHeight){var e=this.rowNode.rowHeight,i=this.beans.gridOptionsWrapper.getDefaultRowHeight(),s=this.beans.gridOptionsWrapper.isGetRowHeightFunction()?this.beans.gridOptionsWrapper.getRowHeightForNode(this.rowNode).height:void 0,a=s?Math.min(i,s)-2+"px":void 0;this.allRowGuis.forEach(function(l){l.element.style.height=e+"px",a&&l.element.style.setProperty("--ag-line-height",a)})}},r.prototype.addEventListener=function(e,i){("renderedRowRemoved"===e||"rowRemoved"===e)&&(e=Et.EVENT_VIRTUAL_ROW_REMOVED,console.warn("AG Grid: Since version 11, event renderedRowRemoved is now called "+Et.EVENT_VIRTUAL_ROW_REMOVED)),t.prototype.addEventListener.call(this,e,i)},r.prototype.removeEventListener=function(e,i){("renderedRowRemoved"===e||"rowRemoved"===e)&&(e=Et.EVENT_VIRTUAL_ROW_REMOVED,console.warn("AG Grid: Since version 11, event renderedRowRemoved and rowRemoved is now called "+Et.EVENT_VIRTUAL_ROW_REMOVED)),t.prototype.removeEventListener.call(this,e,i)},r.prototype.destroyFirstPass=function(){this.active=!1,this.setupRemoveAnimation();var e=this.createRowEvent(Et.EVENT_VIRTUAL_ROW_REMOVED);this.dispatchEvent(e),this.beans.eventService.dispatchEvent(e),t.prototype.destroy.call(this)},r.prototype.setupRemoveAnimation=function(){if(!this.isSticky())if(null!=this.rowNode.rowTop){var i=this.roundRowTopToBounds(this.rowNode.rowTop);this.setRowTop(i)}else this.allRowGuis.forEach(function(o){return o.rowComp.addOrRemoveCssClass("ag-opacity-zero",!0)})},r.prototype.destroySecondPass=function(){this.allRowGuis.length=0;var e=function(i){return i.list.forEach(function(o){return o.destroy()}),{list:[],map:{}}};this.centerCellCtrls=e(this.centerCellCtrls),this.leftCellCtrls=e(this.leftCellCtrls),this.rightCellCtrls=e(this.rightCellCtrls)},r.prototype.setFocusedClasses=function(){var e=this;this.allRowGuis.forEach(function(i){i.rowComp.addOrRemoveCssClass("ag-row-focus",e.rowFocused),i.rowComp.addOrRemoveCssClass("ag-row-no-focus",!e.rowFocused)})},r.prototype.onCellFocusChanged=function(){var e=this.beans.focusService.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);e!==this.rowFocused&&(this.rowFocused=e,this.setFocusedClasses()),!e&&this.editingRow&&this.stopEditing(!1)},r.prototype.onPaginationChanged=function(){var e=this.beans.paginationProxy.getCurrentPage();this.paginationPage!==e&&(this.paginationPage=e,this.onTopChanged()),this.refreshFirstAndLastRowStyles()},r.prototype.onTopChanged=function(){this.setRowTop(this.rowNode.rowTop)},r.prototype.onPaginationPixelOffsetChanged=function(){this.onTopChanged()},r.prototype.applyPaginationOffset=function(e,i){return void 0===i&&(i=!1),this.rowNode.isRowPinned()?e:e+this.beans.paginationProxy.getPixelOffset()*(i?1:-1)},r.prototype.setRowTop=function(e){if(!this.printLayout&&rr(e)){var i=this.applyPaginationOffset(e),o=this.rowNode.isRowPinned()?i:this.beans.rowContainerHeightService.getRealPixelPosition(i);this.setRowTopStyle(o+"px")}},r.prototype.getInitialRowTop=function(){return this.beans.gridOptionsWrapper.isSuppressRowTransform()?this.getInitialRowTopShared():void 0},r.prototype.getInitialTransform=function(){return this.beans.gridOptionsWrapper.isSuppressRowTransform()?void 0:"translateY("+this.getInitialRowTopShared()+")"},r.prototype.getInitialRowTopShared=function(){if(this.printLayout)return"";var e;if(this.isSticky())e=this.rowNode.stickyRowTop;else{var i=this.slideRowIn?this.roundRowTopToBounds(this.rowNode.oldRowTop):this.rowNode.rowTop,o=this.applyPaginationOffset(i);e=this.rowNode.isRowPinned()?o:this.beans.rowContainerHeightService.getRealPixelPosition(o)}return e+"px"},r.prototype.setRowTopStyle=function(e){var i=this.beans.gridOptionsWrapper.isSuppressRowTransform();this.allRowGuis.forEach(function(o){return i?o.rowComp.setTop(e):o.rowComp.setTransform("translateY("+e+")")})},r.prototype.getRowNode=function(){return this.rowNode},r.prototype.getCellCtrl=function(e){var i=null;return this.getAllCellCtrls().forEach(function(o){o.getColumn()==e&&(i=o)}),null!=i||this.getAllCellCtrls().forEach(function(o){o.getColSpanningList().indexOf(e)>=0&&(i=o)}),i},r.prototype.onRowIndexChanged=function(){null!=this.rowNode.rowIndex&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())},r.prototype.updateRowIndexes=function(){var e=this.rowNode.getRowIndexString(),i=this.beans.headerNavigationService.getHeaderRowCount(),o=this.rowNode.rowIndex%2==0,s=i+this.rowNode.rowIndex+1;this.allRowGuis.forEach(function(a){a.rowComp.setRowIndex(e),a.rowComp.addOrRemoveCssClass("ag-row-even",o),a.rowComp.addOrRemoveCssClass("ag-row-odd",!o),fa(a.element,s)})},r.prototype.getPinnedLeftRowElement=function(){return this.leftGui?this.leftGui.element:void 0},r.prototype.getPinnedRightRowElement=function(){return this.rightGui?this.rightGui.element:void 0},r.prototype.getBodyRowElement=function(){return this.centerGui?this.centerGui.element:void 0},r.prototype.getFullWidthRowElement=function(){return this.fullWidthGui?this.fullWidthGui.element:void 0},r.DOM_DATA_KEY_ROW_CTRL="renderedRow",r}(Zi),pE=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Eh=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},gL=function(t){function r(e){var i=t.call(this)||this;return i.element=e,i}return pE(r,t),r.prototype.postConstruct=function(){this.addMouseListeners(),this.mockContextMenuForIPad(),this.addKeyboardEvents()},r.prototype.addKeyboardEvents=function(){var e=this;["keydown","keypress"].forEach(function(o){var s=e.processKeyboardEvent.bind(e,o);e.addManagedListener(e.element,o,s)})},r.prototype.addMouseListeners=function(){var e=this;["dblclick","contextmenu","mouseover","mouseout","click",Ca("touchstart")?"touchstart":"mousedown"].forEach(function(s){var a=e.processMouseEvent.bind(e,s);e.addManagedListener(e.element,s,a)})},r.prototype.processMouseEvent=function(e,i){if(this.mouseEventService.isEventFromThisGrid(i)&&!Jl(i)){var o=this.getRowForEvent(i),s=this.mouseEventService.getRenderedCellForEvent(i);"contextmenu"===e?this.handleContextMenuMouseEvent(i,null,o,s):(s&&s.onMouseEvent(e,i),o&&o.onMouseEvent(e,i))}},r.prototype.mockContextMenuForIPad=function(){var e=this;if(zm()){var i=new xp(this.element);this.addManagedListener(i,xp.EVENT_LONG_TAP,function(s){var a=e.getRowForEvent(s.touchEvent),l=e.mouseEventService.getRenderedCellForEvent(s.touchEvent);e.handleContextMenuMouseEvent(null,s.touchEvent,a,l)}),this.addDestroyFunc(function(){return i.destroy()})}},r.prototype.getRowForEvent=function(e){for(var i=e.target;i;){var o=this.gridOptionsWrapper.getDomData(i,Y0.DOM_DATA_KEY_ROW_CTRL);if(o)return o;i=i.parentElement}return null},r.prototype.handleContextMenuMouseEvent=function(e,i,o,s){var a=o?o.getRowNode():null,l=s?s.getColumn():null,c=null;l&&(s.dispatchCellContextMenuEvent(e||i),c=this.valueService.getValue(l,a));var f=this.ctrlsService.getGridBodyCtrl(),v=s?s.getGui():f.getGridBodyElement();this.contextMenuFactory&&this.contextMenuFactory.onContextMenu(e,i,a,l,c,v)},r.prototype.processKeyboardEvent=function(e,i){var o=Ou(this.gridOptionsWrapper,i,B1.DOM_DATA_KEY_CELL_CTRL),s=Ou(this.gridOptionsWrapper,i,Y0.DOM_DATA_KEY_ROW_CTRL);i.defaultPrevented||(o?this.processCellKeyboardEvent(o,e,i):s&&s.isFullWidth()&&this.processFullWidthRowKeyboardEvent(s,e,i))},r.prototype.processCellKeyboardEvent=function(e,i,o){var s=e.getRowNode(),a=e.getColumn(),l=e.isEditing();if(!_C(this.gridOptionsWrapper,o,s,a,l))switch(i){case"keydown":!l&&this.navigationService.handlePageScrollingKey(o)||e.onKeyDown(o),this.doGridOperations(o,e.isEditing());break;case"keypress":e.onKeyPress(o)}if("keydown"===i){var f=e.createEvent(o,Et.EVENT_CELL_KEY_DOWN);this.eventService.dispatchEvent(f)}if("keypress"===i){var v=e.createEvent(o,Et.EVENT_CELL_KEY_PRESS);this.eventService.dispatchEvent(v)}},r.prototype.processFullWidthRowKeyboardEvent=function(e,i,o){var s=e.getRowNode(),a=this.focusService.getFocusedCell();if(!_C(this.gridOptionsWrapper,o,s,a&&a.column,!1)&&"keydown"===i)switch(o.key){case gi.UP:case gi.DOWN:e.onKeyboardNavigate(o);break;case gi.TAB:e.onTabKeyDown(o)}if("keydown"===i){var f=e.createRowEvent(Et.EVENT_CELL_KEY_DOWN,o);this.eventService.dispatchEvent(f)}if("keypress"===i){var v=e.createRowEvent(Et.EVENT_CELL_KEY_PRESS,o);this.eventService.dispatchEvent(v)}},r.prototype.doGridOperations=function(e,i){if((e.ctrlKey||e.metaKey)&&!i&&this.mouseEventService.isEventFromThisGrid(e)){var o=ym(e);if(o===gi.A)return this.onCtrlAndA(e);if(o===gi.C)return this.onCtrlAndC(e);if(o===gi.V)return this.onCtrlAndV();if(o===gi.D)return this.onCtrlAndD(e);if(o===gi.Z)return e.shiftKey?this.undoRedoService.redo():this.undoRedoService.undo();if(o===gi.Y)return this.undoRedoService.redo()}},r.prototype.onCtrlAndA=function(e){var i=this,o=i.pinnedRowModel,a=i.rangeService,l=Nn.PINNED_BOTTOM,c=Nn.PINNED_TOP;if(a&&i.paginationProxy.isRowsToRender()){var d=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var o,a,i=e.call(t),s=[];try{for(;(void 0===r||r-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return s}([o.isEmpty(c),o.isEmpty(l)],2),w=d[0]?null:c,x=void 0,I=void 0;d[1]?(x=null,I=this.paginationProxy.getRowCount()-1):(x=l,I=o.getPinnedBottomRowData().length-1);var M=this.columnModel.getAllDisplayedColumns();if(_c(M))return;a.setCellRange({rowStartIndex:0,rowStartPinned:w,rowEndIndex:I,rowEndPinned:x,columnStart:M[0],columnEnd:Ja(M)})}e.preventDefault()},r.prototype.onCtrlAndC=function(e){!this.clipboardService||this.gridOptionsWrapper.isEnableCellTextSelection()||(this.clipboardService.copyToClipboard(),e.preventDefault())},r.prototype.onCtrlAndV=function(){qo.isRegistered(mo.ClipboardModule)&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.pasteFromClipboard()},r.prototype.onCtrlAndD=function(e){qo.isRegistered(mo.ClipboardModule)&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.copyRangeDown(),e.preventDefault()},Eh([Xe("mouseEventService")],r.prototype,"mouseEventService",void 0),Eh([Xe("valueService")],r.prototype,"valueService",void 0),Eh([_a("contextMenuFactory")],r.prototype,"contextMenuFactory",void 0),Eh([Xe("ctrlsService")],r.prototype,"ctrlsService",void 0),Eh([Xe("navigationService")],r.prototype,"navigationService",void 0),Eh([Xe("focusService")],r.prototype,"focusService",void 0),Eh([Xe("undoRedoService")],r.prototype,"undoRedoService",void 0),Eh([Xe("columnModel")],r.prototype,"columnModel",void 0),Eh([Xe("paginationProxy")],r.prototype,"paginationProxy",void 0),Eh([Xe("pinnedRowModel")],r.prototype,"pinnedRowModel",void 0),Eh([_a("rangeService")],r.prototype,"rangeService",void 0),Eh([_a("clipboardService")],r.prototype,"clipboardService",void 0),Eh([qi],r.prototype,"postConstruct",null),r}(Zi),vL=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),V1=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},hE=function(t){function r(e){var i=t.call(this)||this;return i.centerContainerCtrl=e,i}return vL(r,t),r.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(){e.gridBodyCtrl=e.ctrlsService.getGridBodyCtrl(),e.listenForResize()}),this.addManagedListener(this.eventService,Et.EVENT_SCROLLBAR_WIDTH_CHANGED,this.onScrollbarWidthChanged.bind(this))},r.prototype.listenForResize=function(){var e=this,i=function(){return e.onCenterViewportResized()};this.centerContainerCtrl.registerViewportResizeListener(i),this.gridBodyCtrl.registerBodyViewportResizeListener(i)},r.prototype.onScrollbarWidthChanged=function(){this.checkViewportAndScrolls()},r.prototype.onCenterViewportResized=function(){if(this.centerContainerCtrl.isViewportVisible()){this.checkViewportAndScrolls();var e=this.centerContainerCtrl.getCenterWidth();e!==this.centerWidth&&(this.centerWidth=e,this.columnModel.refreshFlexedColumns({viewportWidth:this.centerWidth,updateBodyWidths:!0,fireResizedEvent:!0}))}else this.bodyHeight=0},r.prototype.checkViewportAndScrolls=function(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.gridBodyCtrl.getScrollFeature().checkScrollLeft()},r.prototype.getBodyHeight=function(){return this.bodyHeight},r.prototype.checkBodyHeight=function(){var i=x1(this.gridBodyCtrl.getBodyViewportElement());this.bodyHeight!==i&&(this.bodyHeight=i,this.eventService.dispatchEvent({type:Et.EVENT_BODY_HEIGHT_CHANGED,api:this.gridApi,columnApi:this.columnApi}))},r.prototype.updateScrollVisibleService=function(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)},r.prototype.updateScrollVisibleServiceImpl=function(){var e={horizontalScrollShowing:this.isHorizontalScrollShowing(),verticalScrollShowing:this.gridBodyCtrl.isVerticalScrollShowing()};this.scrollVisibleService.setScrollsVisible(e),this.gridBodyCtrl.setVerticalScrollPaddingVisible(e.verticalScrollShowing)},r.prototype.isHorizontalScrollShowing=function(){return this.gridOptionsWrapper.isAlwaysShowHorizontalScroll()||this.centerContainerCtrl.isViewportHScrollShowing()},r.prototype.onHorizontalViewportChanged=function(){var e=this.centerContainerCtrl.getCenterWidth(),i=this.centerContainerCtrl.getViewportScrollLeft();this.columnModel.setViewportPosition(e,i)},V1([Xe("ctrlsService")],r.prototype,"ctrlsService",void 0),V1([Xe("columnModel")],r.prototype,"columnModel",void 0),V1([Xe("scrollVisibleService")],r.prototype,"scrollVisibleService",void 0),V1([Xe("columnApi")],r.prototype,"columnApi",void 0),V1([Xe("gridApi")],r.prototype,"gridApi",void 0),V1([qi],r.prototype,"postConstruct",null),r}(Zi),uA=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),rv=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},PB=function(t){function r(e){var i=t.call(this)||this;return i.element=e,i}return uA(r,t),r.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Et.EVENT_LEFT_PINNED_WIDTH_CHANGED,this.onPinnedLeftWidthChanged.bind(this))},r.prototype.onPinnedLeftWidthChanged=function(){var e=this.pinnedWidthService.getPinnedLeftWidth(),i=e>0;Pl(this.element,i),i&&Km(this.element,e)},rv([Xe("pinnedWidthService")],r.prototype,"pinnedWidthService",void 0),rv([qi],r.prototype,"postConstruct",null),r}(Zi),LB=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),nS=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},NB=function(t){function r(e){var i=t.call(this)||this;return i.element=e,i}return LB(r,t),r.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Et.EVENT_RIGHT_PINNED_WIDTH_CHANGED,this.onPinnedRightWidthChanged.bind(this))},r.prototype.onPinnedRightWidthChanged=function(){var e=this.pinnedWidthService.getPinnedRightWidth(),i=e>0;Pl(this.element,i),i&&Km(this.element,e)},nS([Xe("pinnedWidthService")],r.prototype,"pinnedWidthService",void 0),nS([qi],r.prototype,"postConstruct",null),r}(Zi),PC=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),dA=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},j1=function(t){function r(e,i){var o=t.call(this)||this;return o.eContainer=e,o.eWrapper=i,o}return PC(r,t),r.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Et.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,this.onHeightChanged.bind(this))},r.prototype.onHeightChanged=function(){var e=this.maxDivHeightScaler.getUiContainerHeight(),i=null!=e?e+"px":"";this.eContainer.style.height=i,this.eWrapper&&(this.eWrapper.style.height=i)},dA([Xe("rowContainerHeightService")],r.prototype,"maxDivHeightScaler",void 0),dA([qi],r.prototype,"postConstruct",null),r}(Zi),LC=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),iS=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},rS=function(t){function r(e){var i=t.call(this)||this;return i.eContainer=e,i}return LC(r,t),r.prototype.postConstruct=function(){var e=this;if(this.gridOptionsWrapper.isEnableRangeSelection()&&!$o(this.rangeService)){var i={eElement:this.eContainer,onDragStart:this.rangeService.onDragStart.bind(this.rangeService),onDragStop:this.rangeService.onDragStop.bind(this.rangeService),onDragging:this.rangeService.onDragging.bind(this.rangeService)};this.dragService.addDragSource(i),this.addDestroyFunc(function(){return e.dragService.removeDragSource(i)})}},iS([_a("rangeService")],r.prototype,"rangeService",void 0),iS([Xe("dragService")],r.prototype,"dragService",void 0),iS([qi],r.prototype,"postConstruct",null),r}(Zi),pA=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),hA=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},fA=function(t){function r(e){var i=t.call(this)||this;return i.callback=e,i}return pA(r,t),r.prototype.postConstruct=function(){var e=this.setWidth.bind(this);this.addManagedListener(this.gridOptionsWrapper,So.PROP_DOM_LAYOUT,e),this.addManagedListener(this.eventService,Et.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,Et.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,e),this.setWidth()},r.prototype.setWidth=function(){var e=this.columnModel,i=this.gridOptionsWrapper.getDomLayout()===Nn.DOM_LAYOUT_PRINT,o=e.getBodyContainerWidth(),s=e.getDisplayedColumnsLeftWidth(),a=e.getDisplayedColumnsRightWidth();this.callback(i?o+s+a:o)},hA([Xe("columnModel")],r.prototype,"columnModel",void 0),hA([qi],r.prototype,"postConstruct",null),r}(Zi),GB=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),H1=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},BB=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var o,a,i=e.call(t),s=[];try{for(;(void 0===r||r-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return s},$i=function(t){return t.LEFT="left",t.RIGHT="right",t.CENTER="center",t.FULL_WIDTH="fullWidth",t.TOP_LEFT="topLeft",t.TOP_RIGHT="topRight",t.TOP_CENTER="topCenter",t.TOP_FULL_WIDTH="topFullWidth",t.STICKY_TOP_LEFT="stickyTopLeft",t.STICKY_TOP_RIGHT="stickyTopRight",t.STICKY_TOP_CENTER="stickyTopCenter",t.STICKY_TOP_FULL_WIDTH="stickyTopFullWidth",t.BOTTOM_LEFT="bottomLeft",t.BOTTOM_RIGHT="bottomRight",t.BOTTOM_CENTER="bottomCenter",t.BOTTOM_FULL_WIDTH="bottomFullWidth",t}($i||{}),Uf=function(t){return t.LEFT="left",t.RIGHT="right",t.CENTER="center",t.FULL_WIDTH="fullWidth",t}(Uf||{}),jB=Kh([[$i.CENTER,"ag-center-cols-container"],[$i.LEFT,"ag-pinned-left-cols-container"],[$i.RIGHT,"ag-pinned-right-cols-container"],[$i.FULL_WIDTH,"ag-full-width-container"],[$i.TOP_CENTER,"ag-floating-top-container"],[$i.TOP_LEFT,"ag-pinned-left-floating-top"],[$i.TOP_RIGHT,"ag-pinned-right-floating-top"],[$i.TOP_FULL_WIDTH,"ag-floating-top-full-width-container"],[$i.STICKY_TOP_CENTER,"ag-sticky-top-container"],[$i.STICKY_TOP_LEFT,"ag-pinned-left-sticky-top"],[$i.STICKY_TOP_RIGHT,"ag-pinned-right-sticky-top"],[$i.STICKY_TOP_FULL_WIDTH,"ag-sticky-top-full-width-container"],[$i.BOTTOM_CENTER,"ag-floating-bottom-container"],[$i.BOTTOM_LEFT,"ag-pinned-left-floating-bottom"],[$i.BOTTOM_RIGHT,"ag-pinned-right-floating-bottom"],[$i.BOTTOM_FULL_WIDTH,"ag-floating-bottom-full-width-container"]]),fE=Kh([[$i.CENTER,"ag-center-cols-viewport"],[$i.TOP_CENTER,"ag-floating-top-viewport"],[$i.STICKY_TOP_CENTER,"ag-sticky-top-viewport"],[$i.BOTTOM_CENTER,"ag-floating-bottom-viewport"]]),HB=Kh([[$i.CENTER,"ag-center-cols-clipper"]]),mE=function(t){function r(e){var i=t.call(this)||this;return i.name=e,i}return GB(r,t),r.getRowContainerCssClasses=function(e){return{container:jB.get(e),viewport:fE.get(e),wrapper:HB.get(e)}},r.getPinned=function(e){switch(e){case $i.BOTTOM_LEFT:case $i.TOP_LEFT:case $i.STICKY_TOP_LEFT:case $i.LEFT:return Nn.PINNED_LEFT;case $i.BOTTOM_RIGHT:case $i.TOP_RIGHT:case $i.STICKY_TOP_RIGHT:case $i.RIGHT:return Nn.PINNED_RIGHT;default:return null}},r.prototype.postConstruct=function(){var e=this;this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.embedFullWidthRows=this.gridOptionsWrapper.isEmbedFullWidthRows(),this.forContainers([$i.CENTER],function(){return e.viewportSizeFeature=e.createManagedBean(new hE(e))})},r.prototype.registerWithCtrlsService=function(){switch(this.name){case $i.CENTER:this.ctrlsService.registerCenterRowContainerCtrl(this);break;case $i.LEFT:this.ctrlsService.registerLeftRowContainerCtrl(this);break;case $i.RIGHT:this.ctrlsService.registerRightRowContainerCtrl(this);break;case $i.TOP_CENTER:this.ctrlsService.registerTopCenterRowContainerCtrl(this);break;case $i.TOP_LEFT:this.ctrlsService.registerTopLeftRowContainerCon(this);break;case $i.TOP_RIGHT:this.ctrlsService.registerTopRightRowContainerCtrl(this);break;case $i.STICKY_TOP_CENTER:this.ctrlsService.registerStickyTopCenterRowContainerCtrl(this);break;case $i.STICKY_TOP_LEFT:this.ctrlsService.registerStickyTopLeftRowContainerCon(this);break;case $i.STICKY_TOP_RIGHT:this.ctrlsService.registerStickyTopRightRowContainerCtrl(this);break;case $i.BOTTOM_CENTER:this.ctrlsService.registerBottomCenterRowContainerCtrl(this);break;case $i.BOTTOM_LEFT:this.ctrlsService.registerBottomLeftRowContainerCtrl(this);break;case $i.BOTTOM_RIGHT:this.ctrlsService.registerBottomRightRowContainerCtrl(this)}},r.prototype.forContainers=function(e,i){e.indexOf(this.name)>=0&&i()},r.prototype.getContainerElement=function(){return this.eContainer},r.prototype.getViewportSizeFeature=function(){return this.viewportSizeFeature},r.prototype.setComp=function(e,i,o,s){var a=this;this.comp=e,this.eContainer=i,this.eViewport=o,this.eWrapper=s,this.createManagedBean(new gL(this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder(),this.stopHScrollOnPinnedRows();var v=function(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(BB(arguments[r]));return t}([$i.TOP_CENTER,$i.TOP_LEFT,$i.TOP_RIGHT],[$i.BOTTOM_CENTER,$i.BOTTOM_LEFT,$i.BOTTOM_RIGHT],[$i.CENTER,$i.LEFT,$i.RIGHT],[$i.STICKY_TOP_CENTER,$i.STICKY_TOP_LEFT,$i.STICKY_TOP_RIGHT]),w=[$i.CENTER,$i.LEFT,$i.RIGHT,$i.FULL_WIDTH],x=[$i.CENTER,$i.TOP_CENTER,$i.STICKY_TOP_CENTER,$i.BOTTOM_CENTER],M=[$i.RIGHT,$i.BOTTOM_RIGHT,$i.TOP_RIGHT,$i.STICKY_TOP_RIGHT];this.forContainers([$i.LEFT,$i.BOTTOM_LEFT,$i.TOP_LEFT,$i.STICKY_TOP_LEFT],function(){return a.createManagedBean(new PB(a.eContainer))}),this.forContainers(M,function(){return a.createManagedBean(new NB(a.eContainer))}),this.forContainers(w,function(){return a.createManagedBean(new j1(a.eContainer,a.eWrapper))}),this.forContainers(v,function(){return a.createManagedBean(new rS(a.eContainer))}),this.forContainers(x,function(){return a.createManagedBean(new fA(function(F){return a.comp.setContainerWidth(F+"px")}))}),this.addListeners(),this.registerWithCtrlsService()},r.prototype.addListeners=function(){var e=this;this.addManagedListener(this.eventService,Et.EVENT_SCROLL_VISIBILITY_CHANGED,function(){return e.onScrollVisibilityChanged()}),this.addManagedListener(this.eventService,Et.EVENT_DISPLAYED_COLUMNS_CHANGED,function(){return e.onDisplayedColumnsChanged()}),this.addManagedListener(this.eventService,Et.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,function(){return e.onDisplayedColumnsWidthChanged()}),this.addManagedListener(this.eventService,Et.EVENT_DISPLAYED_ROWS_CHANGED,function(){return e.onDisplayedRowsChanged()}),this.onScrollVisibilityChanged(),this.onDisplayedColumnsChanged(),this.onDisplayedColumnsWidthChanged(),this.onDisplayedRowsChanged()},r.prototype.listenOnDomOrder=function(){var e=this;if([$i.STICKY_TOP_CENTER,$i.STICKY_TOP_LEFT,$i.STICKY_TOP_RIGHT,$i.STICKY_TOP_FULL_WIDTH].indexOf(this.name)>=0)this.comp.setDomOrder(!0);else{var s=function(){return e.comp.setDomOrder(e.gridOptionsWrapper.isEnsureDomOrder())};this.addManagedListener(this.gridOptionsWrapper,So.PROP_DOM_LAYOUT,s),s()}},r.prototype.stopHScrollOnPinnedRows=function(){var e=this;this.forContainers([$i.TOP_CENTER,$i.STICKY_TOP_CENTER,$i.BOTTOM_CENTER],function(){e.addManagedListener(e.eViewport,"scroll",function(){return e.eViewport.scrollLeft=0})})},r.prototype.onDisplayedColumnsChanged=function(){var e=this;this.forContainers([$i.CENTER],function(){return e.onHorizontalViewportChanged()})},r.prototype.onDisplayedColumnsWidthChanged=function(){var e=this;this.forContainers([$i.CENTER],function(){return e.onHorizontalViewportChanged()})},r.prototype.onScrollVisibilityChanged=function(){if(this.name===$i.CENTER){var i=this.scrollVisibleService.isHorizontalScrollShowing()&&this.gridOptionsWrapper.getScrollbarWidth()||0;this.comp.setViewportHeight(0==i?"100%":"calc(100% + "+i+"px)")}},r.prototype.addPreventScrollWhileDragging=function(){var e=this,i=function(o){e.dragService.isDragging()&&o.cancelable&&o.preventDefault()};this.eContainer.addEventListener("touchmove",i,{passive:!1}),this.addDestroyFunc(function(){return e.eContainer.removeEventListener("touchmove",i)})},r.prototype.onHorizontalViewportChanged=function(){var e=this.getCenterWidth(),i=this.getCenterViewportScrollLeft();this.columnModel.setViewportPosition(e,i)},r.prototype.getCenterWidth=function(){return Gf(this.eViewport)},r.prototype.getCenterViewportScrollLeft=function(){return k0(this.eViewport,this.enableRtl)},r.prototype.registerViewportResizeListener=function(e){var i=this.resizeObserverService.observeResize(this.eViewport,e);this.addDestroyFunc(function(){return i()})},r.prototype.isViewportVisible=function(){return Zh(this.eViewport)},r.prototype.isViewportHScrollShowing=function(){return h_(this.eViewport)},r.prototype.getViewportScrollLeft=function(){return k0(this.eViewport,this.enableRtl)},r.prototype.isHorizontalScrollShowing=function(){return this.gridOptionsWrapper.isAlwaysShowHorizontalScroll()||h_(this.eViewport)},r.prototype.getViewportElement=function(){return this.eViewport},r.prototype.setContainerTranslateX=function(e){this.eContainer.style.transform="translateX("+e+"px)"},r.prototype.getHScrollPosition=function(){return{left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth}},r.prototype.setCenterViewportScrollLeft=function(e){jd(this.eViewport,e,this.enableRtl)},r.prototype.onDisplayedRowsChanged=function(){var e=this,i=this.name===$i.TOP_FULL_WIDTH||this.name===$i.STICKY_TOP_FULL_WIDTH||this.name===$i.BOTTOM_FULL_WIDTH||this.name===$i.FULL_WIDTH,a=this.getRowCtrls().filter(function(l){var c=l.isFullWidth(),d=e.gridOptionsWrapper.getDomLayout()===Nn.DOM_LAYOUT_PRINT,f=e.embedFullWidthRows||d;return i?!f&&c:f||!c});this.comp.setRowCtrls(a)},r.prototype.getRowCtrls=function(){switch(this.name){case $i.TOP_CENTER:case $i.TOP_LEFT:case $i.TOP_RIGHT:case $i.TOP_FULL_WIDTH:return this.rowRenderer.getTopRowCtrls();case $i.STICKY_TOP_CENTER:case $i.STICKY_TOP_LEFT:case $i.STICKY_TOP_RIGHT:case $i.STICKY_TOP_FULL_WIDTH:return this.rowRenderer.getStickyTopRowCtrls();case $i.BOTTOM_CENTER:case $i.BOTTOM_LEFT:case $i.BOTTOM_RIGHT:case $i.BOTTOM_FULL_WIDTH:return this.rowRenderer.getBottomRowCtrls();default:return this.rowRenderer.getRowCtrls()}},H1([Xe("scrollVisibleService")],r.prototype,"scrollVisibleService",void 0),H1([Xe("dragService")],r.prototype,"dragService",void 0),H1([Xe("ctrlsService")],r.prototype,"ctrlsService",void 0),H1([Xe("columnModel")],r.prototype,"columnModel",void 0),H1([Xe("resizeObserverService")],r.prototype,"resizeObserverService",void 0),H1([Xe("rowRenderer")],r.prototype,"rowRenderer",void 0),H1([qi],r.prototype,"postConstruct",null),r}(Zi),yL=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),k_=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},UB='<div class="ag-root ag-unselectable" role="grid">\n        <ag-header-root ref="gridHeader"></ag-header-root>\n        <div class="ag-floating-top" ref="eTop" role="presentation">\n            <ag-row-container ref="topLeftContainer" name="'+$i.TOP_LEFT+'"></ag-row-container>\n            <ag-row-container ref="topCenterContainer" name="'+$i.TOP_CENTER+'"></ag-row-container>\n            <ag-row-container ref="topRightContainer" name="'+$i.TOP_RIGHT+'"></ag-row-container>\n            <ag-row-container ref="topFullWidthContainer" name="'+$i.TOP_FULL_WIDTH+'"></ag-row-container>\n        </div>\n        <div class="ag-body-viewport" ref="eBodyViewport" role="presentation">\n            <ag-row-container ref="leftContainer" name="'+$i.LEFT+'"></ag-row-container>\n            <ag-row-container ref="centerContainer" name="'+$i.CENTER+'"></ag-row-container>\n            <ag-row-container ref="rightContainer" name="'+$i.RIGHT+'"></ag-row-container>\n            <ag-row-container ref="fullWidthContainer" name="'+$i.FULL_WIDTH+'"></ag-row-container>\n        </div>\n        <div class="ag-sticky-top" ref="eStickyTop" role="presentation">\n            <ag-row-container ref="stickyTopLeftContainer" name="'+$i.STICKY_TOP_LEFT+'"></ag-row-container>\n            <ag-row-container ref="stickyTopCenterContainer" name="'+$i.STICKY_TOP_CENTER+'"></ag-row-container>\n            <ag-row-container ref="stickyTopRightContainer" name="'+$i.STICKY_TOP_RIGHT+'"></ag-row-container>\n            <ag-row-container ref="stickyTopFullWidthContainer" name="'+$i.STICKY_TOP_FULL_WIDTH+'"></ag-row-container>\n        </div>\n        <div class="ag-floating-bottom" ref="eBottom" role="presentation">\n            <ag-row-container ref="bottomLeftContainer" name="'+$i.BOTTOM_LEFT+'"></ag-row-container>\n            <ag-row-container ref="bottomCenterContainer" name="'+$i.BOTTOM_CENTER+'"></ag-row-container>\n            <ag-row-container ref="bottomRightContainer" name="'+$i.BOTTOM_RIGHT+'"></ag-row-container>\n            <ag-row-container ref="bottomFullWidthContainer" name="'+$i.BOTTOM_FULL_WIDTH+'"></ag-row-container>\n        </div>\n        <ag-fake-horizontal-scroll></ag-fake-horizontal-scroll>\n        <ag-overlay-wrapper></ag-overlay-wrapper>\n    </div>',$B=function(t){function r(){return t.call(this,UB)||this}return yL(r,t),r.prototype.init=function(){var e=this,i=function(s,a){var l=s+"px";a.style.minHeight=l,a.style.height=l},o={setRowAnimationCssOnBodyViewport:function(s,a){return e.setRowAnimationCssOnBodyViewport(s,a)},setColumnCount:function(s){return cc(e.getGui(),s)},setRowCount:function(s){return fl(e.getGui(),s)},setTopHeight:function(s){return i(s,e.eTop)},setBottomHeight:function(s){return i(s,e.eBottom)},setTopDisplay:function(s){return e.eTop.style.display=s},setBottomDisplay:function(s){return e.eBottom.style.display=s},setStickyTopHeight:function(s){return e.eStickyTop.style.height=s},setStickyTopTop:function(s){return e.eStickyTop.style.top=s},setStickyTopWidth:function(s){return e.eStickyTop.style.width=s},setColumnMovingCss:function(s,a){return e.addOrRemoveCssClass(JI,a)},updateLayoutClasses:function(s,a){var l=e.eBodyViewport.classList;l.toggle(Yd.AUTO_HEIGHT,a.autoHeight),l.toggle(Yd.NORMAL,a.normal),l.toggle(Yd.PRINT,a.print),e.addOrRemoveCssClass(Yd.AUTO_HEIGHT,a.autoHeight),e.addOrRemoveCssClass(Yd.NORMAL,a.normal),e.addOrRemoveCssClass(Yd.PRINT,a.print)},setAlwaysVerticalScrollClass:function(s,a){return e.eBodyViewport.classList.toggle(N1,a)},registerBodyViewportResizeListener:function(s){var a=e.resizeObserverService.observeResize(e.eBodyViewport,s);e.addDestroyFunc(function(){return a()})},setPinnedTopBottomOverflowY:function(s){return e.eTop.style.overflowY=e.eBottom.style.overflowY=s},setCellSelectableCss:function(s,a){[e.eTop,e.eBodyViewport,e.eBottom].forEach(function(l){return l.classList.toggle(QI,a)})}};this.ctrl=this.createManagedBean(new uL),this.ctrl.setComp(o,this.getGui(),this.eBodyViewport,this.eTop,this.eBottom,this.eStickyTop),(this.rangeService||this.gridOptionsWrapper.isRowSelectionMulti())&&Sl(this.getGui(),!0)},r.prototype.setRowAnimationCssOnBodyViewport=function(e,i){var o=this.eBodyViewport.classList;o.toggle(FC.ANIMATION_ON,i),o.toggle(FC.ANIMATION_OFF,!i)},r.prototype.getFloatingTopBottom=function(){return[this.eTop,this.eBottom]},k_([Xe("resizeObserverService")],r.prototype,"resizeObserverService",void 0),k_([_a("rangeService")],r.prototype,"rangeService",void 0),k_([Ti("eBodyViewport")],r.prototype,"eBodyViewport",void 0),k_([Ti("eStickyTop")],r.prototype,"eStickyTop",void 0),k_([Ti("eTop")],r.prototype,"eTop",void 0),k_([Ti("eBottom")],r.prototype,"eBottom",void 0),k_([Ti("gridHeader")],r.prototype,"headerRootComp",void 0),k_([qi],r.prototype,"init",null),r}(Do),bL=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),U1=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},CL=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return bL(r,t),r.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Et.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Et.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this))},r.prototype.onDisplayedColumnsChanged=function(){this.update()},r.prototype.onDisplayedColumnsWidthChanged=function(){this.update()},r.prototype.update=function(){this.updateImpl(),setTimeout(this.updateImpl.bind(this),500)},r.prototype.updateImpl=function(){var e=this.ctrlsService.getCenterRowContainerCtrl();if(e){var i={horizontalScrollShowing:e.isHorizontalScrollShowing(),verticalScrollShowing:this.isVerticalScrollShowing()};this.setScrollsVisible(i)}},r.prototype.setScrollsVisible=function(e){this.horizontalScrollShowing===e.horizontalScrollShowing&&this.verticalScrollShowing===e.verticalScrollShowing||(this.horizontalScrollShowing=e.horizontalScrollShowing,this.verticalScrollShowing=e.verticalScrollShowing,this.eventService.dispatchEvent({type:Et.EVENT_SCROLL_VISIBILITY_CHANGED,api:this.gridApi,columnApi:this.columnApi}))},r.prototype.isHorizontalScrollShowing=function(){return this.horizontalScrollShowing},r.prototype.isVerticalScrollShowing=function(){return this.verticalScrollShowing},U1([Xe("columnApi")],r.prototype,"columnApi",void 0),U1([Xe("gridApi")],r.prototype,"gridApi",void 0),U1([Xe("ctrlsService")],r.prototype,"ctrlsService",void 0),U1([qi],r.prototype,"postConstruct",null),U1([Kr("scrollVisibleService")],r)}(Zi),oS=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),NC=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},sS=function(t){function r(){var i=null!==t&&t.apply(this,arguments)||this;return i.gridInstanceId=e.gridInstanceSequence.next(),i}var e;return oS(r,t),e=r,r.prototype.stampTopLevelGridCompWithGridInstance=function(i){i[e.GRID_DOM_KEY]=this.gridInstanceId},r.prototype.getRenderedCellForEvent=function(i){return Ou(this.gridOptionsWrapper,i,B1.DOM_DATA_KEY_CELL_CTRL)},r.prototype.isEventFromThisGrid=function(i){return this.isElementInThisGrid(i.target)},r.prototype.isElementInThisGrid=function(i){for(var o=i;o;){var s=o[e.GRID_DOM_KEY];if(rr(s))return s===this.gridInstanceId;o=o.parentElement}return!1},r.prototype.getCellPositionForEvent=function(i){var o=this.getRenderedCellForEvent(i);return o?o.getCellPosition():null},r.prototype.getNormalisedPosition=function(i){var a,l,o=this.gridOptionsWrapper.getDomLayout()===Nn.DOM_LAYOUT_NORMAL;if(null!=i.clientX||null!=i.clientY?(a=i.clientX,l=i.clientY):(a=i.x,l=i.y),o){var c=this.ctrlsService.getGridBodyCtrl(),d=c.getScrollFeature().getVScrollPosition();a+=c.getScrollFeature().getHScrollPosition().left,l+=d.top}return{x:a,y:l}},r.gridInstanceSequence=new bm,r.GRID_DOM_KEY="__ag_grid_instance",NC([Xe("ctrlsService")],r.prototype,"ctrlsService",void 0),e=NC([Kr("mouseEventService")],r)}(Zi),YB=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),gE=function(){return gE=Object.assign||function(t){for(var r,e=1,i=arguments.length;e<i;e++)for(var o in r=arguments[e])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t},gE.apply(this,arguments)},Ep=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},vE=function(t){function r(){var e=t.call(this)||this;return e.onPageDown=u1(e.onPageDown,100),e.onPageUp=u1(e.onPageUp,100),e}return YB(r,t),r.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(i){e.gridBodyCon=i.gridBodyCtrl})},r.prototype.handlePageScrollingKey=function(e){var i=e.key,o=e.altKey,s=e.ctrlKey||e.metaKey,a=!!this.rangeService&&e.shiftKey,l=this.mouseEventService.getCellPositionForEvent(e);if(!l)return!1;var c=!1;switch(i){case gi.PAGE_HOME:case gi.PAGE_END:!s&&!o&&(this.onHomeOrEndKey(i),c=!0);break;case gi.LEFT:case gi.RIGHT:case gi.UP:case gi.DOWN:s&&!o&&!a&&(this.onCtrlUpDownLeftRight(i,l),c=!0);break;case gi.PAGE_DOWN:!s&&!o&&(this.onPageDown(l),c=!0);break;case gi.PAGE_UP:!s&&!o&&(this.onPageUp(l),c=!0)}return c&&e.preventDefault(),c},r.prototype.navigateTo=function(e){var i=e.scrollIndex,o=e.scrollType,s=e.scrollColumn,a=e.focusIndex,l=e.focusColumn;rr(s)&&!s.isPinned()&&this.gridBodyCon.getScrollFeature().ensureColumnVisible(s),rr(i)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(i,o),e.isAsync||this.gridBodyCon.getScrollFeature().ensureIndexVisible(a),this.animationFrameService.flushAllFrames(),this.focusService.setFocusedCell({rowIndex:a,column:l,rowPinned:null,forceBrowserFocus:!0}),this.rangeService&&this.rangeService.setRangeToCell({rowIndex:a,rowPinned:null,column:l})},r.prototype.onPageDown=function(e){var o=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),s=this.getViewportHeight(),a=this.paginationProxy.getPixelOffset(),c=this.paginationProxy.getRowIndexAtPixel(o.top+s+a);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,c):this.navigateToNextPage(e,c)},r.prototype.onPageUp=function(e){var o=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),s=this.paginationProxy.getPixelOffset(),l=this.paginationProxy.getRowIndexAtPixel(o.top+s);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,l,!0):this.navigateToNextPage(e,l,!0)},r.prototype.navigateToNextPage=function(e,i,o){void 0===o&&(o=!1);var s,a,F,l=this.getViewportHeight(),c=this.paginationProxy.getPageFirstRow(),d=this.paginationProxy.getPageLastRow(),f=this.paginationProxy.getPixelOffset(),v=this.paginationProxy.getRow(e.rowIndex),w=o?(null===(s=v)||void 0===s?void 0:s.rowHeight)-l-f:l-f,x=(null===(a=v)||void 0===a?void 0:a.rowTop)+w,I=this.paginationProxy.getRowIndexAtPixel(x+f);I===e.rowIndex&&(i=I=e.rowIndex+(o?-1:1)),o?(F="bottom",I<c&&(I=c),i<c&&(i=c)):(F="top",I>d&&(I=d),i>d&&(i=d)),this.isRowTallerThanView(I)&&(i=I,F="top"),this.navigateTo({scrollIndex:i,scrollType:F,scrollColumn:null,focusIndex:I,focusColumn:e.column})},r.prototype.navigateToNextPageWithAutoHeight=function(e,i,o){var s=this;void 0===o&&(o=!1),this.navigateTo({scrollIndex:i,scrollType:o?"bottom":"top",scrollColumn:null,focusIndex:i,focusColumn:e.column}),setTimeout(function(){var a=s.getNextFocusIndexForAutoHeight(e,o);s.navigateTo({scrollIndex:i,scrollType:o?"bottom":"top",scrollColumn:null,focusIndex:a,focusColumn:e.column,isAsync:!0})},50)},r.prototype.getNextFocusIndexForAutoHeight=function(e,i){void 0===i&&(i=!1);for(var s=i?-1:1,a=this.getViewportHeight(),l=this.paginationProxy.getPageLastRow(),c=0,d=e.rowIndex;d>=0&&d<=l;){var f=this.paginationProxy.getRow(d);if(f){var v=f.rowHeight??0;if(c+v>a)break;c+=v}d+=s}return Math.max(0,Math.min(d,l))},r.prototype.getViewportHeight=function(){var i=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),o=this.gridOptionsWrapper.getScrollbarWidth(),s=i.bottom-i.top;return this.ctrlsService.getCenterRowContainerCtrl().isHorizontalScrollShowing()&&(s-=o),s},r.prototype.isRowTallerThanView=function(e){var i=this.paginationProxy.getRow(e);if(!i)return!1;var o=i.rowHeight;return"number"==typeof o&&o>this.getViewportHeight()},r.prototype.onCtrlUpDownLeftRight=function(e,i){var o=this.cellNavigationService.getNextCellToFocus(e,i,!0),s=o.rowIndex,a=o.column;this.navigateTo({scrollIndex:s,scrollType:null,scrollColumn:a,focusIndex:s,focusColumn:a})},r.prototype.onHomeOrEndKey=function(e){var i=e===gi.PAGE_HOME,o=this.columnModel.getAllDisplayedColumns(),s=i?o[0]:Ja(o),a=i?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow();this.navigateTo({scrollIndex:a,scrollType:null,scrollColumn:s,focusIndex:a,focusColumn:s})},r.prototype.onTabKeyDown=function(e,i){var o=i.shiftKey;if(this.tabToNextCellCommon(e,o,i))i.preventDefault();else if(o){var a=e.getRowPosition(),l=a.rowIndex;(a.rowPinned?0===l:l===this.paginationProxy.getPageFirstRow())&&(i.preventDefault(),this.focusService.focusLastHeader(i))}else e instanceof B1&&e.focusCell(!0),this.focusService.focusNextGridCoreContainer(o)&&i.preventDefault()},r.prototype.tabToNextCell=function(e,i){var o=this.focusService.getFocusedCell();if(!o)return!1;var s=this.getCellByPosition(o);return!!(s||(s=this.rowRenderer.getRowByPosition(o),s&&s.isFullWidth()))&&this.tabToNextCellCommon(s,e,i)},r.prototype.tabToNextCellCommon=function(e,i,o){var s=e.isEditing();if(!s&&e instanceof B1){var l=e.getRowCtrl();l&&(s=l.isEditing())}return(s?this.gridOptionsWrapper.isFullRowEdit()?this.moveToNextEditingRow(e,i,o):this.moveToNextEditingCell(e,i,o):this.moveToNextCellNotEditing(e,i))||!!this.focusService.getFocusedHeader()},r.prototype.moveToNextEditingCell=function(e,i,o){void 0===o&&(o=null);var s=e.getCellPosition();e.stopEditing();var a=this.findNextCellToFocusOn(s,i,!0);return null!=a&&(a.startEditing(null,null,!0,o),a.focusCell(!1),!0)},r.prototype.moveToNextEditingRow=function(e,i,o){void 0===o&&(o=null);var s=e.getCellPosition(),a=this.findNextCellToFocusOn(s,i,!0);if(null==a)return!1;var l=a.getCellPosition(),c=this.isCellEditable(s),d=this.isCellEditable(l),f=l&&s.rowIndex===l.rowIndex&&s.rowPinned===l.rowPinned;return c&&e.setFocusOutOnEditor(),f||(e.getRowCtrl().stopEditing(),a.getRowCtrl().startRowEditing(void 0,void 0,void 0,o)),d?(a.setFocusInOnEditor(),a.focusCell()):a.focusCell(!0),!0},r.prototype.moveToNextCellNotEditing=function(e,i){var s,o=this.columnModel.getAllDisplayedColumns();s=e instanceof Y0?gE(gE({},e.getRowPosition()),{column:i?o[0]:Ja(o)}):e.getCellPosition();var a=this.findNextCellToFocusOn(s,i,!1);if(a instanceof B1)a.focusCell(!0);else if(a)return this.tryToFocusFullWidthRow(a.getRowPosition(),i);return rr(a)},r.prototype.findNextCellToFocusOn=function(e,i,o){for(var s=e;;){e!==s&&(e=s),i||(s=this.getLastCellOfColSpan(s)),s=this.cellNavigationService.getNextTabbedCell(s,i);var a=this.gridOptionsWrapper.getTabToNextCellFunc();if(rr(a)){var c=a({backwards:i,editing:o,previousCellPosition:e,nextCellPosition:s||null});rr(c)?(c.floating&&(sa(function(){console.warn("AG Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?")},"no floating in userCell"),c.rowPinned=c.floating),s={rowIndex:c.rowIndex,column:c.column,rowPinned:c.rowPinned}):s=null}if(!s)return null;if(s.rowIndex<0){var d=this.headerNavigationService.getHeaderRowCount();return this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:d+s.rowIndex,column:s.column}}),null}var f=this.gridOptionsWrapper.isFullRowEdit();if(!o||f||this.isCellEditable(s)){this.ensureCellVisible(s);var w=this.getCellByPosition(s);if(!w){var x=this.rowRenderer.getRowByPosition(s);if(!x||!x.isFullWidth())continue;return x}if(!w.isSuppressNavigable())return this.rangeService&&this.rangeService.setRangeToCell(s),w}}},r.prototype.isCellEditable=function(e){var i=this.lookupRowNodeForCell(e);return!!i&&e.column.isCellEditable(i)},r.prototype.getCellByPosition=function(e){var i=this.rowRenderer.getRowByPosition(e);return i?i.getCellCtrl(e.column):null},r.prototype.lookupRowNodeForCell=function(e){return e.rowPinned===Nn.PINNED_TOP?this.pinnedRowModel.getPinnedTopRow(e.rowIndex):e.rowPinned===Nn.PINNED_BOTTOM?this.pinnedRowModel.getPinnedBottomRow(e.rowIndex):this.paginationProxy.getRow(e.rowIndex)},r.prototype.navigateToNextCell=function(e,i,o,s){for(var a=o,l=!1;a&&(a===o||!this.isValidNavigateCell(a));)this.gridOptionsWrapper.isEnableRtl()?i===gi.LEFT&&(a=this.getLastCellOfColSpan(a)):i===gi.RIGHT&&(a=this.getLastCellOfColSpan(a)),l=$o(a=this.cellNavigationService.getNextCellToFocus(i,a));if(l&&e&&e.key===gi.UP&&(a={rowIndex:-1,rowPinned:null,column:o.column}),s){var c=this.gridOptionsWrapper.getNavigateToNextCellFunc();if(rr(c)){var f=c({key:i,previousCellPosition:o,nextCellPosition:a||null,event:e});rr(f)?(f.floating&&(sa(function(){console.warn("AG Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?")},"no floating in userCell"),f.rowPinned=f.floating),a={rowPinned:f.rowPinned,rowIndex:f.rowIndex,column:f.column}):a=null}}if(a){if(a.rowIndex<0){var v=this.headerNavigationService.getHeaderRowCount();return void this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:v+a.rowIndex,column:o.column},event:e||void 0})}var w=this.getNormalisedPosition(a);w?this.focusPosition(w):this.tryToFocusFullWidthRow(a)}},r.prototype.getNormalisedPosition=function(e){this.ensureCellVisible(e);var i=this.getCellByPosition(e);return i?(e=i.getCellPosition(),this.ensureCellVisible(e),e):null},r.prototype.tryToFocusFullWidthRow=function(e,i){void 0===i&&(i=!1);var o=this.columnModel.getAllDisplayedColumns(),s=this.rowRenderer.getRowByPosition(e);if(!s||!s.isFullWidth())return!1;var a=this.focusService.getFocusedCell(),l={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column||(i?Ja(o):o[0])};this.focusPosition(l);var c=null!=a&&this.rowPositionUtils.before(l,a);return this.eventService.dispatchEvent({type:Et.EVENT_FULL_WIDTH_ROW_FOCUSED,api:this.gridApi,columnApi:this.columnApi,rowIndex:l.rowIndex,rowPinned:l.rowPinned,column:l.column,isFullWidthCell:!0,floating:l.rowPinned,fromBelow:c}),!0},r.prototype.focusPosition=function(e){this.focusService.setFocusedCell({rowIndex:e.rowIndex,column:e.column,rowPinned:e.rowPinned,forceBrowserFocus:!0}),this.rangeService&&this.rangeService.setRangeToCell(e)},r.prototype.isValidNavigateCell=function(e){return!!this.rowPositionUtils.getRowNode(e)},r.prototype.getLastCellOfColSpan=function(e){var i=this.getCellByPosition(e);if(!i)return e;var o=i.getColSpanningList();return 1===o.length?e:{rowIndex:e.rowIndex,column:Ja(o),rowPinned:e.rowPinned}},r.prototype.ensureCellVisible=function(e){var i,o=this.gridOptionsWrapper.isGroupRowsSticky(),s=this.rowModel.getRow(e.rowIndex);!(o&&(null===(i=s)||void 0===i?void 0:i.sticky))&&$o(e.rowPinned)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(e.rowIndex),e.column.isPinned()||this.gridBodyCon.getScrollFeature().ensureColumnVisible(e.column),this.gridBodyCon.getScrollFeature().horizontallyScrollHeaderCenterAndFloatingCenter(),this.animationFrameService.flushAllFrames()},Ep([Xe("columnApi")],r.prototype,"columnApi",void 0),Ep([Xe("gridApi")],r.prototype,"gridApi",void 0),Ep([Xe("mouseEventService")],r.prototype,"mouseEventService",void 0),Ep([Xe("paginationProxy")],r.prototype,"paginationProxy",void 0),Ep([Xe("focusService")],r.prototype,"focusService",void 0),Ep([Xe("animationFrameService")],r.prototype,"animationFrameService",void 0),Ep([_a("rangeService")],r.prototype,"rangeService",void 0),Ep([Xe("columnModel")],r.prototype,"columnModel",void 0),Ep([Xe("rowModel")],r.prototype,"rowModel",void 0),Ep([Xe("ctrlsService")],r.prototype,"ctrlsService",void 0),Ep([Xe("rowRenderer")],r.prototype,"rowRenderer",void 0),Ep([Xe("headerNavigationService")],r.prototype,"headerNavigationService",void 0),Ep([Xe("rowPositionUtils")],r.prototype,"rowPositionUtils",void 0),Ep([Xe("cellNavigationService")],r.prototype,"cellNavigationService",void 0),Ep([Xe("pinnedRowModel")],r.prototype,"pinnedRowModel",void 0),Ep([qi],r.prototype,"postConstruct",null),Ep([Kr("navigationService")],r)}(Zi),mA=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),TK=function(t){function r(e){var i=t.call(this,'<div class="ag-popup-editor" tabindex="-1"/>')||this;return i.params=e,i}return mA(r,t),r.prototype.postConstruct=function(){this.gridOptionsWrapper.setDomData(this.getGui(),r.DOM_KEY_POPUP_EDITOR_WRAPPER,!0),this.addKeyDownListener()},r.prototype.addKeyDownListener=function(){var e=this,i=this.getGui(),o=this.params;this.addManagedListener(i,"keydown",function(a){_C(e.gridOptionsWrapper,a,o.node,o.column,!0)||o.onKeyDown(a)})},r.DOM_KEY_POPUP_EDITOR_WRAPPER="popupEditorWrapper",function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);o>3&&s&&Object.defineProperty(r,e,s)}([qi],r.prototype,"postConstruct",null),r}(DC),SK=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),zB=function(t){function r(e,i,o,s,a){var l=t.call(this)||this;l.rendererVersion=0,l.editorVersion=0,l.beans=e,l.column=i.getColumn(),l.rowNode=i.getRowNode(),l.rowCtrl=i.getRowCtrl(),l.eRow=s,l.setTemplate('<div comp-id="'+l.getCompId()+'"/>');var c=l.getGui();l.forceWrapper=i.isForceWrapper(),l.refreshWrapper(!1);var d=function(v,w,x){var I=x||c;null!=w&&""!=w?I.setAttribute(v,w):I.removeAttribute(v)},f={addOrRemoveCssClass:function(v,w){return l.addOrRemoveCssClass(v,w)},setUserStyles:function(v){return E1(c,v)},getFocusableElement:function(){return l.getFocusableElement()},setTabIndex:function(v){return d("tabindex",v.toString())},setRole:function(v){return Qn(c,v)},setColId:function(v){return d("col-id",v)},setTitle:function(v){return d("title",v)},setIncludeSelection:function(v){return l.includeSelection=v},setIncludeRowDrag:function(v){return l.includeRowDrag=v},setIncludeDndSource:function(v){return l.includeDndSource=v},setRenderDetails:function(v,w,x){return l.setRenderDetails(v,w,x)},setEditDetails:function(v,w,x){return l.setEditDetails(v,w,x)},getCellEditor:function(){return l.cellEditor||null},getCellRenderer:function(){return l.cellRenderer||null},getParentOfValue:function(){return l.getParentOfValue()}};return l.cellCtrl=i,i.setComp(f,l.getGui(),l.eCellWrapper,o,a),l}return SK(r,t),r.prototype.getParentOfValue=function(){return this.eCellValue?this.eCellValue:this.eCellWrapper?this.eCellWrapper:this.getGui()},r.prototype.setRenderDetails=function(e,i,o){if(!this.cellEditor||this.cellEditorPopupWrapper){this.firstRender=null==this.firstRender;var a=this.refreshWrapper(!1);e?!o&&!a&&this.refreshCellRenderer(e)||(this.destroyRenderer(),this.createCellRendererInstance(e)):(this.destroyRenderer(),this.insertValueWithoutCellRenderer(i))}},r.prototype.setEditDetails=function(e,i,o){e?this.createCellEditorInstance(e,i,o):this.destroyEditor()},r.prototype.removeControls=function(){this.checkboxSelectionComp=this.beans.context.destroyBean(this.checkboxSelectionComp),this.dndSourceComp=this.beans.context.destroyBean(this.dndSourceComp),this.rowDraggingComp=this.beans.context.destroyBean(this.rowDraggingComp)},r.prototype.refreshWrapper=function(e){var i=this.includeRowDrag||this.includeDndSource||this.includeSelection,o=i||this.forceWrapper,s=o&&null==this.eCellWrapper;s&&(this.eCellWrapper=Su('<div class="ag-cell-wrapper" role="presentation"></div>'),this.getGui().appendChild(this.eCellWrapper));var a=!o&&null!=this.eCellWrapper;a&&(Xm(this.eCellWrapper),this.eCellWrapper=void 0),this.addOrRemoveCssClass("ag-cell-value",!o);var l=!e&&o,c=l&&null==this.eCellValue;c&&(this.eCellValue=Su('<span class="ag-cell-value" role="presentation"></span>'),this.eCellWrapper.appendChild(this.eCellValue));var d=!l&&null!=this.eCellValue;d&&(Xm(this.eCellValue),this.eCellValue=void 0);var f=s||a||c||d;return f&&this.removeControls(),!e&&i&&this.addControls(),f},r.prototype.addControls=function(){var e=this.eCellValue.id="cell-"+this.getCompId(),i=[];this.includeRowDrag&&null==this.rowDraggingComp&&(this.rowDraggingComp=this.cellCtrl.createRowDragComp(),this.rowDraggingComp&&this.eCellWrapper.insertBefore(this.rowDraggingComp.getGui(),this.eCellValue)),this.includeDndSource&&null==this.dndSourceComp&&(this.dndSourceComp=this.cellCtrl.createDndSource(),this.eCellWrapper.insertBefore(this.dndSourceComp.getGui(),this.eCellValue)),this.includeSelection&&(null==this.checkboxSelectionComp&&(this.checkboxSelectionComp=this.cellCtrl.createSelectionCheckbox(),this.eCellWrapper.insertBefore(this.checkboxSelectionComp.getGui(),this.eCellValue)),i.push(this.checkboxSelectionComp.getCheckboxId())),i.push(e),_r(this.getGui(),i.join(" "))},r.prototype.createCellEditorInstance=function(e,i,o){var s=this,a=this.editorVersion,l=e.newAgStackInstance();if(l){var c=e.params;l.then(function(f){return s.afterCellEditorCreated(a,f,c,i,o)}),$o(this.cellEditor)&&c.cellStartedEdit&&this.cellCtrl.focusCell(!0)}},r.prototype.insertValueWithoutCellRenderer=function(e){var i=this.getParentOfValue();eu(i);var o=null!=e?Ju(e):null;null!=o&&(i.innerHTML=o)},r.prototype.destroyEditorAndRenderer=function(){this.destroyRenderer(),this.destroyEditor()},r.prototype.destroyRenderer=function(){this.cellRenderer=this.beans.context.destroyBean(this.cellRenderer),Xm(this.cellRendererGui),this.cellRendererGui=null,this.rendererVersion++},r.prototype.destroyEditor=function(){var e=this.beans.context;this.hideEditorPopup&&this.hideEditorPopup(),this.hideEditorPopup=void 0,this.cellEditor=e.destroyBean(this.cellEditor),this.cellEditorPopupWrapper=e.destroyBean(this.cellEditorPopupWrapper),Xm(this.cellEditorGui),this.cellEditorGui=null,this.editorVersion++},r.prototype.refreshCellRenderer=function(e){if(null==this.cellRenderer||null==this.cellRenderer.refresh||this.cellRendererClass!==e.componentClass)return!1;var i=this.cellRenderer.refresh(e.params);return!0===i||void 0===i},r.prototype.createCellRendererInstance=function(e){var i=this,o=this.beans.gridOptionsWrapper.isAngularCompileRows(),s=this.beans.gridOptionsWrapper.isSuppressAnimationFrame(),l=this.rendererVersion,c=e.componentClass,d=function(){if(i.rendererVersion===l&&i.isAlive()){var v=e.newAgStackInstance(),w=i.afterCellRendererCreated.bind(i,l,c);v&&v.then(w)}};o||s||!this.firstRender?d():this.beans.animationFrameService.createTask(d,this.rowNode.rowIndex,"createTasksP2")},r.prototype.getCtrl=function(){return this.cellCtrl},r.prototype.getRowCtrl=function(){return this.rowCtrl},r.prototype.getCellRenderer=function(){return this.cellRenderer},r.prototype.getCellEditor=function(){return this.cellEditor},r.prototype.afterCellRendererCreated=function(e,i,o){if(this.isAlive()&&e===this.rendererVersion){if(this.cellRenderer=o,this.cellRendererClass=i,this.cellRendererGui=this.cellRenderer.getGui(),null!=this.cellRendererGui){var a=this.getParentOfValue();eu(a),a.appendChild(this.cellRendererGui)}}else this.beans.context.destroyBean(o)},r.prototype.afterCellEditorCreated=function(e,i,o,s,a){if(e!==this.editorVersion)this.beans.context.destroyBean(i);else{if(i.isCancelBeforeStart&&i.isCancelBeforeStart())return this.beans.context.destroyBean(i),void this.cellCtrl.stopEditing();if(!i.getGui)return console.warn("AG Grid: cellEditor for column "+this.column.getId()+" is missing getGui() method"),void this.beans.context.destroyBean(i);this.cellEditor=i,this.cellEditorGui=i.getGui(),s||void 0!==i.isPopup&&i.isPopup()?(s||this.cellCtrl.hackSayEditingInPopup(),this.addPopupCellEditor(o,a)):this.addInCellEditor(),i.afterGuiAttached&&i.afterGuiAttached()}},r.prototype.addInCellEditor=function(){var e=this.getGui(),i=this.beans.gridOptionsWrapper.getDocument();e.contains(i.activeElement)&&e.focus(),this.destroyRenderer(),this.refreshWrapper(!0),this.clearParentOfValue(),this.cellEditorGui&&this.getParentOfValue().appendChild(this.cellEditorGui)},r.prototype.addPopupCellEditor=function(e,i){var o=this;this.beans.gridOptionsWrapper.isFullRowEdit()&&console.warn("AG Grid: popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.");var s=this.cellEditor;this.cellEditorPopupWrapper=this.beans.context.createBean(new TK(e));var a=this.cellEditorPopupWrapper.getGui();this.cellEditorGui&&a.appendChild(this.cellEditorGui);var l=this.beans.popupService,c=this.beans.gridOptionsWrapper.isStopEditingWhenCellsLoseFocus(),d=i??(s.getPopupPosition?s.getPopupPosition():"over"),f={column:this.column,rowNode:this.rowNode,type:"popupCellEditor",eventSource:this.getGui(),ePopup:a,keepWithinBounds:!0},v="under"===d?l.positionPopupUnderComponent.bind(l,f):l.positionPopupOverComponent.bind(l,f),w=this.beans.gridOptionsWrapper.getLocaleTextFunc(),x=l.addPopup({modal:c,eChild:a,closeOnEsc:!0,closedCallback:function(){o.cellCtrl.onPopupEditorClosed()},anchorToElement:this.getGui(),positionCallback:v,ariaLabel:w("ariaLabelCellEditor","Cell Editor")});x&&(this.hideEditorPopup=x.hideFunc)},r.prototype.detach=function(){this.eRow.removeChild(this.getGui())},r.prototype.destroy=function(){this.cellCtrl.stopEditing(),this.destroyEditorAndRenderer(),this.removeControls(),t.prototype.destroy.call(this)},r.prototype.clearParentOfValue=function(){var e=this.getGui(),i=this.beans.gridOptionsWrapper.getDocument();e.contains(i.activeElement)&&e.focus({preventScroll:!0}),eu(this.getParentOfValue())},r}(Do),qB=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),xK=function(t){function r(e,i,o){var s=t.call(this)||this;s.cellComps={},s.beans=i,s.rowCtrl=e,s.setTemplate('<div comp-id="'+s.getCompId()+'" style="'+s.getInitialStyle()+'"/>');var a=s.getGui(),l=a.style;return e.setComp({setDomOrder:function(d){return s.domOrder=d},setCellCtrls:function(d){return s.setCellCtrls(d)},showFullWidth:function(d){return s.showFullWidth(d)},getFullWidthCellRenderer:function(){return s.getFullWidthCellRenderer()},addOrRemoveCssClass:function(d,f){return s.addOrRemoveCssClass(d,f)},setUserStyles:function(d){return E1(a,d)},setTop:function(d){return l.top=d},setTransform:function(d){return l.transform=d},setRowIndex:function(d){return a.setAttribute("row-index",d)},setRole:function(d){return Qn(a,d)},setRowId:function(d){return a.setAttribute("row-id",d)},setRowBusinessKey:function(d){return a.setAttribute("row-business-key",d)},setTabIndex:function(d){return a.setAttribute("tabindex",d.toString())}},s.getGui(),o),s}return qB(r,t),r.prototype.getInitialStyle=function(){var e=this.rowCtrl.getInitialTransform(),i=this.rowCtrl.getInitialRowTop();return e?"transform: "+e:"top: "+i},r.prototype.showFullWidth=function(e){var i=this,s=e.newAgStackInstance();s&&s.then(function(a){if(i.isAlive()){var l=a.getGui();i.getGui().appendChild(l),i.rowCtrl.setupDetailRowAutoHeight(l),i.setFullWidthRowComp(a)}else i.beans.context.destroyBean(a)})},r.prototype.setCellCtrls=function(e){var i=this,o=Object.assign({},this.cellComps);e.forEach(function(a){var l=a.getInstanceId();null==i.cellComps[l]?i.newCellComp(a):o[l]=null});var s=ls(o).filter(function(a){return null!=a});this.destroyCells(s),this.ensureDomOrder(e)},r.prototype.ensureDomOrder=function(e){var i=this;if(this.domOrder){var o=[];e.forEach(function(s){var a=i.cellComps[s.getInstanceId()];a&&o.push(a.getGui())}),vm(this.getGui(),o)}},r.prototype.newCellComp=function(e){var i=new zB(this.beans,e,this.rowCtrl.isPrintLayout(),this.getGui(),this.rowCtrl.isEditing());this.cellComps[e.getInstanceId()]=i,this.getGui().appendChild(i.getGui())},r.prototype.destroy=function(){t.prototype.destroy.call(this),this.destroyAllCells()},r.prototype.destroyAllCells=function(){var e=ls(this.cellComps).filter(function(i){return null!=i});this.destroyCells(e)},r.prototype.setFullWidthRowComp=function(e){var i=this;this.fullWidthCellRenderer&&console.error("AG Grid - should not be setting fullWidthRowComponent twice"),this.fullWidthCellRenderer=e,this.addDestroyFunc(function(){i.fullWidthCellRenderer=i.beans.context.destroyBean(i.fullWidthCellRenderer)})},r.prototype.getFullWidthCellRenderer=function(){return this.fullWidthCellRenderer},r.prototype.destroyCells=function(e){var i=this;e.forEach(function(o){if(o){var s=o.getCtrl().getInstanceId();i.cellComps[s]===o&&(o.detach(),o.destroy(),i.cellComps[s]=null)}})},r}(Do),XB=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),wL=function(){return wL=Object.assign||function(t){for(var r,e=1,i=arguments.length;e<i;e++)for(var o in r=arguments[e])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t},wL.apply(this,arguments)},GC=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},QB=function(t){function r(){var e=t.call(this,function KB(){var t=Do.elementGettingCreated.getAttribute("name"),r=mE.getRowContainerCssClasses(t);return t===$i.CENTER?'<div class="'+r.wrapper+'" ref="eWrapper" role="presentation">\n                <div class="'+r.viewport+'" ref="eViewport" role="presentation">\n                    <div class="'+r.container+'" ref="eContainer"></div>\n                </div>\n            </div>':t===$i.TOP_CENTER||t===$i.STICKY_TOP_CENTER||t===$i.BOTTOM_CENTER?'<div class="'+r.viewport+'" ref="eViewport" role="presentation">\n                <div class="'+r.container+'" ref="eContainer"></div>\n            </div>':'<div class="'+r.container+'" ref="eContainer"></div>'}())||this;return e.rowComps={},e.name=Do.elementGettingCreated.getAttribute("name"),e.type=function _L(t){switch(t){case $i.CENTER:case $i.TOP_CENTER:case $i.STICKY_TOP_CENTER:case $i.BOTTOM_CENTER:return Uf.CENTER;case $i.LEFT:case $i.TOP_LEFT:case $i.STICKY_TOP_LEFT:case $i.BOTTOM_LEFT:return Uf.LEFT;case $i.RIGHT:case $i.TOP_RIGHT:case $i.STICKY_TOP_RIGHT:case $i.BOTTOM_RIGHT:return Uf.RIGHT;case $i.FULL_WIDTH:case $i.TOP_FULL_WIDTH:case $i.STICKY_TOP_FULL_WIDTH:case $i.BOTTOM_FULL_WIDTH:return Uf.FULL_WIDTH;default:throw Error("Invalid Row Container Type")}}(e.name),e}return XB(r,t),r.prototype.postConstruct=function(){var e=this,i={setViewportHeight:function(s){return e.eViewport.style.height=s},setRowCtrls:function(s){return e.setRowCtrls(s)},setDomOrder:function(s){e.domOrder=s},setContainerWidth:function(s){return e.eContainer.style.width=s}};this.createManagedBean(new mE(this.name)).setComp(i,this.eContainer,this.eViewport,this.eWrapper)},r.prototype.preDestroy=function(){this.setRowCtrls([])},r.prototype.setRowCtrls=function(e){var i=this,o=wL({},this.rowComps);this.rowComps={},this.lastPlacedElement=null,e.forEach(function(a){var l=a.getInstanceId(),c=o[l];if(c)i.rowComps[l]=c,delete o[l],i.ensureDomOrder(c.getGui());else{var d=i.newRowComp(a);i.rowComps[l]=d,i.appendRow(d.getGui())}}),ls(o).forEach(function(a){i.eContainer.removeChild(a.getGui()),a.destroy()}),Qn(this.eContainer,e.length?"rowgroup":"presentation")},r.prototype.appendRow=function(e){this.domOrder?Wg(this.eContainer,e,this.lastPlacedElement):this.eContainer.appendChild(e),this.lastPlacedElement=e},r.prototype.ensureDomOrder=function(e){this.domOrder&&(Yg(this.eContainer,e,this.lastPlacedElement),this.lastPlacedElement=e)},r.prototype.newRowComp=function(e){return mE.getPinned(this.name),new xK(e,this.beans,this.type)},GC([Xe("beans")],r.prototype,"beans",void 0),GC([Ti("eViewport")],r.prototype,"eViewport",void 0),GC([Ti("eContainer")],r.prototype,"eContainer",void 0),GC([Ti("eWrapper")],r.prototype,"eWrapper",void 0),GC([qi],r.prototype,"postConstruct",null),GC([Ru],r.prototype,"preDestroy",null),r}(Do),_E=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},aS=function(){function t(r){this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[],this.pinned=r}return t.prototype.onDragEnter=function(r){var e=this;if(this.clearColumnsList(),!this.gridOptionsWrapper.isFunctionsReadOnly()){var i=r.dragItem.columns;i&&i.forEach(function(o){o.isPrimary()&&(o.isAnyFunctionActive()||(o.isAllowValue()?e.columnsToAggregate.push(o):o.isAllowRowGroup()?e.columnsToGroup.push(o):o.isAllowPivot()&&e.columnsToPivot.push(o)))})}},t.prototype.getIconName=function(){return this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length>0?this.pinned?Zl.ICON_PINNED:Zl.ICON_MOVE:null},t.prototype.onDragLeave=function(r){this.clearColumnsList()},t.prototype.clearColumnsList=function(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0},t.prototype.onDragging=function(r){},t.prototype.onDragStop=function(r){this.columnsToAggregate.length>0&&this.columnModel.addValueColumns(this.columnsToAggregate,"toolPanelDragAndDrop"),this.columnsToGroup.length>0&&this.columnModel.addRowGroupColumns(this.columnsToGroup,"toolPanelDragAndDrop"),this.columnsToPivot.length>0&&this.columnModel.addPivotColumns(this.columnsToPivot,"toolPanelDragAndDrop")},_E([Xe("columnModel")],t.prototype,"columnModel",void 0),_E([Xe("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),t}(),$1=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},TL=function(){function t(r,e){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.pinned=r,this.eContainer=e,this.centerContainer=!rr(r)}return t.prototype.init=function(){var r=this;this.ctrlsService.whenReady(function(){r.gridBodyCon=r.ctrlsService.getGridBodyCtrl()})},t.prototype.getIconName=function(){return this.pinned?Zl.ICON_PINNED:Zl.ICON_MOVE},t.prototype.onDragEnter=function(r){var e=r.dragItem.columns;if(r.dragSource.type===Ed.ToolPanel)this.setColumnsVisible(e,!0,"uiColumnDragged");else{var o=r.dragItem.visibleState,s=(e||[]).filter(function(a){return o[a.getId()]});this.setColumnsVisible(s,!0,"uiColumnDragged")}this.setColumnsPinned(e,this.pinned,"uiColumnDragged"),this.onDragging(r,!0,!0)},t.prototype.onDragLeave=function(r){this.ensureIntervalCleared()},t.prototype.setColumnsVisible=function(r,e,i){if(void 0===i&&(i="api"),r){var o=r.filter(function(s){return!s.getColDef().lockVisible});this.columnModel.setColumnsVisible(o,e,i)}},t.prototype.setColumnsPinned=function(r,e,i){if(void 0===i&&(i="api"),r){var o=r.filter(function(s){return!s.getColDef().lockPinned});this.columnModel.setColumnsPinned(o,e,i)}},t.prototype.onDragStop=function(){this.ensureIntervalCleared()},t.prototype.normaliseX=function(r){return this.gridOptionsWrapper.isEnableRtl()&&(r=this.eContainer.clientWidth-r),this.centerContainer&&(r+=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft()),r},t.prototype.checkCenterForScrolling=function(r){if(this.centerContainer){var e=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft(),i=e+this.ctrlsService.getCenterRowContainerCtrl().getCenterWidth();this.gridOptionsWrapper.isEnableRtl()?(this.needToMoveRight=r<e+50,this.needToMoveLeft=r>i-50):(this.needToMoveLeft=r<e+50,this.needToMoveRight=r>i-50),this.needToMoveLeft||this.needToMoveRight?this.ensureIntervalStarted():this.ensureIntervalCleared()}},t.prototype.onDragging=function(r,e,i){var o=this;if(void 0===e&&(e=!1),void 0===i&&(i=!1),this.lastDraggingEvent=r,!$o(r.hDirection)){var s=this.normaliseX(r.x);e||this.checkCenterForScrolling(s);var a=this.normaliseDirection(r.hDirection),l=r.dragSource.type,c=r.dragSource.getDragItem().columns;c=c.filter(function(d){return!d.getColDef().lockPinned||d.getPinned()==o.pinned}),this.attemptMoveColumns(l,c,a,s,e,i)}},t.prototype.normaliseDirection=function(r){if(!this.gridOptionsWrapper.isEnableRtl())return r;switch(r){case x_.Left:return x_.Right;case x_.Right:return x_.Left;default:console.error("AG Grid: Unknown direction "+r)}},t.prototype.calculateOldIndex=function(r){var e=this.columnModel.getAllGridColumns(),i=OT(r.map(function(c){return e.indexOf(c)})),o=i[0];return Ja(i)-o!=i.length-1?null:o},t.prototype.attemptMoveColumns=function(r,e,i,o,s,a){var l=i===x_.Left,c=i===x_.Right;if(r===Ed.HeaderCell){var d=[];e.forEach(function(lt){for(var bt=null,Wt=lt.getParent();null!=Wt&&1===Wt.getDisplayedLeafColumns().length;)bt=Wt,Wt=Wt.getParent();null!=bt?bt.getLeafColumns().forEach(function(Zt){d.includes(Zt)||d.push(Zt)}):d.includes(lt)||d.push(lt)}),e=d}var f=e.slice();this.columnModel.sortColumnsLikeGridColumns(f);var v=this.calculateValidMoves(f,c,o),w=this.calculateOldIndex(f);if(0!==v.length){var x=v[0],I=null!==w&&!s;if(r==Ed.HeaderCell&&(I=null!==w),!I||a||!(l&&x>=w||c&&x<=w)){for(var M=this.columnModel.getAllDisplayedColumns(),F=[],re=null,pe=0;pe<v.length;pe++){var we=v[pe],je=this.columnModel.getProposedColumnOrder(f,we);if(this.columnModel.doesOrderPassRules(je)){var tt=je.filter(function(lt){return M.includes(lt)});if(null===re)re=tt;else if(!ln.areEqual(tt,re))break;var nt=this.groupFragCount(je);F.push({move:we,fragCount:nt})}}0!==F.length&&(F.sort(function(lt,bt){return lt.fragCount-bt.fragCount}),this.columnModel.moveColumns(f,F[0].move,"uiColumnDragged"))}}},t.prototype.groupFragCount=function(r){function e(a){for(var l=[],c=a.getOriginalParent();null!=c;)l.push(c),c=c.getOriginalParent();return l}for(var i=0,o=function(a){var l,c=e(r[a]),d=e(r[a+1]);l=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var o,a,i=e.call(t),s=[];try{for(;(void 0===r||r-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return s}(c.length>d.length?[c,d]:[d,c],2),d=l[1],(c=l[0]).forEach(function(f){-1===d.indexOf(f)&&i++})},s=0;s<r.length-1;s++)o(s);return i},t.prototype.calculateValidMoves=function(r,e,i){if(this.gridOptionsWrapper.isSuppressMovableColumns()||r.some(function(rt){return rt.getColDef().suppressMovable}))return[];var M,s=this.columnModel.getDisplayedColumns(this.pinned),a=this.columnModel.getAllGridColumns(),l=s.filter(function(rt){return ht(r,rt)}),c=s.filter(function(rt){return!ht(r,rt)}),d=a.filter(function(rt){return!ht(r,rt)}),f=0,v=i;if(e){var w=0;l.forEach(function(rt){return w+=rt.getActualWidth()}),v-=w}if(v>0){for(var x=0;x<c.length&&!((v-=c[x].getActualWidth())<0);x++)f++;e&&f++}f>0?M=d.indexOf(c[f-1])+1:-1===(M=d.indexOf(c[0]))&&(M=0);var re=[M],pe=function(rt,lt){return rt-lt};if(e){for(var we=M+1,je=a.length-1;we<=je;)re.push(we),we++;re.sort(pe)}else{je=a.length-1;for(var tt=a[we=M];we<=je&&this.isColumnHidden(s,tt);)we++,re.push(we),tt=a[we];for(we=M-1;we>=0;)re.push(we),we--;re.sort(pe).reverse()}return re},t.prototype.isColumnHidden=function(r,e){return r.indexOf(e)<0},t.prototype.ensureIntervalStarted=function(){this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100),this.dragAndDropService.setGhostIcon(this.needToMoveLeft?Zl.ICON_LEFT:Zl.ICON_RIGHT,!0))},t.prototype.ensureIntervalCleared=function(){this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(Zl.ICON_MOVE))},t.prototype.moveInterval=function(){var r;this.intervalCount++,(r=10+5*this.intervalCount)>100&&(r=100);var e=null,i=this.gridBodyCon.getScrollFeature();if(this.needToMoveLeft?e=i.scrollHorizontally(-r):this.needToMoveRight&&(e=i.scrollHorizontally(r)),0!==e)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;var s=this.lastDraggingEvent.dragItem.columns.filter(function(l){return!l.getColDef().lockPinned});s.length>0&&(this.dragAndDropService.setGhostIcon(Zl.ICON_PINNED),this.failedMoveAttempts>7)&&(this.setColumnsPinned(s,this.needToMoveLeft?Nn.PINNED_LEFT:Nn.PINNED_RIGHT,"uiColumnDragged"),this.dragAndDropService.nudge())}},$1([Xe("columnModel")],t.prototype,"columnModel",void 0),$1([Xe("dragAndDropService")],t.prototype,"dragAndDropService",void 0),$1([Xe("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),$1([Xe("ctrlsService")],t.prototype,"ctrlsService",void 0),$1([qi],t.prototype,"init",null),t}(),lS=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),BC=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},JB=function(t){function r(e,i){var o=t.call(this)||this;return o.pinned=e,o.eContainer=i,o}return lS(r,t),r.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(i){switch(e.pinned){case Nn.PINNED_LEFT:e.eSecondaryContainers=[[i.gridBodyCtrl.getBodyViewportElement(),i.leftRowContainerCtrl.getContainerElement()],[i.bottomLeftRowContainerCtrl.getContainerElement()],[i.topLeftRowContainerCtrl.getContainerElement()]];break;case Nn.PINNED_RIGHT:e.eSecondaryContainers=[[i.gridBodyCtrl.getBodyViewportElement(),i.rightRowContainerCtrl.getContainerElement()],[i.bottomRightRowContainerCtrl.getContainerElement()],[i.topRightRowContainerCtrl.getContainerElement()]];break;default:e.eSecondaryContainers=[[i.gridBodyCtrl.getBodyViewportElement(),i.centerRowContainerCtrl.getViewportElement()],[i.bottomCenterRowContainerCtrl.getViewportElement()],[i.topCenterRowContainerCtrl.getViewportElement()]]}})},r.prototype.isInterestedIn=function(e){return e===Ed.HeaderCell||e===Ed.ToolPanel&&this.gridOptionsWrapper.isAllowDragFromColumnsToolPanel()},r.prototype.getSecondaryContainers=function(){return this.eSecondaryContainers},r.prototype.getContainer=function(){return this.eContainer},r.prototype.init=function(){this.moveColumnFeature=this.createManagedBean(new TL(this.pinned,this.eContainer)),this.bodyDropPivotTarget=this.createManagedBean(new aS(this.pinned)),this.dragAndDropService.addDropTarget(this)},r.prototype.getIconName=function(){return this.currentDropListener.getIconName()},r.prototype.isDropColumnInPivotMode=function(e){return this.columnModel.isPivotMode()&&e.dragSource.type===Ed.ToolPanel},r.prototype.onDragEnter=function(e){this.currentDropListener=this.isDropColumnInPivotMode(e)?this.bodyDropPivotTarget:this.moveColumnFeature,this.currentDropListener.onDragEnter(e)},r.prototype.onDragLeave=function(e){this.currentDropListener.onDragLeave(e)},r.prototype.onDragging=function(e){this.currentDropListener.onDragging(e)},r.prototype.onDragStop=function(e){this.currentDropListener.onDragStop(e)},BC([Xe("dragAndDropService")],r.prototype,"dragAndDropService",void 0),BC([Xe("columnModel")],r.prototype,"columnModel",void 0),BC([Xe("ctrlsService")],r.prototype,"ctrlsService",void 0),BC([qi],r.prototype,"postConstruct",null),BC([qi],r.prototype,"init",null),r}(Zi),cS=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var o,a,i=e.call(t),s=[];try{for(;(void 0===r||r-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return s},uS=function(){function t(){}return t.getHeaderClassesFromColDef=function(r,e,i,o){return $o(r)?[]:this.getColumnClassesFromCollDef(r.headerClass,r,e,i,o)},t.getToolPanelClassesFromColDef=function(r,e,i,o){return $o(r)?[]:this.getColumnClassesFromCollDef(r.toolPanelClass,r,e,i,o)},t.getClassParams=function(r,e,i,o){return{colDef:r,column:i,columnGroup:o,api:e.getApi(),columnApi:e.getColumnApi(),context:e.getContext()}},t.getColumnClassesFromCollDef=function(r,e,i,o,s){return $o(r)?[]:"string"==typeof(a="function"==typeof r?r(this.getClassParams(e,i,o,s)):r)?[a]:Array.isArray(a)?function(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(cS(arguments[r]));return t}(a):[];var a},t}(),xL=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),dS=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},ZB=function(t){function r(e){var i=t.call(this,r.TEMPLATE,e)||this;return i.headerCompVersion=0,i.column=e.getColumnGroupChild(),i.pinned=e.getPinned(),i}return xL(r,t),r.prototype.postConstruct=function(){var e=this,i=this.getGui(),o=function(l,c,d){var f=d||i;null!=c&&""!=c?f.setAttribute(l,c):f.removeAttribute(l)};this.ctrl.setComp({setWidth:function(l){return i.style.width=l},addOrRemoveCssClass:function(l,c){return e.addOrRemoveCssClass(l,c)},setColId:function(l){return o("col-id",l)},setTitle:function(l){return o("title",l)},setAriaDescription:function(l){return Fi(i,l)},setAriaSort:function(l){return l?tu(i,l):ap(i)},setUserCompDetails:function(l){return e.setUserCompDetails(l)},getUserCompInstance:function(){return e.headerComp}},this.getGui(),this.eResize,this.eHeaderCompWrapper);var a=this.ctrl.getSelectAllGui();this.eResize.insertAdjacentElement("afterend",a)},r.prototype.destroyHeaderComp=function(){this.headerComp&&(this.eHeaderCompWrapper.removeChild(this.headerCompGui),this.headerComp=this.destroyBean(this.headerComp),this.headerCompGui=void 0)},r.prototype.setUserCompDetails=function(e){var i=this;this.headerCompVersion++;var o=this.headerCompVersion;e.newAgStackInstance().then(function(s){return i.afterCompCreated(o,s)})},r.prototype.afterCompCreated=function(e,i){e==this.headerCompVersion&&this.isAlive()?(this.destroyHeaderComp(),this.headerComp=i,this.headerCompGui=i.getGui(),this.eHeaderCompWrapper.appendChild(this.headerCompGui),this.ctrl.setDragSource(this.getGui())):this.destroyBean(i)},r.TEMPLATE='<div class="ag-header-cell" role="columnheader" tabindex="-1">\n            <div ref="eResize" class="ag-header-cell-resize" role="presentation"></div>\n            <div ref="eHeaderCompWrapper" class="ag-header-cell-comp-wrapper" role="presentation"></div>\n        </div>',dS([Ti("eResize")],r.prototype,"eResize",void 0),dS([Ti("eHeaderCompWrapper")],r.prototype,"eHeaderCompWrapper",void 0),dS([qi],r.prototype,"postConstruct",null),dS([Ru],r.prototype,"destroyHeaderComp",null),r}(sE),eV=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),gA=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},pS=function(t){function r(e){return t.call(this,r.TEMPLATE,e)||this}return eV(r,t),r.prototype.postConstruct=function(){var e=this,i=this.getGui(),o=function(a,l){return null!=l?i.setAttribute(a,l):i.removeAttribute(a)};this.ctrl.setComp({addOrRemoveCssClass:function(a,l){return e.addOrRemoveCssClass(a,l)},addOrRemoveResizableCssClass:function(a,l){return e.eResize.classList.toggle(a,l)},setWidth:function(a){return i.style.width=a},setColId:function(a){return i.setAttribute("col-id",a)},setAriaExpanded:function(a){return o("aria-expanded",a)},setTitle:function(a){return o("title",a)},setUserCompDetails:function(a){return e.setUserCompDetails(a)}},i,this.eResize)},r.prototype.setUserCompDetails=function(e){var i=this;e.newAgStackInstance().then(function(o){return i.afterHeaderCompCreated(o)})},r.prototype.afterHeaderCompCreated=function(e){var i=this,o=function(){return i.destroyBean(e)};this.isAlive()?(this.getGui().appendChild(e.getGui()),this.addDestroyFunc(o),this.ctrl.setDragSource(e.getGui())):o()},r.TEMPLATE='<div class="ag-header-group-cell" role="columnheader" tabindex="-1">\n            <div ref="eResize" class="ag-header-cell-resize" role="presentation"></div>\n        </div>',gA([Xe("userComponentFactory")],r.prototype,"userComponentFactory",void 0),gA([Ti("eResize")],r.prototype,"eResize",void 0),gA([qi],r.prototype,"postConstruct",null),r}(sE),tV=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),EL=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},rf=function(t){return t.COLUMN_GROUP="group",t.COLUMN="column",t.FLOATING_FILTER="filter",t}(rf||{}),bE=function(t){function r(e){var i=t.call(this)||this;i.headerComps={};var o=e.getType()==rf.COLUMN_GROUP?"ag-header-row-column-group":e.getType()==rf.FLOATING_FILTER?"ag-header-row-column-filter":"ag-header-row-column";return i.setTemplate('<div class="ag-header-row '+o+'" role="row"></div>'),i.ctrl=e,i}return tV(r,t),r.prototype.init=function(){var e=this;this.ctrl.setComp({setTransform:function(o){return e.getGui().style.transform=o},setHeight:function(o){return e.getGui().style.height=o},setTop:function(o){return e.getGui().style.top=o},setHeaderCtrls:function(o){return e.setHeaderCtrls(o)},setWidth:function(o){return e.getGui().style.width=o},setAriaRowIndex:function(o){return fa(e.getGui(),o)}})},r.prototype.destroyHeaderCtrls=function(){this.setHeaderCtrls([])},r.prototype.setHeaderCtrls=function(e){var i=this;if(this.isAlive()){var o=this.headerComps;if(this.headerComps={},e.forEach(function(c){var d=c.getInstanceId(),f=o[d];delete o[d],null==f&&(f=i.createHeaderComp(c),i.getGui().appendChild(f.getGui())),i.headerComps[d]=f}),Vo(o,function(c,d){i.getGui().removeChild(d.getGui()),i.destroyBean(d)}),this.gridOptionsWrapper.isEnsureDomOrder()){var a=ls(this.headerComps);a.sort(function(c,d){return c.getCtrl().getColumnGroupChild().getLeft()-d.getCtrl().getColumnGroupChild().getLeft()});var l=a.map(function(c){return c.getGui()});vm(this.getGui(),l)}}},r.prototype.createHeaderComp=function(e){var i;switch(this.ctrl.getType()){case rf.COLUMN_GROUP:i=new pS(e);break;case rf.FLOATING_FILTER:i=new aE(e);break;default:i=new ZB(e)}return this.createBean(i),i.setParentComponent(this),i},EL([qi],r.prototype,"init",null),EL([Ru],r.prototype,"destroyHeaderCtrls",null),r}(Do),DL=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),CE=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},kL=0,wE=function(t){function r(e,i){var o=t.call(this)||this;return o.lastFocusEvent=null,o.columnGroupChild=e,o.parentRowCtrl=i,o.instanceId=e.getUniqueId()+"-"+kL++,o}return DL(r,t),r.prototype.shouldStopEventPropagation=function(e){var i=this.focusService.getFocusedHeader();return VT(this.gridOptionsWrapper,e,i.headerRowIndex,i.column)},r.prototype.getWrapperHasFocus=function(){return this.gridOptionsWrapper.getDocument().activeElement===this.eGui},r.prototype.setGui=function(e){this.eGui=e,this.addDomData()},r.prototype.handleKeyDown=function(e){var i=this.getWrapperHasFocus();switch(e.key){case gi.PAGE_DOWN:case gi.PAGE_UP:case gi.PAGE_HOME:case gi.PAGE_END:i&&e.preventDefault()}},r.prototype.addDomData=function(){var e=this,i=r.DOM_DATA_KEY_HEADER_CTRL;this.gridOptionsWrapper.setDomData(this.eGui,i,this),this.addDestroyFunc(function(){return e.gridOptionsWrapper.setDomData(e.eGui,i,null)})},r.prototype.getGui=function(){return this.eGui},r.prototype.focus=function(e){return!!this.eGui&&(this.lastFocusEvent=e||null,this.eGui.focus(),!0)},r.prototype.getRowIndex=function(){return this.parentRowCtrl.getRowIndex()},r.prototype.getParentRowCtrl=function(){return this.parentRowCtrl},r.prototype.getPinned=function(){return this.parentRowCtrl.getPinned()},r.prototype.getInstanceId=function(){return this.instanceId},r.prototype.getColumnGroupChild=function(){return this.columnGroupChild},r.DOM_DATA_KEY_HEADER_CTRL="headerCtrl",CE([Xe("focusService")],r.prototype,"focusService",void 0),CE([Xe("beans")],r.prototype,"beans",void 0),CE([Xe("userComponentFactory")],r.prototype,"userComponentFactory",void 0),r}(Zi),Nl=function(t){return t.EVERYTHING="group",t.FILTER="filter",t.SORT="sort",t.MAP="map",t.AGGREGATE="aggregate",t.FILTER_AGGREGATES="filter_aggregates",t.PIVOT="pivot",t.NOTHING="nothing",t}(Nl||{}),Za=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s};function ov(t){return null!=t&&null!=t.getFrameworkComponentInstance?t.getFrameworkComponentInstance():t}var nV=function(){function t(){this.detailGridInfoMap={},this.destroyCalled=!1}return t.prototype.registerOverlayWrapperComp=function(r){this.overlayWrapperComp=r},t.prototype.registerSideBarComp=function(r){this.sideBarComp=r},t.prototype.init=function(){var r=this;switch(this.rowModel.getType()){case Nn.ROW_MODEL_TYPE_CLIENT_SIDE:this.clientSideRowModel=this.rowModel;break;case Nn.ROW_MODEL_TYPE_INFINITE:this.infiniteRowModel=this.rowModel;break;case Nn.ROW_MODEL_TYPE_SERVER_SIDE:this.serverSideRowModel=this.rowModel}this.ctrlsService.whenReady(function(){r.gridBodyCtrl=r.ctrlsService.getGridBodyCtrl()})},t.prototype.__getAlignedGridService=function(){return this.alignedGridsService},t.prototype.__getContext=function(){return this.context},t.prototype.addDetailGridInfo=function(r,e){this.detailGridInfoMap[r]=e},t.prototype.removeDetailGridInfo=function(r){this.detailGridInfoMap[r]=void 0},t.prototype.getDetailGridInfo=function(r){return this.detailGridInfoMap[r]},t.prototype.forEachDetailGridInfo=function(r){var e=0;Vo(this.detailGridInfoMap,function(i,o){rr(o)&&(r(o,e),e++)})},t.prototype.getDataAsCsv=function(r){if(qo.assertRegistered(mo.CsvExportModule,"api.getDataAsCsv"))return this.csvCreator.getDataAsCsv(r)},t.prototype.exportDataAsCsv=function(r){qo.assertRegistered(mo.CsvExportModule,"api.exportDataAsCSv")&&this.csvCreator.exportDataAsCsv(r)},t.prototype.getExcelExportMode=function(r){var e=this.gridOptionsWrapper.getDefaultExportParams("excel");return Object.assign({exportMode:"xlsx"},e,r).exportMode},t.prototype.getDataAsExcel=function(r){if(qo.assertRegistered(mo.ExcelExportModule,"api.getDataAsExcel")){var e=this.getExcelExportMode(r);return this.excelCreator.getFactoryMode(e)===D_.MULTI_SHEET?void console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling `api.getMultipleSheetAsExcel()` or `api.exportMultipleSheetsAsExcel()`"):this.excelCreator.getDataAsExcel(r)}},t.prototype.exportDataAsExcel=function(r){if(qo.assertRegistered(mo.ExcelExportModule,"api.exportDataAsExcel")){var e=this.getExcelExportMode(r);if(this.excelCreator.getFactoryMode(e)===D_.MULTI_SHEET)return void console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling `api.getMultipleSheetAsExcel()` or `api.exportMultipleSheetsAsExcel()`");this.excelCreator.exportDataAsExcel(r)}},t.prototype.getSheetDataForExcel=function(r){if(qo.assertRegistered(mo.ExcelExportModule,"api.getSheetDataForExcel")){var e=this.getExcelExportMode(r);return this.excelCreator.setFactoryMode(D_.MULTI_SHEET,e),this.excelCreator.getSheetDataForExcel(r)}},t.prototype.getMultipleSheetsAsExcel=function(r){if(qo.assertRegistered(mo.ExcelExportModule,"api.getMultipleSheetsAsExcel"))return this.excelCreator.getMultipleSheetsAsExcel(r)},t.prototype.exportMultipleSheetsAsExcel=function(r){if(qo.assertRegistered(mo.ExcelExportModule,"api.exportMultipleSheetsAsExcel"))return this.excelCreator.exportMultipleSheetsAsExcel(r)},t.prototype.setEnterpriseDatasource=function(r){console.warn("AG Grid: since version 18.x, api.setEnterpriseDatasource() should be replaced with api.setServerSideDatasource()"),this.setServerSideDatasource(r)},t.prototype.setGridAriaProperty=function(r,e){if(r){var i=this.ctrlsService.getGridBodyCtrl().getGui(),o="aria-"+r;null===e?i.removeAttribute(o):i.setAttribute(o,e)}},t.prototype.setServerSideDatasource=function(r){this.serverSideRowModel?this.serverSideRowModel.setDatasource(r):console.warn("AG Grid: you can only use an enterprise datasource when gridOptions.rowModelType is '"+Nn.ROW_MODEL_TYPE_SERVER_SIDE+"'")},t.prototype.setDatasource=function(r){this.gridOptionsWrapper.isRowModelInfinite()?this.rowModel.setDatasource(r):console.warn("AG Grid: you can only use a datasource when gridOptions.rowModelType is '"+Nn.ROW_MODEL_TYPE_INFINITE+"'")},t.prototype.setViewportDatasource=function(r){this.gridOptionsWrapper.isRowModelViewport()?this.rowModel.setViewportDatasource(r):console.warn("AG Grid: you can only use a viewport datasource when gridOptions.rowModelType is '"+Nn.ROW_MODEL_TYPE_VIEWPORT+"'")},t.prototype.setRowData=function(r){null==this.immutableService?console.warn("AG Grid: you can only set rowData when using the Client Side Row Model"):this.immutableService.isActive()?this.immutableService.setRowData(r):(this.selectionService.reset(),this.clientSideRowModel.setRowData(r))},t.prototype.setFloatingTopRowData=function(r){console.warn("AG Grid: since v12, api.setFloatingTopRowData() is now api.setPinnedTopRowData()"),this.setPinnedTopRowData(r)},t.prototype.setFloatingBottomRowData=function(r){console.warn("AG Grid: since v12, api.setFloatingBottomRowData() is now api.setPinnedBottomRowData()"),this.setPinnedBottomRowData(r)},t.prototype.getFloatingTopRowCount=function(){return console.warn("AG Grid: since v12, api.getFloatingTopRowCount() is now api.getPinnedTopRowCount()"),this.getPinnedTopRowCount()},t.prototype.getFloatingBottomRowCount=function(){return console.warn("AG Grid: since v12, api.getFloatingBottomRowCount() is now api.getPinnedBottomRowCount()"),this.getPinnedBottomRowCount()},t.prototype.getFloatingTopRow=function(r){return console.warn("AG Grid: since v12, api.getFloatingTopRow() is now api.getPinnedTopRow()"),this.getPinnedTopRow(r)},t.prototype.getFloatingBottomRow=function(r){return console.warn("AG Grid: since v12, api.getFloatingBottomRow() is now api.getPinnedBottomRow()"),this.getPinnedBottomRow(r)},t.prototype.setPinnedTopRowData=function(r){this.pinnedRowModel.setPinnedTopRowData(r)},t.prototype.setPinnedBottomRowData=function(r){this.pinnedRowModel.setPinnedBottomRowData(r)},t.prototype.getPinnedTopRowCount=function(){return this.pinnedRowModel.getPinnedTopRowCount()},t.prototype.getPinnedBottomRowCount=function(){return this.pinnedRowModel.getPinnedBottomRowCount()},t.prototype.getPinnedTopRow=function(r){return this.pinnedRowModel.getPinnedTopRow(r)},t.prototype.getPinnedBottomRow=function(r){return this.pinnedRowModel.getPinnedBottomRow(r)},t.prototype.setColumnDefs=function(r,e){void 0===e&&(e="api"),this.columnModel.setColumnDefs(r,e)},t.prototype.setAutoGroupColumnDef=function(r,e){void 0===e&&(e="api"),this.gridOptionsWrapper.setProperty("autoGroupColumnDef",r,!0)},t.prototype.setDefaultColDef=function(r,e){void 0===e&&(e="api"),this.gridOptionsWrapper.setProperty("defaultColDef",r,!0)},t.prototype.expireValueCache=function(){this.valueCache.expire()},t.prototype.getVerticalPixelRange=function(){return this.gridBodyCtrl.getScrollFeature().getVScrollPosition()},t.prototype.getHorizontalPixelRange=function(){return this.gridBodyCtrl.getScrollFeature().getHScrollPosition()},t.prototype.setAlwaysShowHorizontalScroll=function(r){this.gridOptionsWrapper.setProperty("alwaysShowHorizontalScroll",r)},t.prototype.setAlwaysShowVerticalScroll=function(r){this.gridOptionsWrapper.setProperty("alwaysShowVerticalScroll",r)},t.prototype.refreshToolPanel=function(){this.sideBarComp&&this.sideBarComp.refresh()},t.prototype.refreshCells=function(r){void 0===r&&(r={}),Array.isArray(r)?console.warn("since AG Grid v11.1, refreshCells() now takes parameters, please see the documentation."):this.rowRenderer.refreshCells(r)},t.prototype.flashCells=function(r){void 0===r&&(r={}),this.rowRenderer.flashCells(r)},t.prototype.redrawRows=function(r){void 0===r&&(r={}),this.rowRenderer.redrawRows(r?r.rowNodes:void 0)},t.prototype.setFunctionsReadOnly=function(r){this.gridOptionsWrapper.setProperty("functionsReadOnly",r)},t.prototype.refreshHeader=function(){this.ctrlsService.getHeaderRowContainerCtrls().forEach(function(r){return r.refresh()})},t.prototype.isAnyFilterPresent=function(){return this.filterManager.isAnyFilterPresent()},t.prototype.isColumnFilterPresent=function(){return this.filterManager.isColumnFilterPresent()||this.filterManager.isAggregateFilterPresent()},t.prototype.isQuickFilterPresent=function(){return this.filterManager.isQuickFilterPresent()},t.prototype.getModel=function(){return this.rowModel},t.prototype.setRowNodeExpanded=function(r,e){r&&r.setExpanded(e)},t.prototype.onGroupExpandedOrCollapsed=function(r){$o(this.clientSideRowModel)&&console.warn("AG Grid: cannot call onGroupExpandedOrCollapsed unless using normal row model"),rr(r)&&console.warn("AG Grid: api.onGroupExpandedOrCollapsed - refreshFromIndex parameter is no longer used, the grid will refresh all rows"),this.clientSideRowModel.refreshModel({step:Nl.MAP})},t.prototype.refreshInMemoryRowModel=function(r){console.warn("ag-grid: since version 18.x, api.refreshInMemoryRowModel() should be replaced with api.refreshClientSideRowModel()"),this.refreshClientSideRowModel(r)},t.prototype.refreshClientSideRowModel=function(r){$o(this.clientSideRowModel)&&console.warn("cannot call refreshClientSideRowModel unless using normal row model");var e=Nl.EVERYTHING,i={group:Nl.EVERYTHING,filter:Nl.FILTER,map:Nl.MAP,aggregate:Nl.AGGREGATE,sort:Nl.SORT,pivot:Nl.PIVOT};if(rr(r)&&(e=i[r]),$o(e))console.error("AG Grid: invalid step "+r+", available steps are "+Object.keys(i).join(", "));else{var o=!this.gridOptionsWrapper.isSuppressAnimationFrame();this.clientSideRowModel.refreshModel({step:e,keepRenderedRows:!0,keepEditingRows:!0,animate:o})}},t.prototype.isAnimationFrameQueueEmpty=function(){return this.animationFrameService.isQueueEmpty()},t.prototype.flushAllAnimationFrames=function(){this.animationFrameService.flushAllFrames()},t.prototype.getRowNode=function(r){return this.rowModel.getRowNode(r)},t.prototype.getSizesForCurrentTheme=function(){return{rowHeight:this.gridOptionsWrapper.getRowHeightAsNumber(),headerHeight:this.gridOptionsWrapper.getHeaderHeight()}},t.prototype.expandAll=function(){this.clientSideRowModel?this.clientSideRowModel.expandOrCollapseAll(!0):this.serverSideRowModel?this.serverSideRowModel.expandAll(!0):console.warn("AG Grid: expandAll only works with Client Side Row Model and Server Side Row Model")},t.prototype.collapseAll=function(){this.clientSideRowModel?this.clientSideRowModel.expandOrCollapseAll(!1):this.serverSideRowModel?this.serverSideRowModel.expandAll(!1):console.warn("AG Grid: collapseAll only works with Client Side Row Model and Server Side Row Model")},t.prototype.getToolPanelInstance=function(r){if(this.sideBarComp)return ov(this.sideBarComp.getToolPanelInstance(r));console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},t.prototype.addVirtualRowListener=function(r,e,i){"string"!=typeof r&&console.warn("AG Grid: addVirtualRowListener is deprecated, please use addRenderedRowListener."),this.addRenderedRowListener(r,e,i)},t.prototype.addRenderedRowListener=function(r,e,i){"virtualRowSelected"===r&&console.warn("AG Grid: event virtualRowSelected is deprecated, to register for individual row\n                selection events, add a listener directly to the row node."),this.rowRenderer.addRenderedRowListener(r,e,i)},t.prototype.setQuickFilter=function(r){this.filterManager.setQuickFilter(r)},t.prototype.selectIndex=function(r,e,i){console.warn("AG Grid: do not use api for selection, call node.setSelected(value) instead"),i&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionService.selectIndex(r,e)},t.prototype.deselectIndex=function(r,e){void 0===e&&(e=!1),console.warn("AG Grid: do not use api for selection, call node.setSelected(value) instead"),e&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionService.deselectIndex(r)},t.prototype.selectNode=function(r,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1),console.warn("AG Grid: API for selection is deprecated, call node.setSelected(value) instead"),i&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),r.setSelectedParams({newValue:!0,clearSelection:!e})},t.prototype.deselectNode=function(r,e){void 0===e&&(e=!1),console.warn("AG Grid: API for selection is deprecated, call node.setSelected(value) instead"),e&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),r.setSelectedParams({newValue:!1})},t.prototype.selectAll=function(){this.selectionService.selectAllRowNodes()},t.prototype.deselectAll=function(){this.selectionService.deselectAllRowNodes()},t.prototype.selectAllFiltered=function(){this.selectionService.selectAllRowNodes(!0)},t.prototype.deselectAllFiltered=function(){this.selectionService.deselectAllRowNodes(!0)},t.prototype.recomputeAggregates=function(){$o(this.clientSideRowModel)&&console.warn("cannot call recomputeAggregates unless using normal row model"),console.warn("recomputeAggregates is deprecated, please call api.refreshClientSideRowModel('aggregate') instead"),this.clientSideRowModel.refreshModel({step:Nl.AGGREGATE})},t.prototype.sizeColumnsToFit=function(){this.gridBodyCtrl.sizeColumnsToFit()},t.prototype.showLoadingOverlay=function(){this.overlayWrapperComp.showLoadingOverlay()},t.prototype.showNoRowsOverlay=function(){this.overlayWrapperComp.showNoRowsOverlay()},t.prototype.hideOverlay=function(){this.overlayWrapperComp.hideOverlay()},t.prototype.isNodeSelected=function(r){return console.warn("AG Grid: no need to call api.isNodeSelected(), just call node.isSelected() instead"),r.isSelected()},t.prototype.getSelectedNodesById=function(){return console.error("AG Grid: since version 3.4, getSelectedNodesById no longer exists, use getSelectedNodes() instead"),null},t.prototype.getSelectedNodes=function(){return this.selectionService.getSelectedNodes()},t.prototype.getSelectedRows=function(){return this.selectionService.getSelectedRows()},t.prototype.getBestCostNodeSelection=function(){return this.selectionService.getBestCostNodeSelection()},t.prototype.getRenderedNodes=function(){return this.rowRenderer.getRenderedNodes()},t.prototype.ensureColIndexVisible=function(r){console.warn("AG Grid: ensureColIndexVisible(index) no longer supported, use ensureColumnVisible(colKey) instead.")},t.prototype.ensureColumnVisible=function(r,e){void 0===e&&(e="auto"),this.gridBodyCtrl.getScrollFeature().ensureColumnVisible(r,e)},t.prototype.ensureIndexVisible=function(r,e){this.gridBodyCtrl.getScrollFeature().ensureIndexVisible(r,e)},t.prototype.ensureNodeVisible=function(r,e){void 0===e&&(e=null),this.gridBodyCtrl.getScrollFeature().ensureNodeVisible(r,e)},t.prototype.forEachLeafNode=function(r){$o(this.clientSideRowModel)&&console.warn("cannot call forEachNode unless using normal row model"),this.clientSideRowModel.forEachLeafNode(r)},t.prototype.forEachNode=function(r){this.rowModel.forEachNode(r)},t.prototype.forEachNodeAfterFilter=function(r){$o(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilter unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilter(r)},t.prototype.forEachNodeAfterFilterAndSort=function(r){$o(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilterAndSort unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilterAndSort(r)},t.prototype.getFilterInstance=function(r,e){var i=this.getFilterInstanceImpl(r,function(s){if(e){var a=ov(s);e(a)}});return ov(i)},t.prototype.getFilterInstanceImpl=function(r,e){var i=this.columnModel.getPrimaryColumn(r);if(i){var o=this.filterManager.getFilterComponent(i,"NO_UI"),s=o&&o.resolveNow(null,function(a){return a});return s?setTimeout(e,0,s):o&&o.then(function(a){e(a)}),s}},t.prototype.destroyFilter=function(r){var e=this.columnModel.getPrimaryColumn(r);if(e)return this.filterManager.destroyFilter(e,"filterDestroyed")},t.prototype.getStatusPanel=function(r){if(this.statusBarService)return ov(this.statusBarService.getStatusPanel(r))},t.prototype.getColumnDef=function(r){var e=this.columnModel.getPrimaryColumn(r);return e?e.getColDef():null},t.prototype.getColumnDefs=function(){return this.columnModel.getColumnDefs()},t.prototype.onFilterChanged=function(){this.filterManager.onFilterChanged()},t.prototype.onSortChanged=function(){this.sortController.onSortChanged("api")},t.prototype.setFilterModel=function(r){this.filterManager.setFilterModel(r)},t.prototype.getFilterModel=function(){return this.filterManager.getFilterModel()},t.prototype.getFocusedCell=function(){return this.focusService.getFocusedCell()},t.prototype.clearFocusedCell=function(){return this.focusService.clearFocusedCell()},t.prototype.setFocusedCell=function(r,e,i){this.focusService.setFocusedCell({rowIndex:r,column:e,rowPinned:i,forceBrowserFocus:!0})},t.prototype.setSuppressRowDrag=function(r){this.gridOptionsWrapper.setProperty(So.PROP_SUPPRESS_ROW_DRAG,r)},t.prototype.setSuppressMoveWhenRowDragging=function(r){this.gridOptionsWrapper.setProperty(So.PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG,r)},t.prototype.setSuppressRowClickSelection=function(r){this.gridOptionsWrapper.setProperty(So.PROP_SUPPRESS_ROW_CLICK_SELECTION,r)},t.prototype.addRowDropZone=function(r){this.gridBodyCtrl.getRowDragFeature().addRowDropZone(r)},t.prototype.removeRowDropZone=function(r){var e=this.dragAndDropService.findExternalZone(r);e&&this.dragAndDropService.removeDropTarget(e)},t.prototype.getRowDropZoneParams=function(r){return this.gridBodyCtrl.getRowDragFeature().getRowDropZone(r)},t.prototype.setHeaderHeight=function(r){this.gridOptionsWrapper.setProperty(So.PROP_HEADER_HEIGHT,r)},t.prototype.setDomLayout=function(r){this.gridOptionsWrapper.setProperty(So.PROP_DOM_LAYOUT,r)},t.prototype.setEnableCellTextSelection=function(r){this.gridBodyCtrl.setCellTextSelection(r)},t.prototype.setFillHandleDirection=function(r){this.gridOptionsWrapper.setProperty(So.PROP_FILL_HANDLE_DIRECTION,r)},t.prototype.setGroupHeaderHeight=function(r){this.gridOptionsWrapper.setProperty(So.PROP_GROUP_HEADER_HEIGHT,r)},t.prototype.setFloatingFiltersHeight=function(r){this.gridOptionsWrapper.setProperty(So.PROP_FLOATING_FILTERS_HEIGHT,r)},t.prototype.setPivotHeaderHeight=function(r){this.gridOptionsWrapper.setProperty(So.PROP_PIVOT_HEADER_HEIGHT,r)},t.prototype.setPivotGroupHeaderHeight=function(r){this.gridOptionsWrapper.setProperty(So.PROP_PIVOT_GROUP_HEADER_HEIGHT,r)},t.prototype.setIsExternalFilterPresent=function(r){this.gridOptionsWrapper.setProperty(So.PROP_IS_EXTERNAL_FILTER_PRESENT,r)},t.prototype.setDoesExternalFilterPass=function(r){this.gridOptionsWrapper.setProperty(So.PROP_DOES_EXTERNAL_FILTER_PASS,r)},t.prototype.setNavigateToNextCell=function(r){this.gridOptionsWrapper.setProperty(So.PROP_NAVIGATE_TO_NEXT_CELL,r)},t.prototype.setTabToNextCell=function(r){this.gridOptionsWrapper.setProperty(So.PROP_TAB_TO_NEXT_CELL,r)},t.prototype.setTabToNextHeader=function(r){this.gridOptionsWrapper.setProperty(So.PROP_TAB_TO_NEXT_HEADER,r)},t.prototype.setNavigateToNextHeader=function(r){this.gridOptionsWrapper.setProperty(So.PROP_NAVIGATE_TO_NEXT_HEADER,r)},t.prototype.setGroupRowAggNodes=function(r){this.gridOptionsWrapper.setProperty(So.PROP_GROUP_ROW_AGG_NODES,r)},t.prototype.setGetGroupRowAgg=function(r){this.gridOptionsWrapper.setProperty(So.PROP_GET_GROUP_ROW_AGG,r)},t.prototype.setGetBusinessKeyForNode=function(r){this.gridOptionsWrapper.setProperty(So.PROP_GET_BUSINESS_KEY_FOR_NODE,r)},t.prototype.setGetChildCount=function(r){this.gridOptionsWrapper.setProperty(So.PROP_GET_CHILD_COUNT,r)},t.prototype.setProcessRowPostCreate=function(r){this.gridOptionsWrapper.setProperty(So.PROP_PROCESS_ROW_POST_CREATE,r)},t.prototype.setGetRowNodeId=function(r){this.gridOptionsWrapper.setProperty(So.PROP_GET_ROW_NODE_ID,r)},t.prototype.setGetRowId=function(r){this.gridOptionsWrapper.setProperty(So.PROP_GET_ROW_ID,r)},t.prototype.setGetRowClass=function(r){this.gridOptionsWrapper.setProperty(So.PROP_GET_ROW_CLASS,r)},t.prototype.setIsFullWidthCell=function(r){this.gridOptionsWrapper.setProperty(So.PROP_IS_FULL_WIDTH_CELL,r)},t.prototype.setIsFullWidthRow=function(r){this.gridOptionsWrapper.setProperty(So.PROP_IS_FULL_WIDTH_ROW,r)},t.prototype.setIsRowSelectable=function(r){this.gridOptionsWrapper.setProperty(So.PROP_IS_ROW_SELECTABLE,r)},t.prototype.setIsRowMaster=function(r){this.gridOptionsWrapper.setProperty(So.PROP_IS_ROW_MASTER,r)},t.prototype.setPostSort=function(r){this.gridOptionsWrapper.setProperty(So.PROP_POST_SORT,r)},t.prototype.setPostSortRows=function(r){this.gridOptionsWrapper.setProperty(So.PROP_POST_SORT_ROWS,r)},t.prototype.setGetDocument=function(r){this.gridOptionsWrapper.setProperty(So.PROP_GET_DOCUMENT,r)},t.prototype.setGetContextMenuItems=function(r){this.gridOptionsWrapper.setProperty(So.PROP_GET_CONTEXT_MENU_ITEMS,r)},t.prototype.setGetMainMenuItems=function(r){this.gridOptionsWrapper.setProperty(So.PROP_GET_MAIN_MENU_ITEMS,r)},t.prototype.setProcessCellForClipboard=function(r){this.gridOptionsWrapper.setProperty(So.PROP_PROCESS_CELL_FOR_CLIPBOARD,r)},t.prototype.setSendToClipboard=function(r){this.gridOptionsWrapper.setProperty(So.PROP_SEND_TO_CLIPBOARD,r)},t.prototype.setProcessCellFromClipboard=function(r){this.gridOptionsWrapper.setProperty(So.PROP_PROCESS_CELL_FROM_CLIPBOARD,r)},t.prototype.setProcessSecondaryColDef=function(r){console.warn("AG Grid: since version 28.0.x setProcessSecondaryColDef has been renamed, please use setProcessPivotResultColDef instead"),this.setProcessPivotResultColDef(r)},t.prototype.setProcessSecondaryColGroupDef=function(r){console.warn("AG Grid: since version 28.0.x setProcessSecondaryColGroupDef has been renamed, please use setProcessPivotResultColGroupDef instead"),this.setProcessPivotResultColGroupDef(r)},t.prototype.setProcessPivotResultColDef=function(r){this.gridOptionsWrapper.setProperty(So.PROP_PROCESS_PIVOT_RESULT_COL_DEF,r)},t.prototype.setProcessPivotResultColGroupDef=function(r){this.gridOptionsWrapper.setProperty(So.PROP_PROCESS_PIVOT_RESULT_COL_GROUP_DEF,r)},t.prototype.setPostProcessPopup=function(r){this.gridOptionsWrapper.setProperty(So.PROP_POST_PROCESS_POPUP,r)},t.prototype.setDefaultGroupOrderComparator=function(r){this.gridOptionsWrapper.setProperty(So.PROP_DEFAULT_GROUP_ORDER_COMPARATOR,r)},t.prototype.setInitialGroupOrderComparator=function(r){this.gridOptionsWrapper.setProperty(So.PROP_INITIAL_GROUP_ORDER_COMPARATOR,r)},t.prototype.setGetChartToolbarItems=function(r){this.gridOptionsWrapper.setProperty(So.PROP_GET_CHART_TOOLBAR_ITEMS,r)},t.prototype.setPaginationNumberFormatter=function(r){this.gridOptionsWrapper.setProperty(So.PROP_PAGINATION_NUMBER_FORMATTER,r)},t.prototype.setGetServerSideStoreParams=function(r){this.setGetServerSideGroupLevelParams(r)},t.prototype.setGetServerSideGroupLevelParams=function(r){this.gridOptionsWrapper.setProperty(So.PROP_GET_SERVER_SIDE_GROUP_PARAMS,r)},t.prototype.setIsServerSideGroupOpenByDefault=function(r){this.gridOptionsWrapper.setProperty(So.PROP_IS_SERVER_SIDE_GROUPS_OPEN_BY_DEFAULT,r)},t.prototype.setIsApplyServerSideTransaction=function(r){this.gridOptionsWrapper.setProperty(So.PROP_IS_APPLY_SERVER_SIDE_TRANSACTION,r)},t.prototype.setIsServerSideGroup=function(r){this.gridOptionsWrapper.setProperty(So.PROP_IS_SERVER_SIDE_GROUP,r)},t.prototype.setGetServerSideGroupKey=function(r){this.gridOptionsWrapper.setProperty(So.PROP_GET_SERVER_SIDE_GROUP_KEY,r)},t.prototype.setGetRowStyle=function(r){this.gridOptionsWrapper.setProperty(So.PROP_GET_ROW_STYLE,r)},t.prototype.setGetRowHeight=function(r){this.gridOptionsWrapper.setProperty(So.PROP_GET_ROW_HEIGHT,r)},t.prototype.isSideBarVisible=function(){return!!this.sideBarComp&&this.sideBarComp.isDisplayed()},t.prototype.setSideBarVisible=function(r){this.sideBarComp?this.sideBarComp.setDisplayed(r):r&&console.warn("AG Grid: sideBar is not loaded")},t.prototype.setSideBarPosition=function(r){this.sideBarComp?this.sideBarComp.setSideBarPosition(r):console.warn("AG Grid: sideBar is not loaded")},t.prototype.openToolPanel=function(r){this.sideBarComp?this.sideBarComp.openToolPanel(r):console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},t.prototype.closeToolPanel=function(){this.sideBarComp?this.sideBarComp.close():console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},t.prototype.getOpenedToolPanel=function(){return this.sideBarComp?this.sideBarComp.openedItem():null},t.prototype.getSideBar=function(){return this.gridOptionsWrapper.getSideBar()},t.prototype.setSideBar=function(r){this.gridOptionsWrapper.setProperty("sideBar",$0.parse(r))},t.prototype.setSuppressClipboardPaste=function(r){this.gridOptionsWrapper.setProperty(So.PROP_SUPPRESS_CLIPBOARD_PASTE,r)},t.prototype.isToolPanelShowing=function(){return this.sideBarComp.isToolPanelShowing()},t.prototype.doLayout=function(){sa(function(){return console.warn("AG Grid - since version 25.1, doLayout was taken out, as it's not needed. The grid responds to grid size changes automatically")},"doLayoutDeprecated")},t.prototype.resetRowHeights=function(){if(rr(this.clientSideRowModel)){if(this.columnModel.isAutoRowHeightActive())return void console.warn("AG Grid: calling gridApi.resetRowHeights() makes no sense when using Auto Row Height.");this.clientSideRowModel.resetRowHeights()}},t.prototype.setGroupRemoveSingleChildren=function(r){this.gridOptionsWrapper.setProperty(So.PROP_GROUP_REMOVE_SINGLE_CHILDREN,r)},t.prototype.setGroupRemoveLowestSingleChildren=function(r){this.gridOptionsWrapper.setProperty(So.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,r)},t.prototype.onRowHeightChanged=function(){this.clientSideRowModel?this.clientSideRowModel.onRowHeightChanged():this.serverSideRowModel&&this.serverSideRowModel.onRowHeightChanged()},t.prototype.getValue=function(r,e){var i=this.columnModel.getPrimaryColumn(r);return $o(i)&&(i=this.columnModel.getGridColumn(r)),$o(i)?null:this.valueService.getValue(i,e)},t.prototype.addEventListener=function(r,e){var i=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addEventListener(r,e,i)},t.prototype.addGlobalListener=function(r){var e=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addGlobalListener(r,e)},t.prototype.removeEventListener=function(r,e){var i=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeEventListener(r,e,i)},t.prototype.removeGlobalListener=function(r){var e=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeGlobalListener(r,e)},t.prototype.dispatchEvent=function(r){this.eventService.dispatchEvent(r)},t.prototype.destroy=function(){if(!this.destroyCalled){this.destroyCalled=!0;var r=this.ctrlsService.getGridCtrl();r&&r.destroyGridUi(),this.context.destroy()}},t.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid=function(){setTimeout(pd.bind(window,this,"Grid API"),100)},t.prototype.warnIfDestroyed=function(r){return this.destroyCalled&&console.warn("AG Grid: Grid API method "+r+" was called on a grid that was destroyed."),this.destroyCalled},t.prototype.resetQuickFilter=function(){this.warnIfDestroyed("resetQuickFilter")||this.rowModel.forEachNode(function(r){return r.quickFilterAggregateText=null})},t.prototype.getRangeSelections=function(){return console.warn("AG Grid: in v20.1.x, api.getRangeSelections() is gone, please use getCellRanges() instead.\n        We had to change how cell selections works a small bit to allow charting to integrate. The return type of\n        getCellRanges() is a bit different, please check the AG Grid documentation."),null},t.prototype.getCellRanges=function(){return this.rangeService?this.rangeService.getCellRanges():(console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),null)},t.prototype.camelCaseToHumanReadable=function(r){return fm(r)},t.prototype.addRangeSelection=function(r){console.warn("AG Grid: As of version 21.x, range selection changed slightly to allow charting integration. Please call api.addCellRange() instead of api.addRangeSelection()")},t.prototype.addCellRange=function(r){this.rangeService||console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),this.rangeService.addCellRange(r)},t.prototype.clearRangeSelection=function(){this.rangeService||console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),this.rangeService.removeAllCellRanges()},t.prototype.undoCellEditing=function(){this.undoRedoService.undo()},t.prototype.redoCellEditing=function(){this.undoRedoService.redo()},t.prototype.getCurrentUndoSize=function(){return this.undoRedoService.getCurrentUndoStackSize()},t.prototype.getCurrentRedoSize=function(){return this.undoRedoService.getCurrentRedoStackSize()},t.prototype.getChartModels=function(){if(qo.assertRegistered(mo.RangeSelectionModule,"api.getChartModels")&&qo.assertRegistered(mo.GridChartsModule,"api.getChartModels"))return this.chartService.getChartModels()},t.prototype.getChartRef=function(r){if(qo.assertRegistered(mo.RangeSelectionModule,"api.getChartRef")&&qo.assertRegistered(mo.GridChartsModule,"api.getChartRef"))return this.chartService.getChartRef(r)},t.prototype.getChartImageDataURL=function(r){if(qo.assertRegistered(mo.RangeSelectionModule,"api.getChartImageDataURL")&&qo.assertRegistered(mo.GridChartsModule,"api.getChartImageDataURL"))return this.chartService.getChartImageDataURL(r)},t.prototype.createRangeChart=function(r){if(qo.assertRegistered(mo.RangeSelectionModule,"api.createRangeChart")&&qo.assertRegistered(mo.GridChartsModule,"api.createRangeChart"))return this.chartService.createRangeChart(r)},t.prototype.createCrossFilterChart=function(r){if(qo.assertRegistered(mo.RangeSelectionModule,"api.createCrossFilterChart")&&qo.assertRegistered(mo.GridChartsModule,"api.createCrossFilterChart"))return this.chartService.createCrossFilterChart(r)},t.prototype.restoreChart=function(r,e){if(qo.assertRegistered(mo.RangeSelectionModule,"api.restoreChart")&&qo.assertRegistered(mo.GridChartsModule,"api.restoreChart"))return this.chartService.restoreChart(r,e)},t.prototype.createPivotChart=function(r){if(qo.assertRegistered(mo.RangeSelectionModule,"api.createPivotChart")&&qo.assertRegistered(mo.GridChartsModule,"api.createPivotChart"))return this.chartService.createPivotChart(r)},t.prototype.copySelectedRowsToClipboard=function(r){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copySelectedRowsToClipboard(r)},t.prototype.copySelectedRangeToClipboard=function(r){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copySelectedRangeToClipboard(r)},t.prototype.copySelectedRangeDown=function(){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copyRangeDown()},t.prototype.showColumnMenuAfterButtonClick=function(r,e){var i=this.columnModel.getGridColumn(r);this.menuFactory.showMenuAfterButtonClick(i,e,"columnMenu")},t.prototype.showColumnMenuAfterMouseClick=function(r,e){var i=this.columnModel.getGridColumn(r);i||(i=this.columnModel.getPrimaryColumn(r)),i?this.menuFactory.showMenuAfterMouseEvent(i,e):console.error("AG Grid: column '"+r+"' not found")},t.prototype.hidePopupMenu=function(){this.contextMenuFactory&&this.contextMenuFactory.hideActiveMenu(),this.menuFactory.hideActiveMenu()},t.prototype.setPopupParent=function(r){this.gridOptionsWrapper.setProperty(So.PROP_POPUP_PARENT,r)},t.prototype.tabToNextCell=function(r){return this.navigationService.tabToNextCell(!1,r)},t.prototype.tabToPreviousCell=function(r){return this.navigationService.tabToNextCell(!0,r)},t.prototype.getCellRendererInstances=function(r){return void 0===r&&(r={}),this.rowRenderer.getCellRendererInstances(r).map(ov)},t.prototype.getCellEditorInstances=function(r){return void 0===r&&(r={}),this.rowRenderer.getCellEditorInstances(r).map(ov)},t.prototype.getEditingCells=function(){return this.rowRenderer.getEditingCells()},t.prototype.stopEditing=function(r){void 0===r&&(r=!1),this.rowRenderer.stopEditing(r)},t.prototype.startEditingCell=function(r){var e=this.columnModel.getGridColumn(r.colKey);if(e){var i={rowIndex:r.rowIndex,rowPinned:r.rowPinned||null,column:e};null==r.rowPinned&&this.gridBodyCtrl.getScrollFeature().ensureIndexVisible(r.rowIndex);var s=this.navigationService.getCellByPosition(i);s&&s.startRowOrCellEdit(r.key,r.charPress)}else console.warn("AG Grid: no column found for "+r.colKey)},t.prototype.addAggFunc=function(r,e){this.aggFuncService&&this.aggFuncService.addAggFunc(r,e)},t.prototype.addAggFuncs=function(r){this.aggFuncService&&this.aggFuncService.addAggFuncs(r)},t.prototype.clearAggFuncs=function(){this.aggFuncService&&this.aggFuncService.clear()},t.prototype.applyServerSideTransaction=function(r){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.applyTransaction(r);console.warn("AG Grid: Cannot apply Server Side Transaction if not using the Server Side Row Model.")},t.prototype.applyServerSideTransactionAsync=function(r,e){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.applyTransactionAsync(r,e);console.warn("AG Grid: Cannot apply Server Side Transaction if not using the Server Side Row Model.")},t.prototype.retryServerSideLoads=function(){this.serverSideRowModel?this.serverSideRowModel.retryLoads():console.warn("AG Grid: API retryServerSideLoads() can only be used when using Server-Side Row Model.")},t.prototype.flushServerSideAsyncTransactions=function(){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.flushAsyncTransactions();console.warn("AG Grid: Cannot flush Server Side Transaction if not using the Server Side Row Model.")},t.prototype.applyTransaction=function(r){if(this.clientSideRowModel){var e=this.clientSideRowModel.updateRowData(r);return this.rowRenderer.refreshFullWidthRows(e.update),this.gridOptionsWrapper.isSuppressChangeDetection()||this.rowRenderer.refreshCells(),e}console.error("AG Grid: updateRowData() only works with ClientSideRowModel. Working with InfiniteRowModel was deprecated in v23.1 and removed in v24.1")},t.prototype.setDeltaSort=function(r){this.gridOptionsWrapper.setProperty("deltaSort",r)},t.prototype.updateRowData=function(r){return sa(function(){return console.warn("AG Grid: as of v23.1, grid API updateRowData(transaction) is now called applyTransaction(transaction). updateRowData is deprecated and will be removed in a future major release.")},"updateRowData deprecated"),this.applyTransaction(r)},t.prototype.applyTransactionAsync=function(r,e){this.clientSideRowModel?this.clientSideRowModel.batchUpdateRowData(r,e):console.error("AG Grid: api.applyTransactionAsync() only works with ClientSideRowModel.")},t.prototype.flushAsyncTransactions=function(){this.clientSideRowModel?this.clientSideRowModel.flushAsyncTransactions():console.error("AG Grid: api.applyTransactionAsync() only works with ClientSideRowModel.")},t.prototype.batchUpdateRowData=function(r,e){sa(function(){return console.warn("AG Grid: as of v23.1, grid API batchUpdateRowData(transaction, callback) is now called applyTransactionAsync(transaction, callback). batchUpdateRowData is deprecated and will be removed in a future major release.")},"batchUpdateRowData deprecated"),this.applyTransactionAsync(r,e)},t.prototype.insertItemsAtIndex=function(r,e,i){void 0===i&&(i=!1),console.warn("AG Grid: insertItemsAtIndex() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:e,addIndex:r,update:null,remove:null})},t.prototype.removeItems=function(r,e){void 0===e&&(e=!1),console.warn("AG Grid: removeItems() is deprecated, use updateRowData(transaction) instead.");var i=r.map(function(o){return o.data});this.updateRowData({add:null,addIndex:null,update:null,remove:i})},t.prototype.addItems=function(r,e){void 0===e&&(e=!1),console.warn("AG Grid: addItems() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:r,addIndex:null,update:null,remove:null})},t.prototype.refreshVirtualPageCache=function(){console.warn("AG Grid: refreshVirtualPageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},t.prototype.refreshInfinitePageCache=function(){console.warn("AG Grid: refreshInfinitePageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},t.prototype.refreshInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.refreshCache():console.warn("AG Grid: api.refreshInfiniteCache is only available when rowModelType='infinite'.")},t.prototype.purgeVirtualPageCache=function(){console.warn("AG Grid: purgeVirtualPageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfinitePageCache()},t.prototype.purgeInfinitePageCache=function(){console.warn("AG Grid: purgeInfinitePageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfiniteCache()},t.prototype.purgeInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.purgeCache():console.warn("AG Grid: api.purgeInfiniteCache is only available when rowModelType='infinite'.")},t.prototype.purgeEnterpriseCache=function(r){console.warn("ag-grid: since version 18.x, api.purgeEnterpriseCache() should be replaced with api.purgeServerSideCache()"),this.purgeServerSideCache(r)},t.prototype.purgeServerSideCache=function(r){void 0===r&&(r=[]),this.serverSideRowModel?(console.warn("AG Grid: since v25.0, api.purgeServerSideCache is deprecated. Please use api.refreshServerSide({purge: true}) instead."),this.refreshServerSide({route:r,purge:!0})):console.warn("AG Grid: api.purgeServerSideCache is only available when rowModelType='serverSide'.")},t.prototype.refreshServerSide=function(r){this.serverSideRowModel||console.warn("AG Grid: api.refreshServerSide is only available when rowModelType='serverSide'."),this.serverSideRowModel.refreshStore(r)},t.prototype.refreshServerSideStore=function(r){return sa(function(){return console.warn("AG Grid: Grid API refreshServerSideStore() was renamed to refreshServerSide() in v28.0")},"refreshServerSideStore-renamed"),this.refreshServerSide(r)},t.prototype.getServerSideStoreState=function(){return sa(function(){return console.warn("AG Grid: Grid API getServerSideStoreState() was renamed to getServerSideGroupLevelState() in v28.0")},"getServerSideStoreState-renamed"),this.getServerSideGroupLevelState()},t.prototype.getServerSideGroupLevelState=function(){return this.serverSideRowModel?this.serverSideRowModel.getStoreState():(console.warn("AG Grid: api.getServerSideGroupLevelState is only available when rowModelType='serverSide'."),[])},t.prototype.getVirtualRowCount=function(){return console.warn("AG Grid: getVirtualRowCount() is now called getInfiniteRowCount(), please call getInfiniteRowCount() instead"),this.getInfiniteRowCount()},t.prototype.getInfiniteRowCount=function(){if(this.infiniteRowModel)return this.infiniteRowModel.getRowCount();console.warn("AG Grid: api.getVirtualRowCount is only available when rowModelType='virtual'.")},t.prototype.isMaxRowFound=function(){return console.warn("AG Grid: api.isLastRowIndexKnown is deprecated, please use api.isLastRowIndexKnown()"),this.isLastRowIndexKnown()},t.prototype.isLastRowIndexKnown=function(){if(this.infiniteRowModel)return this.infiniteRowModel.isLastRowIndexKnown();console.warn("AG Grid: api.isMaxRowFound is only available when rowModelType='virtual'.")},t.prototype.setVirtualRowCount=function(r,e){console.warn("AG Grid: setVirtualRowCount() is now called setInfiniteRowCount(), please call setInfiniteRowCount() instead"),this.setRowCount(r,e)},t.prototype.setInfiniteRowCount=function(r,e){console.warn("AG Grid: setInfiniteRowCount() is now called setRowCount(), please call setRowCount() instead"),this.setRowCount(r,e)},t.prototype.setRowCount=function(r,e){this.infiniteRowModel?this.infiniteRowModel.setRowCount(r,e):console.warn("AG Grid: api.setRowCount is only available for Infinite Row Model.")},t.prototype.getVirtualPageState=function(){return console.warn("AG Grid: getVirtualPageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},t.prototype.getInfinitePageState=function(){return console.warn("AG Grid: getInfinitePageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},t.prototype.getCacheBlockState=function(){return this.rowNodeBlockLoader.getBlockState()},t.prototype.checkGridSize=function(){console.warn("in AG Grid v25.2.0, checkGridSize() was removed, as it was legacy and didn't do anything uesful.")},t.prototype.getFirstRenderedRow=function(){return console.warn("in AG Grid v12, getFirstRenderedRow() was renamed to getFirstDisplayedRow()"),this.getFirstDisplayedRow()},t.prototype.getFirstDisplayedRow=function(){return this.rowRenderer.getFirstVirtualRenderedRow()},t.prototype.getLastRenderedRow=function(){return console.warn("in AG Grid v12, getLastRenderedRow() was renamed to getLastDisplayedRow()"),this.getLastDisplayedRow()},t.prototype.getLastDisplayedRow=function(){return this.rowRenderer.getLastVirtualRenderedRow()},t.prototype.getDisplayedRowAtIndex=function(r){return this.rowModel.getRow(r)},t.prototype.getDisplayedRowCount=function(){return this.rowModel.getRowCount()},t.prototype.paginationIsLastPageFound=function(){return this.paginationProxy.isLastPageFound()},t.prototype.paginationGetPageSize=function(){return this.paginationProxy.getPageSize()},t.prototype.paginationSetPageSize=function(r){this.gridOptionsWrapper.setProperty("paginationPageSize",r)},t.prototype.paginationGetCurrentPage=function(){return this.paginationProxy.getCurrentPage()},t.prototype.paginationGetTotalPages=function(){return this.paginationProxy.getTotalPages()},t.prototype.paginationGetRowCount=function(){return this.paginationProxy.getMasterRowCount()},t.prototype.paginationGoToNextPage=function(){this.paginationProxy.goToNextPage()},t.prototype.paginationGoToPreviousPage=function(){this.paginationProxy.goToPreviousPage()},t.prototype.paginationGoToFirstPage=function(){this.paginationProxy.goToFirstPage()},t.prototype.paginationGoToLastPage=function(){this.paginationProxy.goToLastPage()},t.prototype.paginationGoToPage=function(r){this.paginationProxy.goToPage(r)},t.prototype.setRowClass=function(r){this.gridOptionsWrapper.setProperty(So.PROP_ROW_CLASS,r)},Za([_a("immutableService")],t.prototype,"immutableService",void 0),Za([_a("csvCreator")],t.prototype,"csvCreator",void 0),Za([_a("excelCreator")],t.prototype,"excelCreator",void 0),Za([Xe("rowRenderer")],t.prototype,"rowRenderer",void 0),Za([Xe("navigationService")],t.prototype,"navigationService",void 0),Za([Xe("filterManager")],t.prototype,"filterManager",void 0),Za([Xe("columnModel")],t.prototype,"columnModel",void 0),Za([Xe("selectionService")],t.prototype,"selectionService",void 0),Za([Xe("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Za([Xe("valueService")],t.prototype,"valueService",void 0),Za([Xe("alignedGridsService")],t.prototype,"alignedGridsService",void 0),Za([Xe("eventService")],t.prototype,"eventService",void 0),Za([Xe("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Za([Xe("context")],t.prototype,"context",void 0),Za([Xe("rowModel")],t.prototype,"rowModel",void 0),Za([Xe("sortController")],t.prototype,"sortController",void 0),Za([Xe("paginationProxy")],t.prototype,"paginationProxy",void 0),Za([Xe("focusService")],t.prototype,"focusService",void 0),Za([Xe("dragAndDropService")],t.prototype,"dragAndDropService",void 0),Za([_a("rangeService")],t.prototype,"rangeService",void 0),Za([_a("clipboardService")],t.prototype,"clipboardService",void 0),Za([_a("aggFuncService")],t.prototype,"aggFuncService",void 0),Za([Xe("menuFactory")],t.prototype,"menuFactory",void 0),Za([_a("contextMenuFactory")],t.prototype,"contextMenuFactory",void 0),Za([Xe("valueCache")],t.prototype,"valueCache",void 0),Za([Xe("animationFrameService")],t.prototype,"animationFrameService",void 0),Za([_a("statusBarService")],t.prototype,"statusBarService",void 0),Za([_a("chartService")],t.prototype,"chartService",void 0),Za([_a("undoRedoService")],t.prototype,"undoRedoService",void 0),Za([_a("rowNodeBlockLoader")],t.prototype,"rowNodeBlockLoader",void 0),Za([_a("ssrmTransactionManager")],t.prototype,"serverSideTransactionManager",void 0),Za([Xe("ctrlsService")],t.prototype,"ctrlsService",void 0),Za([_a("frameworkComponentWrapper")],t.prototype,"frameworkComponentWrapper",void 0),Za([qi],t.prototype,"init",null),Za([Ru],t.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),Za([Kr("gridApi")],t)}(),iV=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),vA=function(t){function r(e,i,o,s){var a=t.call(this)||this;return a.columnOrGroup=e,a.eCell=i,a.ariaEl=a.eCell.querySelector("[role=columnheader]")||a.eCell,a.colsSpanning=s,a.beans=o,a}return iV(r,t),r.prototype.setColsSpanning=function(e){this.colsSpanning=e,this.onLeftChanged()},r.prototype.getColumnOrGroup=function(){return this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?Ja(this.colsSpanning):this.columnOrGroup},r.prototype.postConstruct=function(){this.addManagedListener(this.columnOrGroup,ms.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.setLeftFirstTime(),this.addManagedListener(this.eventService,Et.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onLeftChanged.bind(this)),this.addManagedListener(this.beans.gridOptionsWrapper,So.PROP_DOM_LAYOUT,this.onLeftChanged.bind(this))},r.prototype.setLeftFirstTime=function(){var e=this.beans.gridOptionsWrapper.isSuppressColumnMoveAnimation(),i=rr(this.columnOrGroup.getOldLeft());this.beans.columnAnimationService.isActive()&&i&&!e?this.animateInLeft():this.onLeftChanged()},r.prototype.animateInLeft=function(){var e=this,i=this.getColumnOrGroup(),o=i.getLeft(),s=i.getOldLeft(),a=this.modifyLeftForPrintLayout(i,s),l=this.modifyLeftForPrintLayout(i,o);this.setLeft(a),this.actualLeft=l,this.beans.columnAnimationService.executeNextVMTurn(function(){e.actualLeft===l&&e.setLeft(l)})},r.prototype.onLeftChanged=function(){var e=this.getColumnOrGroup(),i=e.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(e,i),this.setLeft(this.actualLeft)},r.prototype.modifyLeftForPrintLayout=function(e,i){if(this.beans.gridOptionsWrapper.getDomLayout()!==Nn.DOM_LAYOUT_PRINT||e.getPinned()===Nn.PINNED_LEFT)return i;var s=this.beans.columnModel.getDisplayedColumnsLeftWidth();return e.getPinned()===Nn.PINNED_RIGHT?s+this.beans.columnModel.getBodyContainerWidth()+i:s+i},r.prototype.setLeft=function(e){var i;if(rr(e)&&(this.eCell.style.left=e+"px"),this.columnOrGroup instanceof ms)i=this.columnOrGroup;else{var s=this.columnOrGroup.getLeafColumns();if(!s.length)return;s.length>1&&Zs(this.ariaEl,s.length),i=s[0]}var a=this.beans.columnModel.getAriaColumnIndex(i);Ll(this.ariaEl,a)},function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);o>3&&s&&Object.defineProperty(r,e,s)}([qi],r.prototype,"postConstruct",null),r}(Zi),oV=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),IL=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},hS=function(t){function r(e,i){var o=t.call(this)||this;return o.columns=e,o.element=i,o}return oV(r,t),r.prototype.postConstruct=function(){this.gridOptionsWrapper.isColumnHoverHighlight()&&this.addMouseHoverListeners()},r.prototype.addMouseHoverListeners=function(){this.addManagedListener(this.element,"mouseout",this.onMouseOut.bind(this)),this.addManagedListener(this.element,"mouseover",this.onMouseOver.bind(this))},r.prototype.onMouseOut=function(){this.columnHoverService.clearMouseOver()},r.prototype.onMouseOver=function(){this.columnHoverService.setMouseOver(this.columns)},IL([Xe("columnHoverService")],r.prototype,"columnHoverService",void 0),IL([qi],r.prototype,"postConstruct",null),r}(Zi),fS=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),TE=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},AL=function(t){function r(e,i){var o=t.call(this,e,i)||this;return o.column=e,o}return fS(r,t),r.prototype.setComp=function(e,i,o,s){t.prototype.setGui.call(this,i),this.comp=e,this.eButtonShowMainFilter=o,this.eFloatingFilterBody=s;var a=this.column.getColDef();this.active=!(!a.filter&&!a.filterFramework||!a.floatingFilter),this.setupWidth(),this.setupLeft(),this.setupHover(),this.setupFocus(),this.setupUserComp(),this.setupSyncWithFilter(),this.setupUi(),this.addManagedListener(this.eButtonShowMainFilter,"click",this.showParentFilter.bind(this))},r.prototype.setupUi=function(){if(this.comp.addOrRemoveButtonWrapperCssClass("ag-hidden",!this.active||this.suppressFilterButton),this.active){this.comp.addOrRemoveBodyCssClass("ag-floating-filter-full-body",this.suppressFilterButton),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-body",!this.suppressFilterButton);var e=Oc("filter",this.gridOptionsWrapper,this.column);e&&this.eButtonShowMainFilter.appendChild(e)}},r.prototype.setupFocus=function(){this.createManagedBean(new xd(this.eGui,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},r.prototype.onTabKeyDown=function(e){if(this.gridOptionsWrapper.getDocument().activeElement!==this.eGui){var a=this.focusService.findNextFocusableElement(this.eGui,null,e.shiftKey);if(a)return this.beans.headerNavigationService.scrollToColumn(this.column),e.preventDefault(),void a.focus();var l=this.findNextColumnWithFloatingFilter(e.shiftKey);l&&this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:this.getParentRowCtrl().getRowIndex(),column:l},event:e})&&e.preventDefault()}},r.prototype.findNextColumnWithFloatingFilter=function(e){var i=this.beans.columnModel,o=this.column;do{if(!(o=e?i.getDisplayedColBefore(o):i.getDisplayedColAfter(o)))break}while(!o.getColDef().filter||!o.getColDef().floatingFilter);return o},r.prototype.handleKeyDown=function(e){t.prototype.handleKeyDown.call(this,e);var i=this.getWrapperHasFocus();switch(e.key){case gi.UP:case gi.DOWN:i||e.preventDefault();case gi.LEFT:case gi.RIGHT:if(i)return;e.stopPropagation();case gi.ENTER:i&&this.focusService.focusInto(this.eGui)&&e.preventDefault();break;case gi.ESCAPE:i||this.eGui.focus()}},r.prototype.onFocusIn=function(e){if(!this.eGui.contains(e.relatedTarget)){var o=!!e.relatedTarget&&!e.relatedTarget.classList.contains("ag-floating-filter"),s=!!e.relatedTarget&&qm(e.relatedTarget,"ag-floating-filter");if(o&&s&&e.target===this.eGui){var a=this.lastFocusEvent;a&&a&&a.key===gi.TAB&&this.focusService.focusInto(this.eGui,a.shiftKey)}var d=this.getRowIndex();this.beans.focusService.setFocusedHeader(d,this.column)}},r.prototype.setupHover=function(){var e=this;this.createManagedBean(new hS([this.column],this.eGui));var i=function(){if(e.gridOptionsWrapper.isColumnHoverHighlight()){var o=e.columnHoverService.isHovered(e.column);e.comp.addOrRemoveCssClass("ag-column-hover",o)}};this.addManagedListener(this.eventService,Et.EVENT_COLUMN_HOVER_CHANGED,i),i()},r.prototype.setupLeft=function(){var e=new vA(this.column,this.eGui,this.beans);this.createManagedBean(e)},r.prototype.setupUserComp=function(){var e=this;if(this.active){var i=this.column.getColDef(),o=this.filterManager.createFilterParams(this.column,i),s=this.userComponentFactory.mergeParamsWithApplicationProvidedParams(i,MC,o),a=this.userComponentFactory.getDefaultFloatingFilterType(i);null==a&&(a="agReadOnlyFloatingFilter");var l={column:this.column,filterParams:s,currentParentModel:function(){return e.currentParentModel()},parentFilterInstance:function(d){return e.parentFilterInstance(d)},showParentFilter:function(){return e.showParentFilter()},suppressFilterButton:!1};this.suppressFilterButton=!!i.floatingFilterComponentParams&&!!i.floatingFilterComponentParams.suppressFilterButton;var c=this.userComponentFactory.getFloatingFilterCompDetails(i,l,a);c&&this.comp.setCompDetails(c)}},r.prototype.currentParentModel=function(){var e=this.getFilterComponent(!1);return e?e.resolveNow(null,function(i){return i&&i.getModel()}):null},r.prototype.getFilterComponent=function(e){return void 0===e&&(e=!0),this.filterManager.getFilterComponent(this.column,"NO_UI",e)},r.prototype.parentFilterInstance=function(e){var i=this.getFilterComponent();i?.then(function(o){e(ov(o))})},r.prototype.showParentFilter=function(){this.menuFactory.showMenuAfterButtonClick(this.column,this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter,"floatingFilter","filterMenuTab",["filterMenuTab"])},r.prototype.setupSyncWithFilter=function(){var e=this;if(this.active){var i=function(o){var s=e.comp.getFloatingFilterComp();if(s){var a=e.currentParentModel();s.then(function(l){l&&l.onParentModelChanged(a,o)})}};this.addManagedListener(this.column,ms.EVENT_FILTER_CHANGED,i),this.filterManager.isFilterActive(this.column)&&i(null)}},r.prototype.setupWidth=function(){var e=this,i=function(){var o=e.column.getActualWidth()+"px";e.comp.setWidth(o)};this.addManagedListener(this.column,ms.EVENT_WIDTH_CHANGED,i),i()},TE([Xe("filterManager")],r.prototype,"filterManager",void 0),TE([Xe("columnHoverService")],r.prototype,"columnHoverService",void 0),TE([Xe("menuFactory")],r.prototype,"menuFactory",void 0),r}(wE),sV=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Y1=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},SE=function(t){function r(e,i,o,s,a){var l=t.call(this)||this;return l.pinned=e,l.column=i,l.eResize=o,l.comp=s,l.ctrl=a,l}return sV(r,t),r.prototype.postConstruct=function(){var s,a,e=this,i=this.column.getColDef(),o=[],c=function(){o.forEach(function(f){return f()}),o.length=0},d=function(){var f=e.column.isResizable(),v=!e.gridOptionsWrapper.isSuppressAutoSize()&&!i.suppressAutoSize;(f!==s||v!==a)&&(s=f,a=v,c(),function(){if(Pl(e.eResize,s),s){var f=e.horizontalResizeService.addResizeBar({eResizeBar:e.eResize,onResizeStart:e.onResizeStart.bind(e),onResizing:e.onResizing.bind(e,!1),onResizeEnd:e.onResizing.bind(e,!0)});if(o.push(f),a){var v=e.gridOptionsWrapper.isSkipHeaderOnAutoSize(),w=function(){e.columnModel.autoSizeColumn(e.column,v,"uiColumnResized")};e.eResize.addEventListener("dblclick",w);var x=new xp(e.eResize);x.addEventListener(xp.EVENT_DOUBLE_TAP,w),e.addDestroyFunc(function(){e.eResize.removeEventListener("dblclick",w),x.removeEventListener(xp.EVENT_DOUBLE_TAP,w),x.destroy()})}}}())};d(),this.addDestroyFunc(c),this.ctrl.addRefreshFunction(d)},r.prototype.onResizing=function(e,i){var o=this.normaliseResizeAmount(i);this.columnModel.setColumnWidths([{key:this.column,newWidth:this.resizeStartWidth+o}],this.resizeWithShiftKey,e,"uiColumnDragged"),e&&this.comp.addOrRemoveCssClass("ag-column-resizing",!1)},r.prototype.onResizeStart=function(e){this.resizeStartWidth=this.column.getActualWidth(),this.resizeWithShiftKey=e,this.comp.addOrRemoveCssClass("ag-column-resizing",!0)},r.prototype.normaliseResizeAmount=function(e){var i=e,o=this.pinned!==Nn.PINNED_LEFT,s=this.pinned===Nn.PINNED_RIGHT;return this.gridOptionsWrapper.isEnableRtl()?o&&(i*=-1):s&&(i*=-1),i},Y1([Xe("horizontalResizeService")],r.prototype,"horizontalResizeService",void 0),Y1([Xe("columnModel")],r.prototype,"columnModel",void 0),Y1([qi],r.prototype,"postConstruct",null),r}(Zi),EK=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),W0=function(t){function r(e,i,o){void 0===i&&(i="ag-checkbox"),void 0===o&&(o="checkbox");var s=t.call(this,e,i,o)||this;return s.labelAlignment="right",s.selected=!1,s.readOnly=!1,s.passive=!1,s}return EK(r,t),r.prototype.addInputListeners=function(){this.addManagedListener(this.eInput,"click",this.onCheckboxClick.bind(this)),this.addManagedListener(this.eLabel,"click",this.toggle.bind(this))},r.prototype.getNextValue=function(){return void 0===this.selected||!this.selected},r.prototype.setPassive=function(e){this.passive=e},r.prototype.isReadOnly=function(){return this.readOnly},r.prototype.setReadOnly=function(e){this.eWrapper.classList.toggle("ag-disabled",e),this.eInput.disabled=e,this.readOnly=e},r.prototype.setDisabled=function(e){return this.eWrapper.classList.toggle("ag-disabled",e),t.prototype.setDisabled.call(this,e)},r.prototype.toggle=function(){if(!this.eInput.disabled){var e=this.isSelected(),i=this.getNextValue();this.passive?this.dispatchChange(i,e):this.setValue(i)}},r.prototype.getValue=function(){return this.isSelected()},r.prototype.setValue=function(e,i){return this.refreshSelectedClass(e),this.setSelected(e,i),this},r.prototype.setName=function(e){return this.getInputElement().name=e,this},r.prototype.isSelected=function(){return this.selected},r.prototype.setSelected=function(e,i){this.isSelected()!==e&&(this.previousValue=this.isSelected(),e=this.selected="boolean"==typeof e?e:void 0,this.eInput.checked=e,this.eInput.indeterminate=void 0===e,i||this.dispatchChange(this.selected,this.previousValue))},r.prototype.dispatchChange=function(e,i,o){this.dispatchEvent({type:r.EVENT_CHANGED,selected:e,previousValue:i,event:o});var s=this.getInputElement();this.eventService.dispatchEvent({type:Et.EVENT_CHECKBOX_CHANGED,id:s.id,name:s.name,selected:e,previousValue:i})},r.prototype.onCheckboxClick=function(e){if(!this.passive&&!this.eInput.disabled){var i=this.isSelected(),o=this.selected=e.target.checked;this.refreshSelectedClass(o),this.dispatchChange(o,i,e)}},r.prototype.refreshSelectedClass=function(e){this.eWrapper.classList.toggle("ag-checked",!0===e),this.eWrapper.classList.toggle("ag-indeterminate",null==e)},r}(T_),ML=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),VC=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},aV=function(t){function r(e){var i=t.call(this)||this;i.cbSelectAllVisible=!1,i.processingEventFromCheckbox=!1,i.column=e;var o=e.getColDef();return i.filteredOnly=!!o&&!!o.headerCheckboxSelectionFilteredOnly,i}return ML(r,t),r.prototype.onSpaceKeyPressed=function(e){var i=this.cbSelectAll,o=this.gridOptionsWrapper.getDocument();i.isDisplayed()&&!i.getGui().contains(o.activeElement)&&(e.preventDefault(),i.setValue(!i.getValue()))},r.prototype.getCheckboxGui=function(){return this.cbSelectAll.getGui()},r.prototype.setComp=function(e){this.headerCellCtrl=e,this.cbSelectAll=this.createManagedBean(new W0),this.cbSelectAll.addCssClass("ag-header-select-all"),Qn(this.cbSelectAll.getGui(),"presentation"),this.showOrHideSelectAll(),this.addManagedListener(this.eventService,Et.EVENT_NEW_COLUMNS_LOADED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,Et.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,Et.EVENT_SELECTION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,Et.EVENT_MODEL_UPDATED,this.onModelChanged.bind(this)),this.addManagedListener(this.cbSelectAll,W0.EVENT_CHANGED,this.onCbSelectAll.bind(this)),this.cbSelectAll.getInputElement().setAttribute("tabindex","-1"),this.refreshSelectAllLabel()},r.prototype.showOrHideSelectAll=function(){this.cbSelectAllVisible=this.isCheckboxSelection(),this.cbSelectAll.setDisplayed(this.cbSelectAllVisible),this.cbSelectAllVisible&&(this.checkRightRowModelType(),this.updateStateOfCheckbox()),this.refreshSelectAllLabel()},r.prototype.onModelChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},r.prototype.onSelectionChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},r.prototype.getNextCheckboxState=function(e){return(0!==e.selected||0!==e.notSelected)&&(e.selected>0&&e.notSelected>0?null:e.selected>0)},r.prototype.updateStateOfCheckbox=function(){if(!this.processingEventFromCheckbox){this.processingEventFromCheckbox=!0;var e=this.getSelectionCount(),i=this.getNextCheckboxState(e);this.cbSelectAll.setValue(i),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}},r.prototype.refreshSelectAllLabel=function(){if(this.cbSelectAllVisible){var e=this.gridOptionsWrapper.getLocaleTextFunc(),o=this.cbSelectAll.getValue()?e("ariaChecked","checked"):e("ariaUnchecked","unchecked"),s=e("ariaRowSelectAll","Press Space to toggle all rows selection");this.headerCellCtrl.setAriaDescriptionProperty("selectAll",s+" ("+o+")")}else this.headerCellCtrl.setAriaDescriptionProperty("selectAll",null);this.headerCellCtrl.refreshAriaDescription()},r.prototype.getSelectionCount=function(){var e=this,i=0,o=0,s=function(a){e.gridOptionsWrapper.isGroupSelectsChildren()&&a.group||(a.isSelected()?i++:a.selectable&&o++)};return this.filteredOnly?this.gridApi.forEachNodeAfterFilter(s):this.gridApi.forEachNode(s),{notSelected:o,selected:i}},r.prototype.checkRightRowModelType=function(){var e=this.rowModel.getType();e===Nn.ROW_MODEL_TYPE_CLIENT_SIDE||console.warn("AG Grid: selectAllCheckbox is only available if using normal row model, you are using "+e)},r.prototype.onCbSelectAll=function(){!this.processingEventFromCheckbox&&this.cbSelectAllVisible&&(this.cbSelectAll.getValue()?this.selectionService.selectAllRowNodes(this.filteredOnly):this.selectionService.deselectAllRowNodes(this.filteredOnly))},r.prototype.isCheckboxSelection=function(){var e=this.column.getColDef().headerCheckboxSelection;return"function"==typeof e&&(e=e({column:this.column,colDef:this.column.getColDef(),columnApi:this.columnApi,api:this.gridApi,context:this.gridOptionsWrapper.getContext()})),!(!e||(this.gridOptionsWrapper.isRowModelServerSide()?(console.warn("AG Grid: headerCheckboxSelection is not supported for Server Side Row Model"),1):this.gridOptionsWrapper.isRowModelInfinite()?(console.warn("AG Grid: headerCheckboxSelection is not supported for Infinite Row Model"),1):this.gridOptionsWrapper.isRowModelViewport()&&(console.warn("AG Grid: headerCheckboxSelection is not supported for Viewport Row Model"),1)))},VC([Xe("gridApi")],r.prototype,"gridApi",void 0),VC([Xe("columnApi")],r.prototype,"columnApi",void 0),VC([Xe("rowModel")],r.prototype,"rowModel",void 0),VC([Xe("selectionService")],r.prototype,"selectionService",void 0),r}(Zi),RL=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),I_=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},lV=function(t){function r(e,i){var o=t.call(this,e,i)||this;return o.refreshFunctions=[],o.userHeaderClasses=new Set,o.ariaDescriptionProperties=new Map,o.column=e,o}return RL(r,t),r.prototype.setComp=function(e,i,o,s){var a=this;t.prototype.setGui.call(this,i),this.comp=e,this.colDefVersion=this.columnModel.getColDefVersion(),this.updateState(),this.setupWidth(),this.setupMovingCss(),this.setupMenuClass(),this.setupSortableClass(),this.setupWrapTextClass(),this.setupAutoHeight(s),this.addColumnHoverListener(),this.setupFilterCss(),this.setupColId(),this.setupClassesFromColDef(),this.setupTooltip(),this.addActiveHeaderMouseListeners(),this.setupSelectAll(),this.setupUserComp(),this.refreshAria(),this.createManagedBean(new SE(this.getPinned(),this.column,o,e,this)),this.createManagedBean(new hS([this.column],i)),this.createManagedBean(new vA(this.column,i,this.beans)),this.createManagedBean(new xd(i,{shouldStopEventPropagation:function(l){return a.shouldStopEventPropagation(l)},onTabKeyDown:function(){return null},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedListener(this.eventService,Et.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.addManagedListener(this.eventService,Et.EVENT_COLUMN_VALUE_CHANGED,this.onColumnValueChanged.bind(this)),this.addManagedListener(this.eventService,Et.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onColumnRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,Et.EVENT_COLUMN_PIVOT_CHANGED,this.onColumnPivotChanged.bind(this))},r.prototype.setupUserComp=function(){var e=this.lookupUserCompDetails();this.setCompDetails(e)},r.prototype.setCompDetails=function(e){this.userCompDetails=e,this.comp.setUserCompDetails(e)},r.prototype.lookupUserCompDetails=function(){var e=this.createParams(),i=this.column.getColDef();return this.userComponentFactory.getHeaderCompDetails(i,e)},r.prototype.createParams=function(){var e=this,i=this.column.getColDef();return{column:this.column,displayName:this.displayName,enableSorting:i.sortable,enableMenu:this.menuEnabled,showColumnMenu:function(s){e.gridApi.showColumnMenuAfterButtonClick(e.column,s)},progressSort:function(s){e.sortController.progressSort(e.column,!!s,"uiColumnSorted")},setSort:function(s,a){e.sortController.setSortForColumn(e.column,s,!!a,"uiColumnSorted")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext(),eGridHeader:this.getGui()}},r.prototype.setupSelectAll=function(){this.selectAllFeature=this.createManagedBean(new aV(this.column)),this.selectAllFeature.setComp(this)},r.prototype.getSelectAllGui=function(){return this.selectAllFeature.getCheckboxGui()},r.prototype.handleKeyDown=function(e){t.prototype.handleKeyDown.call(this,e),e.key===gi.SPACE&&this.selectAllFeature.onSpaceKeyPressed(e),e.key===gi.ENTER&&this.onEnterKeyPressed(e)},r.prototype.onEnterKeyPressed=function(e){var i=this.comp.getUserCompInstance();i&&(e.ctrlKey||e.metaKey?this.menuEnabled&&i.showMenu&&(e.preventDefault(),i.showMenu()):this.sortable&&this.sortController.progressSort(this.column,e.shiftKey,"uiColumnSorted"))},r.prototype.isMenuEnabled=function(){return this.menuEnabled},r.prototype.onFocusIn=function(e){if(!this.getGui().contains(e.relatedTarget)){var i=this.getRowIndex();this.focusService.setFocusedHeader(i,this.column)}this.setActiveHeader(!0)},r.prototype.onFocusOut=function(e){this.getGui().contains(e.relatedTarget)||this.setActiveHeader(!1)},r.prototype.setupTooltip=function(){var e=this,o=this.createManagedBean(new oA({getColumn:function(){return e.column},getColDef:function(){return e.column.getColDef()},getGui:function(){return e.eGui},getLocation:function(){return"header"},getTooltipValue:function(){return e.column.getColDef().headerTooltip}},this.beans));o.setComp(this.comp),this.refreshFunctions.push(function(){return o.refreshToolTip()})},r.prototype.setupClassesFromColDef=function(){var e=this,i=function(){var o=e.column.getColDef(),a=uS.getHeaderClassesFromColDef(o,e.gridOptionsWrapper,e.column,null),l=e.userHeaderClasses;e.userHeaderClasses=new Set(a),a.forEach(function(c){l.has(c)?l.delete(c):e.comp.addOrRemoveCssClass(c,!0)}),l.forEach(function(c){return e.comp.addOrRemoveCssClass(c,!1)})};this.refreshFunctions.push(i),i()},r.prototype.setDragSource=function(e){var i=this;if(this.dragSourceElement=e,this.removeDragSource(),e&&this.draggable){var o=!this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns();this.moveDragSource={type:Ed.HeaderCell,eElement:e,defaultIconName:o?Zl.ICON_HIDE:Zl.ICON_NOT_ALLOWED,getDragItem:function(){return i.createDragItem()},dragItemName:this.displayName,onDragStarted:function(){return i.column.setMoving(!0,"uiColumnMoved")},onDragStopped:function(){return i.column.setMoving(!1,"uiColumnMoved")},onGridEnter:function(s){var a,l;if(o){var c=(null===(l=null===(a=s)||void 0===a?void 0:a.columns)||void 0===l?void 0:l.filter(function(d){return!d.getColDef().lockVisible}))||[];i.columnModel.setColumnsVisible(c,!0,"uiColumnMoved")}},onGridExit:function(s){var a,l;if(o){var c=(null===(l=null===(a=s)||void 0===a?void 0:a.columns)||void 0===l?void 0:l.filter(function(d){return!d.getColDef().lockVisible}))||[];i.columnModel.setColumnsVisible(c,!1,"uiColumnMoved")}}},this.dragAndDropService.addDragSource(this.moveDragSource,!0)}},r.prototype.createDragItem=function(){var e={};return e[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:e}},r.prototype.removeDragSource=function(){this.moveDragSource&&(this.dragAndDropService.removeDragSource(this.moveDragSource),this.moveDragSource=void 0)},r.prototype.onNewColumnsLoaded=function(){var e=this.columnModel.getColDefVersion();e!=this.colDefVersion&&(this.colDefVersion=e,this.refresh())},r.prototype.updateState=function(){var e=this.column.getColDef();this.menuEnabled=this.menuFactory.isMenuEnabled(this.column)&&!e.suppressMenu,this.sortable=e.sortable,this.displayName=this.calculateDisplayName(),this.draggable=this.workOutDraggable()},r.prototype.addRefreshFunction=function(e){this.refreshFunctions.push(e)},r.prototype.refresh=function(){this.updateState(),this.refreshHeaderComp(),this.refreshAria(),this.refreshFunctions.forEach(function(e){return e()})},r.prototype.refreshHeaderComp=function(){var e=this.lookupUserCompDetails();null!=this.comp.getUserCompInstance()&&this.userCompDetails.componentClass==e.componentClass&&this.attemptHeaderCompRefresh(e.params)?this.setDragSource(this.dragSourceElement):this.setCompDetails(e)},r.prototype.attemptHeaderCompRefresh=function(e){var i=this.comp.getUserCompInstance();return!(!i||!i.refresh)&&i.refresh(e)},r.prototype.calculateDisplayName=function(){return this.columnModel.getDisplayNameForColumn(this.column,"header",!0)},r.prototype.checkDisplayName=function(){this.displayName!==this.calculateDisplayName()&&this.refresh()},r.prototype.workOutDraggable=function(){var e=this.column.getColDef();return!(this.gridOptionsWrapper.isSuppressMovableColumns()||e.suppressMovable||e.lockPosition)||!!e.enableRowGroup||!!e.enablePivot},r.prototype.onColumnRowGroupChanged=function(){this.checkDisplayName()},r.prototype.onColumnPivotChanged=function(){this.checkDisplayName()},r.prototype.onColumnValueChanged=function(){this.checkDisplayName()},r.prototype.setupWidth=function(){var e=this,i=function(){e.comp.setWidth(e.column.getActualWidth()+"px")};this.addManagedListener(this.column,ms.EVENT_WIDTH_CHANGED,i),i()},r.prototype.setupMovingCss=function(){var e=this,i=function(){e.comp.addOrRemoveCssClass("ag-header-cell-moving",e.column.isMoving())};this.addManagedListener(this.column,ms.EVENT_MOVING_CHANGED,i),i()},r.prototype.setupMenuClass=function(){var e=this,i=function(){e.comp.addOrRemoveCssClass("ag-column-menu-visible",e.column.isMenuVisible())};this.addManagedListener(this.column,ms.EVENT_MENU_VISIBLE_CHANGED,i),i()},r.prototype.setupSortableClass=function(){var e=this,i=function(){e.comp.addOrRemoveCssClass("ag-header-cell-sortable",!!e.sortable)};i(),this.addRefreshFunction(i),this.addManagedListener(this.column,ms.EVENT_SORT_CHANGED,this.refreshAriaSort.bind(this))},r.prototype.setupWrapTextClass=function(){var e=this,i=function(){var o=!!e.column.getColDef().wrapHeaderText;e.comp.addOrRemoveCssClass("ag-header-cell-wrap-text",o)};i(),this.addRefreshFunction(i)},r.prototype.setupAutoHeight=function(e){var a,i=this,o=function(f){if(i.isAlive()){var v=D0(i.getGui()),M=e.offsetHeight+v.paddingTop+v.paddingBottom;if(f<5){var F=i.beans.gridOptionsWrapper.getDocument();if(!F||!F.contains(e)||0==M)return void i.beans.frameworkOverrides.setTimeout(function(){return o(f+1)},0)}i.columnModel.setColumnHeaderHeight(i.column,M)}},s=!1,l=function(){var f=i.column.isAutoHeaderHeight();f&&!s&&c(),!f&&s&&d()},c=function(){s=!0,o(0),a=i.resizeObserverService.observeResize(e,function(){return o(0)})},d=function(){s=!1,a&&a(),a=void 0};l(),this.addDestroyFunc(function(){return d()}),this.addManagedListener(this.column,ms.EVENT_WIDTH_CHANGED,function(){return s&&o(0)}),this.addManagedListener(this.column,ms.EVENT_SORT_CHANGED,function(){s&&i.beans.frameworkOverrides.setTimeout(function(){return o(0)})}),this.addRefreshFunction(l)},r.prototype.refreshAriaSort=function(){if(this.sortable){var e=this.gridOptionsWrapper.getLocaleTextFunc();this.comp.setAriaSort(di(this.column)),this.setAriaDescriptionProperty("sort",e("ariaSortableColumn","Press ENTER to sort."))}else this.comp.setAriaSort(),this.setAriaDescriptionProperty("sort",null)},r.prototype.refreshAriaMenu=function(){if(this.menuEnabled){var e=this.gridOptionsWrapper.getLocaleTextFunc();this.setAriaDescriptionProperty("menu",e("ariaMenuColumn","Press CTRL ENTER to open column menu."))}else this.setAriaDescriptionProperty("menu",null)},r.prototype.setAriaDescriptionProperty=function(e,i){null!=i?this.ariaDescriptionProperties.set(e,i):this.ariaDescriptionProperties.delete(e)},r.prototype.refreshAriaDescription=function(){var e=Array.from(this.ariaDescriptionProperties.values());this.comp.setAriaDescription(e.length?e.join(" "):void 0)},r.prototype.refreshAria=function(){this.refreshAriaSort(),this.refreshAriaMenu(),this.refreshAriaDescription()},r.prototype.addColumnHoverListener=function(){var e=this,i=function(){if(e.gridOptionsWrapper.isColumnHoverHighlight()){var o=e.columnHoverService.isHovered(e.column);e.comp.addOrRemoveCssClass("ag-column-hover",o)}};this.addManagedListener(this.eventService,Et.EVENT_COLUMN_HOVER_CHANGED,i),i()},r.prototype.setupFilterCss=function(){var e=this,i=function(){e.comp.addOrRemoveCssClass("ag-header-cell-filtered",e.column.isFilterActive())};this.addManagedListener(this.column,ms.EVENT_FILTER_ACTIVE_CHANGED,i),i()},r.prototype.setupColId=function(){this.comp.setColId(this.column.getColId())},r.prototype.addActiveHeaderMouseListeners=function(){var e=this,i=function(o){return e.setActiveHeader("mouseenter"===o.type)};this.addManagedListener(this.getGui(),"mouseenter",i),this.addManagedListener(this.getGui(),"mouseleave",i)},r.prototype.setActiveHeader=function(e){this.comp.addOrRemoveCssClass("ag-header-active",e)},I_([Xe("columnModel")],r.prototype,"columnModel",void 0),I_([Xe("columnHoverService")],r.prototype,"columnHoverService",void 0),I_([Xe("sortController")],r.prototype,"sortController",void 0),I_([Xe("menuFactory")],r.prototype,"menuFactory",void 0),I_([Xe("dragAndDropService")],r.prototype,"dragAndDropService",void 0),I_([Xe("resizeObserverService")],r.prototype,"resizeObserverService",void 0),I_([Xe("gridApi")],r.prototype,"gridApi",void 0),I_([Xe("columnApi")],r.prototype,"columnApi",void 0),I_([Ru],r.prototype,"removeDragSource",null),r}(wE),cV=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),mS=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},OL=function(t){function r(e,i,o,s){var a=t.call(this)||this;return a.eResize=i,a.comp=e,a.pinned=o,a.columnGroup=s,a}return cV(r,t),r.prototype.postConstruct=function(){var e=this;if(this.columnGroup.isResizable()){var i=this.horizontalResizeService.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});if(this.addDestroyFunc(i),!this.gridOptionsWrapper.isSuppressAutoSize()){var o=this.gridOptionsWrapper.isSkipHeaderOnAutoSize();this.eResize.addEventListener("dblclick",function(){var s=[];e.columnGroup.getDisplayedLeafColumns().forEach(function(l){l.getColDef().suppressAutoSize||s.push(l.getColId())}),s.length>0&&e.columnModel.autoSizeColumns({columns:s,skipHeader:o,stopAtGroup:e.columnGroup,source:"uiColumnResized"}),e.resizeLeafColumnsToFit()})}}else this.comp.addOrRemoveResizableCssClass("ag-hidden",!0)},r.prototype.onResizeStart=function(e){var i=this;this.calculateInitialValues();var o=null;if(e&&(o=this.columnModel.getDisplayedGroupAfter(this.columnGroup)),o){var s=o.getDisplayedLeafColumns();this.resizeTakeFromCols=s.filter(function(a){return a.isResizable()}),this.resizeTakeFromStartWidth=0,this.resizeTakeFromCols.forEach(function(a){return i.resizeTakeFromStartWidth+=a.getActualWidth()}),this.resizeTakeFromRatios=[],this.resizeTakeFromCols.forEach(function(a){return i.resizeTakeFromRatios.push(a.getActualWidth()/i.resizeTakeFromStartWidth)})}else this.resizeTakeFromCols=null,this.resizeTakeFromStartWidth=null,this.resizeTakeFromRatios=null;this.comp.addOrRemoveCssClass("ag-column-resizing",!0)},r.prototype.onResizing=function(e,i){var o=this.normaliseDragChange(i);this.resizeColumns(this.resizeStartWidth+o,e)},r.prototype.resizeLeafColumnsToFit=function(){var e=this.autoWidthCalculator.getPreferredWidthForColumnGroup(this.columnGroup);this.calculateInitialValues(),e>this.resizeStartWidth&&this.resizeColumns(e,!0)},r.prototype.resizeColumns=function(e,i){void 0===i&&(i=!0);var o=[];o.push({columns:this.resizeCols,ratios:this.resizeRatios,width:e}),this.resizeTakeFromCols&&o.push({columns:this.resizeTakeFromCols,ratios:this.resizeTakeFromRatios,width:this.resizeTakeFromStartWidth-(e-this.resizeStartWidth)}),this.columnModel.resizeColumnSets({resizeSets:o,finished:i,source:"uiColumnDragged"}),i&&this.comp.addOrRemoveCssClass("ag-column-resizing",!1)},r.prototype.calculateInitialValues=function(){var e=this,i=this.columnGroup.getDisplayedLeafColumns();this.resizeCols=i.filter(function(o){return o.isResizable()}),this.resizeStartWidth=0,this.resizeCols.forEach(function(o){return e.resizeStartWidth+=o.getActualWidth()}),this.resizeRatios=[],this.resizeCols.forEach(function(o){return e.resizeRatios.push(o.getActualWidth()/e.resizeStartWidth)})},r.prototype.normaliseDragChange=function(e){var i=e;return this.gridOptionsWrapper.isEnableRtl()?this.pinned!==Nn.PINNED_LEFT&&(i*=-1):this.pinned===Nn.PINNED_RIGHT&&(i*=-1),i},mS([Xe("horizontalResizeService")],r.prototype,"horizontalResizeService",void 0),mS([Xe("autoWidthCalculator")],r.prototype,"autoWidthCalculator",void 0),mS([Xe("columnModel")],r.prototype,"columnModel",void 0),mS([qi],r.prototype,"postConstruct",null),r}(Zi),FL=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),uV=function(t){function r(e,i){var o=t.call(this)||this;return o.removeChildListenersFuncs=[],o.columnGroup=i,o.comp=e,o}return FL(r,t),r.prototype.postConstruct=function(){this.addListenersToChildrenColumns(),this.addManagedListener(this.columnGroup,zr.EVENT_DISPLAYED_CHILDREN_CHANGED,this.onDisplayedChildrenChanged.bind(this)),this.onWidthChanged(),this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this))},r.prototype.addListenersToChildrenColumns=function(){var e=this;this.removeListenersOnChildrenColumns();var i=this.onWidthChanged.bind(this);this.columnGroup.getLeafColumns().forEach(function(o){o.addEventListener(ms.EVENT_WIDTH_CHANGED,i),o.addEventListener(ms.EVENT_VISIBLE_CHANGED,i),e.removeChildListenersFuncs.push(function(){o.removeEventListener(ms.EVENT_WIDTH_CHANGED,i),o.removeEventListener(ms.EVENT_VISIBLE_CHANGED,i)})})},r.prototype.removeListenersOnChildrenColumns=function(){this.removeChildListenersFuncs.forEach(function(e){return e()}),this.removeChildListenersFuncs=[]},r.prototype.onDisplayedChildrenChanged=function(){this.addListenersToChildrenColumns(),this.onWidthChanged()},r.prototype.onWidthChanged=function(){this.comp.setWidth(this.columnGroup.getActualWidth()+"px")},function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);o>3&&s&&Object.defineProperty(r,e,s)}([qi],r.prototype,"postConstruct",null),r}(Zi),dV=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),xE=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},pV=function(t){function r(e,i){var o=t.call(this,e,i)||this;return o.columnGroup=e,o}return dV(r,t),r.prototype.setComp=function(e,i,o){t.prototype.setGui.call(this,i),this.comp=e,this.displayName=this.columnModel.getDisplayNameForColumnGroup(this.columnGroup,"header"),this.addClasses(),this.addAttributes(),this.setupMovingCss(),this.setupExpandable(),this.setupTooltip(),this.setupUserComp();var s=this.getParentRowCtrl().getPinned(),a=this.columnGroup.getProvidedColumnGroup().getLeafColumns();this.createManagedBean(new hS(a,i)),this.createManagedBean(new vA(this.columnGroup,i,this.beans)),this.createManagedBean(new uV(e,this.columnGroup)),this.groupResizeFeature=this.createManagedBean(new OL(e,o,s,this.columnGroup)),this.createManagedBean(new xd(i,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:function(){},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},r.prototype.resizeLeafColumnsToFit=function(){this.groupResizeFeature.onResizeStart(!1),this.groupResizeFeature.resizeLeafColumnsToFit()},r.prototype.setupUserComp=function(){var e=this,i=this.displayName,o={displayName:this.displayName,columnGroup:this.columnGroup,setExpanded:function(d){e.columnModel.setColumnGroupOpened(e.columnGroup.getProvidedColumnGroup(),d,"gridInitializing")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()};if(!i){for(var s=this.columnGroup,a=s.getLeafColumns();s.getParent()&&s.getParent().getLeafColumns().length===a.length;)s=s.getParent();var l=s.getColGroupDef();l&&(i=l.headerName),i||(i=a?this.columnModel.getDisplayNameForColumn(a[0],"header",!0):"")}var c=this.userComponentFactory.getHeaderGroupCompDetails(o);this.comp.setUserCompDetails(c)},r.prototype.setupTooltip=function(){var e=this,i=this.columnGroup.getColGroupDef(),o={getColumn:function(){return e.columnGroup},getGui:function(){return e.eGui},getLocation:function(){return"headerGroup"},getTooltipValue:function(){return i&&i.headerTooltip}};i&&(o.getColDef=function(){return i}),this.createManagedBean(new oA(o,this.beans)).setComp(this.comp)},r.prototype.setupExpandable=function(){var e=this.columnGroup.getProvidedColumnGroup();this.refreshExpanded(),this.addManagedListener(e,Zr.EVENT_EXPANDABLE_CHANGED,this.refreshExpanded.bind(this)),this.addManagedListener(e,Zr.EVENT_EXPANDED_CHANGED,this.refreshExpanded.bind(this))},r.prototype.refreshExpanded=function(){var e=this.columnGroup;this.expandable=e.isExpandable();var i=e.isExpanded();this.comp.setAriaExpanded(this.expandable?i?"true":"false":void 0)},r.prototype.addAttributes=function(){this.comp.setColId(this.columnGroup.getUniqueId())},r.prototype.addClasses=function(){var e=this,i=this.columnGroup.getColGroupDef(),o=uS.getHeaderClassesFromColDef(i,this.gridOptionsWrapper,null,this.columnGroup);o.push(this.columnGroup.isPadding()?"ag-header-group-cell-no-group":"ag-header-group-cell-with-group"),o.forEach(function(s){return e.comp.addOrRemoveCssClass(s,!0)})},r.prototype.setupMovingCss=function(){var e=this,o=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),s=function(){return e.comp.addOrRemoveCssClass("ag-header-cell-moving",e.columnGroup.isMoving())};o.forEach(function(a){e.addManagedListener(a,ms.EVENT_MOVING_CHANGED,s)}),s()},r.prototype.onFocusIn=function(e){if(!this.eGui.contains(e.relatedTarget)){var i=this.getRowIndex();this.beans.focusService.setFocusedHeader(i,this.columnGroup)}},r.prototype.handleKeyDown=function(e){t.prototype.handleKeyDown.call(this,e);var i=this.getWrapperHasFocus();if(this.expandable&&i&&e.key===gi.ENTER){var o=this.columnGroup,s=!o.isExpanded();this.columnModel.setColumnGroupOpened(o.getProvidedColumnGroup(),s,"uiColumnExpanded")}},r.prototype.setDragSource=function(e){var i=this;if(!this.isSuppressMoving()){var o=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),s=!this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns(),a={type:Ed.HeaderCell,eElement:e,defaultIconName:s?Zl.ICON_HIDE:Zl.ICON_NOT_ALLOWED,dragItemName:this.displayName,getDragItem:this.getDragItemForGroup.bind(this),onDragStarted:function(){return o.forEach(function(l){return l.setMoving(!0,"uiColumnDragged")})},onDragStopped:function(){return o.forEach(function(l){return l.setMoving(!1,"uiColumnDragged")})},onGridEnter:function(l){var c,d;if(s){var f=(null===(d=null===(c=l)||void 0===c?void 0:c.columns)||void 0===d?void 0:d.filter(function(v){return!v.getColDef().lockVisible}))||[];i.columnModel.setColumnsVisible(f,!0,"uiColumnMoved")}},onGridExit:function(l){var c,d;if(s){var f=(null===(d=null===(c=l)||void 0===c?void 0:c.columns)||void 0===d?void 0:d.filter(function(v){return!v.getColDef().lockVisible}))||[];i.columnModel.setColumnsVisible(f,!1,"uiColumnMoved")}}};this.dragAndDropService.addDragSource(a,!0),this.addDestroyFunc(function(){return i.dragAndDropService.removeDragSource(a)})}},r.prototype.getDragItemForGroup=function(){var e=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),i={};e.forEach(function(s){return i[s.getId()]=s.isVisible()});var o=[];return this.columnModel.getAllDisplayedColumns().forEach(function(s){e.indexOf(s)>=0&&(o.push(s),Yl(e,s))}),e.forEach(function(s){return o.push(s)}),{columns:o,visibleState:i}},r.prototype.isSuppressMoving=function(){var e=!1;return this.columnGroup.getLeafColumns().forEach(function(o){(o.getColDef().suppressMovable||o.getColDef().lockPosition)&&(e=!0)}),e||this.gridOptionsWrapper.isSuppressMovableColumns()},xE([Xe("columnModel")],r.prototype,"columnModel",void 0),xE([Xe("dragAndDropService")],r.prototype,"dragAndDropService",void 0),xE([Xe("gridApi")],r.prototype,"gridApi",void 0),xE([Xe("columnApi")],r.prototype,"columnApi",void 0),r}(wE),hV=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),yA=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},bA=0,CA=function(t){function r(e,i,o){var s=t.call(this)||this;return s.instanceId=bA++,s.headerCellCtrls={},s.rowIndex=e,s.pinned=i,s.type=o,s}return hV(r,t),r.prototype.getInstanceId=function(){return this.instanceId},r.prototype.setComp=function(e){this.comp=e,this.onRowHeightChanged(),this.onVirtualColumnsChanged(),this.setWidth(),this.addEventListeners(),jg()&&this.comp.setTransform("translateZ(0)"),e.setAriaRowIndex(this.rowIndex+1)},r.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,Et.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addManagedListener(this.gridOptionsWrapper,So.PROP_DOM_LAYOUT,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Et.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Et.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Et.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,So.PROP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,So.PROP_PIVOT_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,So.PROP_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,So.PROP_PIVOT_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,So.PROP_FLOATING_FILTERS_HEIGHT,this.onRowHeightChanged.bind(this))},r.prototype.getHeaderCellCtrl=function(e){return dd(this.headerCellCtrls).find(function(i){return i.getColumnGroupChild()===e})},r.prototype.onDisplayedColumnsChanged=function(){this.onVirtualColumnsChanged(),this.setWidth(),this.onRowHeightChanged()},r.prototype.getType=function(){return this.type},r.prototype.onColumnResized=function(){this.setWidth()},r.prototype.setWidth=function(){var e=this.getWidthForRow();this.comp.setWidth(e+"px")},r.prototype.getWidthForRow=function(){return this.gridOptionsWrapper.getDomLayout()===Nn.DOM_LAYOUT_PRINT?null!=this.pinned?0:this.columnModel.getContainerWidth(Nn.PINNED_RIGHT)+this.columnModel.getContainerWidth(Nn.PINNED_LEFT)+this.columnModel.getContainerWidth(null):this.columnModel.getContainerWidth(this.pinned)},r.prototype.onRowHeightChanged=function(){var e=this.columnModel.getHeaderRowCount(),i=[],o=0;this.columnModel.hasFloatingFilters()&&(e++,o=1);for(var s=this.columnModel.getColumnGroupHeaderRowHeight(),a=this.columnModel.getColumnHeaderRowHeight(),c=e-(1+o),d=0;d<c;d++)i.push(s);for(i.push(a),d=0;d<o;d++)i.push(this.gridOptionsWrapper.getFloatingFiltersHeight());var f=0;for(d=0;d<this.rowIndex;d++)f+=i[d];var v=i[this.rowIndex]+"px";this.comp.setTop(f+"px"),this.comp.setHeight(v)},r.prototype.getPinned=function(){return this.pinned},r.prototype.getRowIndex=function(){return this.rowIndex},r.prototype.onVirtualColumnsChanged=function(){var e=this,i=this.headerCellCtrls;this.headerCellCtrls={},this.getColumnsInViewport().forEach(function(l){if(!l.isEmptyGroup()){var c=l.getUniqueId(),d=i[c];if(delete i[c],d&&d.getColumnGroupChild()!=l&&(e.destroyBean(d),d=void 0),null==d)switch(e.type){case rf.FLOATING_FILTER:d=e.createBean(new AL(l,e));break;case rf.COLUMN_GROUP:d=e.createBean(new pV(l,e));break;default:d=e.createBean(new lV(l,e))}e.headerCellCtrls[c]=d}}),Vo(i,function(l,c){var d=function(l){return!!e.focusService.isHeaderWrapperFocused(l)&&e.columnModel.isDisplayed(l.getColumnGroupChild())}(c);d?e.headerCellCtrls[l]=c:e.destroyBean(c)});var a=ls(this.headerCellCtrls);this.comp.setHeaderCtrls(a)},r.prototype.destroyCtrls=function(){var e=this;Vo(this.headerCellCtrls,function(i,o){e.destroyBean(o)}),this.headerCellCtrls={}},r.prototype.getColumnsInViewport=function(){return this.gridOptionsWrapper.getDomLayout()===Nn.DOM_LAYOUT_PRINT?this.getColumnsInViewportPrintLayout():this.getColumnsInViewportNormalLayout()},r.prototype.getColumnsInViewportPrintLayout=function(){var e=this;if(null!=this.pinned)return[];var i=[],o=this.getActualDepth();return[Nn.PINNED_LEFT,null,Nn.PINNED_RIGHT].forEach(function(s){var a=e.columnModel.getVirtualHeaderGroupRow(s,o);i=i.concat(a)}),i},r.prototype.getActualDepth=function(){return this.type==rf.FLOATING_FILTER?this.rowIndex-1:this.rowIndex},r.prototype.getColumnsInViewportNormalLayout=function(){return this.columnModel.getVirtualHeaderGroupRow(this.pinned,this.getActualDepth())},r.prototype.focusHeader=function(e,i){var s=ls(this.headerCellCtrls).find(function(a){return a.getColumnGroupChild()==e});return!!s&&(s.focus(i),!0)},yA([Xe("columnModel")],r.prototype,"columnModel",void 0),yA([Xe("focusService")],r.prototype,"focusService",void 0),yA([Ru],r.prototype,"destroyCtrls",null),r}(Zi),fV=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),gS=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},W1=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var o,a,i=e.call(t),s=[];try{for(;(void 0===r||r-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return s},wA=function(t){function r(e){var i=t.call(this)||this;return i.groupsRowCtrls=[],i.pinned=e,i}return fV(r,t),r.prototype.setComp=function(e,i){this.comp=e,this.setupCenterWidth(),this.setupPinnedWidth(),this.setupDragAndDrop(i),this.addManagedListener(this.eventService,Et.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.ctrlsService.registerHeaderContainer(this,this.pinned),this.columnModel.isReady()&&this.refresh()},r.prototype.setupDragAndDrop=function(e){var i=new JB(this.pinned,e);this.createManagedBean(i)},r.prototype.refresh=function(e){var i=this;void 0===e&&(e=!1);var f,o=new bm,s=this.focusService.getFocusHeaderToUseAfterRefresh();(function(){var f=i.columnModel.getHeaderRowCount()-1;i.groupsRowCtrls=i.destroyBeans(i.groupsRowCtrls);for(var v=0;v<f;v++){var w=i.createBean(new CA(o.next(),i.pinned,rf.COLUMN_GROUP));i.groupsRowCtrls.push(w)}})(),f=o.next(),(null==i.columnsRowCtrl||!e||i.columnsRowCtrl.getRowIndex()!==f)&&(i.destroyBean(i.columnsRowCtrl),i.columnsRowCtrl=i.createBean(new CA(f,i.pinned,rf.COLUMN))),function(){var v=function(){i.filtersRowCtrl=i.destroyBean(i.filtersRowCtrl)};if(i.columnModel.hasFloatingFilters()){var w=o.next();if(i.filtersRowCtrl){var x=i.filtersRowCtrl.getRowIndex()!==w;(!e||x)&&v()}i.filtersRowCtrl||(i.filtersRowCtrl=i.createBean(new CA(w,i.pinned,rf.FLOATING_FILTER)))}else v()}();var d=this.getAllCtrls();this.comp.setCtrls(d),this.restoreFocusOnHeader(s)},r.prototype.restoreFocusOnHeader=function(e){null==e||e.column.getPinned()!=this.pinned||this.focusService.focusHeaderPosition({headerPosition:e})},r.prototype.getAllCtrls=function(){var e=function(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(W1(arguments[r]));return t}(this.groupsRowCtrls,[this.columnsRowCtrl]);return this.filtersRowCtrl&&e.push(this.filtersRowCtrl),e},r.prototype.onGridColumnsChanged=function(){this.refresh(!0)},r.prototype.setupCenterWidth=function(){var e=this;null==this.pinned&&this.createManagedBean(new fA(function(i){return e.comp.setCenterWidth(i+"px")}))},r.prototype.setHorizontalScroll=function(e){this.comp.setContainerTransform("translateX("+e+"px)")},r.prototype.setupPinnedWidth=function(){var e=this;if(null!=this.pinned){var i=this.pinned===Nn.PINNED_LEFT,o=this.pinned===Nn.PINNED_RIGHT,s=function(){var a=i?e.pinnedWidthService.getPinnedLeftWidth():e.pinnedWidthService.getPinnedRightWidth();if(null!=a){var l=0==a,c=e.gridOptionsWrapper.isEnableRtl(),d=e.gridOptionsWrapper.getScrollbarWidth(),f=e.scrollVisibleService.isVerticalScrollShowing()&&(c&&i||!c&&o);e.comp.setPinnedContainerWidth((f?a+d:a)+"px"),e.comp.addOrRemoveCssClass("ag-hidden",l)}};this.addManagedListener(this.eventService,Et.EVENT_LEFT_PINNED_WIDTH_CHANGED,s),this.addManagedListener(this.eventService,Et.EVENT_RIGHT_PINNED_WIDTH_CHANGED,s),this.addManagedListener(this.eventService,Et.EVENT_SCROLL_VISIBILITY_CHANGED,s),this.addManagedListener(this.eventService,Et.EVENT_SCROLLBAR_WIDTH_CHANGED,s)}},r.prototype.getHeaderCtrlForColumn=function(e){if(e instanceof ms)return this.columnsRowCtrl?this.columnsRowCtrl.getHeaderCellCtrl(e):void 0;if(0!==this.groupsRowCtrls.length)for(var i=0;i<this.groupsRowCtrls.length;i++){var o=this.groupsRowCtrls[i].getHeaderCellCtrl(e);if(o)return o}},r.prototype.getHtmlElementForColumnHeader=function(e){var i=this.getHeaderCtrlForColumn(e);return i?i.getGui():null},r.prototype.getRowType=function(e){var o=this.getAllCtrls()[e];return o?o.getType():void 0},r.prototype.focusHeader=function(e,i,o){var a=this.getAllCtrls()[e];return!!a&&a.focusHeader(i,o)},r.prototype.getRowCount=function(){return this.getAllCtrls().length},gS([Xe("ctrlsService")],r.prototype,"ctrlsService",void 0),gS([Xe("scrollVisibleService")],r.prototype,"scrollVisibleService",void 0),gS([Xe("pinnedWidthService")],r.prototype,"pinnedWidthService",void 0),gS([Xe("columnModel")],r.prototype,"columnModel",void 0),gS([Xe("focusService")],r.prototype,"focusService",void 0),r}(Zi),TA=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),SA=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},z0=function(t){function r(e){var i=t.call(this)||this;return i.headerRowComps={},i.rowCompsList=[],i.pinned=e,i}return TA(r,t),r.prototype.init=function(){var e=this;this.selectAndSetTemplate();var i={addOrRemoveCssClass:function(s,a){return e.addOrRemoveCssClass(s,a)},setCtrls:function(s){return e.setCtrls(s)},setCenterWidth:function(s){return e.eCenterContainer.style.width=s},setContainerTransform:function(s){return e.eCenterContainer.style.transform=s},setPinnedContainerWidth:function(s){var a=e.getGui();a.style.width=s,a.style.maxWidth=s,a.style.minWidth=s}};this.createManagedBean(new wA(this.pinned)).setComp(i,this.getGui())},r.prototype.selectAndSetTemplate=function(){this.setTemplate(this.pinned==Nn.PINNED_LEFT?r.PINNED_LEFT_TEMPLATE:this.pinned==Nn.PINNED_RIGHT?r.PINNED_RIGHT_TEMPLATE:r.CENTER_TEMPLATE),this.eRowContainer=this.eCenterContainer?this.eCenterContainer:this.getGui()},r.prototype.destroyRowComps=function(){this.setCtrls([])},r.prototype.destroyRowComp=function(e){this.destroyBean(e),this.eRowContainer.removeChild(e.getGui())},r.prototype.setCtrls=function(e){var s,i=this,o=this.headerRowComps;this.headerRowComps={},this.rowCompsList=[],e.forEach(function(l){var c=l.getInstanceId(),d=o[c];delete o[c];var f=d||i.createBean(new bE(l));i.headerRowComps[c]=f,i.rowCompsList.push(f),function(l){var c=l.getGui();c.parentElement!=i.eRowContainer&&i.eRowContainer.appendChild(c),s&&Yg(i.eRowContainer,c,s),s=c}(f)}),ls(o).forEach(function(l){return i.destroyRowComp(l)})},r.PINNED_LEFT_TEMPLATE='<div class="ag-pinned-left-header" role="presentation"/>',r.PINNED_RIGHT_TEMPLATE='<div class="ag-pinned-right-header" role="presentation"/>',r.CENTER_TEMPLATE='<div class="ag-header-viewport" role="presentation">\n            <div class="ag-header-container" ref="eCenterContainer" role="rowgroup"></div>\n        </div>',SA([Ti("eCenterContainer")],r.prototype,"eCenterContainer",void 0),SA([qi],r.prototype,"init",null),SA([Ru],r.prototype,"destroyRowComps",null),r}(Do),PL=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),jC=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},A_=function(t){return t[t.UP=0]="UP",t[t.DOWN=1]="DOWN",t[t.LEFT=2]="LEFT",t[t.RIGHT=3]="RIGHT",t}(A_||{}),mV=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return PL(r,t),r.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(i){e.gridBodyCon=i.gridBodyCtrl})},r.prototype.getHeaderRowCount=function(){var e=this.ctrlsService.getHeaderRowContainerCtrl();return e?e.getRowCount():0},r.prototype.getHeaderRowType=function(e){var i=this.ctrlsService.getHeaderRowContainerCtrl();if(i)return i.getRowType(e)},r.prototype.navigateVertically=function(e,i,o){if(i||(i=this.focusService.getFocusedHeader()),!i)return!1;var s=i.headerRowIndex,a=i.column,l=this.getHeaderRowCount(),c=e===A_.UP,d=c?s-1:s+1,f=null,v=!1;d<0&&(d=0,f=a,v=!0),d>=l&&(d=-1);var w=this.getHeaderRowType(s);if(!v){if(w===rf.COLUMN_GROUP){var x=a;f=c?a.getParent():x.getDisplayedChildren()[0]}else w===rf.FLOATING_FILTER?f=a:(x=a,f=c?x.getParent():x);if(!f)return!1}return this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:d,column:f},allowUserOverride:!0,event:o})},r.prototype.navigateHorizontally=function(e,i,o){void 0===i&&(i=!1);var c,d,s=this.focusService.getFocusedHeader();return(c=e===A_.LEFT!==this.gridOptionsWrapper.isEnableRtl()?this.headerPositionUtils.findHeader(s,d="Before"):this.headerPositionUtils.findHeader(s,d="After"))?this.focusService.focusHeaderPosition({headerPosition:c,direction:d,fromTab:i,allowUserOverride:!0,event:o}):!i||this.focusNextHeaderRow(s,d,o)},r.prototype.focusNextHeaderRow=function(e,i,o){var s=e.headerRowIndex,a=null;return"Before"===i?s>0&&(a=this.headerPositionUtils.findColAtEdgeForHeaderRow(s-1,"end")):a=this.headerPositionUtils.findColAtEdgeForHeaderRow(s+1,"start"),this.focusService.focusHeaderPosition({headerPosition:a,direction:i,fromTab:!0,allowUserOverride:!0,event:o})},r.prototype.scrollToColumn=function(e,i){if(void 0===i&&(i="After"),!e.getPinned()){var o;if(e instanceof zr){var s=e.getDisplayedLeafColumns();o="Before"===i?Ja(s):s[0]}else o=e;this.gridBodyCon.getScrollFeature().ensureColumnVisible(o),this.gridBodyCon.getScrollFeature().horizontallyScrollHeaderCenterAndFloatingCenter(),this.animationFrameService.flushAllFrames()}},jC([Xe("focusService")],r.prototype,"focusService",void 0),jC([Xe("headerPositionUtils")],r.prototype,"headerPositionUtils",void 0),jC([Xe("animationFrameService")],r.prototype,"animationFrameService",void 0),jC([Xe("ctrlsService")],r.prototype,"ctrlsService",void 0),jC([qi],r.prototype,"postConstruct",null),jC([Kr("headerNavigationService")],r)}(Zi),gV=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),EE=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},LL=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return gV(r,t),r.prototype.setComp=function(e,i,o){this.comp=e,this.eGui=i,this.createManagedBean(new xd(o,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedListener(this.eventService,Et.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this)),this.onPivotModeChanged(),this.setupHeaderHeight(),this.ctrlsService.registerGridHeaderCtrl(this)},r.prototype.setupHeaderHeight=function(){var e=this.setHeaderHeight.bind(this);e(),this.addManagedListener(this.gridOptionsWrapper,So.PROP_HEADER_HEIGHT,e),this.addManagedListener(this.gridOptionsWrapper,So.PROP_PIVOT_HEADER_HEIGHT,e),this.addManagedListener(this.gridOptionsWrapper,So.PROP_GROUP_HEADER_HEIGHT,e),this.addManagedListener(this.gridOptionsWrapper,So.PROP_PIVOT_GROUP_HEADER_HEIGHT,e),this.addManagedListener(this.gridOptionsWrapper,So.PROP_FLOATING_FILTERS_HEIGHT,e),this.addManagedListener(this.eventService,Et.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,Et.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,e)},r.prototype.getHeaderHeight=function(){return this.headerHeight},r.prototype.setHeaderHeight=function(){var l,i=this.columnModel,o=this.gridOptionsWrapper,s=0,a=i.getHeaderRowCount();i.hasFloatingFilters()&&(a++,s=1);var d=this.columnModel.getColumnGroupHeaderRowHeight(),f=this.columnModel.getColumnHeaderRowHeight(),w=a-(1+s);l=s*o.getFloatingFiltersHeight(),l+=w*d,this.headerHeight!==(l+=f)&&(this.headerHeight=l,this.comp.setHeightAndMinHeight(l+1+"px"),this.eventService.dispatchEvent({type:Et.EVENT_HEADER_HEIGHT_CHANGED}))},r.prototype.onPivotModeChanged=function(){var e=this.columnModel.isPivotMode();this.comp.addOrRemoveCssClass("ag-pivot-on",e),this.comp.addOrRemoveCssClass("ag-pivot-off",!e)},r.prototype.onTabKeyDown=function(e){var i=this.gridOptionsWrapper.isEnableRtl();(this.headerNavigationService.navigateHorizontally(e.shiftKey!==i?A_.LEFT:A_.RIGHT,!0,e)||this.focusService.focusNextGridCoreContainer(e.shiftKey))&&e.preventDefault()},r.prototype.handleKeyDown=function(e){var i=null;switch(e.key){case gi.LEFT:i=A_.LEFT;case gi.RIGHT:rr(i)||(i=A_.RIGHT),this.headerNavigationService.navigateHorizontally(i,!1,e);break;case gi.UP:i=A_.UP;case gi.DOWN:rr(i)||(i=A_.DOWN),this.headerNavigationService.navigateVertically(i,null,e)&&e.preventDefault();break;default:return}},r.prototype.onFocusOut=function(e){var i=this.gridOptionsWrapper.getDocument(),o=e.relatedTarget;!o&&this.eGui.contains(i.activeElement)||this.eGui.contains(o)||this.focusService.clearFocusedHeader()},EE([Xe("headerNavigationService")],r.prototype,"headerNavigationService",void 0),EE([Xe("focusService")],r.prototype,"focusService",void 0),EE([Xe("columnModel")],r.prototype,"columnModel",void 0),EE([Xe("ctrlsService")],r.prototype,"ctrlsService",void 0),r}(Zi),vV=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),DE=function(t){function r(){return t.call(this,r.TEMPLATE)||this}return vV(r,t),r.prototype.postConstruct=function(){var e=this,i={addOrRemoveCssClass:function(a,l){return e.addOrRemoveCssClass(a,l)},setHeightAndMinHeight:function(a){e.getGui().style.height=a,e.getGui().style.minHeight=a}};this.createManagedBean(new LL).setComp(i,this.getGui(),this.getFocusableElement());var s=function(a){e.createManagedBean(a),e.appendChild(a)};s(new z0(Nn.PINNED_LEFT)),s(new z0(null)),s(new z0(Nn.PINNED_RIGHT))},r.TEMPLATE='<div class="ag-header" role="presentation"/>',function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);o>3&&s&&Object.defineProperty(r,e,s)}([qi],r.prototype,"postConstruct",null),r}(Do),NL=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),EA=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},_V=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return NL(r,t),r.prototype.addResizeBar=function(e){var i=this,o={dragStartPixels:e.dragStartPixels||0,eElement:e.eResizeBar,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this,e),onDragging:this.onDragging.bind(this,e)};return this.dragService.addDragSource(o,!0),function(){return i.dragService.removeDragSource(o)}},r.prototype.onDragStart=function(e,i){this.dragStartX=i.clientX,this.setResizeIcons();var o=i instanceof MouseEvent&&!0===i.shiftKey;e.onResizeStart(o)},r.prototype.setResizeIcons=function(){var e=this.ctrlsService.getGridCtrl();e.setResizeCursor(!0),e.disableUserSelect(!0)},r.prototype.onDragStop=function(e,i){e.onResizeEnd(this.resizeAmount),this.resetIcons()},r.prototype.resetIcons=function(){var e=this.ctrlsService.getGridCtrl();e.setResizeCursor(!1),e.disableUserSelect(!1)},r.prototype.onDragging=function(e,i){this.resizeAmount=i.clientX-this.dragStartX,e.onResizing(this.resizeAmount)},EA([Xe("dragService")],r.prototype,"dragService",void 0),EA([Xe("ctrlsService")],r.prototype,"ctrlsService",void 0),EA([Kr("horizontalResizeService")],r)}(Zi),GL=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),_S=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},yV=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return GL(r,t),r.prototype.hideActiveMenu=function(){this.hidePopup&&this.hidePopup()},r.prototype.showMenuAfterMouseEvent=function(e,i){var o=this;this.showPopup(e,function(s){o.popupService.positionPopupUnderMouseEvent({column:e,type:"columnMenu",mouseEvent:i,ePopup:s})},i.target)},r.prototype.showMenuAfterButtonClick=function(e,i,o){var s=this;this.showPopup(e,function(a){s.popupService.positionPopupUnderComponent({type:o,eventSource:i,ePopup:a,keepWithinBounds:!0,column:e})},i)},r.prototype.showPopup=function(e,i,o){var s=this,a=this.filterManager.getOrCreateFilterWrapper(e,"COLUMN_MENU");if(!a)throw new Error("AG Grid - unable to show popup filter, filter instantiation failed");var l=document.createElement("div");Qn(l,"presentation"),l.classList.add("ag-menu"),this.tabListener=this.addManagedListener(l,"keydown",function(x){return s.trapFocusWithin(x,l)}),a.guiPromise.then(function(x){return l.appendChild(x)});var c,d=o||this.ctrlsService.getGridBodyCtrl().getGui(),v=this.gridOptionsWrapper.getLocaleTextFunc(),w=this.popupService.addPopup({modal:!0,eChild:l,closeOnEsc:!0,closedCallback:function(x){e.setMenuVisible(!1,"contextMenu");var I=x instanceof KeyboardEvent;if(s.tabListener&&(s.tabListener=s.tabListener()),I&&o&&Zh(o)){var M=s.focusService.findTabbableParent(o);M&&M.focus()}},positionCallback:function(){return i(l)},anchorToElement:d,ariaLabel:v("ariaLabelColumnMenu","Column Menu")});w&&(this.hidePopup=c=w.hideFunc),a.filterPromise.then(function(x){i(l),x.afterGuiAttached&&x.afterGuiAttached({container:"columnMenu",hidePopup:c})}),e.setMenuVisible(!0,"contextMenu")},r.prototype.trapFocusWithin=function(e,i){e.key!==gi.TAB||e.defaultPrevented||this.focusService.findNextFocusableElement(i,!1,e.shiftKey)||(e.preventDefault(),this.focusService.focusInto(i,e.shiftKey))},r.prototype.isMenuEnabled=function(e){return e.isFilterAllowed()},_S([Xe("filterManager")],r.prototype,"filterManager",void 0),_S([Xe("popupService")],r.prototype,"popupService",void 0),_S([Xe("focusService")],r.prototype,"focusService",void 0),_S([Xe("ctrlsService")],r.prototype,"ctrlsService",void 0),_S([Kr("menuFactory")],r)}(Zi),HC=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),kE=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},BL=function(t){function r(e){var i=t.call(this,r.getTemplate(e.cssClass))||this;return i.items=[],i.tabbedItemScrollMap=new Map,i.params=e,e.items&&e.items.forEach(function(o){return i.addItem(o)}),i}return HC(r,t),r.prototype.postConstruct=function(){this.createManagedBean(new xd(this.getFocusableElement(),{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this)}))},r.getTemplate=function(e){return'<div class="ag-tabs '+e+'">\n            <div ref="eHeader" role="tablist" class="ag-tabs-header '+(e?e+"-header":"")+'"></div>\n            <div ref="eBody" role="presentation" class="ag-tabs-body '+(e?e+"-body":"")+'"></div>\n        </div>'},r.prototype.handleKeyDown=function(e){var i=this.gridOptionsWrapper.getDocument();switch(e.key){case gi.RIGHT:case gi.LEFT:if(!this.eHeader.contains(i.activeElement))return;var o=this.items.indexOf(this.activeItem),s=e.key===gi.RIGHT?Math.min(o+1,this.items.length-1):Math.max(o-1,0);if(o===s)return;e.preventDefault();var a=this.items[s];this.showItemWrapper(a),a.eHeaderButton.focus();break;case gi.UP:case gi.DOWN:e.stopPropagation()}},r.prototype.onTabKeyDown=function(e){if(!e.defaultPrevented){var i=this,o=i.focusService,s=i.eHeader,a=i.eBody,l=i.activeItem,d=this.gridOptionsWrapper.getDocument().activeElement;if(e.preventDefault(),s.contains(d))o.focusInto(a,e.shiftKey);else if(o.isFocusUnderManagedComponent(a))l.eHeaderButton.focus();else{var f=o.findNextFocusableElement(a,!1,e.shiftKey);f?f.focus():l.eHeaderButton.focus()}}},r.prototype.setAfterAttachedParams=function(e){this.afterAttachedParams=e},r.prototype.showFirstItem=function(){this.items.length>0&&this.showItemWrapper(this.items[0])},r.prototype.addItem=function(e){var i=document.createElement("span");Qn(i,"tab"),i.setAttribute("tabIndex","-1"),i.appendChild(e.title),i.classList.add("ag-tab"),this.eHeader.appendChild(i),Bn(i,e.titleLabel);var o={tabbedItem:e,eHeaderButton:i};this.items.push(o),i.addEventListener("click",this.showItemWrapper.bind(this,o))},r.prototype.showItem=function(e){var i=this.items.find(function(o){return o.tabbedItem===e});i&&this.showItemWrapper(i)},r.prototype.showItemWrapper=function(e){var i=this,o=e.tabbedItem,s=e.eHeaderButton;this.params.onItemClicked&&this.params.onItemClicked({item:o}),this.activeItem!==e?(this.lastScrollListener&&(this.lastScrollListener=this.lastScrollListener()),eu(this.eBody),o.bodyPromise.then(function(a){i.eBody.appendChild(a);var l=!i.focusService.isKeyboardMode();if(i.focusService.focusInto(i.eBody,!1,l),o.afterAttachedCallback&&o.afterAttachedCallback(i.afterAttachedParams),i.params.keepScrollPosition){var c=o.getScrollableContainer&&o.getScrollableContainer()||a;i.lastScrollListener=i.addManagedListener(c,"scroll",function(){i.tabbedItemScrollMap.set(o.name,c.scrollTop)});var d=i.tabbedItemScrollMap.get(o.name);void 0!==d&&setTimeout(function(){c.scrollTop=d},0)}}),this.activeItem&&this.activeItem.eHeaderButton.classList.remove("ag-tab-selected"),s.classList.add("ag-tab-selected"),this.activeItem=e):Of(this.params.onActiveItemClicked)},kE([Xe("focusService")],r.prototype,"focusService",void 0),kE([Ti("eHeader")],r.prototype,"eHeader",void 0),kE([Ti("eBody")],r.prototype,"eBody",void 0),kE([qi],r.prototype,"postConstruct",null),r}(Do),yS=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),bV=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.polyfillFunctions=[],e}return yS(r,t),r.prototype.observeResize=function(e,i){var w,o=this,a=this.gridOptionsWrapper.getDocument().defaultView||window,l=hd(i,50),f=this.gridOptionsWrapper.isSuppressBrowserResizeObserver();return a.ResizeObserver&&!f?((w=new a.ResizeObserver(l)).observe(e),function(){return w.disconnect()}):function(){var w=Ch(e),x=A0(e),I=!0,M=function(){if(I){var F=Ch(e),re=A0(e);(F!==w||re!==x)&&(w=F,x=re,i()),o.doNextPolyfillTurn(M)}};return M(),function(){return I=!1}}()},r.prototype.doNextPolyfillTurn=function(e){this.polyfillFunctions.push(e),this.schedulePolyfill()},r.prototype.schedulePolyfill=function(){var e=this;this.polyfillScheduled||(this.polyfillScheduled=!0,this.getFrameworkOverrides().setTimeout(function(){var o=e.polyfillFunctions;e.polyfillScheduled=!1,e.polyfillFunctions=[],o.forEach(function(s){return s()})},50))},r=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s}([Kr("resizeObserverService")],r),r}(Zi),CV=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),bS=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},q0=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.createTasksP1={list:[],sorted:!1},e.createTasksP2={list:[],sorted:!1},e.destroyTasks=[],e.ticking=!1,e.scrollGoingDown=!0,e.lastScrollTop=0,e.taskCount=0,e.cancelledTasks=new Set,e}return CV(r,t),r.prototype.setScrollTop=function(e){this.scrollGoingDown=e>this.lastScrollTop,this.lastScrollTop=e},r.prototype.init=function(){this.useAnimationFrame=!this.gridOptionsWrapper.isSuppressAnimationFrame()},r.prototype.isOn=function(){return this.useAnimationFrame},r.prototype.verifyAnimationFrameOn=function(e){!1===this.useAnimationFrame&&console.warn("AG Grid: AnimationFrameService."+e+" called but animation frames are off")},r.prototype.createTask=function(e,i,o){this.verifyAnimationFrameOn(o);var s={task:e,index:i,createOrder:++this.taskCount};this.addTaskToList(this[o],s),this.schedule()},r.prototype.cancelTask=function(e){this.cancelledTasks.add(e)},r.prototype.addTaskToList=function(e,i){e.list.push(i),e.sorted=!1},r.prototype.sortTaskList=function(e){if(!e.sorted){var i=this.scrollGoingDown?1:-1;e.list.sort(function(o,s){return o.index!==s.index?i*(s.index-o.index):s.createOrder-o.createOrder}),e.sorted=!0}},r.prototype.addDestroyTask=function(e){this.verifyAnimationFrameOn("createTasksP3"),this.destroyTasks.push(e),this.schedule()},r.prototype.executeFrame=function(e){this.verifyAnimationFrameOn("executeFrame");for(var i=this.createTasksP1,o=i.list,s=this.createTasksP2,a=s.list,l=this.destroyTasks,c=(new Date).getTime(),d=(new Date).getTime()-c,f=e<=0,v=this.ctrlsService.getGridBodyCtrl();f||d<e;){if(!v.getScrollFeature().executeAnimationFrameScroll()){var x=void 0;if(o.length)this.sortTaskList(i),x=o.pop().task;else if(a.length)this.sortTaskList(s),x=a.pop().task;else{if(!l.length){this.cancelledTasks.clear();break}x=l.pop()}this.cancelledTasks.has(x)||x()}d=(new Date).getTime()-c}o.length||a.length||l.length?this.requestFrame():this.stopTicking()},r.prototype.stopTicking=function(){this.ticking=!1},r.prototype.flushAllFrames=function(){this.useAnimationFrame&&this.executeFrame(-1)},r.prototype.schedule=function(){this.useAnimationFrame&&(this.ticking||(this.ticking=!0,this.requestFrame()))},r.prototype.requestFrame=function(){var e=this.executeFrame.bind(this,60),o=this.gridOptionsWrapper.getDocument().defaultView||window;o.requestAnimationFrame?o.requestAnimationFrame(e):o.webkitRequestAnimationFrame?o.webkitRequestAnimationFrame(e):o.setTimeout(e,0)},r.prototype.isQueueEmpty=function(){return!this.ticking},r.prototype.debounce=function(e){var i=this,o=!1;return function(){i.isOn()?o||(o=!0,i.addDestroyTask(function(){o=!1,e()})):i.getFrameworkOverrides().setTimeout(e,0)}},bS([Xe("ctrlsService")],r.prototype,"ctrlsService",void 0),bS([qi],r.prototype,"init",null),bS([Kr("animationFrameService")],r)}(Zi),IE=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),kA=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},UC="ag-resizer-wrapper",wV='<div class="'+UC+'">\n        <div ref="eTopLeftResizer" class="ag-resizer ag-resizer-topLeft"></div>\n        <div ref="eTopResizer" class="ag-resizer ag-resizer-top"></div>\n        <div ref="eTopRightResizer" class="ag-resizer ag-resizer-topRight"></div>\n        <div ref="eRightResizer" class="ag-resizer ag-resizer-right"></div>\n        <div ref="eBottomRightResizer" class="ag-resizer ag-resizer-bottomRight"></div>\n        <div ref="eBottomResizer" class="ag-resizer ag-resizer-bottom"></div>\n        <div ref="eBottomLeftResizer" class="ag-resizer ag-resizer-bottomLeft"></div>\n        <div ref="eLeftResizer" class="ag-resizer ag-resizer-left"></div>\n    </div>',IA=function(t){function r(e,i){var o=t.call(this)||this;return o.element=e,o.dragStartPosition={x:0,y:0},o.position={x:0,y:0},o.lastSize={width:-1,height:-1},o.positioned=!1,o.resizersAdded=!1,o.resizeListeners=[],o.boundaryEl=null,o.isResizing=!1,o.isMoving=!1,o.resizable={},o.movable=!1,o.currentResizer=null,o.config=Object.assign({},{popup:!1},i),o}return IE(r,t),r.prototype.center=function(){var e=this.offsetParent,i=e.clientHeight,s=e.clientWidth/2-this.getWidth()/2,a=i/2-this.getHeight()/2;this.offsetElement(s,a)},r.prototype.initialisePosition=function(){var e=this.config,i=e.centered,o=e.forcePopupParentAsOffsetParent,s=e.minWidth,a=e.width,l=e.minHeight,c=e.height,d=e.x,f=e.y;this.offsetParent||this.setOffsetParent();var v=0,w=0,x=!!this.element.offsetParent;if(x){var I=this.findBoundaryElement(),M=window.getComputedStyle(I);if(null!=M.minWidth){var F=I.offsetWidth-this.element.offsetWidth;w=parseInt(M.minWidth,10)-F}if(null!=M.minHeight){var re=I.offsetHeight-this.element.offsetHeight;v=parseInt(M.minHeight,10)-re}}if(this.minHeight=l||v,this.minWidth=s||w,a&&this.setWidth(a),c&&this.setHeight(c),(!a||!c)&&this.refreshSize(),i)this.center();else if(d||f)this.offsetElement(d,f);else if(x&&o&&this.boundaryEl){var pe=parseFloat(this.boundaryEl.style.top),we=parseFloat(this.boundaryEl.style.left);this.offsetElement(isNaN(we)?0:we,isNaN(pe)?0:pe)}this.positioned=!!this.offsetParent},r.prototype.isPositioned=function(){return this.positioned},r.prototype.getPosition=function(){return this.position},r.prototype.setMovable=function(e,i){if(this.config.popup&&e!==this.movable){this.movable=e;var o=this.moveElementDragListener||{eElement:i,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};e?(this.dragService.addDragSource(o),this.moveElementDragListener=o):(this.dragService.removeDragSource(o),this.moveElementDragListener=void 0)}},r.prototype.setResizable=function(e){var i=this;if(this.clearResizeListeners(),e?this.addResizers():this.removeResizers(),"boolean"==typeof e){if(!1===e)return;e={topLeft:e,top:e,topRight:e,right:e,bottomRight:e,bottom:e,bottomLeft:e,left:e}}Object.keys(e).forEach(function(o){var a=!!e[o],l=i.getResizerElement(o),c={dragStartPixels:0,eElement:l,onDragStart:function(d){return i.onResizeStart(d,o)},onDragging:i.onResize.bind(i),onDragStop:function(d){return i.onResizeEnd(d,o)}};(!!i.resizable[o]!==a||!i.isAlive()&&!a)&&(a?(i.dragService.addDragSource(c),i.resizeListeners.push(c),l.style.pointerEvents="all"):l.style.pointerEvents="none")})},r.prototype.removeSizeFromEl=function(){this.element.style.removeProperty("height"),this.element.style.removeProperty("width"),this.element.style.removeProperty("flex")},r.prototype.restoreLastSize=function(){this.element.style.flex="0 0 auto";var e=this.lastSize,i=e.height,o=e.width;-1!==o&&(this.element.style.width=o+"px"),-1!==i&&(this.element.style.height=i+"px")},r.prototype.getHeight=function(){return this.element.offsetHeight},r.prototype.setHeight=function(e){var i=this.config.popup,o=this.element,s=!1;if("string"==typeof e&&-1!==e.indexOf("%"))zg(o,e),e=bh(o),s=!0;else if(this.positioned){var a=this.element.getBoundingClientRect(),l=this.offsetParent.getBoundingClientRect();e=Math.max(this.minHeight,e);var c=this.offsetParent.clientHeight,d=i?this.position.y:a.top;c&&e+d>c+(i?0:l.top)&&(e=c-d)}this.getHeight()!==e&&(s?(o.style.maxHeight="unset",o.style.minHeight="unset"):i?zg(o,e):(o.style.height=e+"px",o.style.flex="0 0 auto",this.lastSize.height="number"==typeof e?e:parseFloat(e)))},r.prototype.getWidth=function(){return this.element.offsetWidth},r.prototype.setWidth=function(e){var i=this.element,o=this.config.popup,s=!1;if("string"==typeof e&&-1!==e.indexOf("%"))Km(i,e),e=Jh(i),s=!0;else if(this.positioned){e=Math.max(this.minWidth,e);var a=this.offsetParent.clientWidth,l=o?this.position.x:this.element.getBoundingClientRect().left;a&&e+l>a&&(e=a-l)}this.getWidth()!==e&&(s?(i.style.maxWidth="unset",i.style.minWidth="unset"):this.config.popup?Km(i,e):(i.style.width=e+"px",i.style.flex=" unset",this.lastSize.width="number"==typeof e?e:parseFloat(e)))},r.prototype.offsetElement=function(e,i){void 0===e&&(e=0),void 0===i&&(i=0);var o=this.config.forcePopupParentAsOffsetParent?this.boundaryEl:this.element;this.popupService.positionPopup({ePopup:o,x:e,y:i,keepWithinBounds:!0}),this.setPosition(parseFloat(o.style.left),parseFloat(o.style.top))},r.prototype.setPosition=function(e,i){this.position.x=e,this.position.y=i},r.prototype.updateDragStartPosition=function(e,i){this.dragStartPosition={x:e,y:i}},r.prototype.calculateMouseMovement=function(e){var i=e.e,s=e.isTop,l=e.topBuffer,c=i.clientX-this.dragStartPosition.x,d=i.clientY-this.dragStartPosition.y;return{movementX:this.shouldSkipX(i,!!e.isLeft,!!e.anywhereWithin,c)?0:c,movementY:this.shouldSkipY(i,!!s,l,d)?0:d}},r.prototype.shouldSkipX=function(e,i,o,s){var a=this.element.getBoundingClientRect(),l=this.offsetParent.getBoundingClientRect(),c=this.boundaryEl.getBoundingClientRect(),d=this.config.popup?this.position.x:a.left,f=d<=0&&l.left>=e.clientX||l.right<=e.clientX&&l.right<=c.right;return!!f||(i?s<0&&e.clientX>d+l.left||s>0&&e.clientX<d+l.left:o?s<0&&e.clientX>c.right||s>0&&e.clientX<d+l.left:s<0&&e.clientX>c.right||s>0&&e.clientX<c.right)},r.prototype.shouldSkipY=function(e,i,o,s){void 0===o&&(o=0);var a=this.element.getBoundingClientRect(),l=this.offsetParent.getBoundingClientRect(),c=this.boundaryEl.getBoundingClientRect(),d=this.config.popup?this.position.y:a.top,f=d<=0&&l.top>=e.clientY||l.bottom<=e.clientY&&l.bottom<=c.bottom;return!!f||(i?s<0&&e.clientY>d+l.top+o||s>0&&e.clientY<d+l.top:s<0&&e.clientY>c.bottom||s>0&&e.clientY<c.bottom)},r.prototype.createResizeMap=function(){var e=this.element;this.resizerMap={topLeft:{element:e.querySelector("[ref=eTopLeftResizer]")},top:{element:e.querySelector("[ref=eTopResizer]")},topRight:{element:e.querySelector("[ref=eTopRightResizer]")},right:{element:e.querySelector("[ref=eRightResizer]")},bottomRight:{element:e.querySelector("[ref=eBottomRightResizer]")},bottom:{element:e.querySelector("[ref=eBottomResizer]")},bottomLeft:{element:e.querySelector("[ref=eBottomLeftResizer]")},left:{element:e.querySelector("[ref=eLeftResizer]")}}},r.prototype.addResizers=function(){if(!this.resizersAdded){var e=this.element;if(e){var o=(new DOMParser).parseFromString(wV,"text/html").body;e.appendChild(o.firstChild),this.createResizeMap(),this.resizersAdded=!0}}},r.prototype.removeResizers=function(){this.resizerMap=void 0;var e=this.element.querySelector("."+UC);e&&this.element.removeChild(e),this.resizersAdded=!1},r.prototype.getResizerElement=function(e){return this.resizerMap[e].element},r.prototype.onResizeStart=function(e,i){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.currentResizer={isTop:!!i.match(/top/i),isRight:!!i.match(/right/i),isBottom:!!i.match(/bottom/i),isLeft:!!i.match(/left/i)},this.element.classList.add("ag-resizing"),this.resizerMap[i].element.classList.add("ag-active");var o=this.config;!o.popup&&!o.forcePopupParentAsOffsetParent&&this.applySizeToSiblings(this.currentResizer.isBottom||this.currentResizer.isTop),this.isResizing=!0,this.updateDragStartPosition(e.clientX,e.clientY)},r.prototype.getSiblings=function(){var i=this.element.parentElement;return i?Array.prototype.slice.call(i.children).filter(function(o){return!o.classList.contains("ag-hidden")}):null},r.prototype.getMinSizeOfSiblings=function(){for(var e=this.getSiblings()||[],i=0,o=0,s=0;s<e.length;s++){var a=e[s];if(a!==this.element){var c=this.minHeight||0,d=this.minWidth||0;if(a.style.flex&&"0 0 auto"!==a.style.flex){var f=window.getComputedStyle(a);f.minHeight&&(c=parseInt(f.minHeight,10)),f.minWidth&&(d=parseInt(f.minWidth,10))}else c=a.offsetHeight,d=a.offsetWidth;i+=c,o+=d}}return{height:i,width:o}},r.prototype.applySizeToSiblings=function(e){var i=null,o=this.getSiblings();if(o){for(var s=0;s<o.length;s++){var a=o[s];a!==i&&(e?a.style.height=a.offsetHeight+"px":a.style.width=a.offsetWidth+"px",a.style.flex="0 0 auto",a===this.element&&(i=o[s+1]))}i&&(i.style.removeProperty("height"),i.style.removeProperty("min-height"),i.style.removeProperty("max-height"),i.style.flex="1 1 auto")}},r.prototype.onResize=function(e){if(this.isResizing&&this.currentResizer){var i=this.config,o=i.popup,s=i.forcePopupParentAsOffsetParent,a=this.currentResizer,l=a.isTop,f=a.isLeft,v=a.isRight||f,w=a.isBottom||l,x=this.calculateMouseMovement({e,isLeft:f,isTop:l}),I=x.movementX,M=x.movementY,F=this.position.x,re=this.position.y,pe=0,we=0;if(v&&I){var je=f?-1:1,tt=this.getWidth(),nt=tt+I*je,rt=!1;f&&(F+(pe=tt-nt)<=0||nt<=this.minWidth)&&(rt=!0,pe=0),rt||this.setWidth(nt)}if(w&&M){je=l?-1:1;var lt=this.getHeight(),bt=lt+M*je,Wt=!1;l?(re+(we=lt-bt)<=0||bt<=this.minHeight)&&(Wt=!0,we=0):!this.config.popup&&!this.config.forcePopupParentAsOffsetParent&&lt<bt&&this.getMinSizeOfSiblings().height+bt>this.element.parentElement.offsetHeight&&(Wt=!0),Wt||this.setHeight(bt)}this.updateDragStartPosition(e.clientX,e.clientY),((o||s)&&pe||we)&&this.offsetElement(F+pe,re+we)}},r.prototype.onResizeEnd=function(e,i){this.isResizing=!1,this.currentResizer=null,this.boundaryEl=null;var o={type:"resize",api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()};this.element.classList.remove("ag-resizing"),this.resizerMap[i].element.classList.remove("ag-active"),this.dispatchEvent(o)},r.prototype.refreshSize=function(){var e=this.element;this.config.popup&&(this.config.width||this.setWidth(e.offsetWidth),this.config.height||this.setHeight(e.offsetHeight))},r.prototype.onMoveStart=function(e){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.isMoving=!0,this.element.classList.add("ag-moving"),this.updateDragStartPosition(e.clientX,e.clientY)},r.prototype.onMove=function(e){if(this.isMoving){var a,i=this.position,o=i.x,s=i.y;this.config.calculateTopBuffer&&(a=this.config.calculateTopBuffer());var l=this.calculateMouseMovement({e,isTop:!0,anywhereWithin:!0,topBuffer:a});this.offsetElement(o+l.movementX,s+l.movementY),this.updateDragStartPosition(e.clientX,e.clientY)}},r.prototype.onMoveEnd=function(){this.isMoving=!1,this.boundaryEl=null,this.element.classList.remove("ag-moving")},r.prototype.setOffsetParent=function(){this.offsetParent=this.config.forcePopupParentAsOffsetParent?this.popupService.getPopupParent():this.element.offsetParent},r.prototype.findBoundaryElement=function(){for(var e=this.element;e;){if("static"!==window.getComputedStyle(e).position)return e;e=e.parentElement}return this.element},r.prototype.clearResizeListeners=function(){for(;this.resizeListeners.length;){var e=this.resizeListeners.pop();this.dragService.removeDragSource(e)}},r.prototype.destroy=function(){t.prototype.destroy.call(this),this.moveElementDragListener&&this.dragService.removeDragSource(this.moveElementDragListener),this.clearResizeListeners(),this.removeResizers()},kA([Xe("popupService")],r.prototype,"popupService",void 0),kA([Xe("dragService")],r.prototype,"dragService",void 0),r}(Zi),AA=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),$C=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},X0=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return AA(r,t),r.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(i){e.centerRowContainerCtrl=i.centerRowContainerCtrl})},r.prototype.getPreferredWidthForColumn=function(e,i){var o=this.getHeaderCellForColumn(e);if(!o)return-1;var s=this.rowRenderer.getAllCellsForColumn(e);return i||s.push(o),this.addElementsToContainerAndGetWidth(s)},r.prototype.getPreferredWidthForColumnGroup=function(e){var i=this.getHeaderCellForColumn(e);return i?this.addElementsToContainerAndGetWidth([i]):-1},r.prototype.addElementsToContainerAndGetWidth=function(e){var i=this,o=document.createElement("span");o.style.position="fixed";var s=this.centerRowContainerCtrl.getContainerElement();s.appendChild(o),e.forEach(function(c){return i.cloneItemIntoDummy(c,o)});var a=o.offsetWidth;return s.removeChild(o),a+this.gridOptionsWrapper.getAutoSizePadding()},r.prototype.getHeaderCellForColumn=function(e){var i=null;return this.ctrlsService.getHeaderRowContainerCtrls().forEach(function(o){var s=o.getHtmlElementForColumnHeader(e);null!=s&&(i=s)}),i},r.prototype.cloneItemIntoDummy=function(e,i){var o=e.cloneNode(!0);o.style.width="",o.style.position="static",o.style.left="";var s=document.createElement("div"),a=s.classList;["ag-header-cell","ag-header-group-cell"].some(function(w){return o.classList.contains(w)})?(a.add("ag-header","ag-header-row"),s.style.position="static"):a.add("ag-row");for(var c=e.parentElement;c;){if(["ag-header-row","ag-row"].some(function(w){return c.classList.contains(w)})){for(var f=0;f<c.classList.length;f++){var v=c.classList[f];"ag-row-position-absolute"!=v&&a.add(v)}break}c=c.parentElement}s.appendChild(o),i.appendChild(s)},$C([Xe("rowRenderer")],r.prototype,"rowRenderer",void 0),$C([Xe("ctrlsService")],r.prototype,"ctrlsService",void 0),$C([Xe("rowCssClassCalculator")],r.prototype,"rowCssClassCalculator",void 0),$C([qi],r.prototype,"postConstruct",null),$C([Kr("autoWidthCalculator")],r)}(Zi),CS=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),MA=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},jL=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var o,a,i=e.call(t),s=[];try{for(;(void 0===r||r-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return s},TV=function(t){function r(e,i){var o=t.call(this)||this;return o.createRowCon=e,o.destroyRowCtrls=i,o.stickyRowCtrls=[],o.containerHeight=0,o}return CS(r,t),r.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(i){e.gridBodyCtrl=i.gridBodyCtrl})},r.prototype.getStickyRowCtrls=function(){return this.stickyRowCtrls},r.prototype.checkStickyRows=function(){var e=0;if(this.gridOptionsWrapper.isGroupRowsSticky()){for(var i=[],o=this.rowRenderer.getFirstVisibleVerticalPixel(),s=function(w){i.push(w);for(var x=w;x.expanded;)x=Ja(x.childrenAfterSort);var I=x.rowTop+x.rowHeight,M=o+e+w.rowHeight;w.stickyRowTop=I<M?e+(I-M):e,e=0,i.forEach(function(F){var re=F.stickyRowTop+F.rowHeight;e<re&&(e=re)})};;){var a=o+e,l=this.rowModel.getRowIndexAtPixel(a),c=this.rowModel.getRow(l);if(null==c||c.level<0)break;for(var d=[],f=c.parent;f.level>=0;)d.push(f),f=f.parent;var v=d.reverse().find(function(w){return i.indexOf(w)<0});if(v)s(v);else{if(!(c.group&&c.expanded&&!c.footer&&c.rowTop<a))break;s(c)}}this.refreshNodesAndContainerHeight(i,e)}else this.refreshNodesAndContainerHeight([],e)},r.prototype.refreshNodesAndContainerHeight=function(e,i){var o,s,a,l=this,c=this.stickyRowCtrls.filter(function(M){return-1===e.indexOf(M.getRowNode())}),d=e.filter(function(M){return-1===l.stickyRowCtrls.findIndex(function(F){return F.getRowNode()===M})}),f={};c.forEach(function(M){f[M.getRowNode().id]=M,l.stickyRowCtrls=l.stickyRowCtrls.filter(function(F){return F!==M})});try{for(var v=function(t){var r="function"==typeof Symbol&&Symbol.iterator,e=r&&t[r],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}(Object.values(f)),w=v.next();!w.done;w=v.next())w.value.getRowNode().sticky=!1}catch(M){o={error:M}}finally{try{w&&!w.done&&(s=v.return)&&s.call(v)}finally{if(o)throw o.error}}this.destroyRowCtrls(f,!1);var I=d.map(function(M){return M.sticky=!0,l.createRowCon(M,!1,!1)});(a=this.stickyRowCtrls).push.apply(a,function(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(jL(arguments[r]));return t}(I)),this.stickyRowCtrls.forEach(function(M){return M.setRowTop(M.getRowNode().stickyRowTop)}),this.stickyRowCtrls.sort(function(M,F){return F.getRowNode().rowIndex-M.getRowNode().rowIndex}),this.containerHeight!==i&&(this.containerHeight=i,this.gridBodyCtrl.setStickyTopHeight(i))},MA([Xe("rowModel")],r.prototype,"rowModel",void 0),MA([Xe("rowRenderer")],r.prototype,"rowRenderer",void 0),MA([Xe("ctrlsService")],r.prototype,"ctrlsService",void 0),MA([qi],r.prototype,"postConstruct",null),r}(Zi),wS=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),$f=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},SV=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var o,a,i=e.call(t),s=[];try{for(;(void 0===r||r-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return s},UL=function(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(SV(arguments[r]));return t},xV=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.destroyFuncsForColumnListeners=[],e.rowCtrlsByRowIndex={},e.zombieRowCtrls={},e.allRowCtrls=[],e.topRowCtrls=[],e.bottomRowCtrls=[],e.refreshInProgress=!1,e}return wS(r,t),r.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(){e.gridBodyCtrl=e.ctrlsService.getGridBodyCtrl(),e.initialise()})},r.prototype.initialise=function(){this.addManagedListener(this.eventService,Et.EVENT_PAGINATION_CHANGED,this.onPageLoaded.bind(this)),this.addManagedListener(this.eventService,Et.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,Et.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Et.EVENT_BODY_SCROLL,this.redrawAfterScroll.bind(this)),this.addManagedListener(this.eventService,Et.EVENT_BODY_HEIGHT_CHANGED,this.redrawAfterScroll.bind(this)),this.addManagedListener(this.gridOptionsWrapper,So.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,So.PROP_ROW_CLASS,this.redrawRows.bind(this)),this.addManagedListener(this.eventService,Et.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.gridOptionsWrapper.isGroupRowsSticky()&&(this.stickyRowFeature=this.createManagedBean(new TV(this.createRowCon.bind(this),this.destroyRowCtrls.bind(this)))),this.registerCellEventListeners(),this.initialiseCache(),this.printLayout=this.gridOptionsWrapper.getDomLayout()===Nn.DOM_LAYOUT_PRINT,this.embedFullWidthRows=this.printLayout||this.gridOptionsWrapper.isEmbedFullWidthRows(),this.redrawAfterModelUpdate()},r.prototype.initialiseCache=function(){if(this.gridOptionsWrapper.isKeepDetailRows()){var e=this.gridOptionsWrapper.getKeepDetailRowsCount();this.cachedRowCtrls=new EV(e??3)}},r.prototype.getRowCtrls=function(){return this.allRowCtrls},r.prototype.getStickyTopRowCtrls=function(){return this.stickyRowFeature?this.stickyRowFeature.getStickyRowCtrls():[]},r.prototype.updateAllRowCtrls=function(){var e=ls(this.rowCtrlsByRowIndex);this.gridOptionsWrapper.isEnsureDomOrder()&&e.sort(function(s,a){return s.getRowNode().rowIndex-a.getRowNode.rowIndex});var i=ls(this.zombieRowCtrls),o=this.cachedRowCtrls?this.cachedRowCtrls.getEntries():[];this.allRowCtrls=UL(e,i,o)},r.prototype.registerCellEventListeners=function(){var e=this;this.addManagedListener(this.eventService,Et.EVENT_CELL_FOCUSED,function(o){e.getAllCellCtrls().forEach(function(s){return s.onCellFocused(o)}),e.getFullWidthRowCtrls().forEach(function(s){s.onFullWidthRowFocused(o)})}),this.addManagedListener(this.eventService,Et.EVENT_FLASH_CELLS,function(o){e.getAllCellCtrls().forEach(function(s){return s.onFlashCells(o)})}),this.addManagedListener(this.eventService,Et.EVENT_COLUMN_HOVER_CHANGED,function(){e.getAllCellCtrls().forEach(function(o){return o.onColumnHover()})}),this.addManagedListener(this.eventService,Et.EVENT_DISPLAYED_COLUMNS_CHANGED,function(){e.getAllCellCtrls().forEach(function(o){return o.onDisplayedColumnsChanged()})}),this.addManagedListener(this.eventService,Et.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,function(){e.printLayout&&e.getAllCellCtrls().forEach(function(o){return o.onLeftChanged()})}),this.gridOptionsWrapper.isEnableRangeSelection()&&(this.addManagedListener(this.eventService,Et.EVENT_RANGE_SELECTION_CHANGED,function(){e.getAllCellCtrls().forEach(function(o){return o.onRangeSelectionChanged()})}),this.addManagedListener(this.eventService,Et.EVENT_COLUMN_MOVED,function(){e.getAllCellCtrls().forEach(function(o){return o.updateRangeBordersIfRangeCount()})}),this.addManagedListener(this.eventService,Et.EVENT_COLUMN_PINNED,function(){e.getAllCellCtrls().forEach(function(o){return o.updateRangeBordersIfRangeCount()})}),this.addManagedListener(this.eventService,Et.EVENT_COLUMN_VISIBLE,function(){e.getAllCellCtrls().forEach(function(o){return o.updateRangeBordersIfRangeCount()})})),this.refreshListenersToColumnsForCellComps(),this.addManagedListener(this.eventService,Et.EVENT_GRID_COLUMNS_CHANGED,this.refreshListenersToColumnsForCellComps.bind(this)),this.addDestroyFunc(this.removeGridColumnListeners.bind(this))},r.prototype.removeGridColumnListeners=function(){this.destroyFuncsForColumnListeners.forEach(function(e){return e()}),this.destroyFuncsForColumnListeners.length=0},r.prototype.refreshListenersToColumnsForCellComps=function(){var e=this;this.removeGridColumnListeners();var i=this.columnModel.getAllGridColumns();i&&i.forEach(function(o){var s=function(f){e.getAllCellCtrls().forEach(function(v){v.getColumn()===o&&f(v)})},a=function(){s(function(f){return f.onLeftChanged()})},l=function(){s(function(f){return f.onWidthChanged()})},c=function(){s(function(f){return f.onFirstRightPinnedChanged()})},d=function(){s(function(f){return f.onLastLeftPinnedChanged()})};o.addEventListener(ms.EVENT_LEFT_CHANGED,a),o.addEventListener(ms.EVENT_WIDTH_CHANGED,l),o.addEventListener(ms.EVENT_FIRST_RIGHT_PINNED_CHANGED,c),o.addEventListener(ms.EVENT_LAST_LEFT_PINNED_CHANGED,d),e.destroyFuncsForColumnListeners.push(function(){o.removeEventListener(ms.EVENT_LEFT_CHANGED,a),o.removeEventListener(ms.EVENT_WIDTH_CHANGED,l),o.removeEventListener(ms.EVENT_FIRST_RIGHT_PINNED_CHANGED,c),o.removeEventListener(ms.EVENT_LAST_LEFT_PINNED_CHANGED,d)})})},r.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsWrapper.getDomLayout()===Nn.DOM_LAYOUT_PRINT,i=e||this.gridOptionsWrapper.isEmbedFullWidthRows(),o=i!==this.embedFullWidthRows||this.printLayout!==e;this.printLayout=e,this.embedFullWidthRows=i,o&&this.redrawAfterModelUpdate()},r.prototype.datasourceChanged=function(){this.firstRenderedRow=0,this.lastRenderedRow=-1;var e=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(e)},r.prototype.onPageLoaded=function(e){this.redrawAfterModelUpdate({recycleRows:e.keepRenderedRows,animate:e.animate,newData:e.newData,newPage:e.newPage,onlyBody:!0})},r.prototype.getAllCellsForColumn=function(e){var i=[];return this.getAllRowCtrls().forEach(function(o){var s=o.getCellElement(e);s&&i.push(s)}),i},r.prototype.refreshFloatingRowComps=function(){this.refreshFloatingRows(this.topRowCtrls,this.pinnedRowModel.getPinnedTopRowData()),this.refreshFloatingRows(this.bottomRowCtrls,this.pinnedRowModel.getPinnedBottomRowData())},r.prototype.getTopRowCtrls=function(){return this.topRowCtrls},r.prototype.getBottomRowCtrls=function(){return this.bottomRowCtrls},r.prototype.refreshFloatingRows=function(e,i){var o=this;e.forEach(function(s){s.destroyFirstPass(),s.destroySecondPass()}),e.length=0,i&&i.forEach(function(s){var a=new Y0(s,o.beans,!1,!1,o.printLayout);e.push(a)})},r.prototype.onPinnedRowDataChanged=function(){this.redrawAfterModelUpdate({recycleRows:!0})},r.prototype.getRenderedIndexesForRowNodes=function(e){var i=[];return $o(e)||Vo(this.rowCtrlsByRowIndex,function(o,s){var a=s.getRowNode();e.indexOf(a)>=0&&i.push(o)}),i},r.prototype.redrawRows=function(e){var i=null!=e&&e.length>0;if(i){var o=this.getRenderedIndexesForRowNodes(e);this.removeRowCtrls(o)}this.redrawAfterModelUpdate({recycleRows:i})},r.prototype.getCellToRestoreFocusToAfterRefresh=function(e){var i,o=null!==(i=e)&&void 0!==i&&i.suppressKeepFocus?null:this.focusService.getFocusCellToUseAfterRefresh();if(null==o)return null;var a=this.gridOptionsWrapper.getDocument().activeElement,l=this.gridOptionsWrapper.getDomData(a,B1.DOM_DATA_KEY_CELL_CTRL),c=this.gridOptionsWrapper.getDomData(a,Y0.DOM_DATA_KEY_ROW_CTRL);return l||c?o:null},r.prototype.redrawAfterModelUpdate=function(e){void 0===e&&(e={}),this.getLockOnRefresh();var i=this.getCellToRestoreFocusToAfterRefresh(e);this.updateContainerHeights(),this.scrollToTopIfNewData(e);var o=!this.printLayout&&!!e.recycleRows,s=e.animate&&this.gridOptionsWrapper.isAnimateRows(),a=o?this.recycleRows():null;o||this.removeAllRowComps();var c=function(){if(null==i||null==a)return!1;var d=!1;return Vo(a,function(f,v){var w=v.getRowNode();w.rowIndex==i.rowIndex&&w.rowPinned==i.rowPinned&&(d=!0)}),d}();this.redraw(a,s),this.gridBodyCtrl.updateRowCount(),e.onlyBody||this.refreshFloatingRowComps(),this.dispatchDisplayedRowsChanged(),c||this.restoreFocusedCell(i),this.releaseLockOnRefresh()},r.prototype.scrollToTopIfNewData=function(e){var i=e.newData||e.newPage,o=this.gridOptionsWrapper.isSuppressScrollOnNewData();i&&!o&&this.gridBodyCtrl.getScrollFeature().scrollToTop()},r.prototype.updateContainerHeights=function(){if(this.printLayout)this.rowContainerHeightService.setModelHeight(null);else{var e=this.paginationProxy.getCurrentPageHeight();0===e&&(e=1),this.rowContainerHeightService.setModelHeight(e)}},r.prototype.getLockOnRefresh=function(){if(this.refreshInProgress)throw new Error("AG Grid: cannot get grid to draw rows when it is in the middle of drawing rows. Your code probably called a grid API method while the grid was in the render stage. To overcome this, put the API call into a timeout, e.g. instead of api.redrawRows(), call setTimeout(function() { api.redrawRows(); }, 0). To see what part of your code that caused the refresh check this stacktrace.");this.refreshInProgress=!0},r.prototype.releaseLockOnRefresh=function(){this.refreshInProgress=!1},r.prototype.isRefreshInProgress=function(){return this.refreshInProgress},r.prototype.restoreFocusedCell=function(e){e&&this.focusService.setFocusedCell({rowIndex:e.rowIndex,column:e.column,rowPinned:e.rowPinned,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})},r.prototype.stopEditing=function(e){void 0===e&&(e=!1),this.getAllRowCtrls().forEach(function(i){i.stopEditing(e)})},r.prototype.onNewColumnsLoaded=function(){this.getAllCellCtrls().forEach(function(e){return e.onNewColumnsLoaded()})},r.prototype.getAllCellCtrls=function(){var e=[];return this.getAllRowCtrls().forEach(function(i){return e=e.concat(i.getAllCellCtrls())}),e},r.prototype.getAllRowCtrls=function(){var e=this,i=this.stickyRowFeature&&this.stickyRowFeature.getStickyRowCtrls()||[],o=UL(this.topRowCtrls,this.bottomRowCtrls,i);return Object.keys(this.rowCtrlsByRowIndex).forEach(function(s){return o.push(e.rowCtrlsByRowIndex[s])}),o},r.prototype.addRenderedRowListener=function(e,i,o){var s=this.rowCtrlsByRowIndex[i];s&&s.addEventListener(e,o)},r.prototype.flashCells=function(e){void 0===e&&(e={});var i=e.flashDelay,o=e.fadeDelay;this.getCellCtrls(e.rowNodes,e.columns).forEach(function(s){return s.flashCell({flashDelay:i,fadeDelay:o})})},r.prototype.refreshCells=function(e){void 0===e&&(e={});var i={forceRefresh:e.force,newData:!1,suppressFlash:e.suppressFlash};this.getCellCtrls(e.rowNodes,e.columns).forEach(function(o){if(o.refreshShouldDestroy()){var s=o.getRowCtrl();s&&s.refreshCell(o)}else o.refreshCell(i)}),this.getFullWidthRowCtrls(e.rowNodes).forEach(function(o){o.refreshFullWidth()})},r.prototype.getCellRendererInstances=function(e){return this.getCellCtrls(e.rowNodes,e.columns).map(function(o){return o.getCellRenderer()}).filter(function(o){return null!=o})},r.prototype.getCellEditorInstances=function(e){var i=[];return this.getCellCtrls(e.rowNodes,e.columns).forEach(function(o){var s=o.getCellEditor();s&&i.push(s)}),i},r.prototype.getEditingCells=function(){var e=[];return this.getAllCellCtrls().forEach(function(i){if(i.isEditing()){var o=i.getCellPosition();e.push(o)}}),e},r.prototype.mapRowNodes=function(e){if(e){var i={top:{},bottom:{},normal:{}};return e.forEach(function(o){var s=o.id;o.rowPinned===Nn.PINNED_TOP?i.top[s]=o:o.rowPinned===Nn.PINNED_BOTTOM?i.bottom[s]=o:i.normal[s]=o}),i}},r.prototype.isRowInMap=function(e,i){var o=e.id,s=e.rowPinned;return s===Nn.PINNED_BOTTOM?null!=i.bottom[o]:s===Nn.PINNED_TOP?null!=i.top[o]:null!=i.normal[o]},r.prototype.getCellCtrls=function(e,i){var l,o=this,s=this.mapRowNodes(e),a=[];rr(i)&&(l={},i.forEach(function(d){var f=o.columnModel.getGridColumn(d);rr(f)&&(l[f.getId()]=!0)}));var c=function(d){var f=d.getRowNode();null!=s&&!o.isRowInMap(f,s)||d.getAllCellCtrls().forEach(function(v){var w=v.getColumn().getId();l&&!l[w]||a.push(v)})};return Vo(this.rowCtrlsByRowIndex,function(d,f){c(f)}),this.topRowCtrls&&this.topRowCtrls.forEach(c),this.bottomRowCtrls&&this.bottomRowCtrls.forEach(c),a},r.prototype.destroy=function(){this.removeAllRowComps(),t.prototype.destroy.call(this)},r.prototype.removeAllRowComps=function(){var e=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(e)},r.prototype.recycleRows=function(){var e=[];Vo(this.rowCtrlsByRowIndex,function(o,s){null==s.getRowNode().id&&e.push(o)}),this.removeRowCtrls(e);var i={};return Vo(this.rowCtrlsByRowIndex,function(o,s){var a=s.getRowNode();i[a.id]=s}),this.rowCtrlsByRowIndex={},i},r.prototype.removeRowCtrls=function(e){var i=this;e.forEach(function(o){var s=i.rowCtrlsByRowIndex[o];s&&(s.destroyFirstPass(),s.destroySecondPass()),delete i.rowCtrlsByRowIndex[o]})},r.prototype.redrawAfterScroll=function(){var e;if(this.stickyRowFeature&&N2()&&(e=this.getCellToRestoreFocusToAfterRefresh()||void 0),this.getLockOnRefresh(),this.redraw(null,!1,!0),this.releaseLockOnRefresh(),this.dispatchDisplayedRowsChanged(),null!=e){var i=this.getCellToRestoreFocusToAfterRefresh();null!=e&&null==i&&(this.animationFrameService.flushAllFrames(),this.restoreFocusedCell(e))}},r.prototype.removeRowCompsNotToDraw=function(e){var i={};e.forEach(function(a){return i[a]=!0});var s=Object.keys(this.rowCtrlsByRowIndex).filter(function(a){return!i[a]});this.removeRowCtrls(s)},r.prototype.calculateIndexesToDraw=function(e){var i=this,o=zl(this.firstRenderedRow,this.lastRenderedRow),s=function(a,l){var c=l.getRowNode().rowIndex;null!=c&&(c<i.firstRenderedRow||c>i.lastRenderedRow)&&i.doNotUnVirtualiseRow(l)&&o.push(c)};return Vo(this.rowCtrlsByRowIndex,s),Vo(e,s),o.sort(function(a,l){return a-l}),o=o.filter(function(a){var l=i.paginationProxy.getRow(a);return l&&!l.sticky})},r.prototype.redraw=function(e,i,o){var s=this;void 0===i&&(i=!1),void 0===o&&(o=!1),this.rowContainerHeightService.updateOffset(),this.workOutFirstAndLastRowsToRender(),this.stickyRowFeature&&this.stickyRowFeature.checkStickyRows();var a=this.calculateIndexesToDraw(e);this.removeRowCompsNotToDraw(a),this.printLayout&&(i=!1);var l=[];a.forEach(function(d){var f=s.createOrUpdateRowCtrl(d,e,i,o);rr(f)&&l.push(f)}),e&&(!o||this.gridOptionsWrapper.isSuppressAnimationFrame()||this.printLayout?this.destroyRowCtrls(e,i):this.beans.animationFrameService.addDestroyTask(function(){s.destroyRowCtrls(e,i),s.updateAllRowCtrls(),s.dispatchDisplayedRowsChanged()})),this.updateAllRowCtrls()},r.prototype.dispatchDisplayedRowsChanged=function(){this.eventService.dispatchEvent({type:Et.EVENT_DISPLAYED_ROWS_CHANGED})},r.prototype.onDisplayedColumnsChanged=function(){var e=this.columnModel.isPinningLeft(),i=this.columnModel.isPinningRight();(this.pinningLeft!==e||i!==this.pinningRight)&&(this.pinningLeft=e,this.pinningRight=i,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())},r.prototype.redrawFullWidthEmbeddedRows=function(){var e=[];this.getFullWidthRowCtrls().forEach(function(i){var o=i.getRowNode().rowIndex;e.push(o.toString())}),this.refreshFloatingRowComps(),this.removeRowCtrls(e),this.redrawAfterScroll()},r.prototype.getFullWidthRowCtrls=function(e){var i=this,o=this.mapRowNodes(e);return ls(this.rowCtrlsByRowIndex).filter(function(s){if(!s.isFullWidth())return!1;var a=s.getRowNode();return!(null!=o&&!i.isRowInMap(a,o))})},r.prototype.refreshFullWidthRows=function(e){var i=[],o=!!e,s=o?{}:void 0;o&&s&&e.forEach(function(a){return s[a.id]=!0}),this.getFullWidthRowCtrls().forEach(function(a){var l=a.getRowNode();if((!o||!s||s[l.id]||s[l.level>0&&l.parent?l.parent.id:void 0])&&!a.refreshFullWidth()){var v=a.getRowNode().rowIndex;i.push(v.toString())}}),this.removeRowCtrls(i),this.redrawAfterScroll()},r.prototype.createOrUpdateRowCtrl=function(e,i,o,s){var a,l=this.rowCtrlsByRowIndex[e];if(l||rr(a=this.paginationProxy.getRow(e))&&rr(i)&&i[a.id]&&a.alreadyRendered&&(l=i[a.id],i[a.id]=null),!l){if(a||(a=this.paginationProxy.getRow(e)),!rr(a))return;l=this.createRowCon(a,o,s)}return a&&(a.alreadyRendered=!0),this.rowCtrlsByRowIndex[e]=l,l},r.prototype.destroyRowCtrls=function(e,i){var o=this,s=[];Vo(e,function(a,l){if(l){if(o.cachedRowCtrls&&l.isCacheable())return void o.cachedRowCtrls.addRow(l);l.destroyFirstPass(),i?(o.zombieRowCtrls[l.getInstanceId()]=l,s.push(function(){l.destroySecondPass(),delete o.zombieRowCtrls[l.getInstanceId()]})):l.destroySecondPass()}}),i&&(s.push(function(){o.updateAllRowCtrls(),o.dispatchDisplayedRowsChanged()}),c1(s))},r.prototype.workOutFirstAndLastRowsToRender=function(){var i,o,e=this;if(this.paginationProxy.isRowsToRender())if(this.printLayout)i=this.paginationProxy.getPageFirstRow(),o=this.paginationProxy.getPageLastRow();else{var s=this.gridOptionsWrapper.getRowBufferInPixels(),a=this.ctrlsService.getGridBodyCtrl(),l=this.gridOptionsWrapper.isSuppressRowVirtualisation(),c=!1,d=void 0,f=void 0;do{var v=this.paginationProxy.getPixelOffset(),w=this.paginationProxy.getCurrentPagePixelRange(),x=w.pageFirstPixel,I=w.pageLastPixel,M=this.rowContainerHeightService.getDivStretchOffset(),F=a.getScrollFeature().getVScrollPosition(),re=F.top,pe=F.bottom;l?(d=x+M,f=I+M):(d=Math.max(re+v-s,x)+M,f=Math.min(pe+v+s,I)+M),this.firstVisibleVPixel=Math.max(re+v,x)+M,c=this.ensureAllRowsInRangeHaveHeightsCalculated(d,f)}while(c);var we=this.paginationProxy.getRowIndexAtPixel(d),je=this.paginationProxy.getRowIndexAtPixel(f),tt=this.paginationProxy.getPageFirstRow(),nt=this.paginationProxy.getPageLastRow();we<tt&&(we=tt),je>nt&&(je=nt),i=we,o=je}else i=0,o=-1;var rt=this.gridOptionsWrapper.getDomLayout()===Nn.DOM_LAYOUT_NORMAL,lt=this.gridOptionsWrapper.isSuppressMaxRenderedRowRestriction(),bt=Math.max(this.gridOptionsWrapper.getRowBuffer(),500);if(rt&&!lt&&o-i>bt&&(o=i+bt),(i!==this.firstRenderedRow||o!==this.lastRenderedRow)&&(this.firstRenderedRow=i,this.lastRenderedRow=o,this.eventService.dispatchEvent({type:Et.EVENT_VIEWPORT_CHANGED,firstRow:i,lastRow:o,api:this.gridApi,columnApi:this.columnApi})),this.paginationProxy.isRowsToRender()){var ci={type:Et.EVENT_FIRST_DATA_RENDERED,firstRow:i,lastRow:o,api:this.gridApi,columnApi:this.columnApi};window.setTimeout(function(){return e.eventService.dispatchEventOnce(ci)},50)}},r.prototype.ensureAllRowsInRangeHaveHeightsCalculated=function(e,i){var o=this.paginationProxy.ensureRowHeightsValid(e,i,-1,-1);return o&&this.updateContainerHeights(),o},r.prototype.getFirstVisibleVerticalPixel=function(){return this.firstVisibleVPixel},r.prototype.getFirstVirtualRenderedRow=function(){return this.firstRenderedRow},r.prototype.getLastVirtualRenderedRow=function(){return this.lastRenderedRow},r.prototype.doNotUnVirtualiseRow=function(e){var s=e.getRowNode(),a=this.focusService.isRowNodeFocused(s),l=e.isEditing();return(a||l||s.detail)&&!!this.paginationProxy.isRowPresent(s)||!1},r.prototype.createRowCon=function(e,i,o){var s=this.cachedRowCtrls?this.cachedRowCtrls.getRow(e):null;if(s)return s;var a=this.gridOptionsWrapper.isSuppressAnimationFrame();return new Y0(e,this.beans,i,o&&!a&&!this.printLayout,this.printLayout)},r.prototype.getRenderedNodes=function(){var e=this.rowCtrlsByRowIndex;return Object.keys(e).map(function(i){return e[i].getRowNode()})},r.prototype.getRowByPosition=function(e){var i,o=e.rowIndex;switch(e.rowPinned){case Nn.PINNED_TOP:i=this.topRowCtrls[o];break;case Nn.PINNED_BOTTOM:i=this.bottomRowCtrls[o];break;default:(i=this.rowCtrlsByRowIndex[o])||(i=this.getStickyTopRowCtrls().find(function(s){return s.getRowNode().rowIndex===o})||null)}return i},r.prototype.getRowNode=function(e){switch(e.rowPinned){case Nn.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case Nn.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},r.prototype.isRangeInRenderedViewport=function(e,i){return!(null==e||null==i||i<this.firstRenderedRow||e>this.lastRenderedRow)},$f([Xe("animationFrameService")],r.prototype,"animationFrameService",void 0),$f([Xe("paginationProxy")],r.prototype,"paginationProxy",void 0),$f([Xe("columnModel")],r.prototype,"columnModel",void 0),$f([Xe("pinnedRowModel")],r.prototype,"pinnedRowModel",void 0),$f([Xe("rowModel")],r.prototype,"rowModel",void 0),$f([Xe("focusService")],r.prototype,"focusService",void 0),$f([Xe("columnApi")],r.prototype,"columnApi",void 0),$f([Xe("gridApi")],r.prototype,"gridApi",void 0),$f([Xe("beans")],r.prototype,"beans",void 0),$f([Xe("rowContainerHeightService")],r.prototype,"rowContainerHeightService",void 0),$f([Xe("ctrlsService")],r.prototype,"ctrlsService",void 0),$f([qi],r.prototype,"postConstruct",null),$f([Kr("rowRenderer")],r)}(Zi),EV=function(){function t(r){this.entriesMap={},this.entriesList=[],this.maxCount=r}return t.prototype.addRow=function(r){if(this.entriesMap[r.getRowNode().id]=r,this.entriesList.push(r),r.setCached(!0),this.entriesList.length>this.maxCount){var e=this.entriesList[0];e.destroyFirstPass(),e.destroySecondPass(),this.removeFromCache(e)}},t.prototype.getRow=function(r){if(null==r||null==r.id)return null;var e=this.entriesMap[r.id];return e?(this.removeFromCache(e),e.setCached(!1),e.getRowNode()!=r?null:e):null},t.prototype.removeFromCache=function(r){var e=r.getRowNode().id;delete this.entriesMap[e],Yl(this.entriesList,r)},t.prototype.getEntries=function(){return this.entriesList},t}(),DV=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),$L=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},kV=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return DV(r,t),r.prototype.formatValue=function(e,i,o,s,a){void 0===a&&(a=!0);var c,l=null,d=e.getColDef();if(s?c=s:a&&(c=i&&i.rowPinned&&d.pinnedRowValueFormatter?d.pinnedRowValueFormatter:d.valueFormatter),c){var f={value:o,node:i,data:i?i.data:null,colDef:d,column:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};l=this.expressionService.evaluate(c,f)}else if(d.refData)return d.refData[o]||"";return null==l&&Array.isArray(o)&&(l=o.join(", ")),l},$L([Xe("expressionService")],r.prototype,"expressionService",void 0),$L([Kr("valueFormatterService")],r)}(Zi),ME=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),TS=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},IV=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return ME(r,t),r.prototype.init=function(){this.setPinnedTopRowData(this.gridOptionsWrapper.getPinnedTopRowData()),this.setPinnedBottomRowData(this.gridOptionsWrapper.getPinnedBottomRowData())},r.prototype.isEmpty=function(e){return _c(e===Nn.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows)},r.prototype.isRowsToRender=function(e){return!this.isEmpty(e)},r.prototype.getRowAtPixel=function(e,i){var o=i===Nn.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows;if(_c(o))return 0;for(var s=0;s<o.length;s++){var a=o[s];if(a.rowTop+a.rowHeight-1>=e)return s}return o.length-1},r.prototype.setPinnedTopRowData=function(e){this.pinnedTopRows=this.createNodesFromData(e,!0),this.eventService.dispatchEvent({type:Et.EVENT_PINNED_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi})},r.prototype.setPinnedBottomRowData=function(e){this.pinnedBottomRows=this.createNodesFromData(e,!1),this.eventService.dispatchEvent({type:Et.EVENT_PINNED_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi})},r.prototype.createNodesFromData=function(e,i){var o=this,s=[];if(e){var a=0;e.forEach(function(l,c){var d=new Ta(o.beans);d.data=l,d.id=(i?Ta.ID_PREFIX_TOP_PINNED:Ta.ID_PREFIX_BOTTOM_PINNED)+c,d.rowPinned=i?Nn.PINNED_TOP:Nn.PINNED_BOTTOM,d.setRowTop(a),d.setRowHeight(o.gridOptionsWrapper.getRowHeightForNode(d).height),d.setRowIndex(c),a+=d.rowHeight,s.push(d)})}return s},r.prototype.getPinnedTopRowData=function(){return this.pinnedTopRows},r.prototype.getPinnedBottomRowData=function(){return this.pinnedBottomRows},r.prototype.getPinnedTopTotalHeight=function(){return this.getTotalHeight(this.pinnedTopRows)},r.prototype.getPinnedTopRowCount=function(){return this.pinnedTopRows?this.pinnedTopRows.length:0},r.prototype.getPinnedBottomRowCount=function(){return this.pinnedBottomRows?this.pinnedBottomRows.length:0},r.prototype.getPinnedTopRow=function(e){return this.pinnedTopRows[e]},r.prototype.getPinnedBottomRow=function(e){return this.pinnedBottomRows[e]},r.prototype.forEachPinnedTopRow=function(e){_c(this.pinnedTopRows)||this.pinnedTopRows.forEach(e)},r.prototype.forEachPinnedBottomRow=function(e){_c(this.pinnedBottomRows)||this.pinnedBottomRows.forEach(e)},r.prototype.getPinnedBottomTotalHeight=function(){return this.getTotalHeight(this.pinnedBottomRows)},r.prototype.getTotalHeight=function(e){if(!e||0===e.length)return 0;var i=Ja(e);return i.rowTop+i.rowHeight},TS([Xe("columnApi")],r.prototype,"columnApi",void 0),TS([Xe("gridApi")],r.prototype,"gridApi",void 0),TS([Xe("beans")],r.prototype,"beans",void 0),TS([qi],r.prototype,"init",null),TS([Kr("pinnedRowModel")],r)}(Zi),SS=function(){function t(r,e){this.active=!0,this.nodeIdsToColumns={},this.mapToItems={},this.keepingColumns=r,this.pathRoot={rowNode:e,children:null},this.mapToItems[e.id]=this.pathRoot}return t.prototype.setInactive=function(){this.active=!1},t.prototype.isActive=function(){return this.active},t.prototype.depthFirstSearchChangedPath=function(r,e){if(r.children)for(var i=0;i<r.children.length;i++)this.depthFirstSearchChangedPath(r.children[i],e);e(r.rowNode)},t.prototype.depthFirstSearchEverything=function(r,e,i){if(r.childrenAfterGroup)for(var o=0;o<r.childrenAfterGroup.length;o++){var s=r.childrenAfterGroup[o];s.childrenAfterGroup?this.depthFirstSearchEverything(r.childrenAfterGroup[o],e,i):i&&e(s)}e(r)},t.prototype.forEachChangedNodeDepthFirst=function(r,e){void 0===e&&(e=!1),this.active?this.depthFirstSearchChangedPath(this.pathRoot,r):this.depthFirstSearchEverything(this.pathRoot.rowNode,r,e)},t.prototype.executeFromRootNode=function(r){r(this.pathRoot.rowNode)},t.prototype.createPathItems=function(r){for(var e=r,i=0;!this.mapToItems[e.id];)this.mapToItems[e.id]={rowNode:e,children:null},i++,e=e.parent;return i},t.prototype.populateColumnsMap=function(r,e){var i=this;if(this.keepingColumns&&e)for(var o=r;o;)this.nodeIdsToColumns[o.id]||(this.nodeIdsToColumns[o.id]={}),e.forEach(function(s){return i.nodeIdsToColumns[o.id][s.getId()]=!0}),o=o.parent},t.prototype.linkPathItems=function(r,e){for(var i=r,o=0;o<e;o++){var s=this.mapToItems[i.id],a=this.mapToItems[i.parent.id];a.children||(a.children=[]),a.children.push(s),i=i.parent}},t.prototype.addParentNode=function(r,e){if(r&&!r.isRowPinned()){var i=this.createPathItems(r);this.linkPathItems(r,i),this.populateColumnsMap(r,e)}},t.prototype.canSkip=function(r){return this.active&&!this.mapToItems[r.id]},t.prototype.getValueColumnsForNode=function(r,e){if(!this.keepingColumns)return e;var i=this.nodeIdsToColumns[r.id];return e.filter(function(s){return i[s.getId()]})},t.prototype.getNotValueColumnsForNode=function(r,e){if(!this.keepingColumns)return null;var i=this.nodeIdsToColumns[r.id];return e.filter(function(s){return!i[s.getId()]})},t}(),RA=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),OA=function(t){function r(e){var i=t.call(this)||this;return i.state=r.STATE_WAITING_TO_LOAD,i.version=0,i.id=e,i}return RA(r,t),r.prototype.getId=function(){return this.id},r.prototype.load=function(){this.state=r.STATE_LOADING,this.loadFromDatasource()},r.prototype.getVersion=function(){return this.version},r.prototype.setStateWaitingToLoad=function(){this.version++,this.state=r.STATE_WAITING_TO_LOAD},r.prototype.getState=function(){return this.state},r.prototype.pageLoadFailed=function(e){this.isRequestMostRecentAndLive(e)&&(this.state=r.STATE_FAILED,this.processServerFail()),this.dispatchLoadCompleted(!1)},r.prototype.success=function(e,i){this.successCommon(e,i)},r.prototype.pageLoaded=function(e,i,o){this.successCommon(e,{rowData:i,rowCount:o})},r.prototype.isRequestMostRecentAndLive=function(e){var i=e===this.version,o=this.isAlive();return i&&o},r.prototype.successCommon=function(e,i){this.dispatchLoadCompleted(),this.isRequestMostRecentAndLive(e)&&(this.state=r.STATE_LOADED,this.processServerResult(i))},r.prototype.dispatchLoadCompleted=function(e){void 0===e&&(e=!0),this.dispatchEvent({type:r.EVENT_LOAD_COMPLETE,success:e,block:this})},r.EVENT_LOAD_COMPLETE="loadComplete",r.STATE_WAITING_TO_LOAD="needsLoading",r.STATE_LOADING="loading",r.STATE_LOADED="loaded",r.STATE_FAILED="failed",r}(Zi),AV=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),RE=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},FA=function(t,r){return function(e,i){r(e,i,t)}},WL=function(t){function r(){var i=null!==t&&t.apply(this,arguments)||this;return i.activeBlockLoadsCount=0,i.blocks=[],i.active=!0,i}var e;return AV(r,t),e=r,r.prototype.postConstruct=function(){this.maxConcurrentRequests=this.gridOptionsWrapper.getMaxConcurrentDatasourceRequests();var i=this.gridOptionsWrapper.getBlockLoadDebounceMillis();i&&i>0&&(this.checkBlockToLoadDebounce=ln.debounce(this.performCheckBlocksToLoad.bind(this),i))},r.prototype.setBeans=function(i){this.logger=i.create("RowNodeBlockLoader")},r.prototype.addBlock=function(i){this.blocks.push(i),i.addEventListener(OA.EVENT_LOAD_COMPLETE,this.loadComplete.bind(this)),this.checkBlockToLoad()},r.prototype.removeBlock=function(i){ln.removeFromArray(this.blocks,i)},r.prototype.destroy=function(){t.prototype.destroy.call(this),this.active=!1},r.prototype.loadComplete=function(){this.activeBlockLoadsCount--,this.checkBlockToLoad(),0==this.activeBlockLoadsCount&&this.dispatchEvent({type:e.BLOCK_LOADER_FINISHED_EVENT})},r.prototype.checkBlockToLoad=function(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()},r.prototype.performCheckBlocksToLoad=function(){if(this.active){if(this.printCacheStatus(),null!=this.maxConcurrentRequests&&this.activeBlockLoadsCount>=this.maxConcurrentRequests)return void this.logger.log("checkBlockToLoad: max loads exceeded");var i=void 0!==this.maxConcurrentRequests?this.maxConcurrentRequests-this.activeBlockLoadsCount:void 0,o=this.blocks.filter(function(s){return s.getState()===OA.STATE_WAITING_TO_LOAD}).slice(0,i);this.activeBlockLoadsCount+=o.length,o.forEach(function(s){return s.load()}),this.printCacheStatus()}},r.prototype.getBlockState=function(){var i={};return this.blocks.forEach(function(o){var s=o.getBlockStateJson();i[s.id]=s.state}),i},r.prototype.printCacheStatus=function(){this.logger.isLogging()&&this.logger.log("printCacheStatus: activePageLoadsCount = "+this.activeBlockLoadsCount+", blocks = "+JSON.stringify(this.getBlockState()))},r.prototype.isLoading=function(){return this.activeBlockLoadsCount>0},r.BLOCK_LOADER_FINISHED_EVENT="blockLoaderFinished",RE([qi],r.prototype,"postConstruct",null),RE([FA(0,Hc("loggerFactory"))],r.prototype,"setBeans",null),e=RE([Kr("rowNodeBlockLoader")],r)}(Zi),zL=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),xS=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},MV=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.currentPage=0,e.topDisplayedRowIndex=0,e.bottomDisplayedRowIndex=0,e.pixelOffset=0,e.masterRowCount=0,e}return zL(r,t),r.prototype.postConstruct=function(){this.active=this.gridOptionsWrapper.isPagination(),this.paginateChildRows=this.gridOptionsWrapper.isPaginateChildRows(),this.addManagedListener(this.eventService,Et.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedListener(this.gridOptionsWrapper,"paginationPageSize",this.onPaginationPageSizeChanged.bind(this)),this.onModelUpdated()},r.prototype.ensureRowHeightsValid=function(e,i,o,s){var a=this.rowModel.ensureRowHeightsValid(e,i,this.getPageFirstRow(),this.getPageLastRow());return a&&this.calculatePages(),a},r.prototype.onModelUpdated=function(e){this.calculatePages(),this.eventService.dispatchEvent({type:Et.EVENT_PAGINATION_CHANGED,animate:!!e&&e.animate,newData:!!e&&e.newData,newPage:!!e&&e.newPage,keepRenderedRows:!!e&&e.keepRenderedRows,api:this.gridApi,columnApi:this.columnApi})},r.prototype.onPaginationPageSizeChanged=function(){this.calculatePages(),this.eventService.dispatchEvent({type:Et.EVENT_PAGINATION_CHANGED,animate:!1,newData:!1,newPage:!1,keepRenderedRows:!0,api:this.gridApi,columnApi:this.columnApi})},r.prototype.goToPage=function(e){this.active&&this.currentPage!==e&&(this.currentPage=e,this.onModelUpdated({type:Et.EVENT_MODEL_UPDATED,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!0,api:this.gridApi,columnApi:this.columnApi}))},r.prototype.getPixelOffset=function(){return this.pixelOffset},r.prototype.getRow=function(e){return this.rowModel.getRow(e)},r.prototype.getRowNode=function(e){return this.rowModel.getRowNode(e)},r.prototype.getRowIndexAtPixel=function(e){return this.rowModel.getRowIndexAtPixel(e)},r.prototype.getCurrentPageHeight=function(){return $o(this.topRowBounds)||$o(this.bottomRowBounds)?0:Math.max(this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight-this.topRowBounds.rowTop,0)},r.prototype.getCurrentPagePixelRange=function(){return{pageFirstPixel:this.topRowBounds?this.topRowBounds.rowTop:0,pageLastPixel:this.bottomRowBounds?this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight:0}},r.prototype.isRowPresent=function(e){return!!this.rowModel.isRowPresent(e)&&e.rowIndex>=this.topDisplayedRowIndex&&e.rowIndex<=this.bottomDisplayedRowIndex},r.prototype.isEmpty=function(){return this.rowModel.isEmpty()},r.prototype.isRowsToRender=function(){return this.rowModel.isRowsToRender()},r.prototype.getNodesInRangeForSelection=function(e,i){return this.rowModel.getNodesInRangeForSelection(e,i)},r.prototype.forEachNode=function(e){return this.rowModel.forEachNode(e)},r.prototype.getType=function(){return this.rowModel.getType()},r.prototype.getRowBounds=function(e){var i=this.rowModel.getRowBounds(e);return i.rowIndex=e,i},r.prototype.getPageFirstRow=function(){return this.topRowBounds?this.topRowBounds.rowIndex:-1},r.prototype.getPageLastRow=function(){return this.bottomRowBounds?this.bottomRowBounds.rowIndex:-1},r.prototype.getRowCount=function(){return this.rowModel.getRowCount()},r.prototype.getPageForIndex=function(e){return Math.floor(e/this.pageSize)},r.prototype.goToPageWithIndex=function(e){if(this.active){var i=this.getPageForIndex(e);this.goToPage(i)}},r.prototype.isRowInPage=function(e){return!this.active||this.getPageForIndex(e.rowIndex)===this.currentPage},r.prototype.isLastPageFound=function(){return this.rowModel.isLastRowIndexKnown()},r.prototype.getCurrentPage=function(){return this.currentPage},r.prototype.goToNextPage=function(){this.goToPage(this.currentPage+1)},r.prototype.goToPreviousPage=function(){this.goToPage(this.currentPage-1)},r.prototype.goToFirstPage=function(){this.goToPage(0)},r.prototype.goToLastPage=function(){var e=this.rowModel.getRowCount(),i=Math.floor(e/this.pageSize);this.goToPage(i)},r.prototype.getPageSize=function(){return this.pageSize},r.prototype.getTotalPages=function(){return this.totalPages},r.prototype.setPageSize=function(){this.pageSize=this.gridOptionsWrapper.getPaginationPageSize(),(null==this.pageSize||this.pageSize<1)&&(this.pageSize=100)},r.prototype.calculatePages=function(){this.active?(this.setPageSize(),this.paginateChildRows?this.calculatePagesAllRows():this.calculatePagesMasterRowsOnly()):this.calculatedPagesNotActive(),this.topRowBounds=this.rowModel.getRowBounds(this.topDisplayedRowIndex),this.topRowBounds&&(this.topRowBounds.rowIndex=this.topDisplayedRowIndex),this.bottomRowBounds=this.rowModel.getRowBounds(this.bottomDisplayedRowIndex),this.bottomRowBounds&&(this.bottomRowBounds.rowIndex=this.bottomDisplayedRowIndex),this.setPixelOffset(rr(this.topRowBounds)?this.topRowBounds.rowTop:0)},r.prototype.setPixelOffset=function(e){this.pixelOffset!==e&&(this.pixelOffset=e,this.eventService.dispatchEvent({type:Et.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED}))},r.prototype.setZeroRows=function(){this.masterRowCount=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=-1,this.currentPage=0,this.totalPages=0},r.prototype.calculatePagesMasterRowsOnly=function(){if(this.masterRowCount=this.rowModel.getTopLevelRowCount(),this.masterRowCount<=0)this.setZeroRows();else{var e=this.masterRowCount-1;this.totalPages=Math.floor(e/this.pageSize)+1,this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!Fu(this.currentPage)||this.currentPage<0)&&(this.currentPage=0);var o=this.pageSize*(this.currentPage+1)-1;if(o>e&&(o=e),this.topDisplayedRowIndex=this.rowModel.getTopLevelRowDisplayedIndex(this.pageSize*this.currentPage),o===e)this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1;else{var s=this.rowModel.getTopLevelRowDisplayedIndex(o+1);this.bottomDisplayedRowIndex=s-1}}},r.prototype.getMasterRowCount=function(){return this.masterRowCount},r.prototype.calculatePagesAllRows=function(){if(this.masterRowCount=this.rowModel.getRowCount(),0!==this.masterRowCount){var e=this.masterRowCount-1;this.totalPages=Math.floor(e/this.pageSize)+1,this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!Fu(this.currentPage)||this.currentPage<0)&&(this.currentPage=0),this.topDisplayedRowIndex=this.pageSize*this.currentPage,this.bottomDisplayedRowIndex=this.pageSize*(this.currentPage+1)-1,this.bottomDisplayedRowIndex>e&&(this.bottomDisplayedRowIndex=e)}else this.setZeroRows()},r.prototype.calculatedPagesNotActive=function(){this.pageSize=this.rowModel.getRowCount(),this.totalPages=1,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1},xS([Xe("rowModel")],r.prototype,"rowModel",void 0),xS([Xe("columnApi")],r.prototype,"columnApi",void 0),xS([Xe("gridApi")],r.prototype,"gridApi",void 0),xS([qi],r.prototype,"postConstruct",null),xS([Kr("paginationProxy")],r)}(Zi),RV=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),OE=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},PA=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return RV(r,t),r.prototype.processAllCellClasses=function(e,i,o,s){this.processClassRules(e.cellClassRules,i,o,s),this.processStaticCellClasses(e,i,o)},r.prototype.processClassRules=function(e,i,o,s){if(null!=e){for(var a=Object.keys(e),l={},c={},d=function(w){var M,x=a[w],I=e[x];"string"==typeof I?M=f.expressionService.evaluate(I,i):"function"==typeof I&&(M=I(i)),x.split(" ").forEach(function(F){null==F||""==F.trim()||(M?l[F]=!0:c[F]=!0)})},f=this,v=0;v<a.length;v++)d(v);s&&Object.keys(c).forEach(s),Object.keys(l).forEach(o)}},r.prototype.getStaticCellClasses=function(e,i){var s,o=e.cellClass;return o?("string"==typeof(s="function"==typeof o?o(i):o)&&(s=[s]),s||[]):[]},r.prototype.processStaticCellClasses=function(e,i,o){this.getStaticCellClasses(e,i).forEach(function(a){o(a)})},OE([Xe("expressionService")],r.prototype,"expressionService",void 0),OE([Kr("stylingService")],r)}(Zi),qL=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),LA=function(t){function r(e){return t.call(this,e,"ag-radio-button","radio")||this}return qL(r,t),r.prototype.isSelected=function(){return this.eInput.checked},r.prototype.toggle=function(){this.eInput.disabled||this.isSelected()||this.setValue(!0)},r.prototype.addInputListeners=function(){t.prototype.addInputListeners.call(this),this.addManagedListener(this.eventService,Et.EVENT_CHECKBOX_CHANGED,this.onChange.bind(this))},r.prototype.onChange=function(e){e.selected&&e.name&&this.eInput.name&&this.eInput.name===e.name&&e.id&&this.eInput.id!==e.id&&this.setValue(!1,!0)},r}(W0),NA=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),OV=function(t){function r(e){return t.call(this,e,"ag-toggle-button")||this}return NA(r,t),r.prototype.setValue=function(e,i){return t.prototype.setValue.call(this,e,i),this.addOrRemoveCssClass("ag-selected",this.getValue()),this},r}(W0),FV=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),XL=function(t){function r(e,i,o){return void 0===i&&(i="ag-text-field"),void 0===o&&(o="text"),t.call(this,e,i,o)||this}return FV(r,t),r.prototype.postConstruct=function(){t.prototype.postConstruct.call(this),this.config.allowedCharPattern&&this.preventDisallowedCharacters()},r.prototype.setValue=function(e,i){var o=t.prototype.setValue.call(this,e,i);return this.eInput.value!==e&&(this.eInput.value=rr(e)?e:""),o},r.prototype.preventDisallowedCharacters=function(){var e=new RegExp("["+this.config.allowedCharPattern+"]");this.addManagedListener(this.eInput,"keypress",function(o){o.key&&!e.test(o.key)&&o.preventDefault()}),this.addManagedListener(this.eInput,"paste",function(o){var s,a=null===(s=o.clipboardData)||void 0===s?void 0:s.getData("text");a&&a.split("").some(function(l){return!e.test(l)})&&o.preventDefault()})},r}(T_),PV=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),KL=function(t){function r(e){return t.call(this,e,"ag-text-area",null,"textarea")||this}return PV(r,t),r.prototype.setValue=function(e,i){var o=t.prototype.setValue.call(this,e,i);return this.eInput.value=e,o},r.prototype.setCols=function(e){return this.eInput.cols=e,this},r.prototype.setRows=function(e){return this.eInput.rows=e,this},r}(T_),GA=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),BA=function(t){function r(e){return t.call(this,e,"ag-number-field","number")||this}return GA(r,t),r.prototype.postConstruct=function(){var e=this;t.prototype.postConstruct.call(this),this.addManagedListener(this.eInput,"blur",function(){var i=parseFloat(e.eInput.value),o=isNaN(i)?"":e.normalizeValue(i.toString());e.value!==o&&e.setValue(o)}),this.addManagedListener(this.eInput,"wheel",this.onWheel.bind(this)),this.eInput.step="any"},r.prototype.onWheel=function(e){document.activeElement===this.eInput&&e.preventDefault()},r.prototype.normalizeValue=function(e){if(""===e)return"";this.precision&&(e=this.adjustPrecision(e));var i=parseFloat(e);return null!=this.min&&i<this.min?e=this.min.toString():null!=this.max&&i>this.max&&(e=this.max.toString()),e},r.prototype.adjustPrecision=function(e){if(this.precision){var i=parseFloat(e).toFixed(this.precision);e=parseFloat(i).toString()}return e},r.prototype.setMin=function(e){return this.min===e||(this.min=e,ae(this.eInput,"min",e)),this},r.prototype.setMax=function(e){return this.max===e||(this.max=e,ae(this.eInput,"max",e)),this},r.prototype.setPrecision=function(e){return this.precision=e,this},r.prototype.setStep=function(e){return this.step===e||(this.step=e,ae(this.eInput,"step",e)),this},r.prototype.setValue=function(e,i){return(e=this.adjustPrecision(e))!=this.normalizeValue(e)?this:t.prototype.setValue.call(this,e,i)},r}(XL),QL=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),JL=function(t){function r(e){return t.call(this,e,"ag-range-field","range")||this}return QL(r,t),r.prototype.postConstruct=function(){t.prototype.postConstruct.call(this);var e=this.config,i=e.min,o=e.max,s=e.step;null!=i&&this.setMinValue(i),null!=o&&this.setMaxValue(o),this.setStep(s||1)},r.prototype.addInputListeners=function(){var e=this;this.addManagedListener(this.eInput,"input",function(i){e.setValue(i.target.value)})},r.prototype.setMinValue=function(e){return this.min=e,this.eInput.setAttribute("min",e.toString()),this},r.prototype.setMaxValue=function(e){return this.max=e,this.eInput.setAttribute("max",e.toString()),this},r.prototype.setStep=function(e){return this.eInput.setAttribute("step",e.toString()),this},r.prototype.setValue=function(e,i){null!=this.min&&(e=Math.max(parseFloat(e),this.min).toString()),null!=this.max&&(e=Math.min(parseFloat(e),this.max).toString());var o=t.prototype.setValue.call(this,e,i);return this.eInput.value=e,o},r}(T_),ZL=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),FE=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},e3=function(t){function r(e){var i=t.call(this,e,r.TEMPLATE)||this;return i.labelAlignment="top",i}return ZL(r,t),r.prototype.init=function(){this.eSlider.addCssClass("ag-slider-field")},r.prototype.onValueChange=function(e){var i=this,o=w_.EVENT_CHANGED;return this.addManagedListener(this.eText,o,function(){var s=parseFloat(i.eText.getValue());i.eSlider.setValue(s.toString(),!0),e(s||0)}),this.addManagedListener(this.eSlider,o,function(){var s=i.eSlider.getValue();i.eText.setValue(s,!0),e(parseFloat(s))}),this},r.prototype.setSliderWidth=function(e){return this.eSlider.setWidth(e),this},r.prototype.setTextFieldWidth=function(e){return this.eText.setWidth(e),this},r.prototype.setMinValue=function(e){return this.eSlider.setMinValue(e),this.eText.setMin(e),this},r.prototype.setMaxValue=function(e){return this.eSlider.setMaxValue(e),this.eText.setMax(e),this},r.prototype.getValue=function(){return this.eText.getValue()},r.prototype.setValue=function(e){return this.getValue()===e||(this.eText.setValue(e,!0),this.eSlider.setValue(e,!0),this.dispatchEvent({type:w_.EVENT_CHANGED})),this},r.prototype.setStep=function(e){return this.eSlider.setStep(e),this.eText.setStep(e),this},r.TEMPLATE='<div class="ag-slider">\n            <label ref="eLabel"></label>\n            <div class="ag-wrapper ag-slider-wrapper">\n                <ag-input-range ref="eSlider"></ag-input-range>\n                <ag-input-number-field ref="eText"></ag-input-number-field>\n            </div>\n        </div>',FE([Ti("eLabel")],r.prototype,"eLabel",void 0),FE([Ti("eSlider")],r.prototype,"eSlider",void 0),FE([Ti("eText")],r.prototype,"eText",void 0),FE([qi],r.prototype,"init",null),r}(q2),LV=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),z1=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},t3=function(t){function r(e){var i=t.call(this,e,r.TEMPLATE)||this;return i.radius=0,i.offsetX=0,i.offsetY=0,i}return LV(r,t),r.prototype.postConstruct=function(){var e=this;t.prototype.postConstruct.call(this),this.dragListener={eElement:this.eParentCircle,dragStartPixels:0,onDragStart:function(i){e.parentCircleRect=e.eParentCircle.getBoundingClientRect()},onDragging:function(i){return e.calculateAngleDrag(i)},onDragStop:function(){}},this.dragService.addDragSource(this.dragListener),this.eAngleValue.setLabel("").setLabelWidth(5).setInputWidth(45).setMin(0).setMax(360).setValue(""+this.degrees).onValueChange(function(i){(null==i||""===i)&&(i="0"),i=e.eAngleValue.normalizeValue(i);var o=parseFloat(i);o>180&&(o-=360),e.setValue(o)}),this.updateNumberInput(),rr(this.getValue())&&this.eAngleValue.setValue(this.normalizeNegativeValue(this.getValue()).toString()),this.addManagedListener(this,w_.EVENT_CHANGED,function(){var i=e.gridOptionsWrapper.getDocument();e.eAngleValue.getInputElement().contains(i.activeElement)||e.updateNumberInput()})},r.prototype.updateNumberInput=function(){var e=this.normalizeNegativeValue(this.getValue());this.eAngleValue.setValue(e.toString())},r.prototype.positionChildCircle=function(e){var i=this.parentCircleRect||{width:24,height:24},o=this.eChildCircle,a=i.height/2;o.style.left=i.width/2+8*Math.cos(e)+"px",o.style.top=a+8*Math.sin(e)+"px"},r.prototype.calculatePolar=function(){var e=this.offsetX,i=this.offsetY,o=Math.atan2(i,e);this.degrees=this.toDegrees(o),this.radius=Math.sqrt(e*e+i*i),this.positionChildCircle(o)},r.prototype.calculateCartesian=function(){var e=this.toRadians(this.getValue()),i=this.getRadius();this.setOffsetX(Math.cos(e)*i).setOffsetY(Math.sin(e)*i)},r.prototype.setOffsetX=function(e){return this.offsetX!==e&&(this.offsetX=e,this.calculatePolar()),this},r.prototype.setOffsetY=function(e){return this.offsetY!==e&&(this.offsetY=e,this.calculatePolar()),this},r.prototype.calculateAngleDrag=function(e){var i=this.parentCircleRect,f=Math.atan2(e.clientY-i.top-i.height/2,e.clientX-i.left-i.width/2);this.setValue(f,!0)},r.prototype.toDegrees=function(e){return e/Math.PI*180},r.prototype.toRadians=function(e){return e/180*Math.PI},r.prototype.normalizeNegativeValue=function(e){return e<0?360+e:e},r.prototype.normalizeAngle180=function(e){return(e%=2*Math.PI)<-Math.PI?e+=2*Math.PI:e>=Math.PI&&(e-=2*Math.PI),e},r.prototype.getRadius=function(){return this.radius},r.prototype.setRadius=function(e){return this.radius===e||(this.radius=e,this.calculateCartesian()),this},r.prototype.onValueChange=function(e){var i=this;return this.addManagedListener(this,w_.EVENT_CHANGED,function(){e(i.degrees)}),this},r.prototype.getValue=function(e){return e?this.toRadians(this.degrees):this.degrees},r.prototype.setValue=function(e,i){var o;return o=i?e:this.normalizeAngle180(this.toRadians(e)),e=this.toDegrees(o),this.degrees!==e&&(this.degrees=Math.floor(e),this.calculateCartesian(),this.positionChildCircle(o),this.dispatchEvent({type:w_.EVENT_CHANGED})),this},r.prototype.setWidth=function(e){return Km(this.getGui(),e),this},r.prototype.setDisabled=function(e){return t.prototype.setDisabled.call(this,e),this.eAngleValue.setDisabled(e),this},r.prototype.destroy=function(){this.dragService.removeDragSource(this.dragListener),t.prototype.destroy.call(this)},r.TEMPLATE='<div class="ag-angle-select">\n            <div ref="eLabel"></div>\n            <div class="ag-wrapper ag-angle-select-wrapper">\n                <div ref="eAngleSelectField" class="ag-angle-select-field">\n                    <div ref="eParentCircle" class="ag-angle-select-parent-circle">\n                        <div ref="eChildCircle" class="ag-angle-select-child-circle"></div>\n                    </div>\n                </div>\n                <ag-input-number-field ref="eAngleValue"></ag-input-number-field>\n            </div>\n        </div>',z1([Ti("eLabel")],r.prototype,"eLabel",void 0),z1([Ti("eParentCircle")],r.prototype,"eParentCircle",void 0),z1([Ti("eChildCircle")],r.prototype,"eChildCircle",void 0),z1([Ti("eAngleValue")],r.prototype,"eAngleValue",void 0),z1([Xe("dragService")],r.prototype,"dragService",void 0),r}(q2),n3=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),K0=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},YC=function(t){function r(e){var i=t.call(this,r.TEMPLATE)||this;return i.H=1,i.S=1,i.B=1,i.A=1,i.isSpectrumDragging=!1,i.isSpectrumHueDragging=!1,i.isSpectrumAlphaDragging=!1,i.colorChanged=!1,i.picker=e.picker,i}return n3(r,t),r.prototype.postConstruct=function(){var e=this.getGui();this.initRecentColors(),this.addManagedListener(this.spectrumVal,"mousedown",this.onSpectrumDraggerDown.bind(this)),this.addManagedListener(e,"mousemove",this.onSpectrumDraggerMove.bind(this)),this.addManagedListener(this.spectrumHue,"mousedown",this.onSpectrumHueDown.bind(this)),this.addManagedListener(e,"mousemove",this.onSpectrumHueMove.bind(this)),this.addManagedListener(this.spectrumAlpha,"mousedown",this.onSpectrumAlphaDown.bind(this)),this.addManagedListener(e,"mousemove",this.onSpectrumAlphaMove.bind(this)),this.addManagedListener(document,"mouseup",this.onMouseUp.bind(this)),this.addManagedListener(this.recentColors,"click",this.onRecentColorClick.bind(this))},r.prototype.refreshSpectrumRect=function(){return this.spectrumValRect=this.spectrumVal.getBoundingClientRect()},r.prototype.refreshHueRect=function(){return this.spectrumHueRect=this.spectrumHue.getBoundingClientRect()},r.prototype.refreshAlphaRect=function(){return this.spectrumAlphaRect=this.spectrumAlpha.getBoundingClientRect()},r.prototype.onSpectrumDraggerDown=function(e){this.refreshSpectrumRect(),this.isSpectrumDragging=!0,this.moveDragger(e)},r.prototype.onSpectrumDraggerMove=function(e){this.isSpectrumDragging&&this.moveDragger(e)},r.prototype.onSpectrumHueDown=function(e){this.refreshHueRect(),this.isSpectrumHueDragging=!0,this.moveHueSlider(e)},r.prototype.onSpectrumHueMove=function(e){this.isSpectrumHueDragging&&this.moveHueSlider(e)},r.prototype.onSpectrumAlphaDown=function(e){this.refreshAlphaRect(),this.isSpectrumAlphaDragging=!0,this.moveAlphaSlider(e)},r.prototype.onSpectrumAlphaMove=function(e){this.isSpectrumAlphaDragging&&this.moveAlphaSlider(e)},r.prototype.onMouseUp=function(){this.isSpectrumDragging=!1,this.isSpectrumHueDragging=!1,this.isSpectrumAlphaDragging=!1},r.prototype.moveDragger=function(e){var i=this.spectrumValRect;if(i){var o=e.clientX-i.left,s=e.clientY-i.top;o=Math.max(o,0),o=Math.min(o,i.width),s=Math.max(s,0),s=Math.min(s,i.height),this.setSpectrumValue(o/i.width,1-s/i.height)}},r.prototype.moveHueSlider=function(e){var i=this.spectrumHueRect;if(i){var o=this.spectrumHueSlider,s=o.getBoundingClientRect(),a=e.clientX-i.left;a=Math.max(a,0),a=Math.min(a,i.width),this.H=1-a/i.width,o.style.left=a+s.width/2+"px",this.update()}},r.prototype.moveAlphaSlider=function(e){var i=this.spectrumAlphaRect;if(i){var o=this.spectrumAlphaSlider,s=o.getBoundingClientRect(),a=e.clientX-i.left;a=Math.max(a,0),a=Math.min(a,i.width),this.A=a/i.width,o.style.left=a+s.width/2+"px",this.update()}},r.prototype.update=function(){var e=Zc.fromHSB(360*this.H,this.S,this.B,this.A),i=Zc.fromHSB(360*this.H,1,1),o=e.toRgbaString(),s=this.picker;Zc.fromString(s.getValue()).toRgbaString()!==o&&(this.colorChanged=!0),s.setValue(o),this.spectrumColor.style.backgroundColor=i.toRgbaString(),this.spectrumDragger.style.backgroundColor=o},r.prototype.setSpectrumValue=function(e,i){var o=this.spectrumValRect||this.refreshSpectrumRect();if(o){var s=this.spectrumDragger,a=s.getBoundingClientRect();e=Math.max(0,e),e=Math.min(1,e),i=Math.max(0,i),i=Math.min(1,i),this.S=e,this.B=i,s.style.left=e*o.width-a.width/2+"px",s.style.top=(1-i)*o.height-a.height/2+"px",this.update()}},r.prototype.initRecentColors=function(){var i=r.recentColors.map(function(o,s){return'<div class="ag-recent-color" id='+s+' style="background-color: '+o+'; width: 15px; height: 15px;" recent-color="'+o+'"></div>'});this.recentColors.innerHTML=i.join("")},r.prototype.setValue=function(e){var i=Zc.fromString(e),o=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var o,a,i=e.call(t),s=[];try{for(;(void 0===r||r-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return s}(i.toHSB(),3),s=o[0],a=o[1],l=o[2];this.H=(isNaN(s)?0:s)/360,this.A=i.a;var c=this.spectrumHueRect||this.refreshHueRect(),d=this.spectrumAlphaRect||this.refreshAlphaRect();this.spectrumHueSlider.style.left=(this.H-1)*-c.width+"px",this.spectrumAlphaSlider.style.left=this.A*d.width+"px",this.setSpectrumValue(a,l)},r.prototype.onRecentColorClick=function(e){var i=e.target;if(rr(i.id)){var o=parseInt(i.id,10);this.setValue(r.recentColors[o]),this.destroy()}},r.prototype.addRecentColor=function(){var i=Zc.fromHSB(360*this.H,this.S,this.B,this.A).toRgbaString(),o=r.recentColors;!this.colorChanged||o[0]===i||(o=o.filter(function(s){return s!=i}),(o=[i].concat(o)).length>r.maxRecentColors&&(o=o.slice(0,r.maxRecentColors)),r.recentColors=o)},r.prototype.destroy=function(){this.addRecentColor(),t.prototype.destroy.call(this)},r.maxRecentColors=8,r.recentColors=[],r.TEMPLATE='<div class="ag-color-panel">\n            <div ref="spectrumColor" class="ag-spectrum-color">\n                <div class="ag-spectrum-sat ag-spectrum-fill">\n                    <div ref="spectrumVal" class="ag-spectrum-val ag-spectrum-fill">\n                        <div ref="spectrumDragger" class="ag-spectrum-dragger"></div>\n                    </div>\n                </div>\n            </div>\n            <div class="ag-spectrum-tools">\n                <div ref="spectrumHue" class="ag-spectrum-hue ag-spectrum-tool">\n                    <div class="ag-spectrum-hue-background"></div>\n                    <div ref="spectrumHueSlider" class="ag-spectrum-slider"></div>\n                </div>\n                <div ref="spectrumAlpha" class="ag-spectrum-alpha ag-spectrum-tool">\n                    <div class="ag-spectrum-alpha-background"></div>\n                    <div ref="spectrumAlphaSlider" class="ag-spectrum-slider"></div>\n                </div>\n                <div ref="recentColors" class="ag-recent-colors"></div>\n            </div>\n        </div>',K0([Ti("spectrumColor")],r.prototype,"spectrumColor",void 0),K0([Ti("spectrumVal")],r.prototype,"spectrumVal",void 0),K0([Ti("spectrumDragger")],r.prototype,"spectrumDragger",void 0),K0([Ti("spectrumHue")],r.prototype,"spectrumHue",void 0),K0([Ti("spectrumHueSlider")],r.prototype,"spectrumHueSlider",void 0),K0([Ti("spectrumAlpha")],r.prototype,"spectrumAlpha",void 0),K0([Ti("spectrumAlphaSlider")],r.prototype,"spectrumAlphaSlider",void 0),K0([Ti("recentColors")],r.prototype,"recentColors",void 0),K0([qi],r.prototype,"postConstruct",null),r}(Do),VA=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),WC=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},PE=function(t){function r(e){var i=t.call(this,r.getTemplate(e))||this;return i.closable=!0,i.config=e,i}return VA(r,t),r.getTemplate=function(e){var i=e&&e.cssIdentifier||"default";return'<div class="ag-panel ag-'+i+'-panel" tabindex="-1">\n            <div ref="eTitleBar" class="ag-panel-title-bar ag-'+i+'-panel-title-bar ag-unselectable">\n                <span ref="eTitle" class="ag-panel-title-bar-title ag-'+i+'-panel-title-bar-title"></span>\n                <div ref="eTitleBarButtons" class="ag-panel-title-bar-buttons ag-'+i+'-panel-title-bar-buttons"></div>\n            </div>\n            <div ref="eContentWrapper" class="ag-panel-content-wrapper ag-'+i+'-panel-content-wrapper"></div>\n        </div>'},r.prototype.postConstruct=function(){var e=this,i=this.config,o=i.component,s=i.closable,a=i.hideTitleBar,l=i.title,c=i.minWidth,d=void 0===c?250:c,f=i.width,v=i.minHeight,w=void 0===v?250:v,x=i.height,I=i.centered,M=i.popup,F=i.x,re=i.y;this.positionableFeature=new IA(this.getGui(),{minWidth:d,width:f,minHeight:w,height:x,centered:I,x:F,y:re,popup:M,calculateTopBuffer:function(){return e.positionableFeature.getHeight()-e.getBodyHeight()}}),this.createManagedBean(this.positionableFeature);var pe=this.getGui();o&&this.setBodyComponent(o),a?this.eTitleBar.classList.add("ag-hidden"):(l&&this.setTitle(l),this.setClosable(s??this.closable)),this.addManagedListener(this.eTitleBar,"mousedown",function(we){var je=e.gridOptionsWrapper.getDocument();if(pe.contains(we.relatedTarget)||pe.contains(je.activeElement)||e.eTitleBarButtons.contains(we.target))we.preventDefault();else{var tt=e.eContentWrapper.querySelector("button, [href], input, select, textarea, [tabindex]");tt&&tt.focus()}}),(!M||!this.positionableFeature.isPositioned())&&(this.renderComponent&&this.renderComponent(),this.positionableFeature.initialisePosition(),this.eContentWrapper.style.height="0")},r.prototype.renderComponent=function(){var e=this,i=this.getGui();i.focus(),this.close=function(){i.parentElement.removeChild(i),e.destroy()}},r.prototype.getHeight=function(){return this.positionableFeature.getHeight()},r.prototype.setHeight=function(e){this.positionableFeature.setHeight(e)},r.prototype.getWidth=function(){return this.positionableFeature.getWidth()},r.prototype.setWidth=function(e){this.positionableFeature.setWidth(e)},r.prototype.setClosable=function(e){if(e!==this.closable&&(this.closable=e),e){var i=this.closeButtonComp=new Do(r.CLOSE_BTN_TEMPLATE);this.getContext().createBean(i);var o=i.getGui(),s=Oc("close",this.gridOptionsWrapper);s.classList.add("ag-panel-title-bar-button-icon"),o.appendChild(s),this.addTitleBarButton(i),i.addManagedListener(o,"click",this.onBtClose.bind(this))}else this.closeButtonComp&&((o=this.closeButtonComp.getGui()).parentElement.removeChild(o),this.closeButtonComp=this.destroyBean(this.closeButtonComp))},r.prototype.setBodyComponent=function(e){e.setParentComponent(this),this.eContentWrapper.appendChild(e.getGui())},r.prototype.addTitleBarButton=function(e,i){var o=this.eTitleBarButtons,s=o.children,a=s.length;null==i&&(i=a),i=Math.max(0,Math.min(i,a)),e.addCssClass("ag-panel-title-bar-button");var l=e.getGui();0===i?o.insertAdjacentElement("afterbegin",l):i===a?o.insertAdjacentElement("beforeend",l):s[i-1].insertAdjacentElement("afterend",l),e.setParentComponent(this)},r.prototype.getBodyHeight=function(){return x1(this.eContentWrapper)},r.prototype.getBodyWidth=function(){return Gf(this.eContentWrapper)},r.prototype.setTitle=function(e){this.eTitle.innerText=e},r.prototype.onBtClose=function(){this.close()},r.prototype.destroy=function(){this.closeButtonComp&&(this.closeButtonComp=this.destroyBean(this.closeButtonComp));var e=this.getGui();e&&e.offsetParent&&this.close(),t.prototype.destroy.call(this)},r.CLOSE_BTN_TEMPLATE='<div class="ag-button"></div>',WC([Ti("eContentWrapper")],r.prototype,"eContentWrapper",void 0),WC([Ti("eTitleBar")],r.prototype,"eTitleBar",void 0),WC([Ti("eTitleBarButtons")],r.prototype,"eTitleBarButtons",void 0),WC([Ti("eTitle")],r.prototype,"eTitle",void 0),WC([qi],r.prototype,"postConstruct",null),r}(Do),i3=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),ES=function(){return ES=Object.assign||function(t){for(var r,e=1,i=arguments.length;e<i;e++)for(var o in r=arguments[e])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t},ES.apply(this,arguments)},jA=function(t){function r(e){var i=t.call(this,ES(ES({},e),{popup:!0}))||this;return i.isMaximizable=!1,i.isMaximized=!1,i.maximizeListeners=[],i.resizeListenerDestroy=null,i.lastPosition={x:0,y:0,width:0,height:0},i}return i3(r,t),r.prototype.postConstruct=function(){var e=this,i=this.getGui(),o=this.config,s=o.movable,a=o.resizable,l=o.maximizable;this.addCssClass("ag-dialog"),t.prototype.postConstruct.call(this),this.addManagedListener(i,"focusin",function(c){i.contains(c.relatedTarget)||e.popupService.bringPopupToFront(i)}),s&&this.setMovable(s),l&&this.setMaximizable(l),a&&this.setResizable(a)},r.prototype.renderComponent=function(){var e=this.getGui(),i=this.config,o=i.alwaysOnTop,s=i.modal,a=i.title,l=this.gridOptionsWrapper.getLocaleTextFunc(),c=this.popupService.addPopup({modal:s,eChild:e,closeOnEsc:!0,closedCallback:this.destroy.bind(this),alwaysOnTop:o,ariaLabel:a||l("ariaLabelDialog","Dialog")});c&&(this.close=c.hideFunc)},r.prototype.toggleMaximize=function(){var e=this.positionableFeature.getPosition();if(this.isMaximized){var i=this.lastPosition,o=i.x,s=i.y,l=i.height;this.setWidth(i.width),this.setHeight(l),this.positionableFeature.offsetElement(o,s)}else this.lastPosition.width=this.getWidth(),this.lastPosition.height=this.getHeight(),this.lastPosition.x=e.x,this.lastPosition.y=e.y,this.positionableFeature.offsetElement(0,0),this.setHeight("100%"),this.setWidth("100%");this.isMaximized=!this.isMaximized,this.refreshMaximizeIcon()},r.prototype.refreshMaximizeIcon=function(){Pl(this.maximizeIcon,!this.isMaximized),Pl(this.minimizeIcon,this.isMaximized)},r.prototype.clearMaximizebleListeners=function(){this.maximizeListeners.length&&(this.maximizeListeners.forEach(function(e){return e()}),this.maximizeListeners.length=0),this.resizeListenerDestroy&&(this.resizeListenerDestroy(),this.resizeListenerDestroy=null)},r.prototype.destroy=function(){this.maximizeButtonComp=this.destroyBean(this.maximizeButtonComp),this.clearMaximizebleListeners(),t.prototype.destroy.call(this)},r.prototype.setResizable=function(e){this.positionableFeature.setResizable(e)},r.prototype.setMovable=function(e){this.positionableFeature.setMovable(e,this.eTitleBar)},r.prototype.setMaximizable=function(e){var i=this;if(!e)return this.clearMaximizebleListeners(),void(this.maximizeButtonComp&&(this.destroyBean(this.maximizeButtonComp),this.maximizeButtonComp=this.maximizeIcon=this.minimizeIcon=void 0));var o=this.eTitleBar;if(o&&e!==this.isMaximizable){var s=this.maximizeButtonComp=this.createBean(new Do('<div class="ag-dialog-button"></span>')),a=s.getGui();a.appendChild(this.maximizeIcon=Oc("maximize",this.gridOptionsWrapper)),this.maximizeIcon.classList.add("ag-panel-title-bar-button-icon"),a.appendChild(this.minimizeIcon=Oc("minimize",this.gridOptionsWrapper)),this.minimizeIcon.classList.add("ag-panel-title-bar-button-icon","ag-hidden"),s.addManagedListener(a,"click",this.toggleMaximize.bind(this)),this.addTitleBarButton(s,0),this.maximizeListeners.push(this.addManagedListener(o,"dblclick",this.toggleMaximize.bind(this))),this.resizeListenerDestroy=this.addManagedListener(this,"resize",function(){i.isMaximized=!1,i.refreshMaximizeIcon()})}},function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);o>3&&s&&Object.defineProperty(r,e,s)}([Xe("popupService")],r.prototype,"popupService",void 0),r}(PE),NV=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),o3=function(t){function r(e){var i=t.call(this,e,"ag-color-picker","colorPicker")||this;return e&&e.color&&(i.value=e.color),i}return NV(r,t),r.prototype.postConstruct=function(){t.prototype.postConstruct.call(this),this.value&&this.setValue(this.value)},r.prototype.showPicker=function(){var e=this,i=this.getGui().getBoundingClientRect(),o=this.createBean(new jA({closable:!1,modal:!0,hideTitleBar:!0,minWidth:190,width:190,height:250,x:i.right-190,y:i.top-250}));this.isPickerDisplayed=!0,o.addCssClass("ag-color-dialog"),Yr(this.eWrapper,!0);var s=this.createBean(new YC({picker:this}));return s.addDestroyFunc(function(){o.isAlive()&&e.destroyBean(o)}),o.setParentComponent(this),o.setBodyComponent(s),s.setValue(this.getValue()),o.addDestroyFunc(function(){e.isDestroyingPicker?e.isDestroyingPicker=!1:(e.isDestroyingPicker=!0,s.isAlive()&&e.destroyBean(s)),e.isAlive()&&(Yr(e.eWrapper,!1),e.getFocusableElement().focus()),e.isPickerDisplayed=!1}),o},r.prototype.setValue=function(e){return this.value===e?this:(this.eDisplayField.style.backgroundColor=e,t.prototype.setValue.call(this,e))},r.prototype.getValue=function(){return this.value},r}(EP),GV=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Q0=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},s3=function(t){function r(e){void 0===e&&(e={});var i=t.call(this,r.getTemplate(e))||this;i.suppressEnabledCheckbox=!0,i.suppressOpenCloseIcons=!1;var s=e.enabled,a=e.items,l=e.suppressEnabledCheckbox,c=e.suppressOpenCloseIcons;return i.title=e.title,i.cssIdentifier=e.cssIdentifier||"default",i.enabled=s??!0,i.items=a||[],i.alignItems=e.alignItems||"center",null!=l&&(i.suppressEnabledCheckbox=l),null!=c&&(i.suppressOpenCloseIcons=c),i}return GV(r,t),r.getTemplate=function(e){var i=e.cssIdentifier||"default";return'<div class="ag-group ag-'+i+'-group" role="presentation">\n            <div class="ag-group-title-bar ag-'+i+'-group-title-bar ag-unselectable" ref="eTitleBar" role="button">\n                <span class="ag-group-title-bar-icon ag-'+i+'-group-title-bar-icon" ref="eGroupOpenedIcon" role="presentation"></span>\n                <span class="ag-group-title-bar-icon ag-'+i+'-group-title-bar-icon" ref="eGroupClosedIcon" role="presentation"></span>\n                <span ref="eTitle" class="ag-group-title ag-'+i+'-group-title"></span>\n            </div>\n            <div ref="eToolbar" class="ag-group-toolbar ag-'+i+'-group-toolbar">\n                <ag-checkbox ref="cbGroupEnabled"></ag-checkbox>\n            </div>\n            <div ref="eContainer" class="ag-group-container ag-group-container-'+(e.direction||"vertical")+" ag-"+i+'-group-container"></div>\n        </div>'},r.prototype.postConstruct=function(){if(this.items.length){var e=this.items;this.items=[],this.addItems(e)}var i=this.gridOptionsWrapper.getLocaleTextFunc();this.cbGroupEnabled.setLabel(i("enabled","Enabled")),this.title&&this.setTitle(this.title),this.enabled&&this.setEnabled(this.enabled),this.setAlignItems(this.alignItems),this.hideEnabledCheckbox(this.suppressEnabledCheckbox),this.hideOpenCloseIcons(this.suppressOpenCloseIcons),this.setupExpandContract(),this.refreshAriaStatus(),this.refreshChildDisplay()},r.prototype.setupExpandContract=function(){var e=this;this.eGroupClosedIcon.appendChild(Pu("columnSelectClosed",this.gridOptionsWrapper,null)),this.eGroupOpenedIcon.appendChild(Pu("columnSelectOpen",this.gridOptionsWrapper,null)),this.addManagedListener(this.eTitleBar,"click",function(){return e.toggleGroupExpand()}),this.addManagedListener(this.eTitleBar,"keydown",function(i){switch(i.key){case gi.ENTER:case gi.SPACE:i.preventDefault(),e.toggleGroupExpand();break;case gi.RIGHT:case gi.LEFT:i.preventDefault(),e.toggleGroupExpand(i.key===gi.RIGHT)}})},r.prototype.refreshAriaStatus=function(){this.suppressOpenCloseIcons||Yr(this.eTitleBar,this.expanded)},r.prototype.refreshChildDisplay=function(){var e=!this.suppressOpenCloseIcons;Pl(this.eToolbar,this.expanded&&!this.suppressEnabledCheckbox),Pl(this.eGroupOpenedIcon,e&&this.expanded),Pl(this.eGroupClosedIcon,e&&!this.expanded)},r.prototype.isExpanded=function(){return this.expanded},r.prototype.setAlignItems=function(e){return this.alignItems!==e&&this.removeCssClass("ag-group-item-alignment-"+this.alignItems),this.alignItems=e,this.addCssClass("ag-group-item-alignment-"+this.alignItems),this},r.prototype.toggleGroupExpand=function(e){return this.suppressOpenCloseIcons?(this.expanded=!0,this.refreshChildDisplay(),Pl(this.eContainer,!0),this):(this.expanded===(e=e??!this.expanded)||(this.expanded=e,this.refreshAriaStatus(),this.refreshChildDisplay(),Pl(this.eContainer,e),this.dispatchEvent({type:this.expanded?r.EVENT_EXPANDED:r.EVENT_COLLAPSED})),this)},r.prototype.addItems=function(e){var i=this;e.forEach(function(o){return i.addItem(o)})},r.prototype.addItem=function(e){var i=this.eContainer,o=e instanceof Do?e.getGui():e;o.classList.add("ag-group-item","ag-"+this.cssIdentifier+"-group-item"),i.appendChild(o),this.items.push(o)},r.prototype.hideItem=function(e,i){this.items[i].classList.toggle("ag-hidden",e)},r.prototype.setTitle=function(e){return this.eTitle.innerText=e,this},r.prototype.addCssClassToTitleBar=function(e){this.eTitleBar.classList.add(e)},r.prototype.setEnabled=function(e,i){return this.enabled=e,this.refreshDisabledStyles(),this.toggleGroupExpand(e),i||this.cbGroupEnabled.setValue(e),this},r.prototype.isEnabled=function(){return this.enabled},r.prototype.onEnableChange=function(e){var i=this;return this.cbGroupEnabled.onValueChange(function(o){i.setEnabled(o,!0),e(o)}),this},r.prototype.hideEnabledCheckbox=function(e){return this.suppressEnabledCheckbox=e,this.refreshChildDisplay(),this.refreshDisabledStyles(),this},r.prototype.hideOpenCloseIcons=function(e){return this.suppressOpenCloseIcons=e,e&&this.toggleGroupExpand(!0),this},r.prototype.refreshDisabledStyles=function(){this.addOrRemoveCssClass("ag-disabled",!this.enabled),this.suppressEnabledCheckbox&&!this.enabled?(this.eTitleBar.classList.add("ag-disabled-group-title-bar"),this.eTitleBar.removeAttribute("tabindex")):(this.eTitleBar.classList.remove("ag-disabled-group-title-bar"),this.eTitleBar.setAttribute("tabindex","0")),this.eContainer.classList.toggle("ag-disabled-group-container",!this.enabled)},r.EVENT_EXPANDED="expanded",r.EVENT_COLLAPSED="collapsed",Q0([Ti("eTitleBar")],r.prototype,"eTitleBar",void 0),Q0([Ti("eGroupOpenedIcon")],r.prototype,"eGroupOpenedIcon",void 0),Q0([Ti("eGroupClosedIcon")],r.prototype,"eGroupClosedIcon",void 0),Q0([Ti("eToolbar")],r.prototype,"eToolbar",void 0),Q0([Ti("cbGroupEnabled")],r.prototype,"cbGroupEnabled",void 0),Q0([Ti("eTitle")],r.prototype,"eTitle",void 0),Q0([Ti("eContainer")],r.prototype,"eContainer",void 0),Q0([qi],r.prototype,"postConstruct",null),r}(Do),a3=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),l3=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},BV=function(t){function r(e){var i=t.call(this)||this;i.skipTabGuardFocus=!1;var s=e.eTopGuard,a=e.eBottomGuard,l=e.focusInnerElement,c=e.onFocusIn,d=e.onFocusOut,f=e.shouldStopEventPropagation,v=e.onTabKeyDown,w=e.handleKeyDown,x=e.eFocusableElement;return i.comp=e.comp,i.eTopGuard=s,i.eBottomGuard=a,i.providedFocusInnerElement=l,i.eFocusableElement=x,i.providedFocusIn=c,i.providedFocusOut=d,i.providedShouldStopEventPropagation=f,i.providedOnTabKeyDown=v,i.providedHandleKeyDown=w,i}return a3(r,t),r.prototype.postConstruct=function(){var e=this;this.createManagedBean(new xd(this.eFocusableElement,{shouldStopEventPropagation:function(){return e.shouldStopEventPropagation()},onTabKeyDown:function(i){return e.onTabKeyDown(i)},handleKeyDown:function(i){return e.handleKeyDown(i)},onFocusIn:function(i){return e.onFocusIn(i)},onFocusOut:function(i){return e.onFocusOut(i)}})),this.activateTabGuards(),[this.eTopGuard,this.eBottomGuard].forEach(function(i){return e.addManagedListener(i,"focus",e.onFocus.bind(e))})},r.prototype.handleKeyDown=function(e){this.providedHandleKeyDown&&this.providedHandleKeyDown(e)},r.prototype.tabGuardsAreActive=function(){return!!this.eTopGuard&&this.eTopGuard.hasAttribute("tabIndex")},r.prototype.shouldStopEventPropagation=function(){return!!this.providedShouldStopEventPropagation&&this.providedShouldStopEventPropagation()},r.prototype.activateTabGuards=function(){this.comp.setTabIndex(this.getGridTabIndex())},r.prototype.deactivateTabGuards=function(){this.comp.setTabIndex()},r.prototype.onFocus=function(e){if(this.skipTabGuardFocus)this.skipTabGuardFocus=!1;else{var i=e.target===this.eBottomGuard;this.providedFocusInnerElement?this.providedFocusInnerElement(i):this.focusInnerElement(i)}},r.prototype.onFocusIn=function(e){this.providedFocusIn&&this.providedFocusIn(e)||this.deactivateTabGuards()},r.prototype.onFocusOut=function(e){this.providedFocusOut&&this.providedFocusOut(e)||this.eFocusableElement.contains(e.relatedTarget)||this.activateTabGuards()},r.prototype.onTabKeyDown=function(e){var i=this;if(this.providedOnTabKeyDown)this.providedOnTabKeyDown(e);else if(!e.defaultPrevented){var o=this.tabGuardsAreActive();o&&this.deactivateTabGuards();var s=this.getNextFocusableElement(e.shiftKey);o&&setTimeout(function(){return i.activateTabGuards()},0),s&&(s.focus(),e.preventDefault())}},r.prototype.getGridTabIndex=function(){return this.gridOptionsWrapper.getGridTabIndex()},r.prototype.focusInnerElement=function(e){void 0===e&&(e=!1);var i=this.focusService.findFocusableElements(this.eFocusableElement);this.tabGuardsAreActive()&&(i.splice(0,1),i.splice(i.length-1,1)),i.length&&i[e?i.length-1:0].focus()},r.prototype.getNextFocusableElement=function(e){return this.focusService.findNextFocusableElement(this.eFocusableElement,!1,e)},r.prototype.forceFocusOutOfContainer=function(e){void 0===e&&(e=!1);var i=e?this.eTopGuard:this.eBottomGuard;this.activateTabGuards(),this.skipTabGuardFocus=!0,i.focus()},l3([Xe("focusService")],r.prototype,"focusService",void 0),l3([qi],r.prototype,"postConstruct",null),r}(Zi),IK=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),c3=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var o,a,i=e.call(t),s=[];try{for(;(void 0===r||r-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return s},zC=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return IK(r,t),r.prototype.initialiseTabGuard=function(e){this.eTopGuard=this.createTabGuard("top"),this.eBottomGuard=this.createTabGuard("bottom"),this.eFocusableElement=this.getFocusableElement();var i=[this.eTopGuard,this.eBottomGuard],o={setTabIndex:function(s){i.forEach(function(a){return null!=s?a.setAttribute("tabIndex",s):a.removeAttribute("tabIndex")})}};this.addTabGuards(this.eTopGuard,this.eBottomGuard),this.tabGuardCtrl=this.createManagedBean(new BV({comp:o,eTopGuard:this.eTopGuard,eBottomGuard:this.eBottomGuard,eFocusableElement:this.eFocusableElement,onFocusIn:e.onFocusIn,onFocusOut:e.onFocusOut,focusInnerElement:e.focusInnerElement,handleKeyDown:e.handleKeyDown,onTabKeyDown:e.onTabKeyDown,shouldStopEventPropagation:e.shouldStopEventPropagation}))},r.prototype.createTabGuard=function(e){var i=document.createElement("div");return i.classList.add("ag-tab-guard","ag-tab-guard-"+e),Qn(i,"presentation"),i},r.prototype.addTabGuards=function(e,i){this.eFocusableElement.insertAdjacentElement("afterbegin",e),this.eFocusableElement.insertAdjacentElement("beforeend",i)},r.prototype.removeAllChildrenExceptTabGuards=function(){var e=[this.eTopGuard,this.eBottomGuard];eu(this.getFocusableElement()),this.addTabGuards.apply(this,function(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(c3(arguments[r]));return t}(e))},r.prototype.forceFocusOutOfContainer=function(e){void 0===e&&(e=!1),this.tabGuardCtrl.forceFocusOutOfContainer(e)},r.prototype.appendChild=function(e,i){R0(e)||(e=e.getGui());var o=this.eBottomGuard;o?o.insertAdjacentElement("beforebegin",e):t.prototype.appendChild.call(this,e,i)},r}(Do),VV=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),LE=function(){return LE=Object.assign||function(t){for(var r,e=1,i=arguments.length;e<i;e++)for(var o in r=arguments[e])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t},LE.apply(this,arguments)},jV=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},HA=function(t){function r(e){void 0===e&&(e=1);var i=t.call(this,'<div class="ag-menu-list" role="tree"></div>')||this;return i.level=e,i.menuItems=[],i}return VV(r,t),r.prototype.postConstruct=function(){var e=this;this.initialiseTabGuard({onTabKeyDown:function(i){return e.onTabKeyDown(i)},handleKeyDown:function(i){return e.handleKeyDown(i)}})},r.prototype.onTabKeyDown=function(e){var i=this.getParentComponent(),o=i&&i.getGui();o&&o.classList.contains("ag-focus-managed")||e.preventDefault(),e.shiftKey&&this.closeIfIsChild(e)},r.prototype.handleKeyDown=function(e){switch(e.key){case gi.UP:case gi.RIGHT:case gi.DOWN:case gi.LEFT:e.preventDefault(),this.handleNavKey(e.key);break;case gi.ESCAPE:var i=this.findTopMenu();i&&this.focusService.focusInto(i.getGui())}},r.prototype.clearActiveItem=function(){this.activeMenuItem&&(this.activeMenuItem.deactivate(),this.activeMenuItem=null)},r.prototype.addMenuItems=function(e){var i=this;e?.forEach(function(o){"separator"===o?i.addSeparator():"string"==typeof o?console.warn("AG Grid: unrecognised menu item "+o):i.addItem(o)})},r.prototype.addItem=function(e){var i=this,o=this.createManagedBean(new sf(LE(LE({},e),{isAnotherSubMenuOpen:function(){return i.menuItems.some(function(s){return s.isSubMenuOpen()})}})));o.setParentComponent(this),ar(o.getGui(),this.level),this.menuItems.push(o),this.appendChild(o.getGui()),this.addManagedListener(o,sf.EVENT_MENU_ITEM_SELECTED,function(s){i.dispatchEvent(s)}),this.addManagedListener(o,sf.EVENT_MENU_ITEM_ACTIVATED,function(s){i.activeMenuItem&&i.activeMenuItem!==s.menuItem&&i.activeMenuItem.deactivate(),i.activeMenuItem=s.menuItem})},r.prototype.activateFirstItem=function(){var e=this.menuItems.filter(function(i){return!i.isDisabled()})[0];e&&e.activate()},r.prototype.addSeparator=function(){this.appendChild(Su('\n            <div class="ag-menu-separator" aria-hidden="true">\n                <div class="ag-menu-separator-part"></div>\n                <div class="ag-menu-separator-part"></div>\n                <div class="ag-menu-separator-part"></div>\n                <div class="ag-menu-separator-part"></div>\n            </div>'))},r.prototype.findTopMenu=function(){var e=this.getParentComponent();if(!e&&this instanceof r)return this;for(;;){var i=e&&e.getParentComponent&&e.getParentComponent();if(!i||!(i instanceof r||i instanceof sf))break;e=i}return e instanceof r?e:void 0},r.prototype.handleNavKey=function(e){switch(e){case gi.UP:case gi.DOWN:var i=this.findNextItem(e===gi.UP);return void(i&&i!==this.activeMenuItem&&i.activate())}e===(this.gridOptionsWrapper.isEnableRtl()?gi.RIGHT:gi.LEFT)?this.closeIfIsChild():this.openChild()},r.prototype.closeIfIsChild=function(e){var i=this.getParentComponent();i&&i instanceof sf&&(e&&e.preventDefault(),i.closeSubMenu(),i.getGui().focus())},r.prototype.openChild=function(){this.activeMenuItem&&this.activeMenuItem.openSubMenu(!0)},r.prototype.findNextItem=function(e){var i=this.menuItems.filter(function(c){return!c.isDisabled()});if(i.length){if(!this.activeMenuItem)return e?Ja(i):i[0];e&&i.reverse();for(var o,s=!1,a=0;a<i.length;a++){var l=i[a];if(s){o=l;break}l===this.activeMenuItem&&(s=!0)}return o||this.activeMenuItem}},r.prototype.destroy=function(){this.clearActiveItem(),t.prototype.destroy.call(this)},jV([Xe("focusService")],r.prototype,"focusService",void 0),jV([qi],r.prototype,"postConstruct",null),r}(zC),AK=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),RK=function(t){function r(e){var i=t.call(this)||this;return i.wrappedComponent=e,i.setTemplateFromElement(e.getGui()),i}return AK(r,t),r.prototype.postConstruct=function(){var e=this;this.initialiseTabGuard({onTabKeyDown:function(i){return e.onTabKeyDown(i)},handleKeyDown:function(i){return e.handleKeyDown(i)}})},r.prototype.handleKeyDown=function(e){e.key===gi.ESCAPE&&this.closePanel()},r.prototype.onTabKeyDown=function(e){e.defaultPrevented||(this.closePanel(),e.preventDefault())},r.prototype.closePanel=function(){var e=this.parentComponent;e.closeSubMenu(),setTimeout(function(){return e.getGui().focus()},0)},function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);o>3&&s&&Object.defineProperty(r,e,s)}([qi],r.prototype,"postConstruct",null),r}(zC),OK=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),d3=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},sf=function(t){function r(e){var i=t.call(this)||this;return i.params=e,i.isActive=!1,i.subMenuIsOpen=!1,i.setTemplate('<div class="'+i.getClassName()+'" tabindex="-1" role="treeitem"></div>'),i}return OK(r,t),r.prototype.init=function(){var e=this;this.addIcon(),this.addName(),this.addShortcut(),this.addSubMenu(),this.addTooltip();var i=this.getGui();this.params.disabled?(this.addCssClass(this.getClassName("disabled")),wo(i,!0)):(this.addGuiEventListener("click",function(o){return e.onItemSelected(o)}),this.addGuiEventListener("keydown",function(o){(o.key===gi.ENTER||o.key===gi.SPACE)&&(o.preventDefault(),e.onItemSelected(o))}),this.addGuiEventListener("mousedown",function(o){o.stopPropagation(),o.preventDefault()}),this.addGuiEventListener("mouseenter",function(){return e.onMouseEnter()}),this.addGuiEventListener("mouseleave",function(){return e.onMouseLeave()})),this.params.cssClasses&&this.params.cssClasses.forEach(function(o){return e.addCssClass(o)})},r.prototype.isDisabled=function(){return!!this.params.disabled},r.prototype.openSubMenu=function(e){var i=this;if(void 0===e&&(e=!1),this.closeSubMenu(),this.params.subMenu){var s,o=Su('<div class="ag-menu" role="presentation"></div>');if(this.params.subMenu instanceof Array){var a=Xn(this.getGui()),l=isNaN(a)?1:a+1,c=this.createBean(new HA(l));c.setParentComponent(this),c.addMenuItems(this.params.subMenu),o.appendChild(c.getGui()),this.addManagedListener(c,r.EVENT_MENU_ITEM_SELECTED,function(pe){return i.dispatchEvent(pe)}),c.addGuiEventListener("mouseenter",function(){return i.cancelDeactivate()}),s=function(){return i.destroyBean(c)},e&&setTimeout(function(){return c.activateFirstItem()},0)}else{var d=this.params.subMenu,f=this.createBean(new RK(d));f.setParentComponent(this);var v=f.getGui(),w="mouseenter",x=function(){return i.cancelDeactivate()};v.addEventListener(w,x),s=function(){return v.removeEventListener(w,x)},o.appendChild(v),d.afterGuiAttached&&setTimeout(function(){return d.afterGuiAttached()},0)}var I=this.getGui(),M=this.popupService.positionPopupForMenu.bind(this.popupService,{eventSource:I,ePopup:o}),F=this.gridOptionsWrapper.getLocaleTextFunc(),re=this.popupService.addPopup({modal:!0,eChild:o,positionCallback:M,anchorToElement:I,ariaLabel:F("ariaLabelSubMenu","SubMenu")});this.subMenuIsOpen=!0,Yr(I,!0),this.hideSubMenu=function(){re&&re.hideFunc(),i.subMenuIsOpen=!1,Yr(I,!1),s()}}},r.prototype.closeSubMenu=function(){this.hideSubMenu&&(this.hideSubMenu(),this.hideSubMenu=null,Yr(this.getGui(),!1))},r.prototype.isSubMenuOpen=function(){return this.subMenuIsOpen},r.prototype.activate=function(e){var i=this;this.cancelActivate(),!this.params.disabled&&(this.isActive=!0,this.addCssClass(this.getClassName("active")),this.getGui().focus(),e&&this.params.subMenu&&window.setTimeout(function(){i.isAlive()&&i.isActive&&i.openSubMenu()},300),this.onItemActivated())},r.prototype.deactivate=function(){this.cancelDeactivate(),this.removeCssClass(this.getClassName("active")),this.isActive=!1,this.subMenuIsOpen&&this.hideSubMenu()},r.prototype.addIcon=function(){if(this.params.checked||this.params.icon||!this.params.isCompact){var e=Su('<span ref="eIcon" class="'+this.getClassName("part")+" "+this.getClassName("icon")+'" role="presentation"></span>');this.params.checked?e.appendChild(Oc("check",this.gridOptionsWrapper)):this.params.icon&&(R0(this.params.icon)?e.appendChild(this.params.icon):"string"==typeof this.params.icon?e.innerHTML=this.params.icon:console.warn("AG Grid: menu item icon must be DOM node or string")),this.getGui().appendChild(e)}},r.prototype.addName=function(){if(this.params.name||!this.params.isCompact){var e=Su('<span ref="eName" class="'+this.getClassName("part")+" "+this.getClassName("text")+'">'+(this.params.name||"")+"</span>");this.getGui().appendChild(e)}},r.prototype.addTooltip=function(){this.params.tooltip&&(this.tooltip=this.params.tooltip,this.gridOptionsWrapper.isEnableBrowserTooltips()?this.getGui().setAttribute("title",this.tooltip):this.createManagedBean(new Cm(this)))},r.prototype.getTooltipParams=function(){return{location:"menu",value:this.tooltip}},r.prototype.addShortcut=function(){if(this.params.shortcut||!this.params.isCompact){var e=Su('<span ref="eShortcut" class="'+this.getClassName("part")+" "+this.getClassName("shortcut")+'">'+(this.params.shortcut||"")+"</span>");this.getGui().appendChild(e)}},r.prototype.addSubMenu=function(){if(this.params.subMenu||!this.params.isCompact){var e=Su('<span ref="ePopupPointer" class="'+this.getClassName("part")+" "+this.getClassName("popup-pointer")+'"></span>'),i=this.getGui();if(this.params.subMenu){var o=this.gridOptionsWrapper.isEnableRtl()?"smallLeft":"smallRight";Yr(i,!1),e.appendChild(Oc(o,this.gridOptionsWrapper))}i.appendChild(e)}},r.prototype.onItemSelected=function(e){this.params.action?this.params.action():this.openSubMenu(e&&"keydown"===e.type),(!this.params.subMenu||this.params.action)&&this.dispatchEvent({type:r.EVENT_MENU_ITEM_SELECTED,action:this.params.action,checked:this.params.checked,cssClasses:this.params.cssClasses,disabled:this.params.disabled,icon:this.params.icon,name:this.params.name,shortcut:this.params.shortcut,subMenu:this.params.subMenu,tooltip:this.params.tooltip,event:e})},r.prototype.onItemActivated=function(){this.dispatchEvent({type:r.EVENT_MENU_ITEM_ACTIVATED,menuItem:this})},r.prototype.cancelActivate=function(){this.activateTimeoutId&&(window.clearTimeout(this.activateTimeoutId),this.activateTimeoutId=0)},r.prototype.cancelDeactivate=function(){this.deactivateTimeoutId&&(window.clearTimeout(this.deactivateTimeoutId),this.deactivateTimeoutId=0)},r.prototype.onMouseEnter=function(){var e=this;this.cancelDeactivate(),this.params.isAnotherSubMenuOpen()?this.activateTimeoutId=window.setTimeout(function(){return e.activate(!0)},r.ACTIVATION_DELAY):this.activate(!0)},r.prototype.onMouseLeave=function(){var e=this;this.cancelActivate(),this.isSubMenuOpen()?this.deactivateTimeoutId=window.setTimeout(function(){return e.deactivate()},r.ACTIVATION_DELAY):this.deactivate()},r.prototype.getClassName=function(e){var i=this.params.isCompact?"ag-compact-menu-option":"ag-menu-option";return e?i+"-"+e:i},r.EVENT_MENU_ITEM_SELECTED="menuItemSelected",r.EVENT_MENU_ITEM_ACTIVATED="menuItemActivated",r.ACTIVATION_DELAY=80,d3([Xe("popupService")],r.prototype,"popupService",void 0),d3([qi],r.prototype,"init",null),r}(Do),DS=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Tm=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},FK=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var o,a,i=e.call(t),s=[];try{for(;(void 0===r||r-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return s},kS=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}var e;return DS(r,t),e=r,r.addKeyboardModeEvents=function(i,o){var s=e.instancesMonitored.get(i);s&&s.length>0?-1===s.indexOf(o)&&s.push(o):(e.instancesMonitored.set(i,[o]),i.addEventListener("keydown",e.toggleKeyboardMode),i.addEventListener("mousedown",e.toggleKeyboardMode))},r.removeKeyboardModeEvents=function(i,o){var s=e.instancesMonitored.get(i),a=[];s&&s.length&&(a=function(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(FK(arguments[r]));return t}(s).filter(function(l){return l!==o}),e.instancesMonitored.set(i,a)),0===a.length&&(i.removeEventListener("keydown",e.toggleKeyboardMode),i.removeEventListener("mousedown",e.toggleKeyboardMode))},r.toggleKeyboardMode=function(i){var o=e.keyboardModeActive,s="keydown"===i.type;if(!(s&&(i.ctrlKey||i.metaKey||i.altKey)||o&&s||!o&&!s)){e.keyboardModeActive=s;var a=i.target.ownerDocument;if(a){var l=e.instancesMonitored.get(a);l&&l.forEach(function(c){c.dispatchEvent({type:s?Et.EVENT_KEYBOARD_FOCUS:Et.EVENT_MOUSE_FOCUS})})}}},r.prototype.init=function(){var i=this,o=this.clearFocusedCell.bind(this);this.addManagedListener(this.eventService,Et.EVENT_COLUMN_PIVOT_MODE_CHANGED,o),this.addManagedListener(this.eventService,Et.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverythingChanged.bind(this)),this.addManagedListener(this.eventService,Et.EVENT_COLUMN_GROUP_OPENED,o),this.addManagedListener(this.eventService,Et.EVENT_COLUMN_ROW_GROUP_CHANGED,o),this.ctrlsService.whenReady(function(s){i.gridCtrl=s.gridCtrl;var a=i.gridOptionsWrapper.getDocument();e.addKeyboardModeEvents(a,i.gridCtrl),i.addDestroyFunc(function(){return i.unregisterGridCompController(i.gridCtrl)})})},r.prototype.unregisterGridCompController=function(i){var o=this.gridOptionsWrapper.getDocument();e.removeKeyboardModeEvents(o,i)},r.prototype.onColumnEverythingChanged=function(){if(this.focusedCellPosition){var i=this.focusedCellPosition.column,o=this.columnModel.getGridColumn(i.getId());i!==o&&this.clearFocusedCell()}},r.prototype.isKeyboardMode=function(){return e.keyboardModeActive},r.prototype.getFocusCellToUseAfterRefresh=function(){var i=this.gridOptionsWrapper.getDocument();return this.gridOptionsWrapper.isSuppressFocusAfterRefresh()||!this.focusedCellPosition||this.isDomDataMissingInHierarchy(i.activeElement,Y0.DOM_DATA_KEY_ROW_CTRL)?null:this.focusedCellPosition},r.prototype.getFocusHeaderToUseAfterRefresh=function(){var i=this.gridOptionsWrapper.getDocument();return this.gridOptionsWrapper.isSuppressFocusAfterRefresh()||!this.focusedHeaderPosition||this.isDomDataMissingInHierarchy(i.activeElement,wE.DOM_DATA_KEY_HEADER_CTRL)?null:this.focusedHeaderPosition},r.prototype.isDomDataMissingInHierarchy=function(i,o){for(var s=i;s;){if(this.gridOptionsWrapper.getDomData(s,o))return!1;s=s.parentNode}return!0},r.prototype.clearFocusedCell=function(){this.focusedCellPosition=null,this.onCellFocused(!1,!1)},r.prototype.getFocusedCell=function(){return this.focusedCellPosition},r.prototype.setFocusedCell=function(i){var s=i.rowIndex,a=i.rowPinned,l=i.forceBrowserFocus,c=void 0!==l&&l,d=i.preventScrollOnBrowserFocus,f=void 0!==d&&d,v=this.columnModel.getGridColumn(i.column);v?(this.focusedCellPosition=v?{rowIndex:s,rowPinned:vp(a),column:v}:null,this.onCellFocused(c,f)):this.focusedCellPosition=null},r.prototype.isCellFocused=function(i){return null!=this.focusedCellPosition&&this.focusedCellPosition.column===i.column&&this.isRowFocused(i.rowIndex,i.rowPinned)},r.prototype.isRowNodeFocused=function(i){return this.isRowFocused(i.rowIndex,i.rowPinned)},r.prototype.isHeaderWrapperFocused=function(i){if(null==this.focusedHeaderPosition)return!1;var o=i.getColumnGroupChild(),s=i.getRowIndex(),a=i.getPinned(),l=this.focusedHeaderPosition,c=l.column;return o===c&&s===l.headerRowIndex&&a==c.getPinned()},r.prototype.clearFocusedHeader=function(){this.focusedHeaderPosition=null},r.prototype.getFocusedHeader=function(){return this.focusedHeaderPosition},r.prototype.setFocusedHeader=function(i,o){this.focusedHeaderPosition={headerRowIndex:i,column:o}},r.prototype.focusHeaderPosition=function(i){var o=i.direction,s=i.fromTab,l=i.event,c=i.headerPosition;if(i.allowUserOverride){var w,d=this.gridOptionsWrapper,f=this.getFocusedHeader(),v=this.headerNavigationService.getHeaderRowCount();s?(w=d.getTabToNextHeaderFunc())&&(c=w({backwards:"Before"===o,previousHeaderPosition:f,nextHeaderPosition:c,headerRowCount:v})):(w=d.getNavigateToNextHeaderFunc())&&l&&(c=w({key:l.key,previousHeaderPosition:f,nextHeaderPosition:c,headerRowCount:v,event:l}))}return!!c&&(-1===c.headerRowIndex?this.focusGridView(c.column):(this.headerNavigationService.scrollToColumn(c.column,o),this.ctrlsService.getHeaderRowContainerCtrl(c.column.getPinned()).focusHeader(c.headerRowIndex,c.column,l)))},r.prototype.focusFirstHeader=function(){var i=this.columnModel.getAllDisplayedColumns()[0];return!!i&&(i.getParent()&&(i=this.columnModel.getColumnGroupAtLevel(i,0)),this.focusHeaderPosition({headerPosition:{headerRowIndex:0,column:i}}))},r.prototype.focusLastHeader=function(i){var o=this.headerNavigationService.getHeaderRowCount()-1,s=Ja(this.columnModel.getAllDisplayedColumns());return this.focusHeaderPosition({headerPosition:{headerRowIndex:o,column:s},event:i})},r.prototype.isAnyCellFocused=function(){return!!this.focusedCellPosition},r.prototype.isRowFocused=function(i,o){return null!=this.focusedCellPosition&&this.focusedCellPosition.rowIndex===i&&this.focusedCellPosition.rowPinned===vp(o)},r.prototype.findFocusableElements=function(i,o,s){void 0===s&&(s=!1);var l=Nn.FOCUSABLE_EXCLUDE;o&&(l+=", "+o),s&&(l+=', [tabindex="-1"]');var w,c=Array.prototype.slice.apply(i.querySelectorAll(Nn.FOCUSABLE_SELECTOR)),d=Array.prototype.slice.apply(i.querySelectorAll(l));return d.length?(w=d,c.filter(function(x){return-1===w.indexOf(x)})):c},r.prototype.focusInto=function(i,o,s){void 0===o&&(o=!1),void 0===s&&(s=!1);var a=this.findFocusableElements(i,null,s),l=o?Ja(a):a[0];return!!l&&(l.focus(),!0)},r.prototype.findNextFocusableElement=function(i,o,s){void 0===i&&(i=this.eGridDiv);var a=this.findFocusableElements(i,o?':not([tabindex="-1"])':null),c=this.gridOptionsWrapper.getDocument().activeElement,f=(o?a.findIndex(function(v){return v.contains(c)}):a.indexOf(c))+(s?-1:1);return f<0||f>=a.length?null:a[f]},r.prototype.isFocusUnderManagedComponent=function(i){var o=this.gridOptionsWrapper.getDocument(),s=i.querySelectorAll("."+xd.FOCUS_MANAGED_CLASS);if(!s.length)return!1;for(var a=0;a<s.length;a++)if(s[a].contains(o.activeElement))return!0;return!1},r.prototype.findTabbableParent=function(i,o){void 0===o&&(o=5);for(var s=0;i&&null===w1(i)&&++s<=o;)i=i.parentElement;return null===w1(i)?null:i},r.prototype.onCellFocused=function(i,o){var s={type:Et.EVENT_CELL_FOCUSED,forceBrowserFocus:i,preventScrollOnBrowserFocus:o,rowIndex:null,column:null,floating:null,api:this.gridApi,columnApi:this.columnApi,rowPinned:null,isFullWidthCell:!1};if(this.focusedCellPosition){var a=s.rowIndex=this.focusedCellPosition.rowIndex,l=s.rowPinned=this.focusedCellPosition.rowPinned;s.column=this.focusedCellPosition.column;var c=this.rowRenderer.getRowByPosition({rowIndex:a,rowPinned:l});c&&(s.isFullWidthCell=c.isFullWidth())}this.eventService.dispatchEvent(s)},r.prototype.focusGridView=function(i,o){if(this.gridOptionsWrapper.isSuppressCellFocus())return o?this.focusLastHeader():this.focusNextGridCoreContainer(!1);var s=o?this.rowPositionUtils.getLastRow():this.rowPositionUtils.getFirstRow();if(!s)return!1;var a=s.rowIndex,l=s.rowPinned,c=this.getFocusedHeader();return!i&&c&&(i=c.column),!(null==a||!i)&&(this.navigationService.ensureCellVisible({rowIndex:a,column:i,rowPinned:l}),this.setFocusedCell({rowIndex:a,column:i,rowPinned:vp(l),forceBrowserFocus:!0}),this.rangeService&&this.rangeService.setRangeToCell({rowIndex:a,rowPinned:l,column:i}),!0)},r.prototype.focusNextGridCoreContainer=function(i){return!!this.gridCtrl.focusNextInnerContainer(i)||(!i&&!this.gridCtrl.isDetailGrid()&&this.gridCtrl.forceFocusOutOfContainer(),!1)},r.AG_KEYBOARD_FOCUS="ag-keyboard-focus",r.keyboardModeActive=!1,r.instancesMonitored=new Map,Tm([Xe("eGridDiv")],r.prototype,"eGridDiv",void 0),Tm([Xe("columnModel")],r.prototype,"columnModel",void 0),Tm([Xe("headerNavigationService")],r.prototype,"headerNavigationService",void 0),Tm([Xe("columnApi")],r.prototype,"columnApi",void 0),Tm([Xe("gridApi")],r.prototype,"gridApi",void 0),Tm([Xe("rowRenderer")],r.prototype,"rowRenderer",void 0),Tm([Xe("rowPositionUtils")],r.prototype,"rowPositionUtils",void 0),Tm([_a("rangeService")],r.prototype,"rangeService",void 0),Tm([Xe("navigationService")],r.prototype,"navigationService",void 0),Tm([Xe("ctrlsService")],r.prototype,"ctrlsService",void 0),Tm([qi],r.prototype,"init",null),e=Tm([Kr("focusService")],r)}(Zi),PK=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),IS=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},HV=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var o,a,i=e.call(t),s=[];try{for(;(void 0===r||r-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return s},sv=function(t){return t[t.vertical=0]="vertical",t[t.horizontal=1]="horizontal",t}(sv||{}),h3=0,$V=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.popupList=[],e}return PK(r,t),r.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(i){e.gridCtrl=i.gridCtrl,e.addManagedListener(e.gridCtrl,Et.EVENT_KEYBOARD_FOCUS,function(){e.popupList.forEach(function(o){return o.element.classList.add(kS.AG_KEYBOARD_FOCUS)})}),e.addManagedListener(e.gridCtrl,Et.EVENT_MOUSE_FOCUS,function(){e.popupList.forEach(function(o){return o.element.classList.remove(kS.AG_KEYBOARD_FOCUS)})})})},r.prototype.getPopupParent=function(){return this.gridOptionsWrapper.getPopupParent()||this.gridCtrl.getGui()},r.prototype.positionPopupForMenu=function(e){var i=e.eventSource.getBoundingClientRect(),o=this.getParentRect(),s=this.keepXYWithinBounds(e.ePopup,i.top-o.top,sv.vertical),a=e.ePopup.clientWidth>0?e.ePopup.clientWidth:200;e.ePopup.style.minWidth=a+"px";var d,c=o.right-o.left-a;function f(){return i.right-o.left-2}function v(){return i.left-o.left-a}this.gridOptionsWrapper.isEnableRtl()?((d=v())<0&&(d=f()),d>c&&(d=0)):((d=f())>c&&(d=v()),d<0&&(d=0)),e.ePopup.style.left=d+"px",e.ePopup.style.top=s+"px"},r.prototype.positionPopupUnderMouseEvent=function(e){var i=e.ePopup,o=e.nudgeX,s=e.nudgeY,a=this.calculatePointerAlign(e.mouseEvent);this.positionPopup({ePopup:i,x:a.x,y:a.y,nudgeX:o,nudgeY:s,keepWithinBounds:!0}),this.callPostProcessPopup(e.type,e.ePopup,null,e.mouseEvent,e.column,e.rowNode)},r.prototype.calculatePointerAlign=function(e){var i=this.getParentRect();return{x:e.clientX-i.left,y:e.clientY-i.top}},r.prototype.positionPopupUnderComponent=function(e){var i=e.eventSource.getBoundingClientRect(),o=e.alignSide||"left",s=this.getParentRect(),a=i.left-s.left;"right"===o&&(a-=e.ePopup.offsetWidth-i.width),this.positionPopup({ePopup:e.ePopup,nudgeX:e.nudgeX,nudgeY:e.nudgeY,x:a,y:i.top-s.top+i.height,keepWithinBounds:e.keepWithinBounds}),this.callPostProcessPopup(e.type,e.ePopup,e.eventSource,null,e.column,e.rowNode)},r.prototype.positionPopupOverComponent=function(e){var i=e.eventSource.getBoundingClientRect(),o=this.getParentRect();this.positionPopup({ePopup:e.ePopup,nudgeX:e.nudgeX,nudgeY:e.nudgeY,x:i.left-o.left,y:i.top-o.top,keepWithinBounds:e.keepWithinBounds}),this.callPostProcessPopup(e.type,e.ePopup,e.eventSource,null,e.column,e.rowNode)},r.prototype.callPostProcessPopup=function(e,i,o,s,a,l){var c=this.gridOptionsWrapper.getPostProcessPopupFunc();c&&c({column:a,rowNode:l,ePopup:i,type:e,eventSource:o,mouseEvent:s})},r.prototype.positionPopup=function(e){var i=e.ePopup,s=e.nudgeX,a=e.nudgeY,l=e.x,c=e.y;s&&(l+=s),a&&(c+=a),e.keepWithinBounds&&(l=this.keepXYWithinBounds(i,l,sv.horizontal),c=this.keepXYWithinBounds(i,c,sv.vertical)),i.style.left=l+"px",i.style.top=c+"px"},r.prototype.getActivePopups=function(){return this.popupList.map(function(e){return e.element})},r.prototype.getPopupList=function(){return this.popupList},r.prototype.getParentRect=function(){var e=this.gridOptionsWrapper.getDocument(),i=this.getPopupParent();i===e.body&&(i=e.documentElement);var o=getComputedStyle(i),s=i.getBoundingClientRect();return{top:s.top+parseFloat(o.borderTopWidth)||0,left:s.left+parseFloat(o.borderLeftWidth)||0,right:s.right+parseFloat(o.borderRightWidth)||0,bottom:s.bottom+parseFloat(o.borderBottomWidth)||0}},r.prototype.keepXYWithinBounds=function(e,i,o){var s=o===sv.vertical,a=s?"clientHeight":"clientWidth",l=s?"top":"left",c=s?"offsetHeight":"offsetWidth",d=s?"scrollTop":"scrollLeft",f=this.gridOptionsWrapper.getDocument(),v=f.documentElement,w=this.getPopupParent(),x=w.getBoundingClientRect(),I=f.documentElement.getBoundingClientRect(),M=w===f.body,F=e[c],pe=M?(s?bh:Jh)(v)+v[d]:w[a];M&&(pe-=Math.abs(I[l]-x[l]));var we=pe-F;return Math.min(Math.max(i,0),Math.abs(we))},r.prototype.keepPopupPositionedRelativeTo=function(e){var i=this,o=this.getPopupParent(),s=o.getBoundingClientRect(),a=e.element.getBoundingClientRect(),l=s.top-a.top,c=s.left-a.left,d=l,f=c,v=e.ePopup.style.top,w=parseInt(v.substring(0,v.length-1),10),x=e.ePopup.style.left,I=parseInt(x.substring(0,x.length-1),10);return new Zu(function(M){i.getFrameworkOverrides().setInterval(function(){var F=o.getBoundingClientRect(),re=e.element.getBoundingClientRect();if(0==re.top&&0==re.left&&0==re.height&&0==re.width)e.hidePopup();else{var we=F.top-re.top;if(we!=d){var je=i.keepXYWithinBounds(e.ePopup,w+l-we,sv.vertical);e.ePopup.style.top=je+"px"}d=we;var tt=F.left-re.left;if(tt!=f){var nt=i.keepXYWithinBounds(e.ePopup,I+c-tt,sv.horizontal);e.ePopup.style.left=nt+"px"}f=tt}},200).then(function(F){M(function(){null!=F&&window.clearInterval(F)})})})},r.prototype.addPopup=function(e){var i,o=this,s=e.modal,a=e.eChild,l=e.closeOnEsc,c=e.closedCallback,d=e.click,f=e.alwaysOnTop,v=e.afterGuiAttached,w=e.positionCallback,x=e.anchorToElement,I=e.ariaLabel,M=this.gridOptionsWrapper.getDocument(),F=new Zu(function(Zt){return Zt(function(){})});if(!M)return console.warn("ag-grid: could not find the document, document is empty"),{hideFunc:function(){},stopAnchoringPromise:F};var re=this.popupList.findIndex(function(Zt){return Zt.element===a});if(-1!==re){var pe=this.popupList[re];return{hideFunc:pe.hideFunc,stopAnchoringPromise:pe.stopAnchoringPromise}}var we=this.getPopupParent();null==a.style.top&&(a.style.top="0px"),null==a.style.left&&(a.style.left="0px");var je=document.createElement("div"),tt=this.environment.getTheme().allThemes;tt.length&&(i=je.classList).add.apply(i,function(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(HV(arguments[r]));return t}(tt)),je.classList.add("ag-popup"),a.classList.add(this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr","ag-popup-child"),a.hasAttribute("role")||Qn(a,"dialog"),Bn(a,I),this.focusService.isKeyboardMode()&&a.classList.add(kS.AG_KEYBOARD_FOCUS),je.appendChild(a),we.appendChild(je),f?this.setAlwaysOnTop(je,!0):this.bringPopupToFront(je);var nt=!1,rt=function(Zt){je.contains(M.activeElement)&&Zt.key===gi.ESCAPE&&Wt({keyboardEvent:Zt})},lt=function(Zt){return Wt({mouseEvent:Zt})},bt=function(Zt){return Wt({touchEvent:Zt})},Wt=function(Zt){void 0===Zt&&(Zt={});var en=Zt.mouseEvent,ci=Zt.touchEvent,Wi=Zt.keyboardEvent;o.isEventFromCurrentPopup({mouseEvent:en,touchEvent:ci},a)||o.isEventSameChainAsOriginalEvent({originalMouseEvent:d,mouseEvent:en,touchEvent:ci})||nt||(nt=!0,we.removeChild(je),M.removeEventListener("keydown",rt),M.removeEventListener("mousedown",lt),M.removeEventListener("touchstart",bt),M.removeEventListener("contextmenu",lt),o.eventService.removeEventListener(Et.EVENT_DRAG_STARTED,lt),c&&c(en||ci||Wi),o.popupList=o.popupList.filter(function(ki){return ki.element!==a}),F&&F.then(function(ki){return ki&&ki()}))};return v&&v({hidePopup:Wt}),window.setTimeout(function(){l&&M.addEventListener("keydown",rt),s&&(M.addEventListener("mousedown",lt),o.eventService.addEventListener(Et.EVENT_DRAG_STARTED,lt),M.addEventListener("touchstart",bt),M.addEventListener("contextmenu",lt))},0),w&&w(),x&&(F=this.keepPopupPositionedRelativeTo({element:x,ePopup:a,hidePopup:Wt})),this.popupList.push({element:a,wrapper:je,hideFunc:Wt,stopAnchoringPromise:F,instanceId:h3++,isAnchored:!!x}),{hideFunc:Wt,stopAnchoringPromise:F}},r.prototype.hasAnchoredPopup=function(){return this.popupList.some(function(e){return e.isAnchored})},r.prototype.isEventFromCurrentPopup=function(e,i){var a=e.mouseEvent||e.touchEvent;if(!a)return!1;var l=this.popupList.findIndex(function(f){return f.element===i});if(-1===l)return!1;for(var c=l;c<this.popupList.length;c++)if(sp(this.popupList[c].element,a))return!0;return this.isElementWithinCustomPopup(a.target)},r.prototype.isElementWithinCustomPopup=function(e){for(var i=this.gridOptionsWrapper.getDocument();e&&e!==i.body;){if(e.classList.contains("ag-custom-component-popup")||null===e.parentElement)return!0;e=e.parentElement}return!1},r.prototype.isEventSameChainAsOriginalEvent=function(e){var i=e.originalMouseEvent,o=e.mouseEvent,s=e.touchEvent,a=null;if(o?a=o:s&&(a=s.touches[0]),a&&i){var c=o?o.screenY:0,d=Math.abs(i.screenX-(o?o.screenX:0))<5,f=Math.abs(i.screenY-c)<5;if(d&&f)return!0}return!1},r.prototype.getWrapper=function(e){for(;!e.classList.contains("ag-popup")&&e.parentElement;)e=e.parentElement;return e.classList.contains("ag-popup")?e:null},r.prototype.setAlwaysOnTop=function(e,i){var o=this.getWrapper(e);o&&(o.classList.toggle("ag-always-on-top",!!i),i&&this.bringPopupToFront(o))},r.prototype.bringPopupToFront=function(e){var i=this.getPopupParent(),o=Array.prototype.slice.call(i.querySelectorAll(".ag-popup")),s=o.length,a=Array.prototype.slice.call(i.querySelectorAll(".ag-popup.ag-always-on-top")),l=a.length,c=this.getWrapper(e);if(c&&!(s<=1)&&i.contains(e)){var d=o.indexOf(c),f=c.querySelectorAll("div"),v=[];for(f.forEach(function(M){0!==M.scrollTop&&v.push([M,M.scrollTop])}),l?c.classList.contains("ag-always-on-top")?d!==s-1&&Ja(a).insertAdjacentElement("afterend",c):d!==s-l-1&&a[0].insertAdjacentElement("beforebegin",c):d!==s-1&&Ja(o).insertAdjacentElement("afterend",c);v.length;){var x=v.pop();x[0].scrollTop=x[1]}var I={type:"popupToFront",api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),eWrapper:c};this.eventService.dispatchEvent(I)}},IS([Xe("environment")],r.prototype,"environment",void 0),IS([Xe("focusService")],r.prototype,"focusService",void 0),IS([Xe("ctrlsService")],r.prototype,"ctrlsService",void 0),IS([qi],r.prototype,"postConstruct",null),IS([Kr("popupService")],r)}(Zi),f3=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),UA=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},$A=function(t){function r(e,i,o){void 0===e&&(e="default"),void 0===i&&(i="listbox");var s=t.call(this,r.getTemplate(e))||this;return s.cssIdentifier=e,s.ariaRole=i,s.listName=o,s.renderedRows=new Map,s.rowHeight=20,s.isDestroyed=!1,s}return f3(r,t),r.prototype.postConstruct=function(){var e=this;this.addScrollListener(),this.rowHeight=this.getItemHeight(),this.addResizeObserver(),this.initialiseTabGuard({onFocusIn:function(i){return e.onFocusIn(i)},onFocusOut:function(i){return e.onFocusOut(i)},focusInnerElement:function(i){return e.focusInnerElement(i)},onTabKeyDown:function(i){return e.onTabKeyDown(i)},handleKeyDown:function(i){return e.handleKeyDown(i)}}),this.setAriaProperties()},r.prototype.setAriaProperties=function(){var i=this.gridOptionsWrapper.getLocaleTextFunc()("ariaDefaultListName",this.listName||"List"),o=this.eContainer;Qn(o,this.ariaRole),Bn(o,i)},r.prototype.addResizeObserver=function(){var e=this.drawVirtualRows.bind(this),i=this.resizeObserverService.observeResize(this.getGui(),e);this.addDestroyFunc(i)},r.prototype.focusInnerElement=function(e){this.focusRow(e?this.model.getRowCount()-1:0)},r.prototype.onFocusIn=function(e){var i=e.target;return i.classList.contains("ag-virtual-list-item")&&(this.lastFocusedRowIndex=gr(i)-1),!1},r.prototype.onFocusOut=function(e){return this.getFocusableElement().contains(e.relatedTarget)||(this.lastFocusedRowIndex=null),!1},r.prototype.handleKeyDown=function(e){switch(e.key){case gi.UP:case gi.DOWN:this.navigate(e.key===gi.UP)&&e.preventDefault()}},r.prototype.onTabKeyDown=function(e){this.navigate(e.shiftKey)?e.preventDefault():this.focusService.focusInto(this.getGui(),!e.shiftKey)},r.prototype.navigate=function(e){if(null==this.lastFocusedRowIndex)return!1;var i=this.lastFocusedRowIndex+(e?-1:1);return!(i<0||i>=this.model.getRowCount()||(this.focusRow(i),0))},r.prototype.getLastFocusedRow=function(){return this.lastFocusedRowIndex},r.prototype.focusRow=function(e){var i=this;this.ensureIndexVisible(e),window.setTimeout(function(){var o=i.renderedRows.get(e);o&&o.eDiv.focus()},10)},r.prototype.getComponentAt=function(e){var i=this.renderedRows.get(e);return i&&i.rowComponent},r.prototype.forEachRenderedRow=function(e){this.renderedRows.forEach(function(i,o){return e(i.rowComponent,o)})},r.getTemplate=function(e){return'\n            <div class="ag-virtual-list-viewport ag-'+e+'-virtual-list-viewport" role="presentation">\n                <div class="ag-virtual-list-container ag-'+e+'-virtual-list-container" ref="eContainer"></div>\n            </div>'},r.prototype.getItemHeight=function(){return this.gridOptionsWrapper.getListItemHeight()},r.prototype.ensureIndexVisible=function(e){var i=this.model.getRowCount();if("number"!=typeof e||e<0||e>=i)console.warn("AG Grid: invalid row index for ensureIndexVisible: "+e);else{var o=e*this.rowHeight,s=o+this.rowHeight,a=this.getGui(),l=a.scrollTop,c=a.offsetHeight,v=l+c<s;l>o?a.scrollTop=o:v&&(a.scrollTop=s-c)}},r.prototype.setComponentCreator=function(e){this.componentCreator=e},r.prototype.getRowHeight=function(){return this.rowHeight},r.prototype.getScrollTop=function(){return this.getGui().scrollTop},r.prototype.setRowHeight=function(e){this.rowHeight=e,this.refresh()},r.prototype.refresh=function(){var e=this;if(null!=this.model&&!this.isDestroyed){var i=this.model.getRowCount();this.eContainer.style.height=i*this.rowHeight+"px",d1(function(){return e.eContainer.clientHeight>=i*e.rowHeight},function(){e.isDestroyed||(e.clearVirtualRows(),e.drawVirtualRows())})}},r.prototype.clearVirtualRows=function(){var e=this;this.renderedRows.forEach(function(i,o){return e.removeRow(o)})},r.prototype.drawVirtualRows=function(){if(this.isAlive()){var e=this.getGui(),i=e.scrollTop,o=i+e.offsetHeight,s=Math.floor(i/this.rowHeight),a=Math.floor(o/this.rowHeight);this.ensureRowsRendered(s,a)}},r.prototype.ensureRowsRendered=function(e,i){var o=this;this.renderedRows.forEach(function(a,l){(l<e||l>i)&&l!==o.lastFocusedRowIndex&&o.removeRow(l)});for(var s=e;s<=i;s++)this.renderedRows.has(s)||s<this.model.getRowCount()&&this.insertRow(s)},r.prototype.insertRow=function(e){var i=this,o=this.model.getRow(e),s=document.createElement("div");if(s.classList.add("ag-virtual-list-item","ag-"+this.cssIdentifier+"-virtual-list-item"),Qn(s,"tree"===this.ariaRole?"treeitem":"option"),To(s,this.model.getRowCount()),Tl(s,e+1),s.setAttribute("tabindex","-1"),"function"==typeof this.model.isRowSelected){var a=this.model.isRowSelected(e);Rc(s,!!a),md(s,a)}s.style.height=this.rowHeight+"px",s.style.top=this.rowHeight*e+"px";var l=this.componentCreator(o,s);l.addGuiEventListener("focusin",function(){return i.lastFocusedRowIndex=e}),s.appendChild(l.getGui()),this.renderedRows.has(e-1)?this.renderedRows.get(e-1).eDiv.insertAdjacentElement("afterend",s):this.renderedRows.has(e+1)?this.renderedRows.get(e+1).eDiv.insertAdjacentElement("beforebegin",s):this.eContainer.appendChild(s),this.renderedRows.set(e,{rowComponent:l,eDiv:s})},r.prototype.removeRow=function(e){var i=this.renderedRows.get(e);this.eContainer.removeChild(i.eDiv),this.destroyBean(i.rowComponent),this.renderedRows.delete(e)},r.prototype.addScrollListener=function(){var e=this;this.addGuiEventListener("scroll",function(){return e.drawVirtualRows()})},r.prototype.setModel=function(e){this.model=e},r.prototype.destroy=function(){this.isDestroyed||(this.clearVirtualRows(),this.isDestroyed=!0,t.prototype.destroy.call(this))},UA([Xe("resizeObserverService")],r.prototype,"resizeObserverService",void 0),UA([Xe("focusService")],r.prototype,"focusService",void 0),UA([Ti("eContainer")],r.prototype,"eContainer",void 0),UA([qi],r.prototype,"postConstruct",null),r}(zC),LK=["mouseover","mouseout","mouseenter","mouseleave"],YV=["touchstart","touchend","touchmove","touchcancel"],J0=function(){function t(){this.isOutsideAngular=function(r){return ht(LK,r)}}return t.prototype.setTimeout=function(r,e){window.setTimeout(r,e)},t.prototype.setInterval=function(r,e){return new Zu(function(i){i(window.setInterval(r,e))})},t.prototype.addEventListener=function(r,e,i,o){var s=ht(YV,e);r.addEventListener(e,i,{capture:!!o,passive:s})},t.prototype.dispatchEvent=function(r,e,i){void 0===i&&(i=!1),e()},t.prototype.frameworkComponent=function(r){return null},t.prototype.isFrameworkComponent=function(r){return!1},t}(),m3=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),qC=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},NK=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var o,a,i=e.call(t),s=[];try{for(;(void 0===r||r-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return s},WA=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return m3(r,t),r.prototype.getNextCellToFocus=function(e,i,o){return void 0===o&&(o=!1),o?this.getNextCellToFocusWithCtrlPressed(e,i):this.getNextCellToFocusWithoutCtrlPressed(e,i)},r.prototype.getNextCellToFocusWithCtrlPressed=function(e,i){var l,c,o=e===gi.UP,a=e===gi.LEFT;if(o||e===gi.DOWN)c=o?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow(),l=i.column;else{var d=this.columnModel.getAllDisplayedColumns(),f=this.gridOptionsWrapper.isEnableRtl();c=i.rowIndex,l=a!==f?d[0]:Ja(d)}return{rowIndex:c,rowPinned:null,column:l}},r.prototype.getNextCellToFocusWithoutCtrlPressed=function(e,i){for(var o=i,s=!1;!s;){switch(e){case gi.UP:o=this.getCellAbove(o);break;case gi.DOWN:o=this.getCellBelow(o);break;case gi.RIGHT:o=this.gridOptionsWrapper.isEnableRtl()?this.getCellToLeft(o):this.getCellToRight(o);break;case gi.LEFT:o=this.gridOptionsWrapper.isEnableRtl()?this.getCellToRight(o):this.getCellToLeft(o);break;default:o=null,console.warn("AG Grid: unknown key for navigation "+e)}s=!o||this.isCellGoodToFocusOn(o)}return o},r.prototype.isCellGoodToFocusOn=function(e){var o,i=e.column;switch(e.rowPinned){case Nn.PINNED_TOP:o=this.pinnedRowModel.getPinnedTopRow(e.rowIndex);break;case Nn.PINNED_BOTTOM:o=this.pinnedRowModel.getPinnedBottomRow(e.rowIndex);break;default:o=this.rowModel.getRow(e.rowIndex)}return!!o&&!i.isSuppressNavigable(o)},r.prototype.getCellToLeft=function(e){if(!e)return null;var i=this.columnModel.getDisplayedColBefore(e.column);return i?{rowIndex:e.rowIndex,column:i,rowPinned:e.rowPinned}:null},r.prototype.getCellToRight=function(e){if(!e)return null;var i=this.columnModel.getDisplayedColAfter(e.column);return i?{rowIndex:e.rowIndex,column:i,rowPinned:e.rowPinned}:null},r.prototype.getRowBelow=function(e){var i=e.rowIndex,o=e.rowPinned;if(this.isLastRowInContainer(e))switch(o){case Nn.PINNED_BOTTOM:return null;case Nn.PINNED_TOP:return this.rowModel.isRowsToRender()?{rowIndex:this.paginationProxy.getPageFirstRow(),rowPinned:null}:this.pinnedRowModel.isRowsToRender(Nn.PINNED_BOTTOM)?{rowIndex:0,rowPinned:Nn.PINNED_BOTTOM}:null;default:return this.pinnedRowModel.isRowsToRender(Nn.PINNED_BOTTOM)?{rowIndex:0,rowPinned:Nn.PINNED_BOTTOM}:null}var s=this.rowModel.getRow(e.rowIndex);return this.getNextStickyPosition(s)||{rowIndex:i+1,rowPinned:o}},r.prototype.getNextStickyPosition=function(e,i){if(this.gridOptionsWrapper.isGroupRowsSticky()&&e&&e.sticky){var o=function(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(NK(arguments[r]));return t}(this.rowRenderer.getStickyTopRowCtrls()).sort(function(c,d){return c.getRowNode().rowIndex-d.getRowNode().rowIndex}),s=i?-1:1,a=o.findIndex(function(c){return c.getRowNode().rowIndex===e.rowIndex}),l=o[a+s];if(l)return{rowIndex:l.getRowNode().rowIndex,rowPinned:null}}},r.prototype.getCellBelow=function(e){if(!e)return null;var i=this.getRowBelow(e);return i?{rowIndex:i.rowIndex,column:e.column,rowPinned:i.rowPinned}:null},r.prototype.isLastRowInContainer=function(e){var i=e.rowPinned,o=e.rowIndex;return i===Nn.PINNED_TOP?this.pinnedRowModel.getPinnedTopRowData().length-1<=o:i===Nn.PINNED_BOTTOM?this.pinnedRowModel.getPinnedBottomRowData().length-1<=o:this.paginationProxy.getPageLastRow()<=o},r.prototype.getRowAbove=function(e){var i=e.rowIndex,o=e.rowPinned;if(o?0===i:i===this.paginationProxy.getPageFirstRow())return o===Nn.PINNED_TOP?null:o&&this.rowModel.isRowsToRender()?this.getLastBodyCell():this.pinnedRowModel.isRowsToRender(Nn.PINNED_TOP)?this.getLastFloatingTopRow():null;var a=this.rowModel.getRow(e.rowIndex);return this.getNextStickyPosition(a,!0)||{rowIndex:i-1,rowPinned:o}},r.prototype.getCellAbove=function(e){if(!e)return null;var i=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});return i?{rowIndex:i.rowIndex,column:e.column,rowPinned:i.rowPinned}:null},r.prototype.getLastBodyCell=function(){return{rowIndex:this.paginationProxy.getPageLastRow(),rowPinned:null}},r.prototype.getLastFloatingTopRow=function(){return{rowIndex:this.pinnedRowModel.getPinnedTopRowData().length-1,rowPinned:Nn.PINNED_TOP}},r.prototype.getNextTabbedCell=function(e,i){return i?this.getNextTabbedCellBackwards(e):this.getNextTabbedCellForwards(e)},r.prototype.getNextTabbedCellForwards=function(e){var i=this.columnModel.getAllDisplayedColumns(),o=e.rowIndex,s=e.rowPinned,a=this.columnModel.getDisplayedColAfter(e.column);if(!a){a=i[0];var l=this.getRowBelow(e);if($o(l)||!l.rowPinned&&!this.paginationProxy.isRowInPage(l))return null;o=l?l.rowIndex:null,s=l?l.rowPinned:null}return{rowIndex:o,column:a,rowPinned:s}},r.prototype.getNextTabbedCellBackwards=function(e){var i=this.columnModel.getAllDisplayedColumns(),o=e.rowIndex,s=e.rowPinned,a=this.columnModel.getDisplayedColBefore(e.column);if(!a){a=Ja(i);var l=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});if($o(l)||!l.rowPinned&&!this.paginationProxy.isRowInPage(l))return null;o=l?l.rowIndex:null,s=l?l.rowPinned:null}return{rowIndex:o,column:a,rowPinned:s}},qC([Xe("columnModel")],r.prototype,"columnModel",void 0),qC([Xe("rowModel")],r.prototype,"rowModel",void 0),qC([Xe("rowRenderer")],r.prototype,"rowRenderer",void 0),qC([Xe("pinnedRowModel")],r.prototype,"pinnedRowModel",void 0),qC([Xe("paginationProxy")],r.prototype,"paginationProxy",void 0),qC([Kr("cellNavigationService")],r)}(Zi),WV=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),XC=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},zA=function(t,r){return function(e,i){r(e,i,t)}},zV=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.consuming=!1,e}return WV(r,t),r.prototype.setBeans=function(e){this.logger=e.create("AlignedGridsService")},r.prototype.init=function(){this.addManagedListener(this.eventService,Et.EVENT_COLUMN_MOVED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,Et.EVENT_COLUMN_VISIBLE,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,Et.EVENT_COLUMN_PINNED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,Et.EVENT_COLUMN_GROUP_OPENED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,Et.EVENT_COLUMN_RESIZED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,Et.EVENT_BODY_SCROLL,this.fireScrollEvent.bind(this))},r.prototype.fireEvent=function(e){if(!this.consuming){var i=this.gridOptionsWrapper.getAlignedGrids();i&&i.forEach(function(o){if(o.api){var s=o.api.__getAlignedGridService();e(s)}})}},r.prototype.onEvent=function(e){this.consuming=!0,e(),this.consuming=!1},r.prototype.fireColumnEvent=function(e){this.fireEvent(function(i){i.onColumnEvent(e)})},r.prototype.fireScrollEvent=function(e){"horizontal"===e.direction&&this.fireEvent(function(i){i.onScrollEvent(e)})},r.prototype.onScrollEvent=function(e){var i=this;this.onEvent(function(){i.ctrlsService.getGridBodyCtrl().getScrollFeature().setHorizontalScrollPosition(e.left)})},r.prototype.getMasterColumns=function(e){var i=[];return e.columns?e.columns.forEach(function(o){i.push(o)}):e.column&&i.push(e.column),i},r.prototype.getColumnIds=function(e){var i=[];return e.columns?e.columns.forEach(function(o){i.push(o.getColId())}):e.column&&i.push(e.column.getColId()),i},r.prototype.onColumnEvent=function(e){var i=this;this.onEvent(function(){switch(e.type){case Et.EVENT_COLUMN_MOVED:case Et.EVENT_COLUMN_VISIBLE:case Et.EVENT_COLUMN_PINNED:case Et.EVENT_COLUMN_RESIZED:i.processColumnEvent(e);break;case Et.EVENT_COLUMN_GROUP_OPENED:i.processGroupOpenedEvent(e);break;case Et.EVENT_COLUMN_PIVOT_CHANGED:console.warn("AG Grid: pivoting is not supported with aligned grids. You can only use one of these features at a time in a grid.")}})},r.prototype.processGroupOpenedEvent=function(e){var i=e.columnGroup,o=null;if(i){var s=i.getGroupId();o=this.columnModel.getProvidedColumnGroup(s)}i&&!o||(this.logger.log("onColumnEvent-> processing "+e+" expanded = "+i.isExpanded()),this.columnModel.setColumnGroupOpened(o,i.isExpanded(),"alignedGridChanged"))},r.prototype.processColumnEvent=function(e){var o,i=this,s=e.column,a=null;if(s&&(a=this.columnModel.getPrimaryColumn(s.getColId())),!s||a){var l=this.getMasterColumns(e);switch(e.type){case Et.EVENT_COLUMN_MOVED:var c=e,f=e.columnApi.getColumnState().map(function(pe){return{colId:pe.colId}});this.columnModel.applyColumnState({state:f,applyOrder:!0},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+e.type+" toIndex = "+c.toIndex);break;case Et.EVENT_COLUMN_VISIBLE:var v=e;f=e.columnApi.getColumnState().map(function(je){return{colId:je.colId,hide:je.hide}}),this.columnModel.applyColumnState({state:f},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+e.type+" visible = "+v.visible);break;case Et.EVENT_COLUMN_PINNED:var w=e;f=e.columnApi.getColumnState().map(function(je){return{colId:je.colId,pinned:je.pinned}}),this.columnModel.applyColumnState({state:f},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+e.type+" pinned = "+w.pinned);break;case Et.EVENT_COLUMN_RESIZED:var x=e,I={};l.forEach(function(pe){i.logger.log("onColumnEvent-> processing "+e.type+" actualWidth = "+pe.getActualWidth()),I[pe.getId()]={key:pe.getColId(),newWidth:pe.getActualWidth()}}),null===(o=x.flexColumns)||void 0===o||o.forEach(function(pe){I[pe.getId()]&&delete I[pe.getId()]}),this.columnModel.setColumnWidths(Object.values(I),!1,x.finished,"alignedGridChanged")}var F=this.ctrlsService.getGridBodyCtrl().isVerticalScrollShowing(),re=this.gridOptionsWrapper.getAlignedGrids();re&&re.forEach(function(pe){pe.api&&pe.api.setAlwaysShowVerticalScroll(F)})}},XC([Xe("columnModel")],r.prototype,"columnModel",void 0),XC([Xe("ctrlsService")],r.prototype,"ctrlsService",void 0),XC([zA(0,Hc("loggerFactory"))],r.prototype,"setBeans",null),XC([qi],r.prototype,"init",null),XC([Kr("alignedGridsService")],r)}(Zi),g3=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),KC=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},qV=function(t,r){return function(e,i){r(e,i,t)}},qA=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return g3(r,t),r.prototype.setBeans=function(e){this.logger=e.create("selectionService"),this.reset()},r.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.addManagedListener(this.eventService,Et.EVENT_ROW_SELECTED,this.onRowSelected.bind(this))},r.prototype.setLastSelectedNode=function(e){this.lastSelectedNode=e},r.prototype.getLastSelectedNode=function(){return this.lastSelectedNode},r.prototype.getSelectedNodes=function(){var e=[];return Vo(this.selectedNodes,function(i,o){o&&e.push(o)}),e},r.prototype.getSelectedRows=function(){var e=[];return Vo(this.selectedNodes,function(i,o){o&&o.data&&e.push(o.data)}),e},r.prototype.removeGroupsFromSelection=function(){var e=this;Vo(this.selectedNodes,function(i,o){o&&o.group&&(e.selectedNodes[o.id]=void 0)})},r.prototype.updateGroupsFromChildrenSelections=function(e){if(this.gridOptionsWrapper.isGroupSelectsChildren()&&this.rowModel.getType()===Nn.ROW_MODEL_TYPE_CLIENT_SIDE){var o=this.rowModel.getRootNode();e||(e=new SS(!0,o)).setInactive(),e.forEachChangedNodeDepthFirst(function(s){if(s!==o){var a=s.calculateSelectedFromChildren();s.selectThisNode(null!==a&&a)}})}},r.prototype.getNodeForIdIfSelected=function(e){return this.selectedNodes[e]},r.prototype.clearOtherNodes=function(e){var i=this,o={},s=0;return Vo(this.selectedNodes,function(a,l){l&&l.id!==e.id&&(s+=i.selectedNodes[l.id].setSelectedParams({newValue:!1,clearSelection:!1,suppressFinishActions:!0}),i.groupSelectsChildren&&l.parent&&(o[l.parent.id]=l.parent))}),Vo(o,function(a,l){var c=l.calculateSelectedFromChildren();l.selectThisNode(null!==c&&c)}),s},r.prototype.onRowSelected=function(e){var i=e.node;this.groupSelectsChildren&&i.group||(this.selectedNodes[i.id]=i.isSelected()?i:void 0)},r.prototype.syncInRowNode=function(e,i){this.syncInOldRowNode(e,i),this.syncInNewRowNode(e)},r.prototype.syncInOldRowNode=function(e,i){rr(i)&&e.id!==i.id&&i&&this.selectedNodes[i.id]==e&&(this.selectedNodes[i.id]=i)},r.prototype.syncInNewRowNode=function(e){rr(this.selectedNodes[e.id])?(e.setSelectedInitialValue(!0),this.selectedNodes[e.id]=e):e.setSelectedInitialValue(!1)},r.prototype.reset=function(){this.logger.log("reset"),this.selectedNodes={},this.lastSelectedNode=null},r.prototype.getBestCostNodeSelection=function(){if(this.rowModel.getType()===Nn.ROW_MODEL_TYPE_CLIENT_SIDE){var i=this.rowModel.getTopLevelNodes();if(null!==i){var o=[];return function s(a){for(var l=0,c=a.length;l<c;l++){var d=a[l];d.isSelected()?o.push(d):d.group&&d.children&&s(d.children)}}(i),o}console.warn("AG Grid: `selectAll` not available doing `rowModel=virtual`")}else console.warn("AG Grid: `getBestCostNodeSelection` is only available when using normal row model")},r.prototype.setRowModel=function(e){this.rowModel=e},r.prototype.isEmpty=function(){var e=0;return Vo(this.selectedNodes,function(i,o){o&&e++}),0===e},r.prototype.deselectAllRowNodes=function(e){void 0===e&&(e=!1);var i=function(l){return l.selectThisNode(!1)},o=this.rowModel.getType()===Nn.ROW_MODEL_TYPE_CLIENT_SIDE;if(e){if(!o)return void console.error("AG Grid: selecting just filtered only works with In Memory Row Model");this.rowModel.forEachNodeAfterFilter(i)}else Vo(this.selectedNodes,function(l,c){c&&i(c)}),this.reset();o&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections(),this.eventService.dispatchEvent({type:Et.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi})},r.prototype.selectAllRowNodes=function(e){if(void 0===e&&(e=!1),this.rowModel.getType()!==Nn.ROW_MODEL_TYPE_CLIENT_SIDE)throw new Error("selectAll only available with normal row model, ie not "+this.rowModel.getType());var i=this.rowModel,o=function(a){return a.selectThisNode(!0)};e?i.forEachNodeAfterFilter(o):i.forEachNode(o),this.rowModel.getType()===Nn.ROW_MODEL_TYPE_CLIENT_SIDE&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections(),this.eventService.dispatchEvent({type:Et.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi})},r.prototype.selectNode=function(e,i){e&&e.setSelectedParams({newValue:!0,clearSelection:!i})},r.prototype.deselectIndex=function(e){var i=this.rowModel.getRow(e);this.deselectNode(i)},r.prototype.deselectNode=function(e){e&&e.setSelectedParams({newValue:!1,clearSelection:!1})},r.prototype.selectIndex=function(e,i){var o=this.rowModel.getRow(e);this.selectNode(o,i)},KC([Xe("rowModel")],r.prototype,"rowModel",void 0),KC([Xe("columnApi")],r.prototype,"columnApi",void 0),KC([Xe("gridApi")],r.prototype,"gridApi",void 0),KC([qV(0,Hc("loggerFactory"))],r.prototype,"setBeans",null),KC([qi],r.prototype,"init",null),KC([Kr("selectionService")],r)}(Zi),NE=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},v3=function(){function t(){}return t.prototype.sizeColumnsToFit=function(r){typeof r>"u"&&console.error("AG Grid: missing parameter to columnApi.sizeColumnsToFit(gridWidth)"),this.columnModel.sizeColumnsToFit(r,"api")},t.prototype.setColumnGroupOpened=function(r,e){this.columnModel.setColumnGroupOpened(r,e,"api")},t.prototype.getColumnGroup=function(r,e){return this.columnModel.getColumnGroup(r,e)},t.prototype.getProvidedColumnGroup=function(r){return this.columnModel.getProvidedColumnGroup(r)},t.prototype.getDisplayNameForColumn=function(r,e){return this.columnModel.getDisplayNameForColumn(r,e)||""},t.prototype.getDisplayNameForColumnGroup=function(r,e){return this.columnModel.getDisplayNameForColumnGroup(r,e)||""},t.prototype.getColumn=function(r){return this.columnModel.getPrimaryColumn(r)},t.prototype.getColumns=function(){return this.columnModel.getAllPrimaryColumns()},t.prototype.applyColumnState=function(r){return this.columnModel.applyColumnState(r,"api")},t.prototype.getColumnState=function(){return this.columnModel.getColumnState()},t.prototype.resetColumnState=function(){this.columnModel.resetColumnState("api")},t.prototype.getColumnGroupState=function(){return this.columnModel.getColumnGroupState()},t.prototype.setColumnGroupState=function(r){this.columnModel.setColumnGroupState(r,"api")},t.prototype.resetColumnGroupState=function(){this.columnModel.resetColumnGroupState("api")},t.prototype.isPinning=function(){return this.columnModel.isPinningLeft()||this.columnModel.isPinningRight()},t.prototype.isPinningLeft=function(){return this.columnModel.isPinningLeft()},t.prototype.isPinningRight=function(){return this.columnModel.isPinningRight()},t.prototype.getDisplayedColAfter=function(r){return this.columnModel.getDisplayedColAfter(r)},t.prototype.getDisplayedColBefore=function(r){return this.columnModel.getDisplayedColBefore(r)},t.prototype.setColumnVisible=function(r,e){this.columnModel.setColumnVisible(r,e,"api")},t.prototype.setColumnsVisible=function(r,e){this.columnModel.setColumnsVisible(r,e,"api")},t.prototype.setColumnPinned=function(r,e){this.columnModel.setColumnPinned(r,e,"api")},t.prototype.setColumnsPinned=function(r,e){this.columnModel.setColumnsPinned(r,e,"api")},t.prototype.getAllGridColumns=function(){return this.columnModel.getAllGridColumns()},t.prototype.getDisplayedLeftColumns=function(){return this.columnModel.getDisplayedLeftColumns()},t.prototype.getDisplayedCenterColumns=function(){return this.columnModel.getDisplayedCenterColumns()},t.prototype.getDisplayedRightColumns=function(){return this.columnModel.getDisplayedRightColumns()},t.prototype.getAllDisplayedColumns=function(){return this.columnModel.getAllDisplayedColumns()},t.prototype.getAllDisplayedVirtualColumns=function(){return this.columnModel.getViewportColumns()},t.prototype.moveColumn=function(r,e){"number"==typeof r?(console.warn("AG Grid: you are using moveColumn(fromIndex, toIndex) - moveColumn takes a column key and a destination index, not two indexes, to move with indexes use moveColumnByIndex(from,to) instead"),this.columnModel.moveColumnByIndex(r,e,"api")):this.columnModel.moveColumn(r,e,"api")},t.prototype.moveColumnByIndex=function(r,e){this.columnModel.moveColumnByIndex(r,e,"api")},t.prototype.moveColumns=function(r,e){this.columnModel.moveColumns(r,e,"api")},t.prototype.moveRowGroupColumn=function(r,e){this.columnModel.moveRowGroupColumn(r,e)},t.prototype.setColumnAggFunc=function(r,e){this.columnModel.setColumnAggFunc(r,e)},t.prototype.setColumnWidth=function(r,e,i,o){void 0===i&&(i=!0),this.columnModel.setColumnWidths([{key:r,newWidth:e}],!1,i,o)},t.prototype.setColumnWidths=function(r,e,i){void 0===e&&(e=!0),this.columnModel.setColumnWidths(r,!1,e,i)},t.prototype.setPivotMode=function(r){this.columnModel.setPivotMode(r)},t.prototype.isPivotMode=function(){return this.columnModel.isPivotMode()},t.prototype.getSecondaryPivotColumn=function(r,e){return console.warn("AG Grid: since version 28.0.x getSecondaryPivotColumn has been renamed, please use getPivotResultColumn instead"),this.getPivotResultColumn(r,e)},t.prototype.getPivotResultColumn=function(r,e){return this.columnModel.getSecondaryPivotColumn(r,e)},t.prototype.setValueColumns=function(r){this.columnModel.setValueColumns(r,"api")},t.prototype.getValueColumns=function(){return this.columnModel.getValueColumns()},t.prototype.removeValueColumn=function(r){this.columnModel.removeValueColumn(r,"api")},t.prototype.removeValueColumns=function(r){this.columnModel.removeValueColumns(r,"api")},t.prototype.addValueColumn=function(r){this.columnModel.addValueColumn(r,"api")},t.prototype.addValueColumns=function(r){this.columnModel.addValueColumns(r,"api")},t.prototype.setRowGroupColumns=function(r){this.columnModel.setRowGroupColumns(r,"api")},t.prototype.removeRowGroupColumn=function(r){this.columnModel.removeRowGroupColumn(r,"api")},t.prototype.removeRowGroupColumns=function(r){this.columnModel.removeRowGroupColumns(r,"api")},t.prototype.addRowGroupColumn=function(r){this.columnModel.addRowGroupColumn(r,"api")},t.prototype.addRowGroupColumns=function(r){this.columnModel.addRowGroupColumns(r,"api")},t.prototype.getRowGroupColumns=function(){return this.columnModel.getRowGroupColumns()},t.prototype.setPivotColumns=function(r){this.columnModel.setPivotColumns(r,"api")},t.prototype.removePivotColumn=function(r){this.columnModel.removePivotColumn(r,"api")},t.prototype.removePivotColumns=function(r){this.columnModel.removePivotColumns(r,"api")},t.prototype.addPivotColumn=function(r){this.columnModel.addPivotColumn(r,"api")},t.prototype.addPivotColumns=function(r){this.columnModel.addPivotColumns(r,"api")},t.prototype.getPivotColumns=function(){return this.columnModel.getPivotColumns()},t.prototype.getLeftDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeLeft()},t.prototype.getCenterDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeCentre()},t.prototype.getRightDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeRight()},t.prototype.getAllDisplayedColumnGroups=function(){return this.columnModel.getAllDisplayedTrees()},t.prototype.autoSizeColumn=function(r,e){return this.columnModel.autoSizeColumn(r,e,"api")},t.prototype.autoSizeColumns=function(r,e){this.columnModel.autoSizeColumns({columns:r,skipHeader:e})},t.prototype.autoSizeAllColumns=function(r){this.columnModel.autoSizeAllColumns(r,"api")},t.prototype.setSecondaryColumns=function(r){console.warn("AG Grid: since version 28.0.x setSecondaryColumns has been renamed, please use setPivotResultColumns instead"),this.setPivotResultColumns(r)},t.prototype.setPivotResultColumns=function(r){this.columnModel.setSecondaryColumns(r,"api")},t.prototype.getSecondaryColumns=function(){return console.warn("AG Grid: since version 28.0.x getSecondaryColumns has been renamed, please use getPivotResultColumns instead"),this.getPivotResultColumns()},t.prototype.getPivotResultColumns=function(){return this.columnModel.getSecondaryColumns()},t.prototype.getPrimaryColumns=function(){return console.warn("AG Grid: since version 28.0.x getPrimaryColumns has been renamed, please use getColumns instead"),this.getColumns()},t.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid=function(){setTimeout(ln.removeAllReferences.bind(window,this,"Column API"),100)},t.prototype.getAllColumns=function(){return console.warn("AG Grid: since version 28.0.x getAllColumns has been renamed, please use getColumns instead"),this.getColumns()},t.prototype.columnGroupOpened=function(r,e){console.error("AG Grid: columnGroupOpened no longer exists, use setColumnGroupOpened"),this.setColumnGroupOpened(r,e)},t.prototype.hideColumns=function(r,e){console.error("AG Grid: hideColumns is deprecated, use setColumnsVisible"),this.columnModel.setColumnsVisible(r,!e,"api")},t.prototype.hideColumn=function(r,e){console.error("AG Grid: hideColumn is deprecated, use setColumnVisible"),this.columnModel.setColumnVisible(r,!e,"api")},t.prototype.setState=function(r){return console.error("AG Grid: setState is deprecated, use setColumnState"),this.setColumnState(r)},t.prototype.getState=function(){return console.error("AG Grid: getState is deprecated, use getColumnState"),this.getColumnState()},t.prototype.resetState=function(){console.error("AG Grid: resetState is deprecated, use resetColumnState"),this.resetColumnState()},t.prototype.getAggregationColumns=function(){return console.error("AG Grid: getAggregationColumns is deprecated, use getValueColumns"),this.columnModel.getValueColumns()},t.prototype.removeAggregationColumn=function(r){console.error("AG Grid: removeAggregationColumn is deprecated, use removeValueColumn"),this.columnModel.removeValueColumn(r,"api")},t.prototype.removeAggregationColumns=function(r){console.error("AG Grid: removeAggregationColumns is deprecated, use removeValueColumns"),this.columnModel.removeValueColumns(r,"api")},t.prototype.addAggregationColumn=function(r){console.error("AG Grid: addAggregationColumn is deprecated, use addValueColumn"),this.columnModel.addValueColumn(r,"api")},t.prototype.addAggregationColumns=function(r){console.error("AG Grid: addAggregationColumns is deprecated, use addValueColumns"),this.columnModel.addValueColumns(r,"api")},t.prototype.setColumnAggFunction=function(r,e){console.error("AG Grid: setColumnAggFunction is deprecated, use setColumnAggFunc"),this.columnModel.setColumnAggFunc(r,e,"api")},t.prototype.getDisplayNameForCol=function(r){return console.error("AG Grid: getDisplayNameForCol is deprecated, use getDisplayNameForColumn"),this.getDisplayNameForColumn(r,null)},t.prototype.setColumnState=function(r){return console.error("AG Grid: setColumnState is deprecated, use applyColumnState"),this.columnModel.applyColumnState({state:r,applyOrder:!0},"api")},t.prototype.getOriginalColumnGroup=function(r){return console.error("AG Grid: getOriginalColumnGroup is deprecated, use getProvidedColumnGroup"),this.columnModel.getProvidedColumnGroup(r)},NE([Xe("columnModel")],t.prototype,"columnModel",void 0),NE([Ru],t.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),NE([Kr("columnApi")],t)}(),_3=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),QC=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},y3=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.initialised=!1,e}return _3(r,t),r.prototype.init=function(){var e=this;this.cellExpressions=this.gridOptionsWrapper.isEnableCellExpressions(),this.initialised=!0,this.eventService.addEventListener(Et.EVENT_CELL_VALUE_CHANGED,function(i){return e.callColumnCellValueChangedHandler(i)},this.gridOptionsWrapper.useAsyncEvents())},r.prototype.getValue=function(e,i,o,s){if(void 0===o&&(o=!1),void 0===s&&(s=!1),this.initialised||this.init(),i){var f,a=e.getColDef(),l=a.field,c=e.getId(),d=i.data,v=i.groupData&&void 0!==i.groupData[c],w=!s&&i.aggData&&void 0!==i.aggData[c];if(o&&a.filterValueGetter?f=this.executeFilterValueGetter(a.filterValueGetter,d,e,i):this.gridOptionsWrapper.isTreeData()&&w?f=i.aggData[c]:this.gridOptionsWrapper.isTreeData()&&a.valueGetter?f=this.executeValueGetter(a.valueGetter,d,e,i):this.gridOptionsWrapper.isTreeData()&&l&&d?f=v0(d,l,e.isFieldContainsDots()):v?f=i.groupData[c]:w?f=i.aggData[c]:a.valueGetter?f=this.executeValueGetter(a.valueGetter,d,e,i):l&&d&&(f=v0(d,l,e.isFieldContainsDots())),this.cellExpressions&&"string"==typeof f&&0===f.indexOf("=")){var x=f.substring(1);f=this.executeValueGetter(x,d,e,i)}if(null==f){var I=this.getOpenedGroup(i,e);if(null!=I)return I}return f}},r.prototype.getOpenedGroup=function(e,i){if(this.gridOptionsWrapper.isShowOpenedGroup()&&i.getColDef().showRowGroup)for(var s=i.getColDef().showRowGroup,a=e.parent;null!=a;){if(a.rowGroupColumn&&(!0===s||s===a.rowGroupColumn.getId()))return a.key;a=a.parent}},r.prototype.setValue=function(e,i,o,s){var a=this.columnModel.getPrimaryColumn(i);if(!e||!a)return!1;$o(e.data)&&(e.data={});var l=a.getColDef(),c=l.field,d=l.newValueHandler,f=l.valueSetter;if($o(c)&&$o(d)&&$o(f))return console.warn("AG Grid: you need either field or valueSetter set on colDef for editing to work"),!1;var w,v={node:e,data:e.data,oldValue:this.getValue(a,e),newValue:o,colDef:a.getColDef(),column:a,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};return v.newValue=o,void 0===(w=d&&rr(d)?d(v):rr(f)?this.expressionService.evaluate(f,v):this.setValueUsingField(e.data,c,o,a.isFieldContainsDots()))&&(w=!0),!!w&&(e.resetQuickFilterAggregateText(),this.valueCache.onDataChanged(),v.newValue=this.getValue(a,e),this.eventService.dispatchEvent({type:Et.EVENT_CELL_VALUE_CHANGED,event:null,rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:v.column,api:v.api,columnApi:v.columnApi,colDef:v.colDef,context:v.context,data:e.data,node:e,oldValue:v.oldValue,newValue:v.newValue,value:v.newValue,source:s}),!0)},r.prototype.callColumnCellValueChangedHandler=function(e){var i=e.colDef.onCellValueChanged;"function"==typeof i&&i({node:e.node,data:e.data,oldValue:e.oldValue,newValue:e.newValue,colDef:e.colDef,column:e.column,api:e.api,columnApi:e.columnApi,context:e.context})},r.prototype.setValueUsingField=function(e,i,o,s){if(!i)return!1;if(s)for(var l=i.split("."),c=e;l.length>0&&c;){var d=l.shift();0===l.length?c[d]=o:c=c[d]}else e[i]=o;return!0},r.prototype.executeFilterValueGetter=function(e,i,o,s){var a={data:i,node:s,column:o,colDef:o.getColDef(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),getValue:this.getValueCallback.bind(this,s)};return this.expressionService.evaluate(e,a)},r.prototype.executeValueGetter=function(e,i,o,s){var a=o.getId(),l=this.valueCache.getValue(s,a);if(void 0!==l)return l;var c={data:i,node:s,column:o,colDef:o.getColDef(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),getValue:this.getValueCallback.bind(this,s)},d=this.expressionService.evaluate(e,c);return this.valueCache.setValue(s,a,d),d},r.prototype.getValueCallback=function(e,i){var o=this.columnModel.getPrimaryColumn(i);return o?this.getValue(o,e):null},r.prototype.getKeyForNode=function(e,i){var o=this.getValue(e,i),s=e.getColDef().keyCreator,a=o;return s&&(a=s({value:o,colDef:e.getColDef(),column:e,node:i,data:i.data,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()})),"string"==typeof a||null==a||"[object Object]"===(a=String(a))&&sa(function(){console.warn("AG Grid: a column you are grouping or pivoting by has objects as values. If you want to group by complex objects then either a) use a colDef.keyCreator (se AG Grid docs) or b) to toString() on the object to return a key")},"getKeyForNode - warn about [object,object]"),a},QC([Xe("expressionService")],r.prototype,"expressionService",void 0),QC([Xe("columnModel")],r.prototype,"columnModel",void 0),QC([Xe("valueCache")],r.prototype,"valueCache",void 0),QC([qi],r.prototype,"init",null),QC([Kr("valueService")],r)}(Zi),GE=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),b3=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},XV=function(t,r){return function(e,i){r(e,i,t)}},C3=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.expressionToFunctionCache={},e}return GE(r,t),r.prototype.setBeans=function(e){this.logger=e.create("ExpressionService")},r.prototype.evaluate=function(e,i){return"function"==typeof e?e(i):"string"==typeof e?this.evaluateExpression(e,i):void console.error("AG Grid: value should be either a string or a function",e)},r.prototype.evaluateExpression=function(e,i){try{return this.createExpressionFunction(e)(i.value,i.context,i.oldValue,i.newValue,i.value,i.node,i.data,i.colDef,i.rowIndex,i.api,i.columnApi,i.getValue,i.column,i.columnGroup)}catch(a){return console.log("Processing of the expression failed"),console.log("Expression = "+e),console.log("Params =",i),console.log("Exception = "+a),null}},r.prototype.createExpressionFunction=function(e){if(this.expressionToFunctionCache[e])return this.expressionToFunctionCache[e];var i=this.createFunctionBody(e),o=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, columnApi, getValue, column, columnGroup",i);return this.expressionToFunctionCache[e]=o,o},r.prototype.createFunctionBody=function(e){return e.indexOf("return")>=0?e:"return "+e+";"},b3([XV(0,Hc("loggerFactory"))],r.prototype,"setBeans",null),b3([Kr("expressionService")],r)}(Zi),XA=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),QV=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.templateCache={},e.waitingCallbacks={},e}return XA(r,t),r.prototype.getTemplate=function(e,i){var o=this.templateCache[e];if(o)return o;var s=this.waitingCallbacks[e],a=this;if(!s){this.waitingCallbacks[e]=s=[];var l=new XMLHttpRequest;l.onload=function(){a.handleHttpResult(this,e)},l.open("GET",e),l.send()}return i&&s.push(i),null},r.prototype.handleHttpResult=function(e,i){if(200===e.status&&null!==e.response){this.templateCache[i]=e.response||e.responseText;for(var o=this.waitingCallbacks[i],s=0;s<o.length;s++)(0,o[s])()}else console.warn("AG Grid: Unable to get template error "+e.status+" - "+i)},r=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s}([Kr("templateService")],r),r}(Zi),BE=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),w3=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},JV=function(t,r){return function(e,i){r(e,i,t)}},ZV=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return BE(r,t),r.prototype.setBeans=function(e){this.logging=e.isDebug()},r.prototype.create=function(e){return new KA(e,this.isLogging.bind(this))},r.prototype.isLogging=function(){return this.logging},w3([JV(0,Hc("gridOptionsWrapper"))],r.prototype,"setBeans",null),w3([Kr("loggerFactory")],r)}(Zi),KA=function(){function t(r,e){this.name=r,this.isLoggingFunc=e}return t.prototype.isLogging=function(){return this.isLoggingFunc()},t.prototype.log=function(r){this.isLoggingFunc()&&console.log("AG Grid."+this.name+": "+r)},t}(),ej=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Z0=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},T3=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return ej(r,t),r.prototype.setComp=function(e,i,o){var s=this;this.view=e,this.eGridHostDiv=i,this.eGui=o,this.dragAndDropService.addDropTarget({getContainer:function(){return s.eGui},isInterestedIn:function(l){return l===Ed.HeaderCell||l===Ed.ToolPanel},getIconName:function(){return Zl.ICON_NOT_ALLOWED}}),this.mouseEventService.stampTopLevelGridCompWithGridInstance(i),this.createManagedBean(new qI(this.view)),this.addRtlSupport(),this.addManagedListener(this,Et.EVENT_KEYBOARD_FOCUS,function(){s.view.addOrRemoveKeyboardFocusClass(!0)}),this.addManagedListener(this,Et.EVENT_MOUSE_FOCUS,function(){s.view.addOrRemoveKeyboardFocusClass(!1)});var a=this.resizeObserverService.observeResize(this.eGridHostDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc(function(){return a()}),this.ctrlsService.registerGridCtrl(this)},r.prototype.isDetailGrid=function(){var e,i;return(null===(i=null===(e=this.focusService.findTabbableParent(this.getGui()))||void 0===e?void 0:e.getAttribute("row-id"))||void 0===i?void 0:i.startsWith("detail"))||!1},r.prototype.showDropZones=function(){return qo.isRegistered(mo.RowGroupingModule)},r.prototype.showSideBar=function(){return qo.isRegistered(mo.SideBarModule)},r.prototype.showStatusBar=function(){return qo.isRegistered(mo.StatusBarModule)},r.prototype.showWatermark=function(){return qo.isRegistered(mo.EnterpriseCoreModule)},r.prototype.onGridSizeChanged=function(){this.eventService.dispatchEvent({type:Et.EVENT_GRID_SIZE_CHANGED,api:this.gridApi,columnApi:this.columnApi,clientWidth:this.eGridHostDiv.clientWidth,clientHeight:this.eGridHostDiv.clientHeight})},r.prototype.addRtlSupport=function(){var e=this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr";this.view.setRtlClass(e)},r.prototype.destroyGridUi=function(){this.view.destroyGridUi()},r.prototype.getGui=function(){return this.eGui},r.prototype.setResizeCursor=function(e){this.view.setCursor(e?"ew-resize":null)},r.prototype.disableUserSelect=function(e){this.view.setUserSelect(e?"none":null)},r.prototype.focusNextInnerContainer=function(e){var i=this.gridOptionsWrapper.getDocument(),o=this.view.getFocusableContainers(),a=o.findIndex(function(l){return l.contains(i.activeElement)})+(e?-1:1);return!(a<=0||a>=o.length)&&this.focusService.focusInto(o[a])},r.prototype.focusInnerElement=function(e){var i=this.view.getFocusableContainers();if(e){if(i.length>1)return this.focusService.focusInto(Ja(i),!0);var o=Ja(this.columnModel.getAllDisplayedColumns());if(this.focusService.focusGridView(o,!0))return!0}return this.focusService.focusFirstHeader()},r.prototype.forceFocusOutOfContainer=function(e){void 0===e&&(e=!1),this.view.forceFocusOutOfContainer(e)},Z0([Xe("columnApi")],r.prototype,"columnApi",void 0),Z0([Xe("gridApi")],r.prototype,"gridApi",void 0),Z0([Xe("focusService")],r.prototype,"focusService",void 0),Z0([Xe("resizeObserverService")],r.prototype,"resizeObserverService",void 0),Z0([Xe("columnModel")],r.prototype,"columnModel",void 0),Z0([Xe("ctrlsService")],r.prototype,"ctrlsService",void 0),Z0([Xe("mouseEventService")],r.prototype,"mouseEventService",void 0),Z0([Xe("dragAndDropService")],r.prototype,"dragAndDropService",void 0),r}(Zi),S3=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),JC=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},QA=function(t){function r(e){var i=t.call(this,void 0)||this;return i.eGridDiv=e,i}return S3(r,t),r.prototype.postConstruct=function(){var e=this;this.logger=this.loggerFactory.create("GridComp");var i={destroyGridUi:function(){return e.destroyBean(e)},setRtlClass:function(s){return e.addCssClass(s)},addOrRemoveKeyboardFocusClass:function(s){return e.addOrRemoveCssClass(kS.AG_KEYBOARD_FOCUS,s)},forceFocusOutOfContainer:this.forceFocusOutOfContainer.bind(this),updateLayoutClasses:this.updateLayoutClasses.bind(this),getFocusableContainers:this.getFocusableContainers.bind(this),setUserSelect:function(s){e.getGui().style.userSelect=s??"",e.getGui().style.webkitUserSelect=s??""},setCursor:function(s){e.getGui().style.cursor=s??""}};this.ctrl=this.createManagedBean(new T3);var o=this.createTemplate();this.setTemplate(o),this.ctrl.setComp(i,this.eGridDiv,this.getGui()),this.insertGridIntoDom(),this.initialiseTabGuard({onTabKeyDown:function(){},focusInnerElement:function(s){return e.ctrl.focusInnerElement(s)}})},r.prototype.insertGridIntoDom=function(){var e=this,i=this.getGui();this.eGridDiv.appendChild(i),this.addDestroyFunc(function(){e.eGridDiv.removeChild(i),e.logger.log("Grid removed from DOM")})},r.prototype.updateLayoutClasses=function(e,i){var o=this.eRootWrapperBody.classList;o.toggle(Yd.AUTO_HEIGHT,i.autoHeight),o.toggle(Yd.NORMAL,i.normal),o.toggle(Yd.PRINT,i.print),this.addOrRemoveCssClass(Yd.AUTO_HEIGHT,i.autoHeight),this.addOrRemoveCssClass(Yd.NORMAL,i.normal),this.addOrRemoveCssClass(Yd.PRINT,i.print)},r.prototype.createTemplate=function(){return'<div class="ag-root-wrapper">\n                '+(this.ctrl.showDropZones()?"<ag-grid-header-drop-zones></ag-grid-header-drop-zones>":"")+'\n                <div class="ag-root-wrapper-body" ref="rootWrapperBody">\n                    <ag-grid-body ref="gridBody"></ag-grid-body>\n                    '+(this.ctrl.showSideBar()?'<ag-side-bar ref="sideBar"></ag-side-bar>':"")+"\n                </div>\n                "+(this.ctrl.showStatusBar()?'<ag-status-bar ref="statusBar"></ag-status-bar>':"")+"\n                <ag-pagination></ag-pagination>\n                "+(this.ctrl.showWatermark()?"<ag-watermark></ag-watermark>":"")+"\n            </div>"},r.prototype.getFocusableElement=function(){return this.eRootWrapperBody},r.prototype.getFocusableContainers=function(){var e=[this.gridBodyComp.getGui()];return this.sideBarComp&&e.push(this.sideBarComp.getGui()),e.filter(function(i){return Zh(i)})},JC([Xe("loggerFactory")],r.prototype,"loggerFactory",void 0),JC([Ti("gridBody")],r.prototype,"gridBodyComp",void 0),JC([Ti("sideBar")],r.prototype,"sideBarComp",void 0),JC([Ti("rootWrapperBody")],r.prototype,"eRootWrapperBody",void 0),JC([qi],r.prototype,"postConstruct",null),r}(zC),x3=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),VE=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},GK=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var o,a,i=e.call(t),s=[];try{for(;(void 0===r||r-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return s},jE=function(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(GK(arguments[r]));return t},E3=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}var e;return x3(r,t),e=r,r.prototype.progressSort=function(i,o,s){var a=this.getNextSortDirection(i);this.setSortForColumn(i,a,o,s)},r.prototype.setSortForColumn=function(i,o,s,a){var l;o!==Nn.SORT_ASC&&o!==Nn.SORT_DESC&&(o=null);var d=[i];if(this.gridOptionsWrapper.isColumnsSortingCoupledToGroup()&&i.getColDef().showRowGroup){var v=null===(l=this.columnModel.getSourceColumnsForGroupColumn(i))||void 0===l?void 0:l.filter(function(x){return x.getColDef().sortable});v&&(d=jE([i],v))}d.forEach(function(x){return x.setSort(o,a)}),(s||this.gridOptionsWrapper.isAlwaysMultiSort())&&!this.gridOptionsWrapper.isSuppressMultiSort()||this.clearSortBarTheseColumns(d,a),this.updateSortIndex(i),this.dispatchSortChangedEvents(a)},r.prototype.updateSortIndex=function(i){var o=this.gridOptionsWrapper.isColumnsSortingCoupledToGroup(),s=this.columnModel.getGroupDisplayColumnForGroup(i.getId()),a=o&&s||i,l=this.getIndexableColumnsOrdered();this.columnModel.getPrimaryAndSecondaryAndAutoColumns().forEach(function(d){return d.setSortIndex(null)});var c=l.filter(function(d){return d!==i});jE(c,[a]).forEach(function(d,f){return d.setSortIndex(f)})},r.prototype.onSortChanged=function(i){this.dispatchSortChangedEvents(i)},r.prototype.isSortActive=function(){var o=this.columnModel.getPrimaryAndSecondaryAndAutoColumns().filter(function(s){return!!s.getSort()});return o&&o.length>0},r.prototype.dispatchSortChangedEvents=function(i){this.eventService.dispatchEvent({type:Et.EVENT_SORT_CHANGED,api:this.gridApi,columnApi:this.columnApi,source:i})},r.prototype.clearSortBarTheseColumns=function(i,o){this.columnModel.getPrimaryAndSecondaryAndAutoColumns().forEach(function(s){i.includes(s)||s.setSort(void 0,o)})},r.prototype.getNextSortDirection=function(i){var o;if(o=i.getColDef().sortingOrder?i.getColDef().sortingOrder:this.gridOptionsWrapper.getSortingOrder()?this.gridOptionsWrapper.getSortingOrder():e.DEFAULT_SORTING_ORDER,!Array.isArray(o)||o.length<=0)return console.warn("AG Grid: sortingOrder must be an array with at least one element, currently it's "+o),null;var c,s=o.indexOf(i.getSort());return e.DEFAULT_SORTING_ORDER.indexOf(c=s<0||s==o.length-1?o[0]:o[s+1])<0?(console.warn("AG Grid: invalid sort type "+c),null):c},r.prototype.getColumnsOrderedForSort=function(){var i=this.columnModel.getPrimaryAndSecondaryAndAutoColumns(),o={};return i.forEach(function(s,a){return o[s.getId()]=a}),i.sort(function(s,a){var l=s.getSortIndex(),c=a.getSortIndex();return null!=l&&null!=c?l-c:null==l&&null==c?o[s.getId()]>o[a.getId()]?1:-1:null==c?-1:1}),i},r.prototype.getIndexableColumnsOrdered=function(){var i=this;return this.gridOptionsWrapper.isColumnsSortingCoupledToGroup()?this.getColumnsOrderedForSort().filter(function(o){var s;return o.getColDef().showRowGroup?!(!o.getColDef().field||!o.getSort())||(null===(s=i.columnModel.getSourceColumnsForGroupColumn(o))||void 0===s?void 0:s.some(function(l){return!!l.getSort()})):!!o.getSort()}):this.getColumnsWithSortingOrdered()},r.prototype.getColumnsWithSortingOrdered=function(){return this.getColumnsOrderedForSort().filter(function(o){return!!o.getSort()})},r.prototype.getSortModel=function(){return this.getColumnsWithSortingOrdered().map(function(i){return{sort:i.getSort(),colId:i.getId()}})},r.prototype.getSortOptions=function(){return this.getColumnsWithSortingOrdered().map(function(i){return{sort:i.getSort(),column:i}})},r.prototype.canColumnDisplayMixedSort=function(i){var o=this.gridOptionsWrapper.isColumnsSortingCoupledToGroup(),s=!!i.getColDef().showRowGroup;return o&&s},r.prototype.getDisplaySortForColumn=function(i){var o,s=this.columnModel.getSourceColumnsForGroupColumn(i);if(!this.canColumnDisplayMixedSort(i)||null===(o=s)||void 0===o||!o.length)return i.getSort();var l=i.getColDef().field?jE([i],s):s,c=l[0].getSort();return l.every(function(f){return f.getSort()==c})?c:"mixed"},r.prototype.getDisplaySortIndexForColumn=function(i){var o=this;if(!this.gridOptionsWrapper.isColumnsSortingCoupledToGroup())return this.getColumnsWithSortingOrdered().indexOf(i);var a=this.columnModel.getGroupDisplayColumnForGroup(i.getId());return a?i.getSort()?this.getDisplaySortIndexForColumn(a):null:this.getIndexableColumnsOrdered().filter(function(c){return!o.columnModel.getGroupDisplayColumnForGroup(c.getId())}).indexOf(i)},r.DEFAULT_SORTING_ORDER=[Nn.SORT_ASC,Nn.SORT_DESC,null],VE([Xe("columnModel")],r.prototype,"columnModel",void 0),VE([Xe("columnApi")],r.prototype,"columnApi",void 0),VE([Xe("gridApi")],r.prototype,"gridApi",void 0),e=VE([Kr("sortController")],r)}(Zi),BK=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),ZC=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},tj=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return BK(r,t),r.prototype.setMouseOver=function(e){this.selectedColumns=e,this.eventService.dispatchEvent({type:Et.EVENT_COLUMN_HOVER_CHANGED,api:this.gridApi,columnApi:this.columnApi})},r.prototype.clearMouseOver=function(){this.selectedColumns=null,this.eventService.dispatchEvent({type:Et.EVENT_COLUMN_HOVER_CHANGED,api:this.gridApi,columnApi:this.columnApi})},r.prototype.isHovered=function(e){return!!this.selectedColumns&&this.selectedColumns.indexOf(e)>=0},ZC([Xe("columnApi")],r.prototype,"columnApi",void 0),ZC([Xe("gridApi")],r.prototype,"gridApi",void 0),ZC([Kr("columnHoverService")],r)}(Zi),nj=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),AS=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},ij=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.executeNextFuncs=[],e.executeLaterFuncs=[],e.active=!1,e.animationThreadCount=0,e}return nj(r,t),r.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(i){return e.gridBodyCtrl=i.gridBodyCtrl})},r.prototype.isActive=function(){return this.active},r.prototype.start=function(){this.active||this.gridOptionsWrapper.isSuppressColumnMoveAnimation()||this.gridOptionsWrapper.isEnableRtl()||(this.ensureAnimationCssClassPresent(),this.active=!0)},r.prototype.finish=function(){this.active&&(this.flush(),this.active=!1)},r.prototype.executeNextVMTurn=function(e){this.active?this.executeNextFuncs.push(e):e()},r.prototype.executeLaterVMTurn=function(e){this.active?this.executeLaterFuncs.push(e):e()},r.prototype.ensureAnimationCssClassPresent=function(){var e=this;this.animationThreadCount++;var i=this.animationThreadCount;this.gridBodyCtrl.setColumnMovingCss(!0),this.executeLaterFuncs.push(function(){e.animationThreadCount===i&&e.gridBodyCtrl.setColumnMovingCss(!1)})},r.prototype.flush=function(){var e=this.executeNextFuncs;this.executeNextFuncs=[];var i=this.executeLaterFuncs;this.executeLaterFuncs=[],(0!==e.length||0!==i.length)&&(window.setTimeout(function(){return e.forEach(function(o){return o()})},0),window.setTimeout(function(){return i.forEach(function(o){return o()})},300))},AS([Xe("ctrlsService")],r.prototype,"ctrlsService",void 0),AS([qi],r.prototype,"postConstruct",null),AS([Kr("columnAnimationService")],r)}(Zi),av=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),q1=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},td=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}var e;return av(r,t),e=r,r.prototype.createAutoGroupColumns=function(i,o){var s=this,a=[],l=this.gridOptionsWrapper.isTreeData(),c=this.gridOptionsWrapper.isGroupMultiAutoColumn();return l&&c&&(console.warn("AG Grid: you cannot mix groupMultiAutoColumn with treeData, only one column can be used to display groups when doing tree data"),c=!1),c?o.forEach(function(d,f){a.push(s.createOneAutoGroupColumn(i,d,f))}):a.push(this.createOneAutoGroupColumn(i)),a},r.prototype.createOneAutoGroupColumn=function(i,o,s){var l,a=this.generateDefaultColDef(o);l=o?Nn.GROUP_AUTO_COLUMN_ID+"-"+o.getId():e.GROUP_AUTO_COLUMN_BUNDLE_ID,Es(a,this.gridOptionsWrapper.getAutoGroupColumnDef()),(a=this.columnFactory.mergeColDefs(a)).colId=l,this.gridOptionsWrapper.isTreeData()||$o(a.field)&&$o(a.valueGetter)&&$o(a.filterValueGetter)&&(a.filter=!1),s&&s>0&&(a.headerCheckboxSelection=!1);var f=i.find(function(w){return w.getId()==l});if(f)return f.setColDef(a,null),this.columnFactory.applyColumnState(f,a),f;var v=new ms(a,null,l,!0);return this.context.createBean(v),v},r.prototype.generateDefaultColDef=function(i){var o=this.gridOptionsWrapper.getAutoGroupColumnDef(),a={headerName:this.gridOptionsWrapper.getLocaleTextFunc()("group","Group")};if(o&&(o.cellRenderer||o.cellRendererFramework||o.cellRendererSelector)||(a.cellRenderer="agGroupCellRenderer"),i){var c=i.getColDef();Object.assign(a,{headerName:this.columnModel.getDisplayNameForColumn(i,"header"),headerValueGetter:c.headerValueGetter}),(c.cellRenderer||c.cellRendererFramework)&&Object.assign(a,{cellRendererParams:{innerRenderer:c.cellRenderer,innerRendererFramework:c.cellRendererFramework,innerRendererParams:c.cellRendererParams}}),a.showRowGroup=i.getColId()}else a.showRowGroup=!0;return a},r.GROUP_AUTO_COLUMN_BUNDLE_ID=Nn.GROUP_AUTO_COLUMN_ID,q1([Xe("columnModel")],r.prototype,"columnModel",void 0),q1([Xe("columnFactory")],r.prototype,"columnFactory",void 0),e=q1([Kr("autoGroupColService")],r)}(Zi),X1=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),ew=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},Sm=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return X1(r,t),r.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady(function(i){e.centerRowContainerCon=i.centerRowContainerCtrl,e.addManagedListener(e.eventService,Et.EVENT_BODY_HEIGHT_CHANGED,e.onBodyHeightChanged.bind(e)),e.addManagedListener(e.eventService,Et.EVENT_SCROLL_VISIBILITY_CHANGED,e.onScrollVisibilityChanged.bind(e)),e.checkPageSize()})},r.prototype.notActive=function(){return!this.gridOptionsWrapper.isPaginationAutoPageSize()},r.prototype.onScrollVisibilityChanged=function(){this.checkPageSize()},r.prototype.onBodyHeightChanged=function(){this.checkPageSize()},r.prototype.checkPageSize=function(){if(!this.notActive()){var e=this.gridOptionsWrapper.getRowHeightAsNumber(),i=this.centerRowContainerCon.getViewportSizeFeature().getBodyHeight();if(i>0){var o=Math.floor(i/e);this.gridOptionsWrapper.setProperty("paginationPageSize",o)}}},ew([Xe("ctrlsService")],r.prototype,"ctrlsService",void 0),ew([qi],r.prototype,"postConstruct",null),ew([Kr("paginationAutoPageSizeService")],r)}(Zi),tw=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),D3=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},MS=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.cacheVersion=0,e}return tw(r,t),r.prototype.init=function(){this.active=this.gridOptionsWrapper.isValueCache(),this.neverExpires=this.gridOptionsWrapper.isValueCacheNeverExpires()},r.prototype.onDataChanged=function(){this.neverExpires||this.expire()},r.prototype.expire=function(){this.cacheVersion++},r.prototype.setValue=function(e,i,o){this.active&&(e.__cacheVersion!==this.cacheVersion&&(e.__cacheVersion=this.cacheVersion,e.__cacheData={}),e.__cacheData[i]=o)},r.prototype.getValue=function(e,i){if(this.active&&e.__cacheVersion===this.cacheVersion)return e.__cacheData[i]},D3([qi],r.prototype,"init",null),D3([Kr("valueCache")],r)}(Zi),JA=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),RS=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},k3=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return JA(r,t),r.prototype.init=function(){this.rowModel.getType()===Nn.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel),this.addManagedListener(this.eventService,Et.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged.bind(this))},r.prototype.onCellValueChanged=function(e){e.source!==Nn.SOURCE_PASTE&&this.doChangeDetection(e.node,e.column)},r.prototype.doChangeDetection=function(e,i){if(!this.gridOptionsWrapper.isSuppressChangeDetection()){if(this.clientSideRowModel&&!e.isRowPinned()){var o=this.gridOptionsWrapper.isAggregateOnlyChangedColumns(),s=new SS(o,this.clientSideRowModel.getRootNode());s.addParentNode(e.parent,[i]),this.clientSideRowModel.doAggregate(s)}this.rowRenderer.refreshCells()}},RS([Xe("rowModel")],r.prototype,"rowModel",void 0),RS([Xe("rowRenderer")],r.prototype,"rowRenderer",void 0),RS([qi],r.prototype,"init",null),RS([Kr("changeDetectionService")],r)}(Zi),rj=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),I3=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},HE=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return rj(r,t),r.prototype.adaptFunction=function(e,i){var o=this.componentMetadataProvider.retrieve(e);return o&&o.functionAdapter?o.functionAdapter(i):null},r.prototype.adaptCellRendererFunction=function(e){return function(){function o(){}return o.prototype.refresh=function(s){return!1},o.prototype.getGui=function(){return this.eGui},o.prototype.init=function(s){var a=e(s),l=typeof a;this.eGui="string"!==l&&"number"!==l&&"boolean"!==l?null!=a?a:Su("<span></span>"):Su("<span>"+a+"</span>")},o}()},r.prototype.doesImplementIComponent=function(e){return!!e&&e.prototype&&"getGui"in e.prototype},I3([Xe("componentMetadataProvider")],r.prototype,"componentMetadataProvider",void 0),I3([Kr("agComponentUtils")],r)}(Zi),oj=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),ZA=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},sj=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return oj(r,t),r.prototype.postConstruct=function(){this.componentMetaData={dateComponent:{mandatoryMethodList:["getDate","setDate"],optionalMethodList:["afterGuiAttached","setInputPlaceholder","setInputAriaLabel"]},detailCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},headerComponent:{mandatoryMethodList:[],optionalMethodList:["refresh"]},headerGroupComponent:{mandatoryMethodList:[],optionalMethodList:[]},loadingCellRenderer:{mandatoryMethodList:[],optionalMethodList:[]},loadingOverlayComponent:{mandatoryMethodList:[],optionalMethodList:[]},noRowsOverlayComponent:{mandatoryMethodList:[],optionalMethodList:[]},floatingFilterComponent:{mandatoryMethodList:["onParentModelChanged"],optionalMethodList:["afterGuiAttached"]},floatingFilterWrapperComponent:{mandatoryMethodList:[],optionalMethodList:[]},cellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},cellEditor:{mandatoryMethodList:["getValue"],optionalMethodList:["isPopup","isCancelBeforeStart","isCancelAfterEnd","getPopupPosition","focusIn","focusOut","afterGuiAttached"]},innerRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},fullWidthCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},pinnedRowCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},groupRowRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},filter:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged"]},filterComponent:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged"]},statusPanel:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"]},toolPanel:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"]},tooltipComponent:{mandatoryMethodList:[],optionalMethodList:[]}}},r.prototype.retrieve=function(e){return this.componentMetaData[e]},ZA([Xe("agComponentUtils")],r.prototype,"agComponentUtils",void 0),ZA([qi],r.prototype,"postConstruct",null),ZA([Kr("componentMetadataProvider")],r)}(Zi),UE=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),eM=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},iM={"ag-theme-custom":{headerHeight:25,headerCellMinWidth:24,listItemHeight:20,rowHeight:25,chartMenuPanelWidth:220},"ag-theme-material":{headerHeight:56,headerCellMinWidth:48,listItemHeight:32,rowHeight:48,chartMenuPanelWidth:240},"ag-theme-balham":{headerHeight:32,headerCellMinWidth:24,listItemHeight:24,rowHeight:28,chartMenuPanelWidth:220},"ag-theme-alpine":{headerHeight:48,headerCellMinWidth:36,listItemHeight:24,rowHeight:42,chartMenuPanelWidth:240}},M3={headerHeight:["ag-header-row"],headerCellMinWidth:["ag-header-cell"],listItemHeight:["ag-virtual-list-item"],rowHeight:["ag-row"],chartMenuPanelWidth:["ag-chart-docked-container"]},xm={},lj=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return UE(r,t),r.prototype.getSassVariable=function(e,i){var o="ag-theme-"+(e.match("material")?"material":e.match("balham")?"balham":e.match("alpine")?"alpine":"custom"),s=iM[o][i],a=0;xm[e]||(xm[e]={});var l=xm[e][i];if(null!=l)return l;if(M3[i]){var c=M3[i],d=document.createElement("div");d.classList.add(e),d.style.position="absolute";var f=c.reduce(function(w,x){var I=document.createElement("div");return I.style.position="static",I.classList.add(x),w.appendChild(I),I},d);if(document.body){document.body.appendChild(d);var v=-1!==i.toLowerCase().indexOf("height")?"height":"width";a=parseInt(window.getComputedStyle(f)[v],10),document.body.removeChild(d)}}return xm[e][i]=a||s,xm[e][i]},r.prototype.isThemeDark=function(){var e=this.getTheme().theme;return!!e&&e.indexOf("dark")>=0},r.prototype.chartMenuPanelWidth=function(){var e=this.getTheme().themeFamily;return this.getSassVariable(e,"chartMenuPanelWidth")},r.prototype.getTheme=function(){for(var e=/\bag-(material|(?:theme-([\w\-]*)))\b/g,i=this.eGridDiv,o=null,s=[];i;){if(o=e.exec(i.className)){var a=i.className.match(e);a&&(s=a);break}i=i.parentElement||void 0}if(!o)return{allThemes:s};var l=o[0];if(void 0===o[2]){var d=l.replace("ag-","ag-theme-");sa(function(){return console.warn("AG Grid: As of v19 old theme are no longer provided. Please replace "+l+" with "+d+".")},"using-old-theme")}return{theme:l,el:i,themeFamily:l.replace(/-dark$/,""),allThemes:s}},eM([Xe("eGridDiv")],r.prototype,"eGridDiv",void 0),eM([Kr("environment")],r)}(Zi),R3=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),$E=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},O3=function(t,r){return function(e,i){r(e,i,t)}},F3=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.scrollY=0,e.uiBodyHeight=0,e}return R3(r,t),r.prototype.agWire=function(e){this.logger=e.create("RowContainerHeightService")},r.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Et.EVENT_BODY_HEIGHT_CHANGED,this.updateOffset.bind(this)),this.maxDivHeight=G2(),this.logger.log("maxDivHeight = "+this.maxDivHeight)},r.prototype.isStretching=function(){return this.stretching},r.prototype.getDivStretchOffset=function(){return this.divStretchOffset},r.prototype.updateOffset=function(){if(this.stretching){var i=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition().top,o=this.getUiBodyHeight();(i!==this.scrollY||o!==this.uiBodyHeight)&&(this.scrollY=i,this.uiBodyHeight=o,this.calculateOffset())}},r.prototype.calculateOffset=function(){this.setUiContainerHeight(this.maxDivHeight),this.pixelsToShave=this.modelHeight-this.uiContainerHeight,this.maxScrollY=this.uiContainerHeight-this.uiBodyHeight;var e=this.scrollY/this.maxScrollY,i=e*this.pixelsToShave;this.logger.log("Div Stretch Offset = "+i+" ("+this.pixelsToShave+" * "+e+")"),this.setDivStretchOffset(i)},r.prototype.setUiContainerHeight=function(e){e!==this.uiContainerHeight&&(this.uiContainerHeight=e,this.eventService.dispatchEvent({type:Et.EVENT_ROW_CONTAINER_HEIGHT_CHANGED}))},r.prototype.clearOffset=function(){this.setUiContainerHeight(this.modelHeight),this.pixelsToShave=0,this.setDivStretchOffset(0)},r.prototype.setDivStretchOffset=function(e){var i="number"==typeof e?Math.floor(e):null;this.divStretchOffset!==i&&(this.divStretchOffset=i,this.eventService.dispatchEvent({type:Et.EVENT_HEIGHT_SCALE_CHANGED}))},r.prototype.setModelHeight=function(e){this.modelHeight=e,this.stretching=null!=e&&this.maxDivHeight>0&&e>this.maxDivHeight,this.stretching?this.calculateOffset():this.clearOffset()},r.prototype.getUiContainerHeight=function(){return this.uiContainerHeight},r.prototype.getRealPixelPosition=function(e){return e-this.divStretchOffset},r.prototype.getUiBodyHeight=function(){var i=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition();return i.bottom-i.top},r.prototype.getScrollPositionForPixel=function(e){if(this.pixelsToShave<=0)return e;var i=this.modelHeight-this.getUiBodyHeight();return this.maxScrollY*(e/i)},$E([Xe("ctrlsService")],r.prototype,"ctrlsService",void 0),$E([O3(0,Hc("loggerFactory"))],r.prototype,"agWire",null),$E([qi],r.prototype,"postConstruct",null),$E([Kr("rowContainerHeightService")],r)}(Zi),nw=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),rM=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},oM=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return nw(r,t),r.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.isRowSelectableFunc=this.gridOptionsWrapper.getIsRowSelectableFunc()},r.prototype.updateSelectableAfterGrouping=function(e){this.isRowSelectableFunc&&this.recurseDown(e.childrenAfterGroup,function(o){return o.childrenAfterGroup})},r.prototype.recurseDown=function(e,i){var o=this;e&&e.forEach(function(s){var a;s.group&&(s.hasChildren()&&o.recurseDown(i(s),i),a=o.groupSelectsChildren?rr((i(s)||[]).find(function(c){return!0===c.selectable})):!!o.isRowSelectableFunc&&o.isRowSelectableFunc(s),s.setRowSelectable(a))})},rM([qi],r.prototype,"init",null),rM([Kr("selectableService")],r)}(Zi),cj=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Dh=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},VK=function(t){function r(){var e=t.call(this)||this;return e.previousAndFirstButtonsDisabled=!1,e.nextButtonDisabled=!1,e.lastButtonDisabled=!1,e}return cj(r,t),r.prototype.postConstruct=function(){var e=this,i=this.gridOptionsWrapper.isEnableRtl();this.setTemplate(this.getTemplate()),this.btFirst.insertAdjacentElement("afterbegin",Oc(i?"last":"first",this.gridOptionsWrapper)),this.btPrevious.insertAdjacentElement("afterbegin",Oc(i?"next":"previous",this.gridOptionsWrapper)),this.btNext.insertAdjacentElement("afterbegin",Oc(i?"previous":"next",this.gridOptionsWrapper)),this.btLast.insertAdjacentElement("afterbegin",Oc(i?"first":"last",this.gridOptionsWrapper)),this.gridOptionsWrapper.isPagination()&&!this.gridOptionsWrapper.isSuppressPaginationPanel()?(this.addManagedListener(this.eventService,Et.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),[{el:this.btFirst,fn:this.onBtFirst.bind(this)},{el:this.btPrevious,fn:this.onBtPrevious.bind(this)},{el:this.btNext,fn:this.onBtNext.bind(this)},{el:this.btLast,fn:this.onBtLast.bind(this)}].forEach(function(a){var l=a.el,c=a.fn;e.addManagedListener(l,"click",c),e.addManagedListener(l,"keydown",function(d){(d.key===gi.ENTER||d.key===gi.SPACE)&&(d.preventDefault(),c())})}),this.onPaginationChanged()):this.setDisplayed(!1)},r.prototype.onPaginationChanged=function(){this.enableOrDisableButtons(),this.updateRowLabels(),this.setCurrentPageLabel(),this.setTotalLabels()},r.prototype.onBtFirst=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToFirstPage()},r.prototype.setCurrentPageLabel=function(){var e=this.paginationProxy.getTotalPages()>0,i=this.paginationProxy.getCurrentPage();this.lbCurrent.innerHTML=this.formatNumber(e?i+1:0)},r.prototype.formatNumber=function(e){var i=this.gridOptionsWrapper.getPaginationNumberFormatterFunc();if(i)return i({value:e});var s=this.gridOptionsWrapper.getLocaleTextFunc();return Th(e,s("thousandSeparator",","),s("decimalSeparator","."))},r.prototype.getTemplate=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),i=e("page","Page"),o=e("to","to"),s=e("of","of"),a=e("firstPage","First Page"),l=e("previousPage","Previous Page"),c=e("nextPage","Next Page"),d=e("lastPage","Last Page"),f=this.getCompId();return'<div class="ag-paging-panel ag-unselectable" id="ag-'+f+'">\n                <span class="ag-paging-row-summary-panel" role="status">\n                    <span id="ag-'+f+'-first-row" ref="lbFirstRowOnPage" class="ag-paging-row-summary-panel-number"></span>\n                    <span id="ag-'+f+'-to">'+o+'</span>\n                    <span id="ag-'+f+'-last-row" ref="lbLastRowOnPage" class="ag-paging-row-summary-panel-number"></span>\n                    <span id="ag-'+f+'-of">'+s+'</span>\n                    <span id="ag-'+f+'-row-count" ref="lbRecordCount" class="ag-paging-row-summary-panel-number"></span>\n                </span>\n                <span class="ag-paging-page-summary-panel" role="presentation">\n                    <div ref="btFirst" class="ag-paging-button" role="button" aria-label="'+a+'"></div>\n                    <div ref="btPrevious" class="ag-paging-button" role="button" aria-label="'+l+'"></div>\n                    <span class="ag-paging-description" role="status">\n                        <span id="ag-'+f+'-start-page">'+i+'</span>\n                        <span id="ag-'+f+'-start-page-number" ref="lbCurrent" class="ag-paging-number"></span>\n                        <span id="ag-'+f+'-of-page">'+s+'</span>\n                        <span id="ag-'+f+'-of-page-number" ref="lbTotal" class="ag-paging-number"></span>\n                    </span>\n                    <div ref="btNext" class="ag-paging-button" role="button" aria-label="'+c+'"></div>\n                    <div ref="btLast" class="ag-paging-button" role="button" aria-label="'+d+'"></div>\n                </span>\n            </div>'},r.prototype.onBtNext=function(){this.nextButtonDisabled||this.paginationProxy.goToNextPage()},r.prototype.onBtPrevious=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToPreviousPage()},r.prototype.onBtLast=function(){this.lastButtonDisabled||this.paginationProxy.goToLastPage()},r.prototype.enableOrDisableButtons=function(){var e=this.paginationProxy.getCurrentPage(),i=this.paginationProxy.isLastPageFound(),o=this.paginationProxy.getTotalPages();this.previousAndFirstButtonsDisabled=0===e,this.toggleButtonDisabled(this.btFirst,this.previousAndFirstButtonsDisabled),this.toggleButtonDisabled(this.btPrevious,this.previousAndFirstButtonsDisabled);var s=this.isZeroPagesToDisplay();this.nextButtonDisabled=i&&e===o-1||s,this.lastButtonDisabled=!i||s||e===o-1,this.toggleButtonDisabled(this.btNext,this.nextButtonDisabled),this.toggleButtonDisabled(this.btLast,this.lastButtonDisabled)},r.prototype.toggleButtonDisabled=function(e,i){wo(e,i),e.classList.toggle("ag-disabled",i),i?e.removeAttribute("tabindex"):e.setAttribute("tabindex","0")},r.prototype.updateRowLabels=function(){var a,l,e=this.paginationProxy.getCurrentPage(),i=this.paginationProxy.getPageSize(),o=this.paginationProxy.isLastPageFound(),s=this.paginationProxy.isLastPageFound()?this.paginationProxy.getMasterRowCount():null;this.isZeroPagesToDisplay()?a=l=0:(l=(a=i*e+1)+i-1,o&&l>s&&(l=s)),this.lbFirstRowOnPage.innerHTML=this.formatNumber(a),this.lbLastRowOnPage.innerHTML=this.rowNodeBlockLoader.isLoading()?"?":this.formatNumber(l)},r.prototype.isZeroPagesToDisplay=function(){var e=this.paginationProxy.isLastPageFound(),i=this.paginationProxy.getTotalPages();return e&&0===i},r.prototype.setTotalLabels=function(){var e=this.paginationProxy.isLastPageFound(),i=this.paginationProxy.getTotalPages(),o=e?this.paginationProxy.getMasterRowCount():null;if(1===o){var s=this.paginationProxy.getRow(0);if(s&&s.group&&!s.groupData&&!s.aggData)return void this.setTotalLabelsToZero()}if(e)this.lbTotal.innerHTML=this.formatNumber(i),this.lbRecordCount.innerHTML=this.formatNumber(o);else{var l=this.gridOptionsWrapper.getLocaleTextFunc()("more","more");this.lbTotal.innerHTML=l,this.lbRecordCount.innerHTML=l}},r.prototype.setTotalLabelsToZero=function(){this.lbFirstRowOnPage.innerHTML=this.formatNumber(0),this.lbCurrent.innerHTML=this.formatNumber(0),this.lbLastRowOnPage.innerHTML=this.formatNumber(0),this.lbTotal.innerHTML=this.formatNumber(0),this.lbRecordCount.innerHTML=this.formatNumber(0)},Dh([Xe("paginationProxy")],r.prototype,"paginationProxy",void 0),Dh([Xe("rowNodeBlockLoader")],r.prototype,"rowNodeBlockLoader",void 0),Dh([Ti("btFirst")],r.prototype,"btFirst",void 0),Dh([Ti("btPrevious")],r.prototype,"btPrevious",void 0),Dh([Ti("btNext")],r.prototype,"btNext",void 0),Dh([Ti("btLast")],r.prototype,"btLast",void 0),Dh([Ti("lbRecordCount")],r.prototype,"lbRecordCount",void 0),Dh([Ti("lbFirstRowOnPage")],r.prototype,"lbFirstRowOnPage",void 0),Dh([Ti("lbLastRowOnPage")],r.prototype,"lbLastRowOnPage",void 0),Dh([Ti("lbCurrent")],r.prototype,"lbCurrent",void 0),Dh([Ti("lbTotal")],r.prototype,"lbTotal",void 0),Dh([qi],r.prototype,"postConstruct",null),r}(Do),uj=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),K1=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},YE=function(t){return t[t.Loading=0]="Loading",t[t.NoRows=1]="NoRows",t}(YE||{}),P3=function(t){function r(){var e=t.call(this,r.TEMPLATE)||this;return e.inProgress=!1,e.destroyRequested=!1,e.manuallyDisplayed=!1,e}return uj(r,t),r.prototype.updateLayoutClasses=function(e,i){var o=this.eOverlayWrapper.classList;o.toggle(Yd.AUTO_HEIGHT,i.autoHeight),o.toggle(Yd.NORMAL,i.normal),o.toggle(Yd.PRINT,i.print)},r.prototype.postConstruct=function(){this.createManagedBean(new qI(this)),this.setDisplayed(!1),this.addManagedListener(this.eventService,Et.EVENT_ROW_DATA_UPDATED,this.onRowDataUpdated.bind(this)),this.addManagedListener(this.eventService,Et.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.gridOptionsWrapper.isRowModelDefault()&&!this.gridOptionsWrapper.getRowData()&&this.showLoadingOverlay(),this.gridApi.registerOverlayWrapperComp(this)},r.prototype.setWrapperTypeClass=function(e){var i=this.eOverlayWrapper.classList;i.toggle("ag-overlay-loading-wrapper",e===YE.Loading),i.toggle("ag-overlay-no-rows-wrapper",e===YE.NoRows)},r.prototype.showLoadingOverlay=function(){if(!this.gridOptionsWrapper.isSuppressLoadingOverlay()){var o=this.userComponentFactory.getLoadingOverlayCompDetails({}).newAgStackInstance();this.showOverlay(o,YE.Loading)}},r.prototype.showNoRowsOverlay=function(){if(!this.gridOptionsWrapper.isSuppressNoRowsOverlay()){var o=this.userComponentFactory.getNoRowsOverlayCompDetails({}).newAgStackInstance();this.showOverlay(o,YE.NoRows)}},r.prototype.showOverlay=function(e,i){var o=this;this.inProgress||(this.setWrapperTypeClass(i),this.destroyActiveOverlay(),this.inProgress=!0,e&&e.then(function(s){o.inProgress=!1,o.eOverlayWrapper.appendChild(s.getGui()),o.activeOverlay=s,o.destroyRequested&&(o.destroyRequested=!1,o.destroyActiveOverlay())}),this.manuallyDisplayed=this.columnModel.isReady()&&!this.paginationProxy.isEmpty(),this.setDisplayed(!0))},r.prototype.destroyActiveOverlay=function(){this.inProgress?this.destroyRequested=!0:this.activeOverlay&&(this.activeOverlay=this.getContext().destroyBean(this.activeOverlay),eu(this.eOverlayWrapper))},r.prototype.hideOverlay=function(){this.manuallyDisplayed=!1,this.destroyActiveOverlay(),this.setDisplayed(!1)},r.prototype.destroy=function(){this.destroyActiveOverlay(),t.prototype.destroy.call(this)},r.prototype.showOrHideOverlay=function(){var e=this.paginationProxy.isEmpty(),i=this.gridOptionsWrapper.isSuppressNoRowsOverlay();e&&!i?this.showNoRowsOverlay():this.hideOverlay()},r.prototype.onRowDataUpdated=function(){this.showOrHideOverlay()},r.prototype.onNewColumnsLoaded=function(){this.columnModel.isReady()&&!this.paginationProxy.isEmpty()&&!this.manuallyDisplayed&&this.hideOverlay()},r.TEMPLATE='\n        <div class="ag-overlay" aria-hidden="true">\n            <div class="ag-overlay-panel">\n                <div class="ag-overlay-wrapper" ref="eOverlayWrapper"></div>\n            </div>\n        </div>',K1([Xe("userComponentFactory")],r.prototype,"userComponentFactory",void 0),K1([Xe("paginationProxy")],r.prototype,"paginationProxy",void 0),K1([Xe("gridApi")],r.prototype,"gridApi",void 0),K1([Xe("columnModel")],r.prototype,"columnModel",void 0),K1([Ti("eOverlayWrapper")],r.prototype,"eOverlayWrapper",void 0),K1([qi],r.prototype,"postConstruct",null),r}(Do),dj=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),ey=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},WE=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return dj(r,t),r.prototype.getFirstRow=function(){var i,e=0;return this.pinnedRowModel.getPinnedTopRowCount()?i=Nn.PINNED_TOP:this.rowModel.getRowCount()?(i=null,e=this.paginationProxy.getPageFirstRow()):this.pinnedRowModel.getPinnedBottomRowCount()&&(i=Nn.PINNED_BOTTOM),void 0===i?null:{rowIndex:e,rowPinned:i}},r.prototype.getLastRow=function(){var e,i=null,o=this.pinnedRowModel.getPinnedBottomRowCount(),s=this.pinnedRowModel.getPinnedTopRowCount();return o?(i=Nn.PINNED_BOTTOM,e=o-1):this.rowModel.getRowCount()?(i=null,e=this.paginationProxy.getPageLastRow()):s&&(i=Nn.PINNED_TOP,e=s-1),void 0===e?null:{rowIndex:e,rowPinned:i}},r.prototype.getRowNode=function(e){switch(e.rowPinned){case Nn.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case Nn.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},r.prototype.sameRow=function(e,i){return!e&&!i||!(e&&!i||!e&&i)&&e.rowIndex===i.rowIndex&&e.rowPinned==i.rowPinned},r.prototype.before=function(e,i){switch(e.rowPinned){case Nn.PINNED_TOP:if(i.rowPinned!==Nn.PINNED_TOP)return!0;break;case Nn.PINNED_BOTTOM:if(i.rowPinned!==Nn.PINNED_BOTTOM)return!1;break;default:if(rr(i.rowPinned))return i.rowPinned!==Nn.PINNED_TOP}return e.rowIndex<i.rowIndex},r.prototype.rowMax=function(e){var o,i=this;return e.forEach(function(s){(void 0===o||i.before(o,s))&&(o=s)}),o},r.prototype.rowMin=function(e){var o,i=this;return e.forEach(function(s){(void 0===o||i.before(s,o))&&(o=s)}),o},ey([Xe("rowModel")],r.prototype,"rowModel",void 0),ey([Xe("pinnedRowModel")],r.prototype,"pinnedRowModel",void 0),ey([Xe("paginationProxy")],r.prototype,"paginationProxy",void 0),ey([Kr("rowPositionUtils")],r)}(Zi),pj=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),fj=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return pj(r,t),r.prototype.createId=function(e){return this.createIdFromValues(e.rowIndex,e.column,e.rowPinned)},r.prototype.createIdFromValues=function(e,i,o){return e+"."+(o??"null")+"."+i.getId()},r.prototype.equals=function(e,i){return e.column===i.column&&e.rowPinned===i.rowPinned&&e.rowIndex===i.rowIndex},r=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s}([Kr("cellPositionUtils")],r),r}(Zi),mj=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),zE=function(){return function t(r){this.cellValueChanges=r}}(),sM=function(t){function r(e,i,o){var s=t.call(this,e)||this;return s.initialRange=i,s.finalRange=o,s}return mj(r,t),r}(zE),L3=function(){function t(r){this.actionStack=[],this.maxStackSize=r||t.DEFAULT_STACK_SIZE,this.actionStack=new Array(this.maxStackSize)}return t.prototype.pop=function(){return this.actionStack.pop()},t.prototype.push=function(r){r.cellValueChanges&&r.cellValueChanges.length>0&&(this.actionStack.length===this.maxStackSize&&this.actionStack.shift(),this.actionStack.push(r))},t.prototype.clear=function(){this.actionStack=[]},t.prototype.getCurrentStackSize=function(){return this.actionStack.length},t.DEFAULT_STACK_SIZE=10,t}(),N3=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),ty=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},gj=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.cellValueChanges=[],e.activeCellEdit=null,e.activeRowEdit=null,e.isPasting=!1,e.isFilling=!1,e.onCellValueChanged=function(i){var o={column:i.column,rowIndex:i.rowIndex,rowPinned:i.rowPinned},s=null!==e.activeCellEdit&&e.cellPositionUtils.equals(e.activeCellEdit,o),a=null!==e.activeRowEdit&&e.rowPositionUtils.sameRow(e.activeRowEdit,o);if(s||a||e.isPasting||e.isFilling){var v=i.oldValue,w=i.value,x={rowPinned:i.rowPinned,rowIndex:i.rowIndex,columnId:i.column.getColId(),newValue:w,oldValue:v};e.cellValueChanges.push(x)}},e.clearStacks=function(){e.undoStack.clear(),e.redoStack.clear()},e}return N3(r,t),r.prototype.init=function(){if(this.gridOptionsWrapper.isUndoRedoCellEditing()){var e=this.gridOptionsWrapper.getUndoRedoCellEditingLimit();e<=0||(this.undoStack=new L3(e),this.redoStack=new L3(e),this.addRowEditingListeners(),this.addCellEditingListeners(),this.addPasteListeners(),this.addFillListeners(),this.addManagedListener(this.eventService,Et.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged),this.addManagedListener(this.eventService,Et.EVENT_MODEL_UPDATED,this.clearStacks),this.addManagedListener(this.eventService,Et.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,Et.EVENT_NEW_COLUMNS_LOADED,this.clearStacks),this.addManagedListener(this.eventService,Et.EVENT_COLUMN_GROUP_OPENED,this.clearStacks),this.addManagedListener(this.eventService,Et.EVENT_COLUMN_ROW_GROUP_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,Et.EVENT_COLUMN_MOVED,this.clearStacks),this.addManagedListener(this.eventService,Et.EVENT_COLUMN_PINNED,this.clearStacks),this.addManagedListener(this.eventService,Et.EVENT_COLUMN_VISIBLE,this.clearStacks),this.addManagedListener(this.eventService,Et.EVENT_ROW_DRAG_END,this.clearStacks))}},r.prototype.getCurrentUndoStackSize=function(){return this.undoStack?this.undoStack.getCurrentStackSize():0},r.prototype.getCurrentRedoStackSize=function(){return this.redoStack?this.redoStack.getCurrentStackSize():0},r.prototype.undo=function(){if(this.undoStack){var e=this.undoStack.pop();!e||!e.cellValueChanges||(this.processAction(e,function(i){return i.oldValue}),e instanceof sM?this.processRangeAndCellFocus(e.cellValueChanges,e.initialRange):this.processRangeAndCellFocus(e.cellValueChanges),this.redoStack.push(e))}},r.prototype.redo=function(){if(this.redoStack){var e=this.redoStack.pop();!e||!e.cellValueChanges||(this.processAction(e,function(i){return i.newValue}),e instanceof sM?this.processRangeAndCellFocus(e.cellValueChanges,e.finalRange):this.processRangeAndCellFocus(e.cellValueChanges),this.undoStack.push(e))}},r.prototype.processAction=function(e,i){var o=this;e.cellValueChanges.forEach(function(s){var c=s.columnId,f=o.getRowNode({rowIndex:s.rowIndex,rowPinned:s.rowPinned});f.displayed&&f.setDataValue(c,i(s))})},r.prototype.processRangeAndCellFocus=function(e,i){var o;if(i){var s=i.startRow,a=i.endRow;return o={rowPinned:s.rowPinned,rowIndex:s.rowIndex,columnId:i.startColumn.getColId()},this.setLastFocusedCell(o),void this.gridApi.addCellRange({rowStartIndex:s.rowIndex,rowStartPinned:s.rowPinned,rowEndIndex:a.rowIndex,rowEndPinned:a.rowPinned,columnStart:i.startColumn,columns:i.columns})}var c=e[0],w=this.getRowNode({rowIndex:c.rowIndex,rowPinned:c.rowPinned});this.setLastFocusedCell(o={rowPinned:c.rowPinned,rowIndex:w.rowIndex,columnId:c.columnId})},r.prototype.setLastFocusedCell=function(e){var i=e.rowIndex,o=e.columnId,s=e.rowPinned;this.gridApi.ensureIndexVisible(i),this.gridApi.ensureColumnVisible(o),qo.isRegistered(mo.RangeSelectionModule)&&this.gridApi.clearRangeSelection(),this.focusService.setFocusedCell({rowIndex:i,column:o,rowPinned:s,forceBrowserFocus:!0})},r.prototype.addRowEditingListeners=function(){var e=this;this.addManagedListener(this.eventService,Et.EVENT_ROW_EDITING_STARTED,function(i){e.activeRowEdit={rowIndex:i.rowIndex,rowPinned:i.rowPinned}}),this.addManagedListener(this.eventService,Et.EVENT_ROW_EDITING_STOPPED,function(){var i=new zE(e.cellValueChanges);e.pushActionsToUndoStack(i),e.activeRowEdit=null})},r.prototype.addCellEditingListeners=function(){var e=this;this.addManagedListener(this.eventService,Et.EVENT_CELL_EDITING_STARTED,function(i){e.activeCellEdit={column:i.column,rowIndex:i.rowIndex,rowPinned:i.rowPinned}}),this.addManagedListener(this.eventService,Et.EVENT_CELL_EDITING_STOPPED,function(){if(e.activeCellEdit=null,!e.activeRowEdit&&!e.isPasting&&!e.isFilling){var o=new zE(e.cellValueChanges);e.pushActionsToUndoStack(o)}})},r.prototype.addPasteListeners=function(){var e=this;this.addManagedListener(this.eventService,Et.EVENT_PASTE_START,function(){e.isPasting=!0}),this.addManagedListener(this.eventService,Et.EVENT_PASTE_END,function(){var i=new zE(e.cellValueChanges);e.pushActionsToUndoStack(i),e.isPasting=!1})},r.prototype.addFillListeners=function(){var e=this;this.addManagedListener(this.eventService,Et.EVENT_FILL_START,function(){e.isFilling=!0}),this.addManagedListener(this.eventService,Et.EVENT_FILL_END,function(i){var o=new sM(e.cellValueChanges,i.initialRange,i.finalRange);e.pushActionsToUndoStack(o),e.isFilling=!1})},r.prototype.pushActionsToUndoStack=function(e){this.undoStack.push(e),this.cellValueChanges=[],this.redoStack.clear()},r.prototype.getRowNode=function(e){switch(e.rowPinned){case Nn.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case Nn.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},ty([Xe("focusService")],r.prototype,"focusService",void 0),ty([Xe("gridApi")],r.prototype,"gridApi",void 0),ty([Xe("rowModel")],r.prototype,"rowModel",void 0),ty([Xe("pinnedRowModel")],r.prototype,"pinnedRowModel",void 0),ty([Xe("cellPositionUtils")],r.prototype,"cellPositionUtils",void 0),ty([Xe("rowPositionUtils")],r.prototype,"rowPositionUtils",void 0),ty([qi],r.prototype,"init",null),ty([Kr("undoRedoService")],r)}(Zi),vj=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),aM=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},_j=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return vj(r,t),r.prototype.findHeader=function(e,i){var o;if(o=e.column instanceof zr?this.columnModel["getDisplayedGroup"+i](e.column):this.columnModel["getDisplayedCol"+i](e.column))return{column:o,headerRowIndex:e.headerRowIndex}},r.prototype.findColAtEdgeForHeaderRow=function(e,i){var o=this.columnModel.getAllDisplayedColumns(),s=o["start"===i?0:o.length-1];if(s){var l=this.ctrlsService.getHeaderRowContainerCtrl(s.getPinned()).getRowType(e);return l==rf.COLUMN_GROUP?{headerRowIndex:e,column:this.columnModel.getColumnGroupAtLevel(s,e)}:{headerRowIndex:null==l?-1:e,column:s}}},aM([Xe("columnModel")],r.prototype,"columnModel",void 0),aM([Xe("ctrlsService")],r.prototype,"ctrlsService",void 0),aM([Kr("headerPositionUtils")],r)}(Zi),bj=function(){function t(){}return t.prototype.buildColumnDefs=function(r,e,i){var o=this,s=[],a={};return r.forEach(function(l){for(var d=!0,f=o.createDefFromColumn(l,e,i),v=l.getOriginalParent();v;){var w=null;if(v.isPadding())v=v.getOriginalParent();else{var x=a[v.getGroupId()];if(x){x.children.push(f),d=!1;break}(w=o.createDefFromGroup(v))&&(w.children=[f],a[w.groupId]=w,f=w,v=v.getOriginalParent())}}d&&s.push(f)}),s},t.prototype.createDefFromGroup=function(r){var e=Ue(r.getColGroupDef(),["children"]);return e&&(e.groupId=r.getGroupId()),e},t.prototype.createDefFromColumn=function(r,e,i){var o=Ue(r.getColDef());return o.colId=r.getColId(),o.width=r.getActualWidth(),o.rowGroup=r.isRowGroupActive(),o.rowGroupIndex=r.isRowGroupActive()?e.indexOf(r):null,o.pivot=r.isPivotActive(),o.pivotIndex=r.isPivotActive()?i.indexOf(r):null,o.aggFunc=r.isValueActive()?r.getAggFunc():null,o.hide=!r.isVisible()||void 0,o.pinned=r.isPinned()?r.getPinned():null,o.sort=r.getSort()?r.getSort():null,o.sortIndex=null!=r.getSortIndex()?r.getSortIndex():null,o},t=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s}([Kr("columnDefFactory")],t),t}(),lM=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},Cj=function(){function t(){}return t.prototype.getInitialRowClasses=function(r){var e=[];return rr(r.extraCssClass)&&e.push(r.extraCssClass),e.push("ag-row"),e.push(r.rowFocused?"ag-row-focus":"ag-row-no-focus"),r.fadeRowIn&&e.push("ag-opacity-zero"),e.push(r.rowIsEven?"ag-row-even":"ag-row-odd"),r.rowNode.isRowPinned()&&e.push("ag-row-pinned"),r.rowNode.isSelected()&&e.push("ag-row-selected"),r.rowNode.footer&&e.push("ag-row-footer"),e.push("ag-row-level-"+r.rowLevel),r.rowNode.stub&&e.push("ag-row-loading"),r.fullWidthRow&&e.push("ag-full-width-row"),r.expandable&&(e.push("ag-row-group"),e.push(r.rowNode.expanded?"ag-row-group-expanded":"ag-row-group-contracted")),r.rowNode.dragging&&e.push("ag-row-dragging"),Pn(e,this.processClassesFromGridOptions(r.rowNode)),Pn(e,this.preProcessRowClassRules(r.rowNode)),e.push(r.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),r.firstRowOnPage&&e.push("ag-row-first"),r.lastRowOnPage&&e.push("ag-row-last"),r.fullWidthRow&&(r.pinned===Nn.PINNED_LEFT&&e.push("ag-cell-last-left-pinned"),r.pinned===Nn.PINNED_RIGHT&&e.push("ag-cell-first-right-pinned")),e},t.prototype.processClassesFromGridOptions=function(r){var e=[],i=function(c){"string"==typeof c?e.push(c):Array.isArray(c)&&c.forEach(function(d){return e.push(d)})},o=this.gridOptionsWrapper.getRowClass();if(o){if("function"==typeof o)return console.warn("AG Grid: rowClass should not be a function, please use getRowClass instead"),[];i(o)}var s=this.gridOptionsWrapper.getRowClassFunc();return s&&i(s({data:r.data,node:r,rowIndex:r.rowIndex})),e},t.prototype.preProcessRowClassRules=function(r){var e=[];return this.processRowClassRules(r,function(i){e.push(i)},function(i){}),e},t.prototype.processRowClassRules=function(r,e,i){var o={data:r.data,node:r,rowIndex:r.rowIndex,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};this.stylingService.processClassRules(this.gridOptionsWrapper.rowClassRules(),o,e,i)},t.prototype.calculateRowLevel=function(r){return r.group?r.level:r.parent?r.parent.level+1:0},lM([Xe("stylingService")],t.prototype,"stylingService",void 0),lM([Xe("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),lM([Kr("rowCssClassCalculator")],t)}(),qE=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},wj=function(){function t(){}return t.prototype.doFullSort=function(r,e){var o=r.map(function(s,a){return{currentPos:a,rowNode:s}});return o.sort(this.compareRowNodes.bind(this,e)),o.map(function(s){return s.rowNode})},t.prototype.compareRowNodes=function(r,e,i){for(var o=e.rowNode,s=i.rowNode,a=0,l=r.length;a<l;a++){var w,c=r[a],d=c.sort===Nn.SORT_DESC,f=this.getValue(o,c.column),v=this.getValue(s,c.column),x=this.getComparator(c,o);if(w=x?x(f,v,o,s,d):ln.defaultComparator(f,v,this.gridOptionsWrapper.isAccentedSort()),!isNaN(w)&&0!==w)return c.sort===Nn.SORT_ASC?w:-1*w}return e.currentPos-i.currentPos},t.prototype.getComparator=function(r,e){var i=r.column,o=i.getColDef().comparator;if(null!=o)return o;if(i.getColDef().showRowGroup){var s=!e.group&&i.getColDef().field;if(s){var a=this.columnModel.getPrimaryColumn(s);if(a)return a.getColDef().comparator}}},t.prototype.getValue=function(r,e){var i;if(!this.gridOptionsWrapper.isColumnsSortingCoupledToGroup())return this.valueService.getValue(e,r,!1,!1);if(r.rowGroupColumn===e){var a=this.columnModel.getGroupDisplayColumnForGroup(e.getId());return a?null===(i=r.groupData)||void 0===i?void 0:i[a.getId()]:void 0}return r.group&&e.getColDef().showRowGroup?void 0:this.valueService.getValue(e,r,!1,!1)},qE([Xe("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),qE([Xe("valueService")],t.prototype,"valueService",void 0),qE([Xe("columnModel")],t.prototype,"columnModel",void 0),qE([Kr("rowNodeSorter")],t)}(),Tj=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),G3=function(t){function r(){var i=null!==t&&t.apply(this,arguments)||this;return i.ready=!1,i.readyCallbacks=[],i}var e;return Tj(r,t),e=r,r.prototype.checkReady=function(){if(this.ready=null!=this.gridCtrl&&null!=this.gridBodyCtrl&&null!=this.centerRowContainerCtrl&&null!=this.leftRowContainerCtrl&&null!=this.rightRowContainerCtrl&&null!=this.bottomCenterRowContainerCtrl&&null!=this.bottomLeftRowContainerCtrl&&null!=this.bottomRightRowContainerCtrl&&null!=this.topCenterRowContainerCtrl&&null!=this.topLeftRowContainerCtrl&&null!=this.topRightRowContainerCtrl&&null!=this.stickyTopCenterRowContainerCtrl&&null!=this.stickyTopLeftRowContainerCtrl&&null!=this.stickyTopRightRowContainerCtrl&&null!=this.centerHeaderRowContainerCtrl&&null!=this.leftHeaderRowContainerCtrl&&null!=this.rightHeaderRowContainerCtrl&&null!=this.fakeHScrollCtrl&&null!=this.gridHeaderCtrl,this.ready){var i=this.createReadyParams();this.readyCallbacks.forEach(function(o){return o(i)}),this.readyCallbacks.length=0}},r.prototype.whenReady=function(i){this.ready?i(this.createReadyParams()):this.readyCallbacks.push(i)},r.prototype.createReadyParams=function(){return{centerRowContainerCtrl:this.centerRowContainerCtrl,leftRowContainerCtrl:this.leftRowContainerCtrl,rightRowContainerCtrl:this.rightRowContainerCtrl,bottomCenterRowContainerCtrl:this.bottomCenterRowContainerCtrl,bottomLeftRowContainerCtrl:this.bottomLeftRowContainerCtrl,bottomRightRowContainerCtrl:this.bottomRightRowContainerCtrl,topCenterRowContainerCtrl:this.topCenterRowContainerCtrl,topLeftRowContainerCtrl:this.topLeftRowContainerCtrl,topRightRowContainerCtrl:this.topRightRowContainerCtrl,stickyTopCenterRowContainerCtrl:this.stickyTopCenterRowContainerCtrl,stickyTopLeftRowContainerCtrl:this.stickyTopLeftRowContainerCtrl,stickyTopRightRowContainerCtrl:this.stickyTopRightRowContainerCtrl,centerHeaderRowContainerCtrl:this.centerHeaderRowContainerCtrl,leftHeaderRowContainerCtrl:this.leftHeaderRowContainerCtrl,rightHeaderRowContainerCtrl:this.rightHeaderRowContainerCtrl,fakeHScrollCtrl:this.fakeHScrollCtrl,gridBodyCtrl:this.gridBodyCtrl,gridCtrl:this.gridCtrl,gridHeaderCtrl:this.gridHeaderCtrl}},r.prototype.registerFakeHScrollCtrl=function(i){this.fakeHScrollCtrl=i,this.checkReady()},r.prototype.registerGridHeaderCtrl=function(i){this.gridHeaderCtrl=i,this.checkReady()},r.prototype.registerCenterRowContainerCtrl=function(i){this.centerRowContainerCtrl=i,this.checkReady()},r.prototype.registerLeftRowContainerCtrl=function(i){this.leftRowContainerCtrl=i,this.checkReady()},r.prototype.registerRightRowContainerCtrl=function(i){this.rightRowContainerCtrl=i,this.checkReady()},r.prototype.registerTopCenterRowContainerCtrl=function(i){this.topCenterRowContainerCtrl=i,this.checkReady()},r.prototype.registerTopLeftRowContainerCon=function(i){this.topLeftRowContainerCtrl=i,this.checkReady()},r.prototype.registerTopRightRowContainerCtrl=function(i){this.topRightRowContainerCtrl=i,this.checkReady()},r.prototype.registerStickyTopCenterRowContainerCtrl=function(i){this.stickyTopCenterRowContainerCtrl=i,this.checkReady()},r.prototype.registerStickyTopLeftRowContainerCon=function(i){this.stickyTopLeftRowContainerCtrl=i,this.checkReady()},r.prototype.registerStickyTopRightRowContainerCtrl=function(i){this.stickyTopRightRowContainerCtrl=i,this.checkReady()},r.prototype.registerBottomCenterRowContainerCtrl=function(i){this.bottomCenterRowContainerCtrl=i,this.checkReady()},r.prototype.registerBottomLeftRowContainerCtrl=function(i){this.bottomLeftRowContainerCtrl=i,this.checkReady()},r.prototype.registerBottomRightRowContainerCtrl=function(i){this.bottomRightRowContainerCtrl=i,this.checkReady()},r.prototype.registerHeaderContainer=function(i,o){switch(o){case Nn.PINNED_LEFT:this.leftHeaderRowContainerCtrl=i;break;case Nn.PINNED_RIGHT:this.rightHeaderRowContainerCtrl=i;break;default:this.centerHeaderRowContainerCtrl=i}this.checkReady()},r.prototype.registerGridBodyCtrl=function(i){this.gridBodyCtrl=i,this.checkReady()},r.prototype.registerGridCtrl=function(i){this.gridCtrl=i,this.checkReady()},r.prototype.getFakeHScrollCtrl=function(){return this.fakeHScrollCtrl},r.prototype.getGridHeaderCtrl=function(){return this.gridHeaderCtrl},r.prototype.getGridCtrl=function(){return this.gridCtrl},r.prototype.getCenterRowContainerCtrl=function(){return this.centerRowContainerCtrl},r.prototype.getTopCenterRowContainerCtrl=function(){return this.topCenterRowContainerCtrl},r.prototype.getBottomCenterRowContainerCtrl=function(){return this.bottomCenterRowContainerCtrl},r.prototype.getStickyTopCenterRowContainerCtrl=function(){return this.stickyTopCenterRowContainerCtrl},r.prototype.getGridBodyCtrl=function(){return this.gridBodyCtrl},r.prototype.getHeaderRowContainerCtrls=function(){return[this.leftHeaderRowContainerCtrl,this.rightHeaderRowContainerCtrl,this.centerHeaderRowContainerCtrl]},r.prototype.getHeaderRowContainerCtrl=function(i){switch(i){case Nn.PINNED_LEFT:return this.leftHeaderRowContainerCtrl;case Nn.PINNED_RIGHT:return this.rightHeaderRowContainerCtrl;default:return this.centerHeaderRowContainerCtrl}},r.NAME="ctrlsService",r=e=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s}([Kr(e.NAME)],r),r}(Zi),cM=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Ej=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.registry={},e}return cM(r,t),r.prototype.register=function(e){this.registry[e.controllerName]=e.controllerClass},r.prototype.getInstance=function(e){var i=this.registry[e];if(null!=i)return new i},r=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s}([Kr("ctrlsFactory")],r),r}(Zi),B3=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),XE=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},V3=function(t){function r(){return t.call(this)||this}return B3(r,t),r.prototype.setComp=function(e,i,o,s){this.view=e,this.eViewport=o,this.eContainer=s,this.eGui=i,this.addManagedListener(this.eventService,Et.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.onScrollVisibilityChanged();var a=this.setFakeHScrollSpacerWidths.bind(this);this.addManagedListener(this.eventService,Et.EVENT_DISPLAYED_COLUMNS_CHANGED,a),this.addManagedListener(this.eventService,Et.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,a),this.addManagedListener(this.gridOptionsWrapper,So.PROP_DOM_LAYOUT,a),this.setFakeHScrollSpacerWidths(),this.invisibleScrollbar&&(this.hideAndShowInvisibleScrollAsNeeded(),this.addActiveListenerToggles()),this.ctrlsService.registerFakeHScrollCtrl(this),this.view.addOrRemoveCssClass("ag-apple-scrollbar",C1()||zm())},r.prototype.addActiveListenerToggles=function(){var e=this;["mouseenter","mousedown","touchstart"].forEach(function(s){return e.addManagedListener(e.eGui,s,function(){return e.view.addOrRemoveCssClass("ag-scrollbar-active",!0)})}),["mouseleave","touchend"].forEach(function(s){return e.addManagedListener(e.eGui,s,function(){return e.view.addOrRemoveCssClass("ag-scrollbar-active",!1)})})},r.prototype.postConstruct=function(){this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.invisibleScrollbar=V2()},r.prototype.onScrollVisibilityChanged=function(){this.setScrollVisible(),this.setFakeHScrollSpacerWidths()},r.prototype.hideAndShowInvisibleScrollAsNeeded=function(){var e=this;this.addManagedListener(this.eventService,Et.EVENT_BODY_SCROLL,function(i){"horizontal"===i.direction&&e.view.addOrRemoveCssClass("ag-scrollbar-scrolling",!0)}),this.addManagedListener(this.eventService,Et.EVENT_BODY_SCROLL_END,function(){return e.view.addOrRemoveCssClass("ag-scrollbar-scrolling",!1)})},r.prototype.setFakeHScrollSpacerWidths=function(){var e=this.scrollVisibleService.isVerticalScrollShowing(),i=this.columnModel.getDisplayedColumnsRightWidth(),o=!this.enableRtl&&e,s=this.gridOptionsWrapper.getScrollbarWidth();o&&(i+=s),this.view.setRightSpacerFixedWidth(i),this.view.includeRightSpacerScrollerCss("ag-scroller-corner",i<=s);var a=this.columnModel.getDisplayedColumnsLeftWidth();this.enableRtl&&e&&(a+=s),this.view.setLeftSpacerFixedWidth(a),this.view.includeLeftSpacerScrollerCss("ag-scroller-corner",a<=s)},r.prototype.setScrollVisible=function(){var e=this.scrollVisibleService.isHorizontalScrollShowing(),i=this.invisibleScrollbar,o=this.gridOptionsWrapper.isSuppressHorizontalScroll(),s=e&&this.gridOptionsWrapper.getScrollbarWidth()||0,l=o?0:0===s&&i?15:s;this.view.addOrRemoveCssClass("ag-scrollbar-invisible",i),this.view.setHeight(l),this.view.setViewportHeight(l),this.view.setContainerHeight(l)},r.prototype.getViewport=function(){return this.eViewport},r.prototype.getContainer=function(){return this.eContainer},XE([Xe("scrollVisibleService")],r.prototype,"scrollVisibleService",void 0),XE([Xe("columnModel")],r.prototype,"columnModel",void 0),XE([Xe("ctrlsService")],r.prototype,"ctrlsService",void 0),XE([qi],r.prototype,"postConstruct",null),r}(Zi),jK=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),OS=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},Dj=function(t){function r(){return t.call(this,r.TEMPLATE)||this}return jK(r,t),r.prototype.postConstruct=function(){var e=this,i={addOrRemoveCssClass:function(s,a){return e.addOrRemoveCssClass(s,a)},setHeight:function(s){return zg(e.getGui(),s)},setContainerHeight:function(s){return zg(e.eContainer,s)},setViewportHeight:function(s){return zg(e.eViewport,s)},setRightSpacerFixedWidth:function(s){return Km(e.eRightSpacer,s)},setLeftSpacerFixedWidth:function(s){return Km(e.eLeftSpacer,s)},includeLeftSpacerScrollerCss:function(s,a){return e.eLeftSpacer.classList.toggle(s,a)},includeRightSpacerScrollerCss:function(s,a){return e.eRightSpacer.classList.toggle(s,a)}};this.createManagedBean(new V3).setComp(i,this.getGui(),this.eViewport,this.eContainer),this.createManagedBean(new fA(function(s){return e.eContainer.style.width=s+"px"}))},r.TEMPLATE='<div class="ag-body-horizontal-scroll" aria-hidden="true">\n            <div class="ag-horizontal-left-spacer" ref="eLeftSpacer"></div>\n            <div class="ag-body-horizontal-scroll-viewport" ref="eViewport">\n                <div class="ag-body-horizontal-scroll-container" ref="eContainer"></div>\n            </div>\n            <div class="ag-horizontal-right-spacer" ref="eRightSpacer"></div>\n        </div>',OS([Ti("eLeftSpacer")],r.prototype,"eLeftSpacer",void 0),OS([Ti("eRightSpacer")],r.prototype,"eRightSpacer",void 0),OS([Ti("eViewport")],r.prototype,"eViewport",void 0),OS([Ti("eContainer")],r.prototype,"eContainer",void 0),OS([qi],r.prototype,"postConstruct",null),r}(Do),j3=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),KE=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},H3=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return j3(r,t),r.prototype.postConstruct=function(){var e=this.checkContainerWidths.bind(this);this.addManagedListener(this.eventService,Et.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,Et.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,e),this.addManagedListener(this.gridOptionsWrapper,So.PROP_DOM_LAYOUT,e)},r.prototype.checkContainerWidths=function(){var e=this.gridOptionsWrapper.getDomLayout()===Nn.DOM_LAYOUT_PRINT,i=e?0:this.columnModel.getDisplayedColumnsLeftWidth(),o=e?0:this.columnModel.getDisplayedColumnsRightWidth();i!=this.leftWidth&&(this.leftWidth=i,this.eventService.dispatchEvent({type:Et.EVENT_LEFT_PINNED_WIDTH_CHANGED})),o!=this.rightWidth&&(this.rightWidth=o,this.eventService.dispatchEvent({type:Et.EVENT_RIGHT_PINNED_WIDTH_CHANGED}))},r.prototype.getPinnedRightWidth=function(){return this.rightWidth},r.prototype.getPinnedLeftWidth=function(){return this.leftWidth},KE([Xe("columnModel")],r.prototype,"columnModel",void 0),KE([qi],r.prototype,"postConstruct",null),KE([Kr("pinnedWidthService")],r)}(Zi),kj=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),FS=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},Ij=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.events=[],e}return kj(r,t),r.prototype.postConstruct=function(){this.rowModel.getType()==Nn.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel)},r.prototype.dispatchExpanded=function(e){var i=this;null!=this.clientSideRowModel?(this.events.push(e),null==this.dispatchExpandedDebounced&&(this.dispatchExpandedDebounced=this.animationFrameService.debounce(function(){i.clientSideRowModel&&i.clientSideRowModel.onRowGroupOpened(),i.events.forEach(function(s){return i.eventService.dispatchEvent(s)}),i.events=[]})),this.dispatchExpandedDebounced()):this.eventService.dispatchEvent(e)},FS([Xe("animationFrameService")],r.prototype,"animationFrameService",void 0),FS([Xe("rowModel")],r.prototype,"rowModel",void 0),FS([qi],r.prototype,"postConstruct",null),FS([Kr("rowNodeEventThrottle")],r)}(Zi),uM=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var o,a,i=e.call(t),s=[];try{for(;(void 0===r||r-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return s},QE=function(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(uM(arguments[r]));return t},U3=function(){function t(r,e,i){e?(this.gridOptions=e,(new dM).create(r,e,function(o){var s=new QA(r);o.createBean(s)},void 0,i)):console.error("AG Grid: no gridOptions provided to the grid")}return t.prototype.destroy=function(){this.gridOptions&&this.gridOptions.api&&this.gridOptions.api.destroy()},t}(),dM=function(){function t(){}return t.prototype.create=function(r,e,i,o,s){var a=this,l=!!e.debug,c=this.getRegisteredModules(s),d=this.createBeansList(e.rowModelType,c),f=this.createProvidedBeans(r,e,s);if(d){var v={providedBeanInstances:f,beanClasses:d,debug:l},w=new KA("AG Grid",function(){return e.debug}),x=new KA("Context",function(){return v.debug}),I=new Mc(v,x),M=I.getBean("beans");this.registerModuleUserComponents(M,c),this.registerStackComponents(M,c),this.registerControllers(M,c),i(I),M.ctrlsService.whenReady(function(){a.setColumnsAndData(M),a.dispatchGridReadyEvent(M,e);var F=qo.isRegistered(mo.EnterpriseCoreModule);w.log("initialised successfully, enterprise = "+F)}),o&&o(I)}},t.prototype.registerControllers=function(r,e){e.forEach(function(i){i.controllers&&i.controllers.forEach(function(o){return r.ctrlsFactory.register(o)})})},t.prototype.registerStackComponents=function(r,e){var i=this.createAgStackComponentsList(e);r.agStackComponentsRegistry.setupComponents(i)},t.prototype.getRegisteredModules=function(r){var e=r?r.modules:null,i=qo.getRegisteredModules(),o=[],s={};function a(l,c){(function d(f){s[f.moduleName]||(s[f.moduleName]=!0,o.push(f),qo.register(f,l))})(c),c.dependantModules&&c.dependantModules.forEach(a.bind(null,l))}return e&&e.forEach(a.bind(null,!0)),i&&i.forEach(a.bind(null,!qo.isPackageBased())),o},t.prototype.registerModuleUserComponents=function(r,e){this.extractModuleEntity(e,function(o){return o.userComponents?o.userComponents:[]}).forEach(function(o){r.userComponentRegistry.registerDefaultComponent(o.componentName,o.componentClass)})},t.prototype.createProvidedBeans=function(r,e,i){var o=i?i.frameworkOverrides:null;$o(o)&&(o=new J0);var s={gridOptions:e,eGridDiv:r,globalEventListener:i?i.globalEventListener:null,frameworkOverrides:o};return i&&i.providedBeanInstances&&Object.assign(s,i.providedBeanInstances),s},t.prototype.createAgStackComponentsList=function(r){var e=[{componentName:"AgCheckbox",componentClass:W0},{componentName:"AgRadioButton",componentClass:LA},{componentName:"AgToggleButton",componentClass:OV},{componentName:"AgInputTextField",componentClass:XL},{componentName:"AgInputTextArea",componentClass:KL},{componentName:"AgInputNumberField",componentClass:BA},{componentName:"AgInputRange",componentClass:JL},{componentName:"AgSelect",componentClass:K2},{componentName:"AgSlider",componentClass:e3},{componentName:"AgAngleSelect",componentClass:t3},{componentName:"AgColorPicker",componentClass:o3},{componentName:"AgGridBody",componentClass:$B},{componentName:"AgHeaderRoot",componentClass:DE},{componentName:"AgSortIndicator",componentClass:LP},{componentName:"AgPagination",componentClass:VK},{componentName:"AgOverlayWrapper",componentClass:P3},{componentName:"AgGroupComponent",componentClass:s3},{componentName:"AgPanel",componentClass:PE},{componentName:"AgDialog",componentClass:jA},{componentName:"AgRowContainer",componentClass:QB},{componentName:"AgFakeHorizontalScroll",componentClass:Dj}],i=this.extractModuleEntity(r,function(o){return o.agStackComponents?o.agStackComponents:[]});return e.concat(i)},t.prototype.createBeansList=function(r,e){var i=this.getRowModelClass(r,e);if(i){var o=[i,sA,WE,fj,_j,Sm,nV,yK,HE,sj,bV,aB,F3,_V,IV,eL,v1,fd,So,$V,qA,nL,gm,mV,MV,xV,C3,zp,QV,zV,vE,MS,y3,ZV,yp,X0,yV,Zl,v3,kS,sS,lj,WA,kV,PA,CL,E3,tj,ij,oM,td,k3,q0,gj,bc,bj,Cj,WL,wj,G3,H3,Ij,Ej],s=this.extractModuleEntity(e,function(l){return l.beans?l.beans:[]});o.push.apply(o,QE(s));var a=[];return o.forEach(function(l){a.indexOf(l)<0&&a.push(l)}),a}},t.prototype.extractModuleEntity=function(r,e){return[].concat.apply([],QE(r.map(e)))},t.prototype.setColumnsAndData=function(r){var e=r.gridOptionsWrapper.getColumnDefs();r.columnModel.setColumnDefs(e||[],"gridInitializing"),r.rowModel.start()},t.prototype.dispatchGridReadyEvent=function(r,e){r.eventService.dispatchEvent({type:Et.EVENT_GRID_READY,api:e.api,columnApi:e.columnApi})},t.prototype.getRowModelClass=function(r,e){r||(r=Nn.ROW_MODEL_TYPE_CLIENT_SIDE);var i={};e.forEach(function(s){Vo(s.rowModels,function(a,l){i[a]=l})});var o=i[r];if(rr(o))return o;qo.isPackageBased()?[Nn.ROW_MODEL_TYPE_VIEWPORT,Nn.ROW_MODEL_TYPE_SERVER_SIDE].includes(r)?console.error('AG Grid: Row Model "'+r+"\" not found. Please ensure the package 'ag-grid-enterprise' is imported. Please see: https://www.ag-grid.com/javascript-grid/packages/"):console.error("AG Grid: could not find row model for rowModelType "+r):r===Nn.ROW_MODEL_TYPE_INFINITE?console.error('AG Grid: Row Model "Infinite" not found. Please ensure the '+mo.InfiniteRowModelModule+" module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/"):r===Nn.ROW_MODEL_TYPE_VIEWPORT?console.error('AG Grid: Row Model "Viewport" not found. Please ensure the AG Grid Enterprise Module '+mo.ViewportRowModelModule+" module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/"):r===Nn.ROW_MODEL_TYPE_SERVER_SIDE?console.error('AG Grid: Row Model "Server Side" not found. Please ensure the AG Grid Enterprise Module '+mo.ServerSideRowModelModule+" module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/"):r===Nn.ROW_MODEL_TYPE_CLIENT_SIDE?console.error('AG Grid: Row Model "Client Side" not found. Please ensure the '+mo.ClientSideRowModelModule+" module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/"):console.error("AG Grid: could not find row model for rowModelType "+r)},t}(),Aj=function(){function t(){}return t.prototype.wrap=function(r,e,i,o){var s=this;void 0===i&&(i=[]);var a=this.createWrapper(r,o);return e.forEach(function(l){s.createMethod(a,l,!0)}),i.forEach(function(l){s.createMethod(a,l,!1)}),a},t.prototype.unwrap=function(r){return r},t.prototype.createMethod=function(r,e,i){r.addMethod(e,this.createMethodProxy(r,e,i))},t.prototype.createMethodProxy=function(r,e,i){return function(){return r.hasMethod(e)?r.callMethod(e,arguments):(i&&console.warn("AG Grid: Framework component is missing the method "+e+"()"),null)}},t}(),ny=typeof global>"u"?{}:global;ny.HTMLElement=typeof HTMLElement>"u"?{}:HTMLElement,ny.HTMLButtonElement=typeof HTMLButtonElement>"u"?{}:HTMLButtonElement,ny.HTMLSelectElement=typeof HTMLSelectElement>"u"?{}:HTMLSelectElement,ny.HTMLInputElement=typeof HTMLInputElement>"u"?{}:HTMLInputElement,ny.Node=typeof Node>"u"?{}:Node,ny.MouseEvent=typeof MouseEvent>"u"?{}:MouseEvent;var Y3=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Q1=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},pM=function(t){function r(){var i=null!==t&&t.apply(this,arguments)||this;return i.watermarkMessage=void 0,i}var e;return Y3(r,t),e=r,r.prototype.validateLicense=function(){if(ln.missingOrEmpty(e.licenseKey))this.outputMissingLicenseKey();else if(e.licenseKey.length>32){var i=e.extractLicenseComponents(e.licenseKey),s=i.license,a=i.version,l=i.isTrial;i.md5===this.md5.md5(s)?ln.exists(a)&&a?this.validateLicenseKeyForVersion(a,!!l,s):this.validateLegacyKey(s):this.outputInvalidLicenseKey()}else this.outputInvalidLicenseKey()},r.extractExpiry=function(i){var o=i.substring(i.lastIndexOf("_")+1,i.length);return new Date(parseInt(e.decode(o),10))},r.extractLicenseComponents=function(i){var o=i.replace(/[\u200B-\u200D\uFEFF]/g,""),s=(o=o.replace(/\r?\n|\r/g,"")).length-32,a=o.substring(s),l=o.substring(0,s),c=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var o,a,i=e.call(t),s=[];try{for(;(void 0===r||r-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return s}(e.extractBracketedInformation(o),2);return{md5:a,license:l,version:c[0],isTrial:c[1]}},r.prototype.getLicenseDetails=function(i){var o=e.extractLicenseComponents(i),a=o.license,l=o.version,c=o.isTrial,d=o.md5===this.md5.md5(a),f=null;return d&&(f=e.extractExpiry(a),d=!isNaN(f.getTime())),{licenseKey:i,valid:d,expiry:d?e.formatDate(f):null,version:l||"legacy",isTrial:c}},r.prototype.isDisplayWatermark=function(){return!ln.missingOrEmpty(this.watermarkMessage)},r.prototype.getWatermarkMessage=function(){return this.watermarkMessage||""},r.formatDate=function(i){var s=i.getDate(),a=i.getMonth(),l=i.getFullYear();return s+" "+["January","February","March","April","May","June","July","August","September","October","November","December"][a]+" "+l},r.getGridReleaseDate=function(){return new Date(parseInt(e.decode(e.RELEASE_INFORMATION),10))},r.decode=function(i){for(var l,c,d,f,v,w,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s="",x=0,I=i.replace(/[^A-Za-z0-9+/=]/g,"");x<I.length;)d=o.indexOf(I.charAt(x++)),l=(15&(f=o.indexOf(I.charAt(x++))))<<4|(v=o.indexOf(I.charAt(x++)))>>2,c=(3&v)<<6|(w=o.indexOf(I.charAt(x++))),s+=String.fromCharCode(d<<2|f>>4),64!=v&&(s+=String.fromCharCode(l)),64!=w&&(s+=String.fromCharCode(c));return e.utf8_decode(s)},r.utf8_decode=function(i){i=i.replace(/rn/g,"n");for(var o="",s=0;s<i.length;s++){var a=i.charCodeAt(s);a<128?o+=String.fromCharCode(a):a>127&&a<2048?(o+=String.fromCharCode(a>>6|192),o+=String.fromCharCode(63&a|128)):(o+=String.fromCharCode(a>>12|224),o+=String.fromCharCode(a>>6&63|128),o+=String.fromCharCode(63&a|128))}return o},r.setLicenseKey=function(i){e.licenseKey=i},r.extractBracketedInformation=function(i){var o=i.split("[").filter(function(l){return l.indexOf("]")>-1}).map(function(l){return l.split("]")[0]});if(!o||0===o.length)return[null,null];var s=1===o.filter(function(l){return"TRIAL"===l}).length;return[o.filter(function(l){return 0===l.indexOf("v")}).map(function(l){return l.replace(/^v/,"")})[0],s]},r.prototype.validateLicenseKeyForVersion=function(i,o,s){"2"===i&&(o?this.validateForTrial(s):this.validateLegacyKey(s))},r.prototype.validateLegacyKey=function(i){var o=e.getGridReleaseDate(),s=e.extractExpiry(i),a=!1,l=!1;if(isNaN(s.getTime())||(a=!0,l=o<s),a){if(!l){var c=e.formatDate(s),d=e.formatDate(o);this.outputIncompatibleVersion(c,d)}}else this.outputInvalidLicenseKey()},r.prototype.validateForTrial=function(i){var o=e.extractExpiry(i),s=new Date,a=!1,l=!1;if(isNaN(o.getTime())||(a=!0,l=o>s),a){if(!l){var c=e.formatDate(o);this.outputExpiredTrialKey(c)}}else this.outputInvalidLicenseKey()},r.prototype.outputInvalidLicenseKey=function(){console.error("*****************************************************************************************************************"),console.error("***************************************** AG Grid Enterprise License ********************************************"),console.error("********************************************* Invalid License ***************************************************"),console.error("* Your license for AG Grid Enterprise is not valid - please contact info@ag-grid.com to obtain a valid license. *"),console.error("*****************************************************************************************************************"),console.error("*****************************************************************************************************************"),this.watermarkMessage="Invalid License"},r.prototype.outputExpiredTrialKey=function(i){console.error("****************************************************************************************************************"),console.error("***************************************** AG Grid Enterprise License *******************************************"),console.error("*****************************************   Trial Period Expired.    *******************************************"),console.error("* Your license for AG Grid Enterprise expired on "+i+".                                                *"),console.error("* Please email info@ag-grid.com to purchase a license.                                                         *"),console.error("****************************************************************************************************************"),console.error("****************************************************************************************************************"),this.watermarkMessage="Trial Period Expired"},r.prototype.outputMissingLicenseKey=function(){console.error("****************************************************************************************************************"),console.error("***************************************** AG Grid Enterprise License *******************************************"),console.error("****************************************** License Key Not Found ***********************************************"),console.error("* All AG Grid Enterprise features are unlocked.                                                                *"),console.error("* This is an evaluation only version, it is not licensed for development projects intended for production.     *"),console.error("* If you want to hide the watermark, please email info@ag-grid.com for a trial license.                        *"),console.error("****************************************************************************************************************"),console.error("****************************************************************************************************************"),this.watermarkMessage="For Trial Use Only"},r.prototype.outputIncompatibleVersion=function(i,o){console.error("****************************************************************************************************************************"),console.error("****************************************************************************************************************************"),console.error("*                                             AG Grid Enterprise License                                                   *"),console.error("*                           License not compatible with installed version of AG Grid Enterprise.                           *"),console.error("*                                                                                                                          *"),console.error("* Your AG Grid License entitles you to all versions of AG Grid that we release within the time covered by your license     *"),console.error("* - typically we provide one year licenses which entitles you to all releases / updates of AG Grid within that year.       *"),console.error("* Your license has an end (expiry) date which stops the license key working with versions of AG Grid released after the    *"),console.error("* license end date. The license key that you have expires on "+i+", however the version of AG Grid you    *"),console.error("* are trying to use was released on "+o+".                                                               *"),console.error("*                                                                                                                          *"),console.error("* Please contact info@ag-grid.com to renew your subscription to new versions and get a new license key to work with this   *"),console.error("* version of AG Grid.                                                                                                      *"),console.error("****************************************************************************************************************************"),console.error("****************************************************************************************************************************"),this.watermarkMessage="License Expired"},r.RELEASE_INFORMATION="MTY1Njg3Mzg0NDQzOQ==",Q1([Xe("md5")],r.prototype,"md5",void 0),Q1([vh],r.prototype,"validateLicense",null),e=Q1([Kr("licenseManager")],r)}(Zi),Mj=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Rj=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},Oj=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.ieCompatibility=!1,e}return Mj(r,t),r.prototype.init=function(){this.ieCompatibility="5d41402abc4b2a76b9719d911017c592"!=this.md5("hello")},r.prototype.md5cycle=function(e,i){var o=e[0],s=e[1],a=e[2],l=e[3];o=this.ff(o,s,a,l,i[0],7,-680876936),l=this.ff(l,o,s,a,i[1],12,-389564586),a=this.ff(a,l,o,s,i[2],17,606105819),s=this.ff(s,a,l,o,i[3],22,-1044525330),o=this.ff(o,s,a,l,i[4],7,-176418897),l=this.ff(l,o,s,a,i[5],12,1200080426),a=this.ff(a,l,o,s,i[6],17,-1473231341),s=this.ff(s,a,l,o,i[7],22,-45705983),o=this.ff(o,s,a,l,i[8],7,1770035416),l=this.ff(l,o,s,a,i[9],12,-1958414417),a=this.ff(a,l,o,s,i[10],17,-42063),s=this.ff(s,a,l,o,i[11],22,-1990404162),o=this.ff(o,s,a,l,i[12],7,1804603682),l=this.ff(l,o,s,a,i[13],12,-40341101),a=this.ff(a,l,o,s,i[14],17,-1502002290),s=this.ff(s,a,l,o,i[15],22,1236535329),o=this.gg(o,s,a,l,i[1],5,-165796510),l=this.gg(l,o,s,a,i[6],9,-1069501632),a=this.gg(a,l,o,s,i[11],14,643717713),s=this.gg(s,a,l,o,i[0],20,-373897302),o=this.gg(o,s,a,l,i[5],5,-701558691),l=this.gg(l,o,s,a,i[10],9,38016083),a=this.gg(a,l,o,s,i[15],14,-660478335),s=this.gg(s,a,l,o,i[4],20,-405537848),o=this.gg(o,s,a,l,i[9],5,568446438),l=this.gg(l,o,s,a,i[14],9,-1019803690),a=this.gg(a,l,o,s,i[3],14,-187363961),s=this.gg(s,a,l,o,i[8],20,1163531501),o=this.gg(o,s,a,l,i[13],5,-1444681467),l=this.gg(l,o,s,a,i[2],9,-51403784),a=this.gg(a,l,o,s,i[7],14,1735328473),s=this.gg(s,a,l,o,i[12],20,-1926607734),o=this.hh(o,s,a,l,i[5],4,-378558),l=this.hh(l,o,s,a,i[8],11,-2022574463),a=this.hh(a,l,o,s,i[11],16,1839030562),s=this.hh(s,a,l,o,i[14],23,-35309556),o=this.hh(o,s,a,l,i[1],4,-1530992060),l=this.hh(l,o,s,a,i[4],11,1272893353),a=this.hh(a,l,o,s,i[7],16,-155497632),s=this.hh(s,a,l,o,i[10],23,-1094730640),o=this.hh(o,s,a,l,i[13],4,681279174),l=this.hh(l,o,s,a,i[0],11,-358537222),a=this.hh(a,l,o,s,i[3],16,-722521979),s=this.hh(s,a,l,o,i[6],23,76029189),o=this.hh(o,s,a,l,i[9],4,-640364487),l=this.hh(l,o,s,a,i[12],11,-421815835),a=this.hh(a,l,o,s,i[15],16,530742520),s=this.hh(s,a,l,o,i[2],23,-995338651),o=this.ii(o,s,a,l,i[0],6,-198630844),l=this.ii(l,o,s,a,i[7],10,1126891415),a=this.ii(a,l,o,s,i[14],15,-1416354905),s=this.ii(s,a,l,o,i[5],21,-57434055),o=this.ii(o,s,a,l,i[12],6,1700485571),l=this.ii(l,o,s,a,i[3],10,-1894986606),a=this.ii(a,l,o,s,i[10],15,-1051523),s=this.ii(s,a,l,o,i[1],21,-2054922799),o=this.ii(o,s,a,l,i[8],6,1873313359),l=this.ii(l,o,s,a,i[15],10,-30611744),a=this.ii(a,l,o,s,i[6],15,-1560198380),s=this.ii(s,a,l,o,i[13],21,1309151649),o=this.ii(o,s,a,l,i[4],6,-145523070),l=this.ii(l,o,s,a,i[11],10,-1120210379),a=this.ii(a,l,o,s,i[2],15,718787259),s=this.ii(s,a,l,o,i[9],21,-343485551),e[0]=this.add32(o,e[0]),e[1]=this.add32(s,e[1]),e[2]=this.add32(a,e[2]),e[3]=this.add32(l,e[3])},r.prototype.cmn=function(e,i,o,s,a,l){return i=this.add32(this.add32(i,e),this.add32(s,l)),this.add32(i<<a|i>>>32-a,o)},r.prototype.ff=function(e,i,o,s,a,l,c){return this.cmn(i&o|~i&s,e,i,a,l,c)},r.prototype.gg=function(e,i,o,s,a,l,c){return this.cmn(i&s|o&~s,e,i,a,l,c)},r.prototype.hh=function(e,i,o,s,a,l,c){return this.cmn(i^o^s,e,i,a,l,c)},r.prototype.ii=function(e,i,o,s,a,l,c){return this.cmn(o^(i|~s),e,i,a,l,c)},r.prototype.md51=function(e){var s,i=e.length,o=[1732584193,-271733879,-1732584194,271733878];for(s=64;s<=e.length;s+=64)this.md5cycle(o,this.md5blk(e.substring(s-64,s)));e=e.substring(s-64);var a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(s=0;s<e.length;s++)a[s>>2]|=e.charCodeAt(s)<<(s%4<<3);if(a[s>>2]|=128<<(s%4<<3),s>55)for(this.md5cycle(o,a),s=0;s<16;s++)a[s]=0;return a[14]=8*i,this.md5cycle(o,a),o},r.prototype.md5blk=function(e){for(var i=[],o=0;o<64;o+=4)i[o>>2]=e.charCodeAt(o)+(e.charCodeAt(o+1)<<8)+(e.charCodeAt(o+2)<<16)+(e.charCodeAt(o+3)<<24);return i},r.prototype.rhex=function(e){for(var i="0123456789abcdef".split(""),o="",s=0;s<4;s++)o+=i[e>>8*s+4&15]+i[e>>8*s&15];return o},r.prototype.hex=function(e){for(var i=0;i<e.length;i++)e[i]=this.rhex(e[i]);return e.join("")},r.prototype.md5=function(e){return this.hex(this.md51(e))},r.prototype.add32=function(e,i){return this.ieCompatibility?this.add32Compat(e,i):this.add32Std(e,i)},r.prototype.add32Std=function(e,i){return e+i&4294967295},r.prototype.add32Compat=function(e,i){var o=(65535&e)+(65535&i);return(e>>16)+(i>>16)+(o>>16)<<16|65535&o},Rj([qi],r.prototype,"init",null),Rj([Kr("md5")],r)}(Zi),Fj=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),JE=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},Yf=function(t){function r(){return t.call(this,'<div class="ag-watermark">\n                    <div ref="eLicenseTextRef" class="ag-watermark-text"></div>\n               </div>')||this}return Fj(r,t),r.prototype.postConstruct=function(){var e=this,i=this.shouldDisplayWatermark();this.addOrRemoveCssClass("ag-hidden",!i),i&&(this.eLicenseTextRef.innerText=this.licenseManager.getWatermarkMessage(),window.setTimeout(function(){return e.addCssClass("ag-opacity-zero")},0),window.setTimeout(function(){return e.addCssClass("ag-hidden")},5e3))},r.prototype.shouldDisplayWatermark=function(){var o=(this.gridOptionsWrapper.getDocument().defaultView||window).location,s=o.hostname,a=void 0===s?"":s,l=o.pathname,c=this.licenseManager.isDisplayWatermark(),d=null!=a.match("^(?:127.0.0.1|localhost|(?:w+.)?ag-grid.com)$");return!!l&&-1!==l.indexOf("forceWatermark")||c&&!d},JE([Xe("licenseManager")],r.prototype,"licenseManager",void 0),JE([Ti("eLicenseTextRef")],r.prototype,"eLicenseTextRef",void 0),JE([qi],r.prototype,"postConstruct",null),r}(Do),rg={moduleName:mo.EnterpriseCoreModule,beans:[pM,Oj],agStackComponents:[{componentName:"AgWatermark",componentClass:Yf}]},Em=b(8008);let W3=(()=>{class t extends Em.\u0275AnimationEngine{constructor(e,i,o){super(e,i,o)}ngOnDestroy(){this.flush()}static \u0275fac=function(i){return new(i||t)(n.KVO(be),n.KVO(Em.AnimationDriver),n.KVO(Em.\u0275AnimationStyleNormalizer))};static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const iw=[{provide:Em.\u0275AnimationStyleNormalizer,useFactory:function z3(){return new Em.\u0275WebAnimationsStyleNormalizer}},{provide:Em.\u0275AnimationEngine,useClass:W3},{provide:n._9s,useFactory:function q3(t,r,e){return new Em.\u0275AnimationRendererFactory(t,r,e)},deps:[fr,Em.\u0275AnimationEngine,n.SKi]}],PS=[{provide:Em.AnimationDriver,useFactory:()=>new Em.\u0275WebAnimationsDriver},{provide:n.bc$,useValue:"BrowserAnimations"},...iw],hM=[{provide:Em.AnimationDriver,useClass:Em.NoopAnimationDriver},{provide:n.bc$,useValue:"NoopAnimations"},...iw];let J1=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?hM:PS}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({providers:PS,imports:[vc]})}return t})(),Lj=(()=>{class t{doc;delegate;zone;animationType;moduleImpl;_rendererFactoryPromise=null;scheduler=(0,n.WQX)(n.An2,{optional:!0});loadingSchedulerFn=(0,n.WQX)(Nj,{optional:!0});_engine;constructor(e,i,o,s,a){this.doc=e,this.delegate=i,this.zone=o,this.animationType=s,this.moduleImpl=a}ngOnDestroy(){this._engine?.flush()}loadImpl(){const e=()=>this.moduleImpl??Promise.resolve().then(b.bind(b,8008)).then(o=>o);let i;return i=this.loadingSchedulerFn?this.loadingSchedulerFn(e):e(),i.catch(o=>{throw new n.wOt(5300,!1)}).then(({\u0275createEngine:o,\u0275AnimationRendererFactory:s})=>{this._engine=o(this.animationType,this.doc);const a=new s(this.delegate,this._engine,this.zone);return this.delegate=a,a})}createRenderer(e,i){const o=this.delegate.createRenderer(e,i);if(0===o.\u0275type)return o;"boolean"==typeof o.throwOnSyntheticProps&&(o.throwOnSyntheticProps=!1);const s=new fM(o);return i?.data?.animation&&!this._rendererFactoryPromise&&(this._rendererFactoryPromise=this.loadImpl()),this._rendererFactoryPromise?.then(a=>{const l=a.createRenderer(e,i);s.use(l),this.scheduler?.notify(11)}).catch(a=>{s.use(o)}),s}begin(){this.delegate.begin?.()}end(){this.delegate.end?.()}whenRenderingDone(){return this.delegate.whenRenderingDone?.()??Promise.resolve()}static \u0275fac=function(i){n.QTQ()};static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();class fM{delegate;replay=[];\u0275type=1;constructor(r){this.delegate=r}use(r){if(this.delegate=r,null!==this.replay){for(const e of this.replay)e(r);this.replay=null}}get data(){return this.delegate.data}destroy(){this.replay=null,this.delegate.destroy()}createElement(r,e){return this.delegate.createElement(r,e)}createComment(r){return this.delegate.createComment(r)}createText(r){return this.delegate.createText(r)}get destroyNode(){return this.delegate.destroyNode}appendChild(r,e){this.delegate.appendChild(r,e)}insertBefore(r,e,i,o){this.delegate.insertBefore(r,e,i,o)}removeChild(r,e,i){this.delegate.removeChild(r,e,i)}selectRootElement(r,e){return this.delegate.selectRootElement(r,e)}parentNode(r){return this.delegate.parentNode(r)}nextSibling(r){return this.delegate.nextSibling(r)}setAttribute(r,e,i,o){this.delegate.setAttribute(r,e,i,o)}removeAttribute(r,e,i){this.delegate.removeAttribute(r,e,i)}addClass(r,e){this.delegate.addClass(r,e)}removeClass(r,e){this.delegate.removeClass(r,e)}setStyle(r,e,i,o){this.delegate.setStyle(r,e,i,o)}removeStyle(r,e,i){this.delegate.removeStyle(r,e,i)}setProperty(r,e,i){this.shouldReplay(e)&&this.replay.push(o=>o.setProperty(r,e,i)),this.delegate.setProperty(r,e,i)}setValue(r,e){this.delegate.setValue(r,e)}listen(r,e,i){return this.shouldReplay(e)&&this.replay.push(o=>o.listen(r,e,i)),this.delegate.listen(r,e,i)}shouldReplay(r){return null!==this.replay&&r.startsWith("@")}}const Nj=new n.nKC("");function nd(t="animations"){return(0,n.ngT)("NgAsyncAnimations"),(0,n.EmA)([{provide:n._9s,useFactory:(r,e,i)=>new Lj(r,e,i,t),deps:[be,fr,n.SKi]},{provide:n.bc$,useValue:"noop"===t?"NoopAnimations":"BrowserAnimations"}])}var K3=b(3488);function af(){throw new Error("AngularJS v1.x is not loaded!")}const Q3=()=>af();Q3.cleanData=af;let lv={bootstrap:af,module:af,element:Q3,injector:af,version:void 0,resumeBootstrap:af,getTestability:af};try{window.hasOwnProperty("angular")&&(lv=window.angular)}catch{}const ZE=(t,r)=>lv.module(t,r),rw=t=>lv.element(t);rw.cleanData=t=>lv.element.cleanData(t);const mM="$compile",gM="$delegate",cv="$injector",vM="$interval",bM="$$testability",M_="$$angularDowngradedModuleCount",lf="$$angularInjector",uv="$$angularLazyModuleRef",dv="$$angularUpgradeAppType",eb="?^^"+lf,R_="$$UpgradeModule";class wM{prop;attr;bracketAttr;bracketParenAttr;parenAttr;onAttr;bindAttr;bindonAttr;constructor(r,e){this.prop=r,this.attr=e,this.bracketAttr=`[${this.attr}]`,this.parenAttr=`(${this.attr})`,this.bracketParenAttr=`[(${this.attr})]`;const i=this.attr.charAt(0).toUpperCase()+this.attr.slice(1);this.onAttr=`on${i}`,this.bindAttr=`bind${i}`,this.bindonAttr=`bindon${i}`}}const a4=/^(?:x|data)[:\-_]/i,l4=/[:\-_]+(.)/g;function LS(t){rw.cleanData([t]),function nb(t){return Wf(t.querySelectorAll)}(t)&&rw.cleanData(t.querySelectorAll("*"))}function aw(t){return"$"+t+"Controller"}function iy(t){return t.overriddenName||t.name||t.toString().split("\n")[0]}function og(t){return t.has(M_)?t.get(M_):0}function SM(t){return t.has(dv)?t.get(dv):0}function Wf(t){return"function"==typeof t}function NS(t,r,e,i){const o=SM(t),s=og(t);switch(o){case 1:case 2:if(r)throw new Error(`Error while ${i}: 'downgradedModule' unexpectedly specified.\nYou should not specify a value for 'downgradedModule', unless you are downgrading more than one Angular module (via 'downgradeModule()').`);break;case 3:if(!r&&s>=2)throw new Error(`Error while ${i}: 'downgradedModule' not specified.\nThis application contains more than one downgraded Angular module, thus you need to always specify 'downgradedModule' when downgrading components and injectables.`);if(!t.has(e))throw new Error(`Error while ${i}: Unable to find the specified downgraded module.\nDid you forget to downgrade an Angular module or include it in the AngularJS application?`);break;default:throw new Error(`Error while ${i}: Not a valid '@angular/upgrade' application.\nDid you forget to downgrade an Angular module or include it in the AngularJS application?`)}}function Yj(t,r){return t===r||t!=t&&r!=r}const u4={__UNINITIALIZED__:!0};class d4{element;attrs;scope;ngModel;parentInjector;$compile;$parse;componentFactory;wrapCallback;unsafelyOverwriteSignalInputs;implementsOnChanges=!1;inputChangeCount=0;inputChanges={};componentScope;constructor(r,e,i,o,s,a,l,c,d,f){this.element=r,this.attrs=e,this.scope=i,this.ngModel=o,this.parentInjector=s,this.$compile=a,this.$parse=l,this.componentFactory=c,this.wrapCallback=d,this.unsafelyOverwriteSignalInputs=f,this.componentScope=i.$new()}compileContents(){const r=[],i=this.groupProjectableNodes().map(o=>this.$compile(o));return this.element.empty(),i.forEach(o=>{o(this.scope,s=>{r.push(s),this.element.append(s)})}),r}createComponentAndSetup(r,e=!1,i=!0){const o=this.createComponent(r);return this.setupInputs(e,i,o),this.setupOutputs(o.componentRef),this.registerCleanup(o.componentRef),o.componentRef}createComponent(r){const i=n.zZn.create({providers:[{provide:"$scope",useValue:this.componentScope}],parent:this.parentInjector,name:"DowngradeComponentAdapter"}),o=this.componentFactory.create(i,r,this.element[0]),s=o.injector.get(n.gRc),a=o.changeDetectorRef,l=o.injector.get(n.NYb,null);return l&&o.injector.get(n.giA).registerApplication(o.location.nativeElement,l),function $j(t,r){t&&function xM(t){return"function"==typeof t.writeValue&&"function"==typeof t.registerOnChange}(r)&&(t.$render=()=>{r.writeValue(t.$viewValue)},r.registerOnChange(t.$setViewValue.bind(t)),"function"==typeof r.registerOnTouched&&r.registerOnTouched(t.$setTouched.bind(t)))}(this.ngModel,o.instance),{viewChangeDetector:s,componentRef:o,changeDetector:a}}setupInputs(r,e=!0,{componentRef:i,changeDetector:o,viewChangeDetector:s}){const a=this.attrs,l=this.componentFactory.inputs||[];for(const f of l){const v=new wM(f.propName,f.templateName);let w=null;if(a.hasOwnProperty(v.attr)){const x=((M,F)=>{let re=u4;return pe=>{Yj(re,pe)||(re===u4&&(re=pe),this.updateInput(i,M,re,pe,F),re=pe)}})(v.prop,f.isSignal);a.$observe(v.attr,x);let I=this.componentScope.$watch(()=>{I(),I=null,x(a[v.attr])})}else a.hasOwnProperty(v.bindAttr)?w=a[v.bindAttr]:a.hasOwnProperty(v.bracketAttr)?w=a[v.bracketAttr]:a.hasOwnProperty(v.bindonAttr)?w=a[v.bindonAttr]:a.hasOwnProperty(v.bracketParenAttr)&&(w=a[v.bracketParenAttr]);null!=w&&this.componentScope.$watch(w,((I,M)=>(F,re)=>this.updateInput(i,I,re,F,M))(v.prop,f.isSignal))}const c=()=>o.detectChanges(),d=this.componentFactory.componentType.prototype;if(this.implementsOnChanges=!(!d||!d.ngOnChanges),this.componentScope.$watch(()=>this.inputChangeCount,this.wrapCallback(()=>{if(this.implementsOnChanges){const f=this.inputChanges;this.inputChanges={},i.instance.ngOnChanges(f)}s.markForCheck(),e||c()})),e&&this.componentScope.$watch(this.wrapCallback(c)),r||!e){let f=this.componentScope.$watch(()=>{f(),f=null,this.parentInjector.get(n.o8S).attachView(i.hostView)})}}setupOutputs(r){const e=this.attrs,i=this.componentFactory.outputs||[];for(const o of i){const s=new wM(o.propName,o.templateName),a=s.bindonAttr.substring(0,s.bindonAttr.length-6),l=`[(${s.bracketParenAttr.substring(2,s.bracketParenAttr.length-8)})]`;e.hasOwnProperty(a)&&this.subscribeToOutput(r,s,e[a],!0),e.hasOwnProperty(l)&&this.subscribeToOutput(r,s,e[l],!0),e.hasOwnProperty(s.onAttr)&&this.subscribeToOutput(r,s,e[s.onAttr]),e.hasOwnProperty(s.parenAttr)&&this.subscribeToOutput(r,s,e[s.parenAttr])}}subscribeToOutput(r,e,i,o=!1){const s=this.$parse(i),a=s.assign;if(o&&!a)throw new Error(`Expression '${i}' is not assignable!`);const l=r.instance[e.prop];if(!l)throw new Error(`Missing emitter '${e.prop}' on component '${iy(this.componentFactory.componentType)}'!`);{const c=l.subscribe({next:o?d=>a(this.scope,d):d=>s(this.scope,{$event:d})});r.onDestroy(()=>c.unsubscribe())}}registerCleanup(r){const e=r.injector.get(n.giA),i=this.wrapCallback(()=>r.destroy());let o=!1;this.element.on("$destroy",()=>{o||this.componentScope.$destroy()}),this.componentScope.$on("$destroy",()=>{o||(o=!0,e.unregisterApplication(r.location.nativeElement),LS(this.element[0]),i())})}updateInput(r,e,i,o,s){if(this.implementsOnChanges&&(this.inputChanges[e]=new n.FRM(i,o,i===o)),this.inputChangeCount++,s&&!this.unsafelyOverwriteSignalInputs){const a=r.instance[e][K3.bh];a.applyValueToInputSignal(a,o)}else r.instance[e]=o}groupProjectableNodes(){return function Wj(t,r){const e=[];for(let i=0,o=t.length;i<o;++i)e[i]=[];for(let i=0,o=r.length;i<o;++i){const s=r[i],a=Wd(s,t);null!=a&&e[a].push(s)}return e}(this.componentFactory.ngContentSelectors,this.element.contents())}}function Wd(t,r){const e=[];let i=-1;for(let o=0;o<r.length;o++){const s=r[o];"*"===s?i=o:p4(t,s)&&e.push(o)}return e.sort(),-1!==i&&e.push(i),e.length?e[0]:null}function p4(t,r){const e=Element.prototype;return t.nodeType===Node.ELEMENT_NODE&&(e.matches??e.msMatchesSelector).call(t,r)}class nD{value;resolved=!1;callbacks=[];static all(r){const e=new nD;let i=0;const o=[],s=(a,l)=>{o[a]=l,++i===r.length&&e.resolve(o)};return r.forEach((a,l)=>{!function zj(t){return!!t&&Wf(t.then)}(a)?s(l,a):a.then(c=>s(l,c))}),e}resolve(r){this.resolved||(this.value=r,this.resolved=!0,this.callbacks.forEach(e=>e(r)),this.callbacks.length=0)}then(r){this.resolved?r(this.value):this.callbacks.push(r)}}class qj extends nD{element;injectorKey=aw(lf);constructor(r){super(),this.element=r,r.data(this.injectorKey,this)}resolve(r){this.element.data(this.injectorKey,r),this.element=null,super.resolve(r)}}let O_;function EM(t){return function Kj(){if(void 0===O_){O_=null;const t=window;if(t.trustedTypes)try{O_=t.trustedTypes.createPolicy("angular#unsafe-upgrade",{createHTML:r=>r})}catch{}}return O_}()?.createHTML(t)||t}const DM=/^(\^\^?)?(\?)?(\^\^?)?/;class GS{name;$injector;element;$element;directive;$compile;$controller;constructor(r,e,i,o){this.name=e,this.$injector=r.get(cv),this.$compile=this.$injector.get(mM),this.$controller=this.$injector.get("$controller"),this.element=i.nativeElement,this.$element=rw(this.element),this.directive=o??GS.getDirective(this.$injector,e)}static getDirective(r,e){const i=r.get(e+"Directive");if(i.length>1)throw new Error(`Only support single directive definition for: ${e}`);const o=i[0];return o.compile&&!o.link&&BS(e,"compile"),o.replace&&BS(e,"replace"),o.terminal&&BS(e,"terminal"),o}static getTemplate(r,e,i=!1,o){if(void 0!==e.template)return EM(kM(e.template,o));if(e.templateUrl){const s=r.get("$templateCache"),a=kM(e.templateUrl,o),l=s.get(a);if(void 0!==l)return EM(l);if(!i)throw new Error("loading directive templates asynchronously is not supported");return new Promise((c,d)=>{r.get("$httpBackend")("GET",a,null,(v,w)=>{200===v?c(EM(s.put(a,w))):d(`GET component template from '${a}' returned '${v}: ${w}'`)})})}throw new Error(`Directive '${e.name}' is not a component, it is missing template.`)}buildController(r,e){const o=this.$controller(r,{$scope:e,$element:this.$element},null,this.directive.controllerAs);return this.$element.data?.(aw(this.directive.name),o),o}compileTemplate(r){return void 0===r&&(r=GS.getTemplate(this.$injector,this.directive,!1,this.$element)),this.compileHtml(r)}onDestroy(r,e){e&&Wf(e.$onDestroy)&&e.$onDestroy(),r.$destroy(),LS(this.element)}prepareTransclusion(){const r=this.directive.transclude,e=this.extractChildNodes(),i=(s,a)=>a(o,s=s||{$destroy:()=>{}});let o=e;if(r){const s=Object.create(null);if("object"==typeof r){o=[];const a=Object.create(null),l=Object.create(null);Object.keys(r).forEach(c=>{let d=r[c];const f="?"===d.charAt(0);d=f?d.substring(1):d,a[d]=c,s[c]=null,l[c]=f}),e.forEach(c=>{const d=a[function TM(t){return t.replace(a4,"").replace(l4,(r,e)=>e.toUpperCase())}(c.nodeName.toLowerCase())];d?(l[d]=!0,s[d]=s[d]||[],s[d].push(c)):o.push(c)}),Object.keys(l).forEach(c=>{if(!l[c])throw new Error(`Required transclusion slot '${c}' on directive: ${this.name}`)}),Object.keys(s).filter(c=>s[c]).forEach(c=>{const d=s[c];s[c]=(f,v)=>v(d,f)})}i.$$slots=s,o.forEach(a=>{a.nodeType===Node.TEXT_NODE&&!a.nodeValue&&(a.nodeValue="\u200c")})}return i}resolveAndBindRequiredControllers(r){const e=this.getDirectiveRequire(),i=this.resolveRequire(e);if(r&&this.directive.bindToController&&Qj(e)){const o=i;Object.keys(o).forEach(s=>{r[s]=o[s]})}return i}compileHtml(r){return this.element.innerHTML=r,this.$compile(this.element.childNodes)}extractChildNodes(){const r=[];let e;for(;e=this.element.firstChild;)e.remove(),r.push(e);return r}getDirectiveRequire(){const r=this.directive.require||this.directive.controller&&this.directive.name;return Qj(r)&&Object.entries(r).forEach(([e,i])=>{const o=i.match(DM);i.substring(o[0].length)||(r[e]=o[0]+e)}),r}resolveRequire(r){if(r){if(Array.isArray(r))return r.map(e=>this.resolveRequire(e));if("object"==typeof r){const e={};return Object.keys(r).forEach(i=>e[i]=this.resolveRequire(r[i])),e}if("string"==typeof r){const e=r.match(DM),i=e[1]||e[3],o=r.substring(e[0].length),s=!!e[2],a=!!i,l="^^"===i,c=aw(o),d=l?this.$element.parent():this.$element,f=a?d.inheritedData(c):d.data(c);if(!f&&!s)throw new Error(`Unable to find required '${r}' in upgraded directive '${this.name}'.`);return f}throw new Error(`Unrecognized 'require' syntax on upgraded directive '${this.name}': ${r}`)}return null}}function kM(t,...r){return Wf(t)?t(...r):t}function Qj(t){return t&&!Array.isArray(t)&&"object"==typeof t}function BS(t,r){throw new Error(`Upgraded directive '${t}' contains unsupported feature: '${r}'.`)}let lw=null;const Dm=[{provide:"$injector",useFactory:function sg(){if(!lw)throw new Error("Trying to get the AngularJS injector before it being set.");const t=lw;return lw=null,t},deps:[]},{provide:"$rootScope",useFactory:function Jj(t){return t.get("$rootScope")},deps:["$injector"]},{provide:"$compile",useFactory:function g4(t){return t.get("$compile")},deps:["$injector"]},{provide:"$parse",useFactory:function pv(t){return t.get("$parse")},deps:["$injector"]}];class km{modInjector;constructor(r){this.modInjector=r}get(r,e){return e===n.UR7?e:this.modInjector.get(r,e)}}const y4="NOT_SUPPORTED",e9={__UNINITIALIZED__:!0};class t9{twoWayBoundProperties=[];twoWayBoundLastValues=[];expressionBoundProperties=[];propertyToOutputMap={}}let IM=(()=>{class t{helper;$element;$componentScope;directive;bindings;controllerInstance;bindingDestination;pendingChanges=null;unregisterDoCheckWatcher;constructor(e,i,o){this.helper=new GS(o,e,i),this.$element=this.helper.$element,this.directive=this.helper.directive,this.bindings=this.initializeBindings(this.directive,e);const s=o.get("$scope");this.$componentScope=s.$new(!!this.directive.scope),this.initializeOutputs()}ngOnInit(){const e=this.helper.prepareTransclusion(),i=this.helper.compileTemplate(),o=this.directive.controller,s=this.directive.bindToController;let l,a=o?this.helper.buildController(o,this.$componentScope):void 0;if(s){if(!o||!a)throw new Error(`Upgraded directive '${this.directive.name}' specifies 'bindToController' but no controller.`);l=a}else l=this.$componentScope;this.controllerInstance=a,this.bindingDestination=l,this.bindOutputs(l);const c=this.helper.resolveAndBindRequiredControllers(a);if(this.pendingChanges&&(this.forwardChanges(this.pendingChanges,l),this.pendingChanges=null),this.controllerInstance&&Wf(this.controllerInstance.$onInit)&&this.controllerInstance.$onInit(),a&&Wf(a.$doCheck)){const I=()=>a?.$doCheck?.();this.unregisterDoCheckWatcher=this.$componentScope.$parent.$watch(I),I()}const d=this.directive.link,f="object"==typeof d&&d.pre,v="object"==typeof d?d.post:d,w=y4,x=y4;f&&f(this.$componentScope,this.$element,w,c,x),i(this.$componentScope,null,{parentBoundTranscludeFn:e}),v&&v(this.$componentScope,this.$element,w,c,x),this.controllerInstance&&Wf(this.controllerInstance.$postLink)&&this.controllerInstance.$postLink()}ngOnChanges(e){this.bindingDestination?this.forwardChanges(e,this.bindingDestination):this.pendingChanges=e}ngDoCheck(){const i=this.bindings.twoWayBoundLastValues,o=this.bindings.propertyToOutputMap;this.bindings.twoWayBoundProperties.forEach((s,a)=>{const l=this.bindingDestination?.[s];Object.is(l,i[a])||(this[o[s]].emit(l),i[a]=l)})}ngOnDestroy(){Wf(this.unregisterDoCheckWatcher)&&this.unregisterDoCheckWatcher(),this.helper.onDestroy(this.$componentScope,this.controllerInstance)}initializeBindings(e,i){const o="object"==typeof e.bindToController;if(o&&Object.keys(e.scope).length)throw new Error("Binding definitions on scope and controller at the same time is not supported.");const s=o?e.bindToController:e.scope,a=new t9;return"object"==typeof s&&Object.keys(s).forEach(l=>{const d=s[l].charAt(0);switch(d){case"@":case"<":break;case"=":a.twoWayBoundProperties.push(l),a.twoWayBoundLastValues.push(e9),a.propertyToOutputMap[l]=l+"Change";break;case"&":a.expressionBoundProperties.push(l),a.propertyToOutputMap[l]=l;break;default:let f=JSON.stringify(s);throw new Error(`Unexpected mapping '${d}' in '${f}' in '${i}' directive.`)}}),a}initializeOutputs(){this.bindings.twoWayBoundProperties.concat(this.bindings.expressionBoundProperties).forEach(e=>{this[this.bindings.propertyToOutputMap[e]]=new n.bkB})}bindOutputs(e){this.bindings.expressionBoundProperties.forEach(i=>{const s=this[this.bindings.propertyToOutputMap[i]];e[i]=a=>s.emit(a)})}forwardChanges(e,i){Object.keys(e).forEach(o=>i[o]=e[o].currentValue),Wf(i.$onChanges)&&i.$onChanges(e)}static \u0275fac=function(i){n.QTQ()};static \u0275dir=n.FsC({type:t,features:[n.OA$]})}return t})(),cw=(()=>{class t{ngZone;platformRef;$injector;injector;constructor(e,i,o){this.ngZone=i,this.platformRef=o,this.injector=new km(e)}bootstrap(e,i=[],o){const s=R_+".init";ZE(s,[]).constant(dv,2).value(lf,this.injector).factory(uv,[lf,d=>({injector:d})]).config(["$provide",cv,(d,f)=>{f.has(bM)&&d.decorator(bM,[gM,v=>{const w=v.whenStable,x=this.injector,I=function(M){w.call(v,function(){const F=x.get(n.NYb);F.isStable()?M():F.whenStable(I.bind(v,M))})};return v.whenStable=I,v}]),f.has(vM)&&d.decorator(vM,[gM,v=>{let w=(x,I,M,F,...re)=>this.ngZone.runOutsideAngular(()=>v((...pe)=>{setTimeout(()=>{this.ngZone.run(()=>x(...pe))})},I,M,F,...re));return Object.keys(v).forEach(x=>w[x]=v[x]),v.hasOwnProperty("flush")&&(w.flush=()=>(v.flush(),w)),w}])}]).run([cv,d=>{this.$injector=d;const f=d.get("$rootScope");(function iD(t){lw=t})(d),this.injector.get(cv),rw(e).data(aw(lf),this.injector),this.platformRef.onDestroy(()=>function eD(t){const r=t.get("$rootElement");t.get("$rootScope").$destroy(),LS(r[0])}(d)),setTimeout(()=>{const v=this.ngZone.onMicrotaskEmpty.subscribe(()=>f.$$phase?f.$evalAsync():f.$digest());f.$on("$destroy",()=>{v.unsubscribe()})},0)}]);const a=ZE(R_,[s].concat(i)),l=window.angular;l.resumeBootstrap=void 0;const c=this.ngZone.run(()=>((t,r,e)=>lv.bootstrap(t,r,e))(e,[a.name],o));if(l.resumeBootstrap){const d=l.resumeBootstrap,f=this.ngZone;l.resumeBootstrap=function(){let v=arguments;return l.resumeBootstrap=d,f.run(()=>l.resumeBootstrap.apply(this,v))}}return c}static \u0275fac=function(i){return new(i||t)(n.KVO(n.zZn),n.KVO(n.SKi),n.KVO(n.Tg_))};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({providers:[Dm]})}return t})();var AM=function(t,r){return(AM=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])})(t,r)};function zf(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function e(){this.constructor=t}AM(t,r),t.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)}var ni=function(){return ni=Object.assign||function(r){for(var e,i=1,o=arguments.length;i<o;i++)for(var s in e=arguments[i])Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r},ni.apply(this,arguments)};function ag(t,r){var e={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&r.indexOf(i)<0&&(e[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(t);o<i.length;o++)r.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(t,i[o])&&(e[i[o]]=t[i[o]])}return e}function hv(t,r,e,i){return new(e||(e=Promise))(function(s,a){function l(f){try{d(i.next(f))}catch(v){a(v)}}function c(f){try{d(i.throw(f))}catch(v){a(v)}}function d(f){f.done?s(f.value):function o(s){return s instanceof e?s:new e(function(a){a(s)})}(f.value).then(l,c)}d((i=i.apply(t,r||[])).next())})}function F_(t,r){var i,o,s,e={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(d){return function(f){return function c(d){if(i)throw new TypeError("Generator is already executing.");for(;a&&(a=0,d[0]&&(e=0)),e;)try{if(i=1,o&&(s=2&d[0]?o.return:d[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,d[1])).done)return s;switch(o=0,s&&(d=[2&d[0],s.value]),d[0]){case 0:case 1:s=d;break;case 4:return e.label++,{value:d[1],done:!1};case 5:e.label++,o=d[1],d=[0];continue;case 7:d=e.ops.pop(),e.trys.pop();continue;default:if(!(s=(s=e.trys).length>0&&s[s.length-1])&&(6===d[0]||2===d[0])){e=0;continue}if(3===d[0]&&(!s||d[1]>s[0]&&d[1]<s[3])){e.label=d[1];break}if(6===d[0]&&e.label<s[1]){e.label=s[1],s=d;break}if(s&&e.label<s[2]){e.label=s[2],e.ops.push(d);break}s[2]&&e.ops.pop(),e.trys.pop();continue}d=r.call(t,e)}catch(f){d=[6,f],o=0}finally{i=s=0}if(5&d[0])throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}([d,f])}}}function Dp(t,r,e){if(e||2===arguments.length)for(var s,i=0,o=r.length;i<o;i++)(s||!(i in r))&&(s||(s=Array.prototype.slice.call(r,0,i)),s[i]=r[i]);return t.concat(s||Array.prototype.slice.call(r))}function fv(t){return this instanceof fv?(this.v=t,this):new fv(t)}function oD(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t=function RM(t){var r="function"==typeof Symbol&&Symbol.iterator,e=r&&t[r],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(s){e[s]=t[s]&&function(a){return new Promise(function(l,c){!function o(s,a,l,c){Promise.resolve(c).then(function(d){s({value:d,done:l})},a)}(l,c,(a=t[s](a)).done,a.value)})}}}"function"==typeof SuppressedError&&SuppressedError;var uw="Invariant Violation",M4=Object.setPrototypeOf,h9=void 0===M4?function(t,r){return t.__proto__=r,t}:M4,aD=function(t){function r(e){void 0===e&&(e=uw);var i=t.call(this,"number"==typeof e?uw+": "+e+" (see https://github.com/apollographql/invariant-packages)":e)||this;return i.framesToPop=1,i.name=uw,h9(i,r.prototype),i}return zf(r,t),r}(Error);function ib(t,r){if(!t)throw new aD(r)}var t,rb=["debug","log","warn","error","silent"],dw=rb.indexOf("log");function pw(t){return function(){if(rb.indexOf(t)>=dw)return(console[t]||console.log).apply(console,arguments)}}(t=ib||(ib={})).debug=pw("debug"),t.log=pw("log"),t.warn=pw("warn"),t.error=pw("error");var OM="3.13.6";function lg(t){try{return t()}catch{}}const hw=lg(function(){return globalThis})||lg(function(){return window})||lg(function(){return self})||lg(function(){return global})||lg(function(){return lg.constructor("return this")()});var VS=new Map;function jS(t){var r=VS.get(t)||1;return VS.set(t,r+1),"".concat(t,":").concat(r,":").concat(Math.random().toString(36).slice(2))}function FM(t,r){void 0===r&&(r=0);var e=jS("stringifyForDisplay");return JSON.stringify(t,function(i,o){return void 0===o?e:o},r).split(JSON.stringify(e)).join("<undefined>")}function lD(t){return function(r){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if("number"==typeof r){var o=r;(r=P_(o))||(r=NM(o,e),e=[])}t.apply(void 0,[r].concat(e))}}var ps=Object.assign(function(r,e){for(var i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];r||ib(r,P_(e,i)||NM(e,i))},{debug:lD(ib.debug),log:lD(ib.log),warn:lD(ib.warn),error:lD(ib.error)});function Qp(t){for(var r=[],e=1;e<arguments.length;e++)r[e-1]=arguments[e];return new aD(P_(t,r)||NM(t,r))}var PM=Symbol.for("ApolloErrorMessageHandler_"+OM);function LM(t){if("string"==typeof t)return t;try{return FM(t,2).slice(0,1e3)}catch{return"<non-serializable>"}}function P_(t,r){if(void 0===r&&(r=[]),t)return hw[PM]&&hw[PM](t,r.map(LM))}function NM(t,r){if(void 0===r&&(r=[]),t)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:OM,message:t,args:r.map(LM)})))}globalThis;const fw=()=>Object.create(null),{forEach:ZK,slice:cD}=Array.prototype,{hasOwnProperty:eQ}=Object.prototype;class mv{constructor(r=!0,e=fw){this.weakness=r,this.makeData=e}lookup(){return this.lookupArray(arguments)}lookupArray(r){let e=this;return ZK.call(r,i=>e=e.getChildTrie(i)),eQ.call(e,"data")?e.data:e.data=this.makeData(cD.call(r))}peek(){return this.peekArray(arguments)}peekArray(r){let e=this;for(let i=0,o=r.length;e&&i<o;++i){const s=e.mapFor(r[i],!1);e=s&&s.get(r[i])}return e&&e.data}remove(){return this.removeArray(arguments)}removeArray(r){let e;if(r.length){const i=r[0],o=this.mapFor(i,!1),s=o&&o.get(i);s&&(e=s.removeArray(cD.call(r,1)),!s.data&&!s.weak&&(!s.strong||!s.strong.size)&&o.delete(i))}else e=this.data,delete this.data;return e}getChildTrie(r){const e=this.mapFor(r,!0);let i=e.get(r);return i||e.set(r,i=new mv(this.weakness,this.makeData)),i}mapFor(r,e){return this.weakness&&function R4(t){switch(typeof t){case"object":if(null===t)break;case"function":return!0}return!1}(r)?this.weak||(e?this.weak=new WeakMap:void 0):this.strong||(e?this.strong=new Map:void 0)}}function tQ(){}class ry{constructor(r=1/0,e=tQ){this.max=r,this.dispose=e,this.map=new Map,this.newest=null,this.oldest=null}has(r){return this.map.has(r)}get(r){const e=this.getNode(r);return e&&e.value}get size(){return this.map.size}getNode(r){const e=this.map.get(r);if(e&&e!==this.newest){const{older:i,newer:o}=e;o&&(o.older=i),i&&(i.newer=o),e.older=this.newest,e.older.newer=e,e.newer=null,this.newest=e,e===this.oldest&&(this.oldest=o)}return e}set(r,e){let i=this.getNode(r);return i?i.value=e:(i={key:r,value:e,newer:null,older:this.newest},this.newest&&(this.newest.newer=i),this.newest=i,this.oldest=this.oldest||i,this.map.set(r,i),i.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(r){const e=this.map.get(r);return!!e&&(e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.map.delete(r),this.dispose(e.value,r),!0)}}let kp=null;const O4={};let m9=1;function F4(t){try{return t()}catch{}}const mw="@wry/context:Slot",kh=F4(()=>globalThis)||F4(()=>global)||Object.create(null),gw=kh[mw]||Array[mw]||function(t){try{Object.defineProperty(kh,mw,{value:t,enumerable:!1,writable:!1,configurable:!0})}finally{return t}}(class{constructor(){this.id=["slot",m9++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let r=kp;r;r=r.parent)if(this.id in r.slots){const e=r.slots[this.id];if(e===O4)break;return r!==kp&&(kp.slots[this.id]=e),!0}return kp&&(kp.slots[this.id]=O4),!1}getValue(){if(this.hasValue())return kp.slots[this.id]}withValue(r,e,i,o){const a=kp;kp={parent:a,slots:{__proto__:null,[this.id]:r}};try{return e.apply(o,i)}finally{kp=a}}static bind(r){const e=kp;return function(){const i=kp;try{return kp=e,r.apply(this,arguments)}finally{kp=i}}}static noContext(r,e,i){if(!kp)return r.apply(i,e);{const o=kp;try{return kp=null,r.apply(i,e)}finally{kp=o}}}}),L_=new gw,{hasOwnProperty:y9}=Object.prototype,VM=Array.from||function(t){const r=[];return t.forEach(e=>r.push(e)),r};function HS(t){const{unsubscribe:r}=t;"function"==typeof r&&(t.unsubscribe=void 0,r())}const vw=[];function _w(t,r){if(!t)throw new Error(r||"assertion failure")}function jM(t,r){const e=t.length;return e>0&&e===r.length&&t[e-1]===r[e-1]}function N4(t){switch(t.length){case 0:throw new Error("unknown value");case 1:return t[0];case 2:throw t[1]}}function b9(t){return t.slice(0)}let iQ=(()=>{class t{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++t.count}peek(){if(1===this.value.length&&!cg(this))return C9(this),this.value[0]}recompute(e){return _w(!this.recomputing,"already recomputing"),C9(this),cg(this)?function rQ(t,r){return U4(t),L_.withValue(t,G4,[t,r]),function S9(t,r){if("function"==typeof t.subscribe)try{HS(t),t.unsubscribe=t.subscribe.apply(null,r)}catch{return t.setDirty(),!1}return!0}(t,r)&&function w9(t){t.dirty=!1,!cg(t)&&HM(t)}(t),N4(t.value)}(this,e):N4(this.value)}setDirty(){this.dirty||(this.dirty=!0,B4(this),HS(this))}dispose(){this.setDirty(),U4(this),sb(this,(e,i)=>{e.setDirty(),T9(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=vw.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(VM(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),vw.push(this.deps),this.deps=null)}}return t.count=0,t})();function C9(t){const r=L_.getValue();if(r)return t.parents.add(r),r.childValues.has(t)||r.childValues.set(t,[]),cg(t)?V4(r,t):j4(r,t),r}function G4(t,r){t.recomputing=!0;const{normalizeResult:e}=t;let i;e&&1===t.value.length&&(i=b9(t.value)),t.value.length=0;try{if(t.value[0]=t.fn.apply(null,r),e&&i&&!jM(i,t.value))try{t.value[0]=e(t.value[0],i[0])}catch{}}catch(o){t.value[1]=o}t.recomputing=!1}function cg(t){return t.dirty||!(!t.dirtyChildren||!t.dirtyChildren.size)}function B4(t){sb(t,V4)}function HM(t){sb(t,j4)}function sb(t,r){const e=t.parents.size;if(e){const i=VM(t.parents);for(let o=0;o<e;++o)r(i[o],t)}}function V4(t,r){_w(t.childValues.has(r)),_w(cg(r));const e=!cg(t);if(t.dirtyChildren){if(t.dirtyChildren.has(r))return}else t.dirtyChildren=vw.pop()||new Set;t.dirtyChildren.add(r),e&&B4(t)}function j4(t,r){_w(t.childValues.has(r)),_w(!cg(r));const e=t.childValues.get(r);0===e.length?t.childValues.set(r,b9(r.value)):jM(e,r.value)||t.setDirty(),H4(t,r),!cg(t)&&HM(t)}function H4(t,r){const e=t.dirtyChildren;e&&(e.delete(r),0===e.size&&(vw.length<100&&vw.push(e),t.dirtyChildren=null))}function U4(t){t.childValues.size>0&&t.childValues.forEach((r,e)=>{T9(t,e)}),t.forgetDeps(),_w(null===t.dirtyChildren)}function T9(t,r){r.parents.delete(t),t.childValues.delete(r),H4(t,r)}const $4={setDirty:!0,dispose:!0,forget:!0};function Y4(t){const r=new Map,e=t&&t.subscribe;function i(o){const s=L_.getValue();if(s){let a=r.get(o);a||r.set(o,a=new Set),s.dependOn(a),"function"==typeof e&&(HS(a),a.unsubscribe=e(o))}}return i.dirty=function(s,a){const l=r.get(s);if(l){const c=a&&y9.call($4,a)?a:"setDirty";VM(l).forEach(d=>d[c]()),r.delete(s),HS(l)}},i}let W4;function US(...t){return(W4||(W4=new mv("function"==typeof WeakMap))).lookupArray(t)}const UM=new Set;function yw(t,{max:r=Math.pow(2,16),keyArgs:e,makeCacheKey:i=US,normalizeResult:o,subscribe:s,cache:a=ry}=Object.create(null)){const l="function"==typeof a?new a(r,w=>w.dispose()):a,c=function(){const w=i.apply(null,e?e.apply(null,arguments):arguments);if(void 0===w)return t.apply(null,arguments);let x=l.get(w);x||(l.set(w,x=new iQ(t)),x.normalizeResult=o,x.subscribe=s,x.forget=()=>l.delete(w));const I=x.recompute(Array.prototype.slice.call(arguments));return l.set(w,x),UM.add(l),L_.hasValue()||(UM.forEach(M=>M.clean()),UM.clear()),I};function d(w){const x=w&&l.get(w);x&&x.setDirty()}function f(w){const x=w&&l.get(w);if(x)return x.peek()}function v(w){return!!w&&l.delete(w)}return Object.defineProperty(c,"size",{get:()=>l.size,configurable:!1,enumerable:!1}),Object.freeze(c.options={max:r,keyArgs:e,makeCacheKey:i,normalizeResult:o,subscribe:s,cache:l}),c.dirtyKey=d,c.dirty=function(){d(i.apply(null,arguments))},c.peekKey=f,c.peek=function(){return f(i.apply(null,arguments))},c.forgetKey=v,c.forget=function(){return v(i.apply(null,arguments))},c.makeCacheKey=i,c.getKey=e?function(){return i.apply(null,e.apply(null,arguments))}:i,Object.freeze(c)}const{toString:$M,hasOwnProperty:x9}=Object.prototype,YM=Function.prototype.toString,WM=new Map;function iu(t,r){try{return hD(t,r)}finally{WM.clear()}}const zM=iu;function hD(t,r){if(t===r)return!0;const e=$M.call(t);if(e!==$M.call(r))return!1;switch(e){case"[object Array]":if(t.length!==r.length)return!1;case"[object Object]":{if(fD(t,r))return!0;const o=qM(t),s=qM(r),a=o.length;if(a!==s.length)return!1;for(let l=0;l<a;++l)if(!x9.call(r,o[l]))return!1;for(let l=0;l<a;++l){const c=o[l];if(!hD(t[c],r[c]))return!1}return!0}case"[object Error]":return t.name===r.name&&t.message===r.message;case"[object Number]":if(t!=t)return r!=r;case"[object Boolean]":case"[object Date]":return+t==+r;case"[object RegExp]":case"[object String]":return t==`${r}`;case"[object Map]":case"[object Set]":{if(t.size!==r.size)return!1;if(fD(t,r))return!0;const o=t.entries(),s="[object Map]"===e;for(;;){const a=o.next();if(a.done)break;const[l,c]=a.value;if(!r.has(l)||s&&!hD(c,r.get(l)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":t=new Uint8Array(t),r=new Uint8Array(r);case"[object DataView]":{let o=t.byteLength;if(o===r.byteLength)for(;o--&&t[o]===r[o];);return-1===o}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const o=YM.call(t);return o===YM.call(r)&&!function k9(t,r){const e=t.length-r.length;return e>=0&&t.indexOf(r,e)===e}(o,D9)}}return!1}function qM(t){return Object.keys(t).filter(E9,t)}function E9(t){return void 0!==this[t]}const D9="{ [native code] }";function fD(t,r){let e=WM.get(t);if(e){if(e.has(r))return!0}else WM.set(t,e=new Set);return e.add(r),!1}function I9(t,r){if(!t)throw new Error(r)}function A9(t){return mD(t,[])}function mD(t,r){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return function M9(t,r){if(null===t)return"null";if(r.includes(t))return"[Circular]";const e=[...r,t];if(function R9(t){return"function"==typeof t.toJSON}(t)){const i=t.toJSON();if(i!==t)return"string"==typeof i?i:mD(i,e)}else if(Array.isArray(t))return function F9(t,r){if(0===t.length)return"[]";if(r.length>2)return"[Array]";const e=Math.min(10,t.length),i=t.length-e,o=[];for(let s=0;s<e;++s)o.push(mD(t[s],r));return 1===i?o.push("... 1 more item"):i>1&&o.push(`... ${i} more items`),"["+o.join(", ")+"]"}(t,e);return function O9(t,r){const e=Object.entries(t);return 0===e.length?"{}":r.length>2?"["+function P9(t){const r=Object.prototype.toString.call(t).replace(/^\[object /,"").replace(/]$/,"");if("Object"===r&&"function"==typeof t.constructor){const e=t.constructor.name;if("string"==typeof e&&""!==e)return e}return r}(t)+"]":"{ "+e.map(([o,s])=>o+": "+mD(s,r)).join(", ")+" }"}(t,e)}(t,r);default:return String(t)}}Symbol,Symbol;const X4={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},G9=new Set(Object.keys(X4));function XM(t){const r=t?.kind;return"string"==typeof r&&G9.has(r)}var mu=function(t){return t.NAME="Name",t.DOCUMENT="Document",t.OPERATION_DEFINITION="OperationDefinition",t.VARIABLE_DEFINITION="VariableDefinition",t.SELECTION_SET="SelectionSet",t.FIELD="Field",t.ARGUMENT="Argument",t.FRAGMENT_SPREAD="FragmentSpread",t.INLINE_FRAGMENT="InlineFragment",t.FRAGMENT_DEFINITION="FragmentDefinition",t.VARIABLE="Variable",t.INT="IntValue",t.FLOAT="FloatValue",t.STRING="StringValue",t.BOOLEAN="BooleanValue",t.NULL="NullValue",t.ENUM="EnumValue",t.LIST="ListValue",t.OBJECT="ObjectValue",t.OBJECT_FIELD="ObjectField",t.DIRECTIVE="Directive",t.NAMED_TYPE="NamedType",t.LIST_TYPE="ListType",t.NON_NULL_TYPE="NonNullType",t.SCHEMA_DEFINITION="SchemaDefinition",t.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",t.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",t.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",t.FIELD_DEFINITION="FieldDefinition",t.INPUT_VALUE_DEFINITION="InputValueDefinition",t.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",t.UNION_TYPE_DEFINITION="UnionTypeDefinition",t.ENUM_TYPE_DEFINITION="EnumTypeDefinition",t.ENUM_VALUE_DEFINITION="EnumValueDefinition",t.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",t.DIRECTIVE_DEFINITION="DirectiveDefinition",t.SCHEMA_EXTENSION="SchemaExtension",t.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",t.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",t.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",t.UNION_TYPE_EXTENSION="UnionTypeExtension",t.ENUM_TYPE_EXTENSION="EnumTypeExtension",t.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",t}(mu||{});const N_=Object.freeze({});function ug(t,r,e=X4){const i=new Map;for(const re of Object.values(mu))i.set(re,gD(r,re));let o,f,v,s=Array.isArray(t),a=[t],l=-1,c=[],d=t;const w=[],x=[];do{l++;const re=l===a.length,pe=re&&0!==c.length;if(re){if(f=0===x.length?void 0:w[w.length-1],d=v,v=x.pop(),pe)if(s){d=d.slice();let je=0;for(const[tt,nt]of c){const rt=tt-je;null===nt?(d.splice(rt,1),je++):d[rt]=nt}}else{d=Object.defineProperties({},Object.getOwnPropertyDescriptors(d));for(const[je,tt]of c)d[je]=tt}l=o.index,a=o.keys,c=o.edits,s=o.inArray,o=o.prev}else if(v){if(f=s?l:a[l],d=v[f],null==d)continue;w.push(f)}let we;if(!Array.isArray(d)){var I,M;XM(d)||I9(!1,`Invalid AST Node: ${A9(d)}.`);const je=re?null===(I=i.get(d.kind))||void 0===I?void 0:I.leave:null===(M=i.get(d.kind))||void 0===M?void 0:M.enter;if(we=je?.call(r,d,f,v,w,x),we===N_)break;if(!1===we){if(!re){w.pop();continue}}else if(void 0!==we&&(c.push([f,we]),!re)){if(!XM(we)){w.pop();continue}d=we}}var F;void 0===we&&pe&&c.push([f,d]),re?w.pop():(o={inArray:s,index:l,keys:a,edits:c,prev:o},s=Array.isArray(d),a=s?d:null!==(F=e[d.kind])&&void 0!==F?F:[],l=-1,c=[],v&&x.push(v),v=d)}while(void 0!==o);return 0!==c.length?c[c.length-1][1]:t}function gD(t,r){const e=t[r];return"object"==typeof e?e:"function"==typeof e?{enter:e,leave:void 0}:{enter:t.enter,leave:t.leave}}function KM(t,r){var e=r,i=[];return t.definitions.forEach(function(s){if("OperationDefinition"===s.kind)throw Qp(85,s.operation,s.name?" named '".concat(s.name.value,"'"):"");"FragmentDefinition"===s.kind&&i.push(s)}),typeof e>"u"&&(ps(1===i.length,86,i.length),e=i[0].name.value),ni(ni({},t),{definitions:Dp([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:e}}]}}],t.definitions,!0)})}function ab(t){void 0===t&&(t=[]);var r={};return t.forEach(function(e){r[e.name.value]=e}),r}function $S(t,r){switch(t.kind){case"InlineFragment":return t;case"FragmentSpread":var e=t.name.value;if("function"==typeof r)return r(e);var i=r&&r[e];return ps(i,87,e),i||null;default:return null}}var Q4=Symbol.for("apollo.cacheSize"),G_=ni({},hw[Q4]);function Lu(t){return null!==t&&"object"==typeof t}function QM(){}const JM=QM,vD=typeof WeakRef<"u"?WeakRef:function(t){return{deref:()=>t}},J4=typeof WeakMap<"u"?WeakMap:Map,ZM=typeof FinalizationRegistry<"u"?FinalizationRegistry:function(){return{register:QM,unregister:QM}};class YS{constructor(r=1/0,e=JM){this.max=r,this.dispose=e,this.map=new J4,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const i=this.unfinalizedNodes.values();for(let o=0;o<10024;o++){const s=i.next().value;if(!s)break;this.unfinalizedNodes.delete(s);const a=s.key;delete s.key,s.keyRef=new vD(a),this.registry.register(a,s,s)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new ZM(this.deleteNode.bind(this))}has(r){return this.map.has(r)}get(r){const e=this.getNode(r);return e&&e.value}getNode(r){const e=this.map.get(r);if(e&&e!==this.newest){const{older:i,newer:o}=e;o&&(o.older=i),i&&(i.newer=o),e.older=this.newest,e.older.newer=e,e.newer=null,this.newest=e,e===this.oldest&&(this.oldest=o)}return e}set(r,e){let i=this.getNode(r);return i?i.value=e:(i={key:r,value:e,newer:null,older:this.newest},this.newest&&(this.newest.newer=i),this.newest=i,this.oldest=this.oldest||i,this.scheduleFinalization(i),this.map.set(r,i),this.size++,i.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(r){r===this.newest&&(this.newest=r.older),r===this.oldest&&(this.oldest=r.newer),r.newer&&(r.newer.older=r.older),r.older&&(r.older.newer=r.newer),this.size--;const e=r.key||r.keyRef&&r.keyRef.deref();this.dispose(r.value,e),r.keyRef?this.registry.unregister(r):this.unfinalizedNodes.delete(r),e&&this.map.delete(e)}delete(r){const e=this.map.get(r);return!!e&&(this.deleteNode(e),!0)}scheduleFinalization(r){this.unfinalizedNodes.add(r),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}var _D=new WeakSet;function eR(t){t.size<=(t.max||-1)||_D.has(t)||(_D.add(t),setTimeout(function(){t.clean(),_D.delete(t)},100))}var tR=function(t,r){var e=new YS(t,r);return e.set=function(i,o){var s=YS.prototype.set.call(this,i,o);return eR(this),s},e},eN=function(t,r){var e=new ry(t,r);return e.set=function(i,o){var s=ry.prototype.set.call(this,i,o);return eR(this),s},e},oy={};function nR(t,r){oy[t]=r}var tN=!1!==globalThis.__DEV__?function oN(){var t,r,e,i,o;if(!1===globalThis.__DEV__)throw new Error("only supported in development mode");return{limits:Object.fromEntries(Object.entries({parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4}).map(function(r){var e=r[0];return[e,G_[e]||r[1]]})),sizes:ni({print:null===(t=oy.print)||void 0===t?void 0:t.call(oy),parser:null===(r=oy.parser)||void 0===r?void 0:r.call(oy),canonicalStringify:null===(e=oy.canonicalStringify)||void 0===e?void 0:e.call(oy),links:rR(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:lN(this.queryManager.documentTransform)}},null===(o=(i=this.cache).getMemoryInternals)||void 0===o?void 0:o.call(i))}}:void 0,nN=!1!==globalThis.__DEV__?function sN(){var t=this.config.fragments;return ni(ni({},yD.apply(this)),{addTypenameDocumentTransform:lN(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:sy(this.storeReader.executeSelectionSet),executeSubSelectedArray:sy(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:sy(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:sy(t?.findFragmentSpreads),lookup:sy(t?.lookup),transform:sy(t?.transform)}})}:void 0,iN=!1!==globalThis.__DEV__?yD:void 0;function yD(){return{cache:{fragmentQueryDocuments:sy(this.getFragmentDoc)}}}function sy(t){return function j9(t){return!!t&&"dirtyKey"in t}(t)?t.size:void 0}function aN(t){return null!=t}function lN(t){return iR(t).map(function(r){return{cache:r}})}function iR(t){return t?Dp(Dp([sy(t?.performWork)],iR(t?.left),!0),iR(t?.right),!0).filter(aN):[]}function rR(t){var r;return t?Dp(Dp([null===(r=t?.getMemoryInternals)||void 0===r?void 0:r.call(t)],rR(t?.left),!0),rR(t?.right),!0).filter(aN):[]}var bw,ay=Object.assign(function(r){return JSON.stringify(r,H9)},{reset:function(){bw=new eN(G_.canonicalStringify||1e3)}});function H9(t,r){if(r&&"object"==typeof r){var e=Object.getPrototypeOf(r);if(e===Object.prototype||null===e){var i=Object.keys(r);if(i.every(cN))return r;var o=JSON.stringify(i),s=bw.get(o);if(!s){i.sort();var a=JSON.stringify(i);s=bw.get(a)||i,bw.set(o,s),bw.set(a,s)}var l=Object.create(e);return s.forEach(function(c){l[c]=r[c]}),l}}return r}function cN(t,r,e){return 0===r||e[r-1]<=t}function lb(t){return{__ref:String(t)}}function ec(t){return!(!t||"object"!=typeof t||"string"!=typeof t.__ref)}function ly(t,r,e,i){if(function hN(t){return"IntValue"===t.kind}(e)||function fN(t){return"FloatValue"===t.kind}(e))t[r.value]=Number(e.value);else if(function pN(t){return"BooleanValue"===t.kind}(e)||function dN(t){return"StringValue"===t.kind}(e))t[r.value]=e.value;else if(function gN(t){return"ObjectValue"===t.kind}(e)){var o={};e.fields.map(function(a){return ly(o,a.name,a.value,i)}),t[r.value]=o}else if(function mN(t){return"Variable"===t.kind}(e))t[r.value]=(i||{})[e.name.value];else if(function vN(t){return"ListValue"===t.kind}(e))t[r.value]=e.values.map(function(a){var l={};return ly(l,r,a,i),l[r.value]});else if(function U9(t){return"EnumValue"===t.kind}(e))t[r.value]=e.value;else{if(!function $9(t){return"NullValue"===t.kind}(e))throw Qp(96,r.value,e.kind);t[r.value]=null}}!1!==globalThis.__DEV__&&nR("canonicalStringify",function(){return bw.size}),ay.reset();var oR=["connection","include","skip","client","rest","export","nonreactive"],cb=ay,CD=Object.assign(function(t,r,e){if(r&&e&&e.connection&&e.connection.key){if(e.connection.filter&&e.connection.filter.length>0){var i=e.connection.filter?e.connection.filter:[];i.sort();var o={};return i.forEach(function(l){o[l]=r[l]}),"".concat(e.connection.key,"(").concat(cb(o),")")}return e.connection.key}var s=t;if(r){var a=cb(r);s+="(".concat(a,")")}return e&&Object.keys(e).forEach(function(l){-1===oR.indexOf(l)&&(e[l]&&Object.keys(e[l]).length?s+="@".concat(l,"(").concat(cb(e[l]),")"):s+="@".concat(l))}),s},{setStringify:function(t){var r=cb;return cb=t,r}});function Cw(t,r){if(t.arguments&&t.arguments.length){var e={};return t.arguments.forEach(function(i){return ly(e,i.name,i.value,r)}),e}return null}function gv(t){return t.alias?t.alias.value:t.name.value}function wD(t,r,e){for(var i,o=0,s=r.selections;o<s.length;o++)if(B_(a=s[o])){if("__typename"===a.name.value)return t[gv(a)]}else i?i.push(a):i=[a];if("string"==typeof t.__typename)return t.__typename;if(i)for(var l=0,c=i;l<c.length;l++){var a,d=wD(t,$S(a=c[l],e).selectionSet,e);if("string"==typeof d)return d}}function B_(t){return"Field"===t.kind}function cy(t){ps(t&&"Document"===t.kind,88);var r=t.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw Qp(89,e.kind);return e});return ps(r.length<=1,90,r.length),t}function uy(t){return cy(t),t.definitions.filter(function(r){return"OperationDefinition"===r.kind})[0]}function ub(t){return t.definitions.filter(function(r){return"OperationDefinition"===r.kind&&!!r.name}).map(function(r){return r.name.value})[0]||null}function db(t){return t.definitions.filter(function(r){return"FragmentDefinition"===r.kind})}function sR(t){var r=uy(t);return ps(r&&"query"===r.operation,91),r}function yN(t){ps("Document"===t.kind,92),ps(t.definitions.length<=1,93);var r=t.definitions[0];return ps("FragmentDefinition"===r.kind,94),r}function WS(t){cy(t);for(var r,e=0,i=t.definitions;e<i.length;e++){var o=i[e];if("OperationDefinition"===o.kind){var s=o.operation;if("query"===s||"mutation"===s||"subscription"===s)return o}"FragmentDefinition"===o.kind&&!r&&(r=o)}if(r)return r;throw Qp(95)}function aR(t){var r=Object.create(null),e=t&&t.variableDefinitions;return e&&e.length&&e.forEach(function(i){i.defaultValue&&ly(r,i.variable.name,i.defaultValue)}),r}function uR(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,i=new Array(r);e<r;e++)i[e]=t[e];return i}function TD(t,r){for(var e=0;e<r.length;e++){var i=r[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function dR(t,r,e){return r&&TD(t.prototype,r),e&&TD(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}var pR=function(){return"function"==typeof Symbol},zS=function(t){return pR()&&!!Symbol[t]},hR=function(t){return zS(t)?Symbol[t]:"@@"+t};pR()&&!zS("observable")&&(Symbol.observable=Symbol("observable"));var bN=hR("iterator"),fR=hR("observable"),mR=hR("species");function qS(t,r){var e=t[r];if(null!=e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e}}function dy(t){var r=t.constructor;return void 0!==r&&null===(r=r[mR])&&(r=void 0),void 0!==r?r:uc}function pb(t){pb.log?pb.log(t):setTimeout(function(){throw t})}function XS(t){Promise.resolve().then(function(){try{t()}catch(r){pb(r)}})}function gR(t){var r=t._cleanup;if(void 0!==r&&(t._cleanup=void 0,r))try{if("function"==typeof r)r();else{var e=qS(r,"unsubscribe");e&&e.call(r)}}catch(i){pb(i)}}function SD(t){t._observer=void 0,t._queue=void 0,t._state="closed"}function vR(t,r,e){t._state="running";var i=t._observer;try{var o=qS(i,r);switch(r){case"next":o&&o.call(i,e);break;case"error":if(SD(t),!o)throw e;o.call(i,e);break;case"complete":SD(t),o&&o.call(i)}}catch(s){pb(s)}"closed"===t._state?gR(t):"running"===t._state&&(t._state="ready")}function xD(t,r,e){if("closed"!==t._state){if("buffering"===t._state)return void t._queue.push({type:r,value:e});if("ready"!==t._state)return t._state="buffering",t._queue=[{type:r,value:e}],void XS(function(){return function wN(t){var r=t._queue;if(r){t._queue=void 0,t._state="ready";for(var e=0;e<r.length&&(vR(t,r[e].type,r[e].value),"closed"!==t._state);++e);}}(t)});vR(t,r,e)}}var TN=function(){function t(e,i){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var o=new SN(this);try{this._cleanup=i.call(void 0,o)}catch(s){o.error(s)}"initializing"===this._state&&(this._state="ready")}return t.prototype.unsubscribe=function(){"closed"!==this._state&&(SD(this),gR(this))},dR(t,[{key:"closed",get:function(){return"closed"===this._state}}]),t}(),SN=function(){function t(e){this._subscription=e}var r=t.prototype;return r.next=function(i){xD(this._subscription,"next",i)},r.error=function(i){xD(this._subscription,"error",i)},r.complete=function(){xD(this._subscription,"complete")},dR(t,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),t}(),uc=function(){function t(e){if(!(this instanceof t))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof e)throw new TypeError("Observable initializer must be a function");this._subscriber=e}var r=t.prototype;return r.subscribe=function(i){return("object"!=typeof i||null===i)&&(i={next:i,error:arguments[1],complete:arguments[2]}),new TN(i,this._subscriber)},r.forEach=function(i){var o=this;return new Promise(function(s,a){if("function"==typeof i)var c=o.subscribe({next:function(d){try{i(d,l)}catch(f){a(f),c.unsubscribe()}},error:a,complete:s});else a(new TypeError(i+" is not a function"));function l(){c.unsubscribe(),s()}})},r.map=function(i){var o=this;if("function"!=typeof i)throw new TypeError(i+" is not a function");return new(dy(this))(function(a){return o.subscribe({next:function(l){try{l=i(l)}catch(c){return a.error(c)}a.next(l)},error:function(l){a.error(l)},complete:function(){a.complete()}})})},r.filter=function(i){var o=this;if("function"!=typeof i)throw new TypeError(i+" is not a function");return new(dy(this))(function(a){return o.subscribe({next:function(l){try{if(!i(l))return}catch(c){return a.error(c)}a.next(l)},error:function(l){a.error(l)},complete:function(){a.complete()}})})},r.reduce=function(i){var o=this;if("function"!=typeof i)throw new TypeError(i+" is not a function");var s=dy(this),a=arguments.length>1,l=!1,d=arguments[1];return new s(function(f){return o.subscribe({next:function(v){var w=!l;if(l=!0,!w||a)try{d=i(d,v)}catch(x){return f.error(x)}else d=v},error:function(v){f.error(v)},complete:function(){if(!l&&!a)return f.error(new TypeError("Cannot reduce an empty sequence"));f.next(d),f.complete()}})})},r.concat=function(){for(var i=this,o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];var l=dy(this);return new l(function(c){var d,f=0;return function v(w){d=w.subscribe({next:function(x){c.next(x)},error:function(x){c.error(x)},complete:function(){f===s.length?(d=void 0,c.complete()):v(l.from(s[f++]))}})}(i),function(){d&&(d.unsubscribe(),d=void 0)}})},r.flatMap=function(i){var o=this;if("function"!=typeof i)throw new TypeError(i+" is not a function");var s=dy(this);return new s(function(a){var l=[],c=o.subscribe({next:function(f){if(i)try{f=i(f)}catch(w){return a.error(w)}var v=s.from(f).subscribe({next:function(w){a.next(w)},error:function(w){a.error(w)},complete:function(){var w=l.indexOf(v);w>=0&&l.splice(w,1),d()}});l.push(v)},error:function(f){a.error(f)},complete:function(){d()}});function d(){c.closed&&0===l.length&&a.complete()}return function(){l.forEach(function(f){return f.unsubscribe()}),c.unsubscribe()}})},r[fR]=function(){return this},t.from=function(i){var o="function"==typeof this?this:t;if(null==i)throw new TypeError(i+" is not an object");var s=qS(i,fR);if(s){var a=s.call(i);if(Object(a)!==a)throw new TypeError(a+" is not an object");return function CN(t){return t instanceof uc}(a)&&a.constructor===o?a:new o(function(l){return a.subscribe(l)})}if(zS("iterator")&&(s=qS(i,bN)))return new o(function(l){XS(function(){if(!l.closed){for(var d,c=function lR(t,r){var e=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e)return(e=e.call(t)).next.bind(e);if(Array.isArray(t)||(e=function cR(t,r){if(t){if("string"==typeof t)return uR(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);if("Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return uR(t,r)}}(t))||r&&t&&"number"==typeof t.length){e&&(t=e);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(s.call(i));!(d=c()).done;)if(l.next(d.value),l.closed)return;l.complete()}})});if(Array.isArray(i))return new o(function(l){XS(function(){if(!l.closed){for(var c=0;c<i.length;++c)if(l.next(i[c]),l.closed)return;l.complete()}})});throw new TypeError(i+" is not observable")},t.of=function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return new("function"==typeof this?this:t)(function(l){XS(function(){if(!l.closed){for(var c=0;c<o.length;++c)if(l.next(o[c]),l.closed)return;l.complete()}})})},dR(t,null,[{key:mR,get:function(){return this}}]),t}();pR()&&Object.defineProperty(uc,Symbol("extensions"),{value:{symbol:fR,hostReportError:pb},configurable:!0});var KS=Object.prototype.hasOwnProperty;function _R(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return QS(t)}function QS(t){var r=t[0]||{},e=t.length;if(e>1)for(var i=new V_,o=1;o<e;++o)r=i.merge(r,t[o]);return r}var xN=function(t,r,e){return this.merge(t[e],r[e])},V_=function(){function t(r){void 0===r&&(r=xN),this.reconciler=r,this.isObject=Lu,this.pastCopies=new Set}return t.prototype.merge=function(r,e){for(var i=this,o=[],s=2;s<arguments.length;s++)o[s-2]=arguments[s];return Lu(e)&&Lu(r)?(Object.keys(e).forEach(function(a){if(KS.call(r,a)){var l=r[a];if(e[a]!==l){var c=i.reconciler.apply(i,Dp([r,e,a],o,!1));c!==l&&((r=i.shallowCopyForMerge(r))[a]=c)}}else(r=i.shallowCopyForMerge(r))[a]=e[a]}),r):e},t.prototype.shallowCopyForMerge=function(r){return Lu(r)&&(this.pastCopies.has(r)||(r=Array.isArray(r)?r.slice(0):ni({__proto__:Object.getPrototypeOf(r)},r),this.pastCopies.add(r))),r},t}();function ww(t,r){var e=t.directives;return!e||!e.length||function kN(t){var r=[];return t&&t.length&&t.forEach(function(e){if(function DN(t){var r=t.name.value;return"skip"===r||"include"===r}(e)){var i=e.arguments,o=e.name.value;ps(i&&1===i.length,79,o);var s=i[0];ps(s.name&&"if"===s.name.value,80,o);var a=s.value;ps(a&&("Variable"===a.kind||"BooleanValue"===a.kind),81,o),r.push({directive:e,ifArgument:s})}}),r}(e).every(function(i){var o=i.directive,s=i.ifArgument,a=!1;return"Variable"===s.value.kind?ps(void 0!==(a=r&&r[s.value.name.value]),78,o.name.value):a=s.value.value,"skip"===o.name.value?!a:a})}function Tw(t,r,e){var i=new Set(t),o=i.size;return ug(r,{Directive:function(s){if(i.delete(s.name.value)&&(!e||!i.size))return N_}}),e?!i.size:i.size<o}function EN(t){return t&&Tw(["client","export"],t,!0)}function W9(t){var r,e,i=null===(r=t.directives)||void 0===r?void 0:r.find(function(s){return"unmask"===s.name.value});if(!i)return"mask";var o=null===(e=i.arguments)||void 0===e?void 0:e.find(function(s){return"mode"===s.name.value});return!1!==globalThis.__DEV__&&o&&(o.value.kind===mu.VARIABLE?!1!==globalThis.__DEV__&&ps.warn(82):o.value.kind!==mu.STRING?!1!==globalThis.__DEV__&&ps.warn(83):"migrate"!==o.value.value&&!1!==globalThis.__DEV__&&ps.warn(84,o.value.value)),o&&"value"in o.value&&"migrate"===o.value.value?"migrate":"unmask"}function IN(t,r,e,i){var o=r.data,s=ag(r,["data"]),a=e.data,l=ag(e,["data"]);return zM(s,l)&&py(WS(t).selectionSet,o,a,{fragmentMap:ab(db(t)),variables:i})}function py(t,r,e,i){if(r===e)return!0;var o=new Set;return t.selections.every(function(s){if(o.has(s)||(o.add(s),!ww(s,i.variables))||yR(s))return!0;if(B_(s)){var a=gv(s),l=r&&r[a],c=e&&e[a],d=s.selectionSet;if(!d)return zM(l,c);var f=Array.isArray(l),v=Array.isArray(c);if(f!==v)return!1;if(f&&v){var w=l.length;if(c.length!==w)return!1;for(var x=0;x<w;++x)if(!py(d,l[x],c[x],i))return!1;return!0}return py(d,l,c,i)}var I=$S(s,i.fragmentMap);return I?!!yR(I)||py(I.selectionSet,r,e,i):void 0})}function yR(t){return!!t.directives&&t.directives.some(z9)}function z9(t){return"nonreactive"===t.name.value}var AN="ReactNative"==lg(function(){return navigator.product}),hb="function"==typeof WeakMap&&!(AN&&!global.HermesInternal),JS="function"==typeof WeakSet,MN="function"==typeof Symbol&&"function"==typeof Symbol.for,ED=MN&&Symbol.asyncIterator,fb=(lg(function(){return window.document.createElement}),lg(function(){return navigator.userAgent.indexOf("jsdom")>=0}),hb?WeakMap:Map),RN=JS?WeakSet:Set,bR=new gw,K9=!1;function Q9(){K9||(K9=!0,!1!==globalThis.__DEV__&&ps.warn(52))}function Sw(t){return!1!==globalThis.__DEV__&&function ZS(t){var r=new Set([t]);return r.forEach(function(e){Lu(e)&&function J9(t){if(!1!==globalThis.__DEV__&&!Object.isFrozen(t))try{Object.freeze(t)}catch(r){if(r instanceof TypeError)return null;throw r}return t}(e)===e&&Object.getOwnPropertyNames(e).forEach(function(i){Lu(e[i])&&r.add(e[i])})}),t}(t),t}function ON(t,r,e){return bR.withValue(!0,function(){var i=ex(t,r,e,!1);return Object.isFrozen(t)&&Sw(i),i})}function ex(t,r,e,i,o){var s,a=e.knownChanged,l=function FN(t,r){if(r.has(t))return r.get(t);var e=Array.isArray(t)?[]:Object.create(null);return r.set(t,e),e}(t,e.mutableTargets);if(Array.isArray(t)){for(var c=0,d=Array.from(t.entries());c<d.length;c++){var f=d[c],v=f[0],w=f[1];if(null!==w){var x=ex(w,r,e,i,!1!==globalThis.__DEV__?"".concat(o||"","[").concat(v,"]"):void 0);a.has(x)&&a.add(l),l[v]=x}else l[v]=null}return a.has(l)?l:t}for(var I=0,M=r.selections;I<M.length;I++){var F=M[I],re=void 0;if(i&&a.add(l),F.kind===mu.FIELD){var pe=gv(F),we=F.selectionSet;if(void 0===(re=l[pe]||t[pe]))continue;we&&null!==re&&(x=ex(t[pe],we,e,i,!1!==globalThis.__DEV__?"".concat(o||"",".").concat(pe):void 0),a.has(x)&&(re=x)),!1===globalThis.__DEV__&&(l[pe]=re),!1!==globalThis.__DEV__&&(!i||"__typename"===pe||null!==(s=Object.getOwnPropertyDescriptor(l,pe))&&void 0!==s&&s.value?(delete l[pe],l[pe]=re):Object.defineProperty(l,pe,Z9(pe,re,o||"",e.operationName,e.operationType)))}if(F.kind===mu.INLINE_FRAGMENT&&(!F.typeCondition||e.cache.fragmentMatches(F,t.__typename))&&(re=ex(t,F.selectionSet,e,i,o)),F.kind===mu.FRAGMENT_SPREAD){var je=F.name.value,tt=e.fragmentMap[je]||(e.fragmentMap[je]=e.cache.lookupFragment(je));ps(tt,47,je);var nt=W9(F);"mask"!==nt&&(re=ex(t,tt.selectionSet,e,"migrate"===nt,o))}a.has(re)&&a.add(l)}return"__typename"in t&&!("__typename"in l)&&(l.__typename=t.__typename),Object.keys(l).length!==Object.keys(t).length&&a.add(l),a.has(l)?l:t}function Z9(t,r,e,i,o){var s=function(){return bR.getValue()||(!1!==globalThis.__DEV__&&ps.warn(48,i?"".concat(o," '").concat(i,"'"):"anonymous ".concat(o),"".concat(e,".").concat(t).replace(/^\./,"")),s=function(){return r}),r};return{get:function(){return s()},set:function(a){s=function(){return a}},enumerable:!0,configurable:!0}}function PN(t,r,e,i){if(!e.fragmentMatches)return!1!==globalThis.__DEV__&&Q9(),t;var o=r.definitions.filter(function(a){return a.kind===mu.FRAGMENT_DEFINITION});typeof i>"u"&&(ps(1===o.length,49,o.length),i=o[0].name.value);var s=o.find(function(a){return a.name.value===i});return ps(!!s,50,i),null==t||zM(t,{})?t:ON(t,s.selectionSet,{operationType:"fragment",operationName:s.name.value,fragmentMap:ab(db(r)),cache:e,mutableTargets:new fb,knownChanged:new RN})}var DD=function(){function t(){this.assumeImmutableResults=!1,this.getFragmentDoc=yw(KM,{max:G_["cache.fragmentQueryDocuments"]||1e3,cache:YS})}return t.prototype.lookupFragment=function(r){return null},t.prototype.batch=function(r){var o,e=this;return this.performTransaction(function(){return o=r.update(e)},"string"==typeof r.optimistic?r.optimistic:!1===r.optimistic?null:void 0),o},t.prototype.recordOptimisticTransaction=function(r,e){this.performTransaction(r,e)},t.prototype.transformDocument=function(r){return r},t.prototype.transformForLink=function(r){return r},t.prototype.identify=function(r){},t.prototype.gc=function(){return[]},t.prototype.modify=function(r){return!1},t.prototype.readQuery=function(r,e){return void 0===e&&(e=!!r.optimistic),this.read(ni(ni({},r),{rootId:r.id||"ROOT_QUERY",optimistic:e}))},t.prototype.watchFragment=function(r){var e=this,i=r.fragment,o=r.fragmentName,s=r.from,a=r.optimistic,l=void 0===a||a,c=ag(r,["fragment","fragmentName","from","optimistic"]),d=this.getFragmentDoc(i,o),f=typeof s>"u"||"string"==typeof s?s:this.identify(s),v=!!r[Symbol.for("apollo.dataMasking")];if(!1!==globalThis.__DEV__){var w=o||yN(i).name.value;f||!1!==globalThis.__DEV__&&ps.warn(1,w)}var I,x=ni(ni({},c),{returnPartialData:!0,id:f,query:d,optimistic:l});return new uc(function(M){return e.watch(ni(ni({},x),{immediate:!0,callback:function(F){var re=v?PN(F.result,i,e,o):F.result;if(!I||!IN(d,{data:I.result},{data:re},r.variables)){var pe={data:re,complete:!!F.complete};F.missing&&(pe.missing=QS(F.missing.map(function(we){return we.missing}))),I=ni(ni({},F),{result:re}),M.next(pe)}}}))})},t.prototype.readFragment=function(r,e){return void 0===e&&(e=!!r.optimistic),this.read(ni(ni({},r),{query:this.getFragmentDoc(r.fragment,r.fragmentName),rootId:r.id,optimistic:e}))},t.prototype.writeQuery=function(r){var e=r.id,i=r.data,o=ag(r,["id","data"]);return this.write(Object.assign(o,{dataId:e||"ROOT_QUERY",result:i}))},t.prototype.writeFragment=function(r){var e=r.id,i=r.data,o=r.fragment,s=r.fragmentName,a=ag(r,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(o,s),dataId:e,result:i}))},t.prototype.updateQuery=function(r,e){return this.batch({update:function(i){var o=i.readQuery(r),s=e(o);return null==s?o:(i.writeQuery(ni(ni({},r),{data:s})),s)}})},t.prototype.updateFragment=function(r,e){return this.batch({update:function(i){var o=i.readFragment(r),s=e(o);return null==s?o:(i.writeFragment(ni(ni({},r),{data:s})),s)}})},t}();!1!==globalThis.__DEV__&&(DD.prototype.getMemoryInternals=iN);var CR=function(t){function r(e,i,o,s){var a,l=t.call(this,e)||this;if(l.message=e,l.path=i,l.query=o,l.variables=s,Array.isArray(l.path)){l.missing=l.message;for(var c=l.path.length-1;c>=0;--c)l.missing=((a={})[l.path[c]]=l.missing,a)}else l.missing=l.path;return l.__proto__=r.prototype,l}return zf(r,t),r}(Error);function eH(t){return t}var tx=function(){function t(r,e){void 0===e&&(e=Object.create(null)),this.resultCache=JS?new WeakSet:new Set,this.transform=r,e.getCacheKey&&(this.getCacheKey=e.getCacheKey),this.cached=!1!==e.cache,this.resetCache()}return t.prototype.getCacheKey=function(r){return[r]},t.identity=function(){return new t(eH,{cache:!1})},t.split=function(r,e,i){return void 0===i&&(i=t.identity()),Object.assign(new t(function(o){return(r(o)?e:i).transformDocument(o)},{cache:!1}),{left:e,right:i})},t.prototype.resetCache=function(){var r=this;if(this.cached){var e=new mv(hb);this.performWork=yw(t.prototype.performWork.bind(this),{makeCacheKey:function(i){var o=r.getCacheKey(i);if(o)return ps(Array.isArray(o),77),e.lookupArray(o)},max:G_["documentTransform.cache"],cache:YS})}},t.prototype.performWork=function(r){return cy(r),this.transform(r)},t.prototype.transformDocument=function(r){if(this.resultCache.has(r))return r;var e=this.performWork(r);return this.resultCache.add(e),e},t.prototype.concat=function(r){var e=this;return Object.assign(new t(function(i){return r.transformDocument(e.transformDocument(i))},{cache:!1}),{left:this,right:r})},t}(),xu=Array.isArray;function j_(t){return Array.isArray(t)&&t.length>0}var wR={kind:mu.FIELD,name:{kind:mu.NAME,value:"__typename"}};function LN(t,r){return!t||t.selectionSet.selections.every(function(e){return e.kind===mu.FRAGMENT_SPREAD&&LN(r[e.name.value],r)})}function kD(t){return LN(uy(t)||yN(t),ab(db(t)))?null:t}function NN(t){var r=new Map;return function(i){void 0===i&&(i=t);var o=r.get(i);return o||r.set(i,o={variables:new Set,fragmentSpreads:new Set}),o}}function ID(t,r){cy(r);for(var e=NN(""),i=NN(""),o=function(re){for(var pe=0,we=void 0;pe<re.length&&(we=re[pe]);++pe)if(!xu(we)){if(we.kind===mu.OPERATION_DEFINITION)return e(we.name&&we.name.value);if(we.kind===mu.FRAGMENT_DEFINITION)return i(we.name.value)}return!1!==globalThis.__DEV__&&ps.error(97),null},s=0,a=r.definitions.length-1;a>=0;--a)r.definitions[a].kind===mu.OPERATION_DEFINITION&&++s;var l=function mb(t){var r=new Map,e=new Map;return t.forEach(function(i){i&&(i.name?r.set(i.name,i):i.test&&e.set(i.test,i))}),function(i){var o=r.get(i.name.value);return!o&&e.size&&e.forEach(function(s,a){a(i)&&(o=s)}),o}}(t),c=function(re){return j_(re)&&re.map(l).some(function(pe){return pe&&pe.remove})},d=new Map,f=!1,v={enter:function(re){if(c(re.directives))return f=!0,null}},w=ug(r,{Field:v,InlineFragment:v,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(re,pe,we,je,tt){var nt=o(tt);nt&&nt.variables.add(re.name.value)}},FragmentSpread:{enter:function(re,pe,we,je,tt){if(c(re.directives))return f=!0,null;var nt=o(tt);nt&&nt.fragmentSpreads.add(re.name.value)}},FragmentDefinition:{enter:function(re,pe,we,je){d.set(JSON.stringify(je),re)},leave:function(re,pe,we,je){return re===d.get(JSON.stringify(je))?re:s>0&&re.selectionSet.selections.every(function(nt){return nt.kind===mu.FIELD&&"__typename"===nt.name.value})?(i(re.name.value).removed=!0,f=!0,null):void 0}},Directive:{leave:function(re){if(l(re))return f=!0,null}}});if(!f)return r;var x=function(re){return re.transitiveVars||(re.transitiveVars=new Set(re.variables),re.removed||re.fragmentSpreads.forEach(function(pe){x(i(pe)).transitiveVars.forEach(function(we){re.transitiveVars.add(we)})})),re},I=new Set;w.definitions.forEach(function(re){re.kind===mu.OPERATION_DEFINITION?x(e(re.name&&re.name.value)).fragmentSpreads.forEach(function(pe){I.add(pe)}):re.kind===mu.FRAGMENT_DEFINITION&&0===s&&!i(re.name.value).removed&&I.add(re.name.value)}),I.forEach(function(re){x(i(re)).fragmentSpreads.forEach(function(pe){I.add(pe)})});var F={enter:function(re){if(function(re){return!(I.has(re)&&!i(re).removed)}(re.name.value))return null}};return kD(ug(w,{FragmentSpread:F,FragmentDefinition:F,OperationDefinition:{leave:function(re){if(re.variableDefinitions){var pe=x(e(re.name&&re.name.value)).transitiveVars;if(pe.size<re.variableDefinitions.length)return ni(ni({},re),{variableDefinitions:re.variableDefinitions.filter(function(we){return pe.has(we.variable.name.value)})})}}}}))}var nx=Object.assign(function(t){return ug(t,{SelectionSet:{enter:function(r,e,i){if(!i||i.kind!==mu.OPERATION_DEFINITION){var o=r.selections;if(o&&!o.some(function(l){return B_(l)&&("__typename"===l.name.value||0===l.name.value.lastIndexOf("__",0))})){var a=i;if(!(B_(a)&&a.directives&&a.directives.some(function(l){return"export"===l.name.value})))return ni(ni({},r),{selections:Dp(Dp([],o,!0),[wR],!1)})}}}}})},{added:function(t){return t===wR}});function BN(t){return"query"===WS(t).operation?t:ug(t,{OperationDefinition:{enter:function(o){return ni(ni({},o),{operation:"query"})}}})}function TR(t){return cy(t),ID([{test:function(e){return"client"===e.name.value},remove:!0}],t)}function rH(t){return cy(t),ug(t,{FragmentSpread:function(r){var e;if(null===(e=r.directives)||void 0===e||!e.some(function(i){return"unmask"===i.name.value}))return ni(ni({},r),{directives:Dp(Dp([],r.directives||[],!0),[{kind:mu.DIRECTIVE,name:{kind:mu.NAME,value:"nonreactive"}}],!1)})}})}function VN(t){return 9===t||32===t}const $N=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function hQ(t){return fQ[t.charCodeAt(0)]}const fQ=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];function YN(t){return ug(t,gQ)}const gQ={Name:{leave:t=>t.value},Variable:{leave:t=>"$"+t.name},Document:{leave:t=>cs(t.definitions,"\n\n")},OperationDefinition:{leave(t){const r=xl("(",cs(t.variableDefinitions,", "),")"),e=cs([t.operation,cs([t.name,r]),cs(t.directives," ")]," ");return("query"===e?"":e+" ")+t.selectionSet}},VariableDefinition:{leave:({variable:t,type:r,defaultValue:e,directives:i})=>t+": "+r+xl(" = ",e)+xl(" ",cs(i," "))},SelectionSet:{leave:({selections:t})=>vv(t)},Field:{leave({alias:t,name:r,arguments:e,directives:i,selectionSet:o}){const s=xl("",t,": ")+r;let a=s+xl("(",cs(e,", "),")");return a.length>80&&(a=s+xl("(\n",ix(cs(e,"\n")),"\n)")),cs([a,cs(i," "),o]," ")}},Argument:{leave:({name:t,value:r})=>t+": "+r},FragmentSpread:{leave:({name:t,directives:r})=>"..."+t+xl(" ",cs(r," "))},InlineFragment:{leave:({typeCondition:t,directives:r,selectionSet:e})=>cs(["...",xl("on ",t),cs(r," "),e]," ")},FragmentDefinition:{leave:({name:t,typeCondition:r,variableDefinitions:e,directives:i,selectionSet:o})=>`fragment ${t}${xl("(",cs(e,", "),")")} on ${r} ${xl("",cs(i," ")," ")}`+o},IntValue:{leave:({value:t})=>t},FloatValue:{leave:({value:t})=>t},StringValue:{leave:({value:t,block:r})=>r?function lH(t,r){const e=t.replace(/"""/g,'\\"""'),i=e.split(/\r\n|[\n\r]/g),o=1===i.length,s=i.length>1&&i.slice(1).every(x=>0===x.length||VN(x.charCodeAt(0))),a=e.endsWith('\\"""'),l=t.endsWith('"')&&!a,c=t.endsWith("\\"),d=l||c,f=!(null!=r&&r.minimize)&&(!o||t.length>70||d||s||a);let v="";const w=o&&VN(t.charCodeAt(0));return(f&&!w||s)&&(v+="\n"),v+=e,(f||d)&&(v+="\n"),'"""'+v+'"""'}(t):function pQ(t){return`"${t.replace($N,hQ)}"`}(t)},BooleanValue:{leave:({value:t})=>t?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:t})=>t},ListValue:{leave:({values:t})=>"["+cs(t,", ")+"]"},ObjectValue:{leave:({fields:t})=>"{"+cs(t,", ")+"}"},ObjectField:{leave:({name:t,value:r})=>t+": "+r},Directive:{leave:({name:t,arguments:r})=>"@"+t+xl("(",cs(r,", "),")")},NamedType:{leave:({name:t})=>t},ListType:{leave:({type:t})=>"["+t+"]"},NonNullType:{leave:({type:t})=>t+"!"},SchemaDefinition:{leave:({description:t,directives:r,operationTypes:e})=>xl("",t,"\n")+cs(["schema",cs(r," "),vv(e)]," ")},OperationTypeDefinition:{leave:({operation:t,type:r})=>t+": "+r},ScalarTypeDefinition:{leave:({description:t,name:r,directives:e})=>xl("",t,"\n")+cs(["scalar",r,cs(e," ")]," ")},ObjectTypeDefinition:{leave:({description:t,name:r,interfaces:e,directives:i,fields:o})=>xl("",t,"\n")+cs(["type",r,xl("implements ",cs(e," & ")),cs(i," "),vv(o)]," ")},FieldDefinition:{leave:({description:t,name:r,arguments:e,type:i,directives:o})=>xl("",t,"\n")+r+(cH(e)?xl("(\n",ix(cs(e,"\n")),"\n)"):xl("(",cs(e,", "),")"))+": "+i+xl(" ",cs(o," "))},InputValueDefinition:{leave:({description:t,name:r,type:e,defaultValue:i,directives:o})=>xl("",t,"\n")+cs([r+": "+e,xl("= ",i),cs(o," ")]," ")},InterfaceTypeDefinition:{leave:({description:t,name:r,interfaces:e,directives:i,fields:o})=>xl("",t,"\n")+cs(["interface",r,xl("implements ",cs(e," & ")),cs(i," "),vv(o)]," ")},UnionTypeDefinition:{leave:({description:t,name:r,directives:e,types:i})=>xl("",t,"\n")+cs(["union",r,cs(e," "),xl("= ",cs(i," | "))]," ")},EnumTypeDefinition:{leave:({description:t,name:r,directives:e,values:i})=>xl("",t,"\n")+cs(["enum",r,cs(e," "),vv(i)]," ")},EnumValueDefinition:{leave:({description:t,name:r,directives:e})=>xl("",t,"\n")+cs([r,cs(e," ")]," ")},InputObjectTypeDefinition:{leave:({description:t,name:r,directives:e,fields:i})=>xl("",t,"\n")+cs(["input",r,cs(e," "),vv(i)]," ")},DirectiveDefinition:{leave:({description:t,name:r,arguments:e,repeatable:i,locations:o})=>xl("",t,"\n")+"directive @"+r+(cH(e)?xl("(\n",ix(cs(e,"\n")),"\n)"):xl("(",cs(e,", "),")"))+(i?" repeatable":"")+" on "+cs(o," | ")},SchemaExtension:{leave:({directives:t,operationTypes:r})=>cs(["extend schema",cs(t," "),vv(r)]," ")},ScalarTypeExtension:{leave:({name:t,directives:r})=>cs(["extend scalar",t,cs(r," ")]," ")},ObjectTypeExtension:{leave:({name:t,interfaces:r,directives:e,fields:i})=>cs(["extend type",t,xl("implements ",cs(r," & ")),cs(e," "),vv(i)]," ")},InterfaceTypeExtension:{leave:({name:t,interfaces:r,directives:e,fields:i})=>cs(["extend interface",t,xl("implements ",cs(r," & ")),cs(e," "),vv(i)]," ")},UnionTypeExtension:{leave:({name:t,directives:r,types:e})=>cs(["extend union",t,cs(r," "),xl("= ",cs(e," | "))]," ")},EnumTypeExtension:{leave:({name:t,directives:r,values:e})=>cs(["extend enum",t,cs(r," "),vv(e)]," ")},InputObjectTypeExtension:{leave:({name:t,directives:r,fields:e})=>cs(["extend input",t,cs(r," "),vv(e)]," ")}};function cs(t,r=""){var e;return null!==(e=t?.filter(i=>i).join(r))&&void 0!==e?e:""}function vv(t){return xl("{\n",ix(cs(t,"\n")),"\n}")}function xl(t,r,e=""){return null!=r&&""!==r?t+r+e:""}function ix(t){return xl("  ",t.replace(/\n/g,"\n  "))}function cH(t){var r;return null!==(r=t?.some(e=>e.includes("\n")))&&void 0!==r&&r}var rx,gb=Object.assign(function(t){var r=rx.get(t);return r||(r=YN(t),rx.set(t,r)),r},{reset:function(){rx=new tR(G_.print||2e3)}});function xw(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var e=Object.create(null);return t.forEach(function(i){i&&Object.keys(i).forEach(function(o){var s=i[o];void 0!==s&&(e[o]=s)})}),e}gb.reset(),!1!==globalThis.__DEV__&&nR("print",function(){return rx?rx.size:0});var Ip=Object.prototype.hasOwnProperty;function ox(t){return null==t}function SR(t,r){var e=t.__typename,i=t.id,o=t._id;if("string"==typeof e&&(r&&(r.keyObject=ox(i)?ox(o)?void 0:{_id:o}:{id:i}),ox(i)&&!ox(o)&&(i=o),!ox(i)))return"".concat(e,":").concat("number"==typeof i||"string"==typeof i?i:JSON.stringify(i))}var WN={dataIdFromObject:SR,addTypename:!0,resultCaching:!0,canonizeResults:!1};function AD(t){var r=t.canonizeResults;return void 0===r?WN.canonizeResults:r}var MD=/^[_a-z][_0-9a-z]*/i;function hy(t){var r=t.match(MD);return r?r[0]:t}function RD(t,r,e){return!!Lu(r)&&(xu(r)?r.every(function(i){return RD(t,i,e)}):t.selections.every(function(i){if(B_(i)&&ww(i,e)){var o=gv(i);return Ip.call(r,o)&&(!i.selectionSet||RD(i.selectionSet,r[o],e))}return!0}))}function fy(t){return Lu(t)&&!ec(t)&&!xu(t)}function dH(t,r){var e=ab(db(t));return{fragmentMap:e,lookupFragment:function(i){var o=e[i];return!o&&r&&(o=r.lookup(i)),o||null}}}var my=Object.create(null),qN=function(){return my},XN=Object.create(null),vb=function(){function t(r,e){var i=this;this.policies=r,this.group=e,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(o,s){return Sw(ec(o)?i.get(o.__ref,s):o&&o[s])},this.canRead=function(o){return ec(o)?i.has(o.__ref):"object"==typeof o},this.toReference=function(o,s){if("string"==typeof o)return lb(o);if(ec(o))return o;var a=i.policies.identify(o)[0];if(a){var l=lb(a);return s&&i.merge(a,o),l}}}return t.prototype.toObject=function(){return ni({},this.data)},t.prototype.has=function(r){return void 0!==this.lookup(r,!0)},t.prototype.get=function(r,e){if(this.group.depend(r,e),Ip.call(this.data,r)){var i=this.data[r];if(i&&Ip.call(i,e))return i[e]}return"__typename"===e&&Ip.call(this.policies.rootTypenamesById,r)?this.policies.rootTypenamesById[r]:this instanceof gy?this.parent.get(r,e):void 0},t.prototype.lookup=function(r,e){return e&&this.group.depend(r,"__exists"),Ip.call(this.data,r)?this.data[r]:this instanceof gy?this.parent.lookup(r,e):this.policies.rootTypenamesById[r]?Object.create(null):void 0},t.prototype.merge=function(r,e){var o,i=this;ec(r)&&(r=r.__ref),ec(e)&&(e=e.__ref);var s="string"==typeof r?this.lookup(o=r):r,a="string"==typeof e?this.lookup(o=e):e;if(a){ps("string"==typeof o,2);var l=new V_(JN).merge(s,a);if(this.data[o]=l,l!==s&&(delete this.refs[o],this.group.caching)){var c=Object.create(null);s||(c.__exists=1),Object.keys(a).forEach(function(d){if(!s||s[d]!==l[d]){c[d]=1;var f=hy(d);f!==d&&!i.policies.hasKeyArgs(l.__typename,f)&&(c[f]=1),void 0===l[d]&&!(i instanceof gy)&&delete l[d]}}),c.__typename&&!(s&&s.__typename)&&this.policies.rootTypenamesById[o]===l.__typename&&delete c.__typename,Object.keys(c).forEach(function(d){return i.group.dirty(o,d)})}}},t.prototype.modify=function(r,e){var i=this,o=this.lookup(r);if(o){var s=Object.create(null),a=!1,l=!0,c={DELETE:my,INVALIDATE:XN,isReference:ec,toReference:this.toReference,canRead:this.canRead,readField:function(d,f){return i.policies.readField("string"==typeof d?{fieldName:d,from:f||lb(r)}:d,{store:i})}};if(Object.keys(o).forEach(function(d){var f=hy(d),v=o[d];if(void 0!==v){var w="function"==typeof e?e:e[d]||e[f];if(w){var x=w===qN?my:w(Sw(v),ni(ni({},c),{fieldName:f,storeFieldName:d,storage:i.getStorage(r,d)}));if(x===XN)i.group.dirty(r,d);else if(x===my&&(x=void 0),x!==v&&(s[d]=x,a=!0,v=x,!1!==globalThis.__DEV__)){var I=function(tt){if(void 0===i.lookup(tt.__ref))return!1!==globalThis.__DEV__&&ps.warn(3,tt),!0};if(ec(x))I(x);else if(Array.isArray(x))for(var M=!1,F=void 0,re=0,pe=x;re<pe.length;re++){var we=pe[re];if(ec(we)){if(M=!0,I(we))break}else"object"==typeof we&&we&&i.policies.identify(we)[0]&&(F=we);if(M&&void 0!==F){!1!==globalThis.__DEV__&&ps.warn(4,F);break}}}}void 0!==v&&(l=!1)}}),a)return this.merge(r,s),l&&(this instanceof gy?this.data[r]=void 0:delete this.data[r],this.group.dirty(r,"__exists")),!0}return!1},t.prototype.delete=function(r,e,i){var o,s=this.lookup(r);if(s){var a=this.getFieldValue(s,"__typename"),l=e&&i?this.policies.getStoreFieldName({typename:a,fieldName:e,args:i}):e;return this.modify(r,l?((o={})[l]=qN,o):qN)}return!1},t.prototype.evict=function(r,e){var i=!1;return r.id&&(Ip.call(this.data,r.id)&&(i=this.delete(r.id,r.fieldName,r.args)),this instanceof gy&&this!==e&&(i=this.parent.evict(r,e)||i),(r.fieldName||i)&&this.group.dirty(r.id,r.fieldName||"__exists")),i},t.prototype.clear=function(){this.replace(null)},t.prototype.extract=function(){var r=this,e=this.toObject(),i=[];return this.getRootIdSet().forEach(function(o){Ip.call(r.policies.rootTypenamesById,o)||i.push(o)}),i.length&&(e.__META={extraRootIds:i.sort()}),e},t.prototype.replace=function(r){var e=this;if(Object.keys(this.data).forEach(function(s){r&&Ip.call(r,s)||e.delete(s)}),r){var i=r.__META,o=ag(r,["__META"]);Object.keys(o).forEach(function(s){e.merge(s,o[s])}),i&&i.extraRootIds.forEach(this.retain,this)}},t.prototype.retain=function(r){return this.rootIds[r]=(this.rootIds[r]||0)+1},t.prototype.release=function(r){if(this.rootIds[r]>0){var e=--this.rootIds[r];return e||delete this.rootIds[r],e}return 0},t.prototype.getRootIdSet=function(r){return void 0===r&&(r=new Set),Object.keys(this.rootIds).forEach(r.add,r),this instanceof gy?this.parent.getRootIdSet(r):Object.keys(this.policies.rootTypenamesById).forEach(r.add,r),r},t.prototype.gc=function(){var r=this,e=this.getRootIdSet(),i=this.toObject();e.forEach(function(a){Ip.call(i,a)&&(Object.keys(r.findChildRefIds(a)).forEach(e.add,e),delete i[a])});var o=Object.keys(i);if(o.length){for(var s=this;s instanceof gy;)s=s.parent;o.forEach(function(a){return s.delete(a)})}return o},t.prototype.findChildRefIds=function(r){if(!Ip.call(this.refs,r)){var e=this.refs[r]=Object.create(null),i=this.data[r];if(!i)return e;var o=new Set([i]);o.forEach(function(s){ec(s)&&(e[s.__ref]=!0),Lu(s)&&Object.keys(s).forEach(function(a){var l=s[a];Lu(l)&&o.add(l)})})}return this.refs[r]},t.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},t}(),KN=function(){function t(r,e){void 0===e&&(e=null),this.caching=r,this.parent=e,this.d=null,this.resetCaching()}return t.prototype.resetCaching=function(){this.d=this.caching?Y4():null,this.keyMaker=new mv(hb)},t.prototype.depend=function(r,e){if(this.d){this.d(QN(r,e));var i=hy(e);i!==e&&this.d(QN(r,i)),this.parent&&this.parent.depend(r,e)}},t.prototype.dirty=function(r,e){this.d&&this.d.dirty(QN(r,e),"__exists"===e?"forget":"setDirty")},t}();function QN(t,r){return r+"#"+t}function pH(t,r){OD(t)&&t.group.depend(r,"__exists")}!function(t){var r=function(e){function i(o){var a=o.resultCaching,c=o.seed,d=e.call(this,o.policies,new KN(void 0===a||a))||this;return d.stump=new hH(d),d.storageTrie=new mv(hb),c&&d.replace(c),d}return zf(i,e),i.prototype.addLayer=function(o,s){return this.stump.addLayer(o,s)},i.prototype.removeLayer=function(){return this},i.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},i}(t);t.Root=r}(vb||(vb={}));var gy=function(t){function r(e,i,o,s){var a=t.call(this,i.policies,s)||this;return a.id=e,a.parent=i,a.replay=o,a.group=s,o(a),a}return zf(r,t),r.prototype.addLayer=function(e,i){return new r(e,this,i,this.group)},r.prototype.removeLayer=function(e){var i=this,o=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(s){var a=i.data[s],l=o.lookup(s);l?a?a!==l&&Object.keys(a).forEach(function(c){iu(a[c],l[c])||i.group.dirty(s,c)}):(i.group.dirty(s,"__exists"),Object.keys(l).forEach(function(c){i.group.dirty(s,c)})):i.delete(s)}),o):o===this.parent?this:o.addLayer(this.id,this.replay)},r.prototype.toObject=function(){return ni(ni({},this.parent.toObject()),this.data)},r.prototype.findChildRefIds=function(e){var i=this.parent.findChildRefIds(e);return Ip.call(this.data,e)?ni(ni({},i),t.prototype.findChildRefIds.call(this,e)):i},r.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},r}(vb),hH=function(t){function r(e){return t.call(this,"EntityStore.Stump",e,function(){},new KN(e.group.caching,e.group))||this}return zf(r,t),r.prototype.removeLayer=function(){return this},r.prototype.merge=function(e,i){return this.parent.merge(e,i)},r}(gy);function JN(t,r,e){var i=t[e],o=r[e];return iu(i,o)?i:o}function OD(t){return!!(t instanceof vb&&t.group.caching)}var ZN=function(){function t(){this.known=new(JS?WeakSet:Set),this.pool=new mv(hb),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return t.prototype.isKnown=function(r){return Lu(r)&&this.known.has(r)},t.prototype.pass=function(r){if(Lu(r)){var e=function fH(t){return Lu(t)?xu(t)?t.slice(0):ni({__proto__:Object.getPrototypeOf(t)},t):t}(r);return this.passes.set(e,r),e}return r},t.prototype.admit=function(r){var e=this;if(Lu(r)){var i=this.passes.get(r);if(i)return i;switch(Object.getPrototypeOf(r)){case Array.prototype:if(this.known.has(r))return r;var s=r.map(this.admit,this);return(a=this.pool.lookupArray(s)).array||(this.known.add(a.array=s),!1!==globalThis.__DEV__&&Object.freeze(s)),a.array;case null:case Object.prototype:if(this.known.has(r))return r;var l=Object.getPrototypeOf(r),c=[l],d=this.sortedKeys(r);c.push(d.json);var a,f=c.length;if(d.sorted.forEach(function(x){c.push(e.admit(r[x]))}),!(a=this.pool.lookupArray(c)).object){var v=a.object=Object.create(l);this.known.add(v),d.sorted.forEach(function(x,I){v[x]=c[f+I]}),!1!==globalThis.__DEV__&&Object.freeze(v)}return a.object}}return r},t.prototype.sortedKeys=function(r){var e=Object.keys(r),i=this.pool.lookupArray(e);if(!i.keys){e.sort();var o=JSON.stringify(e);(i.keys=this.keysByJSON.get(o))||this.keysByJSON.set(o,i.keys={sorted:e,json:o})}return i.keys},t}();function sx(t){return[t.selectionSet,t.objectOrReference,t.context,t.context.canonizeResults]}var mH=function(){function t(r){var e=this;this.knownResults=new(hb?WeakMap:Map),this.config=xw(r,{addTypename:!1!==r.addTypename,canonizeResults:AD(r)}),this.canon=r.canon||new ZN,this.executeSelectionSet=yw(function(i){var o,s=i.context.canonizeResults,a=sx(i);a[3]=!s;var l=(o=e.executeSelectionSet).peek.apply(o,a);return l?s?ni(ni({},l),{result:e.canon.admit(l.result)}):l:(pH(i.context.store,i.enclosingRef.__ref),e.execSelectionSetImpl(i))},{max:this.config.resultCacheMaxSize||G_["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:sx,makeCacheKey:function(i,o,s,a){if(OD(s.store))return s.store.makeCacheKey(i,ec(o)?o.__ref:o,s.varString,a)}}),this.executeSubSelectedArray=yw(function(i){return pH(i.context.store,i.enclosingRef.__ref),e.execSubSelectedArrayImpl(i)},{max:this.config.resultCacheMaxSize||G_["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(i){var o=i.field,s=i.array,a=i.context;if(OD(a.store))return a.store.makeCacheKey(o,s,a.varString)}})}return t.prototype.resetCanon=function(){this.canon=new ZN},t.prototype.diffQueryAgainstStore=function(r){var e=r.store,i=r.query,o=r.rootId,s=void 0===o?"ROOT_QUERY":o,a=r.variables,l=r.returnPartialData,c=void 0===l||l,d=r.canonizeResults,f=void 0===d?this.config.canonizeResults:d,v=this.config.cache.policies;a=ni(ni({},aR(sR(i))),a);var I,w=lb(s),x=this.executeSelectionSet({selectionSet:WS(i).selectionSet,objectOrReference:w,enclosingRef:w,context:ni({store:e,query:i,policies:v,variables:a,varString:ay(a),canonizeResults:f},dH(i,this.config.fragments))});if(x.missing&&(I=[new CR(ax(x.missing),x.missing,i,a)],!c))throw I[0];return{result:x.result,complete:!I,missing:I}},t.prototype.isFresh=function(r,e,i,o){if(OD(o.store)&&this.knownResults.get(r)===i){var s=this.executeSelectionSet.peek(i,e,o,this.canon.isKnown(r));if(s&&r===s.result)return!0}return!1},t.prototype.execSelectionSetImpl=function(r){var e=this,i=r.selectionSet,o=r.objectOrReference,s=r.enclosingRef,a=r.context;if(ec(o)&&!a.policies.rootTypenamesById[o.__ref]&&!a.store.has(o.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(o.__ref," object")};var w,l=a.variables,c=a.policies,f=a.store.getFieldValue(o,"__typename"),v=[],x=new V_;function I(we,je){var tt;return we.missing&&(w=x.merge(w,((tt={})[je]=we.missing,tt))),we.result}this.config.addTypename&&"string"==typeof f&&!c.rootIdsByTypename[f]&&v.push({__typename:f});var M=new Set(i.selections);M.forEach(function(we){var je,tt;if(ww(we,l))if(B_(we)){var nt=c.readField({fieldName:we.name.value,field:we,variables:a.variables,from:o},a),rt=gv(we);void 0===nt?nx.added(we)||(w=x.merge(w,((je={})[rt]="Can't find field '".concat(we.name.value,"' on ").concat(ec(o)?o.__ref+" object":"object "+JSON.stringify(o,null,2)),je))):xu(nt)?nt.length>0&&(nt=I(e.executeSubSelectedArray({field:we,array:nt,enclosingRef:s,context:a}),rt)):we.selectionSet?null!=nt&&(nt=I(e.executeSelectionSet({selectionSet:we.selectionSet,objectOrReference:nt,enclosingRef:ec(nt)?nt:s,context:a}),rt)):a.canonizeResults&&(nt=e.canon.pass(nt)),void 0!==nt&&v.push(((tt={})[rt]=nt,tt))}else{var lt=$S(we,a.lookupFragment);if(!lt&&we.kind===mu.FRAGMENT_SPREAD)throw Qp(10,we.name.value);lt&&c.fragmentMatches(lt,f)&&lt.selectionSet.selections.forEach(M.add,M)}});var re={result:QS(v),missing:w},pe=a.canonizeResults?this.canon.admit(re):Sw(re);return pe.result&&this.knownResults.set(pe.result,i),pe},t.prototype.execSubSelectedArrayImpl=function(r){var l,e=this,i=r.field,o=r.array,s=r.enclosingRef,a=r.context,c=new V_;function d(f,v){var w;return f.missing&&(l=c.merge(l,((w={})[v]=f.missing,w))),f.result}return i.selectionSet&&(o=o.filter(a.store.canRead)),o=o.map(function(f,v){return null===f?null:xu(f)?d(e.executeSubSelectedArray({field:i,array:f,enclosingRef:s,context:a}),v):i.selectionSet?d(e.executeSelectionSet({selectionSet:i.selectionSet,objectOrReference:f,enclosingRef:ec(f)?f:s,context:a}),v):(!1!==globalThis.__DEV__&&function e5(t,r,e){if(!r.selectionSet){var i=new Set([e]);i.forEach(function(o){Lu(o)&&(ps(!ec(o),11,function vQ(t,r){return ec(r)?t.get(r.__ref,"__typename"):r&&r.__typename}(t,o),r.name.value),Object.values(o).forEach(i.add,i))})}}(a.store,i,f),f)}),{result:a.canonizeResults?this.canon.admit(o):o,missing:l}},t}();function ax(t){try{JSON.stringify(t,function(r,e){if("string"==typeof e)throw e;return e})}catch(r){return r}}var gH=Object.prototype.toString;function FD(t){return _v(t)}function _v(t,r){switch(gH.call(t)){case"[object Array]":if((r=r||new Map).has(t))return r.get(t);var e=t.slice(0);return r.set(t,e),e.forEach(function(o,s){e[s]=_v(o,r)}),e;case"[object Object]":if((r=r||new Map).has(t))return r.get(t);var i=Object.create(Object.getPrototypeOf(t));return r.set(t,i),Object.keys(t).forEach(function(o){i[o]=_v(t[o],r)}),i;default:return t}}var PD=new gw,t5=new WeakMap;function Ew(t){var r=t5.get(t);return r||t5.set(t,r={vars:new Set,dep:Y4()}),r}function xR(t){Ew(t).vars.forEach(function(r){return r.forgetCache(t)})}function ER(t){var r=new Set,e=new Set,i=function(s){if(arguments.length>0){if(t!==s){t=s,r.forEach(function(c){Ew(c).dep.dirty(i),function _Q(t){t.broadcastWatches&&t.broadcastWatches()}(c)});var a=Array.from(e);e.clear(),a.forEach(function(c){return c(t)})}}else{var l=PD.getValue();l&&(o(l),Ew(l).dep(i))}return t};i.onNextChange=function(s){return e.add(s),function(){e.delete(s)}};var o=i.attachCache=function(s){return r.add(s),Ew(s).vars.add(i),i};return i.forgetCache=function(s){return r.delete(s)},i}var n5=Object.create(null);function i5(t){var r=JSON.stringify(t);return n5[r]||(n5[r]=Object.create(null))}function DR(t){var r=i5(t);return r.keyFieldsFn||(r.keyFieldsFn=function(e,i){var o=function(a,l){return i.readField(l,a)},s=i.keyObject=r5(t,function(a){var l=Dw(i.storeObject,a,o);return void 0===l&&e!==i.storeObject&&Ip.call(e,a[0])&&(l=Dw(e,a,bH)),ps(void 0!==l,5,a.join("."),e),l});return"".concat(i.typename,":").concat(JSON.stringify(s))})}function _H(t){var r=i5(t);return r.keyArgsFn||(r.keyArgsFn=function(e,i){var o=i.field,s=i.variables,a=i.fieldName,l=r5(t,function(d){var f=d[0],v=f.charAt(0);if("@"!==v)if("$"!==v){if(e)return Dw(e,d)}else{var M=f.slice(1);if(s&&Ip.call(s,M)){var F=d.slice(0);return F[0]=M,Dw(s,F)}}else if(o&&j_(o.directives)){var w=f.slice(1),x=o.directives.find(function(re){return re.name.value===w}),I=x&&Cw(x,s);return I&&Dw(I,d.slice(1))}}),c=JSON.stringify(l);return(e||"{}"!==c)&&(a+=":"+c),a})}function r5(t,r){var e=new V_;return yH(t).reduce(function(i,o){var s,a=r(o);if(void 0!==a){for(var l=o.length-1;l>=0;--l)(s={})[o[l]]=a,a=s;i=e.merge(i,a)}return i},Object.create(null))}function yH(t){var r=i5(t);if(!r.paths){var e=r.paths=[],i=[];t.forEach(function(o,s){xu(o)?(yH(o).forEach(function(a){return e.push(i.concat(a))}),i.length=0):(i.push(o),xu(t[s+1])||(e.push(i.slice(0)),i.length=0))})}return r.paths}function bH(t,r){return t[r]}function Dw(t,r,e){return e=e||bH,CH(r.reduce(function i(o,s){return xu(o)?o.map(function(a){return i(a,s)}):o&&e(o,s)},t))}function CH(t){return Lu(t)?xu(t)?t.map(CH):r5(Object.keys(t).sort(),function(r){return Dw(t,r)}):t}function o5(t){return void 0!==t.args?t.args:t.field?Cw(t.field,t.variables):null}var s5=function(){},kR=function(t,r){return r.fieldName},a5=function(t,r,e){return(0,e.mergeObjects)(t,r)},l5=function(t,r){return r},yQ=function(){function t(r){this.config=r,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=ni({dataIdFromObject:SR},r),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),r.possibleTypes&&this.addPossibleTypes(r.possibleTypes),r.typePolicies&&this.addTypePolicies(r.typePolicies)}return t.prototype.identify=function(r,e){var i,o=this,s=e&&(e.typename||(null===(i=e.storeObject)||void 0===i?void 0:i.__typename))||r.__typename;if(s===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];var c,a=e&&e.storeObject||r,l=ni(ni({},e),{typename:s,storeObject:a,readField:e&&e.readField||function(){var v=c5(arguments,a);return o.readField(v,{store:o.cache.data,variables:v.variables})}}),d=s&&this.getTypePolicy(s),f=d&&d.keyFn||this.config.dataIdFromObject;return bR.withValue(!0,function(){for(;f;){var v=f(ni(ni({},r),a),l);if(!xu(v)){c=v;break}f=DR(v)}}),c=c?String(c):void 0,l.keyObject?[c,l.keyObject]:[c]},t.prototype.addTypePolicies=function(r){var e=this;Object.keys(r).forEach(function(i){var o=r[i],s=o.queryType,a=o.mutationType,l=o.subscriptionType,c=ag(o,["queryType","mutationType","subscriptionType"]);s&&e.setRootTypename("Query",i),a&&e.setRootTypename("Mutation",i),l&&e.setRootTypename("Subscription",i),Ip.call(e.toBeAdded,i)?e.toBeAdded[i].push(c):e.toBeAdded[i]=[c]})},t.prototype.updateTypePolicy=function(r,e){var i=this,o=this.getTypePolicy(r),s=e.keyFields,a=e.fields;function l(c,d){c.merge="function"==typeof d?d:!0===d?a5:!1===d?l5:c.merge}l(o,e.merge),o.keyFn=!1===s?s5:xu(s)?DR(s):"function"==typeof s?s:o.keyFn,a&&Object.keys(a).forEach(function(c){var d=i.getFieldPolicy(r,c,!0),f=a[c];if("function"==typeof f)d.read=f;else{var v=f.keyArgs,w=f.read,x=f.merge;d.keyFn=!1===v?kR:xu(v)?_H(v):"function"==typeof v?v:d.keyFn,"function"==typeof w&&(d.read=w),l(d,x)}d.read&&d.merge&&(d.keyFn=d.keyFn||kR)})},t.prototype.setRootTypename=function(r,e){void 0===e&&(e=r);var i="ROOT_"+r.toUpperCase(),o=this.rootTypenamesById[i];e!==o&&(ps(!o||o===r,6,r),o&&delete this.rootIdsByTypename[o],this.rootIdsByTypename[e]=i,this.rootTypenamesById[i]=e)},t.prototype.addPossibleTypes=function(r){var e=this;this.usingPossibleTypes=!0,Object.keys(r).forEach(function(i){e.getSupertypeSet(i,!0),r[i].forEach(function(o){e.getSupertypeSet(o,!0).add(i);var s=o.match(MD);(!s||s[0]!==o)&&e.fuzzySubtypes.set(o,new RegExp(o))})})},t.prototype.getTypePolicy=function(r){var e=this;if(!Ip.call(this.typePolicies,r)){var i=this.typePolicies[r]=Object.create(null);i.fields=Object.create(null);var o=this.supertypeMap.get(r);!o&&this.fuzzySubtypes.size&&(o=this.getSupertypeSet(r,!0),this.fuzzySubtypes.forEach(function(a,l){if(a.test(r)){var c=e.supertypeMap.get(l);c&&c.forEach(function(d){return o.add(d)})}})),o&&o.size&&o.forEach(function(a){var l=e.getTypePolicy(a),c=l.fields,d=ag(l,["fields"]);Object.assign(i,d),Object.assign(i.fields,c)})}var s=this.toBeAdded[r];return s&&s.length&&s.splice(0).forEach(function(a){e.updateTypePolicy(r,a)}),this.typePolicies[r]},t.prototype.getFieldPolicy=function(r,e,i){if(r){var o=this.getTypePolicy(r).fields;return o[e]||i&&(o[e]=Object.create(null))}},t.prototype.getSupertypeSet=function(r,e){var i=this.supertypeMap.get(r);return!i&&e&&this.supertypeMap.set(r,i=new Set),i},t.prototype.fragmentMatches=function(r,e,i,o){var s=this;if(!r.typeCondition)return!0;if(!e)return!1;var a=r.typeCondition.name.value;if(e===a)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(a))for(var l=this.getSupertypeSet(e,!0),c=[l],d=function(I){var M=s.getSupertypeSet(I,!1);M&&M.size&&c.indexOf(M)<0&&c.push(M)},f=!(!i||!this.fuzzySubtypes.size),v=!1,w=0;w<c.length;++w){var x=c[w];if(x.has(a))return l.has(a)||(v&&!1!==globalThis.__DEV__&&ps.warn(7,e,a),l.add(a)),!0;x.forEach(d),f&&w===c.length-1&&RD(r.selectionSet,i,o)&&(f=!1,v=!0,this.fuzzySubtypes.forEach(function(I,M){var F=e.match(I);F&&F[0]===e&&d(M)}))}return!1},t.prototype.hasKeyArgs=function(r,e){var i=this.getFieldPolicy(r,e,!1);return!(!i||!i.keyFn)},t.prototype.getStoreFieldName=function(r){var s,e=r.typename,i=r.fieldName,o=this.getFieldPolicy(e,i,!1),a=o&&o.keyFn;if(a&&e)for(var l={typename:e,fieldName:i,field:r.field||null,variables:r.variables},c=o5(r);a;){var d=a(c,l);if(!xu(d)){s=d||i;break}a=_H(d)}return void 0===s&&(s=r.field?function bD(t,r){var e=null;t.directives&&(e={},t.directives.forEach(function(o){e[o.name.value]={},o.arguments&&o.arguments.forEach(function(s){return ly(e[o.name.value],s.name,s.value,r)})}));var i=null;return t.arguments&&t.arguments.length&&(i={},t.arguments.forEach(function(o){return ly(i,o.name,o.value,r)})),CD(t.name.value,i,e)}(r.field,r.variables):CD(i,o5(r))),!1===s?i:i===hy(s)?s:i+":"+s},t.prototype.readField=function(r,e){var i=r.from;if(i&&(r.field||r.fieldName)){if(void 0===r.typename){var s=e.store.getFieldValue(i,"__typename");s&&(r.typename=s)}var a=this.getStoreFieldName(r),l=hy(a),c=e.store.getFieldValue(i,a),d=this.getFieldPolicy(r.typename,l,!1),f=d&&d.read;if(f){var v=wH(this,i,r,e,e.store.getStorage(ec(i)?i.__ref:i,a));return PD.withValue(this.cache,f,[c,v])}return c}},t.prototype.getReadFunction=function(r,e){var i=this.getFieldPolicy(r,e,!1);return i&&i.read},t.prototype.getMergeFunction=function(r,e,i){var o=this.getFieldPolicy(r,e,!1),s=o&&o.merge;return!s&&i&&(s=(o=this.getTypePolicy(i))&&o.merge),s},t.prototype.runMergeFunction=function(r,e,i,o,s){var a=i.field,l=i.typename,c=i.merge;return c===a5?TH(o.store)(r,e):c===l5?e:(o.overwrite&&(r=void 0),c(r,e,wH(this,void 0,{typename:l,fieldName:a.name.value,field:a,variables:o.variables},o,s||Object.create(null))))},t}();function wH(t,r,e,i,o){var s=t.getStoreFieldName(e),a=hy(s),l=e.variables||i.variables,c=i.store,d=c.toReference,f=c.canRead;return{args:o5(e),field:e.field||null,fieldName:a,storeFieldName:s,variables:l,isReference:ec,toReference:d,storage:o,cache:t.cache,canRead:f,readField:function(){return t.readField(c5(arguments,r,l),i)},mergeObjects:TH(i.store)}}function c5(t,r,e){var a,i=t[0];return"string"==typeof i?a={fieldName:i,from:t.length>1?t[1]:r}:(a=ni({},i),Ip.call(a,"from")||(a.from=r)),!1!==globalThis.__DEV__&&void 0===a.from&&!1!==globalThis.__DEV__&&ps.warn(8,FM(Array.from(t))),void 0===a.variables&&(a.variables=e),a}function TH(t){return function(e,i){if(xu(e)||xu(i))throw Qp(9);if(Lu(e)&&Lu(i)){var o=t.getFieldValue(e,"__typename"),s=t.getFieldValue(i,"__typename");if(o&&s&&o!==s)return i;if(ec(e)&&fy(i))return t.merge(e.__ref,i),e;if(fy(e)&&ec(i))return t.merge(e,i.__ref),i;if(fy(e)&&fy(i))return ni(ni({},e),i)}return i}}function u5(t,r,e){var i="".concat(r).concat(e),o=t.flavors.get(i);return o||t.flavors.set(i,o=t.clientOnly===r&&t.deferred===e?t:ni(ni({},t),{clientOnly:r,deferred:e})),o}var d5=function(){function t(r,e,i){this.cache=r,this.reader=e,this.fragments=i}return t.prototype.writeToStore=function(r,e){var i=this,o=e.query,s=e.result,a=e.dataId,l=e.variables,c=e.overwrite,d=uy(o),f=function zN(){return new V_}();l=ni(ni({},aR(d)),l);var v=ni(ni({store:r,written:Object.create(null),merge:function(x,I){return f.merge(x,I)},variables:l,varString:ay(l)},dH(o,this.fragments)),{overwrite:!!c,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),w=this.processSelectionSet({result:s||Object.create(null),dataId:a,selectionSet:d.selectionSet,mergeTree:{map:new Map},context:v});if(!ec(w))throw Qp(12,s);return v.incomingById.forEach(function(x,I){var M=x.storeObject,F=x.mergeTree,re=x.fieldNodeSet,pe=lb(I);if(F&&F.map.size){var we=i.applyMerges(F,pe,M,v);if(ec(we))return;M=we}if(!1!==globalThis.__DEV__&&!v.overwrite){var je=Object.create(null);re.forEach(function(rt){rt.selectionSet&&(je[rt.name.value]=!0)}),Object.keys(M).forEach(function(rt){(function(rt){return!0===je[hy(rt)]})(rt)&&!function(rt){var lt=F&&F.map.get(rt);return!!(lt&&lt.info&&lt.info.merge)}(rt)&&function MR(t,r,e,i){var o=function(v){var w=i.getFieldValue(v,e);return"object"==typeof w&&w},s=o(t);if(s){var a=o(r);if(a&&!ec(s)&&!iu(s,a)&&!Object.keys(s).every(function(v){return void 0!==i.getFieldValue(a,v)})){var l=i.getFieldValue(t,"__typename")||i.getFieldValue(r,"__typename"),c=hy(e),d="".concat(l,".").concat(c);if(!AR.has(d)){AR.add(d);var f=[];!xu(s)&&!xu(a)&&[s,a].forEach(function(v){var w=i.getFieldValue(v,"__typename");"string"==typeof w&&!f.includes(w)&&f.push(w)}),!1!==globalThis.__DEV__&&ps.warn(15,c,l,f.length?"either ensure all objects of type "+f.join(" and ")+" have an ID or a custom merge function, or ":"",d,ni({},s),ni({},a))}}}}(pe,M,rt,v.store)})}r.merge(I,M)}),r.retain(w.__ref),w},t.prototype.processSelectionSet=function(r){var e=this,i=r.dataId,o=r.result,s=r.selectionSet,a=r.context,l=r.mergeTree,c=this.cache.policies,d=Object.create(null),f=i&&c.rootTypenamesById[i]||wD(o,s,a.fragmentMap)||i&&a.store.get(i,"__typename");"string"==typeof f&&(d.__typename=f);var v=function(){var we=c5(arguments,d,a.variables);if(ec(we.from)){var je=a.incomingById.get(we.from.__ref);if(je){var tt=c.readField(ni(ni({},we),{from:je.storeObject}),a);if(void 0!==tt)return tt}}return c.readField(we,a)},w=new Set;this.flattenFields(s,o,a,f).forEach(function(we,je){var tt,nt=gv(je),rt=o[nt];if(w.add(je),void 0!==rt){var lt=c.getStoreFieldName({typename:f,fieldName:je.name.value,field:je,variables:we.variables}),bt=p5(l,lt),Wt=e.processFieldValue(rt,je,je.selectionSet?u5(we,!1,!1):we,bt),Zt=void 0;je.selectionSet&&(ec(Wt)||fy(Wt))&&(Zt=v("__typename",Wt));var en=c.getMergeFunction(f,je.name.value,Zt);en?bt.info={field:je,typename:f,merge:en}:vy(l,lt),d=we.merge(d,((tt={})[lt]=Wt,tt))}else!1!==globalThis.__DEV__&&!we.clientOnly&&!we.deferred&&!nx.added(je)&&!c.getReadFunction(f,je.name.value)&&!1!==globalThis.__DEV__&&ps.error(13,gv(je),o)});try{var x=c.identify(o,{typename:f,selectionSet:s,fragmentMap:a.fragmentMap,storeObject:d,readField:v}),M=x[1];i=i||x[0],M&&(d=a.merge(d,M))}catch(we){if(!i)throw we}if("string"==typeof i){var F=lb(i),re=a.written[i]||(a.written[i]=[]);if(re.indexOf(s)>=0||(re.push(s),this.reader&&this.reader.isFresh(o,F,s,a)))return F;var pe=a.incomingById.get(i);return pe?(pe.storeObject=a.merge(pe.storeObject,d),pe.mergeTree=IR(pe.mergeTree,l),w.forEach(function(we){return pe.fieldNodeSet.add(we)})):a.incomingById.set(i,{storeObject:d,mergeTree:cx(l)?void 0:l,fieldNodeSet:w}),F}return d},t.prototype.processFieldValue=function(r,e,i,o){var s=this;return e.selectionSet&&null!==r?xu(r)?r.map(function(a,l){var c=s.processFieldValue(a,e,i,p5(o,l));return vy(o,l),c}):this.processSelectionSet({result:r,selectionSet:e.selectionSet,context:i,mergeTree:o}):!1!==globalThis.__DEV__?FD(r):r},t.prototype.flattenFields=function(r,e,i,o){void 0===o&&(o=wD(e,r,i.fragmentMap));var s=new Map,a=this.cache.policies,l=new mv(!1);return function c(d,f){var v=l.lookup(d,f.clientOnly,f.deferred);v.visited||(v.visited=!0,d.selections.forEach(function(w){if(ww(w,i.variables)){var x=f.clientOnly,I=f.deferred;if(!(x&&I)&&j_(w.directives)&&w.directives.forEach(function(re){var pe=re.name.value;if("client"===pe&&(x=!0),"defer"===pe){var we=Cw(re,i.variables);(!we||!1!==we.if)&&(I=!0)}}),B_(w)){var M=s.get(w);M&&(x=x&&M.clientOnly,I=I&&M.deferred),s.set(w,u5(i,x,I))}else{var F=$S(w,i.lookupFragment);if(!F&&w.kind===mu.FRAGMENT_SPREAD)throw Qp(14,w.name.value);F&&a.fragmentMatches(F,o,e,i.variables)&&c(F.selectionSet,u5(i,x,I))}}}))}(r,i),s},t.prototype.applyMerges=function(r,e,i,o,s){var a,l=this;if(r.map.size&&!ec(i)){var c=xu(i)||!ec(e)&&!fy(e)?void 0:e,d=i;c&&!s&&(s=[ec(c)?c.__ref:c]);var f,v=function(w,x){return xu(w)?"number"==typeof x?w[x]:void 0:o.store.getFieldValue(w,String(x))};r.map.forEach(function(w,x){var I=v(c,x),M=v(d,x);if(void 0!==M){s&&s.push(x);var F=l.applyMerges(w,I,M,o,s);F!==M&&(f=f||new Map).set(x,F),s&&ps(s.pop()===x)}}),f&&(i=xu(d)?d.slice(0):ni({},d),f.forEach(function(w,x){i[x]=w}))}return r.info?this.cache.policies.runMergeFunction(e,i,r.info,o,s&&(a=o.store).getStorage.apply(a,s)):i},t}(),lx=[];function p5(t,r){var e=t.map;return e.has(r)||e.set(r,lx.pop()||{map:new Map}),e.get(r)}function IR(t,r){if(t===r||!r||cx(r))return t;if(!t||cx(t))return r;var e=t.info&&r.info?ni(ni({},t.info),r.info):t.info||r.info,i=t.map.size&&r.map.size,s={info:e,map:i?new Map:t.map.size?t.map:r.map};if(i){var a=new Set(r.map.keys());t.map.forEach(function(l,c){s.map.set(c,IR(l,r.map.get(c))),a.delete(c)}),a.forEach(function(l){s.map.set(l,IR(r.map.get(l),t.map.get(l)))})}return s}function cx(t){return!t||!(t.info||t.map.size)}function vy(t,r){var e=t.map,i=e.get(r);i&&cx(i)&&(lx.push(i),e.delete(r))}var AR=new Set,LD=function(t){function r(e){void 0===e&&(e={});var i=t.call(this)||this;return i.watches=new Set,i.addTypenameTransform=new tx(nx),i.assumeImmutableResults=!0,i.makeVar=ER,i.txCount=0,i.config=function uH(t){return xw(WN,t)}(e),i.addTypename=!!i.config.addTypename,i.policies=new yQ({cache:i,dataIdFromObject:i.config.dataIdFromObject,possibleTypes:i.config.possibleTypes,typePolicies:i.config.typePolicies}),i.init(),i}return zf(r,t),r.prototype.init=function(){var e=this.data=new vb.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},r.prototype.resetResultCache=function(e){var i=this,o=this.storeReader,s=this.config.fragments;this.storeWriter=new d5(this,this.storeReader=new mH({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:AD(this.config),canon:e?void 0:o&&o.canon,fragments:s}),s),this.maybeBroadcastWatch=yw(function(a,l){return i.broadcastWatch(a,l)},{max:this.config.resultCacheMaxSize||G_["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(a){var l=a.optimistic?i.optimisticData:i.data;if(OD(l))return l.makeCacheKey(a.query,a.callback,ay({optimistic:a.optimistic,id:a.id,variables:a.variables}))}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(a){return a.resetCaching()})},r.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},r.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},r.prototype.read=function(e){var i=e.returnPartialData,o=void 0!==i&&i;try{return this.storeReader.diffQueryAgainstStore(ni(ni({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:o})).result||null}catch(s){if(s instanceof CR)return null;throw s}},r.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{! --this.txCount&&!1!==e.broadcast&&this.broadcastWatches()}},r.prototype.modify=function(e){if(Ip.call(e,"id")&&!e.id)return!1;var i=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,i.modify(e.id||"ROOT_QUERY",e.fields)}finally{! --this.txCount&&!1!==e.broadcast&&this.broadcastWatches()}},r.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore(ni(ni({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},r.prototype.watch=function(e){var i=this;return this.watches.size||function vH(t){Ew(t).vars.forEach(function(r){return r.attachCache(t)})}(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){i.watches.delete(e)&&!i.watches.size&&xR(i),i.maybeBroadcastWatch.forget(e)}},r.prototype.gc=function(e){var i;ay.reset(),gb.reset(),this.addTypenameTransform.resetCache(),null===(i=this.config.fragments)||void 0===i||i.resetCaches();var o=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),o},r.prototype.retain=function(e,i){return(i?this.optimisticData:this.data).retain(e)},r.prototype.release=function(e,i){return(i?this.optimisticData:this.data).release(e)},r.prototype.identify=function(e){if(ec(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(i){!1!==globalThis.__DEV__&&ps.warn(i)}},r.prototype.evict=function(e){if(!e.id){if(Ip.call(e,"id"))return!1;e=ni(ni({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{! --this.txCount&&!1!==e.broadcast&&this.broadcastWatches()}},r.prototype.reset=function(e){var i=this;return this.init(),ay.reset(),e&&e.discardWatches?(this.watches.forEach(function(o){return i.maybeBroadcastWatch.forget(o)}),this.watches.clear(),xR(this)):this.broadcastWatches(),Promise.resolve()},r.prototype.removeOptimistic=function(e){var i=this.optimisticData.removeLayer(e);i!==this.optimisticData&&(this.optimisticData=i,this.broadcastWatches())},r.prototype.batch=function(e){var d,i=this,o=e.update,s=e.optimistic,a=void 0===s||s,l=e.removeOptimistic,c=e.onWatchUpdated,f=function(w){var I=i.data,M=i.optimisticData;++i.txCount,w&&(i.data=i.optimisticData=w);try{return d=o(i)}finally{--i.txCount,i.data=I,i.optimisticData=M}},v=new Set;return c&&!this.txCount&&this.broadcastWatches(ni(ni({},e),{onWatchUpdated:function(w){return v.add(w),!1}})),"string"==typeof a?this.optimisticData=this.optimisticData.addLayer(a,f):!1===a?f(this.data):f(),"string"==typeof l&&(this.optimisticData=this.optimisticData.removeLayer(l)),c&&v.size?(this.broadcastWatches(ni(ni({},e),{onWatchUpdated:function(w,x){var I=c.call(this,w,x);return!1!==I&&v.delete(w),I}})),v.size&&v.forEach(function(w){return i.maybeBroadcastWatch.dirty(w)})):this.broadcastWatches(e),d},r.prototype.performTransaction=function(e,i){return this.batch({update:e,optimistic:i||null!==i})},r.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},r.prototype.fragmentMatches=function(e,i){return this.policies.fragmentMatches(e,i)},r.prototype.lookupFragment=function(e){var i;return(null===(i=this.config.fragments)||void 0===i?void 0:i.lookup(e))||null},r.prototype.broadcastWatches=function(e){var i=this;this.txCount||this.watches.forEach(function(o){return i.maybeBroadcastWatch(o,e)})},r.prototype.addFragmentsToDocument=function(e){var i=this.config.fragments;return i?i.transform(e):e},r.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},r.prototype.broadcastWatch=function(e,i){var o=e.lastDiff,s=this.diff(e);i&&(e.optimistic&&"string"==typeof i.optimistic&&(s.fromOptimisticTransaction=!0),i.onWatchUpdated&&!1===i.onWatchUpdated.call(this,e,s,o))||(!o||!iu(o.result,s.result))&&e.callback(e.lastDiff=s,o)},r}(DD);!1!==globalThis.__DEV__&&(LD.prototype.getMemoryInternals=nN);var SH=Object.defineProperty,ND=Object.getOwnPropertySymbols,RR=Object.prototype.hasOwnProperty,GD=Object.prototype.propertyIsEnumerable,xH=(t,r,e)=>r in t?SH(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e;function lp(t){return null==t||""===t||Array.isArray(t)&&0===t.length||!(t instanceof Date)&&"object"==typeof t&&0===Object.keys(t).length}function OR(t,r,e=new WeakSet){if(t===r)return!0;if(!t||!r||"object"!=typeof t||"object"!=typeof r||e.has(t)||e.has(r))return!1;e.add(t).add(r);let s,a,l,i=Array.isArray(t),o=Array.isArray(r);if(i&&o){if(a=t.length,a!=r.length)return!1;for(s=a;0!=s--;)if(!OR(t[s],r[s],e))return!1;return!0}if(i!=o)return!1;let c=t instanceof Date,d=r instanceof Date;if(c!=d)return!1;if(c&&d)return t.getTime()==r.getTime();let f=t instanceof RegExp,v=r instanceof RegExp;if(f!=v)return!1;if(f&&v)return t.toString()==r.toString();let w=Object.keys(t);if(a=w.length,a!==Object.keys(r).length)return!1;for(s=a;0!=s--;)if(!Object.prototype.hasOwnProperty.call(r,w[s]))return!1;for(s=a;0!=s--;)if(l=w[s],!OR(t[l],r[l],e))return!1;return!0}function BD(t,r){return OR(t,r)}function FR(t){return!!(t&&t.constructor&&t.call&&t.apply)}function qs(t){return!lp(t)}function ml(t,r){if(!t||!r)return null;try{const e=t[r];if(qs(e))return e}catch{}if(Object.keys(t).length){if(FR(r))return r(t);if(-1===r.indexOf("."))return t[r];{let e=r.split("."),i=t;for(let o=0,s=e.length;o<s;++o){if(null==i)return null;i=i[e[o]]}return i}}return null}function id(t,r,e){return e?ml(t,e)===ml(r,e):BD(t,r)}function Jp(t,r){let e=-1;if(qs(t))try{e=t.findLastIndex(r)}catch{e=t.lastIndexOf([...t].reverse().find(r))}return e}function dg(t,r=!0){return t instanceof Object&&t.constructor===Object&&(r||0!==Object.keys(t).length)}function pg(t,...r){return FR(t)?t(...r):t}function yv(t,r=!0){return"string"==typeof t&&(r||""!==t)}function m5(t){return yv(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function g5(t,r="",e={}){const i=m5(r).split("."),o=i.shift();return o?dg(t)?g5(pg(t[Object.keys(t).find(s=>m5(s)===o)||""],e),i.join("."),e):void 0:pg(t,e)}function PR(t,r=!0){return Array.isArray(t)&&(r||0!==t.length)}function H_(t){return t instanceof Date&&t.constructor===Date}function rd(t=""){return qs(t)&&1===t.length&&!!t.match(/\S| /)}function Im(t,r){if(r){const e=r.test(t);return r.lastIndex=0,e}return!1}function jD(t){return t&&t.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":")}function qf(t){if(t&&/[\xC0-\xFF\u0100-\u017E]/.test(t)){const e={A:/[\xC0-\xC5\u0100\u0102\u0104]/g,AE:/[\xC6]/g,C:/[\xC7\u0106\u0108\u010A\u010C]/g,D:/[\xD0\u010E\u0110]/g,E:/[\xC8-\xCB\u0112\u0114\u0116\u0118\u011A]/g,G:/[\u011C\u011E\u0120\u0122]/g,H:/[\u0124\u0126]/g,I:/[\xCC-\xCF\u0128\u012A\u012C\u012E\u0130]/g,IJ:/[\u0132]/g,J:/[\u0134]/g,K:/[\u0136]/g,L:/[\u0139\u013B\u013D\u013F\u0141]/g,N:/[\xD1\u0143\u0145\u0147\u014A]/g,O:/[\xD2-\xD6\xD8\u014C\u014E\u0150]/g,OE:/[\u0152]/g,R:/[\u0154\u0156\u0158]/g,S:/[\u015A\u015C\u015E\u0160]/g,T:/[\u0162\u0164\u0166]/g,U:/[\xD9-\xDC\u0168\u016A\u016C\u016E\u0170\u0172]/g,W:/[\u0174]/g,Y:/[\xDD\u0176\u0178]/g,Z:/[\u0179\u017B\u017D]/g,a:/[\xE0-\xE5\u0101\u0103\u0105]/g,ae:/[\xE6]/g,c:/[\xE7\u0107\u0109\u010B\u010D]/g,d:/[\u010F\u0111]/g,e:/[\xE8-\xEB\u0113\u0115\u0117\u0119\u011B]/g,g:/[\u011D\u011F\u0121\u0123]/g,i:/[\xEC-\xEF\u0129\u012B\u012D\u012F\u0131]/g,ij:/[\u0133]/g,j:/[\u0135]/g,k:/[\u0137,\u0138]/g,l:/[\u013A\u013C\u013E\u0140\u0142]/g,n:/[\xF1\u0144\u0146\u0148\u014B]/g,p:/[\xFE]/g,o:/[\xF2-\xF6\xF8\u014D\u014F\u0151]/g,oe:/[\u0153]/g,r:/[\u0155\u0157\u0159]/g,s:/[\u015B\u015D\u015F\u0161]/g,t:/[\u0163\u0165\u0167]/g,u:/[\xF9-\xFC\u0169\u016B\u016D\u016F\u0171\u0173]/g,w:/[\u0175]/g,y:/[\xFD\xFF\u0177]/g,z:/[\u017A\u017C\u017E]/g};for(let i in e)t=t.replace(e[i],i)}return t}function NR(t){return yv(t)?t.replace(/(_)/g,"-").replace(/[A-Z]/g,(r,e)=>0===e?r:"-"+r.toLowerCase()).toLowerCase():t}function GR(t){return yv(t)?t.replace(/[A-Z]/g,(r,e)=>0===e?r:"."+r.toLowerCase()).toLowerCase():t}var OH=Object.defineProperty,b5=Object.defineProperties,FH=Object.getOwnPropertyDescriptors,ux=Object.getOwnPropertySymbols,dx=Object.prototype.hasOwnProperty,kw=Object.prototype.propertyIsEnumerable,px=(t,r,e)=>r in t?OH(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e,gu=(t,r)=>{for(var e in r||(r={}))dx.call(r,e)&&px(t,e,r[e]);if(ux)for(var e of ux(r))kw.call(r,e)&&px(t,e,r[e]);return t},_b=(t,r)=>b5(t,FH(r)),_y=(t,r)=>{var e={};for(var i in t)dx.call(t,i)&&r.indexOf(i)<0&&(e[i]=t[i]);if(null!=t&&ux)for(var i of ux(t))r.indexOf(i)<0&&kw.call(t,i)&&(e[i]=t[i]);return e},xQ=function RH(){const t=new Map;return{on(r,e){let i=t.get(r);return i?i.push(e):i=[e],t.set(r,i),this},off(r,e){let i=t.get(r);return i&&i.splice(i.indexOf(e)>>>0,1),this},emit(r,e){let i=t.get(r);i&&i.slice().map(o=>{o(e)})},clear(){t.clear()}}}(),bv=xQ;function PH(t,r){PR(t)?t.push(...r||[]):dg(t)&&Object.assign(t,r)}function Iw(t="",r=""){return function DQ(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}(`${yv(t,!1)&&yv(r,!1)?`${t}-`:t}${r}`)}function NH(t="",r=""){return`--${Iw(t,r)}`}function GH(t,r="",e="",i=[],o){if(yv(t)){const s=/{([^}]*)}/g,a=t.trim();if(function kQ(t=""){return((t.match(/{/g)||[]).length+(t.match(/}/g)||[]).length)%2!=0}(a))return;if(Im(a,s)){const l=a.replaceAll(s,f=>{const w=f.replace(/{|}/g,"").split(".").filter(x=>!i.some(I=>Im(x,I)));return`var(${NH(e,NR(w.join("-")))}${qs(o)?`, ${o}`:""})`}),c=/(\d+\s+[\+\-\*\/]\s+\d+)/g;return Im(l.replace(/var\([^)]+\)/g,"0"),c)?`calc(${l})`:l}return a}if(function wQ(t){return qs(t)&&!isNaN(t)}(t))return t}function hx(t,r){return t?`${t}{${r}}`:""}var yb=(...t)=>Aw(Gl.getTheme(),...t),Aw=(t={},r,e,i)=>{if(r){const{variable:o,options:s}=Gl.defaults||{},{prefix:a,transform:l}=t?.options||s||{},d=Im(r,/{([^}]*)}/g)?r:`{${r}}`;return"value"===i||lp(i)&&"strict"===l?Gl.getTokenValue(r):GH(d,void 0,a,[o.excludedKeyRegex],e)}return""};var hg={regex:{rules:{class:{pattern:/^\.([a-zA-Z][\w-]*)$/,resolve(t){return{type:"class",selector:t,matched:this.pattern.test(t.trim())}}},attr:{pattern:/^\[(.*)\]$/,resolve(t){return{type:"attr",selector:`:root${t}`,matched:this.pattern.test(t.trim())}}},media:{pattern:/^@media (.*)$/,resolve(t){return{type:"media",selector:`${t}{:root{[CSS]}}`,matched:this.pattern.test(t.trim())}}},system:{pattern:/^system$/,resolve(t){return{type:"system",selector:"@media (prefers-color-scheme: dark){:root{[CSS]}}",matched:this.pattern.test(t.trim())}}},custom:{resolve:t=>({type:"custom",selector:t,matched:!0})}},resolve(t){const r=Object.keys(this.rules).filter(e=>"custom"!==e).map(e=>this.rules[e]);return[t].flat().map(e=>{var i;return null!=(i=r.map(o=>o.resolve(e)).find(o=>o.matched))?i:this.rules.custom.resolve(e)})}},_toVariables:(t,r)=>function UH(t,r={}){const e=Gl.defaults.variable,{prefix:i=e.prefix,selector:o=e.selector,excludedKeyRegex:s=e.excludedKeyRegex}=r,a=(d,f="")=>Object.entries(d).reduce((v,[w,x])=>{const I=Im(w,s)?Iw(f):Iw(f,NR(w)),M=function C5(t){return dg(t)&&t.hasOwnProperty("value")&&t.hasOwnProperty("type")?t.value:t}(x);if(dg(M)){const{variables:F,tokens:re}=a(M,I);PH(v.tokens,re),PH(v.variables,F)}else v.tokens.push((i?I.replace(`${i}-`,""):I).replaceAll("-",".")),function AQ(t,r,e){yv(r,!1)&&t.push(`${r}:${e};`)}(v.variables,NH(I),GH(M,I,i,[s]));return v},{variables:[],tokens:[]}),{variables:l,tokens:c}=a(t,i);return{value:l,tokens:c,declarations:l.join(""),css:hx(o,l.join(""))}}(t,{prefix:r?.prefix}),getCommon({name:t="",theme:r={},set:i,defaults:o}){var s,a,l,c,d,f,v;const{preset:w,options:x}=r;let I,M,F,re,pe,we,je;if(qs(w)&&"strict"!==x.transform){const{primitive:tt,semantic:nt,extend:rt}=w,lt=nt||{},{colorScheme:bt}=lt,Wt=_y(lt,["colorScheme"]),Zt=rt||{},{colorScheme:en}=Zt,ci=_y(Zt,["colorScheme"]),Wi=bt||{},{dark:ki}=Wi,Xr=_y(Wi,["dark"]),Lr=en||{},{dark:Jo}=Lr,cr=_y(Lr,["dark"]),is=qs(tt)?this._toVariables({primitive:tt},x):{},Ji=qs(Wt)?this._toVariables({semantic:Wt},x):{},hn=qs(Xr)?this._toVariables({light:Xr},x):{},hi=qs(ki)?this._toVariables({dark:ki},x):{},Tn=qs(ci)?this._toVariables({semantic:ci},x):{},xn=qs(cr)?this._toVariables({light:cr},x):{},Xi=qs(Jo)?this._toVariables({dark:Jo},x):{},[Ao,lo]=[null!=(s=is.declarations)?s:"",is.tokens],[co,Ar]=[null!=(a=Ji.declarations)?a:"",Ji.tokens||[]],[Va,wn]=[null!=(l=hn.declarations)?l:"",hn.tokens||[]],[Tc,il]=[null!=(c=hi.declarations)?c:"",hi.tokens||[]],[Sc,rl]=[null!=(d=Tn.declarations)?d:"",Tn.tokens||[]],[Go,yd]=[null!=(f=xn.declarations)?f:"",xn.tokens||[]],[Bm,Qv]=[null!=(v=Xi.declarations)?v:"",Xi.tokens||[]];I=this.transformCSS(t,Ao,"light","variable",x,i,o),M=lo,F=`${this.transformCSS(t,`${co}${Va}`,"light","variable",x,i,o)}${this.transformCSS(t,`${Tc}`,"dark","variable",x,i,o)}`,re=[...new Set([...Ar,...wn,...il])],pe=`${this.transformCSS(t,`${Sc}${Go}color-scheme:light`,"light","variable",x,i,o)}${this.transformCSS(t,`${Bm}color-scheme:dark`,"dark","variable",x,i,o)}`,we=[...new Set([...rl,...yd,...Qv])],je=pg(w.css,{dt:yb})}return{primitive:{css:I,tokens:M},semantic:{css:F,tokens:re},global:{css:pe,tokens:we},style:je}},getPreset({name:t="",preset:r={},options:e,set:o,defaults:s,selector:a}){var l,c,d;let f,v,w;if(qs(r)&&"strict"!==e.transform){const x=t.replace("-directive",""),I=r,{colorScheme:M,extend:F,css:re}=I,pe=_y(I,["colorScheme","extend","css"]),we=F||{},{colorScheme:je}=we,tt=_y(we,["colorScheme"]),nt=M||{},{dark:rt}=nt,lt=_y(nt,["dark"]),bt=je||{},{dark:Wt}=bt,Zt=_y(bt,["dark"]),en=qs(pe)?this._toVariables({[x]:gu(gu({},pe),tt)},e):{},ci=qs(lt)?this._toVariables({[x]:gu(gu({},lt),Zt)},e):{},Wi=qs(rt)?this._toVariables({[x]:gu(gu({},rt),Wt)},e):{},[ki,Xr]=[null!=(l=en.declarations)?l:"",en.tokens||[]],[Lr,Jo]=[null!=(c=ci.declarations)?c:"",ci.tokens||[]],[cr,is]=[null!=(d=Wi.declarations)?d:"",Wi.tokens||[]];f=`${this.transformCSS(x,`${ki}${Lr}`,"light","variable",e,o,s,a)}${this.transformCSS(x,cr,"dark","variable",e,o,s,a)}`,v=[...new Set([...Xr,...Jo,...is])],w=pg(re,{dt:yb})}return{css:f,tokens:v,style:w}},getPresetC({name:t="",theme:r={},params:e,set:i,defaults:o}){var s;const{preset:a,options:l}=r,c=null==(s=a?.components)?void 0:s[t];return this.getPreset({name:t,preset:c,options:l,params:e,set:i,defaults:o})},getPresetD({name:t="",theme:r={},params:e,set:i,defaults:o}){var s;const a=t.replace("-directive",""),{preset:l,options:c}=r,d=null==(s=l?.directives)?void 0:s[a];return this.getPreset({name:a,preset:d,options:c,params:e,set:i,defaults:o})},applyDarkColorScheme:t=>!("none"===t.darkModeSelector||!1===t.darkModeSelector),getColorSchemeOption(t,r){var e;return this.applyDarkColorScheme(t)?this.regex.resolve(!0===t.darkModeSelector?r.options.darkModeSelector:null!=(e=t.darkModeSelector)?e:r.options.darkModeSelector):[]},getLayerOrder(t,r={},e,i){const{cssLayer:o}=r;return o?`@layer ${pg(o.order||"primeui",e)}`:""},getCommonStyleSheet({name:t="",theme:r={},params:e,props:i={},set:o,defaults:s}){const a=this.getCommon({name:t,theme:r,params:e,set:o,defaults:s}),l=Object.entries(i).reduce((c,[d,f])=>c.push(`${d}="${f}"`)&&c,[]).join(" ");return Object.entries(a||{}).reduce((c,[d,f])=>{if(f?.css){const v=jD(f?.css);c.push(`<style type="text/css" data-primevue-style-id="${d}-variables" ${l}>${v}</style>`)}return c},[]).join("")},getStyleSheet({name:t="",theme:r={},params:e,props:i={},set:o,defaults:s}){var a;const l={name:t,theme:r,params:e,set:o,defaults:s},c=null==(a=t.includes("-directive")?this.getPresetD(l):this.getPresetC(l))?void 0:a.css,d=Object.entries(i).reduce((f,[v,w])=>f.push(`${v}="${w}"`)&&f,[]).join(" ");return c?`<style type="text/css" data-primevue-style-id="${t}-variables" ${d}>${jD(c)}</style>`:""},createTokens(t={},r,e="",i="",o={}){return Object.entries(t).forEach(([s,a])=>{const l=Im(s,r.variable.excludedKeyRegex)?e:e?`${e}.${GR(s)}`:GR(s),c=i?`${i}.${s}`:s;dg(a)?this.createTokens(a,r,l,c,o):(o[l]||(o[l]={paths:[],computed(d,f={}){var v,w;return 1===this.paths.length?null==(v=this.paths[0])?void 0:v.computed(this.paths[0].scheme,f.binding):d&&"none"!==d?null==(w=this.paths.find(x=>x.scheme===d))?void 0:w.computed(d,f.binding):this.paths.map(x=>x.computed(x.scheme,f[x.scheme]))}}),o[l].paths.push({path:c,value:a,scheme:c.includes("colorScheme.light")?"light":c.includes("colorScheme.dark")?"dark":"none",computed(d,f={}){const v=/{([^}]*)}/g;let w=a;if(f.name=this.path,f.binding||(f.binding={}),Im(a,v)){const I=a.trim().replaceAll(v,re=>{var pe;const we=re.replace(/{|}/g,""),je=null==(pe=o[we])?void 0:pe.computed(d,f);return PR(je)&&2===je.length?`light-dark(${je[0].value},${je[1].value})`:je?.value}),M=/(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g;w=Im(I.replace(/var\([^)]+\)/g,"0"),M)?`calc(${I})`:I}return lp(f.binding)&&delete f.binding,{colorScheme:d,path:this.path,paths:f,value:w.includes("undefined")?void 0:w}}}))}),o},getTokenValue(t,r,e){var i;const s=r.split(".").filter(f=>!Im(f.toLowerCase(),e.variable.excludedKeyRegex)).join("."),a=r.includes("colorScheme.light")?"light":r.includes("colorScheme.dark")?"dark":void 0,l=[null==(i=t[s])?void 0:i.computed(a)].flat().filter(c=>c);return 1===l.length?l[0].value:l.reduce((c={},d)=>{const f=d,{colorScheme:v}=f,w=_y(f,["colorScheme"]);return c[v]=w,c},void 0)},getSelectorRule:(t,r,e,i)=>"class"===e||"attr"===e?hx(qs(r)?`${t}${r},${t} ${r}`:t,i):hx(t,qs(r)?hx(r,i):i),transformCSS(t,r,e,i,o={},s,a,l){if(qs(r)){const{cssLayer:c}=o;if("style"!==i){const d=this.getColorSchemeOption(o,a);r="dark"===e?d.reduce((f,{type:v,selector:w})=>(qs(w)&&(f+=w.includes("[CSS]")?w.replace("[CSS]",r):this.getSelectorRule(w,l,v,r)),f),""):hx(l??":root",r)}if(c){const d={name:"primeui",order:"primeui"};dg(c)&&(d.name=pg(c.name,{name:t,type:i})),qs(d.name)&&(r=hx(`@layer ${d.name}`,r),s?.layerNames(d.name))}return r}return""}},Gl={defaults:{variable:{prefix:"p",selector:":root",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states|extend|css)$/gi},options:{prefix:"p",darkModeSelector:"system",cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(t={}){const{theme:r}=t;r&&(this._theme=_b(gu({},r),{options:gu(gu({},this.defaults.options),r.options)}),this._tokens=hg.createTokens(this.preset,this.defaults),this.clearLoadedStyleNames())},get theme(){return this._theme},get preset(){var t;return(null==(t=this.theme)?void 0:t.preset)||{}},get options(){var t;return(null==(t=this.theme)?void 0:t.options)||{}},get tokens(){return this._tokens},getTheme(){return this.theme},setTheme(t){this.update({theme:t}),bv.emit("theme:change",t)},getPreset(){return this.preset},setPreset(t){this._theme=_b(gu({},this.theme),{preset:t}),this._tokens=hg.createTokens(t,this.defaults),this.clearLoadedStyleNames(),bv.emit("preset:change",t),bv.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(t){this._theme=_b(gu({},this.theme),{options:t}),this.clearLoadedStyleNames(),bv.emit("options:change",t),bv.emit("theme:change",this.theme)},getLayerNames(){return[...this._layerNames]},setLayerNames(t){this._layerNames.add(t)},getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(t){return this._loadedStyleNames.has(t)},setLoadedStyleName(t){this._loadedStyleNames.add(t)},deleteLoadedStyleName(t){this._loadedStyleNames.delete(t)},clearLoadedStyleNames(){this._loadedStyleNames.clear()},getTokenValue(t){return hg.getTokenValue(this.tokens,t,this.defaults)},getCommon(t="",r){return hg.getCommon({name:t,theme:this.theme,params:r,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(t="",r){const e={name:t,theme:this.theme,params:r,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return hg.getPresetC(e)},getDirective(t="",r){const e={name:t,theme:this.theme,params:r,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return hg.getPresetD(e)},getCustomPreset(t="",r,e,i){const o={name:t,preset:r,options:this.options,selector:e,params:i,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return hg.getPreset(o)},getLayerOrderCSS(t=""){return hg.getLayerOrder(t,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(t="",r,e="style",i){return hg.transformCSS(t,r,i,e,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(t="",r,e={}){return hg.getCommonStyleSheet({name:t,theme:this.theme,params:r,props:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(t,r,e={}){return hg.getStyleSheet({name:t,theme:this.theme,params:r,props:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},onStyleMounted(t){this._loadingStyles.add(t)},onStyleUpdated(t){this._loadingStyles.add(t)},onStyleLoaded(t,{name:r}){this._loadingStyles.size&&(this._loadingStyles.delete(r),bv.emit(`theme:${r}:load`,t),!this._loadingStyles.size&&bv.emit("theme:load"))}},Fc=b(1985),mx=b(8359);class dJ extends mx.yU{constructor(r,e){super()}schedule(r,e=0){return this}}const zR={setInterval(t,r,...e){const{delegate:i}=zR;return i?.setInterval?i.setInterval(t,r,...e):setInterval(t,r,...e)},clearInterval(t){const{delegate:r}=zR;return(r?.clearInterval||clearInterval)(t)},delegate:void 0};var pJ=b(7908);class AU extends dJ{constructor(r,e){super(r,e),this.scheduler=r,this.work=e,this.pending=!1}schedule(r,e=0){var i;if(this.closed)return this;this.state=r;const o=this.id,s=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(s,o,e)),this.pending=!0,this.delay=e,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(s,this.id,e),this}requestAsyncId(r,e,i=0){return zR.setInterval(r.flush.bind(r,this),i)}recycleAsyncId(r,e,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return e;null!=e&&zR.clearInterval(e)}execute(r,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(r,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(r,e){let o,i=!1;try{this.work(r)}catch(s){i=!0,o=s||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){const{id:r,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,(0,pJ.o)(i,this),null!=r&&(this.id=this.recycleAsyncId(e,r,null)),this.delay=null,super.unsubscribe()}}}const p={now:()=>(p.delegate||Date).now(),delegate:void 0};class h{constructor(r,e=h.now){this.schedulerActionCtor=r,this.now=e}schedule(r,e=0,i){return new this.schedulerActionCtor(this,r).schedule(i,e)}}h.now=p.now;class g extends h{constructor(r,e=h.now){super(r,e),this.actions=[],this._active=!1}flush(r){const{actions:e}=this;if(this._active)return void e.push(r);let i;this._active=!0;do{if(i=r.execute(r.state,r.delay))break}while(r=e.shift());if(this._active=!1,i){for(;r=e.shift();)r.unsubscribe();throw i}}}const A=new class S extends g{}(class u extends AU{constructor(r,e){super(r,e),this.scheduler=r,this.work=e}schedule(r,e=0){return e>0?super.schedule(r,e):(this.delay=e,this.state=r,this.scheduler.flush(this),this)}execute(r,e){return e>0||this.closed?super.execute(r,e):this._execute(r,e)}requestAsyncId(r,e,i=0){return null!=i&&i>0||null==i&&this.delay>0?super.requestAsyncId(r,e,i):(r.flush(this),0)}});var ce=b(3494);const Ce=t=>t&&"number"==typeof t.length&&"function"!=typeof t;var Ye=b(8071);function at(t){return(0,Ye.T)(t?.then)}function xt(t){return(0,Ye.T)(t[ce.s])}function un(t){return Symbol.asyncIterator&&(0,Ye.T)(t?.[Symbol.asyncIterator])}function fn(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Bi=function Wn(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Fr(t){return(0,Ye.T)(t?.[Bi])}function Br(t){return function a9(t,r,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,i=e.apply(t,r||[]),s=[];return o=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),l("next"),l("throw"),l("return",function a(x){return function(I){return Promise.resolve(I).then(x,v)}}),o[Symbol.asyncIterator]=function(){return this},o;function l(x,I){i[x]&&(o[x]=function(M){return new Promise(function(F,re){s.push([x,M,F,re])>1||c(x,M)})},I&&(o[x]=I(o[x])))}function c(x,I){try{!function d(x){x.value instanceof fv?Promise.resolve(x.value.v).then(f,v):w(s[0][2],x)}(i[x](I))}catch(M){w(s[0][3],M)}}function f(x){c("next",x)}function v(x){c("throw",x)}function w(x,I){x(I),s.shift(),s.length&&c(s[0][0],s[0][1])}}(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:i,done:o}=yield fv(e.read());if(o)return yield fv(void 0);yield yield fv(i)}}finally{e.releaseLock()}})}function Vi(t){return(0,Ye.T)(t?.getReader)}var Ms=b(5334);function Rs(t){if(t instanceof Fc.c)return t;if(null!=t){if(xt(t))return function Ya(t){return new Fc.c(r=>{const e=t[ce.s]();if((0,Ye.T)(e.subscribe))return e.subscribe(r);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(Ce(t))return function gd(t){return new Fc.c(r=>{for(let e=0;e<t.length&&!r.closed;e++)r.next(t[e]);r.complete()})}(t);if(at(t))return function uf(t){return new Fc.c(r=>{t.then(e=>{r.closed||(r.next(e),r.complete())},e=>r.error(e)).then(null,Ms.m)})}(t);if(un(t))return qR(t);if(Fr(t))return function Rw(t){return new Fc.c(r=>{for(const e of t)if(r.next(e),r.closed)return;r.complete()})}(t);if(Vi(t))return function Hhe(t){return qR(Br(t))}(t)}throw fn(t)}function qR(t){return new Fc.c(r=>{(function Uhe(t,r){var e,i,o,s;return hv(this,void 0,void 0,function*(){try{for(e=oD(t);!(i=yield e.next()).done;)if(r.next(i.value),r.closed)return}catch(a){o={error:a}}finally{try{i&&!i.done&&(s=e.return)&&(yield s.call(e))}finally{if(o)throw o.error}}r.complete()})})(t,r).catch(e=>r.error(e))})}function bb(t,r,e,i=0,o=!1){const s=r.schedule(function(){e(),o?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(s),!o)return s}var zd=b(9974),Dd=b(4360);function MU(t,r=0){return(0,zd.N)((e,i)=>{e.subscribe((0,Dd._)(i,o=>bb(i,t,()=>i.next(o),r),()=>bb(i,t,()=>i.complete(),r),o=>bb(i,t,()=>i.error(o),r)))})}function hJ(t,r=0){return(0,zd.N)((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),r))})}function fJ(t,r){if(!t)throw new Error("Iterable cannot be null");return new Fc.c(e=>{bb(e,r,()=>{const i=t[Symbol.asyncIterator]();bb(e,r,()=>{i.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function Pc(t,r){return r?function Xhe(t,r){if(null!=t){if(xt(t))return function $he(t,r){return Rs(t).pipe(hJ(r),MU(r))}(t,r);if(Ce(t))return function Whe(t,r){return new Fc.c(e=>{let i=0;return r.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}(t,r);if(at(t))return function Yhe(t,r){return Rs(t).pipe(hJ(r),MU(r))}(t,r);if(un(t))return fJ(t,r);if(Fr(t))return function zhe(t,r){return new Fc.c(e=>{let i;return bb(e,r,()=>{i=t[Bi](),bb(e,r,()=>{let o,s;try{({value:o,done:s}=i.next())}catch(a){return void e.error(a)}s?e.complete():e.next(o)},0,!0)}),()=>(0,Ye.T)(i?.return)&&i.return()})}(t,r);if(Vi(t))return function qhe(t,r){return fJ(Br(t),r)}(t,r)}throw fn(t)}(t,r):Rs(t)}var Lc=function(t){return t[t.loading=1]="loading",t[t.setVariables=2]="setVariables",t[t.fetchMore=3]="fetchMore",t[t.refetch=4]="refetch",t[t.poll=6]="poll",t[t.ready=7]="ready",t[t.error=8]="error",t}(Lc||{});function $D(t){return!!t&&t<7}function mJ(t,r){return r?r(t):uc.of()}function XR(t){return"function"==typeof t?new Ow(t):t}function N5(t){return t.request.length<=1}var Ow=function(){function t(r){r&&(this.request=r)}return t.empty=function(){return new t(function(){return uc.of()})},t.from=function(r){return 0===r.length?t.empty():r.map(XR).reduce(function(e,i){return e.concat(i)})},t.split=function(r,e,i){var a,o=XR(e),s=XR(i||new t(mJ));return a=N5(o)&&N5(s)?new t(function(l){return r(l)?o.request(l)||uc.of():s.request(l)||uc.of()}):new t(function(l,c){return r(l)?o.request(l,c)||uc.of():s.request(l,c)||uc.of()}),Object.assign(a,{left:o,right:s})},t.execute=function(r,e){return r.request(function Khe(t,r){var e=ni({},t);return Object.defineProperty(r,"setContext",{enumerable:!1,value:function(s){e=ni(ni({},e),"function"==typeof s?s(e):s)}}),Object.defineProperty(r,"getContext",{enumerable:!1,value:function(){return ni({},e)}}),r}(e.context,function Qhe(t){var r={variables:t.variables||{},extensions:t.extensions||{},operationName:t.operationName,query:t.query};return r.operationName||(r.operationName="string"!=typeof r.query?ub(r.query)||void 0:""),r}(function Jhe(t){for(var r=["query","operationName","variables","extensions","context"],e=0,i=Object.keys(t);e<i.length;e++){var o=i[e];if(r.indexOf(o)<0)throw Qp(46,o)}return t}(e))))||uc.of()},t.concat=function(r,e){var i=XR(r);if(N5(i))return!1!==globalThis.__DEV__&&ps.warn(38,i),i;var s,o=XR(e);return s=N5(o)?new t(function(a){return i.request(a,function(l){return o.request(l)||uc.of()})||uc.of()}):new t(function(a,l){return i.request(a,function(c){return o.request(c,l)||uc.of()})||uc.of()}),Object.assign(s,{left:i,right:o})},t.prototype.split=function(r,e,i){return this.concat(t.split(r,e,i||new t(mJ)))},t.prototype.concat=function(r){return t.concat(this,r)},t.prototype.request=function(r,e){throw Qp(39)},t.prototype.onError=function(r,e){if(e&&e.error)return e.error(r),!1;throw r},t.prototype.setOnError=function(r){return this.onError=r,this},t}(),RU=Ow.execute,OU=function(t,r){var e;try{e=JSON.stringify(t)}catch(o){var i=Qp(42,r,o.message);throw i.parseError=o,i}return e};function gJ(t){var r={next:function(){return t.read()}};return ED&&(r[Symbol.asyncIterator]=function(){return this}),r}function cfe(t){var r=t;if(function ife(t){return!!t.body}(t)&&(r=t.body),function ofe(t){return!(!ED||!t[Symbol.asyncIterator])}(r))return function efe(t){var r,e=t[Symbol.asyncIterator]();return(r={next:function(){return e.next()}})[Symbol.asyncIterator]=function(){return this},r}(r);if(function rfe(t){return!!t.getReader}(r))return gJ(r.getReader());if(function sfe(t){return!!t.stream}(r))return gJ(r.stream().getReader());if(function afe(t){return!!t.arrayBuffer}(r))return function nfe(t){var r=!1,e={next:function(){return r?Promise.resolve({value:void 0,done:!0}):(r=!0,new Promise(function(i,o){t.then(function(s){i({value:s,done:!1})}).catch(o)}))}};return ED&&(e[Symbol.asyncIterator]=function(){return this}),e}(r.arrayBuffer());if(function lfe(t){return!!t.pipe}(r))return function tfe(t){var r=null,e=null,i=!1,o=[],s=[];function a(v){if(!e){if(s.length){var w=s.shift();if(Array.isArray(w)&&w[0])return w[0]({value:v,done:!1})}o.push(v)}}function l(v){e=v,s.slice().forEach(function(x){x[1](v)}),!r||r()}function c(){i=!0,s.slice().forEach(function(w){w[0]({value:void 0,done:!0})}),!r||r()}r=function(){r=null,t.removeListener("data",a),t.removeListener("error",l),t.removeListener("end",c),t.removeListener("finish",c),t.removeListener("close",c)},t.on("data",a),t.on("error",l),t.on("end",c),t.on("finish",c),t.on("close",c);var f={next:function(){return function d(){return new Promise(function(v,w){return e?w(e):o.length?v({value:o.shift(),done:!1}):i?v({value:void 0,done:!0}):void s.push([v,w])})}()}};return ED&&(f[Symbol.asyncIterator]=function(){return this}),f}(r);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var vJ=function(t,r,e){var i=new Error(e);throw i.name="ServerError",i.response=t,i.statusCode=t.status,i.result=r,i},FU=Symbol();function _J(t){return t.hasOwnProperty("graphQLErrors")}var gx=function(t){function r(e){var i=e.graphQLErrors,o=e.protocolErrors,s=e.clientErrors,a=e.networkError,l=e.errorMessage,c=e.extraInfo,d=t.call(this,l)||this;return d.name="ApolloError",d.graphQLErrors=i||[],d.protocolErrors=o||[],d.clientErrors=s||[],d.networkError=a||null,d.message=l||function(t){var r=Dp(Dp(Dp([],t.graphQLErrors,!0),t.clientErrors,!0),t.protocolErrors,!0);return t.networkError&&r.push(t.networkError),r.map(function(e){return Lu(e)&&e.message||"Error message not found."}).join("\n")}(d),d.extraInfo=c,d.cause=Dp(Dp(Dp([a],i||[],!0),o||[],!0),s||[],!0).find(function(f){return!!f})||null,d.__proto__=r.prototype,d}return zf(r,t),r}(Error);function YD(t){return"incremental"in t}function ffe(t){return Lu(t)&&"payload"in t}function yJ(t,r){var e=t,i=new V_;return YD(r)&&j_(r.incremental)&&r.incremental.forEach(function(o){for(var s=o.data,a=o.path,l=a.length-1;l>=0;--l){var c=a[l],f=isNaN(+c)?{}:[];f[c]=s,s=f}e=i.merge(e,s)}),e}var bJ=Object.prototype.hasOwnProperty;function gfe(t){var r={};return t.split("\n").forEach(function(e){var i=e.indexOf(":");if(i>-1){var o=e.slice(0,i).trim().toLowerCase(),s=e.slice(i+1).trim();r[o]=s}}),r}function CJ(t,r){t.status>=300&&vJ(t,function(){try{return JSON.parse(r)}catch{return r}}(),"Response not successful: Received status code ".concat(t.status));try{return JSON.parse(r)}catch(o){var i=o;throw i.name="ServerParseError",i.response=t,i.statusCode=t.status,i.bodyText=r,i}}var Tfe={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},wJ=function(t,r){return r(t)};function PU(t){return new uc(function(r){r.error(t)})}var SJ=lg(function(){return fetch}),Dfe=function(t){void 0===t&&(t={});var r=t.uri,e=void 0===r?"/graphql":r,i=t.fetch,o=t.print,s=void 0===o?wJ:o,a=t.includeExtensions,l=t.preserveHeaderCase,c=t.useGETForQueries,d=t.includeUnusedVariables,f=void 0!==d&&d,v=ag(t,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&function(t){if(!t&&typeof fetch>"u")throw Qp(40)}(i||SJ);var w={http:{includeExtensions:a,preserveHeaderCase:l},options:v.fetchOptions,credentials:v.credentials,headers:v.headers};return new Ow(function(x){var I=function(t,r){return t.getContext().uri||("function"==typeof r?r(t):r||"/graphql")}(x,e),M=x.getContext(),F={};if(M.clientAwareness){var re=M.clientAwareness,pe=re.name,we=re.version;pe&&(F["apollographql-client-name"]=pe),we&&(F["apollographql-client-version"]=we)}var je=ni(ni({},F),M.headers),tt={http:M.http,options:M.fetchOptions,credentials:M.credentials,headers:je};if(Tw(["client"],x.query)){var nt=TR(x.query);if(!nt)return PU(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));x.query=nt}var Wt,rt=function TJ(t,r){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];var o={},s={};e.forEach(function(v){o=ni(ni(ni({},o),v.options),{headers:ni(ni({},o.headers),v.headers)}),v.credentials&&(o.credentials=v.credentials),s=ni(ni({},s),v.http)}),o.headers&&(o.headers=function Sfe(t,r){if(!r){var e={};return Object.keys(Object(t)).forEach(function(s){e[s.toLowerCase()]=t[s]}),e}var i={};Object.keys(Object(t)).forEach(function(s){i[s.toLowerCase()]={originalName:s,value:t[s]}});var o={};return Object.keys(i).forEach(function(s){o[i[s].originalName]=i[s].value}),o}(o.headers,s.preserveHeaderCase));var d=t.query,f={operationName:t.operationName,variables:t.variables};return s.includeExtensions&&(f.extensions=t.extensions),s.includeQuery&&(f.query=r(d,gb)),{options:o,body:f}}(x,s,Tfe,w,tt),lt=rt.options,bt=rt.body;bt.variables&&!f&&(bt.variables=function Efe(t,r){var e=ni({},t),i=new Set(Object.keys(t));return ug(r,{Variable:function(o,s,a){a&&"VariableDefinition"!==a.kind&&i.delete(o.name.value)}}),i.forEach(function(o){delete e[o]}),e}(bt.variables,x.query)),!lt.signal&&typeof AbortController<"u"&&(Wt=new AbortController,lt.signal=Wt.signal);var cr,ci="OperationDefinition"===(cr=WS(x.query)).kind&&"subscription"===cr.operation,Wi=Tw(["defer"],x.query);if(c&&!x.query.definitions.some(function(cr){return"OperationDefinition"===cr.kind&&"mutation"===cr.operation})&&(lt.method="GET"),Wi||ci){lt.headers=lt.headers||{};var ki="multipart/mixed;";ci&&Wi&&!1!==globalThis.__DEV__&&ps.warn(41),ci?ki+="boundary=graphql;subscriptionSpec=1.0,application/json":Wi&&(ki+="deferSpec=20220824,application/json"),lt.headers.accept=ki}if("GET"===lt.method){var Xr=function xfe(t,r){var e=[],i=function(v,w){e.push("".concat(v,"=").concat(encodeURIComponent(w)))};if("query"in r&&i("query",r.query),r.operationName&&i("operationName",r.operationName),r.variables){var o=void 0;try{o=OU(r.variables,"Variables map")}catch(v){return{parseError:v}}i("variables",o)}if(r.extensions){var s=void 0;try{s=OU(r.extensions,"Extensions map")}catch(v){return{parseError:v}}i("extensions",s)}var a="",l=t,c=t.indexOf("#");-1!==c&&(a=t.substr(c),l=t.substr(0,c));var d=-1===l.indexOf("?")?"?":"&";return{newURI:l+d+e.join("&")+a}}(I,bt),Lr=Xr.newURI,Jo=Xr.parseError;if(Jo)return PU(Jo);I=Lr}else try{lt.body=OU(bt,"Payload")}catch(cr){return PU(cr)}return new uc(function(cr){var is=i||lg(function(){return fetch})||SJ,Ji=cr.next.bind(cr);return is(I,lt).then(function(hn){var hi;x.setContext({response:hn});var Tn=null===(hi=hn.headers)||void 0===hi?void 0:hi.get("content-type");return null!==Tn&&/^multipart\/mixed/i.test(Tn)?function mfe(t,r){return hv(this,void 0,void 0,function(){var e,i,o,s,a,l,c,d,f,v,w,x,I,M,F,re,pe,we,je,tt,nt,rt,lt,bt;return F_(this,function(Wt){switch(Wt.label){case 0:if(void 0===TextDecoder)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");e=new TextDecoder("utf-8"),i=null===(bt=t.headers)||void 0===bt?void 0:bt.get("content-type"),o="boundary=",s=i?.includes(o)?i?.substring(i?.indexOf(o)+9).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",a="\r\n--".concat(s),l="",c=cfe(t),d=!0,Wt.label=1;case 1:return d?[4,c.next()]:[3,3];case 2:for(f=Wt.sent(),w=f.done,x="string"==typeof(v=f.value)?v:e.decode(v),I=l.length-a.length+1,d=!w,M=(l+=x).indexOf(a,I);M>-1;){if(F=void 0,rt=[l.slice(0,M),l.slice(M+a.length)],l=rt[1],re=(F=rt[0]).indexOf("\r\n\r\n"),pe=gfe(F.slice(0,re)),(we=pe["content-type"])&&-1===we.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");if(je=F.slice(re))if(tt=CJ(t,je),Object.keys(tt).length>1||"data"in tt||"incremental"in tt||"errors"in tt||"payload"in tt)if(ffe(tt)){if(nt={},"payload"in tt){if(1===Object.keys(tt).length&&null===tt.payload)return[2];nt=ni({},tt.payload)}"errors"in tt&&(nt=ni(ni({},nt),{extensions:ni(ni({},"extensions"in nt?nt.extensions:null),(lt={},lt[FU]=tt.errors,lt))})),r(nt)}else r(tt);else if(1===Object.keys(tt).length&&"hasNext"in tt&&!tt.hasNext)return[2];M=l.indexOf(a)}return[3,1];case 3:return[2]}})})}(hn,Ji):function _fe(t){return function(r){return r.text().then(function(e){return CJ(r,e)}).then(function(e){return!Array.isArray(e)&&!bJ.call(e,"data")&&!bJ.call(e,"errors")&&vJ(r,e,"Server response was missing for query '".concat(Array.isArray(t)?t.map(function(i){return i.operationName}):t.operationName,"'.")),e})}}(x)(hn).then(Ji)}).then(function(){Wt=void 0,cr.complete()}).catch(function(hn){Wt=void 0,function vfe(t,r){t.result&&t.result.errors&&t.result.data&&r.next(t.result),r.error(t)}(hn,cr)}),function(){Wt&&Wt.abort()}})})},kfe=function(t){function r(e){void 0===e&&(e={});var i=t.call(this,Dfe(e).request)||this;return i.options=e,i}return zf(r,t),r}(Ow);function LU(t,r,e){return new uc(function(i){var o={then:function(c){return new Promise(function(d){return d(c())})}};function s(c,d){return function(f){if(c){var v=function(){return i.closed?0:c(f)};o=o.then(v,v).then(function(w){return i.next(w)},function(w){return i.error(w)})}else i[d](f)}}var a={next:s(r,"next"),error:s(e,"error"),complete:function(){o.then(function(){return i.complete()})}},l=t.subscribe(a);return function(){return l.unsubscribe()}})}function G5(t){return j_(NU(t))}function NU(t){var r=j_(t.errors)?t.errors.slice(0):[];return YD(t)&&j_(t.incremental)&&t.incremental.forEach(function(e){e.errors&&r.push.apply(r,e.errors)}),r}function KR(t,r,e){var i=[];t.forEach(function(o){return o[r]&&i.push(o)}),i.forEach(function(o){return o[r](e)})}function xJ(t){function r(e){Object.defineProperty(t,e,{value:uc})}return MN&&Symbol.species&&r(Symbol.species),r("@@species"),t}function EJ(t){return t&&"function"==typeof t.then}var WD=function(t){function r(e){var i=t.call(this,function(o){return i.addObserver(o),function(){return i.removeObserver(o)}})||this;return i.observers=new Set,i.promise=new Promise(function(o,s){i.resolve=o,i.reject=s}),i.handlers={next:function(o){null!==i.sub&&(i.latest=["next",o],i.notify("next",o),KR(i.observers,"next",o))},error:function(o){var s=i.sub;null!==s&&(s&&setTimeout(function(){return s.unsubscribe()}),i.sub=null,i.latest=["error",o],i.reject(o),i.notify("error",o),KR(i.observers,"error",o))},complete:function(){var s=i.sub,a=i.sources;if(null!==s){var c=(void 0===a?[]:a).shift();c?EJ(c)?c.then(function(d){return i.sub=d.subscribe(i.handlers)},i.handlers.error):i.sub=c.subscribe(i.handlers):(s&&setTimeout(function(){return s.unsubscribe()}),i.sub=null,i.latest&&"next"===i.latest[0]?i.resolve(i.latest[1]):i.resolve(),i.notify("complete"),KR(i.observers,"complete"))}}},i.nextResultListeners=new Set,i.cancel=function(o){i.reject(o),i.sources=[],i.handlers.error(o)},i.promise.catch(function(o){}),"function"==typeof e&&(e=[new uc(e)]),EJ(e)?e.then(function(o){return i.start(o)},i.handlers.error):i.start(e),i}return zf(r,t),r.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},r.prototype.deliverLastMessage=function(e){if(this.latest){var i=this.latest[0],o=e[i];o&&o.call(e,this.latest[1]),null===this.sub&&"next"===i&&e.complete&&e.complete()}},r.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},r.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},r.prototype.notify=function(e,i){var o=this.nextResultListeners;o.size&&(this.nextResultListeners=new Set,o.forEach(function(s){return s(e,i)}))},r.prototype.beforeNext=function(e){var i=!1;this.nextResultListeners.add(function(o,s){i||(i=!0,e(o,s))})},r}(uc);xJ(WD);var DJ=Object.assign,Afe=Object.hasOwnProperty,B5=function(t){function r(e){var i=e.queryManager,o=e.queryInfo,s=e.options,a=this,l=r.inactiveOnCreation.getValue();(a=t.call(this,function(re){l&&(i.queries.set(a.queryId,o),l=!1);try{var pe=re._subscription._observer;pe&&!pe.error&&(pe.error=Mfe)}catch{}var we=!a.observers.size;a.observers.add(re);var je=a.last;return je&&je.error?re.error&&re.error(je.error):je&&je.result&&re.next&&re.next(a.maskResult(je.result)),we&&a.reobserve().catch(function(){}),function(){a.observers.delete(re)&&!a.observers.size&&a.tearDownQuery()}})||this).observers=new Set,a.subscriptions=new Set,a.queryInfo=o,a.queryManager=i,a.waitForOwnResult=GU(s.fetchPolicy),a.isTornDown=!1,a.subscribeToMore=a.subscribeToMore.bind(a),a.maskResult=a.maskResult.bind(a);var c=i.defaultOptions.watchQuery,f=(void 0===c?{}:c).fetchPolicy,v=void 0===f?"cache-first":f,w=s.fetchPolicy,x=void 0===w?v:w,I=s.initialFetchPolicy,M=void 0===I?"standby"===x?v:x:I;a.options=ni(ni({},s),{initialFetchPolicy:M,fetchPolicy:x}),a.queryId=o.queryId||i.generateQueryId();var F=uy(a.query);return a.queryName=F&&F.name&&F.name.value,a}return zf(r,t),Object.defineProperty(r.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),r.prototype.result=function(){var e=this;return new Promise(function(i,o){var s={next:function(l){i(l),e.observers.delete(s),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){a.unsubscribe()},0)},error:o},a=e.subscribe(s)})},r.prototype.resetDiff=function(){this.queryInfo.resetDiff()},r.prototype.getCurrentFullResult=function(e){void 0===e&&(e=!0);var i=this.getLastResult(!0),o=this.queryInfo.networkStatus||i&&i.networkStatus||Lc.ready,s=ni(ni({},i),{loading:$D(o),networkStatus:o}),a=this.options.fetchPolicy,l=void 0===a?"cache-first":a;if(!GU(l)&&!this.queryManager.getDocumentInfo(this.query).hasForcedResolvers)if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var c=this.queryInfo.getDiff();(c.complete||this.options.returnPartialData)&&(s.data=c.result),iu(s.data,{})&&(s.data=void 0),c.complete?(delete s.partial,c.complete&&s.networkStatus===Lc.loading&&("cache-first"===l||"cache-only"===l)&&(s.networkStatus=Lc.ready,s.loading=!1)):s.partial=!0,s.networkStatus===Lc.ready&&(s.error||s.errors)&&(s.networkStatus=Lc.error),!1!==globalThis.__DEV__&&!c.complete&&!this.options.partialRefetch&&!s.loading&&!s.data&&!s.error&&IJ(c.missing)}return e&&this.updateLastResult(s),s},r.prototype.getCurrentResult=function(e){return void 0===e&&(e=!0),this.maskResult(this.getCurrentFullResult(e))},r.prototype.isDifferentFromLastResult=function(e,i){if(!this.last)return!0;var o=this.queryManager.getDocumentInfo(this.query),s=this.queryManager.dataMasking;return(s||o.hasNonreactiveDirective?!IN(s?o.nonReactiveQuery:this.query,this.last.result,e,this.variables):!iu(this.last.result,e))||i&&!iu(this.last.variables,i)},r.prototype.getLast=function(e,i){var o=this.last;if(o&&o[e]&&(!i||iu(o.variables,this.variables)))return o[e]},r.prototype.getLastResult=function(e){return this.getLast("result",e)},r.prototype.getLastError=function(e){return this.getLast("error",e)},r.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},r.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},r.prototype.refetch=function(e){var i,o={pollInterval:0};if(o.fetchPolicy="no-cache"===this.options.fetchPolicy?"no-cache":"network-only",!1!==globalThis.__DEV__&&e&&Afe.call(e,"variables")){var a=sR(this.query),l=a.variableDefinitions;(!l||!l.some(function(c){return"variables"===c.variable.name.value}))&&!1!==globalThis.__DEV__&&ps.warn(21,e,(null===(i=a.name)||void 0===i?void 0:i.value)||a)}return e&&!iu(this.options.variables,e)&&(o.variables=this.options.variables=ni(ni({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(o,Lc.refetch)},r.prototype.fetchMore=function(e){var i=this,o=ni(ni({},e.query?e:ni(ni(ni(ni({},this.options),{query:this.options.query}),e),{variables:ni(ni({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"});o.query=this.transformDocument(o.query);var s=this.queryManager.generateQueryId();this.lastQuery=e.query?this.transformDocument(this.options.query):o.query;var a=this.queryInfo,l=a.networkStatus;a.networkStatus=Lc.fetchMore,o.notifyOnNetworkStatusChange&&this.observe();var c=new Set,d=e?.updateQuery,f="no-cache"!==this.options.fetchPolicy;return f||ps(d,22),this.queryManager.fetchQuery(s,o,Lc.fetchMore).then(function(v){if(i.queryManager.removeQuery(s),a.networkStatus===Lc.fetchMore&&(a.networkStatus=l),f)i.queryManager.cache.batch({update:function(I){var M=e.updateQuery;M?I.updateQuery({query:i.query,variables:i.variables,returnPartialData:!0,optimistic:!1},function(F){return M(F,{fetchMoreResult:v.data,variables:o.variables})}):I.writeQuery({query:o.query,variables:o.variables,data:v.data})},onWatchUpdated:function(I){c.add(I.query)}});else{var w=i.getLast("result"),x=d(w.data,{fetchMoreResult:v.data,variables:o.variables});i.reportResult(ni(ni({},w),{networkStatus:l,loading:$D(l),data:x}),i.variables)}return i.maskResult(v)}).finally(function(){f&&!c.has(i.query)&&kJ(i)})},r.prototype.subscribeToMore=function(e){var i=this,o=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(s){var a=e.updateQuery;a&&i.updateQuery(function(l,c){return a(l,ni({subscriptionData:s},c))})},error:function(s){e.onError?e.onError(s):!1!==globalThis.__DEV__&&ps.error(23,s)}});return this.subscriptions.add(o),function(){i.subscriptions.delete(o)&&o.unsubscribe()}},r.prototype.setOptions=function(e){return this.reobserve(e)},r.prototype.silentSetOptions=function(e){var i=xw(this.options,e||{});DJ(this.options,i)},r.prototype.setVariables=function(e){return iu(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},Lc.setVariables):Promise.resolve())},r.prototype.updateQuery=function(e){var i=this.queryManager,o=i.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}),s=o.result,l=e(s,{variables:this.variables,complete:!!o.complete,previousData:s});l&&(i.cache.writeQuery({query:this.options.query,data:l,variables:this.variables}),i.broadcastQueries())},r.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},r.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},r.prototype.applyNextFetchPolicy=function(e,i){if(i.nextFetchPolicy){var o=i.fetchPolicy,s=void 0===o?"cache-first":o,a=i.initialFetchPolicy,l=void 0===a?s:a;"standby"===s||(i.fetchPolicy="function"==typeof i.nextFetchPolicy?i.nextFetchPolicy(s,{reason:e,options:i,observable:this,initialFetchPolicy:l}):"variables-changed"===e?l:i.nextFetchPolicy)}return i.fetchPolicy},r.prototype.fetch=function(e,i,o){var s=this.queryManager.getOrCreateQuery(this.queryId);return s.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(s,e,i,o)},r.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var o=this.pollingInfo,s=this.options.pollInterval;if(!s||!this.hasObservers())return void(o&&(clearTimeout(o.timeout),delete this.pollingInfo));if(!o||o.interval!==s){ps(s,24),(o||(this.pollingInfo={})).interval=s;var l=function(){var d,f;e.pollingInfo&&($D(e.queryInfo.networkStatus)||null!==(f=(d=e.options).skipPollAttempt)&&void 0!==f&&f.call(d)?c():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},Lc.poll).then(c,c))},c=function(){var d=e.pollingInfo;d&&(clearTimeout(d.timeout),d.timeout=setTimeout(l,d.interval))};c()}}},r.prototype.updateLastResult=function(e,i){void 0===i&&(i=this.variables);var o=this.getLastError();return o&&this.last&&!iu(i,this.last.variables)&&(o=void 0),this.last=ni({result:this.queryManager.assumeImmutableResults?e:FD(e),variables:i},o?{error:o}:null)},r.prototype.reobserveAsConcast=function(e,i){var o=this;this.isTornDown=!1;var s=i===Lc.refetch||i===Lc.fetchMore||i===Lc.poll,a=this.options.variables,l=this.options.fetchPolicy,c=xw(this.options,e||{}),d=s?c:DJ(this.options,c),f=this.transformDocument(d.query);this.lastQuery=f,s||(this.updatePolling(),e&&e.variables&&!iu(e.variables,a)&&"standby"!==d.fetchPolicy&&(d.fetchPolicy===l||"function"==typeof d.nextFetchPolicy)&&(this.applyNextFetchPolicy("variables-changed",d),void 0===i&&(i=Lc.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=GU(d.fetchPolicy));var v=function(){o.concast===I&&(o.waitForOwnResult=!1)},w=d.variables&&ni({},d.variables),x=this.fetch(d,i,f),I=x.concast,F={next:function(re){iu(o.variables,w)&&(v(),o.reportResult(re,w))},error:function(re){iu(o.variables,w)&&(_J(re)||(re=new gx({networkError:re})),v(),o.reportError(re,w))}};return!s&&(x.fromLink||!this.concast)&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=I,this.observer=F),I.addObserver(F),I},r.prototype.reobserve=function(e,i){return function Ife(t){return t.catch(function(){}),t}(this.reobserveAsConcast(e,i).promise.then(this.maskResult))},r.prototype.resubscribeAfterError=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var o=this.last;this.resetLastResults();var s=this.subscribe.apply(this,e);return this.last=o,s},r.prototype.observe=function(){this.reportResult(this.getCurrentFullResult(!1),this.variables)},r.prototype.reportResult=function(e,i){var o=this.getLastError(),s=this.isDifferentFromLastResult(e,i);(o||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,i),(o||s)&&KR(this.observers,"next",this.maskResult(e))},r.prototype.reportError=function(e,i){var o=ni(ni({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:Lc.error,loading:!1});this.updateLastResult(o,i),KR(this.observers,"error",this.last.error=e)},r.prototype.hasObservers=function(){return this.observers.size>0},r.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},r.prototype.transformDocument=function(e){return this.queryManager.transform(e)},r.prototype.maskResult=function(e){return e&&"data"in e?ni(ni({},e),{data:this.queryManager.maskOperation({document:this.query,data:e.data,fetchPolicy:this.options.fetchPolicy,id:this.queryId})}):e},r.inactiveOnCreation=new gw,r}(uc);function kJ(t){var r=t.options,e=r.fetchPolicy,i=r.nextFetchPolicy;return"cache-and-network"===e||"network-only"===e?t.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(o,s){return this.nextFetchPolicy=i,"function"==typeof this.nextFetchPolicy?this.nextFetchPolicy(o,s):e}}):t.reobserve()}function Mfe(t){!1!==globalThis.__DEV__&&ps.error(25,t.message,t.stack)}function IJ(t){!1!==globalThis.__DEV__&&t&&!1!==globalThis.__DEV__&&ps.debug(26,t)}function GU(t){return"network-only"===t||"no-cache"===t||"standby"===t}xJ(B5);var zD=new(hb?WeakMap:Map);function BU(t,r){var e=t[r];"function"==typeof e&&(t[r]=function(){return zD.set(t,(zD.get(t)+1)%1e15),e.apply(this,arguments)})}function AJ(t){t.notifyTimeout&&(clearTimeout(t.notifyTimeout),t.notifyTimeout=void 0)}var VU=function(){function t(r,e){void 0===e&&(e=r.generateQueryId()),this.queryId=e,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var i=this.cache=r.cache;zD.has(i)||(zD.set(i,0),BU(i,"evict"),BU(i,"modify"),BU(i,"reset"))}return t.prototype.init=function(r){var e=r.networkStatus||Lc.loading;return this.variables&&this.networkStatus!==Lc.loading&&!iu(this.variables,r.variables)&&(e=Lc.setVariables),iu(r.variables,this.variables)||(this.lastDiff=void 0,this.cancel()),Object.assign(this,{document:r.document,variables:r.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:e}),r.observableQuery&&this.setObservableQuery(r.observableQuery),r.lastRequestId&&(this.lastRequestId=r.lastRequestId),this},t.prototype.reset=function(){AJ(this),this.dirty=!1},t.prototype.resetDiff=function(){this.lastDiff=void 0},t.prototype.getDiff=function(){var r=this.getDiffOptions();if(this.lastDiff&&iu(r,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var e=this.observableQuery;if(e&&"no-cache"===e.options.fetchPolicy)return{complete:!1};var i=this.cache.diff(r);return this.updateLastDiff(i,r),i},t.prototype.updateLastDiff=function(r,e){this.lastDiff=r?{diff:r,options:e||this.getDiffOptions()}:void 0},t.prototype.getDiffOptions=function(r){var e;return void 0===r&&(r=this.variables),{query:this.document,variables:r,returnPartialData:!0,optimistic:!0,canonizeResults:null===(e=this.observableQuery)||void 0===e?void 0:e.options.canonizeResults}},t.prototype.setDiff=function(r){var i,e=this,o=this.lastDiff&&this.lastDiff.diff;r&&!r.complete&&null!==(i=this.observableQuery)&&void 0!==i&&i.getLastError()||(this.updateLastDiff(r),!this.dirty&&!iu(o&&o.result,r&&r.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return e.notify()},0))))},t.prototype.setObservableQuery=function(r){var e=this;r!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=r,r?(r.queryInfo=this,this.listeners.add(this.oqListener=function(){e.getDiff().fromOptimisticTransaction?r.observe():kJ(r)})):delete this.oqListener)},t.prototype.notify=function(){var r=this;AJ(this),this.shouldNotify()&&this.listeners.forEach(function(e){return e(r)}),this.dirty=!1},t.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if($D(this.networkStatus)&&this.observableQuery){var r=this.observableQuery.options.fetchPolicy;if("cache-only"!==r&&"cache-and-network"!==r)return!1}return!0},t.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel();var r=this.observableQuery;r&&r.stopPolling()}},t.prototype.cancel=function(){var r;null===(r=this.cancelWatch)||void 0===r||r.call(this),this.cancelWatch=void 0},t.prototype.updateWatch=function(r){var e=this;void 0===r&&(r=this.variables);var i=this.observableQuery;if(!i||"no-cache"!==i.options.fetchPolicy){var o=ni(ni({},this.getDiffOptions(r)),{watcher:this,callback:function(s){return e.setDiff(s)}});(!this.lastWatch||!iu(o,this.lastWatch))&&(this.cancel(),this.cancelWatch=this.cache.watch(this.lastWatch=o))}},t.prototype.resetLastWrite=function(){this.lastWrite=void 0},t.prototype.shouldWrite=function(r,e){var i=this.lastWrite;return!(i&&i.dmCount===zD.get(this.cache)&&iu(e,i.variables)&&iu(r.data,i.result.data))},t.prototype.markResult=function(r,e,i,o){var s=this,a=new V_,l=j_(r.errors)?r.errors.slice(0):[];if(this.reset(),"incremental"in r&&j_(r.incremental)){var c=yJ(this.getDiff().result,r);r.data=c}else if("hasNext"in r&&r.hasNext){var d=this.getDiff();r.data=a.merge(d.result,r.data)}this.graphQLErrors=l,"no-cache"===i.fetchPolicy?this.updateLastDiff({result:r.data,complete:!0},this.getDiffOptions(i.variables)):0!==o&&(jU(r,i.errorPolicy)?this.cache.performTransaction(function(f){if(s.shouldWrite(r,i.variables))f.writeQuery({query:e,data:r.data,variables:i.variables,overwrite:1===o}),s.lastWrite={result:r,variables:i.variables,dmCount:zD.get(s.cache)};else if(s.lastDiff&&s.lastDiff.diff.complete)return void(r.data=s.lastDiff.diff.result);var v=s.getDiffOptions(i.variables),w=f.diff(v);!s.stopped&&iu(s.variables,i.variables)&&s.updateWatch(i.variables),s.updateLastDiff(w,v),w.complete&&(r.data=w.result)}):this.lastWrite=void 0)},t.prototype.markReady=function(){return this.networkError=null,this.networkStatus=Lc.ready},t.prototype.markError=function(r){return this.networkStatus=Lc.error,this.lastWrite=void 0,this.reset(),r.graphQLErrors&&(this.graphQLErrors=r.graphQLErrors),r.networkError&&(this.networkError=r.networkError),r},t}();function jU(t,r){void 0===r&&(r="none");var e="ignore"===r||"all"===r,i=!G5(t);return!i&&e&&t.data&&(i=!0),i}var Ofe=Object.prototype.hasOwnProperty,MJ=Object.create(null),Ffe=function(){function t(r){var e=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new tR(G_["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new mv(!1),this.noCacheWarningsByQueryId=new Set;var i=new tx(function(s){return e.cache.transformDocument(s)},{cache:!1});this.cache=r.cache,this.link=r.link,this.defaultOptions=r.defaultOptions,this.queryDeduplication=r.queryDeduplication,this.clientAwareness=r.clientAwareness,this.localState=r.localState,this.ssrMode=r.ssrMode,this.assumeImmutableResults=r.assumeImmutableResults,this.dataMasking=r.dataMasking;var o=r.documentTransform;this.documentTransform=o?i.concat(o).concat(i):i,this.defaultContext=r.defaultContext||Object.create(null),(this.onBroadcast=r.onBroadcast)&&(this.mutationStore=Object.create(null))}return t.prototype.stop=function(){var r=this;this.queries.forEach(function(e,i){r.stopQueryNoBroadcast(i)}),this.cancelPendingFetches(Qp(27))},t.prototype.cancelPendingFetches=function(r){this.fetchCancelFns.forEach(function(e){return e(r)}),this.fetchCancelFns.clear()},t.prototype.mutate=function(r){return hv(this,arguments,void 0,function(e){var i,o,s,a,l,c,d,f=e.mutation,v=e.variables,w=e.optimisticResponse,x=e.updateQueries,I=e.refetchQueries,M=void 0===I?[]:I,F=e.awaitRefetchQueries,re=void 0!==F&&F,pe=e.update,we=e.onQueryUpdated,je=e.fetchPolicy,tt=void 0===je?(null===(c=this.defaultOptions.mutate)||void 0===c?void 0:c.fetchPolicy)||"network-only":je,nt=e.errorPolicy,rt=void 0===nt?(null===(d=this.defaultOptions.mutate)||void 0===d?void 0:d.errorPolicy)||"none":nt,lt=e.keepRootFields,bt=e.context;return F_(this,function(Wt){switch(Wt.label){case 0:return ps(f,28),ps("network-only"===tt||"no-cache"===tt,29),i=this.generateMutationId(),f=this.cache.transformForLink(this.transform(f)),o=this.getDocumentInfo(f).hasClientExports,v=this.getVariables(f,v),o?[4,this.localState.addExportedVariables(f,v,bt)]:[3,2];case 1:v=Wt.sent(),Wt.label=2;case 2:return s=this.mutationStore&&(this.mutationStore[i]={mutation:f,variables:v,loading:!0,error:null}),a=w&&this.markMutationOptimistic(w,{mutationId:i,document:f,variables:v,fetchPolicy:tt,errorPolicy:rt,context:bt,updateQueries:x,update:pe,keepRootFields:lt}),this.broadcastQueries(),l=this,[2,new Promise(function(Zt,en){return LU(l.getObservableFromLink(f,ni(ni({},bt),{optimisticResponse:a?w:void 0}),v,{},!1),function(ci){if(G5(ci)&&"none"===rt)throw new gx({graphQLErrors:NU(ci)});s&&(s.loading=!1,s.error=null);var Wi=ni({},ci);return"function"==typeof M&&(M=M(Wi)),"ignore"===rt&&G5(Wi)&&delete Wi.errors,l.markMutationResult({mutationId:i,result:Wi,document:f,variables:v,fetchPolicy:tt,errorPolicy:rt,context:bt,update:pe,updateQueries:x,awaitRefetchQueries:re,refetchQueries:M,removeOptimistic:a?i:void 0,onQueryUpdated:we,keepRootFields:lt})}).subscribe({next:function(ci){l.broadcastQueries(),(!("hasNext"in ci)||!1===ci.hasNext)&&Zt(ni(ni({},ci),{data:l.maskOperation({document:f,data:ci.data,fetchPolicy:tt,id:i})}))},error:function(ci){s&&(s.loading=!1,s.error=ci),a&&l.cache.removeOptimistic(i),l.broadcastQueries(),en(ci instanceof gx?ci:new gx({networkError:ci}))}})})]}})})},t.prototype.markMutationResult=function(r,e){var i=this;void 0===e&&(e=this.cache);var o=r.result,s=[],a="no-cache"===r.fetchPolicy;if(!a&&jU(o,r.errorPolicy)){if(YD(o)||s.push({result:o.data,dataId:"ROOT_MUTATION",query:r.document,variables:r.variables}),YD(o)&&j_(o.incremental)){var l=e.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(r.document).asQuery,variables:r.variables,optimistic:!1,returnPartialData:!0}),c=void 0;l.result&&(c=yJ(l.result,o)),typeof c<"u"&&(o.data=c,s.push({result:c,dataId:"ROOT_MUTATION",query:r.document,variables:r.variables}))}var d=r.updateQueries;d&&this.queries.forEach(function(v,w){var x=v.observableQuery,I=x&&x.queryName;if(I&&Ofe.call(d,I)){var M=d[I],F=i.queries.get(w),re=F.document,pe=F.variables,we=e.diff({query:re,variables:pe,returnPartialData:!0,optimistic:!1}),je=we.result;if(we.complete&&je){var nt=M(je,{mutationResult:o,queryName:re&&ub(re)||void 0,queryVariables:pe});nt&&s.push({result:nt,dataId:"ROOT_QUERY",query:re,variables:pe})}}})}if(s.length>0||(r.refetchQueries||"").length>0||r.update||r.onQueryUpdated||r.removeOptimistic){var f=[];if(this.refetchQueries({updateCache:function(v){a||s.forEach(function(M){return v.write(M)});var w=r.update,x=!function hfe(t){return YD(t)||function pfe(t){return"hasNext"in t&&"data"in t}(t)}(o)||YD(o)&&!o.hasNext;if(w){if(!a){var I=v.diff({id:"ROOT_MUTATION",query:i.getDocumentInfo(r.document).asQuery,variables:r.variables,optimistic:!1,returnPartialData:!0});I.complete&&("incremental"in(o=ni(ni({},o),{data:I.result}))&&delete o.incremental,"hasNext"in o&&delete o.hasNext)}x&&w(v,o,{context:r.context,variables:r.variables})}!a&&!r.keepRootFields&&x&&v.modify({id:"ROOT_MUTATION",fields:function(M,F){return"__typename"===F.fieldName?M:F.DELETE}})},include:r.refetchQueries,optimistic:!1,removeOptimistic:r.removeOptimistic,onQueryUpdated:r.onQueryUpdated||null}).forEach(function(v){return f.push(v)}),r.awaitRefetchQueries||r.onQueryUpdated)return Promise.all(f).then(function(){return o})}return Promise.resolve(o)},t.prototype.markMutationOptimistic=function(r,e){var i=this,o="function"==typeof r?r(e.variables,{IGNORE:MJ}):r;return o!==MJ&&(this.cache.recordOptimisticTransaction(function(s){try{i.markMutationResult(ni(ni({},e),{result:{data:o}}),s)}catch(a){!1!==globalThis.__DEV__&&ps.error(a)}},e.mutationId),!0)},t.prototype.fetchQuery=function(r,e,i){return this.fetchConcastWithInfo(this.getOrCreateQuery(r),e,i).concast.promise},t.prototype.getQueryStore=function(){var r=Object.create(null);return this.queries.forEach(function(e,i){r[i]={variables:e.variables,networkStatus:e.networkStatus,networkError:e.networkError,graphQLErrors:e.graphQLErrors}}),r},t.prototype.resetErrors=function(r){var e=this.queries.get(r);e&&(e.networkError=void 0,e.graphQLErrors=[])},t.prototype.transform=function(r){return this.documentTransform.transformDocument(r)},t.prototype.getDocumentInfo=function(r){var e=this.transformCache;if(!e.has(r)){var i={hasClientExports:EN(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),hasNonreactiveDirective:Tw(["nonreactive"],r),nonReactiveQuery:rH(r),clientQuery:this.localState.clientQuery(r),serverQuery:ID([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],r),defaultVars:aR(uy(r)),asQuery:ni(ni({},r),{definitions:r.definitions.map(function(o){return"OperationDefinition"===o.kind&&"query"!==o.operation?ni(ni({},o),{operation:"query"}):o})})};e.set(r,i)}return e.get(r)},t.prototype.getVariables=function(r,e){return ni(ni({},this.getDocumentInfo(r).defaultVars),e)},t.prototype.watchQuery=function(r){var e=this.transform(r.query);typeof(r=ni(ni({},r),{variables:this.getVariables(e,r.variables)})).notifyOnNetworkStatusChange>"u"&&(r.notifyOnNetworkStatusChange=!1);var i=new VU(this),o=new B5({queryManager:this,queryInfo:i,options:r});return o.lastQuery=e,B5.inactiveOnCreation.getValue()||this.queries.set(o.queryId,i),i.init({document:e,observableQuery:o,variables:o.variables}),o},t.prototype.query=function(r,e){var i=this;void 0===e&&(e=this.generateQueryId()),ps(r.query,30),ps("Document"===r.query.kind,31),ps(!r.returnPartialData,32),ps(!r.pollInterval,33);var o=this.transform(r.query);return this.fetchQuery(e,ni(ni({},r),{query:o})).then(function(s){return s&&ni(ni({},s),{data:i.maskOperation({document:o,data:s.data,fetchPolicy:r.fetchPolicy,id:e})})}).finally(function(){return i.stopQuery(e)})},t.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},t.prototype.generateRequestId=function(){return this.requestIdCounter++},t.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},t.prototype.stopQueryInStore=function(r){this.stopQueryInStoreNoBroadcast(r),this.broadcastQueries()},t.prototype.stopQueryInStoreNoBroadcast=function(r){var e=this.queries.get(r);e&&e.stop()},t.prototype.clearStore=function(r){return void 0===r&&(r={discardWatches:!0}),this.cancelPendingFetches(Qp(34)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=Lc.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(r)},t.prototype.getObservableQueries=function(r){var e=this;void 0===r&&(r="active");var i=new Map,o=new Map,s=new Map,a=new Set;return Array.isArray(r)&&r.forEach(function(l){if("string"==typeof l)o.set(l,l),s.set(l,!1);else if(function uN(t){return Lu(t)&&"Document"===t.kind&&Array.isArray(t.definitions)}(l)){var c=gb(e.transform(l));o.set(c,ub(l)),s.set(c,!1)}else Lu(l)&&l.query&&a.add(l)}),this.queries.forEach(function(l,c){var d=l.observableQuery,f=l.document;if(d){if("all"===r)return void i.set(c,d);var v=d.queryName;if("standby"===d.options.fetchPolicy||"active"===r&&!d.hasObservers())return;("active"===r||v&&s.has(v)||f&&s.has(gb(f)))&&(i.set(c,d),v&&s.set(v,!0),f&&s.set(gb(f),!0))}}),a.size&&a.forEach(function(l){var c=jS("legacyOneTimeQuery"),d=e.getOrCreateQuery(c).init({document:l.query,variables:l.variables}),f=new B5({queryManager:e,queryInfo:d,options:ni(ni({},l),{fetchPolicy:"network-only"})});ps(f.queryId===c),d.setObservableQuery(f),i.set(c,f)}),!1!==globalThis.__DEV__&&s.size&&s.forEach(function(l,c){if(!l){var d=o.get(c);d?!1!==globalThis.__DEV__&&ps.warn(35,d):!1!==globalThis.__DEV__&&ps.warn(36)}}),i},t.prototype.reFetchObservableQueries=function(r){var e=this;void 0===r&&(r=!1);var i=[];return this.getObservableQueries(r?"all":"active").forEach(function(o,s){var a=o.options.fetchPolicy;o.resetLastResults(),(r||"standby"!==a&&"cache-only"!==a)&&i.push(o.refetch()),(e.queries.get(s)||o.queryInfo).setDiff(null)}),this.broadcastQueries(),Promise.all(i)},t.prototype.startGraphQLSubscription=function(r){var e=this,i=r.query,o=r.variables,s=r.fetchPolicy,a=r.errorPolicy,l=void 0===a?"none":a,c=r.context,d=void 0===c?{}:c,f=r.extensions,v=void 0===f?{}:f;i=this.transform(i),o=this.getVariables(i,o);var w=function(I){return e.getObservableFromLink(i,d,I,v).map(function(M){"no-cache"!==s&&(jU(M,l)&&e.cache.write({query:i,result:M.data,dataId:"ROOT_SUBSCRIPTION",variables:I}),e.broadcastQueries());var F=G5(M),re=function ufe(t){return!!t.extensions&&Array.isArray(t.extensions[FU])}(M);if(F||re){var pe={};if(F&&(pe.graphQLErrors=M.errors),re&&(pe.protocolErrors=M.extensions[FU]),"none"===l||re)throw new gx(pe)}return"ignore"===l&&delete M.errors,M})};if(this.getDocumentInfo(i).hasClientExports){var x=this.localState.addExportedVariables(i,o,d).then(w);return new uc(function(I){var M=null;return x.then(function(F){return M=F.subscribe(I)},I.error),function(){return M&&M.unsubscribe()}})}return w(o)},t.prototype.stopQuery=function(r){this.stopQueryNoBroadcast(r),this.broadcastQueries()},t.prototype.stopQueryNoBroadcast=function(r){this.stopQueryInStoreNoBroadcast(r),this.removeQuery(r)},t.prototype.removeQuery=function(r){var e;this.fetchCancelFns.delete(r),this.queries.has(r)&&(null===(e=this.queries.get(r))||void 0===e||e.stop(),this.queries.delete(r))},t.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(r){return r.notify()})},t.prototype.getLocalState=function(){return this.localState},t.prototype.getObservableFromLink=function(r,e,i,o,s){var l,a=this;void 0===s&&(s=null!==(l=e?.queryDeduplication)&&void 0!==l?l:this.queryDeduplication);var c,d=this.getDocumentInfo(r),f=d.serverQuery,v=d.clientQuery;if(f){var x=this.inFlightLinkObservables,I=this.link,M={query:f,variables:i,operationName:ub(f)||void 0,context:this.prepareContext(ni(ni({},e),{forceFetch:!s})),extensions:o};if(e=M.context,s){var F=gb(f),re=ay(i),pe=x.lookup(F,re);if(!(c=pe.observable)){var we=new WD([RU(I,M)]);c=pe.observable=we,we.beforeNext(function je(tt,nt){"next"===tt&&"hasNext"in nt&&nt.hasNext?we.beforeNext(je):x.remove(F,re)})}}else c=new WD([RU(I,M)])}else c=new WD([uc.of({data:{}})]),e=this.prepareContext(e);return v&&(c=LU(c,function(je){return a.localState.runResolvers({document:v,remoteResult:je,context:e,variables:i})})),c},t.prototype.getResultsFromLink=function(r,e,i){var o=r.lastRequestId=this.generateRequestId(),s=this.cache.transformForLink(i.query);return LU(this.getObservableFromLink(s,i.context,i.variables),function(a){var l=NU(a),c=l.length>0,d=i.errorPolicy;if(o>=r.lastRequestId){if(c&&"none"===d)throw r.markError(new gx({graphQLErrors:l}));r.markResult(a,s,i,e),r.markReady()}var f={data:a.data,loading:!1,networkStatus:Lc.ready};return c&&"none"===d&&(f.data=void 0),c&&"ignore"!==d&&(f.errors=l,f.networkStatus=Lc.error),f},function(a){var l=_J(a)?a:new gx({networkError:a});throw o>=r.lastRequestId&&r.markError(l),l})},t.prototype.fetchConcastWithInfo=function(r,e,i,o){var s=this;void 0===i&&(i=Lc.loading),void 0===o&&(o=e.query);var tt,nt,a=this.getVariables(o,e.variables),l=this.defaultOptions.watchQuery,c=e.fetchPolicy,f=e.errorPolicy,w=e.returnPartialData,I=e.notifyOnNetworkStatusChange,F=e.context,pe=Object.assign({},e,{query:o,variables:a,fetchPolicy:void 0===c?l&&l.fetchPolicy||"cache-first":c,errorPolicy:void 0===f?l&&l.errorPolicy||"none":f,returnPartialData:void 0!==w&&w,notifyOnNetworkStatusChange:void 0!==I&&I,context:void 0===F?{}:F}),we=function(lt){pe.variables=lt;var bt=s.fetchQueryByPolicy(r,pe,i);return"standby"!==pe.fetchPolicy&&bt.sources.length>0&&r.observableQuery&&r.observableQuery.applyNextFetchPolicy("after-fetch",e),bt},je=function(){return s.fetchCancelFns.delete(r.queryId)};if(this.fetchCancelFns.set(r.queryId,function(lt){je(),setTimeout(function(){return tt.cancel(lt)})}),this.getDocumentInfo(pe.query).hasClientExports)tt=new WD(this.localState.addExportedVariables(pe.query,pe.variables,pe.context).then(we).then(function(lt){return lt.sources})),nt=!0;else{var rt=we(pe.variables);nt=rt.fromLink,tt=new WD(rt.sources)}return tt.promise.then(je,je),{concast:tt,fromLink:nt}},t.prototype.refetchQueries=function(r){var e=this,i=r.updateCache,o=r.include,s=r.optimistic,a=void 0!==s&&s,l=r.removeOptimistic,c=void 0===l?a?jS("refetchQueries"):void 0:l,d=r.onQueryUpdated,f=new Map;o&&this.getObservableQueries(o).forEach(function(w,x){f.set(x,{oq:w,lastDiff:(e.queries.get(x)||w.queryInfo).getDiff()})});var v=new Map;return i&&this.cache.batch({update:i,optimistic:a&&c||!1,removeOptimistic:c,onWatchUpdated:function(w,x,I){var M=w.watcher instanceof VU&&w.watcher.observableQuery;if(M){if(d){f.delete(M.queryId);var F=d(M,x,I);return!0===F&&(F=M.refetch()),!1!==F&&v.set(M,F),F}null!==d&&f.set(M.queryId,{oq:M,lastDiff:I,diff:x})}}}),f.size&&f.forEach(function(w,x){var re,I=w.oq,M=w.lastDiff,F=w.diff;if(d){if(!F){var pe=I.queryInfo;pe.reset(),F=pe.getDiff()}re=d(I,F,M)}(!d||!0===re)&&(re=I.refetch()),!1!==re&&v.set(I,re),x.indexOf("legacyOneTimeQuery")>=0&&e.stopQueryNoBroadcast(x)}),c&&this.cache.removeOptimistic(c),v},t.prototype.maskOperation=function(r){var e,i,o,s=r.document,a=r.data;if(!1!==globalThis.__DEV__){var l=r.fetchPolicy,c=r.id,d=null===(e=uy(s))||void 0===e?void 0:e.operation,f=(null!==(i=d?.[0])&&void 0!==i?i:"o")+c;this.dataMasking&&"no-cache"===l&&!function sQ(t){var r=!0;return ug(t,{FragmentSpread:function(e){if(!(r=!!e.directives&&e.directives.some(function(i){return"unmask"===i.name.value})))return N_}}),r}(s)&&!this.noCacheWarningsByQueryId.has(f)&&(this.noCacheWarningsByQueryId.add(f),!1!==globalThis.__DEV__&&ps.warn(37,null!==(o=ub(s))&&void 0!==o?o:"Unnamed ".concat(d??"operation")))}return this.dataMasking?function Rfe(t,r,e){var i;if(!e.fragmentMatches)return!1!==globalThis.__DEV__&&Q9(),t;var o=uy(r);return ps(o,51),null==t?t:ON(t,o.selectionSet,{operationType:o.operation,operationName:null===(i=o.name)||void 0===i?void 0:i.value,fragmentMap:ab(db(r)),cache:e,mutableTargets:new fb,knownChanged:new RN})}(a,s,this.cache):a},t.prototype.maskFragment=function(r){var e=r.data;return this.dataMasking?PN(e,r.fragment,this.cache,r.fragmentName):e},t.prototype.fetchQueryByPolicy=function(r,e,i){var o=this,s=e.query,a=e.variables,l=e.fetchPolicy,c=e.refetchWritePolicy,d=e.errorPolicy,f=e.returnPartialData,v=e.context,w=e.notifyOnNetworkStatusChange,x=r.networkStatus;r.init({document:s,variables:a,networkStatus:i});var I=function(){return r.getDiff()},M=function(je,tt){void 0===tt&&(tt=r.networkStatus||Lc.loading);var nt=je.result;!1!==globalThis.__DEV__&&!f&&!iu(nt,{})&&IJ(je.missing);var rt=function(lt){return uc.of(ni({data:lt,loading:$D(tt),networkStatus:tt},je.complete?null:{partial:!0}))};return nt&&o.getDocumentInfo(s).hasForcedResolvers?o.localState.runResolvers({document:s,remoteResult:{data:nt},context:v,variables:a,onlyRunForcedResolvers:!0}).then(function(lt){return rt(lt.data||void 0)}):"none"===d&&tt===Lc.refetch&&Array.isArray(je.missing)?rt(void 0):rt(nt)},F="no-cache"===l?0:i===Lc.refetch&&"merge"!==c?1:2,re=function(){return o.getResultsFromLink(r,F,{query:s,variables:a,context:v,fetchPolicy:l,errorPolicy:d})},pe=w&&"number"==typeof x&&x!==i&&$D(i);switch(l){default:case"cache-first":return(we=I()).complete?{fromLink:!1,sources:[M(we,r.markReady())]}:f||pe?{fromLink:!0,sources:[M(we),re()]}:{fromLink:!0,sources:[re()]};case"cache-and-network":var we;return(we=I()).complete||f||pe?{fromLink:!0,sources:[M(we),re()]}:{fromLink:!0,sources:[re()]};case"cache-only":return{fromLink:!1,sources:[M(I(),r.markReady())]};case"network-only":return pe?{fromLink:!0,sources:[M(I()),re()]}:{fromLink:!0,sources:[re()]};case"no-cache":return pe?{fromLink:!0,sources:[M(r.getDiff()),re()]}:{fromLink:!0,sources:[re()]};case"standby":return{fromLink:!1,sources:[]}}},t.prototype.getOrCreateQuery=function(r){return r&&!this.queries.has(r)&&this.queries.set(r,new VU(this,r)),this.queries.get(r)},t.prototype.prepareContext=function(r){void 0===r&&(r={});var e=this.localState.prepareContext(r);return ni(ni(ni({},this.defaultContext),e),{clientAwareness:this.clientAwareness})},t}();function RJ(t){return t.kind===mu.FIELD||t.kind===mu.FRAGMENT_SPREAD||t.kind===mu.INLINE_FRAGMENT}var jfe=function(){function t(r){var e=r.cache,i=r.client,o=r.resolvers,s=r.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=e,i&&(this.client=i),o&&this.addResolvers(o),s&&this.setFragmentMatcher(s)}return t.prototype.addResolvers=function(r){var e=this;this.resolvers=this.resolvers||{},Array.isArray(r)?r.forEach(function(i){e.resolvers=_R(e.resolvers,i)}):this.resolvers=_R(this.resolvers,r)},t.prototype.setResolvers=function(r){this.resolvers={},this.addResolvers(r)},t.prototype.getResolvers=function(){return this.resolvers||{}},t.prototype.runResolvers=function(r){return hv(this,arguments,void 0,function(e){var i=e.document,o=e.remoteResult,s=e.context,a=e.variables,l=e.onlyRunForcedResolvers,c=void 0!==l&&l;return F_(this,function(d){return i?[2,this.resolveDocument(i,o.data,s,a,this.fragmentMatcher,c).then(function(f){return ni(ni({},o),{data:f.result})})]:[2,o]})})},t.prototype.setFragmentMatcher=function(r){this.fragmentMatcher=r},t.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},t.prototype.clientQuery=function(r){return Tw(["client"],r)&&this.resolvers?r:null},t.prototype.serverQuery=function(r){return TR(r)},t.prototype.prepareContext=function(r){var e=this.cache;return ni(ni({},r),{cache:e,getCacheKey:function(i){return e.identify(i)}})},t.prototype.addExportedVariables=function(r){return hv(this,arguments,void 0,function(e,i,o){return void 0===i&&(i={}),void 0===o&&(o={}),F_(this,function(s){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,i)||{},this.prepareContext(o),i).then(function(a){return ni(ni({},i),a.exportedVariables)})]:[2,ni({},i)]})})},t.prototype.shouldForceResolvers=function(r){var e=!1;return ug(r,{Directive:{enter:function(i){if("client"===i.name.value&&i.arguments&&(e=i.arguments.some(function(o){return"always"===o.name.value&&"BooleanValue"===o.value.kind&&!0===o.value.value})))return N_}}}),e},t.prototype.buildRootValueFromCache=function(r,e){return this.cache.diff({query:BN(r),variables:e,returnPartialData:!0,optimistic:!1}).result},t.prototype.resolveDocument=function(r,e){return hv(this,arguments,void 0,function(i,o,s,a,l,c){var d,f,v,w,x,I,M,F,re,pe;return void 0===s&&(s={}),void 0===a&&(a={}),void 0===l&&(l=function(){return!0}),void 0===c&&(c=!1),F_(this,function(je){return d=WS(i),f=db(i),v=ab(f),w=this.collectSelectionsToResolve(d,v),I=(x=d.operation)?x.charAt(0).toUpperCase()+x.slice(1):"Query",F=(M=this).cache,re=M.client,pe={fragmentMap:v,context:ni(ni({},s),{cache:F,client:re}),variables:a,fragmentMatcher:l,defaultOperationType:I,exportedVariables:{},selectionsToResolve:w,onlyRunForcedResolvers:c},[2,this.resolveSelectionSet(d.selectionSet,!1,o,pe).then(function(tt){return{result:tt,exportedVariables:pe.exportedVariables}})]})})},t.prototype.resolveSelectionSet=function(r,e,i,o){return hv(this,void 0,void 0,function(){var s,a,l,c,d,f=this;return F_(this,function(v){return s=o.fragmentMap,a=o.context,l=o.variables,c=[i],d=function(w){return hv(f,void 0,void 0,function(){var x;return F_(this,function(M){return(e||o.selectionsToResolve.has(w))&&ww(w,l)?B_(w)?[2,this.resolveField(w,e,i,o).then(function(F){var re;typeof F<"u"&&c.push(((re={})[gv(w)]=F,re))})]:(function _N(t){return"InlineFragment"===t.kind}(w)?x=w:ps(x=s[w.name.value],19,w.name.value),x&&x.typeCondition&&o.fragmentMatcher(i,x.typeCondition.name.value,a)?[2,this.resolveSelectionSet(x.selectionSet,e,i,o).then(function(F){c.push(F)})]:[2]):[2]})})},[2,Promise.all(r.selections.map(d)).then(function(){return QS(c)})]})})},t.prototype.resolveField=function(r,e,i,o){return hv(this,void 0,void 0,function(){var s,a,l,c,d,f,v,w,x,I=this;return F_(this,function(M){return i?(s=o.variables,a=r.name.value,l=gv(r),c=a!==l,d=i[l]||i[a],f=Promise.resolve(d),(!o.onlyRunForcedResolvers||this.shouldForceResolvers(r))&&(v=i.__typename||o.defaultOperationType,(w=this.resolvers&&this.resolvers[v])&&(x=w[c?a:l])&&(f=Promise.resolve(PD.withValue(this.cache,x,[i,Cw(r,s),o.context,{field:r,fragmentMap:o.fragmentMap}])))),[2,f.then(function(F){var re,pe;if(void 0===F&&(F=d),r.directives&&r.directives.forEach(function(je){"export"===je.name.value&&je.arguments&&je.arguments.forEach(function(tt){"as"===tt.name.value&&"StringValue"===tt.value.kind&&(o.exportedVariables[tt.value.value]=F)})}),!r.selectionSet||null==F)return F;var we=null!==(pe=null===(re=r.directives)||void 0===re?void 0:re.some(function(je){return"client"===je.name.value}))&&void 0!==pe&&pe;return Array.isArray(F)?I.resolveSubSelectedArray(r,e||we,F,o):r.selectionSet?I.resolveSelectionSet(r.selectionSet,e||we,F,o):void 0})]):[2,null]})})},t.prototype.resolveSubSelectedArray=function(r,e,i,o){var s=this;return Promise.all(i.map(function(a){return null===a?null:Array.isArray(a)?s.resolveSubSelectedArray(r,e,a,o):r.selectionSet?s.resolveSelectionSet(r.selectionSet,e,a,o):void 0}))},t.prototype.collectSelectionsToResolve=function(r,e){var i=function(a){return!Array.isArray(a)},o=this.selectionsToResolveCache;return function s(a){if(!o.has(a)){var l=new Set;o.set(a,l),ug(a,{Directive:function(c,d,f,v,w){"client"===c.name.value&&w.forEach(function(x){i(x)&&RJ(x)&&l.add(x)})},FragmentSpread:function(c,d,f,v,w){var x=e[c.name.value];ps(x,20,c.name.value);var I=s(x);I.size>0&&(w.forEach(function(M){i(M)&&RJ(M)&&l.add(M)}),l.add(c),I.forEach(function(M){l.add(M)}))}})}return o.get(a)}(r)},t}();function HU(t,r){return xw(t,r,r.variables&&{variables:xw(ni(ni({},t&&t.variables),r.variables))})}var FJ=!1,UU=function(){function t(r){var i,e=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!r.cache)throw Qp(16);var o=r.uri,l=r.cache,c=r.documentTransform,d=r.ssrMode,f=void 0!==d&&d,v=r.ssrForceFetchDelay,w=void 0===v?0:v,x=r.connectToDevTools,I=r.queryDeduplication,M=void 0===I||I,F=r.defaultOptions,re=r.defaultContext,pe=r.assumeImmutableResults,we=void 0===pe?l.assumeImmutableResults:pe,je=r.resolvers,tt=r.typeDefs,nt=r.fragmentMatcher,rt=r.name,lt=r.version,bt=r.devtools,Wt=r.dataMasking,Zt=r.link;Zt||(Zt=o?new kfe({uri:o,credentials:r.credentials,headers:r.headers}):Ow.empty()),this.link=Zt,this.cache=l,this.disableNetworkFetches=f||w>0,this.queryDeduplication=M,this.defaultOptions=F||Object.create(null),this.typeDefs=tt,this.devtoolsConfig=ni(ni({},bt),{enabled:null!==(i=bt?.enabled)&&void 0!==i?i:x}),void 0===this.devtoolsConfig.enabled&&(this.devtoolsConfig.enabled=!1!==globalThis.__DEV__),w&&setTimeout(function(){return e.disableNetworkFetches=!1},w),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=OM,this.localState=new jfe({cache:l,client:this,resolvers:je,fragmentMatcher:nt}),this.queryManager=new Ffe({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:re,documentTransform:c,queryDeduplication:M,ssrMode:f,dataMasking:!!Wt,clientAwareness:{name:rt,version:lt},localState:this.localState,assumeImmutableResults:we,onBroadcast:this.devtoolsConfig.enabled?function(){e.devToolsHookCb&&e.devToolsHookCb({action:{},state:{queries:e.queryManager.getQueryStore(),mutations:e.queryManager.mutationStore||{}},dataWithOptimisticResults:e.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return t.prototype.connectToDevTools=function(){if(!(typeof window>"u")){var r=window,e=Symbol.for("apollo.devtools");(r[e]=r[e]||[]).push(this),r.__APOLLO_CLIENT__=this,!FJ&&!1!==globalThis.__DEV__&&(FJ=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var i=window.navigator,o=i&&i.userAgent,s=void 0;"string"==typeof o&&(o.indexOf("Chrome/")>-1?s="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":o.indexOf("Firefox/")>-1&&(s="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),s&&!1!==globalThis.__DEV__&&ps.log("Download the Apollo DevTools for a better development experience: %s",s)}},1e4))}},Object.defineProperty(t.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),t.prototype.stop=function(){this.queryManager.stop()},t.prototype.watchQuery=function(r){return this.defaultOptions.watchQuery&&(r=HU(this.defaultOptions.watchQuery,r)),this.disableNetworkFetches&&("network-only"===r.fetchPolicy||"cache-and-network"===r.fetchPolicy)&&(r=ni(ni({},r),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(r)},t.prototype.query=function(r){return this.defaultOptions.query&&(r=HU(this.defaultOptions.query,r)),ps("cache-and-network"!==r.fetchPolicy,17),this.disableNetworkFetches&&"network-only"===r.fetchPolicy&&(r=ni(ni({},r),{fetchPolicy:"cache-first"})),this.queryManager.query(r)},t.prototype.mutate=function(r){return this.defaultOptions.mutate&&(r=HU(this.defaultOptions.mutate,r)),this.queryManager.mutate(r)},t.prototype.subscribe=function(r){var e=this,i=this.queryManager.generateQueryId();return this.queryManager.startGraphQLSubscription(r).map(function(o){return ni(ni({},o),{data:e.queryManager.maskOperation({document:r.query,data:o.data,fetchPolicy:r.fetchPolicy,id:i})})})},t.prototype.readQuery=function(r,e){return void 0===e&&(e=!1),this.cache.readQuery(r,e)},t.prototype.watchFragment=function(r){var e;return this.cache.watchFragment(ni(ni({},r),((e={})[Symbol.for("apollo.dataMasking")]=this.queryManager.dataMasking,e)))},t.prototype.readFragment=function(r,e){return void 0===e&&(e=!1),this.cache.readFragment(r,e)},t.prototype.writeQuery=function(r){var e=this.cache.writeQuery(r);return!1!==r.broadcast&&this.queryManager.broadcastQueries(),e},t.prototype.writeFragment=function(r){var e=this.cache.writeFragment(r);return!1!==r.broadcast&&this.queryManager.broadcastQueries(),e},t.prototype.__actionHookForDevTools=function(r){this.devToolsHookCb=r},t.prototype.__requestRaw=function(r){return RU(this.link,r)},t.prototype.resetStore=function(){var r=this;return Promise.resolve().then(function(){return r.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(r.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return r.reFetchObservableQueries()})},t.prototype.clearStore=function(){var r=this;return Promise.resolve().then(function(){return r.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(r.clearStoreCallbacks.map(function(e){return e()}))})},t.prototype.onResetStore=function(r){var e=this;return this.resetStoreCallbacks.push(r),function(){e.resetStoreCallbacks=e.resetStoreCallbacks.filter(function(i){return i!==r})}},t.prototype.onClearStore=function(r){var e=this;return this.clearStoreCallbacks.push(r),function(){e.clearStoreCallbacks=e.clearStoreCallbacks.filter(function(i){return i!==r})}},t.prototype.reFetchObservableQueries=function(r){return this.queryManager.reFetchObservableQueries(r)},t.prototype.refetchQueries=function(r){var e=this.queryManager.refetchQueries(r),i=[],o=[];e.forEach(function(a,l){i.push(l),o.push(a)});var s=Promise.all(o);return s.queries=i,s.results=o,s.catch(function(a){!1!==globalThis.__DEV__&&ps.debug(18,a)}),s},t.prototype.getObservableQueries=function(r){return void 0===r&&(r="active"),this.queryManager.getObservableQueries(r)},t.prototype.extract=function(r){return this.cache.extract(r)},t.prototype.restore=function(r){return this.cache.restore(r)},t.prototype.addResolvers=function(r){this.localState.addResolvers(r)},t.prototype.setResolvers=function(r){this.localState.setResolvers(r)},t.prototype.getResolvers=function(){return this.localState.getResolvers()},t.prototype.setLocalStateFragmentMatcher=function(r){this.localState.setFragmentMatcher(r)},t.prototype.setLink=function(r){this.link=this.queryManager.link=r},Object.defineProperty(t.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),t}();!1!==globalThis.__DEV__&&(UU.prototype.getMemoryInternals=tN);var Os=b(6354);function Ih(t,r,e=1/0){return(0,Ye.T)(r)?Ih((i,o)=>(0,Os.T)((s,a)=>r(i,s,o,a))(Rs(t(i,o))),e):("number"==typeof r&&(e=r),(0,zd.N)((i,o)=>function Hfe(t,r,e,i,o,s,a,l){const c=[];let d=0,f=0,v=!1;const w=()=>{v&&!c.length&&!d&&r.complete()},x=M=>d<i?I(M):c.push(M),I=M=>{s&&r.next(M),d++;let F=!1;Rs(e(M,f++)).subscribe((0,Dd._)(r,re=>{o?.(re),s?x(re):r.next(re)},()=>{F=!0},void 0,()=>{if(F)try{for(d--;c.length&&d<i;){const re=c.shift();a?bb(r,a,()=>I(re)):I(re)}w()}catch(re){r.error(re)}}))};return t.subscribe((0,Dd._)(r,x,()=>{v=!0,w()})),()=>{l?.()}}(i,o,t,e)))}var vx=b(3669);function qD(t=1/0){return Ih(vx.D,t)}function PJ(t){return t&&(0,Ye.T)(t.schedule)}function $U(t){return t[t.length-1]}function LJ(t){return(0,Ye.T)($U(t))?t.pop():void 0}function QR(t){return PJ($U(t))?t.pop():void 0}function YU(...t){return function Ufe(){return qD(1)}()(Pc(t,QR(t)))}function WU(...t){const r=QR(t);return(0,zd.N)((e,i)=>{(r?YU(t,e,r):YU(t,e)).subscribe(i)})}function NJ(t){return new Fc.c(r=>(t().then(e=>{r.closed||(r.next(e),r.complete())},e=>{r.closed||r.error(e)}),()=>r.unsubscribe()))}class Wfe{zone;constructor(r){this.zone=r}now=Date.now?Date.now:()=>+new Date;schedule(r,e=0,i){return this.zone.run(()=>A.schedule(r,e,i))}}function zU(t){return t[ce.s]=()=>t,t}function qU(t,r){return t.pipe(MU(new Wfe(r)))}class qfe{obsQuery;valueChanges;queryId;constructor(r,e,i){this.obsQuery=r;const o=qU(Pc(zU(this.obsQuery)),e);this.valueChanges=i.useInitialLoading?o.pipe(function zfe(t){return function(e){return new Fc.c(function(o){const s=t.getCurrentResult(),{loading:a,errors:l,error:c,partial:d,data:f}=s,{partialRefetch:v,fetchPolicy:w}=t.options,x=l||c;return v&&d&&(!f||0===Object.keys(f).length)&&"cache-only"!==w&&!a&&!x&&o.next({...s,loading:!0,networkStatus:Lc.loading}),e.subscribe(o)})}}(this.obsQuery)):o,this.queryId=this.obsQuery.queryId}get options(){return this.obsQuery.options}get variables(){return this.obsQuery.variables}result(){return this.obsQuery.result()}getCurrentResult(){return this.obsQuery.getCurrentResult()}getLastResult(){return this.obsQuery.getLastResult()}getLastError(){return this.obsQuery.getLastError()}resetLastResults(){return this.obsQuery.resetLastResults()}refetch(r){return this.obsQuery.refetch(r)}fetchMore(r){return this.obsQuery.fetchMore(r)}subscribeToMore(r){return this.obsQuery.subscribeToMore(r)}updateQuery(r){return this.obsQuery.updateQuery(r)}stopPolling(){return this.obsQuery.stopPolling()}startPolling(r){return this.obsQuery.startPolling(r)}setOptions(r){return this.obsQuery.setOptions(r)}setVariables(r){return this.obsQuery.setVariables(r)}}const XU=new n.nKC("APOLLO_FLAGS"),GJ=new n.nKC("APOLLO_OPTIONS"),BJ=new n.nKC("APOLLO_NAMED_OPTIONS");class VJ{ngZone;flags;_client;useInitialLoading;useMutationLoading;constructor(r,e,i){this.ngZone=r,this.flags=e,this._client=i,this.useInitialLoading=e?.useInitialLoading??!1,this.useMutationLoading=e?.useMutationLoading??!1}watchQuery(r){return new qfe(this.ensureClient().watchQuery({...r}),this.ngZone,{useInitialLoading:this.useInitialLoading,...r})}query(r){return NJ(()=>this.ensureClient().query({...r}))}mutate(r){return function Yfe(t,r){return r?t.pipe(WU({loading:!0}),(0,Os.T)(e=>({...e,loading:!!e.loading}))):t.pipe((0,Os.T)(e=>({...e,loading:!1})))}(NJ(()=>this.ensureClient().mutate({...r})),r.useMutationLoading??this.useMutationLoading)}watchFragment(r,e){const i=Pc(zU(this.ensureClient().watchFragment({...r})));return e&&!0!==e.useZone?i:qU(i,this.ngZone)}subscribe(r,e){const i=Pc(zU(this.ensureClient().subscribe({...r})));return e&&!0!==e.useZone?i:qU(i,this.ngZone)}get client(){return this.ensureClient()}set client(r){if(this._client)throw new Error("Client has been already defined");this._client=r}ensureClient(){return this.checkInstance(),this._client}checkInstance(){if(this._client)return!0;throw new Error("Client has not been defined yet")}}let jJ=(()=>{class t extends VJ{map=new Map;constructor(e,i,o,s){if(super(e,s),i&&this.createDefault(i),o&&"object"==typeof o)for(let a in o)o.hasOwnProperty(a)&&this.create(o[a],a)}create(e,i){KU(i)?this.createNamed(i,e):this.createDefault(e)}default(){return this}use(e){return KU(e)?this.map.get(e):this.default()}createDefault(e){if(this._client)throw new Error("Apollo has been already created.");this.client=this.ngZone.runOutsideAngular(()=>new UU(e))}createNamed(e,i){if(this.map.has(e))throw new Error(`Client ${e} has been already created`);this.map.set(e,new VJ(this.ngZone,this.flags,this.ngZone.runOutsideAngular(()=>new UU(i))))}removeClient(e){KU(e)?this.map.delete(e):this._client=void 0}static \u0275fac=function(i){return new(i||t)(n.KVO(n.SKi),n.KVO(GJ,8),n.KVO(BJ,8),n.KVO(XU,8))};static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();function KU(t){return!!t&&"default"!==t}function Xfe(t,r={}){return[jJ,{provide:GJ,useFactory:t},{provide:XU,useValue:r}]}var Kfe=function(){function t(r){var e=r.batchDebounce,i=r.batchInterval,o=r.batchMax,s=r.batchHandler,a=r.batchKey;this.batchesByKey=new Map,this.scheduledBatchTimerByKey=new Map,this.batchDebounce=e,this.batchInterval=i,this.batchMax=o||0,this.batchHandler=s,this.batchKey=a||function(){return""}}return t.prototype.enqueueRequest=function(r){var e=this,i=ni(ni({},r),{next:[],error:[],complete:[],subscribers:new Set}),o=this.batchKey(r.operation);return i.observable||(i.observable=new uc(function(s){var a=e.batchesByKey.get(o);a||e.batchesByKey.set(o,a=new Set);var l=0===a.size,c=0===i.subscribers.size;return i.subscribers.add(s),c&&a.add(i),s.next&&i.next.push(s.next.bind(s)),s.error&&i.error.push(s.error.bind(s)),s.complete&&i.complete.push(s.complete.bind(s)),(l||e.batchDebounce)&&e.scheduleQueueConsumption(o),a.size===e.batchMax&&e.consumeQueue(o),function(){var d;i.subscribers.delete(s)&&i.subscribers.size<1&&a.delete(i)&&a.size<1&&(e.consumeQueue(o),null===(d=a.subscription)||void 0===d||d.unsubscribe())}})),i.observable},t.prototype.consumeQueue=function(r){void 0===r&&(r="");var e=this.batchesByKey.get(r);if(this.batchesByKey.delete(r),e&&e.size){var i=[],o=[],s=[],a=[],l=[],c=[];e.forEach(function(v){i.push(v.operation),o.push(v.forward),s.push(v.observable),a.push(v.next),l.push(v.error),c.push(v.complete)});var d=this.batchHandler(i,o)||uc.of(),f=function(v){l.forEach(function(w){w&&w.forEach(function(x){return x(v)})})};return e.subscription=d.subscribe({next:function(v){if(Array.isArray(v)||(v=[v]),a.length!==v.length){var w=new Error("server returned results with length ".concat(v.length,", expected length of ").concat(a.length));return w.result=v,f(w)}v.forEach(function(x,I){a[I]&&a[I].forEach(function(M){return M(x)})})},error:f,complete:function(){c.forEach(function(v){v&&v.forEach(function(w){return w()})})}}),s}},t.prototype.scheduleQueueConsumption=function(r){var e=this;clearTimeout(this.scheduledBatchTimerByKey.get(r)),this.scheduledBatchTimerByKey.set(r,setTimeout(function(){e.consumeQueue(r),e.scheduledBatchTimerByKey.delete(r)},this.batchInterval))},t}(),lr=(function(t){function r(e){var i=t.call(this)||this,o=e||{},a=o.batchInterval,c=o.batchMax,f=o.batchHandler,w=o.batchKey;return i.batcher=new Kfe({batchDebounce:o.batchDebounce,batchInterval:void 0===a?10:a,batchMax:void 0===c?0:c,batchHandler:void 0===f?function(){return null}:f,batchKey:void 0===w?function(){return""}:w}),e.batchHandler.length<=1&&(i.request=function(I){return i.batcher.enqueueRequest({operation:I})}),i}zf(r,t),r.prototype.request=function(e,i){return this.batcher.enqueueRequest({operation:e,forward:i})}}(Ow),b(467));function Fs(...t){return Pc(t,QR(t))}function XD(t,r){return(0,Ye.T)(r)?Ih(t,r,1):Ih(t,1)}function U_(t,r){return(0,zd.N)((e,i)=>{let o=0;e.subscribe((0,Dd._)(i,s=>t.call(r,s,o++)&&i.next(s)))})}function JR(t){return(0,zd.N)((r,e)=>{try{r.subscribe(e)}finally{e.add(t)}})}function qd(t,r){return(0,zd.N)((e,i)=>{let o=null,s=0,a=!1;const l=()=>a&&!o&&i.complete();e.subscribe((0,Dd._)(i,c=>{o?.unsubscribe();let d=0;const f=s++;Rs(t(c,f)).subscribe(o=(0,Dd._)(i,v=>i.next(r?r(c,v,f,d++):v),()=>{o=null,l()}))},()=>{a=!0,l()}))})}class V5{}class j5{}class Am{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(r){r?"string"==typeof r?this.lazyInit=()=>{this.headers=new Map,r.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const o=e.slice(0,i),s=e.slice(i+1).trim();this.addHeaderEntry(o,s)}})}:typeof Headers<"u"&&r instanceof Headers?(this.headers=new Map,r.forEach((e,i)=>{this.addHeaderEntry(i,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(r).forEach(([e,i])=>{this.setHeaderEntries(e,i)})}:this.headers=new Map}has(r){return this.init(),this.headers.has(r.toLowerCase())}get(r){this.init();const e=this.headers.get(r.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(r){return this.init(),this.headers.get(r.toLowerCase())||null}append(r,e){return this.clone({name:r,value:e,op:"a"})}set(r,e){return this.clone({name:r,value:e,op:"s"})}delete(r,e){return this.clone({name:r,value:e,op:"d"})}maybeSetNormalizedName(r,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,r)}init(){this.lazyInit&&(this.lazyInit instanceof Am?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(r=>this.applyUpdate(r)),this.lazyUpdate=null))}copyFrom(r){r.init(),Array.from(r.headers.keys()).forEach(e=>{this.headers.set(e,r.headers.get(e)),this.normalizedNames.set(e,r.normalizedNames.get(e))})}clone(r){const e=new Am;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Am?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([r]),e}applyUpdate(r){const e=r.name.toLowerCase();switch(r.op){case"a":case"s":let i=r.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(r.name,e);const o=("a"===r.op?this.headers.get(e):void 0)||[];o.push(...i),this.headers.set(e,o);break;case"d":const s=r.value;if(s){let a=this.headers.get(e);if(!a)return;a=a.filter(l=>-1===s.indexOf(l)),0===a.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}else this.headers.delete(e),this.normalizedNames.delete(e)}}addHeaderEntry(r,e){const i=r.toLowerCase();this.maybeSetNormalizedName(r,i),this.headers.has(i)?this.headers.get(i).push(e):this.headers.set(i,[e])}setHeaderEntries(r,e){const i=(Array.isArray(e)?e:[e]).map(s=>s.toString()),o=r.toLowerCase();this.headers.set(o,i),this.maybeSetNormalizedName(r,o)}forEach(r){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>r(this.normalizedNames.get(e),this.headers.get(e)))}}class Jfe{encodeKey(r){return HJ(r)}encodeValue(r){return HJ(r)}decodeKey(r){return decodeURIComponent(r)}decodeValue(r){return decodeURIComponent(r)}}const eme=/%(\d[a-f0-9])/gi,tme={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function HJ(t){return encodeURIComponent(t).replace(eme,(r,e)=>tme[e]??r)}function H5(t){return`${t}`}class Mp{map;encoder;updates=null;cloneFrom=null;constructor(r={}){if(this.encoder=r.encoder||new Jfe,r.fromString){if(r.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function Zfe(t,r){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{const s=o.indexOf("="),[a,l]=-1==s?[r.decodeKey(o),""]:[r.decodeKey(o.slice(0,s)),r.decodeValue(o.slice(s+1))],c=e.get(a)||[];c.push(l),e.set(a,c)}),e}(r.fromString,this.encoder)}else r.fromObject?(this.map=new Map,Object.keys(r.fromObject).forEach(e=>{const i=r.fromObject[e],o=Array.isArray(i)?i.map(H5):[H5(i)];this.map.set(e,o)})):this.map=null}has(r){return this.init(),this.map.has(r)}get(r){this.init();const e=this.map.get(r);return e?e[0]:null}getAll(r){return this.init(),this.map.get(r)||null}keys(){return this.init(),Array.from(this.map.keys())}append(r,e){return this.clone({param:r,value:e,op:"a"})}appendAll(r){const e=[];return Object.keys(r).forEach(i=>{const o=r[i];Array.isArray(o)?o.forEach(s=>{e.push({param:i,value:s,op:"a"})}):e.push({param:i,value:o,op:"a"})}),this.clone(e)}set(r,e){return this.clone({param:r,value:e,op:"s"})}delete(r,e){return this.clone({param:r,value:e,op:"d"})}toString(){return this.init(),this.keys().map(r=>{const e=this.encoder.encodeKey(r);return this.map.get(r).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(r=>""!==r).join("&")}clone(r){const e=new Mp({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(r),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(r=>this.map.set(r,this.cloneFrom.map.get(r))),this.updates.forEach(r=>{switch(r.op){case"a":case"s":const e=("a"===r.op?this.map.get(r.param):void 0)||[];e.push(H5(r.value)),this.map.set(r.param,e);break;case"d":if(void 0===r.value){this.map.delete(r.param);break}{let i=this.map.get(r.param)||[];const o=i.indexOf(H5(r.value));-1!==o&&i.splice(o,1),i.length>0?this.map.set(r.param,i):this.map.delete(r.param)}}}),this.cloneFrom=this.updates=null)}}class nme{map=new Map;set(r,e){return this.map.set(r,e),this}get(r){return this.map.has(r)||this.map.set(r,r.defaultValue()),this.map.get(r)}delete(r){return this.map.delete(r),this}has(r){return this.map.has(r)}keys(){return this.map.keys()}}function UJ(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function $J(t){return typeof Blob<"u"&&t instanceof Blob}function YJ(t){return typeof FormData<"u"&&t instanceof FormData}class ZR{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(r,e,i,o){let s;if(this.url=e,this.method=r.toUpperCase(),function ime(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==i?i:null,s=o):s=i,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params),this.transferCache=s.transferCache),this.headers??=new Am,this.context??=new nme,this.params){const a=this.params.toString();if(0===a.length)this.urlWithParams=e;else{const l=e.indexOf("?");this.urlWithParams=e+(-1===l?"?":l<e.length-1?"&":"")+a}}else this.params=new Mp,this.urlWithParams=e}serializeBody(){return null===this.body?null:"string"==typeof this.body||UJ(this.body)||$J(this.body)||YJ(this.body)||function rme(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}(this.body)?this.body:this.body instanceof Mp?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||YJ(this.body)?null:$J(this.body)?this.body.type||null:UJ(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Mp?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(r={}){const e=r.method||this.method,i=r.url||this.url,o=r.responseType||this.responseType,s=r.transferCache??this.transferCache,a=void 0!==r.body?r.body:this.body,l=r.withCredentials??this.withCredentials,c=r.reportProgress??this.reportProgress;let d=r.headers||this.headers,f=r.params||this.params;const v=r.context??this.context;return void 0!==r.setHeaders&&(d=Object.keys(r.setHeaders).reduce((w,x)=>w.set(x,r.setHeaders[x]),d)),r.setParams&&(f=Object.keys(r.setParams).reduce((w,x)=>w.set(x,r.setParams[x]),f)),new ZR(e,i,a,{params:f,headers:d,context:v,reportProgress:c,responseType:o,withCredentials:l,transferCache:s})}}var $_=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}($_||{});class QU{headers;status;statusText;url;ok;type;constructor(r,e=200,i="OK"){this.headers=r.headers||new Am,this.status=void 0!==r.status?r.status:e,this.statusText=r.statusText||i,this.url=r.url||null,this.ok=this.status>=200&&this.status<300}}class U5 extends QU{constructor(r={}){super(r)}type=$_.ResponseHeader;clone(r={}){return new U5({headers:r.headers||this.headers,status:void 0!==r.status?r.status:this.status,statusText:r.statusText||this.statusText,url:r.url||this.url||void 0})}}class Fw extends QU{body;constructor(r={}){super(r),this.body=void 0!==r.body?r.body:null}type=$_.Response;clone(r={}){return new Fw({body:void 0!==r.body?r.body:this.body,headers:r.headers||this.headers,status:void 0!==r.status?r.status:this.status,statusText:r.statusText||this.statusText,url:r.url||this.url||void 0})}}class KD extends QU{name="HttpErrorResponse";message;error;ok=!1;constructor(r){super(r,0,"Unknown Error"),this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${r.url||"(unknown url)"}`:`Http failure response for ${r.url||"(unknown url)"}: ${r.status} ${r.statusText}`,this.error=r.error||null}}function JU(t,r){return{body:r,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}let Da=(()=>{class t{handler;constructor(e){this.handler=e}request(e,i,o={}){let s;if(e instanceof ZR)s=e;else{let c,d;c=o.headers instanceof Am?o.headers:new Am(o.headers),o.params&&(d=o.params instanceof Mp?o.params:new Mp({fromObject:o.params})),s=new ZR(e,i,void 0!==o.body?o.body:null,{headers:c,context:o.context,params:d,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}const a=Fs(s).pipe(XD(c=>this.handler.handle(c)));if(e instanceof ZR||"events"===o.observe)return a;const l=a.pipe(U_(c=>c instanceof Fw));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return l.pipe((0,Os.T)(c=>{if(null!==c.body&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return l.pipe((0,Os.T)(c=>{if(null!==c.body&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return l.pipe((0,Os.T)(c=>{if(null!==c.body&&"string"!=typeof c.body)throw new Error("Response is not a string.");return c.body}));default:return l.pipe((0,Os.T)(c=>c.body))}case"response":return l;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new Mp).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,o={}){return this.request("PATCH",e,JU(o,i))}post(e,i,o={}){return this.request("POST",e,JU(o,i))}put(e,i,o={}){return this.request("PUT",e,JU(o,i))}static \u0275fac=function(i){return new(i||t)(n.KVO(V5))};static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const ame=/^\)\]\}',?\n/;function zJ(t){if(t.url)return t.url;const r="X-Request-URL".toLocaleLowerCase();return t.headers.get(r)}let ZU=(()=>{class t{fetchImpl=(0,n.WQX)(cme,{optional:!0})?.fetch??((...e)=>globalThis.fetch(...e));ngZone=(0,n.WQX)(n.SKi);handle(e){return new Fc.c(i=>{const o=new AbortController;return this.doRequest(e,o.signal,i).then(e$,s=>i.error(new KD({error:s}))),()=>o.abort()})}doRequest(e,i,o){var s=this;return(0,lr.A)(function*(){const a=s.createRequestInit(e);let l;try{const I=s.ngZone.runOutsideAngular(()=>s.fetchImpl(e.urlWithParams,{signal:i,...a}));(function ume(t){t.then(e$,e$)})(I),o.next({type:$_.Sent}),l=yield I}catch(I){return void o.error(new KD({error:I,status:I.status??0,statusText:I.statusText,url:e.urlWithParams,headers:I.headers}))}const c=new Am(l.headers),d=l.statusText,f=zJ(l)??e.urlWithParams;let v=l.status,w=null;if(e.reportProgress&&o.next(new U5({headers:c,status:v,statusText:d,url:f})),l.body){const I=l.headers.get("content-length"),M=[],F=l.body.getReader();let pe,we,re=0;const je=typeof Zone<"u"&&Zone.current;yield s.ngZone.runOutsideAngular((0,lr.A)(function*(){for(;;){const{done:nt,value:rt}=yield F.read();if(nt)break;if(M.push(rt),re+=rt.length,e.reportProgress){we="text"===e.responseType?(we??"")+(pe??=new TextDecoder).decode(rt,{stream:!0}):void 0;const lt=()=>o.next({type:$_.DownloadProgress,total:I?+I:void 0,loaded:re,partialText:we});je?je.run(lt):lt()}}}));const tt=s.concatChunks(M,re);try{const nt=l.headers.get("Content-Type")??"";w=s.parseBody(e,tt,nt)}catch(nt){return void o.error(new KD({error:nt,headers:new Am(l.headers),status:l.status,statusText:l.statusText,url:zJ(l)??e.urlWithParams}))}}0===v&&(v=w?200:0),v>=200&&v<300?(o.next(new Fw({body:w,headers:c,status:v,statusText:d,url:f})),o.complete()):o.error(new KD({error:w,headers:c,status:v,statusText:d,url:f}))})()}parseBody(e,i,o){switch(e.responseType){case"json":const s=(new TextDecoder).decode(i).replace(ame,"");return""===s?null:JSON.parse(s);case"text":return(new TextDecoder).decode(i);case"blob":return new Blob([i],{type:o});case"arraybuffer":return i.buffer}}createRequestInit(e){const i={},o=e.withCredentials?"include":void 0;if(e.headers.forEach((s,a)=>i[s]=a.join(",")),e.headers.has("Accept")||(i.Accept="application/json, text/plain, */*"),!e.headers.has("Content-Type")){const s=e.detectContentTypeHeader();null!==s&&(i["Content-Type"]=s)}return{body:e.serializeBody(),method:e.method,headers:i,credentials:o}}concatChunks(e,i){const o=new Uint8Array(i);let s=0;for(const a of e)o.set(a,s),s+=a.length;return o}static \u0275fac=function(i){return new(i||t)};static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();class cme{}function e$(){}function qJ(t,r){return r(t)}function dme(t,r){return(e,i)=>r.intercept(e,{handle:o=>t(o,i)})}const hme=new n.nKC(""),eO=new n.nKC(""),XJ=new n.nKC(""),KJ=new n.nKC("",{providedIn:"root",factory:()=>!0});function fme(){let t=null;return(r,e)=>{null===t&&(t=((0,n.WQX)(hme,{optional:!0})??[]).reduceRight(dme,qJ));const i=(0,n.WQX)(n.Ua0);if((0,n.WQX)(KJ)){const s=i.add();return t(r,e).pipe(JR(()=>i.remove(s)))}return t(r,e)}}let QJ=(()=>{class t extends V5{backend;injector;chain=null;pendingTasks=(0,n.WQX)(n.Ua0);contributeToStability=(0,n.WQX)(KJ);constructor(e,i){super(),this.backend=e,this.injector=i}handle(e){if(null===this.chain){const i=Array.from(new Set([...this.injector.get(eO),...this.injector.get(XJ,[])]));this.chain=i.reduceRight((o,s)=>function pme(t,r,e){return(i,o)=>(0,n.N4e)(e,()=>r(i,s=>t(s,o)))}(o,s,this.injector),qJ)}if(this.contributeToStability){const i=this.pendingTasks.add();return this.chain(e,o=>this.backend.handle(o)).pipe(JR(()=>this.pendingTasks.remove(i)))}return this.chain(e,i=>this.backend.handle(i))}static \u0275fac=function(i){return new(i||t)(n.KVO(j5),n.KVO(n.uvJ))};static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const yme=/^\)\]\}',?\n/;let ZJ=(()=>{class t{xhrFactory;constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new n.wOt(-2800,!1);const i=this.xhrFactory;return(i.\u0275loadImpl?Pc(i.\u0275loadImpl()):Fs(null)).pipe(qd(()=>new Fc.c(s=>{const a=i.build();if(a.open(e.method,e.urlWithParams),e.withCredentials&&(a.withCredentials=!0),e.headers.forEach((M,F)=>a.setRequestHeader(M,F.join(","))),e.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const M=e.detectContentTypeHeader();null!==M&&a.setRequestHeader("Content-Type",M)}if(e.responseType){const M=e.responseType.toLowerCase();a.responseType="json"!==M?M:"text"}const l=e.serializeBody();let c=null;const d=()=>{if(null!==c)return c;const M=a.statusText||"OK",F=new Am(a.getAllResponseHeaders()),re=function bme(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(a)||e.url;return c=new U5({headers:F,status:a.status,statusText:M,url:re}),c},f=()=>{let{headers:M,status:F,statusText:re,url:pe}=d(),we=null;204!==F&&(we=typeof a.response>"u"?a.responseText:a.response),0===F&&(F=we?200:0);let je=F>=200&&F<300;if("json"===e.responseType&&"string"==typeof we){const tt=we;we=we.replace(yme,"");try{we=""!==we?JSON.parse(we):null}catch(nt){we=tt,je&&(je=!1,we={error:nt,text:we})}}je?(s.next(new Fw({body:we,headers:M,status:F,statusText:re,url:pe||void 0})),s.complete()):s.error(new KD({error:we,headers:M,status:F,statusText:re,url:pe||void 0}))},v=M=>{const{url:F}=d(),re=new KD({error:M,status:a.status||0,statusText:a.statusText||"Unknown Error",url:F||void 0});s.error(re)};let w=!1;const x=M=>{w||(s.next(d()),w=!0);let F={type:$_.DownloadProgress,loaded:M.loaded};M.lengthComputable&&(F.total=M.total),"text"===e.responseType&&a.responseText&&(F.partialText=a.responseText),s.next(F)},I=M=>{let F={type:$_.UploadProgress,loaded:M.loaded};M.lengthComputable&&(F.total=M.total),s.next(F)};return a.addEventListener("load",f),a.addEventListener("error",v),a.addEventListener("timeout",v),a.addEventListener("abort",v),e.reportProgress&&(a.addEventListener("progress",x),null!==l&&a.upload&&a.upload.addEventListener("progress",I)),a.send(l),s.next({type:$_.Sent}),()=>{a.removeEventListener("error",v),a.removeEventListener("abort",v),a.removeEventListener("load",f),a.removeEventListener("timeout",v),e.reportProgress&&(a.removeEventListener("progress",x),null!==l&&a.upload&&a.upload.removeEventListener("progress",I)),a.readyState!==a.DONE&&a.abort()}})))}static \u0275fac=function(i){return new(i||t)(n.KVO(Ft))};static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const t$=new n.nKC(""),eZ=new n.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),tZ=new n.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class nZ{}let Tme=(()=>{class t{doc;platform;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(e,i,o){this.doc=e,this.platform=i,this.cookieName=o}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=ss(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(i){return new(i||t)(n.KVO(be),n.KVO(n.Agw),n.KVO(eZ))};static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();function Sme(t,r){const e=t.url.toLowerCase();if(!(0,n.WQX)(t$)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return r(t);const i=(0,n.WQX)(nZ).getToken(),o=(0,n.WQX)(tZ);return null!=i&&!t.headers.has(o)&&(t=t.clone({headers:t.headers.set(o,i)})),r(t)}var Pw=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(Pw||{});function n$(...t){const r=[Da,ZJ,QJ,{provide:V5,useExisting:QJ},{provide:j5,useFactory:()=>(0,n.WQX)(ZU,{optional:!0})??(0,n.WQX)(ZJ)},{provide:eO,useValue:Sme,multi:!0},{provide:t$,useValue:!0},{provide:nZ,useClass:Tme}];for(const e of t)r.push(...e.\u0275providers);return(0,n.EmA)(r)}const iZ=new n.nKC("");function i$(){return function _x(t,r){return{\u0275kind:t,\u0275providers:r}}(Pw.LegacyInterceptors,[{provide:iZ,useFactory:fme},{provide:eO,useExisting:iZ,multi:!0}])}const r$={batchInterval:10,batchMax:10,uri:"graphql",method:"POST",withCredentials:!1,includeQuery:!0,includeExtensions:!1,useMultipart:!1};function Cb(t,r,e){return function Y5(...t){return t.find(r=>typeof r<"u")}(t[e],r[e],r$[e])}class Ome extends Ow{httpClient;options;requester;print=YN;constructor(r,e){super(),this.httpClient=r,this.options=e,this.options.operationPrinter&&(this.print=this.options.operationPrinter),this.requester=i=>new uc(o=>{const s=i.getContext();let a=Cb(s,this.options,"method");const l=Cb(s,this.options,"includeQuery"),c=Cb(s,this.options,"includeExtensions"),d=Cb(s,this.options,"uri"),f=Cb(s,this.options,"withCredentials"),v=Cb(s,this.options,"useMultipart"),w=!0===this.options.useGETForQueries,x=i.query.definitions.some(re=>"OperationDefinition"===re.kind&&"query"===re.operation);w&&x&&(a="GET");const I={method:a,url:"function"==typeof d?d(i):d,body:{operationName:i.operationName,variables:i.variables},options:{withCredentials:f,useMultipart:v,headers:this.options.headers}};c&&(I.body.extensions=i.extensions),l&&(I.body.query=this.print(i.query));const M=function hZ(t){let r=t.headers&&t.headers instanceof Am?t.headers:new Am(t.headers);if(t.clientAwareness){const{name:e,version:i}=t.clientAwareness;e&&!r.has("apollographql-client-name")&&(r=r.set("apollographql-client-name",e)),i&&!r.has("apollographql-client-version")&&(r=r.set("apollographql-client-version",i))}return r}(s);I.options.headers=((t,r)=>t&&r?r.keys().reduce((i,o)=>i.set(o,r.getAll(o)),t):r||t)(I.options.headers,M);const F=((t,r,e)=>{const i=-1!==["POST","PUT","PATCH"].indexOf(t.method.toUpperCase()),s=t.body.length;let l,a=t.options&&t.options.useMultipart;if(a){if(s)return new Fc.c(d=>d.error(new Error("File upload is not available when combined with Batching")));if(!i)return new Fc.c(d=>d.error(new Error("File upload is not available when GET is used")));if(!e)return new Fc.c(d=>d.error(new Error('To use File upload you need to pass "extractFiles" function from "extract-files" library to HttpLink\'s options')));l=e(t.body),a=!!l.files.size}let c={};if(s){if(!i)return new Fc.c(d=>d.error(new Error("Batching is not available for GET requests")));c={body:t.body}}else c=i?{body:a?l.clone:t.body}:{params:Object.keys(t.body).reduce((v,w)=>{const x=t.body[w];return v[w]=-1!==["variables","extensions"].indexOf(w.toLowerCase())?JSON.stringify(x):x,v},{})};if(a&&i){const d=new FormData;d.append("operations",JSON.stringify(c.body));const f={},v=l.files;let w=0;v.forEach(x=>{f[++w]=x}),d.append("map",JSON.stringify(f)),w=0,v.forEach((x,I)=>{d.append(++w+"",I,I.name)}),c.body=d}return r.request(t.method,t.url,{observe:"response",responseType:"json",reportProgress:!1,...c,...t.options})})(I,this.httpClient,this.options.extractFiles).subscribe({next:re=>{i.setContext({response:re}),o.next(re.body)},error:re=>o.error(re),complete:()=>o.complete()});return()=>{F.closed||F.unsubscribe()}})}request(r){return this.requester(r)}}let Fme=(()=>{class t{httpClient;constructor(e){this.httpClient=e}create(e){return new Ome(this.httpClient,e)}static \u0275fac=function(i){return new(i||t)(n.KVO(Da))};static \u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Wa(t,r){return!!t&&(t.classList?t.classList.contains(r):new RegExp("(^| )"+r+"( |$)","gi").test(t.className))}function Nc(t,r){if(t&&r){const e=i=>{Wa(t,i)||(t.classList?t.classList.add(i):t.className+=" "+i)};[r].flat().filter(Boolean).forEach(i=>i.split(" ").forEach(e))}}function QD(t){for(const r of document?.styleSheets)try{for(const e of r?.cssRules)for(const i of e?.style)if(t.test(i))return{name:i,value:e.style.getPropertyValue(i).trim()}}catch{}return null}function tO(t="p-overflow-hidden"){const r=QD(/-scrollbar-width$/);r?.name&&document.body.style.setProperty(r.name,function Pme(){return window.innerWidth-document.documentElement.offsetWidth}()+"px"),Nc(document.body,t)}function ru(t,r){if(t&&r){const e=i=>{t.classList?t.classList.remove(i):t.className=t.className.replace(new RegExp("(^|\\b)"+i.split(" ").join("|")+"(\\b|$)","gi")," ")};[r].flat().filter(Boolean).forEach(i=>i.split(" ").forEach(e))}}function Lw(t="p-overflow-hidden"){const r=QD(/-scrollbar-width$/);r?.name&&document.body.style.removeProperty(r.name),ru(document.body,t)}function fZ(t){let r={width:0,height:0};return t&&(t.style.visibility="hidden",t.style.display="block",r.width=t.offsetWidth,r.height=t.offsetHeight,t.style.display="none",t.style.visibility="visible"),r}function JD(){let t=window,r=document,e=r.documentElement,i=r.getElementsByTagName("body")[0];return{width:t.innerWidth||e.clientWidth||i.clientWidth,height:t.innerHeight||e.clientHeight||i.clientHeight}}function o$(){let t=document.documentElement;return(window.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}function s$(){let t=document.documentElement;return(window.pageYOffset||t.scrollTop)-(t.clientTop||0)}function ZD(t,r,e=!0){var i,o,s,a;if(t){const l=t.offsetParent?{width:t.offsetWidth,height:t.offsetHeight}:fZ(t),c=l.height,d=l.width,f=r.offsetHeight,v=r.offsetWidth,w=r.getBoundingClientRect(),x=s$(),I=o$(),M=JD();let F,re,pe="top";w.top+f+c>M.height?(F=w.top+x-c,pe="bottom",F<0&&(F=x)):F=f+w.top+x,re=w.left+d>M.width?Math.max(0,w.left+I+v-d):w.left+I,t.style.top=F+"px",t.style.left=re+"px",t.style.transformOrigin=pe,e&&(t.style.marginTop="bottom"===pe?`calc(${null!=(o=null==(i=QD(/-anchor-gutter$/))?void 0:i.value)?o:"2px"} * -1)`:null!=(a=null==(s=QD(/-anchor-gutter$/))?void 0:s.value)?a:"")}}function W5(t,r){t&&("string"==typeof r?t.style.cssText=r:Object.entries(r||{}).forEach(([e,i])=>t.style[e]=i))}function kd(t,r){if(t instanceof HTMLElement){let e=t.offsetWidth;if(r){let i=getComputedStyle(t);e+=parseFloat(i.marginLeft)+parseFloat(i.marginRight)}return e}return 0}function z5(t,r,e=!0){var i,o,s,a;if(t){const l=t.offsetParent?{width:t.offsetWidth,height:t.offsetHeight}:fZ(t),c=r.offsetHeight,d=r.getBoundingClientRect(),f=JD();let v,w,x="top";d.top+c+l.height>f.height?(v=-1*l.height,x="bottom",d.top+v<0&&(v=-1*d.top)):v=c,w=l.width>f.width?-1*d.left:d.left+l.width>f.width?-1*(d.left+l.width-f.width):0,t.style.top=v+"px",t.style.left=w+"px",t.style.transformOrigin=x,e&&(t.style.marginTop="bottom"===x?`calc(${null!=(o=null==(i=QD(/-anchor-gutter$/))?void 0:i.value)?o:"2px"} * -1)`:null!=(a=null==(s=QD(/-anchor-gutter$/))?void 0:s.value)?a:"")}}function Nw(t){return"object"==typeof HTMLElement?t instanceof HTMLElement:t&&"object"==typeof t&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName}function a$(t){let r=t;return t&&"object"==typeof t&&(t.hasOwnProperty("current")?r=t.current:t.hasOwnProperty("el")&&(r=t.el.hasOwnProperty("nativeElement")?t.el.nativeElement:t.el)),Nw(r)?r:void 0}function yx(t,r){const e=a$(t);if(!e)throw new Error("Cannot append "+r+" to "+t);e.appendChild(r)}function q5(t,r={}){if(Nw(t)){const e=(i,o)=>{var s,a;const l=null!=(s=t?.$attrs)&&s[i]?[null==(a=t?.$attrs)?void 0:a[i]]:[];return[o].flat().reduce((c,d)=>{if(null!=d){const f=typeof d;if("string"===f||"number"===f)c.push(d);else if("object"===f){const v=Array.isArray(d)?e(i,d):Object.entries(d).map(([w,x])=>"style"!==i||!x&&0!==x?x?w:void 0:`${w.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${x}`);c=v.length?c.concat(v.filter(w=>!!w)):c}}return c},l)};Object.entries(r).forEach(([i,o])=>{if(null!=o){const s=i.match(/^on(.+)/);s?t.addEventListener(s[1].toLowerCase(),o):"p-bind"===i||"pBind"===i?q5(t,o):(o="class"===i?[...new Set(e("class",o))].join(" ").trim():"style"===i?e("style",o).join(";").trim():o,(t.$attrs=t.$attrs||{})&&(t.$attrs[i]=o),t.setAttribute(i,o))}})}}function $c(t,r){return Nw(t)?Array.from(t.querySelectorAll(r)):[]}function xo(t,r){return Nw(t)?t.matches(r)?t:t.querySelector(r):null}function la(t,r){t&&document.activeElement!==t&&t.focus(r)}function Xf(t,r){if(Nw(t)){const e=t.getAttribute(r);return isNaN(e)?"true"===e||"false"===e?"true"===e:e:+e}}var wb=null;function X5(){if(!wb){wb={};let t=function Bme(){let t=navigator.userAgent.toLowerCase(),r=/(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:r[1]||"",version:r[2]||"0"}}();t.browser&&(wb[t.browser]=!0,wb.version=t.version),wb.chrome?wb.webkit=!0:wb.webkit&&(wb.safari=!0)}return wb}function Mm(t,r=""){let e=$c(t,`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r},\n            [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r},\n            input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r},\n            select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r},\n            textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r},\n            [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r},\n            [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${r}`),i=[];for(let o of e)"none"!=getComputedStyle(o).display&&"hidden"!=getComputedStyle(o).visibility&&i.push(o);return i}function bx(t,r){const e=Mm(t,r);return e.length>0?e[0]:null}function Tb(t){if(t){let r=t.offsetHeight,e=getComputedStyle(t);return r-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)+parseFloat(e.borderTopWidth)+parseFloat(e.borderBottomWidth),r}return 0}function u$(t){if(t){let r=t.parentNode;return r&&r instanceof ShadowRoot&&r.host&&(r=r.host),r}return null}function Gw(t){var r;if(t){let e=null==(r=u$(t))?void 0:r.childNodes,i=0;if(e)for(let o=0;o<e.length;o++){if(e[o]===t)return i;1===e[o].nodeType&&i++}}return-1}function nO(t,r){const e=Mm(t,r);return e.length>0?e[e.length-1]:null}function yy(t){if(t){let r=t.getBoundingClientRect();return{top:r.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:r.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}return{top:"auto",left:"auto"}}function fg(t,r){if(t){let e=t.offsetHeight;if(r){let i=getComputedStyle(t);e+=parseFloat(i.marginTop)+parseFloat(i.marginBottom)}return e}return 0}function _Z(){return navigator.userAgent}function df(t){if(t){let r=t.offsetWidth,e=getComputedStyle(t);return r-=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)+parseFloat(e.borderLeftWidth)+parseFloat(e.borderRightWidth),r}return 0}function d$(t){return!(!t||null==t.offsetParent)}function bZ(t){return!d$(t)}function CZ(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}function p$(t){return!!t&&"rtl"===getComputedStyle(t).direction}function by(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}function wZ(t,r){let e=getComputedStyle(t).getPropertyValue("borderTopWidth"),i=e?parseFloat(e):0,o=getComputedStyle(t).getPropertyValue("paddingTop"),s=o?parseFloat(o):0,a=t.getBoundingClientRect(),c=r.getBoundingClientRect().top+document.body.scrollTop-(a.top+document.body.scrollTop)-i-s,d=t.scrollTop,f=t.clientHeight,v=fg(r);c<0?t.scrollTop=d+c:c+v>f&&(t.scrollTop=d+c-f+v)}function ek(t,r="",e){Nw(t)&&null!=e&&t.setAttribute(r,e)}var K5={};function Bl(t="pui_id_"){return K5.hasOwnProperty(t)||(K5[t]=0),K5[t]++,`${t}${K5[t]}`}!function Jme(){let t=[];const o=(a,l,c=0)=>[...t].reverse().find(d=>!!l||d.key===a)||{key:a,value:c},s=a=>a&&parseInt(a.style.zIndex,10)||0}();var tk=function(t){return t[t.ACCEPT=0]="ACCEPT",t[t.REJECT=1]="REJECT",t[t.CANCEL=2]="CANCEL",t}(tk||{});let Kf=(()=>{class t{requireConfirmationSource=new K.B;acceptConfirmationSource=new K.B;requireConfirmation$=this.requireConfirmationSource.asObservable();accept=this.acceptConfirmationSource.asObservable();confirm(e){return this.requireConfirmationSource.next(e),this}close(){return this.requireConfirmationSource.next(null),this}onAccept(){this.acceptConfirmationSource.next(null)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})(),Xd=(()=>class t{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"})(),iO=(()=>class t{static AND="and";static OR="or"})(),Cx=(()=>{class t{filter(e,i,o,s,a){let l=[];if(e)for(let c of e)for(let d of i){let f=ml(c,d);if(this.filters[s](f,o,a)){l.push(c);break}}return l}filters={startsWith:(e,i,o)=>{if(null==i||""===i.trim())return!0;if(null==e)return!1;let s=qf(i.toString()).toLocaleLowerCase(o);return qf(e.toString()).toLocaleLowerCase(o).slice(0,s.length)===s},contains:(e,i,o)=>{if(null==i||"string"==typeof i&&""===i.trim())return!0;if(null==e)return!1;let s=qf(i.toString()).toLocaleLowerCase(o);return-1!==qf(e.toString()).toLocaleLowerCase(o).indexOf(s)},notContains:(e,i,o)=>{if(null==i||"string"==typeof i&&""===i.trim())return!0;if(null==e)return!1;let s=qf(i.toString()).toLocaleLowerCase(o);return-1===qf(e.toString()).toLocaleLowerCase(o).indexOf(s)},endsWith:(e,i,o)=>{if(null==i||""===i.trim())return!0;if(null==e)return!1;let s=qf(i.toString()).toLocaleLowerCase(o),a=qf(e.toString()).toLocaleLowerCase(o);return-1!==a.indexOf(s,a.length-s.length)},equals:(e,i,o)=>null==i||"string"==typeof i&&""===i.trim()||null!=e&&(e.getTime&&i.getTime?e.getTime()===i.getTime():e==i||qf(e.toString()).toLocaleLowerCase(o)==qf(i.toString()).toLocaleLowerCase(o)),notEquals:(e,i,o)=>!(null==i||"string"==typeof i&&""===i.trim()||null!=e&&(e.getTime&&i.getTime?e.getTime()===i.getTime():e==i||qf(e.toString()).toLocaleLowerCase(o)==qf(i.toString()).toLocaleLowerCase(o))),in:(e,i)=>{if(null==i||0===i.length)return!0;for(let o=0;o<i.length;o++)if(id(e,i[o]))return!0;return!1},between:(e,i)=>null==i||null==i[0]||null==i[1]||null!=e&&(e.getTime?i[0].getTime()<=e.getTime()&&e.getTime()<=i[1].getTime():i[0]<=e&&e<=i[1]),lt:(e,i,o)=>null==i||null!=e&&(e.getTime&&i.getTime?e.getTime()<i.getTime():e<i),lte:(e,i,o)=>null==i||null!=e&&(e.getTime&&i.getTime?e.getTime()<=i.getTime():e<=i),gt:(e,i,o)=>null==i||null!=e&&(e.getTime&&i.getTime?e.getTime()>i.getTime():e>i),gte:(e,i,o)=>null==i||null!=e&&(e.getTime&&i.getTime?e.getTime()>=i.getTime():e>=i),is:(e,i,o)=>this.filters.equals(e,i,o),isNot:(e,i,o)=>this.filters.notEquals(e,i,o),before:(e,i,o)=>this.filters.lt(e,i,o),after:(e,i,o)=>this.filters.gt(e,i,o),dateIs:(e,i)=>null==i||null!=e&&e.toDateString()===i.toDateString(),dateIsNot:(e,i)=>null==i||null!=e&&e.toDateString()!==i.toDateString(),dateBefore:(e,i)=>null==i||null!=e&&e.getTime()<i.getTime(),dateAfter:(e,i)=>null==i||null!=e&&(e.setHours(0,0,0,0),e.getTime()>i.getTime())};register(e,i){this.filters[e]=i}static \u0275fac=function(i){return new(i||t)};static \u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Cy=(()=>{class t{clickSource=new K.B;clickObservable=this.clickSource.asObservable();add(e){e&&this.clickSource.next(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const EZ=["*"];let Q5=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=n.VBU({type:t,selectors:[["p-header"]],standalone:!1,ngContentSelectors:EZ,decls:1,vars:0,template:function(i,o){1&i&&(n.NAR(),n.SdG(0))},encapsulation:2})}return t})(),rO=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=n.VBU({type:t,selectors:[["p-footer"]],standalone:!1,ngContentSelectors:EZ,decls:1,vars:0,template:function(i,o){1&i&&(n.NAR(),n.SdG(0))},encapsulation:2})}return t})(),hs=(()=>{class t{template;type;name;constructor(e){this.template=e}getType(){return this.name}static \u0275fac=function(i){return new(i||t)(n.rXU(n.C4Q))};static \u0275dir=n.FsC({type:t,selectors:[["","pTemplate",""]],inputs:{type:"type",name:[0,"pTemplate","name"]}})}return t})(),Di=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({imports:[gn]})}return t})(),Xs=(()=>class t{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"})(),Zme=(()=>{class t{dragStartSource=new K.B;dragStopSource=new K.B;dragStart$=this.dragStartSource.asObservable();dragStop$=this.dragStopSource.asObservable();startDrag(e){this.dragStartSource.next(e)}stopDrag(e){this.dragStopSource.next(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})(),ege=0,tge=(()=>{class t{document=(0,n.WQX)(be);use(e,i={}){let s=e,a=null;const{immediate:l=!0,manual:c=!1,name:d="style_"+ ++ege,id:f,media:v,nonce:w,first:x=!1,props:I={}}=i;if(this.document){if(a=this.document.querySelector(`style[data-primeng-style-id="${d}"]`)||f&&this.document.getElementById(f)||this.document.createElement("style"),!a.isConnected){s=e,q5(a,{type:"text/css",media:v,nonce:w});const M=this.document.head;x&&M.firstChild?M.insertBefore(a,M.firstChild):M.appendChild(a),ek(a,"data-primeng-style-id",d)}return a.textContent!==s&&(a.textContent=s),{id:f,name:d,el:a,css:s}}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var oO={_loadedStyleNames:new Set,getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(t){return this._loadedStyleNames.has(t)},setLoadedStyleName(t){this._loadedStyleNames.add(t)},deleteLoadedStyleName(t){this._loadedStyleNames.delete(t)},clearLoadedStyleNames(){this._loadedStyleNames.clear()}};const nge=({dt:t})=>`\n*,\n::before,\n::after {\n    box-sizing: border-box;\n}\n\n/* Non ng overlay animations */\n.p-connected-overlay {\n    opacity: 0;\n    transform: scaleY(0.8);\n    transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1),\n        opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n}\n\n.p-connected-overlay-visible {\n    opacity: 1;\n    transform: scaleY(1);\n}\n\n.p-connected-overlay-hidden {\n    opacity: 0;\n    transform: scaleY(1);\n    transition: opacity 0.1s linear;\n}\n\n/* NG based overlay animations */\n.p-connected-overlay-enter-from {\n    opacity: 0;\n    transform: scaleY(0.8);\n}\n\n.p-connected-overlay-leave-to {\n    opacity: 0;\n}\n\n.p-connected-overlay-enter-active {\n    transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1),\n        opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n}\n\n.p-connected-overlay-leave-active {\n    transition: opacity 0.1s linear;\n}\n\n/* Toggleable Content */\n.p-toggleable-content-enter-from,\n.p-toggleable-content-leave-to {\n    max-height: 0;\n}\n\n.p-toggleable-content-enter-to,\n.p-toggleable-content-leave-from {\n    max-height: 1000px;\n}\n\n.p-toggleable-content-leave-active {\n    overflow: hidden;\n    transition: max-height 0.45s cubic-bezier(0, 1, 0, 1);\n}\n\n.p-toggleable-content-enter-active {\n    overflow: hidden;\n    transition: max-height 1s ease-in-out;\n}\n\n.p-disabled,\n.p-disabled * {\n    cursor: default;\n    pointer-events: none;\n    user-select: none;\n}\n\n.p-disabled,\n.p-component:disabled {\n    opacity: ${t("disabled.opacity")};\n}\n\n.pi {\n    font-size: ${t("icon.size")};\n}\n\n.p-icon {\n    width: ${t("icon.size")};\n    height: ${t("icon.size")};\n}\n\n.p-overlay-mask {\n    background: ${t("mask.background")};\n    color: ${t("mask.color")};\n    position: fixed;\n    top: 0;\n    left: 0;\n    width: 100%;\n    height: 100%;\n}\n\n.p-overlay-mask-enter {\n    animation: p-overlay-mask-enter-animation ${t("mask.transition.duration")} forwards;\n}\n\n.p-overlay-mask-leave {\n    animation: p-overlay-mask-leave-animation ${t("mask.transition.duration")} forwards;\n}\n/* Temporarily disabled, distrupts PrimeNG overlay animations */\n/* @keyframes p-overlay-mask-enter-animation {\n    from {\n        background: transparent;\n    }\n    to {\n        background: ${t("mask.background")};\n    }\n}\n@keyframes p-overlay-mask-leave-animation {\n    from {\n        background: ${t("mask.background")};\n    }\n    to {\n        background: transparent;\n    }\n}*/\n\n.p-iconwrapper {\n    display: inline-flex;\n    justify-content: center;\n    align-items: center;\n}\n`,ige=({dt:t})=>`\n.p-hidden-accessible {\n    border: 0;\n    clip: rect(0 0 0 0);\n    height: 1px;\n    margin: -1px;\n    overflow: hidden;\n    padding: 0;\n    position: absolute;\n    width: 1px;\n}\n\n.p-hidden-accessible input,\n.p-hidden-accessible select {\n    transform: scale(0);\n}\n\n.p-overflow-hidden {\n    overflow: hidden;\n    padding-right: ${t("scrollbar.width")};\n}\n\n/* @todo move to baseiconstyle.ts */\n\n.p-icon {\n    display: inline-block;\n    vertical-align: baseline;\n}\n\n.p-icon-spin {\n    -webkit-animation: p-icon-spin 2s infinite linear;\n    animation: p-icon-spin 2s infinite linear;\n}\n\n@-webkit-keyframes p-icon-spin {\n    0% {\n        -webkit-transform: rotate(0deg);\n        transform: rotate(0deg);\n    }\n    100% {\n        -webkit-transform: rotate(359deg);\n        transform: rotate(359deg);\n    }\n}\n\n@keyframes p-icon-spin {\n    0% {\n        -webkit-transform: rotate(0deg);\n        transform: rotate(0deg);\n    }\n    100% {\n        -webkit-transform: rotate(359deg);\n        transform: rotate(359deg);\n    }\n}\n`;let gs=(()=>{class t{name="base";useStyle=(0,n.WQX)(tge);theme=nge;css=ige;classes={};inlineStyles={};load=(e,i={},o=s=>s)=>{const s=o(pg(e,{dt:yb}));return s?this.useStyle.use(jD(s),{name:this.name,...i}):{}};loadCSS=(e={})=>this.load(this.css,e);loadTheme=(e={},i="")=>this.load(this.theme,e,(o="")=>Gl.transformCSS(e.name||this.name,`${o}${i}`));getCommonTheme=e=>Gl.getCommon(this.name,e);getComponentTheme=e=>Gl.getComponent(this.name,e);getDirectiveTheme=e=>Gl.getDirective(this.name,e);getPresetTheme=(e,i,o)=>Gl.getCustomPreset(this.name,e,i,o);getLayerOrderThemeCSS=()=>Gl.getLayerOrderCSS(this.name);getStyleSheet=(e="",i={})=>{if(this.css){const s=jD(`${pg(this.css,{dt:yb})}${e}`),a=Object.entries(i).reduce((l,[c,d])=>l.push(`${c}="${d}"`)&&l,[]).join(" ");return`<style type="text/css" data-primeng-style-id="${this.name}" ${a}>${s}</style>`}return""};getCommonThemeStyleSheet=(e,i={})=>Gl.getCommonStyleSheet(this.name,e,i);getThemeStyleSheet=(e,i={})=>{let o=[Gl.getStyleSheet(this.name,e,i)];if(this.theme){const s="base"===this.name?"global-style":`${this.name}-style`,a=pg(this.theme,{dt:yb}),l=jD(Gl.transformCSS(s,a)),c=Object.entries(i).reduce((d,[f,v])=>d.push(`${f}="${v}"`)&&d,[]).join(" ");o.push(`<style type="text/css" data-primeng-style-id="${s}" ${c}>${l}</style>`)}return o.join("")};static \u0275fac=function(i){return new(i||t)};static \u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),rge=(()=>{class t{theme=(0,n.vPA)(void 0);csp=(0,n.vPA)({nonce:void 0});isThemeChanged=!1;document=(0,n.WQX)(be);baseStyle=(0,n.WQX)(gs);constructor(){(0,n.QZP)(()=>{bv.on("theme:change",e=>{(0,n.O8t)(()=>{this.isThemeChanged=!0,this.theme.set(e)})})}),(0,n.QZP)(()=>{const e=this.theme();this.document&&e&&(this.isThemeChanged||this.onThemeChange(e),this.isThemeChanged=!1)})}ngOnDestroy(){Gl.clearLoadedStyleNames(),bv.clear()}onThemeChange(e){Gl.setTheme(e),this.document&&this.loadCommonTheme()}loadCommonTheme(){if("none"!==this.theme()&&!Gl.isStyleNameLoaded("common")){const{primitive:e,semantic:i,global:o,style:s}=this.baseStyle.getCommonTheme?.()||{},a={nonce:this.csp?.()?.nonce};this.baseStyle.load(e?.css,{name:"primitive-variables",...a}),this.baseStyle.load(i?.css,{name:"semantic-variables",...a}),this.baseStyle.load(o?.css,{name:"global-variables",...a}),this.baseStyle.loadTheme({name:"global-style",...a},s),Gl.setLoadedStyleName("common")}}setThemeConfig(e){const{theme:i,csp:o}=e||{};i&&this.theme.set(i),o&&this.csp.set(o)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),h$=(()=>{class t extends rge{ripple=(0,n.vPA)(!1);platformId=(0,n.WQX)(n.Agw);inputStyle=(0,n.vPA)("outlined");inputVariant=(0,n.vPA)("outlined");overlayOptions={};csp=(0,n.vPA)({nonce:void 0});filterMatchModeOptions={text:[Xd.STARTS_WITH,Xd.CONTAINS,Xd.NOT_CONTAINS,Xd.ENDS_WITH,Xd.EQUALS,Xd.NOT_EQUALS],numeric:[Xd.EQUALS,Xd.NOT_EQUALS,Xd.LESS_THAN,Xd.LESS_THAN_OR_EQUAL_TO,Xd.GREATER_THAN,Xd.GREATER_THAN_OR_EQUAL_TO],date:[Xd.DATE_IS,Xd.DATE_IS_NOT,Xd.DATE_BEFORE,Xd.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:"Search results are available",selectionMessage:"{0} items selected",emptySelectionMessage:"No selected item",emptySearchMessage:"No results found",emptyFilterMessage:"No results found",fileChosenMessage:"Files",noFileChosenMessage:"No file chosen",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 K.B;translationObserver=this.translationSource.asObservable();getTranslation(e){return this.translation[e]}setTranslation(e){this.translation={...this.translation,...e},this.translationSource.next(this.translation)}setConfig(e){const{csp:i,ripple:o,inputStyle:s,theme:a,overlayOptions:l,translation:c}=e||{};i&&this.csp.set(i),o&&this.ripple.set(o),s&&this.inputStyle.set(s),l&&(this.overlayOptions=l),c&&this.setTranslation(c),a&&this.setThemeConfig({theme:a,csp:i})}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const oge=new n.nKC("PRIME_NG_CONFIG");function sge(...t){const r=t?.map(i=>({provide:oge,useValue:i,multi:!1})),e=(0,n.phd)(()=>{const i=(0,n.WQX)(h$);t?.forEach(o=>i.setConfig(o))});return(0,n.EmA)([...r,e])}const{isArray:age}=Array,{getPrototypeOf:lge,prototype:cge,keys:uge}=Object;function DZ(t){if(1===t.length){const r=t[0];if(age(r))return{args:r,keys:null};if(function dge(t){return t&&"object"==typeof t&&lge(t)===cge}(r)){const e=uge(r);return{args:e.map(i=>r[i]),keys:e}}}return{args:t,keys:null}}const{isArray:pge}=Array;function kZ(t){return(0,Os.T)(r=>function hge(t,r){return pge(r)?t(...r):t(r)}(t,r))}function IZ(t,r){return t.reduce((e,i,o)=>(e[i]=r[o],e),{})}function wy(...t){const r=LJ(t),{args:e,keys:i}=DZ(t),o=new Fc.c(s=>{const{length:a}=e;if(!a)return void s.complete();const l=new Array(a);let c=a,d=a;for(let f=0;f<a;f++){let v=!1;Rs(e[f]).subscribe((0,Dd._)(s,w=>{v||(v=!0,d--),l[f]=w},()=>c--,void 0,()=>{(!c||!v)&&(d||s.next(i?IZ(i,l):l),s.complete())}))}});return r?o.pipe(kZ(r)):o}let AZ=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,i){this._renderer=e,this._elementRef=i}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(i){return new(i||t)(n.rXU(n.sFG),n.rXU(n.aKT))};static \u0275dir=n.FsC({type:t})}return t})(),wx=(()=>{class t extends AZ{static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275dir=n.FsC({type:t,features:[n.Vt3]})}return t})();const tl=new n.nKC(""),fge={provide:tl,useExisting:(0,n.Rfq)(()=>Cv),multi:!0};let Cv=(()=>{class t extends wx{writeValue(e){this.setProperty("checked",e)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275dir=n.FsC({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(i,o){1&i&&n.bIt("change",function(a){return o.onChange(a.target.checked)})("blur",function(){return o.onTouched()})},standalone:!1,features:[n.Jv_([fge]),n.Vt3]})}return t})();const mge={provide:tl,useExisting:(0,n.Rfq)(()=>Cc),multi:!0},vge=new n.nKC("");let Cc=(()=>{class t extends AZ{_compositionMode;_composing=!1;constructor(e,i,o){super(e,i),this._compositionMode=o,null==this._compositionMode&&(this._compositionMode=!function gge(){const t=De()?De().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(i){return new(i||t)(n.rXU(n.sFG),n.rXU(n.aKT),n.rXU(vge,8))};static \u0275dir=n.FsC({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,o){1&i&&n.bIt("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},standalone:!1,features:[n.Jv_([mge]),n.Vt3]})}return t})();function Bw(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}function MZ(t){return null!=t&&"number"==typeof t.length}const Ah=new n.nKC(""),Vw=new n.nKC(""),_ge=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Ls{static min(r){return RZ(r)}static max(r){return function OZ(t){return r=>{if(Bw(r.value)||Bw(t))return null;const e=parseFloat(r.value);return!isNaN(e)&&e>t?{max:{max:t,actual:r.value}}:null}}(r)}static required(r){return FZ(r)}static requiredTrue(r){return PZ(r)}static email(r){return LZ(r)}static minLength(r){return function NZ(t){return r=>Bw(r.value)||!MZ(r.value)?null:r.value.length<t?{minlength:{requiredLength:t,actualLength:r.value.length}}:null}(r)}static maxLength(r){return GZ(r)}static pattern(r){return function BZ(t){if(!t)return J5;let r,e;return"string"==typeof t?(e="","^"!==t.charAt(0)&&(e+="^"),e+=t,"$"!==t.charAt(t.length-1)&&(e+="$"),r=new RegExp(e)):(e=t.toString(),r=t),i=>{if(Bw(i.value))return null;const o=i.value;return r.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}(r)}static nullValidator(r){return null}static compose(r){return YZ(r)}static composeAsync(r){return WZ(r)}}function RZ(t){return r=>{if(Bw(r.value)||Bw(t))return null;const e=parseFloat(r.value);return!isNaN(e)&&e<t?{min:{min:t,actual:r.value}}:null}}function FZ(t){return Bw(t.value)?{required:!0}:null}function PZ(t){return!0===t.value?null:{required:!0}}function LZ(t){return Bw(t.value)||_ge.test(t.value)?null:{email:!0}}function GZ(t){return r=>MZ(r.value)&&r.value.length>t?{maxlength:{requiredLength:t,actualLength:r.value.length}}:null}function J5(t){return null}function VZ(t){return null!=t}function jZ(t){return(0,n.jNT)(t)?Pc(t):t}function HZ(t){let r={};return t.forEach(e=>{r=null!=e?{...r,...e}:r}),0===Object.keys(r).length?null:r}function UZ(t,r){return r.map(e=>e(t))}function $Z(t){return t.map(r=>function yge(t){return!t.validate}(r)?r:e=>r.validate(e))}function YZ(t){if(!t)return null;const r=t.filter(VZ);return 0==r.length?null:function(e){return HZ(UZ(e,r))}}function f$(t){return null!=t?YZ($Z(t)):null}function WZ(t){if(!t)return null;const r=t.filter(VZ);return 0==r.length?null:function(e){return wy(UZ(e,r).map(jZ)).pipe((0,Os.T)(HZ))}}function m$(t){return null!=t?WZ($Z(t)):null}function zZ(t,r){return null===t?[r]:Array.isArray(t)?[...t,r]:[t,r]}function qZ(t){return t._rawValidators}function XZ(t){return t._rawAsyncValidators}function g$(t){return t?Array.isArray(t)?t:[t]:[]}function Z5(t,r){return Array.isArray(t)?t.includes(r):t===r}function KZ(t,r){const e=g$(r);return g$(t).forEach(o=>{Z5(e,o)||e.push(o)}),e}function QZ(t,r){return g$(r).filter(e=>!Z5(t,e))}class JZ{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(r){this._rawValidators=r||[],this._composedValidatorFn=f$(this._rawValidators)}_setAsyncValidators(r){this._rawAsyncValidators=r||[],this._composedAsyncValidatorFn=m$(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(r){this._onDestroyCallbacks.push(r)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(r=>r()),this._onDestroyCallbacks=[]}reset(r=void 0){this.control&&this.control.reset(r)}hasError(r,e){return!!this.control&&this.control.hasError(r,e)}getError(r,e){return this.control?this.control.getError(r,e):null}}class Qf extends JZ{name;get formDirective(){return null}get path(){return null}}class mg extends JZ{_parent=null;name=null;valueAccessor=null}class ZZ{_cd;constructor(r){this._cd=r}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}}let _o=(()=>{class t extends ZZ{constructor(e){super(e)}static \u0275fac=function(i){return new(i||t)(n.rXU(mg,2))};static \u0275dir=n.FsC({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){2&i&&n.AVh("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},standalone:!1,features:[n.Vt3]})}return t})(),Rm=(()=>{class t extends ZZ{constructor(e){super(e)}static \u0275fac=function(i){return new(i||t)(n.rXU(Qf,10))};static \u0275dir=n.FsC({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,o){2&i&&n.AVh("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},standalone:!1,features:[n.Vt3]})}return t})();const sO="VALID",t8="INVALID",nk="PENDING",aO="DISABLED";class ik{}class tee extends ik{value;source;constructor(r,e){super(),this.value=r,this.source=e}}class y$ extends ik{pristine;source;constructor(r,e){super(),this.pristine=r,this.source=e}}class b$ extends ik{touched;source;constructor(r,e){super(),this.touched=r,this.source=e}}class n8 extends ik{status;source;constructor(r,e){super(),this.status=r,this.source=e}}class Sge extends ik{source;constructor(r){super(),this.source=r}}class xge extends ik{source;constructor(r){super(),this.source=r}}function C$(t){return(i8(t)?t.validators:t)||null}function w$(t,r){return(i8(r)?r.asyncValidators:t)||null}function i8(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function nee(t,r,e){const i=t.controls;if(!(r?Object.keys(i):i).length)throw new n.wOt(1e3,"");if(!i[e])throw new n.wOt(1001,"")}function iee(t,r,e){t._forEachChild((i,o)=>{if(void 0===e[o])throw new n.wOt(1002,"")})}class r8{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(r,e){this._assignValidators(r),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(r){this._rawValidators=this._composedValidatorFn=r}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(r){this._rawAsyncValidators=this._composedAsyncValidatorFn=r}get parent(){return this._parent}get status(){return(0,n.O8t)(this.statusReactive)}set status(r){(0,n.O8t)(()=>this.statusReactive.set(r))}_status=(0,n.EWP)(()=>this.statusReactive());statusReactive=(0,n.vPA)(void 0);get valid(){return this.status===sO}get invalid(){return this.status===t8}get pending(){return this.status==nk}get disabled(){return this.status===aO}get enabled(){return this.status!==aO}errors;get pristine(){return(0,n.O8t)(this.pristineReactive)}set pristine(r){(0,n.O8t)(()=>this.pristineReactive.set(r))}_pristine=(0,n.EWP)(()=>this.pristineReactive());pristineReactive=(0,n.vPA)(!0);get dirty(){return!this.pristine}get touched(){return(0,n.O8t)(this.touchedReactive)}set touched(r){(0,n.O8t)(()=>this.touchedReactive.set(r))}_touched=(0,n.EWP)(()=>this.touchedReactive());touchedReactive=(0,n.vPA)(!1);get untouched(){return!this.touched}_events=new K.B;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(r){this._assignValidators(r)}setAsyncValidators(r){this._assignAsyncValidators(r)}addValidators(r){this.setValidators(KZ(r,this._rawValidators))}addAsyncValidators(r){this.setAsyncValidators(KZ(r,this._rawAsyncValidators))}removeValidators(r){this.setValidators(QZ(r,this._rawValidators))}removeAsyncValidators(r){this.setAsyncValidators(QZ(r,this._rawAsyncValidators))}hasValidator(r){return Z5(this._rawValidators,r)}hasAsyncValidator(r){return Z5(this._rawAsyncValidators,r)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(r={}){const e=!1===this.touched;this.touched=!0;const i=r.sourceControl??this;this._parent&&!r.onlySelf&&this._parent.markAsTouched({...r,sourceControl:i}),e&&!1!==r.emitEvent&&this._events.next(new b$(!0,i))}markAllAsTouched(r={}){this.markAsTouched({onlySelf:!0,emitEvent:r.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(r))}markAsUntouched(r={}){const e=!0===this.touched;this.touched=!1,this._pendingTouched=!1;const i=r.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:r.emitEvent,sourceControl:i})}),this._parent&&!r.onlySelf&&this._parent._updateTouched(r,i),e&&!1!==r.emitEvent&&this._events.next(new b$(!1,i))}markAsDirty(r={}){const e=!0===this.pristine;this.pristine=!1;const i=r.sourceControl??this;this._parent&&!r.onlySelf&&this._parent.markAsDirty({...r,sourceControl:i}),e&&!1!==r.emitEvent&&this._events.next(new y$(!1,i))}markAsPristine(r={}){const e=!1===this.pristine;this.pristine=!0,this._pendingDirty=!1;const i=r.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:r.emitEvent})}),this._parent&&!r.onlySelf&&this._parent._updatePristine(r,i),e&&!1!==r.emitEvent&&this._events.next(new y$(!0,i))}markAsPending(r={}){this.status=nk;const e=r.sourceControl??this;!1!==r.emitEvent&&(this._events.next(new n8(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!r.onlySelf&&this._parent.markAsPending({...r,sourceControl:e})}disable(r={}){const e=this._parentMarkedDirty(r.onlySelf);this.status=aO,this.errors=null,this._forEachChild(o=>{o.disable({...r,onlySelf:!0})}),this._updateValue();const i=r.sourceControl??this;!1!==r.emitEvent&&(this._events.next(new tee(this.value,i)),this._events.next(new n8(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...r,skipPristineCheck:e},this),this._onDisabledChange.forEach(o=>o(!0))}enable(r={}){const e=this._parentMarkedDirty(r.onlySelf);this.status=sO,this._forEachChild(i=>{i.enable({...r,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent}),this._updateAncestors({...r,skipPristineCheck:e},this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(r,e){this._parent&&!r.onlySelf&&(this._parent.updateValueAndValidity(r),r.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(r){this._parent=r}getRawValue(){return this.value}updateValueAndValidity(r={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){const i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===sO||this.status===nk)&&this._runAsyncValidator(i,r.emitEvent)}const e=r.sourceControl??this;!1!==r.emitEvent&&(this._events.next(new tee(this.value,e)),this._events.next(new n8(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!r.onlySelf&&this._parent.updateValueAndValidity({...r,sourceControl:e})}_updateTreeValidity(r={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(r)),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?aO:sO}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(r,e){if(this.asyncValidator){this.status=nk,this._hasOwnPendingAsyncValidator={emitEvent:!1!==e};const i=jZ(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:e,shouldHaveEmitted:r})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();const r=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,r}return!1}setErrors(r,e={}){this.errors=r,this._updateControlsErrors(!1!==e.emitEvent,this,e.shouldHaveEmitted)}get(r){let e=r;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,o)=>i&&i._find(o),this)}getError(r,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[r]:null}hasError(r,e){return!!this.getError(r,e)}get root(){let r=this;for(;r._parent;)r=r._parent;return r}_updateControlsErrors(r,e,i){this.status=this._calculateStatus(),r&&this.statusChanges.emit(this.status),(r||i)&&this._events.next(new n8(this.status,e)),this._parent&&this._parent._updateControlsErrors(r,e,i)}_initObservables(){this.valueChanges=new n.bkB,this.statusChanges=new n.bkB}_calculateStatus(){return this._allControlsDisabled()?aO:this.errors?t8:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(nk)?nk:this._anyControlsHaveStatus(t8)?t8:sO}_anyControlsHaveStatus(r){return this._anyControls(e=>e.status===r)}_anyControlsDirty(){return this._anyControls(r=>r.dirty)}_anyControlsTouched(){return this._anyControls(r=>r.touched)}_updatePristine(r,e){const i=!this._anyControlsDirty(),o=this.pristine!==i;this.pristine=i,this._parent&&!r.onlySelf&&this._parent._updatePristine(r,e),o&&this._events.next(new y$(this.pristine,e))}_updateTouched(r={},e){this.touched=this._anyControlsTouched(),this._events.next(new b$(this.touched,e)),this._parent&&!r.onlySelf&&this._parent._updateTouched(r,e)}_onDisabledChange=[];_registerOnCollectionChange(r){this._onCollectionChange=r}_setUpdateStrategy(r){i8(r)&&null!=r.updateOn&&(this._updateOn=r.updateOn)}_parentMarkedDirty(r){return!r&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(r){return null}_assignValidators(r){this._rawValidators=Array.isArray(r)?r.slice():r,this._composedValidatorFn=function Ege(t){return Array.isArray(t)?f$(t):t||null}(this._rawValidators)}_assignAsyncValidators(r){this._rawAsyncValidators=Array.isArray(r)?r.slice():r,this._composedAsyncValidatorFn=function Dge(t){return Array.isArray(t)?m$(t):t||null}(this._rawAsyncValidators)}}class Sb extends r8{constructor(r,e,i){super(C$(e),w$(i,e)),this.controls=r,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(r,e){return this.controls[r]?this.controls[r]:(this.controls[r]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(r,e,i={}){this.registerControl(r,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(r,e={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),delete this.controls[r],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(r,e,i={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),delete this.controls[r],e&&this.registerControl(r,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(r){return this.controls.hasOwnProperty(r)&&this.controls[r].enabled}setValue(r,e={}){iee(this,0,r),Object.keys(r).forEach(i=>{nee(this,!0,i),this.controls[i].setValue(r[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(r,e={}){null!=r&&(Object.keys(r).forEach(i=>{const o=this.controls[i];o&&o.patchValue(r[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(r={},e={}){this._forEachChild((i,o)=>{i.reset(r?r[o]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(r,e,i)=>(r[i]=e.getRawValue(),r))}_syncPendingControls(){let r=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return r&&this.updateValueAndValidity({onlySelf:!0}),r}_forEachChild(r){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&r(i,e)})}_setUpControls(){this._forEachChild(r=>{r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(r){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&r(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,o)=>((i.enabled||this.disabled)&&(e[o]=i.value),e))}_reduceChildren(r,e){let i=r;return this._forEachChild((o,s)=>{i=e(i,o,s)}),i}_allControlsDisabled(){for(const r of Object.keys(this.controls))if(this.controls[r].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(r){return this.controls.hasOwnProperty(r)?this.controls[r]:null}}const kge=Sb;class ree extends Sb{}const Tx=new n.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>lO}),lO="always";function o8(t,r){return[...r.path,t]}function cO(t,r,e=lO){T$(t,r),r.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&r.valueAccessor.setDisabledState?.(t.disabled),function Age(t,r){r.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&oee(t,r)})}(t,r),function Rge(t,r){const e=(i,o)=>{r.valueAccessor.writeValue(i),o&&r.viewToModelUpdate(i)};t.registerOnChange(e),r._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,r),function Mge(t,r){r.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&oee(t,r),"submit"!==t.updateOn&&t.markAsTouched()})}(t,r),function Ige(t,r){if(r.valueAccessor.setDisabledState){const e=i=>{r.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),r._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,r)}function s8(t,r,e=!0){const i=()=>{};r.valueAccessor&&(r.valueAccessor.registerOnChange(i),r.valueAccessor.registerOnTouched(i)),l8(t,r),t&&(r._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function a8(t,r){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(r)})}function T$(t,r){const e=qZ(t);null!==r.validator?t.setValidators(zZ(e,r.validator)):"function"==typeof e&&t.setValidators([e]);const i=XZ(t);null!==r.asyncValidator?t.setAsyncValidators(zZ(i,r.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const o=()=>t.updateValueAndValidity();a8(r._rawValidators,o),a8(r._rawAsyncValidators,o)}function l8(t,r){let e=!1;if(null!==t){if(null!==r.validator){const o=qZ(t);if(Array.isArray(o)&&o.length>0){const s=o.filter(a=>a!==r.validator);s.length!==o.length&&(e=!0,t.setValidators(s))}}if(null!==r.asyncValidator){const o=XZ(t);if(Array.isArray(o)&&o.length>0){const s=o.filter(a=>a!==r.asyncValidator);s.length!==o.length&&(e=!0,t.setAsyncValidators(s))}}}const i=()=>{};return a8(r._rawValidators,i),a8(r._rawAsyncValidators,i),e}function oee(t,r){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),r.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function see(t,r){T$(t,r)}function x$(t,r){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(r,e.currentValue)}function aee(t,r){t._syncPendingControls(),r.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function E$(t,r){if(!r)return null;let e,i,o;return Array.isArray(r),r.forEach(s=>{s.constructor===Cc?e=s:function Pge(t){return Object.getPrototypeOf(t.constructor)===wx}(s)?i=s:o=s}),o||i||e||null}const Nge={provide:Qf,useExisting:(0,n.Rfq)(()=>Sx)},uO=Promise.resolve();let Sx=(()=>{class t extends Qf{callSetDisabledState;get submitted(){return(0,n.O8t)(this.submittedReactive)}_submitted=(0,n.EWP)(()=>this.submittedReactive());submittedReactive=(0,n.vPA)(!1);_directives=new Set;form;ngSubmit=new n.bkB;options;constructor(e,i,o){super(),this.callSetDisabledState=o,this.form=new Sb({},f$(e),m$(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){uO.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),cO(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){uO.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){uO.then(()=>{const i=this._findContainer(e.path),o=new Sb({});see(o,e),i.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){uO.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){uO.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),aee(this.form,this._directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static \u0275fac=function(i){return new(i||t)(n.rXU(Ah,10),n.rXU(Vw,10),n.rXU(Tx,8))};static \u0275dir=n.FsC({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,o){1&i&&n.bIt("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[n.Jv_([Nge]),n.Vt3]})}return t})();function lee(t,r){const e=t.indexOf(r);e>-1&&t.splice(e,1)}function cee(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const fs=class extends r8{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(r=null,e,i){super(C$(e),w$(i,e)),this._applyFormState(r),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),i8(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=cee(r)?r.value:r)}setValue(r,e={}){this.value=this._pendingValue=r,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(r,e={}){this.setValue(r,e)}reset(r=this.defaultValue,e={}){this._applyFormState(r),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(r){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(r){this._onChange.push(r)}_unregisterOnChange(r){lee(this._onChange,r)}registerOnDisabledChange(r){this._onDisabledChange.push(r)}_unregisterOnDisabledChange(r){lee(this._onDisabledChange,r)}_forEachChild(r){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(r){cee(r)?(this.value=this._pendingValue=r.value,r.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=r}},xb=fs,Vge={provide:mg,useExisting:(0,n.Rfq)(()=>ko)},pee=Promise.resolve();let ko=(()=>{class t extends mg{_changeDetectorRef;callSetDisabledState;control=new fs;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new n.bkB;constructor(e,i,o,s,a,l){super(),this._changeDetectorRef=a,this.callSetDisabledState=l,this._parent=e,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=E$(0,s)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),x$(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){cO(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){pee.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,o=0!==i&&(0,n.L39)(i);pee.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?o8(e,this._parent):[e]}static \u0275fac=function(i){return new(i||t)(n.rXU(Qf,9),n.rXU(Ah,10),n.rXU(Vw,10),n.rXU(tl,10),n.rXU(n.gRc,8),n.rXU(Tx,8))};static \u0275dir=n.FsC({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[n.Jv_([Vge]),n.Vt3,n.OA$]})}return t})(),wv=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=n.FsC({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return t})();const jge={provide:tl,useExisting:(0,n.Rfq)(()=>rk),multi:!0};let rk=(()=>{class t extends wx{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=i=>{e(""==i?null:parseFloat(i))}}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275dir=n.FsC({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(i,o){1&i&&n.bIt("input",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},standalone:!1,features:[n.Jv_([jge]),n.Vt3]})}return t})();const D$=new n.nKC(""),Yge={provide:mg,useExisting:(0,n.Rfq)(()=>dO)};let dO=(()=>{class t extends mg{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new n.bkB;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,i,o,s,a){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=a,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=E$(0,o)}ngOnChanges(e){if(this._isControlChanged(e)){const i=e.form.previousValue;i&&s8(i,this,!1),cO(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}x$(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&s8(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static \u0275fac=function(i){return new(i||t)(n.rXU(Ah,10),n.rXU(Vw,10),n.rXU(tl,10),n.rXU(D$,8),n.rXU(Tx,8))};static \u0275dir=n.FsC({type:t,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[n.Jv_([Yge]),n.Vt3,n.OA$]})}return t})();const Wge={provide:Qf,useExisting:(0,n.Rfq)(()=>Tv)};let Tv=(()=>{class t extends Qf{callSetDisabledState;get submitted(){return(0,n.O8t)(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=(0,n.EWP)(()=>this._submittedReactive());_submittedReactive=(0,n.vPA)(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new n.bkB;constructor(e,i,o){super(),this.callSetDisabledState=o,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(l8(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return cO(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){s8(e.control||null,e,!1),function Lge(t,r){const e=t.indexOf(r);e>-1&&t.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this._submittedReactive.set(!0),aee(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new Sge(this.control)),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this._submittedReactive.set(!1),this.form._events.next(new xge(this.form))}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,o=this.form.get(e.path);i!==o&&(s8(i||null,e),(t=>t instanceof fs)(o)&&(cO(o,e,this.callSetDisabledState),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);see(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function Oge(t,r){return l8(t,r)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){T$(this.form,this),this._oldForm&&l8(this._oldForm,this)}_checkFormPresent(){}static \u0275fac=function(i){return new(i||t)(n.rXU(Ah,10),n.rXU(Vw,10),n.rXU(Tx,8))};static \u0275dir=n.FsC({type:t,selectors:[["","formGroup",""]],hostBindings:function(i,o){1&i&&n.bIt("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[n.Jv_([Wge]),n.Vt3,n.OA$]})}return t})();const Xge={provide:mg,useExisting:(0,n.Rfq)(()=>Eb)};let Eb=(()=>{class t extends mg{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(e){}model;update=new n.bkB;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,i,o,s,a){super(),this._ngModelWarningConfig=a,this._parent=e,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=E$(0,s)}ngOnChanges(e){this._added||this._setUpControl(),x$(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return o8(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(i){return new(i||t)(n.rXU(Qf,13),n.rXU(Ah,10),n.rXU(Vw,10),n.rXU(tl,10),n.rXU(D$,8))};static \u0275dir=n.FsC({type:t,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[n.Jv_([Xge]),n.Vt3,n.OA$]})}return t})();const Kge={provide:tl,useExisting:(0,n.Rfq)(()=>Ty),multi:!0};function gee(t,r){return null==t?`${r}`:(r&&"object"==typeof r&&(r="Object"),`${t}: ${r}`.slice(0,50))}let Ty=(()=>{class t extends wx{value;_optionMap=new Map;_idCounter=0;set compareWith(e){this._compareWith=e}_compareWith=Object.is;writeValue(e){this.value=e;const o=gee(this._getOptionId(e),e);this.setProperty("value",o)}registerOnChange(e){this.onChange=i=>{this.value=this._getOptionValue(i),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i),e))return i;return null}_getOptionValue(e){const i=function Qge(t){return t.split(":")[0]}(e);return this._optionMap.has(i)?this._optionMap.get(i):e}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275dir=n.FsC({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(i,o){1&i&&n.bIt("change",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[n.Jv_([Kge]),n.Vt3]})}return t})(),Sy=(()=>{class t{_element;_renderer;_select;id;constructor(e,i,o){this._element=e,this._renderer=i,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(gee(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static \u0275fac=function(i){return new(i||t)(n.rXU(n.aKT),n.rXU(n.sFG),n.rXU(Ty,9))};static \u0275dir=n.FsC({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return t})();const Jge={provide:tl,useExisting:(0,n.Rfq)(()=>A$),multi:!0};function vee(t,r){return null==t?`${r}`:("string"==typeof r&&(r=`'${r}'`),r&&"object"==typeof r&&(r="Object"),`${t}: ${r}`.slice(0,50))}let A$=(()=>{class t extends wx{value;_optionMap=new Map;_idCounter=0;set compareWith(e){this._compareWith=e}_compareWith=Object.is;writeValue(e){let i;if(this.value=e,Array.isArray(e)){const o=e.map(s=>this._getOptionId(s));i=(s,a)=>{s._setSelected(o.indexOf(a.toString())>-1)}}else i=(o,s)=>{o._setSelected(!1)};this._optionMap.forEach(i)}registerOnChange(e){this.onChange=i=>{const o=[],s=i.selectedOptions;if(void 0!==s){const a=s;for(let l=0;l<a.length;l++){const d=this._getOptionValue(a[l].value);o.push(d)}}else{const a=i.options;for(let l=0;l<a.length;l++){const c=a[l];if(c.selected){const d=this._getOptionValue(c.value);o.push(d)}}}this.value=o,e(o)}}_registerOption(e){const i=(this._idCounter++).toString();return this._optionMap.set(i,e),i}_getOptionId(e){for(const i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i)._value,e))return i;return null}_getOptionValue(e){const i=function Zge(t){return t.split(":")[0]}(e);return this._optionMap.has(i)?this._optionMap.get(i)._value:e}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275dir=n.FsC({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(i,o){1&i&&n.bIt("change",function(a){return o.onChange(a.target)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[n.Jv_([Jge]),n.Vt3]})}return t})(),xy=(()=>{class t{_element;_renderer;_select;id;_value;constructor(e,i,o){this._element=e,this._renderer=i,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(vee(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(vee(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static \u0275fac=function(i){return new(i||t)(n.rXU(n.aKT),n.rXU(n.sFG),n.rXU(A$,9))};static \u0275dir=n.FsC({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return t})();let xx=(()=>{class t{_validator=J5;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){const i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):J5,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}static \u0275fac=function(i){return new(i||t)};static \u0275dir=n.FsC({type:t,features:[n.OA$]})}return t})();const tve={provide:Ah,useExisting:(0,n.Rfq)(()=>ok),multi:!0};let ok=(()=>{class t extends xx{min;inputName="min";normalizeInput=e=>function yee(t){return"number"==typeof t?t:parseFloat(t)}(e);createValidator=e=>RZ(e);static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275dir=n.FsC({type:t,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(i,o){2&i&&n.BMQ("min",o._enabled?o.min:null)},inputs:{min:"min"},standalone:!1,features:[n.Jv_([tve]),n.Vt3]})}return t})();const nve={provide:Ah,useExisting:(0,n.Rfq)(()=>Sv),multi:!0},ive={provide:Ah,useExisting:(0,n.Rfq)(()=>M$),multi:!0};let Sv=(()=>{class t extends xx{required;inputName="required";normalizeInput=n.L39;createValidator=e=>FZ;enabled(e){return e}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275dir=n.FsC({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(i,o){2&i&&n.BMQ("required",o._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[n.Jv_([nve]),n.Vt3]})}return t})(),M$=(()=>{class t extends Sv{createValidator=e=>PZ;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275dir=n.FsC({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(i,o){2&i&&n.BMQ("required",o._enabled?"":null)},standalone:!1,features:[n.Jv_([ive]),n.Vt3]})}return t})();const rve={provide:Ah,useExisting:(0,n.Rfq)(()=>c8),multi:!0};let c8=(()=>{class t extends xx{email;inputName="email";normalizeInput=n.L39;createValidator=e=>LZ;enabled(e){return e}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275dir=n.FsC({type:t,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},standalone:!1,features:[n.Jv_([rve]),n.Vt3]})}return t})();const sve={provide:Ah,useExisting:(0,n.Rfq)(()=>sk),multi:!0};let sk=(()=>{class t extends xx{maxlength;inputName="maxlength";normalizeInput=e=>function _ee(t){return"number"==typeof t?t:parseInt(t,10)}(e);createValidator=e=>GZ(e);static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275dir=n.FsC({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(i,o){2&i&&n.BMQ("maxlength",o._enabled?o.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[n.Jv_([sve]),n.Vt3]})}return t})(),Tee=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({})}return t})();class See extends r8{constructor(r,e,i){super(C$(e),w$(i,e)),this.controls=r,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(r){return this.controls[this._adjustIndex(r)]}push(r,e={}){this.controls.push(r),this._registerControl(r),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(r,e,i={}){this.controls.splice(r,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(r,e={}){let i=this._adjustIndex(r);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(r,e,i={}){let o=this._adjustIndex(r);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),e&&(this.controls.splice(o,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(r,e={}){iee(this,0,r),r.forEach((i,o)=>{nee(this,!1,o),this.at(o).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(r,e={}){null!=r&&(r.forEach((i,o)=>{this.at(o)&&this.at(o).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(r=[],e={}){this._forEachChild((i,o)=>{i.reset(r[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(r=>r.getRawValue())}clear(r={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:r.emitEvent}))}_adjustIndex(r){return r<0?r+this.length:r}_syncPendingControls(){let r=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return r&&this.updateValueAndValidity({onlySelf:!0}),r}_forEachChild(r){this.controls.forEach((e,i)=>{r(e,i)})}_updateValue(){this.value=this.controls.filter(r=>r.enabled||this.disabled).map(r=>r.value)}_anyControls(r){return this.controls.some(e=>e.enabled&&r(e))}_setUpControls(){this._forEachChild(r=>this._registerControl(r))}_allControlsDisabled(){for(const r of this.controls)if(r.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(r){r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange)}_find(r){return this.at(r)??null}}function xee(t){return!!t&&(void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn)}let R$=(()=>{class t{useNonNullable=!1;get nonNullable(){const e=new t;return e.useNonNullable=!0,e}group(e,i=null){const o=this._reduceControls(e);let s={};return xee(i)?s=i:null!==i&&(s.validators=i.validator,s.asyncValidators=i.asyncValidator),new Sb(o,s)}record(e,i=null){const o=this._reduceControls(e);return new ree(o,i)}control(e,i,o){let s={};return this.useNonNullable?(xee(i)?s=i:(s.validators=i,s.asyncValidators=o),new fs(e,{...s,nonNullable:!0})):new fs(e,i,o)}array(e,i,o){const s=e.map(a=>this._createControl(a));return new See(s,i,o)}_reduceControls(e){const i={};return Object.keys(e).forEach(o=>{i[o]=this._createControl(e[o])}),i}_createControl(e){return e instanceof fs||e instanceof r8?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),u8=(()=>{class t extends R${group(e,i=null){return super.group(e,i)}control(e,i,o){return super.control(e,i,o)}array(e,i,o){return super.array(e,i,o)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ra=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Tx,useValue:e.callSetDisabledState??lO}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({imports:[Tee]})}return t})(),xv=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:D$,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Tx,useValue:e.callSetDisabledState??lO}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({imports:[Tee]})}return t})(),Eee=(()=>{class t extends gs{name="common";static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),jo=(()=>{class t{document=(0,n.WQX)(be);platformId=(0,n.WQX)(n.Agw);el=(0,n.WQX)(n.aKT);injector=(0,n.WQX)(n.zZn);cd=(0,n.WQX)(n.gRc);renderer=(0,n.WQX)(n.sFG);config=(0,n.WQX)(h$);baseComponentStyle=(0,n.WQX)(Eee);baseStyle=(0,n.WQX)(gs);scopedStyleEl;rootEl;dt;get styleOptions(){return{nonce:this.config?.csp().nonce}}get _name(){return this.constructor.name.replace(/^_/,"").toLowerCase()}get componentStyle(){return this._componentStyle}attrSelector=Bl("pc");_getHostInstance(e){if(e)return e?this.hostName?e.name===this.hostName?e:this._getHostInstance(e.parentInstance):e.parentInstance:void 0}_getOptionValue(e,i="",o={}){return g5(e,i,o)}ngOnInit(){this.document&&this._loadStyles()}ngAfterViewInit(){this.rootEl=this.el?.nativeElement,this.rootEl&&this.rootEl?.setAttribute(this.attrSelector,"")}ngOnChanges(e){if(this.document&&!ts(this.platformId)){const{dt:i}=e;i&&i.currentValue&&(this._loadScopedThemeStyles(i.currentValue),this._themeChangeListener(()=>this._loadScopedThemeStyles(i.currentValue)))}}ngOnDestroy(){this._unloadScopedThemeStyles()}_loadStyles(){const e=()=>{oO.isStyleNameLoaded("base")||(this.baseStyle.loadCSS(this.styleOptions),oO.setLoadedStyleName("base")),this._loadThemeStyles()};e(),this._themeChangeListener(()=>e())}_loadCoreStyles(){!oO.isStyleNameLoaded("base")&&this._name&&(this.baseComponentStyle.loadCSS(this.styleOptions),this.componentStyle&&this.componentStyle?.loadCSS(this.styleOptions),oO.setLoadedStyleName(this.componentStyle?.name))}_loadThemeStyles(){if(!Gl.isStyleNameLoaded("common")){const{primitive:e,semantic:i,global:o,style:s}=this.componentStyle?.getCommonTheme?.()||{};this.baseStyle.load(e?.css,{name:"primitive-variables",...this.styleOptions}),this.baseStyle.load(i?.css,{name:"semantic-variables",...this.styleOptions}),this.baseStyle.load(o?.css,{name:"global-variables",...this.styleOptions}),this.baseStyle.loadTheme({name:"global-style",...this.styleOptions},s),Gl.setLoadedStyleName("common")}if(!Gl.isStyleNameLoaded(this.componentStyle?.name)&&this.componentStyle?.name){const{css:e,style:i}=this.componentStyle?.getComponentTheme?.()||{};this.componentStyle?.load(e,{name:`${this.componentStyle?.name}-variables`,...this.styleOptions}),this.componentStyle?.loadTheme({name:`${this.componentStyle?.name}-style`,...this.styleOptions},i),Gl.setLoadedStyleName(this.componentStyle?.name)}if(!Gl.isStyleNameLoaded("layer-order")){const e=this.componentStyle?.getLayerOrderThemeCSS?.();this.baseStyle.load(e,{name:"layer-order",first:!0,...this.styleOptions}),Gl.setLoadedStyleName("layer-order")}this.dt&&(this._loadScopedThemeStyles(this.dt),this._themeChangeListener(()=>this._loadScopedThemeStyles(this.dt)))}_loadScopedThemeStyles(e){const{css:i}=this.componentStyle?.getPresetTheme?.(e,`[${this.attrSelector}]`)||{},o=this.componentStyle?.load(i,{name:`${this.attrSelector}-${this.componentStyle?.name}`,...this.styleOptions});this.scopedStyleEl=o?.el}_unloadScopedThemeStyles(){this.scopedStyleEl?.remove()}_themeChangeListener(e=()=>{}){oO.clearLoadedStyleNames(),bv.on("theme:change",e)}cx(e,i){const o=this.parent?this.parent.componentStyle?.classes?.[e]:this.componentStyle?.classes?.[e];return"function"==typeof o?o({instance:this}):"string"==typeof o?o:e}sx(e){const i=this.componentStyle?.inlineStyles?.[e];return"function"==typeof i?i({instance:this}):"string"==typeof i?i:{...i}}get parent(){return this.parentInstance}static \u0275fac=function(i){return new(i||t)};static \u0275dir=n.FsC({type:t,inputs:{dt:"dt"},features:[n.Jv_([Eee,gs]),n.OA$]})}return t})(),Vr=(()=>{class t{static zindex=1e3;static calculatedScrollbarWidth=null;static calculatedScrollbarHeight=null;static browser;static addClass(e,i){e&&i&&(e.classList?e.classList.add(i):e.className+=" "+i)}static addMultipleClasses(e,i){if(e&&i)if(e.classList){let o=i.trim().split(" ");for(let s=0;s<o.length;s++)e.classList.add(o[s])}else{let o=i.split(" ");for(let s=0;s<o.length;s++)e.className+=" "+o[s]}}static removeClass(e,i){e&&i&&(e.classList?e.classList.remove(i):e.className=e.className.replace(new RegExp("(^|\\b)"+i.split(" ").join("|")+"(\\b|$)","gi")," "))}static removeMultipleClasses(e,i){e&&i&&[i].flat().filter(Boolean).forEach(o=>o.split(" ").forEach(s=>this.removeClass(e,s)))}static hasClass(e,i){return!(!e||!i)&&(e.classList?e.classList.contains(i):new RegExp("(^| )"+i+"( |$)","gi").test(e.className))}static siblings(e){return Array.prototype.filter.call(e.parentNode.children,function(i){return i!==e})}static find(e,i){return Array.from(e.querySelectorAll(i))}static findSingle(e,i){return this.isElement(e)?e.querySelector(i):null}static index(e){let i=e.parentNode.childNodes,o=0;for(var s=0;s<i.length;s++){if(i[s]==e)return o;1==i[s].nodeType&&o++}return-1}static indexWithinGroup(e,i){let o=e.parentNode?e.parentNode.childNodes:[],s=0;for(var a=0;a<o.length;a++){if(o[a]==e)return s;o[a].attributes&&o[a].attributes[i]&&1==o[a].nodeType&&s++}return-1}static appendOverlay(e,i,o="self"){"self"!==o&&e&&i&&this.appendChild(e,i)}static alignOverlay(e,i,o="self",s=!0){e&&i&&(s&&(e.style.minWidth=`${t.getOuterWidth(i)}px`),"self"===o?this.relativePosition(e,i):this.absolutePosition(e,i))}static relativePosition(e,i,o=!0){const s=pe=>{if(pe)return"relative"===getComputedStyle(pe).getPropertyValue("position")?pe:s(pe.parentElement)},a=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),l=i.offsetHeight,c=i.getBoundingClientRect(),d=this.getWindowScrollTop(),f=this.getWindowScrollLeft(),v=this.getViewport(),x=s(e)?.getBoundingClientRect()||{top:-1*d,left:-1*f};let I,M;c.top+l+a.height>v.height?(I=c.top-x.top-a.height,e.style.transformOrigin="bottom",c.top+I<0&&(I=-1*c.top)):(I=l+c.top-x.top,e.style.transformOrigin="top");const F=c.left+a.width-v.width;M=a.width>v.width?-1*(c.left-x.left):F>0?c.left-x.left-F:c.left-x.left,e.style.top=I+"px",e.style.left=M+"px",o&&(e.style.marginTop="bottom"===origin?"calc(var(--p-anchor-gutter) * -1)":"calc(var(--p-anchor-gutter))")}static absolutePosition(e,i,o=!0){const s=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),a=s.height,l=s.width,c=i.offsetHeight,d=i.offsetWidth,f=i.getBoundingClientRect(),v=this.getWindowScrollTop(),w=this.getWindowScrollLeft(),x=this.getViewport();let I,M;f.top+c+a>x.height?(I=f.top+v-a,e.style.transformOrigin="bottom",I<0&&(I=v)):(I=c+f.top+v,e.style.transformOrigin="top"),M=f.left+l>x.width?Math.max(0,f.left+w+d-l):f.left+w,e.style.top=I+"px",e.style.left=M+"px",o&&(e.style.marginTop="bottom"===origin?"calc(var(--p-anchor-gutter) * -1)":"calc(var(--p-anchor-gutter))")}static getParents(e,i=[]){return null===e.parentNode?i:this.getParents(e.parentNode,i.concat([e.parentNode]))}static getScrollableParents(e){let i=[];if(e){let o=this.getParents(e);const s=/(auto|scroll)/,a=l=>{let c=window.getComputedStyle(l,null);return s.test(c.getPropertyValue("overflow"))||s.test(c.getPropertyValue("overflowX"))||s.test(c.getPropertyValue("overflowY"))};for(let l of o){let c=1===l.nodeType&&l.dataset.scrollselectors;if(c){let d=c.split(",");for(let f of d){let v=this.findSingle(l,f);v&&a(v)&&i.push(v)}}9!==l.nodeType&&a(l)&&i.push(l)}}return i}static getHiddenElementOuterHeight(e){e.style.visibility="hidden",e.style.display="block";let i=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",i}static getHiddenElementOuterWidth(e){e.style.visibility="hidden",e.style.display="block";let i=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",i}static getHiddenElementDimensions(e){let i={};return e.style.visibility="hidden",e.style.display="block",i.width=e.offsetWidth,i.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",i}static scrollInView(e,i){let o=getComputedStyle(e).getPropertyValue("borderTopWidth"),s=o?parseFloat(o):0,a=getComputedStyle(e).getPropertyValue("paddingTop"),l=a?parseFloat(a):0,c=e.getBoundingClientRect(),f=i.getBoundingClientRect().top+document.body.scrollTop-(c.top+document.body.scrollTop)-s-l,v=e.scrollTop,w=e.clientHeight,x=this.getOuterHeight(i);f<0?e.scrollTop=v+f:f+x>w&&(e.scrollTop=v+f-w+x)}static fadeIn(e,i){e.style.opacity=0;let o=+new Date,s=0,a=function(){s=+e.style.opacity.replace(",",".")+((new Date).getTime()-o)/i,e.style.opacity=s,o=+new Date,+s<1&&(window.requestAnimationFrame&&requestAnimationFrame(a)||setTimeout(a,16))};a()}static fadeOut(e,i){var o=1,l=50/i;let c=setInterval(()=>{(o-=l)<=0&&(o=0,clearInterval(c)),e.style.opacity=o},50)}static getWindowScrollTop(){let e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}static getWindowScrollLeft(){let e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}static matches(e,i){var o=Element.prototype;return(o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.msMatchesSelector||function(a){return-1!==[].indexOf.call(document.querySelectorAll(a),this)}).call(e,i)}static getOuterWidth(e,i){let o=e.offsetWidth;if(i){let s=getComputedStyle(e);o+=parseFloat(s.marginLeft)+parseFloat(s.marginRight)}return o}static getHorizontalPadding(e){let i=getComputedStyle(e);return parseFloat(i.paddingLeft)+parseFloat(i.paddingRight)}static getHorizontalMargin(e){let i=getComputedStyle(e);return parseFloat(i.marginLeft)+parseFloat(i.marginRight)}static innerWidth(e){let i=e.offsetWidth,o=getComputedStyle(e);return i+=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),i}static width(e){let i=e.offsetWidth,o=getComputedStyle(e);return i-=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),i}static getInnerHeight(e){let i=e.offsetHeight,o=getComputedStyle(e);return i+=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom),i}static getOuterHeight(e,i){let o=e.offsetHeight;if(i){let s=getComputedStyle(e);o+=parseFloat(s.marginTop)+parseFloat(s.marginBottom)}return o}static getHeight(e){let i=e.offsetHeight,o=getComputedStyle(e);return i-=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom)+parseFloat(o.borderTopWidth)+parseFloat(o.borderBottomWidth),i}static getWidth(e){let i=e.offsetWidth,o=getComputedStyle(e);return i-=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight)+parseFloat(o.borderLeftWidth)+parseFloat(o.borderRightWidth),i}static getViewport(){let e=window,i=document,o=i.documentElement,s=i.getElementsByTagName("body")[0];return{width:e.innerWidth||o.clientWidth||s.clientWidth,height:e.innerHeight||o.clientHeight||s.clientHeight}}static getOffset(e){var i=e.getBoundingClientRect();return{top:i.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:i.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static replaceElementWith(e,i){let o=e.parentNode;if(!o)throw"Can't replace element";return o.replaceChild(i,e)}static getUserAgent(){if(navigator&&this.isClient())return navigator.userAgent}static isIE(){var e=window.navigator.userAgent;return e.indexOf("MSIE ")>0||(e.indexOf("Trident/")>0?(e.indexOf("rv:"),!0):e.indexOf("Edge/")>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(e,i){if(this.isElement(i))i.appendChild(e);else{if(!(i&&i.el&&i.el.nativeElement))throw"Cannot append "+i+" to "+e;i.el.nativeElement.appendChild(e)}}static removeChild(e,i){if(this.isElement(i))i.removeChild(e);else{if(!i.el||!i.el.nativeElement)throw"Cannot remove "+e+" from "+i;i.el.nativeElement.removeChild(e)}}static removeElement(e){"remove"in Element.prototype?e.remove():e.parentNode.removeChild(e)}static isElement(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}static calculateScrollbarWidth(e){if(e){let i=getComputedStyle(e);return e.offsetWidth-e.clientWidth-parseFloat(i.borderLeftWidth)-parseFloat(i.borderRightWidth)}{if(null!==this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;let i=document.createElement("div");i.className="p-scrollbar-measure",document.body.appendChild(i);let o=i.offsetWidth-i.clientWidth;return document.body.removeChild(i),this.calculatedScrollbarWidth=o,o}}static calculateScrollbarHeight(){if(null!==this.calculatedScrollbarHeight)return this.calculatedScrollbarHeight;let e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);let i=e.offsetHeight-e.clientHeight;return document.body.removeChild(e),this.calculatedScrollbarWidth=i,i}static invokeElementMethod(e,i,o){e[i].apply(e,o)}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 e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}static resolveUserAgent(){let e=navigator.userAgent.toLowerCase(),i=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:i[1]||"",version:i[2]||"0"}}static isInteger(e){return Number.isInteger?Number.isInteger(e):"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}static isHidden(e){return!e||null===e.offsetParent}static isVisible(e){return e&&null!=e.offsetParent}static isExist(e){return null!==e&&typeof e<"u"&&e.nodeName&&e.parentNode}static focus(e,i){e&&document.activeElement!==e&&e.focus(i)}static getFocusableSelectorString(e=""){return`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},\n        [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},\n        input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},\n        select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},\n        textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},\n        [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},\n        [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},\n        .p-inputtext:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},\n        .p-button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e}`}static getFocusableElements(e,i=""){let o=this.find(e,this.getFocusableSelectorString(i)),s=[];for(let a of o){const l=getComputedStyle(a);this.isVisible(a)&&"none"!=l.display&&"hidden"!=l.visibility&&s.push(a)}return s}static getFocusableElement(e,i=""){let o=this.findSingle(e,this.getFocusableSelectorString(i));if(o){const s=getComputedStyle(o);if(this.isVisible(o)&&"none"!=s.display&&"hidden"!=s.visibility)return o}return null}static getFirstFocusableElement(e,i=""){const o=this.getFocusableElements(e,i);return o.length>0?o[0]:null}static getLastFocusableElement(e,i){const o=this.getFocusableElements(e,i);return o.length>0?o[o.length-1]:null}static getNextFocusableElement(e,i=!1){const o=t.getFocusableElements(e);let s=0;if(o&&o.length>0){const a=o.indexOf(o[0].ownerDocument.activeElement);i?s=-1==a||0===a?o.length-1:a-1:-1!=a&&a!==o.length-1&&(s=a+1)}return o[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(e,i){if(!e)return null;switch(e){case"document":return document;case"window":return window;case"@next":return i?.nextElementSibling;case"@prev":return i?.previousElementSibling;case"@parent":return i?.parentElement;case"@grandparent":return i?.parentElement.parentElement;default:const o=typeof e;if("string"===o)return document.querySelector(e);if("object"===o&&e.hasOwnProperty("nativeElement"))return this.isExist(e.nativeElement)?e.nativeElement:void 0;const a=(l=e)&&l.constructor&&l.call&&l.apply?e():e;return a&&9===a.nodeType||this.isExist(a)?a:null}var l}static isClient(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}static getAttribute(e,i){if(e){const o=e.getAttribute(i);return isNaN(o)?"true"===o||"false"===o?"true"===o:o:+o}}static calculateBodyScrollbarWidth(){return window.innerWidth-document.documentElement.offsetWidth}static blockBodyScroll(e="p-overflow-hidden"){document.body.style.setProperty("--scrollbar-width",this.calculateBodyScrollbarWidth()+"px"),this.addClass(document.body,e)}static unblockBodyScroll(e="p-overflow-hidden"){document.body.style.removeProperty("--scrollbar-width"),this.removeClass(document.body,e)}static createElement(e,i={},...o){if(e){const s=document.createElement(e);return this.setAttributes(s,i),s.append(...o),s}}static setAttribute(e,i="",o){this.isElement(e)&&null!=o&&e.setAttribute(i,o)}static setAttributes(e,i={}){if(this.isElement(e)){const o=(s,a)=>{const l=e?.$attrs?.[s]?[e?.$attrs?.[s]]:[];return[a].flat().reduce((c,d)=>{if(null!=d){const f=typeof d;if("string"===f||"number"===f)c.push(d);else if("object"===f){const v=Array.isArray(d)?o(s,d):Object.entries(d).map(([w,x])=>"style"!==s||!x&&0!==x?x?w:void 0:`${w.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${x}`);c=v.length?c.concat(v.filter(w=>!!w)):c}}return c},l)};Object.entries(i).forEach(([s,a])=>{if(null!=a){const l=s.match(/^on(.+)/);l?e.addEventListener(l[1].toLowerCase(),a):"pBind"===s?this.setAttributes(e,a):(a="class"===s?[...new Set(o("class",a))].join(" ").trim():"style"===s?o("style",a).join(";").trim():a,(e.$attrs=e.$attrs||{})&&(e.$attrs[s]=a),e.setAttribute(s,a))}})}}static isFocusableElement(e,i=""){return!!this.isElement(e)&&e.matches(`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${i},\n                [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${i},\n                input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${i},\n                select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${i},\n                textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${i},\n                [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${i},\n                [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${i}`)}}return t})();class jw{element;listener;scrollableParents;constructor(r,e=()=>{}){this.element=r,this.listener=e}bindScrollListener(){this.scrollableParents=Vr.getScrollableParents(this.element);for(let r=0;r<this.scrollableParents.length;r++)this.scrollableParents[r].addEventListener("scroll",this.listener)}unbindScrollListener(){if(this.scrollableParents)for(let r=0;r<this.scrollableParents.length;r++)this.scrollableParents[r].removeEventListener("scroll",this.listener)}destroy(){this.unbindScrollListener(),this.element=null,this.listener=null,this.scrollableParents=null}}let Jf=(()=>{class t extends jo{autofocus=!1;_autofocus=!1;focused=!1;platformId=(0,n.WQX)(n.Agw);document=(0,n.WQX)(be);host=(0,n.WQX)(n.aKT);ngAfterContentChecked(){!1===this.autofocus?this.host.nativeElement.removeAttribute("autofocus"):this.host.nativeElement.setAttribute("autofocus",!0),this.focused||this.autoFocus()}ngAfterViewChecked(){this.focused||this.autoFocus()}autoFocus(){Gr(this.platformId)&&this._autofocus&&setTimeout(()=>{const e=Vr.getFocusableElements(this.host?.nativeElement);0===e.length&&this.host.nativeElement.focus(),e.length>0&&e[0].focus(),this.focused=!0})}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275dir=n.FsC({type:t,selectors:[["","pAutoFocus",""]],inputs:{autofocus:[2,"autofocus","autofocus",n.L39],_autofocus:[0,"pAutoFocus","_autofocus"]},features:[n.GFd,n.Vt3]})}return t})(),O$=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({})}return t})();const lve=({dt:t})=>`\n.p-iconfield {\n    position: relative;\n    display: block;\n}\n\n.p-inputicon {\n    position: absolute;\n    top: 50%;\n    margin-top: calc(-1 * (${t("icon.size")} / 2));\n    color: ${t("iconfield.icon.color")};\n    line-height: 1;\n}\n\n.p-iconfield .p-inputicon:first-child {\n    inset-inline-start: ${t("form.field.padding.x")};\n}\n\n.p-iconfield .p-inputicon:last-child {\n    inset-inline-end: ${t("form.field.padding.x")};\n}\n\n.p-iconfield .p-inputtext:not(:first-child) {\n    padding-inline-start: calc((${t("form.field.padding.x")} * 2) + ${t("icon.size")});\n}\n\n.p-iconfield .p-inputtext:not(:last-child) {\n    padding-inline-end: calc((${t("form.field.padding.x")} * 2) + ${t("icon.size")});\n}\n\n.p-iconfield:has(.p-inputfield-sm) .p-inputicon {\n    font-size: ${t("form.field.sm.font.size")};\n    width: ${t("form.field.sm.font.size")};\n    height: ${t("form.field.sm.font.size")};\n    margin-top: calc(-1 * (${t("form.field.sm.font.size")} / 2));\n}\n\n.p-iconfield:has(.p-inputfield-lg) .p-inputicon {\n    font-size: ${t("form.field.lg.font.size")};\n    width: ${t("form.field.lg.font.size")};\n    height: ${t("form.field.lg.font.size")};\n    margin-top: calc(-1 * (${t("form.field.lg.font.size")} / 2));\n}\n`,cve={root:"p-iconfield"};let Dee=(()=>{class t extends gs{name="iconfield";theme=lve;classes=cve;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const dve=["*"];let Ex=(()=>{class t extends jo{iconPosition="left";get _styleClass(){return this.styleClass}styleClass;_componentStyle=(0,n.WQX)(Dee);static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["p-iconfield"],["p-iconField"],["p-icon-field"]],hostAttrs:[1,"p-iconfield"],hostVars:6,hostBindings:function(i,o){2&i&&(n.HbH(o._styleClass),n.AVh("p-iconfield-left","left"===o.iconPosition)("p-iconfield-right","right"===o.iconPosition))},inputs:{iconPosition:"iconPosition",styleClass:"styleClass"},features:[n.Jv_([Dee]),n.Vt3],ngContentSelectors:dve,decls:1,vars:0,template:function(i,o){1&i&&(n.NAR(),n.SdG(0))},dependencies:[gn],encapsulation:2,changeDetection:0})}return t})(),hve=(()=>{class t extends gs{name="baseicon";inlineStyles="\n.p-icon {\n    display: inline-block;\n    vertical-align: baseline;\n}\n\n.p-icon-spin {\n    -webkit-animation: p-icon-spin 2s infinite linear;\n    animation: p-icon-spin 2s infinite linear;\n}\n\n@-webkit-keyframes p-icon-spin {\n    0% {\n        -webkit-transform: rotate(0deg);\n        transform: rotate(0deg);\n    }\n    100% {\n        -webkit-transform: rotate(359deg);\n        transform: rotate(359deg);\n    }\n}\n\n@keyframes p-icon-spin {\n    0% {\n        -webkit-transform: rotate(0deg);\n        transform: rotate(0deg);\n    }\n    100% {\n        -webkit-transform: rotate(359deg);\n        transform: rotate(359deg);\n    }\n}\n";static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const mve=["*"];let Gc=(()=>{class t extends jo{label;spin=!1;styleClass;role;ariaLabel;ariaHidden;ngOnInit(){super.ngOnInit(),this.getAttributes()}getAttributes(){const e=lp(this.label);this.role=e?void 0:"img",this.ariaLabel=e?void 0:this.label,this.ariaHidden=e}getClassNames(){return`p-icon ${this.styleClass?this.styleClass+" ":""}${this.spin?"p-icon-spin":""}`}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["ng-component"]],hostAttrs:[1,"p-component","p-iconwrapper"],inputs:{label:"label",spin:[2,"spin","spin",n.L39],styleClass:"styleClass"},features:[n.Jv_([hve]),n.GFd,n.Vt3],ngContentSelectors:mve,decls:1,vars:0,template:function(i,o){1&i&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0})}return t})(),Dx=(()=>{class t extends Gc{static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["CheckIcon"]],features:[n.Vt3],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z","fill","currentColor"]],template:function(i,o){1&i&&(n.qSk(),n.j41(0,"svg",0),n.nrm(1,"path",1),n.k0s()),2&i&&(n.HbH(o.getClassNames()),n.BMQ("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),d8=(()=>{class t extends Gc{static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["BlankIcon"]],features:[n.Vt3],decls:2,vars:0,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["width","1","height","1","fill","currentColor","fill-opacity","0"]],template:function(i,o){1&i&&(n.qSk(),n.j41(0,"svg",0),n.nrm(1,"rect",1),n.k0s())},encapsulation:2})}return t})(),pf=(()=>{class t extends Gc{static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["TimesIcon"]],features:[n.Vt3],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z","fill","currentColor"]],template:function(i,o){1&i&&(n.qSk(),n.j41(0,"svg",0),n.nrm(1,"path",1),n.k0s()),2&i&&(n.HbH(o.getClassNames()),n.BMQ("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),Y_=(()=>{class t extends Gc{static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["ChevronDownIcon"]],features:[n.Vt3],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z","fill","currentColor"]],template:function(i,o){1&i&&(n.qSk(),n.j41(0,"svg",0),n.nrm(1,"path",1),n.k0s()),2&i&&(n.HbH(o.getClassNames()),n.BMQ("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),ak=(()=>{class t extends Gc{pathId;ngOnInit(){this.pathId="url(#"+Bl()+")"}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["SearchIcon"]],features:[n.Vt3],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M2.67602 11.0265C3.6661 11.688 4.83011 12.0411 6.02086 12.0411C6.81149 12.0411 7.59438 11.8854 8.32483 11.5828C8.87005 11.357 9.37808 11.0526 9.83317 10.6803L12.9769 13.8241C13.0323 13.8801 13.0983 13.9245 13.171 13.9548C13.2438 13.985 13.3219 14.0003 13.4007 14C13.4795 14.0003 13.5575 13.985 13.6303 13.9548C13.7031 13.9245 13.7691 13.8801 13.8244 13.8241C13.9367 13.7116 13.9998 13.5592 13.9998 13.4003C13.9998 13.2414 13.9367 13.089 13.8244 12.9765L10.6807 9.8328C11.053 9.37773 11.3573 8.86972 11.5831 8.32452C11.8857 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0268 2.67572C10.3652 1.68564 9.42494 0.913972 8.32483 0.45829C7.22472 0.00260857 6.01418 -0.116618 4.84631 0.115686C3.67844 0.34799 2.60568 0.921393 1.76369 1.76338C0.921698 2.60537 0.348296 3.67813 0.115991 4.84601C-0.116313 6.01388 0.00291375 7.22441 0.458595 8.32452C0.914277 9.42464 1.68595 10.3649 2.67602 11.0265ZM3.35565 2.0158C4.14456 1.48867 5.07206 1.20731 6.02086 1.20731C7.29317 1.20731 8.51338 1.71274 9.41304 2.6124C10.3127 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5368 7.88088 10.0096 8.66978C9.48251 9.45868 8.73328 10.0736 7.85669 10.4367C6.98011 10.7997 6.01554 10.8947 5.08496 10.7096C4.15439 10.5245 3.2996 10.0676 2.62869 9.39674C1.95778 8.72583 1.50089 7.87104 1.31579 6.94046C1.13068 6.00989 1.22568 5.04532 1.58878 4.16874C1.95187 3.29215 2.56675 2.54292 3.35565 2.0158Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,o){1&i&&(n.qSk(),n.j41(0,"svg",0)(1,"g"),n.nrm(2,"path",1),n.k0s(),n.j41(3,"defs")(4,"clipPath",2),n.nrm(5,"rect",3),n.k0s()()()),2&i&&(n.HbH(o.getClassNames()),n.BMQ("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),n.R7$(),n.BMQ("clip-path",o.pathId),n.R7$(3),n.Y8G("id",o.pathId))},encapsulation:2})}return t})();const gve={root:"p-inputicon"};let kee=(()=>{class t extends gs{name="inputicon";classes=gve;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const vve=["*"];let kx=(()=>{class t extends jo{styleClass;get hostClasses(){return this.styleClass}_componentStyle=(0,n.WQX)(kee);static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["p-inputicon"],["p-inputIcon"]],hostVars:4,hostBindings:function(i,o){2&i&&(n.HbH(o.hostClasses),n.AVh("p-inputicon",!0))},inputs:{styleClass:"styleClass"},features:[n.Jv_([kee]),n.Vt3],ngContentSelectors:vve,decls:1,vars:0,template:function(i,o){1&i&&(n.NAR(),n.SdG(0))},dependencies:[gn,Di],encapsulation:2,changeDetection:0})}return t})();const _ve=({dt:t})=>`\n.p-inputtext {\n    font-family: inherit;\n    font-feature-settings: inherit;\n    font-size: 1rem;\n    color: ${t("inputtext.color")};\n    background: ${t("inputtext.background")};\n    padding-block: ${t("inputtext.padding.y")};\n    padding-inline: ${t("inputtext.padding.x")};\n    border: 1px solid ${t("inputtext.border.color")};\n    transition: background ${t("inputtext.transition.duration")}, color ${t("inputtext.transition.duration")}, border-color ${t("inputtext.transition.duration")}, outline-color ${t("inputtext.transition.duration")}, box-shadow ${t("inputtext.transition.duration")};\n    appearance: none;\n    border-radius: ${t("inputtext.border.radius")};\n    outline-color: transparent;\n    box-shadow: ${t("inputtext.shadow")};\n}\n\n.p-inputtext.ng-invalid.ng-dirty {\n    border-color: ${t("inputtext.invalid.border.color")};\n}\n\n.p-inputtext:enabled:hover {\n    border-color: ${t("inputtext.hover.border.color")};\n}\n\n.p-inputtext:enabled:focus {\n    border-color: ${t("inputtext.focus.border.color")};\n    box-shadow: ${t("inputtext.focus.ring.shadow")};\n    outline: ${t("inputtext.focus.ring.width")} ${t("inputtext.focus.ring.style")} ${t("inputtext.focus.ring.color")};\n    outline-offset: ${t("inputtext.focus.ring.offset")};\n}\n\n.p-inputtext.p-invalid {\n    border-color: ${t("inputtext.invalid.border.color")};\n}\n\n.p-inputtext.p-variant-filled {\n    background: ${t("inputtext.filled.background")};\n}\n\n.p-inputtext.p-variant-filled:enabled:focus {\n    background: ${t("inputtext.filled.focus.background")};\n}\n\n.p-inputtext:disabled {\n    opacity: 1;\n    background: ${t("inputtext.disabled.background")};\n    color: ${t("inputtext.disabled.color")};\n}\n\n.p-inputtext::placeholder {\n    color: ${t("inputtext.placeholder.color")};\n}\n\n.p-inputtext.ng-invalid.ng-dirty::placeholder {\n    color: ${t("inputtext.invalid.placeholder.color")};\n}\n\n.p-inputtext-sm {\n    font-size: ${t("inputtext.sm.font.size")};\n    padding-block: ${t("inputtext.sm.padding.y")};\n    padding-inline: ${t("inputtext.sm.padding.x")};\n}\n\n.p-inputtext-lg {\n    font-size: ${t("inputtext.lg.font.size")};\n    padding-block: ${t("inputtext.lg.padding.y")};\n    padding-inline: ${t("inputtext.lg.padding.x")};\n}\n\n.p-inputtext-fluid {\n    width: 100%;\n}\n`,yve={root:({instance:t,props:r})=>["p-inputtext p-component",{"p-filled":t.filled,"p-inputtext-sm":"small"===r.size,"p-inputtext-lg":"large"===r.size,"p-invalid":r.invalid,"p-variant-filled":"filled"===r.variant,"p-inputtext-fluid":r.fluid}]};let Iee=(()=>{class t extends gs{name="inputtext";theme=_ve;classes=yve;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})(),hf=(()=>{class t extends jo{ngModel;variant="outlined";fluid;pSize;filled;_componentStyle=(0,n.WQX)(Iee);get hasFluid(){const i=this.el.nativeElement.closest("p-fluid");return lp(this.fluid)?!!i:this.fluid}constructor(e){super(),this.ngModel=e}ngAfterViewInit(){super.ngAfterViewInit(),this.updateFilledState(),this.cd.detectChanges()}ngDoCheck(){this.updateFilledState()}onInput(){this.updateFilledState()}updateFilledState(){this.filled=this.el.nativeElement.value&&this.el.nativeElement.value.length||this.ngModel&&this.ngModel.model}static \u0275fac=function(i){return new(i||t)(n.rXU(ko,8))};static \u0275dir=n.FsC({type:t,selectors:[["","pInputText",""]],hostAttrs:[1,"p-inputtext","p-component"],hostVars:14,hostBindings:function(i,o){1&i&&n.bIt("input",function(a){return o.onInput(a)}),2&i&&n.AVh("p-filled",o.filled)("p-variant-filled","filled"===o.variant||"filled"===o.config.inputStyle()||"filled"===o.config.inputVariant())("p-inputtext-fluid",o.hasFluid)("p-inputtext-sm","small"===o.pSize)("p-inputfield-sm","small"===o.pSize)("p-inputtext-lg","large"===o.pSize)("p-inputfield-lg","large"===o.pSize)},inputs:{variant:"variant",fluid:[2,"fluid","fluid",n.L39],pSize:"pSize"},features:[n.Jv_([Iee]),n.GFd,n.Vt3]})}return t})(),Ix=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({})}return t})();var Hi=b(9969);class Ks{static isArray(r,e=!0){return Array.isArray(r)&&(e||0!==r.length)}static isObject(r,e=!0){return"object"==typeof r&&!Array.isArray(r)&&null!=r&&(e||0!==Object.keys(r).length)}static equals(r,e,i){return i?this.resolveFieldData(r,i)===this.resolveFieldData(e,i):this.equalsByValue(r,e)}static equalsByValue(r,e){if(r===e)return!0;if(r&&e&&"object"==typeof r&&"object"==typeof e){var s,a,l,i=Array.isArray(r),o=Array.isArray(e);if(i&&o){if((a=r.length)!=e.length)return!1;for(s=a;0!=s--;)if(!this.equalsByValue(r[s],e[s]))return!1;return!0}if(i!=o)return!1;var c=this.isDate(r),d=this.isDate(e);if(c!=d)return!1;if(c&&d)return r.getTime()==e.getTime();var f=r instanceof RegExp,v=e instanceof RegExp;if(f!=v)return!1;if(f&&v)return r.toString()==e.toString();var w=Object.keys(r);if((a=w.length)!==Object.keys(e).length)return!1;for(s=a;0!=s--;)if(!Object.prototype.hasOwnProperty.call(e,w[s]))return!1;for(s=a;0!=s--;)if(!this.equalsByValue(r[l=w[s]],e[l]))return!1;return!0}return r!=r&&e!=e}static resolveFieldData(r,e){if(r&&e){if(this.isFunction(e))return e(r);if(-1==e.indexOf("."))return r[e];{let i=e.split("."),o=r;for(let s=0,a=i.length;s<a;++s){if(null==o)return null;o=o[i[s]]}return o}}return null}static isFunction(r){return!!(r&&r.constructor&&r.call&&r.apply)}static reorderArray(r,e,i){r&&e!==i&&(i>=r.length&&(i%=r.length,e%=r.length),r.splice(i,0,r.splice(e,1)[0]))}static insertIntoOrderedArray(r,e,i,o){if(i.length>0){let s=!1;for(let a=0;a<i.length;a++)if(this.findIndexInList(i[a],o)>e){i.splice(a,0,r),s=!0;break}s||i.push(r)}else i.push(r)}static findIndexInList(r,e){let i=-1;if(e)for(let o=0;o<e.length;o++)if(e[o]==r){i=o;break}return i}static contains(r,e){if(null!=r&&e&&e.length)for(let i of e)if(this.equals(r,i))return!0;return!1}static removeAccents(r){return r&&(r=r.normalize("NFKD").replace(new RegExp("\\p{Diacritic}","gu"),"")),r}static isDate(r){return"[object Date]"===Object.prototype.toString.call(r)}static isEmpty(r){return null==r||""===r||Array.isArray(r)&&0===r.length||!this.isDate(r)&&"object"==typeof r&&0===Object.keys(r).length}static isNotEmpty(r){return!this.isEmpty(r)}static compare(r,e,i,o=1){let s=-1;const a=this.isEmpty(r),l=this.isEmpty(e);return s=a&&l?0:a?o:l?-o:"string"==typeof r&&"string"==typeof e?r.localeCompare(e,i,{numeric:!0}):r<e?-1:r>e?1:0,s}static sort(r,e,i=1,o,s=1){const a=Ks.compare(r,e,o,i);let l=i;return(Ks.isEmpty(r)||Ks.isEmpty(e))&&(l=1===s?i:s),l*a}static merge(r,e){if(null!=r||null!=e)return null!=r&&"object"!=typeof r||null!=e&&"object"!=typeof e?null!=r&&"string"!=typeof r||null!=e&&"string"!=typeof e?e||r:[r||"",e||""].join(" "):{...r||{},...e||{}}}static isPrintableCharacter(r=""){return this.isNotEmpty(r)&&1===r.length&&r.match(/\S| /)}static getItemValue(r,...e){return this.isFunction(r)?r(...e):r}static findLastIndex(r,e){let i=-1;if(this.isNotEmpty(r))try{i=r.findLastIndex(e)}catch{i=r.lastIndexOf([...r].reverse().find(e))}return i}static findLast(r,e){let i;if(this.isNotEmpty(r))try{i=r.findLast(e)}catch{i=[...r].reverse().find(e)}return i}static deepEquals(r,e){if(r===e)return!0;if(r&&e&&"object"==typeof r&&"object"==typeof e){var s,a,l,i=Array.isArray(r),o=Array.isArray(e);if(i&&o){if((a=r.length)!=e.length)return!1;for(s=a;0!=s--;)if(!this.deepEquals(r[s],e[s]))return!1;return!0}if(i!=o)return!1;var c=r instanceof Date,d=e instanceof Date;if(c!=d)return!1;if(c&&d)return r.getTime()==e.getTime();var f=r instanceof RegExp,v=e instanceof RegExp;if(f!=v)return!1;if(f&&v)return r.toString()==e.toString();var w=Object.keys(r);if((a=w.length)!==Object.keys(e).length)return!1;for(s=a;0!=s--;)if(!Object.prototype.hasOwnProperty.call(e,w[s]))return!1;for(s=a;0!=s--;)if(!this.deepEquals(r[l=w[s]],e[l]))return!1;return!0}return r!=r&&e!=e}static minifyCSS(r){return r&&r.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":")}static toFlatCase(r){return this.isString(r)?r.replace(/(-|_)/g,"").toLowerCase():r}static isString(r,e=!0){return"string"==typeof r&&(e||""!==r)}}var Aee=0;var Yc=function Cve(){let t=[];const o=s=>s&&parseInt(s.style.zIndex,10)||0;return{get:o,set:(s,a,l)=>{a&&(a.style.zIndex=String(((s,a)=>{let l=t.length>0?t[t.length-1]:{key:s,value:a},c=l.value+(l.key===s?0:a)+2;return t.push({key:s,value:c}),c})(s,l)))},clear:s=>{s&&((s=>{t=t.filter(a=>a.value!==s)})(o(s)),s.style.zIndex="")},getCurrent:()=>t.length>0?t[t.length-1].value:0}}();const wve=({})=>"\n.p-overlay {\n    position: absolute;\n    top: 0;\n    inset-inline-start: 0;\n}\n\n.p-overlay-modal {\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    position: fixed;\n    top: 0;\n    left: 0;\n    width: 100%;\n    height: 100%;\n}\n\n.p-overlay-content {\n    transform-origin: inherit;\n}\n\n.p-overlay-modal > .p-overlay-content {\n    z-index: 1;\n    width: 90%;\n}\n\n/* Position */\n/* top */\n.p-overlay-top {\n    align-items: flex-start;\n}\n.p-overlay-top-start {\n    align-items: flex-start;\n    justify-content: flex-start;\n}\n.p-overlay-top-end {\n    align-items: flex-start;\n    justify-content: flex-end;\n}\n\n/* bottom */\n.p-overlay-bottom {\n    align-items: flex-end;\n}\n.p-overlay-bottom-start {\n    align-items: flex-end;\n    justify-content: flex-start;\n}\n.p-overlay-bottom-end {\n    align-items: flex-end;\n    justify-content: flex-end;\n}\n\n/* left */\n.p-overlay-left {\n    justify-content: flex-start;\n}\n.p-overlay-left-start {\n    justify-content: flex-start;\n    align-items: flex-start;\n}\n.p-overlay-left-end {\n    justify-content: flex-start;\n    align-items: flex-end;\n}\n\n/* right */\n.p-overlay-right {\n    justify-content: flex-end;\n}\n.p-overlay-right-start {\n    justify-content: flex-end;\n    align-items: flex-start;\n}\n.p-overlay-right-end {\n    justify-content: flex-end;\n    align-items: flex-end;\n}\n";let Ree=(()=>{class t extends gs{name="overlay";theme=wve;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const Oee=["content"],Tve=["overlay"],Sve=["*"],xve=(t,r,e,i,o,s,a,l,c,d,f,v,w,x)=>({"p-overlay p-component":!0,"p-overlay-modal p-overlay-mask p-overlay-mask-enter":t,"p-overlay-center":r,"p-overlay-top":e,"p-overlay-top-start":i,"p-overlay-top-end":o,"p-overlay-bottom":s,"p-overlay-bottom-start":a,"p-overlay-bottom-end":l,"p-overlay-left":c,"p-overlay-left-start":d,"p-overlay-left-end":f,"p-overlay-right":v,"p-overlay-right-start":w,"p-overlay-right-end":x}),Eve=(t,r,e)=>({showTransitionParams:t,hideTransitionParams:r,transform:e}),Dve=t=>({value:"visible",params:t}),kve=t=>({mode:t}),Ive=t=>({$implicit:t});function Ave(t,r){1&t&&n.eu8(0)}function Mve(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",3,1),n.bIt("click",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onOverlayContentClick(o))})("@overlayContentAnimation.start",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onOverlayContentAnimationStart(o))})("@overlayContentAnimation.done",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onOverlayContentAnimationDone(o))}),n.SdG(2),n.DNE(3,Ave,1,0,"ng-container",4),n.k0s()}if(2&t){const e=n.XpG(2);n.HbH(e.contentStyleClass),n.Y8G("ngStyle",e.contentStyle)("ngClass","p-overlay-content")("@overlayContentAnimation",n.eq3(11,Dve,n.sMw(7,Eve,e.showTransitionOptions,e.hideTransitionOptions,e.transformOptions[e.modal?e.overlayResponsiveDirection:"default"]))),n.R7$(3),n.Y8G("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",n.eq3(15,Ive,n.eq3(13,kve,e.overlayMode)))}}function Rve(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",3,0),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onOverlayClick())}),n.DNE(2,Mve,4,17,"div",2),n.k0s()}if(2&t){const e=n.XpG();n.HbH(e.styleClass),n.Y8G("ngStyle",e.style)("ngClass",n.zJS(5,xve,[e.modal,e.modal&&"center"===e.overlayResponsiveDirection,e.modal&&"top"===e.overlayResponsiveDirection,e.modal&&"top-start"===e.overlayResponsiveDirection,e.modal&&"top-end"===e.overlayResponsiveDirection,e.modal&&"bottom"===e.overlayResponsiveDirection,e.modal&&"bottom-start"===e.overlayResponsiveDirection,e.modal&&"bottom-end"===e.overlayResponsiveDirection,e.modal&&"left"===e.overlayResponsiveDirection,e.modal&&"left-start"===e.overlayResponsiveDirection,e.modal&&"left-end"===e.overlayResponsiveDirection,e.modal&&"right"===e.overlayResponsiveDirection,e.modal&&"right-start"===e.overlayResponsiveDirection,e.modal&&"right-end"===e.overlayResponsiveDirection])),n.R7$(2),n.Y8G("ngIf",e.visible)}}const Ove=(0,Hi.lY)([(0,Hi.iF)({transform:"{{transform}}",opacity:0}),(0,Hi.i0)("{{showTransitionParams}}")]),Fve=(0,Hi.lY)([(0,Hi.i0)("{{hideTransitionParams}}",(0,Hi.iF)({transform:"{{transform}}",opacity:0}))]);let lk=(()=>{class t extends jo{overlayService;zone;get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.modalVisible&&(this.modalVisible=!0)}get mode(){return this._mode||this.overlayOptions?.mode}set mode(e){this._mode=e}get style(){return Ks.merge(this._style,this.modal?this.overlayResponsiveOptions?.style:this.overlayOptions?.style)}set style(e){this._style=e}get styleClass(){return Ks.merge(this._styleClass,this.modal?this.overlayResponsiveOptions?.styleClass:this.overlayOptions?.styleClass)}set styleClass(e){this._styleClass=e}get contentStyle(){return Ks.merge(this._contentStyle,this.modal?this.overlayResponsiveOptions?.contentStyle:this.overlayOptions?.contentStyle)}set contentStyle(e){this._contentStyle=e}get contentStyleClass(){return Ks.merge(this._contentStyleClass,this.modal?this.overlayResponsiveOptions?.contentStyleClass:this.overlayOptions?.contentStyleClass)}set contentStyleClass(e){this._contentStyleClass=e}get target(){const e=this._target||this.overlayOptions?.target;return void 0===e?"@prev":e}set target(e){this._target=e}get appendTo(){return this._appendTo||this.overlayOptions?.appendTo}set appendTo(e){this._appendTo=e}get autoZIndex(){const e=this._autoZIndex||this.overlayOptions?.autoZIndex;return void 0===e||e}set autoZIndex(e){this._autoZIndex=e}get baseZIndex(){const e=this._baseZIndex||this.overlayOptions?.baseZIndex;return void 0===e?0:e}set baseZIndex(e){this._baseZIndex=e}get showTransitionOptions(){const e=this._showTransitionOptions||this.overlayOptions?.showTransitionOptions;return void 0===e?".12s cubic-bezier(0, 0, 0.2, 1)":e}set showTransitionOptions(e){this._showTransitionOptions=e}get hideTransitionOptions(){const e=this._hideTransitionOptions||this.overlayOptions?.hideTransitionOptions;return void 0===e?".1s linear":e}set hideTransitionOptions(e){this._hideTransitionOptions=e}get listener(){return this._listener||this.overlayOptions?.listener}set listener(e){this._listener=e}get responsive(){return this._responsive||this.overlayOptions?.responsive}set responsive(e){this._responsive=e}get options(){return this._options}set options(e){this._options=e}visibleChange=new n.bkB;onBeforeShow=new n.bkB;onShow=new n.bkB;onBeforeHide=new n.bkB;onHide=new n.bkB;onAnimationStart=new n.bkB;onAnimationDone=new n.bkB;overlayViewChild;contentViewChild;contentTemplate;templates;_contentTemplate;_visible=!1;_mode;_style;_styleClass;_contentStyle;_contentStyleClass;_target;_appendTo;_autoZIndex;_baseZIndex;_showTransitionOptions;_hideTransitionOptions;_listener;_responsive;_options;modalVisible=!1;isOverlayClicked=!1;isOverlayContentClicked=!1;scrollHandler;documentClickListener;documentResizeListener;_componentStyle=(0,n.WQX)(Ree);documentKeyboardListener;window;transformOptions={default:"scaleY(0.8)",center:"scale(0.7)",top:"translate3d(0px, -100%, 0px)","top-start":"translate3d(0px, -100%, 0px)","top-end":"translate3d(0px, -100%, 0px)",bottom:"translate3d(0px, 100%, 0px)","bottom-start":"translate3d(0px, 100%, 0px)","bottom-end":"translate3d(0px, 100%, 0px)",left:"translate3d(-100%, 0px, 0px)","left-start":"translate3d(-100%, 0px, 0px)","left-end":"translate3d(-100%, 0px, 0px)",right:"translate3d(100%, 0px, 0px)","right-start":"translate3d(100%, 0px, 0px)","right-end":"translate3d(100%, 0px, 0px)"};get modal(){if(Gr(this.platformId))return"modal"===this.mode||this.overlayResponsiveOptions&&this.document.defaultView?.matchMedia(this.overlayResponsiveOptions.media?.replace("@media","")||`(max-width: ${this.overlayResponsiveOptions.breakpoint})`).matches}get overlayMode(){return this.mode||(this.modal?"modal":"overlay")}get overlayOptions(){return{...this.config?.overlayOptions,...this.options}}get overlayResponsiveOptions(){return{...this.overlayOptions?.responsive,...this.responsive}}get overlayResponsiveDirection(){return this.overlayResponsiveOptions?.direction||"center"}get overlayEl(){return this.overlayViewChild?.nativeElement}get contentEl(){return this.contentViewChild?.nativeElement}get targetEl(){return function Ume(t,r){var e,s;if(t)switch(t){case"document":return document;case"window":return window;case"body":return document.body;case"@next":return r?.nextElementSibling;case"@prev":return r?.previousElementSibling;case"@parent":return r?.parentElement;case"@grandparent":return null==(e=r?.parentElement)?void 0:e.parentElement;default:if("string"==typeof t)return document.querySelector(t);const o=a$((s=t)&&s.constructor&&s.call&&s.apply?t():t);return 9===o?.nodeType||function vZ(t){return!!(null!==t&&typeof t<"u"&&t.nodeName&&u$(t))}(o)?o:void 0}}(this.target,this.el?.nativeElement)}constructor(e,i){super(),this.overlayService=e,this.zone=i}ngAfterContentInit(){this.templates?.forEach(e=>{e.getType(),this._contentTemplate=e.template})}show(e,i=!1){this.onVisibleChange(!0),this.handleEvents("onShow",{overlay:e||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),i&&la(this.targetEl),this.modal&&Nc(this.document?.body,"p-overflow-hidden")}hide(e,i=!1){this.visible&&(this.onVisibleChange(!1),this.handleEvents("onHide",{overlay:e||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),i&&la(this.targetEl),this.modal&&ru(this.document?.body,"p-overflow-hidden"))}alignOverlay(){!this.modal&&Vr.alignOverlay(this.overlayEl,this.targetEl,this.appendTo)}onVisibleChange(e){this._visible=e,this.visibleChange.emit(e)}onOverlayClick(){this.isOverlayClicked=!0}onOverlayContentClick(e){this.overlayService.add({originalEvent:e,target:this.targetEl}),this.isOverlayContentClicked=!0}onOverlayContentAnimationStart(e){switch(e.toState){case"visible":this.handleEvents("onBeforeShow",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.autoZIndex&&Yc.set(this.overlayMode,this.overlayEl,this.baseZIndex+this.config?.zIndex[this.overlayMode]),Vr.appendOverlay(this.overlayEl,"body"===this.appendTo?this.document.body:this.appendTo,this.appendTo),this.alignOverlay();break;case"void":this.handleEvents("onBeforeHide",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.modal&&Nc(this.overlayEl,"p-overlay-mask-leave")}this.handleEvents("onAnimationStart",e)}onOverlayContentAnimationDone(e){const i=this.overlayEl||e.element.parentElement;switch(e.toState){case"visible":this.show(i,!0),this.bindListeners();break;case"void":this.hide(i,!0),this.unbindListeners(),Vr.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),Yc.clear(i),this.modalVisible=!1,this.cd.markForCheck()}this.handleEvents("onAnimationDone",e)}handleEvents(e,i){this[e].emit(i),this.options&&this.options[e]&&this.options[e](i),this.config?.overlayOptions&&(this.config?.overlayOptions)[e]&&(this.config?.overlayOptions)[e](i)}bindListeners(){this.bindScrollListener(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindDocumentKeyboardListener()}unbindListeners(){this.unbindScrollListener(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindDocumentKeyboardListener()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new jw(this.targetEl,e=>{(!this.listener||this.listener(e,{type:"scroll",mode:this.overlayMode,valid:!0}))&&this.hide(e,!0)})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.document,"click",e=>{const o=!(this.targetEl&&(this.targetEl.isSameNode(e.target)||!this.isOverlayClicked&&this.targetEl.contains(e.target))||this.isOverlayContentClicked);(this.listener?this.listener(e,{type:"outside",mode:this.overlayMode,valid:3!==e.which&&o}):o)&&this.hide(e),this.isOverlayClicked=this.isOverlayContentClicked=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){this.documentResizeListener||(this.documentResizeListener=this.renderer.listen(this.document.defaultView,"resize",e=>{(this.listener?this.listener(e,{type:"resize",mode:this.overlayMode,valid:!by()}):!by())&&this.hide(e,!0)}))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindDocumentKeyboardListener(){this.documentKeyboardListener||this.zone.runOutsideAngular(()=>{this.documentKeyboardListener=this.renderer.listen(this.document.defaultView,"keydown",e=>{!1!==this.overlayOptions.hideOnEscape&&"Escape"===e.code&&(this.listener?this.listener(e,{type:"keydown",mode:this.overlayMode,valid:!by()}):!by())&&this.zone.run(()=>{this.hide(e,!0)})})})}unbindDocumentKeyboardListener(){this.documentKeyboardListener&&(this.documentKeyboardListener(),this.documentKeyboardListener=null)}ngOnDestroy(){this.hide(this.overlayEl,!0),this.overlayEl&&(Vr.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),Yc.clear(this.overlayEl)),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.unbindListeners(),super.ngOnDestroy()}static \u0275fac=function(i){return new(i||t)(n.rXU(Cy),n.rXU(n.SKi))};static \u0275cmp=n.VBU({type:t,selectors:[["p-overlay"]],contentQueries:function(i,o,s){if(1&i&&(n.wni(s,Oee,4),n.wni(s,hs,4)),2&i){let a;n.mGM(a=n.lsd())&&(o.contentTemplate=a.first),n.mGM(a=n.lsd())&&(o.templates=a)}},viewQuery:function(i,o){if(1&i&&(n.GBs(Tve,5),n.GBs(Oee,5)),2&i){let s;n.mGM(s=n.lsd())&&(o.overlayViewChild=s.first),n.mGM(s=n.lsd())&&(o.contentViewChild=s.first)}},inputs:{visible:"visible",mode:"mode",style:"style",styleClass:"styleClass",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",target:"target",appendTo:"appendTo",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",listener:"listener",responsive:"responsive",options:"options"},outputs:{visibleChange:"visibleChange",onBeforeShow:"onBeforeShow",onShow:"onShow",onBeforeHide:"onBeforeHide",onHide:"onHide",onAnimationStart:"onAnimationStart",onAnimationDone:"onAnimationDone"},features:[n.Jv_([Ree]),n.Vt3],ngContentSelectors:Sve,decls:1,vars:1,consts:[["overlay",""],["content",""],[3,"ngStyle","class","ngClass","click",4,"ngIf"],[3,"click","ngStyle","ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,o){1&i&&(n.NAR(),n.DNE(0,Rve,3,20,"div",2)),2&i&&n.Y8G("ngIf",o.modalVisible)},dependencies:[gn,bi,fi,uo,Jr,Di],encapsulation:2,data:{animation:[(0,Hi.hZ)("overlayContentAnimation",[(0,Hi.kY)(":enter",[(0,Hi.sM)(Ove)]),(0,Hi.kY)(":leave",[(0,Hi.sM)(Fve)])])]},changeDetection:0})}return t})(),Fee=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({imports:[lk,Di,Di]})}return t})();const Pve=({dt:t})=>`\n/* For PrimeNG */\n.p-ripple {\n    overflow: hidden;\n    position: relative;\n}\n\n.p-ink {\n    display: block;\n    position: absolute;\n    background: ${t("ripple.background")};\n    border-radius: 100%;\n    transform: scale(0);\n}\n\n.p-ink-active {\n    animation: ripple 0.4s linear;\n}\n\n.p-ripple-disabled .p-ink {\n    display: none !important;\n}\n\n@keyframes ripple {\n    100% {\n        opacity: 0;\n        transform: scale(2.5);\n    }\n}\n`,Lve={root:"p-ink"};let Pee=(()=>{class t extends gs{name="ripple";theme=Pve;classes=Lve;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})(),Mh=(()=>{class t extends jo{zone=(0,n.WQX)(n.SKi);_componentStyle=(0,n.WQX)(Pee);animationListener;mouseDownListener;timeout;constructor(){super(),(0,n.QZP)(()=>{Gr(this.platformId)&&(this.config.ripple()?this.zone.runOutsideAngular(()=>{this.create(),this.mouseDownListener=this.renderer.listen(this.el.nativeElement,"mousedown",this.onMouseDown.bind(this))}):this.remove())})}ngAfterViewInit(){super.ngAfterViewInit()}onMouseDown(e){let i=this.getInk();if(!i||"none"===this.document.defaultView?.getComputedStyle(i,null).display)return;if(ru(i,"p-ink-active"),!Tb(i)&&!df(i)){let l=Math.max(kd(this.el.nativeElement),fg(this.el.nativeElement));i.style.height=l+"px",i.style.width=l+"px"}let o=yy(this.el.nativeElement),s=e.pageX-o.left+this.document.body.scrollTop-df(i)/2,a=e.pageY-o.top+this.document.body.scrollLeft-Tb(i)/2;this.renderer.setStyle(i,"top",a+"px"),this.renderer.setStyle(i,"left",s+"px"),Nc(i,"p-ink-active"),this.timeout=setTimeout(()=>{let l=this.getInk();l&&ru(l,"p-ink-active")},401)}getInk(){const e=this.el.nativeElement.children;for(let i=0;i<e.length;i++)if("string"==typeof e[i].className&&-1!==e[i].className.indexOf("p-ink"))return e[i];return null}resetInk(){let e=this.getInk();e&&ru(e,"p-ink-active")}onAnimationEnd(e){this.timeout&&clearTimeout(this.timeout),ru(e.currentTarget,"p-ink-active")}create(){let e=this.renderer.createElement("span");this.renderer.addClass(e,"p-ink"),this.renderer.appendChild(this.el.nativeElement,e),this.renderer.setAttribute(e,"aria-hidden","true"),this.renderer.setAttribute(e,"role","presentation"),this.animationListener||(this.animationListener=this.renderer.listen(e,"animationend",this.onAnimationEnd.bind(this)))}remove(){let e=this.getInk();e&&(this.mouseDownListener&&this.mouseDownListener(),this.animationListener&&this.animationListener(),this.mouseDownListener=null,this.animationListener=null,function Wme(t){var r;t&&("remove"in Element.prototype?t.remove():null==(r=t.parentNode)||r.removeChild(t))}(e))}ngOnDestroy(){this.config&&this.config.ripple()&&this.remove(),super.ngOnDestroy()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=n.FsC({type:t,selectors:[["","pRipple",""]],hostAttrs:[1,"p-ripple"],features:[n.Jv_([Pee]),n.Vt3]})}return t})(),Gve=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({})}return t})(),Ax=(()=>{class t extends Gc{pathId;ngOnInit(){this.pathId="url(#"+Bl()+")"}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["SpinnerIcon"]],features:[n.Vt3],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M6.99701 14C5.85441 13.999 4.72939 13.7186 3.72012 13.1832C2.71084 12.6478 1.84795 11.8737 1.20673 10.9284C0.565504 9.98305 0.165424 8.89526 0.041387 7.75989C-0.0826496 6.62453 0.073125 5.47607 0.495122 4.4147C0.917119 3.35333 1.59252 2.4113 2.46241 1.67077C3.33229 0.930247 4.37024 0.413729 5.4857 0.166275C6.60117 -0.0811796 7.76026 -0.0520535 8.86188 0.251112C9.9635 0.554278 10.9742 1.12227 11.8057 1.90555C11.915 2.01493 11.9764 2.16319 11.9764 2.31778C11.9764 2.47236 11.915 2.62062 11.8057 2.73C11.7521 2.78503 11.688 2.82877 11.6171 2.85864C11.5463 2.8885 11.4702 2.90389 11.3933 2.90389C11.3165 2.90389 11.2404 2.8885 11.1695 2.85864C11.0987 2.82877 11.0346 2.78503 10.9809 2.73C9.9998 1.81273 8.73246 1.26138 7.39226 1.16876C6.05206 1.07615 4.72086 1.44794 3.62279 2.22152C2.52471 2.99511 1.72683 4.12325 1.36345 5.41602C1.00008 6.70879 1.09342 8.08723 1.62775 9.31926C2.16209 10.5513 3.10478 11.5617 4.29713 12.1803C5.48947 12.7989 6.85865 12.988 8.17414 12.7157C9.48963 12.4435 10.6711 11.7264 11.5196 10.6854C12.3681 9.64432 12.8319 8.34282 12.8328 7C12.8328 6.84529 12.8943 6.69692 13.0038 6.58752C13.1132 6.47812 13.2616 6.41667 13.4164 6.41667C13.5712 6.41667 13.7196 6.47812 13.8291 6.58752C13.9385 6.69692 14 6.84529 14 7C14 8.85651 13.2622 10.637 11.9489 11.9497C10.6356 13.2625 8.85432 14 6.99701 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,o){1&i&&(n.qSk(),n.j41(0,"svg",0)(1,"g"),n.nrm(2,"path",1),n.k0s(),n.j41(3,"defs")(4,"clipPath",2),n.nrm(5,"rect",3),n.k0s()()()),2&i&&(n.HbH(o.getClassNames()),n.BMQ("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),n.R7$(),n.BMQ("clip-path",o.pathId),n.R7$(3),n.Y8G("id",o.pathId))},encapsulation:2})}return t})();const Bve=({dt:t})=>`\n.p-virtualscroller {\n    position: relative;\n    overflow: auto;\n    contain: strict;\n    transform: translateZ(0);\n    will-change: scroll-position;\n    outline: 0 none;\n}\n\n.p-virtualscroller-content {\n    position: absolute;\n    top: 0;\n    left: 0;\n    min-height: 100%;\n    min-width: 100%;\n    will-change: transform;\n}\n\n.p-virtualscroller-spacer {\n    position: absolute;\n    top: 0;\n    left: 0;\n    height: 1px;\n    width: 1px;\n    transform-origin: 0 0;\n    pointer-events: none;\n}\n\n.p-virtualscroller-loader {\n    position: sticky;\n    top: 0;\n    left: 0;\n    width: 100%;\n    height: 100%;\n    background: ${t("virtualscroller.loader.mask.background")};\n    color: ${t("virtualscroller.loader.mask.color")};\n}\n\n.p-virtualscroller-loader-mask {\n    display: flex;\n    align-items: center;\n    justify-content: center;\n}\n\n.p-virtualscroller-loading-icon {\n    font-size: ${t("virtualscroller.loader.icon.size")};\n    width: ${t("virtualscroller.loader.icon.size")};\n    height: ${t("virtualscroller.loader.icon.size")};\n}\n\n.p-virtualscroller-horizontal > .p-virtualscroller-content {\n    display: flex;\n}\n\n.p-virtualscroller-inline .p-virtualscroller-content {\n    position: static;\n}\n`;let Lee=(()=>{class t extends gs{name="virtualscroller";theme=Bve;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const Nee=["content"],jve=["item"],Hve=["loader"],Uve=["loadericon"],$ve=["element"],Yve=["*"],Wve=(t,r,e)=>({"p-virtualscroller":!0,"p-virtualscroller-inline":t,"p-virtualscroller-both p-both-scroll":r,"p-virtualscroller-horizontal p-horizontal-scroll":e}),F$=(t,r)=>({$implicit:t,options:r}),zve=t=>({"p-virtualscroller-loading ":t}),qve=t=>({"p-virtualscroller-loader-mask":t}),Xve=t=>({numCols:t}),Gee=t=>({options:t}),Kve=()=>({styleClass:"p-virtualscroller-loading-icon"}),Qve=(t,r)=>({rows:t,columns:r});function Jve(t,r){1&t&&n.eu8(0)}function Zve(t,r){if(1&t&&(n.qex(0),n.DNE(1,Jve,1,0,"ng-container",10),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",n.l_i(2,F$,e.loadedItems,e.getContentOptions()))}}function e_e(t,r){1&t&&n.eu8(0)}function t_e(t,r){if(1&t&&(n.qex(0),n.DNE(1,e_e,1,0,"ng-container",10),n.bVm()),2&t){const e=r.$implicit,i=r.index,o=n.XpG(3);n.R7$(),n.Y8G("ngTemplateOutlet",o.itemTemplate||o._itemTemplate)("ngTemplateOutletContext",n.l_i(2,F$,e,o.getOptions(i)))}}function n_e(t,r){if(1&t&&(n.j41(0,"div",11,3),n.DNE(2,t_e,2,5,"ng-container",12),n.k0s()),2&t){const e=n.XpG(2);n.Y8G("ngClass",n.eq3(5,zve,e.d_loading))("ngStyle",e.contentStyle),n.BMQ("data-pc-section","content"),n.R7$(2),n.Y8G("ngForOf",e.loadedItems)("ngForTrackBy",e._trackBy)}}function i_e(t,r){if(1&t&&n.nrm(0,"div",13),2&t){const e=n.XpG(2);n.Y8G("ngStyle",e.spacerStyle),n.BMQ("data-pc-section","spacer")}}function r_e(t,r){1&t&&n.eu8(0)}function o_e(t,r){if(1&t&&(n.qex(0),n.DNE(1,r_e,1,0,"ng-container",10),n.bVm()),2&t){const e=r.index,i=n.XpG(4);n.R7$(),n.Y8G("ngTemplateOutlet",i.loaderTemplate||i._loaderTemplate)("ngTemplateOutletContext",n.eq3(4,Gee,i.getLoaderOptions(e,i.both&&n.eq3(2,Xve,i.numItemsInViewport.cols))))}}function s_e(t,r){if(1&t&&(n.qex(0),n.DNE(1,o_e,2,6,"ng-container",15),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.loaderArr)}}function a_e(t,r){1&t&&n.eu8(0)}function l_e(t,r){if(1&t&&(n.qex(0),n.DNE(1,a_e,1,0,"ng-container",10),n.bVm()),2&t){const e=n.XpG(4);n.R7$(),n.Y8G("ngTemplateOutlet",e.loaderIconTemplate||e._loaderIconTemplate)("ngTemplateOutletContext",n.eq3(3,Gee,n.lJ4(2,Kve)))}}function c_e(t,r){1&t&&n.nrm(0,"SpinnerIcon",16),2&t&&(n.Y8G("styleClass","p-virtualscroller-loading-icon pi-spin"),n.BMQ("data-pc-section","loadingIcon"))}function u_e(t,r){if(1&t&&n.DNE(0,l_e,2,5,"ng-container",6)(1,c_e,1,2,"ng-template",null,5,n.C5r),2&t){const e=n.sdS(2),i=n.XpG(3);n.Y8G("ngIf",i.loaderIconTemplate||i._loaderIconTemplate)("ngIfElse",e)}}function d_e(t,r){if(1&t&&(n.j41(0,"div",14),n.DNE(1,s_e,2,1,"ng-container",6)(2,u_e,3,2,"ng-template",null,4,n.C5r),n.k0s()),2&t){const e=n.sdS(3),i=n.XpG(2);n.Y8G("ngClass",n.eq3(4,qve,!i.loaderTemplate)),n.BMQ("data-pc-section","loader"),n.R7$(),n.Y8G("ngIf",i.loaderTemplate||i._loaderTemplate)("ngIfElse",e)}}function p_e(t,r){if(1&t){const e=n.RV6();n.qex(0),n.j41(1,"div",7,1),n.bIt("scroll",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onContainerScroll(o))}),n.DNE(3,Zve,2,5,"ng-container",6)(4,n_e,3,7,"ng-template",null,2,n.C5r)(6,i_e,1,2,"div",8)(7,d_e,4,6,"div",9),n.k0s(),n.bVm()}if(2&t){const e=n.sdS(5),i=n.XpG();n.R7$(),n.HbH(i._styleClass),n.Y8G("ngStyle",i._style)("ngClass",n.sMw(12,Wve,i.inline,i.both,i.horizontal)),n.BMQ("id",i._id)("tabindex",i.tabindex)("data-pc-name","scroller")("data-pc-section","root"),n.R7$(2),n.Y8G("ngIf",i.contentTemplate||i._contentTemplate)("ngIfElse",e),n.R7$(3),n.Y8G("ngIf",i._showSpacer),n.R7$(),n.Y8G("ngIf",!i.loaderDisabled&&i._showLoader&&i.d_loading)}}function h_e(t,r){1&t&&n.eu8(0)}function f_e(t,r){if(1&t&&(n.qex(0),n.DNE(1,h_e,1,0,"ng-container",10),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",n.l_i(5,F$,e.items,n.l_i(2,Qve,e._items,e.loadedColumns)))}}function m_e(t,r){if(1&t&&(n.SdG(0),n.DNE(1,f_e,2,8,"ng-container",17)),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngIf",e.contentTemplate||e._contentTemplate)}}let Db=(()=>{class t extends jo{zone;get id(){return this._id}set id(e){this._id=e}get style(){return this._style}set style(e){this._style=e}get styleClass(){return this._styleClass}set styleClass(e){this._styleClass=e}get tabindex(){return this._tabindex}set tabindex(e){this._tabindex=e}get items(){return this._items}set items(e){this._items=e}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e}get scrollHeight(){return this._scrollHeight}set scrollHeight(e){this._scrollHeight=e}get scrollWidth(){return this._scrollWidth}set scrollWidth(e){this._scrollWidth=e}get orientation(){return this._orientation}set orientation(e){this._orientation=e}get step(){return this._step}set step(e){this._step=e}get delay(){return this._delay}set delay(e){this._delay=e}get resizeDelay(){return this._resizeDelay}set resizeDelay(e){this._resizeDelay=e}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=e}get inline(){return this._inline}set inline(e){this._inline=e}get lazy(){return this._lazy}set lazy(e){this._lazy=e}get disabled(){return this._disabled}set disabled(e){this._disabled=e}get loaderDisabled(){return this._loaderDisabled}set loaderDisabled(e){this._loaderDisabled=e}get columns(){return this._columns}set columns(e){this._columns=e}get showSpacer(){return this._showSpacer}set showSpacer(e){this._showSpacer=e}get showLoader(){return this._showLoader}set showLoader(e){this._showLoader=e}get numToleratedItems(){return this._numToleratedItems}set numToleratedItems(e){this._numToleratedItems=e}get loading(){return this._loading}set loading(e){this._loading=e}get autoSize(){return this._autoSize}set autoSize(e){this._autoSize=e}get trackBy(){return this._trackBy}set trackBy(e){this._trackBy=e}get options(){return this._options}set options(e){this._options=e,e&&"object"==typeof e&&Object.entries(e).forEach(([i,o])=>this[`_${i}`]!==o&&(this[`_${i}`]=o))}onLazyLoad=new n.bkB;onScroll=new n.bkB;onScrollIndexChange=new n.bkB;elementViewChild;contentViewChild;_id;_style;_styleClass;_tabindex=0;_items;_itemSize=0;_scrollHeight;_scrollWidth;_orientation="vertical";_step=0;_delay=0;_resizeDelay=10;_appendOnly=!1;_inline=!1;_lazy=!1;_disabled=!1;_loaderDisabled=!1;_columns;_showSpacer=!0;_showLoader=!1;_numToleratedItems;_loading;_autoSize=!1;_trackBy;_options;d_loading=!1;d_numToleratedItems;contentEl;contentTemplate;itemTemplate;loaderTemplate;loaderIconTemplate;templates;_contentTemplate;_itemTemplate;_loaderTemplate;_loaderIconTemplate;first=0;last=0;page=0;isRangeChanged=!1;numItemsInViewport=0;lastScrollPos=0;lazyLoadState={};loaderArr=[];spacerStyle={};contentStyle={};scrollTimeout;resizeTimeout;initialized=!1;windowResizeListener;defaultWidth;defaultHeight;defaultContentWidth;defaultContentHeight;get vertical(){return"vertical"===this._orientation}get horizontal(){return"horizontal"===this._orientation}get both(){return"both"===this._orientation}get loadedItems(){return this._items&&!this.d_loading?this.both?this._items.slice(this._appendOnly?0:this.first.rows,this.last.rows).map(e=>this._columns?e:e.slice(this._appendOnly?0:this.first.cols,this.last.cols)):this.horizontal&&this._columns?this._items:this._items.slice(this._appendOnly?0:this.first,this.last):[]}get loadedRows(){return this.d_loading?this._loaderDisabled?this.loaderArr:[]:this.loadedItems}get loadedColumns(){return this._columns&&(this.both||this.horizontal)?this.d_loading&&this._loaderDisabled?this.both?this.loaderArr[0]:this.loaderArr:this._columns.slice(this.both?this.first.cols:this.first,this.both?this.last.cols:this.last):this._columns}_componentStyle=(0,n.WQX)(Lee);constructor(e){super(),this.zone=e}ngOnInit(){super.ngOnInit(),this.setInitialState()}ngOnChanges(e){super.ngOnChanges(e);let i=!1;if(e.loading){const{previousValue:o,currentValue:s}=e.loading;this.lazy&&o!==s&&s!==this.d_loading&&(this.d_loading=s,i=!0)}if(e.orientation&&(this.lastScrollPos=this.both?{top:0,left:0}:0),e.numToleratedItems){const{previousValue:o,currentValue:s}=e.numToleratedItems;o!==s&&s!==this.d_numToleratedItems&&(this.d_numToleratedItems=s)}if(e.options){const{previousValue:o,currentValue:s}=e.options;this.lazy&&o?.loading!==s?.loading&&s?.loading!==this.d_loading&&(this.d_loading=s.loading,i=!0),o?.numToleratedItems!==s?.numToleratedItems&&s?.numToleratedItems!==this.d_numToleratedItems&&(this.d_numToleratedItems=s.numToleratedItems)}this.initialized&&!i&&(e.items?.previousValue?.length!==e.items?.currentValue?.length||e.itemSize||e.scrollHeight||e.scrollWidth)&&(this.init(),this.calculateAutoSize())}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":this._contentTemplate=e.template;break;case"item":default:this._itemTemplate=e.template;break;case"loader":this._loaderTemplate=e.template;break;case"loadericon":this._loaderIconTemplate=e.template}})}ngAfterViewInit(){super.ngAfterViewInit(),Promise.resolve().then(()=>{this.viewInit()})}ngAfterViewChecked(){this.initialized||this.viewInit()}ngOnDestroy(){this.unbindResizeListener(),this.contentEl=null,this.initialized=!1,super.ngOnDestroy()}viewInit(){Gr(this.platformId)&&!this.initialized&&d$(this.elementViewChild?.nativeElement)&&(this.setInitialState(),this.setContentEl(this.contentEl),this.init(),this.defaultWidth=df(this.elementViewChild?.nativeElement),this.defaultHeight=Tb(this.elementViewChild?.nativeElement),this.defaultContentWidth=df(this.contentEl),this.defaultContentHeight=Tb(this.contentEl),this.initialized=!0)}init(){this._disabled||(this.setSize(),this.calculateOptions(),this.setSpacerSize(),this.bindResizeListener(),this.cd.detectChanges())}setContentEl(e){this.contentEl=e||this.contentViewChild?.nativeElement||xo(this.elementViewChild?.nativeElement,".p-virtualscroller-content")}setInitialState(){this.first=this.both?{rows:0,cols:0}:0,this.last=this.both?{rows:0,cols:0}:0,this.numItemsInViewport=this.both?{rows:0,cols:0}:0,this.lastScrollPos=this.both?{top:0,left:0}:0,this.d_loading=this._loading||!1,this.d_numToleratedItems=this._numToleratedItems,this.loaderArr=[],this.spacerStyle={},this.contentStyle={}}getElementRef(){return this.elementViewChild}getPageByFirst(e){return Math.floor(((e??this.first)+4*this.d_numToleratedItems)/(this._step||1))}isPageChanged(e){return!this._step||this.page!==this.getPageByFirst(e??this.first)}scrollTo(e){this.elementViewChild?.nativeElement?.scrollTo(e)}scrollToIndex(e,i="auto"){if(this.both?e.every(s=>s>-1):e>-1){const s=this.first,{scrollTop:a=0,scrollLeft:l=0}=this.elementViewChild?.nativeElement,{numToleratedItems:c}=this.calculateNumItems(),d=this.getContentPosition(),f=this.itemSize,v=(re=0,pe)=>re<=pe?0:re,w=(re,pe,we)=>re*pe+we,x=(re=0,pe=0)=>this.scrollTo({left:re,top:pe,behavior:i});let I=this.both?{rows:0,cols:0}:0,M=!1,F=!1;this.both?(I={rows:v(e[0],c[0]),cols:v(e[1],c[1])},x(w(I.cols,f[1],d.left),w(I.rows,f[0],d.top)),F=this.lastScrollPos.top!==a||this.lastScrollPos.left!==l,M=I.rows!==s.rows||I.cols!==s.cols):(I=v(e,c),this.horizontal?x(w(I,f,d.left),a):x(l,w(I,f,d.top)),F=this.lastScrollPos!==(this.horizontal?l:a),M=I!==s),this.isRangeChanged=M,F&&(this.first=I)}}scrollInView(e,i,o="auto"){if(i){const{first:s,viewport:a}=this.getRenderedRange(),l=(f=0,v=0)=>this.scrollTo({left:f,top:v,behavior:o}),d="to-end"===i;if("to-start"===i){if(this.both)a.first.rows-s.rows>e[0]?l(a.first.cols*this._itemSize[1],(a.first.rows-1)*this._itemSize[0]):a.first.cols-s.cols>e[1]&&l((a.first.cols-1)*this._itemSize[1],a.first.rows*this._itemSize[0]);else if(a.first-s>e){const f=(a.first-1)*this._itemSize;this.horizontal?l(f,0):l(0,f)}}else if(d)if(this.both)a.last.rows-s.rows<=e[0]+1?l(a.first.cols*this._itemSize[1],(a.first.rows+1)*this._itemSize[0]):a.last.cols-s.cols<=e[1]+1&&l((a.first.cols+1)*this._itemSize[1],a.first.rows*this._itemSize[0]);else if(a.last-s<=e+1){const f=(a.first+1)*this._itemSize;this.horizontal?l(f,0):l(0,f)}}else this.scrollToIndex(e,o)}getRenderedRange(){const e=(s,a)=>a||s?Math.floor(s/(a||s)):0;let i=this.first,o=0;if(this.elementViewChild?.nativeElement){const{scrollTop:s,scrollLeft:a}=this.elementViewChild.nativeElement;this.both?(i={rows:e(s,this._itemSize[0]),cols:e(a,this._itemSize[1])},o={rows:i.rows+this.numItemsInViewport.rows,cols:i.cols+this.numItemsInViewport.cols}):(i=e(this.horizontal?a:s,this._itemSize),o=i+this.numItemsInViewport)}return{first:this.first,last:this.last,viewport:{first:i,last:o}}}calculateNumItems(){const e=this.getContentPosition(),i=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetWidth-e.left:0)||0,o=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetHeight-e.top:0)||0,s=(d,f)=>f||d?Math.ceil(d/(f||d)):0,a=d=>Math.ceil(d/2),l=this.both?{rows:s(o,this._itemSize[0]),cols:s(i,this._itemSize[1])}:s(this.horizontal?i:o,this._itemSize);return{numItemsInViewport:l,numToleratedItems:this.d_numToleratedItems||(this.both?[a(l.rows),a(l.cols)]:a(l))}}calculateOptions(){const{numItemsInViewport:e,numToleratedItems:i}=this.calculateNumItems(),o=(l,c,d,f=!1)=>this.getLast(l+c+(l<d?2:3)*d,f),s=this.first,a=this.both?{rows:o(this.first.rows,e.rows,i[0]),cols:o(this.first.cols,e.cols,i[1],!0)}:o(this.first,e,i);this.last=a,this.numItemsInViewport=e,this.d_numToleratedItems=i,this.showLoader&&(this.loaderArr=this.both?Array.from({length:e.rows}).map(()=>Array.from({length:e.cols})):Array.from({length:e})),this._lazy&&Promise.resolve().then(()=>{this.lazyLoadState={first:this._step?this.both?{rows:0,cols:s.cols}:0:s,last:Math.min(this._step?this._step:this.last,this.items.length)},this.handleEvents("onLazyLoad",this.lazyLoadState)})}calculateAutoSize(){this._autoSize&&!this.d_loading&&Promise.resolve().then(()=>{if(this.contentEl){this.contentEl.style.minHeight=this.contentEl.style.minWidth="auto",this.contentEl.style.position="relative",this.elementViewChild.nativeElement.style.contain="none";const[e,i]=[df(this.contentEl),Tb(this.contentEl)];e!==this.defaultContentWidth&&(this.elementViewChild.nativeElement.style.width=""),i!==this.defaultContentHeight&&(this.elementViewChild.nativeElement.style.height="");const[o,s]=[df(this.elementViewChild.nativeElement),Tb(this.elementViewChild.nativeElement)];(this.both||this.horizontal)&&(this.elementViewChild.nativeElement.style.width=o<this.defaultWidth?o+"px":this._scrollWidth||this.defaultWidth+"px"),(this.both||this.vertical)&&(this.elementViewChild.nativeElement.style.height=s<this.defaultHeight?s+"px":this._scrollHeight||this.defaultHeight+"px"),this.contentEl.style.minHeight=this.contentEl.style.minWidth="",this.contentEl.style.position="",this.elementViewChild.nativeElement.style.contain=""}})}getLast(e=0,i=!1){return this._items?Math.min(i?(this._columns||this._items[0]).length:this._items.length,e):0}getContentPosition(){if(this.contentEl){const e=getComputedStyle(this.contentEl),i=parseFloat(e.paddingLeft)+Math.max(parseFloat(e.left)||0,0),o=parseFloat(e.paddingRight)+Math.max(parseFloat(e.right)||0,0),s=parseFloat(e.paddingTop)+Math.max(parseFloat(e.top)||0,0),a=parseFloat(e.paddingBottom)+Math.max(parseFloat(e.bottom)||0,0);return{left:i,right:o,top:s,bottom:a,x:i+o,y:s+a}}return{left:0,right:0,top:0,bottom:0,x:0,y:0}}setSize(){if(this.elementViewChild?.nativeElement){const e=this.elementViewChild.nativeElement.parentElement.parentElement,i=this._scrollWidth||`${this.elementViewChild.nativeElement.offsetWidth||e.offsetWidth}px`,o=this._scrollHeight||`${this.elementViewChild.nativeElement.offsetHeight||e.offsetHeight}px`,s=(a,l)=>this.elementViewChild.nativeElement.style[a]=l;this.both||this.horizontal?(s("height",o),s("width",i)):s("height",o)}}setSpacerSize(){if(this._items){const e=this.getContentPosition(),i=(o,s,a,l=0)=>this.spacerStyle={...this.spacerStyle,[`${o}`]:(s||[]).length*a+l+"px"};this.both?(i("height",this._items,this._itemSize[0],e.y),i("width",this._columns||this._items[1],this._itemSize[1],e.x)):this.horizontal?i("width",this._columns||this._items,this._itemSize,e.x):i("height",this._items,this._itemSize,e.y)}}setContentPosition(e){if(this.contentEl&&!this._appendOnly){const i=e?e.first:this.first,o=(a,l)=>a*l,s=(a=0,l=0)=>this.contentStyle={...this.contentStyle,transform:`translate3d(${a}px, ${l}px, 0)`};if(this.both)s(o(i.cols,this._itemSize[1]),o(i.rows,this._itemSize[0]));else{const a=o(i,this._itemSize);this.horizontal?s(a,0):s(0,a)}}}onScrollPositionChange(e){const i=e.target,o=this.getContentPosition(),s=(F,re)=>F?F>re?F-re:F:0,a=(F,re)=>re||F?Math.floor(F/(re||F)):0,l=(F,re,pe,we,je,tt)=>F<=je?je:tt?pe-we-je:re+je-1,c=(F,re,pe,we,je,tt,nt)=>F<=tt?0:Math.max(0,nt?F<re?pe:F-tt:F>re?pe:F-2*tt),d=(F,re,pe,we,je,tt=!1)=>{let nt=re+we+2*je;return F>=je&&(nt+=je+1),this.getLast(nt,tt)},f=s(i.scrollTop,o.top),v=s(i.scrollLeft,o.left);let w=this.both?{rows:0,cols:0}:0,x=this.last,I=!1,M=this.lastScrollPos;if(this.both){const F=this.lastScrollPos.top<=f,re=this.lastScrollPos.left<=v;if(!this._appendOnly||this._appendOnly&&(F||re)){const pe={rows:a(f,this._itemSize[0]),cols:a(v,this._itemSize[1])},we={rows:l(pe.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],F),cols:l(pe.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],re)};w={rows:c(pe.rows,we.rows,this.first.rows,0,0,this.d_numToleratedItems[0],F),cols:c(pe.cols,we.cols,this.first.cols,0,0,this.d_numToleratedItems[1],re)},x={rows:d(pe.rows,w.rows,0,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:d(pe.cols,w.cols,0,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},I=w.rows!==this.first.rows||x.rows!==this.last.rows||w.cols!==this.first.cols||x.cols!==this.last.cols||this.isRangeChanged,M={top:f,left:v}}}else{const F=this.horizontal?v:f,re=this.lastScrollPos<=F;if(!this._appendOnly||this._appendOnly&&re){const pe=a(F,this._itemSize);w=c(pe,l(pe,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,re),this.first,0,0,this.d_numToleratedItems,re),x=d(pe,w,0,this.numItemsInViewport,this.d_numToleratedItems),I=w!==this.first||x!==this.last||this.isRangeChanged,M=F}}return{first:w,last:x,isRangeChanged:I,scrollPos:M}}onScrollChange(e){const{first:i,last:o,isRangeChanged:s,scrollPos:a}=this.onScrollPositionChange(e);if(s){const l={first:i,last:o};if(this.setContentPosition(l),this.first=i,this.last=o,this.lastScrollPos=a,this.handleEvents("onScrollIndexChange",l),this._lazy&&this.isPageChanged(i)){const c={first:this._step?Math.min(this.getPageByFirst(i)*this._step,this.items.length-this._step):i,last:Math.min(this._step?(this.getPageByFirst(i)+1)*this._step:o,this.items.length)};(this.lazyLoadState.first!==c.first||this.lazyLoadState.last!==c.last)&&this.handleEvents("onLazyLoad",c),this.lazyLoadState=c}}}onContainerScroll(e){if(this.handleEvents("onScroll",{originalEvent:e}),this._delay&&this.isPageChanged()){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),!this.d_loading&&this.showLoader){const{isRangeChanged:i}=this.onScrollPositionChange(e);(i||this._step&&this.isPageChanged())&&(this.d_loading=!0,this.cd.detectChanges())}this.scrollTimeout=setTimeout(()=>{this.onScrollChange(e),this.d_loading&&this.showLoader&&(!this._lazy||void 0===this._loading)&&(this.d_loading=!1,this.page=this.getPageByFirst()),this.cd.detectChanges()},this._delay)}else!this.d_loading&&this.onScrollChange(e)}bindResizeListener(){Gr(this.platformId)&&(this.windowResizeListener||this.zone.runOutsideAngular(()=>{const e=this.document.defaultView,i=by()?"orientationchange":"resize";this.windowResizeListener=this.renderer.listen(e,i,this.onWindowResize.bind(this))}))}unbindResizeListener(){this.windowResizeListener&&(this.windowResizeListener(),this.windowResizeListener=null)}onWindowResize(){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{if(d$(this.elementViewChild?.nativeElement)){const[e,i]=[df(this.elementViewChild?.nativeElement),Tb(this.elementViewChild?.nativeElement)],[o,s]=[e!==this.defaultWidth,i!==this.defaultHeight];(this.both?o||s:this.horizontal?o:this.vertical&&s)&&this.zone.run(()=>{this.d_numToleratedItems=this._numToleratedItems,this.defaultWidth=e,this.defaultHeight=i,this.defaultContentWidth=df(this.contentEl),this.defaultContentHeight=Tb(this.contentEl),this.init()})}},this._resizeDelay)}handleEvents(e,i){return this.options&&this.options[e]?this.options[e](i):this[e].emit(i)}getContentOptions(){return{contentStyleClass:"p-virtualscroller-content "+(this.d_loading?"p-virtualscroller-loading":""),items:this.loadedItems,getItemOptions:e=>this.getOptions(e),loading:this.d_loading,getLoaderOptions:(e,i)=>this.getLoaderOptions(e,i),itemSize:this._itemSize,rows:this.loadedRows,columns:this.loadedColumns,spacerStyle:this.spacerStyle,contentStyle:this.contentStyle,vertical:this.vertical,horizontal:this.horizontal,both:this.both}}getOptions(e){const i=(this._items||[]).length,o=this.both?this.first.rows+e:this.first+e;return{index:o,count:i,first:0===o,last:o===i-1,even:o%2==0,odd:o%2!=0}}getLoaderOptions(e,i){const o=this.loaderArr.length;return{index:e,count:o,first:0===e,last:e===o-1,even:e%2==0,odd:e%2!=0,...i}}static \u0275fac=function(i){return new(i||t)(n.rXU(n.SKi))};static \u0275cmp=n.VBU({type:t,selectors:[["p-scroller"],["p-virtualscroller"],["p-virtual-scroller"],["p-virtualScroller"]],contentQueries:function(i,o,s){if(1&i&&(n.wni(s,Nee,4),n.wni(s,jve,4),n.wni(s,Hve,4),n.wni(s,Uve,4),n.wni(s,hs,4)),2&i){let a;n.mGM(a=n.lsd())&&(o.contentTemplate=a.first),n.mGM(a=n.lsd())&&(o.itemTemplate=a.first),n.mGM(a=n.lsd())&&(o.loaderTemplate=a.first),n.mGM(a=n.lsd())&&(o.loaderIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.templates=a)}},viewQuery:function(i,o){if(1&i&&(n.GBs($ve,5),n.GBs(Nee,5)),2&i){let s;n.mGM(s=n.lsd())&&(o.elementViewChild=s.first),n.mGM(s=n.lsd())&&(o.contentViewChild=s.first)}},inputs:{id:"id",style:"style",styleClass:"styleClass",tabindex:"tabindex",items:"items",itemSize:"itemSize",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth",orientation:"orientation",step:"step",delay:"delay",resizeDelay:"resizeDelay",appendOnly:"appendOnly",inline:"inline",lazy:"lazy",disabled:"disabled",loaderDisabled:"loaderDisabled",columns:"columns",showSpacer:"showSpacer",showLoader:"showLoader",numToleratedItems:"numToleratedItems",loading:"loading",autoSize:"autoSize",trackBy:"trackBy",options:"options"},outputs:{onLazyLoad:"onLazyLoad",onScroll:"onScroll",onScrollIndexChange:"onScrollIndexChange"},features:[n.Jv_([Lee]),n.Vt3,n.OA$],ngContentSelectors:Yve,decls:3,vars:2,consts:[["disabledContainer",""],["element",""],["buildInContent",""],["content",""],["buildInLoader",""],["buildInLoaderIcon",""],[4,"ngIf","ngIfElse"],[3,"scroll","ngStyle","ngClass"],["class","p-virtualscroller-spacer",3,"ngStyle",4,"ngIf"],["class","p-virtualscroller-loader",3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-virtualscroller-content",3,"ngClass","ngStyle"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"p-virtualscroller-spacer",3,"ngStyle"],[1,"p-virtualscroller-loader",3,"ngClass"],[4,"ngFor","ngForOf"],[3,"styleClass"],[4,"ngIf"]],template:function(i,o){if(1&i&&(n.NAR(),n.DNE(0,p_e,8,16,"ng-container",6)(1,m_e,2,1,"ng-template",null,0,n.C5r)),2&i){const s=n.sdS(2);n.Y8G("ngIf",!o._disabled)("ngIfElse",s)}},dependencies:[gn,bi,oo,fi,uo,Jr,Ax,Di],encapsulation:2})}return t})(),Bee=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({imports:[Db,Di,Di]})}return t})();const g_e=({dt:t})=>`\n.p-tooltip {\n    position: absolute;\n    display: none;\n    max-width: ${t("tooltip.max.width")};\n}\n\n.p-tooltip-right,\n.p-tooltip-left {\n    padding: 0 ${t("tooltip.gutter")};\n}\n\n.p-tooltip-top,\n.p-tooltip-bottom {\n    padding: ${t("tooltip.gutter")} 0;\n}\n\n.p-tooltip-text {\n    white-space: pre-line;\n    word-break: break-word;\n    background: ${t("tooltip.background")};\n    color: ${t("tooltip.color")};\n    padding: ${t("tooltip.padding")};\n    box-shadow: ${t("tooltip.shadow")};\n    border-radius: ${t("tooltip.border.radius")};\n}\n\n.p-tooltip-arrow {\n    position: absolute;\n    width: 0;\n    height: 0;\n    border-color: transparent;\n    border-style: solid;\n    scale: 2;\n}\n\n.p-tooltip-right .p-tooltip-arrow {\n    top: 50%;\n    left: 0;\n    margin-top: calc(-1 * ${t("tooltip.gutter")});\n    border-width: ${t("tooltip.gutter")} ${t("tooltip.gutter")} ${t("tooltip.gutter")} 0;\n    border-right-color: ${t("tooltip.background")};\n}\n\n.p-tooltip-left .p-tooltip-arrow {\n    top: 50%;\n    right: 0;\n    margin-top: calc(-1 * ${t("tooltip.gutter")});\n    border-width: ${t("tooltip.gutter")} 0 ${t("tooltip.gutter")} ${t("tooltip.gutter")};\n    border-left-color: ${t("tooltip.background")};\n}\n\n.p-tooltip-top .p-tooltip-arrow {\n    bottom: 0;\n    left: 50%;\n    margin-left: calc(-1 * ${t("tooltip.gutter")});\n    border-width: ${t("tooltip.gutter")} ${t("tooltip.gutter")} 0 ${t("tooltip.gutter")};\n    border-top-color: ${t("tooltip.background")};\n    border-bottom-color: ${t("tooltip.background")};\n}\n\n.p-tooltip-bottom .p-tooltip-arrow {\n    top: 0;\n    left: 50%;\n    margin-left: calc(-1 * ${t("tooltip.gutter")});\n    border-width: 0 ${t("tooltip.gutter")} ${t("tooltip.gutter")} ${t("tooltip.gutter")};\n    border-top-color: ${t("tooltip.background")};\n    border-bottom-color: ${t("tooltip.background")};\n}\n`,v_e={root:"p-tooltip p-component",arrow:"p-tooltip-arrow",text:"p-tooltip-text"};let Vee=(()=>{class t extends gs{name="tooltip";theme=g_e;classes=v_e;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})(),ou=(()=>{class t extends jo{zone;viewContainer;tooltipPosition;tooltipEvent="hover";appendTo;positionStyle;tooltipStyleClass;tooltipZIndex;escape=!0;showDelay;hideDelay;life;positionTop;positionLeft;autoHide=!0;fitContent=!0;hideOnEscape=!0;content;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this.deactivate()}tooltipOptions;_tooltipOptions={tooltipLabel:null,tooltipPosition:"right",tooltipEvent:"hover",appendTo:"body",positionStyle:null,tooltipStyleClass:null,tooltipZIndex:"auto",escape:!0,disabled:null,showDelay:null,hideDelay:null,positionTop:null,positionLeft:null,life:null,autoHide:!0,hideOnEscape:!0,id:Bl("pn_id_")+"_tooltip"};_disabled;container;styleClass;tooltipText;showTimeout;hideTimeout;active;mouseEnterListener;mouseLeaveListener;containerMouseleaveListener;clickListener;focusListener;blurListener;documentEscapeListener;scrollHandler;resizeListener;_componentStyle=(0,n.WQX)(Vee);interactionInProgress=!1;constructor(e,i){super(),this.zone=e,this.viewContainer=i}ngAfterViewInit(){super.ngAfterViewInit(),Gr(this.platformId)&&this.zone.runOutsideAngular(()=>{const e=this.getOption("tooltipEvent");if(("hover"===e||"both"===e)&&(this.mouseEnterListener=this.onMouseEnter.bind(this),this.mouseLeaveListener=this.onMouseLeave.bind(this),this.clickListener=this.onInputClick.bind(this),this.el.nativeElement.addEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.addEventListener("click",this.clickListener),this.el.nativeElement.addEventListener("mouseleave",this.mouseLeaveListener)),"focus"===e||"both"===e){this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this);let i=this.el.nativeElement.querySelector(".p-component");i||(i=this.getTarget(this.el.nativeElement)),i.addEventListener("focus",this.focusListener),i.addEventListener("blur",this.blurListener)}})}ngOnChanges(e){super.ngOnChanges(e),e.tooltipPosition&&this.setOption({tooltipPosition:e.tooltipPosition.currentValue}),e.tooltipEvent&&this.setOption({tooltipEvent:e.tooltipEvent.currentValue}),e.appendTo&&this.setOption({appendTo:e.appendTo.currentValue}),e.positionStyle&&this.setOption({positionStyle:e.positionStyle.currentValue}),e.tooltipStyleClass&&this.setOption({tooltipStyleClass:e.tooltipStyleClass.currentValue}),e.tooltipZIndex&&this.setOption({tooltipZIndex:e.tooltipZIndex.currentValue}),e.escape&&this.setOption({escape:e.escape.currentValue}),e.showDelay&&this.setOption({showDelay:e.showDelay.currentValue}),e.hideDelay&&this.setOption({hideDelay:e.hideDelay.currentValue}),e.life&&this.setOption({life:e.life.currentValue}),e.positionTop&&this.setOption({positionTop:e.positionTop.currentValue}),e.positionLeft&&this.setOption({positionLeft:e.positionLeft.currentValue}),e.disabled&&this.setOption({disabled:e.disabled.currentValue}),e.content&&(this.setOption({tooltipLabel:e.content.currentValue}),this.active&&(e.content.currentValue?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide())),e.autoHide&&this.setOption({autoHide:e.autoHide.currentValue}),e.id&&this.setOption({id:e.id.currentValue}),e.tooltipOptions&&(this._tooltipOptions={...this._tooltipOptions,...e.tooltipOptions.currentValue},this.deactivate(),this.active&&(this.getOption("tooltipLabel")?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide()))}isAutoHide(){return this.getOption("autoHide")}onMouseEnter(e){!this.container&&!this.showTimeout&&this.activate()}onMouseLeave(e){(this.isAutoHide()||!(Wa(e.relatedTarget,"p-tooltip")||Wa(e.relatedTarget,"p-tooltip-text")||Wa(e.relatedTarget,"p-tooltip-arrow")))&&this.deactivate()}onFocus(e){this.activate()}onBlur(e){this.deactivate()}onInputClick(e){this.deactivate()}activate(){if(!this.interactionInProgress){if(this.active=!0,this.clearHideTimeout(),this.getOption("showDelay")?this.showTimeout=setTimeout(()=>{this.show()},this.getOption("showDelay")):this.show(),this.getOption("life")){let e=this.getOption("showDelay")?this.getOption("life")+this.getOption("showDelay"):this.getOption("life");this.hideTimeout=setTimeout(()=>{this.hide()},e)}this.getOption("hideOnEscape")&&(this.documentEscapeListener=this.renderer.listen("document","keydown.escape",()=>{this.deactivate(),this.documentEscapeListener()})),this.interactionInProgress=!0}}deactivate(){this.interactionInProgress=!1,this.active=!1,this.clearShowTimeout(),this.getOption("hideDelay")?(this.clearHideTimeout(),this.hideTimeout=setTimeout(()=>{this.hide()},this.getOption("hideDelay"))):this.hide(),this.documentEscapeListener&&this.documentEscapeListener()}create(){this.container&&(this.clearHideTimeout(),this.remove()),this.container=document.createElement("div"),this.container.setAttribute("id",this.getOption("id")),this.container.setAttribute("role","tooltip");let e=document.createElement("div");e.className="p-tooltip-arrow",this.container.appendChild(e),this.tooltipText=document.createElement("div"),this.tooltipText.className="p-tooltip-text",this.updateText(),this.getOption("positionStyle")&&(this.container.style.position=this.getOption("positionStyle")),this.container.appendChild(this.tooltipText),"body"===this.getOption("appendTo")?document.body.appendChild(this.container):"target"===this.getOption("appendTo")?yx(this.container,this.el.nativeElement):yx(this.getOption("appendTo"),this.container),this.container.style.display="none",this.fitContent&&(this.container.style.width="fit-content"),this.isAutoHide()?this.container.style.pointerEvents="none":(this.container.style.pointerEvents="unset",this.bindContainerMouseleaveListener())}bindContainerMouseleaveListener(){this.containerMouseleaveListener||(this.containerMouseleaveListener=this.renderer.listen(this.container??this.container.nativeElement,"mouseleave",i=>{this.deactivate()}))}unbindContainerMouseleaveListener(){this.containerMouseleaveListener&&(this.bindContainerMouseleaveListener(),this.containerMouseleaveListener=null)}show(){this.getOption("tooltipLabel")&&!this.getOption("disabled")&&(this.create(),this.el.nativeElement.closest("p-dialog")?setTimeout(()=>{this.container&&(this.container.style.display="inline-block"),this.container&&this.align()},100):(this.container.style.display="inline-block",this.align()),function Gme(t,r){if(t){t.style.opacity="0";let e=+new Date,i="0",o=function(){i=""+(+t.style.opacity+((new Date).getTime()-e)/r),t.style.opacity=i,e=+new Date,+i<1&&(window.requestAnimationFrame&&requestAnimationFrame(o)||setTimeout(o,16))};o()}}(this.container,250),"auto"===this.getOption("tooltipZIndex")?Yc.set("tooltip",this.container,this.config.zIndex.tooltip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener())}hide(){"auto"===this.getOption("tooltipZIndex")&&Yc.clear(this.container),this.remove()}updateText(){const e=this.getOption("tooltipLabel");if(e instanceof n.C4Q){const i=this.viewContainer.createEmbeddedView(e);i.detectChanges(),i.rootNodes.forEach(o=>this.tooltipText.appendChild(o))}else this.getOption("escape")?(this.tooltipText.innerHTML="",this.tooltipText.appendChild(document.createTextNode(e))):this.tooltipText.innerHTML=e}align(){let e=this.getOption("tooltipPosition");const i={top:[this.alignTop,this.alignBottom,this.alignRight,this.alignLeft],bottom:[this.alignBottom,this.alignTop,this.alignRight,this.alignLeft],left:[this.alignLeft,this.alignRight,this.alignTop,this.alignBottom],right:[this.alignRight,this.alignLeft,this.alignTop,this.alignBottom]};for(let[o,s]of i[e].entries())if(0===o)s.call(this);else{if(!this.isOutOfBounds())break;s.call(this)}}getHostOffset(){if("body"===this.getOption("appendTo")||"target"===this.getOption("appendTo")){let e=this.el.nativeElement.getBoundingClientRect();return{left:e.left+o$(),top:e.top+s$()}}return{left:0,top:0}}get activeElement(){return this.el.nativeElement.nodeName.includes("P-")?xo(this.el.nativeElement,".p-component"):this.el.nativeElement}alignRight(){this.preAlign("right");const e=this.activeElement,i=kd(e),o=(fg(e)-fg(this.container))/2;this.alignTooltip(i,o)}alignLeft(){this.preAlign("left");let e=kd(this.container),i=(fg(this.el.nativeElement)-fg(this.container))/2;this.alignTooltip(-e,i)}alignTop(){this.preAlign("top");let e=(kd(this.el.nativeElement)-kd(this.container))/2,i=fg(this.container);this.alignTooltip(e,-i)}alignBottom(){this.preAlign("bottom");let e=(kd(this.el.nativeElement)-kd(this.container))/2,i=fg(this.el.nativeElement);this.alignTooltip(e,i)}alignTooltip(e,i){let o=this.getHostOffset(),a=o.top+i;this.container.style.left=o.left+e+this.getOption("positionLeft")+"px",this.container.style.top=a+this.getOption("positionTop")+"px"}setOption(e){this._tooltipOptions={...this._tooltipOptions,...e}}getOption(e){return this._tooltipOptions[e]}getTarget(e){return Wa(e,"p-inputwrapper")?xo(e,"input"):e}preAlign(e){this.container.style.left="-999px",this.container.style.top="-999px";let i="p-tooltip p-component p-tooltip-"+e;this.container.className=this.getOption("tooltipStyleClass")?i+" "+this.getOption("tooltipStyleClass"):i}isOutOfBounds(){let e=this.container.getBoundingClientRect(),i=e.top,o=e.left,s=kd(this.container),a=fg(this.container),l=JD();return o+s>l.width||o<0||i<0||i+a>l.height}onWindowResize(e){this.hide()}bindDocumentResizeListener(){this.zone.runOutsideAngular(()=>{this.resizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.resizeListener)})}unbindDocumentResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new jw(this.el.nativeElement,()=>{this.container&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindEvents(){const e=this.getOption("tooltipEvent");if(("hover"===e||"both"===e)&&(this.el.nativeElement.removeEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.removeEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.removeEventListener("click",this.clickListener)),"focus"===e||"both"===e){let i=this.el.nativeElement.querySelector(".p-component");i||(i=this.getTarget(this.el.nativeElement)),i.removeEventListener("focus",this.focusListener),i.removeEventListener("blur",this.blurListener)}this.unbindDocumentResizeListener()}remove(){this.container&&this.container.parentElement&&("body"===this.getOption("appendTo")?document.body.removeChild(this.container):"target"===this.getOption("appendTo")?this.el.nativeElement.removeChild(this.container):function zme(t,r){const e=a$(t);if(!e)throw new Error("Cannot remove "+r+" from "+t);e.removeChild(r)}(this.container,this.getOption("appendTo"))),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.unbindContainerMouseleaveListener(),this.clearTimeouts(),this.container=null,this.scrollHandler=null}clearShowTimeout(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)}clearHideTimeout(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout()}ngOnDestroy(){this.unbindEvents(),super.ngOnDestroy(),this.container&&Yc.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.documentEscapeListener&&this.documentEscapeListener()}static \u0275fac=function(i){return new(i||t)(n.rXU(n.SKi),n.rXU(n.c1b))};static \u0275dir=n.FsC({type:t,selectors:[["","pTooltip",""]],inputs:{tooltipPosition:"tooltipPosition",tooltipEvent:"tooltipEvent",appendTo:"appendTo",positionStyle:"positionStyle",tooltipStyleClass:"tooltipStyleClass",tooltipZIndex:"tooltipZIndex",escape:[2,"escape","escape",n.L39],showDelay:[2,"showDelay","showDelay",n.Udg],hideDelay:[2,"hideDelay","hideDelay",n.Udg],life:[2,"life","life",n.Udg],positionTop:[2,"positionTop","positionTop",n.Udg],positionLeft:[2,"positionLeft","positionLeft",n.Udg],autoHide:[2,"autoHide","autoHide",n.L39],fitContent:[2,"fitContent","fitContent",n.L39],hideOnEscape:[2,"hideOnEscape","hideOnEscape",n.L39],content:[0,"pTooltip","content"],disabled:[0,"tooltipDisabled","disabled"],tooltipOptions:"tooltipOptions"},features:[n.Jv_([Vee]),n.GFd,n.Vt3,n.OA$]})}return t})(),Rh=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({})}return t})();const y_e=({dt:t})=>`\n.p-select {\n    display: inline-flex;\n    cursor: pointer;\n    position: relative;\n    user-select: none;\n    background: ${t("select.background")};\n    border: 1px solid ${t("select.border.color")};\n    transition: background ${t("select.transition.duration")}, color ${t("select.transition.duration")}, border-color ${t("select.transition.duration")},\n        outline-color ${t("select.transition.duration")}, box-shadow ${t("select.transition.duration")};\n    border-radius: ${t("select.border.radius")};\n    outline-color: transparent;\n    box-shadow: ${t("select.shadow")};\n}\n\n.p-select.ng-invalid.ng-dirty {\n    border-color: ${t("select.invalid.border.color")};\n}\n\n.p-select:not(.p-disabled):hover {\n    border-color: ${t("select.hover.border.color")};\n}\n\n.p-select:not(.p-disabled).p-focus {\n    border-color: ${t("select.focus.border.color")};\n    box-shadow: ${t("select.focus.ring.shadow")};\n    outline: ${t("select.focus.ring.width")} ${t("select.focus.ring.style")} ${t("select.focus.ring.color")};\n    outline-offset: ${t("select.focus.ring.offset")};\n}\n\n.p-select.p-variant-filled {\n    background: ${t("select.filled.background")};\n}\n\n.p-select.p-variant-filled:not(.p-disabled):hover {\n    background: ${t("select.filled.hover.background")};\n}\n\n.p-select.p-variant-filled.p-focus {\n    background: ${t("select.filled.focus.background")};\n}\n\n.p-select.p-disabled {\n    opacity: 1;\n    background: ${t("select.disabled.background")};\n}\n\n.p-select-clear-icon {\n    position: absolute;\n    top: 50%;\n    margin-top: -0.5rem;\n    color: ${t("select.clear.icon.color")};\n    inset-inline-end: ${t("select.dropdown.width")};\n}\n\n.p-select-dropdown {\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    flex-shrink: 0;\n    background: transparent;\n    color: ${t("select.dropdown.color")};\n    width: ${t("select.dropdown.width")};\n    border-start-end-radius: ${t("select.border.radius")};\n    border-end-end-radius: ${t("select.border.radius")};\n}\n\n.p-select-label {\n    display: block;\n    white-space: nowrap;\n    overflow: hidden;\n    flex: 1 1 auto;\n    width: 1%;\n    padding: ${t("select.padding.y")} ${t("select.padding.x")};\n    text-overflow: ellipsis;\n    cursor: pointer;\n    color: ${t("select.color")};\n    background: transparent;\n    border: 0 none;\n    outline: 0 none;\n}\n\n.p-select-label.p-placeholder {\n    color: ${t("select.placeholder.color")};\n}\n\n.p-select.ng-invalid.ng-dirty .p-select-label.p-placeholder {\n    color: ${t("select.invalid.placeholder.color")};\n}\n\n.p-select:has(.p-select-clear-icon) .p-select-label {\n    padding-inline-end: calc(1rem + ${t("select.padding.x")});\n}\n\n.p-select.p-disabled .p-select-label {\n    color: ${t("select.disabled.color")};\n}\n\n.p-select-label-empty {\n    overflow: hidden;\n    opacity: 0;\n}\n\ninput.p-select-label {\n    cursor: default;\n}\n\n.p-select .p-select-overlay {\n    min-width: 100%;\n}\n\n.p-select-overlay {\n    background: ${t("select.overlay.background")};\n    color: ${t("select.overlay.color")};\n    border: 1px solid ${t("select.overlay.border.color")};\n    border-radius: ${t("select.overlay.border.radius")};\n    box-shadow: ${t("select.overlay.shadow")};\n}\n\n.p-select-header {\n    padding: ${t("select.list.header.padding")};\n}\n\n.p-select-filter {\n    width: 100%;\n}\n\n.p-select-list-container {\n    overflow: auto;\n}\n\n.p-select-option-group {\n    cursor: auto;\n    margin: 0;\n    padding: ${t("select.option.group.padding")};\n    background: ${t("select.option.group.background")};\n    color: ${t("select.option.group.color")};\n    font-weight: ${t("select.option.group.font.weight")};\n}\n\n.p-select-list {\n    margin: 0;\n    padding: 0;\n    list-style-type: none;\n    padding: ${t("select.list.padding")};\n    gap: ${t("select.list.gap")};\n    display: flex;\n    flex-direction: column;\n}\n\n.p-select-option {\n    cursor: pointer;\n    font-weight: normal;\n    white-space: nowrap;\n    position: relative;\n    overflow: hidden;\n    display: flex;\n    align-items: center;\n    padding: ${t("select.option.padding")};\n    border: 0 none;\n    color: ${t("select.option.color")};\n    background: transparent;\n    transition: background ${t("select.transition.duration")}, color ${t("select.transition.duration")}, border-color ${t("select.transition.duration")},\n            box-shadow ${t("select.transition.duration")}, outline-color ${t("select.transition.duration")};\n    border-radius: ${t("select.option.border.radius")};\n}\n\n.p-select-option:not(.p-select-option-selected):not(.p-disabled).p-focus {\n    background: ${t("select.option.focus.background")};\n    color: ${t("select.option.focus.color")};\n}\n\n.p-select-option.p-select-option-selected {\n    background: ${t("select.option.selected.background")};\n    color: ${t("select.option.selected.color")};\n}\n\n.p-select-option.p-select-option-selected.p-focus {\n    background: ${t("select.option.selected.focus.background")};\n    color: ${t("select.option.selected.focus.color")};\n}\n\n.p-select-option-check-icon {\n    position: relative;\n    margin-inline-start: ${t("select.checkmark.gutter.start")};\n    margin-inline-end: ${t("select.checkmark.gutter.end")};\n    color: ${t("select.checkmark.color")};\n}\n\n.p-select-empty-message {\n    padding: ${t("select.empty.message.padding")};\n}\n\n.p-select-fluid {\n    display: flex;\n}\n\n.p-select-sm .p-select-label {\n    font-size: ${t("select.sm.font.size")};\n    padding-block: ${t("select.sm.padding.y")};\n    padding-inline: ${t("select.sm.padding.x")};\n}\n\n.p-select-sm .p-select-dropdown .p-icon {\n    font-size: ${t("select.sm.font.size")};\n    width: ${t("select.sm.font.size")};\n    height: ${t("select.sm.font.size")};\n}\n\n.p-select-lg .p-select-label {\n    font-size: ${t("select.lg.font.size")};\n    padding-block: ${t("select.lg.padding.y")};\n    padding-inline: ${t("select.lg.padding.x")};\n}\n\n.p-select-lg .p-select-dropdown .p-icon {\n    font-size: ${t("select.lg.font.size")};\n    width: ${t("select.lg.font.size")};\n    height: ${t("select.lg.font.size")};\n}\n`,b_e={root:({instance:t})=>["p-select p-component p-inputwrapper",{"p-disabled":t.disabled,"p-variant-filled":t.variant?"filled"===t.variant:"filled"===t.config.inputStyle(),"p-focus":t.focused,"p-inputwrapper-filled":void 0!==t.modelValue()&&null!==t.modelValue(),"p-inputwrapper-focus":t.focused||t.overlayVisible,"p-select-open":t.overlayVisible,"p-select-fluid":t.hasFluid,"p-select-sm p-inputfield-sm":"small"===t.size,"p-select-lg p-inputfield-lg":"large"===t.size}],label:({instance:t,props:r})=>["p-select-label",{"p-placeholder":!r.editable&&t.label===r.placeholder,"p-select-label-empty":!(r.editable||t.$slots.value||"p-emptylabel"!==t.label&&0!==t.label.length)}],clearIcon:"p-select-clear-icon",dropdown:"p-select-dropdown",loadingicon:"p-select-loading-icon",dropdownIcon:"p-select-dropdown-icon",overlay:"p-select-overlay p-component",header:"p-select-header",pcFilter:"p-select-filter",listContainer:"p-select-list-container",list:"p-select-list",optionGroup:"p-select-option-group",optionGroupLabel:"p-select-option-group-label",option:({instance:t,props:r,state:e,option:i,focusedOption:o})=>["p-select-option",{"p-select-option-selected":t.isSelected(i)&&r.highlightOnSelect,"p-focus":e.focusedOptionIndex===o,"p-disabled":t.isOptionDisabled(i)}],optionLabel:"p-select-option-label",optionCheckIcon:"p-select-option-check-icon",optionBlankIcon:"p-select-option-blank-icon",emptyMessage:"p-select-empty-message"};let jee=(()=>{class t extends gs{name="select";theme=y_e;classes=b_e;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const pO=t=>({height:t}),w_e=(t,r,e)=>({"p-select-option":!0,"p-select-option-selected":t,"p-disabled":r,"p-focus":e}),P$=t=>({$implicit:t});function T_e(t,r){1&t&&n.nrm(0,"CheckIcon",5)}function S_e(t,r){1&t&&n.nrm(0,"BlankIcon",6)}function x_e(t,r){if(1&t&&(n.qex(0),n.DNE(1,T_e,1,0,"CheckIcon",3)(2,S_e,1,0,"BlankIcon",4),n.bVm()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngIf",e.selected),n.R7$(),n.Y8G("ngIf",!e.selected)}}function E_e(t,r){if(1&t&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&t){let e;const i=n.XpG();n.R7$(),n.JRh(null!==(e=i.label)&&void 0!==e?e:"empty")}}function D_e(t,r){1&t&&n.eu8(0)}const k_e=["item"],I_e=["group"],A_e=["loader"],M_e=["selectedItem"],R_e=["header"],Hee=["filter"],O_e=["footer"],F_e=["emptyfilter"],P_e=["empty"],L_e=["dropdownicon"],N_e=["loadingicon"],G_e=["clearicon"],B_e=["filtericon"],V_e=["onicon"],j_e=["officon"],H_e=["cancelicon"],U_e=["focusInput"],$_e=["editableInput"],Y_e=["items"],W_e=["scroller"],z_e=["overlay"],q_e=["firstHiddenFocusableEl"],X_e=["lastHiddenFocusableEl"],K_e=()=>({class:"p-select-clear-icon"}),Q_e=()=>({class:"p-select-dropdown-icon"}),Uee=t=>({options:t}),$ee=(t,r)=>({$implicit:t,options:r}),J_e=()=>({});function Z_e(t,r){if(1&t&&(n.qex(0),n.EFF(1),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.JRh("p-emptylabel"===e.label()?"\xa0":e.label())}}function e0e(t,r){if(1&t&&n.eu8(0,24),2&t){const e=n.XpG(2);n.Y8G("ngTemplateOutlet",e.selectedItemTemplate||e._selectedItemTemplate)("ngTemplateOutletContext",n.eq3(2,P$,e.selectedOption))}}function t0e(t,r){if(1&t&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&t){const e=n.XpG(3);n.R7$(),n.JRh("p-emptylabel"===e.label()?"\xa0":e.label())}}function n0e(t,r){if(1&t&&n.DNE(0,t0e,2,1,"span",18),2&t){const e=n.XpG(2);n.Y8G("ngIf",!e.selectedOption)}}function i0e(t,r){if(1&t){const e=n.RV6();n.j41(0,"span",22,3),n.bIt("focus",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onInputFocus(o))})("blur",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onInputBlur(o))})("keydown",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onKeyDown(o))}),n.DNE(2,Z_e,2,1,"ng-container",20)(3,e0e,1,4,"ng-container",23)(4,n0e,1,1,"ng-template",null,4,n.C5r),n.k0s()}if(2&t){let e;const i=n.sdS(5),o=n.XpG();n.Y8G("ngClass",o.inputClass)("pTooltip",o.tooltip)("tooltipPosition",o.tooltipPosition)("positionStyle",o.tooltipPositionStyle)("tooltipStyleClass",o.tooltipStyleClass)("pAutoFocus",o.autofocus),n.BMQ("aria-disabled",o.disabled)("id",o.inputId)("aria-label",o.ariaLabel||("p-emptylabel"===o.label()?void 0:o.label()))("aria-labelledby",o.ariaLabelledBy)("aria-haspopup","listbox")("aria-expanded",null!==(e=o.overlayVisible)&&void 0!==e&&e)("aria-controls",o.overlayVisible?o.id+"_list":null)("tabindex",o.disabled?-1:o.tabindex)("aria-activedescendant",o.focused?o.focusedOptionId:void 0)("aria-required",o.required)("required",o.required),n.R7$(2),n.Y8G("ngIf",!o.selectedItemTemplate&&!o._selectedItemTemplate)("ngIfElse",i),n.R7$(),n.Y8G("ngIf",(o.selectedItemTemplate||o._selectedItemTemplate)&&o.selectedOption)}}function r0e(t,r){if(1&t){const e=n.RV6();n.j41(0,"input",25,5),n.bIt("input",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onEditableInput(o))})("keydown",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onKeyDown(o))})("focus",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onInputFocus(o))})("blur",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onInputBlur(o))}),n.k0s()}if(2&t){const e=n.XpG();n.Y8G("ngClass",e.inputClass)("disabled",e.disabled)("pAutoFocus",e.autofocus),n.BMQ("id",e.inputId)("maxlength",e.maxlength)("placeholder",void 0===e.modelValue()||null===e.modelValue()?e.placeholder():void 0)("aria-label",e.ariaLabel||("p-emptylabel"===e.label()?void 0:e.label()))("aria-activedescendant",e.focused?e.focusedOptionId:void 0)}}function o0e(t,r){if(1&t){const e=n.RV6();n.j41(0,"TimesIcon",27),n.bIt("click",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.clear(o))}),n.k0s()}2&t&&n.BMQ("data-pc-section","clearicon")}function s0e(t,r){}function a0e(t,r){1&t&&n.DNE(0,s0e,0,0,"ng-template")}function l0e(t,r){if(1&t){const e=n.RV6();n.j41(0,"span",27),n.bIt("click",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.clear(o))}),n.DNE(1,a0e,1,0,null,28),n.k0s()}if(2&t){const e=n.XpG(2);n.BMQ("data-pc-section","clearicon"),n.R7$(),n.Y8G("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)("ngTemplateOutletContext",n.lJ4(3,K_e))}}function c0e(t,r){if(1&t&&(n.qex(0),n.DNE(1,o0e,1,1,"TimesIcon",26)(2,l0e,2,4,"span",26),n.bVm()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),n.R7$(),n.Y8G("ngIf",e.clearIconTemplate||e._clearIconTemplate)}}function u0e(t,r){1&t&&n.eu8(0)}function d0e(t,r){if(1&t&&(n.qex(0),n.DNE(1,u0e,1,0,"ng-container",29),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function p0e(t,r){if(1&t&&n.nrm(0,"span",32),2&t){const e=n.XpG(3);n.Y8G("ngClass","p-select-loading-icon pi-spin "+e.loadingIcon)}}function h0e(t,r){1&t&&n.nrm(0,"span",33),2&t&&n.HbH("p-select-loading-icon pi pi-spinner pi-spin")}function f0e(t,r){if(1&t&&(n.qex(0),n.DNE(1,p0e,1,1,"span",30)(2,h0e,1,2,"span",31),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngIf",e.loadingIcon),n.R7$(),n.Y8G("ngIf",!e.loadingIcon)}}function m0e(t,r){if(1&t&&(n.qex(0),n.DNE(1,d0e,2,1,"ng-container",18)(2,f0e,3,2,"ng-container",18),n.bVm()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngIf",e.loadingIconTemplate||e._loadingIconTemplate),n.R7$(),n.Y8G("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate)}}function g0e(t,r){if(1&t&&n.nrm(0,"span",37),2&t){const e=n.XpG(3);n.Y8G("ngClass",e.dropdownIcon)}}function v0e(t,r){1&t&&n.nrm(0,"ChevronDownIcon",38),2&t&&n.Y8G("styleClass","p-select-dropdown-icon")}function _0e(t,r){if(1&t&&(n.qex(0),n.DNE(1,g0e,1,1,"span",35)(2,v0e,1,1,"ChevronDownIcon",36),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngIf",e.dropdownIcon),n.R7$(),n.Y8G("ngIf",!e.dropdownIcon)}}function y0e(t,r){}function b0e(t,r){1&t&&n.DNE(0,y0e,0,0,"ng-template")}function C0e(t,r){if(1&t&&(n.j41(0,"span",39),n.DNE(1,b0e,1,0,null,28),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngTemplateOutlet",e.dropdownIconTemplate||e._dropdownIconTemplate)("ngTemplateOutletContext",n.lJ4(2,Q_e))}}function w0e(t,r){if(1&t&&n.DNE(0,_0e,3,2,"ng-container",18)(1,C0e,2,3,"span",34),2&t){const e=n.XpG();n.Y8G("ngIf",!e.dropdownIconTemplate&&!e._dropdownIconTemplate),n.R7$(),n.Y8G("ngIf",e.dropdownIconTemplate||e._dropdownIconTemplate)}}function T0e(t,r){1&t&&n.eu8(0)}function S0e(t,r){1&t&&n.eu8(0)}function x0e(t,r){if(1&t&&(n.qex(0),n.DNE(1,S0e,1,0,"ng-container",28),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngTemplateOutlet",e.filterTemplate||e._filterTemplate)("ngTemplateOutletContext",n.eq3(2,Uee,e.filterOptions))}}function E0e(t,r){1&t&&n.nrm(0,"SearchIcon")}function D0e(t,r){}function k0e(t,r){1&t&&n.DNE(0,D0e,0,0,"ng-template")}function I0e(t,r){if(1&t&&(n.j41(0,"span"),n.DNE(1,k0e,1,0,null,29),n.k0s()),2&t){const e=n.XpG(4);n.R7$(),n.Y8G("ngTemplateOutlet",e.filterIconTemplate||e._filterIconTemplate)}}function A0e(t,r){if(1&t){const e=n.RV6();n.j41(0,"p-iconfield")(1,"input",46,10),n.bIt("input",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.onFilterInputChange(o))})("keydown",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.onFilterKeyDown(o))})("blur",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.onFilterBlur(o))}),n.k0s(),n.j41(3,"p-inputicon"),n.DNE(4,E0e,1,0,"SearchIcon",18)(5,I0e,2,1,"span",18),n.k0s()()}if(2&t){const e=n.XpG(3);n.R7$(),n.Y8G("pSize",e.size)("value",e._filterValue()||"")("variant",e.variant),n.BMQ("placeholder",e.filterPlaceholder)("aria-owns",e.id+"_list")("aria-label",e.ariaFilterLabel)("aria-activedescendant",e.focusedOptionId),n.R7$(3),n.Y8G("ngIf",!e.filterIconTemplate&&!e._filterIconTemplate),n.R7$(),n.Y8G("ngIf",e.filterIconTemplate||e._filterIconTemplate)}}function M0e(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",45),n.bIt("click",function(o){return n.eBV(e),n.Njj(o.stopPropagation())}),n.DNE(1,x0e,2,4,"ng-container",20)(2,A0e,6,9,"ng-template",null,9,n.C5r),n.k0s()}if(2&t){const e=n.sdS(3),i=n.XpG(2);n.R7$(),n.Y8G("ngIf",i.filterTemplate||i._filterTemplate)("ngIfElse",e)}}function R0e(t,r){1&t&&n.eu8(0)}function O0e(t,r){if(1&t&&n.DNE(0,R0e,1,0,"ng-container",28),2&t){const e=r.$implicit,i=r.options;n.XpG(2);const o=n.sdS(9);n.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",n.l_i(2,$ee,e,i))}}function F0e(t,r){1&t&&n.eu8(0)}function P0e(t,r){if(1&t&&n.DNE(0,F0e,1,0,"ng-container",28),2&t){const e=r.options,i=n.XpG(4);n.Y8G("ngTemplateOutlet",i.loaderTemplate||i._loaderTemplate)("ngTemplateOutletContext",n.eq3(2,Uee,e))}}function L0e(t,r){1&t&&(n.qex(0),n.DNE(1,P0e,1,4,"ng-template",null,12,n.C5r),n.bVm())}function N0e(t,r){if(1&t){const e=n.RV6();n.j41(0,"p-scroller",47,11),n.bIt("onLazyLoad",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onLazyLoad.emit(o))}),n.DNE(2,O0e,1,5,"ng-template",null,2,n.C5r)(4,L0e,3,0,"ng-container",18),n.k0s()}if(2&t){const e=n.XpG(2);n.Aen(n.eq3(8,pO,e.scrollHeight)),n.Y8G("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize||e._itemSize)("autoSize",!0)("lazy",e.lazy)("options",e.virtualScrollOptions),n.R7$(4),n.Y8G("ngIf",e.loaderTemplate||e._loaderTemplate)}}function G0e(t,r){1&t&&n.eu8(0)}function B0e(t,r){if(1&t&&(n.qex(0),n.DNE(1,G0e,1,0,"ng-container",28),n.bVm()),2&t){n.XpG();const e=n.sdS(9),i=n.XpG();n.R7$(),n.Y8G("ngTemplateOutlet",e)("ngTemplateOutletContext",n.l_i(3,$ee,i.visibleOptions(),n.lJ4(2,J_e)))}}function V0e(t,r){if(1&t&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&t){const e=n.XpG(2).$implicit,i=n.XpG(3);n.R7$(),n.JRh(i.getOptionGroupLabel(e.optionGroup))}}function j0e(t,r){1&t&&n.eu8(0)}function H0e(t,r){if(1&t&&(n.qex(0),n.j41(1,"li",51),n.DNE(2,V0e,2,1,"span",18)(3,j0e,1,0,"ng-container",28),n.k0s(),n.bVm()),2&t){const e=n.XpG(),i=e.$implicit,o=e.index,s=n.XpG().options,a=n.XpG(2);n.R7$(),n.Y8G("ngStyle",n.eq3(5,pO,s.itemSize+"px")),n.BMQ("id",a.id+"_"+a.getOptionIndex(o,s)),n.R7$(),n.Y8G("ngIf",!a.groupTemplate&&!a._groupTemplate),n.R7$(),n.Y8G("ngTemplateOutlet",a.groupTemplate||a._groupTemplate)("ngTemplateOutletContext",n.eq3(7,P$,i.optionGroup))}}function U0e(t,r){if(1&t){const e=n.RV6();n.qex(0),n.j41(1,"p-selectItem",52),n.bIt("onClick",function(o){n.eBV(e);const s=n.XpG().$implicit,a=n.XpG(3);return n.Njj(a.onOptionSelect(o,s))})("onMouseEnter",function(o){n.eBV(e);const s=n.XpG().index,a=n.XpG().options,l=n.XpG(2);return n.Njj(l.onOptionMouseEnter(o,l.getOptionIndex(s,a)))}),n.k0s(),n.bVm()}if(2&t){const e=n.XpG(),i=e.$implicit,o=e.index,s=n.XpG().options,a=n.XpG(2);n.R7$(),n.Y8G("id",a.id+"_"+a.getOptionIndex(o,s))("option",i)("checkmark",a.checkmark)("selected",a.isSelected(i))("label",a.getOptionLabel(i))("disabled",a.isOptionDisabled(i))("template",a.itemTemplate||a._itemTemplate)("focused",a.focusedOptionIndex()===a.getOptionIndex(o,s))("ariaPosInset",a.getAriaPosInset(a.getOptionIndex(o,s)))("ariaSetSize",a.ariaSetSize)}}function $0e(t,r){if(1&t&&n.DNE(0,H0e,4,9,"ng-container",18)(1,U0e,2,10,"ng-container",18),2&t){const e=r.$implicit,i=n.XpG(3);n.Y8G("ngIf",i.isOptionGroup(e)),n.R7$(),n.Y8G("ngIf",!i.isOptionGroup(e))}}function Y0e(t,r){if(1&t&&n.EFF(0),2&t){const e=n.XpG(4);n.SpI(" ",e.emptyFilterMessageLabel," ")}}function W0e(t,r){1&t&&n.eu8(0,null,14)}function z0e(t,r){if(1&t&&n.DNE(0,W0e,2,0,"ng-container",29),2&t){const e=n.XpG(4);n.Y8G("ngTemplateOutlet",e.emptyFilterTemplate||e._emptyFilterTemplate||e.emptyTemplate||e._emptyTemplate)}}function q0e(t,r){if(1&t&&(n.j41(0,"li",53),n.DNE(1,Y0e,1,1)(2,z0e,1,1,"ng-container"),n.k0s()),2&t){const e=n.XpG().options,i=n.XpG(2);n.Y8G("ngStyle",n.eq3(2,pO,e.itemSize+"px")),n.R7$(),n.vxM(i.emptyFilterTemplate||i._emptyFilterTemplate||i.emptyTemplate?2:1)}}function X0e(t,r){if(1&t&&n.EFF(0),2&t){const e=n.XpG(4);n.SpI(" ",e.emptyMessageLabel," ")}}function K0e(t,r){1&t&&n.eu8(0,null,15)}function Q0e(t,r){if(1&t&&n.DNE(0,K0e,2,0,"ng-container",29),2&t){const e=n.XpG(4);n.Y8G("ngTemplateOutlet",e.emptyTemplate||e._emptyTemplate)}}function J0e(t,r){if(1&t&&(n.j41(0,"li",53),n.DNE(1,X0e,1,1)(2,Q0e,1,1,"ng-container"),n.k0s()),2&t){const e=n.XpG().options,i=n.XpG(2);n.Y8G("ngStyle",n.eq3(2,pO,e.itemSize+"px")),n.R7$(),n.vxM(i.emptyTemplate||i._emptyTemplate?2:1)}}function Z0e(t,r){if(1&t&&(n.j41(0,"ul",48,13),n.DNE(2,$0e,2,2,"ng-template",49)(3,q0e,3,4,"li",50)(4,J0e,3,4,"li",50),n.k0s()),2&t){const e=r.$implicit,i=r.options,o=n.XpG(2);n.Aen(i.contentStyle),n.Y8G("ngClass",i.contentStyleClass),n.BMQ("id",o.id+"_list")("aria-label",o.listLabel),n.R7$(2),n.Y8G("ngForOf",e),n.R7$(),n.Y8G("ngIf",o.filterValue&&o.isEmpty()),n.R7$(),n.Y8G("ngIf",!o.filterValue&&o.isEmpty())}}function eye(t,r){1&t&&n.eu8(0)}function tye(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",40)(1,"span",41,6),n.bIt("focus",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onFirstHiddenFocus(o))}),n.k0s(),n.DNE(3,T0e,1,0,"ng-container",29)(4,M0e,4,2,"div",42),n.j41(5,"div",43),n.DNE(6,N0e,5,10,"p-scroller",44)(7,B0e,2,6,"ng-container",18)(8,Z0e,5,8,"ng-template",null,7,n.C5r),n.k0s(),n.DNE(10,eye,1,0,"ng-container",29),n.j41(11,"span",41,8),n.bIt("focus",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onLastHiddenFocus(o))}),n.k0s()()}if(2&t){const e=n.XpG();n.HbH(e.panelStyleClass),n.Y8G("ngClass","p-select-overlay p-component")("ngStyle",e.panelStyle),n.R7$(),n.BMQ("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0),n.R7$(2),n.Y8G("ngTemplateOutlet",e.headerTemplate||e._headerTemplate),n.R7$(),n.Y8G("ngIf",e.filter),n.R7$(),n.xc7("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),n.R7$(),n.Y8G("ngIf",e.virtualScroll),n.R7$(),n.Y8G("ngIf",!e.virtualScroll),n.R7$(3),n.Y8G("ngTemplateOutlet",e.footerTemplate||e._footerTemplate),n.R7$(),n.BMQ("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0)}}const nye={provide:tl,useExisting:(0,n.Rfq)(()=>ff),multi:!0};let iye=(()=>{class t extends jo{id;option;selected;focused;label;disabled;visible;itemSize;ariaPosInset;ariaSetSize;template;checkmark;onClick=new n.bkB;onMouseEnter=new n.bkB;onOptionClick(e){this.onClick.emit(e)}onOptionMouseEnter(e){this.onMouseEnter.emit(e)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["p-selectItem"]],inputs:{id:"id",option:"option",selected:[2,"selected","selected",n.L39],focused:[2,"focused","focused",n.L39],label:"label",disabled:[2,"disabled","disabled",n.L39],visible:[2,"visible","visible",n.L39],itemSize:[2,"itemSize","itemSize",n.Udg],ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",template:"template",checkmark:[2,"checkmark","checkmark",n.L39]},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},features:[n.GFd,n.Vt3],decls:4,vars:22,consts:[["role","option","pRipple","",3,"click","mouseenter","id","ngStyle","ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["styleClass","p-select-option-check-icon",4,"ngIf"],["styleClass","p-select-option-blank-icon",4,"ngIf"],["styleClass","p-select-option-check-icon"],["styleClass","p-select-option-blank-icon"]],template:function(i,o){1&i&&(n.j41(0,"li",0),n.bIt("click",function(a){return o.onOptionClick(a)})("mouseenter",function(a){return o.onOptionMouseEnter(a)}),n.DNE(1,x_e,3,2,"ng-container",1)(2,E_e,2,1,"span",1)(3,D_e,1,0,"ng-container",2),n.k0s()),2&i&&(n.Y8G("id",o.id)("ngStyle",n.eq3(14,pO,o.itemSize+"px"))("ngClass",n.sMw(16,w_e,o.selected&&!o.checkmark,o.disabled,o.focused)),n.BMQ("aria-label",o.label)("aria-setsize",o.ariaSetSize)("aria-posinset",o.ariaPosInset)("aria-selected",o.selected)("data-p-focused",o.focused)("data-p-highlight",o.selected)("data-p-disabled",o.disabled),n.R7$(),n.Y8G("ngIf",o.checkmark),n.R7$(),n.Y8G("ngIf",!o.template),n.R7$(),n.Y8G("ngTemplateOutlet",o.template)("ngTemplateOutletContext",n.eq3(20,P$,o.option)))},dependencies:[gn,bi,fi,uo,Jr,Di,Mh,Dx,d8],encapsulation:2})}return t})(),ff=(()=>{class t extends jo{zone;filterService;id;scrollHeight="200px";filter;name;style;panelStyle;styleClass;panelStyleClass;readonly;required;editable;appendTo;tabindex=0;set placeholder(e){this._placeholder.set(e)}get placeholder(){return this._placeholder.asReadonly()}loadingIcon;filterPlaceholder;filterLocale;variant="outlined";inputId;dataKey;filterBy;filterFields;autofocus;resetFilterOnHide=!1;checkmark=!1;dropdownIcon;loading=!1;optionLabel;optionValue;optionDisabled;optionGroupLabel="label";optionGroupChildren="items";autoDisplayFirst=!0;group;showClear;emptyFilterMessage="";emptyMessage="";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;size;overlayOptions;ariaFilterLabel;ariaLabel;ariaLabelledBy;filterMatchMode="contains";maxlength;tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;focusOnHover=!0;selectOnFocus=!1;autoOptionFocus=!1;autofocusFilter=!0;fluid;get disabled(){return this._disabled}set disabled(e){e&&(this.focused=!1,this.overlayVisible&&this.hide()),this._disabled=e,this.cd.destroyed||this.cd.detectChanges()}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e,console.log("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}_itemSize;get autoZIndex(){return this._autoZIndex}set autoZIndex(e){this._autoZIndex=e,console.log("The autoZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}_autoZIndex;get baseZIndex(){return this._baseZIndex}set baseZIndex(e){this._baseZIndex=e,console.log("The baseZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}_baseZIndex;get showTransitionOptions(){return this._showTransitionOptions}set showTransitionOptions(e){this._showTransitionOptions=e,console.log("The showTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}_showTransitionOptions;get hideTransitionOptions(){return this._hideTransitionOptions}set hideTransitionOptions(e){this._hideTransitionOptions=e,console.log("The hideTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}_hideTransitionOptions;get filterValue(){return this._filterValue()}set filterValue(e){setTimeout(()=>{this._filterValue.set(e)})}get options(){return this._options()}set options(e){BD(e,this._options())||this._options.set(e)}onChange=new n.bkB;onFilter=new n.bkB;onFocus=new n.bkB;onBlur=new n.bkB;onClick=new n.bkB;onShow=new n.bkB;onHide=new n.bkB;onClear=new n.bkB;onLazyLoad=new n.bkB;_componentStyle=(0,n.WQX)(jee);filterViewChild;focusInputViewChild;editableInputViewChild;itemsViewChild;scroller;overlayViewChild;firstHiddenFocusableElementOnOverlay;lastHiddenFocusableElementOnOverlay;get hasFluid(){const i=this.el.nativeElement.closest("p-fluid");return this.fluid||!!i}get hostClass(){return this._componentStyle.classes.root({instance:this}).map(i=>"string"==typeof i?i:Object.keys(i).filter(o=>i[o]).join(" ")).join(" ")+" "+this.styleClass}get hostStyle(){return this.style}_disabled;itemsWrapper;itemTemplate;groupTemplate;loaderTemplate;selectedItemTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;dropdownIconTemplate;loadingIconTemplate;clearIconTemplate;filterIconTemplate;onIconTemplate;offIconTemplate;cancelIconTemplate;templates;_itemTemplate;_selectedItemTemplate;_headerTemplate;_filterTemplate;_footerTemplate;_emptyFilterTemplate;_emptyTemplate;_groupTemplate;_loaderTemplate;_dropdownIconTemplate;_loadingIconTemplate;_clearIconTemplate;_filterIconTemplate;_cancelIconTemplate;_onIconTemplate;_offIconTemplate;filterOptions;_options=(0,n.vPA)(null);_placeholder=(0,n.vPA)(void 0);modelValue=(0,n.vPA)(null);value;onModelChange=()=>{};onModelTouched=()=>{};hover;focused;overlayVisible;optionsChanged;panel;dimensionsUpdated;hoveredItem;selectedOptionUpdated;_filterValue=(0,n.vPA)(null);searchValue;searchIndex;searchTimeout;previousSearchChar;currentSearchChar;preventModelTouched;focusedOptionIndex=(0,n.vPA)(-1);labelId;listId;clicked=(0,n.vPA)(!1);get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(Xs.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(Xs.EMPTY_FILTER_MESSAGE)}get isVisibleClearIcon(){return null!=this.modelValue()&&this.hasSelectedOption()&&this.showClear&&!this.disabled}get listLabel(){return this.config.getTranslation(Xs.ARIA).listLabel}get rootClass(){return this._componentStyle.classes.root({instance:this})}get inputClass(){const e=this.label();return{"p-select-label":!0,"p-placeholder":this.placeholder()&&e===this.placeholder(),"p-select-label-empty":!(this.editable||this.selectedItemTemplate||null!=e&&"p-emptylabel"!==e&&0!==e.length)}}get panelClass(){return{"p-dropdown-panel p-component":!0,"p-input-filled":"filled"===this.config.inputStyle()||"filled"===this.config.inputVariant(),"p-ripple-disabled":!1===this.config.ripple()}}get focusedOptionId(){return-1!==this.focusedOptionIndex()?`${this.id}_${this.focusedOptionIndex()}`:null}visibleOptions=(0,n.EWP)(()=>{const e=this.getAllVisibleAndNonVisibleOptions();if(this._filterValue()){const o=this.filterBy||this.optionLabel||this.filterFields||this.optionValue?this.filterService.filter(e,this.searchFields(),this._filterValue().trim(),this.filterMatchMode,this.filterLocale):this.options.filter(s=>s.label?-1!==s.label.toString().toLowerCase().indexOf(this._filterValue().toLowerCase().trim()):-1!==s.toString().toLowerCase().indexOf(this._filterValue().toLowerCase().trim()));if(this.group){const a=[];return(this.options||[]).forEach(l=>{const d=this.getOptionGroupChildren(l).filter(f=>o.includes(f));d.length>0&&a.push({...l,["string"==typeof this.optionGroupChildren?this.optionGroupChildren:"items"]:[...d]})}),this.flatOptions(a)}return o}return e});label=(0,n.EWP)(()=>{const e=this.getAllVisibleAndNonVisibleOptions(),i=e.findIndex(o=>this.isOptionValueEqualsModelValue(o));return-1!==i?this.getOptionLabel(e[i]):this.placeholder()||"p-emptylabel"});filled=(0,n.EWP)(()=>"string"==typeof this.modelValue()?!!this.modelValue():"p-emptylabel"!==this.label()&&void 0!==this.modelValue()&&null!==this.modelValue());selectedOption;editableInputValue=(0,n.EWP)(()=>this.getOptionLabel(this.selectedOption)||this.modelValue()||"");constructor(e,i){super(),this.zone=e,this.filterService=i,(0,n.QZP)(()=>{const o=this.modelValue(),s=this.visibleOptions();if(s&&qs(s)){const a=this.findSelectedOptionIndex();(-1!==a||void 0===o||"string"==typeof o&&0===o.length||this.isModelValueNotSet()||this.editable)&&(this.selectedOption=s[a])}lp(s)&&(void 0===o||this.isModelValueNotSet())&&qs(this.selectedOption)&&(this.selectedOption=null),void 0!==o&&this.editable&&this.updateEditableLabel(),this.cd.markForCheck()})}isModelValueNotSet(){return null===this.modelValue()&&!this.isOptionValueEqualsModelValue(this.selectedOption)}getAllVisibleAndNonVisibleOptions(){return this.group?this.flatOptions(this.options):this.options||[]}ngOnInit(){super.ngOnInit(),this.id=this.id||Bl("pn_id_"),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterInputChange(e),reset:()=>this.resetFilter()})}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this._itemTemplate=e.template;break;case"selectedItem":this._selectedItemTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"filter":this._filterTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"emptyfilter":this._emptyFilterTemplate=e.template;break;case"empty":this._emptyTemplate=e.template;break;case"group":this._groupTemplate=e.template;break;case"loader":this._loaderTemplate=e.template;break;case"dropdownicon":this._dropdownIconTemplate=e.template;break;case"loadingicon":this._loadingIconTemplate=e.template;break;case"clearicon":this._clearIconTemplate=e.template;break;case"filtericon":this._filterIconTemplate=e.template;break;case"cancelicon":this._cancelIconTemplate=e.template;break;case"onicon":this._onIconTemplate=e.template;break;case"officon":this._offIconTemplate=e.template}})}ngAfterViewChecked(){if(this.optionsChanged&&this.overlayVisible&&(this.optionsChanged=!1,this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()},1)})),this.selectedOptionUpdated&&this.itemsWrapper){let e=xo(this.overlayViewChild?.overlayViewChild?.nativeElement,"li.p-select-option-selected");e&&wZ(this.itemsWrapper,e),this.selectedOptionUpdated=!1}}flatOptions(e){return(e||[]).reduce((i,o,s)=>{i.push({optionGroup:o,group:!0,index:s});const a=this.getOptionGroupChildren(o);return a&&a.forEach(l=>i.push(l)),i},[])}autoUpdateModel(){if(this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()&&(this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex()),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()],!1)),this.autoDisplayFirst&&(null===this.modelValue()||void 0===this.modelValue())&&!this.placeholder()){const e=this.findFirstOptionIndex();this.onOptionSelect(null,this.visibleOptions()[e],!1,!0)}}onOptionSelect(e,i,o=!0,s=!1){if(!this.isSelected(i)){const a=this.getOptionValue(i);this.updateModel(a,e),this.focusedOptionIndex.set(this.findSelectedOptionIndex()),!1===s&&this.onChange.emit({originalEvent:e,value:a})}o&&this.hide(!0)}onOptionMouseEnter(e,i){this.focusOnHover&&this.changeFocusedOptionIndex(e,i)}updateModel(e,i){this.value=e,this.onModelChange(e),this.modelValue.set(e),this.selectedOptionUpdated=!0}writeValue(e){this.filter&&this.resetFilter(),this.value=e,this.allowModelChange()&&this.onModelChange(e),this.modelValue.set(this.value),this.updateEditableLabel(),this.cd.markForCheck()}allowModelChange(){return!!this.modelValue()&&!this.placeholder()&&(void 0===this.modelValue()||null===this.modelValue())&&!this.editable&&this.options&&this.options.length}isSelected(e){return this.isValidOption(e)&&this.isOptionValueEqualsModelValue(e)}isOptionValueEqualsModelValue(e){return id(this.modelValue(),this.getOptionValue(e),this.equalityKey())}ngAfterViewInit(){this.editable&&this.updateEditableLabel(),this.updatePlaceHolderForFloatingLabel()}updatePlaceHolderForFloatingLabel(){const e=this.el.nativeElement.parentElement,i=e?.classList.contains("p-float-label");if(e&&i&&!this.selectedOption){const o=e.querySelector("label");o&&this._placeholder.set(o.textContent)}}updateEditableLabel(){this.editableInputViewChild&&(this.editableInputViewChild.nativeElement.value=this.getOptionLabel(this.selectedOption)||this.modelValue()||"")}clearEditableLabel(){this.editableInputViewChild&&(this.editableInputViewChild.nativeElement.value="")}getOptionIndex(e,i){return this.virtualScrollerDisabled?e:i&&i.getItemOptions(e).index}getOptionLabel(e){return null!=this.optionLabel?ml(e,this.optionLabel):e&&void 0!==e.label?e.label:e}getOptionValue(e){return this.optionValue&&null!==this.optionValue?ml(e,this.optionValue):!this.optionLabel&&e&&void 0!==e.value?e.value:e}isOptionDisabled(e){return!(this.getOptionValue(this.modelValue())===this.getOptionValue(e)||this.getOptionLabel(this.modelValue()===this.getOptionLabel(e))&&!1===e.disabled)&&(this.optionDisabled?ml(e,this.optionDisabled):!(!e||void 0===e.disabled)&&e.disabled)}getOptionGroupLabel(e){return null!=this.optionGroupLabel?ml(e,this.optionGroupLabel):e&&void 0!==e.label?e.label:e}getOptionGroupChildren(e){return null!=this.optionGroupChildren?ml(e,this.optionGroupChildren):e.items}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(i=>this.isOptionGroup(i)).length:e)+1}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}resetFilter(){this._filterValue.set(null),this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value="")}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onContainerClick(e){this.disabled||this.readonly||this.loading||(this.focusInputViewChild?.nativeElement.focus({preventScroll:!0}),"INPUT"!==e.target.tagName&&"clearicon"!==e.target.getAttribute("data-pc-section")&&!e.target.closest('[data-pc-section="clearicon"]')&&((!this.overlayViewChild||!this.overlayViewChild.el.nativeElement.contains(e.target))&&(this.overlayVisible?this.hide(!0):this.show(!0)),this.onClick.emit(e),this.clicked.set(!0),this.cd.detectChanges()))}isEmpty(){return!this._options()||this.visibleOptions()&&0===this.visibleOptions().length}onEditableInput(e){const i=e.target.value;this.searchValue="",!this.searchOptions(e,i)&&this.focusedOptionIndex.set(-1),this.onModelChange(i),this.updateModel(i||null,e),setTimeout(()=>{this.onChange.emit({originalEvent:e,value:i})},1),!this.overlayVisible&&qs(i)&&this.show()}show(e){this.overlayVisible=!0,this.focusedOptionIndex.set(-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.editable?-1:this.findSelectedOptionIndex()),e&&la(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}onOverlayAnimationStart(e){if("visible"===e.toState){if(this.itemsWrapper=xo(this.overlayViewChild?.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-select-list-container"),this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.options&&this.options.length)if(this.virtualScroll){const i=this.modelValue()?this.focusedOptionIndex():-1;-1!==i&&this.scroller?.scrollToIndex(i)}else{let i=xo(this.itemsWrapper,".p-select-option.p-select-option-selected");i&&i.scrollIntoView({block:"nearest",inline:"nearest"})}this.filterViewChild&&this.filterViewChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&!this.editable&&this.filterViewChild.nativeElement.focus()),this.onShow.emit(e)}"void"===e.toState&&(this.itemsWrapper=null,this.onModelTouched(),this.onHide.emit(e))}hide(e){this.overlayVisible=!1,this.focusedOptionIndex.set(-1),this.clicked.set(!1),this.searchValue="","modal"===this.overlayOptions?.mode&&Lw(),this.filter&&this.resetFilterOnHide&&this.resetFilter(),e&&(this.focusInputViewChild&&la(this.focusInputViewChild?.nativeElement),this.editable&&this.editableInputViewChild&&la(this.editableInputViewChild?.nativeElement)),this.cd.markForCheck()}onInputFocus(e){if(this.disabled)return;this.focused=!0;const i=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(i),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onBlur.emit(e),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}onKeyDown(e,i=!1){if(!(this.disabled||this.readonly||this.loading)){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,this.editable);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,this.editable);break;case"Delete":this.onDeleteKey(e);break;case"Home":this.onHomeKey(e,this.editable);break;case"End":this.onEndKey(e,this.editable);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Space":this.onSpaceKey(e,i);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e,this.editable);break;case"ShiftLeft":case"ShiftRight":break;default:!e.metaKey&&rd(e.key)&&(!this.overlayVisible&&this.show(),!this.editable&&this.searchOptions(e,e.key))}this.clicked.set(!1)}}onFilterKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":case"NumpadEnter":this.onEnterKey(e,!0);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0)}}onFilterBlur(e){this.focusedOptionIndex.set(-1)}onArrowDownKey(e){if(this.overlayVisible){const i=-1!==this.focusedOptionIndex()?this.findNextOptionIndex(this.focusedOptionIndex()):this.clicked()?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,i)}else this.show(),this.editable&&this.changeFocusedOptionIndex(e,this.findSelectedOptionIndex());e.preventDefault(),e.stopPropagation()}changeFocusedOptionIndex(e,i){if(this.focusedOptionIndex()!==i&&(this.focusedOptionIndex.set(i),this.scrollInView(),this.selectOnFocus)){const o=this.visibleOptions()[i];this.onOptionSelect(e,o,!1)}}get virtualScrollerDisabled(){return!this.virtualScroll}scrollInView(e=-1){if(this.itemsViewChild&&this.itemsViewChild.nativeElement){const o=xo(this.itemsViewChild.nativeElement,`li[id="${-1!==e?`${this.id}_${e}`:this.focusedOptionId}"]`);o?o.scrollIntoView&&o.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(-1!==e?e:this.focusedOptionIndex())},0)}}hasSelectedOption(){return void 0!==this.modelValue()}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}equalityKey(){return this.optionValue?null:this.dataKey}findFirstFocusedOptionIndex(){const e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextOptionIndex(e){const i=e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(o=>this.isValidOption(o)):-1;return i>-1?i+e+1:e}findPrevOptionIndex(e){const i=e>0?Jp(this.visibleOptions().slice(0,e),o=>this.isValidOption(o)):-1;return i>-1?i:e}findLastOptionIndex(){return Jp(this.visibleOptions(),e=>this.isValidOption(e))}findLastFocusedOptionIndex(){const e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}isValidOption(e){return null!=e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionGroup(e){return null!=this.optionGroupLabel&&null!=e.optionGroup&&e.group}onArrowUpKey(e,i=!1){if(e.altKey&&!i){if(-1!==this.focusedOptionIndex()){const o=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,o)}this.overlayVisible&&this.hide()}else{const o=-1!==this.focusedOptionIndex()?this.findPrevOptionIndex(this.focusedOptionIndex()):this.clicked()?this.findLastOptionIndex():this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,o),!this.overlayVisible&&this.show()}e.preventDefault(),e.stopPropagation()}onArrowLeftKey(e,i=!1){i&&this.focusedOptionIndex.set(-1)}onDeleteKey(e){this.showClear&&(this.clear(e),e.preventDefault())}onHomeKey(e,i=!1){if(i){const o=e.currentTarget;e.shiftKey?o.setSelectionRange(0,o.value.length):(o.setSelectionRange(0,0),this.focusedOptionIndex.set(-1))}else this.changeFocusedOptionIndex(e,this.findFirstOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()}onEndKey(e,i=!1){if(i){const o=e.currentTarget;if(e.shiftKey)o.setSelectionRange(0,o.value.length);else{const s=o.value.length;o.setSelectionRange(s,s),this.focusedOptionIndex.set(-1)}}else this.changeFocusedOptionIndex(e,this.findLastOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onSpaceKey(e,i=!1){!this.editable&&!i&&this.onEnterKey(e)}onEnterKey(e,i=!1){if(this.overlayVisible){if(-1!==this.focusedOptionIndex()){const o=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,o)}!i&&this.hide()}else this.focusedOptionIndex.set(-1),this.onArrowDownKey(e);e.preventDefault()}onEscapeKey(e){this.overlayVisible&&this.hide(!0),e.preventDefault()}onTabKey(e,i=!1){if(!i)if(this.overlayVisible&&this.hasFocusableElements())la(e.shiftKey?this.lastHiddenFocusableElementOnOverlay.nativeElement:this.firstHiddenFocusableElementOnOverlay.nativeElement),e.preventDefault();else{if(-1!==this.focusedOptionIndex()&&this.overlayVisible){const o=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,o)}this.overlayVisible&&this.hide(this.filter)}e.stopPropagation()}onFirstHiddenFocus(e){la(e.relatedTarget===this.focusInputViewChild?.nativeElement?bx(this.overlayViewChild.el?.nativeElement,":not(.p-hidden-focusable)"):this.focusInputViewChild?.nativeElement)}onLastHiddenFocus(e){la(e.relatedTarget===this.focusInputViewChild?.nativeElement?nO(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement)}hasFocusableElements(){return Mm(this.overlayViewChild.overlayViewChild.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}onBackspaceKey(e,i=!1){i&&!this.overlayVisible&&this.show()}searchFields(){return this.filterBy?.split(",")||this.filterFields||[this.optionLabel]}searchOptions(e,i){this.searchValue=(this.searchValue||"")+i;let o=-1,s=!1;return o=this.visibleOptions().findIndex(a=>this.isOptionMatched(a)),-1!==o&&(s=!0),-1===o&&-1===this.focusedOptionIndex()&&(o=this.findFirstFocusedOptionIndex()),-1!==o&&setTimeout(()=>{this.changeFocusedOptionIndex(e,o)}),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),s}isOptionMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toString().toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))}onFilterInputChange(e){this._filterValue.set(e.target.value),this.focusedOptionIndex.set(-1),this.onFilter.emit({originalEvent:e,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller.scrollToIndex(0),setTimeout(()=>{this.overlayViewChild.alignOverlay()}),this.cd.markForCheck()}applyFocus(){this.editable?xo(this.el.nativeElement,".p-dropdown-label.p-inputtext").focus():la(this.focusInputViewChild?.nativeElement)}focus(){this.applyFocus()}clear(e){this.updateModel(null,e),this.clearEditableLabel(),this.onModelTouched(),this.onChange.emit({originalEvent:e,value:this.value}),this.onClear.emit(e),this.resetFilter()}static \u0275fac=function(i){return new(i||t)(n.rXU(n.SKi),n.rXU(Cx))};static \u0275cmp=n.VBU({type:t,selectors:[["p-select"]],contentQueries:function(i,o,s){if(1&i&&(n.wni(s,k_e,4),n.wni(s,I_e,4),n.wni(s,A_e,4),n.wni(s,M_e,4),n.wni(s,R_e,4),n.wni(s,Hee,4),n.wni(s,O_e,4),n.wni(s,F_e,4),n.wni(s,P_e,4),n.wni(s,L_e,4),n.wni(s,N_e,4),n.wni(s,G_e,4),n.wni(s,B_e,4),n.wni(s,V_e,4),n.wni(s,j_e,4),n.wni(s,H_e,4),n.wni(s,hs,4)),2&i){let a;n.mGM(a=n.lsd())&&(o.itemTemplate=a.first),n.mGM(a=n.lsd())&&(o.groupTemplate=a.first),n.mGM(a=n.lsd())&&(o.loaderTemplate=a.first),n.mGM(a=n.lsd())&&(o.selectedItemTemplate=a.first),n.mGM(a=n.lsd())&&(o.headerTemplate=a.first),n.mGM(a=n.lsd())&&(o.filterTemplate=a.first),n.mGM(a=n.lsd())&&(o.footerTemplate=a.first),n.mGM(a=n.lsd())&&(o.emptyFilterTemplate=a.first),n.mGM(a=n.lsd())&&(o.emptyTemplate=a.first),n.mGM(a=n.lsd())&&(o.dropdownIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.loadingIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.clearIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.filterIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.onIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.offIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.cancelIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.templates=a)}},viewQuery:function(i,o){if(1&i&&(n.GBs(Hee,5),n.GBs(U_e,5),n.GBs($_e,5),n.GBs(Y_e,5),n.GBs(W_e,5),n.GBs(z_e,5),n.GBs(q_e,5),n.GBs(X_e,5)),2&i){let s;n.mGM(s=n.lsd())&&(o.filterViewChild=s.first),n.mGM(s=n.lsd())&&(o.focusInputViewChild=s.first),n.mGM(s=n.lsd())&&(o.editableInputViewChild=s.first),n.mGM(s=n.lsd())&&(o.itemsViewChild=s.first),n.mGM(s=n.lsd())&&(o.scroller=s.first),n.mGM(s=n.lsd())&&(o.overlayViewChild=s.first),n.mGM(s=n.lsd())&&(o.firstHiddenFocusableElementOnOverlay=s.first),n.mGM(s=n.lsd())&&(o.lastHiddenFocusableElementOnOverlay=s.first)}},hostVars:5,hostBindings:function(i,o){1&i&&n.bIt("click",function(a){return o.onContainerClick(a)}),2&i&&(n.BMQ("id",o.id),n.Aen(o.hostStyle),n.HbH(o.hostClass))},inputs:{id:"id",scrollHeight:"scrollHeight",filter:[2,"filter","filter",n.L39],name:"name",style:"style",panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",readonly:[2,"readonly","readonly",n.L39],required:[2,"required","required",n.L39],editable:[2,"editable","editable",n.L39],appendTo:"appendTo",tabindex:[2,"tabindex","tabindex",n.Udg],placeholder:"placeholder",loadingIcon:"loadingIcon",filterPlaceholder:"filterPlaceholder",filterLocale:"filterLocale",variant:"variant",inputId:"inputId",dataKey:"dataKey",filterBy:"filterBy",filterFields:"filterFields",autofocus:[2,"autofocus","autofocus",n.L39],resetFilterOnHide:[2,"resetFilterOnHide","resetFilterOnHide",n.L39],checkmark:[2,"checkmark","checkmark",n.L39],dropdownIcon:"dropdownIcon",loading:[2,"loading","loading",n.L39],optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",autoDisplayFirst:[2,"autoDisplayFirst","autoDisplayFirst",n.L39],group:[2,"group","group",n.L39],showClear:[2,"showClear","showClear",n.L39],emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",lazy:[2,"lazy","lazy",n.L39],virtualScroll:[2,"virtualScroll","virtualScroll",n.L39],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",n.Udg],virtualScrollOptions:"virtualScrollOptions",size:"size",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",filterMatchMode:"filterMatchMode",maxlength:[2,"maxlength","maxlength",n.Udg],tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",focusOnHover:[2,"focusOnHover","focusOnHover",n.L39],selectOnFocus:[2,"selectOnFocus","selectOnFocus",n.L39],autoOptionFocus:[2,"autoOptionFocus","autoOptionFocus",n.L39],autofocusFilter:[2,"autofocusFilter","autofocusFilter",n.L39],fluid:[2,"fluid","fluid",n.L39],disabled:"disabled",itemSize:"itemSize",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",filterValue:"filterValue",options:"options"},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onShow:"onShow",onHide:"onHide",onClear:"onClear",onLazyLoad:"onLazyLoad"},features:[n.Jv_([nye,jee]),n.GFd,n.Vt3],decls:11,vars:15,consts:[["elseBlock",""],["overlay",""],["content",""],["focusInput",""],["defaultPlaceholder",""],["editableInput",""],["firstHiddenFocusableEl",""],["buildInItems",""],["lastHiddenFocusableEl",""],["builtInFilterElement",""],["filter",""],["scroller",""],["loader",""],["items",""],["emptyFilter",""],["empty",""],["role","combobox",3,"ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","pAutoFocus","focus","blur","keydown",4,"ngIf"],["type","text","aria-haspopup","listbox",3,"ngClass","disabled","pAutoFocus","input","keydown","focus","blur",4,"ngIf"],[4,"ngIf"],["role","button","aria-label","dropdown trigger","aria-haspopup","listbox",1,"p-select-dropdown"],[4,"ngIf","ngIfElse"],[3,"visibleChange","onAnimationStart","onHide","visible","options","target","appendTo","autoZIndex","baseZIndex","showTransitionOptions","hideTransitionOptions"],["role","combobox",3,"focus","blur","keydown","ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","pAutoFocus"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["type","text","aria-haspopup","listbox",3,"input","keydown","focus","blur","ngClass","disabled","pAutoFocus"],["class","p-select-clear-icon",3,"click",4,"ngIf"],[1,"p-select-clear-icon",3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],["aria-hidden","true",3,"ngClass",4,"ngIf"],["aria-hidden","true",3,"class",4,"ngIf"],["aria-hidden","true",3,"ngClass"],["aria-hidden","true"],["class","p-select-dropdown-icon",4,"ngIf"],["class","p-select-dropdown-icon",3,"ngClass",4,"ngIf"],[3,"styleClass",4,"ngIf"],[1,"p-select-dropdown-icon",3,"ngClass"],[3,"styleClass"],[1,"p-select-dropdown-icon"],[3,"ngClass","ngStyle"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus"],["class","p-select-header",3,"click",4,"ngIf"],[1,"p-select-list-container"],[3,"items","style","itemSize","autoSize","lazy","options","onLazyLoad",4,"ngIf"],[1,"p-select-header",3,"click"],["pInputText","","type","text","role","searchbox","autocomplete","off",1,"p-select-filter",3,"input","keydown","blur","pSize","value","variant"],[3,"onLazyLoad","items","itemSize","autoSize","lazy","options"],["role","listbox",1,"p-select-list",3,"ngClass"],["ngFor","",3,"ngForOf"],["class","p-select-empty-message","role","option",3,"ngStyle",4,"ngIf"],["role","option",1,"p-select-option-group",3,"ngStyle"],[3,"onClick","onMouseEnter","id","option","checkmark","selected","label","disabled","template","focused","ariaPosInset","ariaSetSize"],["role","option",1,"p-select-empty-message",3,"ngStyle"]],template:function(i,o){if(1&i){const s=n.RV6();n.DNE(0,i0e,6,20,"span",16)(1,r0e,2,8,"input",17)(2,c0e,3,2,"ng-container",18),n.j41(3,"div",19),n.DNE(4,m0e,3,2,"ng-container",20)(5,w0e,2,2,"ng-template",null,0,n.C5r),n.k0s(),n.j41(7,"p-overlay",21,1),n.mxI("visibleChange",function(l){return n.eBV(s),n.DH7(o.overlayVisible,l)||(o.overlayVisible=l),n.Njj(l)}),n.bIt("onAnimationStart",function(l){return n.eBV(s),n.Njj(o.onOverlayAnimationStart(l))})("onHide",function(){return n.eBV(s),n.Njj(o.hide())}),n.DNE(9,tye,13,17,"ng-template",null,2,n.C5r),n.k0s()}if(2&i){let s;const a=n.sdS(6);n.Y8G("ngIf",!o.editable),n.R7$(),n.Y8G("ngIf",o.editable),n.R7$(),n.Y8G("ngIf",o.isVisibleClearIcon),n.R7$(),n.BMQ("aria-expanded",null!==(s=o.overlayVisible)&&void 0!==s&&s)("data-pc-section","trigger"),n.R7$(),n.Y8G("ngIf",o.loading)("ngIfElse",a),n.R7$(3),n.R50("visible",o.overlayVisible),n.Y8G("options",o.overlayOptions)("target","@parent")("appendTo",o.appendTo)("autoZIndex",o.autoZIndex)("baseZIndex",o.baseZIndex)("showTransitionOptions",o.showTransitionOptions)("hideTransitionOptions",o.hideTransitionOptions)}},dependencies:[gn,bi,oo,fi,uo,Jr,iye,lk,ou,Jf,pf,Y_,ak,hf,Ex,kx,Db,Di],encapsulation:2,changeDetection:0})}return t})(),Zp=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({imports:[ff,Di,Di]})}return t})(),rye=(()=>{class t{hasChildColumns(){return!(!(this.childColumns&&this.childColumns.length>0)||1===this.childColumns.length&&this.childColumns.first===this)}toColDef(){let e=this.createColDefFromGridColumn(this);return this.hasChildColumns()&&(e.children=this.getChildColDefs(this.childColumns)),e}getChildColDefs(e){return e.filter(i=>!i.hasChildColumns()).map(i=>i.toColDef())}createColDefFromGridColumn(e){return ag(e,["childColumns"])}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.VBU({type:t,selectors:[["ag-grid-column"]],contentQueries:function(e,i,o){if(1&e&&n.wni(o,t,4),2&e){let s;n.mGM(s=n.lsd())&&(i.childColumns=s)}},inputs:{filterFramework:"filterFramework",filterParams:"filterParams",floatingFilterComponent:"floatingFilterComponent",floatingFilterComponentParams:"floatingFilterComponentParams",floatingFilterComponentFramework:"floatingFilterComponentFramework",floatingFilterFramework:"floatingFilterFramework",filter:"filter",headerName:"headerName",headerValueGetter:"headerValueGetter",headerTooltip:"headerTooltip",headerClass:"headerClass",suppressHeaderKeyboardEvent:"suppressHeaderKeyboardEvent",columnGroupShow:"columnGroupShow",toolPanelClass:"toolPanelClass",suppressColumnsToolPanel:"suppressColumnsToolPanel",suppressFiltersToolPanel:"suppressFiltersToolPanel",tooltipComponent:"tooltipComponent",tooltipComponentFramework:"tooltipComponentFramework",tooltipComponentParams:"tooltipComponentParams",children:"children",groupId:"groupId",openByDefault:"openByDefault",marryChildren:"marryChildren",headerGroupComponent:"headerGroupComponent",headerGroupComponentFramework:"headerGroupComponentFramework",headerGroupComponentParams:"headerGroupComponentParams",colId:"colId",field:"field",type:"type",valueGetter:"valueGetter",valueFormatter:"valueFormatter",refData:"refData",keyCreator:"keyCreator",equals:"equals",tooltipField:"tooltipField",tooltipValueGetter:"tooltipValueGetter",checkboxSelection:"checkboxSelection",icons:"icons",suppressNavigable:"suppressNavigable",suppressKeyboardEvent:"suppressKeyboardEvent",suppressPaste:"suppressPaste",suppressFillHandle:"suppressFillHandle",hide:"hide",initialHide:"initialHide",lockVisible:"lockVisible",lockPosition:"lockPosition",suppressMovable:"suppressMovable",editable:"editable",valueSetter:"valueSetter",valueParser:"valueParser",cellEditor:"cellEditor",cellEditorFramework:"cellEditorFramework",cellEditorParams:"cellEditorParams",cellEditorSelector:"cellEditorSelector",singleClickEdit:"singleClickEdit",newValueHandler:"newValueHandler",cellEditorPopup:"cellEditorPopup",cellEditorPopupPosition:"cellEditorPopupPosition",onCellValueChanged:"onCellValueChanged",onCellClicked:"onCellClicked",onCellDoubleClicked:"onCellDoubleClicked",onCellContextMenu:"onCellContextMenu",getQuickFilterText:"getQuickFilterText",filterValueGetter:"filterValueGetter",floatingFilter:"floatingFilter",wrapHeaderText:"wrapHeaderText",autoHeaderHeight:"autoHeaderHeight",headerComponent:"headerComponent",headerComponentFramework:"headerComponentFramework",headerComponentParams:"headerComponentParams",menuTabs:"menuTabs",columnsMenuParams:"columnsMenuParams",suppressMenu:"suppressMenu",headerCheckboxSelection:"headerCheckboxSelection",headerCheckboxSelectionFilteredOnly:"headerCheckboxSelectionFilteredOnly",chartDataType:"chartDataType",pinned:"pinned",initialPinned:"initialPinned",lockPinned:"lockPinned",pinnedRowCellRenderer:"pinnedRowCellRenderer",pinnedRowCellRendererFramework:"pinnedRowCellRendererFramework",pinnedRowCellRendererParams:"pinnedRowCellRendererParams",pinnedRowValueFormatter:"pinnedRowValueFormatter",pivot:"pivot",initialPivot:"initialPivot",pivotIndex:"pivotIndex",initialPivotIndex:"initialPivotIndex",pivotComparator:"pivotComparator",enablePivot:"enablePivot",cellStyle:"cellStyle",cellClass:"cellClass",cellClassRules:"cellClassRules",cellRenderer:"cellRenderer",cellRendererFramework:"cellRendererFramework",cellRendererParams:"cellRendererParams",cellRendererSelector:"cellRendererSelector",autoHeight:"autoHeight",wrapText:"wrapText",enableCellChangeFlash:"enableCellChangeFlash",suppressCellFlash:"suppressCellFlash",rowDrag:"rowDrag",rowDragText:"rowDragText",dndSource:"dndSource",dndSourceOnRowDrag:"dndSourceOnRowDrag",rowGroup:"rowGroup",initialRowGroup:"initialRowGroup",rowGroupIndex:"rowGroupIndex",initialRowGroupIndex:"initialRowGroupIndex",enableRowGroup:"enableRowGroup",enableValue:"enableValue",aggFunc:"aggFunc",initialAggFunc:"initialAggFunc",defaultAggFunc:"defaultAggFunc",allowedAggFuncs:"allowedAggFuncs",showRowGroup:"showRowGroup",sortable:"sortable",sort:"sort",initialSort:"initialSort",sortIndex:"sortIndex",initialSortIndex:"initialSortIndex",sortingOrder:"sortingOrder",comparator:"comparator",unSortIcon:"unSortIcon",sortedAt:"sortedAt",colSpan:"colSpan",rowSpan:"rowSpan",width:"width",initialWidth:"initialWidth",minWidth:"minWidth",maxWidth:"maxWidth",flex:"flex",initialFlex:"initialFlex",resizable:"resizable",suppressSizeToFit:"suppressSizeToFit",suppressAutoSize:"suppressAutoSize"},standalone:!1,decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),Yee=(()=>{class t extends J0{constructor(e){super(),this._ngZone=e}setEmitterUsedCallback(e){this.isEmitterUsed=e}setTimeout(e,i){this._ngZone?this._ngZone.runOutsideAngular(()=>{window.setTimeout(()=>{e()},i)}):window.setTimeout(()=>{e()},i)}setInterval(e,i){return new Zu(o=>{this._ngZone?this._ngZone.runOutsideAngular(()=>{o(window.setInterval(()=>{e()},i))}):o(window.setInterval(()=>{e()},i))})}addEventListener(e,i,o,s){this.isOutsideAngular(i)&&this._ngZone?this._ngZone.runOutsideAngular(()=>{e.addEventListener(i,o,s)}):e.addEventListener(i,o,s)}dispatchEvent(e,i,o=!1){this.isOutsideAngular(e)?this._ngZone?this._ngZone.runOutsideAngular(i):i():(this.isEmitterUsed(e)||o)&&(!n.SKi.isInAngularZone()&&this._ngZone?this._ngZone.run(i):i())}isFrameworkComponent(e){if(!e)return!1;const i=e.prototype;return i&&"agInit"in i}}return t.\u0275fac=function(e){return new(e||t)(n.KVO(n.SKi))},t.\u0275prov=n.jDH({token:t,factory:t.\u0275fac}),t})(),Wee=(()=>{class t extends Aj{setViewContainerRef(e){this.viewContainerRef=e}setComponentFactoryResolver(e){this.componentFactoryResolver=e}createWrapper(e){let i=this,s=new class o extends oye{init(l){super.init(l),this._componentRef.changeDetectorRef.detectChanges()}createComponent(){return i.createComponent(e)}hasMethod(l){return null!=s.getFrameworkComponentInstance()[l]}callMethod(l,c){const d=this.getFrameworkComponentInstance();return s.getFrameworkComponentInstance()[l].apply(d,c)}addMethod(l,c){s[l]=c}};return s}createComponent(e){let i=this.componentFactoryResolver.resolveComponentFactory(e);return this.viewContainerRef.createComponent(i)}}return t.\u0275fac=(()=>{let r;return function(i){return(r||(r=n.xGo(t)))(i||t)}})(),t.\u0275prov=n.jDH({token:t,factory:t.\u0275fac}),t})();class oye{init(r){this._params=r,this._componentRef=this.createComponent(),this._agAwareComponent=this._componentRef.instance,this._frameworkComponentInstance=this._componentRef.instance,this._eGui=this._componentRef.location.nativeElement,this._agAwareComponent.agInit(this._params)}getGui(){return this._eGui}destroy(){this._frameworkComponentInstance&&"function"==typeof this._frameworkComponentInstance.destroy&&this._frameworkComponentInstance.destroy(),this._componentRef&&this._componentRef.destroy()}getFrameworkComponentInstance(){return this._frameworkComponentInstance}}let p8=(()=>{class t{constructor(e,i,o,s,a){this.viewContainerRef=i,this.angularFrameworkOverrides=o,this.frameworkComponentWrapper=s,this.componentFactoryResolver=a,this._initialised=!1,this._destroyed=!1,this._fullyReady=Zu.resolve(!0),this.statusBar=void 0,this.sideBar=void 0,this.suppressContextMenu=void 0,this.preventDefaultOnContextMenu=void 0,this.allowContextMenuWithControlKey=void 0,this.suppressMenuHide=void 0,this.enableBrowserTooltips=void 0,this.tooltipShowDelay=void 0,this.tooltipHideDelay=void 0,this.tooltipMouseTrack=void 0,this.popupParent=void 0,this.copyHeadersToClipboard=void 0,this.copyGroupHeadersToClipboard=void 0,this.clipboardDelimiter=void 0,this.suppressCopyRowsToClipboard=void 0,this.suppressCopySingleCellRanges=void 0,this.suppressLastEmptyLineOnPaste=void 0,this.suppressClipboardPaste=void 0,this.suppressClipboardApi=void 0,this.columnDefs=void 0,this.defaultColDef=void 0,this.defaultColGroupDef=void 0,this.columnTypes=void 0,this.maintainColumnOrder=void 0,this.suppressFieldDotNotation=void 0,this.deltaColumnMode=void 0,this.applyColumnDefOrder=void 0,this.immutableColumns=void 0,this.suppressSetColumnStateEvents=void 0,this.suppressColumnStateEvents=void 0,this.colWidth=void 0,this.minColWidth=void 0,this.maxColWidth=void 0,this.headerHeight=void 0,this.groupHeaderHeight=void 0,this.floatingFiltersHeight=void 0,this.pivotHeaderHeight=void 0,this.pivotGroupHeaderHeight=void 0,this.allowDragFromColumnsToolPanel=void 0,this.suppressMovableColumns=void 0,this.suppressColumnMoveAnimation=void 0,this.suppressDragLeaveHidesColumns=void 0,this.suppressRowGroupHidesColumns=void 0,this.colResizeDefault=void 0,this.suppressAutoSize=void 0,this.autoSizePadding=void 0,this.skipHeaderOnAutoSize=void 0,this.components=void 0,this.frameworkComponents=void 0,this.editType=void 0,this.singleClickEdit=void 0,this.suppressClickEdit=void 0,this.readOnlyEdit=void 0,this.stopEditingWhenCellsLoseFocus=void 0,this.enterMovesDown=void 0,this.enterMovesDownAfterEdit=void 0,this.undoRedoCellEditing=void 0,this.undoRedoCellEditingLimit=void 0,this.stopEditingWhenGridLosesFocus=void 0,this.defaultCsvExportParams=void 0,this.suppressCsvExport=void 0,this.defaultExcelExportParams=void 0,this.suppressExcelExport=void 0,this.excelStyles=void 0,this.defaultExportParams=void 0,this.quickFilterText=void 0,this.cacheQuickFilter=void 0,this.excludeChildrenWhenTreeDataFiltering=void 0,this.enableCharts=void 0,this.chartThemes=void 0,this.customChartThemes=void 0,this.chartThemeOverrides=void 0,this.loadingCellRenderer=void 0,this.loadingCellRendererFramework=void 0,this.loadingCellRendererParams=void 0,this.loadingCellRendererSelector=void 0,this.localeText=void 0,this.masterDetail=void 0,this.keepDetailRows=void 0,this.keepDetailRowsCount=void 0,this.detailCellRenderer=void 0,this.detailCellRendererFramework=void 0,this.detailCellRendererParams=void 0,this.detailRowHeight=void 0,this.detailRowAutoHeight=void 0,this.groupRowsSticky=void 0,this.context=void 0,this.alignedGrids=void 0,this.tabIndex=void 0,this.rowBuffer=void 0,this.valueCache=void 0,this.valueCacheNeverExpires=void 0,this.enableCellExpressions=void 0,this.suppressParentsInRowNodes=void 0,this.suppressTouch=void 0,this.suppressFocusAfterRefresh=void 0,this.suppressAsyncEvents=void 0,this.suppressBrowserResizeObserver=void 0,this.suppressPropertyNamesCheck=void 0,this.suppressChangeDetection=void 0,this.debug=void 0,this.overlayLoadingTemplate=void 0,this.loadingOverlayComponent=void 0,this.loadingOverlayComponentFramework=void 0,this.loadingOverlayComponentParams=void 0,this.suppressLoadingOverlay=void 0,this.overlayNoRowsTemplate=void 0,this.noRowsOverlayComponent=void 0,this.noRowsOverlayComponentFramework=void 0,this.noRowsOverlayComponentParams=void 0,this.suppressNoRowsOverlay=void 0,this.pagination=void 0,this.paginationPageSize=void 0,this.paginationAutoPageSize=void 0,this.paginateChildRows=void 0,this.suppressPaginationPanel=void 0,this.pivotMode=void 0,this.pivotPanelShow=void 0,this.pivotColumnGroupTotals=void 0,this.pivotRowTotals=void 0,this.pivotSuppressAutoColumn=void 0,this.suppressExpandablePivotGroups=void 0,this.functionsReadOnly=void 0,this.aggFuncs=void 0,this.suppressAggFuncInHeader=void 0,this.suppressAggAtRootLevel=void 0,this.aggregateOnlyChangedColumns=void 0,this.suppressAggFilteredOnly=void 0,this.removePivotHeaderRowWhenSingleValueColumn=void 0,this.animateRows=void 0,this.enableCellChangeFlash=void 0,this.cellFlashDelay=void 0,this.cellFadeDelay=void 0,this.domLayout=void 0,this.ensureDomOrder=void 0,this.enableRtl=void 0,this.suppressColumnVirtualisation=void 0,this.suppressMaxRenderedRowRestriction=void 0,this.suppressRowVirtualisation=void 0,this.rowDragManaged=void 0,this.suppressRowDrag=void 0,this.suppressMoveWhenRowDragging=void 0,this.rowDragEntireRow=void 0,this.rowDragMultiRow=void 0,this.fullWidthCellRenderer=void 0,this.fullWidthCellRendererFramework=void 0,this.fullWidthCellRendererParams=void 0,this.embedFullWidthRows=void 0,this.deprecatedEmbedFullWidthRows=void 0,this.groupDisplayType=void 0,this.groupDefaultExpanded=void 0,this.autoGroupColumnDef=void 0,this.groupMaintainOrder=void 0,this.groupSelectsChildren=void 0,this.groupAggFiltering=void 0,this.groupIncludeFooter=void 0,this.groupIncludeTotalFooter=void 0,this.groupSuppressBlankHeader=void 0,this.groupSelectsFiltered=void 0,this.showOpenedGroup=void 0,this.groupRemoveSingleChildren=void 0,this.groupRemoveLowestSingleChildren=void 0,this.groupHideOpenParents=void 0,this.rowGroupPanelShow=void 0,this.groupRowRenderer=void 0,this.groupRowRendererFramework=void 0,this.groupRowRendererParams=void 0,this.suppressMakeColumnVisibleAfterUnGroup=void 0,this.treeData=void 0,this.groupRowInnerRenderer=void 0,this.groupRowInnerRendererFramework=void 0,this.groupMultiAutoColumn=void 0,this.groupUseEntireRow=void 0,this.groupSuppressAutoColumn=void 0,this.rememberGroupStateWhenNewData=void 0,this.pinnedTopRowData=void 0,this.pinnedBottomRowData=void 0,this.rowModelType=void 0,this.rowData=void 0,this.immutableData=void 0,this.asyncTransactionWaitMillis=void 0,this.suppressModelUpdateAfterUpdateTransaction=void 0,this.deltaRowDataMode=void 0,this.batchUpdateWaitMillis=void 0,this.datasource=void 0,this.cacheOverflowSize=void 0,this.infiniteInitialRowCount=void 0,this.serverSideStoreType=void 0,this.serverSideInfiniteScroll=void 0,this.cacheBlockSize=void 0,this.maxBlocksInCache=void 0,this.maxConcurrentDatasourceRequests=void 0,this.blockLoadDebounceMillis=void 0,this.purgeClosedRowNodes=void 0,this.serverSideDatasource=void 0,this.serverSideSortAllLevels=void 0,this.serverSideFilterAllLevels=void 0,this.serverSideSortOnServer=void 0,this.serverSideFilterOnServer=void 0,this.serverSideSortingAlwaysResets=void 0,this.serverSideFilteringAlwaysResets=void 0,this.suppressEnterpriseResetOnNewColumns=void 0,this.viewportDatasource=void 0,this.viewportRowModelPageSize=void 0,this.viewportRowModelBufferSize=void 0,this.alwaysShowHorizontalScroll=void 0,this.alwaysShowVerticalScroll=void 0,this.debounceVerticalScrollbar=void 0,this.suppressHorizontalScroll=void 0,this.suppressScrollOnNewData=void 0,this.suppressScrollWhenPopupsAreOpen=void 0,this.suppressAnimationFrame=void 0,this.suppressMiddleClickScrolls=void 0,this.suppressPreventDefaultOnMouseWheel=void 0,this.scrollbarWidth=void 0,this.rowSelection=void 0,this.rowMultiSelectWithClick=void 0,this.suppressRowDeselection=void 0,this.suppressRowClickSelection=void 0,this.suppressCellSelection=void 0,this.suppressCellFocus=void 0,this.suppressMultiRangeSelection=void 0,this.enableCellTextSelection=void 0,this.enableRangeSelection=void 0,this.enableRangeHandle=void 0,this.enableFillHandle=void 0,this.fillHandleDirection=void 0,this.suppressClearOnFillReduction=void 0,this.sortingOrder=void 0,this.accentedSort=void 0,this.unSortIcon=void 0,this.suppressMultiSort=void 0,this.alwaysMultiSort=void 0,this.multiSortKey=void 0,this.suppressMaintainUnsortedOrder=void 0,this.icons=void 0,this.rowHeight=void 0,this.rowStyle=void 0,this.rowClass=void 0,this.rowClassRules=void 0,this.suppressRowHoverHighlight=void 0,this.suppressRowTransform=void 0,this.columnHoverHighlight=void 0,this.deltaSort=void 0,this.treeDataDisplayType=void 0,this.angularCompileRows=void 0,this.angularCompileFilters=void 0,this.functionsPassive=void 0,this.enableGroupEdit=void 0,this.getContextMenuItems=void 0,this.getMainMenuItems=void 0,this.postProcessPopup=void 0,this.processCellForClipboard=void 0,this.processHeaderForClipboard=void 0,this.processGroupHeaderForClipboard=void 0,this.processCellFromClipboard=void 0,this.sendToClipboard=void 0,this.processDataFromClipboard=void 0,this.isExternalFilterPresent=void 0,this.doesExternalFilterPass=void 0,this.getChartToolbarItems=void 0,this.createChartContainer=void 0,this.navigateToNextHeader=void 0,this.tabToNextHeader=void 0,this.navigateToNextCell=void 0,this.tabToNextCell=void 0,this.suppressKeyboardEvent=void 0,this.localeTextFunc=void 0,this.getLocaleText=void 0,this.getDocument=void 0,this.paginationNumberFormatter=void 0,this.groupRowAggNodes=void 0,this.getGroupRowAgg=void 0,this.isGroupOpenByDefault=void 0,this.initialGroupOrderComparator=void 0,this.defaultGroupOrderComparator=void 0,this.processSecondaryColDef=void 0,this.processSecondaryColGroupDef=void 0,this.processPivotResultColDef=void 0,this.processPivotResultColGroupDef=void 0,this.getDataPath=void 0,this.defaultGroupSortComparator=void 0,this.getChildCount=void 0,this.getServerSideGroupLevelParams=void 0,this.getServerSideStoreParams=void 0,this.isServerSideGroupOpenByDefault=void 0,this.isApplyServerSideTransaction=void 0,this.isServerSideGroup=void 0,this.getServerSideGroupKey=void 0,this.getBusinessKeyForNode=void 0,this.getRowNodeId=void 0,this.getRowId=void 0,this.resetRowDataOnUpdate=void 0,this.processRowPostCreate=void 0,this.isRowSelectable=void 0,this.isRowMaster=void 0,this.fillOperation=void 0,this.postSort=void 0,this.postSortRows=void 0,this.getRowStyle=void 0,this.getRowClass=void 0,this.getRowHeight=void 0,this.isFullWidthCell=void 0,this.isFullWidthRow=void 0,this.toolPanelVisibleChanged=new n.bkB,this.pasteStart=new n.bkB,this.pasteEnd=new n.bkB,this.columnVisible=new n.bkB,this.columnPinned=new n.bkB,this.columnResized=new n.bkB,this.columnMoved=new n.bkB,this.columnValueChanged=new n.bkB,this.columnPivotModeChanged=new n.bkB,this.columnPivotChanged=new n.bkB,this.columnGroupOpened=new n.bkB,this.newColumnsLoaded=new n.bkB,this.gridColumnsChanged=new n.bkB,this.displayedColumnsChanged=new n.bkB,this.virtualColumnsChanged=new n.bkB,this.columnEverythingChanged=new n.bkB,this.componentStateChanged=new n.bkB,this.cellValueChanged=new n.bkB,this.cellEditRequest=new n.bkB,this.rowValueChanged=new n.bkB,this.cellEditingStarted=new n.bkB,this.cellEditingStopped=new n.bkB,this.rowEditingStarted=new n.bkB,this.rowEditingStopped=new n.bkB,this.filterOpened=new n.bkB,this.filterChanged=new n.bkB,this.filterModified=new n.bkB,this.chartCreated=new n.bkB,this.chartRangeSelectionChanged=new n.bkB,this.chartOptionsChanged=new n.bkB,this.chartDestroyed=new n.bkB,this.cellKeyDown=new n.bkB,this.cellKeyPress=new n.bkB,this.gridReady=new n.bkB,this.firstDataRendered=new n.bkB,this.gridSizeChanged=new n.bkB,this.modelUpdated=new n.bkB,this.virtualRowRemoved=new n.bkB,this.viewportChanged=new n.bkB,this.bodyScroll=new n.bkB,this.bodyScrollEnd=new n.bkB,this.dragStarted=new n.bkB,this.dragStopped=new n.bkB,this.paginationChanged=new n.bkB,this.rowDragEnter=new n.bkB,this.rowDragMove=new n.bkB,this.rowDragLeave=new n.bkB,this.rowDragEnd=new n.bkB,this.columnRowGroupChanged=new n.bkB,this.rowGroupOpened=new n.bkB,this.expandOrCollapseAll=new n.bkB,this.pinnedRowDataChanged=new n.bkB,this.rowDataChanged=new n.bkB,this.rowDataUpdated=new n.bkB,this.asyncTransactionsFlushed=new n.bkB,this.cellClicked=new n.bkB,this.cellDoubleClicked=new n.bkB,this.cellFocused=new n.bkB,this.cellMouseOver=new n.bkB,this.cellMouseOut=new n.bkB,this.cellMouseDown=new n.bkB,this.rowClicked=new n.bkB,this.rowDoubleClicked=new n.bkB,this.rowSelected=new n.bkB,this.selectionChanged=new n.bkB,this.cellContextMenu=new n.bkB,this.rangeSelectionChanged=new n.bkB,this.sortChanged=new n.bkB,this.columnRowGroupChangeRequest=new n.bkB,this.columnPivotChangeRequest=new n.bkB,this.columnValueChangeRequest=new n.bkB,this.columnAggFuncChangeRequest=new n.bkB,this._nativeElement=e.nativeElement}ngAfterViewInit(){this.frameworkComponentWrapper.setViewContainerRef(this.viewContainerRef),this.frameworkComponentWrapper.setComponentFactoryResolver(this.componentFactoryResolver),this.angularFrameworkOverrides.setEmitterUsedCallback(this.isEmitterUsed.bind(this)),this.gridOptions=Td.copyAttributesToGridOptions(this.gridOptions,this,!0),this.gridParams={globalEventListener:this.globalEventListener.bind(this),frameworkOverrides:this.angularFrameworkOverrides,providedBeanInstances:{frameworkComponentWrapper:this.frameworkComponentWrapper},modules:this.modules||[]},this.columns&&this.columns.length>0&&(this.gridOptions.columnDefs=this.columns.map(e=>e.toColDef())),new U3(this._nativeElement,this.gridOptions,this.gridParams),this.gridOptions.api&&(this.api=this.gridOptions.api),this.gridOptions.columnApi&&(this.columnApi=this.gridOptions.columnApi),this._initialised=!0,this._fullyReady.resolveNow(null,e=>e)}ngOnChanges(e){this._initialised&&Td.processOnChange(e,this.gridOptions,this.api,this.columnApi)}ngOnDestroy(){this._initialised&&(this._destroyed=!0,this.api&&this.api.destroy())}isEmitterUsed(e){const i=this[e],o=!!i&&i.observers&&i.observers.length>0,s=`on${e.charAt(0).toUpperCase()}${e.substring(1)}`;return o||!!this.gridOptions&&!!this.gridOptions[s]}globalEventListener(e,i){if(this._destroyed)return;const o=this[e];o&&this.isEmitterUsed(e)&&("gridReady"===e?this._fullyReady.then(s=>{o.emit(i)}):o.emit(i))}}return t.\u0275fac=function(e){return new(e||t)(n.rXU(n.aKT),n.rXU(n.c1b),n.rXU(Yee),n.rXU(Wee),n.rXU(n.OM3))},t.\u0275cmp=n.VBU({type:t,selectors:[["ag-grid-angular"]],contentQueries:function(e,i,o){if(1&e&&n.wni(o,rye,4),2&e){let s;n.mGM(s=n.lsd())&&(i.columns=s)}},inputs:{gridOptions:"gridOptions",modules:"modules",statusBar:"statusBar",sideBar:"sideBar",suppressContextMenu:"suppressContextMenu",preventDefaultOnContextMenu:"preventDefaultOnContextMenu",allowContextMenuWithControlKey:"allowContextMenuWithControlKey",suppressMenuHide:"suppressMenuHide",enableBrowserTooltips:"enableBrowserTooltips",tooltipShowDelay:"tooltipShowDelay",tooltipHideDelay:"tooltipHideDelay",tooltipMouseTrack:"tooltipMouseTrack",popupParent:"popupParent",copyHeadersToClipboard:"copyHeadersToClipboard",copyGroupHeadersToClipboard:"copyGroupHeadersToClipboard",clipboardDelimiter:"clipboardDelimiter",suppressCopyRowsToClipboard:"suppressCopyRowsToClipboard",suppressCopySingleCellRanges:"suppressCopySingleCellRanges",suppressLastEmptyLineOnPaste:"suppressLastEmptyLineOnPaste",suppressClipboardPaste:"suppressClipboardPaste",suppressClipboardApi:"suppressClipboardApi",columnDefs:"columnDefs",defaultColDef:"defaultColDef",defaultColGroupDef:"defaultColGroupDef",columnTypes:"columnTypes",maintainColumnOrder:"maintainColumnOrder",suppressFieldDotNotation:"suppressFieldDotNotation",deltaColumnMode:"deltaColumnMode",applyColumnDefOrder:"applyColumnDefOrder",immutableColumns:"immutableColumns",suppressSetColumnStateEvents:"suppressSetColumnStateEvents",suppressColumnStateEvents:"suppressColumnStateEvents",colWidth:"colWidth",minColWidth:"minColWidth",maxColWidth:"maxColWidth",headerHeight:"headerHeight",groupHeaderHeight:"groupHeaderHeight",floatingFiltersHeight:"floatingFiltersHeight",pivotHeaderHeight:"pivotHeaderHeight",pivotGroupHeaderHeight:"pivotGroupHeaderHeight",allowDragFromColumnsToolPanel:"allowDragFromColumnsToolPanel",suppressMovableColumns:"suppressMovableColumns",suppressColumnMoveAnimation:"suppressColumnMoveAnimation",suppressDragLeaveHidesColumns:"suppressDragLeaveHidesColumns",suppressRowGroupHidesColumns:"suppressRowGroupHidesColumns",colResizeDefault:"colResizeDefault",suppressAutoSize:"suppressAutoSize",autoSizePadding:"autoSizePadding",skipHeaderOnAutoSize:"skipHeaderOnAutoSize",components:"components",frameworkComponents:"frameworkComponents",editType:"editType",singleClickEdit:"singleClickEdit",suppressClickEdit:"suppressClickEdit",readOnlyEdit:"readOnlyEdit",stopEditingWhenCellsLoseFocus:"stopEditingWhenCellsLoseFocus",enterMovesDown:"enterMovesDown",enterMovesDownAfterEdit:"enterMovesDownAfterEdit",undoRedoCellEditing:"undoRedoCellEditing",undoRedoCellEditingLimit:"undoRedoCellEditingLimit",stopEditingWhenGridLosesFocus:"stopEditingWhenGridLosesFocus",defaultCsvExportParams:"defaultCsvExportParams",suppressCsvExport:"suppressCsvExport",defaultExcelExportParams:"defaultExcelExportParams",suppressExcelExport:"suppressExcelExport",excelStyles:"excelStyles",defaultExportParams:"defaultExportParams",quickFilterText:"quickFilterText",cacheQuickFilter:"cacheQuickFilter",excludeChildrenWhenTreeDataFiltering:"excludeChildrenWhenTreeDataFiltering",enableCharts:"enableCharts",chartThemes:"chartThemes",customChartThemes:"customChartThemes",chartThemeOverrides:"chartThemeOverrides",loadingCellRenderer:"loadingCellRenderer",loadingCellRendererFramework:"loadingCellRendererFramework",loadingCellRendererParams:"loadingCellRendererParams",loadingCellRendererSelector:"loadingCellRendererSelector",localeText:"localeText",masterDetail:"masterDetail",keepDetailRows:"keepDetailRows",keepDetailRowsCount:"keepDetailRowsCount",detailCellRenderer:"detailCellRenderer",detailCellRendererFramework:"detailCellRendererFramework",detailCellRendererParams:"detailCellRendererParams",detailRowHeight:"detailRowHeight",detailRowAutoHeight:"detailRowAutoHeight",groupRowsSticky:"groupRowsSticky",context:"context",alignedGrids:"alignedGrids",tabIndex:"tabIndex",rowBuffer:"rowBuffer",valueCache:"valueCache",valueCacheNeverExpires:"valueCacheNeverExpires",enableCellExpressions:"enableCellExpressions",suppressParentsInRowNodes:"suppressParentsInRowNodes",suppressTouch:"suppressTouch",suppressFocusAfterRefresh:"suppressFocusAfterRefresh",suppressAsyncEvents:"suppressAsyncEvents",suppressBrowserResizeObserver:"suppressBrowserResizeObserver",suppressPropertyNamesCheck:"suppressPropertyNamesCheck",suppressChangeDetection:"suppressChangeDetection",debug:"debug",overlayLoadingTemplate:"overlayLoadingTemplate",loadingOverlayComponent:"loadingOverlayComponent",loadingOverlayComponentFramework:"loadingOverlayComponentFramework",loadingOverlayComponentParams:"loadingOverlayComponentParams",suppressLoadingOverlay:"suppressLoadingOverlay",overlayNoRowsTemplate:"overlayNoRowsTemplate",noRowsOverlayComponent:"noRowsOverlayComponent",noRowsOverlayComponentFramework:"noRowsOverlayComponentFramework",noRowsOverlayComponentParams:"noRowsOverlayComponentParams",suppressNoRowsOverlay:"suppressNoRowsOverlay",pagination:"pagination",paginationPageSize:"paginationPageSize",paginationAutoPageSize:"paginationAutoPageSize",paginateChildRows:"paginateChildRows",suppressPaginationPanel:"suppressPaginationPanel",pivotMode:"pivotMode",pivotPanelShow:"pivotPanelShow",pivotColumnGroupTotals:"pivotColumnGroupTotals",pivotRowTotals:"pivotRowTotals",pivotSuppressAutoColumn:"pivotSuppressAutoColumn",suppressExpandablePivotGroups:"suppressExpandablePivotGroups",functionsReadOnly:"functionsReadOnly",aggFuncs:"aggFuncs",suppressAggFuncInHeader:"suppressAggFuncInHeader",suppressAggAtRootLevel:"suppressAggAtRootLevel",aggregateOnlyChangedColumns:"aggregateOnlyChangedColumns",suppressAggFilteredOnly:"suppressAggFilteredOnly",removePivotHeaderRowWhenSingleValueColumn:"removePivotHeaderRowWhenSingleValueColumn",animateRows:"animateRows",enableCellChangeFlash:"enableCellChangeFlash",cellFlashDelay:"cellFlashDelay",cellFadeDelay:"cellFadeDelay",domLayout:"domLayout",ensureDomOrder:"ensureDomOrder",enableRtl:"enableRtl",suppressColumnVirtualisation:"suppressColumnVirtualisation",suppressMaxRenderedRowRestriction:"suppressMaxRenderedRowRestriction",suppressRowVirtualisation:"suppressRowVirtualisation",rowDragManaged:"rowDragManaged",suppressRowDrag:"suppressRowDrag",suppressMoveWhenRowDragging:"suppressMoveWhenRowDragging",rowDragEntireRow:"rowDragEntireRow",rowDragMultiRow:"rowDragMultiRow",fullWidthCellRenderer:"fullWidthCellRenderer",fullWidthCellRendererFramework:"fullWidthCellRendererFramework",fullWidthCellRendererParams:"fullWidthCellRendererParams",embedFullWidthRows:"embedFullWidthRows",deprecatedEmbedFullWidthRows:"deprecatedEmbedFullWidthRows",groupDisplayType:"groupDisplayType",groupDefaultExpanded:"groupDefaultExpanded",autoGroupColumnDef:"autoGroupColumnDef",groupMaintainOrder:"groupMaintainOrder",groupSelectsChildren:"groupSelectsChildren",groupAggFiltering:"groupAggFiltering",groupIncludeFooter:"groupIncludeFooter",groupIncludeTotalFooter:"groupIncludeTotalFooter",groupSuppressBlankHeader:"groupSuppressBlankHeader",groupSelectsFiltered:"groupSelectsFiltered",showOpenedGroup:"showOpenedGroup",groupRemoveSingleChildren:"groupRemoveSingleChildren",groupRemoveLowestSingleChildren:"groupRemoveLowestSingleChildren",groupHideOpenParents:"groupHideOpenParents",rowGroupPanelShow:"rowGroupPanelShow",groupRowRenderer:"groupRowRenderer",groupRowRendererFramework:"groupRowRendererFramework",groupRowRendererParams:"groupRowRendererParams",suppressMakeColumnVisibleAfterUnGroup:"suppressMakeColumnVisibleAfterUnGroup",treeData:"treeData",groupRowInnerRenderer:"groupRowInnerRenderer",groupRowInnerRendererFramework:"groupRowInnerRendererFramework",groupMultiAutoColumn:"groupMultiAutoColumn",groupUseEntireRow:"groupUseEntireRow",groupSuppressAutoColumn:"groupSuppressAutoColumn",rememberGroupStateWhenNewData:"rememberGroupStateWhenNewData",pinnedTopRowData:"pinnedTopRowData",pinnedBottomRowData:"pinnedBottomRowData",rowModelType:"rowModelType",rowData:"rowData",immutableData:"immutableData",asyncTransactionWaitMillis:"asyncTransactionWaitMillis",suppressModelUpdateAfterUpdateTransaction:"suppressModelUpdateAfterUpdateTransaction",deltaRowDataMode:"deltaRowDataMode",batchUpdateWaitMillis:"batchUpdateWaitMillis",datasource:"datasource",cacheOverflowSize:"cacheOverflowSize",infiniteInitialRowCount:"infiniteInitialRowCount",serverSideStoreType:"serverSideStoreType",serverSideInfiniteScroll:"serverSideInfiniteScroll",cacheBlockSize:"cacheBlockSize",maxBlocksInCache:"maxBlocksInCache",maxConcurrentDatasourceRequests:"maxConcurrentDatasourceRequests",blockLoadDebounceMillis:"blockLoadDebounceMillis",purgeClosedRowNodes:"purgeClosedRowNodes",serverSideDatasource:"serverSideDatasource",serverSideSortAllLevels:"serverSideSortAllLevels",serverSideFilterAllLevels:"serverSideFilterAllLevels",serverSideSortOnServer:"serverSideSortOnServer",serverSideFilterOnServer:"serverSideFilterOnServer",serverSideSortingAlwaysResets:"serverSideSortingAlwaysResets",serverSideFilteringAlwaysResets:"serverSideFilteringAlwaysResets",suppressEnterpriseResetOnNewColumns:"suppressEnterpriseResetOnNewColumns",viewportDatasource:"viewportDatasource",viewportRowModelPageSize:"viewportRowModelPageSize",viewportRowModelBufferSize:"viewportRowModelBufferSize",alwaysShowHorizontalScroll:"alwaysShowHorizontalScroll",alwaysShowVerticalScroll:"alwaysShowVerticalScroll",debounceVerticalScrollbar:"debounceVerticalScrollbar",suppressHorizontalScroll:"suppressHorizontalScroll",suppressScrollOnNewData:"suppressScrollOnNewData",suppressScrollWhenPopupsAreOpen:"suppressScrollWhenPopupsAreOpen",suppressAnimationFrame:"suppressAnimationFrame",suppressMiddleClickScrolls:"suppressMiddleClickScrolls",suppressPreventDefaultOnMouseWheel:"suppressPreventDefaultOnMouseWheel",scrollbarWidth:"scrollbarWidth",rowSelection:"rowSelection",rowMultiSelectWithClick:"rowMultiSelectWithClick",suppressRowDeselection:"suppressRowDeselection",suppressRowClickSelection:"suppressRowClickSelection",suppressCellSelection:"suppressCellSelection",suppressCellFocus:"suppressCellFocus",suppressMultiRangeSelection:"suppressMultiRangeSelection",enableCellTextSelection:"enableCellTextSelection",enableRangeSelection:"enableRangeSelection",enableRangeHandle:"enableRangeHandle",enableFillHandle:"enableFillHandle",fillHandleDirection:"fillHandleDirection",suppressClearOnFillReduction:"suppressClearOnFillReduction",sortingOrder:"sortingOrder",accentedSort:"accentedSort",unSortIcon:"unSortIcon",suppressMultiSort:"suppressMultiSort",alwaysMultiSort:"alwaysMultiSort",multiSortKey:"multiSortKey",suppressMaintainUnsortedOrder:"suppressMaintainUnsortedOrder",icons:"icons",rowHeight:"rowHeight",rowStyle:"rowStyle",rowClass:"rowClass",rowClassRules:"rowClassRules",suppressRowHoverHighlight:"suppressRowHoverHighlight",suppressRowTransform:"suppressRowTransform",columnHoverHighlight:"columnHoverHighlight",deltaSort:"deltaSort",treeDataDisplayType:"treeDataDisplayType",angularCompileRows:"angularCompileRows",angularCompileFilters:"angularCompileFilters",functionsPassive:"functionsPassive",enableGroupEdit:"enableGroupEdit",getContextMenuItems:"getContextMenuItems",getMainMenuItems:"getMainMenuItems",postProcessPopup:"postProcessPopup",processCellForClipboard:"processCellForClipboard",processHeaderForClipboard:"processHeaderForClipboard",processGroupHeaderForClipboard:"processGroupHeaderForClipboard",processCellFromClipboard:"processCellFromClipboard",sendToClipboard:"sendToClipboard",processDataFromClipboard:"processDataFromClipboard",isExternalFilterPresent:"isExternalFilterPresent",doesExternalFilterPass:"doesExternalFilterPass",getChartToolbarItems:"getChartToolbarItems",createChartContainer:"createChartContainer",navigateToNextHeader:"navigateToNextHeader",tabToNextHeader:"tabToNextHeader",navigateToNextCell:"navigateToNextCell",tabToNextCell:"tabToNextCell",suppressKeyboardEvent:"suppressKeyboardEvent",localeTextFunc:"localeTextFunc",getLocaleText:"getLocaleText",getDocument:"getDocument",paginationNumberFormatter:"paginationNumberFormatter",groupRowAggNodes:"groupRowAggNodes",getGroupRowAgg:"getGroupRowAgg",isGroupOpenByDefault:"isGroupOpenByDefault",initialGroupOrderComparator:"initialGroupOrderComparator",defaultGroupOrderComparator:"defaultGroupOrderComparator",processSecondaryColDef:"processSecondaryColDef",processSecondaryColGroupDef:"processSecondaryColGroupDef",processPivotResultColDef:"processPivotResultColDef",processPivotResultColGroupDef:"processPivotResultColGroupDef",getDataPath:"getDataPath",defaultGroupSortComparator:"defaultGroupSortComparator",getChildCount:"getChildCount",getServerSideGroupLevelParams:"getServerSideGroupLevelParams",getServerSideStoreParams:"getServerSideStoreParams",isServerSideGroupOpenByDefault:"isServerSideGroupOpenByDefault",isApplyServerSideTransaction:"isApplyServerSideTransaction",isServerSideGroup:"isServerSideGroup",getServerSideGroupKey:"getServerSideGroupKey",getBusinessKeyForNode:"getBusinessKeyForNode",getRowNodeId:"getRowNodeId",getRowId:"getRowId",resetRowDataOnUpdate:"resetRowDataOnUpdate",processRowPostCreate:"processRowPostCreate",isRowSelectable:"isRowSelectable",isRowMaster:"isRowMaster",fillOperation:"fillOperation",postSort:"postSort",postSortRows:"postSortRows",getRowStyle:"getRowStyle",getRowClass:"getRowClass",getRowHeight:"getRowHeight",isFullWidthCell:"isFullWidthCell",isFullWidthRow:"isFullWidthRow"},outputs:{toolPanelVisibleChanged:"toolPanelVisibleChanged",pasteStart:"pasteStart",pasteEnd:"pasteEnd",columnVisible:"columnVisible",columnPinned:"columnPinned",columnResized:"columnResized",columnMoved:"columnMoved",columnValueChanged:"columnValueChanged",columnPivotModeChanged:"columnPivotModeChanged",columnPivotChanged:"columnPivotChanged",columnGroupOpened:"columnGroupOpened",newColumnsLoaded:"newColumnsLoaded",gridColumnsChanged:"gridColumnsChanged",displayedColumnsChanged:"displayedColumnsChanged",virtualColumnsChanged:"virtualColumnsChanged",columnEverythingChanged:"columnEverythingChanged",componentStateChanged:"componentStateChanged",cellValueChanged:"cellValueChanged",cellEditRequest:"cellEditRequest",rowValueChanged:"rowValueChanged",cellEditingStarted:"cellEditingStarted",cellEditingStopped:"cellEditingStopped",rowEditingStarted:"rowEditingStarted",rowEditingStopped:"rowEditingStopped",filterOpened:"filterOpened",filterChanged:"filterChanged",filterModified:"filterModified",chartCreated:"chartCreated",chartRangeSelectionChanged:"chartRangeSelectionChanged",chartOptionsChanged:"chartOptionsChanged",chartDestroyed:"chartDestroyed",cellKeyDown:"cellKeyDown",cellKeyPress:"cellKeyPress",gridReady:"gridReady",firstDataRendered:"firstDataRendered",gridSizeChanged:"gridSizeChanged",modelUpdated:"modelUpdated",virtualRowRemoved:"virtualRowRemoved",viewportChanged:"viewportChanged",bodyScroll:"bodyScroll",bodyScrollEnd:"bodyScrollEnd",dragStarted:"dragStarted",dragStopped:"dragStopped",paginationChanged:"paginationChanged",rowDragEnter:"rowDragEnter",rowDragMove:"rowDragMove",rowDragLeave:"rowDragLeave",rowDragEnd:"rowDragEnd",columnRowGroupChanged:"columnRowGroupChanged",rowGroupOpened:"rowGroupOpened",expandOrCollapseAll:"expandOrCollapseAll",pinnedRowDataChanged:"pinnedRowDataChanged",rowDataChanged:"rowDataChanged",rowDataUpdated:"rowDataUpdated",asyncTransactionsFlushed:"asyncTransactionsFlushed",cellClicked:"cellClicked",cellDoubleClicked:"cellDoubleClicked",cellFocused:"cellFocused",cellMouseOver:"cellMouseOver",cellMouseOut:"cellMouseOut",cellMouseDown:"cellMouseDown",rowClicked:"rowClicked",rowDoubleClicked:"rowDoubleClicked",rowSelected:"rowSelected",selectionChanged:"selectionChanged",cellContextMenu:"cellContextMenu",rangeSelectionChanged:"rangeSelectionChanged",sortChanged:"sortChanged",columnRowGroupChangeRequest:"columnRowGroupChangeRequest",columnPivotChangeRequest:"columnPivotChangeRequest",columnValueChangeRequest:"columnValueChangeRequest",columnAggFuncChangeRequest:"columnAggFuncChangeRequest"},standalone:!1,features:[n.Jv_([Yee,Wee]),n.OA$],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),L$=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.$C({type:t}),t.\u0275inj=n.G2t({imports:[[]]}),t})();var sye=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var o,a,i=e.call(t),s=[];try{for(;(void 0===r||r-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return s},lye=function(){function t(r,e,i,o,s,a,l,c){this.nextId=0,this.allNodesMap={},this.rootNode=r,this.gridOptionsWrapper=e,this.eventService=i,this.columnModel=o,this.gridApi=s,this.columnApi=a,this.beans=c,this.selectionService=l,this.rootNode.group=!0,this.rootNode.level=-1,this.rootNode.id=t.ROOT_NODE_ID,this.rootNode.allLeafChildren=[],this.rootNode.childrenAfterGroup=[],this.rootNode.childrenAfterSort=[],this.rootNode.childrenAfterAggFilter=[],this.rootNode.childrenAfterFilter=[],this.postConstruct()}return t.prototype.postConstruct=function(){this.suppressParentsInRowNodes=this.gridOptionsWrapper.isSuppressParentsInRowNodes(),this.isRowMasterFunc=this.gridOptionsWrapper.getIsRowMasterFunc(),this.doingTreeData=this.gridOptionsWrapper.isTreeData(),this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail()},t.prototype.getCopyOfNodesMap=function(){return ln.cloneObject(this.allNodesMap)},t.prototype.getRowNode=function(r){return this.allNodesMap[r]},t.prototype.setRowData=function(r){var e=this;if("string"!=typeof r){var i=this.rootNode,o=this.rootNode.sibling;i.childrenAfterFilter=null,i.childrenAfterGroup=null,i.childrenAfterAggFilter=null,i.childrenAfterSort=null,i.childrenMapped=null,i.updateHasChildren(),this.nextId=0,this.allNodesMap={},r?i.allLeafChildren=r.map(function(s){return e.createNode(s,e.rootNode,t.TOP_LEVEL)}):(i.allLeafChildren=[],i.childrenAfterGroup=[]),o&&(o.childrenAfterFilter=i.childrenAfterFilter,o.childrenAfterGroup=i.childrenAfterGroup,o.childrenAfterAggFilter=i.childrenAfterAggFilter,o.childrenAfterSort=i.childrenAfterSort,o.childrenMapped=i.childrenMapped,o.allLeafChildren=i.allLeafChildren)}else console.warn("AG Grid: rowData must be an array, however you passed in a string. If you are loading JSON, make sure you convert the JSON string to JavaScript objects first")},t.prototype.updateRowData=function(r,e){var i={remove:[],update:[],add:[]},o=[];return this.executeRemove(r,i,o),this.executeUpdate(r,i,o),this.executeAdd(r,i),this.updateSelection(o),e&&ln.sortRowNodesByOrder(this.rootNode.allLeafChildren,e),i},t.prototype.updateSelection=function(r){var e=r.length>0;e&&r.forEach(function(o){o.setSelected(!1,!1,!0)}),this.selectionService.updateGroupsFromChildrenSelections(),e&&this.eventService.dispatchEvent({type:Et.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi})},t.prototype.executeAdd=function(r,e){var i=this,o=r.add,s=r.addIndex;if(!ln.missingOrEmpty(o)){var c,d,a=o.map(function(w){return i.createNode(w,i.rootNode,t.TOP_LEVEL)});if("number"==typeof s&&s>=0){var f=this.rootNode.allLeafChildren,v=0===s?0:f.reduce(function(w,x,I){var M,F=x.rowIndex,re=null===(M=f[w])||void 0===M?void 0:M.rowIndex;return null!=F&&null!=re&&F<s&&F>re?I:w},0)+1;c=f.slice(0,v),d=f.slice(v,f.length)}else c=this.rootNode.allLeafChildren,d=[];this.rootNode.allLeafChildren=function(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(sye(arguments[r]));return t}(c,a,d),this.rootNode.sibling&&(this.rootNode.sibling.allLeafChildren=this.rootNode.allLeafChildren),e.add=a}},t.prototype.executeRemove=function(r,e,i){var o=this,s=r.remove;if(!ln.missingOrEmpty(s)){var a={};s.forEach(function(l){var c=o.lookupRowNode(l);c&&(c.isSelected()&&i.push(c),c.clearRowTopAndRowIndex(),a[c.id]=!0,delete o.allNodesMap[c.id],e.remove.push(c))}),this.rootNode.allLeafChildren=this.rootNode.allLeafChildren.filter(function(l){return!a[l.id]}),this.rootNode.sibling&&(this.rootNode.sibling.allLeafChildren=this.rootNode.allLeafChildren)}},t.prototype.executeUpdate=function(r,e,i){var o=this,s=r.update;ln.missingOrEmpty(s)||s.forEach(function(a){var l=o.lookupRowNode(a);l&&(l.updateData(a),!l.selectable&&l.isSelected()&&i.push(l),o.setMasterForRow(l,a,t.TOP_LEVEL,!1),e.update.push(l))})},t.prototype.lookupRowNode=function(r){var i,e=this.gridOptionsWrapper.getRowIdFunc();if(e){var o=e({data:r,level:0});if(!(i=this.allNodesMap[o]))return console.error("AG Grid: could not find row id="+o+", data item was not found for this id"),null}else if(!(i=this.rootNode.allLeafChildren.find(function(s){return s.data===r})))return console.error("AG Grid: could not find data item as object was not found",r),console.error("Consider using getRowId to help the Grid find matching row data"),null;return i||null},t.prototype.createNode=function(r,e,i){var o=new Ta(this.beans);return o.group=!1,this.setMasterForRow(o,r,i,!0),e&&!this.suppressParentsInRowNodes&&(o.parent=e),o.level=i,o.setDataAndId(r,this.nextId.toString()),this.allNodesMap[o.id]&&console.warn("AG Grid: duplicate node id '"+o.id+"' detected from getRowId callback, this could cause issues in your grid."),this.allNodesMap[o.id]=o,this.nextId++,o},t.prototype.setMasterForRow=function(r,e,i,o){if(this.doingTreeData)r.setMaster(!1),o&&(r.expanded=!1);else if(r.setMaster(!!this.doingMasterDetail&&(!this.isRowMasterFunc||this.isRowMasterFunc(e))),o){var s=this.columnModel.getRowGroupColumns();r.expanded=!!r.master&&this.isExpanded(i+(s?s.length:0))}},t.prototype.isExpanded=function(r){var e=this.gridOptionsWrapper.getGroupDefaultExpanded();return-1===e||r<e},t.TOP_LEVEL=0,t.ROOT_NODE_ID="ROOT_NODE_ID",t}(),cye=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Oh=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},kb=function(t){return t[t.Normal=0]="Normal",t[t.AfterFilter=1]="AfterFilter",t[t.AfterFilterAndSort=2]="AfterFilterAndSort",t[t.PivotNodes=3]="PivotNodes",t}(kb||{}),uye=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.rowsToDisplay=[],e}return cye(r,t),r.prototype.init=function(){var e=this.refreshModel.bind(this,{step:Nl.EVERYTHING}),i=!this.gridOptionsWrapper.isSuppressAnimationFrame(),o=this.refreshModel.bind(this,{step:Nl.EVERYTHING,afterColumnsChanged:!0,keepRenderedRows:!0,animate:i});this.addManagedListener(this.eventService,Et.EVENT_NEW_COLUMNS_LOADED,o),this.addManagedListener(this.eventService,Et.EVENT_COLUMN_ROW_GROUP_CHANGED,e),this.addManagedListener(this.eventService,Et.EVENT_COLUMN_VALUE_CHANGED,this.onValueChanged.bind(this)),this.addManagedListener(this.eventService,Et.EVENT_COLUMN_PIVOT_CHANGED,this.refreshModel.bind(this,{step:Nl.PIVOT})),this.addManagedListener(this.eventService,Et.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,Et.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,Et.EVENT_COLUMN_PIVOT_MODE_CHANGED,e);var s=this.refreshModel.bind(this,{step:Nl.MAP,keepRenderedRows:!0,animate:i});this.addManagedListener(this.gridOptionsWrapper,So.PROP_GROUP_REMOVE_SINGLE_CHILDREN,s),this.addManagedListener(this.gridOptionsWrapper,So.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,s),this.rootNode=new Ta(this.beans),this.nodeManager=new lye(this.rootNode,this.gridOptionsWrapper,this.eventService,this.columnModel,this.gridApi,this.columnApi,this.selectionService,this.beans)},r.prototype.start=function(){var e=this.gridOptionsWrapper.getRowData();e&&this.setRowData(e)},r.prototype.ensureRowHeightsValid=function(e,i,o,s){var a,l=!1;do{a=!1;for(var c=this.getRowIndexAtPixel(e),d=this.getRowIndexAtPixel(i),f=Math.max(c,o),v=Math.min(d,s),w=f;w<=v;w++){var x=this.getRow(w);if(x.rowHeightEstimated){var I=this.gridOptionsWrapper.getRowHeightForNode(x);x.setRowHeight(I.height),a=!0,l=!0}}a&&this.setRowTopAndRowIndex()}while(a);return l},r.prototype.setRowTopAndRowIndex=function(){for(var e=this.gridOptionsWrapper.getDefaultRowHeight(),i=0,o=new Set,s=this.gridOptionsWrapper.getDomLayout()===Nn.DOM_LAYOUT_NORMAL,a=0;a<this.rowsToDisplay.length;a++){var l=this.rowsToDisplay[a];if(null!=l.id&&o.add(l.id),null==l.rowHeight){var c=this.gridOptionsWrapper.getRowHeightForNode(l,s,e);l.setRowHeight(c.height,c.estimated)}l.setRowTop(i),l.setRowIndex(a),i+=l.rowHeight}return o},r.prototype.clearRowTopAndRowIndex=function(e,i){var o=e.isActive(),s=function(l){l&&null!=l.id&&!i.has(l.id)&&l.clearRowTopAndRowIndex()},a=function(l){s(l),s(l.detailNode),s(l.sibling),l.hasChildren()&&l.childrenAfterGroup&&(o&&-1!=l.level&&!l.expanded||l.childrenAfterGroup.forEach(a))};a(this.rootNode)},r.prototype.ensureRowsAtPixel=function(e,i,o){var s=this;void 0===o&&(o=0);var a=this.getRowIndexAtPixel(i),l=this.getRow(a),c=!this.gridOptionsWrapper.isSuppressAnimationFrame();return l!==e[0]&&(e.forEach(function(d){ln.removeFromArray(s.rootNode.allLeafChildren,d)}),e.forEach(function(d,f){ln.insertIntoArray(s.rootNode.allLeafChildren,d,Math.max(a+o,0)+f)}),this.refreshModel({step:Nl.EVERYTHING,keepRenderedRows:!0,keepEditingRows:!0,animate:c}),!0)},r.prototype.highlightRowAtPixel=function(e,i){var o=null!=i?this.getRowIndexAtPixel(i):null,s=null!=o?this.getRow(o):null;if(s&&e&&s!==e&&null!=i){var a=this.getHighlightPosition(i,s);this.lastHighlightedRow&&this.lastHighlightedRow!==s&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null),s.setHighlighted(a),this.lastHighlightedRow=s}else this.lastHighlightedRow&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null)},r.prototype.getHighlightPosition=function(e,i){if(!i){var o=this.getRowIndexAtPixel(e);if(!(i=this.getRow(o||0)))return V0.Below}return e-i.rowTop<i.rowHeight/2?V0.Above:V0.Below},r.prototype.getLastHighlightedRowNode=function(){return this.lastHighlightedRow},r.prototype.isLastRowIndexKnown=function(){return!0},r.prototype.getRowCount=function(){return this.rowsToDisplay?this.rowsToDisplay.length:0},r.prototype.getTopLevelRowCount=function(){if(this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode)return 1;var i=this.rootNode.childrenAfterAggFilter;return i?i.length:0},r.prototype.getTopLevelRowDisplayedIndex=function(e){if(this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode)return e;var o=this.rootNode.childrenAfterSort[e];if(this.gridOptionsWrapper.isGroupHideOpenParents())for(;o.expanded&&o.childrenAfterSort&&o.childrenAfterSort.length>0;)o=o.childrenAfterSort[0];return o.rowIndex},r.prototype.getRowBounds=function(e){if(ln.missing(this.rowsToDisplay))return null;var i=this.rowsToDisplay[e];return i?{rowTop:i.rowTop,rowHeight:i.rowHeight}:null},r.prototype.onRowGroupOpened=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:Nl.MAP,keepRenderedRows:!0,animate:e})},r.prototype.onFilterChanged=function(e){if(!e.afterDataChange){var i=this.gridOptionsWrapper.isAnimateRows(),o=0===e.columns.length||e.columns.some(function(a){return a.isPrimary()});this.refreshModel({step:o?Nl.FILTER:Nl.FILTER_AGGREGATES,keepRenderedRows:!0,animate:i})}},r.prototype.onSortChanged=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:Nl.SORT,keepRenderedRows:!0,animate:e,keepEditingRows:!0})},r.prototype.getType=function(){return Nn.ROW_MODEL_TYPE_CLIENT_SIDE},r.prototype.onValueChanged=function(){this.columnModel.isPivotActive()?this.refreshModel({step:Nl.PIVOT}):this.refreshModel({step:Nl.AGGREGATE})},r.prototype.createChangePath=function(e){var i=ln.missingOrEmpty(e),o=new SS(!1,this.rootNode);return(i||this.gridOptionsWrapper.isTreeData())&&o.setInactive(),o},r.prototype.isSuppressModelUpdateAfterUpdateTransaction=function(e){if(!this.gridOptionsWrapper.isSuppressModelUpdateAfterUpdateTransaction()||null==e.rowNodeTransactions)return!1;var i=e.rowNodeTransactions.filter(function(s){return null!=s.add&&s.add.length>0||null!=s.remove&&s.remove.length>0});return null==i||0==i.length},r.prototype.refreshModel=function(e){if(!this.isSuppressModelUpdateAfterUpdateTransaction(e)){var i=this.createChangePath(e.rowNodeTransactions);switch(e.step){case Nl.EVERYTHING:this.doRowGrouping(e.groupState,e.rowNodeTransactions,e.rowNodeOrder,i,!!e.afterColumnsChanged);case Nl.FILTER:this.doFilter(i);case Nl.PIVOT:this.doPivot(i);case Nl.AGGREGATE:this.doAggregate(i);case Nl.FILTER_AGGREGATES:this.doFilterAggregates(i);case Nl.SORT:this.doSort(e.rowNodeTransactions,i);case Nl.MAP:this.doRowsToDisplay()}var o=this.setRowTopAndRowIndex();this.clearRowTopAndRowIndex(i,o),this.eventService.dispatchEvent({type:Et.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,animate:e.animate,keepRenderedRows:e.keepRenderedRows,newData:e.newData,newPage:!1})}},r.prototype.isEmpty=function(){var e=ln.missing(this.rootNode.allLeafChildren)||0===this.rootNode.allLeafChildren.length;return ln.missing(this.rootNode)||e||!this.columnModel.isReady()},r.prototype.isRowsToRender=function(){return ln.exists(this.rowsToDisplay)&&this.rowsToDisplay.length>0},r.prototype.getNodesInRangeForSelection=function(e,i){var a,o=!i,s=!1,l=[],c=this.gridOptionsWrapper.isGroupSelectsChildren();return this.forEachNodeAfterFilterAndSort(function(d){var f=o&&!s;if(o||(d===i||d===e)&&(o=!0),!d.group||!c){var w=o&&!s,x=d.isParentOfNode(a);(w||x)&&l.push(d)}f&&(d===i||d===e)&&(s=!0,a=d===i?i:e)}),l},r.prototype.setDatasource=function(e){console.error("AG Grid: should never call setDatasource on clientSideRowController")},r.prototype.getTopLevelNodes=function(){return this.rootNode?this.rootNode.childrenAfterGroup:null},r.prototype.getRootNode=function(){return this.rootNode},r.prototype.getRow=function(e){return this.rowsToDisplay[e]},r.prototype.isRowPresent=function(e){return this.rowsToDisplay.indexOf(e)>=0},r.prototype.getRowIndexAtPixel=function(e){if(this.isEmpty()||0===this.rowsToDisplay.length)return-1;var i=0,o=this.rowsToDisplay.length-1;if(e<=0)return 0;if(ln.last(this.rowsToDisplay).rowTop<=e)return this.rowsToDisplay.length-1;for(;;){var a=Math.floor((i+o)/2),l=this.rowsToDisplay[a];if(this.isRowInPixel(l,e))return a;l.rowTop<e?i=a+1:l.rowTop>e&&(o=a-1)}},r.prototype.isRowInPixel=function(e,i){return e.rowTop<=i&&e.rowTop+e.rowHeight>i},r.prototype.forEachLeafNode=function(e){this.rootNode.allLeafChildren&&this.rootNode.allLeafChildren.forEach(function(i,o){return e(i,o)})},r.prototype.forEachNode=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterGroup,e,kb.Normal,0)},r.prototype.forEachNodeAfterFilter=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterAggFilter,e,kb.AfterFilter,0)},r.prototype.forEachNodeAfterFilterAndSort=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterSort,e,kb.AfterFilterAndSort,0)},r.prototype.forEachPivotNode=function(e){this.recursivelyWalkNodesAndCallback([this.rootNode],e,kb.PivotNodes,0)},r.prototype.recursivelyWalkNodesAndCallback=function(e,i,o,s){if(!e)return s;for(var a=0;a<e.length;a++){var l=e[a];if(i(l,s++),l.hasChildren()){var c=null;switch(o){case kb.Normal:c=l.childrenAfterGroup;break;case kb.AfterFilter:c=l.childrenAfterAggFilter;break;case kb.AfterFilterAndSort:c=l.childrenAfterSort;break;case kb.PivotNodes:c=l.leafGroup?null:l.childrenAfterSort}c&&(s=this.recursivelyWalkNodesAndCallback(c,i,o,s))}}return s},r.prototype.doAggregate=function(e){this.aggregationStage&&this.aggregationStage.execute({rowNode:this.rootNode,changedPath:e})},r.prototype.doFilterAggregates=function(e){this.filterAggregatesStage?this.filterAggregatesStage.execute({rowNode:this.rootNode,changedPath:e}):this.rootNode.childrenAfterAggFilter=this.rootNode.childrenAfterFilter},r.prototype.expandOrCollapseAll=function(e){var i=this.gridOptionsWrapper.isTreeData(),o=this.columnModel.isPivotActive(),s=function(c){c&&c.forEach(function(d){var f=function(){d.expanded=e,s(d.childrenAfterGroup)};i?ln.exists(d.childrenAfterGroup)&&f():o?!d.leafGroup&&f():d.group&&f()})};this.rootNode&&s(this.rootNode.childrenAfterGroup),this.refreshModel({step:Nl.MAP}),this.eventService.dispatchEvent({api:this.gridApi,columnApi:this.columnApi,type:Et.EVENT_EXPAND_COLLAPSE_ALL,source:e?"expandAll":"collapseAll"})},r.prototype.doSort=function(e,i){this.sortStage.execute({rowNode:this.rootNode,rowNodeTransactions:e,changedPath:i})},r.prototype.doRowGrouping=function(e,i,o,s,a){this.groupStage?(i?this.groupStage.execute({rowNode:this.rootNode,rowNodeTransactions:i,rowNodeOrder:o,changedPath:s}):(this.groupStage.execute({rowNode:this.rootNode,changedPath:s,afterColumnsChanged:a}),this.restoreGroupState(e)),this.gridOptionsWrapper.isGroupSelectsChildren()&&this.selectionService.updateGroupsFromChildrenSelections(s)):(this.rootNode.childrenAfterGroup=this.rootNode.allLeafChildren,this.rootNode.sibling&&(this.rootNode.sibling.childrenAfterGroup=this.rootNode.childrenAfterGroup),this.rootNode.updateHasChildren())},r.prototype.restoreGroupState=function(e){e&&ln.traverseNodesWithKey(this.rootNode.childrenAfterGroup,function(i,o){"boolean"==typeof e[o]&&(i.expanded=e[o])})},r.prototype.doFilter=function(e){this.filterStage.execute({rowNode:this.rootNode,changedPath:e})},r.prototype.doPivot=function(e){this.pivotStage&&this.pivotStage.execute({rowNode:this.rootNode,changedPath:e})},r.prototype.getGroupState=function(){if(!this.rootNode.childrenAfterGroup||!this.gridOptionsWrapper.isRememberGroupStateWhenNewData())return null;var e={};return ln.traverseNodesWithKey(this.rootNode.childrenAfterGroup,function(i,o){return e[o]=i.expanded}),e},r.prototype.getCopyOfNodesMap=function(){return this.nodeManager.getCopyOfNodesMap()},r.prototype.getRowNode=function(e){if("string"==typeof e&&0==e.indexOf(Ta.ID_PREFIX_ROW_GROUP)){var o=void 0;return this.forEachNode(function(s){s.id===e&&(o=s)}),o}return this.nodeManager.getRowNode(e)},r.prototype.setRowData=function(e){var i=this.getGroupState();this.nodeManager.setRowData(e),this.selectionService.reset(),this.filterManager.onNewRowsLoaded("rowDataUpdated"),this.eventService.dispatchEvent({type:Et.EVENT_ROW_DATA_UPDATED,api:this.gridApi,columnApi:this.columnApi}),this.refreshModel({step:Nl.EVERYTHING,groupState:i,newData:!0})},r.prototype.batchUpdateRowData=function(e,i){var o=this;if(null==this.applyAsyncTransactionsTimeout){this.rowDataTransactionBatch=[];var s=this.gridOptionsWrapper.getAsyncTransactionWaitMillis();this.applyAsyncTransactionsTimeout=window.setTimeout(function(){o.executeBatchUpdateRowData()},s)}this.rowDataTransactionBatch.push({rowDataTransaction:e,callback:i})},r.prototype.flushAsyncTransactions=function(){null!=this.applyAsyncTransactionsTimeout&&(clearTimeout(this.applyAsyncTransactionsTimeout),this.executeBatchUpdateRowData())},r.prototype.executeBatchUpdateRowData=function(){var e=this;this.valueCache.onDataChanged();var i=[],o=[],s=!1;if(this.rowDataTransactionBatch&&this.rowDataTransactionBatch.forEach(function(l){var c=e.nodeManager.updateRowData(l.rowDataTransaction,void 0);o.push(c),l.callback&&i.push(l.callback.bind(null,c)),"number"==typeof l.rowDataTransaction.addIndex&&(s=!0)}),this.commonUpdateRowData(o,void 0,s),i.length>0&&window.setTimeout(function(){i.forEach(function(l){return l()})},0),o.length>0){var a={api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),type:Et.EVENT_ASYNC_TRANSACTIONS_FLUSHED,results:o};this.eventService.dispatchEvent(a)}this.rowDataTransactionBatch=null,this.applyAsyncTransactionsTimeout=void 0},r.prototype.updateRowData=function(e,i){this.valueCache.onDataChanged();var o=this.nodeManager.updateRowData(e,i);return this.commonUpdateRowData([o],i,"number"==typeof e.addIndex),o},r.prototype.createRowNodeOrder=function(){if(!this.gridOptionsWrapper.isSuppressMaintainUnsortedOrder()){var i={};if(this.rootNode&&this.rootNode.allLeafChildren)for(var o=0;o<this.rootNode.allLeafChildren.length;o++)i[this.rootNode.allLeafChildren[o].id]=o;return i}},r.prototype.commonUpdateRowData=function(e,i,o){var s=!this.gridOptionsWrapper.isSuppressAnimationFrame();o&&(i=this.createRowNodeOrder()),this.refreshModel({step:Nl.EVERYTHING,rowNodeTransactions:e,rowNodeOrder:i,keepRenderedRows:!0,keepEditingRows:!0,animate:s}),this.filterManager.onNewRowsLoaded("rowDataUpdated"),this.eventService.dispatchEvent({type:Et.EVENT_ROW_DATA_UPDATED,api:this.gridApi,columnApi:this.columnApi})},r.prototype.doRowsToDisplay=function(){this.rowsToDisplay=this.flattenStage.execute({rowNode:this.rootNode})},r.prototype.onRowHeightChanged=function(){this.refreshModel({step:Nl.MAP,keepRenderedRows:!0,keepEditingRows:!0})},r.prototype.resetRowHeights=function(){var e=!1;this.forEachNode(function(i){i.setRowHeight(i.rowHeight,!0);var o=i.detailNode;o&&o.setRowHeight(o.rowHeight,!0),e=!0}),e&&this.onRowHeightChanged()},Oh([Xe("columnModel")],r.prototype,"columnModel",void 0),Oh([Xe("selectionService")],r.prototype,"selectionService",void 0),Oh([Xe("filterManager")],r.prototype,"filterManager",void 0),Oh([Xe("valueCache")],r.prototype,"valueCache",void 0),Oh([Xe("columnApi")],r.prototype,"columnApi",void 0),Oh([Xe("gridApi")],r.prototype,"gridApi",void 0),Oh([Xe("animationFrameService")],r.prototype,"animationFrameService",void 0),Oh([Xe("beans")],r.prototype,"beans",void 0),Oh([Xe("filterStage")],r.prototype,"filterStage",void 0),Oh([Xe("sortStage")],r.prototype,"sortStage",void 0),Oh([Xe("flattenStage")],r.prototype,"flattenStage",void 0),Oh([_a("groupStage")],r.prototype,"groupStage",void 0),Oh([_a("aggregationStage")],r.prototype,"aggregationStage",void 0),Oh([_a("pivotStage")],r.prototype,"pivotStage",void 0),Oh([_a("filterAggregatesStage")],r.prototype,"filterAggregatesStage",void 0),Oh([qi],r.prototype,"init",null),Oh([Kr("rowModel")],r)}(Zi),dye=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),zee=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},pye=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return dye(r,t),r.prototype.execute=function(e){this.filterService.filter(e.changedPath)},zee([Xe("filterService")],r.prototype,"filterService",void 0),zee([Kr("filterStage")],r)}(Zi),hye=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),h8=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},fye=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return hye(r,t),r.prototype.execute=function(e){var i=this,o=this.sortController.getSortOptions(),s=ln.exists(o)&&o.length>0,a=s&&ln.exists(e.rowNodeTransactions)&&this.gridOptionsWrapper.isDeltaSort(),l=o.some(function(c){return!!i.columnModel.getGroupDisplayColumnForGroup(c.column.getId())});this.sortService.sort(o,s,a,e.rowNodeTransactions,e.changedPath,l)},h8([Xe("sortService")],r.prototype,"sortService",void 0),h8([Xe("sortController")],r.prototype,"sortController",void 0),h8([Xe("columnModel")],r.prototype,"columnModel",void 0),h8([Kr("sortStage")],r)}(Zi),mye=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),N$=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},gye=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return mye(r,t),r.prototype.execute=function(e){var i=e.rowNode,o=[],s={value:0},a=this.columnModel.isPivotMode(),l=a&&i.leafGroup;return this.recursivelyAddToRowsToDisplay(l?[i]:i.childrenAfterSort,o,s,a,0),!l&&o.length>0&&this.gridOptionsWrapper.isGroupIncludeTotalFooter()&&(this.ensureFooterNodeExists(i),this.addRowNodeToRowsToDisplay(i.sibling,o,s,0)),o},r.prototype.recursivelyAddToRowsToDisplay=function(e,i,o,s,a){if(!ln.missingOrEmpty(e))for(var l=this.gridOptionsWrapper.isGroupHideOpenParents(),c=this.gridOptionsWrapper.isGroupRemoveSingleChildren(),d=!c&&this.gridOptionsWrapper.isGroupRemoveLowestSingleChildren(),f=0;f<e.length;f++){var v=e[f],w=v.hasChildren(),I=c&&w&&1===v.childrenAfterGroup.length,M=d&&w&&v.leafGroup&&1===v.childrenAfterGroup.length;if(!(s&&!w||l&&v.expanded&&!v.master&&(!s||!v.leafGroup)||I||M)&&this.addRowNodeToRowsToDisplay(v,i,o,a),!s||!v.leafGroup)if(w){var we=I||M;(v.expanded||we)&&(this.recursivelyAddToRowsToDisplay(v.childrenAfterSort,i,o,s,we?a:a+1),this.gridOptionsWrapper.isGroupIncludeFooter()&&(this.ensureFooterNodeExists(v),this.addRowNodeToRowsToDisplay(v.sibling,i,o,a)))}else if(v.master&&v.expanded){var tt=this.createDetailNode(v);this.addRowNodeToRowsToDisplay(tt,i,o,a)}}},r.prototype.addRowNodeToRowsToDisplay=function(e,i,o,s){var a=this.gridOptionsWrapper.isGroupMultiAutoColumn();i.push(e),e.setUiLevel(a?0:s)},r.prototype.ensureFooterNodeExists=function(e){if(!ln.exists(e.sibling)){var i=new Ta(this.beans);Object.keys(e).forEach(function(o){i[o]=e[o]}),i.footer=!0,i.setRowTop(null),i.setRowIndex(null),i.oldRowTop=null,ln.exists(i.id)&&(i.id="rowGroupFooter_"+i.id),i.sibling=e,e.sibling=i}},r.prototype.createDetailNode=function(e){if(ln.exists(e.detailNode))return e.detailNode;var i=new Ta(this.beans);return i.detail=!0,i.selectable=!1,i.parent=e,ln.exists(e.id)&&(i.id="detail_"+e.id),i.data=e.data,i.level=e.level+1,e.detailNode=i,i},N$([Xe("columnModel")],r.prototype,"columnModel",void 0),N$([Xe("beans")],r.prototype,"beans",void 0),N$([Kr("flattenStage")],r)}(Zi),vye=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),f8=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},_ye=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return vye(r,t),r.prototype.init=function(){this.postSortFunc=this.gridOptionsWrapper.getPostSortFunc()},r.prototype.sort=function(e,i,o,s,a,l){var c=this,d=this.gridOptionsWrapper.isGroupMaintainOrder(),f=this.columnModel.getAllGridColumns().some(function(I){return I.isRowGroupActive()}),v={};o&&s&&(v=this.calculateDirtyNodes(s));var w=this.columnModel.isPivotMode();a&&a.forEachChangedNodeDepthFirst(function(I){if(c.pullDownGroupDataForHideOpenParents(I.childrenAfterAggFilter,!0),!i||d&&f&&!I.leafGroup&&!l||w&&I.leafGroup){var re=I.childrenAfterAggFilter.slice(0);if(d&&I.childrenAfterSort){var pe=I.childrenAfterSort.reduce(function(je,tt,nt){return je[tt.id]=nt,je},{});re.sort(function(je,tt){return(pe[je.id]||0)-(pe[tt.id]||0)})}I.childrenAfterSort=re}else I.childrenAfterSort=o?c.doDeltaSort(I,v,a,e):c.rowNodeSorter.doFullSort(I.childrenAfterAggFilter,e);I.sibling&&(I.sibling.childrenAfterSort=I.childrenAfterSort),c.updateChildIndexes(I),c.postSortFunc&&c.postSortFunc({nodes:I.childrenAfterSort})}),this.updateGroupDataForHideOpenParents(a)},r.prototype.calculateDirtyNodes=function(e){var i={},o=function(s){s&&s.forEach(function(a){return i[a.id]=!0})};return e&&e.forEach(function(s){o(s.add),o(s.update),o(s.remove)}),i},r.prototype.doDeltaSort=function(e,i,o,s){var a=this,l=e.childrenAfterAggFilter,c=e.childrenAfterSort;if(!c)return this.rowNodeSorter.doFullSort(l,s);var d={},f=[];l.forEach(function(I){i[I.id]||!o.canSkip(I)?f.push(I):d[I.id]=!0});var v=c.filter(function(I){return d[I.id]}),w=function(I,M){return{currentPos:M,rowNode:I}},x=f.map(w).sort(function(I,M){return a.rowNodeSorter.compareRowNodes(s,I,M)});return this.mergeSortedArrays(s,x,v.map(w)).map(function(I){return I.rowNode})},r.prototype.mergeSortedArrays=function(e,i,o){for(var s=[],a=0,l=0;a<i.length&&l<o.length;){var c=this.rowNodeSorter.compareRowNodes(e,i[a],o[l]);s.push(c<0?i[a++]:o[l++])}for(;a<i.length;)s.push(i[a++]);for(;l<o.length;)s.push(o[l++]);return s},r.prototype.updateChildIndexes=function(e){if(!ln.missing(e.childrenAfterSort))for(var i=e.childrenAfterSort,o=0;o<i.length;o++){var s=i[o],l=o===e.childrenAfterSort.length-1;s.setFirstChild(0===o),s.setLastChild(l),s.setChildIndex(o)}},r.prototype.updateGroupDataForHideOpenParents=function(e){var i=this;if(this.gridOptionsWrapper.isGroupHideOpenParents()){if(this.gridOptionsWrapper.isTreeData())return ln.doOnce(function(){return console.warn("AG Grid: The property hideOpenParents dose not work with Tree Data. This is because Tree Data has values at the group level, it doesn't make sense to hide them (as opposed to Row Grouping, which only has Aggregated Values at the group level).")},"sortService.hideOpenParentsWithTreeData"),!1;var s=function(a){i.pullDownGroupDataForHideOpenParents(a.childrenAfterSort,!1),a.childrenAfterSort.forEach(function(l){l.hasChildren()&&s(l)})};e&&e.executeFromRootNode(function(a){return s(a)})}},r.prototype.pullDownGroupDataForHideOpenParents=function(e,i){var o=this;!this.gridOptionsWrapper.isGroupHideOpenParents()||ln.missing(e)||e.forEach(function(s){o.columnModel.getGroupDisplayColumns().forEach(function(l){var c=l.getColDef().showRowGroup;if("string"==typeof c){var f=o.columnModel.getPrimaryColumn(c);if(f!==s.rowGroupColumn)if(i)s.setGroupValue(l.getId(),void 0);else{var w=s.getFirstChildOfFirstChild(f);w&&s.setGroupValue(l.getId(),w.key)}}else console.error("AG Grid: groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup")})})},f8([Xe("columnModel")],r.prototype,"columnModel",void 0),f8([Xe("rowNodeSorter")],r.prototype,"rowNodeSorter",void 0),f8([qi],r.prototype,"init",null),f8([Kr("sortService")],r)}(Zi),yye=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),qee=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},bye=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return yye(r,t),r.prototype.filter=function(e){var i=this.filterManager.isColumnFilterPresent()||this.filterManager.isQuickFilterPresent()||this.filterManager.isExternalFilterPresent();this.filterNodes(i,e)},r.prototype.filterNodes=function(e,i){var o=this,s=function(d,f){d.childrenAfterFilter=d.hasChildren()&&e&&!f?d.childrenAfterGroup.filter(function(v){var w=v.childrenAfterFilter&&v.childrenAfterFilter.length>0,x=v.data&&o.filterManager.doesRowPassFilter({rowNode:v});return w||x}):d.childrenAfterGroup,d.sibling&&(d.sibling.childrenAfterFilter=d.childrenAfterFilter)};if(this.doingTreeDataFiltering()){var a=function(d,f){if(d.childrenAfterGroup)for(var v=0;v<d.childrenAfterGroup.length;v++){var w=d.childrenAfterGroup[v],x=f||o.filterManager.doesRowPassFilter({rowNode:w});w.childrenAfterGroup?a(d.childrenAfterGroup[v],x):s(w,x)}s(d,f)};i.executeFromRootNode(function(d){return a(d,!1)})}else i.forEachChangedNodeDepthFirst(function(d){return s(d,!1)},!0)},r.prototype.doingTreeDataFiltering=function(){return this.gridOptionsWrapper.isTreeData()&&!this.gridOptionsWrapper.isExcludeChildrenWhenTreeDataFiltering()},qee([Xe("filterManager")],r.prototype,"filterManager",void 0),qee([Kr("filterService")],r)}(Zi),Cye=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Mx=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},Tye=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return Cye(r,t),r.prototype.postConstruct=function(){this.rowModel.getType()===Nn.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel)},r.prototype.isActive=function(){return this.gridOptionsWrapper.isImmutableData()},r.prototype.setRowData=function(e){var i=this.createTransactionForRowData(e);if(i){var o=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var o,a,i=e.call(t),s=[];try{for(;(void 0===r||r-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return s}(i,2),l=this.clientSideRowModel.updateRowData(o[0],o[1]);l&&this.rowRenderer.refreshFullWidthRows(l.update)}},r.prototype.createTransactionForRowData=function(e){if(ln.missing(this.clientSideRowModel))console.error("AG Grid: ImmutableService only works with ClientSideRowModel");else{var i=this.gridOptionsWrapper.getRowIdFunc();if(null!=i){var o={remove:[],update:[],add:[]},s=this.clientSideRowModel.getCopyOfNodesMap(),l=this.gridOptionsWrapper.isSuppressMaintainUnsortedOrder()?void 0:{};return ln.exists(e)&&e.forEach(function(c,d){var f=i({data:c,level:0}),v=s[f];l&&(l[f]=d),v?(v.data!==c&&o.update.push(c),s[f]=void 0):o.add.push(c)}),ln.iterateObject(s,function(c,d){d&&o.remove.push(d.data)}),[o,l]}console.error("AG Grid: ImmutableService requires getRowId() callback to be implemented, your row data needs IDs!")}},Mx([Xe("rowModel")],r.prototype,"rowModel",void 0),Mx([Xe("rowRenderer")],r.prototype,"rowRenderer",void 0),Mx([Xe("columnApi")],r.prototype,"columnApi",void 0),Mx([Xe("gridApi")],r.prototype,"gridApi",void 0),Mx([Xe("filterManager")],r.prototype,"filterManager",void 0),Mx([qi],r.prototype,"postConstruct",null),Mx([Kr("immutableService")],r)}(Zi),Xee={moduleName:mo.ClientSideRowModelModule,beans:[pye,fye,gye,_ye,bye,Tye],rowModels:{clientSide:uye}},gg=(b(8982),b(4412));function G$(t){return new Fc.c(r=>{Rs(t()).subscribe(r)})}function eh(t,r,e){const i=(0,Ye.T)(t)||r||e?{next:t,error:r,complete:e}:t;return i?(0,zd.N)((o,s)=>{var a;null===(a=i.subscribe)||void 0===a||a.call(i);let l=!0;o.subscribe((0,Dd._)(s,c=>{var d;null===(d=i.next)||void 0===d||d.call(i,c),s.next(c)},()=>{var c;l=!1,null===(c=i.complete)||void 0===c||c.call(i),s.complete()},c=>{var d;l=!1,null===(d=i.error)||void 0===d||d.call(i,c),s.error(c)},()=>{var c,d;l&&(null===(c=i.unsubscribe)||void 0===c||c.call(i)),null===(d=i.finalize)||void 0===d||d.call(i)}))}):vx.D}class Sye extends K.B{constructor(r=1/0,e=1/0,i=p){super(),this._bufferSize=r,this._windowTime=e,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,r),this._windowTime=Math.max(1,e)}next(r){const{isStopped:e,_buffer:i,_infiniteTimeWindow:o,_timestampProvider:s,_windowTime:a}=this;e||(i.push(r),!o&&i.push(s.now()+a)),this._trimBuffer(),super.next(r)}_subscribe(r){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(r),{_infiniteTimeWindow:i,_buffer:o}=this,s=o.slice();for(let a=0;a<s.length&&!r.closed;a+=i?1:2)r.next(s[a]);return this._checkFinalizedStatuses(r),e}_trimBuffer(){const{_bufferSize:r,_timestampProvider:e,_buffer:i,_infiniteTimeWindow:o}=this,s=(o?1:2)*r;if(r<1/0&&s<i.length&&i.splice(0,i.length-s),!o){const a=e.now();let l=0;for(let c=1;c<i.length&&i[c]<=a;c+=2)l=c;l&&i.splice(0,l+1)}}}var B$=b(7707);function V$(t,r,...e){if(!0===r)return void t();if(!1===r)return;const i=new B$.Ms({next:()=>{i.unsubscribe(),t()}});return Rs(r(...e)).subscribe(i)}function Kee(t,r,e){let i,o=!1;return t&&"object"==typeof t?({bufferSize:i=1/0,windowTime:r=1/0,refCount:o=!1,scheduler:e}=t):i=t??1/0,function xye(t={}){const{connector:r=()=>new K.B,resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:o=!0}=t;return s=>{let a,l,c,d=0,f=!1,v=!1;const w=()=>{l?.unsubscribe(),l=void 0},x=()=>{w(),a=c=void 0,f=v=!1},I=()=>{const M=a;x(),M?.unsubscribe()};return(0,zd.N)((M,F)=>{d++,!v&&!f&&w();const re=c=c??r();F.add(()=>{d--,0===d&&!v&&!f&&(l=V$(I,o))}),re.subscribe(F),!a&&d>0&&(a=new B$.Ms({next:pe=>re.next(pe),error:pe=>{v=!0,w(),l=V$(x,e,pe),re.error(pe)},complete:()=>{f=!0,w(),l=V$(x,i),re.complete()}}),Rs(M).subscribe(a))})(s)}}({connector:()=>new Sye(i,r,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}var Eye=b(5343);function j$(t){return(0,zd.N)((r,e)=>{Rs(t).subscribe((0,Dd._)(e,()=>e.complete(),Eye.l)),!e.closed&&r.subscribe(e)})}function H$(t){t||((0,n.Af3)(H$),t=(0,n.WQX)(n.abz));const r=new Fc.c(e=>t.onDestroy(e.next.bind(e)));return e=>e.pipe(j$(r))}function m8(t,r){const e=!r?.manualCleanup;e&&!r?.injector&&(0,n.Af3)(m8);const i=e?r?.injector?.get(n.abz)??(0,n.WQX)(n.abz):null,o=function kye(t=Object.is){return(r,e)=>1===r.kind&&1===e.kind&&t(r.value,e.value)}(r?.equal);let s;s=(0,n.vPA)(r?.requireSync?{kind:0}:{kind:1,value:r?.initialValue},{equal:o});const a=t.subscribe({next:l=>s.set({kind:1,value:l}),error:l=>{if(r?.rejectErrors)throw l;s.set({kind:2,error:l})}});if(r?.requireSync&&0===s().kind)throw new n.wOt(601,!1);return i?.onDestroy(a.unsubscribe.bind(a)),(0,n.EWP)(()=>{const l=s();switch(l.kind){case 1:return l.value;case 2:throw l.error;case 0:throw new n.wOt(601,!1)}},{equal:r?.equal})}const Mye=["container"],Jee=new n.nKC("LottieOptions");let Zee=(()=>{class t{constructor(){this.player$=function Rye(){const t=(0,n.WQX)(n.SKi),{player:r,useWebWorker:e}=(0,n.WQX)(Jee),i=t.runOutsideAngular(()=>r());return((0,n.jNT)(i)?Pc(i).pipe((0,Os.T)(s=>s.default||s)):Fs(i)).pipe(eh(s=>s.useWebWorker?.(e)),Kee({bufferSize:1,refCount:!0}))}().pipe(Ih(e=>function Oye(t){return new Fc.c(r=>{const e=t.runOutsideAngular(()=>requestAnimationFrame(()=>{r.next(),r.complete()}));return()=>cancelAnimationFrame(e)})}(this.ngZone).pipe((0,Os.T)(()=>e)))),this.ngZone=(0,n.WQX)(n.SKi)}loadAnimation(e){return this.player$.pipe((0,Os.T)(i=>this.createAnimationItem(i,e)))}resolveOptions(e,i){return Object.assign({container:i,renderer:"svg",loop:!0,autoplay:!0},e)}createAnimationItem(e,i){return this.ngZone.runOutsideAngular(()=>e.loadAnimation(i))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Pye=(()=>{class t{constructor(){this.options=(0,n.hFB)(null),this.containerClass=(0,n.hFB)(null),this.styles=(0,n.hFB)(null),this.animationCreated=this.getAnimationItem(),this.complete=this.awaitAnimationItemAndStartListening("complete"),this.loopComplete=this.awaitAnimationItemAndStartListening("loopComplete"),this.enterFrame=this.awaitAnimationItemAndStartListening("enterFrame"),this.segmentStart=this.awaitAnimationItemAndStartListening("segmentStart"),this.configReady=this.awaitAnimationItemAndStartListening("config_ready"),this.dataReady=this.awaitAnimationItemAndStartListening("data_ready"),this.domLoaded=this.awaitAnimationItemAndStartListening("DOMLoaded"),this.destroy=this.awaitAnimationItemAndStartListening("destroy"),this.error=this.awaitAnimationItemAndStartListening("error"),this.ngZone=(0,n.WQX)(n.SKi),this.isBrowser=Gr((0,n.WQX)(n.Agw)),this.animationLoader=(0,n.WQX)(Zee),this.loadAnimation$=new K.B,this.animationItem$=new gg.t(null),this.setupLoadAnimationListener()}ngOnDestroy(){this.destroyAnimation()}loadAnimation(e,i){this.ngZone.runOutsideAngular(()=>this.loadAnimation$.next([e,i]))}getAnimationItem(){return G$(()=>this.animationItem$).pipe(U_(e=>null!==e))}awaitAnimationItemAndStartListening(e){return this.getAnimationItem().pipe(qd(i=>new Fc.c(o=>{this.ngZone.runOutsideAngular(()=>{i.addEventListener(e,s=>{this.ngZone.runOutsideAngular(()=>{o.next(s)})})})})))}setupLoadAnimationListener(){this.loadAnimation$.pipe(U_(([i])=>this.isBrowser&&void 0!==i.options)).pipe(qd(([i,o])=>(this.destroyAnimation(),this.animationLoader.loadAnimation(this.animationLoader.resolveOptions(i.options.currentValue,o)))),H$()).subscribe(i=>{this.ngZone.run(()=>this.animationItem$.next(i))})}destroyAnimation(){const e=this.animationItem$.getValue();null!==e&&(e.destroy(),this.animationItem$.next(null))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=n.FsC({type:t,selectors:[["","lottie",""]],inputs:{options:[1,"options"],containerClass:[1,"containerClass"],styles:[1,"styles"]},outputs:{animationCreated:"animationCreated",complete:"complete",loopComplete:"loopComplete",enterFrame:"enterFrame",segmentStart:"segmentStart",configReady:"configReady",dataReady:"dataReady",domLoaded:"domLoaded",destroy:"destroy",error:"error"},standalone:!1})}}return t})(),U$=(()=>{class t extends Pye{constructor(){super(...arguments),this.width=(0,n.hFB)(null),this.height=(0,n.hFB)(null),this.container=null}ngOnChanges(e){super.loadAnimation(e,this.container.nativeElement)}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})()}static{this.\u0275cmp=n.VBU({type:t,selectors:[["ng-lottie"]],viewQuery:function(i,o){if(1&i&&n.GBs(Mye,7),2&i){let s;n.mGM(s=n.lsd())&&(o.container=s.first)}},inputs:{width:[1,"width"],height:[1,"height"]},features:[n.Vt3,n.OA$],decls:2,vars:6,consts:[["container",""],[3,"ngStyle","ngClass"]],template:function(i,o){1&i&&n.nrm(0,"div",1,0),2&i&&(n.xc7("width",o.width()||"100%")("height",o.height()||"100%"),n.Y8G("ngStyle",o.styles())("ngClass",o.containerClass()))},dependencies:[Jr,bi],encapsulation:2,changeDetection:0})}}return t})();let Rx={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function ete(t){Rx=t}const hO={exec:()=>null};function su(t,r=""){let e="string"==typeof t?t:t.source;const i={replace:(o,s)=>{let a="string"==typeof s?s:s.source;return a=a.replace(Zf.caret,"$1"),e=e.replace(o,a),i},getRegex:()=>new RegExp(e,r)};return i}const Zf={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i")},fO=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,tte=/(?:[*+-]|\d{1,9}[.)])/,nte=su(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,tte).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),Y$=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,W$=/(?!\s*\])(?:\\.|[^\[\]\\])+/,jye=su(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",W$).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Hye=su(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,tte).getRegex(),g8="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",z$=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Uye=su("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",z$).replace("tag",g8).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ite=su(Y$).replace("hr",fO).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",g8).getRegex(),q$={blockquote:su(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ite).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:jye,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:fO,html:Uye,lheading:nte,list:Hye,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:ite,table:hO,text:/^[^\n]+/},rte=su("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",fO).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",g8).getRegex(),$ye={...q$,table:rte,paragraph:su(Y$).replace("hr",fO).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",rte).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",g8).getRegex()},Yye={...q$,html:su("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",z$).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:hO,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:su(Y$).replace("hr",fO).replace("heading"," *#{1,6} *[^\n]").replace("lheading",nte).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},ote=/^( {2,}|\\)\n(?!\s*$)/,v8=/[\p{P}\p{S}]/u,X$=/[\s\p{P}\p{S}]/u,ste=/[^\s\p{P}\p{S}]/u,Xye=su(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,X$).getRegex(),e1e=su(/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,"u").replace(/punct/g,v8).getRegex(),ate="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",t1e=su(ate,"gu").replace(/notPunctSpace/g,ste).replace(/punctSpace/g,X$).replace(/punct/g,v8).getRegex(),n1e=su(ate,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,/(?!~)[\p{P}\p{S}]/u).getRegex(),i1e=su("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,ste).replace(/punctSpace/g,X$).replace(/punct/g,v8).getRegex(),r1e=su(/\\(punct)/,"gu").replace(/punct/g,v8).getRegex(),o1e=su(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),s1e=su(z$).replace("(?:--\x3e|$)","--\x3e").getRegex(),a1e=su("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",s1e).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),_8=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,l1e=su(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",_8).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),lte=su(/^!?\[(label)\]\[(ref)\]/).replace("label",_8).replace("ref",W$).getRegex(),cte=su(/^!?\[(ref)\](?:\[\])?/).replace("ref",W$).getRegex(),K$={_backpedal:hO,anyPunctuation:r1e,autolink:o1e,blockSkip:/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,br:ote,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:hO,emStrongLDelim:e1e,emStrongRDelimAst:t1e,emStrongRDelimUnd:i1e,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:l1e,nolink:cte,punctuation:Xye,reflink:lte,reflinkSearch:su("reflink|nolink(?!\\()","g").replace("reflink",lte).replace("nolink",cte).getRegex(),tag:a1e,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:hO},u1e={...K$,link:su(/^!?\[(label)\]\((.*?)\)/).replace("label",_8).getRegex(),reflink:su(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",_8).getRegex()},Q$={...K$,emStrongRDelimAst:n1e,url:su(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},d1e={...Q$,br:su(ote).replace("{2,}","*").getRegex(),text:su(Q$.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},y8={normal:q$,gfm:$ye,pedantic:Yye},mO={normal:K$,gfm:Q$,breaks:d1e,pedantic:u1e},p1e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ute=t=>p1e[t];function Ey(t,r){if(r){if(Zf.escapeTest.test(t))return t.replace(Zf.escapeReplace,ute)}else if(Zf.escapeTestNoEncode.test(t))return t.replace(Zf.escapeReplaceNoEncode,ute);return t}function dte(t){try{t=encodeURI(t).replace(Zf.percentDecode,"%")}catch{return null}return t}function pte(t,r){const i=t.replace(Zf.findPipe,(s,a,l)=>{let c=!1,d=a;for(;--d>=0&&"\\"===l[d];)c=!c;return c?"|":" |"}).split(Zf.splitPipe);let o=0;if(i[0].trim()||i.shift(),i.length>0&&!i.at(-1)?.trim()&&i.pop(),r)if(i.length>r)i.splice(r);else for(;i.length<r;)i.push("");for(;o<i.length;o++)i[o]=i[o].trim().replace(Zf.slashPipe,"|");return i}function gO(t,r,e){const i=t.length;if(0===i)return"";let o=0;for(;o<i&&t.charAt(i-o-1)===r&&!e;)o++;return t.slice(0,i-o)}function hte(t,r,e,i,o){const s=r.href,a=r.title||null,l=t[1].replace(o.other.outputLinkReplace,"$1");if("!"!==t[0].charAt(0)){i.state.inLink=!0;const c={type:"link",raw:e,href:s,title:a,text:l,tokens:i.inlineTokens(l)};return i.state.inLink=!1,c}return{type:"image",raw:e,href:s,title:a,text:l}}class b8{options;rules;lexer;constructor(r){this.options=r||Rx}space(r){const e=this.rules.block.newline.exec(r);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(r){const e=this.rules.block.code.exec(r);if(e){const i=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?i:gO(i,"\n")}}}fences(r){const e=this.rules.block.fences.exec(r);if(e){const i=e[0],o=function f1e(t,r,e){const i=t.match(e.other.indentCodeCompensation);if(null===i)return r;const o=i[1];return r.split("\n").map(s=>{const a=s.match(e.other.beginningSpace);if(null===a)return s;const[l]=a;return l.length>=o.length?s.slice(o.length):s}).join("\n")}(i,e[3]||"",this.rules);return{type:"code",raw:i,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:o}}}heading(r){const e=this.rules.block.heading.exec(r);if(e){let i=e[2].trim();if(this.rules.other.endingHash.test(i)){const o=gO(i,"#");(this.options.pedantic||!o||this.rules.other.endingSpaceChar.test(o))&&(i=o.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(r){const e=this.rules.block.hr.exec(r);if(e)return{type:"hr",raw:gO(e[0],"\n")}}blockquote(r){const e=this.rules.block.blockquote.exec(r);if(e){let i=gO(e[0],"\n").split("\n"),o="",s="";const a=[];for(;i.length>0;){let l=!1;const c=[];let d;for(d=0;d<i.length;d++)if(this.rules.other.blockquoteStart.test(i[d]))c.push(i[d]),l=!0;else{if(l)break;c.push(i[d])}i=i.slice(d);const f=c.join("\n"),v=f.replace(this.rules.other.blockquoteSetextReplace,"\n    $1").replace(this.rules.other.blockquoteSetextReplace2,"");o=o?`${o}\n${f}`:f,s=s?`${s}\n${v}`:v;const w=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(v,a,!0),this.lexer.state.top=w,0===i.length)break;const x=a.at(-1);if("code"===x?.type)break;if("blockquote"===x?.type){const I=x,M=I.raw+"\n"+i.join("\n"),F=this.blockquote(M);a[a.length-1]=F,o=o.substring(0,o.length-I.raw.length)+F.raw,s=s.substring(0,s.length-I.text.length)+F.text;break}if("list"!==x?.type);else{const I=x,M=I.raw+"\n"+i.join("\n"),F=this.list(M);a[a.length-1]=F,o=o.substring(0,o.length-x.raw.length)+F.raw,s=s.substring(0,s.length-I.raw.length)+F.raw,i=M.substring(a.at(-1).raw.length).split("\n")}}return{type:"blockquote",raw:o,tokens:a,text:s}}}list(r){let e=this.rules.block.list.exec(r);if(e){let i=e[1].trim();const o=i.length>1,s={type:"list",raw:"",ordered:o,start:o?+i.slice(0,-1):"",loose:!1,items:[]};i=o?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=o?i:"[*+-]");const a=this.rules.other.listItemRegex(i);let l=!1;for(;r;){let d=!1,f="",v="";if(!(e=a.exec(r))||this.rules.block.hr.test(r))break;f=e[0],r=r.substring(f.length);let w=e[2].split("\n",1)[0].replace(this.rules.other.listReplaceTabs,pe=>" ".repeat(3*pe.length)),x=r.split("\n",1)[0],I=!w.trim(),M=0;if(this.options.pedantic?(M=2,v=w.trimStart()):I?M=e[1].length+1:(M=e[2].search(this.rules.other.nonSpaceChar),M=M>4?1:M,v=w.slice(M),M+=e[1].length),I&&this.rules.other.blankLine.test(x)&&(f+=x+"\n",r=r.substring(x.length+1),d=!0),!d){const pe=this.rules.other.nextBulletRegex(M),we=this.rules.other.hrRegex(M),je=this.rules.other.fencesBeginRegex(M),tt=this.rules.other.headingBeginRegex(M),nt=this.rules.other.htmlBeginRegex(M);for(;r;){const rt=r.split("\n",1)[0];let lt;if(x=rt,this.options.pedantic?(x=x.replace(this.rules.other.listReplaceNesting,"  "),lt=x):lt=x.replace(this.rules.other.tabCharGlobal,"    "),je.test(x)||tt.test(x)||nt.test(x)||pe.test(x)||we.test(x))break;if(lt.search(this.rules.other.nonSpaceChar)>=M||!x.trim())v+="\n"+lt.slice(M);else{if(I||w.replace(this.rules.other.tabCharGlobal,"    ").search(this.rules.other.nonSpaceChar)>=4||je.test(w)||tt.test(w)||we.test(w))break;v+="\n"+x}!I&&!x.trim()&&(I=!0),f+=rt+"\n",r=r.substring(rt.length+1),w=lt.slice(M)}}s.loose||(l?s.loose=!0:this.rules.other.doubleBlankLine.test(f)&&(l=!0));let re,F=null;this.options.gfm&&(F=this.rules.other.listIsTask.exec(v),F&&(re="[ ] "!==F[0],v=v.replace(this.rules.other.listReplaceTask,""))),s.items.push({type:"list_item",raw:f,task:!!F,checked:re,loose:!1,text:v,tokens:[]}),s.raw+=f}const c=s.items.at(-1);if(!c)return;c.raw=c.raw.trimEnd(),c.text=c.text.trimEnd(),s.raw=s.raw.trimEnd();for(let d=0;d<s.items.length;d++)if(this.lexer.state.top=!1,s.items[d].tokens=this.lexer.blockTokens(s.items[d].text,[]),!s.loose){const f=s.items[d].tokens.filter(w=>"space"===w.type),v=f.length>0&&f.some(w=>this.rules.other.anyLine.test(w.raw));s.loose=v}if(s.loose)for(let d=0;d<s.items.length;d++)s.items[d].loose=!0;return s}}html(r){const e=this.rules.block.html.exec(r);if(e)return{type:"html",block:!0,raw:e[0],pre:"pre"===e[1]||"script"===e[1]||"style"===e[1],text:e[0]}}def(r){const e=this.rules.block.def.exec(r);if(e){const i=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),o=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:i,raw:e[0],href:o,title:s}}}table(r){const e=this.rules.block.table.exec(r);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;const i=pte(e[1]),o=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],a={type:"table",raw:e[0],header:[],align:[],rows:[]};if(i.length===o.length){for(const l of o)this.rules.other.tableAlignRight.test(l)?a.align.push("right"):this.rules.other.tableAlignCenter.test(l)?a.align.push("center"):this.rules.other.tableAlignLeft.test(l)?a.align.push("left"):a.align.push(null);for(let l=0;l<i.length;l++)a.header.push({text:i[l],tokens:this.lexer.inline(i[l]),header:!0,align:a.align[l]});for(const l of s)a.rows.push(pte(l,a.header.length).map((c,d)=>({text:c,tokens:this.lexer.inline(c),header:!1,align:a.align[d]})));return a}}lheading(r){const e=this.rules.block.lheading.exec(r);if(e)return{type:"heading",raw:e[0],depth:"="===e[2].charAt(0)?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(r){const e=this.rules.block.paragraph.exec(r);if(e){const i="\n"===e[1].charAt(e[1].length-1)?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:i,tokens:this.lexer.inline(i)}}}text(r){const e=this.rules.block.text.exec(r);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(r){const e=this.rules.inline.escape.exec(r);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(r){const e=this.rules.inline.tag.exec(r);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(r){const e=this.rules.inline.link.exec(r);if(e){const i=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;const a=gO(i.slice(0,-1),"\\");if((i.length-a.length)%2==0)return}else{const a=function h1e(t,r){if(-1===t.indexOf(r[1]))return-1;let e=0;for(let i=0;i<t.length;i++)if("\\"===t[i])i++;else if(t[i]===r[0])e++;else if(t[i]===r[1]&&(e--,e<0))return i;return-1}(e[2],"()");if(a>-1){const c=(0===e[0].indexOf("!")?5:4)+e[1].length+a;e[2]=e[2].substring(0,a),e[0]=e[0].substring(0,c).trim(),e[3]=""}}let o=e[2],s="";if(this.options.pedantic){const a=this.rules.other.pedanticHrefTitle.exec(o);a&&(o=a[1],s=a[3])}else s=e[3]?e[3].slice(1,-1):"";return o=o.trim(),this.rules.other.startAngleBracket.test(o)&&(o=this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?o.slice(1):o.slice(1,-1)),hte(e,{href:o&&o.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(r,e){let i;if((i=this.rules.inline.reflink.exec(r))||(i=this.rules.inline.nolink.exec(r))){const s=e[(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!s){const a=i[0].charAt(0);return{type:"text",raw:a,text:a}}return hte(i,s,i[0],this.lexer,this.rules)}}emStrong(r,e,i=""){let o=this.rules.inline.emStrongLDelim.exec(r);if(!(!o||o[3]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!o[1]&&!o[2]||!i||this.rules.inline.punctuation.exec(i))){const a=[...o[0]].length-1;let l,c,d=a,f=0;const v="*"===o[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(v.lastIndex=0,e=e.slice(-1*r.length+a);null!=(o=v.exec(e));){if(l=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!l)continue;if(c=[...l].length,o[3]||o[4]){d+=c;continue}if((o[5]||o[6])&&a%3&&!((a+c)%3)){f+=c;continue}if(d-=c,d>0)continue;c=Math.min(c,c+d+f);const w=[...o[0]][0].length,x=r.slice(0,a+o.index+w+c);if(Math.min(a,c)%2){const M=x.slice(1,-1);return{type:"em",raw:x,text:M,tokens:this.lexer.inlineTokens(M)}}const I=x.slice(2,-2);return{type:"strong",raw:x,text:I,tokens:this.lexer.inlineTokens(I)}}}}codespan(r){const e=this.rules.inline.code.exec(r);if(e){let i=e[2].replace(this.rules.other.newLineCharGlobal," ");const o=this.rules.other.nonSpaceChar.test(i),s=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return o&&s&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:e[0],text:i}}}br(r){const e=this.rules.inline.br.exec(r);if(e)return{type:"br",raw:e[0]}}del(r){const e=this.rules.inline.del.exec(r);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(r){const e=this.rules.inline.autolink.exec(r);if(e){let i,o;return"@"===e[2]?(i=e[1],o="mailto:"+i):(i=e[1],o=i),{type:"link",raw:e[0],text:i,href:o,tokens:[{type:"text",raw:i,text:i}]}}}url(r){let e;if(e=this.rules.inline.url.exec(r)){let i,o;if("@"===e[2])i=e[0],o="mailto:"+i;else{let s;do{s=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??""}while(s!==e[0]);i=e[0],o="www."===e[1]?"http://"+e[0]:e[0]}return{type:"link",raw:e[0],text:i,href:o,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(r){const e=this.rules.inline.text.exec(r);if(e)return{type:"text",raw:e[0],text:e[0],escaped:this.lexer.state.inRawBlock}}}class Ev{tokens;options;state;tokenizer;inlineQueue;constructor(r){this.tokens=[],this.tokens.links=Object.create(null),this.options=r||Rx,this.options.tokenizer=this.options.tokenizer||new b8,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const e={other:Zf,block:y8.normal,inline:mO.normal};this.options.pedantic?(e.block=y8.pedantic,e.inline=mO.pedantic):this.options.gfm&&(e.block=y8.gfm,e.inline=this.options.breaks?mO.breaks:mO.gfm),this.tokenizer.rules=e}static get rules(){return{block:y8,inline:mO}}static lex(r,e){return new Ev(e).lex(r)}static lexInline(r,e){return new Ev(e).inlineTokens(r)}lex(r){r=r.replace(Zf.carriageReturn,"\n"),this.blockTokens(r,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){const i=this.inlineQueue[e];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(r,e=[],i=!1){for(this.options.pedantic&&(r=r.replace(Zf.tabCharGlobal,"    ").replace(Zf.spaceLine,""));r;){let o;if(this.options.extensions?.block?.some(a=>!!(o=a.call({lexer:this},r,e))&&(r=r.substring(o.raw.length),e.push(o),!0)))continue;if(o=this.tokenizer.space(r)){r=r.substring(o.raw.length);const a=e.at(-1);1===o.raw.length&&void 0!==a?a.raw+="\n":e.push(o);continue}if(o=this.tokenizer.code(r)){r=r.substring(o.raw.length);const a=e.at(-1);"paragraph"===a?.type||"text"===a?.type?(a.raw+="\n"+o.raw,a.text+="\n"+o.text,this.inlineQueue.at(-1).src=a.text):e.push(o);continue}if(o=this.tokenizer.fences(r)){r=r.substring(o.raw.length),e.push(o);continue}if(o=this.tokenizer.heading(r)){r=r.substring(o.raw.length),e.push(o);continue}if(o=this.tokenizer.hr(r)){r=r.substring(o.raw.length),e.push(o);continue}if(o=this.tokenizer.blockquote(r)){r=r.substring(o.raw.length),e.push(o);continue}if(o=this.tokenizer.list(r)){r=r.substring(o.raw.length),e.push(o);continue}if(o=this.tokenizer.html(r)){r=r.substring(o.raw.length),e.push(o);continue}if(o=this.tokenizer.def(r)){r=r.substring(o.raw.length);const a=e.at(-1);"paragraph"===a?.type||"text"===a?.type?(a.raw+="\n"+o.raw,a.text+="\n"+o.raw,this.inlineQueue.at(-1).src=a.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title});continue}if(o=this.tokenizer.table(r)){r=r.substring(o.raw.length),e.push(o);continue}if(o=this.tokenizer.lheading(r)){r=r.substring(o.raw.length),e.push(o);continue}let s=r;if(this.options.extensions?.startBlock){let a=1/0;const l=r.slice(1);let c;this.options.extensions.startBlock.forEach(d=>{c=d.call({lexer:this},l),"number"==typeof c&&c>=0&&(a=Math.min(a,c))}),a<1/0&&a>=0&&(s=r.substring(0,a+1))}if(this.state.top&&(o=this.tokenizer.paragraph(s))){const a=e.at(-1);i&&"paragraph"===a?.type?(a.raw+="\n"+o.raw,a.text+="\n"+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):e.push(o),i=s.length!==r.length,r=r.substring(o.raw.length)}else if(o=this.tokenizer.text(r)){r=r.substring(o.raw.length);const a=e.at(-1);"text"===a?.type?(a.raw+="\n"+o.raw,a.text+="\n"+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):e.push(o)}else if(r){const a="Infinite loop on byte: "+r.charCodeAt(0);if(this.options.silent){console.error(a);break}throw new Error(a)}}return this.state.top=!0,e}inline(r,e=[]){return this.inlineQueue.push({src:r,tokens:e}),e}inlineTokens(r,e=[]){let i=r,o=null;if(this.tokens.links){const l=Object.keys(this.tokens.links);if(l.length>0)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(i));)l.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(i));)i=i.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(o=this.tokenizer.rules.inline.anyPunctuation.exec(i));)i=i.slice(0,o.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let s=!1,a="";for(;r;){let l;if(s||(a=""),s=!1,this.options.extensions?.inline?.some(d=>!!(l=d.call({lexer:this},r,e))&&(r=r.substring(l.raw.length),e.push(l),!0)))continue;if(l=this.tokenizer.escape(r)){r=r.substring(l.raw.length),e.push(l);continue}if(l=this.tokenizer.tag(r)){r=r.substring(l.raw.length),e.push(l);continue}if(l=this.tokenizer.link(r)){r=r.substring(l.raw.length),e.push(l);continue}if(l=this.tokenizer.reflink(r,this.tokens.links)){r=r.substring(l.raw.length);const d=e.at(-1);"text"===l.type&&"text"===d?.type?(d.raw+=l.raw,d.text+=l.text):e.push(l);continue}if(l=this.tokenizer.emStrong(r,i,a)){r=r.substring(l.raw.length),e.push(l);continue}if(l=this.tokenizer.codespan(r)){r=r.substring(l.raw.length),e.push(l);continue}if(l=this.tokenizer.br(r)){r=r.substring(l.raw.length),e.push(l);continue}if(l=this.tokenizer.del(r)){r=r.substring(l.raw.length),e.push(l);continue}if(l=this.tokenizer.autolink(r)){r=r.substring(l.raw.length),e.push(l);continue}if(!this.state.inLink&&(l=this.tokenizer.url(r))){r=r.substring(l.raw.length),e.push(l);continue}let c=r;if(this.options.extensions?.startInline){let d=1/0;const f=r.slice(1);let v;this.options.extensions.startInline.forEach(w=>{v=w.call({lexer:this},f),"number"==typeof v&&v>=0&&(d=Math.min(d,v))}),d<1/0&&d>=0&&(c=r.substring(0,d+1))}if(l=this.tokenizer.inlineText(c)){r=r.substring(l.raw.length),"_"!==l.raw.slice(-1)&&(a=l.raw.slice(-1)),s=!0;const d=e.at(-1);"text"===d?.type?(d.raw+=l.raw,d.text+=l.text):e.push(l)}else if(r){const d="Infinite loop on byte: "+r.charCodeAt(0);if(this.options.silent){console.error(d);break}throw new Error(d)}}return e}}class Hw{options;parser;constructor(r){this.options=r||Rx}space(r){return""}code({text:r,lang:e,escaped:i}){const o=(e||"").match(Zf.notSpaceStart)?.[0],s=r.replace(Zf.endingNewline,"")+"\n";return o?'<pre><code class="language-'+Ey(o)+'">'+(i?s:Ey(s,!0))+"</code></pre>\n":"<pre><code>"+(i?s:Ey(s,!0))+"</code></pre>\n"}blockquote({tokens:r}){return`<blockquote>\n${this.parser.parse(r)}</blockquote>\n`}html({text:r}){return r}heading({tokens:r,depth:e}){return`<h${e}>${this.parser.parseInline(r)}</h${e}>\n`}hr(r){return"<hr>\n"}list(r){const e=r.ordered,i=r.start;let o="";for(let l=0;l<r.items.length;l++)o+=this.listitem(r.items[l]);const s=e?"ol":"ul";return"<"+s+(e&&1!==i?' start="'+i+'"':"")+">\n"+o+"</"+s+">\n"}listitem(r){let e="";if(r.task){const i=this.checkbox({checked:!!r.checked});r.loose?"paragraph"===r.tokens[0]?.type?(r.tokens[0].text=i+" "+r.tokens[0].text,r.tokens[0].tokens&&r.tokens[0].tokens.length>0&&"text"===r.tokens[0].tokens[0].type&&(r.tokens[0].tokens[0].text=i+" "+Ey(r.tokens[0].tokens[0].text),r.tokens[0].tokens[0].escaped=!0)):r.tokens.unshift({type:"text",raw:i+" ",text:i+" ",escaped:!0}):e+=i+" "}return e+=this.parser.parse(r.tokens,!!r.loose),`<li>${e}</li>\n`}checkbox({checked:r}){return"<input "+(r?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:r}){return`<p>${this.parser.parseInline(r)}</p>\n`}table(r){let e="",i="";for(let s=0;s<r.header.length;s++)i+=this.tablecell(r.header[s]);e+=this.tablerow({text:i});let o="";for(let s=0;s<r.rows.length;s++){const a=r.rows[s];i="";for(let l=0;l<a.length;l++)i+=this.tablecell(a[l]);o+=this.tablerow({text:i})}return o&&(o=`<tbody>${o}</tbody>`),"<table>\n<thead>\n"+e+"</thead>\n"+o+"</table>\n"}tablerow({text:r}){return`<tr>\n${r}</tr>\n`}tablecell(r){const e=this.parser.parseInline(r.tokens),i=r.header?"th":"td";return(r.align?`<${i} align="${r.align}">`:`<${i}>`)+e+`</${i}>\n`}strong({tokens:r}){return`<strong>${this.parser.parseInline(r)}</strong>`}em({tokens:r}){return`<em>${this.parser.parseInline(r)}</em>`}codespan({text:r}){return`<code>${Ey(r,!0)}</code>`}br(r){return"<br>"}del({tokens:r}){return`<del>${this.parser.parseInline(r)}</del>`}link({href:r,title:e,tokens:i}){const o=this.parser.parseInline(i),s=dte(r);if(null===s)return o;let a='<a href="'+(r=s)+'"';return e&&(a+=' title="'+Ey(e)+'"'),a+=">"+o+"</a>",a}image({href:r,title:e,text:i}){const o=dte(r);if(null===o)return Ey(i);let s=`<img src="${r=o}" alt="${i}"`;return e&&(s+=` title="${Ey(e)}"`),s+=">",s}text(r){return"tokens"in r&&r.tokens?this.parser.parseInline(r.tokens):"escaped"in r&&r.escaped?r.text:Ey(r.text)}}class J${strong({text:r}){return r}em({text:r}){return r}codespan({text:r}){return r}del({text:r}){return r}html({text:r}){return r}text({text:r}){return r}link({text:r}){return""+r}image({text:r}){return""+r}br(){return""}}class Dv{options;renderer;textRenderer;constructor(r){this.options=r||Rx,this.options.renderer=this.options.renderer||new Hw,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new J$}static parse(r,e){return new Dv(e).parse(r)}static parseInline(r,e){return new Dv(e).parseInline(r)}parse(r,e=!0){let i="";for(let o=0;o<r.length;o++){const s=r[o];if(this.options.extensions?.renderers?.[s.type]){const l=s,c=this.options.extensions.renderers[l.type].call({parser:this},l);if(!1!==c||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(l.type)){i+=c||"";continue}}const a=s;switch(a.type){case"space":i+=this.renderer.space(a);continue;case"hr":i+=this.renderer.hr(a);continue;case"heading":i+=this.renderer.heading(a);continue;case"code":i+=this.renderer.code(a);continue;case"table":i+=this.renderer.table(a);continue;case"blockquote":i+=this.renderer.blockquote(a);continue;case"list":i+=this.renderer.list(a);continue;case"html":i+=this.renderer.html(a);continue;case"paragraph":i+=this.renderer.paragraph(a);continue;case"text":{let l=a,c=this.renderer.text(l);for(;o+1<r.length&&"text"===r[o+1].type;)l=r[++o],c+="\n"+this.renderer.text(l);i+=e?this.renderer.paragraph({type:"paragraph",raw:c,text:c,tokens:[{type:"text",raw:c,text:c,escaped:!0}]}):c;continue}default:{const l='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return i}parseInline(r,e=this.renderer){let i="";for(let o=0;o<r.length;o++){const s=r[o];if(this.options.extensions?.renderers?.[s.type]){const l=this.options.extensions.renderers[s.type].call({parser:this},s);if(!1!==l||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){i+=l||"";continue}}const a=s;switch(a.type){case"escape":case"text":i+=e.text(a);break;case"html":i+=e.html(a);break;case"link":i+=e.link(a);break;case"image":i+=e.image(a);break;case"strong":i+=e.strong(a);break;case"em":i+=e.em(a);break;case"codespan":i+=e.codespan(a);break;case"br":i+=e.br(a);break;case"del":i+=e.del(a);break;default:{const l='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return i}}class C8{options;block;constructor(r){this.options=r||Rx}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(r){return r}postprocess(r){return r}processAllTokens(r){return r}provideLexer(){return this.block?Ev.lex:Ev.lexInline}provideParser(){return this.block?Dv.parse:Dv.parseInline}}const Ox=new class m1e{defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Dv;Renderer=Hw;TextRenderer=J$;Lexer=Ev;Tokenizer=b8;Hooks=C8;constructor(...r){this.use(...r)}walkTokens(r,e){let i=[];for(const o of r)switch(i=i.concat(e.call(this,o)),o.type){case"table":{const s=o;for(const a of s.header)i=i.concat(this.walkTokens(a.tokens,e));for(const a of s.rows)for(const l of a)i=i.concat(this.walkTokens(l.tokens,e));break}case"list":i=i.concat(this.walkTokens(o.items,e));break;default:{const s=o;this.defaults.extensions?.childTokens?.[s.type]?this.defaults.extensions.childTokens[s.type].forEach(a=>{const l=s[a].flat(1/0);i=i.concat(this.walkTokens(l,e))}):s.tokens&&(i=i.concat(this.walkTokens(s.tokens,e)))}}return i}use(...r){const e=this.defaults.extensions||{renderers:{},childTokens:{}};return r.forEach(i=>{const o={...i};if(o.async=this.defaults.async||o.async||!1,i.extensions&&(i.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){const a=e.renderers[s.name];e.renderers[s.name]=a?function(...l){let c=s.renderer.apply(this,l);return!1===c&&(c=a.apply(this,l)),c}:s.renderer}if("tokenizer"in s){if(!s.level||"block"!==s.level&&"inline"!==s.level)throw new Error("extension level must be 'block' or 'inline'");const a=e[s.level];a?a.unshift(s.tokenizer):e[s.level]=[s.tokenizer],s.start&&("block"===s.level?e.startBlock?e.startBlock.push(s.start):e.startBlock=[s.start]:"inline"===s.level&&(e.startInline?e.startInline.push(s.start):e.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(e.childTokens[s.name]=s.childTokens)}),o.extensions=e),i.renderer){const s=this.defaults.renderer||new Hw(this.defaults);for(const a in i.renderer){if(!(a in s))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;const c=i.renderer[a],d=s[a];s[a]=(...f)=>{let v=c.apply(s,f);return!1===v&&(v=d.apply(s,f)),v||""}}o.renderer=s}if(i.tokenizer){const s=this.defaults.tokenizer||new b8(this.defaults);for(const a in i.tokenizer){if(!(a in s))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;const c=i.tokenizer[a],d=s[a];s[a]=(...f)=>{let v=c.apply(s,f);return!1===v&&(v=d.apply(s,f)),v}}o.tokenizer=s}if(i.hooks){const s=this.defaults.hooks||new C8;for(const a in i.hooks){if(!(a in s))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;const c=i.hooks[a],d=s[a];s[a]=C8.passThroughHooks.has(a)?f=>{if(this.defaults.async)return Promise.resolve(c.call(s,f)).then(w=>d.call(s,w));const v=c.call(s,f);return d.call(s,v)}:(...f)=>{let v=c.apply(s,f);return!1===v&&(v=d.apply(s,f)),v}}o.hooks=s}if(i.walkTokens){const s=this.defaults.walkTokens,a=i.walkTokens;o.walkTokens=function(l){let c=[];return c.push(a.call(this,l)),s&&(c=c.concat(s.call(this,l))),c}}this.defaults={...this.defaults,...o}}),this}setOptions(r){return this.defaults={...this.defaults,...r},this}lexer(r,e){return Ev.lex(r,e??this.defaults)}parser(r,e){return Dv.parse(r,e??this.defaults)}parseMarkdown(r){return(i,o)=>{const s={...o},a={...this.defaults,...s},l=this.onError(!!a.silent,!!a.async);if(!0===this.defaults.async&&!1===s.async)return l(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof i>"u"||null===i)return l(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof i)return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected"));a.hooks&&(a.hooks.options=a,a.hooks.block=r);const c=a.hooks?a.hooks.provideLexer():r?Ev.lex:Ev.lexInline,d=a.hooks?a.hooks.provideParser():r?Dv.parse:Dv.parseInline;if(a.async)return Promise.resolve(a.hooks?a.hooks.preprocess(i):i).then(f=>c(f,a)).then(f=>a.hooks?a.hooks.processAllTokens(f):f).then(f=>a.walkTokens?Promise.all(this.walkTokens(f,a.walkTokens)).then(()=>f):f).then(f=>d(f,a)).then(f=>a.hooks?a.hooks.postprocess(f):f).catch(l);try{a.hooks&&(i=a.hooks.preprocess(i));let f=c(i,a);a.hooks&&(f=a.hooks.processAllTokens(f)),a.walkTokens&&this.walkTokens(f,a.walkTokens);let v=d(f,a);return a.hooks&&(v=a.hooks.postprocess(v)),v}catch(f){return l(f)}}}onError(r,e){return i=>{if(i.message+="\nPlease report this to https://github.com/markedjs/marked.",r){const o="<p>An error occurred:</p><pre>"+Ey(i.message+"",!0)+"</pre>";return e?Promise.resolve(o):o}if(e)return Promise.reject(i);throw i}}};function dc(t,r){return Ox.parse(t,r)}dc.options=dc.setOptions=function(t){return Ox.setOptions(t),ete(dc.defaults=Ox.defaults),dc},dc.getDefaults=function $$(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}},dc.defaults=Rx,dc.use=function(...t){return Ox.use(...t),ete(dc.defaults=Ox.defaults),dc},dc.walkTokens=function(t,r){return Ox.walkTokens(t,r)},dc.parseInline=Ox.parseInline,dc.Parser=Dv,dc.parser=Dv.parse,dc.Renderer=Hw,dc.TextRenderer=J$,dc.Lexer=Ev,dc.lexer=Ev.lex,dc.Tokenizer=b8,dc.Hooks=C8,dc.parse=dc;const W_=new Fc.c(t=>t.complete());const w8=new g(AU),_1e=w8;function Z$(t=0,r,e=_1e){let i=-1;return null!=r&&(PJ(r)?e=r:i=r),new Fc.c(o=>{let s=function y1e(t){return t instanceof Date&&!isNaN(t)}(t)?+t-e.now():t;s<0&&(s=0);let a=0;return e.schedule(function(){o.closed||(o.next(a++),0<=i?this.schedule(void 0,i):o.complete())},s)})}function fte(t){return(0,Os.T)(()=>t)}function C1e(t,r){return t===r}const ck=(0,b(1853).L)(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function uk(t){return t<=0?()=>W_:(0,zd.N)((r,e)=>{let i=0;r.subscribe((0,Dd._)(e,o=>{++i<=t&&(e.next(o),t<=i&&e.complete())}))})}function T8(t){return(0,zd.N)((r,e)=>{let i=!1;r.subscribe((0,Dd._)(e,o=>{i=!0,e.next(o)},()=>{i||e.next(t),e.complete()}))})}function mte(t=T1e){return(0,zd.N)((r,e)=>{let i=!1;r.subscribe((0,Dd._)(e,o=>{i=!0,e.next(o)},()=>i?e.complete():e.error(t())))})}function T1e(){return new ck}function Uw(t,r){const e=arguments.length>=2;return i=>i.pipe(t?U_((o,s)=>t(o,s,i)):vx.D,uk(1),e?T8(r):mte(()=>new ck))}const S1e=["*"];let gte=(()=>{class t{constructor(){this._buttonClick$=new K.B,this.copied$=this._buttonClick$.pipe(qd(()=>function v1e(...t){const r=QR(t),e=function $fe(t,r){return"number"==typeof $U(t)?t.pop():r}(t,1/0),i=t;return i.length?1===i.length?Rs(i[0]):qD(e)(Pc(i,r)):W_}(Fs(!0),Z$(3e3).pipe(fte(!1)))),function b1e(t,r=vx.D){return t=t??C1e,(0,zd.N)((e,i)=>{let o,s=!0;e.subscribe((0,Dd._)(i,a=>{const l=r(a);(s||!t(o,l))&&(s=!1,o=l,i.next(a))}))})}(),Kee(1)),this.copiedText$=this.copied$.pipe(WU(!1),(0,Os.T)(e=>e?"Copied":"Copy"))}onCopyToClipboardClick(){this._buttonClick$.next()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["markdown-clipboard"]],decls:4,vars:7,consts:[[1,"markdown-clipboard-button",3,"click"]],template:function(i,o){1&i&&(n.j41(0,"button",0),n.nI1(1,"async"),n.bIt("click",function(){return o.onCopyToClipboardClick()}),n.EFF(2),n.nI1(3,"async"),n.k0s()),2&i&&(n.AVh("copied",n.bMT(1,3,o.copied$)),n.R7$(2),n.JRh(n.bMT(3,5,o.copiedText$)))},dependencies:[ct],encapsulation:2,changeDetection:0})}}return t})();const D1e=new n.nKC("CLIPBOARD_OPTIONS");var eY=function(t){return t.CommandLine="command-line",t.LineHighlight="line-highlight",t.LineNumbers="line-numbers",t}(eY||{});const vte=new n.nKC("MARKED_EXTENSIONS"),_te=new n.nKC("MARKED_OPTIONS"),I1e=new n.nKC("MERMAID_OPTIONS"),yte=new n.nKC("SECURITY_CONTEXT");let tY=(()=>{class t{get options(){return this._options}set options(e){this._options={...this.DEFAULT_MARKED_OPTIONS,...e}}get renderer(){return this.options.renderer}set renderer(e){this.options.renderer=e}constructor(e,i,o,s,a,l,c,d){this.clipboardOptions=e,this.extensions=i,this.mermaidOptions=s,this.platform=a,this.securityContext=l,this.http=c,this.sanitizer=d,this.DEFAULT_MARKED_OPTIONS={renderer:new Hw},this.DEFAULT_KATEX_OPTIONS={delimiters:[{left:"$$",right:"$$",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\[",right:"\\]",display:!0}]},this.DEFAULT_MERMAID_OPTIONS={startOnLoad:!1},this.DEFAULT_CLIPBOARD_OPTIONS={buttonComponent:void 0},this.DEFAULT_PARSE_OPTIONS={decodeHtml:!1,inline:!1,emoji:!1,mermaid:!1,markedOptions:void 0,disableSanitizer:!1},this.DEFAULT_RENDER_OPTIONS={clipboard:!1,clipboardOptions:void 0,katex:!1,katexOptions:void 0,mermaid:!1,mermaidOptions:void 0},this._reload$=new K.B,this.reload$=this._reload$.asObservable(),this.options=o}parse(e,i=this.DEFAULT_PARSE_OPTIONS){const{decodeHtml:o,inline:s,emoji:a,mermaid:l,disableSanitizer:c}=i,d={...this.options,...i.markedOptions},f=d.renderer||this.renderer||new Hw;this.extensions&&(this.renderer=this.extendsRendererForExtensions(f)),l&&(this.renderer=this.extendsRendererForMermaid(f));const v=this.trimIndentation(e),w=o?this.decodeHtml(v):v,x=a?this.parseEmoji(w):w,I=this.parseMarked(x,d,s);return(c?I:this.sanitizer.sanitize(this.securityContext,I))||""}render(e,i=this.DEFAULT_RENDER_OPTIONS,o){const{clipboard:s,clipboardOptions:a,katex:l,katexOptions:c,mermaid:d,mermaidOptions:f}=i;l&&this.renderKatex(e,{...this.DEFAULT_KATEX_OPTIONS,...c}),d&&this.renderMermaid(e,{...this.DEFAULT_MERMAID_OPTIONS,...this.mermaidOptions,...f}),s&&this.renderClipboard(e,o,{...this.DEFAULT_CLIPBOARD_OPTIONS,...this.clipboardOptions,...a}),this.highlight(e)}reload(){this._reload$.next()}getSource(e){if(!this.http)throw new Error("[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information");return this.http.get(e,{responseType:"text"}).pipe((0,Os.T)(i=>this.handleExtension(e,i)))}highlight(e){if(!Gr(this.platform)||typeof Prism>"u"||typeof Prism.highlightAllUnder>"u")return;e||(e=document);const i=e.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call(i,o=>o.classList.add("language-none")),Prism.highlightAllUnder(e)}decodeHtml(e){if(!Gr(this.platform))return e;const i=document.createElement("textarea");return i.innerHTML=e,i.value}extendsRendererForExtensions(e){const i=e;return!0===i.\u0275NgxMarkdownRendererExtendedForExtensions||(this.extensions?.length>0&&dc.use(...this.extensions),i.\u0275NgxMarkdownRendererExtendedForExtensions=!0),e}extendsRendererForMermaid(e){const i=e;if(!0===i.\u0275NgxMarkdownRendererExtendedForMermaid)return e;const o=e.code;return e.code=s=>"mermaid"===s.lang?`<div class="mermaid">${s.text}</div>`:o(s),i.\u0275NgxMarkdownRendererExtendedForMermaid=!0,e}handleExtension(e,i){const o=e.lastIndexOf("://"),s=o>-1?e.substring(o+4):e,a=s.lastIndexOf("/"),l=a>-1?s.substring(a+1).split("?")[0]:"",c=l.lastIndexOf("."),d=c>-1?l.substring(c+1):"";return d&&"md"!==d?"```"+d+"\n"+i+"\n```":i}parseMarked(e,i,o=!1){if(i.renderer){const s={...i.renderer};delete s.\u0275NgxMarkdownRendererExtendedForExtensions,delete s.\u0275NgxMarkdownRendererExtendedForMermaid,delete i.renderer,dc.use({renderer:s})}return o?dc.parseInline(e,i):dc.parse(e,i)}parseEmoji(e){if(!Gr(this.platform))return e;if(typeof joypixels>"u"||typeof joypixels.shortnameToUnicode>"u")throw new Error("[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information");return joypixels.shortnameToUnicode(e)}renderKatex(e,i){if(Gr(this.platform)){if(typeof katex>"u"||typeof renderMathInElement>"u")throw new Error("[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information");renderMathInElement(e,i)}}renderClipboard(e,i,o){if(!Gr(this.platform))return;if(typeof ClipboardJS>"u")throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* include Clipboard files to `angular.json` or use imports. See README for more information");if(!i)throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* provide the `viewContainerRef` parameter to `MarkdownService.render()` function");const{buttonComponent:s,buttonTemplate:a}=o,l=e.querySelectorAll("pre");for(let c=0;c<l.length;c++){const d=l.item(c),f=document.createElement("div");f.style.position="relative",d.parentNode.insertBefore(f,d),f.appendChild(d);const v=document.createElement("div");let w,x;if(v.classList.add("markdown-clipboard-toolbar"),v.style.position="absolute",v.style.top=".5em",v.style.right=".5em",v.style.zIndex="1",f.insertAdjacentElement("beforeend",v),f.onmouseenter=()=>v.classList.add("hover"),f.onmouseleave=()=>v.classList.remove("hover"),s){const I=i.createComponent(s);w=I.hostView,I.changeDetectorRef.markForCheck()}else if(a)w=i.createEmbeddedView(a);else{const I=i.createComponent(gte);w=I.hostView,I.changeDetectorRef.markForCheck()}w.rootNodes.forEach(I=>{v.appendChild(I),x=new ClipboardJS(I,{text:()=>d.innerText})}),w.onDestroy(()=>x.destroy())}}renderMermaid(e,i=this.DEFAULT_MERMAID_OPTIONS){if(!Gr(this.platform))return;if(typeof mermaid>"u"||typeof mermaid.initialize>"u")throw new Error("[ngx-markdown] When using the `mermaid` attribute you *have to* include Mermaid files to `angular.json` or use imports. See README for more information");const o=e.querySelectorAll(".mermaid");0!==o.length&&(mermaid.initialize(i),mermaid.run({nodes:o}))}trimIndentation(e){if(!e)return"";let i;return e.split("\n").map(o=>{let s=i;return o.length>0&&(s=isNaN(s)?o.search(/\S|$/):Math.min(o.search(/\S|$/),s)),isNaN(i)&&(i=s),s?o.substring(s):o}).join("\n")}static{this.\u0275fac=function(i){return new(i||t)(n.KVO(D1e,8),n.KVO(vte,8),n.KVO(_te,8),n.KVO(I1e,8),n.KVO(n.Agw),n.KVO(yte),n.KVO(Da,8),n.KVO(Ku))}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac})}}return t})(),nY=(()=>{class t{get disableSanitizer(){return this._disableSanitizer}set disableSanitizer(e){this._disableSanitizer=this.coerceBooleanProperty(e)}get inline(){return this._inline}set inline(e){this._inline=this.coerceBooleanProperty(e)}get clipboard(){return this._clipboard}set clipboard(e){this._clipboard=this.coerceBooleanProperty(e)}get emoji(){return this._emoji}set emoji(e){this._emoji=this.coerceBooleanProperty(e)}get katex(){return this._katex}set katex(e){this._katex=this.coerceBooleanProperty(e)}get mermaid(){return this._mermaid}set mermaid(e){this._mermaid=this.coerceBooleanProperty(e)}get lineHighlight(){return this._lineHighlight}set lineHighlight(e){this._lineHighlight=this.coerceBooleanProperty(e)}get lineNumbers(){return this._lineNumbers}set lineNumbers(e){this._lineNumbers=this.coerceBooleanProperty(e)}get commandLine(){return this._commandLine}set commandLine(e){this._commandLine=this.coerceBooleanProperty(e)}constructor(e,i,o){this.element=e,this.markdownService=i,this.viewContainerRef=o,this.error=new n.bkB,this.load=new n.bkB,this.ready=new n.bkB,this._clipboard=!1,this._commandLine=!1,this._disableSanitizer=!1,this._emoji=!1,this._inline=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1,this._mermaid=!1,this.destroyed$=new K.B}ngOnChanges(){this.loadContent()}loadContent(){null==this.data?null==this.src||this.handleSrc():this.handleData()}ngAfterViewInit(){!this.data&&!this.src&&this.handleTransclusion(),this.markdownService.reload$.pipe(j$(this.destroyed$)).subscribe(()=>this.loadContent())}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}render(e,i=!1){var o=this;return(0,lr.A)(function*(){const s={decodeHtml:i,inline:o.inline,emoji:o.emoji,mermaid:o.mermaid,disableSanitizer:o.disableSanitizer},a={clipboard:o.clipboard,clipboardOptions:o.getClipboardOptions(),katex:o.katex,katexOptions:o.katexOptions,mermaid:o.mermaid,mermaidOptions:o.mermaidOptions},l=yield o.markdownService.parse(e,s);o.element.nativeElement.innerHTML=l,o.handlePlugins(),o.markdownService.render(o.element.nativeElement,a,o.viewContainerRef),o.ready.emit()})()}coerceBooleanProperty(e){return null!=e&&"false"!=`${String(e)}`}getClipboardOptions(){if(this.clipboardButtonComponent||this.clipboardButtonTemplate)return{buttonComponent:this.clipboardButtonComponent,buttonTemplate:this.clipboardButtonTemplate}}handleData(){this.render(this.data)}handleSrc(){this.markdownService.getSource(this.src).subscribe({next:e=>{this.render(e).then(()=>{this.load.emit(e)})},error:e=>this.error.emit(e)})}handleTransclusion(){this.render(this.element.nativeElement.innerHTML,!0)}handlePlugins(){this.commandLine&&(this.setPluginClass(this.element.nativeElement,eY.CommandLine),this.setPluginOptions(this.element.nativeElement,{dataFilterOutput:this.filterOutput,dataHost:this.host,dataPrompt:this.prompt,dataOutput:this.output,dataUser:this.user})),this.lineHighlight&&this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset}),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,eY.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}setPluginClass(e,i){const o=e.querySelectorAll("pre");for(let s=0;s<o.length;s++){const a=i instanceof Array?i:[i];o.item(s).classList.add(...a)}}setPluginOptions(e,i){const o=e.querySelectorAll("pre");for(let s=0;s<o.length;s++)Object.keys(i).forEach(a=>{const l=i[a];if(l){const c=this.toLispCase(a);o.item(s).setAttribute(c,l.toString())}})}toLispCase(e){const i=e.match(/([A-Z])/g);if(!i)return e;let o=e.toString();for(let s=0,a=i.length;s<a;s++)o=o.replace(new RegExp(i[s]),"-"+i[s].toLowerCase());return"-"===o.slice(0,1)&&(o=o.slice(1)),o}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(n.aKT),n.rXU(tY),n.rXU(n.c1b))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["markdown"],["","markdown",""]],inputs:{data:"data",src:"src",disableSanitizer:"disableSanitizer",inline:"inline",clipboard:"clipboard",clipboardButtonComponent:"clipboardButtonComponent",clipboardButtonTemplate:"clipboardButtonTemplate",emoji:"emoji",katex:"katex",katexOptions:"katexOptions",mermaid:"mermaid",mermaidOptions:"mermaidOptions",lineHighlight:"lineHighlight",line:"line",lineOffset:"lineOffset",lineNumbers:"lineNumbers",start:"start",commandLine:"commandLine",filterOutput:"filterOutput",host:"host",prompt:"prompt",output:"output",user:"user"},outputs:{error:"error",load:"load",ready:"ready"},features:[n.OA$],ngContentSelectors:S1e,decls:1,vars:0,template:function(i,o){1&i&&(n.NAR(),n.SdG(0))},encapsulation:2})}}return t})();function N1e(t){return[tY,t?.loader??[],t?.clipboardOptions??[],t?.markedOptions??[],t?.mermaidOptions??[],{provide:vte,useValue:t?.markedExtensions??[]},{provide:yte,useValue:t?.sanitize??n.WPN.HTML}]}let G1e=(()=>{class t{static forRoot(e){return{ngModule:t,providers:[N1e(e)]}}static forChild(){return{ngModule:t}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=n.$C({type:t})}static{this.\u0275inj=n.G2t({imports:[gn]})}}return t})(),bte=(()=>{class t extends Gc{pathId;ngOnInit(){this.pathId="url(#"+Bl()+")"}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["TimesCircleIcon"]],features:[n.Vt3],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7 14C5.61553 14 4.26215 13.5895 3.11101 12.8203C1.95987 12.0511 1.06266 10.9579 0.532846 9.67879C0.00303296 8.3997 -0.13559 6.99224 0.134506 5.63437C0.404603 4.2765 1.07129 3.02922 2.05026 2.05026C3.02922 1.07129 4.2765 0.404603 5.63437 0.134506C6.99224 -0.13559 8.3997 0.00303296 9.67879 0.532846C10.9579 1.06266 12.0511 1.95987 12.8203 3.11101C13.5895 4.26215 14 5.61553 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM7 1.16667C5.84628 1.16667 4.71846 1.50879 3.75918 2.14976C2.79989 2.79074 2.05222 3.70178 1.61071 4.76768C1.16919 5.83358 1.05367 7.00647 1.27876 8.13803C1.50384 9.26958 2.05941 10.309 2.87521 11.1248C3.69102 11.9406 4.73042 12.4962 5.86198 12.7212C6.99353 12.9463 8.16642 12.8308 9.23232 12.3893C10.2982 11.9478 11.2093 11.2001 11.8502 10.2408C12.4912 9.28154 12.8333 8.15373 12.8333 7C12.8333 5.45291 12.2188 3.96918 11.1248 2.87521C10.0308 1.78125 8.5471 1.16667 7 1.16667ZM4.66662 9.91668C4.58998 9.91704 4.51404 9.90209 4.44325 9.87271C4.37246 9.84333 4.30826 9.8001 4.2544 9.74557C4.14516 9.6362 4.0838 9.48793 4.0838 9.33335C4.0838 9.17876 4.14516 9.0305 4.2544 8.92113L6.17553 7L4.25443 5.07891C4.15139 4.96832 4.09529 4.82207 4.09796 4.67094C4.10063 4.51982 4.16185 4.37563 4.26872 4.26876C4.3756 4.16188 4.51979 4.10066 4.67091 4.09799C4.82204 4.09532 4.96829 4.15142 5.07887 4.25446L6.99997 6.17556L8.92106 4.25446C9.03164 4.15142 9.1779 4.09532 9.32903 4.09799C9.48015 4.10066 9.62434 4.16188 9.73121 4.26876C9.83809 4.37563 9.89931 4.51982 9.90198 4.67094C9.90464 4.82207 9.84855 4.96832 9.74551 5.07891L7.82441 7L9.74554 8.92113C9.85478 9.0305 9.91614 9.17876 9.91614 9.33335C9.91614 9.48793 9.85478 9.6362 9.74554 9.74557C9.69168 9.8001 9.62748 9.84333 9.55669 9.87271C9.4859 9.90209 9.40996 9.91704 9.33332 9.91668C9.25668 9.91704 9.18073 9.90209 9.10995 9.87271C9.03916 9.84333 8.97495 9.8001 8.9211 9.74557L6.99997 7.82444L5.07884 9.74557C5.02499 9.8001 4.96078 9.84333 4.88999 9.87271C4.81921 9.90209 4.74326 9.91704 4.66662 9.91668Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,o){1&i&&(n.qSk(),n.j41(0,"svg",0)(1,"g"),n.nrm(2,"path",1),n.k0s(),n.j41(3,"defs")(4,"clipPath",2),n.nrm(5,"rect",3),n.k0s()()()),2&i&&(n.HbH(o.getClassNames()),n.BMQ("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),n.R7$(),n.BMQ("clip-path",o.pathId),n.R7$(3),n.Y8G("id",o.pathId))},encapsulation:2})}return t})();const B1e=({dt:t})=>`\n.p-chip {\n    display: inline-flex;\n    align-items: center;\n    background: ${t("chip.background")};\n    color: ${t("chip.color")};\n    border-radius: ${t("chip.border.radius")};\n    padding: ${t("chip.padding.y")} ${t("chip.padding.x")};\n    gap: ${t("chip.gap")};\n}\n\n.p-chip-icon {\n    color: ${t("chip.icon.color")};\n    font-size: ${t("chip.icon.font.size")};\n    width: ${t("chip.icon.size")};\n    height: ${t("chip.icon.size")};\n}\n\n.p-chip-image {\n    border-radius: 50%;\n    width: ${t("chip.image.width")};\n    height: ${t("chip.image.height")};\n    margin-left: calc(-1 * ${t("chip.padding.y")});\n}\n\n.p-chip:has(.p-chip-remove-icon) {\n    padding-inline-end: ${t("chip.padding.y")};\n}\n\n.p-chip:has(.p-chip-image) {\n    padding-top: calc(${t("chip.padding.y")} / 2);\n    padding-bottom: calc(${t("chip.padding.y")} / 2);\n}\n\n.p-chip-remove-icon {\n    cursor: pointer;\n    font-size: ${t("chip.remove.icon.font.size")};\n    width: ${t("chip.remove.icon.size")};\n    height: ${t("chip.remove.icon.size")};\n    color: ${t("chip.remove.icon.color")};\n    border-radius: 50%;\n    transition: outline-color ${t("chip.transition.duration")}, box-shadow ${t("chip.transition.duration")};\n    outline-color: transparent;\n}\n\n.p-chip-remove-icon:focus-visible {\n    box-shadow: ${t("chip.remove.icon.focus.ring.shadow")};\n    outline: ${t("chip.remove.icon.focus.ring.width")} ${t("chip.remove.icon.focus.ring.style")} ${t("chip.remove.icon.focus.ring.color")};\n    outline-offset: ${t("chip.remove.icon.focus.ring.offset")};\n}\n`,V1e={root:"p-chip p-component",image:"p-chip-image",icon:"p-chip-icon",label:"p-chip-label",removeIcon:"p-chip-remove-icon"};let Cte=(()=>{class t extends gs{name="chip";theme=B1e;classes=V1e;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const H1e=["removeicon"],U1e=["*"];function $1e(t,r){if(1&t){const e=n.RV6();n.j41(0,"img",4),n.bIt("error",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.imageError(o))}),n.k0s()}if(2&t){const e=n.XpG();n.Y8G("src",e.image,n.B4B)("alt",e.alt)}}function Y1e(t,r){if(1&t&&n.nrm(0,"span",6),2&t){const e=n.XpG(2);n.HbH(e.icon),n.Y8G("ngClass","p-chip-icon"),n.BMQ("data-pc-section","icon")}}function W1e(t,r){if(1&t&&n.DNE(0,Y1e,1,4,"span",5),2&t){const e=n.XpG();n.Y8G("ngIf",e.icon)}}function z1e(t,r){if(1&t&&(n.j41(0,"div",7),n.EFF(1),n.k0s()),2&t){const e=n.XpG();n.BMQ("data-pc-section","label"),n.R7$(),n.JRh(e.label)}}function q1e(t,r){if(1&t){const e=n.RV6();n.j41(0,"span",11),n.bIt("click",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.close(o))})("keydown",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.onKeydown(o))}),n.k0s()}if(2&t){const e=n.XpG(3);n.HbH(e.removeIcon),n.Y8G("ngClass","p-chip-remove-icon"),n.BMQ("data-pc-section","removeicon")("aria-label",e.removeAriaLabel)}}function X1e(t,r){if(1&t){const e=n.RV6();n.j41(0,"TimesCircleIcon",12),n.bIt("click",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.close(o))})("keydown",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.onKeydown(o))}),n.k0s()}if(2&t){const e=n.XpG(3);n.HbH("p-chip-remove-icon"),n.BMQ("data-pc-section","removeicon")("aria-label",e.removeAriaLabel)}}function K1e(t,r){if(1&t&&(n.qex(0),n.DNE(1,q1e,1,5,"span",9)(2,X1e,1,4,"TimesCircleIcon",10),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngIf",e.removeIcon),n.R7$(),n.Y8G("ngIf",!e.removeIcon)}}function Q1e(t,r){}function J1e(t,r){1&t&&n.DNE(0,Q1e,0,0,"ng-template")}function Z1e(t,r){if(1&t){const e=n.RV6();n.j41(0,"span",13),n.bIt("click",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.close(o))})("keydown",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onKeydown(o))}),n.DNE(1,J1e,1,0,null,14),n.k0s()}if(2&t){const e=n.XpG(2);n.BMQ("data-pc-section","removeicon")("aria-label",e.removeAriaLabel),n.R7$(),n.Y8G("ngTemplateOutlet",e.removeIconTemplate||e._removeIconTemplate)}}function ebe(t,r){if(1&t&&(n.qex(0),n.DNE(1,K1e,3,2,"ng-container",3)(2,Z1e,2,3,"span",8),n.bVm()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngIf",!e.removeIconTemplate&&!e._removeIconTemplate),n.R7$(),n.Y8G("ngIf",e.removeIconTemplate||e._removeIconTemplate)}}let S8=(()=>{class t extends jo{label;icon;image;alt;style;styleClass;removable=!1;removeIcon;onRemove=new n.bkB;onImageError=new n.bkB;visible=!0;get removeAriaLabel(){return this.config.getTranslation(Xs.ARIA).removeLabel}get chipProps(){return this._chipProps}set chipProps(e){this._chipProps=e,e&&"object"==typeof e&&Object.entries(e).forEach(([i,o])=>this[`_${i}`]!==o&&(this[`_${i}`]=o))}_chipProps;_componentStyle=(0,n.WQX)(Cte);removeIconTemplate;templates;_removeIconTemplate;ngAfterContentInit(){this.templates.forEach(e=>{e.getType(),this._removeIconTemplate=e.template})}ngOnChanges(e){if(super.ngOnChanges(e),e.chipProps&&e.chipProps.currentValue){const{currentValue:i}=e.chipProps;void 0!==i.label&&(this.label=i.label),void 0!==i.icon&&(this.icon=i.icon),void 0!==i.image&&(this.image=i.image),void 0!==i.alt&&(this.alt=i.alt),void 0!==i.style&&(this.style=i.style),void 0!==i.styleClass&&(this.styleClass=i.styleClass),void 0!==i.removable&&(this.removable=i.removable),void 0!==i.removeIcon&&(this.removeIcon=i.removeIcon)}}containerClass(){let e="p-chip p-component";return this.styleClass&&(e+=` ${this.styleClass}`),e}close(e){this.visible=!1,this.onRemove.emit(e)}onKeydown(e){("Enter"===e.key||"Backspace"===e.key)&&this.close(e)}imageError(e){this.onImageError.emit(e)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["p-chip"]],contentQueries:function(i,o,s){if(1&i&&(n.wni(s,H1e,4),n.wni(s,hs,4)),2&i){let a;n.mGM(a=n.lsd())&&(o.removeIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.templates=a)}},hostVars:9,hostBindings:function(i,o){2&i&&(n.BMQ("data-pc-name","chip")("aria-label",o.label)("data-pc-section","root"),n.Aen(o.style),n.HbH(o.containerClass()),n.xc7("display",!o.visible&&"none"))},inputs:{label:"label",icon:"icon",image:"image",alt:"alt",style:"style",styleClass:"styleClass",removable:[2,"removable","removable",n.L39],removeIcon:"removeIcon",chipProps:"chipProps"},outputs:{onRemove:"onRemove",onImageError:"onImageError"},features:[n.Jv_([Cte]),n.GFd,n.Vt3,n.OA$],ngContentSelectors:U1e,decls:6,vars:4,consts:[["iconTemplate",""],["class","p-chip-image",3,"src","alt","error",4,"ngIf","ngIfElse"],["class","p-chip-label",4,"ngIf"],[4,"ngIf"],[1,"p-chip-image",3,"error","src","alt"],[3,"class","ngClass",4,"ngIf"],[3,"ngClass"],[1,"p-chip-label"],["tabindex","0","class","p-chip-remove-icon","role","button",3,"click","keydown",4,"ngIf"],["tabindex","0","role","button",3,"class","ngClass","click","keydown",4,"ngIf"],["tabindex","0","role","button",3,"class","click","keydown",4,"ngIf"],["tabindex","0","role","button",3,"click","keydown","ngClass"],["tabindex","0","role","button",3,"click","keydown"],["tabindex","0","role","button",1,"p-chip-remove-icon",3,"click","keydown"],[4,"ngTemplateOutlet"]],template:function(i,o){if(1&i&&(n.NAR(),n.SdG(0),n.DNE(1,$1e,1,2,"img",1)(2,W1e,1,1,"ng-template",null,0,n.C5r)(4,z1e,2,2,"div",2)(5,ebe,3,2,"ng-container",3)),2&i){const s=n.sdS(3);n.R7$(),n.Y8G("ngIf",o.image)("ngIfElse",s),n.R7$(3),n.Y8G("ngIf",o.label),n.R7$(),n.Y8G("ngIf",o.removable)}},dependencies:[gn,bi,fi,uo,bte,Di],encapsulation:2,changeDetection:0})}return t})(),wte=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({imports:[S8,Di,Di]})}return t})();const tbe=({dt:t})=>`\n.p-autocomplete {\n    display: inline-flex;\n}\n\n.p-autocomplete-loader {\n    position: absolute;\n    top: 50%;\n    margin-top: -0.5rem;\n    inset-inline-end: ${t("autocomplete.padding.x")};\n}\n\n.p-autocomplete:has(.p-autocomplete-dropdown) .p-autocomplete-loader {\n    inset-inline-end: calc(${t("autocomplete.dropdown.width")} + ${t("autocomplete.padding.x")});\n}\n\n.p-autocomplete:has(.p-autocomplete-dropdown) .p-autocomplete-input {\n    flex: 1 1 auto;\n    width: 1%;\n}\n\n.p-autocomplete:has(.p-autocomplete-dropdown) .p-autocomplete-input,\n.p-autocomplete:has(.p-autocomplete-dropdown) .p-autocomplete-input-multiple {\n    border-start-end-radius: 0;\n    border-end-end-radius: 0;\n}\n\n.p-autocomplete-dropdown {\n    cursor: pointer;\n    display: inline-flex;\n    user-select: none;\n    align-items: center;\n    justify-content: center;\n    overflow: hidden;\n    position: relative;\n    width: ${t("autocomplete.dropdown.width")};\n    border-start-end-radius: ${t("autocomplete.dropdown.border.radius")};\n    border-end-end-radius: ${t("autocomplete.dropdown.border.radius")};\n    background: ${t("autocomplete.dropdown.background")};\n    border: 1px solid ${t("autocomplete.dropdown.border.color")};\n    border-inline-start: 0 none;\n    color: ${t("autocomplete.dropdown.color")};\n    transition: background ${t("autocomplete.transition.duration")}, color ${t("autocomplete.transition.duration")}, border-color ${t("autocomplete.transition.duration")}, outline-color ${t("autocomplete.transition.duration")}, box-shadow ${t("autocomplete.transition.duration")};\n    outline-color: transparent;\n}\n\n.p-autocomplete-dropdown:not(:disabled):hover {\n    background: ${t("autocomplete.dropdown.hover.background")};\n    border-color: ${t("autocomplete.dropdown.hover.border.color")};\n    color: ${t("autocomplete.dropdown.hover.color")};\n}\n\n.p-autocomplete-dropdown:not(:disabled):active {\n    background: ${t("autocomplete.dropdown.active.background")};\n    border-color: ${t("autocomplete.dropdown.active.border.color")};\n    color: ${t("autocomplete.dropdown.active.color")};\n}\n\n.p-autocomplete-dropdown:focus-visible {\n    box-shadow: ${t("autocomplete.dropdown.focus.ring.shadow")};\n    outline: ${t("autocomplete.dropdown.focus.ring.width")} ${t("autocomplete.dropdown.focus.ring.style")} ${t("autocomplete.dropdown.focus.ring.color")};\n    outline-offset: ${t("autocomplete.dropdown.focus.ring.offset")};\n}\n\n.p-autocomplete .p-autocomplete-overlay {\n    min-width: 100%;\n}\n\n.p-autocomplete-overlay {\n    background: ${t("autocomplete.overlay.background")};\n    color: ${t("autocomplete.overlay.color")};\n    border: 1px solid ${t("autocomplete.overlay.border.color")};\n    border-radius: ${t("autocomplete.overlay.border.radius")};\n    box-shadow: ${t("autocomplete.overlay.shadow")};\n}\n\n.p-autocomplete-list-container {\n    overflow: auto;\n}\n\n.p-autocomplete-list {\n    margin: 0;\n    list-style-type: none;\n    display: flex;\n    flex-direction: column;\n    gap: ${t("autocomplete.list.gap")};\n    padding: ${t("autocomplete.list.padding")};\n}\n\n.p-autocomplete-option {\n    cursor: pointer;\n    white-space: nowrap;\n    position: relative;\n    overflow: hidden;\n    display: flex;\n    align-items: center;\n    padding: ${t("autocomplete.option.padding")};\n    border: 0 none;\n    color: ${t("autocomplete.option.color")};\n    background: transparent;\n    transition: background ${t("autocomplete.transition.duration")}, color ${t("autocomplete.transition.duration")}, border-color ${t("autocomplete.transition.duration")};\n    border-radius: ${t("autocomplete.option.border.radius")};\n}\n\n.p-autocomplete-option:not(.p-autocomplete-option-selected):not(.p-disabled).p-focus {\n    background: ${t("autocomplete.option.focus.background")};\n    color: ${t("autocomplete.option.focus.color")};\n}\n\n.p-autocomplete-option-selected {\n    background: ${t("autocomplete.option.selected.background")};\n    color: ${t("autocomplete.option.selected.color")};\n}\n\n.p-autocomplete-option-selected.p-focus {\n    background: ${t("autocomplete.option.selected.focus.background")};\n    color: ${t("autocomplete.option.selected.focus.color")};\n}\n\n.p-autocomplete-option-group {\n    margin: 0;\n    padding: ${t("autocomplete.option.group.padding")};\n    color: ${t("autocomplete.option.group.color")};\n    background: ${t("autocomplete.option.group.background")};\n    font-weight: ${t("autocomplete.option.group.font.weight")};\n}\n\n.p-autocomplete-input-multiple {\n    margin: 0;\n    list-style-type: none;\n    cursor: text;\n    overflow: hidden;\n    display: flex;\n    align-items: center;\n    flex-wrap: wrap;\n    padding: calc(${t("autocomplete.padding.y")} / 2) ${t("autocomplete.padding.x")};\n    gap: calc(${t("autocomplete.padding.y")} / 2);\n    color: ${t("autocomplete.color")};\n    background: ${t("autocomplete.background")};\n    border: 1px solid ${t("autocomplete.border.color")};\n    border-radius: ${t("autocomplete.border.radius")};\n    width: 100%;\n    transition: background ${t("autocomplete.transition.duration")}, color ${t("autocomplete.transition.duration")}, border-color ${t("autocomplete.transition.duration")}, outline-color ${t("autocomplete.transition.duration")}, box-shadow ${t("autocomplete.transition.duration")};\n    outline-color: transparent;\n    box-shadow: ${t("autocomplete.shadow")};\n}\n\n.p-autocomplete:not(.p-disabled):hover .p-autocomplete-input-multiple {\n    border-color: ${t("autocomplete.hover.border.color")};\n}\n\n.p-autocomplete:not(.p-disabled).p-focus .p-autocomplete-input-multiple {\n    border-color: ${t("autocomplete.focus.border.color")};\n    box-shadow: ${t("autocomplete.focus.ring.shadow")};\n    outline: ${t("autocomplete.focus.ring.width")} ${t("autocomplete.focus.ring.style")} ${t("autocomplete.focus.ring.color")};\n    outline-offset: ${t("autocomplete.focus.ring.offset")};\n}\n\n.p-autocomplete.p-invalid .p-autocomplete-input-multiple {\n    border-color: ${t("autocomplete.invalid.border.color")};\n}\n\n.p-variant-filled.p-autocomplete-input-multiple {\n    background: ${t("autocomplete.filled.background")};\n}\n\n.p-autocomplete:not(.p-disabled):hover .p-variant-filled.p-autocomplete-input-multiple {\n    background: ${t("autocomplete.filled.hover.background")};\n}\n\n.p-autocomplete:not(.p-disabled).p-focus .p-variant-filled.p-autocomplete-input-multiple  {\n    background: ${t("autocomplete.filled.focus.background")};\n}\n\n.p-autocomplete.p-disabled .p-autocomplete-input-multiple {\n    opacity: 1;\n    background: ${t("autocomplete.disabled.background")};\n    color: ${t("autocomplete.disabled.color")};\n}\n\n.p-autocomplete-chip.p-chip {\n    padding-block-start: calc(${t("autocomplete.padding.y")} / 2);\n    padding-block-end: calc(${t("autocomplete.padding.y")} / 2);\n    border-radius: ${t("autocomplete.chip.border.radius")};\n}\n\n.p-autocomplete-input-multiple:has(.p-autocomplete-chip) {\n    padding-inline-start: calc(${t("autocomplete.padding.y")} / 2);\n    padding-inline-end: calc(${t("autocomplete.padding.y")} / 2);\n}\n\n.p-autocomplete-chip-item.p-focus .p-autocomplete-chip {\n    background: ${t("autocomplete.chip.focus.background")};\n    color: ${t("autocomplete.chip.focus.color")};\n}\n\n.p-autocomplete-input-chip {\n    flex: 1 1 auto;\n    display: inline-flex;\n    padding-block-start: calc(${t("autocomplete.padding.y")} / 2);\n    padding-block-end: calc(${t("autocomplete.padding.y")} / 2);\n}\n\n.p-autocomplete-input-chip input {\n    border: 0 none;\n    outline: 0 none;\n    background: transparent;\n    margin: 0;\n    padding: 0;\n    box-shadow: none;\n    border-radius: 0;\n    width: 100%;\n    font-family: inherit;\n    font-feature-settings: inherit;\n    font-size: 1rem;\n    color: inherit;\n}\n\n.p-autocomplete-input-chip input::placeholder {\n    color: ${t("autocomplete.placeholder.color")};\n}\n\n.p-autocomplete-empty-message {\n    padding: ${t("autocomplete.empty.message.padding")};\n}\n\n.p-autocomplete-fluid {\n    display: flex;\n}\n\n.p-autocomplete-fluid:has(.p-autocomplete-dropdown) .p-autocomplete-input {\n    width: 1%;\n}\n\n.p-autocomplete:has(.p-inputtext-sm) .p-autocomplete-dropdown {\n    width: ${t("autocomplete.dropdown.sm.width")};\n}\n\n.p-autocomplete:has(.p-inputtext-sm) .p-autocomplete-dropdown .p-icon {\n    font-size: ${t("form.field.sm.font.size")};\n    width: ${t("form.field.sm.font.size")};\n    height: ${t("form.field.sm.font.size")};\n}\n\n.p-autocomplete:has(.p-inputtext-lg) .p-autocomplete-dropdown {\n    width: ${t("autocomplete.dropdown.lg.width")};\n}\n\n.p-autocomplete:has(.p-inputtext-lg) .p-autocomplete-dropdown .p-icon {\n    font-size: ${t("form.field.lg.font.size")};\n    width: ${t("form.field.lg.font.size")};\n    height: ${t("form.field.lg.font.size")};\n}\n\n.p-autocomplete-clear-icon {\n    position: absolute;\n    top: 50%;\n    margin-top: -0.5rem;\n    cursor: pointer;\n    right: ${t("autocomplete.padding.x")};\n    color: ${t("autocomplete.dropdown.color")};\n}\n\n.p-autocomplete:has(.p-autocomplete-dropdown) .p-autocomplete-clear-icon {\n    right: calc(${t("autocomplete.padding.x")} + ${t("autocomplete.dropdown.width")});\n}\n\np-autocomplete.ng-invalid.ng-dirty .p-autocomplete-input,\np-autocomplete.ng-invalid.ng-dirty .p-autocomplete-input-multiple {\n    border-color: ${t("autocomplete.invalid.border.color")};\n}\n\np-autocomplete.ng-invalid.ng-dirty .p-autocomplete-input:enabled:focus,\np-autocomplete.ng-invalid.ng-dirty:not(.p-disabled).p-focus .p-autocomplete-input-multiple {\n    border-color: ${t("autocomplete.focus.border.color")};\n}\n\np-autocomplete.ng-invalid.ng-dirty .p-autocomplete-input-chip input::placeholder {\n    color: ${t("autocomplete.invalid.placeholder.color")};\n}\n\np-autocomplete.ng-invalid.ng-dirty .p-autocomplete-input::placeholder {\n    color: ${t("autocomplete.invalid.placeholder.color")};\n}`,nbe={root:{position:"relative"}},ibe={root:({instance:t})=>({"p-autocomplete p-component p-inputwrapper":!0,"p-disabled":t.disabled,"p-focus":t.focused,"p-inputwrapper-filled":t.filled,"p-inputwrapper-focus":t.focused&&!t.disabled||t.autofocus||t.overlayVisible,"p-autocomplete-open":t.overlayVisible,"p-autocomplete-clearable":t.showClear&&!t.disabled,"p-autocomplete-fluid":t.hasFluid}),pcInput:"p-autocomplete-input",inputMultiple:({instance:t})=>({"p-autocomplete-input-multiple":!0,"p-variant-filled":t.variant?"filled"===t.variant:"filled"===t.config.inputStyle()}),chipItem:({instance:t,i:r})=>["p-autocomplete-chip-item",{"p-focus":t.focusedMultipleOptionIndex===r}],pcChip:"p-autocomplete-chip",chipIcon:"p-autocomplete-chip-icon",inputChip:"p-autocomplete-input-chip",loader:"p-autocomplete-loader",dropdown:"p-autocomplete-dropdown",overlay:"p-autocomplete-overlay p-component",list:"p-autocomplete-list",optionGroup:"p-autocomplete-option-group",option:({instance:t,option:r,i:e,getItemOptions:i})=>({"p-autocomplete-option":!0,"p-autocomplete-option-selected":t.isSelected(r),"p-focus":t.focusedOptionIndex===t.getOptionIndex(e,i),"p-disabled":t.isOptionDisabled(r)}),emptyMessage:"p-autocomplete-empty-message"};let Tte=(()=>{class t extends gs{name="autocomplete";theme=tbe;classes=ibe;inlineStyles=nbe;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const obe=["item"],sbe=["empty"],abe=["header"],lbe=["footer"],cbe=["selecteditem"],ube=["group"],dbe=["loader"],pbe=["removeicon"],hbe=["loadingicon"],fbe=["clearicon"],mbe=["dropdownicon"],gbe=["container"],vbe=["focusInput"],_be=["multiIn"],ybe=["multiContainer"],bbe=["ddBtn"],Cbe=["items"],wbe=["scroller"],Tbe=["overlay"],Sbe=t=>({"p-autocomplete-chip-item":!0,"p-focus":t}),Ste=t=>({$implicit:t}),xbe=()=>({class:"p-autocomplete-chip-icon"}),x8=t=>({height:t}),xte=(t,r)=>({$implicit:t,options:r}),Ebe=t=>({options:t}),Dbe=()=>({}),kbe=(t,r)=>({$implicit:t,index:r});function Ibe(t,r){if(1&t){const e=n.RV6();n.j41(0,"input",19,3),n.bIt("input",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onInput(o))})("keydown",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onKeyDown(o))})("change",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onInputChange(o))})("focus",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onInputFocus(o))})("blur",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onInputBlur(o))})("paste",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onInputPaste(o))})("keyup",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onInputKeyUp(o))}),n.k0s()}if(2&t){let e;const i=n.XpG();n.HbH(i.inputStyleClass),n.Y8G("pAutoFocus",i.autofocus)("ngClass","p-autocomplete-input")("ngStyle",i.inputStyle)("type",i.type)("variant",i.variant)("autocomplete",i.autocomplete)("required",i.required)("name",i.name)("pSize",i.size)("tabindex",i.disabled?-1:i.tabindex)("readonly",i.readonly)("disabled",i.disabled)("fluid",i.hasFluid),n.BMQ("value",i.inputValue())("id",i.inputId)("placeholder",i.placeholder)("maxlength",i.maxlength)("aria-label",i.ariaLabel)("aria-labelledby",i.ariaLabelledBy)("aria-required",i.required)("aria-expanded",null!==(e=i.overlayVisible)&&void 0!==e&&e)("aria-controls",i.overlayVisible?i.id+"_list":null)("aria-activedescendant",i.focused?i.focusedOptionId:void 0)}}function Abe(t,r){if(1&t){const e=n.RV6();n.j41(0,"TimesIcon",22),n.bIt("click",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.clear())}),n.k0s()}2&t&&(n.Y8G("styleClass","p-autocomplete-clear-icon"),n.BMQ("aria-hidden",!0))}function Mbe(t,r){}function Rbe(t,r){1&t&&n.DNE(0,Mbe,0,0,"ng-template")}function Obe(t,r){if(1&t){const e=n.RV6();n.j41(0,"span",23),n.bIt("click",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.clear())}),n.DNE(1,Rbe,1,0,null,24),n.k0s()}if(2&t){const e=n.XpG(2);n.BMQ("aria-hidden",!0),n.R7$(),n.Y8G("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)}}function Fbe(t,r){if(1&t&&(n.qex(0),n.DNE(1,Abe,1,2,"TimesIcon",20)(2,Obe,2,2,"span",21),n.bVm()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),n.R7$(),n.Y8G("ngIf",e.clearIconTemplate||e._clearIconTemplate)}}function Pbe(t,r){1&t&&n.eu8(0)}function Lbe(t,r){if(1&t){const e=n.RV6();n.j41(0,"span",33),n.bIt("click",function(o){n.eBV(e);const s=n.XpG(3).index,a=n.XpG(2);return n.Njj(a.readonly?"":a.removeOption(o,s))}),n.nrm(1,"TimesCircleIcon",34),n.k0s()}2&t&&(n.R7$(),n.Y8G("styleClass","p-autocomplete-chip-icon"),n.BMQ("aria-hidden",!0))}function Nbe(t,r){1&t&&(n.qex(0),n.DNE(1,Lbe,2,2,"ng-template",null,6,n.C5r),n.bVm())}function Gbe(t,r){if(1&t&&(n.j41(0,"p-chip",32),n.DNE(1,Nbe,3,0,"ng-container",15),n.k0s()),2&t){const e=n.XpG().$implicit,i=n.XpG(2);n.Y8G("label",i.getOptionLabel(e))("removable",!0),n.R7$(),n.Y8G("ngIf",!i.removeIconTemplate&&!i._removeIconTemplate)}}function Bbe(t,r){}function Vbe(t,r){1&t&&n.DNE(0,Bbe,0,0,"ng-template")}function jbe(t,r){if(1&t&&(n.j41(0,"span"),n.DNE(1,Vbe,1,0,null,30),n.k0s()),2&t){const e=n.XpG(3);n.BMQ("aria-hidden",!0),n.R7$(),n.Y8G("ngTemplateOutlet",e.removeIconTemplate||e._removeIconTemplate)("ngTemplateOutletContext",n.lJ4(3,xbe))}}function Hbe(t,r){if(1&t&&(n.j41(0,"li",29,5),n.DNE(2,Pbe,1,0,"ng-container",30)(3,Gbe,2,3,"p-chip",31)(4,jbe,2,4,"span",15),n.k0s()),2&t){const e=r.$implicit,i=r.index,o=n.XpG(2);n.Y8G("ngClass",n.eq3(10,Sbe,o.focusedMultipleOptionIndex()===i)),n.BMQ("id",o.id+"_multiple_option_"+i)("aria-label",o.getOptionLabel(e))("aria-setsize",o.modelValue().length)("aria-posinset",i+1)("aria-selected",!0),n.R7$(2),n.Y8G("ngTemplateOutlet",o.selectedItemTemplate||o._selectedItemTemplate)("ngTemplateOutletContext",n.eq3(12,Ste,e)),n.R7$(),n.Y8G("ngIf",!o.selectedItemTemplate&&!o._selectedItemTemplate),n.R7$(),n.Y8G("ngIf",o.removeIconTemplate||o._removeIconTemplate)}}function Ube(t,r){if(1&t){const e=n.RV6();n.j41(0,"ul",25,4),n.bIt("focus",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onMultipleContainerFocus(o))})("blur",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onMultipleContainerBlur(o))})("keydown",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onMultipleContainerKeyDown(o))}),n.DNE(2,Hbe,5,14,"li",26),n.j41(3,"li",27)(4,"input",28,3),n.bIt("input",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onInput(o))})("keydown",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onKeyDown(o))})("change",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onInputChange(o))})("focus",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onInputFocus(o))})("blur",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onInputBlur(o))})("paste",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onInputPaste(o))})("keyup",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onInputKeyUp(o))}),n.k0s()()()}if(2&t){let e;const i=n.XpG();n.Y8G("ngClass",i.inputMultipleClass)("tabindex",-1),n.BMQ("aria-orientation","horizontal")("aria-activedescendant",i.focused?i.focusedMultipleOptionId:void 0),n.R7$(2),n.Y8G("ngForOf",i.modelValue()),n.R7$(2),n.HbH(i.inputStyleClass),n.Y8G("pAutoFocus",i.autofocus)("ngClass",i.inputClass)("ngStyle",i.inputStyle)("autocomplete",i.autocomplete)("required",i.required)("tabindex",i.disabled?-1:i.tabindex)("readonly",i.readonly)("disabled",i.disabled),n.BMQ("type",i.type)("id",i.inputId)("name",i.name)("placeholder",i.filled?null:i.placeholder)("maxlength",i.maxlength)("aria-label",i.ariaLabel)("aria-labelledby",i.ariaLabelledBy)("aria-required",i.required)("aria-expanded",null!==(e=i.overlayVisible)&&void 0!==e&&e)("aria-controls",i.overlayVisible?i.id+"_list":null)("aria-activedescendant",i.focused?i.focusedOptionId:void 0)}}function $be(t,r){1&t&&n.nrm(0,"SpinnerIcon",37),2&t&&(n.Y8G("styleClass","p-autocomplete-loader")("spin",!0),n.BMQ("aria-hidden",!0))}function Ybe(t,r){}function Wbe(t,r){1&t&&n.DNE(0,Ybe,0,0,"ng-template")}function zbe(t,r){if(1&t&&(n.j41(0,"span",38),n.DNE(1,Wbe,1,0,null,24),n.k0s()),2&t){const e=n.XpG(2);n.BMQ("aria-hidden",!0),n.R7$(),n.Y8G("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function qbe(t,r){if(1&t&&(n.qex(0),n.DNE(1,$be,1,3,"SpinnerIcon",35)(2,zbe,2,2,"span",36),n.bVm()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate),n.R7$(),n.Y8G("ngIf",e.loadingIconTemplate||e._loadingIconTemplate)}}function Xbe(t,r){if(1&t&&n.nrm(0,"span",41),2&t){const e=n.XpG(2);n.Y8G("ngClass",e.dropdownIcon),n.BMQ("aria-hidden",!0)}}function Kbe(t,r){1&t&&n.nrm(0,"ChevronDownIcon")}function Qbe(t,r){}function Jbe(t,r){1&t&&n.DNE(0,Qbe,0,0,"ng-template")}function Zbe(t,r){if(1&t&&(n.qex(0),n.DNE(1,Kbe,1,0,"ChevronDownIcon",15)(2,Jbe,1,0,null,24),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngIf",!e.dropdownIconTemplate&&!e._dropdownIconTemplate),n.R7$(),n.Y8G("ngTemplateOutlet",e.dropdownIconTemplate||e._dropdownIconTemplate)}}function eCe(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",39,7),n.bIt("click",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.handleDropdownClick(o))}),n.DNE(2,Xbe,1,2,"span",40)(3,Zbe,3,2,"ng-container",15),n.k0s()}if(2&t){const e=n.XpG();n.Y8G("disabled",e.disabled),n.BMQ("aria-label",e.dropdownAriaLabel)("tabindex",e.tabindex),n.R7$(2),n.Y8G("ngIf",e.dropdownIcon),n.R7$(),n.Y8G("ngIf",!e.dropdownIcon)}}function tCe(t,r){1&t&&n.eu8(0)}function nCe(t,r){1&t&&n.eu8(0)}function iCe(t,r){if(1&t&&n.DNE(0,nCe,1,0,"ng-container",30),2&t){const e=r.$implicit,i=r.options;n.XpG(2);const o=n.sdS(6);n.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",n.l_i(2,xte,e,i))}}function rCe(t,r){1&t&&n.eu8(0)}function oCe(t,r){if(1&t&&n.DNE(0,rCe,1,0,"ng-container",30),2&t){const e=r.options,i=n.XpG(4);n.Y8G("ngTemplateOutlet",i.loaderTemplate||i._loaderTemplate)("ngTemplateOutletContext",n.eq3(2,Ebe,e))}}function sCe(t,r){1&t&&(n.qex(0),n.DNE(1,oCe,1,4,"ng-template",null,10,n.C5r),n.bVm())}function aCe(t,r){if(1&t){const e=n.RV6();n.j41(0,"p-scroller",46,9),n.bIt("onLazyLoad",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onLazyLoad.emit(o))}),n.DNE(2,iCe,1,5,"ng-template",null,2,n.C5r)(4,sCe,3,0,"ng-container",15),n.k0s()}if(2&t){const e=n.XpG(2);n.Aen(n.eq3(8,x8,e.scrollHeight)),n.Y8G("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize||e._itemSize)("autoSize",!0)("lazy",e.lazy)("options",e.virtualScrollOptions),n.R7$(4),n.Y8G("ngIf",e.loaderTemplate||e._loaderTemplate)}}function lCe(t,r){1&t&&n.eu8(0)}function cCe(t,r){if(1&t&&(n.qex(0),n.DNE(1,lCe,1,0,"ng-container",30),n.bVm()),2&t){n.XpG();const e=n.sdS(6),i=n.XpG();n.R7$(),n.Y8G("ngTemplateOutlet",e)("ngTemplateOutletContext",n.l_i(3,xte,i.visibleOptions(),n.lJ4(2,Dbe)))}}function uCe(t,r){if(1&t&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&t){const e=n.XpG(2).$implicit,i=n.XpG(3);n.R7$(),n.JRh(i.getOptionGroupLabel(e.optionGroup))}}function dCe(t,r){1&t&&n.eu8(0)}function pCe(t,r){if(1&t&&(n.qex(0),n.j41(1,"li",50),n.DNE(2,uCe,2,1,"span",15)(3,dCe,1,0,"ng-container",30),n.k0s(),n.bVm()),2&t){const e=n.XpG(),i=e.$implicit,o=e.index,s=n.XpG().options,a=n.XpG(2);n.R7$(),n.Y8G("ngStyle",n.eq3(5,x8,s.itemSize+"px")),n.BMQ("id",a.id+"_"+a.getOptionIndex(o,s)),n.R7$(),n.Y8G("ngIf",!a.groupTemplate),n.R7$(),n.Y8G("ngTemplateOutlet",a.groupTemplate)("ngTemplateOutletContext",n.eq3(7,Ste,i.optionGroup))}}function hCe(t,r){if(1&t&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&t){const e=n.XpG(2).$implicit,i=n.XpG(3);n.R7$(),n.JRh(i.getOptionLabel(e))}}function fCe(t,r){1&t&&n.eu8(0)}function mCe(t,r){if(1&t){const e=n.RV6();n.qex(0),n.j41(1,"li",51),n.bIt("click",function(o){n.eBV(e);const s=n.XpG().$implicit,a=n.XpG(3);return n.Njj(a.onOptionSelect(o,s))})("mouseenter",function(o){n.eBV(e);const s=n.XpG().index,a=n.XpG().options,l=n.XpG(2);return n.Njj(l.onOptionMouseEnter(o,l.getOptionIndex(s,a)))}),n.DNE(2,hCe,2,1,"span",15)(3,fCe,1,0,"ng-container",30),n.k0s(),n.bVm()}if(2&t){const e=n.XpG(),i=e.$implicit,o=e.index,s=n.XpG().options,a=n.XpG(2);n.R7$(),n.Y8G("ngStyle",n.eq3(12,x8,s.itemSize+"px"))("ngClass",a.optionClass(i,o,s)),n.BMQ("id",a.id+"_"+a.getOptionIndex(o,s))("aria-label",a.getOptionLabel(i))("aria-selected",a.isSelected(i))("aria-disabled",a.isOptionDisabled(i))("data-p-focused",a.focusedOptionIndex()===a.getOptionIndex(o,s))("aria-setsize",a.ariaSetSize)("aria-posinset",a.getAriaPosInset(a.getOptionIndex(o,s))),n.R7$(),n.Y8G("ngIf",!a.itemTemplate&&!a._itemTemplate),n.R7$(),n.Y8G("ngTemplateOutlet",a.itemTemplate||a._itemTemplate)("ngTemplateOutletContext",n.l_i(14,kbe,i,s.getOptions?s.getOptions(o):o))}}function gCe(t,r){if(1&t&&n.DNE(0,pCe,4,9,"ng-container",15)(1,mCe,4,17,"ng-container",15),2&t){const e=r.$implicit,i=n.XpG(3);n.Y8G("ngIf",i.isOptionGroup(e)),n.R7$(),n.Y8G("ngIf",!i.isOptionGroup(e))}}function vCe(t,r){if(1&t&&(n.qex(0),n.EFF(1),n.bVm()),2&t){const e=n.XpG(4);n.R7$(),n.SpI(" ",e.searchResultMessageText," ")}}function _Ce(t,r){1&t&&n.eu8(0,null,12)}function yCe(t,r){if(1&t&&(n.j41(0,"li",52),n.DNE(1,vCe,2,1,"ng-container",53)(2,_Ce,2,0,"ng-container",24),n.k0s()),2&t){const e=n.XpG().options,i=n.XpG(2);n.Y8G("ngStyle",n.eq3(4,x8,e.itemSize+"px")),n.R7$(),n.Y8G("ngIf",!i.emptyTemplate&&!i._emptyTemplate)("ngIfElse",i.empty),n.R7$(),n.Y8G("ngTemplateOutlet",i.emptyTemplate||i._emptyTemplate)}}function bCe(t,r){if(1&t&&(n.j41(0,"ul",47,11),n.DNE(2,gCe,2,2,"ng-template",48)(3,yCe,3,6,"li",49),n.k0s()),2&t){const e=r.$implicit,i=r.options,o=n.XpG(2);n.Aen(i.contentStyle),n.Y8G("ngClass",i.contentStyleClass),n.BMQ("id",o.id+"_list")("aria-label",o.listLabel),n.R7$(2),n.Y8G("ngForOf",e),n.R7$(),n.Y8G("ngIf",!e||e&&0===e.length&&o.showEmptyMessage)}}function CCe(t,r){1&t&&n.eu8(0)}function wCe(t,r){if(1&t&&(n.j41(0,"div",42),n.DNE(1,tCe,1,0,"ng-container",24),n.j41(2,"div",43),n.DNE(3,aCe,5,10,"p-scroller",44)(4,cCe,2,6,"ng-container",15),n.k0s(),n.DNE(5,bCe,4,7,"ng-template",null,8,n.C5r)(7,CCe,1,0,"ng-container",24),n.k0s(),n.j41(8,"span",45),n.EFF(9),n.k0s()),2&t){const e=n.XpG();n.HbH(e.panelStyleClass),n.Y8G("ngClass",e.panelClass)("ngStyle",e.panelStyle),n.R7$(),n.Y8G("ngTemplateOutlet",e.headerTemplate||e._headerTemplate),n.R7$(),n.xc7("max-height",e.virtualScroll?"auto":e.scrollHeight),n.R7$(),n.Y8G("ngIf",e.virtualScroll),n.R7$(),n.Y8G("ngIf",!e.virtualScroll),n.R7$(3),n.Y8G("ngTemplateOutlet",e.footerTemplate||e._footerTemplate),n.R7$(2),n.SpI(" ",e.selectedMessageText," ")}}const TCe={provide:tl,useExisting:(0,n.Rfq)(()=>Ib),multi:!0};let Ib=(()=>{class t extends jo{overlayService;zone;minLength=1;delay=300;style;panelStyle;styleClass;panelStyleClass;inputStyle;inputId;inputStyleClass;placeholder;readonly;disabled;scrollHeight="200px";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;maxlength;name;required;size;appendTo;autoHighlight;forceSelection;type="text";autoZIndex=!0;baseZIndex=0;ariaLabel;dropdownAriaLabel;ariaLabelledBy;dropdownIcon;unique=!0;group;completeOnFocus=!1;showClear=!1;field;dropdown;showEmptyMessage=!0;dropdownMode="blank";multiple;tabindex;dataKey;emptyMessage;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";autofocus;autocomplete="off";optionGroupChildren="items";optionGroupLabel="label";overlayOptions;get suggestions(){return this._suggestions()}set suggestions(e){this._suggestions.set(e),this.handleSuggestionsChange()}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e,console.log("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}optionLabel;optionValue;id;searchMessage;emptySelectionMessage;selectionMessage;autoOptionFocus=!1;selectOnFocus;searchLocale;optionDisabled;focusOnHover=!0;typeahead=!0;variant="outlined";fluid=!1;completeMethod=new n.bkB;onSelect=new n.bkB;onUnselect=new n.bkB;onFocus=new n.bkB;onBlur=new n.bkB;onDropdownClick=new n.bkB;onClear=new n.bkB;onKeyUp=new n.bkB;onShow=new n.bkB;onHide=new n.bkB;onLazyLoad=new n.bkB;containerEL;inputEL;multiInputEl;multiContainerEL;dropdownButton;itemsViewChild;scroller;overlayViewChild;_itemSize;itemsWrapper;itemTemplate;emptyTemplate;headerTemplate;footerTemplate;selectedItemTemplate;groupTemplate;loaderTemplate;removeIconTemplate;loadingIconTemplate;clearIconTemplate;dropdownIconTemplate;primeng=(0,n.WQX)(h$);value;_suggestions=(0,n.vPA)(null);onModelChange=()=>{};onModelTouched=()=>{};timeout;overlayVisible;suggestionsUpdated;highlightOption;highlightOptionChanged;focused=!1;_filled;get filled(){return this._filled}set filled(e){this._filled=e}loading;scrollHandler;listId;searchTimeout;dirty=!1;_itemTemplate;_groupTemplate;_selectedItemTemplate;_headerTemplate;_emptyTemplate;_footerTemplate;_loaderTemplate;_removeIconTemplate;_loadingIconTemplate;_clearIconTemplate;_dropdownIconTemplate;modelValue=(0,n.vPA)(null);focusedMultipleOptionIndex=(0,n.vPA)(-1);focusedOptionIndex=(0,n.vPA)(-1);_componentStyle=(0,n.WQX)(Tte);visibleOptions=(0,n.EWP)(()=>this.group?this.flatOptions(this._suggestions()):this._suggestions()||[]);inputValue=(0,n.EWP)(()=>{const e=this.modelValue(),i=this.optionValueSelected?(this.suggestions||[]).find(o=>ml(o,this.optionValue)===e):e;return qs(e)?"object"==typeof e||this.optionValueSelected?this.getOptionLabel(i)??e:e:""});get focusedMultipleOptionId(){return-1!==this.focusedMultipleOptionIndex()?`${this.id}_multiple_option_${this.focusedMultipleOptionIndex()}`:null}get focusedOptionId(){return-1!==this.focusedOptionIndex()?`${this.id}_${this.focusedOptionIndex()}`:null}get rootClass(){return this._componentStyle.classes.root({instance:this})}get inputMultipleClass(){return this._componentStyle.classes.inputMultiple({instance:this})}get panelClass(){return{"p-autocomplete-overlay p-component":!0,"p-input-filled":"filled"===this.config.inputStyle()||"filled"===this.config.inputVariant(),"p-ripple-disabled":!1===this.config.ripple()}}get inputClass(){return{"p-autocomplete-input":!this.multiple,"p-autocomplete-dd-input":this.dropdown}}get searchResultMessageText(){return qs(this.visibleOptions())&&this.overlayVisible?this.searchMessageText.replaceAll("{0}",this.visibleOptions().length):this.emptySearchMessageText}get searchMessageText(){return this.searchMessage||this.config.translation.searchMessage||""}get emptySearchMessageText(){return this.emptyMessage||this.config.translation.emptySearchMessage||""}get selectionMessageText(){return this.selectionMessage||this.config.translation.selectionMessage||""}get emptySelectionMessageText(){return this.emptySelectionMessage||this.config.translation.emptySelectionMessage||""}get selectedMessageText(){return this.hasSelectedOption()?this.selectionMessageText.replaceAll("{0}",this.multiple?this.modelValue().length:"1"):this.emptySelectionMessageText}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}get listLabel(){return this.config.getTranslation(Xs.ARIA).listLabel}get virtualScrollerDisabled(){return!this.virtualScroll}get optionValueSelected(){return"string"==typeof this.modelValue()&&this.optionValue}chipItemClass(e){return this._componentStyle.classes.chipItem({instance:this,i:e})}optionClass(e,i,o){return{"p-autocomplete-option":!0,"p-autocomplete-option-selected":this.isSelected(e),"p-focus":this.focusedOptionIndex()===this.getOptionIndex(i,o),"p-disabled":this.isOptionDisabled(e)}}constructor(e,i){super(),this.overlayService=e,this.zone=i,(0,n.QZP)(()=>{this.filled=qs(this.modelValue())})}ngOnInit(){super.ngOnInit(),this.id=this.id||Bl("pn_id_"),this.cd.detectChanges()}templates;ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this._itemTemplate=e.template;break;case"group":this._groupTemplate=e.template;break;case"selecteditem":case"selectedItem":this._selectedItemTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"empty":this._emptyTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"loader":this._loaderTemplate=e.template;break;case"removetokenicon":this._removeIconTemplate=e.template;break;case"loadingicon":this._loadingIconTemplate=e.template;break;case"clearicon":this._clearIconTemplate=e.template;break;case"dropdownicon":this._dropdownIconTemplate=e.template}})}ngAfterViewChecked(){this.suggestionsUpdated&&this.overlayViewChild&&this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()},1),this.suggestionsUpdated=!1})}handleSuggestionsChange(){if(this.loading){this._suggestions()?.length>0||this.showEmptyMessage||this.emptyTemplate?this.show():this.hide();const e=this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(e),this.suggestionsUpdated=!0,this.loading=!1,this.cd.markForCheck()}}flatOptions(e){return(e||[]).reduce((i,o,s)=>{i.push({optionGroup:o,group:!0,index:s});const a=this.getOptionGroupChildren(o);return a&&a.forEach(l=>i.push(l)),i},[])}isOptionGroup(e){return this.optionGroupLabel&&e.optionGroup&&e.group}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findLastOptionIndex(){return Jp(this.visibleOptions(),e=>this.isValidOption(e))}findFirstFocusedOptionIndex(){const e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findLastFocusedOptionIndex(){const e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextOptionIndex(e){const i=e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(o=>this.isValidOption(o)):-1;return i>-1?i+e+1:e}findPrevOptionIndex(e){const i=e>0?Jp(this.visibleOptions().slice(0,e),o=>this.isValidOption(o)):-1;return i>-1?i:e}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}isValidOption(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionDisabled(e){return!!this.optionDisabled&&ml(e,this.optionDisabled)}isSelected(e){return this.multiple?!!this.unique&&this.modelValue()?.find(i=>id(i,this.getOptionValue(e),this.equalityKey())):id(this.modelValue(),this.getOptionValue(e),this.equalityKey())}isOptionMatched(e,i){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.searchLocale)===i.toLocaleLowerCase(this.searchLocale)}isInputClicked(e){return e.target===this.inputEL.nativeElement}isDropdownClicked(e){return!!this.dropdownButton?.nativeElement&&(e.target===this.dropdownButton.nativeElement||this.dropdownButton.nativeElement.contains(e.target))}equalityKey(){return this.dataKey}onContainerClick(e){this.disabled||this.loading||this.isInputClicked(e)||this.isDropdownClicked(e)||(!this.overlayViewChild||!this.overlayViewChild.overlayViewChild?.nativeElement.contains(e.target))&&la(this.inputEL.nativeElement)}handleDropdownClick(e){let i;this.overlayVisible?this.hide(!0):(la(this.inputEL.nativeElement),i=this.inputEL.nativeElement.value,"blank"===this.dropdownMode?this.search(e,"","dropdown"):"current"===this.dropdownMode&&this.search(e,i,"dropdown")),this.onDropdownClick.emit({originalEvent:e,query:i})}onInput(e){if(this.typeahead){this.searchTimeout&&clearTimeout(this.searchTimeout);let i=e.target.value;null!==this.maxlength&&(i=i.split("").slice(0,this.maxlength).join("")),!this.multiple&&!this.forceSelection&&this.updateModel(i),0!==i.length||this.multiple?i.length>=this.minLength?(this.focusedOptionIndex.set(-1),this.searchTimeout=setTimeout(()=>{this.search(e,i,"input")},this.delay)):this.hide():(this.onClear.emit(),setTimeout(()=>{this.hide()},this.delay/2))}}onInputChange(e){if(this.forceSelection){let i=!1;if(this.visibleOptions()){const o=this.visibleOptions().find(s=>this.isOptionMatched(s,this.inputEL.nativeElement.value||""));void 0!==o&&(i=!0,!this.isSelected(o)&&this.onOptionSelect(e,o))}i||(this.inputEL.nativeElement.value="",!this.multiple&&this.updateModel(null))}}onInputFocus(e){if(this.disabled)return;!this.dirty&&this.completeOnFocus&&this.search(e,e.target.value,"focus"),this.dirty=!0,this.focused=!0;const i=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(i),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit(e)}onMultipleContainerFocus(e){this.disabled||(this.focused=!0)}onMultipleContainerBlur(e){this.focusedMultipleOptionIndex.set(-1),this.focused=!1}onMultipleContainerKeyDown(e){if(this.disabled)e.preventDefault();else switch(e.code){case"ArrowLeft":this.onArrowLeftKeyOnMultiple(e);break;case"ArrowRight":this.onArrowRightKeyOnMultiple(e);break;case"Backspace":this.onBackspaceKeyOnMultiple(e)}}onInputBlur(e){this.dirty=!1,this.focused=!1,this.focusedOptionIndex.set(-1),this.onModelTouched(),this.onBlur.emit(e)}onInputPaste(e){this.onKeyDown(e)}onInputKeyUp(e){this.onKeyUp.emit(e)}onKeyDown(e){if(this.disabled)e.preventDefault();else switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e)}}onArrowDownKey(e){if(!this.overlayVisible)return;const i=-1!==this.focusedOptionIndex()?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,i),e.preventDefault(),e.stopPropagation()}onArrowUpKey(e){if(this.overlayVisible)if(e.altKey)-1!==this.focusedOptionIndex()&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.overlayVisible&&this.hide(),e.preventDefault();else{const i=-1!==this.focusedOptionIndex()?this.findPrevOptionIndex(this.focusedOptionIndex()):this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,i),e.preventDefault(),e.stopPropagation()}}get hasFluid(){const i=this.el.nativeElement.closest("p-fluid");return this.fluid||!!i}onArrowLeftKey(e){const i=e.currentTarget;this.focusedOptionIndex.set(-1),this.multiple&&(lp(i.value)&&this.hasSelectedOption()?(la(this.multiContainerEL.nativeElement),this.focusedMultipleOptionIndex.set(this.modelValue().length)):e.stopPropagation())}onArrowRightKey(e){this.focusedOptionIndex.set(-1),this.multiple&&e.stopPropagation()}onHomeKey(e){const{currentTarget:i}=e;i.setSelectionRange(0,e.shiftKey?i.value.length:0),this.focusedOptionIndex.set(-1),e.preventDefault()}onEndKey(e){const{currentTarget:i}=e,o=i.value.length;i.setSelectionRange(e.shiftKey?0:o,o),this.focusedOptionIndex.set(-1),e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onEnterKey(e){this.typeahead||this.multiple&&(this.updateModel([...this.modelValue()||[],e.target.value]),this.inputEL.nativeElement.value=""),this.overlayVisible?(-1!==this.focusedOptionIndex()&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.hide()):this.onArrowDownKey(e),e.preventDefault()}onEscapeKey(e){this.overlayVisible&&this.hide(!0),e.preventDefault()}onTabKey(e){-1!==this.focusedOptionIndex()&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.overlayVisible&&this.hide()}onBackspaceKey(e){if(this.multiple){if(qs(this.modelValue())&&!this.inputEL.nativeElement.value){const i=this.modelValue()[this.modelValue().length-1],o=this.modelValue().slice(0,-1);this.updateModel(o),this.onUnselect.emit({originalEvent:e,value:i})}e.stopPropagation()}!this.multiple&&this.showClear&&-1!=this.findSelectedOptionIndex()&&this.clear()}onArrowLeftKeyOnMultiple(e){const i=this.focusedMultipleOptionIndex()<1?0:this.focusedMultipleOptionIndex()-1;this.focusedMultipleOptionIndex.set(i)}onArrowRightKeyOnMultiple(e){let i=this.focusedMultipleOptionIndex();i++,this.focusedMultipleOptionIndex.set(i),i>this.modelValue().length-1&&(this.focusedMultipleOptionIndex.set(-1),la(this.inputEL.nativeElement))}onBackspaceKeyOnMultiple(e){-1!==this.focusedMultipleOptionIndex()&&this.removeOption(e,this.focusedMultipleOptionIndex())}onOptionSelect(e,i,o=!0){const s=this.getOptionValue(i);this.multiple?(this.inputEL.nativeElement.value="",this.isSelected(i)||this.updateModel([...this.modelValue()||[],s])):this.updateModel(s),this.onSelect.emit({originalEvent:e,value:i}),o&&this.hide(!0)}onOptionMouseEnter(e,i){this.focusOnHover&&this.changeFocusedOptionIndex(e,i)}search(e,i,o){null!=i&&("input"===o&&0===i.trim().length||(this.loading=!0,this.completeMethod.emit({originalEvent:e,query:i})))}removeOption(e,i){e.stopPropagation();const o=this.modelValue()[i],s=this.modelValue().filter((a,l)=>l!==i).map(a=>this.getOptionValue(a));this.updateModel(s),this.onUnselect.emit({originalEvent:e,value:o}),la(this.inputEL.nativeElement)}updateModel(e){this.value=e,this.modelValue.set(e),this.onModelChange(e),this.updateInputValue(),this.cd.markForCheck()}updateInputValue(){this.inputEL&&this.inputEL.nativeElement&&(this.inputEL.nativeElement.value=this.multiple?"":this.inputValue())}autoUpdateModel(){if((this.selectOnFocus||this.autoHighlight)&&this.autoOptionFocus&&!this.hasSelectedOption()){const e=this.findFirstFocusedOptionIndex();this.focusedOptionIndex.set(e),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()],!1)}}scrollInView(e=-1){if(this.itemsViewChild&&this.itemsViewChild.nativeElement){const o=xo(this.itemsViewChild.nativeElement,`li[id="${-1!==e?`${this.id}_${e}`:this.focusedOptionId}"]`);o?o.scrollIntoView&&o.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(-1!==e?e:this.focusedOptionIndex())},0)}}changeFocusedOptionIndex(e,i){this.focusedOptionIndex()!==i&&(this.focusedOptionIndex.set(i),this.scrollInView(),this.selectOnFocus&&this.onOptionSelect(e,this.visibleOptions()[i],!1))}show(e=!1){this.dirty=!0,this.overlayVisible=!0;const i=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(i),e&&la(this.inputEL.nativeElement),e&&la(this.inputEL.nativeElement),this.onShow.emit(),this.cd.markForCheck()}hide(e=!1){const i=()=>{this.dirty=e,this.overlayVisible=!1,this.focusedOptionIndex.set(-1),e&&la(this.inputEL.nativeElement),this.onHide.emit(),this.cd.markForCheck()};setTimeout(()=>{i()},0)}clear(){this.updateModel(null),this.inputEL.nativeElement.value="",this.onClear.emit()}writeValue(e){this.value=e,this.modelValue.set(e),this.updateInputValue(),this.cd.markForCheck()}hasSelectedOption(){return qs(this.modelValue())}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(i=>this.isOptionGroup(i)).length:e)+1}getOptionLabel(e){return this.field||this.optionLabel?ml(e,this.field||this.optionLabel):e&&null!=e.label?e.label:e}getOptionValue(e){return this.optionValue?ml(e,this.optionValue):e&&null!=e.value?e.value:e}getOptionIndex(e,i){return this.virtualScrollerDisabled?e:i&&i.getItemOptions(e).index}getOptionGroupLabel(e){return this.optionGroupLabel?ml(e,this.optionGroupLabel):e&&null!=e.label?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren?ml(e,this.optionGroupChildren):e.items}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onOverlayAnimationStart(e){if("visible"===e.toState&&(this.itemsWrapper=xo(this.overlayViewChild.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-autocomplete-panel"),this.virtualScroll&&(this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.scroller.viewInit()),this.visibleOptions()&&this.visibleOptions().length))if(this.virtualScroll){const i=this.modelValue()?this.focusedOptionIndex():-1;-1!==i&&this.scroller?.scrollToIndex(i)}else{let i=xo(this.itemsWrapper,".p-autocomplete-item.p-highlight");i&&i.scrollIntoView({block:"nearest",inline:"center"})}}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),super.ngOnDestroy()}static \u0275fac=function(i){return new(i||t)(n.rXU(Cy),n.rXU(n.SKi))};static \u0275cmp=n.VBU({type:t,selectors:[["p-autoComplete"],["p-autocomplete"],["p-auto-complete"]],contentQueries:function(i,o,s){if(1&i&&(n.wni(s,obe,5),n.wni(s,sbe,5),n.wni(s,abe,5),n.wni(s,lbe,5),n.wni(s,cbe,5),n.wni(s,ube,5),n.wni(s,dbe,5),n.wni(s,pbe,5),n.wni(s,hbe,5),n.wni(s,fbe,5),n.wni(s,mbe,5),n.wni(s,hs,4)),2&i){let a;n.mGM(a=n.lsd())&&(o.itemTemplate=a.first),n.mGM(a=n.lsd())&&(o.emptyTemplate=a.first),n.mGM(a=n.lsd())&&(o.headerTemplate=a.first),n.mGM(a=n.lsd())&&(o.footerTemplate=a.first),n.mGM(a=n.lsd())&&(o.selectedItemTemplate=a.first),n.mGM(a=n.lsd())&&(o.groupTemplate=a.first),n.mGM(a=n.lsd())&&(o.loaderTemplate=a.first),n.mGM(a=n.lsd())&&(o.removeIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.loadingIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.clearIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.dropdownIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.templates=a)}},viewQuery:function(i,o){if(1&i&&(n.GBs(gbe,5),n.GBs(vbe,5),n.GBs(_be,5),n.GBs(ybe,5),n.GBs(bbe,5),n.GBs(Cbe,5),n.GBs(wbe,5),n.GBs(Tbe,5)),2&i){let s;n.mGM(s=n.lsd())&&(o.containerEL=s.first),n.mGM(s=n.lsd())&&(o.inputEL=s.first),n.mGM(s=n.lsd())&&(o.multiInputEl=s.first),n.mGM(s=n.lsd())&&(o.multiContainerEL=s.first),n.mGM(s=n.lsd())&&(o.dropdownButton=s.first),n.mGM(s=n.lsd())&&(o.itemsViewChild=s.first),n.mGM(s=n.lsd())&&(o.scroller=s.first),n.mGM(s=n.lsd())&&(o.overlayViewChild=s.first)}},inputs:{minLength:[2,"minLength","minLength",n.Udg],delay:[2,"delay","delay",n.Udg],style:"style",panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",inputStyle:"inputStyle",inputId:"inputId",inputStyleClass:"inputStyleClass",placeholder:"placeholder",readonly:[2,"readonly","readonly",n.L39],disabled:[2,"disabled","disabled",n.L39],scrollHeight:"scrollHeight",lazy:[2,"lazy","lazy",n.L39],virtualScroll:[2,"virtualScroll","virtualScroll",n.L39],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",n.Udg],virtualScrollOptions:"virtualScrollOptions",maxlength:[2,"maxlength","maxlength",e=>(0,n.Udg)(e,null)],name:"name",required:[2,"required","required",n.L39],size:"size",appendTo:"appendTo",autoHighlight:[2,"autoHighlight","autoHighlight",n.L39],forceSelection:[2,"forceSelection","forceSelection",n.L39],type:"type",autoZIndex:[2,"autoZIndex","autoZIndex",n.L39],baseZIndex:[2,"baseZIndex","baseZIndex",n.Udg],ariaLabel:"ariaLabel",dropdownAriaLabel:"dropdownAriaLabel",ariaLabelledBy:"ariaLabelledBy",dropdownIcon:"dropdownIcon",unique:[2,"unique","unique",n.L39],group:[2,"group","group",n.L39],completeOnFocus:[2,"completeOnFocus","completeOnFocus",n.L39],showClear:[2,"showClear","showClear",n.L39],field:"field",dropdown:[2,"dropdown","dropdown",n.L39],showEmptyMessage:[2,"showEmptyMessage","showEmptyMessage",n.L39],dropdownMode:"dropdownMode",multiple:[2,"multiple","multiple",n.L39],tabindex:[2,"tabindex","tabindex",n.Udg],dataKey:"dataKey",emptyMessage:"emptyMessage",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",autofocus:[2,"autofocus","autofocus",n.L39],autocomplete:"autocomplete",optionGroupChildren:"optionGroupChildren",optionGroupLabel:"optionGroupLabel",overlayOptions:"overlayOptions",suggestions:"suggestions",itemSize:"itemSize",optionLabel:"optionLabel",optionValue:"optionValue",id:"id",searchMessage:"searchMessage",emptySelectionMessage:"emptySelectionMessage",selectionMessage:"selectionMessage",autoOptionFocus:[2,"autoOptionFocus","autoOptionFocus",n.L39],selectOnFocus:[2,"selectOnFocus","selectOnFocus",n.L39],searchLocale:[2,"searchLocale","searchLocale",n.L39],optionDisabled:"optionDisabled",focusOnHover:[2,"focusOnHover","focusOnHover",n.L39],typeahead:[2,"typeahead","typeahead",n.L39],variant:"variant",fluid:[2,"fluid","fluid",n.L39]},outputs:{completeMethod:"completeMethod",onSelect:"onSelect",onUnselect:"onUnselect",onFocus:"onFocus",onBlur:"onBlur",onDropdownClick:"onDropdownClick",onClear:"onClear",onKeyUp:"onKeyUp",onShow:"onShow",onHide:"onHide",onLazyLoad:"onLazyLoad"},features:[n.Jv_([TCe,Tte]),n.GFd,n.Vt3],decls:11,vars:15,consts:[["container",""],["overlay",""],["content",""],["focusInput",""],["multiContainer",""],["token",""],["removeicon",""],["ddBtn",""],["buildInItems",""],["scroller",""],["loader",""],["items",""],["empty",""],[2,"position","relative",3,"click","ngClass","ngStyle"],["pInputText","","aria-autocomplete","list","role","combobox",3,"pAutoFocus","ngClass","ngStyle","class","type","variant","autocomplete","required","name","pSize","tabindex","readonly","disabled","fluid","input","keydown","change","focus","blur","paste","keyup",4,"ngIf"],[4,"ngIf"],["role","listbox",3,"ngClass","tabindex","focus","blur","keydown",4,"ngIf"],["type","button","class","p-autocomplete-dropdown","pRipple","",3,"disabled","click",4,"ngIf"],[3,"visibleChange","onAnimationStart","onHide","visible","options","target","appendTo","showTransitionOptions","hideTransitionOptions"],["pInputText","","aria-autocomplete","list","role","combobox",3,"input","keydown","change","focus","blur","paste","keyup","pAutoFocus","ngClass","ngStyle","type","variant","autocomplete","required","name","pSize","tabindex","readonly","disabled","fluid"],[3,"styleClass","click",4,"ngIf"],["class","p-autocomplete-clear-icon",3,"click",4,"ngIf"],[3,"click","styleClass"],[1,"p-autocomplete-clear-icon",3,"click"],[4,"ngTemplateOutlet"],["role","listbox",3,"focus","blur","keydown","ngClass","tabindex"],["role","option",3,"ngClass",4,"ngFor","ngForOf"],["role","option",1,"p-autocomplete-input-chip"],["role","combobox","aria-autocomplete","list",3,"input","keydown","change","focus","blur","paste","keyup","pAutoFocus","ngClass","ngStyle","autocomplete","required","tabindex","readonly","disabled"],["role","option",3,"ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["styleClass","p-autocomplete-chip",3,"label","removable",4,"ngIf"],["styleClass","p-autocomplete-chip",3,"label","removable"],[1,"p-autocomplete-chip-icon",3,"click"],[3,"styleClass"],[3,"styleClass","spin",4,"ngIf"],["class","p-autocomplete-loader pi-spin ",4,"ngIf"],[3,"styleClass","spin"],[1,"p-autocomplete-loader","pi-spin"],["type","button","pRipple","",1,"p-autocomplete-dropdown",3,"click","disabled"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[3,"ngClass","ngStyle"],[1,"p-autocomplete-list-container"],[3,"items","style","itemSize","autoSize","lazy","options","onLazyLoad",4,"ngIf"],["role","status","aria-live","polite",1,"p-hidden-accessible"],[3,"onLazyLoad","items","itemSize","autoSize","lazy","options"],["role","listbox",1,"p-autocomplete-list",3,"ngClass"],["ngFor","",3,"ngForOf"],["class","p-autocomplete-empty-message","role","option",3,"ngStyle",4,"ngIf"],["role","option",1,"p-autocomplete-option-group",3,"ngStyle"],["pRipple","","role","option",3,"click","mouseenter","ngStyle","ngClass"],["role","option",1,"p-autocomplete-empty-message",3,"ngStyle"],[4,"ngIf","ngIfElse"]],template:function(i,o){if(1&i){const s=n.RV6();n.j41(0,"div",13,0),n.bIt("click",function(l){return n.eBV(s),n.Njj(o.onContainerClick(l))}),n.DNE(2,Ibe,2,25,"input",14)(3,Fbe,3,2,"ng-container",15)(4,Ube,6,26,"ul",16)(5,qbe,3,2,"ng-container",15)(6,eCe,4,5,"button",17),n.j41(7,"p-overlay",18,1),n.mxI("visibleChange",function(l){return n.eBV(s),n.DH7(o.overlayVisible,l)||(o.overlayVisible=l),n.Njj(l)}),n.bIt("onAnimationStart",function(l){return n.eBV(s),n.Njj(o.onOverlayAnimationStart(l))})("onHide",function(){return n.eBV(s),n.Njj(o.hide())}),n.DNE(9,wCe,10,11,"ng-template",null,2,n.C5r),n.k0s()()}2&i&&(n.HbH(o.styleClass),n.Y8G("ngClass",o.rootClass)("ngStyle",o.style),n.R7$(2),n.Y8G("ngIf",!o.multiple),n.R7$(),n.Y8G("ngIf",o.filled&&!o.disabled&&o.showClear&&!o.loading),n.R7$(),n.Y8G("ngIf",o.multiple),n.R7$(),n.Y8G("ngIf",o.loading),n.R7$(),n.Y8G("ngIf",o.dropdown),n.R7$(),n.R50("visible",o.overlayVisible),n.Y8G("options",o.overlayOptions)("target","@parent")("appendTo",o.appendTo)("showTransitionOptions",o.showTransitionOptions)("hideTransitionOptions",o.hideTransitionOptions))},dependencies:[gn,bi,oo,fi,uo,Jr,lk,hf,Mh,Db,Jf,bte,Ax,pf,Y_,S8,Di],encapsulation:2,changeDetection:0})}return t})(),$w=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({imports:[Ib,Di]})}return t})();const SCe=({dt:t})=>`\n.p-badge {\n    display: inline-flex;\n    border-radius: ${t("badge.border.radius")};\n    justify-content: center;\n    padding: ${t("badge.padding")};\n    background: ${t("badge.primary.background")};\n    color: ${t("badge.primary.color")};\n    font-size: ${t("badge.font.size")};\n    font-weight: ${t("badge.font.weight")};\n    min-width: ${t("badge.min.width")};\n    height: ${t("badge.height")};\n    line-height: ${t("badge.height")};\n}\n\n.p-badge-dot {\n    width: ${t("badge.dot.size")};\n    min-width: ${t("badge.dot.size")};\n    height: ${t("badge.dot.size")};\n    border-radius: 50%;\n    padding: 0;\n}\n\n.p-badge-circle {\n    padding: 0;\n    border-radius: 50%;\n}\n\n.p-badge-secondary {\n    background: ${t("badge.secondary.background")};\n    color: ${t("badge.secondary.color")};\n}\n\n.p-badge-success {\n    background: ${t("badge.success.background")};\n    color: ${t("badge.success.color")};\n}\n\n.p-badge-info {\n    background: ${t("badge.info.background")};\n    color: ${t("badge.info.color")};\n}\n\n.p-badge-warn {\n    background: ${t("badge.warn.background")};\n    color: ${t("badge.warn.color")};\n}\n\n.p-badge-danger {\n    background: ${t("badge.danger.background")};\n    color: ${t("badge.danger.color")};\n}\n\n.p-badge-contrast {\n    background: ${t("badge.contrast.background")};\n    color: ${t("badge.contrast.color")};\n}\n\n.p-badge-sm {\n    font-size: ${t("badge.sm.font.size")};\n    min-width: ${t("badge.sm.min.width")};\n    height: ${t("badge.sm.height")};\n    line-height: ${t("badge.sm.height")};\n}\n\n.p-badge-lg {\n    font-size: ${t("badge.lg.font.size")};\n    min-width: ${t("badge.lg.min.width")};\n    height: ${t("badge.lg.height")};\n    line-height: ${t("badge.lg.height")};\n}\n\n.p-badge-xl {\n    font-size: ${t("badge.xl.font.size")};\n    min-width: ${t("badge.xl.min.width")};\n    height: ${t("badge.xl.height")};\n    line-height: ${t("badge.xl.height")};\n}\n\n/* For PrimeNG (directive)*/\n\n.p-overlay-badge {\n    position: relative;\n}\n\n.p-overlay-badge > .p-badge {\n    position: absolute;\n    top: 0;\n    inset-inline-end: 0;\n    transform: translate(50%, -50%);\n    transform-origin: 100% 0;\n    margin: 0;\n}\n`,xCe={root:({props:t,instance:r})=>["p-badge p-component",{"p-badge-circle":qs(t.value)&&1===String(t.value).length,"p-badge-dot":lp(t.value)&&!r.$slots.default,"p-badge-sm":"small"===t.size,"p-badge-lg":"large"===t.size,"p-badge-xl":"xlarge"===t.size,"p-badge-info":"info"===t.severity,"p-badge-success":"success"===t.severity,"p-badge-warn":"warn"===t.severity,"p-badge-danger":"danger"===t.severity,"p-badge-secondary":"secondary"===t.severity,"p-badge-contrast":"contrast"===t.severity}]};let E8=(()=>{class t extends gs{name="badge";theme=SCe;classes=xCe;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})(),D8=(()=>{class t extends jo{styleClass=(0,n.hFB)();style=(0,n.hFB)();badgeSize=(0,n.hFB)();size=(0,n.hFB)();severity=(0,n.hFB)();value=(0,n.hFB)();badgeDisabled=(0,n.hFB)(!1,{transform:n.L39});_componentStyle=(0,n.WQX)(E8);containerClass=(0,n.EWP)(()=>{let e="p-badge p-component";return qs(this.value())&&1===String(this.value()).length&&(e+=" p-badge-circle"),"large"===this.badgeSize()?e+=" p-badge-lg":"xlarge"===this.badgeSize()?e+=" p-badge-xl":"small"===this.badgeSize()&&(e+=" p-badge-sm"),lp(this.value())&&(e+=" p-badge-dot"),this.styleClass()&&(e+=` ${this.styleClass()}`),this.severity()&&(e+=` p-badge-${this.severity()}`),e});static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["p-badge"]],hostVars:6,hostBindings:function(i,o){2&i&&(n.Aen(o.style()),n.HbH(o.containerClass()),n.xc7("display",o.badgeDisabled()&&"none"))},inputs:{styleClass:[1,"styleClass"],style:[1,"style"],badgeSize:[1,"badgeSize"],size:[1,"size"],severity:[1,"severity"],value:[1,"value"],badgeDisabled:[1,"badgeDisabled"]},features:[n.Jv_([E8]),n.Vt3],decls:1,vars:1,template:function(i,o){1&i&&n.EFF(0),2&i&&n.JRh(o.value())},dependencies:[gn,Di],encapsulation:2,changeDetection:0})}return t})(),dk=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({imports:[D8,Di,Di]})}return t})();const DCe=({dt:t})=>`\n.p-button {\n    display: inline-flex;\n    cursor: pointer;\n    user-select: none;\n    align-items: center;\n    justify-content: center;\n    overflow: hidden;\n    position: relative;\n    color: ${t("button.primary.color")};\n    background: ${t("button.primary.background")};\n    border: 1px solid ${t("button.primary.border.color")};\n    padding-block: ${t("button.padding.y")};\n    padding-inline: ${t("button.padding.x")};\n    font-size: 1rem;\n    font-family: inherit;\n    font-feature-settings: inherit;\n    transition: background ${t("button.transition.duration")}, color ${t("button.transition.duration")}, border-color ${t("button.transition.duration")},\n            outline-color ${t("button.transition.duration")}, box-shadow ${t("button.transition.duration")};\n    border-radius: ${t("button.border.radius")};\n    outline-color: transparent;\n    gap: ${t("button.gap")};\n}\n\n.p-button:disabled {\n    cursor: default;\n}\n\n.p-button-icon-right {\n    order: 1;\n}\n\n.p-button-icon-right:dir(rtl) {\n    order: -1;\n}\n\n.p-button:not(.p-button-vertical) .p-button-icon:not(.p-button-icon-right):dir(rtl) {\n    order: 1;\n}\n\n.p-button-icon-bottom {\n    order: 2;\n}\n\n.p-button-icon-only {\n    width: ${t("button.icon.only.width")};\n    padding-inline-start: 0;\n    padding-inline-end: 0;\n    gap: 0;\n}\n\n.p-button-icon-only.p-button-rounded {\n    border-radius: 50%;\n    height: ${t("button.icon.only.width")};\n}\n\n.p-button-icon-only .p-button-label {\n    visibility: hidden;\n    width: 0;\n}\n\n.p-button-sm {\n    font-size: ${t("button.sm.font.size")};\n    padding-block: ${t("button.sm.padding.y")};\n    padding-inline: ${t("button.sm.padding.x")};\n}\n\n.p-button-sm .p-button-icon {\n    font-size: ${t("button.sm.font.size")};\n}\n\n.p-button-lg {\n    font-size: ${t("button.lg.font.size")};\n    padding-block: ${t("button.lg.padding.y")};\n    padding-inline: ${t("button.lg.padding.x")};\n}\n\n.p-button-lg .p-button-icon {\n    font-size: ${t("button.lg.font.size")};\n}\n\n.p-button-vertical {\n    flex-direction: column;\n}\n\n.p-button-label {\n    font-weight: ${t("button.label.font.weight")};\n}\n\n.p-button-fluid {\n    width: 100%;\n}\n\n.p-button-fluid.p-button-icon-only {\n    width: ${t("button.icon.only.width")};\n}\n\n.p-button:not(:disabled):hover {\n    background: ${t("button.primary.hover.background")};\n    border: 1px solid ${t("button.primary.hover.border.color")};\n    color: ${t("button.primary.hover.color")};\n}\n\n.p-button:not(:disabled):active {\n    background: ${t("button.primary.active.background")};\n    border: 1px solid ${t("button.primary.active.border.color")};\n    color: ${t("button.primary.active.color")};\n}\n\n.p-button:focus-visible {\n    box-shadow: ${t("button.primary.focus.ring.shadow")};\n    outline: ${t("button.focus.ring.width")} ${t("button.focus.ring.style")} ${t("button.primary.focus.ring.color")};\n    outline-offset: ${t("button.focus.ring.offset")};\n}\n\n.p-button .p-badge {\n    min-width: ${t("button.badge.size")};\n    height: ${t("button.badge.size")};\n    line-height: ${t("button.badge.size")};\n}\n\n.p-button-raised {\n    box-shadow: ${t("button.raised.shadow")};\n}\n\n.p-button-rounded {\n    border-radius: ${t("button.rounded.border.radius")};\n}\n\n.p-button-secondary {\n    background: ${t("button.secondary.background")};\n    border: 1px solid ${t("button.secondary.border.color")};\n    color: ${t("button.secondary.color")};\n}\n\n.p-button-secondary:not(:disabled):hover {\n    background: ${t("button.secondary.hover.background")};\n    border: 1px solid ${t("button.secondary.hover.border.color")};\n    color: ${t("button.secondary.hover.color")};\n}\n\n.p-button-secondary:not(:disabled):active {\n    background: ${t("button.secondary.active.background")};\n    border: 1px solid ${t("button.secondary.active.border.color")};\n    color: ${t("button.secondary.active.color")};\n}\n\n.p-button-secondary:focus-visible {\n    outline-color: ${t("button.secondary.focus.ring.color")};\n    box-shadow: ${t("button.secondary.focus.ring.shadow")};\n}\n\n.p-button-success {\n    background: ${t("button.success.background")};\n    border: 1px solid ${t("button.success.border.color")};\n    color: ${t("button.success.color")};\n}\n\n.p-button-success:not(:disabled):hover {\n    background: ${t("button.success.hover.background")};\n    border: 1px solid ${t("button.success.hover.border.color")};\n    color: ${t("button.success.hover.color")};\n}\n\n.p-button-success:not(:disabled):active {\n    background: ${t("button.success.active.background")};\n    border: 1px solid ${t("button.success.active.border.color")};\n    color: ${t("button.success.active.color")};\n}\n\n.p-button-success:focus-visible {\n    outline-color: ${t("button.success.focus.ring.color")};\n    box-shadow: ${t("button.success.focus.ring.shadow")};\n}\n\n.p-button-info {\n    background: ${t("button.info.background")};\n    border: 1px solid ${t("button.info.border.color")};\n    color: ${t("button.info.color")};\n}\n\n.p-button-info:not(:disabled):hover {\n    background: ${t("button.info.hover.background")};\n    border: 1px solid ${t("button.info.hover.border.color")};\n    color: ${t("button.info.hover.color")};\n}\n\n.p-button-info:not(:disabled):active {\n    background: ${t("button.info.active.background")};\n    border: 1px solid ${t("button.info.active.border.color")};\n    color: ${t("button.info.active.color")};\n}\n\n.p-button-info:focus-visible {\n    outline-color: ${t("button.info.focus.ring.color")};\n    box-shadow: ${t("button.info.focus.ring.shadow")};\n}\n\n.p-button-warn {\n    background: ${t("button.warn.background")};\n    border: 1px solid ${t("button.warn.border.color")};\n    color: ${t("button.warn.color")};\n}\n\n.p-button-warn:not(:disabled):hover {\n    background: ${t("button.warn.hover.background")};\n    border: 1px solid ${t("button.warn.hover.border.color")};\n    color: ${t("button.warn.hover.color")};\n}\n\n.p-button-warn:not(:disabled):active {\n    background: ${t("button.warn.active.background")};\n    border: 1px solid ${t("button.warn.active.border.color")};\n    color: ${t("button.warn.active.color")};\n}\n\n.p-button-warn:focus-visible {\n    outline-color: ${t("button.warn.focus.ring.color")};\n    box-shadow: ${t("button.warn.focus.ring.shadow")};\n}\n\n.p-button-help {\n    background: ${t("button.help.background")};\n    border: 1px solid ${t("button.help.border.color")};\n    color: ${t("button.help.color")};\n}\n\n.p-button-help:not(:disabled):hover {\n    background: ${t("button.help.hover.background")};\n    border: 1px solid ${t("button.help.hover.border.color")};\n    color: ${t("button.help.hover.color")};\n}\n\n.p-button-help:not(:disabled):active {\n    background: ${t("button.help.active.background")};\n    border: 1px solid ${t("button.help.active.border.color")};\n    color: ${t("button.help.active.color")};\n}\n\n.p-button-help:focus-visible {\n    outline-color: ${t("button.help.focus.ring.color")};\n    box-shadow: ${t("button.help.focus.ring.shadow")};\n}\n\n.p-button-danger {\n    background: ${t("button.danger.background")};\n    border: 1px solid ${t("button.danger.border.color")};\n    color: ${t("button.danger.color")};\n}\n\n.p-button-danger:not(:disabled):hover {\n    background: ${t("button.danger.hover.background")};\n    border: 1px solid ${t("button.danger.hover.border.color")};\n    color: ${t("button.danger.hover.color")};\n}\n\n.p-button-danger:not(:disabled):active {\n    background: ${t("button.danger.active.background")};\n    border: 1px solid ${t("button.danger.active.border.color")};\n    color: ${t("button.danger.active.color")};\n}\n\n.p-button-danger:focus-visible {\n    outline-color: ${t("button.danger.focus.ring.color")};\n    box-shadow: ${t("button.danger.focus.ring.shadow")};\n}\n\n.p-button-contrast {\n    background: ${t("button.contrast.background")};\n    border: 1px solid ${t("button.contrast.border.color")};\n    color: ${t("button.contrast.color")};\n}\n\n.p-button-contrast:not(:disabled):hover {\n    background: ${t("button.contrast.hover.background")};\n    border: 1px solid ${t("button.contrast.hover.border.color")};\n    color: ${t("button.contrast.hover.color")};\n}\n\n.p-button-contrast:not(:disabled):active {\n    background: ${t("button.contrast.active.background")};\n    border: 1px solid ${t("button.contrast.active.border.color")};\n    color: ${t("button.contrast.active.color")};\n}\n\n.p-button-contrast:focus-visible {\n    outline-color: ${t("button.contrast.focus.ring.color")};\n    box-shadow: ${t("button.contrast.focus.ring.shadow")};\n}\n\n.p-button-outlined {\n    background: transparent;\n    border-color: ${t("button.outlined.primary.border.color")};\n    color: ${t("button.outlined.primary.color")};\n}\n\n.p-button-outlined:not(:disabled):hover {\n    background: ${t("button.outlined.primary.hover.background")};\n    border-color: ${t("button.outlined.primary.border.color")};\n    color: ${t("button.outlined.primary.color")};\n}\n\n.p-button-outlined:not(:disabled):active {\n    background: ${t("button.outlined.primary.active.background")};\n    border-color: ${t("button.outlined.primary.border.color")};\n    color: ${t("button.outlined.primary.color")};\n}\n\n.p-button-outlined.p-button-secondary {\n    border-color: ${t("button.outlined.secondary.border.color")};\n    color: ${t("button.outlined.secondary.color")};\n}\n\n.p-button-outlined.p-button-secondary:not(:disabled):hover {\n    background: ${t("button.outlined.secondary.hover.background")};\n    border-color: ${t("button.outlined.secondary.border.color")};\n    color: ${t("button.outlined.secondary.color")};\n}\n\n.p-button-outlined.p-button-secondary:not(:disabled):active {\n    background: ${t("button.outlined.secondary.active.background")};\n    border-color: ${t("button.outlined.secondary.border.color")};\n    color: ${t("button.outlined.secondary.color")};\n}\n\n.p-button-outlined.p-button-success {\n    border-color: ${t("button.outlined.success.border.color")};\n    color: ${t("button.outlined.success.color")};\n}\n\n.p-button-outlined.p-button-success:not(:disabled):hover {\n    background: ${t("button.outlined.success.hover.background")};\n    border-color: ${t("button.outlined.success.border.color")};\n    color: ${t("button.outlined.success.color")};\n}\n\n.p-button-outlined.p-button-success:not(:disabled):active {\n    background: ${t("button.outlined.success.active.background")};\n    border-color: ${t("button.outlined.success.border.color")};\n    color: ${t("button.outlined.success.color")};\n}\n\n.p-button-outlined.p-button-info {\n    border-color: ${t("button.outlined.info.border.color")};\n    color: ${t("button.outlined.info.color")};\n}\n\n.p-button-outlined.p-button-info:not(:disabled):hover {\n    background: ${t("button.outlined.info.hover.background")};\n    border-color: ${t("button.outlined.info.border.color")};\n    color: ${t("button.outlined.info.color")};\n}\n\n.p-button-outlined.p-button-info:not(:disabled):active {\n    background: ${t("button.outlined.info.active.background")};\n    border-color: ${t("button.outlined.info.border.color")};\n    color: ${t("button.outlined.info.color")};\n}\n\n.p-button-outlined.p-button-warn {\n    border-color: ${t("button.outlined.warn.border.color")};\n    color: ${t("button.outlined.warn.color")};\n}\n\n.p-button-outlined.p-button-warn:not(:disabled):hover {\n    background: ${t("button.outlined.warn.hover.background")};\n    border-color: ${t("button.outlined.warn.border.color")};\n    color: ${t("button.outlined.warn.color")};\n}\n\n.p-button-outlined.p-button-warn:not(:disabled):active {\n    background: ${t("button.outlined.warn.active.background")};\n    border-color: ${t("button.outlined.warn.border.color")};\n    color: ${t("button.outlined.warn.color")};\n}\n\n.p-button-outlined.p-button-help {\n    border-color: ${t("button.outlined.help.border.color")};\n    color: ${t("button.outlined.help.color")};\n}\n\n.p-button-outlined.p-button-help:not(:disabled):hover {\n    background: ${t("button.outlined.help.hover.background")};\n    border-color: ${t("button.outlined.help.border.color")};\n    color: ${t("button.outlined.help.color")};\n}\n\n.p-button-outlined.p-button-help:not(:disabled):active {\n    background: ${t("button.outlined.help.active.background")};\n    border-color: ${t("button.outlined.help.border.color")};\n    color: ${t("button.outlined.help.color")};\n}\n\n.p-button-outlined.p-button-danger {\n    border-color: ${t("button.outlined.danger.border.color")};\n    color: ${t("button.outlined.danger.color")};\n}\n\n.p-button-outlined.p-button-danger:not(:disabled):hover {\n    background: ${t("button.outlined.danger.hover.background")};\n    border-color: ${t("button.outlined.danger.border.color")};\n    color: ${t("button.outlined.danger.color")};\n}\n\n.p-button-outlined.p-button-danger:not(:disabled):active {\n    background: ${t("button.outlined.danger.active.background")};\n    border-color: ${t("button.outlined.danger.border.color")};\n    color: ${t("button.outlined.danger.color")};\n}\n\n.p-button-outlined.p-button-contrast {\n    border-color: ${t("button.outlined.contrast.border.color")};\n    color: ${t("button.outlined.contrast.color")};\n}\n\n.p-button-outlined.p-button-contrast:not(:disabled):hover {\n    background: ${t("button.outlined.contrast.hover.background")};\n    border-color: ${t("button.outlined.contrast.border.color")};\n    color: ${t("button.outlined.contrast.color")};\n}\n\n.p-button-outlined.p-button-contrast:not(:disabled):active {\n    background: ${t("button.outlined.contrast.active.background")};\n    border-color: ${t("button.outlined.contrast.border.color")};\n    color: ${t("button.outlined.contrast.color")};\n}\n\n.p-button-outlined.p-button-plain {\n    border-color: ${t("button.outlined.plain.border.color")};\n    color: ${t("button.outlined.plain.color")};\n}\n\n.p-button-outlined.p-button-plain:not(:disabled):hover {\n    background: ${t("button.outlined.plain.hover.background")};\n    border-color: ${t("button.outlined.plain.border.color")};\n    color: ${t("button.outlined.plain.color")};\n}\n\n.p-button-outlined.p-button-plain:not(:disabled):active {\n    background: ${t("button.outlined.plain.active.background")};\n    border-color: ${t("button.outlined.plain.border.color")};\n    color: ${t("button.outlined.plain.color")};\n}\n\n.p-button-text {\n    background: transparent;\n    border-color: transparent;\n    color: ${t("button.text.primary.color")};\n}\n\n.p-button-text:not(:disabled):hover {\n    background: ${t("button.text.primary.hover.background")};\n    border-color: transparent;\n    color: ${t("button.text.primary.color")};\n}\n\n.p-button-text:not(:disabled):active {\n    background: ${t("button.text.primary.active.background")};\n    border-color: transparent;\n    color: ${t("button.text.primary.color")};\n}\n\n.p-button-text.p-button-secondary {\n    background: transparent;\n    border-color: transparent;\n    color: ${t("button.text.secondary.color")};\n}\n\n.p-button-text.p-button-secondary:not(:disabled):hover {\n    background: ${t("button.text.secondary.hover.background")};\n    border-color: transparent;\n    color: ${t("button.text.secondary.color")};\n}\n\n.p-button-text.p-button-secondary:not(:disabled):active {\n    background: ${t("button.text.secondary.active.background")};\n    border-color: transparent;\n    color: ${t("button.text.secondary.color")};\n}\n\n.p-button-text.p-button-success {\n    background: transparent;\n    border-color: transparent;\n    color: ${t("button.text.success.color")};\n}\n\n.p-button-text.p-button-success:not(:disabled):hover {\n    background: ${t("button.text.success.hover.background")};\n    border-color: transparent;\n    color: ${t("button.text.success.color")};\n}\n\n.p-button-text.p-button-success:not(:disabled):active {\n    background: ${t("button.text.success.active.background")};\n    border-color: transparent;\n    color: ${t("button.text.success.color")};\n}\n\n.p-button-text.p-button-info {\n    background: transparent;\n    border-color: transparent;\n    color: ${t("button.text.info.color")};\n}\n\n.p-button-text.p-button-info:not(:disabled):hover {\n    background: ${t("button.text.info.hover.background")};\n    border-color: transparent;\n    color: ${t("button.text.info.color")};\n}\n\n.p-button-text.p-button-info:not(:disabled):active {\n    background: ${t("button.text.info.active.background")};\n    border-color: transparent;\n    color: ${t("button.text.info.color")};\n}\n\n.p-button-text.p-button-warn {\n    background: transparent;\n    border-color: transparent;\n    color: ${t("button.text.warn.color")};\n}\n\n.p-button-text.p-button-warn:not(:disabled):hover {\n    background: ${t("button.text.warn.hover.background")};\n    border-color: transparent;\n    color: ${t("button.text.warn.color")};\n}\n\n.p-button-text.p-button-warn:not(:disabled):active {\n    background: ${t("button.text.warn.active.background")};\n    border-color: transparent;\n    color: ${t("button.text.warn.color")};\n}\n\n.p-button-text.p-button-help {\n    background: transparent;\n    border-color: transparent;\n    color: ${t("button.text.help.color")};\n}\n\n.p-button-text.p-button-help:not(:disabled):hover {\n    background: ${t("button.text.help.hover.background")};\n    border-color: transparent;\n    color: ${t("button.text.help.color")};\n}\n\n.p-button-text.p-button-help:not(:disabled):active {\n    background: ${t("button.text.help.active.background")};\n    border-color: transparent;\n    color: ${t("button.text.help.color")};\n}\n\n.p-button-text.p-button-danger {\n    background: transparent;\n    border-color: transparent;\n    color: ${t("button.text.danger.color")};\n}\n\n.p-button-text.p-button-danger:not(:disabled):hover {\n    background: ${t("button.text.danger.hover.background")};\n    border-color: transparent;\n    color: ${t("button.text.danger.color")};\n}\n\n.p-button-text.p-button-danger:not(:disabled):active {\n    background: ${t("button.text.danger.active.background")};\n    border-color: transparent;\n    color: ${t("button.text.danger.color")};\n}\n\n.p-button-text.p-button-plain {\n    background: transparent;\n    border-color: transparent;\n    color: ${t("button.text.plain.color")};\n}\n\n.p-button-text.p-button-plain:not(:disabled):hover {\n    background: ${t("button.text.plain.hover.background")};\n    border-color: transparent;\n    color: ${t("button.text.plain.color")};\n}\n\n.p-button-text.p-button-plain:not(:disabled):active {\n    background: ${t("button.text.plain.active.background")};\n    border-color: transparent;\n    color: ${t("button.text.plain.color")};\n}\n\n.p-button-text.p-button-contrast {\n    background: transparent;\n    border-color: transparent;\n    color: ${t("button.text.contrast.color")};\n}\n\n.p-button-text.p-button-contrast:not(:disabled):hover {\n    background: ${t("button.text.contrast.hover.background")};\n    border-color: transparent;\n    color: ${t("button.text.contrast.color")};\n}\n\n.p-button-text.p-button-contrast:not(:disabled):active {\n    background: ${t("button.text.contrast.active.background")};\n    border-color: transparent;\n    color: ${t("button.text.contrast.color")};\n}\n\n.p-button-link {\n    background: transparent;\n    border-color: transparent;\n    color: ${t("button.link.color")};\n}\n\n.p-button-link:not(:disabled):hover {\n    background: transparent;\n    border-color: transparent;\n    color: ${t("button.link.hover.color")};\n}\n\n.p-button-link:not(:disabled):hover .p-button-label {\n    text-decoration: underline;\n}\n\n.p-button-link:not(:disabled):active {\n    background: transparent;\n    border-color: transparent;\n    color: ${t("button.link.active.color")};\n}\n\n/* For PrimeNG */\n.p-button-icon-right {\n    order: 1;\n}\n\np-button[iconpos='right'] spinnericon {\n    order: 1;\n}\n`,kCe={root:({instance:t,props:r})=>["p-button p-component",{"p-button-icon-only":t.hasIcon&&!r.label&&!r.badge,"p-button-vertical":("top"===r.iconPos||"bottom"===r.iconPos)&&r.label,"p-button-loading":r.loading,"p-button-link":r.link,[`p-button-${r.severity}`]:r.severity,"p-button-raised":r.raised,"p-button-rounded":r.rounded,"p-button-text":r.text,"p-button-outlined":r.outlined,"p-button-sm":"small"===r.size,"p-button-lg":"large"===r.size,"p-button-plain":r.plain,"p-button-fluid":r.fluid}],loadingIcon:"p-button-loading-icon",icon:({props:t})=>["p-button-icon",{[`p-button-icon-${t.iconPos}`]:t.label}],label:"p-button-label"};let Yw=(()=>{class t extends gs{name="button";theme=DCe;classes=kCe;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const ACe=["content"],MCe=["loading"],RCe=["icon"],OCe=["*"],Ete=t=>({class:t});function FCe(t,r){1&t&&n.eu8(0)}function PCe(t,r){if(1&t&&n.nrm(0,"span",8),2&t){const e=n.XpG(3);n.Y8G("ngClass",e.iconClass()),n.BMQ("aria-hidden",!0)("data-pc-section","loadingicon")}}function LCe(t,r){if(1&t&&n.nrm(0,"SpinnerIcon",9),2&t){const e=n.XpG(3);n.Y8G("styleClass",e.spinnerIconClass())("spin",!0),n.BMQ("aria-hidden",!0)("data-pc-section","loadingicon")}}function NCe(t,r){if(1&t&&(n.qex(0),n.DNE(1,PCe,1,3,"span",6)(2,LCe,1,4,"SpinnerIcon",7),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngIf",e.loadingIcon),n.R7$(),n.Y8G("ngIf",!e.loadingIcon)}}function GCe(t,r){}function BCe(t,r){if(1&t&&n.DNE(0,GCe,0,0,"ng-template",10),2&t){const e=n.XpG(2);n.Y8G("ngIf",e.loadingIconTemplate||e._loadingIconTemplate)}}function VCe(t,r){if(1&t&&(n.qex(0),n.DNE(1,NCe,3,2,"ng-container",2)(2,BCe,1,1,null,5),n.bVm()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate),n.R7$(),n.Y8G("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)("ngTemplateOutletContext",n.eq3(3,Ete,e.iconClass()))}}function jCe(t,r){if(1&t&&n.nrm(0,"span",8),2&t){const e=n.XpG(2);n.HbH(e.icon),n.Y8G("ngClass",e.iconClass()),n.BMQ("data-pc-section","icon")}}function HCe(t,r){}function UCe(t,r){if(1&t&&n.DNE(0,HCe,0,0,"ng-template",10),2&t){const e=n.XpG(2);n.Y8G("ngIf",!e.icon&&(e.iconTemplate||e._iconTemplate))}}function $Ce(t,r){if(1&t&&(n.qex(0),n.DNE(1,jCe,1,4,"span",11)(2,UCe,1,1,null,5),n.bVm()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngIf",e.icon&&!e.iconTemplate&&!e._iconTemplate),n.R7$(),n.Y8G("ngTemplateOutlet",e.iconTemplate||e._iconTemplate)("ngTemplateOutletContext",n.eq3(3,Ete,e.iconClass()))}}function YCe(t,r){if(1&t&&(n.j41(0,"span",12),n.EFF(1),n.k0s()),2&t){const e=n.XpG();n.BMQ("aria-hidden",e.icon&&!e.label)("data-pc-section","label"),n.R7$(),n.JRh(e.label)}}function WCe(t,r){if(1&t&&n.nrm(0,"p-badge",13),2&t){const e=n.XpG();n.Y8G("value",e.badge)("severity",e.badgeSeverity)}}let Rp=(()=>{class t extends jo{type="button";iconPos="left";icon;badge;label;disabled;loading=!1;loadingIcon;raised=!1;rounded=!1;text=!1;plain=!1;severity;outlined=!1;link=!1;tabindex;size;variant;style;styleClass;badgeClass;badgeSeverity="secondary";ariaLabel;autofocus;fluid;onClick=new n.bkB;onFocus=new n.bkB;onBlur=new n.bkB;contentTemplate;loadingIconTemplate;iconTemplate;_buttonProps;get buttonProps(){return this._buttonProps}set buttonProps(e){this._buttonProps=e,e&&"object"==typeof e&&Object.entries(e).forEach(([i,o])=>this[`_${i}`]!==o&&(this[`_${i}`]=o))}get hasFluid(){const i=this.el.nativeElement.closest("p-fluid");return lp(this.fluid)?!!i:this.fluid}_componentStyle=(0,n.WQX)(Yw);templates;_contentTemplate;_iconTemplate;_loadingIconTemplate;ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"content":default:this.contentTemplate=e.template;break;case"icon":this.iconTemplate=e.template;break;case"loadingicon":this.loadingIconTemplate=e.template}})}ngOnChanges(e){super.ngOnChanges(e);const{buttonProps:i}=e;if(i){const o=i.currentValue;for(const s in o)this[s]=o[s]}}spinnerIconClass(){return Object.entries(this.iconClass()).filter(([,e])=>!!e).reduce((e,[i])=>e+` ${i}`,"p-button-loading-icon")}iconClass(){return{[`p-button-loading-icon pi-spin ${this.loadingIcon??""}`]:this.loading,"p-button-icon":!0,"p-button-icon-left":"left"===this.iconPos&&this.label,"p-button-icon-right":"right"===this.iconPos&&this.label,"p-button-icon-top":"top"===this.iconPos&&this.label,"p-button-icon-bottom":"bottom"===this.iconPos&&this.label}}get buttonClass(){return{"p-button p-component":!0,"p-button-icon-only":(this.icon||this.iconTemplate||this.loadingIcon||this.loadingIconTemplate||this._loadingIconTemplate)&&!this.label,"p-button-vertical":("top"===this.iconPos||"bottom"===this.iconPos)&&this.label,"p-button-loading":this.loading,"p-button-loading-label-only":this.loading&&!this.icon&&this.label&&!this.loadingIcon&&"left"===this.iconPos,"p-button-link":this.link,[`p-button-${this.severity}`]:this.severity,"p-button-raised":this.raised,"p-button-rounded":this.rounded,"p-button-text":this.text||"text"==this.variant,"p-button-outlined":this.outlined||"outlined"==this.variant,"p-button-sm":"small"===this.size,"p-button-lg":"large"===this.size,"p-button-plain":this.plain,"p-button-fluid":this.hasFluid,[`${this.styleClass}`]:this.styleClass}}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["p-button"]],contentQueries:function(i,o,s){if(1&i&&(n.wni(s,ACe,5),n.wni(s,MCe,5),n.wni(s,RCe,5),n.wni(s,hs,4)),2&i){let a;n.mGM(a=n.lsd())&&(o.contentTemplate=a.first),n.mGM(a=n.lsd())&&(o.loadingIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.iconTemplate=a.first),n.mGM(a=n.lsd())&&(o.templates=a)}},inputs:{type:"type",iconPos:"iconPos",icon:"icon",badge:"badge",label:"label",disabled:[2,"disabled","disabled",n.L39],loading:[2,"loading","loading",n.L39],loadingIcon:"loadingIcon",raised:[2,"raised","raised",n.L39],rounded:[2,"rounded","rounded",n.L39],text:[2,"text","text",n.L39],plain:[2,"plain","plain",n.L39],severity:"severity",outlined:[2,"outlined","outlined",n.L39],link:[2,"link","link",n.L39],tabindex:[2,"tabindex","tabindex",n.Udg],size:"size",variant:"variant",style:"style",styleClass:"styleClass",badgeClass:"badgeClass",badgeSeverity:"badgeSeverity",ariaLabel:"ariaLabel",autofocus:[2,"autofocus","autofocus",n.L39],fluid:[2,"fluid","fluid",n.L39],buttonProps:"buttonProps"},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},features:[n.Jv_([Yw]),n.GFd,n.Vt3,n.OA$],ngContentSelectors:OCe,decls:7,vars:14,consts:[["pRipple","",3,"click","focus","blur","ngStyle","disabled","ngClass","pAutoFocus"],[4,"ngTemplateOutlet"],[4,"ngIf"],["class","p-button-label",4,"ngIf"],[3,"value","severity",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngClass",4,"ngIf"],[3,"styleClass","spin",4,"ngIf"],[3,"ngClass"],[3,"styleClass","spin"],[3,"ngIf"],[3,"class","ngClass",4,"ngIf"],[1,"p-button-label"],[3,"value","severity"]],template:function(i,o){1&i&&(n.NAR(),n.j41(0,"button",0),n.bIt("click",function(a){return o.onClick.emit(a)})("focus",function(a){return o.onFocus.emit(a)})("blur",function(a){return o.onBlur.emit(a)}),n.SdG(1),n.DNE(2,FCe,1,0,"ng-container",1)(3,VCe,3,5,"ng-container",2)(4,$Ce,3,5,"ng-container",2)(5,YCe,2,3,"span",3)(6,WCe,1,2,"p-badge",4),n.k0s()),2&i&&(n.Y8G("ngStyle",o.style)("disabled",o.disabled||o.loading)("ngClass",o.buttonClass)("pAutoFocus",o.autofocus),n.BMQ("type",o.type)("aria-label",o.ariaLabel)("data-pc-name","button")("data-pc-section","root")("tabindex",o.tabindex),n.R7$(2),n.Y8G("ngTemplateOutlet",o.contentTemplate||o._contentTemplate),n.R7$(),n.Y8G("ngIf",o.loading),n.R7$(),n.Y8G("ngIf",!o.loading),n.R7$(),n.Y8G("ngIf",!o.contentTemplate&&!o._contentTemplate&&o.label),n.R7$(),n.Y8G("ngIf",!o.contentTemplate&&!o._contentTemplate&&o.badge))},dependencies:[gn,bi,fi,uo,Jr,Mh,Jf,Ax,dk,D8,Di],encapsulation:2,changeDetection:0})}return t})(),mf=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({imports:[gn,Rp,Di,Di]})}return t})(),Ite=(()=>{class t extends jo{pFocusTrapDisabled=!1;platformId=(0,n.WQX)(n.Agw);document=(0,n.WQX)(be);firstHiddenFocusableElement;lastHiddenFocusableElement;ngOnInit(){super.ngOnInit(),Gr(this.platformId)&&!this.pFocusTrapDisabled&&!this.firstHiddenFocusableElement&&!this.lastHiddenFocusableElement&&this.createHiddenFocusableElements()}ngOnChanges(e){super.ngOnChanges(e),e.pFocusTrapDisabled&&Gr(this.platformId)&&(e.pFocusTrapDisabled.currentValue?this.removeHiddenFocusableElements():this.createHiddenFocusableElements())}removeHiddenFocusableElements(){this.firstHiddenFocusableElement&&this.firstHiddenFocusableElement.parentNode&&this.firstHiddenFocusableElement.parentNode.removeChild(this.firstHiddenFocusableElement),this.lastHiddenFocusableElement&&this.lastHiddenFocusableElement.parentNode&&this.lastHiddenFocusableElement.parentNode.removeChild(this.lastHiddenFocusableElement)}getComputedSelector(e){return`:not(.p-hidden-focusable):not([data-p-hidden-focusable="true"])${e??""}`}createHiddenFocusableElements(){const i=o=>function Nme(t,r={},...e){if(t){const i=document.createElement(t);return q5(i,r),i.append(...e),i}}("span",{class:"p-hidden-accessible p-hidden-focusable",tabindex:"0",role:"presentation","aria-hidden":!0,"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0,onFocus:o?.bind(this)});this.firstHiddenFocusableElement=i(this.onFirstHiddenElementFocus),this.lastHiddenFocusableElement=i(this.onLastHiddenElementFocus),this.firstHiddenFocusableElement.setAttribute("data-pc-section","firstfocusableelement"),this.lastHiddenFocusableElement.setAttribute("data-pc-section","lastfocusableelement"),this.el.nativeElement.prepend(this.firstHiddenFocusableElement),this.el.nativeElement.append(this.lastHiddenFocusableElement)}onFirstHiddenElementFocus(e){const{currentTarget:i,relatedTarget:o}=e;la(o!==this.lastHiddenFocusableElement&&this.el.nativeElement?.contains(o)?this.lastHiddenFocusableElement:bx(i.parentElement,":not(.p-hidden-focusable)"))}onLastHiddenElementFocus(e){const{currentTarget:i,relatedTarget:o}=e;la(o!==this.firstHiddenFocusableElement&&this.el.nativeElement?.contains(o)?this.firstHiddenFocusableElement:nO(i.parentElement,":not(.p-hidden-focusable)"))}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275dir=n.FsC({type:t,selectors:[["","pFocusTrap",""]],inputs:{pFocusTrapDisabled:[2,"pFocusTrapDisabled","pFocusTrapDisabled",n.L39]},features:[n.GFd,n.Vt3,n.OA$]})}return t})(),Ate=(()=>{class t extends Gc{pathId;ngOnInit(){this.pathId="url(#"+Bl()+")"}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["WindowMaximizeIcon"]],features:[n.Vt3],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14ZM9.77805 7.42192C9.89013 7.534 10.0415 7.59788 10.2 7.59995C10.3585 7.59788 10.5099 7.534 10.622 7.42192C10.7341 7.30985 10.798 7.15844 10.8 6.99995V3.94242C10.8066 3.90505 10.8096 3.86689 10.8089 3.82843C10.8079 3.77159 10.7988 3.7157 10.7824 3.6623C10.756 3.55552 10.701 3.45698 10.622 3.37798C10.5099 3.2659 10.3585 3.20202 10.2 3.19995H7.00002C6.84089 3.19995 6.68828 3.26317 6.57576 3.37569C6.46324 3.48821 6.40002 3.64082 6.40002 3.79995C6.40002 3.95908 6.46324 4.11169 6.57576 4.22422C6.68828 4.33674 6.84089 4.39995 7.00002 4.39995H8.80006L6.19997 7.00005C6.10158 7.11005 6.04718 7.25246 6.04718 7.40005C6.04718 7.54763 6.10158 7.69004 6.19997 7.80005C6.30202 7.91645 6.44561 7.98824 6.59997 8.00005C6.75432 7.98824 6.89791 7.91645 6.99997 7.80005L9.60002 5.26841V6.99995C9.6021 7.15844 9.66598 7.30985 9.77805 7.42192ZM1.4 14H3.8C4.17066 13.9979 4.52553 13.8498 4.78763 13.5877C5.04973 13.3256 5.1979 12.9707 5.2 12.6V10.2C5.1979 9.82939 5.04973 9.47452 4.78763 9.21242C4.52553 8.95032 4.17066 8.80215 3.8 8.80005H1.4C1.02934 8.80215 0.674468 8.95032 0.412371 9.21242C0.150274 9.47452 0.00210008 9.82939 0 10.2V12.6C0.00210008 12.9707 0.150274 13.3256 0.412371 13.5877C0.674468 13.8498 1.02934 13.9979 1.4 14ZM1.25858 10.0586C1.29609 10.0211 1.34696 10 1.4 10H3.8C3.85304 10 3.90391 10.0211 3.94142 10.0586C3.97893 10.0961 4 10.147 4 10.2V12.6C4 12.6531 3.97893 12.704 3.94142 12.7415C3.90391 12.779 3.85304 12.8 3.8 12.8H1.4C1.34696 12.8 1.29609 12.779 1.25858 12.7415C1.22107 12.704 1.2 12.6531 1.2 12.6V10.2C1.2 10.147 1.22107 10.0961 1.25858 10.0586Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,o){1&i&&(n.qSk(),n.j41(0,"svg",0)(1,"g"),n.nrm(2,"path",1),n.k0s(),n.j41(3,"defs")(4,"clipPath",2),n.nrm(5,"rect",3),n.k0s()()()),2&i&&(n.HbH(o.getClassNames()),n.BMQ("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),n.R7$(),n.BMQ("clip-path",o.pathId),n.R7$(3),n.Y8G("id",o.pathId))},encapsulation:2})}return t})(),Mte=(()=>{class t extends Gc{pathId;ngOnInit(){this.pathId="url(#"+Bl()+")"}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["WindowMinimizeIcon"]],features:[n.Vt3],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0ZM6.368 7.952C6.44137 7.98326 6.52025 7.99958 6.6 8H9.8C9.95913 8 10.1117 7.93678 10.2243 7.82426C10.3368 7.71174 10.4 7.55913 10.4 7.4C10.4 7.24087 10.3368 7.08826 10.2243 6.97574C10.1117 6.86321 9.95913 6.8 9.8 6.8H8.048L10.624 4.224C10.73 4.11026 10.7877 3.95982 10.7849 3.80438C10.7822 3.64894 10.7192 3.50063 10.6093 3.3907C10.4994 3.28077 10.3511 3.2178 10.1956 3.21506C10.0402 3.21232 9.88974 3.27002 9.776 3.376L7.2 5.952V4.2C7.2 4.04087 7.13679 3.88826 7.02426 3.77574C6.91174 3.66321 6.75913 3.6 6.6 3.6C6.44087 3.6 6.28826 3.66321 6.17574 3.77574C6.06321 3.88826 6 4.04087 6 4.2V7.4C6.00042 7.47975 6.01674 7.55862 6.048 7.632C6.07656 7.70442 6.11971 7.7702 6.17475 7.82524C6.2298 7.88029 6.29558 7.92344 6.368 7.952ZM1.4 8.80005H3.8C4.17066 8.80215 4.52553 8.95032 4.78763 9.21242C5.04973 9.47452 5.1979 9.82939 5.2 10.2V12.6C5.1979 12.9707 5.04973 13.3256 4.78763 13.5877C4.52553 13.8498 4.17066 13.9979 3.8 14H1.4C1.02934 13.9979 0.674468 13.8498 0.412371 13.5877C0.150274 13.3256 0.00210008 12.9707 0 12.6V10.2C0.00210008 9.82939 0.150274 9.47452 0.412371 9.21242C0.674468 8.95032 1.02934 8.80215 1.4 8.80005ZM3.94142 12.7415C3.97893 12.704 4 12.6531 4 12.6V10.2C4 10.147 3.97893 10.0961 3.94142 10.0586C3.90391 10.0211 3.85304 10 3.8 10H1.4C1.34696 10 1.29609 10.0211 1.25858 10.0586C1.22107 10.0961 1.2 10.147 1.2 10.2V12.6C1.2 12.6531 1.22107 12.704 1.25858 12.7415C1.29609 12.779 1.34696 12.8 1.4 12.8H3.8C3.85304 12.8 3.90391 12.779 3.94142 12.7415Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,o){1&i&&(n.qSk(),n.j41(0,"svg",0)(1,"g"),n.nrm(2,"path",1),n.k0s(),n.j41(3,"defs")(4,"clipPath",2),n.nrm(5,"rect",3),n.k0s()()()),2&i&&(n.HbH(o.getClassNames()),n.BMQ("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),n.R7$(),n.BMQ("clip-path",o.pathId),n.R7$(3),n.Y8G("id",o.pathId))},encapsulation:2})}return t})();const zCe=({dt:t})=>`\n.p-dialog {\n    max-height: 90%;\n    transform: scale(1);\n    border-radius: ${t("dialog.border.radius")};\n    box-shadow: ${t("dialog.shadow")};\n    background: ${t("dialog.background")};\n    border: 1px solid ${t("dialog.border.color")};\n    color: ${t("dialog.color")};\n    display: flex;\n    flex-direction: column;\n    pointer-events: auto\n}\n\n.p-dialog-content {\n    overflow-y: auto;\n    padding: ${t("dialog.content.padding")};\n    flex-grow: 1;\n}\n\n.p-dialog-header {\n    display: flex;\n    align-items: center;\n    justify-content: space-between;\n    flex-shrink: 0;\n    padding: ${t("dialog.header.padding")};\n}\n\n.p-dialog-title {\n    font-weight: ${t("dialog.title.font.weight")};\n    font-size: ${t("dialog.title.font.size")};\n}\n\n.p-dialog-footer {\n    flex-shrink: 0;\n    padding: ${t("dialog.footer.padding")};\n    display: flex;\n    justify-content: flex-end;\n    gap: ${t("dialog.footer.gap")};\n}\n\n.p-dialog-header-actions {\n    display: flex;\n    align-items: center;\n    gap: ${t("dialog.header.gap")};\n}\n\n.p-dialog-enter-active {\n    transition: all 150ms cubic-bezier(0, 0, 0.2, 1);\n}\n\n.p-dialog-leave-active {\n    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);\n}\n\n.p-dialog-enter-from,\n.p-dialog-leave-to {\n    opacity: 0;\n    transform: scale(0.7);\n}\n\n.p-dialog-top .p-dialog,\n.p-dialog-bottom .p-dialog,\n.p-dialog-left .p-dialog,\n.p-dialog-right .p-dialog,\n.p-dialog-topleft .p-dialog,\n.p-dialog-topright .p-dialog,\n.p-dialog-bottomleft .p-dialog,\n.p-dialog-bottomright .p-dialog {\n    margin: 0.75rem;\n    transform: translate3d(0px, 0px, 0px);\n}\n\n.p-dialog-top .p-dialog-enter-active,\n.p-dialog-top .p-dialog-leave-active,\n.p-dialog-bottom .p-dialog-enter-active,\n.p-dialog-bottom .p-dialog-leave-active,\n.p-dialog-left .p-dialog-enter-active,\n.p-dialog-left .p-dialog-leave-active,\n.p-dialog-right .p-dialog-enter-active,\n.p-dialog-right .p-dialog-leave-active,\n.p-dialog-topleft .p-dialog-enter-active,\n.p-dialog-topleft .p-dialog-leave-active,\n.p-dialog-topright .p-dialog-enter-active,\n.p-dialog-topright .p-dialog-leave-active,\n.p-dialog-bottomleft .p-dialog-enter-active,\n.p-dialog-bottomleft .p-dialog-leave-active,\n.p-dialog-bottomright .p-dialog-enter-active,\n.p-dialog-bottomright .p-dialog-leave-active {\n    transition: all 0.3s ease-out;\n}\n\n.p-dialog-top .p-dialog-enter-from,\n.p-dialog-top .p-dialog-leave-to {\n    transform: translate3d(0px, -100%, 0px);\n}\n\n.p-dialog-bottom .p-dialog-enter-from,\n.p-dialog-bottom .p-dialog-leave-to {\n    transform: translate3d(0px, 100%, 0px);\n}\n\n.p-dialog-left .p-dialog-enter-from,\n.p-dialog-left .p-dialog-leave-to,\n.p-dialog-topleft .p-dialog-enter-from,\n.p-dialog-topleft .p-dialog-leave-to,\n.p-dialog-bottomleft .p-dialog-enter-from,\n.p-dialog-bottomleft .p-dialog-leave-to {\n    transform: translate3d(-100%, 0px, 0px);\n}\n\n.p-dialog-right .p-dialog-enter-from,\n.p-dialog-right .p-dialog-leave-to,\n.p-dialog-topright .p-dialog-enter-from,\n.p-dialog-topright .p-dialog-leave-to,\n.p-dialog-bottomright .p-dialog-enter-from,\n.p-dialog-bottomright .p-dialog-leave-to {\n    transform: translate3d(100%, 0px, 0px);\n}\n\n.p-dialog-left:dir(rtl) .p-dialog-enter-from,\n.p-dialog-left:dir(rtl) .p-dialog-leave-to,\n.p-dialog-topleft:dir(rtl) .p-dialog-enter-from,\n.p-dialog-topleft:dir(rtl) .p-dialog-leave-to,\n.p-dialog-bottomleft:dir(rtl) .p-dialog-enter-from,\n.p-dialog-bottomleft:dir(rtl) .p-dialog-leave-to {\n    transform: translate3d(100%, 0px, 0px);\n}\n\n.p-dialog-right:dir(rtl) .p-dialog-enter-from,\n.p-dialog-right:dir(rtl) .p-dialog-leave-to,\n.p-dialog-topright:dir(rtl) .p-dialog-enter-from,\n.p-dialog-topright:dir(rtl) .p-dialog-leave-to,\n.p-dialog-bottomright:dir(rtl) .p-dialog-enter-from,\n.p-dialog-bottomright:dir(rtl) .p-dialog-leave-to {\n    transform: translate3d(-100%, 0px, 0px);\n}\n\n.p-dialog-maximized {\n    width: 100vw !important;\n    height: 100vh !important;\n    top: 0px !important;\n    left: 0px !important;\n    max-height: 100%;\n    height: 100%;\n    border-radius: 0;\n}\n\n.p-dialog-maximized .p-dialog-content {\n    flex-grow: 1;\n}\n\n.p-overlay-mask:dir(rtl) {\n    flex-direction: row-reverse;\n}\n\n/* For PrimeNG */\n\n.p-dialog .p-resizable-handle {\n    position: absolute;\n    font-size: 0.1px;\n    display: block;\n    cursor: se-resize;\n    width: 12px;\n    height: 12px;\n    right: 1px;\n    bottom: 1px;\n}\n\n.p-confirm-dialog .p-dialog-content {\n    display: flex;\n    align-items: center;\n}\n`,qCe={mask:({instance:t})=>({position:"fixed",height:"100%",width:"100%",left:0,top:0,display:"flex",justifyContent:"left"===t.position||"topleft"===t.position||"bottomleft"===t.position?"flex-start":"right"===t.position||"topright"===t.position||"bottomright"===t.position?"flex-end":"center",alignItems:"top"===t.position||"topleft"===t.position||"topright"===t.position?"flex-start":"bottom"===t.position||"bottomleft"===t.position||"bottomright"===t.position?"flex-end":"center",pointerEvents:t.modal?"auto":"none"}),root:{display:"flex",flexDirection:"column",pointerEvents:"auto"}},XCe={mask:({instance:t})=>{const e=["left","right","top","topleft","topright","bottom","bottomleft","bottomright"].find(i=>i===t.position);return{"p-dialog-mask":!0,"p-overlay-mask p-overlay-mask-enter":t.modal,[`p-dialog-${e}`]:e}},root:({instance:t})=>({"p-dialog p-component":!0,"p-dialog-maximized":t.maximizable&&t.maximized}),header:"p-dialog-header",title:"p-dialog-title",resizeHandle:"p-resizable-handle",headerActions:"p-dialog-header-actions",pcMaximizeButton:"p-dialog-maximize-button",pcCloseButton:"p-dialog-close-button",content:"p-dialog-content",footer:"p-dialog-footer"};let Rte=(()=>{class t extends gs{name="dialog";theme=zCe;classes=XCe;inlineStyles=qCe;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const QCe=["header"],Ote=["content"],Fte=["footer"],JCe=["closeicon"],ZCe=["maximizeicon"],ewe=["minimizeicon"],twe=["headless"],nwe=["titlebar"],iwe=["*",[["p-footer"]]],rwe=["*","p-footer"],owe=(t,r,e)=>({position:"fixed",height:"100%",width:"100%",left:0,top:0,display:"flex","justify-content":t,"align-items":r,"pointer-events":e}),swe=t=>({"p-dialog p-component":!0,"p-dialog-maximized":t}),awe=()=>({display:"flex","flex-direction":"column","pointer-events":"auto"}),lwe=(t,r)=>({transform:t,transition:r}),cwe=t=>({value:"visible",params:t});function uwe(t,r){1&t&&n.eu8(0)}function dwe(t,r){if(1&t&&(n.qex(0),n.DNE(1,uwe,1,0,"ng-container",11),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngTemplateOutlet",e._headlessTemplate||e.headlessTemplate||e.headlessT)}}function pwe(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",19),n.bIt("mousedown",function(o){n.eBV(e);const s=n.XpG(4);return n.Njj(s.initResize(o))}),n.k0s()}if(2&t){const e=n.XpG(4);n.Y8G("ngClass",e.cx("resizeHandle"))}}function hwe(t,r){if(1&t&&(n.j41(0,"span",20),n.EFF(1),n.k0s()),2&t){const e=n.XpG(4);n.Y8G("id",e.ariaLabelledBy)("ngClass",e.cx("title")),n.R7$(),n.JRh(e.header)}}function fwe(t,r){1&t&&n.eu8(0)}function mwe(t,r){if(1&t&&n.nrm(0,"span",15),2&t){const e=n.XpG(5);n.Y8G("ngClass",e.maximized?e.minimizeIcon:e.maximizeIcon)}}function gwe(t,r){1&t&&n.nrm(0,"WindowMaximizeIcon")}function vwe(t,r){1&t&&n.nrm(0,"WindowMinimizeIcon")}function _we(t,r){if(1&t&&(n.qex(0),n.DNE(1,gwe,1,0,"WindowMaximizeIcon",22)(2,vwe,1,0,"WindowMinimizeIcon",22),n.bVm()),2&t){const e=n.XpG(5);n.R7$(),n.Y8G("ngIf",!(e.maximized||e._maximizeiconTemplate||e.maximizeIconTemplate||e.maximizeIconT)),n.R7$(),n.Y8G("ngIf",e.maximized&&!e._minimizeiconTemplate&&!e.minimizeIconTemplate&&!e.minimizeIconT)}}function ywe(t,r){}function bwe(t,r){1&t&&n.DNE(0,ywe,0,0,"ng-template")}function Cwe(t,r){if(1&t&&(n.qex(0),n.DNE(1,bwe,1,0,null,11),n.bVm()),2&t){const e=n.XpG(5);n.R7$(),n.Y8G("ngTemplateOutlet",e._maximizeiconTemplate||e.maximizeIconTemplate||e.maximizeIconT)}}function wwe(t,r){}function Twe(t,r){1&t&&n.DNE(0,wwe,0,0,"ng-template")}function Swe(t,r){if(1&t&&(n.qex(0),n.DNE(1,Twe,1,0,null,11),n.bVm()),2&t){const e=n.XpG(5);n.R7$(),n.Y8G("ngTemplateOutlet",e._minimizeiconTemplate||e.minimizeIconTemplate||e.minimizeIconT)}}function xwe(t,r){if(1&t){const e=n.RV6();n.j41(0,"p-button",21),n.bIt("onClick",function(){n.eBV(e);const o=n.XpG(4);return n.Njj(o.maximize())})("keydown.enter",function(){n.eBV(e);const o=n.XpG(4);return n.Njj(o.maximize())}),n.DNE(1,mwe,1,1,"span",18)(2,_we,3,2,"ng-container",22)(3,Cwe,2,1,"ng-container",22)(4,Swe,2,1,"ng-container",22),n.k0s()}if(2&t){const e=n.XpG(4);n.Y8G("styleClass",e.cx("pcMaximizeButton"))("tabindex",e.maximizable?"0":"-1")("ariaLabel",e.maximizeLabel)("buttonProps",e.maximizeButtonProps),n.R7$(),n.Y8G("ngIf",e.maximizeIcon&&!e._maximizeiconTemplate&&!e._minimizeiconTemplate),n.R7$(),n.Y8G("ngIf",!(e.maximizeIcon||null!=e.maximizeButtonProps&&e.maximizeButtonProps.icon)),n.R7$(),n.Y8G("ngIf",!e.maximized),n.R7$(),n.Y8G("ngIf",e.maximized)}}function Ewe(t,r){if(1&t&&n.nrm(0,"span",15),2&t){const e=n.XpG(7);n.Y8G("ngClass",e.closeIcon)}}function Dwe(t,r){1&t&&n.nrm(0,"TimesIcon")}function kwe(t,r){if(1&t&&(n.qex(0),n.DNE(1,Ewe,1,1,"span",18)(2,Dwe,1,0,"TimesIcon",22),n.bVm()),2&t){const e=n.XpG(6);n.R7$(),n.Y8G("ngIf",e.closeIcon),n.R7$(),n.Y8G("ngIf",!e.closeIcon)}}function Iwe(t,r){}function Awe(t,r){1&t&&n.DNE(0,Iwe,0,0,"ng-template")}function Mwe(t,r){if(1&t&&(n.j41(0,"span"),n.DNE(1,Awe,1,0,null,11),n.k0s()),2&t){const e=n.XpG(6);n.R7$(),n.Y8G("ngTemplateOutlet",e._closeiconTemplate||e.closeIconTemplate||e.closeIconT)}}function Rwe(t,r){if(1&t&&n.DNE(0,kwe,3,2,"ng-container",22)(1,Mwe,2,1,"span",22),2&t){const e=n.XpG(5);n.Y8G("ngIf",!(e._closeiconTemplate||e.closeIconTemplate||e.closeIconT||null!=e.closeButtonProps&&e.closeButtonProps.icon)),n.R7$(),n.Y8G("ngIf",e._closeiconTemplate||e.closeIconTemplate||e.closeIconT)}}function Owe(t,r){if(1&t){const e=n.RV6();n.j41(0,"p-button",23),n.bIt("onClick",function(o){n.eBV(e);const s=n.XpG(4);return n.Njj(s.close(o))})("keydown.enter",function(o){n.eBV(e);const s=n.XpG(4);return n.Njj(s.close(o))}),n.DNE(1,Rwe,2,2,"ng-template",null,4,n.C5r),n.k0s()}if(2&t){const e=n.XpG(4);n.Y8G("styleClass",e.cx("pcCloseButton"))("ariaLabel",e.closeAriaLabel)("tabindex",e.closeTabindex)("buttonProps",e.closeButtonProps)}}function Fwe(t,r){1&t&&n.eu8(0)}function Pwe(t,r){1&t&&n.eu8(0)}function Lwe(t,r){if(1&t&&(n.j41(0,"div",15,5),n.SdG(2,1),n.DNE(3,Pwe,1,0,"ng-container",11),n.k0s()),2&t){const e=n.XpG(4);n.Y8G("ngClass",e.cx("footer")),n.R7$(3),n.Y8G("ngTemplateOutlet",e._footerTemplate||e.footerTemplate||e.footerT)}}function Nwe(t,r){if(1&t){const e=n.RV6();n.DNE(0,pwe,1,1,"div",12),n.j41(1,"div",13,2),n.bIt("mousedown",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.initDrag(o))}),n.DNE(3,hwe,2,3,"span",14)(4,fwe,1,0,"ng-container",11),n.j41(5,"div",15),n.DNE(6,xwe,5,8,"p-button",16)(7,Owe,3,4,"p-button",17),n.k0s()(),n.j41(8,"div",7,3),n.SdG(10),n.DNE(11,Fwe,1,0,"ng-container",11),n.k0s(),n.DNE(12,Lwe,4,2,"div",18)}if(2&t){const e=n.XpG(3);n.Y8G("ngIf",e.resizable),n.R7$(),n.Y8G("ngClass",e.cx("header")),n.R7$(2),n.Y8G("ngIf",!e._headerTemplate&&!e.headerTemplate&&!e.headerT),n.R7$(),n.Y8G("ngTemplateOutlet",e._headerTemplate||e.headerTemplate||e.headerT),n.R7$(),n.Y8G("ngClass",e.cx("headerActions")),n.R7$(),n.Y8G("ngIf",e.maximizable),n.R7$(),n.Y8G("ngIf",e.closable),n.R7$(),n.HbH(e.contentStyleClass),n.Y8G("ngClass",e.cx("content"))("ngStyle",e.contentStyle),n.BMQ("data-pc-section","content"),n.R7$(3),n.Y8G("ngTemplateOutlet",e._contentTemplate||e.contentTemplate||e.contentT),n.R7$(),n.Y8G("ngIf",e._footerTemplate||e.footerTemplate||e.footerT)}}function Gwe(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",9,0),n.bIt("@animation.start",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onAnimationStart(o))})("@animation.done",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onAnimationEnd(o))}),n.DNE(2,dwe,2,1,"ng-container",10)(3,Nwe,13,14,"ng-template",null,1,n.C5r),n.k0s()}if(2&t){const e=n.sdS(4),i=n.XpG(2);n.Aen(i.style),n.HbH(i.styleClass),n.Y8G("ngClass",n.eq3(13,swe,i.maximizable&&i.maximized))("ngStyle",n.lJ4(15,awe))("pFocusTrapDisabled",!1===i.focusTrap)("@animation",n.eq3(19,cwe,n.l_i(16,lwe,i.transformOptions,i.transitionOptions))),n.BMQ("role",i.role)("aria-labelledby",i.ariaLabelledBy)("aria-modal",!0),n.R7$(2),n.Y8G("ngIf",i._headlessTemplate||i.headlessTemplate||i.headlessT)("ngIfElse",e)}}function Bwe(t,r){if(1&t&&(n.j41(0,"div",7),n.DNE(1,Gwe,5,21,"div",8),n.k0s()),2&t){const e=n.XpG();n.Aen(e.maskStyle),n.HbH(e.maskStyleClass),n.Y8G("ngClass",e.maskClass)("ngStyle",n.sMw(7,owe,"left"===e.position||"topleft"===e.position||"bottomleft"===e.position?"flex-start":"right"===e.position||"topright"===e.position||"bottomright"===e.position?"flex-end":"center","top"===e.position||"topleft"===e.position||"topright"===e.position?"flex-start":"bottom"===e.position||"bottomleft"===e.position||"bottomright"===e.position?"flex-end":"center",e.modal?"auto":"none")),n.R7$(),n.Y8G("ngIf",e.visible)}}const Vwe=(0,Hi.lY)([(0,Hi.iF)({transform:"{{transform}}",opacity:0}),(0,Hi.i0)("{{transition}}")]),jwe=(0,Hi.lY)([(0,Hi.i0)("{{transition}}",(0,Hi.iF)({transform:"{{transform}}",opacity:0}))]);let gf=(()=>{class t extends jo{header;draggable=!0;resizable=!0;get positionLeft(){return 0}set positionLeft(e){console.log("positionLeft property is deprecated.")}get positionTop(){return 0}set positionTop(e){console.log("positionTop property is deprecated.")}contentStyle;contentStyleClass;modal=!1;closeOnEscape=!0;dismissableMask=!1;rtl=!1;closable=!0;get responsive(){return!1}set responsive(e){console.log("Responsive property is deprecated.")}appendTo;breakpoints;styleClass;maskStyleClass;maskStyle;showHeader=!0;get breakpoint(){return 649}set breakpoint(e){console.log("Breakpoint property is not utilized and deprecated, use breakpoints or CSS media queries instead.")}blockScroll=!1;autoZIndex=!0;baseZIndex=0;minX=0;minY=0;focusOnShow=!0;maximizable=!1;keepInViewport=!0;focusTrap=!0;transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";closeIcon;closeAriaLabel;closeTabindex="0";minimizeIcon;maximizeIcon;closeButtonProps={severity:"secondary",text:!0,rounded:!0};maximizeButtonProps={severity:"secondary",text:!0,rounded:!0};get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.maskVisible&&(this.maskVisible=!0)}get style(){return this._style}set style(e){e&&(this._style={...e},this.originalStyle=e)}get position(){return this._position}set position(e){switch(this._position=e,e){case"topleft":case"bottomleft":case"left":this.transformOptions="translate3d(-100%, 0px, 0px)";break;case"topright":case"bottomright":case"right":this.transformOptions="translate3d(100%, 0px, 0px)";break;case"bottom":this.transformOptions="translate3d(0px, 100%, 0px)";break;case"top":this.transformOptions="translate3d(0px, -100%, 0px)";break;default:this.transformOptions="scale(0.7)"}}role="dialog";onShow=new n.bkB;onHide=new n.bkB;visibleChange=new n.bkB;onResizeInit=new n.bkB;onResizeEnd=new n.bkB;onDragEnd=new n.bkB;onMaximize=new n.bkB;headerViewChild;contentViewChild;footerViewChild;headerTemplate;contentTemplate;footerTemplate;closeIconTemplate;maximizeIconTemplate;minimizeIconTemplate;headlessTemplate;_headerTemplate;_contentTemplate;_footerTemplate;_closeiconTemplate;_maximizeiconTemplate;_minimizeiconTemplate;_headlessTemplate;_visible=!1;maskVisible;container;wrapper;dragging;ariaLabelledBy=this.getAriaLabelledBy();documentDragListener;documentDragEndListener;resizing;documentResizeListener;documentResizeEndListener;documentEscapeListener;maskClickListener;lastPageX;lastPageY;preventVisibleChangePropagation;maximized;preMaximizeContentHeight;preMaximizeContainerWidth;preMaximizeContainerHeight;preMaximizePageX;preMaximizePageY;id=Bl("pn_id_");_style={};_position="center";originalStyle;transformOptions="scale(0.7)";styleElement;window;_componentStyle=(0,n.WQX)(Rte);headerT;contentT;footerT;closeIconT;maximizeIconT;minimizeIconT;headlessT;get maximizeLabel(){return this.config.getTranslation(Xs.ARIA).maximizeLabel}zone=(0,n.WQX)(n.SKi);get maskClass(){const i=["left","right","top","topleft","topright","bottom","bottomleft","bottomright"].find(o=>o===this.position);return{"p-dialog-mask":!0,"p-overlay-mask p-overlay-mask-enter":this.modal||this.dismissableMask,[`p-dialog-${i}`]:i}}ngOnInit(){super.ngOnInit(),this.breakpoints&&this.createStyle()}templates;ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"header":this.headerT=e.template;break;case"content":default:this.contentT=e.template;break;case"footer":this.footerT=e.template;break;case"closeicon":this.closeIconT=e.template;break;case"maximizeicon":this.maximizeIconT=e.template;break;case"minimizeicon":this.minimizeIconT=e.template;break;case"headless":this.headlessT=e.template}})}getAriaLabelledBy(){return null!==this.header?Bl("pn_id_")+"_header":null}parseDurationToMilliseconds(e){const i=/([\d\.]+)(ms|s)\b/g;let s,o=0;for(;null!==(s=i.exec(e));){const a=parseFloat(s[1]),l=s[2];"ms"===l?o+=a:"s"===l&&(o+=1e3*a)}if(0!==o)return o}_focus(e){if(e){const i=this.parseDurationToMilliseconds(this.transitionOptions);let o=Vr.getFocusableElements(e);if(o&&o.length>0)return this.zone.runOutsideAngular(()=>{setTimeout(()=>o[0].focus(),i||5)}),!0}return!1}focus(e){let i=this._focus(e);i||(i=this._focus(this.footerViewChild?.nativeElement),i||(i=this._focus(this.headerViewChild?.nativeElement),i||this._focus(this.contentViewChild?.nativeElement)))}close(e){this.visibleChange.emit(!1),e.preventDefault()}enableModality(){this.closable&&this.dismissableMask&&(this.maskClickListener=this.renderer.listen(this.wrapper,"mousedown",e=>{this.wrapper&&this.wrapper.isSameNode(e.target)&&this.close(e)})),this.modal&&tO()}disableModality(){if(this.wrapper){this.dismissableMask&&this.unbindMaskClickListener();const e=document.querySelectorAll(".p-dialog-mask-scrollblocker");this.modal&&e&&1==e.length&&Lw(),this.cd.destroyed||this.cd.detectChanges()}}maximize(){this.maximized=!this.maximized,!this.modal&&!this.blockScroll&&(this.maximized?tO():Lw()),this.onMaximize.emit({maximized:this.maximized})}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}moveOnTop(){this.autoZIndex&&(Yc.set("modal",this.container,this.baseZIndex+this.config.zIndex.modal),this.wrapper.style.zIndex=String(parseInt(this.container.style.zIndex,10)-1))}createStyle(){if(Gr(this.platformId)&&!this.styleElement){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",this.renderer.appendChild(this.document.head,this.styleElement);let e="";for(let i in this.breakpoints)e+=`\n                        @media screen and (max-width: ${i}) {\n                            .p-dialog[${this.id}]:not(.p-dialog-maximized) {\n                                width: ${this.breakpoints[i]} !important;\n                            }\n                        }\n                    `;this.renderer.setProperty(this.styleElement,"innerHTML",e),ek(this.styleElement,"nonce",this.config?.csp()?.nonce)}}initDrag(e){Wa(e.target,"p-dialog-maximize-icon")||Wa(e.target,"p-dialog-header-close-icon")||Wa(e.target.parentElement,"p-dialog-header-icon")||this.draggable&&(this.dragging=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,this.container.style.margin="0",Nc(this.document.body,"p-unselectable-text"))}onDrag(e){if(this.dragging){const i=kd(this.container),o=fg(this.container),s=e.pageX-this.lastPageX,a=e.pageY-this.lastPageY,l=this.container.getBoundingClientRect(),c=getComputedStyle(this.container),d=parseFloat(c.marginLeft),f=parseFloat(c.marginTop),v=l.left+s-d,w=l.top+a-f,x=JD();this.container.style.position="fixed",this.keepInViewport?(v>=this.minX&&v+i<x.width&&(this._style.left=`${v}px`,this.lastPageX=e.pageX,this.container.style.left=`${v}px`),w>=this.minY&&w+o<x.height&&(this._style.top=`${w}px`,this.lastPageY=e.pageY,this.container.style.top=`${w}px`)):(this.lastPageX=e.pageX,this.container.style.left=`${v}px`,this.lastPageY=e.pageY,this.container.style.top=`${w}px`)}}endDrag(e){this.dragging&&(this.dragging=!1,ru(this.document.body,"p-unselectable-text"),this.cd.detectChanges(),this.onDragEnd.emit(e))}resetPosition(){this.container.style.position="",this.container.style.left="",this.container.style.top="",this.container.style.margin=""}center(){this.resetPosition()}initResize(e){this.resizable&&(this.resizing=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,Nc(this.document.body,"p-unselectable-text"),this.onResizeInit.emit(e))}onResize(e){if(this.resizing){let i=e.pageX-this.lastPageX,o=e.pageY-this.lastPageY,s=kd(this.container),a=fg(this.container),l=fg(this.contentViewChild?.nativeElement),c=s+i,d=a+o,f=this.container.style.minWidth,v=this.container.style.minHeight,w=this.container.getBoundingClientRect(),x=JD();(!parseInt(this.container.style.top)||!parseInt(this.container.style.left))&&(c+=i,d+=o),(!f||c>parseInt(f))&&w.left+c<x.width&&(this._style.width=c+"px",this.container.style.width=this._style.width),(!v||d>parseInt(v))&&w.top+d<x.height&&(this.contentViewChild.nativeElement.style.height=l+d-a+"px",this._style.height&&(this._style.height=d+"px",this.container.style.height=this._style.height)),this.lastPageX=e.pageX,this.lastPageY=e.pageY}}resizeEnd(e){this.resizing&&(this.resizing=!1,ru(this.document.body,"p-unselectable-text"),this.onResizeEnd.emit(e))}bindGlobalListeners(){this.draggable&&(this.bindDocumentDragListener(),this.bindDocumentDragEndListener()),this.resizable&&this.bindDocumentResizeListeners(),this.closeOnEscape&&this.closable&&this.bindDocumentEscapeListener()}unbindGlobalListeners(){this.unbindDocumentDragListener(),this.unbindDocumentDragEndListener(),this.unbindDocumentResizeListeners(),this.unbindDocumentEscapeListener()}bindDocumentDragListener(){this.documentDragListener||this.zone.runOutsideAngular(()=>{this.documentDragListener=this.renderer.listen(this.document.defaultView,"mousemove",this.onDrag.bind(this))})}unbindDocumentDragListener(){this.documentDragListener&&(this.documentDragListener(),this.documentDragListener=null)}bindDocumentDragEndListener(){this.documentDragEndListener||this.zone.runOutsideAngular(()=>{this.documentDragEndListener=this.renderer.listen(this.document.defaultView,"mouseup",this.endDrag.bind(this))})}unbindDocumentDragEndListener(){this.documentDragEndListener&&(this.documentDragEndListener(),this.documentDragEndListener=null)}bindDocumentResizeListeners(){!this.documentResizeListener&&!this.documentResizeEndListener&&this.zone.runOutsideAngular(()=>{this.documentResizeListener=this.renderer.listen(this.document.defaultView,"mousemove",this.onResize.bind(this)),this.documentResizeEndListener=this.renderer.listen(this.document.defaultView,"mouseup",this.resizeEnd.bind(this))})}unbindDocumentResizeListeners(){this.documentResizeListener&&this.documentResizeEndListener&&(this.documentResizeListener(),this.documentResizeEndListener(),this.documentResizeListener=null,this.documentResizeEndListener=null)}bindDocumentEscapeListener(){this.documentEscapeListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","keydown",i=>{"Escape"==i.key&&this.close(i)})}unbindDocumentEscapeListener(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}appendContainer(){this.appendTo&&("body"===this.appendTo?this.renderer.appendChild(this.document.body,this.wrapper):yx(this.appendTo,this.wrapper))}restoreAppend(){this.container&&this.appendTo&&this.renderer.appendChild(this.el.nativeElement,this.wrapper)}onAnimationStart(e){switch(e.toState){case"visible":this.container=e.element,this.wrapper=this.container?.parentElement,this.appendContainer(),this.moveOnTop(),this.bindGlobalListeners(),this.container?.setAttribute(this.id,""),this.modal&&this.enableModality(),this.focusOnShow&&this.focus();break;case"void":this.wrapper&&this.modal&&Nc(this.wrapper,"p-overlay-mask-leave")}}onAnimationEnd(e){switch(e.toState){case"void":this.onContainerDestroy(),this.onHide.emit({}),this.cd.markForCheck();break;case"visible":this.onShow.emit({})}}onContainerDestroy(){this.unbindGlobalListeners(),this.dragging=!1,this.maskVisible=!1,this.maximized&&(this.document.body.style.removeProperty("--scrollbar;-width"),this.maximized=!1),this.modal&&this.disableModality(),Wa(this.document.body,"p-overflow-hidden")&&ru(this.document.body,"p-overflow-hidden"),this.container&&this.autoZIndex&&Yc.clear(this.container),this.container=null,this.wrapper=null,this._style=this.originalStyle?{...this.originalStyle}:{}}destroyStyle(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}ngOnDestroy(){this.container&&(this.restoreAppend(),this.onContainerDestroy()),this.destroyStyle(),super.ngOnDestroy()}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["p-dialog"]],contentQueries:function(i,o,s){if(1&i&&(n.wni(s,QCe,4),n.wni(s,Ote,4),n.wni(s,Fte,4),n.wni(s,JCe,4),n.wni(s,ZCe,4),n.wni(s,ewe,4),n.wni(s,twe,4),n.wni(s,hs,4)),2&i){let a;n.mGM(a=n.lsd())&&(o._headerTemplate=a.first),n.mGM(a=n.lsd())&&(o._contentTemplate=a.first),n.mGM(a=n.lsd())&&(o._footerTemplate=a.first),n.mGM(a=n.lsd())&&(o._closeiconTemplate=a.first),n.mGM(a=n.lsd())&&(o._maximizeiconTemplate=a.first),n.mGM(a=n.lsd())&&(o._minimizeiconTemplate=a.first),n.mGM(a=n.lsd())&&(o._headlessTemplate=a.first),n.mGM(a=n.lsd())&&(o.templates=a)}},viewQuery:function(i,o){if(1&i&&(n.GBs(nwe,5),n.GBs(Ote,5),n.GBs(Fte,5)),2&i){let s;n.mGM(s=n.lsd())&&(o.headerViewChild=s.first),n.mGM(s=n.lsd())&&(o.contentViewChild=s.first),n.mGM(s=n.lsd())&&(o.footerViewChild=s.first)}},inputs:{header:"header",draggable:[2,"draggable","draggable",n.L39],resizable:[2,"resizable","resizable",n.L39],positionLeft:"positionLeft",positionTop:"positionTop",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",modal:[2,"modal","modal",n.L39],closeOnEscape:[2,"closeOnEscape","closeOnEscape",n.L39],dismissableMask:[2,"dismissableMask","dismissableMask",n.L39],rtl:[2,"rtl","rtl",n.L39],closable:[2,"closable","closable",n.L39],responsive:"responsive",appendTo:"appendTo",breakpoints:"breakpoints",styleClass:"styleClass",maskStyleClass:"maskStyleClass",maskStyle:"maskStyle",showHeader:[2,"showHeader","showHeader",n.L39],breakpoint:"breakpoint",blockScroll:[2,"blockScroll","blockScroll",n.L39],autoZIndex:[2,"autoZIndex","autoZIndex",n.L39],baseZIndex:[2,"baseZIndex","baseZIndex",n.Udg],minX:[2,"minX","minX",n.Udg],minY:[2,"minY","minY",n.Udg],focusOnShow:[2,"focusOnShow","focusOnShow",n.L39],maximizable:[2,"maximizable","maximizable",n.L39],keepInViewport:[2,"keepInViewport","keepInViewport",n.L39],focusTrap:[2,"focusTrap","focusTrap",n.L39],transitionOptions:"transitionOptions",closeIcon:"closeIcon",closeAriaLabel:"closeAriaLabel",closeTabindex:"closeTabindex",minimizeIcon:"minimizeIcon",maximizeIcon:"maximizeIcon",closeButtonProps:"closeButtonProps",maximizeButtonProps:"maximizeButtonProps",visible:"visible",style:"style",position:"position",role:"role",headerTemplate:[0,"content","headerTemplate"],contentTemplate:"contentTemplate",footerTemplate:"footerTemplate",closeIconTemplate:"closeIconTemplate",maximizeIconTemplate:"maximizeIconTemplate",minimizeIconTemplate:"minimizeIconTemplate",headlessTemplate:"headlessTemplate"},outputs:{onShow:"onShow",onHide:"onHide",visibleChange:"visibleChange",onResizeInit:"onResizeInit",onResizeEnd:"onResizeEnd",onDragEnd:"onDragEnd",onMaximize:"onMaximize"},features:[n.Jv_([Rte]),n.GFd,n.Vt3],ngContentSelectors:rwe,decls:1,vars:1,consts:[["container",""],["notHeadless",""],["titlebar",""],["content",""],["icon",""],["footer",""],[3,"ngClass","class","ngStyle","style",4,"ngIf"],[3,"ngClass","ngStyle"],["pFocusTrap","",3,"class","ngClass","ngStyle","style","pFocusTrapDisabled",4,"ngIf"],["pFocusTrap","",3,"ngClass","ngStyle","pFocusTrapDisabled"],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet"],["style","z-index: 90;",3,"ngClass","mousedown",4,"ngIf"],[3,"mousedown","ngClass"],[3,"id","ngClass",4,"ngIf"],[3,"ngClass"],[3,"styleClass","tabindex","ariaLabel","buttonProps","onClick","keydown.enter",4,"ngIf"],[3,"styleClass","ariaLabel","tabindex","buttonProps","onClick","keydown.enter",4,"ngIf"],[3,"ngClass",4,"ngIf"],[2,"z-index","90",3,"mousedown","ngClass"],[3,"id","ngClass"],[3,"onClick","keydown.enter","styleClass","tabindex","ariaLabel","buttonProps"],[4,"ngIf"],[3,"onClick","keydown.enter","styleClass","ariaLabel","tabindex","buttonProps"]],template:function(i,o){1&i&&(n.NAR(iwe),n.DNE(0,Bwe,2,11,"div",6)),2&i&&n.Y8G("ngIf",o.maskVisible)},dependencies:[gn,bi,fi,uo,Jr,Rp,Ite,pf,Ate,Mte,Di],encapsulation:2,data:{animation:[(0,Hi.hZ)("animation",[(0,Hi.kY)("void => visible",[(0,Hi.sM)(Vwe)]),(0,Hi.kY)("visible => void",[(0,Hi.sM)(jwe)])])]},changeDetection:0})}return t})(),vg=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({imports:[gf,Di,Di]})}return t})();const Hwe=({dt:t})=>`\n.p-confirmdialog .p-dialog-content {\n    display: flex;\n    align-items: center;\n    gap:  ${t("confirmdialog.content.gap")};\n}\n\n.p-confirmdialog .p-confirmdialog-icon {\n    color: ${t("confirmdialog.icon.color")};\n    font-size: ${t("confirmdialog.icon.size")};\n    width: ${t("confirmdialog.icon.size")};\n    height: ${t("confirmdialog.icon.size")};\n}\n`,Uwe={root:"p-confirmdialog",icon:"p-confirmdialog-icon",message:"p-confirmdialog-message",pcRejectButton:"p-confirmdialog-reject-button",pcAcceptButton:"p-confirmdialog-accept-button"};let Pte=(()=>{class t extends gs{name="confirmdialog";theme=Hwe;classes=Uwe;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const Ywe=["header"],Wwe=["footer"],zwe=["rejecticon"],qwe=["accepticon"],Xwe=["message"],Kwe=["icon"],Qwe=["headless"],Jwe=[[["p-footer"]]],Zwe=["p-footer"],eTe=(t,r,e)=>({$implicit:t,onAccept:r,onReject:e}),tTe=t=>({$implicit:t});function nTe(t,r){1&t&&n.eu8(0)}function iTe(t,r){if(1&t&&n.DNE(0,nTe,1,0,"ng-container",5),2&t){const e=n.XpG(2);n.Y8G("ngTemplateOutlet",e.headlessTemplate||e._headlessTemplate)("ngTemplateOutletContext",n.sMw(2,eTe,e.confirmation,e.onAccept.bind(e),e.onReject.bind(e)))}}function rTe(t,r){1&t&&n.DNE(0,iTe,1,6,"ng-template",null,2,n.C5r)}function oTe(t,r){1&t&&n.eu8(0)}function sTe(t,r){if(1&t&&(n.j41(0,"div",6),n.DNE(1,oTe,1,0,"ng-container",7),n.k0s()),2&t){const e=n.XpG(2);n.Y8G("ngClass",e.cx("header")),n.R7$(),n.Y8G("ngTemplateOutlet",e.headerTemplate||e._headerTemplate)}}function aTe(t,r){}function lTe(t,r){1&t&&n.DNE(0,aTe,0,0,"ng-template")}function cTe(t,r){if(1&t&&n.DNE(0,lTe,1,0,null,7),2&t){const e=n.XpG(3);n.Y8G("ngTemplateOutlet",e.iconTemplate||e._iconTemplate)}}function uTe(t,r){if(1&t&&n.nrm(0,"i",6),2&t){const e=n.XpG(4);n.HbH(e.option("icon")),n.Y8G("ngClass",e.cx("icon"))}}function dTe(t,r){if(1&t&&n.DNE(0,uTe,1,3,"i",10),2&t){const e=n.XpG(3);n.Y8G("ngIf",e.option("icon"))}}function pTe(t,r){}function hTe(t,r){1&t&&n.DNE(0,pTe,0,0,"ng-template")}function fTe(t,r){if(1&t&&n.DNE(0,hTe,1,0,null,5),2&t){const e=n.XpG(3);n.Y8G("ngTemplateOutlet",e.messageTemplate||e._messageTemplate)("ngTemplateOutletContext",n.eq3(2,tTe,e.confirmation))}}function mTe(t,r){if(1&t&&n.nrm(0,"span",9),2&t){const e=n.XpG(3);n.Y8G("ngClass",e.cx("message"))("innerHTML",e.option("message"),n.npT)}}function gTe(t,r){if(1&t&&n.DNE(0,cTe,1,1)(1,dTe,1,1,"i",8)(2,fTe,1,4)(3,mTe,1,2,"span",9),2&t){const e=n.XpG(2);n.vxM(e.iconTemplate||e._iconTemplate?0:e.iconTemplate||e._iconTemplate||e._messageTemplate||e.messageTemplate?-1:1),n.R7$(2),n.vxM(e.messageTemplate||e._messageTemplate?2:3)}}function vTe(t,r){if(1&t&&n.DNE(0,sTe,2,2,"div",6)(1,gTe,4,2,"ng-template",null,3,n.C5r),2&t){const e=n.XpG();n.vxM(e.headerTemplate||e._headerTemplate?0:-1)}}function _Te(t,r){1&t&&n.eu8(0)}function yTe(t,r){if(1&t&&(n.SdG(0),n.DNE(1,_Te,1,0,"ng-container",7)),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)}}function bTe(t,r){if(1&t&&n.nrm(0,"i"),2&t){const e=n.XpG(5);n.HbH(e.option("rejectIcon"))}}function CTe(t,r){if(1&t&&n.DNE(0,bTe,1,2,"i",14),2&t){const e=n.XpG(4);n.Y8G("ngIf",e.option("rejectIcon"))}}function wTe(t,r){}function TTe(t,r){1&t&&n.DNE(0,wTe,0,0,"ng-template")}function STe(t,r){if(1&t){const e=n.RV6();n.j41(0,"p-button",12),n.bIt("onClick",function(){n.eBV(e);const o=n.XpG(3);return n.Njj(o.onReject())}),n.DNE(1,CTe,1,1,"i",13)(2,TTe,1,0,null,7),n.k0s()}if(2&t){const e=n.XpG(3);n.Y8G("label",e.rejectButtonLabel)("styleClass",e.getButtonStyleClass("pcRejectButton","rejectButtonStyleClass"))("ariaLabel",e.option("rejectButtonProps","ariaLabel"))("buttonProps",e.getRejectButtonProps()),n.R7$(),n.vxM(!e.rejectIcon||e.rejectIconTemplate||e._rejectIconTemplate?-1:1),n.R7$(),n.Y8G("ngTemplateOutlet",e.rejectIconTemplate||e._rejectIconTemplate)}}function xTe(t,r){if(1&t&&n.nrm(0,"i"),2&t){const e=n.XpG(5);n.HbH(e.option("acceptIcon"))}}function ETe(t,r){if(1&t&&n.DNE(0,xTe,1,2,"i",14),2&t){const e=n.XpG(4);n.Y8G("ngIf",e.option("acceptIcon"))}}function DTe(t,r){}function kTe(t,r){1&t&&n.DNE(0,DTe,0,0,"ng-template")}function ITe(t,r){if(1&t){const e=n.RV6();n.j41(0,"p-button",12),n.bIt("onClick",function(){n.eBV(e);const o=n.XpG(3);return n.Njj(o.onAccept())}),n.DNE(1,ETe,1,1,"i",13)(2,kTe,1,0,null,7),n.k0s()}if(2&t){const e=n.XpG(3);n.Y8G("label",e.acceptButtonLabel)("styleClass",e.getButtonStyleClass("pcAcceptButton","acceptButtonStyleClass"))("ariaLabel",e.option("acceptButtonProps","ariaLabel"))("buttonProps",e.getAcceptButtonProps()),n.R7$(),n.vxM(!e.acceptIcon||e._acceptIconTemplate||e.acceptIconTemplate?-1:1),n.R7$(),n.Y8G("ngTemplateOutlet",e.acceptIconTemplate||e._acceptIconTemplate)}}function ATe(t,r){if(1&t&&n.DNE(0,STe,3,6,"p-button",11)(1,ITe,3,6,"p-button",11),2&t){const e=n.XpG(2);n.Y8G("ngIf",e.option("rejectVisible")),n.R7$(),n.Y8G("ngIf",e.option("acceptVisible"))}}function MTe(t,r){if(1&t&&n.DNE(0,yTe,2,1)(1,ATe,2,2),2&t){const e=n.XpG();n.vxM(e.footerTemplate||e._footerTemplate?0:-1),n.R7$(),n.vxM(e.footerTemplate||e._footerTemplate?-1:1)}}const RTe=(0,Hi.lY)([(0,Hi.iF)({transform:"{{transform}}",opacity:0}),(0,Hi.i0)("{{transition}}",(0,Hi.iF)({transform:"none",opacity:1}))]),OTe=(0,Hi.lY)([(0,Hi.i0)("{{transition}}",(0,Hi.iF)({transform:"{{transform}}",opacity:0}))]);let iY=(()=>{class t extends jo{confirmationService;zone;header;icon;message;get style(){return this._style}set style(e){this._style=e,this.cd.markForCheck()}styleClass;maskStyleClass;acceptIcon;acceptLabel;closeAriaLabel;acceptAriaLabel;acceptVisible=!0;rejectIcon;rejectLabel;rejectAriaLabel;rejectVisible=!0;acceptButtonStyleClass;rejectButtonStyleClass;closeOnEscape=!0;dismissableMask;blockScroll=!0;rtl=!1;closable=!0;appendTo="body";key;autoZIndex=!0;baseZIndex=0;transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";focusTrap=!0;defaultFocus="accept";breakpoints;get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.maskVisible&&(this.maskVisible=!0),this.cd.markForCheck()}get position(){return this._position}set position(e){switch(this._position=e,e){case"topleft":case"bottomleft":case"left":this.transformOptions="translate3d(-100%, 0px, 0px)";break;case"topright":case"bottomright":case"right":this.transformOptions="translate3d(100%, 0px, 0px)";break;case"bottom":this.transformOptions="translate3d(0px, 100%, 0px)";break;case"top":this.transformOptions="translate3d(0px, -100%, 0px)";break;default:this.transformOptions="scale(0.7)"}}onHide=new n.bkB;footer;_componentStyle=(0,n.WQX)(Pte);headerTemplate;footerTemplate;rejectIconTemplate;acceptIconTemplate;messageTemplate;iconTemplate;headlessTemplate;templates;_headerTemplate;_footerTemplate;_rejectIconTemplate;_acceptIconTemplate;_messageTemplate;_iconTemplate;_headlessTemplate;confirmation;_visible;_style;maskVisible;dialog;wrapper;contentContainer;subscription;preWidth;_position="center";transformOptions="scale(0.7)";styleElement;id=Bl("pn_id_");ariaLabelledBy=this.getAriaLabelledBy();translationSubscription;get containerClass(){return this.cx("root")+" "+this.styleClass||" "}constructor(e,i){super(),this.confirmationService=e,this.zone=i,this.subscription=this.confirmationService.requireConfirmation$.subscribe(o=>{o?o.key===this.key&&(this.confirmation=o,Object.keys(o).forEach(a=>{this[a]=o[a]}),this.confirmation.accept&&(this.confirmation.acceptEvent=new n.bkB,this.confirmation.acceptEvent.subscribe(this.confirmation.accept)),this.confirmation.reject&&(this.confirmation.rejectEvent=new n.bkB,this.confirmation.rejectEvent.subscribe(this.confirmation.reject)),this.visible=!0):this.hide()})}ngOnInit(){super.ngOnInit(),this.breakpoints&&this.createStyle(),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.visible&&this.cd.markForCheck()})}ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"header":this._headerTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"message":this._messageTemplate=e.template;break;case"icon":this._iconTemplate=e.template;break;case"rejecticon":this._rejectIconTemplate=e.template;break;case"accepticon":this._acceptIconTemplate=e.template;break;case"headless":this._headlessTemplate=e.template}})}getAriaLabelledBy(){return null!==this.header?Bl("pn_id_")+"_header":null}option(e,i){const o=this||this;if(o.hasOwnProperty(e))return i?o[i]:o[e]}getButtonStyleClass(e,i){return[this.cx(e),this.option(i)].filter(Boolean).join(" ")}getElementToFocus(){switch(this.option("defaultFocus")){case"accept":default:return xo(this.dialog.el.nativeElement,".p-confirm-dialog-accept");case"reject":return xo(this.dialog.el.nativeElement,".p-confirm-dialog-reject");case"close":return xo(this.dialog.el.nativeElement,".p-dialog-header-close");case"none":return null}}createStyle(){if(!this.styleElement){this.styleElement=this.document.createElement("style"),this.styleElement.type="text/css",this.document.head.appendChild(this.styleElement);let e="";for(let i in this.breakpoints)e+=`\n                    @media screen and (max-width: ${i}) {\n                        .p-dialog[${this.id}] {\n                            width: ${this.breakpoints[i]} !important;\n                        }\n                    }\n                `;this.styleElement.innerHTML=e,ek(this.styleElement,"nonce",this.config?.csp()?.nonce)}}close(e){this.confirmation?.rejectEvent&&this.confirmation.rejectEvent.emit(tk.CANCEL),this.hide(tk.CANCEL),e.preventDefault()}hide(e){this.onHide.emit(e),this.visible=!1,this.confirmation=null}destroyStyle(){this.styleElement&&(this.document.head.removeChild(this.styleElement),this.styleElement=null)}ngOnDestroy(){this.subscription.unsubscribe(),this.translationSubscription&&this.translationSubscription.unsubscribe(),this.destroyStyle(),super.ngOnDestroy()}onAccept(){this.confirmation&&this.confirmation.acceptEvent&&this.confirmation.acceptEvent.emit(),this.hide(tk.ACCEPT)}onReject(){this.confirmation&&this.confirmation.rejectEvent&&this.confirmation.rejectEvent.emit(tk.REJECT),this.hide(tk.REJECT)}get acceptButtonLabel(){return this.option("acceptLabel")||this.config.getTranslation(Xs.ACCEPT)}get rejectButtonLabel(){return this.option("rejectLabel")||this.config.getTranslation(Xs.REJECT)}getAcceptButtonProps(){return this.option("acceptButtonProps")}getRejectButtonProps(){return this.option("rejectButtonProps")}static \u0275fac=function(i){return new(i||t)(n.rXU(Kf),n.rXU(n.SKi))};static \u0275cmp=n.VBU({type:t,selectors:[["p-confirmDialog"],["p-confirmdialog"],["p-confirm-dialog"]],contentQueries:function(i,o,s){if(1&i&&(n.wni(s,rO,5),n.wni(s,Ywe,4),n.wni(s,Wwe,4),n.wni(s,zwe,4),n.wni(s,qwe,4),n.wni(s,Xwe,4),n.wni(s,Kwe,4),n.wni(s,Qwe,4),n.wni(s,hs,4)),2&i){let a;n.mGM(a=n.lsd())&&(o.footer=a.first),n.mGM(a=n.lsd())&&(o.headerTemplate=a.first),n.mGM(a=n.lsd())&&(o.footerTemplate=a.first),n.mGM(a=n.lsd())&&(o.rejectIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.acceptIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.messageTemplate=a.first),n.mGM(a=n.lsd())&&(o.iconTemplate=a.first),n.mGM(a=n.lsd())&&(o.headlessTemplate=a.first),n.mGM(a=n.lsd())&&(o.templates=a)}},inputs:{header:"header",icon:"icon",message:"message",style:"style",styleClass:"styleClass",maskStyleClass:"maskStyleClass",acceptIcon:"acceptIcon",acceptLabel:"acceptLabel",closeAriaLabel:"closeAriaLabel",acceptAriaLabel:"acceptAriaLabel",acceptVisible:[2,"acceptVisible","acceptVisible",n.L39],rejectIcon:"rejectIcon",rejectLabel:"rejectLabel",rejectAriaLabel:"rejectAriaLabel",rejectVisible:[2,"rejectVisible","rejectVisible",n.L39],acceptButtonStyleClass:"acceptButtonStyleClass",rejectButtonStyleClass:"rejectButtonStyleClass",closeOnEscape:[2,"closeOnEscape","closeOnEscape",n.L39],dismissableMask:[2,"dismissableMask","dismissableMask",n.L39],blockScroll:[2,"blockScroll","blockScroll",n.L39],rtl:[2,"rtl","rtl",n.L39],closable:[2,"closable","closable",n.L39],appendTo:"appendTo",key:"key",autoZIndex:[2,"autoZIndex","autoZIndex",n.L39],baseZIndex:[2,"baseZIndex","baseZIndex",n.Udg],transitionOptions:"transitionOptions",focusTrap:[2,"focusTrap","focusTrap",n.L39],defaultFocus:"defaultFocus",breakpoints:"breakpoints",visible:"visible",position:"position"},outputs:{onHide:"onHide"},features:[n.Jv_([Pte]),n.GFd,n.Vt3],ngContentSelectors:Zwe,decls:6,vars:12,consts:[["dialog",""],["footer",""],["headless",""],["content",""],["role","alertdialog",3,"visibleChange","visible","closable","styleClass","modal","header","closeOnEscape","blockScroll","appendTo","position"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngClass"],[4,"ngTemplateOutlet"],[3,"ngClass","class"],[3,"ngClass","innerHTML"],[3,"ngClass","class",4,"ngIf"],[3,"label","styleClass","ariaLabel","buttonProps","onClick",4,"ngIf"],[3,"onClick","label","styleClass","ariaLabel","buttonProps"],[3,"class"],[3,"class",4,"ngIf"]],template:function(i,o){if(1&i){const s=n.RV6();n.NAR(Jwe),n.j41(0,"p-dialog",4,0),n.mxI("visibleChange",function(l){return n.eBV(s),n.DH7(o.visible,l)||(o.visible=l),n.Njj(l)}),n.DNE(2,rTe,2,0)(3,vTe,3,1)(4,MTe,2,2,"ng-template",null,1,n.C5r),n.k0s()}2&i&&(n.Aen(o.style),n.R50("visible",o.visible),n.Y8G("closable",o.option("closable"))("styleClass",o.containerClass)("modal",!0)("header",o.option("header"))("closeOnEscape",o.option("closeOnEscape"))("blockScroll",o.option("blockScroll"))("appendTo",o.option("appendTo"))("position",o.position),n.R7$(2),n.vxM(o.headlessTemplate||o._headlessTemplate?2:3))},dependencies:[gn,bi,fi,uo,Rp,gf,Di],encapsulation:2,data:{animation:[(0,Hi.hZ)("animation",[(0,Hi.kY)("void => visible",[(0,Hi.sM)(RTe)]),(0,Hi.kY)("visible => void",[(0,Hi.sM)(OTe)])])]},changeDetection:0})}return t})(),rY=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({imports:[iY,Di,Di]})}return t})(),k8=(()=>{class t extends Gc{pathId;ngOnInit(){this.pathId="url(#"+Bl()+")"}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["PlusIcon"]],features:[n.Vt3],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M7.67742 6.32258V0.677419C7.67742 0.497757 7.60605 0.325452 7.47901 0.198411C7.35197 0.0713707 7.17966 0 7 0C6.82034 0 6.64803 0.0713707 6.52099 0.198411C6.39395 0.325452 6.32258 0.497757 6.32258 0.677419V6.32258H0.677419C0.497757 6.32258 0.325452 6.39395 0.198411 6.52099C0.0713707 6.64803 0 6.82034 0 7C0 7.17966 0.0713707 7.35197 0.198411 7.47901C0.325452 7.60605 0.497757 7.67742 0.677419 7.67742H6.32258V13.3226C6.32492 13.5015 6.39704 13.6725 6.52358 13.799C6.65012 13.9255 6.82106 13.9977 7 14C7.17966 14 7.35197 13.9286 7.47901 13.8016C7.60605 13.6745 7.67742 13.5022 7.67742 13.3226V7.67742H13.3226C13.5022 7.67742 13.6745 7.60605 13.8016 7.47901C13.9286 7.35197 14 7.17966 14 7C13.9977 6.82106 13.9255 6.65012 13.799 6.52358C13.6725 6.39704 13.5015 6.32492 13.3226 6.32258H7.67742Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,o){1&i&&(n.qSk(),n.j41(0,"svg",0)(1,"g"),n.nrm(2,"path",1),n.k0s(),n.j41(3,"defs")(4,"clipPath",2),n.nrm(5,"rect",3),n.k0s()()()),2&i&&(n.HbH(o.getClassNames()),n.BMQ("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),n.R7$(),n.BMQ("clip-path",o.pathId),n.R7$(3),n.Y8G("id",o.pathId))},encapsulation:2})}return t})(),FTe=(()=>{class t extends Gc{pathId;ngOnInit(){this.pathId="url(#"+Bl()+")"}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["UploadIcon"]],features:[n.Vt3],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.58942 9.82197C6.70165 9.93405 6.85328 9.99793 7.012 10C7.17071 9.99793 7.32234 9.93405 7.43458 9.82197C7.54681 9.7099 7.61079 9.55849 7.61286 9.4V2.04798L9.79204 4.22402C9.84752 4.28011 9.91365 4.32457 9.98657 4.35479C10.0595 4.38502 10.1377 4.40039 10.2167 4.40002C10.2956 4.40039 10.3738 4.38502 10.4467 4.35479C10.5197 4.32457 10.5858 4.28011 10.6413 4.22402C10.7538 4.11152 10.817 3.95902 10.817 3.80002C10.817 3.64102 10.7538 3.48852 10.6413 3.37602L7.45127 0.190618C7.44656 0.185584 7.44176 0.180622 7.43687 0.175736C7.32419 0.063214 7.17136 0 7.012 0C6.85264 0 6.69981 0.063214 6.58712 0.175736C6.58181 0.181045 6.5766 0.186443 6.5715 0.191927L3.38282 3.37602C3.27669 3.48976 3.2189 3.6402 3.22165 3.79564C3.2244 3.95108 3.28746 4.09939 3.39755 4.20932C3.50764 4.31925 3.65616 4.38222 3.81182 4.38496C3.96749 4.3877 4.11814 4.33001 4.23204 4.22402L6.41113 2.04807V9.4C6.41321 9.55849 6.47718 9.7099 6.58942 9.82197ZM11.9952 14H2.02883C1.751 13.9887 1.47813 13.9228 1.22584 13.8061C0.973545 13.6894 0.746779 13.5241 0.558517 13.3197C0.370254 13.1154 0.22419 12.876 0.128681 12.6152C0.0331723 12.3545 -0.00990605 12.0775 0.0019109 11.8V9.40005C0.0019109 9.24092 0.065216 9.08831 0.1779 8.97579C0.290584 8.86326 0.443416 8.80005 0.602775 8.80005C0.762134 8.80005 0.914966 8.86326 1.02765 8.97579C1.14033 9.08831 1.20364 9.24092 1.20364 9.40005V11.8C1.18295 12.0376 1.25463 12.274 1.40379 12.4602C1.55296 12.6463 1.76817 12.7681 2.00479 12.8H11.9952C12.2318 12.7681 12.447 12.6463 12.5962 12.4602C12.7453 12.274 12.817 12.0376 12.7963 11.8V9.40005C12.7963 9.24092 12.8596 9.08831 12.9723 8.97579C13.085 8.86326 13.2378 8.80005 13.3972 8.80005C13.5565 8.80005 13.7094 8.86326 13.8221 8.97579C13.9347 9.08831 13.998 9.24092 13.998 9.40005V11.8C14.022 12.3563 13.8251 12.8996 13.45 13.3116C13.0749 13.7236 12.552 13.971 11.9952 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,o){1&i&&(n.qSk(),n.j41(0,"svg",0)(1,"g"),n.nrm(2,"path",1),n.k0s(),n.j41(3,"defs")(4,"clipPath",2),n.nrm(5,"rect",3),n.k0s()()()),2&i&&(n.HbH(o.getClassNames()),n.BMQ("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),n.R7$(),n.BMQ("clip-path",o.pathId),n.R7$(3),n.Y8G("id",o.pathId))},encapsulation:2})}return t})();const PTe=({dt:t})=>`\n.p-message {\n    border-radius: ${t("message.border.radius")};\n    outline-width: ${t("message.border.width")};\n    outline-style: solid;\n}\n\n.p-message-content {\n    display: flex;\n    align-items: center;\n    padding: ${t("message.content.padding")};\n    gap: ${t("message.content.gap")};\n    height: 100%;\n}\n\n.p-message-icon {\n    flex-shrink: 0;\n}\n\n.p-message-close-button {\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    flex-shrink: 0;\n    margin-inline-start: auto;\n    overflow: hidden;\n    position: relative;\n    width: ${t("message.close.button.width")};\n    height: ${t("message.close.button.height")};\n    border-radius: ${t("message.close.button.border.radius")};\n    background: transparent;\n    transition: background ${t("message.transition.duration")}, color ${t("message.transition.duration")}, outline-color ${t("message.transition.duration")}, box-shadow ${t("message.transition.duration")}, opacity 0.3s;\n    outline-color: transparent;\n    color: inherit;\n    padding: 0;\n    border: none;\n    cursor: pointer;\n    user-select: none;\n}\n\n.p-message-close-icon {\n    font-size: ${t("message.close.icon.size")};\n    width: ${t("message.close.icon.size")};\n    height: ${t("message.close.icon.size")};\n}\n\n.p-message-close-button:focus-visible {\n    outline-width: ${t("message.close.button.focus.ring.width")};\n    outline-style: ${t("message.close.button.focus.ring.style")};\n    outline-offset: ${t("message.close.button.focus.ring.offset")};\n}\n\n.p-message-info {\n    background: ${t("message.info.background")};\n    outline-color: ${t("message.info.border.color")};\n    color: ${t("message.info.color")};\n    box-shadow: ${t("message.info.shadow")};\n}\n\n.p-message-info .p-message-close-button:focus-visible {\n    outline-color: ${t("message.info.close.button.focus.ring.color")};\n    box-shadow: ${t("message.info.close.button.focus.ring.shadow")};\n}\n\n.p-message-info .p-message-close-button:hover {\n    background: ${t("message.info.close.button.hover.background")};\n}\n\n.p-message-info.p-message-outlined {\n    color: ${t("message.info.outlined.color")};\n    outline-color: ${t("message.info.outlined.border.color")};\n}\n\n.p-message-info.p-message-simple {\n    color: ${t("message.info.simple.color")};\n}\n\n.p-message-success {\n    background: ${t("message.success.background")};\n    outline-color: ${t("message.success.border.color")};\n    color: ${t("message.success.color")};\n    box-shadow: ${t("message.success.shadow")};\n}\n\n.p-message-success .p-message-close-button:focus-visible {\n    outline-color: ${t("message.success.close.button.focus.ring.color")};\n    box-shadow: ${t("message.success.close.button.focus.ring.shadow")};\n}\n\n.p-message-success .p-message-close-button:hover {\n    background: ${t("message.success.close.button.hover.background")};\n}\n\n.p-message-success.p-message-outlined {\n    color: ${t("message.success.outlined.color")};\n    outline-color: ${t("message.success.outlined.border.color")};\n}\n\n.p-message-success.p-message-simple {\n    color: ${t("message.success.simple.color")};\n}\n\n.p-message-warn {\n    background: ${t("message.warn.background")};\n    outline-color: ${t("message.warn.border.color")};\n    color: ${t("message.warn.color")};\n    box-shadow: ${t("message.warn.shadow")};\n}\n\n.p-message-warn .p-message-close-button:focus-visible {\n    outline-color: ${t("message.warn.close.button.focus.ring.color")};\n    box-shadow: ${t("message.warn.close.button.focus.ring.shadow")};\n}\n\n.p-message-warn .p-message-close-button:hover {\n    background: ${t("message.warn.close.button.hover.background")};\n}\n\n.p-message-warn.p-message-outlined {\n    color: ${t("message.warn.outlined.color")};\n    outline-color: ${t("message.warn.outlined.border.color")};\n}\n\n.p-message-warn.p-message-simple {\n    color: ${t("message.warn.simple.color")};\n}\n\n.p-message-error {\n    background: ${t("message.error.background")};\n    outline-color: ${t("message.error.border.color")};\n    color: ${t("message.error.color")};\n    box-shadow: ${t("message.error.shadow")};\n}\n\n.p-message-error .p-message-close-button:focus-visible {\n    outline-color: ${t("message.error.close.button.focus.ring.color")};\n    box-shadow: ${t("message.error.close.button.focus.ring.shadow")};\n}\n\n.p-message-error .p-message-close-button:hover {\n    background: ${t("message.error.close.button.hover.background")};\n}\n\n.p-message-error.p-message-outlined {\n    color: ${t("message.error.outlined.color")};\n    outline-color: ${t("message.error.outlined.border.color")};\n}\n\n.p-message-error.p-message-simple {\n    color: ${t("message.error.simple.color")};\n}\n\n.p-message-secondary {\n    background: ${t("message.secondary.background")};\n    outline-color: ${t("message.secondary.border.color")};\n    color: ${t("message.secondary.color")};\n    box-shadow: ${t("message.secondary.shadow")};\n}\n\n.p-message-secondary .p-message-close-button:focus-visible {\n    outline-color: ${t("message.secondary.close.button.focus.ring.color")};\n    box-shadow: ${t("message.secondary.close.button.focus.ring.shadow")};\n}\n\n.p-message-secondary .p-message-close-button:hover {\n    background: ${t("message.secondary.close.button.hover.background")};\n}\n\n.p-message-secondary.p-message-outlined {\n    color: ${t("message.secondary.outlined.color")};\n    outline-color: ${t("message.secondary.outlined.border.color")};\n}\n\n.p-message-secondary.p-message-simple {\n    color: ${t("message.secondary.simple.color")};\n}\n\n.p-message-contrast {\n    background: ${t("message.contrast.background")};\n    outline-color: ${t("message.contrast.border.color")};\n    color: ${t("message.contrast.color")};\n    box-shadow: ${t("message.contrast.shadow")};\n}\n\n.p-message-contrast .p-message-close-button:focus-visible {\n    outline-color: ${t("message.contrast.close.button.focus.ring.color")};\n    box-shadow: ${t("message.contrast.close.button.focus.ring.shadow")};\n}\n\n.p-message-contrast .p-message-close-button:hover {\n    background: ${t("message.contrast.close.button.hover.background")};\n}\n\n.p-message-contrast.p-message-outlined {\n    color: ${t("message.contrast.outlined.color")};\n    outline-color: ${t("message.contrast.outlined.border.color")};\n}\n\n.p-message-contrast.p-message-simple {\n    color: ${t("message.contrast.simple.color")};\n}\n\n.p-message-text {\n    font-size: ${t("message.text.font.size")};\n    font-weight: ${t("message.text.font.weight")};\n}\n\n.p-message-icon {\n    font-size: ${t("message.icon.size")};\n    width: ${t("message.icon.size")};\n    height: ${t("message.icon.size")};\n}\n\n.p-message-enter-from {\n    opacity: 0;\n}\n\n.p-message-enter-active {\n    transition: opacity 0.3s;\n}\n\n.p-message.p-message-leave-from {\n    max-height: 1000px;\n}\n\n.p-message.p-message-leave-to {\n    max-height: 0;\n    opacity: 0;\n    margin: 0;\n}\n\n.p-message-leave-active {\n    overflow: hidden;\n    transition: max-height 0.45s cubic-bezier(0, 1, 0, 1), opacity 0.3s, margin 0.3s;\n}\n\n.p-message-leave-active .p-message-close-button {\n    opacity: 0;\n}\n\n.p-message-sm .p-message-content {\n    padding: ${t("message.content.sm.padding")};\n}\n\n.p-message-sm .p-message-text {\n    font-size: ${t("message.text.sm.font.size")};\n}\n\n.p-message-sm .p-message-icon {\n    font-size: ${t("message.icon.sm.size")};\n    width: ${t("message.icon.sm.size")};\n    height: ${t("message.icon.sm.size")};\n}\n\n.p-message-sm .p-message-close-icon {\n    font-size: ${t("message.close.icon.sm.size")};\n    width: ${t("message.close.icon.sm.size")};\n    height: ${t("message.close.icon.sm.size")};\n}\n\n.p-message-lg .p-message-content {\n    padding: ${t("message.content.lg.padding")};\n}\n\n.p-message-lg .p-message-text {\n    font-size: ${t("message.text.lg.font.size")};\n}\n\n.p-message-lg .p-message-icon {\n    font-size: ${t("message.icon.lg.size")};\n    width: ${t("message.icon.lg.size")};\n    height: ${t("message.icon.lg.size")};\n}\n\n.p-message-lg .p-message-close-icon {\n    font-size: ${t("message.close.icon.lg.size")};\n    width: ${t("message.close.icon.lg.size")};\n    height: ${t("message.close.icon.lg.size")};\n}\n\n.p-message-outlined {\n    background: transparent;\n    outline-width: ${t("message.outlined.border.width")};\n}\n\n.p-message-simple {\n    background: transparent;\n    outline-color: transparent;\n    box-shadow: none;\n}\n\n.p-message-simple .p-message-content {\n    padding: ${t("message.simple.content.padding")};\n}\n\n.p-message-outlined .p-message-close-button:hover,\n.p-message-simple .p-message-close-button:hover {\n    background: transparent;\n}`,LTe={root:({props:t})=>["p-message p-component p-message-"+t.severity,{"p-message-simple":"simple"===t.variant}],content:"p-message-content",icon:"p-message-icon",text:"p-message-text",closeButton:"p-message-close-button",closeIcon:"p-message-close-icon"};let Lte=(()=>{class t extends gs{name="message";theme=PTe;classes=LTe;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const GTe=["container"],BTe=["icon"],VTe=["closeicon"],jTe=["*"],HTe=(t,r)=>({showTransitionParams:t,hideTransitionParams:r}),UTe=t=>({value:"visible()",params:t}),$Te=t=>({closeCallback:t});function YTe(t,r){1&t&&n.eu8(0)}function WTe(t,r){if(1&t&&n.DNE(0,YTe,1,0,"ng-container",7),2&t){const e=n.XpG(2);n.Y8G("ngTemplateOutlet",e.iconTemplate||e.iconTemplate)}}function zTe(t,r){if(1&t&&n.nrm(0,"i",3),2&t){const e=n.XpG(2);n.Y8G("ngClass",e.icon)}}function qTe(t,r){if(1&t&&n.nrm(0,"span",9),2&t){const e=n.XpG(3);n.Y8G("ngClass",e.cx("text"))("innerHTML",e.text,n.npT)}}function XTe(t,r){if(1&t&&(n.j41(0,"div"),n.DNE(1,qTe,1,2,"span",8),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngIf",!e.escape)}}function KTe(t,r){if(1&t&&(n.j41(0,"span",5),n.EFF(1),n.k0s()),2&t){const e=n.XpG(3);n.Y8G("ngClass",e.cx("text")),n.R7$(),n.JRh(e.text)}}function QTe(t,r){if(1&t&&n.DNE(0,KTe,2,2,"span",10),2&t){const e=n.XpG(2);n.Y8G("ngIf",e.escape&&e.text)}}function JTe(t,r){1&t&&n.eu8(0)}function ZTe(t,r){if(1&t&&n.DNE(0,JTe,1,0,"ng-container",11),2&t){const e=n.XpG(2);n.Y8G("ngTemplateOutlet",e.containerTemplate||e.containerTemplate)("ngTemplateOutletContext",n.eq3(2,$Te,e.close.bind(e)))}}function eSe(t,r){if(1&t&&(n.j41(0,"span",5),n.SdG(1),n.k0s()),2&t){const e=n.XpG(2);n.Y8G("ngClass",e.cx("text"))}}function tSe(t,r){if(1&t&&n.nrm(0,"i",13),2&t){const e=n.XpG(3);n.Y8G("ngClass",e.closeIcon)}}function nSe(t,r){1&t&&n.eu8(0)}function iSe(t,r){if(1&t&&n.DNE(0,nSe,1,0,"ng-container",7),2&t){const e=n.XpG(3);n.Y8G("ngTemplateOutlet",e.closeIconTemplate||e._closeIconTemplate)}}function rSe(t,r){1&t&&n.nrm(0,"TimesIcon",14)}function oSe(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",12),n.bIt("click",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.close(o))}),n.DNE(1,tSe,1,1,"i",13)(2,iSe,1,1,"ng-container")(3,rSe,1,0,"TimesIcon",14),n.k0s()}if(2&t){const e=n.XpG(2);n.R7$(),n.vxM(e.closeIcon?1:-1),n.R7$(),n.vxM(e.closeIconTemplate||e._closeIconTemplate?2:-1),n.R7$(),n.vxM(e.closeIconTemplate||e._closeIconTemplate||e.closeIcon?-1:3)}}function sSe(t,r){if(1&t&&(n.j41(0,"div",1)(1,"div",2),n.DNE(2,WTe,1,1,"ng-container")(3,zTe,1,1,"i",3)(4,XTe,2,1,"div",4)(5,QTe,1,1,"ng-template",null,0,n.C5r)(7,ZTe,1,4,"ng-container")(8,eSe,2,1,"span",5)(9,oSe,4,3,"button",6),n.k0s()()),2&t){const e=n.sdS(6),i=n.XpG();n.Y8G("ngClass",i.containerClass)("@messageAnimation",n.eq3(13,UTe,n.l_i(10,HTe,i.showTransitionOptions,i.hideTransitionOptions))),n.BMQ("aria-live","polite")("role","alert"),n.R7$(2),n.vxM(i.iconTemplate||i._iconTemplate?2:-1),n.R7$(),n.vxM(i.icon?3:-1),n.R7$(),n.Y8G("ngIf",!i.escape)("ngIfElse",e),n.R7$(3),n.vxM(i.containerTemplate||i._containerTemplate?7:8),n.R7$(2),n.vxM(i.closable?9:-1)}}let z_=(()=>{class t extends jo{severity="info";text;escape=!0;style;styleClass;closable=!1;icon;closeIcon;life;showTransitionOptions="300ms ease-out";hideTransitionOptions="200ms cubic-bezier(0.86, 0, 0.07, 1)";size;variant;onClose=new n.bkB;get containerClass(){return`p-message-${this.severity} ${"outlined"===this.variant?"p-message-outlined":"simple"===this.variant?"p-message-simple":""} ${"small"===this.size?"p-message-sm":"large"===this.size?"p-message-lg":""}`.trim()+(this.styleClass?" "+this.styleClass:"")}visible=(0,n.vPA)(!0);_componentStyle=(0,n.WQX)(Lte);containerTemplate;iconTemplate;closeIconTemplate;templates;_containerTemplate;_iconTemplate;_closeIconTemplate;ngOnInit(){super.ngOnInit(),this.life&&setTimeout(()=>{this.visible.set(!1)},this.life)}ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"container":this._containerTemplate=e.template;break;case"icon":this._iconTemplate=e.template;break;case"closeicon":this._closeIconTemplate=e.template}})}close(e){this.visible.set(!1),this.onClose.emit({originalEvent:e})}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["p-message"]],contentQueries:function(i,o,s){if(1&i&&(n.wni(s,GTe,4),n.wni(s,BTe,4),n.wni(s,VTe,4),n.wni(s,hs,4)),2&i){let a;n.mGM(a=n.lsd())&&(o.containerTemplate=a.first),n.mGM(a=n.lsd())&&(o.iconTemplate=a.first),n.mGM(a=n.lsd())&&(o.closeIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.templates=a)}},inputs:{severity:"severity",text:"text",escape:[2,"escape","escape",n.L39],style:"style",styleClass:"styleClass",closable:[2,"closable","closable",n.L39],icon:"icon",closeIcon:"closeIcon",life:"life",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",size:"size",variant:"variant"},outputs:{onClose:"onClose"},features:[n.Jv_([Lte]),n.GFd,n.Vt3],ngContentSelectors:jTe,decls:1,vars:1,consts:[["escapeOut",""],[1,"p-message","p-component",3,"ngClass"],[1,"p-message-content"],[1,"p-message-icon",3,"ngClass"],[4,"ngIf","ngIfElse"],[3,"ngClass"],["pRipple","","type","button",1,"p-message-close-button"],[4,"ngTemplateOutlet"],[3,"ngClass","innerHTML",4,"ngIf"],[3,"ngClass","innerHTML"],[3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["pRipple","","type","button",1,"p-message-close-button",3,"click"],[1,"p-message-close-icon",3,"ngClass"],["styleClass","p-message-close-icon"]],template:function(i,o){1&i&&(n.NAR(),n.DNE(0,sSe,10,15,"div",1)),2&i&&n.vxM(o.visible()?0:-1)},dependencies:[gn,bi,fi,uo,pf,Mh,Di],encapsulation:2,data:{animation:[(0,Hi.hZ)("messageAnimation",[(0,Hi.kY)(":enter",[(0,Hi.iF)({opacity:0,transform:"translateY(-25%)"}),(0,Hi.i0)("{{showTransitionParams}}")]),(0,Hi.kY)(":leave",[(0,Hi.i0)("{{hideTransitionParams}}",(0,Hi.iF)({height:0,marginTop:0,marginBottom:0,marginLeft:0,marginRight:0,opacity:0}))])])]},changeDetection:0})}return t})(),Dy=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({imports:[z_,Di,Di]})}return t})();const aSe=({dt:t})=>`\n.p-progressbar {\n    position: relative;\n    overflow: hidden;\n    height: ${t("progressbar.height")};\n    background: ${t("progressbar.background")};\n    border-radius: ${t("progressbar.border.radius")};\n}\n\n.p-progressbar-value {\n    margin: 0;\n    background: ${t("progressbar.value.background")};\n}\n\n.p-progressbar-label {\n    color: ${t("progressbar.label.color")};\n    font-size: ${t("progressbar.label.font.size")};\n    font-weight: ${t("progressbar.label.font.weight")};\n}\n\n.p-progressbar-determinate .p-progressbar-value {\n    height: 100%;\n    width: 0%;\n    position: absolute;\n    display: none;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    overflow: hidden;\n    transition: width 1s ease-in-out;\n}\n\n.p-progressbar-determinate .p-progressbar-label {\n    display: inline-flex;\n}\n\n.p-progressbar-indeterminate .p-progressbar-value::before {\n    content: "";\n    position: absolute;\n    background: inherit;\n    top: 0;\n    inset-inline-start: 0;\n    bottom: 0;\n    will-change: inset-inline-start, inset-inline-end;\n    animation: p-progressbar-indeterminate-anim 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;\n}\n\n.p-progressbar-indeterminate .p-progressbar-value::after {\n    content: "";\n    position: absolute;\n    background: inherit;\n    top: 0;\n    inset-inline-start: 0;\n    bottom: 0;\n    will-change: inset-inline-start, inset-inline-end;\n    animation: p-progressbar-indeterminate-anim-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;\n    animation-delay: 1.15s;\n}\n\n@-webkit-keyframes p-progressbar-indeterminate-anim {\n    0% {\n        inset-inline-start: -35%;\n        inset-inline-end: 100%;\n    }\n    60% {\n        inset-inline-start: 100%;\n        inset-inline-end: -90%;\n    }\n    100% {\n        inset-inline-start: 100%;\n        inset-inline-end: -90%;\n    }\n}\n@keyframes p-progressbar-indeterminate-anim {\n    0% {\n        inset-inline-start: -35%;\n        inset-inline-end: 100%;\n    }\n    60% {\n        inset-inline-start: 100%;\n        inset-inline-end: -90%;\n    }\n    100% {\n        inset-inline-start: 100%;\n        inset-inline-end: -90%;\n    }\n}\n@-webkit-keyframes p-progressbar-indeterminate-anim-short {\n    0% {\n        inset-inline-start: -200%;\n        inset-inline-end: 100%;\n    }\n    60% {\n        inset-inline-start: 107%;\n        inset-inline-end: -8%;\n    }\n    100% {\n        inset-inline-start: 107%;\n        inset-inline-end: -8%;\n    }\n}\n@keyframes p-progressbar-indeterminate-anim-short {\n    0% {\n        inset-inline-start: -200%;\n        inset-inline-end: 100%;\n    }\n    60% {\n        inset-inline-start: 107%;\n        inset-inline-end: -8%;\n    }\n    100% {\n        inset-inline-start: 107%;\n        inset-inline-end: -8%;\n    }\n}\n`,lSe={root:({instance:t})=>["p-progressbar p-component",{"p-progressbar-determinate":t.determinate,"p-progressbar-indeterminate":t.indeterminate}],value:"p-progressbar-value",label:"p-progressbar-label"};let Nte=(()=>{class t extends gs{name="progressbar";theme=aSe;classes=lSe;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const uSe=["content"],dSe=(t,r)=>({"p-progressbar p-component":!0,"p-progressbar-determinate":t,"p-progressbar-indeterminate":r}),pSe=t=>({$implicit:t});function hSe(t,r){if(1&t&&(n.j41(0,"div"),n.EFF(1),n.k0s()),2&t){const e=n.XpG(2);n.xc7("display",null!=e.value&&0!==e.value?"flex":"none"),n.BMQ("data-pc-section","label"),n.R7$(),n.Lme("",e.value,"",e.unit,"")}}function fSe(t,r){1&t&&n.eu8(0)}function mSe(t,r){if(1&t&&(n.j41(0,"div",3)(1,"div",4),n.DNE(2,hSe,2,5,"div",5)(3,fSe,1,0,"ng-container",6),n.k0s()()),2&t){const e=n.XpG();n.HbH(e.valueStyleClass),n.xc7("width",e.value+"%")("background",e.color),n.Y8G("ngClass","p-progressbar-value p-progressbar-value-animate"),n.BMQ("data-pc-section","value"),n.R7$(2),n.Y8G("ngIf",e.showValue&&!e.contentTemplate&&!e._contentTemplate),n.R7$(),n.Y8G("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",n.eq3(11,pSe,e.value))}}function gSe(t,r){if(1&t&&(n.j41(0,"div",7),n.nrm(1,"div",8),n.k0s()),2&t){const e=n.XpG();n.HbH(e.valueStyleClass),n.Y8G("ngClass","p-progressbar-indeterminate-container"),n.BMQ("data-pc-section","container"),n.R7$(),n.xc7("background",e.color),n.BMQ("data-pc-section","value")}}let Gte=(()=>{class t extends jo{value;showValue=!0;styleClass;valueStyleClass;style;unit="%";mode="determinate";color;contentTemplate;_componentStyle=(0,n.WQX)(Nte);templates;_contentTemplate;ngAfterContentInit(){this.templates?.forEach(e=>{e.getType(),this._contentTemplate=e.template})}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["p-progressBar"],["p-progressbar"],["p-progress-bar"]],contentQueries:function(i,o,s){if(1&i&&(n.wni(s,uSe,4),n.wni(s,hs,4)),2&i){let a;n.mGM(a=n.lsd())&&(o.contentTemplate=a.first),n.mGM(a=n.lsd())&&(o.templates=a)}},inputs:{value:[2,"value","value",n.Udg],showValue:[2,"showValue","showValue",n.L39],styleClass:"styleClass",valueStyleClass:"valueStyleClass",style:"style",unit:"unit",mode:"mode",color:"color"},features:[n.Jv_([Nte]),n.GFd,n.Vt3],decls:3,vars:14,consts:[["role","progressbar",3,"ngStyle","ngClass"],["style","display:flex",3,"ngClass","class","width","background",4,"ngIf"],[3,"ngClass","class",4,"ngIf"],[2,"display","flex",3,"ngClass"],[1,"p-progressbar-label"],[3,"display",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngClass"],[1,"p-progressbar-value","p-progressbar-value-animate"]],template:function(i,o){1&i&&(n.j41(0,"div",0),n.DNE(1,mSe,4,13,"div",1)(2,gSe,2,7,"div",2),n.k0s()),2&i&&(n.HbH(o.styleClass),n.Y8G("ngStyle",o.style)("ngClass",n.l_i(11,dSe,"determinate"===o.mode,"indeterminate"===o.mode)),n.BMQ("aria-valuemin",0)("aria-valuenow",o.value)("aria-valuemax",100)("data-pc-name","progressbar")("data-pc-section","root"),n.R7$(),n.Y8G("ngIf","determinate"===o.mode),n.R7$(),n.Y8G("ngIf","indeterminate"===o.mode))},dependencies:[gn,bi,fi,uo,Jr,Di],encapsulation:2,changeDetection:0})}return t})();const vSe=({dt:t})=>`\n.p-fileupload input[type="file"] {\n    display: none;\n}\n\n.p-fileupload-advanced {\n    border: 1px solid ${t("fileupload.border.color")};\n    border-radius: ${t("fileupload.border.radius")};\n    background: ${t("fileupload.background")};\n    color: ${t("fileupload.color")};\n}\n\n.p-fileupload-header {\n    display: flex;\n    align-items: center;\n    padding: ${t("fileupload.header.padding")};\n    background: ${t("fileupload.header.background")};\n    color: ${t("fileupload.header.color")};\n    border-style: solid;\n    border-width: ${t("fileupload.header.border.width")};\n    border-color: ${t("fileupload.header.border.color")};\n    border-radius: ${t("fileupload.header.border.radius")};\n    gap: ${t("fileupload.header.gap")};\n}\n\n.p-fileupload-content {\n    border: 1px solid transparent;\n    display: flex;\n    flex-direction: column;\n    gap: ${t("fileupload.content.gap")};\n    transition: border-color ${t("fileupload.transition.duration")};\n    padding: ${t("fileupload.content.padding")};\n}\n\n.p-fileupload-content .p-progressbar {\n    width: 100%;\n    position: absolute;\n    top: 0;\n    left: 0;\n    height: ${t("fileupload.progressbar.height")};\n}\n\n.p-fileupload-file-list {\n    display: flex;\n    flex-direction: column;\n    gap: ${t("fileupload.filelist.gap")};\n}\n\n.p-fileupload-file {\n    display: flex;\n    flex-wrap: wrap;\n    align-items: center;\n    padding: ${t("fileupload.file.padding")};\n    border-bottom: 1px solid ${t("fileupload.file.border.color")};\n    gap: ${t("fileupload.file.gap")};\n}\n\n.p-fileupload-file:last-child {\n    border-bottom: 0;\n}\n\n.p-fileupload-file-info {\n    display: flex;\n    flex-direction: column;\n    gap: ${t("fileupload.file.info.gap")};\n}\n\n.p-fileupload-file-thumbnail {\n    flex-shrink: 0;\n}\n\n.p-fileupload-file-actions {\n    margin-left: auto;\n}\n\n.p-fileupload-highlight {\n    border: 1px dashed ${t("fileupload.content.highlight.border.color")};\n}\n\n.p-fileupload-advanced .p-message {\n    margin-top: 0;\n}\n\n.p-fileupload-basic {\n    display: flex;\n    flex-wrap: wrap;\n    align-items: center;\n    justify-content: center;\n    gap: ${t("fileupload.basic.gap")};\n}\n`,_Se={root:({instance:t})=>`p-fileupload p-fileupload-${t.mode} p-component`,header:"p-fileupload-header",pcChooseButton:"p-fileupload-choose-button",pcUploadButton:"p-fileupload-upload-button",pcCancelButton:"p-fileupload-cancel-button",content:"p-fileupload-content",fileList:"p-fileupload-file-list",file:"p-fileupload-file",fileThumbnail:"p-fileupload-file-thumbnail",fileInfo:"p-fileupload-file-info",fileName:"p-fileupload-file-name",fileSize:"p-fileupload-file-size",pcFileBadge:"p-fileupload-file-badge",fileActions:"p-fileupload-file-actions",pcFileRemoveButton:"p-fileupload-file-remove-button"};let Bte=(()=>{class t extends gs{name="fileupload";theme=vSe;classes=_Se;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const bSe=["file"],CSe=["header"],Vte=["content"],wSe=["toolbar"],TSe=["chooseicon"],SSe=["filelabel"],xSe=["uploadicon"],ESe=["cancelicon"],DSe=["empty"],kSe=["advancedfileinput"],ISe=["basicfileinput"],ASe=(t,r,e,i,o)=>({$implicit:t,uploadedFiles:r,chooseCallback:e,clearCallback:i,uploadCallback:o}),MSe=(t,r,e,i,o,s,a,l)=>({$implicit:t,uploadedFiles:r,chooseCallback:e,clearCallback:i,removeUploadedFileCallback:o,removeFileCallback:s,progress:a,messages:l}),RSe=t=>({$implicit:t});function OSe(t,r){if(1&t&&n.nrm(0,"span"),2&t){const e=n.XpG(3);n.HbH(e.chooseIcon),n.BMQ("aria-label",!0)("data-pc-section","chooseicon")}}function FSe(t,r){1&t&&n.nrm(0,"PlusIcon"),2&t&&n.BMQ("aria-label",!0)("data-pc-section","chooseicon")}function PSe(t,r){}function LSe(t,r){1&t&&n.DNE(0,PSe,0,0,"ng-template")}function NSe(t,r){if(1&t&&(n.j41(0,"span"),n.DNE(1,LSe,1,0,null,11),n.k0s()),2&t){const e=n.XpG(4);n.BMQ("aria-label",!0)("data-pc-section","chooseicon"),n.R7$(),n.Y8G("ngTemplateOutlet",e.chooseIconTemplate||e._chooseIconTemplate)}}function GSe(t,r){if(1&t&&(n.qex(0),n.DNE(1,FSe,1,2,"PlusIcon",9)(2,NSe,2,3,"span",9),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngIf",!e.chooseIconTemplate&&!e._chooseIconTemplate),n.R7$(),n.Y8G("ngIf",e.chooseIconTemplate||e._chooseIconTemplate)}}function BSe(t,r){if(1&t&&n.nrm(0,"span",21),2&t){const e=n.XpG(4);n.Y8G("ngClass",e.uploadIcon),n.BMQ("aria-hidden",!0)}}function VSe(t,r){1&t&&n.nrm(0,"UploadIcon")}function jSe(t,r){}function HSe(t,r){1&t&&n.DNE(0,jSe,0,0,"ng-template")}function USe(t,r){if(1&t&&(n.j41(0,"span"),n.DNE(1,HSe,1,0,null,11),n.k0s()),2&t){const e=n.XpG(5);n.BMQ("aria-hidden",!0),n.R7$(),n.Y8G("ngTemplateOutlet",e.uploadIconTemplate||e._uploadIconTemplate)}}function $Se(t,r){if(1&t&&(n.qex(0),n.DNE(1,VSe,1,0,"UploadIcon",9)(2,USe,2,2,"span",9),n.bVm()),2&t){const e=n.XpG(4);n.R7$(),n.Y8G("ngIf",!e.uploadIconTemplate&&!e._uploadIconTemplate),n.R7$(),n.Y8G("ngIf",e.uploadIconTemplate||e._uploadIconTemplate)}}function YSe(t,r){if(1&t){const e=n.RV6();n.j41(0,"p-button",19),n.bIt("onClick",function(){n.eBV(e);const o=n.XpG(3);return n.Njj(o.upload())}),n.DNE(1,BSe,1,2,"span",20)(2,$Se,3,2,"ng-container",9),n.k0s()}if(2&t){const e=n.XpG(3);n.Y8G("label",e.uploadButtonLabel)("disabled",!e.hasFiles()||e.isFileLimitExceeded())("styleClass","p-fileupload-upload-button "+e.uploadStyleClass)("buttonProps",e.uploadButtonProps),n.R7$(),n.Y8G("ngIf",e.uploadIcon),n.R7$(),n.Y8G("ngIf",!e.uploadIcon)}}function WSe(t,r){if(1&t&&n.nrm(0,"span",21),2&t){const e=n.XpG(4);n.Y8G("ngClass",e.cancelIcon)}}function zSe(t,r){1&t&&n.nrm(0,"TimesIcon"),2&t&&n.BMQ("aria-hidden",!0)}function qSe(t,r){}function XSe(t,r){1&t&&n.DNE(0,qSe,0,0,"ng-template")}function KSe(t,r){if(1&t&&(n.j41(0,"span"),n.DNE(1,XSe,1,0,null,11),n.k0s()),2&t){const e=n.XpG(5);n.BMQ("aria-hidden",!0),n.R7$(),n.Y8G("ngTemplateOutlet",e.cancelIconTemplate||e._cancelIconTemplate)}}function QSe(t,r){if(1&t&&(n.qex(0),n.DNE(1,zSe,1,1,"TimesIcon",9)(2,KSe,2,2,"span",9),n.bVm()),2&t){const e=n.XpG(4);n.R7$(),n.Y8G("ngIf",!e.cancelIconTemplate&&!e._cancelIconTemplate),n.R7$(),n.Y8G("ngIf",e.cancelIconTemplate||e._cancelIconTemplate)}}function JSe(t,r){if(1&t){const e=n.RV6();n.j41(0,"p-button",19),n.bIt("onClick",function(){n.eBV(e);const o=n.XpG(3);return n.Njj(o.clear())}),n.DNE(1,WSe,1,1,"span",20)(2,QSe,3,2,"ng-container",9),n.k0s()}if(2&t){const e=n.XpG(3);n.Y8G("label",e.cancelButtonLabel)("disabled",!e.hasFiles()||e.uploading)("styleClass","p-fileupload-cancel-button "+e.cancelStyleClass)("buttonProps",e.cancelButtonProps),n.R7$(),n.Y8G("ngIf",e.cancelIcon),n.R7$(),n.Y8G("ngIf",!e.cancelIcon)}}function ZSe(t,r){if(1&t){const e=n.RV6();n.qex(0),n.j41(1,"p-button",16),n.bIt("focus",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.onFocus())})("blur",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.onBlur())})("onClick",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.choose())})("keydown.enter",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.choose())}),n.j41(2,"input",7,0),n.bIt("change",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onFileSelect(o))}),n.k0s(),n.DNE(4,OSe,1,4,"span",17)(5,GSe,3,2,"ng-container",9),n.k0s(),n.DNE(6,YSe,3,6,"p-button",18)(7,JSe,3,6,"p-button",18),n.bVm()}if(2&t){const e=n.XpG(2);n.R7$(),n.Y8G("styleClass","p-fileupload-choose-button "+e.chooseStyleClass)("disabled",e.disabled||e.isChooseDisabled())("label",e.chooseButtonLabel)("buttonProps",e.chooseButtonProps),n.BMQ("data-pc-section","choosebutton"),n.R7$(),n.Y8G("multiple",e.multiple)("accept",e.accept)("disabled",e.disabled||e.isChooseDisabled()),n.BMQ("aria-label",e.browseFilesLabel)("title","")("data-pc-section","input"),n.R7$(2),n.Y8G("ngIf",e.chooseIcon),n.R7$(),n.Y8G("ngIf",!e.chooseIcon),n.R7$(),n.Y8G("ngIf",!e.auto&&e.showUploadButton),n.R7$(),n.Y8G("ngIf",!e.auto&&e.showCancelButton)}}function exe(t,r){1&t&&n.eu8(0)}function txe(t,r){1&t&&n.eu8(0)}function nxe(t,r){if(1&t&&n.nrm(0,"p-progressbar",22),2&t){const e=n.XpG(2);n.Y8G("value",e.progress)("showValue",!1)}}function ixe(t,r){if(1&t&&n.nrm(0,"p-message",14),2&t){const e=r.$implicit;n.Y8G("severity",e.severity)("text",e.text)}}function rxe(t,r){if(1&t){const e=n.RV6();n.j41(0,"img",33),n.bIt("error",function(o){n.eBV(e);const s=n.XpG(5);return n.Njj(s.imageError(o))}),n.k0s()}if(2&t){const e=n.XpG().$implicit,i=n.XpG(4);n.Y8G("src",e.objectURL,n.B4B)("width",i.previewWidth)}}function oxe(t,r){1&t&&n.nrm(0,"TimesIcon")}function sxe(t,r){}function axe(t,r){1&t&&n.DNE(0,sxe,0,0,"ng-template")}function lxe(t,r){if(1&t&&n.DNE(0,oxe,1,0,"TimesIcon",9)(1,axe,1,0,null,11),2&t){const e=n.XpG(5);n.Y8G("ngIf",!e.cancelIconTemplate&&!e._cancelIconTemplate),n.R7$(),n.Y8G("ngTemplateOutlet",e.cancelIconTemplate||e._cancelIconTemplate)}}function cxe(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",24),n.DNE(1,rxe,1,2,"img",27),n.j41(2,"div",28)(3,"div",29),n.EFF(4),n.k0s(),n.j41(5,"span",30),n.EFF(6),n.k0s()(),n.j41(7,"div",31)(8,"p-button",32),n.bIt("onClick",function(o){const s=n.eBV(e).index,a=n.XpG(4);return n.Njj(a.remove(o,s))}),n.DNE(9,lxe,2,2,"ng-template",null,2,n.C5r),n.k0s()()()}if(2&t){const e=r.$implicit,i=n.XpG(4);n.R7$(),n.Y8G("ngIf",i.isImage(e)),n.R7$(3),n.JRh(e.name),n.R7$(2),n.JRh(i.formatSize(e.size)),n.R7$(2),n.Y8G("disabled",i.uploading)("styleClass","p-fileupload-file-remove-button "+i.removeStyleClass)}}function uxe(t,r){if(1&t&&n.DNE(0,cxe,11,5,"div",26),2&t){const e=n.XpG(3);n.Y8G("ngForOf",e.files)}}function dxe(t,r){}function pxe(t,r){if(1&t&&n.DNE(0,dxe,0,0,"ng-template",25),2&t){const e=n.XpG(3);n.Y8G("ngForOf",e.files)("ngForTemplate",e.fileTemplate||e._fileTemplate)}}function hxe(t,r){if(1&t&&(n.j41(0,"div",23),n.DNE(1,uxe,1,1,"div",24)(2,pxe,1,2,null,25),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.vxM(e.fileTemplate||e._fileTemplate?-1:1),n.R7$(),n.vxM(e.fileTemplate||e._fileTemplate?2:-1)}}function fxe(t,r){1&t&&n.eu8(0)}function mxe(t,r){1&t&&n.eu8(0)}function gxe(t,r){if(1&t&&n.DNE(0,mxe,1,0,"ng-container",11),2&t){const e=n.XpG(2);n.Y8G("ngTemplateOutlet",e.emptyTemplate||e._emptyTemplate)}}function vxe(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",6)(1,"input",7,0),n.bIt("change",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onFileSelect(o))}),n.k0s(),n.j41(3,"div",8),n.DNE(4,ZSe,8,15,"ng-container",9)(5,exe,1,0,"ng-container",10)(6,txe,1,0,"ng-container",11),n.k0s(),n.j41(7,"div",12,1),n.bIt("dragenter",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onDragEnter(o))})("dragleave",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onDragLeave(o))})("drop",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onDrop(o))}),n.DNE(9,nxe,1,2,"p-progressbar",13),n.Z7z(10,ixe,1,2,"p-message",14,n.fX1),n.DNE(12,hxe,3,2,"div",15)(13,fxe,1,0,"ng-container",10)(14,gxe,1,1,"ng-container"),n.k0s()()}if(2&t){const e=n.XpG();n.HbH(e.styleClass),n.Y8G("ngClass","p-fileupload p-fileupload-advanced p-component")("ngStyle",e.style),n.BMQ("data-pc-name","fileupload")("data-pc-section","root"),n.R7$(),n.xc7("display","none"),n.Y8G("multiple",e.multiple)("accept",e.accept)("disabled",e.disabled||e.isChooseDisabled()),n.BMQ("aria-label",e.browseFilesLabel)("title","")("data-pc-section","input"),n.R7$(3),n.Y8G("ngIf",!e.headerTemplate&&!e._headerTemplate),n.R7$(),n.Y8G("ngTemplateOutlet",e.headerTemplate||e._headerTemplate)("ngTemplateOutletContext",n.s1E(24,ASe,e.files,e.uploadedFiles,e.choose.bind(e),e.clear.bind(e),e.upload.bind(e))),n.R7$(),n.Y8G("ngTemplateOutlet",e.toolbarTemplate||e._toolbarTemplate),n.R7$(),n.BMQ("data-pc-section","content"),n.R7$(2),n.Y8G("ngIf",e.hasFiles()),n.R7$(),n.Dyx(e.msgs),n.R7$(2),n.Y8G("ngIf",e.hasFiles()),n.R7$(),n.Y8G("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",n.lV(30,MSe,e.files,e.uploadedFiles,e.choose.bind(e),e.clear.bind(e),e.removeUploadedFile.bind(e),e.remove.bind(e),e.progress,e.msgs)),n.R7$(),n.vxM(!e.emptyTemplate&&!e._emptyTemplate||e.hasFiles()||e.hasUploadedFiles()?-1:14)}}function _xe(t,r){if(1&t&&n.nrm(0,"p-message",14),2&t){const e=r.$implicit;n.Y8G("severity",e.severity)("text",e.text)}}function yxe(t,r){if(1&t&&n.nrm(0,"span",37),2&t){const e=n.XpG(4);n.Y8G("ngClass",e.uploadIcon)}}function bxe(t,r){1&t&&n.nrm(0,"UploadIcon",40),2&t&&n.Y8G("styleClass","p-button-icon p-button-icon-left")}function Cxe(t,r){}function wxe(t,r){1&t&&n.DNE(0,Cxe,0,0,"ng-template")}function Txe(t,r){if(1&t&&(n.j41(0,"span",41),n.DNE(1,wxe,1,0,null,11),n.k0s()),2&t){const e=n.XpG(5);n.R7$(),n.Y8G("ngTemplateOutlet",e._uploadIconTemplate||e.uploadIconTemplate)}}function Sxe(t,r){if(1&t&&(n.qex(0),n.DNE(1,bxe,1,1,"UploadIcon",38)(2,Txe,2,1,"span",39),n.bVm()),2&t){const e=n.XpG(4);n.R7$(),n.Y8G("ngIf",!e.uploadIconTemplate&&!e._uploadIconTemplate),n.R7$(),n.Y8G("ngIf",e._uploadIconTemplate||e.uploadIconTemplate)}}function xxe(t,r){if(1&t&&n.DNE(0,yxe,1,1,"span",36)(1,Sxe,3,2,"ng-container",9),2&t){const e=n.XpG(3);n.Y8G("ngIf",e.uploadIcon),n.R7$(),n.Y8G("ngIf",!e.uploadIcon)}}function Exe(t,r){if(1&t&&n.nrm(0,"span",43),2&t){const e=n.XpG(4);n.Y8G("ngClass",e.chooseIcon)}}function Dxe(t,r){1&t&&n.nrm(0,"PlusIcon"),2&t&&n.BMQ("data-pc-section","uploadicon")}function kxe(t,r){}function Ixe(t,r){1&t&&n.DNE(0,kxe,0,0,"ng-template")}function Axe(t,r){if(1&t&&(n.qex(0),n.DNE(1,Dxe,1,1,"PlusIcon",9)(2,Ixe,1,0,null,11),n.bVm()),2&t){const e=n.XpG(4);n.R7$(),n.Y8G("ngIf",!e.chooseIconTemplate&&!e._chooseIconTemplate),n.R7$(),n.Y8G("ngTemplateOutlet",e.chooseIconTemplate||e._chooseIconTemplate)}}function Mxe(t,r){if(1&t&&n.DNE(0,Exe,1,1,"span",42)(1,Axe,3,2,"ng-container",9),2&t){const e=n.XpG(3);n.Y8G("ngIf",e.chooseIcon),n.R7$(),n.Y8G("ngIf",!e.chooseIcon)}}function Rxe(t,r){if(1&t&&n.DNE(0,xxe,2,2)(1,Mxe,2,2),2&t){const e=n.XpG(2);n.vxM(e.hasFiles()&&!e.auto?0:1)}}function Oxe(t,r){if(1&t&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&t){const e=n.XpG(3);n.HbH(e.cx("filelabel")),n.R7$(),n.SpI(" ",e.basicFileChosenLabel()," ")}}function Fxe(t,r){1&t&&n.eu8(0)}function Pxe(t,r){if(1&t&&n.DNE(0,Fxe,1,0,"ng-container",10),2&t){const e=n.XpG(3);n.Y8G("ngTemplateOutlet",e.fileLabelTemplate||e._fileLabelTemplate)("ngTemplateOutletContext",n.eq3(2,RSe,e.files))}}function Lxe(t,r){if(1&t&&n.DNE(0,Oxe,2,3,"span",44)(1,Pxe,1,4,"ng-container"),2&t){const e=n.XpG(2);n.vxM(e.fileLabelTemplate||e._fileLabelTemplate?1:0)}}function Nxe(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",21),n.Z7z(1,_xe,1,2,"p-message",14,n.fX1),n.j41(3,"p-button",34),n.bIt("onClick",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onBasicUploaderClick())})("keydown",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onBasicKeydown(o))}),n.DNE(4,Rxe,2,1,"ng-template",null,2,n.C5r),n.j41(6,"input",35,3),n.bIt("change",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onFileSelect(o))})("focus",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onFocus())})("blur",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onBlur())}),n.k0s()(),n.DNE(8,Lxe,2,1),n.k0s()}if(2&t){const e=n.XpG();n.HbH(e.styleClass),n.Y8G("ngClass","p-fileupload p-fileupload-basic p-component"),n.BMQ("data-pc-name","fileupload"),n.R7$(),n.Dyx(e.msgs),n.R7$(2),n.Aen(e.style),n.Y8G("styleClass","p-fileupload-choose-button "+e.chooseStyleClass)("disabled",e.disabled)("label",e.chooseButtonLabel)("buttonProps",e.chooseButtonProps),n.R7$(3),n.Y8G("accept",e.accept)("multiple",e.multiple)("disabled",e.disabled),n.BMQ("aria-label",e.browseFilesLabel)("data-pc-section","input"),n.R7$(2),n.vxM(e.auto?-1:8)}}let oY=(()=>{class t extends jo{name;url;method="post";multiple;accept;disabled;auto;withCredentials;maxFileSize;invalidFileSizeMessageSummary="{0}: Invalid file size, ";invalidFileSizeMessageDetail="maximum upload size is {0}.";invalidFileTypeMessageSummary="{0}: Invalid file type, ";invalidFileTypeMessageDetail="allowed file types: {0}.";invalidFileLimitMessageDetail="limit is {0} at most.";invalidFileLimitMessageSummary="Maximum number of files exceeded, ";style;styleClass;previewWidth=50;chooseLabel;uploadLabel;cancelLabel;chooseIcon;uploadIcon;cancelIcon;showUploadButton=!0;showCancelButton=!0;mode="advanced";headers;customUpload;fileLimit;uploadStyleClass;cancelStyleClass;removeStyleClass;chooseStyleClass;chooseButtonProps;uploadButtonProps={severity:"secondary"};cancelButtonProps={severity:"secondary"};onBeforeUpload=new n.bkB;onSend=new n.bkB;onUpload=new n.bkB;onError=new n.bkB;onClear=new n.bkB;onRemove=new n.bkB;onSelect=new n.bkB;onProgress=new n.bkB;uploadHandler=new n.bkB;onImageError=new n.bkB;onRemoveUploadedFile=new n.bkB;fileTemplate;headerTemplate;contentTemplate;toolbarTemplate;chooseIconTemplate;fileLabelTemplate;uploadIconTemplate;cancelIconTemplate;emptyTemplate;advancedFileInput;basicFileInput;content;set files(e){this._files=[];for(let i=0;i<e.length;i++){let o=e[i];this.validate(o)&&(this.isImage(o)&&(o.objectURL=this.sanitizer.bypassSecurityTrustUrl(window.URL.createObjectURL(e[i]))),this._files.push(e[i]))}}get files(){return this._files}get basicButtonLabel(){return this.auto||!this.hasFiles()?this.chooseLabel:this.uploadLabel??this.files[0].name}_files=[];progress=0;dragHighlight;msgs;uploadedFileCount=0;focus;uploading;duplicateIEEvent;translationSubscription;dragOverListener;uploadedFiles=[];sanitizer=(0,n.WQX)(Ku);zone=(0,n.WQX)(n.SKi);http=(0,n.WQX)(Da);_componentStyle=(0,n.WQX)(Bte);ngOnInit(){super.ngOnInit(),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.cd.markForCheck()})}ngAfterViewInit(){super.ngAfterViewInit(),Gr(this.platformId)&&"advanced"===this.mode&&this.zone.runOutsideAngular(()=>{this.content&&(this.dragOverListener=this.renderer.listen(this.content.nativeElement,"dragover",this.onDragOver.bind(this)))})}_headerTemplate;_contentTemplate;_toolbarTemplate;_chooseIconTemplate;_uploadIconTemplate;_cancelIconTemplate;_emptyTemplate;_fileTemplate;_fileLabelTemplate;templates;ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"header":this._headerTemplate=e.template;break;case"file":default:this._fileTemplate=e.template;break;case"content":this._contentTemplate=e.template;break;case"toolbar":this._toolbarTemplate=e.template;break;case"chooseicon":this._chooseIconTemplate=e.template;break;case"uploadicon":this._uploadIconTemplate=e.template;break;case"cancelicon":this._cancelIconTemplate=e.template;break;case"empty":this._emptyTemplate=e.template;break;case"filelabel":this._fileLabelTemplate=e.template}})}basicFileChosenLabel(){return this.auto?this.chooseButtonLabel:this.hasFiles()?this.files&&1===this.files.length?this.files[0].name:this.config.getTranslation("fileChosenMessage")?.replace("{0}",this.files.length):this.config.getTranslation("noFileChosenMessage")||""}getTranslation(e){return this.config.getTranslation(e)}choose(){this.advancedFileInput?.nativeElement.click()}onFileSelect(e){if("drop"!==e.type&&this.isIE11()&&this.duplicateIEEvent)return void(this.duplicateIEEvent=!1);this.msgs=[],this.multiple||(this.files=[]);let i=e.dataTransfer?e.dataTransfer.files:e.target.files;for(let o=0;o<i.length;o++){let s=i[o];this.isFileSelected(s)||this.validate(s)&&(this.isImage(s)&&(s.objectURL=this.sanitizer.bypassSecurityTrustUrl(window.URL.createObjectURL(i[o]))),this.files.push(i[o]))}this.onSelect.emit({originalEvent:e,files:i,currentFiles:this.files}),this.checkFileLimit(i),this.hasFiles()&&this.auto&&("advanced"!==this.mode||!this.isFileLimitExceeded())&&this.upload(),"drop"!==e.type&&this.isIE11()?this.clearIEInput():this.clearInputElement()}isFileSelected(e){for(let i of this.files)if(i.name+i.type+i.size===e.name+e.type+e.size)return!0;return!1}isIE11(){if(Gr(this.platformId))return!!this.document.defaultView.MSInputMethodContext&&!!this.document.documentMode}validate(e){if(this.msgs=this.msgs||[],this.accept&&!this.isFileTypeValid(e)){const i=`${this.invalidFileTypeMessageSummary.replace("{0}",e.name)} ${this.invalidFileTypeMessageDetail.replace("{0}",this.accept)}`;return this.msgs.push({severity:"error",text:i}),!1}if(this.maxFileSize&&e.size>this.maxFileSize){const i=`${this.invalidFileSizeMessageSummary.replace("{0}",e.name)} ${this.invalidFileSizeMessageDetail.replace("{0}",this.formatSize(this.maxFileSize))}`;return this.msgs.push({severity:"error",text:i}),!1}return!0}isFileTypeValid(e){let i=this.accept?.split(",").map(o=>o.trim());for(let o of i)if(this.isWildcard(o)?this.getTypeClass(e.type)===this.getTypeClass(o):e.type==o||this.getFileExtension(e).toLowerCase()===o.toLowerCase())return!0;return!1}getTypeClass(e){return e.substring(0,e.indexOf("/"))}isWildcard(e){return-1!==e.indexOf("*")}getFileExtension(e){return"."+e.name.split(".").pop()}isImage(e){return/^image\//.test(e.type)}onImageLoad(e){window.URL.revokeObjectURL(e.src)}uploader(){if(this.customUpload)this.fileLimit&&(this.uploadedFileCount+=this.files.length),this.uploadHandler.emit({files:this.files}),this.cd.markForCheck();else{this.uploading=!0,this.msgs=[];let e=new FormData;this.onBeforeUpload.emit({formData:e});for(let i=0;i<this.files.length;i++)e.append(this.name,this.files[i],this.files[i].name);this.http.request(this.method,this.url,{body:e,headers:this.headers,reportProgress:!0,observe:"events",withCredentials:this.withCredentials}).subscribe(i=>{switch(i.type){case $_.Sent:this.onSend.emit({originalEvent:i,formData:e});break;case $_.Response:this.uploading=!1,this.progress=0,i.status>=200&&i.status<300?(this.fileLimit&&(this.uploadedFileCount+=this.files.length),this.onUpload.emit({originalEvent:i,files:this.files})):this.onError.emit({files:this.files}),this.uploadedFiles.push(...this.files),this.clear();break;case $_.UploadProgress:i.loaded&&(this.progress=Math.round(100*i.loaded/i.total)),this.onProgress.emit({originalEvent:i,progress:this.progress})}this.cd.markForCheck()},i=>{this.uploading=!1,this.onError.emit({files:this.files,error:i})})}}clear(){this.files=[],this.uploadedFileCount=0,this.onClear.emit(),this.clearInputElement(),this.cd.markForCheck()}remove(e,i){this.clearInputElement(),this.onRemove.emit({originalEvent:e,file:this.files[i]}),this.files.splice(i,1),this.checkFileLimit(this.files)}removeUploadedFile(e){let i=this.uploadedFiles.splice(e,1)[0];this.uploadedFiles=[...this.uploadedFiles],this.onRemoveUploadedFile.emit({file:i,files:this.uploadedFiles})}isFileLimitExceeded(){const i=this.auto?this.files.length:this.files.length+this.uploadedFileCount;return this.fileLimit&&this.fileLimit<=i&&this.focus&&(this.focus=!1),this.fileLimit&&this.fileLimit<i}isChooseDisabled(){return this.auto?this.fileLimit&&this.fileLimit<=this.files.length:this.fileLimit&&this.fileLimit<=this.files.length+this.uploadedFileCount}checkFileLimit(e){this.msgs??=[];const i=this.msgs.length>0&&this.fileLimit<e.length;if(this.isFileLimitExceeded()||i){const o=`${this.invalidFileLimitMessageSummary.replace("{0}",this.fileLimit.toString())} ${this.invalidFileLimitMessageDetail.replace("{0}",this.fileLimit.toString())}`;this.msgs.push({severity:"error",text:o})}}clearInputElement(){this.advancedFileInput&&this.advancedFileInput.nativeElement&&(this.advancedFileInput.nativeElement.value=""),this.basicFileInput&&this.basicFileInput.nativeElement&&(this.basicFileInput.nativeElement.value="")}clearIEInput(){this.advancedFileInput&&this.advancedFileInput.nativeElement&&(this.duplicateIEEvent=!0,this.advancedFileInput.nativeElement.value="")}hasFiles(){return this.files&&this.files.length>0}hasUploadedFiles(){return this.uploadedFiles&&this.uploadedFiles.length>0}onDragEnter(e){this.disabled||(e.stopPropagation(),e.preventDefault())}onDragOver(e){this.disabled||(Nc(this.content?.nativeElement,"p-fileupload-highlight"),this.dragHighlight=!0,e.stopPropagation(),e.preventDefault())}onDragLeave(e){this.disabled||ru(this.content?.nativeElement,"p-fileupload-highlight")}onDrop(e){if(!this.disabled){ru(this.content?.nativeElement,"p-fileupload-highlight"),e.stopPropagation(),e.preventDefault();let i=e.dataTransfer?e.dataTransfer.files:e.target.files;(this.multiple||i&&1===i.length)&&this.onFileSelect(e)}}onFocus(){this.focus=!0}onBlur(){this.focus=!1}formatSize(e){const s=this.getTranslation(Xs.FILE_SIZE_TYPES);if(0===e)return`0 ${s[0]}`;const a=Math.floor(Math.log(e)/Math.log(1024));return`${(e/Math.pow(1024,a)).toFixed(3)} ${s[a]}`}upload(){this.hasFiles()&&this.uploader()}onBasicUploaderClick(){this.basicFileInput?.nativeElement.click()}onBasicKeydown(e){switch(e.code){case"Space":case"Enter":this.onBasicUploaderClick(),e.preventDefault()}}imageError(e){this.onImageError.emit(e)}getBlockableElement(){return this.el.nativeElement.children[0]}get chooseButtonLabel(){return this.chooseLabel||this.config.getTranslation(Xs.CHOOSE)}get uploadButtonLabel(){return this.uploadLabel||this.config.getTranslation(Xs.UPLOAD)}get cancelButtonLabel(){return this.cancelLabel||this.config.getTranslation(Xs.CANCEL)}get browseFilesLabel(){return this.config.getTranslation(Xs.ARIA)[Xs.BROWSE_FILES]}get pendingLabel(){return this.config.getTranslation(Xs.PENDING)}ngOnDestroy(){this.content&&this.content.nativeElement&&this.dragOverListener&&(this.dragOverListener(),this.dragOverListener=null),this.translationSubscription&&this.translationSubscription.unsubscribe(),super.ngOnDestroy()}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["p-fileupload"],["p-fileUpload"]],contentQueries:function(i,o,s){if(1&i&&(n.wni(s,bSe,4),n.wni(s,CSe,4),n.wni(s,Vte,4),n.wni(s,wSe,4),n.wni(s,TSe,4),n.wni(s,SSe,4),n.wni(s,xSe,4),n.wni(s,ESe,4),n.wni(s,DSe,4),n.wni(s,hs,4)),2&i){let a;n.mGM(a=n.lsd())&&(o.fileTemplate=a.first),n.mGM(a=n.lsd())&&(o.headerTemplate=a.first),n.mGM(a=n.lsd())&&(o.contentTemplate=a.first),n.mGM(a=n.lsd())&&(o.toolbarTemplate=a.first),n.mGM(a=n.lsd())&&(o.chooseIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.fileLabelTemplate=a.first),n.mGM(a=n.lsd())&&(o.uploadIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.cancelIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.emptyTemplate=a.first),n.mGM(a=n.lsd())&&(o.templates=a)}},viewQuery:function(i,o){if(1&i&&(n.GBs(kSe,5),n.GBs(ISe,5),n.GBs(Vte,5)),2&i){let s;n.mGM(s=n.lsd())&&(o.advancedFileInput=s.first),n.mGM(s=n.lsd())&&(o.basicFileInput=s.first),n.mGM(s=n.lsd())&&(o.content=s.first)}},inputs:{name:"name",url:"url",method:"method",multiple:[2,"multiple","multiple",n.L39],accept:"accept",disabled:[2,"disabled","disabled",n.L39],auto:[2,"auto","auto",n.L39],withCredentials:[2,"withCredentials","withCredentials",n.L39],maxFileSize:[2,"maxFileSize","maxFileSize",n.Udg],invalidFileSizeMessageSummary:"invalidFileSizeMessageSummary",invalidFileSizeMessageDetail:"invalidFileSizeMessageDetail",invalidFileTypeMessageSummary:"invalidFileTypeMessageSummary",invalidFileTypeMessageDetail:"invalidFileTypeMessageDetail",invalidFileLimitMessageDetail:"invalidFileLimitMessageDetail",invalidFileLimitMessageSummary:"invalidFileLimitMessageSummary",style:"style",styleClass:"styleClass",previewWidth:[2,"previewWidth","previewWidth",n.Udg],chooseLabel:"chooseLabel",uploadLabel:"uploadLabel",cancelLabel:"cancelLabel",chooseIcon:"chooseIcon",uploadIcon:"uploadIcon",cancelIcon:"cancelIcon",showUploadButton:[2,"showUploadButton","showUploadButton",n.L39],showCancelButton:[2,"showCancelButton","showCancelButton",n.L39],mode:"mode",headers:"headers",customUpload:[2,"customUpload","customUpload",n.L39],fileLimit:[2,"fileLimit","fileLimit",e=>(0,n.Udg)(e,null)],uploadStyleClass:"uploadStyleClass",cancelStyleClass:"cancelStyleClass",removeStyleClass:"removeStyleClass",chooseStyleClass:"chooseStyleClass",chooseButtonProps:"chooseButtonProps",uploadButtonProps:"uploadButtonProps",cancelButtonProps:"cancelButtonProps",files:"files"},outputs:{onBeforeUpload:"onBeforeUpload",onSend:"onSend",onUpload:"onUpload",onError:"onError",onClear:"onClear",onRemove:"onRemove",onSelect:"onSelect",onProgress:"onProgress",uploadHandler:"uploadHandler",onImageError:"onImageError",onRemoveUploadedFile:"onRemoveUploadedFile"},features:[n.Jv_([Bte]),n.GFd,n.Vt3],decls:2,vars:2,consts:[["advancedfileinput",""],["content",""],["icon",""],["basicfileinput",""],[3,"ngClass","ngStyle","class",4,"ngIf"],[3,"ngClass","class",4,"ngIf"],[3,"ngClass","ngStyle"],["type","file",3,"change","multiple","accept","disabled"],[1,"p-fileupload-header"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],[1,"p-fileupload-content",3,"dragenter","dragleave","drop"],[3,"value","showValue",4,"ngIf"],[3,"severity","text"],["class","p-fileupload-file-list",4,"ngIf"],["tabindex","0",3,"focus","blur","onClick","keydown.enter","styleClass","disabled","label","buttonProps"],[3,"class",4,"ngIf"],[3,"label","disabled","styleClass","buttonProps","onClick",4,"ngIf"],[3,"onClick","label","disabled","styleClass","buttonProps"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[3,"value","showValue"],[1,"p-fileupload-file-list"],[1,"p-fileupload-file"],["ngFor","",3,"ngForOf","ngForTemplate"],["class","p-fileupload-file",4,"ngFor","ngForOf"],["class","p-fileupload-file-thumbnail",3,"src","width","error",4,"ngIf"],[1,"p-fileupload-file-info"],[1,"p-fileupload-file-name"],[1,"p-fileupload-file-size"],[1,"p-fileupload-file-actions"],["text","","rounded","","severity","danger",3,"onClick","disabled","styleClass"],[1,"p-fileupload-file-thumbnail",3,"error","src","width"],["tabindex","0",3,"onClick","keydown","styleClass","disabled","label","buttonProps"],["type","file",3,"change","focus","blur","accept","multiple","disabled"],["class","p-button-icon p-button-icon-left",3,"ngClass",4,"ngIf"],[1,"p-button-icon","p-button-icon-left",3,"ngClass"],[3,"styleClass",4,"ngIf"],["class","p-button-icon p-button-icon-left",4,"ngIf"],[3,"styleClass"],[1,"p-button-icon","p-button-icon-left"],["class","p-button-icon p-button-icon-left pi",3,"ngClass",4,"ngIf"],[1,"p-button-icon","p-button-icon-left","pi",3,"ngClass"],[3,"class"]],template:function(i,o){1&i&&n.DNE(0,vxe,15,39,"div",4)(1,Nxe,9,16,"div",5),2&i&&(n.Y8G("ngIf","advanced"===o.mode),n.R7$(),n.Y8G("ngIf","basic"===o.mode))},dependencies:[gn,bi,oo,fi,uo,Jr,Rp,Gte,z_,k8,FTe,pf,Di],encapsulation:2,changeDetection:0})}return t})(),jte=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({imports:[oY,Di,Di]})}return t})();const Gxe=({dt:t})=>`\np-inputmask {\n    position: relative;\n}\n\n.p-inputmask-clear-icon {\n    position: absolute;\n    top: 50%;\n    margin-top: -0.5rem;\n    cursor: pointer;\n    inset-inline-end: ${t("form.field.padding.x")};\n    color: ${t("form.field.icon.color")};\n}\n\np-inputmask.ng-invalid.ng-dirty > .p-inputtext {\n    border-color: ${t("inputtext.invalid.border.color")};\n}\n\np-inputmask.ng-invalid.ng-dirty > .p-inputtext:enabled:focus {\n    border-color: ${t("inputtext.focus.border.color")};\n}\n\np-inputmask.ng-invalid.ng-dirty > .p-inputtext::placeholder {\n    color: ${t("inputtext.invalid.placeholder.color")};\n}\n`,Bxe={root:({instance:t})=>({"p-inputmask":!0,"p-filled":t.variant?"filled"===t.variant:"filled"===t.config.inputStyle()})};let Hte=(()=>{class t extends gs{name="inputmask";theme=Gxe;classes=Bxe;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const jxe=["clearicon"],Hxe=["input"];function Uxe(t,r){if(1&t){const e=n.RV6();n.j41(0,"TimesIcon",5),n.bIt("click",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.clear())}),n.k0s()}2&t&&(n.Y8G("styleClass","p-inputmask-clear-icon"),n.BMQ("data-pc-section","clearIcon"))}function $xe(t,r){}function Yxe(t,r){1&t&&n.DNE(0,$xe,0,0,"ng-template")}function Wxe(t,r){if(1&t){const e=n.RV6();n.j41(0,"span",6),n.bIt("click",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.clear())}),n.DNE(1,Yxe,1,0,null,7),n.k0s()}if(2&t){const e=n.XpG(2);n.BMQ("data-pc-section","clearIcon"),n.R7$(),n.Y8G("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)}}function zxe(t,r){if(1&t&&(n.qex(0),n.DNE(1,Uxe,1,2,"TimesIcon",3)(2,Wxe,2,2,"span",4),n.bVm()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),n.R7$(),n.Y8G("ngIf",e.clearIconTemplate||e._clearIconTemplate)}}const qxe={provide:tl,useExisting:(0,n.Rfq)(()=>I8),multi:!0};let I8=(()=>{class t extends jo{type="text";slotChar="_";autoClear=!0;showClear=!1;style;inputId;styleClass;placeholder;size;maxlength;tabindex;title;variant="outlined";ariaLabel;ariaLabelledBy;ariaRequired;disabled;readonly;unmask;name;required;characterPattern="[A-Za-z]";autofocus;set autoFocus(e){this.autofocus=e,console.log("autoFocus is deprecated. Use autofocus property instead.")}autocomplete;keepBuffer=!1;get mask(){return this._mask}set mask(e){this._mask=e,this.initMask(),this.writeValue(""),this.onModelChange(this.value)}onComplete=new n.bkB;onFocus=new n.bkB;onBlur=new n.bkB;onInput=new n.bkB;onKeydown=new n.bkB;onClear=new n.bkB;clearIconTemplate;templates;inputViewChild;value;_mask;onModelChange=()=>{};onModelTouched=()=>{};input;filled;defs;tests;partialPosition;firstNonMaskPos;lastRequiredNonMaskPos;len;oldVal;buffer;defaultBuffer;focusText;caretTimeoutId;androidChrome=!0;focused;get inputClass(){return this._componentStyle.classes.root({instance:this})}_componentStyle=(0,n.WQX)(Hte);ngOnInit(){if(super.ngOnInit(),Gr(this.platformId)){let e=navigator.userAgent;this.androidChrome=/chrome/i.test(e)&&/android/i.test(e)}this.initMask()}_clearIconTemplate;ngAfterContentInit(){this.templates.forEach(e=>{"clearicon"===e.getType()&&(this._clearIconTemplate=e.template)})}initMask(){this.tests=[],this.partialPosition=this.mask.length,this.len=this.mask.length,this.firstNonMaskPos=null,this.defs={9:"[0-9]",a:this.characterPattern,"*":`${this.characterPattern}|[0-9]`};let e=this.mask.split("");for(let i=0;i<e.length;i++){let o=e[i];"?"==o?(this.len--,this.partialPosition=i):this.defs[o]?(this.tests.push(new RegExp(this.defs[o])),null===this.firstNonMaskPos&&(this.firstNonMaskPos=this.tests.length-1),i<this.partialPosition&&(this.lastRequiredNonMaskPos=this.tests.length-1)):this.tests.push(null)}this.buffer=[];for(let i=0;i<e.length;i++){let o=e[i];"?"!=o&&this.buffer.push(this.defs[o]?this.getPlaceholder(i):o)}this.defaultBuffer=this.buffer.join("")}writeValue(e){this.value=e,this.inputViewChild&&this.inputViewChild.nativeElement&&(this.inputViewChild.nativeElement.value=null==this.value||null==this.value?"":this.value,this.checkVal(),this.focusText=this.inputViewChild.nativeElement.value,this.updateFilledState())}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}caret(e,i){let o,s,a;if(this.inputViewChild?.nativeElement.offsetParent&&this.inputViewChild.nativeElement===this.inputViewChild.nativeElement.ownerDocument.activeElement){if("number"!=typeof e)return this.inputViewChild.nativeElement.setSelectionRange?(s=this.inputViewChild.nativeElement.selectionStart,a=this.inputViewChild.nativeElement.selectionEnd):this.document&&this.document.selection.createRange&&(o=this.document.createRange(),s=0-o.duplicate().moveStart("character",-1e5),a=s+o.text.length),{begin:s,end:a};s=e,a="number"==typeof i?i:s,this.inputViewChild.nativeElement.setSelectionRange?this.inputViewChild.nativeElement.setSelectionRange(s,a):this.inputViewChild.nativeElement.createTextRange&&(o=this.inputViewChild.nativeElement.createTextRange(),o.collapse(!0),o.moveEnd("character",a),o.moveStart("character",s),o.select())}}isCompleted(){for(let i=this.firstNonMaskPos;i<=this.lastRequiredNonMaskPos;i++)if(this.tests[i]&&this.buffer[i]===this.getPlaceholder(i))return!1;return!0}getPlaceholder(e){return this.slotChar.charAt(e<this.slotChar.length?e:0)}seekNext(e){for(;++e<this.len&&!this.tests[e];);return e}seekPrev(e){for(;--e>=0&&!this.tests[e];);return e}shiftL(e,i){let o,s;if(!(e<0)){for(o=e,s=this.seekNext(i);o<this.len;o++)if(this.tests[o]){if(!(s<this.len&&this.tests[o].test(this.buffer[s])))break;this.buffer[o]=this.buffer[s],this.buffer[s]=this.getPlaceholder(s),s=this.seekNext(s)}this.writeBuffer(),this.caret(Math.max(this.firstNonMaskPos,e))}}shiftR(e){let i,o,s,a;for(i=e,o=this.getPlaceholder(e);i<this.len;i++)if(this.tests[i]){if(s=this.seekNext(i),a=this.buffer[i],this.buffer[i]=o,!(s<this.len&&this.tests[s].test(a)))break;o=a}}handleAndroidInput(e){var i=this.inputViewChild?.nativeElement.value,o=this.caret();if(this.oldVal&&this.oldVal.length&&this.oldVal.length>i.length){for(this.checkVal(!0);o.begin>0&&!this.tests[o.begin-1];)o.begin--;if(0===o.begin)for(;o.begin<this.firstNonMaskPos&&!this.tests[o.begin];)o.begin++;setTimeout(()=>{this.caret(o.begin,o.begin),this.updateModel(e),this.isCompleted()&&this.onComplete.emit()},0)}else{for(this.checkVal(!0);o.begin<this.len&&!this.tests[o.begin];)o.begin++;setTimeout(()=>{this.caret(o.begin,o.begin),this.updateModel(e),this.isCompleted()&&this.onComplete.emit()},0)}}onInputBlur(e){if(this.focused=!1,this.onModelTouched(),this.keepBuffer||this.checkVal(),this.updateFilledState(),this.onBlur.emit(e),this.inputViewChild?.nativeElement.value!=this.focusText||this.inputViewChild?.nativeElement.value!=this.value){this.updateModel(e);let i=this.document.createEvent("HTMLEvents");i.initEvent("change",!0,!1),this.inputViewChild?.nativeElement.dispatchEvent(i)}}onInputKeydown(e){if(this.readonly)return;let o,s,a,l,i=e.which||e.keyCode;Gr(this.platformId)&&(l=/iphone/i.test(_Z())),this.oldVal=this.inputViewChild?.nativeElement.value,this.onKeydown.emit(e),8===i||46===i||l&&127===i?(o=this.caret(),s=o.begin,a=o.end,a-s==0&&(s=46!==i?this.seekPrev(s):a=this.seekNext(s-1),a=46===i?this.seekNext(a):a),this.clearBuffer(s,a),this.shiftL(s,this.keepBuffer?a-2:a-1),this.updateModel(e),this.onInput.emit(e),e.preventDefault()):13===i?(this.onInputBlur(e),this.updateModel(e)):27===i&&(this.inputViewChild.nativeElement.value=this.focusText,this.caret(0,this.checkVal()),this.updateModel(e),e.preventDefault())}onKeyPress(e){if(!this.readonly){var s,a,l,c,i=e.which||e.keyCode,o=this.caret();e.ctrlKey||e.altKey||e.metaKey||i<32||i>34&&i<41||(i&&13!==i&&(o.end-o.begin!=0&&(this.clearBuffer(o.begin,o.end),this.shiftL(o.begin,o.end-1)),(s=this.seekNext(o.begin-1))<this.len&&(a=String.fromCharCode(i),this.tests[s].test(a)&&(this.shiftR(s),this.buffer[s]=a,this.writeBuffer(),l=this.seekNext(s),function yZ(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}()&&/android/i.test(_Z())?setTimeout(()=>{this.caret(l)},0):this.caret(l),o.begin<=this.lastRequiredNonMaskPos&&(c=this.isCompleted()),this.onInput.emit(e))),e.preventDefault()),this.updateModel(e),this.updateFilledState(),c&&this.onComplete.emit())}}clearBuffer(e,i){if(!this.keepBuffer){let o;for(o=e;o<i&&o<this.len;o++)this.tests[o]&&(this.buffer[o]=this.getPlaceholder(o))}}writeBuffer(){this.inputViewChild.nativeElement.value=this.buffer.join("")}checkVal(e){let s,a,l,i=this.inputViewChild?.nativeElement.value,o=-1;for(s=0,l=0;s<this.len;s++)if(this.tests[s]){for(this.buffer[s]=this.getPlaceholder(s);l++<i.length;)if(a=i.charAt(l-1),this.tests[s].test(a)){this.keepBuffer||(this.buffer[s]=a),o=s;break}if(l>i.length){this.clearBuffer(s+1,this.len);break}}else this.buffer[s]===i.charAt(l)&&l++,s<this.partialPosition&&(o=s);return e?this.writeBuffer():o+1<this.partialPosition?this.autoClear||this.buffer.join("")===this.defaultBuffer?(this.inputViewChild?.nativeElement.value&&(this.inputViewChild.nativeElement.value=""),this.clearBuffer(0,this.len)):this.writeBuffer():(this.writeBuffer(),this.inputViewChild.nativeElement.value=this.inputViewChild?.nativeElement.value.substring(0,o+1)),this.partialPosition?s:this.firstNonMaskPos}onInputFocus(e){if(this.readonly)return;let i;this.focused=!0,clearTimeout(this.caretTimeoutId),this.focusText=this.inputViewChild?.nativeElement.value,i=this.keepBuffer?this.inputViewChild?.nativeElement.value.length:this.checkVal(),this.caretTimeoutId=setTimeout(()=>{this.inputViewChild?.nativeElement===this.inputViewChild?.nativeElement.ownerDocument.activeElement&&(this.writeBuffer(),i==this.mask?.replace("?","").length?this.caret(0,i):this.caret(i))},10),this.onFocus.emit(e)}onInputChange(e){this.androidChrome?this.handleAndroidInput(e):this.handleInputChange(e),this.onInput.emit(e)}handleInputChange(e){this.readonly||setTimeout(()=>{var i=this.checkVal(!0);this.caret(i),this.updateModel(e),this.isCompleted()&&this.onComplete.emit()},0)}getUnmaskedValue(){let e=[];for(let i=0;i<this.buffer.length;i++){let o=this.buffer[i];this.tests[i]&&o!=this.getPlaceholder(i)&&e.push(o)}return e.join("")}updateModel(e){const i=this.unmask?this.getUnmaskedValue():e.target.value;(null!==i||void 0!==i)&&(this.value=i,this.onModelChange(this.value))}updateFilledState(){this.filled=this.inputViewChild?.nativeElement&&""!=this.inputViewChild.nativeElement.value}focus(){this.inputViewChild?.nativeElement.focus()}clear(){this.inputViewChild.nativeElement.value="",this.value=null,this.onModelChange(this.value),this.onClear.emit()}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["p-inputmask"],["p-inputMask"],["p-input-mask"]],contentQueries:function(i,o,s){if(1&i&&(n.wni(s,jxe,4),n.wni(s,hs,4)),2&i){let a;n.mGM(a=n.lsd())&&(o.clearIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.templates=a)}},viewQuery:function(i,o){if(1&i&&n.GBs(Hxe,7),2&i){let s;n.mGM(s=n.lsd())&&(o.inputViewChild=s.first)}},inputs:{type:"type",slotChar:"slotChar",autoClear:[2,"autoClear","autoClear",n.L39],showClear:[2,"showClear","showClear",n.L39],style:"style",inputId:"inputId",styleClass:"styleClass",placeholder:"placeholder",size:"size",maxlength:[2,"maxlength","maxlength",n.Udg],tabindex:"tabindex",title:"title",variant:"variant",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",ariaRequired:[2,"ariaRequired","ariaRequired",n.L39],disabled:[2,"disabled","disabled",n.L39],readonly:[2,"readonly","readonly",n.L39],unmask:[2,"unmask","unmask",n.L39],name:"name",required:[2,"required","required",n.L39],characterPattern:"characterPattern",autofocus:[2,"autofocus","autofocus",n.L39],autoFocus:[2,"autoFocus","autoFocus",n.L39],autocomplete:"autocomplete",keepBuffer:[2,"keepBuffer","keepBuffer",n.L39],mask:"mask"},outputs:{onComplete:"onComplete",onFocus:"onFocus",onBlur:"onBlur",onInput:"onInput",onKeydown:"onKeydown",onClear:"onClear"},features:[n.Jv_([qxe,Hte]),n.GFd,n.Vt3],decls:3,vars:24,consts:[["input",""],["pInputText","",3,"focus","blur","keydown","keypress","input","paste","ngClass","ngStyle","pSize","disabled","readonly","variant","pAutoFocus"],[4,"ngIf"],[3,"styleClass","click",4,"ngIf"],["class","p-inputmask-clear-icon",3,"click",4,"ngIf"],[3,"click","styleClass"],[1,"p-inputmask-clear-icon",3,"click"],[4,"ngTemplateOutlet"]],template:function(i,o){if(1&i){const s=n.RV6();n.j41(0,"input",1,0),n.bIt("focus",function(l){return n.eBV(s),n.Njj(o.onInputFocus(l))})("blur",function(l){return n.eBV(s),n.Njj(o.onInputBlur(l))})("keydown",function(l){return n.eBV(s),n.Njj(o.onInputKeydown(l))})("keypress",function(l){return n.eBV(s),n.Njj(o.onKeyPress(l))})("input",function(l){return n.eBV(s),n.Njj(o.onInputChange(l))})("paste",function(l){return n.eBV(s),n.Njj(o.handleInputChange(l))}),n.k0s(),n.DNE(2,zxe,3,2,"ng-container",2)}2&i&&(n.HbH(o.styleClass),n.Y8G("ngClass",o.inputClass)("ngStyle",o.style)("pSize",o.size)("disabled",o.disabled)("readonly",o.readonly)("variant",o.variant)("pAutoFocus",o.autofocus),n.BMQ("id",o.inputId)("type",o.type)("name",o.name)("placeholder",o.placeholder)("title",o.title)("autocomplete",o.autocomplete)("maxlength",o.maxlength)("tabindex",o.tabindex)("aria-label",o.ariaLabel)("aria-labelledBy",o.ariaLabelledBy)("aria-required",o.ariaRequired)("required",o.required)("data-pc-name","inputmask")("data-pc-section","root"),n.R7$(2),n.Y8G("ngIf",null!=o.value&&o.filled&&o.showClear&&!o.disabled))},dependencies:[gn,bi,fi,uo,Jr,hf,Jf,pf,Di],encapsulation:2,changeDetection:0})}return t})(),sY=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({imports:[I8,Di,Di]})}return t})();function aY(...t){const r=QR(t),e=LJ(t),{args:i,keys:o}=DZ(t);if(0===i.length)return Pc([],r);const s=new Fc.c(function Kxe(t,r,e=vx.D){return i=>{Ute(r,()=>{const{length:o}=t,s=new Array(o);let a=o,l=o;for(let c=0;c<o;c++)Ute(r,()=>{const d=Pc(t[c],r);let f=!1;d.subscribe((0,Dd._)(i,v=>{s[c]=v,f||(f=!0,l--),l||i.next(e(s.slice()))},()=>{--a||i.complete()}))},i)},i)}}(i,r,o?a=>IZ(o,a):vx.D));return e?s.pipe(kZ(e)):s}function Ute(t,r,e){t?bb(e,t,r):r()}var Qxe=b(1203);function A8(t,r){const e=(0,Ye.T)(t)?t:()=>t,i=o=>o.error(e());return new Fc.c(r?o=>r.schedule(i,0,o):i)}function lY(){return(0,zd.N)((t,r)=>{let e=null;t._refCount++;const i=(0,Dd._)(r,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount)return void(e=null);const o=t._connection,s=e;e=null,o&&(!s||o===s)&&o.unsubscribe(),r.unsubscribe()});t.subscribe(i),i.closed||(e=t.connect())})}class $te extends Fc.c{constructor(r,e){super(),this.source=r,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,(0,zd.S)(r)&&(this.lift=r.lift)}_subscribe(r){return this.getSubject().subscribe(r)}getSubject(){const r=this._subject;return(!r||r.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:r}=this;this._subject=this._connection=null,r?.unsubscribe()}connect(){let r=this._connection;if(!r){r=this._connection=new mx.yU;const e=this.getSubject();r.add(this.source.subscribe((0,Dd._)(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),r.closed&&(this._connection=null,r=mx.yU.EMPTY)}return r}refCount(){return lY()(this)}}function Fx(t){return(0,zd.N)((r,e)=>{let s,i=null,o=!1;i=r.subscribe((0,Dd._)(e,void 0,void 0,a=>{s=Rs(t(a,Fx(t)(r))),i?(i.unsubscribe(),i=null,s.subscribe(e)):o=!0})),o&&(i.unsubscribe(),i=null,s.subscribe(e))})}function cY(t){return t<=0?()=>W_:(0,zd.N)((r,e)=>{let i=[];r.subscribe((0,Dd._)(e,o=>{i.push(o),t<i.length&&i.shift()},()=>{for(const o of i)e.next(o);e.complete()},void 0,()=>{i=null}))})}const za="primary",vO=Symbol("RouteTitle");class t2e{params;constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){const e=this.params[r];return Array.isArray(e)?e[0]:e}return null}getAll(r){if(this.has(r)){const e=this.params[r];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function pk(t){return new t2e(t)}function n2e(t,r,e){const i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(r.hasChildren()||i.length<t.length))return null;const o={};for(let s=0;s<i.length;s++){const a=i[s],l=t[s];if(":"===a[0])o[a.substring(1)]=l;else if(a!==l.path)return null}return{consumed:t.slice(0,i.length),posParams:o}}function ky(t,r){const e=t?uY(t):void 0,i=r?uY(r):void 0;if(!e||!i||e.length!=i.length)return!1;let o;for(let s=0;s<e.length;s++)if(o=e[s],!Yte(t[o],r[o]))return!1;return!0}function uY(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function Yte(t,r){if(Array.isArray(t)&&Array.isArray(r)){if(t.length!==r.length)return!1;const e=[...t].sort(),i=[...r].sort();return e.every((o,s)=>i[s]===o)}return t===r}function Wte(t){return t.length>0?t[t.length-1]:null}function zw(t){return function Xxe(t){return!!t&&(t instanceof Fc.c||(0,Ye.T)(t.lift)&&(0,Ye.T)(t.subscribe))}(t)?t:(0,n.jNT)(t)?Pc(Promise.resolve(t)):Fs(t)}const r2e={exact:function Xte(t,r,e){if(!Lx(t.segments,r.segments)||!M8(t.segments,r.segments,e)||t.numberOfChildren!==r.numberOfChildren)return!1;for(const i in r.children)if(!t.children[i]||!Xte(t.children[i],r.children[i],e))return!1;return!0},subset:Kte},zte={exact:function o2e(t,r){return ky(t,r)},subset:function s2e(t,r){return Object.keys(r).length<=Object.keys(t).length&&Object.keys(r).every(e=>Yte(t[e],r[e]))},ignored:()=>!0};function qte(t,r,e){return r2e[e.paths](t.root,r.root,e.matrixParams)&&zte[e.queryParams](t.queryParams,r.queryParams)&&!("exact"===e.fragment&&t.fragment!==r.fragment)}function Kte(t,r,e){return Qte(t,r,r.segments,e)}function Qte(t,r,e,i){if(t.segments.length>e.length){const o=t.segments.slice(0,e.length);return!(!Lx(o,e)||r.hasChildren()||!M8(o,e,i))}if(t.segments.length===e.length){if(!Lx(t.segments,e)||!M8(t.segments,e,i))return!1;for(const o in r.children)if(!t.children[o]||!Kte(t.children[o],r.children[o],i))return!1;return!0}{const o=e.slice(0,t.segments.length),s=e.slice(t.segments.length);return!!(Lx(t.segments,o)&&M8(t.segments,o,i)&&t.children[za])&&Qte(t.children[za],r,s,i)}}function M8(t,r,e){return r.every((i,o)=>zte[e](t[o].parameters,i.parameters))}class Px{root;queryParams;fragment;_queryParamMap;constructor(r=new au([],{}),e={},i=null){this.root=r,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap??=pk(this.queryParams),this._queryParamMap}toString(){return c2e.serialize(this)}}class au{segments;children;parent=null;constructor(r,e){this.segments=r,this.children=e,Object.values(e).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return O8(this)}}class _O{path;parameters;_parameterMap;constructor(r,e){this.path=r,this.parameters=e}get parameterMap(){return this._parameterMap??=pk(this.parameters),this._parameterMap}toString(){return ene(this)}}function Lx(t,r){return t.length===r.length&&t.every((e,i)=>e.path===r[i].path)}let hk=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=n.jDH({token:t,factory:()=>new R8,providedIn:"root"})}return t})();class R8{parse(r){const e=new b2e(r);return new Px(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(r){const e=`/${yO(r.root,!0)}`,i=function p2e(t){const r=Object.entries(t).map(([e,i])=>Array.isArray(i)?i.map(o=>`${F8(e)}=${F8(o)}`).join("&"):`${F8(e)}=${F8(i)}`).filter(e=>e);return r.length?`?${r.join("&")}`:""}(r.queryParams),o="string"==typeof r.fragment?`#${function u2e(t){return encodeURI(t)}(r.fragment)}`:"";return`${e}${i}${o}`}}const c2e=new R8;function O8(t){return t.segments.map(r=>ene(r)).join("/")}function yO(t,r){if(!t.hasChildren())return O8(t);if(r){const e=t.children[za]?yO(t.children[za],!1):"",i=[];return Object.entries(t.children).forEach(([o,s])=>{o!==za&&i.push(`${o}:${yO(s,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function l2e(t,r){let e=[];return Object.entries(t.children).forEach(([i,o])=>{i===za&&(e=e.concat(r(o,i)))}),Object.entries(t.children).forEach(([i,o])=>{i!==za&&(e=e.concat(r(o,i)))}),e}(t,(i,o)=>o===za?[yO(t.children[za],!1)]:[`${o}:${yO(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[za]?`${O8(t)}/${e[0]}`:`${O8(t)}/(${e.join("//")})`}}function Jte(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function F8(t){return Jte(t).replace(/%3B/gi,";")}function dY(t){return Jte(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function P8(t){return decodeURIComponent(t)}function Zte(t){return P8(t.replace(/\+/g,"%20"))}function ene(t){return`${dY(t.path)}${function d2e(t){return Object.entries(t).map(([r,e])=>`;${dY(r)}=${dY(e)}`).join("")}(t.parameters)}`}const h2e=/^[^\/()?;#]+/;function pY(t){const r=t.match(h2e);return r?r[0]:""}const f2e=/^[^\/()?;=#]+/,g2e=/^[^=?&#]+/,_2e=/^[^&#]+/;class b2e{url;remaining;constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new au([],{}):new au([],this.parseChildren())}parseQueryParams(){const r={};if(this.consumeOptional("?"))do{this.parseQueryParam(r)}while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(r.length>0||Object.keys(e).length>0)&&(i[za]=new au(r,e)),i}parseSegment(){const r=pY(this.remaining);if(""===r&&this.peekStartsWith(";"))throw new n.wOt(4009,!1);return this.capture(r),new _O(P8(r),this.parseMatrixParams())}parseMatrixParams(){const r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){const e=function m2e(t){const r=t.match(f2e);return r?r[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const o=pY(this.remaining);o&&(i=o,this.capture(i))}r[P8(e)]=P8(i)}parseQueryParam(r){const e=function v2e(t){const r=t.match(g2e);return r?r[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const a=function y2e(t){const r=t.match(_2e);return r?r[0]:""}(this.remaining);a&&(i=a,this.capture(i))}const o=Zte(e),s=Zte(i);if(r.hasOwnProperty(o)){let a=r[o];Array.isArray(a)||(a=[a],r[o]=a),a.push(s)}else r[o]=s}parseParens(r){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=pY(this.remaining),o=this.remaining[i.length];if("/"!==o&&")"!==o&&";"!==o)throw new n.wOt(4010,!1);let s;i.indexOf(":")>-1?(s=i.slice(0,i.indexOf(":")),this.capture(s),this.capture(":")):r&&(s=za);const a=this.parseChildren();e[s]=1===Object.keys(a).length?a[za]:new au([],a),this.consumeOptional("//")}return e}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return!!this.peekStartsWith(r)&&(this.remaining=this.remaining.substring(r.length),!0)}capture(r){if(!this.consumeOptional(r))throw new n.wOt(4011,!1)}}function tne(t){return t.segments.length>0?new au([],{[za]:t}):t}function nne(t){const r={};for(const[i,o]of Object.entries(t.children)){const s=nne(o);if(i===za&&0===s.segments.length&&s.hasChildren())for(const[a,l]of Object.entries(s.children))r[a]=l;else(s.segments.length>0||s.hasChildren())&&(r[i]=s)}return function C2e(t){if(1===t.numberOfChildren&&t.children[za]){const r=t.children[za];return new au(t.segments.concat(r.segments),r.children)}return t}(new au(t.segments,r))}function Nx(t){return t instanceof Px}function ine(t){let r;const o=tne(function e(s){const a={};for(const c of s.children){const d=e(c);a[c.outlet]=d}const l=new au(s.url,a);return s===t&&(r=l),l}(t.root));return r??o}function rne(t,r,e,i){let o=t;for(;o.parent;)o=o.parent;if(0===r.length)return hY(o,o,o,e,i);const s=function T2e(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new sne(!0,0,t);let r=0,e=!1;const i=t.reduce((o,s,a)=>{if("object"==typeof s&&null!=s){if(s.outlets){const l={};return Object.entries(s.outlets).forEach(([c,d])=>{l[c]="string"==typeof d?d.split("/"):d}),[...o,{outlets:l}]}if(s.segmentPath)return[...o,s.segmentPath]}return"string"!=typeof s?[...o,s]:0===a?(s.split("/").forEach((l,c)=>{0==c&&"."===l||(0==c&&""===l?e=!0:".."===l?r++:""!=l&&o.push(l))}),o):[...o,s]},[]);return new sne(e,r,i)}(r);if(s.toRoot())return hY(o,o,new au([],{}),e,i);const a=function S2e(t,r,e){if(t.isAbsolute)return new N8(r,!0,0);if(!e)return new N8(r,!1,NaN);if(null===e.parent)return new N8(e,!0,0);const i=L8(t.commands[0])?0:1;return function x2e(t,r,e){let i=t,o=r,s=e;for(;s>o;){if(s-=o,i=i.parent,!i)throw new n.wOt(4005,!1);o=i.segments.length}return new N8(i,!1,o-s)}(e,e.segments.length-1+i,t.numberOfDoubleDots)}(s,o,t),l=a.processChildren?CO(a.segmentGroup,a.index,s.commands):ane(a.segmentGroup,a.index,s.commands);return hY(o,a.segmentGroup,l,e,i)}function L8(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function bO(t){return"object"==typeof t&&null!=t&&t.outlets}function hY(t,r,e,i,o){let a,s={};i&&Object.entries(i).forEach(([c,d])=>{s[c]=Array.isArray(d)?d.map(f=>`${f}`):`${d}`}),a=t===r?e:one(t,r,e);const l=tne(nne(a));return new Px(l,s,o)}function one(t,r,e){const i={};return Object.entries(t.children).forEach(([o,s])=>{i[o]=s===r?e:one(s,r,e)}),new au(t.segments,i)}class sne{isAbsolute;numberOfDoubleDots;commands;constructor(r,e,i){if(this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=i,r&&i.length>0&&L8(i[0]))throw new n.wOt(4003,!1);const o=i.find(bO);if(o&&o!==Wte(i))throw new n.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class N8{segmentGroup;processChildren;index;constructor(r,e,i){this.segmentGroup=r,this.processChildren=e,this.index=i}}function ane(t,r,e){if(t??=new au([],{}),0===t.segments.length&&t.hasChildren())return CO(t,r,e);const i=function D2e(t,r,e){let i=0,o=r;const s={match:!1,pathIndex:0,commandIndex:0};for(;o<t.segments.length;){if(i>=e.length)return s;const a=t.segments[o],l=e[i];if(bO(l))break;const c=`${l}`,d=i<e.length-1?e[i+1]:null;if(o>0&&void 0===c)break;if(c&&d&&"object"==typeof d&&void 0===d.outlets){if(!cne(c,d,a))return s;i+=2}else{if(!cne(c,{},a))return s;i++}o++}return{match:!0,pathIndex:o,commandIndex:i}}(t,r,e),o=e.slice(i.commandIndex);if(i.match&&i.pathIndex<t.segments.length){const s=new au(t.segments.slice(0,i.pathIndex),{});return s.children[za]=new au(t.segments.slice(i.pathIndex),t.children),CO(s,0,o)}return i.match&&0===o.length?new au(t.segments,{}):i.match&&!t.hasChildren()?fY(t,r,e):i.match?CO(t,0,o):fY(t,r,e)}function CO(t,r,e){if(0===e.length)return new au(t.segments,{});{const i=function E2e(t){return bO(t[0])?t[0].outlets:{[za]:t}}(e),o={};if(Object.keys(i).some(s=>s!==za)&&t.children[za]&&1===t.numberOfChildren&&0===t.children[za].segments.length){const s=CO(t.children[za],r,e);return new au(t.segments,s.children)}return Object.entries(i).forEach(([s,a])=>{"string"==typeof a&&(a=[a]),null!==a&&(o[s]=ane(t.children[s],r,a))}),Object.entries(t.children).forEach(([s,a])=>{void 0===i[s]&&(o[s]=a)}),new au(t.segments,o)}}function fY(t,r,e){const i=t.segments.slice(0,r);let o=0;for(;o<e.length;){const s=e[o];if(bO(s)){const c=k2e(s.outlets);return new au(i,c)}if(0===o&&L8(e[0])){i.push(new _O(t.segments[r].path,lne(e[0]))),o++;continue}const a=bO(s)?s.outlets[za]:`${s}`,l=o<e.length-1?e[o+1]:null;a&&l&&L8(l)?(i.push(new _O(a,lne(l))),o+=2):(i.push(new _O(a,{})),o++)}return new au(i,{})}function k2e(t){const r={};return Object.entries(t).forEach(([e,i])=>{"string"==typeof i&&(i=[i]),null!==i&&(r[e]=fY(new au([],{}),0,i))}),r}function lne(t){const r={};return Object.entries(t).forEach(([e,i])=>r[e]=`${i}`),r}function cne(t,r,e){return t==e.path&&ky(r,e.parameters)}const wO="imperative";var Vl=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(Vl||{});class Iy{id;url;constructor(r,e){this.id=r,this.url=e}}class G8 extends Iy{type=Vl.NavigationStart;navigationTrigger;restoredState;constructor(r,e,i="imperative",o=null){super(r,e),this.navigationTrigger=i,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Ab extends Iy{urlAfterRedirects;type=Vl.NavigationEnd;constructor(r,e,i){super(r,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var _g=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(_g||{}),B8=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(B8||{});class Gx extends Iy{reason;code;type=Vl.NavigationCancel;constructor(r,e,i,o){super(r,e),this.reason=i,this.code=o}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class fk extends Iy{reason;code;type=Vl.NavigationSkipped;constructor(r,e,i,o){super(r,e),this.reason=i,this.code=o}}class mY extends Iy{error;target;type=Vl.NavigationError;constructor(r,e,i,o){super(r,e),this.error=i,this.target=o}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class une extends Iy{urlAfterRedirects;state;type=Vl.RoutesRecognized;constructor(r,e,i,o){super(r,e),this.urlAfterRedirects=i,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class I2e extends Iy{urlAfterRedirects;state;type=Vl.GuardsCheckStart;constructor(r,e,i,o){super(r,e),this.urlAfterRedirects=i,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class A2e extends Iy{urlAfterRedirects;state;shouldActivate;type=Vl.GuardsCheckEnd;constructor(r,e,i,o,s){super(r,e),this.urlAfterRedirects=i,this.state=o,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class M2e extends Iy{urlAfterRedirects;state;type=Vl.ResolveStart;constructor(r,e,i,o){super(r,e),this.urlAfterRedirects=i,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class R2e extends Iy{urlAfterRedirects;state;type=Vl.ResolveEnd;constructor(r,e,i,o){super(r,e),this.urlAfterRedirects=i,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class O2e{route;type=Vl.RouteConfigLoadStart;constructor(r){this.route=r}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class F2e{route;type=Vl.RouteConfigLoadEnd;constructor(r){this.route=r}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class P2e{snapshot;type=Vl.ChildActivationStart;constructor(r){this.snapshot=r}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class L2e{snapshot;type=Vl.ChildActivationEnd;constructor(r){this.snapshot=r}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class N2e{snapshot;type=Vl.ActivationStart;constructor(r){this.snapshot=r}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class G2e{snapshot;type=Vl.ActivationEnd;constructor(r){this.snapshot=r}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class dne{routerEvent;position;anchor;type=Vl.Scroll;constructor(r,e,i){this.routerEvent=r,this.position=e,this.anchor=i}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class gY{}class V8{url;navigationBehaviorOptions;constructor(r,e){this.url=r,this.navigationBehaviorOptions=e}}function q_(t){return t.outlet||za}function TO(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let r=t.parent;r;r=r.parent){const e=r.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class $2e{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return TO(this.route?.snapshot)??this.rootInjector}constructor(r){this.rootInjector=r,this.children=new SO(this.rootInjector)}}let SO=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,i){const o=this.getOrCreateContext(e);o.outlet=i,this.contexts.set(e,o)}onChildOutletDestroyed(e){const i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new $2e(this.rootInjector),this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(i){return new(i||t)(n.KVO(n.uvJ))};static \u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class pne{_root;constructor(r){this._root=r}get root(){return this._root.value}parent(r){const e=this.pathFromRoot(r);return e.length>1?e[e.length-2]:null}children(r){const e=vY(r,this._root);return e?e.children.map(i=>i.value):[]}firstChild(r){const e=vY(r,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(r){const e=_Y(r,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==r)}pathFromRoot(r){return _Y(r,this._root).map(e=>e.value)}}function vY(t,r){if(t===r.value)return r;for(const e of r.children){const i=vY(t,e);if(i)return i}return null}function _Y(t,r){if(t===r.value)return[r];for(const e of r.children){const i=_Y(t,e);if(i.length)return i.unshift(r),i}return[]}class X_{value;children;constructor(r,e){this.value=r,this.children=e}toString(){return`TreeNode(${this.value})`}}function mk(t){const r={};return t&&t.children.forEach(e=>r[e.value.outlet]=e),r}class hne extends pne{snapshot;constructor(r,e){super(r),this.snapshot=e,yY(this,r)}toString(){return this.snapshot.toString()}}function fne(t){const r=function Y2e(t){const s=new H8([],{},{},"",{},za,t,null,{});return new mne("",new X_(s,[]))}(t),e=new gg.t([new _O("",{})]),i=new gg.t({}),o=new gg.t({}),s=new gg.t({}),a=new gg.t(""),l=new gk(e,i,s,a,o,za,t,r.root);return l.snapshot=r.root,new hne(new X_(l,[]),r)}class gk{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(r,e,i,o,s,a,l,c){this.urlSubject=r,this.paramsSubject=e,this.queryParamsSubject=i,this.fragmentSubject=o,this.dataSubject=s,this.outlet=a,this.component=l,this._futureSnapshot=c,this.title=this.dataSubject?.pipe((0,Os.T)(d=>d[vO]))??Fs(void 0),this.url=r,this.params=e,this.queryParams=i,this.fragment=o,this.data=s}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe((0,Os.T)(r=>pk(r))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe((0,Os.T)(r=>pk(r))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function j8(t,r,e="emptyOnly"){let i;const{routeConfig:o}=t;return i=null===r||"always"!==e&&""!==o?.path&&(r.component||r.routeConfig?.loadComponent)?{params:{...t.params},data:{...t.data},resolve:{...t.data,...t._resolvedData??{}}}:{params:{...r.params,...t.params},data:{...r.data,...t.data},resolve:{...t.data,...r.data,...o?.data,...t._resolvedData}},o&&vne(o)&&(i.resolve[vO]=o.title),i}class H8{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[vO]}constructor(r,e,i,o,s,a,l,c,d){this.url=r,this.params=e,this.queryParams=i,this.fragment=o,this.data=s,this.outlet=a,this.component=l,this.routeConfig=c,this._resolve=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=pk(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=pk(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class mne extends pne{url;constructor(r,e){super(e),this.url=r,yY(this,e)}toString(){return gne(this._root)}}function yY(t,r){r.value._routerState=t,r.children.forEach(e=>yY(t,e))}function gne(t){const r=t.children.length>0?` { ${t.children.map(gne).join(", ")} } `:"";return`${t.value}${r}`}function bY(t){if(t.snapshot){const r=t.snapshot,e=t._futureSnapshot;t.snapshot=e,ky(r.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),r.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),ky(r.params,e.params)||t.paramsSubject.next(e.params),function i2e(t,r){if(t.length!==r.length)return!1;for(let e=0;e<t.length;++e)if(!ky(t[e],r[e]))return!1;return!0}(r.url,e.url)||t.urlSubject.next(e.url),ky(r.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function CY(t,r){const e=ky(t.params,r.params)&&function a2e(t,r){return Lx(t,r)&&t.every((e,i)=>ky(e.parameters,r[i].parameters))}(t.url,r.url);return e&&!(!t.parent!=!r.parent)&&(!t.parent||CY(t.parent,r.parent))}function vne(t){return"string"==typeof t.title||null===t.title}const W2e=new n.nKC("");let _ne=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=za;activateEvents=new n.bkB;deactivateEvents=new n.bkB;attachEvents=new n.bkB;detachEvents=new n.bkB;routerOutletData=(0,n.hFB)(void 0);parentContexts=(0,n.WQX)(SO);location=(0,n.WQX)(n.c1b);changeDetector=(0,n.WQX)(n.gRc);inputBinder=(0,n.WQX)(U8,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){const{firstChange:i,previousValue:o}=e.name;if(i)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new n.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new n.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new n.wOt(4012,!1);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new n.wOt(4013,!1);this._activatedRoute=e;const o=this.location,a=e.snapshot.component,l=this.parentContexts.getOrCreateContext(this.name).children,c=new wY(e,l,o.injector,this.routerOutletData);this.activated=o.createComponent(a,{index:o.length,injector:c,environmentInjector:i}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=n.FsC({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[n.OA$]})}return t})();class wY{route;childContexts;parent;outletData;__ngOutletInjector(r){return new wY(this.route,this.childContexts,r,this.outletData)}constructor(r,e,i,o){this.route=r,this.childContexts=e,this.parent=i,this.outletData=o}get(r,e){return r===gk?this.route:r===SO?this.childContexts:r===W2e?this.outletData:this.parent.get(r,e)}}const U8=new n.nKC("");let yne=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){const{activatedRoute:i}=e,o=aY([i.queryParams,i.params,i.data]).pipe(qd(([s,a,l],c)=>(l={...s,...a,...l},0===c?Fs(l):Promise.resolve(l)))).subscribe(s=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||null===i.component)return void this.unsubscribeFromRouteData(e);const a=(0,n.HJs)(i.component);if(a)for(const{templateName:l}of a.inputs)e.activatedComponentRef.setInput(l,s[l]);else this.unsubscribeFromRouteData(e)});this.outletDataSubscriptions.set(e,o)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();function xO(t,r,e){if(e&&t.shouldReuseRoute(r.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=r.value;const o=function q2e(t,r,e){return r.children.map(i=>{for(const o of e.children)if(t.shouldReuseRoute(i.value,o.value.snapshot))return xO(t,i,o);return xO(t,i)})}(t,r,e);return new X_(i,o)}{if(t.shouldAttach(r.value)){const s=t.retrieve(r.value);if(null!==s){const a=s.route;return a.value._futureSnapshot=r.value,a.children=r.children.map(l=>xO(t,l)),a}}const i=function X2e(t){return new gk(new gg.t(t.url),new gg.t(t.params),new gg.t(t.queryParams),new gg.t(t.fragment),new gg.t(t.data),t.outlet,t.component,t)}(r.value),o=r.children.map(s=>xO(t,s));return new X_(i,o)}}class TY{redirectTo;navigationBehaviorOptions;constructor(r,e){this.redirectTo=r,this.navigationBehaviorOptions=e}}const bne="ngNavigationCancelingError";function $8(t,r){const{redirectTo:e,navigationBehaviorOptions:i}=Nx(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,o=Cne(!1,_g.Redirect);return o.url=e,o.navigationBehaviorOptions=i,o}function Cne(t,r){const e=new Error(`NavigationCancelingError: ${t||""}`);return e[bne]=!0,e.cancellationCode=r,e}function wne(t){return!!t&&t[bne]}class J2e{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(r,e,i,o,s){this.routeReuseStrategy=r,this.futureState=e,this.currState=i,this.forwardEvent=o,this.inputBindingEnabled=s}activate(r){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,r),bY(this.futureState.root),this.activateChildRoutes(e,i,r)}deactivateChildRoutes(r,e,i){const o=mk(e);r.children.forEach(s=>{const a=s.value.outlet;this.deactivateRoutes(s,o[a],i),delete o[a]}),Object.values(o).forEach(s=>{this.deactivateRouteAndItsChildren(s,i)})}deactivateRoutes(r,e,i){const o=r.value,s=e?e.value:null;if(o===s)if(o.component){const a=i.getContext(o.outlet);a&&this.deactivateChildRoutes(r,e,a.children)}else this.deactivateChildRoutes(r,e,i);else s&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(r,e){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,e):this.deactivateRouteAndOutlet(r,e)}detachAndStoreRouteSubtree(r,e){const i=e.getContext(r.value.outlet),o=i&&r.value.component?i.children:e,s=mk(r);for(const a of Object.values(s))this.deactivateRouteAndItsChildren(a,o);if(i&&i.outlet){const a=i.outlet.detach(),l=i.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:a,route:r,contexts:l})}}deactivateRouteAndOutlet(r,e){const i=e.getContext(r.value.outlet),o=i&&r.value.component?i.children:e,s=mk(r);for(const a of Object.values(s))this.deactivateRouteAndItsChildren(a,o);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(r,e,i){const o=mk(e);r.children.forEach(s=>{this.activateRoutes(s,o[s.value.outlet],i),this.forwardEvent(new G2e(s.value.snapshot))}),r.children.length&&this.forwardEvent(new L2e(r.value.snapshot))}activateRoutes(r,e,i){const o=r.value,s=e?e.value:null;if(bY(o),o===s)if(o.component){const a=i.getOrCreateContext(o.outlet);this.activateChildRoutes(r,e,a.children)}else this.activateChildRoutes(r,e,i);else if(o.component){const a=i.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const l=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),a.children.onOutletReAttached(l.contexts),a.attachRef=l.componentRef,a.route=l.route.value,a.outlet&&a.outlet.attach(l.componentRef,l.route.value),bY(l.route.value),this.activateChildRoutes(r,null,a.children)}else a.attachRef=null,a.route=o,a.outlet&&a.outlet.activateWith(o,a.injector),this.activateChildRoutes(r,null,a.children)}else this.activateChildRoutes(r,null,i)}}class Tne{path;route;constructor(r){this.path=r,this.route=this.path[this.path.length-1]}}class Y8{component;route;constructor(r,e){this.component=r,this.route=e}}function Z2e(t,r,e){const i=t._root;return EO(i,r?r._root:null,e,[i.value])}function vk(t,r){const e=Symbol(),i=r.get(t,e);return i===e?"function"!=typeof t||(0,n.LfX)(t)?r.get(t):t:i}function EO(t,r,e,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const s=mk(r);return t.children.forEach(a=>{(function tEe(t,r,e,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const s=t.value,a=r?r.value:null,l=e?e.getContext(t.value.outlet):null;if(a&&s.routeConfig===a.routeConfig){const c=function nEe(t,r,e){if("function"==typeof e)return e(t,r);switch(e){case"pathParamsChange":return!Lx(t.url,r.url);case"pathParamsOrQueryParamsChange":return!Lx(t.url,r.url)||!ky(t.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!CY(t,r)||!ky(t.queryParams,r.queryParams);default:return!CY(t,r)}}(a,s,s.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new Tne(i)):(s.data=a.data,s._resolvedData=a._resolvedData),EO(t,r,s.component?l?l.children:null:e,i,o),c&&l&&l.outlet&&l.outlet.isActivated&&o.canDeactivateChecks.push(new Y8(l.outlet.component,a))}else a&&DO(r,l,o),o.canActivateChecks.push(new Tne(i)),EO(t,null,s.component?l?l.children:null:e,i,o)})(a,s[a.value.outlet],e,i.concat([a.value]),o),delete s[a.value.outlet]}),Object.entries(s).forEach(([a,l])=>DO(l,e.getContext(a),o)),o}function DO(t,r,e){const i=mk(t),o=t.value;Object.entries(i).forEach(([s,a])=>{DO(a,o.component?r?r.children.getContext(s):null:r,e)}),e.canDeactivateChecks.push(new Y8(o.component&&r&&r.outlet&&r.outlet.isActivated?r.outlet.component:null,o))}function kO(t){return"function"==typeof t}function Sne(t){return t instanceof ck||"EmptyError"===t?.name}const W8=Symbol("INITIAL_VALUE");function _k(){return qd(t=>aY(t.map(r=>r.pipe(uk(1),WU(W8)))).pipe((0,Os.T)(r=>{for(const e of r)if(!0!==e){if(e===W8)return W8;if(!1===e||cEe(e))return e}return!0}),U_(r=>r!==W8),uk(1)))}function cEe(t){return Nx(t)||t instanceof TY}function xne(t){return(0,Qxe.F)(eh(r=>{if("boolean"!=typeof r)throw $8(0,r)}),(0,Os.T)(r=>!0===r))}class SY{segmentGroup;constructor(r){this.segmentGroup=r||null}}class z8 extends Error{urlTree;constructor(r){super(),this.urlTree=r}}function yk(t){return A8(new SY(t))}class wEe{urlSerializer;urlTree;constructor(r,e){this.urlSerializer=r,this.urlTree=e}lineralizeSegments(r,e){let i=[],o=e.root;for(;;){if(i=i.concat(o.segments),0===o.numberOfChildren)return Fs(i);if(o.numberOfChildren>1||!o.children[za])return A8(new n.wOt(4e3,!1));o=o.children[za]}}applyRedirectCommands(r,e,i,o,s){if("string"!=typeof e){const l=e,{queryParams:c,fragment:d,routeConfig:f,url:v,outlet:w,params:x,data:I,title:M}=o,F=(0,n.N4e)(s,()=>l({params:x,data:I,queryParams:c,fragment:d,routeConfig:f,url:v,outlet:w,title:M}));if(F instanceof Px)throw new z8(F);e=F}const a=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),r,i);if("/"===e[0])throw new z8(a);return a}applyRedirectCreateUrlTree(r,e,i,o){const s=this.createSegmentGroup(r,e.root,i,o);return new Px(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(r,e){const i={};return Object.entries(r).forEach(([o,s])=>{if("string"==typeof s&&":"===s[0]){const l=s.substring(1);i[o]=e[l]}else i[o]=s}),i}createSegmentGroup(r,e,i,o){const s=this.createSegments(r,e.segments,i,o);let a={};return Object.entries(e.children).forEach(([l,c])=>{a[l]=this.createSegmentGroup(r,c,i,o)}),new au(s,a)}createSegments(r,e,i,o){return e.map(s=>":"===s.path[0]?this.findPosParam(r,s,o):this.findOrReturn(s,i))}findPosParam(r,e,i){const o=i[e.path.substring(1)];if(!o)throw new n.wOt(4001,!1);return o}findOrReturn(r,e){let i=0;for(const o of e){if(o.path===r.path)return e.splice(i),o;i++}return r}}const xY={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function TEe(t,r,e,i,o){const s=Ene(t,r,e);return s.matched?(i=function B2e(t,r){return t.providers&&!t._injector&&(t._injector=(0,n.Ol2)(t.providers,r,`Route: ${t.path}`)),t._injector??r}(r,i),function yEe(t,r,e,i){const o=r.canMatch;return o&&0!==o.length?Fs(o.map(a=>{const l=vk(a,t);return zw(function lEe(t){return t&&kO(t.canMatch)}(l)?l.canMatch(r,e):(0,n.N4e)(t,()=>l(r,e)))})).pipe(_k(),xne()):Fs(!0)}(i,r,e).pipe((0,Os.T)(a=>!0===a?s:{...xY}))):Fs(s)}function Ene(t,r,e){if("**"===r.path)return function SEe(t){return{matched:!0,parameters:t.length>0?Wte(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}(e);if(""===r.path)return"full"===r.pathMatch&&(t.hasChildren()||e.length>0)?{...xY}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const o=(r.matcher||n2e)(e,t,r);if(!o)return{...xY};const s={};Object.entries(o.posParams??{}).forEach(([l,c])=>{s[l]=c.path});const a=o.consumed.length>0?{...s,...o.consumed[o.consumed.length-1].parameters}:s;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:a,positionalParamSegments:o.posParams??{}}}function Dne(t,r,e,i){return e.length>0&&function DEe(t,r,e){return e.some(i=>q8(t,r,i)&&q_(i)!==za)}(t,e,i)?{segmentGroup:new au(r,EEe(i,new au(e,t.children))),slicedSegments:[]}:0===e.length&&function kEe(t,r,e){return e.some(i=>q8(t,r,i))}(t,e,i)?{segmentGroup:new au(t.segments,xEe(t,e,i,t.children)),slicedSegments:e}:{segmentGroup:new au(t.segments,t.children),slicedSegments:e}}function xEe(t,r,e,i){const o={};for(const s of e)if(q8(t,r,s)&&!i[q_(s)]){const a=new au([],{});o[q_(s)]=a}return{...i,...o}}function EEe(t,r){const e={};e[za]=r;for(const i of t)if(""===i.path&&q_(i)!==za){const o=new au([],{});e[q_(i)]=o}return e}function q8(t,r,e){return(!(t.hasChildren()||r.length>0)||"full"!==e.pathMatch)&&""===e.path}class AEe{}class OEe{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(r,e,i,o,s,a,l){this.injector=r,this.configLoader=e,this.rootComponentType=i,this.config=o,this.urlTree=s,this.paramsInheritanceStrategy=a,this.urlSerializer=l,this.applyRedirects=new wEe(this.urlSerializer,this.urlTree)}noMatchError(r){return new n.wOt(4002,`'${r.segmentGroup}'`)}recognize(){const r=Dne(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(r).pipe((0,Os.T)(({children:e,rootSnapshot:i})=>{const o=new X_(i,e),s=new mne("",o),a=function w2e(t,r,e=null,i=null){return rne(ine(t),r,e,i)}(i,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(a),{state:s,tree:a}}))}match(r){const e=new H8([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Object.freeze({}),za,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,r,za,e).pipe((0,Os.T)(i=>({children:i,rootSnapshot:e})),Fx(i=>{if(i instanceof z8)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof SY?this.noMatchError(i):i}))}processSegmentGroup(r,e,i,o,s){return 0===i.segments.length&&i.hasChildren()?this.processChildren(r,e,i,s):this.processSegment(r,e,i,i.segments,o,!0,s).pipe((0,Os.T)(a=>a instanceof X_?[a]:[]))}processChildren(r,e,i,o){const s=[];for(const a of Object.keys(i.children))"primary"===a?s.unshift(a):s.push(a);return Pc(s).pipe(XD(a=>{const l=i.children[a],c=function U2e(t,r){const e=t.filter(i=>q_(i)===r);return e.push(...t.filter(i=>q_(i)!==r)),e}(e,a);return this.processSegmentGroup(r,c,l,a,o)}),function Zxe(t,r){return(0,zd.N)(function Jxe(t,r,e,i,o){return(s,a)=>{let l=e,c=r,d=0;s.subscribe((0,Dd._)(a,f=>{const v=d++;c=l?t(c,f,v):(l=!0,f),i&&a.next(c)},o&&(()=>{l&&a.next(c),a.complete()})))}}(t,r,arguments.length>=2,!0))}((a,l)=>(a.push(...l),a)),T8(null),function e2e(t,r){const e=arguments.length>=2;return i=>i.pipe(t?U_((o,s)=>t(o,s,i)):vx.D,cY(1),e?T8(r):mte(()=>new ck))}(),Ih(a=>{if(null===a)return yk(i);const l=kne(a);return function FEe(t){t.sort((r,e)=>r.value.outlet===za?-1:e.value.outlet===za?1:r.value.outlet.localeCompare(e.value.outlet))}(l),Fs(l)}))}processSegment(r,e,i,o,s,a,l){return Pc(e).pipe(XD(c=>this.processSegmentAgainstRoute(c._injector??r,e,c,i,o,s,a,l).pipe(Fx(d=>{if(d instanceof SY)return Fs(null);throw d}))),Uw(c=>!!c),Fx(c=>{if(Sne(c))return function IEe(t,r,e){return 0===r.length&&!t.children[e]}(i,o,s)?Fs(new AEe):yk(i);throw c}))}processSegmentAgainstRoute(r,e,i,o,s,a,l,c){return q_(i)===a||a!==za&&q8(o,s,i)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(r,o,i,s,a,c):this.allowRedirects&&l?this.expandSegmentAgainstRouteUsingRedirect(r,o,e,i,s,a,c):yk(o):yk(o)}expandSegmentAgainstRouteUsingRedirect(r,e,i,o,s,a,l){const{matched:c,parameters:d,consumedSegments:f,positionalParamSegments:v,remainingSegments:w}=Ene(e,o,s);if(!c)return yk(e);"string"==typeof o.redirectTo&&"/"===o.redirectTo[0]&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const x=new H8(s,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Ine(o),q_(o),o.component??o._loadedComponent??null,o,Ane(o)),I=j8(x,l,this.paramsInheritanceStrategy);x.params=Object.freeze(I.params),x.data=Object.freeze(I.data);const M=this.applyRedirects.applyRedirectCommands(f,o.redirectTo,v,x,r);return this.applyRedirects.lineralizeSegments(o,M).pipe(Ih(F=>this.processSegment(r,i,e,F.concat(w),a,!1,l)))}matchSegmentAgainstRoute(r,e,i,o,s,a){const l=TEe(e,i,o,r);return"**"===i.path&&(e.children={}),l.pipe(qd(c=>c.matched?this.getChildConfig(r=i._injector??r,i,o).pipe(qd(({routes:d})=>{const f=i._loadedInjector??r,{parameters:v,consumedSegments:w,remainingSegments:x}=c,I=new H8(w,v,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Ine(i),q_(i),i.component??i._loadedComponent??null,i,Ane(i)),M=j8(I,a,this.paramsInheritanceStrategy);I.params=Object.freeze(M.params),I.data=Object.freeze(M.data);const{segmentGroup:F,slicedSegments:re}=Dne(e,w,x,d);if(0===re.length&&F.hasChildren())return this.processChildren(f,d,F,I).pipe((0,Os.T)(we=>new X_(I,we)));if(0===d.length&&0===re.length)return Fs(new X_(I,[]));const pe=q_(i)===s;return this.processSegment(f,d,F,re,pe?za:s,!0,I).pipe((0,Os.T)(we=>new X_(I,we instanceof X_?[we]:[])))})):yk(e)))}getChildConfig(r,e,i){return e.children?Fs({routes:e.children,injector:r}):e.loadChildren?void 0!==e._loadedRoutes?Fs({routes:e._loadedRoutes,injector:e._loadedInjector}):function _Ee(t,r,e,i){const o=r.canLoad;return void 0===o||0===o.length?Fs(!0):Fs(o.map(a=>{const l=vk(a,t);return zw(function rEe(t){return t&&kO(t.canLoad)}(l)?l.canLoad(r,e):(0,n.N4e)(t,()=>l(r,e)))})).pipe(_k(),xne())}(r,e,i).pipe(Ih(o=>o?this.configLoader.loadChildren(r,e).pipe(eh(s=>{e._loadedRoutes=s.routes,e._loadedInjector=s.injector})):function CEe(){return A8(Cne(!1,_g.GuardRejected))}())):Fs({routes:[],injector:r})}}function PEe(t){const r=t.value.routeConfig;return r&&""===r.path}function kne(t){const r=[],e=new Set;for(const i of t){if(!PEe(i)){r.push(i);continue}const o=r.find(s=>i.value.routeConfig===s.value.routeConfig);void 0!==o?(o.children.push(...i.children),e.add(o)):r.push(i)}for(const i of e){const o=kne(i.children);r.push(new X_(i.value,o))}return r.filter(i=>!e.has(i))}function Ine(t){return t.data||{}}function Ane(t){return t.resolve||{}}function Mne(t){const r=t.children.map(e=>Mne(e)).flat();return[t,...r]}function EY(t){return qd(r=>{const e=t(r);return e?Pc(e).pipe((0,Os.T)(()=>r)):Fs(r)})}let Rne=(()=>{class t{buildTitle(e){let i,o=e.root;for(;void 0!==o;)i=this.getResolvedTitleForRoute(o)??i,o=o.children.find(s=>s.outlet===za);return i}getResolvedTitleForRoute(e){return e.data[vO]}static \u0275fac=function(i){return new(i||t)};static \u0275prov=n.jDH({token:t,factory:()=>(0,n.WQX)(jEe),providedIn:"root"})}return t})(),jEe=(()=>{class t extends Rne{title;constructor(e){super(),this.title=e}updateTitle(e){const i=this.buildTitle(e);void 0!==i&&this.title.setTitle(i)}static \u0275fac=function(i){return new(i||t)(n.KVO(cm))};static \u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const bk=new n.nKC("",{providedIn:"root",factory:()=>({})});let One=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=n.VBU({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(i,o){1&i&&n.nrm(0,"router-outlet")},dependencies:[_ne],encapsulation:2})}return t})();function DY(t){const r=t.children&&t.children.map(DY),e=r?{...t,children:r}:{...t};return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==za&&(e.component=One),e}const Ck=new n.nKC("");let kY=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=(0,n.WQX)(n.Ql9);loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return Fs(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=zw(e.loadComponent()).pipe((0,Os.T)(Fne),eh(s=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=s}),JR(()=>{this.componentLoaders.delete(e)})),o=new $te(i,()=>new K.B).pipe(lY());return this.componentLoaders.set(e,o),o}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return Fs({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const s=function HEe(t,r,e,i){return zw(t.loadChildren()).pipe((0,Os.T)(Fne),Ih(o=>o instanceof n.Co$||Array.isArray(o)?Fs(o):Pc(r.compileModuleAsync(o))),(0,Os.T)(o=>{i&&i(t);let s,a,l=!1;return Array.isArray(o)?(a=o,!0):(s=o.create(e).injector,a=s.get(Ck,[],{optional:!0,self:!0}).flat()),{routes:a.map(DY),injector:s}}))}(i,this.compiler,e,this.onLoadEndListener).pipe(JR(()=>{this.childrenLoaders.delete(i)})),a=new $te(s,()=>new K.B).pipe(lY());return this.childrenLoaders.set(i,a),a}static \u0275fac=function(i){return new(i||t)};static \u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Fne(t){return function UEe(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let IY=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=n.jDH({token:t,factory:()=>(0,n.WQX)($Ee),providedIn:"root"})}return t})(),$Ee=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}static \u0275fac=function(i){return new(i||t)};static \u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const Pne=new n.nKC(""),Lne=new n.nKC("");function YEe(t,r,e){const i=t.get(Lne),o=t.get(be);return t.get(n.SKi).runOutsideAngular(()=>{if(!o.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,new Promise(d=>setTimeout(d));let s;const a=new Promise(d=>{s=d}),l=o.startViewTransition(()=>(s(),function WEe(t){return new Promise(r=>{(0,n.mal)({read:()=>setTimeout(r)},{injector:t})})}(t))),{onViewTransitionCreated:c}=i;return c&&(0,n.N4e)(t,()=>c({transition:l,from:r,to:e})),a})}const AY=new n.nKC("");let X8=(()=>{class t{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new K.B;transitionAbortSubject=new K.B;configLoader=(0,n.WQX)(kY);environmentInjector=(0,n.WQX)(n.uvJ);urlSerializer=(0,n.WQX)(hk);rootContexts=(0,n.WQX)(SO);location=(0,n.WQX)(ye);inputBindingEnabled=null!==(0,n.WQX)(U8,{optional:!0});titleStrategy=(0,n.WQX)(Rne);options=(0,n.WQX)(bk,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=(0,n.WQX)(IY);createViewTransition=(0,n.WQX)(Pne,{optional:!0});navigationErrorHandler=(0,n.WQX)(AY,{optional:!0});navigationId=0;get hasRequestedNavigation(){return 0!==this.navigationId}transitions;afterPreactivation=()=>Fs(void 0);rootComponentType=null;constructor(){this.configLoader.onLoadEndListener=o=>this.events.next(new F2e(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new O2e(o))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const i=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:i})}setupNavigations(e,i,o){return this.transitions=new gg.t({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:wO,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(U_(s=>0!==s.id),(0,Os.T)(s=>({...s,extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),qd(s=>{let a=!1,l=!1;return Fs(s).pipe(qd(c=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",_g.SupersededByNewNavigation),W_;this.currentTransition=s,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,targetBrowserUrl:"string"==typeof c.extras.browserUrl?this.urlSerializer.parse(c.extras.browserUrl):c.extras.browserUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const d=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!d&&"reload"!==(c.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const v="";return this.events.next(new fk(c.id,this.urlSerializer.serialize(c.rawUrl),v,B8.IgnoredSameUrlNavigation)),c.resolve(!1),W_}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return Fs(c).pipe(qd(v=>{const w=this.transitions?.getValue();return this.events.next(new G8(v.id,this.urlSerializer.serialize(v.extractedUrl),v.source,v.restoredState)),w!==this.transitions?.getValue()?W_:Promise.resolve(v)}),function LEe(t,r,e,i,o,s){return Ih(a=>function MEe(t,r,e,i,o,s,a="emptyOnly"){return new OEe(t,r,e,i,o,a,s).recognize()}(t,r,e,i,a.extractedUrl,o,s).pipe((0,Os.T)(({state:l,tree:c})=>({...a,targetSnapshot:l,urlAfterRedirects:c}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),eh(v=>{s.targetSnapshot=v.targetSnapshot,s.urlAfterRedirects=v.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:v.urlAfterRedirects};const w=new une(v.id,this.urlSerializer.serialize(v.extractedUrl),this.urlSerializer.serialize(v.urlAfterRedirects),v.targetSnapshot);this.events.next(w)}));if(d&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){const{id:v,extractedUrl:w,source:x,restoredState:I,extras:M}=c,F=new G8(v,this.urlSerializer.serialize(w),x,I);this.events.next(F);const re=fne(this.rootComponentType).snapshot;return this.currentTransition=s={...c,targetSnapshot:re,urlAfterRedirects:w,extras:{...M,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=w,Fs(s)}{const v="";return this.events.next(new fk(c.id,this.urlSerializer.serialize(c.extractedUrl),v,B8.IgnoredByUrlHandlingStrategy)),c.resolve(!1),W_}}),eh(c=>{const d=new I2e(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}),(0,Os.T)(c=>(this.currentTransition=s={...c,guards:Z2e(c.targetSnapshot,c.currentSnapshot,this.rootContexts)},s)),function uEe(t,r){return Ih(e=>{const{targetSnapshot:i,currentSnapshot:o,guards:{canActivateChecks:s,canDeactivateChecks:a}}=e;return 0===a.length&&0===s.length?Fs({...e,guardsResult:!0}):function dEe(t,r,e,i){return Pc(t).pipe(Ih(o=>function vEe(t,r,e,i,o){const s=r&&r.routeConfig?r.routeConfig.canDeactivate:null;return s&&0!==s.length?Fs(s.map(l=>{const c=TO(r)??o,d=vk(l,c);return zw(function aEe(t){return t&&kO(t.canDeactivate)}(d)?d.canDeactivate(t,r,e,i):(0,n.N4e)(c,()=>d(t,r,e,i))).pipe(Uw())})).pipe(_k()):Fs(!0)}(o.component,o.route,e,r,i)),Uw(o=>!0!==o,!0))}(a,i,o,t).pipe(Ih(l=>l&&function iEe(t){return"boolean"==typeof t}(l)?function pEe(t,r,e,i){return Pc(r).pipe(XD(o=>YU(function fEe(t,r){return null!==t&&r&&r(new P2e(t)),Fs(!0)}(o.route.parent,i),function hEe(t,r){return null!==t&&r&&r(new N2e(t)),Fs(!0)}(o.route,i),function gEe(t,r,e){const i=r[r.length-1],s=r.slice(0,r.length-1).reverse().map(a=>function eEe(t){const r=t.routeConfig?t.routeConfig.canActivateChild:null;return r&&0!==r.length?{node:t,guards:r}:null}(a)).filter(a=>null!==a).map(a=>G$(()=>Fs(a.guards.map(c=>{const d=TO(a.node)??e,f=vk(c,d);return zw(function sEe(t){return t&&kO(t.canActivateChild)}(f)?f.canActivateChild(i,t):(0,n.N4e)(d,()=>f(i,t))).pipe(Uw())})).pipe(_k())));return Fs(s).pipe(_k())}(t,o.path,e),function mEe(t,r,e){const i=r.routeConfig?r.routeConfig.canActivate:null;if(!i||0===i.length)return Fs(!0);const o=i.map(s=>G$(()=>{const a=TO(r)??e,l=vk(s,a);return zw(function oEe(t){return t&&kO(t.canActivate)}(l)?l.canActivate(r,t):(0,n.N4e)(a,()=>l(r,t))).pipe(Uw())}));return Fs(o).pipe(_k())}(t,o.route,e))),Uw(o=>!0!==o,!0))}(i,s,t,r):Fs(l)),(0,Os.T)(l=>({...e,guardsResult:l})))})}(this.environmentInjector,c=>this.events.next(c)),eh(c=>{if(s.guardsResult=c.guardsResult,c.guardsResult&&"boolean"!=typeof c.guardsResult)throw $8(0,c.guardsResult);const d=new A2e(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(d)}),U_(c=>!!c.guardsResult||(this.cancelNavigationTransition(c,"",_g.GuardRejected),!1)),EY(c=>{if(c.guards.canActivateChecks.length)return Fs(c).pipe(eh(d=>{const f=new M2e(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(f)}),qd(d=>{let f=!1;return Fs(d).pipe(function NEe(t,r){return Ih(e=>{const{targetSnapshot:i,guards:{canActivateChecks:o}}=e;if(!o.length)return Fs(e);const s=new Set(o.map(c=>c.route)),a=new Set;for(const c of s)if(!a.has(c))for(const d of Mne(c))a.add(d);let l=0;return Pc(a).pipe(XD(c=>s.has(c)?function GEe(t,r,e,i){const o=t.routeConfig,s=t._resolve;return void 0!==o?.title&&!vne(o)&&(s[vO]=o.title),function BEe(t,r,e,i){const o=uY(t);if(0===o.length)return Fs({});const s={};return Pc(o).pipe(Ih(a=>function VEe(t,r,e,i){const o=TO(r)??i,s=vk(t,o);return zw(s.resolve?s.resolve(r,e):(0,n.N4e)(o,()=>s(r,e)))}(t[a],r,e,i).pipe(Uw(),eh(l=>{if(l instanceof TY)throw $8(new R8,l);s[a]=l}))),cY(1),fte(s),Fx(a=>Sne(a)?W_:A8(a)))}(s,t,r,i).pipe((0,Os.T)(a=>(t._resolvedData=a,t.data=j8(t,t.parent,e).resolve,null)))}(c,i,t,r):(c.data=j8(c,c.parent,t).resolve,Fs(void 0))),eh(()=>l++),cY(1),Ih(c=>l===a.size?Fs(e):W_))})}(this.paramsInheritanceStrategy,this.environmentInjector),eh({next:()=>f=!0,complete:()=>{f||this.cancelNavigationTransition(d,"",_g.NoDataFromResolver)}}))}),eh(d=>{const f=new R2e(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(f)}))}),EY(c=>{const d=f=>{const v=[];f.routeConfig?.loadComponent&&!f.routeConfig._loadedComponent&&v.push(this.configLoader.loadComponent(f.routeConfig).pipe(eh(w=>{f.component=w}),(0,Os.T)(()=>{})));for(const w of f.children)v.push(...d(w));return v};return aY(d(c.targetSnapshot.root)).pipe(T8(null),uk(1))}),EY(()=>this.afterPreactivation()),qd(()=>{const{currentSnapshot:c,targetSnapshot:d}=s,f=this.createViewTransition?.(this.environmentInjector,c.root,d.root);return f?Pc(f).pipe((0,Os.T)(()=>s)):Fs(s)}),(0,Os.T)(c=>{const d=function z2e(t,r,e){const i=xO(t,r._root,e?e._root:void 0);return new hne(i,r)}(e.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=s={...c,targetRouterState:d},this.currentNavigation.targetRouterState=d,s}),eh(()=>{this.events.next(new gY)}),((t,r,e,i)=>(0,Os.T)(o=>(new J2e(r,o.targetRouterState,o.currentRouterState,e,i).activate(t),o)))(this.rootContexts,e.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),uk(1),eh({next:c=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Ab(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{a=!0}}),j$(this.transitionAbortSubject.pipe(eh(c=>{throw c}))),JR(()=>{!a&&!l&&this.cancelNavigationTransition(s,"",_g.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),Fx(c=>{if(l=!0,wne(c))this.events.next(new Gx(s.id,this.urlSerializer.serialize(s.extractedUrl),c.message,c.cancellationCode)),function K2e(t){return wne(t)&&Nx(t.url)}(c)?this.events.next(new V8(c.url,c.navigationBehaviorOptions)):s.resolve(!1);else{const d=new mY(s.id,this.urlSerializer.serialize(s.extractedUrl),c,s.targetSnapshot??void 0);try{const f=(0,n.N4e)(this.environmentInjector,()=>this.navigationErrorHandler?.(d));if(!(f instanceof TY))throw this.events.next(d),c;{const{message:v,cancellationCode:w}=$8(0,f);this.events.next(new Gx(s.id,this.urlSerializer.serialize(s.extractedUrl),v,w)),this.events.next(new V8(f.redirectTo,f.navigationBehaviorOptions))}}catch(f){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(f)}}return W_}))}))}cancelNavigationTransition(e,i,o){const s=new Gx(e.id,this.urlSerializer.serialize(e.extractedUrl),i,o);this.events.next(s),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){const e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),i=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==i?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(i){return new(i||t)};static \u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function zEe(t){return t!==wO}let qEe=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=n.jDH({token:t,factory:()=>(0,n.WQX)(KEe),providedIn:"root"})}return t})();class XEe{shouldDetach(r){return!1}store(r,e){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,e){return r.routeConfig===e.routeConfig}}let KEe=(()=>{class t extends XEe{static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Nne=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=n.jDH({token:t,factory:()=>(0,n.WQX)(QEe),providedIn:"root"})}return t})(),QEe=(()=>{class t extends Nne{location=(0,n.WQX)(ye);urlSerializer=(0,n.WQX)(hk);options=(0,n.WQX)(bk,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";urlHandlingStrategy=(0,n.WQX)(IY);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new Px;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}routerState=fne(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(i=>{"popstate"===i.type&&e(i.url,i.state)})}handleRouterEvent(e,i){if(e instanceof G8)this.stateMemento=this.createStateMemento();else if(e instanceof fk)this.rawUrlTree=i.initialUrl;else if(e instanceof une){if("eager"===this.urlUpdateStrategy&&!i.extras.skipLocationChange){const o=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(i.targetBrowserUrl??o,i)}}else e instanceof gY?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,"deferred"===this.urlUpdateStrategy&&!i.extras.skipLocationChange&&this.setBrowserUrl(i.targetBrowserUrl??this.rawUrlTree,i)):e instanceof Gx&&(e.code===_g.GuardRejected||e.code===_g.NoDataFromResolver)?this.restoreHistory(i):e instanceof mY?this.restoreHistory(i,!0):e instanceof Ab&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,i){const o=e instanceof Px?this.urlSerializer.serialize(e):e;if(this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl){const a={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId)};this.location.replaceState(o,"",a)}else{const s={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId+1)};this.location.go(o,"",s)}}restoreHistory(e,i=!1){if("computed"===this.canceledNavigationResolution){const s=this.currentPageId-this.browserPageId;0!==s?this.location.historyGo(s):this.currentUrlTree===e.finalUrl&&0===s&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var IO=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(IO||{});function Gne(t,r){t.events.pipe(U_(e=>e instanceof Ab||e instanceof Gx||e instanceof mY||e instanceof fk),(0,Os.T)(e=>e instanceof Ab||e instanceof fk?IO.COMPLETE:e instanceof Gx&&(e.code===_g.Redirect||e.code===_g.SupersededByNewNavigation)?IO.REDIRECTING:IO.FAILED),U_(e=>e!==IO.REDIRECTING),uk(1)).subscribe(()=>{r()})}const JEe={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ZEe={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Ay=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=(0,n.WQX)(n.H3F);stateManager=(0,n.WQX)(Nne);options=(0,n.WQX)(bk,{optional:!0})||{};pendingTasks=(0,n.WQX)(n.Ua0);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=(0,n.WQX)(X8);urlSerializer=(0,n.WQX)(hk);location=(0,n.WQX)(ye);urlHandlingStrategy=(0,n.WQX)(IY);_events=new K.B;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=(0,n.WQX)(qEe);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=(0,n.WQX)(Ck,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!(0,n.WQX)(U8,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new mx.yU;subscribeToNavigationEvents(){const e=this.navigationTransitions.events.subscribe(i=>{try{const o=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(null!==o&&null!==s)if(this.stateManager.handleRouterEvent(i,s),i instanceof Gx&&i.code!==_g.Redirect&&i.code!==_g.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof Ab)this.navigated=!0;else if(i instanceof V8){const a=i.navigationBehaviorOptions,l=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),c={browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||"eager"===this.urlUpdateStrategy||zEe(o.source),...a};this.scheduleNavigation(l,wO,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}(function tDe(t){return!(t instanceof gY||t instanceof V8)})(i)&&this._events.next(i)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),wO,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",i)},0)})}navigateToSyncWithBrowser(e,i,o){const s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){const c={...o};delete c.navigationId,delete c.\u0275routerPageId,0!==Object.keys(c).length&&(s.state=c)}const l=this.parseUrl(e);this.scheduleNavigation(l,i,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(DY),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,i={}){const{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:l,preserveFragment:c}=i,d=c?this.currentUrlTree.fragment:a;let v,f=null;switch(l??this.options.defaultQueryParamsHandling){case"merge":f={...this.currentUrlTree.queryParams,...s};break;case"preserve":f=this.currentUrlTree.queryParams;break;default:f=s||null}null!==f&&(f=this.removeEmptyProps(f));try{v=ine(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof e[0]||"/"!==e[0][0])&&(e=[]),v=this.currentUrlTree.root}return rne(v,e,f,d??null)}navigateByUrl(e,i={skipLocationChange:!1}){const o=Nx(e)?e:this.parseUrl(e),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,wO,null,i)}navigate(e,i={skipLocationChange:!1}){return function eDe(t){for(let r=0;r<t.length;r++)if(null==t[r])throw new n.wOt(4008,!1)}(e),this.navigateByUrl(this.createUrlTree(e,i),i)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,i){let o;if(o=!0===i?{...JEe}:!1===i?{...ZEe}:i,Nx(e))return qte(this.currentUrlTree,e,o);const s=this.parseUrl(e);return qte(this.currentUrlTree,s,o)}removeEmptyProps(e){return Object.entries(e).reduce((i,[o,s])=>(null!=s&&(i[o]=s),i),{})}scheduleNavigation(e,i,o,s,a){if(this.disposed)return Promise.resolve(!1);let l,c,d;a?(l=a.resolve,c=a.reject,d=a.promise):d=new Promise((v,w)=>{l=v,c=w});const f=this.pendingTasks.add();return Gne(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(f))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:s,resolve:l,reject:c,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(v=>Promise.reject(v))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),K8=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new K.B;constructor(e,i,o,s,a,l){this.router=e,this.route=i,this.tabIndexAttribute=o,this.renderer=s,this.el=a,this.locationStrategy=l;const c=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===c||"area"===c,this.isAnchorElement?this.subscription=e.events.subscribe(d=>{d instanceof Ab&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){null==e?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(this.routerLinkInput=Nx(e)||Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,i,o,s,a){const l=this.urlTree;return!!(null===l||this.isAnchorElement&&(0!==e||i||o||s||a||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(l,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const e=this.urlTree;this.href=null!==e&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;const i=null===this.href?null:(0,n.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(e,i){const o=this.renderer,s=this.el.nativeElement;null!==i?o.setAttribute(s,e,i):o.removeAttribute(s,e)}get urlTree(){return null===this.routerLinkInput?null:Nx(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(i){return new(i||t)(n.rXU(Ay),n.rXU(gk),n.kS0("tabindex"),n.rXU(n.sFG),n.rXU(n.aKT),n.rXU(We))};static \u0275dir=n.FsC({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,o){1&i&&n.bIt("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),2&i&&n.BMQ("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",n.L39],skipLocationChange:[2,"skipLocationChange","skipLocationChange",n.L39],replaceUrl:[2,"replaceUrl","replaceUrl",n.L39],routerLink:"routerLink"},features:[n.GFd,n.OA$]})}return t})(),Bne=(()=>{class t{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new n.bkB;constructor(e,i,o,s,a){this.router=e,this.element=i,this.renderer=o,this.cdr=s,this.link=a,this.routerEventsSubscription=e.events.subscribe(l=>{l instanceof Ab&&this.update()})}ngAfterContentInit(){Fs(this.links.changes,Fs(null)).pipe(qD()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const e=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=Pc(e).pipe(qD()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(e){const i=Array.isArray(e)?e:e.split(" ");this.classes=i.filter(o=>!!o)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const e=this.hasActiveLinks();this.classes.forEach(i=>{e?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),e&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){const i=function nDe(t){return!!t.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>{const s=o.urlTree;return!!s&&e.isActive(s,i)}}hasActiveLinks(){const e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(i){return new(i||t)(n.rXU(Ay),n.rXU(n.aKT),n.rXU(n.sFG),n.rXU(n.gRc),n.rXU(K8,8))};static \u0275dir=n.FsC({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(i,o,s){if(1&i&&n.wni(s,K8,5),2&i){let a;n.mGM(a=n.lsd())&&(o.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[n.OA$]})}return t})();class Vne{}let iDe=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,i,o,s,a){this.router=e,this.injector=o,this.preloadingStrategy=s,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(U_(e=>e instanceof Ab),XD(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const o=[];for(const s of i){s.providers&&!s._injector&&(s._injector=(0,n.Ol2)(s.providers,e,`Route: ${s.path}`));const a=s._injector??e,l=s._loadedInjector??a;(s.loadChildren&&!s._loadedRoutes&&void 0===s.canLoad||s.loadComponent&&!s._loadedComponent)&&o.push(this.preloadConfig(a,s)),(s.children||s._loadedRoutes)&&o.push(this.processRoutes(l,s.children??s._loadedRoutes))}return Pc(o).pipe(qD())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let o;o=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):Fs(null);const s=o.pipe(Ih(a=>null===a?Fs(void 0):(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,this.processRoutes(a.injector??e,a.routes))));return i.loadComponent&&!i._loadedComponent?Pc([s,this.loader.loadComponent(i)]).pipe(qD()):s})}static \u0275fac=function(i){return new(i||t)(n.KVO(Ay),n.KVO(n.Ql9),n.KVO(n.uvJ),n.KVO(Vne),n.KVO(kY))};static \u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const MY=new n.nKC("");let jne=(()=>{class t{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(e,i,o,s,a={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=o,this.zone=s,this.options=a,a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof G8?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Ab?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof fk&&e.code===B8.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof dne&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new dne(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(i){n.QTQ()};static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();function My(t,r){return{\u0275kind:t,\u0275providers:r}}function Une(){const t=(0,n.WQX)(n.zZn);return r=>{const e=t.get(n.o8S);if(r!==e.components[0])return;const i=t.get(Ay),o=t.get($ne);1===t.get(RY)&&i.initialNavigation(),t.get(Yne,null,n.$GK.Optional)?.setUpPreloading(),t.get(MY,null,n.$GK.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const $ne=new n.nKC("",{factory:()=>new K.B}),RY=new n.nKC("",{providedIn:"root",factory:()=>1}),Yne=new n.nKC("");function aDe(t){return My(0,[{provide:Yne,useExisting:iDe},{provide:Vne,useExisting:t}])}function cDe(t){return My(9,[{provide:Pne,useValue:YEe},{provide:Lne,useValue:{skipNextTransition:!!t?.skipInitialTransition,...t}}])}const Wne=new n.nKC("ROUTER_FORROOT_GUARD"),uDe=[ye,{provide:hk,useClass:R8},Ay,SO,{provide:gk,useFactory:function Hne(t){return t.routerState.root},deps:[Ay]},kY,[]];let AO=(()=>{class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[uDe,[],{provide:Ck,multi:!0,useValue:e},{provide:Wne,useFactory:fDe,deps:[[Ay,new n.Xx1,new n.kdw]]},i?.errorHandler?{provide:AY,useValue:i.errorHandler}:[],{provide:bk,useValue:i||{}},i?.useHash?{provide:We,useClass:Ae}:{provide:We,useClass:ut},{provide:MY,useFactory:()=>{const t=(0,n.WQX)(va),r=(0,n.WQX)(n.SKi),e=(0,n.WQX)(bk),i=(0,n.WQX)(X8),o=(0,n.WQX)(hk);return e.scrollOffset&&t.setOffset(e.scrollOffset),new jne(o,i,t,r,e)}},i?.preloadingStrategy?aDe(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?mDe(i):[],i?.bindToComponentInputs?My(8,[yne,{provide:U8,useExisting:yne}]).\u0275providers:[],i?.enableViewTransitions?cDe().\u0275providers:[],[{provide:zne,useFactory:Une},{provide:n.iLQ,multi:!0,useExisting:zne}]]}}static forChild(e){return{ngModule:t,providers:[{provide:Ck,multi:!0,useValue:e}]}}static \u0275fac=function(i){return new(i||t)(n.KVO(Wne,8))};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({})}return t})();function fDe(t){return"guarded"}function mDe(t){return["disabled"===t.initialNavigation?My(3,[{provide:n.hnV,multi:!0,useFactory:()=>{const r=(0,n.WQX)(Ay);return()=>{r.setUpLocationChangeListener()}}},{provide:RY,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?My(2,[{provide:RY,useValue:0},{provide:n.hnV,multi:!0,deps:[n.zZn],useFactory:r=>{const e=r.get(Ie,Promise.resolve());return()=>e.then(()=>new Promise(i=>{const o=r.get(Ay),s=r.get($ne);Gne(o,()=>{i(!0)}),r.get(X8).afterPreactivation=()=>(i(!0),s.closed?Fs(void 0):s),o.initialNavigation()}))}}]).\u0275providers:[]]}const zne=new n.nKC(""),_De=({dt:t})=>`\n.p-menu {\n    background: ${t("menu.background")};\n    color: ${t("menu.color")};\n    border: 1px solid ${t("menu.border.color")};\n    border-radius: ${t("menu.border.radius")};\n    min-width: 12.5rem;\n}\n\n.p-menu-list {\n    margin: 0;\n    padding: ${t("menu.list.padding")};\n    outline: 0 none;\n    list-style: none;\n    display: flex;\n    flex-direction: column;\n    gap: ${t("menu.list.gap")};\n}\n\n.p-menu-item-content {\n    transition: background ${t("menu.transition.duration")}, color ${t("menu.transition.duration")};\n    border-radius: ${t("menu.item.border.radius")};\n    color: ${t("menu.item.color")};\n}\n\n.p-menu-item-link {\n    cursor: pointer;\n    display: flex;\n    align-items: center;\n    text-decoration: none;\n    overflow: hidden;\n    position: relative;\n    color: inherit;\n    padding: ${t("menu.item.padding")};\n    gap: ${t("menu.item.gap")};\n    user-select: none;\n    outline: 0 none;\n}\n\n.p-menu-item-label {\n    line-height: 1;\n}\n\n.p-menu-item-icon {\n    color: ${t("menu.item.icon.color")};\n}\n\n.p-menu-item.p-focus .p-menu-item-content {\n    color: ${t("menu.item.focus.color")};\n    background: ${t("menu.item.focus.background")};\n}\n\n.p-menu-item.p-focus .p-menu-item-icon {\n    color: ${t("menu.item.icon.focus.color")};\n}\n\n.p-menu-item:not(.p-disabled) .p-menu-item-content:hover {\n    color: ${t("menu.item.focus.color")};\n    background: ${t("menu.item.focus.background")};\n}\n\n.p-menu-item:not(.p-disabled) .p-menu-item-content:hover .p-menu-item-icon {\n    color: ${t("menu.item.icon.focus.color")};\n}\n\n.p-menu-overlay {\n    box-shadow: ${t("menu.shadow")};\n}\n\n.p-menu-submenu-label {\n    background: ${t("menu.submenu.label.background")};\n    padding: ${t("menu.submenu.label.padding")};\n    color: ${t("menu.submenu.label.color")};\n    font-weight: ${t("menu.submenu.label.font.weight")};\n}\n\n.p-menu-separator {\n    border-top: 1px solid ${t("menu.separator.border.color")};\n}\n\n/* For PrimeNG */\n.p-menu-overlay {\n    position: absolute;\n}\n`,yDe={root:({props:t})=>["p-menu p-component",{"p-menu-overlay":t.popup}],start:"p-menu-start",list:"p-menu-list",submenuLabel:"p-menu-submenu-label",separator:"p-menu-separator",end:"p-menu-end",item:({instance:t})=>["p-menu-item",{"p-focus":t.id===t.focusedOptionId,"p-disabled":t.disabled()}],itemContent:"p-menu-item-content",itemLink:"p-menu-item-link",itemIcon:"p-menu-item-icon",itemLabel:"p-menu-item-label"};let qne=(()=>{class t extends gs{name="menu";theme=_De;classes=yDe;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const CDe=["pMenuItemContent",""],Xne=t=>({"p-disabled":t}),Q8=t=>({$implicit:t}),wDe=()=>({exact:!1});function TDe(t,r){1&t&&n.eu8(0)}function SDe(t,r){if(1&t&&(n.j41(0,"a",6),n.DNE(1,TDe,1,0,"ng-container",7),n.k0s()),2&t){const e=n.XpG(2),i=n.sdS(4);n.Y8G("target",e.item.target)("ngClass",n.eq3(9,Xne,e.item.disabled)),n.BMQ("title",e.item.title)("href",e.item.url||null,n.B4B)("data-automationid",e.item.automationId)("tabindex",-1)("data-pc-section","action"),n.R7$(),n.Y8G("ngTemplateOutlet",i)("ngTemplateOutletContext",n.eq3(11,Q8,e.item))}}function xDe(t,r){1&t&&n.eu8(0)}function EDe(t,r){if(1&t&&(n.j41(0,"a",8),n.DNE(1,xDe,1,0,"ng-container",7),n.k0s()),2&t){const e=n.XpG(2),i=n.sdS(4);n.Y8G("routerLink",e.item.routerLink)("queryParams",e.item.queryParams)("routerLinkActiveOptions",e.item.routerLinkActiveOptions||n.lJ4(17,wDe))("target",e.item.target)("ngClass",n.eq3(18,Xne,e.item.disabled))("fragment",e.item.fragment)("queryParamsHandling",e.item.queryParamsHandling)("preserveFragment",e.item.preserveFragment)("skipLocationChange",e.item.skipLocationChange)("replaceUrl",e.item.replaceUrl)("state",e.item.state),n.BMQ("data-automationid",e.item.automationId)("tabindex",-1)("data-pc-section","action")("title",e.item.title),n.R7$(),n.Y8G("ngTemplateOutlet",i)("ngTemplateOutletContext",n.eq3(20,Q8,e.item))}}function DDe(t,r){if(1&t&&(n.qex(0),n.DNE(1,SDe,2,13,"a",4)(2,EDe,2,22,"a",5),n.bVm()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngIf",!(null!=e.item&&e.item.routerLink)),n.R7$(),n.Y8G("ngIf",null==e.item?null:e.item.routerLink)}}function kDe(t,r){}function IDe(t,r){1&t&&n.DNE(0,kDe,0,0,"ng-template")}function ADe(t,r){if(1&t&&(n.qex(0),n.DNE(1,IDe,1,0,null,7),n.bVm()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngTemplateOutlet",e.itemTemplate)("ngTemplateOutletContext",n.eq3(2,Q8,e.item))}}function MDe(t,r){if(1&t&&n.nrm(0,"span",12),2&t){const e=n.XpG(2);n.HbH(e.item.iconClass),n.Y8G("ngClass",e.item.icon)("ngStyle",e.item.iconStyle)}}function RDe(t,r){if(1&t&&(n.j41(0,"span",13),n.EFF(1),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.JRh(e.item.label)}}function ODe(t,r){if(1&t&&(n.nrm(0,"span",14),n.nI1(1,"safeHtml")),2&t){const e=n.XpG(2);n.Y8G("innerHTML",n.bMT(1,1,e.item.label),n.npT)}}function FDe(t,r){if(1&t&&n.nrm(0,"p-badge",15),2&t){const e=n.XpG(2);n.Y8G("styleClass",e.item.badgeStyleClass)("value",e.item.badge)}}function PDe(t,r){if(1&t&&n.DNE(0,MDe,1,4,"span",9)(1,RDe,2,1,"span",10)(2,ODe,2,3,"ng-template",null,1,n.C5r)(4,FDe,1,2,"p-badge",11),2&t){const e=n.sdS(3),i=n.XpG();n.Y8G("ngIf",i.item.icon),n.R7$(),n.Y8G("ngIf",!1!==i.item.escape)("ngIfElse",e),n.R7$(3),n.Y8G("ngIf",i.item.badge)}}const LDe=["start"],NDe=["end"],GDe=["header"],BDe=["item"],VDe=["submenuheader"],jDe=["list"],HDe=["container"],UDe=t=>({"p-menu p-component":!0,"p-menu-overlay":t}),$De=(t,r)=>({showTransitionParams:t,hideTransitionParams:r}),YDe=t=>({value:"visible",params:t}),WDe=(t,r)=>({"p-hidden":t,flex:r}),zDe=(t,r,e)=>({"p-hidden":t,"p-focus":r,"p-disabled":e}),qDe=(t,r)=>({"p-focus":t,"p-disabled":r});function XDe(t,r){1&t&&n.eu8(0)}function KDe(t,r){if(1&t&&(n.j41(0,"div",9),n.DNE(1,XDe,1,0,"ng-container",10),n.k0s()),2&t){let e;const i=n.XpG(2);n.BMQ("data-pc-section","start"),n.R7$(),n.Y8G("ngTemplateOutlet",null!==(e=i.startTemplate)&&void 0!==e?e:i._startTemplate)}}function QDe(t,r){1&t&&n.nrm(0,"li",14)}function JDe(t,r){if(1&t&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&t){const e=n.XpG(3).$implicit;n.R7$(),n.JRh(e.label)}}function ZDe(t,r){if(1&t&&(n.nrm(0,"span",18),n.nI1(1,"safeHtml")),2&t){const e=n.XpG(3).$implicit;n.Y8G("innerHTML",n.bMT(1,1,e.label),n.npT)}}function eke(t,r){if(1&t&&(n.qex(0),n.DNE(1,JDe,2,1,"span",17)(2,ZDe,2,3,"ng-template",null,2,n.C5r),n.bVm()),2&t){const e=n.sdS(3),i=n.XpG(2).$implicit;n.R7$(),n.Y8G("ngIf",!1!==i.escape)("ngIfElse",e)}}function tke(t,r){1&t&&n.eu8(0)}function nke(t,r){if(1&t&&(n.j41(0,"li",15),n.DNE(1,eke,4,2,"ng-container",7)(2,tke,1,0,"ng-container",16),n.k0s()),2&t){let e;const i=n.XpG(),o=i.$implicit,s=i.index,a=n.XpG(3);n.Y8G("ngClass",n.l_i(7,WDe,!1===o.visible,o.visible))("tooltipOptions",o.tooltipOptions),n.BMQ("data-automationid",o.automationId)("id",a.menuitemId(o,a.id,s)),n.R7$(),n.Y8G("ngIf",!a.submenuHeaderTemplate&&!a._submenuHeaderTemplate),n.R7$(),n.Y8G("ngTemplateOutlet",null!==(e=a.submenuHeaderTemplate)&&void 0!==e?e:a._submenuHeaderTemplate)("ngTemplateOutletContext",n.eq3(10,Q8,o))}}function ike(t,r){1&t&&n.nrm(0,"li",14)}function rke(t,r){if(1&t){const e=n.RV6();n.j41(0,"li",20),n.bIt("onMenuItemClick",function(o){n.eBV(e);const s=n.XpG(),a=s.$implicit,l=s.index,c=n.XpG().index,d=n.XpG(3);return n.Njj(d.itemClick(o,d.menuitemId(a,d.id,c,l)))}),n.k0s()}if(2&t){let e;const i=n.XpG(),o=i.$implicit,s=i.index,a=n.XpG(),l=a.$implicit,c=a.index,d=n.XpG(3);n.HbH(o.styleClass),n.Y8G("pMenuItemContent",o)("itemTemplate",null!==(e=d.itemTemplate)&&void 0!==e?e:d._itemTemplate)("ngClass",n.sMw(13,zDe,!1===o.visible||!1===l.visible,d.focusedOptionId()&&d.menuitemId(o,d.id,c,s)===d.focusedOptionId(),d.disabled(o.disabled)))("ngStyle",o.style)("tooltipOptions",o.tooltipOptions),n.BMQ("data-pc-section","menuitem")("aria-label",d.label(o.label))("data-p-focused",d.isItemFocused(d.menuitemId(o,d.id,c,s)))("data-p-disabled",d.disabled(o.disabled))("aria-disabled",d.disabled(o.disabled))("id",d.menuitemId(o,d.id,c,s))}}function oke(t,r){if(1&t&&n.DNE(0,ike,1,0,"li",12)(1,rke,1,17,"li",19),2&t){const e=r.$implicit,i=n.XpG().$implicit;n.Y8G("ngIf",e.separator&&(!1!==e.visible||!1!==i.visible)),n.R7$(),n.Y8G("ngIf",!e.separator&&(!1!==e.visible||!1!==i.visible))}}function ske(t,r){if(1&t&&n.DNE(0,QDe,1,0,"li",12)(1,nke,3,12,"li",13)(2,oke,2,2,"ng-template",11),2&t){const e=r.$implicit;n.Y8G("ngIf",e.separator&&!1!==e.visible),n.R7$(),n.Y8G("ngIf",!e.separator),n.R7$(),n.Y8G("ngForOf",e.items)}}function ake(t,r){if(1&t&&n.DNE(0,ske,3,3,"ng-template",11),2&t){const e=n.XpG(2);n.Y8G("ngForOf",e.model)}}function lke(t,r){1&t&&n.nrm(0,"li",14)}function cke(t,r){if(1&t){const e=n.RV6();n.j41(0,"li",20),n.bIt("onMenuItemClick",function(o){n.eBV(e);const s=n.XpG(),a=s.$implicit,l=s.index,c=n.XpG(3);return n.Njj(c.itemClick(o,c.menuitemId(a,c.id,l)))}),n.k0s()}if(2&t){let e;const i=n.XpG(),o=i.$implicit,s=i.index,a=n.XpG(3);n.HbH(o.styleClass),n.Y8G("pMenuItemContent",o)("itemTemplate",null!==(e=a.itemTemplate)&&void 0!==e?e:a._itemTemplate)("ngClass",n.l_i(13,qDe,a.focusedOptionId()&&a.menuitemId(o,a.id,s)===a.focusedOptionId(),a.disabled(o.disabled)))("ngStyle",o.style)("tooltipOptions",o.tooltipOptions),n.BMQ("data-pc-section","menuitem")("aria-label",a.label(o.label))("data-p-focused",a.isItemFocused(a.menuitemId(o,a.id,s)))("data-p-disabled",a.disabled(o.disabled))("aria-disabled",a.disabled(o.disabled))("id",a.menuitemId(o,a.id,s))}}function uke(t,r){if(1&t&&n.DNE(0,lke,1,0,"li",12)(1,cke,1,16,"li",19),2&t){const e=r.$implicit;n.Y8G("ngIf",e.separator&&!1!==e.visible),n.R7$(),n.Y8G("ngIf",!e.separator&&!1!==e.visible)}}function dke(t,r){if(1&t&&n.DNE(0,uke,2,2,"ng-template",11),2&t){const e=n.XpG(2);n.Y8G("ngForOf",e.model)}}function pke(t,r){1&t&&n.eu8(0)}function hke(t,r){if(1&t&&(n.j41(0,"div",21),n.DNE(1,pke,1,0,"ng-container",10),n.k0s()),2&t){let e;const i=n.XpG(2);n.BMQ("data-pc-section","end"),n.R7$(),n.Y8G("ngTemplateOutlet",null!==(e=i.endTemplate)&&void 0!==e?e:i._endTemplate)}}function fke(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",4,0),n.bIt("click",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onOverlayClick(o))})("@overlayAnimation.start",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onOverlayAnimationStart(o))})("@overlayAnimation.done",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onOverlayAnimationEnd(o))}),n.DNE(2,KDe,2,2,"div",5),n.j41(3,"ul",6,1),n.bIt("focus",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onListFocus(o))})("blur",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onListBlur(o))})("keydown",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onListKeyDown(o))}),n.DNE(5,ake,1,1,null,7)(6,dke,1,1,null,7),n.k0s(),n.DNE(7,hke,2,2,"div",8),n.k0s()}if(2&t){let e,i;const o=n.XpG();n.HbH(o.styleClass),n.Y8G("ngClass",n.eq3(18,UDe,o.popup))("ngStyle",o.style)("@overlayAnimation",n.eq3(23,YDe,n.l_i(20,$De,o.showTransitionOptions,o.hideTransitionOptions)))("@.disabled",!0!==o.popup),n.BMQ("data-pc-name","menu")("id",o.id),n.R7$(2),n.Y8G("ngIf",null!==(e=o.startTemplate)&&void 0!==e?e:o._startTemplate),n.R7$(),n.BMQ("id",o.id+"_list")("tabindex",o.getTabIndexValue())("data-pc-section","menu")("aria-activedescendant",o.activedescendant())("aria-label",o.ariaLabel)("aria-labelledBy",o.ariaLabelledBy),n.R7$(2),n.Y8G("ngIf",o.hasSubMenu()),n.R7$(),n.Y8G("ngIf",!o.hasSubMenu()),n.R7$(),n.Y8G("ngIf",null!==(i=o.endTemplate)&&void 0!==i?i:o._endTemplate)}}let Kne=(()=>{class t{platformId;sanitizer;constructor(e,i){this.platformId=e,this.sanitizer=i}transform(e){return e&&Gr(this.platformId)?this.sanitizer.bypassSecurityTrustHtml(e):e}static \u0275fac=function(i){return new(i||t)(n.rXU(n.Agw,16),n.rXU(Ku,16))};static \u0275pipe=n.EJ8({name:"safeHtml",type:t,pure:!0})}return t})(),mke=(()=>{class t{item;itemTemplate;onMenuItemClick=new n.bkB;menu;constructor(e){this.menu=e}onItemClick(e,i){this.onMenuItemClick.emit({originalEvent:e,item:i})}static \u0275fac=function(i){return new(i||t)(n.rXU((0,n.Rfq)(()=>J8)))};static \u0275cmp=n.VBU({type:t,selectors:[["","pMenuItemContent",""]],inputs:{item:[0,"pMenuItemContent","item"],itemTemplate:"itemTemplate"},outputs:{onMenuItemClick:"onMenuItemClick"},attrs:CDe,decls:5,vars:3,consts:[["itemContent",""],["htmlLabel",""],[1,"p-menu-item-content",3,"click"],[4,"ngIf"],["class","p-menu-item-link","pRipple","",3,"target","ngClass",4,"ngIf"],["routerLinkActive","p-menu-item-link-active","class","p-menu-item-link","pRipple","",3,"routerLink","queryParams","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state",4,"ngIf"],["pRipple","",1,"p-menu-item-link",3,"target","ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["routerLinkActive","p-menu-item-link-active","pRipple","",1,"p-menu-item-link",3,"routerLink","queryParams","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state"],["class","p-menu-item-icon",3,"ngClass","class","ngStyle",4,"ngIf"],["class","p-menu-item-label",4,"ngIf","ngIfElse"],[3,"styleClass","value",4,"ngIf"],[1,"p-menu-item-icon",3,"ngClass","ngStyle"],[1,"p-menu-item-label"],[1,"p-menu-item-label",3,"innerHTML"],[3,"styleClass","value"]],template:function(i,o){if(1&i){const s=n.RV6();n.j41(0,"div",2),n.bIt("click",function(l){return n.eBV(s),n.Njj(o.onItemClick(l,o.item))}),n.DNE(1,DDe,3,2,"ng-container",3)(2,ADe,2,4,"ng-container",3)(3,PDe,5,4,"ng-template",null,0,n.C5r),n.k0s()}2&i&&(n.BMQ("data-pc-section","content"),n.R7$(),n.Y8G("ngIf",!o.itemTemplate),n.R7$(),n.Y8G("ngIf",o.itemTemplate))},dependencies:[gn,bi,fi,uo,Jr,AO,K8,Bne,Mh,Rh,dk,D8,Di,Kne],encapsulation:2})}return t})(),J8=(()=>{class t extends jo{overlayService;model;popup;style;styleClass;appendTo;autoZIndex=!0;baseZIndex=0;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";ariaLabel;ariaLabelledBy;id;tabindex=0;onShow=new n.bkB;onHide=new n.bkB;onBlur=new n.bkB;onFocus=new n.bkB;listViewChild;containerViewChild;container;scrollHandler;documentClickListener;documentResizeListener;preventDocumentDefault;target;visible;focusedOptionId=(0,n.EWP)(()=>-1!==this.focusedOptionIndex()?this.focusedOptionIndex():null);focusedOptionIndex=(0,n.vPA)(-1);selectedOptionIndex=(0,n.vPA)(-1);focused=!1;overlayVisible=!1;relativeAlign;_componentStyle=(0,n.WQX)(qne);constructor(e){super(),this.overlayService=e,this.id=this.id||Bl("pn_id_")}toggle(e){this.visible?this.hide():this.show(e),this.preventDocumentDefault=!0}show(e){this.target=e.currentTarget,this.relativeAlign=e.relativeAlign,this.visible=!0,this.preventDocumentDefault=!0,this.overlayVisible=!0,this.cd.markForCheck()}ngOnInit(){super.ngOnInit(),this.popup||this.bindDocumentClickListener()}startTemplate;_startTemplate;endTemplate;_endTemplate;headerTemplate;_headerTemplate;itemTemplate;_itemTemplate;submenuHeaderTemplate;_submenuHeaderTemplate;templates;ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"start":this._startTemplate=e.template;break;case"end":this._endTemplate=e.template;break;case"item":default:this._itemTemplate=e.template;break;case"submenuheader":this._submenuHeaderTemplate=e.template}})}getTabIndexValue(){return void 0!==this.tabindex?this.tabindex.toString():null}onOverlayAnimationStart(e){switch(e.toState){case"visible":this.popup&&(this.container=e.element,this.moveOnTop(),this.onShow.emit({}),this.appendOverlay(),this.alignOverlay(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),la(this.listViewChild.nativeElement));break;case"void":this.onOverlayHide(),this.onHide.emit({})}}onOverlayAnimationEnd(e){"void"===e.toState&&this.autoZIndex&&Yc.clear(e.element)}alignOverlay(){this.relativeAlign?z5(this.container,this.target):ZD(this.container,this.target)}appendOverlay(){this.appendTo&&("body"===this.appendTo?this.renderer.appendChild(this.document.body,this.container):yx(this.appendTo,this.container))}restoreOverlayAppend(){this.container&&this.appendTo&&this.renderer.appendChild(this.el.nativeElement,this.container)}moveOnTop(){this.autoZIndex&&Yc.set("menu",this.container,this.baseZIndex+this.config.zIndex.menu)}hide(){this.visible=!1,this.relativeAlign=!1,this.cd.markForCheck()}onWindowResize(){this.visible&&!by()&&this.hide()}menuitemId(e,i,o,s){return e?.id??`${i}_${o}${void 0!==s?"_"+s:""}`}isItemFocused(e){return this.focusedOptionId()===e}label(e){return"function"==typeof e?e():e}disabled(e){return"function"==typeof e?e():!(typeof e>"u")&&e}activedescendant(){return this.focused?this.focusedOptionId():void 0}onListFocus(e){this.focused||(this.focused=!0,this.onFocus.emit(e))}onListBlur(e){this.focused&&(this.focused=!1,this.changeFocusedOptionIndex(-1),this.selectedOptionIndex.set(-1),this.focusedOptionIndex.set(-1),this.onBlur.emit(e))}onListKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Space":this.onSpaceKey(e);break;case"Escape":case"Tab":this.popup&&(la(this.target),this.hide()),this.overlayVisible&&this.hide()}}onArrowDownKey(e){const i=this.findNextOptionIndex(this.focusedOptionIndex());this.changeFocusedOptionIndex(i),e.preventDefault()}onArrowUpKey(e){if(e.altKey&&this.popup)la(this.target),this.hide(),e.preventDefault();else{const i=this.findPrevOptionIndex(this.focusedOptionIndex());this.changeFocusedOptionIndex(i),e.preventDefault()}}onHomeKey(e){this.changeFocusedOptionIndex(0),e.preventDefault()}onEndKey(e){this.changeFocusedOptionIndex($c(this.containerViewChild.nativeElement,'li[data-pc-section="menuitem"][data-p-disabled="false"]').length-1),e.preventDefault()}onEnterKey(e){const i=xo(this.containerViewChild.nativeElement,`li[id="${this.focusedOptionIndex()}"]`),o=i&&xo(i,'a[data-pc-section="action"]');this.popup&&la(this.target),o?o.click():i&&i.click(),e.preventDefault()}onSpaceKey(e){this.onEnterKey(e)}findNextOptionIndex(e){const o=[...$c(this.containerViewChild.nativeElement,'li[data-pc-section="menuitem"][data-p-disabled="false"]')].findIndex(s=>s.id===e);return o>-1?o+1:0}findPrevOptionIndex(e){const o=[...$c(this.containerViewChild.nativeElement,'li[data-pc-section="menuitem"][data-p-disabled="false"]')].findIndex(s=>s.id===e);return o>-1?o-1:0}changeFocusedOptionIndex(e){const i=$c(this.containerViewChild.nativeElement,'li[data-pc-section="menuitem"][data-p-disabled="false"]');if(i.length>0){let o=e>=i.length?i.length-1:e<0?0:e;o>-1&&this.focusedOptionIndex.set(i[o].getAttribute("id"))}}itemClick(e,i){const{originalEvent:o,item:s}=e;this.focused||(this.focused=!0,this.onFocus.emit()),s.disabled?o.preventDefault():(!s.url&&!s.routerLink&&o.preventDefault(),s.command&&s.command({originalEvent:o,item:s}),this.popup&&this.hide(),!this.popup&&this.focusedOptionIndex()!==i&&this.focusedOptionIndex.set(i))}onOverlayClick(e){this.popup&&this.overlayService.add({originalEvent:e,target:this.el.nativeElement}),this.preventDocumentDefault=!0}bindDocumentClickListener(){!this.documentClickListener&&Gr(this.platformId)&&(this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","click",i=>{const o=this.containerViewChild?.nativeElement&&!this.containerViewChild?.nativeElement.contains(i.target),s=!(this.target&&(this.target===i.target||this.target.contains(i.target)));!this.popup&&o&&s&&this.onListBlur(i),this.preventDocumentDefault&&this.overlayVisible&&o&&s&&(this.hide(),this.preventDocumentDefault=!1)}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){!this.documentResizeListener&&Gr(this.platformId)&&(this.documentResizeListener=this.renderer.listen(this.document.defaultView,"resize",this.onWindowResize.bind(this)))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindScrollListener(){!this.scrollHandler&&Gr(this.platformId)&&(this.scrollHandler=new jw(this.target,()=>{this.visible&&this.hide()})),this.scrollHandler?.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}onOverlayHide(){this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.preventDocumentDefault=!1,this.cd.destroyed||(this.target=null)}ngOnDestroy(){this.popup&&(this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.container&&this.autoZIndex&&Yc.clear(this.container),this.restoreOverlayAppend(),this.onOverlayHide()),this.popup||this.unbindDocumentClickListener(),super.ngOnDestroy()}hasSubMenu(){if(this.model)for(var e of this.model)if(e.items)return!0;return!1}isItemHidden(e){return e.separator?!1===e.visible||e.items&&e.items.some(i=>!1!==i.visible):!1===e.visible}static \u0275fac=function(i){return new(i||t)(n.rXU(Cy))};static \u0275cmp=n.VBU({type:t,selectors:[["p-menu"]],contentQueries:function(i,o,s){if(1&i&&(n.wni(s,LDe,4),n.wni(s,NDe,4),n.wni(s,GDe,4),n.wni(s,BDe,4),n.wni(s,VDe,4),n.wni(s,hs,4)),2&i){let a;n.mGM(a=n.lsd())&&(o.startTemplate=a.first),n.mGM(a=n.lsd())&&(o.endTemplate=a.first),n.mGM(a=n.lsd())&&(o.headerTemplate=a.first),n.mGM(a=n.lsd())&&(o.itemTemplate=a.first),n.mGM(a=n.lsd())&&(o.submenuHeaderTemplate=a.first),n.mGM(a=n.lsd())&&(o.templates=a)}},viewQuery:function(i,o){if(1&i&&(n.GBs(jDe,5),n.GBs(HDe,5)),2&i){let s;n.mGM(s=n.lsd())&&(o.listViewChild=s.first),n.mGM(s=n.lsd())&&(o.containerViewChild=s.first)}},inputs:{model:"model",popup:[2,"popup","popup",n.L39],style:"style",styleClass:"styleClass",appendTo:"appendTo",autoZIndex:[2,"autoZIndex","autoZIndex",n.L39],baseZIndex:[2,"baseZIndex","baseZIndex",n.Udg],showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",id:"id",tabindex:[2,"tabindex","tabindex",n.Udg]},outputs:{onShow:"onShow",onHide:"onHide",onBlur:"onBlur",onFocus:"onFocus"},features:[n.Jv_([qne]),n.GFd,n.Vt3],decls:1,vars:1,consts:[["container",""],["list",""],["htmlSubmenuLabel",""],[3,"ngClass","class","ngStyle","click",4,"ngIf"],[3,"click","ngClass","ngStyle"],["class","p-menu-start",4,"ngIf"],["role","menu",1,"p-menu-list","p-reset",3,"focus","blur","keydown"],[4,"ngIf"],["class","p-menu-end",4,"ngIf"],[1,"p-menu-start"],[4,"ngTemplateOutlet"],["ngFor","",3,"ngForOf"],["class","p-menu-separator","role","separator",4,"ngIf"],["class","p-menu-submenu-label","pTooltip","","role","none",3,"ngClass","tooltipOptions",4,"ngIf"],["role","separator",1,"p-menu-separator"],["pTooltip","","role","none",1,"p-menu-submenu-label",3,"ngClass","tooltipOptions"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf","ngIfElse"],[3,"innerHTML"],["class","p-menu-item","pTooltip","","role","menuitem",3,"pMenuItemContent","itemTemplate","ngClass","ngStyle","class","tooltipOptions","onMenuItemClick",4,"ngIf"],["pTooltip","","role","menuitem",1,"p-menu-item",3,"onMenuItemClick","pMenuItemContent","itemTemplate","ngClass","ngStyle","tooltipOptions"],[1,"p-menu-end"]],template:function(i,o){1&i&&n.DNE(0,fke,8,25,"div",3),2&i&&n.Y8G("ngIf",!o.popup||o.visible)},dependencies:[gn,bi,oo,fi,uo,Jr,AO,mke,Rh,ou,dk,Di,Kne],encapsulation:2,data:{animation:[(0,Hi.hZ)("overlayAnimation",[(0,Hi.kY)(":enter",[(0,Hi.iF)({opacity:0,transform:"scaleY(0.8)"}),(0,Hi.i0)("{{showTransitionParams}}")]),(0,Hi.kY)(":leave",[(0,Hi.i0)("{{hideTransitionParams}}",(0,Hi.iF)({opacity:0}))])])]},changeDetection:0})}return t})(),Qne=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({imports:[J8,Di,Di]})}return t})(),Jne=(()=>{class t extends Gc{static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["MinusIcon"]],features:[n.Vt3],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M13.2222 7.77778H0.777778C0.571498 7.77778 0.373667 7.69584 0.227806 7.54998C0.0819442 7.40412 0 7.20629 0 7.00001C0 6.79373 0.0819442 6.5959 0.227806 6.45003C0.373667 6.30417 0.571498 6.22223 0.777778 6.22223H13.2222C13.4285 6.22223 13.6263 6.30417 13.7722 6.45003C13.9181 6.5959 14 6.79373 14 7.00001C14 7.20629 13.9181 7.40412 13.7722 7.54998C13.6263 7.69584 13.4285 7.77778 13.2222 7.77778Z","fill","currentColor"]],template:function(i,o){1&i&&(n.qSk(),n.j41(0,"svg",0),n.nrm(1,"path",1),n.k0s()),2&i&&(n.HbH(o.getClassNames()),n.BMQ("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})();const gke=({dt:t})=>`\n.p-panel {\n    border: 1px solid ${t("panel.border.color")};\n    border-radius: ${t("panel.border.radius")};\n    background: ${t("panel.background")};\n    color: ${t("panel.color")};\n}\n\n.p-panel-header {\n    display: flex;\n    justify-content: space-between;\n    align-items: center;\n    padding: ${t("panel.header.padding")};\n    background: ${t("panel.header.background")};\n    color: ${t("panel.header.color")};\n    border-style: solid;\n    border-width: ${t("panel.header.border.width")};\n    border-color: ${t("panel.header.border.color")};\n    border-radius: ${t("panel.header.border.radius")};\n}\n\n.p-panel-toggleable .p-panel-header {\n    padding: ${t("panel.toggleable.header.padding")};\n}\n\n.p-panel-title {\n    line-height: 1;\n    font-weight: ${t("panel.title.font.weight")};\n}\n\n.p-panel-content {\n    padding: ${t("panel.content.padding")};\n}\n\n.p-panel-footer {\n    padding: ${t("panel.footer.padding")};\n}\n\n/* For PrimeNG */\n.p-panel-toggleable.p-panel-expanded > .p-panel-content-container:not(.ng-animating) {\n    overflow: visible\n}\n\n.p-panel-toggleable .p-panel-content-container {\n    overflow: hidden;\n}\n`,vke={root:({props:t})=>["p-panel p-component",{"p-panel-toggleable":t.toggleable}],header:"p-panel-header",title:"p-panel-title",headerActions:"p-panel-header-actions",pcToggleButton:"p-panel-toggle-button",contentContainer:"p-panel-content-container",content:"p-panel-content",footer:"p-panel-footer"};let Zne=(()=>{class t extends gs{name="panel";theme=gke;classes=vke;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const yke=["header"],bke=["icons"],Cke=["content"],wke=["footer"],Tke=["headericons"],Ske=["contentWrapper"],xke=["*",[["p-header"]],[["p-footer"]]],Eke=["*","p-header","p-footer"],Dke=(t,r)=>({"p-panel p-component":!0,"p-panel-toggleable":t,"p-panel-expanded":r}),kke=t=>({transitionParams:t,height:"0",opacity:"0"}),Ike=t=>({value:"hidden",params:t}),Ake=t=>({transitionParams:t,height:"*",opacity:"1"}),Mke=t=>({value:"visible",params:t}),Rke=(t,r,e)=>({"p-panel-icons-start":t,"p-panel-icons-end":r,"p-panel-icons-center":e}),Oke=t=>({$implicit:t});function Fke(t,r){if(1&t&&(n.j41(0,"span",12),n.EFF(1),n.k0s()),2&t){const e=n.XpG(2);n.BMQ("id",e.id+"_header"),n.R7$(),n.JRh(e._header)}}function Pke(t,r){1&t&&n.eu8(0)}function Lke(t,r){}function Nke(t,r){1&t&&n.DNE(0,Lke,0,0,"ng-template")}function Gke(t,r){if(1&t&&n.nrm(0,"span"),2&t){const e=n.XpG(6);n.HbH(e.expandIcon)}}function Bke(t,r){1&t&&n.nrm(0,"MinusIcon")}function Vke(t,r){if(1&t&&(n.qex(0),n.DNE(1,Gke,1,2,"span",16)(2,Bke,1,0,"MinusIcon",14),n.bVm()),2&t){const e=n.XpG(5);n.R7$(),n.Y8G("ngIf",e.expandIcon),n.R7$(),n.Y8G("ngIf",!e.expandIcon)}}function jke(t,r){if(1&t&&n.nrm(0,"span"),2&t){const e=n.XpG(6);n.HbH(e.collapseIcon)}}function Hke(t,r){1&t&&n.nrm(0,"PlusIcon")}function Uke(t,r){if(1&t&&(n.qex(0),n.DNE(1,jke,1,2,"span",16)(2,Hke,1,0,"PlusIcon",14),n.bVm()),2&t){const e=n.XpG(5);n.R7$(),n.Y8G("ngIf",e.collapseIcon),n.R7$(),n.Y8G("ngIf",!e.collapseIcon)}}function $ke(t,r){if(1&t&&(n.qex(0),n.DNE(1,Vke,3,2,"ng-container",14)(2,Uke,3,2,"ng-container",14),n.bVm()),2&t){const e=n.XpG(4);n.R7$(),n.Y8G("ngIf",!e.collapsed),n.R7$(),n.Y8G("ngIf",e.collapsed)}}function Yke(t,r){}function Wke(t,r){1&t&&n.DNE(0,Yke,0,0,"ng-template")}function zke(t,r){if(1&t&&n.DNE(0,$ke,3,2,"ng-container",14)(1,Wke,1,0,null,15),2&t){const e=n.XpG(3);n.Y8G("ngIf",!(e.headerIconsTemplate||e._headerIconsTemplate||null!=e.toggleButtonProps&&e.toggleButtonProps.icon)),n.R7$(),n.Y8G("ngTemplateOutlet",e.headerIconsTemplate||e._headerIconsTemplate)("ngTemplateOutletContext",n.eq3(3,Oke,e.collapsed))}}function qke(t,r){if(1&t){const e=n.RV6();n.j41(0,"p-button",13),n.bIt("click",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onIconClick(o))})("keydown",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onKeyDown(o))}),n.DNE(1,zke,2,5,"ng-template",null,1,n.C5r),n.k0s()}if(2&t){const e=n.XpG(2);n.Y8G("text",!0)("rounded",!0)("buttonProps",e.toggleButtonProps),n.BMQ("id",e.id+"_header")("aria-label",e.buttonAriaLabel)("aria-controls",e.id+"_content")("aria-expanded",!e.collapsed)}}function Xke(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",8),n.bIt("click",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onHeaderClick(o))}),n.DNE(1,Fke,2,2,"span",9),n.SdG(2,1),n.DNE(3,Pke,1,0,"ng-container",6),n.j41(4,"div",10),n.DNE(5,Nke,1,0,null,6)(6,qke,3,7,"p-button",11),n.k0s()()}if(2&t){const e=n.XpG();n.BMQ("id",e.id+"-titlebar"),n.R7$(),n.Y8G("ngIf",e._header),n.R7$(2),n.Y8G("ngTemplateOutlet",e.headerTemplate||e._headerTemplate),n.R7$(),n.Y8G("ngClass",n.sMw(6,Rke,"start"===e.iconPos,"end"===e.iconPos,"center"===e.iconPos)),n.R7$(),n.Y8G("ngTemplateOutlet",e.iconTemplate||e._iconTemplate),n.R7$(),n.Y8G("ngIf",e.toggleable)}}function Kke(t,r){1&t&&n.eu8(0)}function Qke(t,r){1&t&&n.eu8(0)}function Jke(t,r){if(1&t&&(n.j41(0,"div",17),n.SdG(1,2),n.DNE(2,Qke,1,0,"ng-container",6),n.k0s()),2&t){const e=n.XpG();n.R7$(2),n.Y8G("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)}}let Bx=(()=>{class t extends jo{toggleable;_header;collapsed;style;styleClass;iconPos="end";expandIcon;collapseIcon;showHeader=!0;toggler="icon";transitionOptions="400ms cubic-bezier(0.86, 0, 0.07, 1)";toggleButtonProps;collapsedChange=new n.bkB;onBeforeToggle=new n.bkB;onAfterToggle=new n.bkB;footerFacet;animating;headerTemplate;iconTemplate;contentTemplate;footerTemplate;headerIconsTemplate;_headerTemplate;_iconTemplate;_contentTemplate;_footerTemplate;_headerIconsTemplate;contentWrapperViewChild;id=Bl("pn_id_");get buttonAriaLabel(){return this._header}_componentStyle=(0,n.WQX)(Zne);onHeaderClick(e){"header"===this.toggler&&this.toggle(e)}onIconClick(e){"icon"===this.toggler&&this.toggle(e)}toggle(e){if(this.animating)return!1;this.animating=!0,this.onBeforeToggle.emit({originalEvent:e,collapsed:this.collapsed}),this.toggleable&&(this.collapsed?this.expand():this.collapse()),this.cd.markForCheck(),e.preventDefault()}expand(){this.collapsed=!1,this.collapsedChange.emit(this.collapsed),this.updateTabIndex()}collapse(){this.collapsed=!0,this.collapsedChange.emit(this.collapsed),this.updateTabIndex()}getBlockableElement(){return this.el.nativeElement.children[0]}updateTabIndex(){this.contentWrapperViewChild&&this.contentWrapperViewChild.nativeElement.querySelectorAll('input, button, select, a, textarea, [tabindex]:not([tabindex="-1"])').forEach(i=>{this.collapsed?i.setAttribute("tabindex","-1"):i.removeAttribute("tabindex")})}onKeyDown(e){("Enter"===e.code||"Space"===e.code)&&(this.toggle(e),e.preventDefault())}onToggleDone(e){this.animating=!1,this.onAfterToggle.emit({originalEvent:e,collapsed:this.collapsed})}templates;ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"header":this._headerTemplate=e.template;break;case"content":default:this._contentTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"icons":this._iconTemplate=e.template;break;case"headericons":this._headerIconsTemplate=e.template}})}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["p-panel"]],contentQueries:function(i,o,s){if(1&i&&(n.wni(s,rO,5),n.wni(s,yke,4),n.wni(s,bke,4),n.wni(s,Cke,4),n.wni(s,wke,4),n.wni(s,Tke,4),n.wni(s,hs,4)),2&i){let a;n.mGM(a=n.lsd())&&(o.footerFacet=a.first),n.mGM(a=n.lsd())&&(o.headerTemplate=a.first),n.mGM(a=n.lsd())&&(o.iconTemplate=a.first),n.mGM(a=n.lsd())&&(o.contentTemplate=a.first),n.mGM(a=n.lsd())&&(o.footerTemplate=a.first),n.mGM(a=n.lsd())&&(o.headerIconsTemplate=a.first),n.mGM(a=n.lsd())&&(o.templates=a)}},viewQuery:function(i,o){if(1&i&&n.GBs(Ske,5),2&i){let s;n.mGM(s=n.lsd())&&(o.contentWrapperViewChild=s.first)}},inputs:{toggleable:[2,"toggleable","toggleable",n.L39],_header:[0,"header","_header"],collapsed:[2,"collapsed","collapsed",n.L39],style:"style",styleClass:"styleClass",iconPos:"iconPos",expandIcon:"expandIcon",collapseIcon:"collapseIcon",showHeader:[2,"showHeader","showHeader",n.L39],toggler:"toggler",transitionOptions:"transitionOptions",toggleButtonProps:"toggleButtonProps"},outputs:{collapsedChange:"collapsedChange",onBeforeToggle:"onBeforeToggle",onAfterToggle:"onAfterToggle"},features:[n.Jv_([Zne]),n.GFd,n.Vt3],ngContentSelectors:Eke,decls:8,vars:25,consts:[["contentWrapper",""],["icon",""],[3,"ngClass","ngStyle"],["class","p-panel-header",3,"click",4,"ngIf"],["role","region",1,"p-panel-content-container",3,"id"],[1,"p-panel-content"],[4,"ngTemplateOutlet"],["class","p-panel-footer",4,"ngIf"],[1,"p-panel-header",3,"click"],["class","p-panel-title",4,"ngIf"],[1,"p-panel-icons",3,"ngClass"],["severity","secondary","type","button","role","button","styleClass","p-panel-header-icon p-panel-toggler p-link",3,"text","rounded","buttonProps","click","keydown",4,"ngIf"],[1,"p-panel-title"],["severity","secondary","type","button","role","button","styleClass","p-panel-header-icon p-panel-toggler p-link",3,"click","keydown","text","rounded","buttonProps"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"class",4,"ngIf"],[1,"p-panel-footer"]],template:function(i,o){if(1&i){const s=n.RV6();n.NAR(xke),n.j41(0,"div",2),n.DNE(1,Xke,7,10,"div",3),n.j41(2,"div",4),n.bIt("@panelContent.done",function(l){return n.eBV(s),n.Njj(o.onToggleDone(l))}),n.j41(3,"div",5,0),n.SdG(5),n.DNE(6,Kke,1,0,"ng-container",6),n.k0s(),n.DNE(7,Jke,3,1,"div",7),n.k0s()()}2&i&&(n.HbH(o.styleClass),n.Y8G("ngClass",n.l_i(14,Dke,o.toggleable,!o.collapsed&&o.toggleable))("ngStyle",o.style),n.BMQ("id",o.id)("data-pc-name","panel"),n.R7$(),n.Y8G("ngIf",o.showHeader),n.R7$(),n.Y8G("id",o.id+"_content")("@panelContent",o.collapsed?n.eq3(19,Ike,n.eq3(17,kke,o.animating?o.transitionOptions:"0ms")):n.eq3(23,Mke,n.eq3(21,Ake,o.animating?o.transitionOptions:"0ms"))),n.BMQ("aria-labelledby",o.id+"_header")("aria-hidden",o.collapsed)("tabindex",o.collapsed?"-1":void 0),n.R7$(4),n.Y8G("ngTemplateOutlet",o.contentTemplate||o._contentTemplate),n.R7$(),n.Y8G("ngIf",o.footerFacet||o.footerTemplate||o._footerTemplate))},dependencies:[gn,bi,fi,uo,Jr,k8,Jne,mf,Rp,Di],encapsulation:2,data:{animation:[(0,Hi.hZ)("panelContent",[(0,Hi.wk)("hidden",(0,Hi.iF)({height:"0"})),(0,Hi.wk)("void",(0,Hi.iF)({height:"{{height}}"}),{params:{height:"0"}}),(0,Hi.wk)("visible",(0,Hi.iF)({height:"*"})),(0,Hi.kY)("visible <=> hidden",[(0,Hi.i0)("{{transitionParams}}")]),(0,Hi.kY)("void => hidden",(0,Hi.i0)("{{transitionParams}}")),(0,Hi.kY)("void => visible",(0,Hi.i0)("{{transitionParams}}"))])]},changeDetection:0})}return t})(),Vx=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({imports:[Bx,Di,Di]})}return t})();const Zke=({dt:t})=>`\n.p-popover {\n    margin-top: ${t("popover.gutter")};\n    background: ${t("popover.background")};\n    color: ${t("popover.color")};\n    border: 1px solid ${t("popover.border.color")};\n    border-radius: ${t("popover.border.radius")};\n    box-shadow: ${t("popover.shadow")};\n    position: absolute\n}\n\n.p-popover-content {\n    padding: ${t("popover.content.padding")};\n}\n\n.p-popover-flipped {\n    margin-top: calc(${t("popover.gutter")} * -1);\n    margin-bottom: ${t("popover.gutter")};\n}\n\n.p-popover-enter-from {\n    opacity: 0;\n    transform: scaleY(0.8);\n}\n\n.p-popover-leave-to {\n    opacity: 0;\n}\n\n.p-popover-enter-active {\n    transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n}\n\n.p-popover-leave-active {\n    transition: opacity 0.1s linear;\n}\n\n.p-popover:after,\n.p-popover:before {\n    bottom: 100%;\n    left: ${t("popover.arrow.offset")};\n    content: " ";\n    height: 0;\n    width: 0;\n    position: absolute;\n    pointer-events: none;\n}\n\n.p-popover:after {\n    border-width: calc(${t("popover.gutter")} - 2px);\n    margin-left: calc(-1 * (${t("popover.gutter")} - 2px));\n    border-style: solid;\n    border-color: transparent;\n    border-bottom-color: ${t("popover.background")};\n}\n\n.p-popover:before {\n    border-width: ${t("popover.gutter")};\n    margin-left: calc(-1 * ${t("popover.gutter")});\n    border-style: solid;\n    border-color: transparent;\n    border-bottom-color: ${t("popover.border.color")};\n}\n\n.p-popover-flipped:after,\n.p-popover-flipped:before {\n    bottom: auto;\n    top: 100%;\n}\n\n.p-popover.p-popover-flipped:after {\n    border-bottom-color: transparent;\n    border-top-color: ${t("popover.background")};\n}\n\n.p-popover.p-popover-flipped:before {\n    border-bottom-color: transparent;\n    border-top-color: ${t("popover.border.color")};\n}\n\n`,eIe={root:"p-popover p-component",content:"p-popover-content"};let eie=(()=>{class t extends gs{name="popover";theme=Zke;classes=eIe;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const tIe=["content"],nIe=["*"],iIe=(t,r)=>({showTransitionParams:t,hideTransitionParams:r}),rIe=(t,r)=>({value:t,params:r}),oIe=t=>({closeCallback:t});function sIe(t,r){}function aIe(t,r){1&t&&n.DNE(0,sIe,0,0,"ng-template")}function lIe(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",1),n.bIt("click",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onOverlayClick(o))})("@animation.start",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onAnimationStart(o))})("@animation.done",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onAnimationEnd(o))}),n.j41(1,"div",2),n.bIt("click",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onContentClick(o))})("mousedown",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onContentClick(o))}),n.SdG(2),n.DNE(3,aIe,1,0,null,3),n.k0s()()}if(2&t){const e=n.XpG();n.HbH(e.styleClass),n.Y8G("ngClass","p-popover p-component")("ngStyle",e.style)("@animation",n.l_i(13,rIe,e.overlayVisible?"open":"close",n.l_i(10,iIe,e.showTransitionOptions,e.hideTransitionOptions))),n.BMQ("aria-modal",e.overlayVisible)("aria-label",e.ariaLabel)("aria-labelledBy",e.ariaLabelledBy),n.R7$(3),n.Y8G("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",n.eq3(16,oIe,e.onCloseClick.bind(e)))}}let kv=(()=>{class t extends jo{ariaLabel;ariaLabelledBy;dismissable=!0;style;styleClass;appendTo="body";autoZIndex=!0;ariaCloseLabel;baseZIndex=0;focusOnShow=!0;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";onShow=new n.bkB;onHide=new n.bkB;container;overlayVisible=!1;render=!1;isOverlayAnimationInProgress=!1;selfClick=!1;documentClickListener;target;willHide;scrollHandler;documentResizeListener;contentTemplate;templates;_contentTemplate;destroyCallback;overlayEventListener;overlaySubscription;_componentStyle=(0,n.WQX)(eie);zone=(0,n.WQX)(n.SKi);overlayService=(0,n.WQX)(Cy);ngAfterContentInit(){this.templates.forEach(e=>{"content"===e.getType()&&(this._contentTemplate=e.template)})}bindDocumentClickListener(){if(Gr(this.platformId)&&!this.documentClickListener){let e=CZ()?"touchstart":"click";this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:this.document,e,o=>{this.dismissable&&(!this.container?.contains(o.target)&&this.target!==o.target&&!this.target.contains(o.target)&&!this.selfClick&&this.hide(),this.selfClick=!1,this.cd.markForCheck())})}}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null,this.selfClick=!1)}toggle(e,i){this.isOverlayAnimationInProgress||(this.overlayVisible?(this.hasTargetChanged(e,i)&&(this.destroyCallback=()=>{this.show(null,i||e.currentTarget||e.target)}),this.hide()):this.show(e,i))}show(e,i){i&&e&&e.stopPropagation(),!this.isOverlayAnimationInProgress&&(this.target=i||e.currentTarget||e.target,this.overlayVisible=!0,this.render=!0,this.cd.markForCheck())}onOverlayClick(e){this.overlayService.add({originalEvent:e,target:this.el.nativeElement}),this.selfClick=!0}onContentClick(e){const i=e.target;this.selfClick=e.offsetX<i.clientWidth&&e.offsetY<i.clientHeight}hasTargetChanged(e,i){return null!=this.target&&this.target!==(i||e.currentTarget||e.target)}appendContainer(){this.appendTo&&("body"===this.appendTo?this.renderer.appendChild(this.document.body,this.container):yx(this.appendTo,this.container))}restoreAppend(){this.container&&this.appendTo&&this.renderer.appendChild(this.el.nativeElement,this.container)}align(){this.autoZIndex&&Yc.set("overlay",this.container,this.baseZIndex+this.config.zIndex.overlay),ZD(this.container,this.target,!1);const e=yy(this.container),i=yy(this.target),o=this.document.defaultView?.getComputedStyle(this.container).getPropertyValue("border-radius");let s=0;e.left<i.left&&(s=i.left-e.left-2*parseFloat(o)),this.container?.style.setProperty("--overlayArrowLeft",`${s}px`),e.top<i.top&&Nc(this.container,"p-popover-flipped")}onAnimationStart(e){"open"===e.toState&&(this.container=e.element,this.appendContainer(),this.align(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),this.focusOnShow&&this.focus(),this.overlayEventListener=i=>{this.container&&this.container.contains(i.target)&&(this.selfClick=!0)},this.overlaySubscription=this.overlayService.clickObservable.subscribe(this.overlayEventListener),this.onShow.emit(null)),this.isOverlayAnimationInProgress=!0}onAnimationEnd(e){switch(e.toState){case"void":this.destroyCallback&&(this.destroyCallback(),this.destroyCallback=null),this.overlaySubscription&&this.overlaySubscription.unsubscribe();break;case"close":this.autoZIndex&&Yc.clear(this.container),this.overlaySubscription&&this.overlaySubscription.unsubscribe(),this.onContainerDestroy(),this.onHide.emit({}),this.render=!1}this.isOverlayAnimationInProgress=!1}focus(){let e=xo(this.container,"[autofocus]");e&&this.zone.runOutsideAngular(()=>{setTimeout(()=>e.focus(),5)})}hide(){this.overlayVisible=!1,this.cd.markForCheck()}onCloseClick(e){this.hide(),e.preventDefault()}onEscapeKeydown(e){this.hide()}onWindowResize(){this.overlayVisible&&!by()&&this.hide()}bindDocumentResizeListener(){Gr(this.platformId)&&!this.documentResizeListener&&(this.documentResizeListener=this.renderer.listen(this.document.defaultView,"resize",this.onWindowResize.bind(this)))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindScrollListener(){Gr(this.platformId)&&(this.scrollHandler||(this.scrollHandler=new jw(this.target,()=>{this.overlayVisible&&this.hide()})),this.scrollHandler.bindScrollListener())}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}onContainerDestroy(){this.cd.destroyed||(this.target=null),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener()}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.container&&this.autoZIndex&&Yc.clear(this.container),this.cd.destroyed||(this.target=null),this.destroyCallback=null,this.container&&(this.restoreAppend(),this.onContainerDestroy()),this.overlaySubscription&&this.overlaySubscription.unsubscribe(),super.ngOnDestroy()}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["p-popover"]],contentQueries:function(i,o,s){if(1&i&&(n.wni(s,tIe,4),n.wni(s,hs,4)),2&i){let a;n.mGM(a=n.lsd())&&(o.contentTemplate=a.first),n.mGM(a=n.lsd())&&(o.templates=a)}},hostBindings:function(i,o){1&i&&n.bIt("keydown.escape",function(a){return o.onEscapeKeydown(a)},!1,n.EBC)},inputs:{ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",dismissable:[2,"dismissable","dismissable",n.L39],style:"style",styleClass:"styleClass",appendTo:"appendTo",autoZIndex:[2,"autoZIndex","autoZIndex",n.L39],ariaCloseLabel:"ariaCloseLabel",baseZIndex:[2,"baseZIndex","baseZIndex",n.Udg],focusOnShow:[2,"focusOnShow","focusOnShow",n.L39],showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{onShow:"onShow",onHide:"onHide"},features:[n.Jv_([eie]),n.GFd,n.Vt3],ngContentSelectors:nIe,decls:1,vars:1,consts:[["role","dialog",3,"ngClass","ngStyle","class","click",4,"ngIf"],["role","dialog",3,"click","ngClass","ngStyle"],[1,"p-popover-content",3,"click","mousedown"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,o){1&i&&(n.NAR(),n.DNE(0,lIe,4,18,"div",0)),2&i&&n.Y8G("ngIf",o.render)},dependencies:[gn,bi,fi,uo,Jr,Di],encapsulation:2,data:{animation:[(0,Hi.hZ)("animation",[(0,Hi.wk)("void",(0,Hi.iF)({transform:"scaleY(0.8)",opacity:0})),(0,Hi.wk)("close",(0,Hi.iF)({opacity:0})),(0,Hi.wk)("open",(0,Hi.iF)({transform:"translateY(0)",opacity:1})),(0,Hi.kY)("void => open",(0,Hi.i0)("{{showTransitionParams}}")),(0,Hi.kY)("open => close",(0,Hi.i0)("{{hideTransitionParams}}"))])]},changeDetection:0})}return t})(),K_=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({imports:[kv,Di,Di]})}return t})();const cIe=({dt:t})=>`\n.p-radiobutton {\n    position: relative;\n    display: inline-flex;\n    user-select: none;\n    vertical-align: bottom;\n    width: ${t("radiobutton.width")};\n    height: ${t("radiobutton.height")};\n}\n\n.p-radiobutton-input {\n    cursor: pointer;\n    appearance: none;\n    position: absolute;\n    top: 0;\n    inset-inline-start: 0;\n    width: 100%;\n    height: 100%;\n    padding: 0;\n    margin: 0;\n    opacity: 0;\n    z-index: 1;\n    outline: 0 none;\n    border: 1px solid transparent;\n    border-radius: 50%;\n}\n\n.p-radiobutton-box {\n    display: flex;\n    justify-content: center;\n    align-items: center;\n    border-radius: 50%;\n    border: 1px solid ${t("radiobutton.border.color")};\n    background: ${t("radiobutton.background")};\n    width: ${t("radiobutton.width")};\n    height: ${t("radiobutton.height")};\n    transition: background ${t("radiobutton.transition.duration")}, color ${t("radiobutton.transition.duration")}, border-color ${t("radiobutton.transition.duration")}, box-shadow ${t("radiobutton.transition.duration")}, outline-color ${t("radiobutton.transition.duration")};\n    outline-color: transparent;\n    box-shadow: ${t("radiobutton.shadow")};\n}\n\n.p-radiobutton-icon {\n    transition-duration: ${t("radiobutton.transition.duration")};\n    background: transparent;\n    font-size: ${t("radiobutton.icon.size")};\n    width: ${t("radiobutton.icon.size")};\n    height: ${t("radiobutton.icon.size")};\n    border-radius: 50%;\n    backface-visibility: hidden;\n    transform: translateZ(0) scale(0.1);\n}\n\n.p-radiobutton:not(.p-disabled):has(.p-radiobutton-input:hover) .p-radiobutton-box {\n    border-color: ${t("radiobutton.hover.border.color")};\n}\n\n.p-radiobutton-checked .p-radiobutton-box {\n    border-color: ${t("radiobutton.checked.border.color")};\n    background: ${t("radiobutton.checked.background")};\n}\n\n.p-radiobutton-checked .p-radiobutton-box .p-radiobutton-icon {\n    background: ${t("radiobutton.icon.checked.color")};\n    transform: translateZ(0) scale(1, 1);\n    visibility: visible;\n}\n\n.p-radiobutton-checked:not(.p-disabled):has(.p-radiobutton-input:hover) .p-radiobutton-box {\n    border-color: ${t("radiobutton.checked.hover.border.color")};\n    background: ${t("radiobutton.checked.hover.background")};\n}\n\n.p-radiobutton:not(.p-disabled):has(.p-radiobutton-input:hover).p-radiobutton-checked .p-radiobutton-box .p-radiobutton-icon {\n    background: ${t("radiobutton.icon.checked.hover.color")};\n}\n\n.p-radiobutton:not(.p-disabled):has(.p-radiobutton-input:focus-visible) .p-radiobutton-box {\n    border-color: ${t("radiobutton.focus.border.color")};\n    box-shadow: ${t("radiobutton.focus.ring.shadow")};\n    outline: ${t("radiobutton.focus.ring.width")} ${t("radiobutton.focus.ring.style")} ${t("radiobutton.focus.ring.color")};\n    outline-offset: ${t("radiobutton.focus.ring.offset")};\n}\n\n.p-radiobutton-checked:not(.p-disabled):has(.p-radiobutton-input:focus-visible) .p-radiobutton-box {\n    border-color: ${t("radiobutton.checked.focus.border.color")};\n}\n\n.p-radiobutton.ng-invalid.ng-dirty > .p-radiobutton-box {\n    border-color: ${t("radiobutton.invalid.border.color")};\n}\n\n.p-radiobutton.p-variant-filled .p-radiobutton-box {\n    background: ${t("radiobutton.filled.background")};\n}\n\n.p-radiobutton.p-variant-filled.p-radiobutton-checked .p-radiobutton-box {\n    background: ${t("radiobutton.checked.background")};\n}\n\n.p-radiobutton.p-variant-filled:not(.p-disabled):has(.p-radiobutton-input:hover).p-radiobutton-checked .p-radiobutton-box {\n    background: ${t("radiobutton.checked.hover.background")};\n}\n\n.p-radiobutton.p-disabled {\n    opacity: 1;\n}\n\n.p-radiobutton.p-disabled .p-radiobutton-box {\n    background: ${t("radiobutton.disabled.background")};\n    border-color: ${t("radiobutton.checked.disabled.border.color")};\n}\n\n.p-radiobutton-checked.p-disabled .p-radiobutton-box .p-radiobutton-icon {\n    background: ${t("radiobutton.icon.disabled.color")};\n}\n\n.p-radiobutton-sm,\n.p-radiobutton-sm .p-radiobutton-box {\n    width: ${t("radiobutton.sm.width")};\n    height: ${t("radiobutton.sm.height")};\n}\n\n.p-radiobutton-sm .p-radiobutton-icon {\n    font-size: ${t("radiobutton.icon.sm.size")};\n    width: ${t("radiobutton.icon.sm.size")};\n    height: ${t("radiobutton.icon.sm.size")};\n}\n\n.p-radiobutton-lg,\n.p-radiobutton-lg .p-radiobutton-box {\n    width: ${t("radiobutton.lg.width")};\n    height: ${t("radiobutton.lg.height")};\n}\n\n.p-radiobutton-lg .p-radiobutton-icon {\n    font-size: ${t("radiobutton.icon.lg.size")};\n    width: ${t("radiobutton.icon.lg.size")};\n    height: ${t("radiobutton.icon.lg.size")};\n}\n`,uIe={root:({instance:t,props:r})=>["p-radiobutton p-component",{"p-radiobutton-checked":t.checked,"p-disabled":r.disabled,"p-invalid":r.invalid,"p-variant-filled":r.variant?"filled"===r.variant:"filled"===t.config.inputStyle||"filled"===t.config.inputVariant}],box:"p-radiobutton-box",input:"p-radiobutton-input",icon:"p-radiobutton-icon"};let tie=(()=>{class t extends gs{name="radiobutton";theme=cIe;classes=uIe;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const pIe=["input"],hIe=(t,r,e,i,o)=>({"p-radiobutton p-component":!0,"p-radiobutton-checked":t,"p-disabled":r,"p-variant-filled":e,"p-radiobutton-sm p-inputfield-sm":i,"p-radiobutton-lg p-inputfield-lg":o}),fIe={provide:tl,useExisting:(0,n.Rfq)(()=>Z8),multi:!0};let mIe=(()=>{class t{accessors=[];add(e,i){this.accessors.push([e,i])}remove(e){this.accessors=this.accessors.filter(i=>i[1]!==e)}select(e){this.accessors.forEach(i=>{this.isSameGroup(i,e)&&i[1]!==e&&i[1].writeValue(e.value)})}isSameGroup(e,i){return!!e[0].control&&e[0].control.root===i.control.control.root&&e[1].name===i.name}static \u0275fac=function(i){return new(i||t)};static \u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Z8=(()=>{class t extends jo{value;formControlName;name;disabled;variant="outlined";size;tabindex;inputId;ariaLabelledBy;ariaLabel;style;styleClass;autofocus;binary;onClick=new n.bkB;onFocus=new n.bkB;onBlur=new n.bkB;inputViewChild;onModelChange=()=>{};onModelTouched=()=>{};checked;focused;control;_componentStyle=(0,n.WQX)(tie);injector=(0,n.WQX)(n.zZn);registry=(0,n.WQX)(mIe);ngOnInit(){super.ngOnInit(),this.control=this.injector.get(mg),this.checkName(),this.registry.add(this.control,this)}onChange(e){this.disabled||this.select(e)}select(e){this.disabled||(this.checked=!0,this.onModelChange(this.value),this.registry.select(this),this.onClick.emit({originalEvent:e,value:this.value}))}writeValue(e){this.checked=this.binary?!!e:e==this.value,this.inputViewChild&&this.inputViewChild.nativeElement&&(this.inputViewChild.nativeElement.checked=this.checked),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onInputFocus(e){this.focused=!0,this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onModelTouched(),this.onBlur.emit(e)}focus(){this.inputViewChild.nativeElement.focus()}ngOnDestroy(){this.registry.remove(this),super.ngOnDestroy()}checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this.throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}throwNameError(){throw new Error('\n          If you define both a name and a formControlName attribute on your radio button, their values\n          must match. Ex: <p-radioButton formControlName="food" name="food"></p-radioButton>\n        ')}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["p-radioButton"],["p-radiobutton"],["p-radio-button"]],viewQuery:function(i,o){if(1&i&&n.GBs(pIe,5),2&i){let s;n.mGM(s=n.lsd())&&(o.inputViewChild=s.first)}},inputs:{value:"value",formControlName:"formControlName",name:"name",disabled:[2,"disabled","disabled",n.L39],variant:"variant",size:"size",tabindex:[2,"tabindex","tabindex",n.Udg],inputId:"inputId",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",style:"style",styleClass:"styleClass",autofocus:[2,"autofocus","autofocus",n.L39],binary:[2,"binary","binary",n.L39]},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},features:[n.Jv_([fIe,tie]),n.GFd,n.Vt3],decls:5,vars:24,consts:[["input",""],[3,"ngStyle","ngClass"],["type","radio",1,"p-radiobutton-input",3,"focus","blur","change","checked","disabled","value","pAutoFocus"],[1,"p-radiobutton-box"],[1,"p-radiobutton-icon"]],template:function(i,o){if(1&i){const s=n.RV6();n.j41(0,"div",1)(1,"input",2,0),n.bIt("focus",function(l){return n.eBV(s),n.Njj(o.onInputFocus(l))})("blur",function(l){return n.eBV(s),n.Njj(o.onInputBlur(l))})("change",function(l){return n.eBV(s),n.Njj(o.onChange(l))}),n.k0s(),n.j41(3,"div",3),n.nrm(4,"div",4),n.k0s()()}2&i&&(n.HbH(o.styleClass),n.Y8G("ngStyle",o.style)("ngClass",n.s1E(18,hIe,o.checked,o.disabled,"filled"===o.variant||"filled"===o.config.inputStyle()||"filled"===o.config.inputVariant(),"small"===o.size,"large"===o.size)),n.BMQ("data-pc-name","radiobutton")("data-pc-section","root"),n.R7$(),n.Y8G("checked",o.checked)("disabled",o.disabled)("value",o.value)("pAutoFocus",o.autofocus),n.BMQ("id",o.inputId)("name",o.name)("aria-labelledby",o.ariaLabelledBy)("aria-label",o.ariaLabel)("tabindex",o.tabindex)("aria-checked",o.checked),n.R7$(2),n.BMQ("data-pc-section","input"),n.R7$(),n.BMQ("data-pc-section","icon"))},dependencies:[gn,bi,Jr,Jf,Di],encapsulation:2,changeDetection:0})}return t})(),e7=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({imports:[Z8,Di,Di]})}return t})();const gIe=({dt:t})=>`\n.p-slider {\n    position: relative;\n    background: ${t("slider.track.background")};\n    border-radius: ${t("slider.border.radius")};\n}\n\n.p-slider-handle {\n    cursor: grab;\n    touch-action: none;\n    display: flex;\n    justify-content: center;\n    align-items: center;\n    height: ${t("slider.handle.height")};\n    width: ${t("slider.handle.width")};\n    background: ${t("slider.handle.background")};\n    border-radius: ${t("slider.handle.border.radius")};\n    transition: background ${t("slider.transition.duration")}, color ${t("slider.transition.duration")}, border-color ${t("slider.transition.duration")}, box-shadow ${t("slider.transition.duration")}, outline-color ${t("slider.transition.duration")};\n    outline-color: transparent;\n}\n\n.p-slider-handle::before {\n    content: "";\n    width: ${t("slider.handle.content.width")};\n    height: ${t("slider.handle.content.height")};\n    display: block;\n    background: ${t("slider.handle.content.background")};\n    border-radius: ${t("slider.handle.content.border.radius")};\n    box-shadow: ${t("slider.handle.content.shadow")};\n    transition: background ${t("slider.transition.duration")};\n}\n\n.p-slider:not(.p-disabled) .p-slider-handle:hover {\n    background: ${t("slider.handle.hover.background")};\n}\n\n.p-slider:not(.p-disabled) .p-slider-handle:hover::before {\n    background: ${t("slider.handle.content.hover.background")};\n}\n\n.p-slider-handle:focus-visible {\n    border-color: ${t("slider.handle.focus.border.color")};\n    box-shadow: ${t("slider.handle.focus.ring.shadow")};\n    outline: ${t("slider.handle.focus.ring.width")} ${t("slider.handle.focus.ring.style")} ${t("slider.handle.focus.ring.color")};\n    outline-offset: ${t("slider.handle.focus.ring.offset")};\n}\n\n.p-slider-range {\n    display: block;\n    background: ${t("slider.range.background")};\n    border-radius: ${t("slider.border.radius")};\n}\n\n.p-slider.p-slider-horizontal {\n    height: ${t("slider.track.size")};\n}\n\n.p-slider-horizontal .p-slider-range {\n    top: 0;\n    inset-inline-start: 0;\n    height: 100%;\n}\n\n.p-slider-horizontal .p-slider-handle {\n    top: 50%;\n    margin-top: calc(-1 * calc(${t("slider.handle.height")} / 2));\n    margin-inline-start: calc(-1 * calc(${t("slider.handle.width")} / 2));\n}\n\n.p-slider-vertical {\n    min-height: 100px;\n    width: ${t("slider.track.size")};\n}\n\n.p-slider-vertical .p-slider-handle {\n    inset-inline-start: 50%;\n    margin-inline-start: calc(-1 * calc(${t("slider.handle.width")} / 2));\n    margin-bottom: calc(-1 * calc(${t("slider.handle.height")} / 2));\n}\n\n.p-slider-vertical .p-slider-range {\n    bottom: 0;\n    inset-inline-start: 0;\n    width: 100%;\n}\n`,vIe={handle:{position:"absolute"},range:{position:"absolute"}},_Ie={root:({props:t})=>["p-slider p-component",{"p-disabled":t.disabled,"p-slider-horizontal":"horizontal"===t.orientation,"p-slider-vertical":"vertical"===t.orientation}],range:"p-slider-range",handle:"p-slider-handle"};let nie=(()=>{class t extends gs{name="slider";theme=gIe;classes=_Ie;inlineStyles=vIe;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const bIe=["sliderHandle"],CIe=["sliderHandleStart"],wIe=["sliderHandleEnd"],TIe=(t,r,e,i)=>({"p-slider p-component":!0,"p-disabled":t,"p-slider-horizontal":r,"p-slider-vertical":e,"p-slider-animate":i}),SIe=(t,r)=>({position:"absolute","inset-inline-start":t,width:r}),xIe=(t,r)=>({position:"absolute",bottom:t,height:r}),EIe=t=>({position:"absolute",height:t}),DIe=t=>({position:"absolute",width:t}),OY=(t,r)=>({position:"absolute","inset-inline-start":t,bottom:r}),iie=t=>({"p-slider-handle-active":t});function kIe(t,r){if(1&t&&n.nrm(0,"span",8),2&t){const e=n.XpG();n.Y8G("ngStyle",n.l_i(2,SIe,null!=e.offset?e.offset+"%":e.handleValues[0]+"%",e.diff?e.diff+"%":e.handleValues[1]-e.handleValues[0]+"%")),n.BMQ("data-pc-section","range")}}function IIe(t,r){if(1&t&&n.nrm(0,"span",8),2&t){const e=n.XpG();n.Y8G("ngStyle",n.l_i(2,xIe,null!=e.offset?e.offset+"%":e.handleValues[0]+"%",e.diff?e.diff+"%":e.handleValues[1]-e.handleValues[0]+"%")),n.BMQ("data-pc-section","range")}}function AIe(t,r){if(1&t&&n.nrm(0,"span",8),2&t){const e=n.XpG();n.Y8G("ngStyle",n.eq3(2,EIe,e.handleValue+"%")),n.BMQ("data-pc-section","range")}}function MIe(t,r){if(1&t&&n.nrm(0,"span",8),2&t){const e=n.XpG();n.Y8G("ngStyle",n.eq3(2,DIe,e.handleValue+"%")),n.BMQ("data-pc-section","range")}}function RIe(t,r){if(1&t){const e=n.RV6();n.j41(0,"span",9,0),n.bIt("touchstart",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onDragStart(o))})("touchmove",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onDrag(o))})("touchend",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onDragEnd(o))})("mousedown",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onMouseDown(o))})("keydown",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onKeyDown(o))}),n.k0s()}if(2&t){const e=n.XpG();n.xc7("transition",e.dragging?"none":null),n.Y8G("ngStyle",n.l_i(12,OY,"horizontal"==e.orientation?e.handleValue+"%":null,"vertical"==e.orientation?e.handleValue+"%":null))("pAutoFocus",e.autofocus),n.BMQ("tabindex",e.disabled?null:e.tabindex)("aria-valuemin",e.min)("aria-valuenow",e.value)("aria-valuemax",e.max)("aria-labelledby",e.ariaLabelledBy)("aria-label",e.ariaLabel)("aria-orientation",e.orientation)("data-pc-section","handle")}}function OIe(t,r){if(1&t){const e=n.RV6();n.j41(0,"span",10,1),n.bIt("keydown",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onKeyDown(o,0))})("mousedown",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onMouseDown(o,0))})("touchstart",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onDragStart(o,0))})("touchmove",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onDrag(o))})("touchend",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onDragEnd(o))}),n.k0s()}if(2&t){const e=n.XpG();n.xc7("transition",e.dragging?"none":null),n.Y8G("ngStyle",n.l_i(13,OY,e.rangeStartLeft,e.rangeStartBottom))("ngClass",n.eq3(16,iie,0==e.handleIndex))("pAutoFocus",e.autofocus),n.BMQ("tabindex",e.disabled?null:e.tabindex)("aria-valuemin",e.min)("aria-valuenow",e.value?e.value[0]:null)("aria-valuemax",e.max)("aria-labelledby",e.ariaLabelledBy)("aria-label",e.ariaLabel)("aria-orientation",e.orientation)("data-pc-section","startHandler")}}function FIe(t,r){if(1&t){const e=n.RV6();n.j41(0,"span",11,2),n.bIt("keydown",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onKeyDown(o,1))})("mousedown",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onMouseDown(o,1))})("touchstart",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onDragStart(o,1))})("touchmove",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onDrag(o))})("touchend",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onDragEnd(o))}),n.k0s()}if(2&t){const e=n.XpG();n.xc7("transition",e.dragging?"none":null),n.Y8G("ngStyle",n.l_i(12,OY,e.rangeEndLeft,e.rangeEndBottom))("ngClass",n.eq3(15,iie,1==e.handleIndex)),n.BMQ("tabindex",e.disabled?null:e.tabindex)("aria-valuemin",e.min)("aria-valuenow",e.value?e.value[1]:null)("aria-valuemax",e.max)("aria-labelledby",e.ariaLabelledBy)("aria-label",e.ariaLabel)("aria-orientation",e.orientation)("data-pc-section","endHandler")}}const PIe={provide:tl,useExisting:(0,n.Rfq)(()=>t7),multi:!0};let t7=(()=>{class t extends jo{animate;disabled;min=0;max=100;orientation="horizontal";step;range;style;styleClass;ariaLabel;ariaLabelledBy;tabindex=0;autofocus;onChange=new n.bkB;onSlideEnd=new n.bkB;sliderHandle;sliderHandleStart;sliderHandleEnd;_componentStyle=(0,n.WQX)(nie);value;values;handleValue;handleValues=[];diff;offset;bottom;onModelChange=()=>{};onModelTouched=()=>{};dragging;dragListener;mouseupListener;initX;initY;barWidth;barHeight;sliderHandleClick;handleIndex=0;startHandleValue;startx;starty;ngZone=(0,n.WQX)(n.SKi);onMouseDown(e,i){this.disabled||(this.dragging=!0,this.updateDomData(),this.sliderHandleClick=!0,this.handleIndex=this.range&&this.handleValues&&this.handleValues[0]===this.max?0:i,this.bindDragListeners(),e.target.focus(),e.preventDefault(),this.animate&&ru(this.el.nativeElement.children[0],"p-slider-animate"))}onDragStart(e,i){if(!this.disabled){var o=e.changedTouches[0];this.startHandleValue=this.range?this.handleValues[i]:this.handleValue,this.dragging=!0,this.handleIndex=this.range&&this.handleValues&&this.handleValues[0]===this.max?0:i,"horizontal"===this.orientation?(this.startx=parseInt(o.clientX,10),this.barWidth=this.el.nativeElement.children[0].offsetWidth):(this.starty=parseInt(o.clientY,10),this.barHeight=this.el.nativeElement.children[0].offsetHeight),this.animate&&ru(this.el.nativeElement.children[0],"p-slider-animate"),e.preventDefault()}}onDrag(e){if(!this.disabled){var o,i=e.changedTouches[0];o="horizontal"===this.orientation?Math.floor(100*(parseInt(i.clientX,10)-this.startx)/this.barWidth)+this.startHandleValue:Math.floor(100*(this.starty-parseInt(i.clientY,10))/this.barHeight)+this.startHandleValue,this.setValueFromHandle(e,o),e.preventDefault()}}onDragEnd(e){this.disabled||(this.dragging=!1,this.onSlideEnd.emit(this.range?{originalEvent:e,values:this.values}:{originalEvent:e,value:this.value}),this.animate&&Nc(this.el.nativeElement.children[0],"p-slider-animate"),e.preventDefault())}onBarClick(e){this.disabled||(this.sliderHandleClick||(this.updateDomData(),this.handleChange(e),this.onSlideEnd.emit(this.range?{originalEvent:e,values:this.values}:{originalEvent:e,value:this.value})),this.sliderHandleClick=!1)}onKeyDown(e,i){switch(this.handleIndex=i,e.code){case"ArrowDown":case"ArrowLeft":this.decrementValue(e,i),e.preventDefault();break;case"ArrowUp":case"ArrowRight":this.incrementValue(e,i),e.preventDefault();break;case"PageDown":this.decrementValue(e,i,!0),e.preventDefault();break;case"PageUp":this.incrementValue(e,i,!0),e.preventDefault();break;case"Home":this.updateValue(this.min,e),e.preventDefault();break;case"End":this.updateValue(this.max,e),e.preventDefault()}}decrementValue(e,i,o=!1){let s;s=this.range?this.step?this.values[i]-this.step:this.values[i]-1:this.step?this.value-this.step:!this.step&&o?this.value-10:this.value-1,this.updateValue(s,e),e.preventDefault()}incrementValue(e,i,o=!1){let s;s=this.range?this.step?this.values[i]+this.step:this.values[i]+1:this.step?this.value+this.step:!this.step&&o?this.value+10:this.value+1,this.updateValue(s,e),e.preventDefault()}handleChange(e){let i=this.calculateHandleValue(e);this.setValueFromHandle(e,i)}bindDragListeners(){Gr(this.platformId)&&this.ngZone.runOutsideAngular(()=>{const e=this.el?this.el.nativeElement.ownerDocument:this.document;this.dragListener||(this.dragListener=this.renderer.listen(e,"mousemove",i=>{this.dragging&&this.ngZone.run(()=>{this.handleChange(i)})})),this.mouseupListener||(this.mouseupListener=this.renderer.listen(e,"mouseup",i=>{this.dragging&&(this.dragging=!1,this.ngZone.run(()=>{this.onSlideEnd.emit(this.range?{originalEvent:i,values:this.values}:{originalEvent:i,value:this.value}),this.animate&&Nc(this.el.nativeElement.children[0],"p-slider-animate")}))}))})}unbindDragListeners(){this.dragListener&&(this.dragListener(),this.dragListener=null),this.mouseupListener&&(this.mouseupListener(),this.mouseupListener=null)}setValueFromHandle(e,i){let o=this.getValueFromHandle(i);this.range?this.step?this.handleStepChange(o,this.values[this.handleIndex]):(this.handleValues[this.handleIndex]=i,this.updateValue(o,e)):this.step?this.handleStepChange(o,this.value):(this.handleValue=i,this.updateValue(o,e)),this.cd.markForCheck()}handleStepChange(e,i){let o=e-i,s=i,a=this.step;o<0?s=i+Math.ceil(e/a-i/a)*a:o>0&&(s=i+Math.floor(e/a-i/a)*a),this.updateValue(s),this.updateHandleValue()}writeValue(e){this.range?this.values=e||[0,0]:this.value=e||0,this.updateHandleValue(),this.updateDiffAndOffset(),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}get rangeStartLeft(){return this.isVertical()?null:this.handleValues[0]>100?"100%":this.handleValues[0]+"%"}get rangeStartBottom(){return this.isVertical()?this.handleValues[0]+"%":"auto"}get rangeEndLeft(){return this.isVertical()?null:this.handleValues[1]+"%"}get rangeEndBottom(){return this.isVertical()?this.handleValues[1]+"%":"auto"}isVertical(){return"vertical"===this.orientation}updateDomData(){let e=this.el.nativeElement.children[0].getBoundingClientRect();this.initX=e.left+o$(),this.initY=e.top+s$(),this.barWidth=this.el.nativeElement.children[0].offsetWidth,this.barHeight=this.el.nativeElement.children[0].offsetHeight}calculateHandleValue(e){return"horizontal"===this.orientation?p$(this.el.nativeElement)?100*(this.initX+this.barWidth-e.pageX)/this.barWidth:100*(e.pageX-this.initX)/this.barWidth:100*(this.initY+this.barHeight-e.pageY)/this.barHeight}updateHandleValue(){this.range?(this.handleValues[0]=100*(this.values[0]<this.min?0:this.values[0]-this.min)/(this.max-this.min),this.handleValues[1]=100*(this.values[1]>this.max?100:this.values[1]-this.min)/(this.max-this.min)):this.handleValue=this.value<this.min?0:this.value>this.max?100:100*(this.value-this.min)/(this.max-this.min),this.step&&this.updateDiffAndOffset()}updateDiffAndOffset(){this.diff=this.getDiff(),this.offset=this.getOffset()}getDiff(){return Math.abs(this.handleValues[0]-this.handleValues[1])}getOffset(){return Math.min(this.handleValues[0],this.handleValues[1])}updateValue(e,i){if(this.range){let o=e;0==this.handleIndex?(o<this.min?(o=this.min,this.handleValues[0]=0):o>this.values[1]&&o>this.max&&(o=this.max,this.handleValues[0]=100),this.sliderHandleStart?.nativeElement.focus()):(o>this.max?(o=this.max,this.handleValues[1]=100,this.offset=this.handleValues[1]):o<this.min?(o=this.min,this.handleValues[1]=0):o<this.values[0]&&(this.offset=this.handleValues[1]),this.sliderHandleEnd?.nativeElement.focus()),this.step?this.updateHandleValue():this.updateDiffAndOffset(),this.values[this.handleIndex]=this.getNormalizedValue(o),this.onModelChange([this.minVal,this.maxVal]),this.onChange.emit({event:i,values:this.values})}else e<this.min?(e=this.min,this.handleValue=0):e>this.max&&(e=this.max,this.handleValue=100),this.value=this.getNormalizedValue(e),this.onModelChange(this.value),this.onChange.emit({event:i,value:this.value}),this.sliderHandle?.nativeElement.focus();this.updateHandleValue()}getValueFromHandle(e){return e/100*(this.max-this.min)+this.min}getDecimalsCount(e){return e&&Math.floor(e)!==e&&e.toString().split(".")[1].length||0}getNormalizedValue(e){let i=this.getDecimalsCount(this.step);return i>0?+parseFloat(e.toString()).toFixed(i):Math.floor(e)}ngOnDestroy(){this.unbindDragListeners(),super.ngOnDestroy()}get minVal(){return Math.min(this.values[1],this.values[0])}get maxVal(){return Math.max(this.values[1],this.values[0])}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["p-slider"]],viewQuery:function(i,o){if(1&i&&(n.GBs(bIe,5),n.GBs(CIe,5),n.GBs(wIe,5)),2&i){let s;n.mGM(s=n.lsd())&&(o.sliderHandle=s.first),n.mGM(s=n.lsd())&&(o.sliderHandleStart=s.first),n.mGM(s=n.lsd())&&(o.sliderHandleEnd=s.first)}},inputs:{animate:[2,"animate","animate",n.L39],disabled:[2,"disabled","disabled",n.L39],min:[2,"min","min",n.Udg],max:[2,"max","max",n.Udg],orientation:"orientation",step:[2,"step","step",n.Udg],range:[2,"range","range",n.L39],style:"style",styleClass:"styleClass",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",tabindex:[2,"tabindex","tabindex",n.Udg],autofocus:[2,"autofocus","autofocus",n.L39]},outputs:{onChange:"onChange",onSlideEnd:"onSlideEnd"},features:[n.Jv_([PIe,nie]),n.GFd,n.Vt3],decls:8,vars:18,consts:[["sliderHandle",""],["sliderHandleStart",""],["sliderHandleEnd",""],[3,"click","ngStyle","ngClass"],["class","p-slider-range",3,"ngStyle",4,"ngIf"],["class","p-slider-handle","role","slider",3,"transition","ngStyle","pAutoFocus","touchstart","touchmove","touchend","mousedown","keydown",4,"ngIf"],["class","p-slider-handle","role","slider",3,"transition","ngStyle","ngClass","pAutoFocus","keydown","mousedown","touchstart","touchmove","touchend",4,"ngIf"],["class","p-slider-handle","role","slider",3,"transition","ngStyle","ngClass","keydown","mousedown","touchstart","touchmove","touchend",4,"ngIf"],[1,"p-slider-range",3,"ngStyle"],["role","slider",1,"p-slider-handle",3,"touchstart","touchmove","touchend","mousedown","keydown","ngStyle","pAutoFocus"],["role","slider",1,"p-slider-handle",3,"keydown","mousedown","touchstart","touchmove","touchend","ngStyle","ngClass","pAutoFocus"],["role","slider",1,"p-slider-handle",3,"keydown","mousedown","touchstart","touchmove","touchend","ngStyle","ngClass"]],template:function(i,o){1&i&&(n.j41(0,"div",3),n.bIt("click",function(a){return o.onBarClick(a)}),n.DNE(1,kIe,1,5,"span",4)(2,IIe,1,5,"span",4)(3,AIe,1,4,"span",4)(4,MIe,1,4,"span",4)(5,RIe,2,15,"span",5)(6,OIe,2,18,"span",6)(7,FIe,2,17,"span",7),n.k0s()),2&i&&(n.HbH(o.styleClass),n.Y8G("ngStyle",o.style)("ngClass",n.ziG(13,TIe,o.disabled,"horizontal"==o.orientation,"vertical"==o.orientation,o.animate)),n.BMQ("data-pc-name","slider")("data-pc-section","root"),n.R7$(),n.Y8G("ngIf",o.range&&"horizontal"==o.orientation),n.R7$(),n.Y8G("ngIf",o.range&&"vertical"==o.orientation),n.R7$(),n.Y8G("ngIf",!o.range&&"vertical"==o.orientation),n.R7$(),n.Y8G("ngIf",!o.range&&"horizontal"==o.orientation),n.R7$(),n.Y8G("ngIf",!o.range),n.R7$(),n.Y8G("ngIf",o.range),n.R7$(),n.Y8G("ngIf",o.range))},dependencies:[gn,bi,fi,Jr,Jf,Di],encapsulation:2,changeDetection:0})}return t})(),n7=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({imports:[t7,Di,Di]})}return t})();function LIe(){const t=new Hw,r=t.link;return t.link=e=>r.call(t,e).replace(/^<a /,'<a role="link" tabindex="0" target="_blank" rel="nofollow noopener noreferrer" '),{renderer:t,gfm:!0,breaks:!1,pedantic:!1}}qo.registerModules([Xee]);let th=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=n.$C({type:t})}static{this.\u0275inj=n.G2t({providers:[{provide:Window,useValue:window}],imports:[gn,L$,Ra,xv,$w,rY,vg,Zp,jte,sY,Rh,Qne,U$,G1e.forRoot({markedOptions:{provide:_te,useFactory:LIe}}),Vx,K_,e7,n7,Rh,n7]})}}return t})(),NIe=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=n.$C({type:t})}static{this.\u0275inj=n.G2t({imports:[Zp,th,gn]})}}return t})();const GIe=[];let BIe=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=n.$C({type:t})}static{this.\u0275inj=n.G2t({imports:[AO.forRoot(GIe),AO]})}}return t})();const VIe=({dt:t})=>`\n.p-progressspinner {\n    position: relative;\n    margin: 0 auto;\n    width: 100px;\n    height: 100px;\n    display: inline-block;\n}\n\n.p-progressspinner::before {\n    content: "";\n    display: block;\n    padding-top: 100%;\n}\n\n.p-progressspinner-spin {\n    height: 100%;\n    transform-origin: center center;\n    width: 100%;\n    position: absolute;\n    top: 0;\n    bottom: 0;\n    left: 0;\n    right: 0;\n    margin: auto;\n    animation: p-progressspinner-rotate 2s linear infinite;\n}\n\n.p-progressspinner-circle {\n    stroke-dasharray: 89, 200;\n    stroke-dashoffset: 0;\n    stroke: ${t("progressspinner.color.1")};\n    animation: p-progressspinner-dash 1.5s ease-in-out infinite, p-progressspinner-color 6s ease-in-out infinite;\n    stroke-linecap: round;\n}\n\n@keyframes p-progressspinner-rotate {\n    100% {\n        transform: rotate(360deg);\n    }\n}\n@keyframes p-progressspinner-dash {\n    0% {\n        stroke-dasharray: 1, 200;\n        stroke-dashoffset: 0;\n    }\n    50% {\n        stroke-dasharray: 89, 200;\n        stroke-dashoffset: -35px;\n    }\n    100% {\n        stroke-dasharray: 89, 200;\n        stroke-dashoffset: -124px;\n    }\n}\n@keyframes p-progressspinner-color {\n    100%,\n    0% {\n        stroke: ${t("progressspinner.color.1")};\n    }\n    40% {\n        stroke: ${t("progressspinner.color.2")};\n    }\n    66% {\n        stroke: ${t("progressspinner.color.3")};\n    }\n    80%,\n    90% {\n        stroke: ${t("progressspinner.color.4")};\n    }\n}\n`,jIe={root:"p-progressspinner",spin:"p-progressspinner-spin",circle:"p-progressspinner-circle"};let rie=(()=>{class t extends gs{name="progressspinner";theme=VIe;classes=jIe;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})(),Q_=(()=>{class t extends jo{styleClass;style;strokeWidth="2";fill="none";animationDuration="2s";ariaLabel;_componentStyle=(0,n.WQX)(rie);static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["p-progressSpinner"],["p-progress-spinner"],["p-progressspinner"]],inputs:{styleClass:"styleClass",style:"style",strokeWidth:"strokeWidth",fill:"fill",animationDuration:"animationDuration",ariaLabel:"ariaLabel"},features:[n.Jv_([rie]),n.Vt3],decls:3,vars:11,consts:[["role","progressbar",1,"p-progressspinner",3,"ngStyle","ngClass"],["viewBox","25 25 50 50",1,"p-progressspinner-spin"],["cx","50","cy","50","r","20","stroke-miterlimit","10",1,"p-progressspinner-circle"]],template:function(i,o){1&i&&(n.j41(0,"div",0),n.qSk(),n.j41(1,"svg",1),n.nrm(2,"circle",2),n.k0s()()),2&i&&(n.Y8G("ngStyle",o.style)("ngClass",o.styleClass),n.BMQ("aria-label",o.ariaLabel)("aria-busy",!0)("data-pc-name","progressspinner")("data-pc-section","root"),n.R7$(),n.xc7("animation-duration",o.animationDuration),n.BMQ("data-pc-section","root"),n.R7$(),n.BMQ("fill",o.fill)("stroke-width",o.strokeWidth))},dependencies:[gn,bi,Jr,Di],encapsulation:2,changeDetection:0})}return t})(),Iv=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({imports:[Q_,Di,Di]})}return t})(),jx=(()=>{class t extends Gc{static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["ChevronLeftIcon"]],features:[n.Vt3],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M9.61296 13C9.50997 13.0005 9.40792 12.9804 9.3128 12.9409C9.21767 12.9014 9.13139 12.8433 9.05902 12.7701L3.83313 7.54416C3.68634 7.39718 3.60388 7.19795 3.60388 6.99022C3.60388 6.78249 3.68634 6.58325 3.83313 6.43628L9.05902 1.21039C9.20762 1.07192 9.40416 0.996539 9.60724 1.00012C9.81032 1.00371 10.0041 1.08597 10.1477 1.22959C10.2913 1.37322 10.3736 1.56698 10.3772 1.77005C10.3808 1.97313 10.3054 2.16968 10.1669 2.31827L5.49496 6.99022L10.1669 11.6622C10.3137 11.8091 10.3962 12.0084 10.3962 12.2161C10.3962 12.4238 10.3137 12.6231 10.1669 12.7701C10.0945 12.8433 10.0083 12.9014 9.91313 12.9409C9.81801 12.9804 9.71596 13.0005 9.61296 13Z","fill","currentColor"]],template:function(i,o){1&i&&(n.qSk(),n.j41(0,"svg",0),n.nrm(1,"path",1),n.k0s()),2&i&&(n.HbH(o.getClassNames()),n.BMQ("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),qw=(()=>{class t extends Gc{static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["ChevronRightIcon"]],features:[n.Vt3],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z","fill","currentColor"]],template:function(i,o){1&i&&(n.qSk(),n.j41(0,"svg",0),n.nrm(1,"path",1),n.k0s()),2&i&&(n.HbH(o.getClassNames()),n.BMQ("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),i7=(()=>{class t extends Gc{static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["ChevronUpIcon"]],features:[n.Vt3],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M12.2097 10.4113C12.1057 10.4118 12.0027 10.3915 11.9067 10.3516C11.8107 10.3118 11.7237 10.2532 11.6506 10.1792L6.93602 5.46461L2.22139 10.1476C2.07272 10.244 1.89599 10.2877 1.71953 10.2717C1.54307 10.2556 1.3771 10.1808 1.24822 10.0593C1.11933 9.93766 1.035 9.77633 1.00874 9.6011C0.982477 9.42587 1.0158 9.2469 1.10338 9.09287L6.37701 3.81923C6.52533 3.6711 6.72639 3.58789 6.93602 3.58789C7.14565 3.58789 7.3467 3.6711 7.49502 3.81923L12.7687 9.09287C12.9168 9.24119 13 9.44225 13 9.65187C13 9.8615 12.9168 10.0626 12.7687 10.2109C12.616 10.3487 12.4151 10.4207 12.2097 10.4113Z","fill","currentColor"]],template:function(i,o){1&i&&(n.qSk(),n.j41(0,"svg",0),n.nrm(1,"path",1),n.k0s()),2&i&&(n.HbH(o.getClassNames()),n.BMQ("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),oie=(()=>{class t extends Gc{static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["CalendarIcon"]],features:[n.Vt3],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.7838 1.51351H9.83783V0.567568C9.83783 0.417039 9.77804 0.272676 9.6716 0.166237C9.56516 0.0597971 9.42079 0 9.27027 0C9.11974 0 8.97538 0.0597971 8.86894 0.166237C8.7625 0.272676 8.7027 0.417039 8.7027 0.567568V1.51351H5.29729V0.567568C5.29729 0.417039 5.2375 0.272676 5.13106 0.166237C5.02462 0.0597971 4.88025 0 4.72973 0C4.5792 0 4.43484 0.0597971 4.3284 0.166237C4.22196 0.272676 4.16216 0.417039 4.16216 0.567568V1.51351H3.21621C2.66428 1.51351 2.13494 1.73277 1.74467 2.12305C1.35439 2.51333 1.13513 3.04266 1.13513 3.59459V11.9189C1.13513 12.4709 1.35439 13.0002 1.74467 13.3905C2.13494 13.7807 2.66428 14 3.21621 14H10.7838C11.3357 14 11.865 13.7807 12.2553 13.3905C12.6456 13.0002 12.8649 12.4709 12.8649 11.9189V3.59459C12.8649 3.04266 12.6456 2.51333 12.2553 2.12305C11.865 1.73277 11.3357 1.51351 10.7838 1.51351ZM3.21621 2.64865H4.16216V3.59459C4.16216 3.74512 4.22196 3.88949 4.3284 3.99593C4.43484 4.10237 4.5792 4.16216 4.72973 4.16216C4.88025 4.16216 5.02462 4.10237 5.13106 3.99593C5.2375 3.88949 5.29729 3.74512 5.29729 3.59459V2.64865H8.7027V3.59459C8.7027 3.74512 8.7625 3.88949 8.86894 3.99593C8.97538 4.10237 9.11974 4.16216 9.27027 4.16216C9.42079 4.16216 9.56516 4.10237 9.6716 3.99593C9.77804 3.88949 9.83783 3.74512 9.83783 3.59459V2.64865H10.7838C11.0347 2.64865 11.2753 2.74831 11.4527 2.92571C11.6301 3.10311 11.7297 3.34371 11.7297 3.59459V5.67568H2.27027V3.59459C2.27027 3.34371 2.36993 3.10311 2.54733 2.92571C2.72473 2.74831 2.96533 2.64865 3.21621 2.64865ZM10.7838 12.8649H3.21621C2.96533 12.8649 2.72473 12.7652 2.54733 12.5878C2.36993 12.4104 2.27027 12.1698 2.27027 11.9189V6.81081H11.7297V11.9189C11.7297 12.1698 11.6301 12.4104 11.4527 12.5878C11.2753 12.7652 11.0347 12.8649 10.7838 12.8649Z","fill","currentColor"]],template:function(i,o){1&i&&(n.qSk(),n.j41(0,"svg",0),n.nrm(1,"path",1),n.k0s()),2&i&&(n.HbH(o.getClassNames()),n.BMQ("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})();const UIe=({dt:t})=>`\n.p-datepicker {\n    position: relative;\n    display: inline-flex;\n    max-width: 100%;\n}\n\n.p-datepicker-input {\n    flex: 1 1 auto;\n    width: 1%;\n}\n\n.p-datepicker:has(.p-datepicker-dropdown) .p-datepicker-input {\n    border-start-end-radius: 0;\n    border-end-end-radius: 0;\n}\n\n.p-datepicker-dropdown {\n    cursor: pointer;\n    display: inline-flex;\n    user-select: none;\n    align-items: center;\n    justify-content: center;\n    overflow: hidden;\n    position: relative;\n    width: ${t("datepicker.dropdown.width")};\n    border-start-end-radius: ${t("datepicker.dropdown.border.radius")};\n    border-end-end-radius: ${t("datepicker.dropdown.border.radius")};\n    background: ${t("datepicker.dropdown.background")};\n    border: 1px solid ${t("datepicker.dropdown.border.color")};\n    border-inline-start: 0 none;\n    color: ${t("datepicker.dropdown.color")};\n    transition: background ${t("datepicker.transition.duration")}, color ${t("datepicker.transition.duration")}, border-color ${t("datepicker.transition.duration")}, outline-color ${t("datepicker.transition.duration")};\n    outline-color: transparent;\n}\n\n.p-datepicker-dropdown:not(:disabled):hover {\n    background: ${t("datepicker.dropdown.hover.background")};\n    border-color: ${t("datepicker.dropdown.hover.border.color")};\n    color: ${t("datepicker.dropdown.hover.color")};\n}\n\n.p-datepicker-dropdown:not(:disabled):active {\n    background: ${t("datepicker.dropdown.active.background")};\n    border-color: ${t("datepicker.dropdown.active.border.color")};\n    color: ${t("datepicker.dropdown.active.color")};\n}\n\n.p-datepicker-dropdown:focus-visible {\n    box-shadow: ${t("datepicker.dropdown.focus.ring.shadow")};\n    outline: ${t("datepicker.dropdown.focus.ring.width")} ${t("datepicker.dropdown.focus.ring.style")} ${t("datepicker.dropdown.focus.ring.color")};\n    outline-offset: ${t("datepicker.dropdown.focus.ring.offset")};\n}\n\n.p-datepicker:has(.p-datepicker-input-icon-container) {\n    position: relative;\n}\n\n.p-datepicker:has(.p-datepicker-input-icon-container) .p-datepicker-input {\n    padding-inline-end: calc((${t("form.field.padding.x")} * 2) + ${t("icon.size")});\n}\n\n.p-datepicker-input-icon-container {\n    cursor: pointer;\n    position: absolute;\n    top: 50%;\n    inset-inline-end: ${t("form.field.padding.x")};\n    margin-top: calc(-1 * (${t("icon.size")} / 2));\n    color: ${t("datepicker.input.icon.color")};\n    line-height: 1;\n}\n\n.p-datepicker-fluid {\n    display: flex;\n}\n\n.p-datepicker-fluid .p-datepicker-input {\n    width: 1%;\n}\n\n.p-datepicker .p-datepicker-panel {\n    min-width: 100%;\n}\n\n.p-datepicker-panel {\n    width: auto;\n    padding: ${t("datepicker.panel.padding")};\n    background: ${t("datepicker.panel.background")};\n    color: ${t("datepicker.panel.color")};\n    border: 1px solid ${t("datepicker.panel.border.color")};\n    border-radius: ${t("datepicker.panel.border.radius")};\n    box-shadow: ${t("datepicker.panel.shadow")};\n}\n\n.p-datepicker-panel-inline {\n    display: inline-block;\n    overflow-x: auto;\n    box-shadow: none;\n}\n\n.p-datepicker-header {\n    display: flex;\n    align-items: center;\n    justify-content: space-between;\n    padding: ${t("datepicker.header.padding")};\n    background: ${t("datepicker.header.background")};\n    color: ${t("datepicker.header.color")};\n    border-bottom: 1px solid ${t("datepicker.header.border.color")};\n}\n\n.p-datepicker-next-button:dir(rtl) {\n    transform: rotate(180deg);\n}\n\n.p-datepicker-prev-button:dir(rtl) {\n    transform: rotate(180deg);\n}\n\n.p-datepicker-title {\n    display: flex;\n    align-items: center;\n    justify-content: space-between;\n    gap: ${t("datepicker.title.gap")};\n    font-weight: ${t("datepicker.title.font.weight")};\n}\n\n.p-datepicker-select-year,\n.p-datepicker-select-month {\n    border: none;\n    background: transparent;\n    margin: 0;\n    cursor: pointer;\n    font-weight: inherit;\n    transition: background ${t("datepicker.transition.duration")}, color ${t("datepicker.transition.duration")}, border-color ${t("datepicker.transition.duration")}, outline-color ${t("datepicker.transition.duration")}, box-shadow ${t("datepicker.transition.duration")};\n}\n\n.p-datepicker-select-month {\n    padding: ${t("datepicker.select.month.padding")};\n    color: ${t("datepicker.select.month.color")};\n    border-radius: ${t("datepicker.select.month.border.radius")};\n}\n\n.p-datepicker-select-year {\n    padding: ${t("datepicker.select.year.padding")};\n    color: ${t("datepicker.select.year.color")};\n    border-radius: ${t("datepicker.select.year.border.radius")};\n}\n\n.p-datepicker-select-month:enabled:hover {\n    background: ${t("datepicker.select.month.hover.background")};\n    color: ${t("datepicker.select.month.hover.color")};\n}\n\n.p-datepicker-select-year:enabled:hover {\n    background: ${t("datepicker.select.year.hover.background")};\n    color: ${t("datepicker.select.year.hover.color")};\n}\n\n.p-datepicker-calendar-container {\n    display: flex;\n}\n\n.p-datepicker-calendar-container .p-datepicker-calendar {\n    flex: 1 1 auto;\n    border-inline-start: 1px solid ${t("datepicker.group.border.color")};\n    padding-inline: ${t("datepicker.group.gap")};\n}\n\n.p-datepicker-calendar-container .p-datepicker-calendar:first-child {\n    padding-inline-start: 0;\n    border-inline-start: 0 none;\n}\n\n.p-datepicker-calendar-container .p-datepicker-calendar:last-child {\n    padding-inline-end: 0;\n}\n\n.p-datepicker-day-view {\n    width: 100%;\n    border-collapse: collapse;\n    font-size: 1rem;\n    margin: ${t("datepicker.day.view.margin")};\n}\n\n.p-datepicker-weekday-cell {\n    padding: ${t("datepicker.week.day.padding")};\n}\n\n.p-datepicker-weekday {\n    font-weight: ${t("datepicker.week.day.font.weight")};\n    color: ${t("datepicker.week.day.color")};\n}\n\n.p-datepicker-day-cell {\n    padding: ${t("datepicker.date.padding")};\n}\n\n.p-datepicker-day {\n    display: flex;\n    justify-content: center;\n    align-items: center;\n    cursor: pointer;\n    margin: 0 auto;\n    overflow: hidden;\n    position: relative;\n    width: ${t("datepicker.date.width")};\n    height: ${t("datepicker.date.height")};\n    border-radius: ${t("datepicker.date.border.radius")};\n    transition: background ${t("datepicker.transition.duration")}, color ${t("datepicker.transition.duration")}, border-color ${t("datepicker.transition.duration")},\n        box-shadow ${t("datepicker.transition.duration")}, outline-color ${t("datepicker.transition.duration")};\n    border: 1px solid transparent;\n    outline-color: transparent;\n    color: ${t("datepicker.date.color")};\n}\n\n.p-datepicker-day:not(.p-datepicker-day-selected):not(.p-disabled):hover {\n    background: ${t("datepicker.date.hover.background")};\n    color: ${t("datepicker.date.hover.color")};\n}\n\n.p-datepicker-day:focus-visible {\n    box-shadow: ${t("datepicker.date.focus.ring.shadow")};\n    outline: ${t("datepicker.date.focus.ring.width")} ${t("datepicker.date.focus.ring.style")} ${t("datepicker.date.focus.ring.color")};\n    outline-offset: ${t("datepicker.date.focus.ring.offset")};\n}\n\n.p-datepicker-day-selected {\n    background: ${t("datepicker.date.selected.background")};\n    color: ${t("datepicker.date.selected.color")};\n}\n\n.p-datepicker-day-selected-range {\n    background: ${t("datepicker.date.range.selected.background")};\n    color: ${t("datepicker.date.range.selected.color")};\n}\n\n.p-datepicker-today > .p-datepicker-day {\n    background: ${t("datepicker.today.background")};\n    color: ${t("datepicker.today.color")};\n}\n\n.p-datepicker-today > .p-datepicker-day-selected {\n    background: ${t("datepicker.date.selected.background")};\n    color: ${t("datepicker.date.selected.color")};\n}\n\n.p-datepicker-today > .p-datepicker-day-selected-range {\n    background: ${t("datepicker.date.range.selected.background")};\n    color: ${t("datepicker.date.range.selected.color")};\n}\n\n.p-datepicker-weeknumber {\n    text-align: center\n}\n\n.p-datepicker-month-view {\n    margin: ${t("datepicker.month.view.margin")};\n}\n\n.p-datepicker-month {\n    width: 33.3%;\n    display: inline-flex;\n    align-items: center;\n    justify-content: center;\n    cursor: pointer;\n    overflow: hidden;\n    position: relative;\n    padding: ${t("datepicker.month.padding")};\n    transition: background ${t("datepicker.transition.duration")}, color ${t("datepicker.transition.duration")}, border-color ${t("datepicker.transition.duration")}, box-shadow ${t("datepicker.transition.duration")}, outline-color ${t("datepicker.transition.duration")};\n    border-radius: ${t("datepicker.month.border.radius")};\n    outline-color: transparent;\n    color: ${t("datepicker.date.color")};\n}\n\n.p-datepicker-month:not(.p-disabled):not(.p-datepicker-month-selected):hover {\n    color:  ${t("datepicker.date.hover.color")};\n    background: ${t("datepicker.date.hover.background")};\n}\n\n.p-datepicker-month-selected {\n    color: ${t("datepicker.date.selected.color")};\n    background: ${t("datepicker.date.selected.background")};\n}\n\n.p-datepicker-month:not(.p-disabled):focus-visible {\n    box-shadow: ${t("datepicker.date.focus.ring.shadow")};\n    outline: ${t("datepicker.date.focus.ring.width")} ${t("datepicker.date.focus.ring.style")} ${t("datepicker.date.focus.ring.color")};\n    outline-offset: ${t("datepicker.date.focus.ring.offset")};\n}\n\n.p-datepicker-year-view {\n    margin: ${t("datepicker.year.view.margin")};\n}\n\n.p-datepicker-year {\n    width: 50%;\n    display: inline-flex;\n    align-items: center;\n    justify-content: center;\n    cursor: pointer;\n    overflow: hidden;\n    position: relative;\n    padding: ${t("datepicker.year.padding")};\n    transition: background ${t("datepicker.transition.duration")}, color ${t("datepicker.transition.duration")}, border-color ${t("datepicker.transition.duration")}, box-shadow ${t("datepicker.transition.duration")}, outline-color ${t("datepicker.transition.duration")};\n    border-radius: ${t("datepicker.year.border.radius")};\n    outline-color: transparent;\n    color: ${t("datepicker.date.color")};\n}\n\n.p-datepicker-year:not(.p-disabled):not(.p-datepicker-year-selected):hover {\n    color: ${t("datepicker.date.hover.color")};\n    background: ${t("datepicker.date.hover.background")};\n}\n\n.p-datepicker-year-selected {\n    color: ${t("datepicker.date.selected.color")};\n    background: ${t("datepicker.date.selected.background")};\n}\n\n.p-datepicker-year:not(.p-disabled):focus-visible {\n    box-shadow: ${t("datepicker.date.focus.ring.shadow")};\n    outline: ${t("datepicker.date.focus.ring.width")} ${t("datepicker.date.focus.ring.style")} ${t("datepicker.date.focus.ring.color")};\n    outline-offset: ${t("datepicker.date.focus.ring.offset")};\n}\n\n.p-datepicker-buttonbar {\n    display: flex;\n    justify-content: space-between;\n    align-items: center;\n    padding:  ${t("datepicker.buttonbar.padding")};\n    border-top: 1px solid ${t("datepicker.buttonbar.border.color")};\n}\n\n.p-datepicker-buttonbar .p-button {\n    width: auto;\n}\n\n.p-datepicker-time-picker {\n    display: flex;\n    justify-content: center;\n    align-items: center;\n    border-top: 1px solid ${t("datepicker.time.picker.border.color")};\n    padding: 0;\n    gap: ${t("datepicker.time.picker.gap")};\n}\n\n.p-datepicker-calendar-container + .p-datepicker-time-picker {\n    padding: ${t("datepicker.time.picker.padding")};\n}\n\n.p-datepicker-time-picker > div {\n    display: flex;\n    align-items: center;\n    flex-direction: column;\n    gap: ${t("datepicker.time.picker.button.gap")};\n}\n\n.p-datepicker-time-picker span {\n    font-size: 1rem;\n}\n\n.p-datepicker-timeonly .p-datepicker-time-picker {\n    border-top: 0 none;\n}\n\n.p-datepicker-calendar:not(:first-child):not(:last-child) .p-datepicker-header {\n    justify-content: center;\n}\n\n.p-datepicker:has(.p-inputtext-sm) .p-datepicker-dropdown {\n    width: ${t("datepicker.dropdown.sm.width")};\n}\n\n.p-datepicker:has(.p-inputtext-sm) .p-datepicker-dropdown .p-icon,\n.p-datepicker:has(.p-inputtext-sm) .p-datepicker-input-icon {\n    font-size: ${t("form.field.sm.font.size")};\n    width: ${t("form.field.sm.font.size")};\n    height: ${t("form.field.sm.font.size")};\n}\n\n.p-datepicker:has(.p-inputtext-lg) .p-datepicker-dropdown {\n    width: ${t("datepicker.dropdown.lg.width")};\n}\n\n.p-datepicker:has(.p-inputtext-lg) .p-datepicker-dropdown .p-icon,\n.p-datepicker:has(.p-inputtext-lg) .p-datepicker-input-icon {\n    font-size: ${t("form.field.lg.font.size")};\n    width: ${t("form.field.lg.font.size")};\n    height: ${t("form.field.lg.font.size")};\n}\n\n/* For PrimeNG */\n\np-calendar.ng-invalid.ng-dirty .p-datepicker.p-inputwrapper .p-inputtext{\n    border-color: ${t("inputtext.invalid.border.color")};\n}\n\np-datepicker.ng-invalid.ng-dirty .p-datepicker.p-inputwrapper .p-inputtext{\n    border-color: ${t("inputtext.invalid.border.color")};\n}\n`,$Ie={root:({props:t})=>({position:"self"===t.appendTo?"relative":void 0})},YIe={root:({instance:t})=>({"p-datepicker p-component p-inputwrapper":!0,"p-datepicker-fluid":t.hasFluid,"p-inputwrapper-filled":t.filled,"p-inputwrapper-focus":t.focus,"p-focus":t.focus||t.overlayVisible}),pcInput:"p-datepicker-input",dropdown:"p-datepicker-dropdown",inputIconContainer:"p-datepicker-input-icon-container",inputIcon:"p-datepicker-input-icon",panel:({instance:t})=>({"p-datepicker-panel p-component":!0,"p-datepicker-panel-inline":t.inline,"p-disabled":t.disabled,"p-datepicker-timeonly":t.timeOnly}),calendarContainer:"p-datepicker-calendar-container",calendar:"p-datepicker-calendar",header:"p-datepicker-header",pcPrevButton:"p-datepicker-prev-button",title:"p-datepicker-title",selectMonth:"p-datepicker-select-month",selectYear:"p-datepicker-select-year",decade:"p-datepicker-decade",pcNextButton:"p-datepicker-next-button",dayView:"p-datepicker-day-view",weekHeader:"p-datepicker-weekheader p-disabled",weekNumber:"p-datepicker-weeknumber",weekLabelContainer:"p-datepicker-weeklabel-container p-disabled",weekDayCell:"p-datepicker-weekday-cell",weekDay:"p-datepicker-weekday",dayCell:({date:t})=>["p-datepicker-day-cell",{"p-datepicker-other-month":t.otherMonth,"p-datepicker-today":t.today}],day:({instance:t,date:r})=>{let e="";return t.isRangeSelection()&&t.isSelected(r)&&r.selectable&&(e=r.day===t.value[0].getDate()||r.day===t.value[1].getDate()?"p-datepicker-day-selected":"p-datepicker-day-selected-range"),{"p-datepicker-day":!0,"p-datepicker-day-selected":!t.isRangeSelection()&&t.isSelected(r)&&r.selectable,"p-disabled":t.disabled||!r.selectable,[e]:!0}},monthView:"p-datepicker-month-view",month:({instance:t,props:r,month:e,index:i})=>["p-datepicker-month",{"p-datepicker-month-selected":t.isMonthSelected(i),"p-disabled":r.disabled||!e.selectable}],yearView:"p-datepicker-year-view",year:({instance:t,props:r,year:e})=>["p-datepicker-year",{"p-datepicker-year-selected":t.isYearSelected(e.value),"p-disabled":r.disabled||!e.selectable}],timePicker:"p-datepicker-time-picker",hourPicker:"p-datepicker-hour-picker",pcIncrementButton:"p-datepicker-increment-button",pcDecrementButton:"p-datepicker-decrement-button",separator:"p-datepicker-separator",minutePicker:"p-datepicker-minute-picker",secondPicker:"p-datepicker-second-picker",ampmPicker:"p-datepicker-ampm-picker",buttonbar:"p-datepicker-buttonbar",pcTodayButton:"p-datepicker-today-button",pcClearButton:"p-datepicker-clear-button"};let sie=(()=>{class t extends gs{name="datepicker";theme=UIe;classes=YIe;inlineStyles=$Ie;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const zIe=["date"],qIe=["header"],XIe=["footer"],KIe=["disabledDate"],QIe=["decade"],JIe=["previousicon"],ZIe=["nexticon"],eAe=["triggericon"],tAe=["clearicon"],nAe=["decrementicon"],iAe=["incrementicon"],rAe=["inputicon"],oAe=["container"],sAe=["inputfield"],aAe=["contentWrapper"],lAe=[[["p-header"]],[["p-footer"]]],cAe=["p-header","p-footer"],uAe=t=>({clickCallBack:t}),dAe=t=>({"p-datepicker-input-icon":t}),pAe=(t,r)=>({showTransitionParams:t,hideTransitionParams:r}),hAe=t=>({value:"visible",params:t}),aie=t=>({visibility:t}),FY=t=>({$implicit:t}),fAe=(t,r)=>({"p-datepicker-day-cell":!0,"p-datepicker-other-month":t,"p-datepicker-today":r}),mAe=(t,r)=>({"p-datepicker-month":!0,"p-datepicker-month-selected":t,"p-disabled":r}),gAe=(t,r)=>({"p-datepicker-year":!0,"p-datepicker-year-selected":t,"p-disabled":r});function vAe(t,r){if(1&t){const e=n.RV6();n.j41(0,"TimesIcon",11),n.bIt("click",function(){n.eBV(e);const o=n.XpG(3);return n.Njj(o.clear())}),n.k0s()}2&t&&n.HbH("p-datepicker-clear-icon")}function _Ae(t,r){}function yAe(t,r){1&t&&n.DNE(0,_Ae,0,0,"ng-template")}function bAe(t,r){if(1&t){const e=n.RV6();n.j41(0,"span",12),n.bIt("click",function(){n.eBV(e);const o=n.XpG(3);return n.Njj(o.clear())}),n.DNE(1,yAe,1,0,null,13),n.k0s()}if(2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)}}function CAe(t,r){if(1&t&&(n.qex(0),n.DNE(1,vAe,1,2,"TimesIcon",9)(2,bAe,2,1,"span",10),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),n.R7$(),n.Y8G("ngIf",e.clearIconTemplate||e._clearIconTemplate)}}function wAe(t,r){if(1&t&&n.nrm(0,"span",16),2&t){const e=n.XpG(3);n.Y8G("ngClass",e.icon)}}function TAe(t,r){1&t&&n.nrm(0,"CalendarIcon")}function SAe(t,r){}function xAe(t,r){1&t&&n.DNE(0,SAe,0,0,"ng-template")}function EAe(t,r){if(1&t&&(n.qex(0),n.DNE(1,TAe,1,0,"CalendarIcon",7)(2,xAe,1,0,null,13),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngIf",!e.triggerIconTemplate&&!e._triggerIconTemplate),n.R7$(),n.Y8G("ngTemplateOutlet",e.triggerIconTemplate||e._triggerIconTemplate)}}function DAe(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",14),n.bIt("click",function(o){n.eBV(e),n.XpG();const s=n.sdS(1),a=n.XpG();return n.Njj(a.onButtonClick(o,s))}),n.DNE(1,wAe,1,1,"span",15)(2,EAe,3,2,"ng-container",7),n.k0s()}if(2&t){let e;const i=n.XpG(2);n.Y8G("disabled",i.disabled),n.BMQ("aria-label",i.iconButtonAriaLabel)("aria-expanded",null!==(e=i.overlayVisible)&&void 0!==e&&e)("aria-controls",i.overlayVisible?i.panelId:null),n.R7$(),n.Y8G("ngIf",i.icon),n.R7$(),n.Y8G("ngIf",!i.icon)}}function kAe(t,r){if(1&t){const e=n.RV6();n.j41(0,"CalendarIcon",20),n.bIt("click",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.onButtonClick(o))}),n.k0s()}if(2&t){const e=n.XpG(3);n.Y8G("ngClass",n.eq3(1,dAe,e.showOnFocus))}}function IAe(t,r){1&t&&n.eu8(0)}function AAe(t,r){if(1&t&&(n.qex(0),n.j41(1,"span",17),n.DNE(2,kAe,1,3,"CalendarIcon",18)(3,IAe,1,0,"ng-container",19),n.k0s(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("ngIf",!e.inputIconTemplate&&!e._inputIconTemplate),n.R7$(),n.Y8G("ngTemplateOutlet",e.inputIconTemplate||e._inputIconTemplate)("ngTemplateOutletContext",n.eq3(3,uAe,e.onButtonClick.bind(e)))}}function MAe(t,r){if(1&t){const e=n.RV6();n.j41(0,"input",6,1),n.bIt("focus",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onInputFocus(o))})("keydown",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onInputKeydown(o))})("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onInputClick())})("blur",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onInputBlur(o))})("input",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onUserInput(o))}),n.k0s(),n.DNE(2,CAe,3,2,"ng-container",7)(3,DAe,3,6,"button",8)(4,AAe,4,5,"ng-container",7)}if(2&t){let e;const i=n.XpG();n.HbH(i.inputStyleClass),n.Y8G("value",i.inputFieldValue)("readonly",i.readonlyInput)("ngStyle",i.inputStyle)("ngClass","p-datepicker-input")("placeholder",i.placeholder||"")("disabled",i.disabled)("pAutoFocus",i.autofocus)("variant",i.variant)("fluid",i.hasFluid),n.BMQ("id",i.inputId)("name",i.name)("required",i.required)("aria-required",i.required)("aria-expanded",null!==(e=i.overlayVisible)&&void 0!==e&&e)("aria-controls",i.overlayVisible?i.panelId:null)("aria-labelledby",i.ariaLabelledBy)("aria-label",i.ariaLabel)("tabindex",i.tabindex)("inputmode",i.touchUI?"off":null),n.R7$(2),n.Y8G("ngIf",i.showClear&&!i.disabled&&null!=i.value),n.R7$(),n.Y8G("ngIf",i.showIcon&&"button"===i.iconDisplay),n.R7$(),n.Y8G("ngIf","input"===i.iconDisplay&&i.showIcon)}}function RAe(t,r){1&t&&n.eu8(0)}function OAe(t,r){1&t&&n.nrm(0,"ChevronLeftIcon")}function FAe(t,r){}function PAe(t,r){1&t&&n.DNE(0,FAe,0,0,"ng-template")}function LAe(t,r){if(1&t&&(n.j41(0,"span"),n.DNE(1,PAe,1,0,null,13),n.k0s()),2&t){const e=n.XpG(4);n.R7$(),n.Y8G("ngTemplateOutlet",e.previousIconTemplate||e._previousIconTemplate)}}function NAe(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",37),n.bIt("click",function(o){n.eBV(e);const s=n.XpG(4);return n.Njj(s.switchToMonthView(o))})("keydown",function(o){n.eBV(e);const s=n.XpG(4);return n.Njj(s.onContainerButtonKeydown(o))}),n.EFF(1),n.k0s()}if(2&t){const e=n.XpG().$implicit,i=n.XpG(3);n.Y8G("disabled",i.switchViewButtonDisabled()),n.BMQ("aria-label",i.getTranslation("chooseMonth")),n.R7$(),n.SpI(" ",i.getMonthName(e.month)," ")}}function GAe(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",38),n.bIt("click",function(o){n.eBV(e);const s=n.XpG(4);return n.Njj(s.switchToYearView(o))})("keydown",function(o){n.eBV(e);const s=n.XpG(4);return n.Njj(s.onContainerButtonKeydown(o))}),n.EFF(1),n.k0s()}if(2&t){const e=n.XpG().$implicit,i=n.XpG(3);n.Y8G("disabled",i.switchViewButtonDisabled()),n.BMQ("aria-label",i.getTranslation("chooseYear")),n.R7$(),n.SpI(" ",i.getYear(e)," ")}}function BAe(t,r){if(1&t&&(n.qex(0),n.EFF(1),n.bVm()),2&t){const e=n.XpG(5);n.R7$(),n.Lme("",e.yearPickerValues()[0]," - ",e.yearPickerValues()[e.yearPickerValues().length-1],"")}}function VAe(t,r){1&t&&n.eu8(0)}function jAe(t,r){if(1&t&&(n.j41(0,"span",39),n.DNE(1,BAe,2,2,"ng-container",7)(2,VAe,1,0,"ng-container",19),n.k0s()),2&t){const e=n.XpG(4);n.R7$(),n.Y8G("ngIf",!e.decadeTemplate&&e._decadeTemplate),n.R7$(),n.Y8G("ngTemplateOutlet",e.decadeTemplate||e._decadeTemplate)("ngTemplateOutletContext",n.eq3(3,FY,e.yearPickerValues))}}function HAe(t,r){1&t&&n.nrm(0,"ChevronRightIcon")}function UAe(t,r){}function $Ae(t,r){1&t&&n.DNE(0,UAe,0,0,"ng-template")}function YAe(t,r){if(1&t&&(n.j41(0,"span"),n.DNE(1,$Ae,1,0,null,13),n.k0s()),2&t){const e=n.XpG(4);n.R7$(),n.Y8G("ngTemplateOutlet",e.nextIconTemplate||e._nextIconTemplate)}}function WAe(t,r){if(1&t&&(n.j41(0,"th",44)(1,"span"),n.EFF(2),n.k0s()()),2&t){const e=n.XpG(5);n.R7$(2),n.JRh(e.getTranslation("weekHeader"))}}function zAe(t,r){if(1&t&&(n.j41(0,"th",45)(1,"span",46),n.EFF(2),n.k0s()()),2&t){const e=r.$implicit;n.R7$(2),n.JRh(e)}}function qAe(t,r){if(1&t&&(n.j41(0,"td",49)(1,"span",50),n.EFF(2),n.k0s()()),2&t){const e=n.XpG().index,i=n.XpG(2).$implicit;n.R7$(2),n.SpI(" ",i.weekNumbers[e]," ")}}function XAe(t,r){if(1&t&&(n.qex(0),n.EFF(1),n.bVm()),2&t){const e=n.XpG(2).$implicit;n.R7$(),n.JRh(e.day)}}function KAe(t,r){1&t&&n.eu8(0)}function QAe(t,r){if(1&t&&(n.qex(0),n.DNE(1,KAe,1,0,"ng-container",19),n.bVm()),2&t){const e=n.XpG(2).$implicit,i=n.XpG(6);n.R7$(),n.Y8G("ngTemplateOutlet",i.dateTemplate||i._dateTemplate)("ngTemplateOutletContext",n.eq3(2,FY,e))}}function JAe(t,r){1&t&&n.eu8(0)}function ZAe(t,r){if(1&t&&(n.qex(0),n.DNE(1,JAe,1,0,"ng-container",19),n.bVm()),2&t){const e=n.XpG(2).$implicit,i=n.XpG(6);n.R7$(),n.Y8G("ngTemplateOutlet",i.disabledDateTemplate||i._disabledDateTemplate)("ngTemplateOutletContext",n.eq3(2,FY,e))}}function eMe(t,r){if(1&t&&(n.j41(0,"div",53),n.EFF(1),n.k0s()),2&t){const e=n.XpG(2).$implicit;n.R7$(),n.SpI(" ",e.day," ")}}function tMe(t,r){if(1&t){const e=n.RV6();n.qex(0),n.j41(1,"span",51),n.bIt("click",function(o){n.eBV(e);const s=n.XpG().$implicit,a=n.XpG(6);return n.Njj(a.onDateSelect(o,s))})("keydown",function(o){n.eBV(e);const s=n.XpG().$implicit,a=n.XpG(3).index,l=n.XpG(3);return n.Njj(l.onDateCellKeydown(o,s,a))}),n.DNE(2,XAe,2,1,"ng-container",7)(3,QAe,2,4,"ng-container",7)(4,ZAe,2,4,"ng-container",7),n.k0s(),n.DNE(5,eMe,2,1,"div",52),n.bVm()}if(2&t){const e=n.XpG().$implicit,i=n.XpG(6);n.R7$(),n.Y8G("ngClass",i.dayClass(e)),n.BMQ("data-date",i.formatDateKey(i.formatDateMetaToDate(e))),n.R7$(),n.Y8G("ngIf",!i.dateTemplate&&!i._dateTemplate&&(e.selectable||!i.disabledDateTemplate&&!i._disabledDateTemplate)),n.R7$(),n.Y8G("ngIf",e.selectable||!i.disabledDateTemplate&&!i._disabledDateTemplate),n.R7$(),n.Y8G("ngIf",!e.selectable),n.R7$(),n.Y8G("ngIf",i.isSelected(e))}}function nMe(t,r){if(1&t&&(n.j41(0,"td",16),n.DNE(1,tMe,6,6,"ng-container",7),n.k0s()),2&t){const e=r.$implicit,i=n.XpG(6);n.Y8G("ngClass",n.l_i(3,fAe,e.otherMonth,e.today)),n.BMQ("aria-label",e.day),n.R7$(),n.Y8G("ngIf",!e.otherMonth||i.showOtherMonths)}}function iMe(t,r){if(1&t&&(n.j41(0,"tr"),n.DNE(1,qAe,3,1,"td",47)(2,nMe,2,6,"td",48),n.k0s()),2&t){const e=r.$implicit,i=n.XpG(5);n.R7$(),n.Y8G("ngIf",i.showWeek),n.R7$(),n.Y8G("ngForOf",e)}}function rMe(t,r){if(1&t&&(n.j41(0,"table",40)(1,"thead")(2,"tr"),n.DNE(3,WAe,3,1,"th",41)(4,zAe,3,1,"th",42),n.k0s()(),n.j41(5,"tbody"),n.DNE(6,iMe,3,2,"tr",43),n.k0s()()),2&t){const e=n.XpG().$implicit,i=n.XpG(3);n.R7$(3),n.Y8G("ngIf",i.showWeek),n.R7$(),n.Y8G("ngForOf",i.weekDays),n.R7$(2),n.Y8G("ngForOf",e.dates)}}function oMe(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",28)(1,"div",29)(2,"p-button",30),n.bIt("keydown",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.onContainerButtonKeydown(o))})("onClick",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.onPrevButtonClick(o))}),n.DNE(3,OAe,1,0,"ChevronLeftIcon",7)(4,LAe,2,1,"span",7),n.k0s(),n.j41(5,"div",31),n.DNE(6,NAe,2,3,"button",32)(7,GAe,2,3,"button",33)(8,jAe,3,5,"span",34),n.k0s(),n.j41(9,"p-button",35),n.bIt("keydown",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.onContainerButtonKeydown(o))})("onClick",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.onNextButtonClick(o))}),n.DNE(10,HAe,1,0,"ChevronRightIcon",7)(11,YAe,2,1,"span",7),n.k0s()(),n.DNE(12,rMe,7,3,"table",36),n.k0s()}if(2&t){const e=r.index,i=n.XpG(3);n.R7$(2),n.Y8G("ngStyle",n.eq3(12,aie,0===e?"visible":"hidden")),n.BMQ("aria-label",i.prevIconAriaLabel),n.R7$(),n.Y8G("ngIf",!i.previousIconTemplate&&!i._previousIconTemplate),n.R7$(),n.Y8G("ngIf",i.previousIconTemplate||!i._previousIconTemplate),n.R7$(2),n.Y8G("ngIf","date"===i.currentView),n.R7$(),n.Y8G("ngIf","year"!==i.currentView),n.R7$(),n.Y8G("ngIf","year"===i.currentView),n.R7$(),n.Y8G("ngStyle",n.eq3(14,aie,e===i.months.length-1?"visible":"hidden")),n.BMQ("aria-label",i.nextIconAriaLabel),n.R7$(),n.Y8G("ngIf",!i.nextIconTemplate&&!i._nextIconTemplate),n.R7$(),n.Y8G("ngIf",i.nextIconTemplate||!i._nextIconTemplate),n.R7$(),n.Y8G("ngIf","date"===i.currentView)}}function sMe(t,r){if(1&t&&(n.j41(0,"div",53),n.EFF(1),n.k0s()),2&t){const e=n.XpG().$implicit;n.R7$(),n.SpI(" ",e," ")}}function aMe(t,r){if(1&t){const e=n.RV6();n.j41(0,"span",56),n.bIt("click",function(o){const s=n.eBV(e).index,a=n.XpG(4);return n.Njj(a.onMonthSelect(o,s))})("keydown",function(o){const s=n.eBV(e).index,a=n.XpG(4);return n.Njj(a.onMonthCellKeydown(o,s))}),n.EFF(1),n.DNE(2,sMe,2,1,"div",52),n.k0s()}if(2&t){const e=r.$implicit,i=r.index,o=n.XpG(4);n.Y8G("ngClass",n.l_i(3,mAe,o.isMonthSelected(i),o.isMonthDisabled(i))),n.R7$(),n.SpI(" ",e," "),n.R7$(),n.Y8G("ngIf",o.isMonthSelected(i))}}function lMe(t,r){if(1&t&&(n.j41(0,"div",54),n.DNE(1,aMe,3,6,"span",55),n.k0s()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.monthPickerValues())}}function cMe(t,r){if(1&t&&(n.j41(0,"div",53),n.EFF(1),n.k0s()),2&t){const e=n.XpG().$implicit;n.R7$(),n.SpI(" ",e," ")}}function uMe(t,r){if(1&t){const e=n.RV6();n.j41(0,"span",56),n.bIt("click",function(o){const s=n.eBV(e).$implicit,a=n.XpG(4);return n.Njj(a.onYearSelect(o,s))})("keydown",function(o){const s=n.eBV(e).$implicit,a=n.XpG(4);return n.Njj(a.onYearCellKeydown(o,s))}),n.EFF(1),n.DNE(2,cMe,2,1,"div",52),n.k0s()}if(2&t){const e=r.$implicit,i=n.XpG(4);n.Y8G("ngClass",n.l_i(3,gAe,i.isYearSelected(e),i.isYearDisabled(e))),n.R7$(),n.SpI(" ",e," "),n.R7$(),n.Y8G("ngIf",i.isYearSelected(e))}}function dMe(t,r){if(1&t&&(n.j41(0,"div",57),n.DNE(1,uMe,3,6,"span",55),n.k0s()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.yearPickerValues())}}function pMe(t,r){if(1&t&&(n.qex(0),n.j41(1,"div",24),n.DNE(2,oMe,13,16,"div",25),n.k0s(),n.DNE(3,lMe,2,1,"div",26)(4,dMe,2,1,"div",27),n.bVm()),2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("ngForOf",e.months),n.R7$(),n.Y8G("ngIf","month"===e.currentView),n.R7$(),n.Y8G("ngIf","year"===e.currentView)}}function hMe(t,r){1&t&&n.nrm(0,"ChevronUpIcon")}function fMe(t,r){}function mMe(t,r){1&t&&n.DNE(0,fMe,0,0,"ng-template")}function gMe(t,r){1&t&&(n.qex(0),n.EFF(1,"0"),n.bVm())}function vMe(t,r){1&t&&n.nrm(0,"ChevronDownIcon")}function _Me(t,r){}function yMe(t,r){1&t&&n.DNE(0,_Me,0,0,"ng-template")}function bMe(t,r){1&t&&n.nrm(0,"ChevronUpIcon")}function CMe(t,r){}function wMe(t,r){1&t&&n.DNE(0,CMe,0,0,"ng-template")}function TMe(t,r){1&t&&(n.qex(0),n.EFF(1,"0"),n.bVm())}function SMe(t,r){1&t&&n.nrm(0,"ChevronDownIcon")}function xMe(t,r){}function EMe(t,r){1&t&&n.DNE(0,xMe,0,0,"ng-template")}function DMe(t,r){if(1&t&&(n.qex(0),n.DNE(1,EMe,1,0,null,13),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngTemplateOutlet",e.decrementIconTemplate||e._decrementIconTemplate)}}function kMe(t,r){if(1&t&&(n.j41(0,"div",61)(1,"span"),n.EFF(2),n.k0s()()),2&t){const e=n.XpG(3);n.R7$(2),n.JRh(e.timeSeparator)}}function IMe(t,r){1&t&&n.nrm(0,"ChevronUpIcon")}function AMe(t,r){}function MMe(t,r){1&t&&n.DNE(0,AMe,0,0,"ng-template")}function RMe(t,r){1&t&&(n.qex(0),n.EFF(1,"0"),n.bVm())}function OMe(t,r){1&t&&n.nrm(0,"ChevronDownIcon")}function FMe(t,r){}function PMe(t,r){1&t&&n.DNE(0,FMe,0,0,"ng-template")}function LMe(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",66)(1,"p-button",60),n.bIt("keydown",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.onContainerButtonKeydown(o))})("keydown.enter",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.incrementSecond(o))})("keydown.space",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.incrementSecond(o))})("mousedown",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.onTimePickerElementMouseDown(o,2,1))})("mouseup",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.onTimePickerElementMouseUp(o))})("keyup.enter",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.onTimePickerElementMouseUp(o))})("keyup.space",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.onTimePickerElementMouseUp(o))})("mouseleave",function(){n.eBV(e);const o=n.XpG(3);return n.Njj(o.onTimePickerElementMouseLeave())}),n.DNE(2,IMe,1,0,"ChevronUpIcon",7)(3,MMe,1,0,null,13),n.k0s(),n.j41(4,"span"),n.DNE(5,RMe,2,0,"ng-container",7),n.EFF(6),n.k0s(),n.j41(7,"p-button",60),n.bIt("keydown",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.onContainerButtonKeydown(o))})("keydown.enter",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.decrementSecond(o))})("keydown.space",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.decrementSecond(o))})("mousedown",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.onTimePickerElementMouseDown(o,2,-1))})("mouseup",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.onTimePickerElementMouseUp(o))})("keyup.enter",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.onTimePickerElementMouseUp(o))})("keyup.space",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.onTimePickerElementMouseUp(o))})("mouseleave",function(){n.eBV(e);const o=n.XpG(3);return n.Njj(o.onTimePickerElementMouseLeave())}),n.DNE(8,OMe,1,0,"ChevronDownIcon",7)(9,PMe,1,0,null,13),n.k0s()()}if(2&t){const e=n.XpG(3);n.R7$(),n.BMQ("aria-label",e.getTranslation("nextSecond")),n.R7$(),n.Y8G("ngIf",!e.incrementIconTemplate&&!e._incrementIconTemplate),n.R7$(),n.Y8G("ngTemplateOutlet",e.incrementIconTemplate||e._incrementIconTemplate),n.R7$(2),n.Y8G("ngIf",e.currentSecond<10),n.R7$(),n.JRh(e.currentSecond),n.R7$(),n.BMQ("aria-label",e.getTranslation("prevSecond")),n.R7$(),n.Y8G("ngIf",!e.decrementIconTemplate&&!e._decrementIconTemplate),n.R7$(),n.Y8G("ngTemplateOutlet",e.decrementIconTemplate||e._decrementIconTemplate)}}function NMe(t,r){if(1&t&&(n.j41(0,"div",61)(1,"span"),n.EFF(2),n.k0s()()),2&t){const e=n.XpG(3);n.R7$(2),n.JRh(e.timeSeparator)}}function GMe(t,r){1&t&&n.nrm(0,"ChevronUpIcon")}function BMe(t,r){}function VMe(t,r){1&t&&n.DNE(0,BMe,0,0,"ng-template")}function jMe(t,r){1&t&&n.nrm(0,"ChevronDownIcon")}function HMe(t,r){}function UMe(t,r){1&t&&n.DNE(0,HMe,0,0,"ng-template")}function $Me(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",67)(1,"p-button",68),n.bIt("keydown",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.onContainerButtonKeydown(o))})("onClick",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.toggleAMPM(o))})("keydown.enter",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.toggleAMPM(o))}),n.DNE(2,GMe,1,0,"ChevronUpIcon",7)(3,VMe,1,0,null,13),n.k0s(),n.j41(4,"span"),n.EFF(5),n.k0s(),n.j41(6,"p-button",69),n.bIt("keydown",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.onContainerButtonKeydown(o))})("click",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.toggleAMPM(o))})("keydown.enter",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.toggleAMPM(o))}),n.DNE(7,jMe,1,0,"ChevronDownIcon",7)(8,UMe,1,0,null,13),n.k0s()()}if(2&t){const e=n.XpG(3);n.R7$(),n.BMQ("aria-label",e.getTranslation("am")),n.R7$(),n.Y8G("ngIf",!e.incrementIconTemplate&&!e._incrementIconTemplate),n.R7$(),n.Y8G("ngTemplateOutlet",e.incrementIconTemplate||e._incrementIconTemplate),n.R7$(2),n.JRh(e.pm?"PM":"AM"),n.R7$(),n.BMQ("aria-label",e.getTranslation("pm")),n.R7$(),n.Y8G("ngIf",!e.decrementIconTemplate&&!e._decrementIconTemplate),n.R7$(),n.Y8G("ngTemplateOutlet",e.decrementIconTemplate||e._decrementIconTemplate)}}function YMe(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",58)(1,"div",59)(2,"p-button",60),n.bIt("keydown",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onContainerButtonKeydown(o))})("keydown.enter",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.incrementHour(o))})("keydown.space",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.incrementHour(o))})("mousedown",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onTimePickerElementMouseDown(o,0,1))})("mouseup",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onTimePickerElementMouseUp(o))})("keyup.enter",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onTimePickerElementMouseUp(o))})("keyup.space",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onTimePickerElementMouseUp(o))})("mouseleave",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.onTimePickerElementMouseLeave())}),n.DNE(3,hMe,1,0,"ChevronUpIcon",7)(4,mMe,1,0,null,13),n.k0s(),n.j41(5,"span"),n.DNE(6,gMe,2,0,"ng-container",7),n.EFF(7),n.k0s(),n.j41(8,"p-button",60),n.bIt("keydown",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onContainerButtonKeydown(o))})("keydown.enter",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.decrementHour(o))})("keydown.space",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.decrementHour(o))})("mousedown",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onTimePickerElementMouseDown(o,0,-1))})("mouseup",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onTimePickerElementMouseUp(o))})("keyup.enter",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onTimePickerElementMouseUp(o))})("keyup.space",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onTimePickerElementMouseUp(o))})("mouseleave",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.onTimePickerElementMouseLeave())}),n.DNE(9,vMe,1,0,"ChevronDownIcon",7)(10,yMe,1,0,null,13),n.k0s()(),n.j41(11,"div",61)(12,"span"),n.EFF(13),n.k0s()(),n.j41(14,"div",62)(15,"p-button",60),n.bIt("keydown",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onContainerButtonKeydown(o))})("keydown.enter",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.incrementMinute(o))})("keydown.space",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.incrementMinute(o))})("mousedown",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onTimePickerElementMouseDown(o,1,1))})("mouseup",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onTimePickerElementMouseUp(o))})("keyup.enter",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onTimePickerElementMouseUp(o))})("keyup.space",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onTimePickerElementMouseUp(o))})("mouseleave",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.onTimePickerElementMouseLeave())}),n.DNE(16,bMe,1,0,"ChevronUpIcon",7)(17,wMe,1,0,null,13),n.k0s(),n.j41(18,"span"),n.DNE(19,TMe,2,0,"ng-container",7),n.EFF(20),n.k0s(),n.j41(21,"p-button",60),n.bIt("keydown",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onContainerButtonKeydown(o))})("keydown.enter",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.decrementMinute(o))})("keydown.space",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.decrementMinute(o))})("mousedown",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onTimePickerElementMouseDown(o,1,-1))})("mouseup",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onTimePickerElementMouseUp(o))})("keyup.enter",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onTimePickerElementMouseUp(o))})("keyup.space",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onTimePickerElementMouseUp(o))})("mouseleave",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.onTimePickerElementMouseLeave())}),n.DNE(22,SMe,1,0,"ChevronDownIcon",7)(23,DMe,2,1,"ng-container",7),n.k0s()(),n.DNE(24,kMe,3,1,"div",63)(25,LMe,10,8,"div",64)(26,NMe,3,1,"div",63)(27,$Me,9,7,"div",65),n.k0s()}if(2&t){const e=n.XpG(2);n.R7$(2),n.BMQ("aria-label",e.getTranslation("nextHour")),n.R7$(),n.Y8G("ngIf",!e.incrementIconTemplate&&!e._incrementIconTemplate),n.R7$(),n.Y8G("ngTemplateOutlet",e.incrementIconTemplate||e._incrementIconTemplate),n.R7$(2),n.Y8G("ngIf",e.currentHour<10),n.R7$(),n.JRh(e.currentHour),n.R7$(),n.BMQ("aria-label",e.getTranslation("prevHour")),n.R7$(),n.Y8G("ngIf",!e.decrementIconTemplate&&!e._decrementIconTemplate),n.R7$(),n.Y8G("ngTemplateOutlet",e.decrementIconTemplate||e._decrementIconTemplate),n.R7$(3),n.JRh(e.timeSeparator),n.R7$(2),n.BMQ("aria-label",e.getTranslation("nextMinute")),n.R7$(),n.Y8G("ngIf",!e.incrementIconTemplate&&!e._incrementIconTemplate),n.R7$(),n.Y8G("ngTemplateOutlet",e.incrementIconTemplate||e._incrementIconTemplate),n.R7$(2),n.Y8G("ngIf",e.currentMinute<10),n.R7$(),n.JRh(e.currentMinute),n.R7$(),n.BMQ("aria-label",e.getTranslation("prevMinute")),n.R7$(),n.Y8G("ngIf",!e.decrementIconTemplate&&!e._decrementIconTemplate),n.R7$(),n.Y8G("ngIf",e.decrementIconTemplate||e._decrementIconTemplate),n.R7$(),n.Y8G("ngIf",e.showSeconds),n.R7$(),n.Y8G("ngIf",e.showSeconds),n.R7$(),n.Y8G("ngIf","12"==e.hourFormat),n.R7$(),n.Y8G("ngIf","12"==e.hourFormat)}}function WMe(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",70)(1,"p-button",71),n.bIt("keydown",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onContainerButtonKeydown(o))})("onClick",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onTodayButtonClick(o))}),n.k0s(),n.j41(2,"p-button",72),n.bIt("keydown",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onContainerButtonKeydown(o))})("onClick",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onClearButtonClick(o))}),n.k0s()()}if(2&t){const e=n.XpG(2);n.R7$(),n.Y8G("label",e.getTranslation("today"))("ngClass",e.todayButtonStyleClass),n.R7$(),n.Y8G("label",e.getTranslation("clear"))("ngClass",e.clearButtonStyleClass)}}function zMe(t,r){1&t&&n.eu8(0)}function qMe(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",21,2),n.bIt("@overlayAnimation.start",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onOverlayAnimationStart(o))})("@overlayAnimation.done",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onOverlayAnimationDone(o))})("click",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onOverlayClick(o))}),n.SdG(2),n.DNE(3,RAe,1,0,"ng-container",13)(4,pMe,5,3,"ng-container",7)(5,YMe,28,21,"div",22)(6,WMe,3,4,"div",23),n.SdG(7,1),n.DNE(8,zMe,1,0,"ng-container",13),n.k0s()}if(2&t){const e=n.XpG();n.HbH(e.panelStyleClass),n.Y8G("ngStyle",e.panelStyle)("ngClass",e.panelClass)("@overlayAnimation",n.eq3(18,hAe,n.l_i(15,pAe,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",!0===e.inline),n.BMQ("id",e.panelId)("aria-label",e.getTranslation("chooseDate"))("role",e.inline?null:"dialog")("aria-modal",e.inline?null:"true"),n.R7$(3),n.Y8G("ngTemplateOutlet",e.headerTemplate||e._headerTemplate),n.R7$(),n.Y8G("ngIf",!e.timeOnly),n.R7$(),n.Y8G("ngIf",(e.showTime||e.timeOnly)&&"date"===e.currentView),n.R7$(),n.Y8G("ngIf",e.showButtonBar),n.R7$(2),n.Y8G("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)}}const XMe={provide:tl,useExisting:(0,n.Rfq)(()=>MO),multi:!0};let MO=(()=>{class t extends jo{zone;overlayService;iconDisplay="button";style;styleClass;inputStyle;inputId;name;inputStyleClass;placeholder;ariaLabelledBy;ariaLabel;iconAriaLabel;disabled;dateFormat;multipleSeparator=",";rangeSeparator="-";inline=!1;showOtherMonths=!0;selectOtherMonths;showIcon;fluid;icon;appendTo;readonlyInput;shortYearCutoff="+10";monthNavigator;yearNavigator;hourFormat="24";timeOnly;stepHour=1;stepMinute=1;stepSecond=1;showSeconds=!1;required;showOnFocus=!0;showWeek=!1;startWeekFromFirstDayOfYear=!1;showClear=!1;dataType="date";selectionMode="single";maxDateCount;showButtonBar;todayButtonStyleClass;clearButtonStyleClass;autofocus;autoZIndex=!0;baseZIndex=0;panelStyleClass;panelStyle;keepInvalid=!1;hideOnDateTimeSelect=!0;touchUI;timeSeparator=":";focusTrap=!0;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";tabindex;variant;size;get minDate(){return this._minDate}set minDate(e){this._minDate=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDates(){return this._disabledDates}set disabledDates(e){this._disabledDates=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDays(){return this._disabledDays}set disabledDays(e){this._disabledDays=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get yearRange(){return this._yearRange}set yearRange(e){if(this._yearRange=e,e){const i=e.split(":"),o=parseInt(i[0]),s=parseInt(i[1]);this.populateYearOptions(o,s)}}get showTime(){return this._showTime}set showTime(e){this._showTime=e,void 0===this.currentHour&&this.initTime(this.value||new Date),this.updateInputfield()}get responsiveOptions(){return this._responsiveOptions}set responsiveOptions(e){this._responsiveOptions=e,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get numberOfMonths(){return this._numberOfMonths}set numberOfMonths(e){this._numberOfMonths=e,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get firstDayOfWeek(){return this._firstDayOfWeek}set firstDayOfWeek(e){this._firstDayOfWeek=e,this.createWeekDays()}set locale(e){console.log("Locale property has no effect, use new i18n API instead.")}get view(){return this._view}set view(e){this._view=e,this.currentView=this._view}get defaultDate(){return this._defaultDate}set defaultDate(e){if(this._defaultDate=e,this.initialized){const i=e||new Date;this.currentMonth=i.getMonth(),this.currentYear=i.getFullYear(),this.initTime(i),this.createMonths(this.currentMonth,this.currentYear)}}onFocus=new n.bkB;onBlur=new n.bkB;onClose=new n.bkB;onSelect=new n.bkB;onClear=new n.bkB;onInput=new n.bkB;onTodayClick=new n.bkB;onClearClick=new n.bkB;onMonthChange=new n.bkB;onYearChange=new n.bkB;onClickOutside=new n.bkB;onShow=new n.bkB;containerViewChild;inputfieldViewChild;set content(e){this.contentViewChild=e,this.contentViewChild&&(this.isMonthNavigate?(Promise.resolve(null).then(()=>this.updateFocus()),this.isMonthNavigate=!1):!this.focus&&!this.inline&&this.initFocusableCell())}_componentStyle=(0,n.WQX)(sie);contentViewChild;value;dates;months;weekDays;currentMonth;currentYear;currentHour;currentMinute;currentSecond;pm;mask;maskClickListener;overlay;responsiveStyleElement;overlayVisible;onModelChange=()=>{};onModelTouched=()=>{};calendarElement;timePickerTimer;documentClickListener;animationEndListener;ticksTo1970;yearOptions;focus;isKeydown;filled;inputFieldValue=null;_minDate;_maxDate;_showTime;_yearRange;preventDocumentListener;dayClass(e){return this._componentStyle.classes.day({instance:this,date:e})}dateTemplate;headerTemplate;footerTemplate;disabledDateTemplate;decadeTemplate;previousIconTemplate;nextIconTemplate;triggerIconTemplate;clearIconTemplate;decrementIconTemplate;incrementIconTemplate;inputIconTemplate;_dateTemplate;_headerTemplate;_footerTemplate;_disabledDateTemplate;_decadeTemplate;_previousIconTemplate;_nextIconTemplate;_triggerIconTemplate;_clearIconTemplate;_decrementIconTemplate;_incrementIconTemplate;_inputIconTemplate;_disabledDates;_disabledDays;selectElement;todayElement;focusElement;scrollHandler;documentResizeListener;navigationState=null;isMonthNavigate;initialized;translationSubscription;_locale;_responsiveOptions;currentView;attributeSelector;panelId;_numberOfMonths=1;_firstDayOfWeek;_view="date";preventFocus;_defaultDate;_focusKey=null;window;get locale(){return this._locale}get iconButtonAriaLabel(){return this.iconAriaLabel?this.iconAriaLabel:this.getTranslation("chooseDate")}get prevIconAriaLabel(){return this.getTranslation("year"===this.currentView?"prevDecade":"month"===this.currentView?"prevYear":"prevMonth")}get nextIconAriaLabel(){return this.getTranslation("year"===this.currentView?"nextDecade":"month"===this.currentView?"nextYear":"nextMonth")}get rootClass(){return this._componentStyle.classes.root({instance:this})}get panelClass(){return this._componentStyle.classes.panel({instance:this})}get hasFluid(){const i=this.el.nativeElement.closest("p-fluid");return this.fluid||!!i}constructor(e,i){super(),this.zone=e,this.overlayService=i,this.window=this.document.defaultView}ngOnInit(){super.ngOnInit(),this.attributeSelector=Bl("pn_id_"),this.panelId=this.attributeSelector+"_panel";const e=this.defaultDate||new Date;this.createResponsiveStyle(),this.currentMonth=e.getMonth(),this.currentYear=e.getFullYear(),this.yearOptions=[],this.currentView=this.view,"date"===this.view&&(this.createWeekDays(),this.initTime(e),this.createMonths(this.currentMonth,this.currentYear),this.ticksTo1970=24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.createWeekDays(),this.cd.markForCheck()}),this.initialized=!0}ngAfterViewInit(){super.ngAfterViewInit(),this.inline&&(this.contentViewChild&&this.contentViewChild.nativeElement.setAttribute(this.attributeSelector,""),!this.disabled&&!this.inline&&(this.initFocusableCell(),1===this.numberOfMonths&&this.contentViewChild&&this.contentViewChild.nativeElement&&(this.contentViewChild.nativeElement.style.width=kd(this.containerViewChild?.nativeElement)+"px")))}templates;ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"date":default:this._dateTemplate=e.template;break;case"decade":this._decadeTemplate=e.template;break;case"disabledDate":this._disabledDateTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"inputicon":this._inputIconTemplate=e.template;break;case"previousicon":this._previousIconTemplate=e.template;break;case"nexticon":this._nextIconTemplate=e.template;break;case"triggericon":this._triggerIconTemplate=e.template;break;case"clearicon":this._clearIconTemplate=e.template;break;case"decrementicon":this._decrementIconTemplate=e.template;break;case"incrementicon":this._incrementIconTemplate=e.template;break;case"footer":this._footerTemplate=e.template}})}getTranslation(e){return this.config.getTranslation(e)}populateYearOptions(e,i){this.yearOptions=[];for(let o=e;o<=i;o++)this.yearOptions.push(o)}createWeekDays(){this.weekDays=[];let e=this.getFirstDateOfWeek(),i=this.getTranslation(Xs.DAY_NAMES_MIN);for(let o=0;o<7;o++)this.weekDays.push(i[e]),e=6==e?0:++e}monthPickerValues(){let e=[];for(let i=0;i<=11;i++)e.push(this.config.getTranslation("monthNamesShort")[i]);return e}yearPickerValues(){let e=[],i=this.currentYear-this.currentYear%10;for(let o=0;o<10;o++)e.push(i+o);return e}createMonths(e,i){this.months=this.months=[];for(let o=0;o<this.numberOfMonths;o++){let s=e+o,a=i;s>11&&(s=s%11-1,a=i+1),this.months.push(this.createMonth(s,a))}}getWeekNumber(e){let i=new Date(e.getTime());if(this.startWeekFromFirstDayOfYear){let s=+this.getFirstDateOfWeek();i.setDate(i.getDate()+6+s-i.getDay())}else i.setDate(i.getDate()+4-(i.getDay()||7));let o=i.getTime();return i.setMonth(0),i.setDate(1),Math.floor(Math.round((o-i.getTime())/864e5)/7)+1}createMonth(e,i){let o=[],s=this.getFirstDayOfMonthIndex(e,i),a=this.getDaysCountInMonth(e,i),l=this.getDaysCountInPrevMonth(e,i),c=1,d=new Date,f=[],v=Math.ceil((a+s)/7);for(let w=0;w<v;w++){let x=[];if(0==w){for(let M=l-s+1;M<=l;M++){let F=this.getPreviousMonthAndYear(e,i);x.push({day:M,month:F.month,year:F.year,otherMonth:!0,today:this.isToday(d,M,F.month,F.year),selectable:this.isSelectable(M,F.month,F.year,!0)})}let I=7-x.length;for(let M=0;M<I;M++)x.push({day:c,month:e,year:i,today:this.isToday(d,c,e,i),selectable:this.isSelectable(c,e,i,!1)}),c++}else for(let I=0;I<7;I++){if(c>a){let M=this.getNextMonthAndYear(e,i);x.push({day:c-a,month:M.month,year:M.year,otherMonth:!0,today:this.isToday(d,c-a,M.month,M.year),selectable:this.isSelectable(c-a,M.month,M.year,!0)})}else x.push({day:c,month:e,year:i,today:this.isToday(d,c,e,i),selectable:this.isSelectable(c,e,i,!1)});c++}this.showWeek&&f.push(this.getWeekNumber(new Date(x[0].year,x[0].month,x[0].day))),o.push(x)}return{month:e,year:i,dates:o,weekNumbers:f}}initTime(e){this.pm=e.getHours()>11,this.showTime?(this.currentMinute=e.getMinutes(),this.currentSecond=e.getSeconds(),this.setCurrentHourPM(e.getHours())):this.timeOnly&&(this.currentMinute=0,this.currentHour=0,this.currentSecond=0)}navBackward(e){this.disabled?e.preventDefault():(this.isMonthNavigate=!0,"month"===this.currentView?(this.decrementYear(),setTimeout(()=>{this.updateFocus()},1)):"year"===this.currentView?(this.decrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(0===this.currentMonth?(this.currentMonth=11,this.decrementYear()):this.currentMonth--,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)))}navForward(e){this.disabled?e.preventDefault():(this.isMonthNavigate=!0,"month"===this.currentView?(this.incrementYear(),setTimeout(()=>{this.updateFocus()},1)):"year"===this.currentView?(this.incrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(11===this.currentMonth?(this.currentMonth=0,this.incrementYear()):this.currentMonth++,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)))}decrementYear(){this.currentYear--;let e=this.yearOptions;if(this.yearNavigator&&this.currentYear<e[0]){let i=e[e.length-1]-e[0];this.populateYearOptions(e[0]-i,e[e.length-1]-i)}}decrementDecade(){this.currentYear=this.currentYear-10}incrementDecade(){this.currentYear=this.currentYear+10}incrementYear(){this.currentYear++;let e=this.yearOptions;if(this.yearNavigator&&this.currentYear>e[e.length-1]){let i=e[e.length-1]-e[0];this.populateYearOptions(e[0]+i,e[e.length-1]+i)}}switchToMonthView(e){this.setCurrentView("month"),e.preventDefault()}switchToYearView(e){this.setCurrentView("year"),e.preventDefault()}onDateSelect(e,i){!this.disabled&&i.selectable?(this.isMultipleSelection()&&this.isSelected(i)?(this.value=this.value.filter((o,s)=>!this.isDateEquals(o,i)),0===this.value.length&&(this.value=null),this.updateModel(this.value)):this.shouldSelectDate(i)&&this.selectDate(i),(this.isSingleSelection()&&this.hideOnDateTimeSelect||this.isRangeSelection()&&this.value[1])&&setTimeout(()=>{e.preventDefault(),this.hideOverlay(),this.mask&&this.disableModality(),this.cd.markForCheck()},150),this.updateInputfield(),e.preventDefault()):e.preventDefault()}shouldSelectDate(e){return!this.isMultipleSelection()||null==this.maxDateCount||this.maxDateCount>(this.value?this.value.length:0)}onMonthSelect(e,i){"month"===this.view?this.onDateSelect(e,{year:this.currentYear,month:i,day:1,selectable:!0}):(this.currentMonth=i,this.createMonths(this.currentMonth,this.currentYear),this.setCurrentView("date"),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}))}onYearSelect(e,i){"year"===this.view?this.onDateSelect(e,{year:i,month:0,day:1,selectable:!0}):(this.currentYear=i,this.setCurrentView("month"),this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}))}updateInputfield(){let e="";if(this.value)if(this.isSingleSelection())e=this.formatDateTime(this.value);else if(this.isMultipleSelection())for(let i=0;i<this.value.length;i++)e+=this.formatDateTime(this.value[i]),i!==this.value.length-1&&(e+=this.multipleSeparator+" ");else if(this.isRangeSelection()&&this.value&&this.value.length){let o=this.value[1];e=this.formatDateTime(this.value[0]),o&&(e+=" "+this.rangeSeparator+" "+this.formatDateTime(o))}this.inputFieldValue=e,this.updateFilledState(),this.inputfieldViewChild&&this.inputfieldViewChild.nativeElement&&(this.inputfieldViewChild.nativeElement.value=this.inputFieldValue)}formatDateTime(e){let i=this.keepInvalid?e:null;const o=this.isValidDateForTimeConstraints(e);return this.isValidDate(e)?this.timeOnly?i=this.formatTime(e):(i=this.formatDate(e,this.getDateFormat()),this.showTime&&(i+=" "+this.formatTime(e))):"string"===this.dataType&&(i=e),i=o?i:"",i}formatDateMetaToDate(e){return new Date(e.year,e.month,e.day)}formatDateKey(e){return`${e.getFullYear()}-${e.getMonth()}-${e.getDate()}`}setCurrentHourPM(e){"12"==this.hourFormat?(this.pm=e>11,this.currentHour=e>=12?12==e?12:e-12:0==e?12:e):this.currentHour=e}setCurrentView(e){this.currentView=e,this.cd.detectChanges(),this.alignOverlay()}selectDate(e){let i=this.formatDateMetaToDate(e);if(this.showTime&&(i.setHours("12"==this.hourFormat?12===this.currentHour?this.pm?12:0:this.pm?this.currentHour+12:this.currentHour:this.currentHour),i.setMinutes(this.currentMinute),i.setSeconds(this.currentSecond)),this.minDate&&this.minDate>i&&(i=this.minDate,this.setCurrentHourPM(i.getHours()),this.currentMinute=i.getMinutes(),this.currentSecond=i.getSeconds()),this.maxDate&&this.maxDate<i&&(i=this.maxDate,this.setCurrentHourPM(i.getHours()),this.currentMinute=i.getMinutes(),this.currentSecond=i.getSeconds()),this.isSingleSelection())this.updateModel(i);else if(this.isMultipleSelection())this.updateModel(this.value?[...this.value,i]:[i]);else if(this.isRangeSelection())if(this.value&&this.value.length){let o=this.value[0],s=this.value[1];!s&&i.getTime()>=o.getTime()?s=i:(o=i,s=null),this.updateModel([o,s])}else this.updateModel([i,null]);this.onSelect.emit(i)}updateModel(e){if(this.value=e,"date"==this.dataType)this.onModelChange(this.value);else if("string"==this.dataType)if(this.isSingleSelection())this.onModelChange(this.formatDateTime(this.value));else{let i=null;Array.isArray(this.value)&&(i=this.value.map(o=>this.formatDateTime(o))),this.onModelChange(i)}}getFirstDayOfMonthIndex(e,i){let o=new Date;o.setDate(1),o.setMonth(e),o.setFullYear(i);let s=o.getDay()+this.getSundayIndex();return s>=7?s-7:s}getDaysCountInMonth(e,i){return 32-this.daylightSavingAdjust(new Date(i,e,32)).getDate()}getDaysCountInPrevMonth(e,i){let o=this.getPreviousMonthAndYear(e,i);return this.getDaysCountInMonth(o.month,o.year)}getPreviousMonthAndYear(e,i){let o,s;return 0===e?(o=11,s=i-1):(o=e-1,s=i),{month:o,year:s}}getNextMonthAndYear(e,i){let o,s;return 11===e?(o=0,s=i+1):(o=e+1,s=i),{month:o,year:s}}getSundayIndex(){let e=this.getFirstDateOfWeek();return e>0?7-e:0}isSelected(e){if(!this.value)return!1;if(this.isSingleSelection())return this.isDateEquals(this.value,e);if(this.isMultipleSelection()){let i=!1;for(let o of this.value)if(i=this.isDateEquals(o,e),i)break;return i}return this.isRangeSelection()?this.value[1]?this.isDateEquals(this.value[0],e)||this.isDateEquals(this.value[1],e)||this.isDateBetween(this.value[0],this.value[1],e):this.isDateEquals(this.value[0],e):void 0}isComparable(){return null!=this.value&&"string"!=typeof this.value}isMonthSelected(e){if(this.isComparable()&&!this.isMultipleSelection()){const[i,o]=this.isRangeSelection()?this.value:[this.value,this.value],s=new Date(this.currentYear,e,1);return s>=i&&s<=(o??i)}return!1}isMonthDisabled(e,i){const o=i??this.currentYear;for(let s=1;s<this.getDaysCountInMonth(e,o)+1;s++)if(this.isSelectable(s,e,o,!1))return!1;return!0}isYearDisabled(e){return Array(12).fill(0).every((i,o)=>this.isMonthDisabled(o,e))}isYearSelected(e){if(this.isComparable()){let i=this.isRangeSelection()?this.value[0]:this.value;return!this.isMultipleSelection()&&i.getFullYear()===e}return!1}isDateEquals(e,i){return!(!e||!H_(e))&&e.getDate()===i.day&&e.getMonth()===i.month&&e.getFullYear()===i.year}isDateBetween(e,i,o){if(H_(e)&&H_(i)){let a=this.formatDateMetaToDate(o);return e.getTime()<=a.getTime()&&i.getTime()>=a.getTime()}return!1}isSingleSelection(){return"single"===this.selectionMode}isRangeSelection(){return"range"===this.selectionMode}isMultipleSelection(){return"multiple"===this.selectionMode}isToday(e,i,o,s){return e.getDate()===i&&e.getMonth()===o&&e.getFullYear()===s}isSelectable(e,i,o,s){let a=!0,l=!0,c=!0,d=!0;return!(s&&!this.selectOtherMonths)&&(this.minDate&&(this.minDate.getFullYear()>o||this.minDate.getFullYear()===o&&"year"!=this.currentView&&(this.minDate.getMonth()>i||this.minDate.getMonth()===i&&this.minDate.getDate()>e))&&(a=!1),this.maxDate&&(this.maxDate.getFullYear()<o||this.maxDate.getFullYear()===o&&(this.maxDate.getMonth()<i||this.maxDate.getMonth()===i&&this.maxDate.getDate()<e))&&(l=!1),this.disabledDates&&(c=!this.isDateDisabled(e,i,o)),this.disabledDays&&(d=!this.isDayDisabled(e,i,o)),a&&l&&c&&d)}isDateDisabled(e,i,o){if(this.disabledDates)for(let s of this.disabledDates)if(s.getFullYear()===o&&s.getMonth()===i&&s.getDate()===e)return!0;return!1}isDayDisabled(e,i,o){if(this.disabledDays){let a=new Date(o,i,e).getDay();return-1!==this.disabledDays.indexOf(a)}return!1}onInputFocus(e){this.focus=!0,this.showOnFocus&&this.showOverlay(),this.onFocus.emit(e)}onInputClick(){this.showOnFocus&&!this.overlayVisible&&this.showOverlay()}onInputBlur(e){this.focus=!1,this.onBlur.emit(e),this.keepInvalid||this.updateInputfield(),this.onModelTouched()}onButtonClick(e,i=this.inputfieldViewChild?.nativeElement){this.overlayVisible?this.hideOverlay():(i.focus(),this.showOverlay())}clear(){this.inputFieldValue=null,this.value=null,this.onModelChange(this.value),this.onClear.emit()}onOverlayClick(e){this.overlayService.add({originalEvent:e,target:this.el.nativeElement})}getMonthName(e){return this.config.getTranslation("monthNames")[e]}getYear(e){return"month"===this.currentView?this.currentYear:e.year}switchViewButtonDisabled(){return this.numberOfMonths>1||this.disabled}onPrevButtonClick(e){this.navigationState={backward:!0,button:!0},this.navBackward(e)}onNextButtonClick(e){this.navigationState={backward:!1,button:!0},this.navForward(e)}onContainerButtonKeydown(e){switch(e.which){case 9:if(this.inline||this.trapFocus(e),this.inline){const i=xo(this.containerViewChild?.nativeElement,".p-datepicker-header");if(this.timeOnly)return;e.target==i.children[i?.children?.length-1]&&this.initFocusableCell()}break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault()}}onInputKeydown(e){this.isKeydown=!0,40===e.keyCode&&this.contentViewChild?this.trapFocus(e):27===e.keyCode?this.overlayVisible&&(this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault()):13===e.keyCode?this.overlayVisible&&(this.overlayVisible=!1,e.preventDefault()):9===e.keyCode&&this.contentViewChild&&(Mm(this.contentViewChild.nativeElement).forEach(i=>i.tabIndex="-1"),this.overlayVisible&&(this.overlayVisible=!1))}onDateCellKeydown(e,i,o){const s=e.currentTarget,a=s.parentElement,l=this.formatDateMetaToDate(i);switch(e.which){case 40:{s.tabIndex="-1";let I=Gw(a),M=a.parentElement.nextElementSibling;M?Wa(M.children[I].children[0],"p-disabled")?(this.navigationState={backward:!1},this.navForward(e)):(M.children[I].children[0].tabIndex="0",M.children[I].children[0].focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 38:{s.tabIndex="-1";let I=Gw(a),M=a.parentElement.previousElementSibling;if(M){let F=M.children[I].children[0];Wa(F,"p-disabled")?(this.navigationState={backward:!0},this.navBackward(e)):(F.tabIndex="0",F.focus())}else this.navigationState={backward:!0},this.navBackward(e);e.preventDefault();break}case 37:{s.tabIndex="-1";let I=a.previousElementSibling;if(I){let M=I.children[0];Wa(M,"p-disabled")||Wa(M.parentElement,"p-datepicker-weeknumber")?this.navigateToMonth(!0,o):(M.tabIndex="0",M.focus())}else this.navigateToMonth(!0,o);e.preventDefault();break}case 39:{s.tabIndex="-1";let I=a.nextElementSibling;if(I){let M=I.children[0];Wa(M,"p-disabled")?this.navigateToMonth(!1,o):(M.tabIndex="0",M.focus())}else this.navigateToMonth(!1,o);e.preventDefault();break}case 13:case 32:this.onDateSelect(e,i),e.preventDefault();break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault();break;case 9:this.inline||this.trapFocus(e);break;case 33:{s.tabIndex="-1";const I=new Date(l.getFullYear(),l.getMonth()-1,l.getDate()),M=this.formatDateKey(I);this.navigateToMonth(!0,o,`span[data-date='${M}']:not(.p-disabled):not(.p-ink)`),e.preventDefault();break}case 34:{s.tabIndex="-1";const I=new Date(l.getFullYear(),l.getMonth()+1,l.getDate()),M=this.formatDateKey(I);this.navigateToMonth(!1,o,`span[data-date='${M}']:not(.p-disabled):not(.p-ink)`),e.preventDefault();break}case 36:s.tabIndex="-1";const c=new Date(l.getFullYear(),l.getMonth(),1),d=this.formatDateKey(c),f=xo(s.offsetParent,`span[data-date='${d}']:not(.p-disabled):not(.p-ink)`);f&&(f.tabIndex="0",f.focus()),e.preventDefault();break;case 35:s.tabIndex="-1";const v=new Date(l.getFullYear(),l.getMonth()+1,0),w=this.formatDateKey(v),x=xo(s.offsetParent,`span[data-date='${w}']:not(.p-disabled):not(.p-ink)`);v&&(x.tabIndex="0",x.focus()),e.preventDefault()}}onMonthCellKeydown(e,i){const o=e.currentTarget;switch(e.which){case 38:case 40:{o.tabIndex="-1";var s=o.parentElement.children,a=Gw(o);let l=s[40===e.which?a+3:a-3];l&&(l.tabIndex="0",l.focus()),e.preventDefault();break}case 37:{o.tabIndex="-1";let l=o.previousElementSibling;l?(l.tabIndex="0",l.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case 39:{o.tabIndex="-1";let l=o.nextElementSibling;l?(l.tabIndex="0",l.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 13:case 32:this.onMonthSelect(e,i),e.preventDefault();break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault();break;case 9:this.inline||this.trapFocus(e)}}onYearCellKeydown(e,i){const o=e.currentTarget;switch(e.which){case 38:case 40:{o.tabIndex="-1";var s=o.parentElement.children,a=Gw(o);let l=s[40===e.which?a+2:a-2];l&&(l.tabIndex="0",l.focus()),e.preventDefault();break}case 37:{o.tabIndex="-1";let l=o.previousElementSibling;l?(l.tabIndex="0",l.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case 39:{o.tabIndex="-1";let l=o.nextElementSibling;l?(l.tabIndex="0",l.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 13:case 32:this.onYearSelect(e,i),e.preventDefault();break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault();break;case 9:this.trapFocus(e)}}navigateToMonth(e,i,o){if(e)if(1===this.numberOfMonths||0===i)this.navigationState={backward:!0},this._focusKey=o,this.navBackward(event);else{let s=this.contentViewChild.nativeElement.children[i-1];if(o){const a=xo(s,o);a.tabIndex="0",a.focus()}else{let a=$c(s,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),l=a[a.length-1];l.tabIndex="0",l.focus()}}else if(1===this.numberOfMonths||i===this.numberOfMonths-1)this.navigationState={backward:!1},this._focusKey=o,this.navForward(event);else{let s=this.contentViewChild.nativeElement.children[i+1];if(o){const a=xo(s,o);a.tabIndex="0",a.focus()}else{let a=xo(s,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");a.tabIndex="0",a.focus()}}}updateFocus(){let e;if(this.navigationState){if(this.navigationState.button)this.initFocusableCell(),this.navigationState.backward?xo(this.contentViewChild.nativeElement,".p-datepicker-prev-button").focus():xo(this.contentViewChild.nativeElement,".p-datepicker-next-button").focus();else{if(this.navigationState.backward){let i;i=$c(this.contentViewChild.nativeElement,"month"===this.currentView?".p-monthpicker .p-monthpicker-month:not(.p-disabled)":"year"===this.currentView?".p-yearpicker .p-yearpicker-year:not(.p-disabled)":this._focusKey||".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),i&&i.length>0&&(e=i[i.length-1])}else e=xo(this.contentViewChild.nativeElement,"month"===this.currentView?".p-monthpicker .p-monthpicker-month:not(.p-disabled)":"year"===this.currentView?".p-yearpicker .p-yearpicker-year:not(.p-disabled)":this._focusKey||".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");e&&(e.tabIndex="0",e.focus())}this.navigationState=null,this._focusKey=null}else this.initFocusableCell()}initFocusableCell(){const e=this.contentViewChild?.nativeElement;let i;if("month"===this.currentView){let o=$c(e,".p-monthpicker .p-monthpicker-month:not(.p-disabled)"),s=xo(e,".p-monthpicker .p-monthpicker-month.p-highlight");o.forEach(a=>a.tabIndex=-1),i=s||o[0],0===o.length&&$c(e,'.p-monthpicker .p-monthpicker-month.p-disabled[tabindex = "0"]').forEach(l=>l.tabIndex=-1)}else if("year"===this.currentView){let o=$c(e,".p-yearpicker .p-yearpicker-year:not(.p-disabled)"),s=xo(e,".p-yearpicker .p-yearpicker-year.p-highlight");o.forEach(a=>a.tabIndex=-1),i=s||o[0],0===o.length&&$c(e,'.p-yearpicker .p-yearpicker-year.p-disabled[tabindex = "0"]').forEach(l=>l.tabIndex=-1)}else if(i=xo(e,"span.p-highlight"),!i){let o=xo(e,"td.p-datepicker-today span:not(.p-disabled):not(.p-ink)");i=o||xo(e,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)")}i&&(i.tabIndex="0",!this.preventFocus&&(!this.navigationState||!this.navigationState.button)&&setTimeout(()=>{this.disabled||i.focus()},1),this.preventFocus=!1)}trapFocus(e){let i=Mm(this.contentViewChild.nativeElement);if(i&&i.length>0)if(i[0].ownerDocument.activeElement){let o=i.indexOf(i[0].ownerDocument.activeElement);if(e.shiftKey)if(-1==o||0===o)if(this.focusTrap)i[i.length-1].focus();else{if(-1===o)return this.hideOverlay();if(0===o)return}else i[o-1].focus();else if(-1==o)if(this.timeOnly)i[0].focus();else{let s=0;for(let a=0;a<i.length;a++)"SPAN"===i[a].tagName&&(s=a);i[s].focus()}else if(o===i.length-1){if(!this.focusTrap&&-1!=o)return this.hideOverlay();i[0].focus()}else i[o+1].focus()}else i[0].focus();e.preventDefault()}onMonthDropdownChange(e){this.currentMonth=parseInt(e),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)}onYearDropdownChange(e){this.currentYear=parseInt(e),this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)}convertTo24Hour(e,i){return"12"==this.hourFormat?12===e?i?12:0:i?e+12:e:e}constrainTime(e,i,o,s){let l,a=[e,i,o],c=this.value;const d=this.convertTo24Hour(e,s),f=this.isRangeSelection(),v=this.isMultipleSelection();(f||v)&&(this.value||(this.value=[new Date,new Date]),f&&(c=this.value[1]||this.value[0]),v&&(c=this.value[this.value.length-1]));const x=c?c.toDateString():null;let I=this.minDate&&x&&this.minDate.toDateString()===x,M=this.maxDate&&x&&this.maxDate.toDateString()===x;switch(I&&(l=this.minDate.getHours()>=12),!0){case I&&l&&12===this.minDate.getHours()&&this.minDate.getHours()>d:a[0]=11;case I&&this.minDate.getHours()===d&&this.minDate.getMinutes()>i:a[1]=this.minDate.getMinutes();case I&&this.minDate.getHours()===d&&this.minDate.getMinutes()===i&&this.minDate.getSeconds()>o:a[2]=this.minDate.getSeconds();break;case I&&!l&&this.minDate.getHours()-1===d&&this.minDate.getHours()>d:a[0]=11,this.pm=!0;case I&&this.minDate.getHours()===d&&this.minDate.getMinutes()>i:a[1]=this.minDate.getMinutes();case I&&this.minDate.getHours()===d&&this.minDate.getMinutes()===i&&this.minDate.getSeconds()>o:a[2]=this.minDate.getSeconds();break;case I&&l&&this.minDate.getHours()>d&&12!==d:this.setCurrentHourPM(this.minDate.getHours()),a[0]=this.currentHour;case I&&this.minDate.getHours()===d&&this.minDate.getMinutes()>i:a[1]=this.minDate.getMinutes();case I&&this.minDate.getHours()===d&&this.minDate.getMinutes()===i&&this.minDate.getSeconds()>o:a[2]=this.minDate.getSeconds();break;case I&&this.minDate.getHours()>d:a[0]=this.minDate.getHours();case I&&this.minDate.getHours()===d&&this.minDate.getMinutes()>i:a[1]=this.minDate.getMinutes();case I&&this.minDate.getHours()===d&&this.minDate.getMinutes()===i&&this.minDate.getSeconds()>o:a[2]=this.minDate.getSeconds();break;case M&&this.maxDate.getHours()<d:a[0]=this.maxDate.getHours();case M&&this.maxDate.getHours()===d&&this.maxDate.getMinutes()<i:a[1]=this.maxDate.getMinutes();case M&&this.maxDate.getHours()===d&&this.maxDate.getMinutes()===i&&this.maxDate.getSeconds()<o:a[2]=this.maxDate.getSeconds()}return a}incrementHour(e){let o=(this.currentHour??0)+this.stepHour,s=this.pm;"24"==this.hourFormat?o=o>=24?o-24:o:"12"==this.hourFormat&&((this.currentHour??0)<12&&o>11&&(s=!this.pm),o=o>=13?o-12:o),this.toggleAMPMIfNotMinDate(s),[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(o,this.currentMinute,this.currentSecond,s),e.preventDefault()}toggleAMPMIfNotMinDate(e){let i=this.value;const o=i?i.toDateString():null;this.pm=!!(this.minDate&&o&&this.minDate.toDateString()===o&&this.minDate.getHours()>=12)||e}onTimePickerElementMouseDown(e,i,o){this.disabled||(this.repeat(e,null,i,o),e.preventDefault())}onTimePickerElementMouseUp(e){this.disabled||(this.clearTimePickerTimer(),this.updateTime())}onTimePickerElementMouseLeave(){!this.disabled&&this.timePickerTimer&&(this.clearTimePickerTimer(),this.updateTime())}repeat(e,i,o,s){let a=i||500;switch(this.clearTimePickerTimer(),this.timePickerTimer=setTimeout(()=>{this.repeat(e,100,o,s),this.cd.markForCheck()},a),o){case 0:1===s?this.incrementHour(e):this.decrementHour(e);break;case 1:1===s?this.incrementMinute(e):this.decrementMinute(e);break;case 2:1===s?this.incrementSecond(e):this.decrementSecond(e)}this.updateInputfield()}clearTimePickerTimer(){this.timePickerTimer&&(clearTimeout(this.timePickerTimer),this.timePickerTimer=null)}decrementHour(e){let i=(this.currentHour??0)-this.stepHour,o=this.pm;"24"==this.hourFormat?i=i<0?24+i:i:"12"==this.hourFormat&&(12===this.currentHour&&(o=!this.pm),i=i<=0?12+i:i),this.toggleAMPMIfNotMinDate(o),[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(i,this.currentMinute,this.currentSecond,o),e.preventDefault()}incrementMinute(e){let i=(this.currentMinute??0)+this.stepMinute;i=i>59?i-60:i,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour,i,this.currentSecond,this.pm),e.preventDefault()}decrementMinute(e){let i=(this.currentMinute??0)-this.stepMinute;i=i<0?60+i:i,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour,i,this.currentSecond,this.pm),e.preventDefault()}incrementSecond(e){let i=this.currentSecond+this.stepSecond;i=i>59?i-60:i,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour,this.currentMinute,i,this.pm),e.preventDefault()}decrementSecond(e){let i=this.currentSecond-this.stepSecond;i=i<0?60+i:i,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour,this.currentMinute,i,this.pm),e.preventDefault()}updateTime(){let e=this.value;this.isRangeSelection()&&(e=this.value[1]||this.value[0]),this.isMultipleSelection()&&(e=this.value[this.value.length-1]),e=e?new Date(e.getTime()):new Date,e.setHours("12"==this.hourFormat?12===this.currentHour?this.pm?12:0:this.pm?this.currentHour+12:this.currentHour:this.currentHour),e.setMinutes(this.currentMinute),e.setSeconds(this.currentSecond),this.isRangeSelection()&&(e=this.value[1]?[this.value[0],e]:[e,null]),this.isMultipleSelection()&&(e=[...this.value.slice(0,-1),e]),this.updateModel(e),this.onSelect.emit(e),this.updateInputfield()}toggleAMPM(e){const i=!this.pm;this.pm=i,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour,this.currentMinute,this.currentSecond,i),this.updateTime(),e.preventDefault()}onUserInput(e){if(!this.isKeydown)return;this.isKeydown=!1;let i=e.target.value;try{let o=this.parseValueFromString(i);this.isValidSelection(o)?(this.updateModel(o),this.updateUI()):this.keepInvalid&&this.updateModel(o)}catch{this.updateModel(this.keepInvalid?i:null)}this.filled=null!=i&&i.length,this.onInput.emit(e)}isValidSelection(e){if(this.isSingleSelection())return this.isSelectable(e.getDate(),e.getMonth(),e.getFullYear(),!1);let i=e.every(o=>this.isSelectable(o.getDate(),o.getMonth(),o.getFullYear(),!1));return i&&this.isRangeSelection()&&(i=1===e.length||e.length>1&&e[1]>=e[0]),i}parseValueFromString(e){if(!e||0===e.trim().length)return null;let i;if(this.isSingleSelection())i=this.parseDateTime(e);else if(this.isMultipleSelection()){let o=e.split(this.multipleSeparator);i=[];for(let s of o)i.push(this.parseDateTime(s.trim()))}else if(this.isRangeSelection()){let o=e.split(" "+this.rangeSeparator+" ");i=[];for(let s=0;s<o.length;s++)i[s]=this.parseDateTime(o[s].trim())}return i}parseDateTime(e){let i,o=e.split(" ");if(this.timeOnly)i=new Date,this.populateTime(i,o[0],o[1]);else{const s=this.getDateFormat();if(this.showTime){let a="12"==this.hourFormat?o.pop():null,l=o.pop();i=this.parseDate(o.join(" "),s),this.populateTime(i,l,a)}else i=this.parseDate(e,s)}return i}populateTime(e,i,o){if("12"==this.hourFormat&&!o)throw"Invalid Time";this.pm="PM"===o||"pm"===o;let s=this.parseTime(i);e.setHours(s.hour),e.setMinutes(s.minute),e.setSeconds(s.second)}isValidDate(e){return H_(e)&&qs(e)}updateUI(){let e=this.value;Array.isArray(e)&&(e=2===e.length?e[1]:e[0]);let i=this.defaultDate&&this.isValidDate(this.defaultDate)&&!this.value?this.defaultDate:e&&this.isValidDate(e)?e:new Date;this.currentMonth=i.getMonth(),this.currentYear=i.getFullYear(),this.createMonths(this.currentMonth,this.currentYear),(this.showTime||this.timeOnly)&&(this.setCurrentHourPM(i.getHours()),this.currentMinute=i.getMinutes(),this.currentSecond=i.getSeconds())}showOverlay(){this.overlayVisible||(this.updateUI(),this.touchUI||(this.preventFocus=!0),this.overlayVisible=!0)}hideOverlay(){this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,this.clearTimePickerTimer(),this.touchUI&&this.disableModality(),this.cd.markForCheck()}toggle(){this.inline||(this.overlayVisible?this.hideOverlay():(this.showOverlay(),this.inputfieldViewChild?.nativeElement.focus()))}onOverlayAnimationStart(e){switch(e.toState){case"visible":case"visibleTouchUI":this.inline||(this.overlay=e.element,this.overlay?.setAttribute(this.attributeSelector,""),W5(this.overlay,this.inline?void 0:{position:"absolute",top:"0",left:"0"}),this.appendOverlay(),this.updateFocus(),this.autoZIndex&&(this.touchUI?Yc.set("modal",this.overlay,this.baseZIndex||this.config.zIndex.modal):Yc.set("overlay",this.overlay,this.baseZIndex||this.config.zIndex.overlay)),this.alignOverlay(),this.onShow.emit(e));break;case"void":this.onOverlayHide(),this.onClose.emit(e)}}onOverlayAnimationDone(e){switch(e.toState){case"visible":case"visibleTouchUI":this.inline||(this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener());break;case"void":this.autoZIndex&&Yc.clear(e.element)}}appendOverlay(){this.appendTo&&("body"===this.appendTo?this.document.body.appendChild(this.overlay):yx(this.appendTo,this.overlay))}restoreOverlayAppend(){this.overlay&&this.appendTo&&this.el.nativeElement.appendChild(this.overlay)}alignOverlay(){this.touchUI?this.enableModality(this.overlay):this.overlay&&(this.appendTo?("date"===this.view?(this.overlay.style.width||(this.overlay.style.width=kd(this.overlay)+"px"),this.overlay.style.minWidth||(this.overlay.style.minWidth=kd(this.inputfieldViewChild?.nativeElement)+"px")):this.overlay.style.width||(this.overlay.style.width=kd(this.inputfieldViewChild?.nativeElement)+"px"),ZD(this.overlay,this.inputfieldViewChild?.nativeElement)):z5(this.overlay,this.inputfieldViewChild?.nativeElement))}enableModality(e){!this.mask&&this.touchUI&&(this.mask=this.renderer.createElement("div"),this.renderer.setStyle(this.mask,"zIndex",String(parseInt(e.style.zIndex)-1)),Nc(this.mask,"p-overlay-mask p-datepicker-mask p-datepicker-mask-scrollblocker p-overlay-mask p-overlay-mask-enter"),this.maskClickListener=this.renderer.listen(this.mask,"click",o=>{this.disableModality(),this.overlayVisible=!1}),this.renderer.appendChild(this.document.body,this.mask),tO())}disableModality(){this.mask&&(Nc(this.mask,"p-overlay-mask-leave"),this.animationEndListener||(this.animationEndListener=this.renderer.listen(this.mask,"animationend",this.destroyMask.bind(this))))}destroyMask(){if(!this.mask)return;this.renderer.removeChild(this.document.body,this.mask);let i,e=this.document.body.children;for(let o=0;o<e.length;o++)if(Wa(e[o],"p-datepicker-mask-scrollblocker")){i=!0;break}i||Lw(),this.unbindAnimationEndListener(),this.unbindMaskClickListener(),this.mask=null}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}unbindAnimationEndListener(){this.animationEndListener&&this.mask&&(this.animationEndListener(),this.animationEndListener=null)}writeValue(e){if(this.value=e,this.value&&"string"==typeof this.value)try{this.value=this.parseValueFromString(this.value)}catch{this.keepInvalid&&(this.value=e)}this.updateInputfield(),this.updateUI(),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}getDateFormat(){return this.dateFormat||this.getTranslation("dateFormat")}getFirstDateOfWeek(){return this._firstDayOfWeek||this.getTranslation(Xs.FIRST_DAY_OF_WEEK)}formatDate(e,i){if(!e)return"";let o;const s=f=>{const v=o+1<i.length&&i.charAt(o+1)===f;return v&&o++,v},a=(f,v,w)=>{let x=""+v;if(s(f))for(;x.length<w;)x="0"+x;return x},l=(f,v,w,x)=>s(f)?x[v]:w[v];let c="",d=!1;if(e)for(o=0;o<i.length;o++)if(d)"'"!==i.charAt(o)||s("'")?c+=i.charAt(o):d=!1;else switch(i.charAt(o)){case"d":c+=a("d",e.getDate(),2);break;case"D":c+=l("D",e.getDay(),this.getTranslation(Xs.DAY_NAMES_SHORT),this.getTranslation(Xs.DAY_NAMES));break;case"o":c+=a("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":c+=a("m",e.getMonth()+1,2);break;case"M":c+=l("M",e.getMonth(),this.getTranslation(Xs.MONTH_NAMES_SHORT),this.getTranslation(Xs.MONTH_NAMES));break;case"y":c+=s("y")?e.getFullYear():(e.getFullYear()%100<10?"0":"")+e.getFullYear()%100;break;case"@":c+=e.getTime();break;case"!":c+=1e4*e.getTime()+this.ticksTo1970;break;case"'":s("'")?c+="'":d=!0;break;default:c+=i.charAt(o)}return c}formatTime(e){if(!e)return"";let i="",o=e.getHours(),s=e.getMinutes(),a=e.getSeconds();return"12"==this.hourFormat&&o>11&&12!=o&&(o-=12),i+="12"==this.hourFormat&&0===o?12:o<10?"0"+o:o,i+=":",i+=s<10?"0"+s:s,this.showSeconds&&(i+=":",i+=a<10?"0"+a:a),"12"==this.hourFormat&&(i+=e.getHours()>11?" PM":" AM"),i}parseTime(e){let i=e.split(":");if(i.length!==(this.showSeconds?3:2))throw"Invalid time";let s=parseInt(i[0]),a=parseInt(i[1]),l=this.showSeconds?parseInt(i[2]):null;if(isNaN(s)||isNaN(a)||s>23||a>59||"12"==this.hourFormat&&s>12||this.showSeconds&&(isNaN(l)||l>59))throw"Invalid time";return"12"==this.hourFormat&&(12!==s&&this.pm?s+=12:!this.pm&&12===s&&(s-=12)),{hour:s,minute:a,second:l}}parseDate(e,i){if(null==i||null==e)throw"Invalid arguments";if(""===(e="object"==typeof e?e.toString():e+""))return null;let o,s,a,I,l=0,c="string"!=typeof this.shortYearCutoff?this.shortYearCutoff:(new Date).getFullYear()%100+parseInt(this.shortYearCutoff,10),d=-1,f=-1,v=-1,w=-1,x=!1,M=we=>{let je=o+1<i.length&&i.charAt(o+1)===we;return je&&o++,je},F=we=>{let je=M(we),tt="@"===we?14:"!"===we?20:"y"===we&&je?4:"o"===we?3:2,rt=new RegExp("^\\d{"+("y"===we?tt:1)+","+tt+"}"),lt=e.substring(l).match(rt);if(!lt)throw"Missing number at position "+l;return l+=lt[0].length,parseInt(lt[0],10)},re=(we,je,tt)=>{let nt=-1,rt=M(we)?tt:je,lt=[];for(let bt=0;bt<rt.length;bt++)lt.push([bt,rt[bt]]);lt.sort((bt,Wt)=>-(bt[1].length-Wt[1].length));for(let bt=0;bt<lt.length;bt++){let Wt=lt[bt][1];if(e.substr(l,Wt.length).toLowerCase()===Wt.toLowerCase()){nt=lt[bt][0],l+=Wt.length;break}}if(-1!==nt)return nt+1;throw"Unknown name at position "+l},pe=()=>{if(e.charAt(l)!==i.charAt(o))throw"Unexpected literal at position "+l;l++};for("month"===this.view&&(v=1),o=0;o<i.length;o++)if(x)"'"!==i.charAt(o)||M("'")?pe():x=!1;else switch(i.charAt(o)){case"d":v=F("d");break;case"D":re("D",this.getTranslation(Xs.DAY_NAMES_SHORT),this.getTranslation(Xs.DAY_NAMES));break;case"o":w=F("o");break;case"m":f=F("m");break;case"M":f=re("M",this.getTranslation(Xs.MONTH_NAMES_SHORT),this.getTranslation(Xs.MONTH_NAMES));break;case"y":d=F("y");break;case"@":I=new Date(F("@")),d=I.getFullYear(),f=I.getMonth()+1,v=I.getDate();break;case"!":I=new Date((F("!")-this.ticksTo1970)/1e4),d=I.getFullYear(),f=I.getMonth()+1,v=I.getDate();break;case"'":M("'")?pe():x=!0;break;default:pe()}if(l<e.length&&(a=e.substr(l),!/^\s+/.test(a)))throw"Extra/unparsed characters found in date: "+a;if(-1===d?d=(new Date).getFullYear():d<100&&(d+=(new Date).getFullYear()-(new Date).getFullYear()%100+(d<=c?0:-100)),w>-1)for(f=1,v=w;s=this.getDaysCountInMonth(d,f-1),!(v<=s);)f++,v-=s;if("year"===this.view&&(f=-1===f?1:f,v=-1===v?1:v),I=this.daylightSavingAdjust(new Date(d,f-1,v)),I.getFullYear()!==d||I.getMonth()+1!==f||I.getDate()!==v)throw"Invalid date";return I}daylightSavingAdjust(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null}updateFilledState(){this.filled=this.inputFieldValue&&""!=this.inputFieldValue}isValidDateForTimeConstraints(e){return!!this.keepInvalid||(!this.minDate||e>=this.minDate)&&(!this.maxDate||e<=this.maxDate)}onTodayButtonClick(e){const i=new Date,o={day:i.getDate(),month:i.getMonth(),year:i.getFullYear(),otherMonth:i.getMonth()!==this.currentMonth||i.getFullYear()!==this.currentYear,today:!0,selectable:!0};this.createMonths(i.getMonth(),i.getFullYear()),this.onDateSelect(e,o),this.onTodayClick.emit(i)}onClearButtonClick(e){this.updateModel(null),this.updateInputfield(),this.hideOverlay(),this.onClearClick.emit(e)}createResponsiveStyle(){if(this.numberOfMonths>1&&this.responsiveOptions){this.responsiveStyleElement||(this.responsiveStyleElement=this.renderer.createElement("style"),this.responsiveStyleElement.type="text/css",this.renderer.appendChild(this.document.body,this.responsiveStyleElement));let e="";if(this.responsiveOptions){let i=[...this.responsiveOptions].filter(o=>!(!o.breakpoint||!o.numMonths)).sort((o,s)=>-1*o.breakpoint.localeCompare(s.breakpoint,void 0,{numeric:!0}));for(let o=0;o<i.length;o++){let{breakpoint:s,numMonths:a}=i[o],l=`\n                        .p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${a}) .p-datepicker-next {\n                            display: inline-flex !important;\n                        }\n                    `;for(let c=a;c<this.numberOfMonths;c++)l+=`\n                            .p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${c+1}) {\n                                display: none !important;\n                            }\n                        `;e+=`\n                        @media screen and (max-width: ${s}) {\n                            ${l}\n                        }\n                    `}}this.responsiveStyleElement.innerHTML=e,ek(this.responsiveStyleElement,"nonce",this.config?.csp()?.nonce)}}destroyResponsiveStyleElement(){this.responsiveStyleElement&&(this.responsiveStyleElement.remove(),this.responsiveStyleElement=null)}bindDocumentClickListener(){this.documentClickListener||this.zone.runOutsideAngular(()=>{this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:this.document,"mousedown",i=>{this.isOutsideClicked(i)&&this.overlayVisible&&this.zone.run(()=>{this.hideOverlay(),this.onClickOutside.emit(i),this.cd.markForCheck()})})})}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){!this.documentResizeListener&&!this.touchUI&&(this.documentResizeListener=this.renderer.listen(this.window,"resize",this.onWindowResize.bind(this)))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new jw(this.containerViewChild?.nativeElement,()=>{this.overlayVisible&&this.hideOverlay()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}isOutsideClicked(e){return!(this.el.nativeElement.isSameNode(e.target)||this.isNavIconClicked(e)||this.el.nativeElement.contains(e.target)||this.overlay&&this.overlay.contains(e.target))}isNavIconClicked(e){return Wa(e.target,"p-datepicker-prev-button")||Wa(e.target,"p-datepicker-prev-icon")||Wa(e.target,"p-datepicker-next-button")||Wa(e.target,"p-datepicker-next-icon")}onWindowResize(){this.overlayVisible&&!by()&&this.hideOverlay()}onOverlayHide(){this.currentView=this.view,this.mask&&this.destroyMask(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.translationSubscription&&this.translationSubscription.unsubscribe(),this.overlay&&this.autoZIndex&&Yc.clear(this.overlay),this.destroyResponsiveStyleElement(),this.clearTimePickerTimer(),this.restoreOverlayAppend(),this.onOverlayHide(),super.ngOnDestroy()}static \u0275fac=function(i){return new(i||t)(n.rXU(n.SKi),n.rXU(Cy))};static \u0275cmp=n.VBU({type:t,selectors:[["p-datePicker"],["p-datepicker"],["p-date-picker"]],contentQueries:function(i,o,s){if(1&i&&(n.wni(s,zIe,4),n.wni(s,qIe,4),n.wni(s,XIe,4),n.wni(s,KIe,4),n.wni(s,QIe,4),n.wni(s,JIe,4),n.wni(s,ZIe,4),n.wni(s,eAe,4),n.wni(s,tAe,4),n.wni(s,nAe,4),n.wni(s,iAe,4),n.wni(s,rAe,4),n.wni(s,hs,4)),2&i){let a;n.mGM(a=n.lsd())&&(o.dateTemplate=a.first),n.mGM(a=n.lsd())&&(o.headerTemplate=a.first),n.mGM(a=n.lsd())&&(o.footerTemplate=a.first),n.mGM(a=n.lsd())&&(o.disabledDateTemplate=a.first),n.mGM(a=n.lsd())&&(o.decadeTemplate=a.first),n.mGM(a=n.lsd())&&(o.previousIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.nextIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.triggerIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.clearIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.decrementIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.incrementIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.inputIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.templates=a)}},viewQuery:function(i,o){if(1&i&&(n.GBs(oAe,5),n.GBs(sAe,5),n.GBs(aAe,5)),2&i){let s;n.mGM(s=n.lsd())&&(o.containerViewChild=s.first),n.mGM(s=n.lsd())&&(o.inputfieldViewChild=s.first),n.mGM(s=n.lsd())&&(o.content=s.first)}},inputs:{iconDisplay:"iconDisplay",style:"style",styleClass:"styleClass",inputStyle:"inputStyle",inputId:"inputId",name:"name",inputStyleClass:"inputStyleClass",placeholder:"placeholder",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",iconAriaLabel:"iconAriaLabel",disabled:[2,"disabled","disabled",n.L39],dateFormat:"dateFormat",multipleSeparator:"multipleSeparator",rangeSeparator:"rangeSeparator",inline:[2,"inline","inline",n.L39],showOtherMonths:[2,"showOtherMonths","showOtherMonths",n.L39],selectOtherMonths:[2,"selectOtherMonths","selectOtherMonths",n.L39],showIcon:[2,"showIcon","showIcon",n.L39],fluid:[2,"fluid","fluid",n.L39],icon:"icon",appendTo:"appendTo",readonlyInput:[2,"readonlyInput","readonlyInput",n.L39],shortYearCutoff:"shortYearCutoff",monthNavigator:[2,"monthNavigator","monthNavigator",n.L39],yearNavigator:[2,"yearNavigator","yearNavigator",n.L39],hourFormat:"hourFormat",timeOnly:[2,"timeOnly","timeOnly",n.L39],stepHour:[2,"stepHour","stepHour",n.Udg],stepMinute:[2,"stepMinute","stepMinute",n.Udg],stepSecond:[2,"stepSecond","stepSecond",n.Udg],showSeconds:[2,"showSeconds","showSeconds",n.L39],required:[2,"required","required",n.L39],showOnFocus:[2,"showOnFocus","showOnFocus",n.L39],showWeek:[2,"showWeek","showWeek",n.L39],startWeekFromFirstDayOfYear:"startWeekFromFirstDayOfYear",showClear:[2,"showClear","showClear",n.L39],dataType:"dataType",selectionMode:"selectionMode",maxDateCount:[2,"maxDateCount","maxDateCount",n.Udg],showButtonBar:[2,"showButtonBar","showButtonBar",n.L39],todayButtonStyleClass:"todayButtonStyleClass",clearButtonStyleClass:"clearButtonStyleClass",autofocus:[2,"autofocus","autofocus",n.L39],autoZIndex:[2,"autoZIndex","autoZIndex",n.L39],baseZIndex:[2,"baseZIndex","baseZIndex",n.Udg],panelStyleClass:"panelStyleClass",panelStyle:"panelStyle",keepInvalid:[2,"keepInvalid","keepInvalid",n.L39],hideOnDateTimeSelect:[2,"hideOnDateTimeSelect","hideOnDateTimeSelect",n.L39],touchUI:[2,"touchUI","touchUI",n.L39],timeSeparator:"timeSeparator",focusTrap:[2,"focusTrap","focusTrap",n.L39],showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",tabindex:[2,"tabindex","tabindex",n.Udg],variant:"variant",size:"size",minDate:"minDate",maxDate:"maxDate",disabledDates:"disabledDates",disabledDays:"disabledDays",yearRange:"yearRange",showTime:"showTime",responsiveOptions:"responsiveOptions",numberOfMonths:"numberOfMonths",firstDayOfWeek:"firstDayOfWeek",locale:"locale",view:"view",defaultDate:"defaultDate"},outputs:{onFocus:"onFocus",onBlur:"onBlur",onClose:"onClose",onSelect:"onSelect",onClear:"onClear",onInput:"onInput",onTodayClick:"onTodayClick",onClearClick:"onClearClick",onMonthChange:"onMonthChange",onYearChange:"onYearChange",onClickOutside:"onClickOutside",onShow:"onShow"},features:[n.Jv_([XMe,sie]),n.GFd,n.Vt3],ngContentSelectors:cAe,decls:4,vars:6,consts:[["container",""],["inputfield",""],["contentWrapper",""],[3,"ngClass","ngStyle"],[3,"ngIf"],[3,"class","ngStyle","ngClass","click",4,"ngIf"],["pInputText","","type","text","role","combobox","aria-autocomplete","none","aria-haspopup","dialog","autocomplete","off",3,"focus","keydown","click","blur","input","value","readonly","ngStyle","ngClass","placeholder","disabled","pAutoFocus","variant","fluid"],[4,"ngIf"],["type","button","aria-haspopup","dialog","class","p-datepicker-dropdown","tabindex","0",3,"disabled","click",4,"ngIf"],[3,"class","click",4,"ngIf"],["class","p-datepicker-clear-icon",3,"click",4,"ngIf"],[3,"click"],[1,"p-datepicker-clear-icon",3,"click"],[4,"ngTemplateOutlet"],["type","button","aria-haspopup","dialog","tabindex","0",1,"p-datepicker-dropdown",3,"click","disabled"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[1,"p-datepicker-input-icon-container"],[3,"ngClass","click",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"click","ngClass"],[3,"click","ngStyle","ngClass"],["class","p-datepicker-time-picker",4,"ngIf"],["class","p-datepicker-buttonbar",4,"ngIf"],[1,"p-datepicker-calendar-container"],["class","p-datepicker-calendar",4,"ngFor","ngForOf"],["class","p-datepicker-month-view",4,"ngIf"],["class","p-datepicker-year-view",4,"ngIf"],[1,"p-datepicker-calendar"],[1,"p-datepicker-header"],["size","small","rounded","","text","","styleClass","p-datepicker-prev-button p-button-icon-only","type","button",3,"keydown","onClick","ngStyle"],[1,"p-datepicker-title"],["type","button","class","p-datepicker-select-month","pRipple","",3,"disabled","click","keydown",4,"ngIf"],["type","button","class","p-datepicker-select-year","pRipple","",3,"disabled","click","keydown",4,"ngIf"],["class","p-datepicker-decade",4,"ngIf"],["rounded","","text","","size","small","styleClass","p-datepicker-next-button p-button-icon-only",3,"keydown","onClick","ngStyle"],["class","p-datepicker-day-view","role","grid",4,"ngIf"],["type","button","pRipple","",1,"p-datepicker-select-month",3,"click","keydown","disabled"],["type","button","pRipple","",1,"p-datepicker-select-year",3,"click","keydown","disabled"],[1,"p-datepicker-decade"],["role","grid",1,"p-datepicker-day-view"],["class","p-datepicker-weekheader p-disabled",4,"ngIf"],["class","p-datepicker-weekday-cell","scope","col",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"p-datepicker-weekheader","p-disabled"],["scope","col",1,"p-datepicker-weekday-cell"],[1,"p-datepicker-weekday"],["class","p-datepicker-weeknumber",4,"ngIf"],[3,"ngClass",4,"ngFor","ngForOf"],[1,"p-datepicker-weeknumber"],[1,"p-datepicker-weeklabel-container","p-disabled"],["draggable","false","pRipple","",3,"click","keydown","ngClass"],["class","p-hidden-accessible","aria-live","polite",4,"ngIf"],["aria-live","polite",1,"p-hidden-accessible"],[1,"p-datepicker-month-view"],["pRipple","",3,"ngClass","click","keydown",4,"ngFor","ngForOf"],["pRipple","",3,"click","keydown","ngClass"],[1,"p-datepicker-year-view"],[1,"p-datepicker-time-picker"],[1,"p-datepicker-hour-picker"],["rounded","","text","","size","small","styleClass","p-datepicker-increment-button p-button-icon-only",3,"keydown","keydown.enter","keydown.space","mousedown","mouseup","keyup.enter","keyup.space","mouseleave"],[1,"p-datepicker-separator"],[1,"p-datepicker-minute-picker"],["class","p-datepicker-separator",4,"ngIf"],["class","p-datepicker-second-picker",4,"ngIf"],["class","p-datepicker-ampm-picker",4,"ngIf"],[1,"p-datepicker-second-picker"],[1,"p-datepicker-ampm-picker"],["size","small","text","","rounded","","styleClass","p-datepicker-increment-button p-button-icon-only",3,"keydown","onClick","keydown.enter"],["size","small","text","","rounded","","styleClass","p-datepicker-increment-button p-button-icon-only",3,"keydown","click","keydown.enter"],[1,"p-datepicker-buttonbar"],["size","small","styleClass","p-datepicker-today-button",3,"keydown","onClick","label","ngClass"],["size","small","styleClass","p-datepicker-clear-button",3,"keydown","onClick","label","ngClass"]],template:function(i,o){1&i&&(n.NAR(lAe),n.j41(0,"span",3,0),n.DNE(2,MAe,5,24,"ng-template",4)(3,qMe,9,20,"div",5),n.k0s()),2&i&&(n.HbH(o.styleClass),n.Y8G("ngClass",o.rootClass)("ngStyle",o.style),n.R7$(2),n.Y8G("ngIf",!o.inline),n.R7$(),n.Y8G("ngIf",o.inline||o.overlayVisible))},dependencies:[gn,bi,oo,fi,uo,Jr,Rp,Mh,jx,qw,i7,Y_,pf,oie,Jf,hf,Di],encapsulation:2,data:{animation:[(0,Hi.hZ)("overlayAnimation",[(0,Hi.wk)("visibleTouchUI",(0,Hi.iF)({transform:"translate(-50%,-50%)",opacity:1})),(0,Hi.kY)("void => visible",[(0,Hi.iF)({opacity:0,transform:"scaleY(0.8)"}),(0,Hi.i0)("{{showTransitionParams}}",(0,Hi.iF)({opacity:1,transform:"*"}))]),(0,Hi.kY)("visible => void",[(0,Hi.i0)("{{hideTransitionParams}}",(0,Hi.iF)({opacity:0}))]),(0,Hi.kY)("void => visibleTouchUI",[(0,Hi.iF)({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}),(0,Hi.i0)("{{showTransitionParams}}")]),(0,Hi.kY)("visibleTouchUI => void",[(0,Hi.i0)("{{hideTransitionParams}}",(0,Hi.iF)({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}))])])]},changeDetection:0})}return t})(),r7=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({imports:[MO,Di,Di]})}return t})();const KMe=({dt:t})=>`\n.p-checkbox {\n    position: relative;\n    display: inline-flex;\n    user-select: none;\n    vertical-align: bottom;\n    width: ${t("checkbox.width")};\n    height: ${t("checkbox.height")};\n}\n\n.p-checkbox-input {\n    cursor: pointer;\n    appearance: none;\n    position: absolute;\n    top: 0;\n    left: 0;\n    width: 100%;\n    height: 100%;\n    padding: 0;\n    margin: 0;\n    opacity: 0;\n    z-index: 1;\n    outline: 0 none;\n    border: 1px solid transparent;\n    border-radius: ${t("checkbox.border.radius")};\n}\n\n.p-checkbox-box {\n    display: flex;\n    justify-content: center;\n    align-items: center;\n    border-radius: ${t("checkbox.border.radius")};\n    border: 1px solid ${t("checkbox.border.color")};\n    background: ${t("checkbox.background")};\n    width: ${t("checkbox.width")};\n    height: ${t("checkbox.height")};\n    transition: background ${t("checkbox.transition.duration")}, color ${t("checkbox.transition.duration")}, border-color ${t("checkbox.transition.duration")}, box-shadow ${t("checkbox.transition.duration")}, outline-color ${t("checkbox.transition.duration")};\n    outline-color: transparent;\n    box-shadow: ${t("checkbox.shadow")};\n}\n\n.p-checkbox-icon {\n    transition-duration: ${t("checkbox.transition.duration")};\n    color: ${t("checkbox.icon.color")};\n    font-size: ${t("checkbox.icon.size")};\n    width: ${t("checkbox.icon.size")};\n    height: ${t("checkbox.icon.size")};\n}\n\n.p-checkbox:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box {\n    border-color: ${t("checkbox.hover.border.color")};\n}\n\n.p-checkbox-checked .p-checkbox-box {\n    border-color: ${t("checkbox.checked.border.color")};\n    background: ${t("checkbox.checked.background")};\n}\n\n.p-checkbox-checked .p-checkbox-icon {\n    color: ${t("checkbox.icon.checked.color")};\n}\n\n.p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box {\n    background: ${t("checkbox.checked.hover.background")};\n    border-color: ${t("checkbox.checked.hover.border.color")};\n}\n\n.p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-icon {\n    color: ${t("checkbox.icon.checked.hover.color")};\n}\n\n.p-checkbox:not(.p-disabled):has(.p-checkbox-input:focus-visible) .p-checkbox-box {\n    border-color: ${t("checkbox.focus.border.color")};\n    box-shadow: ${t("checkbox.focus.ring.shadow")};\n    outline: ${t("checkbox.focus.ring.width")} ${t("checkbox.focus.ring.style")} ${t("checkbox.focus.ring.color")};\n    outline-offset: ${t("checkbox.focus.ring.offset")};\n}\n\n.p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:focus-visible) .p-checkbox-box {\n    border-color: ${t("checkbox.checked.focus.border.color")};\n}\n\n.p-checkbox.ng-invalid.ng-dirty > .p-checkbox-box {\n    border-color: ${t("checkbox.invalid.border.color")};\n}\n\n.p-checkbox.p-variant-filled .p-checkbox-box {\n    background: ${t("checkbox.filled.background")};\n}\n\n.p-checkbox-checked.p-variant-filled .p-checkbox-box {\n    background: ${t("checkbox.checked.background")};\n}\n\n.p-checkbox-checked.p-variant-filled:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box {\n    background: ${t("checkbox.checked.hover.background")};\n}\n\n.p-checkbox.p-disabled {\n    opacity: 1;\n}\n\n.p-checkbox.p-disabled .p-checkbox-box {\n    background: ${t("checkbox.disabled.background")};\n    border-color: ${t("checkbox.checked.disabled.border.color")};\n}\n\n.p-checkbox.p-disabled .p-checkbox-box .p-checkbox-icon {\n    color: ${t("checkbox.icon.disabled.color")};\n}\n\n.p-checkbox-sm,\n.p-checkbox-sm .p-checkbox-box {\n    width: ${t("checkbox.sm.width")};\n    height: ${t("checkbox.sm.height")};\n}\n\n.p-checkbox-sm .p-checkbox-icon {\n    font-size: ${t("checkbox.icon.sm.size")};\n    width: ${t("checkbox.icon.sm.size")};\n    height: ${t("checkbox.icon.sm.size")};\n}\n\n.p-checkbox-lg,\n.p-checkbox-lg .p-checkbox-box {\n    width: ${t("checkbox.lg.width")};\n    height: ${t("checkbox.lg.height")};\n}\n\n.p-checkbox-lg .p-checkbox-icon {\n    font-size: ${t("checkbox.icon.lg.size")};\n    width: ${t("checkbox.icon.lg.size")};\n    height: ${t("checkbox.icon.lg.size")};\n}\n`,QMe={root:({instance:t,props:r})=>["p-checkbox p-component",{"p-checkbox-checked":t.checked,"p-disabled":r.disabled,"p-invalid":r.invalid,"p-variant-filled":r.variant?"filled"===r.variant:"filled"===t.config.inputStyle||"filled"===t.config.inputVariant}],box:"p-checkbox-box",input:"p-checkbox-input",icon:"p-checkbox-icon"};let lie=(()=>{class t extends gs{name="checkbox";theme=KMe;classes=QMe;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const ZMe=["checkboxicon"],eRe=["input"],tRe=()=>({"p-checkbox-input":!0}),nRe=t=>({checked:t,class:"p-checkbox-icon"});function iRe(t,r){if(1&t&&n.nrm(0,"span",8),2&t){const e=n.XpG(3);n.Y8G("ngClass",e.checkboxIcon),n.BMQ("data-pc-section","icon")}}function rRe(t,r){1&t&&n.nrm(0,"CheckIcon",9),2&t&&(n.Y8G("styleClass","p-checkbox-icon"),n.BMQ("data-pc-section","icon"))}function oRe(t,r){if(1&t&&(n.qex(0),n.DNE(1,iRe,1,2,"span",7)(2,rRe,1,2,"CheckIcon",6),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngIf",e.checkboxIcon),n.R7$(),n.Y8G("ngIf",!e.checkboxIcon)}}function sRe(t,r){1&t&&n.nrm(0,"MinusIcon",9),2&t&&(n.Y8G("styleClass","p-checkbox-icon"),n.BMQ("data-pc-section","icon"))}function aRe(t,r){if(1&t&&(n.qex(0),n.DNE(1,oRe,3,2,"ng-container",4)(2,sRe,1,2,"MinusIcon",6),n.bVm()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngIf",e.checked),n.R7$(),n.Y8G("ngIf",e._indeterminate())}}function lRe(t,r){}function cRe(t,r){1&t&&n.DNE(0,lRe,0,0,"ng-template")}const uRe={provide:tl,useExisting:(0,n.Rfq)(()=>Av),multi:!0};let Av=(()=>{class t extends jo{value;name;disabled;binary;ariaLabelledBy;ariaLabel;tabindex;inputId;style;inputStyle;styleClass;inputClass;indeterminate=!1;size;formControl;checkboxIcon;readonly;required;autofocus;trueValue=!0;falseValue=!1;variant="outlined";onChange=new n.bkB;onFocus=new n.bkB;onBlur=new n.bkB;inputViewChild;get checked(){return!this._indeterminate()&&(this.binary?this.model===this.trueValue:function f5(t,r){if(null!=t&&r&&r.length)for(let e of r)if(id(t,e))return!0;return!1}(this.value,this.model))}get containerClass(){return{"p-checkbox p-component":!0,"p-checkbox-checked p-highlight":this.checked,"p-disabled":this.disabled,"p-variant-filled":"filled"===this.variant||"filled"===this.config.inputStyle()||"filled"===this.config.inputVariant(),"p-checkbox-sm p-inputfield-sm":"small"===this.size,"p-checkbox-lg p-inputfield-lg":"large"===this.size}}_indeterminate=(0,n.vPA)(void 0);checkboxIconTemplate;templates;_checkboxIconTemplate;model;onModelChange=()=>{};onModelTouched=()=>{};focused=!1;_componentStyle=(0,n.WQX)(lie);ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"icon":case"checkboxicon":this._checkboxIconTemplate=e.template}})}ngOnChanges(e){super.ngOnChanges(e),e.indeterminate&&this._indeterminate.set(e.indeterminate.currentValue)}updateModel(e){let i;const o=this.injector.get(mg,null,{optional:!0,self:!0}),s=o&&!this.formControl?o.value:this.model;this.binary?(i=this._indeterminate()?this.trueValue:this.checked?this.falseValue:this.trueValue,this.model=i,this.onModelChange(i)):(i=this.checked||this._indeterminate()?s.filter(a=>!id(a,this.value)):s?[...s,this.value]:[this.value],this.onModelChange(i),this.model=i,this.formControl&&this.formControl.setValue(i)),this._indeterminate()&&this._indeterminate.set(!1),this.onChange.emit({checked:i,originalEvent:e})}handleChange(e){this.readonly||this.updateModel(e)}onInputFocus(e){this.focused=!0,this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onBlur.emit(e),this.onModelTouched()}focus(){this.inputViewChild.nativeElement.focus()}writeValue(e){this.model=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){setTimeout(()=>{this.disabled=e,this.cd.markForCheck()})}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["p-checkbox"],["p-checkBox"],["p-check-box"]],contentQueries:function(i,o,s){if(1&i&&(n.wni(s,ZMe,4),n.wni(s,hs,4)),2&i){let a;n.mGM(a=n.lsd())&&(o.checkboxIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.templates=a)}},viewQuery:function(i,o){if(1&i&&n.GBs(eRe,5),2&i){let s;n.mGM(s=n.lsd())&&(o.inputViewChild=s.first)}},inputs:{value:"value",name:"name",disabled:[2,"disabled","disabled",n.L39],binary:[2,"binary","binary",n.L39],ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",tabindex:[2,"tabindex","tabindex",n.Udg],inputId:"inputId",style:"style",inputStyle:"inputStyle",styleClass:"styleClass",inputClass:"inputClass",indeterminate:[2,"indeterminate","indeterminate",n.L39],size:"size",formControl:"formControl",checkboxIcon:"checkboxIcon",readonly:[2,"readonly","readonly",n.L39],required:[2,"required","required",n.L39],autofocus:[2,"autofocus","autofocus",n.L39],trueValue:"trueValue",falseValue:"falseValue",variant:"variant"},outputs:{onChange:"onChange",onFocus:"onFocus",onBlur:"onBlur"},features:[n.Jv_([uRe,lie]),n.GFd,n.Vt3,n.OA$],decls:6,vars:29,consts:[["input",""],[3,"ngClass"],["type","checkbox",3,"focus","blur","change","value","checked","disabled","readonly","ngClass"],[1,"p-checkbox-box"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"styleClass",4,"ngIf"],["class","p-checkbox-icon",3,"ngClass",4,"ngIf"],[1,"p-checkbox-icon",3,"ngClass"],[3,"styleClass"]],template:function(i,o){if(1&i){const s=n.RV6();n.j41(0,"div",1)(1,"input",2,0),n.bIt("focus",function(l){return n.eBV(s),n.Njj(o.onInputFocus(l))})("blur",function(l){return n.eBV(s),n.Njj(o.onInputBlur(l))})("change",function(l){return n.eBV(s),n.Njj(o.handleChange(l))}),n.k0s(),n.j41(3,"div",3),n.DNE(4,aRe,3,2,"ng-container",4)(5,cRe,1,0,null,5),n.k0s()()}2&i&&(n.Aen(o.style),n.HbH(o.styleClass),n.Y8G("ngClass",o.containerClass),n.BMQ("data-p-highlight",o.checked)("data-p-checked",o.checked)("data-p-disabled",o.disabled),n.R7$(),n.Aen(o.inputStyle),n.HbH(o.inputClass),n.Y8G("value",o.value)("checked",o.checked)("disabled",o.disabled)("readonly",o.readonly)("ngClass",n.lJ4(26,tRe)),n.BMQ("id",o.inputId)("name",o.name)("tabindex",o.tabindex)("required",o.required)("aria-labelledby",o.ariaLabelledBy)("aria-label",o.ariaLabel),n.R7$(3),n.Y8G("ngIf",!o.checkboxIconTemplate&&!o._checkboxIconTemplate),n.R7$(),n.Y8G("ngTemplateOutlet",o.checkboxIconTemplate||o._checkboxIconTemplate)("ngTemplateOutletContext",n.eq3(27,nRe,o.checked)))},dependencies:[gn,bi,fi,uo,Dx,Jne,Di],encapsulation:2,changeDetection:0})}return t})(),wk=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({imports:[Av,Di,Di]})}return t})(),cie=(()=>{class t extends Gc{pathId;ngOnInit(){this.pathId="url(#"+Bl()+")"}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["ArrowDownIcon"]],features:[n.Vt3],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.99994 14C6.91097 14.0004 6.82281 13.983 6.74064 13.9489C6.65843 13.9148 6.58387 13.8646 6.52133 13.8013L1.10198 8.38193C0.982318 8.25351 0.917175 8.08367 0.920272 7.90817C0.923368 7.73267 0.994462 7.56523 1.11858 7.44111C1.24269 7.317 1.41014 7.2459 1.58563 7.2428C1.76113 7.23971 1.93098 7.30485 2.0594 7.42451L6.32263 11.6877V0.677419C6.32263 0.497756 6.394 0.325452 6.52104 0.198411C6.64808 0.0713706 6.82039 0 7.00005 0C7.17971 0 7.35202 0.0713706 7.47906 0.198411C7.6061 0.325452 7.67747 0.497756 7.67747 0.677419V11.6877L11.9407 7.42451C12.0691 7.30485 12.2389 7.23971 12.4144 7.2428C12.5899 7.2459 12.7574 7.317 12.8815 7.44111C13.0056 7.56523 13.0767 7.73267 13.0798 7.90817C13.0829 8.08367 13.0178 8.25351 12.8981 8.38193L7.47875 13.8013C7.41621 13.8646 7.34164 13.9148 7.25944 13.9489C7.17727 13.983 7.08912 14.0004 7.00015 14C7.00012 14 7.00009 14 7.00005 14C7.00001 14 6.99998 14 6.99994 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,o){1&i&&(n.qSk(),n.j41(0,"svg",0)(1,"g"),n.nrm(2,"path",1),n.k0s(),n.j41(3,"defs")(4,"clipPath",2),n.nrm(5,"rect",3),n.k0s()()()),2&i&&(n.HbH(o.getClassNames()),n.BMQ("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),n.R7$(),n.BMQ("clip-path",o.pathId),n.R7$(3),n.Y8G("id",o.pathId))},encapsulation:2})}return t})(),uie=(()=>{class t extends Gc{pathId;ngOnInit(){this.pathId="url(#"+Bl()+")"}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["ArrowUpIcon"]],features:[n.Vt3],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.51551 13.799C6.64205 13.9255 6.813 13.9977 6.99193 14C7.17087 13.9977 7.34182 13.9255 7.46835 13.799C7.59489 13.6725 7.66701 13.5015 7.66935 13.3226V2.31233L11.9326 6.57554C11.9951 6.63887 12.0697 6.68907 12.1519 6.72319C12.2341 6.75731 12.3223 6.77467 12.4113 6.77425C12.5003 6.77467 12.5885 6.75731 12.6707 6.72319C12.7529 6.68907 12.8274 6.63887 12.89 6.57554C13.0168 6.44853 13.0881 6.27635 13.0881 6.09683C13.0881 5.91732 13.0168 5.74514 12.89 5.61812L7.48846 0.216594C7.48274 0.210436 7.4769 0.204374 7.47094 0.198411C7.3439 0.0713707 7.1716 0 6.99193 0C6.81227 0 6.63997 0.0713707 6.51293 0.198411C6.50704 0.204296 6.50128 0.210278 6.49563 0.216354L1.09386 5.61812C0.974201 5.74654 0.909057 5.91639 0.912154 6.09189C0.91525 6.26738 0.986345 6.43483 1.11046 6.55894C1.23457 6.68306 1.40202 6.75415 1.57752 6.75725C1.75302 6.76035 1.92286 6.6952 2.05128 6.57554L6.31451 2.31231V13.3226C6.31685 13.5015 6.38898 13.6725 6.51551 13.799Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,o){1&i&&(n.qSk(),n.j41(0,"svg",0)(1,"g"),n.nrm(2,"path",1),n.k0s(),n.j41(3,"defs")(4,"clipPath",2),n.nrm(5,"rect",3),n.k0s()()()),2&i&&(n.HbH(o.getClassNames()),n.BMQ("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),n.R7$(),n.BMQ("clip-path",o.pathId),n.R7$(3),n.Y8G("id",o.pathId))},encapsulation:2})}return t})(),die=(()=>{class t extends Gc{pathId;ngOnInit(){this.pathId="url(#"+Bl()+")"}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["FilterIcon"]],features:[n.Vt3],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.64708 14H5.35296C5.18981 13.9979 5.03395 13.9321 4.91858 13.8167C4.8032 13.7014 4.73745 13.5455 4.73531 13.3824V7L0.329431 0.98C0.259794 0.889466 0.217389 0.780968 0.20718 0.667208C0.19697 0.553448 0.219379 0.439133 0.271783 0.337647C0.324282 0.236453 0.403423 0.151519 0.500663 0.0920138C0.597903 0.0325088 0.709548 0.000692754 0.823548 0H13.1765C13.2905 0.000692754 13.4021 0.0325088 13.4994 0.0920138C13.5966 0.151519 13.6758 0.236453 13.7283 0.337647C13.7807 0.439133 13.8031 0.553448 13.7929 0.667208C13.7826 0.780968 13.7402 0.889466 13.6706 0.98L9.26472 7V13.3824C9.26259 13.5455 9.19683 13.7014 9.08146 13.8167C8.96609 13.9321 8.81022 13.9979 8.64708 14ZM5.97061 12.7647H8.02943V6.79412C8.02878 6.66289 8.07229 6.53527 8.15296 6.43177L11.9412 1.23529H2.05884L5.86355 6.43177C5.94422 6.53527 5.98773 6.66289 5.98708 6.79412L5.97061 12.7647Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,o){1&i&&(n.qSk(),n.j41(0,"svg",0)(1,"g"),n.nrm(2,"path",1),n.k0s(),n.j41(3,"defs")(4,"clipPath",2),n.nrm(5,"rect",3),n.k0s()()()),2&i&&(n.HbH(o.getClassNames()),n.BMQ("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),n.R7$(),n.BMQ("clip-path",o.pathId),n.R7$(3),n.Y8G("id",o.pathId))},encapsulation:2})}return t})(),pie=(()=>{class t extends Gc{pathId;ngOnInit(){this.pathId="url(#"+Bl()+")"}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["FilterSlashIcon"]],features:[n.Vt3],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M13.4994 0.0920138C13.5967 0.151519 13.6758 0.236453 13.7283 0.337647C13.7807 0.439133 13.8031 0.553448 13.7929 0.667208C13.7827 0.780968 13.7403 0.889466 13.6707 0.98L11.406 4.06823C11.3099 4.19928 11.1656 4.28679 11.005 4.3115C10.8444 4.33621 10.6805 4.2961 10.5495 4.2C10.4184 4.1039 10.3309 3.95967 10.3062 3.79905C10.2815 3.63843 10.3216 3.47458 10.4177 3.34353L11.9412 1.23529H7.41184C7.24803 1.23529 7.09093 1.17022 6.97509 1.05439C6.85926 0.938558 6.79419 0.781457 6.79419 0.617647C6.79419 0.453837 6.85926 0.296736 6.97509 0.180905C7.09093 0.0650733 7.24803 0 7.41184 0H13.1765C13.2905 0.000692754 13.4022 0.0325088 13.4994 0.0920138ZM4.20008 0.181168H4.24126L13.2013 9.03411C13.3169 9.14992 13.3819 9.3069 13.3819 9.47058C13.3819 9.63426 13.3169 9.79124 13.2013 9.90705C13.1445 9.96517 13.0766 10.0112 13.0016 10.0423C12.9266 10.0735 12.846 10.0891 12.7648 10.0882C12.6836 10.0886 12.6032 10.0728 12.5283 10.0417C12.4533 10.0106 12.3853 9.96479 12.3283 9.90705L9.3142 6.92587L9.26479 6.99999V13.3823C9.26265 13.5455 9.19689 13.7014 9.08152 13.8167C8.96615 13.9321 8.81029 13.9979 8.64714 14H5.35302C5.18987 13.9979 5.03401 13.9321 4.91864 13.8167C4.80327 13.7014 4.73751 13.5455 4.73537 13.3823V6.99999L0.329492 1.02117C0.259855 0.930634 0.21745 0.822137 0.207241 0.708376C0.197031 0.594616 0.21944 0.480301 0.271844 0.378815C0.324343 0.277621 0.403484 0.192687 0.500724 0.133182C0.597964 0.073677 0.709609 0.041861 0.823609 0.0411682H3.86243C3.92448 0.0461551 3.9855 0.060022 4.04361 0.0823446C4.10037 0.10735 4.15311 0.140655 4.20008 0.181168ZM8.02949 6.79411C8.02884 6.66289 8.07235 6.53526 8.15302 6.43176L8.42478 6.05293L3.55773 1.23529H2.0589L5.84714 6.43176C5.92781 6.53526 5.97132 6.66289 5.97067 6.79411V12.7647H8.02949V6.79411Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,o){1&i&&(n.qSk(),n.j41(0,"svg",0)(1,"g"),n.nrm(2,"path",1),n.k0s(),n.j41(3,"defs")(4,"clipPath",2),n.nrm(5,"rect",3),n.k0s()()()),2&i&&(n.HbH(o.getClassNames()),n.BMQ("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),n.R7$(),n.BMQ("clip-path",o.pathId),n.R7$(3),n.Y8G("id",o.pathId))},encapsulation:2})}return t})(),hie=(()=>{class t extends Gc{pathId;ngOnInit(){this.pathId="url(#"+Bl()+")"}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["SortAltIcon"]],features:[n.Vt3],decls:9,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M5.64515 3.61291C5.47353 3.61291 5.30192 3.54968 5.16644 3.4142L3.38708 1.63484L1.60773 3.4142C1.34579 3.67613 0.912244 3.67613 0.650309 3.4142C0.388374 3.15226 0.388374 2.71871 0.650309 2.45678L2.90837 0.198712C3.17031 -0.0632236 3.60386 -0.0632236 3.86579 0.198712L6.12386 2.45678C6.38579 2.71871 6.38579 3.15226 6.12386 3.4142C5.98837 3.54968 5.81676 3.61291 5.64515 3.61291Z","fill","currentColor"],["d","M3.38714 14C3.01681 14 2.70972 13.6929 2.70972 13.3226V0.677419C2.70972 0.307097 3.01681 0 3.38714 0C3.75746 0 4.06456 0.307097 4.06456 0.677419V13.3226C4.06456 13.6929 3.75746 14 3.38714 14Z","fill","currentColor"],["d","M10.6129 14C10.4413 14 10.2697 13.9368 10.1342 13.8013L7.87611 11.5432C7.61418 11.2813 7.61418 10.8477 7.87611 10.5858C8.13805 10.3239 8.5716 10.3239 8.83353 10.5858L10.6129 12.3652L12.3922 10.5858C12.6542 10.3239 13.0877 10.3239 13.3497 10.5858C13.6116 10.8477 13.6116 11.2813 13.3497 11.5432L11.0916 13.8013C10.9561 13.9368 10.7845 14 10.6129 14Z","fill","currentColor"],["d","M10.6129 14C10.2426 14 9.93552 13.6929 9.93552 13.3226V0.677419C9.93552 0.307097 10.2426 0 10.6129 0C10.9833 0 11.2904 0.307097 11.2904 0.677419V13.3226C11.2904 13.6929 10.9832 14 10.6129 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,o){1&i&&(n.qSk(),n.j41(0,"svg",0)(1,"g"),n.nrm(2,"path",1)(3,"path",2)(4,"path",3)(5,"path",4),n.k0s(),n.j41(6,"defs")(7,"clipPath",5),n.nrm(8,"rect",6),n.k0s()()()),2&i&&(n.HbH(o.getClassNames()),n.BMQ("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),n.R7$(),n.BMQ("clip-path",o.pathId),n.R7$(6),n.Y8G("id",o.pathId))},encapsulation:2})}return t})(),fie=(()=>{class t extends Gc{pathId;ngOnInit(){this.pathId="url(#"+Bl()+")"}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["SortAmountDownIcon"]],features:[n.Vt3],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.93953 10.5858L3.83759 11.6877V0.677419C3.83759 0.307097 3.53049 0 3.16017 0C2.78985 0 2.48275 0.307097 2.48275 0.677419V11.6877L1.38082 10.5858C1.11888 10.3239 0.685331 10.3239 0.423396 10.5858C0.16146 10.8477 0.16146 11.2813 0.423396 11.5432L2.68146 13.8013C2.74469 13.8645 2.81694 13.9097 2.89823 13.9458C2.97952 13.9819 3.06985 14 3.16017 14C3.25049 14 3.33178 13.9819 3.42211 13.9458C3.5034 13.9097 3.57565 13.8645 3.63888 13.8013L5.89694 11.5432C6.15888 11.2813 6.15888 10.8477 5.89694 10.5858C5.63501 10.3239 5.20146 10.3239 4.93953 10.5858ZM13.0957 0H7.22468C6.85436 0 6.54726 0.307097 6.54726 0.677419C6.54726 1.04774 6.85436 1.35484 7.22468 1.35484H13.0957C13.466 1.35484 13.7731 1.04774 13.7731 0.677419C13.7731 0.307097 13.466 0 13.0957 0ZM7.22468 5.41935H9.48275C9.85307 5.41935 10.1602 5.72645 10.1602 6.09677C10.1602 6.4671 9.85307 6.77419 9.48275 6.77419H7.22468C6.85436 6.77419 6.54726 6.4671 6.54726 6.09677C6.54726 5.72645 6.85436 5.41935 7.22468 5.41935ZM7.6763 8.12903H7.22468C6.85436 8.12903 6.54726 8.43613 6.54726 8.80645C6.54726 9.17677 6.85436 9.48387 7.22468 9.48387H7.6763C8.04662 9.48387 8.35372 9.17677 8.35372 8.80645C8.35372 8.43613 8.04662 8.12903 7.6763 8.12903ZM7.22468 2.70968H11.2892C11.6595 2.70968 11.9666 3.01677 11.9666 3.3871C11.9666 3.75742 11.6595 4.06452 11.2892 4.06452H7.22468C6.85436 4.06452 6.54726 3.75742 6.54726 3.3871C6.54726 3.01677 6.85436 2.70968 7.22468 2.70968Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,o){1&i&&(n.qSk(),n.j41(0,"svg",0)(1,"g"),n.nrm(2,"path",1),n.k0s(),n.j41(3,"defs")(4,"clipPath",2),n.nrm(5,"rect",3),n.k0s()()()),2&i&&(n.HbH(o.getClassNames()),n.BMQ("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),n.R7$(),n.BMQ("clip-path",o.pathId),n.R7$(3),n.Y8G("id",o.pathId))},encapsulation:2})}return t})(),mie=(()=>{class t extends Gc{pathId;ngOnInit(){this.pathId="url(#"+Bl()+")"}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["SortAmountUpAltIcon"]],features:[n.Vt3],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M3.63435 0.19871C3.57113 0.135484 3.49887 0.0903226 3.41758 0.0541935C3.255 -0.0180645 3.06532 -0.0180645 2.90274 0.0541935C2.82145 0.0903226 2.74919 0.135484 2.68597 0.19871L0.427901 2.45677C0.165965 2.71871 0.165965 3.15226 0.427901 3.41419C0.689836 3.67613 1.12338 3.67613 1.38532 3.41419L2.48726 2.31226V13.3226C2.48726 13.6929 2.79435 14 3.16467 14C3.535 14 3.84209 13.6929 3.84209 13.3226V2.31226L4.94403 3.41419C5.07951 3.54968 5.25113 3.6129 5.42274 3.6129C5.59435 3.6129 5.76597 3.54968 5.90145 3.41419C6.16338 3.15226 6.16338 2.71871 5.90145 2.45677L3.64338 0.19871H3.63435ZM13.7685 13.3226C13.7685 12.9523 13.4615 12.6452 13.0911 12.6452H7.22016C6.84984 12.6452 6.54274 12.9523 6.54274 13.3226C6.54274 13.6929 6.84984 14 7.22016 14H13.0911C13.4615 14 13.7685 13.6929 13.7685 13.3226ZM7.22016 8.58064C6.84984 8.58064 6.54274 8.27355 6.54274 7.90323C6.54274 7.5329 6.84984 7.22581 7.22016 7.22581H9.47823C9.84855 7.22581 10.1556 7.5329 10.1556 7.90323C10.1556 8.27355 9.84855 8.58064 9.47823 8.58064H7.22016ZM7.22016 5.87097H7.67177C8.0421 5.87097 8.34919 5.56387 8.34919 5.19355C8.34919 4.82323 8.0421 4.51613 7.67177 4.51613H7.22016C6.84984 4.51613 6.54274 4.82323 6.54274 5.19355C6.54274 5.56387 6.84984 5.87097 7.22016 5.87097ZM11.2847 11.2903H7.22016C6.84984 11.2903 6.54274 10.9832 6.54274 10.6129C6.54274 10.2426 6.84984 9.93548 7.22016 9.93548H11.2847C11.655 9.93548 11.9621 10.2426 11.9621 10.6129C11.9621 10.9832 11.655 11.2903 11.2847 11.2903Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,o){1&i&&(n.qSk(),n.j41(0,"svg",0)(1,"g"),n.nrm(2,"path",1),n.k0s(),n.j41(3,"defs")(4,"clipPath",2),n.nrm(5,"rect",3),n.k0s()()()),2&i&&(n.HbH(o.getClassNames()),n.BMQ("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),n.R7$(),n.BMQ("clip-path",o.pathId),n.R7$(3),n.Y8G("id",o.pathId))},encapsulation:2})}return t})(),gie=(()=>{class t extends Gc{pathId;ngOnInit(){this.pathId="url(#"+Bl()+")"}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["TrashIcon"]],features:[n.Vt3],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M3.44802 13.9955H10.552C10.8056 14.0129 11.06 13.9797 11.3006 13.898C11.5412 13.8163 11.7632 13.6877 11.9537 13.5196C12.1442 13.3515 12.2995 13.1473 12.4104 12.9188C12.5213 12.6903 12.5858 12.442 12.6 12.1884V4.36041H13.4C13.5591 4.36041 13.7117 4.29722 13.8243 4.18476C13.9368 4.07229 14 3.91976 14 3.76071C14 3.60166 13.9368 3.44912 13.8243 3.33666C13.7117 3.22419 13.5591 3.16101 13.4 3.16101H12.0537C12.0203 3.1557 11.9863 3.15299 11.952 3.15299C11.9178 3.15299 11.8838 3.1557 11.8503 3.16101H11.2285C11.2421 3.10893 11.2487 3.05513 11.248 3.00106V1.80966C11.2171 1.30262 10.9871 0.828306 10.608 0.48989C10.229 0.151475 9.73159 -0.0236625 9.22402 0.00257442H4.77602C4.27251 -0.0171866 3.78126 0.160868 3.40746 0.498617C3.03365 0.836366 2.807 1.30697 2.77602 1.80966V3.00106C2.77602 3.0556 2.78346 3.10936 2.79776 3.16101H0.6C0.521207 3.16101 0.443185 3.17652 0.37039 3.20666C0.297595 3.2368 0.231451 3.28097 0.175736 3.33666C0.120021 3.39235 0.0758251 3.45846 0.0456722 3.53121C0.0155194 3.60397 0 3.68196 0 3.76071C0 3.83946 0.0155194 3.91744 0.0456722 3.9902C0.0758251 4.06296 0.120021 4.12907 0.175736 4.18476C0.231451 4.24045 0.297595 4.28462 0.37039 4.31476C0.443185 4.3449 0.521207 4.36041 0.6 4.36041H1.40002V12.1884C1.41426 12.442 1.47871 12.6903 1.58965 12.9188C1.7006 13.1473 1.85582 13.3515 2.04633 13.5196C2.23683 13.6877 2.45882 13.8163 2.69944 13.898C2.94005 13.9797 3.1945 14.0129 3.44802 13.9955ZM2.60002 4.36041H11.304V12.1884C11.304 12.5163 10.952 12.7961 10.504 12.7961H3.40002C2.97602 12.7961 2.60002 12.5163 2.60002 12.1884V4.36041ZM3.95429 3.16101C3.96859 3.10936 3.97602 3.0556 3.97602 3.00106V1.80966C3.97602 1.48183 4.33602 1.20197 4.77602 1.20197H9.24802C9.66403 1.20197 10.048 1.48183 10.048 1.80966V3.00106C10.0473 3.05515 10.054 3.10896 10.0678 3.16101H3.95429ZM5.57571 10.997C5.41731 10.995 5.26597 10.9311 5.15395 10.8191C5.04193 10.7071 4.97808 10.5558 4.97601 10.3973V6.77517C4.97601 6.61612 5.0392 6.46359 5.15166 6.35112C5.26413 6.23866 5.41666 6.17548 5.57571 6.17548C5.73476 6.17548 5.8873 6.23866 5.99976 6.35112C6.11223 6.46359 6.17541 6.61612 6.17541 6.77517V10.3894C6.17647 10.4688 6.16174 10.5476 6.13208 10.6213C6.10241 10.695 6.05841 10.762 6.00261 10.8186C5.94682 10.8751 5.88035 10.92 5.80707 10.9506C5.73378 10.9813 5.65514 10.9971 5.57571 10.997ZM7.99968 10.8214C8.11215 10.9339 8.26468 10.997 8.42373 10.997C8.58351 10.9949 8.73604 10.93 8.84828 10.8163C8.96052 10.7025 9.02345 10.5491 9.02343 10.3894V6.77517C9.02343 6.61612 8.96025 6.46359 8.84778 6.35112C8.73532 6.23866 8.58278 6.17548 8.42373 6.17548C8.26468 6.17548 8.11215 6.23866 7.99968 6.35112C7.88722 6.46359 7.82404 6.61612 7.82404 6.77517V10.3973C7.82404 10.5564 7.88722 10.7089 7.99968 10.8214Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(i,o){1&i&&(n.qSk(),n.j41(0,"svg",0)(1,"g"),n.nrm(2,"path",1),n.k0s(),n.j41(3,"defs")(4,"clipPath",2),n.nrm(5,"rect",3),n.k0s()()()),2&i&&(n.HbH(o.getClassNames()),n.BMQ("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),n.R7$(),n.BMQ("clip-path",o.pathId),n.R7$(3),n.Y8G("id",o.pathId))},encapsulation:2})}return t})(),dRe=(()=>{class t extends Gc{static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["AngleUpIcon"]],features:[n.Vt3],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.4134 9.49931C10.3148 9.49977 10.2172 9.48055 10.1262 9.44278C10.0352 9.405 9.95263 9.34942 9.88338 9.27931L6.88338 6.27931L3.88338 9.27931C3.73811 9.34946 3.57409 9.3709 3.41567 9.34044C3.25724 9.30999 3.11286 9.22926 3.00395 9.11025C2.89504 8.99124 2.82741 8.84028 2.8111 8.67978C2.79478 8.51928 2.83065 8.35781 2.91338 8.21931L6.41338 4.71931C6.55401 4.57886 6.74463 4.49997 6.94338 4.49997C7.14213 4.49997 7.33276 4.57886 7.47338 4.71931L10.9734 8.21931C11.1138 8.35994 11.1927 8.55056 11.1927 8.74931C11.1927 8.94806 11.1138 9.13868 10.9734 9.27931C10.9007 9.35315 10.8132 9.41089 10.7168 9.44879C10.6203 9.48669 10.5169 9.5039 10.4134 9.49931Z","fill","currentColor"]],template:function(i,o){1&i&&(n.qSk(),n.j41(0,"svg",0),n.nrm(1,"path",1),n.k0s()),2&i&&(n.HbH(o.getClassNames()),n.BMQ("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),pRe=(()=>{class t extends Gc{static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["AngleDownIcon"]],features:[n.Vt3],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M3.58659 4.5007C3.68513 4.50023 3.78277 4.51945 3.87379 4.55723C3.9648 4.59501 4.04735 4.65058 4.11659 4.7207L7.11659 7.7207L10.1166 4.7207C10.2619 4.65055 10.4259 4.62911 10.5843 4.65956C10.7427 4.69002 10.8871 4.77074 10.996 4.88976C11.1049 5.00877 11.1726 5.15973 11.1889 5.32022C11.2052 5.48072 11.1693 5.6422 11.0866 5.7807L7.58659 9.2807C7.44597 9.42115 7.25534 9.50004 7.05659 9.50004C6.85784 9.50004 6.66722 9.42115 6.52659 9.2807L3.02659 5.7807C2.88614 5.64007 2.80725 5.44945 2.80725 5.2507C2.80725 5.05195 2.88614 4.86132 3.02659 4.7207C3.09932 4.64685 3.18675 4.58911 3.28322 4.55121C3.37969 4.51331 3.48305 4.4961 3.58659 4.5007Z","fill","currentColor"]],template:function(i,o){1&i&&(n.qSk(),n.j41(0,"svg",0),n.nrm(1,"path",1),n.k0s()),2&i&&(n.HbH(o.getClassNames()),n.BMQ("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})();const hRe=({dt:t})=>`\n.p-inputnumber {\n    display: inline-flex;\n    position: relative;\n}\n\n.p-inputnumber-button {\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    flex: 0 0 auto;\n    cursor: pointer;\n    background: ${t("inputnumber.button.background")};\n    color: ${t("inputnumber.button.color")};\n    width: ${t("inputnumber.button.width")};\n    transition: background ${t("inputnumber.transition.duration")}, color ${t("inputnumber.transition.duration")}, border-color ${t("inputnumber.transition.duration")}, outline-color ${t("inputnumber.transition.duration")};\n}\n\n.p-inputnumber-button:hover {\n    background: ${t("inputnumber.button.hover.background")};\n    color: ${t("inputnumber.button.hover.color")};\n}\n\n.p-inputnumber-button:active {\n    background: ${t("inputnumber.button.active.background")};\n    color: ${t("inputnumber.button.active.color")};\n}\n\n.p-inputnumber-stacked .p-inputnumber-button {\n    position: relative;\n    border: 0 none;\n}\n\n.p-inputnumber-stacked .p-inputnumber-button-group {\n    display: flex;\n    flex-direction: column;\n    position: absolute;\n    top: 1px;\n    inset-inline-end: 1px;\n    height: calc(100% - 2px);\n    z-index: 1;\n}\n\n.p-inputnumber-stacked .p-inputnumber-increment-button {\n    padding: 0;\n    border-end-start-radius: calc(${t("inputnumber.button.border.radius")} - 1px);\n}\n\n.p-inputnumber-stacked .p-inputnumber-decrement-button {\n    padding: 0;\n    border-end-end-radius: calc(${t("inputnumber.button.border.radius")} - 1px);\n}\n\n.p-inputnumber-stacked .p-inputnumber-button {\n    flex: 1 1 auto;\n    border: 0 none;\n}\n\n.p-inputnumber-horizontal .p-inputnumber-button {\n    border: 1px solid ${t("inputnumber.button.border.color")};\n}\n\n.p-inputnumber-horizontal .p-inputnumber-button:hover {\n    border-color: ${t("inputnumber.button.hover.border.color")};\n}\n\n.p-inputnumber-horizontal .p-inputnumber-button:active {\n    border-color: ${t("inputnumber.button.active.border.color")};\n}\n\n.p-inputnumber-horizontal .p-inputnumber-increment-button {\n    order: 3;\n    border-start-end-radius: ${t("inputnumber.button.border.radius")};\n    border-end-end-radius: ${t("inputnumber.button.border.radius")};\n    border-inline-start: 0 none;\n}\n\n.p-inputnumber-horizontal .p-inputnumber-input {\n    order: 2;\n    border-radius: 0;\n}\n\n.p-inputnumber-horizontal .p-inputnumber-decrement-button {\n    order: 1;\n    border-start-start-radius: ${t("inputnumber.button.border.radius")};\n    border-end-start-radius: ${t("inputnumber.button.border.radius")};\n    border-inline-end: 0 none;\n}\n\n.p-floatlabel:has(.p-inputnumber-horizontal) label {\n    margin-inline-start: ${t("inputnumber.button.width")};\n}\n\n.p-inputnumber-vertical {\n    flex-direction: column;\n}\n\n.p-inputnumber-vertical .p-inputnumber-button {\n    border: 1px solid ${t("inputnumber.button.border.color")};\n    padding-block: ${t("inputnumber.button.vertical.padding")};\n    padding-inline: 0;\n}\n\n.p-inputnumber-vertical .p-inputnumber-button:hover {\n    border-color: ${t("inputnumber.button.hover.border.color")};\n}\n\n.p-inputnumber-vertical .p-inputnumber-button:active {\n    border-color: ${t("inputnumber.button.active.border.color")};\n}\n\n.p-inputnumber-vertical .p-inputnumber-increment-button {\n    order: 1;\n    border-start-start-radius: ${t("inputnumber.button.border.radius")};\n    border-start-end-radius: ${t("inputnumber.button.border.radius")};\n    width: 100%;\n    border-block-end: 0 none;\n}\n\n.p-inputnumber-vertical .p-inputnumber-input {\n    order: 2;\n    border-radius: 0;\n    text-align: center;\n}\n\n.p-inputnumber-vertical .p-inputnumber-decrement-button {\n    order: 3;\n    border-end-start-radius: ${t("inputnumber.button.border.radius")};\n    border-end-end-radius: ${t("inputnumber.button.border.radius")};\n    width: 100%;\n    border-block-start: 0 none;\n}\n\n.p-inputnumber-input {\n    flex: 1 1 auto;\n}\n\n.p-inputnumber-fluid {\n    width: 100%;\n}\n\n.p-inputnumber-fluid .p-inputnumber-input {\n    width: 1%;\n}\n\n.p-inputnumber-fluid.p-inputnumber-vertical .p-inputnumber-input {\n    width: 100%;\n}\n\n.p-inputnumber:has(.p-inputtext-sm) .p-inputnumber-button .p-icon {\n    font-size: ${t("form.field.sm.font.size")};\n    width: ${t("form.field.sm.font.size")};\n    height: ${t("form.field.sm.font.size")};\n}\n\n.p-inputnumber:has(.p-inputtext-lg) .p-inputnumber-button .p-icon {\n    font-size: ${t("form.field.lg.font.size")};\n    width: ${t("form.field.lg.font.size")};\n    height: ${t("form.field.lg.font.size")};\n}\n\np-inputnumber.ng-invalid.ng-dirty > .p-inputtext {\n    border-color: ${t("inputtext.invalid.border.color")};\n}\n\np-inputnumber.ng-invalid.ng-dirty > .p-inputtext:enabled:focus {\n    border-color: ${t("inputtext.focus.border.color")};\n}\n\np-inputnumber.ng-invalid.ng-dirty > .p-inputtext::placeholder {\n    color: ${t("inputtext.invalid.placeholder.color")};\n}\n`,fRe={root:({instance:t})=>({"p-inputnumber p-component p-inputwrapper":!0,"p-inputwrapper-filled":t.filled||!1===t.allowEmpty,"p-inputwrapper-focus":t.focused,"p-inputnumber-stacked":t.showButtons&&"stacked"===t.buttonLayout,"p-inputnumber-horizontal":t.showButtons&&"horizontal"===t.buttonLayout,"p-inputnumber-vertical":t.showButtons&&"vertical"===t.buttonLayout,"p-inputnumber-fluid":t.hasFluid}),pcInput:"p-inputnumber-input",buttonGroup:"p-inputnumber-button-group",incrementButton:({instance:t})=>({"p-inputnumber-button p-inputnumber-increment-button":!0,"p-disabled":t.showButtons&&null!==t.max&&t.maxlength}),decrementButton:({instance:t})=>({"p-inputnumber-button p-inputnumber-decrement-button":!0,"p-disabled":t.showButtons&&null!==t.min&&t.minlength})};let vie=(()=>{class t extends gs{name="inputnumber";theme=hRe;classes=fRe;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const gRe=["clearicon"],vRe=["incrementbuttonicon"],_Re=["decrementbuttonicon"],yRe=["input"];function bRe(t,r){if(1&t){const e=n.RV6();n.j41(0,"TimesIcon",7),n.bIt("click",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.clear())}),n.k0s()}2&t&&(n.Y8G("ngClass","p-inputnumber-clear-icon"),n.BMQ("data-pc-section","clearIcon"))}function CRe(t,r){}function wRe(t,r){1&t&&n.DNE(0,CRe,0,0,"ng-template")}function TRe(t,r){if(1&t){const e=n.RV6();n.j41(0,"span",8),n.bIt("click",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.clear())}),n.DNE(1,wRe,1,0,null,9),n.k0s()}if(2&t){const e=n.XpG(2);n.BMQ("data-pc-section","clearIcon"),n.R7$(),n.Y8G("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)}}function SRe(t,r){if(1&t&&(n.qex(0),n.DNE(1,bRe,1,2,"TimesIcon",5)(2,TRe,2,2,"span",6),n.bVm()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),n.R7$(),n.Y8G("ngIf",e.clearIconTemplate||e._clearIconTemplate)}}function xRe(t,r){if(1&t&&n.nrm(0,"span",13),2&t){const e=n.XpG(2);n.Y8G("ngClass",e.incrementButtonIcon),n.BMQ("data-pc-section","incrementbuttonicon")}}function ERe(t,r){1&t&&n.nrm(0,"AngleUpIcon"),2&t&&n.BMQ("data-pc-section","incrementbuttonicon")}function DRe(t,r){}function kRe(t,r){1&t&&n.DNE(0,DRe,0,0,"ng-template")}function IRe(t,r){if(1&t&&(n.qex(0),n.DNE(1,ERe,1,1,"AngleUpIcon",2)(2,kRe,1,0,null,9),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngIf",!e.incrementButtonIconTemplate&&!e._incrementButtonIconTemplate),n.R7$(),n.Y8G("ngTemplateOutlet",e.incrementButtonIconTemplate||e._incrementButtonIconTemplate)}}function ARe(t,r){if(1&t&&n.nrm(0,"span",13),2&t){const e=n.XpG(2);n.Y8G("ngClass",e.decrementButtonIcon),n.BMQ("data-pc-section","decrementbuttonicon")}}function MRe(t,r){1&t&&n.nrm(0,"AngleDownIcon"),2&t&&n.BMQ("data-pc-section","decrementbuttonicon")}function RRe(t,r){}function ORe(t,r){1&t&&n.DNE(0,RRe,0,0,"ng-template")}function FRe(t,r){if(1&t&&(n.qex(0),n.DNE(1,MRe,1,1,"AngleDownIcon",2)(2,ORe,1,0,null,9),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngIf",!e.decrementButtonIconTemplate&&!e._decrementButtonIconTemplate),n.R7$(),n.Y8G("ngTemplateOutlet",e.decrementButtonIconTemplate||e._decrementButtonIconTemplate)}}function PRe(t,r){if(1&t){const e=n.RV6();n.j41(0,"span",10)(1,"button",11),n.bIt("mousedown",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onUpButtonMouseDown(o))})("mouseup",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onUpButtonMouseUp())})("mouseleave",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onUpButtonMouseLeave())})("keydown",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onUpButtonKeyDown(o))})("keyup",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onUpButtonKeyUp())}),n.DNE(2,xRe,1,2,"span",12)(3,IRe,3,2,"ng-container",2),n.k0s(),n.j41(4,"button",11),n.bIt("mousedown",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onDownButtonMouseDown(o))})("mouseup",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onDownButtonMouseUp())})("mouseleave",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onDownButtonMouseLeave())})("keydown",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onDownButtonKeyDown(o))})("keyup",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onDownButtonKeyUp())}),n.DNE(5,ARe,1,2,"span",12)(6,FRe,3,2,"ng-container",2),n.k0s()()}if(2&t){const e=n.XpG();n.BMQ("data-pc-section","buttonGroup"),n.R7$(),n.HbH(e.incrementButtonClass),n.Y8G("ngClass",e._incrementButtonClass)("disabled",e.disabled),n.BMQ("aria-hidden",!0)("data-pc-section","incrementbutton"),n.R7$(),n.Y8G("ngIf",e.incrementButtonIcon),n.R7$(),n.Y8G("ngIf",!e.incrementButtonIcon),n.R7$(),n.HbH(e.decrementButtonClass),n.Y8G("ngClass",e._decrementButtonClass)("disabled",e.disabled),n.BMQ("aria-hidden",!0)("data-pc-section","decrementbutton"),n.R7$(),n.Y8G("ngIf",e.decrementButtonIcon),n.R7$(),n.Y8G("ngIf",!e.decrementButtonIcon)}}function LRe(t,r){if(1&t&&n.nrm(0,"span",13),2&t){const e=n.XpG(2);n.Y8G("ngClass",e.incrementButtonIcon),n.BMQ("data-pc-section","incrementbuttonicon")}}function NRe(t,r){1&t&&n.nrm(0,"AngleUpIcon"),2&t&&n.BMQ("data-pc-section","incrementbuttonicon")}function GRe(t,r){}function BRe(t,r){1&t&&n.DNE(0,GRe,0,0,"ng-template")}function VRe(t,r){if(1&t&&(n.qex(0),n.DNE(1,NRe,1,1,"AngleUpIcon",2)(2,BRe,1,0,null,9),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngIf",!e.incrementButtonIconTemplate&&!e._incrementButtonIconTemplate),n.R7$(),n.Y8G("ngTemplateOutlet",e.incrementButtonIconTemplate||e._incrementButtonIconTemplate)}}function jRe(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",11),n.bIt("mousedown",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onUpButtonMouseDown(o))})("mouseup",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onUpButtonMouseUp())})("mouseleave",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onUpButtonMouseLeave())})("keydown",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onUpButtonKeyDown(o))})("keyup",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onUpButtonKeyUp())}),n.DNE(1,LRe,1,2,"span",12)(2,VRe,3,2,"ng-container",2),n.k0s()}if(2&t){const e=n.XpG();n.HbH(e.incrementButtonClass),n.Y8G("ngClass",e._incrementButtonClass)("disabled",e.disabled),n.BMQ("aria-hidden",!0)("data-pc-section","incrementbutton"),n.R7$(),n.Y8G("ngIf",e.incrementButtonIcon),n.R7$(),n.Y8G("ngIf",!e.incrementButtonIcon)}}function HRe(t,r){if(1&t&&n.nrm(0,"span",13),2&t){const e=n.XpG(2);n.Y8G("ngClass",e.decrementButtonIcon),n.BMQ("data-pc-section","decrementbuttonicon")}}function URe(t,r){1&t&&n.nrm(0,"AngleDownIcon"),2&t&&n.BMQ("data-pc-section","decrementbuttonicon")}function $Re(t,r){}function YRe(t,r){1&t&&n.DNE(0,$Re,0,0,"ng-template")}function WRe(t,r){if(1&t&&(n.qex(0),n.DNE(1,URe,1,1,"AngleDownIcon",2)(2,YRe,1,0,null,9),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngIf",!e.decrementButtonIconTemplate&&!e._decrementButtonIconTemplate),n.R7$(),n.Y8G("ngTemplateOutlet",e.decrementButtonIconTemplate||e._decrementButtonIconTemplate)}}function zRe(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",11),n.bIt("mousedown",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onDownButtonMouseDown(o))})("mouseup",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onDownButtonMouseUp())})("mouseleave",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onDownButtonMouseLeave())})("keydown",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onDownButtonKeyDown(o))})("keyup",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onDownButtonKeyUp())}),n.DNE(1,HRe,1,2,"span",12)(2,WRe,3,2,"ng-container",2),n.k0s()}if(2&t){const e=n.XpG();n.HbH(e.decrementButtonClass),n.Y8G("ngClass",e._decrementButtonClass)("disabled",e.disabled),n.BMQ("aria-hidden",!0)("data-pc-section","decrementbutton"),n.R7$(),n.Y8G("ngIf",e.decrementButtonIcon),n.R7$(),n.Y8G("ngIf",!e.decrementButtonIcon)}}const qRe={provide:tl,useExisting:(0,n.Rfq)(()=>J_),multi:!0};let J_=(()=>{class t extends jo{injector;showButtons=!1;format=!0;buttonLayout="stacked";inputId;styleClass;style;placeholder;size;maxlength;tabindex;title;ariaLabelledBy;ariaLabel;ariaRequired;name;required;autocomplete;min;max;incrementButtonClass;decrementButtonClass;incrementButtonIcon;decrementButtonIcon;readonly=!1;step=1;allowEmpty=!0;locale;localeMatcher;mode="decimal";currency;currencyDisplay;useGrouping=!0;variant="outlined";minFractionDigits;maxFractionDigits;prefix;suffix;inputStyle;inputStyleClass;showClear=!1;autofocus;get disabled(){return this._disabled}set disabled(e){e&&(this.focused=!1),this._disabled=e,this.timer&&this.clearTimer()}fluid=!1;onInput=new n.bkB;onFocus=new n.bkB;onBlur=new n.bkB;onKeyDown=new n.bkB;onClear=new n.bkB;clearIconTemplate;incrementButtonIconTemplate;decrementButtonIconTemplate;templates;input;_clearIconTemplate;_incrementButtonIconTemplate;_decrementButtonIconTemplate;value;onModelChange=()=>{};onModelTouched=()=>{};focused;initialized;groupChar="";prefixChar="";suffixChar="";isSpecialChar;timer;lastValue;_numeral;numberFormat;_decimal;_decimalChar;_group;_minusSign;_currency;_prefix;_suffix;_index;_disabled;_componentStyle=(0,n.WQX)(vie);ngControl=null;get _rootClass(){return this._componentStyle.classes.root({instance:this})}get hasFluid(){const i=this.el.nativeElement.closest("p-fluid");return this.fluid||!!i}get _incrementButtonClass(){return this._componentStyle.classes.incrementButton({instance:this})}get _decrementButtonClass(){return this._componentStyle.classes.decrementButton({instance:this})}constructor(e){super(),this.injector=e}ngOnChanges(e){super.ngOnChanges(e),["locale","localeMatcher","mode","currency","currencyDisplay","useGrouping","minFractionDigits","maxFractionDigits","prefix","suffix"].some(o=>!!e[o])&&this.updateConstructParser()}get hostClasses(){return"string"==typeof this._rootClass?this._rootClass:Array.isArray(this._rootClass)?this._rootClass.join(" "):"object"==typeof this._rootClass?Object.keys(this._rootClass).filter(e=>this._rootClass[e]).join(" "):""}ngOnInit(){super.ngOnInit(),this.ngControl=this.injector.get(mg,null,{optional:!0}),this.constructParser(),this.initialized=!0}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"clearicon":this._clearIconTemplate=e.template;break;case"incrementbuttonicon":this._incrementButtonIconTemplate=e.template;break;case"decrementbuttonicon":this._decrementButtonIconTemplate=e.template}})}getOptions(){return{localeMatcher:this.localeMatcher,style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,useGrouping:this.useGrouping,minimumFractionDigits:this.minFractionDigits??void 0,maximumFractionDigits:this.maxFractionDigits??void 0}}constructParser(){this.numberFormat=new Intl.NumberFormat(this.locale,this.getOptions());const e=[...new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),i=new Map(e.map((o,s)=>[o,s]));this._numeral=new RegExp(`[${e.join("")}]`,"g"),this._group=this.getGroupingExpression(),this._minusSign=this.getMinusSignExpression(),this._currency=this.getCurrencyExpression(),this._decimal=this.getDecimalExpression(),this._decimalChar=this.getDecimalChar(),this._suffix=this.getSuffixExpression(),this._prefix=this.getPrefixExpression(),this._index=o=>i.get(o)}updateConstructParser(){this.initialized&&this.constructParser()}escapeRegExp(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}getDecimalExpression(){const e=this.getDecimalChar();return new RegExp(`[${e}]`,"g")}getDecimalChar(){return new Intl.NumberFormat(this.locale,{...this.getOptions(),useGrouping:!1}).format(1.1).replace(this._currency,"").trim().replace(this._numeral,"")}getGroupingExpression(){const e=new Intl.NumberFormat(this.locale,{useGrouping:!0});return this.groupChar=e.format(1e6).trim().replace(this._numeral,"").charAt(0),new RegExp(`[${this.groupChar}]`,"g")}getMinusSignExpression(){const e=new Intl.NumberFormat(this.locale,{useGrouping:!1});return new RegExp(`[${e.format(-1).trim().replace(this._numeral,"")}]`,"g")}getCurrencyExpression(){if(this.currency){const e=new Intl.NumberFormat(this.locale,{style:"currency",currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});return new RegExp(`[${e.format(1).replace(/\s/g,"").replace(this._numeral,"").replace(this._group,"")}]`,"g")}return new RegExp("[]","g")}getPrefixExpression(){if(this.prefix)this.prefixChar=this.prefix;else{const e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay});this.prefixChar=e.format(1).split("1")[0]}return new RegExp(`${this.escapeRegExp(this.prefixChar||"")}`,"g")}getSuffixExpression(){if(this.suffix)this.suffixChar=this.suffix;else{const e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});this.suffixChar=e.format(1).split("1")[1]}return new RegExp(`${this.escapeRegExp(this.suffixChar||"")}`,"g")}formatValue(e){if(null!=e){if("-"===e)return e;if(this.format){let o=new Intl.NumberFormat(this.locale,this.getOptions()).format(e);return this.prefix&&e!=this.prefix&&(o=this.prefix+o),this.suffix&&e!=this.suffix&&(o+=this.suffix),o}return e.toString()}return""}parseValue(e){const i=new RegExp(this._suffix,""),o=new RegExp(this._prefix,""),s=new RegExp(this._currency,"");let a=e.replace(i,"").replace(o,"").trim().replace(/\s/g,"").replace(s,"").replace(this._group,"").replace(this._minusSign,"-").replace(this._decimal,".").replace(this._numeral,this._index);if(a){if("-"===a)return a;let l=+a;return isNaN(l)?null:l}return null}repeat(e,i,o){if(this.readonly)return;let s=i||500;this.clearTimer(),this.timer=setTimeout(()=>{this.repeat(e,40,o)},s),this.spin(e,o)}spin(e,i){let o=this.step*i,s=this.parseValue(this.input?.nativeElement.value)||0,a=this.validateValue(s+o);this.maxlength&&this.maxlength<this.formatValue(a).length||(this.updateInput(a,null,"spin",null),this.updateModel(e,a),this.handleOnInput(e,s,a))}clear(){this.value=null,this.onModelChange(this.value),this.onClear.emit()}onUpButtonMouseDown(e){2!==e.button?this.disabled||(this.input?.nativeElement.focus(),this.repeat(e,null,1),e.preventDefault()):this.clearTimer()}onUpButtonMouseUp(){this.disabled||this.clearTimer()}onUpButtonMouseLeave(){this.disabled||this.clearTimer()}onUpButtonKeyDown(e){(32===e.keyCode||13===e.keyCode)&&this.repeat(e,null,1)}onUpButtonKeyUp(){this.disabled||this.clearTimer()}onDownButtonMouseDown(e){2!==e.button?this.disabled||(this.input?.nativeElement.focus(),this.repeat(e,null,-1),e.preventDefault()):this.clearTimer()}onDownButtonMouseUp(){this.disabled||this.clearTimer()}onDownButtonMouseLeave(){this.disabled||this.clearTimer()}onDownButtonKeyUp(){this.disabled||this.clearTimer()}onDownButtonKeyDown(e){(32===e.keyCode||13===e.keyCode)&&this.repeat(e,null,-1)}onUserInput(e){this.readonly||(this.isSpecialChar&&(e.target.value=this.lastValue),this.isSpecialChar=!1)}onInputKeyDown(e){if(this.readonly)return;if(this.lastValue=e.target.value,e.shiftKey||e.altKey)return void(this.isSpecialChar=!0);let i=e.target.selectionStart,o=e.target.selectionEnd,s=e.target.value,a=null;switch(e.altKey&&e.preventDefault(),e.key){case"ArrowUp":this.spin(e,1),e.preventDefault();break;case"ArrowDown":this.spin(e,-1),e.preventDefault();break;case"ArrowLeft":for(let l=i;l<=s.length;l++)if(this.isNumeralChar(s.charAt(0===l?0:l-1))){this.input.nativeElement.setSelectionRange(l,l);break}break;case"ArrowRight":for(let l=o;l>=0;l--)if(this.isNumeralChar(s.charAt(l))){this.input.nativeElement.setSelectionRange(l,l);break}break;case"Tab":case"Enter":a=this.validateValue(this.parseValue(this.input.nativeElement.value)),this.input.nativeElement.value=this.formatValue(a),this.input.nativeElement.setAttribute("aria-valuenow",a),this.updateModel(e,a);break;case"Backspace":if(e.preventDefault(),i===o){if(1==i&&this.prefix||i==s.length&&this.suffix)break;const l=s.charAt(i-1),{decimalCharIndex:c,decimalCharIndexWithoutPrefix:d}=this.getDecimalCharIndexes(s);if(this.isNumeralChar(l)){const f=this.getDecimalLength(s);if(this._group.test(l))this._group.lastIndex=0,a=s.slice(0,i-2)+s.slice(i-1);else if(this._decimal.test(l))this._decimal.lastIndex=0,f?this.input?.nativeElement.setSelectionRange(i-1,i-1):a=s.slice(0,i-1)+s.slice(i);else if(c>0&&i>c){const v=this.isDecimalMode()&&(this.minFractionDigits||0)<f?"":"0";a=s.slice(0,i-1)+v+s.slice(i)}else 1===d?(a=s.slice(0,i-1)+"0"+s.slice(i),a=this.parseValue(a)>0?a:""):a=s.slice(0,i-1)+s.slice(i)}else"currency"===this.mode&&-1!=l.search(this._currency)&&(a=s.slice(1));this.updateValue(e,a,null,"delete-single")}else a=this.deleteRange(s,i,o),this.updateValue(e,a,null,"delete-range");break;case"Delete":if(e.preventDefault(),i===o){if(0==i&&this.prefix||i==s.length-1&&this.suffix)break;const l=s.charAt(i),{decimalCharIndex:c,decimalCharIndexWithoutPrefix:d}=this.getDecimalCharIndexes(s);if(this.isNumeralChar(l)){const f=this.getDecimalLength(s);if(this._group.test(l))this._group.lastIndex=0,a=s.slice(0,i)+s.slice(i+2);else if(this._decimal.test(l))this._decimal.lastIndex=0,f?this.input?.nativeElement.setSelectionRange(i+1,i+1):a=s.slice(0,i)+s.slice(i+1);else if(c>0&&i>c){const v=this.isDecimalMode()&&(this.minFractionDigits||0)<f?"":"0";a=s.slice(0,i)+v+s.slice(i+1)}else 1===d?(a=s.slice(0,i)+"0"+s.slice(i+1),a=this.parseValue(a)>0?a:""):a=s.slice(0,i)+s.slice(i+1)}this.updateValue(e,a,null,"delete-back-single")}else a=this.deleteRange(s,i,o),this.updateValue(e,a,null,"delete-range");break;case"Home":this.min&&(this.updateModel(e,this.min),e.preventDefault());break;case"End":this.max&&(this.updateModel(e,this.max),e.preventDefault())}this.onKeyDown.emit(e)}onInputKeyPress(e){if(this.readonly)return;let i=e.which||e.keyCode,o=String.fromCharCode(i),s=this.isDecimalSign(o);const a=this.isMinusSign(o);13!=i&&e.preventDefault(),!s&&"NumpadDecimal"===e.code&&(s=!0,o=this._decimalChar,i=o.charCodeAt(0));const{value:l,selectionStart:c,selectionEnd:d}=this.input.nativeElement,f=this.parseValue(l+o),v=null!=f?f.toString():"",w=l.substring(c,d),x=this.parseValue(w),I=null!=x?x.toString():"";c!==d&&I.length>0?this.insert(e,o,{isDecimalSign:s,isMinusSign:a}):this.maxlength&&v.length>this.maxlength||(48<=i&&i<=57||a||s)&&this.insert(e,o,{isDecimalSign:s,isMinusSign:a})}onPaste(e){if(!this.disabled&&!this.readonly){e.preventDefault();let i=(e.clipboardData||this.document.defaultView.clipboardData).getData("Text");if(i){this.maxlength&&(i=i.toString().substring(0,this.maxlength));let o=this.parseValue(i);null!=o&&this.insert(e,o.toString())}}}allowMinusSign(){return null==this.min||this.min<0}isMinusSign(e){return!(!this._minusSign.test(e)&&"-"!==e||(this._minusSign.lastIndex=0,0))}isDecimalSign(e){return!!this._decimal.test(e)&&(this._decimal.lastIndex=0,!0)}isDecimalMode(){return"decimal"===this.mode}getDecimalCharIndexes(e){let i=e.search(this._decimal);this._decimal.lastIndex=0;const s=e.replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").search(this._decimal);return this._decimal.lastIndex=0,{decimalCharIndex:i,decimalCharIndexWithoutPrefix:s}}getCharIndexes(e){const i=e.search(this._decimal);this._decimal.lastIndex=0;const o=e.search(this._minusSign);this._minusSign.lastIndex=0;const s=e.search(this._suffix);this._suffix.lastIndex=0;const a=e.search(this._currency);return this._currency.lastIndex=0,{decimalCharIndex:i,minusCharIndex:o,suffixCharIndex:s,currencyCharIndex:a}}insert(e,i,o={isDecimalSign:!1,isMinusSign:!1}){const s=i.search(this._minusSign);if(this._minusSign.lastIndex=0,!this.allowMinusSign()&&-1!==s)return;let a=this.input?.nativeElement.selectionStart,l=this.input?.nativeElement.selectionEnd,c=this.input?.nativeElement.value.trim();const{decimalCharIndex:d,minusCharIndex:f,suffixCharIndex:v,currencyCharIndex:w}=this.getCharIndexes(c);let x;if(o.isMinusSign)0===a&&(x=c,(-1===f||0!==l)&&(x=this.insertText(c,i,0,l)),this.updateValue(e,x,i,"insert"));else if(o.isDecimalSign)d>0&&a===d?this.updateValue(e,c,i,"insert"):(d>a&&d<l||-1===d&&this.maxFractionDigits)&&(x=this.insertText(c,i,a,l),this.updateValue(e,x,i,"insert"));else{const I=this.numberFormat.resolvedOptions().maximumFractionDigits,M=a!==l?"range-insert":"insert";if(d>0&&a>d){if(a+i.length-(d+1)<=I){const F=w>=a?w-1:v>=a?v:c.length;x=c.slice(0,a)+i+c.slice(a+i.length,F)+c.slice(F),this.updateValue(e,x,i,M)}}else x=this.insertText(c,i,a,l),this.updateValue(e,x,i,M)}}insertText(e,i,o,s){if(2===("."===i?i:i.split(".")).length){const l=e.slice(o,s).search(this._decimal);return this._decimal.lastIndex=0,l>0?e.slice(0,o)+this.formatValue(i)+e.slice(s):e||this.formatValue(i)}return s-o===e.length?this.formatValue(i):0===o?i+e.slice(s):s===e.length?e.slice(0,o)+i:e.slice(0,o)+i+e.slice(s)}deleteRange(e,i,o){let s;return s=o-i===e.length?"":0===i?e.slice(o):o===e.length?e.slice(0,i):e.slice(0,i)+e.slice(o),s}initCursor(){let e=this.input?.nativeElement.selectionStart,i=this.input?.nativeElement.selectionEnd,o=this.input?.nativeElement.value,s=o.length,a=null,l=(this.prefixChar||"").length;o=o.replace(this._prefix,""),(e===i||0!==e||i<l)&&(e-=l);let c=o.charAt(e);if(this.isNumeralChar(c))return e+l;let d=e-1;for(;d>=0;){if(c=o.charAt(d),this.isNumeralChar(c)){a=d+l;break}d--}if(null!==a)this.input?.nativeElement.setSelectionRange(a+1,a+1);else{for(d=e;d<s;){if(c=o.charAt(d),this.isNumeralChar(c)){a=d+l;break}d++}null!==a&&this.input?.nativeElement.setSelectionRange(a,a)}return a||0}onInputClick(){const e=this.input?.nativeElement.value;!this.readonly&&e!==function Hme(){return window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():void 0}()&&this.initCursor()}isNumeralChar(e){return!(1!==e.length||!(this._numeral.test(e)||this._decimal.test(e)||this._group.test(e)||this._minusSign.test(e))||(this.resetRegex(),0))}resetRegex(){this._numeral.lastIndex=0,this._decimal.lastIndex=0,this._group.lastIndex=0,this._minusSign.lastIndex=0}updateValue(e,i,o,s){let a=this.input?.nativeElement.value,l=null;null!=i&&(l=this.parseValue(i),l=l||this.allowEmpty?l:0,this.updateInput(l,o,s,i),this.handleOnInput(e,a,l))}handleOnInput(e,i,o){this.isValueChanged(i,o)&&(this.input.nativeElement.value=this.formatValue(o),this.input?.nativeElement.setAttribute("aria-valuenow",o),this.updateModel(e,o),this.onInput.emit({originalEvent:e,value:o,formattedValue:i}))}isValueChanged(e,i){return null===i&&null!==e||null!=i&&i!==("string"==typeof e?this.parseValue(e):e)}validateValue(e){return"-"===e||null==e?null:null!=this.min&&e<this.min?this.min:null!=this.max&&e>this.max?this.max:e}updateInput(e,i,o,s){i=i||"";let a=this.input?.nativeElement.value,l=this.formatValue(e),c=a.length;if(l!==s&&(l=this.concatValues(l,s)),0===c){this.input.nativeElement.value=l,this.input.nativeElement.setSelectionRange(0,0);const f=this.initCursor()+i.length;this.input.nativeElement.setSelectionRange(f,f)}else{let d=this.input.nativeElement.selectionStart,f=this.input.nativeElement.selectionEnd;if(this.maxlength&&l.length>this.maxlength&&(l=l.slice(0,this.maxlength),d=Math.min(d,this.maxlength),f=Math.min(f,this.maxlength)),this.maxlength&&this.maxlength<l.length)return;this.input.nativeElement.value=l;let v=l.length;if("range-insert"===o){const w=this.parseValue((a||"").slice(0,d)),I=(null!==w?w.toString():"").split("").join(`(${this.groupChar})?`),M=new RegExp(I,"g");M.test(l);const F=i.split("").join(`(${this.groupChar})?`),re=new RegExp(F,"g");re.test(l.slice(M.lastIndex)),f=M.lastIndex+re.lastIndex,this.input.nativeElement.setSelectionRange(f,f)}else if(v===c)"insert"===o||"delete-back-single"===o?this.input.nativeElement.setSelectionRange(f+1,f+1):"delete-single"===o?this.input.nativeElement.setSelectionRange(f-1,f-1):("delete-range"===o||"spin"===o)&&this.input.nativeElement.setSelectionRange(f,f);else if("delete-back-single"===o){let w=a.charAt(f-1),x=a.charAt(f),I=c-v,M=this._group.test(x);M&&1===I?f+=1:!M&&this.isNumeralChar(w)&&(f+=-1*I+1),this._group.lastIndex=0,this.input.nativeElement.setSelectionRange(f,f)}else if("-"===a&&"insert"===o){this.input.nativeElement.setSelectionRange(0,0);const x=this.initCursor()+i.length+1;this.input.nativeElement.setSelectionRange(x,x)}else f+=v-c,this.input.nativeElement.setSelectionRange(f,f)}this.input.nativeElement.setAttribute("aria-valuenow",e)}concatValues(e,i){if(e&&i){let o=i.search(this._decimal);return this._decimal.lastIndex=0,this.suffixChar?-1!==o?e:e.replace(this.suffixChar,"").split(this._decimal)[0]+i.replace(this.suffixChar,"").slice(o)+this.suffixChar:-1!==o?e.split(this._decimal)[0]+i.slice(o):e}return e}getDecimalLength(e){if(e){const i=e.split(this._decimal);if(2===i.length)return i[1].replace(this._suffix,"").trim().replace(/\s/g,"").replace(this._currency,"").length}return 0}onInputFocus(e){this.focused=!0,this.onFocus.emit(e)}onInputBlur(e){this.focused=!1;const i=this.validateValue(this.parseValue(this.input.nativeElement.value)),o=i?.toString();this.input.nativeElement.value=this.formatValue(o),this.input.nativeElement.setAttribute("aria-valuenow",o),this.updateModel(e,i),this.onBlur.emit(e)}formattedValue(){return this.formatValue(this.value||this.allowEmpty?this.value:0)}updateModel(e,i){const o="blur"===this.ngControl?.control?.updateOn;this.value!==i?(this.value=i,o&&this.focused||this.onModelChange(i)):o&&this.onModelChange(i),this.onModelTouched()}writeValue(e){this.value=e&&this.parseValue(e.toString()),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}get filled(){return null!=this.value&&this.value.toString().length>0}clearTimer(){this.timer&&clearInterval(this.timer)}static \u0275fac=function(i){return new(i||t)(n.rXU(n.zZn))};static \u0275cmp=n.VBU({type:t,selectors:[["p-inputNumber"],["p-inputnumber"],["p-input-number"]],contentQueries:function(i,o,s){if(1&i&&(n.wni(s,gRe,4),n.wni(s,vRe,4),n.wni(s,_Re,4),n.wni(s,hs,4)),2&i){let a;n.mGM(a=n.lsd())&&(o.clearIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.incrementButtonIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.decrementButtonIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.templates=a)}},viewQuery:function(i,o){if(1&i&&n.GBs(yRe,5),2&i){let s;n.mGM(s=n.lsd())&&(o.input=s.first)}},hostVars:4,hostBindings:function(i,o){2&i&&(n.BMQ("data-pc-name","inputnumber")("data-pc-section","root"),n.HbH(o.hostClasses))},inputs:{showButtons:[2,"showButtons","showButtons",n.L39],format:[2,"format","format",n.L39],buttonLayout:"buttonLayout",inputId:"inputId",styleClass:"styleClass",style:"style",placeholder:"placeholder",size:"size",maxlength:[2,"maxlength","maxlength",n.Udg],tabindex:[2,"tabindex","tabindex",n.Udg],title:"title",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",ariaRequired:[2,"ariaRequired","ariaRequired",n.L39],name:"name",required:[2,"required","required",n.L39],autocomplete:"autocomplete",min:[2,"min","min",n.Udg],max:[2,"max","max",n.Udg],incrementButtonClass:"incrementButtonClass",decrementButtonClass:"decrementButtonClass",incrementButtonIcon:"incrementButtonIcon",decrementButtonIcon:"decrementButtonIcon",readonly:[2,"readonly","readonly",n.L39],step:[2,"step","step",n.Udg],allowEmpty:[2,"allowEmpty","allowEmpty",n.L39],locale:"locale",localeMatcher:"localeMatcher",mode:"mode",currency:"currency",currencyDisplay:"currencyDisplay",useGrouping:[2,"useGrouping","useGrouping",n.L39],variant:"variant",minFractionDigits:[2,"minFractionDigits","minFractionDigits",e=>(0,n.Udg)(e,null)],maxFractionDigits:[2,"maxFractionDigits","maxFractionDigits",e=>(0,n.Udg)(e,null)],prefix:"prefix",suffix:"suffix",inputStyle:"inputStyle",inputStyleClass:"inputStyleClass",showClear:[2,"showClear","showClear",n.L39],autofocus:[2,"autofocus","autofocus",n.L39],disabled:"disabled",fluid:[2,"fluid","fluid",n.L39]},outputs:{onInput:"onInput",onFocus:"onFocus",onBlur:"onBlur",onKeyDown:"onKeyDown",onClear:"onClear"},features:[n.Jv_([qRe,vie]),n.GFd,n.Vt3,n.OA$],decls:6,vars:32,consts:[["input",""],["pInputText","","role","spinbutton","inputmode","decimal",3,"input","keydown","keypress","paste","click","focus","blur","ngClass","ngStyle","value","variant","disabled","readonly","pSize","pAutoFocus","fluid"],[4,"ngIf"],["class","p-inputnumber-button-group",4,"ngIf"],["type","button","tabindex","-1",3,"ngClass","class","disabled","mousedown","mouseup","mouseleave","keydown","keyup",4,"ngIf"],[3,"ngClass","click",4,"ngIf"],["class","p-inputnumber-clear-icon",3,"click",4,"ngIf"],[3,"click","ngClass"],[1,"p-inputnumber-clear-icon",3,"click"],[4,"ngTemplateOutlet"],[1,"p-inputnumber-button-group"],["type","button","tabindex","-1",3,"mousedown","mouseup","mouseleave","keydown","keyup","ngClass","disabled"],[3,"ngClass",4,"ngIf"],[3,"ngClass"]],template:function(i,o){if(1&i){const s=n.RV6();n.j41(0,"input",1,0),n.bIt("input",function(l){return n.eBV(s),n.Njj(o.onUserInput(l))})("keydown",function(l){return n.eBV(s),n.Njj(o.onInputKeyDown(l))})("keypress",function(l){return n.eBV(s),n.Njj(o.onInputKeyPress(l))})("paste",function(l){return n.eBV(s),n.Njj(o.onPaste(l))})("click",function(){return n.eBV(s),n.Njj(o.onInputClick())})("focus",function(l){return n.eBV(s),n.Njj(o.onInputFocus(l))})("blur",function(l){return n.eBV(s),n.Njj(o.onInputBlur(l))}),n.k0s(),n.DNE(2,SRe,3,2,"ng-container",2)(3,PRe,7,17,"span",3)(4,jRe,3,8,"button",4)(5,zRe,3,8,"button",4)}2&i&&(n.HbH(o.inputStyleClass),n.Y8G("ngClass","p-inputnumber-input")("ngStyle",o.inputStyle)("value",o.formattedValue())("variant",o.variant)("disabled",o.disabled)("readonly",o.readonly)("pSize",o.size)("pAutoFocus",o.autofocus)("fluid",o.hasFluid),n.BMQ("id",o.inputId)("aria-valuemin",o.min)("aria-valuemax",o.max)("aria-valuenow",o.value)("placeholder",o.placeholder)("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledBy)("title",o.title)("name",o.name)("autocomplete",o.autocomplete)("maxlength",o.maxlength)("tabindex",o.tabindex)("aria-required",o.ariaRequired)("required",o.required)("min",o.min)("max",o.max)("data-pc-section","input"),n.R7$(2),n.Y8G("ngIf","vertical"!=o.buttonLayout&&o.showClear&&o.value),n.R7$(),n.Y8G("ngIf",o.showButtons&&"stacked"===o.buttonLayout),n.R7$(),n.Y8G("ngIf",o.showButtons&&"stacked"!==o.buttonLayout),n.R7$(),n.Y8G("ngIf",o.showButtons&&"stacked"!==o.buttonLayout))},dependencies:[gn,bi,fi,uo,Jr,hf,Jf,pf,dRe,pRe,Di],encapsulation:2,changeDetection:0})}return t})(),Xw=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({imports:[J_,Di,Di]})}return t})(),XRe=(()=>{class t extends Gc{static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["AngleDoubleLeftIcon"]],features:[n.Vt3],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M5.71602 11.164C5.80782 11.2021 5.9063 11.2215 6.00569 11.221C6.20216 11.2301 6.39427 11.1612 6.54025 11.0294C6.68191 10.8875 6.76148 10.6953 6.76148 10.4948C6.76148 10.2943 6.68191 10.1021 6.54025 9.96024L3.51441 6.9344L6.54025 3.90855C6.624 3.76126 6.65587 3.59011 6.63076 3.42254C6.60564 3.25498 6.525 3.10069 6.40175 2.98442C6.2785 2.86815 6.11978 2.79662 5.95104 2.7813C5.78229 2.76598 5.61329 2.80776 5.47112 2.89994L1.97123 6.39983C1.82957 6.54167 1.75 6.73393 1.75 6.9344C1.75 7.13486 1.82957 7.32712 1.97123 7.46896L5.47112 10.9991C5.54096 11.0698 5.62422 11.1259 5.71602 11.164ZM11.0488 10.9689C11.1775 11.1156 11.3585 11.2061 11.5531 11.221C11.7477 11.2061 11.9288 11.1156 12.0574 10.9689C12.1815 10.8302 12.25 10.6506 12.25 10.4645C12.25 10.2785 12.1815 10.0989 12.0574 9.96024L9.03158 6.93439L12.0574 3.90855C12.1248 3.76739 12.1468 3.60881 12.1204 3.45463C12.0939 3.30045 12.0203 3.15826 11.9097 3.04765C11.7991 2.93703 11.6569 2.86343 11.5027 2.83698C11.3486 2.81053 11.19 2.83252 11.0488 2.89994L7.51865 6.36957C7.37699 6.51141 7.29742 6.70367 7.29742 6.90414C7.29742 7.1046 7.37699 7.29686 7.51865 7.4387L11.0488 10.9689Z","fill","currentColor"]],template:function(i,o){1&i&&(n.qSk(),n.j41(0,"svg",0),n.nrm(1,"path",1),n.k0s()),2&i&&(n.HbH(o.getClassNames()),n.BMQ("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),KRe=(()=>{class t extends Gc{static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["AngleDoubleRightIcon"]],features:[n.Vt3],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7.68757 11.1451C7.7791 11.1831 7.8773 11.2024 7.9764 11.2019C8.07769 11.1985 8.17721 11.1745 8.26886 11.1312C8.36052 11.088 8.44238 11.0265 8.50943 10.9505L12.0294 7.49085C12.1707 7.34942 12.25 7.15771 12.25 6.95782C12.25 6.75794 12.1707 6.56622 12.0294 6.42479L8.50943 2.90479C8.37014 2.82159 8.20774 2.78551 8.04633 2.80192C7.88491 2.81833 7.73309 2.88635 7.6134 2.99588C7.4937 3.10541 7.41252 3.25061 7.38189 3.40994C7.35126 3.56927 7.37282 3.73423 7.44337 3.88033L10.4605 6.89748L7.44337 9.91463C7.30212 10.0561 7.22278 10.2478 7.22278 10.4477C7.22278 10.6475 7.30212 10.8393 7.44337 10.9807C7.51301 11.0512 7.59603 11.1071 7.68757 11.1451ZM1.94207 10.9505C2.07037 11.0968 2.25089 11.1871 2.44493 11.2019C2.63898 11.1871 2.81949 11.0968 2.94779 10.9505L6.46779 7.49085C6.60905 7.34942 6.68839 7.15771 6.68839 6.95782C6.68839 6.75793 6.60905 6.56622 6.46779 6.42479L2.94779 2.90479C2.80704 2.83757 2.6489 2.81563 2.49517 2.84201C2.34143 2.86839 2.19965 2.94178 2.08936 3.05207C1.97906 3.16237 1.90567 3.30415 1.8793 3.45788C1.85292 3.61162 1.87485 3.76975 1.94207 3.9105L4.95922 6.92765L1.94207 9.9448C1.81838 10.0831 1.75 10.2621 1.75 10.4477C1.75 10.6332 1.81838 10.8122 1.94207 10.9505Z","fill","currentColor"]],template:function(i,o){1&i&&(n.qSk(),n.j41(0,"svg",0),n.nrm(1,"path",1),n.k0s()),2&i&&(n.HbH(o.getClassNames()),n.BMQ("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),QRe=(()=>{class t extends Gc{static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["AngleLeftIcon"]],features:[n.Vt3],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.75 11.185C8.65146 11.1854 8.55381 11.1662 8.4628 11.1284C8.37179 11.0906 8.28924 11.0351 8.22 10.965L4.72 7.46496C4.57955 7.32433 4.50066 7.13371 4.50066 6.93496C4.50066 6.73621 4.57955 6.54558 4.72 6.40496L8.22 2.93496C8.36095 2.84357 8.52851 2.80215 8.69582 2.81733C8.86312 2.83252 9.02048 2.90344 9.14268 3.01872C9.26487 3.134 9.34483 3.28696 9.36973 3.4531C9.39463 3.61924 9.36303 3.78892 9.28 3.93496L6.28 6.93496L9.28 9.93496C9.42045 10.0756 9.49934 10.2662 9.49934 10.465C9.49934 10.6637 9.42045 10.8543 9.28 10.995C9.13526 11.1257 8.9448 11.1939 8.75 11.185Z","fill","currentColor"]],template:function(i,o){1&i&&(n.qSk(),n.j41(0,"svg",0),n.nrm(1,"path",1),n.k0s()),2&i&&(n.HbH(o.getClassNames()),n.BMQ("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})(),JRe=(()=>{class t extends Gc{static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["AngleRightIcon"]],features:[n.Vt3],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M5.25 11.1728C5.14929 11.1694 5.05033 11.1455 4.9592 11.1025C4.86806 11.0595 4.78666 10.9984 4.72 10.9228C4.57955 10.7822 4.50066 10.5916 4.50066 10.3928C4.50066 10.1941 4.57955 10.0035 4.72 9.86283L7.72 6.86283L4.72 3.86283C4.66067 3.71882 4.64765 3.55991 4.68275 3.40816C4.71785 3.25642 4.79932 3.11936 4.91585 3.01602C5.03238 2.91268 5.17819 2.84819 5.33305 2.83149C5.4879 2.81479 5.64411 2.84671 5.78 2.92283L9.28 6.42283C9.42045 6.56346 9.49934 6.75408 9.49934 6.95283C9.49934 7.15158 9.42045 7.34221 9.28 7.48283L5.78 10.9228C5.71333 10.9984 5.63193 11.0595 5.5408 11.1025C5.44966 11.1455 5.35071 11.1694 5.25 11.1728Z","fill","currentColor"]],template:function(i,o){1&i&&(n.qSk(),n.j41(0,"svg",0),n.nrm(1,"path",1),n.k0s()),2&i&&(n.HbH(o.getClassNames()),n.BMQ("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role))},encapsulation:2})}return t})();const ZRe=({dt:t})=>`\n.p-paginator {\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    flex-wrap: wrap;\n    background: ${t("paginator.background")};\n    color: ${t("paginator.color")};\n    padding: ${t("paginator.padding")};\n    border-radius: ${t("paginator.border.radius")};\n    gap: ${t("paginator.gap")};\n}\n\n.p-paginator-content {\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    flex-wrap: wrap;\n    gap: ${t("paginator.gap")};\n}\n\n.p-paginator-content-start {\n    margin-inline-end: auto;\n}\n\n.p-paginator-content-end {\n    margin-inline-start: auto;\n}\n\n.p-paginator-page,\n.p-paginator-next,\n.p-paginator-last,\n.p-paginator-first,\n.p-paginator-prev {\n    cursor: pointer;\n    display: inline-flex;\n    align-items: center;\n    justify-content: center;\n    line-height: 1;\n    user-select: none;\n    overflow: hidden;\n    position: relative;\n    background: ${t("paginator.nav.button.background")};\n    border: 0 none;\n    color: ${t("paginator.nav.button.color")};\n    min-width: ${t("paginator.nav.button.width")};\n    height: ${t("paginator.nav.button.height")};\n    transition: background ${t("paginator.transition.duration")}, color ${t("paginator.transition.duration")}, outline-color ${t("paginator.transition.duration")}, box-shadow ${t("paginator.transition.duration")};\n    border-radius: ${t("paginator.nav.button.border.radius")};\n    padding: 0;\n    margin: 0;\n}\n\n.p-paginator-page:focus-visible,\n.p-paginator-next:focus-visible,\n.p-paginator-last:focus-visible,\n.p-paginator-first:focus-visible,\n.p-paginator-prev:focus-visible {\n    box-shadow: ${t("paginator.nav.button.focus.ring.shadow")};\n    outline: ${t("paginator.nav.button.focus.ring.width")} ${t("paginator.nav.button.focus.ring.style")} ${t("paginator.nav.button.focus.ring.color")};\n    outline-offset: ${t("paginator.nav.button.focus.ring.offset")};\n}\n\n.p-paginator-page:not(.p-disabled):not(.p-paginator-page-selected):hover,\n.p-paginator-first:not(.p-disabled):hover,\n.p-paginator-prev:not(.p-disabled):hover,\n.p-paginator-next:not(.p-disabled):hover,\n.p-paginator-last:not(.p-disabled):hover {\n    background: ${t("paginator.nav.button.hover.background")};\n    color: ${t("paginator.nav.button.hover.color")};\n}\n\n.p-paginator-first:dir(rtl),\n.p-paginator-prev:dir(rtl),\n.p-paginator-next:dir(rtl),\n.p-paginator-last:dir(rtl) {\n    transform: rotate(180deg);\n}\n\n.p-paginator-page.p-paginator-page-selected {\n    background: ${t("paginator.nav.button.selected.background")};\n    color: ${t("paginator.nav.button.selected.color")};\n}\n\n.p-paginator-current {\n    color: ${t("paginator.current.page.report.color")};\n}\n\n.p-paginator-pages {\n    display: flex;\n    align-items: center;\n    gap: ${t("paginator.gap")};\n}\n\n.p-paginator-jtp-input .p-inputtext {\n    max-width: ${t("paginator.jump.to.page.input.max.width")};\n}\n`,eOe={paginator:({instance:t,key:r})=>["p-paginator p-component",{"p-paginator-default":!t.hasBreakpoints(),[`p-paginator-${r}`]:t.hasBreakpoints()}],content:"p-paginator-content",contentStart:"p-paginator-content-start",contentEnd:"p-paginator-content-end",first:({instance:t})=>["p-paginator-first",{"p-disabled":t.$attrs.disabled}],firstIcon:"p-paginator-first-icon",prev:({instance:t})=>["p-paginator-prev",{"p-disabled":t.$attrs.disabled}],prevIcon:"p-paginator-prev-icon",next:({instance:t})=>["p-paginator-next",{"p-disabled":t.$attrs.disabled}],nextIcon:"p-paginator-next-icon",last:({instance:t})=>["p-paginator-last",{"p-disabled":t.$attrs.disabled}],lastIcon:"p-paginator-last-icon",pages:"p-paginator-pages",page:({props:t,pageLink:r})=>["p-paginator-page",{"p-paginator-page-selected":r-1===t.page}],current:"p-paginator-current",pcRowPerPageDropdown:"p-paginator-rpp-dropdown",pcJumpToPageDropdown:"p-paginator-jtp-dropdown",pcJumpToPageInput:"p-paginator-jtp-input"};let _ie=(()=>{class t extends gs{name="paginator";theme=ZRe;classes=eOe;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const nOe=["dropdownicon"],iOe=["firstpagelinkicon"],rOe=["previouspagelinkicon"],oOe=["lastpagelinkicon"],sOe=["nextpagelinkicon"],o7=t=>({"p-disabled":t}),s7=t=>({$implicit:t}),aOe=t=>({"p-paginator-page-selected":t});function lOe(t,r){1&t&&n.eu8(0)}function cOe(t,r){if(1&t&&(n.j41(0,"div",16),n.DNE(1,lOe,1,0,"ng-container",17),n.k0s()),2&t){const e=n.XpG(2);n.BMQ("data-pc-section","start"),n.R7$(),n.Y8G("ngTemplateOutlet",e.templateLeft)("ngTemplateOutletContext",n.eq3(3,s7,e.paginatorState))}}function uOe(t,r){if(1&t&&(n.j41(0,"span",18),n.EFF(1),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.JRh(e.currentPageReport)}}function dOe(t,r){1&t&&n.nrm(0,"AngleDoubleLeftIcon",21),2&t&&n.Y8G("styleClass","p-paginator-first-icon")}function pOe(t,r){}function hOe(t,r){1&t&&n.DNE(0,pOe,0,0,"ng-template")}function fOe(t,r){if(1&t&&(n.j41(0,"span",22),n.DNE(1,hOe,1,0,null,23),n.k0s()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngTemplateOutlet",e.firstPageLinkIconTemplate||e._firstPageLinkIconTemplate)}}function mOe(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",19),n.bIt("click",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.changePageToFirst(o))}),n.DNE(1,dOe,1,1,"AngleDoubleLeftIcon",6)(2,fOe,2,1,"span",20),n.k0s()}if(2&t){const e=n.XpG(2);n.Y8G("disabled",e.isFirstPage()||e.empty())("ngClass",n.eq3(5,o7,e.isFirstPage()||e.empty())),n.BMQ("aria-label",e.getAriaLabel("firstPageLabel")),n.R7$(),n.Y8G("ngIf",!e.firstPageLinkIconTemplate&&!e._firstPageLinkIconTemplate),n.R7$(),n.Y8G("ngIf",e.firstPageLinkIconTemplate||e._firstPageLinkIconTemplate)}}function gOe(t,r){1&t&&n.nrm(0,"AngleLeftIcon",21),2&t&&n.Y8G("styleClass","p-paginator-prev-icon")}function vOe(t,r){}function _Oe(t,r){1&t&&n.DNE(0,vOe,0,0,"ng-template")}function yOe(t,r){if(1&t&&(n.j41(0,"span",24),n.DNE(1,_Oe,1,0,null,23),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngTemplateOutlet",e.previousPageLinkIconTemplate||e._previousPageLinkIconTemplate)}}function bOe(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",27),n.bIt("click",function(o){const s=n.eBV(e).$implicit,a=n.XpG(3);return n.Njj(a.onPageLinkClick(o,s-1))}),n.EFF(1),n.k0s()}if(2&t){const e=r.$implicit,i=n.XpG(3);n.Y8G("ngClass",n.eq3(4,aOe,e-1==i.getPage())),n.BMQ("aria-label",i.getPageAriaLabel(e))("aria-current",e-1==i.getPage()?"page":void 0),n.R7$(),n.SpI(" ",i.getLocalization(e)," ")}}function COe(t,r){if(1&t&&(n.j41(0,"span",25),n.DNE(1,bOe,2,6,"button",26),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngForOf",e.pageLinks)}}function wOe(t,r){if(1&t&&n.EFF(0),2&t){const e=n.XpG(3);n.JRh(e.currentPageReport)}}function TOe(t,r){1&t&&n.eu8(0)}function SOe(t,r){if(1&t&&n.DNE(0,TOe,1,0,"ng-container",17),2&t){const e=r.$implicit,i=n.XpG(4);n.Y8G("ngTemplateOutlet",i.jumpToPageItemTemplate)("ngTemplateOutletContext",n.eq3(2,s7,e))}}function xOe(t,r){1&t&&(n.qex(0),n.DNE(1,SOe,1,4,"ng-template",31),n.bVm())}function EOe(t,r){1&t&&n.eu8(0)}function DOe(t,r){if(1&t&&n.DNE(0,EOe,1,0,"ng-container",23),2&t){const e=n.XpG(4);n.Y8G("ngTemplateOutlet",e.dropdownIconTemplate||e._dropdownIconTemplate)}}function kOe(t,r){1&t&&n.DNE(0,DOe,1,1,"ng-template",32)}function IOe(t,r){if(1&t){const e=n.RV6();n.j41(0,"p-select",28),n.bIt("onChange",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onPageDropdownChange(o))}),n.DNE(1,wOe,1,1,"ng-template",29)(2,xOe,2,0,"ng-container",30)(3,kOe,1,0,null,30),n.k0s()}if(2&t){const e=n.XpG(2);n.Y8G("options",e.pageItems)("ngModel",e.getPage())("disabled",e.empty())("appendTo",e.dropdownAppendTo)("scrollHeight",e.dropdownScrollHeight),n.BMQ("aria-label",e.getAriaLabel("jumpToPageDropdownLabel")),n.R7$(2),n.Y8G("ngIf",e.jumpToPageItemTemplate),n.R7$(),n.Y8G("ngIf",e.dropdownIconTemplate||e._dropdownIconTemplate)}}function AOe(t,r){1&t&&n.nrm(0,"AngleRightIcon",21),2&t&&n.Y8G("styleClass","p-paginator-next-icon")}function MOe(t,r){}function ROe(t,r){1&t&&n.DNE(0,MOe,0,0,"ng-template")}function OOe(t,r){if(1&t&&(n.j41(0,"span",33),n.DNE(1,ROe,1,0,null,23),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngTemplateOutlet",e.nextPageLinkIconTemplate||e._nextPageLinkIconTemplate)}}function FOe(t,r){1&t&&n.nrm(0,"AngleDoubleRightIcon",21),2&t&&n.Y8G("styleClass","p-paginator-last-icon")}function POe(t,r){}function LOe(t,r){1&t&&n.DNE(0,POe,0,0,"ng-template")}function NOe(t,r){if(1&t&&(n.j41(0,"span",36),n.DNE(1,LOe,1,0,null,23),n.k0s()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngTemplateOutlet",e.lastPageLinkIconTemplate||e._lastPageLinkIconTemplate)}}function GOe(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",34),n.bIt("click",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.changePageToLast(o))}),n.DNE(1,FOe,1,1,"AngleDoubleRightIcon",6)(2,NOe,2,1,"span",35),n.k0s()}if(2&t){const e=n.XpG(2);n.Y8G("disabled",e.isLastPage()||e.empty())("ngClass",n.eq3(5,o7,e.isLastPage()||e.empty())),n.BMQ("aria-label",e.getAriaLabel("lastPageLabel")),n.R7$(),n.Y8G("ngIf",!e.lastPageLinkIconTemplate&&!e._lastPageLinkIconTemplate),n.R7$(),n.Y8G("ngIf",e.lastPageLinkIconTemplate||e._lastPageLinkIconTemplate)}}function BOe(t,r){if(1&t){const e=n.RV6();n.j41(0,"p-inputnumber",37),n.bIt("ngModelChange",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.changePage(o-1))}),n.k0s()}if(2&t){const e=n.XpG(2);n.Y8G("ngModel",e.currentPage())("disabled",e.empty())}}function VOe(t,r){1&t&&n.eu8(0)}function jOe(t,r){if(1&t&&n.DNE(0,VOe,1,0,"ng-container",17),2&t){const e=r.$implicit,i=n.XpG(4);n.Y8G("ngTemplateOutlet",i.dropdownItemTemplate)("ngTemplateOutletContext",n.eq3(2,s7,e))}}function HOe(t,r){1&t&&(n.qex(0),n.DNE(1,jOe,1,4,"ng-template",31),n.bVm())}function UOe(t,r){1&t&&n.eu8(0)}function $Oe(t,r){if(1&t&&n.DNE(0,UOe,1,0,"ng-container",23),2&t){const e=n.XpG(4);n.Y8G("ngTemplateOutlet",e.dropdownIconTemplate||e._dropdownIconTemplate)}}function YOe(t,r){1&t&&n.DNE(0,$Oe,1,1,"ng-template",32)}function WOe(t,r){if(1&t){const e=n.RV6();n.j41(0,"p-select",38),n.mxI("ngModelChange",function(o){n.eBV(e);const s=n.XpG(2);return n.DH7(s.rows,o)||(s.rows=o),n.Njj(o)}),n.bIt("onChange",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onRppChange(o))}),n.DNE(1,HOe,2,0,"ng-container",30)(2,YOe,1,0,null,30),n.k0s()}if(2&t){const e=n.XpG(2);n.Y8G("options",e.rowsPerPageItems),n.R50("ngModel",e.rows),n.Y8G("disabled",e.empty())("appendTo",e.dropdownAppendTo)("scrollHeight",e.dropdownScrollHeight)("ariaLabel",e.getAriaLabel("rowsPerPageLabel")),n.R7$(),n.Y8G("ngIf",e.dropdownItemTemplate),n.R7$(),n.Y8G("ngIf",e.dropdownIconTemplate||e._dropdownIconTemplate)}}function zOe(t,r){1&t&&n.eu8(0)}function qOe(t,r){if(1&t&&(n.j41(0,"div",39),n.DNE(1,zOe,1,0,"ng-container",17),n.k0s()),2&t){const e=n.XpG(2);n.BMQ("data-pc-section","end"),n.R7$(),n.Y8G("ngTemplateOutlet",e.templateRight)("ngTemplateOutletContext",n.eq3(3,s7,e.paginatorState))}}function XOe(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",1),n.DNE(1,cOe,2,5,"div",2)(2,uOe,2,1,"span",3)(3,mOe,3,7,"button",4),n.j41(4,"button",5),n.bIt("click",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.changePageToPrev(o))}),n.DNE(5,gOe,1,1,"AngleLeftIcon",6)(6,yOe,2,1,"span",7),n.k0s(),n.DNE(7,COe,2,1,"span",8)(8,IOe,4,8,"p-select",9),n.j41(9,"button",10),n.bIt("click",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.changePageToNext(o))}),n.DNE(10,AOe,1,1,"AngleRightIcon",6)(11,OOe,2,1,"span",11),n.k0s(),n.DNE(12,GOe,3,7,"button",12)(13,BOe,1,2,"p-inputnumber",13)(14,WOe,3,8,"p-select",14)(15,qOe,2,5,"div",15),n.k0s()}if(2&t){const e=n.XpG();n.HbH(e.styleClass),n.Y8G("ngStyle",e.style)("ngClass","p-paginator p-component"),n.BMQ("data-pc-section","paginator")("data-pc-section","root"),n.R7$(),n.Y8G("ngIf",e.templateLeft),n.R7$(),n.Y8G("ngIf",e.showCurrentPageReport),n.R7$(),n.Y8G("ngIf",e.showFirstLastIcon),n.R7$(),n.Y8G("disabled",e.isFirstPage()||e.empty())("ngClass",n.eq3(25,o7,e.isFirstPage()||e.empty())),n.BMQ("aria-label",e.getAriaLabel("prevPageLabel")),n.R7$(),n.Y8G("ngIf",!e.previousPageLinkIconTemplate&&!e._previousPageLinkIconTemplate),n.R7$(),n.Y8G("ngIf",e.previousPageLinkIconTemplate||e._previousPageLinkIconTemplate),n.R7$(),n.Y8G("ngIf",e.showPageLinks),n.R7$(),n.Y8G("ngIf",e.showJumpToPageDropdown),n.R7$(),n.Y8G("disabled",e.isLastPage()||e.empty())("ngClass",n.eq3(27,o7,e.isLastPage()||e.empty())),n.BMQ("aria-label",e.getAriaLabel("nextPageLabel")),n.R7$(),n.Y8G("ngIf",!e.nextPageLinkIconTemplate&&!e._nextPageLinkIconTemplate),n.R7$(),n.Y8G("ngIf",e.nextPageLinkIconTemplate||e._nextPageLinkIconTemplate),n.R7$(),n.Y8G("ngIf",e.showFirstLastIcon),n.R7$(),n.Y8G("ngIf",e.showJumpToPageInput),n.R7$(),n.Y8G("ngIf",e.rowsPerPageOptions),n.R7$(),n.Y8G("ngIf",e.templateRight)}}let yie=(()=>{class t extends jo{pageLinkSize=5;style;styleClass;alwaysShow=!0;dropdownAppendTo;templateLeft;templateRight;appendTo;dropdownScrollHeight="200px";currentPageReportTemplate="{currentPage} of {totalPages}";showCurrentPageReport;showFirstLastIcon=!0;totalRecords=0;rows=0;rowsPerPageOptions;showJumpToPageDropdown;showJumpToPageInput;jumpToPageItemTemplate;showPageLinks=!0;locale;dropdownItemTemplate;get first(){return this._first}set first(e){this._first=e}onPageChange=new n.bkB;dropdownIconTemplate;firstPageLinkIconTemplate;previousPageLinkIconTemplate;lastPageLinkIconTemplate;nextPageLinkIconTemplate;templates;_dropdownIconTemplate;_firstPageLinkIconTemplate;_previousPageLinkIconTemplate;_lastPageLinkIconTemplate;_nextPageLinkIconTemplate;pageLinks;pageItems;rowsPerPageItems;paginatorState;_first=0;_page=0;_componentStyle=(0,n.WQX)(_ie);constructor(){super()}ngOnInit(){super.ngOnInit(),this.updatePaginatorState()}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"dropdownicon":this._dropdownIconTemplate=e.template;break;case"firstpagelinkicon":this._firstPageLinkIconTemplate=e.template;break;case"previouspagelinkicon":this._previousPageLinkIconTemplate=e.template;break;case"lastpagelinkicon":this._lastPageLinkIconTemplate=e.template;break;case"nextpagelinkicon":this._nextPageLinkIconTemplate=e.template}})}getAriaLabel(e){return this.config.translation.aria?this.config.translation.aria[e]:void 0}getPageAriaLabel(e){return this.config.translation.aria?this.config.translation.aria.pageLabel.replace(/{page}/g,`${e}`):void 0}getLocalization(e){const i=[...new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),o=new Map(i.map((s,a)=>[a,s]));return e>9?String(e).split("").map(a=>o.get(Number(a))).join(""):o.get(e)}ngOnChanges(e){super.ngOnChanges(e),e.totalRecords&&(this.updatePageLinks(),this.updatePaginatorState(),this.updateFirst(),this.updateRowsPerPageOptions()),e.first&&(this._first=e.first.currentValue,this.updatePageLinks(),this.updatePaginatorState()),e.rows&&(this.updatePageLinks(),this.updatePaginatorState()),e.rowsPerPageOptions&&this.updateRowsPerPageOptions(),e.pageLinkSize&&this.updatePageLinks()}updateRowsPerPageOptions(){if(this.rowsPerPageOptions){this.rowsPerPageItems=[];let e=null;for(let i of this.rowsPerPageOptions)"object"==typeof i&&i.showAll?e={label:i.showAll,value:this.totalRecords}:this.rowsPerPageItems.push({label:String(this.getLocalization(i)),value:i});e&&this.rowsPerPageItems.push(e)}}isFirstPage(){return 0===this.getPage()}isLastPage(){return this.getPage()===this.getPageCount()-1}getPageCount(){return Math.ceil(this.totalRecords/this.rows)}calculatePageLinkBoundaries(){let e=this.getPageCount(),i=Math.min(this.pageLinkSize,e),o=Math.max(0,Math.ceil(this.getPage()-i/2)),s=Math.min(e-1,o+i-1);return o=Math.max(0,o-(this.pageLinkSize-(s-o+1))),[o,s]}updatePageLinks(){this.pageLinks=[];let e=this.calculatePageLinkBoundaries(),o=e[1];for(let s=e[0];s<=o;s++)this.pageLinks.push(s+1);if(this.showJumpToPageDropdown){this.pageItems=[];for(let s=0;s<this.getPageCount();s++)this.pageItems.push({label:String(s+1),value:s})}}changePage(e){var i=this.getPageCount();if(e>=0&&e<i){this._first=this.rows*e;var o={page:e,first:this.first,rows:this.rows,pageCount:i};this.updatePageLinks(),this.onPageChange.emit(o),this.updatePaginatorState()}}updateFirst(){const e=this.getPage();e>0&&this.totalRecords&&this.first>=this.totalRecords&&Promise.resolve(null).then(()=>this.changePage(e-1))}getPage(){return Math.floor(this.first/this.rows)}changePageToFirst(e){this.isFirstPage()||this.changePage(0),e.preventDefault()}changePageToPrev(e){this.changePage(this.getPage()-1),e.preventDefault()}changePageToNext(e){this.changePage(this.getPage()+1),e.preventDefault()}changePageToLast(e){this.isLastPage()||this.changePage(this.getPageCount()-1),e.preventDefault()}onPageLinkClick(e,i){this.changePage(i),e.preventDefault()}onRppChange(e){this.changePage(this.getPage())}onPageDropdownChange(e){this.changePage(e.value)}updatePaginatorState(){this.paginatorState={page:this.getPage(),pageCount:this.getPageCount(),rows:this.rows,first:this.first,totalRecords:this.totalRecords}}empty(){return 0===this.getPageCount()}currentPage(){return this.getPageCount()>0?this.getPage()+1:0}get currentPageReport(){return this.currentPageReportTemplate.replace("{currentPage}",String(this.currentPage())).replace("{totalPages}",String(this.getPageCount())).replace("{first}",String(this.totalRecords>0?this._first+1:0)).replace("{last}",String(Math.min(this._first+this.rows,this.totalRecords))).replace("{rows}",String(this.rows)).replace("{totalRecords}",String(this.totalRecords))}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=n.VBU({type:t,selectors:[["p-paginator"]],contentQueries:function(i,o,s){if(1&i&&(n.wni(s,nOe,4),n.wni(s,iOe,4),n.wni(s,rOe,4),n.wni(s,oOe,4),n.wni(s,sOe,4),n.wni(s,hs,4)),2&i){let a;n.mGM(a=n.lsd())&&(o.dropdownIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.firstPageLinkIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.previousPageLinkIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.lastPageLinkIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.nextPageLinkIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.templates=a)}},inputs:{pageLinkSize:[2,"pageLinkSize","pageLinkSize",n.Udg],style:"style",styleClass:"styleClass",alwaysShow:[2,"alwaysShow","alwaysShow",n.L39],dropdownAppendTo:"dropdownAppendTo",templateLeft:"templateLeft",templateRight:"templateRight",appendTo:"appendTo",dropdownScrollHeight:"dropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:[2,"showCurrentPageReport","showCurrentPageReport",n.L39],showFirstLastIcon:[2,"showFirstLastIcon","showFirstLastIcon",n.L39],totalRecords:[2,"totalRecords","totalRecords",n.Udg],rows:[2,"rows","rows",n.Udg],rowsPerPageOptions:"rowsPerPageOptions",showJumpToPageDropdown:[2,"showJumpToPageDropdown","showJumpToPageDropdown",n.L39],showJumpToPageInput:[2,"showJumpToPageInput","showJumpToPageInput",n.L39],jumpToPageItemTemplate:"jumpToPageItemTemplate",showPageLinks:[2,"showPageLinks","showPageLinks",n.L39],locale:"locale",dropdownItemTemplate:"dropdownItemTemplate",first:"first"},outputs:{onPageChange:"onPageChange"},features:[n.Jv_([_ie]),n.GFd,n.Vt3,n.OA$],decls:1,vars:1,consts:[[3,"class","ngStyle","ngClass",4,"ngIf"],[3,"ngStyle","ngClass"],["class","p-paginator-content-start",4,"ngIf"],["class","p-paginator-current",4,"ngIf"],["type","button","pRipple","","class","p-paginator-first",3,"disabled","ngClass","click",4,"ngIf"],["type","button","pRipple","",1,"p-paginator-prev",3,"click","disabled","ngClass"],[3,"styleClass",4,"ngIf"],["class","p-paginator-prev-icon",4,"ngIf"],["class","p-paginator-pages",4,"ngIf"],["styleClass","p-paginator-jtp-dropdown",3,"options","ngModel","disabled","appendTo","scrollHeight","onChange",4,"ngIf"],["type","button","pRipple","",1,"p-paginator-next",3,"click","disabled","ngClass"],["class","p-paginator-next-icon",4,"ngIf"],["type","button","pRipple","","class","p-paginator-last",3,"disabled","ngClass","click",4,"ngIf"],["class","p-paginator-jtp-input",3,"ngModel","disabled","ngModelChange",4,"ngIf"],["styleClass","p-paginator-rpp-dropdown",3,"options","ngModel","disabled","appendTo","scrollHeight","ariaLabel","ngModelChange","onChange",4,"ngIf"],["class","p-paginator-content-end",4,"ngIf"],[1,"p-paginator-content-start"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-paginator-current"],["type","button","pRipple","",1,"p-paginator-first",3,"click","disabled","ngClass"],["class","p-paginator-first-icon",4,"ngIf"],[3,"styleClass"],[1,"p-paginator-first-icon"],[4,"ngTemplateOutlet"],[1,"p-paginator-prev-icon"],[1,"p-paginator-pages"],["type","button","class","p-paginator-page","pRipple","",3,"ngClass","click",4,"ngFor","ngForOf"],["type","button","pRipple","",1,"p-paginator-page",3,"click","ngClass"],["styleClass","p-paginator-jtp-dropdown",3,"onChange","options","ngModel","disabled","appendTo","scrollHeight"],["pTemplate","selectedItem"],[4,"ngIf"],["pTemplate","item"],["pTemplate","dropdownicon"],[1,"p-paginator-next-icon"],["type","button","pRipple","",1,"p-paginator-last",3,"click","disabled","ngClass"],["class","p-paginator-last-icon",4,"ngIf"],[1,"p-paginator-last-icon"],[1,"p-paginator-jtp-input",3,"ngModelChange","ngModel","disabled"],["styleClass","p-paginator-rpp-dropdown",3,"ngModelChange","onChange","options","ngModel","disabled","appendTo","scrollHeight","ariaLabel"],[1,"p-paginator-content-end"]],template:function(i,o){1&i&&n.DNE(0,XOe,16,29,"div",0),2&i&&n.Y8G("ngIf",!!o.alwaysShow||o.pageLinks&&o.pageLinks.length>1)},dependencies:[gn,bi,oo,fi,uo,Jr,ff,J_,Ra,_o,ko,Mh,XRe,KRe,QRe,JRe,Di,hs],encapsulation:2,changeDetection:0})}return t})(),KOe=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({imports:[yie,Di,Di]})}return t})();const QOe=({dt:t})=>`\n.p-togglebutton {\n    display: inline-flex;\n    cursor: pointer;\n    user-select: none;\n    align-items: center;\n    justify-content: center;\n    overflow: hidden;\n    position: relative;\n    color: ${t("togglebutton.color")};\n    background: ${t("togglebutton.background")};\n    border: 1px solid ${t("togglebutton.border.color")};\n    padding: ${t("togglebutton.padding")};\n    font-size: 1rem;\n    font-family: inherit;\n    font-feature-settings: inherit;\n    transition: background ${t("togglebutton.transition.duration")}, color ${t("togglebutton.transition.duration")}, border-color ${t("togglebutton.transition.duration")},\n        outline-color ${t("togglebutton.transition.duration")}, box-shadow ${t("togglebutton.transition.duration")};\n    border-radius: ${t("togglebutton.border.radius")};\n    outline-color: transparent;\n    font-weight: ${t("togglebutton.font.weight")};\n}\n\n.p-togglebutton-content {\n    position: relative;\n    display: inline-flex;\n    align-items: center;\n    justify-content: center;\n    gap: ${t("togglebutton.gap")};\n}\n\n.p-togglebutton-label,\n.p-togglebutton-icon {\n    position: relative;\n    transition: none;\n}\n\n.p-togglebutton::before {\n    content: "";\n    background: transparent;\n    transition: background ${t("togglebutton.transition.duration")}, color ${t("togglebutton.transition.duration")}, border-color ${t("togglebutton.transition.duration")},\n            outline-color ${t("togglebutton.transition.duration")}, box-shadow ${t("togglebutton.transition.duration")};\n    position: absolute;\n    inset-inline-start: ${t("togglebutton.content.left")};\n    top: ${t("togglebutton.content.top")};\n    width: calc(100% - calc(2 *  ${t("togglebutton.content.left")}));\n    height: calc(100% - calc(2 *  ${t("togglebutton.content.top")}));\n    border-radius: ${t("togglebutton.border.radius")};\n}\n\n.p-togglebutton.p-togglebutton-checked::before {\n    background: ${t("togglebutton.content.checked.background")};\n    box-shadow: ${t("togglebutton.content.checked.shadow")};\n}\n\n.p-togglebutton:not(:disabled):not(.p-togglebutton-checked):hover {\n    background: ${t("togglebutton.hover.background")};\n    color: ${t("togglebutton.hover.color")};\n}\n\n.p-togglebutton.p-togglebutton-checked {\n    background: ${t("togglebutton.checked.background")};\n    border-color: ${t("togglebutton.checked.border.color")};\n    color: ${t("togglebutton.checked.color")};\n}\n\n.p-togglebutton:focus-visible {\n    box-shadow: ${t("togglebutton.focus.ring.shadow")};\n    outline: ${t("togglebutton.focus.ring.width")} ${t("togglebutton.focus.ring.style")} ${t("togglebutton.focus.ring.color")};\n    outline-offset: ${t("togglebutton.focus.ring.offset")};\n}\n\n.p-togglebutton.p-invalid {\n    border-color: ${t("togglebutton.invalid.border.color")};\n}\n\n.p-togglebutton:disabled {\n    opacity: 1;\n    cursor: default;\n    background: ${t("togglebutton.disabled.background")};\n    border-color: ${t("togglebutton.disabled.border.color")};\n    color: ${t("togglebutton.disabled.color")};\n}\n\n.p-togglebutton-icon {\n    color: ${t("togglebutton.icon.color")};\n}\n\n.p-togglebutton:not(:disabled):not(.p-togglebutton-checked):hover .p-togglebutton-icon {\n    color: ${t("togglebutton.icon.hover.color")};\n}\n\n.p-togglebutton.p-togglebutton-checked .p-togglebutton-icon {\n    color: ${t("togglebutton.icon.checked.color")};\n}\n\n.p-togglebutton:disabled .p-togglebutton-icon {\n    color: ${t("togglebutton.icon.disabled.color")};\n}\n\n.p-togglebutton-sm {\n    padding: ${t("togglebutton.sm.padding")};\n    font-size: ${t("togglebutton.sm.font.size")};\n}\n\n.p-togglebutton-lg {\n    padding: ${t("togglebutton.lg.padding")};\n    font-size: ${t("togglebutton.lg.font.size")};\n}\n\n/* For PrimeNG (iconPos) */\n\n.p-togglebutton-icon-right {\n    order: 1;\n}\n\np-togglebutton.ng-invalid.ng-dirty > .p-togglebutton {\n    border-color: ${t("togglebutton.invalid.border.color")};\n}\n`,JOe={root:({instance:t})=>({"p-togglebutton p-component":!0,"p-togglebutton-checked":t.checked,"p-disabled":t.disabled,"p-togglebutton-sm p-inputfield-sm":"small"===t.size,"p-togglebutton-lg p-inputfield-lg":"large"===t.size}),content:"p-togglebutton-content",icon:"p-togglebutton-icon",label:"p-togglebutton-label"};let bie=(()=>{class t extends gs{name="togglebutton";theme=QOe;classes=JOe;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const eFe=["icon"],tFe=["content"],Cie=t=>({$implicit:t}),nFe=(t,r)=>({"p-togglebutton-icon":!0,"p-togglebutton-icon-left":t,"p-togglebutton-icon-right":r});function iFe(t,r){1&t&&n.eu8(0)}function rFe(t,r){if(1&t&&n.nrm(0,"span",1),2&t){const e=n.XpG(3);n.HbH(e.checked?e.onIcon:e.offIcon),n.Y8G("ngClass",n.l_i(4,nFe,"left"===e.iconPos,"right"===e.iconPos)),n.BMQ("data-pc-section","icon")}}function oFe(t,r){if(1&t&&n.DNE(0,rFe,1,7,"span",3),2&t){const e=n.XpG(2);n.vxM(e.onIcon||e.offIcon?0:-1)}}function sFe(t,r){1&t&&n.eu8(0)}function aFe(t,r){if(1&t&&n.DNE(0,sFe,1,0,"ng-container",2),2&t){const e=n.XpG(2);n.Y8G("ngTemplateOutlet",e.iconTemplate||e._iconTemplate)("ngTemplateOutletContext",n.eq3(2,Cie,e.checked))}}function lFe(t,r){if(1&t&&(n.DNE(0,oFe,1,1)(1,aFe,1,4,"ng-container"),n.j41(2,"span",1),n.EFF(3),n.k0s()),2&t){const e=n.XpG();n.vxM(e.iconTemplate?1:0),n.R7$(2),n.Y8G("ngClass",e.cx("label")),n.BMQ("data-pc-section","label"),n.R7$(),n.JRh(e.checked?e.hasOnLabel?e.onLabel:"\xa0":e.hasOffLabel?e.offLabel:"\xa0")}}const cFe={provide:tl,useExisting:(0,n.Rfq)(()=>PY),multi:!0};let PY=(()=>{class t extends jo{onLabel="Yes";offLabel="No";onIcon;offIcon;ariaLabel;ariaLabelledBy;disabled;style;styleClass;get hostClass(){return this.styleClass||""}inputId;tabindex=0;size;iconPos="left";autofocus;allowEmpty;onChange=new n.bkB;iconTemplate;contentTemplate;templates;checked=!1;onModelChange=()=>{};onModelTouched=()=>{};_componentStyle=(0,n.WQX)(bie);toggle(e){!this.disabled&&(!1!==this.allowEmpty||!this.checked)&&(this.checked=!this.checked,this.onModelChange(this.checked),this.onModelTouched(),this.onChange.emit({originalEvent:e,checked:this.checked}),this.cd.markForCheck())}onKeyDown(e){switch(e.code){case"Enter":case"Space":this.toggle(e),e.preventDefault()}}onBlur(){this.onModelTouched()}writeValue(e){this.checked=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}get hasOnLabel(){return this.onLabel&&this.onLabel.length>0}get hasOffLabel(){return this.onLabel&&this.onLabel.length>0}get active(){return!0===this.checked}_iconTemplate;_contentTemplate;ngAfterContentInit(){this.templates.forEach(e=>{"icon"===e.getType()?this._iconTemplate=e.template:this._contentTemplate=e.template})}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["p-toggleButton"],["p-togglebutton"],["p-toggle-button"]],contentQueries:function(i,o,s){if(1&i&&(n.wni(s,eFe,4),n.wni(s,tFe,4),n.wni(s,hs,4)),2&i){let a;n.mGM(a=n.lsd())&&(o.iconTemplate=a.first),n.mGM(a=n.lsd())&&(o.contentTemplate=a.first),n.mGM(a=n.lsd())&&(o.templates=a)}},hostVars:2,hostBindings:function(i,o){2&i&&n.HbH(o.hostClass)},inputs:{onLabel:"onLabel",offLabel:"offLabel",onIcon:"onIcon",offIcon:"offIcon",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",disabled:[2,"disabled","disabled",n.L39],style:"style",styleClass:"styleClass",inputId:"inputId",tabindex:[2,"tabindex","tabindex",n.Udg],size:"size",iconPos:"iconPos",autofocus:[2,"autofocus","autofocus",n.L39],allowEmpty:"allowEmpty"},outputs:{onChange:"onChange"},features:[n.Jv_([cFe,bie]),n.GFd,n.Vt3],decls:4,vars:15,consts:[["pRipple","","type","button",3,"click","ngClass","tabindex","disabled"],[3,"ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"class","ngClass"]],template:function(i,o){1&i&&(n.j41(0,"button",0),n.bIt("click",function(a){return o.toggle(a)}),n.j41(1,"span",1),n.DNE(2,iFe,1,0,"ng-container",2)(3,lFe,4,4),n.k0s()()),2&i&&(n.HbH(o.styleClass),n.Y8G("ngClass",o.cx("root"))("tabindex",o.tabindex)("disabled",o.disabled),n.BMQ("aria-labelledby",o.ariaLabelledBy)("aria-pressed",o.checked)("data-p-checked",o.active)("data-p-disabled",o.disabled),n.R7$(),n.Y8G("ngClass",o.cx("content")),n.R7$(),n.Y8G("ngTemplateOutlet",o.contentTemplate||o._contentTemplate)("ngTemplateOutletContext",n.eq3(13,Cie,o.checked)),n.R7$(),n.vxM(o.contentTemplate?-1:3))},dependencies:[Mh,gn,bi,uo,Di],encapsulation:2,changeDetection:0})}return t})();const uFe=({dt:t})=>`\n.p-selectbutton {\n    display: inline-flex;\n    user-select: none;\n    vertical-align: bottom;\n    outline-color: transparent;\n    border-radius: ${t("selectbutton.border.radius")};\n}\n\n.p-selectbutton .p-togglebutton {\n    border-radius: 0;\n    border-width: 1px 1px 1px 0;\n}\n\n.p-selectbutton .p-togglebutton:focus-visible {\n    position: relative;\n    z-index: 1;\n}\n\n.p-selectbutton p-togglebutton:first-child .p-togglebutton {\n    border-left-width: 1px;\n    border-start-start-radius: ${t("selectbutton.border.radius")};\n    border-end-start-radius: ${t("selectbutton.border.radius")};\n}\n\n.p-selectbutton p-togglebutton:last-child .p-togglebutton{\n    border-start-end-radius: ${t("selectbutton.border.radius")};\n    border-end-end-radius: ${t("selectbutton.border.radius")};\n}\n\n.p-selectbutton.ng-invalid.ng-dirty {\n    outline: 1px solid ${t("selectbutton.invalid.border.color")};\n    outline-offset: 0;\n}\n`,dFe={root:({props:t})=>["p-selectbutton p-component",{"p-invalid":t.invalid}]};let wie=(()=>{class t extends gs{name="selectbutton";theme=uFe;classes=dFe;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const hFe=["item"],fFe=(t,r)=>({$implicit:t,index:r});function mFe(t,r){1&t&&n.eu8(0)}function gFe(t,r){if(1&t&&n.DNE(0,mFe,1,0,"ng-container",3),2&t){const e=n.XpG(2),i=e.$implicit,o=e.$index,s=n.XpG();n.Y8G("ngTemplateOutlet",s.itemTemplate||s._itemTemplate)("ngTemplateOutletContext",n.l_i(2,fFe,i,o))}}function vFe(t,r){1&t&&n.DNE(0,gFe,1,5,"ng-template",null,0,n.C5r)}function _Fe(t,r){if(1&t){const e=n.RV6();n.j41(0,"p-toggleButton",2),n.bIt("onChange",function(o){const s=n.eBV(e),a=s.$implicit,l=s.$index,c=n.XpG();return n.Njj(c.onOptionSelect(o,a,l))}),n.DNE(1,vFe,2,0),n.k0s()}if(2&t){const e=r.$implicit,i=n.XpG();n.Y8G("autofocus",i.autofocus)("styleClass",i.styleClass)("ngModel",i.isSelected(e))("onLabel",i.getOptionLabel(e))("offLabel",i.getOptionLabel(e))("disabled",i.disabled||i.isOptionDisabled(e))("allowEmpty",i.allowEmpty)("size",i.size),n.R7$(),n.vxM(i.itemTemplate||i._itemTemplate?1:-1)}}const yFe={provide:tl,useExisting:(0,n.Rfq)(()=>Tie),multi:!0};let Tie=(()=>{class t extends jo{options;optionLabel;optionValue;optionDisabled;unselectable=!1;tabindex=0;multiple;allowEmpty=!0;style;styleClass;ariaLabelledBy;size;disabled;dataKey;autofocus;onOptionClick=new n.bkB;onChange=new n.bkB;itemTemplate;_itemTemplate;get equalityKey(){return this.optionValue?null:this.dataKey}value;onModelChange=()=>{};onModelTouched=()=>{};focusedIndex=0;_componentStyle=(0,n.WQX)(wie);getOptionLabel(e){return this.optionLabel?ml(e,this.optionLabel):null!=e.label?e.label:e}getOptionValue(e){return this.optionValue?ml(e,this.optionValue):this.optionLabel||void 0===e.value?e:e.value}isOptionDisabled(e){return this.optionDisabled?ml(e,this.optionDisabled):void 0!==e.disabled&&e.disabled}writeValue(e){this.value=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onOptionSelect(e,i,o){if(this.disabled||this.isOptionDisabled(i))return;let s=this.isSelected(i);if(s&&this.unselectable)return;let l,a=this.getOptionValue(i);if(this.multiple)l=s?this.value.filter(c=>!id(c,a,this.equalityKey)):this.value?[...this.value,a]:[a];else{if(s&&!this.allowEmpty)return;l=s?null:a}this.focusedIndex=o,this.value=l,this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}),this.onOptionClick.emit({originalEvent:e,option:i,index:o})}changeTabIndexes(e,i){let o,s;for(let a=0;a<=this.el.nativeElement.children.length-1;a++)"0"===this.el.nativeElement.children[a].getAttribute("tabindex")&&(o={elem:this.el.nativeElement.children[a],index:a});s="prev"===i?0===o.index?this.el.nativeElement.children.length-1:o.index-1:o.index===this.el.nativeElement.children.length-1?0:o.index+1,this.focusedIndex=s,this.el.nativeElement.children[s].focus()}onFocus(e,i){this.focusedIndex=i}onBlur(){this.onModelTouched()}removeOption(e){this.value=this.value.filter(i=>!id(i,this.getOptionValue(e),this.dataKey))}isSelected(e){let i=!1;const o=this.getOptionValue(e);if(this.multiple){if(this.value&&Array.isArray(this.value))for(let s of this.value)if(id(s,o,this.dataKey)){i=!0;break}}else i=id(this.getOptionValue(e),this.value,this.equalityKey);return i}templates;ngAfterContentInit(){this.templates.forEach(e=>{"item"===e.getType()&&(this._itemTemplate=e.template)})}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["p-selectButton"],["p-selectbutton"],["p-select-button"]],contentQueries:function(i,o,s){if(1&i&&(n.wni(s,hFe,4),n.wni(s,hs,4)),2&i){let a;n.mGM(a=n.lsd())&&(o.itemTemplate=a.first),n.mGM(a=n.lsd())&&(o.templates=a)}},hostVars:10,hostBindings:function(i,o){2&i&&(n.BMQ("role",o.group)("aria-labelledby",o.ariaLabelledBy)("data-pc-section","root")("data-pc-name","selectbutton"),n.Aen(o.style),n.AVh("p-selectbutton",!0)("p-component",!0))},inputs:{options:"options",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",unselectable:[2,"unselectable","unselectable",n.L39],tabindex:[2,"tabindex","tabindex",n.Udg],multiple:[2,"multiple","multiple",n.L39],allowEmpty:[2,"allowEmpty","allowEmpty",n.L39],style:"style",styleClass:"styleClass",ariaLabelledBy:"ariaLabelledBy",size:"size",disabled:[2,"disabled","disabled",n.L39],dataKey:"dataKey",autofocus:[2,"autofocus","autofocus",n.L39]},outputs:{onOptionClick:"onOptionClick",onChange:"onChange"},features:[n.Jv_([yFe,wie]),n.GFd,n.Vt3],decls:2,vars:0,consts:[["content",""],[3,"autofocus","styleClass","ngModel","onLabel","offLabel","disabled","allowEmpty","size"],[3,"onChange","autofocus","styleClass","ngModel","onLabel","offLabel","disabled","allowEmpty","size"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,o){1&i&&n.Z7z(0,_Fe,2,9,"p-toggleButton",1,n.fX1),2&i&&n.Dyx(o.options)},dependencies:[PY,Ra,_o,ko,gn,uo,Di],encapsulation:2,changeDetection:0})}return t})(),bFe=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({imports:[Tie,Di,Di]})}return t})();const CFe=({dt:t})=>`\n.p-datatable {\n    position: relative;\n}\n\n.p-datatable-table {\n    border-spacing: 0;\n    border-collapse: separate;\n    width: 100%;\n}\n\n.p-datatable-scrollable > .p-datatable-table-container {\n    position: relative;\n}\n/* For PrimeNG */\n.p-datatable-scrollable-table > .p-datatable-thead {\n    top: 0;\n    z-index: 2;\n}\n/* For PrimeNG */\n.p-datatable-scrollable-table > .p-datatable-frozen-tbody {\n    position: sticky;\n    z-index: 2;\n}\n/* For PrimeNG */\n.p-datatable-scrollable-table > .p-datatable-frozen-tbody:last-child {\n    z-index: 1;\n}\n\n.p-datatable-scrollable-table > .p-datatable-tfoot {\n    bottom: 0;\n    z-index: 1;\n}\n\n.p-datatable-scrollable > tr:not(:has(.p-datatable-selectable-row)) >.p-datatable-frozen-column {\n    position: sticky;\n    background: ${t("datatable.header.cell.background")};\n}\n\n.p-datatable-scrollable th.p-datatable-frozen-column {\n    z-index: 1;\n}\n\n.p-datatable-scrollable > .p-datatable-table-container > .p-datatable-table > .p-datatable-thead,\n.p-datatable-scrollable > .p-datatable-table-container > .p-virtualscroller > .p-datatable-table > .p-datatable-thead {\n    background: ${t("datatable.header.cell.background")};\n}\n\n.p-datatable-scrollable > .p-datatable-table-container > .p-datatable-table > .p-datatable-tfoot,\n.p-datatable-scrollable > .p-datatable-table-container > .p-virtualscroller > .p-datatable-table > .p-datatable-tfoot {\n    background: ${t("datatable.footer.cell.background")};\n}\n\n.p-datatable-flex-scrollable {\n    display: flex;\n    flex-direction: column;\n    height: 100%;\n}\n\n.p-datatable-flex-scrollable > .p-datatable-table-container {\n    display: flex;\n    flex-direction: column;\n    flex: 1;\n    height: 100%;\n}\n\n.p-datatable-scrollable-table > .p-datatable-tbody > .p-datatable-row-group-header {\n    position: sticky;\n    z-index: 1;\n}\n\n.p-datatable-resizable-table > .p-datatable-thead > tr > th,\n.p-datatable-resizable-table > .p-datatable-tfoot > tr > td,\n.p-datatable-resizable-table > .p-datatable-tbody > tr > td {\n    overflow: hidden;\n    white-space: nowrap;\n}\n\n.p-datatable-resizable-table > .p-datatable-thead > tr > th.p-datatable-resizable-column:not(.p-datatable-frozen-column) {\n    background-clip: padding-box;\n    position: relative;\n}\n\n.p-datatable-resizable-table-fit > .p-datatable-thead > tr > th.p-datatable-resizable-column:last-child .p-datatable-column-resizer {\n    display: none;\n}\n\n.p-datatable-column-resizer {\n    display: block;\n    position: absolute;\n    top: 0;\n    inset-inline-end: 0;\n    margin: 0;\n    width: ${t("datatable.column.resizer.width")};\n    height: 100%;\n    padding: 0px;\n    cursor: col-resize;\n    border: 1px solid transparent;\n}\n\n/*\n.p-datatable-column-header-content {\n    display: flex;\n    align-items: center;\n    gap: ${t("datatable.header.cell.gap")};\n}\n.p-datatable-thead > tr > th {\n    display: flex;\n    align-items: center;\n    gap: ${t("datatable.header.cell.gap")};\n}\n*/\n\n.p-datatable-column-resize-indicator {\n    width: ${t("datatable.resize.indicator.width")};\n    position: absolute;\n    z-index: 10;\n    display: none;\n    background: ${t("datatable.resize.indicator.color")};\n}\n\n.p-datatable-row-reorder-indicator-up,\n.p-datatable-row-reorder-indicator-down {\n    position: absolute;\n    display: none;\n}\n\n.p-datatable-reorderable-column,\n.p-datatable-reorderable-row-handle {\n    cursor: move;\n}\n\n.p-datatable-mask {\n    position: absolute;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    z-index: 3;\n}\n\n.p-datatable-inline-filter {\n    display: flex;\n    align-items: center;\n    width: 100%;\n    gap: ${t("datatable.filter.inline.gap")};\n}\n\n.p-datatable-inline-filter .p-datatable-filter-element-container {\n    flex: 1 1 auto;\n    width: 1%;\n}\n\n.p-datatable-filter-overlay {\n    position: absolute;\n    background: ${t("datatable.filter.overlay.select.background")};\n    color: ${t("datatable.filter.overlay.select.color")};\n    border: 1px solid ${t("datatable.filter.overlay.select.border.color")};\n    border-radius: ${t("datatable.filter.overlay.select.border.radius")};\n    box-shadow: ${t("datatable.filter.overlay.select.shadow")};\n    min-width: 12.5rem;\n}\n\n.p-datatable-filter-constraint-list {\n    margin: 0;\n    list-style: none;\n    display: flex;\n    flex-direction: column;\n    padding: ${t("datatable.filter.constraint.list.padding")};\n    gap: ${t("datatable.filter.constraint.list.gap")};\n}\n\n.p-datatable-filter-constraint {\n    padding: ${t("datatable.filter.constraint.padding")};\n    color: ${t("datatable.filter.constraint.color")};\n    border-radius: ${t("datatable.filter.constraint.border.radius")};\n    cursor: pointer;\n    transition: background ${t("datatable.transition.duration")}, color ${t("datatable.transition.duration")}, border-color ${t("datatable.transition.duration")},\n        box-shadow ${t("datatable.transition.duration")};\n}\n\n.p-datatable-filter-constraint-selected {\n    background: ${t("datatable.filter.constraint.selected.background")};\n    color: ${t("datatable.filter.constraint.selected.color")};\n}\n\n.p-datatable-filter-constraint:not(.p-datatable-filter-constraint-selected):not(.p-disabled):hover {\n    background: ${t("datatable.filter.constraint.focus.background")};\n    color: ${t("datatable.filter.constraint.focus.color")};\n}\n\n.p-datatable-filter-constraint:focus-visible {\n    outline: 0 none;\n    background: ${t("datatable.filter.constraint.focus.background")};\n    color: ${t("datatable.filter.constraint.focus.color")};\n}\n\n.p-datatable-filter-constraint-selected:focus-visible {\n    outline: 0 none;\n    background: ${t("datatable.filter.constraint.selected.focus.background")};\n    color: ${t("datatable.filter.constraint.selected.focus.color")};\n}\n\n.p-datatable-filter-constraint-separator {\n    border-top: 1px solid ${t("datatable.filter.constraint.separator.border.color")};\n}\n\n.p-datatable-popover-filter {\n    display: inline-flex;\n    margin-inline-start: auto;\n}\n\n.p-datatable-filter-overlay-popover {\n    background: ${t("datatable.filter.overlay.popover.background")};\n    color: ${t("datatable.filter.overlay.popover.color")};\n    border: 1px solid ${t("datatable.filter.overlay.popover.border.color")};\n    border-radius: ${t("datatable.filter.overlay.popover.border.radius")};\n    box-shadow: ${t("datatable.filter.overlay.popover.shadow")};\n    min-width: 12.5rem;\n    padding: ${t("datatable.filter.overlay.popover.padding")};\n    display: flex;\n    flex-direction: column;\n    gap: ${t("datatable.filter.overlay.popover.gap")};\n}\n\n.p-datatable-filter-operator-dropdown, .p-datatable-filter-constraint-dropdown {\n    width: 100%;\n}\n\n.p-datatable-filter-rule-list,\n.p-datatable-filter-rule {\n    display: flex;\n    flex-direction: column;\n    gap: ${t("datatable.filter.overlay.popover.gap")};\n}\n\n.p-datatable-filter-rule {\n    border-bottom: 1px solid ${t("datatable.filter.rule.border.color")};\n}\n\n.p-datatable-filter-rule:last-child {\n    border-bottom: 0 none;\n}\n\n.p-datatable-filter-add-rule-button, .p-datatable-filter-remove-rule-button {\n    width: 100%;\n}\n\n.p-datatable-filter-remove-button {\n    width: 100%;\n}\n\n.p-datatable-filter-buttonbar {\n    padding: 0;\n    display: flex;\n    align-items: center;\n    justify-content: space-between;\n}\n\n.p-datatable-virtualscroller-spacer {\n    display: flex;\n}\n\n.p-datatable .p-virtualscroller .p-virtualscroller-loading {\n    transform: none !important;\n    min-height: 0;\n    position: sticky;\n    top: 0;\n    inset-inline-start: 0;\n}\n\n.p-datatable-paginator-top {\n    border-color: ${t("datatable.paginator.top.border.color")};\n    border-style: solid;\n    border-width: ${t("datatable.paginator.top.border.width")};\n}\n\n.p-datatable-paginator-bottom {\n    border-color: ${t("datatable.paginator.bottom.border.color")};\n    border-style: solid;\n    border-width: ${t("datatable.paginator.bottom.border.width")};\n}\n\n.p-datatable-header {\n    background: ${t("datatable.header.background")};\n    color: ${t("datatable.header.color")};\n    border-color: ${t("datatable.header.border.color")};\n    border-style: solid;\n    border-width: ${t("datatable.header.border.width")};\n    padding: ${t("datatable.header.padding")};\n}\n\n.p-datatable-footer {\n    background: ${t("datatable.footer.background")};\n    color: ${t("datatable.footer.color")};\n    border-color: ${t("datatable.footer.border.color")};\n    border-style: solid;\n    border-width: ${t("datatable.footer.border.width")};\n    padding: ${t("datatable.footer.padding")};\n}\n\n.p-datatable-thead > tr > th {\n    padding: ${t("datatable.header.cell.padding")};\n    background: ${t("datatable.header.cell.background")};\n    border-color: ${t("datatable.header.cell.border.color")};\n    border-style: solid;\n    border-width: 0 0 1px 0;\n    color: ${t("datatable.header.cell.color")};\n    font-weight: ${t("datatable.column.title.font.weight")};\n    text-align: start;\n    transition: background ${t("datatable.transition.duration")}, color ${t("datatable.transition.duration")}, border-color ${t("datatable.transition.duration")},\n            outline-color ${t("datatable.transition.duration")}, box-shadow ${t("datatable.transition.duration")};\n}\n\n/** For PrimeNG **/\n.p-datatable-thead > tr > th p-columnfilter {\n    font-weight: normal;\n}\n/** For PrimeNG End **/\n\n/*\n.p-datatable-column-title {\n    font-weight: ${t("datatable.column.title.font.weight")};\n}\n*/\n\n.p-datatable-tbody > tr {\n    outline-color: transparent;\n    background: ${t("datatable.row.background")};\n    color: ${t("datatable.row.color")};\n    transition: background ${t("datatable.transition.duration")}, color ${t("datatable.transition.duration")}, border-color ${t("datatable.transition.duration")},\n            outline-color ${t("datatable.transition.duration")}, box-shadow ${t("datatable.transition.duration")};\n}\n\n.p-datatable-tbody > tr > td {\n    text-align: start;\n    border-color: ${t("datatable.body.cell.border.color")};\n    border-style: solid;\n    border-width: 0 0 1px 0;\n    padding: ${t("datatable.body.cell.padding")};\n}\n\n.p-datatable-hoverable .p-datatable-tbody > tr:not(.p-datatable-row-selected):hover {\n    background: ${t("datatable.row.hover.background")};\n    color: ${t("datatable.row.hover.color")};\n}\n\n.p-datatable-tbody > tr.p-datatable-row-selected {\n    background: ${t("datatable.row.selected.background")};\n    color: ${t("datatable.row.selected.color")};\n}\n\n.p-datatable-tbody > tr:has(+ .p-datatable-row-selected) > td {\n    border-bottom-color: ${t("datatable.body.cell.selected.border.color")};\n}\n\n.p-datatable-tbody > tr.p-datatable-row-selected > td {\n    border-bottom-color: ${t("datatable.body.cell.selected.border.color")};\n}\n\n.p-datatable-tbody > tr:focus-visible,\n.p-datatable-tbody > tr.p-datatable-contextmenu-row-selected {\n    box-shadow: ${t("datatable.row.focus.ring.shadow")};\n    outline: ${t("datatable.row.focus.ring.width")} ${t("datatable.row.focus.ring.style")} ${t("datatable.row.focus.ring.color")};\n    outline-offset: ${t("datatable.row.focus.ring.offset")};\n}\n\n.p-datatable-tfoot > tr > td {\n    text-align: start;\n    padding: ${t("datatable.footer.cell.padding")};\n    border-color: ${t("datatable.footer.cell.border.color")};\n    border-style: solid;\n    border-width: 0 0 1px 0;\n    color: ${t("datatable.footer.cell.color")};\n    background: ${t("datatable.footer.cell.background")};\n}\n\n.p-datatable-column-footer {\n    font-weight: ${t("datatable.column.footer.font.weight")};\n}\n\n.p-datatable-sortable-column {\n    cursor: pointer;\n    user-select: none;\n    outline-color: transparent;\n}\n\n.p-datatable-thead > tr > th,\n.p-datatable-sort-icon,\n.p-datatable-sort-badge {\n    vertical-align: middle;\n}\n\n.p-datatable-sort-icon {\n    color: ${t("datatable.sort.icon.color")};\n    transition: color ${t("datatable.transition.duration")};\n}\n\n.p-datatable-sortable-column:not(.p-datatable-column-sorted):hover {\n    background: ${t("datatable.header.cell.hover.background")};\n    color: ${t("datatable.header.cell.hover.color")};\n}\n\n.p-datatable-sortable-column:not(.p-datatable-column-sorted):hover .p-datatable-sort-icon {\n    color: ${t("datatable.sort.icon.hover.color")};\n}\n\n.p-datatable-thead > tr > th.p-datatable-column-sorted {\n    background: ${t("datatable.header.cell.selected.background")};\n    color: ${t("datatable.header.cell.selected.color")};\n}\n\n.p-datatable-thead > tr > th.p-datatable-column-sorted .p-datatable-sort-icon {\n    color: ${t("datatable.header.cell.selected.color")};\n}\n\n.p-datatable-sortable-column:focus-visible {\n    box-shadow: ${t("datatable.header.cell.focus.ring.shadow")};\n    outline: ${t("datatable.header.cell.focus.ring.width")} ${t("datatable.header.cell.focus.ring.style")} ${t("datatable.header.cell.focus.ring.color")};\n    outline-offset: ${t("datatable.header.cell.focus.ring.offset")};\n}\n\n.p-datatable-hoverable .p-datatable-selectable-row {\n    cursor: pointer;\n}\n\n.p-datatable-tbody > tr.p-datatable-dragpoint-top > td {\n    box-shadow: inset 0 2px 0 0 ${t("datatable.drop.point.color")};\n}\n\n.p-datatable-tbody > tr.p-datatable-dragpoint-bottom > td {\n    box-shadow: inset 0 -2px 0 0 ${t("datatable.drop.point.color")};\n}\n\n.p-datatable-loading-icon {\n    font-size: ${t("datatable.loading.icon.size")};\n    width: ${t("datatable.loading.icon.size")};\n    height: ${t("datatable.loading.icon.size")};\n}\n\n.p-datatable-gridlines .p-datatable-header {\n    border-width: 1px 1px 0 1px;\n}\n\n.p-datatable-gridlines .p-datatable-footer {\n    border-width: 0 1px 1px 1px;\n}\n\n.p-datatable-gridlines .p-datatable-paginator-top {\n    border-width: 1px 1px 0 1px;\n}\n\n.p-datatable-gridlines .p-datatable-paginator-bottom {\n    border-width: 0 1px 1px 1px;\n}\n\n.p-datatable-gridlines .p-datatable-thead > tr > th {\n    border-width: 1px 0 1px 1px;\n}\n\n.p-datatable-gridlines .p-datatable-thead > tr > th:last-child {\n    border-width: 1px;\n}\n\n.p-datatable-gridlines .p-datatable-tbody > tr > td {\n    border-width: 1px 0 0 1px;\n}\n\n.p-datatable-gridlines .p-datatable-tbody > tr > td:last-child {\n    border-width: 1px 1px 0 1px;\n}\n\np-datatable-gridlines .p-datatable-tbody > tr:last-child > td {\n    border-width: 1px 0 1px 1px;\n}\n\n.p-datatable-gridlines .p-datatable-tbody > tr:last-child > td:last-child {\n    border-width: 1px;\n}\n\n.p-datatable-gridlines .p-datatable-tfoot > tr > td {\n    border-width: 1px 0 1px 1px;\n}\n\n.p-datatable-gridlines .p-datatable-tfoot > tr > td:last-child {\n    border-width: 1px 1px 1px 1px;\n}\n\n.p-datatable.p-datatable-gridlines .p-datatable-thead + .p-datatable-tfoot > tr > td {\n    border-width: 0 0 1px 1px;\n}\n\n.p-datatable.p-datatable-gridlines .p-datatable-thead + .p-datatable-tfoot > tr > td:last-child {\n    border-width: 0 1px 1px 1px;\n}\n\n.p-datatable.p-datatable-gridlines:has(.p-datatable-thead):has(.p-datatable-tbody) .p-datatable-tbody > tr > td {\n    border-width: 0 0 1px 1px;\n}\n\n.p-datatable.p-datatable-gridlines:has(.p-datatable-thead):has(.p-datatable-tbody) .p-datatable-tbody > tr > td:last-child {\n    border-width: 0 1px 1px 1px;\n}\n\n.p-datatable.p-datatable-gridlines:has(.p-datatable-tbody):has(.p-datatable-tfoot) .p-datatable-tbody > tr:last-child > td {\n    border-width: 0 0 0 1px;\n}\n\n.p-datatable.p-datatable-gridlines:has(.p-datatable-tbody):has(.p-datatable-tfoot) .p-datatable-tbody > tr:last-child > td:last-child {\n    border-width: 0 1px 0 1px;\n}\n\n.p-datatable.p-datatable-striped .p-datatable-tbody > tr:nth-child(odd) {\n    background: ${t("datatable.row.striped.background")};\n}\n\n.p-datatable.p-datatable-striped .p-datatable-tbody > tr:nth-child(odd).p-datatable-row-selected {\n    background: ${t("datatable.row.selected.background")};\n    color: ${t("datatable.row.selected.color")};\n}\n\n.p-datatable.p-datatable-sm .p-datatable-header {\n    padding: 0.375rem 0.5rem;\n}\n\n.p-datatable.p-datatable-sm .p-datatable-thead > tr > th {\n    padding: 0.375rem 0.5rem;\n}\n\n.p-datatable.p-datatable-sm .p-datatable-tbody > tr > td {\n    padding: 0.375rem 0.5rem;\n}\n\n.p-datatable.p-datatable-sm .p-datatable-tfoot > tr > td {\n    padding: 0.375rem 0.5rem;\n}\n\n.p-datatable.p-datatable-sm .p-datatable-footer {\n    padding: 0.375rem 0.5rem;\n}\n\n.p-datatable.p-datatable-lg .p-datatable-header {\n    padding: 0.9375rem 1.25rem;\n}\n\n.p-datatable.p-datatable-lg .p-datatable-thead > tr > th {\n    padding: 0.9375rem 1.25rem;\n}\n\n.p-datatable.p-datatable-lg .p-datatable-tbody>tr>td {\n    padding: 0.9375rem 1.25rem;\n}\n\n.p-datatable.p-datatable-lg .p-datatable-tfoot>tr>td {\n    padding: 0.9375rem 1.25rem;\n}\n\n.p-datatable.p-datatable-lg .p-datatable-footer {\n    padding: 0.9375rem 1.25rem;\n}\n\n.p-datatable-row-toggle-button {\n    display: inline-flex;\n    align-items: center;\n    justify-content: center;\n    overflow: hidden;\n    position: relative;\n    width: ${t("datatable.row.toggle.button.size")};\n    height: ${t("datatable.row.toggle.button.size")};\n    color: ${t("datatable.row.toggle.button.color")};\n    border: 0 none;\n    background: transparent;\n    cursor: pointer;\n    border-radius: ${t("datatable.row.toggle.button.border.radius")};\n    transition: background ${t("datatable.transition.duration")}, color ${t("datatable.transition.duration")}, border-color ${t("datatable.transition.duration")},\n            outline-color ${t("datatable.transition.duration")}, box-shadow ${t("datatable.transition.duration")};\n    outline-color: transparent;\n    user-select: none;\n}\n\n.p-datatable-row-toggle-button:enabled:hover {\n    color: ${t("datatable.row.toggle.button.hover.color")};\n    background: ${t("datatable.row.toggle.button.hover.background")};\n}\n\n.p-datatable-tbody > tr.p-datatable-row-selected .p-datatable-row-toggle-button:hover {\n    background: ${t("datatable.row.toggle.button.selected.hover.background")};\n    ${t("datatable.row.toggle.button.selected.hover.color")};\n}\n\n.p-datatable-row-toggle-button:focus-visible {\n    box-shadow: ${t("datatable.row.toggle.button.focus.ring.shadow")};\n    outline: ${t("datatable.row.toggle.button.focus.ring.width")} ${t("datatable.row.toggle.button.focus.ring.style")} ${t("datatable.row.toggle.button.focus.ring.color")};\n    outline-offset: ${t("datatable.row.toggle.button.focus.ring.offset")};\n}\n`,wFe={root:({instance:t})=>({"p-datatable p-component":!0,"p-datatable-hoverable":t.rowHover||t.selectionMode,"p-datatable-resizable":t.resizableColumns,"p-datatable-resizable-fit":t.resizableColumns&&"fit"===t.columnResizeMode,"p-datatable-scrollable":t.scrollable,"p-datatable-flex-scrollable":t.scrollable&&"flex"===t.scrollHeight,"p-datatable-striped":t.stripedRows,"p-datatable-gridlines":t.showGridlines,"p-datatable-sm":"small"===t.size,"p-datatable-lg":"large"===t.size}),mask:"p-datatable-mask p-overlay-mask",loadingIcon:"p-datatable-loading-icon",header:"p-datatable-header",pcPaginator:({instance:t})=>"p-datatable-paginator-"+t.paginatorPosition,tableContainer:"p-datatable-table-container",table:({instance:t})=>({"p-datatable-table":!0,"p-datatable-scrollable-table":t.scrollable,"p-datatable-resizable-table":t.resizableColumns,"p-datatable-resizable-table-fit":t.resizableColumns&&"fit"===t.columnResizeMode}),thead:"p-datatable-thead",columnResizer:"p-datatable-column-resizer",columnHeaderContent:"p-datatable-column-header-content",columnTitle:"p-datatable-column-title",columnFooter:"p-datatable-column-footer",sortIcon:"p-datatable-sort-icon",pcSortBadge:"p-datatable-sort-badge",filter:({instance:t})=>({"p-datatable-filter":!0,"p-datatable-inline-filter":"row"===t.display,"p-datatable-popover-filter":"menu"===t.display}),filterElementContainer:"p-datatable-filter-element-container",pcColumnFilterButton:"p-datatable-column-filter-button",pcColumnFilterClearButton:"p-datatable-column-filter-clear-button",filterOverlay:({instance:t})=>({"p-datatable-filter-overlay p-component":!0,"p-datatable-filter-overlay-popover":"menu"===t.display}),filterConstraintList:"p-datatable-filter-constraint-list",filterConstraint:"p-datatable-filter-constraint",filterConstraintSeparator:"p-datatable-filter-constraint-separator",filterOperator:"p-datatable-filter-operator",pcFilterOperatorDropdown:"p-datatable-filter-operator-dropdown",filterRuleList:"p-datatable-filter-rule-list",filterRule:"p-datatable-filter-rule",pcFilterConstraintDropdown:"p-datatable-filter-constraint-dropdown",pcFilterRemoveRuleButton:"p-datatable-filter-remove-rule-button",pcFilterAddRuleButton:"p-datatable-filter-add-rule-button",filterButtonbar:"p-datatable-filter-buttonbar",pcFilterClearButton:"p-datatable-filter-clear-button",pcFilterApplyButton:"p-datatable-filter-apply-button",tbody:({instance:t})=>({"p-datatable-tbody":!0,"p-datatable-frozen-tbody":t.frozenValue||t.frozenBodyTemplate,"p-virtualscroller-content":t.virtualScroll}),rowGroupHeader:"p-datatable-row-group-header",rowToggleButton:"p-datatable-row-toggle-button",rowToggleIcon:"p-datatable-row-toggle-icon",rowExpansion:"p-datatable-row-expansion",rowGroupFooter:"p-datatable-row-group-footer",emptyMessage:"p-datatable-empty-message",bodyCell:({instance:t})=>({"p-datatable-frozen-column":t.columnProp("frozen")}),reorderableRowHandle:"p-datatable-reorderable-row-handle",pcRowEditorInit:"p-datatable-row-editor-init",pcRowEditorSave:"p-datatable-row-editor-save",pcRowEditorCancel:"p-datatable-row-editor-cancel",tfoot:"p-datatable-tfoot",footerCell:({instance:t})=>({"p-datatable-frozen-column":t.columnProp("frozen")}),virtualScrollerSpacer:"p-datatable-virtualscroller-spacer",footer:"p-datatable-tfoot",columnResizeIndicator:"p-datatable-column-resize-indicator",rowReorderIndicatorUp:"p-datatable-row-reorder-indicator-up",rowReorderIndicatorDown:"p-datatable-row-reorder-indicator-down"},TFe={tableContainer:({instance:t})=>({"max-height":t.virtualScroll?"":t.scrollHeight,overflow:"auto"}),thead:{position:"sticky"},tfoot:{position:"sticky"}};let LY=(()=>{class t extends gs{name="datatable";theme=CFe;classes=wFe;inlineStyles=TFe;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const Sie=["header"],xFe=["headergrouped"],EFe=["body"],DFe=["loadingbody"],kFe=["caption"],xie=["footer"],IFe=["footergrouped"],AFe=["summary"],MFe=["colgroup"],RFe=["rowexpansion"],OFe=["groupheader"],FFe=["groupfooter"],PFe=["frozenexpandedrow"],LFe=["frozenheader"],NFe=["frozenbody"],GFe=["frozenfooter"],BFe=["frozencolgroup"],VFe=["emptymessage"],jFe=["paginatorleft"],HFe=["paginatorright"],UFe=["paginatordropdownitem"],$Fe=["loadingicon"],YFe=["reorderindicatorupicon"],WFe=["reorderindicatordownicon"],zFe=["sorticon"],qFe=["checkboxicon"],XFe=["headercheckboxicon"],KFe=["paginatordropdownicon"],QFe=["paginatorfirstpagelinkicon"],JFe=["paginatorlastpagelinkicon"],ZFe=["paginatorpreviouspagelinkicon"],ePe=["paginatornextpagelinkicon"],tPe=["container"],nPe=["resizeHelper"],iPe=["reorderIndicatorUp"],rPe=["reorderIndicatorDown"],oPe=["wrapper"],sPe=["table"],aPe=["thead"],lPe=["tfoot"],cPe=["scroller"],uPe=t=>({height:t}),Eie=(t,r)=>({$implicit:t,options:r}),dPe=t=>({columns:t}),Kw=t=>({$implicit:t});function pPe(t,r){if(1&t&&n.nrm(0,"i"),2&t){const e=n.XpG(2);n.HbH("p-datatable-loading-icon "+e.loadingIcon)}}function hPe(t,r){if(1&t&&n.nrm(0,"SpinnerIcon",22),2&t){const e=n.XpG(3);n.Y8G("spin",!0)("styleClass",e.cx("loadingIcon"))}}function fPe(t,r){}function mPe(t,r){1&t&&n.DNE(0,fPe,0,0,"ng-template")}function gPe(t,r){if(1&t&&(n.j41(0,"span",19),n.DNE(1,mPe,1,0,null,23),n.k0s()),2&t){const e=n.XpG(3);n.Y8G("ngClass",e.cx("loadingIcon")),n.R7$(),n.Y8G("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function vPe(t,r){if(1&t&&(n.qex(0),n.DNE(1,hPe,1,2,"SpinnerIcon",21)(2,gPe,2,2,"span",12),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate),n.R7$(),n.Y8G("ngIf",e.loadingIconTemplate||e._loadingIconTemplate)}}function _Pe(t,r){if(1&t&&(n.j41(0,"div",19),n.DNE(1,pPe,1,2,"i",20)(2,vPe,3,2,"ng-container",16),n.k0s()),2&t){const e=n.XpG();n.Y8G("ngClass",e.cx("mask")),n.R7$(),n.Y8G("ngIf",e.loadingIcon),n.R7$(),n.Y8G("ngIf",!e.loadingIcon)}}function yPe(t,r){1&t&&n.eu8(0)}function bPe(t,r){if(1&t&&(n.j41(0,"div",19),n.DNE(1,yPe,1,0,"ng-container",23),n.k0s()),2&t){const e=n.XpG();n.Y8G("ngClass",e.cx("header")),n.R7$(),n.Y8G("ngTemplateOutlet",e.captionTemplate||e._captionTemplate)}}function CPe(t,r){1&t&&n.eu8(0)}function wPe(t,r){if(1&t&&n.DNE(0,CPe,1,0,"ng-container",23),2&t){const e=n.XpG(3);n.Y8G("ngTemplateOutlet",e.paginatorDropdownIconTemplate||e._paginatorDropdownIconTemplate)}}function TPe(t,r){1&t&&n.DNE(0,wPe,1,1,"ng-template",25)}function SPe(t,r){1&t&&n.eu8(0)}function xPe(t,r){if(1&t&&n.DNE(0,SPe,1,0,"ng-container",23),2&t){const e=n.XpG(3);n.Y8G("ngTemplateOutlet",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate)}}function EPe(t,r){1&t&&n.DNE(0,xPe,1,1,"ng-template",26)}function DPe(t,r){1&t&&n.eu8(0)}function kPe(t,r){if(1&t&&n.DNE(0,DPe,1,0,"ng-container",23),2&t){const e=n.XpG(3);n.Y8G("ngTemplateOutlet",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate)}}function IPe(t,r){1&t&&n.DNE(0,kPe,1,1,"ng-template",27)}function APe(t,r){1&t&&n.eu8(0)}function MPe(t,r){if(1&t&&n.DNE(0,APe,1,0,"ng-container",23),2&t){const e=n.XpG(3);n.Y8G("ngTemplateOutlet",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate)}}function RPe(t,r){1&t&&n.DNE(0,MPe,1,1,"ng-template",28)}function OPe(t,r){1&t&&n.eu8(0)}function FPe(t,r){if(1&t&&n.DNE(0,OPe,1,0,"ng-container",23),2&t){const e=n.XpG(3);n.Y8G("ngTemplateOutlet",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function PPe(t,r){1&t&&n.DNE(0,FPe,1,1,"ng-template",29)}function LPe(t,r){if(1&t){const e=n.RV6();n.j41(0,"p-paginator",24),n.bIt("onPageChange",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onPageChange(o))}),n.DNE(1,TPe,1,0,null,16)(2,EPe,1,0,null,16)(3,IPe,1,0,null,16)(4,RPe,1,0,null,16)(5,PPe,1,0,null,16),n.k0s()}if(2&t){const e=n.XpG();n.Y8G("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("templateLeft",e.paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate)("dropdownAppendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate||e._paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showJumpToPageInput",e.showJumpToPageInput)("showPageLinks",e.showPageLinks)("styleClass",e.cx("pcPaginator")+" "+e.paginatorStyleClass&&e.paginatorStyleClass)("locale",e.paginatorLocale),n.R7$(),n.Y8G("ngIf",e.paginatorDropdownIconTemplate||e._paginatorDropdownIconTemplate),n.R7$(),n.Y8G("ngIf",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate),n.R7$(),n.Y8G("ngIf",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate),n.R7$(),n.Y8G("ngIf",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate),n.R7$(),n.Y8G("ngIf",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function NPe(t,r){1&t&&n.eu8(0)}function GPe(t,r){if(1&t&&n.DNE(0,NPe,1,0,"ng-container",31),2&t){const e=r.$implicit,i=r.options;n.XpG(2);const o=n.sdS(10);n.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",n.l_i(2,Eie,e,i))}}function BPe(t,r){if(1&t){const e=n.RV6();n.j41(0,"p-scroller",30,3),n.bIt("onLazyLoad",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onLazyItemLoad(o))}),n.DNE(2,GPe,1,5,"ng-template",null,4,n.C5r),n.k0s()}if(2&t){const e=n.XpG();n.Aen(n.eq3(15,uPe,"flex"!==e.scrollHeight?e.scrollHeight:void 0)),n.Y8G("items",e.processedData)("columns",e.columns)("scrollHeight","flex"!==e.scrollHeight?void 0:"100%")("itemSize",e.virtualScrollItemSize||e._virtualRowHeight)("step",e.rows)("delay",e.lazy?e.virtualScrollDelay:0)("inline",!0)("lazy",e.lazy)("loaderDisabled",!0)("showSpacer",!1)("showLoader",e.loadingBodyTemplate||e._loadingBodyTemplate)("options",e.virtualScrollOptions)("autoSize",!0)}}function VPe(t,r){1&t&&n.eu8(0)}function jPe(t,r){if(1&t&&(n.qex(0),n.DNE(1,VPe,1,0,"ng-container",31),n.bVm()),2&t){const e=n.XpG(),i=n.sdS(10);n.R7$(),n.Y8G("ngTemplateOutlet",i)("ngTemplateOutletContext",n.l_i(4,Eie,e.processedData,n.eq3(2,dPe,e.columns)))}}function HPe(t,r){1&t&&n.eu8(0)}function UPe(t,r){1&t&&n.eu8(0)}function $Pe(t,r){if(1&t&&n.nrm(0,"tbody",38),2&t){const e=n.XpG().options,i=n.XpG();n.Y8G("ngClass",i.cx("tbody"))("value",i.frozenValue)("frozenRows",!0)("pTableBody",e.columns)("pTableBodyTemplate",i.frozenBodyTemplate||i._frozenBodyTemplate)("frozen",!0)}}function YPe(t,r){if(1&t&&n.nrm(0,"tbody",39),2&t){const e=n.XpG().options,i=n.XpG();n.Aen("height: calc("+e.spacerStyle.height+" - "+e.rows.length*e.itemSize+"px);"),n.Y8G("ngClass",i.cx("virtualScrollerSpacer"))}}function WPe(t,r){1&t&&n.eu8(0)}function zPe(t,r){if(1&t&&(n.j41(0,"tfoot",39,7),n.DNE(2,WPe,1,0,"ng-container",31),n.k0s()),2&t){const e=n.XpG().options,i=n.XpG();n.Y8G("ngClass",i.cx("footer")),n.R7$(2),n.Y8G("ngTemplateOutlet",i.footerGroupedTemplate||i.footerTemplate||i._footerTemplate||i._footerGroupedTemplate)("ngTemplateOutletContext",n.eq3(3,Kw,e.columns))}}function qPe(t,r){if(1&t&&(n.j41(0,"table",32,5),n.DNE(2,HPe,1,0,"ng-container",31),n.j41(3,"thead",33,6),n.DNE(5,UPe,1,0,"ng-container",31),n.k0s(),n.DNE(6,$Pe,1,6,"tbody",34),n.nrm(7,"tbody",35),n.DNE(8,YPe,1,3,"tbody",36)(9,zPe,3,5,"tfoot",37),n.k0s()),2&t){const e=r.options,i=n.XpG();n.Aen(i.tableStyle),n.HbH(i.tableStyleClass),n.Y8G("ngClass",i.cx("table")),n.BMQ("id",i.id+"-table"),n.R7$(2),n.Y8G("ngTemplateOutlet",i.colGroupTemplate||i._colGroupTemplate)("ngTemplateOutletContext",n.eq3(22,Kw,e.columns)),n.R7$(),n.Y8G("ngClass",i.cx("thead"))("ngStyle",i.sx("thead")),n.R7$(2),n.Y8G("ngTemplateOutlet",i.headerGroupedTemplate||i.headerTemplate||i._headerTemplate)("ngTemplateOutletContext",n.eq3(24,Kw,e.columns)),n.R7$(),n.Y8G("ngIf",i.frozenValue||i.frozenBodyTemplate||i._frozenBodyTemplate),n.R7$(),n.Aen(e.contentStyle),n.Y8G("ngClass",i.cx("tbody",e.contentStyleClass))("value",i.dataToRender(e.rows))("pTableBody",e.columns)("pTableBodyTemplate",i.bodyTemplate||i._bodyTemplate)("scrollerOptions",e),n.R7$(),n.Y8G("ngIf",e.spacerStyle),n.R7$(),n.Y8G("ngIf",i.footerGroupedTemplate||i.footerTemplate||i._footerTemplate||i._footerGroupedTemplate)}}function XPe(t,r){1&t&&n.eu8(0)}function KPe(t,r){if(1&t&&n.DNE(0,XPe,1,0,"ng-container",23),2&t){const e=n.XpG(3);n.Y8G("ngTemplateOutlet",e.paginatorDropdownIconTemplate||e._paginatorDropdownIconTemplate)}}function QPe(t,r){1&t&&n.DNE(0,KPe,1,1,"ng-template",25)}function JPe(t,r){1&t&&n.eu8(0)}function ZPe(t,r){if(1&t&&n.DNE(0,JPe,1,0,"ng-container",23),2&t){const e=n.XpG(3);n.Y8G("ngTemplateOutlet",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate)}}function eLe(t,r){1&t&&n.DNE(0,ZPe,1,1,"ng-template",26)}function tLe(t,r){1&t&&n.eu8(0)}function nLe(t,r){if(1&t&&n.DNE(0,tLe,1,0,"ng-container",23),2&t){const e=n.XpG(3);n.Y8G("ngTemplateOutlet",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate)}}function iLe(t,r){1&t&&n.DNE(0,nLe,1,1,"ng-template",27)}function rLe(t,r){1&t&&n.eu8(0)}function oLe(t,r){if(1&t&&n.DNE(0,rLe,1,0,"ng-container",23),2&t){const e=n.XpG(3);n.Y8G("ngTemplateOutlet",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate)}}function sLe(t,r){1&t&&n.DNE(0,oLe,1,1,"ng-template",28)}function aLe(t,r){1&t&&n.eu8(0)}function lLe(t,r){if(1&t&&n.DNE(0,aLe,1,0,"ng-container",23),2&t){const e=n.XpG(3);n.Y8G("ngTemplateOutlet",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function cLe(t,r){1&t&&n.DNE(0,lLe,1,1,"ng-template",29)}function uLe(t,r){if(1&t){const e=n.RV6();n.j41(0,"p-paginator",24),n.bIt("onPageChange",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onPageChange(o))}),n.DNE(1,QPe,1,0,null,16)(2,eLe,1,0,null,16)(3,iLe,1,0,null,16)(4,sLe,1,0,null,16)(5,cLe,1,0,null,16),n.k0s()}if(2&t){const e=n.XpG();n.Y8G("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("templateLeft",e.paginatorLeftTemplate||e._paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate||e._paginatorRightTemplate)("dropdownAppendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate||e._paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showJumpToPageInput",e.showJumpToPageInput)("showPageLinks",e.showPageLinks)("styleClass",e.cx("pcPaginator")+" "+e.paginatorStyleClass&&e.paginatorStyleClass)("locale",e.paginatorLocale),n.R7$(),n.Y8G("ngIf",e.paginatorDropdownIconTemplate||e._paginatorDropdownIconTemplate),n.R7$(),n.Y8G("ngIf",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate),n.R7$(),n.Y8G("ngIf",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate),n.R7$(),n.Y8G("ngIf",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate),n.R7$(),n.Y8G("ngIf",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function dLe(t,r){1&t&&n.eu8(0)}function pLe(t,r){if(1&t&&(n.j41(0,"div",19),n.DNE(1,dLe,1,0,"ng-container",23),n.k0s()),2&t){const e=n.XpG();n.Y8G("ngClass",e.cx("footer")),n.R7$(),n.Y8G("ngTemplateOutlet",e.summaryTemplate||e._summaryTemplate)}}function hLe(t,r){if(1&t&&n.nrm(0,"div",40,8),2&t){const e=n.XpG();n.Y8G("ngClass",e.cx("columnResizeIndicator"))}}function fLe(t,r){1&t&&n.nrm(0,"ArrowDownIcon")}function mLe(t,r){}function gLe(t,r){1&t&&n.DNE(0,mLe,0,0,"ng-template")}function vLe(t,r){if(1&t&&(n.j41(0,"span",40,9),n.DNE(2,fLe,1,0,"ArrowDownIcon",16)(3,gLe,1,0,null,23),n.k0s()),2&t){const e=n.XpG();n.Y8G("ngClass",e.cx("rowReorderIndicatorUp")),n.R7$(2),n.Y8G("ngIf",!e.reorderIndicatorUpIconTemplate&&!e._reorderIndicatorUpIconTemplate),n.R7$(),n.Y8G("ngTemplateOutlet",e.reorderIndicatorUpIconTemplate||e._reorderIndicatorUpIconTemplate)}}function _Le(t,r){1&t&&n.nrm(0,"ArrowUpIcon")}function yLe(t,r){}function bLe(t,r){1&t&&n.DNE(0,yLe,0,0,"ng-template")}function CLe(t,r){if(1&t&&(n.j41(0,"span",40,10),n.DNE(2,_Le,1,0,"ArrowUpIcon",16)(3,bLe,1,0,null,23),n.k0s()),2&t){const e=n.XpG();n.Y8G("ngClass",e.cx("rowReorderIndicatorDown")),n.R7$(2),n.Y8G("ngIf",!e.reorderIndicatorDownIconTemplate&&!e._reorderIndicatorDownIconTemplate),n.R7$(),n.Y8G("ngTemplateOutlet",e.reorderIndicatorDownIconTemplate||e._reorderIndicatorDownIconTemplate)}}const wLe=["pTableBody",""],NY=(t,r,e,i,o)=>({$implicit:t,rowIndex:r,columns:e,editing:i,frozen:o}),TLe=(t,r,e,i,o,s,a)=>({$implicit:t,rowIndex:r,columns:e,editing:i,frozen:o,rowgroup:s,rowspan:a}),a7=(t,r,e,i,o,s)=>({$implicit:t,rowIndex:r,columns:e,expanded:i,editing:o,frozen:s}),Die=(t,r,e,i)=>({$implicit:t,rowIndex:r,columns:e,frozen:i}),kie=(t,r)=>({$implicit:t,frozen:r});function SLe(t,r){1&t&&n.eu8(0)}function xLe(t,r){if(1&t&&(n.qex(0,3),n.DNE(1,SLe,1,0,"ng-container",4),n.bVm()),2&t){const e=n.XpG(),i=e.$implicit,o=e.index,s=n.XpG(2);n.R7$(),n.Y8G("ngTemplateOutlet",s.dt.groupHeaderTemplate||s.dt._groupHeaderTemplate)("ngTemplateOutletContext",n.s1E(2,NY,i,s.getRowIndex(o),s.columns,"row"===s.dt.editMode&&s.dt.isRowEditing(i),s.frozen))}}function ELe(t,r){1&t&&n.eu8(0)}function DLe(t,r){if(1&t&&(n.qex(0),n.DNE(1,ELe,1,0,"ng-container",4),n.bVm()),2&t){const e=n.XpG(),i=e.$implicit,o=e.index,s=n.XpG(2);n.R7$(),n.Y8G("ngTemplateOutlet",i?s.template:s.dt.loadingBodyTemplate||s.dt._loadingBodyTemplate)("ngTemplateOutletContext",n.s1E(2,NY,i,s.getRowIndex(o),s.columns,"row"===s.dt.editMode&&s.dt.isRowEditing(i),s.frozen))}}function kLe(t,r){1&t&&n.eu8(0)}function ILe(t,r){if(1&t&&(n.qex(0),n.DNE(1,kLe,1,0,"ng-container",4),n.bVm()),2&t){const e=n.XpG(),i=e.$implicit,o=e.index,s=n.XpG(2);n.R7$(),n.Y8G("ngTemplateOutlet",i?s.template:s.dt.loadingBodyTemplate||s.dt._loadingBodyTemplate)("ngTemplateOutletContext",n.sGs(2,TLe,i,s.getRowIndex(o),s.columns,"row"===s.dt.editMode&&s.dt.isRowEditing(i),s.frozen,s.shouldRenderRowspan(s.value,i,o),s.calculateRowGroupSize(s.value,i,o)))}}function ALe(t,r){1&t&&n.eu8(0)}function MLe(t,r){if(1&t&&(n.qex(0,3),n.DNE(1,ALe,1,0,"ng-container",4),n.bVm()),2&t){const e=n.XpG(),i=e.$implicit,o=e.index,s=n.XpG(2);n.R7$(),n.Y8G("ngTemplateOutlet",s.dt.groupFooterTemplate||s.dt._groupFooterTemplate)("ngTemplateOutletContext",n.s1E(2,NY,i,s.getRowIndex(o),s.columns,"row"===s.dt.editMode&&s.dt.isRowEditing(i),s.frozen))}}function RLe(t,r){if(1&t&&n.DNE(0,xLe,2,8,"ng-container",2)(1,DLe,2,8,"ng-container",0)(2,ILe,2,10,"ng-container",0)(3,MLe,2,8,"ng-container",2),2&t){const e=r.$implicit,i=r.index,o=n.XpG(2);n.Y8G("ngIf",(o.dt.groupHeaderTemplate||o.dt._groupHeaderTemplate)&&!o.dt.virtualScroll&&"subheader"===o.dt.rowGroupMode&&o.shouldRenderRowGroupHeader(o.value,e,i)),n.R7$(),n.Y8G("ngIf","rowspan"!==o.dt.rowGroupMode),n.R7$(),n.Y8G("ngIf","rowspan"===o.dt.rowGroupMode),n.R7$(),n.Y8G("ngIf",(o.dt.groupFooterTemplate||o.dt._groupFooterTemplate)&&!o.dt.virtualScroll&&"subheader"===o.dt.rowGroupMode&&o.shouldRenderRowGroupFooter(o.value,e,i))}}function OLe(t,r){if(1&t&&(n.qex(0),n.DNE(1,RLe,4,4,"ng-template",1),n.bVm()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function FLe(t,r){1&t&&n.eu8(0)}function PLe(t,r){if(1&t&&(n.qex(0),n.DNE(1,FLe,1,0,"ng-container",4),n.bVm()),2&t){const e=n.XpG(),i=e.$implicit,o=e.index,s=n.XpG(2);n.R7$(),n.Y8G("ngTemplateOutlet",s.template)("ngTemplateOutletContext",n.l4e(2,a7,i,s.getRowIndex(o),s.columns,s.dt.isRowExpanded(i),"row"===s.dt.editMode&&s.dt.isRowEditing(i),s.frozen))}}function LLe(t,r){1&t&&n.eu8(0)}function NLe(t,r){if(1&t&&(n.qex(0,3),n.DNE(1,LLe,1,0,"ng-container",4),n.bVm()),2&t){const e=n.XpG(),i=e.$implicit,o=e.index,s=n.XpG(2);n.R7$(),n.Y8G("ngTemplateOutlet",s.dt.groupHeaderTemplate||s.dt._groupHeaderTemplate)("ngTemplateOutletContext",n.l4e(2,a7,i,s.getRowIndex(o),s.columns,s.dt.isRowExpanded(i),"row"===s.dt.editMode&&s.dt.isRowEditing(i),s.frozen))}}function GLe(t,r){1&t&&n.eu8(0)}function BLe(t,r){1&t&&n.eu8(0)}function VLe(t,r){if(1&t&&(n.qex(0,3),n.DNE(1,BLe,1,0,"ng-container",4),n.bVm()),2&t){const e=n.XpG(2),i=e.$implicit,o=e.index,s=n.XpG(2);n.R7$(),n.Y8G("ngTemplateOutlet",s.dt.groupFooterTemplate||s.dt._groupFooterTemplate)("ngTemplateOutletContext",n.l4e(2,a7,i,s.getRowIndex(o),s.columns,s.dt.isRowExpanded(i),"row"===s.dt.editMode&&s.dt.isRowEditing(i),s.frozen))}}function jLe(t,r){if(1&t&&(n.qex(0),n.DNE(1,GLe,1,0,"ng-container",4)(2,VLe,2,9,"ng-container",2),n.bVm()),2&t){const e=n.XpG(),i=e.$implicit,o=e.index,s=n.XpG(2);n.R7$(),n.Y8G("ngTemplateOutlet",s.dt.expandedRowTemplate||s.dt._expandedRowTemplate)("ngTemplateOutletContext",n.ziG(3,Die,i,s.getRowIndex(o),s.columns,s.frozen)),n.R7$(),n.Y8G("ngIf",(s.dt.groupFooterTemplate||s.dt._groupFooterTemplate)&&"subheader"===s.dt.rowGroupMode&&s.shouldRenderRowGroupFooter(s.value,i,s.getRowIndex(o)))}}function HLe(t,r){if(1&t&&n.DNE(0,PLe,2,9,"ng-container",0)(1,NLe,2,9,"ng-container",2)(2,jLe,3,8,"ng-container",0),2&t){const e=r.$implicit,i=r.index,o=n.XpG(2);n.Y8G("ngIf",!(o.dt.groupHeaderTemplate&&o.dt._groupHeaderTemplate)),n.R7$(),n.Y8G("ngIf",(o.dt.groupHeaderTemplate||o.dt._groupHeaderTemplate)&&"subheader"===o.dt.rowGroupMode&&o.shouldRenderRowGroupHeader(o.value,e,o.getRowIndex(i))),n.R7$(),n.Y8G("ngIf",o.dt.isRowExpanded(e))}}function ULe(t,r){if(1&t&&(n.qex(0),n.DNE(1,HLe,3,3,"ng-template",1),n.bVm()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function $Le(t,r){1&t&&n.eu8(0)}function YLe(t,r){1&t&&n.eu8(0)}function WLe(t,r){if(1&t&&(n.qex(0),n.DNE(1,YLe,1,0,"ng-container",4),n.bVm()),2&t){const e=n.XpG(),i=e.$implicit,o=e.index,s=n.XpG(2);n.R7$(),n.Y8G("ngTemplateOutlet",s.dt.frozenExpandedRowTemplate||s.dt._frozenExpandedRowTemplate)("ngTemplateOutletContext",n.ziG(2,Die,i,s.getRowIndex(o),s.columns,s.frozen))}}function zLe(t,r){if(1&t&&n.DNE(0,$Le,1,0,"ng-container",4)(1,WLe,2,7,"ng-container",0),2&t){const e=r.$implicit,i=r.index,o=n.XpG(2);n.Y8G("ngTemplateOutlet",o.template)("ngTemplateOutletContext",n.l4e(3,a7,e,o.getRowIndex(i),o.columns,o.dt.isRowExpanded(e),"row"===o.dt.editMode&&o.dt.isRowEditing(e),o.frozen)),n.R7$(),n.Y8G("ngIf",o.dt.isRowExpanded(e))}}function qLe(t,r){if(1&t&&(n.qex(0),n.DNE(1,zLe,2,10,"ng-template",1),n.bVm()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function XLe(t,r){1&t&&n.eu8(0)}function KLe(t,r){if(1&t&&(n.qex(0),n.DNE(1,XLe,1,0,"ng-container",4),n.bVm()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngTemplateOutlet",e.dt.loadingBodyTemplate||e.dt._loadingBodyTemplate)("ngTemplateOutletContext",n.l_i(2,kie,e.columns,e.frozen))}}function QLe(t,r){1&t&&n.eu8(0)}function JLe(t,r){if(1&t&&(n.qex(0),n.DNE(1,QLe,1,0,"ng-container",4),n.bVm()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngTemplateOutlet",e.dt.emptyMessageTemplate||e.dt._emptyMessageTemplate)("ngTemplateOutletContext",n.l_i(2,kie,e.columns,e.frozen))}}let Qw=(()=>{class t{sortSource=new K.B;selectionSource=new K.B;contextMenuSource=new K.B;valueSource=new K.B;totalRecordsSource=new K.B;columnsSource=new K.B;sortSource$=this.sortSource.asObservable();selectionSource$=this.selectionSource.asObservable();contextMenuSource$=this.contextMenuSource.asObservable();valueSource$=this.valueSource.asObservable();totalRecordsSource$=this.totalRecordsSource.asObservable();columnsSource$=this.columnsSource.asObservable();onSort(e){this.sortSource.next(e)}onSelectionChange(){this.selectionSource.next(null)}onContextMenu(e){this.contextMenuSource.next(e)}onValueChange(e){this.valueSource.next(e)}onTotalRecordsChange(e){this.totalRecordsSource.next(e)}onColumnsChange(e){this.columnsSource.next(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})(),Nu=(()=>{class t extends jo{frozenColumns;frozenValue;style;styleClass;tableStyle;tableStyleClass;paginator;pageLinks=5;rowsPerPageOptions;alwaysShowPaginator=!0;paginatorPosition="bottom";paginatorStyleClass;paginatorDropdownAppendTo;paginatorDropdownScrollHeight="200px";currentPageReportTemplate="{currentPage} of {totalPages}";showCurrentPageReport;showJumpToPageDropdown;showJumpToPageInput;showFirstLastIcon=!0;showPageLinks=!0;defaultSortOrder=1;sortMode="single";resetPageOnSort=!0;selectionMode;selectionPageOnly;contextMenuSelection;contextMenuSelectionChange=new n.bkB;contextMenuSelectionMode="separate";dataKey;metaKeySelection=!1;rowSelectable;rowTrackBy=(e,i)=>i;lazy=!1;lazyLoadOnInit=!0;compareSelectionBy="deepEquals";csvSeparator=",";exportFilename="download";filters={};globalFilterFields;filterDelay=300;filterLocale;expandedRowKeys={};editingRowKeys={};rowExpandMode="multiple";scrollable;scrollDirection="vertical";rowGroupMode;scrollHeight;virtualScroll;virtualScrollItemSize;virtualScrollOptions;virtualScrollDelay=250;frozenWidth;get responsive(){return this._responsive}set responsive(e){this._responsive=e,console.log("responsive property is deprecated as table is always responsive with scrollable behavior.")}_responsive;contextMenu;resizableColumns;columnResizeMode="fit";reorderableColumns;loading;loadingIcon;showLoader=!0;rowHover;customSort;showInitialSortBadge=!0;autoLayout;exportFunction;exportHeader;stateKey;stateStorage="session";editMode="cell";groupRowsBy;size;showGridlines;stripedRows;groupRowsByOrder=1;responsiveLayout="scroll";breakpoint="960px";paginatorLocale;get value(){return this._value}set value(e){this._value=e}get columns(){return this._columns}set columns(e){this._columns=e}get first(){return this._first}set first(e){this._first=e}get rows(){return this._rows}set rows(e){this._rows=e}get totalRecords(){return this._totalRecords}set totalRecords(e){this._totalRecords=e,this.tableService.onTotalRecordsChange(this._totalRecords)}get sortField(){return this._sortField}set sortField(e){this._sortField=e}get sortOrder(){return this._sortOrder}set sortOrder(e){this._sortOrder=e}get multiSortMeta(){return this._multiSortMeta}set multiSortMeta(e){this._multiSortMeta=e}get selection(){return this._selection}set selection(e){this._selection=e}get virtualRowHeight(){return this._virtualRowHeight}set virtualRowHeight(e){this._virtualRowHeight=e,console.log("The virtualRowHeight property is deprecated.")}get selectAll(){return this._selection}set selectAll(e){this._selection=e}selectAllChange=new n.bkB;selectionChange=new n.bkB;onRowSelect=new n.bkB;onRowUnselect=new n.bkB;onPage=new n.bkB;onSort=new n.bkB;onFilter=new n.bkB;onLazyLoad=new n.bkB;onRowExpand=new n.bkB;onRowCollapse=new n.bkB;onContextMenuSelect=new n.bkB;onColResize=new n.bkB;onColReorder=new n.bkB;onRowReorder=new n.bkB;onEditInit=new n.bkB;onEditComplete=new n.bkB;onEditCancel=new n.bkB;onHeaderCheckboxToggle=new n.bkB;sortFunction=new n.bkB;firstChange=new n.bkB;rowsChange=new n.bkB;onStateSave=new n.bkB;onStateRestore=new n.bkB;containerViewChild;resizeHelperViewChild;reorderIndicatorUpViewChild;reorderIndicatorDownViewChild;wrapperViewChild;tableViewChild;tableHeaderViewChild;tableFooterViewChild;scroller;_templates;_virtualRowHeight=28;_value=[];_columns;_totalRecords=0;_first=0;_rows;filteredValue;_headerTemplate;headerTemplate;_headerGroupedTemplate;headerGroupedTemplate;_bodyTemplate;bodyTemplate;_loadingBodyTemplate;loadingBodyTemplate;_captionTemplate;captionTemplate;_footerTemplate;footerTemplate;_footerGroupedTemplate;footerGroupedTemplate;_summaryTemplate;summaryTemplate;_colGroupTemplate;colGroupTemplate;_expandedRowTemplate;expandedRowTemplate;_groupHeaderTemplate;groupHeaderTemplate;_groupFooterTemplate;groupFooterTemplate;_frozenExpandedRowTemplate;frozenExpandedRowTemplate;_frozenHeaderTemplate;frozenHeaderTemplate;_frozenBodyTemplate;frozenBodyTemplate;_frozenFooterTemplate;frozenFooterTemplate;_frozenColGroupTemplate;frozenColGroupTemplate;_emptyMessageTemplate;emptyMessageTemplate;_paginatorLeftTemplate;paginatorLeftTemplate;_paginatorRightTemplate;paginatorRightTemplate;_paginatorDropdownItemTemplate;paginatorDropdownItemTemplate;_loadingIconTemplate;loadingIconTemplate;_reorderIndicatorUpIconTemplate;reorderIndicatorUpIconTemplate;_reorderIndicatorDownIconTemplate;reorderIndicatorDownIconTemplate;_sortIconTemplate;sortIconTemplate;_checkboxIconTemplate;checkboxIconTemplate;_headerCheckboxIconTemplate;headerCheckboxIconTemplate;_paginatorDropdownIconTemplate;paginatorDropdownIconTemplate;_paginatorFirstPageLinkIconTemplate;paginatorFirstPageLinkIconTemplate;_paginatorLastPageLinkIconTemplate;paginatorLastPageLinkIconTemplate;_paginatorPreviousPageLinkIconTemplate;paginatorPreviousPageLinkIconTemplate;_paginatorNextPageLinkIconTemplate;paginatorNextPageLinkIconTemplate;selectionKeys={};lastResizerHelperX;reorderIconWidth;reorderIconHeight;draggedColumn;draggedRowIndex;droppedRowIndex;rowDragging;dropPosition;editingCell;editingCellData;editingCellField;editingCellRowIndex;selfClick;documentEditListener;_multiSortMeta;_sortField;_sortOrder=1;preventSelectionSetterPropagation;_selection;_selectAll=null;anchorRowIndex;rangeRowIndex;filterTimeout;initialized;rowTouched;restoringSort;restoringFilter;stateRestored;columnOrderStateRestored;columnWidthsState;tableWidthState;overlaySubscription;resizeColumnElement;columnResizing=!1;rowGroupHeaderStyleObject={};id=function Mee(t="pn_id_"){return`${t}${++Aee}`}();styleElement;responsiveStyleElement;overlayService=(0,n.WQX)(Cy);filterService=(0,n.WQX)(Cx);tableService=(0,n.WQX)(Qw);zone=(0,n.WQX)(n.SKi);_componentStyle=(0,n.WQX)(LY);ngOnInit(){super.ngOnInit(),this.lazy&&this.lazyLoadOnInit&&(this.virtualScroll||this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.restoringFilter&&(this.restoringFilter=!1)),"stack"===this.responsiveLayout&&this.createResponsiveStyle(),this.initialized=!0}ngAfterContentInit(){this._templates.forEach(e=>{switch(e.getType()){case"caption":this.captionTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"headergrouped":this.headerGroupedTemplate=e.template;break;case"body":this.bodyTemplate=e.template;break;case"loadingbody":this.loadingBodyTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"footergrouped":this.footerGroupedTemplate=e.template;break;case"summary":this.summaryTemplate=e.template;break;case"colgroup":this.colGroupTemplate=e.template;break;case"rowexpansion":this.expandedRowTemplate=e.template;break;case"groupheader":this.groupHeaderTemplate=e.template;break;case"groupfooter":this.groupFooterTemplate=e.template;break;case"frozenheader":this.frozenHeaderTemplate=e.template;break;case"frozenbody":this.frozenBodyTemplate=e.template;break;case"frozenfooter":this.frozenFooterTemplate=e.template;break;case"frozencolgroup":this.frozenColGroupTemplate=e.template;break;case"frozenrowexpansion":this.frozenExpandedRowTemplate=e.template;break;case"emptymessage":this.emptyMessageTemplate=e.template;break;case"paginatorleft":this.paginatorLeftTemplate=e.template;break;case"paginatorright":this.paginatorRightTemplate=e.template;break;case"paginatordropdownicon":this.paginatorDropdownIconTemplate=e.template;break;case"paginatordropdownitem":this.paginatorDropdownItemTemplate=e.template;break;case"paginatorfirstpagelinkicon":this.paginatorFirstPageLinkIconTemplate=e.template;break;case"paginatorlastpagelinkicon":this.paginatorLastPageLinkIconTemplate=e.template;break;case"paginatorpreviouspagelinkicon":this.paginatorPreviousPageLinkIconTemplate=e.template;break;case"paginatornextpagelinkicon":this.paginatorNextPageLinkIconTemplate=e.template;break;case"loadingicon":this.loadingIconTemplate=e.template;break;case"reorderindicatorupicon":this.reorderIndicatorUpIconTemplate=e.template;break;case"reorderindicatordownicon":this.reorderIndicatorDownIconTemplate=e.template;break;case"sorticon":this.sortIconTemplate=e.template;break;case"checkboxicon":this.checkboxIconTemplate=e.template;break;case"headercheckboxicon":this.headerCheckboxIconTemplate=e.template}})}ngAfterViewInit(){super.ngAfterViewInit(),Gr(this.platformId)&&this.isStateful()&&this.resizableColumns&&this.restoreColumnWidths()}ngOnChanges(e){super.ngOnChanges(e),e.value&&(this.isStateful()&&!this.stateRestored&&Gr(this.platformId)&&this.restoreState(),this._value=e.value.currentValue,this.lazy||(this.totalRecords=this._value?this._value.length:0,"single"==this.sortMode&&(this.sortField||this.groupRowsBy)?this.sortSingle():"multiple"==this.sortMode&&(this.multiSortMeta||this.groupRowsBy)?this.sortMultiple():this.hasFilter()&&this._filter()),this.tableService.onValueChange(e.value.currentValue)),e.columns&&(this.isStateful()||(this._columns=e.columns.currentValue,this.tableService.onColumnsChange(e.columns.currentValue)),this._columns&&this.isStateful()&&this.reorderableColumns&&!this.columnOrderStateRestored&&(this.restoreColumnOrder(),this.tableService.onColumnsChange(this._columns))),e.sortField&&(this._sortField=e.sortField.currentValue,(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle()),e.groupRowsBy&&(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle(),e.sortOrder&&(this._sortOrder=e.sortOrder.currentValue,(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle()),e.groupRowsByOrder&&(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle(),e.multiSortMeta&&(this._multiSortMeta=e.multiSortMeta.currentValue,"multiple"===this.sortMode&&(this.initialized||!this.lazy&&!this.virtualScroll)&&this.sortMultiple()),e.selection&&(this._selection=e.selection.currentValue,this.preventSelectionSetterPropagation||(this.updateSelectionKeys(),this.tableService.onSelectionChange()),this.preventSelectionSetterPropagation=!1),e.selectAll&&(this._selectAll=e.selectAll.currentValue,this.preventSelectionSetterPropagation||(this.updateSelectionKeys(),this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()),this.preventSelectionSetterPropagation=!1)}get processedData(){return this.filteredValue||this.value||[]}_initialColWidths;dataToRender(e){const i=e||this.processedData;if(i&&this.paginator){const o=this.lazy?0:this.first;return i.slice(o,o+this.rows)}return i}updateSelectionKeys(){if(this.dataKey&&this._selection)if(this.selectionKeys={},Array.isArray(this._selection))for(let e of this._selection)this.selectionKeys[String(Ks.resolveFieldData(e,this.dataKey))]=1;else this.selectionKeys[String(Ks.resolveFieldData(this._selection,this.dataKey))]=1}onPageChange(e){this.first=e.first,this.rows=e.rows,this.onPage.emit({first:this.first,rows:this.rows}),this.lazy&&this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.firstChange.emit(this.first),this.rowsChange.emit(this.rows),this.tableService.onValueChange(this.value),this.isStateful()&&this.saveState(),this.anchorRowIndex=null,this.scrollable&&this.resetScrollTop()}sort(e){let i=e.originalEvent;if("single"===this.sortMode&&(this._sortOrder=this.sortField===e.field?-1*this.sortOrder:this.defaultSortOrder,this._sortField=e.field,this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop()),this.sortSingle()),"multiple"===this.sortMode){let o=i.metaKey||i.ctrlKey,s=this.getSortMeta(e.field);s?o?s.order=-1*s.order:(this._multiSortMeta=[{field:e.field,order:-1*s.order}],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop())):((!o||!this.multiSortMeta)&&(this._multiSortMeta=[],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first))),this._multiSortMeta.push({field:e.field,order:this.defaultSortOrder})),this.sortMultiple()}this.isStateful()&&this.saveState(),this.anchorRowIndex=null}sortSingle(){let e=this.sortField||this.groupRowsBy,i=this.sortField?this.sortOrder:this.groupRowsByOrder;if(this.groupRowsBy&&this.sortField&&this.groupRowsBy!==this.sortField)return this._multiSortMeta=[this.getGroupRowsMeta(),{field:this.sortField,order:this.sortOrder}],void this.sortMultiple();if(e&&i){this.restoringSort&&(this.restoringSort=!1),this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,field:e,order:i}):(this.value.sort((s,a)=>{let l=Ks.resolveFieldData(s,e),c=Ks.resolveFieldData(a,e),d=null;return d=null==l&&null!=c?-1:null!=l&&null==c?1:null==l&&null==c?0:"string"==typeof l&&"string"==typeof c?l.localeCompare(c):l<c?-1:l>c?1:0,i*d}),this._value=[...this.value]),this.hasFilter()&&this._filter());let o={field:e,order:i};this.onSort.emit(o),this.tableService.onSort(o)}}sortMultiple(){this.groupRowsBy&&(this._multiSortMeta?this.multiSortMeta[0].field!==this.groupRowsBy&&(this._multiSortMeta=[this.getGroupRowsMeta(),...this._multiSortMeta]):this._multiSortMeta=[this.getGroupRowsMeta()]),this.multiSortMeta&&(this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,multiSortMeta:this.multiSortMeta}):(this.value.sort((e,i)=>this.multisortField(e,i,this.multiSortMeta,0)),this._value=[...this.value]),this.hasFilter()&&this._filter()),this.onSort.emit({multisortmeta:this.multiSortMeta}),this.tableService.onSort(this.multiSortMeta))}multisortField(e,i,o,s){const a=Ks.resolveFieldData(e,o[s].field),l=Ks.resolveFieldData(i,o[s].field);return 0===Ks.compare(a,l,this.filterLocale)?o.length-1>s?this.multisortField(e,i,o,s+1):0:this.compareValuesOnSort(a,l,o[s].order)}compareValuesOnSort(e,i,o){return Ks.sort(e,i,o,this.filterLocale,this.sortOrder)}getSortMeta(e){if(this.multiSortMeta&&this.multiSortMeta.length)for(let i=0;i<this.multiSortMeta.length;i++)if(this.multiSortMeta[i].field===e)return this.multiSortMeta[i];return null}isSorted(e){if("single"===this.sortMode)return this.sortField&&this.sortField===e;if("multiple"===this.sortMode){let i=!1;if(this.multiSortMeta)for(let o=0;o<this.multiSortMeta.length;o++)if(this.multiSortMeta[o].field==e){i=!0;break}return i}}handleRowClick(e){let i=e.originalEvent.target,o=i.nodeName,s=i.parentElement&&i.parentElement.nodeName;if("INPUT"!=o&&"BUTTON"!=o&&"A"!=o&&"INPUT"!=s&&"BUTTON"!=s&&"A"!=s&&!Vr.hasClass(e.originalEvent.target,"p-clickable")){if(this.selectionMode){let a=e.rowData,l=e.rowIndex;if(this.preventSelectionSetterPropagation=!0,this.isMultipleSelectionMode()&&e.originalEvent.shiftKey&&null!=this.anchorRowIndex)Vr.clearSelection(),null!=this.rangeRowIndex&&this.clearSelectionRange(e.originalEvent),this.rangeRowIndex=l,this.selectRange(e.originalEvent,l);else{let c=this.isSelected(a);if(!c&&!this.isRowSelectable(a,l))return;let d=!this.rowTouched&&this.metaKeySelection,f=this.dataKey?String(Ks.resolveFieldData(a,this.dataKey)):null;if(this.anchorRowIndex=l,this.rangeRowIndex=l,d){let v=e.originalEvent.metaKey||e.originalEvent.ctrlKey;if(c&&v){if(this.isSingleSelectionMode())this._selection=null,this.selectionKeys={},this.selectionChange.emit(null);else{let w=this.findIndexInSelection(a);this._selection=this.selection.filter((x,I)=>I!=w),this.selectionChange.emit(this.selection),f&&delete this.selectionKeys[f]}this.onRowUnselect.emit({originalEvent:e.originalEvent,data:a,type:"row"})}else this.isSingleSelectionMode()?(this._selection=a,this.selectionChange.emit(a),f&&(this.selectionKeys={},this.selectionKeys[f]=1)):this.isMultipleSelectionMode()&&(v?this._selection=this.selection||[]:(this._selection=[],this.selectionKeys={}),this._selection=[...this.selection,a],this.selectionChange.emit(this.selection),f&&(this.selectionKeys[f]=1)),this.onRowSelect.emit({originalEvent:e.originalEvent,data:a,type:"row",index:l})}else if("single"===this.selectionMode)c?(this._selection=null,this.selectionKeys={},this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,data:a,type:"row",index:l})):(this._selection=a,this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,data:a,type:"row",index:l}),f&&(this.selectionKeys={},this.selectionKeys[f]=1));else if("multiple"===this.selectionMode)if(c){let v=this.findIndexInSelection(a);this._selection=this.selection.filter((w,x)=>x!=v),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,data:a,type:"row",index:l}),f&&delete this.selectionKeys[f]}else this._selection=this.selection?[...this.selection,a]:[a],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,data:a,type:"row",index:l}),f&&(this.selectionKeys[f]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}this.rowTouched=!1}}handleRowTouchEnd(e){this.rowTouched=!0}handleRowRightClick(e){if(this.contextMenu){const i=e.rowData,o=e.rowIndex;if("separate"===this.contextMenuSelectionMode)this.contextMenuSelection=i,this.contextMenuSelectionChange.emit(i),this.onContextMenuSelect.emit({originalEvent:e.originalEvent,data:i,index:e.rowIndex}),this.contextMenu.show(e.originalEvent),this.tableService.onContextMenu(i);else if("joint"===this.contextMenuSelectionMode){this.preventSelectionSetterPropagation=!0;let s=this.isSelected(i),a=this.dataKey?String(Ks.resolveFieldData(i,this.dataKey)):null;if(!s){if(!this.isRowSelectable(i,o))return;this.isSingleSelectionMode()?(this.selection=i,this.selectionChange.emit(i),a&&(this.selectionKeys={},this.selectionKeys[a]=1)):this.isMultipleSelectionMode()&&(this._selection=this.selection?[...this.selection,i]:[i],this.selectionChange.emit(this.selection),a&&(this.selectionKeys[a]=1))}this.tableService.onSelectionChange(),this.contextMenu.show(e.originalEvent),this.onContextMenuSelect.emit({originalEvent:e,data:i,index:e.rowIndex})}}}selectRange(e,i){let o,s;this.anchorRowIndex>i?(o=i,s=this.anchorRowIndex):this.anchorRowIndex<i?(o=this.anchorRowIndex,s=i):(o=i,s=i),this.lazy&&this.paginator&&(o-=this.first,s-=this.first);let a=[];for(let l=o;l<=s;l++){let c=this.filteredValue?this.filteredValue[l]:this.value[l];if(!this.isSelected(c)){if(!this.isRowSelectable(c,i))continue;a.push(c),this._selection=[...this.selection,c];let d=this.dataKey?String(Ks.resolveFieldData(c,this.dataKey)):null;d&&(this.selectionKeys[d]=1)}}this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e,data:a,type:"row"})}clearSelectionRange(e){let i,o,s=this.rangeRowIndex,a=this.anchorRowIndex;s>a?(i=this.anchorRowIndex,o=this.rangeRowIndex):s<a?(i=this.rangeRowIndex,o=this.anchorRowIndex):(i=this.rangeRowIndex,o=this.rangeRowIndex);for(let l=i;l<=o;l++){let c=this.value[l],d=this.findIndexInSelection(c);this._selection=this.selection.filter((v,w)=>w!=d);let f=this.dataKey?String(Ks.resolveFieldData(c,this.dataKey)):null;f&&delete this.selectionKeys[f],this.onRowUnselect.emit({originalEvent:e,data:c,type:"row"})}}isSelected(e){return!(!e||!this.selection)&&(this.dataKey?void 0!==this.selectionKeys[Ks.resolveFieldData(e,this.dataKey)]:Array.isArray(this.selection)?this.findIndexInSelection(e)>-1:this.equals(e,this.selection))}findIndexInSelection(e){let i=-1;if(this.selection&&this.selection.length)for(let o=0;o<this.selection.length;o++)if(this.equals(e,this.selection[o])){i=o;break}return i}isRowSelectable(e,i){return!(this.rowSelectable&&!this.rowSelectable({data:e,index:i}))}toggleRowWithRadio(e,i){if(this.preventSelectionSetterPropagation=!0,this.selection!=i){if(!this.isRowSelectable(i,e.rowIndex))return;this._selection=i,this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:i,type:"radiobutton"}),this.dataKey&&(this.selectionKeys={},this.selectionKeys[String(Ks.resolveFieldData(i,this.dataKey))]=1)}else this._selection=null,this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:i,type:"radiobutton"});this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}toggleRowWithCheckbox(e,i){this.selection=this.selection||[];let o=this.isSelected(i),s=this.dataKey?String(Ks.resolveFieldData(i,this.dataKey)):null;if(this.preventSelectionSetterPropagation=!0,o){let a=this.findIndexInSelection(i);this._selection=this.selection.filter((l,c)=>c!=a),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:i,type:"checkbox"}),s&&delete this.selectionKeys[s]}else{if(!this.isRowSelectable(i,e.rowIndex))return;this._selection=this.selection?[...this.selection,i]:[i],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:i,type:"checkbox"}),s&&(this.selectionKeys[s]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}toggleRowsWithCheckbox(e,i){if(null!==this._selectAll)this.selectAllChange.emit({originalEvent:e,checked:i});else{const o=this.selectionPageOnly?this.dataToRender(this.processedData):this.processedData;let s=this.selectionPageOnly&&this._selection?this._selection.filter(a=>!o.some(l=>this.equals(a,l))):[];i&&(s=this.frozenValue?[...s,...this.frozenValue,...o]:[...s,...o],s=this.rowSelectable?s.filter((a,l)=>this.rowSelectable({data:a,index:l})):s),this._selection=s,this.preventSelectionSetterPropagation=!0,this.updateSelectionKeys(),this.selectionChange.emit(this._selection),this.tableService.onSelectionChange(),this.onHeaderCheckboxToggle.emit({originalEvent:e,checked:i}),this.isStateful()&&this.saveState()}}equals(e,i){return"equals"===this.compareSelectionBy?e===i:Ks.equals(e,i,this.dataKey)}filter(e,i,o){this.filterTimeout&&clearTimeout(this.filterTimeout),this.isFilterBlank(e)?this.filters[i]&&delete this.filters[i]:this.filters[i]={value:e,matchMode:o},this.filterTimeout=setTimeout(()=>{this._filter(),this.filterTimeout=null},this.filterDelay),this.anchorRowIndex=null}filterGlobal(e,i){this.filter(e,"global",i)}isFilterBlank(e){return null==e||!!("string"==typeof e&&0==e.trim().length||Array.isArray(e)&&0==e.length)}_filter(){if(this.restoringFilter||(this.first=0,this.firstChange.emit(this.first)),this.lazy)this.onLazyLoad.emit(this.createLazyLoadMetadata());else{if(!this.value)return;if(this.hasFilter()){let e;if(this.filters.global){if(!this.columns&&!this.globalFilterFields)throw new Error("Global filtering requires dynamic columns or globalFilterFields to be defined.");e=this.globalFilterFields||this.columns}this.filteredValue=[];for(let i=0;i<this.value.length;i++){let l,o=!0,s=!1,a=!1;for(let c in this.filters)if(this.filters.hasOwnProperty(c)&&"global"!==c){a=!0;let d=c,f=this.filters[d];if(Array.isArray(f)){for(let v of f)if(o=this.executeLocalFilter(d,this.value[i],v),v.operator===iO.OR&&o||v.operator===iO.AND&&!o)break}else o=this.executeLocalFilter(d,this.value[i],f);if(!o)break}if(this.filters.global&&!s&&e)for(let c=0;c<e.length&&(s=this.filterService.filters[this.filters.global.matchMode](Ks.resolveFieldData(this.value[i],e[c].field||e[c]),this.filters.global.value,this.filterLocale),!s);c++);l=this.filters.global?a?a&&o&&s:s:a&&o,l&&this.filteredValue.push(this.value[i])}this.filteredValue.length===this.value.length&&(this.filteredValue=null),this.paginator&&(this.totalRecords=this.filteredValue?this.filteredValue.length:this.value?this.value.length:0)}else this.filteredValue=null,this.paginator&&(this.totalRecords=this.value?this.value.length:0)}this.onFilter.emit({filters:this.filters,filteredValue:this.filteredValue||this.value}),this.tableService.onValueChange(this.value),this.isStateful()&&!this.restoringFilter&&this.saveState(),this.restoringFilter&&(this.restoringFilter=!1),this.cd.markForCheck(),this.scrollable&&this.resetScrollTop()}executeLocalFilter(e,i,o){let s=o.value,a=o.matchMode||Xd.STARTS_WITH,l=Ks.resolveFieldData(i,e);return(0,this.filterService.filters[a])(l,s,this.filterLocale)}hasFilter(){let e=!0;for(let i in this.filters)if(this.filters.hasOwnProperty(i)){e=!1;break}return!e}createLazyLoadMetadata(){return{first:this.first,rows:this.rows,sortField:this.sortField,sortOrder:this.sortOrder,filters:this.filters,globalFilter:this.filters&&this.filters.global?this.filters.global.value:null,multiSortMeta:this.multiSortMeta,forceUpdate:()=>this.cd.detectChanges()}}clear(){this._sortField=null,this._sortOrder=this.defaultSortOrder,this._multiSortMeta=null,this.tableService.onSort(null),this.clearFilterValues(),this.filteredValue=null,this.first=0,this.firstChange.emit(this.first),this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.totalRecords=this._value?this._value.length:0}clearFilterValues(){for(const[,e]of Object.entries(this.filters))if(Array.isArray(e))for(let i of e)i.value=null;else e&&(e.value=null)}reset(){this.clear()}getExportHeader(e){return e[this.exportHeader]||e.header||e.field}exportCSV(e){let i,o="",s=this.columns;e&&e.selectionOnly?i=this.selection||[]:e&&e.allValues?i=this.value||[]:(i=this.filteredValue||this.value,this.frozenValue&&(i=i?[...this.frozenValue,...i]:this.frozenValue));const a=s.filter(f=>!1!==f.exportable&&f.field);o+=a.map(f=>'"'+this.getExportHeader(f)+'"').join(this.csvSeparator);const l=i.map(f=>a.map(v=>{let w=Ks.resolveFieldData(f,v.field);return w=null!=w?this.exportFunction?this.exportFunction({data:w,field:v.field}):String(w).replace(/"/g,'""'):"",'"'+w+'"'}).join(this.csvSeparator)).join("\n");l.length&&(o+="\n"+l);let c=new Blob([new Uint8Array([239,187,191]),o],{type:"text/csv;charset=utf-8;"}),d=this.renderer.createElement("a");d.style.display="none",this.renderer.appendChild(this.document.body,d),void 0!==d.download?(d.setAttribute("href",URL.createObjectURL(c)),d.setAttribute("download",this.exportFilename+".csv"),d.click()):(o="data:text/csv;charset=utf-8,"+o,this.document.defaultView.open(encodeURI(o))),this.renderer.removeChild(this.document.body,d)}onLazyItemLoad(e){this.onLazyLoad.emit({...this.createLazyLoadMetadata(),...e,rows:e.last-e.first})}resetScrollTop(){this.virtualScroll?this.scrollToVirtualIndex(0):this.scrollTo({top:0})}scrollToVirtualIndex(e){this.scroller&&this.scroller.scrollToIndex(e)}scrollTo(e){this.virtualScroll?this.scroller?.scrollTo(e):this.wrapperViewChild&&this.wrapperViewChild.nativeElement&&(this.wrapperViewChild.nativeElement.scrollTo?this.wrapperViewChild.nativeElement.scrollTo(e):(this.wrapperViewChild.nativeElement.scrollLeft=e.left,this.wrapperViewChild.nativeElement.scrollTop=e.top))}updateEditingCell(e,i,o,s){this.editingCell=e,this.editingCellData=i,this.editingCellField=o,this.editingCellRowIndex=s,this.bindDocumentEditListener()}isEditingCellValid(){return this.editingCell&&0===Vr.find(this.editingCell,".ng-invalid.ng-dirty").length}bindDocumentEditListener(){this.documentEditListener||(this.documentEditListener=this.renderer.listen(this.document,"click",e=>{this.editingCell&&!this.selfClick&&this.isEditingCellValid()&&(Vr.removeClass(this.editingCell,"p-cell-editing"),this.editingCell=null,this.onEditComplete.emit({field:this.editingCellField,data:this.editingCellData,originalEvent:e,index:this.editingCellRowIndex}),this.editingCellField=null,this.editingCellData=null,this.editingCellRowIndex=null,this.unbindDocumentEditListener(),this.cd.markForCheck(),this.overlaySubscription&&this.overlaySubscription.unsubscribe()),this.selfClick=!1}))}unbindDocumentEditListener(){this.documentEditListener&&(this.documentEditListener(),this.documentEditListener=null)}initRowEdit(e){let i=String(Ks.resolveFieldData(e,this.dataKey));this.editingRowKeys[i]=!0}saveRowEdit(e,i){if(0===Vr.find(i,".ng-invalid.ng-dirty").length){let o=String(Ks.resolveFieldData(e,this.dataKey));delete this.editingRowKeys[o]}}cancelRowEdit(e){let i=String(Ks.resolveFieldData(e,this.dataKey));delete this.editingRowKeys[i]}toggleRow(e,i){if(!this.dataKey&&!this.groupRowsBy)throw new Error("dataKey or groupRowsBy must be defined to use row expansion");let o=String(Ks.resolveFieldData(e,this.groupRowsBy?this.groupRowsBy:this.dataKey));null!=this.expandedRowKeys[o]?(delete this.expandedRowKeys[o],this.onRowCollapse.emit({originalEvent:i,data:e})):("single"===this.rowExpandMode&&(this.expandedRowKeys={}),this.expandedRowKeys[o]=!0,this.onRowExpand.emit({originalEvent:i,data:e})),i&&i.preventDefault(),this.isStateful()&&this.saveState()}isRowExpanded(e){return this.groupRowsBy?!0===this.expandedRowKeys[String(Ks.resolveFieldData(e,this.groupRowsBy))]:!0===this.expandedRowKeys[String(Ks.resolveFieldData(e,this.dataKey))]}isRowEditing(e){return!0===this.editingRowKeys[String(Ks.resolveFieldData(e,this.dataKey))]}isSingleSelectionMode(){return"single"===this.selectionMode}isMultipleSelectionMode(){return"multiple"===this.selectionMode}onColumnResizeBegin(e){let i=Vr.getOffset(this.containerViewChild?.nativeElement).left;this.resizeColumnElement=e.target.parentElement,this.columnResizing=!0,this.lastResizerHelperX="touchstart"==e.type?e.changedTouches[0].clientX-i+this.containerViewChild?.nativeElement.scrollLeft:e.pageX-i+this.containerViewChild?.nativeElement.scrollLeft,this.onColumnResize(e),e.preventDefault()}onColumnResize(e){let i=Vr.getOffset(this.containerViewChild?.nativeElement).left;Vr.addClass(this.containerViewChild?.nativeElement,"p-unselectable-text"),this.resizeHelperViewChild.nativeElement.style.height=this.containerViewChild?.nativeElement.offsetHeight+"px",this.resizeHelperViewChild.nativeElement.style.top="0px",this.resizeHelperViewChild.nativeElement.style.left="touchmove"==e.type?e.changedTouches[0].clientX-i+this.containerViewChild?.nativeElement.scrollLeft+"px":e.pageX-i+this.containerViewChild?.nativeElement.scrollLeft+"px",this.resizeHelperViewChild.nativeElement.style.display="block"}onColumnResizeEnd(){let e=this.resizeHelperViewChild?.nativeElement.offsetLeft-this.lastResizerHelperX,o=this.resizeColumnElement.offsetWidth+e;if(o>=(this.resizeColumnElement.style.minWidth.replace(/[^\d.]/g,"")||15)){if("fit"===this.columnResizeMode){let l=this.resizeColumnElement.nextElementSibling.offsetWidth-e;o>15&&l>15&&this.resizeTableCells(o,l)}else"expand"===this.columnResizeMode&&(this._initialColWidths=this._totalTableWidth(),this.setResizeTableWidth(this.tableViewChild?.nativeElement.offsetWidth+e+"px"),this.resizeTableCells(o,null));this.onColResize.emit({element:this.resizeColumnElement,delta:e}),this.isStateful()&&this.saveState()}this.resizeHelperViewChild.nativeElement.style.display="none",Vr.removeClass(this.containerViewChild?.nativeElement,"p-unselectable-text")}_totalTableWidth(){let e=[];const i=Vr.findSingle(this.containerViewChild.nativeElement,".p-datatable-thead");return Vr.find(i,"tr > th").forEach(s=>e.push(Vr.getOuterWidth(s))),e}onColumnDragStart(e,i){this.reorderIconWidth=Vr.getHiddenElementOuterWidth(this.reorderIndicatorUpViewChild?.nativeElement),this.reorderIconHeight=Vr.getHiddenElementOuterHeight(this.reorderIndicatorDownViewChild?.nativeElement),this.draggedColumn=i,e.dataTransfer.setData("text","b")}onColumnDragEnter(e,i){if(this.reorderableColumns&&this.draggedColumn&&i){e.preventDefault();let o=Vr.getOffset(this.containerViewChild?.nativeElement),s=Vr.getOffset(i);if(this.draggedColumn!=i){Vr.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),Vr.indexWithinGroup(i,"preorderablecolumn");let c=s.left-o.left,f=s.left+i.offsetWidth/2;this.reorderIndicatorUpViewChild.nativeElement.style.top=s.top-o.top-(this.reorderIconHeight-1)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.top=s.top-o.top+i.offsetHeight+"px",e.pageX>f?(this.reorderIndicatorUpViewChild.nativeElement.style.left=c+i.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=c+i.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=1):(this.reorderIndicatorUpViewChild.nativeElement.style.left=c-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=c-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=-1),this.reorderIndicatorUpViewChild.nativeElement.style.display="block",this.reorderIndicatorDownViewChild.nativeElement.style.display="block"}else e.dataTransfer.dropEffect="none"}}onColumnDragLeave(e){this.reorderableColumns&&this.draggedColumn&&e.preventDefault()}onColumnDrop(e,i){if(e.preventDefault(),this.draggedColumn){let o=Vr.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),s=Vr.indexWithinGroup(i,"preorderablecolumn"),a=o!=s;if(a&&(s-o==1&&-1===this.dropPosition||o-s==1&&1===this.dropPosition)&&(a=!1),a&&s<o&&1===this.dropPosition&&(s+=1),a&&s>o&&-1===this.dropPosition&&(s-=1),a&&(Ks.reorderArray(this.columns,o,s),this.onColReorder.emit({dragIndex:o,dropIndex:s,columns:this.columns}),this.isStateful()&&this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.saveState()})})),this.resizableColumns&&this.resizeColumnElement){let l="expand"===this.columnResizeMode?this._initialColWidths:this._totalTableWidth();Ks.reorderArray(l,o+1,s+1),this.updateStyleElement(l,o,null,null)}this.reorderIndicatorUpViewChild.nativeElement.style.display="none",this.reorderIndicatorDownViewChild.nativeElement.style.display="none",this.draggedColumn.draggable=!1,this.draggedColumn=null,this.dropPosition=null}}resizeTableCells(e,i){let o=Vr.index(this.resizeColumnElement),s="expand"===this.columnResizeMode?this._initialColWidths:this._totalTableWidth();this.updateStyleElement(s,o,e,i)}updateStyleElement(e,i,o,s){this.destroyStyleElement(),this.createStyleElement();let a="";e.forEach((l,c)=>{let d=c===i?o:s&&c===i+1?s:l;a+=`\n                #${this.id}-table > .p-datatable-thead > tr > th:nth-child(${c+1}),\n                #${this.id}-table > .p-datatable-tbody > tr > td:nth-child(${c+1}),\n                #${this.id}-table > .p-datatable-tfoot > tr > td:nth-child(${c+1}) {\n                    width: ${d}px !important; max-width: ${d}px !important;\n                }\n            `}),this.renderer.setProperty(this.styleElement,"innerHTML",a)}onRowDragStart(e,i){this.rowDragging=!0,this.draggedRowIndex=i,e.dataTransfer.setData("text","b")}onRowDragOver(e,i,o){if(this.rowDragging&&this.draggedRowIndex!==i){let s=Vr.getOffset(o).top,a=e.pageY,l=s+Vr.getOuterHeight(o)/2,c=o.previousElementSibling;a<l?(Vr.removeClass(o,"p-datatable-dragpoint-bottom"),this.droppedRowIndex=i,c?Vr.addClass(c,"p-datatable-dragpoint-bottom"):Vr.addClass(o,"p-datatable-dragpoint-top")):(c?Vr.removeClass(c,"p-datatable-dragpoint-bottom"):Vr.addClass(o,"p-datatable-dragpoint-top"),this.droppedRowIndex=i+1,Vr.addClass(o,"p-datatable-dragpoint-bottom"))}}onRowDragLeave(e,i){let o=i.previousElementSibling;o&&Vr.removeClass(o,"p-datatable-dragpoint-bottom"),Vr.removeClass(i,"p-datatable-dragpoint-bottom"),Vr.removeClass(i,"p-datatable-dragpoint-top")}onRowDragEnd(e){this.rowDragging=!1,this.draggedRowIndex=null,this.droppedRowIndex=null}onRowDrop(e,i){if(null!=this.droppedRowIndex){let o=this.draggedRowIndex>this.droppedRowIndex?this.droppedRowIndex:0===this.droppedRowIndex?0:this.droppedRowIndex-1;Ks.reorderArray(this.value,this.draggedRowIndex,o),this.virtualScroll&&(this._value=[...this._value]),this.onRowReorder.emit({dragIndex:this.draggedRowIndex,dropIndex:o})}this.onRowDragLeave(e,i),this.onRowDragEnd(e)}isEmpty(){let e=this.filteredValue||this.value;return null==e||0==e.length}getBlockableElement(){return this.el.nativeElement.children[0]}getStorage(){if(!Gr(this.platformId))throw new Error("Browser storage is not available in the server side.");switch(this.stateStorage){case"local":return window.localStorage;case"session":return window.sessionStorage;default:throw new Error(this.stateStorage+' is not a valid value for the state storage, supported values are "local" and "session".')}}isStateful(){return null!=this.stateKey}saveState(){const e=this.getStorage();let i={};this.paginator&&(i.first=this.first,i.rows=this.rows),this.sortField&&(i.sortField=this.sortField,i.sortOrder=this.sortOrder),this.multiSortMeta&&(i.multiSortMeta=this.multiSortMeta),this.hasFilter()&&(i.filters=this.filters),this.resizableColumns&&this.saveColumnWidths(i),this.reorderableColumns&&this.saveColumnOrder(i),this.selection&&(i.selection=this.selection),Object.keys(this.expandedRowKeys).length&&(i.expandedRowKeys=this.expandedRowKeys),e.setItem(this.stateKey,JSON.stringify(i)),this.onStateSave.emit(i)}clearState(){const e=this.getStorage();this.stateKey&&e.removeItem(this.stateKey)}restoreState(){const i=this.getStorage().getItem(this.stateKey),o=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/;if(i){let a=JSON.parse(i,function(a,l){return"string"==typeof l&&o.test(l)?new Date(l):l});this.paginator&&(void 0!==this.first&&(this.first=a.first,this.firstChange.emit(this.first)),void 0!==this.rows&&(this.rows=a.rows,this.rowsChange.emit(this.rows))),a.sortField&&(this.restoringSort=!0,this._sortField=a.sortField,this._sortOrder=a.sortOrder),a.multiSortMeta&&(this.restoringSort=!0,this._multiSortMeta=a.multiSortMeta),a.filters&&(this.restoringFilter=!0,this.filters=a.filters),this.resizableColumns&&(this.columnWidthsState=a.columnWidths,this.tableWidthState=a.tableWidth),a.expandedRowKeys&&(this.expandedRowKeys=a.expandedRowKeys),a.selection&&Promise.resolve(null).then(()=>this.selectionChange.emit(a.selection)),this.stateRestored=!0,this.onStateRestore.emit(a)}}saveColumnWidths(e){let i=[];Vr.find(this.containerViewChild?.nativeElement,".p-datatable-thead > tr > th").forEach(s=>i.push(Vr.getOuterWidth(s))),e.columnWidths=i.join(","),"expand"===this.columnResizeMode&&(e.tableWidth=Vr.getOuterWidth(this.tableViewChild?.nativeElement))}setResizeTableWidth(e){this.tableViewChild.nativeElement.style.width=e,this.tableViewChild.nativeElement.style.minWidth=e}restoreColumnWidths(){if(this.columnWidthsState){let e=this.columnWidthsState.split(",");if("expand"===this.columnResizeMode&&this.tableWidthState&&this.setResizeTableWidth(this.tableWidthState+"px"),Ks.isNotEmpty(e)){this.createStyleElement();let i="";e.forEach((o,s)=>{i+=`\n                        #${this.id}-table > .p-datatable-thead > tr > th:nth-child(${s+1}),\n                        #${this.id}-table > .p-datatable-tbody > tr > td:nth-child(${s+1}),\n                        #${this.id}-table > .p-datatable-tfoot > tr > td:nth-child(${s+1}) {\n                            width: ${o}px !important; max-width: ${o}px !important\n                        }\n                    `}),this.styleElement.innerHTML=i}}}saveColumnOrder(e){if(this.columns){let i=[];this.columns.map(o=>{i.push(o.field||o.key)}),e.columnOrder=i}}restoreColumnOrder(){const i=this.getStorage().getItem(this.stateKey);if(i){let s=JSON.parse(i).columnOrder;if(s){let a=[];s.map(l=>{let c=this.findColumnByKey(l);c&&a.push(c)}),this.columnOrderStateRestored=!0,this.columns=a}}}findColumnByKey(e){if(!this.columns)return null;for(let i of this.columns)if(i.key===e||i.field===e)return i}createStyleElement(){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",this.renderer.appendChild(this.document.head,this.styleElement),Vr.setAttribute(this.styleElement,"nonce",this.config?.csp()?.nonce)}getGroupRowsMeta(){return{field:this.groupRowsBy,order:this.groupRowsByOrder}}createResponsiveStyle(){Gr(this.platformId)&&!this.responsiveStyleElement&&(this.responsiveStyleElement=this.renderer.createElement("style"),this.responsiveStyleElement.type="text/css",this.renderer.appendChild(this.document.head,this.responsiveStyleElement),this.renderer.setProperty(this.responsiveStyleElement,"innerHTML",`\n    @media screen and (max-width: ${this.breakpoint}) {\n        #${this.id}-table > .p-datatable-thead > tr > th,\n        #${this.id}-table > .p-datatable-tfoot > tr > td {\n            display: none !important;\n        }\n\n        #${this.id}-table > .p-datatable-tbody > tr > td {\n            display: flex;\n            width: 100% !important;\n            align-items: center;\n            justify-content: space-between;\n        }\n\n        #${this.id}-table > .p-datatable-tbody > tr > td:not(:last-child) {\n            border: 0 none;\n        }\n\n        #${this.id}.p-datatable-gridlines > .p-datatable-table-container > .p-datatable-table > .p-datatable-tbody > tr > td:last-child {\n            border-top: 0;\n            border-right: 0;\n            border-left: 0;\n        }\n\n        #${this.id}-table > .p-datatable-tbody > tr > td > .p-datatable-column-title {\n            display: block;\n        }\n    }\n    `),Vr.setAttribute(this.responsiveStyleElement,"nonce",this.config?.csp()?.nonce))}destroyResponsiveStyle(){this.responsiveStyleElement&&(this.renderer.removeChild(this.document.head,this.responsiveStyleElement),this.responsiveStyleElement=null)}destroyStyleElement(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}ngOnDestroy(){this.unbindDocumentEditListener(),this.editingCell=null,this.initialized=null,this.destroyStyleElement(),this.destroyResponsiveStyle(),super.ngOnDestroy()}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["p-table"]],contentQueries:function(i,o,s){if(1&i&&(n.wni(s,Sie,4),n.wni(s,xFe,4),n.wni(s,EFe,4),n.wni(s,DFe,4),n.wni(s,kFe,4),n.wni(s,xie,4),n.wni(s,IFe,4),n.wni(s,AFe,4),n.wni(s,MFe,4),n.wni(s,RFe,4),n.wni(s,OFe,4),n.wni(s,FFe,4),n.wni(s,PFe,4),n.wni(s,LFe,4),n.wni(s,NFe,4),n.wni(s,GFe,4),n.wni(s,BFe,4),n.wni(s,VFe,4),n.wni(s,jFe,4),n.wni(s,HFe,4),n.wni(s,UFe,4),n.wni(s,$Fe,4),n.wni(s,YFe,4),n.wni(s,WFe,4),n.wni(s,zFe,4),n.wni(s,qFe,4),n.wni(s,XFe,4),n.wni(s,KFe,4),n.wni(s,QFe,4),n.wni(s,JFe,4),n.wni(s,ZFe,4),n.wni(s,ePe,4),n.wni(s,hs,4)),2&i){let a;n.mGM(a=n.lsd())&&(o._headerTemplate=a.first),n.mGM(a=n.lsd())&&(o._headerGroupedTemplate=a.first),n.mGM(a=n.lsd())&&(o._bodyTemplate=a.first),n.mGM(a=n.lsd())&&(o._loadingBodyTemplate=a.first),n.mGM(a=n.lsd())&&(o._captionTemplate=a.first),n.mGM(a=n.lsd())&&(o._footerTemplate=a.first),n.mGM(a=n.lsd())&&(o._footerGroupedTemplate=a.first),n.mGM(a=n.lsd())&&(o._summaryTemplate=a.first),n.mGM(a=n.lsd())&&(o._colGroupTemplate=a.first),n.mGM(a=n.lsd())&&(o._expandedRowTemplate=a.first),n.mGM(a=n.lsd())&&(o._groupHeaderTemplate=a.first),n.mGM(a=n.lsd())&&(o._groupFooterTemplate=a.first),n.mGM(a=n.lsd())&&(o._frozenExpandedRowTemplate=a.first),n.mGM(a=n.lsd())&&(o._frozenHeaderTemplate=a.first),n.mGM(a=n.lsd())&&(o._frozenBodyTemplate=a.first),n.mGM(a=n.lsd())&&(o._frozenFooterTemplate=a.first),n.mGM(a=n.lsd())&&(o._frozenColGroupTemplate=a.first),n.mGM(a=n.lsd())&&(o._emptyMessageTemplate=a.first),n.mGM(a=n.lsd())&&(o._paginatorLeftTemplate=a.first),n.mGM(a=n.lsd())&&(o._paginatorRightTemplate=a.first),n.mGM(a=n.lsd())&&(o._paginatorDropdownItemTemplate=a.first),n.mGM(a=n.lsd())&&(o._loadingIconTemplate=a.first),n.mGM(a=n.lsd())&&(o._reorderIndicatorUpIconTemplate=a.first),n.mGM(a=n.lsd())&&(o._reorderIndicatorDownIconTemplate=a.first),n.mGM(a=n.lsd())&&(o._sortIconTemplate=a.first),n.mGM(a=n.lsd())&&(o._checkboxIconTemplate=a.first),n.mGM(a=n.lsd())&&(o._headerCheckboxIconTemplate=a.first),n.mGM(a=n.lsd())&&(o._paginatorDropdownIconTemplate=a.first),n.mGM(a=n.lsd())&&(o._paginatorFirstPageLinkIconTemplate=a.first),n.mGM(a=n.lsd())&&(o._paginatorLastPageLinkIconTemplate=a.first),n.mGM(a=n.lsd())&&(o._paginatorPreviousPageLinkIconTemplate=a.first),n.mGM(a=n.lsd())&&(o._paginatorNextPageLinkIconTemplate=a.first),n.mGM(a=n.lsd())&&(o._templates=a)}},viewQuery:function(i,o){if(1&i&&(n.GBs(tPe,5),n.GBs(nPe,5),n.GBs(iPe,5),n.GBs(rPe,5),n.GBs(oPe,5),n.GBs(sPe,5),n.GBs(aPe,5),n.GBs(lPe,5),n.GBs(cPe,5)),2&i){let s;n.mGM(s=n.lsd())&&(o.containerViewChild=s.first),n.mGM(s=n.lsd())&&(o.resizeHelperViewChild=s.first),n.mGM(s=n.lsd())&&(o.reorderIndicatorUpViewChild=s.first),n.mGM(s=n.lsd())&&(o.reorderIndicatorDownViewChild=s.first),n.mGM(s=n.lsd())&&(o.wrapperViewChild=s.first),n.mGM(s=n.lsd())&&(o.tableViewChild=s.first),n.mGM(s=n.lsd())&&(o.tableHeaderViewChild=s.first),n.mGM(s=n.lsd())&&(o.tableFooterViewChild=s.first),n.mGM(s=n.lsd())&&(o.scroller=s.first)}},inputs:{frozenColumns:"frozenColumns",frozenValue:"frozenValue",style:"style",styleClass:"styleClass",tableStyle:"tableStyle",tableStyleClass:"tableStyleClass",paginator:[2,"paginator","paginator",n.L39],pageLinks:[2,"pageLinks","pageLinks",n.Udg],rowsPerPageOptions:"rowsPerPageOptions",alwaysShowPaginator:[2,"alwaysShowPaginator","alwaysShowPaginator",n.L39],paginatorPosition:"paginatorPosition",paginatorStyleClass:"paginatorStyleClass",paginatorDropdownAppendTo:"paginatorDropdownAppendTo",paginatorDropdownScrollHeight:"paginatorDropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:[2,"showCurrentPageReport","showCurrentPageReport",n.L39],showJumpToPageDropdown:[2,"showJumpToPageDropdown","showJumpToPageDropdown",n.L39],showJumpToPageInput:[2,"showJumpToPageInput","showJumpToPageInput",n.L39],showFirstLastIcon:[2,"showFirstLastIcon","showFirstLastIcon",n.L39],showPageLinks:[2,"showPageLinks","showPageLinks",n.L39],defaultSortOrder:[2,"defaultSortOrder","defaultSortOrder",n.Udg],sortMode:"sortMode",resetPageOnSort:[2,"resetPageOnSort","resetPageOnSort",n.L39],selectionMode:"selectionMode",selectionPageOnly:[2,"selectionPageOnly","selectionPageOnly",n.L39],contextMenuSelection:"contextMenuSelection",contextMenuSelectionMode:"contextMenuSelectionMode",dataKey:"dataKey",metaKeySelection:[2,"metaKeySelection","metaKeySelection",n.L39],rowSelectable:"rowSelectable",rowTrackBy:"rowTrackBy",lazy:[2,"lazy","lazy",n.L39],lazyLoadOnInit:[2,"lazyLoadOnInit","lazyLoadOnInit",n.L39],compareSelectionBy:"compareSelectionBy",csvSeparator:"csvSeparator",exportFilename:"exportFilename",filters:"filters",globalFilterFields:"globalFilterFields",filterDelay:[2,"filterDelay","filterDelay",n.Udg],filterLocale:"filterLocale",expandedRowKeys:"expandedRowKeys",editingRowKeys:"editingRowKeys",rowExpandMode:"rowExpandMode",scrollable:[2,"scrollable","scrollable",n.L39],scrollDirection:"scrollDirection",rowGroupMode:"rowGroupMode",scrollHeight:"scrollHeight",virtualScroll:[2,"virtualScroll","virtualScroll",n.L39],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",n.Udg],virtualScrollOptions:"virtualScrollOptions",virtualScrollDelay:[2,"virtualScrollDelay","virtualScrollDelay",n.Udg],frozenWidth:"frozenWidth",responsive:"responsive",contextMenu:"contextMenu",resizableColumns:[2,"resizableColumns","resizableColumns",n.L39],columnResizeMode:"columnResizeMode",reorderableColumns:[2,"reorderableColumns","reorderableColumns",n.L39],loading:[2,"loading","loading",n.L39],loadingIcon:"loadingIcon",showLoader:[2,"showLoader","showLoader",n.L39],rowHover:[2,"rowHover","rowHover",n.L39],customSort:[2,"customSort","customSort",n.L39],showInitialSortBadge:[2,"showInitialSortBadge","showInitialSortBadge",n.L39],autoLayout:[2,"autoLayout","autoLayout",n.L39],exportFunction:"exportFunction",exportHeader:"exportHeader",stateKey:"stateKey",stateStorage:"stateStorage",editMode:"editMode",groupRowsBy:"groupRowsBy",size:"size",showGridlines:[2,"showGridlines","showGridlines",n.L39],stripedRows:[2,"stripedRows","stripedRows",n.L39],groupRowsByOrder:[2,"groupRowsByOrder","groupRowsByOrder",n.Udg],responsiveLayout:"responsiveLayout",breakpoint:"breakpoint",paginatorLocale:"paginatorLocale",value:"value",columns:"columns",first:"first",rows:"rows",totalRecords:"totalRecords",sortField:"sortField",sortOrder:"sortOrder",multiSortMeta:"multiSortMeta",selection:"selection",virtualRowHeight:"virtualRowHeight",selectAll:"selectAll"},outputs:{contextMenuSelectionChange:"contextMenuSelectionChange",selectAllChange:"selectAllChange",selectionChange:"selectionChange",onRowSelect:"onRowSelect",onRowUnselect:"onRowUnselect",onPage:"onPage",onSort:"onSort",onFilter:"onFilter",onLazyLoad:"onLazyLoad",onRowExpand:"onRowExpand",onRowCollapse:"onRowCollapse",onContextMenuSelect:"onContextMenuSelect",onColResize:"onColResize",onColReorder:"onColReorder",onRowReorder:"onRowReorder",onEditInit:"onEditInit",onEditComplete:"onEditComplete",onEditCancel:"onEditCancel",onHeaderCheckboxToggle:"onHeaderCheckboxToggle",sortFunction:"sortFunction",firstChange:"firstChange",rowsChange:"rowsChange",onStateSave:"onStateSave",onStateRestore:"onStateRestore"},standalone:!1,features:[n.Jv_([Qw,LY]),n.GFd,n.Vt3,n.OA$],decls:16,vars:17,consts:[["container",""],["wrapper",""],["buildInTable",""],["scroller",""],["content",""],["table",""],["thead",""],["tfoot",""],["resizeHelper",""],["reorderIndicatorUp",""],["reorderIndicatorDown",""],[3,"ngStyle","ngClass"],[3,"ngClass",4,"ngIf"],[3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","styleClass","locale","onPageChange",4,"ngIf"],[3,"ngClass","ngStyle"],[3,"items","columns","style","scrollHeight","itemSize","step","delay","inline","lazy","loaderDisabled","showSpacer","showLoader","options","autoSize","onLazyLoad",4,"ngIf"],[4,"ngIf"],["style","display:none",3,"ngClass",4,"ngIf"],["style","display: none;",3,"ngClass",4,"ngIf"],[3,"ngClass"],[3,"class",4,"ngIf"],[3,"spin","styleClass",4,"ngIf"],[3,"spin","styleClass"],[4,"ngTemplateOutlet"],[3,"onPageChange","rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","styleClass","locale"],["pTemplate","dropdownicon"],["pTemplate","firstpagelinkicon"],["pTemplate","previouspagelinkicon"],["pTemplate","lastpagelinkicon"],["pTemplate","nextpagelinkicon"],[3,"onLazyLoad","items","columns","scrollHeight","itemSize","step","delay","inline","lazy","loaderDisabled","showSpacer","showLoader","options","autoSize"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["role","table",3,"ngClass"],["role","rowgroup",3,"ngClass","ngStyle"],["role","rowgroup",3,"ngClass","value","frozenRows","pTableBody","pTableBodyTemplate","frozen",4,"ngIf"],["role","rowgroup",3,"ngClass","value","pTableBody","pTableBodyTemplate","scrollerOptions"],["role","rowgroup",3,"style","ngClass",4,"ngIf"],["role","rowgroup",3,"ngClass",4,"ngIf"],["role","rowgroup",3,"ngClass","value","frozenRows","pTableBody","pTableBodyTemplate","frozen"],["role","rowgroup",3,"ngClass"],[2,"display","none",3,"ngClass"]],template:function(i,o){1&i&&(n.j41(0,"div",11,0),n.DNE(2,_Pe,3,3,"div",12)(3,bPe,2,2,"div",12)(4,LPe,6,24,"p-paginator",13),n.j41(5,"div",14,1),n.DNE(7,BPe,4,17,"p-scroller",15)(8,jPe,2,7,"ng-container",16)(9,qPe,10,26,"ng-template",null,2,n.C5r),n.k0s(),n.DNE(11,uLe,6,24,"p-paginator",13)(12,pLe,2,2,"div",12)(13,hLe,2,1,"div",17)(14,vLe,4,3,"span",18)(15,CLe,4,3,"span",18),n.k0s()),2&i&&(n.HbH(o.styleClass),n.Y8G("ngStyle",o.style)("ngClass",o.cx("root")),n.BMQ("id",o.id),n.R7$(2),n.Y8G("ngIf",o.loading&&o.showLoader),n.R7$(),n.Y8G("ngIf",o.captionTemplate||o._captionTemplate),n.R7$(),n.Y8G("ngIf",o.paginator&&("top"===o.paginatorPosition||"both"==o.paginatorPosition)),n.R7$(),n.Y8G("ngClass",o.cx("tableContainer"))("ngStyle",o.sx("tableContainer")),n.R7$(2),n.Y8G("ngIf",o.virtualScroll),n.R7$(),n.Y8G("ngIf",!o.virtualScroll),n.R7$(3),n.Y8G("ngIf",o.paginator&&("bottom"===o.paginatorPosition||"both"==o.paginatorPosition)),n.R7$(),n.Y8G("ngIf",o.summaryTemplate||o._summaryTemplate),n.R7$(),n.Y8G("ngIf",o.resizableColumns),n.R7$(),n.Y8G("ngIf",o.reorderableColumns),n.R7$(),n.Y8G("ngIf",o.reorderableColumns))},dependencies:()=>[bi,fi,uo,Jr,yie,hs,Db,cie,uie,Ax,h4e],encapsulation:2})}return t})(),h4e=(()=>{class t{dt;tableService;cd;el;columns;template;get value(){return this._value}set value(e){this._value=e,this.frozenRows&&this.updateFrozenRowStickyPosition(),this.dt.scrollable&&"subheader"===this.dt.rowGroupMode&&this.updateFrozenRowGroupHeaderStickyPosition()}frozen;frozenRows;scrollerOptions;subscription;_value;ngAfterViewInit(){this.frozenRows&&this.updateFrozenRowStickyPosition(),this.dt.scrollable&&"subheader"===this.dt.rowGroupMode&&this.updateFrozenRowGroupHeaderStickyPosition()}constructor(e,i,o,s){this.dt=e,this.tableService=i,this.cd=o,this.el=s,this.subscription=this.dt.tableService.valueSource$.subscribe(()=>{this.dt.virtualScroll&&this.cd.detectChanges()})}shouldRenderRowGroupHeader(e,i,o){let s=Ks.resolveFieldData(i,this.dt.groupRowsBy),a=e[o-(1+this.dt._first)];return!a||s!==Ks.resolveFieldData(a,this.dt.groupRowsBy)}shouldRenderRowGroupFooter(e,i,o){let s=Ks.resolveFieldData(i,this.dt.groupRowsBy),a=e[o+(1+this.dt._first)];return!a||s!==Ks.resolveFieldData(a,this.dt.groupRowsBy)}shouldRenderRowspan(e,i,o){let s=Ks.resolveFieldData(i,this.dt.groupRowsBy),a=e[o-1];return!a||s!==Ks.resolveFieldData(a,this.dt.groupRowsBy)}calculateRowGroupSize(e,i,o){let s=Ks.resolveFieldData(i,this.dt.groupRowsBy),a=s,l=0;for(;s===a;){l++;let c=e[++o];if(!c)break;a=Ks.resolveFieldData(c,this.dt.groupRowsBy)}return 1===l?null:l}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}updateFrozenRowStickyPosition(){this.el.nativeElement.style.top=Vr.getOuterHeight(this.el.nativeElement.previousElementSibling)+"px"}updateFrozenRowGroupHeaderStickyPosition(){if(this.el.nativeElement.previousElementSibling){let e=Vr.getOuterHeight(this.el.nativeElement.previousElementSibling);this.dt.rowGroupHeaderStyleObject.top=e+"px"}}getScrollerOption(e,i){return this.dt.virtualScroll&&(i=i||this.scrollerOptions)?i[e]:null}getRowIndex(e){const i=this.dt.paginator?this.dt.first+e:e,o=this.getScrollerOption("getItemOptions");return o?o(i).index:i}static \u0275fac=function(i){return new(i||t)(n.rXU(Nu),n.rXU(Qw),n.rXU(n.gRc),n.rXU(n.aKT))};static \u0275cmp=n.VBU({type:t,selectors:[["","pTableBody",""]],inputs:{columns:[0,"pTableBody","columns"],template:[0,"pTableBodyTemplate","template"],value:"value",frozen:[2,"frozen","frozen",n.L39],frozenRows:[2,"frozenRows","frozenRows",n.L39],scrollerOptions:"scrollerOptions"},standalone:!1,features:[n.GFd],attrs:wLe,decls:5,vars:5,consts:[[4,"ngIf"],["ngFor","",3,"ngForOf","ngForTrackBy"],["role","row",4,"ngIf"],["role","row"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,o){1&i&&n.DNE(0,OLe,2,2,"ng-container",0)(1,ULe,2,2,"ng-container",0)(2,qLe,2,2,"ng-container",0)(3,KLe,2,5,"ng-container",0)(4,JLe,2,5,"ng-container",0),2&i&&(n.Y8G("ngIf",!o.dt.expandedRowTemplate&&!o.dt._expandedRowTemplate),n.R7$(),n.Y8G("ngIf",(o.dt.expandedRowTemplate||o.dt._expandedRowTemplate)&&!(o.frozen&&(o.dt.frozenExpandedRowTemplate||o.dt._frozenExpandedRowTemplate))),n.R7$(),n.Y8G("ngIf",(o.dt.frozenExpandedRowTemplate||o.dt._frozenExpandedRowTemplate)&&o.frozen),n.R7$(),n.Y8G("ngIf",o.dt.loading),n.R7$(),n.Y8G("ngIf",o.dt.isEmpty()&&!o.dt.loading))},dependencies:[oo,fi,uo],encapsulation:2})}return t})(),c7=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({providers:[LY],imports:[gn,KOe,Ix,Zp,Ra,mf,bFe,r7,Xw,wk,Bee,cie,uie,Ax,hie,mie,fie,Dx,die,pie,k8,gie,e7,Di,Bee]})}return t})(),v4e=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=n.$C({type:t})}static{this.\u0275inj=n.G2t({providers:[n$(i$())],imports:[gn,th,Ra,xv,Zp,Iv,c7,mf]})}}return t})(),_4e=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=n.$C({type:t})}static{this.\u0275inj=n.G2t({imports:[th,gn,Ra,Zp]})}}return t})();const y4e=({dt:t})=>`\n.p-toggleswitch {\n    display: inline-block;\n    width: ${t("toggleswitch.width")};\n    height: ${t("toggleswitch.height")};\n\n}\n\n.p-toggleswitch-input {\n    cursor: pointer;\n    appearance: none;\n    position: absolute;\n    top: 0;\n    left: 0;\n    width: 100%;\n    height: 100%;\n    padding: 0;\n    margin: 0;\n    opacity: 0;\n    z-index: 1;\n    outline: 0 none;\n    border-radius: ${t("toggleswitch.border.radius")};\n}\n\n.p-toggleswitch-slider {\n    display: inline-block;\n    cursor: pointer;\n    width: 100%;\n    height: 100%;\n    border-width: ${t("toggleswitch.border.width")};\n    border-style: solid;\n    border-color: ${t("toggleswitch.border.color")};\n    background: ${t("toggleswitch.background")};\n    transition: background ${t("toggleswitch.transition.duration")}, color ${t("toggleswitch.transition.duration")}, border-color ${t("toggleswitch.transition.duration")}, outline-color ${t("toggleswitch.transition.duration")}, box-shadow ${t("toggleswitch.transition.duration")};\n    border-radius: ${t("toggleswitch.border.radius")};\n    outline-color: transparent;\n    box-shadow: ${t("toggleswitch.shadow")};\n}\n\n.p-toggleswitch-slider:before {\n    position: absolute;\n    content: "";\n    top: 50%;\n    background: ${t("toggleswitch.handle.background")};\n    width: ${t("toggleswitch.handle.size")};\n    height: ${t("toggleswitch.handle.size")};\n    left: ${t("toggleswitch.gap")};\n    margin-top: calc(-1 * calc(${t("toggleswitch.handle.size")} / 2));\n    border-radius: ${t("toggleswitch.handle.border.radius")};\n    transition: background ${t("toggleswitch.transition.duration")}, left ${t("toggleswitch.slide.duration")};\n}\n\n.p-toggleswitch.p-toggleswitch-checked .p-toggleswitch-slider {\n    background: ${t("toggleswitch.checked.background")};\n    border-color: ${t("toggleswitch.checked.border.color")};\n}\n\n.p-toggleswitch.p-toggleswitch-checked .p-toggleswitch-slider:before {\n    background: ${t("toggleswitch.handle.checked.background")};\n    left: calc(${t("toggleswitch.width")} - calc(${t("toggleswitch.handle.size")} + ${t("toggleswitch.gap")}));\n}\n\n.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover) .p-toggleswitch-slider {\n    background: ${t("toggleswitch.hover.background")};\n    border-color: ${t("toggleswitch.hover.border.color")};\n}\n\n.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover) .p-toggleswitch-slider:before {\n    background: ${t("toggleswitch.handle.hover.background")};\n}\n\n.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover).p-toggleswitch-checked .p-toggleswitch-slider {\n    background: ${t("toggleswitch.checked.hover.background")};\n    border-color: ${t("toggleswitch.checked.hover.border.color")};\n}\n\n.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover).p-toggleswitch-checked .p-toggleswitch-slider:before {\n    background: ${t("toggleswitch.handle.checked.hover.background")};\n}\n\n.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:focus-visible) .p-toggleswitch-slider {\n    box-shadow: ${t("toggleswitch.focus.ring.shadow")};\n    outline: ${t("toggleswitch.focus.ring.width")} ${t("toggleswitch.focus.ring.style")} ${t("toggleswitch.focus.ring.color")};\n    outline-offset: ${t("toggleswitch.focus.ring.offset")};\n}\n\n.p-toggleswitch.p-invalid > .p-toggleswitch-slider {\n    border-color: ${t("toggleswitch.invalid.border.color")};\n}\n\n.p-toggleswitch.p-disabled {\n    opacity: 1;\n}\n\n.p-toggleswitch.p-disabled .p-toggleswitch-slider {\n    background: ${t("toggleswitch.disabled.background")};\n}\n\n.p-toggleswitch.p-disabled .p-toggleswitch-slider:before {\n    background: ${t("toggleswitch.handle.disabled.background")};\n}\n`,b4e={root:{position:"relative"}},C4e={root:({instance:t})=>({"p-toggleswitch p-component":!0,"p-toggleswitch-checked":t.checked(),"p-disabled":t.disabled,"p-invalid":t.invalid}),input:"p-toggleswitch-input",slider:"p-toggleswitch-slider"};let Iie=(()=>{class t extends gs{name="toggleswitch";theme=y4e;classes=C4e;inlineStyles=b4e;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const w4e=["input"],T4e={provide:tl,useExisting:(0,n.Rfq)(()=>u7),multi:!0};let u7=(()=>{class t extends jo{style;styleClass;tabindex;inputId;name;disabled;readonly;trueValue=!0;falseValue=!1;ariaLabel;ariaLabelledBy;autofocus;onChange=new n.bkB;input;modelValue=!1;focused=!1;onModelChange=()=>{};onModelTouched=()=>{};_componentStyle=(0,n.WQX)(Iie);onClick(e){!this.disabled&&!this.readonly&&(this.modelValue=this.checked()?this.falseValue:this.trueValue,this.onModelChange(this.modelValue),this.onChange.emit({originalEvent:e,checked:this.modelValue}),this.input.nativeElement.focus())}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}writeValue(e){this.modelValue=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}checked(){return this.modelValue===this.trueValue}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["p-inputSwitch"],["p-inputswitch"]],viewQuery:function(i,o){if(1&i&&n.GBs(w4e,5),2&i){let s;n.mGM(s=n.lsd())&&(o.input=s.first)}},inputs:{style:"style",styleClass:"styleClass",tabindex:[2,"tabindex","tabindex",n.Udg],inputId:"inputId",name:"name",disabled:[2,"disabled","disabled",n.L39],readonly:[2,"readonly","readonly",n.L39],trueValue:"trueValue",falseValue:"falseValue",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",autofocus:[2,"autofocus","autofocus",n.L39]},outputs:{onChange:"onChange"},features:[n.Jv_([T4e,Iie]),n.GFd,n.Vt3],decls:5,vars:22,consts:[["input",""],[3,"click","ngClass","ngStyle"],[1,"p-hidden-accessible"],["type","checkbox","role","switch",3,"focus","blur","ngClass","checked","disabled","pAutoFocus"],[3,"ngClass"]],template:function(i,o){if(1&i){const s=n.RV6();n.j41(0,"div",1),n.bIt("click",function(l){return n.eBV(s),n.Njj(o.onClick(l))}),n.j41(1,"div",2)(2,"input",3,0),n.bIt("focus",function(){return n.eBV(s),n.Njj(o.onFocus())})("blur",function(){return n.eBV(s),n.Njj(o.onBlur())}),n.k0s()(),n.nrm(4,"span",4),n.k0s()}2&i&&(n.HbH(o.styleClass),n.Y8G("ngClass",o.cx("root"))("ngStyle",o.sx("root"))("ngStyle",o.style),n.BMQ("data-pc-name","inputswitch")("data-pc-section","root"),n.R7$(),n.BMQ("data-pc-section","hiddenInputWrapper")("data-p-hidden-accessible",!0),n.R7$(),n.Y8G("ngClass",o.cx("input"))("checked",o.checked())("disabled",o.disabled)("pAutoFocus",o.autofocus),n.BMQ("id",o.inputId)("aria-checked",o.checked())("aria-labelledby",o.ariaLabelledBy)("aria-label",o.ariaLabel)("name",o.name)("tabindex",o.tabindex)("data-pc-section","hiddenInput"),n.R7$(2),n.Y8G("ngClass",o.cx("slider")),n.BMQ("data-pc-section","slider"))},dependencies:[gn,bi,Jr,O$,Jf,Di],encapsulation:2,changeDetection:0})}return t})(),Aie=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({imports:[u7,Di,Di]})}return t})();var Mie=function(){function t(){}return t.prototype.setBeans=function(r){this.beans=r},t.prototype.getFileName=function(r){var e=this.getDefaultFileExtension();return(null==r||!r.length)&&(r=this.getDefaultFileName()),-1===r.indexOf(".")?r+"."+e:r},t.prototype.getData=function(r){var e=this.createSerializingSession(r);return this.beans.gridSerializer.serialize(e,r)},t}(),Rie=function(){function t(r){this.groupColumns=[];var i=r.valueService,o=r.gridOptionsWrapper,s=r.processCellCallback,a=r.processHeaderCallback,l=r.processGroupHeaderCallback,c=r.processRowGroupCallback;this.columnModel=r.columnModel,this.valueService=i,this.gridOptionsWrapper=o,this.processCellCallback=s,this.processHeaderCallback=a,this.processGroupHeaderCallback=l,this.processRowGroupCallback=c}return t.prototype.prepare=function(r){this.groupColumns=r.filter(function(e){return!!e.getColDef().showRowGroup})},t.prototype.extractHeaderValue=function(r){return this.getHeaderName(this.processHeaderCallback,r)??""},t.prototype.extractRowCellValue=function(r,e,i,o,s){var c,a=this.gridOptionsWrapper.isGroupMultiAutoColumn()?s.rowGroupIndex:0;return c=s&&s.group&&(e===a&&-1!==this.groupColumns.indexOf(r)||0===e&&this.gridOptionsWrapper.isGroupUseEntireRow(this.columnModel.isPivotMode()))?this.createValueForGroupNode(s):this.valueService.getValue(r,s),this.processCell(i,s,r,c,this.processCellCallback,o)??""},t.prototype.getHeaderName=function(r,e){return r?r({column:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}):this.columnModel.getDisplayNameForColumn(e,"csv",!0)},t.prototype.createValueForGroupNode=function(r){if(this.processRowGroupCallback)return this.processRowGroupCallback({node:r,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()});var e=[r.key];if(!this.gridOptionsWrapper.isGroupMultiAutoColumn())for(;r.parent;)e.push((r=r.parent).key);return e.reverse().join(" -> ")},t.prototype.processCell=function(r,e,i,o,s,a){return s?s({accumulatedRowIndex:r,column:i,node:e,value:o,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),type:a}):o??""},t}(),GY=function(){function t(){}return t.download=function(r,e){var i=document.defaultView||window;if(i){var o=document.createElement("a"),s=i.URL.createObjectURL(e);o.setAttribute("href",s),o.setAttribute("download",r),o.style.display="none",document.body.appendChild(o),o.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:i})),document.body.removeChild(o),i.setTimeout(function(){i.URL.revokeObjectURL(s)},0)}else console.warn("AG Grid: There is no `window` associated with the current `document`")},t}(),S4e=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),x4e=function(t){function r(e){var i=t.call(this,e)||this;i.isFirstLine=!0,i.result="";var s=e.columnSeparator;return i.suppressQuotes=e.suppressQuotes,i.columnSeparator=s,i}return S4e(r,t),r.prototype.addCustomContent=function(e){var i=this;e&&("string"==typeof e?(/^\s*\n/.test(e)||this.beginNewLine(),e=e.replace(/\r?\n/g,"\r\n"),this.result+=e):e.forEach(function(o){i.beginNewLine(),o.forEach(function(s,a){0!==a&&(i.result+=i.columnSeparator),i.result+=i.putInQuotes(s.data.value||""),s.mergeAcross&&i.appendEmptyCells(s.mergeAcross)})}))},r.prototype.onNewHeaderGroupingRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}},r.prototype.onNewHeaderGroupingRowColumn=function(e,i,o){0!=i&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(e),this.appendEmptyCells(o)},r.prototype.appendEmptyCells=function(e){for(var i=1;i<=e;i++)this.result+=this.columnSeparator+this.putInQuotes("")},r.prototype.onNewHeaderRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}},r.prototype.onNewHeaderRowColumn=function(e,i){0!=i&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(e))},r.prototype.onNewBodyRow=function(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}},r.prototype.onNewBodyRowColumn=function(e,i,o){0!=i&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractRowCellValue(e,i,i,Nn.EXPORT_TYPE_CSV,o))},r.prototype.putInQuotes=function(e){return this.suppressQuotes?e:null==e?'""':("string"==typeof e?i=e:"function"==typeof e.toString?i=e.toString():(console.warn("AG Grid: unknown value type during csv conversion"),i=""),'"'+i.replace(/"/g,'""')+'"');var i},r.prototype.parse=function(){return this.result},r.prototype.beginNewLine=function(){this.isFirstLine||(this.result+="\r\n"),this.isFirstLine=!1},r}(Rie),E4e=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Tk=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},Fie=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return E4e(r,t),r.prototype.postConstruct=function(){this.setBeans({gridSerializer:this.gridSerializer,gridOptionsWrapper:this.gridOptionsWrapper})},r.prototype.getMergedParams=function(e){var i=this.gridOptionsWrapper.getDefaultExportParams("csv");return Object.assign({},i,e)},r.prototype.export=function(e){if(this.isExportSuppressed())return console.warn("AG Grid: Export cancelled. Export is not allowed as per your configuration."),"";var i=this.getMergedParams(e),o=this.getData(i),s=new Blob(["\ufeff",o],{type:"text/plain"});return GY.download(this.getFileName(i.fileName),s),o},r.prototype.exportDataAsCsv=function(e){return this.export(e)},r.prototype.getDataAsCsv=function(e){var i=this.getMergedParams(e);return this.getData(i)},r.prototype.getDefaultFileName=function(){return"export.csv"},r.prototype.getDefaultFileExtension=function(){return"csv"},r.prototype.createSerializingSession=function(e){var i=this;return new x4e({columnModel:i.columnModel,valueService:i.valueService,gridOptionsWrapper:i.gridOptionsWrapper,processCellCallback:e.processCellCallback||void 0,processHeaderCallback:e.processHeaderCallback||void 0,processGroupHeaderCallback:e.processGroupHeaderCallback||void 0,processRowGroupCallback:e.processRowGroupCallback||void 0,suppressQuotes:e.suppressQuotes||!1,columnSeparator:e.columnSeparator||","})},r.prototype.isExportSuppressed=function(){return this.gridOptionsWrapper.isSuppressCsvExport()},Tk([Xe("columnModel")],r.prototype,"columnModel",void 0),Tk([Xe("valueService")],r.prototype,"valueService",void 0),Tk([Xe("gridSerializer")],r.prototype,"gridSerializer",void 0),Tk([Xe("gridOptionsWrapper")],r.prototype,"gridOptionsWrapper",void 0),Tk([qi],r.prototype,"postConstruct",null),Tk([Kr("csvCreator")],r)}(Mie),D4e=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Hx=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},Sk=function(t){return t[t.HEADER_GROUPING=0]="HEADER_GROUPING",t[t.HEADER=1]="HEADER",t[t.BODY=2]="BODY",t}(Sk||{}),Pie=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return D4e(r,t),r.prototype.serialize=function(e,i){void 0===i&&(i={});var o=this.getColumnsToExport(i.allColumns,i.columnKeys);return ln.compose(this.prepareSession(o),this.prependContent(i),this.exportColumnGroups(i,o),this.exportHeaders(i,o),this.processPinnedTopRows(i,o),this.processRows(i,o),this.processPinnedBottomRows(i,o),this.appendContent(i))(e).parse()},r.prototype.processRow=function(e,i,o,s){var a=this,l=i.shouldRowBeSkipped||function(){return!1},c=this.gridOptionsWrapper,d=c.getContext(),f=c.getApi(),v=c.getColumnApi(),w=c.isGroupRemoveSingleChildren(),x=c.isGroupRemoveLowestSingleChildren(),I=i.rowNodes||i.onlySelected,M=c.isGroupHideOpenParents()&&!I,F=this.columnModel.isPivotMode()?s.leafGroup:!s.group,we=1===s.allChildrenCount&&(w||x&&s.leafGroup);(i.skipGroups||i.skipRowGroups)&&i.skipGroups&&ln.doOnce(function(){return console.warn("AG Grid: Since v25.2 `skipGroups` has been renamed to `skipRowGroups`.")},"gridSerializer-skipGroups");var je={rowIndex:s.rowIndex,rowPinned:s.rowPinned};if(!(!F&&(i.skipRowGroups||we||M)||i.onlySelected&&!s.isSelected()||i.rowNodes&&!i.rowNodes.some(function(bt){return a.rowPositionUtils.sameRow(bt,je)})||i.skipPinnedTop&&"top"===s.rowPinned||i.skipPinnedBottom&&"bottom"===s.rowPinned)&&(-1!==s.level||s.leafGroup)&&!l({node:s,api:f,columnApi:v,context:d})){var rt=e.onNewBodyRow();if(o.forEach(function(bt,Wt){rt.onColumn(bt,Wt,s)}),i.getCustomContentBelowRow){var lt=i.getCustomContentBelowRow({node:s,api:f,columnApi:v,context:d});lt&&e.addCustomContent(lt)}}},r.prototype.appendContent=function(e){return function(i){var o=e.customFooter||e.appendContent;return o&&(e.customFooter&&ln.doOnce(function(){return console.warn("AG Grid: Since version 25.2.0 the `customFooter` param has been deprecated. Use `appendContent` instead.")},"gridSerializer-customFooter"),i.addCustomContent(o)),i}},r.prototype.prependContent=function(e){return function(i){var o=e.customHeader||e.prependContent;return o&&(e.customHeader&&ln.doOnce(function(){return console.warn("AG Grid: Since version 25.2.0 the `customHeader` param has been deprecated. Use `prependContent` instead.")},"gridSerializer-customHeader"),i.addCustomContent(o)),i}},r.prototype.prepareSession=function(e){return function(i){return i.prepare(e),i}},r.prototype.exportColumnGroups=function(e,i){var o=this;return function(s){if(e.skipColumnGroupHeaders)e.columnGroups&&ln.doOnce(function(){return console.warn("AG Grid: Since v25.2 the `columnGroups` param has deprecated, and groups are exported by default.")},"gridSerializer-columnGroups");else{var a=new Fg,l=o.displayedGroupCreator.createDisplayedGroups(i,o.columnModel.getGridBalancedTree(),a,null);o.recursivelyAddHeaderGroups(l,s,e.processGroupHeaderCallback)}return s}},r.prototype.exportHeaders=function(e,i){return function(o){if(e.skipHeader||e.skipColumnHeaders)e.skipHeader&&ln.doOnce(function(){return console.warn("AG Grid: Since v25.2 the `skipHeader` param has been renamed to `skipColumnHeaders`.")},"gridSerializer-skipHeader");else{var s=o.onNewHeaderRow();i.forEach(function(a,l){s.onColumn(a,l,void 0)})}return o}},r.prototype.processPinnedTopRows=function(e,i){var o=this;return function(s){var a=o.processRow.bind(o,s,e,i);return o.pinnedRowModel.forEachPinnedTopRow(a),s}},r.prototype.processRows=function(e,i){var o=this;return function(s){var a=o.rowModel,l=a.getType(),c=l===Nn.ROW_MODEL_TYPE_CLIENT_SIDE,d=l===Nn.ROW_MODEL_TYPE_SERVER_SIDE,f=!c&&e.onlySelected,v=o.processRow.bind(o,s,e,i);return o.columnModel.isPivotMode()?c?a.forEachPivotNode(v):a.forEachNode(v):e.onlySelectedAllPages||f?o.selectionService.getSelectedNodes().forEach(v):c||d?a.forEachNodeAfterFilterAndSort(v):a.forEachNode(v),s}},r.prototype.processPinnedBottomRows=function(e,i){var o=this;return function(s){var a=o.processRow.bind(o,s,e,i);return o.pinnedRowModel.forEachPinnedBottomRow(a),s}},r.prototype.getColumnsToExport=function(e,i){void 0===e&&(e=!1);var o=this.columnModel.isPivotMode();return i&&i.length?this.columnModel.getGridColumns(i):e&&!o?(this.gridOptionsWrapper.isTreeData()?this.columnModel.getGridColumns([Nn.GROUP_AUTO_COLUMN_ID]):[]).concat(this.columnModel.getAllPrimaryColumns()||[]):this.columnModel.getAllDisplayedColumns()},r.prototype.recursivelyAddHeaderGroups=function(e,i,o){var s=[];e.forEach(function(a){a.getChildren&&a.getChildren().forEach(function(c){return s.push(c)})}),e.length>0&&e[0]instanceof zr&&this.doAddHeaderHeader(i,e,o),s&&s.length>0&&this.recursivelyAddHeaderGroups(s,i,o)},r.prototype.doAddHeaderHeader=function(e,i,o){var s=this,a=e.onNewHeaderGroupingRow(),l=0;i.forEach(function(c){var f,d=c;f=o?o({columnGroup:d,api:s.gridOptionsWrapper.getApi(),columnApi:s.gridOptionsWrapper.getColumnApi(),context:s.gridOptionsWrapper.getContext()}):s.columnModel.getDisplayNameForColumnGroup(d,"header");var v=d.getLeafColumns().reduce(function(w,x,I,M){var F=ln.last(w);return"open"===x.getColumnGroupShow()?(!F||null!=F[1])&&w.push(F=[I]):F&&null==F[1]&&(F[1]=I-1),I===M.length-1&&F&&null==F[1]&&(F[1]=I),w},[]);a.onColumn(f||"",l++,d.getLeafColumns().length-1,v)})},Hx([Xe("displayedGroupCreator")],r.prototype,"displayedGroupCreator",void 0),Hx([Xe("columnModel")],r.prototype,"columnModel",void 0),Hx([Xe("rowModel")],r.prototype,"rowModel",void 0),Hx([Xe("pinnedRowModel")],r.prototype,"pinnedRowModel",void 0),Hx([Xe("selectionService")],r.prototype,"selectionService",void 0),Hx([Xe("rowPositionUtils")],r.prototype,"rowPositionUtils",void 0),Hx([Kr("gridSerializer")],r)}(Zi),BY={moduleName:mo.CsvExportModule,beans:[Fie,Pie]},VY=function(){function t(){}return t.createHeader=function(r){void 0===r&&(r={});var o=["version"];return r.version||(r.version="1.0"),r.encoding&&o.push("encoding"),r.standalone&&o.push("standalone"),"<?xml "+o.map(function(a){return a+'="'+r[a]+'"'}).join(" ")+" ?>"},t.createXml=function(r,e){var i=this,o="";r.properties&&(r.properties.prefixedAttributes&&r.properties.prefixedAttributes.forEach(function(a){Object.keys(a.map).forEach(function(l){o+=i.returnAttributeIfPopulated(a.prefix+l,a.map[l],e)})}),r.properties.rawMap&&Object.keys(r.properties.rawMap).forEach(function(a){o+=i.returnAttributeIfPopulated(a,r.properties.rawMap[a],e)}));var s="<"+r.name+o;return r.children||null!=r.textNode?null!=r.textNode?s+">"+r.textNode+"</"+r.name+">\r\n":(s+=">\r\n",r.children&&r.children.forEach(function(a){s+=i.createXml(a,e)}),s+"</"+r.name+">\r\n"):s+"/>\r\n"},t.returnAttributeIfPopulated=function(r,e,i){if(!e&&""!==e&&0!==e)return"";var o=e;return"boolean"==typeof e&&i&&(o=i(e))," "+r+'="'+o+'"'},t}(),I4e=new Uint32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]),vf=function(){function t(){}return t.addFolders=function(r){r.forEach(this.addFolder.bind(this))},t.addFolder=function(r){this.folders.push({path:r,created:new Date,isBase64:!1})},t.addFile=function(r,e,i){void 0===i&&(i=!1),this.files.push({path:r,created:new Date,content:e,isBase64:i})},t.getContent=function(r){void 0===r&&(r="application/zip");var e=this.buildFileStream(),i=this.buildUint8Array(e);return this.clearStream(),new Blob([i],{type:r})},t.clearStream=function(){this.folders=[],this.files=[]},t.buildFileStream=function(r){var e,i;void 0===r&&(r="");var o=this.folders.concat(this.files),s=o.length,a="",l=0,c=0;try{for(var d=function(t){var r="function"==typeof Symbol&&Symbol.iterator,e=r&&t[r],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}(o),f=d.next();!f.done;f=d.next()){var w=this.getHeader(f.value,l),x=w.fileHeader,I=w.folderHeader,M=w.content;l+=x.length+M.length,c+=I.length,r+=x+M,a+=I}}catch(re){e={error:re}}finally{try{f&&!f.done&&(i=d.return)&&i.call(d)}finally{if(e)throw e.error}}return r+a+this.buildFolderEnd(s,c,l)},t.getHeader=function(r,e){var i=r.content,o=r.path,s=r.created,a=r.isBase64,c=ln.decToHex,d=(0,ln.utf8_encode)(o),f=d!==o,v=this.convertTime(s),w=this.convertDate(s),x="";if(f){var I=c(1,1)+c(this.getFromCrc32Table(d),4)+d;x="up"+c(I.length,2)+I}var M=i?this.getConvertedContent(i,a):{size:0,content:""},F=M.size,re=M.content,pe="\n\0"+(f?"\0\b":"\0\0")+"\0\0"+c(v,2)+c(w,2)+c(F?this.getFromCrc32Table(re):0,4)+c(F,4)+c(F,4)+c(d.length,2)+c(x.length,2);return{fileHeader:"PK\x03\x04"+pe+d+x,folderHeader:"PK\x01\x02\x14\0"+pe+"\0\0\0\0\0\0"+(i?"\0\0\0\0":"\x10\0\0\0")+c(e,4)+d+x,content:re||""}},t.getConvertedContent=function(r,e){return void 0===e&&(e=!1),e&&(r=r.split(";base64,")[1]),{size:(r=e?atob(r):r).length,content:r}},t.buildFolderEnd=function(r,e,i){var o=ln.decToHex;return"PK\x05\x06\0\0\0\0"+o(r,2)+o(r,2)+o(e,4)+o(i,4)+"\0\0"},t.buildUint8Array=function(r){for(var e=new Uint8Array(r.length),i=0;i<e.length;i++)e[i]=r.charCodeAt(i);return e},t.getFromCrc32Table=function(r){if(!r.length)return 0;for(var e=r.length,i=new Uint8Array(e),o=0;o<e;o++)i[o]=r.charCodeAt(o);var s=-1;for(o=0;o<e;o++)s=s>>>8^I4e[255&(s^i[o])];return~s},t.convertTime=function(r){var e=r.getHours();return e<<=6,e|=r.getMinutes(),(e<<=5)|r.getSeconds()/2},t.convertDate=function(r){var e=r.getFullYear()-1980;return e<<=4,e|=r.getMonth()+1,(e<<=5)|r.getDate()},t.folders=[],t.files=[],t}(),A4e=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Fh=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},M4e=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var o,a,i=e.call(t),s=[];try{for(;(void 0===r||r-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return s},O4e=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.navigatorApiFailed=!1,e}return A4e(r,t),r.prototype.init=function(){var e=this;this.logger=this.loggerFactory.create("ClipboardService"),this.rowModel.getType()===Nn.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel),this.ctrlsService.whenReady(function(i){e.gridCtrl=i.gridCtrl})},r.prototype.pasteFromClipboard=function(){var e=this;this.logger.log("pasteFromClipboard"),!this.gridOptionsWrapper.isSuppressClipboardApi()&&!this.navigatorApiFailed&&navigator.clipboard&&navigator.clipboard.readText?navigator.clipboard.readText().then(this.processClipboardData.bind(this)).catch(function(o){ln.doOnce(function(){console.warn(o),console.warn("AG Grid: Unable to use the Clipboard API (navigator.clipboard.readText()). The reason why it could not be used has been logged in the previous line. For this reason the grid has defaulted to using a workaround which doesn't perform as well. Either fix why Clipboard API is blocked, OR stop this message from appearing by setting grid property suppressClipboardApi=true (which will default the grid to using the workaround rather than the API")},"clipboardApiError"),e.navigatorApiFailed=!0,e.pasteFromClipboardLegacy()}):this.pasteFromClipboardLegacy()},r.prototype.pasteFromClipboardLegacy=function(){var e=this;this.executeOnTempElement(function(i){return i.focus({preventScroll:!0})},function(i){e.processClipboardData(i.value)})},r.prototype.processClipboardData=function(e){var i=this;if(null!=e){var o=ln.stringToArray(e,this.gridOptionsWrapper.getClipboardDelimiter()),s=this.gridOptionsWrapper.getProcessDataFromClipboardFunc();s&&(o=s({data:o})),null!=o&&(this.gridOptionsWrapper.isSuppressLastEmptyLineOnPaste()&&this.removeLastLineIfBlank(o),this.doPasteOperation(function(l,c,d,f){i.rangeService&&i.rangeService.isMoreThanOneCell()&&!i.hasOnlyOneValueToPaste(o)?i.pasteIntoActiveRange(o,l,c,f):i.pasteStartingFromFocusedCell(o,l,c,d,f)}))}},r.prototype.doPasteOperation=function(e){var a,i=this.gridOptionsWrapper.getApi(),o=this.gridOptionsWrapper.getColumnApi(),s="clipboard";if(this.eventService.dispatchEvent({type:Et.EVENT_PASTE_START,api:i,columnApi:o,source:s}),this.clientSideRowModel){var l=this.gridOptionsWrapper.isAggregateOnlyChangedColumns();a=new SS(l,this.clientSideRowModel.getRootNode())}var c={},d=[],f=this.focusService.getFocusedCell();e(c,d,f,a),a&&this.clientSideRowModel.doAggregate(a),this.rowRenderer.refreshCells(),this.dispatchFlashCells(c),this.fireRowChanged(d),f&&this.focusService.setFocusedCell({rowIndex:f.rowIndex,column:f.column,rowPinned:f.rowPinned,forceBrowserFocus:!0}),this.eventService.dispatchEvent({type:Et.EVENT_PASTE_END,api:i,columnApi:o,source:s})},r.prototype.pasteIntoActiveRange=function(e,i,o,s){var a=this,l=this.getRangeSize()%e.length!=0,c=0,d=0;this.iterateActiveRanges(!1,function(v,w,x,I){if(I-c>=e.length){if(l)return;c+=d,d=0}var F=e[I-c];o.push(w);var re=a.gridOptionsWrapper.getProcessCellFromClipboardFunc();x.forEach(function(pe,we){if(pe.isCellEditable(w)&&!pe.isSuppressPaste(w)){we>=F.length&&(we%=F.length);var je=a.processCell(w,pe,F[we],Nn.EXPORT_TYPE_DRAG_COPY,re);w.setDataValue(pe,je,Nn.SOURCE_PASTE),s&&s.addParentNode(w.parent,[pe]);var tt=a.cellPositionUtils.createIdFromValues(v.rowIndex,pe,v.rowPinned);i[tt]=!0}}),d++})},r.prototype.pasteStartingFromFocusedCell=function(e,i,o,s,a){if(s){var l={rowIndex:s.rowIndex,rowPinned:s.rowPinned},c=this.columnModel.getDisplayedColumnsStartingAt(s.column);this.isPasteSingleValueIntoRange(e)?this.pasteSingleValueIntoRange(e,o,i,a):this.pasteMultipleValues(e,l,o,c,i,Nn.EXPORT_TYPE_CLIPBOARD,a)}},r.prototype.isPasteSingleValueIntoRange=function(e){return this.hasOnlyOneValueToPaste(e)&&null!=this.rangeService&&!this.rangeService.isEmpty()},r.prototype.pasteSingleValueIntoRange=function(e,i,o,s){var a=this,l=e[0][0];this.iterateActiveRanges(!1,function(d,f,v){i.push(f),v.forEach(function(w){return a.updateCellValue(f,w,l,o,Nn.EXPORT_TYPE_CLIPBOARD,s)})})},r.prototype.hasOnlyOneValueToPaste=function(e){return 1===e.length&&1===e[0].length},r.prototype.copyRangeDown=function(){var e=this;if(this.rangeService&&!this.rangeService.isEmpty()){var i=[];this.doPasteOperation(function(s,a,l,c){var d=e.gridOptionsWrapper.getProcessCellForClipboardFunc(),f=e.gridOptionsWrapper.getProcessCellFromClipboardFunc();e.iterateActiveRanges(!0,function(w,x,I){i.length?(a.push(x),I.forEach(function(M,F){if(M.isCellEditable(x)&&!M.isSuppressPaste(x)){var re=e.processCell(x,M,i[F],Nn.EXPORT_TYPE_DRAG_COPY,f);x.setDataValue(M,re,Nn.SOURCE_PASTE),c&&c.addParentNode(x.parent,[M]);var pe=e.cellPositionUtils.createIdFromValues(w.rowIndex,M,w.rowPinned);s[pe]=!0}})):I.forEach(function(M){var F=e.processCell(x,M,e.valueService.getValue(M,x),Nn.EXPORT_TYPE_DRAG_COPY,d);i.push(F)})})})}},r.prototype.removeLastLineIfBlank=function(e){var i=ln.last(e);i&&1===i.length&&""===i[0]&&ln.removeFromArray(e,i)},r.prototype.fireRowChanged=function(e){var i=this;this.gridOptionsWrapper.isFullRowEdit()&&e.forEach(function(o){var s={type:Et.EVENT_ROW_VALUE_CHANGED,node:o,data:o.data,rowIndex:o.rowIndex,rowPinned:o.rowPinned,context:i.gridOptionsWrapper.getContext(),api:i.gridOptionsWrapper.getApi(),columnApi:i.gridOptionsWrapper.getColumnApi()};i.eventService.dispatchEvent(s)})},r.prototype.pasteMultipleValues=function(e,i,o,s,a,l,c){var d=this,f=i,v=null!=this.clientSideRowModel&&!this.gridOptionsWrapper.isTreeData();e.forEach(function(x){var I=function(){for(;;){if(!f)return null;var x=d.rowPositionUtils.getRowNode(f);if(f=d.cellNavigationService.getRowBelow({rowPinned:f.rowPinned,rowIndex:f.rowIndex}),null==x)return null;if(!(x.detail||x.footer||v&&x.group))return x}}();I&&(x.forEach(function(M,F){return d.updateCellValue(I,s[F],M,a,l,c)}),o.push(I))})},r.prototype.updateCellValue=function(e,i,o,s,a,l){if(e&&i&&i.isCellEditable(e)&&!i.isSuppressPaste(e)){var c=this.processCell(e,i,o,a,this.gridOptionsWrapper.getProcessCellFromClipboardFunc());e.setDataValue(i,c,Nn.SOURCE_PASTE),s[this.cellPositionUtils.createIdFromValues(e.rowIndex,i,e.rowPinned)]=!0,l&&l.addParentNode(e.parent,[i])}},r.prototype.copyToClipboard=function(e){void 0===e&&(e={});var i=e.includeHeaders,o=e.includeGroupHeaders;this.logger.log("copyToClipboard: includeHeaders = "+i),null==i&&(i=this.gridOptionsWrapper.isCopyHeadersToClipboard()),null==o&&(o=this.gridOptionsWrapper.isCopyGroupHeadersToClipboard());var s={includeHeaders:i,includeGroupHeaders:o},a=!this.gridOptionsWrapper.isSuppressCopyRowsToClipboard();!this.rangeService||this.rangeService.isEmpty()||this.shouldSkipSingleCellRange()?a&&!this.selectionService.isEmpty()?this.copySelectedRowsToClipboard(s):this.focusService.isAnyCellFocused()&&this.copyFocusedCellToClipboard(s):this.copySelectedRangeToClipboard(s)},r.prototype.shouldSkipSingleCellRange=function(){return this.gridOptionsWrapper.isSuppressCopySingleCellRanges()&&!this.rangeService.isMoreThanOneCell()},r.prototype.iterateActiveRanges=function(e,i,o){var s=this;if(this.rangeService&&!this.rangeService.isEmpty()){var a=this.rangeService.getCellRanges();e?this.iterateActiveRange(a[0],i,o,!0):a.forEach(function(l,c){return s.iterateActiveRange(l,i,o,c===a.length-1)})}},r.prototype.iterateActiveRange=function(e,i,o,s){if(this.rangeService){var a=this.rangeService.getRangeStartRow(e),l=this.rangeService.getRangeEndRow(e);o&&e.columns&&o(e.columns);for(var c=0,d=!1;!d&&null!=a;){var f=this.rowPositionUtils.getRowNode(a);d=this.rowPositionUtils.sameRow(a,l),i(a,f,e.columns,c++,d&&s),a=this.cellNavigationService.getRowBelow(a)}}},r.prototype.copySelectedRangeToClipboard=function(e){if(void 0===e&&(e={}),this.rangeService&&!this.rangeService.isEmpty()){var o=this.rangeService.areAllRangesAbleToMerge()?this.buildDataFromMergedRanges(e):this.buildDataFromRanges(e),a=o.cellsToFlash;this.copyDataToClipboard(o.data),this.dispatchFlashCells(a)}},r.prototype.buildDataFromMergedRanges=function(e){var i=this,o=new Set,s=this.rangeService.getCellRanges(),a=[],l={};s.forEach(function(v){v.columns.forEach(function(M){return o.add(M)});var w=i.getRangeRowPositionsAndCellsToFlash(v),I=w.cellsToFlash;a.push.apply(a,function(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(M4e(arguments[r]));return t}(w.rowPositions)),Object.assign(l,I)});var c=this.columnModel.getAllDisplayedColumns(),d=Array.from(o);return d.sort(function(v,w){return c.indexOf(v)-c.indexOf(w)}),{data:this.buildExportParams({columns:d,rowPositions:a,includeHeaders:e.includeHeaders,includeGroupHeaders:e.includeGroupHeaders}),cellsToFlash:l}},r.prototype.buildDataFromRanges=function(e){var i=this,o=this.rangeService.getCellRanges(),s=[],a={};return o.forEach(function(l){var c=i.getRangeRowPositionsAndCellsToFlash(l),d=c.rowPositions;Object.assign(a,c.cellsToFlash),s.push(i.buildExportParams({columns:l.columns,rowPositions:d,includeHeaders:e.includeHeaders,includeGroupHeaders:e.includeGroupHeaders}))}),{data:s.join("\n"),cellsToFlash:a}},r.prototype.getRangeRowPositionsAndCellsToFlash=function(e){for(var i=this,o=[],s={},a=this.rangeService.getRangeStartRow(e),l=this.rangeService.getRangeEndRow(e),c=a;c&&(o.push(c),e.columns.forEach(function(d){var f=i.cellPositionUtils.createIdFromValues(c.rowIndex,d,c.rowPinned);s[f]=!0}),!this.rowPositionUtils.sameRow(c,l));)c=this.cellNavigationService.getRowBelow(c);return{rowPositions:o,cellsToFlash:s}},r.prototype.copyFocusedCellToClipboard=function(e){var i;void 0===e&&(e={});var o=this.focusService.getFocusedCell();if(null!=o){var s=this.cellPositionUtils.createId(o),c=this.buildExportParams({columns:[o.column],rowPositions:[{rowPinned:o.rowPinned,rowIndex:o.rowIndex}],includeHeaders:e.includeHeaders,includeGroupHeaders:e.includeGroupHeaders});this.copyDataToClipboard(c),this.dispatchFlashCells(((i={})[s]=!0,i))}},r.prototype.copySelectedRowsToClipboard=function(e){void 0===e&&(e={});var a=this.buildExportParams({columns:e.columnKeys,includeHeaders:e.includeHeaders,includeGroupHeaders:e.includeGroupHeaders});this.copyDataToClipboard(a)},r.prototype.buildExportParams=function(e){var o=e.rowPositions,s=e.includeHeaders,l=e.includeGroupHeaders,d={columnKeys:e.columns,rowNodes:o,skipColumnHeaders:!(void 0!==s&&s),skipColumnGroupHeaders:!(void 0!==l&&l),suppressQuotes:!0,columnSeparator:this.gridOptionsWrapper.getClipboardDelimiter(),onlySelected:!o,processCellCallback:this.gridOptionsWrapper.getProcessCellForClipboardFunc(),processRowGroupCallback:function(f){return f.node.key},processHeaderCallback:this.gridOptionsWrapper.getProcessHeaderForClipboardFunc(),processGroupHeaderCallback:this.gridOptionsWrapper.getProcessGroupHeaderForClipboardFunc()};return this.csvCreator.getDataAsCsv(d)},r.prototype.dispatchFlashCells=function(e){var i=this;window.setTimeout(function(){i.eventService.dispatchEvent({type:Et.EVENT_FLASH_CELLS,cells:e,api:i.gridApi,columnApi:i.columnApi})},0)},r.prototype.processCell=function(e,i,o,s,a){return a?a({column:i,node:e,value:o,type:s}):o},r.prototype.copyDataToClipboard=function(e){var i=this,o=this.gridOptionsWrapper.getSendToClipboardFunc();o?o({data:e}):!this.gridOptionsWrapper.isSuppressClipboardApi()&&navigator.clipboard?navigator.clipboard.writeText(e).catch(function(a){ln.doOnce(function(){console.warn(a),console.warn("AG Grid: Unable to use the Clipboard API (navigator.clipboard.writeText()). The reason why it could not be used has been logged in the previous line. For this reason the grid has defaulted to using a workaround which doesn't perform as well. Either fix why Clipboard API is blocked, OR stop this message from appearing by setting grid property suppressClipboardApi=true (which will default the grid to using the workaround rather than the API.")},"clipboardApiError"),i.copyDataToClipboardLegacy(e)}):this.copyDataToClipboardLegacy(e)},r.prototype.copyDataToClipboardLegacy=function(e){var i=this;this.executeOnTempElement(function(o){var s=i.gridOptionsWrapper.getDocument(),a=s.activeElement;o.value=e||" ",o.select(),o.focus({preventScroll:!0}),s.execCommand("copy")||console.warn("AG Grid: Browser did not allow document.execCommand('copy'). Ensure api.copySelectedRowsToClipboard() is invoked via a user event, i.e. button click, otherwise the browser will prevent it for security reasons."),null!=a&&null!=a.focus&&a.focus({preventScroll:!0})})},r.prototype.executeOnTempElement=function(e,i){var o=this.gridOptionsWrapper.getDocument(),s=o.createElement("textarea");s.style.width="1px",s.style.height="1px",s.style.top=o.documentElement.scrollTop+"px",s.style.left=o.documentElement.scrollLeft+"px",s.style.position="absolute",s.style.opacity="0";var a=this.gridCtrl.getGui();a.appendChild(s);try{e(s)}catch{console.warn("AG Grid: Browser does not support document.execCommand('copy') for clipboard operations")}i?window.setTimeout(function(){i(s),a.removeChild(s)},100):a.removeChild(s)},r.prototype.getRangeSize=function(){var e=this.rangeService.getCellRanges(),i=0,o=0;return e.length>0&&(i=this.rangeService.getRangeStartRow(e[0]).rowIndex,o=this.rangeService.getRangeEndRow(e[0]).rowIndex),i-o+1},Fh([Xe("csvCreator")],r.prototype,"csvCreator",void 0),Fh([Xe("loggerFactory")],r.prototype,"loggerFactory",void 0),Fh([Xe("selectionService")],r.prototype,"selectionService",void 0),Fh([_a("rangeService")],r.prototype,"rangeService",void 0),Fh([Xe("rowModel")],r.prototype,"rowModel",void 0),Fh([Xe("ctrlsService")],r.prototype,"ctrlsService",void 0),Fh([Xe("valueService")],r.prototype,"valueService",void 0),Fh([Xe("focusService")],r.prototype,"focusService",void 0),Fh([Xe("rowRenderer")],r.prototype,"rowRenderer",void 0),Fh([Xe("columnModel")],r.prototype,"columnModel",void 0),Fh([Xe("cellNavigationService")],r.prototype,"cellNavigationService",void 0),Fh([Xe("columnApi")],r.prototype,"columnApi",void 0),Fh([Xe("gridApi")],r.prototype,"gridApi",void 0),Fh([Xe("cellPositionUtils")],r.prototype,"cellPositionUtils",void 0),Fh([Xe("rowPositionUtils")],r.prototype,"rowPositionUtils",void 0),Fh([qi],r.prototype,"init",null),Fh([Kr("clipboardService")],r)}(Zi),F4e={moduleName:mo.ClipboardModule,beans:[O4e],dependantModules:[rg,BY]},P4e=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),RO=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},Mb=function(t){return t[t.EXPANDED=0]="EXPANDED",t[t.COLLAPSED=1]="COLLAPSED",t[t.INDETERMINATE=2]="INDETERMINATE",t}(Mb||{}),L4e=function(t){function r(){return t.call(this,r.TEMPLATE)||this}return P4e(r,t),r.prototype.postConstruct=function(){var e=this;this.createExpandIcons(),this.addManagedListener(this.eExpand,"click",this.onExpandClicked.bind(this)),this.addManagedListener(this.eExpand,"keydown",function(o){o.key===gi.SPACE&&e.onExpandClicked()}),this.addManagedListener(this.eSelect.getInputElement(),"click",this.onSelectClicked.bind(this)),this.eFilterTextField.onValueChange(function(){return e.onFilterTextChanged()}),this.addManagedListener(this.eFilterTextField.getInputElement(),"keypress",this.onMiniFilterKeyPress.bind(this)),this.addManagedListener(this.eventService,Et.EVENT_NEW_COLUMNS_LOADED,this.showOrHideOptions.bind(this));var i=this.gridOptionsWrapper.getLocaleTextFunc();this.eSelect.setInputAriaLabel(i("ariaColumnSelectAll","Toggle Select All Columns")),this.eFilterTextField.setInputAriaLabel(i("ariaFilterColumnsInput","Filter Columns Input"))},r.prototype.init=function(e){this.params=e,this.columnModel.isReady()&&this.showOrHideOptions()},r.prototype.createExpandIcons=function(){this.eExpand.appendChild(this.eExpandChecked=ln.createIconNoSpan("columnSelectOpen",this.gridOptionsWrapper)),this.eExpand.appendChild(this.eExpandUnchecked=ln.createIconNoSpan("columnSelectClosed",this.gridOptionsWrapper)),this.eExpand.appendChild(this.eExpandIndeterminate=ln.createIconNoSpan("columnSelectIndeterminate",this.gridOptionsWrapper)),this.setExpandState(Mb.EXPANDED)},r.prototype.showOrHideOptions=function(){var e=!this.params.suppressColumnFilter,i=!this.params.suppressColumnSelectAll,o=!this.params.suppressColumnExpandAll,s=this.columnModel.isPrimaryColumnGroupsPresent(),a=this.gridOptionsWrapper.getLocaleTextFunc();this.eFilterTextField.setInputPlaceholder(a("searchOoo","Search...")),ln.setDisplayed(this.eFilterTextField.getGui(),e),ln.setDisplayed(this.eSelect.getGui(),i),ln.setDisplayed(this.eExpand,o&&s)},r.prototype.onFilterTextChanged=function(){var e=this;this.onFilterTextChangedDebounced||(this.onFilterTextChangedDebounced=ln.debounce(function(){var i=e.eFilterTextField.getValue();e.dispatchEvent({type:"filterChanged",filterText:i})},r.DEBOUNCE_DELAY)),this.onFilterTextChangedDebounced()},r.prototype.onMiniFilterKeyPress=function(e){var i=this;e.key===gi.ENTER&&setTimeout(function(){return i.onSelectClicked()},r.DEBOUNCE_DELAY)},r.prototype.onSelectClicked=function(){this.dispatchEvent({type:this.selectState?"unselectAll":"selectAll"})},r.prototype.onExpandClicked=function(){this.dispatchEvent({type:this.expandState===Mb.EXPANDED?"collapseAll":"expandAll"})},r.prototype.setExpandState=function(e){this.expandState=e,ln.setDisplayed(this.eExpandChecked,this.expandState===Mb.EXPANDED),ln.setDisplayed(this.eExpandUnchecked,this.expandState===Mb.COLLAPSED),ln.setDisplayed(this.eExpandIndeterminate,this.expandState===Mb.INDETERMINATE)},r.prototype.setSelectionState=function(e){this.selectState=e,this.eSelect.setValue(this.selectState)},r.DEBOUNCE_DELAY=300,r.TEMPLATE='<div class="ag-column-select-header" role="presentation" tabindex="-1">\n            <div ref="eExpand" class="ag-column-select-header-icon" tabindex="0"></div>\n            <ag-checkbox ref="eSelect" class="ag-column-select-header-checkbox"></ag-checkbox>\n            <ag-input-text-field class="ag-column-select-header-filter-wrapper" ref="eFilterTextField"></ag-input-text-field>\n        </div>',RO([Xe("columnModel")],r.prototype,"columnModel",void 0),RO([Ti("eExpand")],r.prototype,"eExpand",void 0),RO([Ti("eSelect")],r.prototype,"eSelect",void 0),RO([Ti("eFilterTextField")],r.prototype,"eFilterTextField",void 0),RO([qi],r.prototype,"postConstruct",null),r}(Do),OO=function(){function t(r,e,i,o,s){void 0===o&&(o=!1),this.eventService=new fd,this.displayName=r,this.dept=i,this.group=o,o?(this.columnGroup=e,this.expanded=s,this.children=[]):this.column=e}return t.prototype.isGroup=function(){return this.group},t.prototype.getDisplayName=function(){return this.displayName},t.prototype.getColumnGroup=function(){return this.columnGroup},t.prototype.getColumn=function(){return this.column},t.prototype.getDept=function(){return this.dept},t.prototype.isExpanded=function(){return!!this.expanded},t.prototype.getChildren=function(){return this.children},t.prototype.isPassesFilter=function(){return this.passesFilter},t.prototype.setExpanded=function(r){r!==this.expanded&&(this.expanded=r,this.eventService.dispatchEvent({type:t.EVENT_EXPANDED_CHANGED}))},t.prototype.setPassesFilter=function(r){this.passesFilter=r},t.prototype.addEventListener=function(r,e){this.eventService.addEventListener(r,e)},t.prototype.removeEventListener=function(r,e){this.eventService.removeEventListener(r,e)},t.EVENT_EXPANDED_CHANGED="expandedChanged",t}(),N4e=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),p7=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},G4e=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var o,a,i=e.call(t),s=[];try{for(;(void 0===r||r-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return s},Lie=function(t){function r(e,i,o){var s=t.call(this,'<div class="ag-menu"></div>')||this;return s.column=e,s.mouseEvent=i,s.parentEl=o,s.displayName=null,s}return N4e(r,t),r.prototype.postConstruct=function(){this.initializeProperties(this.column),this.buildMenuItemMap(),this.displayName=this.column instanceof ms?this.columnModel.getDisplayNameForColumn(this.column,"columnToolPanel"):this.columnModel.getDisplayNameForProvidedColumnGroup(null,this.column,"columnToolPanel"),this.isActive()&&(this.mouseEvent.preventDefault(),this.displayContextMenu())},r.prototype.initializeProperties=function(e){this.columns=e instanceof Zr?e.getLeafColumns():[e],this.allowGrouping=this.columns.some(function(i){return i.isPrimary()&&i.isAllowRowGroup()}),this.allowValues=this.columns.some(function(i){return i.isPrimary()&&i.isAllowValue()}),this.allowPivoting=this.columnModel.isPivotMode()&&this.columns.some(function(i){return i.isPrimary()&&i.isAllowPivot()})},r.prototype.buildMenuItemMap=function(){var e=this,i=this.gridOptionsWrapper.getLocaleTextFunc();this.menuItemMap=new Map,this.menuItemMap.set("rowGroup",{allowedFunction:function(o){return o.isPrimary()&&o.isAllowRowGroup()},activeFunction:function(o){return o.isRowGroupActive()},activateLabel:function(){return i("groupBy","Group by")+" "+e.displayName},deactivateLabel:function(){return i("ungroupBy","Un-Group by")+" "+e.displayName},activateFunction:function(){var o=e.columnModel.getRowGroupColumns();e.columnModel.setRowGroupColumns(e.addColumnsToList(o),"toolPanelUi")},deActivateFunction:function(){var o=e.columnModel.getRowGroupColumns();e.columnModel.setRowGroupColumns(e.removeColumnsFromList(o),"toolPanelUi")},addIcon:"menuAddRowGroup",removeIcon:"menuRemoveRowGroup"}),this.menuItemMap.set("value",{allowedFunction:function(o){return o.isPrimary()&&o.isAllowValue()},activeFunction:function(o){return o.isValueActive()},activateLabel:function(){return i("addToValues","Add "+e.displayName+" to values",[e.displayName])},deactivateLabel:function(){return i("removeFromValues","Remove "+e.displayName+" from values",[e.displayName])},activateFunction:function(){var o=e.columnModel.getValueColumns();e.columnModel.setValueColumns(e.addColumnsToList(o),"toolPanelUi")},deActivateFunction:function(){var o=e.columnModel.getValueColumns();e.columnModel.setValueColumns(e.removeColumnsFromList(o),"toolPanelUi")},addIcon:"valuePanel",removeIcon:"valuePanel"}),this.menuItemMap.set("pivot",{allowedFunction:function(o){return e.columnModel.isPivotMode()&&o.isPrimary()&&o.isAllowPivot()},activeFunction:function(o){return o.isPivotActive()},activateLabel:function(){return i("addToLabels","Add "+e.displayName+" to labels",[e.displayName])},deactivateLabel:function(){return i("removeFromLabels","Remove "+e.displayName+" from labels",[e.displayName])},activateFunction:function(){var o=e.columnModel.getPivotColumns();e.columnModel.setPivotColumns(e.addColumnsToList(o),"toolPanelUi")},deActivateFunction:function(){var o=e.columnModel.getPivotColumns();e.columnModel.setPivotColumns(e.removeColumnsFromList(o),"toolPanelUi")},addIcon:"pivotPanel",removeIcon:"pivotPanel"})},r.prototype.addColumnsToList=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(G4e(arguments[r]));return t}(e).concat(this.columns.filter(function(i){return-1===e.indexOf(i)}))},r.prototype.removeColumnsFromList=function(e){var i=this;return e.filter(function(o){return-1===i.columns.indexOf(o)})},r.prototype.displayContextMenu=function(){var e=this,i=this.getGui(),o=this.createBean(new HA),s=this.getMappedMenuItems(),a=function(){};i.appendChild(o.getGui()),o.addMenuItems(s),o.addManagedListener(o,sf.EVENT_MENU_ITEM_SELECTED,function(){e.parentEl.focus(),a()});var l=this.popupService.addPopup({modal:!0,eChild:i,closeOnEsc:!0,afterGuiAttached:function(){return e.focusService.focusInto(o.getGui())},ariaLabel:"Foo",closedCallback:function(c){c instanceof KeyboardEvent&&e.parentEl.focus(),e.destroyBean(o)}});l&&(a=l.hideFunc),this.popupService.positionPopupUnderMouseEvent({type:"columnContextMenu",mouseEvent:this.mouseEvent,ePopup:i})},r.prototype.isActive=function(){return this.allowGrouping||this.allowValues||this.allowPivoting},r.prototype.getMappedMenuItems=function(){var e,i,o=[],s=function(f){var v=a.columns.some(function(x){return f.allowedFunction(x)&&!f.activeFunction(x)}),w=a.columns.some(function(x){return f.allowedFunction(x)&&f.activeFunction(x)});v&&o.push({name:f.activateLabel(a.displayName),icon:ln.createIconNoSpan(f.addIcon,a.gridOptionsWrapper,null),action:function(){return f.activateFunction()}}),w&&o.push({name:f.deactivateLabel(a.displayName),icon:ln.createIconNoSpan(f.removeIcon,a.gridOptionsWrapper,null),action:function(){return f.deActivateFunction()}})},a=this;try{for(var l=function(t){var r="function"==typeof Symbol&&Symbol.iterator,e=r&&t[r],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}(this.menuItemMap.values()),c=l.next();!c.done;c=l.next())s(c.value)}catch(f){e={error:f}}finally{try{c&&!c.done&&(i=l.return)&&i.call(l)}finally{if(e)throw e.error}}return o},p7([Xe("columnModel")],r.prototype,"columnModel",void 0),p7([Xe("popupService")],r.prototype,"popupService",void 0),p7([Xe("focusService")],r.prototype,"focusService",void 0),p7([qi],r.prototype,"postConstruct",null),r}(Do),j4e=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Rb=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},Nie=function(t){function r(e,i,o,s){var a=t.call(this)||this;return a.modelItem=e,a.allowDragging=i,a.eventType=o,a.focusWrapper=s,a.processingColumnStateChange=!1,a.modelItem=e,a.columnGroup=e.getColumnGroup(),a.columnDept=e.getDept(),a.allowDragging=i,a}return j4e(r,t),r.prototype.init=function(){var e=this;this.setTemplate(r.TEMPLATE),this.eDragHandle=ln.createIconNoSpan("columnDrag",this.gridOptionsWrapper),this.eDragHandle.classList.add("ag-drag-handle","ag-column-select-column-group-drag-handle");var i=this.cbSelect.getGui(),o=this.cbSelect.getInputElement();i.insertAdjacentElement("afterend",this.eDragHandle),o.setAttribute("tabindex","-1"),this.displayName=this.columnModel.getDisplayNameForProvidedColumnGroup(null,this.columnGroup,this.eventType),ln.missing(this.displayName)&&(this.displayName=">>"),this.eLabel.innerHTML=this.displayName?this.displayName:"",this.setupExpandContract(),this.addCssClass("ag-column-select-indent-"+this.columnDept),this.addManagedListener(this.eventService,Et.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onColumnStateChanged.bind(this)),this.addManagedListener(this.eLabel,"click",this.onLabelClicked.bind(this)),this.addManagedListener(this.cbSelect,W0.EVENT_CHANGED,this.onCheckboxChanged.bind(this)),this.addManagedListener(this.modelItem,OO.EVENT_EXPANDED_CHANGED,this.onExpandChanged.bind(this)),this.addManagedListener(this.focusWrapper,"keydown",this.handleKeyDown.bind(this)),this.addManagedListener(this.focusWrapper,"contextmenu",this.onContextMenu.bind(this)),this.setOpenClosedIcons(),this.setupDragging(),this.onColumnStateChanged(),this.addVisibilityListenersToAllChildren(),this.refreshAriaExpanded(),this.refreshAriaLabel(),this.setupTooltip(),uS.getToolPanelClassesFromColDef(this.columnGroup.getColGroupDef(),this.gridOptionsWrapper,null,this.columnGroup).forEach(function(a){return e.addOrRemoveCssClass(a,!0)})},r.prototype.getColumns=function(){return this.columnGroup.getLeafColumns()},r.prototype.setupTooltip=function(){var e=this,i=this.columnGroup.getColGroupDef();if(i){var o=function(){e.setTooltip(i.headerTooltip)};o(),this.addManagedListener(this.eventService,Et.EVENT_NEW_COLUMNS_LOADED,o)}},r.prototype.getTooltipParams=function(){var e=t.prototype.getTooltipParams.call(this);return e.location="columnToolPanelColumnGroup",e},r.prototype.handleKeyDown=function(e){switch(e.key){case gi.LEFT:e.preventDefault(),this.modelItem.setExpanded(!1);break;case gi.RIGHT:e.preventDefault(),this.modelItem.setExpanded(!0);break;case gi.SPACE:e.preventDefault(),this.isSelectable()&&this.onSelectAllChanged(!this.isSelected())}},r.prototype.onContextMenu=function(e){var i=this,s=this.columnGroup;if(!this.gridOptionsWrapper.isFunctionsReadOnly()){var l=this.createBean(new Lie(s,e,this.focusWrapper));this.addDestroyFunc(function(){l.isAlive()&&i.destroyBean(l)})}},r.prototype.addVisibilityListenersToAllChildren=function(){var e=this;this.columnGroup.getLeafColumns().forEach(function(i){e.addManagedListener(i,ms.EVENT_VISIBLE_CHANGED,e.onColumnStateChanged.bind(e)),e.addManagedListener(i,ms.EVENT_VALUE_CHANGED,e.onColumnStateChanged.bind(e)),e.addManagedListener(i,ms.EVENT_PIVOT_CHANGED,e.onColumnStateChanged.bind(e)),e.addManagedListener(i,ms.EVENT_ROW_GROUP_CHANGED,e.onColumnStateChanged.bind(e))})},r.prototype.setupDragging=function(){var e=this;if(this.allowDragging){var i=!this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns(),o={type:Ed.ToolPanel,eElement:this.eDragHandle,dragItemName:this.displayName,defaultIconName:i?Zl.ICON_HIDE:Zl.ICON_NOT_ALLOWED,getDragItem:function(){return e.createDragItem()},onDragStarted:function(){e.eventService.dispatchEvent({type:Et.EVENT_COLUMN_PANEL_ITEM_DRAG_START,column:e.columnGroup})},onDragStopped:function(){e.eventService.dispatchEvent({type:Et.EVENT_COLUMN_PANEL_ITEM_DRAG_END})},onGridEnter:function(){i&&e.onChangeCommon(!0)},onGridExit:function(){i&&e.onChangeCommon(!1)}};this.dragAndDropService.addDragSource(o,!0),this.addDestroyFunc(function(){return e.dragAndDropService.removeDragSource(o)})}else ln.setDisplayed(this.eDragHandle,!1)},r.prototype.createDragItem=function(){var e={};return this.columnGroup.getLeafColumns().forEach(function(i){e[i.getId()]=i.isVisible()}),{columns:this.columnGroup.getLeafColumns(),visibleState:e}},r.prototype.setupExpandContract=function(){this.eGroupClosedIcon.appendChild(ln.createIcon("columnSelectClosed",this.gridOptionsWrapper,null)),this.eGroupOpenedIcon.appendChild(ln.createIcon("columnSelectOpen",this.gridOptionsWrapper,null)),this.addManagedListener(this.eGroupClosedIcon,"click",this.onExpandOrContractClicked.bind(this)),this.addManagedListener(this.eGroupOpenedIcon,"click",this.onExpandOrContractClicked.bind(this));var e=new xp(this.eColumnGroupIcons,!0);this.addManagedListener(e,xp.EVENT_TAP,this.onExpandOrContractClicked.bind(this)),this.addDestroyFunc(e.destroy.bind(e))},r.prototype.onLabelClicked=function(){var e=!this.cbSelect.getValue();this.onChangeCommon(e)},r.prototype.onCheckboxChanged=function(e){this.onChangeCommon(e.selected)},r.prototype.getVisibleLeafColumns=function(){var e=[],i=function(o){o.forEach(function(s){s.isPassesFilter()&&(s.isGroup()?i(s.getChildren()):e.push(s.getColumn()))})};return i(this.modelItem.getChildren()),e},r.prototype.onChangeCommon=function(e){this.refreshAriaLabel(),!this.processingColumnStateChange&&this.modelItemUtils.selectAllChildren(this.modelItem.getChildren(),e,this.eventType)},r.prototype.refreshAriaLabel=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),i=e("ariaColumnGroup","Column Group"),o=this.cbSelect.getValue()?e("ariaVisible","visible"):e("ariaHidden","hidden"),s=e("ariaToggleVisibility","Press SPACE to toggle visibility");ln.setAriaLabel(this.focusWrapper,this.displayName+" "+i),this.cbSelect.setInputAriaLabel(s+" ("+o+")"),ln.setAriaDescribedBy(this.focusWrapper,this.cbSelect.getInputElement().id)},r.prototype.onColumnStateChanged=function(){var e=this.workOutSelectedValue(),i=this.workOutReadOnlyValue();this.processingColumnStateChange=!0,this.cbSelect.setValue(e),this.cbSelect.setReadOnly(i),this.addOrRemoveCssClass("ag-column-select-column-group-readonly",i),this.processingColumnStateChange=!1},r.prototype.workOutSelectedValue=function(){var e=this,i=this.columnModel.isPivotMode(),o=this.getVisibleLeafColumns(),s=0,a=0;if(o.forEach(function(l){!i&&l.getColDef().lockVisible||(e.isColumnChecked(l,i)?s++:a++)}),!(s>0&&a>0))return s>0},r.prototype.workOutReadOnlyValue=function(){var e=this.columnModel.isPivotMode(),i=0;return this.columnGroup.getLeafColumns().forEach(function(o){e?o.isAnyFunctionAllowed()&&i++:o.getColDef().lockVisible||i++}),0===i},r.prototype.isColumnChecked=function(e,i){if(i){var o=e.isPivotActive(),s=e.isRowGroupActive(),a=e.isValueActive();return o||s||a}return e.isVisible()},r.prototype.onExpandOrContractClicked=function(){var e=this.modelItem.isExpanded();this.modelItem.setExpanded(!e)},r.prototype.onExpandChanged=function(){this.setOpenClosedIcons(),this.refreshAriaExpanded()},r.prototype.setOpenClosedIcons=function(){var e=this.modelItem.isExpanded();ln.setDisplayed(this.eGroupClosedIcon,!e),ln.setDisplayed(this.eGroupOpenedIcon,e)},r.prototype.refreshAriaExpanded=function(){ln.setAriaExpanded(this.focusWrapper,this.modelItem.isExpanded())},r.prototype.getDisplayName=function(){return this.displayName},r.prototype.onSelectAllChanged=function(e){var i=this.cbSelect.getValue();!this.cbSelect.isReadOnly()&&(e&&!i||!e&&i)&&this.cbSelect.toggle()},r.prototype.isSelected=function(){return this.cbSelect.getValue()},r.prototype.isSelectable=function(){return!this.cbSelect.isReadOnly()},r.prototype.setSelected=function(e){this.cbSelect.setValue(e,!0)},r.TEMPLATE='<div class="ag-column-select-column-group" aria-hidden="true">\n            <span class="ag-column-group-icons" ref="eColumnGroupIcons" >\n                <span class="ag-column-group-closed-icon" ref="eGroupClosedIcon"></span>\n                <span class="ag-column-group-opened-icon" ref="eGroupOpenedIcon"></span>\n            </span>\n            <ag-checkbox ref="cbSelect" class="ag-column-select-checkbox"></ag-checkbox>\n            <span class="ag-column-select-column-label" ref="eLabel"></span>\n        </div>',Rb([Xe("columnModel")],r.prototype,"columnModel",void 0),Rb([Xe("dragAndDropService")],r.prototype,"dragAndDropService",void 0),Rb([Xe("modelItemUtils")],r.prototype,"modelItemUtils",void 0),Rb([Ti("cbSelect")],r.prototype,"cbSelect",void 0),Rb([Ti("eLabel")],r.prototype,"eLabel",void 0),Rb([Ti("eGroupOpenedIcon")],r.prototype,"eGroupOpenedIcon",void 0),Rb([Ti("eGroupClosedIcon")],r.prototype,"eGroupClosedIcon",void 0),Rb([Ti("eColumnGroupIcons")],r.prototype,"eColumnGroupIcons",void 0),Rb([qi],r.prototype,"init",null),r}(Do),H4e=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),jY=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},HY="ag-list-item-hovered",U4e=function(t){function r(e,i){var o=t.call(this)||this;return o.comp=e,o.virtualList=i,o.currentDragColumn=null,o.lastHoveredColumnItem=null,o}return H4e(r,t),r.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Et.EVENT_COLUMN_PANEL_ITEM_DRAG_START,this.columnPanelItemDragStart.bind(this)),this.addManagedListener(this.eventService,Et.EVENT_COLUMN_PANEL_ITEM_DRAG_END,this.columnPanelItemDragEnd.bind(this)),this.createDropTarget(),this.createAutoScrollService()},r.prototype.columnPanelItemDragStart=function(e){this.currentDragColumn=e.column,this.getCurrentColumns().find(function(a){var l=a.getColDef();return!!l.suppressMovable||!!l.lockPosition})&&(this.moveBlocked=!0)},r.prototype.columnPanelItemDragEnd=function(){var e=this;window.setTimeout(function(){e.currentDragColumn=null,e.moveBlocked=!1},10)},r.prototype.createDropTarget=function(){var e=this;this.dragAndDropService.addDropTarget({isInterestedIn:function(o){return o===Ed.ToolPanel},getIconName:function(){return Zl[e.moveBlocked?"ICON_NOT_ALLOWED":"ICON_MOVE"]},getContainer:function(){return e.comp.getGui()},onDragging:function(o){return e.onDragging(o)},onDragStop:function(){return e.onDragStop()},onDragLeave:function(){return e.onDragLeave()}})},r.prototype.createAutoScrollService=function(){var e=this.virtualList.getGui();this.autoScrollService=new XI({scrollContainer:e,scrollAxis:"y",getVerticalPosition:function(){return e.scrollTop},setVerticalPosition:function(i){return e.scrollTop=i}})},r.prototype.onDragging=function(e){if(this.currentDragColumn&&!this.moveBlocked){var i=this.getDragColumnItem(e),o=this.virtualList.getComponentAt(i.rowIndex);if(o){var s=o.getGui().parentElement;this.lastHoveredColumnItem&&this.lastHoveredColumnItem.rowIndex===i.rowIndex&&this.lastHoveredColumnItem.position===i.position||(this.autoScrollService.check(e.event),this.clearHoveredItems(),this.lastHoveredColumnItem=i,ln.radioCssClass(s,""+HY),ln.radioCssClass(s,"ag-item-highlight-"+i.position))}}},r.prototype.getDragColumnItem=function(e){var i=this.virtualList.getGui(),o=parseFloat(window.getComputedStyle(i).paddingTop),s=this.virtualList.getRowHeight(),a=this.virtualList.getScrollTop(),l=Math.max(0,(e.y-o+a)/s),c=this.comp.getDisplayedColsList().length-1,d=0|Math.min(c,l);return{rowIndex:d,position:Math.round(l)>l||l>c?"bottom":"top",component:this.virtualList.getComponentAt(d)}},r.prototype.onDragStop=function(){if(!this.moveBlocked){var e=this.getTargetIndex(),i=this.getCurrentColumns();null!=e&&this.columnModel.moveColumns(i,e),this.clearHoveredItems(),this.autoScrollService.ensureCleared()}},r.prototype.getMoveDiff=function(e){var i=this.columnModel.getAllGridColumns(),o=this.getCurrentColumns(),a=o.length;return i.indexOf(o[0])<e?a:0},r.prototype.getCurrentColumns=function(){return this.currentDragColumn instanceof Zr?this.currentDragColumn.getLeafColumns():[this.currentDragColumn]},r.prototype.getTargetIndex=function(){if(!this.lastHoveredColumnItem)return null;var o,e=this.lastHoveredColumnItem.component,i="top"===this.lastHoveredColumnItem.position;e instanceof Nie?(o=e.getColumns()[0],i=!0):o=e.getColumn();var a=this.columnModel.getAllGridColumns().indexOf(o),l=i?a:a+1;return l-this.getMoveDiff(l)},r.prototype.onDragLeave=function(){this.clearHoveredItems(),this.autoScrollService.ensureCleared()},r.prototype.clearHoveredItems=function(){this.virtualList.getGui().querySelectorAll("."+HY).forEach(function(i){[HY,"ag-item-highlight-top","ag-item-highlight-bottom"].forEach(function(o){i.classList.remove(o)})}),this.lastHoveredColumnItem=null},jY([Xe("columnModel")],r.prototype,"columnModel",void 0),jY([Xe("dragAndDropService")],r.prototype,"dragAndDropService",void 0),jY([qi],r.prototype,"postConstruct",null),r}(Zi),$4e=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),xk=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},Y4e=function(t){function r(e,i,o,s,a){var l=t.call(this)||this;return l.column=e,l.columnDept=i,l.allowDragging=o,l.groupsExist=s,l.focusWrapper=a,l.processingColumnStateChange=!1,l}return $4e(r,t),r.prototype.init=function(){var e=this;this.setTemplate(r.TEMPLATE),this.eDragHandle=ln.createIconNoSpan("columnDrag",this.gridOptionsWrapper),this.eDragHandle.classList.add("ag-drag-handle","ag-column-select-column-drag-handle");var i=this.cbSelect.getGui(),o=this.cbSelect.getInputElement();i.insertAdjacentElement("afterend",this.eDragHandle),o.setAttribute("tabindex","-1"),this.displayName=this.columnModel.getDisplayNameForColumn(this.column,"columnToolPanel");var s=ln.escapeString(this.displayName);this.eLabel.innerHTML=s;var a=this.columnDept;this.groupsExist&&this.addCssClass("ag-column-select-add-group-indent"),this.addCssClass("ag-column-select-indent-"+a),this.setupDragging(),this.addManagedListener(this.eventService,Et.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onColumnStateChanged.bind(this)),this.addManagedListener(this.column,ms.EVENT_VALUE_CHANGED,this.onColumnStateChanged.bind(this)),this.addManagedListener(this.column,ms.EVENT_PIVOT_CHANGED,this.onColumnStateChanged.bind(this)),this.addManagedListener(this.column,ms.EVENT_ROW_GROUP_CHANGED,this.onColumnStateChanged.bind(this)),this.addManagedListener(this.column,ms.EVENT_VISIBLE_CHANGED,this.onColumnStateChanged.bind(this)),this.addManagedListener(this.focusWrapper,"keydown",this.handleKeyDown.bind(this)),this.addManagedListener(this.focusWrapper,"contextmenu",this.onContextMenu.bind(this)),this.addManagedListener(this.gridOptionsWrapper,"functionsReadOnly",this.onColumnStateChanged.bind(this)),this.addManagedListener(this.cbSelect,W0.EVENT_CHANGED,this.onCheckboxChanged.bind(this)),this.addManagedListener(this.eLabel,"click",this.onLabelClicked.bind(this)),this.onColumnStateChanged(),this.refreshAriaLabel(),this.setupTooltip(),uS.getToolPanelClassesFromColDef(this.column.getColDef(),this.gridOptionsWrapper,this.column,null).forEach(function(c){return e.addOrRemoveCssClass(c,!0)})},r.prototype.getColumn=function(){return this.column},r.prototype.setupTooltip=function(){var e=this,i=function(){var o=e.column.getColDef().headerTooltip;e.setTooltip(o)};i(),this.addManagedListener(this.eventService,Et.EVENT_NEW_COLUMNS_LOADED,i)},r.prototype.getTooltipParams=function(){var e=t.prototype.getTooltipParams.call(this);return e.location="columnToolPanelColumn",e.colDef=this.column.getColDef(),e},r.prototype.onContextMenu=function(e){var i=this,s=this.column;if(!this.gridOptionsWrapper.isFunctionsReadOnly()){var l=this.createBean(new Lie(s,e,this.focusWrapper));this.addDestroyFunc(function(){l.isAlive()&&i.destroyBean(l)})}},r.prototype.handleKeyDown=function(e){e.key===gi.SPACE&&(e.preventDefault(),this.isSelectable()&&this.onSelectAllChanged(!this.isSelected()))},r.prototype.onLabelClicked=function(){if(!this.gridOptionsWrapper.isFunctionsReadOnly()){var e=!this.cbSelect.getValue();this.onChangeCommon(e)}},r.prototype.onCheckboxChanged=function(e){this.onChangeCommon(e.selected)},r.prototype.onChangeCommon=function(e){this.cbSelect.isReadOnly()||(this.refreshAriaLabel(),!this.processingColumnStateChange&&this.modelItemUtils.setColumn(this.column,e,"toolPanelUi"))},r.prototype.refreshAriaLabel=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),i=e("ariaColumn","Column"),o=this.cbSelect.getValue()?e("ariaVisible","visible"):e("ariaHidden","hidden"),s=e("ariaToggleVisibility","Press SPACE to toggle visibility");ln.setAriaLabel(this.focusWrapper,this.displayName+" "+i),this.cbSelect.setInputAriaLabel(s+" ("+o+")"),ln.setAriaDescribedBy(this.focusWrapper,this.cbSelect.getInputElement().id)},r.prototype.setupDragging=function(){var e=this;if(this.allowDragging){var i=!this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns(),o={type:Ed.ToolPanel,eElement:this.eDragHandle,dragItemName:this.displayName,defaultIconName:i?Zl.ICON_HIDE:Zl.ICON_NOT_ALLOWED,getDragItem:function(){return e.createDragItem()},onDragStarted:function(){e.eventService.dispatchEvent({type:Et.EVENT_COLUMN_PANEL_ITEM_DRAG_START,column:e.column})},onDragStopped:function(){e.eventService.dispatchEvent({type:Et.EVENT_COLUMN_PANEL_ITEM_DRAG_END})},onGridEnter:function(){i&&e.onChangeCommon(!0)},onGridExit:function(){i&&e.onChangeCommon(!1)}};this.dragAndDropService.addDragSource(o,!0),this.addDestroyFunc(function(){return e.dragAndDropService.removeDragSource(o)})}else ln.setDisplayed(this.eDragHandle,!1)},r.prototype.createDragItem=function(){var e={};return e[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:e}},r.prototype.onColumnStateChanged=function(){this.processingColumnStateChange=!0;var e=this.columnModel.isPivotMode();if(e){var i=this.column.isAnyFunctionActive();this.cbSelect.setValue(i)}else this.cbSelect.setValue(this.column.isVisible());var o=!0,s=!0;if(e){var a=this.gridOptionsWrapper.isFunctionsReadOnly(),l=!this.column.isAnyFunctionAllowed();s=o=!a&&!l}else{var c=this.column.getColDef();o=!c.lockVisible,s=!!c.enableRowGroup||!!c.enableValue||!(c.lockPosition||c.suppressMovable)}this.cbSelect.setReadOnly(!o),this.eDragHandle.classList.toggle("ag-column-select-column-readonly",!s),this.addOrRemoveCssClass("ag-column-select-column-readonly",!s&&!o);var F=e&&this.gridOptionsWrapper.isFunctionsPassive();this.cbSelect.setPassive(F),this.processingColumnStateChange=!1},r.prototype.getDisplayName=function(){return this.displayName},r.prototype.onSelectAllChanged=function(e){e!==this.cbSelect.getValue()&&(this.cbSelect.isReadOnly()||this.cbSelect.toggle())},r.prototype.isSelected=function(){return this.cbSelect.getValue()},r.prototype.isSelectable=function(){return!this.cbSelect.isReadOnly()},r.prototype.isExpandable=function(){return!1},r.prototype.setExpanded=function(e){console.warn("AG Grid: can not expand a column item that does not represent a column group header")},r.TEMPLATE='<div class="ag-column-select-column" aria-hidden="true">\n            <ag-checkbox ref="cbSelect" class="ag-column-select-checkbox"></ag-checkbox>\n            <span class="ag-column-select-column-label" ref="eLabel"></span>\n        </div>',xk([Xe("columnModel")],r.prototype,"columnModel",void 0),xk([Xe("dragAndDropService")],r.prototype,"dragAndDropService",void 0),xk([Xe("modelItemUtils")],r.prototype,"modelItemUtils",void 0),xk([Ti("eLabel")],r.prototype,"eLabel",void 0),xk([Ti("cbSelect")],r.prototype,"cbSelect",void 0),xk([qi],r.prototype,"init",null),r}(Do),W4e=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),h7=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},z4e=function(){function t(r){this.items=r}return t.prototype.getRowCount=function(){return this.items.length},t.prototype.getRow=function(r){return this.items[r]},t}(),X4e=function(t){function r(){var e=t.call(this,r.TEMPLATE)||this;return e.destroyColumnItemFuncs=[],e}return W4e(r,t),r.prototype.destroyColumnTree=function(){this.allColsTree=[],this.destroyColumnItemFuncs.forEach(function(e){return e()}),this.destroyColumnItemFuncs=[]},r.prototype.init=function(e,i,o){var s=this;this.params=e,this.allowDragging=i,this.eventType=o,this.params.suppressSyncLayoutWithGrid||this.addManagedListener(this.eventService,Et.EVENT_COLUMN_MOVED,this.onColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Et.EVENT_NEW_COLUMNS_LOADED,this.onColumnsChanged.bind(this)),[Et.EVENT_COLUMN_PIVOT_CHANGED,Et.EVENT_COLUMN_PIVOT_MODE_CHANGED,Et.EVENT_COLUMN_ROW_GROUP_CHANGED,Et.EVENT_COLUMN_VALUE_CHANGED,Et.EVENT_COLUMN_VISIBLE,Et.EVENT_NEW_COLUMNS_LOADED].forEach(function(d){s.addManagedListener(s.eventService,d,s.fireSelectionChangedEvent.bind(s))}),this.expandGroupsByDefault=!this.params.contractColumnSelection;var c=this.gridOptionsWrapper.getLocaleTextFunc()("ariaColumnList","Column List");this.virtualList=this.createManagedBean(new $A("column-select","tree",c)),this.appendChild(this.virtualList.getGui()),this.virtualList.setComponentCreator(function(d,f){return ln.setAriaLevel(f,d.getDept()+1),s.createComponentFromItem(d,f)}),this.columnModel.isReady()&&this.onColumnsChanged(),!e.suppressColumnMove&&!this.gridOptionsWrapper.isSuppressMovableColumns()&&this.createManagedBean(new U4e(this,this.virtualList))},r.prototype.createComponentFromItem=function(e,i){if(e.isGroup()){var o=new Nie(e,this.allowDragging,this.eventType,i);return this.getContext().createBean(o),o}var s=new Y4e(e.getColumn(),e.getDept(),this.allowDragging,this.groupsExist,i);return this.getContext().createBean(s),s},r.prototype.onColumnsChanged=function(){var e=this.getExpandedStates(),i=this.columnModel.isPivotMode();this.params.suppressSyncLayoutWithGrid||i?this.buildTreeFromProvidedColumnDefs():this.buildTreeFromWhatGridIsDisplaying(),this.setExpandedStates(e),this.markFilteredColumns(),this.flattenAndFilterModel()},r.prototype.getDisplayedColsList=function(){return this.displayedColsList},r.prototype.getExpandedStates=function(){if(!this.allColsTree)return{};var e={};return this.forEachItem(function(i){if(i.isGroup()){var o=i.getColumnGroup();o&&(e[o.getId()]=i.isExpanded())}}),e},r.prototype.setExpandedStates=function(e){this.allColsTree&&this.forEachItem(function(i){if(i.isGroup()){var o=i.getColumnGroup();if(o){var s=e[o.getId()];null!=s&&i.setExpanded(s)}}})},r.prototype.buildTreeFromWhatGridIsDisplaying=function(){this.colDefService.syncLayoutWithGrid(this.setColumnLayout.bind(this))},r.prototype.setColumnLayout=function(e){var i=this.colDefService.createColumnTree(e);this.buildListModel(i),this.groupsExist=e.some(function(o){return o&&typeof o.children<"u"}),this.markFilteredColumns(),this.flattenAndFilterModel()},r.prototype.buildTreeFromProvidedColumnDefs=function(){this.buildListModel(this.columnModel.getPrimaryColumnTree()),this.groupsExist=this.columnModel.isPrimaryColumnGroupsPresent()},r.prototype.buildListModel=function(e){var i=this,o=this.onColumnExpanded.bind(this),a=function(d,f,v){d.forEach(function(w){w instanceof Zr?l(w,f,v):c(w,f,v)})},l=function(d,f,v){var w=d.getColGroupDef();if(!w||!w.suppressColumnsToolPanel){if(d.isPadding())return void a(d.getChildren(),f,v);var I=i.columnModel.getDisplayNameForProvidedColumnGroup(null,d,i.eventType),M=new OO(I,d,f,!0,i.expandGroupsByDefault);v.push(M),function(d){d.addEventListener(OO.EVENT_EXPANDED_CHANGED,o);var f=d.removeEventListener.bind(d,OO.EVENT_EXPANDED_CHANGED,o);i.destroyColumnItemFuncs.push(f)}(M),a(d.getChildren(),f+1,M.getChildren())}},c=function(d,f,v){if(!d.getColDef()||!d.getColDef().suppressColumnsToolPanel){var x=i.columnModel.getDisplayNameForColumn(d,"columnToolPanel");v.push(new OO(x,d,f))}};this.destroyColumnTree(),a(e,0,this.allColsTree)},r.prototype.onColumnExpanded=function(){this.flattenAndFilterModel()},r.prototype.flattenAndFilterModel=function(){var e=this;this.displayedColsList=[];var i=function(s){s.isPassesFilter()&&(e.displayedColsList.push(s),s.isGroup()&&s.isExpanded()&&s.getChildren().forEach(i))};this.allColsTree.forEach(i),this.virtualList.setModel(new z4e(this.displayedColsList));var o=this.virtualList.getLastFocusedRow();this.virtualList.refresh(),null!=o&&this.focusRowIfAlive(o),this.notifyListeners()},r.prototype.focusRowIfAlive=function(e){var i=this;window.setTimeout(function(){i.isAlive()&&i.virtualList.focusRow(e)},0)},r.prototype.forEachItem=function(e){var i=function(o){o.forEach(function(s){e(s),s.isGroup()&&i(s.getChildren())})};i(this.allColsTree)},r.prototype.doSetExpandedAll=function(e){this.forEachItem(function(i){i.isGroup()&&i.setExpanded(e)})},r.prototype.setGroupsExpanded=function(e,i){if(i){var o=[];this.forEachItem(function(a){if(a.isGroup()){var l=a.getColumnGroup().getId();i.indexOf(l)>=0&&(a.setExpanded(e),o.push(l))}});var s=i.filter(function(a){return!ln.includes(o,a)});s.length>0&&console.warn("AG Grid: unable to find group(s) for supplied groupIds:",s)}else this.doSetExpandedAll(e)},r.prototype.getExpandState=function(){var e=0,i=0;return this.forEachItem(function(o){o.isGroup()&&(o.isExpanded()?e++:i++)}),e>0&&i>0?Mb.INDETERMINATE:i>0?Mb.COLLAPSED:Mb.EXPANDED},r.prototype.doSetSelectedAll=function(e){this.modelItemUtils.selectAllChildren(this.allColsTree,e,this.eventType)},r.prototype.getSelectionState=function(){var e=0,i=0,o=this.columnModel.isPivotMode();if(this.forEachItem(function(s){if(!s.isGroup()&&s.isPassesFilter()){var c,a=s.getColumn(),l=a.getColDef();if(o){if(!a.isAllowPivot()&&!a.isAllowRowGroup()&&!a.isAllowValue())return;c=a.isValueActive()||a.isPivotActive()||a.isRowGroupActive()}else{if(l.lockVisible)return;c=a.isVisible()}c?e++:i++}}),!(e>0&&i>0))return!(0===e||i>0)},r.prototype.setFilterText=function(e){this.filterText=ln.exists(e)?e.toLowerCase():null,this.markFilteredColumns(),this.flattenAndFilterModel()},r.prototype.markFilteredColumns=function(){var e=this,i=function(s){if(!ln.exists(e.filterText))return!0;var a=s.getDisplayName();return null==a||-1!==a.toLowerCase().indexOf(e.filterText)},o=function(s,a){var l=!1;if(s.isGroup()){var c=i(s);s.getChildren().forEach(function(f){var v=o(f,c||a);v&&(l=v)})}var d=!(!a&&!l)||i(s);return s.setPassesFilter(d),d};this.allColsTree.forEach(function(s){return o(s,!1)})},r.prototype.notifyListeners=function(){this.fireGroupExpandedEvent(),this.fireSelectionChangedEvent()},r.prototype.fireGroupExpandedEvent=function(){var e=this.getExpandState();this.dispatchEvent({type:"groupExpanded",state:e})},r.prototype.fireSelectionChangedEvent=function(){var e=this.getSelectionState();this.dispatchEvent({type:"selectionChanged",state:e})},r.TEMPLATE='<div class="ag-column-select-list" role="presentation"></div>',h7([Xe("columnModel")],r.prototype,"columnModel",void 0),h7([Xe("toolPanelColDefService")],r.prototype,"colDefService",void 0),h7([Xe("modelItemUtils")],r.prototype,"modelItemUtils",void 0),h7([Ru],r.prototype,"destroyColumnTree",null),r}(Do),K4e=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),UY=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},Gie=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return K4e(r,t),r.prototype.createTemplate=function(){return'<div class="ag-pivot-mode-panel">\n                <ag-toggle-button ref="cbPivotMode" class="ag-pivot-mode-select"></ag-toggle-button>\n            </div>'},r.prototype.init=function(){this.setTemplate(this.createTemplate()),this.cbPivotMode.setValue(this.columnModel.isPivotMode());var e=this.gridOptionsWrapper.getLocaleTextFunc();this.cbPivotMode.setLabel(e("pivotMode","Pivot Mode")),this.addManagedListener(this.cbPivotMode,W0.EVENT_CHANGED,this.onBtPivotMode.bind(this)),this.addManagedListener(this.eventService,Et.EVENT_NEW_COLUMNS_LOADED,this.onPivotModeChanged.bind(this)),this.addManagedListener(this.eventService,Et.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this))},r.prototype.onBtPivotMode=function(){var e=!!this.cbPivotMode.getValue();if(e!==this.columnModel.isPivotMode()){this.columnModel.setPivotMode(e,"toolPanelUi");var i=this.gridOptionsWrapper.getApi();i&&i.refreshHeader()}},r.prototype.onPivotModeChanged=function(){var e=this.columnModel.isPivotMode();this.cbPivotMode.setValue(e)},UY([Xe("columnModel")],r.prototype,"columnModel",void 0),UY([Ti("cbPivotMode")],r.prototype,"cbPivotMode",void 0),UY([vh],r.prototype,"init",null),r}(Do),Q4e=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Ux=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},J4e=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return Q4e(r,t),r.prototype.execute=function(e){var i=ln.missingOrEmpty(this.columnModel.getValueColumns()),o=!this.gridOptionsWrapper.getGroupRowAggFunc(),s=e.changedPath&&e.changedPath.isActive();if(!(i&&o&&s)){var a=this.createAggDetails(e);this.recursivelyCreateAggData(a)}},r.prototype.createAggDetails=function(e){var i=this.columnModel.isPivotActive(),o=this.columnModel.getValueColumns(),s=i?this.columnModel.getPivotColumns():[];return{changedPath:e.changedPath,valueColumns:o,pivotColumns:s}},r.prototype.recursivelyCreateAggData=function(e){var i=this;this.filteredOnly=!this.gridOptionsWrapper.isSuppressAggFilteredOnly(),e.changedPath.forEachChangedNodeDepthFirst(function(s){if(s.hasChildren()){if(-1===s.level){var c=!i.columnModel.isPivotMode();if(i.gridOptionsWrapper.isSuppressAggAtRootLevel()&&c)return}i.aggregateRowNode(s,e)}else s.aggData&&s.setAggData(null)},!0)},r.prototype.aggregateRowNode=function(e,i){var l,o=0===i.valueColumns.length,s=0===i.pivotColumns.length,a=this.gridOptionsWrapper.getGroupRowAggFunc();l=a?a({nodes:e.childrenAfterFilter}):o?null:s?this.aggregateRowNodeUsingValuesOnly(e,i):this.aggregateRowNodeUsingValuesAndPivot(e),e.setAggData(l),e.sibling&&e.sibling.setAggData(l)},r.prototype.aggregateRowNodeUsingValuesAndPivot=function(e){var i=this,o={},s=this.pivotStage.getPivotColumnDefs();return s.filter(function(a){return!ln.exists(a.pivotTotalColumnIds)}).forEach(function(a){var c,d=a.pivotValueColumn,f=a.colId;c=e.leafGroup?i.getValuesFromMappedSet(e.childrenMapped,a.pivotKeys||[],d):i.getValuesPivotNonLeaf(e,f),o[f]=i.aggregateValues(c,d.getAggFunc(),d,e)}),s.filter(function(a){return ln.exists(a.pivotTotalColumnIds)}).forEach(function(a){var l=[],c=a.pivotValueColumn,d=a.pivotTotalColumnIds,f=a.colId;!d||!d.length||(d.forEach(function(v){l.push(o[v])}),o[f]=i.aggregateValues(l,c.getAggFunc(),c,e))}),o},r.prototype.aggregateRowNodeUsingValuesOnly=function(e,i){var o=this,s={},a=i.changedPath.isActive()?i.changedPath.getValueColumnsForNode(e,i.valueColumns):i.valueColumns,l=i.changedPath.isActive()?i.changedPath.getNotValueColumnsForNode(e,i.valueColumns):null,c=this.getValuesNormal(e,a),d=e.aggData;return a.forEach(function(f,v){s[f.getId()]=o.aggregateValues(c[v],f.getAggFunc(),f,e)}),l&&d&&l.forEach(function(f){s[f.getId()]=d[f.getId()]}),s},r.prototype.getValuesPivotNonLeaf=function(e,i){var o=[];return e.childrenAfterFilter.forEach(function(s){o.push(s.aggData[i])}),o},r.prototype.getValuesFromMappedSet=function(e,i,o){var s=this,a=e;if(i.forEach(function(c){return a=a?a[c]:null}),!a)return[];var l=[];return a.forEach(function(c){var d=s.valueService.getValue(o,c);l.push(d)}),l},r.prototype.getValuesNormal=function(e,i){var o=[];i.forEach(function(){return o.push([])});for(var s=i.length,a=this.filteredOnly?e.childrenAfterFilter:e.childrenAfterGroup,l=a.length,c=0;c<l;c++)for(var d=a[c],f=0;f<s;f++){var w=this.valueService.getValue(i[f],d);o[f].push(w)}return o},r.prototype.aggregateValues=function(e,i,o,s){var a="string"==typeof i?this.aggFuncService.getAggFunc(i):i;return"function"!=typeof a?(console.error("AG Grid: unrecognised aggregation function "+i),null):a({values:e,column:o,colDef:o?o.getColDef():void 0,rowNode:s,data:s?s.data:void 0,api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()})},Ux([Xe("columnModel")],r.prototype,"columnModel",void 0),Ux([Xe("valueService")],r.prototype,"valueService",void 0),Ux([Xe("pivotStage")],r.prototype,"pivotStage",void 0),Ux([Xe("aggFuncService")],r.prototype,"aggFuncService",void 0),Ux([Xe("gridApi")],r.prototype,"gridApi",void 0),Ux([Xe("columnApi")],r.prototype,"columnApi",void 0),Ux([Kr("aggregationStage")],r)}(Zi),$Y=function(){function t(){this.allSets={},this.allParents=[]}return t.prototype.removeFromChildrenAfterGroup=function(r,e){this.getSet(r).removeFromChildrenAfterGroup[e.id]=!0},t.prototype.removeFromAllLeafChildren=function(r,e){this.getSet(r).removeFromAllLeafChildren[e.id]=!0},t.prototype.getSet=function(r){return this.allSets[r.id]||(this.allSets[r.id]={removeFromAllLeafChildren:{},removeFromChildrenAfterGroup:{}},this.allParents.push(r)),this.allSets[r.id]},t.prototype.getAllParents=function(){return this.allParents},t.prototype.flush=function(){var r=this;this.allParents.forEach(function(e){var i=r.allSets[e.id];e.childrenAfterGroup=e.childrenAfterGroup.filter(function(o){return!i.removeFromChildrenAfterGroup[o.id]}),e.allLeafChildren=e.allLeafChildren.filter(function(o){return!i.removeFromAllLeafChildren[o.id]}),e.updateHasChildren(),e.sibling&&(e.sibling.childrenAfterGroup=e.childrenAfterGroup,e.sibling.allLeafChildren=e.allLeafChildren)}),this.allSets={},this.allParents.length=0},t}(),Z4e=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),$x=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},eNe=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var o,a,i=e.call(t),s=[];try{for(;(void 0===r||r-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return s},nNe=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.groupIdSequence=new bm,e}return Z4e(r,t),r.prototype.postConstruct=function(){this.usingTreeData=this.gridOptionsWrapper.isTreeData(),this.usingTreeData&&(this.getDataPath=this.gridOptionsWrapper.getDataPathFunc())},r.prototype.execute=function(e){var i=this.createGroupingDetails(e);i.transactions?this.handleTransaction(i):this.shotgunResetEverything(i,!0===e.afterColumnsChanged),this.positionLeafsAboveGroups(e.changedPath),this.orderGroups(i.rootNode),this.selectableService.updateSelectableAfterGrouping(i.rootNode)},r.prototype.positionLeafsAboveGroups=function(e){this.usingTreeData||e.forEachChangedNodeDepthFirst(function(i){if(i.childrenAfterGroup){var o=[],s=[];i.childrenAfterGroup.forEach(function(a){var l;null!==(l=a.childrenAfterGroup)&&void 0!==l&&l.length?s.push(a):o.push(a)}),i.childrenAfterGroup=function(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(eNe(arguments[r]));return t}(o,s)}},!1)},r.prototype.createGroupingDetails=function(e){var i=e.rowNode,o=e.changedPath,s=e.rowNodeTransactions,a=e.rowNodeOrder,l=this.usingTreeData?null:this.columnModel.getRowGroupColumns();return{includeParents:!this.gridOptionsWrapper.isSuppressParentsInRowNodes(),expandByDefault:this.gridOptionsWrapper.getGroupDefaultExpanded(),groupedCols:l,rootNode:i,pivotMode:this.columnModel.isPivotMode(),groupedColCount:this.usingTreeData||!l?0:l.length,rowNodeOrder:a,transactions:s,changedPath:o}},r.prototype.handleTransaction=function(e){var i=this;e.transactions.forEach(function(o){var s=i.usingTreeData?void 0:new $Y;if(ln.existsAndNotEmpty(o.remove)&&i.removeNodes(o.remove,e,s),ln.existsAndNotEmpty(o.update)&&i.moveNodesInWrongPath(o.update,e,s),ln.existsAndNotEmpty(o.add)&&i.insertNodes(o.add,e,!1),s){var a=s.getAllParents().slice();s.flush(),i.removeEmptyGroups(a,e)}}),e.rowNodeOrder&&this.sortChildren(e)},r.prototype.sortChildren=function(e){e.changedPath.forEachChangedNodeDepthFirst(function(i){ln.sortRowNodesByOrder(i.childrenAfterGroup,e.rowNodeOrder)})},r.prototype.orderGroups=function(e){if(!this.usingTreeData){var i=this.gridOptionsWrapper.getInitialGroupOrderComparator();ln.exists(i)&&function o(s){ln.exists(s.childrenAfterGroup)&&!s.leafGroup&&(s.childrenAfterGroup.sort(function(l,c){return i({nodeA:l,nodeB:c})}),s.childrenAfterGroup.forEach(function(l){return o(l)}))}(e)}},r.prototype.getExistingPathForNode=function(e,i){for(var o=[],s=this.usingTreeData?e:e.parent;s&&s!==i.rootNode;)o.push({key:s.key,rowGroupColumn:s.rowGroupColumn,field:s.field}),s=s.parent;return o.reverse(),o},r.prototype.moveNodesInWrongPath=function(e,i,o){var s=this;e.forEach(function(a){i.changedPath.isActive()&&i.changedPath.addParentNode(a.parent);var l=function(v){return v.key},c=s.getExistingPathForNode(a,i).map(l),d=s.getGroupInfo(a,i).map(l);ln.areEqual(c,d)||s.moveNode(a,i,o)})},r.prototype.moveNode=function(e,i,o){this.removeNodesInStages([e],i,o),this.insertOneNode(e,i,!0),e.setData(e.data),i.changedPath.isActive()&&i.changedPath.addParentNode(e.parent)},r.prototype.removeNodes=function(e,i,o){this.removeNodesInStages(e,i,o),i.changedPath.isActive()&&e.forEach(function(s){return i.changedPath.addParentNode(s.parent)})},r.prototype.removeNodesInStages=function(e,i,o){if(this.removeNodesFromParents(e,i,o),this.usingTreeData){this.postRemoveCreateFillerNodes(e,i);var s=e.map(function(a){return a.parent});this.removeEmptyGroups(s,i)}},r.prototype.forEachParentGroup=function(e,i,o){for(var s=i;s&&s!==e.rootNode;)o(s),s=s.parent},r.prototype.removeNodesFromParents=function(e,i,o){var s=this,a=null==o,l=o||new $Y;e.forEach(function(c){s.removeFromParent(c,l),s.forEachParentGroup(i,c.parent,function(d){l.removeFromAllLeafChildren(d,c)})}),a&&l.flush()},r.prototype.postRemoveCreateFillerNodes=function(e,i){var o=this;e.forEach(function(s){if(s.hasChildren()){var l=o.getExistingPathForNode(s,i),c=o.findParentForNode(s,l,i);c.expanded=s.expanded,c.allLeafChildren=s.allLeafChildren,c.childrenAfterGroup=s.childrenAfterGroup,c.childrenMapped=s.childrenMapped,c.updateHasChildren(),c.childrenAfterGroup.forEach(function(d){return d.parent=c})}})},r.prototype.removeEmptyGroups=function(e,i){for(var o=this,s=!0,l=function(){s=!1;var c=new $Y;e.forEach(function(d){o.forEachParentGroup(i,d,function(f){(function(c){var d=o.getChildrenMappedKey(c.key,c.rowGroupColumn),f=c.parent;return!!(f&&f.childrenMapped&&f.childrenMapped[d]&&c.isEmptyRowGroupNode())})(f)&&(s=!0,o.removeFromParent(f,c),f.setSelected(!1))})}),c.flush()};s;)l()},r.prototype.removeFromParent=function(e,i){e.parent&&(i?i.removeFromChildrenAfterGroup(e.parent,e):(ln.removeFromArray(e.parent.childrenAfterGroup,e),e.parent.updateHasChildren()));var o=this.getChildrenMappedKey(e.key,e.rowGroupColumn);e.parent&&e.parent.childrenMapped&&(e.parent.childrenMapped[o]=void 0),e.setRowTop(null),e.setRowIndex(null)},r.prototype.addToParent=function(e,i){var o=this.getChildrenMappedKey(e.key,e.rowGroupColumn);i&&(null!=i.childrenMapped&&(i.childrenMapped[o]=e),i.childrenAfterGroup.push(e),i.updateHasChildren())},r.prototype.areGroupColsEqual=function(e,i){return null!=e&&null!=i&&e.pivotMode===i.pivotMode&&ln.areEqual(e.groupedCols,i.groupedCols)},r.prototype.checkAllGroupDataAfterColsChanged=function(e){var i=this,o=function(s){s&&s.forEach(function(a){!i.usingTreeData&&!a.group||(i.setGroupData(a,{field:a.field,key:a.key,rowGroupColumn:a.rowGroupColumn}),o(a.childrenAfterGroup))})};o(e.rootNode.childrenAfterGroup)},r.prototype.shotgunResetEverything=function(e,i){if(!this.noChangeInGroupingColumns(e,i)){this.selectionService.removeGroupsFromSelection();var o=e.rootNode;o.leafGroup=!this.usingTreeData&&0===e.groupedCols.length,o.childrenAfterGroup=[],o.childrenMapped={},o.updateHasChildren();var a=o.sibling;a&&(a.childrenAfterGroup=o.childrenAfterGroup,a.childrenMapped=o.childrenMapped),this.insertNodes(o.allLeafChildren,e,!1)}},r.prototype.noChangeInGroupingColumns=function(e,i){var o=!1,s=this.columnModel.getGroupDisplayColumns(),a=s?s.map(function(l){return l.getId()}).join("-"):"";return i&&(o=this.usingTreeData||this.areGroupColsEqual(e,this.oldGroupingDetails),this.oldGroupDisplayColIds!==a&&this.checkAllGroupDataAfterColsChanged(e)),this.oldGroupingDetails=e,this.oldGroupDisplayColIds=a,o},r.prototype.insertNodes=function(e,i,o){var s=this;e.forEach(function(a){s.insertOneNode(a,i,o),i.changedPath.isActive()&&i.changedPath.addParentNode(a.parent)})},r.prototype.insertOneNode=function(e,i,o){var s=this.getGroupInfo(e,i),a=this.findParentForNode(e,s,i);a.group||console.warn("AG Grid: duplicate group keys for row data, keys should be unique",[a.data,e.data]),this.usingTreeData?this.swapGroupWithUserNode(a,e,o):(e.parent=a,e.level=s.length,a.childrenAfterGroup.push(e),a.updateHasChildren())},r.prototype.findParentForNode=function(e,i,o){var s=this,a=o.rootNode;return i.forEach(function(l,c){(a=s.getOrCreateNextNode(a,l,c,o)).allLeafChildren.push(e)}),a},r.prototype.swapGroupWithUserNode=function(e,i,o){i.parent=e.parent,i.key=e.key,i.field=e.field,i.groupData=e.groupData,i.level=e.level,o||(i.expanded=e.expanded),i.leafGroup=e.leafGroup,i.rowGroupIndex=e.rowGroupIndex,i.allLeafChildren=e.allLeafChildren,i.childrenAfterGroup=e.childrenAfterGroup,i.childrenMapped=e.childrenMapped,i.updateHasChildren(),this.removeFromParent(e),i.childrenAfterGroup.forEach(function(s){return s.parent=i}),this.addToParent(i,e.parent)},r.prototype.getOrCreateNextNode=function(e,i,o,s){var a=this.getChildrenMappedKey(i.key,i.rowGroupColumn),l=e.childrenMapped?e.childrenMapped[a]:void 0;return l||(l=this.createGroup(i,e,o,s),this.addToParent(l,e)),l},r.prototype.createGroup=function(e,i,o,s){var a=new Ta(this.beans);return a.group=!0,a.field=e.field,a.rowGroupColumn=e.rowGroupColumn,this.setGroupData(a,e),a.id=Ta.ID_PREFIX_ROW_GROUP+this.groupIdSequence.next(),a.key=e.key,a.level=o,a.leafGroup=!this.usingTreeData&&o===s.groupedColCount-1,a.allLeafChildren=[],a.setAllChildrenCount(0),a.rowGroupIndex=this.usingTreeData?null:o,a.childrenAfterGroup=[],a.childrenMapped={},a.updateHasChildren(),a.parent=s.includeParents?i:null,this.setExpandedInitialValue(s,a),a},r.prototype.setGroupData=function(e,i){var o=this;e.groupData={},this.columnModel.getGroupDisplayColumns().forEach(function(a){(o.usingTreeData||e.rowGroupColumn&&a.isRowGroupDisplayed(e.rowGroupColumn.getId()))&&(e.groupData[a.getColId()]=i.key)})},r.prototype.getChildrenMappedKey=function(e,i){return i?i.getId()+"-"+e:e},r.prototype.setExpandedInitialValue=function(e,i){if(e.pivotMode&&i.leafGroup)i.expanded=!1;else{var o=this.gridOptionsWrapper.getIsGroupOpenByDefaultFunc();i.expanded=o?1==o({rowNode:i,field:i.field,key:i.key,level:i.level,rowGroupColumn:i.rowGroupColumn}):-1===e.expandByDefault||i.level<e.expandByDefault}},r.prototype.getGroupInfo=function(e,i){return this.usingTreeData?this.getGroupInfoFromCallback(e):this.getGroupInfoFromGroupColumns(e,i)},r.prototype.getGroupInfoFromCallback=function(e){var i=this.getDataPath?this.getDataPath(e.data):null;return(null==i||0===i.length)&&ln.doOnce(function(){return console.warn("AG Grid: getDataPath() should not return an empty path for data",e.data)},"groupStage.getGroupInfoFromCallback"),i?i.map(function(s){return{key:s,field:null,rowGroupColumn:null}}):[]},r.prototype.getGroupInfoFromGroupColumns=function(e,i){var o=this,s=[];return i.groupedCols.forEach(function(a){var l=o.valueService.getKeyForNode(a,e),c=null!=l;if(i.pivotMode&&!c&&(l=" ",c=!0),c){var d={key:l,field:a.getColDef().field,rowGroupColumn:a};s.push(d)}}),s},$x([Xe("columnModel")],r.prototype,"columnModel",void 0),$x([Xe("selectableService")],r.prototype,"selectableService",void 0),$x([Xe("valueService")],r.prototype,"valueService",void 0),$x([Xe("beans")],r.prototype,"beans",void 0),$x([Xe("selectionService")],r.prototype,"selectionService",void 0),$x([qi],r.prototype,"postConstruct",null),$x([Kr("groupStage")],r)}(Zi),iNe=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Ek=function(){return Ek=Object.assign||function(t){for(var r,e=1,i=arguments.length;e<i;e++)for(var o in r=arguments[e])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t},Ek.apply(this,arguments)},Bie=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},rNe=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var o,a,i=e.call(t),s=[];try{for(;(void 0===r||r-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return s},YY=function(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(rNe(arguments[r]));return t},oNe=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}var e;return iNe(r,t),e=r,r.prototype.createPivotColumnDefs=function(i){var o=this.columnModel.getPivotColumns(),s=this.columnModel.getValueColumns(),l=this.recursiveBuildGroup(0,i,[],o.length,o),d=function c(v,w){return void 0===w&&(w=[]),v.forEach(function(x){void 0!==x.children?c(x.children,w):w.push(x)}),w}(l);return this.addRowGroupTotals(l,d,s),this.addExpandablePivotGroups(l,d),this.addPivotTotalsToGroups(l,d),{pivotColumnGroupDefs:l,pivotColumnDefs:d.map(function(v){return ln.cloneObject(v)})}},r.prototype.recursiveBuildGroup=function(i,o,s,a,l){var c=this,d=this.columnModel.getValueColumns();if(i>=a)return this.buildMeasureCols(s);var f=l[i].getColDef(),v=this.headerNameComparator.bind(this,f.pivotComparator);if(1===d.length&&this.gridOptionsWrapper.isRemovePivotHeaderRowWhenSingleValueColumn()&&i===a-1){var w=[];return ln.iterateObject(o,function(I){var M=YY(s,[I]);w.push(Ek(Ek({},c.createColDef(d[0],I,M)),{columnGroupShow:"open"}))}),w.sort(v),w}var x=[];return ln.iterateObject(o,function(I,M){var F=YY(s,[I]);x.push({children:c.recursiveBuildGroup(i+1,M,F,a,l),headerName:I,pivotKeys:F,columnGroupShow:"open",groupId:c.generateColumnGroupId(F)})}),x.sort(v),x},r.prototype.buildMeasureCols=function(i){var o=this,s=this.columnModel.getValueColumns();return 0===s.length?[this.createColDef(null,"-",i)]:s.map(function(a){var l=o.columnModel.getDisplayNameForColumn(a,"header");return Ek(Ek({},o.createColDef(a,l,i)),{columnGroupShow:"open"})})},r.prototype.addExpandablePivotGroups=function(i,o){var s=this;if(!this.gridOptionsWrapper.isSuppressExpandablePivotGroups()&&!this.gridOptionsWrapper.getPivotColumnGroupTotals()){var a=function(l,c,d){var f=l;if(f.children){var v=new Map;f.children.forEach(function(F){a(F,c,v)});var w=!f.children.some(function(F){return F.children});s.columnModel.getValueColumns().forEach(function(F){var re=s.columnModel.getDisplayNameForColumn(F,"header"),pe=s.createColDef(F,re,l.pivotKeys);pe.pivotTotalColumnIds=v.get(F.getColId()),pe.columnGroupShow="closed",pe.aggFunc=F.getAggFunc(),w||(l.children.push(pe),c.push(pe))}),s.merge(d,v)}else{var x=l;if(!x.pivotValueColumn)return;var I=x.pivotValueColumn.getColId(),M=d.has(I)?d.get(I):[];M.push(x.colId),d.set(I,M)}};i.forEach(function(l){a(l,o,new Map)})}},r.prototype.addPivotTotalsToGroups=function(i,o){var s=this;if(this.gridOptionsWrapper.getPivotColumnGroupTotals()){var a="after"===this.gridOptionsWrapper.getPivotColumnGroupTotals(),l=this.columnModel.getValueColumns(),c=l.map(function(f){return f.getAggFunc()});if(c&&!(c.length<1)&&this.sameAggFuncs(c)){var d=l[0];i.forEach(function(f){s.recursivelyAddPivotTotal(f,o,d,a)})}}},r.prototype.recursivelyAddPivotTotal=function(i,o,s,a){var l=this,c=i;if(!c.children)return i.colId?[i.colId]:null;var f=[];if(c.children.forEach(function(M){var F=l.recursivelyAddPivotTotal(M,o,s,a);F&&(f=f.concat(F))}),c.children.length>1){var w=this.gridOptionsWrapper.getLocaleTextFunc()("pivotColumnGroupTotals","Total"),x=this.createColDef(s,w,i.pivotKeys,!0);x.pivotTotalColumnIds=f,x.aggFunc=s.getAggFunc();var I=i.children;a?I.push(x):I.unshift(x),o.push(x)}return f},r.prototype.addRowGroupTotals=function(i,o,s){var a=this;if(this.gridOptionsWrapper.getPivotRowTotals())for(var l="after"===this.gridOptionsWrapper.getPivotRowTotals(),c=l?s.slice():s.slice().reverse(),d=function(w){var x=c[w],I=[];i.forEach(function(M){I=I.concat(a.extractColIdsForValueColumn(M,x))}),f.createRowGroupTotal(i,o,x,I,l)},f=this,v=0;v<c.length;v++)d(v)},r.prototype.extractColIdsForValueColumn=function(i,o){var s=this;if(!i.children)return i.pivotValueColumn===o&&i.colId?[i.colId]:[];var c=[];return i.children.forEach(function(d){s.extractColIdsForValueColumn(d,o);var f=s.extractColIdsForValueColumn(d,o);c=c.concat(f)}),c},r.prototype.createRowGroupTotal=function(i,o,s,a,l){var d;if(0===this.columnModel.getValueColumns().length)d=this.createColDef(null,"-",[]);else{var f=this.columnModel.getDisplayNameForColumn(s,"header");(d=this.createColDef(s,f,[])).pivotTotalColumnIds=a}d.colId=e.PIVOT_ROW_TOTAL_PREFIX+d.colId,o.push(d),l?i.push(d):i.unshift(d)},r.prototype.createColDef=function(i,o,s,a){void 0===a&&(a=!1);var l={};if(i){var c=i.getColDef();Object.assign(l,c),l.hide=!1}return l.headerName=o,l.colId=this.generateColumnId(s||[],i&&!a?i.getColId():""),l.field=l.colId,l.pivotKeys=s,l.pivotValueColumn=i,!0===l.filter&&(l.filter="agNumberColumnFilter"),l},r.prototype.sameAggFuncs=function(i){if(1==i.length)return!0;for(var o=1;o<i.length;o++)if(i[o]!==i[0])return!1;return!0},r.prototype.headerNameComparator=function(i,o,s){return i?i(o.headerName,s.headerName):o.headerName&&!s.headerName?1:!o.headerName&&s.headerName?-1:o.headerName&&s.headerName?o.headerName<s.headerName?-1:o.headerName>s.headerName?1:0:0},r.prototype.merge=function(i,o){o.forEach(function(s,a,l){var c=i.has(a)?i.get(a):[],d=YY(c,s);i.set(a,d)})},r.prototype.generateColumnGroupId=function(i){return"pivotGroup_"+this.columnModel.getPivotColumns().map(function(s){return s.getColId()}).join("-")+"_"+i.join("-")},r.prototype.generateColumnId=function(i,o){return"pivot_"+this.columnModel.getPivotColumns().map(function(a){return a.getColId()}).join("-")+"_"+i.join("-")+"_"+o},r.PIVOT_ROW_TOTAL_PREFIX="PivotRowTotal_",Bie([Xe("columnModel")],r.prototype,"columnModel",void 0),e=Bie([Kr("pivotColDefService")],r)}(Zi),sNe=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),f7=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},aNe=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.uniqueValues={},e}return sNe(r,t),r.prototype.execute=function(e){var i=e.rowNode,o=e.changedPath;this.columnModel.isPivotActive()?this.executePivotOn(i,o):this.executePivotOff(o)},r.prototype.executePivotOff=function(e){this.aggregationColumnsHashLastTime=null,this.uniqueValues={},this.columnModel.isSecondaryColumnsPresent()&&(this.columnModel.setSecondaryColumns(null,"rowModelUpdated"),e&&e.setInactive())},r.prototype.executePivotOn=function(e,i){var o=this.bucketUpRowNodes(e),s=this.setUniqueValues(o),a=this.columnModel.getValueColumns(),l=a.map(function(I){return I.getId()+"-"+I.getColDef().headerName}).join("#"),c=a.map(function(I){return I.getAggFunc().toString()}).join("#"),d=this.aggregationColumnsHashLastTime!==l,f=this.aggregationFuncsHashLastTime!==c;if(this.aggregationColumnsHashLastTime=l,this.aggregationFuncsHashLastTime=c,s||d||f){var v=this.pivotColDefService.createPivotColumnDefs(this.uniqueValues),w=v.pivotColumnGroupDefs;this.pivotColumnDefs=v.pivotColumnDefs,this.columnModel.setSecondaryColumns(w,"rowModelUpdated"),i&&i.setInactive()}},r.prototype.setUniqueValues=function(e){return!(JSON.stringify(e)===JSON.stringify(this.uniqueValues)||(this.uniqueValues=e,0))},r.prototype.bucketUpRowNodes=function(e){var i=this,o={},s=function(a){a.leafGroup?i.bucketRowNode(a,o):a.childrenAfterFilter.forEach(function(l){s(l)})};return s(e),o},r.prototype.bucketRowNode=function(e,i){var o=this.columnModel.getPivotColumns();e.childrenMapped=0===o.length?null:this.bucketChildren(e.childrenAfterFilter,o,0,i),e.sibling&&(e.sibling.childrenMapped=e.childrenMapped)},r.prototype.bucketChildren=function(e,i,o,s){var a=this,l={},c=i[o];if(e.forEach(function(f){var v=a.valueService.getKeyForNode(c,f);ln.missing(v)&&(v=""),s[v]||(s[v]={}),l[v]||(l[v]=[]),l[v].push(f)}),o===i.length-1)return l;var d={};return ln.iterateObject(l,function(f,v){d[f]=a.bucketChildren(v,i,o+1,s[f])}),d},r.prototype.getPivotColumnDefs=function(){return this.pivotColumnDefs},f7([Xe("valueService")],r.prototype,"valueService",void 0),f7([Xe("columnModel")],r.prototype,"columnModel",void 0),f7([Xe("pivotColDefService")],r.prototype,"pivotColDefService",void 0),f7([Kr("pivotStage")],r)}(Zi),lNe=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Vie=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},Ry=typeof BigInt>"u"?null:BigInt,cNe=function(t){function r(){var i=null!==t&&t.apply(this,arguments)||this;return i.aggFuncsMap={},i.initialised=!1,i}var e;return lNe(r,t),e=r,r.prototype.init=function(){this.initialised||(this.initialiseWithDefaultAggregations(),this.addAggFuncs(this.gridOptionsWrapper.getAggFuncs()))},r.prototype.initialiseWithDefaultAggregations=function(){this.aggFuncsMap[e.AGG_SUM]=uNe,this.aggFuncsMap[e.AGG_FIRST]=dNe,this.aggFuncsMap[e.AGG_LAST]=pNe,this.aggFuncsMap[e.AGG_MIN]=hNe,this.aggFuncsMap[e.AGG_MAX]=fNe,this.aggFuncsMap[e.AGG_COUNT]=mNe,this.aggFuncsMap[e.AGG_AVG]=gNe,this.initialised=!0},r.prototype.isAggFuncPossible=function(i,o){var s=this.getFuncNames(i),a=ln.includes(s,o),l=ln.exists(this.aggFuncsMap[o]);return a&&l},r.prototype.getDefaultAggFunc=function(i){var o=i.getColDef().defaultAggFunc;if(ln.exists(o)&&this.isAggFuncPossible(i,o))return o;if(this.isAggFuncPossible(i,e.AGG_SUM))return e.AGG_SUM;var s=this.getFuncNames(i);return ln.existsAndNotEmpty(s)?s[0]:null},r.prototype.addAggFuncs=function(i){ln.iterateObject(i,this.addAggFunc.bind(this))},r.prototype.addAggFunc=function(i,o){this.init(),this.aggFuncsMap[i]=o},r.prototype.getAggFunc=function(i){return this.init(),this.aggFuncsMap[i]},r.prototype.getFuncNames=function(i){return i.getColDef().allowedAggFuncs??Object.keys(this.aggFuncsMap).sort()},r.prototype.clear=function(){this.aggFuncsMap={}},r.AGG_SUM="sum",r.AGG_FIRST="first",r.AGG_LAST="last",r.AGG_MIN="min",r.AGG_MAX="max",r.AGG_COUNT="count",r.AGG_AVG="avg",Vie([qi],r.prototype,"init",null),e=Vie([Kr("aggFuncService")],r)}(Zi);function uNe(t){for(var r=t.values,e=null,i=0;i<r.length;i++){var o=r[i];"number"==typeof o?null===e?e=o:e+=Ry?"number"==typeof e?o:Ry(o):o:"bigint"==typeof o&&(e=null===e?o:("bigint"==typeof e?e:Ry(e))+o)}return e}function dNe(t){return t.values.length>0?t.values[0]:null}function pNe(t){return t.values.length>0?ln.last(t.values):null}function hNe(t){for(var r=t.values,e=null,i=0;i<r.length;i++){var o=r[i];("number"==typeof o||"bigint"==typeof o)&&(null===e||e>o)&&(e=o)}return e}function fNe(t){for(var r=t.values,e=null,i=0;i<r.length;i++){var o=r[i];("number"==typeof o||"bigint"==typeof o)&&(null===e||e<o)&&(e=o)}return e}function mNe(t){for(var r=t.values,e=0,i=0;i<r.length;i++){var o=r[i];e+=null!=o&&"number"==typeof o.value?o.value:1}return{value:e,toString:function(){return this.value.toString()},toNumber:function(){return this.value}}}function gNe(t){for(var r=t.values,e=0,i=0,o=0;o<r.length;o++){var s=r[o],a=null;"number"==typeof s||"bigint"==typeof s?(a=s,i++):null!=s&&("number"==typeof s.value||"bigint"==typeof s.value)&&"number"==typeof s.count&&(a=Ry?s.value*("number"==typeof s.value?s.count:Ry(s.count)):s.value*s.count,i+=s.count),"number"==typeof a?e+=Ry?"number"==typeof e?a:Ry(a):a:"bigint"==typeof a&&(e=("bigint"==typeof e?e:Ry(e))+a)}var l=null;return i>0&&(l=Ry?e/("number"==typeof e?i:Ry(i)):e/i),{count:i,value:l,toString:function(){return"number"==typeof this.value||"bigint"==typeof this.value?this.value.toString():""},toNumber:function(){return this.value}}}var jie=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Mv=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},Hie=function(t){function r(e,i,o,s,a){var l=t.call(this)||this;return l.column=e,l.dragSourceDropTarget=i,l.ghost=o,l.dropZonePurpose=s,l.horizontal=a,l.popupShowing=!1,l}return jie(r,t),r.prototype.init=function(){var e=this;this.setTemplate(r.TEMPLATE);var i=this.getGui(),o=this.gridOptionsWrapper.isFunctionsReadOnly();this.addElementClasses(i),this.addElementClasses(this.eDragHandle,"drag-handle"),this.addElementClasses(this.eText,"text"),this.addElementClasses(this.eButton,"button"),this.eDragHandle.appendChild(ln.createIconNoSpan("columnDrag",this.gridOptionsWrapper)),this.eButton.appendChild(ln.createIconNoSpan("cancel",this.gridOptionsWrapper)),this.setupSort(),this.displayName=this.columnModel.getDisplayNameForColumn(this.column,"columnDrop"),this.setupComponents(),!this.ghost&&!o&&this.addDragSource(),this.setupAria(),this.addManagedListener(this.column,ms.EVENT_SORT_CHANGED,function(){e.setupAria()}),this.setupTooltip()},r.prototype.setupAria=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),i=this.getColumnAndAggFuncName(),o=i.name,s=i.aggFuncName,a=e("ariaDropZoneColumnComponentAggFuncSeperator"," of "),l={asc:e("ariaDropZoneColumnComponentSortAscending","ascending"),desc:e("ariaDropZoneColumnComponentSortDescending","descending")},c=this.column.getSort(),d=[[s&&""+s+a,o,this.isGroupingZone()&&c&&", "+l[c]].filter(function(I){return!!I}).join("")],f=this.gridOptionsWrapper.isFunctionsReadOnly();if(this.isAggregationZone()&&!f){var v=e("ariaDropZoneColumnValueItemDescription","Press ENTER to change the aggregation type");d.push(v)}if(this.isGroupingZone()&&this.column.getColDef().sortable){var w=e("ariaDropZoneColumnGroupItemDescription","Press ENTER to sort");d.push(w)}var x=e("ariaDropZoneColumnComponentDescription","Press DELETE to remove");d.push(x),ln.setAriaLabel(this.getGui(),d.join(". "))},r.prototype.setupTooltip=function(){var e=this,i=function(){var o=e.column.getColDef().headerTooltip;e.setTooltip(o)};i(),this.addManagedListener(this.eventService,Et.EVENT_NEW_COLUMNS_LOADED,i)},r.prototype.setupSort=function(){var e=this,i=this.column.getColDef().sortable,o=this.isGroupingZone();if(i&&o){this.eSortIndicator.setupSort(this.column,!0);var s=function(a){a.preventDefault();var l=e.gridOptionsWrapper.isMultiSortKeyCtrl();e.sortController.progressSort(e.column,l?a.ctrlKey||a.metaKey:a.shiftKey,"uiColumnSorted")};this.addGuiEventListener("click",s),this.addGuiEventListener("keydown",function(a){a.key===gi.ENTER&&e.isGroupingZone()&&s(a)})}},r.prototype.addDragSource=function(){var e=this,i={type:Ed.ToolPanel,eElement:this.eDragHandle,defaultIconName:Zl.ICON_HIDE,getDragItem:function(){return e.createDragItem()},dragItemName:this.displayName,dragSourceDropTarget:this.dragSourceDropTarget};this.dragAndDropService.addDragSource(i,!0),this.addDestroyFunc(function(){return e.dragAndDropService.removeDragSource(i)})},r.prototype.createDragItem=function(){var e={};return e[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:e}},r.prototype.setupComponents=function(){this.setTextValue(),this.setupRemove(),this.ghost&&this.addCssClass("ag-column-drop-cell-ghost"),this.isAggregationZone()&&!this.gridOptionsWrapper.isFunctionsReadOnly()&&this.addGuiEventListener("click",this.onShowAggFuncSelection.bind(this))},r.prototype.setupRemove=function(){var e=this;ln.setDisplayed(this.eButton,!this.gridOptionsWrapper.isFunctionsReadOnly());var i={type:r.EVENT_COLUMN_REMOVE};this.addGuiEventListener("keydown",function(s){var a=s.key===gi.ENTER;s.key===gi.DELETE&&(s.preventDefault(),e.dispatchEvent(i)),a&&e.isAggregationZone()&&!e.gridOptionsWrapper.isFunctionsReadOnly()&&(s.preventDefault(),e.onShowAggFuncSelection())}),this.addManagedListener(this.eButton,"click",function(s){e.dispatchEvent(i),s.stopPropagation()});var o=new xp(this.eButton);this.addManagedListener(o,xp.EVENT_TAP,function(){e.dispatchEvent(i)}),this.addDestroyFunc(o.destroy.bind(o))},r.prototype.getColumnAndAggFuncName=function(){var e=this.displayName,i="";if(this.isAggregationZone()){var o=this.column.getAggFunc(),s="string"==typeof o?o:"agg";i=this.gridOptionsWrapper.getLocaleTextFunc()(s,s)}return{name:e,aggFuncName:i}},r.prototype.setTextValue=function(){var e=this.getColumnAndAggFuncName(),i=e.name,o=e.aggFuncName,s=this.isAggregationZone()?o+"("+i+")":i,a=ln.escapeString(s);this.eText.innerHTML=a},r.prototype.onShowAggFuncSelection=function(){var e=this;if(!this.popupShowing){this.popupShowing=!0;var i=new $A("select-agg-func"),o=this.aggFuncService.getFuncNames(this.column),s=this.getGui(),a=i.getGui();i.setModel({getRow:function(w){return o[w]},getRowCount:function(){return o.length}}),this.getContext().createBean(i);var l=ln.loadTemplate('<div class="ag-select-agg-func-popup"></div>');l.style.top="0px",l.style.left="0px",l.appendChild(a),l.style.width=s.clientWidth+"px";var d=this.gridOptionsWrapper.getLocaleTextFunc(),f=this.popupService.addPopup({modal:!0,eChild:l,closeOnEsc:!0,closedCallback:function(){e.destroyBean(i),e.popupShowing=!1,s.focus()},ariaLabel:d("ariaLabelAggregationFunction","Aggregation Function")});f&&i.setComponentCreator(this.createAggSelect.bind(this,f.hideFunc)),i.addGuiEventListener("keydown",function(w){if(w.key===gi.ENTER||w.key===gi.SPACE){var x=i.getLastFocusedRow();if(null==x)return;var I=i.getComponentAt(x);I&&I.selectItem()}}),this.popupService.positionPopupUnderComponent({type:"aggFuncSelect",eventSource:s,ePopup:l,keepWithinBounds:!0,column:this.column}),i.refresh();var v=o.findIndex(function(w){return w===e.column.getAggFunc()});-1===v&&(v=0),i.focusRow(v)}},r.prototype.createAggSelect=function(e,i){var o=this,a=this.gridOptionsWrapper.getLocaleTextFunc(),l=i.toString(),c=a(l,l);return new vNe(function(){e(),o.gridOptionsWrapper.isFunctionsPassive()?o.eventService.dispatchEvent({type:Et.EVENT_COLUMN_AGG_FUNC_CHANGE_REQUEST,columns:[o.column],aggFunc:i,api:o.gridApi,columnApi:o.columnApi}):o.columnModel.setColumnAggFunc(o.column,i,"toolPanelDragAndDrop")},c)},r.prototype.addElementClasses=function(e,i){e.classList.add("ag-column-drop-cell"+(i=i?"-"+i:""),"ag-column-drop-"+(this.horizontal?"horizontal":"vertical")+"-cell"+i)},r.prototype.isAggregationZone=function(){return"aggregation"===this.dropZonePurpose},r.prototype.isGroupingZone=function(){return"rowGroup"===this.dropZonePurpose},r.EVENT_COLUMN_REMOVE="columnRemove",r.TEMPLATE='<span role="option" tabindex="0">\n          <span ref="eDragHandle" class="ag-drag-handle ag-column-drop-cell-drag-handle" role="presentation"></span>\n          <span ref="eText" class="ag-column-drop-cell-text" aria-hidden="true"></span>\n          <ag-sort-indicator ref="eSortIndicator"></ag-sort-indicator>\n          <span ref="eButton" class="ag-column-drop-cell-button" role="presentation"></span>\n        </span>',Mv([Xe("dragAndDropService")],r.prototype,"dragAndDropService",void 0),Mv([Xe("columnModel")],r.prototype,"columnModel",void 0),Mv([Xe("popupService")],r.prototype,"popupService",void 0),Mv([_a("aggFuncService")],r.prototype,"aggFuncService",void 0),Mv([Xe("columnApi")],r.prototype,"columnApi",void 0),Mv([Xe("gridApi")],r.prototype,"gridApi",void 0),Mv([Xe("sortController")],r.prototype,"sortController",void 0),Mv([Ti("eText")],r.prototype,"eText",void 0),Mv([Ti("eDragHandle")],r.prototype,"eDragHandle",void 0),Mv([Ti("eButton")],r.prototype,"eButton",void 0),Mv([Ti("eSortIndicator")],r.prototype,"eSortIndicator",void 0),Mv([qi],r.prototype,"init",null),r}(Do),vNe=function(t){function r(e,i){var o=t.call(this,'<div class="ag-select-agg-func-item"/>')||this;return o.selectItem=e,o.getGui().innerText=i,o.addGuiEventListener("click",o.selectItem),o}return jie(r,t),r}(Do),_Ne=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Uie=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},WY=function(t){function r(e,i){var o=t.call(this,'<div class="ag-unselectable" role="presentation"></div>')||this;return o.horizontal=e,o.dropZonePurpose=i,o.state=r.STATE_NOT_DRAGGING,o.guiDestroyFunctions=[],o.childColumnComponents=[],o.resizeEnabled=!1,o.addElementClasses(o.getGui()),o.eColumnDropList=document.createElement("div"),o.addElementClasses(o.eColumnDropList,"list"),ln.setAriaRole(o.eColumnDropList,"listbox"),o}return _Ne(r,t),r.prototype.isHorizontal=function(){return this.horizontal},r.prototype.toggleResizable=function(e){this.positionableFeature.setResizable(!!e&&{bottom:!0}),this.resizeEnabled=e},r.prototype.setBeans=function(e){this.beans=e},r.prototype.destroy=function(){this.destroyGui(),t.prototype.destroy.call(this)},r.prototype.destroyGui=function(){this.guiDestroyFunctions.forEach(function(e){return e()}),this.guiDestroyFunctions.length=0,this.childColumnComponents.length=0,ln.clearElement(this.getGui()),ln.clearElement(this.eColumnDropList)},r.prototype.init=function(e){this.params=e,this.createManagedBean(new xd(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)})),this.addManagedListener(this.beans.eventService,Et.EVENT_NEW_COLUMNS_LOADED,this.refreshGui.bind(this)),this.addManagedListener(this.beans.gridOptionsWrapper,"functionsReadOnly",this.refreshGui.bind(this)),this.setupDropTarget(),this.positionableFeature=new IA(this.getGui(),{minHeight:100}),this.createManagedBean(this.positionableFeature),this.refreshGui(),ln.setAriaLabel(this.eColumnDropList,this.getAriaLabel())},r.prototype.handleKeyDown=function(e){var o=e.key===gi.DOWN,s=e.key===gi.UP;if(this.horizontal){var a=this.gridOptionsWrapper.isEnableRtl();o=!a&&e.key===gi.RIGHT||a&&e.key===gi.LEFT,s=!a&&e.key===gi.LEFT||a&&e.key===gi.RIGHT}if(o||s){var l=this.focusService.findNextFocusableElement(this.getFocusableElement(),!1,s);l&&(e.preventDefault(),l.focus())}},r.prototype.addElementClasses=function(e,i){e.classList.add("ag-column-drop"+(i=i?"-"+i:""),"ag-column-drop-"+(this.horizontal?"horizontal":"vertical")+i)},r.prototype.setupDropTarget=function(){this.dropTarget={getContainer:this.getGui.bind(this),getIconName:this.getIconName.bind(this),onDragging:this.onDragging.bind(this),onDragEnter:this.onDragEnter.bind(this),onDragLeave:this.onDragLeave.bind(this),onDragStop:this.onDragStop.bind(this),isInterestedIn:this.isInterestedIn.bind(this)},this.beans.dragAndDropService.addDropTarget(this.dropTarget)},r.prototype.isInterestedIn=function(e){return e===Ed.HeaderCell||e===Ed.ToolPanel},r.prototype.checkInsertIndex=function(e){var i=this.horizontal?this.getNewHorizontalInsertIndex(e):this.getNewVerticalInsertIndex(e);if(i<0)return!1;var o=i!==this.insertIndex;return o&&(this.insertIndex=i),o},r.prototype.getNewHorizontalInsertIndex=function(e){if(ln.missing(e.hDirection))return-1;var i=0,o=e.event,s=this.beans.gridOptionsWrapper.isEnableRtl(),a=e.hDirection===x_.Left,l=o.clientX;return this.childColumnComponents.forEach(function(c){var d=c.getGui().getBoundingClientRect(),f=a?d.right:d.left;(s?l<=f:l>=f)&&i++}),i},r.prototype.getNewVerticalInsertIndex=function(e){if(ln.missing(e.vDirection))return-1;var i=0,o=e.event;return this.childColumnComponents.forEach(function(s){var a=s.getGui().getBoundingClientRect();o.clientY>=(e.vDirection===j0.Down?a.top:a.bottom)&&i++}),i},r.prototype.checkDragStartedBySelf=function(e){this.state===r.STATE_NOT_DRAGGING&&(this.state=r.STATE_REARRANGE_COLUMNS,this.potentialDndColumns=e.dragSource.getDragItem().columns||[],this.refreshGui(),this.checkInsertIndex(e),this.refreshGui())},r.prototype.onDragging=function(e){this.checkDragStartedBySelf(e),this.checkInsertIndex(e)&&this.refreshGui()},r.prototype.onDragEnter=function(e){var i=e.dragSource.getDragItem().columns||[];this.state=r.STATE_NEW_COLUMNS_IN;var o=i.filter(this.isColumnDroppable.bind(this));if(o.length>0){if(this.isRowGroupPanel()&&!this.gridOptionsWrapper.isSuppressRowGroupHidesColumns()&&!e.fromNudge){var a=e.dragSource.getDragItem();this.setColumnsVisible(a.columns,!1,"uiColumnDragged")}this.potentialDndColumns=o,this.checkInsertIndex(e),this.refreshGui()}},r.prototype.setColumnsVisible=function(e,i,o){if(void 0===o&&(o="api"),e){var s=e.filter(function(a){return!a.getColDef().lockVisible});this.colModel.setColumnsVisible(s,i,o)}},r.prototype.isPotentialDndColumns=function(){return ln.existsAndNotEmpty(this.potentialDndColumns)},r.prototype.isRowGroupPanel=function(){return"rowGroup"===this.dropZonePurpose},r.prototype.onDragLeave=function(e){if(this.state===r.STATE_REARRANGE_COLUMNS){var i=e.dragSource.getDragItem().columns||[];this.removeColumns(i)}if(this.isPotentialDndColumns()){if(this.isRowGroupPanel()&&!this.gridOptionsWrapper.isSuppressMakeColumnVisibleAfterUnGroup()&&!e.fromNudge){var s=e.dragSource.getDragItem(),a=this.potentialDndColumns.filter(function(c){var d;return(null===(d=s.visibleState)||void 0===d?void 0:d[c.getId()])??!1}),l=this.potentialDndColumns.filter(function(c){var d;return!(null===(d=s.visibleState)||void 0===d?void 0:d[c.getId()])});this.setColumnsVisible(a,!1,"uiColumnDragged"),this.setColumnsVisible(l,!0,"uiColumnDragged")}this.potentialDndColumns=[],this.refreshGui()}this.state=r.STATE_NOT_DRAGGING},r.prototype.onDragStop=function(){if(this.isPotentialDndColumns()){var e=!1;this.state===r.STATE_NEW_COLUMNS_IN?(this.addColumns(this.potentialDndColumns),e=!0):e=this.rearrangeColumns(this.potentialDndColumns),this.potentialDndColumns=[],(!this.beans.gridOptionsWrapper.isFunctionsPassive()||!e)&&this.refreshGui()}this.state=r.STATE_NOT_DRAGGING},r.prototype.removeColumns=function(e){var i=this.getExistingColumns().filter(function(o){return!ln.includes(e,o)});this.updateColumns(i)},r.prototype.addColumns=function(e){if(e){var i=this.getExistingColumns().slice(),o=e.filter(function(s){return i.indexOf(s)<0});ln.insertArrayIntoArray(i,o,this.insertIndex),this.updateColumns(i)}},r.prototype.rearrangeColumns=function(e){var i=this.getNonGhostColumns().slice();return ln.insertArrayIntoArray(i,e,this.insertIndex),!ln.areEqual(i,this.getExistingColumns())&&(this.updateColumns(i),!0)},r.prototype.refreshGui=function(){var e=this.eColumnDropList.scrollTop,i=this.resizeEnabled,o=this.getFocusedItem(),s=this.focusService.findNextFocusableElement();s||(s=this.focusService.findNextFocusableElement(void 0,!1,!0)),this.toggleResizable(!1),this.destroyGui(),this.addIconAndTitleToGui(),this.addEmptyMessageToGui(),this.addColumnsToGui(),this.isHorizontal()||(this.eColumnDropList.scrollTop=e),i&&this.toggleResizable(i),this.restoreFocus(o,s)},r.prototype.getFocusedItem=function(){var e=this.getGui(),i=this.gridOptionsWrapper.getDocument().activeElement;return e.contains(i)?Array.from(e.querySelectorAll(".ag-column-drop-cell")).indexOf(i):-1},r.prototype.restoreFocus=function(e,i){var o=this.getGui(),s=Array.from(o.querySelectorAll(".ag-column-drop-cell"));if(-1!==e){0===s.length&&i.focus();var l=s[Math.min(s.length-1,e)];l&&l.focus()}},r.prototype.getNonGhostColumns=function(){var e=this,i=this.getExistingColumns();return this.isPotentialDndColumns()?i.filter(function(o){return!ln.includes(e.potentialDndColumns,o)}):i},r.prototype.addColumnsToGui=function(){var e=this,i=this.getNonGhostColumns(),o=this.isPotentialDndColumns(),s=[];i.forEach(function(a,l){if(!(o&&l>=e.insertIndex)){var c=e.createColumnComponent(a,!1);s.push(c)}}),this.isPotentialDndColumns()&&(this.potentialDndColumns.forEach(function(a){var l=e.createColumnComponent(a,!0);s.push(l)}),i.forEach(function(a,l){if(!(l<e.insertIndex)){var c=e.createColumnComponent(a,!1);s.push(c)}})),this.appendChild(this.eColumnDropList),s.forEach(function(a,l){l>0&&e.addArrow(e.eColumnDropList),e.eColumnDropList.appendChild(a.getGui())}),this.addAriaLabelsToComponents()},r.prototype.addAriaLabelsToComponents=function(){var e=this;this.childColumnComponents.forEach(function(i,o){var s=i.getGui();ln.setAriaPosInSet(s,o+1),ln.setAriaSetSize(s,e.childColumnComponents.length)})},r.prototype.createColumnComponent=function(e,i){var o=this,s=new Hie(e,this.dropTarget,i,this.dropZonePurpose,this.horizontal);return s.addEventListener(Hie.EVENT_COLUMN_REMOVE,this.removeColumns.bind(this,[e])),this.beans.context.createBean(s),this.guiDestroyFunctions.push(function(){return o.destroyBean(s)}),i||this.childColumnComponents.push(s),s},r.prototype.addIconAndTitleToGui=function(){var e=this.params.icon,i=document.createElement("div");if(i.setAttribute("aria-hidden","true"),this.addElementClasses(i,"title-bar"),this.addElementClasses(e,"icon"),this.addOrRemoveCssClass("ag-column-drop-empty",this.isExistingColumnsEmpty()),i.appendChild(e),!this.horizontal){var o=document.createElement("span");this.addElementClasses(o,"title"),o.innerHTML=this.params.title,i.appendChild(o)}this.appendChild(i)},r.prototype.isExistingColumnsEmpty=function(){return 0===this.getExistingColumns().length},r.prototype.addEmptyMessageToGui=function(){if(this.isExistingColumnsEmpty()&&!this.isPotentialDndColumns()){var e=document.createElement("span");e.innerHTML=this.params.emptyMessage,this.addElementClasses(e,"empty-message"),this.eColumnDropList.appendChild(e)}},r.prototype.addArrow=function(e){if(this.horizontal){var i=this.beans.gridOptionsWrapper.isEnableRtl(),o=ln.createIconNoSpan(i?"smallLeft":"smallRight",this.beans.gridOptionsWrapper);this.addElementClasses(o,"cell-separator"),e.appendChild(o)}},r.STATE_NOT_DRAGGING="notDragging",r.STATE_NEW_COLUMNS_IN="newColumnsIn",r.STATE_REARRANGE_COLUMNS="rearrangeColumns",Uie([Xe("columnModel")],r.prototype,"colModel",void 0),Uie([Xe("focusService")],r.prototype,"focusService",void 0),r}(Do),yNe=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Dk=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},zY=function(t){function r(e){return t.call(this,e,"rowGroup")||this}return yNe(r,t),r.prototype.passBeansUp=function(){t.prototype.setBeans.call(this,{gridOptionsWrapper:this.gridOptionsWrapper,eventService:this.eventService,context:this.getContext(),loggerFactory:this.loggerFactory,dragAndDropService:this.dragAndDropService});var e=this.gridOptionsWrapper.getLocaleTextFunc(),i=e("rowGroupColumnsEmptyMessage","Drag here to set row groups"),o=e("groups","Row Groups");t.prototype.init.call(this,{dragAndDropIcon:Zl.ICON_GROUP,icon:ln.createIconNoSpan("rowGroupPanel",this.gridOptionsWrapper,null),emptyMessage:i,title:o}),this.addManagedListener(this.eventService,Et.EVENT_COLUMN_ROW_GROUP_CHANGED,this.refreshGui.bind(this))},r.prototype.getAriaLabel=function(){return this.gridOptionsWrapper.getLocaleTextFunc()("ariaRowGroupDropZonePanelLabel","Row Groups")},r.prototype.getTooltipParams=function(){var e=t.prototype.getTooltipParams.call(this);return e.location="rowGroupColumnsList",e},r.prototype.isColumnDroppable=function(e){return!(this.gridOptionsWrapper.isFunctionsReadOnly()||!e.isPrimary())&&e.isAllowRowGroup()&&!e.isRowGroupActive()},r.prototype.updateColumns=function(e){this.gridOptionsWrapper.isFunctionsPassive()?this.eventService.dispatchEvent({type:Et.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST,columns:e,api:this.gridApi,columnApi:this.columnApi}):this.columnModel.setRowGroupColumns(e,"toolPanelUi")},r.prototype.getIconName=function(){return this.isPotentialDndColumns()?Zl.ICON_GROUP:Zl.ICON_NOT_ALLOWED},r.prototype.getExistingColumns=function(){return this.columnModel.getRowGroupColumns()},Dk([Xe("columnModel")],r.prototype,"columnModel",void 0),Dk([Xe("loggerFactory")],r.prototype,"loggerFactory",void 0),Dk([Xe("dragAndDropService")],r.prototype,"dragAndDropService",void 0),Dk([Xe("columnApi")],r.prototype,"columnApi",void 0),Dk([Xe("gridApi")],r.prototype,"gridApi",void 0),Dk([qi],r.prototype,"passBeansUp",null),r}(WY),bNe=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),kk=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},qY=function(t){function r(e){return t.call(this,e,"pivot")||this}return bNe(r,t),r.prototype.passBeansUp=function(){t.prototype.setBeans.call(this,{gridOptionsWrapper:this.gridOptionsWrapper,eventService:this.eventService,context:this.getContext(),loggerFactory:this.loggerFactory,dragAndDropService:this.dragAndDropService});var e=this.gridOptionsWrapper.getLocaleTextFunc(),i=e("pivotColumnsEmptyMessage","Drag here to set column labels"),o=e("pivots","Column Labels");t.prototype.init.call(this,{dragAndDropIcon:Zl.ICON_GROUP,icon:ln.createIconNoSpan("pivotPanel",this.gridOptionsWrapper,null),emptyMessage:i,title:o}),this.addManagedListener(this.eventService,Et.EVENT_NEW_COLUMNS_LOADED,this.refresh.bind(this)),this.addManagedListener(this.eventService,Et.EVENT_COLUMN_PIVOT_CHANGED,this.refresh.bind(this)),this.addManagedListener(this.eventService,Et.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.checkVisibility.bind(this)),this.refresh()},r.prototype.getAriaLabel=function(){return this.gridOptionsWrapper.getLocaleTextFunc()("ariaPivotDropZonePanelLabel","Column Labels")},r.prototype.getTooltipParams=function(){var e=t.prototype.getTooltipParams.call(this);return e.location="pivotColumnsList",e},r.prototype.refresh=function(){this.checkVisibility(),this.refreshGui()},r.prototype.checkVisibility=function(){var e=this.columnModel.isPivotMode();if(this.isHorizontal())switch(this.gridOptionsWrapper.getPivotPanelShow()){case"always":this.setDisplayed(e);break;case"onlyWhenPivoting":var i=this.columnModel.isPivotActive();this.setDisplayed(e&&i);break;default:this.setDisplayed(!1)}else this.setDisplayed(e)},r.prototype.isColumnDroppable=function(e){return!(this.gridOptionsWrapper.isFunctionsReadOnly()||!e.isPrimary())&&e.isAllowPivot()&&!e.isPivotActive()},r.prototype.updateColumns=function(e){this.gridOptionsWrapper.isFunctionsPassive()?this.eventService.dispatchEvent({type:Et.EVENT_COLUMN_PIVOT_CHANGE_REQUEST,columns:e,api:this.gridApi,columnApi:this.columnApi}):this.columnModel.setPivotColumns(e,"toolPanelUi")},r.prototype.getIconName=function(){return this.isPotentialDndColumns()?Zl.ICON_PIVOT:Zl.ICON_NOT_ALLOWED},r.prototype.getExistingColumns=function(){return this.columnModel.getPivotColumns()},kk([Xe("columnModel")],r.prototype,"columnModel",void 0),kk([Xe("loggerFactory")],r.prototype,"loggerFactory",void 0),kk([Xe("dragAndDropService")],r.prototype,"dragAndDropService",void 0),kk([Xe("columnApi")],r.prototype,"columnApi",void 0),kk([Xe("gridApi")],r.prototype,"gridApi",void 0),kk([qi],r.prototype,"passBeansUp",null),r}(WY),CNe=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),$ie=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},wNe=function(t){function r(){return t.call(this)||this}return CNe(r,t),r.prototype.postConstruct=function(){this.setGui(this.createNorthPanel()),this.addManagedListener(this.eventService,Et.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,Et.EVENT_NEW_COLUMNS_LOADED,this.onRowGroupChanged.bind(this)),this.onRowGroupChanged()},r.prototype.createNorthPanel=function(){var e=document.createElement("div"),i=this.onDropPanelVisible.bind(this);return e.classList.add("ag-column-drop-wrapper"),ln.setAriaRole(e,"presentation"),this.rowGroupComp=new zY(!0),this.createManagedBean(this.rowGroupComp),this.pivotComp=new qY(!0),this.createManagedBean(this.pivotComp),e.appendChild(this.rowGroupComp.getGui()),e.appendChild(this.pivotComp.getGui()),this.addManagedListener(this.rowGroupComp,Do.EVENT_DISPLAYED_CHANGED,i),this.addManagedListener(this.pivotComp,Do.EVENT_DISPLAYED_CHANGED,i),this.onDropPanelVisible(),e},r.prototype.onDropPanelVisible=function(){var e=this.rowGroupComp.isDisplayed()&&this.pivotComp.isDisplayed();this.rowGroupComp.addOrRemoveCssClass("ag-column-drop-horizontal-half-width",e),this.pivotComp.addOrRemoveCssClass("ag-column-drop-horizontal-half-width",e)},r.prototype.onRowGroupChanged=function(){if(this.rowGroupComp){var e=this.gridOptionsWrapper.getRowGroupPanelShow();if(e===Nn.ALWAYS)this.rowGroupComp.setDisplayed(!0);else if(e===Nn.ONLY_WHEN_GROUPING){var i=!this.columnModel.isRowGroupEmpty();this.rowGroupComp.setDisplayed(i)}else this.rowGroupComp.setDisplayed(!1)}},$ie([Xe("columnModel")],r.prototype,"columnModel",void 0),$ie([qi],r.prototype,"postConstruct",null),r}(Do),TNe=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),XY=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},SNe=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return TNe(r,t),r.prototype.execute=function(e){var i=this,o=this.columnModel.isPivotMode(),s=this.filterManager.isAggregateFilterPresent(),c=this.gridOptionsWrapper.getGroupAggFiltering()||(o?function(w){return w.node.leafGroup}:function(w){return!w.node.group}),f=function(w,x){void 0===x&&(x=!1),w.childrenAfterFilter&&(w.childrenAfterAggFilter=w.childrenAfterFilter,x&&w.childrenAfterAggFilter.forEach(function(I){return f(I,x)}),i.setAllChildrenCount(w)),w.sibling&&(w.sibling.childrenAfterAggFilter=w.childrenAfterAggFilter)};e.changedPath.forEachChangedNodeDepthFirst(s?function(w){var x;w.childrenAfterAggFilter=(null===(x=w.childrenAfterFilter)||void 0===x?void 0:x.filter(function(I){var M;return c({node:I})&&i.filterManager.doesRowPassAggregateFilters({rowNode:I})?(f(I,!0),!0):null===(M=I.childrenAfterAggFilter)||void 0===M?void 0:M.length}))||null,i.setAllChildrenCount(w),w.sibling&&(w.sibling.childrenAfterAggFilter=w.childrenAfterAggFilter)}:f,!0)},r.prototype.setAllChildrenCountTreeData=function(e){var i=0;e.childrenAfterAggFilter.forEach(function(o){i++,i+=o.allChildrenCount}),e.setAllChildrenCount(i)},r.prototype.setAllChildrenCountGridGrouping=function(e){var i=0;e.childrenAfterAggFilter.forEach(function(o){o.group?i+=o.allChildrenCount:i++}),e.setAllChildrenCount(i)},r.prototype.setAllChildrenCount=function(e){e.hasChildren()?this.gridOptionsWrapper.isTreeData()?this.setAllChildrenCountTreeData(e):this.setAllChildrenCountGridGrouping(e):e.setAllChildrenCount(null)},XY([Xe("filterManager")],r.prototype,"filterManager",void 0),XY([Xe("columnModel")],r.prototype,"columnModel",void 0),XY([Kr("filterAggregatesStage")],r)}(Zi),Yie={moduleName:mo.RowGroupingModule,beans:[J4e,SNe,nNe,oNe,aNe,cNe],agStackComponents:[{componentName:"AgGridHeaderDropZones",componentClass:wNe}],dependantModules:[rg]},xNe=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Ik=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},Wie=function(t){function r(e){return t.call(this,e,"aggregation")||this}return xNe(r,t),r.prototype.passBeansUp=function(){t.prototype.setBeans.call(this,{gridOptionsWrapper:this.gridOptionsWrapper,eventService:this.eventService,context:this.getContext(),loggerFactory:this.loggerFactory,dragAndDropService:this.dragAndDropService});var e=this.gridOptionsWrapper.getLocaleTextFunc(),i=e("valueColumnsEmptyMessage","Drag here to aggregate"),o=e("values","Values");t.prototype.init.call(this,{dragAndDropIcon:Zl.ICON_AGGREGATE,icon:ln.createIconNoSpan("valuePanel",this.gridOptionsWrapper,null),emptyMessage:i,title:o}),this.addManagedListener(this.eventService,Et.EVENT_COLUMN_VALUE_CHANGED,this.refreshGui.bind(this))},r.prototype.getAriaLabel=function(){return this.gridOptionsWrapper.getLocaleTextFunc()("ariaValuesDropZonePanelLabel","Values")},r.prototype.getTooltipParams=function(){var e=t.prototype.getTooltipParams.call(this);return e.location="valueColumnsList",e},r.prototype.getIconName=function(){return this.isPotentialDndColumns()?Zl.ICON_AGGREGATE:Zl.ICON_NOT_ALLOWED},r.prototype.isColumnDroppable=function(e){return!(this.gridOptionsWrapper.isFunctionsReadOnly()||!e.isPrimary())&&e.isAllowValue()&&!e.isValueActive()},r.prototype.updateColumns=function(e){this.gridOptionsWrapper.isFunctionsPassive()?this.eventService.dispatchEvent({type:Et.EVENT_COLUMN_VALUE_CHANGE_REQUEST,columns:e,api:this.gridApi,columnApi:this.columnApi}):this.columnModel.setValueColumns(e,"toolPanelUi")},r.prototype.getExistingColumns=function(){return this.columnModel.getValueColumns()},Ik([Xe("columnModel")],r.prototype,"columnModel",void 0),Ik([Xe("loggerFactory")],r.prototype,"loggerFactory",void 0),Ik([Xe("dragAndDropService")],r.prototype,"dragAndDropService",void 0),Ik([Xe("columnApi")],r.prototype,"columnApi",void 0),Ik([Xe("gridApi")],r.prototype,"gridApi",void 0),Ik([qi],r.prototype,"passBeansUp",null),r}(WY),ENe=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),KY=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},QY=function(t){function r(){return t.call(this,r.TEMPLATE)||this}return ENe(r,t),r.prototype.postConstruct=function(){this.initialiseTabGuard({})},r.prototype.init=function(e,i,o){this.allowDragging=e,this.params=i,this.eventType=o,this.primaryColsHeaderPanel.init(this.params),this.params.suppressColumnExpandAll&&this.params.suppressColumnFilter&&this.params.suppressColumnSelectAll&&this.primaryColsHeaderPanel.setDisplayed(!1),this.addManagedListener(this.primaryColsListPanel,"groupExpanded",this.onGroupExpanded.bind(this)),this.addManagedListener(this.primaryColsListPanel,"selectionChanged",this.onSelectionChange.bind(this)),this.primaryColsListPanel.init(this.params,this.allowDragging,this.eventType),this.addManagedListener(this.primaryColsHeaderPanel,"expandAll",this.onExpandAll.bind(this)),this.addManagedListener(this.primaryColsHeaderPanel,"collapseAll",this.onCollapseAll.bind(this)),this.addManagedListener(this.primaryColsHeaderPanel,"selectAll",this.onSelectAll.bind(this)),this.addManagedListener(this.primaryColsHeaderPanel,"unselectAll",this.onUnselectAll.bind(this)),this.addManagedListener(this.primaryColsHeaderPanel,"filterChanged",this.onFilterChanged.bind(this)),this.positionableFeature=new IA(this.getGui(),{minHeight:100}),this.createManagedBean(this.positionableFeature)},r.prototype.toggleResizable=function(e){this.positionableFeature.setResizable(!!e&&{bottom:!0})},r.prototype.onExpandAll=function(){this.primaryColsListPanel.doSetExpandedAll(!0)},r.prototype.onCollapseAll=function(){this.primaryColsListPanel.doSetExpandedAll(!1)},r.prototype.expandGroups=function(e){this.primaryColsListPanel.setGroupsExpanded(!0,e)},r.prototype.collapseGroups=function(e){this.primaryColsListPanel.setGroupsExpanded(!1,e)},r.prototype.setColumnLayout=function(e){this.primaryColsListPanel.setColumnLayout(e)},r.prototype.onFilterChanged=function(e){this.primaryColsListPanel.setFilterText(e.filterText)},r.prototype.syncLayoutWithGrid=function(){this.primaryColsListPanel.onColumnsChanged()},r.prototype.onSelectAll=function(){this.primaryColsListPanel.doSetSelectedAll(!0)},r.prototype.onUnselectAll=function(){this.primaryColsListPanel.doSetSelectedAll(!1)},r.prototype.onGroupExpanded=function(e){this.primaryColsHeaderPanel.setExpandState(e.state)},r.prototype.onSelectionChange=function(e){this.primaryColsHeaderPanel.setSelectionState(e.state)},r.TEMPLATE='<div class="ag-column-select">\n            <ag-primary-cols-header ref="primaryColsHeaderPanel"></ag-primary-cols-header>\n            <ag-primary-cols-list ref="primaryColsListPanel"></ag-primary-cols-list>\n        </div>',KY([Ti("primaryColsHeaderPanel")],r.prototype,"primaryColsHeaderPanel",void 0),KY([Ti("primaryColsListPanel")],r.prototype,"primaryColsListPanel",void 0),KY([qi],r.prototype,"postConstruct",null),r}(zC),DNe=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),zie=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},kNe=function(t){function r(){var e=t.call(this,r.TEMPLATE)||this;return e.initialised=!1,e.childDestroyFuncs=[],e}return DNe(r,t),r.prototype.setVisible=function(e){t.prototype.setDisplayed.call(this,e),e&&!this.initialised&&this.init(this.params)},r.prototype.init=function(e){var i=this,o={suppressColumnMove:!1,suppressColumnSelectAll:!1,suppressColumnFilter:!1,suppressColumnExpandAll:!1,contractColumnSelection:!1,suppressPivotMode:!1,suppressRowGroups:!1,suppressValues:!1,suppressPivots:!1,suppressSyncLayoutWithGrid:!1,api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()};if(ln.mergeDeep(o,e),this.params=o,this.isRowGroupingModuleLoaded()&&!this.params.suppressPivotMode&&(this.pivotModePanel=this.createBean(new Gie),this.childDestroyFuncs.push(function(){return i.destroyBean(i.pivotModePanel)}),this.appendChild(this.pivotModePanel)),this.primaryColsPanel=this.createBean(new QY),this.childDestroyFuncs.push(function(){return i.destroyBean(i.primaryColsPanel)}),this.primaryColsPanel.init(!0,this.params,"toolPanelUi"),this.primaryColsPanel.addCssClass("ag-column-panel-column-select"),this.appendChild(this.primaryColsPanel),this.isRowGroupingModuleLoaded()){this.params.suppressRowGroups||(this.rowGroupDropZonePanel=this.createBean(new zY(!1)),this.childDestroyFuncs.push(function(){return i.destroyBean(i.rowGroupDropZonePanel)}),this.appendChild(this.rowGroupDropZonePanel)),this.params.suppressValues||(this.valuesDropZonePanel=this.createBean(new Wie(!1)),this.childDestroyFuncs.push(function(){return i.destroyBean(i.valuesDropZonePanel)}),this.appendChild(this.valuesDropZonePanel)),this.params.suppressPivots||(this.pivotDropZonePanel=this.createBean(new qY(!1)),this.childDestroyFuncs.push(function(){return i.destroyBean(i.pivotDropZonePanel)}),this.appendChild(this.pivotDropZonePanel)),this.setLastVisible();var s=this.addManagedListener(this.eventService,Et.EVENT_COLUMN_PIVOT_MODE_CHANGED,function(){i.resetChildrenHeight(),i.setLastVisible()});this.childDestroyFuncs.push(function(){return s()})}this.initialised=!0},r.prototype.setPivotModeSectionVisible=function(e){var i=this;this.isRowGroupingModuleLoaded()&&(this.pivotModePanel?this.pivotModePanel.setDisplayed(e):e&&(this.pivotModePanel=this.createBean(new Gie),this.getGui().insertBefore(this.pivotModePanel.getGui(),this.getGui().firstChild),this.childDestroyFuncs.push(function(){return i.destroyBean(i.pivotModePanel)})),this.setLastVisible())},r.prototype.setRowGroupsSectionVisible=function(e){this.isRowGroupingModuleLoaded()&&(this.rowGroupDropZonePanel?this.rowGroupDropZonePanel.setDisplayed(e):e&&(this.rowGroupDropZonePanel=this.createManagedBean(new zY(!1)),this.appendChild(this.rowGroupDropZonePanel)),this.setLastVisible())},r.prototype.setValuesSectionVisible=function(e){this.isRowGroupingModuleLoaded()&&(this.valuesDropZonePanel?this.valuesDropZonePanel.setDisplayed(e):e&&(this.valuesDropZonePanel=this.createManagedBean(new Wie(!1)),this.appendChild(this.valuesDropZonePanel)),this.setLastVisible())},r.prototype.setPivotSectionVisible=function(e){this.isRowGroupingModuleLoaded()&&(this.pivotDropZonePanel?this.pivotDropZonePanel.setDisplayed(e):e&&(this.pivotDropZonePanel=this.createManagedBean(new qY(!1)),this.appendChild(this.pivotDropZonePanel),this.pivotDropZonePanel.setDisplayed(e)),this.setLastVisible())},r.prototype.setResizers=function(){[this.primaryColsPanel,this.rowGroupDropZonePanel,this.valuesDropZonePanel,this.pivotDropZonePanel].forEach(function(e){if(e){var i=e.getGui();e.toggleResizable(!i.classList.contains("ag-last-column-drop")&&!i.classList.contains("ag-hidden"))}})},r.prototype.setLastVisible=function(){var e=this.getGui();Array.prototype.slice.call(e.querySelectorAll(".ag-column-drop")).forEach(function(a){return a.classList.remove("ag-last-column-drop")});var o=e.querySelectorAll(".ag-column-drop:not(.ag-hidden)"),s=ln.last(o);s&&s.classList.add("ag-last-column-drop"),this.setResizers()},r.prototype.resetChildrenHeight=function(){for(var i=this.getGui().children,o=0;o<i.length;o++){var s=i[o];s.style.removeProperty("height"),s.style.removeProperty("flex")}},r.prototype.isRowGroupingModuleLoaded=function(){return qo.assertRegistered(mo.RowGroupingModule,"Row Grouping")},r.prototype.expandColumnGroups=function(e){this.primaryColsPanel.expandGroups(e)},r.prototype.collapseColumnGroups=function(e){this.primaryColsPanel.collapseGroups(e)},r.prototype.setColumnLayout=function(e){this.primaryColsPanel.setColumnLayout(e)},r.prototype.syncLayoutWithGrid=function(){this.primaryColsPanel.syncLayoutWithGrid()},r.prototype.destroyChildren=function(){this.childDestroyFuncs.forEach(function(e){return e()}),this.childDestroyFuncs.length=0,ln.clearElement(this.getGui())},r.prototype.refresh=function(){this.destroyChildren(),this.init(this.params)},r.prototype.destroy=function(){this.destroyChildren(),t.prototype.destroy.call(this)},r.TEMPLATE='<div class="ag-column-panel"></div>',zie([Xe("gridApi")],r.prototype,"gridApi",void 0),zie([Xe("columnApi")],r.prototype,"columnApi",void 0),r}(Do),INe=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),qie=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},Xie=function(t){function r(){var e=t.call(this,'<div class="ag-tool-panel-horizontal-resize"></div>')||this;return e.minWidth=100,e.maxWidth=null,e}return INe(r,t),r.prototype.setElementToResize=function(e){this.elementToResize=e},r.prototype.postConstruct=function(){var e=this.horizontalResizeService.addResizeBar({eResizeBar:this.getGui(),dragStartPixels:1,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this),onResizeEnd:this.onResizing.bind(this)});this.addDestroyFunc(e),this.setInverted(this.gridOptionsWrapper.isEnableRtl())},r.prototype.onResizeStart=function(){this.startingWidth=this.elementToResize.offsetWidth},r.prototype.onResizing=function(e){var o=Math.max(this.minWidth,Math.floor(this.startingWidth-e*(this.inverted?-1:1)));null!=this.maxWidth&&(o=Math.min(this.maxWidth,o)),this.elementToResize.style.width=o+"px"},r.prototype.setInverted=function(e){this.inverted=e},r.prototype.setMaxWidth=function(e){this.maxWidth=e},r.prototype.setMinWidth=function(e){this.minWidth=null!=e?e:100},qie([Xe("horizontalResizeService")],r.prototype,"horizontalResizeService",void 0),qie([qi],r.prototype,"postConstruct",null),r}(Do),ANe=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),JY=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},Kie=function(t){function r(e){var i=t.call(this)||this;return i.toolPanelDef=e,i}return ANe(r,t),r.prototype.getToolPanelId=function(){return this.toolPanelDef.id},r.prototype.postConstruct=function(){var e=this.createTemplate();this.setTemplate(e),this.eIconWrapper.insertAdjacentElement("afterbegin",ln.createIconNoSpan(this.toolPanelDef.iconKey,this.gridOptionsWrapper)),this.addManagedListener(this.eToggleButton,"click",this.onButtonPressed.bind(this))},r.prototype.createTemplate=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),i=this.toolPanelDef;return'<div class="ag-side-button" role="presentation">\n                <button type="button" ref="eToggleButton" tabindex="-1" role="tab" class="ag-side-button-button">\n                    <div ref="eIconWrapper" class="ag-side-button-icon-wrapper" aria-hidden="true"></div>\n                    <span class="ag-side-button-label">'+e(i.labelKey,i.labelDefault)+"</span>\n                </button>\n            </div>"},r.prototype.onButtonPressed=function(){this.dispatchEvent({type:r.EVENT_TOGGLE_BUTTON_CLICKED})},r.prototype.setSelected=function(e){this.addOrRemoveCssClass("ag-selected",e)},r.EVENT_TOGGLE_BUTTON_CLICKED="toggleButtonClicked",JY([Ti("eToggleButton")],r.prototype,"eToggleButton",void 0),JY([Ti("eIconWrapper")],r.prototype,"eIconWrapper",void 0),JY([qi],r.prototype,"postConstruct",null),r}(Do),MNe=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),m7=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},Qie=function(t){function r(){var e=t.call(this,r.TEMPLATE)||this;return e.buttonComps=[],e}return MNe(r,t),r.prototype.postConstruct=function(){this.addManagedListener(this.getFocusableElement(),"keydown",this.handleKeyDown.bind(this))},r.prototype.handleKeyDown=function(e){if(e.key===gi.TAB&&e.shiftKey){var i=ln.last(this.columnModel.getAllDisplayedColumns());this.focusService.focusGridView(i,!0)&&e.preventDefault()}},r.prototype.setToolPanelDefs=function(e){e.forEach(this.addButtonComp.bind(this))},r.prototype.setActiveButton=function(e){this.buttonComps.forEach(function(i){i.setSelected(e===i.getToolPanelId())})},r.prototype.addButtonComp=function(e){var i=this,o=this.createBean(new Kie(e));this.buttonComps.push(o),this.appendChild(o),o.addEventListener(Kie.EVENT_TOGGLE_BUTTON_CLICKED,function(){i.dispatchEvent({type:r.EVENT_SIDE_BAR_BUTTON_CLICKED,toolPanelId:e.id})})},r.prototype.clearButtons=function(){this.buttonComps=this.destroyBeans(this.buttonComps),ln.clearElement(this.getGui())},r.EVENT_SIDE_BAR_BUTTON_CLICKED="sideBarButtonClicked",r.TEMPLATE='<div class="ag-side-buttons" role="tablist"></div>',m7([Xe("focusService")],r.prototype,"focusService",void 0),m7([Xe("columnModel")],r.prototype,"columnModel",void 0),m7([qi],r.prototype,"postConstruct",null),m7([Ru],r.prototype,"clearButtons",null),r}(Do),RNe=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Jie=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},ONe=function(t){function r(){return t.call(this,r.TEMPLATE)||this}return RNe(r,t),r.prototype.setupResize=function(){var e=this.getGui(),i=this.resizeBar=new Xie;this.getContext().createBean(i),i.setElementToResize(e),this.appendChild(i)},r.prototype.getToolPanelId=function(){return this.toolPanelId},r.prototype.setToolPanelDef=function(e){var i=e.id,o=e.minWidth,s=e.maxWidth,a=e.width;this.toolPanelId=i,this.width=a;var d=this.userComponentFactory.getToolPanelCompDetails(e,{}).newAgStackInstance();null!=d?(d.then(this.setToolPanelComponent.bind(this)),null!=o&&this.resizeBar.setMinWidth(o),null!=s&&this.resizeBar.setMaxWidth(s)):console.warn("AG Grid: error processing tool panel component "+i+". You need to specify either 'toolPanel' or 'toolPanelFramework'")},r.prototype.setToolPanelComponent=function(e){var i=this;this.toolPanelCompInstance=e,this.appendChild(e.getGui()),this.addDestroyFunc(function(){i.destroyBean(e)}),this.width&&(this.getGui().style.width=this.width+"px")},r.prototype.getToolPanelInstance=function(){return this.toolPanelCompInstance},r.prototype.setResizerSizerSide=function(e){var i=this.gridOptionsWrapper.isEnableRtl(),o="left"===e;this.resizeBar.setInverted(i?o:!o)},r.prototype.refresh=function(){this.toolPanelCompInstance.refresh()},r.TEMPLATE='<div class="ag-tool-panel-wrapper"/>',Jie([Xe("userComponentFactory")],r.prototype,"userComponentFactory",void 0),Jie([qi],r.prototype,"setupResize",null),r}(Do),FNe=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),g7=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},PNe=function(t){function r(){var e=t.call(this,r.TEMPLATE)||this;return e.toolPanelWrappers=[],e}return FNe(r,t),r.prototype.postConstruct=function(){var e=this;this.sideBarButtonsComp.addEventListener(Qie.EVENT_SIDE_BAR_BUTTON_CLICKED,this.onToolPanelButtonClicked.bind(this)),this.setSideBarDef(),this.gridOptionsWrapper.addEventListener("sideBar",function(){e.clearDownUi(),e.setSideBarDef()}),this.gridApi.registerSideBarComp(this),this.createManagedBean(new xd(this.getFocusableElement(),{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this)}))},r.prototype.onTabKeyDown=function(e){if(!e.defaultPrevented){var o=this.focusService,s=this.sideBarButtonsComp,a=this.getGui(),l=s.getGui(),d=this.gridOptionsWrapper.getDocument().activeElement,f=a.querySelector(".ag-tool-panel-wrapper:not(.ag-hidden)");if(f)if(l.contains(d))o.focusInto(f,e.shiftKey)&&e.preventDefault();else if(!o.isFocusUnderManagedComponent(f)&&e.shiftKey){var v=o.findFocusableElements(f)[0];if(this.gridOptionsWrapper.getDocument().activeElement===v){var x=l.querySelector(".ag-selected button");x&&(e.preventDefault(),x.focus())}}}},r.prototype.handleKeyDown=function(e){var i=this.gridOptionsWrapper.getDocument();if(this.sideBarButtonsComp.getGui().contains(i.activeElement)){var o=this.sideBarButtonsComp.getGui(),s=Array.prototype.slice.call(o.querySelectorAll(".ag-side-button")),a=i.activeElement,l=s.findIndex(function(f){return f.contains(a)}),c=null;switch(e.key){case gi.LEFT:case gi.UP:c=Math.max(0,l-1);break;case gi.RIGHT:case gi.DOWN:c=Math.min(l+1,s.length-1)}if(null!==c){var d=s[c].querySelector("button");d&&(d.focus(),e.preventDefault())}}},r.prototype.onToolPanelButtonClicked=function(e){var i=e.toolPanelId,o=this.openedItem();this.openToolPanel(o===i?void 0:i)},r.prototype.clearDownUi=function(){this.sideBarButtonsComp.clearButtons(),this.destroyToolPanelWrappers()},r.prototype.setSideBarDef=function(){this.setDisplayed(!1);var e=this.gridOptionsWrapper.getSideBar(),i=!!e&&!!e.toolPanels;if(i){this.setDisplayed(i&&!e.hiddenByDefault);var s=e.toolPanels;this.sideBarButtonsComp.setToolPanelDefs(s),this.setupToolPanels(s),this.setSideBarPosition(e.position),e.hiddenByDefault||this.openToolPanel(e.defaultToolPanel)}},r.prototype.setSideBarPosition=function(e){e||(e="right");var i="left"===e,o=i?"right":"left";return this.addOrRemoveCssClass("ag-side-bar-left",i),this.addOrRemoveCssClass("ag-side-bar-right",!i),this.toolPanelWrappers.forEach(function(s){s.setResizerSizerSide(o)}),this},r.prototype.setupToolPanels=function(e){var i=this;e.forEach(function(o){if(null!=o.id){if("agColumnsToolPanel"===o.toolPanel&&!qo.assertRegistered(mo.ColumnToolPanelModule,"Column Tool Panel"))return;if("agFiltersToolPanel"===o.toolPanel&&!qo.assertRegistered(mo.FiltersToolPanelModule,"Filters Tool Panel"))return;var a=new ONe;i.getContext().createBean(a),a.setToolPanelDef(o),a.setDisplayed(!1),i.getGui().appendChild(a.getGui()),i.toolPanelWrappers.push(a)}else console.warn("AG Grid: please review all your toolPanel components, it seems like at least one of them doesn't have an id")})},r.prototype.refresh=function(){this.toolPanelWrappers.forEach(function(e){return e.refresh()})},r.prototype.openToolPanel=function(e){var i=this.openedItem();i!==e&&(this.toolPanelWrappers.forEach(function(a){var l=e===a.getToolPanelId();a.setDisplayed(l)}),i!==this.openedItem()&&(this.sideBarButtonsComp.setActiveButton(e),this.raiseToolPanelVisibleEvent(e)))},r.prototype.getToolPanelInstance=function(e){var i=this.toolPanelWrappers.filter(function(o){return o.getToolPanelId()===e})[0];if(i)return i.getToolPanelInstance();console.warn("AG Grid: unable to lookup Tool Panel as invalid key supplied: "+e)},r.prototype.raiseToolPanelVisibleEvent=function(e){var i={type:Et.EVENT_TOOL_PANEL_VISIBLE_CHANGED,source:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()};this.eventService.dispatchEvent(i)},r.prototype.close=function(){this.openToolPanel(void 0)},r.prototype.isToolPanelShowing=function(){return!!this.openedItem()},r.prototype.openedItem=function(){var e=null;return this.toolPanelWrappers.forEach(function(i){i.isDisplayed()&&(e=i.getToolPanelId())}),e},r.prototype.destroyToolPanelWrappers=function(){var e=this;this.toolPanelWrappers.forEach(function(i){ln.removeFromParent(i.getGui()),e.destroyBean(i)}),this.toolPanelWrappers.length=0},r.prototype.destroy=function(){this.destroyToolPanelWrappers(),t.prototype.destroy.call(this)},r.TEMPLATE='<div class="ag-side-bar ag-unselectable">\n            <ag-side-bar-buttons ref="sideBarButtons"></ag-side-bar-buttons>\n        </div>',g7([Xe("gridApi")],r.prototype,"gridApi",void 0),g7([Xe("focusService")],r.prototype,"focusService",void 0),g7([Ti("sideBarButtons")],r.prototype,"sideBarButtonsComp",void 0),g7([qi],r.prototype,"postConstruct",null),r}(Do),LNe=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Zie=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},NNe=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.isColGroupDef=function(i){return i&&typeof i.children<"u"},e.getId=function(i){return e.isColGroupDef(i)?i.groupId:i.colId},e}return LNe(r,t),r.prototype.createColumnTree=function(e){var i=this,o=[],s=function(l,c){if(i.isColGroupDef(l)){var d=l,v=new Zr(d,typeof d.groupId<"u"?d.groupId:d.headerName,!1,c),w=[];return d.children.forEach(function(F){var re=s(F,c+1);re&&w.push(re)}),v.setChildren(w),v}var x=l,M=i.columnModel.getPrimaryColumn(x.colId?x.colId:x.field);return M||o.push(x),M},a=[];return e.forEach(function(l){var c=s(l,0);c&&a.push(c)}),o.length>0&&console.warn("AG Grid: unable to find grid columns for the supplied colDef(s):",o),a},r.prototype.syncLayoutWithGrid=function(e){var i=this.getLeafPathTrees();e(this.mergeLeafPathTrees(i))},r.prototype.getLeafPathTrees=function(){var e=function(s,a){var l;if(s instanceof Zr)if(s.isPadding())l=a;else{var c=Object.assign({},s.getColGroupDef());c.groupId=s.getGroupId(),c.children=[a],l=c}else{var d=Object.assign({},s.getColDef());d.colId=s.getColId(),l=d}var f=s.getOriginalParent();return f?e(f,l):l};return this.columnModel.getAllGridColumns().filter(function(s){var a=s.getColDef();return s.isPrimary()&&!a.showRowGroup}).map(function(s){return e(s,s.getColDef())})},r.prototype.mergeLeafPathTrees=function(e){for(var i=this,a=function(v,w){if(!i.isColGroupDef(w))return v;var x=v,I=w;return I.children&&I.groupId&&i.addChildrenToGroup(x,I.groupId,I.children[0])||I.children.forEach(function(F){return a(x,F)}),x},l=[],c=1;c<=e.length;c++){var d=e[c-1],f=e[c];w=f,i.isColGroupDef(v=d)&&i.isColGroupDef(w)&&i.getId(v)===i.getId(w)?e[c]=a(d,f):l.push(d)}var v,w;return l},r.prototype.addChildrenToGroup=function(e,i,o){var s=this;if(!this.isColGroupDef(e))return!0;var v,w,x,I,M,F,l=e,c=o;if(w=c,x=(v=l).children.map(s.getId),I=ln.includes(x,s.getId(w)),F=(M=ln.last(v.children))&&s.getId(M)!==s.getId(w),I&&F)return l.children.push(c),!0;if(l.groupId===i){var d=l.children.map(this.getId);if(!ln.includes(d,this.getId(c)))return l.children.push(c),!0}return l.children.forEach(function(v){return s.addChildrenToGroup(v,i,o)}),!1},Zie([Xe("columnModel")],r.prototype,"columnModel",void 0),Zie([Kr("toolPanelColDefService")],r)}(Zi),ZY={moduleName:mo.SideBarModule,beans:[NNe],agStackComponents:[{componentName:"AgHorizontalResize",componentClass:Xie},{componentName:"AgSideBar",componentClass:PNe},{componentName:"AgSideBarButtons",componentClass:Qie}],dependantModules:[rg]},Yx=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},GNe=function(){function t(){}return t.prototype.selectAllChildren=function(r,e,i){var o=this.extractAllLeafColumns(r);this.setAllColumns(o,e,i)},t.prototype.setColumn=function(r,e,i){this.setAllColumns([r],e,i)},t.prototype.setAllColumns=function(r,e,i){this.columnModel.isPivotMode()?this.setAllPivot(r,e,i):this.setAllVisible(r,e,i)},t.prototype.extractAllLeafColumns=function(r){var e=[],i=function(o){o.forEach(function(s){s.isPassesFilter()&&(s.isGroup()?i(s.getChildren()):e.push(s.getColumn()))})};return i(r),e},t.prototype.setAllVisible=function(r,e,i){var o=[];r.forEach(function(s){s.getColDef().lockVisible||s.isVisible()!=e&&o.push({colId:s.getId(),hide:!e})}),o.length>0&&this.columnModel.applyColumnState({state:o},i)},t.prototype.setAllPivot=function(r,e,i){this.gridOptionsWrapper.isFunctionsPassive()?this.setAllPivotPassive(r,e):this.setAllPivotActive(r,e,i)},t.prototype.setAllPivotPassive=function(r,e){var i=this.columnModel.getPivotColumns().slice(),o=this.columnModel.getValueColumns().slice(),s=this.columnModel.getRowGroupColumns().slice(),a=!1,l=!1,c=!1;r.forEach(e?function(M){M.isAnyFunctionActive()||(M.isAllowValue()?(o.push(M),l=!0):M.isAllowRowGroup()?(s.push(M),a=!0):M.isAllowPivot()&&(i.push(M),c=!0))}:function(M){M.isAnyFunctionActive()&&(i.indexOf(M)>=0&&(ln.removeFromArray(i,M),a=!0),o.indexOf(M)>=0&&(ln.removeFromArray(o,M),l=!0),s.indexOf(M)>=0&&(ln.removeFromArray(s,M),c=!0))}),a&&this.eventService.dispatchEvent({type:Et.EVENT_COLUMN_PIVOT_CHANGE_REQUEST,columns:i,api:this.gridApi,columnApi:this.columnApi}),c&&this.eventService.dispatchEvent({type:Et.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST,columns:s,api:this.gridApi,columnApi:this.columnApi}),l&&this.eventService.dispatchEvent({type:Et.EVENT_COLUMN_VALUE_CHANGE_REQUEST,columns:s,api:this.gridApi,columnApi:this.columnApi})},t.prototype.setAllPivotActive=function(r,e,i){var o=this,s=[];r.forEach(e?function(d){if(!d.isAnyFunctionActive())if(d.isAllowValue()){var f="string"==typeof d.getAggFunc()?d.getAggFunc():o.aggFuncService.getDefaultAggFunc(d);s.push({colId:d.getId(),aggFunc:f})}else d.isAllowRowGroup()?s.push({colId:d.getId(),rowGroup:!0}):d.isAllowPivot()&&s.push({colId:d.getId(),pivot:!0})}:function(d){(d.isPivotActive()||d.isRowGroupActive()||d.isValueActive())&&s.push({colId:d.getId(),pivot:!1,rowGroup:!1,aggFunc:null})}),s.length>0&&this.columnModel.applyColumnState({state:s},i)},Yx([Xe("aggFuncService")],t.prototype,"aggFuncService",void 0),Yx([Xe("columnModel")],t.prototype,"columnModel",void 0),Yx([Xe("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Yx([Xe("columnApi")],t.prototype,"columnApi",void 0),Yx([Xe("gridApi")],t.prototype,"gridApi",void 0),Yx([Xe("eventService")],t.prototype,"eventService",void 0),Yx([Kr("modelItemUtils")],t)}(),BNe={moduleName:mo.ColumnToolPanelModule,beans:[GNe],agStackComponents:[{componentName:"AgPrimaryColsHeader",componentClass:L4e},{componentName:"AgPrimaryColsList",componentClass:X4e},{componentName:"AgPrimaryCols",componentClass:QY}],userComponents:[{componentName:"agColumnsToolPanel",componentClass:kNe}],dependantModules:[rg,Yie,ZY]},ere=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Rv=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},VNe=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return ere(r,t),r.prototype.hideActiveMenu=function(){this.destroyBean(this.activeMenu)},r.prototype.showMenuAfterMouseEvent=function(e,i,o){var s=this;this.showMenu(e,function(a){var l=a.getGui();s.popupService.positionPopupUnderMouseEvent({type:"columnMenu",column:e,mouseEvent:i,ePopup:l}),o&&a.showTab(o)},"columnMenu",o,void 0,i.target)},r.prototype.showMenuAfterButtonClick=function(e,i,o,s,a){var l=this,c=-1,d="left";this.gridOptionsWrapper.isEnableRtl()&&(c=1,d="right"),this.showMenu(e,function(f){var v=f.getGui();l.popupService.positionPopupUnderComponent({type:o,column:e,eventSource:i,ePopup:v,alignSide:d,nudgeX:9*c,nudgeY:-23,keepWithinBounds:!0}),s&&f.showTab(s)},o,s,a,i)},r.prototype.showMenu=function(e,i,o,s,a,l){var c=this,d=this.createBean(new eW(e,this.lastSelectedTab,a)),f=d.getGui(),v=l||this.ctrlsService.getGridBodyCtrl().getGui(),w=[];w.push(function(F){if(c.destroyBean(d),e.setMenuVisible(!1,"contextMenu"),F instanceof KeyboardEvent&&l&&ln.isVisible(l)){var pe=c.focusService.findTabbableParent(l);pe&&pe.focus()}});var x=this.gridOptionsWrapper.getLocaleTextFunc(),I=this.popupService.addPopup({modal:!0,eChild:f,closeOnEsc:!0,closedCallback:function(F){w.forEach(function(re){return re(F)})},afterGuiAttached:function(F){return d.afterGuiAttached(Object.assign({},{container:o},F))},positionCallback:function(){return i(d)},anchorToElement:v,ariaLabel:x("ariaLabelColumnMenu","Column Menu")});if(I){var M=I.stopAnchoringPromise;M&&M.then(function(F){e.addEventListener(ms.EVENT_LEFT_CHANGED,F),e.addEventListener(ms.EVENT_VISIBLE_CHANGED,F),w.push(function(){e.removeEventListener(ms.EVENT_LEFT_CHANGED,F),e.removeEventListener(ms.EVENT_VISIBLE_CHANGED,F)})})}s||(d.showTabBasedOnPreviousSelection(),i(d)),d.addEventListener(eW.EVENT_TAB_SELECTED,function(F){c.lastSelectedTab=F.key}),e.setMenuVisible(!0,"contextMenu"),this.activeMenu=d,d.addEventListener(Zi.EVENT_DESTROYED,function(){c.activeMenu===d&&(c.activeMenu=null)})},r.prototype.isMenuEnabled=function(e){return e.getMenuTabs(eW.TABS_DEFAULT).length>0},Rv([Xe("popupService")],r.prototype,"popupService",void 0),Rv([Xe("focusService")],r.prototype,"focusService",void 0),Rv([Xe("ctrlsService")],r.prototype,"ctrlsService",void 0),Rv([Kr("menuFactory")],r)}(Zi),eW=function(t){function r(e,i,o){var s=t.call(this)||this;return s.tabFactories={},s.includeChecks={},s.column=e,s.initialSelection=i,s.tabFactories[r.TAB_GENERAL]=s.createMainPanel.bind(s),s.tabFactories[r.TAB_FILTER]=s.createFilterPanel.bind(s),s.tabFactories[r.TAB_COLUMNS]=s.createColumnsPanel.bind(s),s.includeChecks[r.TAB_GENERAL]=function(){return!0},s.includeChecks[r.TAB_FILTER]=function(){return e.isFilterAllowed()},s.includeChecks[r.TAB_COLUMNS]=function(){return!0},s.restrictTo=o,s}return ere(r,t),r.prototype.init=function(){var e=this,i=this.getTabsToCreate().map(function(o){return e.createTab(o)});this.tabbedLayout=new BL({items:i,cssClass:"ag-menu",onActiveItemClicked:this.onHidePopup.bind(this),onItemClicked:this.onTabItemClicked.bind(this)}),this.createBean(this.tabbedLayout),this.mainMenuList&&this.mainMenuList.setParentComponent(this.tabbedLayout)},r.prototype.getTabsToCreate=function(){var e=this;return this.restrictTo?this.restrictTo:this.column.getMenuTabs(r.TABS_DEFAULT).filter(function(i){return e.isValidMenuTabItem(i)}).filter(function(i){return e.isNotSuppressed(i)}).filter(function(i){return e.isModuleLoaded(i)})},r.prototype.isModuleLoaded=function(e){return e!==r.TAB_COLUMNS||qo.isRegistered(mo.ColumnToolPanelModule)},r.prototype.isValidMenuTabItem=function(e){var i=!0,o=r.TABS_DEFAULT;return null!=this.restrictTo&&(i=this.restrictTo.indexOf(e)>-1,o=this.restrictTo),(i=i&&r.TABS_DEFAULT.indexOf(e)>-1)||console.warn("AG Grid: Trying to render an invalid menu item '"+e+"'. Check that your 'menuTabs' contains one of ["+o+"]"),i},r.prototype.isNotSuppressed=function(e){return this.includeChecks[e]()},r.prototype.createTab=function(e){return this.tabFactories[e]()},r.prototype.showTabBasedOnPreviousSelection=function(){this.showTab(this.initialSelection)},r.prototype.showTab=function(e){this.tabItemColumns&&e===r.TAB_COLUMNS?this.tabbedLayout.showItem(this.tabItemColumns):this.tabItemFilter&&e===r.TAB_FILTER?this.tabbedLayout.showItem(this.tabItemFilter):this.tabItemGeneral&&e===r.TAB_GENERAL?this.tabbedLayout.showItem(this.tabItemGeneral):this.tabbedLayout.showFirstItem()},r.prototype.onTabItemClicked=function(e){var i=null;switch(e.item){case this.tabItemColumns:i=r.TAB_COLUMNS;break;case this.tabItemFilter:i=r.TAB_FILTER;break;case this.tabItemGeneral:i=r.TAB_GENERAL}i&&this.activateTab(i)},r.prototype.activateTab=function(e){this.dispatchEvent({type:r.EVENT_TAB_SELECTED,key:e})},r.prototype.getMenuItems=function(){var i,e=this.getDefaultMenuOptions(),o=this.gridOptionsWrapper.getMainMenuItemsFunc();return i=o?o({column:this.column,defaultItems:e}):e,ln.removeRepeatsFromArray(i,r.MENU_ITEM_SEPARATOR),i},r.prototype.getDefaultMenuOptions=function(){var e=[],i=!this.column.getColDef().lockPinned,o=this.columnModel.getRowGroupColumns().length,s=o>0,a=this.columnModel.getRowGroupColumns().indexOf(this.column)>=0,l=this.column.isAllowValue(),c=this.column.isAllowRowGroup(),d=this.column.isPrimary(),f=this.columnModel.isPivotMode(),v=this.rowModel.getType()===Nn.ROW_MODEL_TYPE_CLIENT_SIDE,w=this.gridOptionsWrapper.isTreeData(),x=d&&s&&l||!d;return i&&e.push("pinSubMenu"),x&&e.push("valueAggSubMenu"),(i||x)&&e.push(r.MENU_ITEM_SEPARATOR),e.push("autoSizeThis"),e.push("autoSizeAll"),e.push(r.MENU_ITEM_SEPARATOR),c&&this.column.isPrimary()&&e.push(a?"rowUnGroup":"rowGroup"),e.push(r.MENU_ITEM_SEPARATOR),e.push("resetColumns"),v&&(w||o>(f?1:0))&&(e.push("expandAll"),e.push("contractAll")),e},r.prototype.createMainPanel=function(){this.mainMenuList=this.createManagedBean(new HA);var e=this.getMenuItems(),i=this.menuItemMapper.mapWithStockItems(e,this.column);return this.mainMenuList.addMenuItems(i),this.mainMenuList.addEventListener(sf.EVENT_MENU_ITEM_SELECTED,this.onHidePopup.bind(this)),this.tabItemGeneral={title:ln.createIconNoSpan("menu",this.gridOptionsWrapper,this.column),titleLabel:r.TAB_GENERAL.replace("MenuTab",""),bodyPromise:Zu.resolve(this.mainMenuList.getGui()),name:r.TAB_GENERAL},this.tabItemGeneral},r.prototype.onHidePopup=function(e){var i;e&&e.event&&e.event instanceof KeyboardEvent&&(i=e.event),this.hidePopupFunc(i&&{keyboardEvent:i});var o=this.focusService.getFocusedCell(),s=this.gridOptionsWrapper.getDocument();s.activeElement===s.body&&o&&this.focusService.setFocusedCell({rowIndex:o.rowIndex,column:o.column,rowPinned:o.rowPinned,forceBrowserFocus:!0})},r.prototype.createFilterPanel=function(){var e,i=this.filterManager.getOrCreateFilterWrapper(this.column,"COLUMN_MENU");if(!i)throw new Error("AG Grid - Unable to instantiate filter");return this.tabItemFilter={title:ln.createIconNoSpan("filter",this.gridOptionsWrapper,this.column),titleLabel:r.TAB_FILTER.replace("MenuTab",""),bodyPromise:null===(e=i)||void 0===e?void 0:e.guiPromise,afterAttachedCallback:function(s){var a;null!==(a=i)&&void 0!==a&&a.filterPromise&&i.filterPromise.then(function(l){l&&l.afterGuiAttached&&l.afterGuiAttached(s)})},name:r.TAB_FILTER},this.tabItemFilter},r.prototype.createColumnsPanel=function(){var e=document.createElement("div");e.classList.add("ag-menu-column-select-wrapper"),this.columnSelectPanel=this.createManagedBean(new QY);var i=this.column.getColDef().columnsMenuParams;i||(i={}),this.columnSelectPanel.init(!1,{suppressColumnMove:!1,suppressValues:!1,suppressPivots:!1,suppressRowGroups:!1,suppressPivotMode:!1,contractColumnSelection:!!i.contractColumnSelection,suppressColumnExpandAll:!!i.suppressColumnExpandAll,suppressColumnFilter:!!i.suppressColumnFilter,suppressColumnSelectAll:!!i.suppressColumnSelectAll,suppressSyncLayoutWithGrid:!!i.suppressSyncLayoutWithGrid,api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()},"columnMenu");var o=this.columnSelectPanel.getGui();return o.classList.add("ag-menu-column-select"),e.appendChild(o),this.tabItemColumns={title:ln.createIconNoSpan("columns",this.gridOptionsWrapper,this.column),titleLabel:r.TAB_COLUMNS.replace("MenuTab",""),bodyPromise:Zu.resolve(e),name:r.TAB_COLUMNS},this.tabItemColumns},r.prototype.afterGuiAttached=function(e){var o=e.hidePopup;this.tabbedLayout.setAfterAttachedParams({container:e.container,hidePopup:o}),o&&(this.hidePopupFunc=o,this.addDestroyFunc(o))},r.prototype.getGui=function(){return this.tabbedLayout.getGui()},r.EVENT_TAB_SELECTED="tabSelected",r.TAB_FILTER="filterMenuTab",r.TABS_DEFAULT=[r.TAB_GENERAL="generalMenuTab",r.TAB_FILTER,r.TAB_COLUMNS="columnsMenuTab"],r.MENU_ITEM_SEPARATOR="separator",Rv([Xe("columnModel")],r.prototype,"columnModel",void 0),Rv([Xe("filterManager")],r.prototype,"filterManager",void 0),Rv([Xe("gridApi")],r.prototype,"gridApi",void 0),Rv([Xe("columnApi")],r.prototype,"columnApi",void 0),Rv([Xe("menuItemMapper")],r.prototype,"menuItemMapper",void 0),Rv([Xe("rowModel")],r.prototype,"rowModel",void 0),Rv([Xe("focusService")],r.prototype,"focusService",void 0),Rv([qi],r.prototype,"init",null),r}(Zi),tre=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Ob=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},nre="ag-context-menu-open",HNe=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return tre(r,t),r.prototype.hideActiveMenu=function(){this.destroyBean(this.activeMenu)},r.prototype.getMenuItems=function(e,i,o){var s=[];if(ln.exists(e)&&qo.isRegistered(mo.ClipboardModule)&&i&&s.push("copy","copyWithHeaders","copyWithGroupHeaders","paste","separator"),this.gridOptionsWrapper.isEnableCharts()&&qo.isRegistered(mo.RangeSelectionModule)&&qo.isRegistered(mo.GridChartsModule)&&(this.columnModel.isPivotMode()&&s.push("pivotChart"),this.rangeService&&!this.rangeService.isEmpty()&&s.push("chartRange")),ln.exists(e)){var a=!qo.isRegistered(mo.CsvExportModule),l=!qo.isRegistered(mo.ExcelExportModule),c=this.gridOptionsWrapper.isSuppressExcelExport()||l,d=this.gridOptionsWrapper.isSuppressCsvExport()||a;!(ln.isIOSUserAgent()||c&&d)&&s.push("export")}if(this.gridOptionsWrapper.getContextMenuItemsFunc()){var w=this.gridOptionsWrapper.getContextMenuItemsFunc();return w?w({node:e,column:i,value:o,defaultItems:s.length?s:void 0}):void 0}return s},r.prototype.onContextMenu=function(e,i,o,s,a,l){!this.gridOptionsWrapper.isAllowContextMenuWithControlKey()&&e&&(e.ctrlKey||e.metaKey)||(e&&this.blockMiddleClickScrollsIfNeeded(e),this.gridOptionsWrapper.isSuppressContextMenu())||this.showMenu(o,s,a,e||i.touches[0],l)&&(e||i).preventDefault()},r.prototype.blockMiddleClickScrollsIfNeeded=function(e){var o=e.which;this.gridOptionsWrapper.isSuppressMiddleClickScrolls()&&2===o&&e.preventDefault()},r.prototype.showMenu=function(e,i,o,s,a){var l=this,c=this.getMenuItems(e,i,o),d=this.ctrlsService.getGridBodyCtrl().getGui();if(void 0===c||ln.missingOrEmpty(c))return!1;var f=new UNe(c);this.createBean(f);var v=f.getGui(),w={column:i,rowNode:e,type:"contextMenu",mouseEvent:s,ePopup:v,nudgeY:1},x=this.gridOptionsWrapper.getLocaleTextFunc(),I=this.popupService.addPopup({modal:!0,eChild:v,closeOnEsc:!0,closedCallback:function(){d.classList.remove(nre),l.destroyBean(f)},click:s,positionCallback:function(){l.popupService.positionPopupUnderMouseEvent(Object.assign({},{nudgeX:l.gridOptionsWrapper.isEnableRtl()?-1*(v.offsetWidth+1):1},w))},anchorToElement:a,ariaLabel:x("ariaLabelContextMenu","Context Menu")});return I&&(d.classList.add(nre),f.afterGuiAttached({container:"contextMenu",hidePopup:I.hideFunc})),this.activeMenu&&this.hideActiveMenu(),this.activeMenu=f,f.addEventListener(Zi.EVENT_DESTROYED,function(){l.activeMenu===f&&(l.activeMenu=null)}),I&&f.addEventListener(sf.EVENT_MENU_ITEM_SELECTED,I.hideFunc),!0},Ob([Xe("popupService")],r.prototype,"popupService",void 0),Ob([_a("rangeService")],r.prototype,"rangeService",void 0),Ob([Xe("ctrlsService")],r.prototype,"ctrlsService",void 0),Ob([Xe("columnModel")],r.prototype,"columnModel",void 0),Ob([Kr("contextMenuFactory")],r)}(Zi),UNe=function(t){function r(e){var i=t.call(this,'<div class="ag-menu" role="presentation"></div>')||this;return i.menuList=null,i.focusedCell=null,i.menuItems=e,i}return tre(r,t),r.prototype.addMenuItems=function(){var e=this,i=this.createBean(new HA),o=this.menuItemMapper.mapWithStockItems(this.menuItems,null);i.addMenuItems(o),this.appendChild(i),this.menuList=i,i.addEventListener(sf.EVENT_MENU_ITEM_SELECTED,function(s){return e.dispatchEvent(s)})},r.prototype.afterGuiAttached=function(e){e.hidePopup&&this.addDestroyFunc(e.hidePopup),this.focusedCell=this.focusService.getFocusedCell(),this.menuList&&this.focusService.focusInto(this.menuList.getGui())},r.prototype.restoreFocusedCell=function(){var e=this.focusService.getFocusedCell();if(e&&this.focusedCell&&this.cellPositionUtils.equals(e,this.focusedCell)){var i=this.focusedCell,o=i.rowIndex,s=i.rowPinned,a=i.column,l=this.gridOptionsWrapper.getDocument();l.activeElement===l.body&&this.focusService.setFocusedCell({rowIndex:o,column:a,rowPinned:s,forceBrowserFocus:!0})}},r.prototype.destroy=function(){this.restoreFocusedCell(),t.prototype.destroy.call(this)},Ob([Xe("menuItemMapper")],r.prototype,"menuItemMapper",void 0),Ob([Xe("focusService")],r.prototype,"focusService",void 0),Ob([Xe("cellPositionUtils")],r.prototype,"cellPositionUtils",void 0),Ob([qi],r.prototype,"addMenuItems",null),r}(Do),$Ne=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Ak=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},YNe=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return $Ne(r,t),r.prototype.mapWithStockItems=function(e,i){var o=this;if(!e)return[];var s=[];return e.forEach(function(a){var l;if(l="string"==typeof a?o.getStockMenuItem(a,i):a){var d=l.subMenu;d&&d instanceof Array&&(l.subMenu=o.mapWithStockItems(l.subMenu,i)),null!=l&&s.push(l)}}),s},r.prototype.getStockMenuItem=function(e,i){var o=this,s=this.gridOptionsWrapper.getLocaleTextFunc(),a=this.gridOptionsWrapper.isSkipHeaderOnAutoSize();switch(e){case"pinSubMenu":return{name:s("pinColumn","Pin Column"),icon:ln.createIconNoSpan("menuPin",this.gridOptionsWrapper,null),subMenu:["pinLeft","pinRight","clearPinned"]};case"pinLeft":return{name:s("pinLeft","Pin Left"),action:function(){return o.columnModel.setColumnPinned(i,Nn.PINNED_LEFT,"contextMenu")},checked:!!i&&i.isPinnedLeft()};case"pinRight":return{name:s("pinRight","Pin Right"),action:function(){return o.columnModel.setColumnPinned(i,Nn.PINNED_RIGHT,"contextMenu")},checked:!!i&&i.isPinnedRight()};case"clearPinned":return{name:s("noPin","No Pin"),action:function(){return o.columnModel.setColumnPinned(i,null,"contextMenu")},checked:!!i&&!i.isPinned()};case"valueAggSubMenu":return qo.assertRegistered(mo.RowGroupingModule,"Aggregation from Menu")?{name:s("valueAggregation","Value Aggregation"),icon:ln.createIconNoSpan("menuValue",this.gridOptionsWrapper,null),subMenu:this.createAggregationSubMenu(i)}:null;case"autoSizeThis":return{name:s("autosizeThiscolumn","Autosize This Column"),action:function(){return o.columnModel.autoSizeColumn(i,a,"contextMenu")}};case"autoSizeAll":return{name:s("autosizeAllColumns","Autosize All Columns"),action:function(){return o.columnModel.autoSizeAllColumns(a,"contextMenu")}};case"rowGroup":return{name:s("groupBy","Group by")+" "+ln.escapeString(this.columnModel.getDisplayNameForColumn(i,"header")),action:function(){return o.columnModel.addRowGroupColumn(i,"contextMenu")},icon:ln.createIconNoSpan("menuAddRowGroup",this.gridOptionsWrapper,null)};case"rowUnGroup":return{name:s("ungroupBy","Un-Group by")+" "+ln.escapeString(this.columnModel.getDisplayNameForColumn(i,"header")),action:function(){return o.columnModel.removeRowGroupColumn(i,"contextMenu")},icon:ln.createIconNoSpan("menuRemoveRowGroup",this.gridOptionsWrapper,null)};case"resetColumns":return{name:s("resetColumns","Reset Columns"),action:function(){return o.columnModel.resetColumnState("contextMenu")}};case"expandAll":return{name:s("expandAll","Expand All"),action:function(){return o.gridApi.expandAll()}};case"contractAll":return{name:s("collapseAll","Collapse All"),action:function(){return o.gridApi.collapseAll()}};case"copy":return qo.assertRegistered(mo.ClipboardModule,"Copy from Menu")?{name:s("copy","Copy"),shortcut:s("ctrlC","Ctrl+C"),icon:ln.createIconNoSpan("clipboardCopy",this.gridOptionsWrapper,null),action:function(){return o.clipboardService.copyToClipboard()}}:null;case"copyWithHeaders":return qo.assertRegistered(mo.ClipboardModule,"Copy with Headers from Menu")?{name:s("copyWithHeaders","Copy with Headers"),icon:ln.createIconNoSpan("clipboardCopy",this.gridOptionsWrapper,null),action:function(){return o.clipboardService.copyToClipboard({includeHeaders:!0})}}:null;case"copyWithGroupHeaders":return qo.assertRegistered(mo.ClipboardModule,"Copy with Group Headers from Menu")?{name:s("copyWithGroupHeaders","Copy with Group Headers"),icon:ln.createIconNoSpan("clipboardCopy",this.gridOptionsWrapper,null),action:function(){return o.clipboardService.copyToClipboard({includeHeaders:!0,includeGroupHeaders:!0})}}:null;case"paste":return qo.assertRegistered(mo.ClipboardModule,"Paste from Clipboard")?{name:s("paste","Paste"),shortcut:s("ctrlV","Ctrl+V"),disabled:!0,icon:ln.createIconNoSpan("clipboardPaste",this.gridOptionsWrapper,null),action:function(){return o.clipboardService.pasteFromClipboard()}}:null;case"export":var l=[],c=qo.isRegistered(mo.CsvExportModule),d=qo.isRegistered(mo.ExcelExportModule);return!this.gridOptionsWrapper.isSuppressCsvExport()&&c&&l.push("csvExport"),!this.gridOptionsWrapper.isSuppressExcelExport()&&d&&l.push("excelExport"),{name:s("export","Export"),subMenu:l,icon:ln.createIconNoSpan("save",this.gridOptionsWrapper,null)};case"csvExport":return{name:s("csvExport","CSV Export"),icon:ln.createIconNoSpan("csvExport",this.gridOptionsWrapper,null),action:function(){return o.gridApi.exportDataAsCsv({})}};case"excelExport":return{name:s("excelExport","Excel Export"),icon:ln.createIconNoSpan("excelExport",this.gridOptionsWrapper,null),action:function(){return o.gridApi.exportDataAsExcel()}};case"separator":return"separator";default:return this.getChartItems(e)||(console.warn("AG Grid: unknown menu item type "+e),null)}},r.prototype.getChartItems=function(e){var i=this,o=this.gridOptionsWrapper.getLocaleTextFunc(),s=function(l,c,d){return{name:o(l,c),action:function(){return i.chartService.createPivotChart({chartType:d})}}},a=function(l,c,d){return{name:o(l,c),action:function(){return i.chartService.createChartFromCurrentRange(d)}}};switch(e){case"pivotChart":return{name:o("pivotChart","Pivot Chart"),subMenu:["pivotColumnChart","pivotBarChart","pivotPieChart","pivotLineChart","pivotXYChart","pivotAreaChart"],icon:ln.createIconNoSpan("chart",this.gridOptionsWrapper,null)};case"chartRange":return{name:o("chartRange","Chart Range"),subMenu:["rangeColumnChart","rangeBarChart","rangePieChart","rangeLineChart","rangeXYChart","rangeAreaChart","rangeHistogramChart","rangeCombinationChart"],icon:ln.createIconNoSpan("chart",this.gridOptionsWrapper,null)};case"pivotColumnChart":return{name:o("columnChart","Column"),subMenu:["pivotGroupedColumn","pivotStackedColumn","pivotNormalizedColumn"]};case"pivotGroupedColumn":return s("groupedColumn","Grouped&lrm;","groupedColumn");case"pivotStackedColumn":return s("stackedColumn","Stacked&lrm;","stackedColumn");case"pivotNormalizedColumn":return s("normalizedColumn","100% Stacked&lrm;","normalizedColumn");case"rangeColumnChart":return{name:o("columnChart","Column"),subMenu:["rangeGroupedColumn","rangeStackedColumn","rangeNormalizedColumn"]};case"rangeGroupedColumn":return a("groupedColumn","Grouped&lrm;","groupedColumn");case"rangeStackedColumn":return a("stackedColumn","Stacked&lrm;","stackedColumn");case"rangeNormalizedColumn":return a("normalizedColumn","100% Stacked&lrm;","normalizedColumn");case"pivotBarChart":return{name:o("barChart","Bar"),subMenu:["pivotGroupedBar","pivotStackedBar","pivotNormalizedBar"]};case"pivotGroupedBar":return s("groupedBar","Grouped&lrm;","groupedBar");case"pivotStackedBar":return s("stackedBar","Stacked&lrm;","stackedBar");case"pivotNormalizedBar":return s("normalizedBar","100% Stacked&lrm;","normalizedBar");case"rangeBarChart":return{name:o("barChart","Bar"),subMenu:["rangeGroupedBar","rangeStackedBar","rangeNormalizedBar"]};case"rangeGroupedBar":return a("groupedBar","Grouped&lrm;","groupedBar");case"rangeStackedBar":return a("stackedBar","Stacked&lrm;","stackedBar");case"rangeNormalizedBar":return a("normalizedBar","100% Stacked&lrm;","normalizedBar");case"pivotPieChart":return{name:o("pieChart","Pie"),subMenu:["pivotPie","pivotDoughnut"]};case"pivotPie":return s("pie","Pie&lrm;","pie");case"pivotDoughnut":return s("doughnut","Doughnut&lrm;","doughnut");case"rangePieChart":return{name:o("pieChart","Pie"),subMenu:["rangePie","rangeDoughnut"]};case"rangePie":return a("pie","Pie&lrm;","pie");case"rangeDoughnut":return a("doughnut","Doughnut&lrm;","doughnut");case"pivotLineChart":return s("line","Line&lrm;","line");case"rangeLineChart":return a("line","Line&lrm;","line");case"pivotXYChart":return{name:o("xyChart","X Y (Scatter)"),subMenu:["pivotScatter","pivotBubble"]};case"pivotScatter":return s("scatter","Scatter&lrm;","scatter");case"pivotBubble":return s("bubble","Bubble&lrm;","bubble");case"rangeXYChart":return{name:o("xyChart","X Y (Scatter)"),subMenu:["rangeScatter","rangeBubble"]};case"rangeScatter":return a("scatter","Scatter&lrm;","scatter");case"rangeBubble":return a("bubble","Bubble&lrm;","bubble");case"pivotAreaChart":return{name:o("areaChart","Area"),subMenu:["pivotArea","pivotStackedArea","pivotNormalizedArea"]};case"pivotArea":return s("area","Area&lrm;","area");case"pivotStackedArea":return s("stackedArea","Stacked&lrm;","stackedArea");case"pivotNormalizedArea":return s("normalizedArea","100% Stacked&lrm;","normalizedArea");case"rangeAreaChart":return{name:o("areaChart","Area"),subMenu:["rangeArea","rangeStackedArea","rangeNormalizedArea"]};case"rangeArea":return a("area","Area&lrm;","area");case"rangeStackedArea":return a("stackedArea","Stacked&lrm;","stackedArea");case"rangeNormalizedArea":return a("normalizedArea","100% Stacked&lrm;","normalizedArea");case"rangeHistogramChart":return a("histogramChart","Histogram&lrm;","histogram");case"rangeColumnLineCombo":return a("columnLineCombo","Column & Line&lrm;","columnLineCombo");case"rangeAreaColumnCombo":return a("AreaColumnCombo","Area & Column&lrm;","areaColumnCombo");case"rangeCombinationChart":return{name:o("combinationChart","Combination"),subMenu:["rangeColumnLineCombo","rangeAreaColumnCombo"]};default:return null}},r.prototype.createAggregationSubMenu=function(e){var l,i=this,o=this.gridOptionsWrapper.getLocaleTextFunc(),s=e.isValueActive(),a=this.aggFuncService.getFuncNames(e);if(e.isPrimary())l=e;else{var c=e.getColDef().pivotValueColumn;l=ln.exists(c)?c:void 0}var d=[];return a.forEach(function(f){d.push({name:o(f,f),action:function(){i.columnModel.setColumnAggFunc(l,f,"contextMenu"),i.columnModel.addValueColumn(l,"contextMenu")},checked:s&&l.getAggFunc()===f})}),d},Ak([Xe("columnModel")],r.prototype,"columnModel",void 0),Ak([Xe("gridApi")],r.prototype,"gridApi",void 0),Ak([_a("clipboardService")],r.prototype,"clipboardService",void 0),Ak([_a("aggFuncService")],r.prototype,"aggFuncService",void 0),Ak([_a("chartService")],r.prototype,"chartService",void 0),Ak([Kr("menuItemMapper")],r)}(Zi),WNe={moduleName:mo.MenuModule,beans:[VNe,HNe,YNe],dependantModules:[rg]},zNe=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Jw=function(){return Jw=Object.assign||function(t){for(var r,e=1,i=arguments.length;e<i;e++)for(var o in r=arguments[e])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t},Jw.apply(this,arguments)},Ov=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},qNe=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var o,a,i=e.call(t),s=[];try{for(;(void 0===r||r-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return s},FO=function(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(qNe(arguments[r]));return t},KNe=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.cellRanges=[],e.bodyScrollListener=e.onBodyScroll.bind(e),e.dragging=!1,e.intersectionRange=!1,e}return zNe(r,t),r.prototype.init=function(){var e=this;this.addManagedListener(this.eventService,Et.EVENT_NEW_COLUMNS_LOADED,function(){return e.onColumnsChanged()}),this.addManagedListener(this.eventService,Et.EVENT_COLUMN_VISIBLE,this.onColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Et.EVENT_COLUMN_VALUE_CHANGED,this.onColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Et.EVENT_COLUMN_PIVOT_MODE_CHANGED,function(){return e.removeAllCellRanges()}),this.addManagedListener(this.eventService,Et.EVENT_COLUMN_ROW_GROUP_CHANGED,function(){return e.removeAllCellRanges()}),this.addManagedListener(this.eventService,Et.EVENT_COLUMN_PIVOT_CHANGED,function(){return e.removeAllCellRanges()}),this.addManagedListener(this.eventService,Et.EVENT_COLUMN_GROUP_OPENED,this.refreshLastRangeStart.bind(this)),this.addManagedListener(this.eventService,Et.EVENT_COLUMN_MOVED,this.refreshLastRangeStart.bind(this)),this.addManagedListener(this.eventService,Et.EVENT_COLUMN_PINNED,this.refreshLastRangeStart.bind(this)),this.ctrlsService.whenReady(function(){var i=e.ctrlsService.getGridBodyCtrl();e.autoScrollService=new XI({scrollContainer:i.getBodyViewportElement(),scrollAxis:"xy",getVerticalPosition:function(){return i.getScrollFeature().getVScrollPosition().top},setVerticalPosition:function(o){return i.getScrollFeature().setVerticalScrollPosition(o)},getHorizontalPosition:function(){return i.getScrollFeature().getHScrollPosition().left},setHorizontalPosition:function(o){return i.getScrollFeature().setHorizontalScrollPosition(o)},shouldSkipVerticalScroll:function(){return e.gridOptionsWrapper.getDomLayout()!==Nn.DOM_LAYOUT_NORMAL},shouldSkipHorizontalScroll:function(){return i.getScrollFeature().isHorizontalScrollShowing()}})})},r.prototype.onColumnsChanged=function(){var e=this;this.refreshLastRangeStart();var i=this.columnModel.getAllDisplayedColumns();this.cellRanges.forEach(function(s){var a=s.columns;s.columns=s.columns.filter(function(c){return c.isVisible()&&-1!==i.indexOf(c)}),!ln.areEqual(a,s.columns)&&e.dispatchChangedEvent(!1,!0,s.id)});var o=this.cellRanges.length;this.cellRanges=this.cellRanges.filter(function(s){return s.columns.length>0}),o>this.cellRanges.length&&this.dispatchChangedEvent(!1,!0)},r.prototype.refreshLastRangeStart=function(){var e=ln.last(this.cellRanges);e&&this.refreshRangeStart(e)},r.prototype.isContiguousRange=function(e){var i=e.columns;if(!i.length)return!1;var o=this.columnModel.getAllDisplayedColumns(),s=i.map(function(a){return o.indexOf(a)}).sort(function(a,l){return a-l});return ln.last(s)-s[0]+1===i.length},r.prototype.getRangeStartRow=function(e){return e.startRow&&e.endRow?this.rowPositionUtils.before(e.startRow,e.endRow)?e.startRow:e.endRow:{rowIndex:0,rowPinned:this.pinnedRowModel.getPinnedTopRowCount()>0?Nn.PINNED_TOP:null}},r.prototype.getRangeEndRow=function(e){if(e.startRow&&e.endRow)return this.rowPositionUtils.before(e.startRow,e.endRow)?e.endRow:e.startRow;var i=this.pinnedRowModel.getPinnedBottomRowCount();return i>0?{rowIndex:i-1,rowPinned:Nn.PINNED_BOTTOM}:{rowIndex:this.rowModel.getRowCount()-1,rowPinned:null}},r.prototype.setRangeToCell=function(e,i){if(void 0===i&&(i=!1),this.gridOptionsWrapper.isEnableRangeSelection()){var o=this.calculateColumnsBetween(e.column,e.column);if(o){(this.gridOptionsWrapper.isSuppressMultiRangeSelection()||!i||ln.missing(this.cellRanges))&&this.removeAllCellRanges(!0);var a={rowIndex:e.rowIndex,rowPinned:e.rowPinned};this.cellRanges.push({startRow:a,endRow:a,columns:o,startColumn:e.column}),this.setNewestRangeStartCell(e),this.onDragStop(),this.dispatchChangedEvent(!0,!0)}}},r.prototype.extendLatestRangeToCell=function(e){if(!this.isEmpty()&&this.newestRangeStartCell){var i=ln.last(this.cellRanges);this.updateRangeEnd(i,e)}},r.prototype.updateRangeEnd=function(e,i,o){void 0===o&&(o=!1);var a=this.calculateColumnsBetween(e.startColumn,i.column);!a||this.isLastCellOfRange(e,i)||(e.columns=a,e.endRow={rowIndex:i.rowIndex,rowPinned:i.rowPinned},o||this.dispatchChangedEvent(!0,!0,e.id))},r.prototype.refreshRangeStart=function(e){var i=e.startColumn,o=e.columns,s=function(v,w){var x=e.columns.filter(function(I){return I!==v});v?(e.startColumn=v,e.columns=w?FO([v],x):FO(x,[v])):e.columns=x},a=this.getRangeEdgeColumns(e),l=a.left,c=a.right;i===o[0]&&i!==l?s(l,!0):i===ln.last(o)&&i===c&&s(c,!1)},r.prototype.getRangeEdgeColumns=function(e){var i=this.columnModel.getAllDisplayedColumns(),o=e.columns.map(function(s){return i.indexOf(s)}).filter(function(s){return s>-1}).sort(function(s,a){return s-a});return{left:i[o[0]],right:i[ln.last(o)]}},r.prototype.extendLatestRangeInDirection=function(e){if(!this.isEmpty()&&this.newestRangeStartCell){var i=e.key,o=e.ctrlKey||e.metaKey,s=ln.last(this.cellRanges),a=this.newestRangeStartCell,l=s.columns[0],c=ln.last(s.columns),x=this.cellNavigationService.getNextCellToFocus(i,{column:a.column===l?c:l,rowIndex:s.endRow.rowIndex,rowPinned:s.endRow.rowPinned},o);if(x)return this.setCellRange({rowStartIndex:a.rowIndex,rowStartPinned:a.rowPinned,rowEndIndex:x.rowIndex,rowEndPinned:x.rowPinned,columnStart:a.column,columnEnd:x.column}),x}},r.prototype.setCellRange=function(e){this.gridOptionsWrapper.isEnableRangeSelection()&&(this.removeAllCellRanges(!0),this.addCellRange(e))},r.prototype.setCellRanges=function(e){var i=this;ln.shallowCompare(this.cellRanges,e)||(this.removeAllCellRanges(!0),e.forEach(function(o){o.columns&&o.startRow&&i.setNewestRangeStartCell({rowIndex:o.startRow.rowIndex,rowPinned:o.startRow.rowPinned,column:o.columns[0]}),i.cellRanges.push(o)}),this.dispatchChangedEvent(!1,!0))},r.prototype.setNewestRangeStartCell=function(e){this.newestRangeStartCell=e},r.prototype.createCellRangeFromCellRangeParams=function(e){var o,i=this,s=!1;if(e.columns)o=e.columns.map(function(f){return i.columnModel.getColumnWithValidation(f)}).filter(function(f){return f});else{var a=this.columnModel.getColumnWithValidation(e.columnStart),l=this.columnModel.getColumnWithValidation(e.columnEnd);if(!a||!l)return;(o=this.calculateColumnsBetween(a,l))&&o.length&&(s=o[0]!==a)}if(o)return{startRow:null!=e.rowStartIndex?{rowIndex:e.rowStartIndex,rowPinned:e.rowStartPinned||null}:void 0,endRow:null!=e.rowEndIndex?{rowIndex:e.rowEndIndex,rowPinned:e.rowEndPinned||null}:void 0,columns:o,startColumn:s?ln.last(o):o[0]}},r.prototype.addCellRange=function(e){if(this.gridOptionsWrapper.isEnableRangeSelection()){var i=this.createCellRangeFromCellRangeParams(e);i&&(i.startRow&&this.setNewestRangeStartCell({rowIndex:i.startRow.rowIndex,rowPinned:i.startRow.rowPinned,column:i.startColumn}),this.cellRanges.push(i),this.dispatchChangedEvent(!1,!0,i.id))}},r.prototype.getCellRanges=function(){return this.cellRanges},r.prototype.isEmpty=function(){return 0===this.cellRanges.length},r.prototype.isMoreThanOneCell=function(){var e=this.cellRanges.length;if(0===e)return!1;if(e>1)return!0;var i=this.cellRanges[0],o=this.getRangeStartRow(i),s=this.getRangeEndRow(i);return o.rowPinned!==s.rowPinned||o.rowIndex!==s.rowIndex||1!==i.columns.length},r.prototype.areAllRangesAbleToMerge=function(){var e,i,l,o=this,s=new Map;if(this.cellRanges.length<=1)return!0;this.cellRanges.forEach(function(w){for(var x=o.getRangeStartRow(w),I=o.getRangeEndRow(w),M=x,F=function(){var pe=(M.rowPinned||"normal")+"_"+M.rowIndex,we=s.get(pe),je=w.columns.map(function(nt){return nt.getId()});if(we){var tt=je.filter(function(nt){return-1===we.indexOf(nt)});we.push.apply(we,FO(tt))}else s.set(pe,je);if(o.rowPositionUtils.sameRow(M,I))return"break";M=o.cellNavigationService.getRowBelow(M)};M&&"break"!==F(););});try{for(var c=function(t){var r="function"==typeof Symbol&&Symbol.iterator,e=r&&t[r],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}(s.values()),d=c.next();!d.done;d=c.next()){var v=d.value.sort().join();if(void 0!==l){if(l!==v)return!1}else l=v}}catch(w){e={error:w}}finally{try{d&&!d.done&&(i=c.return)&&i.call(c)}finally{if(e)throw e.error}}return!0},r.prototype.removeAllCellRanges=function(e){this.isEmpty()||(this.onDragStop(),this.cellRanges.length=0,e||this.dispatchChangedEvent(!1,!0))},r.prototype.onBodyScroll=function(){this.dragging&&this.lastMouseEvent&&this.onDragging(this.lastMouseEvent)},r.prototype.isCellInAnyRange=function(e){return this.getCellRangeCount(e)>0},r.prototype.isCellInSpecificRange=function(e,i){var o=null!==i.columns&&ln.includes(i.columns,e.column),s=this.isRowInRange(e.rowIndex,e.rowPinned,i);return o&&s},r.prototype.isLastCellOfRange=function(e,i){var o=e.startRow,s=e.endRow,a=this.rowPositionUtils.before(o,s)?s:o,l=i.rowIndex===a.rowIndex&&i.rowPinned===a.rowPinned,c=e.columns[0],d=ln.last(e.columns);return i.column===(e.startColumn===c?d:c)&&l},r.prototype.isBottomRightCell=function(e,i){var o=this.columnModel.getAllDisplayedColumns(),s=e.columns.map(function(v){return o.indexOf(v)}).sort(function(v,w){return v-w}),a=e.startRow,l=e.endRow,c=this.rowPositionUtils.before(a,l)?l:a,d=o.indexOf(i.column)===ln.last(s),f=i.rowIndex===c.rowIndex&&ln.makeNull(i.rowPinned)===ln.makeNull(c.rowPinned);return d&&f},r.prototype.getCellRangeCount=function(e){var i=this;return this.isEmpty()?0:this.cellRanges.filter(function(o){return i.isCellInSpecificRange(e,o)}).length},r.prototype.isRowInRange=function(e,i,o){var s=this.getRangeStartRow(o),a=this.getRangeEndRow(o),l={rowIndex:e,rowPinned:i||null};if(l.rowIndex===s.rowIndex&&l.rowPinned==s.rowPinned||l.rowIndex===a.rowIndex&&l.rowPinned==a.rowPinned)return!0;var f=!this.rowPositionUtils.before(l,s),v=this.rowPositionUtils.before(l,a);return f&&v},r.prototype.getDraggingRange=function(){return this.draggingRange},r.prototype.onDragStart=function(e){if(this.gridOptionsWrapper.isEnableRangeSelection()){var s=e.shiftKey,a=e.ctrlKey||e.metaKey,c=!this.gridOptionsWrapper.isSuppressMultiRangeSelection()&&a,d=s&&ln.existsAndNotEmpty(this.cellRanges);if(!c&&(!d||ln.exists(ln.last(this.cellRanges).type))&&this.removeAllCellRanges(!0),this.cellHoverListener=this.addManagedListener(this.ctrlsService.getGridCtrl().getGui(),"mousemove",this.updateValuesOnMove.bind(this)),this.updateValuesOnMove(e),this.lastCellHovered){if(this.dragging=!0,this.lastMouseEvent=e,this.intersectionRange=c&&this.getCellRangeCount(this.lastCellHovered)>1,d||this.setNewestRangeStartCell(this.lastCellHovered),this.cellRanges.length>0)this.draggingRange=ln.last(this.cellRanges);else{var f={rowIndex:this.lastCellHovered.rowIndex,rowPinned:this.lastCellHovered.rowPinned};this.draggingRange={startRow:f,endRow:f,columns:[this.lastCellHovered.column],startColumn:this.newestRangeStartCell.column},this.cellRanges.push(this.draggingRange)}this.ctrlsService.getGridBodyCtrl().addScrollEventListener(this.bodyScrollListener),this.dispatchChangedEvent(!0,!1,this.draggingRange.id)}}},r.prototype.intersectLastRange=function(e){var i=this;if(!(e&&this.dragging||this.gridOptionsWrapper.isSuppressMultiRangeSelection()||this.isEmpty())){var o=ln.last(this.cellRanges),s=this.getRangeStartRow(o),a=this.getRangeEndRow(o),l=[];this.cellRanges.slice(0,-1).forEach(function(c){var d=i.getRangeStartRow(c),f=i.getRangeEndRow(c),v=c.columns,w=v.filter(function(F){return-1===o.columns.indexOf(F)});if(w.length!==v.length)if(i.rowPositionUtils.before(a,d)||i.rowPositionUtils.before(f,s))l.push(c);else{var x=l.length;if(i.rowPositionUtils.before(d,s)){var I={columns:FO(v),startColumn:o.startColumn,startRow:Jw({},d),endRow:i.cellNavigationService.getRowAbove(s)};l.push(I)}if(w.length>0){var M={columns:w,startColumn:ln.includes(w,o.startColumn)?o.startColumn:w[0],startRow:i.rowPositionUtils.rowMax([Jw({},s),Jw({},d)]),endRow:i.rowPositionUtils.rowMin([Jw({},a),Jw({},f)])};l.push(M)}i.rowPositionUtils.before(a,f)&&l.push({columns:FO(v),startColumn:o.startColumn,startRow:i.cellNavigationService.getRowBelow(a),endRow:Jw({},f)}),l.length-x==1&&(l[l.length-1].id=c.id)}else l.push(c)}),this.cellRanges=l,e&&this.dispatchChangedEvent(!1,!0)}},r.prototype.updateValuesOnMove=function(e){var i=this.mouseEventService.getCellPositionForEvent(e);this.cellHasChanged=!1,!(!i||this.lastCellHovered&&this.cellPositionUtils.equals(i,this.lastCellHovered))&&(this.lastCellHovered&&(this.cellHasChanged=!0),this.lastCellHovered=i)},r.prototype.onDragging=function(e){var i=this;if(this.dragging&&e){this.lastMouseEvent=e;var o=this.lastCellHovered,s=function(c){return o&&o.rowPinned===c&&i.newestRangeStartCell.rowPinned===c},a=s("top")||s("bottom");if(this.autoScrollService.check(e,a),this.cellHasChanged){var l=this.calculateColumnsBetween(this.newestRangeStartCell.column,o.column);l&&(this.draggingRange.endRow={rowIndex:o.rowIndex,rowPinned:o.rowPinned},this.draggingRange.columns=l,this.dispatchChangedEvent(!1,!1,this.draggingRange.id))}}},r.prototype.onDragStop=function(){if(this.cellHoverListener&&(this.cellHoverListener(),this.cellHoverListener=void 0),this.dragging){var e=this.draggingRange.id;this.autoScrollService.ensureCleared(),this.ctrlsService.getGridBodyCtrl().removeScrollEventListener(this.bodyScrollListener),this.lastMouseEvent=null,this.dragging=!1,this.draggingRange=void 0,this.lastCellHovered=void 0,this.intersectionRange&&(this.intersectionRange=!1,this.intersectLastRange()),this.dispatchChangedEvent(!1,!0,e)}},r.prototype.dispatchChangedEvent=function(e,i,o){var s=Object.freeze({type:Et.EVENT_RANGE_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi,started:e,finished:i,id:o});this.eventService.dispatchEvent(s)},r.prototype.calculateColumnsBetween=function(e,i){var o=this.columnModel.getAllDisplayedColumns(),s=e===i,a=o.indexOf(e);if(a<0)console.warn("AG Grid: column "+e.getId()+" is not visible");else{var l=s?a:o.indexOf(i);if(!(l<0)){if(s)return[e];for(var c=Math.min(a,l),d=c===a?l:a,f=[],v=c;v<=d;v++)f.push(o[v]);return f}console.warn("AG Grid: column "+i.getId()+" is not visible")}},Ov([Xe("rowModel")],r.prototype,"rowModel",void 0),Ov([Xe("columnModel")],r.prototype,"columnModel",void 0),Ov([Xe("mouseEventService")],r.prototype,"mouseEventService",void 0),Ov([Xe("columnApi")],r.prototype,"columnApi",void 0),Ov([Xe("gridApi")],r.prototype,"gridApi",void 0),Ov([Xe("cellNavigationService")],r.prototype,"cellNavigationService",void 0),Ov([Xe("pinnedRowModel")],r.prototype,"pinnedRowModel",void 0),Ov([Xe("rowPositionUtils")],r.prototype,"rowPositionUtils",void 0),Ov([Xe("cellPositionUtils")],r.prototype,"cellPositionUtils",void 0),Ov([Xe("ctrlsService")],r.prototype,"ctrlsService",void 0),Ov([qi],r.prototype,"init",null),Ov([Kr("rangeService")],r)}(Zi),QNe=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Z_=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},ire=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.changedCalculatedValues=!1,e.dragging=!1,e.shouldDestroyOnEndDragging=!1,e}return QNe(r,t),r.prototype.init=function(){var e=this;this.dragService.addDragSource({dragStartPixels:0,eElement:this.getGui(),onDragStart:this.onDragStart.bind(this),onDragging:function(i){e.dragging=!0,e.rangeService.autoScrollService.check(i),e.changedCalculatedValues&&(e.onDrag(i),e.changedCalculatedValues=!1)},onDragStop:function(i){e.dragging=!1,e.onDragEnd(i),e.clearValues(),e.rangeService.autoScrollService.ensureCleared(),document.body.classList.remove(e.getDraggingCssClass()),e.shouldDestroyOnEndDragging&&e.destroy()}}),this.addManagedListener(this.getGui(),"mousedown",this.preventRangeExtension.bind(this))},r.prototype.isDragging=function(){return this.dragging},r.prototype.getCellCtrl=function(){return this.cellCtrl},r.prototype.setCellCtrl=function(e){this.cellCtrl=e},r.prototype.getCellRange=function(){return this.cellRange},r.prototype.setCellRange=function(e){this.cellRange=e},r.prototype.getRangeStartRow=function(){return this.rangeStartRow},r.prototype.setRangeStartRow=function(e){this.rangeStartRow=e},r.prototype.getRangeEndRow=function(){return this.rangeEndRow},r.prototype.setRangeEndRow=function(e){this.rangeEndRow=e},r.prototype.getLastCellHovered=function(){return this.lastCellHovered},r.prototype.preventRangeExtension=function(e){e.preventDefault(),e.stopPropagation()},r.prototype.onDragStart=function(e){this.cellHoverListener=this.addManagedListener(this.ctrlsService.getGridCtrl().getGui(),"mousemove",this.updateValuesOnMove.bind(this)),document.body.classList.add(this.getDraggingCssClass())},r.prototype.getDraggingCssClass=function(){return"ag-dragging-"+(this.type===G1.FILL?"fill":"range")+"-handle"},r.prototype.updateValuesOnMove=function(e){var i=this.mouseEventService.getCellPositionForEvent(e);!i||this.lastCellHovered&&this.cellPositionUtils.equals(i,this.lastCellHovered)||(this.lastCellHovered=i,this.changedCalculatedValues=!0)},r.prototype.getType=function(){return this.type},r.prototype.refresh=function(e){var i=this.getCellCtrl(),o=this.getGui(),s=ln.last(this.rangeService.getCellRanges()),a=s.startRow,l=s.endRow;if(a&&l&&(this.rowPositionUtils.before(l,a)?(this.setRangeStartRow(l),this.setRangeEndRow(a)):(this.setRangeStartRow(a),this.setRangeEndRow(l))),i!==e||!ln.isVisible(o)){this.setCellCtrl(e);var d=e.getComp().getParentOfValue();d&&d.appendChild(o)}this.setCellRange(s)},r.prototype.clearValues=function(){this.lastCellHovered=void 0,this.removeListeners()},r.prototype.removeListeners=function(){this.cellHoverListener&&(this.cellHoverListener(),this.cellHoverListener=void 0)},r.prototype.destroy=function(){if(!this.shouldDestroyOnEndDragging&&this.isDragging())return ln.setDisplayed(this.getGui(),!1),void(this.shouldDestroyOnEndDragging=!0);this.shouldDestroyOnEndDragging=!1,t.prototype.destroy.call(this),this.removeListeners();var e=this.getGui();e.parentElement&&e.parentElement.removeChild(e)},Z_([Xe("rowRenderer")],r.prototype,"rowRenderer",void 0),Z_([Xe("dragService")],r.prototype,"dragService",void 0),Z_([Xe("rangeService")],r.prototype,"rangeService",void 0),Z_([Xe("mouseEventService")],r.prototype,"mouseEventService",void 0),Z_([Xe("columnModel")],r.prototype,"columnModel",void 0),Z_([Xe("cellNavigationService")],r.prototype,"cellNavigationService",void 0),Z_([Xe("navigationService")],r.prototype,"navigationService",void 0),Z_([Xe("rowPositionUtils")],r.prototype,"rowPositionUtils",void 0),Z_([Xe("cellPositionUtils")],r.prototype,"cellPositionUtils",void 0),Z_([Xe("ctrlsService")],r.prototype,"ctrlsService",void 0),Z_([qi],r.prototype,"init",null),r}(Do),JNe=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),Mk=function(){return Mk=Object.assign||function(t){for(var r,e=1,i=arguments.length;e<i;e++)for(var o in r=arguments[e])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t},Mk.apply(this,arguments)},e5e=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var o,a,i=e.call(t),s=[];try{for(;(void 0===r||r-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return s},rre=function(t){function r(){var e=t.call(this,r.TEMPLATE)||this;return e.markedCells=[],e.cellValues=[],e.isUp=!1,e.isLeft=!1,e.isReduce=!1,e.type=G1.FILL,e}return JNe(r,t),r.prototype.updateValuesOnMove=function(e){t.prototype.updateValuesOnMove.call(this,e),this.initialXY||(this.initialXY=this.mouseEventService.getNormalisedPosition(e));var w,i=this.initialXY,o=i.x,s=i.y,a=this.mouseEventService.getNormalisedPosition(e),c=a.y,d=Math.abs(o-a.x),f=Math.abs(s-c),v=this.gridOptionsWrapper.getFillHandleDirection();(w="xy"===v?d>f?"x":"y":v)!==this.dragAxis&&(this.dragAxis=w,this.changedCalculatedValues=!0)},r.prototype.onDrag=function(e){if(!this.initialPosition){var i=this.getCellCtrl();if(!i)return;this.initialPosition=i.getCellPosition()}var o=this.getLastCellHovered();o&&this.markPathFrom(this.initialPosition,o)},r.prototype.onDragEnd=function(e){if(this.initialXY=null,this.markedCells.length){var c,i="x"===this.dragAxis,o=this.getCellRange(),s=o.columns.length,a=this.getRangeStartRow(),l=this.getRangeEndRow();if(this.isUp||this.isLeft){var d=i?a:this.lastCellMarked;c=this.rangeService.createCellRangeFromCellRangeParams({rowStartIndex:d.rowIndex,rowStartPinned:d.rowPinned,columnStart:i?this.lastCellMarked.column:o.columns[0],rowEndIndex:l.rowIndex,rowEndPinned:l.rowPinned,columnEnd:o.columns[s-1]})}else c=this.rangeService.createCellRangeFromCellRangeParams({rowStartIndex:a.rowIndex,rowStartPinned:a.rowPinned,columnStart:o.columns[0],rowEndIndex:i?l.rowIndex:this.lastCellMarked.rowIndex,rowEndPinned:i?l.rowPinned:this.lastCellMarked.rowPinned,columnEnd:i?this.lastCellMarked.column:o.columns[s-1]});c&&(this.raiseFillStartEvent(),this.handleValueChanged(o,c,e),this.rangeService.setCellRanges([c]),this.raiseFillEndEvent(o,c))}},r.prototype.raiseFillStartEvent=function(){var e={type:Et.EVENT_FILL_START,columnApi:this.gridOptionsWrapper.getColumnApi(),api:this.gridOptionsWrapper.getApi()};this.eventService.dispatchEvent(e)},r.prototype.raiseFillEndEvent=function(e,i){var o={type:Et.EVENT_FILL_END,columnApi:this.gridOptionsWrapper.getColumnApi(),api:this.gridOptionsWrapper.getApi(),initialRange:e,finalRange:i};this.eventService.dispatchEvent(o)},r.prototype.handleValueChanged=function(e,i,o){var s=this,a=this.rangeService.getRangeEndRow(e),l=this.rangeService.getRangeStartRow(e),c=this.rangeService.getRangeEndRow(i),d=this.rangeService.getRangeStartRow(i),f="y"===this.dragAxis;if(!this.isReduce||this.gridOptionsWrapper.isSuppressClearOnFillReduction()){var x=!0,I=[],M=[],F=0,re=function(){I.length=0,M.length=0,F=0},pe=function(je,tt){var nt=s.isUp?a:l,rt=!1;f&&(x=!0,re());for(var lt=function(){var Wt=s.rowPositionUtils.getRowNode(nt);if(!Wt)return"break";f&&je?we(I,je,Wt,function(){return!s.rowPositionUtils.sameRow(nt,s.isUp?l:a)}):tt&&(x=!0,re(),tt.forEach(function(Zt){return we(I,Zt,Wt,function(){return Zt!==(s.isLeft?e.columns[0]:ln.last(e.columns))})})),rt=s.rowPositionUtils.sameRow(nt,s.isUp?d:c),nt=s.isUp?s.cellNavigationService.getRowAbove(nt):s.cellNavigationService.getRowBelow(nt)};!rt&&nt&&"break"!==lt(););},we=function(je,tt,nt,rt){var lt,bt=!1;if(x)lt=s.valueService.getValue(tt,nt),M.push(lt),x=rt();else{var Wt=s.processValues(o,je,M,tt,nt,F++),en=Wt.fromUserFunction;if(lt=Wt.value,tt.isCellEditable(nt)){var ci=s.valueService.getValue(tt,nt);en&&ci===lt?bt=!0:nt.setDataValue(tt,lt)}}bt||je.push(lt)};f?e.columns.forEach(function(je){pe(je)}):(v=this.isLeft?function(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(e5e(arguments[r]));return t}(i.columns).reverse():i.columns,pe(void 0,v))}else{var v=f?e.columns:e.columns.filter(function(je){return i.columns.indexOf(je)<0}),w=f?this.cellNavigationService.getRowBelow(c):d;w&&this.clearCellsInRange(w,a,v)}},r.prototype.clearCellsInRange=function(e,i,o){for(var s=e,a=!1,l=function(){var f=c.rowPositionUtils.getRowNode(s);if(!f)return"break";o.forEach(function(v){v.isCellEditable(f)&&f.setDataValue(v,null)}),a=c.rowPositionUtils.sameRow(s,i),s=c.cellNavigationService.getRowBelow(s)},c=this;!a&&s&&"break"!==l(););},r.prototype.processValues=function(e,i,o,s,a,l){var f,c=this.gridOptionsWrapper.getFillOperation();if(f="y"===this.dragAxis?this.isUp?"up":"down":this.isLeft?"left":"right",c){var w=c({event:e,values:i,initialValues:o,currentIndex:l,currentCellValue:this.valueService.getValue(s,a),direction:f,column:s,rowNode:a});if(!1!==w)return{value:w,fromUserFunction:!0}}var x=!i.some(function(M){var F=parseFloat(M);return isNaN(F)||F.toString()!==M.toString()});if(e.altKey||!x){if(x&&1===o.length){var I=this.isUp||this.isLeft?-1:1;return{value:parseFloat(ln.last(i))+1*I,fromUserFunction:!1}}return{value:i[l%i.length],fromUserFunction:!1}}return{value:ln.last(ln.findLineByLeastSquares(i.map(Number))),fromUserFunction:!1}},r.prototype.clearValues=function(){this.clearMarkedPath(),this.clearCellValues(),this.lastCellMarked=void 0,t.prototype.clearValues.call(this)},r.prototype.clearMarkedPath=function(){this.markedCells.forEach(function(e){var i=e.getComp();i.addOrRemoveCssClass("ag-selection-fill-top",!1),i.addOrRemoveCssClass("ag-selection-fill-right",!1),i.addOrRemoveCssClass("ag-selection-fill-bottom",!1),i.addOrRemoveCssClass("ag-selection-fill-left",!1)}),this.markedCells.length=0,this.isUp=!1,this.isLeft=!1,this.isReduce=!1},r.prototype.clearCellValues=function(){this.cellValues.length=0},r.prototype.markPathFrom=function(e,i){if(this.clearMarkedPath(),this.clearCellValues(),"y"===this.dragAxis){if(this.rowPositionUtils.sameRow(i,e))return;var o=this.rowPositionUtils.before(i,e),s=this.getRangeStartRow(),a=this.getRangeEndRow();o&&(i.rowPinned==s.rowPinned&&i.rowIndex>=s.rowIndex||s.rowPinned!=a.rowPinned&&i.rowPinned==a.rowPinned&&i.rowIndex<=a.rowIndex)?(this.reduceVertical(e,i),this.isReduce=!0):(this.extendVertical(e,i,o),this.isReduce=!1)}else{var l=e.column,c=i.column;if(l===c)return;var d=this.columnModel.getAllDisplayedColumns(),f=d.indexOf(l),v=d.indexOf(c);v<=f&&v>=d.indexOf(this.getCellRange().columns[0])?(this.reduceHorizontal(e,i),this.isReduce=!0):(this.extendHorizontal(e,i,v<f),this.isReduce=!1)}this.lastCellMarked=i},r.prototype.extendVertical=function(e,i,o){var a=this.navigationService,l=this.rangeService,c=e;do{for(var d=this.getCellRange(),f=d.columns.length,v=0;v<f;v++){var w=d.columns[v],I=Mk(Mk({},{rowIndex:c.rowIndex,rowPinned:c.rowPinned}),{column:w}),M=l.isCellInSpecificRange(I,d),F=this.rowPositionUtils.sameRow(c,e);if(o&&(this.isUp=!0),!F){var re=a.getCellByPosition(I);if(re){this.markedCells.push(re);var pe=re.getComp();M||(pe.addOrRemoveCssClass("ag-selection-fill-left",0===v),pe.addOrRemoveCssClass("ag-selection-fill-right",v===f-1)),pe.addOrRemoveCssClass(o?"ag-selection-fill-top":"ag-selection-fill-bottom",this.rowPositionUtils.sameRow(c,i))}}}if(this.rowPositionUtils.sameRow(c,i))break}while(c=o?this.cellNavigationService.getRowAbove(c):this.cellNavigationService.getRowBelow(c))},r.prototype.reduceVertical=function(e,i){var o=e;do{for(var s=this.getCellRange(),a=s.columns.length,l=this.rowPositionUtils.sameRow(o,i),c=0;c<a;c++){var f=Mk(Mk({},{rowIndex:o.rowIndex,rowPinned:o.rowPinned}),{column:s.columns[c]}),v=this.navigationService.getCellByPosition(f);v&&(this.markedCells.push(v),v.getComp().addOrRemoveCssClass("ag-selection-fill-bottom",this.rowPositionUtils.sameRow(o,i)))}if(l)break}while(o=this.cellNavigationService.getRowAbove(o))},r.prototype.extendHorizontal=function(e,i,o){var s=this,a=this.columnModel.getAllDisplayedColumns(),l=a.indexOf(o?i.column:e.column),c=a.indexOf(o?this.getCellRange().columns[0]:i.column),d=o?0:1,f=a.slice(l+d,c+d),v=this.getRangeStartRow(),w=this.getRangeEndRow();f.forEach(function(x){var I=v,M=!1;do{M=s.rowPositionUtils.sameRow(I,w);var F=s.navigationService.getCellByPosition({rowIndex:I.rowIndex,rowPinned:I.rowPinned,column:x});if(F){s.markedCells.push(F);var re=F.getComp();re.addOrRemoveCssClass("ag-selection-fill-top",s.rowPositionUtils.sameRow(I,v)),re.addOrRemoveCssClass("ag-selection-fill-bottom",s.rowPositionUtils.sameRow(I,w)),o?(s.isLeft=!0,re.addOrRemoveCssClass("ag-selection-fill-left",x===f[0])):re.addOrRemoveCssClass("ag-selection-fill-right",x===ln.last(f))}I=s.cellNavigationService.getRowBelow(I)}while(!M)})},r.prototype.reduceHorizontal=function(e,i){var o=this,s=this.columnModel.getAllDisplayedColumns(),a=s.indexOf(i.column),l=s.indexOf(e.column),c=s.slice(a,l),d=this.getRangeStartRow(),f=this.getRangeEndRow();c.forEach(function(v){var w=d,x=!1;do{x=o.rowPositionUtils.sameRow(w,f);var I=o.navigationService.getCellByPosition({rowIndex:w.rowIndex,rowPinned:w.rowPinned,column:v});I&&(o.markedCells.push(I),I.getComp().addOrRemoveCssClass("ag-selection-fill-right",v===c[0])),w=o.cellNavigationService.getRowBelow(w)}while(!x)})},r.prototype.refresh=function(e){var i=this.rangeService.getCellRanges()[0];i.startRow&&i.endRow?t.prototype.refresh.call(this,e):this.destroy()},r.TEMPLATE='<div class="ag-fill-handle"></div>',function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);o>3&&s&&Object.defineProperty(r,e,s)}([Xe("valueService")],r.prototype,"valueService",void 0),r}(ire),n5e=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),v7=function(){return v7=Object.assign||function(t){for(var r,e=1,i=arguments.length;e<i;e++)for(var o in r=arguments[e])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t},v7.apply(this,arguments)},ore=function(t){function r(){var e=t.call(this,r.TEMPLATE)||this;return e.type=G1.RANGE,e.rangeFixed=!1,e}return n5e(r,t),r.prototype.onDrag=function(e){var i=this.getLastCellHovered();if(i){var o=this.rangeService.getCellRanges(),s=ln.last(o);this.rangeFixed||(this.fixRangeStartEnd(s),this.rangeFixed=!0),this.endPosition={rowIndex:i.rowIndex,rowPinned:i.rowPinned,column:i.column},2===o.length&&o[0].type===ng.DIMENSION&&s.type===ng.VALUE&&!this.rowPositionUtils.sameRow(this.endPosition,this.rangeService.getRangeEndRow(s))&&this.rangeService.updateRangeEnd(o[0],v7(v7({},this.endPosition),{column:o[0].columns[0]}),!0),this.rangeService.extendLatestRangeToCell(this.endPosition)}},r.prototype.onDragEnd=function(e){var i=ln.last(this.rangeService.getCellRanges());this.fixRangeStartEnd(i),this.rangeFixed=!1},r.prototype.fixRangeStartEnd=function(e){var i=this.rangeService.getRangeStartRow(e),o=this.rangeService.getRangeEndRow(e),s=e.columns[0];e.startRow=i,e.endRow=o,e.startColumn=s},r.TEMPLATE='<div class="ag-range-handle"></div>',r}(ire),i5e=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),o5e=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return i5e(r,t),r.prototype.createSelectionHandle=function(e){return this.createBean(e===G1.RANGE?new ore:new rre)},r=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s}([Kr("selectionHandleFactory")],r),r}(Zi),s5e={moduleName:mo.RangeSelectionModule,beans:[KNe,o5e],agStackComponents:[{componentName:"AgFillHandle",componentClass:rre},{componentName:"AgRangeHandle",componentClass:ore}],dependantModules:[rg]},a5e=b(7374),el=b.n(a5e);function Yo(t,r){const e="object"==typeof r;return new Promise((i,o)=>{let a,s=!1;t.subscribe({next:l=>{a=l,s=!0},error:o,complete:()=>{s?i(a):e?i(r.defaultValue):o(new ck)}})})}const l5e=["agGrid"];function c5e(t,r){if(1&t&&(n.j41(0,"option",21),n.EFF(1),n.k0s()),2&t){const e=r.$implicit;n.R7$(),n.JRh(e)}}function u5e(t,r){if(1&t){const e=n.RV6();n.j41(0,"select",19),n.mxI("ngModelChange",function(o){n.eBV(e);const s=n.XpG();return n.DH7(s.urlParams.rows,o)||(s.urlParams.rows=o),n.Njj(o)}),n.bIt("change",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.loadGridData())}),n.DNE(1,c5e,2,1,"option",20),n.k0s()}if(2&t){const e=n.XpG();n.R50("ngModel",e.urlParams.rows),n.R7$(),n.Y8G("ngForOf",e.maxRowsOptions)}}function d5e(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",22)(1,"button",23),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.firstPage())}),n.nrm(2,"i",24),n.k0s(),n.j41(3,"button",25),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.previousPage())}),n.nrm(4,"i",26),n.k0s(),n.j41(5,"span",27),n.EFF(6),n.k0s(),n.j41(7,"button",28),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.nextPage())}),n.nrm(8,"i",29),n.k0s(),n.j41(9,"button",30),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.lastPage())}),n.nrm(10,"i",31),n.k0s()()}if(2&t){const e=n.XpG();n.R7$(),n.Y8G("disabled",1===e.currentPage||e.loading),n.R7$(2),n.Y8G("disabled",1===e.currentPage||e.loading),n.R7$(3),n.Lme(" ",e.currentPage," of ",e.totalPages," "),n.R7$(),n.Y8G("disabled",e.currentPage===e.totalPages||e.loading),n.R7$(2),n.Y8G("disabled",e.currentPage===e.totalPages||e.loading)}}function p5e(t,r){if(1&t&&(n.j41(0,"span",27),n.EFF(1),n.j41(2,"span",32),n.EFF(3),n.k0s(),n.EFF(4," items "),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.SpI(" ",e.filteredRowData.length," "),n.R7$(2),n.SpI("of ",e.totalRows,"")}}function h5e(t,r){if(1&t&&(n.j41(0,"div",33)(1,"span",34),n.EFF(2),n.k0s()()),2&t){const e=n.XpG();n.R7$(2),n.JRh(e.errorMessage)}}function f5e(t,r){if(1&t&&(n.j41(0,"div",33)(1,"span",35),n.EFF(2),n.k0s()()),2&t){const e=n.XpG();n.R7$(2),n.JRh(e.sortWarningMessage)}}function m5e(t,r){if(1&t&&(n.j41(0,"div"),n.nrm(1,"div",36),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.Aen(e.chartStyle)}}let yg=(()=>{class t{get filterText(){return this._filterText}set filterText(e){this._filterText=e,this.filterGrid()}get startDate(){return this._startDate}set startDate(e){this._startDate=e,this.setStartDate(),this.filterGridByDate()}get endDate(){return this._endDate}set endDate(e){this._endDate=e,this.setEndDate(),this.filterGridByDate()}get dateProperty(){return this._dateProperty}set dateProperty(e){this._dateProperty=e,this.filterGridByDate()}constructor(e){this.http=e,this.gridOptions={},this.height=null,this.minHeight=null,this.endpoint=null,this.maxRows=null,this._filterText="",this.page=null,this.sidx=null,this.sord="",this.rowModelType="serverSide",this.serverSideStoreType="partial",this._startDate="",this._endDate="",this.dateTypeFilter=null,this._dateProperty="",this.hideRowCount=!1,this.showChart=null,this.chartHeight=null,this.onDataLoaded=new n.bkB,this.onGridReady=new n.bkB,this.transformData=null,this.filterObject=null,this.autoSizeColumnsOnLoad=null,this.rowHeight=void 0,this.debugMode=!1,this.gridModules=[WNe,F4e,s5e],this.originalRowData=[],this.filteredRowData=[],this.loading=!1,this.startDateMoment=null,this.endDateMoment=null,this.filteredByDate=!1,this.errorMessage=null,this.sortWarningMessage=null,this.maxRowsOptions=[1,5,25,50,100,500,1e3,2e3,4e3,6e3,1e4],this.isMobileView=!1,this.responsiveColumns=[],this.maxMobileWidth=960,this.urlParams=null,this.currentPage=0,this.totalPages=0,this.isPaged=!1,this.totalRows=0,this.gridStyle=null,this.chartStyle=null,this.isGridInitialized=!1,this.filterGridByDate=_.debounce(()=>{if(this.isGridInitialized){if(this.isPaged)return this.urlParams.page=1,void this.loadGridData();if(!this.dateProperty)return void(this.errorMessage="Date property not defined");var i=[];if(!this.startDateMoment&&!this.endDateMoment)return this.gridOptions.api.setRowData(this.originalRowData),this.filteredRowData=this.getGridRows(),void(this.filteredByDate=!1);this.gridOptions.api.showLoadingOverlay();for(var o=0;o<this.originalRowData.length;o++){let s=this.originalRowData[o],a=el()(s[this.dateProperty]),l=!0;l&&this.startDateMoment&&!a.isAfter(this.startDateMoment)&&(l=!1),l&&this.endDateMoment&&!a.isBefore(this.endDateMoment)&&(l=!1),l&&i.push(s)}this.gridOptions.api.setRowData(i),this.gridOptions.api.isQuickFilterPresent()&&this.filterGrid(),this.filteredRowData=i,this.filteredByDate=!0}},150)}ngOnInit(){this.maxRows&&this.maxRowsOptions.indexOf(this.maxRows)<0&&(this.maxRowsOptions.push(this.maxRows),this.maxRowsOptions.sort(function(e,i){return e-i})),this.urlParams={rows:this.maxRows||1e3,page:this.page||1,sidx:this.sidx||"ID",sord:this.sord||"desc",searchFilter:this.filterText||"",dateStartFilter:void 0,dateEndFilter:void 0},this.gridOptions.overlayLoadingTemplate=this.getLoadingDisplayHtml(),this.gridOptions.onSortChanged=e=>{if(this.isPaged){var i=e.api.sortController.getColumnsWithSortingOrdered();if(i&&!(i.length<1)){var o=i[0];this.sortWarningMessage=i.length>1?"Multi-column sorting is not currently supported for this grid":null,this.urlParams.page=1,this.urlParams.sidx=o.colId,this.urlParams.sord=o.sort,this.loadGridData()}}},this.setInitialPaging(),this.initializeGrid(),this.onInit&&this.onInit({refresh:i=>{this.loadGridData(!1,i)}})}getLoadingDisplayHtml(){let e="<div>";for(let i=0;i<25;i++){e+='<div class="placeholder-panel mb-20 pl-15 pr-15"><div class="row">';for(let o=0;o<6;o++)e+='<div class="col-sm-2"><span class="placeholder-text"></span></div>';e+="</div></div>"}return e+="</div>",e}setInitialPaging(){this.currentPage=0,this.totalPages=0,this.isPaged=!1,this.totalRows=0}setStartDate(){this.urlParams&&(this.startDateMoment=this.startDate?el()(this.startDate):null,this.urlParams.dateStartFilter=this.startDateMoment?this.startDateMoment.format("YYYY-MM-DD HH:mm:ss"):null)}setEndDate(){this.urlParams&&(this.endDateMoment=this.endDate?el()(this.endDate):null,this.urlParams.dateEndFilter=this.endDateMoment?this.endDateMoment.format("YYYY-MM-DD HH:mm:ss"):null)}initializeGrid(){var e={resizable:!0,sortable:!0,filter:!1};e={...e,...this.gridOptions.defaultColDef},this.gridOptions.defaultColDef=e,this.gridOptions.angularCompileRows=!1,this.gridOptions.animateRows=!0,this.gridOptions.enableCellTextSelection=!0,this.gridOptions.pagination=!1,this.gridOptions.rowData=void 0,this.gridOptions.suppressCsvExport=!1!==this.gridOptions.suppressCsvExport,this.gridOptions.suppressExcelExport=!1!==this.gridOptions.suppressExcelExport,this.gridStyle={height:this.height||"600px",minHeight:this.minHeight||"400px"},this.gridOptions?.columnDefs?.forEach(o=>{o.headerTooltip=o.headerTooltip||o.headerName,!_.has(o,"tooltipField")&&!_.has(o,"tooltip")&&(o.tooltipField=o.field),"agDateColumnFilter"===o.filter&&!o.filterParams&&(o.filterParams={comparator:function(s,a){try{return a?el()(s).isSame(a,"day")?0:el()(a).isBefore(s)?-1:el()(s).isBefore(a)?1:0:-1}catch{return 0}},browserDatePicker:!0})}),this.gridOptions.onGridReady=o=>{this.getMobileColumns(),this.loadGridData(!1),this.onGridReady.emit(this.gridOptions)};const i=this.gridOptions.onFirstDataRendered;this.gridOptions.onFirstDataRendered=o=>{this.sizeColumnsToFit(),"function"==typeof i&&i(o)},this.gridOptions.onGridSizeChanged=o=>{this.sizeColumnsToFit(),window.innerWidth<=this.maxMobileWidth&&!this.isMobileView&&(this.isMobileView=!0,this.responsiveColumns.length>0&&this.responsiveColumns.forEach(s=>{this.gridOptions.columnApi.moveColumnByIndex(s.desktopIndex,s.mobileIndex)})),window.innerWidth>this.maxMobileWidth&&this.isMobileView&&(this.isMobileView=!1,this.responsiveColumns.length>0&&this.responsiveColumns.forEach(s=>{this.gridOptions.columnApi.moveColumnByIndex(s.mobileIndex,s.desktopIndex)}))}}loadGridData(e=!0,i=void 0){if(this.loading=!0,this.errorMessage=null,this.gridOptions.api&&(this.gridOptions.suppressNoRowsOverlay=!0,e&&this.gridOptions.api.setRowData([]),this.gridOptions.api.showLoadingOverlay()),this.endpoint){this.urlParams.source="grid";let o={};this.urlParams&&Object.keys(this.urlParams).forEach(s=>{null!=this.urlParams[s]&&(o[s]=this.urlParams[s])}),Yo(this.http.get(this.endpoint,{params:o})).then(s=>{this.originalRowData=s.rows,this.gridOptions.api&&this.gridOptions.api.setRowData(this.originalRowData),this.filteredRowData=this.getGridRows(),this.currentPage=s.page,this.totalPages=s.total,this.totalRows=s.totalRows,this.totalPages>1&&(this.isPaged=!0),this.onDataLoaded.emit(this.originalRowData),this.autoSizeColumnsOnLoad&&setTimeout(()=>{this.autoSizeColumns(!1)},100),this.loading=!1,this.isGridInitialized=!0,i&&i()},()=>{this.loading=!1,this.errorMessage="Error loading data from server",this.isGridInitialized=!0})}else{if(this.getData){let o=this.getData();this.processDataResult(o),i&&i()}this.getDataAsync&&this.getDataAsync()?.then(o=>{this.processDataResult(o),i&&i()})}}processDataResult(e){if(null!==e){if(e.error)return this.loading=!1,this.errorMessage="Error loading data from server",void(this.gridOptions.api&&this.gridOptions.api.showNoRowsOverlay());this.originalRowData=e.data,this.gridOptions.api&&this.gridOptions.api.setRowData(this.originalRowData),this.filteredRowData=this.getGridRows(),this.currentPage=e.page||0,this.totalPages=e.total||0,this.totalPages>1&&(this.isPaged=!0),this.onDataLoaded&&this.onDataLoaded.emit(this.originalRowData),this.autoSizeColumnsOnLoad&&this.autoSizeColumns(!1),this.loading=!1}}getMobileColumns(){this.gridOptions?.columnDefs?.forEach((e,i)=>{_.has(e,"mobileIndex")&&this.responsiveColumns.push({mobileIndex:e.mobileIndex,desktopIndex:i})})}autoSizeColumns(e){let i=[];this.gridOptions.columnApi.getAllColumns().forEach(function(o){i.push(o.getColId())}),this.gridOptions.columnApi.autoSizeColumns(i,!!e)}sizeColumnsToFit(){this.gridOptions.api&&this.gridOptions.api.sizeColumnsToFit()}previousPage(){1!==this.currentPage&&(this.urlParams.page=this.currentPage-1,this.loadGridData())}nextPage(){this.currentPage!==this.totalPages&&(this.urlParams.page=this.currentPage+1,this.loadGridData())}firstPage(){1!==this.currentPage&&(this.urlParams.page=1,this.loadGridData())}lastPage(){this.currentPage!==this.totalPages&&(this.urlParams.page=this.totalPages,this.loadGridData())}filterGrid(){if(this.gridOptions&&this.gridOptions.api){if(!this.isPaged)return this.gridOptions.api.setQuickFilter(this.filterText),void(this.filteredRowData=this.getGridRows());this.urlParams.page=1,this.urlParams.searchFilter=this.filterText,this.loadGridData()}}getGridRows(){let e=[];return this.gridOptions.api&&this.gridOptions.api.forEachNodeAfterFilterAndSort(function(i,o){e.push(i.data)}),e}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(Da))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["grid"]],viewQuery:function(i,o){if(1&i&&n.GBs(l5e,5),2&i){let s;n.mGM(s=n.lsd())&&(o.agGrid=s.first)}},hostAttrs:[1,"full-height-element"],inputs:{gridOptions:"gridOptions",height:"height",minHeight:"minHeight",endpoint:"endpoint",maxRows:"maxRows",filterText:"filterText",page:"page",sidx:"sidx",sord:"sord",startDate:"startDate",endDate:"endDate",dateTypeFilter:"dateTypeFilter",dateProperty:"dateProperty",hideRowCount:"hideRowCount",showChart:"showChart",chartHeight:"chartHeight",transformData:"transformData",filterObject:"filterObject",autoSizeColumnsOnLoad:[0,"autoSizeColumns","autoSizeColumnsOnLoad"],rowHeight:"rowHeight",frameworkComponents:"frameworkComponents",getData:"getData",getDataAsync:"getDataAsync",onInit:"onInit",debugMode:"debugMode"},outputs:{onDataLoaded:"onDataLoaded",onGridReady:"onGridReady"},standalone:!1,decls:22,vars:14,consts:[[2,"position","relative"],[2,"position","absolute","top","0","bottom","0","left","0","right","0"],[1,"ag-theme-faom",3,"modules","gridOptions","rowHeight","components"],[1,"display-flex","items-center","justify-between",2,"background-color","#f6f6f6","padding-top","0.5rem","padding-bottom","0.5rem","border","solid 1px #e0e0e0","border-top","0"],[1,"col-sm-4","display-flex","flex-row"],["type","button",1,"btn","btn-link","btn-sm",3,"click"],[1,"fa","fa-refresh"],["class","form-control","title","Maximum Rows","style","\n        width: auto;\n        line-height: 20px;\n        font-size: 10px;\n        height: auto !important;\n      ",3,"ngModel","ngModelChange","change",4,"ngIf"],[2,"margin-left","auto","margin-right","auto"],["class","center-block text-center",4,"ngIf"],[1,"col-sm-4",2,"margin-left","auto"],[1,"display-flex","items-center","justify-end"],["class","text-muted text-sm",4,"ngIf"],["type","button","title","Size Columns To Fit",1,"btn","btn-link","btn-sm",3,"click"],[1,"fa","fa-compress"],["type","button","title","Autosize Columns",1,"btn","btn-link","btn-sm",3,"click"],[1,"fa","fa-arrows-h"],["class","col-xs-12","style","\n    background-color: #f6f6f6;\n    padding-top: 0.5rem;\n    padding-bottom: 0.5rem;\n  ",4,"ngIf"],[4,"ngIf"],["title","Maximum Rows",1,"form-control",2,"width","auto","line-height","20px","font-size","10px","height","auto !important",3,"ngModelChange","change","ngModel"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"center-block","text-center"],["title","First Page",1,"btn","btn-sm","btn-link",3,"click","disabled"],[1,"fa","fa-fast-backward"],["title","Previous Page",1,"btn","btn-sm","btn-link",3,"click","disabled"],[1,"fa","fa-step-backward"],[1,"text-muted","text-sm"],["title","Next Page",1,"btn","btn-sm","btn-link",3,"click","disabled"],[1,"fa","fa-step-forward"],["title","Last Page",1,"btn","btn-sm","btn-link",3,"click","disabled"],[1,"fa","fa-fast-forward"],["ng-if","totalRows"],[1,"col-xs-12",2,"background-color","#f6f6f6","padding-top","0.5rem","padding-bottom","0.5rem"],[1,"text-danger"],[1,"text-warning"],["id","agGridChart",2,"height","10px"]],template:function(i,o){1&i&&(n.j41(0,"div",0)(1,"div",1),n.nrm(2,"ag-grid-angular",2),n.k0s()(),n.j41(3,"div",3)(4,"div",4)(5,"button",5),n.bIt("click",function(){return o.loadGridData()}),n.nrm(6,"i",6),n.j41(7,"span"),n.EFF(8," Refresh"),n.k0s()(),n.DNE(9,u5e,2,2,"select",7),n.k0s(),n.j41(10,"div",8),n.DNE(11,d5e,11,6,"div",9),n.k0s(),n.j41(12,"div",10)(13,"div",11),n.DNE(14,p5e,5,2,"span",12),n.j41(15,"button",13),n.bIt("click",function(){return o.sizeColumnsToFit()}),n.nrm(16,"i",14),n.k0s(),n.j41(17,"button",15),n.bIt("click",function(){return o.autoSizeColumns(!1)}),n.nrm(18,"i",16),n.k0s()()()(),n.DNE(19,h5e,3,1,"div",17)(20,f5e,3,1,"div",17)(21,m5e,2,2,"div",18)),2&i&&(n.Aen(o.gridStyle),n.R7$(2),n.Aen(o.gridStyle),n.Y8G("modules",o.gridModules)("gridOptions",o.gridOptions)("rowHeight",o.rowHeight)("components",o.frameworkComponents),n.R7$(7),n.Y8G("ngIf",o.debugMode),n.R7$(2),n.Y8G("ngIf",o.isPaged),n.R7$(3),n.Y8G("ngIf",!o.hideRowCount),n.R7$(5),n.Y8G("ngIf",o.errorMessage),n.R7$(),n.Y8G("ngIf",o.sortWarningMessage),n.R7$(),n.Y8G("ngIf",o.showChart))},dependencies:[oo,fi,p8,Sy,xy,Ty,_o,ko],encapsulation:2})}}return t})();var _7=b(554),g5e=b(1860);const tW=function(){return g5e.A.Date.now()};var _5e=/\s/;var C5e=/^\s+/;const T5e=function w5e(t){return t&&t.slice(0,function y5e(t){for(var r=t.length;r--&&_5e.test(t.charAt(r)););return r}(t)+1).replace(C5e,"")};var sre=b(5281),are=b(2661);const Rk=function x5e(t){return"symbol"==typeof t||(0,are.A)(t)&&"[object Symbol]"==(0,sre.A)(t)};var E5e=/^[-+]0x[0-9a-f]+$/i,D5e=/^0b[01]+$/i,k5e=/^0o[0-7]+$/i,I5e=parseInt;const nW=function A5e(t){if("number"==typeof t)return t;if(Rk(t))return NaN;if((0,_7.A)(t)){var r="function"==typeof t.valueOf?t.valueOf():t;t=(0,_7.A)(r)?r+"":r}if("string"!=typeof t)return 0===t?t:+t;t=T5e(t);var e=D5e.test(t);return e||k5e.test(t)?I5e(t.slice(2),e?2:8):E5e.test(t)?NaN:+t};var R5e=Math.max,O5e=Math.min;const PO=function F5e(t,r,e){var i,o,s,a,l,c,d=0,f=!1,v=!1,w=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function x(nt){var rt=i,lt=o;return i=o=void 0,d=nt,a=t.apply(lt,rt)}function F(nt){var rt=nt-c;return void 0===c||rt>=r||rt<0||v&&nt-d>=s}function re(){var nt=tW();if(F(nt))return pe(nt);l=setTimeout(re,function M(nt){var bt=r-(nt-c);return v?O5e(bt,s-(nt-d)):bt}(nt))}function pe(nt){return l=void 0,w&&i?x(nt):(i=o=void 0,a)}function tt(){var nt=tW(),rt=F(nt);if(i=arguments,o=this,c=nt,rt){if(void 0===l)return function I(nt){return d=nt,l=setTimeout(re,r),f?x(nt):a}(c);if(v)return clearTimeout(l),l=setTimeout(re,r),x(c)}return void 0===l&&(l=setTimeout(re,r)),a}return r=nW(r)||0,(0,_7.A)(e)&&(f=!!e.leading,s=(v="maxWait"in e)?R5e(nW(e.maxWait)||0,r):s,w="trailing"in e?!!e.trailing:w),tt.cancel=function we(){void 0!==l&&clearTimeout(l),d=0,i=c=o=l=void 0},tt.flush=function je(){return void 0===l?a:pe(tW())},tt};var P5e=b(9162),L5e=b(2676),iW=b(2662);var rW=b(1287),V5e=function B5e(t,r){return function(e,i){if(null==e)return e;if(!(0,rW.A)(e))return t(e,i);for(var o=e.length,s=r?o:-1,a=Object(e);(r?s--:++s<o)&&!1!==i(a[s],s,a););return e}}(function N5e(t,r){return t&&(0,L5e.A)(t,r,iW.A)});const y7=V5e;var oW=b(7003);var Om=b(3744);const Wx=function U5e(t,r){return((0,Om.A)(t)?P5e.A:y7)(t,function j5e(t){return"function"==typeof t?t:oW.A}(r))};var $5e=b(1827);const W5e=function Y5e(t,r,e,i){for(var o=-1,s=null==t?0:t.length;++o<s;){var a=t[o];r(i,a,e(a),t)}return i},q5e=function z5e(t,r,e,i){return y7(t,function(o,s,a){r(i,o,e(o),a)}),i};var X5e=b(5401),cre=b(6155);const ure=function e8e(t){return t==t&&!(0,_7.A)(t)},dre=function i8e(t,r){return function(e){return null!=e&&e[t]===r&&(void 0!==r||t in Object(e))}},o8e=function r8e(t){var r=function t8e(t){for(var r=(0,iW.A)(t),e=r.length;e--;){var i=r[e],o=t[i];r[e]=[i,o,ure(o)]}return r}(t);return 1==r.length&&r[0][2]?dre(r[0][0],r[0][1]):function(e){return e===t||function J5e(t,r,e,i){var o=e.length,s=o,a=!i;if(null==t)return!s;for(t=Object(t);o--;){var l=e[o];if(a&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++o<s;){var c=(l=e[o])[0],d=t[c],f=l[1];if(a&&l[2]){if(void 0===d&&!(c in t))return!1}else{var v=new X5e.A;if(i)var w=i(d,f,c,t,r,v);if(!(void 0===w?(0,cre.A)(f,d,3,i,v):w))return!1}}return!0}(e,t,r)}};var s8e=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a8e=/^\w*$/;const sW=function l8e(t,r){if((0,Om.A)(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!Rk(t))||a8e.test(t)||!s8e.test(t)||null!=r&&t in Object(r)};var pre=b(2291);function aW(t,r){if("function"!=typeof t||null!=r&&"function"!=typeof r)throw new TypeError("Expected a function");var e=function(){var i=arguments,o=r?r.apply(this,i):i[0],s=e.cache;if(s.has(o))return s.get(o);var a=t.apply(this,i);return e.cache=s.set(o,a)||s,a};return e.cache=new(aW.Cache||pre.A),e}aW.Cache=pre.A;const u8e=aW;var f8e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,m8e=/\\(\\)?/g,g8e=function p8e(t){var r=u8e(t,function(i){return 500===e.size&&e.clear(),i}),e=r.cache;return r}(function(t){var r=[];return 46===t.charCodeAt(0)&&r.push(""),t.replace(f8e,function(e,i,o,s){r.push(o?s.replace(m8e,"$1"):i||e)}),r});const v8e=g8e;var b7=b(6944);const Ok=function _8e(t,r){for(var e=-1,i=null==t?0:t.length,o=Array(i);++e<i;)o[e]=r(t[e],e,t);return o};var hre=b7.A?b7.A.prototype:void 0,fre=hre?hre.toString:void 0;const b8e=function mre(t){if("string"==typeof t)return t;if((0,Om.A)(t))return Ok(t,mre)+"";if(Rk(t))return fre?fre.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r},w8e=function C8e(t){return null==t?"":b8e(t)},lW=function T8e(t,r){return(0,Om.A)(t)?t:sW(t,r)?[t]:v8e(w8e(t))},LO=function x8e(t){if("string"==typeof t||Rk(t))return t;var r=t+"";return"0"==r&&1/t==-1/0?"-0":r},C7=function E8e(t,r){for(var e=0,i=(r=lW(r,t)).length;null!=t&&e<i;)t=t[LO(r[e++])];return e&&e==i?t:void 0},A8e=function I8e(t,r){return null!=t&&r in Object(t)};var gre=b(6513),vre=b(8606),M8e=b(5481);const P8e=function F8e(t,r){return null!=t&&function R8e(t,r,e){for(var i=-1,o=(r=lW(r,t)).length,s=!1;++i<o;){var a=LO(r[i]);if(!(s=null!=t&&e(t,a)))break;t=t[a]}return s||++i!=o?s:!!(o=null==t?0:t.length)&&(0,M8e.A)(o)&&(0,vre.A)(a,o)&&((0,Om.A)(t)||(0,gre.A)(t))}(t,r,A8e)},B8e=function G8e(t,r){return sW(t)&&ure(r)?dre(LO(t),r):function(e){var i=function D8e(t,r,e){var i=null==t?void 0:C7(t,r);return void 0===i?e:i}(e,t);return void 0===i&&i===r?P8e(e,t):(0,cre.A)(r,i,3)}},Y8e=function $8e(t){return sW(t)?function V8e(t){return function(r){return r?.[t]}}(LO(t)):function H8e(t){return function(r){return C7(r,t)}}(t)},Fk=function W8e(t){return"function"==typeof t?t:null==t?oW.A:"object"==typeof t?(0,Om.A)(t)?B8e(t[0],t[1]):o8e(t):Y8e(t)};var K8e=Object.prototype.hasOwnProperty,Q8e=function z8e(t,r){return function(e,i){var o=(0,Om.A)(e)?W5e:q5e,s=r?r():{};return o(e,t,Fk(i),s)}}(function(t,r,e){K8e.call(t,e)?t[e].push(r):(0,$5e.A)(t,e,[r])});const zx=Q8e;var J8e=b(563),_re=b7.A?b7.A.isConcatSpreadable:void 0;const e7e=function Z8e(t){return(0,Om.A)(t)||(0,gre.A)(t)||!!(_re&&t&&t[_re])},bre=function yre(t,r,e,i,o){var s=-1,a=t.length;for(e||(e=e7e),o||(o=[]);++s<a;){var l=t[s];r>0&&e(l)?r>1?yre(l,r-1,e,i,o):(0,J8e.A)(o,l):i||(o[o.length]=l)}return o},Cre=function t7e(t,r){var e=-1,i=(0,rW.A)(t)?Array(t.length):[];return y7(t,function(o,s,a){i[++e]=r(o,s,a)}),i};var r7e=b(778);const s7e=function o7e(t,r){if(t!==r){var e=void 0!==t,i=null===t,o=t==t,s=Rk(t),a=void 0!==r,l=null===r,c=r==r,d=Rk(r);if(!l&&!d&&!s&&t>r||s&&a&&c&&!l&&!d||i&&a&&c||!e&&c||!o)return 1;if(!i&&!s&&!d&&t<r||d&&e&&o&&!i&&!s||l&&e&&o||!a&&o||!c)return-1}return 0},wre=function c7e(t,r,e){r=r.length?Ok(r,function(s){return(0,Om.A)(s)?function(a){return C7(a,1===s.length?s[0]:s)}:s}):[oW.A];var i=-1;return r=Ok(r,(0,r7e.A)(Fk)),function n7e(t,r){var e=t.length;for(t.sort(r);e--;)t[e]=t[e].value;return t}(Cre(t,function(s,a,l){return{criteria:Ok(r,function(d){return d(s)}),index:++i,value:s}}),function(s,a){return function a7e(t,r,e){for(var i=-1,o=t.criteria,s=r.criteria,a=o.length,l=e.length;++i<a;){var c=s7e(o[i],s[i]);if(c)return i>=l?c:c*("desc"==e[i]?-1:1)}return t.index-r.index}(s,a,e)})};var u7e=b(4495),cW=b(7357),d7e=(0,u7e.A)(function(t,r){if(null==t)return[];var e=r.length;return e>1&&(0,cW.A)(t,r[0],r[1])?r=[]:e>2&&(0,cW.A)(r[0],r[1],r[2])&&(r=[r[0]]),wre(t,bre(r,1),[])});const Ph=d7e;function p7e(t,r){if(1&t&&(n.j41(0,"div")(1,"div",1)(2,"span",2),n.EFF(3),n.k0s(),n.j41(4,"span",3),n.EFF(5),n.k0s()(),n.j41(6,"span"),n.EFF(7),n.k0s()()),2&t){const e=n.XpG();n.R7$(3),n.SpI(" ",e.agency.Name," "),n.R7$(2),n.SpI(" ",e.agency.Code," "),n.R7$(2),n.LHq(" ",e.agency.AddressLine1,", ",e.agency.City,", ",e.agency.Province,", ",e.agency.PostalCode," ")}}function h7e(t,r){if(1&t&&(n.j41(0,"div",6)(1,"div",7)(2,"span",8),n.EFF(3),n.k0s(),n.j41(4,"span",9),n.EFF(5,"mi"),n.k0s()(),n.j41(6,"div")(7,"div",10)(8,"span",11),n.EFF(9),n.k0s(),n.j41(10,"span",3),n.EFF(11),n.k0s()(),n.j41(12,"span",12),n.EFF(13),n.k0s()()()),2&t){const e=r.$implicit;n.R7$(3),n.JRh(e.Distance),n.R7$(6),n.SpI(" ",e.Name," "),n.R7$(2),n.SpI(" ",e.Code," "),n.R7$(2),n.LHq(" ",e.AddressLine1,", ",e.City,", ",e.Province,", ",e.PostalCode," ")}}function f7e(t,r){if(1&t){const e=n.RV6();n.j41(0,"div")(1,"p-autoComplete",4),n.mxI("ngModelChange",function(o){n.eBV(e);const s=n.XpG();return n.DH7(s.selectedAgency,o)||(s.selectedAgency=o),n.Njj(o)}),n.bIt("completeMethod",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.filterAgencies(o))})("onSelect",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.agencySelected(o))}),n.DNE(2,h7e,14,7,"ng-template",5),n.k0s()()}if(2&t){const e=n.XpG();n.R7$(),n.R50("ngModel",e.selectedAgency),n.Y8G("suggestions",e.filteredAgencies)("dropdown",!0)("disabled",e.loading)("virtualScroll",!0)("virtualScrollItemSize",e.dropDownItemHeight)}}let m7e=(()=>{class t{constructor(){this.agency=null,this.selectedAgency=null,this.filteredAgencies=[],this.loading=!1,this.dropDownItemHeight=80}ngOnInit(){}agInit(e){window.innerWidth<1550&&(this.dropDownItemHeight=60),e.data.agency&&(this.agency=e.data.agency),this.data=e.data,this.donorLocation=e.data.donorLocation,this.onAgencySelected=e.onAgencySelected,this.getAvailableAgencies=e.getAvailableAgencies}refresh(e){return!1}filterAgencies(e){let i=e.query.toLowerCase();this.filteredAgencies=this.getAvailableAgencies(this.donorLocation).filter(o=>o.Name?.toLowerCase().indexOf(i)>-1||o.Code?.toLowerCase().indexOf(i)>-1||o.AddressLine1?.toLowerCase().indexOf(i)>-1||o.City?.toLowerCase().indexOf(i)>-1||o.Province?.toLowerCase().indexOf(i)>-1)}agencySelected(e){this.loading=!0,this.onAgencySelected({AgencyID:e.value.ID,DonorLocationID:this.donorLocation.ID,IsAvailableMonday:!1,IsAvailableMondayAutoAssigned:!1,IsAvailableMondayAutoAssignNote:"",IsAvailableTuesday:!1,IsAvailableTuesdayAutoAssigned:!1,IsAvailableTuesdayAutoAssignNote:"",IsAvailableWednesday:!1,IsAvailableWednesdayAutoAssigned:!1,IsAvailableWednesdayAutoAssignNote:"",IsAvailableThursday:!1,IsAvailableThursdayAutoAssigned:!1,IsAvailableThursdayAutoAssignNote:"",IsAvailableFriday:!1,IsAvailableFridayAutoAssigned:!1,IsAvailableFridayAutoAssignNote:"",IsAvailableSaturday:!1,IsAvailableSaturdayAutoAssigned:!1,IsAvailableSaturdayAutoAssignNote:"",IsAvailableSunday:!1,IsAvailableSundayAutoAssigned:!1,IsAvailableSundayAutoAssignNote:""},this.data)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["add-agency-connection-renderer"]],standalone:!1,decls:2,vars:2,consts:[[4,"ngIf"],[1,"tw-text-sm","xl:tw-text-base","2xl:tw-text-lg"],[1,"tw-font-semibold","tw-text-gray-500"],[1,"tw-ml-2","tw-font-bold","tw-text-gray-900"],["placeholder","Select Agency","field","Name","appendTo","body",1,"tw-flex","tw-flex-col","tw-flex-auto",3,"ngModelChange","completeMethod","onSelect","ngModel","suggestions","dropdown","disabled","virtualScroll","virtualScrollItemSize"],["pTemplate","item"],[1,"tw-flex","tw-flex-row","tw-items-center"],[1,"tw-flex","tw-flex-col","tw-items-center","tw-justify-center","tw-mr-2","-tw-ml-4","-tw-mt-1","tw-w-10","2xl:tw-w-12","tw-border","tw-border-gray-200","tw-bg-gray-100"],[1,"tw-text-sm","xl:tw-text-base","2xl:tw-text-xl","tw-text-gray-900","tw-font-semibold"],[1,"tw-text-xs","2xl:tw-text-sm","tw-text-gray-500"],[1,"tw-text-sm"],[1,"tw-font-semibold","tw-text-gray-600"],[1,"tw-text-xs"]],template:function(i,o){1&i&&n.DNE(0,p7e,8,6,"div",0)(1,f7e,3,6,"div",0),2&i&&(n.Y8G("ngIf",o.agency),n.R7$(),n.Y8G("ngIf",!o.agency))},dependencies:[fi,hs,_o,ko,Ib],encapsulation:2})}}return t})(),g7e=(()=>{class t{constructor(e){this.http=e}addMapping(e){return Yo(this.http.post("/api/donorlocationmappings",e))}static{this.\u0275fac=function(i){return new(i||t)(n.KVO(Da))}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),v7e=(()=>{class t{constructor(){this.style="",this.classes=""}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["icon-exclamation-triangle"]],inputs:{style:"style",classes:"classes"},standalone:!1,decls:2,vars:4,consts:[["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","1.5","stroke","currentColor"],["stroke-linecap","round","stroke-linejoin","round","d","M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"]],template:function(i,o){1&i&&(n.qSk(),n.j41(0,"svg",0),n.nrm(1,"path",1),n.k0s()),2&i&&(n.Aen(o.style),n.HbH(o.classes))},encapsulation:2})}}return t})();const _7e=["mappingPanel"],y7e=t=>({"tw-border tw-border-solid tw-border-red-900 tw-rounded":t});function b7e(t,r){1&t&&(n.j41(0,"span",5),n.EFF(1,"Missing ERP Mapping"),n.k0s())}function C7e(t,r){if(1&t&&(n.j41(0,"div",11)(1,"span"),n.EFF(2),n.k0s()()),2&t){const e=n.XpG(2);n.R7$(2),n.JRh(e.errorMessage)}}function w7e(t,r){if(1&t){const e=n.RV6();n.j41(0,"form",6),n.bIt("submit",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.addMapping(o))}),n.j41(1,"input",7),n.mxI("ngModelChange",function(o){n.eBV(e);const s=n.XpG();return n.DH7(s.donorNumber,o)||(s.donorNumber=o),n.Njj(o)}),n.k0s(),n.j41(2,"input",8),n.mxI("ngModelChange",function(o){n.eBV(e);const s=n.XpG();return n.DH7(s.productSourceCode,o)||(s.productSourceCode=o),n.Njj(o)}),n.k0s(),n.j41(3,"button",9),n.EFF(4),n.k0s()(),n.DNE(5,C7e,3,1,"div",10)}if(2&t){const e=n.XpG();n.R7$(),n.R50("ngModel",e.donorNumber),n.R7$(),n.R50("ngModel",e.productSourceCode),n.R7$(),n.Y8G("disabled",!e.donorNumber||e.submitting),n.R7$(),n.SpI(" ",e.submitting?"Submitting...":"Add Mapping"," "),n.R7$(),n.Y8G("ngIf",e.errorMessage)}}let Tre=(()=>{class t{constructor(e){this.donorLocationMappingsService=e,this.displayType="normal",this.donorLocation=null,this.onMappingAdded=new n.bkB,this.donorNumber="",this.productSourceCode="",this.submitting=!1,this.errorMessage=""}ngOnInit(){}addMapping(e){var i=this;return(0,lr.A)(function*(){if(e.preventDefault(),i.errorMessage="",i.donorLocation){i.submitting=!0;try{yield i.donorLocationMappingsService.addMapping({ExternalNumber:i.donorNumber,LocalId:i.donorLocation.ID,ProductSourceCodeFBC:i.productSourceCode}),i.donorLocation.ExternalStoreNumber=i.donorNumber,i.onMappingAdded.emit(i.donorNumber),i.mappingPanel&&i.mappingPanel.hide()}catch(o){i.errorMessage=o?.error?.ExceptionMessage||"An error occurred."}finally{i.submitting=!1}}else i.errorMessage="No donor location provided."})()}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(g7e))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["mapping-status-indicator"]],viewQuery:function(i,o){if(1&i&&n.GBs(_7e,5),2&i){let s;n.mGM(s=n.lsd())&&(o.mappingPanel=s.first)}},inputs:{displayType:"displayType",donorLocation:"donorLocation"},outputs:{onMappingAdded:"onMappingAdded"},standalone:!1,decls:6,vars:5,consts:[["mappingPanel",""],["type","button",1,"btn-reset","tw-px-2","tw-py-1","tw-flex","tw-items-center","tw-text-red-900",3,"click","ngClass"],["classes","tw-w-6 tw-h-6 tw-pt-px",1,"tw-flex","tw-items-center",3,"title"],["class","tw-ml-1",4,"ngIf"],["pTemplate","content"],[1,"tw-ml-1"],[1,"tw-flex","tw-space-x-2",3,"submit"],["name","donorNumber","placeholder","Donor Number","autocomplete","off","required","",1,"form-control",3,"ngModelChange","ngModel"],["name","productSourceCode","placeholder","Product Source Code (FBC)","autocomplete","off",1,"form-control",3,"ngModelChange","ngModel"],["type","submit",1,"btn","btn-primary",3,"disabled"],["class","tw-mt-4 alert alert-danger",4,"ngIf"],[1,"tw-mt-4","alert","alert-danger"]],template:function(i,o){if(1&i){const s=n.RV6();n.j41(0,"button",1),n.bIt("click",function(l){n.eBV(s);const c=n.sdS(4);return n.Njj(c.toggle(l))}),n.nrm(1,"icon-exclamation-triangle",2),n.DNE(2,b7e,2,0,"span",3),n.k0s(),n.j41(3,"p-popover",null,0),n.DNE(5,w7e,6,5,"ng-template",4),n.k0s()}2&i&&(n.Y8G("ngClass",n.eq3(3,y7e,"normal"===o.displayType)),n.R7$(),n.Y8G("title","small"===o.displayType?"Missing ERP Mapping":""),n.R7$(),n.Y8G("ngIf","normal"===o.displayType))},dependencies:[bi,fi,hs,wv,Cc,_o,Rm,Sv,ko,Sx,v7e,kv],encapsulation:2})}}return t})();const T7e=t=>[t];function S7e(t,r){1&t&&(n.j41(0,"span",4),n.EFF(1," * "),n.k0s())}function x7e(t,r){if(1&t&&(n.j41(0,"span",1)(1,"span",2),n.EFF(2),n.k0s(),n.DNE(3,S7e,2,0,"span",3),n.k0s()),2&t){const e=n.XpG();n.Y8G("ngClass",n.eq3(4,T7e,e.donorLocation.ExternalStoreNumber?"tw-text-green-50 tw-bg-green-900 tw-border-green-800":"tw-text-red-50 tw-bg-red-900 tw-border-red-800")),n.R7$(),n.Y8G("title",e.donorLocation.ExternalStoreNumber?"Store Number: "+e.donorLocation.Code:""),n.R7$(),n.SpI(" ",e.donorLocation.ExternalStoreNumber||e.donorLocation.Code," "),n.R7$(),n.Y8G("ngIf",!e.donorLocation.ExternalStoreNumber)}}let uW=(()=>{class t{constructor(){this.donorLocation=null}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["donor-location-code"]],inputs:{donorLocation:"donorLocation"},standalone:!1,decls:1,vars:1,consts:[["class","\n    tw-block\n    tw-ml-2\n    tw-text-xs\n    tw-rounded\n    tw-px-1\n    tw-py-px\n    tw-border\n    tw-border-solid\n  ",3,"ngClass",4,"ngIf"],[1,"tw-block","tw-ml-2","tw-text-xs","tw-rounded","tw-px-1","tw-py-px","tw-border","tw-border-solid",3,"ngClass"],[3,"title"],["class","tw-text-red-50",4,"ngIf"],[1,"tw-text-red-50"]],template:function(i,o){1&i&&n.DNE(0,x7e,4,6,"span",0),2&i&&n.Y8G("ngIf",o.donorLocation)},dependencies:[bi,fi],encapsulation:2})}}return t})();function E7e(t,r){if(1&t){const e=n.RV6();n.j41(0,"mapping-status-indicator",7),n.bIt("onMappingAdded",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.donorLocationMappingAdded(o))}),n.k0s()}if(2&t){const e=n.XpG(2);n.Y8G("donorLocation",e.donorLocation)}}function D7e(t,r){if(1&t&&(n.j41(0,"div")(1,"div",1)(2,"div",2)(3,"span",3),n.EFF(4),n.k0s(),n.j41(5,"span",4),n.nrm(6,"donor-location-code",5),n.k0s()(),n.DNE(7,E7e,1,1,"mapping-status-indicator",6),n.k0s(),n.j41(8,"span"),n.EFF(9),n.k0s()()),2&t){const e=n.XpG();n.R7$(4),n.SpI(" ",e.donorLocation.DonorName," "),n.R7$(2),n.Y8G("donorLocation",e.donorLocation),n.R7$(),n.Y8G("ngIf",!e.donorLocation.ExternalStoreNumber),n.R7$(2),n.LHq(" ",e.donorLocation.AddressLine1,", ",e.donorLocation.City,", ",e.donorLocation.Province,", ",e.donorLocation.PostalCode," ")}}function k7e(t,r){if(1&t&&(n.j41(0,"div",10)(1,"div",11)(2,"span",12),n.EFF(3),n.k0s(),n.j41(4,"span",13),n.EFF(5,"mi"),n.k0s()(),n.j41(6,"div")(7,"div",14)(8,"span",15),n.EFF(9),n.k0s(),n.j41(10,"span",16),n.EFF(11),n.k0s()(),n.j41(12,"span",17),n.EFF(13),n.k0s()()()),2&t){const e=r.$implicit;n.R7$(3),n.JRh(e.Distance),n.R7$(6),n.SpI(" ",e.DonorName," "),n.R7$(2),n.SpI(" ",e.Code," "),n.R7$(2),n.LHq(" ",e.AddressLine1,", ",e.City,", ",e.Province,", ",e.PostalCode," ")}}function I7e(t,r){if(1&t){const e=n.RV6();n.j41(0,"div")(1,"p-autoComplete",8),n.mxI("ngModelChange",function(o){n.eBV(e);const s=n.XpG();return n.DH7(s.selectedDonorLocation,o)||(s.selectedDonorLocation=o),n.Njj(o)}),n.bIt("completeMethod",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.filterDonorLocations(o))})("onSelect",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.donorLocationSelected(o))}),n.DNE(2,k7e,14,7,"ng-template",9),n.k0s()()}if(2&t){const e=n.XpG();n.R7$(),n.R50("ngModel",e.selectedDonorLocation),n.Y8G("suggestions",e.filteredDonorLocations)("dropdown",!0)("disabled",e.loading)("virtualScroll",!0)("virtualScrollItemSize",e.dropDownItemHeight)}}let A7e=(()=>{class t{constructor(){this.donorLocation=null,this.selectedDonorLocation=null,this.filteredDonorLocations=[],this.loading=!1,this.dropDownItemHeight=80}ngOnInit(){}agInit(e){window.innerWidth<1550&&(this.dropDownItemHeight=60),e.data.donorLocation&&(this.donorLocation=e.data.donorLocation),this.data=e.data,this.agency=e.data.agency,this.onDonorLocationSelected=e.onDonorLocationSelected,this.onDonorLocationMappingAdded=e.onDonorLocationMappingAdded,this.getAvailableDonorLocations=e.getAvailableDonorLocations}refresh(e){return!1}filterDonorLocations(e){let i=e.query.toLowerCase();this.filteredDonorLocations=this.getAvailableDonorLocations(this.agency).filter(o=>o.DonorName?.toLowerCase().indexOf(i)>-1||o.Code?.toLowerCase().indexOf(i)>-1||o.AddressLine1?.toLowerCase().indexOf(i)>-1||o.City?.toLowerCase().indexOf(i)>-1||o.Province?.toLowerCase().indexOf(i)>-1)}donorLocationSelected(e){this.loading=!0,this.onDonorLocationSelected({AgencyID:this.agency.ID,DonorLocationID:e.value.ID,IsAvailableMonday:!1,IsAvailableMondayAutoAssigned:!1,IsAvailableMondayAutoAssignNote:"",IsAvailableTuesday:!1,IsAvailableTuesdayAutoAssigned:!1,IsAvailableTuesdayAutoAssignNote:"",IsAvailableWednesday:!1,IsAvailableWednesdayAutoAssigned:!1,IsAvailableWednesdayAutoAssignNote:"",IsAvailableThursday:!1,IsAvailableThursdayAutoAssigned:!1,IsAvailableThursdayAutoAssignNote:"",IsAvailableFriday:!1,IsAvailableFridayAutoAssigned:!1,IsAvailableFridayAutoAssignNote:"",IsAvailableSaturday:!1,IsAvailableSaturdayAutoAssigned:!1,IsAvailableSaturdayAutoAssignNote:"",IsAvailableSunday:!1,IsAvailableSundayAutoAssigned:!1,IsAvailableSundayAutoAssignNote:""},this.data)}donorLocationMappingAdded(e){this.donorLocation&&(this.donorLocation.Code=e,this.onDonorLocationMappingAdded(this.donorLocation))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["add-donor-location-connection-renderer"]],standalone:!1,decls:2,vars:2,consts:[[4,"ngIf"],[1,"tw-flex","tw-justify-between"],[1,"tw-flex","tw-items-center"],[1,"tw-text-sm","xl:tw-text-base","2xl:tw-text-lg","tw-font-semibold","tw-text-gray-500"],[1,"tw-ml-2"],[3,"donorLocation"],["displayType","small",3,"donorLocation","onMappingAdded",4,"ngIf"],["displayType","small",3,"onMappingAdded","donorLocation"],["placeholder","Select Store","field","DonorName","appendTo","body",1,"tw-flex","tw-flex-col","tx-flex-auto",3,"ngModelChange","completeMethod","onSelect","ngModel","suggestions","dropdown","disabled","virtualScroll","virtualScrollItemSize"],["pTemplate","item"],[1,"tw-flex","tw-flex-row","tw-items-center"],[1,"tw-flex","tw-flex-col","tw-items-center","tw-justify-center","tw-mr-2","-tw-ml-4","-tw-mt-1","tw-w-10","2xl:tw-w-12","tw-border","tw-border-gray-200","tw-bg-gray-100"],[1,"tw-text-sm","xl:tw-text-base","2xl:tw-text-xl","tw-text-gray-900","tw-font-semibold"],[1,"tw-text-xs","2xl:tw-text-sm","tw-text-gray-500"],[1,"tw-text-sm"],[1,"tw-font-semibold","tw-text-gray-600"],[1,"tw-ml-2","tw-font-bold","tw-text-gray-900"],[1,"tw-text-xs"]],template:function(i,o){1&i&&n.DNE(0,D7e,10,7,"div",0)(1,I7e,3,6,"div",0),2&i&&(n.Y8G("ngIf",o.donorLocation),n.R7$(),n.Y8G("ngIf",!o.donorLocation))},dependencies:[fi,hs,_o,ko,Ib,Tre,uW],encapsulation:2})}}return t})();function M7e(t,r){if(1&t&&(n.j41(0,"div")(1,"div",3)(2,"span"),n.EFF(3),n.k0s(),n.j41(4,"span",4),n.EFF(5),n.k0s()(),n.j41(6,"span"),n.EFF(7),n.k0s()()),2&t){const e=n.XpG();n.R7$(3),n.JRh(e.agency.Name),n.R7$(2),n.SpI(" ",e.agency.Code," "),n.R7$(2),n.LHq(" ",e.agency.AddressLine1,", ",e.agency.City,", ",e.agency.Province,", ",e.agency.PostalCode," ")}}function R7e(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",5),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.printSchedule())}),n.EFF(1," View / Print Schedule "),n.k0s()}}let O7e=(()=>{class t{constructor(){this.agency=null,this.connection=null}ngOnInit(){}agInit(e){this.agency=e.data.agency,this.connection=e.data,this.onPrint=e.onPrint}refresh(e){return!1}printSchedule(){this.agency&&this.onPrint(this.agency)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["agency-detail-renderer"]],standalone:!1,decls:3,vars:2,consts:[[4,"ngIf"],[1,"tw-mt-2"],["class","\n      btn-reset\n      tw-px-2\n      tw-py-1\n      tw-flex\n      tw-items-center\n      tw-border\n      tw-border-solid\n      tw-text-gray-900\n      tw-border-gray-700\n      tw-rounded\n      hover:tw-bg-gray-50\n    ",3,"click",4,"ngIf"],[1,"tw-text-sm","xl:tw-text-base","2xl:tw-text-lg","tw-font-semibold"],["title","Agency Number",1,"ml-2","tw-text-gray-500"],[1,"btn-reset","tw-px-2","tw-py-1","tw-flex","tw-items-center","tw-border","tw-border-solid","tw-text-gray-900","tw-border-gray-700","tw-rounded","hover:tw-bg-gray-50",3,"click"]],template:function(i,o){1&i&&(n.DNE(0,M7e,8,6,"div",0),n.j41(1,"div",1),n.DNE(2,R7e,2,0,"button",2),n.k0s()),2&i&&(n.Y8G("ngIf",o.agency),n.R7$(2),n.Y8G("ngIf",null==o.connection?null:o.connection.donorLocation))},dependencies:[fi],encapsulation:2})}}return t})();function F7e(t,r){if(1&t){const e=n.RV6();n.j41(0,"mapping-status-indicator",7),n.bIt("onMappingAdded",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.donorLocationMappingAdded(o))}),n.k0s()}if(2&t){const e=n.XpG(2);n.Y8G("donorLocation",e.donorLocation)}}function P7e(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",8)(1,"button",9),n.bIt("click",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.printSchedule())}),n.EFF(2," View / Print Schedule "),n.k0s()()}}function L7e(t,r){if(1&t&&(n.j41(0,"div")(1,"div",1)(2,"span",2),n.EFF(3),n.k0s(),n.nrm(4,"donor-location-code",3),n.k0s(),n.j41(5,"span",4),n.EFF(6),n.k0s(),n.DNE(7,F7e,1,1,"mapping-status-indicator",5)(8,P7e,3,0,"div",6),n.k0s()),2&t){const e=n.XpG();n.R7$(3),n.SpI(" ",e.donorLocation.DonorName," "),n.R7$(),n.Y8G("donorLocation",e.donorLocation),n.R7$(2),n.LHq(" ",e.donorLocation.AddressLine1,", ",e.donorLocation.City,", ",e.donorLocation.Province,", ",e.donorLocation.PostalCode," "),n.R7$(),n.Y8G("ngIf",!e.donorLocation.ExternalStoreNumber),n.R7$(),n.Y8G("ngIf",null==e.connection?null:e.connection.agency)}}let N7e=(()=>{class t{constructor(){this.connection=null,this.donorLocation=null}ngOnInit(){}agInit(e){this.connection=e.data,this.donorLocation=e.data.donorLocation,this.onDonorLocationMappingAdded=e.onDonorLocationMappingAdded,this.onPrint=e.onPrint}refresh(e){return!1}donorLocationMappingAdded(e){this.donorLocation&&(this.donorLocation.Code=e,this.onDonorLocationMappingAdded(this.donorLocation))}printSchedule(){this.donorLocation&&this.onPrint(this.donorLocation)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["donor-location-detail-renderer"]],standalone:!1,decls:1,vars:1,consts:[[4,"ngIf"],[1,"tw-flex","tw-items-center"],[1,"tw-text-sm","xl:tw-text-base","2xl:tw-text-lg","tw-font-semibold"],[3,"donorLocation"],[1,"tw-block"],["class","tw-flex tw-mt-2",3,"donorLocation","onMappingAdded",4,"ngIf"],["class","tw-mt-2",4,"ngIf"],[1,"tw-flex","tw-mt-2",3,"onMappingAdded","donorLocation"],[1,"tw-mt-2"],[1,"btn-reset","tw-px-2","tw-py-1","tw-flex","tw-items-center","tw-border","tw-border-solid","tw-text-gray-900","tw-border-gray-700","tw-rounded","hover:tw-bg-gray-50",3,"click"]],template:function(i,o){1&i&&n.DNE(0,L7e,9,8,"div",0),2&i&&n.Y8G("ngIf",o.donorLocation)},dependencies:[fi,Tre,uW],encapsulation:2})}}return t})(),dW=(()=>{class t{constructor(){this.style="",this.class=""}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["icon-arrow-uturn-left"]],inputs:{style:"style",class:"class"},standalone:!1,decls:2,vars:1,consts:[["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","1.5","stroke","currentColor",3,"ngClass"],["stroke-linecap","round","stroke-linejoin","round","d","M9 15L3 9m0 0l6-6M3 9h12a6 6 0 010 12h-3"]],template:function(i,o){1&i&&(n.qSk(),n.j41(0,"svg",0),n.nrm(1,"path",1),n.k0s()),2&i&&n.Y8G("ngClass",o.class)},dependencies:[bi],encapsulation:2})}}return t})(),pW=(()=>{class t{constructor(){this.style="",this.class=""}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["icon-trash-can"]],inputs:{style:"style",class:"class"},standalone:!1,decls:2,vars:1,consts:[["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","1.5","stroke","currentColor",3,"ngClass"],["stroke-linecap","round","stroke-linejoin","round","d","M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"]],template:function(i,o){1&i&&(n.qSk(),n.j41(0,"svg",0),n.nrm(1,"path",1),n.k0s()),2&i&&n.Y8G("ngClass",o.class)},dependencies:[bi],encapsulation:2})}}return t})(),hW=(()=>{class t{constructor(){this.style="",this.class=""}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["icon-trash-can-solid"]],inputs:{style:"style",class:"class"},standalone:!1,decls:2,vars:1,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24","fill","currentColor",3,"ngClass"],["fill-rule","evenodd","d","M16.5 4.478v.227a48.816 48.816 0 013.878.512.75.75 0 11-.256 1.478l-.209-.035-1.005 13.07a3 3 0 01-2.991 2.77H8.084a3 3 0 01-2.991-2.77L4.087 6.66l-.209.035a.75.75 0 01-.256-1.478A48.567 48.567 0 017.5 4.705v-.227c0-1.564 1.213-2.9 2.816-2.951a52.662 52.662 0 013.369 0c1.603.051 2.815 1.387 2.815 2.951zm-6.136-1.452a51.196 51.196 0 013.273 0C14.39 3.05 15 3.684 15 4.478v.113a49.488 49.488 0 00-6 0v-.113c0-.794.609-1.428 1.364-1.452zm-.355 5.945a.75.75 0 10-1.5.058l.347 9a.75.75 0 101.499-.058l-.346-9zm5.48.058a.75.75 0 10-1.498-.058l-.347 9a.75.75 0 001.5.058l.345-9z","clip-rule","evenodd"]],template:function(i,o){1&i&&(n.qSk(),n.j41(0,"svg",0),n.nrm(1,"path",1),n.k0s()),2&i&&n.Y8G("ngClass",o.class)},dependencies:[bi],encapsulation:2})}}return t})();const G7e=t=>[t];function B7e(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",5),n.bIt("click",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.beginRemoveConnection())}),n.nrm(1,"icon-trash-can",6),n.k0s()}}function V7e(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",7),n.bIt("click",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.confirming=!1)}),n.nrm(1,"icon-arrow-uturn-left",8),n.k0s()}if(2&t){const e=n.XpG(2);n.Y8G("disabled",e.removing)}}function j7e(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",9),n.bIt("click",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.confirmRemoveConnection())}),n.nrm(1,"icon-trash-can-solid",10),n.k0s()}if(2&t){const e=n.XpG(2);n.Y8G("disabled",e.removing),n.R7$(),n.Y8G("ngClass",n.eq3(2,G7e,e.removing?"tw-text-gray-500":"tw-text-red-900 hover:tw-text-red-700"))}}function H7e(t,r){if(1&t&&(n.j41(0,"div",1),n.DNE(1,B7e,2,0,"button",2)(2,V7e,2,1,"button",3)(3,j7e,2,4,"button",4),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngIf",!e.confirming),n.R7$(),n.Y8G("ngIf",e.confirming),n.R7$(),n.Y8G("ngIf",e.confirming)}}let U7e=(()=>{class t{constructor(){this.confirming=!1,this.removing=!1}agInit(e){this.connectionRow=e.data,this.onRemoveConnection=e.onRemoveConnection}refresh(e){return!1}beginRemoveConnection(){this.confirming=!0}confirmRemoveConnection(){this.removing=!0,this.onRemoveConnection(this.connectionRow)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-remove-connection-renderer"]],standalone:!1,decls:1,vars:1,consts:[["class","tw-flex",4,"ngIf"],[1,"tw-flex"],["type","button","class","\n      tw-p-0 tw-bg-transparent tw-border-0 tw-select-none tw-text-gray-500\n      hover:tw-text-red-900\n      tw-transition-all tw-duration-300\n    ",3,"click",4,"ngIf"],["type","button","class","tw-p-0 tw-bg-transparent tw-border-0 tw-select-none tw-text-gray-500","title","Cancel",3,"disabled","click",4,"ngIf"],["type","button","class","tw-ml-4 tw-p-0 tw-bg-transparent tw-border-0 tw-select-none","title","Confirm Removal",3,"disabled","click",4,"ngIf"],["type","button",1,"tw-p-0","tw-bg-transparent","tw-border-0","tw-select-none","tw-text-gray-500","hover:tw-text-red-900","tw-transition-all","tw-duration-300",3,"click"],[1,"tw-w-8","tw-h-8"],["type","button","title","Cancel",1,"tw-p-0","tw-bg-transparent","tw-border-0","tw-select-none","tw-text-gray-500",3,"click","disabled"],[1,"tw-w-8","tw-h-8","tw-text-gray-500","hover:tw-text-gray-700"],["type","button","title","Confirm Removal",1,"tw-ml-4","tw-p-0","tw-bg-transparent","tw-border-0","tw-select-none",3,"click","disabled"],[1,"tw-w-8","tw-h-8","tw-transition-all","tw-duration-300",3,"ngClass"]],template:function(i,o){1&i&&n.DNE(0,H7e,4,3,"div",0),2&i&&n.Y8G("ngIf",o.connectionRow&&!o.connectionRow.isNewRow)},dependencies:[bi,fi,dW,pW,hW],encapsulation:2})}}return t})(),Sre=(()=>{class t{constructor(e){this.http=e,this.trackedScheduleAssignmentRenderers=[]}addConnection(e){return Yo(this.http.post("/api/foodbankconnections",e))}updateConnection(e){return Yo(this.http.put(`/api/foodbankconnections/${e.ID}`,e))}removeConnection(e){return Yo(this.http.delete(`/api/foodbankconnections/${e.ID}`))}getConnections(){return Yo(this.http.get("/api/foodbankconnections"))}getAgencies(){return Yo(this.http.get("/api/foodbankconnections/agencies"))}getDonorLocations(){return Yo(this.http.get("/api/foodbankconnections/donorlocations"))}getDistanceBetweenTwoPoints(e,i){if(e.lat==i.lat&&e.lon==i.lon)return 0;const o=Math.PI*e.lat/180,s=Math.PI*i.lat/180,l=Math.PI*(e.lon-i.lon)/180;let c=Math.sin(o)*Math.sin(s)+Math.cos(o)*Math.cos(s)*Math.cos(l);return c>1&&(c=1),c=Math.acos(c),c=180*c/Math.PI,c=60*c*1.1515,c}generateId(){return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}registerScheduleAssignmentRenderer(e,i){this.trackedScheduleAssignmentRenderers.push({id:e,clearHoverState:i})}clearHoverStateForAllExcept(e){this.trackedScheduleAssignmentRenderers.forEach(i=>{try{i.id!==e&&i.clearHoverState()}catch{}})}unregisterScheduleAssignmentRenderer(e){this.trackedScheduleAssignmentRenderers.splice(this.trackedScheduleAssignmentRenderers.findIndex(i=>i.id===e),1)}static{this.\u0275fac=function(i){return new(i||t)(n.KVO(Da))}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function xre(t,r=w8,e){const i=Z$(t,r);return function $7e(t,r){return(0,zd.N)((e,i)=>{const{leading:o=!0,trailing:s=!1}=r??{};let a=!1,l=null,c=null,d=!1;const f=()=>{c?.unsubscribe(),c=null,s&&(x(),d&&i.complete())},v=()=>{c=null,d&&i.complete()},w=I=>c=Rs(t(I)).subscribe((0,Dd._)(i,f,v)),x=()=>{if(a){a=!1;const I=l;l=null,i.next(I),!d&&w(I)}};e.subscribe((0,Dd._)(i,I=>{a=!0,l=I,(!c||c.closed)&&(o?x():w(I))},()=>{d=!0,(!(s&&a&&c)||c.closed)&&i.complete()}))})}(()=>i,e)}let fW=(()=>{class t{constructor(){}generateId(){return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ere=b(1448);let mW=(()=>{class t{constructor(){this.trackedTriStateToggles=[],this.riveFile=null,this.initialized=!1}init(){var e=this;return(0,lr.A)(function*(){(!e.initialized||!e.riveFile)&&(e.riveFile=yield e.loadRiveFile(),e.initialized=!0)})()}getRiveFile(){return this.riveFile}registerTriStateToggle(e,i,o){this.trackedTriStateToggles.push({groupId:e,id:i,clearHoverState:o})}clearHoverStateForAllExcept(e,i){this.trackedTriStateToggles.forEach(o=>{try{o.groupId===e&&o.id!==i&&o.clearHoverState()}catch{}})}unregisterTriStateToggle(e,i){this.trackedTriStateToggles.splice(this.trackedTriStateToggles.findIndex(o=>o.groupId===e&&o.id===i),1)}loadRiveFile(){return(0,lr.A)(function*(){let e=new Ere.RiveFile({src:"/Content/rive/tri-state-toggle.riv",onLoad:()=>{},onLoadError:i=>{console.log("Rive load error",i)}});return yield e.init(),e})()}ngOnDestroy(){this.riveFile?.cleanup()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const Y7e=["riveCanvas"];let W7e=(()=>{class t{constructor(){this.riveCanvasElement=n.ebz.required("riveCanvas"),this.isAssigned=n.hFB.required(),this.isHovering=n.hFB.required(),this.isLoading=n.hFB.required(),this.riveFile=n.hFB.required(),this.isHoveringInput=void 0,this.isRequestingInput=void 0,this.isAssignedInput=void 0}ngOnInit(){this.rive=new Ere.Rive({riveFile:this.riveFile(),canvas:this.riveCanvasElement().nativeElement,stateMachines:"Main State Machine",autoplay:!0,onLoad:()=>{let e=this.rive.stateMachineInputs("Main State Machine");this.isAssignedInput=e.find(i=>"IsAssigned"==i.name),this.isHoveringInput=e.find(i=>"IsHovering"==i.name),this.isRequestingInput=e.find(i=>"IsRequesting"==i.name),this.isAssignedInput.value=this.isAssigned(),this.rive.resizeDrawingSurfaceToCanvas()}})}ngOnChanges(e){this.isAssignedInput&&e.isAssigned&&(this.isAssignedInput.value=e.isAssigned.currentValue),this.isHoveringInput&&e.isHovering&&(this.isHoveringInput.value=e.isHovering.currentValue),this.isRequestingInput&&e.isLoading&&(this.isRequestingInput.value=e.isLoading.currentValue)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["tri-state-toggle-canvas"]],viewQuery:function(i,o){1&i&&n.wEZ(o.riveCanvasElement,Y7e,5),2&i&&n.NyB()},inputs:{isAssigned:[1,"isAssigned"],isHovering:[1,"isHovering"],isLoading:[1,"isLoading"],riveFile:[1,"riveFile"]},features:[n.OA$],decls:2,vars:0,consts:[["riveCanvas",""],["height","96","width","96",2,"margin-top","5px","width","48px","height","48px"]],template:function(i,o){1&i&&n.nrm(0,"canvas",1,0)},encapsulation:2})}}return t})();const z7e=(t,r,e)=>({"tw-cursor-not-allowed":t,"tw-cursor-pointer":r,"tw-border-2 tw-border-solid tw-border-green-800":e});function q7e(t,r){if(1&t&&n.nrm(0,"tri-state-toggle-canvas",2),2&t){const e=n.XpG();n.Y8G("isAssigned",e.isAssigned())("isHovering",e.isHovering())("isLoading",e.isLoading())("riveFile",e.riveFile)}}function X7e(t,r){1&t&&(n.j41(0,"div",1),n.nrm(1,"div",4),n.k0s())}function K7e(t,r){if(1&t&&(n.j41(0,"div",3),n.DNE(1,X7e,2,0,"div",1),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.vxM(e.isAssigned()?1:-1)}}let Dre=(()=>{class t{constructor(e,i){this.uniqueIdGeneratorService=e,this.triStateToggleTrackerService=i,this.id=(0,n.vPA)(""),this.isHovering=(0,n.vPA)(!1),this.isAnimationHot=(0,n.vPA)(!1),this.isLoading=(0,n.vPA)(!1),this.hoverSubject=new K.B,this.tapSubject=new K.B,this.hoverTimeout=(0,n.vPA)(null),this.groupId=(0,n.hFB)(""),this.isAllowed=(0,n.hFB)(!0),this.isAssigned=(0,n.hFB)(!1),this.classes=(0,n.hFB)(""),this.isAutoAssigned=(0,n.hFB)(!1),this.onToggle=(0,n.CGW)(),this.onStatusChange=(0,n.CGW)()}ngOnInit(){var e=this;return(0,lr.A)(function*(){e.id.set(e.uniqueIdGeneratorService.generateId()),e.riveFile=e.triStateToggleTrackerService.getRiveFile(),e.triStateToggleTrackerService.registerTriStateToggle(e.groupId(),e.id(),()=>{e.isHovering.set(!1)}),e.hoverSubject.pipe(xre(100)).subscribe(()=>{e.isHovering.set(!0),e.isAnimationHot.set(!0)}),e.tapSubject.pipe(xre(100)).subscribe(()=>{e.isAnimationHot.set(!0),e.isLoading.set(!0);let i=e;e.onToggle.emit({onComplete(o){i.isLoading.set(!1),i.onStatusChange.emit({isAllowed:i.isAllowed(),isAssigned:i.isAssigned()})}})})})()}onMouseEnter(){!this.isAssigned()&&!this.isAllowed()||(this.isLoading()||this.hoverSubject.next(!0),this.triStateToggleTrackerService.clearHoverStateForAllExcept(this.groupId(),this.id()))}onClick(){!this.isAssigned()&&!this.isAllowed()||this.isLoading()||this.tapSubject.next(!0)}onMouseOut(){!this.isAssigned()&&!this.isAllowed()||(this.isLoading()?(this.hoverTimeout()&&window.clearTimeout(this.hoverTimeout()),this.hoverTimeout.set(window.setTimeout(()=>{this.onMouseOut()},1500))):(this.isHovering.set(!1),window.setTimeout(()=>{this.isHovering()||this.isAnimationHot.set(!1)},1e3)))}ngOnDestroy(){this.triStateToggleTrackerService.unregisterTriStateToggle(this.groupId(),this.id())}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(fW),n.rXU(mW))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["tri-state-toggle"]],inputs:{groupId:[1,"groupId"],isAllowed:[1,"isAllowed"],isAssigned:[1,"isAssigned"],classes:[1,"classes"],isAutoAssigned:[1,"isAutoAssigned"]},outputs:{onToggle:"onToggle",onStatusChange:"onStatusChange"},standalone:!1,decls:4,vars:8,consts:[[1,"tw-w-full","tw-h-full",3,"click","mouseenter","mouseleave","ngClass"],[1,"display-flex","items-center","justify-center","tw-h-full"],[3,"isAssigned","isHovering","isLoading","riveFile"],[1,"tw-w-full","tw-h-full",2,"padding","8px"],[1,"tw-w-8","tw-h-8","aspect-square","rounded-full",2,"background-color","#53682b"]],template:function(i,o){1&i&&(n.j41(0,"div",0),n.bIt("click",function(){return o.onClick()})("mouseenter",function(){return o.onMouseEnter()})("mouseleave",function(){return o.onMouseOut()}),n.j41(1,"div",1),n.DNE(2,q7e,1,4,"tri-state-toggle-canvas",2)(3,K7e,2,1,"div",3),n.k0s()()),2&i&&(n.HbH(o.classes()),n.Y8G("ngClass",n.sMw(4,z7e,!o.isAssigned()&&(!o.isAllowed()||o.isLoading()),(o.isAssigned()||o.isAllowed())&&!o.isLoading(),o.isAutoAssigned())),n.R7$(2),n.vxM(o.isAnimationHot()?2:3))},dependencies:[bi,W7e],encapsulation:2})}}return t})(),Q7e=(()=>{class t{constructor(e){this.connectionsService=e,this.isAssigned=(0,n.vPA)(!1),this.isAutoAssigned=(0,n.vPA)(!1),this.isHovering=(0,n.vPA)(!1),this.isRequesting=(0,n.vPA)(!1),this.isRenderingSuccessfulAssignmentAnimation=(0,n.vPA)(!1),this.isAllowed=(0,n.vPA)(!1),this.isInvalid=(0,n.vPA)(!1),this.isAvailableDay=(0,n.vPA)(!1),this.id=(0,n.vPA)(""),this.actionText=(0,n.vPA)(""),this.connectionKey="",this.animationHot=(0,n.vPA)(!1)}ngOnInit(){this.id.set(this.connectionsService.generateId()),this.connectionsService.registerScheduleAssignmentRenderer(this.id(),()=>{this.isHovering.set(!1)})}agInit(e){this.connectionRow=e.data,this.sourceConnection=e.data.connection,this.onUpdateNeeded=e.onUpdateNeeded,this.sourceConnection&&(this.connectionKey=`IsAvailable${e.dayOfWeek}`,this.connectionKey in this.sourceConnection&&(this.isAssigned.set(!!this.sourceConnection[this.connectionKey]),this.isAllowed.set(!1),this.connectionRow.agency&&this.connectionRow.donorLocation&&(this.isAllowed.set(!0),this.isAvailableDay.set(this.connectionRow.agency[this.connectionKey]&&this.connectionRow.donorLocation[this.connectionKey])),this.isInvalid.set(!this.isAllowed&&this.isAssigned())),this.isAutoAssigned.set(this.sourceConnection[`IsAvailable${e.dayOfWeek}AutoAssigned`]),this.actionText.set(this.sourceConnection[`IsAvailable${e.dayOfWeek}AutoAssignNote`]??""))}refresh(e){return!0}toggle(e){var i=this;this.sourceConnection[this.connectionKey]=!this.sourceConnection[this.connectionKey],this.onUpdateNeeded(this.connectionRow,this.connectionKey,o=>{e.onComplete(o),o?(i.isAssigned.set(this.sourceConnection[this.connectionKey]),i.isInvalid()&&i.isHovering.set(!1),i.isInvalid.set(!i.isAllowed&&i.isAssigned()),i.isAssigned()?(i.isAutoAssigned.set(!1),i.actionText.set(""),setTimeout(()=>{i.animationHot.set(!1),i.isRenderingSuccessfulAssignmentAnimation.set(!1)},1e3)):setTimeout(()=>{!i.isHovering()&&!i.isRequesting()&&!i.isRenderingSuccessfulAssignmentAnimation()&&i.animationHot.set(!1)},1e4),i.isRequesting.set(!1)):(this.isHovering.set(!1),this.sourceConnection[this.connectionKey]=!this.sourceConnection[this.connectionKey],setTimeout(()=>{i.animationHot.set(!1),i.isRenderingSuccessfulAssignmentAnimation.set(!1),i.isRequesting.set(!1)},1e3))})}ngOnDestroy(){this.connectionsService.unregisterScheduleAssignmentRenderer(this.id())}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(Sre))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["schedule-assignment-renderer"]],standalone:!1,decls:1,vars:5,consts:[[1,"tw-w-full","tw-h-full",3,"onToggle","isAssigned","isAutoAssigned","isAllowed","title","classes"]],template:function(i,o){1&i&&(n.j41(0,"tri-state-toggle",0),n.bIt("onToggle",function(a){return o.toggle(a)}),n.k0s()),2&i&&n.Y8G("isAssigned",o.isAssigned())("isAutoAssigned",o.isAutoAssigned())("isAllowed",o.isAllowed())("title",o.actionText())("classes",o.isAvailableDay()?"":"tw-bg-gray-200")},dependencies:[Dre],encapsulation:2})}}return t})();var gW=b(9107),J7e=b(4941),kre=b.n(J7e),NO_version="0.18.5",bg=1200,qx=1252,Z7e=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],vW={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},w7=function(t){-1!=Z7e.indexOf(t)&&(qx=vW[0]=t)},Fv=function(t){bg=t,w7(t)};var ql,GO=function(r){return String.fromCharCode(r)},_W=function(r){return String.fromCharCode(r)},Zw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function VO(t){for(var r="",e=0,i=0,o=0,s=0,a=0,l=0,c=0,d=0;d<t.length;)s=(e=t.charCodeAt(d++))>>2,a=(3&e)<<4|(i=t.charCodeAt(d++))>>4,l=(15&i)<<2|(o=t.charCodeAt(d++))>>6,c=63&o,isNaN(i)?l=c=64:isNaN(o)&&(c=64),r+=Zw.charAt(s)+Zw.charAt(a)+Zw.charAt(l)+Zw.charAt(c);return r}function Cg(t){var r="",s=0,a=0,l=0,c=0;t=t.replace(/[^\w\+\/\=]/g,"");for(var d=0;d<t.length;)s=Zw.indexOf(t.charAt(d++)),a=Zw.indexOf(t.charAt(d++)),r+=String.fromCharCode(s<<2|a>>4),64!==(l=Zw.indexOf(t.charAt(d++)))&&(r+=String.fromCharCode((15&a)<<4|l>>2)),64!==(c=Zw.indexOf(t.charAt(d++)))&&(r+=String.fromCharCode((3&l)<<6|c));return r}var nl=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),Fb=function(){if(typeof Buffer<"u"){var t=!Buffer.from;if(!t)try{Buffer.from("foo","utf8")}catch{t=!0}return t?function(r,e){return e?new Buffer(r,e):new Buffer(r)}:Buffer.from.bind(Buffer)}return function(){}}();function eT(t){return nl?Buffer.alloc?Buffer.alloc(t):new Buffer(t):typeof Uint8Array<"u"?new Uint8Array(t):new Array(t)}function Are(t){return nl?Buffer.allocUnsafe?Buffer.allocUnsafe(t):new Buffer(t):typeof Uint8Array<"u"?new Uint8Array(t):new Array(t)}var wg=function(r){return nl?Fb(r,"binary"):r.split("").map(function(e){return 255&e.charCodeAt(0)})};function jO(t){if(typeof ArrayBuffer>"u")return wg(t);for(var r=new ArrayBuffer(t.length),e=new Uint8Array(r),i=0;i!=t.length;++i)e[i]=255&t.charCodeAt(i);return r}function tT(t){if(Array.isArray(t))return t.map(function(i){return String.fromCharCode(i)}).join("");for(var r=[],e=0;e<t.length;++e)r[e]=String.fromCharCode(t[e]);return r.join("")}var nh=nl?function(t){return Buffer.concat(t.map(function(r){return Buffer.isBuffer(r)?r:Fb(r)}))}:function(t){if(typeof Uint8Array<"u"){var r=0,e=0;for(r=0;r<t.length;++r)e+=t[r].length;var i=new Uint8Array(e),o=0;for(r=0,e=0;r<t.length;e+=o,++r)if(o=t[r].length,t[r]instanceof Uint8Array)i.set(t[r],e);else{if("string"==typeof t[r])throw"wtf";i.set(new Uint8Array(t[r]),e)}return i}return[].concat.apply([],t.map(function(s){return Array.isArray(s)?s:[].slice.call(s)}))},_f=/\u0000/g,HO=/[\u0001-\u0006]/g;function Lk(t){for(var r="",e=t.length-1;e>=0;)r+=t.charAt(e--);return r}function e0(t,r){var e=""+t;return e.length>=r?e:Md("0",r-e.length)+e}function bW(t,r){var e=""+t;return e.length>=r?e:Md(" ",r-e.length)+e}function x7(t,r){var e=""+t;return e.length>=r?e:e+Md(" ",r-e.length)}var Mre=Math.pow(2,32);function Nk(t,r){return t>Mre||t<-Mre?function rGe(t,r){var e=""+Math.round(t);return e.length>=r?e:Md("0",r-e.length)+e}(t,r):function oGe(t,r){var e=""+t;return e.length>=r?e:Md("0",r-e.length)+e}(Math.round(t),r)}function E7(t,r){return t.length>=7+(r=r||0)&&103==(32|t.charCodeAt(r))&&101==(32|t.charCodeAt(r+1))&&110==(32|t.charCodeAt(r+2))&&101==(32|t.charCodeAt(r+3))&&114==(32|t.charCodeAt(r+4))&&97==(32|t.charCodeAt(r+5))&&108==(32|t.charCodeAt(r+6))}var Rre=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],CW=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]],ea={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"\u4e0a\u5348/\u4e0b\u5348 "hh"\u6642"mm"\u5206"ss"\u79d2 "'},Ore={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},aGe={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function D7(t,r,e){for(var i=t<0?-1:1,o=t*i,s=0,a=1,l=0,c=1,d=0,f=0,v=Math.floor(o);d<r&&(l=(v=Math.floor(o))*a+s,f=v*d+c,!(o-v<5e-8));)o=1/(o-v),s=a,a=l,c=d,d=f;if(f>r&&(d>r?(f=c,l=s):(f=d,l=a)),!e)return[0,i*l,f];var w=Math.floor(i*l/f);return[w,i*l-w*f,f]}function nT(t,r,e){if(t>2958465||t<0)return null;var i=0|t,o=Math.floor(86400*(t-i)),s=0,a=[],l={D:i,T:o,u:86400*(t-i)-o,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(l.u)<1e-6&&(l.u=0),r&&r.date1904&&(i+=1462),l.u>.9999&&(l.u=0,86400==++o&&(l.T=o=0,++i,++l.D)),60===i)a=e?[1317,10,29]:[1900,2,29],s=3;else if(0===i)a=e?[1317,8,29]:[1900,1,0],s=6;else{i>60&&--i;var c=new Date(1900,0,1);c.setDate(c.getDate()+i-1),a=[c.getFullYear(),c.getMonth()+1,c.getDate()],s=c.getDay(),i<60&&(s=(s+6)%7),e&&(s=function hGe(t,r){r[0]-=581;var e=t.getDay();return t<60&&(e=(e+6)%7),e}(c,a))}return l.y=a[0],l.m=a[1],l.d=a[2],l.S=o%60,o=Math.floor(o/60),l.M=o%60,o=Math.floor(o/60),l.H=o,l.q=s,l}var Fre=new Date(1899,11,31,0,0,0),lGe=Fre.getTime(),cGe=new Date(1900,2,1,0,0,0);function Pre(t,r){var e=t.getTime();return r?e-=1262304e5:t>=cGe&&(e+=864e5),(e-(lGe+6e4*(t.getTimezoneOffset()-Fre.getTimezoneOffset())))/864e5}function wW(t){return-1==t.indexOf(".")?t:t.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function Xx(t,r){switch(typeof t){case"string":return t;case"boolean":return t?"TRUE":"FALSE";case"number":return(0|t)===t?t.toString(10):function UO(t){var e,r=Math.floor(Math.log(Math.abs(t))*Math.LOG10E);return e=r>=-4&&r<=-1?t.toPrecision(10+r):Math.abs(r)<=9?function dGe(t){var r=t<0?12:11,e=wW(t.toFixed(12));return e.length<=r||(e=t.toPrecision(10)).length<=r?e:t.toExponential(5)}(t):10===r?t.toFixed(10).substr(0,12):function pGe(t){var r=wW(t.toFixed(11));return r.length>(t<0?12:11)||"0"===r||"-0"===r?t.toPrecision(6):r}(t),wW(function uGe(t){return-1==t.indexOf("E")?t:t.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}(e.toUpperCase()))}(t);case"undefined":return"";case"object":if(null==t)return"";if(t instanceof Date)return Tg(14,Pre(t,r&&r.date1904),r)}throw new Error("unsupported value in General format: "+t)}function fGe(t,r,e,i){var c,o="",s=0,a=0,l=e.y,d=0;switch(t){case 98:l=e.y+543;case 121:switch(r.length){case 1:case 2:c=l%100,d=2;break;default:c=l%1e4,d=4}break;case 109:switch(r.length){case 1:case 2:c=e.m,d=r.length;break;case 3:return CW[e.m-1][1];case 5:return CW[e.m-1][0];default:return CW[e.m-1][2]}break;case 100:switch(r.length){case 1:case 2:c=e.d,d=r.length;break;case 3:return Rre[e.q][0];default:return Rre[e.q][1]}break;case 104:switch(r.length){case 1:case 2:c=1+(e.H+11)%12,d=r.length;break;default:throw"bad hour format: "+r}break;case 72:switch(r.length){case 1:case 2:c=e.H,d=r.length;break;default:throw"bad hour format: "+r}break;case 77:switch(r.length){case 1:case 2:c=e.M,d=r.length;break;default:throw"bad minute format: "+r}break;case 115:if("s"!=r&&"ss"!=r&&".0"!=r&&".00"!=r&&".000"!=r)throw"bad second format: "+r;return 0!==e.u||"s"!=r&&"ss"!=r?(a=i>=2?3===i?1e3:100:1===i?10:1,(s=Math.round(a*(e.S+e.u)))>=60*a&&(s=0),"s"===r?0===s?"0":""+s/a:(o=e0(s,2+i),"ss"===r?o.substr(0,2):"."+o.substr(2,r.length-1))):e0(e.S,r.length);case 90:switch(r){case"[h]":case"[hh]":c=24*e.D+e.H;break;case"[m]":case"[mm]":c=60*(24*e.D+e.H)+e.M;break;case"[s]":case"[ss]":c=60*(60*(24*e.D+e.H)+e.M)+Math.round(e.S+e.u);break;default:throw"bad abstime format: "+r}d=3===r.length?1:2;break;case 101:c=l,d=1}return d>0?e0(c,d):""}function iT(t){if(t.length<=3)return t;for(var e=t.length%3,i=t.substr(0,e);e!=t.length;e+=3)i+=(i.length>0?",":"")+t.substr(e,3);return i}var Lre=/%/g;function Nre(t,r){var e,i=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(0==r)return"0.0E+0";if(r<0)return"-"+Nre(t,-r);var o=t.indexOf(".");-1===o&&(o=t.indexOf("E"));var s=Math.floor(Math.log(r)*Math.LOG10E)%o;if(s<0&&(s+=o),-1===(e=(r/Math.pow(10,s)).toPrecision(i+1+(o+s)%o)).indexOf("e")){var a=Math.floor(Math.log(r)*Math.LOG10E);for(-1===e.indexOf(".")?e=e.charAt(0)+"."+e.substr(1)+"E+"+(a-e.length+s):e+="E+"+(a-s);"0."===e.substr(0,2);)e=(e=e.charAt(0)+e.substr(2,o)+"."+e.substr(2+o)).replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");e=e.replace(/\+-/,"-")}e=e.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(l,c,d,f){return c+d+f.substr(0,(o+s)%o)+"."+f.substr(s)+"E"})}else e=r.toExponential(i);return t.match(/E\+00$/)&&e.match(/e[+-]\d$/)&&(e=e.substr(0,e.length-1)+"0"+e.charAt(e.length-1)),t.match(/E\-/)&&e.match(/e\+/)&&(e=e.replace(/e\+/,"e")),e.replace("e","E")}var Gre=/# (\?+)( ?)\/( ?)(\d+)/,Bre=/^#*0*\.([0#]+)/,Vre=/\).*[0#]/,jre=/\(###\) ###\\?-####/;function em(t){for(var e,r="",i=0;i!=t.length;++i)switch(e=t.charCodeAt(i)){case 35:break;case 63:r+=" ";break;case 48:r+="0";break;default:r+=String.fromCharCode(e)}return r}function Hre(t,r){var e=Math.pow(10,r);return""+Math.round(t*e)/e}function Ure(t,r){var e=t-Math.floor(t),i=Math.pow(10,r);return r<(""+Math.round(e*i)).length?0:Math.round(e*i)}function Pv(t,r,e){if(40===t.charCodeAt(0)&&!r.match(Vre)){var i=r.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return e>=0?Pv("n",i,e):"("+Pv("n",i,-e)+")"}if(44===r.charCodeAt(r.length-1))return function gGe(t,r,e){for(var i=r.length-1;44===r.charCodeAt(i-1);)--i;return Pb(t,r.substr(0,i),e/Math.pow(10,3*(r.length-i)))}(t,r,e);if(-1!==r.indexOf("%"))return function mGe(t,r,e){var i=r.replace(Lre,""),o=r.length-i.length;return Pb(t,i,e*Math.pow(10,2*o))+Md("%",o)}(t,r,e);if(-1!==r.indexOf("E"))return Nre(r,e);if(36===r.charCodeAt(0))return"$"+Pv(t,r.substr(" "==r.charAt(1)?2:1),e);var o,s,a,l,c=Math.abs(e),d=e<0?"-":"";if(r.match(/^00+$/))return d+Nk(c,r.length);if(r.match(/^[#?]+$/))return"0"===(o=Nk(e,0))&&(o=""),o.length>r.length?o:em(r.substr(0,r.length-o.length))+o;if(s=r.match(Gre))return function vGe(t,r,e){var i=parseInt(t[4],10),o=Math.round(r*i),s=Math.floor(o/i),a=o-s*i,l=i;return e+(0===s?"":""+s)+" "+(0===a?Md(" ",t[1].length+1+t[4].length):bW(a,t[1].length)+t[2]+"/"+t[3]+e0(l,t[4].length))}(s,c,d);if(r.match(/^#+0+$/))return d+Nk(c,r.length-r.indexOf("0"));if(s=r.match(Bre))return o=Hre(e,s[1].length).replace(/^([^\.]+)$/,"$1."+em(s[1])).replace(/\.$/,"."+em(s[1])).replace(/\.(\d*)$/,function(I,M){return"."+M+Md("0",em(s[1]).length-M.length)}),-1!==r.indexOf("0.")?o:o.replace(/^0\./,".");if(r=r.replace(/^#+([0.])/,"$1"),s=r.match(/^(0*)\.(#*)$/))return d+Hre(c,s[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,s[1].length?"0.":".");if(s=r.match(/^#{1,3},##0(\.?)$/))return d+iT(Nk(c,0));if(s=r.match(/^#,##0\.([#0]*0)$/))return e<0?"-"+Pv(t,r,-e):iT(""+(Math.floor(e)+function yGe(t,r){return r<(""+Math.round((t-Math.floor(t))*Math.pow(10,r))).length?1:0}(e,s[1].length)))+"."+e0(Ure(e,s[1].length),s[1].length);if(s=r.match(/^#,#*,#0/))return Pv(t,r.replace(/^#,#*,/,""),e);if(s=r.match(/^([0#]+)(\\?-([0#]+))+$/))return o=Lk(Pv(t,r.replace(/[\\-]/g,""),e)),a=0,Lk(Lk(r.replace(/\\/g,"")).replace(/[0#]/g,function(I){return a<o.length?o.charAt(a++):"0"===I?"0":""}));if(r.match(jre))return"("+(o=Pv(t,"##########",e)).substr(0,3)+") "+o.substr(3,3)+"-"+o.substr(6);var f="";if(s=r.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return a=Math.min(s[4].length,7),l=D7(c,Math.pow(10,a)-1,!1),o=""+d," "==(f=Pb("n",s[1],l[1])).charAt(f.length-1)&&(f=f.substr(0,f.length-1)+"0"),o+=f+s[2]+"/"+s[3],(f=x7(l[2],a)).length<s[4].length&&(f=em(s[4].substr(s[4].length-f.length))+f),o+=f;if(s=r.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return a=Math.min(Math.max(s[1].length,s[4].length),7),d+((l=D7(c,Math.pow(10,a)-1,!0))[0]||(l[1]?"":"0"))+" "+(l[1]?bW(l[1],a)+s[2]+"/"+s[3]+x7(l[2],a):Md(" ",2*a+1+s[2].length+s[3].length));if(s=r.match(/^[#0?]+$/))return o=Nk(e,0),r.length<=o.length?o:em(r.substr(0,r.length-o.length))+o;if(s=r.match(/^([#0?]+)\.([#0]+)$/)){o=""+e.toFixed(Math.min(s[2].length,10)).replace(/([^0])0+$/,"$1"),a=o.indexOf(".");var v=r.indexOf(".")-a,w=r.length-o.length-v;return em(r.substr(0,v)+o+r.substr(r.length-w))}if(s=r.match(/^00,000\.([#0]*0)$/))return a=Ure(e,s[1].length),e<0?"-"+Pv(t,r,-e):iT(function bGe(t){return t<2147483647&&t>-2147483648?""+(t>=0?0|t:t-1|0):""+Math.floor(t)}(e)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(I){return"00,"+(I.length<3?e0(0,3-I.length):"")+I})+"."+e0(a,s[1].length);switch(r){case"###,##0.00":return Pv(t,"#,##0.00",e);case"###,###":case"##,###":case"#,###":var x=iT(Nk(c,0));return"0"!==x?d+x:"";case"###,###.00":return Pv(t,"###,##0.00",e).replace(/^0\./,".");case"#,###.00":return Pv(t,"#,##0.00",e).replace(/^0\./,".")}throw new Error("unsupported format |"+r+"|")}function $re(t,r){var e,i=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(0==r)return"0.0E+0";if(r<0)return"-"+$re(t,-r);var o=t.indexOf(".");-1===o&&(o=t.indexOf("E"));var s=Math.floor(Math.log(r)*Math.LOG10E)%o;if(s<0&&(s+=o),!(e=(r/Math.pow(10,s)).toPrecision(i+1+(o+s)%o)).match(/[Ee]/)){var a=Math.floor(Math.log(r)*Math.LOG10E);-1===e.indexOf(".")?e=e.charAt(0)+"."+e.substr(1)+"E+"+(a-e.length+s):e+="E+"+(a-s),e=e.replace(/\+-/,"-")}e=e.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(l,c,d,f){return c+d+f.substr(0,(o+s)%o)+"."+f.substr(s)+"E"})}else e=r.toExponential(i);return t.match(/E\+00$/)&&e.match(/e[+-]\d$/)&&(e=e.substr(0,e.length-1)+"0"+e.charAt(e.length-1)),t.match(/E\-/)&&e.match(/e\+/)&&(e=e.replace(/e\+/,"e")),e.replace("e","E")}function Oy(t,r,e){if(40===t.charCodeAt(0)&&!r.match(Vre)){var i=r.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return e>=0?Oy("n",i,e):"("+Oy("n",i,-e)+")"}if(44===r.charCodeAt(r.length-1))return function CGe(t,r,e){for(var i=r.length-1;44===r.charCodeAt(i-1);)--i;return Pb(t,r.substr(0,i),e/Math.pow(10,3*(r.length-i)))}(t,r,e);if(-1!==r.indexOf("%"))return function wGe(t,r,e){var i=r.replace(Lre,""),o=r.length-i.length;return Pb(t,i,e*Math.pow(10,2*o))+Md("%",o)}(t,r,e);if(-1!==r.indexOf("E"))return $re(r,e);if(36===r.charCodeAt(0))return"$"+Oy(t,r.substr(" "==r.charAt(1)?2:1),e);var o,s,a,l,c=Math.abs(e),d=e<0?"-":"";if(r.match(/^00+$/))return d+e0(c,r.length);if(r.match(/^[#?]+$/))return o=""+e,0===e&&(o=""),o.length>r.length?o:em(r.substr(0,r.length-o.length))+o;if(s=r.match(Gre))return function _Ge(t,r,e){return e+(0===r?"":""+r)+Md(" ",t[1].length+2+t[4].length)}(s,c,d);if(r.match(/^#+0+$/))return d+e0(c,r.length-r.indexOf("0"));if(s=r.match(Bre))return o=(o=(""+e).replace(/^([^\.]+)$/,"$1."+em(s[1])).replace(/\.$/,"."+em(s[1]))).replace(/\.(\d*)$/,function(I,M){return"."+M+Md("0",em(s[1]).length-M.length)}),-1!==r.indexOf("0.")?o:o.replace(/^0\./,".");if(r=r.replace(/^#+([0.])/,"$1"),s=r.match(/^(0*)\.(#*)$/))return d+(""+c).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,s[1].length?"0.":".");if(s=r.match(/^#{1,3},##0(\.?)$/))return d+iT(""+c);if(s=r.match(/^#,##0\.([#0]*0)$/))return e<0?"-"+Oy(t,r,-e):iT(""+e)+"."+Md("0",s[1].length);if(s=r.match(/^#,#*,#0/))return Oy(t,r.replace(/^#,#*,/,""),e);if(s=r.match(/^([0#]+)(\\?-([0#]+))+$/))return o=Lk(Oy(t,r.replace(/[\\-]/g,""),e)),a=0,Lk(Lk(r.replace(/\\/g,"")).replace(/[0#]/g,function(I){return a<o.length?o.charAt(a++):"0"===I?"0":""}));if(r.match(jre))return"("+(o=Oy(t,"##########",e)).substr(0,3)+") "+o.substr(3,3)+"-"+o.substr(6);var f="";if(s=r.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return a=Math.min(s[4].length,7),l=D7(c,Math.pow(10,a)-1,!1),o=""+d," "==(f=Pb("n",s[1],l[1])).charAt(f.length-1)&&(f=f.substr(0,f.length-1)+"0"),o+=f+s[2]+"/"+s[3],(f=x7(l[2],a)).length<s[4].length&&(f=em(s[4].substr(s[4].length-f.length))+f),o+=f;if(s=r.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return a=Math.min(Math.max(s[1].length,s[4].length),7),d+((l=D7(c,Math.pow(10,a)-1,!0))[0]||(l[1]?"":"0"))+" "+(l[1]?bW(l[1],a)+s[2]+"/"+s[3]+x7(l[2],a):Md(" ",2*a+1+s[2].length+s[3].length));if(s=r.match(/^[#0?]+$/))return r.length<=(o=""+e).length?o:em(r.substr(0,r.length-o.length))+o;if(s=r.match(/^([#0]+)\.([#0]+)$/)){o=""+e.toFixed(Math.min(s[2].length,10)).replace(/([^0])0+$/,"$1"),a=o.indexOf(".");var v=r.indexOf(".")-a,w=r.length-o.length-v;return em(r.substr(0,v)+o+r.substr(r.length-w))}if(s=r.match(/^00,000\.([#0]*0)$/))return e<0?"-"+Oy(t,r,-e):iT(""+e).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(I){return"00,"+(I.length<3?e0(0,3-I.length):"")+I})+"."+e0(0,s[1].length);switch(r){case"###,###":case"##,###":case"#,###":var x=iT(""+c);return"0"!==x?d+x:"";default:if(r.match(/\.[0#?]*$/))return Oy(t,r.slice(0,r.lastIndexOf(".")),e)+em(r.slice(r.lastIndexOf(".")))}throw new Error("unsupported format |"+r+"|")}function Pb(t,r,e){return(0|e)===e?Oy(t,r,e):Pv(t,r,e)}var Yre=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function Gk(t){for(var r=0,e="",i="";r<t.length;)switch(e=t.charAt(r)){case"G":E7(t,r)&&(r+=6),r++;break;case'"':for(;34!==t.charCodeAt(++r)&&r<t.length;);++r;break;case"\\":case"_":r+=2;break;case"@":++r;break;case"B":case"b":if("1"===t.charAt(r+1)||"2"===t.charAt(r+1))return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"\u4e0a":if("A/P"===t.substr(r,3).toUpperCase()||"AM/PM"===t.substr(r,5).toUpperCase()||"\u4e0a\u5348/\u4e0b\u5348"===t.substr(r,5).toUpperCase())return!0;++r;break;case"[":for(i=e;"]"!==t.charAt(r++)&&r<t.length;)i+=t.charAt(r);if(i.match(Yre))return!0;break;case".":case"0":case"#":for(;r<t.length&&("0#?.,E+-%".indexOf(e=t.charAt(++r))>-1||"\\"==e&&"-"==t.charAt(r+1)&&"0#".indexOf(t.charAt(r+2))>-1););break;case"?":for(;t.charAt(++r)===e;);break;case"*":++r,(" "==t.charAt(r)||"*"==t.charAt(r))&&++r;break;case"(":case")":++r;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;r<t.length&&"0123456789".indexOf(t.charAt(++r))>-1;);break;default:++r}return!1}var Wre=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function zre(t,r){if(null==r)return!1;var e=parseFloat(r[2]);switch(r[1]){case"=":if(t==e)return!0;break;case">":if(t>e)return!0;break;case"<":if(t<e)return!0;break;case"<>":if(t!=e)return!0;break;case">=":if(t>=e)return!0;break;case"<=":if(t<=e)return!0}return!1}function Tg(t,r,e){null==e&&(e={});var i="";switch(typeof t){case"string":i="m/d/yy"==t&&e.dateNF?e.dateNF:t;break;case"number":null==(i=14==t&&e.dateNF?e.dateNF:(null!=e.table?e.table:ea)[t])&&(i=e.table&&e.table[Ore[t]]||ea[Ore[t]]),null==i&&(i=aGe[t]||"General")}if(E7(i,0))return Xx(r,e);r instanceof Date&&(r=Pre(r,e.date1904));var o=function xGe(t,r){var e=function TGe(t){for(var r=[],e=!1,i=0,o=0;i<t.length;++i)switch(t.charCodeAt(i)){case 34:e=!e;break;case 95:case 42:case 92:++i;break;case 59:r[r.length]=t.substr(o,i-o),o=i+1}if(r[r.length]=t.substr(o),!0===e)throw new Error("Format |"+t+"| unterminated string ");return r}(t),i=e.length,o=e[i-1].indexOf("@");if(i<4&&o>-1&&--i,e.length>4)throw new Error("cannot find right format for |"+e.join("|")+"|");if("number"!=typeof r)return[4,4===e.length||o>-1?e[e.length-1]:"@"];switch(e.length){case 1:e=o>-1?["General","General","General",e[0]]:[e[0],e[0],e[0],"@"];break;case 2:e=o>-1?[e[0],e[0],e[0],e[1]]:[e[0],e[1],e[0],"@"];break;case 3:e=o>-1?[e[0],e[1],e[0],e[2]]:[e[0],e[1],e[2],"@"]}var s=r>0?e[0]:r<0?e[1]:e[2];if(-1===e[0].indexOf("[")&&-1===e[1].indexOf("["))return[i,s];if(null!=e[0].match(/\[[=<>]/)||null!=e[1].match(/\[[=<>]/)){var a=e[0].match(Wre),l=e[1].match(Wre);return zre(r,a)?[i,e[0]]:zre(r,l)?[i,e[1]]:[i,e[null!=a&&null!=l?2:1]]}return[i,s]}(i,r);if(E7(o[1]))return Xx(r,e);if(!0===r)r="TRUE";else if(!1===r)r="FALSE";else if(""===r||null==r)return"";return function SGe(t,r,e,i){for(var d,f,v,o=[],s="",a=0,l="",c="t",w="H";a<t.length;)switch(l=t.charAt(a)){case"G":if(!E7(t,a))throw new Error("unrecognized character "+l+" in "+t);o[o.length]={t:"G",v:"General"},a+=7;break;case'"':for(s="";34!==(v=t.charCodeAt(++a))&&a<t.length;)s+=String.fromCharCode(v);o[o.length]={t:"t",v:s},++a;break;case"\\":var x=t.charAt(++a);o[o.length]={t:"("===x||")"===x?x:"t",v:x},++a;break;case"_":o[o.length]={t:"t",v:" "},a+=2;break;case"@":o[o.length]={t:"T",v:r},++a;break;case"B":case"b":if("1"===t.charAt(a+1)||"2"===t.charAt(a+1)){if(null==d&&null==(d=nT(r,e,"2"===t.charAt(a+1))))return"";o[o.length]={t:"X",v:t.substr(a,2)},c=l,a+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":l=l.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(r<0||null==d&&null==(d=nT(r,e)))return"";for(s=l;++a<t.length&&t.charAt(a).toLowerCase()===l;)s+=l;"m"===l&&"h"===c.toLowerCase()&&(l="M"),"h"===l&&(l=w),o[o.length]={t:l,v:s},c=l;break;case"A":case"a":case"\u4e0a":var M={t:l,v:l};if(null==d&&(d=nT(r,e)),"A/P"===t.substr(a,3).toUpperCase()?(null!=d&&(M.v=d.H>=12?"P":"A"),M.t="T",w="h",a+=3):"AM/PM"===t.substr(a,5).toUpperCase()?(null!=d&&(M.v=d.H>=12?"PM":"AM"),M.t="T",a+=5,w="h"):"\u4e0a\u5348/\u4e0b\u5348"===t.substr(a,5).toUpperCase()?(null!=d&&(M.v=d.H>=12?"\u4e0b\u5348":"\u4e0a\u5348"),M.t="T",a+=5,w="h"):(M.t="t",++a),null==d&&"T"===M.t)return"";o[o.length]=M,c=l;break;case"[":for(s=l;"]"!==t.charAt(a++)&&a<t.length;)s+=t.charAt(a);if("]"!==s.slice(-1))throw'unterminated "[" block: |'+s+"|";if(s.match(Yre)){if(null==d&&null==(d=nT(r,e)))return"";o[o.length]={t:"Z",v:s.toLowerCase()},c=s.charAt(1)}else s.indexOf("$")>-1&&(s=(s.match(/\$([^-\[\]]*)/)||[])[1]||"$",Gk(t)||(o[o.length]={t:"t",v:s}));break;case".":if(null!=d){for(s=l;++a<t.length&&"0"===(l=t.charAt(a));)s+=l;o[o.length]={t:"s",v:s};break}case"0":case"#":for(s=l;++a<t.length&&"0#?.,E+-%".indexOf(l=t.charAt(a))>-1;)s+=l;o[o.length]={t:"n",v:s};break;case"?":for(s=l;t.charAt(++a)===l;)s+=l;o[o.length]={t:l,v:s},c=l;break;case"*":++a,(" "==t.charAt(a)||"*"==t.charAt(a))&&++a;break;case"(":case")":o[o.length]={t:1===i?"t":l,v:l},++a;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(s=l;a<t.length&&"0123456789".indexOf(t.charAt(++a))>-1;)s+=t.charAt(a);o[o.length]={t:"D",v:s};break;case" ":o[o.length]={t:l,v:l},++a;break;case"$":o[o.length]={t:"t",v:"$"},++a;break;default:if(-1===",$-+/():!^&'~{}<>=\u20acacfijklopqrtuvwxzP".indexOf(l))throw new Error("unrecognized character "+l+" in "+t);o[o.length]={t:"t",v:l},++a}var pe,F=0,re=0;for(a=o.length-1,c="t";a>=0;--a)switch(o[a].t){case"h":case"H":o[a].t=w,c="h",F<1&&(F=1);break;case"s":(pe=o[a].v.match(/\.0+$/))&&(re=Math.max(re,pe[0].length-1)),F<3&&(F=3);case"d":case"y":case"M":case"e":c=o[a].t;break;case"m":"s"===c&&(o[a].t="M",F<2&&(F=2));break;case"X":break;case"Z":F<1&&o[a].v.match(/[Hh]/)&&(F=1),F<2&&o[a].v.match(/[Mm]/)&&(F=2),F<3&&o[a].v.match(/[Ss]/)&&(F=3)}switch(F){case 0:break;case 1:d.u>=.5&&(d.u=0,++d.S),d.S>=60&&(d.S=0,++d.M),d.M>=60&&(d.M=0,++d.H);break;case 2:d.u>=.5&&(d.u=0,++d.S),d.S>=60&&(d.S=0,++d.M)}var je,we="";for(a=0;a<o.length;++a)switch(o[a].t){case"t":case"T":case" ":case"D":break;case"X":o[a].v="",o[a].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":o[a].v=fGe(o[a].t.charCodeAt(0),o[a].v,d,re),o[a].t="t";break;case"n":case"?":for(je=a+1;null!=o[je]&&("?"===(l=o[je].t)||"D"===l||(" "===l||"t"===l)&&null!=o[je+1]&&("?"===o[je+1].t||"t"===o[je+1].t&&"/"===o[je+1].v)||"("===o[a].t&&(" "===l||"n"===l||")"===l)||"t"===l&&("/"===o[je].v||" "===o[je].v&&null!=o[je+1]&&"?"==o[je+1].t));)o[a].v+=o[je].v,o[je]={v:"",t:";"},++je;we+=o[a].v,a=je-1;break;case"G":o[a].t="t",o[a].v=Xx(r,e)}var nt,rt,tt="";if(we.length>0){40==we.charCodeAt(0)?(nt=r<0&&45===we.charCodeAt(0)?-r:r,rt=Pb("n",we,nt)):(rt=Pb("n",we,nt=r<0&&i>1?-r:r),nt<0&&o[0]&&"t"==o[0].t&&(rt=rt.substr(1),o[0].v="-"+o[0].v)),je=rt.length-1;var lt=o.length;for(a=0;a<o.length;++a)if(null!=o[a]&&"t"!=o[a].t&&o[a].v.indexOf(".")>-1){lt=a;break}var bt=o.length;if(lt===o.length&&-1===rt.indexOf("E")){for(a=o.length-1;a>=0;--a)null==o[a]||-1==="n?".indexOf(o[a].t)||(je>=o[a].v.length-1?o[a].v=rt.substr(1+(je-=o[a].v.length),o[a].v.length):je<0?o[a].v="":(o[a].v=rt.substr(0,je+1),je=-1),o[a].t="t",bt=a);je>=0&&bt<o.length&&(o[bt].v=rt.substr(0,je+1)+o[bt].v)}else if(lt!==o.length&&-1===rt.indexOf("E")){for(je=rt.indexOf(".")-1,a=lt;a>=0;--a)if(null!=o[a]&&-1!=="n?".indexOf(o[a].t)){for(f=o[a].v.indexOf(".")>-1&&a===lt?o[a].v.indexOf(".")-1:o[a].v.length-1,tt=o[a].v.substr(f+1);f>=0;--f)je>=0&&("0"===o[a].v.charAt(f)||"#"===o[a].v.charAt(f))&&(tt=rt.charAt(je--)+tt);o[a].v=tt,o[a].t="t",bt=a}for(je>=0&&bt<o.length&&(o[bt].v=rt.substr(0,je+1)+o[bt].v),je=rt.indexOf(".")+1,a=lt;a<o.length;++a)if(null!=o[a]&&(-1!=="n?(".indexOf(o[a].t)||a===lt)){for(f=o[a].v.indexOf(".")>-1&&a===lt?o[a].v.indexOf(".")+1:0,tt=o[a].v.substr(0,f);f<o[a].v.length;++f)je<rt.length&&(tt+=rt.charAt(je++));o[a].v=tt,o[a].t="t",bt=a}}}for(a=0;a<o.length;++a)null!=o[a]&&"n?".indexOf(o[a].t)>-1&&(o[a].v=Pb(o[a].t,o[a].v,nt=i>1&&r<0&&a>0&&"-"===o[a-1].v?-r:r),o[a].t="t");var Wt="";for(a=0;a!==o.length;++a)null!=o[a]&&(Wt+=o[a].v);return Wt}(o[1],r,e,o[0])}function Fy(t,r){if("number"!=typeof r){r=+r||-1;for(var e=0;e<392;++e)if(null!=ea[e]){if(ea[e]==t){r=e;break}}else r<0&&(r=e);r<0&&(r=391)}return ea[r]=t,r}function $O(t){for(var r=0;392!=r;++r)void 0!==t[r]&&Fy(t[r],r)}function Bk(){ea=function sGe(t){return t||(t={}),t[0]="General",t[1]="0",t[2]="0.00",t[3]="#,##0",t[4]="#,##0.00",t[9]="0%",t[10]="0.00%",t[11]="0.00E+00",t[12]="# ?/?",t[13]="# ??/??",t[14]="m/d/yy",t[15]="d-mmm-yy",t[16]="d-mmm",t[17]="mmm-yy",t[18]="h:mm AM/PM",t[19]="h:mm:ss AM/PM",t[20]="h:mm",t[21]="h:mm:ss",t[22]="m/d/yy h:mm",t[37]="#,##0 ;(#,##0)",t[38]="#,##0 ;[Red](#,##0)",t[39]="#,##0.00;(#,##0.00)",t[40]="#,##0.00;[Red](#,##0.00)",t[45]="mm:ss",t[46]="[h]:mm:ss",t[47]="mmss.0",t[48]="##0.0E+0",t[49]="@",t[56]='"\u4e0a\u5348/\u4e0b\u5348 "hh"\u6642"mm"\u5206"ss"\u79d2 "',t}()}var qre=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g,AGe=function(){var t={version:"1.2.0"},e=function r(){for(var rt=0,lt=new Array(256),bt=0;256!=bt;++bt)lt[bt]=rt=1&(rt=1&(rt=1&(rt=1&(rt=1&(rt=1&(rt=1&(rt=1&(rt=bt)?-306674912^rt>>>1:rt>>>1)?-306674912^rt>>>1:rt>>>1)?-306674912^rt>>>1:rt>>>1)?-306674912^rt>>>1:rt>>>1)?-306674912^rt>>>1:rt>>>1)?-306674912^rt>>>1:rt>>>1)?-306674912^rt>>>1:rt>>>1)?-306674912^rt>>>1:rt>>>1;return typeof Int32Array<"u"?new Int32Array(lt):lt}(),o=function i(rt){var lt=0,bt=0,Wt=0,Zt=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(Wt=0;256!=Wt;++Wt)Zt[Wt]=rt[Wt];for(Wt=0;256!=Wt;++Wt)for(bt=rt[Wt],lt=256+Wt;lt<4096;lt+=256)bt=Zt[lt]=bt>>>8^rt[255&bt];var en=[];for(Wt=1;16!=Wt;++Wt)en[Wt-1]=typeof Int32Array<"u"?Zt.subarray(256*Wt,256*Wt+256):Zt.slice(256*Wt,256*Wt+256);return en}(e),s=o[0],a=o[1],l=o[2],c=o[3],d=o[4],f=o[5],v=o[6],w=o[7],x=o[8],I=o[9],M=o[10],F=o[11],re=o[12],pe=o[13],we=o[14];return t.table=e,t.bstr=function je(rt,lt){for(var bt=~lt,Wt=0,Zt=rt.length;Wt<Zt;)bt=bt>>>8^e[255&(bt^rt.charCodeAt(Wt++))];return~bt},t.buf=function tt(rt,lt){for(var bt=~lt,Wt=rt.length-15,Zt=0;Zt<Wt;)bt=we[rt[Zt++]^255&bt]^pe[rt[Zt++]^bt>>8&255]^re[rt[Zt++]^bt>>16&255]^F[rt[Zt++]^bt>>>24]^M[rt[Zt++]]^I[rt[Zt++]]^x[rt[Zt++]]^w[rt[Zt++]]^v[rt[Zt++]]^f[rt[Zt++]]^d[rt[Zt++]]^c[rt[Zt++]]^l[rt[Zt++]]^a[rt[Zt++]]^s[rt[Zt++]]^e[rt[Zt++]];for(Wt+=15;Zt<Wt;)bt=bt>>>8^e[255&(bt^rt[Zt++])];return~bt},t.str=function nt(rt,lt){for(var bt=~lt,Wt=0,Zt=rt.length,en=0,ci=0;Wt<Zt;)(en=rt.charCodeAt(Wt++))<128?bt=bt>>>8^e[255&(bt^en)]:en<2048?bt=(bt=bt>>>8^e[255&(bt^(192|en>>6&31))])>>>8^e[255&(bt^(128|63&en))]:en>=55296&&en<57344?(en=64+(1023&en),ci=1023&rt.charCodeAt(Wt++),bt=(bt=(bt=(bt=bt>>>8^e[255&(bt^(240|en>>8&7))])>>>8^e[255&(bt^(128|en>>2&63))])>>>8^e[255&(bt^(128|ci>>6&15|(3&en)<<4))])>>>8^e[255&(bt^(128|63&ci))]):bt=(bt=(bt=bt>>>8^e[255&(bt^(224|en>>12&15))])>>>8^e[255&(bt^(128|en>>6&63))])>>>8^e[255&(bt^(128|63&en))];return~bt},t}(),js=function(){var c,r={};function i(Mt){if("/"==Mt.charAt(Mt.length-1))return-1===Mt.slice(0,-1).indexOf("/")?Mt:i(Mt.slice(0,-1));var cn=Mt.lastIndexOf("/");return-1===cn?Mt:Mt.slice(0,cn+1)}function o(Mt){if("/"==Mt.charAt(Mt.length-1))return o(Mt.slice(0,-1));var cn=Mt.lastIndexOf("/");return-1===cn?Mt:Mt.slice(cn+1)}function s(Mt,cn){"string"==typeof cn&&(cn=new Date(cn));var zt=cn.getHours();zt=(zt=zt<<6|cn.getMinutes())<<5|cn.getSeconds()>>>1,Mt.write_shift(2,zt);var Jt=cn.getFullYear()-1980;Jt=(Jt=Jt<<4|cn.getMonth()+1)<<5|cn.getDate(),Mt.write_shift(2,Jt)}function l(Mt){Nh(Mt,0);for(var cn={},zt=0;Mt.l<=Mt.length-4;){var Jt=Mt.read_shift(2),dn=Mt.read_shift(2),pn=Mt.l+dn,wi={};21589===Jt&&(1&(zt=Mt.read_shift(1))&&(wi.mtime=Mt.read_shift(4)),dn>5&&(2&zt&&(wi.atime=Mt.read_shift(4)),4&zt&&(wi.ctime=Mt.read_shift(4))),wi.mtime&&(wi.mt=new Date(1e3*wi.mtime))),Mt.l=pn,cn[Jt]=wi}return cn}function d(){return c||(c={})}function f(Mt,cn){if(80==Mt[0]&&75==Mt[1])return Nhe(Mt,cn);if(109==(32|Mt[0])&&105==(32|Mt[1]))return function L7t(Mt,cn){if("mime-version:"!=cr(Mt.slice(0,13)).toLowerCase())throw new Error("Unsupported MAD header");var zt=cn&&cn.root||"",Jt=(nl&&Buffer.isBuffer(Mt)?Mt.toString("binary"):cr(Mt)).split("\r\n"),dn=0,pn="";for(dn=0;dn<Jt.length;++dn)if(/^Content-Location:/i.test(pn=Jt[dn])&&(pn=pn.slice(pn.indexOf("file")),zt||(zt=pn.slice(0,pn.lastIndexOf("/")+1)),pn.slice(0,zt.length)!=zt))for(;zt.length>0&&(zt=(zt=zt.slice(0,zt.length-1)).slice(0,zt.lastIndexOf("/")+1),pn.slice(0,zt.length)!=zt););var wi=(Jt[1]||"").match(/boundary="(.*?)"/);if(!wi)throw new Error("MAD cannot find boundary");var tr="--"+(wi[1]||""),Ri={FileIndex:[],FullPaths:[]};rt(Ri);var eo,yo=0;for(dn=0;dn<Jt.length;++dn){var us=Jt[dn];us!==tr&&us!==tr+"--"||(yo++&&P7t(Ri,Jt.slice(eo,dn),zt),eo=dn)}return Ri}(Mt,cn);if(Mt.length<512)throw new Error("CFB file size "+Mt.length+" < 512");var zt,dn,pn,wi,tr,xi,Jt=512,Si=[],Ri=Mt.slice(0,512);Nh(Ri,0);var eo=function v(Mt){if(80==Mt[Mt.l]&&75==Mt[Mt.l+1])return[0,0];Mt.chk(Wi,"Header Signature: "),Mt.l+=16;var cn=Mt.read_shift(2,"u");return[Mt.read_shift(2,"u"),cn]}(Ri);switch(zt=eo[0]){case 3:Jt=512;break;case 4:Jt=4096;break;case 0:if(0==eo[1])return Nhe(Mt,cn);default:throw new Error("Major Version: Expected 3 or 4 saw "+zt)}512!==Jt&&Nh(Ri=Mt.slice(0,Jt),28);var yo=Mt.slice(0,Jt);!function w(Mt,cn){var zt;switch(Mt.l+=2,zt=Mt.read_shift(2)){case 9:if(3!=cn)throw new Error("Sector Shift: Expected 9 saw "+zt);break;case 12:if(4!=cn)throw new Error("Sector Shift: Expected 12 saw "+zt);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+zt)}Mt.chk("0600","Mini Sector Shift: "),Mt.chk("000000000000","Reserved: ")}(Ri,zt);var us=Ri.read_shift(4,"i");if(3===zt&&0!==us)throw new Error("# Directory Sectors: Expected 0 saw "+us);Ri.l+=4,wi=Ri.read_shift(4,"i"),Ri.l+=4,Ri.chk("00100000","Mini Stream Cutoff Size: "),tr=Ri.read_shift(4,"i"),dn=Ri.read_shift(4,"i"),xi=Ri.read_shift(4,"i"),pn=Ri.read_shift(4,"i");for(var bo=-1,Mo=0;Mo<109&&!((bo=Ri.read_shift(4,"i"))<0);++Mo)Si[Mo]=bo;var ka=function x(Mt,cn){for(var zt=Math.ceil(Mt.length/cn)-1,Jt=[],dn=1;dn<zt;++dn)Jt[dn-1]=Mt.slice(dn*cn,(dn+1)*cn);return Jt[zt-1]=Mt.slice(zt*cn),Jt}(Mt,Jt);F(xi,pn,ka,Jt,Si);var zu=function pe(Mt,cn,zt,Jt){var dn=Mt.length,pn=[],wi=[],tr=[],xi=[],Si=Jt-1,Ri=0,eo=0,yo=0,us=0;for(Ri=0;Ri<dn;++Ri)if(tr=[],(yo=Ri+cn)>=dn&&(yo-=dn),!wi[yo]){xi=[];var bo=[];for(eo=yo;eo>=0;){bo[eo]=!0,wi[eo]=!0,tr[tr.length]=eo,xi.push(Mt[eo]);var Mo=zt[Math.floor(4*eo/Jt)];if(Jt<4+(us=4*eo&Si))throw new Error("FAT boundary crossed: "+eo+" 4 "+Jt);if(!Mt[Mo]||bo[eo=Qx(Mt[Mo],us)])break}pn[yo]={nodes:tr,data:goe([xi])}}return pn}(ka,wi,Si,Jt);zu[wi].name="!Directory",dn>0&&tr!==ci&&(zu[tr].name="!MiniFAT"),zu[Si[0]].name="!FAT",zu.fat_addrs=Si,zu.ssz=Jt;var hp=[],Ag=[],TP=[];(function we(Mt,cn,zt,Jt,dn,pn,wi,tr){for(var us,xi=0,Si=Jt.length?2:0,Ri=cn[Mt].data,eo=0,yo=0;eo<Ri.length;eo+=128){var bo=Ri.slice(eo,eo+128);Nh(bo,64),yo=bo.read_shift(2),us=R7(bo,0,yo-Si),Jt.push(us);var Mo={name:us,type:bo.read_shift(1),color:bo.read_shift(1),L:bo.read_shift(4,"i"),R:bo.read_shift(4,"i"),C:bo.read_shift(4,"i"),clsid:bo.read_shift(16),state:bo.read_shift(4,"i"),start:0,size:0};0!==bo.read_shift(2)+bo.read_shift(2)+bo.read_shift(2)+bo.read_shift(2)&&(Mo.ct=je(bo,bo.l-8)),0!==bo.read_shift(2)+bo.read_shift(2)+bo.read_shift(2)+bo.read_shift(2)&&(Mo.mt=je(bo,bo.l-8)),Mo.start=bo.read_shift(4,"i"),Mo.size=bo.read_shift(4,"i"),Mo.size<0&&Mo.start<0&&(Mo.size=Mo.type=0,Mo.start=ci,Mo.name=""),5===Mo.type?(xi=Mo.start,dn>0&&xi!==ci&&(cn[xi].name="!StreamData")):Mo.size>=4096?(Mo.storage="fat",void 0===cn[Mo.start]&&(cn[Mo.start]=re(zt,Mo.start,cn.fat_addrs,cn.ssz)),cn[Mo.start].name=Mo.name,Mo.content=cn[Mo.start].data.slice(0,Mo.size)):(Mo.storage="minifat",Mo.size<0?Mo.size=0:xi!==ci&&Mo.start!==ci&&cn[xi]&&(Mo.content=M(Mo,cn[xi].data,(cn[tr]||{}).data))),Mo.content&&Nh(Mo.content,0),pn[us]=Mo,wi.push(Mo)}})(wi,zu,ka,hp,dn,{},Ag,tr),function I(Mt,cn,zt){for(var Jt=0,dn=0,pn=0,wi=0,tr=0,xi=zt.length,Si=[],Ri=[];Jt<xi;++Jt)Si[Jt]=Ri[Jt]=Jt,cn[Jt]=zt[Jt];for(;tr<Ri.length;++tr)dn=Mt[Jt=Ri[tr]].L,pn=Mt[Jt].R,wi=Mt[Jt].C,Si[Jt]===Jt&&(-1!==dn&&Si[dn]!==dn&&(Si[Jt]=Si[dn]),-1!==pn&&Si[pn]!==pn&&(Si[Jt]=Si[pn])),-1!==wi&&(Si[wi]=Jt),-1!==dn&&Jt!=Si[Jt]&&(Si[dn]=Si[Jt],Ri.lastIndexOf(dn)<tr&&Ri.push(dn)),-1!==pn&&Jt!=Si[Jt]&&(Si[pn]=Si[Jt],Ri.lastIndexOf(pn)<tr&&Ri.push(pn));for(Jt=1;Jt<xi;++Jt)Si[Jt]===Jt&&(-1!==pn&&Si[pn]!==pn?Si[Jt]=Si[pn]:-1!==dn&&Si[dn]!==dn&&(Si[Jt]=Si[dn]));for(Jt=1;Jt<xi;++Jt)if(0!==Mt[Jt].type){if((tr=Jt)!=Si[tr])do{cn[Jt]=cn[tr=Si[tr]]+"/"+cn[Jt]}while(0!==tr&&-1!==Si[tr]&&tr!=Si[tr]);Si[Jt]=-1}for(cn[0]+="/",Jt=1;Jt<xi;++Jt)2!==Mt[Jt].type&&(cn[Jt]+="/")}(Ag,TP,hp),hp.shift();var SP={FileIndex:Ag,FullPaths:TP};return cn&&cn.raw&&(SP.raw={header:yo,sectors:ka}),SP}function M(Mt,cn,zt){for(var dn=Mt.size,pn=[],wi=Mt.start;zt&&dn>0&&wi>=0;)pn.push(cn.slice(wi*en,wi*en+en)),dn-=en,wi=Qx(zt,4*wi);return 0===pn.length?er(0):nh(pn).slice(0,Mt.size)}function F(Mt,cn,zt,Jt,dn){var pn=ci;if(Mt===ci){if(0!==cn)throw new Error("DIFAT chain shorter than expected")}else if(-1!==Mt){var wi=zt[Mt],tr=(Jt>>>2)-1;if(!wi)return;for(var xi=0;xi<tr&&(pn=Qx(wi,4*xi))!==ci;++xi)dn.push(pn);F(Qx(wi,Jt-4),cn-1,zt,Jt,dn)}}function re(Mt,cn,zt,Jt,dn){var pn=[],wi=[];dn||(dn=[]);var tr=Jt-1,xi=0,Si=0;for(xi=cn;xi>=0;){dn[xi]=!0,pn[pn.length]=xi,wi.push(Mt[xi]);var Ri=zt[Math.floor(4*xi/Jt)];if(Jt<4+(Si=4*xi&tr))throw new Error("FAT boundary crossed: "+xi+" 4 "+Jt);if(!Mt[Ri])break;xi=Qx(Mt[Ri],Si)}return{nodes:pn,data:goe([wi])}}function je(Mt,cn){return new Date(1e3*(rh(Mt,cn+4)/1e7*Math.pow(2,32)+rh(Mt,cn)/1e7-11644473600))}function rt(Mt,cn){var zt=cn||{},Jt=zt.root||"Root Entry";if(Mt.FullPaths||(Mt.FullPaths=[]),Mt.FileIndex||(Mt.FileIndex=[]),Mt.FullPaths.length!==Mt.FileIndex.length)throw new Error("inconsistent CFB structure");0===Mt.FullPaths.length&&(Mt.FullPaths[0]=Jt+"/",Mt.FileIndex[0]={name:Jt,type:5}),zt.CLSID&&(Mt.FileIndex[0].clsid=zt.CLSID),function lt(Mt){var cn="\x01Sh33tJ5";if(!js.find(Mt,"/"+cn)){var zt=er(4);zt[0]=55,zt[1]=zt[3]=50,zt[2]=54,Mt.FileIndex.push({name:cn,type:2,content:zt,size:4,L:69,R:69,C:69}),Mt.FullPaths.push(Mt.FullPaths[0]+cn),bt(Mt)}}(Mt)}function bt(Mt,cn){rt(Mt);for(var zt=!1,Jt=!1,dn=Mt.FullPaths.length-1;dn>=0;--dn){var pn=Mt.FileIndex[dn];switch(pn.type){case 0:Jt?zt=!0:(Mt.FileIndex.pop(),Mt.FullPaths.pop());break;case 1:case 2:case 5:Jt=!0,isNaN(pn.R*pn.L*pn.C)&&(zt=!0),pn.R>-1&&pn.L>-1&&pn.R==pn.L&&(zt=!0);break;default:zt=!0}}if(zt||cn){var wi=new Date(1987,1,19),tr=0,xi=Object.create?Object.create(null):{},Si=[];for(dn=0;dn<Mt.FullPaths.length;++dn)xi[Mt.FullPaths[dn]]=!0,0!==Mt.FileIndex[dn].type&&Si.push([Mt.FullPaths[dn],Mt.FileIndex[dn]]);for(dn=0;dn<Si.length;++dn){var Ri=i(Si[dn][0]);(Jt=xi[Ri])||(Si.push([Ri,{name:o(Ri).replace("/",""),type:1,clsid:Xr,ct:wi,mt:wi,content:null}]),xi[Ri]=!0)}for(Si.sort(function(us,bo){return function e(Mt,cn){for(var zt=Mt.split("/"),Jt=cn.split("/"),dn=0,pn=0,wi=Math.min(zt.length,Jt.length);dn<wi;++dn){if(pn=zt[dn].length-Jt[dn].length)return pn;if(zt[dn]!=Jt[dn])return zt[dn]<Jt[dn]?-1:1}return zt.length-Jt.length}(us[0],bo[0])}),Mt.FullPaths=[],Mt.FileIndex=[],dn=0;dn<Si.length;++dn)Mt.FullPaths[dn]=Si[dn][0],Mt.FileIndex[dn]=Si[dn][1];for(dn=0;dn<Si.length;++dn){var eo=Mt.FileIndex[dn],yo=Mt.FullPaths[dn];if(eo.name=o(yo).replace("/",""),eo.L=eo.R=eo.C=-(eo.color=1),eo.size=eo.content?eo.content.length:0,eo.start=0,eo.clsid=eo.clsid||Xr,0===dn)eo.C=Si.length>1?1:-1,eo.size=0,eo.type=5;else if("/"==yo.slice(-1)){for(tr=dn+1;tr<Si.length&&i(Mt.FullPaths[tr])!=yo;++tr);for(eo.C=tr>=Si.length?-1:tr,tr=dn+1;tr<Si.length&&i(Mt.FullPaths[tr])!=i(yo);++tr);eo.R=tr>=Si.length?-1:tr,eo.type=1}else i(Mt.FullPaths[dn+1]||"")==i(yo)&&(eo.R=dn+1),eo.type=2}}}function Wt(Mt,cn){var zt=cn||{};if("mad"==zt.fileType)return function N7t(Mt,cn){for(var zt=cn||{},Jt=zt.boundary||"SheetJS",dn=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+(Jt="------="+Jt).slice(2)+'"',"","",""],pn=Mt.FullPaths[0],wi=pn,tr=Mt.FileIndex[0],xi=1;xi<Mt.FullPaths.length;++xi)if(wi=Mt.FullPaths[xi].slice(pn.length),(tr=Mt.FileIndex[xi]).size&&tr.content&&"\x01Sh33tJ5"!=wi){wi=wi.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(ka){return"_x"+ka.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(ka){return"_u"+ka.charCodeAt(0).toString(16)+"_"});for(var Si=tr.content,Ri=nl&&Buffer.isBuffer(Si)?Si.toString("binary"):cr(Si),eo=0,yo=Math.min(1024,Ri.length),us=0,bo=0;bo<=yo;++bo)(us=Ri.charCodeAt(bo))>=32&&us<128&&++eo;var Mo=eo>=4*yo/5;dn.push(Jt),dn.push("Content-Location: "+(zt.root||"file:///C:/SheetJS/")+wi),dn.push("Content-Transfer-Encoding: "+(Mo?"quoted-printable":"base64")),dn.push("Content-Type: "+M7t(tr,wi)),dn.push(""),dn.push(Mo?O7t(Ri):R7t(Ri))}return dn.push(Jt+"--\r\n"),dn.join("\r\n")}(Mt,zt);if("zip"===(bt(Mt),zt.fileType))return function A7t(Mt,cn){var zt=cn||{},Jt=[],dn=[],pn=er(1),wi=zt.compression?8:0,tr=0,Si=0,Ri=0,eo=0,yo=0,us=Mt.FullPaths[0],bo=us,Mo=Mt.FileIndex[0],ka=[],zu=0;for(Si=1;Si<Mt.FullPaths.length;++Si)if(bo=Mt.FullPaths[Si].slice(us.length),(Mo=Mt.FileIndex[Si]).size&&Mo.content&&"\x01Sh33tJ5"!=bo){var Vm=eo,hp=er(bo.length);for(Ri=0;Ri<bo.length;++Ri)hp.write_shift(1,127&bo.charCodeAt(Ri));hp=hp.slice(0,hp.l),ka[yo]=AGe.buf(Mo.content,0);var Ag=Mo.content;8==wi&&(Ag=Tn(Ag)),(pn=er(30)).write_shift(4,67324752),pn.write_shift(2,20),pn.write_shift(2,tr),pn.write_shift(2,wi),Mo.mt?s(pn,Mo.mt):pn.write_shift(4,0),pn.write_shift(-4,8&tr?0:ka[yo]),pn.write_shift(4,8&tr?0:Ag.length),pn.write_shift(4,8&tr?0:Mo.content.length),pn.write_shift(2,hp.length),pn.write_shift(2,0),eo+=pn.length,Jt.push(pn),eo+=hp.length,Jt.push(hp),eo+=Ag.length,Jt.push(Ag),8&tr&&((pn=er(12)).write_shift(-4,ka[yo]),pn.write_shift(4,Ag.length),pn.write_shift(4,Mo.content.length),eo+=pn.l,Jt.push(pn)),(pn=er(46)).write_shift(4,33639248),pn.write_shift(2,0),pn.write_shift(2,20),pn.write_shift(2,tr),pn.write_shift(2,wi),pn.write_shift(4,0),pn.write_shift(-4,ka[yo]),pn.write_shift(4,Ag.length),pn.write_shift(4,Mo.content.length),pn.write_shift(2,hp.length),pn.write_shift(2,0),pn.write_shift(2,0),pn.write_shift(2,0),pn.write_shift(2,0),pn.write_shift(4,0),pn.write_shift(4,Vm),zu+=pn.l,dn.push(pn),zu+=hp.length,dn.push(hp),++yo}return(pn=er(22)).write_shift(4,101010256),pn.write_shift(2,0),pn.write_shift(2,0),pn.write_shift(2,yo),pn.write_shift(2,yo),pn.write_shift(4,zu),pn.write_shift(4,eo),pn.write_shift(2,0),nh([nh(Jt),nh(dn),pn])}(Mt,zt);var Jt=function(us){for(var bo=0,Mo=0,ka=0;ka<us.FileIndex.length;++ka){var zu=us.FileIndex[ka];if(zu.content){var Vm=zu.content.length;Vm>0&&(Vm<4096?bo+=Vm+63>>6:Mo+=Vm+511>>9)}}for(var hp=us.FullPaths.length+3>>2,TP=bo+127>>7,SP=(bo+7>>3)+Mo+hp+TP,L2=SP+127>>7,rK=L2<=109?0:Math.ceil((L2-109)/127);SP+L2+rK+127>>7>L2;)rK=++L2<=109?0:Math.ceil((L2-109)/127);var rC=[1,rK,L2,TP,hp,Mo,bo,0];return us.FileIndex[0].size=bo<<6,rC[7]=(us.FileIndex[0].start=rC[0]+rC[1]+rC[2]+rC[3]+rC[4]+rC[5])+(rC[6]+7>>3),rC}(Mt),dn=er(Jt[7]<<9),pn=0,wi=0;for(pn=0;pn<8;++pn)dn.write_shift(1,ki[pn]);for(pn=0;pn<8;++pn)dn.write_shift(2,0);for(dn.write_shift(2,62),dn.write_shift(2,3),dn.write_shift(2,65534),dn.write_shift(2,9),dn.write_shift(2,6),pn=0;pn<3;++pn)dn.write_shift(2,0);for(dn.write_shift(4,0),dn.write_shift(4,Jt[2]),dn.write_shift(4,Jt[0]+Jt[1]+Jt[2]+Jt[3]-1),dn.write_shift(4,0),dn.write_shift(4,4096),dn.write_shift(4,Jt[3]?Jt[0]+Jt[1]+Jt[2]-1:ci),dn.write_shift(4,Jt[3]),dn.write_shift(-4,Jt[1]?Jt[0]-1:ci),dn.write_shift(4,Jt[1]),pn=0;pn<109;++pn)dn.write_shift(-4,pn<Jt[2]?Jt[1]+pn:-1);if(Jt[1])for(wi=0;wi<Jt[1];++wi){for(;pn<236+127*wi;++pn)dn.write_shift(-4,pn<Jt[2]?Jt[1]+pn:-1);dn.write_shift(-4,wi===Jt[1]-1?ci:wi+1)}var tr=function(us){for(wi+=us;pn<wi-1;++pn)dn.write_shift(-4,pn+1);us&&(++pn,dn.write_shift(-4,ci))};for(wi=pn=0,wi+=Jt[1];pn<wi;++pn)dn.write_shift(-4,Lr.DIFSECT);for(wi+=Jt[2];pn<wi;++pn)dn.write_shift(-4,Lr.FATSECT);tr(Jt[3]),tr(Jt[4]);for(var xi=0,Si=0,Ri=Mt.FileIndex[0];xi<Mt.FileIndex.length;++xi)(Ri=Mt.FileIndex[xi]).content&&!((Si=Ri.content.length)<4096)&&(Ri.start=wi,tr(Si+511>>9));for(tr(Jt[6]+7>>3);511&dn.l;)dn.write_shift(-4,Lr.ENDOFCHAIN);for(wi=pn=0,xi=0;xi<Mt.FileIndex.length;++xi)(Ri=Mt.FileIndex[xi]).content&&(Si=Ri.content.length)&&!(Si>=4096)&&(Ri.start=wi,tr(Si+63>>6));for(;511&dn.l;)dn.write_shift(-4,Lr.ENDOFCHAIN);for(pn=0;pn<Jt[4]<<2;++pn){var eo=Mt.FullPaths[pn];if(eo&&0!==eo.length){Ri=Mt.FileIndex[pn],0===pn&&(Ri.start=Ri.size?Ri.start-1:ci);var yo=0===pn&&zt.root||Ri.name;if(Si=2*(yo.length+1),dn.write_shift(64,yo,"utf16le"),dn.write_shift(2,Si),dn.write_shift(1,Ri.type),dn.write_shift(1,Ri.color),dn.write_shift(-4,Ri.L),dn.write_shift(-4,Ri.R),dn.write_shift(-4,Ri.C),Ri.clsid)dn.write_shift(16,Ri.clsid,"hex");else for(xi=0;xi<4;++xi)dn.write_shift(4,0);dn.write_shift(4,Ri.state||0),dn.write_shift(4,0),dn.write_shift(4,0),dn.write_shift(4,0),dn.write_shift(4,0),dn.write_shift(4,Ri.start),dn.write_shift(4,Ri.size),dn.write_shift(4,0)}else{for(xi=0;xi<17;++xi)dn.write_shift(4,0);for(xi=0;xi<3;++xi)dn.write_shift(4,-1);for(xi=0;xi<12;++xi)dn.write_shift(4,0)}}for(pn=1;pn<Mt.FileIndex.length;++pn)if((Ri=Mt.FileIndex[pn]).size>=4096)if(dn.l=Ri.start+1<<9,nl&&Buffer.isBuffer(Ri.content))Ri.content.copy(dn,dn.l,0,Ri.size),dn.l+=Ri.size+511&-512;else{for(xi=0;xi<Ri.size;++xi)dn.write_shift(1,Ri.content[xi]);for(;511&xi;++xi)dn.write_shift(1,0)}for(pn=1;pn<Mt.FileIndex.length;++pn)if((Ri=Mt.FileIndex[pn]).size>0&&Ri.size<4096)if(nl&&Buffer.isBuffer(Ri.content))Ri.content.copy(dn,dn.l,0,Ri.size),dn.l+=Ri.size+63&-64;else{for(xi=0;xi<Ri.size;++xi)dn.write_shift(1,Ri.content[xi]);for(;63&xi;++xi)dn.write_shift(1,0)}if(nl)dn.l=dn.length;else for(;dn.l<dn.length;)dn.write_shift(1,0);return dn}r.version="1.2.1";var Ji,en=64,ci=-2,Wi="d0cf11e0a1b11ae1",ki=[208,207,17,224,161,177,26,225],Xr="00000000000000000000000000000000",Lr={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:ci,FREESECT:-1,HEADER_SIGNATURE:Wi,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:Xr,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function cr(Mt){for(var cn=new Array(Mt.length),zt=0;zt<Mt.length;++zt)cn[zt]=String.fromCharCode(Mt[zt]);return cn.join("")}function Tn(Mt){return Ji?Ji.deflateRawSync(Mt):gl(Mt)}for(var Mt,cn,xn=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Xi=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],Ao=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],co=typeof Uint8Array<"u",Ar=co?new Uint8Array(256):[],Va=0;Va<256;++Va)Ar[Va]=(void 0,255&((cn=139536&((Mt=Va)<<1|Mt<<11)|558144&(Mt<<5|Mt<<15))>>16|cn>>8|cn));function wn(Mt,cn){var zt=Ar[255&Mt];return cn<=8?zt>>>8-cn:(zt=zt<<8|Ar[Mt>>8&255],cn<=16?zt>>>16-cn:(zt=zt<<8|Ar[Mt>>16&255])>>>24-cn)}function Tc(Mt,cn){var zt=7&cn,Jt=cn>>>3;return(Mt[Jt]|(zt<=6?0:Mt[Jt+1]<<8))>>>zt&3}function il(Mt,cn){var zt=7&cn,Jt=cn>>>3;return(Mt[Jt]|(zt<=5?0:Mt[Jt+1]<<8))>>>zt&7}function rl(Mt,cn){var zt=7&cn,Jt=cn>>>3;return(Mt[Jt]|(zt<=3?0:Mt[Jt+1]<<8))>>>zt&31}function Go(Mt,cn){var zt=7&cn,Jt=cn>>>3;return(Mt[Jt]|(zt<=1?0:Mt[Jt+1]<<8))>>>zt&127}function yd(Mt,cn,zt){var Jt=7&cn,dn=cn>>>3,wi=Mt[dn]>>>Jt;return zt<8-Jt||(wi|=Mt[dn+1]<<8-Jt,zt<16-Jt)||(wi|=Mt[dn+2]<<16-Jt,zt<24-Jt)||(wi|=Mt[dn+3]<<24-Jt),wi&(1<<zt)-1}function Bm(Mt,cn,zt){var Jt=7&cn,dn=cn>>>3;return Jt<=5?Mt[dn]|=(7&zt)<<Jt:(Mt[dn]|=zt<<Jt&255,Mt[dn+1]=(7&zt)>>8-Jt),cn+3}function Qv(Mt,cn,zt){return Mt[cn>>>3]|=zt=(1&zt)<<(7&cn),cn+1}function d0(Mt,cn,zt){var dn=cn>>>3;return Mt[dn]|=255&(zt<<=7&cn),Mt[dn+1]=zt>>>=8,cn+8}function F2(Mt,cn,zt){var dn=cn>>>3;return Mt[dn]|=255&(zt<<=7&cn),Mt[dn+1]=255&(zt>>>=8),Mt[dn+2]=zt>>>8,cn+16}function Jy(Mt,cn){var zt=Mt.length,Jt=2*zt>cn?2*zt:cn+5,dn=0;if(zt>=cn)return Mt;if(nl){var pn=Are(Jt);if(Mt.copy)Mt.copy(pn);else for(;dn<Mt.length;++dn)pn[dn]=Mt[dn];return pn}if(co){var wi=new Uint8Array(Jt);if(wi.set)wi.set(Mt);else for(;dn<zt;++dn)wi[dn]=Mt[dn];return wi}return Mt.length=Jt,Mt}function am(Mt){for(var cn=new Array(Mt),zt=0;zt<Mt;++zt)cn[zt]=0;return cn}function iC(Mt,cn,zt){var Jt=1,dn=0,pn=0,wi=0,tr=0,xi=Mt.length,Si=co?new Uint16Array(32):am(32);for(pn=0;pn<32;++pn)Si[pn]=0;for(pn=xi;pn<zt;++pn)Mt[pn]=0;xi=Mt.length;var Ri=co?new Uint16Array(xi):am(xi);for(pn=0;pn<xi;++pn)Si[dn=Mt[pn]]++,Jt<dn&&(Jt=dn),Ri[pn]=0;for(Si[0]=0,pn=1;pn<=Jt;++pn)Si[pn+16]=tr=tr+Si[pn-1]<<1;for(pn=0;pn<xi;++pn)0!=(tr=Mt[pn])&&(Ri[pn]=Si[tr+16]++);var eo=0;for(pn=0;pn<xi;++pn)if(0!=(eo=Mt[pn]))for(tr=wn(Ri[pn],Jt)>>Jt-eo,wi=(1<<Jt+4-eo)-1;wi>=0;--wi)cn[tr|wi<<eo]=15&eo|pn<<4;return Jt}var xT=co?new Uint16Array(512):am(512),wP=co?new Uint16Array(32):am(32);if(!co){for(var lm=0;lm<512;++lm)xT[lm]=0;for(lm=0;lm<32;++lm)wP[lm]=0}!function(){for(var Mt=[],cn=0;cn<32;cn++)Mt.push(5);iC(Mt,wP,32);var zt=[];for(cn=0;cn<=143;cn++)zt.push(8);for(;cn<=255;cn++)zt.push(9);for(;cn<=279;cn++)zt.push(7);for(;cn<=287;cn++)zt.push(8);iC(zt,xT,288)}();var Zy=function(){for(var cn=co?new Uint8Array(32768):[],zt=0,Jt=0;zt<Ao.length-1;++zt)for(;Jt<Ao[zt+1];++Jt)cn[Jt]=zt;for(;Jt<32768;++Jt)cn[Jt]=29;var dn=co?new Uint8Array(259):[];for(zt=0,Jt=0;zt<Xi.length-1;++zt)for(;Jt<Xi[zt+1];++Jt)dn[Jt]=zt;return function(xi,Si){return xi.length<8?function pn(tr,xi){for(var Si=0;Si<tr.length;){var Ri=Math.min(65535,tr.length-Si);for(xi.write_shift(1,+(Si+Ri==tr.length)),xi.write_shift(2,Ri),xi.write_shift(2,65535&~Ri);Ri-- >0;)xi[xi.l++]=tr[Si++]}return xi.l}(xi,Si):function wi(tr,xi){for(var Si=0,Ri=0,eo=co?new Uint16Array(32768):[];Ri<tr.length;){var yo=Math.min(65535,tr.length-Ri);if(yo<10){for(7&(Si=Bm(xi,Si,+(Ri+yo==tr.length)))&&(Si+=8-(7&Si)),xi.l=Si/8|0,xi.write_shift(2,yo),xi.write_shift(2,65535&~yo);yo-- >0;)xi[xi.l++]=tr[Ri++];Si=8*xi.l}else{Si=Bm(xi,Si,+(Ri+yo==tr.length)+2);for(var us=0;yo-- >0;){var bo=tr[Ri],Mo=-1,ka=0;if((Mo=eo[us=32767&(us<<5^bo)])&&((Mo|=-32768&Ri)>Ri&&(Mo-=32768),Mo<Ri))for(;tr[Mo+ka]==tr[Ri+ka]&&ka<250;)++ka;if(ka>2){(bo=dn[ka])<=22?Si=d0(xi,Si,Ar[bo+1]>>1)-1:(d0(xi,Si,3),d0(xi,Si+=5,Ar[bo-23]>>5),Si+=3);var zu=bo<8?0:bo-4>>2;zu>0&&(F2(xi,Si,ka-Xi[bo]),Si+=zu),Si=d0(xi,Si,Ar[bo=cn[Ri-Mo]]>>3),Si-=3;var Vm=bo<4?0:bo-2>>1;Vm>0&&(F2(xi,Si,Ri-Mo-Ao[bo]),Si+=Vm);for(var hp=0;hp<ka;++hp)eo[us]=32767&Ri,us=32767&(us<<5^tr[Ri]),++Ri;yo-=ka-1}else bo<=143?bo+=48:Si=Qv(xi,Si,1),Si=d0(xi,Si,Ar[bo]),eo[us]=32767&Ri,++Ri}Si=d0(xi,Si,0)-1}}return xi.l=(Si+7)/8|0,xi.l}(xi,Si)}}();function gl(Mt){var cn=er(50+Math.floor(1.1*Mt.length)),zt=Zy(Mt,cn);return cn.slice(0,zt)}var tp=co?new Uint16Array(32768):am(32768),Jv=co?new Uint16Array(32768):am(32768),Lp=co?new Uint16Array(128):am(128),P2=1,Fhe=1;function D7t(Mt,cn){var zt=rl(Mt,cn)+257,Jt=rl(Mt,cn+=5)+1,dn=function Sc(Mt,cn){var zt=7&cn,Jt=cn>>>3;return(Mt[Jt]|(zt<=4?0:Mt[Jt+1]<<8))>>>zt&15}(Mt,cn+=5)+4;cn+=4;for(var pn=0,wi=co?new Uint8Array(19):am(19),tr=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],xi=1,Si=co?new Uint8Array(8):am(8),Ri=co?new Uint8Array(8):am(8),eo=wi.length,yo=0;yo<dn;++yo)wi[xn[yo]]=pn=il(Mt,cn),xi<pn&&(xi=pn),Si[pn]++,cn+=3;var us=0;for(Si[0]=0,yo=1;yo<=xi;++yo)Ri[yo]=us=us+Si[yo-1]<<1;for(yo=0;yo<eo;++yo)0!=(us=wi[yo])&&(tr[yo]=Ri[us]++);var bo=0;for(yo=0;yo<eo;++yo)if(0!=(bo=wi[yo])){us=Ar[tr[yo]]>>8-bo;for(var Mo=(1<<7-bo)-1;Mo>=0;--Mo)Lp[us|Mo<<bo]=7&bo|yo<<3}var ka=[];for(xi=1;ka.length<zt+Jt;)switch(us=Lp[Go(Mt,cn)],cn+=7&us,us>>>=3){case 16:for(pn=3+Tc(Mt,cn),cn+=2,us=ka[ka.length-1];pn-- >0;)ka.push(us);break;case 17:for(pn=3+il(Mt,cn),cn+=3;pn-- >0;)ka.push(0);break;case 18:for(pn=11+Go(Mt,cn),cn+=7;pn-- >0;)ka.push(0);break;default:ka.push(us),xi<us&&(xi=us)}var zu=ka.slice(0,zt),Vm=ka.slice(zt);for(yo=zt;yo<286;++yo)zu[yo]=0;for(yo=Jt;yo<30;++yo)Vm[yo]=0;return P2=iC(zu,tp,286),Fhe=iC(Vm,Jv,30),cn}function Phe(Mt,cn){var Jt=function k7t(Mt,cn){if(3==Mt[0]&&!(3&Mt[1]))return[eT(cn),2];for(var zt=0,Jt=0,dn=Are(cn||1<<18),pn=0,wi=dn.length>>>0,tr=0,xi=0;!(1&Jt);)if(Jt=il(Mt,zt),zt+=3,Jt>>>1)for(Jt>>1==1?(tr=9,xi=5):(zt=D7t(Mt,zt),tr=P2,xi=Fhe);;){!cn&&wi<pn+32767&&(wi=(dn=Jy(dn,pn+32767)).length);var Ri=yd(Mt,zt,tr),eo=Jt>>>1==1?xT[Ri]:tp[Ri];if(zt+=15&eo,(eo>>>=4)>>>8&255){if(256==eo)break;var yo=(eo-=257)<8?0:eo-4>>2;yo>5&&(yo=0);var us=pn+Xi[eo];yo>0&&(us+=yd(Mt,zt,yo),zt+=yo),Ri=yd(Mt,zt,xi),zt+=15&(eo=Jt>>>1==1?wP[Ri]:Jv[Ri]);var bo=(eo>>>=4)<4?0:eo-2>>1,Mo=Ao[eo];for(bo>0&&(Mo+=yd(Mt,zt,bo),zt+=bo),!cn&&wi<us&&(wi=(dn=Jy(dn,us+100)).length);pn<us;)dn[pn]=dn[pn-Mo],++pn}else dn[pn++]=eo}else{7&zt&&(zt+=8-(7&zt));var Si=Mt[zt>>>3]|Mt[1+(zt>>>3)]<<8;if(zt+=32,Si>0)for(!cn&&wi<pn+Si&&(wi=(dn=Jy(dn,pn+Si)).length);Si-- >0;)dn[pn++]=Mt[zt>>>3],zt+=8}return cn?[dn,zt+7>>>3]:[dn.slice(0,pn),zt+7>>>3]}(Mt.slice(Mt.l||0),cn);return Mt.l+=Jt[1],Jt[0]}function Lhe(Mt,cn){if(!Mt)throw new Error(cn);typeof console<"u"&&console.error(cn)}function Nhe(Mt,cn){var zt=Mt;Nh(zt,0);var pn={FileIndex:[],FullPaths:[]};rt(pn,{root:cn.root});for(var wi=zt.length-4;(80!=zt[wi]||75!=zt[wi+1]||5!=zt[wi+2]||6!=zt[wi+3])&&wi>=0;)--wi;zt.l=wi+4,zt.l+=4;var tr=zt.read_shift(2);zt.l+=6;var xi=zt.read_shift(4);for(zt.l=xi,wi=0;wi<tr;++wi){zt.l+=20;var Si=zt.read_shift(4),Ri=zt.read_shift(4),eo=zt.read_shift(2),yo=zt.read_shift(2),us=zt.read_shift(2);zt.l+=8;var bo=zt.read_shift(4),Mo=l(zt.slice(zt.l+eo,zt.l+eo+yo));zt.l+=eo+yo+us;var ka=zt.l;zt.l=bo+4,I7t(zt,Si,Ri,pn,Mo),zt.l=ka}return pn}function I7t(Mt,cn,zt,Jt,dn){Mt.l+=2;var pn=Mt.read_shift(2),wi=Mt.read_shift(2),tr=function a(Mt){var cn=65535&Mt.read_shift(2),zt=65535&Mt.read_shift(2),Jt=new Date,dn=31&zt,pn=15&(zt>>>=5);zt>>>=4,Jt.setMilliseconds(0),Jt.setFullYear(zt+1980),Jt.setMonth(pn-1),Jt.setDate(dn);var wi=31&cn,tr=63&(cn>>>=5);return Jt.setHours(cn>>>=6),Jt.setMinutes(tr),Jt.setSeconds(wi<<1),Jt}(Mt);if(8257&pn)throw new Error("Unsupported ZIP encryption");Mt.read_shift(4);for(var Si=Mt.read_shift(4),Ri=Mt.read_shift(4),eo=Mt.read_shift(2),yo=Mt.read_shift(2),us="",bo=0;bo<eo;++bo)us+=String.fromCharCode(Mt[Mt.l++]);if(yo){var Mo=l(Mt.slice(Mt.l,Mt.l+yo));(Mo[21589]||{}).mt&&(tr=Mo[21589].mt),((dn||{})[21589]||{}).mt&&(tr=dn[21589].mt)}Mt.l+=yo;var ka=Mt.slice(Mt.l,Mt.l+Si);switch(wi){case 8:ka=function hi(Mt,cn){if(!Ji)return Phe(Mt,cn);var Jt=new(0,Ji.InflateRaw),dn=Jt._processChunk(Mt.slice(Mt.l),Jt._finishFlushFlag);return Mt.l+=Jt.bytesRead,dn}(Mt,Ri);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+wi)}var zu=!1;8&pn&&(134695760==Mt.read_shift(4)&&(Mt.read_shift(4),zu=!0),Si=Mt.read_shift(4),Ri=Mt.read_shift(4)),Si!=cn&&Lhe(zu,"Bad compressed size: "+cn+" != "+Si),Ri!=zt&&Lhe(zu,"Bad uncompressed size: "+zt+" != "+Ri),iK(Jt,us,ka,{unsafe:!0,mt:tr})}var I6={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function M7t(Mt,cn){if(Mt.ctype)return Mt.ctype;var zt=Mt.name||"",Jt=zt.match(/\.([^\.]+)$/);return Jt&&I6[Jt[1]]||cn&&(Jt=(zt=cn).match(/[\.\\]([^\.\\])+$/))&&I6[Jt[1]]?I6[Jt[1]]:"application/octet-stream"}function R7t(Mt){for(var cn=VO(Mt),zt=[],Jt=0;Jt<cn.length;Jt+=76)zt.push(cn.slice(Jt,Jt+76));return zt.join("\r\n")+"\r\n"}function O7t(Mt){var cn=Mt.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(Si){var Ri=Si.charCodeAt(0).toString(16).toUpperCase();return"="+(1==Ri.length?"0"+Ri:Ri)});"\n"==(cn=cn.replace(/ $/gm,"=20").replace(/\t$/gm,"=09")).charAt(0)&&(cn="=0D"+cn.slice(1));for(var zt=[],Jt=(cn=cn.replace(/\r(?!\n)/gm,"=0D").replace(/\n\n/gm,"\n=0A").replace(/([^\r\n])\n/gm,"$1=0A")).split("\r\n"),dn=0;dn<Jt.length;++dn){var pn=Jt[dn];if(0!=pn.length)for(var wi=0;wi<pn.length;){var tr=76,xi=pn.slice(wi,wi+tr);"="==xi.charAt(tr-1)?tr--:"="==xi.charAt(tr-2)?tr-=2:"="==xi.charAt(tr-3)&&(tr-=3),xi=pn.slice(wi,wi+tr),(wi+=tr)<pn.length&&(xi+="="),zt.push(xi)}else zt.push("")}return zt.join("\r\n")}function P7t(Mt,cn,zt){for(var wi,Jt="",dn="",pn="",tr=0;tr<10;++tr){var xi=cn[tr];if(!xi||xi.match(/^\s*$/))break;var Si=xi.match(/^(.*?):\s*([^\s].*)$/);if(Si)switch(Si[1].toLowerCase()){case"content-location":Jt=Si[2].trim();break;case"content-type":pn=Si[2].trim();break;case"content-transfer-encoding":dn=Si[2].trim()}}switch(++tr,dn.toLowerCase()){case"base64":wi=wg(Cg(cn.slice(tr).join("")));break;case"quoted-printable":wi=function F7t(Mt){for(var cn=[],zt=0;zt<Mt.length;++zt){for(var Jt=Mt[zt];zt<=Mt.length&&"="==Jt.charAt(Jt.length-1);)Jt=Jt.slice(0,Jt.length-1)+Mt[++zt];cn.push(Jt)}for(var dn=0;dn<cn.length;++dn)cn[dn]=cn[dn].replace(/[=][0-9A-Fa-f]{2}/g,function(pn){return String.fromCharCode(parseInt(pn.slice(1),16))});return wg(cn.join("\r\n"))}(cn.slice(tr));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+dn)}var Ri=iK(Mt,Jt.slice(zt.length),wi,{unsafe:!0});pn&&(Ri.ctype=pn)}function iK(Mt,cn,zt,Jt){var dn=Jt&&Jt.unsafe;dn||rt(Mt);var pn=!dn&&js.find(Mt,cn);if(!pn){var wi=Mt.FullPaths[0];cn.slice(0,wi.length)==wi?wi=cn:("/"!=wi.slice(-1)&&(wi+="/"),wi=(wi+cn).replace("//","/")),pn={name:o(cn),type:2},Mt.FileIndex.push(pn),Mt.FullPaths.push(wi),dn||js.utils.cfb_gc(Mt)}return pn.content=zt,pn.size=zt?zt.length:0,Jt&&(Jt.CLSID&&(pn.clsid=Jt.CLSID),Jt.mt&&(pn.mt=Jt.mt),Jt.ct&&(pn.ct=Jt.ct)),pn}return r.find=function Zt(Mt,cn){var zt=Mt.FullPaths.map(function(xi){return xi.toUpperCase()}),Jt=zt.map(function(xi){var Si=xi.split("/");return Si[Si.length-("/"==xi.slice(-1)?2:1)]}),dn=!1;47===cn.charCodeAt(0)?(dn=!0,cn=zt[0].slice(0,-1)+cn):dn=-1!==cn.indexOf("/");var pn=cn.toUpperCase(),wi=!0===dn?zt.indexOf(pn):Jt.indexOf(pn);if(-1!==wi)return Mt.FileIndex[wi];var tr=!pn.match(HO);for(pn=pn.replace(_f,""),tr&&(pn=pn.replace(HO,"!")),wi=0;wi<zt.length;++wi)if((tr?zt[wi].replace(HO,"!"):zt[wi]).replace(_f,"")==pn||(tr?Jt[wi].replace(HO,"!"):Jt[wi]).replace(_f,"")==pn)return Mt.FileIndex[wi];return null},r.read=function nt(Mt,cn){var zt=cn&&cn.type;switch(zt||nl&&Buffer.isBuffer(Mt)&&(zt="buffer"),zt||"base64"){case"file":return function tt(Mt,cn){return d(),f(c.readFileSync(Mt),cn)}(Mt,cn);case"base64":return f(wg(Cg(Mt)),cn);case"binary":return f(wg(Mt),cn)}return f(Mt,cn)},r.parse=f,r.write=function is(Mt,cn){var zt=Wt(Mt,cn);switch(cn&&cn.type||"buffer"){case"file":return d(),c.writeFileSync(cn.filename,zt),zt;case"binary":return"string"==typeof zt?zt:cr(zt);case"base64":return VO("string"==typeof zt?zt:cr(zt));case"buffer":if(nl)return Buffer.isBuffer(zt)?zt:Fb(zt);case"array":return"string"==typeof zt?wg(zt):zt}return zt},r.writeFile=function Jo(Mt,cn,zt){d();var Jt=Wt(Mt,zt);c.writeFileSync(cn,Jt)},r.utils={cfb_new:function G7t(Mt){var cn={};return rt(cn,Mt),cn},cfb_add:iK,cfb_del:function B7t(Mt,cn){rt(Mt);var zt=js.find(Mt,cn);if(zt)for(var Jt=0;Jt<Mt.FileIndex.length;++Jt)if(Mt.FileIndex[Jt]==zt)return Mt.FileIndex.splice(Jt,1),Mt.FullPaths.splice(Jt,1),!0;return!1},cfb_mov:function V7t(Mt,cn,zt){rt(Mt);var Jt=js.find(Mt,cn);if(Jt)for(var dn=0;dn<Mt.FileIndex.length;++dn)if(Mt.FileIndex[dn]==Jt)return Mt.FileIndex[dn].name=o(zt),Mt.FullPaths[dn]=zt,!0;return!1},cfb_gc:function j7t(Mt){bt(Mt,!0)},ReadShift:XO,CheckField:koe,prep_blob:Nh,bconcat:nh,use_zlib:function hn(Mt){try{var zt=new(0,Mt.InflateRaw);if(zt._processChunk(new Uint8Array([3,0]),zt._finishFlushFlag),!zt.bytesRead)throw new Error("zlib does not expose bytesRead");Ji=Mt}catch(Jt){console.error("cannot use native zlib: "+(Jt.message||Jt))}},_deflateRaw:gl,_inflateRaw:Phe,consts:Lr},r}();function MGe(t){return"string"==typeof t?jO(t):Array.isArray(t)?function nGe(t){if(typeof Uint8Array>"u")throw new Error("Unsupported");return new Uint8Array(t)}(t):t}function YO(t,r,e){if(typeof Deno<"u"){if(e&&"string"==typeof r)switch(e){case"utf8":r=new TextEncoder(e).encode(r);break;case"binary":r=jO(r);break;default:throw new Error("Unsupported encoding "+e)}return Deno.writeFileSync(t,r)}var i="utf8"==e?Ly(r):r;if(typeof IE_SaveFile<"u")return IE_SaveFile(i,t);if(typeof Blob<"u"){var o=new Blob([MGe(i)],{type:"application/octet-stream"});if(typeof navigator<"u"&&navigator.msSaveBlob)return navigator.msSaveBlob(o,t);if(typeof saveAs<"u")return saveAs(o,t);if(typeof URL<"u"&&typeof document<"u"&&document.createElement&&URL.createObjectURL){var s=URL.createObjectURL(o);if("object"==typeof chrome&&"function"==typeof(chrome.downloads||{}).download)return URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(s)},6e4),chrome.downloads.download({url:s,filename:t,saveAs:!0});var a=document.createElement("a");if(null!=a.download)return a.download=t,a.href=s,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(s)},6e4),s}}if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var l=File(t);return l.open("w"),l.encoding="binary",Array.isArray(r)&&(r=tT(r)),l.write(r),l.close(),r}catch(c){if(!c.message||!c.message.match(/onstruct/))throw c}throw new Error("cannot save file "+t)}function Ad(t){for(var r=Object.keys(t),e=[],i=0;i<r.length;++i)Object.prototype.hasOwnProperty.call(t,r[i])&&e.push(r[i]);return e}function Xre(t,r){for(var e=[],i=Ad(t),o=0;o!==i.length;++o)null==e[t[i[o]][r]]&&(e[t[i[o]][r]]=i[o]);return e}function k7(t){for(var r=[],e=Ad(t),i=0;i!==e.length;++i)r[t[e[i]]]=e[i];return r}function I7(t){for(var r=[],e=Ad(t),i=0;i!==e.length;++i)r[t[e[i]]]=parseInt(e[i],10);return r}var A7=new Date(1899,11,30,0,0,0);function ih(t,r){var e=t.getTime();return r&&(e-=1263168e5),(e-(A7.getTime()+6e4*(t.getTimezoneOffset()-A7.getTimezoneOffset())))/864e5}var Kre=new Date,FGe=A7.getTime()+6e4*(Kre.getTimezoneOffset()-A7.getTimezoneOffset()),Qre=Kre.getTimezoneOffset();function TW(t){var r=new Date;return r.setTime(24*t*60*60*1e3+FGe),r.getTimezoneOffset()!==Qre&&r.setTime(r.getTime()+6e4*(r.getTimezoneOffset()-Qre)),r}var Jre=new Date("2017-02-19T19:06:09.000Z"),Zre=isNaN(Jre.getFullYear())?new Date("2/19/17"):Jre,LGe=2017==Zre.getFullYear();function vd(t,r){var e=new Date(t);if(LGe)return r>0?e.setTime(e.getTime()+60*e.getTimezoneOffset()*1e3):r<0&&e.setTime(e.getTime()-60*e.getTimezoneOffset()*1e3),e;if(t instanceof Date)return t;if(1917==Zre.getFullYear()&&!isNaN(e.getFullYear())){var i=e.getFullYear();return t.indexOf(""+i)>-1||e.setFullYear(e.getFullYear()+100),e}var o=t.match(/\d+/g)||["2017","2","19","0","0","0"],s=new Date(+o[0],+o[1]-1,+o[2],+o[3]||0,+o[4]||0,+o[5]||0);return t.indexOf("Z")>-1&&(s=new Date(s.getTime()-60*s.getTimezoneOffset()*1e3)),s}function Kx(t,r){if(nl&&Buffer.isBuffer(t)){if(r){if(255==t[0]&&254==t[1])return Ly(t.slice(2).toString("utf16le"));if(254==t[1]&&255==t[2])return Ly(function Ire(t){for(var r=[],e=0;e<t.length>>1;++e)r[e]=String.fromCharCode(t.charCodeAt(2*e+1)+(t.charCodeAt(2*e)<<8));return r.join("")}(t.slice(2).toString("binary")))}return t.toString("binary")}if(typeof TextDecoder<"u")try{if(r){if(255==t[0]&&254==t[1])return Ly(new TextDecoder("utf-16le").decode(t.slice(2)));if(254==t[0]&&255==t[1])return Ly(new TextDecoder("utf-16be").decode(t.slice(2)))}var e={"\u20ac":"\x80","\u201a":"\x82",\u0192:"\x83","\u201e":"\x84","\u2026":"\x85","\u2020":"\x86","\u2021":"\x87",\u02c6:"\x88","\u2030":"\x89",\u0160:"\x8a","\u2039":"\x8b",\u0152:"\x8c",\u017d:"\x8e","\u2018":"\x91","\u2019":"\x92","\u201c":"\x93","\u201d":"\x94","\u2022":"\x95","\u2013":"\x96","\u2014":"\x97","\u02dc":"\x98","\u2122":"\x99",\u0161:"\x9a","\u203a":"\x9b",\u0153:"\x9c",\u017e:"\x9e",\u0178:"\x9f"};return Array.isArray(t)&&(t=new Uint8Array(t)),new TextDecoder("latin1").decode(t).replace(/[\u20ac\u201a\u0192\u201e\u2026\u2020\u2021\u02c6\u2030\u0160\u2039\u0152\u017d\u2018\u2019\u201c\u201d\u2022\u2013\u2014\u02dc\u2122\u0161\u203a\u0153\u017e\u0178]/g,function(s){return e[s]||s})}catch{}for(var i=[],o=0;o!=t.length;++o)i.push(String.fromCharCode(t[o]));return i.join("")}function vu(t){if(typeof JSON<"u"&&!Array.isArray(t))return JSON.parse(JSON.stringify(t));if("object"!=typeof t||null==t)return t;if(t instanceof Date)return new Date(t.getTime());var r={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=vu(t[e]));return r}function Md(t,r){for(var e="";e.length<r;)e+=t;return e}function t0(t){var r=Number(t);if(!isNaN(r))return isFinite(r)?r:NaN;if(!/\d/.test(t))return r;var e=1,i=t.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){return e*=100,""});return isNaN(r=Number(i))&&(i=i.replace(/[(](.*)[)]/,function(o,s){return e=-e,s}),isNaN(r=Number(i)))?r:r/e}var NGe=["january","february","march","april","may","june","july","august","september","october","november","december"];function Vk(t){var r=new Date(t),e=new Date(NaN),i=r.getYear(),o=r.getMonth(),s=r.getDate();if(isNaN(s))return e;var a=t.toLowerCase();if(a.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if((a=a.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,"")).length>3&&-1==NGe.indexOf(a))return e}else if(a.match(/[a-z]/))return e;return i<0||i>8099?e:(o>0||s>1)&&101!=i?r:t.match(/[^-0-9:,\/\\]/)?e:r}function qa(t,r,e){if(t.FullPaths){var i;if("string"==typeof e)return i=nl?Fb(e):function iGe(t){for(var r=[],e=0,i=t.length+250,o=eT(t.length+255),s=0;s<t.length;++s){var a=t.charCodeAt(s);if(a<128)o[e++]=a;else if(a<2048)o[e++]=192|a>>6&31,o[e++]=128|63&a;else if(a>=55296&&a<57344){a=64+(1023&a);var l=1023&t.charCodeAt(++s);o[e++]=240|a>>8&7,o[e++]=128|a>>2&63,o[e++]=128|l>>6&15|(3&a)<<4,o[e++]=128|63&l}else o[e++]=224|a>>12&15,o[e++]=128|a>>6&63,o[e++]=128|63&a;e>i&&(r.push(o.slice(0,e)),e=0,o=eT(65535),i=65530)}return r.push(o.slice(0,e)),nh(r)}(e),js.utils.cfb_add(t,r,i);js.utils.cfb_add(t,r,e)}else t.file(r,e)}function xW(){return js.utils.cfb_new()}var Rd='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r\n',EW=k7({"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"}),DW=/[&<>'"]/g,YGe=/[\u0000-\u0008\u000b-\u001f]/g;function zc(t){return(t+"").replace(DW,function(e){return EW[e]}).replace(YGe,function(e){return"_x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+"_"})}function soe(t){return zc(t).replace(/ /g,"_x0020_")}var aoe=/[\u0000-\u001f]/g;function loe(t){return(t+"").replace(DW,function(e){return EW[e]}).replace(/\n/g,"<br/>").replace(aoe,function(e){return"&#x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+";"})}function kW(t){for(var r="",e=0,i=0,o=0,s=0,a=0,l=0;e<t.length;)(i=t.charCodeAt(e++))<128?r+=String.fromCharCode(i):(o=t.charCodeAt(e++),i>191&&i<224?(a=(31&i)<<6,a|=63&o,r+=String.fromCharCode(a)):(s=t.charCodeAt(e++),i<240?r+=String.fromCharCode((15&i)<<12|(63&o)<<6|63&s):(l=((7&i)<<18|(63&o)<<12|(63&s)<<6|63&(a=t.charCodeAt(e++)))-65536,r+=String.fromCharCode(55296+(l>>>10&1023)),r+=String.fromCharCode(56320+(1023&l)))));return r}function uoe(t){var e,i,l,r=eT(2*t.length),o=1,s=0,a=0;for(i=0;i<t.length;i+=o)o=1,(l=t.charCodeAt(i))<128?e=l:l<224?(e=64*(31&l)+(63&t.charCodeAt(i+1)),o=2):l<240?(e=4096*(15&l)+64*(63&t.charCodeAt(i+1))+(63&t.charCodeAt(i+2)),o=3):(o=4,e=262144*(7&l)+4096*(63&t.charCodeAt(i+1))+64*(63&t.charCodeAt(i+2))+(63&t.charCodeAt(i+3)),a=55296+((e-=65536)>>>10&1023),e=56320+(1023&e)),0!==a&&(r[s++]=255&a,r[s++]=a>>>8,a=0),r[s++]=e%256,r[s++]=e>>>8;return r.slice(0,s).toString("ucs2")}function doe(t){return Fb(t,"binary").toString("utf8")}var M7="foo bar baz\xe2\x98\x83\xf0\x9f\x8d\xa3",Gu=nl&&(doe(M7)==kW(M7)&&doe||uoe(M7)==kW(M7)&&uoe)||kW,Ly=nl?function(t){return Fb(t,"utf8").toString("binary")}:function(t){for(var r=[],e=0,i=0,o=0;e<t.length;)switch(i=t.charCodeAt(e++),!0){case i<128:r.push(String.fromCharCode(i));break;case i<2048:r.push(String.fromCharCode(192+(i>>6))),r.push(String.fromCharCode(128+(63&i)));break;case i>=55296&&i<57344:i-=55296,o=t.charCodeAt(e++)-56320+(i<<10),r.push(String.fromCharCode(240+(o>>18&7))),r.push(String.fromCharCode(144+(o>>12&63))),r.push(String.fromCharCode(128+(o>>6&63))),r.push(String.fromCharCode(128+(63&o)));break;default:r.push(String.fromCharCode(224+(i>>12))),r.push(String.fromCharCode(128+(i>>6&63))),r.push(String.fromCharCode(128+(63&i)))}return r.join("")},poe=function(){var t=[["nbsp"," "],["middot","\xb7"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(r){return[new RegExp("&"+r[0]+";","ig"),r[1]]});return function(e){for(var i=e.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,"\n").replace(/<[^>]*>/g,""),o=0;o<t.length;++o)i=i.replace(t[o][0],t[o][1]);return i}}(),foe=/(^\s|\s$|\n)/;function Lh(t,r){return"<"+t+(r.match(foe)?' xml:space="preserve"':"")+">"+r+"</"+t+">"}function zO(t){return Ad(t).map(function(r){return" "+r+'="'+t[r]+'"'}).join("")}function so(t,r,e){return"<"+t+(null!=e?zO(e):"")+(null!=r?(r.match(foe)?' xml:space="preserve"':"")+">"+r+"</"+t:"/")+">"}function IW(t,r){try{return t.toISOString().replace(/\.\d*/,"")}catch(e){if(r)throw e}return""}var up_TCMNT="http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",up_r="http://schemas.openxmlformats.org/officeDocument/2006/relationships",up_vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",up_xsi="http://www.w3.org/2001/XMLSchema-instance",oT=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],xg_o="urn:schemas-microsoft-com:office:office",xg_x="urn:schemas-microsoft-com:office:excel",xg_ss="urn:schemas-microsoft-com:office:spreadsheet",moe=function(t){for(var r=[],i=0;i<t[0].length;++i)if(t[0][i])for(var o=0,s=t[0][i].length;o<s;o+=10240)r.push.apply(r,t[0][i].slice(o,o+10240));return r},goe=nl?function(t){return t[0].length>0&&Buffer.isBuffer(t[0][0])?Buffer.concat(t[0].map(function(r){return Buffer.isBuffer(r)?r:Fb(r)})):moe(t)}:moe,voe=function(t,r,e){for(var i=[],o=r;o<e;o+=2)i.push(String.fromCharCode(Lb(t,o)));return i.join("").replace(_f,"")},R7=nl?function(t,r,e){return Buffer.isBuffer(t)?t.toString("utf16le",r,e).replace(_f,""):voe(t,r,e)}:voe,_oe=function(t,r,e){for(var i=[],o=r;o<r+e;++o)i.push(("0"+t[o].toString(16)).slice(-2));return i.join("")},yoe=nl?function(t,r,e){return Buffer.isBuffer(t)?t.toString("hex",r,r+e):_oe(t,r,e)}:_oe,boe=function(t,r,e){for(var i=[],o=r;o<e;o++)i.push(String.fromCharCode(Hk(t,o)));return i.join("")},jk=nl?function(r,e,i){return Buffer.isBuffer(r)?r.toString("utf8",e,i):boe(r,e,i)}:boe,Coe=function(t,r){var e=rh(t,r);return e>0?jk(t,r+4,r+4+e-1):""},MW=Coe,woe=function(t,r){var e=rh(t,r);return e>0?jk(t,r+4,r+4+e-1):""},RW=woe,Toe=function(t,r){var e=2*rh(t,r);return e>0?jk(t,r+4,r+4+e-1):""},OW=Toe,Soe=function(r,e){var i=rh(r,e);return i>0?R7(r,e+4,e+4+i):""},FW=Soe,xoe=function(t,r){var e=rh(t,r);return e>0?jk(t,r+4,r+4+e):""},PW=xoe,Eoe=function(t,r){return function ZGe(t,r){for(var e=1-2*(t[r+7]>>>7),i=((127&t[r+7])<<4)+(t[r+6]>>>4&15),o=15&t[r+6],s=5;s>=0;--s)o=256*o+t[r+s];return 2047==i?0==o?e*(1/0):NaN:(0==i?i=-1022:(i-=1023,o+=Math.pow(2,52)),e*Math.pow(2,i-52)*o)}(t,r)},O7=Eoe,LW=function(r){return Array.isArray(r)||typeof Uint8Array<"u"&&r instanceof Uint8Array};nl&&(MW=function(r,e){if(!Buffer.isBuffer(r))return Coe(r,e);var i=r.readUInt32LE(e);return i>0?r.toString("utf8",e+4,e+4+i-1):""},RW=function(r,e){if(!Buffer.isBuffer(r))return woe(r,e);var i=r.readUInt32LE(e);return i>0?r.toString("utf8",e+4,e+4+i-1):""},OW=function(r,e){if(!Buffer.isBuffer(r))return Toe(r,e);var i=2*r.readUInt32LE(e);return r.toString("utf16le",e+4,e+4+i-1)},FW=function(r,e){if(!Buffer.isBuffer(r))return Soe(r,e);var i=r.readUInt32LE(e);return r.toString("utf16le",e+4,e+4+i)},PW=function(r,e){if(!Buffer.isBuffer(r))return xoe(r,e);var i=r.readUInt32LE(e);return r.toString("utf8",e+4,e+4+i)},O7=function(r,e){return Buffer.isBuffer(r)?r.readDoubleLE(e):Eoe(r,e)},LW=function(r){return Buffer.isBuffer(r)||Array.isArray(r)||typeof Uint8Array<"u"&&r instanceof Uint8Array});var Hk=function(t,r){return t[r]},Lb=function(t,r){return 256*t[r+1]+t[r]},t6e=function(t,r){var e=256*t[r+1]+t[r];return e<32768?e:-1*(65535-e+1)},rh=function(t,r){return t[r+3]*(1<<24)+(t[r+2]<<16)+(t[r+1]<<8)+t[r]},Qx=function(t,r){return t[r+3]<<24|t[r+2]<<16|t[r+1]<<8|t[r]},n6e=function(t,r){return t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3]};function XO(t,r){var i,o,a,l,c,d,e="",s=[];switch(r){case"dbcs":if(d=this.l,nl&&Buffer.isBuffer(this))e=this.slice(this.l,this.l+2*t).toString("utf16le");else for(c=0;c<t;++c)e+=String.fromCharCode(Lb(this,d)),d+=2;t*=2;break;case"utf8":e=jk(this,this.l,this.l+t);break;case"utf16le":e=R7(this,this.l,this.l+(t*=2));break;case"wstr":return XO.call(this,t,"dbcs");case"lpstr-ansi":e=MW(this,this.l),t=4+rh(this,this.l);break;case"lpstr-cp":e=RW(this,this.l),t=4+rh(this,this.l);break;case"lpwstr":e=OW(this,this.l),t=4+2*rh(this,this.l);break;case"lpp4":t=4+rh(this,this.l),e=FW(this,this.l),2&t&&(t+=2);break;case"8lpp4":t=4+rh(this,this.l),e=PW(this,this.l),3&t&&(t+=4-(3&t));break;case"cstr":for(t=0,e="";0!==(a=Hk(this,this.l+t++));)s.push(GO(a));e=s.join("");break;case"_wstr":for(t=0,e="";0!==(a=Lb(this,this.l+t));)s.push(GO(a)),t+=2;t+=2,e=s.join("");break;case"dbcs-cont":for(e="",d=this.l,c=0;c<t;++c){if(this.lens&&-1!==this.lens.indexOf(d))return a=Hk(this,d),this.l=d+1,l=XO.call(this,t-c,a?"dbcs-cont":"sbcs-cont"),s.join("")+l;s.push(GO(Lb(this,d))),d+=2}e=s.join(""),t*=2;break;case"cpstr":0;case"sbcs-cont":for(e="",d=this.l,c=0;c!=t;++c){if(this.lens&&-1!==this.lens.indexOf(d))return a=Hk(this,d),this.l=d+1,l=XO.call(this,t-c,a?"dbcs-cont":"sbcs-cont"),s.join("")+l;s.push(GO(Hk(this,d))),d+=1}e=s.join("");break;default:switch(t){case 1:return i=Hk(this,this.l),this.l++,i;case 2:return i=("i"===r?t6e:Lb)(this,this.l),this.l+=2,i;case 4:case-4:return"i"!==r&&128&this[this.l+3]?(o=rh(this,this.l),this.l+=4,o):(i=(t>0?Qx:n6e)(this,this.l),this.l+=4,i);case 8:case-8:if("f"===r)return o=8==t?O7(this,this.l):O7([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,o;t=8;case 16:e=yoe(this,this.l,t)}}return this.l+=t,e}var i6e=function(t,r,e){t[e]=255&r,t[e+1]=r>>>8&255,t[e+2]=r>>>16&255,t[e+3]=r>>>24&255},r6e=function(t,r,e){t[e]=255&r,t[e+1]=r>>8&255,t[e+2]=r>>16&255,t[e+3]=r>>24&255},o6e=function(t,r,e){t[e]=255&r,t[e+1]=r>>>8&255};function s6e(t,r,e){var i=0,o=0;if("dbcs"===e){for(o=0;o!=r.length;++o)o6e(this,r.charCodeAt(o),this.l+2*o);i=2*r.length}else if("sbcs"===e){for(r=r.replace(/[^\x00-\x7F]/g,"_"),o=0;o!=r.length;++o)this[this.l+o]=255&r.charCodeAt(o);i=r.length}else{if("hex"===e){for(;o<t;++o)this[this.l++]=parseInt(r.slice(2*o,2*o+2),16)||0;return this}if("utf16le"===e){var a=Math.min(this.l+t,this.length);for(o=0;o<Math.min(r.length,t);++o){var l=r.charCodeAt(o);this[this.l++]=255&l,this[this.l++]=l>>8}for(;this.l<a;)this[this.l++]=0;return this}switch(t){case 1:i=1,this[this.l]=255&r;break;case 2:i=2,this[this.l]=255&r,this[this.l+1]=255&(r>>>=8);break;case 3:i=3,this[this.l]=255&r,this[this.l+1]=255&(r>>>=8),this[this.l+2]=255&(r>>>=8);break;case 4:i=4,i6e(this,r,this.l);break;case 8:if(i=8,"f"===e){!function e6e(t,r,e){var i=(r<0||1/r==-1/0?1:0)<<7,o=0,s=0,a=i?-r:r;isFinite(a)?0==a?o=s=0:(o=Math.floor(Math.log(a)/Math.LN2),s=a*Math.pow(2,52-o),o<=-1023&&(!isFinite(s)||s<Math.pow(2,52))?o=-1022:(s-=Math.pow(2,52),o+=1023)):(o=2047,s=isNaN(r)?26985:0);for(var l=0;l<=5;++l,s/=256)t[e+l]=255&s;t[e+6]=(15&o)<<4|15&s,t[e+7]=o>>4|i}(this,r,this.l);break}case 16:break;case-4:i=4,r6e(this,r,this.l)}}return this.l+=i,this}function koe(t,r){var e=yoe(this,this.l,t.length>>1);if(e!==t)throw new Error(r+"Expected "+t+" saw "+e);this.l+=t.length>>1}function Nh(t,r){t.l=r,t.read_shift=XO,t.chk=koe,t.write_shift=s6e}function bf(t,r){t.l+=r}function er(t){var r=eT(t);return Nh(r,0),r}function tm(){var t=[],r=nl?256:2048,e=function(d){var f=er(d);return Nh(f,0),f},i=e(r),o=function(){i&&(i.length>i.l&&((i=i.slice(0,i.l)).l=i.length),i.length>0&&t.push(i),i=null)},s=function(d){return i&&d<i.length-i.l?i:(o(),i=e(Math.max(d+1,r)))};return{next:s,push:function(d){o(),null==(i=d).l&&(i.l=i.length),s(r)},end:function(){return o(),nh(t)},_bufs:t}}function Ir(t,r,e,i){var s,o=+r;if(!isNaN(o)){i||(i=hF[o].p||(e||[]).length||0),s=1+(o>=128?1:0)+1,i>=128&&++s,i>=16384&&++s,i>=2097152&&++s;var a=t.next(s);o<=127?a.write_shift(1,o):(a.write_shift(1,128+(127&o)),a.write_shift(1,o>>7));for(var l=0;4!=l;++l){if(!(i>=128)){a.write_shift(1,i);break}a.write_shift(1,128+(127&i)),i>>=7}i>0&&LW(e)&&t.push(e)}}function KO(t,r,e){var i=vu(t);if(r.s?(i.cRel&&(i.c+=r.s.c),i.rRel&&(i.r+=r.s.r)):(i.cRel&&(i.c+=r.c),i.rRel&&(i.r+=r.r)),!e||e.biff<12){for(;i.c>=256;)i.c-=256;for(;i.r>=65536;)i.r-=65536}return i}function Ioe(t,r,e){var i=vu(t);return i.s=KO(i.s,r.s,e),i.e=KO(i.e,r.s,e),i}function QO(t,r){if(t.cRel&&t.c<0)for(t=vu(t);t.c<0;)t.c+=r>8?16384:256;if(t.rRel&&t.r<0)for(t=vu(t);t.r<0;)t.r+=r>8?1048576:r>5?65536:16384;var e=ca(t);return!t.cRel&&null!=t.cRel&&(e=function c6e(t){return t.replace(/^([A-Z])/,"$$$1")}(e)),!t.rRel&&null!=t.rRel&&(e=function a6e(t){return t.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}(e)),e}function NW(t,r){return 0!=t.s.r||t.s.rRel||t.e.r!=(r.biff>=12?1048575:r.biff>=8?65536:16384)||t.e.rRel?0!=t.s.c||t.s.cRel||t.e.c!=(r.biff>=12?16383:255)||t.e.cRel?QO(t.s,r.biff)+":"+QO(t.e,r.biff):(t.s.rRel?"":"$")+Od(t.s.r)+":"+(t.e.rRel?"":"$")+Od(t.e.r):(t.s.cRel?"":"$")+Bu(t.s.c)+":"+(t.e.cRel?"":"$")+Bu(t.e.c)}function GW(t){return parseInt(function l6e(t){return t.replace(/\$(\d+)$/,"$1")}(t),10)-1}function Od(t){return""+(t+1)}function BW(t){for(var r=function u6e(t){return t.replace(/^\$([A-Z])/,"$1")}(t),e=0,i=0;i!==r.length;++i)e=26*e+r.charCodeAt(i)-64;return e-1}function Bu(t){if(t<0)throw new Error("invalid column "+t);var r="";for(++t;t;t=Math.floor((t-1)/26))r=String.fromCharCode((t-1)%26+65)+r;return r}function Kd(t){for(var r=0,e=0,i=0;i<t.length;++i){var o=t.charCodeAt(i);o>=48&&o<=57?r=10*r+(o-48):o>=65&&o<=90&&(e=26*e+(o-64))}return{c:e-1,r:r-1}}function ca(t){for(var r=t.c+1,e="";r;r=(r-1)/26|0)e=String.fromCharCode((r-1)%26+65)+e;return e+(t.r+1)}function nm(t){var r=t.indexOf(":");return-1==r?{s:Kd(t),e:Kd(t)}:{s:Kd(t.slice(0,r)),e:Kd(t.slice(r+1))}}function Na(t,r){return typeof r>"u"||"number"==typeof r?Na(t.s,t.e):("string"!=typeof t&&(t=ca(t)),"string"!=typeof r&&(r=ca(r)),t==r?t:t+":"+r)}function jl(t){var r={s:{c:0,r:0},e:{c:0,r:0}},e=0,i=0,o=0,s=t.length;for(e=0;i<s&&!((o=t.charCodeAt(i)-64)<1||o>26);++i)e=26*e+o;for(r.s.c=--e,e=0;i<s&&!((o=t.charCodeAt(i)-48)<0||o>9);++i)e=10*e+o;if(r.s.r=--e,i===s||10!=o)return r.e.c=r.s.c,r.e.r=r.s.r,r;for(++i,e=0;i!=s&&!((o=t.charCodeAt(i)-64)<1||o>26);++i)e=26*e+o;for(r.e.c=--e,e=0;i!=s&&!((o=t.charCodeAt(i)-48)<0||o>9);++i)e=10*e+o;return r.e.r=--e,r}function Ny(t,r,e){return null==t||null==t.t||"z"==t.t?"":void 0!==t.w?t.w:("d"==t.t&&!t.z&&e&&e.dateNF&&(t.z=e.dateNF),"e"==t.t?Gb[t.v]||t.v:function Aoe(t,r){var e="d"==t.t&&r instanceof Date;if(null!=t.z)try{return t.w=Tg(t.z,e?ih(r):r)}catch{}try{return t.w=Tg((t.XF||{}).numFmtId||(e?14:0),e?ih(r):r)}catch{return""+r}}(t,null==r?t.v:r))}function sT(t,r){var e=r&&r.sheet?r.sheet:"Sheet1",i={};return i[e]=t,{SheetNames:[e],Sheets:i}}function Moe(t,r,e){var i=e||{},o=t?Array.isArray(t):i.dense,s=t||(o?[]:{}),a=0,l=0;if(s&&null!=i.origin){if("number"==typeof i.origin)a=i.origin;else{var c="string"==typeof i.origin?Kd(i.origin):i.origin;a=c.r,l=c.c}s["!ref"]||(s["!ref"]="A1:A1")}var d={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(s["!ref"]){var f=jl(s["!ref"]);d.s.c=f.s.c,d.s.r=f.s.r,d.e.c=Math.max(d.e.c,f.e.c),d.e.r=Math.max(d.e.r,f.e.r),-1==a&&(d.e.r=a=f.e.r+1)}for(var v=0;v!=r.length;++v)if(r[v]){if(!Array.isArray(r[v]))throw new Error("aoa_to_sheet expects an array of arrays");for(var w=0;w!=r[v].length;++w)if(!(typeof r[v][w]>"u")){var x={v:r[v][w]},I=a+v,M=l+w;if(d.s.r>I&&(d.s.r=I),d.s.c>M&&(d.s.c=M),d.e.r<I&&(d.e.r=I),d.e.c<M&&(d.e.c=M),!r[v][w]||"object"!=typeof r[v][w]||Array.isArray(r[v][w])||r[v][w]instanceof Date)if(Array.isArray(x.v)&&(x.f=r[v][w][1],x.v=x.v[0]),null===x.v)if(x.f)x.t="n";else if(i.nullError)x.t="e",x.v=0;else{if(!i.sheetStubs)continue;x.t="z"}else"number"==typeof x.v?x.t="n":"boolean"==typeof x.v?x.t="b":x.v instanceof Date?(x.z=i.dateNF||ea[14],i.cellDates?(x.t="d",x.w=Tg(x.z,ih(x.v))):(x.t="n",x.v=ih(x.v),x.w=Tg(x.z,x.v))):x.t="s";else x=r[v][w];if(o)s[I]||(s[I]=[]),s[I][M]&&s[I][M].z&&(x.z=s[I][M].z),s[I][M]=x;else{var F=ca({c:M,r:I});s[F]&&s[F].z&&(x.z=s[F].z),s[F]=x}}}return d.s.c<1e7&&(s["!ref"]=Na(d)),s}function Uk(t,r){return Moe(null,t,r)}function n0(t,r){return r||(r=er(4)),r.write_shift(4,t),r}function Cf(t){var r=t.read_shift(4);return 0===r?"":t.read_shift(r,"dbcs")}function oh(t,r){var e=!1;return null==r&&(e=!0,r=er(4+2*t.length)),r.write_shift(4,t.length),t.length>0&&r.write_shift(0,t,"dbcs"),e?r.slice(0,r.l):r}function h6e(t){return{ich:t.read_shift(2),ifnt:t.read_shift(2)}}function VW(t,r){var e=t.l,i=t.read_shift(1),o=Cf(t),s=[],a={t:o,h:o};if(1&i){for(var l=t.read_shift(4),c=0;c!=l;++c)s.push(h6e(t));a.r=s}else a.r=[{ich:0,ifnt:0}];return t.l=e+r,a}var g6e=VW;function Nv(t){var r=t.read_shift(4),e=t.read_shift(2);return e+=t.read_shift(1)<<16,t.l++,{c:r,iStyleRef:e}}function Jx(t,r){return null==r&&(r=er(8)),r.write_shift(-4,t.c),r.write_shift(3,t.iStyleRef||t.s),r.write_shift(1,0),r}function Zx(t){var r=t.read_shift(2);return r+=t.read_shift(1)<<16,t.l++,{c:-1,iStyleRef:r}}function e2(t,r){return null==r&&(r=er(4)),r.write_shift(3,t.iStyleRef||t.s),r.write_shift(1,0),r}var _6e=Cf,Roe=oh;function jW(t){var r=t.read_shift(4);return 0===r||4294967295===r?"":t.read_shift(r,"dbcs")}function F7(t,r){var e=!1;return null==r&&(e=!0,r=er(127)),r.write_shift(4,t.length>0?t.length:4294967295),t.length>0&&r.write_shift(0,t,"dbcs"),e?r.slice(0,r.l):r}var y6e=Cf,HW=jW,UW=F7;function $W(t){var r=t.slice(t.l,t.l+4),e=1&r[0],i=2&r[0];t.l+=4;var o=0===i?O7([0,0,0,0,252&r[0],r[1],r[2],r[3]],0):Qx(r,0)>>2;return e?o/100:o}function Ooe(t,r){null==r&&(r=er(4));var e=0,i=0,o=100*t;if(t==(0|t)&&t>=-(1<<29)&&t<1<<29?i=1:o==(0|o)&&o>=-(1<<29)&&o<1<<29&&(i=1,e=1),!i)throw new Error("unsupported RkNumber "+t);r.write_shift(-4,((e?o:t)<<2)+(e+2))}function Foe(t){var r={s:{},e:{}};return r.s.r=t.read_shift(4),r.e.r=t.read_shift(4),r.s.c=t.read_shift(4),r.e.c=t.read_shift(4),r}var t2=Foe,$k=function b6e(t,r){return r||(r=er(16)),r.write_shift(4,t.s.r),r.write_shift(4,t.e.r),r.write_shift(4,t.s.c),r.write_shift(4,t.e.c),r};function wf(t){if(t.length-t.l<8)throw"XLS Xnum Buffer underflow";return t.read_shift(8,"f")}function n2(t,r){return(r||er(8)).write_shift(8,t,"f")}function P7(t,r){if(r||(r=er(8)),!t||t.auto)return r.write_shift(4,0),r.write_shift(4,0),r;null!=t.index?(r.write_shift(1,2),r.write_shift(1,t.index)):null!=t.theme?(r.write_shift(1,6),r.write_shift(1,t.theme)):(r.write_shift(1,5),r.write_shift(1,0));var e=t.tint||0;if(e>0?e*=32767:e<0&&(e*=32768),r.write_shift(2,e),t.rgb&&null==t.theme){var i=t.rgb||"FFFFFF";"number"==typeof i&&(i=("000000"+i.toString(16)).slice(-6)),r.write_shift(1,parseInt(i.slice(0,2),16)),r.write_shift(1,parseInt(i.slice(2,4),16)),r.write_shift(1,parseInt(i.slice(4,6),16)),r.write_shift(1,255)}else r.write_shift(2,0),r.write_shift(1,0),r.write_shift(1,0);return r}var WW={1:{n:"CodePage",t:2},2:{n:"Category",t:80},3:{n:"PresentationFormat",t:80},4:{n:"ByteCount",t:3},5:{n:"LineCount",t:3},6:{n:"ParagraphCount",t:3},7:{n:"SlideCount",t:3},8:{n:"NoteCount",t:3},9:{n:"HiddenCount",t:3},10:{n:"MultimediaClipCount",t:3},11:{n:"ScaleCrop",t:11},12:{n:"HeadingPairs",t:4108},13:{n:"TitlesOfParts",t:4126},14:{n:"Manager",t:80},15:{n:"Company",t:80},16:{n:"LinksUpToDate",t:11},17:{n:"CharacterCount",t:3},19:{n:"SharedDoc",t:11},22:{n:"HyperlinksChanged",t:11},23:{n:"AppVersion",t:3,p:"version"},24:{n:"DigSig",t:65},26:{n:"ContentType",t:80},27:{n:"ContentStatus",t:80},28:{n:"Language",t:80},29:{n:"Version",t:80},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},zW={1:{n:"CodePage",t:2},2:{n:"Title",t:80},3:{n:"Subject",t:80},4:{n:"Author",t:80},5:{n:"Keywords",t:80},6:{n:"Comments",t:80},7:{n:"Template",t:80},8:{n:"LastAuthor",t:80},9:{n:"RevNumber",t:80},10:{n:"EditTime",t:64},11:{n:"LastPrinted",t:64},12:{n:"CreatedDate",t:64},13:{n:"ModifiedDate",t:64},14:{n:"PageCount",t:3},15:{n:"WordCount",t:3},16:{n:"CharCount",t:3},17:{n:"Thumbnail",t:71},18:{n:"Application",t:80},19:{n:"DocSecurity",t:3},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}};function R6e(t){return t.map(function(r){return[r>>16&255,r>>8&255,255&r]})}var i2=vu(R6e([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])),Gb={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},qW={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},B7={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function Boe(t,r){var o,e=function OGe(t){for(var r=[],e=Ad(t),i=0;i!==e.length;++i)null==r[t[e[i]]]&&(r[t[e[i]]]=[]),r[t[e[i]]].push(e[i]);return r}(qW),i=[];i[i.length]=Rd,i[i.length]=so("Types",null,{xmlns:"http://schemas.openxmlformats.org/package/2006/content-types","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":up_xsi}),i=i.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map(function(c){return so("Default",null,{Extension:c[0],ContentType:c[1]})}));var s=function(c){t[c]&&t[c].length>0&&(i[i.length]=so("Override",null,{PartName:("/"==(o=t[c][0])[0]?"":"/")+o,ContentType:B7[c][r.bookType]||B7[c].xlsx}))},a=function(c){(t[c]||[]).forEach(function(d){i[i.length]=so("Override",null,{PartName:("/"==d[0]?"":"/")+d,ContentType:B7[c][r.bookType]||B7[c].xlsx})})},l=function(c){(t[c]||[]).forEach(function(d){i[i.length]=so("Override",null,{PartName:("/"==d[0]?"":"/")+d,ContentType:e[c][0]})})};return s("workbooks"),a("sheets"),a("charts"),l("themes"),["strs","styles"].forEach(s),["coreprops","extprops","custprops"].forEach(l),l("vba"),l("comments"),l("threadedcomments"),l("drawings"),a("metadata"),l("people"),i.length>2&&(i[i.length]="</Types>",i[1]=i[1].replace("/>",">")),i.join("")}var Ga={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function JO(t){var r=t.lastIndexOf("/");return t.slice(0,r+1)+"_rels/"+t.slice(r+1)+".rels"}function Yk(t){var r=[Rd,so("Relationships",null,{xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"})];return Ad(t["!id"]).forEach(function(e){r[r.length]=so("Relationship",null,t["!id"][e])}),r.length>2&&(r[r.length]="</Relationships>",r[1]=r[1].replace("/>",">")),r.join("")}function Bc(t,r,e,i,o,s){if(o||(o={}),t["!id"]||(t["!id"]={}),t["!idx"]||(t["!idx"]=1),r<0)for(r=t["!idx"];t["!id"]["rId"+r];++r);if(t["!idx"]=r+1,o.Id="rId"+r,o.Type=i,o.Target=e,s?o.TargetMode=s:[Ga.HLINK,Ga.XPATH,Ga.XMISS].indexOf(o.Type)>-1&&(o.TargetMode="External"),t["!id"][o.Id])throw new Error("Cannot rewrite rId "+r);return t["!id"][o.Id]=o,t[("/"+o.Target).replace("//","/")]=o,r}function Voe(t,r,e){return['  <rdf:Description rdf:about="'+t+'">\n','    <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(e||"odf")+"#"+r+'"/>\n',"  </rdf:Description>\n"].join("")}function B6e(t,r){return['  <rdf:Description rdf:about="'+t+'">\n','    <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+r+'"/>\n',"  </rdf:Description>\n"].join("")}function joe(){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+NO_version+"</meta:generator></office:meta></office:document-meta>"}var Bb=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]];function KW(t,r,e,i,o){null!=o[t]||null==r||""===r||(o[t]=r,r=zc(r),i[i.length]=e?so(t,r,e):Lh(t,r))}function Uoe(t,r){var e=r||{},i=[Rd,so("cp:coreProperties",null,{"xmlns:cp":"http://schemas.openxmlformats.org/package/2006/metadata/core-properties","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:dcterms":"http://purl.org/dc/terms/","xmlns:dcmitype":"http://purl.org/dc/dcmitype/","xmlns:xsi":up_xsi})],o={};if(!t&&!e.Props)return i.join("");t&&(null!=t.CreatedDate&&KW("dcterms:created","string"==typeof t.CreatedDate?t.CreatedDate:IW(t.CreatedDate,e.WTF),{"xsi:type":"dcterms:W3CDTF"},i,o),null!=t.ModifiedDate&&KW("dcterms:modified","string"==typeof t.ModifiedDate?t.ModifiedDate:IW(t.ModifiedDate,e.WTF),{"xsi:type":"dcterms:W3CDTF"},i,o));for(var s=0;s!=Bb.length;++s){var a=Bb[s],l=e.Props&&null!=e.Props[a[1]]?e.Props[a[1]]:t?t[a[1]]:null;!0===l?l="1":!1===l?l="0":"number"==typeof l&&(l=String(l)),null!=l&&KW(a[0],l,null,i,o)}return i.length>2&&(i[i.length]="</cp:coreProperties>",i[1]=i[1].replace("/>",">")),i.join("")}var r2=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],$oe=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function Woe(t){var r=[],e=so;return t||(t={}),t.Application="SheetJS",r[r.length]=Rd,r[r.length]=so("Properties",null,{xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties","xmlns:vt":up_vt}),r2.forEach(function(i){if(void 0!==t[i[1]]){var o;switch(i[2]){case"string":o=zc(String(t[i[1]]));break;case"bool":o=t[i[1]]?"true":"false"}void 0!==o&&(r[r.length]=e(i[0],o))}}),r[r.length]=e("HeadingPairs",e("vt:vector",e("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+e("vt:variant",e("vt:i4",String(t.Worksheets))),{size:2,baseType:"variant"})),r[r.length]=e("TitlesOfParts",e("vt:vector",t.SheetNames.map(function(i){return"<vt:lpstr>"+zc(i)+"</vt:lpstr>"}).join(""),{size:t.Worksheets,baseType:"lpstr"})),r.length>2&&(r[r.length]="</Properties>",r[1]=r[1].replace("/>",">")),r.join("")}function zoe(t){var r=[Rd,so("Properties",null,{xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties","xmlns:vt":up_vt})];if(!t)return r.join("");var e=1;return Ad(t).forEach(function(o){++e,r[r.length]=so("property",function JGe(t,r){switch(typeof t){case"string":var e=so("vt:lpwstr",zc(t));return r&&(e=e.replace(/&quot;/g,"_x0022_")),e;case"number":return so((0|t)==t?"vt:i4":"vt:r8",zc(String(t)));case"boolean":return so("vt:bool",t?"true":"false")}if(t instanceof Date)return so("vt:filetime",IW(t));throw new Error("Unable to serialize "+t)}(t[o],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:e,name:zc(o)})}),r.length>2&&(r[r.length]="</Properties>",r[1]=r[1].replace("/>",">")),r.join("")}var QW={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function Zoe(t,r){var e=er(4),i=er(4);switch(e.write_shift(4,80==t?31:t),t){case 3:i.write_shift(-4,r);break;case 5:(i=er(8)).write_shift(8,r,"f");break;case 11:i.write_shift(4,r?1:0);break;case 64:i=function q6e(t){var e=("string"==typeof t?new Date(Date.parse(t)):t).getTime()/1e3+11644473600,i=e%Math.pow(2,32),o=(e-i)/Math.pow(2,32);o*=1e7;var s=(i*=1e7)/Math.pow(2,32)|0;s>0&&(i%=Math.pow(2,32),o+=s);var a=er(8);return a.write_shift(4,i),a.write_shift(4,o),a}(r);break;case 31:case 80:for((i=er(4+2*(r.length+1)+(r.length%2?0:2))).write_shift(4,r.length+1),i.write_shift(0,r,"dbcs");i.l!=i.length;)i.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+t+" "+r)}return nh([e,i])}var tse=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function tBe(t){switch(typeof t){case"boolean":return 11;case"number":return(0|t)==t?3:5;case"string":return 31;case"object":if(t instanceof Date)return 64}return-1}function nse(t,r,e){var i=er(8),o=[],s=[],a=8,l=0,c=er(8),d=er(8);if(c.write_shift(4,2),c.write_shift(4,1200),d.write_shift(4,1),s.push(c),o.push(d),a+=8+c.length,!r){(d=er(8)).write_shift(4,0),o.unshift(d);var f=[er(4)];for(f[0].write_shift(4,t.length),l=0;l<t.length;++l){var v=t[l][0];for((c=er(8+2*(v.length+1)+(v.length%2?0:2))).write_shift(4,l+2),c.write_shift(4,v.length+1),c.write_shift(0,v,"dbcs");c.l!=c.length;)c.write_shift(1,0);f.push(c)}c=nh(f),s.unshift(c),a+=8+c.length}for(l=0;l<t.length;++l)if((!r||r[t[l][0]])&&!(tse.indexOf(t[l][0])>-1||$oe.indexOf(t[l][0])>-1)&&null!=t[l][1]){var w=t[l][1],x=0;if(r){var I=e[x=+r[t[l][0]]];if("version"==I.p&&"string"==typeof w){var M=w.split(".");w=(+M[0]<<16)+(+M[1]||0)}c=Zoe(I.t,w)}else{var F=tBe(w);-1==F&&(F=31,w=String(w)),c=Zoe(F,w)}s.push(c),(d=er(8)).write_shift(4,r?x:2+l),o.push(d),a+=8+c.length}var re=8*(s.length+1);for(l=0;l<s.length;++l)o[l].write_shift(4,re),re+=s[l].length;return i.write_shift(4,a),i.write_shift(4,s.length),nh([i].concat(o).concat(s))}function rse(t,r,e,i,o,s){var a=er(o?68:48),l=[a];a.write_shift(2,65534),a.write_shift(2,0),a.write_shift(4,842412599),a.write_shift(16,js.utils.consts.HEADER_CLSID,"hex"),a.write_shift(4,o?2:1),a.write_shift(16,r,"hex"),a.write_shift(4,o?68:48);var c=nse(t,e,i);if(l.push(c),o){var d=nse(o,null,null);a.write_shift(16,s,"hex"),a.write_shift(4,68+c.length),l.push(d)}return nh(l)}function im(t,r){return r||(r=er(2)),r.write_shift(2,+!!t),r}function dp(t){return t.read_shift(2,"u")}function Gv(t,r){return r||(r=er(2)),r.write_shift(2,t),r}function sse(t,r,e){return e||(e=er(2)),e.write_shift(1,"e"==r?+t:+!!t),e.write_shift(1,"e"==r?1:0),e}function eF(t,r,e){var i=t.read_shift(e&&e.biff>=12?2:1),o="sbcs-cont",s=bg;e&&e.biff>=8&&(bg=1200),e&&8!=e.biff?12==e.biff&&(o="wstr"):t.read_shift(1)&&(o="dbcs-cont"),e.biff>=2&&e.biff<=5&&(o="cpstr");var l=i?t.read_shift(i,o):"";return bg=s,l}function sBe(t){var r=t.t||"",i=er(3);i.write_shift(2,r.length),i.write_shift(1,1);var o=er(2*r.length);return o.write_shift(2*r.length,r,"utf16le"),nh([i,o])}function ase(t,r,e){return e||(e=er(3+2*t.length)),e.write_shift(2,t.length),e.write_shift(1,1),e.write_shift(31,t,"utf16le"),e}function lse(t,r){r||(r=er(6+2*t.length)),r.write_shift(4,1+t.length);for(var e=0;e<t.length;++e)r.write_shift(2,t.charCodeAt(e));return r.write_shift(2,0),r}function pBe(t){var r=er(512),e=0,i=t.Target;"file://"==i.slice(0,7)&&(i=i.slice(7));var o=i.indexOf("#"),s=o>-1?31:23;switch(i.charAt(0)){case"#":s=28;break;case".":s&=-3}r.write_shift(4,2),r.write_shift(4,s);var a=[8,6815827,6619237,4849780,83];for(e=0;e<a.length;++e)r.write_shift(4,a[e]);if(28==s)lse(i=i.slice(1),r);else if(2&s){for(a="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),e=0;e<a.length;++e)r.write_shift(1,parseInt(a[e],16));var l=o>-1?i.slice(0,o):i;for(r.write_shift(4,2*(l.length+1)),e=0;e<l.length;++e)r.write_shift(2,l.charCodeAt(e));r.write_shift(2,0),8&s&&lse(o>-1?i.slice(o+1):"",r)}else{for(a="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),e=0;e<a.length;++e)r.write_shift(1,parseInt(a[e],16));for(var c=0;"../"==i.slice(3*c,3*c+3)||"..\\"==i.slice(3*c,3*c+3);)++c;for(r.write_shift(2,c),r.write_shift(4,i.length-3*c+1),e=0;e<i.length-3*c;++e)r.write_shift(1,255&i.charCodeAt(e+3*c));for(r.write_shift(1,0),r.write_shift(2,65535),r.write_shift(2,57005),e=0;e<6;++e)r.write_shift(4,0)}return r.slice(0,r.l)}function a2(t,r,e,i){return i||(i=er(6)),i.write_shift(2,t),i.write_shift(2,r),i.write_shift(2,e||0),i}function mBe(t,r,e){var i=e.biff>8?4:2;return[t.read_shift(i),t.read_shift(i,"i"),t.read_shift(i,"i")]}function H7(t){var r=t.read_shift(2),e=t.read_shift(2);return{s:{c:t.read_shift(2),r},e:{c:t.read_shift(2),r:e}}}function pse(t,r){return r||(r=er(8)),r.write_shift(2,t.s.r),r.write_shift(2,t.e.r),r.write_shift(2,t.s.c),r.write_shift(2,t.e.c),r}function tz(t,r,e){var i=1536,o=16;switch(e.bookType){case"biff8":case"xla":break;case"biff5":i=1280,o=8;break;case"biff4":i=4,o=6;break;case"biff3":i=3,o=6;break;case"biff2":i=2,o=4;break;default:throw new Error("unsupported BIFF version")}var s=er(o);return s.write_shift(2,i),s.write_shift(2,r),o>4&&s.write_shift(2,29282),o>6&&s.write_shift(2,1997),o>8&&(s.write_shift(2,49161),s.write_shift(2,1),s.write_shift(2,1798),s.write_shift(2,0)),s}function DBe(t,r){var e=!r||r.biff>=8?2:1,i=er(8+e*t.name.length);i.write_shift(4,t.pos),i.write_shift(1,t.hs||0),i.write_shift(1,t.dt),i.write_shift(1,t.name.length),r.biff>=8&&i.write_shift(1,1),i.write_shift(e*t.name.length,t.name,r.biff<8?"sbcs":"utf16le");var o=i.slice(0,i.l);return o.l=i.l,o}function WBe(t,r,e,i){var o=e&&5==e.biff;i||(i=er(o?3+r.length:5+2*r.length)),i.write_shift(2,t),i.write_shift(o?1:2,r.length),o||i.write_shift(1,1),i.write_shift((o?1:2)*r.length,r,o?"sbcs":"utf16le");var s=i.length>i.l?i.slice(0,i.l):i;return null==s.l&&(s.l=s.length),s}function vse(t,r,e,i){var o=e&&5==e.biff;i||(i=er(o?16:20)),i.write_shift(2,0),t.style?(i.write_shift(2,t.numFmtId||0),i.write_shift(2,65524)):(i.write_shift(2,t.numFmtId||0),i.write_shift(2,r<<4));var s=0;return t.numFmtId>0&&o&&(s|=1024),i.write_shift(4,s),i.write_shift(4,0),o||i.write_shift(4,0),i.write_shift(2,0),i}function bVe(t){var r=er(24),e=Kd(t[0]);r.write_shift(2,e.r),r.write_shift(2,e.r),r.write_shift(2,e.c),r.write_shift(2,e.c);for(var i="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),o=0;o<16;++o)r.write_shift(1,parseInt(i[o],16));return nh([r,pBe(t[1])])}function wVe(t){var r=t[1].Tooltip,e=er(10+2*(r.length+1));e.write_shift(2,2048);var i=Kd(t[0]);e.write_shift(2,i.r),e.write_shift(2,i.r),e.write_shift(2,i.c),e.write_shift(2,i.c);for(var o=0;o<r.length;++o)e.write_shift(2,r.charCodeAt(o));return e.write_shift(2,0),e}var nz=function(){var t={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},r=k7({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function i(l,c){var d=c||{};d.dateNF||(d.dateNF="yyyymmdd");var f=Uk(function e(l,c){var d=[],f=eT(1);switch(c.type){case"base64":f=wg(Cg(l));break;case"binary":f=wg(l);break;case"buffer":case"array":f=l}Nh(f,0);var v=f.read_shift(1),w=!!(136&v),x=!1,I=!1;switch(v){case 2:case 3:case 131:case 139:case 245:break;case 48:case 49:x=!0,w=!0;break;case 140:I=!0;break;default:throw new Error("DBF Unsupported Version: "+v.toString(16))}var M=0,F=521;2==v&&(M=f.read_shift(2)),f.l+=3,2!=v&&(M=f.read_shift(4)),M>1048576&&(M=1e6),2!=v&&(F=f.read_shift(2));var re=f.read_shift(2),pe=c.codepage||1252;2!=v&&(f.l+=16,f.read_shift(1),0!==f[f.l]&&(pe=t[f[f.l]]),f.l+=1,f.l+=2),I&&(f.l+=36);for(var we=[],je={},tt=Math.min(f.length,2==v?521:F-10-(x?264:0)),nt=I?32:11;f.l<tt&&13!=f[f.l];)switch(je={},je.name=ql.utils.decode(pe,f.slice(f.l,f.l+nt)).replace(/[\u0000\r\n].*$/g,""),f.l+=nt,je.type=String.fromCharCode(f.read_shift(1)),2!=v&&!I&&(je.offset=f.read_shift(4)),je.len=f.read_shift(1),2==v&&(je.offset=f.read_shift(2)),je.dec=f.read_shift(1),je.name.length&&we.push(je),2!=v&&(f.l+=I?13:14),je.type){case"B":(!x||8!=je.len)&&c.WTF&&console.log("Skipping "+je.name+":"+je.type);break;case"G":case"P":c.WTF&&console.log("Skipping "+je.name+":"+je.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+je.type)}if(13!==f[f.l]&&(f.l=F-1),13!==f.read_shift(1))throw new Error("DBF Terminator not found "+f.l+" "+f[f.l]);f.l=F;var rt=0,lt=0;for(d[0]=[],lt=0;lt!=we.length;++lt)d[0][lt]=we[lt].name;for(;M-- >0;)if(42!==f[f.l])for(++f.l,d[++rt]=[],lt=0,lt=0;lt!=we.length;++lt){var bt=f.slice(f.l,f.l+we[lt].len);f.l+=we[lt].len,Nh(bt,0);var Wt=ql.utils.decode(pe,bt);switch(we[lt].type){case"C":Wt.trim().length&&(d[rt][lt]=Wt.replace(/\s+$/,""));break;case"D":d[rt][lt]=8===Wt.length?new Date(+Wt.slice(0,4),+Wt.slice(4,6)-1,+Wt.slice(6,8)):Wt;break;case"F":d[rt][lt]=parseFloat(Wt.trim());break;case"+":case"I":d[rt][lt]=I?2147483648^bt.read_shift(-4,"i"):bt.read_shift(4,"i");break;case"L":switch(Wt.trim().toUpperCase()){case"Y":case"T":d[rt][lt]=!0;break;case"N":case"F":d[rt][lt]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+Wt+"|")}break;case"M":if(!w)throw new Error("DBF Unexpected MEMO for type "+v.toString(16));d[rt][lt]="##MEMO##"+(I?parseInt(Wt.trim(),10):bt.read_shift(4));break;case"N":(Wt=Wt.replace(/\u0000/g,"").trim())&&"."!=Wt&&(d[rt][lt]=+Wt||0);break;case"@":d[rt][lt]=new Date(bt.read_shift(-8,"f")-621356832e5);break;case"T":d[rt][lt]=new Date(864e5*(bt.read_shift(4)-2440588)+bt.read_shift(4));break;case"Y":d[rt][lt]=bt.read_shift(4,"i")/1e4+bt.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":d[rt][lt]=-bt.read_shift(-8,"f");break;case"B":if(x&&8==we[lt].len){d[rt][lt]=bt.read_shift(8,"f");break}case"G":case"P":bt.l+=we[lt].len;break;case"0":if("_NullFlags"===we[lt].name)break;default:throw new Error("DBF Unsupported data type "+we[lt].type)}}else f.l+=re;if(2!=v&&f.l<f.length&&26!=f[f.l++])throw new Error("DBF EOF Marker missing "+(f.l-1)+" of "+f.length+" "+f[f.l-1].toString(16));return c&&c.sheetRows&&(d=d.slice(0,c.sheetRows)),c.DBF=we,d}(l,d),d);return f["!cols"]=d.DBF.map(function(v){return{wch:v.len,DBF:v}}),delete d.DBF,f}var s={B:8,C:250,L:1,D:8,"?":0,"":0};return{to_workbook:function o(l,c){try{return sT(i(l,c),c)}catch(d){if(c&&c.WTF)throw d}return{SheetNames:[],Sheets:{}}},to_sheet:i,from_sheet:function a(l,c){var d=c||{};if(+d.codepage>=0&&Fv(+d.codepage),"string"==d.type)throw new Error("Cannot write DBF to JS string");var f=tm(),v=tG(l,{header:1,raw:!0,cellDates:!0}),w=v[0],x=v.slice(1),I=l["!cols"]||[],M=0,F=0,re=0,pe=1;for(M=0;M<w.length;++M)if(((I[M]||{}).DBF||{}).name)w[M]=I[M].DBF.name,++re;else if(null!=w[M]){if(++re,"number"==typeof w[M]&&(w[M]=w[M].toString(10)),"string"!=typeof w[M])throw new Error("DBF Invalid column name "+w[M]+" |"+typeof w[M]+"|");if(w.indexOf(w[M])!==M)for(F=0;F<1024;++F)if(-1==w.indexOf(w[M]+"_"+F)){w[M]+="_"+F;break}}var we=jl(l["!ref"]),je=[],tt=[],nt=[];for(M=0;M<=we.e.c-we.s.c;++M){var rt="",lt="",bt=0,Wt=[];for(F=0;F<x.length;++F)null!=x[F][M]&&Wt.push(x[F][M]);if(0!=Wt.length&&null!=w[M]){for(F=0;F<Wt.length;++F){switch(typeof Wt[F]){case"number":lt="B";break;case"string":default:lt="C";break;case"boolean":lt="L";break;case"object":lt=Wt[F]instanceof Date?"D":"C"}bt=Math.max(bt,String(Wt[F]).length),rt=rt&&rt!=lt?"C":lt}bt>250&&(bt=250),"C"==(lt=((I[M]||{}).DBF||{}).type)&&I[M].DBF.len>bt&&(bt=I[M].DBF.len),"B"==rt&&"N"==lt&&(rt="N",nt[M]=I[M].DBF.dec,bt=I[M].DBF.len),tt[M]="C"==rt||"N"==lt?bt:s[rt]||0,pe+=tt[M],je[M]=rt}else je[M]="?"}var Zt=f.next(32);for(Zt.write_shift(4,318902576),Zt.write_shift(4,x.length),Zt.write_shift(2,296+32*re),Zt.write_shift(2,pe),M=0;M<4;++M)Zt.write_shift(4,0);for(Zt.write_shift(4,(+r[qx]||3)<<8),M=0,F=0;M<w.length;++M)if(null!=w[M]){var en=f.next(32),ci=(w[M].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);en.write_shift(1,ci,"sbcs"),en.write_shift(1,"?"==je[M]?"C":je[M],"sbcs"),en.write_shift(4,F),en.write_shift(1,tt[M]||s[je[M]]||0),en.write_shift(1,nt[M]||0),en.write_shift(1,2),en.write_shift(4,0),en.write_shift(1,0),en.write_shift(4,0),en.write_shift(4,0),F+=tt[M]||s[je[M]]||0}var Wi=f.next(264);for(Wi.write_shift(4,13),M=0;M<65;++M)Wi.write_shift(4,0);for(M=0;M<x.length;++M){var ki=f.next(pe);for(ki.write_shift(1,0),F=0;F<w.length;++F)if(null!=w[F])switch(je[F]){case"L":ki.write_shift(1,null==x[M][F]?63:x[M][F]?84:70);break;case"B":ki.write_shift(8,x[M][F]||0,"f");break;case"N":var Xr="0";for("number"==typeof x[M][F]&&(Xr=x[M][F].toFixed(nt[F]||0)),re=0;re<tt[F]-Xr.length;++re)ki.write_shift(1,32);ki.write_shift(1,Xr,"sbcs");break;case"D":x[M][F]?(ki.write_shift(4,("0000"+x[M][F].getFullYear()).slice(-4),"sbcs"),ki.write_shift(2,("00"+(x[M][F].getMonth()+1)).slice(-2),"sbcs"),ki.write_shift(2,("00"+x[M][F].getDate()).slice(-2),"sbcs")):ki.write_shift(8,"00000000","sbcs");break;case"C":var Lr=String(null!=x[M][F]?x[M][F]:"").slice(0,tt[F]);for(ki.write_shift(1,Lr,"sbcs"),re=0;re<tt[F]-Lr.length;++re)ki.write_shift(1,32)}}return f.next(1).write_shift(1,26),f.end()}}}(),xse=function(){var t={AA:"\xc0",BA:"\xc1",CA:"\xc2",DA:195,HA:"\xc4",JA:197,AE:"\xc8",BE:"\xc9",CE:"\xca",HE:"\xcb",AI:"\xcc",BI:"\xcd",CI:"\xce",HI:"\xcf",AO:"\xd2",BO:"\xd3",CO:"\xd4",DO:213,HO:"\xd6",AU:"\xd9",BU:"\xda",CU:"\xdb",HU:"\xdc",Aa:"\xe0",Ba:"\xe1",Ca:"\xe2",Da:227,Ha:"\xe4",Ja:229,Ae:"\xe8",Be:"\xe9",Ce:"\xea",He:"\xeb",Ai:"\xec",Bi:"\xed",Ci:"\xee",Hi:"\xef",Ao:"\xf2",Bo:"\xf3",Co:"\xf4",Do:245,Ho:"\xf6",Au:"\xf9",Bu:"\xfa",Cu:"\xfb",Hu:"\xfc",KC:"\xc7",Kc:"\xe7",q:"\xe6",z:"\u0153",a:"\xc6",j:"\u0152",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},r=new RegExp("\x1bN("+Ad(t).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),e=function(w,x){var I=t[x];return"number"==typeof I?_W(I):I},i=function(w,x,I){var M=x.charCodeAt(0)-32<<4|I.charCodeAt(0)-48;return 59==M?w:_W(M)};function s(w,x){var Zt,I=w.split(/[\n\r]+/),M=-1,F=-1,re=0,pe=0,we=[],je=[],tt=null,nt={},rt=[],lt=[],bt=[],Wt=0;for(+x.codepage>=0&&Fv(+x.codepage);re!==I.length;++re){Wt=0;var ki,en=I[re].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,i).replace(r,e),ci=en.replace(/;;/g,"\0").split(";").map(function(xn){return xn.replace(/\u0000/g,";")});if(en.length>0)switch(ci[0]){case"ID":case"E":case"B":case"O":case"W":break;case"P":"P"==ci[1].charAt(0)&&je.push(en.slice(3).replace(/;;/g,";"));break;case"C":var Xr=!1,Lr=!1,Jo=!1,cr=!1,is=-1,Ji=-1;for(pe=1;pe<ci.length;++pe)switch(ci[pe].charAt(0)){case"A":case"G":break;case"X":F=parseInt(ci[pe].slice(1))-1,Lr=!0;break;case"Y":for(M=parseInt(ci[pe].slice(1))-1,Lr||(F=0),Zt=we.length;Zt<=M;++Zt)we[Zt]=[];break;case"K":'"'===(ki=ci[pe].slice(1)).charAt(0)?ki=ki.slice(1,ki.length-1):"TRUE"===ki?ki=!0:"FALSE"===ki?ki=!1:isNaN(t0(ki))?isNaN(Vk(ki).getDate())||(ki=vd(ki)):(ki=t0(ki),null!==tt&&Gk(tt)&&(ki=TW(ki))),Xr=!0;break;case"E":cr=!0;var hn=qk(ci[pe].slice(1),{r:M,c:F});we[M][F]=[we[M][F],hn];break;case"S":Jo=!0,we[M][F]=[we[M][F],"S5S"];break;case"R":is=parseInt(ci[pe].slice(1))-1;break;case"C":Ji=parseInt(ci[pe].slice(1))-1;break;default:if(x&&x.WTF)throw new Error("SYLK bad record "+en)}if(Xr&&(we[M][F]&&2==we[M][F].length?we[M][F][0]=ki:we[M][F]=ki,tt=null),Jo){if(cr)throw new Error("SYLK shared formula cannot have own formula");var hi=is>-1&&we[is][Ji];if(!hi||!hi[1])throw new Error("SYLK shared formula cannot find base");we[M][F][1]=Wse(hi[1],{r:M-is,c:F-Ji})}break;case"F":var Tn=0;for(pe=1;pe<ci.length;++pe)switch(ci[pe].charAt(0)){case"X":F=parseInt(ci[pe].slice(1))-1,++Tn;break;case"Y":for(M=parseInt(ci[pe].slice(1))-1,Zt=we.length;Zt<=M;++Zt)we[Zt]=[];break;case"M":Wt=parseInt(ci[pe].slice(1))/20;break;case"F":case"G":case"S":case"D":case"N":break;case"P":tt=je[parseInt(ci[pe].slice(1))];break;case"W":for(bt=ci[pe].slice(1).split(" "),Zt=parseInt(bt[0],10);Zt<=parseInt(bt[1],10);++Zt)Wt=parseInt(bt[2],10),lt[Zt-1]=0===Wt?{hidden:!0}:{wch:Wt},lT(lt[Zt-1]);break;case"C":lt[F=parseInt(ci[pe].slice(1))-1]||(lt[F]={});break;case"R":rt[M=parseInt(ci[pe].slice(1))-1]||(rt[M]={}),Wt>0?(rt[M].hpt=Wt,rt[M].hpx=W7(Wt)):0===Wt&&(rt[M].hidden=!0);break;default:if(x&&x.WTF)throw new Error("SYLK bad record "+en)}Tn<1&&(tt=null);break;default:if(x&&x.WTF)throw new Error("SYLK bad record "+en)}}return rt.length>0&&(nt["!rows"]=rt),lt.length>0&&(nt["!cols"]=lt),x&&x.sheetRows&&(we=we.slice(0,x.sheetRows)),[we,nt]}function a(w,x){var I=function o(w,x){switch(x.type){case"base64":return s(Cg(w),x);case"binary":return s(w,x);case"buffer":return s(nl&&Buffer.isBuffer(w)?w.toString("binary"):tT(w),x);case"array":return s(Kx(w),x)}throw new Error("Unrecognized type "+x.type)}(w,x),F=I[1],re=Uk(I[0],x);return Ad(F).forEach(function(pe){re[pe]=F[pe]}),re}function c(w,x,I,M){var F="C;Y"+(I+1)+";X"+(M+1)+";K";switch(w.t){case"n":F+=w.v||0,w.f&&!w.F&&(F+=";E"+cz(w.f,{r:I,c:M}));break;case"b":F+=w.v?"TRUE":"FALSE";break;case"e":F+=w.w||w.v;break;case"d":F+='"'+(w.w||w.v)+'"';break;case"s":F+='"'+w.v.replace(/"/g,"").replace(/;/g,";;")+'"'}return F}return t["|"]=254,{to_workbook:function l(w,x){return sT(a(w,x),x)},to_sheet:a,from_sheet:function v(w,x){var re,I=["ID;PWXL;N;E"],M=[],F=jl(w["!ref"]),pe=Array.isArray(w),we="\r\n";I.push("P;PGeneral"),I.push("F;P0;DG0G8;M255"),w["!cols"]&&function d(w,x){x.forEach(function(I,M){var F="F;W"+(M+1)+" "+(M+1)+" ";I.hidden?F+="0":("number"==typeof I.width&&!I.wpx&&(I.wpx=iF(I.width)),"number"==typeof I.wpx&&!I.wch&&(I.wch=rF(I.wpx)),"number"==typeof I.wch&&(F+=Math.round(I.wch)))," "!=F.charAt(F.length-1)&&w.push(F)})}(I,w["!cols"]),w["!rows"]&&function f(w,x){x.forEach(function(I,M){var F="F;";I.hidden?F+="M0;":I.hpt?F+="M"+20*I.hpt+";":I.hpx&&(F+="M"+20*oF(I.hpx)+";"),F.length>2&&w.push(F+"R"+(M+1))})}(I,w["!rows"]),I.push("B;Y"+(F.e.r-F.s.r+1)+";X"+(F.e.c-F.s.c+1)+";D"+[F.s.c,F.s.r,F.e.c,F.e.r].join(" "));for(var je=F.s.r;je<=F.e.r;++je)for(var tt=F.s.c;tt<=F.e.c;++tt){var nt=ca({r:je,c:tt});(re=pe?(w[je]||[])[tt]:w[nt])&&(null!=re.v||re.f&&!re.F)&&M.push(c(re,0,je,tt))}return I.join(we)+we+M.join(we)+we+"E"+we}}}(),Ese=function(){function r(s,a){for(var l=s.split("\n"),c=-1,d=-1,f=0,v=[];f!==l.length;++f)if("BOT"!==l[f].trim()){if(!(c<0)){for(var w=l[f].trim().split(","),x=w[0],I=w[1],M=l[++f]||"";1&(M.match(/["]/g)||[]).length&&f<l.length-1;)M+="\n"+l[++f];switch(M=M.trim(),+x){case-1:if("BOT"===M){v[++c]=[],d=0;continue}if("EOD"!==M)throw new Error("Unrecognized DIF special command "+M);break;case 0:v[c][d]="TRUE"===M||"FALSE"!==M&&(isNaN(t0(I))?isNaN(Vk(I).getDate())?I:vd(I):t0(I)),++d;break;case 1:(M=(M=M.slice(1,M.length-1)).replace(/""/g,'"'))&&M.match(/^=".*"$/)&&(M=M.slice(2,-1)),v[c][d++]=""!==M?M:null}if("EOD"===M)break}}else v[++c]=[],d=0;return a&&a.sheetRows&&(v=v.slice(0,a.sheetRows)),v}function e(s,a){return Uk(function t(s,a){switch(a.type){case"base64":return r(Cg(s),a);case"binary":return r(s,a);case"buffer":return r(nl&&Buffer.isBuffer(s)?s.toString("binary"):tT(s),a);case"array":return r(Kx(s),a)}throw new Error("Unrecognized type "+a.type)}(s,a),a)}return{to_workbook:function i(s,a){return sT(e(s,a),a)},to_sheet:e,from_sheet:function(){var s=function(c,d,f,v,w){c.push(d),c.push(f+","+v),c.push('"'+w.replace(/"/g,'""')+'"')},a=function(c,d,f,v){c.push(d+","+f),c.push(1==d?'"'+v.replace(/"/g,'""')+'"':v)};return function(c){var v,d=[],f=jl(c["!ref"]),w=Array.isArray(c);s(d,"TABLE",0,1,"sheetjs"),s(d,"VECTORS",0,f.e.r-f.s.r+1,""),s(d,"TUPLES",0,f.e.c-f.s.c+1,""),s(d,"DATA",0,0,"");for(var x=f.s.r;x<=f.e.r;++x){a(d,-1,0,"BOT");for(var I=f.s.c;I<=f.e.c;++I){var M=ca({r:x,c:I});if(v=w?(c[x]||[])[I]:c[M])switch(v.t){case"n":var F=v.w;!F&&null!=v.v&&(F=v.v),null==F?a(d,1,0,v.f&&!v.F?"="+v.f:""):a(d,0,F,"V");break;case"b":a(d,0,v.v?1:0,v.v?"TRUE":"FALSE");break;case"s":a(d,1,0,isNaN(v.v)?v.v:'="'+v.v+'"');break;case"d":v.w||(v.w=Tg(v.z||ea[14],ih(vd(v.v)))),a(d,0,v.w,"V");break;default:a(d,1,0,"")}else a(d,1,0,"")}}return a(d,-1,0,"EOD"),d.join("\r\n")}}()}}(),Dse=function(){function t(v){return v.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,"\n")}function r(v){return v.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function i(v,w){return Uk(function e(v,w){for(var x=v.split("\n"),I=-1,M=-1,F=0,re=[];F!==x.length;++F){var pe=x[F].trim().split(":");if("cell"===pe[0]){var we=Kd(pe[1]);if(re.length<=we.r)for(I=re.length;I<=we.r;++I)re[I]||(re[I]=[]);switch(I=we.r,M=we.c,pe[2]){case"t":re[I][M]=t(pe[3]);break;case"v":re[I][M]=+pe[3];break;case"vtf":var je=pe[pe.length-1];case"vtc":re[I][M]="nl"===pe[3]?!!+pe[4]:+pe[4],"vtf"==pe[2]&&(re[I][M]=[re[I][M],je])}}}return w&&w.sheetRows&&(re=re.slice(0,w.sheetRows)),re}(v,w),w)}var s=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join("\n"),a=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join("\n")+"\n",l=["# SocialCalc Spreadsheet Control Save","part:sheet"].join("\n"),c="--SocialCalcSpreadsheetControlSave--";function d(v){if(!v||!v["!ref"])return"";for(var I,w=[],x=[],M="",F=nm(v["!ref"]),re=Array.isArray(v),pe=F.s.r;pe<=F.e.r;++pe)for(var we=F.s.c;we<=F.e.c;++we)if(M=ca({r:pe,c:we}),(I=re?(v[pe]||[])[we]:v[M])&&null!=I.v&&"z"!==I.t){switch(x=["cell",M,"t"],I.t){case"s":case"str":x.push(r(I.v));break;case"n":I.f?(x[2]="vtf",x[3]="n",x[4]=I.v,x[5]=r(I.f)):(x[2]="v",x[3]=I.v);break;case"b":x[2]="vt"+(I.f?"f":"c"),x[3]="nl",x[4]=I.v?"1":"0",x[5]=r(I.f||(I.v?"TRUE":"FALSE"));break;case"d":var je=ih(vd(I.v));x[2]="vtc",x[3]="nd",x[4]=""+je,x[5]=I.w||Tg(I.z||ea[14],je);break;case"e":continue}w.push(x.join(":"))}return w.push("sheet:c:"+(F.e.c-F.s.c+1)+":r:"+(F.e.r-F.s.r+1)+":tvf:1"),w.push("valueformat:1:text-wiki"),w.join("\n")}return{to_workbook:function o(v,w){return sT(i(v,w),w)},to_sheet:i,from_sheet:function f(v){return[s,a,l,a,d(v),c].join("\n")}}}(),Wk=function(){function t(f,v,w,x,I){I.raw?v[w][x]=f:""===f||(v[w][x]="TRUE"===f||"FALSE"!==f&&(isNaN(t0(f))?isNaN(Vk(f).getDate())?f:vd(f):t0(f)))}var e={44:",",9:"\t",59:";",124:"|"},i={44:3,9:2,59:1,124:0};function o(f){for(var v={},w=!1,x=0,I=0;x<f.length;++x)34==(I=f.charCodeAt(x))?w=!w:!w&&I in e&&(v[I]=(v[I]||0)+1);for(x in I=[],v)Object.prototype.hasOwnProperty.call(v,x)&&I.push([v[x],x]);if(!I.length)for(x in v=i)Object.prototype.hasOwnProperty.call(v,x)&&I.push([v[x],x]);return I.sort(function(M,F){return M[0]-F[0]||i[M[1]]-i[F[1]]}),e[I.pop()[1]]||44}function a(f,v){return!v||!v.PRN||v.FS||"sep="==f.slice(0,4)||f.indexOf("\t")>=0||f.indexOf(",")>=0||f.indexOf(";")>=0?function s(f,v){var w=v||{},x="",I=w.dense?[]:{},M={s:{c:0,r:0},e:{c:0,r:0}};"sep="==f.slice(0,4)?13==f.charCodeAt(5)&&10==f.charCodeAt(6)?(x=f.charAt(4),f=f.slice(7)):13==f.charCodeAt(5)||10==f.charCodeAt(5)?(x=f.charAt(4),f=f.slice(6)):x=o(f.slice(0,1024)):x=w&&w.FS?w.FS:o(f.slice(0,1024));var F=0,re=0,pe=0,we=0,je=0,tt=x.charCodeAt(0),nt=!1,rt=0,lt=f.charCodeAt(0);f=f.replace(/\r\n/gm,"\n");var bt=null!=w.dateNF?function kGe(t){var r="number"==typeof t?ea[t]:t;return r=r.replace(qre,"(\\d+)"),new RegExp("^"+r+"$")}(w.dateNF):null;function Wt(){var Zt=f.slice(we,je),en={};if('"'==Zt.charAt(0)&&'"'==Zt.charAt(Zt.length-1)&&(Zt=Zt.slice(1,-1).replace(/""/g,'"')),0===Zt.length)en.t="z";else if(w.raw)en.t="s",en.v=Zt;else if(0===Zt.trim().length)en.t="s",en.v=Zt;else if(61==Zt.charCodeAt(0))34==Zt.charCodeAt(1)&&34==Zt.charCodeAt(Zt.length-1)?(en.t="s",en.v=Zt.slice(2,-1).replace(/""/g,'"')):function J9e(t){return 1!=t.length}(Zt)?(en.t="n",en.f=Zt.slice(1)):(en.t="s",en.v=Zt);else if("TRUE"==Zt)en.t="b",en.v=!0;else if("FALSE"==Zt)en.t="b",en.v=!1;else if(isNaN(pe=t0(Zt)))if(!isNaN(Vk(Zt).getDate())||bt&&Zt.match(bt)){en.z=w.dateNF||ea[14];var ci=0;bt&&Zt.match(bt)&&(Zt=function IGe(t,r,e){var i=-1,o=-1,s=-1,a=-1,l=-1,c=-1;(r.match(qre)||[]).forEach(function(v,w){var x=parseInt(e[w+1],10);switch(v.toLowerCase().charAt(0)){case"y":i=x;break;case"d":s=x;break;case"h":a=x;break;case"s":c=x;break;case"m":a>=0?l=x:o=x}}),c>=0&&-1==l&&o>=0&&(l=o,o=-1);var d=(""+(i>=0?i:(new Date).getFullYear())).slice(-4)+"-"+("00"+(o>=1?o:1)).slice(-2)+"-"+("00"+(s>=1?s:1)).slice(-2);7==d.length&&(d="0"+d),8==d.length&&(d="20"+d);var f=("00"+(a>=0?a:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2)+":"+("00"+(c>=0?c:0)).slice(-2);return-1==a&&-1==l&&-1==c?d:-1==i&&-1==o&&-1==s?f:d+"T"+f}(0,w.dateNF,Zt.match(bt)||[]),ci=1),w.cellDates?(en.t="d",en.v=vd(Zt,ci)):(en.t="n",en.v=ih(vd(Zt,ci))),!1!==w.cellText&&(en.w=Tg(en.z,en.v instanceof Date?ih(en.v):en.v)),w.cellNF||delete en.z}else en.t="s",en.v=Zt;else en.t="n",!1!==w.cellText&&(en.w=Zt),en.v=pe;if("z"==en.t||(w.dense?(I[F]||(I[F]=[]),I[F][re]=en):I[ca({c:re,r:F})]=en),lt=f.charCodeAt(we=je+1),M.e.c<re&&(M.e.c=re),M.e.r<F&&(M.e.r=F),rt==tt)++re;else if(re=0,++F,w.sheetRows&&w.sheetRows<=F)return!0}e:for(;je<f.length;++je)switch(rt=f.charCodeAt(je)){case 34:34===lt&&(nt=!nt);break;case tt:case 10:case 13:if(!nt&&Wt())break e}return je-we>0&&Wt(),I["!ref"]=Na(M),I}(f,v):Uk(function r(f,v){var w=v||{},x=[];if(!f||0===f.length)return x;for(var I=f.split(/[\r\n]/),M=I.length-1;M>=0&&0===I[M].length;)--M;for(var F=10,re=0,pe=0;pe<=M;++pe)-1==(re=I[pe].indexOf(" "))?re=I[pe].length:re++,F=Math.max(F,re);for(pe=0;pe<=M;++pe){x[pe]=[];var we=0;for(t(I[pe].slice(0,F).trim(),x,pe,we,w),we=1;we<=(I[pe].length-F)/10+1;++we)t(I[pe].slice(F+10*(we-1),F+10*we).trim(),x,pe,we,w)}return w.sheetRows&&(x=x.slice(0,w.sheetRows)),x}(f,v),v)}function l(f,v){var w="",x="string"==v.type?[0,0,0,0]:function Ez(t,r){var e="";switch((r||{}).type||"base64"){case"buffer":case"array":return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]];case"base64":e=Cg(t.slice(0,12));break;case"binary":e=t;break;default:throw new Error("Unrecognized type "+(r&&r.type||"undefined"))}return[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3),e.charCodeAt(4),e.charCodeAt(5),e.charCodeAt(6),e.charCodeAt(7)]}(f,v);switch(v.type){case"base64":w=Cg(f);break;case"binary":case"string":w=f;break;case"buffer":w=65001==v.codepage?f.toString("utf8"):nl&&Buffer.isBuffer(f)?f.toString("binary"):tT(f);break;case"array":w=Kx(f);break;default:throw new Error("Unrecognized type "+v.type)}return 239==x[0]&&187==x[1]&&191==x[2]?w=Gu(w.slice(3)):"string"!=v.type&&"buffer"!=v.type&&65001==v.codepage&&(w=Gu(w)),"socialcalc:version:"==w.slice(0,19)?Dse.to_sheet("string"==v.type?w:Gu(w),v):a(w,v)}return{to_workbook:function c(f,v){return sT(l(f,v),v)},to_sheet:l,from_sheet:function d(f){for(var x,v=[],w=jl(f["!ref"]),I=Array.isArray(f),M=w.s.r;M<=w.e.r;++M){for(var F=[],re=w.s.c;re<=w.e.c;++re){var pe=ca({r:M,c:re});if((x=I?(f[M]||[])[re]:f[pe])&&null!=x.v){for(var we=(x.w||(Ny(x),x.w)||"").slice(0,10);we.length<10;)we+=" ";F.push(we+(0===re?" ":""))}else F.push("          ")}v.push(F.join(""))}return v.join("\n")}}}(),l2=function(){function t(hn,hi,Tn){if(hn){Nh(hn,hn.l||0);for(var xn=Tn.Enum||is;hn.l<hn.length;){var Xi=hn.read_shift(2),Ao=xn[Xi]||xn[65535],lo=hn.read_shift(2),co=hn.l+lo,Ar=Ao.f&&Ao.f(hn,lo,Tn);if(hn.l=co,hi(Ar,Ao,Xi))return}}}function e(hn,hi){if(!hn)return hn;var Tn=hi||{},xn=Tn.dense?[]:{},Xi="Sheet1",Ao="",lo=0,co={},Ar=[],Va=[],wn={s:{r:0,c:0},e:{r:0,c:0}},Tc=Tn.sheetRows||0;if(0==hn[2]&&(8==hn[3]||9==hn[3])&&hn.length>=16&&5==hn[14]&&108===hn[15])throw new Error("Unsupported Works 3 for Mac file");if(2==hn[2])Tn.Enum=is,t(hn,function(Go,yd,Bm){switch(Bm){case 0:Tn.vers=Go,Go>=4096&&(Tn.qpro=!0);break;case 6:wn=Go;break;case 204:Go&&(Ao=Go);break;case 222:Ao=Go;break;case 15:case 51:Tn.qpro||(Go[1].v=Go[1].v.slice(1));case 13:case 14:case 16:14==Bm&&!(112&~Go[2])&&(15&Go[2])>1&&(15&Go[2])<15&&(Go[1].z=Tn.dateNF||ea[14],Tn.cellDates&&(Go[1].t="d",Go[1].v=TW(Go[1].v))),Tn.qpro&&Go[3]>lo&&(xn["!ref"]=Na(wn),co[Xi]=xn,Ar.push(Xi),xn=Tn.dense?[]:{},wn={s:{r:0,c:0},e:{r:0,c:0}},lo=Go[3],Xi=Ao||"Sheet"+(lo+1),Ao="");var Qv=Tn.dense?(xn[Go[0].r]||[])[Go[0].c]:xn[ca(Go[0])];if(Qv){Qv.t=Go[1].t,Qv.v=Go[1].v,null!=Go[1].z&&(Qv.z=Go[1].z),null!=Go[1].f&&(Qv.f=Go[1].f);break}Tn.dense?(xn[Go[0].r]||(xn[Go[0].r]=[]),xn[Go[0].r][Go[0].c]=Go[1]):xn[ca(Go[0])]=Go[1]}},Tn);else{if(26!=hn[2]&&14!=hn[2])throw new Error("Unrecognized LOTUS BOF "+hn[2]);Tn.Enum=Ji,14==hn[2]&&(Tn.qpro=!0,hn.l=0),t(hn,function(Go,yd,Bm){switch(Bm){case 204:Xi=Go;break;case 22:Go[1].v=Go[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(Go[3]>lo&&(xn["!ref"]=Na(wn),co[Xi]=xn,Ar.push(Xi),xn=Tn.dense?[]:{},wn={s:{r:0,c:0},e:{r:0,c:0}},Xi="Sheet"+((lo=Go[3])+1)),Tc>0&&Go[0].r>=Tc)break;Tn.dense?(xn[Go[0].r]||(xn[Go[0].r]=[]),xn[Go[0].r][Go[0].c]=Go[1]):xn[ca(Go[0])]=Go[1],wn.e.c<Go[0].c&&(wn.e.c=Go[0].c),wn.e.r<Go[0].r&&(wn.e.r=Go[0].r);break;case 27:Go[14e3]&&(Va[Go[14e3][0]]=Go[14e3][1]);break;case 1537:Va[Go[0]]=Go[1],Go[0]==lo&&(Xi=Go[1])}},Tn)}if(xn["!ref"]=Na(wn),co[Ao||Xi]=xn,Ar.push(Ao||Xi),!Va.length)return{SheetNames:Ar,Sheets:co};for(var il={},Sc=[],rl=0;rl<Va.length;++rl)co[Ar[rl]]?(Sc.push(Va[rl]||Ar[rl]),il[Va[rl]]=co[Va[rl]]||co[Ar[rl]]):(Sc.push(Va[rl]),il[Va[rl]]={"!ref":"A1"});return{SheetNames:Sc,Sheets:il}}function d(hn,hi,Tn){var xn=[{c:0,r:0},{t:"n",v:0},0,0];return Tn.qpro&&20768!=Tn.vers?(xn[0].c=hn.read_shift(1),xn[3]=hn.read_shift(1),xn[0].r=hn.read_shift(2),hn.l+=2):(xn[2]=hn.read_shift(1),xn[0].c=hn.read_shift(2),xn[0].r=hn.read_shift(2)),xn}function f(hn,hi,Tn){var xn=hn.l+hi,Xi=d(hn,0,Tn);if(Xi[1].t="s",20768==Tn.vers){hn.l++;var Ao=hn.read_shift(1);return Xi[1].v=hn.read_shift(Ao,"utf8"),Xi}return Tn.qpro&&hn.l++,Xi[1].v=hn.read_shift(xn-hn.l,"cstr"),Xi}function v(hn,hi,Tn){var xn=er(7+Tn.length);xn.write_shift(1,255),xn.write_shift(2,hi),xn.write_shift(2,hn),xn.write_shift(1,39);for(var Xi=0;Xi<xn.length;++Xi){var Ao=Tn.charCodeAt(Xi);xn.write_shift(1,Ao>=128?95:Ao)}return xn.write_shift(1,0),xn}function x(hn,hi,Tn){var xn=er(7);return xn.write_shift(1,255),xn.write_shift(2,hi),xn.write_shift(2,hn),xn.write_shift(2,Tn,"i"),xn}function M(hn,hi,Tn){var xn=er(13);return xn.write_shift(1,255),xn.write_shift(2,hi),xn.write_shift(2,hn),xn.write_shift(8,Tn,"f"),xn}function re(hn,hi,Tn){var xn=32768&hi;return hi=(xn?hn:0)+((hi&=-32769)>=8192?hi-16384:hi),(xn?"":"$")+(Tn?Bu(hi):Od(hi))}var pe={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},we=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function tt(hn){var hi=[{c:0,r:0},{t:"n",v:0},0];return hi[0].r=hn.read_shift(2),hi[3]=hn[hn.l++],hi[0].c=hn[hn.l++],hi}function rt(hn,hi,Tn,xn){var Xi=er(6+xn.length);Xi.write_shift(2,hn),Xi.write_shift(1,Tn),Xi.write_shift(1,hi),Xi.write_shift(1,39);for(var Ao=0;Ao<xn.length;++Ao){var lo=xn.charCodeAt(Ao);Xi.write_shift(1,lo>=128?95:lo)}return Xi.write_shift(1,0),Xi}function bt(hn,hi){var Tn=tt(hn),xn=hn.read_shift(4),Xi=hn.read_shift(4),Ao=hn.read_shift(2);if(65535==Ao)return 0===xn&&3221225472===Xi?(Tn[1].t="e",Tn[1].v=15):0===xn&&3489660928===Xi?(Tn[1].t="e",Tn[1].v=42):Tn[1].v=0,Tn;var lo=32768&Ao;return Ao=(32767&Ao)-16446,Tn[1].v=(1-2*lo)*(Xi*Math.pow(2,Ao+32)+xn*Math.pow(2,Ao)),Tn}function Wt(hn,hi,Tn,xn){var Xi=er(14);if(Xi.write_shift(2,hn),Xi.write_shift(1,Tn),Xi.write_shift(1,hi),0==xn)return Xi.write_shift(4,0),Xi.write_shift(4,0),Xi.write_shift(2,65535),Xi;var Ao=0,lo=0,Ar=0;return xn<0&&(Ao=1,xn=-xn),lo=0|Math.log2(xn),2147483648&(Ar=(xn/=Math.pow(2,lo-31))>>>0)||(++lo,Ar=(xn/=2)>>>0),xn-=Ar,Ar|=2147483648,Ar>>>=0,xn*=Math.pow(2,32),Xi.write_shift(4,xn>>>0),Xi.write_shift(4,Ar),Xi.write_shift(2,lo+=16383+(Ao?32768:0)),Xi}function ci(hn,hi){var Tn=tt(hn),xn=hn.read_shift(8,"f");return Tn[1].v=xn,Tn}function ki(hn,hi){return 0==hn[hn.l+hi-1]?hn.read_shift(hi,"cstr"):""}function cr(hn,hi){var Tn=er(5+hn.length);Tn.write_shift(2,14e3),Tn.write_shift(2,hi);for(var xn=0;xn<hn.length;++xn){var Xi=hn.charCodeAt(xn);Tn[Tn.l++]=Xi>127?95:Xi}return Tn[Tn.l++]=0,Tn}var is={0:{n:"BOF",f:dp},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:function l(hn,hi,Tn){var xn={s:{c:0,r:0},e:{c:0,r:0}};return 8==hi&&Tn.qpro?(xn.s.c=hn.read_shift(1),hn.l++,xn.s.r=hn.read_shift(2),xn.e.c=hn.read_shift(1),hn.l++,xn.e.r=hn.read_shift(2),xn):(xn.s.c=hn.read_shift(2),xn.s.r=hn.read_shift(2),12==hi&&Tn.qpro&&(hn.l+=2),xn.e.c=hn.read_shift(2),xn.e.r=hn.read_shift(2),12==hi&&Tn.qpro&&(hn.l+=2),65535==xn.s.c&&(xn.s.c=xn.e.c=xn.s.r=xn.e.r=0),xn)}},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:function w(hn,hi,Tn){var xn=d(hn,0,Tn);return xn[1].v=hn.read_shift(2,"i"),xn}},14:{n:"NUMBER",f:function I(hn,hi,Tn){var xn=d(hn,0,Tn);return xn[1].v=hn.read_shift(8,"f"),xn}},15:{n:"LABEL",f},16:{n:"FORMULA",f:function F(hn,hi,Tn){var xn=hn.l+hi,Xi=d(hn,0,Tn);if(Xi[1].v=hn.read_shift(8,"f"),Tn.qpro)hn.l=xn;else{var Ao=hn.read_shift(2);(function je(hn,hi){Nh(hn,0);for(var Tn=[],xn=0,Xi="",Ao="",lo="",co="";hn.l<hn.length;){var Ar=hn[hn.l++];switch(Ar){case 0:Tn.push(hn.read_shift(8,"f"));break;case 1:Ao=re(hi[0].c,hn.read_shift(2),!0),Xi=re(hi[0].r,hn.read_shift(2),!1),Tn.push(Ao+Xi);break;case 2:var Va=re(hi[0].c,hn.read_shift(2),!0),wn=re(hi[0].r,hn.read_shift(2),!1);Ao=re(hi[0].c,hn.read_shift(2),!0),Xi=re(hi[0].r,hn.read_shift(2),!1),Tn.push(Va+wn+":"+Ao+Xi);break;case 3:if(hn.l<hn.length)return void console.error("WK1 premature formula end");break;case 4:Tn.push("("+Tn.pop()+")");break;case 5:Tn.push(hn.read_shift(2));break;case 6:for(var Tc="";Ar=hn[hn.l++];)Tc+=String.fromCharCode(Ar);Tn.push('"'+Tc.replace(/"/g,'""')+'"');break;case 8:Tn.push("-"+Tn.pop());break;case 23:Tn.push("+"+Tn.pop());break;case 22:Tn.push("NOT("+Tn.pop()+")");break;case 20:case 21:co=Tn.pop(),lo=Tn.pop(),Tn.push(["AND","OR"][Ar-20]+"("+lo+","+co+")");break;default:if(Ar<32&&we[Ar])co=Tn.pop(),lo=Tn.pop(),Tn.push(lo+we[Ar]+co);else{if(!pe[Ar])return Ar<=7?console.error("WK1 invalid opcode "+Ar.toString(16)):Ar<=24?console.error("WK1 unsupported op "+Ar.toString(16)):Ar<=30?console.error("WK1 invalid opcode "+Ar.toString(16)):Ar<=115?console.error("WK1 unsupported function opcode "+Ar.toString(16)):console.error("WK1 unrecognized opcode "+Ar.toString(16));if(69==(xn=pe[Ar][1])&&(xn=hn[hn.l++]),xn>Tn.length)return void console.error("WK1 bad formula parse 0x"+Ar.toString(16)+":|"+Tn.join("|")+"|");var il=Tn.slice(-xn);Tn.length-=xn,Tn.push(pe[Ar][0]+"("+il.join(",")+")")}}}1==Tn.length?hi[1].f=""+Tn[0]:console.error("WK1 bad formula parse |"+Tn.join("|")+"|")})(hn.slice(hn.l,hn.l+Ao),Xi),hn.l+=Ao}return Xi}},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:ki},222:{n:"SHEETNAMELP",f:function Xr(hn,hi){var Tn=hn[hn.l++];Tn>hi-1&&(Tn=hi-1);for(var xn="";xn.length<Tn;)xn+=String.fromCharCode(hn[hn.l++]);return xn}},65535:{n:""}},Ji={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:function nt(hn,hi){var Tn=tt(hn);return Tn[1].t="s",Tn[1].v=hn.read_shift(hi-4,"cstr"),Tn}},23:{n:"NUMBER17",f:bt},24:{n:"NUMBER18",f:function lt(hn,hi){var Tn=tt(hn);Tn[1].v=hn.read_shift(2);var xn=Tn[1].v>>1;if(1&Tn[1].v)switch(7&xn){case 0:xn=5e3*(xn>>3);break;case 1:xn=500*(xn>>3);break;case 2:xn=(xn>>3)/20;break;case 3:xn=(xn>>3)/200;break;case 4:xn=(xn>>3)/2e3;break;case 5:xn=(xn>>3)/2e4;break;case 6:xn=(xn>>3)/16;break;case 7:xn=(xn>>3)/64}return Tn[1].v=xn,Tn}},25:{n:"FORMULA19",f:function Zt(hn,hi){var Tn=bt(hn);return hn.l+=hi-14,Tn}},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:function Jo(hn,hi){for(var Tn={},xn=hn.l+hi;hn.l<xn;){var Xi=hn.read_shift(2);if(14e3==Xi){for(Tn[Xi]=[0,""],Tn[Xi][0]=hn.read_shift(2);hn[hn.l];)Tn[Xi][1]+=String.fromCharCode(hn[hn.l]),hn.l++;hn.l++}}return Tn}},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:function en(hn,hi){var Tn=tt(hn),xn=hn.read_shift(4);return Tn[1].v=xn>>6,Tn}},38:{n:"??"},39:{n:"NUMBER27",f:ci},40:{n:"FORMULA28",f:function Wi(hn,hi){var Tn=ci(hn);return hn.l+=hi-10,Tn}},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:ki},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:function Lr(hn,hi,Tn){if(Tn.qpro&&!(hi<21)){var xn=hn.read_shift(1);return hn.l+=17,hn.l+=1,hn.l+=2,[xn,hn.read_shift(hi-21,"cstr")]}}},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:function i(hn,hi){var Tn=hi||{};if(+Tn.codepage>=0&&Fv(+Tn.codepage),"string"==Tn.type)throw new Error("Cannot write WK1 to JS string");var xn=tm(),Xi=jl(hn["!ref"]),Ao=Array.isArray(hn),lo=[];vo(xn,0,function s(hn){var hi=er(2);return hi.write_shift(2,hn),hi}(1030)),vo(xn,6,function c(hn){var hi=er(8);return hi.write_shift(2,hn.s.c),hi.write_shift(2,hn.s.r),hi.write_shift(2,hn.e.c),hi.write_shift(2,hn.e.r),hi}(Xi));for(var co=Math.min(Xi.e.r,8191),Ar=Xi.s.r;Ar<=co;++Ar)for(var Va=Od(Ar),wn=Xi.s.c;wn<=Xi.e.c;++wn){Ar===Xi.s.r&&(lo[wn]=Bu(wn));var il=Ao?(hn[Ar]||[])[wn]:hn[lo[wn]+Va];il&&"z"!=il.t&&("n"==il.t?(0|il.v)==il.v&&il.v>=-32768&&il.v<=32767?vo(xn,13,x(Ar,wn,il.v)):vo(xn,14,M(Ar,wn,il.v)):vo(xn,15,v(Ar,wn,Ny(il).slice(0,239))))}return vo(xn,1),xn.end()},book_to_wk3:function o(hn,hi){var Tn=hi||{};if(+Tn.codepage>=0&&Fv(+Tn.codepage),"string"==Tn.type)throw new Error("Cannot write WK3 to JS string");var xn=tm();vo(xn,0,function a(hn){var hi=er(26);hi.write_shift(2,4096),hi.write_shift(2,4),hi.write_shift(4,0);for(var Tn=0,xn=0,Xi=0,Ao=0;Ao<hn.SheetNames.length;++Ao){var co=hn.Sheets[hn.SheetNames[Ao]];if(co&&co["!ref"]){++Xi;var Ar=nm(co["!ref"]);Tn<Ar.e.r&&(Tn=Ar.e.r),xn<Ar.e.c&&(xn=Ar.e.c)}}return Tn>8191&&(Tn=8191),hi.write_shift(2,Tn),hi.write_shift(1,Xi),hi.write_shift(1,xn),hi.write_shift(2,0),hi.write_shift(2,0),hi.write_shift(1,1),hi.write_shift(1,2),hi.write_shift(4,0),hi.write_shift(4,0),hi}(hn));for(var Xi=0,Ao=0;Xi<hn.SheetNames.length;++Xi)(hn.Sheets[hn.SheetNames[Xi]]||{})["!ref"]&&vo(xn,27,cr(hn.SheetNames[Xi],Ao++));var lo=0;for(Xi=0;Xi<hn.SheetNames.length;++Xi){var co=hn.Sheets[hn.SheetNames[Xi]];if(co&&co["!ref"]){for(var Ar=jl(co["!ref"]),Va=Array.isArray(co),wn=[],Tc=Math.min(Ar.e.r,8191),il=Ar.s.r;il<=Tc;++il)for(var Sc=Od(il),rl=Ar.s.c;rl<=Ar.e.c;++rl){il===Ar.s.r&&(wn[rl]=Bu(rl));var yd=Va?(co[il]||[])[rl]:co[wn[rl]+Sc];yd&&"z"!=yd.t&&("n"==yd.t?vo(xn,23,Wt(il,rl,lo,yd.v)):vo(xn,22,rt(il,rl,lo,Ny(yd).slice(0,239))))}++lo}}return vo(xn,1),xn.end()},to_workbook:function r(hn,hi){switch(hi.type){case"base64":return e(wg(Cg(hn)),hi);case"binary":return e(wg(hn),hi);case"buffer":case"array":return e(hn,hi)}throw"Unsupported type "+hi.type}}}(),tje=/^\s|\s$|[\t\n\r]/;function Ise(t,r){if(!r.bookSST)return"";var e=[Rd];e[e.length]=so("sst",null,{xmlns:oT[0],count:t.Count,uniqueCount:t.Unique});for(var i=0;i!=t.length;++i)if(null!=t[i]){var o=t[i],s="<si>";o.r?s+=o.r:(s+="<t",o.t||(o.t=""),o.t.match(tje)&&(s+=' xml:space="preserve"'),s+=">"+zc(o.t)+"</t>"),e[e.length]=s+="</si>"}return e.length>2&&(e[e.length]="</sst>",e[1]=e[1].replace("/>",">")),e.join("")}var oje=function m6e(t,r){var e=!1;return null==r&&(e=!0,r=er(15+4*t.t.length)),r.write_shift(1,0),oh(t.t,r),e?r.slice(0,r.l):r};function sje(t){var r=tm();Ir(r,159,function rje(t,r){return r||(r=er(8)),r.write_shift(4,t.Count),r.write_shift(4,t.Unique),r}(t));for(var e=0;e<t.length;++e)Ir(r,19,oje(t[e]));return Ir(r,160),r.end()}function iz(t){var e,s,r=0,i=function Ase(t){for(var r=[],e=t.split(""),i=0;i<e.length;++i)r[i]=e[i].charCodeAt(0);return r}(t),o=i.length+1;for((e=eT(o))[0]=i.length,s=1;s!=o;++s)e[s]=i[s-1];for(s=o-1;s>=0;--s)r=((16384&r?1:0)|r<<1&32767)^e[s];return 52811^r}var Fse=function(){function t(o,s){switch(s.type){case"base64":return r(Cg(o),s);case"binary":return r(o,s);case"buffer":return r(nl&&Buffer.isBuffer(o)?o.toString("binary"):tT(o),s);case"array":return r(Kx(o),s)}throw new Error("Unrecognized type "+s.type)}function r(o,s){var l=(s||{}).dense?[]:{},c=o.match(/\\trowd.*?\\row\b/g);if(!c.length)throw new Error("RTF missing table");var d={s:{c:0,r:0},e:{c:0,r:c.length-1}};return c.forEach(function(f,v){Array.isArray(l)&&(l[v]=[]);for(var I,w=/\\\w+\b/g,x=0,M=-1;I=w.exec(f);){if("\\cell"===I[0]){var F=f.slice(x,w.lastIndex-I[0].length);if(" "==F[0]&&(F=F.slice(1)),++M,F.length){var re={v:F,t:"s"};Array.isArray(l)?l[v][M]=re:l[ca({r:v,c:M})]=re}}x=w.lastIndex}M>d.e.c&&(d.e.c=M)}),l["!ref"]=Na(d),l}return{to_workbook:function e(o,s){return sT(t(o,s),s)},to_sheet:t,from_sheet:function i(o){for(var l,s=["{\\rtf1\\ansi"],a=jl(o["!ref"]),c=Array.isArray(o),d=a.s.r;d<=a.e.r;++d){s.push("\\trowd\\trautofit1");for(var f=a.s.c;f<=a.e.c;++f)s.push("\\cellx"+(f+1));for(s.push("\\pard\\intbl"),f=a.s.c;f<=a.e.c;++f){var v=ca({r:d,c:f});(l=c?(o[d]||[])[f]:o[v])&&(null!=l.v||l.f&&!l.F)&&(s.push(" "+(l.w||(Ny(l),l.w))),s.push("\\cell"))}s.push("\\pard\\intbl\\row")}return s.join("")+"}"}}}();function nF(t){for(var r=0,e=1;3!=r;++r)e=256*e+(t[r]>255?255:t[r]<0?0:t[r]);return e.toString(16).toUpperCase().slice(1)}var Sf=6;function iF(t){return Math.floor((t+Math.round(128/Sf)/256)*Sf)}function rF(t){return Math.floor((t-5)/Sf*100+.5)/100}function Y7(t){return Math.round((t*Sf+5)/Sf*256)/256}function lT(t){t.width?(t.wpx=iF(t.width),t.wch=rF(t.wpx),t.MDW=Sf):t.wpx?(t.wch=rF(t.wpx),t.width=Y7(t.wch),t.MDW=Sf):"number"==typeof t.wch&&(t.width=Y7(t.wch),t.wpx=iF(t.width),t.MDW=Sf),t.customWidth&&delete t.customWidth}var Lse=96;function oF(t){return 96*t/Lse}function W7(t){return t*Lse/96}function Nse(t,r){var i,e=[Rd,so("styleSheet",null,{xmlns:oT[0],"xmlns:vt":up_vt})];return t.SSF&&null!=(i=function Mje(t){var r=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(e){for(var i=e[0];i<=e[1];++i)null!=t[i]&&(r[r.length]=so("numFmt",null,{numFmtId:i,formatCode:zc(t[i])}))}),1===r.length?"":(r[r.length]="</numFmts>",r[0]=so("numFmts",null,{count:r.length-2}).replace("/>",">"),r.join(""))}(t.SSF))&&(e[e.length]=i),e[e.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',e[e.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',e[e.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',e[e.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(i=function Rje(t){var r=[];return r[r.length]=so("cellXfs",null),t.forEach(function(e){r[r.length]=so("xf",null,e)}),r[r.length]="</cellXfs>",2===r.length?"":(r[0]=so("cellXfs",null,{count:r.length-2}).replace("/>",">"),r.join(""))}(r.cellXfs))&&(e[e.length]=i),e[e.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',e[e.length]='<dxfs count="0"/>',e[e.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',e.length>2&&(e[e.length]="</styleSheet>",e[1]=e[1].replace("/>",">")),e.join("")}function Pje(t,r,e){e||(e=er(6+4*r.length)),e.write_shift(2,t),oh(r,e);var i=e.length>e.l?e.slice(0,e.l):e;return null==e.l&&(e.l=e.length),i}var sz,Gje=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],Bje=bf;function Gse(t,r){r||(r=er(84)),sz||(sz=k7(Gje));var e=sz[t.patternType];null==e&&(e=40),r.write_shift(4,e);var i=0;if(40!=e)for(P7({auto:1},r),P7({auto:1},r);i<12;++i)r.write_shift(4,0);else{for(;i<4;++i)r.write_shift(4,0);for(;i<12;++i)r.write_shift(4,0)}return r.length>r.l?r.slice(0,r.l):r}function Bse(t,r,e){return e||(e=er(16)),e.write_shift(2,r||0),e.write_shift(2,t.numFmtId||0),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(1,0),e}function sF(t,r){return r||(r=er(10)),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(4,0),r.write_shift(4,0),r}var jje=bf;function t9e(t,r){var e=tm();return Ir(e,278),function Wje(t,r){if(r){var e=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(i){for(var o=i[0];o<=i[1];++o)null!=r[o]&&++e}),0!=e&&(Ir(t,615,n0(e)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(i){for(var o=i[0];o<=i[1];++o)null!=r[o]&&Ir(t,44,Pje(o,r[o]))}),Ir(t,616))}}(e,t.SSF),function zje(t){Ir(t,611,n0(1)),Ir(t,43,function Nje(t,r){r||(r=er(153)),r.write_shift(2,20*t.sz),function T6e(t,r){r||(r=er(2)),r.write_shift(1,(t.italic?2:0)|(t.strike?8:0)|(t.outline?16:0)|(t.shadow?32:0)|(t.condense?64:0)|(t.extend?128:0)),r.write_shift(1,0)}(t,r),r.write_shift(2,t.bold?700:400);var e=0;"superscript"==t.vertAlign?e=1:"subscript"==t.vertAlign&&(e=2),r.write_shift(2,e),r.write_shift(1,t.underline||0),r.write_shift(1,t.family||0),r.write_shift(1,t.charset||0),r.write_shift(1,0),P7(t.color,r);var i=0;return"major"==t.scheme&&(i=1),"minor"==t.scheme&&(i=2),r.write_shift(1,i),oh(t.name,r),r.length>r.l?r.slice(0,r.l):r}({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),Ir(t,612)}(e),function qje(t){Ir(t,603,n0(2)),Ir(t,45,Gse({patternType:"none"})),Ir(t,45,Gse({patternType:"gray125"})),Ir(t,604)}(e),function Xje(t){Ir(t,613,n0(1)),Ir(t,46,function Hje(t,r){return r||(r=er(51)),r.write_shift(1,0),sF(0,r),sF(0,r),sF(0,r),sF(0,r),sF(0,r),r.length>r.l?r.slice(0,r.l):r}()),Ir(t,614)}(e),function Kje(t){Ir(t,626,n0(1)),Ir(t,47,Bse({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),Ir(t,627)}(e),function Qje(t,r){Ir(t,617,n0(r.length)),r.forEach(function(e){Ir(t,47,Bse(e,0))}),Ir(t,618)}(e,r.cellXfs),function Jje(t){Ir(t,619,n0(1)),Ir(t,48,function Uje(t,r){return r||(r=er(52)),r.write_shift(4,t.xfId),r.write_shift(2,1),r.write_shift(1,+t.builtinId),r.write_shift(1,0),F7(t.name||"",r),r.length>r.l?r.slice(0,r.l):r}({xfId:0,builtinId:0,name:"Normal"})),Ir(t,620)}(e),function Zje(t){Ir(t,505,n0(0)),Ir(t,506)}(e),function e9e(t){Ir(t,508,function $je(t,r,e){var i=er(2052);return i.write_shift(4,t),F7(r,i),F7(e,i),i.length>i.l?i.slice(0,i.l):i}(0,"TableStyleMedium9","PivotStyleMedium4")),Ir(t,509)}(e),Ir(e,279),e.end()}function az(t,r){if(r&&r.themeXLSX)return r.themeXLSX;if(t&&"string"==typeof t.raw)return t.raw;var e=[Rd];return e[e.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',e[e.length]="<a:themeElements>",e[e.length]='<a:clrScheme name="Office">',e[e.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',e[e.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',e[e.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',e[e.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',e[e.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',e[e.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',e[e.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',e[e.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',e[e.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',e[e.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',e[e.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',e[e.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',e[e.length]="</a:clrScheme>",e[e.length]='<a:fontScheme name="Office">',e[e.length]="<a:majorFont>",e[e.length]='<a:latin typeface="Cambria"/>',e[e.length]='<a:ea typeface=""/>',e[e.length]='<a:cs typeface=""/>',e[e.length]='<a:font script="Jpan" typeface="\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"/>',e[e.length]='<a:font script="Hang" typeface="\ub9d1\uc740 \uace0\ub515"/>',e[e.length]='<a:font script="Hans" typeface="\u5b8b\u4f53"/>',e[e.length]='<a:font script="Hant" typeface="\u65b0\u7d30\u660e\u9ad4"/>',e[e.length]='<a:font script="Arab" typeface="Times New Roman"/>',e[e.length]='<a:font script="Hebr" typeface="Times New Roman"/>',e[e.length]='<a:font script="Thai" typeface="Tahoma"/>',e[e.length]='<a:font script="Ethi" typeface="Nyala"/>',e[e.length]='<a:font script="Beng" typeface="Vrinda"/>',e[e.length]='<a:font script="Gujr" typeface="Shruti"/>',e[e.length]='<a:font script="Khmr" typeface="MoolBoran"/>',e[e.length]='<a:font script="Knda" typeface="Tunga"/>',e[e.length]='<a:font script="Guru" typeface="Raavi"/>',e[e.length]='<a:font script="Cans" typeface="Euphemia"/>',e[e.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',e[e.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',e[e.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',e[e.length]='<a:font script="Thaa" typeface="MV Boli"/>',e[e.length]='<a:font script="Deva" typeface="Mangal"/>',e[e.length]='<a:font script="Telu" typeface="Gautami"/>',e[e.length]='<a:font script="Taml" typeface="Latha"/>',e[e.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',e[e.length]='<a:font script="Orya" typeface="Kalinga"/>',e[e.length]='<a:font script="Mlym" typeface="Kartika"/>',e[e.length]='<a:font script="Laoo" typeface="DokChampa"/>',e[e.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',e[e.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',e[e.length]='<a:font script="Viet" typeface="Times New Roman"/>',e[e.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',e[e.length]='<a:font script="Geor" typeface="Sylfaen"/>',e[e.length]="</a:majorFont>",e[e.length]="<a:minorFont>",e[e.length]='<a:latin typeface="Calibri"/>',e[e.length]='<a:ea typeface=""/>',e[e.length]='<a:cs typeface=""/>',e[e.length]='<a:font script="Jpan" typeface="\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"/>',e[e.length]='<a:font script="Hang" typeface="\ub9d1\uc740 \uace0\ub515"/>',e[e.length]='<a:font script="Hans" typeface="\u5b8b\u4f53"/>',e[e.length]='<a:font script="Hant" typeface="\u65b0\u7d30\u660e\u9ad4"/>',e[e.length]='<a:font script="Arab" typeface="Arial"/>',e[e.length]='<a:font script="Hebr" typeface="Arial"/>',e[e.length]='<a:font script="Thai" typeface="Tahoma"/>',e[e.length]='<a:font script="Ethi" typeface="Nyala"/>',e[e.length]='<a:font script="Beng" typeface="Vrinda"/>',e[e.length]='<a:font script="Gujr" typeface="Shruti"/>',e[e.length]='<a:font script="Khmr" typeface="DaunPenh"/>',e[e.length]='<a:font script="Knda" typeface="Tunga"/>',e[e.length]='<a:font script="Guru" typeface="Raavi"/>',e[e.length]='<a:font script="Cans" typeface="Euphemia"/>',e[e.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',e[e.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',e[e.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',e[e.length]='<a:font script="Thaa" typeface="MV Boli"/>',e[e.length]='<a:font script="Deva" typeface="Mangal"/>',e[e.length]='<a:font script="Telu" typeface="Gautami"/>',e[e.length]='<a:font script="Taml" typeface="Latha"/>',e[e.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',e[e.length]='<a:font script="Orya" typeface="Kalinga"/>',e[e.length]='<a:font script="Mlym" typeface="Kartika"/>',e[e.length]='<a:font script="Laoo" typeface="DokChampa"/>',e[e.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',e[e.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',e[e.length]='<a:font script="Viet" typeface="Arial"/>',e[e.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',e[e.length]='<a:font script="Geor" typeface="Sylfaen"/>',e[e.length]="</a:minorFont>",e[e.length]="</a:fontScheme>",e[e.length]='<a:fmtScheme name="Office">',e[e.length]="<a:fillStyleLst>",e[e.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',e[e.length]='<a:gradFill rotWithShape="1">',e[e.length]="<a:gsLst>",e[e.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',e[e.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',e[e.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',e[e.length]="</a:gsLst>",e[e.length]='<a:lin ang="16200000" scaled="1"/>',e[e.length]="</a:gradFill>",e[e.length]='<a:gradFill rotWithShape="1">',e[e.length]="<a:gsLst>",e[e.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',e[e.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',e[e.length]="</a:gsLst>",e[e.length]='<a:lin ang="16200000" scaled="0"/>',e[e.length]="</a:gradFill>",e[e.length]="</a:fillStyleLst>",e[e.length]="<a:lnStyleLst>",e[e.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',e[e.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',e[e.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',e[e.length]="</a:lnStyleLst>",e[e.length]="<a:effectStyleLst>",e[e.length]="<a:effectStyle>",e[e.length]="<a:effectLst>",e[e.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',e[e.length]="</a:effectLst>",e[e.length]="</a:effectStyle>",e[e.length]="<a:effectStyle>",e[e.length]="<a:effectLst>",e[e.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',e[e.length]="</a:effectLst>",e[e.length]="</a:effectStyle>",e[e.length]="<a:effectStyle>",e[e.length]="<a:effectLst>",e[e.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',e[e.length]="</a:effectLst>",e[e.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',e[e.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',e[e.length]="</a:effectStyle>",e[e.length]="</a:effectStyleLst>",e[e.length]="<a:bgFillStyleLst>",e[e.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',e[e.length]='<a:gradFill rotWithShape="1">',e[e.length]="<a:gsLst>",e[e.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',e[e.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',e[e.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',e[e.length]="</a:gsLst>",e[e.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',e[e.length]="</a:gradFill>",e[e.length]='<a:gradFill rotWithShape="1">',e[e.length]="<a:gsLst>",e[e.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',e[e.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',e[e.length]="</a:gsLst>",e[e.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',e[e.length]="</a:gradFill>",e[e.length]="</a:bgFillStyleLst>",e[e.length]="</a:fmtScheme>",e[e.length]="</a:themeElements>",e[e.length]="<a:objectDefaults>",e[e.length]="<a:spDef>",e[e.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',e[e.length]="</a:spDef>",e[e.length]="<a:lnDef>",e[e.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',e[e.length]="</a:lnDef>",e[e.length]="</a:objectDefaults>",e[e.length]="<a:extraClrSchemeLst/>",e[e.length]="</a:theme>",e.join("")}function D9e(){var t=tm();return Ir(t,332),Ir(t,334,n0(1)),Ir(t,335,function b9e(t){var r=er(12+2*t.name.length);return r.write_shift(4,t.flags),r.write_shift(4,t.version),oh(t.name,r),r.slice(0,r.l)}({name:"XLDAPR",version:12e4,flags:3496657072})),Ir(t,336),Ir(t,339,function T9e(t,r){var e=er(8+2*r.length);return e.write_shift(4,t),oh(r,e),e.slice(0,e.l)}(1,"XLDAPR")),Ir(t,52),Ir(t,35,n0(514)),Ir(t,4096,n0(0)),Ir(t,4097,Gv(1)),Ir(t,36),Ir(t,53),Ir(t,340),Ir(t,337,function x9e(t,r){var e=er(8);return e.write_shift(4,t),e.write_shift(4,r?1:0),e}(1,!0)),Ir(t,51,function w9e(t){var r=er(4+8*t.length);r.write_shift(4,t.length);for(var e=0;e<t.length;++e)r.write_shift(4,t[e][0]),r.write_shift(4,t[e][1]);return r}([[1,0]])),Ir(t,338),Ir(t,333),t.end()}function jse(){var t=[Rd];return t.push('<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray">\n  <metadataTypes count="1">\n    <metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/>\n  </metadataTypes>\n  <futureMetadata name="XLDAPR" count="1">\n    <bk>\n      <extLst>\n        <ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}">\n          <xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/>\n        </ext>\n      </extLst>\n    </bk>\n  </futureMetadata>\n  <cellMetadata count="1">\n    <bk>\n      <rc t="1" v="0"/>\n    </bk>\n  </cellMetadata>\n</metadata>'),t.join("")}var zk=1024;function Hse(t,r){for(var e=[21600,21600],i=["m0,0l0",e[1],e[0],e[1],e[0],"0xe"].join(","),o=[so("xml",null,{"xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:o":xg_o,"xmlns:x":xg_x,"xmlns:mv":"http://macVmlSchemaUri"}).replace(/\/>/,">"),so("o:shapelayout",so("o:idmap",null,{"v:ext":"edit",data:t}),{"v:ext":"edit"}),so("v:shapetype",[so("v:stroke",null,{joinstyle:"miter"}),so("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:e.join(","),path:i})];zk<1e3*t;)zk+=1e3;return r.forEach(function(s){var a=Kd(s[0]),l={color2:"#BEFF82",type:"gradient"};"gradient"==l.type&&(l.angle="-180");var c="gradient"==l.type?so("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,d=so("v:fill",c,l);++zk,o=o.concat(["<v:shape"+zO({id:"_x0000_s"+zk,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(s[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",d,so("v:shadow",null,{on:"t",obscured:"t"}),so("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",Lh("x:Anchor",[a.c+1,0,a.r+1,0,a.c+3,20,a.r+5,20].join(",")),Lh("x:AutoFill","False"),Lh("x:Row",String(a.r)),Lh("x:Column",String(a.c)),s[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),o.push("</xml>"),o.join("")}function $se(t){var r=[Rd,so("comments",null,{xmlns:oT[0]})],e=[];return r.push("<authors>"),t.forEach(function(i){i[1].forEach(function(o){var s=zc(o.a);-1==e.indexOf(s)&&(e.push(s),r.push("<author>"+s+"</author>")),o.T&&o.ID&&-1==e.indexOf("tc="+o.ID)&&(e.push("tc="+o.ID),r.push("<author>tc="+o.ID+"</author>"))})}),0==e.length&&(e.push("SheetJ5"),r.push("<author>SheetJ5</author>")),r.push("</authors>"),r.push("<commentList>"),t.forEach(function(i){var o=0,s=[];if(i[1][0]&&i[1][0].T&&i[1][0].ID?o=e.indexOf("tc="+i[1][0].ID):i[1].forEach(function(c){c.a&&(o=e.indexOf(zc(c.a))),s.push(c.t||"")}),r.push('<comment ref="'+i[0]+'" authorId="'+o+'"><text>'),s.length<=1)r.push(Lh("t",zc(s[0]||"")));else{for(var a="Comment:\n    "+s[0]+"\n",l=1;l<s.length;++l)a+="Reply:\n    "+s[l]+"\n";r.push(Lh("t",zc(a)))}r.push("</text></comment>")}),r.push("</commentList>"),r.length>2&&(r[r.length]="</comments>",r[1]=r[1].replace("/>",">")),r.join("")}function L9e(t,r,e){var i=[Rd,so("ThreadedComments",null,{xmlns:up_TCMNT}).replace(/[\/]>/,">")];return t.forEach(function(o){var s="";(o[1]||[]).forEach(function(a,l){if(a.T){a.a&&-1==r.indexOf(a.a)&&r.push(a.a);var c={ref:o[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+e.tcid++).slice(-12)+"}"};0==l?s=c.id:c.parentId=s,a.ID=c.id,a.a&&(c.personId="{54EE7950-7262-4200-6969-"+("000000000000"+r.indexOf(a.a)).slice(-12)+"}"),i.push(so("threadedComment",Lh("text",a.t||""),c))}else delete a.ID})}),i.push("</ThreadedComments>"),i.join("")}var j9e=Cf;function $9e(t){var r=tm(),e=[];return Ir(r,628),Ir(r,630),t.forEach(function(i){i[1].forEach(function(o){e.indexOf(o.a)>-1||(e.push(o.a.slice(0,54)),Ir(r,632,function H9e(t){return oh(t.slice(0,54))}(o.a)))})}),Ir(r,631),Ir(r,633),t.forEach(function(i){i[1].forEach(function(o){o.iauthor=e.indexOf(o.a);var s={s:Kd(i[0]),e:Kd(i[0])};Ir(r,635,function V9e(t,r){return null==r&&(r=er(36)),r.write_shift(4,t[1].iauthor),$k(t[0],r),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r}([s,o])),o.t&&o.t.length>0&&Ir(r,637,function v6e(t,r){var e=!1;return null==r&&(e=!0,r=er(23+4*t.t.length)),r.write_shift(1,1),oh(t.t,r),r.write_shift(4,1),function f6e(t,r){r||(r=er(4)),r.write_shift(2,t.ich||0),r.write_shift(2,t.ifnt||0)}({ich:0,ifnt:0},r),e?r.slice(0,r.l):r}(o)),Ir(r,636),delete o.iauthor})}),Ir(r,634),Ir(r,629),r.end()}var Yse=["xlsb","xlsm","xlam","biff8","xla"],qk=function(){var t=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,r={r:0,c:0};function e(i,o,s,a){var l=!1,c=!1;0==s.length?c=!0:"["==s.charAt(0)&&(c=!0,s=s.slice(1,-1)),0==a.length?l=!0:"["==a.charAt(0)&&(l=!0,a=a.slice(1,-1));var d=s.length>0?0|parseInt(s,10):0,f=a.length>0?0|parseInt(a,10):0;return l?f+=r.c:--f,c?d+=r.r:--d,o+(l?"":"$")+Bu(f)+(c?"":"$")+Od(d)}return function(o,s){return r=s,o.replace(t,e)}}(),lz=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,cz=function(){return function(r,e){return r.replace(lz,function(i,o,s,a,l,c){var d=BW(a)-(s?0:e.c),f=GW(c)-(l?0:e.r);return o+"R"+(0==f?"":l?f+1:"["+f+"]")+"C"+(0==d?"":s?d+1:"["+d+"]")})}}();function Wse(t,r){return t.replace(lz,function(e,i,o,s,a,l){return i+("$"==o?o+s:Bu(BW(s)+r.c))+("$"==a?a+l:Od(GW(l)+r.r))})}function pp(t){t.l+=1}function cT(t,r){var e=t.read_shift(1==r?1:2);return[16383&e,e>>14&1,e>>15&1]}function zse(t,r,e){var i=2;if(e){if(e.biff>=2&&e.biff<=5)return qse(t);12==e.biff&&(i=4)}var o=t.read_shift(i),s=t.read_shift(i),a=cT(t,2),l=cT(t,2);return{s:{r:o,c:a[0],cRel:a[1],rRel:a[2]},e:{r:s,c:l[0],cRel:l[1],rRel:l[2]}}}function qse(t){var r=cT(t,2),e=cT(t,2),i=t.read_shift(1),o=t.read_shift(1);return{s:{r:r[0],c:i,cRel:r[1],rRel:r[2]},e:{r:e[0],c:o,cRel:e[1],rRel:e[2]}}}function Xse(t,r,e){if(e&&e.biff>=2&&e.biff<=5)return function eHe(t){var r=cT(t,2),e=t.read_shift(1);return{r:r[0],c:e,cRel:r[1],rRel:r[2]}}(t);var i=t.read_shift(e&&12==e.biff?4:2),o=cT(t,2);return{r:i,c:o[0],cRel:o[1],rRel:o[2]}}function tHe(t){var r=t.read_shift(2),e=t.read_shift(2);return{r,c:255&e,fQuoted:!!(16384&e),cRel:e>>15,rRel:e>>15}}function Kse(t){var r=1&t[t.l+1];return t.l+=4,[r,1]}function Qse(t){return[t.read_shift(1),t.read_shift(1)]}function AHe(t,r){var e=[t.read_shift(1)];if(12==r)switch(e[0]){case 2:e[0]=4;break;case 4:e[0]=16;break;case 0:e[0]=1;break;case 1:e[0]=2}switch(e[0]){case 4:e[1]=function Qd(t,r){return 1===t.read_shift(r)}(t,1)?"TRUE":"FALSE",12!=r&&(t.l+=7);break;case 37:case 16:e[1]=Gb[t[t.l]],t.l+=12==r?4:8;break;case 0:t.l+=8;break;case 1:e[1]=wf(t);break;case 2:e[1]=function s2(t,r,e){if(e.biff>5)return function tF(t,r,e){var i=t.read_shift(e&&2==e.biff?1:2);return 0===i?(t.l++,""):function o2(t,r,e){if(e){if(e.biff>=2&&e.biff<=5)return t.read_shift(r,"cpstr");if(e.biff>=12)return t.read_shift(r,"dbcs-cont")}var o=t.read_shift(1);return t.read_shift(r,0===o?"sbcs-cont":"dbcs-cont")}(t,i,e)}(t,0,e);var i=t.read_shift(1);return 0===i?(t.l++,""):t.read_shift(i,e.biff<=4||!t.lens?"cpstr":"sbcs-cont")}(t,0,{biff:r>0&&r<8?2:r});break;default:throw new Error("Bad SerAr: "+e[0])}return e}function MHe(t,r,e){for(var i=t.read_shift(12==e.biff?4:2),o=[],s=0;s!=i;++s)o.push((12==e.biff?t2:H7)(t,8));return o}function RHe(t,r,e){var i=0,o=0;12==e.biff?(i=t.read_shift(4),o=t.read_shift(4)):(o=1+t.read_shift(1),i=1+t.read_shift(2)),e.biff>=2&&e.biff<8&&(--i,0==--o&&(o=256));for(var s=0,a=[];s!=i&&(a[s]=[]);++s)for(var l=0;l!=o;++l)a[s][l]=AHe(t,e.biff);return a}function aF(t,r,e){return t.l+=2,[tHe(t)]}function uz(t){return t.l+=6,[]}function Jse(t){return t.l+=2,[dp(t),1&t.read_shift(2)]}var JHe=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"],Zse={1:{n:"PtgExp",f:function SHe(t,r,e){return t.l++,e&&12==e.biff?[t.read_shift(4,"i"),0]:[t.read_shift(2),t.read_shift(e&&2==e.biff?1:2)]}},2:{n:"PtgTbl",f:bf},3:{n:"PtgAdd",f:pp},4:{n:"PtgSub",f:pp},5:{n:"PtgMul",f:pp},6:{n:"PtgDiv",f:pp},7:{n:"PtgPower",f:pp},8:{n:"PtgConcat",f:pp},9:{n:"PtgLt",f:pp},10:{n:"PtgLe",f:pp},11:{n:"PtgEq",f:pp},12:{n:"PtgGe",f:pp},13:{n:"PtgGt",f:pp},14:{n:"PtgNe",f:pp},15:{n:"PtgIsect",f:pp},16:{n:"PtgUnion",f:pp},17:{n:"PtgRange",f:pp},18:{n:"PtgUplus",f:pp},19:{n:"PtgUminus",f:pp},20:{n:"PtgPercent",f:pp},21:{n:"PtgParen",f:pp},22:{n:"PtgMissArg",f:pp},23:{n:"PtgStr",f:function IHe(t,r,e){return t.l++,eF(t,0,e)}},26:{n:"PtgSheet",f:function tUe(t,r,e){return t.l+=5,t.l+=2,t.l+=2==e.biff?1:4,["PTGSHEET"]}},27:{n:"PtgEndSheet",f:function nUe(t,r,e){return t.l+=2==e.biff?4:5,["PTGENDSHEET"]}},28:{n:"PtgErr",f:function xHe(t){return t.l++,Gb[t.read_shift(1)]}},29:{n:"PtgBool",f:function DHe(t){return t.l++,0!==t.read_shift(1)}},30:{n:"PtgInt",f:function EHe(t){return t.l++,t.read_shift(2)}},31:{n:"PtgNum",f:function kHe(t){return t.l++,wf(t)}},32:{n:"PtgArray",f:function cHe(t,r,e){var i=(96&t[t.l++])>>5;return t.l+=2==e.biff?6:12==e.biff?14:7,[i]}},33:{n:"PtgFunc",f:function bHe(t,r,e){var i=(96&t[t.l])>>5;t.l+=1;var o=t.read_shift(e&&e.biff<=3?1:2);return[TUe[o],nae[o],i]}},34:{n:"PtgFuncVar",f:function CHe(t,r,e){var i=t[t.l++],o=t.read_shift(1),s=e&&e.biff<=3?[88==i?-1:0,t.read_shift(1)]:function wHe(t){return[t[t.l+1]>>7,32767&t.read_shift(2)]}(t);return[o,(0===s[0]?nae:wUe)[s[1]]]}},35:{n:"PtgName",f:function OHe(t,r,e){var i=t.read_shift(1)>>>5&3,s=t.read_shift(!e||e.biff>=8?4:2);switch(e.biff){case 2:t.l+=5;break;case 3:case 4:t.l+=8;break;case 5:t.l+=12}return[i,0,s]}},36:{n:"PtgRef",f:function vHe(t,r,e){var i=(96&t[t.l])>>5;return t.l+=1,[i,Xse(t,0,e)]}},37:{n:"PtgArea",f:function rHe(t,r,e){return[(96&t[t.l++])>>5,zse(t,0,e)]}},38:{n:"PtgMemArea",f:function LHe(t,r,e){var i=t.read_shift(1)>>>5&3;return t.l+=e&&2==e.biff?3:4,[i,t.read_shift(e&&2==e.biff?1:2)]}},39:{n:"PtgMemErr",f:bf},40:{n:"PtgMemNoMem",f:bf},41:{n:"PtgMemFunc",f:function NHe(t,r,e){return[t.read_shift(1)>>>5&3,t.read_shift(e&&2==e.biff?1:2)]}},42:{n:"PtgRefErr",f:function GHe(t,r,e){var i=t.read_shift(1)>>>5&3;return t.l+=4,e.biff<8&&t.l--,12==e.biff&&(t.l+=2),[i]}},43:{n:"PtgAreaErr",f:function sHe(t,r,e){var i=(96&t[t.l++])>>5;return t.l+=e&&e.biff>8?12:e.biff<8?6:8,[i]}},44:{n:"PtgRefN",f:function _He(t,r,e){var i=(96&t[t.l])>>5;t.l+=1;var o=function nHe(t,r,e){var i=e&&e.biff?e.biff:8;if(i>=2&&i<=5)return function iHe(t){var r=t.read_shift(2),e=t.read_shift(1),i=(32768&r)>>15,o=(16384&r)>>14;return r&=16383,1==i&&r>=8192&&(r-=16384),1==o&&e>=128&&(e-=256),{r,c:e,cRel:o,rRel:i}}(t);var o=t.read_shift(i>=12?4:2),s=t.read_shift(2),a=(16384&s)>>14,l=(32768&s)>>15;if(s&=16383,1==l)for(;o>524287;)o-=1048576;if(1==a)for(;s>8191;)s-=16384;return{r:o,c:s,cRel:a,rRel:l}}(t,0,e);return[i,o]}},45:{n:"PtgAreaN",f:function lHe(t,r,e){var i=(96&t[t.l++])>>5,o=function Z9e(t,r,e){if(e.biff<8)return qse(t);var i=t.read_shift(12==e.biff?4:2),o=t.read_shift(12==e.biff?4:2),s=cT(t,2),a=cT(t,2);return{s:{r:i,c:s[0],cRel:s[1],rRel:s[2]},e:{r:o,c:a[0],cRel:a[1],rRel:a[2]}}}(t,0,e);return[i,o]}},46:{n:"PtgMemAreaN",f:function iUe(t){return[t.read_shift(1)>>>5&3,t.read_shift(2)]}},47:{n:"PtgMemNoMemN",f:function rUe(t){return[t.read_shift(1)>>>5&3,t.read_shift(2)]}},57:{n:"PtgNameX",f:function FHe(t,r,e){return 5==e.biff?function PHe(t){var r=t.read_shift(1)>>>5&3,e=t.read_shift(2,"i");t.l+=8;var i=t.read_shift(2);return t.l+=12,[r,e,i]}(t):[t.read_shift(1)>>>5&3,t.read_shift(2),t.read_shift(4)]}},58:{n:"PtgRef3d",f:function yHe(t,r,e){var i=(96&t[t.l])>>5;t.l+=1;var o=t.read_shift(2);return e&&5==e.biff&&(t.l+=12),[i,o,Xse(t,0,e)]}},59:{n:"PtgArea3d",f:function oHe(t,r,e){var i=(96&t[t.l++])>>5,o=t.read_shift(2,"i");if(e&&5===e.biff)t.l+=12;return[i,o,zse(t,0,e)]}},60:{n:"PtgRefErr3d",f:function BHe(t,r,e){var i=(96&t[t.l++])>>5,o=t.read_shift(2),s=4;if(e)switch(e.biff){case 5:s=15;break;case 12:s=6}return t.l+=s,[i,o]}},61:{n:"PtgAreaErr3d",f:function aHe(t,r,e){var i=(96&t[t.l++])>>5,o=t.read_shift(2),s=8;if(e)switch(e.biff){case 5:t.l+=12,s=6;break;case 12:s=12}return t.l+=s,[i,o]}},255:{}},sUe={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},aUe={1:{n:"PtgElfLel",f:Jse},2:{n:"PtgElfRw",f:aF},3:{n:"PtgElfCol",f:aF},6:{n:"PtgElfRwV",f:aF},7:{n:"PtgElfColV",f:aF},10:{n:"PtgElfRadical",f:aF},11:{n:"PtgElfRadicalS",f:uz},13:{n:"PtgElfColS",f:uz},15:{n:"PtgElfColSV",f:uz},16:{n:"PtgElfRadicalLel",f:Jse},25:{n:"PtgList",f:function ZHe(t){t.l+=2;var r=t.read_shift(2),e=t.read_shift(2),i=t.read_shift(4),o=t.read_shift(2),s=t.read_shift(2);return{ixti:r,coltype:3&e,rt:JHe[e>>2&31],idx:i,c:o,C:s}}},29:{n:"PtgSxName",f:function eUe(t){return t.l+=2,[t.read_shift(4)]}},255:{}},lUe={0:{n:"PtgAttrNoop",f:function oUe(t){return t.l+=4,[0,0]}},1:{n:"PtgAttrSemi",f:function fHe(t,r,e){var i=255&t[t.l+1]?1:0;return t.l+=e&&2==e.biff?3:4,[i]}},2:{n:"PtgAttrIf",f:function pHe(t,r,e){var i=255&t[t.l+1]?1:0;return t.l+=2,[i,t.read_shift(e&&2==e.biff?1:2)]}},4:{n:"PtgAttrChoose",f:function uHe(t,r,e){t.l+=2;for(var i=t.read_shift(e&&2==e.biff?1:2),o=[],s=0;s<=i;++s)o.push(t.read_shift(e&&2==e.biff?1:2));return o}},8:{n:"PtgAttrGoto",f:function dHe(t,r,e){var i=255&t[t.l+1]?1:0;return t.l+=2,[i,t.read_shift(e&&2==e.biff?1:2)]}},16:{n:"PtgAttrSum",f:function THe(t,r,e){t.l+=e&&2==e.biff?3:4}},32:{n:"PtgAttrBaxcel",f:Kse},33:{n:"PtgAttrBaxcel",f:Kse},64:{n:"PtgAttrSpace",f:function mHe(t){return t.read_shift(2),Qse(t)}},65:{n:"PtgAttrSpaceSemi",f:function gHe(t){return t.read_shift(2),Qse(t)}},128:{n:"PtgAttrIfError",f:function hHe(t){var r=255&t[t.l+1]?1:0;return t.l+=2,[r,t.read_shift(2)]}},255:{}};function lF(t,r,e,i){if(i.biff<8)return bf(t,r);for(var o=t.l+r,s=[],a=0;a!==e.length;++a)switch(e[a][0]){case"PtgArray":e[a][1]=RHe(t,0,i),s.push(e[a][1]);break;case"PtgMemArea":e[a][2]=MHe(t,0,i),s.push(e[a][2]);break;case"PtgExp":i&&12==i.biff&&(e[a][1][1]=t.read_shift(4),s.push(e[a][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+e[a][0]}return 0!=(r=o-t.l)&&s.push(bf(t,r)),s}function cUe(t){for(var r=[],e=0;e<t.length;++e){for(var i=t[e],o=[],s=0;s<i.length;++s){var a=i[s];o.push(a?2===a[0]?'"'+a[1].replace(/"/g,'""')+'"':a[1]:"")}r.push(o.join(","))}return r.join(";")}var uUe={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function eae(t,r,e){if(!t)return"SH33TJSERR0";if(e.biff>8&&(!t.XTI||!t.XTI[r]))return t.SheetNames[r];if(!t.XTI)return"SH33TJSERR6";var i=t.XTI[r];if(e.biff<8)return r>1e4&&(r-=65536),r<0&&(r=-r),0==r?"":t.XTI[r-1];if(!i)return"SH33TJSERR1";var o="";if(e.biff>8)switch(t[i[0]][0]){case 357:return o=-1==i[1]?"#REF":t.SheetNames[i[1]],i[1]==i[2]?o:o+":"+t.SheetNames[i[2]];case 358:return null!=e.SID?t.SheetNames[e.SID]:"SH33TJSSAME"+t[i[0]][0];default:return"SH33TJSSRC"+t[i[0]][0]}switch(t[i[0]][0][0]){case 1025:return o=-1==i[1]?"#REF":t.SheetNames[i[1]]||"SH33TJSERR3",i[1]==i[2]?o:o+":"+t.SheetNames[i[2]];case 14849:return t[i[0]].slice(1).map(function(s){return s.Name}).join(";;");default:return t[i[0]][0][3]?(o=-1==i[1]?"#REF":t[i[0]][0][3][i[1]]||"SH33TJSERR4",i[1]==i[2]?o:o+":"+t[i[0]][0][3][i[2]]):"SH33TJSERR2"}}function tae(t,r,e){var i=eae(t,r,e);return"#REF"==i?i:function dUe(t,r){if(!(t||r&&r.biff<=5&&r.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(t)?"'"+t+"'":t}(i,e)}function xf(t,r,e,i,o){var c,d,f,x,s=o&&o.biff||8,a={s:{c:0,r:0},e:{c:0,r:0}},l=[],v=0,w=0,I="";if(!t[0]||!t[0][0])return"";for(var M=-1,F="",re=0,pe=t[0].length;re<pe;++re){var we=t[0][re];switch(we[0]){case"PtgUminus":l.push("-"+l.pop());break;case"PtgUplus":l.push("+"+l.pop());break;case"PtgPercent":l.push(l.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(c=l.pop(),d=l.pop(),M>=0){switch(t[0][M][1][0]){case 0:F=Md(" ",t[0][M][1][1]);break;case 1:F=Md("\r",t[0][M][1][1]);break;default:if(F="",o.WTF)throw new Error("Unexpected PtgAttrSpaceType "+t[0][M][1][0])}d+=F,M=-1}l.push(d+uUe[we[0]]+c);break;case"PtgIsect":c=l.pop(),d=l.pop(),l.push(d+" "+c);break;case"PtgUnion":c=l.pop(),d=l.pop(),l.push(d+","+c);break;case"PtgRange":c=l.pop(),d=l.pop(),l.push(d+":"+c);break;case"PtgAttrChoose":case"PtgAttrGoto":case"PtgAttrIf":case"PtgAttrIfError":case"PtgAttrBaxcel":case"PtgAttrSemi":case"PtgMemArea":case"PtgTbl":case"PtgMemErr":case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":case"PtgMemFunc":case"PtgMemNoMem":break;case"PtgRef":f=KO(we[1][1],a,o),l.push(QO(f,s));break;case"PtgRefN":f=e?KO(we[1][1],e,o):we[1][1],l.push(QO(f,s));break;case"PtgRef3d":v=we[1][1],f=KO(we[1][2],a,o),I=tae(i,v,o),l.push(I+"!"+QO(f,s));break;case"PtgFunc":case"PtgFuncVar":var tt=we[1][0],nt=we[1][1];tt||(tt=0);var rt=0==(tt&=127)?[]:l.slice(-tt);l.length-=tt,"User"===nt&&(nt=rt.shift()),l.push(nt+"("+rt.join(",")+")");break;case"PtgBool":l.push(we[1]?"TRUE":"FALSE");break;case"PtgInt":case"PtgErr":l.push(we[1]);break;case"PtgNum":l.push(String(we[1]));break;case"PtgStr":l.push('"'+we[1].replace(/"/g,'""')+'"');break;case"PtgAreaN":x=Ioe(we[1][1],e?{s:e}:a,o),l.push(NW(x,o));break;case"PtgArea":x=Ioe(we[1][1],a,o),l.push(NW(x,o));break;case"PtgArea3d":x=we[1][2],I=tae(i,v=we[1][1],o),l.push(I+"!"+NW(x,o));break;case"PtgAttrSum":l.push("SUM("+l.pop()+")");break;case"PtgName":var lt=(i.names||[])[(w=we[1][2])-1]||(i[0]||[])[w],bt=lt?lt.Name:"SH33TJSNAME"+String(w);bt&&"_xlfn."==bt.slice(0,6)&&!o.xlfn&&(bt=bt.slice(6)),l.push(bt);break;case"PtgNameX":var Zt,Wt=we[1][1];if(w=we[1][2],!(o.biff<=5)){var en="";if(14849==((i[Wt]||[])[0]||[])[0]||(1025==((i[Wt]||[])[0]||[])[0]?i[Wt][w]&&i[Wt][w].itab>0&&(en=i.SheetNames[i[Wt][w].itab-1]+"!"):en=i.SheetNames[w-1]+"!"),i[Wt]&&i[Wt][w])en+=i[Wt][w].Name;else if(i[0]&&i[0][w])en+=i[0][w].Name;else{var ci=(eae(i,Wt,o)||"").split(";;");ci[w-1]?en=ci[w-1]:en+="SH33TJSERRX"}l.push(en);break}Wt<0&&(Wt=-Wt),i[Wt]&&(Zt=i[Wt][w]),Zt||(Zt={Name:"SH33TJSERRY"}),l.push(Zt.Name);break;case"PtgParen":var Wi="(",ki=")";if(M>=0){switch(F="",t[0][M][1][0]){case 2:Wi=Md(" ",t[0][M][1][1])+Wi;break;case 3:Wi=Md("\r",t[0][M][1][1])+Wi;break;case 4:ki=Md(" ",t[0][M][1][1])+ki;break;case 5:ki=Md("\r",t[0][M][1][1])+ki;break;default:if(o.WTF)throw new Error("Unexpected PtgAttrSpaceType "+t[0][M][1][0])}M=-1}l.push(Wi+l.pop()+ki);break;case"PtgRefErr":case"PtgRefErr3d":case"PtgAreaErr":case"PtgAreaErr3d":l.push("#REF!");break;case"PtgExp":var Xr={c:e.c,r:e.r};if(i.sharedf[ca(f={c:we[1][1],r:we[1][0]})]){var Lr=i.sharedf[ca(f)];l.push(xf(Lr,0,Xr,i,o))}else{var Jo=!1;for(c=0;c!=i.arrayf.length;++c)if(!(f.c<(d=i.arrayf[c])[0].s.c||f.c>d[0].e.c||f.r<d[0].s.r||f.r>d[0].e.r)){l.push(xf(d[1],0,Xr,i,o)),Jo=!0;break}Jo||l.push(we[1])}break;case"PtgArray":l.push("{"+cUe(we[1])+"}");break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":M=re;break;case"PtgMissArg":l.push("");break;case"PtgList":l.push("Table"+we[1].idx+"[#"+we[1].rt+"]");break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");default:throw new Error("Unrecognized Formula Token: "+String(we))}if(3!=o.biff&&M>=0&&-1==["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"].indexOf(t[0][re][0])){var is=!0;switch((we=t[0][M])[1][0]){case 4:is=!1;case 0:F=Md(" ",we[1][1]);break;case 5:is=!1;case 1:F=Md("\r",we[1][1]);break;default:if(F="",o.WTF)throw new Error("Unexpected PtgAttrSpaceType "+we[1][0])}l.push((is?F:"")+l.pop()+(is?"":F)),M=-1}}if(l.length>1&&o.WTF)throw new Error("bad formula stack");return l[0]}function X7(t,r,e){var i=t.read_shift(4),o=function cF(t,r,e){for(var o,s,i=t.l+r,a=[];i!=t.l;)r=i-t.l,o=Zse[s=t[t.l]]||Zse[sUe[s]],(24===s||25===s)&&(o=(24===s?aUe:lUe)[t[t.l+1]]),o&&o.f?a.push([o.n,o.f(t,r,e)]):bf(t,r);return a}(t,i,e),s=t.read_shift(4);return[o,s>0?lF(t,s,o,e):null]}var yUe=X7,K7=X7,bUe=X7,CUe=X7,wUe={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},nae={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},TUe={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function SUe(t){return("of:="+t.replace(lz,"$1[.$2$3$4$5]").replace(/\]:\[/g,":")).replace(/;/g,"|").replace(/,/g,";")}function xUe(t){return t.replace(/\./,"!")}var uF=typeof Map<"u";function hz(t,r,e){var i=0,o=t.length;if(e){if(uF?e.has(r):Object.prototype.hasOwnProperty.call(e,r))for(var s=uF?e.get(r):e[r];i<s.length;++i)if(t[s[i]].t===r)return t.Count++,s[i]}else for(;i<o;++i)if(t[i].t===r)return t.Count++,i;return t[o]={t:r},t.Count++,t.Unique++,e&&(uF?(e.has(r)||e.set(r,[]),e.get(r).push(o)):(Object.prototype.hasOwnProperty.call(e,r)||(e[r]=[]),e[r].push(o))),o}function J7(t,r){var e={min:t+1,max:t+1},i=-1;return r.MDW&&(Sf=r.MDW),null!=r.width?e.customWidth=1:null!=r.wpx?i=rF(r.wpx):null!=r.wch&&(i=r.wch),i>-1?(e.width=Y7(i),e.customWidth=1):null!=r.width&&(e.width=r.width),r.hidden&&(e.hidden=!0),null!=r.level&&(e.outlineLevel=e.level=r.level),e}function c2(t,r){if(t){var e=[.7,.7,.75,.75,.3,.3];"xlml"==r&&(e=[1,1,1,1,.5,.5]),null==t.left&&(t.left=e[0]),null==t.right&&(t.right=e[1]),null==t.top&&(t.top=e[2]),null==t.bottom&&(t.bottom=e[3]),null==t.header&&(t.header=e[4]),null==t.footer&&(t.footer=e[5])}}function uT(t,r,e){var i=e.revssf[null!=r.z?r.z:"General"],o=60,s=t.length;if(null==i&&e.ssf)for(;o<392;++o)if(null==e.ssf[o]){Fy(r.z,o),e.ssf[o]=r.z,e.revssf[r.z]=i=o;break}for(o=0;o!=s;++o)if(t[o].numFmtId===i)return o;return t[s]={numFmtId:i,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},s}function DUe(t,r,e){if(t&&t["!ref"]){var i=jl(t["!ref"]);if(i.e.c<i.s.c||i.e.r<i.s.r)throw new Error("Bad range ("+e+"): "+t["!ref"])}}var HUe=["objects","scenarios","selectLockedCells","selectUnlockedCells"],UUe=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function t$e(t,r,e,i){if(t.c&&e["!comments"].push([r,t.c]),void 0===t.v&&"string"!=typeof t.f||"z"===t.t&&!t.f)return"";var o="",s=t.t,a=t.v;if("z"!==t.t)switch(t.t){case"b":o=t.v?"1":"0";break;case"n":o=""+t.v;break;case"e":o=Gb[t.v];break;case"d":i&&i.cellDates?o=vd(t.v,-1).toISOString():((t=vu(t)).t="n",o=""+(t.v=ih(vd(t.v)))),typeof t.z>"u"&&(t.z=ea[14]);break;default:o=t.v}var l=Lh("v",zc(o)),c={r},d=uT(i.cellXfs,t,i);switch(0!==d&&(c.s=d),t.t){case"n":case"z":break;case"d":c.t="d";break;case"b":c.t="b";break;case"e":c.t="e";break;default:if(null==t.v){delete t.t;break}if(t.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(i&&i.bookSST){l=Lh("v",""+hz(i.Strings,t.v,i.revStrings)),c.t="s";break}c.t="str"}if(t.t!=s&&(t.t=s,t.v=a),"string"==typeof t.f&&t.f){var f=t.F&&t.F.slice(0,r.length)==r?{t:"array",ref:t.F}:null;l=so("f",zc(t.f),f)+(null!=t.v?l:"")}return t.l&&e["!links"].push([r,t.l]),t.D&&(c.cm=1),so("c",l,c)}function oae(t,r,e,i){var a,o=[Rd,so("worksheet",null,{xmlns:oT[0],"xmlns:r":up_r})],l="",c=e.Sheets[e.SheetNames[t]];null==c&&(c={});var d=c["!ref"]||"A1",f=jl(d);if(f.e.c>16383||f.e.r>1048575){if(r.WTF)throw new Error("Range "+d+" exceeds format limit A1:XFD1048576");f.e.c=Math.min(f.e.c,16383),f.e.r=Math.min(f.e.c,1048575),d=Na(f)}i||(i={}),c["!comments"]=[];var v=[];(function jUe(t,r,e,i,o){var s=!1,a={},l=null;if("xlsx"!==i.bookType&&r.vbaraw){var c=r.SheetNames[e];try{r.Workbook&&(c=r.Workbook.Sheets[e].CodeName||c)}catch{}s=!0,a.codeName=Ly(zc(c))}if(t&&t["!outline"]){var d={summaryBelow:1,summaryRight:1};t["!outline"].above&&(d.summaryBelow=0),t["!outline"].left&&(d.summaryRight=0),l=(l||"")+so("outlinePr",null,d)}!s&&!l||(o[o.length]=so("sheetPr",l,a))})(c,e,t,r,o),o[o.length]=so("dimension",null,{ref:d}),o[o.length]=function e$e(t,r,e,i){var o={workbookViewId:"0"};return(((i||{}).Workbook||{}).Views||[])[0]&&(o.rightToLeft=i.Workbook.Views[0].RTL?"1":"0"),so("sheetViews",so("sheetView",null,o),{})}(0,0,0,e),r.sheetFormat&&(o[o.length]=so("sheetFormatPr",null,{defaultRowHeight:r.sheetFormat.defaultRowHeight||"16",baseColWidth:r.sheetFormat.baseColWidth||"10",outlineLevelRow:r.sheetFormat.outlineLevelRow||"7"})),null!=c["!cols"]&&c["!cols"].length>0&&(o[o.length]=function XUe(t,r){for(var i,e=["<cols>"],o=0;o!=r.length;++o)(i=r[o])&&(e[e.length]=so("col",null,J7(o,i)));return e[e.length]="</cols>",e.join("")}(0,c["!cols"])),o[a=o.length]="<sheetData/>",c["!links"]=[],null!=c["!ref"]&&(l=function i$e(t,r){var c,F,o=[],s=[],a=jl(t["!ref"]),l="",d="",f=[],v=0,w=0,x=t["!rows"],I=Array.isArray(t),M={r:d},re=-1;for(w=a.s.c;w<=a.e.c;++w)f[w]=Bu(w);for(v=a.s.r;v<=a.e.r;++v){for(s=[],d=Od(v),w=a.s.c;w<=a.e.c;++w){c=f[w]+d;var pe=I?(t[v]||[])[w]:t[c];void 0!==pe&&null!=(l=t$e(pe,c,t,r))&&s.push(l)}(s.length>0||x&&x[v])&&(M={r:d},x&&x[v]&&((F=x[v]).hidden&&(M.hidden=1),re=-1,F.hpx?re=oF(F.hpx):F.hpt&&(re=F.hpt),re>-1&&(M.ht=re,M.customHeight=1),F.level&&(M.outlineLevel=F.level)),o[o.length]=so("row",s.join(""),M))}if(x)for(;v<x.length;++v)x&&x[v]&&(M={r:v+1},(F=x[v]).hidden&&(M.hidden=1),re=-1,F.hpx?re=oF(F.hpx):F.hpt&&(re=F.hpt),re>-1&&(M.ht=re,M.customHeight=1),F.level&&(M.outlineLevel=F.level),o[o.length]=so("row","",M));return o.join("")}(c,r),l.length>0&&(o[o.length]=l)),o.length>a+1&&(o[o.length]="</sheetData>",o[a]=o[a].replace("/>",">")),c["!protect"]&&(o[o.length]=function $Ue(t){var r={sheet:1};return HUe.forEach(function(e){null!=t[e]&&t[e]&&(r[e]="1")}),UUe.forEach(function(e){null!=t[e]&&!t[e]&&(r[e]="0")}),t.password&&(r.password=iz(t.password).toString(16).toUpperCase()),so("sheetProtection",null,r)}(c["!protect"])),null!=c["!autofilter"]&&(o[o.length]=function QUe(t,r,e,i){var o="string"==typeof t.ref?t.ref:Na(t.ref);e.Workbook||(e.Workbook={Sheets:[]}),e.Workbook.Names||(e.Workbook.Names=[]);var s=e.Workbook.Names,a=nm(o);a.s.r==a.e.r&&(a.e.r=nm(r["!ref"]).e.r,o=Na(a));for(var l=0;l<s.length;++l){var c=s[l];if("_xlnm._FilterDatabase"==c.Name&&c.Sheet==i){c.Ref="'"+e.SheetNames[i]+"'!"+o;break}}return l==s.length&&s.push({Name:"_xlnm._FilterDatabase",Sheet:i,Ref:"'"+e.SheetNames[i]+"'!"+o}),so("autoFilter",null,{ref:o})}(c["!autofilter"],c,e,t)),null!=c["!merges"]&&c["!merges"].length>0&&(o[o.length]=function BUe(t){if(0===t.length)return"";for(var r='<mergeCells count="'+t.length+'">',e=0;e!=t.length;++e)r+='<mergeCell ref="'+Na(t[e])+'"/>';return r+"</mergeCells>"}(c["!merges"]));var x,w=-1,I=-1;return c["!links"].length>0&&(o[o.length]="<hyperlinks>",c["!links"].forEach(function(M){M[1].Target&&(x={ref:M[0]},"#"!=M[1].Target.charAt(0)&&(I=Bc(i,-1,zc(M[1].Target).replace(/#.*$/,""),Ga.HLINK),x["r:id"]="rId"+I),(w=M[1].Target.indexOf("#"))>-1&&(x.location=zc(M[1].Target.slice(w+1))),M[1].Tooltip&&(x.tooltip=zc(M[1].Tooltip)),o[o.length]=so("hyperlink",null,x))}),o[o.length]="</hyperlinks>"),delete c["!links"],null!=c["!margins"]&&(o[o.length]=function zUe(t){return c2(t),so("pageMargins",null,t)}(c["!margins"])),(!r||r.ignoreEC||null==r.ignoreEC)&&(o[o.length]=Lh("ignoredErrors",so("ignoredError",null,{numberStoredAsText:1,sqref:d}))),v.length>0&&(I=Bc(i,-1,"../drawings/drawing"+(t+1)+".xml",Ga.DRAW),o[o.length]=so("drawing",null,{"r:id":"rId"+I}),c["!drawing"]=v),c["!comments"].length>0&&(I=Bc(i,-1,"../drawings/vmlDrawing"+(t+1)+".vml",Ga.VML),o[o.length]=so("legacyDrawing",null,{"r:id":"rId"+I}),c["!legacy"]=I),o.length>1&&(o[o.length]="</worksheet>",o[1]=o[1].replace("/>",">")),o.join("")}function s$e(t,r,e,i){var o=function o$e(t,r,e){var i=er(145),o=(e["!rows"]||[])[t]||{};i.write_shift(4,t),i.write_shift(4,0);var s=320;o.hpx?s=20*oF(o.hpx):o.hpt&&(s=20*o.hpt),i.write_shift(2,s),i.write_shift(1,0);var a=0;o.level&&(a|=o.level),o.hidden&&(a|=16),(o.hpx||o.hpt)&&(a|=32),i.write_shift(1,a),i.write_shift(1,0);var l=0,c=i.l;i.l+=4;for(var d={r:t,c:0},f=0;f<16;++f)if(!(r.s.c>f+1<<10||r.e.c<f<<10)){for(var v=-1,w=-1,x=f<<10;x<f+1<<10;++x)d.c=x,(Array.isArray(e)?(e[d.r]||[])[d.c]:e[ca(d)])&&(v<0&&(v=x),w=x);v<0||(++l,i.write_shift(4,v),i.write_shift(4,w))}var M=i.l;return i.l=c,i.write_shift(4,l),i.l=M,i.length>i.l?i.slice(0,i.l):i}(i,e,r);(o.length>17||(r["!rows"]||[])[i])&&Ir(t,0,o)}var a$e=t2,l$e=$k;var $$e=t2,Y$e=$k,aae=["left","right","top","bottom","header","footer"];function lYe(t,r,e,i,o,s,a){if(void 0===r.v)return!1;var l="";switch(r.t){case"b":l=r.v?"1":"0";break;case"d":(r=vu(r)).z=r.z||ea[14],r.v=ih(vd(r.v)),r.t="n";break;case"n":case"e":l=""+r.v;break;default:l=r.v}var c={r:e,c:i};switch(c.s=uT(o.cellXfs,r,o),r.l&&s["!links"].push([ca(c),r.l]),r.c&&s["!comments"].push([ca(c),r.c]),r.t){case"s":case"str":return o.bookSST?(l=hz(o.Strings,r.v,o.revStrings),c.t="s",c.v=l,a?Ir(t,18,function D$e(t,r,e){return null==e&&(e=er(8)),e2(r,e),e.write_shift(4,r.v),e}(0,c)):Ir(t,7,function x$e(t,r,e){return null==e&&(e=er(12)),Jx(r,e),e.write_shift(4,r.v),e}(0,c))):(c.t="str",a?Ir(t,17,function B$e(t,r,e){return null==e&&(e=er(8+4*t.v.length)),e2(r,e),oh(t.v,e),e.length>e.l?e.slice(0,e.l):e}(r,c)):Ir(t,6,function N$e(t,r,e){return null==e&&(e=er(12+4*t.v.length)),Jx(r,e),oh(t.v,e),e.length>e.l?e.slice(0,e.l):e}(r,c))),!0;case"n":return r.v==(0|r.v)&&r.v>-1e3&&r.v<1e3?a?Ir(t,13,function F$e(t,r,e){return null==e&&(e=er(8)),e2(r,e),Ooe(t.v,e),e}(r,c)):Ir(t,2,function R$e(t,r,e){return null==e&&(e=er(12)),Jx(r,e),Ooe(t.v,e),e}(r,c)):a?Ir(t,16,function A$e(t,r,e){return null==e&&(e=er(12)),e2(r,e),n2(t.v,e),e}(r,c)):Ir(t,5,function I$e(t,r,e){return null==e&&(e=er(16)),Jx(r,e),n2(t.v,e),e}(r,c)),!0;case"b":return c.t="b",a?Ir(t,15,function y$e(t,r,e){return null==e&&(e=er(5)),e2(r,e),e.write_shift(1,t.v?1:0),e}(r,c)):Ir(t,4,function v$e(t,r,e){return null==e&&(e=er(9)),Jx(r,e),e.write_shift(1,t.v?1:0),e}(r,c)),!0;case"e":return c.t="e",a?Ir(t,14,function T$e(t,r,e){return null==e&&(e=er(8)),e2(r,e),e.write_shift(1,t.v),e.write_shift(2,0),e.write_shift(1,0),e}(r,c)):Ir(t,3,function C$e(t,r,e){return null==e&&(e=er(9)),Jx(r,e),e.write_shift(1,t.v),e}(r,c)),!0}return a?Ir(t,12,function m$e(t,r,e){return null==e&&(e=er(4)),e2(r,e)}(0,c)):Ir(t,1,function h$e(t,r,e){return null==e&&(e=er(8)),Jx(r,e)}(0,c)),!0}function _Ye(t,r,e,i){var o=tm(),s=e.SheetNames[t],a=e.Sheets[s]||{},l=s;try{e&&e.Workbook&&(l=e.Workbook.Sheets[t].CodeName||l)}catch{}var c=jl(a["!ref"]||"A1");if(c.e.c>16383||c.e.r>1048575){if(r.WTF)throw new Error("Range "+(a["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");c.e.c=Math.min(c.e.c,16383),c.e.r=Math.min(c.e.c,1048575)}return a["!links"]=[],a["!comments"]=[],Ir(o,129),(e.vbaraw||a["!outline"])&&Ir(o,147,function d$e(t,r,e){null==e&&(e=er(84+4*t.length));var i=192;r&&(r.above&&(i&=-65),r.left&&(i&=-129)),e.write_shift(1,i);for(var o=1;o<3;++o)e.write_shift(1,0);return P7({auto:1},e),e.write_shift(-4,-1),e.write_shift(-4,-1),Roe(t,e),e.slice(0,e.l)}(l,a["!outline"])),Ir(o,148,l$e(c)),function gYe(t,r,e){Ir(t,133),Ir(t,137,function nYe(t,r,e){null==e&&(e=er(30));var i=924;return(((r||{}).Views||[])[0]||{}).RTL&&(i|=32),e.write_shift(2,i),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(2,0),e.write_shift(2,100),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(4,0),e}(0,e)),Ir(t,138),Ir(t,134)}(o,0,e.Workbook),function dYe(t,r){!r||!r["!cols"]||(Ir(t,390),r["!cols"].forEach(function(e,i){e&&Ir(t,60,function J$e(t,r,e){null==e&&(e=er(18));var i=J7(t,r);e.write_shift(-4,t),e.write_shift(-4,t),e.write_shift(4,256*(i.width||10)),e.write_shift(4,0);var o=0;return r.hidden&&(o|=1),"number"==typeof i.width&&(o|=2),r.level&&(o|=r.level<<8),e.write_shift(2,o),e}(i,e))}),Ir(t,391))}(o,a),function cYe(t,r,e,i){var o=jl(r["!ref"]||"A1"),a="",l=[];Ir(t,145);var c=Array.isArray(r),d=o.e.r;r["!rows"]&&(d=Math.max(o.e.r,r["!rows"].length-1));for(var f=o.s.r;f<=d;++f){a=Od(f),s$e(t,r,o,f);var v=!1;if(f<=o.e.r)for(var w=o.s.c;w<=o.e.c;++w){f===o.s.r&&(l[w]=Bu(w));var x=c?(r[f]||[])[w]:r[l[w]+a];v=!!x&&lYe(t,x,f,w,i,r,v)}}Ir(t,146)}(o,a,0,r),function vYe(t,r){r["!protect"]&&Ir(t,535,function rYe(t,r){return null==r&&(r=er(66)),r.write_shift(2,t.password?iz(t.password):0),r.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach(function(e){r.write_shift(4,e[1]?null==t[e[0]]||t[e[0]]?0:1:null!=t[e[0]]&&t[e[0]]?0:1)}),r}(r["!protect"]))}(o,a),function mYe(t,r,e,i){if(r["!autofilter"]){var o=r["!autofilter"],s="string"==typeof o.ref?o.ref:Na(o.ref);e.Workbook||(e.Workbook={Sheets:[]}),e.Workbook.Names||(e.Workbook.Names=[]);var a=e.Workbook.Names,l=nm(s);l.s.r==l.e.r&&(l.e.r=nm(r["!ref"]).e.r,s=Na(l));for(var c=0;c<a.length;++c){var d=a[c];if("_xlnm._FilterDatabase"==d.Name&&d.Sheet==i){d.Ref="'"+e.SheetNames[i]+"'!"+s;break}}c==a.length&&a.push({Name:"_xlnm._FilterDatabase",Sheet:i,Ref:"'"+e.SheetNames[i]+"'!"+s}),Ir(t,161,$k(jl(s))),Ir(t,162)}}(o,a,e,t),function uYe(t,r){!r||!r["!merges"]||(Ir(t,177,function W$e(t,r){return null==r&&(r=er(4)),r.write_shift(4,t),r}(r["!merges"].length)),r["!merges"].forEach(function(e){Ir(t,176,Y$e(e))}),Ir(t,178))}(o,a),function hYe(t,r,e){r["!links"].forEach(function(i){if(i[1].Target){var o=Bc(e,-1,i[1].Target.replace(/#.*$/,""),Ga.HLINK);Ir(t,494,function q$e(t,r){var e=er(50+4*(t[1].Target.length+(t[1].Tooltip||"").length));$k({s:Kd(t[0]),e:Kd(t[0])},e),UW("rId"+r,e);var i=t[1].Target.indexOf("#");return oh((-1==i?"":t[1].Target.slice(i+1))||"",e),oh(t[1].Tooltip||"",e),oh("",e),e.slice(0,e.l)}(i,o))}}),delete r["!links"]}(o,a,i),a["!margins"]&&Ir(o,476,function eYe(t,r){return null==r&&(r=er(48)),c2(t),aae.forEach(function(e){n2(t[e],r)}),r}(a["!margins"])),(!r||r.ignoreEC||null==r.ignoreEC)&&function pYe(t,r){!r||!r["!ref"]||(Ir(t,648),Ir(t,649,function iYe(t){var r=er(24);return r.write_shift(4,4),r.write_shift(4,1),$k(t,r),r}(jl(r["!ref"]))),Ir(t,650))}(o,a),function fYe(t,r,e,i){if(r["!comments"].length>0){var o=Bc(i,-1,"../drawings/vmlDrawing"+(e+1)+".vml",Ga.VML);Ir(t,551,UW("rId"+o)),r["!legacy"]=o}}(o,a,t,i),Ir(o,130),o.end()}var mz=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]],AYe="][*?/\\".split("");function dae(t,r){if(t.length>31){if(r)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var e=!0;return AYe.forEach(function(i){if(-1!=t.indexOf(i)){if(!r)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");e=!1}}),e}function hae(t){var r=[Rd];r[r.length]=so("workbook",null,{xmlns:oT[0],"xmlns:r":up_r});var e=t.Workbook&&(t.Workbook.Names||[]).length>0,i={codeName:"ThisWorkbook"};t.Workbook&&t.Workbook.WBProps&&(mz.forEach(function(l){null!=t.Workbook.WBProps[l[0]]&&t.Workbook.WBProps[l[0]]!=l[1]&&(i[l[0]]=t.Workbook.WBProps[l[0]])}),t.Workbook.WBProps.CodeName&&(i.codeName=t.Workbook.WBProps.CodeName,delete i.CodeName)),r[r.length]=so("workbookPr",null,i);var o=t.Workbook&&t.Workbook.Sheets||[],s=0;if(o&&o[0]&&o[0].Hidden){for(r[r.length]="<bookViews>",s=0;s!=t.SheetNames.length&&o[s]&&o[s].Hidden;++s);s==t.SheetNames.length&&(s=0),r[r.length]='<workbookView firstSheet="'+s+'" activeTab="'+s+'"/>',r[r.length]="</bookViews>"}for(r[r.length]="<sheets>",s=0;s!=t.SheetNames.length;++s){var a={name:zc(t.SheetNames[s].slice(0,31))};if(a.sheetId=""+(s+1),a["r:id"]="rId"+(s+1),o[s])switch(o[s].Hidden){case 1:a.state="hidden";break;case 2:a.state="veryHidden"}r[r.length]=so("sheet",null,a)}return r[r.length]="</sheets>",e&&(r[r.length]="<definedNames>",t.Workbook&&t.Workbook.Names&&t.Workbook.Names.forEach(function(l){var c={name:l.Name};l.Comment&&(c.comment=l.Comment),null!=l.Sheet&&(c.localSheetId=""+l.Sheet),l.Hidden&&(c.hidden="1"),l.Ref&&(r[r.length]=so("definedName",zc(l.Ref),c))}),r[r.length]="</definedNames>"),r.length>2&&(r[r.length]="</workbook>",r[1]=r[1].replace("/>",">")),r.join("")}function PYe(t,r){return r||(r=er(127)),r.write_shift(4,t.Hidden),r.write_shift(4,t.iTabID),UW(t.strRelID,r),oh(t.name.slice(0,31),r),r.length>r.l?r.slice(0,r.l):r}function YYe(t,r){var e=tm();return Ir(e,131),Ir(e,128,function HYe(t,r){r||(r=er(127));for(var e=0;4!=e;++e)r.write_shift(4,0);return oh("SheetJS",r),oh(NO_version,r),oh(NO_version,r),oh("7262",r),r.length>r.l?r.slice(0,r.l):r}()),Ir(e,153,function NYe(t,r){r||(r=er(72));var e=0;return t&&t.filterPrivacy&&(e|=8),r.write_shift(4,e),r.write_shift(4,0),Roe(t&&t.CodeName||"ThisWorkbook",r),r.slice(0,r.l)}(t.Workbook&&t.Workbook.WBProps||null)),function $Ye(t,r){if(r.Workbook&&r.Workbook.Sheets){for(var e=r.Workbook.Sheets,i=0,o=-1,s=-1;i<e.length;++i)!e[i]||!e[i].Hidden&&-1==o?o=i:1==e[i].Hidden&&-1==s&&(s=i);s>o||(Ir(t,135),Ir(t,158,function UYe(t,r){return r||(r=er(29)),r.write_shift(-4,0),r.write_shift(-4,460),r.write_shift(4,28800),r.write_shift(4,17600),r.write_shift(4,500),r.write_shift(4,t),r.write_shift(4,t),r.write_shift(1,120),r.length>r.l?r.slice(0,r.l):r}(o)),Ir(t,136))}}(e,t),function jYe(t,r){Ir(t,143);for(var e=0;e!=r.SheetNames.length;++e)Ir(t,156,PYe({Hidden:r.Workbook&&r.Workbook.Sheets&&r.Workbook.Sheets[e]&&r.Workbook.Sheets[e].Hidden||0,iTabID:e+1,strRelID:"rId"+(e+1),name:r.SheetNames[e]}));Ir(t,144)}(e,t),Ir(e,132),e.end()}function oWe(t,r,e,i,o){return(".bin"===r.slice(-4)?_Ye:oae)(t,e,i,o)}function lWe(t,r,e){return(".bin"===r.slice(-4)?$9e:$se)(t,e)}function gae(t){return so("NamedRange",null,{"ss:Name":t.Name,"ss:RefersTo":"="+cz(t.Ref,{r:0,c:0})})}function SWe(t,r,e,i,o,s,a){if(!t||null==t.v&&null==t.f)return"";var l={};if(t.f&&(l["ss:Formula"]="="+zc(cz(t.f,a))),t.F&&t.F.slice(0,r.length)==r){var c=Kd(t.F.slice(r.length+1));l["ss:ArrayRange"]="RC:R"+(c.r==a.r?"":"["+(c.r-a.r)+"]")+"C"+(c.c==a.c?"":"["+(c.c-a.c)+"]")}if(t.l&&t.l.Target&&(l["ss:HRef"]=zc(t.l.Target),t.l.Tooltip&&(l["x:HRefScreenTip"]=zc(t.l.Tooltip))),e["!merges"])for(var d=e["!merges"],f=0;f!=d.length;++f)d[f].s.c!=a.c||d[f].s.r!=a.r||(d[f].e.c>d[f].s.c&&(l["ss:MergeAcross"]=d[f].e.c-d[f].s.c),d[f].e.r>d[f].s.r&&(l["ss:MergeDown"]=d[f].e.r-d[f].s.r));var v="",w="";switch(t.t){case"z":if(!i.sheetStubs)return"";break;case"n":v="Number",w=String(t.v);break;case"b":v="Boolean",w=t.v?"1":"0";break;case"e":v="Error",w=Gb[t.v];break;case"d":v="DateTime",w=new Date(t.v).toISOString(),null==t.z&&(t.z=t.z||ea[14]);break;case"s":v="String",w=function WGe(t){return(t+"").replace(DW,function(e){return EW[e]}).replace(aoe,function(e){return"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"})}(t.v||"")}var x=uT(i.cellXfs,t,i);l["ss:StyleID"]="s"+(21+x),l["ss:Index"]=a.c+1;var M="z"==t.t?"":'<Data ss:Type="'+v+'">'+(null!=t.v?w:"")+"</Data>";return(t.c||[]).length>0&&(M+=function TWe(t){return t.map(function(r){var e=function zGe(t){return t.replace(/(\r\n|[\r\n])/g,"&#10;")}(r.t||""),i=so("ss:Data",e,{xmlns:"http://www.w3.org/TR/REC-html40"});return so("Comment",i,{"ss:Author":r.a})}).join("")}(t.c)),so("Cell",M,l)}function xWe(t,r){var e='<Row ss:Index="'+(t+1)+'"';return r&&(r.hpt&&!r.hpx&&(r.hpx=W7(r.hpt)),r.hpx&&(e+=' ss:AutoFitHeight="0" ss:Height="'+r.hpx+'"'),r.hidden&&(e+=' ss:Hidden="1"')),e+">"}function DWe(t,r,e){var i=[],s=e.Sheets[e.SheetNames[t]],a=s?function CWe(t,r,e,i){if(!t||!((i||{}).Workbook||{}).Names)return"";for(var o=i.Workbook.Names,s=[],a=0;a<o.length;++a){var l=o[a];l.Sheet==e&&(l.Name.match(/^_xlfn\./)||s.push(gae(l)))}return s.join("")}(s,0,t,e):"";return a.length>0&&i.push("<Names>"+a+"</Names>"),a=s?function EWe(t,r){if(!t["!ref"])return"";var o=jl(t["!ref"]),s=t["!merges"]||[],a=0,l=[];t["!cols"]&&t["!cols"].forEach(function(F,re){lT(F);var pe=!!F.width,we=J7(re,F),je={"ss:Index":re+1};pe&&(je["ss:Width"]=iF(we.width)),F.hidden&&(je["ss:Hidden"]="1"),l.push(so("Column",null,je))});for(var c=Array.isArray(t),d=o.s.r;d<=o.e.r;++d){for(var f=[xWe(d,(t["!rows"]||[])[d])],v=o.s.c;v<=o.e.c;++v){var w=!1;for(a=0;a!=s.length;++a)if(!(s[a].s.c>v||s[a].s.r>d||s[a].e.c<v||s[a].e.r<d)){(s[a].s.c!=v||s[a].s.r!=d)&&(w=!0);break}if(!w){var x={r:d,c:v},I=ca(x);f.push(SWe(c?(t[d]||[])[v]:t[I],I,t,r,0,0,x))}}f.push("</Row>"),f.length>2&&l.push(f.join(""))}return l.join("")}(s,r):"",a.length>0&&i.push("<Table>"+a+"</Table>"),i.push(function wWe(t,r,e,i){if(!t)return"";var o=[];if(t["!margins"]&&(o.push("<PageSetup>"),t["!margins"].header&&o.push(so("Header",null,{"x:Margin":t["!margins"].header})),t["!margins"].footer&&o.push(so("Footer",null,{"x:Margin":t["!margins"].footer})),o.push(so("PageMargins",null,{"x:Bottom":t["!margins"].bottom||"0.75","x:Left":t["!margins"].left||"0.7","x:Right":t["!margins"].right||"0.7","x:Top":t["!margins"].top||"0.75"})),o.push("</PageSetup>")),i&&i.Workbook&&i.Workbook.Sheets&&i.Workbook.Sheets[e])if(i.Workbook.Sheets[e].Hidden)o.push(so("Visible",1==i.Workbook.Sheets[e].Hidden?"SheetHidden":"SheetVeryHidden",{}));else{for(var s=0;s<e&&(!i.Workbook.Sheets[s]||i.Workbook.Sheets[s].Hidden);++s);s==e&&o.push("<Selected/>")}return((((i||{}).Workbook||{}).Views||[])[0]||{}).RTL&&o.push("<DisplayRightToLeft/>"),t["!protect"]&&(o.push(Lh("ProtectContents","True")),t["!protect"].objects&&o.push(Lh("ProtectObjects","True")),t["!protect"].scenarios&&o.push(Lh("ProtectScenarios","True")),null==t["!protect"].selectLockedCells||t["!protect"].selectLockedCells?null!=t["!protect"].selectUnlockedCells&&!t["!protect"].selectUnlockedCells&&o.push(Lh("EnableSelection","UnlockedCells")):o.push(Lh("EnableSelection","NoSelection")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(a){t["!protect"][a[0]]&&o.push("<"+a[1]+"/>")})),0==o.length?"":so("WorksheetOptions",o.join(""),{xmlns:xg_x})}(s,0,t,e)),i.join("")}function kWe(t,r){r||(r={}),t.SSF||(t.SSF=vu(ea)),t.SSF&&(Bk(),$O(t.SSF),r.revssf=I7(t.SSF),r.revssf[t.SSF[65535]]=0,r.ssf=t.SSF,r.cellXfs=[],uT(r.cellXfs,{},{revssf:{General:0}}));var e=[];e.push(function vWe(t,r){var e=[];return t.Props&&e.push(function W6e(t,r){var e=[];return Ad(QW).map(function(i){for(var o=0;o<Bb.length;++o)if(Bb[o][1]==i)return Bb[o];for(o=0;o<r2.length;++o)if(r2[o][1]==i)return r2[o];throw i}).forEach(function(i){if(null!=t[i[1]]){var o=r&&r.Props&&null!=r.Props[i[1]]?r.Props[i[1]]:t[i[1]];"date"===i[2]&&(o=new Date(o).toISOString().replace(/\.\d*Z/,"Z")),"number"==typeof o?o=String(o):!0===o||!1===o?o=o?"1":"0":o instanceof Date&&(o=new Date(o).toISOString().replace(/\.\d*Z/,"")),e.push(Lh(QW[i[1]]||i[1],o))}}),so("DocumentProperties",e.join(""),{xmlns:xg_o})}(t.Props,r)),t.Custprops&&e.push(function z6e(t,r){var e=["Worksheets","SheetNames"],i="CustomDocumentProperties",o=[];return t&&Ad(t).forEach(function(s){if(Object.prototype.hasOwnProperty.call(t,s)){for(var a=0;a<Bb.length;++a)if(s==Bb[a][1])return;for(a=0;a<r2.length;++a)if(s==r2[a][1])return;for(a=0;a<e.length;++a)if(s==e[a])return;var l=t[s],c="string";"number"==typeof l?(c="float",l=String(l)):!0===l||!1===l?(c="boolean",l=l?"1":"0"):l=String(l),o.push(so(soe(s),l,{"dt:dt":c}))}}),r&&Ad(r).forEach(function(s){if(Object.prototype.hasOwnProperty.call(r,s)&&(!t||!Object.prototype.hasOwnProperty.call(t,s))){var a=r[s],l="string";"number"==typeof a?(l="float",a=String(a)):!0===a||!1===a?(l="boolean",a=a?"1":"0"):a instanceof Date?(l="dateTime.tz",a=a.toISOString()):a=String(a),o.push(so(soe(s),a,{"dt:dt":l}))}}),"<"+i+' xmlns="'+xg_o+'">'+o.join("")+"</"+i+">"}(t.Props,t.Custprops)),e.join("")}(t,r)),e.push(""),e.push(""),e.push("");for(var i=0;i<t.SheetNames.length;++i)e.push(so("Worksheet",DWe(i,r,t),{"ss:Name":zc(t.SheetNames[i])}));return e[2]=function yWe(t,r){var e=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return r.cellXfs.forEach(function(i,o){var s=[];s.push(so("NumberFormat",null,{"ss:Format":zc(ea[i.numFmtId])}));var a={"ss:ID":"s"+(21+o)};e.push(so("Style",s.join(""),a))}),so("Styles",e.join(""))}(0,r),e[3]=function bWe(t){if(!((t||{}).Workbook||{}).Names)return"";for(var r=t.Workbook.Names,e=[],i=0;i<r.length;++i){var o=r[i];null==o.Sheet&&(o.Name.match(/^_xlfn\./)||e.push(gae(o)))}return so("Names",e.join(""))}(t),Rd+so("Workbook",e.join(""),{xmlns:xg_ss,"xmlns:o":xg_o,"xmlns:x":xg_x,"xmlns:ss":xg_ss,"xmlns:dt":"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882","xmlns:html":"http://www.w3.org/TR/REC-html40"})}var hF={0:{f:function r$e(t,r){var e={},i=t.l+r;e.r=t.read_shift(4),t.l+=4;var o=t.read_shift(2);t.l+=1;var s=t.read_shift(1);return t.l=i,7&s&&(e.level=7&s),16&s&&(e.hidden=!0),32&s&&(e.hpt=o/20),e}},1:{f:function p$e(t){return[Nv(t)]}},2:{f:function M$e(t){return[Nv(t),$W(t),"n"]}},3:{f:function b$e(t){return[Nv(t),t.read_shift(1),"e"]}},4:{f:function g$e(t){return[Nv(t),t.read_shift(1),"b"]}},5:{f:function k$e(t){return[Nv(t),wf(t),"n"]}},6:{f:function L$e(t){return[Nv(t),Cf(t),"str"]}},7:{f:function S$e(t){return[Nv(t),t.read_shift(4),"s"]}},8:{f:function U$e(t,r,e){var i=t.l+r,o=Nv(t);o.r=e["!row"];var a=[o,Cf(t),"str"];if(e.cellFormula){t.l+=2;var l=K7(t,i-t.l,e);a[3]=xf(l,0,o,e.supbooks,e)}else t.l=i;return a}},9:{f:function H$e(t,r,e){var i=t.l+r,o=Nv(t);o.r=e["!row"];var a=[o,wf(t),"n"];if(e.cellFormula){t.l+=2;var l=K7(t,i-t.l,e);a[3]=xf(l,0,o,e.supbooks,e)}else t.l=i;return a}},10:{f:function V$e(t,r,e){var i=t.l+r,o=Nv(t);o.r=e["!row"];var a=[o,t.read_shift(1),"b"];if(e.cellFormula){t.l+=2;var l=K7(t,i-t.l,e);a[3]=xf(l,0,o,e.supbooks,e)}else t.l=i;return a}},11:{f:function j$e(t,r,e){var i=t.l+r,o=Nv(t);o.r=e["!row"];var a=[o,t.read_shift(1),"e"];if(e.cellFormula){t.l+=2;var l=K7(t,i-t.l,e);a[3]=xf(l,0,o,e.supbooks,e)}else t.l=i;return a}},12:{f:function f$e(t){return[Zx(t)]}},13:{f:function O$e(t){return[Zx(t),$W(t),"n"]}},14:{f:function w$e(t){return[Zx(t),t.read_shift(1),"e"]}},15:{f:function _$e(t){return[Zx(t),t.read_shift(1),"b"]}},16:{f:function sae(t){return[Zx(t),wf(t),"n"]}},17:{f:function G$e(t){return[Zx(t),Cf(t),"str"]}},18:{f:function E$e(t){return[Zx(t),t.read_shift(4),"s"]}},19:{f:VW},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:function BYe(t,r,e){var i=t.l+r;t.l+=4,t.l+=1;var o=t.read_shift(4),s=y6e(t),a=bUe(t,0,e),l=jW(t);t.l=i;var c={Name:s,Ptg:a};return o<268435455&&(c.Sheet=o),l&&(c.Comment=l),c}},40:{},42:{},43:{f:function Lje(t,r,e){var i={};i.sz=t.read_shift(2)/20;var o=function w6e(t){var r=t.read_shift(1);return t.l++,{fBold:1&r,fItalic:2&r,fUnderline:4&r,fStrikeout:8&r,fOutline:16&r,fShadow:32&r,fCondense:64&r,fExtend:128&r}}(t);switch(o.fItalic&&(i.italic=1),o.fCondense&&(i.condense=1),o.fExtend&&(i.extend=1),o.fShadow&&(i.shadow=1),o.fOutline&&(i.outline=1),o.fStrikeout&&(i.strike=1),700===t.read_shift(2)&&(i.bold=1),t.read_shift(2)){case 1:i.vertAlign="superscript";break;case 2:i.vertAlign="subscript"}var a=t.read_shift(1);0!=a&&(i.underline=a);var l=t.read_shift(1);l>0&&(i.family=l);var c=t.read_shift(1);switch(c>0&&(i.charset=c),t.l++,i.color=function C6e(t){var r={},i=t.read_shift(1)>>>1,o=t.read_shift(1),s=t.read_shift(2,"i"),a=t.read_shift(1),l=t.read_shift(1),c=t.read_shift(1);switch(t.l++,i){case 0:r.auto=1;break;case 1:r.index=o;var d=i2[o];d&&(r.rgb=nF(d));break;case 2:r.rgb=nF([a,l,c]);break;case 3:r.theme=o}return 0!=s&&(r.tint=s>0?s/32767:s/32768),r}(t),t.read_shift(1)){case 1:i.scheme="major";break;case 2:i.scheme="minor"}return i.name=Cf(t),i}},44:{f:function Fje(t,r){return[t.read_shift(2),Cf(t)]}},45:{f:Bje},46:{f:jje},47:{f:function Vje(t,r){var e=t.l+r,i=t.read_shift(2),o=t.read_shift(2);return t.l=e,{ixfe:i,numFmtId:o}}},48:{},49:{f:function p6e(t){return t.read_shift(4,"i")}},50:{},51:{f:function C9e(t){for(var r=[],e=t.read_shift(4);e-- >0;)r.push([t.read_shift(4),t.read_shift(4)]);return r}},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:function Sse(t,r,e){if(!e.cellStyles)return bf(t,r);var i=e&&e.biff>=12?4:2,o=t.read_shift(i),s=t.read_shift(i),a=t.read_shift(i),l=t.read_shift(i),c=t.read_shift(2);2==i&&(t.l+=2);var d={s:o,e:s,w:a,ixfe:l,flags:c};return(e.biff>=5||!e.biff)&&(d.level=c>>8&7),d}},62:{f:function P$e(t){return[Nv(t),VW(t),"is"]}},63:{f:function A9e(t){var r={};r.i=t.read_shift(4);var e={};e.r=t.read_shift(4),e.c=t.read_shift(4),r.r=ca(e);var i=t.read_shift(1);return 2&i&&(r.l="1"),8&i&&(r.a="1"),r}},64:{f:function oYe(){}},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:bf,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:function tYe(t){var r=t.read_shift(2);return t.l+=28,{RTL:32&r}}},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:function u$e(t,r){var e={},i=t[t.l];return++t.l,e.above=!(64&i),e.left=!(128&i),t.l+=18,e.name=_6e(t,r-19),e}},148:{f:a$e,p:16},151:{f:function X$e(){}},152:{},153:{f:function LYe(t,r){var e={},i=t.read_shift(4);e.defaultThemeVersion=t.read_shift(4);var o=r>8?Cf(t):"";return o.length>0&&(e.CodeName=o),e.autoCompressPictures=!!(65536&i),e.backupFile=!!(64&i),e.checkCompatibility=!!(4096&i),e.date1904=!!(1&i),e.filterPrivacy=!!(8&i),e.hidePivotFieldList=!!(1024&i),e.promptedSolutions=!!(16&i),e.publishItems=!!(2048&i),e.refreshAllConnections=!!(262144&i),e.saveExternalLinkValues=!!(128&i),e.showBorderUnselectedTables=!!(4&i),e.showInkAnnotation=!!(32&i),e.showObjects=["all","placeholders","none"][i>>13&3],e.showPivotChartFilter=!!(32768&i),e.updateLinks=["userSet","never","always"][i>>8&3],e}},154:{},155:{},156:{f:function FYe(t,r){var e={};return e.Hidden=t.read_shift(4),e.iTabID=t.read_shift(4),e.strRelID=HW(t,r-8),e.name=Cf(t),e}},157:{},158:{},159:{T:1,f:function nje(t){return[t.read_shift(4),t.read_shift(4)]}},160:{T:-1},161:{T:1,f:t2},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:$$e},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:function y9e(t,r){return{flags:t.read_shift(4),version:t.read_shift(4),name:Cf(t)}}},336:{T:-1},337:{f:function S9e(t){return t.l+=4,0!=t.read_shift(4)},T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:HW},357:{},358:{},359:{},360:{T:1},361:{},362:{f:function wse(t,r,e){if(e.biff<8)return function aVe(t,r,e){3==t[t.l+1]&&t[t.l]++;var i=eF(t,0,e);return 3==i.charCodeAt(0)?i.slice(1):i}(t,0,e);for(var i=[],o=t.l+r,s=t.read_shift(e.biff>8?4:2);0!=s--;)i.push(mBe(t,0,e));if(t.l!=o)throw new Error("Bad ExternSheet: "+t.l+" != "+o);return i}},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:function K$e(t,r,e){var i=t.l+r,o=Foe(t),s=t.read_shift(1),a=[o];if(a[2]=s,e.cellFormula){var l=yUe(t,i-t.l,e);a[1]=l}else t.l=i;return a}},427:{f:function Q$e(t,r,e){var i=t.l+r,s=[t2(t,16)];if(e.cellFormula){var a=CUe(t,i-t.l,e);s[1]=a,t.l=i}else t.l=i;return s}},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:function Z$e(t){var r={};return aae.forEach(function(e){r[e]=wf(t)}),r}},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:function c$e(){}},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:function z$e(t,r){var e=t.l+r,i=t2(t,16),o=jW(t),s=Cf(t),a=Cf(t),l=Cf(t);t.l=e;var c={rfx:i,relId:o,loc:s,display:l};return a&&(c.Tooltip=a),c}},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:HW},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:j9e},633:{T:1},634:{T:-1},635:{T:1,f:function B9e(t){var r={};r.iauthor=t.read_shift(4);var e=t2(t,16);return r.rfx=e.s,r.ref=ca(e.s),t.l+=16,r}},636:{T:-1},637:{f:g6e},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:function TYe(t,r){return t.l+=10,{name:Cf(t)}}},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:function sYe(){}},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}};function vo(t,r,e,i){var o=r;if(!isNaN(o)){var s=i||(e||[]).length||0,a=t.next(4);a.write_shift(2,o),a.write_shift(2,s),s>0&&LW(e)&&t.push(e)}}function fF(t,r,e){return t||(t=er(7)),t.write_shift(2,r),t.write_shift(2,e),t.write_shift(2,0),t.write_shift(1,0),t}function BWe(t,r,e,i){if(null!=r.v)switch(r.t){case"d":case"n":var o="d"==r.t?ih(vd(r.v)):r.v;return void(o==(0|o)&&o>=0&&o<65536?vo(t,2,function VVe(t,r,e){var i=er(9);return fF(i,t,r),i.write_shift(2,e),i}(e,i,o)):vo(t,3,function GVe(t,r,e){var i=er(15);return fF(i,t,r),i.write_shift(8,e,"f"),i}(e,i,o)));case"b":case"e":return void vo(t,5,function NWe(t,r,e,i){var o=er(9);return fF(o,t,r),sse(e,i||"b",o),o}(e,i,r.v,r.t));case"s":case"str":return void vo(t,4,function GWe(t,r,e){var i=er(8+2*e.length);return fF(i,t,r),i.write_shift(1,e.length),i.write_shift(e.length,e,"sbcs"),i.l<i.length?i.slice(0,i.l):i}(e,i,(r.v||"").slice(0,255)))}vo(t,1,fF(null,e,i))}function qWe(t,r,e,i,o){var s=16+uT(o.cellXfs,r,o);if(null!=r.v||r.bf)if(r.bf)vo(t,6,function _Ue(t,r,e,i,o){var s=a2(r,e,o),a=function vUe(t){if(null==t){var r=er(8);return r.write_shift(1,3),r.write_shift(1,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,65535),r}return n2("number"==typeof t?t:0)}(t.v),l=er(6);l.write_shift(2,33),l.write_shift(4,0);for(var d=er(t.bf.length),f=0;f<t.bf.length;++f)d[f]=t.bf[f];return nh([s,a,l,d])}(r,e,i,0,s));else switch(r.t){case"d":case"n":vo(t,515,function rVe(t,r,e,i){var o=er(14);return a2(t,r,i,o),n2(e,o),o}(e,i,"d"==r.t?ih(vd(r.v)):r.v,s));break;case"b":case"e":vo(t,517,function nVe(t,r,e,i,o,s){var a=er(8);return a2(t,r,i,a),sse(e,s,a),a}(e,i,r.v,s,0,r.t));break;case"s":case"str":o.bookSST?vo(t,253,function HBe(t,r,e,i){var o=er(10);return a2(t,r,i,o),o.write_shift(4,e),o}(e,i,hz(o.Strings,r.v,o.revStrings),s)):vo(t,516,function $Be(t,r,e,i,o){var s=!o||8==o.biff,a=er(+s+8+(1+s)*e.length);return a2(t,r,i,a),a.write_shift(2,e.length),s&&a.write_shift(1,1),a.write_shift((1+s)*e.length,e,s?"utf16le":"sbcs"),a}(e,i,(r.v||"").slice(0,255),s,o));break;default:vo(t,513,a2(e,i,s))}else vo(t,513,a2(e,i,s))}function XWe(t,r,e){var f,i=tm(),o=e.SheetNames[t],s=e.Sheets[o]||{},a=(e||{}).Workbook||{},l=(a.Sheets||[])[t]||{},c=Array.isArray(s),d=8==r.biff,v="",w=[],x=jl(s["!ref"]||"A1"),I=d?65536:16384;if(x.e.c>255||x.e.r>=I){if(r.WTF)throw new Error("Range "+(s["!ref"]||"A1")+" exceeds format limit A1:IV16384");x.e.c=Math.min(x.e.c,255),x.e.r=Math.min(x.e.c,I-1)}vo(i,2057,tz(0,16,r)),vo(i,13,Gv(1)),vo(i,12,Gv(100)),vo(i,15,im(!0)),vo(i,17,im(!1)),vo(i,16,n2(.001)),vo(i,95,im(!0)),vo(i,42,im(!1)),vo(i,43,im(!1)),vo(i,130,Gv(1)),vo(i,128,function tVe(t){var r=er(8);return r.write_shift(4,0),r.write_shift(2,t[0]?t[0]+1:0),r.write_shift(2,t[1]?t[1]+1:0),r}([0,0])),vo(i,131,im(!1)),vo(i,132,im(!1)),d&&function zWe(t,r){if(r){var e=0;r.forEach(function(i,o){++e<=256&&i&&vo(t,125,function kVe(t,r){var e=er(12);e.write_shift(2,r),e.write_shift(2,r),e.write_shift(2,256*t.width),e.write_shift(2,0);var i=0;return t.hidden&&(i|=1),e.write_shift(1,i),e.write_shift(1,i=t.level||0),e.write_shift(2,0),e}(J7(o,i),o))})}}(i,s["!cols"]),vo(i,512,function qBe(t,r){var e=8!=r.biff&&r.biff?2:4,i=er(2*e+6);return i.write_shift(e,t.s.r),i.write_shift(e,t.e.r+1),i.write_shift(2,t.s.c),i.write_shift(2,t.e.c+1),i.write_shift(2,0),i}(x,r)),d&&(s["!links"]=[]);for(var M=x.s.r;M<=x.e.r;++M){v=Od(M);for(var F=x.s.c;F<=x.e.c;++F){M===x.s.r&&(w[F]=Bu(F)),f=w[F]+v;var re=c?(s[M]||[])[F]:s[f];re&&(qWe(i,re,M,F,r),d&&re.l&&s["!links"].push([f,re.l]))}}var pe=l.CodeName||l.name||o;return d&&vo(i,574,function NBe(t){var r=er(18),e=1718;return t&&t.RTL&&(e|=64),r.write_shift(2,e),r.write_shift(4,0),r.write_shift(4,64),r.write_shift(4,0),r.write_shift(4,0),r}((a.Views||[])[0])),d&&(s["!merges"]||[]).length&&vo(i,229,function fVe(t){var r=er(2+8*t.length);r.write_shift(2,t.length);for(var e=0;e<t.length;++e)pse(t[e],r);return r}(s["!merges"])),d&&function WWe(t,r){for(var e=0;e<r["!links"].length;++e){var i=r["!links"][e];vo(t,440,bVe(i)),i[1].Tooltip&&vo(t,2048,wVe(i))}delete r["!links"]}(i,s),vo(i,442,ase(pe)),d&&function $We(t,r){var e=er(19);e.write_shift(4,2151),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(2,3),e.write_shift(1,1),e.write_shift(4,0),vo(t,2151,e),(e=er(39)).write_shift(4,2152),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(2,3),e.write_shift(1,0),e.write_shift(4,0),e.write_shift(2,1),e.write_shift(4,4),e.write_shift(2,0),pse(jl(r["!ref"]||"A1"),e),e.write_shift(4,4),vo(t,2152,e)}(i,s),vo(i,10),i.end()}function KWe(t,r,e){var i=tm(),o=(t||{}).Workbook||{},s=o.Sheets||[],a=o.WBProps||{},l=8==e.biff,c=5==e.biff;vo(i,2057,tz(0,5,e)),"xla"==e.bookType&&vo(i,135),vo(i,225,l?Gv(1200):null),vo(i,193,function nBe(t,r){r||(r=er(t));for(var e=0;e<t;++e)r.write_shift(1,0);return r}(2)),c&&vo(i,191),c&&vo(i,192),vo(i,226),vo(i,92,function SBe(t,r){var e=!r||8==r.biff,i=er(e?112:54);for(i.write_shift(8==r.biff?2:1,7),e&&i.write_shift(1,0),i.write_shift(4,859007059),i.write_shift(4,5458548|(e?0:536870912));i.l<i.length;)i.write_shift(1,e?0:32);return i}(0,e)),vo(i,66,Gv(l?1200:1252)),l&&vo(i,353,Gv(0)),l&&vo(i,448),vo(i,317,function MVe(t){for(var r=er(2*t),e=0;e<t;++e)r.write_shift(2,e+1);return r}(t.SheetNames.length)),l&&t.vbaraw&&vo(i,211),l&&t.vbaraw&&vo(i,442,ase(a.CodeName||"ThisWorkbook")),vo(i,156,Gv(17)),vo(i,25,im(!1)),vo(i,18,im(!1)),vo(i,19,Gv(0)),l&&vo(i,431,im(!1)),l&&vo(i,444,Gv(0)),vo(i,61,function PBe(){var t=er(18);return t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,29280),t.write_shift(2,17600),t.write_shift(2,56),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,1),t.write_shift(2,500),t}()),vo(i,64,im(!1)),vo(i,141,Gv(0)),vo(i,34,im("true"==function IYe(t){return t.Workbook&&t.Workbook.WBProps&&function od(t){switch(t){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}(t.Workbook.WBProps.date1904)?"true":"false"}(t))),vo(i,14,im(!0)),l&&vo(i,439,im(!1)),vo(i,218,Gv(0)),function HWe(t,r,e){vo(t,49,function VBe(t,r){var e=t.name||"Arial",i=r&&5==r.biff,s=er(i?15+e.length:16+2*e.length);return s.write_shift(2,20*(t.sz||12)),s.write_shift(4,0),s.write_shift(2,400),s.write_shift(4,0),s.write_shift(2,0),s.write_shift(1,e.length),i||s.write_shift(1,1),s.write_shift((i?1:2)*e.length,e,i?"sbcs":"utf16le"),s}({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},e))}(i,0,e),function UWe(t,r,e){r&&[[5,8],[23,26],[41,44],[50,392]].forEach(function(i){for(var o=i[0];o<=i[1];++o)null!=r[o]&&vo(t,1054,WBe(o,r[o],e))})}(i,t.SSF,e),function YWe(t,r){for(var e=0;e<16;++e)vo(t,224,vse({numFmtId:0,style:!0},0,r));r.cellXfs.forEach(function(i){vo(t,224,vse(i,0,r))})}(i,e),l&&vo(i,352,im(!1));var f=i.end(),v=tm();l&&vo(v,140,function SVe(t){return t||(t=er(4)),t.write_shift(2,1),t.write_shift(2,1),t}()),l&&e.Strings&&function LWe(t,r,e,i){var o=i||(e||[]).length||0;if(o<=8224)return vo(t,r,e,o);var s=r;if(!isNaN(s)){for(var a=e.parts||[],l=0,c=0,d=0;d+(a[l]||8224)<=8224;)d+=a[l]||8224,l++;var f=t.next(4);for(f.write_shift(2,s),f.write_shift(2,d),t.push(e.slice(c,c+d)),c+=d;c<o;){for((f=t.next(4)).write_shift(2,60),d=0;d+(a[l]||8224)<=8224;)d+=a[l]||8224,l++;f.write_shift(2,d),t.push(e.slice(c,c+d)),c+=d}}}(v,252,function IBe(t){var e=er(8);e.write_shift(4,t.Count),e.write_shift(4,t.Unique);for(var i=[],o=0;o<t.length;++o)i[o]=sBe(t[o]);var s=nh([e].concat(i));return s.parts=[e.length].concat(i.map(function(a){return a.length})),s}(e.Strings)),vo(v,10);var w=v.end(),x=tm(),I=0,M=0;for(M=0;M<t.SheetNames.length;++M)I+=(l?12:11)+(l?2:1)*t.SheetNames[M].length;var F=f.length+I+w.length;for(M=0;M<t.SheetNames.length;++M)vo(x,133,DBe({pos:F,hs:(s[M]||{}).Hidden||0,dt:0,name:t.SheetNames[M]},e)),F+=r[M].length;var pe=x.end();if(I!=pe.length)throw new Error("BS8 "+I+" != "+pe.length);var we=[];return f.length&&we.push(f),pe.length&&we.push(pe),w.length&&we.push(w),nh(we)}function _ae(t,r){for(var e=0;e<=t.SheetNames.length;++e){var i=t.Sheets[t.SheetNames[e]];i&&i["!ref"]&&nm(i["!ref"]).e.c>255&&typeof console<"u"&&console.error&&console.error("Worksheet '"+t.SheetNames[e]+"' extends beyond column IV (255).  Data may be lost.")}var s=r||{};switch(s.biff||2){case 8:case 5:return function QWe(t,r){var e=r||{},i=[];t&&!t.SSF&&(t.SSF=vu(ea)),t&&t.SSF&&(Bk(),$O(t.SSF),e.revssf=I7(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF),e.Strings=[],e.Strings.Count=0,e.Strings.Unique=0,xz(e),e.cellXfs=[],uT(e.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={});for(var o=0;o<t.SheetNames.length;++o)i[i.length]=XWe(o,e,t);return i.unshift(KWe(t,i,e)),nh(i)}(t,r);case 4:case 3:case 2:return function jWe(t,r){for(var e=r||{},i=tm(),o=0,s=0;s<t.SheetNames.length;++s)t.SheetNames[s]==e.sheet&&(o=s);if(0==o&&e.sheet&&t.SheetNames[0]!=e.sheet)throw new Error("Sheet not found: "+e.sheet);return vo(i,4==e.biff?1033:3==e.biff?521:9,tz(0,16,e)),function VWe(t,r,e,i){var a,o=Array.isArray(r),s=jl(r["!ref"]||"A1"),l="",c=[];if(s.e.c>255||s.e.r>16383){if(i.WTF)throw new Error("Range "+(r["!ref"]||"A1")+" exceeds format limit A1:IV16384");s.e.c=Math.min(s.e.c,255),s.e.r=Math.min(s.e.c,16383),a=Na(s)}for(var d=s.s.r;d<=s.e.r;++d){l=Od(d);for(var f=s.s.c;f<=s.e.c;++f){d===s.s.r&&(c[f]=Bu(f)),a=c[f]+l;var v=o?(r[d]||[])[f]:r[a];v&&BWe(t,v,d,f)}}}(i,t.Sheets[t.SheetNames[o]],0,e),vo(i,10),i.end()}(t,r)}throw new Error("invalid type "+s.bookType+" for BIFF")}function bae(t,r,e,i){for(var o=t["!merges"]||[],s=[],a=r.s.c;a<=r.e.c;++a){for(var l=0,c=0,d=0;d<o.length;++d)if(!(o[d].s.r>e||o[d].s.c>a||o[d].e.r<e||o[d].e.c<a)){if(o[d].s.r<e||o[d].s.c<a){l=-1;break}l=o[d].e.r-o[d].s.r+1,c=o[d].e.c-o[d].s.c+1;break}if(!(l<0)){var f=ca({r:e,c:a}),v=i.dense?(t[e]||[])[a]:t[f],w=v&&null!=v.v&&(v.h||loe(v.w||(Ny(v),v.w)||""))||"",x={};l>1&&(x.rowspan=l),c>1&&(x.colspan=c),i.editable?w='<span contenteditable="true">'+w+"</span>":v&&(x["data-t"]=v&&v.t||"z",null!=v.v&&(x["data-v"]=v.v),null!=v.z&&(x["data-z"]=v.z),v.l&&"#"!=(v.l.Target||"#").charAt(0)&&(w='<a href="'+v.l.Target+'">'+w+"</a>")),x.id=(i.id||"sjs")+"-"+f,s.push(so("td",w,x))}}return"<tr>"+s.join("")+"</tr>"}function Sae(t,r){var e=r||{},o=null!=e.footer?e.footer:"</body></html>",s=[null!=e.header?e.header:'<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>'],a=nm(t["!ref"]);e.dense=Array.isArray(t),s.push(function Tae(t,r,e){return[].join("")+"<table"+(e&&e.id?' id="'+e.id+'"':"")+">"}(0,0,e));for(var l=a.s.r;l<=a.e.r;++l)s.push(bae(t,a,l,e));return s.push("</table>"+o),s.join("")}function xae(t,r,e){var i=e||{},o=0,s=0;if(null!=i.origin)if("number"==typeof i.origin)o=i.origin;else{var a="string"==typeof i.origin?Kd(i.origin):i.origin;o=a.r,s=a.c}var l=r.getElementsByTagName("tr"),c=Math.min(i.sheetRows||1e7,l.length),d={s:{r:0,c:0},e:{r:o,c:s}};if(t["!ref"]){var f=nm(t["!ref"]);d.s.r=Math.min(d.s.r,f.s.r),d.s.c=Math.min(d.s.c,f.s.c),d.e.r=Math.max(d.e.r,f.e.r),d.e.c=Math.max(d.e.c,f.e.c),-1==o&&(d.e.r=o=f.e.r+1)}var v=[],w=0,x=t["!rows"]||(t["!rows"]=[]),I=0,M=0,F=0,re=0,pe=0,we=0;for(t["!cols"]||(t["!cols"]=[]);I<l.length&&M<c;++I){var je=l[I];if(Dae(je)){if(i.display)continue;x[M]={hidden:!0}}var tt=je.children;for(F=re=0;F<tt.length;++F){var nt=tt[F];if(!i.display||!Dae(nt)){var rt=nt.hasAttribute("data-v")?nt.getAttribute("data-v"):nt.hasAttribute("v")?nt.getAttribute("v"):poe(nt.innerHTML),lt=nt.getAttribute("data-z")||nt.getAttribute("z");for(w=0;w<v.length;++w){var bt=v[w];bt.s.c==re+s&&bt.s.r<M+o&&M+o<=bt.e.r&&(re=bt.e.c+1-s,w=-1)}we=+nt.getAttribute("colspan")||1,((pe=+nt.getAttribute("rowspan")||1)>1||we>1)&&v.push({s:{r:M+o,c:re+s},e:{r:M+o+(pe||1)-1,c:re+s+(we||1)-1}});var Wt={t:"s",v:rt},Zt=nt.getAttribute("data-t")||nt.getAttribute("t")||"";null!=rt&&(0==rt.length?Wt.t=Zt||"z":i.raw||0==rt.trim().length||"s"==Zt||("TRUE"===rt?Wt={t:"b",v:!0}:"FALSE"===rt?Wt={t:"b",v:!1}:isNaN(t0(rt))?isNaN(Vk(rt).getDate())||(Wt={t:"d",v:vd(rt)},i.cellDates||(Wt={t:"n",v:ih(Wt.v)}),Wt.z=i.dateNF||ea[14]):Wt={t:"n",v:t0(rt)})),void 0===Wt.z&&null!=lt&&(Wt.z=lt);var en="",ci=nt.getElementsByTagName("A");if(ci&&ci.length)for(var Wi=0;Wi<ci.length&&(!ci[Wi].hasAttribute("href")||"#"==(en=ci[Wi].getAttribute("href")).charAt(0));++Wi);en&&"#"!=en.charAt(0)&&(Wt.l={Target:en}),i.dense?(t[M+o]||(t[M+o]=[]),t[M+o][re+s]=Wt):t[ca({c:re+s,r:M+o})]=Wt,d.e.c<re+s&&(d.e.c=re+s),re+=we}}++M}return v.length&&(t["!merges"]=(t["!merges"]||[]).concat(v)),d.e.r=Math.max(d.e.r,M-1+o),t["!ref"]=Na(d),M>=c&&(t["!fullref"]=Na((d.e.r=l.length-I+M-1+o,d))),t}function Eae(t,r){return xae((r||{}).dense?[]:{},t,r)}function Dae(t){var r="",e=function eze(t){return t.ownerDocument.defaultView&&"function"==typeof t.ownerDocument.defaultView.getComputedStyle?t.ownerDocument.defaultView.getComputedStyle:"function"==typeof getComputedStyle?getComputedStyle:null}(t);return e&&(r=e(t).getPropertyValue("display")),r||(r=t.style&&t.style.display),"none"===r}var nze=function(){var t=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),r="<office:document-styles "+zO({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+">"+t+"</office:document-styles>";return function(){return Rd+r}}(),Rae=function(){var t=function(s){return zc(s).replace(/  +/g,function(a){return'<text:s text:c="'+a.length+'"/>'}).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>")},r="          <table:table-cell />\n",i=function(s,a,l){var c=[];c.push('      <table:table table:name="'+zc(a.SheetNames[l])+'" table:style-name="ta1">\n');var d=0,f=0,v=nm(s["!ref"]||"A1"),w=s["!merges"]||[],x=0,I=Array.isArray(s);if(s["!cols"])for(f=0;f<=v.e.c;++f)c.push("        <table:table-column"+(s["!cols"][f]?' table:style-name="co'+s["!cols"][f].ods+'"':"")+"></table:table-column>\n");var F=s["!rows"]||[];for(d=0;d<v.s.r;++d)c.push("        <table:table-row"+(F[d]?' table:style-name="ro'+F[d].ods+'"':"")+"></table:table-row>\n");for(;d<=v.e.r;++d){for(c.push("        <table:table-row"+(F[d]?' table:style-name="ro'+F[d].ods+'"':"")+">\n"),f=0;f<v.s.c;++f)c.push(r);for(;f<=v.e.c;++f){var re=!1,pe={},we="";for(x=0;x!=w.length;++x)if(!(w[x].s.c>f||w[x].s.r>d||w[x].e.c<f||w[x].e.r<d)){(w[x].s.c!=f||w[x].s.r!=d)&&(re=!0),pe["table:number-columns-spanned"]=w[x].e.c-w[x].s.c+1,pe["table:number-rows-spanned"]=w[x].e.r-w[x].s.r+1;break}if(re)c.push("          <table:covered-table-cell/>\n");else{var je=ca({r:d,c:f}),tt=I?(s[d]||[])[f]:s[je];if(tt&&tt.f&&(pe["table:formula"]=zc(SUe(tt.f)),tt.F&&tt.F.slice(0,je.length)==je)){var nt=nm(tt.F);pe["table:number-matrix-columns-spanned"]=nt.e.c-nt.s.c+1,pe["table:number-matrix-rows-spanned"]=nt.e.r-nt.s.r+1}if(tt){switch(tt.t){case"b":we=tt.v?"TRUE":"FALSE",pe["office:value-type"]="boolean",pe["office:boolean-value"]=tt.v?"true":"false";break;case"n":we=tt.w||String(tt.v||0),pe["office:value-type"]="float",pe["office:value"]=tt.v||0;break;case"s":case"str":we=null==tt.v?"":tt.v,pe["office:value-type"]="string";break;case"d":we=tt.w||vd(tt.v).toISOString(),pe["office:value-type"]="date",pe["office:date-value"]=vd(tt.v).toISOString(),pe["table:style-name"]="ce1";break;default:c.push(r);continue}var rt=t(we);if(tt.l&&tt.l.Target){var lt=tt.l.Target;"#"!=(lt="#"==lt.charAt(0)?"#"+xUe(lt.slice(1)):lt).charAt(0)&&!lt.match(/^\w+:/)&&(lt="../"+lt),rt=so("text:a",rt,{"xlink:href":lt.replace(/&/g,"&amp;")})}c.push("          "+so("table:table-cell",so("text:p",rt,{}),pe)+"\n")}else c.push(r)}}c.push("        </table:table-row>\n")}return c.push("      </table:table>\n"),c.join("")};return function(a,l){var c=[Rd],d=zO({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),f=zO({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});"fods"==l.bookType?(c.push("<office:document"+d+f+">\n"),c.push(joe().replace(/office:document-meta/g,"office:meta"))):c.push("<office:document-content"+d+">\n"),function(s,a){s.push(" <office:automatic-styles>\n"),s.push('  <number:date-style style:name="N37" number:automatic-order="true">\n'),s.push('   <number:month number:style="long"/>\n'),s.push("   <number:text>/</number:text>\n"),s.push('   <number:day number:style="long"/>\n'),s.push("   <number:text>/</number:text>\n"),s.push("   <number:year/>\n"),s.push("  </number:date-style>\n");var l=0;a.SheetNames.map(function(d){return a.Sheets[d]}).forEach(function(d){if(d&&d["!cols"])for(var f=0;f<d["!cols"].length;++f)if(d["!cols"][f]){var v=d["!cols"][f];if(null==v.width&&null==v.wpx&&null==v.wch)continue;lT(v),v.ods=l;var w=d["!cols"][f].wpx+"px";s.push('  <style:style style:name="co'+l+'" style:family="table-column">\n'),s.push('   <style:table-column-properties fo:break-before="auto" style:column-width="'+w+'"/>\n'),s.push("  </style:style>\n"),++l}});var c=0;a.SheetNames.map(function(d){return a.Sheets[d]}).forEach(function(d){if(d&&d["!rows"])for(var f=0;f<d["!rows"].length;++f)if(d["!rows"][f]){d["!rows"][f].ods=c;var v=d["!rows"][f].hpx+"px";s.push('  <style:style style:name="ro'+c+'" style:family="table-row">\n'),s.push('   <style:table-row-properties fo:break-before="auto" style:row-height="'+v+'"/>\n'),s.push("  </style:style>\n"),++c}}),s.push('  <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">\n'),s.push('   <style:table-properties table:display="true" style:writing-mode="lr-tb"/>\n'),s.push("  </style:style>\n"),s.push('  <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>\n'),s.push(" </office:automatic-styles>\n")}(c,a),c.push("  <office:body>\n"),c.push("    <office:spreadsheet>\n");for(var v=0;v!=a.SheetNames.length;++v)c.push(i(a.Sheets[a.SheetNames[v]],a,v));return c.push("    </office:spreadsheet>\n"),c.push("  </office:body>\n"),c.push("fods"==l.bookType?"</office:document>":"</office:document-content>"),c.join("")}}();function Oae(t,r){if("fods"==r.bookType)return Rae(t,r);var e=xW(),i="",o=[],s=[];return qa(e,i="mimetype","application/vnd.oasis.opendocument.spreadsheet"),qa(e,i="content.xml",Rae(t,r)),o.push([i,"text/xml"]),s.push([i,"ContentFile"]),qa(e,i="styles.xml",nze(t,r)),o.push([i,"text/xml"]),s.push([i,"StylesFile"]),qa(e,i="meta.xml",Rd+joe()),o.push([i,"text/xml"]),s.push([i,"MetadataFile"]),qa(e,i="manifest.rdf",function V6e(t){var r=[Rd];r.push('<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">\n');for(var e=0;e!=t.length;++e)r.push(Voe(t[e][0],t[e][1])),r.push(B6e("",t[e][0]));return r.push(Voe("","Document","pkg")),r.push("</rdf:RDF>"),r.join("")}(s)),o.push([i,"application/rdf+xml"]),qa(e,i="META-INF/manifest.xml",function G6e(t){var r=[Rd];r.push('<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">\n'),r.push('  <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>\n');for(var e=0;e<t.length;++e)r.push('  <manifest:file-entry manifest:full-path="'+t[e][0]+'" manifest:media-type="'+t[e][1]+'"/>\n');return r.push("</manifest:manifest>"),r.join("")}(o)),e}function u2(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function ize(t){return typeof TextEncoder<"u"?(new TextEncoder).encode(t):wg(Ly(t))}function dT(t){var r=t.reduce(function(o,s){return o+s.length},0),e=new Uint8Array(r),i=0;return t.forEach(function(o){e.set(o,i),i+=o.length}),e}function mF(t,r){var e=r?r[0]:0,i=127&t[e];e:if(t[e++]>=128&&(i|=(127&t[e])<<7,t[e++]<128||(i|=(127&t[e])<<14,t[e++]<128)||(i|=(127&t[e])<<21,t[e++]<128)||(i+=(127&t[e])*Math.pow(2,28),++e,t[e++]<128)||(i+=(127&t[e])*Math.pow(2,35),++e,t[e++]<128)||(i+=(127&t[e])*Math.pow(2,42),++e,t[e++]<128)))break e;return r&&(r[0]=e),i}function Vc(t){var r=new Uint8Array(7);r[0]=127&t;var e=1;e:if(t>127){if(r[e-1]|=128,r[e]=t>>7&127,++e,t<=16383||(r[e-1]|=128,r[e]=t>>14&127,++e,t<=2097151)||(r[e-1]|=128,r[e]=t>>21&127,++e,t<=268435455)||(r[e-1]|=128,r[e]=t/256>>>21&127,++e,t<=34359738367)||(r[e-1]|=128,r[e]=t/65536>>>21&127,++e,t<=4398046511103))break e;r[e-1]|=128,r[e]=t/16777216>>>21&127,++e}return r.slice(0,e)}function Fd(t){var r=0,e=127&t[r];e:if(t[r++]>=128){if(e|=(127&t[r])<<7,t[r++]<128||(e|=(127&t[r])<<14,t[r++]<128)||(e|=(127&t[r])<<21,t[r++]<128))break e;e|=(127&t[r])<<28}return e}function pc(t){for(var r=[],e=[0];e[0]<t.length;){var l,i=e[0],o=mF(t,e),s=7&o,a=0;if(0==(o=Math.floor(o/8)))break;switch(s){case 0:for(var c=e[0];t[e[0]++]>=128;);l=t.slice(c,e[0]);break;case 5:l=t.slice(e[0],e[0]+(a=4)),e[0]+=a;break;case 1:l=t.slice(e[0],e[0]+(a=8)),e[0]+=a;break;case 2:a=mF(t,e),l=t.slice(e[0],e[0]+a),e[0]+=a;break;default:throw new Error("PB Type ".concat(s," for Field ").concat(o," at offset ").concat(i))}var d={data:l,type:s};null==r[o]?r[o]=[d]:r[o].push(d)}return r}function ah(t){var r=[];return t.forEach(function(e,i){e.forEach(function(o){o.data&&(r.push(Vc(8*i+o.type)),2==o.type&&r.push(Vc(o.data.length)),r.push(o.data))})}),dT(r)}function Bv(t){for(var r,e=[],i=[0];i[0]<t.length;){var o=mF(t,i),s=pc(t.slice(i[0],i[0]+o));i[0]+=o;var a={id:Fd(s[1][0].data),messages:[]};s[2].forEach(function(l){var c=pc(l.data),d=Fd(c[3][0].data);a.messages.push({meta:c,data:t.slice(i[0],i[0]+d)}),i[0]+=d}),null!=(r=s[3])&&r[0]&&(a.merge=Fd(s[3][0].data)>>>0>0),e.push(a)}return e}function Kk(t){var r=[];return t.forEach(function(e){var i=[];i[1]=[{data:Vc(e.id),type:0}],i[2]=[],null!=e.merge&&(i[3]=[{data:Vc(+!!e.merge),type:0}]);var o=[];e.messages.forEach(function(a){o.push(a.data),a.meta[3]=[{type:0,data:Vc(a.data.length)}],i[2].push({data:ah(a.meta),type:2})});var s=ah(i);r.push(Vc(s.length)),r.push(s),o.forEach(function(a){return r.push(a)})}),dT(r)}function aze(t,r){if(0!=t)throw new Error("Unexpected Snappy chunk type ".concat(t));for(var e=[0],i=mF(r,e),o=[];e[0]<r.length;){var s=3&r[e[0]];if(0!=s){var c=0,d=0;if(1==s?(d=4+(r[e[0]]>>2&7),c=(224&r[e[0]++])<<3,c|=r[e[0]++]):(d=1+(r[e[0]++]>>2),2==s?(c=r[e[0]]|r[e[0]+1]<<8,e[0]+=2):(c=(r[e[0]]|r[e[0]+1]<<8|r[e[0]+2]<<16|r[e[0]+3]<<24)>>>0,e[0]+=4)),o=[dT(o)],0==c)throw new Error("Invalid offset 0");if(c>o[0].length)throw new Error("Invalid offset beyond length");if(d>=c)for(o.push(o[0].slice(-c)),d-=c;d>=o[o.length-1].length;)o.push(o[o.length-1]),d-=o[o.length-1].length;o.push(o[0].slice(-c,-c+d))}else{var a=r[e[0]++]>>2;if(a<60)++a;else{var l=a-59;a=r[e[0]],l>1&&(a|=r[e[0]+1]<<8),l>2&&(a|=r[e[0]+2]<<16),l>3&&(a|=r[e[0]+3]<<24),a>>>=0,a++,e[0]+=l}o.push(r.slice(e[0],e[0]+a)),e[0]+=a}}var f=dT(o);if(f.length!=i)throw new Error("Unexpected length: ".concat(f.length," != ").concat(i));return f}function Vv(t){for(var r=[],e=0;e<t.length;){var i=t[e++],o=t[e]|t[e+1]<<8|t[e+2]<<16;r.push(aze(i,t.slice(e+=3,e+o))),e+=o}if(e!==t.length)throw new Error("data is not a valid framed stream!");return dT(r)}function Qk(t){for(var r=[],e=0;e<t.length;){var i=Math.min(t.length-e,268435455),o=new Uint8Array(4);r.push(o);var s=Vc(i),a=s.length;r.push(s),i<=60?(a++,r.push(new Uint8Array([i-1<<2]))):i<=256?(a+=2,r.push(new Uint8Array([240,i-1&255]))):i<=65536?(a+=3,r.push(new Uint8Array([244,i-1&255,i-1>>8&255]))):i<=16777216?(a+=4,r.push(new Uint8Array([248,i-1&255,i-1>>8&255,i-1>>16&255]))):i<=4294967296&&(a+=5,r.push(new Uint8Array([252,i-1&255,i-1>>8&255,i-1>>16&255,i-1>>>24&255]))),r.push(t.slice(e,e+i)),a+=i,o[0]=0,o[1]=255&a,o[2]=a>>8&255,o[3]=a>>16&255,e+=i}return dT(r)}function Cz(t,r){var e=new Uint8Array(32),i=u2(e),o=12,s=0;switch(e[0]=5,t.t){case"n":e[1]=2,function sze(t,r,e){var i=Math.floor(0==e?0:Math.LOG10E*Math.log(Math.abs(e)))+6176-20,o=e/Math.pow(10,i-6176);t[r+15]|=i>>7,t[r+14]|=(127&i)<<1;for(var s=0;o>=1;++s,o/=256)t[r+s]=255&o;t[r+15]|=e>=0?0:128}(e,o,t.v),s|=1,o+=16;break;case"b":e[1]=6,i.setFloat64(o,t.v?1:0,!0),s|=2,o+=8;break;case"s":if(-1==r.indexOf(t.v))throw new Error("Value ".concat(t.v," missing from SST!"));e[1]=3,i.setUint32(o,r.indexOf(t.v),!0),s|=8,o+=4;break;default:throw"unsupported cell type "+t.t}return i.setUint32(8,s,!0),e.slice(0,o)}function wz(t,r){var e=new Uint8Array(32),i=u2(e),o=12,s=0;switch(e[0]=3,t.t){case"n":e[2]=2,i.setFloat64(o,t.v,!0),s|=32,o+=8;break;case"b":e[2]=6,i.setFloat64(o,t.v?1:0,!0),s|=32,o+=8;break;case"s":if(-1==r.indexOf(t.v))throw new Error("Value ".concat(t.v," missing from SST!"));e[2]=3,i.setUint32(o,r.indexOf(t.v),!0),s|=16,o+=4;break;default:throw"unsupported cell type "+t.t}return i.setUint32(4,s,!0),e.slice(0,o)}function Ef(t){return mF(pc(t)[1][0].data)}function vze(t,r,e){var i,o,s,a;if(null==(i=t[6])||!i[0]||null==(o=t[7])||!o[0])throw"Mutation only works on post-BNC storages!";if((null==(a=null==(s=t[8])?void 0:s[0])?void 0:a.data)&&Fd(t[8][0].data)>0)throw"Math only works with normal offsets";for(var c=0,d=u2(t[7][0].data),f=0,v=[],w=u2(t[4][0].data),x=0,I=[],M=0;M<r.length;++M)if(null!=r[M]){var F,re;switch(d.setUint16(2*M,f,!0),w.setUint16(2*M,x,!0),typeof r[M]){case"string":F=Cz({t:"s",v:r[M]},e),re=wz({t:"s",v:r[M]},e);break;case"number":F=Cz({t:"n",v:r[M]},e),re=wz({t:"n",v:r[M]},e);break;case"boolean":F=Cz({t:"b",v:r[M]},e),re=wz({t:"b",v:r[M]},e);break;default:throw new Error("Unsupported value "+r[M])}v.push(F),f+=F.length,I.push(re),x+=re.length,++c}else d.setUint16(2*M,65535,!0),w.setUint16(2*M,65535);for(t[2][0].data=Vc(c);M<t[7][0].data.length/2;++M)d.setUint16(2*M,65535,!0),w.setUint16(2*M,65535,!0);return t[6][0].data=dT(v),t[3][0].data=dT(I),c}function xz(t){!function Lae(t){return function(e){for(var i=0;i!=t.length;++i){var o=t[i];void 0===e[o[0]]&&(e[o[0]]=o[1]),"n"===o[2]&&(e[o[0]]=Number(e[o[0]]))}}}([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(t)}function Sze(t,r){return"ods"==r.bookType?Oae(t,r):"numbers"==r.bookType?function _ze(t,r){if(!r||!r.numbers)throw new Error("Must pass a `numbers` option -- check the README");var e=t.Sheets[t.SheetNames[0]];t.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var i=nm(e["!ref"]);i.s.r=i.s.c=0;var o=!1;i.e.c>9&&(o=!0,i.e.c=9),i.e.r>49&&(o=!0,i.e.r=49),o&&console.error("The Numbers writer is currently limited to ".concat(Na(i)));var s=tG(e,{range:i,header:1}),a=["~Sh33tJ5~"];s.forEach(function(Tn){return Tn.forEach(function(xn){"string"==typeof xn&&a.push(xn)})});var l={},c=[],d=js.read(r.numbers,{type:"base64"});d.FileIndex.map(function(Tn,xn){return[Tn,d.FullPaths[xn]]}).forEach(function(Tn){var xn=Tn[0],Xi=Tn[1];2==xn.type&&xn.name.match(/\.iwa/)&&Bv(Vv(xn.content)).forEach(function(Ar){c.push(Ar.id),l[Ar.id]={deps:[],location:Xi,type:Fd(Ar.messages[0].meta[1][0].data)}})}),c.sort(function(Tn,xn){return Tn-xn});var f=c.filter(function(Tn){return Tn>1}).map(function(Tn){return[Tn,Vc(Tn)]});d.FileIndex.map(function(Tn,xn){return[Tn,d.FullPaths[xn]]}).forEach(function(Tn){var xn=Tn[0];xn.name.match(/\.iwa/)&&Bv(Vv(xn.content)).forEach(function(lo){lo.messages.forEach(function(co){f.forEach(function(Ar){lo.messages.some(function(Va){return 11006!=Fd(Va.meta[1][0].data)&&function rze(t,r){e:for(var e=0;e<=t.length-r.length;++e){for(var i=0;i<r.length;++i)if(t[e+i]!=r[i])continue e;return!0}return!1}(Va.data,Ar[1])})&&l[Ar[0]].deps.push(lo.id)})})})});for(var I,w=js.find(d,l[1].location),x=Bv(Vv(w.content)),M=0;M<x.length;++M){var F=x[M];1==F.id&&(I=F)}var re=Ef(pc(I.messages[0].data)[1][0].data);for(x=Bv(Vv((w=js.find(d,l[re].location)).content)),M=0;M<x.length;++M)(F=x[M]).id==re&&(I=F);for(re=Ef(pc(I.messages[0].data)[2][0].data),x=Bv(Vv((w=js.find(d,l[re].location)).content)),M=0;M<x.length;++M)(F=x[M]).id==re&&(I=F);for(re=Ef(pc(I.messages[0].data)[2][0].data),x=Bv(Vv((w=js.find(d,l[re].location)).content)),M=0;M<x.length;++M)(F=x[M]).id==re&&(I=F);var pe=pc(I.messages[0].data);pe[6][0].data=Vc(i.e.r+1),pe[7][0].data=Vc(i.e.c+1);for(var we=Ef(pe[46][0].data),je=js.find(d,l[we].location),tt=Bv(Vv(je.content)),nt=0;nt<tt.length&&tt[nt].id!=we;++nt);if(tt[nt].id!=we)throw"Bad ColumnRowUIDMapArchive";var rt=pc(tt[nt].messages[0].data);rt[1]=[],rt[2]=[],rt[3]=[];for(var lt=0;lt<=i.e.c;++lt){var bt=[];bt[1]=bt[2]=[{type:0,data:Vc(lt+420690)}],rt[1].push({type:2,data:ah(bt)}),rt[2].push({type:0,data:Vc(lt)}),rt[3].push({type:0,data:Vc(lt)})}rt[4]=[],rt[5]=[],rt[6]=[];for(var Wt=0;Wt<=i.e.r;++Wt)(bt=[])[1]=bt[2]=[{type:0,data:Vc(Wt+726270)}],rt[4].push({type:2,data:ah(bt)}),rt[5].push({type:0,data:Vc(Wt)}),rt[6].push({type:0,data:Vc(Wt)});tt[nt].messages[0].data=ah(rt),je.content=Qk(Kk(tt)),je.size=je.content.length,delete pe[46];var Zt=pc(pe[4][0].data);Zt[7][0].data=Vc(i.e.r+1);var ci=Ef(pc(Zt[1][0].data)[2][0].data);if((tt=Bv(Vv((je=js.find(d,l[ci].location)).content)))[0].id!=ci)throw"Bad HeaderStorageBucket";var Wi=pc(tt[0].messages[0].data);for(Wt=0;Wt<s.length;++Wt){var ki=pc(Wi[2][0].data);ki[1][0].data=Vc(Wt),ki[4][0].data=Vc(s[Wt].length),Wi[2][Wt]={type:Wi[2][0].type,data:ah(ki)}}tt[0].messages[0].data=ah(Wi),je.content=Qk(Kk(tt)),je.size=je.content.length;var Xr=Ef(Zt[2][0].data);if((tt=Bv(Vv((je=js.find(d,l[Xr].location)).content)))[0].id!=Xr)throw"Bad HeaderStorageBucket";for(Wi=pc(tt[0].messages[0].data),lt=0;lt<=i.e.c;++lt)(ki=pc(Wi[2][0].data))[1][0].data=Vc(lt),ki[4][0].data=Vc(i.e.r+1),Wi[2][lt]={type:Wi[2][0].type,data:ah(ki)};tt[0].messages[0].data=ah(Wi),je.content=Qk(Kk(tt)),je.size=je.content.length;var Lr=Ef(Zt[4][0].data);!function(){for(var Xi,Tn=js.find(d,l[Lr].location),xn=Bv(Vv(Tn.content)),Ao=0;Ao<xn.length;++Ao){var lo=xn[Ao];lo.id==Lr&&(Xi=lo)}var co=pc(Xi.messages[0].data);co[3]=[];var Ar=[];a.forEach(function(Tc,il){Ar[1]=[{type:0,data:Vc(il)}],Ar[2]=[{type:0,data:Vc(1)}],Ar[3]=[{type:2,data:ize(Tc)}],co[3].push({type:2,data:ah(Ar)})}),Xi.messages[0].data=ah(co);var wn=Qk(Kk(xn));Tn.content=wn,Tn.size=Tn.content.length}();var Jo=pc(Zt[3][0].data),cr=Jo[1][0];delete Jo[2];var is=pc(cr.data),Ji=Ef(is[2][0].data);!function(){for(var Xi,Tn=js.find(d,l[Ji].location),xn=Bv(Vv(Tn.content)),Ao=0;Ao<xn.length;++Ao){var lo=xn[Ao];lo.id==Ji&&(Xi=lo)}var co=pc(Xi.messages[0].data);delete co[6],delete Jo[7];var Ar=new Uint8Array(co[5][0].data);co[5]=[];for(var Va=0,wn=0;wn<=i.e.r;++wn){var Tc=pc(Ar);Va+=vze(Tc,s[wn],a),Tc[1][0].data=Vc(wn),co[5].push({data:ah(Tc),type:2})}co[1]=[{type:0,data:Vc(i.e.c+1)}],co[2]=[{type:0,data:Vc(i.e.r+1)}],co[3]=[{type:0,data:Vc(Va)}],co[4]=[{type:0,data:Vc(i.e.r+1)}],Xi.messages[0].data=ah(co);var Sc=Qk(Kk(xn));Tn.content=Sc,Tn.size=Tn.content.length}(),cr.data=ah(is),Zt[3][0].data=ah(Jo),pe[4][0].data=ah(Zt),I.messages[0].data=ah(pe);var hi=Qk(Kk(x));return w.content=hi,w.size=w.content.length,d}(t,r):"xlsb"==r.bookType?function xze(t,r){zk=1024,t&&!t.SSF&&(t.SSF=vu(ea)),t&&t.SSF&&(Bk(),$O(t.SSF),r.revssf=I7(t.SSF),r.revssf[t.SSF[65535]]=0,r.ssf=t.SSF),r.rels={},r.wbrels={},r.Strings=[],r.Strings.Count=0,r.Strings.Unique=0,uF?r.revStrings=new Map:(r.revStrings={},r.revStrings.foo=[],delete r.revStrings.foo);var e="xlsb"==r.bookType?"bin":"xml",i=Yse.indexOf(r.bookType)>-1,o={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};xz(r=r||{});var s=xW(),a="",l=0;if(r.cellXfs=[],uT(r.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={}),qa(s,a="docProps/core.xml",Uoe(t.Props,r)),o.coreprops.push(a),Bc(r.rels,2,a,Ga.CORE_PROPS),a="docProps/app.xml",!t.Props||!t.Props.SheetNames)if(t.Workbook&&t.Workbook.Sheets){for(var c=[],d=0;d<t.SheetNames.length;++d)2!=(t.Workbook.Sheets[d]||{}).Hidden&&c.push(t.SheetNames[d]);t.Props.SheetNames=c}else t.Props.SheetNames=t.SheetNames;for(t.Props.Worksheets=t.Props.SheetNames.length,qa(s,a,Woe(t.Props)),o.extprops.push(a),Bc(r.rels,3,a,Ga.EXT_PROPS),t.Custprops!==t.Props&&Ad(t.Custprops||{}).length>0&&(qa(s,a="docProps/custom.xml",zoe(t.Custprops)),o.custprops.push(a),Bc(r.rels,4,a,Ga.CUST_PROPS)),l=1;l<=t.SheetNames.length;++l){var f={"!id":{}},v=t.Sheets[t.SheetNames[l-1]];if(qa(s,a="xl/worksheets/sheet"+l+"."+e,oWe(l-1,a,r,t,f)),o.sheets.push(a),Bc(r.wbrels,-1,"worksheets/sheet"+l+"."+e,Ga.WS[0]),v){var x=v["!comments"],I=!1,M="";x&&x.length>0&&(qa(s,M="xl/comments"+l+"."+e,lWe(x,M,r)),o.comments.push(M),Bc(f,-1,"../comments"+l+"."+e,Ga.CMNT),I=!0),v["!legacy"]&&I&&qa(s,"xl/drawings/vmlDrawing"+l+".vml",Hse(l,v["!comments"])),delete v["!comments"],delete v["!legacy"]}f["!id"].rId1&&qa(s,JO(a),Yk(f))}return null!=r.Strings&&r.Strings.length>0&&(qa(s,a="xl/sharedStrings."+e,function aWe(t,r,e){return(".bin"===r.slice(-4)?sje:Ise)(t,e)}(r.Strings,a,r)),o.strs.push(a),Bc(r.wbrels,-1,"sharedStrings."+e,Ga.SST)),qa(s,a="xl/workbook."+e,function rWe(t,r,e){return(".bin"===r.slice(-4)?YYe:hae)(t,e)}(t,a,r)),o.workbooks.push(a),Bc(r.rels,1,a,Ga.WB),qa(s,a="xl/theme/theme1.xml",az(t.Themes,r)),o.themes.push(a),Bc(r.wbrels,-1,"theme/theme1.xml",Ga.THEME),qa(s,a="xl/styles."+e,function sWe(t,r,e){return(".bin"===r.slice(-4)?t9e:Nse)(t,e)}(t,a,r)),o.styles.push(a),Bc(r.wbrels,-1,"styles."+e,Ga.STY),t.vbaraw&&i&&(qa(s,a="xl/vbaProject.bin",t.vbaraw),o.vba.push(a),Bc(r.wbrels,-1,"vbaProject.bin",Ga.VBA)),qa(s,a="xl/metadata."+e,function cWe(t){return(".bin"===t.slice(-4)?D9e:jse)()}(a)),o.metadata.push(a),Bc(r.wbrels,-1,"metadata."+e,Ga.XLMETA),qa(s,"[Content_Types].xml",Boe(o,r)),qa(s,"_rels/.rels",Yk(r.rels)),qa(s,"xl/_rels/workbook."+e+".rels",Yk(r.wbrels)),delete r.revssf,delete r.ssf,s}(t,r):function Nae(t,r){zk=1024,t&&!t.SSF&&(t.SSF=vu(ea)),t&&t.SSF&&(Bk(),$O(t.SSF),r.revssf=I7(t.SSF),r.revssf[t.SSF[65535]]=0,r.ssf=t.SSF),r.rels={},r.wbrels={},r.Strings=[],r.Strings.Count=0,r.Strings.Unique=0,uF?r.revStrings=new Map:(r.revStrings={},r.revStrings.foo=[],delete r.revStrings.foo);var e="xml",i=Yse.indexOf(r.bookType)>-1,o={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};xz(r=r||{});var s=xW(),a="",l=0;if(r.cellXfs=[],uT(r.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={}),qa(s,a="docProps/core.xml",Uoe(t.Props,r)),o.coreprops.push(a),Bc(r.rels,2,a,Ga.CORE_PROPS),a="docProps/app.xml",!t.Props||!t.Props.SheetNames)if(t.Workbook&&t.Workbook.Sheets){for(var c=[],d=0;d<t.SheetNames.length;++d)2!=(t.Workbook.Sheets[d]||{}).Hidden&&c.push(t.SheetNames[d]);t.Props.SheetNames=c}else t.Props.SheetNames=t.SheetNames;t.Props.Worksheets=t.Props.SheetNames.length,qa(s,a,Woe(t.Props)),o.extprops.push(a),Bc(r.rels,3,a,Ga.EXT_PROPS),t.Custprops!==t.Props&&Ad(t.Custprops||{}).length>0&&(qa(s,a="docProps/custom.xml",zoe(t.Custprops)),o.custprops.push(a),Bc(r.rels,4,a,Ga.CUST_PROPS));var f=["SheetJ5"];for(r.tcid=0,l=1;l<=t.SheetNames.length;++l){var v={"!id":{}},w=t.Sheets[t.SheetNames[l-1]];if(qa(s,a="xl/worksheets/sheet"+l+"."+e,oae(l-1,r,t,v)),o.sheets.push(a),Bc(r.wbrels,-1,"worksheets/sheet"+l+"."+e,Ga.WS[0]),w){var I=w["!comments"],M=!1,F="";if(I&&I.length>0){var re=!1;I.forEach(function(pe){pe[1].forEach(function(we){1==we.T&&(re=!0)})}),re&&(qa(s,F="xl/threadedComments/threadedComment"+l+"."+e,L9e(I,f,r)),o.threadedcomments.push(F),Bc(v,-1,"../threadedComments/threadedComment"+l+"."+e,Ga.TCMNT)),qa(s,F="xl/comments"+l+"."+e,$se(I)),o.comments.push(F),Bc(v,-1,"../comments"+l+"."+e,Ga.CMNT),M=!0}w["!legacy"]&&M&&qa(s,"xl/drawings/vmlDrawing"+l+".vml",Hse(l,w["!comments"])),delete w["!comments"],delete w["!legacy"]}v["!id"].rId1&&qa(s,JO(a),Yk(v))}return null!=r.Strings&&r.Strings.length>0&&(qa(s,a="xl/sharedStrings."+e,Ise(r.Strings,r)),o.strs.push(a),Bc(r.wbrels,-1,"sharedStrings."+e,Ga.SST)),qa(s,a="xl/workbook."+e,hae(t)),o.workbooks.push(a),Bc(r.rels,1,a,Ga.WB),qa(s,a="xl/theme/theme1.xml",az(t.Themes,r)),o.themes.push(a),Bc(r.wbrels,-1,"theme/theme1.xml",Ga.THEME),qa(s,a="xl/styles."+e,Nse(t,r)),o.styles.push(a),Bc(r.wbrels,-1,"styles."+e,Ga.STY),t.vbaraw&&i&&(qa(s,a="xl/vbaProject.bin",t.vbaraw),o.vba.push(a),Bc(r.wbrels,-1,"vbaProject.bin",Ga.VBA)),qa(s,a="xl/metadata."+e,jse()),o.metadata.push(a),Bc(r.wbrels,-1,"metadata."+e,Ga.XLMETA),f.length>1&&(qa(s,a="xl/persons/person.xml",function G9e(t){var r=[Rd,so("personList",null,{xmlns:up_TCMNT,"xmlns:x":oT[0]}).replace(/[\/]>/,">")];return t.forEach(function(e,i){r.push(so("person",null,{displayName:e,id:"{54EE7950-7262-4200-6969-"+("000000000000"+i).slice(-12)+"}",userId:e,providerId:"None"}))}),r.push("</personList>"),r.join("")}(f)),o.people.push(a),Bc(r.wbrels,-1,"persons/person.xml",Ga.PEOPLE)),qa(s,"[Content_Types].xml",Boe(o,r)),qa(s,"_rels/.rels",Yk(r.rels)),qa(s,"xl/_rels/workbook.xml.rels",Yk(r.wbrels)),delete r.revssf,delete r.ssf,s}(t,r)}function Bae(t,r){switch(r.type){case"base64":case"binary":break;case"buffer":case"array":r.type="";break;case"file":return YO(r.file,js.write(t,{type:nl?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+r.bookType+"' files");default:throw new Error("Unrecognized type "+r.type)}return js.write(t,r)}function Vy(t,r,e){e||(e="");var i=e+t;switch(r.type){case"base64":return VO(Ly(i));case"binary":return Ly(i);case"string":return t;case"file":return YO(r.file,i,"utf8");case"buffer":return nl?Fb(i,"utf8"):typeof TextEncoder<"u"?(new TextEncoder).encode(i):Vy(i,{type:"binary"}).split("").map(function(o){return o.charCodeAt(0)})}throw new Error("Unrecognized type "+r.type)}function eG(t,r){switch(r.type){case"string":case"base64":case"binary":for(var e="",i=0;i<t.length;++i)e+=String.fromCharCode(t[i]);return"base64"==r.type?VO(e):"string"==r.type?Gu(e):e;case"file":return YO(r.file,t);case"buffer":return t;default:throw new Error("Unrecognized type "+r.type)}}function Iz(t,r){(function T7(){Fv(1200),function eGe(){w7(1252)}()})(),function pae(t){if(!t||!t.SheetNames||!t.Sheets)throw new Error("Invalid Workbook");if(!t.SheetNames.length)throw new Error("Workbook is empty");!function MYe(t,r,e){t.forEach(function(i,o){dae(i);for(var s=0;s<o;++s)if(i==t[s])throw new Error("Duplicate Sheet Name: "+i);if(e){var a=r&&r[o]&&r[o].CodeName||i;if(95==a.charCodeAt(0)&&a.length>22)throw new Error("Bad Code Name: Worksheet"+a)}})}(t.SheetNames,t.Workbook&&t.Workbook.Sheets||[],!!t.vbaraw);for(var e=0;e<t.SheetNames.length;++e)DUe(t.Sheets[t.SheetNames[e]],0,e)}(t);var e=vu(r||{});if(e.cellStyles&&(e.cellNF=!0,e.sheetStubs=!0),"array"==e.type){e.type="binary";var i=Iz(t,e);return e.type="array",jO(i)}var o=0;if(e.sheet&&(o="number"==typeof e.sheet?e.sheet:t.SheetNames.indexOf(e.sheet),!t.SheetNames[o]))throw new Error("Sheet not found: "+e.sheet+" : "+typeof e.sheet);switch(e.bookType||"xlsb"){case"xml":case"xlml":return Vy(kWe(t,e),e);case"slk":case"sylk":return Vy(xse.from_sheet(t.Sheets[t.SheetNames[o]],e),e);case"htm":case"html":return Vy(Sae(t.Sheets[t.SheetNames[o]],e),e);case"txt":return function Fze(t,r){switch(r.type){case"base64":return VO(t);case"binary":case"string":return t;case"file":return YO(r.file,t,"binary");case"buffer":return nl?Fb(t,"binary"):t.split("").map(function(e){return e.charCodeAt(0)})}throw new Error("Unrecognized type "+r.type)}(Yae(t.Sheets[t.SheetNames[o]],e),e);case"csv":return Vy(Mz(t.Sheets[t.SheetNames[o]],e),e,"\ufeff");case"dif":return Vy(Ese.from_sheet(t.Sheets[t.SheetNames[o]],e),e);case"dbf":return eG(nz.from_sheet(t.Sheets[t.SheetNames[o]],e),e);case"prn":return Vy(Wk.from_sheet(t.Sheets[t.SheetNames[o]],e),e);case"rtf":return Vy(Fse.from_sheet(t.Sheets[t.SheetNames[o]],e),e);case"eth":return Vy(Dse.from_sheet(t.Sheets[t.SheetNames[o]],e),e);case"fods":return Vy(Oae(t,e),e);case"wk1":return eG(l2.sheet_to_wk1(t.Sheets[t.SheetNames[o]],e),e);case"wk3":return eG(l2.book_to_wk3(t,e),e);case"biff2":e.biff||(e.biff=2);case"biff3":e.biff||(e.biff=3);case"biff4":return e.biff||(e.biff=4),eG(_ae(t,e),e);case"biff5":e.biff||(e.biff=5);case"biff8":case"xla":case"xls":return e.biff||(e.biff=8),function Oze(t,r){var e=r||{};return Bae(function PWe(t,r){var e=r||{},i=js.utils.cfb_new({root:"R"}),o="/Workbook";switch(e.bookType||"xls"){case"xls":e.bookType="biff8";case"xla":e.bookType||(e.bookType="xla");case"biff8":o="/Workbook",e.biff=8;break;case"biff5":o="/Book",e.biff=5;break;default:throw new Error("invalid type "+e.bookType+" for XLS CFB")}return js.utils.cfb_add(i,o,_ae(t,e)),8==e.biff&&(t.Props||t.Custprops)&&function FWe(t,r){var a,e=[],i=[],o=[],s=0,l=Xre(WW,"n"),c=Xre(zW,"n");if(t.Props)for(a=Ad(t.Props),s=0;s<a.length;++s)(Object.prototype.hasOwnProperty.call(l,a[s])?e:Object.prototype.hasOwnProperty.call(c,a[s])?i:o).push([a[s],t.Props[a[s]]]);if(t.Custprops)for(a=Ad(t.Custprops),s=0;s<a.length;++s)Object.prototype.hasOwnProperty.call(t.Props||{},a[s])||(Object.prototype.hasOwnProperty.call(l,a[s])?e:Object.prototype.hasOwnProperty.call(c,a[s])?i:o).push([a[s],t.Custprops[a[s]]]);var d=[];for(s=0;s<o.length;++s)tse.indexOf(o[s][0])>-1||$oe.indexOf(o[s][0])>-1||null!=o[s][1]&&d.push(o[s]);i.length&&js.utils.cfb_add(r,"/\x05SummaryInformation",rse(i,"e0859ff2f94f6810ab9108002b27b3d9",c,zW)),(e.length||d.length)&&js.utils.cfb_add(r,"/\x05DocumentSummaryInformation",rse(e,"02d5cdd59c2e1b10939708002b2cf9ae",l,WW,d.length?d:null,"05d5cdd59c2e1b10939708002b2cf9ae"))}(t,i),8==e.biff&&t.vbaraw&&function z9e(t,r){r.FullPaths.forEach(function(e,i){if(0!=i){var o=e.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");"/"!==o.slice(-1)&&js.utils.cfb_add(t,o,r.FileIndex[i].content)}})}(i,js.read(t.vbaraw,{type:"string"==typeof t.vbaraw?"binary":"buffer"})),i}(t,e),e)}(t,e);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return function Mze(t,r){var e=vu(r||{});return function Vae(t,r){var e={},i=nl?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(r.compression&&(e.compression="DEFLATE"),r.password)e.type=i;else switch(r.type){case"base64":e.type="base64";break;case"binary":e.type="string";break;case"string":throw new Error("'string' output type invalid for '"+r.bookType+"' files");case"buffer":case"file":e.type=i;break;default:throw new Error("Unrecognized type "+r.type)}var o=t.FullPaths?js.write(t,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[e.type]||e.type,compression:!!r.compression}):t.generate(e);if(typeof Deno<"u"&&"string"==typeof o){if("binary"==r.type||"base64"==r.type)return o;o=new Uint8Array(jO(o))}return r.password&&typeof encrypt_agile<"u"?Bae(encrypt_agile(o,r.password),r):"file"===r.type?YO(r.file,o):"string"==r.type?Gu(o):o}(Sze(t,e),e)}(t,e);default:throw new Error("Unrecognized bookType |"+e.bookType+"|")}}function Hae(t,r,e,i,o,s,a,l){var c=Od(e),d=l.defval,f=l.raw||!Object.prototype.hasOwnProperty.call(l,"raw"),v=!0,w=1===o?[]:{};if(1!==o)if(Object.defineProperty)try{Object.defineProperty(w,"__rowNum__",{value:e,enumerable:!1})}catch{w.__rowNum__=e}else w.__rowNum__=e;if(!a||t[e])for(var x=r.s.c;x<=r.e.c;++x){var I=a?t[e][x]:t[i[x]+c];if(void 0!==I&&void 0!==I.t){var M=I.v;switch(I.t){case"z":if(null==M)break;continue;case"e":M=0==M?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+I.t)}if(null!=s[x]){if(null==M)if("e"==I.t&&null===M)w[s[x]]=null;else if(void 0!==d)w[s[x]]=d;else{if(!f||null!==M)continue;w[s[x]]=null}else w[s[x]]=f&&("n"!==I.t||"n"===I.t&&!1!==l.rawNumbers)?M:Ny(I,M,l);null!=M&&(v=!1)}}else{if(void 0===d)continue;null!=s[x]&&(w[s[x]]=d)}}return{row:w,isempty:v}}function tG(t,r){if(null==t||null==t["!ref"])return[];var e={t:"n",v:0},i=0,o=1,s=[],a=0,l="",c={s:{r:0,c:0},e:{r:0,c:0}},d=r||{},f=null!=d.range?d.range:t["!ref"];switch(1===d.header?i=1:"A"===d.header?i=2:Array.isArray(d.header)?i=3:null==d.header&&(i=0),typeof f){case"string":c=jl(f);break;case"number":(c=jl(t["!ref"])).s.r=f;break;default:c=f}i>0&&(o=0);var v=Od(c.s.r),w=[],x=[],I=0,M=0,F=Array.isArray(t),re=c.s.r,pe=0,we={};F&&!t[re]&&(t[re]=[]);var je=d.skipHidden&&t["!cols"]||[],tt=d.skipHidden&&t["!rows"]||[];for(pe=c.s.c;pe<=c.e.c;++pe)if(!(je[pe]||{}).hidden)switch(w[pe]=Bu(pe),e=F?t[re][pe]:t[w[pe]+v],i){case 1:s[pe]=pe-c.s.c;break;case 2:s[pe]=w[pe];break;case 3:s[pe]=d.header[pe-c.s.c];break;default:if(null==e&&(e={w:"__EMPTY",t:"s"}),l=a=Ny(e,null,d),M=we[a]||0){do{l=a+"_"+M++}while(we[l]);we[a]=M,we[l]=1}else we[a]=1;s[pe]=l}for(re=c.s.r+o;re<=c.e.r;++re)if(!(tt[re]||{}).hidden){var nt=Hae(t,c,re,w,i,s,F,d);(!1===nt.isempty||(1===i?!1!==d.blankrows:d.blankrows))&&(x[I++]=nt.row)}return x.length=I,x}var Uae=/"/g;function $ae(t,r,e,i,o,s,a,l){for(var c=!0,d=[],f="",v=Od(e),w=r.s.c;w<=r.e.c;++w)if(i[w]){var x=l.dense?(t[e]||[])[w]:t[i[w]+v];if(null==x)f="";else if(null!=x.v){c=!1,f=""+(l.rawNumbers&&"n"==x.t?x.v:Ny(x,null,l));for(var I=0,M=0;I!==f.length;++I)if((M=f.charCodeAt(I))===o||M===s||34===M||l.forceQuotes){f='"'+f.replace(Uae,'""')+'"';break}"ID"==f&&(f='"ID"')}else null==x.f||x.F?f="":(c=!1,(f="="+x.f).indexOf(",")>=0&&(f='"'+f.replace(Uae,'""')+'"'));d.push(f)}return!1===l.blankrows&&c?null:d.join(a)}function Mz(t,r){var e=[],i=r??{};if(null==t||null==t["!ref"])return"";var o=jl(t["!ref"]),s=void 0!==i.FS?i.FS:",",a=s.charCodeAt(0),l=void 0!==i.RS?i.RS:"\n",c=l.charCodeAt(0),d=new RegExp(("|"==s?"\\|":s)+"+$"),f="",v=[];i.dense=Array.isArray(t);for(var w=i.skipHidden&&t["!cols"]||[],x=i.skipHidden&&t["!rows"]||[],I=o.s.c;I<=o.e.c;++I)(w[I]||{}).hidden||(v[I]=Bu(I));for(var M=0,F=o.s.r;F<=o.e.r;++F)(x[F]||{}).hidden||null!=(f=$ae(t,o,F,v,a,c,s,i))&&(i.strip&&(f=f.replace(d,"")),(f||!1!==i.blankrows)&&e.push((M++?l:"")+f));return delete i.dense,e.join("")}function Yae(t,r){r||(r={}),r.FS="\t",r.RS="\n";var e=Mz(t,r);return e}function Wae(t,r,e){var i=e||{},o=+!i.skipHeader,s=t||{},a=0,l=0;if(s&&null!=i.origin)if("number"==typeof i.origin)a=i.origin;else{var c="string"==typeof i.origin?Kd(i.origin):i.origin;a=c.r,l=c.c}var d,f={s:{c:0,r:0},e:{c:l,r:a+r.length-1+o}};if(s["!ref"]){var v=jl(s["!ref"]);f.e.c=Math.max(f.e.c,v.e.c),f.e.r=Math.max(f.e.r,v.e.r),-1==a&&(f.e.r=(a=v.e.r+1)+r.length-1+o)}else-1==a&&(a=0,f.e.r=r.length-1+o);var w=i.header||[],x=0;r.forEach(function(M,F){Ad(M).forEach(function(re){-1==(x=w.indexOf(re))&&(w[x=w.length]=re);var pe=M[re],we="z",je="",tt=ca({c:l+x,r:a+F+o});d=gF(s,tt),!pe||"object"!=typeof pe||pe instanceof Date?("number"==typeof pe?we="n":"boolean"==typeof pe?we="b":"string"==typeof pe?we="s":pe instanceof Date?(we="d",i.cellDates||(we="n",pe=ih(pe)),je=i.dateNF||ea[14]):null===pe&&i.nullError&&(we="e",pe=0),d?(d.t=we,d.v=pe,delete d.w,delete d.R,je&&(d.z=je)):s[tt]=d={t:we,v:pe},je&&(d.z=je)):s[tt]=pe})}),f.e.c=Math.max(f.e.c,l+w.length-1);var I=Od(a);if(o)for(x=0;x<w.length;++x)s[Bu(x+l)+I]={t:"s",v:w[x]};return s["!ref"]=Na(f),s}function gF(t,r,e){if("string"==typeof r){if(Array.isArray(t)){var i=Kd(r);return t[i.r]||(t[i.r]=[]),t[i.r][i.c]||(t[i.r][i.c]={t:"z"})}return t[r]||(t[r]={t:"z"})}return gF(t,ca("number"!=typeof r?r:{r,c:e||0}))}function zae(t,r,e){return r?(t.l={Target:r},e&&(t.l.Tooltip=e)):delete t.l,t}var Fz={encode_col:Bu,encode_row:Od,encode_cell:ca,encode_range:Na,decode_col:BW,decode_row:GW,split_cell:function d6e(t){return t.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")},decode_cell:Kd,decode_range:nm,format_cell:Ny,sheet_add_aoa:Moe,sheet_add_json:Wae,sheet_add_dom:xae,aoa_to_sheet:Uk,json_to_sheet:function Nze(t,r){return Wae(null,t,r)},table_to_sheet:Eae,table_to_book:function ZWe(t,r){return sT(Eae(t,r),r)},sheet_to_csv:Mz,sheet_to_txt:Yae,sheet_to_json:tG,sheet_to_html:Sae,sheet_to_formulae:function Lze(t){var e,r="",i="";if(null==t||null==t["!ref"])return[];var l,o=jl(t["!ref"]),s="",a=[],c=[],d=Array.isArray(t);for(l=o.s.c;l<=o.e.c;++l)a[l]=Bu(l);for(var f=o.s.r;f<=o.e.r;++f)for(s=Od(f),l=o.s.c;l<=o.e.c;++l)if(r=a[l]+s,i="",void 0!==(e=d?(t[f]||[])[l]:t[r])){if(null!=e.F){if(r=e.F,!e.f)continue;i=e.f,-1==r.indexOf(":")&&(r=r+":"+r)}if(null!=e.f)i=e.f;else{if("z"==e.t)continue;if("n"==e.t&&null!=e.v)i=""+e.v;else if("b"==e.t)i=e.v?"TRUE":"FALSE";else if(void 0!==e.w)i="'"+e.w;else{if(void 0===e.v)continue;i="s"==e.t?"'"+e.v:""+e.v}}c[c.length]=r+"="+i}return c},sheet_to_row_object_array:tG,sheet_get_cell:gF,book_new:function Rz(){return{SheetNames:[],Sheets:{}}},book_append_sheet:function Oz(t,r,e,i){var o=1;if(!e)for(;o<=65535&&-1!=t.SheetNames.indexOf(e="Sheet"+o);++o,e=void 0);if(!e||t.SheetNames.length>=65535)throw new Error("Too many worksheets");if(i&&t.SheetNames.indexOf(e)>=0){var s=e.match(/(^.*?)(\d+)$/);o=s&&+s[2]||0;var a=s&&s[1]||e;for(++o;o<=65535&&-1!=t.SheetNames.indexOf(e=a+o);++o);}if(dae(e),t.SheetNames.indexOf(e)>=0)throw new Error("Worksheet with name |"+e+"| already exists!");return t.SheetNames.push(e),t.Sheets[e]=r,e},book_set_sheet_visibility:function Bze(t,r,e){t.Workbook||(t.Workbook={}),t.Workbook.Sheets||(t.Workbook.Sheets=[]);var i=function Gze(t,r){if("number"==typeof r){if(r>=0&&t.SheetNames.length>r)return r;throw new Error("Cannot find sheet # "+r)}if("string"==typeof r){var e=t.SheetNames.indexOf(r);if(e>-1)return e;throw new Error("Cannot find sheet name |"+r+"|")}throw new Error("Cannot find sheet |"+r+"|")}(t,r);switch(t.Workbook.Sheets[i]||(t.Workbook.Sheets[i]={}),e){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+e)}t.Workbook.Sheets[i].Hidden=e},cell_set_number_format:function Vze(t,r){return t.z=r,t},cell_set_hyperlink:zae,cell_set_internal_link:function jze(t,r,e){return zae(t,"#"+r,e)},cell_add_comment:function Hze(t,r,e){t.c||(t.c=[]),t.c.push({t:r,a:e||"SheetJS"})},sheet_set_array_formula:function Uze(t,r,e,i){for(var o="string"!=typeof r?r:jl(r),s="string"==typeof r?r:Na(r),a=o.s.r;a<=o.e.r;++a)for(var l=o.s.c;l<=o.e.c;++l){var c=gF(t,a,l);c.t="n",c.F=s,delete c.v,a==o.s.r&&l==o.s.c&&(c.f=e,i&&(c.D=!0))}return t},consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}},qze=b(119),vF=b.n(qze);let Xze=(()=>{class t{constructor(){}getKeys(){return vF().keys()}get(e){return vF().getItem(e)}set(e,i){return vF().setItem(e,i)}clear(e){return vF().removeItem(e)}clearAll(){return vF().clear()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),jb=(()=>{class t{constructor(e){this.persistentStorageService=e,this.OnItemToCacheReceived=new n.bkB,this.BeforeItemCached=new n.bkB,this.OnItemCached=new n.bkB,this.localcache={},this.timeoutTracker={},this.isLoggingEnabled=!1,setInterval(()=>{this.log("",this.localcache)},1e4)}enableLogging(){this.isLoggingEnabled=!0}disableLogging(){this.isLoggingEnabled=!1}cache(e){var i=this;return(0,lr.A)(function*(){if(i.log("Caching",e),i.OnItemToCacheReceived.emit(e),!e.key)return;e.ttl=e.ttl||3e4;const o={cached:new Date,expires:i.getExpirationTime(e.ttl),value:e.value,type:e.type||"data",onClear:e.onClear};i.removeTimeout(e.key),e.ttl!==1/0&&i.createTimeout(e.key,e.ttl),i.BeforeItemCached.emit(o),i.localcache[e.key]=o,e.persist?yield i.persistentStorageService.set(e.key,o):yield i.persistentStorageService.clear(e.key),i.OnItemCached.emit(o)})()}get(e){var i=this;return(0,lr.A)(function*(){i.log(`Getting ${e}`);const o=yield i.getCachedItem(e);return o||(yield i.clear(e),yield i.persistentStorageService.clear(e)),o?.value})()}getAll(...e){var i=this;return(0,lr.A)(function*(){i.log(`Getting All ${e}`);let o=[];for(const s of e){const a=yield i.getCachedItem(s);o.push(a?.value)}return o})()}getCachedItem(e){var i=this;return(0,lr.A)(function*(){let o=i.localcache[e];return o||(o=yield i.persistentStorageService.get(e)),!o||o.expires!==1/0&&"number"!=typeof o.expires&&Date.now()>=o.expires.getTime()?null:o})()}anyExist(...e){var i=this;return(0,lr.A)(function*(){i.log(`Any exist ${e}`);const o=function(){var s=(0,lr.A)(function*(a){return!!(yield i.get(a))});return function(l){return s.apply(this,arguments)}}();for(const s of e)if(yield o(s))return!0;return!1})()}clear(e){var i=this;return(0,lr.A)(function*(){i.log(`Clearing ${e}`);const o=yield i.getCachedItem(e);o?.onClear&&o.onClear(o.value),delete i.localcache[e],delete i.timeoutTracker[e],yield i.persistentStorageService.clear(e)})()}getChildren(e,i){var o=this;return(0,lr.A)(function*(){const s=[];return(yield o.getChildKeys(e)).forEach(function(){var l=(0,lr.A)(function*(c){const d=yield o.getCachedItem(c);d&&(!i||d.type===i)&&s.push(d.value)});return function(c){return l.apply(this,arguments)}}()),s})()}clearChildren(e,i){var o=this;return(0,lr.A)(function*(){o.log(`Clearing children ${e}`),(yield o.getChildKeys(e)).forEach(function(){var a=(0,lr.A)(function*(l){if(i){const c=yield o.getCachedItem(l);c&&c.type===i&&o.clear(l)}else yield o.clear(l)});return function(l){return a.apply(this,arguments)}}())})()}clearAll(){var e=this;return(0,lr.A)(function*(){Object.keys(e.localcache).forEach(i=>e.clear(i)),yield e.persistentStorageService.clearAll()})()}getExpirationTime(e){return e===1/0?1/0:new Date(Date.now()+e)}removeTimeout(e){this.timeoutTracker[e]&&clearTimeout(this.timeoutTracker[e])}createTimeout(e,i){this.timeoutTracker[e]=setTimeout(()=>{this.clear(e)},i)}getChildKeys(e){var i=this;return(0,lr.A)(function*(){const o=Object.keys(i.localcache).filter(a=>a.startsWith(`${e}.`)),s=yield i.persistentStorageService.getKeys();return o.concat(s).filter((a,l,c)=>c.indexOf(a)===l)})()}log(e,i){this.isLoggingEnabled&&(i?console.log(`[CACHE] ${e}`,i):console.log(`[CACHE] ${e}`))}ngOnDestroy(){var e=this;return(0,lr.A)(function*(){yield e.clearAll()})()}static{this.\u0275fac=function(i){return new(i||t)(n.KVO(Xze))}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Kze=(()=>{class t{constructor(e,i){this.http=e,this.cacheService=i}getGeocodedAddress(e){var i=this;return(0,lr.A)(function*(){let o=`geocoding.${e}`,s=yield i.cacheService.get(o);if(s)return s;let a=yield Yo(i.http.get("/api/geocoding/formattedaddress",{params:{addressFragment:e}}));return a.Successful?(yield i.cacheService.cache({key:o,value:a.Value,persist:!1,ttl:1/0,type:"data"}),a.Value):null})()}static{this.\u0275fac=function(i){return new(i||t)(n.KVO(Da),n.KVO(jb))}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Jk=(()=>{class t{constructor(){}getAngularJsInjector(){return angularInjector}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),tc=(()=>{class t{constructor(e){this.angularInjectorService=e,this.angularJsToasterService=null;const i=e.getAngularJsInjector();this.angularJsToasterService=i.get("toaster")}displayInfoToast(e,i,o=5e3){this.angularJsToasterService.pop({type:"info",title:e,body:i,timeout:o})}displayErrorToast(e,i,o=5e3){this.angularJsToasterService.pop({type:"error",title:e,body:i,timeout:o})}displaySuccessToast(e,i,o=5e3){this.angularJsToasterService.pop({type:"success",title:e,body:i,timeout:o})}clear(){this.angularJsToasterService.clear()}static{this.\u0275fac=function(i){return new(i||t)(n.KVO(Jk))}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const Qze=["distanceFilterOverlay"];function Jze(t,r){if(1&t){const e=n.RV6();n.j41(0,"form",18),n.bIt("submit",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onDistanceFilterChange(o))}),n.j41(1,"div",19)(2,"p-select",20),n.mxI("ngModelChange",function(o){n.eBV(e);const s=n.XpG();return n.DH7(s.distanceFilter,o)||(s.distanceFilter=o),n.Njj(o)}),n.k0s(),n.j41(3,"input",21),n.mxI("ngModelChange",function(o){n.eBV(e);const s=n.XpG();return n.DH7(s.distanceFilterZip,o)||(s.distanceFilterZip=o),n.Njj(o)}),n.k0s()(),n.j41(4,"div",22)(5,"button",23),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.clearDistanceFilter())}),n.EFF(6," Clear "),n.k0s(),n.j41(7,"div",24)(8,"button",23),n.bIt("click",function(){n.eBV(e),n.XpG();const o=n.sdS(7);return n.Njj(o.hide())}),n.EFF(9," Cancel "),n.k0s(),n.j41(10,"button",25),n.EFF(11," Apply "),n.k0s()()()()}if(2&t){const e=n.XpG();n.R7$(2),n.R50("ngModel",e.distanceFilter),n.Y8G("options",e.distanceFilterOptions),n.R7$(),n.R50("ngModel",e.distanceFilterZip),n.Y8G("pKeyFilter","int"),n.R7$(7),n.Y8G("disabled",!e.distanceFilterZip||!e.distanceFilter)}}function Zze(t,r){1&t&&n.nrm(0,"option",26),2&t&&n.Y8G("value",null)}function eqe(t,r){if(1&t&&n.nrm(0,"grid",27),2&t){const e=n.XpG();n.Y8G("frameworkComponents",e.frameworkComponents)("getDataAsync",e.onGetDataAsync.bind(e))("gridOptions",e.gridOptions)("onInit",e.onGridInit.bind(e))("rowHeight",100)("hideRowCount",!0)}}let qae=(()=>{class t{constructor(e,i,o,s){this.connectionsService=e,this.geocodingService=i,this.toasterService=o,this.triStateToggleTrackerService=s,this.initialLoadComplete=!1,this.agencies=[],this.donorLocations=[],this.donorLocationAgencyAssociations=[],this.currentData=[],this.totalData=[],this.totalDonorLocationsWithNoAgenciesAssigned=0,this.totalConnectionsWithNoDayOfWeekAssignments=0,this.totalDonorLocationsMissingERPMapping=0,this.filterTextValue="",this.filterTextModel="",this.distanceFilter=null,this.distanceFilterOptions=[{value:null,text:"Select Distance"},{value:5,text:"Within 5 Miles"},{value:10,text:"Within 10 Miles"},{value:25,text:"Within 25 Miles"},{value:50,text:"Within 50 Miles"},{value:100,text:"Within 100 Miles"},{value:250,text:"Within 250 Miles"}],this.distanceFilterText="",this.distanceFilterZip="",this.sortBy=null,this.gridOptions={rowBuffer:50,suppressRowTransform:!0,columnDefs:this.buildColumnDefinitions(),defaultColDef:{sortable:!1,suppressMenu:!0},getRowNodeId:a=>a.id},this.gridApi=null,this.viewingSchedule=!1,this.schedule=[],this.frameworkComponents={addAgencyConnectionRendererComponent:m7e,addDonorLocationConnectionRendererComponent:A7e,agencyDetailRendererComponent:O7e,donorLocationDetailRendererComponent:N7e,removeConnectionRendererComponent:U7e,scheduleAssignmentRendererComponent:Q7e},this.debouncedRefresh=null}ngOnInit(){this.loadData(),this.debouncedRefresh=PO(()=>{this.gridApi?.refresh()},300)}onGridInit(e){this.gridApi=e}loadData(){let e=this.connectionsService.getConnections(),i=this.connectionsService.getAgencies(),o=this.connectionsService.getDonorLocations();return Promise.all([e,i,o,this.triStateToggleTrackerService.init()]).then(s=>{this.donorLocationAgencyAssociations=s[0],this.agencies=s[1],this.donorLocations=s[2],this.initialLoadComplete=!0,this.donorLocationAgencyAssociations.forEach(a=>{this.totalData.push({id:this.connectionsService.generateId(),connection:a,agencyId:a.AgencyID,donorLocationId:a.DonorLocationID,rowSpan:1})}),this.agencies.forEach(a=>{this.totalData.forEach(l=>{l.agencyId===a.ID&&(l.agency=a)}),this.totalData.some(l=>l.agencyId===a.ID)||this.totalData.push({id:this.connectionsService.generateId(),agency:a,agencyId:a.ID,rowSpan:1})}),this.donorLocations.forEach(a=>{this.totalData.forEach(l=>{l.donorLocationId===a.ID&&(l.donorLocation=a)}),this.totalData.some(l=>l.donorLocationId===a.ID)||this.totalData.push({id:this.connectionsService.generateId(),donorLocation:a,donorLocationId:a.ID,rowSpan:1})}),this.calculateTotals(),setTimeout(()=>{this.sortBy="donor",this.onSortChange()})})}calculateTotals(){setTimeout(()=>{this.totalDonorLocationsWithNoAgenciesAssigned=this.getDonorLocationsWithNoAgenciesAssigned(this.totalData).length,this.totalConnectionsWithNoDayOfWeekAssignments=this.getConnectionsWithNoDayOfWeekAssignments(this.totalData).length,this.totalDonorLocationsMissingERPMapping=this.getDonorLocationsMissingERPMappingTotalCount()})}filterData(e){this.filterTextValue=e,this.debouncedRefresh&&this.debouncedRefresh()}logEvent(e){try{window.dataLayer&&window.dataLayer.push(e)}catch{}}logConnectionChange(e,i,o,s){this.logEvent({event:"connections_v2_change",agencyId:e,donorLocationId:i,availabilityKey:o,adding:s})}logConnectionAdd(e,i){this.logEvent({event:"connections_v2_add",agencyId:e,donorLocationId:i})}logConnectionRemove(e,i){this.logEvent({event:"connections_v2_remove",agencyId:e,donorLocationId:i})}buildConnectCell(e,i){return{headerName:e,width:60,minWidth:60,cellRenderer:"scheduleAssignmentRendererComponent",cellRendererParams:{dayOfWeek:i,gridOptions:this.gridOptions,onUpdateNeeded:(o,s,a)=>{let l=s.replace("IsAvailable",""),c=!0===o.connection[s];if(c){if(!1===o.agency[s]&&!confirm(`${o.agency?.Name} is not set as available on ${l}. Add scheduled pickup day anyway?`))return void a(!1);if(!1===o.donorLocation[s]&&!confirm(`This donor location is not set as available on ${l}. Add scheduled pickup day anyway?`))return void a(!1)}this.logConnectionChange(o.connection?.AgencyID||0,o.connection?.DonorLocationID||0,s,c),this.gridOptions.api?.getRowNode(o.id)&&(o.isUpdating=!0,this.connectionsService.updateConnection(o.connection).then(f=>{if(a(!0),o.connection.Version=f.Version,c){let v=this.totalData.filter(w=>w.donorLocationId===o.donorLocationId&&w.agencyId&&w.agencyId!==o.agencyId);if(v.length){let w=v.filter(x=>!0===x.connection[s]);w.length&&this.toasterService.displayInfoToast("Duplicate Day Detected",`There are now ${w.length+1} scheduled pickups from ${w[0].donorLocation?.DonorName??"this donor"} (${w[0].donorLocation?.ExternalStoreNumber??w[0].donorLocation?.Code}) on ${l}.`)}}this.calculateTotals()}).catch(f=>{this.toasterService.displayErrorToast("Error Updating Connection","Unable to update connection: "+(f?.error?.ExceptionMessage||"An unexpected error occurred.")),a(!1)}).finally(()=>{o.isUpdating=!1}))}},cellClass:"connect-cell"}}buildColumnDefinitions(){return"agency"===this.sortBy?[{headerName:"Agency",minWidth:100,width:250,cellRenderer:"agencyDetailRendererComponent",cellRendererParams:{onPrint:e=>{this.schedule=this.totalData.filter(i=>i.agencyId===e.ID),this.viewingSchedule=!0}},rowSpan:e=>e.data.rowSpan,cellClass:["ag-cell-span","stretch-cell"]},{headerName:"Donor",minWidth:200,width:250,cellRenderer:"addDonorLocationConnectionRendererComponent",cellRendererParams:{onDonorLocationSelected:(e,i)=>{let o=this.gridOptions.api?.getRowNode(i.id);o&&this.addConnection(e,o)},onDonorLocationMappingAdded:e=>{this.totalDonorLocationsMissingERPMapping=this.getDonorLocationsMissingERPMappingTotalCount()},getAvailableDonorLocations:this.getAvailableDonorLocations.bind(this)},cellClass:["stretch-cell"]},{headerName:"Distance",minWidth:60,width:80,cellRenderer:e=>e.data?.agency?.Latitude&&e.data?.agency?.Longitude&&e.data?.donorLocation?.Latitude&&e.data?.donorLocation?.Longitude?'<span class="tw-text-sm xl:tw-text-base 2xl:tw-text-lg">'+Math.ceil(this.connectionsService.getDistanceBetweenTwoPoints({lat:e.data.agency.Latitude,lon:e.data.agency.Longitude},{lat:e.data.donorLocation.Latitude,lon:e.data.donorLocation.Longitude}))+"mi</span>":""},this.buildConnectCell("Mo","Monday"),this.buildConnectCell("Tu","Tuesday"),this.buildConnectCell("We","Wednesday"),this.buildConnectCell("Th","Thursday"),this.buildConnectCell("Fr","Friday"),this.buildConnectCell("Sa","Saturday"),this.buildConnectCell("Su","Sunday"),{headerName:"Remove Mapping",width:140,minWidth:140,cellRenderer:"removeConnectionRendererComponent",cellRendererParams:{onRemoveConnection:e=>{let i=this.gridOptions.api?.getRowNode(e.id);i&&this.removeConnection(e,i)}}}]:this.isSortingByDonor()?[{headerName:"Donor",minWidth:100,width:250,cellRenderer:"donorLocationDetailRendererComponent",cellRendererParams:{onDonorLocationMappingAdded:e=>{this.totalDonorLocationsMissingERPMapping=this.getDonorLocationsMissingERPMappingTotalCount()},onPrint:e=>{this.schedule=this.totalData.filter(i=>i.donorLocationId===e.ID),this.viewingSchedule=!0}},rowSpan:e=>e.data.rowSpan,cellClass:["ag-cell-span","stretch-cell"]},{headerName:"Agency",minWidth:200,width:250,cellRenderer:"addAgencyConnectionRendererComponent",cellRendererParams:{onAgencySelected:(e,i)=>{let o=this.gridOptions.api?.getRowNode(i.id);o&&this.addConnection(e,o)},getAvailableAgencies:this.getAvailableAgencies.bind(this)},cellClass:["stretch-cell"]},{headerName:"Distance",minWidth:60,width:80,cellRenderer:e=>e.data?.agency?.Latitude&&e.data?.agency?.Longitude&&e.data?.donorLocation?.Latitude&&e.data?.donorLocation?.Longitude?'<span class="tw-text-sm xl:tw-text-base 2xl:tw-text-lg">'+Math.ceil(this.connectionsService.getDistanceBetweenTwoPoints({lat:e.data.agency.Latitude,lon:e.data.agency.Longitude},{lat:e.data.donorLocation.Latitude,lon:e.data.donorLocation.Longitude}))+"mi</span>":""},this.buildConnectCell("Mo","Monday"),this.buildConnectCell("Tu","Tuesday"),this.buildConnectCell("We","Wednesday"),this.buildConnectCell("Th","Thursday"),this.buildConnectCell("Fr","Friday"),this.buildConnectCell("Sa","Saturday"),this.buildConnectCell("Su","Sunday"),{headerName:"Remove Mapping",width:140,minWidth:140,cellRenderer:"removeConnectionRendererComponent",cellRendererParams:{onRemoveConnection:e=>{let i=this.gridOptions.api?.getRowNode(e.id);i&&this.removeConnection(e,i)}}}]:[]}getAvailableAgencies(e){let i=this.currentData.filter(a=>a.donorLocationId===e.ID&&!!a.agencyId).map(a=>a.agencyId),o=[];o=i.length?this.agencies.filter(a=>!i.some(l=>l===a.ID)):this.agencies;let s=o.map(a=>({...a,Distance:Math.ceil(this.connectionsService.getDistanceBetweenTwoPoints({lat:e.Latitude,lon:e.Longitude},{lat:a.Latitude,lon:a.Longitude}))})).filter(a=>a.Distance);return Ph(s,["Distance"])}getAvailableDonorLocations(e){let i=this.currentData.filter(a=>a.agencyId===e.ID&&!!a.donorLocationId).map(a=>a.donorLocationId),o=[];o=i.length?this.donorLocations.filter(a=>!i.some(l=>l===a.ID)):this.donorLocations;let s=o.map(a=>({...a,Distance:Math.ceil(this.connectionsService.getDistanceBetweenTwoPoints({lat:e.Latitude,lon:e.Longitude},{lat:a.Latitude,lon:a.Longitude}))})).filter(a=>a.Distance);return Ph(s,["Distance"])}getDonorLocationsWithNoAgenciesAssigned(e){let i=[],o=zx(e,s=>s.donorLocationId);return Wx(o,s=>{1===s.length&&!s[0].agency&&i.push(s[0])}),i}getConnectionsWithNoDayOfWeekAssignments(e){let i=[];return e.forEach(o=>{o.connection?.AgencyID&&!o.connection?.IsAvailableMonday&&!o.connection?.IsAvailableTuesday&&!o.connection?.IsAvailableWednesday&&!o.connection?.IsAvailableThursday&&!o.connection?.IsAvailableFriday&&!o.connection?.IsAvailableSaturday&&!o.connection?.IsAvailableSunday&&i.push(o)}),i}getDonorLocationsMissingERPMappingTotalCount(){return this.donorLocations.filter(e=>!e.ExternalStoreNumber).length}getDonorLocationsMissingERPMapping(e){return e.filter(o=>o.donorLocation&&!o.donorLocation.ExternalStoreNumber)}addConnection(e,i){this.logConnectionAdd(e?.AgencyID||0,e?.DonorLocationID||0),this.connectionsService.addConnection(e).then(o=>{let s=this.agencies.find(d=>d.ID===o.AgencyID),a=this.donorLocations.find(d=>d.ID===o.DonorLocationID);if(!i.data.isFirstRow){let d=this.isSortingByDonor()?this.currentData.find(v=>v.donorLocationId===a?.ID&&!0===v.isFirstRow):this.currentData.find(v=>v.agencyId===s?.ID&&!0===v.isFirstRow);d.rowSpan++,d.isNewRow=!1,this.gridOptions.api?.applyTransaction({update:[d]});let f=this.gridOptions.api?.getRowNode(d.id);this.gridOptions.api?.redrawRows({rowNodes:[f]})}let l={id:i.data.id,agency:s,agencyId:s?.ID,donorLocation:a,donorLocationId:a?.ID,connection:o,isNewRow:!1,isFirstRow:i.data.isFirstRow,rowSpan:i.data.isFirstRow?i.data.rowSpan+1:1};this.updateData(l),i.setData(l),this.gridOptions.api?.redrawRows({rowNodes:[i]});let c="agency"===this.sortBy?{id:this.connectionsService.generateId(),agency:s,agencyId:s?.ID,isNewRow:!0,isFirstRow:!1,rowSpan:1}:{id:this.connectionsService.generateId(),donorLocation:a,donorLocationId:a?.ID,isNewRow:!0,isFirstRow:!1,rowSpan:1};this.addData(c),this.gridOptions.api?.applyTransaction({add:[c],addIndex:i.rowIndex+1}),this.calculateTotals()}).catch(o=>{this.toasterService.displayErrorToast("Error","Unable to add connection: "+(o?.error?.ExceptionMessage||"An unexpected error occurred.")),this.gridOptions.api?.redrawRows({rowNodes:[i]})})}removeConnection(e,i){e.connection?(this.logConnectionRemove(e?.connection?.AgencyID||0,e?.connection?.DonorLocationID||0),this.connectionsService.removeConnection(e.connection).then(()=>{let o=[],s=[];if(this.totalData=this.totalData.filter(a=>a.id!==e.id),this.currentData=this.currentData.filter(a=>a.id!==e.id),"agency"===this.sortBy){o=this.currentData.filter(l=>l.agencyId===e.agencyId);let a=zx(o,l=>l.agencyId);Wx(a,this.setRowPropertiesForAgencyData.bind(this))}else{o=this.currentData.filter(l=>l.donorLocationId===e.donorLocationId);let a=zx(o,l=>l.donorLocationId);Wx(a,this.setRowPropertiesForDonorData.bind(this))}Wx(o,a=>{let l=this.gridOptions.api?.getRowNode(a.id);l&&(l.setData(a),s.push(l))}),this.gridOptions.api?.applyTransaction({remove:[i]}),this.gridOptions.api?.redrawRows({rowNodes:s}),this.calculateTotals()}).catch(o=>{this.toasterService.displayErrorToast("Error","Unable to remove connection: "+(o?.error?.ExceptionMessage||"An unexpected error occurred.")),this.gridOptions.api?.redrawRows({rowNodes:[i]})})):this.toasterService.displayErrorToast("Error","Unable to remove connection: None provided")}isSortingByDonor(){return"agency"!==this.sortBy}sortCurrentDataByAgency(){this.currentData=Ph(this.currentData,["distance","agency.Name","donorLocation.DonorName","donorLocation.Code"])}sortCurrentDataByDonorLocation(){this.currentData=Ph(this.currentData,["distance","donorLocation.DonorName","donorLocation.Code","agency.Name"])}filterByText(e){let i=[...e];if(this.filterTextValue){let o=this.filterTextValue.trim().toLowerCase();i=i.filter(s=>!!("agency"===this.sortBy&&s.agency&&(s.agency.Name?.toLowerCase().indexOf(o)>-1||s.agency.Code?.toLowerCase().indexOf(o)>-1||s.agency.AddressLine1?.toLowerCase().indexOf(o)>-1||s.agency.City?.toLowerCase().indexOf(o)>-1||s.agency.Province?.toLowerCase().indexOf(o)>-1||s.agency.PostalCode?.toLowerCase().indexOf(o)>-1)||this.isSortingByDonor()&&s.donorLocation&&(s.donorLocation.DonorName?.toLowerCase().indexOf(o)>-1||s.donorLocation.Code?.toLowerCase().indexOf(o)>-1||s.donorLocation.ExternalStoreNumber?.toLowerCase().indexOf(o)>-1||s.donorLocation.AddressLine1?.toLowerCase().indexOf(o)>-1||s.donorLocation.City?.toLowerCase().indexOf(o)>-1||s.donorLocation.Province?.toLowerCase().indexOf(o)>-1||s.donorLocation.PostalCode?.toLowerCase().indexOf(o)>-1)))}return i}filterByDistance(e){var i=this;return(0,lr.A)(function*(){i.updateDistanceFilterText();let o=[...e];if(i.distanceFilterZip&&i.distanceFilter){let s=yield i.geocodingService.getGeocodedAddress(i.distanceFilterZip.toString());s&&(o=o.filter(a=>"agency"===i.sortBy?!!a.agency&&(a.distance=i.connectionsService.getDistanceBetweenTwoPoints({lat:a.agency.Latitude,lon:a.agency.Longitude},{lat:s.Latitude,lon:s.Longitude}),a.distance<=i.distanceFilter):!(!i.isSortingByDonor()||!a.donorLocation)&&(a.distance=i.connectionsService.getDistanceBetweenTwoPoints({lat:a.donorLocation.Latitude,lon:a.donorLocation.Longitude},{lat:s.Latitude,lon:s.Longitude}),a.distance<=i.distanceFilter)))}else o.forEach(s=>s.distance=void 0);return o})()}updateDistanceFilterText(){this.distanceFilterText=this.distanceFilter?`Within ${this.distanceFilter} Miles of ${this.distanceFilterZip}`:"Filter by Distance"}clearDistanceFilter(){this.distanceFilter=null,this.distanceFilterZip="",this.distanceFilterOverlay?.hide(),this.updateDistanceFilterText(),this.rebuildCurrentData().then(()=>{this.gridOptions.api?.setRowData(this.currentData)})}onDistanceFilterChange(e){e.preventDefault(),this.distanceFilterOverlay?.hide(),this.gridApi?.refresh()}onSortChange(){this.gridApi?.refresh(),this.gridOptions.api?.setColumnDefs(this.buildColumnDefinitions()),this.gridOptions.api?.sizeColumnsToFit()}updateAgencyData(){var e=this;return(0,lr.A)(function*(){e.currentData=e.totalData.filter(o=>void 0!==o.agency),e.currentData=e.filterByText(e.currentData),e.currentData=yield e.filterByDistance(e.currentData);let i=zx(e.currentData,o=>o.agencyId);Wx(i,e.setRowPropertiesForAgencyData.bind(e)),e.sortCurrentDataByAgency()})()}setRowPropertiesForAgencyData(e,i,o){let s=Ph(e,["donorLocation.DonorName","donorLocation.Code"])[0];s.isFirstRow=!0,s.rowSpan=e.length,1!==e.length||e[0].donorLocationId?o[i].some(a=>a.isNewRow)||(s.rowSpan++,this.addData({id:this.connectionsService.generateId(),agency:e[0].agency,agencyId:e[0].agencyId,rowSpan:1,isNewRow:!0,distance:s.distance})):(s.isNewRow=!0,s.rowSpan=1)}updateDonorData(){var e=this;return(0,lr.A)(function*(){e.currentData=e.totalData.filter(o=>void 0!==o.donorLocation),e.currentData=e.filterByText(e.currentData),e.currentData=yield e.filterByDistance(e.currentData),"noagencies"===e.sortBy&&(e.currentData=e.getDonorLocationsWithNoAgenciesAssigned(e.currentData)),"noassignment"===e.sortBy&&(e.currentData=e.getConnectionsWithNoDayOfWeekAssignments(e.currentData)),"missingmapping"===e.sortBy&&(e.currentData=e.getDonorLocationsMissingERPMapping(e.currentData));let i=zx(e.currentData,o=>o.donorLocationId);Wx(i,e.setRowPropertiesForDonorData.bind(e)),e.sortCurrentDataByDonorLocation()})()}setRowPropertiesForDonorData(e,i,o){let s=Ph(e,["agency.Name"])[0];s.isFirstRow=!0,s.rowSpan=e.length,1!==e.length||e[0].agencyId?o[i].some(a=>a.isNewRow)||(s.rowSpan++,this.addData({id:this.connectionsService.generateId(),donorLocation:e[0].donorLocation,donorLocationId:e[0].donorLocationId,rowSpan:1,isNewRow:!0,distance:s.distance})):(s.isNewRow=!0,s.rowSpan=1)}resetData(){this.currentData=[],this.totalData=this.totalData.map(e=>(e.isFirstRow=!1,e.rowSpan=1,e))}rebuildCurrentData(){var e=this;return(0,lr.A)(function*(){e.isSortingByDonor()?yield e.updateDonorData():yield e.updateAgencyData()})()}onGetDataAsync(){var e=this;return(0,lr.A)(function*(){return e.resetData(),yield e.rebuildCurrentData(),{data:e.currentData,page:1,total:1,error:null}})()}addData(e){this.currentData.push(e),this.totalData.push(e)}updateData(e){let i=this.currentData.find(s=>s.id===e.id);i&&(i.agency=e.agency,i.agencyId=e.agencyId,i.donorLocation=e.donorLocation,i.donorLocationId=e.donorLocationId,i.connection=e.connection,i.isNewRow=e.isNewRow,i.isFirstRow=e.isFirstRow,i.rowSpan=e.rowSpan);let o=this.totalData.find(s=>s.id===e.id);o&&(o.agency=e.agency,o.agencyId=e.agencyId,o.donorLocation=e.donorLocation,o.donorLocationId=e.donorLocationId,o.connection=e.connection,o.isNewRow=e.isNewRow,o.isFirstRow=e.isFirstRow,o.rowSpan=e.rowSpan)}handleExport(e){"pdf"===e?this.exportToPDF():"xlsx"===e&&this.exportToExcel()}exportToPDF(){const e=new gW.default("landscape"),s=this.currentData.filter(a=>a.agency&&a.donorLocation).map(a=>{const l=a.donorLocation?.ExternalStoreNumber?`(${a.donorLocation.ExternalStoreNumber})`:`(${a.donorLocation?.Code})`,c=a.agency?.Code?`(${a.agency.Code})`:"",d=this.getPickupDays(a.connection);return[`${a.donorLocation?.DonorName?.trim()||""} ${l}`,`${a.donorLocation?.AddressLine1?.trim()||""}, ${a.donorLocation?.City?.trim()||""}, ${a.donorLocation?.Province?.trim()||""}, ${a.donorLocation?.PostalCode?.trim()||""}`,`${a.agency?.Name?.trim()||""} ${c}`,`${a.agency?.AddressLine1?.trim()||""}, ${a.agency?.City?.trim()||""}, ${a.agency?.Province?.trim()||""}, ${a.agency?.PostalCode?.trim()||""}`,...d]});kre()(e,{head:[["DONOR","DONOR ADDRESS","AGENCY","AGENCY ADDRESS","MO","TU","WE","TH","FR","SA","SU"]],body:s,margin:{top:20},styles:{fontSize:12,cellPadding:[3,2,3,2],lineColor:[47,125,188],lineWidth:.25},headStyles:{fillColor:[47,125,188],textColor:[255,255,255],fontSize:10,cellPadding:[4,2,4,2]},bodyStyles:{lineColor:[47,125,188]},columnStyles:{0:{cellWidth:50},1:{cellWidth:50},2:{cellWidth:50},3:{cellWidth:50},4:{cellWidth:10,halign:"center",valign:"middle"},5:{cellWidth:10,halign:"center",valign:"middle"},6:{cellWidth:10,halign:"center",valign:"middle"},7:{cellWidth:10,halign:"center",valign:"middle"},8:{cellWidth:10,halign:"center",valign:"middle"},9:{cellWidth:10,halign:"center",valign:"middle"},10:{cellWidth:10,halign:"center",valign:"middle"}},pageBreak:"auto",showHead:"everyPage"}),e.save("connections-data.pdf")}exportToExcel(){const e=this.currentData.filter(s=>s.agency&&s.donorLocation),i=Fz.json_to_sheet(e.map(s=>{const a=this.getPickupDays(s.connection);return{Donor:s.donorLocation?.DonorName?.trim()||"","Store Number":s.donorLocation?.ExternalStoreNumber?.trim()||s.donorLocation?.Code,"Donor Address":`${s.donorLocation?.AddressLine1?.trim()||""}, ${s.donorLocation?.City?.trim()||""}, ${s.donorLocation?.Province?.trim()||""}, ${s.donorLocation?.PostalCode?.trim()||""}`,Agency:s.agency?.Name?.trim()||"","Agency Code":s.agency?.Code?.trim()||"","Agency Address":`${s.agency?.AddressLine1?.trim()||""}, ${s.agency?.City?.trim()||""}, ${s.agency?.Province?.trim()||""}, ${s.agency?.PostalCode?.trim()||""}`,Monday:a[0],Tuesday:a[1],Wednesday:a[2],Thursday:a[3],Friday:a[4],Saturday:a[5],Sunday:a[6]}}),{header:["Donor","Store Number","Donor Address","Agency","Agency Code","Agency Address","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"]}),o=Fz.book_new();Fz.book_append_sheet(o,i,"Connections Data"),function Pze(t,r,e){var i=e||{};i.type="file",i.file=r,function Az(t){if(!t.bookType){var e=t.file.slice(t.file.lastIndexOf(".")).toLowerCase();e.match(/^\.[a-z]+$/)&&(t.bookType=e.slice(1)),t.bookType={xls:"biff8",htm:"html",slk:"sylk",socialcalc:"eth",Sh33tJS:"WTF"}[t.bookType]||t.bookType}}(i),Iz(t,i)}(o,"connections-data.xlsx")}getPickupDays(e){return e?[e.IsAvailableMonday?"o":"",e.IsAvailableTuesday?"o":"",e.IsAvailableWednesday?"o":"",e.IsAvailableThursday?"o":"",e.IsAvailableFriday?"o":"",e.IsAvailableSaturday?"o":"",e.IsAvailableSunday?"o":""]:["","","","","","",""]}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(Sre),n.rXU(Kze),n.rXU(tc),n.rXU(mW))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-connections"]],viewQuery:function(i,o){if(1&i&&(n.GBs(yg,5),n.GBs(Qze,5)),2&i){let s;n.mGM(s=n.lsd())&&(o.grid=s.first),n.mGM(s=n.lsd())&&(o.distanceFilterOverlay=s.first)}},standalone:!1,decls:24,vars:15,consts:[["distanceFilterOverlay",""],[1,"tw-flex","tw-space-x-4"],["pInputText","","type","text","id","connectionsFilterText","name","connectionsFilterText",1,"form-control","tw-w-1/3",3,"ngModelChange","ngModel","placeholder"],[1,"btn-reset","tw-flex","tw-items-center","tw-space-x-2","tw-w-1/3","tw-bg-white","tw-border","tw-border-solid","tw-border-gray-300","tw-text-start","tw-px-4",3,"click"],[1,"pi","pi-map-marker","tw-text-gray-600"],[1,"tw-text-gray-600"],[1,"tw-m-0",3,"focusOnShow"],["pTemplate","content"],[1,"form-control","tw-w-1/3",3,"ngModelChange","change","ngModel"],[3,"value",4,"ngIf"],["value","donor"],["value","agency"],["value","noagencies"],["value","noassignment"],["value","missingmapping"],["classes","btn btn-primary",3,"onExportSelected","offerPdf","offerExcel"],["height","100%","class","tw-mt-4",3,"frameworkComponents","getDataAsync","gridOptions","onInit","rowHeight","hideRowCount",4,"ngIf"],[3,"onClose","visible","schedule","sortBy"],[3,"submit"],[1,"tw-flex","tw-space-x-2"],["name","distanceFilterOptions","optionLabel","text","optionValue","value",3,"ngModelChange","ngModel","options"],["name","distanceFilterZip","autocomplete","off","pInputText","","placeholder","ZIP Code","type","text",3,"ngModelChange","ngModel","pKeyFilter"],[1,"tw-mt-4","tw-flex","tw-justify-between"],["type","button",1,"btn","btn-default",3,"click"],[1,"tw-flex","tw-justify-end","tw-space-x-2"],["type","submit",1,"btn","btn-primary",3,"disabled"],[3,"value"],["height","100%",1,"tw-mt-4",3,"frameworkComponents","getDataAsync","gridOptions","onInit","rowHeight","hideRowCount"]],template:function(i,o){if(1&i){const s=n.RV6();n.j41(0,"div",1)(1,"input",2),n.bIt("ngModelChange",function(l){return n.eBV(s),n.Njj(o.filterData(l))}),n.k0s(),n.j41(2,"button",3),n.bIt("click",function(l){n.eBV(s);const c=n.sdS(7);return n.Njj(c.toggle(l))}),n.nrm(3,"i",4),n.j41(4,"span",5),n.EFF(5),n.k0s(),n.j41(6,"p-popover",6,0),n.DNE(8,Jze,12,5,"ng-template",7),n.k0s()(),n.j41(9,"select",8),n.mxI("ngModelChange",function(l){return n.eBV(s),n.DH7(o.sortBy,l)||(o.sortBy=l),n.Njj(l)}),n.bIt("change",function(){return n.eBV(s),n.Njj(o.onSortChange())}),n.DNE(10,Zze,1,1,"option",9),n.j41(11,"option",10),n.EFF(12,"Sort by Donor"),n.k0s(),n.j41(13,"option",11),n.EFF(14,"Sort by Agency"),n.k0s(),n.j41(15,"option",12),n.EFF(16),n.k0s(),n.j41(17,"option",13),n.EFF(18),n.k0s(),n.j41(19,"option",14),n.EFF(20),n.k0s()(),n.j41(21,"export-button",15),n.bIt("onExportSelected",function(l){return n.eBV(s),n.Njj(o.handleExport(l))}),n.k0s()(),n.DNE(22,eqe,1,6,"grid",16),n.j41(23,"view-print-mapping",17),n.bIt("onClose",function(){return n.eBV(s),n.Njj(o.viewingSchedule=!1)}),n.k0s()}2&i&&(n.R7$(),n.Y8G("ngModel",o.filterTextModel)("placeholder","agency"===o.sortBy?"Filter Agencies":"Filter Donors"),n.R7$(4),n.SpI(" ",o.distanceFilterText," "),n.R7$(),n.Y8G("focusOnShow",!0),n.R7$(3),n.R50("ngModel",o.sortBy),n.R7$(),n.Y8G("ngIf",!o.initialLoadComplete),n.R7$(6),n.SpI(" Donors with No Agencies Assigned (",o.totalDonorLocationsWithNoAgenciesAssigned,") "),n.R7$(2),n.SpI(" Connections with No Day of Week Assignment (",o.totalConnectionsWithNoDayOfWeekAssignments,") "),n.R7$(2),n.SpI(" Missing ERP Mapping (",o.totalDonorLocationsMissingERPMapping,") "),n.R7$(),n.Y8G("offerPdf",!0)("offerExcel",!0),n.R7$(),n.Y8G("ngIf",o.initialLoadComplete),n.R7$(),n.Y8G("visible",o.viewingSchedule)("schedule",o.schedule)("sortBy","agency"===o.sortBy?"agency":"donor"))},styles:[".connect-cell[_ngcontent-%COMP%]{padding:0}"]})}}return t})();const tqe=({dt:t})=>`\n.p-multiselect {\n    display: inline-flex;\n    cursor: pointer;\n    position: relative;\n    user-select: none;\n    background: ${t("multiselect.background")};\n    border: 1px solid ${t("multiselect.border.color")};\n    transition: background ${t("multiselect.transition.duration")}, color ${t("multiselect.transition.duration")}, border-color ${t("multiselect.transition.duration")}, outline-color ${t("multiselect.transition.duration")}, box-shadow ${t("multiselect.transition.duration")};\n    border-radius: ${t("multiselect.border.radius")};\n    outline-color: transparent;\n    box-shadow: ${t("multiselect.shadow")};\n}\n\n.p-multiselect.ng-invalid.ng-dirty {\n    border-color: ${t("multiselect.invalid.border.color")};\n}\n\n.p-multiselect:not(.p-disabled):hover {\n    border-color: ${t("multiselect.hover.border.color")};\n}\n\n.p-multiselect:not(.p-disabled).p-focus {\n    border-color: ${t("multiselect.focus.border.color")};\n    box-shadow: ${t("multiselect.focus.ring.shadow")};\n    outline: ${t("multiselect.focus.ring.width")} ${t("multiselect.focus.ring.style")} ${t("multiselect.focus.ring.color")};\n    outline-offset: ${t("multiselect.focus.ring.offset")};\n}\n\n.p-multiselect.p-variant-filled {\n    background: ${t("multiselect.filled.background")};\n}\n\n.p-multiselect.p-variant-filled:not(.p-disabled):hover {\n    background: ${t("multiselect.filled.hover.background")};\n}\n\n.p-multiselect.p-variant-filled.p-focus {\n    background: ${t("multiselect.filled.focus.background")};\n}\n\n.p-multiselect.p-disabled {\n    opacity: 1;\n    background: ${t("multiselect.disabled.background")};\n}\n\n.p-multiselect-dropdown {\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    flex-shrink: 0;\n    background: transparent;\n    color: ${t("multiselect.dropdown.color")};\n    width: ${t("multiselect.dropdown.width")};\n    border-start-end-radius: ${t("multiselect.border.radius")};\n    border-end-end-radius: ${t("multiselect.border.radius")};\n}\n\n.p-multiselect-label-container {\n    overflow: hidden;\n    flex: 1 1 auto;\n    cursor: pointer;\n}\n\n.p-multiselect-label {\n    display: flex;\n    align-items-center;\n    gap: calc(${t("multiselect.padding.y")} / 2);\n    white-space: nowrap;\n    cursor: pointer;\n    overflow: hidden;\n    text-overflow: ellipsis;\n    padding: ${t("multiselect.padding.y")} ${t("multiselect.padding.x")};\n    color: ${t("multiselect.color")};\n}\n\n.p-multiselect-label.p-placeholder {\n    color: ${t("multiselect.placeholder.color")};\n}\n\np-multiselect.ng-invalid.ng-dirty .p-multiselect-label.p-placeholder {\n    color: ${t("multiselect.invalid.placeholder.color")};\n}\n\n.p-multiselect.p-disabled .p-multiselect-label {\n    color: ${t("multiselect.disabled.color")};\n}\n\n.p-multiselect-label-empty {\n    overflow: hidden;\n    visibility: hidden;\n}\n\n.p-multiselect .p-multiselect-overlay {\n    min-width: 100%;\n}\n\n.p-multiselect-overlay {\n    background: ${t("multiselect.overlay.background")};\n    color: ${t("multiselect.overlay.color")};\n    border: 1px solid ${t("multiselect.overlay.border.color")};\n    border-radius: ${t("multiselect.overlay.border.radius")};\n    box-shadow: ${t("multiselect.overlay.shadow")};\n}\n\n.p-multiselect-header {\n    display: flex;\n    align-items: center;\n    padding: ${t("multiselect.list.header.padding")};\n}\n\n.p-multiselect-header .p-checkbox {\n    margin-inline-end: ${t("multiselect.option.gap")};\n}\n\n.p-multiselect-filter-container {\n    flex: 1 1 auto;\n}\n\n.p-multiselect-filter {\n    width: 100%;\n}\n\n.p-multiselect-list-container {\n    overflow: auto;\n}\n\n.p-multiselect-list {\n    margin: 0;\n    padding: 0;\n    list-style-type: none;\n    padding: ${t("multiselect.list.padding")};\n    display: flex;\n    flex-direction: column;\n    gap: ${t("multiselect.list.gap")}\n}\n\n.p-multiselect-option {\n    cursor: pointer;\n    font-weight: normal;\n    white-space: nowrap;\n    position: relative;\n    overflow: hidden;\n    display: flex;\n    align-items: center;\n    gap: ${t("multiselect.option.gap")};\n    padding: ${t("multiselect.option.padding")};\n    border: 0 none;\n    color: ${t("multiselect.option.color")};\n    background: transparent;\n    transition: background ${t("multiselect.transition.duration")}, color ${t("multiselect.transition.duration")}, border-color ${t("multiselect.transition.duration")}, box-shadow ${t("multiselect.transition.duration")}, outline-color ${t("multiselect.transition.duration")};\n    border-radius: ${t("multiselect.option.border.radius")}\n}\n\n.p-multiselect-option:not(.p-multiselect-option-selected):not(.p-disabled).p-focus {\n    background: ${t("multiselect.option.focus.background")};\n    color: ${t("multiselect.option.focus.color")};\n}\n\n.p-multiselect-option.p-multiselect-option-selected {\n    background: ${t("multiselect.option.selected.background")};\n    color: ${t("multiselect.option.selected.color")};\n}\n\n.p-multiselect-option.p-multiselect-option-selected.p-focus {\n    background: ${t("multiselect.option.selected.focus.background")};\n    color: ${t("multiselect.option.selected.focus.color")};\n}\n\n.p-multiselect-option-group {\n    cursor: auto;\n    margin: 0;\n    padding: ${t("multiselect.option.group.padding")};\n    background: ${t("multiselect.option.group.background")};\n    color: ${t("multiselect.option.group.color")};\n    font-weight: ${t("multiselect.option.group.font.weight")};\n}\n\n.p-multiselect-empty-message {\n    padding: ${t("multiselect.empty.message.padding")};\n}\n\n.p-multiselect-label .p-chip {\n    padding-top: calc(${t("multiselect.padding.y")} / 2);\n    padding-bottom: calc(${t("multiselect.padding.y")} / 2);\n    border-radius: ${t("multiselect.chip.border.radius")};\n}\n\n.p-multiselect-label:has(.p-chip) {\n    padding: calc(${t("multiselect.padding.y")} / 2) calc(${t("multiselect.padding.x")} / 2);\n}\n\n.p-multiselect-fluid {\n    display: flex;\n}\n\n.p-multiselect-sm .p-multiselect-label {\n    font-size: ${t("multiselect.sm.font.size")};\n    padding-block: ${t("multiselect.sm.padding.y")};\n    padding-inline: ${t("multiselect.sm.padding.x")};\n}\n\n.p-multiselect-sm .p-multiselect-dropdown .p-icon {\n    font-size: ${t("multiselect.sm.font.size")};\n    width: ${t("multiselect.sm.font.size")};\n    height: ${t("multiselect.sm.font.size")};\n}\n\n.p-multiselect-lg .p-multiselect-label {\n    font-size: ${t("multiselect.lg.font.size")};\n    padding-block: ${t("multiselect.lg.padding.y")};\n    padding-inline: ${t("multiselect.lg.padding.x")};\n}\n\n.p-multiselect-lg .p-multiselect-dropdown .p-icon {\n    font-size: ${t("multiselect.lg.font.size")};\n    width: ${t("multiselect.lg.font.size")};\n    height: ${t("multiselect.lg.font.size")};\n}\n\n.p-multiselect-clear-icon {\n    cursor: pointer;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    flex-shrink: 0;\n    background: transparent;\n    color: ${t("multiselect.clear.icon.color")};\n}`,nqe={root:({props:t})=>({position:"self"===t.appendTo?"relative":void 0})},iqe={root:({instance:t})=>({"p-multiselect p-component p-inputwrapper":!0,"p-multiselect-display-chip":"chip"===t.display,"p-disabled":t.disabled,"p-invalid":t.invalid,"p-variant-filled":t.variant?"filled"===t.variant:"filled"===t.config.inputStyle,"p-focus":t.focused,"p-inputwrapper-filled":t.filled,"p-inputwrapper-focus":t.focused||t.overlayVisible,"p-multiselect-open":t.overlayVisible,"p-multiselect-fluid":t.hasFluid,"p-multiselect-sm p-inputfield-sm":"small"===t.size,"p-multiselect-lg p-inputfield-lg":"large"===t.size}),labelContainer:"p-multiselect-label-container",label:({instance:t})=>({"p-multiselect-label":!0,"p-placeholder":t.label()===t.placeholder(),"p-multiselect-label-empty":!(t.placeholder()||t.defaultLabel||t.modelValue()&&0!==t.modelValue().length)}),chipItem:"p-multiselect-chip-item",pcChip:"p-multiselect-chip",chipIcon:"p-multiselect-chip-icon",dropdown:"p-multiselect-dropdown",loadingIcon:"p-multiselect-loading-icon",dropdownIcon:"p-multiselect-dropdown-icon",overlay:"p-multiselect-overlay p-component",header:"p-multiselect-header",pcFilterContainer:"p-multiselect-filter-container",pcFilter:"p-multiselect-filter",listContainer:"p-multiselect-list-container",list:"p-multiselect-list",optionGroup:"p-multiselect-option-group",option:({instance:t,option:r,index:e,getItemOptions:i})=>({"p-multiselect-option":!0,"p-multiselect-option-selected":t.isSelected(r)&&t.highlightOnSelect,"p-focus":t.focusedOptionIndex===t.getOptionIndex(e,i),"p-disabled":t.isOptionDisabled(r)}),emptyMessage:"p-multiselect-empty-message"};let Xae=(()=>{class t extends gs{name="multiselect";theme=tqe;classes=iqe;inlineStyles=nqe;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const _F=t=>({height:t}),oqe=(t,r)=>({"p-multiselect-option":!0,"p-disabled":t,"p-focus":r}),Kae=t=>({$implicit:t}),sqe=(t,r)=>({checked:t,class:r});function aqe(t,r){}function lqe(t,r){1&t&&n.DNE(0,aqe,0,0,"ng-template")}function cqe(t,r){if(1&t&&n.DNE(0,lqe,1,0,null,4),2&t){const e=r.class,i=n.XpG(2);n.Y8G("ngTemplateOutlet",i.itemCheckboxIconTemplate)("ngTemplateOutletContext",n.l_i(2,sqe,i.selected,e))}}function uqe(t,r){1&t&&(n.qex(0),n.DNE(1,cqe,1,5,"ng-template",null,0,n.C5r),n.bVm())}function dqe(t,r){if(1&t&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&t){let e;const i=n.XpG();n.R7$(),n.JRh(null!==(e=i.label)&&void 0!==e?e:"empty")}}function pqe(t,r){1&t&&n.eu8(0)}const hqe=["item"],fqe=["group"],mqe=["loader"],gqe=["header"],vqe=["filter"],_qe=["footer"],yqe=["emptyfilter"],bqe=["empty"],Cqe=["selecteditems"],wqe=["checkicon"],Tqe=["loadingicon"],Sqe=["filtericon"],xqe=["removetokenicon"],Eqe=["chipicon"],Dqe=["clearicon"],kqe=["dropdownicon"],Iqe=["itemcheckboxicon"],Aqe=["headercheckboxicon"],Mqe=["overlay"],Rqe=["filterInput"],Oqe=["focusInput"],Fqe=["items"],Pqe=["scroller"],Lqe=["lastHiddenFocusableEl"],Nqe=["firstHiddenFocusableEl"],Gqe=["headerCheckbox"],Bqe=[[["p-header"]],[["p-footer"]]],Vqe=["p-header","p-footer"],jqe=()=>({class:"p-multiselect-chip-icon"}),Hqe=(t,r)=>({$implicit:t,removeChip:r}),Qae=t=>({options:t}),Uqe=(t,r,e)=>({checked:t,partialSelected:r,class:e}),Jae=(t,r)=>({$implicit:t,options:r}),$qe=()=>({});function Yqe(t,r){if(1&t&&(n.qex(0),n.EFF(1),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.JRh(e.label()||"empty")}}function Wqe(t,r){1&t&&n.eu8(0)}function zqe(t,r){if(1&t){const e=n.RV6();n.j41(0,"span",28),n.bIt("click",function(o){n.eBV(e);const s=n.XpG(4).$implicit,a=n.XpG(3);return n.Njj(a.removeOption(s,o))}),n.DNE(1,Wqe,1,0,"ng-container",29),n.k0s()}if(2&t){const e=n.XpG(7);n.BMQ("data-pc-section","clearicon")("aria-hidden",!0),n.R7$(),n.Y8G("ngTemplateOutlet",e.chipIconTemplate||e._chipIconTemplate||e.removeTokenIconTemplate||e._removeTokenIconTemplate)("ngTemplateOutletContext",n.lJ4(4,jqe))}}function qqe(t,r){if(1&t&&(n.qex(0),n.DNE(1,zqe,2,5,"span",27),n.bVm()),2&t){const e=n.XpG(6);n.R7$(),n.Y8G("ngIf",e.chipIconTemplate||e._chipIconTemplate||e.removeTokenIconTemplate||e._removeTokenIconTemplate)}}function Xqe(t,r){if(1&t&&n.DNE(0,qqe,2,1,"ng-container",20),2&t){const e=n.XpG(5);n.Y8G("ngIf",!e.disabled)}}function Kqe(t,r){1&t&&(n.qex(0),n.DNE(1,Xqe,1,1,"ng-template",null,5,n.C5r),n.bVm())}function Qqe(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",25,4)(2,"p-chip",26),n.bIt("onRemove",function(o){const s=n.eBV(e).$implicit,a=n.XpG(3);return n.Njj(a.removeOption(s,o))}),n.DNE(3,Kqe,3,0,"ng-container",20),n.k0s()()}if(2&t){const e=r.$implicit,i=n.XpG(3);n.R7$(2),n.Y8G("label",i.getLabelByValue(e))("removable",!0)("removeIcon",i.chipIcon),n.R7$(),n.Y8G("ngIf",i.chipIconTemplate||i._chipIconTemplate||i.removeTokenIconTemplate||i._removeTokenIconTemplate)}}function Jqe(t,r){if(1&t&&(n.qex(0),n.EFF(1),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.JRh(e.placeholder()||e.defaultLabel||"empty")}}function Zqe(t,r){if(1&t&&(n.qex(0),n.DNE(1,Qqe,4,4,"div",24)(2,Jqe,2,1,"ng-container",20),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngForOf",e.chipSelectedItems()),n.R7$(),n.Y8G("ngIf",!e.modelValue()||0===e.modelValue().length)}}function eXe(t,r){if(1&t&&(n.qex(0),n.DNE(1,Yqe,2,1,"ng-container",20)(2,Zqe,3,2,"ng-container",20),n.bVm()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngIf","comma"===e.display),n.R7$(),n.Y8G("ngIf","chip"===e.display)}}function tXe(t,r){1&t&&n.eu8(0)}function nXe(t,r){if(1&t&&(n.qex(0),n.EFF(1),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.JRh(e.placeholder()||e.defaultLabel||"empty")}}function iXe(t,r){if(1&t&&(n.qex(0),n.DNE(1,tXe,1,0,"ng-container",29)(2,nXe,2,1,"ng-container",20),n.bVm()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngTemplateOutlet",e.selectedItemsTemplate||e._selectedItemsTemplate)("ngTemplateOutletContext",n.l_i(3,Hqe,e.selectedOptions,e.removeOption.bind(e))),n.R7$(),n.Y8G("ngIf",!e.modelValue()||0===e.modelValue().length)}}function rXe(t,r){if(1&t){const e=n.RV6();n.j41(0,"TimesIcon",31),n.bIt("click",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.clear(o))}),n.k0s()}2&t&&n.BMQ("data-pc-section","clearicon")("aria-hidden",!0)}function oXe(t,r){}function sXe(t,r){1&t&&n.DNE(0,oXe,0,0,"ng-template")}function aXe(t,r){if(1&t){const e=n.RV6();n.j41(0,"span",31),n.bIt("click",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.clear(o))}),n.DNE(1,sXe,1,0,null,32),n.k0s()}if(2&t){const e=n.XpG(2);n.BMQ("data-pc-section","clearicon")("aria-hidden",!0),n.R7$(),n.Y8G("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)}}function lXe(t,r){if(1&t&&(n.qex(0),n.DNE(1,rXe,1,2,"TimesIcon",30)(2,aXe,2,3,"span",30),n.bVm()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),n.R7$(),n.Y8G("ngIf",e.clearIconTemplate||e._clearIconTemplate)}}function cXe(t,r){1&t&&n.eu8(0)}function uXe(t,r){if(1&t&&(n.qex(0),n.DNE(1,cXe,1,0,"ng-container",32),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function dXe(t,r){if(1&t&&n.nrm(0,"span",35),2&t){const e=n.XpG(3);n.Y8G("ngClass","p-multiselect-loading-icon pi-spin "+e.loadingIcon)}}function pXe(t,r){1&t&&n.nrm(0,"span",36),2&t&&n.HbH("p-multiselect-loading-icon pi pi-spinner pi-spin")}function hXe(t,r){if(1&t&&(n.qex(0),n.DNE(1,dXe,1,1,"span",33)(2,pXe,1,2,"span",34),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngIf",e.loadingIcon),n.R7$(),n.Y8G("ngIf",!e.loadingIcon)}}function fXe(t,r){if(1&t&&(n.qex(0),n.DNE(1,uXe,2,1,"ng-container",20)(2,hXe,3,2,"ng-container",20),n.bVm()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngIf",e.loadingIconTemplate||e._loadingIconTemplate),n.R7$(),n.Y8G("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate)}}function mXe(t,r){if(1&t&&n.nrm(0,"span",40),2&t){const e=n.XpG(3);n.Y8G("ngClass",e.dropdownIcon),n.BMQ("data-pc-section","triggericon")("aria-hidden",!0)}}function gXe(t,r){1&t&&n.nrm(0,"ChevronDownIcon",41),2&t&&(n.Y8G("styleClass","p-multiselect-dropdown-icon"),n.BMQ("data-pc-section","triggericon")("aria-hidden",!0))}function vXe(t,r){if(1&t&&(n.qex(0),n.DNE(1,mXe,1,3,"span",38)(2,gXe,1,3,"ChevronDownIcon",39),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngIf",e.dropdownIcon),n.R7$(),n.Y8G("ngIf",!e.dropdownIcon)}}function _Xe(t,r){}function yXe(t,r){1&t&&n.DNE(0,_Xe,0,0,"ng-template")}function bXe(t,r){if(1&t&&(n.j41(0,"span",42),n.DNE(1,yXe,1,0,null,32),n.k0s()),2&t){const e=n.XpG(2);n.BMQ("data-pc-section","triggericon")("aria-hidden",!0),n.R7$(),n.Y8G("ngTemplateOutlet",e.dropdownIconTemplate||e._dropdownIconTemplate)}}function CXe(t,r){if(1&t&&n.DNE(0,vXe,3,2,"ng-container",20)(1,bXe,2,3,"span",37),2&t){const e=n.XpG();n.Y8G("ngIf",!e.dropdownIconTemplate&&!e._dropdownIconTemplate),n.R7$(),n.Y8G("ngIf",e.dropdownIconTemplate||e._dropdownIconTemplate)}}function wXe(t,r){1&t&&n.eu8(0)}function TXe(t,r){1&t&&n.eu8(0)}function SXe(t,r){if(1&t&&(n.qex(0),n.DNE(1,TXe,1,0,"ng-container",29),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngTemplateOutlet",e.filterTemplate||e._filterTemplate)("ngTemplateOutletContext",n.eq3(2,Qae,e.filterOptions))}}function xXe(t,r){if(1&t&&n.nrm(0,"CheckIcon",41),2&t){const e=n.XpG().class;n.Y8G("styleClass",e),n.BMQ("data-pc-section","icon")}}function EXe(t,r){}function DXe(t,r){1&t&&n.DNE(0,EXe,0,0,"ng-template")}function kXe(t,r){if(1&t&&n.DNE(0,xXe,1,2,"CheckIcon",39)(1,DXe,1,0,null,29),2&t){const e=r.class,i=n.XpG(5);n.Y8G("ngIf",!i.headerCheckboxIconTemplate&&!i._headerCheckboxIconTemplate&&i.allSelected()),n.R7$(),n.Y8G("ngTemplateOutlet",i.headerCheckboxIconTemplate||i._headerCheckboxIconTemplate)("ngTemplateOutletContext",n.sMw(3,Uqe,i.allSelected(),i.partialSelected(),e))}}function IXe(t,r){if(1&t){const e=n.RV6();n.j41(0,"p-checkbox",51,10),n.bIt("onChange",function(o){n.eBV(e);const s=n.XpG(4);return n.Njj(s.onToggleAll(o))}),n.DNE(2,kXe,2,7,"ng-template",null,11,n.C5r),n.k0s()}if(2&t){const e=n.XpG(4);n.Y8G("ngModel",e.allSelected())("binary",!0)("variant",e.variant)("disabled",e.disabled)}}function AXe(t,r){1&t&&n.nrm(0,"SearchIcon",41),2&t&&n.Y8G("styleClass","p-multiselect-filter-icon")}function MXe(t,r){}function RXe(t,r){1&t&&n.DNE(0,MXe,0,0,"ng-template")}function OXe(t,r){if(1&t&&(n.j41(0,"span",55),n.DNE(1,RXe,1,0,null,32),n.k0s()),2&t){const e=n.XpG(5);n.R7$(),n.Y8G("ngTemplateOutlet",e.filterIconTemplate||e._filterIconTemplate)}}function FXe(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",52)(1,"p-iconfield")(2,"input",53,12),n.bIt("input",function(o){n.eBV(e);const s=n.XpG(4);return n.Njj(s.onFilterInputChange(o))})("keydown",function(o){n.eBV(e);const s=n.XpG(4);return n.Njj(s.onFilterKeyDown(o))})("click",function(o){n.eBV(e);const s=n.XpG(4);return n.Njj(s.onInputClick(o))})("blur",function(o){n.eBV(e);const s=n.XpG(4);return n.Njj(s.onFilterBlur(o))}),n.k0s(),n.j41(4,"p-inputicon"),n.DNE(5,AXe,1,1,"SearchIcon",39)(6,OXe,2,1,"span",54),n.k0s()()()}if(2&t){const e=n.XpG(4);n.R7$(2),n.Y8G("variant",e.variant)("value",e._filterValue()||"")("disabled",e.disabled),n.BMQ("autocomplete",e.autocomplete)("aria-owns",e.id+"_list")("aria-activedescendant",e.focusedOptionId)("placeholder",e.filterPlaceHolder)("aria-label",e.ariaFilterLabel),n.R7$(3),n.Y8G("ngIf",!e.filterIconTemplate&&!e._filterIconTemplate),n.R7$(),n.Y8G("ngIf",e.filterIconTemplate||e._filterIconTemplate)}}function PXe(t,r){if(1&t&&n.DNE(0,IXe,4,4,"p-checkbox",49)(1,FXe,7,10,"div",50),2&t){const e=n.XpG(3);n.Y8G("ngIf",e.showToggleAll&&!e.selectionLimit),n.R7$(),n.Y8G("ngIf",e.filter)}}function LXe(t,r){if(1&t&&(n.j41(0,"div",48),n.SdG(1),n.DNE(2,SXe,2,4,"ng-container",22)(3,PXe,2,2,"ng-template",null,9,n.C5r),n.k0s()),2&t){const e=n.sdS(4),i=n.XpG(2);n.R7$(2),n.Y8G("ngIf",i.filterTemplate||i._filterTemplate)("ngIfElse",e)}}function NXe(t,r){1&t&&n.eu8(0)}function GXe(t,r){if(1&t&&n.DNE(0,NXe,1,0,"ng-container",29),2&t){const e=r.$implicit,i=r.options;n.XpG(2);const o=n.sdS(9);n.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",n.l_i(2,Jae,e,i))}}function BXe(t,r){1&t&&n.eu8(0)}function VXe(t,r){if(1&t&&n.DNE(0,BXe,1,0,"ng-container",29),2&t){const e=r.options,i=n.XpG(4);n.Y8G("ngTemplateOutlet",i.loaderTemplate||i._loaderTemplate)("ngTemplateOutletContext",n.eq3(2,Qae,e))}}function jXe(t,r){1&t&&(n.qex(0),n.DNE(1,VXe,1,4,"ng-template",null,14,n.C5r),n.bVm())}function HXe(t,r){if(1&t){const e=n.RV6();n.j41(0,"p-scroller",56,13),n.bIt("onLazyLoad",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onLazyLoad.emit(o))}),n.DNE(2,GXe,1,5,"ng-template",null,3,n.C5r)(4,jXe,3,0,"ng-container",20),n.k0s()}if(2&t){const e=n.XpG(2);n.Aen(n.eq3(9,_F,e.scrollHeight)),n.Y8G("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize||e._itemSize)("autoSize",!0)("tabindex",-1)("lazy",e.lazy)("options",e.virtualScrollOptions),n.R7$(4),n.Y8G("ngIf",e.loaderTemplate||e._loaderTemplate)}}function UXe(t,r){1&t&&n.eu8(0)}function $Xe(t,r){if(1&t&&(n.qex(0),n.DNE(1,UXe,1,0,"ng-container",29),n.bVm()),2&t){n.XpG();const e=n.sdS(9),i=n.XpG();n.R7$(),n.Y8G("ngTemplateOutlet",e)("ngTemplateOutletContext",n.l_i(3,Jae,i.visibleOptions(),n.lJ4(2,$qe)))}}function YXe(t,r){if(1&t&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&t){const e=n.XpG(2).$implicit,i=n.XpG(3);n.R7$(),n.JRh(i.getOptionGroupLabel(e.optionGroup))}}function WXe(t,r){1&t&&n.eu8(0)}function zXe(t,r){if(1&t&&(n.qex(0),n.j41(1,"li",60),n.DNE(2,YXe,2,1,"span",20)(3,WXe,1,0,"ng-container",29),n.k0s(),n.bVm()),2&t){const e=n.XpG(),i=e.$implicit,o=e.index,s=n.XpG().options,a=n.XpG(2);n.R7$(),n.Y8G("ngStyle",n.eq3(5,_F,s.itemSize+"px")),n.BMQ("id",a.id+"_"+a.getOptionIndex(o,s)),n.R7$(),n.Y8G("ngIf",!a.groupTemplate),n.R7$(),n.Y8G("ngTemplateOutlet",a.groupTemplate)("ngTemplateOutletContext",n.eq3(7,Kae,i.optionGroup))}}function qXe(t,r){if(1&t){const e=n.RV6();n.qex(0),n.j41(1,"p-multiselect-item",61),n.bIt("onClick",function(o){n.eBV(e);const s=n.XpG().index,a=n.XpG().options,l=n.XpG(2);return n.Njj(l.onOptionSelect(o,!1,l.getOptionIndex(s,a)))})("onMouseEnter",function(o){n.eBV(e);const s=n.XpG().index,a=n.XpG().options,l=n.XpG(2);return n.Njj(l.onOptionMouseEnter(o,l.getOptionIndex(s,a)))}),n.k0s(),n.bVm()}if(2&t){const e=n.XpG(),i=e.$implicit,o=e.index,s=n.XpG().options,a=n.XpG(2);n.R7$(),n.Y8G("id",a.id+"_"+a.getOptionIndex(o,s))("option",i)("selected",a.isSelected(i))("label",a.getOptionLabel(i))("disabled",a.isOptionDisabled(i))("template",a.itemTemplate||a._itemTemplate)("checkIconTemplate",a.checkIconTemplate||a._checkIconTemplate)("itemCheckboxIconTemplate",a.itemCheckboxIconTemplate||a._itemCheckboxIconTemplate)("itemSize",s.itemSize)("focused",a.focusedOptionIndex()===a.getOptionIndex(o,s))("ariaPosInset",a.getAriaPosInset(a.getOptionIndex(o,s)))("ariaSetSize",a.ariaSetSize)("variant",a.variant)}}function XXe(t,r){if(1&t&&n.DNE(0,zXe,4,9,"ng-container",20)(1,qXe,2,13,"ng-container",20),2&t){const e=r.$implicit,i=n.XpG(3);n.Y8G("ngIf",i.isOptionGroup(e)),n.R7$(),n.Y8G("ngIf",!i.isOptionGroup(e))}}function KXe(t,r){if(1&t&&n.EFF(0),2&t){const e=n.XpG(4);n.SpI(" ",e.emptyFilterMessageLabel," ")}}function QXe(t,r){1&t&&n.eu8(0)}function JXe(t,r){if(1&t&&n.DNE(0,QXe,1,0,"ng-container",32),2&t){const e=n.XpG(4);n.Y8G("ngTemplateOutlet",e.emptyFilterTemplate||e._emptyFilterTemplate||e.emptyTemplate||e._emptyFilterTemplate)}}function ZXe(t,r){if(1&t&&(n.j41(0,"li",62),n.DNE(1,KXe,1,1)(2,JXe,1,1,"ng-container"),n.k0s()),2&t){const e=n.XpG().options,i=n.XpG(2);n.Y8G("ngStyle",n.eq3(2,_F,e.itemSize+"px")),n.R7$(),n.vxM(i.emptyFilterTemplate||i._emptyFilterTemplate||i.emptyTemplate||i._emptyTemplate?2:1)}}function eKe(t,r){if(1&t&&n.EFF(0),2&t){const e=n.XpG(4);n.SpI(" ",e.emptyMessageLabel," ")}}function tKe(t,r){1&t&&n.eu8(0)}function nKe(t,r){if(1&t&&n.DNE(0,tKe,1,0,"ng-container",32),2&t){const e=n.XpG(4);n.Y8G("ngTemplateOutlet",e.emptyTemplate||e._emptyTemplate)}}function iKe(t,r){if(1&t&&(n.j41(0,"li",62),n.DNE(1,eKe,1,1)(2,nKe,1,1,"ng-container"),n.k0s()),2&t){const e=n.XpG().options,i=n.XpG(2);n.Y8G("ngStyle",n.eq3(2,_F,e.itemSize+"px")),n.R7$(),n.vxM(i.emptyTemplate||i._emptyTemplate?2:1)}}function rKe(t,r){if(1&t&&(n.j41(0,"ul",57,15),n.DNE(2,XXe,2,2,"ng-template",58)(3,ZXe,3,4,"li",59)(4,iKe,3,4,"li",59),n.k0s()),2&t){const e=r.$implicit,i=r.options,o=n.XpG(2);n.Aen(i.contentStyle),n.Y8G("ngClass",i.contentStyleClass),n.BMQ("aria-label",o.listLabel),n.R7$(2),n.Y8G("ngForOf",e),n.R7$(),n.Y8G("ngIf",o.hasFilter()&&o.isEmpty()),n.R7$(),n.Y8G("ngIf",!o.hasFilter()&&o.isEmpty())}}function oKe(t,r){1&t&&n.eu8(0)}function sKe(t,r){if(1&t&&(n.j41(0,"div"),n.SdG(1,1),n.DNE(2,oKe,1,0,"ng-container",32),n.k0s()),2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)}}function aKe(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",43)(1,"span",44,6),n.bIt("focus",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onFirstHiddenFocus(o))}),n.k0s(),n.DNE(3,wXe,1,0,"ng-container",32)(4,LXe,5,2,"div",45),n.j41(5,"div",46),n.DNE(6,HXe,5,11,"p-scroller",47)(7,$Xe,2,6,"ng-container",20)(8,rKe,5,7,"ng-template",null,7,n.C5r),n.k0s(),n.DNE(10,sKe,3,1,"div",20),n.j41(11,"span",44,8),n.bIt("focus",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onLastHiddenFocus(o))}),n.k0s()()}if(2&t){const e=n.XpG();n.HbH(e.panelStyleClass),n.Y8G("ngClass","p-multiselect-overlay p-component")("ngStyle",e.panelStyle),n.BMQ("id",e.id+"_list"),n.R7$(),n.BMQ("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0),n.R7$(2),n.Y8G("ngTemplateOutlet",e.headerTemplate||e._headerTemplate),n.R7$(),n.Y8G("ngIf",e.showHeader),n.R7$(),n.xc7("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),n.R7$(),n.Y8G("ngIf",e.virtualScroll),n.R7$(),n.Y8G("ngIf",!e.virtualScroll),n.R7$(3),n.Y8G("ngIf",e.footerFacet||e.footerTemplate||e._footerTemplate),n.R7$(),n.BMQ("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0)}}const lKe={provide:tl,useExisting:(0,n.Rfq)(()=>Hb),multi:!0};let cKe=(()=>{class t extends jo{id;option;selected;label;disabled;itemSize;focused;ariaPosInset;ariaSetSize;variant;template;checkIconTemplate;itemCheckboxIconTemplate;onClick=new n.bkB;onMouseEnter=new n.bkB;onOptionClick(e){this.onClick.emit({originalEvent:e,option:this.option,selected:this.selected}),e.stopPropagation(),e.preventDefault()}onOptionMouseEnter(e){this.onMouseEnter.emit({originalEvent:e,option:this.option,selected:this.selected})}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["p-multiSelectItem"],["p-multiselect-item"]],inputs:{id:"id",option:"option",selected:[2,"selected","selected",n.L39],label:"label",disabled:[2,"disabled","disabled",n.L39],itemSize:[2,"itemSize","itemSize",n.Udg],focused:[2,"focused","focused",n.L39],ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",variant:"variant",template:"template",checkIconTemplate:"checkIconTemplate",itemCheckboxIconTemplate:"itemCheckboxIconTemplate"},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},features:[n.GFd,n.Vt3],decls:5,vars:26,consts:[["icon",""],["pRipple","","role","option",3,"click","mouseenter","ngStyle","ngClass","id"],[3,"ngModel","binary","tabindex","variant"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,o){1&i&&(n.j41(0,"li",1),n.bIt("click",function(a){return o.onOptionClick(a)})("mouseenter",function(a){return o.onOptionMouseEnter(a)}),n.j41(1,"p-checkbox",2),n.DNE(2,uqe,3,0,"ng-container",3),n.k0s(),n.DNE(3,dqe,2,1,"span",3)(4,pqe,1,0,"ng-container",4),n.k0s()),2&i&&(n.Y8G("ngStyle",n.eq3(19,_F,o.itemSize+"px"))("ngClass",n.l_i(21,oqe,o.disabled,o.focused))("id",o.id),n.BMQ("aria-label",o.label)("aria-setsize",o.ariaSetSize)("aria-posinset",o.ariaPosInset)("aria-selected",o.selected)("data-p-focused",o.focused)("data-p-highlight",o.selected)("data-p-disabled",o.disabled)("aria-checked",o.selected),n.R7$(),n.Y8G("ngModel",o.selected)("binary",!0)("tabindex",-1)("variant",o.variant),n.R7$(),n.Y8G("ngIf",o.itemCheckboxIconTemplate),n.R7$(),n.Y8G("ngIf",!o.template),n.R7$(),n.Y8G("ngTemplateOutlet",o.template)("ngTemplateOutletContext",n.eq3(24,Kae,o.option)))},dependencies:[gn,bi,fi,uo,Jr,Av,Ra,_o,ko,Mh,Di],encapsulation:2})}return t})(),Hb=(()=>{class t extends jo{zone;filterService;overlayService;id;ariaLabel;style;styleClass;panelStyle;panelStyleClass;inputId;disabled;fluid;readonly;group;filter=!0;filterPlaceHolder;filterLocale;overlayVisible;tabindex=0;variant="outlined";appendTo;dataKey;name;ariaLabelledBy;set displaySelectedLabel(e){this._displaySelectedLabel=e}get displaySelectedLabel(){return this._displaySelectedLabel}set maxSelectedLabels(e){this._maxSelectedLabels=e}get maxSelectedLabels(){return this._maxSelectedLabels}selectionLimit;selectedItemsLabel;showToggleAll=!0;emptyFilterMessage="";emptyMessage="";resetFilterOnHide=!1;dropdownIcon;chipIcon;optionLabel;optionValue;optionDisabled;optionGroupLabel="label";optionGroupChildren="items";showHeader=!0;filterBy;scrollHeight="200px";lazy=!1;virtualScroll;loading=!1;virtualScrollItemSize;loadingIcon;virtualScrollOptions;overlayOptions;ariaFilterLabel;filterMatchMode="contains";tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;autofocusFilter=!1;display="comma";autocomplete="off";size;showClear=!1;autofocus;get autoZIndex(){return this._autoZIndex}set autoZIndex(e){this._autoZIndex=e,console.log("The autoZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}get baseZIndex(){return this._baseZIndex}set baseZIndex(e){this._baseZIndex=e,console.log("The baseZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}get showTransitionOptions(){return this._showTransitionOptions}set showTransitionOptions(e){this._showTransitionOptions=e,console.log("The showTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}get hideTransitionOptions(){return this._hideTransitionOptions}set hideTransitionOptions(e){this._hideTransitionOptions=e,console.log("The hideTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}set defaultLabel(e){this._defaultLabel=e,console.log("defaultLabel property is deprecated since 16.6.0, use placeholder instead")}get defaultLabel(){return this._defaultLabel}set placeholder(e){this._placeholder.set(e)}get placeholder(){return this._placeholder.asReadonly()}get options(){return this._options()}set options(e){BD(this._options(),e)||this._options.set(e)}get filterValue(){return this._filterValue()}set filterValue(e){this._filterValue.set(e)}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e,console.log("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}get selectAll(){return this._selectAll}set selectAll(e){this._selectAll=e}focusOnHover=!0;filterFields;selectOnFocus=!1;autoOptionFocus=!1;onChange=new n.bkB;onFilter=new n.bkB;onFocus=new n.bkB;onBlur=new n.bkB;onClick=new n.bkB;onClear=new n.bkB;onPanelShow=new n.bkB;onPanelHide=new n.bkB;onLazyLoad=new n.bkB;onRemove=new n.bkB;onSelectAllChange=new n.bkB;overlayViewChild;filterInputChild;focusInputViewChild;itemsViewChild;scroller;lastHiddenFocusableElementOnOverlay;firstHiddenFocusableElementOnOverlay;headerCheckboxViewChild;footerFacet;headerFacet;_componentStyle=(0,n.WQX)(Xae);searchValue;searchTimeout;_selectAll=null;_autoZIndex;_baseZIndex;_showTransitionOptions;_hideTransitionOptions;_defaultLabel;_placeholder=(0,n.vPA)(void 0);_itemSize;_selectionLimit;_disableTooltip=!1;value;_filteredOptions;onModelChange=()=>{};onModelTouched=()=>{};valuesAsString;focus;filtered;itemTemplate;groupTemplate;loaderTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;selectedItemsTemplate;checkIconTemplate;loadingIconTemplate;filterIconTemplate;removeTokenIconTemplate;chipIconTemplate;clearIconTemplate;dropdownIconTemplate;itemCheckboxIconTemplate;headerCheckboxIconTemplate;templates;_itemTemplate;_groupTemplate;_loaderTemplate;_headerTemplate;_filterTemplate;_footerTemplate;_emptyFilterTemplate;_emptyTemplate;_selectedItemsTemplate;_checkIconTemplate;_loadingIconTemplate;_filterIconTemplate;_removeTokenIconTemplate;_chipIconTemplate;_clearIconTemplate;_dropdownIconTemplate;_itemCheckboxIconTemplate;_headerCheckboxIconTemplate;ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this._itemTemplate=e.template;break;case"group":this._groupTemplate=e.template;break;case"selectedItems":case"selecteditems":this._selectedItemsTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"filter":this._filterTemplate=e.template;break;case"emptyfilter":this._emptyFilterTemplate=e.template;break;case"empty":this._emptyTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"loader":this._loaderTemplate=e.template;break;case"checkicon":this._checkIconTemplate=e.template,console.warn("checkicon is deprecated and will removed in future. Use itemcheckboxicon or headercheckboxicon templates instead.");break;case"headercheckboxicon":this._headerCheckboxIconTemplate=e.template;break;case"loadingicon":this._loadingIconTemplate=e.template;break;case"filtericon":this._filterIconTemplate=e.template;break;case"removetokenicon":this._removeTokenIconTemplate=e.template;break;case"clearicon":this._clearIconTemplate=e.template;break;case"dropdownicon":this._dropdownIconTemplate=e.template;break;case"itemcheckboxicon":this._itemCheckboxIconTemplate=e.template;break;case"chipicon":this._chipIconTemplate=e.template}})}headerCheckboxFocus;filterOptions;preventModelTouched;preventDocumentDefault;focused=!1;itemsWrapper;_displaySelectedLabel=!0;_maxSelectedLabels=3;modelValue=(0,n.vPA)(null);_filterValue=(0,n.vPA)(null);_options=(0,n.vPA)(null);startRangeIndex=(0,n.vPA)(-1);focusedOptionIndex=(0,n.vPA)(-1);selectedOptions;clickInProgress=!1;get hostClasses(){const e=[];return"string"==typeof this.rootClass?e.push(this.rootClass):Array.isArray(this.rootClass)?e.push(...this.rootClass):"object"==typeof this.rootClass&&Object.keys(this.rootClass).filter(i=>this.rootClass[i]).forEach(i=>e.push(i)),this.styleClass&&e.push(this.styleClass),e.join(" ")}get rootClass(){return this._componentStyle.classes.root({instance:this})}get labelClass(){return this._componentStyle.classes.label({instance:this})}get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(Xs.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(Xs.EMPTY_FILTER_MESSAGE)}get filled(){return"string"==typeof this.modelValue()?!!this.modelValue():qs(this.modelValue())}get isVisibleClearIcon(){return null!=this.modelValue()&&""!==this.modelValue()&&qs(this.modelValue())&&this.showClear&&!this.disabled&&this.filled}get toggleAllAriaLabel(){return this.config.translation.aria?this.config.translation.aria[this.allSelected()?"selectAll":"unselectAll"]:void 0}get closeAriaLabel(){return this.config.translation.aria?this.config.translation.aria.close:void 0}get listLabel(){return this.config.getTranslation(Xs.ARIA).listLabel}get hasFluid(){const i=this.el.nativeElement.closest("p-fluid");return this.fluid||!!i}getAllVisibleAndNonVisibleOptions(){return this.group?this.flatOptions(this.options):this.options||[]}visibleOptions=(0,n.EWP)(()=>{const e=this.getAllVisibleAndNonVisibleOptions(),i=PR(e)&&dg(e[0]);if(this._filterValue()){let o;if(o=i?this.filterService.filter(e,this.searchFields(),this._filterValue(),this.filterMatchMode,this.filterLocale):e.filter(s=>s.toString().toLocaleLowerCase().includes(this._filterValue().toLocaleLowerCase())),this.group){const a=[];return(this.options||[]).forEach(l=>{const d=this.getOptionGroupChildren(l).filter(f=>o.includes(f));d.length>0&&a.push({...l,["string"==typeof this.optionGroupChildren?this.optionGroupChildren:"items"]:[...d]})}),this.flatOptions(a)}return o}return e});label=(0,n.EWP)(()=>{let e;const i=this.modelValue();if(i&&i.length&&this.displaySelectedLabel){if(qs(this.maxSelectedLabels)&&i.length>this.maxSelectedLabels)return this.getSelectedItemsLabel();e="";for(let o=0;o<i.length;o++)0!==o&&(e+=", "),e+=this.getLabelByValue(i[o])}else e=this.placeholder()||this.defaultLabel||"";return e});chipSelectedItems=(0,n.EWP)(()=>qs(this.maxSelectedLabels)&&this.modelValue()&&this.modelValue().length>this.maxSelectedLabels?this.modelValue().slice(0,this.maxSelectedLabels):this.modelValue());constructor(e,i,o){super(),this.zone=e,this.filterService=i,this.overlayService=o,(0,n.QZP)(()=>{const s=this.modelValue(),a=this.visibleOptions();a&&qs(a)&&(this.selectedOptions=this.optionValue&&this.optionLabel&&s?a.filter(l=>s.includes(l[this.optionLabel])||s.includes(l[this.optionValue])):s,this.cd.markForCheck())})}ngOnInit(){super.ngOnInit(),this.id=this.id||Bl("pn_id_"),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterInputChange(e),reset:()=>this.resetFilter()})}maxSelectionLimitReached(){return this.selectionLimit&&this.modelValue()&&this.modelValue().length===this.selectionLimit}ngAfterViewInit(){super.ngOnInit(),this.overlayVisible&&this.show()}ngAfterViewChecked(){this.filtered&&(this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild?.alignOverlay()},1)}),this.filtered=!1)}flatOptions(e){return(e||[]).reduce((i,o,s)=>{i.push({optionGroup:o,group:!0,index:s});const a=this.getOptionGroupChildren(o);return a&&a.forEach(l=>i.push(l)),i},[])}autoUpdateModel(){if(this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()){this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex());const e=this.getOptionValue(this.visibleOptions()[this.focusedOptionIndex()]);this.onOptionSelect({originalEvent:null,option:[e]})}}updateModel(e,i){this.value=e,this.onModelChange(e),this.modelValue.set(e)}onInputClick(e){e.stopPropagation(),e.preventDefault(),this.focusedOptionIndex.set(-1)}onOptionSelect(e,i=!1,o=-1){const{originalEvent:s,option:a}=e;if(this.disabled||this.isOptionDisabled(a))return;let c=null;c=this.isSelected(a)?this.modelValue().filter(d=>!id(d,this.getOptionValue(a),this.equalityKey())):[...this.modelValue()||[],this.getOptionValue(a)],this.updateModel(c,s),-1!==o&&this.focusedOptionIndex.set(o),i&&la(this.focusInputViewChild?.nativeElement),this.onChange.emit({originalEvent:e,value:c,itemValue:a})}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}onOptionSelectRange(e,i=-1,o=-1){if(-1===i&&(i=this.findNearestSelectedOptionIndex(o,!0)),-1===o&&(o=this.findNearestSelectedOptionIndex(i)),-1!==i&&-1!==o){const s=Math.min(i,o),a=Math.max(i,o),l=this.visibleOptions().slice(s,a+1).filter(c=>this.isValidOption(c)).map(c=>this.getOptionValue(c));this.updateModel(l,e)}}searchFields(){return(this.filterBy||this.optionLabel||"label").split(",")}findNearestSelectedOptionIndex(e,i=!1){let o=-1;return this.hasSelectedOption()&&(i?(o=this.findPrevSelectedOptionIndex(e),o=-1===o?this.findNextSelectedOptionIndex(e):o):(o=this.findNextSelectedOptionIndex(e),o=-1===o?this.findPrevSelectedOptionIndex(e):o)),o>-1?o:e}findPrevSelectedOptionIndex(e){const i=this.hasSelectedOption()&&e>0?Jp(this.visibleOptions().slice(0,e),o=>this.isValidSelectedOption(o)):-1;return i>-1?i:-1}findFirstFocusedOptionIndex(){const e=this.findFirstSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findFirstSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextSelectedOptionIndex(e){const i=this.hasSelectedOption()&&e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(o=>this.isValidSelectedOption(o)):-1;return i>-1?i+e+1:-1}equalityKey(){return this.optionValue?null:this.dataKey}hasSelectedOption(){return qs(this.modelValue())}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}isOptionGroup(e){return(this.group||this.optionGroupLabel)&&e.optionGroup&&e.group}isValidOption(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionDisabled(e){return!(!this.maxSelectionLimitReached()||this.isSelected(e))||(this.optionDisabled?ml(e,this.optionDisabled):!(!e||void 0===e.disabled)&&e.disabled)}isSelected(e){const i=this.getOptionValue(e);return(this.modelValue()||[]).some(o=>id(o,i,this.equalityKey()))}isOptionMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toString().toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))}isEmpty(){return!this._options()||this.visibleOptions()&&0===this.visibleOptions().length}getOptionIndex(e,i){return this.virtualScrollerDisabled?e:i&&i.getItemOptions(e).index}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(i=>this.isOptionGroup(i)).length:e)+1}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}getLabelByValue(e){const o=(this.group?this.flatOptions(this._options()):this._options()||[]).find(s=>!this.isOptionGroup(s)&&id(this.getOptionValue(s),e,this.equalityKey()));return o?this.getOptionLabel(o):null}getSelectedItemsLabel(){let e=/{(.*?)}/,i=this.selectedItemsLabel?this.selectedItemsLabel:this.config.getTranslation(Xs.SELECTION_MESSAGE);return e.test(i)?i.replace(i.match(e)[0],this.modelValue().length+""):i}getOptionLabel(e){return this.optionLabel?ml(e,this.optionLabel):e&&null!=e.label?e.label:e}getOptionValue(e){return this.optionValue?ml(e,this.optionValue):!this.optionLabel&&e&&void 0!==e.value?e.value:e}getOptionGroupLabel(e){return this.optionGroupLabel?ml(e,this.optionGroupLabel):e&&null!=e.label?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren?ml(e,this.optionGroupChildren):e.items}onKeyDown(e){if(this.disabled)return void e.preventDefault();const i=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"Space":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"ShiftLeft":case"ShiftRight":this.onShiftKey();break;default:if("KeyA"===e.code&&i){const o=this.visibleOptions().filter(s=>this.isValidOption(s)).map(s=>this.getOptionValue(s));this.updateModel(o,e),e.preventDefault();break}!i&&rd(e.key)&&(!this.overlayVisible&&this.show(),this.searchOptions(e,e.key),e.preventDefault())}}onFilterKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0)}}onArrowLeftKey(e,i=!1){i&&this.focusedOptionIndex.set(-1)}onArrowDownKey(e){const i=-1!==this.focusedOptionIndex()?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();e.shiftKey&&this.onOptionSelectRange(e,this.startRangeIndex(),i),this.changeFocusedOptionIndex(e,i),!this.overlayVisible&&this.show(),e.preventDefault(),e.stopPropagation()}onArrowUpKey(e,i=!1){if(e.altKey&&!i)-1!==this.focusedOptionIndex()&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.overlayVisible&&this.hide(),e.preventDefault();else{const o=-1!==this.focusedOptionIndex()?this.findPrevOptionIndex(this.focusedOptionIndex()):this.findLastFocusedOptionIndex();e.shiftKey&&this.onOptionSelectRange(e,o,this.startRangeIndex()),this.changeFocusedOptionIndex(e,o),!this.overlayVisible&&this.show(),e.preventDefault()}e.stopPropagation()}onHomeKey(e,i=!1){const{currentTarget:o}=e;if(i)o.setSelectionRange(0,e.shiftKey?o.value.length:0),this.focusedOptionIndex.set(-1);else{let s=e.metaKey||e.ctrlKey,a=this.findFirstOptionIndex();e.shiftKey&&s&&this.onOptionSelectRange(e,a,this.startRangeIndex()),this.changeFocusedOptionIndex(e,a),!this.overlayVisible&&this.show()}e.preventDefault()}onEndKey(e,i=!1){const{currentTarget:o}=e;if(i){const s=o.value.length;o.setSelectionRange(e.shiftKey?0:s,s),this.focusedOptionIndex.set(-1)}else{let s=e.metaKey||e.ctrlKey,a=this.findLastFocusedOptionIndex();e.shiftKey&&s&&this.onOptionSelectRange(e,this.startRangeIndex(),a),this.changeFocusedOptionIndex(e,a),!this.overlayVisible&&this.show()}e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onEnterKey(e){this.overlayVisible?-1!==this.focusedOptionIndex()&&(e.shiftKey?this.onOptionSelectRange(e,this.focusedOptionIndex()):this.onOptionSelect({originalEvent:e,option:this.visibleOptions()[this.focusedOptionIndex()]})):this.onArrowDownKey(e),e.preventDefault()}onEscapeKey(e){this.overlayVisible&&this.hide(!0),e.preventDefault()}onDeleteKey(e){this.showClear&&(this.clear(e),e.preventDefault())}onTabKey(e,i=!1){i||(this.overlayVisible&&this.hasFocusableElements()?(la(e.shiftKey?this.lastHiddenFocusableElementOnOverlay.nativeElement:this.firstHiddenFocusableElementOnOverlay.nativeElement),e.preventDefault()):(-1!==this.focusedOptionIndex()&&this.onOptionSelect({originalEvent:e,option:this.visibleOptions()[this.focusedOptionIndex()]}),this.overlayVisible&&this.hide(this.filter)))}onShiftKey(){this.startRangeIndex.set(this.focusedOptionIndex())}onContainerClick(e){if(!(this.disabled||this.loading||this.readonly||e.target.isSameNode(this.focusInputViewChild?.nativeElement))){if(!this.overlayViewChild||!this.overlayViewChild.el.nativeElement.contains(e.target)){if(this.clickInProgress)return;this.clickInProgress=!0,setTimeout(()=>{this.clickInProgress=!1},150),this.overlayVisible?this.hide(!0):this.show(!0)}this.focusInputViewChild?.nativeElement.focus({preventScroll:!0}),this.onClick.emit(e),this.cd.detectChanges()}}onFirstHiddenFocus(e){la(e.relatedTarget===this.focusInputViewChild?.nativeElement?bx(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement)}onInputFocus(e){this.focused=!0;const i=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(i),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit({originalEvent:e})}onInputBlur(e){this.focused=!1,this.onBlur.emit({originalEvent:e}),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}onFilterInputChange(e){this._filterValue.set(e.target.value),this.focusedOptionIndex.set(-1),this.onFilter.emit({originalEvent:e,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller.scrollToIndex(0),setTimeout(()=>{this.overlayViewChild.alignOverlay()})}onLastHiddenFocus(e){la(e.relatedTarget===this.focusInputViewChild?.nativeElement?nO(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement)}onOptionMouseEnter(e,i){this.focusOnHover&&this.changeFocusedOptionIndex(e,i)}onHeaderCheckboxKeyDown(e){if(this.disabled)e.preventDefault();else switch(e.code){case"Space":case"Enter":this.onToggleAll(e)}}onFilterBlur(e){this.focusedOptionIndex.set(-1)}onHeaderCheckboxFocus(){this.headerCheckboxFocus=!0}onHeaderCheckboxBlur(){this.headerCheckboxFocus=!1}onToggleAll(e){if(!this.disabled&&!this.readonly){if(null!=this.selectAll)this.onSelectAllChange.emit({originalEvent:e,checked:!this.allSelected()});else{const s=[...this.getAllVisibleAndNonVisibleOptions().filter(l=>this.isSelected(l)&&(this.optionDisabled?ml(l,this.optionDisabled):!(!l||void 0===l.disabled)&&l.disabled)),...this.allSelected()?this.visibleOptions().filter(l=>!this.isValidOption(l)&&this.isSelected(l)):this.visibleOptions().filter(l=>this.isSelected(l)||this.isValidOption(l))].map(l=>this.getOptionValue(l)),a=[...new Set(s)];this.updateModel(a,e),(!a.length||a.length===this.getAllVisibleAndNonVisibleOptions().length)&&this.onSelectAllChange.emit({originalEvent:e,checked:!!a.length})}this.partialSelected()&&(this.selectedOptions=null,this.cd.markForCheck()),this.onChange.emit({originalEvent:e,value:this.value}),Vr.focus(this.headerCheckboxViewChild?.inputViewChild?.nativeElement),this.headerCheckboxFocus=!0,e.originalEvent.preventDefault(),e.originalEvent.stopPropagation()}}changeFocusedOptionIndex(e,i){this.focusedOptionIndex()!==i&&(this.focusedOptionIndex.set(i),this.scrollInView())}get virtualScrollerDisabled(){return!this.virtualScroll}scrollInView(e=-1){if(this.itemsViewChild&&this.itemsViewChild.nativeElement){const o=xo(this.itemsViewChild.nativeElement,`li[id="${-1!==e?`${this.id}_${e}`:this.focusedOptionId}"]`);o?o.scrollIntoView&&o.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(-1!==e?e:this.focusedOptionIndex())},0)}}get focusedOptionId(){return-1!==this.focusedOptionIndex()?`${this.id}_${this.focusedOptionIndex()}`:null}writeValue(e){this.value=e,this.modelValue.set(this.value),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}allSelected(){return null!==this.selectAll?this.selectAll:qs(this.visibleOptions())&&this.visibleOptions().every(e=>this.isOptionGroup(e)||this.isOptionDisabled(e)||this.isSelected(e))}partialSelected(){return this.selectedOptions&&this.selectedOptions.length>0&&this.selectedOptions.length<this.options.length}show(e){this.overlayVisible=!0;const i=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.findSelectedOptionIndex();this.focusedOptionIndex.set(i),e&&la(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}hide(e){this.overlayVisible=!1,this.focusedOptionIndex.set(-1),this.filter&&this.resetFilterOnHide&&this.resetFilter(),"modal"===this.overlayOptions?.mode&&Lw(),e&&la(this.focusInputViewChild?.nativeElement),this.onPanelHide.emit(),this.cd.markForCheck()}onOverlayAnimationStart(e){switch(e.toState){case"visible":if(this.itemsWrapper=xo(this.overlayViewChild?.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-multiselect-items-wrapper"),this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this._options()&&this._options().length)if(this.virtualScroll){const i=qs(this.modelValue())?this.focusedOptionIndex():-1;-1!==i&&this.scroller?.scrollToIndex(i)}else{let i=xo(this.itemsWrapper,'[data-p-highlight="true"]');i&&i.scrollIntoView({block:"nearest",inline:"nearest"})}this.filterInputChild&&this.filterInputChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&this.filterInputChild.nativeElement.focus()),this.onPanelShow.emit();case"void":this.itemsWrapper=null,this.onModelTouched()}}resetFilter(){this.filterInputChild&&this.filterInputChild.nativeElement&&(this.filterInputChild.nativeElement.value=""),this._filterValue.set(null),this._filteredOptions=null}close(e){this.hide(),e.preventDefault(),e.stopPropagation()}clear(e){this.value=null,this.updateModel(null,e),this.selectedOptions=null,this.onClear.emit(),this._disableTooltip=!0,e.stopPropagation()}labelContainerMouseLeave(){this._disableTooltip&&(this._disableTooltip=!1)}removeOption(e,i){let o=this.modelValue().filter(s=>!id(s,e,this.equalityKey()));this.updateModel(o,i),this.onChange.emit({originalEvent:i,value:o,itemValue:e}),this.onRemove.emit({newValue:o,removed:e}),i&&i.stopPropagation()}findNextItem(e){let i=e.nextElementSibling;return i?Wa(i.children[0],"p-disabled")||bZ(i.children[0])||Wa(i,"p-multiselect-item-group")?this.findNextItem(i):i.children[0]:null}findPrevItem(e){let i=e.previousElementSibling;return i?Wa(i.children[0],"p-disabled")||bZ(i.children[0])||Wa(i,"p-multiselect-item-group")?this.findPrevItem(i):i.children[0]:null}findNextOptionIndex(e){const i=e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(o=>this.isValidOption(o)):-1;return i>-1?i+e+1:e}findPrevOptionIndex(e){const i=e>0?Jp(this.visibleOptions().slice(0,e),o=>this.isValidOption(o)):-1;return i>-1?i:e}findLastSelectedOptionIndex(){return this.hasSelectedOption()?Jp(this.visibleOptions(),e=>this.isValidSelectedOption(e)):-1}findLastFocusedOptionIndex(){const e=this.findLastSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}findLastOptionIndex(){return Jp(this.visibleOptions(),e=>this.isValidOption(e))}searchOptions(e,i){this.searchValue=(this.searchValue||"")+i;let o=-1,s=!1;return-1!==this.focusedOptionIndex()?(o=this.visibleOptions().slice(this.focusedOptionIndex()).findIndex(a=>this.isOptionMatched(a)),o=-1===o?this.visibleOptions().slice(0,this.focusedOptionIndex()).findIndex(a=>this.isOptionMatched(a)):o+this.focusedOptionIndex()):o=this.visibleOptions().findIndex(a=>this.isOptionMatched(a)),-1!==o&&(s=!0),-1===o&&-1===this.focusedOptionIndex()&&(o=this.findFirstFocusedOptionIndex()),-1!==o&&this.changeFocusedOptionIndex(e,o),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),s}activateFilter(){if(this.hasFilter()&&this._options)if(this.group){let e=[];for(let i of this.options){let o=this.filterService.filter(this.getOptionGroupChildren(i),this.searchFields(),this.filterValue,this.filterMatchMode,this.filterLocale);o&&o.length&&e.push({...i,[this.optionGroupChildren]:o})}this._filteredOptions=e}else this._filteredOptions=this.filterService.filter(this.options,this.searchFields(),this.filterValue,this.filterMatchMode,this.filterLocale);else this._filteredOptions=null}hasFocusableElements(){return Mm(this.overlayViewChild.overlayViewChild.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}hasFilter(){return this._filterValue()&&this._filterValue().trim().length>0}static \u0275fac=function(i){return new(i||t)(n.rXU(n.SKi),n.rXU(Cx),n.rXU(Cy))};static \u0275cmp=n.VBU({type:t,selectors:[["p-multiSelect"],["p-multiselect"],["p-multi-select"]],contentQueries:function(i,o,s){if(1&i&&(n.wni(s,rO,5),n.wni(s,Q5,5),n.wni(s,hqe,4),n.wni(s,fqe,4),n.wni(s,mqe,4),n.wni(s,gqe,4),n.wni(s,vqe,4),n.wni(s,_qe,4),n.wni(s,yqe,4),n.wni(s,bqe,4),n.wni(s,Cqe,4),n.wni(s,wqe,4),n.wni(s,Tqe,4),n.wni(s,Sqe,4),n.wni(s,xqe,4),n.wni(s,Eqe,4),n.wni(s,Dqe,4),n.wni(s,kqe,4),n.wni(s,Iqe,4),n.wni(s,Aqe,4),n.wni(s,hs,4)),2&i){let a;n.mGM(a=n.lsd())&&(o.footerFacet=a.first),n.mGM(a=n.lsd())&&(o.headerFacet=a.first),n.mGM(a=n.lsd())&&(o.itemTemplate=a.first),n.mGM(a=n.lsd())&&(o.groupTemplate=a.first),n.mGM(a=n.lsd())&&(o.loaderTemplate=a.first),n.mGM(a=n.lsd())&&(o.headerTemplate=a.first),n.mGM(a=n.lsd())&&(o.filterTemplate=a.first),n.mGM(a=n.lsd())&&(o.footerTemplate=a.first),n.mGM(a=n.lsd())&&(o.emptyFilterTemplate=a.first),n.mGM(a=n.lsd())&&(o.emptyTemplate=a.first),n.mGM(a=n.lsd())&&(o.selectedItemsTemplate=a.first),n.mGM(a=n.lsd())&&(o.checkIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.loadingIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.filterIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.removeTokenIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.chipIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.clearIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.dropdownIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.itemCheckboxIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.headerCheckboxIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.templates=a)}},viewQuery:function(i,o){if(1&i&&(n.GBs(Mqe,5),n.GBs(Rqe,5),n.GBs(Oqe,5),n.GBs(Fqe,5),n.GBs(Pqe,5),n.GBs(Lqe,5),n.GBs(Nqe,5),n.GBs(Gqe,5)),2&i){let s;n.mGM(s=n.lsd())&&(o.overlayViewChild=s.first),n.mGM(s=n.lsd())&&(o.filterInputChild=s.first),n.mGM(s=n.lsd())&&(o.focusInputViewChild=s.first),n.mGM(s=n.lsd())&&(o.itemsViewChild=s.first),n.mGM(s=n.lsd())&&(o.scroller=s.first),n.mGM(s=n.lsd())&&(o.lastHiddenFocusableElementOnOverlay=s.first),n.mGM(s=n.lsd())&&(o.firstHiddenFocusableElementOnOverlay=s.first),n.mGM(s=n.lsd())&&(o.headerCheckboxViewChild=s.first)}},hostVars:5,hostBindings:function(i,o){1&i&&n.bIt("click",function(a){return o.onContainerClick(a)}),2&i&&(n.BMQ("id",o.id),n.Aen(o.style),n.HbH(o.hostClasses))},inputs:{id:"id",ariaLabel:"ariaLabel",style:"style",styleClass:"styleClass",panelStyle:"panelStyle",panelStyleClass:"panelStyleClass",inputId:"inputId",disabled:[2,"disabled","disabled",n.L39],fluid:[2,"fluid","fluid",n.L39],readonly:[2,"readonly","readonly",n.L39],group:[2,"group","group",n.L39],filter:[2,"filter","filter",n.L39],filterPlaceHolder:"filterPlaceHolder",filterLocale:"filterLocale",overlayVisible:[2,"overlayVisible","overlayVisible",n.L39],tabindex:[2,"tabindex","tabindex",n.Udg],variant:"variant",appendTo:"appendTo",dataKey:"dataKey",name:"name",ariaLabelledBy:"ariaLabelledBy",displaySelectedLabel:"displaySelectedLabel",maxSelectedLabels:"maxSelectedLabels",selectionLimit:[2,"selectionLimit","selectionLimit",n.Udg],selectedItemsLabel:"selectedItemsLabel",showToggleAll:[2,"showToggleAll","showToggleAll",n.L39],emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",resetFilterOnHide:[2,"resetFilterOnHide","resetFilterOnHide",n.L39],dropdownIcon:"dropdownIcon",chipIcon:"chipIcon",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",showHeader:[2,"showHeader","showHeader",n.L39],filterBy:"filterBy",scrollHeight:"scrollHeight",lazy:[2,"lazy","lazy",n.L39],virtualScroll:[2,"virtualScroll","virtualScroll",n.L39],loading:[2,"loading","loading",n.L39],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",n.Udg],loadingIcon:"loadingIcon",virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",filterMatchMode:"filterMatchMode",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",autofocusFilter:[2,"autofocusFilter","autofocusFilter",n.L39],display:"display",autocomplete:"autocomplete",size:"size",showClear:[2,"showClear","showClear",n.L39],autofocus:[2,"autofocus","autofocus",n.L39],autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",defaultLabel:"defaultLabel",placeholder:"placeholder",options:"options",filterValue:"filterValue",itemSize:"itemSize",selectAll:"selectAll",focusOnHover:[2,"focusOnHover","focusOnHover",n.L39],filterFields:"filterFields",selectOnFocus:[2,"selectOnFocus","selectOnFocus",n.L39],autoOptionFocus:[2,"autoOptionFocus","autoOptionFocus",n.L39]},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onClear:"onClear",onPanelShow:"onPanelShow",onPanelHide:"onPanelHide",onLazyLoad:"onLazyLoad",onRemove:"onRemove",onSelectAllChange:"onSelectAllChange"},features:[n.Jv_([lKe,Xae]),n.GFd,n.Vt3],ngContentSelectors:Vqe,decls:16,vars:35,consts:[["focusInput",""],["elseBlock",""],["overlay",""],["content",""],["token",""],["removeicon",""],["firstHiddenFocusableEl",""],["buildInItems",""],["lastHiddenFocusableEl",""],["builtInFilterElement",""],["headerCheckbox",""],["checkboxicon",""],["filterInput",""],["scroller",""],["loader",""],["items",""],[1,"p-hidden-accessible"],["role","combobox",3,"focus","blur","keydown","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","pAutoFocus"],[1,"p-multiselect-label-container",3,"mouseleave","pTooltip","tooltipDisabled","tooltipPosition","positionStyle","tooltipStyleClass"],[3,"ngClass"],[4,"ngIf"],[1,"p-multiselect-dropdown"],[4,"ngIf","ngIfElse"],[3,"visibleChange","onAnimationStart","onHide","visible","options","target","appendTo","autoZIndex","baseZIndex","showTransitionOptions","hideTransitionOptions"],["class","p-multiselect-chip-item",4,"ngFor","ngForOf"],[1,"p-multiselect-chip-item"],["styleClass","p-multiselect-chip",3,"onRemove","label","removable","removeIcon"],["class","p-multiselect-chip-icon",3,"click",4,"ngIf"],[1,"p-multiselect-chip-icon",3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-multiselect-clear-icon",3,"click",4,"ngIf"],[1,"p-multiselect-clear-icon",3,"click"],[4,"ngTemplateOutlet"],["aria-hidden","true",3,"ngClass",4,"ngIf"],["aria-hidden","true",3,"class",4,"ngIf"],["aria-hidden","true",3,"ngClass"],["aria-hidden","true"],["class","p-multiselect-dropdown-icon",4,"ngIf"],["class","p-multiselect-dropdown-icon",3,"ngClass",4,"ngIf"],[3,"styleClass",4,"ngIf"],[1,"p-multiselect-dropdown-icon",3,"ngClass"],[3,"styleClass"],[1,"p-multiselect-dropdown-icon"],[3,"ngClass","ngStyle"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus"],["class","p-multiselect-header",4,"ngIf"],[1,"p-multiselect-list-container"],[3,"items","style","itemSize","autoSize","tabindex","lazy","options","onLazyLoad",4,"ngIf"],[1,"p-multiselect-header"],[3,"ngModel","binary","variant","disabled","onChange",4,"ngIf"],["class","p-multiselect-filter-container",4,"ngIf"],[3,"onChange","ngModel","binary","variant","disabled"],[1,"p-multiselect-filter-container"],["pInputText","","type","text","role","searchbox",1,"p-multiselect-filter",3,"input","keydown","click","blur","variant","value","disabled"],["class","p-multiselect-filter-icon",4,"ngIf"],[1,"p-multiselect-filter-icon"],[3,"onLazyLoad","items","itemSize","autoSize","tabindex","lazy","options"],["role","listbox","aria-multiselectable","true",1,"p-multiselect-list",3,"ngClass"],["ngFor","",3,"ngForOf"],["class","p-multiselect-empty-message","role","option",3,"ngStyle",4,"ngIf"],["role","option",1,"p-multiselect-option-group",3,"ngStyle"],[3,"onClick","onMouseEnter","id","option","selected","label","disabled","template","checkIconTemplate","itemCheckboxIconTemplate","itemSize","focused","ariaPosInset","ariaSetSize","variant"],["role","option",1,"p-multiselect-empty-message",3,"ngStyle"]],template:function(i,o){if(1&i){const s=n.RV6();n.NAR(Bqe),n.j41(0,"div",16)(1,"input",17,0),n.bIt("focus",function(l){return n.eBV(s),n.Njj(o.onInputFocus(l))})("blur",function(l){return n.eBV(s),n.Njj(o.onInputBlur(l))})("keydown",function(l){return n.eBV(s),n.Njj(o.onKeyDown(l))}),n.k0s()(),n.j41(3,"div",18),n.bIt("mouseleave",function(){return n.eBV(s),n.Njj(o.labelContainerMouseLeave())}),n.j41(4,"div",19),n.DNE(5,eXe,3,2,"ng-container",20)(6,iXe,3,6,"ng-container",20),n.k0s()(),n.DNE(7,lXe,3,2,"ng-container",20),n.j41(8,"div",21),n.DNE(9,fXe,3,2,"ng-container",22)(10,CXe,2,2,"ng-template",null,1,n.C5r),n.k0s(),n.j41(12,"p-overlay",23,2),n.mxI("visibleChange",function(l){return n.eBV(s),n.DH7(o.overlayVisible,l)||(o.overlayVisible=l),n.Njj(l)}),n.bIt("onAnimationStart",function(l){return n.eBV(s),n.Njj(o.onOverlayAnimationStart(l))})("onHide",function(){return n.eBV(s),n.Njj(o.hide())}),n.DNE(14,aKe,13,18,"ng-template",null,3,n.C5r),n.k0s()}if(2&i){let s;const a=n.sdS(11);n.BMQ("data-p-hidden-accessible",!0),n.R7$(),n.Y8G("pTooltip",o.tooltip)("tooltipPosition",o.tooltipPosition)("positionStyle",o.tooltipPositionStyle)("tooltipStyleClass",o.tooltipStyleClass)("pAutoFocus",o.autofocus),n.BMQ("aria-disabled",o.disabled)("id",o.inputId)("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledBy)("aria-haspopup","listbox")("aria-expanded",null!==(s=o.overlayVisible)&&void 0!==s&&s)("aria-controls",o.overlayVisible?o.id+"_list":null)("tabindex",o.disabled?-1:o.tabindex)("aria-activedescendant",o.focused?o.focusedOptionId:void 0)("value",o.label()||"empty"),n.R7$(2),n.Y8G("pTooltip",o.tooltip)("tooltipDisabled",o._disableTooltip)("tooltipPosition",o.tooltipPosition)("positionStyle",o.tooltipPositionStyle)("tooltipStyleClass",o.tooltipStyleClass),n.R7$(),n.Y8G("ngClass",o.labelClass),n.R7$(),n.Y8G("ngIf",!o.selectedItemsTemplate&&!o._selectedItemsTemplate),n.R7$(),n.Y8G("ngIf",o.selectedItemsTemplate||o._selectedItemsTemplate),n.R7$(),n.Y8G("ngIf",o.isVisibleClearIcon),n.R7$(2),n.Y8G("ngIf",o.loading)("ngIfElse",a),n.R7$(3),n.R50("visible",o.overlayVisible),n.Y8G("options",o.overlayOptions)("target","@parent")("appendTo",o.appendTo)("autoZIndex",o.autoZIndex)("baseZIndex",o.baseZIndex)("showTransitionOptions",o.showTransitionOptions)("hideTransitionOptions",o.hideTransitionOptions)}},dependencies:[gn,bi,oo,fi,uo,Jr,cKe,lk,Di,ou,Db,Jf,Dx,ak,pf,Y_,Ex,kx,hf,S8,Av,Ra,_o,ko],encapsulation:2,changeDetection:0})}return t})(),d2=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({imports:[Hb,Di,Di]})}return t})();const uKe={provide:Ah,useExisting:(0,n.Rfq)(()=>Lz),multi:!0},Zae={pint:/^[\d]*$/,int:/^[-]?[\d]*$/,pnum:/^[\d\.]*$/,money:/^[\d\.\s,]*$/,num:/^[-]?[\d\.]*$/,hex:/^[0-9a-f]*$/i,email:/^[a-z0-9_\.\-@]*$/i,alpha:/^[a-z_]*$/i,alphanum:/^[a-z0-9_]*$/i},ele={63234:37,63235:39,63232:38,63233:40,63276:33,63277:34,63272:46,63273:36,63275:35};let Lz=(()=>{class t{document;platformId;el;pValidateOnly;set pattern(e){this._pattern=e,this.regex=e instanceof RegExp?e:e in Zae?Zae[e]:/./}get pattern(){return this._pattern}ngModelChange=new n.bkB;regex=/./;_pattern;isAndroid;lastValue;constructor(e,i,o){this.document=e,this.platformId=i,this.el=o,this.isAndroid=!!Gr(this.platformId)&&function $me(){return/(android)/i.test(navigator.userAgent)}()}isNavKeyPress(e){let i=e.keyCode;return i=X5().safari&&ele[i]||i,i>=33&&i<=40||13==i||9==i||27==i}isSpecialKey(e){let i=e.keyCode||e.charCode;return 9==i||13==i||27==i||16==i||17==i||i>=18&&i<=20||X5().opera&&!e.shiftKey&&(8==i||i>=33&&i<=35||i>=36&&i<=39||i>=44&&i<=45)}getKey(e){let i=e.keyCode||e.charCode;return X5().safari&&ele[i]||i}getCharCode(e){return e.charCode||e.keyCode||e.which}findDelta(e,i){let o="";for(let s=0;s<e.length;s++)e.substr(0,s)+e.substr(s+e.length-i.length)===i&&(o=e.substr(s,e.length-i.length));return o}isValidChar(e){return this.regex.test(e)}isValidString(e){for(let i=0;i<e.length;i++)if(!this.isValidChar(e.substr(i,1)))return!1;return!0}onInput(e){if(this.isAndroid&&!this.pValidateOnly){let i=this.el.nativeElement.value,o=this.lastValue||"",s=this.findDelta(i,o),a=this.findDelta(o,i);s.length>1||!s&&!a?this.isValidString(i)||(this.el.nativeElement.value=o,this.ngModelChange.emit(o)):a||this.isValidChar(s)||(this.el.nativeElement.value=o,this.ngModelChange.emit(o)),i=this.el.nativeElement.value,this.isValidString(i)&&(this.lastValue=i)}}onKeyPress(e){if(this.isAndroid||this.pValidateOnly)return;let i=X5(),o=this.getKey(e);if(i.mozilla&&(e.ctrlKey||e.altKey))return;if(17==o||18==o||13==o)return;let s=this.getCharCode(e),a=String.fromCharCode(s),l=!0;(i.mozilla||!this.isSpecialKey(e)&&a)&&(l=this.regex.test((this.el.nativeElement.value||"")+a),l||e.preventDefault())}onPaste(e){const i=e.clipboardData||this.document.defaultView.clipboardData.getData("text");if(i){let o=/\{[0-9]+\}/;const s=i.getData("text");if(o.test(this.regex.toString())){if(!this.regex.test(s))return void e.preventDefault()}else for(let a of s.toString())if(!this.regex.test(a))return void e.preventDefault()}}validate(e){if(this.pValidateOnly){let i=this.el.nativeElement.value;if(i&&!this.regex.test(i))return{validatePattern:!1}}}static \u0275fac=function(i){return new(i||t)(n.rXU(be),n.rXU(n.Agw),n.rXU(n.aKT))};static \u0275dir=n.FsC({type:t,selectors:[["","pKeyFilter",""]],hostBindings:function(i,o){1&i&&n.bIt("input",function(a){return o.onInput(a)})("keypress",function(a){return o.onKeyPress(a)})("paste",function(a){return o.onPaste(a)})},inputs:{pValidateOnly:[2,"pValidateOnly","pValidateOnly",n.L39],pattern:[0,"pKeyFilter","pattern"]},outputs:{ngModelChange:"ngModelChange"},features:[n.Jv_([uKe]),n.GFd]})}return t})(),tle=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({})}return t})();const dKe=["connectionSchedule"],pKe=()=>({width:"50vw"});function hKe(t,r){if(1&t&&n.EFF(0),2&t){const e=n.XpG();n.SpI(" Schedule for ",e.connectionTitle," ")}}function fKe(t,r){1&t&&(n.j41(0,"th"),n.EFF(1,"Agency"),n.k0s())}function mKe(t,r){1&t&&(n.j41(0,"th"),n.EFF(1,"Donor Location"),n.k0s())}function gKe(t,r){if(1&t&&(n.j41(0,"td")(1,"span",11),n.EFF(2),n.k0s(),n.j41(3,"span",12),n.EFF(4),n.k0s()()),2&t){const e=n.XpG().$implicit;n.R7$(2),n.JRh(null==e.agency?null:e.agency.Name),n.R7$(2),n.JRh(null==e.agency?null:e.agency.Code)}}function vKe(t,r){if(1&t&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&t){const e=n.XpG(2).$implicit;n.R7$(),n.SpI("",null==e.donorLocation?null:e.donorLocation.AddressLine2,", ")}}function _Ke(t,r){if(1&t&&(n.j41(0,"td")(1,"div",13)(2,"span",11),n.EFF(3),n.k0s(),n.nrm(4,"donor-location-code",14),n.k0s(),n.j41(5,"span"),n.EFF(6),n.k0s(),n.DNE(7,vKe,2,1,"span",5),n.j41(8,"span"),n.EFF(9),n.k0s(),n.j41(10,"span"),n.EFF(11),n.k0s(),n.j41(12,"span"),n.EFF(13),n.k0s()()),2&t){const e=n.XpG().$implicit;n.R7$(3),n.SpI(" ",null==e.donorLocation?null:e.donorLocation.DonorName," "),n.R7$(),n.Y8G("donorLocation",e.donorLocation),n.R7$(2),n.SpI("",null==e.donorLocation?null:e.donorLocation.AddressLine1," "),n.R7$(),n.Y8G("ngIf",null==e.donorLocation?null:e.donorLocation.AddressLine2),n.R7$(2),n.SpI("",null==e.donorLocation?null:e.donorLocation.City,", "),n.R7$(2),n.SpI("",null==e.donorLocation?null:e.donorLocation.Province,", "),n.R7$(2),n.JRh(null==e.donorLocation?null:e.donorLocation.PostalCode)}}function yKe(t,r){if(1&t&&(n.j41(0,"tr"),n.DNE(1,gKe,5,2,"td",5)(2,_Ke,14,7,"td",5),n.j41(3,"td",9)(4,"span",10),n.EFF(5),n.k0s()(),n.j41(6,"td",9)(7,"span",10),n.EFF(8),n.k0s()(),n.j41(9,"td",9)(10,"span",10),n.EFF(11),n.k0s()(),n.j41(12,"td",9)(13,"span",10),n.EFF(14),n.k0s()(),n.j41(15,"td",9)(16,"span",10),n.EFF(17),n.k0s()(),n.j41(18,"td",9)(19,"span",10),n.EFF(20),n.k0s()(),n.j41(21,"td",9)(22,"span",10),n.EFF(23),n.k0s()()()),2&t){const e=r.$implicit,i=n.XpG();n.R7$(),n.Y8G("ngIf","donor"===i.sortBy),n.R7$(),n.Y8G("ngIf","agency"===i.sortBy),n.R7$(3),n.JRh(null!=e.connection&&e.connection.IsAvailableMonday?"\u2b24":""),n.R7$(3),n.JRh(null!=e.connection&&e.connection.IsAvailableTuesday?"\u2b24":""),n.R7$(3),n.JRh(null!=e.connection&&e.connection.IsAvailableWednesday?"\u2b24":""),n.R7$(3),n.JRh(null!=e.connection&&e.connection.IsAvailableThursday?"\u2b24":""),n.R7$(3),n.JRh(null!=e.connection&&e.connection.IsAvailableFriday?"\u2b24":""),n.R7$(3),n.JRh(null!=e.connection&&e.connection.IsAvailableSaturday?"\u2b24":""),n.R7$(3),n.JRh(null!=e.connection&&e.connection.IsAvailableSunday?"\u2b24":"")}}function bKe(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",15),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.print())}),n.nrm(1,"i",16),n.EFF(2," Print Schedule "),n.k0s()}if(2&t){const e=n.XpG();n.Y8G("disabled",e.printingSchedule)}}let CKe=(()=>{class t{constructor(){this.visible=!1,this.schedule=[],this.sortBy=null,this.onClose=new n.bkB,this.connectionTitle="",this.scheduleToDisplay=[],this.printingSchedule=!1}ngOnInit(){}onShow(){this.schedule.length&&(this.connectionTitle="donor"===this.sortBy?`${this.schedule[0].donorLocation?.DonorName} (${this.schedule[0].donorLocation?.ExternalStoreNumber??this.schedule[0].donorLocation?.Code})`:`${this.schedule[0].agency?.Name}`),this.scheduleToDisplay=Ph(this.schedule.filter(e=>!e.isNewRow),[e=>"donor"===this.sortBy?e.agency?.Name:e.donorLocation?.DonorName,e=>"donor"===this.sortBy?e.agency?.Code:e.donorLocation?.ExternalStoreNumber?e.donorLocation.ExternalStoreNumber:e.donorLocation?.Code])}print(){var e=this;return(0,lr.A)(function*(){e.printingSchedule=!0;const i=new gW.jsPDF({putOnlyUsedFonts:!0,orientation:"landscape"});i.text(`Schedule for ${e.connectionTitle}`,14,15),i.table(14,20,e.createData(),e.createHeaders(),{autoSize:!1}),yield i.save(`Schedule - ${e.connectionTitle}.pdf`,{returnPromise:!0}),e.printingSchedule=!1})()}createHeaders(){return[{name:"donor"==this.sortBy?"Agency":"Donor Location",align:"left",padding:0,prompt:"",width:65},{name:"Monday",align:"center",padding:0,prompt:"",width:40},{name:"Tuesday",align:"center",padding:0,prompt:"",width:40},{name:"Wednesday",align:"center",padding:0,prompt:"",width:40},{name:"Thursday",align:"center",padding:0,prompt:"",width:40},{name:"Friday",align:"center",padding:0,prompt:"",width:40},{name:"Saturday",align:"center",padding:0,prompt:"",width:40},{name:"Sunday",align:"center",padding:0,prompt:"",width:40}]}createData(){return this.scheduleToDisplay.map(e=>{let i="";return"donor"===this.sortBy?i=`${e.agency?.Name} (${e.agency?.Code})`:(i=`${e.donorLocation?.DonorName} (${e.donorLocation?.ExternalStoreNumber||e.donorLocation?.Code})`,i+=`\r\n${e.donorLocation?.AddressLine1}, ${e.donorLocation?.City}, ${e.donorLocation?.Province}, ${e.donorLocation?.PostalCode}`),{["donor"==this.sortBy?"Agency":"Donor Location"]:i,Monday:e.connection?.IsAvailableMonday?"o":"    ",Tuesday:e.connection?.IsAvailableTuesday?"o":"    ",Wednesday:e.connection?.IsAvailableWednesday?"o":"    ",Thursday:e.connection?.IsAvailableThursday?"o":"    ",Friday:e.connection?.IsAvailableFriday?"o":"    ",Saturday:e.connection?.IsAvailableSaturday?"o":"    ",Sunday:e.connection?.IsAvailableSunday?"o":"    "}})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["view-print-mapping"]],viewQuery:function(i,o){if(1&i&&n.GBs(dKe,5),2&i){let s;n.mGM(s=n.lsd())&&(o.connectionSchedule=s.first)}},inputs:{visible:"visible",schedule:"schedule",sortBy:"sortBy"},outputs:{onClose:"onClose"},standalone:!1,decls:26,vars:10,consts:[["connectionSchedule",""],["header","Schedule",3,"visibleChange","onHide","onShow","visible","modal","draggable","resizable"],["pTemplate","header"],[1,"table-responsive"],["id","connectionSchedule",1,"table","table-striped"],[4,"ngIf"],[1,"tw-text-center"],[4,"ngFor","ngForOf"],["pTemplate","footer"],[1,"tw-text-center",2,"vertical-align","middle"],[1,"text-success"],[1,"tw-font-semibold"],[1,"tw-ml-2"],[1,"tw-flex"],[3,"donorLocation"],[1,"btn","btn-primary",3,"click","disabled"],[1,"fa","fa-print"]],template:function(i,o){if(1&i){const s=n.RV6();n.j41(0,"p-dialog",1),n.mxI("visibleChange",function(l){return n.eBV(s),n.DH7(o.visible,l)||(o.visible=l),n.Njj(l)}),n.bIt("onHide",function(){return n.eBV(s),n.Njj(o.onClose.emit())})("onShow",function(){return n.eBV(s),n.Njj(o.onShow())}),n.DNE(1,hKe,1,1,"ng-template",2),n.j41(2,"div",3)(3,"table",4,0)(5,"thead")(6,"tr"),n.DNE(7,fKe,2,0,"th",5)(8,mKe,2,0,"th",5),n.j41(9,"th",6),n.EFF(10,"Monday"),n.k0s(),n.j41(11,"th",6),n.EFF(12,"Tuesday"),n.k0s(),n.j41(13,"th",6),n.EFF(14,"Wednesday"),n.k0s(),n.j41(15,"th",6),n.EFF(16,"Thursday"),n.k0s(),n.j41(17,"th",6),n.EFF(18,"Friday"),n.k0s(),n.j41(19,"th",6),n.EFF(20,"Saturday"),n.k0s(),n.j41(21,"th",6),n.EFF(22,"Sunday"),n.k0s()()(),n.j41(23,"tbody"),n.DNE(24,yKe,24,9,"tr",7),n.k0s()()(),n.DNE(25,bKe,3,1,"ng-template",8),n.k0s()}2&i&&(n.Aen(n.lJ4(9,pKe)),n.R50("visible",o.visible),n.Y8G("modal",!0)("draggable",!1)("resizable",!1),n.R7$(7),n.Y8G("ngIf","donor"===o.sortBy),n.R7$(),n.Y8G("ngIf","agency"===o.sortBy),n.R7$(16),n.Y8G("ngForOf",o.scheduleToDisplay))},dependencies:[oo,fi,hs,gf,uW],encapsulation:2})}}return t})();const wKe=["menu"];let nle=(()=>{class t{constructor(){this.classes="",this.disabled=!1,this.text="Export",this.type="button",this.offerCsv=!1,this.offerExcel=!1,this.offerPdf=!1,this.onExportSelected=new n.bkB,this.menu=null,this.menuItems=[]}toggle(e){if(this.menu){if(this.offerCsv&&!this.offerExcel&&!this.offerPdf)return void this.onExportSelected.emit("csv");if(this.offerExcel&&!this.offerCsv&&!this.offerPdf)return void this.onExportSelected.emit("xlsx");if(this.offerPdf&&!this.offerCsv&&!this.offerExcel)return void this.onExportSelected.emit("pdf");this.menu.toggle(e)}}ngOnInit(){this.menuItems=[{label:"Export Options",items:[]}],this.offerCsv&&this.menuItems[0].items.push({label:"CSV",icon:"pi pi-fw pi-file",command:()=>this.onExportSelected.emit("csv")}),this.offerExcel&&this.menuItems[0].items.push({label:"Excel",icon:"pi pi-fw pi-file-excel",command:()=>this.onExportSelected.emit("xlsx")}),this.offerPdf&&this.menuItems[0].items.push({label:"PDF",icon:"pi pi-fw pi-file-pdf",command:()=>this.onExportSelected.emit("pdf")})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["export-button"]],viewQuery:function(i,o){if(1&i&&n.GBs(wKe,5),2&i){let s;n.mGM(s=n.lsd())&&(o.menu=s.first)}},inputs:{classes:"classes",disabled:"disabled",text:"text",type:"type",offerCsv:"offerCsv",offerExcel:"offerExcel",offerPdf:"offerPdf"},outputs:{onExportSelected:"onExportSelected"},standalone:!1,decls:4,vars:6,consts:[["menu",""],[3,"click","type","ngClass","disabled"],["appendTo","body",3,"popup","model"]],template:function(i,o){if(1&i){const s=n.RV6();n.j41(0,"button",1),n.bIt("click",function(l){return n.eBV(s),n.Njj(o.toggle(l))}),n.EFF(1),n.k0s(),n.nrm(2,"p-menu",2,0)}2&i&&(n.Y8G("type",o.type)("ngClass",o.classes)("disabled",o.disabled),n.R7$(),n.SpI(" ",o.text,"\n"),n.R7$(),n.Y8G("popup",!0)("model",o.menuItems))},dependencies:[bi,J8],encapsulation:2})}}return t})(),TKe=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=n.$C({type:t})}static{this.\u0275inj=n.G2t({imports:[gn,Aie,Ra,xv,th,$w,vg,Zp,Xw,Ix,d2,K_,tle,Qne]})}}return t})();n.wjB(qae,[fi,hs,wv,Sy,xy,Cc,Ty,_o,Rm,ko,Sx,yg,nle,ff,hf,kv,Lz,CKe],[]);const xKe_getTemplate=function(){return{name:"Workbook",properties:{prefixedAttributes:[{prefix:"xmlns:",map:{o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",html:"http://www.w3.org/TR/REC-html40"}}],rawMap:{xmlns:"urn:schemas-microsoft-com:office:spreadsheet"}}}},DKe_getTemplate=function(){return{name:"ExcelWorkbook",properties:{rawMap:{xmlns:"urn:schemas-microsoft-com:office:excel"}},children:[{name:"WindowHeight",textNode:"8130"},{name:"WindowWidth",textNode:"15135"},{name:"WindowHeight",textNode:"8130"},{name:"WindowTopX",textNode:"120"},{name:"WindowTopY",textNode:"45"},{name:"ProtectStructure",textNode:"False"},{name:"ProtectWindow",textNode:"False"}]}},IKe_getTemplate=function(t){return{name:"Column",properties:{prefixedAttributes:[{prefix:"ss:",map:{Width:t.width}}]}}},MKe_getTemplate=function(t){var r,e,i=t.mergeAcross,o=t.styleId,s=t.data,a={};return i&&(a.MergeAcross=i),o&&(a.StyleID=o),{name:"Cell",properties:{prefixedAttributes:[{prefix:"ss:",map:a}]},children:[{name:"Data",properties:{prefixedAttributes:[{prefix:"ss:",map:{Type:null===(r=s)||void 0===r?void 0:r.type}}]},textNode:null===(e=s)||void 0===e?void 0:e.value}]}};var RKe={getTemplate:function(t){return{name:"Row",children:t.cells.map(function(e){return MKe_getTemplate(e)})}}};const OKe=RKe;var FKe={getTemplate:function(t){var r=t.table,e=t.name,o=r.rows,s=r.columns.map(function(l){return IKe_getTemplate(l)}),a=o.map(function(l){return OKe.getTemplate(l)});return{name:"Worksheet",children:[{name:"Table",children:s.concat(a)}],properties:{prefixedAttributes:[{prefix:"ss:",map:{Name:e}}]}}}};const PKe=FKe,NKe_getTemplate=function(){return{name:"DocumentProperties",properties:{rawMap:{xmlns:"urn:schemas-microsoft-com:office:office"}},children:[{name:"Version",textNode:"12.00"}]}},BKe={getTemplate:function(t){var r=t.alignment;return{name:"Alignment",properties:{prefixedAttributes:[{prefix:"ss:",map:{Vertical:r.vertical,Horizontal:r.horizontal,Indent:r.indent,ReadingOrder:r.readingOrder,Rotate:r.rotate,ShrinkToFit:r.shrinkToFit,VerticalText:r.verticalText,WrapText:r.wrapText}}]}}}},jKe={getTemplate:function(t){var r=t.borders;return{name:"Borders",children:[r.borderBottom,r.borderLeft,r.borderRight,r.borderTop].map(function(a,l){return{name:"Border",properties:{prefixedAttributes:[{prefix:"ss:",map:{Position:0==l?"Bottom":1==l?"Left":2==l?"Right":"Top",LineStyle:a.lineStyle,Weight:a.weight,Color:a.color}}]}}})}}},UKe={getTemplate:function(t){var r=t.font;return{name:"Font",properties:{prefixedAttributes:[{prefix:"ss:",map:{Bold:r.bold,FontName:r.fontName,Italic:r.italic,Color:r.color,Outline:r.outline,Shadow:r.shadow,Size:r.size,StrikeThrough:r.strikeThrough,Underline:r.underline,VerticalAlign:r.verticalAlign}},{prefix:"x:",map:{CharSet:r.charSet,Family:r.family}}]}}}},YKe={getTemplate:function(t){var r=t.interior;return{name:"Interior",properties:{prefixedAttributes:[{prefix:"ss:",map:{Color:r.color,Pattern:r.pattern,PatternColor:r.patternColor}}]}}}},zKe={getTemplate:function(t){return{name:"Protection",properties:{prefixedAttributes:[{prefix:"ss:",map:{Protected:t.protection.protected,HideFormula:t.protection.hideFormula}}]}}}},XKe={getTemplate:function(t){return{name:"NumberFormat",properties:{prefixedAttributes:[{prefix:"ss:",map:{Format:t.numberFormat.format}}]}}}},QKe_getTemplate=function(t){var r=t.id;return{name:"Style",properties:{prefixedAttributes:[{prefix:"ss:",map:{ID:r,Name:t.name||r}}]}}};var Nz=function(){function t(){}return t.createExcel=function(r,e){var i=this.excelXmlHeader(),o=NKe_getTemplate(),s=DKe_getTemplate(),a=this.workbook(o,s,r,e);return""+i+VY.createXml(a,function(l){return l?"1":"0"})},t.workbook=function(r,e,i,o){var s=[r,e,this.stylesXmlElement(i)].concat(PKe.getTemplate(o));return Object.assign({},xKe_getTemplate(),{children:s})},t.excelXmlHeader=function(){return'<?xml version="1.0" ?>\n        <?mso-application progid="Excel.Sheet" ?>\n        '},t.stylesXmlElement=function(r){var e=this;return{name:"Styles",children:r?r.map(function(i){return e.styleXmlElement(i)}):[]}},t.styleXmlElement=function(r){var e=ln.compose(this.addProperty("alignment",r),this.addProperty("borders",r),this.addProperty("font",r),this.addProperty("interior",r),this.addProperty("protection",r),this.addProperty("numberFormat",r))([]);return Object.assign({},QKe_getTemplate(r),{children:e})},t.addProperty=function(r,e){return function(i){return e[r]?i.concat({alignment:BKe,borders:jKe,font:UKe,interior:YKe,numberFormat:XKe,protection:zKe}[r].getTemplate(e)):i}},t.factoryMode=D_.SINGLE_SHEET,t}(),ile={0:1,"0.00":2,"#,##0":3,"#,##0.00":4,"0%":9,"0.00%":10,"0.00E+00":11,"# ?/?":12,"# ??/??":13,"mm-dd-yy":14,"d-mmm-yy":15,"d-mmm":16,"mmm-yy":17,"h:mm AM/PM":18,"h:mm:ss AM/PM":19,"h:mm":20,"h:mm:ss":21,"m/d/yy h:mm":22,"#,##0 ;(#,##0)":37,"#,##0 ;[Red](#,##0)":38,"#,##0.00;(#,##0.00)":39,"#,##0.00;[Red](#,##0.00)":40,"mm:ss":45,"[h]:mm:ss":46,"mmss.0":47,"##0.0E+0":48,"@":49},eQe=function(t){return Math.round(96*t/72)},Zk=function(t){return Math.ceil(9525*t)},iG=function(t,r){if(r)return function(t){return Math.round(72*t/96)}("number"==typeof r?r:r({rowIndex:t}))},Hv=function(t){return""+VY.createHeader({encoding:"UTF-8",standalone:"yes"})+VY.createXml(t)},yF=function(t){var i=String.fromCharCode,o=Math.floor(t/26),s=t%26;return o&&26!==t?s?o<26?i(65+o-1)+i(65+s-1):yF(o)+i(65+s-1):yF(o-1)+"Z":i(65+t-1)},rQe=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),bF=function(){return bF=Object.assign||function(t){for(var r,e=1,i=arguments.length;e<i;e++)for(var o in r=arguments[e])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t},bF.apply(this,arguments)},oQe=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var o,a,i=e.call(t),s=[];try{for(;(void 0===r||r-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return s},rle=function(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(oQe(arguments[r]));return t},ole=function(t){function r(e){var i=t.call(this,e)||this;return i.mixedStyles={},i.mixedStyleCounter=0,i.rows=[],i.config=Object.assign({},e),i.stylesByIds={},i.config.baseExcelStyles.forEach(function(o){i.stylesByIds[o.id]=o}),i.excelStyles=rle(i.config.baseExcelStyles),i}return rQe(r,t),r.prototype.addCustomContent=function(e){var i=this;e.forEach(function(o){var s=i.rows.length+1;i.rows.push({height:iG(s,i.config.rowHeight),cells:(o.cells||[]).map(function(a,l){var c,d=i.addImage(s,i.columnsToExport[l],null===(c=a.data)||void 0===c?void 0:c.value),f=bF({},a);return d&&(f.data={},null!=d.value?f.data.value=d.value:(f.data.type="e",f.data.value=null)),f}),outlineLevel:o.outlineLevel||void 0})})},r.prototype.onNewHeaderGroupingRow=function(){var e=this,i=[];return this.rows.push({cells:i,height:iG(this.rows.length+1,this.config.headerRowHeight)}),{onColumn:function(o,s,a,l){var c=e.config.styleLinker(Sk.HEADER_GROUPING,1,"grouping-"+o,void 0,void 0);i.push(bF(bF({},e.createMergedCell(e.getStyleId(c),e.getDataTypeForValue("string"),o,a)),{collapsibleRanges:l}))}}},r.prototype.onNewHeaderRow=function(){return this.onNewRow(this.onNewHeaderColumn,this.config.headerRowHeight)},r.prototype.onNewBodyRow=function(){return this.onNewRow(this.onNewBodyColumn,this.config.rowHeight)},r.prototype.prepare=function(e){var i=this;t.prototype.prepare.call(this,e),this.columnsToExport=rle(e),this.cols=e.map(function(o,s){return i.convertColumnToExcel(o,s)})},r.prototype.parse=function(){for(var e=this.rows.reduce(function(o,s){return Math.max(o,s.cells.length)},0);this.cols.length<e;)this.cols.push(this.convertColumnToExcel(null,this.cols.length+1));return this.createExcel({name:this.config.sheetName,table:{columns:this.cols,rows:this.rows}})},r.prototype.isFormula=function(e){return null!=e&&this.config.autoConvertFormulas&&e.toString().startsWith("=")},r.prototype.getStyleById=function(e){return null==e?null:this.stylesByIds[e]||null},r.prototype.convertColumnToExcel=function(e,i){var o=this.config.columnWidth;return o?"number"==typeof o?{width:o}:{width:o({column:e,index:i})}:e?{width:Math.max(e.getActualWidth(),75)}:{}},r.prototype.onNewHeaderColumn=function(e,i){var o=this;return function(s,a){var l=o.extractHeaderValue(s),c=o.config.styleLinker(Sk.HEADER,e,l,s,void 0);i.push(o.createCell(o.getStyleId(c),o.getDataTypeForValue("string"),l))}},r.prototype.onNewRow=function(e,i){var o=[];return this.rows.push({cells:o,height:iG(this.rows.length+1,i)}),{onColumn:e.bind(this,this.rows.length,o)()}},r.prototype.onNewBodyColumn=function(e,i){var o=this,s=0;return function(a,l,c){if(s>0)s-=1;else{!o.config.gridOptionsWrapper.isGroupHideOpenParents()&&c.level&&(ln.last(o.rows).outlineLevel=c.level);var d=o.extractRowCellValue(a,l,e,Nn.EXPORT_TYPE_EXCEL,c),f=o.config.styleLinker(Sk.BODY,e,d,a,c),v=o.getStyleId(f),w=a.getColSpan(c),x=o.addImage(e,a,d);x?i.push(o.createCell(v,o.getDataTypeForValue(x.value),null==x.value?"":x.value)):w>1?(s=w-1,i.push(o.createMergedCell(v,o.getDataTypeForValue(d),d,w-1))):i.push(o.createCell(v,o.getDataTypeForValue(d),d))}}},r.prototype.getStyleId=function(e){if(!e||!e.length)return null;if(1===e.length)return e[0];var i=e.join("-");return this.mixedStyles[i]||this.addNewMixedStyle(e),this.mixedStyles[i].excelID},r.prototype.addNewMixedStyle=function(e){var i=this;this.mixedStyleCounter+=1;var o="mixedStyle"+this.mixedStyleCounter,s={};e.forEach(function(l){i.excelStyles.forEach(function(c){c.id===l&&ln.mergeDeep(s,ln.deepCloneObject(c))})}),s.id=o,s.name=o;var a=e.join("-");this.mixedStyles[a]={excelID:o,key:a,result:s},this.excelStyles.push(s),this.stylesByIds[o]=s},r}(Rie),sQe=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),aQe=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return sQe(r,t),r.prototype.createExcel=function(e){return Nz.createExcel(this.excelStyles,e)},r.prototype.getDataTypeForValue=function(e){return ln.isNumeric(e)?"Number":"String"},r.prototype.getType=function(e,i,o){if(this.isFormula(o))return"Formula";if(i&&i.dataType)switch(i.dataType.toLocaleLowerCase()){case"string":return"Formula";case"number":return"Number";case"datetime":return"DateTime";case"error":return"Error";case"boolean":return"Boolean";default:console.warn("AG Grid: Unrecognized data type for excel export ["+i.id+".dataType="+i.dataType+"]")}return e},r.prototype.addImage=function(){},r.prototype.createCell=function(e,i,o){var s=this.getStyleById(e),a=this.getType(i,s,o)||i;return{styleId:s?e:void 0,data:{type:a,value:this.getValueTransformed(a,o)}}},r.prototype.getValueTransformed=function(e,i){var l,o=this;switch(e){case"String":return function(l){if(o.config.suppressTextAsCDATA)return ln.escapeString(l);var c="<![CDATA[",d="]]>",f=new RegExp(d,"g");return c+String(l).replace(f,"]]"+d+c+">")+d}(i);case"Number":return Number(i).valueOf()+"";case"Boolean":return(l=i)&&"0"!==l&&"false"!==l?"1":"0";default:return i}},r.prototype.createMergedCell=function(e,i,o,s){return{styleId:this.getStyleById(e)?e:void 0,data:{type:i,value:o},mergeAcross:s}},r}(ole),lQe={getTemplate:function(t){var e=(new Date).toJSON();return{name:"cp:coreProperties",properties:{prefixedAttributes:[{prefix:"xmlns:",map:{cp:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",xsi:"http://www.w3.org/2001/XMLSchema-instance"}}]},children:[{name:"dc:creator",textNode:t},{name:"dc:title",textNode:"Workbook"},{name:"dcterms:created",properties:{rawMap:{"xsi:type":"dcterms:W3CDTF"}},textNode:e},{name:"dcterms:modified",properties:{rawMap:{"xsi:type":"dcterms:W3CDTF"}},textNode:e}]}}};const cQe=lQe,dQe_getTemplate=function(t){return{name:t.name,properties:{rawMap:{Extension:t.Extension,PartName:t.PartName,ContentType:t.ContentType}}}};var pQe=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var o,a,i=e.call(t),s=[];try{for(;(void 0===r||r-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return s},fQe={getTemplate:function(t){var r=new Array(t).fill(void 0).map(function(l,c){return{name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",PartName:"/xl/worksheets/sheet"+(c+1)+".xml"}}),e=lu.worksheetImages.size,i={};lu.workbookImageIds.forEach(function(l){i[l.type]=!0});var o=new Array(e).fill(void 0).map(function(l,c){return{name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml",PartName:"/xl/drawings/drawing"+(c+1)+".xml"}}),a=function(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(pQe(arguments[r]));return t}(Object.keys(i).map(function(l){return{name:"Default",ContentType:"image/"+l,Extension:l}}),[{name:"Default",Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"},{name:"Default",ContentType:"application/xml",Extension:"xml"},{name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",PartName:"/xl/workbook.xml"}],r,[{name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml",PartName:"/xl/theme/theme1.xml"},{name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",PartName:"/xl/styles.xml"},{name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",PartName:"/xl/sharedStrings.xml"}],o,[{name:"Override",ContentType:"application/vnd.openxmlformats-package.core-properties+xml",PartName:"/docProps/core.xml"}]).map(function(l){return dQe_getTemplate(l)});return{name:"Types",properties:{rawMap:{xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"}},children:a}}};const mQe=fQe;var sle=function(t,r){return{name:"xdr:"+t,children:[{name:"xdr:col",textNode:r.col.toString()},{name:"xdr:colOff",textNode:r.offsetX.toString()},{name:"xdr:row",textNode:r.row.toString()},{name:"xdr:rowOff",textNode:r.offsetY.toString()}]}},gQe=function(t){var r=[{name:"a:ext",properties:{rawMap:{uri:"{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"}},children:[{name:"a16:creationId",properties:{rawMap:{id:"{822E6D20-D7BC-2841-A643-D49A6EF008A2}","xmlns:a16":"http://schemas.microsoft.com/office/drawing/2014/main"}}}]}];switch(t.recolor&&t.recolor.toLowerCase()){case"grayscale":case"sepia":case"washout":r.push({name:"a:ext",properties:{rawMap:{uri:"{C183D7F6-B498-43B3-948B-1728B52AA6E4}"}},children:[{name:"adec:decorative",properties:{rawMap:{val:"0","xmlns:adec":"http://schemas.microsoft.com/office/drawing/2017/decorative"}}}]})}return{name:"a:extLst",children:r}},vQe=function(t,r){return{name:"xdr:nvPicPr",children:[{name:"xdr:cNvPr",properties:{rawMap:{id:r,name:t.id,descr:null!=t.altText?t.altText:void 0}},children:[gQe(t)]},{name:"xdr:cNvPicPr",properties:{rawMap:{preferRelativeResize:"0"}},children:[{name:"a:picLocks"}]}]}},ale=function(t){if(t.saturation||t.tint){var r=[];return t.saturation&&r.push({name:"a:satMod",properties:{rawMap:{val:1e3*t.saturation}}}),t.tint&&r.push({name:"a:tint",properties:{rawMap:{val:1e3*t.tint}}}),r}},yQe=function(t,r){var e;if(t.transparency){var i=Math.min(Math.max(t.transparency,0),100);e=[{name:"a:alphaModFix",properties:{rawMap:{amt:1e5-Math.round(1e3*i)}}}]}if(t.recolor)switch(e||(e=[]),t.recolor.toLocaleLowerCase()){case"grayscale":e.push({name:"a:grayscl"});break;case"sepia":e.push(function(t,r){return{name:"a:duotone",children:[{name:"a:prstClr",properties:{rawMap:{val:t.color}},children:ale(t)},{name:"a:srgbClr",properties:{rawMap:{val:r.color}},children:ale(r)}]}}({color:"black"},{color:"D9C3A5",tint:50,saturation:180}));break;case"washout":e.push({name:"a:lum",properties:{rawMap:{bright:"70000",contrast:"-70000"}}})}return{name:"xdr:blipFill",children:[{name:"a:blip",properties:{rawMap:{cstate:"print","r:embed":"rId"+r,"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships"}},children:e},{name:"a:stretch",children:[{name:"a:fillRect"}]}]}},bQe=function(t,r){var e={name:"a:xfrm",children:[{name:"a:off",properties:{rawMap:{x:0,y:0}}},{name:"a:ext",properties:{rawMap:{cx:r.width,cy:r.height}}}]};return t.rotation&&(e.properties={rawMap:{rot:6e4*Math.min(Math.max(t.rotation,0),360)}}),{name:"xdr:spPr",children:[e,{name:"a:prstGeom",properties:{rawMap:{prst:"rect"}},children:[{name:"a:avLst"}]}]}},wQe=function(t,r,e,i){return{name:"xdr:pic",children:[vQe(t,r+1),yQe(t,e+1),bQe(t,i)]}},TQe={getTemplate:function(t){var r=t.sheetIndex,e=lu.worksheetImages.get(r),i=lu.worksheetImageIds.get(r),o=e.map(function(s,a){var l=function(t){t.fitCell=!!t.fitCell||!t.width||!t.height;var r=t.position,e=void 0===r?{}:r,i=t.fitCell,o=t.width,s=void 0===o?0:o,a=t.height,l=void 0===a?0:a,c=t.totalHeight,d=t.totalWidth,f=e.offsetX,v=void 0===f?0:f,w=e.offsetY,x=void 0===w?0:w,I=e.row,M=void 0===I?1:I,F=e.rowSpan,re=void 0===F?1:F,pe=e.column,we=void 0===pe?1:pe,je=e.colSpan,tt=void 0===je?1:je;return{from:{row:M-1,col:we-1,offsetX:Zk(v),offsetY:Zk(x)},to:{row:M-1+(i?1:re-1),col:we-1+(i?1:tt-1),offsetX:Zk(s+v),offsetY:Zk(l+x)},height:Zk(c||l),width:Zk(d||s)}}(s);return{name:"xdr:twoCellAnchor",properties:{rawMap:{editAs:"absolute"}},children:[sle("from",l.from),sle("to",l.to),wQe(s,a,i.get(s.id).index,l),{name:"xdr:clientData"}]}});return{name:"xdr:wsDr",properties:{rawMap:{"xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main","xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing"}},children:o}}};const SQe=TQe;var Uv=function(t){var r=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var o,a,i=e.call(t),s=[];try{for(;(void 0===r||r-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return s}(t,4);return{name:"a:"+r[0],children:[{name:"a:"+r[1],properties:{rawMap:{val:r[2],lastClr:r[3]}}}]}};const DQe_getTemplate=function(){return{name:"a:clrScheme",properties:{rawMap:{name:"Office"}},children:[Uv(["dk1","sysClr","windowText","000000"]),Uv(["lt1","sysClr","window","FFFFFF"]),Uv(["dk2","srgbClr","44546A"]),Uv(["lt2","srgbClr","E7E6E6"]),Uv(["accent1","srgbClr","4472C4"]),Uv(["accent2","srgbClr","ED7D31"]),Uv(["accent3","srgbClr","A5A5A5"]),Uv(["accent4","srgbClr","FFC000"]),Uv(["accent5","srgbClr","5B9BD5"]),Uv(["accent6","srgbClr","70AD47"]),Uv(["hlink","srgbClr","0563C1"]),Uv(["folHlink","srgbClr","954F72"])]}};var $r=function(t){var r=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var o,a,i=e.call(t),s=[];try{for(;(void 0===r||r-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return s}(t,4);return{name:"a:"+r[0],properties:{rawMap:{script:r[2],typeface:r[1],panose:r[3]}}}},IQe={getTemplate:function(){var t=ln.utf8_encode;return{name:"a:fontScheme",properties:{rawMap:{name:"Office"}},children:[{name:"a:majorFont",children:[$r(["latin","Calibri Light",void 0,"020F0302020204030204"]),$r(["ea",""]),$r(["cs",""]),$r(["font",t("\u6e38\u30b4\u30b7\u30c3\u30af Light"),"Jpan"]),$r(["font",t("\ub9d1\uc740 \uace0\ub515"),"Hang"]),$r(["font",t("\u7b49\u7ebf Light"),"Hans"]),$r(["font",t("\u65b0\u7d30\u660e\u9ad4"),"Hant"]),$r(["font","Times New Roman","Arab"]),$r(["font","Times New Roman","Hebr"]),$r(["font","Tahoma","Thai"]),$r(["font","Nyala","Ethi"]),$r(["font","Vrinda","Beng"]),$r(["font","Shruti","Gujr"]),$r(["font","MoolBoran","Khmr"]),$r(["font","Tunga","Knda"]),$r(["font","Raavi","Guru"]),$r(["font","Euphemia","Cans"]),$r(["font","Plantagenet Cherokee","Cher"]),$r(["font","Microsoft Yi Baiti","Yiii"]),$r(["font","Microsoft Himalaya","Tibt"]),$r(["font","MV Boli","Thaa"]),$r(["font","Mangal","Deva"]),$r(["font","Gautami","Telu"]),$r(["font","Latha","Taml"]),$r(["font","Estrangelo Edessa","Syrc"]),$r(["font","Kalinga","Orya"]),$r(["font","Kartika","Mlym"]),$r(["font","DokChampa","Laoo"]),$r(["font","Iskoola Pota","Sinh"]),$r(["font","Mongolian Baiti","Mong"]),$r(["font","Times New Roman","Viet"]),$r(["font","Microsoft Uighur","Uigh"]),$r(["font","Sylfaen","Geor"]),$r(["font","Arial","Armn"]),$r(["font","Leelawadee UI","Bugi"]),$r(["font","Microsoft JhengHei","Bopo"]),$r(["font","Javanese Text","Java"]),$r(["font","Segoe UI","Lisu"]),$r(["font","Myanmar Text","Mymr"]),$r(["font","Ebrima","Nkoo"]),$r(["font","Nirmala UI","Olck"]),$r(["font","Ebrima","Osma"]),$r(["font","Phagspa","Phag"]),$r(["font","Estrangelo Edessa","Syrn"]),$r(["font","Estrangelo Edessa","Syrj"]),$r(["font","Estrangelo Edessa","Syre"]),$r(["font","Nirmala UI","Sora"]),$r(["font","Microsoft Tai Le","Tale"]),$r(["font","Microsoft New Tai Lue","Talu"]),$r(["font","Ebrima","Tfng"])]},{name:"a:minorFont",children:[$r(["latin","Calibri",void 0,"020F0502020204030204"]),$r(["ea",""]),$r(["cs",""]),$r(["font",t("\u6e38\u30b4\u30b7\u30c3\u30af"),"Jpan"]),$r(["font",t("\ub9d1\uc740 \uace0\ub515"),"Hang"]),$r(["font",t("\u7b49\u7ebf"),"Hans"]),$r(["font",t("\u65b0\u7d30\u660e\u9ad4"),"Hant"]),$r(["font","Arial","Arab"]),$r(["font","Arial","Hebr"]),$r(["font","Tahoma","Thai"]),$r(["font","Nyala","Ethi"]),$r(["font","Vrinda","Beng"]),$r(["font","Shruti","Gujr"]),$r(["font","DaunPenh","Khmr"]),$r(["font","Tunga","Knda"]),$r(["font","Raavi","Guru"]),$r(["font","Euphemia","Cans"]),$r(["font","Plantagenet Cherokee","Cher"]),$r(["font","Microsoft Yi Baiti","Yiii"]),$r(["font","Microsoft Himalaya","Tibt"]),$r(["font","MV Boli","Thaa"]),$r(["font","Mangal","Deva"]),$r(["font","Gautami","Telu"]),$r(["font","Latha","Taml"]),$r(["font","Estrangelo Edessa","Syrc"]),$r(["font","Kalinga","Orya"]),$r(["font","Kartika","Mlym"]),$r(["font","DokChampa","Laoo"]),$r(["font","Iskoola Pota","Sinh"]),$r(["font","Mongolian Baiti","Mong"]),$r(["font","Arial","Viet"]),$r(["font","Microsoft Uighur","Uigh"]),$r(["font","Sylfaen","Geor"]),$r(["font","Arial","Armn"]),$r(["font","Leelawadee UI","Bugi"]),$r(["font","Microsoft JhengHei","Bopo"]),$r(["font","Javanese Text","Java"]),$r(["font","Segoe UI","Lisu"]),$r(["font","Myanmar Text","Mymr"]),$r(["font","Ebrima","Nkoo"]),$r(["font","Nirmala UI","Olck"]),$r(["font","Ebrima","Osma"]),$r(["font","Phagspa","Phag"]),$r(["font","Estrangelo Edessa","Syrn"]),$r(["font","Estrangelo Edessa","Syrj"]),$r(["font","Estrangelo Edessa","Syre"]),$r(["font","Nirmala UI","Sora"]),$r(["font","Microsoft Tai Le","Tale"]),$r(["font","Microsoft New Tai Lue","Talu"]),$r(["font","Ebrima","Tfng"])]}]}}};const AQe=IQe;var CF=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var o,a,i=e.call(t),s=[];try{for(;(void 0===r||r-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return s},jy=function(t,r,e){return{name:"a:"+t,properties:{rawMap:{val:r}},children:e}},Gz=function(t){var r=CF(t,6),e=r[0],i=r[1],s=r[3],a=r[4],l=r[5],c=[];return c.push(jy("satMod",r[2])),s&&c.push(jy("lumMod",s)),a&&c.push(jy("tint",a)),l&&c.push(jy("shade",l)),{name:"a:gs",properties:{rawMap:{pos:e}},children:[{name:"a:schemeClr",properties:{rawMap:{val:i}},children:c}]}},rG=function(t,r){return{name:"a:solidFill",children:[jy("schemeClr",t,r)]}},Bz=function(t){var r=CF(t,5),e=r[0],i=r[1],o=r[2],s=r[3],l=CF(r[4],2),c=l[0],d=l[1];return{name:"a:gradFill",properties:{rawMap:{rotWithShape:e}},children:[{name:"a:gsLst",children:[Gz(i),Gz(o),Gz(s)]},{name:"a:lin",properties:{rawMap:{ang:c,scaled:d}}}]}},Vz=function(t){var r=CF(t,4);return{name:"a:ln",properties:{rawMap:{w:r[0],cap:r[1],cmpd:r[2],algn:r[3]}},children:[rG("phClr"),jy("prstDash","solid"),{name:"a:miter",properties:{rawMap:{lim:"800000"}}}]}},jz=function(t){var r=[];if(t){var e=CF(t,5);r.push({name:"a:outerShdw",properties:{rawMap:{blurRad:e[0],dist:e[1],dir:e[2],algn:e[3],rotWithShape:e[4]}},children:[jy("srgbClr","000000",[jy("alpha","63000")])]})}return{name:"a:effectStyle",children:[Object.assign({},{name:"a:effectLst"},r.length?{children:r}:{})]}};const LQe_getTemplate=function(){return{name:"a:fmtScheme",properties:{rawMap:{name:"Office"}},children:[{name:"a:fillStyleLst",children:[rG("phClr"),Bz(["1",["0","phClr","105000","110000","67000"],["50000","phClr","103000","105000","73000"],["100000","phClr","109000","105000","81000"],["5400000","0"]]),Bz(["1",["0","phClr","103000","102000","94000"],["50000","phClr","110000","100000",void 0,"100000"],["100000","phClr","120000","99000",void 0,"78000"],["5400000","0"]])]},{name:"a:lnStyleLst",children:[Vz(["6350","flat","sng","ctr"]),Vz(["12700","flat","sng","ctr"]),Vz(["19050","flat","sng","ctr"])]},{name:"a:effectStyleLst",children:[jz(),jz(),jz(["57150","19050","5400000","ctr","0"])]},{name:"a:bgFillStyleLst",children:[rG("phClr"),rG("phClr",[jy("tint","95000"),jy("satMod","170000")]),Bz(["1",["0","phClr","150000","102000","93000","98000"],["50000","phClr","130000","103000","98000","90000"],["100000","phClr","120000",void 0,void 0,"63000"],["5400000","0"]])]}]}},GQe_getTemplate=function(){return{name:"a:themeElements",children:[DQe_getTemplate(),AQe.getTemplate(),LQe_getTemplate()]}},VQe_getTemplate=function(){return{name:"a:theme",properties:{prefixedAttributes:[{prefix:"xmlns:",map:{a:"http://schemas.openxmlformats.org/drawingml/2006/main"}}],rawMap:{name:"Office Theme"}},children:[GQe_getTemplate(),{name:"a:objectDefaults"},{name:"a:extraClrSchemeLst"}]}};var jQe=function(t){var r=[];return t.forEach(function(e,i){var o=i.toString(),s={name:"t",textNode:ln.utf8_encode(ln.escapeString(o))};o.trim().length!==o.length&&(s.properties={rawMap:{"xml:space":"preserve"}}),r.push({name:"si",children:[s]})}),r},HQe={getTemplate:function(t){return{name:"sst",properties:{rawMap:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:t.size,uniqueCount:t.size}},children:jQe(t)}}};const UQe=HQe,YQe_getTemplate=function(t){return{name:"numFmt",properties:{rawMap:{formatCode:t.formatCode,numFmtId:t.numFmtId}}}};var WQe={getTemplate:function(t){return{name:"numFmts",properties:{rawMap:{count:t.length}},children:t.map(function(r){return YQe_getTemplate(r)})}}};const zQe=WQe,XQe_getTemplate=function(t){var i=t.color,s=t.fontName,l=t.family,c=t.scheme,d=t.italic,f=t.bold,v=t.strikeThrough,w=t.outline,x=t.shadow,I=t.underline,M=t.verticalAlign,F=[{name:"sz",properties:{rawMap:{val:t.size}}},{name:"color",properties:{rawMap:{theme:t.colorTheme,rgb:void 0===i?"FF000000":i}}},{name:"name",properties:{rawMap:{val:void 0===s?"Calibri":s}}}];return l&&F.push({name:"family",properties:{rawMap:{val:l}}}),c&&F.push({name:"scheme",properties:{rawMap:{val:c}}}),d&&F.push({name:"i"}),f&&F.push({name:"b"}),v&&F.push({name:"strike"}),w&&F.push({name:"outline"}),x&&F.push({name:"shadow"}),I&&F.push({name:"u",properties:{rawMap:{val:I}}}),M&&F.push({name:"vertAlign",properties:{rawMap:{val:M}}}),{name:"font",children:F}};var KQe={getTemplate:function(t){return{name:"fonts",properties:{rawMap:{count:t.length}},children:t.map(function(r){return XQe_getTemplate(r)})}}};const QQe=KQe,ZQe_getTemplate=function(t){var e=t.fgTheme,i=t.fgTint,o=t.fgRgb,s=t.bgRgb,a=t.bgIndexed,l={name:"patternFill",properties:{rawMap:{patternType:t.patternType}}};return(e||i||o)&&(l.children=[{name:"fgColor",properties:{rawMap:{theme:e,tint:i,rgb:o}}}]),(a||s)&&(l.children||(l.children=[]),l.children.push({name:"bgColor",properties:{rawMap:{indexed:a,rgb:s}}})),{name:"fill",children:[l]}};var eJe={getTemplate:function(t){return{name:"fills",properties:{rawMap:{count:t.length}},children:t.map(function(r){return ZQe_getTemplate(r)})}}};const tJe=eJe;var iJe={None:"None",Dot:"Dotted",Dash:"Dashed",Double:"Double",DashDot:"DashDot",DashDotDot:"DashDotDot",SlantDashDot:"SlantDashDot"},rJe=["Dashed","DashDot","DashDotDot"],oJe={None:"none",Solid:"solid",Gray50:"mediumGray",Gray75:"darkGray",Gray25:"lightGray",HorzStripe:"darkHorizontal",VertStripe:"darkVertical",ReverseDiagStripe:"darkDown",DiagStripe:"darkUp",DiagCross:"darkGrid",ThickDiagCross:"darkTrellis",ThinHorzStripe:"lightHorizontal",ThinVertStripe:"lightVertical",ThinReverseDiagStripe:"lightDown",ThinDiagStripe:"lightUp",ThinHorzCross:"lightGrid",ThinDiagCross:"lightTrellis",Gray125:"gray125",Gray0625:"gray0625"},sJe={Automatic:"general",Left:"left",Center:"center",Right:"right",Fill:"fill",Justify:"justify",CenterAcrossSelection:"centerContinuous",Distributed:"distributed",JustifyDistributed:"justify"},aJe={Automatic:void 0,Top:"top",Bottom:"bottom",Center:"center",Justify:"justify",Distributed:"distributed",JustifyDistributed:"justify"},pT=function(t){return null==t?t:("#"===t.charAt(0)&&(t=t.substr(1)),6===t.length?"FF"+t:t)},oG=function(t,r){if(!t)return"thin";var e=function(t){switch(t){case 1:return"thin";case 2:return"medium";case 3:return"thick";default:return"hair"}}(r),i=iJe[t];return"Continuous"===t?e:"medium"===e&&-1!==rJe.indexOf(i)?"medium"+i:i.charAt(0).toLowerCase()+i.substr(1)},cJe=function(t){return sJe[t]||"general"},uJe=function(t){return aJe[t]||void 0},wF=function(t){return{name:"color",properties:{rawMap:{rgb:pT(t||"#000000")}}}},dJe={getTemplate:function(t){var r=t.left,e=t.right,i=t.top,o=t.bottom,s=t.diagonal,a=r?[wF(r.color)]:void 0,l=e?[wF(e.color)]:void 0,c=i?[wF(i.color)]:void 0,d=o?[wF(o.color)]:void 0,f=s?[wF(s.color)]:void 0;return{name:"border",children:[{name:"left",properties:{rawMap:{style:r&&r.style}},children:a},{name:"right",properties:{rawMap:{style:e&&e.style}},children:l},{name:"top",properties:{rawMap:{style:i&&i.style}},children:c},{name:"bottom",properties:{rawMap:{style:o&&o.style}},children:d},{name:"diagonal",properties:{rawMap:{style:s&&s.style}},children:f}]}}};const pJe=dJe;var hJe={getTemplate:function(t){return{name:"borders",properties:{rawMap:{count:t.length}},children:t.map(function(r){return pJe.getTemplate(r)})}}};const fJe=hJe;var mJe=function(t){var e=["Context","LeftToRight","RightToLeft"].indexOf(t);return Math.max(e,0)},gJe={getTemplate:function(t){var r=t.horizontal,e=t.indent,i=t.readingOrder,o=t.rotate,s=t.shrinkToFit,a=t.vertical,l=t.wrapText;return{name:"alignment",properties:{rawMap:{horizontal:r&&cJe(r),indent:e,readingOrder:i&&mJe(i),textRotation:o,shrinkToFit:s,vertical:a&&uJe(a),wrapText:l}}}}};const vJe=gJe,yJe_getTemplate=function(t){return{name:"protection",properties:{rawMap:{hidden:!0===t.hideFormula?1:0,locked:!1===t.protected?0:1}}}};var bJe={getTemplate:function(t){var r=t.alignment,e=t.borderId,i=t.fillId,o=t.fontId,s=t.numFmtId,a=t.protection,l=t.xfId,c=[];return r&&c.push(vJe.getTemplate(r)),a&&c.push(yJe_getTemplate(a)),{name:"xf",properties:{rawMap:{applyAlignment:r?1:void 0,applyProtection:a?1:void 0,applyBorder:e?1:void 0,applyFill:i?1:void 0,borderId:e,fillId:i,applyFont:o?1:void 0,fontId:o,applyNumberFormat:s?1:void 0,numFmtId:s,xfId:l}},children:c.length?c:void 0}}};const lle=bJe;var CJe={getTemplate:function(t){return{name:"cellStyleXfs",properties:{rawMap:{count:t.length}},children:t.map(function(r){return lle.getTemplate(r)})}}};const wJe=CJe;var TJe={getTemplate:function(t){return{name:"cellXfs",properties:{rawMap:{count:t.length}},children:t.map(function(r){return lle.getTemplate(r)})}}};const SJe=TJe,EJe_getTemplate=function(t){return{name:"cellStyle",properties:{rawMap:{builtinId:t.builtinId,name:t.name,xfId:t.xfId}}}};var DJe={getTemplate:function(t){return{name:"cellStyles",properties:{rawMap:{count:t.length}},children:t.map(function(r){return EJe_getTemplate(r)})}}};const kJe=DJe;var aG,eI,TF,SF,xF,cle,lG,ule,Hz,sG=function(){return sG=Object.assign||function(t){for(var r,e=1,i=arguments.length;e<i;e++)for(var o in r=arguments[e])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t},sG.apply(this,arguments)},dle=function(t,r){return-1!==t.indexOf("mixedStyle")&&r>1&&(t+="_"+r),t},ple=function(){aG={base:0},eI=[],TF=[{fontName:"Calibri",colorTheme:"1",family:"2",scheme:"minor"}],SF=[{patternType:"none"},{patternType:"gray125"}],xF=[{left:void 0,right:void 0,top:void 0,bottom:void 0,diagonal:void 0}],cle=[{borderId:0,fillId:0,fontId:0,numFmtId:0}],lG=[{borderId:0,fillId:0,fontId:0,numFmtId:0,xfId:0}],ule=[{builtinId:0,name:"Normal",xfId:0}]},OJe=function(t){var r=t.alignment,e=t.borders,i=t.font,o=t.interior,s=t.numberFormat,a=t.protection,l=t.id,c=0,d=0,f=0,v=0;l&&(l=dle(l,Hz),null==aG[l]&&(o&&(c=function(t){var r=function(t){return t?oJe[t]||t:"none"}(t.pattern),e=pT(t.color),i=pT(t.patternColor),o=SF.findIndex(function(s){return!(s.patternType!=r||s.fgRgb!=e||s.bgRgb!=i)});return-1===o&&(o=SF.length,SF.push({patternType:r,fgRgb:e,bgRgb:i})),o}(o)),e&&(d=function(t){var s,a,l,c,d,f,v,w,r=t.borderBottom,e=t.borderTop,i=t.borderLeft,o=t.borderRight;i&&(l=oG(i.lineStyle,i.weight),v=pT(i.color)),o&&(c=oG(o.lineStyle,o.weight),w=pT(o.color)),r&&(s=oG(r.lineStyle,r.weight),d=pT(r.color)),e&&(a=oG(e.lineStyle,e.weight),f=pT(e.color));var x=xF.findIndex(function(I){var M=I.left,F=I.right,re=I.top,pe=I.bottom;if(!M&&(l||v)||!F&&(c||w)||!re&&(a||f)||!pe&&(s||d))return!1;var we=M||{},nt=F||{},bt=re||{},en=pe||{};return!(we.style!=l||we.color!=v||nt.style!=c||nt.color!=w||bt.style!=a||bt.color!=f||en.style!=s||en.color!=d)});return-1===x&&(x=xF.length,xF.push({left:{style:l,color:v},right:{style:c,color:w},top:{style:a,color:f},bottom:{style:s,color:d},diagonal:{style:void 0,color:void 0}})),x}(e)),i&&(f=function(t){var r=t.fontName,e=void 0===r?"Calibri":r,i=t.color,o=t.size,s=t.bold,a=t.italic,l=t.outline,c=t.shadow,d=t.strikeThrough,f=t.underline,v=t.family,w=t.verticalAlign,x=e&&ln.utf8_encode(e),I=pT(i),M=function(t){if(void 0!==t){var e=["Automatic","Roman","Swiss","Modern","Script","Decorative"].indexOf(t||"Automatic");return Math.max(e,0)}}(v),F=f?f.toLocaleLowerCase():void 0,re=w?w.toLocaleLowerCase():void 0,pe=TF.findIndex(function(we){return!(we.fontName!=x||we.color!=I||we.size!=o||we.bold!=s||we.italic!=a||we.outline!=l||we.shadow!=c||we.strikeThrough!=d||we.underline!=F||we.verticalAlign!=re||we.family!=M)});return-1===pe&&(pe=TF.length,TF.push({fontName:x,color:I,size:o,bold:s,italic:a,outline:l,shadow:c,strikeThrough:d,underline:F,verticalAlign:re,family:M?.toString()})),pe}(i)),s&&(v=function(t){if(t=ln.utf8_encode(t),ile[t])return ile[t];var r=eI.findIndex(function(e){return e.formatCode===t});return-1===r?eI.push({formatCode:t,numFmtId:r=eI.length+164}):r=eI[r].numFmtId,r}(s.format)),aG[l]=lG.length,lG.push({alignment:r,borderId:d||0,fillId:c||0,fontId:f||0,numFmtId:v||0,protection:a,xfId:0})))},FJe={getTemplate:function(t){var r=zQe.getTemplate(eI),e=QQe.getTemplate(TF.map(function(c){return sG(sG({},c),{size:null!=c.size?c.size:t})})),i=tJe.getTemplate(SF),o=fJe.getTemplate(xF),s=wJe.getTemplate(cle),a=SJe.getTemplate(lG),l=kJe.getTemplate(ule);return ple(),{name:"styleSheet",properties:{rawMap:{"mc:Ignorable":"x14ac x16r2 xr",xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac","xmlns:x16r2":"http://schemas.microsoft.com/office/spreadsheetml/2015/02/main","xmlns:xr":"http://schemas.microsoft.com/office/spreadsheetml/2014/revision"}},children:[r,e,i,o,s,a,l,{name:"tableStyles",properties:{rawMap:{count:0,defaultPivotStyle:"PivotStyleLight16",defaultTableStyle:"TableStyleMedium2"}}}]}}},PJe=function(t,r){return aG[dle(t,r)]||0};const NJe=FJe,BJe_getTemplate=function(t,r){var e=(r+1).toString();return{name:"sheet",properties:{rawMap:{name:t,sheetId:e,"r:id":"rId"+e}}}};var VJe={getTemplate:function(t){return{name:"sheets",children:t.map(function(r,e){return BJe_getTemplate(r,e)})}}};const jJe=VJe;var HJe={getTemplate:function(t){return{name:"workbook",properties:{prefixedAttributes:[{prefix:"xmlns:",map:{r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships"}}],rawMap:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},children:[jJe.getTemplate(t)]}}};const UJe=HJe;var YJe={getTemplate:function(t){var r=t.min,e=t.max,i=t.outlineLevel,o=t.s,s=t.width,a=t.hidden,l=t.bestFit,c=1,d="0";return s>1&&(c=function(t){return Math.ceil((t-12)/7+1)}(s),d="1"),{name:"col",properties:{rawMap:{min:r,max:e,outlineLevel:i??void 0,width:c,style:o,hidden:a?"1":"0",bestFit:l?"1":"0",customWidth:d}}}}};const WJe=YJe;var qJe={getTemplate:function(t,r,e){var i=t.ref,s=t.styleId,a=t.data||{type:"empty",value:null},l=a.type,c=a.value,d=l;"f"===l?d="str":l.charAt(0)===l.charAt(0).toUpperCase()&&(d=function(t){var r=t.charAt(0).toLowerCase();return"s"===r?"inlineStr":r}(l));var v,f={name:"c",properties:{rawMap:{r:i,t:"empty"===d?void 0:d,s:s?PJe(s,e):void 0}}};return"empty"===d?f:(v="str"===d&&"f"===l?[{name:"f",textNode:ln.escapeString(ln.utf8_encode(c))}]:"inlineStr"===d?[{name:"is",children:[{name:"t",textNode:ln.escapeString(ln.utf8_encode(c))}]}]:[{name:"v",textNode:c}],Object.assign({},f,{children:v}))}};const XJe=qJe;var KJe=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var o,a,i=e.call(t),s=[];try{for(;(void 0===r||r-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return s},QJe=function(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(KJe(arguments[r]));return t},ZJe=function(t){var r;return""!==(null===(r=t.data)||void 0===r?void 0:r.value)||void 0!==t.styleId},eZe={getTemplate:function(t,r,e){var i=t.index,o=t.collapsed,s=t.hidden,a=t.height,l=t.outlineLevel,c=t.cells,d=void 0===c?[]:c;return function(t,r){for(var e=[],i=0,o=0;o<t.length;o++)(s=t[o]).mergeAcross&&(e.push({pos:o,excelPos:i}),i+=s.mergeAcross),i++;if(e.length)for(o=e.length-1;o>=0;o--){for(var a=[],s=t[e[o].pos],l=1;l<=s.mergeAcross;l++)a.push({ref:""+yF(e[o].excelPos+1+l)+(r+1),styleId:s.styleId,data:{type:"empty",value:null}});a.length&&t.splice.apply(t,QJe([e[o].pos+1,0],a))}}(d,r),{name:"row",properties:{rawMap:{r:i,collapsed:o,hidden:s?"1":"0",ht:a,customHeight:null!=a?"1":"0",spans:"1:1",outlineLevel:l||void 0}},children:d.filter(ZJe).map(function(v,w){return XJe.getTemplate(v,w,e)})}}};const tZe=eZe,iZe_getTemplate=function(t){return{name:"mergeCell",properties:{rawMap:{ref:t}}}};var oZe=function(t){return!t||"Portrait"!==t&&"Landscape"!==t?"portrait":t.toLocaleLowerCase()},sZe=function(t){if(null==t)return 1;var e=["Letter","Letter Small","Tabloid","Ledger","Legal","Statement","Executive","A3","A4","A4 Small","A5","A6","B4","B5","Folio","Envelope","Envelope DL","Envelope C5","Envelope B5","Envelope C3","Envelope C4","Envelope C6","Envelope Monarch","Japanese Postcard","Japanese Double Postcard"].indexOf(t);return-1===e?1:e+1},mZe=function(t){return t.reduce(function(r,e){var i=function(t){return"Center"===t?"C":"Right"===t?"R":"L"}(e.position),o=function(t,r){return r&&(t+="&amp;&quot;",t+=r.fontName||"Calibri",t+=r.bold!==r.italic?r.bold?",Bold":",Italic":r.bold?",Bold Italic":",Regular",t+="&quot;",r.size&&(t+="&amp;"+r.size),r.strikeThrough&&(t+="&amp;S"),r.underline&&(t+="&amp;"+("Double"===r.underline?"E":"U")),r.color&&(t+="&amp;K"+r.color.replace("#","").toUpperCase())),t}(r+"&amp;"+i,e.font);return""+o+ln.escapeString(function(t){return ln.iterateObject({"&[Page]":"&P","&[Pages]":"&N","&[Date]":"&D","&[Time]":"&T","&[Tab]":"&A","&[Path]":"&Z","&[File]":"&F"},function(e,i){t=t.replace(e,i)}),t}(e.value))},"")},gZe=function(t){var e=[];return["all","first","even"].forEach(function(i){var o=t[i],s="all"===i?"odd":i;!o||!o.header&&!o.footer||ln.iterateObject(o,function(a,l){var c=""+a.charAt(0).toUpperCase()+a.slice(1);l&&e.push({name:""+s+c,properties:{rawMap:{"xml:space":"preserve"}},textNode:mZe(l)})})}),e},CZe={getTemplate:function(t){var e=t.currentSheet,i=t.margins,o=void 0===i?{}:i,s=t.pageSetup,a=t.headerFooterConfig,l=t.worksheet.table,c=l.rows,d=l.columns,f=d&&d.length?function(t,r){var e=[],i=[];t.forEach(function(a,l){var f,c=a.cells,d=0;a.index=l+1,c.forEach(function(v,w){var x=w+d+1,I=yF(x),M=l+1;if(v.mergeAcross){var F=yF(w+(d+=v.mergeAcross)+1);e.push(""+I+M+":"+F+M)}r[x-1]||(r[x-1]={});var re=v.collapsibleRanges;re&&re.forEach(function(pe){i.push([x+pe[0],x+pe[1]])}),(f=r[x-1]).min=x,f.max=x,v.ref=""+I+M})}),i.sort(function(a,l){return a[0]!==l[0]?a[0]-l[0]:l[1]-a[1]});var o=new Map,s=new Map;return i.filter(function(a){var l=a.toString();return!o.get(l)&&(o.set(l,!0),!0)}).forEach(function(a){var l=r.find(function(d){return d.min==a[0]&&d.max==a[1]}),c=s.get(a[0]);r.push({min:a[0],max:a[1],outlineLevel:c||1,width:(l||{width:100}).width}),s.set(a[0],(c||0)+1)}),e}(c,d):[],v=ln.compose(function(t){return t.push({name:"sheetPr",children:[{name:"outlinePr",properties:{rawMap:{summaryBelow:0}}}]}),t},function(t){return function(r){var e=t.reduce(function(i,o){return o.outlineLevel&&o.outlineLevel>i?o.outlineLevel:i},0);return r.push({name:"sheetFormatPr",properties:{rawMap:{baseColWidth:10,defaultRowHeight:16,outlineLevelRow:e||void 0}}}),r}}(c),function(t){return function(r){return t.length&&r.push({name:"cols",children:t.map(function(e){return WJe.getTemplate(e)})}),r}}(d),function(t,r){return function(e){return t.length&&e.push({name:"sheetData",children:t.map(function(i,o){return tZe.getTemplate(i,o,r)})}),e}}(c,e+1),function(t){return function(r){return t.length&&r.push({name:"mergeCells",properties:{rawMap:{count:t.length}},children:t.map(function(e){return iZe_getTemplate(e)})}),r}}(f),function(t){return function(r){var e=t.top,o=t.right,a=t.bottom,c=t.left,f=t.header,w=t.footer;return r.push({name:"pageMargins",properties:{rawMap:{bottom:void 0===a?.75:a,footer:void 0===w?.3:w,header:void 0===f?.3:f,left:void 0===c?.7:c,right:void 0===o?.7:o,top:void 0===e?.75:e}}}),r}}(o),function(t){return function(r){return t&&r.push({name:"pageSetup",properties:{rawMap:{horizontalDpi:0,verticalDpi:0,orientation:oZe(t.orientation),paperSize:sZe(t.pageSize)}}}),r}}(s),function(t){return function(r){return t?(r.push({name:"headerFooter",properties:{rawMap:{differentFirst:null!=t.first?1:0,differentOddEven:null!=t.even?1:0}},children:gZe(t)}),r):r}}(a),function(t){return function(r){return lu.worksheetImages.get(t)&&r.push({name:"drawing",properties:{rawMap:{"r:id":"rId1"}}}),r}}(e));return{name:"worksheet",properties:{prefixedAttributes:[{prefix:"xmlns:",map:{r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships"}}],rawMap:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},children:v([])}}};const wZe=CZe,SZe_getTemplate=function(t){return{name:"Relationship",properties:{rawMap:{Id:t.Id,Type:t.Type,Target:t.Target}}}};var xZe={getTemplate:function(t){return{name:"Relationships",properties:{rawMap:{xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"}},children:t.map(function(e){return SZe_getTemplate(e)})}}};const cG=xZe;var EZe=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var o,a,i=e.call(t),s=[];try{for(;(void 0===r||r-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return s},lu=function(){function t(){}return t.createExcel=function(r,e,i,o,s){return this.addSheetName(e),function(t,r){1===(Hz=r)&&ple(),t.forEach(OJe)}(r,this.sheetNames.length),this.createWorksheet(e,i,o,s)},t.buildImageMap=function(r,e,i,o,s){var a=this.sheetNames.length,l=this.images.get(r.id);(!r.position||!r.position.row||!r.position.column)&&(r.position||(r.position={}),r.position=Object.assign({},r.position,{row:e,column:o.indexOf(i)+1}));var c=r;if(function(t,r){var e=t.position,i=e.colSpan,o=e.column;if(t.width)if(i)for(var s=r.slice(o-1,o+i-1),a=0,l=0;l<s.length;l++){var c=s[l].getActualWidth();if(t.width<a+c){t.position.colSpan=l+1,t.totalWidth=t.width,t.width=t.totalWidth-a;break}a+=c}else t.totalWidth=t.width}(c,o),function(t,r){var e=t.position,i=e.rowSpan,o=e.row;if(t.height)if(i)for(var s=0,a=0,l=o;l<o+i;l++){var c=eQe(iG(l,r)||20);if(t.height<s+c){t.position.rowSpan=a+1,t.totalHeight=t.height,t.height=t.totalHeight-s;break}s+=c,a++}else t.totalHeight=t.height}(c,s),l){var d=l.find(function(f){return f.sheetId===a});d?d.image.push(c):l.push({sheetId:a,image:[c]})}else this.images.set(c.id,[{sheetId:a,image:[c]}]),this.workbookImageIds.set(c.id,{type:c.imageType,index:this.workbookImageIds.size});this.buildSheetImageMap(a,c)},t.buildSheetImageMap=function(r,e){var i=this.worksheetImageIds.get(r);i||this.worksheetImageIds.set(r,i=new Map);var o=this.worksheetImages.get(r);o?(o.push(e),i.get(e.id)||i.set(e.id,{index:i.size,type:e.imageType})):(this.worksheetImages.set(r,[e]),i.set(e.id,{index:0,type:e.imageType}))},t.addSheetName=function(r){for(var e=ln.escapeString(r.name)||"",i="";-1!==this.sheetNames.indexOf(""+e+i);)if(""===i)i="_1";else{var o=parseInt(i.slice(1),10);i="_"+(o+1)}r.name=""+e+i,this.sheetNames.push(r.name)},t.getStringPosition=function(r){return this.sharedStrings.has(r)?this.sharedStrings.get(r):(this.sharedStrings.set(r,this.sharedStrings.size),this.sharedStrings.size-1)},t.resetFactory=function(){this.sharedStrings=new Map,this.images=new Map,this.worksheetImages=new Map,this.workbookImageIds=new Map,this.worksheetImageIds=new Map,this.sheetNames=[],this.factoryMode=D_.SINGLE_SHEET},t.createWorkbook=function(){return Hv(UJe.getTemplate(this.sheetNames))},t.createStylesheet=function(r){return Hv(NJe.getTemplate(r))},t.createSharedStrings=function(){return Hv(UQe.getTemplate(this.sharedStrings))},t.createCore=function(r){return Hv(cQe.getTemplate(r))},t.createContentTypes=function(r){return Hv(mQe.getTemplate(r))},t.createRels=function(){var r=cG.getTemplate([{Id:"rId1",Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Target:"xl/workbook.xml"},{Id:"rId2",Type:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",Target:"docProps/core.xml"}]);return Hv(r)},t.createTheme=function(){return Hv(VQe_getTemplate())},t.createWorkbookRels=function(r){var e=new Array(r).fill(void 0).map(function(o,s){return{Id:"rId"+(s+1),Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",Target:"worksheets/sheet"+(s+1)+".xml"}}),i=cG.getTemplate(function(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(EZe(arguments[r]));return t}(e,[{Id:"rId"+(r+1),Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Target:"theme/theme1.xml"},{Id:"rId"+(r+2),Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Target:"styles.xml"},{Id:"rId"+(r+3),Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",Target:"sharedStrings.xml"}]));return Hv(i)},t.createDrawing=function(r){return Hv(SQe.getTemplate({sheetIndex:r}))},t.createDrawingRel=function(r){var e=this,i=this.worksheetImageIds.get(r),o=[];return i.forEach(function(s,a){o.push({Id:"rId"+(s.index+1),Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:"../media/image"+(e.workbookImageIds.get(a).index+1)+"."+s.type})}),Hv(cG.getTemplate(o))},t.createWorksheetDrawingRel=function(r){var e=cG.getTemplate([{Id:"rId1",Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:"../drawings/drawing"+(r+1)+".xml"}]);return Hv(e)},t.createWorksheet=function(r,e,i,o){return Hv(wZe.getTemplate({worksheet:r,currentSheet:this.sheetNames.length-1,margins:e,pageSetup:i,headerFooterConfig:o}))},t.sharedStrings=new Map,t.sheetNames=[],t.images=new Map,t.worksheetImages=new Map,t.workbookImageIds=new Map,t.worksheetImageIds=new Map,t.factoryMode=D_.SINGLE_SHEET,t}(),kZe=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),IZe=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return kZe(r,t),r.prototype.createExcel=function(e){var s=this.config;return lu.createExcel(this.excelStyles,e,s.margins,s.pageSetup,s.headerFooterConfig)},r.prototype.getDataTypeForValue=function(e){return void 0===e?"empty":ln.isNumeric(e)?"n":"s"},r.prototype.getType=function(e,i,o){if(this.isFormula(o))return"f";if(i&&i.dataType)switch(i.dataType.toLocaleLowerCase()){case"formula":return"f";case"string":return"s";case"number":return"n";case"datetime":return"d";case"error":return"e";case"boolean":return"b";default:console.warn("AG Grid: Unrecognized data type for excel export ["+i.id+".dataType="+i.dataType+"]")}return e},r.prototype.addImage=function(e,i,o){if(this.config.addImageToCell){var s=this.config.addImageToCell(e,i,o);if(s)return lu.buildImageMap(s.image,e,i,this.columnsToExport,this.config.rowHeight),s}},r.prototype.createCell=function(e,i,o){var s=this.getStyleById(e),a=this.getType(i,s,o)||i;return{styleId:s?e:void 0,data:{type:a,value:this.getCellValue(a,o)}}},r.prototype.createMergedCell=function(e,i,o,s){var a=o??"";return{styleId:this.getStyleById(e)?e:void 0,data:{type:i,value:"s"===i?lu.getStringPosition(a).toString():o},mergeAcross:s}},r.prototype.getCellValue=function(e,i){if(null==i)return lu.getStringPosition("").toString();switch(e){case"s":return""===i?"":lu.getStringPosition(i).toString();case"f":return i.slice(1);case"n":return Number(i).toString();default:return i}},r}(ole),AZe=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),uG=function(){return uG=Object.assign||function(t){for(var r,e=1,i=arguments.length;e<i;e++)for(var o in r=arguments[e])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t},uG.apply(this,arguments)},hT=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},Uz=function(t){var r=t.data,e=t.fontSize,i=void 0===e?11:e,o=t.author,s=void 0===o?"AG Grid":o,a=lu.images.size>0;if(vf.addFolders(["_rels/","docProps/","xl/","xl/theme/","xl/_rels/","xl/worksheets/"]),a){vf.addFolders(["xl/worksheets/_rels","xl/drawings/","xl/drawings/_rels","xl/media/"]);var l=0;lu.images.forEach(function(v){var w=v[0].image[0];vf.addFile("xl/media/image"+ ++l+"."+w.imageType,w.base64,!0)})}if(!r||0===r.length)return console.warn("AG Grid: Invalid params supplied to getMultipleSheetsAsExcel() - `ExcelExportParams.data` is empty."),void lu.resetFactory();var c=r.length,d=0;return r.forEach(function(v,w){vf.addFile("xl/worksheets/sheet"+(w+1)+".xml",v),a&&lu.worksheetImages.get(w)&&RZe(w,d++)}),vf.addFile("xl/workbook.xml",lu.createWorkbook()),vf.addFile("xl/styles.xml",lu.createStylesheet(i)),vf.addFile("xl/sharedStrings.xml",lu.createSharedStrings()),vf.addFile("xl/theme/theme1.xml",lu.createTheme()),vf.addFile("xl/_rels/workbook.xml.rels",lu.createWorkbookRels(c)),vf.addFile("docProps/core.xml",lu.createCore(s)),vf.addFile("[Content_Types].xml",lu.createContentTypes(c)),vf.addFile("_rels/.rels",lu.createRels()),lu.resetFactory(),vf.getContent(t.mimeType||"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")},RZe=function(t,r){var e="xl/drawings",i=e+"/drawing"+(r+1)+".xml",s="xl/worksheets/_rels/sheet"+(t+1)+".xml.rels";vf.addFile(e+"/_rels/drawing"+(r+1)+".xml.rels",lu.createDrawingRel(t)),vf.addFile(i,lu.createDrawing(t)),vf.addFile(s,lu.createWorksheetDrawingRel(r))},OZe=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.exportMode="xlsx",e}return AZe(r,t),r.prototype.postConstruct=function(){this.setBeans({gridSerializer:this.gridSerializer,gridOptionsWrapper:this.gridOptionsWrapper})},r.prototype.getMergedParams=function(e){var i=this.gridOptionsWrapper.getDefaultExportParams("excel");return Object.assign({},i,e)},r.prototype.getData=function(e){return this.setExportMode(e.exportMode||"xlsx"),t.prototype.getData.call(this,e)},r.prototype.export=function(e){if(this.isExportSuppressed())return console.warn("AG Grid: Export cancelled. Export is not allowed as per your configuration."),"";var i=this.getMergedParams(e),o=this.getData(i),a=this.packageFile({data:[o],fontSize:i.fontSize,author:i.author,mimeType:i.mimeType});return a&&GY.download(this.getFileName(i.fileName),a),o},r.prototype.exportDataAsExcel=function(e){return this.export(e)},r.prototype.getDataAsExcel=function(e){var i=this.getMergedParams(e),o=this.getData(i);return e&&"xml"===e.exportMode?o:this.packageFile({data:[o],fontSize:i.fontSize,author:i.author,mimeType:i.mimeType})},r.prototype.setFactoryMode=function(e,i){void 0===i&&(i="xlsx"),("xlsx"===i?lu:Nz).factoryMode=e},r.prototype.getFactoryMode=function(e){return("xlsx"===e?lu:Nz).factoryMode},r.prototype.getSheetDataForExcel=function(e){var i=this.getMergedParams(e);return this.getData(i)},r.prototype.getMultipleSheetsAsExcel=function(e){return Uz(e)},r.prototype.exportMultipleSheetsAsExcel=function(e){return function(t){var r=t.fileName,e=void 0===r?"export.xlsx":r,i=Uz(t);i&&GY.download(e,i)}(e)},r.prototype.getDefaultFileName=function(){return"export."+this.getExportMode()},r.prototype.getDefaultFileExtension=function(){return this.getExportMode()},r.prototype.createSerializingSession=function(e){var i=this,o=i.columnModel,s=i.valueService,a=i.gridOptionsWrapper,l="xlsx"===this.getExportMode(),c="ag-grid";null!=e.sheetName&&(c=ln.utf8_encode(e.sheetName.toString().substr(0,31)));var d=uG(uG({},e),{sheetName:c,columnModel:o,valueService:s,gridOptionsWrapper:a,headerRowHeight:e.headerRowHeight||e.rowHeight,baseExcelStyles:this.gridOptions.excelStyles||[],styleLinker:this.styleLinker.bind(this)});return new(l?IZe:aQe)(d)},r.prototype.styleLinker=function(e,i,o,s,a){if(e===Sk.HEADER)return["header"];if(e===Sk.HEADER_GROUPING)return["header","headerGroup"];var l=this.gridOptions.excelStyles,c=["cell"];if(!l||!l.length)return c;var d=l.map(function(f){return f.id});return this.stylingService.processAllCellClasses(s.getColDef(),{value:o,data:a.data,node:a,colDef:s.getColDef(),rowIndex:i,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()},function(f){d.indexOf(f)>-1&&c.push(f)}),c.sort(function(f,v){return d.indexOf(f)<d.indexOf(v)?-1:1})},r.prototype.isExportSuppressed=function(){return this.gridOptionsWrapper.isSuppressExcelExport()},r.prototype.setExportMode=function(e){this.exportMode=e},r.prototype.getExportMode=function(){return this.exportMode},r.prototype.packageFile=function(e){return"xml"===this.getExportMode()?new Blob(["\ufeff",e.data[0]],{type:e.mimeType||"application/vnd.ms-excel"}):Uz(e)},hT([Xe("columnModel")],r.prototype,"columnModel",void 0),hT([Xe("valueService")],r.prototype,"valueService",void 0),hT([Xe("gridOptions")],r.prototype,"gridOptions",void 0),hT([Xe("stylingService")],r.prototype,"stylingService",void 0),hT([Xe("gridSerializer")],r.prototype,"gridSerializer",void 0),hT([Xe("gridOptionsWrapper")],r.prototype,"gridOptionsWrapper",void 0),hT([qi],r.prototype,"postConstruct",null),hT([Kr("excelCreator")],r)}(Mie),FZe={moduleName:mo.ExcelExportModule,beans:[OZe,Pie,Fie],dependantModules:[BY,rg]},PZe=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),EF=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},Ub=function(t){return t[t.EXPANDED=0]="EXPANDED",t[t.COLLAPSED=1]="COLLAPSED",t[t.INDETERMINATE=2]="INDETERMINATE",t}(Ub||{}),LZe=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return PZe(r,t),r.prototype.preConstruct=function(){this.setTemplate('<div class="ag-filter-toolpanel-search" role="presentation">\n                <div ref="eExpand" class="ag-filter-toolpanel-expand"></div>\n                <ag-input-text-field ref="eFilterTextField" class="ag-filter-toolpanel-search-input"></ag-input-text-field>\n            </div>')},r.prototype.postConstruct=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc();this.eFilterTextField.onValueChange(this.onSearchTextChanged.bind(this)),this.eFilterTextField.setInputAriaLabel(e("ariaFilterColumnsInput","Filter Columns Input")),this.createExpandIcons(),this.setExpandState(Ub.EXPANDED),this.addManagedListener(this.eExpand,"click",this.onExpandClicked.bind(this)),this.addManagedListener(this.eventService,Et.EVENT_NEW_COLUMNS_LOADED,this.showOrHideOptions.bind(this))},r.prototype.init=function(e){this.params=e,this.columnModel.isReady()&&this.showOrHideOptions()},r.prototype.createExpandIcons=function(){this.eExpand.appendChild(this.eExpandChecked=ln.createIconNoSpan("columnSelectOpen",this.gridOptionsWrapper)),this.eExpand.appendChild(this.eExpandUnchecked=ln.createIconNoSpan("columnSelectClosed",this.gridOptionsWrapper)),this.eExpand.appendChild(this.eExpandIndeterminate=ln.createIconNoSpan("columnSelectIndeterminate",this.gridOptionsWrapper))},r.prototype.showOrHideOptions=function(){var e=!this.params.suppressFilterSearch,i=!this.params.suppressExpandAll,o=this.gridOptionsWrapper.getLocaleTextFunc();this.eFilterTextField.setInputPlaceholder(o("searchOoo","Search..."));var a=this.columnModel.getAllGridColumns().some(function(l){return l.getOriginalParent()&&l.isFilterAllowed()});ln.setDisplayed(this.eFilterTextField.getGui(),e),ln.setDisplayed(this.eExpand,i&&a)},r.prototype.onSearchTextChanged=function(){var e=this;this.onSearchTextChangedDebounced||(this.onSearchTextChangedDebounced=ln.debounce(function(){e.dispatchEvent({type:"searchChanged",searchText:e.eFilterTextField.getValue()})},300)),this.onSearchTextChangedDebounced()},r.prototype.onExpandClicked=function(){this.dispatchEvent(this.currentExpandState===Ub.EXPANDED?{type:"collapseAll"}:{type:"expandAll"})},r.prototype.setExpandState=function(e){this.currentExpandState=e,ln.setDisplayed(this.eExpandChecked,this.currentExpandState===Ub.EXPANDED),ln.setDisplayed(this.eExpandUnchecked,this.currentExpandState===Ub.COLLAPSED),ln.setDisplayed(this.eExpandIndeterminate,this.currentExpandState===Ub.INDETERMINATE)},EF([Xe("columnModel")],r.prototype,"columnModel",void 0),EF([Ti("eExpand")],r.prototype,"eExpand",void 0),EF([Ti("eFilterTextField")],r.prototype,"eFilterTextField",void 0),EF([vh],r.prototype,"preConstruct",null),EF([qi],r.prototype,"postConstruct",null),r}(Do),NZe=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),fT=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},hle=function(t){function r(e){void 0===e&&(e=!1);var i=t.call(this,r.TEMPLATE)||this;return i.expanded=!1,i.hideHeader=e,i}return NZe(r,t),r.prototype.postConstruct=function(){this.eExpandChecked=ln.createIconNoSpan("columnSelectOpen",this.gridOptionsWrapper),this.eExpandUnchecked=ln.createIconNoSpan("columnSelectClosed",this.gridOptionsWrapper),this.eExpand.appendChild(this.eExpandChecked),this.eExpand.appendChild(this.eExpandUnchecked)},r.prototype.setColumn=function(e){var i=this;this.column=e,this.eFilterName.innerText=this.columnModel.getDisplayNameForColumn(this.column,"filterToolPanel",!1)||"",this.addManagedListener(this.eFilterToolPanelHeader,"click",this.toggleExpanded.bind(this)),this.addManagedListener(this.eFilterToolPanelHeader,"keydown",function(o){o.key===gi.ENTER&&i.toggleExpanded()}),this.addManagedListener(this.eventService,Et.EVENT_FILTER_OPENED,this.onFilterOpened.bind(this)),this.addInIcon("filter",this.eFilterIcon,this.column),this.eFilterIcon.classList.toggle("ag-hidden",!this.isFilterActive()),this.eExpandChecked.classList.add("ag-hidden"),this.hideHeader?(this.eFilterToolPanelHeader.classList.toggle("ag-hidden",!0),this.eFilterToolPanelHeader.removeAttribute("tabindex")):this.eFilterToolPanelHeader.setAttribute("tabindex","0"),this.addManagedListener(this.column,ms.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this))},r.prototype.getColumn=function(){return this.column},r.prototype.getColumnFilterName=function(){return this.columnModel.getDisplayNameForColumn(this.column,"filterToolPanel",!1)},r.prototype.addCssClassToTitleBar=function(e){this.eFilterToolPanelHeader.classList.add(e)},r.prototype.addInIcon=function(e,i,o){if(null!=i){var s=ln.createIconNoSpan(e,this.gridOptionsWrapper,o);i.appendChild(s)}},r.prototype.isFilterActive=function(){return this.filterManager.isFilterActive(this.column)},r.prototype.onFilterChanged=function(){this.eFilterIcon.classList.toggle("ag-hidden",!this.isFilterActive()),this.dispatchEvent({type:ms.EVENT_FILTER_CHANGED})},r.prototype.toggleExpanded=function(){this.expanded?this.collapse():this.expand()},r.prototype.expand=function(){var i,e=this;if(!this.expanded){this.expanded=!0,ln.setAriaExpanded(this.eFilterToolPanelHeader,!0);var o=ln.loadTemplate('<div class="ag-filter-toolpanel-instance-filter"></div>'),s=null===(i=this.filterManager.getOrCreateFilterWrapper(this.column,"TOOLBAR"))||void 0===i?void 0:i.filterPromise;s&&s.then(function(a){e.underlyingFilter=a,a&&(o.appendChild(a.getGui()),e.agFilterToolPanelBody.appendChild(o),a.afterGuiAttached&&a.afterGuiAttached({container:"toolPanel"}))}),ln.setDisplayed(this.eExpandChecked,!0),ln.setDisplayed(this.eExpandUnchecked,!1)}},r.prototype.collapse=function(){this.expanded&&(this.expanded=!1,ln.setAriaExpanded(this.eFilterToolPanelHeader,!1),this.agFilterToolPanelBody.removeChild(this.agFilterToolPanelBody.children[0]),ln.setDisplayed(this.eExpandChecked,!1),ln.setDisplayed(this.eExpandUnchecked,!0))},r.prototype.refreshFilter=function(){if(this.expanded){var e=this.underlyingFilter;e&&"function"==typeof e.refreshVirtualList&&e.refreshVirtualList()}},r.prototype.onFilterOpened=function(e){"COLUMN_MENU"===e.source&&e.column===this.column&&this.expanded&&this.collapse()},r.TEMPLATE='\n        <div class="ag-filter-toolpanel-instance">\n            <div class="ag-filter-toolpanel-header ag-filter-toolpanel-instance-header" ref="eFilterToolPanelHeader" role="button" aria-expanded="false">\n                <div ref="eExpand" class="ag-filter-toolpanel-expand"></div>\n                <span ref="eFilterName" class="ag-header-cell-text"></span>\n                <span ref="eFilterIcon" class="ag-header-icon ag-filter-icon ag-filter-toolpanel-instance-header-icon" aria-hidden="true"></span>\n            </div>\n            <div class="ag-filter-toolpanel-instance-body ag-filter" ref="agFilterToolPanelBody"></div>\n        </div>',fT([Ti("eFilterToolPanelHeader")],r.prototype,"eFilterToolPanelHeader",void 0),fT([Ti("eFilterName")],r.prototype,"eFilterName",void 0),fT([Ti("agFilterToolPanelBody")],r.prototype,"agFilterToolPanelBody",void 0),fT([Ti("eFilterIcon")],r.prototype,"eFilterIcon",void 0),fT([Ti("eExpand")],r.prototype,"eExpand",void 0),fT([Xe("filterManager")],r.prototype,"filterManager",void 0),fT([Xe("columnModel")],r.prototype,"columnModel",void 0),fT([qi],r.prototype,"postConstruct",null),r}(Do),GZe=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),dG=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},tI=function(t){function r(e,i,o,s,a){var l=t.call(this)||this;return l.columnGroup=e,l.childFilterComps=i,l.depth=s,l.expandedCallback=o,l.showingColumn=a,l}return GZe(r,t),r.prototype.preConstruct=function(){this.setTemplate(r.TEMPLATE,{filterGroupComp:{cssIdentifier:"filter-toolpanel",direction:"vertical"}})},r.prototype.init=function(){var e=this;this.setGroupTitle(),this.filterGroupComp.setAlignItems("stretch"),this.filterGroupComp.addCssClass("ag-filter-toolpanel-group-level-"+this.depth),this.filterGroupComp.addCssClassToTitleBar("ag-filter-toolpanel-group-level-"+this.depth+"-header"),this.childFilterComps.forEach(function(i){e.filterGroupComp.addItem(i),i.addCssClassToTitleBar("ag-filter-toolpanel-group-level-"+(e.depth+1)+"-header")}),this.refreshFilterClass(),this.addExpandCollapseListeners(),this.addFilterChangedListeners(),this.setupTooltip()},r.prototype.setupTooltip=function(){var e=this;if(this.showingColumn){var i=function(){var o=e.columnGroup.getColDef().headerTooltip;e.setTooltip(o)};i(),this.addManagedListener(this.eventService,Et.EVENT_NEW_COLUMNS_LOADED,i)}},r.prototype.getTooltipParams=function(){var e=t.prototype.getTooltipParams.call(this);return e.location="filterToolPanelColumnGroup",e},r.prototype.addCssClassToTitleBar=function(e){this.filterGroupComp.addCssClassToTitleBar(e)},r.prototype.refreshFilters=function(){this.childFilterComps.forEach(function(e){e instanceof r?e.refreshFilters():e.refreshFilter()})},r.prototype.isColumnGroup=function(){return this.columnGroup instanceof Zr},r.prototype.isExpanded=function(){return this.filterGroupComp.isExpanded()},r.prototype.getChildren=function(){return this.childFilterComps},r.prototype.getFilterGroupName=function(){return this.filterGroupName?this.filterGroupName:""},r.prototype.getFilterGroupId=function(){return this.columnGroup.getId()},r.prototype.hideGroupItem=function(e,i){this.filterGroupComp.hideItem(e,i)},r.prototype.hideGroup=function(e){this.addOrRemoveCssClass("ag-hidden",e)},r.prototype.forEachToolPanelFilterChild=function(e){this.childFilterComps.forEach(function(i){i instanceof hle&&e(i)})},r.prototype.addExpandCollapseListeners=function(){var e=this,i=this.isColumnGroup()?function(){return e.expandedCallback()}:function(){return e.forEachToolPanelFilterChild(function(s){return s.expand()})},o=this.isColumnGroup()?function(){return e.expandedCallback()}:function(){return e.forEachToolPanelFilterChild(function(s){return s.collapse()})};this.addManagedListener(this.filterGroupComp,s3.EVENT_EXPANDED,i),this.addManagedListener(this.filterGroupComp,s3.EVENT_COLLAPSED,o)},r.prototype.getColumns=function(){return this.columnGroup instanceof Zr?this.columnGroup.getLeafColumns():[this.columnGroup]},r.prototype.addFilterChangedListeners=function(){var e=this;this.getColumns().forEach(function(i){e.addManagedListener(i,ms.EVENT_FILTER_CHANGED,function(){return e.refreshFilterClass()})}),this.columnGroup instanceof Zr||this.addManagedListener(this.eventService,Et.EVENT_FILTER_OPENED,this.onFilterOpened.bind(this))},r.prototype.refreshFilterClass=function(){var e=this.getColumns();this.filterGroupComp.addOrRemoveCssClass("ag-has-filter",e.some(function(o){return o.isFilterActive()}))},r.prototype.onFilterOpened=function(e){"COLUMN_MENU"===e.source&&e.column===this.columnGroup&&this.isExpanded()&&this.collapse()},r.prototype.expand=function(){this.filterGroupComp.toggleGroupExpand(!0)},r.prototype.collapse=function(){this.filterGroupComp.toggleGroupExpand(!1)},r.prototype.setGroupTitle=function(){this.filterGroupName=this.columnGroup instanceof Zr?this.getColumnGroupName(this.columnGroup):this.getColumnName(this.columnGroup),this.filterGroupComp.setTitle(this.filterGroupName||"")},r.prototype.getColumnGroupName=function(e){return this.columnModel.getDisplayNameForProvidedColumnGroup(null,e,"filterToolPanel")},r.prototype.getColumnName=function(e){return this.columnModel.getDisplayNameForColumn(e,"filterToolPanel",!1)},r.prototype.destroyFilters=function(){this.childFilterComps=this.destroyBeans(this.childFilterComps),ln.clearElement(this.getGui())},r.prototype.destroy=function(){this.destroyFilters(),t.prototype.destroy.call(this)},r.TEMPLATE='<div class="ag-filter-toolpanel-group-wrapper">\n            <ag-group-component ref="filterGroupComp"></ag-group-component>\n        </div>',dG([Ti("filterGroupComp")],r.prototype,"filterGroupComp",void 0),dG([Xe("columnModel")],r.prototype,"columnModel",void 0),dG([vh],r.prototype,"preConstruct",null),dG([qi],r.prototype,"init",null),r}(Do),BZe=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),pG=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},VZe=function(t){function r(){var e=t.call(this,r.TEMPLATE)||this;return e.initialised=!1,e.filterGroupComps=[],e}return BZe(r,t),r.prototype.init=function(e){var i=this;this.initialised=!0;var o={suppressExpandAll:!1,suppressFilterSearch:!1,suppressSyncLayoutWithGrid:!1,api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()};ln.mergeDeep(o,e),this.params=o,this.params.suppressSyncLayoutWithGrid||this.addManagedListener(this.eventService,Et.EVENT_COLUMN_MOVED,function(){return i.onColumnsChanged()}),this.addManagedListener(this.eventService,Et.EVENT_NEW_COLUMNS_LOADED,function(){return i.onColumnsChanged()}),this.addManagedListener(this.eventService,Et.EVENT_TOOL_PANEL_VISIBLE_CHANGED,function(s){"filters"===s.source&&i.refreshFilters()}),this.columnModel.isReady()&&this.onColumnsChanged()},r.prototype.onColumnsChanged=function(){var e=this.columnModel.isPivotMode();this.params.suppressSyncLayoutWithGrid||e?this.buildTreeFromProvidedColumnDefs():this.syncFilterLayout()},r.prototype.syncFilterLayout=function(){this.toolPanelColDefService.syncLayoutWithGrid(this.setFiltersLayout.bind(this))},r.prototype.buildTreeFromProvidedColumnDefs=function(){var e=this;this.destroyFilters();var i=this.columnModel.getPrimaryColumnTree();this.filterGroupComps=this.recursivelyAddComps(i,0);var o=this.filterGroupComps.length;o&&(this.filterGroupComps.forEach(function(s){return e.appendChild(s)}),this.setFirstAndLastVisible(0,o-1)),ln.exists(this.searchFilterText)&&this.searchFilters(this.searchFilterText),this.fireExpandedEvent()},r.prototype.setFiltersLayout=function(e){var i=this;this.destroyFilters();var o=this.toolPanelColDefService.createColumnTree(e);this.filterGroupComps=this.recursivelyAddComps(o,0);var s=this.filterGroupComps.length;s&&(this.filterGroupComps.forEach(function(a){return i.appendChild(a)}),this.setFirstAndLastVisible(0,s-1)),ln.exists(this.searchFilterText)&&this.searchFilters(this.searchFilterText),this.fireExpandedEvent()},r.prototype.recursivelyAddComps=function(e,i){var o=this;return ln.flatten(e.map(function(s){if(s instanceof Zr)return ln.flatten(o.recursivelyAddFilterGroupComps(s,i));var a=s;if(!o.shouldDisplayFilter(a))return[];var c=new hle(0===i);if(o.getContext().createBean(c),c.setColumn(a),i>0)return c;var d=o.createBean(new tI(a,[c],o.onGroupExpanded.bind(o),i,!0));return d.addCssClassToTitleBar("ag-filter-toolpanel-header"),d.collapse(),d}))},r.prototype.recursivelyAddFilterGroupComps=function(e,i){if(this.filtersExistInChildren(e.getChildren())){var o=e.getColGroupDef();if(o&&o.suppressFiltersToolPanel)return[];var s=e.isPadding()?i:i+1,a=ln.flatten(this.recursivelyAddComps(e.getChildren(),s));if(e.isPadding())return a;var l=new tI(e,a,this.onGroupExpanded.bind(this),i,!1);return this.getContext().createBean(l),l.addCssClassToTitleBar("ag-filter-toolpanel-header"),[l]}},r.prototype.filtersExistInChildren=function(e){var i=this;return e.some(function(o){return o instanceof Zr?i.filtersExistInChildren(o.getChildren()):i.shouldDisplayFilter(o)})},r.prototype.shouldDisplayFilter=function(e){var i=e.getColDef()&&e.getColDef().suppressFiltersToolPanel;return e.isFilterAllowed()&&!i},r.prototype.refresh=function(){},r.prototype.setVisible=function(e){t.prototype.setDisplayed.call(this,e),e&&!this.initialised&&this.init(this.params)},r.prototype.expandFilterGroups=function(e,i){var o=[],s=function(l){var c=l.getFilterGroupId();(!i||ln.includes(i,c))&&(e&&l.isColumnGroup()?l.expand():l.collapse(),o.push(c)),l.getChildren().forEach(function(f){f instanceof tI&&s(f)})};if(this.filterGroupComps.forEach(s),this.onGroupExpanded(),i){var a=i.filter(function(l){return o.indexOf(l)<0});a.length>0&&console.warn("AG Grid: unable to find groups for these supplied groupIds:",a)}},r.prototype.expandFilters=function(e,i){var o=[],s=function(l){if(l instanceof tI){var c=!1;return l.getChildren().forEach(function(v){s(v)&&(e?(l.expand(),c=!0):l.isColumnGroup()||l.collapse())}),c}var d=l.getColumn().getColId(),f=!i||ln.includes(i,d);return f&&(e?l.expand():l.collapse(),o.push(d)),f};if(this.filterGroupComps.forEach(s),this.onGroupExpanded(),i){var a=i.filter(function(l){return o.indexOf(l)<0});a.length>0&&console.warn("AG Grid: unable to find columns for these supplied colIds:",a)}},r.prototype.onGroupExpanded=function(){this.fireExpandedEvent()},r.prototype.fireExpandedEvent=function(){var e=0,i=0,o=function(a){a.isColumnGroup()&&(a.isExpanded()?e++:i++,a.getChildren().forEach(function(l){l instanceof tI&&o(l)}))};this.filterGroupComps.forEach(o),this.dispatchEvent({type:"groupExpanded",state:e>0&&i>0?Ub.INDETERMINATE:i>0?Ub.COLLAPSED:Ub.EXPANDED})},r.prototype.performFilterSearch=function(e){this.searchFilterText=ln.exists(e)?e.toLowerCase():null,this.searchFilters(this.searchFilterText)},r.prototype.searchFilters=function(e){var s,a,i=function(l){return!ln.exists(e)||-1!==l.toLowerCase().indexOf(e)},o=function(l,c){if(!(l instanceof tI))return i(l.getColumnFilterName()||"");var d=l.getChildren(),f=i(l.getFilterGroupName()),v=c||f;if(v){l.hideGroup(!1);for(var w=0;w<d.length;w++)o(d[w],v),l.hideGroupItem(!1,w);return!0}var x=!1;return d.forEach(function(I,M){var F=o(I,c);l.hideGroupItem(!F,M),F&&(x=!0)}),l.hideGroup(!x),x};this.filterGroupComps.forEach(function(l,c){o(l,!1),void 0===s?l.containsCssClass("ag-hidden")||(s=c,a=c):!l.containsCssClass("ag-hidden")&&a!==c&&(a=c)}),this.setFirstAndLastVisible(s,a)},r.prototype.setFirstAndLastVisible=function(e,i){this.filterGroupComps.forEach(function(o,s){o.removeCssClass("ag-first-group-visible"),o.removeCssClass("ag-last-group-visible"),s===e&&o.addCssClass("ag-first-group-visible"),s===i&&o.addCssClass("ag-last-group-visible")})},r.prototype.refreshFilters=function(){this.filterGroupComps.forEach(function(e){return e.refreshFilters()})},r.prototype.destroyFilters=function(){this.filterGroupComps=this.destroyBeans(this.filterGroupComps),ln.clearElement(this.getGui())},r.prototype.destroy=function(){this.destroyFilters(),t.prototype.destroy.call(this)},r.TEMPLATE='<div class="ag-filter-list-panel"></div>',pG([Xe("gridApi")],r.prototype,"gridApi",void 0),pG([Xe("columnApi")],r.prototype,"columnApi",void 0),pG([Xe("toolPanelColDefService")],r.prototype,"toolPanelColDefService",void 0),pG([Xe("columnModel")],r.prototype,"columnModel",void 0),r}(Do),jZe=function(){var t=function(r,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])})(r,e)};return function(r,e){function i(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}}(),hG=function(t,r,e,i){var a,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(r,e,s):a(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s},HZe=function(t){function r(){var e=t.call(this,r.TEMPLATE)||this;return e.initialised=!1,e.listenerDestroyFuncs=[],e}return jZe(r,t),r.prototype.init=function(e){this.initialised&&(this.listenerDestroyFuncs.forEach(function(a){return a()}),this.listenerDestroyFuncs=[]),this.initialised=!0;var i={suppressExpandAll:!1,suppressFilterSearch:!1,suppressSyncLayoutWithGrid:!1,api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()};ln.mergeDeep(i,e),this.params=i,this.filtersToolPanelHeaderPanel.init(this.params),this.filtersToolPanelListPanel.init(this.params),this.params.suppressExpandAll&&this.params.suppressFilterSearch&&this.filtersToolPanelHeaderPanel.setDisplayed(!1),this.listenerDestroyFuncs.push(this.addManagedListener(this.filtersToolPanelHeaderPanel,"expandAll",this.onExpandAll.bind(this)),this.addManagedListener(this.filtersToolPanelHeaderPanel,"collapseAll",this.onCollapseAll.bind(this)),this.addManagedListener(this.filtersToolPanelHeaderPanel,"searchChanged",this.onSearchChanged.bind(this)),this.addManagedListener(this.filtersToolPanelListPanel,"groupExpanded",this.onGroupExpanded.bind(this)))},r.prototype.setVisible=function(e){t.prototype.setDisplayed.call(this,e),e&&!this.initialised&&this.init(this.params)},r.prototype.onExpandAll=function(){this.filtersToolPanelListPanel.expandFilterGroups(!0)},r.prototype.onCollapseAll=function(){this.filtersToolPanelListPanel.expandFilterGroups(!1)},r.prototype.onSearchChanged=function(e){this.filtersToolPanelListPanel.performFilterSearch(e.searchText)},r.prototype.setFilterLayout=function(e){this.filtersToolPanelListPanel.setFiltersLayout(e)},r.prototype.onGroupExpanded=function(e){this.filtersToolPanelHeaderPanel.setExpandState(e.state)},r.prototype.expandFilterGroups=function(e){this.filtersToolPanelListPanel.expandFilterGroups(!0,e)},r.prototype.collapseFilterGroups=function(e){this.filtersToolPanelListPanel.expandFilterGroups(!1,e)},r.prototype.expandFilters=function(e){this.filtersToolPanelListPanel.expandFilters(!0,e)},r.prototype.collapseFilters=function(e){this.filtersToolPanelListPanel.expandFilters(!1,e)},r.prototype.syncLayoutWithGrid=function(){this.filtersToolPanelListPanel.syncFilterLayout()},r.prototype.refresh=function(){this.init(this.params)},r.prototype.destroy=function(){t.prototype.destroy.call(this)},r.TEMPLATE='<div class="ag-filter-toolpanel">\n            <ag-filters-tool-panel-header ref="filtersToolPanelHeaderPanel"></ag-filters-tool-panel-header>\n            <ag-filters-tool-panel-list ref="filtersToolPanelListPanel"></ag-filters-tool-panel-list>\n         </div>',hG([Ti("filtersToolPanelHeaderPanel")],r.prototype,"filtersToolPanelHeaderPanel",void 0),hG([Ti("filtersToolPanelListPanel")],r.prototype,"filtersToolPanelListPanel",void 0),hG([Xe("gridApi")],r.prototype,"gridApi",void 0),hG([Xe("columnApi")],r.prototype,"columnApi",void 0),r}(Do);qo.registerModules([Xee,BY,BNe,FZe,{moduleName:mo.FiltersToolPanelModule,beans:[],agStackComponents:[{componentName:"AgFiltersToolPanelHeader",componentClass:LZe},{componentName:"AgFiltersToolPanelList",componentClass:VZe}],userComponents:[{componentName:"agFiltersToolPanel",componentClass:HZe}],dependantModules:[ZY,rg]},Yie,ZY]);let DF=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=n.$C({type:t})}static{this.\u0275inj=n.G2t({providers:[ti],imports:[gn,th,L$,L$,Ra,n7]})}}return t})();function $z(t,r=w8){return(0,zd.N)((e,i)=>{let o=null,s=null,a=null;const l=()=>{if(o){o.unsubscribe(),o=null;const d=s;s=null,i.next(d)}};function c(){const d=a+t,f=r.now();if(f<d)return o=this.schedule(void 0,d-f),void i.add(o);l()}e.subscribe((0,Dd._)(i,d=>{s=d,a=r.now(),o||(o=r.schedule(c,t),i.add(o))},()=>{l(),i.complete()},void 0,()=>{s=o=null}))})}const $Ze=["filterInput"];function YZe(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",4),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.clearInput())}),n.EFF(1," \xd7 "),n.k0s()}}let Yz=(()=>{class t{constructor(){this.placeholder=(0,n.hFB)(""),this.searchTermChanged=(0,n.CGW)(),this.searchTermValue=(0,n.hFB)(""),this.searchTerm=(0,n.vPA)(""),this.searchSubject=new K.B,this.searchSubscription=this.searchSubject.pipe($z(300)).subscribe(e=>{this.searchTermChanged.emit(e)}),(0,n.QZP)(()=>{this.searchTerm.set(this.searchTermValue())}),(0,n.QZP)(()=>{this.searchSubject.next(this.searchTerm())})}onInputChange(e){const i=e.target;i&&null!==i.value&&this.searchTerm.set(i.value)}clearInput(){this.searchTerm.set(""),this.filterInputElement.nativeElement.focus()}ngOnDestroy(){this.searchSubscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-filter-input"]],viewQuery:function(i,o){if(1&i&&n.GBs($Ze,5),2&i){let s;n.mGM(s=n.lsd())&&(o.filterInputElement=s.first)}},inputs:{placeholder:[1,"placeholder"],searchTermValue:[1,"searchTermValue"]},outputs:{searchTermChanged:"searchTermChanged"},decls:4,vars:3,consts:[["filterInput",""],[1,"tw-relative","tw-w-full"],[1,"tw-w-full","tw-rounded-lg","tw-border","tw-border-solid","tw-border-slate-300","tw-p-4","tw-pr-10","focus:tw-border-blue-300","focus:tw-outline-none","focus:tw-ring-1","focus:tw-ring-blue-200",3,"input","placeholder","value"],["type","button",1,"tw-absolute","tw-right-3","tw-top-1/2","-tw-translate-y-1/2","tw-transform","tw-border-0","tw-bg-transparent","tw-text-3xl","tw-text-gray-500","hover:tw-text-gray-700"],["type","button",1,"tw-absolute","tw-right-3","tw-top-1/2","-tw-translate-y-1/2","tw-transform","tw-border-0","tw-bg-transparent","tw-text-3xl","tw-text-gray-500","hover:tw-text-gray-700",3,"click"]],template:function(i,o){if(1&i){const s=n.RV6();n.j41(0,"div",1)(1,"input",2,0),n.bIt("input",function(l){return n.eBV(s),n.Njj(o.onInputChange(l))}),n.k0s(),n.DNE(3,YZe,2,0,"button",3),n.k0s()}2&i&&(n.R7$(),n.Y8G("placeholder",o.placeholder())("value",o.searchTerm()),n.R7$(2),n.vxM(o.searchTerm()?3:-1))},dependencies:[Ra],encapsulation:2})}}return t})();const WZe=(t,r)=>null==r.internalDetail?null:r.internalDetail.internalEntityId;function zZe(t,r){if(1&t&&(n.j41(0,"option",2),n.EFF(1),n.k0s()),2&t){const e=r.$implicit;n.Y8G("value",null==e.internalDetail?null:e.internalDetail.internalEntityId),n.R7$(),n.SpI(" ",e.name+" ("+e.addressLine1+")"," ")}}let qZe=(()=>{class t{constructor(){this.locations=(0,n.hFB)([]),this.selectedLocation=(0,n.vPA)(null)}onSelectionChange(){this.selectedLocation.set(this.selectedValue)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-location-selector"]],inputs:{locations:[1,"locations"]},decls:5,vars:1,consts:[[3,"ngModelChange","change","ngModel"],["value","","disabled","","selected",""],[3,"value"]],template:function(i,o){1&i&&(n.j41(0,"select",0),n.mxI("ngModelChange",function(a){return n.DH7(o.selectedValue,a)||(o.selectedValue=a),a}),n.bIt("change",function(){return o.onSelectionChange()}),n.j41(1,"option",1),n.EFF(2,"Select an option"),n.k0s(),n.Z7z(3,zZe,2,2,"option",2,WZe),n.k0s()),2&i&&(n.R50("ngModel",o.selectedValue),n.R7$(3),n.Dyx(o.locations()))},dependencies:[Ra,Sy,xy,Ty,_o,ko],encapsulation:2})}}return t})();function nI(t){return t+.5|0}const $b=(t,r,e)=>Math.max(Math.min(t,e),r);function kF(t){return $b(nI(2.55*t),0,255)}function mT(t){return $b(nI(255*t),0,255)}function Yb(t){return $b(nI(t/2.55)/100,0,1)}function fle(t){return $b(nI(100*t),0,100)}const $v={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Wz=[..."0123456789ABCDEF"],XZe=t=>Wz[15&t],KZe=t=>Wz[(240&t)>>4]+Wz[15&t],fG=t=>(240&t)>>4==(15&t);const tet=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function mle(t,r,e){const i=r*Math.min(e,1-e),o=(s,a=(s+t/30)%12)=>e-i*Math.max(Math.min(a-3,9-a,1),-1);return[o(0),o(8),o(4)]}function net(t,r,e){const i=(o,s=(o+t/60)%6)=>e-e*r*Math.max(Math.min(s,4-s,1),0);return[i(5),i(3),i(1)]}function iet(t,r,e){const i=mle(t,1,.5);let o;for(r+e>1&&(o=1/(r+e),r*=o,e*=o),o=0;o<3;o++)i[o]*=1-r-e,i[o]+=r;return i}function zz(t){const e=t.r/255,i=t.g/255,o=t.b/255,s=Math.max(e,i,o),a=Math.min(e,i,o),l=(s+a)/2;let c,d,f;return s!==a&&(f=s-a,d=l>.5?f/(2-s-a):f/(s+a),c=function ret(t,r,e,i,o){return t===o?(r-e)/i+(r<e?6:0):r===o?(e-t)/i+2:(t-r)/i+4}(e,i,o,f,s),c=60*c+.5),[0|c,d||0,l]}function qz(t,r,e,i){return(Array.isArray(r)?t(r[0],r[1],r[2]):t(r,e,i)).map(mT)}function Xz(t,r,e){return qz(mle,t,r,e)}function gle(t){return(t%360+360)%360}const vle={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},_le={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let mG;const het=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,Kz=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,iI=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function gG(t,r,e){if(t){let i=zz(t);i[r]=Math.max(0,Math.min(i[r]+i[r]*e,0===r?360:1)),i=Xz(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function yle(t,r){return t&&Object.assign(r||{},t)}function ble(t){var r={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(r={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(r.a=mT(t[3]))):(r=yle(t,{r:0,g:0,b:0,a:1})).a=mT(r.a),r}function vet(t){return"r"===t.charAt(0)?function fet(t){const r=het.exec(t);let i,o,s,e=255;if(r){if(r[7]!==i){const a=+r[7];e=r[8]?kF(a):$b(255*a,0,255)}return i=+r[1],o=+r[3],s=+r[5],i=255&(r[2]?kF(i):$b(i,0,255)),o=255&(r[4]?kF(o):$b(o,0,255)),s=255&(r[6]?kF(s):$b(s,0,255)),{r:i,g:o,b:s,a:e}}}(t):function aet(t){const r=tet.exec(t);let i,e=255;if(!r)return;r[5]!==i&&(e=r[6]?kF(+r[5]):mT(+r[5]));const o=gle(+r[2]),s=+r[3]/100,a=+r[4]/100;return i="hwb"===r[1]?function oet(t,r,e){return qz(iet,t,r,e)}(o,s,a):"hsv"===r[1]?function set(t,r,e){return qz(net,t,r,e)}(o,s,a):Xz(o,s,a),{r:i[0],g:i[1],b:i[2],a:e}}(t)}class rI{constructor(r){if(r instanceof rI)return r;const e=typeof r;let i;"object"===e?i=ble(r):"string"===e&&(i=function JZe(t){var e,r=t.length;return"#"===t[0]&&(4===r||5===r?e={r:255&17*$v[t[1]],g:255&17*$v[t[2]],b:255&17*$v[t[3]],a:5===r?17*$v[t[4]]:255}:(7===r||9===r)&&(e={r:$v[t[1]]<<4|$v[t[2]],g:$v[t[3]]<<4|$v[t[4]],b:$v[t[5]]<<4|$v[t[6]],a:9===r?$v[t[7]]<<4|$v[t[8]]:255})),e}(r)||function pet(t){mG||(mG=function det(){const t={},r=Object.keys(_le),e=Object.keys(vle);let i,o,s,a,l;for(i=0;i<r.length;i++){for(a=l=r[i],o=0;o<e.length;o++)s=e[o],l=l.replace(s,vle[s]);s=parseInt(_le[a],16),t[l]=[s>>16&255,s>>8&255,255&s]}return t}(),mG.transparent=[0,0,0,0]);const r=mG[t.toLowerCase()];return r&&{r:r[0],g:r[1],b:r[2],a:4===r.length?r[3]:255}}(r)||vet(r)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var r=yle(this._rgb);return r&&(r.a=Yb(r.a)),r}set rgb(r){this._rgb=ble(r)}rgbString(){return this._valid?function met(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${Yb(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}(this._rgb):void 0}hexString(){return this._valid?function eet(t){var r=(t=>fG(t.r)&&fG(t.g)&&fG(t.b)&&fG(t.a))(t)?XZe:KZe;return t?"#"+r(t.r)+r(t.g)+r(t.b)+((t,r)=>t<255?r(t):"")(t.a,r):void 0}(this._rgb):void 0}hslString(){return this._valid?function uet(t){if(!t)return;const r=zz(t),e=r[0],i=fle(r[1]),o=fle(r[2]);return t.a<255?`hsla(${e}, ${i}%, ${o}%, ${Yb(t.a)})`:`hsl(${e}, ${i}%, ${o}%)`}(this._rgb):void 0}mix(r,e){if(r){const i=this.rgb,o=r.rgb;let s;const a=e===s?.5:e,l=2*a-1,c=i.a-o.a,d=((l*c==-1?l:(l+c)/(1+l*c))+1)/2;s=1-d,i.r=255&d*i.r+s*o.r+.5,i.g=255&d*i.g+s*o.g+.5,i.b=255&d*i.b+s*o.b+.5,i.a=a*i.a+(1-a)*o.a,this.rgb=i}return this}interpolate(r,e){return r&&(this._rgb=function get(t,r,e){const i=iI(Yb(t.r)),o=iI(Yb(t.g)),s=iI(Yb(t.b));return{r:mT(Kz(i+e*(iI(Yb(r.r))-i))),g:mT(Kz(o+e*(iI(Yb(r.g))-o))),b:mT(Kz(s+e*(iI(Yb(r.b))-s))),a:t.a+e*(r.a-t.a)}}(this._rgb,r._rgb,e)),this}clone(){return new rI(this.rgb)}alpha(r){return this._rgb.a=mT(r),this}clearer(r){return this._rgb.a*=1-r,this}greyscale(){const r=this._rgb,e=nI(.3*r.r+.59*r.g+.11*r.b);return r.r=r.g=r.b=e,this}opaquer(r){return this._rgb.a*=1+r,this}negate(){const r=this._rgb;return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,this}lighten(r){return gG(this._rgb,2,r),this}darken(r){return gG(this._rgb,2,-r),this}saturate(r){return gG(this._rgb,1,r),this}desaturate(r){return gG(this._rgb,1,-r),this}rotate(r){return function cet(t,r){var e=zz(t);e[0]=gle(e[0]+r),e=Xz(e),t.r=e[0],t.g=e[1],t.b=e[2]}(this._rgb,r),this}}function Wb(){}const _et=(()=>{let t=0;return()=>t++})();function nc(t){return null==t}function Vu(t){if(Array.isArray&&Array.isArray(t))return!0;const r=Object.prototype.toString.call(t);return"[object"===r.slice(0,7)&&"Array]"===r.slice(-6)}function kl(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function Pd(t){return("number"==typeof t||t instanceof Number)&&isFinite(+t)}function Eg(t,r){return Pd(t)?t:r}function Ba(t,r){return typeof t>"u"?r:t}const Cle=(t,r)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*r:+t;function Eu(t,r,e){if(t&&"function"==typeof t.call)return t.apply(e,r)}function qc(t,r,e,i){let o,s,a;if(Vu(t))if(s=t.length,i)for(o=s-1;o>=0;o--)r.call(e,t[o],o);else for(o=0;o<s;o++)r.call(e,t[o],o);else if(kl(t))for(a=Object.keys(t),s=a.length,o=0;o<s;o++)r.call(e,t[a[o]],a[o])}function vG(t,r){let e,i,o,s;if(!t||!r||t.length!==r.length)return!1;for(e=0,i=t.length;e<i;++e)if(o=t[e],s=r[e],o.datasetIndex!==s.datasetIndex||o.index!==s.index)return!1;return!0}function _G(t){if(Vu(t))return t.map(_G);if(kl(t)){const r=Object.create(null),e=Object.keys(t),i=e.length;let o=0;for(;o<i;++o)r[e[o]]=_G(t[e[o]]);return r}return t}function wle(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function bet(t,r,e,i){if(!wle(t))return;const o=r[t],s=e[t];kl(o)&&kl(s)?IF(o,s,i):r[t]=_G(s)}function IF(t,r,e){const i=Vu(r)?r:[r],o=i.length;if(!kl(t))return t;const s=(e=e||{}).merger||bet;let a;for(let l=0;l<o;++l){if(a=i[l],!kl(a))continue;const c=Object.keys(a);for(let d=0,f=c.length;d<f;++d)s(c[d],t,a,e)}return t}function AF(t,r){return IF(t,r,{merger:Cet})}function Cet(t,r,e){if(!wle(t))return;const i=r[t],o=e[t];kl(i)&&kl(o)?AF(i,o):Object.prototype.hasOwnProperty.call(r,t)||(r[t]=_G(o))}const Tle={"":t=>t,x:t=>t.x,y:t=>t.y};function gT(t,r){return(Tle[r]||(Tle[r]=function Tet(t){const r=function wet(t){const r=t.split("."),e=[];let i="";for(const o of r)i+=o,i.endsWith("\\")?i=i.slice(0,-1)+".":(e.push(i),i="");return e}(t);return e=>{for(const i of r){if(""===i)break;e=e&&e[i]}return e}}(r)))(t)}function Qz(t){return t.charAt(0).toUpperCase()+t.slice(1)}const MF=t=>typeof t<"u",vT=t=>"function"==typeof t,Sle=(t,r)=>{if(t.size!==r.size)return!1;for(const e of t)if(!r.has(e))return!1;return!0},ju=Math.PI,Hu=2*ju,Eet=Hu+ju,yG=Number.POSITIVE_INFINITY,Det=ju/180,Jd=ju/2,p2=ju/4,xle=2*ju/3,_T=Math.log10,Hy=Math.sign;function RF(t,r,e){return Math.abs(t-r)<e}function Ele(t){const r=Math.round(t);t=RF(t,r,t/1e3)?r:t;const e=Math.pow(10,Math.floor(_T(t))),i=t/e;return(i<=1?1:i<=2?2:i<=5?5:10)*e}function oI(t){return!isNaN(parseFloat(t))&&isFinite(t)}function Dle(t,r,e){let i,o,s;for(i=0,o=t.length;i<o;i++)s=t[i][e],isNaN(s)||(r.min=Math.min(r.min,s),r.max=Math.max(r.max,s))}function o0(t){return t*(ju/180)}function Jz(t){return t*(180/ju)}function kle(t){if(!Pd(t))return;let r=1,e=0;for(;Math.round(t*r)/r!==t;)r*=10,e++;return e}function Ile(t,r){const e=r.x-t.x,i=r.y-t.y,o=Math.sqrt(e*e+i*i);let s=Math.atan2(i,e);return s<-.5*ju&&(s+=Hu),{angle:s,distance:o}}function Zz(t,r){return Math.sqrt(Math.pow(r.x-t.x,2)+Math.pow(r.y-t.y,2))}function Aet(t,r){return(t-r+Eet)%Hu-ju}function Dg(t){return(t%Hu+Hu)%Hu}function OF(t,r,e,i){const o=Dg(t),s=Dg(r),a=Dg(e),l=Dg(s-o),c=Dg(a-o),d=Dg(o-s),f=Dg(o-a);return o===s||o===a||i&&s===a||l>c&&d<f}function lh(t,r,e){return Math.max(r,Math.min(e,t))}function zb(t,r,e,i=1e-6){return t>=Math.min(r,e)-i&&t<=Math.max(r,e)+i}function eq(t,r,e){e=e||(a=>t[a]<r);let s,i=t.length-1,o=0;for(;i-o>1;)s=o+i>>1,e(s)?o=s:i=s;return{lo:o,hi:i}}const qb=(t,r,e,i)=>eq(t,e,i?o=>{const s=t[o][r];return s<e||s===e&&t[o+1][r]===e}:o=>t[o][r]<e),Ret=(t,r,e)=>eq(t,e,i=>t[i][r]>=e),Ale=["push","pop","shift","splice","unshift"];function Mle(t,r){const e=t._chartjs;if(!e)return;const i=e.listeners,o=i.indexOf(r);-1!==o&&i.splice(o,1),!(i.length>0)&&(Ale.forEach(s=>{delete t[s]}),delete t._chartjs)}function Rle(t){const r=new Set(t);return r.size===t.length?t:Array.from(r)}const Ole=typeof window>"u"?function(t){return t()}:window.requestAnimationFrame;function Fle(t,r){let e=[],i=!1;return function(...o){e=o,i||(i=!0,Ole.call(window,()=>{i=!1,t.apply(r,e)}))}}const tq=t=>"start"===t?"left":"end"===t?"right":"center",Df=(t,r,e)=>"start"===t?r:"end"===t?e:(r+e)/2;function Ple(t,r,e){const i=r.length;let o=0,s=i;if(t._sorted){const{iScale:a,_parsed:l}=t,c=a.axis,{min:d,max:f,minDefined:v,maxDefined:w}=a.getUserBounds();v&&(o=lh(Math.min(qb(l,c,d).lo,e?i:qb(r,c,a.getPixelForValue(d)).lo),0,i-1)),s=w?lh(Math.max(qb(l,a.axis,f,!0).hi+1,e?0:qb(r,c,a.getPixelForValue(f),!0).hi+1),o,i)-o:i-o}return{start:o,count:s}}function Lle(t){const{xScale:r,yScale:e,_scaleRanges:i}=t,o={xmin:r.min,xmax:r.max,ymin:e.min,ymax:e.max};if(!i)return t._scaleRanges=o,!0;const s=i.xmin!==r.min||i.xmax!==r.max||i.ymin!==e.min||i.ymax!==e.max;return Object.assign(i,o),s}const bG=t=>0===t||1===t,Nle=(t,r,e)=>-Math.pow(2,10*(t-=1))*Math.sin((t-r)*Hu/e),Gle=(t,r,e)=>Math.pow(2,-10*t)*Math.sin((t-r)*Hu/e)+1,FF={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*Jd),easeOutSine:t=>Math.sin(t*Jd),easeInOutSine:t=>-.5*(Math.cos(ju*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>bG(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>bG(t)?t:Nle(t,.075,.3),easeOutElastic:t=>bG(t)?t:Gle(t,.075,.3),easeInOutElastic:t=>bG(t)?t:t<.5?.5*Nle(2*t,.1125,.45):.5+.5*Gle(2*t-1,.1125,.45),easeInBack:t=>t*t*(2.70158*t-1.70158),easeOutBack:t=>(t-=1)*t*(2.70158*t+1.70158)+1,easeInOutBack(t){let r=1.70158;return(t/=.5)<1?t*t*((1+(r*=1.525))*t-r)*.5:.5*((t-=2)*t*((1+(r*=1.525))*t+r)+2)},easeInBounce:t=>1-FF.easeOutBounce(1-t),easeOutBounce:t=>t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,easeInOutBounce:t=>t<.5?.5*FF.easeInBounce(2*t):.5*FF.easeOutBounce(2*t-1)+.5};function nq(t){if(t&&"object"==typeof t){const r=t.toString();return"[object CanvasPattern]"===r||"[object CanvasGradient]"===r}return!1}function Ble(t){return nq(t)?t:new rI(t)}function iq(t){return nq(t)?t:new rI(t).saturate(.5).darken(.1).hexString()}const Net=["x","y","borderWidth","radius","tension"],Get=["color","borderColor","backgroundColor"],Vle=new Map;function PF(t,r,e){return function jet(t,r){r=r||{};const e=t+JSON.stringify(r);let i=Vle.get(e);return i||(i=new Intl.NumberFormat(t,r),Vle.set(e,i)),i}(r,e).format(t)}const jle={values:t=>Vu(t)?t:""+t,numeric(t,r,e){if(0===t)return"0";const i=this.chart.options.locale;let o,s=t;if(e.length>1){const d=Math.max(Math.abs(e[0].value),Math.abs(e[e.length-1].value));(d<1e-4||d>1e15)&&(o="scientific"),s=function Het(t,r){let e=r.length>3?r[2].value-r[1].value:r[1].value-r[0].value;return Math.abs(e)>=1&&t!==Math.floor(t)&&(e=t-Math.floor(t)),e}(t,e)}const a=_T(Math.abs(s)),l=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),c={notation:o,minimumFractionDigits:l,maximumFractionDigits:l};return Object.assign(c,this.options.ticks.format),PF(t,i,c)},logarithmic(t,r,e){if(0===t)return"0";const i=e[r].significand||t/Math.pow(10,Math.floor(_T(t)));return[1,2,3,5,10,15].includes(i)||r>.8*e.length?jle.numeric.call(this,t,r,e):""}};var CG={formatters:jle};const h2=Object.create(null),rq=Object.create(null);function LF(t,r){if(!r)return t;const e=r.split(".");for(let i=0,o=e.length;i<o;++i){const s=e[i];t=t[s]||(t[s]=Object.create(null))}return t}function oq(t,r,e){return"string"==typeof r?IF(LF(t,r),e):IF(LF(t,""),r)}class $et{constructor(r,e){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=i=>i.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(i,o)=>iq(o.backgroundColor),this.hoverBorderColor=(i,o)=>iq(o.borderColor),this.hoverColor=(i,o)=>iq(o.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(r),this.apply(e)}set(r,e){return oq(this,r,e)}get(r){return LF(this,r)}describe(r,e){return oq(rq,r,e)}override(r,e){return oq(h2,r,e)}route(r,e,i,o){const s=LF(this,r),a=LF(this,i),l="_"+e;Object.defineProperties(s,{[l]:{value:s[e],writable:!0},[e]:{enumerable:!0,get(){const c=this[l],d=a[o];return kl(c)?Object.assign({},d,c):Ba(c,d)},set(c){this[l]=c}}})}apply(r){r.forEach(e=>e(this))}}var sd=new $et({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function Bet(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:r=>"onProgress"!==r&&"onComplete"!==r&&"fn"!==r}),t.set("animations",{colors:{type:"color",properties:Get},numbers:{type:"number",properties:Net}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:r=>0|r}}}})},function Vet(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function Uet(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(r,e)=>e.lineWidth,tickColor:(r,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:CG.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:r=>!r.startsWith("before")&&!r.startsWith("after")&&"callback"!==r&&"parser"!==r,_indexable:r=>"borderDash"!==r&&"tickBorderDash"!==r&&"dash"!==r}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:r=>"backdropPadding"!==r&&"callback"!==r,_indexable:r=>"backdropPadding"!==r})}]);function wG(t,r,e,i,o){let s=r[o];return s||(s=r[o]=t.measureText(o).width,e.push(o)),s>i&&(i=s),i}function Wet(t,r,e,i){let o=(i=i||{}).data=i.data||{},s=i.garbageCollect=i.garbageCollect||[];i.font!==r&&(o=i.data={},s=i.garbageCollect=[],i.font=r),t.save(),t.font=r;let a=0;const l=e.length;let c,d,f,v,w;for(c=0;c<l;c++)if(v=e[c],null==v||Vu(v)){if(Vu(v))for(d=0,f=v.length;d<f;d++)w=v[d],null!=w&&!Vu(w)&&(a=wG(t,o,s,a,w))}else a=wG(t,o,s,a,v);t.restore();const x=s.length/2;if(x>e.length){for(c=0;c<x;c++)delete o[s[c]];s.splice(0,x)}return a}function f2(t,r,e){const i=t.currentDevicePixelRatio,o=0!==e?Math.max(e/2,.5):0;return Math.round((r-o)*i)/i+o}function Hle(t,r){!r&&!t||((r=r||t.getContext("2d")).save(),r.resetTransform(),r.clearRect(0,0,t.width,t.height),r.restore())}function sq(t,r,e,i){Ule(t,r,e,i,null)}function Ule(t,r,e,i,o){let s,a,l,c,d,f,v,w;const x=r.pointStyle,I=r.rotation,M=r.radius;let F=(I||0)*Det;if(x&&"object"==typeof x&&(s=x.toString(),"[object HTMLImageElement]"===s||"[object HTMLCanvasElement]"===s))return t.save(),t.translate(e,i),t.rotate(F),t.drawImage(x,-x.width/2,-x.height/2,x.width,x.height),void t.restore();if(!(isNaN(M)||M<=0)){switch(t.beginPath(),x){default:o?t.ellipse(e,i,o/2,M,0,0,Hu):t.arc(e,i,M,0,Hu),t.closePath();break;case"triangle":f=o?o/2:M,t.moveTo(e+Math.sin(F)*f,i-Math.cos(F)*M),F+=xle,t.lineTo(e+Math.sin(F)*f,i-Math.cos(F)*M),F+=xle,t.lineTo(e+Math.sin(F)*f,i-Math.cos(F)*M),t.closePath();break;case"rectRounded":d=.516*M,c=M-d,a=Math.cos(F+p2)*c,v=Math.cos(F+p2)*(o?o/2-d:c),l=Math.sin(F+p2)*c,w=Math.sin(F+p2)*(o?o/2-d:c),t.arc(e-v,i-l,d,F-ju,F-Jd),t.arc(e+w,i-a,d,F-Jd,F),t.arc(e+v,i+l,d,F,F+Jd),t.arc(e-w,i+a,d,F+Jd,F+ju),t.closePath();break;case"rect":if(!I){c=Math.SQRT1_2*M,f=o?o/2:c,t.rect(e-f,i-c,2*f,2*c);break}F+=p2;case"rectRot":v=Math.cos(F)*(o?o/2:M),a=Math.cos(F)*M,l=Math.sin(F)*M,w=Math.sin(F)*(o?o/2:M),t.moveTo(e-v,i-l),t.lineTo(e+w,i-a),t.lineTo(e+v,i+l),t.lineTo(e-w,i+a),t.closePath();break;case"crossRot":F+=p2;case"cross":v=Math.cos(F)*(o?o/2:M),a=Math.cos(F)*M,l=Math.sin(F)*M,w=Math.sin(F)*(o?o/2:M),t.moveTo(e-v,i-l),t.lineTo(e+v,i+l),t.moveTo(e+w,i-a),t.lineTo(e-w,i+a);break;case"star":v=Math.cos(F)*(o?o/2:M),a=Math.cos(F)*M,l=Math.sin(F)*M,w=Math.sin(F)*(o?o/2:M),t.moveTo(e-v,i-l),t.lineTo(e+v,i+l),t.moveTo(e+w,i-a),t.lineTo(e-w,i+a),F+=p2,v=Math.cos(F)*(o?o/2:M),a=Math.cos(F)*M,l=Math.sin(F)*M,w=Math.sin(F)*(o?o/2:M),t.moveTo(e-v,i-l),t.lineTo(e+v,i+l),t.moveTo(e+w,i-a),t.lineTo(e-w,i+a);break;case"line":a=o?o/2:Math.cos(F)*M,l=Math.sin(F)*M,t.moveTo(e-a,i-l),t.lineTo(e+a,i+l);break;case"dash":t.moveTo(e,i),t.lineTo(e+Math.cos(F)*(o?o/2:M),i+Math.sin(F)*M);break;case!1:t.closePath()}t.fill(),r.borderWidth>0&&t.stroke()}}function Xb(t,r,e){return e=e||.5,!r||t&&t.x>r.left-e&&t.x<r.right+e&&t.y>r.top-e&&t.y<r.bottom+e}function TG(t,r){t.save(),t.beginPath(),t.rect(r.left,r.top,r.right-r.left,r.bottom-r.top),t.clip()}function SG(t){t.restore()}function zet(t,r,e,i,o){if(!r)return t.lineTo(e.x,e.y);if("middle"===o){const s=(r.x+e.x)/2;t.lineTo(s,r.y),t.lineTo(s,e.y)}else"after"===o!=!!i?t.lineTo(r.x,e.y):t.lineTo(e.x,r.y);t.lineTo(e.x,e.y)}function qet(t,r,e,i){if(!r)return t.lineTo(e.x,e.y);t.bezierCurveTo(i?r.cp1x:r.cp2x,i?r.cp1y:r.cp2y,i?e.cp2x:e.cp1x,i?e.cp2y:e.cp1y,e.x,e.y)}function Ket(t,r,e,i,o){if(o.strikethrough||o.underline){const s=t.measureText(i),a=r-s.actualBoundingBoxLeft,l=r+s.actualBoundingBoxRight,d=e+s.actualBoundingBoxDescent,f=o.strikethrough?(e-s.actualBoundingBoxAscent+d)/2:d;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=o.decorationWidth||2,t.moveTo(a,f),t.lineTo(l,f),t.stroke()}}function Qet(t,r){const e=t.fillStyle;t.fillStyle=r.color,t.fillRect(r.left,r.top,r.width,r.height),t.fillStyle=e}function m2(t,r,e,i,o,s={}){const a=Vu(r)?r:[r],l=s.strokeWidth>0&&""!==s.strokeColor;let c,d;for(t.save(),t.font=o.string,function Xet(t,r){r.translation&&t.translate(r.translation[0],r.translation[1]),nc(r.rotation)||t.rotate(r.rotation),r.color&&(t.fillStyle=r.color),r.textAlign&&(t.textAlign=r.textAlign),r.textBaseline&&(t.textBaseline=r.textBaseline)}(t,s),c=0;c<a.length;++c)d=a[c],s.backdrop&&Qet(t,s.backdrop),l&&(s.strokeColor&&(t.strokeStyle=s.strokeColor),nc(s.strokeWidth)||(t.lineWidth=s.strokeWidth),t.strokeText(d,e,i,s.maxWidth)),t.fillText(d,e,i,s.maxWidth),Ket(t,e,i,d,s),i+=Number(o.lineHeight);t.restore()}function NF(t,r){const{x:e,y:i,w:o,h:s,radius:a}=r;t.arc(e+a.topLeft,i+a.topLeft,a.topLeft,1.5*ju,ju,!0),t.lineTo(e,i+s-a.bottomLeft),t.arc(e+a.bottomLeft,i+s-a.bottomLeft,a.bottomLeft,ju,Jd,!0),t.lineTo(e+o-a.bottomRight,i+s),t.arc(e+o-a.bottomRight,i+s-a.bottomRight,a.bottomRight,Jd,0,!0),t.lineTo(e+o,i+a.topRight),t.arc(e+o-a.topRight,i+a.topRight,a.topRight,0,-Jd,!0),t.lineTo(e+a.topLeft,i)}const Jet=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,Zet=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function ett(t,r){const e=(""+t).match(Jet);if(!e||"normal"===e[1])return 1.2*r;switch(t=+e[2],e[3]){case"px":return t;case"%":t/=100}return r*t}const ttt=t=>+t||0;function aq(t,r){const e={},i=kl(r),o=i?Object.keys(r):r,s=kl(t)?i?a=>Ba(t[a],t[r[a]]):a=>t[a]:()=>t;for(const a of o)e[a]=ttt(s(a));return e}function $le(t){return aq(t,{top:"y",right:"x",bottom:"y",left:"x"})}function g2(t){return aq(t,["topLeft","topRight","bottomLeft","bottomRight"])}function kf(t){const r=$le(t);return r.width=r.left+r.right,r.height=r.top+r.bottom,r}function Op(t,r){let e=Ba((t=t||{}).size,(r=r||sd.font).size);"string"==typeof e&&(e=parseInt(e,10));let i=Ba(t.style,r.style);i&&!(""+i).match(Zet)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);const o={family:Ba(t.family,r.family),lineHeight:ett(Ba(t.lineHeight,r.lineHeight),e),size:e,style:i,weight:Ba(t.weight,r.weight),string:""};return o.string=function Yet(t){return!t||nc(t.size)||nc(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(o),o}function GF(t,r,e,i){let s,a,l,o=!0;for(s=0,a=t.length;s<a;++s)if(l=t[s],void 0!==l&&(void 0!==r&&"function"==typeof l&&(l=l(r),o=!1),void 0!==e&&Vu(l)&&(l=l[e%l.length],o=!1),void 0!==l))return i&&!o&&(i.cacheable=!1),l}function yT(t,r){return Object.assign(Object.create(t),r)}function lq(t,r=[""],e,i,o=()=>t[0]){const s=e||t;typeof i>"u"&&(i=Xle("_fallback",t));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:s,_fallback:i,_getTarget:o,override:l=>lq([l,...t],r,s,i)};return new Proxy(a,{deleteProperty:(l,c)=>(delete l[c],delete l._keys,delete t[0][c],!0),get:(l,c)=>Wle(l,c,()=>function utt(t,r,e,i){let o;for(const s of r)if(o=Xle(itt(s,t),e),typeof o<"u")return cq(t,o)?uq(e,i,t,o):o}(c,r,t,l)),getOwnPropertyDescriptor:(l,c)=>Reflect.getOwnPropertyDescriptor(l._scopes[0],c),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(l,c)=>Kle(l).includes(c),ownKeys:l=>Kle(l),set(l,c,d){const f=l._storage||(l._storage=o());return l[c]=f[c]=d,delete l._keys,!0}})}function sI(t,r,e,i){const o={_cacheable:!1,_proxy:t,_context:r,_subProxy:e,_stack:new Set,_descriptors:Yle(t,i),setContext:s=>sI(t,s,e,i),override:s=>sI(t.override(s),r,e,i)};return new Proxy(o,{deleteProperty:(s,a)=>(delete s[a],delete t[a],!0),get:(s,a,l)=>Wle(s,a,()=>function rtt(t,r,e){const{_proxy:i,_context:o,_subProxy:s,_descriptors:a}=t;let l=i[r];return vT(l)&&a.isScriptable(r)&&(l=function ott(t,r,e,i){const{_proxy:o,_context:s,_subProxy:a,_stack:l}=e;if(l.has(t))throw new Error("Recursion detected: "+Array.from(l).join("->")+"->"+t);l.add(t);let c=r(s,a||i);return l.delete(t),cq(t,c)&&(c=uq(o._scopes,o,t,c)),c}(r,l,t,e)),Vu(l)&&l.length&&(l=function stt(t,r,e,i){const{_proxy:o,_context:s,_subProxy:a,_descriptors:l}=e;if(typeof s.index<"u"&&i(t))return r[s.index%r.length];if(kl(r[0])){const c=r,d=o._scopes.filter(f=>f!==c);r=[];for(const f of c){const v=uq(d,o,t,f);r.push(sI(v,s,a&&a[t],l))}}return r}(r,l,t,a.isIndexable)),cq(r,l)&&(l=sI(l,o,s&&s[r],a)),l}(s,a,l)),getOwnPropertyDescriptor:(s,a)=>s._descriptors.allKeys?Reflect.has(t,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,a),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(s,a)=>Reflect.has(t,a),ownKeys:()=>Reflect.ownKeys(t),set:(s,a,l)=>(t[a]=l,delete s[a],!0)})}function Yle(t,r={scriptable:!0,indexable:!0}){const{_scriptable:e=r.scriptable,_indexable:i=r.indexable,_allKeys:o=r.allKeys}=t;return{allKeys:o,scriptable:e,indexable:i,isScriptable:vT(e)?e:()=>e,isIndexable:vT(i)?i:()=>i}}const itt=(t,r)=>t?t+Qz(r):r,cq=(t,r)=>kl(r)&&"adapters"!==t&&(null===Object.getPrototypeOf(r)||r.constructor===Object);function Wle(t,r,e){if(Object.prototype.hasOwnProperty.call(t,r)||"constructor"===r)return t[r];const i=e();return t[r]=i,i}function zle(t,r,e){return vT(t)?t(r,e):t}const att=(t,r)=>!0===t?r:"string"==typeof t?gT(r,t):void 0;function ltt(t,r,e,i,o){for(const s of r){const a=att(e,s);if(a){t.add(a);const l=zle(a._fallback,e,o);if(typeof l<"u"&&l!==e&&l!==i)return l}else if(!1===a&&typeof i<"u"&&e!==i)return null}return!1}function uq(t,r,e,i){const o=r._rootScopes,s=zle(r._fallback,e,i),a=[...t,...o],l=new Set;l.add(i);let c=qle(l,a,e,s||e,i);return!(null===c||typeof s<"u"&&s!==e&&(c=qle(l,a,s,c,i),null===c))&&lq(Array.from(l),[""],o,s,()=>function ctt(t,r,e){const i=t._getTarget();r in i||(i[r]={});const o=i[r];return Vu(o)&&kl(e)?e:o||{}}(r,e,i))}function qle(t,r,e,i,o){for(;e;)e=ltt(t,r,e,i,o);return e}function Xle(t,r){for(const e of r){if(!e)continue;const i=e[t];if(typeof i<"u")return i}}function Kle(t){let r=t._keys;return r||(r=t._keys=function dtt(t){const r=new Set;for(const e of t)for(const i of Object.keys(e).filter(o=>!o.startsWith("_")))r.add(i);return Array.from(r)}(t._scopes)),r}function Qle(t,r,e,i){const{iScale:o}=t,{key:s="r"}=this._parsing,a=new Array(i);let l,c,d,f;for(l=0,c=i;l<c;++l)d=l+e,f=r[d],a[l]={r:o.parse(gT(f,s),d)};return a}const ptt=Number.EPSILON||1e-14,aI=(t,r)=>r<t.length&&!t[r].skip&&t[r],Jle=t=>"x"===t?"y":"x";function htt(t,r,e,i){const o=t.skip?r:t,s=r,a=e.skip?r:e,l=Zz(s,o),c=Zz(a,s);let d=l/(l+c),f=c/(l+c);d=isNaN(d)?0:d,f=isNaN(f)?0:f;const v=i*d,w=i*f;return{previous:{x:s.x-v*(a.x-o.x),y:s.y-v*(a.y-o.y)},next:{x:s.x+w*(a.x-o.x),y:s.y+w*(a.y-o.y)}}}function xG(t,r,e){return Math.max(Math.min(t,e),r)}function _tt(t,r,e,i,o){let s,a,l,c;if(r.spanGaps&&(t=t.filter(d=>!d.skip)),"monotone"===r.cubicInterpolationMode)!function gtt(t,r="x"){const e=Jle(r),i=t.length,o=Array(i).fill(0),s=Array(i);let a,l,c,d=aI(t,0);for(a=0;a<i;++a)if(l=c,c=d,d=aI(t,a+1),c){if(d){const f=d[r]-c[r];o[a]=0!==f?(d[e]-c[e])/f:0}s[a]=l?d?Hy(o[a-1])!==Hy(o[a])?0:(o[a-1]+o[a])/2:o[a-1]:o[a]}(function ftt(t,r,e){const i=t.length;let o,s,a,l,c,d=aI(t,0);for(let f=0;f<i-1;++f)if(c=d,d=aI(t,f+1),c&&d){if(RF(r[f],0,ptt)){e[f]=e[f+1]=0;continue}o=e[f]/r[f],s=e[f+1]/r[f],l=Math.pow(o,2)+Math.pow(s,2),!(l<=9)&&(a=3/Math.sqrt(l),e[f]=o*a*r[f],e[f+1]=s*a*r[f])}})(t,o,s),function mtt(t,r,e="x"){const i=Jle(e),o=t.length;let s,a,l,c=aI(t,0);for(let d=0;d<o;++d){if(a=l,l=c,c=aI(t,d+1),!l)continue;const f=l[e],v=l[i];a&&(s=(f-a[e])/3,l[`cp1${e}`]=f-s,l[`cp1${i}`]=v-s*r[d]),c&&(s=(c[e]-f)/3,l[`cp2${e}`]=f+s,l[`cp2${i}`]=v+s*r[d])}}(t,s,r)}(t,o);else{let d=i?t[t.length-1]:t[0];for(s=0,a=t.length;s<a;++s)l=t[s],c=htt(d,l,t[Math.min(s+1,a-(i?0:1))%a],r.tension),l.cp1x=c.previous.x,l.cp1y=c.previous.y,l.cp2x=c.next.x,l.cp2y=c.next.y,d=l}r.capBezierPoints&&function vtt(t,r){let e,i,o,s,a,l=Xb(t[0],r);for(e=0,i=t.length;e<i;++e)a=s,s=l,l=e<i-1&&Xb(t[e+1],r),s&&(o=t[e],a&&(o.cp1x=xG(o.cp1x,r.left,r.right),o.cp1y=xG(o.cp1y,r.top,r.bottom)),l&&(o.cp2x=xG(o.cp2x,r.left,r.right),o.cp2y=xG(o.cp2y,r.top,r.bottom)))}(t,e)}function dq(){return typeof window<"u"&&typeof document<"u"}function pq(t){let r=t.parentNode;return r&&"[object ShadowRoot]"===r.toString()&&(r=r.host),r}function EG(t,r,e){let i;return"string"==typeof t?(i=parseInt(t,10),-1!==t.indexOf("%")&&(i=i/100*r.parentNode[e])):i=t,i}const DG=t=>t.ownerDocument.defaultView.getComputedStyle(t,null),btt=["top","right","bottom","left"];function v2(t,r,e){const i={};e=e?"-"+e:"";for(let o=0;o<4;o++){const s=btt[o];i[s]=parseFloat(t[r+"-"+s+e])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}function _2(t,r){if("native"in t)return t;const{canvas:e,currentDevicePixelRatio:i}=r,o=DG(e),s="border-box"===o.boxSizing,a=v2(o,"padding"),l=v2(o,"border","width"),{x:c,y:d,box:f}=function wtt(t,r){const e=t.touches,i=e&&e.length?e[0]:t,{offsetX:o,offsetY:s}=i;let l,c,a=!1;if(((t,r,e)=>(t>0||r>0)&&(!e||!e.shadowRoot))(o,s,t.target))l=o,c=s;else{const d=r.getBoundingClientRect();l=i.clientX-d.left,c=i.clientY-d.top,a=!0}return{x:l,y:c,box:a}}(t,e),v=a.left+(f&&l.left),w=a.top+(f&&l.top);let{width:x,height:I}=r;return s&&(x-=a.width+l.width,I-=a.height+l.height),{x:Math.round((c-v)/x*e.width/i),y:Math.round((d-w)/I*e.height/i)}}const kG=t=>Math.round(10*t)/10;function Zle(t,r,e){const i=r||1,o=Math.floor(t.height*i),s=Math.floor(t.width*i);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const a=t.canvas;return a.style&&(e||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==i||a.height!==o||a.width!==s)&&(t.currentDevicePixelRatio=i,a.height=o,a.width=s,t.ctx.setTransform(i,0,0,i,0,0),!0)}const xtt=function(){let t=!1;try{const r={get passive(){return t=!0,!1}};dq()&&(window.addEventListener("test",null,r),window.removeEventListener("test",null,r))}catch{}return t}();function ece(t,r){const e=function ytt(t,r){return DG(t).getPropertyValue(r)}(t,r),i=e&&e.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function y2(t,r,e,i){return{x:t.x+e*(r.x-t.x),y:t.y+e*(r.y-t.y)}}function Ett(t,r,e,i){return{x:t.x+e*(r.x-t.x),y:"middle"===i?e<.5?t.y:r.y:"after"===i?e<1?t.y:r.y:e>0?r.y:t.y}}function Dtt(t,r,e,i){const o={x:t.cp2x,y:t.cp2y},s={x:r.cp1x,y:r.cp1y},a=y2(t,o,e),l=y2(o,s,e),c=y2(s,r,e),d=y2(a,l,e),f=y2(l,c,e);return y2(d,f,e)}function lI(t,r,e){return t?function(t,r){return{x:e=>t+t+r-e,setWidth(e){r=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,i)=>e-i,leftForLtr:(e,i)=>e-i}}(r,e):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,r)=>t+r,leftForLtr:(t,r)=>t}}function tce(t,r){let e,i;("ltr"===r||"rtl"===r)&&(e=t.canvas.style,i=[e.getPropertyValue("direction"),e.getPropertyPriority("direction")],e.setProperty("direction",r,"important"),t.prevTextDirection=i)}function nce(t,r){void 0!==r&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",r[0],r[1]))}function ice(t){return"angle"===t?{between:OF,compare:Aet,normalize:Dg}:{between:zb,compare:(r,e)=>r-e,normalize:r=>r}}function rce({start:t,end:r,count:e,loop:i,style:o}){return{start:t%e,end:r%e,loop:i&&(r-t+1)%e==0,style:o}}function oce(t,r,e){if(!e)return[t];const{property:i,start:o,end:s}=e,a=r.length,{compare:l,between:c,normalize:d}=ice(i),{start:f,end:v,loop:w,style:x}=function Att(t,r,e){const{property:i,start:o,end:s}=e,{between:a,normalize:l}=ice(i),c=r.length;let w,x,{start:d,end:f,loop:v}=t;if(v){for(d+=c,f+=c,w=0,x=c;w<x&&a(l(r[d%c][i]),o,s);++w)d--,f--;d%=c,f%=c}return f<d&&(f+=c),{start:d,end:f,loop:v,style:t.style}}(t,r,e),I=[];let re,pe,we,M=!1,F=null;for(let lt=f,bt=f;lt<=v;++lt)pe=r[lt%a],!pe.skip&&(re=d(pe[i]),re!==we&&(M=c(re,o,s),null===F&&(M||c(o,we,re)&&0!==l(o,we))&&(F=0===l(re,o)?lt:bt),null!==F&&(!M||0===l(s,re)||c(s,we,re))&&(I.push(rce({start:F,end:lt,loop:w,count:a,style:x})),F=null),bt=lt,we=re));return null!==F&&I.push(rce({start:F,end:v,loop:w,count:a,style:x})),I}function sce(t,r){const e=[],i=t.segments;for(let o=0;o<i.length;o++){const s=oce(i[o],t.points,r);s.length&&e.push(...s)}return e}function lce(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function Ptt(t,r){if(!r)return!1;const e=[],i=function(o,s){return nq(s)?(e.includes(s)||e.push(s),e.indexOf(s)):s};return JSON.stringify(t,i)!==JSON.stringify(r,i)}class Ltt{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(r,e,i,o){const a=e.duration;e.listeners[o].forEach(l=>l({chart:r,initial:e.initial,numSteps:a,currentStep:Math.min(i-e.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=Ole.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(r=Date.now()){let e=0;this._charts.forEach((i,o)=>{if(!i.running||!i.items.length)return;const s=i.items;let c,a=s.length-1,l=!1;for(;a>=0;--a)c=s[a],c._active?(c._total>i.duration&&(i.duration=c._total),c.tick(r),l=!0):(s[a]=s[s.length-1],s.pop());l&&(o.draw(),this._notify(o,i,r,"progress")),s.length||(i.running=!1,this._notify(o,i,r,"complete"),i.initial=!1),e+=s.length}),this._lastDate=r,0===e&&(this._running=!1)}_getAnims(r){const e=this._charts;let i=e.get(r);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(r,i)),i}listen(r,e,i){this._getAnims(r).listeners[e].push(i)}add(r,e){!e||!e.length||this._getAnims(r).items.push(...e)}has(r){return this._getAnims(r).items.length>0}start(r){const e=this._charts.get(r);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((i,o)=>Math.max(i,o._duration),0),this._refresh())}running(r){if(!this._running)return!1;const e=this._charts.get(r);return!(!e||!e.running||!e.items.length)}stop(r){const e=this._charts.get(r);if(!e||!e.items.length)return;const i=e.items;let o=i.length-1;for(;o>=0;--o)i[o].cancel();e.items=[],this._notify(r,e,Date.now(),"complete")}remove(r){return this._charts.delete(r)}}var Kb=new Ltt;const cce="transparent",Ntt={boolean:(t,r,e)=>e>.5?r:t,color(t,r,e){const i=Ble(t||cce),o=i.valid&&Ble(r||cce);return o&&o.valid?o.mix(i,e).hexString():r},number:(t,r,e)=>t+(r-t)*e};class Gtt{constructor(r,e,i,o){const s=e[i];o=GF([r.to,o,s,r.from]);const a=GF([r.from,s,o]);this._active=!0,this._fn=r.fn||Ntt[r.type||typeof a],this._easing=FF[r.easing]||FF.linear,this._start=Math.floor(Date.now()+(r.delay||0)),this._duration=this._total=Math.floor(r.duration),this._loop=!!r.loop,this._target=e,this._prop=i,this._from=a,this._to=o,this._promises=void 0}active(){return this._active}update(r,e,i){if(this._active){this._notify(!1);const o=this._target[this._prop],s=i-this._start,a=this._duration-s;this._start=i,this._duration=Math.floor(Math.max(a,r.duration)),this._total+=s,this._loop=!!r.loop,this._to=GF([r.to,e,o,r.from]),this._from=GF([r.from,o,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(r){const e=r-this._start,i=this._duration,o=this._prop,s=this._from,a=this._loop,l=this._to;let c;if(this._active=s!==l&&(a||e<i),!this._active)return this._target[o]=l,void this._notify(!0);e<0?this._target[o]=s:(c=e/i%2,c=a&&c>1?2-c:c,c=this._easing(Math.min(1,Math.max(0,c))),this._target[o]=this._fn(s,l,c))}wait(){const r=this._promises||(this._promises=[]);return new Promise((e,i)=>{r.push({res:e,rej:i})})}_notify(r){const e=r?"res":"rej",i=this._promises||[];for(let o=0;o<i.length;o++)i[o][e]()}}class uce{constructor(r,e){this._chart=r,this._properties=new Map,this.configure(e)}configure(r){if(!kl(r))return;const e=Object.keys(sd.animation),i=this._properties;Object.getOwnPropertyNames(r).forEach(o=>{const s=r[o];if(!kl(s))return;const a={};for(const l of e)a[l]=s[l];(Vu(s.properties)&&s.properties||[o]).forEach(l=>{(l===o||!i.has(l))&&i.set(l,a)})})}_animateOptions(r,e){const i=e.options,o=function Vtt(t,r){if(!r)return;let e=t.options;if(e)return e.$shared&&(t.options=e=Object.assign({},e,{$shared:!1,$animations:{}})),e;t.options=r}(r,i);if(!o)return[];const s=this._createAnimations(o,i);return i.$shared&&function Btt(t,r){const e=[],i=Object.keys(r);for(let o=0;o<i.length;o++){const s=t[i[o]];s&&s.active()&&e.push(s.wait())}return Promise.all(e)}(r.options.$animations,i).then(()=>{r.options=i},()=>{}),s}_createAnimations(r,e){const i=this._properties,o=[],s=r.$animations||(r.$animations={}),a=Object.keys(e),l=Date.now();let c;for(c=a.length-1;c>=0;--c){const d=a[c];if("$"===d.charAt(0))continue;if("options"===d){o.push(...this._animateOptions(r,e));continue}const f=e[d];let v=s[d];const w=i.get(d);if(v){if(w&&v.active()){v.update(w,f,l);continue}v.cancel()}w&&w.duration?(s[d]=v=new Gtt(w,r,d,f),o.push(v)):r[d]=f}return o}update(r,e){if(0===this._properties.size)return void Object.assign(r,e);const i=this._createAnimations(r,e);return i.length?(Kb.add(this._chart,i),!0):void 0}}function dce(t,r){const e=t&&t.options||{},i=e.reverse,o=void 0===e.min?r:0,s=void 0===e.max?r:0;return{start:i?s:o,end:i?o:s}}function pce(t,r){const e=[],i=t._getSortedDatasetMetas(r);let o,s;for(o=0,s=i.length;o<s;++o)e.push(i[o].index);return e}function hce(t,r,e,i={}){const o=t.keys,s="single"===i.mode;let a,l,c,d;if(null===r)return;let f=!1;for(a=0,l=o.length;a<l;++a){if(c=+o[a],c===e){if(f=!0,i.all)continue;break}d=t.values[c],Pd(d)&&(s||0===r||Hy(r)===Hy(d))&&(r+=d)}return f||i.all?r:0}function hq(t,r){const e=t&&t.options.stacked;return e||void 0===e&&void 0!==r.stack}function Wtt(t,r,e){const i=t[r]||(t[r]={});return i[e]||(i[e]={})}function fce(t,r,e,i){for(const o of r.getMatchingVisibleMetas(i).reverse()){const s=t[o.index];if(e&&s>0||!e&&s<0)return o.index}return null}function mce(t,r){const{chart:e,_cachedMeta:i}=t,o=e._stacks||(e._stacks={}),{iScale:s,vScale:a,index:l}=i,c=s.axis,d=a.axis,f=function $tt(t,r,e){return`${t.id}.${r.id}.${e.stack||e.type}`}(s,a,i),v=r.length;let w;for(let x=0;x<v;++x){const I=r[x],{[c]:M,[d]:F}=I;w=(I._stacks||(I._stacks={}))[d]=Wtt(o,f,M),w[l]=F,w._top=fce(w,a,!0,i.type),w._bottom=fce(w,a,!1,i.type),(w._visualValues||(w._visualValues={}))[l]=F}}function fq(t,r){const e=t.scales;return Object.keys(e).filter(i=>e[i].axis===r).shift()}function BF(t,r){const e=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){r=r||t._parsed;for(const o of r){const s=o._stacks;if(!s||void 0===s[i]||void 0===s[i][e])return;delete s[i][e],void 0!==s[i]._visualValues&&void 0!==s[i]._visualValues[e]&&delete s[i]._visualValues[e]}}}const mq=t=>"reset"===t||"none"===t,gce=(t,r)=>r?t:Object.assign({},t);let bT=(()=>class t{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(e,i){this.chart=e,this._ctx=e.ctx,this.index=i,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=hq(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&BF(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,i=this._cachedMeta,o=this.getDataset(),s=(w,x,I,M)=>"x"===w?x:"r"===w?M:I,a=i.xAxisID=Ba(o.xAxisID,fq(e,"x")),l=i.yAxisID=Ba(o.yAxisID,fq(e,"y")),c=i.rAxisID=Ba(o.rAxisID,fq(e,"r")),d=i.indexAxis,f=i.iAxisID=s(d,a,l,c),v=i.vAxisID=s(d,l,a,c);i.xScale=this.getScaleForId(a),i.yScale=this.getScaleForId(l),i.rScale=this.getScaleForId(c),i.iScale=this.getScaleForId(f),i.vScale=this.getScaleForId(v)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const i=this._cachedMeta;return e===i.iScale?i.vScale:i.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&Mle(this._data,this),e._stacked&&BF(e)}_dataCheck(){const e=this.getDataset(),i=e.data||(e.data=[]),o=this._data;if(kl(i))this._data=function Utt(t,r){const{iScale:e,vScale:i}=r,o="x"===e.axis?"x":"y",s="x"===i.axis?"x":"y",a=Object.keys(t),l=new Array(a.length);let c,d,f;for(c=0,d=a.length;c<d;++c)f=a[c],l[c]={[o]:f,[s]:t[f]};return l}(i,this._cachedMeta);else if(o!==i){if(o){Mle(o,this);const s=this._cachedMeta;BF(s),s._parsed=[]}i&&Object.isExtensible(i)&&function Fet(t,r){t._chartjs?t._chartjs.listeners.push(r):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[r]}}),Ale.forEach(e=>{const i="_onData"+Qz(e),o=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...s){const a=o.apply(this,s);return t._chartjs.listeners.forEach(l=>{"function"==typeof l[i]&&l[i](...s)}),a}})}))}(i,this),this._syncList=[],this._data=i}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const i=this._cachedMeta,o=this.getDataset();let s=!1;this._dataCheck();const a=i._stacked;i._stacked=hq(i.vScale,i),i.stack!==o.stack&&(s=!0,BF(i),i.stack=o.stack),this._resyncElements(e),(s||a!==i._stacked)&&(mce(this,i._parsed),i._stacked=hq(i.vScale,i))}configure(){const e=this.chart.config,i=e.datasetScopeKeys(this._type),o=e.getOptionScopes(this.getDataset(),i,!0);this.options=e.createResolver(o,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,i){const{_cachedMeta:o,_data:s}=this,{iScale:a,_stacked:l}=o,c=a.axis;let v,w,x,d=0===e&&i===s.length||o._sorted,f=e>0&&o._parsed[e-1];if(!1===this._parsing)o._parsed=s,o._sorted=!0,x=s;else{x=Vu(s[e])?this.parseArrayData(o,s,e,i):kl(s[e])?this.parseObjectData(o,s,e,i):this.parsePrimitiveData(o,s,e,i);const I=()=>null===w[c]||f&&w[c]<f[c];for(v=0;v<i;++v)o._parsed[v+e]=w=x[v],d&&(I()&&(d=!1),f=w);o._sorted=d}l&&mce(this,x)}parsePrimitiveData(e,i,o,s){const{iScale:a,vScale:l}=e,c=a.axis,d=l.axis,f=a.getLabels(),v=a===l,w=new Array(s);let x,I,M;for(x=0,I=s;x<I;++x)M=x+o,w[x]={[c]:v||a.parse(f[M],M),[d]:l.parse(i[M],M)};return w}parseArrayData(e,i,o,s){const{xScale:a,yScale:l}=e,c=new Array(s);let d,f,v,w;for(d=0,f=s;d<f;++d)v=d+o,w=i[v],c[d]={x:a.parse(w[0],v),y:l.parse(w[1],v)};return c}parseObjectData(e,i,o,s){const{xScale:a,yScale:l}=e,{xAxisKey:c="x",yAxisKey:d="y"}=this._parsing,f=new Array(s);let v,w,x,I;for(v=0,w=s;v<w;++v)x=v+o,I=i[x],f[v]={x:a.parse(gT(I,c),x),y:l.parse(gT(I,d),x)};return f}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,i,o){const a=this._cachedMeta,l=i[e.axis];return hce({keys:pce(this.chart,!0),values:i._stacks[e.axis]._visualValues},l,a.index,{mode:o})}updateRangeFromParsed(e,i,o,s){const a=o[i.axis];let l=null===a?NaN:a;const c=s&&o._stacks[i.axis];s&&c&&(s.values=c,l=hce(s,a,this._cachedMeta.index)),e.min=Math.min(e.min,l),e.max=Math.max(e.max,l)}getMinMax(e,i){const o=this._cachedMeta,s=o._parsed,a=o._sorted&&e===o.iScale,l=s.length,c=this._getOtherScale(e),d=((t,r)=>t&&!r.hidden&&r._stacked&&{keys:pce(this.chart,!0),values:null})(i,o),f={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:v,max:w}=function Ytt(t){const{min:r,max:e,minDefined:i,maxDefined:o}=t.getUserBounds();return{min:i?r:Number.NEGATIVE_INFINITY,max:o?e:Number.POSITIVE_INFINITY}}(c);let x,I;function M(){I=s[x];const F=I[c.axis];return!Pd(I[e.axis])||v>F||w<F}for(x=0;x<l&&(M()||(this.updateRangeFromParsed(f,e,I,d),!a));++x);if(a)for(x=l-1;x>=0;--x)if(!M()){this.updateRangeFromParsed(f,e,I,d);break}return f}getAllParsedValues(e){const i=this._cachedMeta._parsed,o=[];let s,a,l;for(s=0,a=i.length;s<a;++s)l=i[s][e.axis],Pd(l)&&o.push(l);return o}getMaxOverflow(){return!1}getLabelAndValue(e){const i=this._cachedMeta,o=i.iScale,s=i.vScale,a=this.getParsed(e);return{label:o?""+o.getLabelForValue(a[o.axis]):"",value:s?""+s.getLabelForValue(a[s.axis]):""}}_update(e){const i=this._cachedMeta;this.update(e||"default"),i._clip=function Htt(t){let r,e,i,o;return kl(t)?(r=t.top,e=t.right,i=t.bottom,o=t.left):r=e=i=o=t,{top:r,right:e,bottom:i,left:o,disabled:!1===t}}(Ba(this.options.clip,function jtt(t,r,e){if(!1===e)return!1;const i=dce(t,e),o=dce(r,e);return{top:o.end,right:i.end,bottom:o.start,left:i.start}}(i.xScale,i.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,o=this._cachedMeta,s=o.data||[],a=this.chart.chartArea,l=[],c=this._drawStart||0,d=this._drawCount||s.length-c,f=this.options.drawActiveElementsOnTop;let v;for(o.dataset&&o.dataset.draw(e,a,c,d),v=c;v<c+d;++v){const w=s[v];w.hidden||(w.active&&f?l.push(w):w.draw(e,a))}for(v=0;v<l.length;++v)l[v].draw(e,a)}getStyle(e,i){const o=i?"active":"default";return void 0===e&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(o):this.resolveDataElementOptions(e||0,o)}getContext(e,i,o){const s=this.getDataset();let a;if(e>=0&&e<this._cachedMeta.data.length){const l=this._cachedMeta.data[e];a=l.$context||(l.$context=function qtt(t,r,e){return yT(t,{active:!1,dataIndex:r,parsed:void 0,raw:void 0,element:e,index:r,mode:"default",type:"data"})}(this.getContext(),e,l)),a.parsed=this.getParsed(e),a.raw=s.data[e],a.index=a.dataIndex=e}else a=this.$context||(this.$context=function ztt(t,r){return yT(t,{active:!1,dataset:void 0,datasetIndex:r,index:r,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),a.dataset=s,a.index=a.datasetIndex=this.index;return a.active=!!i,a.mode=o,a}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,i){return this._resolveElementOptions(this.dataElementType.id,i,e)}_resolveElementOptions(e,i="default",o){const s="active"===i,a=this._cachedDataOpts,l=e+"-"+i,c=a[l],d=this.enableOptionSharing&&MF(o);if(c)return gce(c,d);const f=this.chart.config,v=f.datasetElementScopeKeys(this._type,e),w=s?[`${e}Hover`,"hover",e,""]:[e,""],x=f.getOptionScopes(this.getDataset(),v),I=Object.keys(sd.elements[e]),F=f.resolveNamedOptions(x,I,()=>this.getContext(o,s,i),w);return F.$shared&&(F.$shared=d,a[l]=Object.freeze(gce(F,d))),F}_resolveAnimations(e,i,o){const s=this.chart,a=this._cachedDataOpts,l=`animation-${i}`,c=a[l];if(c)return c;let d;if(!1!==s.options.animation){const v=this.chart.config,w=v.datasetAnimationScopeKeys(this._type,i),x=v.getOptionScopes(this.getDataset(),w);d=v.createResolver(x,this.getContext(e,o,i))}const f=new uce(s,d&&d.animations);return d&&d._cacheable&&(a[l]=Object.freeze(f)),f}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,i){return!i||mq(e)||this.chart._animationsDisabled}_getSharedOptions(e,i){const o=this.resolveDataElementOptions(e,i),s=this._sharedOptions,a=this.getSharedOptions(o),l=this.includeOptions(i,a)||a!==s;return this.updateSharedOptions(a,i,o),{sharedOptions:a,includeOptions:l}}updateElement(e,i,o,s){mq(s)?Object.assign(e,o):this._resolveAnimations(i,s).update(e,o)}updateSharedOptions(e,i,o){e&&!mq(i)&&this._resolveAnimations(void 0,i).update(e,o)}_setStyle(e,i,o,s){e.active=s;const a=this.getStyle(i,s);this._resolveAnimations(i,o,s).update(e,{options:!s&&this.getSharedOptions(a)||a})}removeHoverStyle(e,i,o){this._setStyle(e,o,"active",!1)}setHoverStyle(e,i,o){this._setStyle(e,o,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const i=this._data,o=this._cachedMeta.data;for(const[c,d,f]of this._syncList)this[c](d,f);this._syncList=[];const s=o.length,a=i.length,l=Math.min(a,s);l&&this.parse(0,l),a>s?this._insertElements(s,a-s,e):a<s&&this._removeElements(a,s-a)}_insertElements(e,i,o=!0){const s=this._cachedMeta,a=s.data,l=e+i;let c;const d=f=>{for(f.length+=i,c=f.length-1;c>=l;c--)f[c]=f[c-i]};for(d(a),c=e;c<l;++c)a[c]=new this.dataElementType;this._parsing&&d(s._parsed),this.parse(e,i),o&&this.updateElements(a,e,i,"reset")}updateElements(e,i,o,s){}_removeElements(e,i){const o=this._cachedMeta;if(this._parsing){const s=o._parsed.splice(e,i);o._stacked&&BF(o,s)}o.data.splice(e,i)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[i,o,s]=e;this[i](o,s)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,i){i&&this._sync(["_removeElements",e,i]);const o=arguments.length-2;o&&this._sync(["_insertElements",e,o])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}})();function Qtt(t){const r=t.iScale,e=function Ktt(t,r){if(!t._cache.$bar){const e=t.getMatchingVisibleMetas(r);let i=[];for(let o=0,s=e.length;o<s;o++)i=i.concat(e[o].controller.getAllParsedValues(t));t._cache.$bar=Rle(i.sort((o,s)=>o-s))}return t._cache.$bar}(r,t.type);let o,s,a,l,i=r._length;const c=()=>{32767===a||-32768===a||(MF(l)&&(i=Math.min(i,Math.abs(a-l)||i)),l=a)};for(o=0,s=e.length;o<s;++o)a=r.getPixelForValue(e[o]),c();for(l=void 0,o=0,s=r.ticks.length;o<s;++o)a=r.getPixelForTick(o),c();return i}function vce(t,r,e,i){return Vu(t)?function ent(t,r,e,i){const o=e.parse(t[0],i),s=e.parse(t[1],i),a=Math.min(o,s),l=Math.max(o,s);let c=a,d=l;Math.abs(a)>Math.abs(l)&&(c=l,d=a),r[e.axis]=d,r._custom={barStart:c,barEnd:d,start:o,end:s,min:a,max:l}}(t,r,e,i):r[e.axis]=e.parse(t,i),r}function _ce(t,r,e,i){const o=t.iScale,s=t.vScale,a=o.getLabels(),l=o===s,c=[];let d,f,v,w;for(d=e,f=e+i;d<f;++d)w=r[d],v={},v[o.axis]=l||o.parse(a[d],d),c.push(vce(w,v,s,d));return c}function gq(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function int(t,r,e,i){let o=r.borderSkipped;const s={};if(!o)return void(t.borderSkipped=s);if(!0===o)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:a,end:l,reverse:c,top:d,bottom:f}=function nnt(t){let r,e,i,o,s;return t.horizontal?(r=t.base>t.x,e="left",i="right"):(r=t.base<t.y,e="bottom",i="top"),r?(o="end",s="start"):(o="start",s="end"),{start:e,end:i,reverse:r,top:o,bottom:s}}(t);"middle"===o&&e&&(t.enableBorderRadius=!0,(e._top||0)===i?o=d:(e._bottom||0)===i?o=f:(s[yce(f,a,l,c)]=!0,o=d)),s[yce(o,a,l,c)]=!0,t.borderSkipped=s}function yce(t,r,e,i){return i?(t=function rnt(t,r,e){return t===r?e:t===e?r:t}(t,r,e),t=bce(t,e,r)):t=bce(t,r,e),t}function bce(t,r,e){return"start"===t?r:"end"===t?e:t}function ont(t,{inflateAmount:r},e){t.inflateAmount="auto"===r?1===e?.33:0:r}let snt=(()=>class t extends bT{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(e,i,o,s){return _ce(e,i,o,s)}parseArrayData(e,i,o,s){return _ce(e,i,o,s)}parseObjectData(e,i,o,s){const{iScale:a,vScale:l}=e,{xAxisKey:c="x",yAxisKey:d="y"}=this._parsing,f="x"===a.axis?c:d,v="x"===l.axis?c:d,w=[];let x,I,M,F;for(x=o,I=o+s;x<I;++x)F=i[x],M={},M[a.axis]=a.parse(gT(F,f),x),w.push(vce(gT(F,v),M,l,x));return w}updateRangeFromParsed(e,i,o,s){super.updateRangeFromParsed(e,i,o,s);const a=o._custom;a&&i===this._cachedMeta.vScale&&(e.min=Math.min(e.min,a.min),e.max=Math.max(e.max,a.max))}getMaxOverflow(){return 0}getLabelAndValue(e){const i=this._cachedMeta,{iScale:o,vScale:s}=i,a=this.getParsed(e),l=a._custom,c=gq(l)?"["+l.start+", "+l.end+"]":""+s.getLabelForValue(a[s.axis]);return{label:""+o.getLabelForValue(a[o.axis]),value:c}}initialize(){this.enableOptionSharing=!0,super.initialize(),this._cachedMeta.stack=this.getDataset().stack}update(e){const i=this._cachedMeta;this.updateElements(i.data,0,i.data.length,e)}updateElements(e,i,o,s){const a="reset"===s,{index:l,_cachedMeta:{vScale:c}}=this,d=c.getBasePixel(),f=c.isHorizontal(),v=this._getRuler(),{sharedOptions:w,includeOptions:x}=this._getSharedOptions(i,s);for(let I=i;I<i+o;I++){const M=this.getParsed(I),F=a||nc(M[c.axis])?{base:d,head:d}:this._calculateBarValuePixels(I),re=this._calculateBarIndexPixels(I,v),pe=(M._stacks||{})[c.axis],we={horizontal:f,base:F.base,enableBorderRadius:!pe||gq(M._custom)||l===pe._top||l===pe._bottom,x:f?F.head:re.center,y:f?re.center:F.head,height:f?re.size:Math.abs(F.size),width:f?Math.abs(F.size):re.size};x&&(we.options=w||this.resolveDataElementOptions(I,e[I].active?"active":s));const je=we.options||e[I].options;int(we,je,pe,l),ont(we,je,v.ratio),this.updateElement(e[I],I,we,s)}}_getStacks(e,i){const{iScale:o}=this._cachedMeta,s=o.getMatchingVisibleMetas(this._type).filter(v=>v.controller.options.grouped),a=o.options.stacked,l=[],c=this._cachedMeta.controller.getParsed(i),d=c&&c[o.axis],f=v=>{const w=v._parsed.find(I=>I[o.axis]===d),x=w&&w[v.vScale.axis];if(nc(x)||isNaN(x))return!0};for(const v of s)if((void 0===i||!f(v))&&((!1===a||-1===l.indexOf(v.stack)||void 0===a&&void 0===v.stack)&&l.push(v.stack),v.index===e))break;return l.length||l.push(void 0),l}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,i,o){const s=this._getStacks(e,o),a=void 0!==i?s.indexOf(i):-1;return-1===a?s.length-1:a}_getRuler(){const e=this.options,i=this._cachedMeta,o=i.iScale,s=[];let a,l;for(a=0,l=i.data.length;a<l;++a)s.push(o.getPixelForValue(this.getParsed(a)[o.axis],a));const c=e.barThickness;return{min:c||Qtt(i),pixels:s,start:o._startPixel,end:o._endPixel,stackCount:this._getStackCount(),scale:o,grouped:e.grouped,ratio:c?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:i,_stacked:o,index:s},options:{base:a,minBarLength:l}}=this,c=a||0,d=this.getParsed(e),f=d._custom,v=gq(f);let M,F,w=d[i.axis],x=0,I=o?this.applyStack(i,d,o):w;I!==w&&(x=I-w,I=w),v&&(w=f.barStart,I=f.barEnd-f.barStart,0!==w&&Hy(w)!==Hy(f.barEnd)&&(x=0),x+=w);const re=nc(a)||v?x:a;let pe=i.getPixelForValue(re);if(M=this.chart.getDataVisibility(e)?i.getPixelForValue(x+I):pe,F=M-pe,Math.abs(F)<l){F=function tnt(t,r,e){return 0!==t?Hy(t):(r.isHorizontal()?1:-1)*(r.min>=e?1:-1)}(F,i,c)*l,w===c&&(pe-=F/2);const we=i.getPixelForDecimal(0),je=i.getPixelForDecimal(1),tt=Math.min(we,je),nt=Math.max(we,je);pe=Math.max(Math.min(pe,nt),tt),M=pe+F,o&&!v&&(d._stacks[i.axis]._visualValues[s]=i.getValueForPixel(M)-i.getValueForPixel(pe))}if(pe===i.getPixelForValue(c)){const we=Hy(F)*i.getLineWidthForValue(c)/2;pe+=we,F-=we}return{size:F,base:pe,head:M,center:M+F/2}}_calculateBarIndexPixels(e,i){const o=i.scale,s=this.options,a=s.skipNull,l=Ba(s.maxBarThickness,1/0);let c,d;if(i.grouped){const f=a?this._getStackCount(e):i.stackCount,v="flex"===s.barThickness?function Ztt(t,r,e,i){const o=r.pixels,s=o[t];let a=t>0?o[t-1]:null,l=t<o.length-1?o[t+1]:null;const c=e.categoryPercentage;null===a&&(a=s-(null===l?r.end-r.start:l-s)),null===l&&(l=s+s-a);const d=s-(s-Math.min(a,l))/2*c;return{chunk:Math.abs(l-a)/2*c/i,ratio:e.barPercentage,start:d}}(e,i,s,f):function Jtt(t,r,e,i){const o=e.barThickness;let s,a;return nc(o)?(s=r.min*e.categoryPercentage,a=e.barPercentage):(s=o*i,a=1),{chunk:s/i,ratio:a,start:r.pixels[t]-s/2}}(e,i,s,f),w=this._getStackIndex(this.index,this._cachedMeta.stack,a?e:void 0);c=v.start+v.chunk*w+v.chunk/2,d=Math.min(l,v.chunk*v.ratio)}else c=o.getPixelForValue(this.getParsed(e)[o.axis],e),d=Math.min(l,i.min*i.ratio);return{base:c-d/2,head:c+d/2,center:c,size:d}}draw(){const e=this._cachedMeta,i=e.vScale,o=e.data,s=o.length;let a=0;for(;a<s;++a)null!==this.getParsed(a)[i.axis]&&!o[a].hidden&&o[a].draw(this._ctx)}})(),ant=(()=>class t extends bT{static id="bubble";static defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};static overrides={scales:{x:{type:"linear"},y:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,i,o,s){const a=super.parsePrimitiveData(e,i,o,s);for(let l=0;l<a.length;l++)a[l]._custom=this.resolveDataElementOptions(l+o).radius;return a}parseArrayData(e,i,o,s){const a=super.parseArrayData(e,i,o,s);for(let l=0;l<a.length;l++)a[l]._custom=Ba(i[o+l][2],this.resolveDataElementOptions(l+o).radius);return a}parseObjectData(e,i,o,s){const a=super.parseObjectData(e,i,o,s);for(let l=0;l<a.length;l++){const c=i[o+l];a[l]._custom=Ba(c&&c.r&&+c.r,this.resolveDataElementOptions(l+o).radius)}return a}getMaxOverflow(){const e=this._cachedMeta.data;let i=0;for(let o=e.length-1;o>=0;--o)i=Math.max(i,e[o].size(this.resolveDataElementOptions(o))/2);return i>0&&i}getLabelAndValue(e){const i=this._cachedMeta,o=this.chart.data.labels||[],{xScale:s,yScale:a}=i,l=this.getParsed(e),c=s.getLabelForValue(l.x),d=a.getLabelForValue(l.y),f=l._custom;return{label:o[e]||"",value:"("+c+", "+d+(f?", "+f:"")+")"}}update(e){const i=this._cachedMeta.data;this.updateElements(i,0,i.length,e)}updateElements(e,i,o,s){const a="reset"===s,{iScale:l,vScale:c}=this._cachedMeta,{sharedOptions:d,includeOptions:f}=this._getSharedOptions(i,s),v=l.axis,w=c.axis;for(let x=i;x<i+o;x++){const I=e[x],M=!a&&this.getParsed(x),F={},re=F[v]=a?l.getPixelForDecimal(.5):l.getPixelForValue(M[v]),pe=F[w]=a?c.getBasePixel():c.getPixelForValue(M[w]);F.skip=isNaN(re)||isNaN(pe),f&&(F.options=d||this.resolveDataElementOptions(x,I.active?"active":s),a&&(F.options.radius=0)),this.updateElement(I,x,F,s)}}resolveDataElementOptions(e,i){const o=this.getParsed(e);let s=super.resolveDataElementOptions(e,i);s.$shared&&(s=Object.assign({},s,{$shared:!1}));const a=s.radius;return"active"!==i&&(s.radius=0),s.radius+=Ba(o&&o._custom,a),s}})(),vq=(()=>class t extends bT{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:e=>"spacing"!==e,_indexable:e=>"spacing"!==e&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const i=e.data;if(i.labels.length&&i.datasets.length){const{labels:{pointStyle:o,color:s}}=e.legend.options;return i.labels.map((a,l)=>{const d=e.getDatasetMeta(0).controller.getStyle(l);return{text:a,fillStyle:d.backgroundColor,strokeStyle:d.borderColor,fontColor:s,lineWidth:d.borderWidth,pointStyle:o,hidden:!e.getDataVisibility(l),index:l}})}return[]}},onClick(e,i,o){o.chart.toggleDataVisibility(i.index),o.chart.update()}}}};constructor(e,i){super(e,i),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,i){const o=this.getDataset().data,s=this._cachedMeta;if(!1===this._parsing)s._parsed=o;else{let l,c,a=d=>+o[d];if(kl(o[e])){const{key:d="value"}=this._parsing;a=f=>+gT(o[f],d)}for(l=e,c=e+i;l<c;++l)s._parsed[l]=a(l)}}_getRotation(){return o0(this.options.rotation-90)}_getCircumference(){return o0(this.options.circumference)}_getRotationExtents(){let e=Hu,i=-Hu;for(let o=0;o<this.chart.data.datasets.length;++o)if(this.chart.isDatasetVisible(o)&&this.chart.getDatasetMeta(o).type===this._type){const s=this.chart.getDatasetMeta(o).controller,a=s._getRotation(),l=s._getCircumference();e=Math.min(e,a),i=Math.max(i,a+l)}return{rotation:e,circumference:i-e}}update(e){const i=this.chart,{chartArea:o}=i,s=this._cachedMeta,a=s.data,l=this.getMaxBorderWidth()+this.getMaxOffset(a)+this.options.spacing,c=Math.max((Math.min(o.width,o.height)-l)/2,0),d=Math.min(((t,r)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100:+t/r)(this.options.cutout,c),1),f=this._getRingWeight(this.index),{circumference:v,rotation:w}=this._getRotationExtents(),{ratioX:x,ratioY:I,offsetX:M,offsetY:F}=function lnt(t,r,e){let i=1,o=1,s=0,a=0;if(r<Hu){const l=t,c=l+r,d=Math.cos(l),f=Math.sin(l),v=Math.cos(c),w=Math.sin(c),x=(we,je,tt)=>OF(we,l,c,!0)?1:Math.max(je,je*e,tt,tt*e),I=(we,je,tt)=>OF(we,l,c,!0)?-1:Math.min(je,je*e,tt,tt*e),M=x(0,d,v),F=x(Jd,f,w),re=I(ju,d,v),pe=I(ju+Jd,f,w);i=(M-re)/2,o=(F-pe)/2,s=-(M+re)/2,a=-(F+pe)/2}return{ratioX:i,ratioY:o,offsetX:s,offsetY:a}}(w,v,d),we=Math.max(Math.min((o.width-l)/x,(o.height-l)/I)/2,0),je=Cle(this.options.radius,we),nt=(je-Math.max(je*d,0))/this._getVisibleDatasetWeightTotal();this.offsetX=M*je,this.offsetY=F*je,s.total=this.calculateTotal(),this.outerRadius=je-nt*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-nt*f,0),this.updateElements(a,0,a.length,e)}_circumference(e,i){const o=this.options,s=this._cachedMeta,a=this._getCircumference();return i&&o.animation.animateRotate||!this.chart.getDataVisibility(e)||null===s._parsed[e]||s.data[e].hidden?0:this.calculateCircumference(s._parsed[e]*a/Hu)}updateElements(e,i,o,s){const a="reset"===s,l=this.chart,c=l.chartArea,v=(c.left+c.right)/2,w=(c.top+c.bottom)/2,x=a&&l.options.animation.animateScale,I=x?0:this.innerRadius,M=x?0:this.outerRadius,{sharedOptions:F,includeOptions:re}=this._getSharedOptions(i,s);let we,pe=this._getRotation();for(we=0;we<i;++we)pe+=this._circumference(we,a);for(we=i;we<i+o;++we){const je=this._circumference(we,a),tt=e[we],nt={x:v+this.offsetX,y:w+this.offsetY,startAngle:pe,endAngle:pe+je,circumference:je,outerRadius:M,innerRadius:I};re&&(nt.options=F||this.resolveDataElementOptions(we,tt.active?"active":s)),pe+=je,this.updateElement(tt,we,nt,s)}}calculateTotal(){const e=this._cachedMeta,i=e.data;let s,o=0;for(s=0;s<i.length;s++){const a=e._parsed[s];null!==a&&!isNaN(a)&&this.chart.getDataVisibility(s)&&!i[s].hidden&&(o+=Math.abs(a))}return o}calculateCircumference(e){const i=this._cachedMeta.total;return i>0&&!isNaN(e)?Hu*(Math.abs(e)/i):0}getLabelAndValue(e){const o=this.chart,s=o.data.labels||[],a=PF(this._cachedMeta._parsed[e],o.options.locale);return{label:s[e]||"",value:a}}getMaxBorderWidth(e){let i=0;const o=this.chart;let s,a,l,c,d;if(!e)for(s=0,a=o.data.datasets.length;s<a;++s)if(o.isDatasetVisible(s)){l=o.getDatasetMeta(s),e=l.data,c=l.controller;break}if(!e)return 0;for(s=0,a=e.length;s<a;++s)d=c.resolveDataElementOptions(s),"inner"!==d.borderAlign&&(i=Math.max(i,d.borderWidth||0,d.hoverBorderWidth||0));return i}getMaxOffset(e){let i=0;for(let o=0,s=e.length;o<s;++o){const a=this.resolveDataElementOptions(o);i=Math.max(i,a.offset||0,a.hoverOffset||0)}return i}_getRingWeightOffset(e){let i=0;for(let o=0;o<e;++o)this.chart.isDatasetVisible(o)&&(i+=this._getRingWeight(o));return i}_getRingWeight(e){return Math.max(Ba(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}})(),cnt=(()=>class t extends bT{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const i=this._cachedMeta,{dataset:o,data:s=[],_dataset:a}=i,l=this.chart._animationsDisabled;let{start:c,count:d}=Ple(i,s,l);this._drawStart=c,this._drawCount=d,Lle(i)&&(c=0,d=s.length),o._chart=this.chart,o._datasetIndex=this.index,o._decimated=!!a._decimated,o.points=s;const f=this.resolveDatasetElementOptions(e);this.options.showLine||(f.borderWidth=0),f.segment=this.options.segment,this.updateElement(o,void 0,{animated:!l,options:f},e),this.updateElements(s,c,d,e)}updateElements(e,i,o,s){const a="reset"===s,{iScale:l,vScale:c,_stacked:d,_dataset:f}=this._cachedMeta,{sharedOptions:v,includeOptions:w}=this._getSharedOptions(i,s),x=l.axis,I=c.axis,{spanGaps:M,segment:F}=this.options,re=oI(M)?M:Number.POSITIVE_INFINITY,pe=this.chart._animationsDisabled||a||"none"===s,we=i+o,je=e.length;let tt=i>0&&this.getParsed(i-1);for(let nt=0;nt<je;++nt){const rt=e[nt],lt=pe?rt:{};if(nt<i||nt>=we){lt.skip=!0;continue}const bt=this.getParsed(nt),Wt=nc(bt[I]),Zt=lt[x]=l.getPixelForValue(bt[x],nt),en=lt[I]=a||Wt?c.getBasePixel():c.getPixelForValue(d?this.applyStack(c,bt,d):bt[I],nt);lt.skip=isNaN(Zt)||isNaN(en)||Wt,lt.stop=nt>0&&Math.abs(bt[x]-tt[x])>re,F&&(lt.parsed=bt,lt.raw=f.data[nt]),w&&(lt.options=v||this.resolveDataElementOptions(nt,rt.active?"active":s)),pe||this.updateElement(rt,nt,lt,s),tt=bt}}getMaxOverflow(){const e=this._cachedMeta,i=e.dataset,o=i.options&&i.options.borderWidth||0,s=e.data||[];if(!s.length)return o;const a=s[0].size(this.resolveDataElementOptions(0)),l=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(o,a,l)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}})(),Cce=(()=>class t extends bT{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const i=e.data;if(i.labels.length&&i.datasets.length){const{labels:{pointStyle:o,color:s}}=e.legend.options;return i.labels.map((a,l)=>{const d=e.getDatasetMeta(0).controller.getStyle(l);return{text:a,fillStyle:d.backgroundColor,strokeStyle:d.borderColor,fontColor:s,lineWidth:d.borderWidth,pointStyle:o,hidden:!e.getDataVisibility(l),index:l}})}return[]}},onClick(e,i,o){o.chart.toggleDataVisibility(i.index),o.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(e,i){super(e,i),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const o=this.chart,s=o.data.labels||[],a=PF(this._cachedMeta._parsed[e].r,o.options.locale);return{label:s[e]||"",value:a}}parseObjectData(e,i,o,s){return Qle.bind(this)(e,i,o,s)}update(e){const i=this._cachedMeta.data;this._updateRadius(),this.updateElements(i,0,i.length,e)}getMinMax(){const i={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return this._cachedMeta.data.forEach((o,s)=>{const a=this.getParsed(s).r;!isNaN(a)&&this.chart.getDataVisibility(s)&&(a<i.min&&(i.min=a),a>i.max&&(i.max=a))}),i}_updateRadius(){const e=this.chart,i=e.chartArea,o=e.options,s=Math.min(i.right-i.left,i.bottom-i.top),a=Math.max(s/2,0),c=(a-Math.max(o.cutoutPercentage?a/100*o.cutoutPercentage:1,0))/e.getVisibleDatasetCount();this.outerRadius=a-c*this.index,this.innerRadius=this.outerRadius-c}updateElements(e,i,o,s){const a="reset"===s,l=this.chart,d=l.options.animation,f=this._cachedMeta.rScale,v=f.xCenter,w=f.yCenter,x=f.getIndexAngle(0)-.5*ju;let M,I=x;const F=360/this.countVisibleElements();for(M=0;M<i;++M)I+=this._computeAngle(M,s,F);for(M=i;M<i+o;M++){const re=e[M];let pe=I,we=I+this._computeAngle(M,s,F),je=l.getDataVisibility(M)?f.getDistanceFromCenterForValue(this.getParsed(M).r):0;I=we,a&&(d.animateScale&&(je=0),d.animateRotate&&(pe=we=x));const tt={x:v,y:w,innerRadius:0,outerRadius:je,startAngle:pe,endAngle:we,options:this.resolveDataElementOptions(M,re.active?"active":s)};this.updateElement(re,M,tt,s)}}countVisibleElements(){let i=0;return this._cachedMeta.data.forEach((o,s)=>{!isNaN(this.getParsed(s).r)&&this.chart.getDataVisibility(s)&&i++}),i}_computeAngle(e,i,o){return this.chart.getDataVisibility(e)?o0(this.resolveDataElementOptions(e,i).angle||o):0}})();var unt=Object.freeze({__proto__:null,BarController:snt,BubbleController:ant,DoughnutController:vq,LineController:cnt,PieController:(()=>class t extends vq{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}})(),PolarAreaController:Cce,RadarController:(()=>class t extends bT{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(e){const i=this._cachedMeta.vScale,o=this.getParsed(e);return{label:i.getLabels()[e],value:""+i.getLabelForValue(o[i.axis])}}parseObjectData(e,i,o,s){return Qle.bind(this)(e,i,o,s)}update(e){const i=this._cachedMeta,o=i.dataset,s=i.data||[],a=i.iScale.getLabels();if(o.points=s,"resize"!==e){const l=this.resolveDatasetElementOptions(e);this.options.showLine||(l.borderWidth=0),this.updateElement(o,void 0,{_loop:!0,_fullLoop:a.length===s.length,options:l},e)}this.updateElements(s,0,s.length,e)}updateElements(e,i,o,s){const a=this._cachedMeta.rScale,l="reset"===s;for(let c=i;c<i+o;c++){const d=e[c],f=this.resolveDataElementOptions(c,d.active?"active":s),v=a.getPointPositionForValue(c,this.getParsed(c).r),w=l?a.xCenter:v.x,x=l?a.yCenter:v.y,I={x:w,y:x,angle:v.angle,skip:isNaN(w)||isNaN(x),options:f};this.updateElement(d,c,I,s)}}})(),ScatterController:(()=>class t extends bT{static id="scatter";static defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};static overrides={interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}};getLabelAndValue(e){const i=this._cachedMeta,o=this.chart.data.labels||[],{xScale:s,yScale:a}=i,l=this.getParsed(e),c=s.getLabelForValue(l.x),d=a.getLabelForValue(l.y);return{label:o[e]||"",value:"("+c+", "+d+")"}}update(e){const i=this._cachedMeta,{data:o=[]}=i,s=this.chart._animationsDisabled;let{start:a,count:l}=Ple(i,o,s);if(this._drawStart=a,this._drawCount=l,Lle(i)&&(a=0,l=o.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:c,_dataset:d}=i;c._chart=this.chart,c._datasetIndex=this.index,c._decimated=!!d._decimated,c.points=o;const f=this.resolveDatasetElementOptions(e);f.segment=this.options.segment,this.updateElement(c,void 0,{animated:!s,options:f},e)}else this.datasetElementType&&(delete i.dataset,this.datasetElementType=!1);this.updateElements(o,a,l,e)}addElements(){const{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(e,i,o,s){const a="reset"===s,{iScale:l,vScale:c,_stacked:d,_dataset:f}=this._cachedMeta,v=this.resolveDataElementOptions(i,s),w=this.getSharedOptions(v),x=this.includeOptions(s,w),I=l.axis,M=c.axis,{spanGaps:F,segment:re}=this.options,pe=oI(F)?F:Number.POSITIVE_INFINITY,we=this.chart._animationsDisabled||a||"none"===s;let je=i>0&&this.getParsed(i-1);for(let tt=i;tt<i+o;++tt){const nt=e[tt],rt=this.getParsed(tt),lt=we?nt:{},bt=nc(rt[M]),Wt=lt[I]=l.getPixelForValue(rt[I],tt),Zt=lt[M]=a||bt?c.getBasePixel():c.getPixelForValue(d?this.applyStack(c,rt,d):rt[M],tt);lt.skip=isNaN(Wt)||isNaN(Zt)||bt,lt.stop=tt>0&&Math.abs(rt[I]-je[I])>pe,re&&(lt.parsed=rt,lt.raw=f.data[tt]),x&&(lt.options=w||this.resolveDataElementOptions(tt,nt.active?"active":s)),we||this.updateElement(nt,tt,lt,s),je=rt}this.updateSharedOptions(w,s,v)}getMaxOverflow(){const e=this._cachedMeta,i=e.data||[];if(!this.options.showLine){let c=0;for(let d=i.length-1;d>=0;--d)c=Math.max(c,i[d].size(this.resolveDataElementOptions(d))/2);return c>0&&c}const o=e.dataset,s=o.options&&o.options.borderWidth||0;if(!i.length)return s;const a=i[0].size(this.resolveDataElementOptions(0)),l=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(s,a,l)/2}})()});function b2(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class _q{static override(r){Object.assign(_q.prototype,r)}options;constructor(r){this.options=r||{}}init(){}formats(){return b2()}parse(){return b2()}format(){return b2()}add(){return b2()}diff(){return b2()}startOf(){return b2()}endOf(){return b2()}}var dnt__date=_q;function pnt(t,r,e,i){const{controller:o,data:s,_sorted:a}=t,l=o._cachedMeta.iScale;if(l&&r===l.axis&&"r"!==r&&a&&s.length){const c=l._reversePixels?Ret:qb;if(!i)return c(s,r,e);if(o._sharedOptions){const d=s[0],f="function"==typeof d.getRange&&d.getRange(r);if(f){const v=c(s,r,e-f),w=c(s,r,e+f);return{lo:v.lo,hi:w.hi}}}}return{lo:0,hi:s.length-1}}function VF(t,r,e,i,o){const s=t.getSortedVisibleDatasetMetas(),a=e[r];for(let l=0,c=s.length;l<c;++l){const{index:d,data:f}=s[l],{lo:v,hi:w}=pnt(s[l],r,a,o);for(let x=v;x<=w;++x){const I=f[x];I.skip||i(I,d,x)}}}function yq(t,r,e,i,o){const s=[];return!o&&!t.isPointInArea(r)||VF(t,e,r,function(l,c,d){!o&&!Xb(l,t.chartArea,0)||l.inRange(r.x,r.y,i)&&s.push({element:l,datasetIndex:c,index:d})},!0),s}function bq(t,r,e,i,o,s){return s||t.isPointInArea(r)?"r"!==e||i?function mnt(t,r,e,i,o,s){let a=[];const l=function hnt(t){const r=-1!==t.indexOf("x"),e=-1!==t.indexOf("y");return function(i,o){const s=r?Math.abs(i.x-o.x):0,a=e?Math.abs(i.y-o.y):0;return Math.sqrt(Math.pow(s,2)+Math.pow(a,2))}}(e);let c=Number.POSITIVE_INFINITY;return VF(t,e,r,function d(f,v,w){const x=f.inRange(r.x,r.y,o);if(i&&!x)return;const I=f.getCenterPoint(o);if(!s&&!t.isPointInArea(I)&&!x)return;const F=l(r,I);F<c?(a=[{element:f,datasetIndex:v,index:w}],c=F):F===c&&a.push({element:f,datasetIndex:v,index:w})}),a}(t,r,e,i,o,s):function fnt(t,r,e,i){let o=[];return VF(t,e,r,function s(a,l,c){const{startAngle:d,endAngle:f}=a.getProps(["startAngle","endAngle"],i),{angle:v}=Ile(a,{x:r.x,y:r.y});OF(v,d,f)&&o.push({element:a,datasetIndex:l,index:c})}),o}(t,r,e,o):[]}function wce(t,r,e,i,o){const s=[],a="x"===e?"inXRange":"inYRange";let l=!1;return VF(t,e,r,(c,d,f)=>{c[a]&&c[a](r[e],o)&&(s.push({element:c,datasetIndex:d,index:f}),l=l||c.inRange(r.x,r.y,o))}),i&&!l?[]:s}var gnt={evaluateInteractionItems:VF,modes:{index(t,r,e,i){const o=_2(r,t),s=e.axis||"x",a=e.includeInvisible||!1,l=e.intersect?yq(t,o,s,i,a):bq(t,o,s,!1,i,a),c=[];return l.length?(t.getSortedVisibleDatasetMetas().forEach(d=>{const f=l[0].index,v=d.data[f];v&&!v.skip&&c.push({element:v,datasetIndex:d.index,index:f})}),c):[]},dataset(t,r,e,i){const o=_2(r,t),s=e.axis||"xy",a=e.includeInvisible||!1;let l=e.intersect?yq(t,o,s,i,a):bq(t,o,s,!1,i,a);if(l.length>0){const c=l[0].datasetIndex,d=t.getDatasetMeta(c).data;l=[];for(let f=0;f<d.length;++f)l.push({element:d[f],datasetIndex:c,index:f})}return l},point:(t,r,e,i)=>yq(t,_2(r,t),e.axis||"xy",i,e.includeInvisible||!1),nearest:(t,r,e,i)=>bq(t,_2(r,t),e.axis||"xy",e.intersect,i,e.includeInvisible||!1),x:(t,r,e,i)=>wce(t,_2(r,t),"x",e.intersect,i),y:(t,r,e,i)=>wce(t,_2(r,t),"y",e.intersect,i)}};const Tce=["left","top","right","bottom"];function jF(t,r){return t.filter(e=>e.pos===r)}function Sce(t,r){return t.filter(e=>-1===Tce.indexOf(e.pos)&&e.box.axis===r)}function HF(t,r){return t.sort((e,i)=>{const o=r?i:e,s=r?e:i;return o.weight===s.weight?o.index-s.index:o.weight-s.weight})}function xce(t,r,e,i){return Math.max(t[e],r[e])+Math.max(t[i],r[i])}function Ece(t,r){t.top=Math.max(t.top,r.top),t.left=Math.max(t.left,r.left),t.bottom=Math.max(t.bottom,r.bottom),t.right=Math.max(t.right,r.right)}function Cnt(t,r,e,i){const{pos:o,box:s}=e,a=t.maxPadding;if(!kl(o)){e.size&&(t[o]-=e.size);const v=i[e.stack]||{size:0,count:1};v.size=Math.max(v.size,e.horizontal?s.height:s.width),e.size=v.size/v.count,t[o]+=e.size}s.getPadding&&Ece(a,s.getPadding());const l=Math.max(0,r.outerWidth-xce(a,t,"left","right")),c=Math.max(0,r.outerHeight-xce(a,t,"top","bottom")),d=l!==t.w,f=c!==t.h;return t.w=l,t.h=c,e.horizontal?{same:d,other:f}:{same:f,other:d}}function Tnt(t,r){const e=r.maxPadding;return function i(o){const s={left:0,top:0,right:0,bottom:0};return o.forEach(a=>{s[a]=Math.max(r[a],e[a])}),s}(t?["left","right"]:["top","bottom"])}function UF(t,r,e,i){const o=[];let s,a,l,c,d,f;for(s=0,a=t.length,d=0;s<a;++s){l=t[s],c=l.box,c.update(l.width||r.w,l.height||r.h,Tnt(l.horizontal,r));const{same:v,other:w}=Cnt(r,e,l,i);d|=v&&o.length,f=f||w,c.fullSize||o.push(l)}return d&&UF(o,r,e,i)||f}function IG(t,r,e,i,o){t.top=e,t.left=r,t.right=r+i,t.bottom=e+o,t.width=i,t.height=o}function Dce(t,r,e,i){const o=e.padding;let{x:s,y:a}=r;for(const l of t){const c=l.box,d=i[l.stack]||{count:1,placed:0,weight:1},f=l.stackWeight/d.weight||1;if(l.horizontal){const v=r.w*f,w=d.size||c.height;MF(d.start)&&(a=d.start),c.fullSize?IG(c,o.left,a,e.outerWidth-o.right-o.left,w):IG(c,r.left+d.placed,a,v,w),d.start=a,d.placed+=v,a=c.bottom}else{const v=r.h*f,w=d.size||c.width;MF(d.start)&&(s=d.start),c.fullSize?IG(c,s,o.top,w,e.outerHeight-o.bottom-o.top):IG(c,s,r.top+d.placed,w,v),d.start=s,d.placed+=v,s=c.right}}r.x=s,r.y=a}var If={addBox(t,r){t.boxes||(t.boxes=[]),r.fullSize=r.fullSize||!1,r.position=r.position||"top",r.weight=r.weight||0,r._layers=r._layers||function(){return[{z:0,draw(e){r.draw(e)}}]},t.boxes.push(r)},removeBox(t,r){const e=t.boxes?t.boxes.indexOf(r):-1;-1!==e&&t.boxes.splice(e,1)},configure(t,r,e){r.fullSize=e.fullSize,r.position=e.position,r.weight=e.weight},update(t,r,e,i){if(!t)return;const o=kf(t.options.layout.padding),s=Math.max(r-o.width,0),a=Math.max(e-o.height,0),l=function bnt(t){const r=function vnt(t){const r=[];let e,i,o,s,a,l;for(e=0,i=(t||[]).length;e<i;++e)o=t[e],({position:s,options:{stack:a,stackWeight:l=1}}=o),r.push({index:e,box:o,pos:s,horizontal:o.isHorizontal(),weight:o.weight,stack:a&&s+a,stackWeight:l});return r}(t),e=HF(r.filter(d=>d.box.fullSize),!0),i=HF(jF(r,"left"),!0),o=HF(jF(r,"right")),s=HF(jF(r,"top"),!0),a=HF(jF(r,"bottom")),l=Sce(r,"x"),c=Sce(r,"y");return{fullSize:e,leftAndTop:i.concat(s),rightAndBottom:o.concat(c).concat(a).concat(l),chartArea:jF(r,"chartArea"),vertical:i.concat(o).concat(c),horizontal:s.concat(a).concat(l)}}(t.boxes),c=l.vertical,d=l.horizontal;qc(t.boxes,M=>{"function"==typeof M.beforeLayout&&M.beforeLayout()});const f=c.reduce((M,F)=>F.box.options&&!1===F.box.options.display?M:M+1,0)||1,v=Object.freeze({outerWidth:r,outerHeight:e,padding:o,availableWidth:s,availableHeight:a,vBoxMaxWidth:s/2/f,hBoxMaxHeight:a/2}),w=Object.assign({},o);Ece(w,kf(i));const x=Object.assign({maxPadding:w,w:s,h:a,x:o.left,y:o.top},o),I=function ynt(t,r){const e=function _nt(t){const r={};for(const e of t){const{stack:i,pos:o,stackWeight:s}=e;if(!i||!Tce.includes(o))continue;const a=r[i]||(r[i]={count:0,placed:0,weight:0,size:0});a.count++,a.weight+=s}return r}(t),{vBoxMaxWidth:i,hBoxMaxHeight:o}=r;let s,a,l;for(s=0,a=t.length;s<a;++s){l=t[s];const{fullSize:c}=l.box,d=e[l.stack],f=d&&l.stackWeight/d.weight;l.horizontal?(l.width=f?f*i:c&&r.availableWidth,l.height=o):(l.width=i,l.height=f?f*o:c&&r.availableHeight)}return e}(c.concat(d),v);UF(l.fullSize,x,v,I),UF(c,x,v,I),UF(d,x,v,I)&&UF(c,x,v,I),function wnt(t){const r=t.maxPadding;function e(i){const o=Math.max(r[i]-t[i],0);return t[i]+=o,o}t.y+=e("top"),t.x+=e("left"),e("right"),e("bottom")}(x),Dce(l.leftAndTop,x,v,I),x.x+=x.w,x.y+=x.h,Dce(l.rightAndBottom,x,v,I),t.chartArea={left:x.left,top:x.top,right:x.left+x.w,bottom:x.top+x.h,height:x.h,width:x.w},qc(l.chartArea,M=>{const F=M.box;Object.assign(F,t.chartArea),F.update(x.w,x.h,{left:0,top:0,right:0,bottom:0})})}};class kce{acquireContext(r,e){}releaseContext(r){return!1}addEventListener(r,e,i){}removeEventListener(r,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(r,e,i,o){return e=Math.max(0,e||r.width),i=i||r.height,{width:e,height:Math.max(0,o?Math.floor(e/o):i)}}isAttached(r){return!0}updateConfig(r){}}class Snt extends kce{acquireContext(r){return r&&r.getContext&&r.getContext("2d")||null}updateConfig(r){r.options.animation=!1}}const AG="$chartjs",xnt={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Ice=t=>null===t||""===t,Ace=!!xtt&&{passive:!0};function knt(t,r,e){t&&t.canvas&&t.canvas.removeEventListener(r,e,Ace)}function MG(t,r){for(const e of t)if(e===r||e.contains(r))return!0}function Ant(t,r,e){const i=t.canvas,o=new MutationObserver(s=>{let a=!1;for(const l of s)a=a||MG(l.addedNodes,i),a=a&&!MG(l.removedNodes,i);a&&e()});return o.observe(document,{childList:!0,subtree:!0}),o}function Mnt(t,r,e){const i=t.canvas,o=new MutationObserver(s=>{let a=!1;for(const l of s)a=a||MG(l.removedNodes,i),a=a&&!MG(l.addedNodes,i);a&&e()});return o.observe(document,{childList:!0,subtree:!0}),o}const $F=new Map;let Mce=0;function Rce(){const t=window.devicePixelRatio;t!==Mce&&(Mce=t,$F.forEach((r,e)=>{e.currentDevicePixelRatio!==t&&r()}))}function Fnt(t,r,e){const i=t.canvas,o=i&&pq(i);if(!o)return;const s=Fle((l,c)=>{const d=o.clientWidth;e(l,c),d<o.clientWidth&&e()},window),a=new ResizeObserver(l=>{const c=l[0],d=c.contentRect.width,f=c.contentRect.height;0===d&&0===f||s(d,f)});return a.observe(o),function Rnt(t,r){$F.size||window.addEventListener("resize",Rce),$F.set(t,r)}(t,s),a}function Cq(t,r,e){e&&e.disconnect(),"resize"===r&&function Ont(t){$F.delete(t),$F.size||window.removeEventListener("resize",Rce)}(t)}function Pnt(t,r,e){const i=t.canvas,o=Fle(s=>{null!==t.ctx&&e(function Int(t,r){const e=xnt[t.type]||t.type,{x:i,y:o}=_2(t,r);return{type:e,chart:r,native:t,x:void 0!==i?i:null,y:void 0!==o?o:null}}(s,t))},t);return function Dnt(t,r,e){t&&t.addEventListener(r,e,Ace)}(i,r,o),o}class Lnt extends kce{acquireContext(r,e){const i=r&&r.getContext&&r.getContext("2d");return i&&i.canvas===r?(function Ent(t,r){const e=t.style,i=t.getAttribute("height"),o=t.getAttribute("width");if(t[AG]={initial:{height:i,width:o,style:{display:e.display,height:e.height,width:e.width}}},e.display=e.display||"block",e.boxSizing=e.boxSizing||"border-box",Ice(o)){const s=ece(t,"width");void 0!==s&&(t.width=s)}if(Ice(i))if(""===t.style.height)t.height=t.width/(r||2);else{const s=ece(t,"height");void 0!==s&&(t.height=s)}}(r,e),i):null}releaseContext(r){const e=r.canvas;if(!e[AG])return!1;const i=e[AG].initial;["height","width"].forEach(s=>{const a=i[s];nc(a)?e.removeAttribute(s):e.setAttribute(s,a)});const o=i.style||{};return Object.keys(o).forEach(s=>{e.style[s]=o[s]}),e.width=e.width,delete e[AG],!0}addEventListener(r,e,i){this.removeEventListener(r,e),(r.$proxies||(r.$proxies={}))[e]=({attach:Ant,detach:Mnt,resize:Fnt}[e]||Pnt)(r,e,i)}removeEventListener(r,e){const i=r.$proxies||(r.$proxies={}),o=i[e];o&&(({attach:Cq,detach:Cq,resize:Cq}[e]||knt)(r,e,o),i[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(r,e,i,o){return function Stt(t,r,e,i){const o=DG(t),s=v2(o,"margin"),a=EG(o.maxWidth,t,"clientWidth")||yG,l=EG(o.maxHeight,t,"clientHeight")||yG,c=function Ttt(t,r,e){let i,o;if(void 0===r||void 0===e){const s=t&&pq(t);if(s){const a=s.getBoundingClientRect(),l=DG(s),c=v2(l,"border","width"),d=v2(l,"padding");r=a.width-d.width-c.width,e=a.height-d.height-c.height,i=EG(l.maxWidth,s,"clientWidth"),o=EG(l.maxHeight,s,"clientHeight")}else r=t.clientWidth,e=t.clientHeight}return{width:r,height:e,maxWidth:i||yG,maxHeight:o||yG}}(t,r,e);let{width:d,height:f}=c;if("content-box"===o.boxSizing){const w=v2(o,"border","width"),x=v2(o,"padding");d-=x.width+w.width,f-=x.height+w.height}return d=Math.max(0,d-s.width),f=Math.max(0,i?d/i:f-s.height),d=kG(Math.min(d,a,c.maxWidth)),f=kG(Math.min(f,l,c.maxHeight)),d&&!f&&(f=kG(d/2)),(void 0!==r||void 0!==e)&&i&&c.height&&f>c.height&&(f=c.height,d=kG(Math.floor(f*i))),{width:d,height:f}}(r,e,i,o)}isAttached(r){const e=r&&pq(r);return!(!e||!e.isConnected)}}class Qb{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(r){const{x:e,y:i}=this.getProps(["x","y"],r);return{x:e,y:i}}hasValue(){return oI(this.x)&&oI(this.y)}getProps(r,e){const i=this.$animations;if(!e||!i)return this;const o={};return r.forEach(s=>{o[s]=i[s]&&i[s].active()?i[s]._to:this[s]}),o}}function RG(t,r,e,i,o){const s=Ba(i,0),a=Math.min(Ba(o,t.length),t.length);let c,d,f,l=0;for(e=Math.ceil(e),o&&(c=o-i,e=c/Math.floor(c/e)),f=s;f<0;)l++,f=Math.round(s+l*e);for(d=Math.max(s,0);d<a;d++)d===f&&(r.push(t[d]),l++,f=Math.round(s+l*e))}const Oce=(t,r,e)=>"top"===r||"left"===r?t[r]+e:t[r]-e,Fce=(t,r)=>Math.min(r||t,t);function Pce(t,r){const e=[],i=t.length/r,o=t.length;let s=0;for(;s<o;s+=i)e.push(t[Math.floor(s)]);return e}function Ynt(t,r,e){const i=t.ticks.length,o=Math.min(r,i-1),s=t._startPixel,a=t._endPixel,l=1e-6;let d,c=t.getPixelForTick(o);if(!(e&&(d=1===i?Math.max(c-s,a-c):0===r?(t.getPixelForTick(1)-c)/2:(c-t.getPixelForTick(o-1))/2,c+=o<r?d:-d,c<s-l||c>a+l)))return c}function YF(t){return t.drawTicks?t.tickLength:0}function Lce(t,r){if(!t.display)return 0;const e=Op(t.font,r),i=kf(t.padding);return(Vu(t.text)?t.text.length:1)*e.lineHeight+i.height}function Xnt(t,r,e){let i=tq(t);return(e&&"right"!==r||!e&&"right"===r)&&(i=(t=>"left"===t?"right":"right"===t?"left":t)(i)),i}class C2 extends Qb{constructor(r){super(),this.id=r.id,this.type=r.type,this.options=void 0,this.ctx=r.ctx,this.chart=r.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(r){this.options=r.setContext(this.getContext()),this.axis=r.axis,this._userMin=this.parse(r.min),this._userMax=this.parse(r.max),this._suggestedMin=this.parse(r.suggestedMin),this._suggestedMax=this.parse(r.suggestedMax)}parse(r,e){return r}getUserBounds(){let{_userMin:r,_userMax:e,_suggestedMin:i,_suggestedMax:o}=this;return r=Eg(r,Number.POSITIVE_INFINITY),e=Eg(e,Number.NEGATIVE_INFINITY),i=Eg(i,Number.POSITIVE_INFINITY),o=Eg(o,Number.NEGATIVE_INFINITY),{min:Eg(r,i),max:Eg(e,o),minDefined:Pd(r),maxDefined:Pd(e)}}getMinMax(r){let a,{min:e,max:i,minDefined:o,maxDefined:s}=this.getUserBounds();if(o&&s)return{min:e,max:i};const l=this.getMatchingVisibleMetas();for(let c=0,d=l.length;c<d;++c)a=l[c].controller.getMinMax(this,r),o||(e=Math.min(e,a.min)),s||(i=Math.max(i,a.max));return e=s&&e>i?i:e,i=o&&e>i?e:i,{min:Eg(e,Eg(i,e)),max:Eg(i,Eg(e,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const r=this.chart.data;return this.options.labels||(this.isHorizontal()?r.xLabels:r.yLabels)||r.labels||[]}getLabelItems(r=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(r))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Eu(this.options.beforeUpdate,[this])}update(r,e,i){const{beginAtZero:o,grace:s,ticks:a}=this.options,l=a.sampleSize;this.beforeUpdate(),this.maxWidth=r,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function ntt(t,r,e){const{min:i,max:o}=t,s=Cle(r,(o-i)/2),a=(l,c)=>e&&0===l?0:l+c;return{min:a(i,-Math.abs(s)),max:a(o,s)}}(this,s,o),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const c=l<this.ticks.length;this._convertTicksToLabels(c?Pce(this.ticks,l):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||"auto"===a.source)&&(this.ticks=function Gnt(t,r){const e=t.options.ticks,i=function Bnt(t){const r=t.options.offset,e=t._tickSize();return Math.floor(Math.min(t._length/e+(r?0:1),t._maxLength/e))}(t),o=Math.min(e.maxTicksLimit||i,i),s=e.major.enabled?function jnt(t){const r=[];let e,i;for(e=0,i=t.length;e<i;e++)t[e].major&&r.push(e);return r}(r):[],a=s.length,l=s[0],c=s[a-1],d=[];if(a>o)return function Hnt(t,r,e,i){let a,o=0,s=e[0];for(i=Math.ceil(i),a=0;a<t.length;a++)a===s&&(r.push(t[a]),o++,s=e[o*i])}(r,d,s,a/o),d;const f=function Vnt(t,r,e){const i=function Unt(t){const r=t.length;let e,i;if(r<2)return!1;for(i=t[0],e=1;e<r;++e)if(t[e]-t[e-1]!==i)return!1;return i}(t),o=r.length/e;if(!i)return Math.max(o,1);const s=function ket(t){const r=[],e=Math.sqrt(t);let i;for(i=1;i<e;i++)t%i==0&&(r.push(i),r.push(t/i));return e===(0|e)&&r.push(e),r.sort((o,s)=>o-s).pop(),r}(i);for(let a=0,l=s.length-1;a<l;a++){const c=s[a];if(c>o)return c}return Math.max(o,1)}(s,r,o);if(a>0){let v,w;const x=a>1?Math.round((c-l)/(a-1)):null;for(RG(r,d,f,nc(x)?0:l-x,l),v=0,w=a-1;v<w;v++)RG(r,d,f,s[v],s[v+1]);return RG(r,d,f,c,nc(x)?r.length:c+x),d}return RG(r,d,f),d}(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),c&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e,i,r=this.options.reverse;this.isHorizontal()?(e=this.left,i=this.right):(e=this.top,i=this.bottom,r=!r),this._startPixel=e,this._endPixel=i,this._reversePixels=r,this._length=i-e,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Eu(this.options.afterUpdate,[this])}beforeSetDimensions(){Eu(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Eu(this.options.afterSetDimensions,[this])}_callHooks(r){this.chart.notifyPlugins(r,this.getContext()),Eu(this.options[r],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Eu(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(r){const e=this.options.ticks;let i,o,s;for(i=0,o=r.length;i<o;i++)s=r[i],s.label=Eu(e.callback,[s.value,i,r],this)}afterTickToLabelConversion(){Eu(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Eu(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const r=this.options,e=r.ticks,i=Fce(this.ticks.length,r.ticks.maxTicksLimit),o=e.minRotation||0,s=e.maxRotation;let l,c,d,a=o;if(!this._isVisible()||!e.display||o>=s||i<=1||!this.isHorizontal())return void(this.labelRotation=o);const f=this._getLabelSizes(),v=f.widest.width,w=f.highest.height,x=lh(this.chart.width-v,0,this.maxWidth);l=r.offset?this.maxWidth/i:x/(i-1),v+6>l&&(l=x/(i-(r.offset?.5:1)),c=this.maxHeight-YF(r.grid)-e.padding-Lce(r.title,this.chart.options.font),d=Math.sqrt(v*v+w*w),a=Jz(Math.min(Math.asin(lh((f.highest.height+6)/l,-1,1)),Math.asin(lh(c/d,-1,1))-Math.asin(lh(w/d,-1,1)))),a=Math.max(o,Math.min(s,a))),this.labelRotation=a}afterCalculateLabelRotation(){Eu(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Eu(this.options.beforeFit,[this])}fit(){const r={width:0,height:0},{chart:e,options:{ticks:i,title:o,grid:s}}=this,a=this._isVisible(),l=this.isHorizontal();if(a){const c=Lce(o,e.options.font);if(l?(r.width=this.maxWidth,r.height=YF(s)+c):(r.height=this.maxHeight,r.width=YF(s)+c),i.display&&this.ticks.length){const{first:d,last:f,widest:v,highest:w}=this._getLabelSizes(),x=2*i.padding,I=o0(this.labelRotation),M=Math.cos(I),F=Math.sin(I);l?r.height=Math.min(this.maxHeight,r.height+(i.mirror?0:F*v.width+M*w.height)+x):r.width=Math.min(this.maxWidth,r.width+(i.mirror?0:M*v.width+F*w.height)+x),this._calculatePadding(d,f,F,M)}}this._handleMargins(),l?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=r.height):(this.width=r.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(r,e,i,o){const{ticks:{align:s,padding:a},position:l}=this.options,c=0!==this.labelRotation,d="top"!==l&&"x"===this.axis;if(this.isHorizontal()){const f=this.getPixelForTick(0)-this.left,v=this.right-this.getPixelForTick(this.ticks.length-1);let w=0,x=0;c?d?(w=o*r.width,x=i*e.height):(w=i*r.height,x=o*e.width):"start"===s?x=e.width:"end"===s?w=r.width:"inner"!==s&&(w=r.width/2,x=e.width/2),this.paddingLeft=Math.max((w-f+a)*this.width/(this.width-f),0),this.paddingRight=Math.max((x-v+a)*this.width/(this.width-v),0)}else{let f=e.height/2,v=r.height/2;"start"===s?(f=0,v=r.height):"end"===s&&(f=e.height,v=0),this.paddingTop=f+a,this.paddingBottom=v+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Eu(this.options.afterFit,[this])}isHorizontal(){const{axis:r,position:e}=this.options;return"top"===e||"bottom"===e||"x"===r}isFullSize(){return this.options.fullSize}_convertTicksToLabels(r){let e,i;for(this.beforeTickToLabelConversion(),this.generateTickLabels(r),e=0,i=r.length;e<i;e++)nc(r[e].label)&&(r.splice(e,1),i--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let r=this._labelSizes;if(!r){const e=this.options.ticks.sampleSize;let i=this.ticks;e<i.length&&(i=Pce(i,e)),this._labelSizes=r=this._computeLabelSizes(i,i.length,this.options.ticks.maxTicksLimit)}return r}_computeLabelSizes(r,e,i){const{ctx:o,_longestTextCache:s}=this,a=[],l=[],c=Math.floor(e/Fce(e,i));let v,w,x,I,M,F,re,pe,we,je,tt,d=0,f=0;for(v=0;v<e;v+=c){if(I=r[v].label,M=this._resolveTickFontOptions(v),o.font=F=M.string,re=s[F]=s[F]||{data:{},gc:[]},pe=M.lineHeight,we=je=0,nc(I)||Vu(I)){if(Vu(I))for(w=0,x=I.length;w<x;++w)tt=I[w],!nc(tt)&&!Vu(tt)&&(we=wG(o,re.data,re.gc,we,tt),je+=pe)}else we=wG(o,re.data,re.gc,we,I),je=pe;a.push(we),l.push(je),d=Math.max(we,d),f=Math.max(je,f)}!function Wnt(t,r){qc(t,e=>{const i=e.gc,o=i.length/2;let s;if(o>r){for(s=0;s<o;++s)delete e.data[i[s]];i.splice(0,o)}})}(s,e);const nt=a.indexOf(d),rt=l.indexOf(f),lt=bt=>({width:a[bt]||0,height:l[bt]||0});return{first:lt(0),last:lt(e-1),widest:lt(nt),highest:lt(rt),widths:a,heights:l}}getLabelForValue(r){return r}getPixelForValue(r,e){return NaN}getValueForPixel(r){}getPixelForTick(r){const e=this.ticks;return r<0||r>e.length-1?null:this.getPixelForValue(e[r].value)}getPixelForDecimal(r){this._reversePixels&&(r=1-r);const e=this._startPixel+r*this._length;return function Met(t){return lh(t,-32768,32767)}(this._alignToPixels?f2(this.chart,e,0):e)}getDecimalForPixel(r){const e=(r-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:r,max:e}=this;return r<0&&e<0?e:r>0&&e>0?r:0}getContext(r){const e=this.ticks||[];if(r>=0&&r<e.length){const i=e[r];return i.$context||(i.$context=function qnt(t,r,e){return yT(t,{tick:e,index:r,type:"tick"})}(this.getContext(),r,i))}return this.$context||(this.$context=function znt(t,r){return yT(t,{scale:r,type:"scale"})}(this.chart.getContext(),this))}_tickSize(){const r=this.options.ticks,e=o0(this.labelRotation),i=Math.abs(Math.cos(e)),o=Math.abs(Math.sin(e)),s=this._getLabelSizes(),a=r.autoSkipPadding||0,l=s?s.widest.width+a:0,c=s?s.highest.height+a:0;return this.isHorizontal()?c*i>l*o?l/i:c/o:c*o<l*i?c/i:l/o}_isVisible(){const r=this.options.display;return"auto"!==r?!!r:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(r){const e=this.axis,i=this.chart,o=this.options,{grid:s,position:a,border:l}=o,c=s.offset,d=this.isHorizontal(),v=this.ticks.length+(c?1:0),w=YF(s),x=[],I=l.setContext(this.getContext()),M=I.display?I.width:0,F=M/2,re=function(Xr){return f2(i,Xr,M)};let pe,we,je,tt,nt,rt,lt,bt,Wt,Zt,en,ci;if("top"===a)pe=re(this.bottom),rt=this.bottom-w,bt=pe-F,Zt=re(r.top)+F,ci=r.bottom;else if("bottom"===a)pe=re(this.top),Zt=r.top,ci=re(r.bottom)-F,rt=pe+F,bt=this.top+w;else if("left"===a)pe=re(this.right),nt=this.right-w,lt=pe-F,Wt=re(r.left)+F,en=r.right;else if("right"===a)pe=re(this.left),Wt=r.left,en=re(r.right)-F,nt=pe+F,lt=this.left+w;else if("x"===e){if("center"===a)pe=re((r.top+r.bottom)/2+.5);else if(kl(a)){const Xr=Object.keys(a)[0];pe=re(this.chart.scales[Xr].getPixelForValue(a[Xr]))}Zt=r.top,ci=r.bottom,rt=pe+F,bt=rt+w}else if("y"===e){if("center"===a)pe=re((r.left+r.right)/2);else if(kl(a)){const Xr=Object.keys(a)[0];pe=re(this.chart.scales[Xr].getPixelForValue(a[Xr]))}nt=pe-F,lt=nt-w,Wt=r.left,en=r.right}const Wi=Ba(o.ticks.maxTicksLimit,v),ki=Math.max(1,Math.ceil(v/Wi));for(we=0;we<v;we+=ki){const Xr=this.getContext(we),Lr=s.setContext(Xr),Jo=l.setContext(Xr),cr=Lr.lineWidth,is=Lr.color,Ji=Jo.dash||[],hn=Jo.dashOffset,hi=Lr.tickWidth,Tn=Lr.tickColor,xn=Lr.tickBorderDash||[],Xi=Lr.tickBorderDashOffset;je=Ynt(this,we,c),void 0!==je&&(tt=f2(i,je,cr),d?nt=lt=Wt=en=tt:rt=bt=Zt=ci=tt,x.push({tx1:nt,ty1:rt,tx2:lt,ty2:bt,x1:Wt,y1:Zt,x2:en,y2:ci,width:cr,color:is,borderDash:Ji,borderDashOffset:hn,tickWidth:hi,tickColor:Tn,tickBorderDash:xn,tickBorderDashOffset:Xi}))}return this._ticksLength=v,this._borderValue=pe,x}_computeLabelItems(r){const e=this.axis,i=this.options,{position:o,ticks:s}=i,a=this.isHorizontal(),l=this.ticks,{align:c,crossAlign:d,padding:f,mirror:v}=s,w=YF(i.grid),x=w+f,I=v?-f:x,M=-o0(this.labelRotation),F=[];let re,pe,we,je,tt,nt,rt,lt,bt,Wt,Zt,en,ci="middle";if("top"===o)nt=this.bottom-I,rt=this._getXAxisLabelAlignment();else if("bottom"===o)nt=this.top+I,rt=this._getXAxisLabelAlignment();else if("left"===o){const ki=this._getYAxisLabelAlignment(w);rt=ki.textAlign,tt=ki.x}else if("right"===o){const ki=this._getYAxisLabelAlignment(w);rt=ki.textAlign,tt=ki.x}else if("x"===e){if("center"===o)nt=(r.top+r.bottom)/2+x;else if(kl(o)){const ki=Object.keys(o)[0];nt=this.chart.scales[ki].getPixelForValue(o[ki])+x}rt=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===o)tt=(r.left+r.right)/2-x;else if(kl(o)){const ki=Object.keys(o)[0];tt=this.chart.scales[ki].getPixelForValue(o[ki])}rt=this._getYAxisLabelAlignment(w).textAlign}"y"===e&&("start"===c?ci="top":"end"===c&&(ci="bottom"));const Wi=this._getLabelSizes();for(re=0,pe=l.length;re<pe;++re){we=l[re],je=we.label;const ki=s.setContext(this.getContext(re));lt=this.getPixelForTick(re)+s.labelOffset,bt=this._resolveTickFontOptions(re),Wt=bt.lineHeight,Zt=Vu(je)?je.length:1;const Xr=Zt/2,Lr=ki.color,Jo=ki.textStrokeColor,cr=ki.textStrokeWidth;let Ji,is=rt;if(a?(tt=lt,"inner"===rt&&(is=re===pe-1?this.options.reverse?"left":"right":0===re?this.options.reverse?"right":"left":"center"),en="top"===o?"near"===d||0!==M?-Zt*Wt+Wt/2:"center"===d?-Wi.highest.height/2-Xr*Wt+Wt:Wt/2-Wi.highest.height:"near"===d||0!==M?Wt/2:"center"===d?Wi.highest.height/2-Xr*Wt:Wi.highest.height-Zt*Wt,v&&(en*=-1),0!==M&&!ki.showLabelBackdrop&&(tt+=Wt/2*Math.sin(M))):(nt=lt,en=(1-Zt)*Wt/2),ki.showLabelBackdrop){const hn=kf(ki.backdropPadding),hi=Wi.heights[re],Tn=Wi.widths[re];let xn=en-hn.top,Xi=0-hn.left;switch(ci){case"middle":xn-=hi/2;break;case"bottom":xn-=hi}switch(rt){case"center":Xi-=Tn/2;break;case"right":Xi-=Tn;break;case"inner":re===pe-1?Xi-=Tn:re>0&&(Xi-=Tn/2)}Ji={left:Xi,top:xn,width:Tn+hn.width,height:hi+hn.height,color:ki.backdropColor}}F.push({label:je,font:bt,textOffset:en,options:{rotation:M,color:Lr,strokeColor:Jo,strokeWidth:cr,textAlign:is,textBaseline:ci,translation:[tt,nt],backdrop:Ji}})}return F}_getXAxisLabelAlignment(){const{position:r,ticks:e}=this.options;if(-o0(this.labelRotation))return"top"===r?"left":"right";let o="center";return"start"===e.align?o="left":"end"===e.align?o="right":"inner"===e.align&&(o="inner"),o}_getYAxisLabelAlignment(r){const{position:e,ticks:{crossAlign:i,mirror:o,padding:s}}=this.options,l=r+s,c=this._getLabelSizes().widest.width;let d,f;return"left"===e?o?(f=this.right+s,"near"===i?d="left":"center"===i?(d="center",f+=c/2):(d="right",f+=c)):(f=this.right-l,"near"===i?d="right":"center"===i?(d="center",f-=c/2):(d="left",f=this.left)):"right"===e?o?(f=this.left+s,"near"===i?d="right":"center"===i?(d="center",f-=c/2):(d="left",f-=c)):(f=this.left+l,"near"===i?d="left":"center"===i?(d="center",f+=c/2):(d="right",f=this.right)):d="right",{textAlign:d,x:f}}_computeLabelArea(){if(this.options.ticks.mirror)return;const r=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:r.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:r.width}:void 0}drawBackground(){const{ctx:r,options:{backgroundColor:e},left:i,top:o,width:s,height:a}=this;e&&(r.save(),r.fillStyle=e,r.fillRect(i,o,s,a),r.restore())}getLineWidthForValue(r){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const o=this.ticks.findIndex(s=>s.value===r);return o>=0?e.setContext(this.getContext(o)).lineWidth:0}drawGrid(r){const e=this.options.grid,i=this.ctx,o=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(r));let s,a;const l=(c,d,f)=>{!f.width||!f.color||(i.save(),i.lineWidth=f.width,i.strokeStyle=f.color,i.setLineDash(f.borderDash||[]),i.lineDashOffset=f.borderDashOffset,i.beginPath(),i.moveTo(c.x,c.y),i.lineTo(d.x,d.y),i.stroke(),i.restore())};if(e.display)for(s=0,a=o.length;s<a;++s){const c=o[s];e.drawOnChartArea&&l({x:c.x1,y:c.y1},{x:c.x2,y:c.y2},c),e.drawTicks&&l({x:c.tx1,y:c.ty1},{x:c.tx2,y:c.ty2},{color:c.tickColor,width:c.tickWidth,borderDash:c.tickBorderDash,borderDashOffset:c.tickBorderDashOffset})}}drawBorder(){const{chart:r,ctx:e,options:{border:i,grid:o}}=this,s=i.setContext(this.getContext()),a=i.display?s.width:0;if(!a)return;const l=o.setContext(this.getContext(0)).lineWidth,c=this._borderValue;let d,f,v,w;this.isHorizontal()?(d=f2(r,this.left,a)-a/2,f=f2(r,this.right,l)+l/2,v=w=c):(v=f2(r,this.top,a)-a/2,w=f2(r,this.bottom,l)+l/2,d=f=c),e.save(),e.lineWidth=s.width,e.strokeStyle=s.color,e.beginPath(),e.moveTo(d,v),e.lineTo(f,w),e.stroke(),e.restore()}drawLabels(r){if(!this.options.ticks.display)return;const i=this.ctx,o=this._computeLabelArea();o&&TG(i,o);const s=this.getLabelItems(r);for(const a of s)m2(i,a.label,0,a.textOffset,a.font,a.options);o&&SG(i)}drawTitle(){const{ctx:r,options:{position:e,title:i,reverse:o}}=this;if(!i.display)return;const s=Op(i.font),a=kf(i.padding),l=i.align;let c=s.lineHeight/2;"bottom"===e||"center"===e||kl(e)?(c+=a.bottom,Vu(i.text)&&(c+=s.lineHeight*(i.text.length-1))):c+=a.top;const{titleX:d,titleY:f,maxWidth:v,rotation:w}=function Knt(t,r,e,i){const{top:o,left:s,bottom:a,right:l,chart:c}=t,{chartArea:d,scales:f}=c;let w,x,I,v=0;const M=a-o,F=l-s;if(t.isHorizontal()){if(x=Df(i,s,l),kl(e)){const re=Object.keys(e)[0];I=f[re].getPixelForValue(e[re])+M-r}else I="center"===e?(d.bottom+d.top)/2+M-r:Oce(t,e,r);w=l-s}else{if(kl(e)){const re=Object.keys(e)[0];x=f[re].getPixelForValue(e[re])-F+r}else x="center"===e?(d.left+d.right)/2-F+r:Oce(t,e,r);I=Df(i,a,o),v="left"===e?-Jd:Jd}return{titleX:x,titleY:I,maxWidth:w,rotation:v}}(this,c,e,l);m2(r,i.text,0,0,s,{color:i.color,maxWidth:v,rotation:w,textAlign:Xnt(l,e,o),textBaseline:"middle",translation:[d,f]})}draw(r){this._isVisible()&&(this.drawBackground(),this.drawGrid(r),this.drawBorder(),this.drawTitle(),this.drawLabels(r))}_layers(){const r=this.options,e=r.ticks&&r.ticks.z||0,i=Ba(r.grid&&r.grid.z,-1),o=Ba(r.border&&r.border.z,0);return this._isVisible()&&this.draw===C2.prototype.draw?[{z:i,draw:s=>{this.drawBackground(),this.drawGrid(s),this.drawTitle()}},{z:o,draw:()=>{this.drawBorder()}},{z:e,draw:s=>{this.drawLabels(s)}}]:[{z:e,draw:s=>{this.draw(s)}}]}getMatchingVisibleMetas(r){const e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",o=[];let s,a;for(s=0,a=e.length;s<a;++s){const l=e[s];l[i]===this.id&&(!r||l.type===r)&&o.push(l)}return o}_resolveTickFontOptions(r){return Op(this.options.ticks.setContext(this.getContext(r)).font)}_maxDigits(){const r=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/r}}class OG{constructor(r,e,i){this.type=r,this.scope=e,this.override=i,this.items=Object.create(null)}isForType(r){return Object.prototype.isPrototypeOf.call(this.type.prototype,r.prototype)}register(r){const e=Object.getPrototypeOf(r);let i;(function Znt(t){return"id"in t&&"defaults"in t})(e)&&(i=this.register(e));const o=this.items,s=r.id,a=this.scope+"."+s;if(!s)throw new Error("class does not have id: "+r);return s in o||(o[s]=r,function Qnt(t,r,e){const i=IF(Object.create(null),[e?sd.get(e):{},sd.get(r),t.defaults]);sd.set(r,i),t.defaultRoutes&&function Jnt(t,r){Object.keys(r).forEach(e=>{const i=e.split("."),o=i.pop(),s=[t].concat(i).join("."),a=r[e].split("."),l=a.pop(),c=a.join(".");sd.route(s,o,c,l)})}(r,t.defaultRoutes),t.descriptors&&sd.describe(r,t.descriptors)}(r,a,i),this.override&&sd.override(r.id,r.overrides)),a}get(r){return this.items[r]}unregister(r){const e=this.items,i=r.id,o=this.scope;i in e&&delete e[i],o&&i in sd[o]&&(delete sd[o][i],this.override&&delete h2[i])}}class eit{constructor(){this.controllers=new OG(bT,"datasets",!0),this.elements=new OG(Qb,"elements"),this.plugins=new OG(Object,"plugins"),this.scales=new OG(C2,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...r){this._each("register",r)}remove(...r){this._each("unregister",r)}addControllers(...r){this._each("register",r,this.controllers)}addElements(...r){this._each("register",r,this.elements)}addPlugins(...r){this._each("register",r,this.plugins)}addScales(...r){this._each("register",r,this.scales)}getController(r){return this._get(r,this.controllers,"controller")}getElement(r){return this._get(r,this.elements,"element")}getPlugin(r){return this._get(r,this.plugins,"plugin")}getScale(r){return this._get(r,this.scales,"scale")}removeControllers(...r){this._each("unregister",r,this.controllers)}removeElements(...r){this._each("unregister",r,this.elements)}removePlugins(...r){this._each("unregister",r,this.plugins)}removeScales(...r){this._each("unregister",r,this.scales)}_each(r,e,i){[...e].forEach(o=>{const s=i||this._getRegistryForType(o);i||s.isForType(o)||s===this.plugins&&o.id?this._exec(r,s,o):qc(o,a=>{const l=i||this._getRegistryForType(a);this._exec(r,l,a)})})}_exec(r,e,i){const o=Qz(r);Eu(i["before"+o],[],i),e[r](i),Eu(i["after"+o],[],i)}_getRegistryForType(r){for(let e=0;e<this._typedRegistries.length;e++){const i=this._typedRegistries[e];if(i.isForType(r))return i}return this.plugins}_get(r,e,i){const o=e.get(r);if(void 0===o)throw new Error('"'+r+'" is not a registered '+i+".");return o}}var Uy=new eit;class tit{constructor(){this._init=[]}notify(r,e,i,o){"beforeInit"===e&&(this._init=this._createDescriptors(r,!0),this._notify(this._init,r,"install"));const s=o?this._descriptors(r).filter(o):this._descriptors(r),a=this._notify(s,r,e,i);return"afterDestroy"===e&&(this._notify(s,r,"stop"),this._notify(this._init,r,"uninstall")),a}_notify(r,e,i,o){o=o||{};for(const s of r){const a=s.plugin;if(!1===Eu(a[i],[e,o,s.options],a)&&o.cancelable)return!1}return!0}invalidate(){nc(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(r){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(r);return this._notifyStateChanges(r),e}_createDescriptors(r,e){const i=r&&r.config,o=Ba(i.options&&i.options.plugins,{}),s=function nit(t){const r={},e=[],i=Object.keys(Uy.plugins.items);for(let s=0;s<i.length;s++)e.push(Uy.getPlugin(i[s]));const o=t.plugins||[];for(let s=0;s<o.length;s++){const a=o[s];-1===e.indexOf(a)&&(e.push(a),r[a.id]=!0)}return{plugins:e,localIds:r}}(i);return!1!==o||e?function rit(t,{plugins:r,localIds:e},i,o){const s=[],a=t.getContext();for(const l of r){const c=l.id,d=iit(i[c],o);null!==d&&s.push({plugin:l,options:oit(t.config,{plugin:l,local:e[c]},d,a)})}return s}(r,s,o,e):[]}_notifyStateChanges(r){const e=this._oldCache||[],i=this._cache,o=(s,a)=>s.filter(l=>!a.some(c=>l.plugin.id===c.plugin.id));this._notify(o(e,i),r,"stop"),this._notify(o(i,e),r,"start")}}function iit(t,r){return r||!1!==t?!0===t?{}:t:null}function oit(t,{plugin:r,local:e},i,o){const s=t.pluginScopeKeys(r),a=t.getOptionScopes(i,s);return e&&r.defaults&&a.push(r.defaults),t.createResolver(a,o,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function wq(t,r){return((r.datasets||{})[t]||{}).indexAxis||r.indexAxis||(sd.datasets[t]||{}).indexAxis||"x"}function Nce(t){if("x"===t||"y"===t||"r"===t)return t}function lit(t){return"top"===t||"bottom"===t?"x":"left"===t||"right"===t?"y":void 0}function Tq(t,...r){if(Nce(t))return t;for(const e of r){const i=e.axis||lit(e.position)||t.length>1&&Nce(t[0].toLowerCase());if(i)return i}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function Gce(t,r,e){if(e[r+"AxisID"]===t)return{axis:r}}function Bce(t){const r=t.options||(t.options={});r.plugins=Ba(r.plugins,{}),r.scales=function uit(t,r){const e=h2[t.type]||{scales:{}},i=r.scales||{},o=wq(t.type,r),s=Object.create(null);return Object.keys(i).forEach(a=>{const l=i[a];if(!kl(l))return console.error(`Invalid scale configuration for scale: ${a}`);if(l._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const c=Tq(a,l,function cit(t,r){if(r.data&&r.data.datasets){const e=r.data.datasets.filter(i=>i.xAxisID===t||i.yAxisID===t);if(e.length)return Gce(t,"x",e[0])||Gce(t,"y",e[0])}return{}}(a,t),sd.scales[l.type]),d=function ait(t,r){return t===r?"_index_":"_value_"}(c,o),f=e.scales||{};s[a]=AF(Object.create(null),[{axis:c},l,f[c],f[d]])}),t.data.datasets.forEach(a=>{const l=a.type||t.type,c=a.indexAxis||wq(l,r),f=(h2[l]||{}).scales||{};Object.keys(f).forEach(v=>{const w=function sit(t,r){let e=t;return"_index_"===t?e=r:"_value_"===t&&(e="x"===r?"y":"x"),e}(v,c),x=a[w+"AxisID"]||w;s[x]=s[x]||Object.create(null),AF(s[x],[{axis:w},i[x],f[v]])})}),Object.keys(s).forEach(a=>{const l=s[a];AF(l,[sd.scales[l.type],sd.scale])}),s}(t,r)}function Vce(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const jce=new Map,Hce=new Set;function FG(t,r){let e=jce.get(t);return e||(e=r(),jce.set(t,e),Hce.add(e)),e}const WF=(t,r,e)=>{const i=gT(r,e);void 0!==i&&t.add(i)};class pit{constructor(r){this._config=function dit(t){return(t=t||{}).data=Vce(t.data),Bce(t),t}(r),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(r){this._config.type=r}get data(){return this._config.data}set data(r){this._config.data=Vce(r)}get options(){return this._config.options}set options(r){this._config.options=r}get plugins(){return this._config.plugins}update(){const r=this._config;this.clearCache(),Bce(r)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(r){return FG(r,()=>[[`datasets.${r}`,""]])}datasetAnimationScopeKeys(r,e){return FG(`${r}.transition.${e}`,()=>[[`datasets.${r}.transitions.${e}`,`transitions.${e}`],[`datasets.${r}`,""]])}datasetElementScopeKeys(r,e){return FG(`${r}-${e}`,()=>[[`datasets.${r}.elements.${e}`,`datasets.${r}`,`elements.${e}`,""]])}pluginScopeKeys(r){const e=r.id;return FG(`${this.type}-plugin-${e}`,()=>[[`plugins.${e}`,...r.additionalOptionScopes||[]]])}_cachedScopes(r,e){const i=this._scopeCache;let o=i.get(r);return(!o||e)&&(o=new Map,i.set(r,o)),o}getOptionScopes(r,e,i){const{options:o,type:s}=this,a=this._cachedScopes(r,i),l=a.get(e);if(l)return l;const c=new Set;e.forEach(f=>{r&&(c.add(r),f.forEach(v=>WF(c,r,v))),f.forEach(v=>WF(c,o,v)),f.forEach(v=>WF(c,h2[s]||{},v)),f.forEach(v=>WF(c,sd,v)),f.forEach(v=>WF(c,rq,v))});const d=Array.from(c);return 0===d.length&&d.push(Object.create(null)),Hce.has(e)&&a.set(e,d),d}chartOptionScopes(){const{options:r,type:e}=this;return[r,h2[e]||{},sd.datasets[e]||{},{type:e},sd,rq]}resolveNamedOptions(r,e,i,o=[""]){const s={$shared:!0},{resolver:a,subPrefixes:l}=Uce(this._resolverCache,r,o);let c=a;(function fit(t,r){const{isScriptable:e,isIndexable:i}=Yle(t);for(const o of r){const s=e(o),a=i(o),l=(a||s)&&t[o];if(s&&(vT(l)||hit(l))||a&&Vu(l))return!0}return!1})(a,e)&&(s.$shared=!1,c=sI(a,i=vT(i)?i():i,this.createResolver(r,i,l)));for(const d of e)s[d]=c[d];return s}createResolver(r,e,i=[""],o){const{resolver:s}=Uce(this._resolverCache,r,i);return kl(e)?sI(s,e,void 0,o):s}}function Uce(t,r,e){let i=t.get(r);i||(i=new Map,t.set(r,i));const o=e.join();let s=i.get(o);return s||(s={resolver:lq(r,e),subPrefixes:e.filter(l=>!l.toLowerCase().includes("hover"))},i.set(o,s)),s}const hit=t=>kl(t)&&Object.getOwnPropertyNames(t).some(r=>vT(t[r])),git=["top","bottom","left","right","chartArea"];function $ce(t,r){return"top"===t||"bottom"===t||-1===git.indexOf(t)&&"x"===r}function Yce(t,r){return function(e,i){return e[t]===i[t]?e[r]-i[r]:e[t]-i[t]}}function Wce(t){const r=t.chart,e=r.options.animation;r.notifyPlugins("afterRender"),Eu(e&&e.onComplete,[t],r)}function vit(t){const r=t.chart,e=r.options.animation;Eu(e&&e.onProgress,[t],r)}function zce(t){return dq()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const PG={},qce=t=>{const r=zce(t);return Object.values(PG).filter(e=>e.canvas===r).pop()};function _it(t,r,e){const i=Object.keys(t);for(const o of i){const s=+o;if(s>=r){const a=t[o];delete t[o],(e>0||s>r)&&(t[s+e]=a)}}}function LG(t,r,e){return t.options.clip?t[e]:r[e]}let Sq=(()=>class t{static defaults=sd;static instances=PG;static overrides=h2;static registry=Uy;static version="4.4.7";static getChart=qce;static register(...e){Uy.add(...e),Xce()}static unregister(...e){Uy.remove(...e),Xce()}constructor(e,i){const o=this.config=new pit(i),s=zce(e),a=qce(s);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");const l=o.createResolver(o.chartOptionScopes(),this.getContext());this.platform=new(o.platform||function Nnt(t){return!dq()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?Snt:Lnt}(s)),this.platform.updateConfig(o);const c=this.platform.acquireContext(s,l.aspectRatio),d=c&&c.canvas,f=d&&d.height,v=d&&d.width;this.id=_et(),this.ctx=c,this.canvas=d,this.width=v,this.height=f,this._options=l,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new tit,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function Pet(t,r){let e;return function(...i){return r?(clearTimeout(e),e=setTimeout(t,r,i)):t.apply(this,i),r}}(w=>this.update(w),l.resizeDelay||0),this._dataChanges=[],PG[this.id]=this,c&&d?(Kb.listen(this,"complete",Wce),Kb.listen(this,"progress",vit),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:i},width:o,height:s,_aspectRatio:a}=this;return nc(e)?i&&a?a:s?o/s:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return Uy}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Zle(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Hle(this.canvas,this.ctx),this}stop(){return Kb.stop(this),this}resize(e,i){Kb.running(this)?this._resizeBeforeDraw={width:e,height:i}:this._resize(e,i)}_resize(e,i){const o=this.options,l=this.platform.getMaximumSize(this.canvas,e,i,o.maintainAspectRatio&&this.aspectRatio),c=o.devicePixelRatio||this.platform.getDevicePixelRatio(),d=this.width?"resize":"attach";this.width=l.width,this.height=l.height,this._aspectRatio=this.aspectRatio,Zle(this,c,!0)&&(this.notifyPlugins("resize",{size:l}),Eu(o.onResize,[this,l],this),this.attached&&this._doResize(d)&&this.render())}ensureScalesHaveIDs(){qc(this.options.scales||{},(o,s)=>{o.id=s})}buildOrUpdateScales(){const e=this.options,i=e.scales,o=this.scales,s=Object.keys(o).reduce((l,c)=>(l[c]=!1,l),{});let a=[];i&&(a=a.concat(Object.keys(i).map(l=>{const c=i[l],d=Tq(l,c),f="r"===d,v="x"===d;return{options:c,dposition:f?"chartArea":v?"bottom":"left",dtype:f?"radialLinear":v?"category":"linear"}}))),qc(a,l=>{const c=l.options,d=c.id,f=Tq(d,c),v=Ba(c.type,l.dtype);(void 0===c.position||$ce(c.position,f)!==$ce(l.dposition))&&(c.position=l.dposition),s[d]=!0;let w=null;d in o&&o[d].type===v?w=o[d]:(w=new(Uy.getScale(v))({id:d,type:v,ctx:this.ctx,chart:this}),o[w.id]=w),w.init(c,e)}),qc(s,(l,c)=>{l||delete o[c]}),qc(o,l=>{If.configure(this,l,l.options),If.addBox(this,l)})}_updateMetasets(){const e=this._metasets,i=this.data.datasets.length,o=e.length;if(e.sort((s,a)=>s.index-a.index),o>i){for(let s=i;s<o;++s)this._destroyDatasetMeta(s);e.splice(i,o-i)}this._sortedMetasets=e.slice(0).sort(Yce("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:i}}=this;e.length>i.length&&delete this._stacks,e.forEach((o,s)=>{0===i.filter(a=>a===o._dataset).length&&this._destroyDatasetMeta(s)})}buildOrUpdateControllers(){const e=[],i=this.data.datasets;let o,s;for(this._removeUnreferencedMetasets(),o=0,s=i.length;o<s;o++){const a=i[o];let l=this.getDatasetMeta(o);const c=a.type||this.config.type;if(l.type&&l.type!==c&&(this._destroyDatasetMeta(o),l=this.getDatasetMeta(o)),l.type=c,l.indexAxis=a.indexAxis||wq(c,this.options),l.order=a.order||0,l.index=o,l.label=""+a.label,l.visible=this.isDatasetVisible(o),l.controller)l.controller.updateIndex(o),l.controller.linkScales();else{const d=Uy.getController(c),{datasetElementType:f,dataElementType:v}=sd.datasets[c];Object.assign(d,{dataElementType:Uy.getElement(v),datasetElementType:f&&Uy.getElement(f)}),l.controller=new d(this,o),e.push(l.controller)}}return this._updateMetasets(),e}_resetElements(){qc(this.data.datasets,(e,i)=>{this.getDatasetMeta(i).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const i=this.config;i.update();const o=this._options=i.createResolver(i.chartOptionScopes(),this.getContext()),s=this._animationsDisabled=!o.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0}))return;const a=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let l=0;for(let f=0,v=this.data.datasets.length;f<v;f++){const{controller:w}=this.getDatasetMeta(f),x=!s&&-1===a.indexOf(w);w.buildOrUpdateElements(x),l=Math.max(+w.getMaxOverflow(),l)}l=this._minPadding=o.layout.autoPadding?l:0,this._updateLayout(l),s||qc(a,f=>{f.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(Yce("z","_idx"));const{_active:c,_lastEvent:d}=this;d?this._eventHandler(d,!0):c.length&&this._updateHoverStyles(c,c,!0),this.render()}_updateScales(){qc(this.scales,e=>{If.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,i=new Set(Object.keys(this._listeners)),o=new Set(e.events);(!Sle(i,o)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,i=this._getUniformDataChanges()||[];for(const{method:o,start:s,count:a}of i)_it(e,s,"_removeElements"===o?-a:a)}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const i=this.data.datasets.length,o=a=>new Set(e.filter(l=>l[0]===a).map((l,c)=>c+","+l.splice(1).join(","))),s=o(0);for(let a=1;a<i;a++)if(!Sle(s,o(a)))return;return Array.from(s).map(a=>a.split(",")).map(a=>({method:a[1],start:+a[2],count:+a[3]}))}_updateLayout(e){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;If.update(this,this.width,this.height,e);const i=this.chartArea,o=i.width<=0||i.height<=0;this._layers=[],qc(this.boxes,s=>{o&&"chartArea"===s.position||(s.configure&&s.configure(),this._layers.push(...s._layers()))},this),this._layers.forEach((s,a)=>{s._idx=a}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})){for(let i=0,o=this.data.datasets.length;i<o;++i)this.getDatasetMeta(i).controller.configure();for(let i=0,o=this.data.datasets.length;i<o;++i)this._updateDataset(i,vT(e)?e({datasetIndex:i}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,i){const o=this.getDatasetMeta(e),s={meta:o,index:e,mode:i,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",s)&&(o.controller._update(i),s.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",s))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(Kb.has(this)?this.attached&&!Kb.running(this)&&Kb.start(this):(this.draw(),Wce({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:o,height:s}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(o,s)}if(this.clear(),this.width<=0||this.height<=0||!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const i=this._layers;for(e=0;e<i.length&&i[e].z<=0;++e)i[e].draw(this.chartArea);for(this._drawDatasets();e<i.length;++e)i[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const i=this._sortedMetasets,o=[];let s,a;for(s=0,a=i.length;s<a;++s){const l=i[s];(!e||l.visible)&&o.push(l)}return o}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const e=this.getSortedVisibleDatasetMetas();for(let i=e.length-1;i>=0;--i)this._drawDataset(e[i]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const i=this.ctx,o=e._clip,s=!o.disabled,a=function bit(t,r){const{xScale:e,yScale:i}=t;return e&&i?{left:LG(e,r,"left"),right:LG(e,r,"right"),top:LG(i,r,"top"),bottom:LG(i,r,"bottom")}:r}(e,this.chartArea),l={meta:e,index:e.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",l)&&(s&&TG(i,{left:!1===o.left?0:a.left-o.left,right:!1===o.right?this.width:a.right+o.right,top:!1===o.top?0:a.top-o.top,bottom:!1===o.bottom?this.height:a.bottom+o.bottom}),e.controller.draw(),s&&SG(i),l.cancelable=!1,this.notifyPlugins("afterDatasetDraw",l))}isPointInArea(e){return Xb(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,i,o,s){const a=gnt.modes[i];return"function"==typeof a?a(this,e,o,s):[]}getDatasetMeta(e){const i=this.data.datasets[e],o=this._metasets;let s=o.filter(a=>a&&a._dataset===i).pop();return s||(s={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:i&&i.order||0,index:e,_dataset:i,_parsed:[],_sorted:!1},o.push(s)),s}getContext(){return this.$context||(this.$context=yT(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const i=this.data.datasets[e];if(!i)return!1;const o=this.getDatasetMeta(e);return"boolean"==typeof o.hidden?!o.hidden:!i.hidden}setDatasetVisibility(e,i){this.getDatasetMeta(e).hidden=!i}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,i,o){const s=o?"show":"hide",a=this.getDatasetMeta(e),l=a.controller._resolveAnimations(void 0,s);MF(i)?(a.data[i].hidden=!o,this.update()):(this.setDatasetVisibility(e,o),l.update(a,{visible:o}),this.update(c=>c.datasetIndex===e?s:void 0))}hide(e,i){this._updateVisibility(e,i,!1)}show(e,i){this._updateVisibility(e,i,!0)}_destroyDatasetMeta(e){const i=this._metasets[e];i&&i.controller&&i.controller._destroy(),delete this._metasets[e]}_stop(){let e,i;for(this.stop(),Kb.remove(this),e=0,i=this.data.datasets.length;e<i;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:i}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),Hle(e,i),this.platform.releaseContext(i),this.canvas=null,this.ctx=null),delete PG[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,i=this.platform,o=(a,l)=>{i.addEventListener(this,a,l),e[a]=l},s=(a,l,c)=>{a.offsetX=l,a.offsetY=c,this._eventHandler(a)};qc(this.options.events,a=>o(a,s))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,i=this.platform,o=(d,f)=>{i.addEventListener(this,d,f),e[d]=f},s=(d,f)=>{e[d]&&(i.removeEventListener(this,d,f),delete e[d])},a=(d,f)=>{this.canvas&&this.resize(d,f)};let l;const c=()=>{s("attach",c),this.attached=!0,this.resize(),o("resize",a),o("detach",l)};l=()=>{this.attached=!1,s("resize",a),this._stop(),this._resize(0,0),o("attach",c)},i.isAttached(this.canvas)?c():l()}unbindEvents(){qc(this._listeners,(e,i)=>{this.platform.removeEventListener(this,i,e)}),this._listeners={},qc(this._responsiveListeners,(e,i)=>{this.platform.removeEventListener(this,i,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,i,o){const s=o?"set":"remove";let a,l,c,d;for("dataset"===i&&(a=this.getDatasetMeta(e[0].datasetIndex),a.controller["_"+s+"DatasetHoverStyle"]()),c=0,d=e.length;c<d;++c){l=e[c];const f=l&&this.getDatasetMeta(l.datasetIndex).controller;f&&f[s+"HoverStyle"](l.element,l.datasetIndex,l.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const i=this._active||[],o=e.map(({datasetIndex:a,index:l})=>{const c=this.getDatasetMeta(a);if(!c)throw new Error("No dataset found at index "+a);return{datasetIndex:a,element:c.data[l],index:l}});!vG(o,i)&&(this._active=o,this._lastEvent=null,this._updateHoverStyles(o,i))}notifyPlugins(e,i,o){return this._plugins.notify(this,e,i,o)}isPluginEnabled(e){return 1===this._plugins._cache.filter(i=>i.plugin.id===e).length}_updateHoverStyles(e,i,o){const s=this.options.hover,a=(d,f)=>d.filter(v=>!f.some(w=>v.datasetIndex===w.datasetIndex&&v.index===w.index)),l=a(i,e),c=o?e:a(e,i);l.length&&this.updateHoverStyle(l,s.mode,!1),c.length&&s.mode&&this.updateHoverStyle(c,s.mode,!0)}_eventHandler(e,i){const o={event:e,replay:i,cancelable:!0,inChartArea:this.isPointInArea(e)},s=l=>(l.options.events||this.options.events).includes(e.native.type);if(!1===this.notifyPlugins("beforeEvent",o,s))return;const a=this._handleEvent(e,i,o.inChartArea);return o.cancelable=!1,this.notifyPlugins("afterEvent",o,s),(a||o.changed)&&this.render(),this}_handleEvent(e,i,o){const{_active:s=[],options:a}=this,c=this._getActiveElements(e,s,o,i),d=function xet(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(e),f=function yit(t,r,e,i){return e&&"mouseout"!==t.type?i?r:t:null}(e,this._lastEvent,o,d);o&&(this._lastEvent=null,Eu(a.onHover,[e,c,this],this),d&&Eu(a.onClick,[e,c,this],this));const v=!vG(c,s);return(v||i)&&(this._active=c,this._updateHoverStyles(c,s,i)),this._lastEvent=f,v}_getActiveElements(e,i,o,s){if("mouseout"===e.type)return[];if(!o)return i;const a=this.options.hover;return this.getElementsAtEventForMode(e,a.mode,a,s)}})();function Xce(){return qc(Sq.instances,t=>t._plugins.invalidate())}function cI(t,r,e,i){return{x:e+t*Math.cos(r),y:i+t*Math.sin(r)}}function NG(t,r,e,i,o,s){const{x:a,y:l,startAngle:c,pixelMargin:d,innerRadius:f}=r,v=Math.max(r.outerRadius+i+e-d,0),w=f>0?f+i+e+d:0;let x=0;const I=o-c;if(i){const Lr=((f>0?f-i:0)+(v>0?v-i:0))/2;x=(I-(0!==Lr?I*Lr/(Lr+i):I))/2}const F=(I-Math.max(.001,I*v-e/ju)/v)/2,re=c+F+x,pe=o-F-x,{outerStart:we,outerEnd:je,innerStart:tt,innerEnd:nt}=function Tit(t,r,e,i){const o=function wit(t){return aq(t,["outerStart","outerEnd","innerStart","innerEnd"])}(t.options.borderRadius),s=(e-r)/2,a=Math.min(s,i*r/2),l=c=>{const d=(e-Math.min(s,c))*i/2;return lh(c,0,Math.min(s,d))};return{outerStart:l(o.outerStart),outerEnd:l(o.outerEnd),innerStart:lh(o.innerStart,0,a),innerEnd:lh(o.innerEnd,0,a)}}(r,w,v,pe-re),rt=v-we,lt=v-je,bt=re+we/rt,Wt=pe-je/lt,Zt=w+tt,en=w+nt,ci=re+tt/Zt,Wi=pe-nt/en;if(t.beginPath(),s){const ki=(bt+Wt)/2;if(t.arc(a,l,v,bt,ki),t.arc(a,l,v,ki,Wt),je>0){const cr=cI(lt,Wt,a,l);t.arc(cr.x,cr.y,je,Wt,pe+Jd)}const Xr=cI(en,pe,a,l);if(t.lineTo(Xr.x,Xr.y),nt>0){const cr=cI(en,Wi,a,l);t.arc(cr.x,cr.y,nt,pe+Jd,Wi+Math.PI)}const Lr=(pe-nt/w+(re+tt/w))/2;if(t.arc(a,l,w,pe-nt/w,Lr,!0),t.arc(a,l,w,Lr,re+tt/w,!0),tt>0){const cr=cI(Zt,ci,a,l);t.arc(cr.x,cr.y,tt,ci+Math.PI,re-Jd)}const Jo=cI(rt,re,a,l);if(t.lineTo(Jo.x,Jo.y),we>0){const cr=cI(rt,bt,a,l);t.arc(cr.x,cr.y,we,re-Jd,bt)}}else{t.moveTo(a,l);const ki=Math.cos(bt)*v+a,Xr=Math.sin(bt)*v+l;t.lineTo(ki,Xr);const Lr=Math.cos(Wt)*v+a,Jo=Math.sin(Wt)*v+l;t.lineTo(Lr,Jo)}t.closePath()}function Kce(t,r,e=r){t.lineCap=Ba(e.borderCapStyle,r.borderCapStyle),t.setLineDash(Ba(e.borderDash,r.borderDash)),t.lineDashOffset=Ba(e.borderDashOffset,r.borderDashOffset),t.lineJoin=Ba(e.borderJoinStyle,r.borderJoinStyle),t.lineWidth=Ba(e.borderWidth,r.borderWidth),t.strokeStyle=Ba(e.borderColor,r.borderColor)}function Dit(t,r,e){t.lineTo(e.x,e.y)}function Qce(t,r,e={}){const i=t.length,{start:o=0,end:s=i-1}=e,{start:a,end:l}=r,c=Math.max(o,a),d=Math.min(s,l);return{count:i,start:c,loop:r.loop,ilen:d<c&&!(o<a&&s<a||o>l&&s>l)?i+d-c:d-c}}function Iit(t,r,e,i){const{points:o,options:s}=r,{count:a,start:l,loop:c,ilen:d}=Qce(o,e,i),f=function kit(t){return t.stepped?zet:t.tension||"monotone"===t.cubicInterpolationMode?qet:Dit}(s);let x,I,M,{move:v=!0,reverse:w}=i||{};for(x=0;x<=d;++x)I=o[(l+(w?d-x:x))%a],!I.skip&&(v?(t.moveTo(I.x,I.y),v=!1):f(t,M,I,w,s.stepped),M=I);return c&&(I=o[(l+(w?d:0))%a],f(t,M,I,w,s.stepped)),!!c}function Ait(t,r,e,i){const o=r.points,{count:s,start:a,ilen:l}=Qce(o,e,i),{move:c=!0,reverse:d}=i||{};let w,x,I,M,F,re,f=0,v=0;const pe=je=>(a+(d?l-je:je))%s,we=()=>{M!==F&&(t.lineTo(f,F),t.lineTo(f,M),t.lineTo(f,re))};for(c&&(x=o[pe(0)],t.moveTo(x.x,x.y)),w=0;w<=l;++w){if(x=o[pe(w)],x.skip)continue;const je=x.x,tt=x.y,nt=0|je;nt===I?(tt<M?M=tt:tt>F&&(F=tt),f=(v*f+je)/++v):(we(),t.lineTo(je,tt),I=nt,v=0,M=F=tt),re=tt}we()}function xq(t){const r=t.options;return t._decimated||t._loop||r.tension||"monotone"===r.cubicInterpolationMode||r.stepped||r.borderDash&&r.borderDash.length?Iit:Ait}const Fit="function"==typeof Path2D;let GG=(()=>class t extends Qb{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:e=>"borderDash"!==e&&"fill"!==e};constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,i){const o=this.options;!o.tension&&"monotone"!==o.cubicInterpolationMode||o.stepped||this._pointsUpdated||(_tt(this._points,o,e,o.spanGaps?this._loop:this._fullLoop,i),this._pointsUpdated=!0)}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function Ott(t,r){const e=t.points,i=t.options.spanGaps,o=e.length;if(!o)return[];const s=!!t._loop,{start:a,end:l}=function Mtt(t,r,e,i){let o=0,s=r-1;if(e&&!i)for(;o<r&&!t[o].skip;)o++;for(;o<r&&t[o].skip;)o++;for(o%=r,e&&(s+=o);s>o&&t[s%r].skip;)s--;return s%=r,{start:o,end:s}}(e,o,s,i);return function ace(t,r,e,i){return i&&i.setContext&&e?function Ftt(t,r,e,i){const o=t._chart.getContext(),s=lce(t.options),{_datasetIndex:a,options:{spanGaps:l}}=t,c=e.length,d=[];let f=s,v=r[0].start,w=v;function x(I,M,F,re){const pe=l?-1:1;if(I!==M){for(I+=c;e[I%c].skip;)I-=pe;for(;e[M%c].skip;)M+=pe;I%c!=M%c&&(d.push({start:I%c,end:M%c,loop:F,style:re}),f=re,v=M%c)}}for(const I of r){v=l?v:I.start;let F,M=e[v%c];for(w=v+1;w<=I.end;w++){const re=e[w%c];F=lce(i.setContext(yT(o,{type:"segment",p0:M,p1:re,p0DataIndex:(w-1)%c,p1DataIndex:w%c,datasetIndex:a}))),Ptt(F,f)&&x(v,w-1,I.loop,f),M=re,f=F}v<w-1&&x(v,w-1,I.loop,f)}return d}(t,r,e,i):r}(t,!0===i?[{start:a,end:l,loop:s}]:function Rtt(t,r,e,i){const o=t.length,s=[];let c,a=r,l=t[r];for(c=r+1;c<=e;++c){const d=t[c%o];d.skip||d.stop?l.skip||(s.push({start:r%o,end:(c-1)%o,loop:i=!1}),r=a=d.stop?c:null):(a=c,l.skip&&(r=c)),l=d}return null!==a&&s.push({start:r%o,end:a%o,loop:i}),s}(e,a,l<a?l+o:l,!!t._fullLoop&&0===a&&l===o-1),e,r)}(this,this.options.segment))}first(){const e=this.segments;return e.length&&this.points[e[0].start]}last(){const e=this.segments,o=e.length;return o&&this.points[e[o-1].end]}interpolate(e,i){const o=this.options,s=e[i],a=this.points,l=sce(this,{property:i,start:s,end:s});if(!l.length)return;const c=[],d=function Mit(t){return t.stepped?Ett:t.tension||"monotone"===t.cubicInterpolationMode?Dtt:y2}(o);let f,v;for(f=0,v=l.length;f<v;++f){const{start:w,end:x}=l[f],I=a[w],M=a[x];if(I===M){c.push(I);continue}const re=d(I,M,Math.abs((s-I[i])/(M[i]-I[i])),o.stepped);re[i]=e[i],c.push(re)}return 1===c.length?c[0]:c}pathSegment(e,i,o){return xq(this)(e,this,i,o)}path(e,i,o){const s=this.segments,a=xq(this);let l=this._loop;i=i||0,o=o||this.points.length-i;for(const c of s)l&=a(e,this,c,{start:i,end:i+o-1});return!!l}draw(e,i,o,s){(this.points||[]).length&&(this.options||{}).borderWidth&&(e.save(),function Pit(t,r,e,i){Fit&&!r.options.segment?function Rit(t,r,e,i){let o=r._path;o||(o=r._path=new Path2D,r.path(o,e,i)&&o.closePath()),Kce(t,r.options),t.stroke(o)}(t,r,e,i):function Oit(t,r,e,i){const{segments:o,options:s}=r,a=xq(r);for(const l of o)Kce(t,s,l.style),t.beginPath(),a(t,r,l,{start:e,end:e+i-1})&&t.closePath(),t.stroke()}(t,r,e,i)}(e,this,o,s),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}})();function Jce(t,r,e,i){const o=t.options,{[e]:s}=t.getProps([e],i);return Math.abs(r-s)<o.radius+o.hitRadius}let Lit=(()=>class t extends Qb{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,i,o){const s=this.options,{x:a,y:l}=this.getProps(["x","y"],o);return Math.pow(e-a,2)+Math.pow(i-l,2)<Math.pow(s.hitRadius+s.radius,2)}inXRange(e,i){return Jce(this,e,"x",i)}inYRange(e,i){return Jce(this,e,"y",i)}getCenterPoint(e){const{x:i,y:o}=this.getProps(["x","y"],e);return{x:i,y:o}}size(e){let i=(e=e||this.options||{}).radius||0;return i=Math.max(i,i&&e.hoverRadius||0),2*(i+(i&&e.borderWidth||0))}draw(e,i){const o=this.options;this.skip||o.radius<.1||!Xb(this,i,this.size(o)/2)||(e.strokeStyle=o.borderColor,e.lineWidth=o.borderWidth,e.fillStyle=o.backgroundColor,sq(e,o,this.x,this.y))}getRange(){const e=this.options||{};return e.radius+e.hitRadius}})();function Zce(t,r){const{x:e,y:i,base:o,width:s,height:a}=t.getProps(["x","y","base","width","height"],r);let l,c,d,f,v;return t.horizontal?(v=a/2,l=Math.min(e,o),c=Math.max(e,o),d=i-v,f=i+v):(v=s/2,l=e-v,c=e+v,d=Math.min(i,o),f=Math.max(i,o)),{left:l,top:d,right:c,bottom:f}}function CT(t,r,e,i){return t?0:lh(r,e,i)}function Eq(t,r,e,i){const o=null===r,s=null===e,l=t&&!(o&&s)&&Zce(t,i);return l&&(o||zb(r,l.left,l.right))&&(s||zb(e,l.top,l.bottom))}function jit(t,r){t.rect(r.x,r.y,r.w,r.h)}function Dq(t,r,e={}){const i=t.x!==e.x?-r:0,o=t.y!==e.y?-r:0;return{x:t.x+i,y:t.y+o,w:t.w+((t.x+t.w!==e.x+e.w?r:0)-i),h:t.h+((t.y+t.h!==e.y+e.h?r:0)-o),radius:t.radius}}var Uit=Object.freeze({__proto__:null,ArcElement:class Eit extends Qb{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:r=>"borderDash"!==r};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(r){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,r&&Object.assign(this,r)}inRange(r,e,i){const o=this.getProps(["x","y"],i),{angle:s,distance:a}=Ile(o,{x:r,y:e}),{startAngle:l,endAngle:c,innerRadius:d,outerRadius:f,circumference:v}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),w=(this.options.spacing+this.options.borderWidth)/2,x=Ba(v,c-l),I=OF(s,l,c)&&l!==c,M=x>=Hu||I,F=zb(a,d+w,f+w);return M&&F}getCenterPoint(r){const{x:e,y:i,startAngle:o,endAngle:s,innerRadius:a,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],r),{offset:c,spacing:d}=this.options,f=(o+s)/2,v=(a+l+d+c)/2;return{x:e+Math.cos(f)*v,y:i+Math.sin(f)*v}}tooltipPosition(r){return this.getCenterPoint(r)}draw(r){const{options:e,circumference:i}=this,o=(e.offset||0)/4,s=(e.spacing||0)/2,a=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=i>Hu?Math.floor(i/Hu):0,0===i||this.innerRadius<0||this.outerRadius<0)return;r.save();const l=(this.startAngle+this.endAngle)/2;r.translate(Math.cos(l)*o,Math.sin(l)*o);const d=o*(1-Math.sin(Math.min(ju,i||0)));r.fillStyle=e.backgroundColor,r.strokeStyle=e.borderColor,function Sit(t,r,e,i,o){const{fullCircles:s,startAngle:a,circumference:l}=r;let c=r.endAngle;if(s){NG(t,r,e,i,c,o);for(let d=0;d<s;++d)t.fill();isNaN(l)||(c=a+(l%Hu||Hu))}NG(t,r,e,i,c,o),t.fill()}(r,this,d,s,a),function xit(t,r,e,i,o){const{fullCircles:s,startAngle:a,circumference:l,options:c}=r,{borderWidth:d,borderJoinStyle:f,borderDash:v,borderDashOffset:w}=c,x="inner"===c.borderAlign;if(!d)return;t.setLineDash(v||[]),t.lineDashOffset=w,x?(t.lineWidth=2*d,t.lineJoin=f||"round"):(t.lineWidth=d,t.lineJoin=f||"bevel");let I=r.endAngle;if(s){NG(t,r,e,i,I,o);for(let M=0;M<s;++M)t.stroke();isNaN(l)||(I=a+(l%Hu||Hu))}x&&function Cit(t,r,e){const{startAngle:i,pixelMargin:o,x:s,y:a,outerRadius:l,innerRadius:c}=r;let d=o/l;t.beginPath(),t.arc(s,a,l,i-d,e+d),c>o?(d=o/c,t.arc(s,a,c,e+d,i-d,!0)):t.arc(s,a,o,e+Jd,i-Jd),t.closePath(),t.clip()}(t,r,I),s||(NG(t,r,e,i,I,o),t.stroke())}(r,this,d,s,a),r.restore()}},BarElement:class Hit extends Qb{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(r){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,r&&Object.assign(this,r)}draw(r){const{inflateAmount:e,options:{borderColor:i,backgroundColor:o}}=this,{inner:s,outer:a}=function Bit(t){const r=Zce(t),e=r.right-r.left,i=r.bottom-r.top,o=function Nit(t,r,e){const o=t.borderSkipped,s=$le(t.options.borderWidth);return{t:CT(o.top,s.top,0,e),r:CT(o.right,s.right,0,r),b:CT(o.bottom,s.bottom,0,e),l:CT(o.left,s.left,0,r)}}(t,e/2,i/2),s=function Git(t,r,e){const{enableBorderRadius:i}=t.getProps(["enableBorderRadius"]),o=t.options.borderRadius,s=g2(o),a=Math.min(r,e),l=t.borderSkipped,c=i||kl(o);return{topLeft:CT(!c||l.top||l.left,s.topLeft,0,a),topRight:CT(!c||l.top||l.right,s.topRight,0,a),bottomLeft:CT(!c||l.bottom||l.left,s.bottomLeft,0,a),bottomRight:CT(!c||l.bottom||l.right,s.bottomRight,0,a)}}(t,e/2,i/2);return{outer:{x:r.left,y:r.top,w:e,h:i,radius:s},inner:{x:r.left+o.l,y:r.top+o.t,w:e-o.l-o.r,h:i-o.t-o.b,radius:{topLeft:Math.max(0,s.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,s.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,s.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,s.bottomRight-Math.max(o.b,o.r))}}}}(this),l=function Vit(t){return t.topLeft||t.topRight||t.bottomLeft||t.bottomRight}(a.radius)?NF:jit;r.save(),(a.w!==s.w||a.h!==s.h)&&(r.beginPath(),l(r,Dq(a,e,s)),r.clip(),l(r,Dq(s,-e,a)),r.fillStyle=i,r.fill("evenodd")),r.beginPath(),l(r,Dq(s,e)),r.fillStyle=o,r.fill(),r.restore()}inRange(r,e,i){return Eq(this,r,e,i)}inXRange(r,e){return Eq(this,r,null,e)}inYRange(r,e){return Eq(this,null,r,e)}getCenterPoint(r){const{x:e,y:i,base:o,horizontal:s}=this.getProps(["x","y","base","horizontal"],r);return{x:s?(e+o)/2:e,y:s?i:(i+o)/2}}getRange(r){return"x"===r?this.width/2:this.height/2}},LineElement:GG,PointElement:Lit});const kq=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],eue=kq.map(t=>t.replace("rgb(","rgba(").replace(")",", 0.5)"));function tue(t){return kq[t%kq.length]}function nue(t){return eue[t%eue.length]}function iue(t){let r;for(r in t)if(t[r].borderColor||t[r].backgroundColor)return!0;return!1}var Kit={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,r,e){if(!e.enabled)return;const{data:{datasets:i},options:o}=t.config,{elements:s}=o,a=iue(i)||function qit(t){return t&&(t.borderColor||t.backgroundColor)}(o)||s&&iue(s)||function Xit(){return"rgba(0,0,0,0.1)"!==sd.borderColor||"rgba(0,0,0,0.1)"!==sd.backgroundColor}();if(!e.forceOverride&&a)return;const l=function zit(t){let r=0;return(e,i)=>{const o=t.getDatasetMeta(i).controller;o instanceof vq?r=function Yit(t,r){return t.backgroundColor=t.data.map(()=>tue(r++)),r}(e,r):o instanceof Cce?r=function Wit(t,r){return t.backgroundColor=t.data.map(()=>nue(r++)),r}(e,r):o&&(r=function $it(t,r){return t.borderColor=tue(r),t.backgroundColor=nue(r),++r}(e,r))}}(t);i.forEach(l)}};function rue(t){if(t._decimated){const r=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,writable:!0,value:r})}}function oue(t){t.data.datasets.forEach(r=>{rue(r)})}var ert={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,r,e)=>{if(!e.enabled)return void oue(t);const i=t.width;t.data.datasets.forEach((o,s)=>{const{_data:a,indexAxis:l}=o,c=t.getDatasetMeta(s),d=a||o.data;if("y"===GF([l,t.options.indexAxis])||!c.controller.supportsDecimation)return;const f=t.scales[c.xAxisID];if("linear"!==f.type&&"time"!==f.type||t.options.parsing)return;let I,{start:v,count:w}=function Zit(t,r){const e=r.length;let o,i=0;const{iScale:s}=t,{min:a,max:l,minDefined:c,maxDefined:d}=s.getUserBounds();return c&&(i=lh(qb(r,s.axis,a).lo,0,e-1)),o=d?lh(qb(r,s.axis,l).hi+1,i,e)-i:e-i,{start:i,count:o}}(c,d);if(w<=(e.threshold||4*i))rue(o);else{switch(nc(a)&&(o._data=d,delete o.data,Object.defineProperty(o,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(M){this._data=M}})),e.algorithm){case"lttb":I=function Qit(t,r,e,i,o){const s=o.samples||i;if(s>=e)return t.slice(r,r+e);const a=[],l=(e-2)/(s-2);let c=0;const d=r+e-1;let v,w,x,I,M,f=r;for(a[c++]=t[f],v=0;v<s-2;v++){let pe,F=0,re=0;const we=Math.floor((v+1)*l)+1+r,je=Math.min(Math.floor((v+2)*l)+1,e)+r,tt=je-we;for(pe=we;pe<je;pe++)F+=t[pe].x,re+=t[pe].y;F/=tt,re/=tt;const nt=Math.floor(v*l)+1+r,rt=Math.min(Math.floor((v+1)*l)+1,e)+r,{x:lt,y:bt}=t[f];for(x=I=-1,pe=nt;pe<rt;pe++)I=.5*Math.abs((lt-F)*(t[pe].y-bt)-(lt-t[pe].x)*(re-bt)),I>x&&(x=I,w=t[pe],M=pe);a[c++]=w,f=M}return a[c++]=t[d],a}(d,v,w,i,e);break;case"min-max":I=function Jit(t,r,e,i){let a,l,c,d,f,v,w,x,I,M,o=0,s=0;const F=[],pe=t[r].x,je=t[r+e-1].x-pe;for(a=r;a<r+e;++a){l=t[a],c=(l.x-pe)/je*i,d=l.y;const tt=0|c;if(tt===f)d<I?(I=d,v=a):d>M&&(M=d,w=a),o=(s*o+l.x)/++s;else{const nt=a-1;if(!nc(v)&&!nc(w)){const rt=Math.min(v,w),lt=Math.max(v,w);rt!==x&&rt!==nt&&F.push({...t[rt],x:o}),lt!==x&&lt!==nt&&F.push({...t[lt],x:o})}a>0&&nt!==x&&F.push(t[nt]),F.push(l),f=tt,s=0,I=M=d,v=w=x=a}}return F}(d,v,w,i);break;default:throw new Error(`Unsupported decimation algorithm '${e.algorithm}'`)}o._decimated=I}})},destroy(t){oue(t)}};function Iq(t,r,e,i){if(i)return;let o=r[t],s=e[t];return"angle"===t&&(o=Dg(o),s=Dg(s)),{property:t,start:o,end:s}}function Aq(t,r,e){for(;r>t;r--){const i=e[r];if(!isNaN(i.x)&&!isNaN(i.y))break}return r}function sue(t,r,e,i){return t&&r?i(t[e],r[e]):t?t[e]:r?r[e]:0}function aue(t,r){let e=[],i=!1;return Vu(t)?(i=!0,e=t):e=function nrt(t,r){const{x:e=null,y:i=null}=t||{},o=r.points,s=[];return r.segments.forEach(({start:a,end:l})=>{l=Aq(a,l,o);const c=o[a],d=o[l];null!==i?(s.push({x:c.x,y:i}),s.push({x:d.x,y:i})):null!==e&&(s.push({x:e,y:c.y}),s.push({x:e,y:d.y}))}),s}(t,r),e.length?new GG({points:e,options:{tension:0},_loop:i,_fullLoop:i}):null}function lue(t){return t&&!1!==t.fill}function irt(t,r,e){let o=t[r].fill;const s=[r];let a;if(!e)return o;for(;!1!==o&&-1===s.indexOf(o);){if(!Pd(o))return o;if(a=t[o],!a)return!1;if(a.visible)return o;s.push(o),o=a.fill}return!1}function rrt(t,r,e){const i=function lrt(t){const r=t.options,e=r.fill;let i=Ba(e&&e.target,e);return void 0===i&&(i=!!r.backgroundColor),!1!==i&&null!==i&&(!0===i?"origin":i)}(t);if(kl(i))return!isNaN(i.value)&&i;let o=parseFloat(i);return Pd(o)&&Math.floor(o)===o?function ort(t,r,e,i){return("-"===t||"+"===t)&&(e=r+e),!(e===r||e<0||e>=i)&&e}(i[0],r,o,e):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function drt(t,r,e){const i=[];for(let o=0;o<e.length;o++){const s=e[o],{first:a,last:l,point:c}=prt(s,r,"x");if(!(!c||a&&l))if(a)i.unshift(c);else if(t.push(c),!l)break}t.push(...i)}function prt(t,r,e){const i=t.interpolate(r,e);if(!i)return{};const o=i[e],s=t.segments,a=t.points;let l=!1,c=!1;for(let d=0;d<s.length;d++){const f=s[d],v=a[f.start][e],w=a[f.end][e];if(zb(o,v,w)){l=o===v,c=o===w;break}}return{first:l,last:c,point:i}}class cue{constructor(r){this.x=r.x,this.y=r.y,this.radius=r.radius}pathSegment(r,e,i){const{x:o,y:s,radius:a}=this;return r.arc(o,s,a,(e=e||{start:0,end:Hu}).end,e.start,!0),!i.bounds}interpolate(r){const{x:e,y:i,radius:o}=this,s=r.angle;return{x:e+Math.cos(s)*o,y:i+Math.sin(s)*o,angle:s}}}function Mq(t,r,e){const i=function hrt(t){const{chart:r,fill:e,line:i}=t;if(Pd(e))return function frt(t,r){const e=t.getDatasetMeta(r);return e&&t.isDatasetVisible(r)?e.dataset:null}(r,e);if("stack"===e)return function crt(t){const{scale:r,index:e,line:i}=t,o=[],s=i.segments,a=i.points,l=function urt(t,r){const e=[],i=t.getMatchingVisibleMetas("line");for(let o=0;o<i.length;o++){const s=i[o];if(s.index===r)break;s.hidden||e.unshift(s.dataset)}return e}(r,e);l.push(aue({x:null,y:r.bottom},i));for(let c=0;c<s.length;c++){const d=s[c];for(let f=d.start;f<=d.end;f++)drt(o,a[f],l)}return new GG({points:o,options:{}})}(t);if("shape"===e)return!0;const o=function mrt(t){return(t.scale||{}).getPointPositionForValue?function vrt(t){const{scale:r,fill:e}=t,i=r.options,o=r.getLabels().length,s=i.reverse?r.max:r.min,a=function art(t,r,e){let i;return i="start"===t?e:"end"===t?r.options.reverse?r.min:r.max:kl(t)?t.value:r.getBaseValue(),i}(e,r,s),l=[];if(i.grid.circular){const c=r.getPointPositionForValue(0,s);return new cue({x:c.x,y:c.y,radius:r.getDistanceFromCenterForValue(a)})}for(let c=0;c<o;++c)l.push(r.getPointPositionForValue(c,a));return l}(t):function grt(t){const{scale:r={},fill:e}=t,i=function srt(t,r){let e=null;return"start"===t?e=r.bottom:"end"===t?e=r.top:kl(t)?e=r.getPixelForValue(t.value):r.getBasePixel&&(e=r.getBasePixel()),e}(e,r);if(Pd(i)){const o=r.isHorizontal();return{x:o?i:null,y:o?null:i}}return null}(t)}(t);return o instanceof cue?o:aue(o,i)}(r),{line:o,scale:s,axis:a}=r,l=o.options,c=l.fill,d=l.backgroundColor,{above:f=d,below:v=d}=c||{};i&&o.points.length&&(TG(t,e),function _rt(t,r){const{line:e,target:i,above:o,below:s,area:a,scale:l}=r,c=e._loop?"angle":r.axis;t.save(),"x"===c&&s!==o&&(uue(t,i,a.top),due(t,{line:e,target:i,color:o,scale:l,property:c}),t.restore(),t.save(),uue(t,i,a.bottom)),due(t,{line:e,target:i,color:s,scale:l,property:c}),t.restore()}(t,{line:o,target:i,above:f,below:v,area:e,scale:s,axis:a}),SG(t))}function uue(t,r,e){const{segments:i,points:o}=r;let s=!0,a=!1;t.beginPath();for(const l of i){const{start:c,end:d}=l,f=o[c],v=o[Aq(c,d,o)];s?(t.moveTo(f.x,f.y),s=!1):(t.lineTo(f.x,e),t.lineTo(f.x,f.y)),a=!!r.pathSegment(t,l,{move:a}),a?t.closePath():t.lineTo(v.x,e)}t.lineTo(r.first().x,e),t.closePath(),t.clip()}function due(t,r){const{line:e,target:i,property:o,color:s,scale:a}=r,l=function trt(t,r,e){const i=t.segments,o=t.points,s=r.points,a=[];for(const l of i){let{start:c,end:d}=l;d=Aq(c,d,o);const f=Iq(e,o[c],o[d],l.loop);if(!r.segments){a.push({source:l,target:f,start:o[c],end:o[d]});continue}const v=sce(r,f);for(const w of v){const x=Iq(e,s[w.start],s[w.end],w.loop),I=oce(l,o,x);for(const M of I)a.push({source:M,target:w,start:{[e]:sue(f,x,"start",Math.max)},end:{[e]:sue(f,x,"end",Math.min)}})}}return a}(e,i,o);for(const{source:c,target:d,start:f,end:v}of l){const{style:{backgroundColor:w=s}={}}=c,x=!0!==i;t.save(),t.fillStyle=w,yrt(t,a,x&&Iq(o,f,v)),t.beginPath();const I=!!e.pathSegment(t,c);let M;if(x){I?t.closePath():pue(t,i,v,o);const F=!!i.pathSegment(t,d,{move:I,reverse:!0});M=I&&F,M||pue(t,i,f,o)}t.closePath(),t.fill(M?"evenodd":"nonzero"),t.restore()}}function yrt(t,r,e){const{top:i,bottom:o}=r.chart.chartArea,{property:s,start:a,end:l}=e||{};"x"===s&&(t.beginPath(),t.rect(a,i,l-a,o-i),t.clip())}function pue(t,r,e,i){const o=r.interpolate(e,i);o&&t.lineTo(o.x,o.y)}var brt={id:"filler",afterDatasetsUpdate(t,r,e){const i=(t.data.datasets||[]).length,o=[];let s,a,l,c;for(a=0;a<i;++a)s=t.getDatasetMeta(a),l=s.dataset,c=null,l&&l.options&&l instanceof GG&&(c={visible:t.isDatasetVisible(a),index:a,fill:rrt(l,a,i),chart:t,axis:s.controller.options.indexAxis,scale:s.vScale,line:l}),s.$filler=c,o.push(c);for(a=0;a<i;++a)c=o[a],c&&!1!==c.fill&&(c.fill=irt(o,a,e.propagate))},beforeDraw(t,r,e){const i="beforeDraw"===e.drawTime,o=t.getSortedVisibleDatasetMetas(),s=t.chartArea;for(let a=o.length-1;a>=0;--a){const l=o[a].$filler;l&&(l.line.updateControlPoints(s,l.axis),i&&l.fill&&Mq(t.ctx,l,s))}},beforeDatasetsDraw(t,r,e){if("beforeDatasetsDraw"!==e.drawTime)return;const i=t.getSortedVisibleDatasetMetas();for(let o=i.length-1;o>=0;--o){const s=i[o].$filler;lue(s)&&Mq(t.ctx,s,t.chartArea)}},beforeDatasetDraw(t,r,e){const i=r.meta.$filler;!lue(i)||"beforeDatasetDraw"!==e.drawTime||Mq(t.ctx,i,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const hue=(t,r)=>{let{boxHeight:e=r,boxWidth:i=r}=t;return t.usePointStyle&&(e=Math.min(e,r),i=t.pointStyleWidth||Math.min(i,r)),{boxWidth:i,boxHeight:e,itemHeight:Math.max(r,e)}};class fue extends Qb{constructor(r){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=r.chart,this.options=r.options,this.ctx=r.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(r,e,i){this.maxWidth=r,this.maxHeight=e,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const r=this.options.labels||{};let e=Eu(r.generateLabels,[this.chart],this)||[];r.filter&&(e=e.filter(i=>r.filter(i,this.chart.data))),r.sort&&(e=e.sort((i,o)=>r.sort(i,o,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:r,ctx:e}=this;if(!r.display)return void(this.width=this.height=0);const i=r.labels,o=Op(i.font),s=o.size,a=this._computeTitleHeight(),{boxWidth:l,itemHeight:c}=hue(i,s);let d,f;e.font=o.string,this.isHorizontal()?(d=this.maxWidth,f=this._fitRows(a,s,l,c)+10):(f=this.maxHeight,d=this._fitCols(a,o,l,c)+10),this.width=Math.min(d,r.maxWidth||this.maxWidth),this.height=Math.min(f,r.maxHeight||this.maxHeight)}_fitRows(r,e,i,o){const{ctx:s,maxWidth:a,options:{labels:{padding:l}}}=this,c=this.legendHitBoxes=[],d=this.lineWidths=[0],f=o+l;let v=r;s.textAlign="left",s.textBaseline="middle";let w=-1,x=-f;return this.legendItems.forEach((I,M)=>{const F=i+e/2+s.measureText(I.text).width;(0===M||d[d.length-1]+F+2*l>a)&&(v+=f,d[d.length-(M>0?0:1)]=0,x+=f,w++),c[M]={left:0,top:x,row:w,width:F,height:o},d[d.length-1]+=F+l}),v}_fitCols(r,e,i,o){const{ctx:s,maxHeight:a,options:{labels:{padding:l}}}=this,c=this.legendHitBoxes=[],d=this.columnSizes=[],f=a-r;let v=l,w=0,x=0,I=0,M=0;return this.legendItems.forEach((F,re)=>{const{itemWidth:pe,itemHeight:we}=function wrt(t,r,e,i,o){const s=function Trt(t,r,e,i){let o=t.text;return o&&"string"!=typeof o&&(o=o.reduce((s,a)=>s.length>a.length?s:a)),r+e.size/2+i.measureText(o).width}(i,t,r,e),a=function Srt(t,r,e){let i=t;return"string"!=typeof r.text&&(i=mue(r,e)),i}(o,i,r.lineHeight);return{itemWidth:s,itemHeight:a}}(i,e,s,F,o);re>0&&x+we+2*l>f&&(v+=w+l,d.push({width:w,height:x}),I+=w+l,M++,w=x=0),c[re]={left:I,top:x,col:M,width:pe,height:we},w=Math.max(w,pe),x+=we+l}),v+=w,d.push({width:w,height:x}),v}adjustHitBoxes(){if(!this.options.display)return;const r=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:o},rtl:s}}=this,a=lI(s,this.left,this.width);if(this.isHorizontal()){let l=0,c=Df(i,this.left+o,this.right-this.lineWidths[l]);for(const d of e)l!==d.row&&(l=d.row,c=Df(i,this.left+o,this.right-this.lineWidths[l])),d.top+=this.top+r+o,d.left=a.leftForLtr(a.x(c),d.width),c+=d.width+o}else{let l=0,c=Df(i,this.top+r+o,this.bottom-this.columnSizes[l].height);for(const d of e)d.col!==l&&(l=d.col,c=Df(i,this.top+r+o,this.bottom-this.columnSizes[l].height)),d.top=c,d.left+=this.left+o,d.left=a.leftForLtr(a.x(d.left),d.width),c+=d.height+o}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const r=this.ctx;TG(r,this),this._draw(),SG(r)}}_draw(){const{options:r,columnSizes:e,lineWidths:i,ctx:o}=this,{align:s,labels:a}=r,l=sd.color,c=lI(r.rtl,this.left,this.width),d=Op(a.font),{padding:f}=a,v=d.size,w=v/2;let x;this.drawTitle(),o.textAlign=c.textAlign("left"),o.textBaseline="middle",o.lineWidth=.5,o.font=d.string;const{boxWidth:I,boxHeight:M,itemHeight:F}=hue(a,v),we=this.isHorizontal(),je=this._computeTitleHeight();x=we?{x:Df(s,this.left+f,this.right-i[0]),y:this.top+f+je,line:0}:{x:this.left+f,y:Df(s,this.top+je+f,this.bottom-e[0].height),line:0},tce(this.ctx,r.textDirection);const tt=F+f;this.legendItems.forEach((nt,rt)=>{o.strokeStyle=nt.fontColor,o.fillStyle=nt.fontColor;const lt=o.measureText(nt.text).width,bt=c.textAlign(nt.textAlign||(nt.textAlign=a.textAlign)),Wt=I+w+lt;let Zt=x.x,en=x.y;c.setWidth(this.width),we?rt>0&&Zt+Wt+f>this.right&&(en=x.y+=tt,x.line++,Zt=x.x=Df(s,this.left+f,this.right-i[x.line])):rt>0&&en+tt>this.bottom&&(Zt=x.x=Zt+e[x.line].width+f,x.line++,en=x.y=Df(s,this.top+je+f,this.bottom-e[x.line].height)),function(nt,rt,lt){if(isNaN(I)||I<=0||isNaN(M)||M<0)return;o.save();const bt=Ba(lt.lineWidth,1);if(o.fillStyle=Ba(lt.fillStyle,l),o.lineCap=Ba(lt.lineCap,"butt"),o.lineDashOffset=Ba(lt.lineDashOffset,0),o.lineJoin=Ba(lt.lineJoin,"miter"),o.lineWidth=bt,o.strokeStyle=Ba(lt.strokeStyle,l),o.setLineDash(Ba(lt.lineDash,[])),a.usePointStyle){const Wt={radius:M*Math.SQRT2/2,pointStyle:lt.pointStyle,rotation:lt.rotation,borderWidth:bt},Zt=c.xPlus(nt,I/2);Ule(o,Wt,Zt,rt+w,a.pointStyleWidth&&I)}else{const Wt=rt+Math.max((v-M)/2,0),Zt=c.leftForLtr(nt,I),en=g2(lt.borderRadius);o.beginPath(),Object.values(en).some(ci=>0!==ci)?NF(o,{x:Zt,y:Wt,w:I,h:M,radius:en}):o.rect(Zt,Wt,I,M),o.fill(),0!==bt&&o.stroke()}o.restore()}(c.x(Zt),en,nt),Zt=((t,r,e,i)=>t===(i?"left":"right")?e:"center"===t?(r+e)/2:r)(bt,Zt+I+w,we?Zt+Wt:this.right,r.rtl),function(nt,rt,lt){m2(o,lt.text,nt,rt+F/2,d,{strikethrough:lt.hidden,textAlign:c.textAlign(lt.textAlign)})}(c.x(Zt),en,nt),we?x.x+=Wt+f:x.y+="string"!=typeof nt.text?mue(nt,d.lineHeight)+f:tt}),nce(this.ctx,r.textDirection)}drawTitle(){const r=this.options,e=r.title,i=Op(e.font),o=kf(e.padding);if(!e.display)return;const s=lI(r.rtl,this.left,this.width),a=this.ctx,l=e.position,d=o.top+i.size/2;let f,v=this.left,w=this.width;if(this.isHorizontal())w=Math.max(...this.lineWidths),f=this.top+d,v=Df(r.align,v,this.right-w);else{const I=this.columnSizes.reduce((M,F)=>Math.max(M,F.height),0);f=d+Df(r.align,this.top,this.bottom-I-r.labels.padding-this._computeTitleHeight())}const x=Df(l,v,v+w);a.textAlign=s.textAlign(tq(l)),a.textBaseline="middle",a.strokeStyle=e.color,a.fillStyle=e.color,a.font=i.string,m2(a,e.text,x,f,i)}_computeTitleHeight(){const r=this.options.title,e=Op(r.font),i=kf(r.padding);return r.display?e.lineHeight+i.height:0}_getLegendItemAt(r,e){let i,o,s;if(zb(r,this.left,this.right)&&zb(e,this.top,this.bottom))for(s=this.legendHitBoxes,i=0;i<s.length;++i)if(o=s[i],zb(r,o.left,o.left+o.width)&&zb(e,o.top,o.top+o.height))return this.legendItems[i];return null}handleEvent(r){const e=this.options;if(!function xrt(t,r){return!(("mousemove"!==t&&"mouseout"!==t||!r.onHover&&!r.onLeave)&&(!r.onClick||"click"!==t&&"mouseup"!==t))}(r.type,e))return;const i=this._getLegendItemAt(r.x,r.y);if("mousemove"===r.type||"mouseout"===r.type){const o=this._hoveredItem,s=((t,r)=>null!==t&&null!==r&&t.datasetIndex===r.datasetIndex&&t.index===r.index)(o,i);o&&!s&&Eu(e.onLeave,[r,o,this],this),this._hoveredItem=i,i&&!s&&Eu(e.onHover,[r,i,this],this)}else i&&Eu(e.onClick,[r,i,this],this)}}function mue(t,r){return r*(t.text?t.text.length:0)}var Ert={id:"legend",_element:fue,start(t,r,e){const i=t.legend=new fue({ctx:t.ctx,options:e,chart:t});If.configure(t,i,e),If.addBox(t,i)},stop(t){If.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,r,e){const i=t.legend;If.configure(t,i,e),i.options=e},afterUpdate(t){const r=t.legend;r.buildLabels(),r.adjustHitBoxes()},afterEvent(t,r){r.replay||t.legend.handleEvent(r.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,r,e){const i=r.datasetIndex,o=e.chart;o.isDatasetVisible(i)?(o.hide(i),r.hidden=!0):(o.show(i),r.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const r=t.data.datasets,{labels:{usePointStyle:e,pointStyle:i,textAlign:o,color:s,useBorderRadius:a,borderRadius:l}}=t.legend.options;return t._getSortedDatasetMetas().map(c=>{const d=c.controller.getStyle(e?0:void 0),f=kf(d.borderWidth);return{text:r[c.index].label,fillStyle:d.backgroundColor,fontColor:s,hidden:!c.visible,lineCap:d.borderCapStyle,lineDash:d.borderDash,lineDashOffset:d.borderDashOffset,lineJoin:d.borderJoinStyle,lineWidth:(f.width+f.height)/4,strokeStyle:d.borderColor,pointStyle:i||d.pointStyle,rotation:d.rotation,textAlign:o||d.textAlign,borderRadius:a&&(l||d.borderRadius),datasetIndex:c.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class Rq extends Qb{constructor(r){super(),this.chart=r.chart,this.options=r.options,this.ctx=r.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(r,e){const i=this.options;if(this.left=0,this.top=0,!i.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=r,this.height=this.bottom=e;const o=Vu(i.text)?i.text.length:1;this._padding=kf(i.padding);const s=o*Op(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=s:this.width=s}isHorizontal(){const r=this.options.position;return"top"===r||"bottom"===r}_drawArgs(r){const{top:e,left:i,bottom:o,right:s,options:a}=this,l=a.align;let d,f,v,c=0;return this.isHorizontal()?(f=Df(l,i,s),v=e+r,d=s-i):("left"===a.position?(f=i+r,v=Df(l,o,e),c=-.5*ju):(f=s-r,v=Df(l,e,o),c=.5*ju),d=o-e),{titleX:f,titleY:v,maxWidth:d,rotation:c}}draw(){const r=this.ctx,e=this.options;if(!e.display)return;const i=Op(e.font),s=i.lineHeight/2+this._padding.top,{titleX:a,titleY:l,maxWidth:c,rotation:d}=this._drawArgs(s);m2(r,e.text,0,0,i,{color:e.color,maxWidth:c,rotation:d,textAlign:tq(e.align),textBaseline:"middle",translation:[a,l]})}}var krt={id:"title",_element:Rq,start(t,r,e){!function Drt(t,r){const e=new Rq({ctx:t.ctx,options:r,chart:t});If.configure(t,e,r),If.addBox(t,e),t.titleBlock=e}(t,e)},stop(t){If.removeBox(t,t.titleBlock),delete t.titleBlock},beforeUpdate(t,r,e){const i=t.titleBlock;If.configure(t,i,e),i.options=e},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const BG=new WeakMap;var Irt={id:"subtitle",start(t,r,e){const i=new Rq({ctx:t.ctx,options:e,chart:t});If.configure(t,i,e),If.addBox(t,i),BG.set(t,i)},stop(t){If.removeBox(t,BG.get(t)),BG.delete(t)},beforeUpdate(t,r,e){const i=BG.get(t);If.configure(t,i,e),i.options=e},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const zF={average(t){if(!t.length)return!1;let r,e,i=new Set,o=0,s=0;for(r=0,e=t.length;r<e;++r){const l=t[r].element;if(l&&l.hasValue()){const c=l.tooltipPosition();i.add(c.x),o+=c.y,++s}}return 0!==s&&0!==i.size&&{x:[...i].reduce((l,c)=>l+c)/i.size,y:o/s}},nearest(t,r){if(!t.length)return!1;let s,a,l,e=r.x,i=r.y,o=Number.POSITIVE_INFINITY;for(s=0,a=t.length;s<a;++s){const c=t[s].element;if(c&&c.hasValue()){const f=Zz(r,c.getCenterPoint());f<o&&(o=f,l=c)}}if(l){const c=l.tooltipPosition();e=c.x,i=c.y}return{x:e,y:i}}};function $y(t,r){return r&&(Vu(r)?Array.prototype.push.apply(t,r):t.push(r)),t}function Jb(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function Art(t,r){const{element:e,datasetIndex:i,index:o}=r,s=t.getDatasetMeta(i).controller,{label:a,value:l}=s.getLabelAndValue(o);return{chart:t,label:a,parsed:s.getParsed(o),raw:t.data.datasets[i].data[o],formattedValue:l,dataset:s.getDataset(),dataIndex:o,datasetIndex:i,element:e}}function gue(t,r){const e=t.chart.ctx,{body:i,footer:o,title:s}=t,{boxWidth:a,boxHeight:l}=r,c=Op(r.bodyFont),d=Op(r.titleFont),f=Op(r.footerFont),v=s.length,w=o.length,x=i.length,I=kf(r.padding);let M=I.height,F=0,re=i.reduce((je,tt)=>je+tt.before.length+tt.lines.length+tt.after.length,0);re+=t.beforeBody.length+t.afterBody.length,v&&(M+=v*d.lineHeight+(v-1)*r.titleSpacing+r.titleMarginBottom),re&&(M+=x*(r.displayColors?Math.max(l,c.lineHeight):c.lineHeight)+(re-x)*c.lineHeight+(re-1)*r.bodySpacing),w&&(M+=r.footerMarginTop+w*f.lineHeight+(w-1)*r.footerSpacing);let pe=0;const we=function(je){F=Math.max(F,e.measureText(je).width+pe)};return e.save(),e.font=d.string,qc(t.title,we),e.font=c.string,qc(t.beforeBody.concat(t.afterBody),we),pe=r.displayColors?a+2+r.boxPadding:0,qc(i,je=>{qc(je.before,we),qc(je.lines,we),qc(je.after,we)}),pe=0,e.font=f.string,qc(t.footer,we),e.restore(),F+=I.width,{width:F,height:M}}function Ort(t,r,e,i){const{x:o,width:s}=e,{width:a,chartArea:{left:l,right:c}}=t;let d="center";return"center"===i?d=o<=(l+c)/2?"left":"right":o<=s/2?d="left":o>=a-s/2&&(d="right"),function Rrt(t,r,e,i){const{x:o,width:s}=i,a=e.caretSize+e.caretPadding;if("left"===t&&o+s+a>r.width||"right"===t&&o-s-a<0)return!0}(d,t,r,e)&&(d="center"),d}function vue(t,r,e){const i=e.yAlign||r.yAlign||function Mrt(t,r){const{y:e,height:i}=r;return e<i/2?"top":e>t.height-i/2?"bottom":"center"}(t,e);return{xAlign:e.xAlign||r.xAlign||Ort(t,r,e,i),yAlign:i}}function _ue(t,r,e,i){const{caretSize:o,caretPadding:s,cornerRadius:a}=t,{xAlign:l,yAlign:c}=e,d=o+s,{topLeft:f,topRight:v,bottomLeft:w,bottomRight:x}=g2(a);let I=function Frt(t,r){let{x:e,width:i}=t;return"right"===r?e-=i:"center"===r&&(e-=i/2),e}(r,l);const M=function Prt(t,r,e){let{y:i,height:o}=t;return"top"===r?i+=e:i-="bottom"===r?o+e:o/2,i}(r,c,d);return"center"===c?"left"===l?I+=d:"right"===l&&(I-=d):"left"===l?I-=Math.max(f,w)+o:"right"===l&&(I+=Math.max(v,x)+o),{x:lh(I,0,i.width-r.width),y:lh(M,0,i.height-r.height)}}function VG(t,r,e){const i=kf(e.padding);return"center"===r?t.x+t.width/2:"right"===r?t.x+t.width-i.right:t.x+i.left}function yue(t){return $y([],Jb(t))}function bue(t,r){const e=r&&r.dataset&&r.dataset.tooltip&&r.dataset.tooltip.callbacks;return e?t.override(e):t}const Cue={beforeTitle:Wb,title(t){if(t.length>0){const r=t[0],e=r.chart.data.labels,i=e?e.length:0;if(this&&this.options&&"dataset"===this.options.mode)return r.dataset.label||"";if(r.label)return r.label;if(i>0&&r.dataIndex<i)return e[r.dataIndex]}return""},afterTitle:Wb,beforeBody:Wb,beforeLabel:Wb,label(t){if(this&&this.options&&"dataset"===this.options.mode)return t.label+": "+t.formattedValue||t.formattedValue;let r=t.dataset.label||"";r&&(r+=": ");const e=t.formattedValue;return nc(e)||(r+=e),r},labelColor(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:Wb,afterBody:Wb,beforeFooter:Wb,footer:Wb,afterFooter:Wb};function Pm(t,r,e,i){const o=t[r].call(e,i);return typeof o>"u"?Cue[r].call(e,i):o}let wue=(()=>class t extends Qb{static positioners=zF;constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const i=this.chart,o=this.options.setContext(this.getContext()),s=o.enabled&&i.options.animation&&o.animations,a=new uce(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=function Lrt(t,r,e){return yT(t,{tooltip:r,tooltipItems:e,type:"tooltip"})}(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,i){const{callbacks:o}=i,s=Pm(o,"beforeTitle",this,e),a=Pm(o,"title",this,e),l=Pm(o,"afterTitle",this,e);let c=[];return c=$y(c,Jb(s)),c=$y(c,Jb(a)),c=$y(c,Jb(l)),c}getBeforeBody(e,i){return yue(Pm(i.callbacks,"beforeBody",this,e))}getBody(e,i){const{callbacks:o}=i,s=[];return qc(e,a=>{const l={before:[],lines:[],after:[]},c=bue(o,a);$y(l.before,Jb(Pm(c,"beforeLabel",this,a))),$y(l.lines,Pm(c,"label",this,a)),$y(l.after,Jb(Pm(c,"afterLabel",this,a))),s.push(l)}),s}getAfterBody(e,i){return yue(Pm(i.callbacks,"afterBody",this,e))}getFooter(e,i){const{callbacks:o}=i,s=Pm(o,"beforeFooter",this,e),a=Pm(o,"footer",this,e),l=Pm(o,"afterFooter",this,e);let c=[];return c=$y(c,Jb(s)),c=$y(c,Jb(a)),c=$y(c,Jb(l)),c}_createItems(e){const i=this._active,o=this.chart.data,s=[],a=[],l=[];let d,f,c=[];for(d=0,f=i.length;d<f;++d)c.push(Art(this.chart,i[d]));return e.filter&&(c=c.filter((v,w,x)=>e.filter(v,w,x,o))),e.itemSort&&(c=c.sort((v,w)=>e.itemSort(v,w,o))),qc(c,v=>{const w=bue(e.callbacks,v);s.push(Pm(w,"labelColor",this,v)),a.push(Pm(w,"labelPointStyle",this,v)),l.push(Pm(w,"labelTextColor",this,v))}),this.labelColors=s,this.labelPointStyles=a,this.labelTextColors=l,this.dataPoints=c,c}update(e,i){const o=this.options.setContext(this.getContext()),s=this._active;let a,l=[];if(s.length){const c=zF[o.position].call(this,s,this._eventPosition);l=this._createItems(o),this.title=this.getTitle(l,o),this.beforeBody=this.getBeforeBody(l,o),this.body=this.getBody(l,o),this.afterBody=this.getAfterBody(l,o),this.footer=this.getFooter(l,o);const d=this._size=gue(this,o),f=Object.assign({},c,d),v=vue(this.chart,o,f),w=_ue(o,f,v,this.chart);this.xAlign=v.xAlign,this.yAlign=v.yAlign,a={opacity:1,x:w.x,y:w.y,width:d.width,height:d.height,caretX:c.x,caretY:c.y}}else 0!==this.opacity&&(a={opacity:0});this._tooltipItems=l,this.$context=void 0,a&&this._resolveAnimations().update(this,a),e&&o.external&&o.external.call(this,{chart:this.chart,tooltip:this,replay:i})}drawCaret(e,i,o,s){const a=this.getCaretPosition(e,o,s);i.lineTo(a.x1,a.y1),i.lineTo(a.x2,a.y2),i.lineTo(a.x3,a.y3)}getCaretPosition(e,i,o){const{xAlign:s,yAlign:a}=this,{caretSize:l,cornerRadius:c}=o,{topLeft:d,topRight:f,bottomLeft:v,bottomRight:w}=g2(c),{x,y:I}=e,{width:M,height:F}=i;let re,pe,we,je,tt,nt;return"center"===a?(tt=I+F/2,"left"===s?(re=x,pe=re-l,je=tt+l,nt=tt-l):(re=x+M,pe=re+l,je=tt-l,nt=tt+l),we=re):(pe="left"===s?x+Math.max(d,v)+l:"right"===s?x+M-Math.max(f,w)-l:this.caretX,"top"===a?(je=I,tt=je-l,re=pe-l,we=pe+l):(je=I+F,tt=je+l,re=pe+l,we=pe-l),nt=je),{x1:re,x2:pe,x3:we,y1:je,y2:tt,y3:nt}}drawTitle(e,i,o){const s=this.title,a=s.length;let l,c,d;if(a){const f=lI(o.rtl,this.x,this.width);for(e.x=VG(this,o.titleAlign,o),i.textAlign=f.textAlign(o.titleAlign),i.textBaseline="middle",l=Op(o.titleFont),c=o.titleSpacing,i.fillStyle=o.titleColor,i.font=l.string,d=0;d<a;++d)i.fillText(s[d],f.x(e.x),e.y+l.lineHeight/2),e.y+=l.lineHeight+c,d+1===a&&(e.y+=o.titleMarginBottom-c)}}_drawColorBox(e,i,o,s,a){const l=this.labelColors[o],c=this.labelPointStyles[o],{boxHeight:d,boxWidth:f}=a,v=Op(a.bodyFont),w=VG(this,"left",a),x=s.x(w),M=i.y+(d<v.lineHeight?(v.lineHeight-d)/2:0);if(a.usePointStyle){const F={radius:Math.min(f,d)/2,pointStyle:c.pointStyle,rotation:c.rotation,borderWidth:1},re=s.leftForLtr(x,f)+f/2,pe=M+d/2;e.strokeStyle=a.multiKeyBackground,e.fillStyle=a.multiKeyBackground,sq(e,F,re,pe),e.strokeStyle=l.borderColor,e.fillStyle=l.backgroundColor,sq(e,F,re,pe)}else{e.lineWidth=kl(l.borderWidth)?Math.max(...Object.values(l.borderWidth)):l.borderWidth||1,e.strokeStyle=l.borderColor,e.setLineDash(l.borderDash||[]),e.lineDashOffset=l.borderDashOffset||0;const F=s.leftForLtr(x,f),re=s.leftForLtr(s.xPlus(x,1),f-2),pe=g2(l.borderRadius);Object.values(pe).some(we=>0!==we)?(e.beginPath(),e.fillStyle=a.multiKeyBackground,NF(e,{x:F,y:M,w:f,h:d,radius:pe}),e.fill(),e.stroke(),e.fillStyle=l.backgroundColor,e.beginPath(),NF(e,{x:re,y:M+1,w:f-2,h:d-2,radius:pe}),e.fill()):(e.fillStyle=a.multiKeyBackground,e.fillRect(F,M,f,d),e.strokeRect(F,M,f,d),e.fillStyle=l.backgroundColor,e.fillRect(re,M+1,f-2,d-2))}e.fillStyle=this.labelTextColors[o]}drawBody(e,i,o){const{body:s}=this,{bodySpacing:a,bodyAlign:l,displayColors:c,boxHeight:d,boxWidth:f,boxPadding:v}=o,w=Op(o.bodyFont);let x=w.lineHeight,I=0;const M=lI(o.rtl,this.x,this.width),F=function(bt){i.fillText(bt,M.x(e.x+I),e.y+x/2),e.y+=x+a},re=M.textAlign(l);let pe,we,je,tt,nt,rt,lt;for(i.textAlign=l,i.textBaseline="middle",i.font=w.string,e.x=VG(this,re,o),i.fillStyle=o.bodyColor,qc(this.beforeBody,F),I=c&&"right"!==re?"center"===l?f/2+v:f+2+v:0,tt=0,rt=s.length;tt<rt;++tt){for(pe=s[tt],we=this.labelTextColors[tt],i.fillStyle=we,qc(pe.before,F),je=pe.lines,c&&je.length&&(this._drawColorBox(i,e,tt,M,o),x=Math.max(w.lineHeight,d)),nt=0,lt=je.length;nt<lt;++nt)F(je[nt]),x=w.lineHeight;qc(pe.after,F)}I=0,x=w.lineHeight,qc(this.afterBody,F),e.y-=a}drawFooter(e,i,o){const s=this.footer,a=s.length;let l,c;if(a){const d=lI(o.rtl,this.x,this.width);for(e.x=VG(this,o.footerAlign,o),e.y+=o.footerMarginTop,i.textAlign=d.textAlign(o.footerAlign),i.textBaseline="middle",l=Op(o.footerFont),i.fillStyle=o.footerColor,i.font=l.string,c=0;c<a;++c)i.fillText(s[c],d.x(e.x),e.y+l.lineHeight/2),e.y+=l.lineHeight+o.footerSpacing}}drawBackground(e,i,o,s){const{xAlign:a,yAlign:l}=this,{x:c,y:d}=e,{width:f,height:v}=o,{topLeft:w,topRight:x,bottomLeft:I,bottomRight:M}=g2(s.cornerRadius);i.fillStyle=s.backgroundColor,i.strokeStyle=s.borderColor,i.lineWidth=s.borderWidth,i.beginPath(),i.moveTo(c+w,d),"top"===l&&this.drawCaret(e,i,o,s),i.lineTo(c+f-x,d),i.quadraticCurveTo(c+f,d,c+f,d+x),"center"===l&&"right"===a&&this.drawCaret(e,i,o,s),i.lineTo(c+f,d+v-M),i.quadraticCurveTo(c+f,d+v,c+f-M,d+v),"bottom"===l&&this.drawCaret(e,i,o,s),i.lineTo(c+I,d+v),i.quadraticCurveTo(c,d+v,c,d+v-I),"center"===l&&"left"===a&&this.drawCaret(e,i,o,s),i.lineTo(c,d+w),i.quadraticCurveTo(c,d,c+w,d),i.closePath(),i.fill(),s.borderWidth>0&&i.stroke()}_updateAnimationTarget(e){const i=this.chart,o=this.$animations,s=o&&o.x,a=o&&o.y;if(s||a){const l=zF[e.position].call(this,this._active,this._eventPosition);if(!l)return;const c=this._size=gue(this,e),d=Object.assign({},l,this._size),f=vue(i,e,d),v=_ue(e,d,f,i);(s._to!==v.x||a._to!==v.y)&&(this.xAlign=f.xAlign,this.yAlign=f.yAlign,this.width=c.width,this.height=c.height,this.caretX=l.x,this.caretY=l.y,this._resolveAnimations().update(this,v))}}_willRender(){return!!this.opacity}draw(e){const i=this.options.setContext(this.getContext());let o=this.opacity;if(!o)return;this._updateAnimationTarget(i);const s={width:this.width,height:this.height},a={x:this.x,y:this.y};o=Math.abs(o)<.001?0:o;const l=kf(i.padding);i.enabled&&(this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length)&&(e.save(),e.globalAlpha=o,this.drawBackground(a,e,s,i),tce(e,i.textDirection),a.y+=l.top,this.drawTitle(a,e,i),this.drawBody(a,e,i),this.drawFooter(a,e,i),nce(e,i.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,i){const o=this._active,s=e.map(({datasetIndex:c,index:d})=>{const f=this.chart.getDatasetMeta(c);if(!f)throw new Error("Cannot find a dataset at index "+c);return{datasetIndex:c,element:f.data[d],index:d}}),a=!vG(o,s),l=this._positionChanged(s,i);(a||l)&&(this._active=s,this._eventPosition=i,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,i,o=!0){if(i&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,a=this._active||[],l=this._getActiveElements(e,a,i,o),c=this._positionChanged(l,e),d=i||!vG(l,a)||c;return d&&(this._active=l,(s.enabled||s.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,i))),d}_getActiveElements(e,i,o,s){const a=this.options;if("mouseout"===e.type)return[];if(!s)return i.filter(c=>this.chart.data.datasets[c.datasetIndex]&&void 0!==this.chart.getDatasetMeta(c.datasetIndex).controller.getParsed(c.index));const l=this.chart.getElementsAtEventForMode(e,a.mode,a,o);return a.reverse&&l.reverse(),l}_positionChanged(e,i){const{caretX:o,caretY:s,options:a}=this,l=zF[a.position].call(this,e,i);return!1!==l&&(o!==l.x||s!==l.y)}})();var Nrt={id:"tooltip",_element:wue,positioners:zF,afterInit(t,r,e){e&&(t.tooltip=new wue({chart:t,options:e}))},beforeUpdate(t,r,e){t.tooltip&&t.tooltip.initialize(e)},reset(t,r,e){t.tooltip&&t.tooltip.initialize(e)},afterDraw(t){const r=t.tooltip;if(r&&r._willRender()){const e={tooltip:r};if(!1===t.notifyPlugins("beforeTooltipDraw",{...e,cancelable:!0}))return;r.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",e)}},afterEvent(t,r){t.tooltip&&t.tooltip.handleEvent(r.event,r.replay,r.inChartArea)&&(r.changed=!0)},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,r)=>r.bodyFont.size,boxWidth:(t,r)=>r.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Cue},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},Grt=Object.freeze({__proto__:null,Colors:Kit,Decimation:ert,Filler:brt,Legend:Ert,SubTitle:Irt,Title:krt,Tooltip:Nrt});function Tue(t){const r=this.getLabels();return t>=0&&t<r.length?r[t]:t}let Hrt=(()=>class t extends C2{static id="category";static defaults={ticks:{callback:Tue}};constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const i=this._addedLabels;if(i.length){const o=this.getLabels();for(const{index:s,label:a}of i)o[s]===a&&o.splice(s,1);this._addedLabels=[]}super.init(e)}parse(e,i){if(nc(e))return null;const o=this.getLabels();return((t,r)=>null===t?null:lh(Math.round(t),0,r))(i=isFinite(i)&&o[i]===e?i:function Vrt(t,r,e,i){const o=t.indexOf(r);return-1===o?((t,r,e,i)=>("string"==typeof r?(e=t.push(r)-1,i.unshift({index:e,label:r})):isNaN(r)&&(e=null),e))(t,r,e,i):o!==t.lastIndexOf(r)?e:o}(o,e,Ba(i,e),this._addedLabels),o.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:i}=this.getUserBounds();let{min:o,max:s}=this.getMinMax(!0);"ticks"===this.options.bounds&&(e||(o=0),i||(s=this.getLabels().length-1)),this.min=o,this.max=s}buildTicks(){const e=this.min,i=this.max,o=this.options.offset,s=[];let a=this.getLabels();a=0===e&&i===a.length-1?a:a.slice(e,i+1),this._valueRange=Math.max(a.length-(o?0:1),1),this._startValue=this.min-(o?.5:0);for(let l=e;l<=i;l++)s.push({value:l});return s}getLabelForValue(e){return Tue.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return"number"!=typeof e&&(e=this.parse(e)),null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const i=this.ticks;return e<0||e>i.length-1?null:this.getPixelForValue(i[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}})();function Sue(t,r,{horizontal:e,minRotation:i}){const o=o0(i),s=(e?Math.sin(o):Math.cos(o))||.001;return Math.min(r/s,.75*r*(""+t).length)}class jG extends C2{constructor(r){super(r),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(r,e){return nc(r)||("number"==typeof r||r instanceof Number)&&!isFinite(+r)?null:+r}handleTickRangeOptions(){const{beginAtZero:r}=this.options,{minDefined:e,maxDefined:i}=this.getUserBounds();let{min:o,max:s}=this;const a=c=>o=e?o:c,l=c=>s=i?s:c;if(r){const c=Hy(o),d=Hy(s);c<0&&d<0?l(0):c>0&&d>0&&a(0)}if(o===s){let c=0===s?1:Math.abs(.05*s);l(s+c),r||a(o-c)}this.min=o,this.max=s}getTickLimit(){const r=this.options.ticks;let o,{maxTicksLimit:e,stepSize:i}=r;return i?(o=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,o>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${o} ticks. Limiting to 1000.`),o=1e3)):(o=this.computeTickLimit(),e=e||11),e&&(o=Math.min(e,o)),o}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const r=this.options,e=r.ticks;let i=this.getTickLimit();i=Math.max(2,i);const a=function Urt(t,r){const e=[],{bounds:o,step:s,min:a,max:l,precision:c,count:d,maxTicks:f,maxDigits:v,includeBounds:w}=t,x=s||1,I=f-1,{min:M,max:F}=r,re=!nc(a),pe=!nc(l),we=!nc(d),je=(F-M)/(v+1);let nt,rt,lt,bt,tt=Ele((F-M)/I/x)*x;if(tt<1e-14&&!re&&!pe)return[{value:M},{value:F}];bt=Math.ceil(F/tt)-Math.floor(M/tt),bt>I&&(tt=Ele(bt*tt/I/x)*x),nc(c)||(nt=Math.pow(10,c),tt=Math.ceil(tt*nt)/nt),"ticks"===o?(rt=Math.floor(M/tt)*tt,lt=Math.ceil(F/tt)*tt):(rt=M,lt=F),re&&pe&&s&&function Iet(t,r){const e=Math.round(t);return e-r<=t&&e+r>=t}((l-a)/s,tt/1e3)?(bt=Math.round(Math.min((l-a)/tt,f)),tt=(l-a)/bt,rt=a,lt=l):we?(rt=re?a:rt,lt=pe?l:lt,bt=d-1,tt=(lt-rt)/bt):(bt=(lt-rt)/tt,bt=RF(bt,Math.round(bt),tt/1e3)?Math.round(bt):Math.ceil(bt));const Wt=Math.max(kle(tt),kle(rt));nt=Math.pow(10,nc(c)?Wt:c),rt=Math.round(rt*nt)/nt,lt=Math.round(lt*nt)/nt;let Zt=0;for(re&&(w&&rt!==a?(e.push({value:a}),rt<a&&Zt++,RF(Math.round((rt+Zt*tt)*nt)/nt,a,Sue(a,je,t))&&Zt++):rt<a&&Zt++);Zt<bt;++Zt){const en=Math.round((rt+Zt*tt)*nt)/nt;if(pe&&en>l)break;e.push({value:en})}return pe&&w&&lt!==l?e.length&&RF(e[e.length-1].value,l,Sue(l,je,t))?e[e.length-1].value=l:e.push({value:l}):(!pe||lt===l)&&e.push({value:lt}),e}({maxTicks:i,bounds:r.bounds,min:r.min,max:r.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===r.bounds&&Dle(a,this,"value"),r.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){const r=this.ticks;let e=this.min,i=this.max;if(super.configure(),this.options.offset&&r.length){const o=(i-e)/Math.max(r.length-1,1)/2;e-=o,i+=o}this._startValue=e,this._endValue=i,this._valueRange=i-e}getLabelForValue(r){return PF(r,this.chart.options.locale,this.options.ticks.format)}}const qF=t=>Math.floor(_T(t)),w2=(t,r)=>Math.pow(10,qF(t)+r);function xue(t){return t/Math.pow(10,qF(t))==1}function Eue(t,r,e){const i=Math.pow(10,e),o=Math.floor(t/i);return Math.ceil(r/i)-o}function Oq(t){const r=t.ticks;if(r.display&&t.display){const e=kf(r.backdropPadding);return Ba(r.font&&r.font.size,sd.font.size)+e.height}return 0}function qrt(t,r,e){return e=Vu(e)?e:[e],{w:Wet(t,r.string,e),h:e.length*r.lineHeight}}function Due(t,r,e,i,o){return t===i||t===o?{start:r-e/2,end:r+e/2}:t<i||t>o?{start:r-e,end:r}:{start:r,end:r+e}}function Krt(t,r,e,i,o){const s=Math.abs(Math.sin(e)),a=Math.abs(Math.cos(e));let l=0,c=0;i.start<r.l?(l=(r.l-i.start)/s,t.l=Math.min(t.l,r.l-l)):i.end>r.r&&(l=(i.end-r.r)/s,t.r=Math.max(t.r,r.r+l)),o.start<r.t?(c=(r.t-o.start)/a,t.t=Math.min(t.t,r.t-c)):o.end>r.b&&(c=(o.end-r.b)/a,t.b=Math.max(t.b,r.b+c))}function Qrt(t,r,e){const i=t.drawingArea,{extra:o,additionalAngle:s,padding:a,size:l}=e,c=t.getPointPosition(r,i+o+a,s),d=Math.round(Jz(Dg(c.angle+Jd))),f=function not(t,r,e){return 90===e||270===e?t-=r/2:(e>270||e<90)&&(t-=r),t}(c.y,l.h,d),v=function eot(t){return 0===t||180===t?"center":t<180?"left":"right"}(d),w=function tot(t,r,e){return"right"===e?t-=r:"center"===e&&(t-=r/2),t}(c.x,l.w,v);return{visible:!0,x:c.x,y:f,textAlign:v,left:w,top:f,right:w+l.w,bottom:f+l.h}}function Jrt(t,r){if(!r)return!0;const{left:e,top:i,right:o,bottom:s}=t;return!(Xb({x:e,y:i},r)||Xb({x:e,y:s},r)||Xb({x:o,y:i},r)||Xb({x:o,y:s},r))}function iot(t,r,e){const{left:i,top:o,right:s,bottom:a}=e,{backdropColor:l}=r;if(!nc(l)){const c=g2(r.borderRadius),d=kf(r.backdropPadding);t.fillStyle=l;const f=i-d.left,v=o-d.top,w=s-i+d.width,x=a-o+d.height;Object.values(c).some(I=>0!==I)?(t.beginPath(),NF(t,{x:f,y:v,w,h:x,radius:c}),t.fill()):t.fillRect(f,v,w,x)}}function kue(t,r,e,i){const{ctx:o}=t;if(e)o.arc(t.xCenter,t.yCenter,r,0,Hu);else{let s=t.getPointPosition(0,r);o.moveTo(s.x,s.y);for(let a=1;a<i;a++)s=t.getPointPosition(a,r),o.lineTo(s.x,s.y)}}const HG={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Lm=Object.keys(HG);function Iue(t,r){return t-r}function Aue(t,r){if(nc(r))return null;const e=t._adapter,{parser:i,round:o,isoWeekday:s}=t._parseOpts;let a=r;return"function"==typeof i&&(a=i(a)),Pd(a)||(a="string"==typeof i?e.parse(a,i):e.parse(a)),null===a?null:(o&&(a="week"!==o||!oI(s)&&!0!==s?e.startOf(a,o):e.startOf(a,"isoWeek",s)),+a)}function Mue(t,r,e,i){const o=Lm.length;for(let s=Lm.indexOf(t);s<o-1;++s){const a=HG[Lm[s]];if(a.common&&Math.ceil((e-r)/((a.steps?a.steps:Number.MAX_SAFE_INTEGER)*a.size))<=i)return Lm[s]}return Lm[o-1]}function Rue(t,r,e){if(e){if(e.length){const{lo:i,hi:o}=eq(e,r);t[e[i]>=r?e[i]:e[o]]=!0}}else t[r]=!0}function Oue(t,r,e){const i=[],o={},s=r.length;let a,l;for(a=0;a<s;++a)l=r[a],o[l]=a,i.push({value:l,major:!1});return 0!==s&&e?function uot(t,r,e,i){const o=t._adapter,s=+o.startOf(r[0].value,i),a=r[r.length-1].value;let l,c;for(l=s;l<=a;l=+o.add(l,1,i))c=e[l],c>=0&&(r[c].major=!0);return r}(t,i,o,e):i}let Fq=(()=>class t extends C2{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,i={}){const o=e.time||(e.time={}),s=this._adapter=new dnt__date(e.adapters.date);s.init(i),AF(o.displayFormats,s.formats()),this._parseOpts={parser:o.parser,round:o.round,isoWeekday:o.isoWeekday},super.init(e),this._normalized=i.normalized}parse(e,i){return void 0===e?null:Aue(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,i=this._adapter,o=e.time.unit||"day";let{min:s,max:a,minDefined:l,maxDefined:c}=this.getUserBounds();function d(f){!l&&!isNaN(f.min)&&(s=Math.min(s,f.min)),!c&&!isNaN(f.max)&&(a=Math.max(a,f.max))}(!l||!c)&&(d(this._getLabelBounds()),("ticks"!==e.bounds||"labels"!==e.ticks.source)&&d(this.getMinMax(!1))),s=Pd(s)&&!isNaN(s)?s:+i.startOf(Date.now(),o),a=Pd(a)&&!isNaN(a)?a:+i.endOf(Date.now(),o)+1,this.min=Math.min(s,a-1),this.max=Math.max(s+1,a)}_getLabelBounds(){const e=this.getLabelTimestamps();let i=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY;return e.length&&(i=e[0],o=e[e.length-1]),{min:i,max:o}}buildTicks(){const e=this.options,i=e.time,o=e.ticks,s="labels"===o.source?this.getLabelTimestamps():this._generate();"ticks"===e.bounds&&s.length&&(this.min=this._userMin||s[0],this.max=this._userMax||s[s.length-1]);const a=this.min,c=function Oet(t,r,e){let i=0,o=t.length;for(;i<o&&t[i]<r;)i++;for(;o>i&&t[o-1]>e;)o--;return i>0||o<t.length?t.slice(i,o):t}(s,a,this.max);return this._unit=i.unit||(o.autoSkip?Mue(i.minUnit,this.min,this.max,this._getLabelCapacity(a)):function lot(t,r,e,i,o){for(let s=Lm.length-1;s>=Lm.indexOf(e);s--){const a=Lm[s];if(HG[a].common&&t._adapter.diff(o,i,a)>=r-1)return a}return Lm[e?Lm.indexOf(e):0]}(this,c.length,i.minUnit,this.min,this.max)),this._majorUnit=o.major.enabled&&"year"!==this._unit?function cot(t){for(let r=Lm.indexOf(t)+1,e=Lm.length;r<e;++r)if(HG[Lm[r]].common)return Lm[r]}(this._unit):void 0,this.initOffsets(s),e.reverse&&c.reverse(),Oue(this,c,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let s,a,i=0,o=0;this.options.offset&&e.length&&(s=this.getDecimalForValue(e[0]),i=1===e.length?1-s:(this.getDecimalForValue(e[1])-s)/2,a=this.getDecimalForValue(e[e.length-1]),o=1===e.length?a:(a-this.getDecimalForValue(e[e.length-2]))/2);const l=e.length<3?.5:.25;i=lh(i,0,l),o=lh(o,0,l),this._offsets={start:i,end:o,factor:1/(i+1+o)}}_generate(){const e=this._adapter,i=this.min,o=this.max,s=this.options,a=s.time,l=a.unit||Mue(a.minUnit,i,o,this._getLabelCapacity(i)),c=Ba(s.ticks.stepSize,1),d="week"===l&&a.isoWeekday,f=oI(d)||!0===d,v={};let x,I,w=i;if(f&&(w=+e.startOf(w,"isoWeek",d)),w=+e.startOf(w,f?"day":l),e.diff(o,i,l)>1e5*c)throw new Error(i+" and "+o+" are too far apart with stepSize of "+c+" "+l);const M="data"===s.ticks.source&&this.getDataTimestamps();for(x=w,I=0;x<o;x=+e.add(x,c,l),I++)Rue(v,x,M);return(x===o||"ticks"===s.bounds||1===I)&&Rue(v,x,M),Object.keys(v).sort(Iue).map(F=>+F)}getLabelForValue(e){const o=this.options.time;return this._adapter.format(e,o.tooltipFormat?o.tooltipFormat:o.displayFormats.datetime)}format(e,i){return this._adapter.format(e,i||this.options.time.displayFormats[this._unit])}_tickFormatFunction(e,i,o,s){const a=this.options,l=a.ticks.callback;if(l)return Eu(l,[e,i,o],this);const c=a.time.displayFormats,d=this._unit,f=this._majorUnit,w=f&&c[f],x=o[i];return this._adapter.format(e,s||(f&&w&&x&&x.major?w:d&&c[d]))}generateTickLabels(e){let i,o,s;for(i=0,o=e.length;i<o;++i)s=e[i],s.label=this._tickFormatFunction(s.value,i,e)}getDecimalForValue(e){return null===e?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const i=this._offsets,o=this.getDecimalForValue(e);return this.getPixelForDecimal((i.start+o)*i.factor)}getValueForPixel(e){const i=this._offsets,o=this.getDecimalForPixel(e)/i.factor-i.end;return this.min+o*(this.max-this.min)}_getLabelSize(e){const i=this.options.ticks,o=this.ctx.measureText(e).width,s=o0(this.isHorizontal()?i.maxRotation:i.minRotation),a=Math.cos(s),l=Math.sin(s),c=this._resolveTickFontOptions(0).size;return{w:o*a+c*l,h:o*l+c*a}}_getLabelCapacity(e){const i=this.options.time,o=i.displayFormats,s=o[i.unit]||o.millisecond,a=this._tickFormatFunction(e,0,Oue(this,[e],this._majorUnit),s),l=this._getLabelSize(a),c=Math.floor(this.isHorizontal()?this.width/l.w:this.height/l.h)-1;return c>0?c:1}getDataTimestamps(){let i,o,e=this._cache.data||[];if(e.length)return e;const s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(i=0,o=s.length;i<o;++i)e=e.concat(s[i].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){const e=this._cache.labels||[];let i,o;if(e.length)return e;const s=this.getLabels();for(i=0,o=s.length;i<o;++i)e.push(Aue(this,s[i]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return Rle(e.sort(Iue))}})();function UG(t,r,e){let s,a,l,c,i=0,o=t.length-1;e?(r>=t[i].pos&&r<=t[o].pos&&({lo:i,hi:o}=qb(t,"pos",r)),({pos:s,time:l}=t[i]),({pos:a,time:c}=t[o])):(r>=t[i].time&&r<=t[o].time&&({lo:i,hi:o}=qb(t,"time",r)),({time:s,pos:l}=t[i]),({time:a,pos:c}=t[o]));const d=a-s;return d?l+(c-l)*(r-s)/d:l}var pot=Object.freeze({__proto__:null,CategoryScale:Hrt,LinearScale:class $rt extends jG{static id="linear";static defaults={ticks:{callback:CG.formatters.numeric}};determineDataLimits(){const{min:r,max:e}=this.getMinMax(!0);this.min=Pd(r)?r:0,this.max=Pd(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const r=this.isHorizontal(),e=r?this.width:this.height,i=o0(this.options.ticks.minRotation),o=(r?Math.sin(i):Math.cos(i))||.001,s=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,s.lineHeight/o))}getPixelForValue(r){return null===r?NaN:this.getPixelForDecimal((r-this._startValue)/this._valueRange)}getValueForPixel(r){return this._startValue+this.getDecimalForPixel(r)*this._valueRange}},LogarithmicScale:class zrt extends C2{static id="logarithmic";static defaults={ticks:{callback:CG.formatters.logarithmic,major:{enabled:!0}}};constructor(r){super(r),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(r,e){const i=jG.prototype.parse.apply(this,[r,e]);if(0!==i)return Pd(i)&&i>0?i:null;this._zero=!0}determineDataLimits(){const{min:r,max:e}=this.getMinMax(!0);this.min=Pd(r)?Math.max(0,r):null,this.max=Pd(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Pd(this._userMin)&&(this.min=r===w2(this.min,0)?w2(this.min,-1):w2(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:r,maxDefined:e}=this.getUserBounds();let i=this.min,o=this.max;const s=l=>i=r?i:l,a=l=>o=e?o:l;i===o&&(i<=0?(s(1),a(10)):(s(w2(i,-1)),a(w2(o,1)))),i<=0&&s(w2(o,-1)),o<=0&&a(w2(i,1)),this.min=i,this.max=o}buildTicks(){const r=this.options,i=function Wrt(t,{min:r,max:e}){r=Eg(t.min,r);const i=[],o=qF(r);let s=function Yrt(t,r){let i=qF(r-t);for(;Eue(t,r,i)>10;)i++;for(;Eue(t,r,i)<10;)i--;return Math.min(i,qF(t))}(r,e),a=s<0?Math.pow(10,Math.abs(s)):1;const l=Math.pow(10,s),c=o>s?Math.pow(10,o):0,d=Math.round((r-c)*a)/a,f=Math.floor((r-c)/l/10)*l*10;let v=Math.floor((d-f)/Math.pow(10,s)),w=Eg(t.min,Math.round((c+f+v*Math.pow(10,s))*a)/a);for(;w<e;)i.push({value:w,major:xue(w),significand:v}),v>=10?v=v<15?15:20:v++,v>=20&&(s++,v=2,a=s>=0?1:a),w=Math.round((c+f+v*Math.pow(10,s))*a)/a;const x=Eg(t.max,w);return i.push({value:x,major:xue(x),significand:v}),i}({min:this._userMin,max:this._userMax},this);return"ticks"===r.bounds&&Dle(i,this,"value"),r.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}getLabelForValue(r){return void 0===r?"0":PF(r,this.chart.options.locale,this.options.ticks.format)}configure(){const r=this.min;super.configure(),this._startValue=_T(r),this._valueRange=_T(this.max)-_T(r)}getPixelForValue(r){return(void 0===r||0===r)&&(r=this.min),null===r||isNaN(r)?NaN:this.getPixelForDecimal(r===this.min?0:(_T(r)-this._startValue)/this._valueRange)}getValueForPixel(r){const e=this.getDecimalForPixel(r);return Math.pow(10,this._startValue+e*this._valueRange)}},RadialLinearScale:class aot extends jG{static id="radialLinear";static defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:CG.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:r=>r,padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(r){super(r),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const r=this._padding=kf(Oq(this.options)/2),e=this.width=this.maxWidth-r.width,i=this.height=this.maxHeight-r.height;this.xCenter=Math.floor(this.left+e/2+r.left),this.yCenter=Math.floor(this.top+i/2+r.top),this.drawingArea=Math.floor(Math.min(e,i)/2)}determineDataLimits(){const{min:r,max:e}=this.getMinMax(!1);this.min=Pd(r)&&!isNaN(r)?r:0,this.max=Pd(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Oq(this.options))}generateTickLabels(r){jG.prototype.generateTickLabels.call(this,r),this._pointLabels=this.getLabels().map((e,i)=>{const o=Eu(this.options.pointLabels.callback,[e,i],this);return o||0===o?o:""}).filter((e,i)=>this.chart.getDataVisibility(i))}fit(){const r=this.options;r.display&&r.pointLabels.display?function Xrt(t){const r={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},e=Object.assign({},r),i=[],o=[],s=t._pointLabels.length,a=t.options.pointLabels,l=a.centerPointLabels?ju/s:0;for(let c=0;c<s;c++){const d=a.setContext(t.getPointLabelContext(c));o[c]=d.padding;const f=t.getPointPosition(c,t.drawingArea+o[c],l),v=Op(d.font),w=qrt(t.ctx,v,t._pointLabels[c]);i[c]=w;const x=Dg(t.getIndexAngle(c)+l),I=Math.round(Jz(x));Krt(e,r,x,Due(I,f.x,w.w,0,180),Due(I,f.y,w.h,90,270))}t.setCenterPoint(r.l-e.l,e.r-r.r,r.t-e.t,e.b-r.b),t._pointLabelItems=function Zrt(t,r,e){const i=[],o=t._pointLabels.length,s=t.options,{centerPointLabels:a,display:l}=s.pointLabels,c={extra:Oq(s)/2,additionalAngle:a?ju/o:0};let d;for(let f=0;f<o;f++){c.padding=e[f],c.size=r[f];const v=Qrt(t,f,c);i.push(v),"auto"===l&&(v.visible=Jrt(v,d),v.visible&&(d=v))}return i}(t,i,o)}(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(r,e,i,o){this.xCenter+=Math.floor((r-e)/2),this.yCenter+=Math.floor((i-o)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(r,e,i,o))}getIndexAngle(r){return Dg(r*(Hu/(this._pointLabels.length||1))+o0(this.options.startAngle||0))}getDistanceFromCenterForValue(r){if(nc(r))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-r)*e:(r-this.min)*e}getValueForDistanceFromCenter(r){if(nc(r))return NaN;const e=r/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(r){const e=this._pointLabels||[];if(r>=0&&r<e.length){const i=e[r];return function sot(t,r,e){return yT(t,{label:e,index:r,type:"pointLabel"})}(this.getContext(),r,i)}}getPointPosition(r,e,i=0){const o=this.getIndexAngle(r)-Jd+i;return{x:Math.cos(o)*e+this.xCenter,y:Math.sin(o)*e+this.yCenter,angle:o}}getPointPositionForValue(r,e){return this.getPointPosition(r,this.getDistanceFromCenterForValue(e))}getBasePosition(r){return this.getPointPositionForValue(r||0,this.getBaseValue())}getPointLabelPosition(r){const{left:e,top:i,right:o,bottom:s}=this._pointLabelItems[r];return{left:e,top:i,right:o,bottom:s}}drawBackground(){const{backgroundColor:r,grid:{circular:e}}=this.options;if(r){const i=this.ctx;i.save(),i.beginPath(),kue(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),i.closePath(),i.fillStyle=r,i.fill(),i.restore()}}drawGrid(){const r=this.ctx,e=this.options,{angleLines:i,grid:o,border:s}=e,a=this._pointLabels.length;let l,c,d;if(e.pointLabels.display&&function rot(t,r){const{ctx:e,options:{pointLabels:i}}=t;for(let o=r-1;o>=0;o--){const s=t._pointLabelItems[o];if(!s.visible)continue;const a=i.setContext(t.getPointLabelContext(o));iot(e,a,s);const l=Op(a.font),{x:c,y:d,textAlign:f}=s;m2(e,t._pointLabels[o],c,d+l.lineHeight/2,l,{color:a.color,textAlign:f,textBaseline:"middle"})}}(this,a),o.display&&this.ticks.forEach((f,v)=>{if(0!==v||0===v&&this.min<0){c=this.getDistanceFromCenterForValue(f.value);const w=this.getContext(v),x=o.setContext(w),I=s.setContext(w);!function oot(t,r,e,i,o){const s=t.ctx,a=r.circular,{color:l,lineWidth:c}=r;!a&&!i||!l||!c||e<0||(s.save(),s.strokeStyle=l,s.lineWidth=c,s.setLineDash(o.dash||[]),s.lineDashOffset=o.dashOffset,s.beginPath(),kue(t,e,a,i),s.closePath(),s.stroke(),s.restore())}(this,x,c,a,I)}}),i.display){for(r.save(),l=a-1;l>=0;l--){const f=i.setContext(this.getPointLabelContext(l)),{color:v,lineWidth:w}=f;!w||!v||(r.lineWidth=w,r.strokeStyle=v,r.setLineDash(f.borderDash),r.lineDashOffset=f.borderDashOffset,c=this.getDistanceFromCenterForValue(e.reverse?this.min:this.max),d=this.getPointPosition(l,c),r.beginPath(),r.moveTo(this.xCenter,this.yCenter),r.lineTo(d.x,d.y),r.stroke())}r.restore()}}drawBorder(){}drawLabels(){const r=this.ctx,e=this.options,i=e.ticks;if(!i.display)return;const o=this.getIndexAngle(0);let s,a;r.save(),r.translate(this.xCenter,this.yCenter),r.rotate(o),r.textAlign="center",r.textBaseline="middle",this.ticks.forEach((l,c)=>{if(0===c&&this.min>=0&&!e.reverse)return;const d=i.setContext(this.getContext(c)),f=Op(d.font);if(s=this.getDistanceFromCenterForValue(this.ticks[c].value),d.showLabelBackdrop){r.font=f.string,a=r.measureText(l.label).width,r.fillStyle=d.backdropColor;const v=kf(d.backdropPadding);r.fillRect(-a/2-v.left,-s-f.size/2-v.top,a+v.width,f.size+v.height)}m2(r,l.label,0,-s,f,{color:d.color,strokeColor:d.textStrokeColor,strokeWidth:d.textStrokeWidth})}),r.restore()}drawTitle(){}},TimeScale:Fq,TimeSeriesScale:class dot extends Fq{static id="timeseries";static defaults=Fq.defaults;constructor(r){super(r),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const r=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(r);this._minPos=UG(e,this.min),this._tableRange=UG(e,this.max)-this._minPos,super.initOffsets(r)}buildLookupTable(r){const{min:e,max:i}=this,o=[],s=[];let a,l,c,d,f;for(a=0,l=r.length;a<l;++a)d=r[a],d>=e&&d<=i&&o.push(d);if(o.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(a=0,l=o.length;a<l;++a)f=o[a+1],c=o[a-1],d=o[a],Math.round((f+c)/2)!==d&&s.push({time:d,pos:a/(l-1)});return s}_generate(){const r=this.min,e=this.max;let i=super.getDataTimestamps();return(!i.includes(r)||!i.length)&&i.splice(0,0,r),(!i.includes(e)||1===i.length)&&i.push(e),i.sort((o,s)=>o-s)}_getTimestampsForTable(){let r=this._cache.all||[];if(r.length)return r;const e=this.getDataTimestamps(),i=this.getLabelTimestamps();return r=e.length&&i.length?this.normalize(e.concat(i)):e.length?e:i,r=this._cache.all=r,r}getDecimalForValue(r){return(UG(this._table,r)-this._minPos)/this._tableRange}getValueForPixel(r){const e=this._offsets,i=this.getDecimalForPixel(r)/e.factor-e.end;return UG(this._table,i*this._tableRange+this._minPos,!0)}}});Sq.register(unt,Uit,Grt,pot);const fot=Sq;let Fue=(()=>{class t{platformId;el;zone;type;plugins=[];width;height;responsive=!0;ariaLabel;ariaLabelledBy;get data(){return this._data}set data(e){this._data=e,this.reinit()}get options(){return this._options}set options(e){this._options=e,this.reinit()}onDataSelect=new n.bkB;isBrowser=!1;initialized;_data;_options={};chart;constructor(e,i,o){this.platformId=e,this.el=i,this.zone=o}ngAfterViewInit(){this.initChart(),this.initialized=!0}onCanvasClick(e){if(this.chart){const i=this.chart.getElementsAtEventForMode(e,"nearest",{intersect:!0},!1),o=this.chart.getElementsAtEventForMode(e,"dataset",{intersect:!0},!1);i&&i[0]&&o&&this.onDataSelect.emit({originalEvent:e,element:i[0],dataset:o})}}initChart(){if(Gr(this.platformId)){let e=this.options||{};e.responsive=this.responsive,e.responsive&&(this.height||this.width)&&(e.maintainAspectRatio=!1),this.zone.runOutsideAngular(()=>{this.chart=new fot(this.el.nativeElement.children[0].children[0],{type:this.type,data:this.data,options:this.options,plugins:this.plugins})})}}getCanvas(){return this.el.nativeElement.children[0].children[0]}getBase64Image(){return this.chart.toBase64Image()}generateLegend(){if(this.chart)return this.chart.generateLegend()}refresh(){this.chart&&this.chart.update()}reinit(){this.chart&&(this.chart.destroy(),this.initChart())}ngOnDestroy(){this.chart&&(this.chart.destroy(),this.initialized=!1,this.chart=null)}static \u0275fac=function(i){return new(i||t)(n.rXU(n.Agw),n.rXU(n.aKT),n.rXU(n.SKi))};static \u0275cmp=n.VBU({type:t,selectors:[["p-chart"]],inputs:{type:"type",plugins:"plugins",width:"width",height:"height",responsive:[2,"responsive","responsive",n.L39],ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",data:"data",options:"options"},outputs:{onDataSelect:"onDataSelect"},features:[n.GFd],decls:2,vars:8,consts:[[2,"position","relative"],["role","img",3,"click"]],template:function(i,o){1&i&&(n.j41(0,"div",0)(1,"canvas",1),n.bIt("click",function(a){return o.onCanvasClick(a)}),n.k0s()()),2&i&&(n.xc7("width",o.responsive&&!o.width?null:o.width)("height",o.responsive&&!o.height?null:o.height),n.R7$(),n.BMQ("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledBy)("width",o.responsive&&!o.width?null:o.width)("height",o.responsive&&!o.height?null:o.height))},dependencies:[gn,Di],encapsulation:2,changeDetection:0})}return t})(),mot=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({imports:[Fue,Di,Di]})}return t})();const vot=({dt:t})=>`\n.p-tabs {\n    display: flex;\n    flex-direction: column;\n}\n\n.p-tablist {\n    display: flex;\n    position: relative;\n}\n\n.p-tabs-scrollable > .p-tablist {\n    overflow: hidden;\n}\n\n.p-tablist-viewport {\n    overflow-x: auto;\n    overflow-y: hidden;\n    scroll-behavior: smooth;\n    scrollbar-width: none;\n    overscroll-behavior: contain auto;\n}\n\n.p-tablist-viewport::-webkit-scrollbar {\n    display: none;\n}\n\n.p-tablist-tab-list {\n    position: relative;\n    display: flex;\n    background: ${t("tabs.tablist.background")};\n    border-style: solid;\n    border-color: ${t("tabs.tablist.border.color")};\n    border-width: ${t("tabs.tablist.border.width")};\n}\n\n.p-tablist-content {\n    flex-grow: 1;\n}\n\n.p-tablist-nav-button {\n    all: unset;\n    position: absolute !important;\n    flex-shrink: 0;\n    top: 0;\n    z-index: 2;\n    height: 100%;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    background: ${t("tabs.nav.button.background")};\n    color: ${t("tabs.nav.button.color")};\n    width: ${t("tabs.nav.button.width")};\n    transition: color ${t("tabs.transition.duration")}, outline-color ${t("tabs.transition.duration")}, box-shadow ${t("tabs.transition.duration")};\n    box-shadow: ${t("tabs.nav.button.shadow")};\n    outline-color: transparent;\n    cursor: pointer;\n}\n\n.p-tablist-nav-button:focus-visible {\n    z-index: 1;\n    box-shadow: ${t("tabs.nav.button.focus.ring.shadow")};\n    outline: ${t("tabs.nav.button.focus.ring.width")} ${t("tabs.nav.button.focus.ring.style")} ${t("tabs.nav.button.focus.ring.color")};\n    outline-offset: ${t("tabs.nav.button.focus.ring.offset")};\n}\n\n.p-tablist-nav-button:hover {\n    color: ${t("tabs.nav.button.hover.color")};\n}\n\n.p-tablist-prev-button {\n    left: 0;\n}\n\n.p-tablist-next-button {\n    right: 0;\n}\n\n.p-tab {\n    display: flex;\n    align-items: center;\n    flex-shrink: 0;\n    cursor: pointer;\n    user-select: none;\n    position: relative;\n    border-style: solid;\n    white-space: nowrap;\n    gap: ${t("tabs.tab.gap")};\n    background: ${t("tabs.tab.background")};\n    border-width: ${t("tabs.tab.border.width")};\n    border-color: ${t("tabs.tab.border.color")};\n    color: ${t("tabs.tab.color")};\n    padding: ${t("tabs.tab.padding")};\n    font-weight: ${t("tabs.tab.font.weight")};\n    transition: background ${t("tabs.transition.duration")}, border-color ${t("tabs.transition.duration")}, color ${t("tabs.transition.duration")}, outline-color ${t("tabs.transition.duration")}, box-shadow ${t("tabs.transition.duration")};\n    margin: ${t("tabs.tab.margin")};\n    outline-color: transparent;\n}\n\n.p-tab:not(.p-disabled):focus-visible {\n    z-index: 1;\n    box-shadow: ${t("tabs.tab.focus.ring.shadow")};\n    outline: ${t("tabs.tab.focus.ring.width")} ${t("tabs.tab.focus.ring.style")} ${t("tabs.tab.focus.ring.color")};\n    outline-offset: ${t("tabs.tab.focus.ring.offset")};\n}\n\n.p-tab:not(.p-tab-active):not(.p-disabled):hover {\n    background: ${t("tabs.tab.hover.background")};\n    border-color: ${t("tabs.tab.hover.border.color")};\n    color: ${t("tabs.tab.hover.color")};\n}\n\n.p-tab-active {\n    background: ${t("tabs.tab.active.background")};\n    border-color: ${t("tabs.tab.active.border.color")};\n    color: ${t("tabs.tab.active.color")};\n}\n\n.p-tabpanels {\n    background: ${t("tabs.tabpanel.background")};\n    color: ${t("tabs.tabpanel.color")};\n    padding: ${t("tabs.tabpanel.padding")};\n    outline: 0 none;\n}\n\n.p-tabpanel:focus-visible {\n    box-shadow: ${t("tabs.tabpanel.focus.ring.shadow")};\n    outline: ${t("tabs.tabpanel.focus.ring.width")} ${t("tabs.tabpanel.focus.ring.style")} ${t("tabs.tabpanel.focus.ring.color")};\n    outline-offset: ${t("tabs.tabpanel.focus.ring.offset")};\n}\n\n.p-tablist-active-bar {\n    z-index: 1;\n    display: block;\n    position: absolute;\n    bottom: ${t("tabs.active.bar.bottom")};\n    height: ${t("tabs.active.bar.height")};\n    background: ${t("tabs.active.bar.background")};\n    transition: 250ms cubic-bezier(0.35, 0, 0.25, 1);\n}\n`,_ot={root:({props:t})=>["p-tabs p-component",{"p-tabs-scrollable":t.scrollable}]};let $G=(()=>{class t extends gs{name="tabs";theme=vot;classes=_ot;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const Pue=["content"],bot=["header"],Cot=["lefticon"],wot=["righticon"],Tot=["closeicon"],Lue=["*"];function Sot(t,r){1&t&&n.eu8(0)}function xot(t,r){if(1&t&&(n.qex(0),n.DNE(1,Sot,1,0,"ng-container",3),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)}}function Eot(t,r){if(1&t&&(n.j41(0,"div",1),n.SdG(1),n.DNE(2,xot,2,1,"ng-container",2),n.k0s()),2&t){const e=n.XpG();n.Y8G("hidden",!e.selected),n.BMQ("id",e.tabView.getTabContentId(e.id))("aria-hidden",!e.selected)("aria-labelledby",e.tabView.getTabHeaderActionId(e.id))("data-pc-name","tabpanel"),n.R7$(2),n.Y8G("ngIf",(e.contentTemplate||e._contentTemplate)&&(e.cache?e.loaded:e.selected))}}const Dot=["previousicon"],kot=["nexticon"],Iot=["navbar"],Aot=["prevBtn"],Mot=["nextBtn"],Rot=["inkbar"],Oot=["elementToObserve"],Fot=t=>({"p-tablist-viewport":t}),Pot=(t,r)=>({"p-tab":!0,"p-tab-active":t,"p-disabled":r});function Lot(t,r){1&t&&n.nrm(0,"ChevronLeftIcon"),2&t&&n.BMQ("aria-hidden",!0)}function Not(t,r){}function Got(t,r){1&t&&n.DNE(0,Not,0,0,"ng-template")}function Bot(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",12,3),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.navBackward())}),n.DNE(2,Lot,1,1,"ChevronLeftIcon",13)(3,Got,1,0,null,14),n.k0s()}if(2&t){const e=n.XpG();n.BMQ("tabindex",e.tabindex)("aria-label",e.prevButtonAriaLabel),n.R7$(2),n.Y8G("ngIf",!e.previousIconTemplate&&!e._previousIconTemplate),n.R7$(),n.Y8G("ngTemplateOutlet",e.previousIconTemplate&&e._previousIconTemplate)}}function Vot(t,r){1&t&&n.eu8(0)}function jot(t,r){if(1&t&&n.DNE(0,Vot,1,0,"ng-container",14),2&t){const e=n.XpG(2).$implicit;n.Y8G("ngTemplateOutlet",e.headerTemplate||e._headerTemplate)}}function Hot(t,r){}function Uot(t,r){1&t&&n.DNE(0,Hot,0,0,"ng-template")}function $ot(t,r){if(1&t&&n.DNE(0,Uot,1,0,null,14),2&t){const e=n.XpG(3).$implicit;n.Y8G("ngTemplateOutlet",e.leftIconTemplate||e._leftIconTemplate)}}function Yot(t,r){if(1&t&&n.nrm(0,"span",17),2&t){const e=n.XpG(3).$implicit;n.Y8G("ngClass",e.leftIcon)}}function Wot(t,r){}function zot(t,r){1&t&&n.DNE(0,Wot,0,0,"ng-template")}function qot(t,r){if(1&t&&n.DNE(0,zot,1,0,null,14),2&t){const e=n.XpG(3).$implicit;n.Y8G("ngTemplateOutlet",e.rightIconTemplate||e._rightIconTemplate)}}function Xot(t,r){if(1&t&&n.nrm(0,"span",18),2&t){const e=n.XpG(3).$implicit;n.Y8G("ngClass",e.rightIcon)}}function Kot(t,r){}function Qot(t,r){1&t&&n.DNE(0,Kot,0,0,"ng-template")}function Jot(t,r){if(1&t&&n.DNE(0,Qot,1,0,null,14),2&t){const e=n.XpG(4).$implicit;n.Y8G("ngTemplateOutlet",e.closeIconTemplate||e._closeIconTemplate)}}function Zot(t,r){if(1&t){const e=n.RV6();n.j41(0,"TimesIcon",19),n.bIt("click",function(o){n.eBV(e);const s=n.XpG(4).$implicit,a=n.XpG();return n.Njj(a.close(o,s))}),n.k0s()}}function est(t,r){if(1&t&&n.DNE(0,Jot,1,1)(1,Zot,1,0,"TimesIcon"),2&t){const e=n.XpG(3).$implicit;n.vxM(e.closeIconTemplate||e._closeIconTemplate?0:1)}}function tst(t,r){if(1&t&&(n.DNE(0,$ot,1,1)(1,Yot,1,1,"span",17),n.EFF(2),n.DNE(3,qot,1,1)(4,Xot,1,1,"span",18)(5,est,2,1)),2&t){const e=n.XpG(2).$implicit;n.vxM(e.leftIconTemplate||e._leftIconTemplate?0:!e.leftIcon||e.leftIconTemplate||e._leftIconTemplate?-1:1),n.R7$(2),n.SpI(" ",e.header," "),n.R7$(),n.vxM(e.rightIconTemplate||e._rightIconTemplate?3:!e.rightIcon||e.rightIconTemplate||e._rightIconTemplate?-1:4),n.R7$(2),n.vxM(e.closable?5:-1)}}function nst(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",15),n.bIt("click",function(o){n.eBV(e);const s=n.XpG().$implicit,a=n.XpG();return n.Njj(a.open(o,s))})("keydown",function(o){n.eBV(e);const s=n.XpG().$implicit,a=n.XpG();return n.Njj(a.onTabKeyDown(o,s))}),n.DNE(1,jot,1,1,"ng-container")(2,tst,6,4),n.k0s(),n.nrm(3,"span",16,4)}if(2&t){const e=n.XpG(),i=e.$implicit,o=e.$index,s=n.XpG();n.HbH(i.headerStyleClass),n.Y8G("ngClass",n.l_i(22,Pot,i.selected,i.disabled))("ngStyle",i.headerStyle)("pTooltip",i.tooltip)("tooltipPosition",i.tooltipPosition)("positionStyle",i.tooltipPositionStyle)("tooltipStyleClass",i.tooltipStyleClass)("disabled",i.disabled),n.BMQ("role","tab")("id",s.getTabHeaderActionId(i.id))("aria-controls",s.getTabContentId(i.id))("aria-selected",i.selected)("tabindex",i.disabled||!i.selected?"-1":s.tabindex)("aria-disabled",i.disabled)("data-pc-index",o)("data-p-disabled",i.disabled)("data-pc-section","headeraction")("data-p-active",i.selected),n.R7$(),n.vxM(i.headerTemplate||i._headerTemplate?1:2),n.R7$(2),n.BMQ("aria-hidden",!0)("data-pc-section","inkbar")}}function ist(t,r){1&t&&n.DNE(0,nst,5,25),2&t&&n.vxM(r.$implicit.closed?-1:0)}function rst(t,r){}function ost(t,r){1&t&&n.DNE(0,rst,0,0,"ng-template")}function sst(t,r){if(1&t&&n.DNE(0,ost,1,0,null,14),2&t){const e=n.XpG(2);n.Y8G("ngTemplateOutlet",e.nextIconTemplate||e._nextIconTemplate)}}function ast(t,r){1&t&&n.nrm(0,"ChevronRightIcon"),2&t&&n.BMQ("aria-hidden",!0)}function lst(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",20,5),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.navForward())}),n.DNE(2,sst,1,1)(3,ast,1,1,"ChevronRightIcon"),n.k0s()}if(2&t){const e=n.XpG();n.BMQ("tabindex",e.tabindex)("aria-label",e.nextButtonAriaLabel),n.R7$(2),n.vxM(e.nextIconTemplate||e._nextIconTemplate?2:3)}}let Nue=(()=>{class t extends jo{closable=!1;get headerStyle(){return this._headerStyle}set headerStyle(e){this._headerStyle=e,this.tabView.cd.markForCheck()}get headerStyleClass(){return this._headerStyleClass}set headerStyleClass(e){this._headerStyleClass=e,this.tabView.cd.markForCheck()}cache=!0;tooltip;tooltipPosition="top";tooltipPositionStyle="absolute";tooltipStyleClass;get selected(){return!!this._selected}set selected(e){this._selected=e,this.loaded||this.cd.detectChanges(),e&&(this.loaded=!0)}get disabled(){return!!this._disabled}set disabled(e){this._disabled=e,this.tabView.cd.markForCheck()}get header(){return this._header}set header(e){this._header=e,Promise.resolve().then(()=>{this.tabView.updateInkBar(),this.tabView.cd.markForCheck()})}get leftIcon(){return this._leftIcon}set leftIcon(e){this._leftIcon=e,this.tabView.cd.markForCheck()}get rightIcon(){return this._rightIcon}set rightIcon(e){this._rightIcon=e,this.tabView.cd.markForCheck()}closed=!1;_headerStyle;_headerStyleClass;_selected;_disabled;_header;_leftIcon;_rightIcon=void 0;loaded=!1;id=Bl("pn_id_");contentTemplate;headerTemplate;leftIconTemplate;rightIconTemplate;closeIconTemplate;templates;tabView=(0,n.WQX)((0,n.Rfq)(()=>Gue));_componentStyle=(0,n.WQX)($G);_headerTemplate;_contentTemplate;_rightIconTemplate;_leftIconTemplate;_closeIconTemplate;ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"header":this._headerTemplate=e.template;break;case"content":default:this._contentTemplate=e.template;break;case"righticon":this._rightIconTemplate=e.template;break;case"lefticon":this._leftIconTemplate=e.template;break;case"closeicon":this._closeIconTemplate=e.template}})}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["p-tabPanel"],["p-tabpanel"]],contentQueries:function(i,o,s){if(1&i&&(n.wni(s,Pue,5),n.wni(s,bot,5),n.wni(s,Cot,5),n.wni(s,wot,5),n.wni(s,Tot,5),n.wni(s,hs,4)),2&i){let a;n.mGM(a=n.lsd())&&(o.contentTemplate=a.first),n.mGM(a=n.lsd())&&(o.headerTemplate=a.first),n.mGM(a=n.lsd())&&(o.leftIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.rightIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.closeIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.templates=a)}},inputs:{closable:[2,"closable","closable",n.L39],headerStyle:"headerStyle",headerStyleClass:"headerStyleClass",cache:[2,"cache","cache",n.L39],tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",selected:"selected",disabled:"disabled",header:"header",leftIcon:"leftIcon",rightIcon:"rightIcon"},features:[n.Jv_([$G]),n.GFd,n.Vt3],ngContentSelectors:Lue,decls:1,vars:1,consts:[["class","p-tabview-panel","role","tabpanel",3,"hidden",4,"ngIf"],["role","tabpanel",1,"p-tabview-panel",3,"hidden"],[4,"ngIf"],[4,"ngTemplateOutlet"]],template:function(i,o){1&i&&(n.NAR(),n.DNE(0,Eot,3,6,"div",0)),2&i&&n.Y8G("ngIf",!o.closed)},dependencies:[gn,fi,uo,Di],encapsulation:2})}return t})(),Gue=(()=>{class t extends jo{get hostClass(){return this.styleClass}get hostStyle(){return this.style}style;styleClass;controlClose;scrollable;get activeIndex(){return this._activeIndex}set activeIndex(e){this._activeIndex=e,this.preventActiveIndexPropagation?this.preventActiveIndexPropagation=!1:this.tabs&&this.tabs.length&&null!=this._activeIndex&&this.tabs.length>this._activeIndex&&(this.findSelectedTab().selected=!1,this.tabs[this._activeIndex].selected=!0,this.tabChanged=!0,this.updateScrollBar(e))}selectOnFocus=!1;nextButtonAriaLabel;prevButtonAriaLabel;autoHideButtons=!0;tabindex=0;onChange=new n.bkB;onClose=new n.bkB;activeIndexChange=new n.bkB;content;navbar;prevBtn;nextBtn;inkbar;tabPanels;initialized;tabs;_activeIndex;preventActiveIndexPropagation;tabChanged;backwardIsDisabled=!0;forwardIsDisabled=!1;tabChangesSubscription;resizeObserver;container;list;buttonVisible;elementToObserve;previousIconTemplate;nextIconTemplate;_previousIconTemplate;_nextIconTemplate;_componentStyle=(0,n.WQX)($G);templates;ngOnInit(){super.ngOnInit(),console.log("TabView component is deprecated as of v18. Use Tabs component instead.")}ngAfterContentInit(){this.initTabs(),this.tabChangesSubscription=this.tabPanels.changes.subscribe(e=>{this.initTabs(),this.refreshButtonState()}),this.templates.forEach(e=>{switch(e.getType()){case"previousicon":this._previousIconTemplate=e.template;break;case"nexticon":this._nextIconTemplate=e.template}})}ngAfterViewInit(){super.ngAfterViewInit(),Gr(this.platformId)&&this.autoHideButtons&&this.bindResizeObserver()}bindResizeObserver(){this.container=xo(this.el.nativeElement,'[data-pc-section="navcontent"]'),this.list=xo(this.el.nativeElement,'[data-pc-section="nav"]'),this.resizeObserver=new ResizeObserver(()=>{this.buttonVisible=this.list.offsetWidth>=this.container.offsetWidth,this.updateButtonState(),this.cd.detectChanges()}),this.resizeObserver.observe(this.container)}unbindResizeObserver(){this.resizeObserver.unobserve(this.elementToObserve.nativeElement),this.resizeObserver=null}ngAfterViewChecked(){Gr(this.platformId)&&this.tabChanged&&(this.updateInkBar(),this.tabChanged=!1)}ngOnDestroy(){this.tabChangesSubscription&&this.tabChangesSubscription.unsubscribe(),this.resizeObserver&&this.unbindResizeObserver(),super.ngOnDestroy()}getTabHeaderActionId(e){return`${e}_header_action`}getTabContentId(e){return`${e}_content`}initTabs(){this.tabs=this.tabPanels.toArray(),!this.findSelectedTab()&&this.tabs.length&&(null!=this.activeIndex&&this.tabs.length>this.activeIndex?this.tabs[this.activeIndex].selected=!0:this.tabs[0].selected=!0,this.tabChanged=!0),this.cd.markForCheck()}onTabKeyDown(e,i){switch(e.code){case"ArrowLeft":this.onTabArrowLeftKey(e);break;case"ArrowRight":this.onTabArrowRightKey(e);break;case"Home":case"PageUp":this.onTabHomeKey(e);break;case"End":case"PageDown":this.onTabEndKey(e);break;case"Enter":case"Space":this.open(e,i)}}onTabArrowLeftKey(e){const i=this.findPrevHeaderAction(e.currentTarget),o=Xf(i,"data-pc-index");i?this.changeFocusedTab(e,i,o):this.onTabEndKey(e),e.preventDefault()}onTabArrowRightKey(e){const i=this.findNextHeaderAction(e.currentTarget),o=Xf(i,"data-pc-index");i?this.changeFocusedTab(e,i,o):this.onTabHomeKey(e),e.preventDefault()}onTabHomeKey(e){const i=this.findFirstHeaderAction(),o=Xf(i,"data-pc-index");this.changeFocusedTab(e,i,o),e.preventDefault()}onTabEndKey(e){const i=this.findLastHeaderAction(),o=Xf(i,"data-pc-index");this.changeFocusedTab(e,i,o),e.preventDefault()}changeFocusedTab(e,i,o){i&&(la(i),i.scrollIntoView({block:"nearest"}),this.selectOnFocus)&&this.open(e,this.tabs[o])}findNextHeaderAction(e,i=!1){const o=i?e:e.nextElementSibling;return o?Xf(o,"data-p-disabled")||"inkbar"===Xf(o,"data-pc-section")?this.findNextHeaderAction(o):o:null}findPrevHeaderAction(e,i=!1){const o=i?e:e.previousElementSibling;return o?Xf(o,"data-p-disabled")||"inkbar"===Xf(o,"data-pc-section")?this.findPrevHeaderAction(o):o:null}findFirstHeaderAction(){return this.findNextHeaderAction(this.navbar.nativeElement.firstElementChild,!0)}findLastHeaderAction(){const e=this.navbar.nativeElement.lastElementChild,i="inkbar"===Xf(e,"data-pc-section")?e.previousElementSibling:e;return this.findPrevHeaderAction(i,!0)}open(e,i){if(i.disabled)e&&e.preventDefault();else{if(!i.selected){let o=this.findSelectedTab();o&&(o.selected=!1),this.tabChanged=!0,i.selected=!0;let s=this.findTabIndex(i);this.preventActiveIndexPropagation=!0,this.activeIndexChange.emit(s),this.onChange.emit({originalEvent:e,index:s}),this.updateScrollBar(s)}e&&e.preventDefault()}}close(e,i){this.controlClose?this.onClose.emit({originalEvent:e,index:this.findTabIndex(i),close:()=>{this.closeTab(i)}}):(this.closeTab(i),this.onClose.emit({originalEvent:e,index:this.findTabIndex(i)})),e.stopPropagation()}closeTab(e){if(!e.disabled){if(e.selected){this.tabChanged=!0,e.selected=!1;for(let i=0;i<this.tabs.length;i++){let o=this.tabs[i];if(!o.closed&&!e.disabled){o.selected=!0;break}}}e.closed=!0}}findSelectedTab(){for(let e=0;e<this.tabs.length;e++)if(this.tabs[e].selected)return this.tabs[e];return null}findTabIndex(e){let i=-1;for(let o=0;o<this.tabs.length;o++)if(this.tabs[o]==e){i=o;break}return i}getBlockableElement(){return this.el.nativeElement.children[0]}updateInkBar(){if(Gr(this.platformId)&&this.navbar){const e=xo(this.navbar.nativeElement,'[data-pc-section="headeraction"][data-p-active="true"]');if(!e)return;this.inkbar.nativeElement.style.width=kd(e)+"px",this.inkbar.nativeElement.style.left=yy(e).left-yy(this.navbar.nativeElement).left+"px"}}updateScrollBar(e){let i=$c(this.navbar.nativeElement,'[data-pc-section="headeraction"]')[e];i&&i.scrollIntoView({block:"nearest"})}updateButtonState(){const e=this.content.nativeElement,{scrollLeft:i,scrollWidth:o}=e,s=df(e);this.backwardIsDisabled=0===i,this.forwardIsDisabled=Math.round(i)===o-s}refreshButtonState(){this.container=xo(this.el.nativeElement,'[data-pc-section="navcontent"]'),this.list=xo(this.el.nativeElement,'[data-pc-section="nav"]'),this.list.offsetWidth>=this.container.offsetWidth&&(this.buttonVisible=this.list.offsetWidth>=this.container.offsetWidth,this.updateButtonState(),this.cd.markForCheck())}onScroll(e){this.scrollable&&this.updateButtonState(),e.preventDefault()}getVisibleButtonWidths(){return[this.prevBtn?.nativeElement,this.nextBtn?.nativeElement].reduce((e,i)=>i?e+df(i):e,0)}navBackward(){const e=this.content.nativeElement,i=df(e)-this.getVisibleButtonWidths(),o=e.scrollLeft-i;e.scrollLeft=o<=0?0:o}navForward(){const e=this.content.nativeElement,i=df(e)-this.getVisibleButtonWidths(),o=e.scrollLeft+i,s=e.scrollWidth-i;e.scrollLeft=o>=s?s:o}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["p-tabView"],["p-tabview"]],contentQueries:function(i,o,s){if(1&i&&(n.wni(s,Dot,5),n.wni(s,kot,5),n.wni(s,Nue,4),n.wni(s,hs,4)),2&i){let a;n.mGM(a=n.lsd())&&(o.previousIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.nextIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.tabPanels=a),n.mGM(a=n.lsd())&&(o.templates=a)}},viewQuery:function(i,o){if(1&i&&(n.GBs(Pue,5),n.GBs(Iot,5),n.GBs(Aot,5),n.GBs(Mot,5),n.GBs(Rot,5),n.GBs(Oot,5)),2&i){let s;n.mGM(s=n.lsd())&&(o.content=s.first),n.mGM(s=n.lsd())&&(o.navbar=s.first),n.mGM(s=n.lsd())&&(o.prevBtn=s.first),n.mGM(s=n.lsd())&&(o.nextBtn=s.first),n.mGM(s=n.lsd())&&(o.inkbar=s.first),n.mGM(s=n.lsd())&&(o.elementToObserve=s.first)}},hostVars:11,hostBindings:function(i,o){2&i&&(n.BMQ("data-pc-name","tabview"),n.Aen(o.hostStyle),n.HbH(o.hostClass),n.AVh("p-tabs",!0)("p-tabs-scrollable",o.scrollable)("p-component",!0))},inputs:{style:"style",styleClass:"styleClass",controlClose:[2,"controlClose","controlClose",n.L39],scrollable:[2,"scrollable","scrollable",n.L39],activeIndex:"activeIndex",selectOnFocus:[2,"selectOnFocus","selectOnFocus",n.L39],nextButtonAriaLabel:"nextButtonAriaLabel",prevButtonAriaLabel:"prevButtonAriaLabel",autoHideButtons:[2,"autoHideButtons","autoHideButtons",n.L39],tabindex:[2,"tabindex","tabindex",n.Udg]},outputs:{onChange:"onChange",onClose:"onClose",activeIndexChange:"activeIndexChange"},features:[n.Jv_([$G]),n.GFd,n.Vt3],ngContentSelectors:Lue,decls:12,vars:7,consts:[["elementToObserve",""],["content",""],["navbar",""],["prevBtn",""],["inkbar",""],["nextBtn",""],[1,"p-tablist"],["class","p-tablist-prev-button p-tablist-nav-button","type","button","pRipple","",3,"click",4,"ngIf"],[1,"p-tablist-content",3,"scroll","ngClass"],["role","tablist",1,"p-tablist-tab-list"],["class","p-tablist-next-button p-tablist-nav-button","type","button","pRipple","",3,"click",4,"ngIf"],[1,"p-tabpanels"],["type","button","pRipple","",1,"p-tablist-prev-button","p-tablist-nav-button",3,"click"],[4,"ngIf"],[4,"ngTemplateOutlet"],["pRipple","",3,"click","keydown","ngClass","ngStyle","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","disabled"],["role","presentation",1,"p-tablist-active-bar"],[1,"p-tabview-left-icon",3,"ngClass"],[1,"p-tabview-right-icon",3,"ngClass"],[3,"click"],["type","button","pRipple","",1,"p-tablist-next-button","p-tablist-nav-button",3,"click"]],template:function(i,o){if(1&i){const s=n.RV6();n.NAR(),n.j41(0,"div",6,0),n.DNE(2,Bot,4,4,"button",7),n.j41(3,"div",8,1),n.bIt("scroll",function(l){return n.eBV(s),n.Njj(o.onScroll(l))}),n.j41(5,"div",9,2),n.Z7z(7,ist,1,1,null,null,n.fX1),n.k0s()(),n.DNE(9,lst,4,3,"button",10),n.k0s(),n.j41(10,"div",11),n.SdG(11),n.k0s()}2&i&&(n.R7$(2),n.Y8G("ngIf",o.scrollable&&!o.backwardIsDisabled&&o.autoHideButtons),n.R7$(),n.Y8G("ngClass",n.eq3(5,Fot,o.scrollable)),n.BMQ("data-pc-section","navcontent"),n.R7$(2),n.BMQ("data-pc-section","nav"),n.R7$(2),n.Dyx(o.tabs),n.R7$(2),n.Y8G("ngIf",o.scrollable&&!o.forwardIsDisabled&&o.buttonVisible))},dependencies:[gn,bi,fi,uo,Jr,Di,Rh,ou,Mh,pf,jx,qw],encapsulation:2,changeDetection:0})}return t})(),cst=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({imports:[Gue,Nue,Di,Di]})}return t})(),ust=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=n.$C({type:t})}static{this.\u0275inj=n.G2t({providers:[n$(i$())],imports:[gn,mot,wk,vg,Zp,Ix,sY,Ra,xv,th,tle,cst,Rh,Iv,th,d2,K_]})}}return t})();const dst=({dt:t})=>`\n.p-card {\n    background: ${t("card.background")};\n    color: ${t("card.color")};\n    box-shadow: ${t("card.shadow")};\n    border-radius: ${t("card.border.radius")};\n    display: flex;\n    flex-direction: column;\n}\n\n.p-card-caption {\n    display: flex;\n    flex-direction: column;\n    gap: ${t("card.caption.gap")};\n}\n\n.p-card-body {\n    padding: ${t("card.body.padding")};\n    display: flex;\n    flex-direction: column;\n    gap: ${t("card.body.gap")};\n}\n\n.p-card-title {\n    font-size: ${t("card.title.font.size")};\n    font-weight: ${t("card.title.font.weight")};\n}\n\n.p-card-subtitle {\n    color: ${t("card.subtitle.color")};\n}\n`,pst={root:"p-card p-component",header:"p-card-header",body:"p-card-body",caption:"p-card-caption",title:"p-card-title",subtitle:"p-card-subtitle",content:"p-card-content",footer:"p-card-footer"};let Bue=(()=>{class t extends gs{name="card";theme=dst;classes=pst;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const fst=["header"],mst=["title"],gst=["subtitle"],vst=["content"],_st=["footer"],yst=["*",[["p-header"]],[["p-footer"]]],bst=["*","p-header","p-footer"];function Cst(t,r){1&t&&n.eu8(0)}function wst(t,r){if(1&t&&(n.j41(0,"div",8),n.SdG(1,1),n.DNE(2,Cst,1,0,"ng-container",6),n.k0s()),2&t){const e=n.XpG();n.R7$(2),n.Y8G("ngTemplateOutlet",e.headerTemplate||e._headerTemplate)}}function Tst(t,r){if(1&t&&(n.qex(0),n.EFF(1),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.JRh(e.header)}}function Sst(t,r){1&t&&n.eu8(0)}function xst(t,r){if(1&t&&(n.j41(0,"div",9),n.DNE(1,Tst,2,1,"ng-container",10)(2,Sst,1,0,"ng-container",6),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngIf",e.header&&!e._titleTemplate&&!e.titleTemplate),n.R7$(),n.Y8G("ngTemplateOutlet",e.titleTemplate||e._titleTemplate)}}function Est(t,r){if(1&t&&(n.qex(0),n.EFF(1),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.JRh(e.subheader)}}function Dst(t,r){1&t&&n.eu8(0)}function kst(t,r){if(1&t&&(n.j41(0,"div",11),n.DNE(1,Est,2,1,"ng-container",10)(2,Dst,1,0,"ng-container",6),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngIf",e.subheader&&!e._subtitleTemplate&&e.subtitleTemplate),n.R7$(),n.Y8G("ngTemplateOutlet",e.subtitleTemplate||e._subtitleTemplate)}}function Ist(t,r){1&t&&n.eu8(0)}function Ast(t,r){1&t&&n.eu8(0)}function Mst(t,r){if(1&t&&(n.j41(0,"div",12),n.SdG(1,2),n.DNE(2,Ast,1,0,"ng-container",6),n.k0s()),2&t){const e=n.XpG();n.R7$(2),n.Y8G("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)}}let kg=(()=>{class t extends jo{header;subheader;set style(e){id(this._style(),e)||this._style.set(e)}styleClass;headerFacet;footerFacet;headerTemplate;titleTemplate;subtitleTemplate;contentTemplate;footerTemplate;_headerTemplate;_titleTemplate;_subtitleTemplate;_contentTemplate;_footerTemplate;_style=(0,n.vPA)(null);_componentStyle=(0,n.WQX)(Bue);getBlockableElement(){return this.el.nativeElement.children[0]}templates;ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"header":this._headerTemplate=e.template;break;case"title":this._titleTemplate=e.template;break;case"subtitle":this._subtitleTemplate=e.template;break;case"content":default:this._contentTemplate=e.template;break;case"footer":this._footerTemplate=e.template}})}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["p-card"]],contentQueries:function(i,o,s){if(1&i&&(n.wni(s,Q5,5),n.wni(s,rO,5),n.wni(s,fst,4),n.wni(s,mst,4),n.wni(s,gst,4),n.wni(s,vst,4),n.wni(s,_st,4),n.wni(s,hs,4)),2&i){let a;n.mGM(a=n.lsd())&&(o.headerFacet=a.first),n.mGM(a=n.lsd())&&(o.footerFacet=a.first),n.mGM(a=n.lsd())&&(o.headerTemplate=a.first),n.mGM(a=n.lsd())&&(o.titleTemplate=a.first),n.mGM(a=n.lsd())&&(o.subtitleTemplate=a.first),n.mGM(a=n.lsd())&&(o.contentTemplate=a.first),n.mGM(a=n.lsd())&&(o.footerTemplate=a.first),n.mGM(a=n.lsd())&&(o.templates=a)}},inputs:{header:"header",subheader:"subheader",style:"style",styleClass:"styleClass"},features:[n.Jv_([Bue]),n.Vt3],ngContentSelectors:bst,decls:9,vars:10,consts:[[3,"ngClass","ngStyle"],["class","p-card-header",4,"ngIf"],[1,"p-card-body"],["class","p-card-title",4,"ngIf"],["class","p-card-subtitle",4,"ngIf"],[1,"p-card-content"],[4,"ngTemplateOutlet"],["class","p-card-footer",4,"ngIf"],[1,"p-card-header"],[1,"p-card-title"],[4,"ngIf"],[1,"p-card-subtitle"],[1,"p-card-footer"]],template:function(i,o){1&i&&(n.NAR(yst),n.j41(0,"div",0),n.DNE(1,wst,3,1,"div",1),n.j41(2,"div",2),n.DNE(3,xst,3,2,"div",3)(4,kst,3,2,"div",4),n.j41(5,"div",5),n.SdG(6),n.DNE(7,Ist,1,0,"ng-container",6),n.k0s(),n.DNE(8,Mst,3,1,"div",7),n.k0s()()),2&i&&(n.HbH(o.styleClass),n.Y8G("ngClass","p-card p-component")("ngStyle",o._style()),n.BMQ("data-pc-name","card"),n.R7$(),n.Y8G("ngIf",o.headerFacet||o.headerTemplate||o._headerTemplate),n.R7$(2),n.Y8G("ngIf",o.header||o.titleTemplate||o._titleTemplate),n.R7$(),n.Y8G("ngIf",o.subheader||o.subtitleTemplate||o._subtitleTemplate),n.R7$(3),n.Y8G("ngTemplateOutlet",o.contentTemplate||o._contentTemplate),n.R7$(),n.Y8G("ngIf",o.footerFacet||o.footerTemplate||o._footerTemplate))},dependencies:[gn,bi,fi,uo,Jr,Di],encapsulation:2,changeDetection:0})}return t})(),rm=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({imports:[kg,Di,Di]})}return t})();const Rst=({dt:t})=>`\n.p-floatlabel {\n    display: block;\n    position: relative;\n}\n\n.p-floatlabel label {\n    position: absolute;\n    pointer-events: none;\n    top: 50%;\n    transform: translateY(-50%);\n    transition-property: all;\n    transition-timing-function: ease;\n    line-height: 1;\n    font-weight: ${t("floatlabel.font.weight")};\n    inset-inline-start: ${t("floatlabel.position.x")};\n    color: ${t("floatlabel.color")};\n    transition-duration: ${t("floatlabel.transition.duration")};\n}\n\n.p-floatlabel:has(.p-textarea) label {\n    top: ${t("floatlabel.position.y")};\n    transform: translateY(0);\n}\n\n.p-floatlabel:has(.p-inputicon:first-child) label {\n    inset-inline-start: calc((${t("form.field.padding.x")} * 2) + ${t("icon.size")});\n}\n\n.p-floatlabel:has(.ng-invalid.ng-dirty) label {\n    color: ${t("floatlabel.invalid.color")};\n}\n\n.p-floatlabel:has(input:focus) label,\n.p-floatlabel:has(input.p-filled) label,\n.p-floatlabel:has(input:-webkit-autofill) label,\n.p-floatlabel:has(textarea:focus) label,\n.p-floatlabel:has(textarea.p-filled) label,\n.p-floatlabel:has(.p-inputwrapper-focus) label,\n.p-floatlabel:has(.p-inputwrapper-filled) label {\n    top: ${t("floatlabel.over.active.top")};\n    transform: translateY(0);\n    font-size: ${t("floatlabel.active.font.size")};\n    font-weight: ${t("floatlabel.label.active.font.weight")};\n}\n\n.p-floatlabel:has(input.p-filled) label,\n.p-floatlabel:has(textarea.p-filled) label,\n.p-floatlabel:has(.p-inputwrapper-filled) label {\n    color: ${t("floatlabel.active.color")};\n}\n\n.p-floatlabel:has(input:focus) label,\n.p-floatlabel:has(input:-webkit-autofill) label,\n.p-floatlabel:has(textarea:focus) label,\n.p-floatlabel:has(.p-inputwrapper-focus) label {\n    color: ${t("floatlabel.focus.color")};\n}\n\n.p-floatlabel-in .p-inputtext,\n.p-floatlabel-in .p-textarea,\n.p-floatlabel-in .p-select-label,\n.p-floatlabel-in .p-multiselect-label-container,\n.p-floatlabel-in .p-autocomplete-input-multiple,\n.p-floatlabel-in .p-cascadeselect-label,\n.p-floatlabel-in .p-treeselect-label {\n    padding-top: ${t("floatlabel.in.input.padding.top")};\n}\n\n.p-floatlabel-in:has(input:focus) label,\n.p-floatlabel-in:has(input.p-filled) label,\n.p-floatlabel-in:has(input:-webkit-autofill) label,\n.p-floatlabel-in:has(textarea:focus) label,\n.p-floatlabel-in:has(textarea.p-filled) label,\n.p-floatlabel-in:has(.p-inputwrapper-focus) label,\n.p-floatlabel-in:has(.p-inputwrapper-filled) label {\n    top: ${t("floatlabel.in.active.top")};\n}\n\n.p-floatlabel-on:has(input:focus) label,\n.p-floatlabel-on:has(input.p-filled) label,\n.p-floatlabel-on:has(input:-webkit-autofill) label,\n.p-floatlabel-on:has(textarea:focus) label,\n.p-floatlabel-on:has(textarea.p-filled) label,\n.p-floatlabel-on:has(.p-inputwrapper-focus) label,\n.p-floatlabel-on:has(.p-inputwrapper-filled) label {\n    top: 0;\n    transform: translateY(-50%);\n    border-radius: ${t("floatlabel.on.border.radius")};\n    background: ${t("floatlabel.on.active.background")};\n    padding: ${t("floatlabel.on.active.padding")};\n}\n`,Ost={root:({props:r})=>["p-floatlabel",{"p-floatlabel-over":"over"===r.variant,"p-floatlabel-on":"on"===r.variant,"p-floatlabel-in":"in"===r.variant}]};let Vue=(()=>{class t extends gs{name="floatlabel";theme=Rst;classes=Ost;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const Pst=["*"];let om=(()=>{class t extends jo{_componentStyle=(0,n.WQX)(Vue);variant="over";static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["p-floatlabel"],["p-floatLabel"],["p-float-label"]],hostVars:8,hostBindings:function(i,o){2&i&&n.AVh("p-floatlabel",!0)("p-floatlabel-over","over"===o.variant)("p-floatlabel-on","on"===o.variant)("p-floatlabel-in","in"===o.variant)},inputs:{variant:"variant"},features:[n.Jv_([Vue]),n.Vt3],ngContentSelectors:Pst,decls:1,vars:0,template:function(i,o){1&i&&(n.NAR(),n.SdG(0))},dependencies:[gn,Di],encapsulation:2,changeDetection:0})}return t})(),Yv=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({imports:[om,Di,Di]})}return t})();const Lst=({dt:t})=>`\n.p-skeleton {\n    overflow: hidden;\n    background: ${t("skeleton.background")};\n    border-radius: ${t("skeleton.border.radius")};\n}\n\n.p-skeleton::after {\n    content: "";\n    animation: p-skeleton-animation 1.2s infinite;\n    height: 100%;\n    left: 0;\n    position: absolute;\n    right: 0;\n    top: 0;\n    transform: translateX(-100%);\n    z-index: 1;\n    background: linear-gradient(90deg, rgba(255, 255, 255, 0), ${t("skeleton.animation.background")}, rgba(255, 255, 255, 0));\n}\n\n[dir='rtl'] .p-skeleton::after {\n    animation-name: p-skeleton-animation-rtl;\n}\n\n.p-skeleton-circle {\n    border-radius: 50%;\n}\n\n.p-skeleton-animation-none::after {\n    animation: none;\n}\n\n@keyframes p-skeleton-animation {\n    from {\n        transform: translateX(-100%);\n    }\n    to {\n        transform: translateX(100%);\n    }\n}\n\n@keyframes p-skeleton-animation-rtl {\n    from {\n        transform: translateX(100%);\n    }\n    to {\n        transform: translateX(-100%);\n    }\n}\n`,Nst={root:{position:"relative"}},Gst={root:({props:t})=>["p-skeleton p-component",{"p-skeleton-circle":"circle"===t.shape,"p-skeleton-animation-none":"none"===t.animation}]};let jue=(()=>{class t extends gs{name="skeleton";theme=Lst;classes=Gst;inlineStyles=Nst;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})(),Pq=(()=>{class t extends jo{styleClass;style;shape="rectangle";animation="wave";borderRadius;size;width="100%";height="1rem";_componentStyle=(0,n.WQX)(jue);containerClass(){return{"p-skeleton p-component":!0,"p-skeleton-circle":"circle"===this.shape,"p-skeleton-animation-none":"none"===this.animation}}get containerStyle(){const e=this._componentStyle?.inlineStyles.root;let i;return i=this.size?{...this.style,...e,width:this.size,height:this.size,borderRadius:this.borderRadius}:{...e,width:this.width,height:this.height,borderRadius:this.borderRadius,...this.style},i}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["p-skeleton"]],inputs:{styleClass:"styleClass",style:"style",shape:"shape",animation:"animation",borderRadius:"borderRadius",size:"size",width:"width",height:"height"},features:[n.Jv_([jue]),n.Vt3],decls:1,vars:7,consts:[[3,"ngClass","ngStyle"]],template:function(i,o){1&i&&n.nrm(0,"div",0),2&i&&(n.HbH(o.styleClass),n.Y8G("ngClass",o.containerClass())("ngStyle",o.containerStyle),n.BMQ("data-pc-name","skeleton")("aria-hidden",!0)("data-pc-section","root"))},dependencies:[gn,bi,Jr,Di],encapsulation:2,changeDetection:0})}return t})(),Vst=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({imports:[Pq,Di,Di]})}return t})();const jst=({dt:t})=>`\n.p-timeline {\n    display: flex;\n    flex-grow: 1;\n    flex-direction: column;\n    direction: ltr;\n}\n\n.p-timeline-left .p-timeline-event-opposite {\n    text-align: right;\n}\n\n.p-timeline-left .p-timeline-event-content {\n    text-align: left;\n}\n\n.p-timeline-right .p-timeline-event {\n    flex-direction: row-reverse;\n}\n\n.p-timeline-right .p-timeline-event-opposite {\n    text-align: left;\n}\n\n.p-timeline-right .p-timeline-event-content {\n    text-align: right;\n}\n\n.p-timeline-vertical.p-timeline-alternate .p-timeline-event:nth-child(even) {\n    flex-direction: row-reverse;\n}\n\n.p-timeline-vertical.p-timeline-alternate .p-timeline-event:nth-child(odd) .p-timeline-event-opposite {\n    text-align: right;\n}\n\n.p-timeline-vertical.p-timeline-alternate .p-timeline-event:nth-child(odd) .p-timeline-event-content {\n    text-align: left;\n}\n\n.p-timeline-vertical.p-timeline-alternate .p-timeline-event:nth-child(even) .p-timeline-event-opposite {\n    text-align: left;\n}\n\n.p-timeline-vertical.p-timeline-alternate .p-timeline-event:nth-child(even) .p-timeline-event-content {\n    text-align: right;\n}\n\n.p-timeline-vertical .p-timeline-event-opposite,\n.p-timeline-vertical .p-timeline-event-content {\n    padding: ${t("timeline.vertical.event.content.padding")};\n}\n\n.p-timeline-vertical .p-timeline-event-connector {\n    width: ${t("timeline.event.connector.size")};\n}\n\n.p-timeline-event {\n    display: flex;\n    position: relative;\n    min-height: ${t("timeline.event.min.height")};\n}\n\n.p-timeline-event:last-child {\n    min-height: 0;\n}\n\n.p-timeline-event-opposite {\n    flex: 1;\n}\n\n.p-timeline-event-content {\n    flex: 1;\n}\n\n.p-timeline-event-separator {\n    flex: 0;\n    display: flex;\n    align-items: center;\n    flex-direction: column;\n}\n\n.p-timeline-event-marker {\n    display: inline-flex;\n    align-items: center;\n    justify-content: center;\n    position: relative;\n    align-self: baseline;\n    border-width: ${t("timeline.event.marker.border.width")};\n    border-style: solid;\n    border-color: ${t("timeline.event.marker.border.color")};\n    border-radius: ${t("timeline.event.marker.border.radius")};\n    width: ${t("timeline.event.marker.size")};\n    height: ${t("timeline.event.marker.size")};\n    background: ${t("timeline.event.marker.background")};\n}\n\n.p-timeline-event-marker::before {\n    content: " ";\n    border-radius: ${t("timeline.event.marker.content.border.radius")};\n    width: ${t("timeline.event.marker.content.size")};\n    height:${t("timeline.event.marker.content.size")};\n    background: ${t("timeline.event.marker.content.background")};\n}\n\n.p-timeline-event-marker::after {\n    content: " ";\n    position: absolute;\n    width: 100%;\n    height: 100%;\n    border-radius: ${t("timeline.event.marker.border.radius")};\n    box-shadow: ${t("timeline.event.marker.content.inset.shadow")};\n}\n\n.p-timeline-event-connector {\n    flex-grow: 1;\n    background: ${t("timeline.event.connector.color")};\n}\n\n.p-timeline-horizontal {\n    flex-direction: row;\n}\n\n.p-timeline-horizontal .p-timeline-event {\n    flex-direction: column;\n    flex: 1;\n}\n\n.p-timeline-horizontal .p-timeline-event:last-child {\n    flex: 0;\n}\n\n.p-timeline-horizontal .p-timeline-event-separator {\n    flex-direction: row;\n}\n\n.p-timeline-horizontal .p-timeline-event-connector {\n    width: 100%;\n    height: ${t("timeline.event.connector.size")};\n}\n\n.p-timeline-horizontal .p-timeline-event-opposite,\n.p-timeline-horizontal .p-timeline-event-content {\n    padding: ${t("timeline.horizontal.event.content.padding")};\n}\n\n.p-timeline-horizontal.p-timeline-alternate .p-timeline-event:nth-child(even) {\n    flex-direction: column-reverse;\n}\n\n.p-timeline-bottom .p-timeline-event {\n    flex-direction: column-reverse;\n}\n`,Hst={root:({props:t})=>["p-timeline p-component","p-timeline-"+t.align,"p-timeline-"+t.layout],event:"p-timeline-event",eventOpposite:"p-timeline-event-opposite",eventSeparator:"p-timeline-event-separator",eventMarker:"p-timeline-event-marker",eventConnector:"p-timeline-event-connector",eventContent:"p-timeline-event-content"};let Hue=(()=>{class t extends gs{name="timeline";theme=jst;classes=Hst;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const $st=["content"],Yst=["opposite"],Wst=["marker"],Lq=t=>({$implicit:t});function zst(t,r){1&t&&n.eu8(0)}function qst(t,r){1&t&&n.eu8(0)}function Xst(t,r){if(1&t&&(n.qex(0),n.DNE(1,qst,1,0,"ng-container",4),n.bVm()),2&t){const e=n.XpG().$implicit,i=n.XpG();n.R7$(),n.Y8G("ngTemplateOutlet",i.markerTemplate||i._markerTemplate)("ngTemplateOutletContext",n.eq3(2,Lq,e))}}function Kst(t,r){1&t&&n.nrm(0,"div",9),2&t&&n.BMQ("data-pc-section","marker")}function Qst(t,r){1&t&&n.nrm(0,"div",10)}function Jst(t,r){1&t&&n.eu8(0)}function Zst(t,r){if(1&t&&(n.j41(0,"div",2)(1,"div",3),n.DNE(2,zst,1,0,"ng-container",4),n.k0s(),n.j41(3,"div",5),n.DNE(4,Xst,2,4,"ng-container",6)(5,Kst,1,1,"ng-template",null,0,n.C5r)(7,Qst,1,0,"div",7),n.k0s(),n.j41(8,"div",8),n.DNE(9,Jst,1,0,"ng-container",4),n.k0s()()),2&t){const e=r.$implicit,i=r.last,o=n.sdS(6),s=n.XpG();n.BMQ("data-pc-section","event"),n.R7$(),n.BMQ("data-pc-section","opposite"),n.R7$(),n.Y8G("ngTemplateOutlet",s.oppositeTemplate||s._oppositeTemplate)("ngTemplateOutletContext",n.eq3(11,Lq,e)),n.R7$(),n.BMQ("data-pc-section","separator"),n.R7$(),n.Y8G("ngIf",s.markerTemplate||s._markerTemplate)("ngIfElse",o),n.R7$(3),n.Y8G("ngIf",!i),n.R7$(),n.BMQ("data-pc-section","content"),n.R7$(),n.Y8G("ngTemplateOutlet",s.contentTemplate||s._contentTemplate)("ngTemplateOutletContext",n.eq3(13,Lq,e))}}let eat=(()=>{class t extends jo{value;style;styleClass;align="left";layout="vertical";contentTemplate;oppositeTemplate;markerTemplate;templates;_contentTemplate;_oppositeTemplate;_markerTemplate;_componentStyle=(0,n.WQX)(Hue);get hostClass(){return this.styleClass}getBlockableElement(){return this.el.nativeElement.children[0]}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":this._contentTemplate=e.template;break;case"opposite":this._oppositeTemplate=e.template;break;case"marker":this._markerTemplate=e.template}})}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["p-timeline"]],contentQueries:function(i,o,s){if(1&i&&(n.wni(s,$st,4),n.wni(s,Yst,4),n.wni(s,Wst,4),n.wni(s,hs,4)),2&i){let a;n.mGM(a=n.lsd())&&(o.contentTemplate=a.first),n.mGM(a=n.lsd())&&(o.oppositeTemplate=a.first),n.mGM(a=n.lsd())&&(o.markerTemplate=a.first),n.mGM(a=n.lsd())&&(o.templates=a)}},hostVars:24,hostBindings:function(i,o){2&i&&(n.BMQ("data-pc-section","root")("data-pc-name","timeline"),n.Aen(o.style),n.HbH(o.hostClass),n.AVh("p-timeline",!0)("p-component",!0)("p-timeline-left","left"===o.align)("p-timeline-right","right"===o.align)("p-timeline-top","top"===o.align)("p-timeline-bottom","bottom"===o.align)("p-timeline-alternate","alternate"===o.align)("p-timeline-vertical","vertical"===o.layout)("p-timeline-horizontal","horizontal"===o.layout))},inputs:{value:"value",style:"style",styleClass:"styleClass",align:"align",layout:"layout"},features:[n.Jv_([Hue]),n.Vt3],decls:1,vars:1,consts:[["marker",""],["class","p-timeline-event",4,"ngFor","ngForOf"],[1,"p-timeline-event"],[1,"p-timeline-event-opposite"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-timeline-event-separator"],[4,"ngIf","ngIfElse"],["class","p-timeline-event-connector",4,"ngIf"],[1,"p-timeline-event-content"],[1,"p-timeline-event-marker"],[1,"p-timeline-event-connector"]],template:function(i,o){1&i&&n.DNE(0,Zst,10,15,"div",1),2&i&&n.Y8G("ngForOf",o.value)},dependencies:[gn,oo,fi,uo,Di],encapsulation:2,changeDetection:0})}return t})(),tat=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({imports:[eat,Di,Di]})}return t})();const nat=({dt:t})=>`\n.p-tree {\n    background: ${t("tree.background")};\n    color: ${t("tree.color")};\n    padding: ${t("tree.padding")};\n}\n\n.p-tree-root-children,\n.p-tree-node-children {\n    display: flex;\n    list-style-type: none;\n    flex-direction: column;\n    margin: 0;\n    gap: ${t("tree.gap")};\n}\n\n.p-tree-root-children {\n    padding: 0;\n    padding-block-start: ${t("tree.gap")};\n}\n\n.p-tree-node-children {\n    padding-block-start: ${t("tree.gap")};\n    padding-inline-start: ${t("tree.indent")};\n}\n\n.p-tree-node {\n    padding: 0;\n    outline: 0 none;\n}\n\n.p-tree-node-content {\n    border-radius: ${t("tree.node.border.radius")};\n    padding: ${t("tree.node.padding")};\n    display: flex;\n    align-items: center;\n    outline-color: transparent;\n    color: ${t("tree.node.color")};\n    gap: ${t("tree.node.gap")};\n    transition: background ${t("tree.transition.duration")}, color ${t("tree.transition.duration")}, outline-color ${t("tree.transition.duration")}, box-shadow ${t("tree.transition.duration")};\n}\n\n.p-tree-node:focus-visible > .p-tree-node-content {\n    box-shadow: ${t("tree.node.focus.ring.shadow")};\n    outline: ${t("tree.node.focus.ring.width")} ${t("tree.node.focus.ring.style")} ${t("tree.node.focus.ring.color")};\n    outline-offset: ${t("tree.node.focus.ring.offset")};\n}\n\n.p-tree-node-content.p-tree-node-selectable:not(.p-tree-node-selected):hover {\n    background: ${t("tree.node.hover.background")};\n    color: ${t("tree.node.hover.color")};\n}\n\n.p-tree-node-content.p-tree-node-selectable:not(.p-tree-node-selected):hover .p-tree-node-icon {\n    color: ${t("tree.node.icon.hover.color")};\n}\n\n.p-tree-node-content.p-tree-node-selected {\n    background: ${t("tree.node.selected.background")};\n    color: ${t("tree.node.selected.color")};\n}\n\n.p-tree-node-content.p-tree-node-selected .p-tree-node-toggle-button {\n    color: inherit;\n}\n\n.p-tree-node-toggle-button {\n    cursor: pointer;\n    user-select: none;\n    display: inline-flex;\n    align-items: center;\n    justify-content: center;\n    overflow: hidden;\n    position: relative;\n    flex-shrink: 0;\n    width: ${t("tree.node.toggle.button.size")};\n    height: ${t("tree.node.toggle.button.size")};\n    color: ${t("tree.node.toggle.button.color")};\n    border: 0 none;\n    background: transparent;\n    border-radius: ${t("tree.node.toggle.button.border.radius")};\n    transition: background ${t("tree.transition.duration")}, color ${t("tree.transition.duration")}, border-color ${t("tree.transition.duration")}, outline-color ${t("tree.transition.duration")}, box-shadow ${t("tree.transition.duration")};\n    outline-color: transparent;\n    padding: 0;\n}\n\n.p-tree-node-toggle-button:enabled:hover {\n    background: ${t("tree.node.toggle.button.hover.background")};\n    color: ${t("tree.node.toggle.button.hover.color")};\n}\n\n.p-tree-node-content.p-tree-node-selected .p-tree-node-toggle-button:hover {\n    background: ${t("tree.node.toggle.button.selected.hover.background")};\n    color: ${t("tree.node.toggle.button.selected.hover.color")};\n}\n\n.p-tree-root {\n    overflow: auto;\n}\n\n.p-tree-node-selectable {\n    cursor: pointer;\n    user-select: none;\n}\n\n.p-tree-node-leaf > .p-tree-node-content .p-tree-node-toggle-button {\n    visibility: hidden;\n}\n\n.p-tree-node-icon {\n    color: ${t("tree.node.icon.color")};\n    transition: color ${t("tree.transition.duration")};\n}\n\n.p-tree-node-content.p-tree-node-selected .p-tree-node-icon {\n    color: ${t("tree.node.icon.selected.color")};\n}\n\n.p-tree-filter-input {\n    width: 100%;\n}\n\n.p-tree-loading {\n    position: relative;\n    height: 100%;\n}\n\n.p-tree-loading-icon {\n    font-size: ${t("tree.loading.icon.size")};\n    width: ${t("tree.loading.icon.size")};\n    height: ${t("tree.loading.icon.size")};\n}\n\n.p-tree .p-tree-mask {\n    position: absolute;\n    z-index: 1;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n}\n\n.p-tree-flex-scrollable {\n    display: flex;\n    flex: 1;\n    height: 100%;\n    flex-direction: column;\n}\n\n.p-tree-flex-scrollable .p-tree-root {\n    flex: 1;\n}\n\n/* For PrimeNG */\n.p-tree .p-tree-node-droppoint {\n    height: 4px;\n    list-style-type: none;\n}\n\n.p-tree .p-tree-node-droppoint-active {\n    border: 0 none;\n    background-color: ${t("primary.color")};\n}\n\n.p-tree-node-content.p-tree-node-dragover {\n    background: ${t("tree.node.hover.background")};\n    color: ${t("tree.node.hover.color")};\n}\n\n.p-tree-node-content.p-tree-node-dragover .p-tree-node-icon {\n    color: ${t("tree.node.icon.hover.color")};\n}\n\n.p-tree-horizontal {\n    width: auto;\n    padding-inline-start: 0;\n    padding-inline-end: 0;\n    overflow: auto;\n}\n\n.p-tree.p-tree-horizontal table,\n.p-tree.p-tree-horizontal tr,\n.p-tree.p-tree-horizontal td {\n    border-collapse: collapse;\n    margin: 0;\n    padding: 0;\n    vertical-align: middle;\n}\n\n.p-tree-horizontal .p-tree-node-content {\n    font-weight: normal;\n    padding: 0.4em 1em 0.4em 0.2em;\n    display: flex;\n    align-items: center;\n}\n\n.p-tree-horizontal .p-tree-node-parent .p-tree-node-content {\n    font-weight: normal;\n    white-space: nowrap;\n}\n\n.p-tree.p-tree-horizontal .p-tree-node.p-tree-node-leaf,\n.p-tree.p-tree-horizontal .p-tree-node.p-tree-node-collapsed {\n    padding-inline-end: 0;\n}\n\n.p-tree.p-tree-horizontal .p-tree-node-children {\n    padding: 0;\n    margin: 0;\n}\n\n.p-tree.p-tree-horizontal .p-tree-node-connector {\n    width: 1px;\n}\n\n.p-tree.p-tree-horizontal .p-tree-node-connector-table {\n    height: 100%;\n    width: 1px;\n}\n\n.p-tree.p-tree-horizontal table {\n    height: 0;\n}\n`,iat={root:({instance:t})=>({"p-tree p-component":!0,"p-tree-selectable":null!=t.selectionMode,"p-tree-loading":t.loading,"p-tree-flex-scrollable":"flex"===t.scrollHeight,"p-tree-node-dragover":t.dragHover}),mask:"p-tree-mask p-overlay-mask",loadingIcon:"p-tree-loading-icon",pcFilterInput:"p-tree-filter-input",wrapper:"p-tree-root",rootChildren:"p-tree-root-children",node:({instance:t})=>({"p-tree-node":!0,"p-tree-node-leaf":t.isLeaf()}),nodeContent:({instance:t})=>({"p-tree-node-content":!0,[t.styleClass]:!!t.styleClass,"p-tree-node-selectable":t.selectable,"p-tree-node-dragover":t.draghoverNode,"p-tree-node-selected":"checkbox"===t.selectionMode&&t.tree.highlightOnSelect?t.checked:t.selected}),nodeToggleButton:"p-tree-node-toggle-button",nodeToggleIcon:"p-tree-node-toggle-icon",nodeCheckbox:"p-tree-node-checkbox",nodeIcon:"p-tree-node-icon",nodeLabel:"p-tree-node-label",nodeChildren:"p-tree-node-children"};let Uue=(()=>{class t extends gs{name="tree";theme=nat;classes=iat;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const $ue=t=>({height:t}),Yue=t=>({"p-tree-node-droppoint-active":t}),Nq=t=>({$implicit:t}),oat=(t,r)=>({$implicit:t,partialSelected:r,class:"p-tree-node-checkbox"});function sat(t,r){if(1&t){const e=n.RV6();n.j41(0,"li",11),n.bIt("drop",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onDropPoint(o,-1))})("dragover",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onDropPointDragOver(o))})("dragenter",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onDropPointDragEnter(o,-1))})("dragleave",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onDropPointDragLeave(o))}),n.k0s()}if(2&t){const e=n.XpG(2);n.Y8G("ngClass",n.eq3(2,Yue,e.draghoverPrev)),n.BMQ("aria-hidden",!0)}}function aat(t,r){1&t&&n.nrm(0,"ChevronRightIcon",13),2&t&&n.Y8G("styleClass","p-tree-node-toggle-icon")}function lat(t,r){1&t&&n.nrm(0,"ChevronDownIcon",13),2&t&&n.Y8G("styleClass","p-tree-node-toggle-icon")}function cat(t,r){if(1&t&&(n.qex(0),n.DNE(1,aat,1,1,"ChevronRightIcon",12)(2,lat,1,1,"ChevronDownIcon",12),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngIf",!e.node.expanded),n.R7$(),n.Y8G("ngIf",e.node.expanded)}}function uat(t,r){1&t&&(n.qex(0),n.nrm(1,"SpinnerIcon",13),n.bVm()),2&t&&(n.R7$(),n.Y8G("styleClass","pi-spin p-tree-node-toggle-icon"))}function dat(t,r){if(1&t&&(n.qex(0),n.DNE(1,cat,3,2,"ng-container",5)(2,uat,2,1,"ng-container",5),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngIf",!e.node.loading),n.R7$(),n.Y8G("ngIf","icon"===e.loadingMode&&e.node.loading)}}function pat(t,r){}function hat(t,r){1&t&&n.DNE(0,pat,0,0,"ng-template")}function fat(t,r){if(1&t&&(n.j41(0,"span",14),n.DNE(1,hat,1,0,null,15),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngTemplateOutlet",e.tree.togglerIconTemplate||e.tree._togglerIconTemplate)("ngTemplateOutletContext",n.eq3(2,Nq,e.node.expanded))}}function mat(t,r){}function gat(t,r){1&t&&n.DNE(0,mat,0,0,"ng-template")}function vat(t,r){if(1&t&&n.DNE(0,gat,1,0,null,15),2&t){const e=n.XpG(4);n.Y8G("ngTemplateOutlet",e.tree.checkboxIconTemplate||e.tree._checkboxIconTemplate)("ngTemplateOutletContext",n.l_i(2,oat,e.isSelected(),e.node.partialSelected))}}function _at(t,r){1&t&&(n.qex(0),n.DNE(1,vat,1,5,"ng-template",null,0,n.C5r),n.bVm())}function yat(t,r){if(1&t){const e=n.RV6();n.j41(0,"p-checkbox",16),n.bIt("click",function(o){return n.eBV(e),n.Njj(o.preventDefault())}),n.DNE(1,_at,3,0,"ng-container",5),n.k0s()}if(2&t){const e=n.XpG(2);n.Y8G("ngModel",e.isSelected())("binary",!0)("indeterminate",e.node.partialSelected)("disabled",!1===e.node.selectable)("variant",(null==e.tree||e.tree.config.inputStyle(),"filled"))("tabindex",-1),n.BMQ("data-p-partialchecked",e.node.partialSelected),n.R7$(),n.Y8G("ngIf",e.tree.checkboxIconTemplate||e.tree._checkboxIconTemplate)}}function bat(t,r){if(1&t&&n.nrm(0,"span"),2&t){const e=n.XpG(2);n.HbH(e.getIcon())}}function Cat(t,r){if(1&t&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.JRh(e.node.label)}}function wat(t,r){1&t&&n.eu8(0)}function Tat(t,r){if(1&t&&(n.j41(0,"span"),n.DNE(1,wat,1,0,"ng-container",15),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngTemplateOutlet",e.tree.getTemplateForNode(e.node))("ngTemplateOutletContext",n.eq3(2,Nq,e.node))}}function Sat(t,r){if(1&t&&n.nrm(0,"p-treeNode",19),2&t){const e=r.$implicit,i=r.first,o=r.last,s=r.index,a=n.XpG(3);n.Y8G("node",e)("parentNode",a.node)("firstChild",i)("lastChild",o)("index",s)("itemSize",a.itemSize)("level",a.level+1)("loadingMode",a.loadingMode)}}function xat(t,r){if(1&t&&(n.j41(0,"ul",17),n.DNE(1,Sat,1,8,"p-treeNode",18),n.k0s()),2&t){const e=n.XpG(2);n.xc7("display",e.node.expanded?"block":"none"),n.R7$(),n.Y8G("ngForOf",e.node.children)("ngForTrackBy",e.tree.trackBy.bind(e))}}function Eat(t,r){if(1&t){const e=n.RV6();n.j41(0,"li",11),n.bIt("drop",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onDropPoint(o,1))})("dragover",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onDropPointDragOver(o))})("dragenter",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onDropPointDragEnter(o,1))})("dragleave",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onDropPointDragLeave(o))}),n.k0s()}if(2&t){const e=n.XpG(2);n.Y8G("ngClass",n.eq3(2,Yue,e.draghoverNext)),n.BMQ("aria-hidden",!0)}}function Dat(t,r){if(1&t){const e=n.RV6();n.DNE(0,sat,1,4,"li",1),n.j41(1,"li",2),n.bIt("keydown",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onKeyDown(o))}),n.j41(2,"div",3),n.bIt("click",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onNodeClick(o))})("contextmenu",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onNodeRightClick(o))})("touchend",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onNodeTouchEnd())})("drop",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onDropNode(o))})("dragover",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onDropNodeDragOver(o))})("dragenter",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onDropNodeDragEnter(o))})("dragleave",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onDropNodeDragLeave(o))})("dragstart",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onDragStart(o))})("dragend",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onDragStop(o))}),n.j41(3,"button",4),n.bIt("click",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.toggle(o))}),n.DNE(4,dat,3,2,"ng-container",5)(5,fat,2,4,"span",6),n.k0s(),n.DNE(6,yat,2,8,"p-checkbox",7)(7,bat,1,2,"span",8),n.j41(8,"span",9),n.DNE(9,Cat,2,1,"span",5)(10,Tat,2,4,"span",5),n.k0s()(),n.DNE(11,xat,2,4,"ul",10),n.k0s(),n.DNE(12,Eat,1,4,"li",1)}if(2&t){const e=n.XpG();n.Y8G("ngIf",e.tree.droppableNodes),n.R7$(),n.Aen(e.node.style),n.Y8G("ngClass",e.nodeClass)("ngStyle",n.eq3(27,$ue,e.itemSize+"px")),n.BMQ("aria-label",e.node.label)("aria-checked",e.checked)("aria-setsize",e.node.children?e.node.children.length:0)("aria-selected",e.selected)("aria-expanded",e.node.expanded)("aria-posinset",e.index+1)("aria-level",e.level+1)("tabindex",0===e.index?0:-1)("data-id",e.node.key),n.R7$(),n.xc7("padding-left",e.level*e.indentation+"rem"),n.Y8G("ngClass",e.nodeContentClass)("draggable",e.tree.draggableNodes),n.R7$(),n.BMQ("data-pc-section","toggler"),n.R7$(),n.Y8G("ngIf",!e.tree.togglerIconTemplate&&!e.tree._togglerIconTemplate),n.R7$(),n.Y8G("ngIf",e.tree.togglerIconTemplate||e.tree._togglerIconTemplate),n.R7$(),n.Y8G("ngIf","checkbox"==e.tree.selectionMode),n.R7$(),n.Y8G("ngIf",e.node.icon||e.node.expandedIcon||e.node.collapsedIcon),n.R7$(2),n.Y8G("ngIf",!e.tree.getTemplateForNode(e.node)),n.R7$(),n.Y8G("ngIf",e.tree.getTemplateForNode(e.node)),n.R7$(),n.Y8G("ngIf",!e.tree.virtualScroll&&e.node.children&&e.node.expanded),n.R7$(),n.Y8G("ngIf",e.tree.droppableNodes&&e.lastChild)}}const Wue=["filter"],kat=["node"],Iat=["header"],Aat=["footer"],Mat=["loader"],Rat=["empty"],Oat=["togglericon"],Fat=["checkboxicon"],Pat=["loadingicon"],Lat=["filtericon"],Nat=["scroller"],Gat=["wrapper"],Bat=t=>({options:t});function Vat(t,r){if(1&t&&n.nrm(0,"i"),2&t){const e=n.XpG(2);n.HbH("p-tree-loading-icon pi-spin "+e.loadingIcon)}}function jat(t,r){1&t&&n.nrm(0,"SpinnerIcon",16),2&t&&n.Y8G("spin",!0)("styleClass","p-tree-loading-icon")}function Hat(t,r){}function Uat(t,r){1&t&&n.DNE(0,Hat,0,0,"ng-template")}function $at(t,r){if(1&t&&(n.j41(0,"span",17),n.DNE(1,Uat,1,0,null,9),n.k0s()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function Yat(t,r){if(1&t&&(n.qex(0),n.DNE(1,jat,1,2,"SpinnerIcon",14)(2,$at,2,1,"span",15),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate),n.R7$(),n.Y8G("ngIf",e.loadingIconTemplate||e._loadingIconTemplate)}}function Wat(t,r){if(1&t&&(n.j41(0,"div",12),n.DNE(1,Vat,1,2,"i",13)(2,Yat,3,2,"ng-container",10),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngIf",e.loadingIcon),n.R7$(),n.Y8G("ngIf",!e.loadingIcon)}}function zat(t,r){1&t&&n.eu8(0)}function qat(t,r){1&t&&n.eu8(0)}function Xat(t,r){if(1&t&&n.DNE(0,qat,1,0,"ng-container",18),2&t){const e=n.XpG();n.Y8G("ngTemplateOutlet",e.filterTemplate||e._filterTemplate)("ngTemplateOutletContext",n.eq3(2,Nq,e.filterOptions))}}function Kat(t,r){1&t&&n.nrm(0,"SearchIcon",21)}function Qat(t,r){}function Jat(t,r){1&t&&n.DNE(0,Qat,0,0,"ng-template")}function Zat(t,r){if(1&t&&(n.j41(0,"span"),n.DNE(1,Jat,1,0,null,9),n.k0s()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngTemplateOutlet",e.filterIconTemplate||e._filterIconTemplate)}}function elt(t,r){if(1&t){const e=n.RV6();n.j41(0,"p-iconField")(1,"input",19,0),n.bIt("keydown.enter",function(o){return n.eBV(e),n.Njj(o.preventDefault())})("input",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s._filter(o.target.value))}),n.k0s(),n.j41(3,"p-inputIcon"),n.DNE(4,Kat,1,0,"SearchIcon",20)(5,Zat,2,1,"span",10),n.k0s()()}if(2&t){const e=n.XpG(2);n.R7$(),n.BMQ("placeholder",e.filterPlaceholder),n.R7$(3),n.Y8G("ngIf",!e.filterIconTemplate&&!e._filterIconTemplate),n.R7$(),n.Y8G("ngIf",e.filterIconTemplate||e._filterIconTemplate)}}function tlt(t,r){if(1&t&&n.DNE(0,elt,6,3,"p-iconField",10),2&t){const e=n.XpG();n.Y8G("ngIf",e.filter)}}function nlt(t,r){if(1&t&&n.nrm(0,"p-treeNode",27,3),2&t){const e=r.$implicit,i=r.first,o=r.last,s=r.index,a=n.XpG(2).options,l=n.XpG(3);n.Y8G("level",e.level)("rowNode",e)("node",e.node)("parentNode",e.parent)("firstChild",i)("lastChild",o)("index",l.getIndex(a,s))("itemSize",a.itemSize)("indentation",l.indentation)("loadingMode",l.loadingMode)}}function ilt(t,r){if(1&t&&(n.j41(0,"ul",25),n.DNE(1,nlt,2,10,"p-treeNode",26),n.k0s()),2&t){const e=n.XpG(),i=e.$implicit,o=e.options,s=n.XpG(3);n.Aen(o.contentStyle),n.Y8G("ngClass",o.contentStyleClass),n.BMQ("aria-label",s.ariaLabel)("aria-labelledby",s.ariaLabelledBy),n.R7$(),n.Y8G("ngForOf",i)("ngForTrackBy",s.trackBy)}}function rlt(t,r){1&t&&n.DNE(0,ilt,2,7,"ul",24),2&t&&n.Y8G("ngIf",r.$implicit)}function olt(t,r){1&t&&n.eu8(0)}function slt(t,r){if(1&t&&n.DNE(0,olt,1,0,"ng-container",18),2&t){const e=r.options,i=n.XpG(4);n.Y8G("ngTemplateOutlet",i.loaderTemplate||i._loaderTemplate)("ngTemplateOutletContext",n.eq3(2,Bat,e))}}function alt(t,r){1&t&&(n.qex(0),n.DNE(1,slt,1,4,"ng-template",null,4,n.C5r),n.bVm())}function llt(t,r){if(1&t){const e=n.RV6();n.j41(0,"p-scroller",23,1),n.bIt("onScroll",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onScroll.emit(o))})("onScrollIndexChange",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onScrollIndexChange.emit(o))})("onLazyLoad",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onLazyLoad.emit(o))}),n.DNE(2,rlt,1,1,"ng-template",null,2,n.C5r)(4,alt,3,0,"ng-container",10),n.k0s()}if(2&t){const e=n.XpG(2);n.Aen(n.eq3(9,$ue,"flex"!==e.scrollHeight?e.scrollHeight:void 0)),n.Y8G("items",e.serializedValue)("tabindex",-1)("scrollHeight","flex"!==e.scrollHeight?void 0:"100%")("itemSize",e.virtualScrollItemSize||e._virtualNodeHeight)("lazy",e.lazy)("options",e.virtualScrollOptions),n.R7$(4),n.Y8G("ngIf",e.loaderTemplate||e._loaderTemplate)}}function clt(t,r){if(1&t&&n.nrm(0,"p-treeNode",32),2&t){const e=r.$implicit,i=r.first,o=r.last,s=r.index,a=n.XpG(4);n.Y8G("node",e)("firstChild",i)("lastChild",o)("index",s)("level",0)("loadingMode",a.loadingMode)}}function ult(t,r){if(1&t&&(n.j41(0,"ul",30),n.DNE(1,clt,1,6,"p-treeNode",31),n.k0s()),2&t){const e=n.XpG(3);n.BMQ("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledBy),n.R7$(),n.Y8G("ngForOf",e.getRootNode())("ngForTrackBy",e.trackBy.bind(e))}}function dlt(t,r){if(1&t&&(n.qex(0),n.j41(1,"div",28,5),n.DNE(3,ult,2,4,"ul",29),n.k0s(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.xc7("max-height",e.scrollHeight),n.R7$(2),n.Y8G("ngIf",e.getRootNode())}}function plt(t,r){if(1&t&&(n.qex(0),n.DNE(1,llt,5,11,"p-scroller",22)(2,dlt,4,3,"ng-container",10),n.bVm()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngIf",e.virtualScroll),n.R7$(),n.Y8G("ngIf",!e.virtualScroll)}}function hlt(t,r){if(1&t&&(n.qex(0),n.EFF(1),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.SpI(" ",e.emptyMessageLabel," ")}}function flt(t,r){}function mlt(t,r){1&t&&n.DNE(0,flt,0,0,"ng-template",null,6,n.C5r)}function glt(t,r){if(1&t&&(n.j41(0,"div",33),n.DNE(1,hlt,2,1,"ng-container",34)(2,mlt,2,0,null,9),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngIf",!e.emptyMessageTemplate&&!e._emptyMessageTemplate)("ngIfElse",e.emptyFilter),n.R7$(),n.Y8G("ngTemplateOutlet",e.emptyMessageTemplate||e._emptyMessageTemplate)}}function vlt(t,r){1&t&&n.eu8(0)}let _lt=(()=>{class t extends jo{static ICON_CLASS="p-tree-node-icon ";rowNode;node;parentNode;root;index;firstChild;lastChild;level;indentation;itemSize;loadingMode;tree=(0,n.WQX)((0,n.Rfq)(()=>YG));timeout;draghoverPrev;draghoverNext;draghoverNode;get selected(){return"single"===this.tree.selectionMode||"multiple"===this.tree.selectionMode?this.isSelected():void 0}get checked(){return"checkbox"===this.tree.selectionMode?this.isSelected():void 0}get nodeClass(){return this.tree._componentStyle.classes.node({instance:this})}get nodeContentClass(){return this.tree._componentStyle.classes.nodeContent({instance:this})}get selectable(){return!1!==this.node.selectable&&null!=this.tree.selectionMode}ngOnInit(){super.ngOnInit(),this.node.parent=this.parentNode;const i=this.tree.el.nativeElement.closest("p-dialog");this.parentNode&&!i&&(this.setAllNodesTabIndexes(),this.tree.syncNodeOption(this.node,this.tree.value,"parent",this.tree.getNodeWithKey(this.parentNode.key,this.tree.value)))}getIcon(){let e;return e=this.node.icon?this.node.icon:this.node.expanded&&this.node.children&&this.node.children?.length?this.node.expandedIcon:this.node.collapsedIcon,t.ICON_CLASS+" "+e+" p-tree-node-icon"}isLeaf(){return this.tree.isNodeLeaf(this.node)}toggle(e){this.node.expanded?this.collapse(e):this.expand(e),e.stopPropagation()}expand(e){this.node.expanded=!0,this.tree.virtualScroll&&(this.tree.updateSerializedValue(),this.focusVirtualNode()),this.tree.onNodeExpand.emit({originalEvent:e,node:this.node})}collapse(e){this.node.expanded=!1,this.tree.virtualScroll&&(this.tree.updateSerializedValue(),this.focusVirtualNode()),this.tree.onNodeCollapse.emit({originalEvent:e,node:this.node})}onNodeClick(e){this.tree.onNodeClick(e,this.node)}onNodeKeydown(e){"Enter"===e.key&&this.tree.onNodeClick(e,this.node)}onNodeTouchEnd(){this.tree.onNodeTouchEnd()}onNodeRightClick(e){this.tree.onNodeRightClick(e,this.node)}isSelected(){return this.tree.isSelected(this.node)}isSameNode(e){return e.currentTarget&&(e.currentTarget.isSameNode(e.target)||e.currentTarget.isSameNode(e.target.closest('[role="treeitem"]')))}onDropPoint(e,i){e.preventDefault();let o=this.tree.dragNode,l=this.tree.dragNodeTree!==this.tree||1===i||this.tree.dragNodeIndex!==this.index-1;if(this.tree.allowDrop(o,this.node,this.tree.dragNodeScope)&&l){let c={...this.createDropPointEventMetadata(i)};this.tree.validateDrop?this.tree.onNodeDrop.emit({originalEvent:e,dragNode:o,dropNode:this.node,index:this.index,accept:()=>{this.processPointDrop(c)}}):(this.processPointDrop(c),this.tree.onNodeDrop.emit({originalEvent:e,dragNode:o,dropNode:this.node,index:this.index}))}this.draghoverPrev=!1,this.draghoverNext=!1}processPointDrop(e){let i=e.dropNode.parent?e.dropNode.parent.children:this.tree.value;e.dragNodeSubNodes.splice(e.dragNodeIndex,1);let o=this.index;e.position<0?(o=e.dragNodeSubNodes===i?e.dragNodeIndex>e.index?e.index:e.index-1:e.index,i.splice(o,0,e.dragNode)):(o=i.length,i.push(e.dragNode)),this.tree.dragDropService.stopDrag({node:e.dragNode,subNodes:e.dropNode.parent?e.dropNode.parent.children:this.tree.value,index:e.dragNodeIndex})}createDropPointEventMetadata(e){return{dragNode:this.tree.dragNode,dragNodeIndex:this.tree.dragNodeIndex,dragNodeSubNodes:this.tree.dragNodeSubNodes,dropNode:this.node,index:this.index,position:e}}onDropPointDragOver(e){e.dataTransfer.dropEffect="move",e.preventDefault()}onDropPointDragEnter(e,i){this.tree.allowDrop(this.tree.dragNode,this.node,this.tree.dragNodeScope)&&(i<0?this.draghoverPrev=!0:this.draghoverNext=!0)}onDropPointDragLeave(e){this.draghoverPrev=!1,this.draghoverNext=!1}onDragStart(e){this.tree.draggableNodes&&!1!==this.node.draggable?(e.dataTransfer.setData("text","data"),this.tree.dragDropService.startDrag({tree:this,node:this.node,subNodes:this.node?.parent?this.node.parent.children:this.tree.value,index:this.index,scope:this.tree.draggableScope})):e.preventDefault()}onDragStop(e){this.tree.dragDropService.stopDrag({node:this.node,subNodes:this.node?.parent?this.node.parent.children:this.tree.value,index:this.index})}onDropNodeDragOver(e){e.dataTransfer.dropEffect="move",this.tree.droppableNodes&&(e.preventDefault(),e.stopPropagation())}onDropNode(e){if(this.tree.droppableNodes&&!1!==this.node?.droppable){let i=this.tree.dragNode;if(this.tree.allowDrop(i,this.node,this.tree.dragNodeScope)){let o={...this.createDropNodeEventMetadata()};this.tree.validateDrop?this.tree.onNodeDrop.emit({originalEvent:e,dragNode:i,dropNode:this.node,index:this.index,accept:()=>{this.processNodeDrop(o)}}):(this.processNodeDrop(o),this.tree.onNodeDrop.emit({originalEvent:e,dragNode:i,dropNode:this.node,index:this.index}))}}e.preventDefault(),e.stopPropagation(),this.draghoverNode=!1}createDropNodeEventMetadata(){return{dragNode:this.tree.dragNode,dragNodeIndex:this.tree.dragNodeIndex,dragNodeSubNodes:this.tree.dragNodeSubNodes,dropNode:this.node}}processNodeDrop(e){let i=e.dragNodeIndex;e.dragNodeSubNodes.splice(i,1),e.dropNode.children?e.dropNode.children.push(e.dragNode):e.dropNode.children=[e.dragNode],this.tree.dragDropService.stopDrag({node:e.dragNode,subNodes:e.dropNode.parent?e.dropNode.parent.children:this.tree.value,index:i})}onDropNodeDragEnter(e){this.tree.droppableNodes&&!1!==this.node?.droppable&&this.tree.allowDrop(this.tree.dragNode,this.node,this.tree.dragNodeScope)&&(this.draghoverNode=!0)}onDropNodeDragLeave(e){if(this.tree.droppableNodes){let i=e.currentTarget.getBoundingClientRect();(e.x>i.left+i.width||e.x<i.left||e.y>=Math.floor(i.top+i.height)||e.y<i.top)&&(this.draghoverNode=!1)}}onKeyDown(e){if(this.isSameNode(e)&&(!this.tree.contextMenu||"block"!==this.tree.contextMenu.containerViewChild?.nativeElement.style.display))switch(e.code){case"ArrowDown":this.onArrowDown(e);break;case"ArrowUp":this.onArrowUp(e);break;case"ArrowRight":this.onArrowRight(e);break;case"ArrowLeft":this.onArrowLeft(e);break;case"Enter":case"Space":case"NumpadEnter":this.onEnter(e);break;case"Tab":this.setAllNodesTabIndexes()}}onArrowUp(e){const i="toggler"===e.target.getAttribute("data-pc-section")?e.target.closest('[role="treeitem"]'):e.target.parentElement;if(i.previousElementSibling)this.focusRowChange(i,i.previousElementSibling,this.findLastVisibleDescendant(i.previousElementSibling));else{let o=this.getParentNodeElement(i);o&&this.focusRowChange(i,o)}e.preventDefault()}onArrowDown(e){const i="toggler"===e.target.getAttribute("data-pc-section")?e.target.closest('[role="treeitem"]'):e.target,o=i.children[1];if(o&&o.children.length>0)this.focusRowChange(i,o.children[0]);else if(i.parentElement.nextElementSibling)this.focusRowChange(i,i.parentElement.nextElementSibling);else{let s=this.findNextSiblingOfAncestor(i.parentElement);s&&this.focusRowChange(i,s)}e.preventDefault()}onArrowRight(e){!this.node?.expanded&&!this.tree.isNodeLeaf(this.node)&&(this.expand(e),e.currentTarget.tabIndex=-1,setTimeout(()=>{this.onArrowDown(e)},1)),e.preventDefault()}onArrowLeft(e){const i="toggler"===e.target.getAttribute("data-pc-section")?e.target.closest('[role="treeitem"]'):e.target;if(0===this.level&&!this.node?.expanded)return!1;if(this.node?.expanded)return void this.collapse(e);let o=this.getParentNodeElement(i.parentElement);o&&this.focusRowChange(e.currentTarget,o),e.preventDefault()}onEnter(e){this.tree.onNodeClick(e,this.node),this.setTabIndexForSelectionMode(e,this.tree.nodeTouched),e.preventDefault()}setAllNodesTabIndexes(){const e=$c(this.tree.el.nativeElement,".p-tree-node"),i=[...e].some(o=>"true"===o.getAttribute("aria-selected")||"true"===o.getAttribute("aria-checked"));[...e].forEach(o=>{o.tabIndex=-1}),i?[...e].filter(s=>"true"===s.getAttribute("aria-selected")||"true"===s.getAttribute("aria-checked"))[0].tabIndex=0:e.length&&([...e][0].tabIndex=0)}setTabIndexForSelectionMode(e,i){if(null!==this.tree.selectionMode){const o=[...$c(this.tree.el.nativeElement,'[role="treeitem"]')];e.currentTarget.tabIndex=!1===i?-1:0,o.every(s=>-1===s.tabIndex)&&(o[0].tabIndex=0)}}findNextSiblingOfAncestor(e){let i=this.getParentNodeElement(e);return i?i.nextElementSibling?i.nextElementSibling:this.findNextSiblingOfAncestor(i):null}findLastVisibleDescendant(e){const o=Array.from(e.children).find(s=>Wa(s,"p-tree-node"))?.children[1];return o&&o.children.length>0?this.findLastVisibleDescendant(o.children[o.children.length-1]):e}getParentNodeElement(e){const i=e.parentElement?.parentElement?.parentElement;return"P-TREENODE"===i?.tagName?i:null}focusNode(e){this.tree.droppableNodes?e.children[1].focus():e.children[0].focus()}focusRowChange(e,i,o){e.tabIndex="-1",i.children[0].tabIndex="0",this.focusNode(o||i)}focusVirtualNode(){this.timeout=setTimeout(()=>{la(xo(document.body,`[data-id="${this.node?.key??this.node?.data}"]`))},1)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["p-treeNode"]],inputs:{rowNode:"rowNode",node:"node",parentNode:"parentNode",root:[2,"root","root",n.L39],index:[2,"index","index",n.Udg],firstChild:[2,"firstChild","firstChild",n.L39],lastChild:[2,"lastChild","lastChild",n.L39],level:[2,"level","level",n.Udg],indentation:[2,"indentation","indentation",n.Udg],itemSize:[2,"itemSize","itemSize",n.Udg],loadingMode:"loadingMode"},features:[n.GFd,n.Vt3],decls:1,vars:1,consts:[["icon",""],["class","p-tree-node-droppoint",3,"ngClass","drop","dragover","dragenter","dragleave",4,"ngIf"],["role","treeitem",3,"keydown","ngClass","ngStyle"],[3,"click","contextmenu","touchend","drop","dragover","dragenter","dragleave","dragstart","dragend","ngClass","draggable"],["type","button","pRipple","","tabindex","-1",1,"p-tree-node-toggle-button",3,"click"],[4,"ngIf"],["class","p-tree-node-toggle-icon",4,"ngIf"],["styleClass","p-tree-node-checkbox",3,"ngModel","binary","indeterminate","disabled","variant","tabindex","click",4,"ngIf"],[3,"class",4,"ngIf"],[1,"p-tree-node-label"],["class","p-tree-node-children","style","display: none;","role","group",3,"display",4,"ngIf"],[1,"p-tree-node-droppoint",3,"drop","dragover","dragenter","dragleave","ngClass"],[3,"styleClass",4,"ngIf"],[3,"styleClass"],[1,"p-tree-node-toggle-icon"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["styleClass","p-tree-node-checkbox",3,"click","ngModel","binary","indeterminate","disabled","variant","tabindex"],["role","group",1,"p-tree-node-children",2,"display","none"],[3,"node","parentNode","firstChild","lastChild","index","itemSize","level","loadingMode",4,"ngFor","ngForOf","ngForTrackBy"],[3,"node","parentNode","firstChild","lastChild","index","itemSize","level","loadingMode"]],template:function(i,o){1&i&&n.DNE(0,Dat,13,29),2&i&&n.vxM(o.node?0:-1)},dependencies:[t,gn,bi,oo,fi,uo,Jr,Mh,Av,Ra,_o,ko,qw,Y_,Ax,Di],encapsulation:2})}return t})(),YG=(()=>{class t extends jo{dragDropService;value;selectionMode;loadingMode="mask";selection;style;styleClass;contextMenu;draggableScope;droppableScope;draggableNodes;droppableNodes;metaKeySelection=!1;propagateSelectionUp=!0;propagateSelectionDown=!0;loading;loadingIcon;emptyMessage="";ariaLabel;togglerAriaLabel;ariaLabelledBy;validateDrop;filter;filterBy="label";filterMode="lenient";filterOptions;filterPlaceholder;filteredNodes;filterLocale;scrollHeight;lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;indentation=1.5;_templateMap;trackBy=(e,i)=>i;highlightOnSelect=!1;_virtualNodeHeight;get virtualNodeHeight(){return this._virtualNodeHeight}set virtualNodeHeight(e){this._virtualNodeHeight=e,console.log("The virtualNodeHeight property is deprecated, use virtualScrollItemSize property instead.")}selectionChange=new n.bkB;onNodeSelect=new n.bkB;onNodeUnselect=new n.bkB;onNodeExpand=new n.bkB;onNodeCollapse=new n.bkB;onNodeContextMenuSelect=new n.bkB;onNodeDrop=new n.bkB;onLazyLoad=new n.bkB;onScroll=new n.bkB;onScrollIndexChange=new n.bkB;onFilter=new n.bkB;filterTemplate;nodeTemplate;headerTemplate;footerTemplate;loaderTemplate;emptyMessageTemplate;togglerIconTemplate;checkboxIconTemplate;loadingIconTemplate;filterIconTemplate;filterViewChild;scroller;wrapperViewChild;templates;_headerTemplate;_emptyMessageTemplate;_footerTemplate;_loaderTemplate;_togglerIconTemplate;_checkboxIconTemplate;_loadingIconTemplate;_filterIconTemplate;_filterTemplate;ngAfterContentInit(){this.templates.length&&(this._templateMap={}),this.templates.forEach(e=>{switch(e.getType()){case"header":this._headerTemplate=e.template;break;case"empty":this._emptyMessageTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"loader":this._loaderTemplate=e.template;break;case"togglericon":this._togglerIconTemplate=e.template;break;case"checkboxicon":this._checkboxIconTemplate=e.template;break;case"loadingicon":this._loadingIconTemplate=e.template;break;case"filtericon":this._filterIconTemplate=e.template;break;case"filter":this._filterTemplate=e.template;break;default:this._templateMap[e.name]=e.template}})}serializedValue;nodeTouched;dragNodeTree;dragNode;dragNodeSubNodes;dragNodeIndex;dragNodeScope;dragHover;dragStartSubscription;dragStopSubscription;_componentStyle=(0,n.WQX)(Uue);constructor(e){super(),this.dragDropService=e}ngOnInit(){super.ngOnInit(),this.filterBy&&(this.filterOptions={filter:e=>this._filter(e),reset:()=>this.resetFilter()}),this.droppableNodes&&(this.dragStartSubscription=this.dragDropService.dragStart$.subscribe(e=>{this.dragNodeTree=e.tree,this.dragNode=e.node,this.dragNodeSubNodes=e.subNodes,this.dragNodeIndex=e.index,this.dragNodeScope=e.scope}),this.dragStopSubscription=this.dragDropService.dragStop$.subscribe(e=>{this.dragNodeTree=null,this.dragNode=null,this.dragNodeSubNodes=null,this.dragNodeIndex=null,this.dragNodeScope=null,this.dragHover=!1}))}ngOnChanges(e){super.ngOnChanges(e),e.value&&(this.updateSerializedValue(),this.hasFilterActive()&&this._filter(this.filterViewChild.nativeElement.value))}get containerClass(){return this._componentStyle.classes.root({instance:this})}get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(Xs.EMPTY_MESSAGE)}updateSerializedValue(){this.serializedValue=[],this.serializeNodes(null,this.getRootNode(),0,!0)}serializeNodes(e,i,o,s){if(i&&i.length)for(let a of i){a.parent=e;const l={node:a,parent:e,level:o,visible:s&&(!e||e.expanded)};this.serializedValue.push(l),l.visible&&a.expanded&&this.serializeNodes(a,a.children,o+1,l.visible)}}onNodeClick(e,i){let o=e.target;if(!Wa(o,"p-tree-toggler")&&!Wa(o,"p-tree-toggler-icon")){if(this.selectionMode){if(!1===i.selectable)return void(i.style="--p-focus-ring-color: none;");if(i.style?.includes("--p-focus-ring-color")||(i.style=i.style?`${i.style}--p-focus-ring-color: var(--primary-color)`:"--p-focus-ring-color: var(--primary-color)"),this.hasFilteredNodes()&&!(i=this.getNodeWithKey(i.key,this.filteredNodes)))return;let s=this.findIndexInSelection(i),a=s>=0;if(this.isCheckboxSelectionMode())a?(this.propagateSelectionDown?this.propagateDown(i,!1):this.selection=this.selection.filter((l,c)=>c!=s),this.propagateSelectionUp&&i.parent&&this.propagateUp(i.parent,!1),this.selectionChange.emit(this.selection),this.onNodeUnselect.emit({originalEvent:e,node:i})):(this.propagateSelectionDown?this.propagateDown(i,!0):this.selection=[...this.selection||[],i],this.propagateSelectionUp&&i.parent&&this.propagateUp(i.parent,!0),this.selectionChange.emit(this.selection),this.onNodeSelect.emit({originalEvent:e,node:i}));else if(!this.nodeTouched&&this.metaKeySelection){let c=e.metaKey||e.ctrlKey;a&&c?(this.isSingleSelectionMode()?this.selectionChange.emit(null):(this.selection=this.selection.filter((d,f)=>f!=s),this.selectionChange.emit(this.selection)),this.onNodeUnselect.emit({originalEvent:e,node:i})):(this.isSingleSelectionMode()?this.selectionChange.emit(i):this.isMultipleSelectionMode()&&(this.selection=c&&this.selection||[],this.selection=[...this.selection,i],this.selectionChange.emit(this.selection)),this.onNodeSelect.emit({originalEvent:e,node:i}))}else this.isSingleSelectionMode()?a?(this.selection=null,this.onNodeUnselect.emit({originalEvent:e,node:i})):(this.selection=i,setTimeout(()=>{this.onNodeSelect.emit({originalEvent:e,node:i})})):a?(this.selection=this.selection.filter((c,d)=>d!=s),this.onNodeUnselect.emit({originalEvent:e,node:i})):(this.selection=[...this.selection||[],i],setTimeout(()=>{this.onNodeSelect.emit({originalEvent:e,node:i})})),this.selectionChange.emit(this.selection)}this.nodeTouched=!1}}onNodeTouchEnd(){this.nodeTouched=!0}onNodeRightClick(e,i){if(this.contextMenu){let o=e.target;if(o.className&&0===o.className.indexOf("p-tree-toggler"))return;this.findIndexInSelection(i)>=0||(this.isSingleSelectionMode()?this.selectionChange.emit(i):this.selectionChange.emit([i])),this.contextMenu.show(e),this.onNodeContextMenuSelect.emit({originalEvent:e,node:i})}}findIndexInSelection(e){let i=-1;if(this.selectionMode&&this.selection)if(this.isSingleSelectionMode())i=this.selection.key&&this.selection.key===e.key||this.selection==e?0:-1;else for(let o=0;o<this.selection.length;o++){let s=this.selection[o];if(s.key&&s.key===e.key||s==e){i=o;break}}return i}syncNodeOption(e,i,o,s){const a=this.hasFilteredNodes()?this.getNodeWithKey(e.key,i):null;a&&(a[o]=s||e[o])}hasFilteredNodes(){return this.filter&&this.filteredNodes&&this.filteredNodes.length}hasFilterActive(){return this.filter&&this.filterViewChild?.nativeElement?.value.length>0}getNodeWithKey(e,i){for(let o of i){if(o.key===e)return o;if(o.children){let s=this.getNodeWithKey(e,o.children);if(s)return s}}}propagateUp(e,i){if(e.children&&e.children.length){let s=0,a=!1;for(let l of e.children)this.isSelected(l)?s++:l.partialSelected&&(a=!0);if(i&&s==e.children.length)this.selection=[...this.selection||[],e],e.partialSelected=!1;else{if(!i){let l=this.findIndexInSelection(e);l>=0&&(this.selection=this.selection.filter((c,d)=>d!=l))}e.partialSelected=!!(a||s>0&&s!=e.children.length)}this.syncNodeOption(e,this.filteredNodes,"partialSelected")}let o=e.parent;o&&this.propagateUp(o,i)}propagateDown(e,i){let o=this.findIndexInSelection(e);if(i&&-1==o?this.selection=[...this.selection||[],e]:!i&&o>-1&&(this.selection=this.selection.filter((s,a)=>a!=o)),e.partialSelected=!1,this.syncNodeOption(e,this.filteredNodes,"partialSelected"),e.children&&e.children.length)for(let s of e.children)this.propagateDown(s,i)}isSelected(e){return-1!=this.findIndexInSelection(e)}isSingleSelectionMode(){return this.selectionMode&&"single"==this.selectionMode}isMultipleSelectionMode(){return this.selectionMode&&"multiple"==this.selectionMode}isCheckboxSelectionMode(){return this.selectionMode&&"checkbox"==this.selectionMode}isNodeLeaf(e){return 0!=e.leaf&&!(e.children&&e.children.length)}getRootNode(){return this.filteredNodes?this.filteredNodes:this.value}getTemplateForNode(e){return this._templateMap?e.type?this._templateMap[e.type]:this._templateMap.default:null}onDragOver(e){this.droppableNodes&&(!this.value||0===this.value.length)&&(e.dataTransfer.dropEffect="move",e.preventDefault())}onDrop(e){if(this.droppableNodes&&(!this.value||0===this.value.length)){e.preventDefault();let i=this.dragNode;if(this.allowDrop(i,null,this.dragNodeScope)){let o=this.dragNodeIndex;this.value=this.value||[],this.validateDrop?this.onNodeDrop.emit({originalEvent:e,dragNode:i,dropNode:null,index:o,accept:()=>{this.processTreeDrop(i,o)}}):(this.onNodeDrop.emit({originalEvent:e,dragNode:i,dropNode:null,index:o}),this.processTreeDrop(i,o))}}}processTreeDrop(e,i){this.dragNodeSubNodes.splice(i,1),this.value.push(e),this.dragDropService.stopDrag({node:e})}onDragEnter(){this.droppableNodes&&this.allowDrop(this.dragNode,null,this.dragNodeScope)&&(this.dragHover=!0)}onDragLeave(e){if(this.droppableNodes){let i=e.currentTarget.getBoundingClientRect();(e.x>i.left+i.width||e.x<i.left||e.y>i.top+i.height||e.y<i.top)&&(this.dragHover=!1)}}allowDrop(e,i,o){if(e){if(this.isValidDragScope(o)){let s=!0;if(i)if(e===i)s=!1;else{let a=i.parent;for(;null!=a;){if(a===e){s=!1;break}a=a.parent}}return s}return!1}return!1}isValidDragScope(e){let i=this.droppableScope;if(i){if("string"==typeof i){if("string"==typeof e)return i===e;if(Array.isArray(e))return-1!=e.indexOf(i)}else if(Array.isArray(i)){if("string"==typeof e)return-1!=i.indexOf(e);if(Array.isArray(e))for(let o of i)for(let s of e)if(o===s)return!0}return!1}return!0}_filter(e){let i=e;if(""===i)this.filteredNodes=null;else{this.filteredNodes=[];const o=this.filterBy.split(","),s=qf(i).toLocaleLowerCase(this.filterLocale),a="strict"===this.filterMode;for(let l of this.value){let c={...l},d={searchFields:o,filterText:s,isStrictMode:a};(a&&(this.findFilteredNodes(c,d)||this.isFilterMatched(c,d))||!a&&(this.isFilterMatched(c,d)||this.findFilteredNodes(c,d)))&&this.filteredNodes.push(c)}}this.updateSerializedValue(),this.onFilter.emit({filter:i,filteredValue:this.filteredNodes})}resetFilter(){this.filteredNodes=null,this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value="")}scrollToVirtualIndex(e){this.virtualScroll&&this.scroller?.scrollToIndex(e)}scrollTo(e){this.virtualScroll?this.scroller?.scrollTo(e):this.wrapperViewChild&&this.wrapperViewChild.nativeElement&&(this.wrapperViewChild.nativeElement.scrollTo?this.wrapperViewChild.nativeElement.scrollTo(e):(this.wrapperViewChild.nativeElement.scrollLeft=e.left,this.wrapperViewChild.nativeElement.scrollTop=e.top))}findFilteredNodes(e,i){if(e){let o=!1;if(e.children){let s=[...e.children];e.children=[];for(let a of s){let l={...a};this.isFilterMatched(l,i)&&(o=!0,e.children.push(l))}}if(o)return e.expanded=!0,!0}}isFilterMatched(e,i){let{searchFields:o,filterText:s,isStrictMode:a}=i,l=!1;for(let c of o)qf(String(ml(e,c))).toLocaleLowerCase(this.filterLocale).indexOf(s)>-1&&(l=!0);return(!l||a&&!this.isNodeLeaf(e))&&(l=this.findFilteredNodes(e,{searchFields:o,filterText:s,isStrictMode:a})||l),l}getIndex(e,i){const o=e.getItemOptions;return o?o(i).index:i}getBlockableElement(){return this.el.nativeElement.children[0]}ngOnDestroy(){this.dragStartSubscription&&this.dragStartSubscription.unsubscribe(),this.dragStopSubscription&&this.dragStopSubscription.unsubscribe(),super.ngOnDestroy()}static \u0275fac=function(i){return new(i||t)(n.rXU(Zme,8))};static \u0275cmp=n.VBU({type:t,selectors:[["p-tree"]],contentQueries:function(i,o,s){if(1&i&&(n.wni(s,Wue,4),n.wni(s,kat,4),n.wni(s,Iat,4),n.wni(s,Aat,4),n.wni(s,Mat,4),n.wni(s,Rat,4),n.wni(s,Oat,4),n.wni(s,Fat,4),n.wni(s,Pat,4),n.wni(s,Lat,4),n.wni(s,hs,4)),2&i){let a;n.mGM(a=n.lsd())&&(o.filterTemplate=a.first),n.mGM(a=n.lsd())&&(o.nodeTemplate=a.first),n.mGM(a=n.lsd())&&(o.headerTemplate=a.first),n.mGM(a=n.lsd())&&(o.footerTemplate=a.first),n.mGM(a=n.lsd())&&(o.loaderTemplate=a.first),n.mGM(a=n.lsd())&&(o.emptyMessageTemplate=a.first),n.mGM(a=n.lsd())&&(o.togglerIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.checkboxIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.loadingIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.filterIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.templates=a)}},viewQuery:function(i,o){if(1&i&&(n.GBs(Wue,5),n.GBs(Nat,5),n.GBs(Gat,5)),2&i){let s;n.mGM(s=n.lsd())&&(o.filterViewChild=s.first),n.mGM(s=n.lsd())&&(o.scroller=s.first),n.mGM(s=n.lsd())&&(o.wrapperViewChild=s.first)}},inputs:{value:"value",selectionMode:"selectionMode",loadingMode:"loadingMode",selection:"selection",style:"style",styleClass:"styleClass",contextMenu:"contextMenu",draggableScope:"draggableScope",droppableScope:"droppableScope",draggableNodes:[2,"draggableNodes","draggableNodes",n.L39],droppableNodes:[2,"droppableNodes","droppableNodes",n.L39],metaKeySelection:[2,"metaKeySelection","metaKeySelection",n.L39],propagateSelectionUp:[2,"propagateSelectionUp","propagateSelectionUp",n.L39],propagateSelectionDown:[2,"propagateSelectionDown","propagateSelectionDown",n.L39],loading:[2,"loading","loading",n.L39],loadingIcon:"loadingIcon",emptyMessage:"emptyMessage",ariaLabel:"ariaLabel",togglerAriaLabel:"togglerAriaLabel",ariaLabelledBy:"ariaLabelledBy",validateDrop:[2,"validateDrop","validateDrop",n.L39],filter:[2,"filter","filter",n.L39],filterBy:"filterBy",filterMode:"filterMode",filterOptions:"filterOptions",filterPlaceholder:"filterPlaceholder",filteredNodes:"filteredNodes",filterLocale:"filterLocale",scrollHeight:"scrollHeight",lazy:[2,"lazy","lazy",n.L39],virtualScroll:[2,"virtualScroll","virtualScroll",n.L39],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",n.Udg],virtualScrollOptions:"virtualScrollOptions",indentation:[2,"indentation","indentation",n.Udg],_templateMap:"_templateMap",trackBy:"trackBy",highlightOnSelect:[2,"highlightOnSelect","highlightOnSelect",n.L39],virtualNodeHeight:"virtualNodeHeight"},outputs:{selectionChange:"selectionChange",onNodeSelect:"onNodeSelect",onNodeUnselect:"onNodeUnselect",onNodeExpand:"onNodeExpand",onNodeCollapse:"onNodeCollapse",onNodeContextMenuSelect:"onNodeContextMenuSelect",onNodeDrop:"onNodeDrop",onLazyLoad:"onLazyLoad",onScroll:"onScroll",onScrollIndexChange:"onScrollIndexChange",onFilter:"onFilter"},features:[n.Jv_([Uue]),n.GFd,n.Vt3,n.OA$],decls:8,vars:10,consts:[["filter",""],["scroller",""],["content",""],["treeNode",""],["loader",""],["wrapper",""],["emptyFilter",""],[3,"drop","dragover","dragenter","dragleave","ngClass","ngStyle"],["class","p-tree-mask p-overlay-mask",4,"ngIf"],[4,"ngTemplateOutlet"],[4,"ngIf"],["class","p-tree-empty-message",4,"ngIf"],[1,"p-tree-mask","p-overlay-mask"],[3,"class",4,"ngIf"],[3,"spin","styleClass",4,"ngIf"],["class","p-tree-loading-icon",4,"ngIf"],[3,"spin","styleClass"],[1,"p-tree-loading-icon"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["pInputText","","type","search","autocomplete","off",1,"p-tree-filter-input",3,"keydown.enter","input"],["class","p-tree-filter-icon",4,"ngIf"],[1,"p-tree-filter-icon"],["styleClass","p-tree-root",3,"items","tabindex","style","scrollHeight","itemSize","lazy","options","onScroll","onScrollIndexChange","onLazyLoad",4,"ngIf"],["styleClass","p-tree-root",3,"onScroll","onScrollIndexChange","onLazyLoad","items","tabindex","scrollHeight","itemSize","lazy","options"],["class","p-tree-root-children","role","tree",3,"ngClass","style",4,"ngIf"],["role","tree",1,"p-tree-root-children",3,"ngClass"],[3,"level","rowNode","node","parentNode","firstChild","lastChild","index","itemSize","indentation","loadingMode",4,"ngFor","ngForOf","ngForTrackBy"],[3,"level","rowNode","node","parentNode","firstChild","lastChild","index","itemSize","indentation","loadingMode"],[1,"p-tree-root"],["class","p-tree-root-children","role","tree",4,"ngIf"],["role","tree",1,"p-tree-root-children"],[3,"node","firstChild","lastChild","index","level","loadingMode",4,"ngFor","ngForOf","ngForTrackBy"],[3,"node","firstChild","lastChild","index","level","loadingMode"],[1,"p-tree-empty-message"],[4,"ngIf","ngIfElse"]],template:function(i,o){if(1&i&&(n.j41(0,"div",7),n.bIt("drop",function(a){return o.onDrop(a)})("dragover",function(a){return o.onDragOver(a)})("dragenter",function(){return o.onDragEnter()})("dragleave",function(a){return o.onDragLeave(a)}),n.DNE(1,Wat,3,2,"div",8)(2,zat,1,0,"ng-container",9)(3,Xat,1,4,"ng-container")(4,tlt,1,1,"p-iconField")(5,plt,3,2,"ng-container",10)(6,glt,3,3,"div",11)(7,vlt,1,0,"ng-container",9),n.k0s()),2&i){let s;n.HbH(o.styleClass),n.Y8G("ngClass",o.containerClass)("ngStyle",o.style),n.R7$(),n.Y8G("ngIf",o.loading&&"mask"===o.loadingMode),n.R7$(),n.Y8G("ngTemplateOutlet",o.headerTemplate||o._headerTemplate),n.R7$(),n.vxM(o.filterTemplate||o._filterTemplate?3:4),n.R7$(2),n.Y8G("ngIf",null==(s=o.getRootNode())?null:s.length),n.R7$(),n.Y8G("ngIf",!o.loading&&(null==o.getRootNode()||0===o.getRootNode().length)),n.R7$(),n.Y8G("ngTemplateOutlet",o.footerTemplate||o._footerTemplate)}},dependencies:[gn,bi,oo,fi,uo,Jr,Db,Di,ak,Ax,hf,Ra,Ex,kx,_lt],encapsulation:2})}return t})(),Gq=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({imports:[YG,Di,Di]})}return t})();const ylt=({dt:t})=>`\n.p-treeselect {\n    display: inline-flex;\n    cursor: pointer;\n    position: relative;\n    user-select: none;\n    background: ${t("treeselect.background")};\n    border: 1px solid ${t("treeselect.border.color")};\n    transition: background ${t("treeselect.transition.duration")}, color ${t("treeselect.transition.duration")}, border-color ${t("treeselect.transition.duration")}, outline-color ${t("treeselect.transition.duration")}, box-shadow ${t("treeselect.transition.duration")};\n    border-radius: ${t("treeselect.border.radius")};\n    outline-color: transparent;\n    box-shadow: ${t("treeselect.shadow")};\n}\n\np-treeselect.ng-invalid.ng-dirty .p-treeselect {\n    border-color: ${t("treeselect.invalid.border.color")};\n}\n\np-treeselect.ng-invalid.ng-dirty .p-treeselect.p-focus {\n    border-color: ${t("treeselect.focus.border.color")};\n}\n\n.p-treeselect:not(.p-disabled):hover {\n    border-color: ${t("treeselect.hover.border.color")};\n}\n\n.p-treeselect:not(.p-disabled).p-focus {\n    border-color: ${t("treeselect.focus.border.color")};\n    box-shadow: ${t("treeselect.focus.ring.shadow")};\n    outline: ${t("treeselect.focus.ring.width")} ${t("treeselect.focus.ring.style")} ${t("treeselect.focus.ring.color")};\n    outline-offset: ${t("treeselect.focus.ring.offset")};\n}\n\n.p-treeselect.p-variant-filled {\n    background: ${t("treeselect.filled.background")};\n}\n\n.p-treeselect.p-variant-filled:not(.p-disabled):hover {\n    background: ${t("treeselect.filled.hover.background")};\n}\n\n.p-treeselect.p-variant-filled.p-focus {\n    background: ${t("treeselect.filled.focus.background")};\n}\n\n.p-treeselect.p-disabled {\n    opacity: 1;\n    background: ${t("treeselect.disabled.background")};\n}\n\n.p-treeselect-dropdown {\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    flex-shrink: 0;\n    background: transparent;\n    color: ${t("treeselect.dropdown.color")};\n    width: ${t("treeselect.dropdown.width")};\n    border-start-end-radius: ${t("border.radius.md")};\n    border-end-end-radius: ${t("border.radius.md")};\n}\n\n.p-treeselect-label-container {\n    overflow: hidden;\n    flex: 1 1 auto;\n    cursor: pointer;\n}\n\n.p-treeselect-label {\n    display: flex;\n    align-items-center;\n    gap: calc(${t("treeselect.padding.y")} / 2);\n    white-space: nowrap;\n    cursor: pointer;\n    overflow: hidden;\n    text-overflow: ellipsis;\n    padding: ${t("treeselect.padding.y")} ${t("treeselect.padding.x")};\n    color: ${t("treeselect.color")};\n}\n\n.p-treeselect-label.p-placeholder {\n    color: ${t("treeselect.placeholder.color")};\n}\n\np-treeselect.ng-invalid.ng-dirty .p-treeselect-label.p-placeholder {\n    color: ${t("treeselect.invalid.placeholder.color")};\n}\n\n.p-treeselect.p-disabled .p-treeselect-label {\n    color: ${t("treeselect.disabled.color")};\n}\n\n.p-treeselect-label-empty {\n    overflow: hidden;\n    visibility: hidden;\n}\n\n.p-treeselect .p-treeselect-overlay {\n    min-width: 100%;\n}\n\n.p-treeselect-overlay {\n    background: ${t("treeselect.overlay.background")};\n    color: ${t("treeselect.overlay.color")};\n    border: 1px solid ${t("treeselect.overlay.border.color")};\n    border-radius: ${t("treeselect.overlay.border.radius")};\n    box-shadow: ${t("treeselect.overlay.shadow")};\n    overflow: hidden;\n}\n\n\n.p-treeselect-tree-container {\n    overflow: auto;\n}\n\n.p-treeselect-empty-message {\n    padding: ${t("treeselect.empty.message.padding")};\n    background: transparent;\n}\n\n.p-treeselect-fluid {\n    display: flex;\n}\n\n.p-treeselect-overlay .p-tree {\n    padding: ${t("treeselect.tree.padding")};\n}\n\n.p-treeselect-label .p-chip {\n    padding-top: calc(${t("treeselect.padding.y")} / 2);\n    padding-bottom: calc(${t("treeselect.padding.y")} / 2);\n    border-radius: ${t("treeselect.chip.border.radius")};\n}\n\n.p-treeselect-label:has(.p-chip) {\n    padding: calc(${t("treeselect.padding.y")} / 2) calc(${t("treeselect.padding.x")} / 2);\n}\n\n.p-treeselect-sm .p-treeselect-label {\n    font-size: ${t("treeselect.sm.font.size")};\n    padding-block: ${t("treeselect.sm.padding.y")};\n    padding-inline: ${t("treeselect.sm.padding.x")};\n}\n\n.p-treeselect-sm .p-treeselect-dropdown .p-icon {\n    font-size: ${t("treeselect.sm.font.size")};\n    width: ${t("treeselect.sm.font.size")};\n    height: ${t("treeselect.sm.font.size")};\n}\n\n.p-treeselect-lg .p-treeselect-label {\n    font-size: ${t("treeselect.lg.font.size")};\n    padding-block: ${t("treeselect.lg.padding.y")};\n    padding-inline: ${t("treeselect.lg.padding.x")};\n}\n\n.p-treeselect-lg .p-treeselect-dropdown .p-icon {\n    font-size: ${t("treeselect.lg.font.size")};\n    width: ${t("treeselect.lg.font.size")};\n    height: ${t("treeselect.lg.font.size")};\n}\n\n.p-treeselect-clear-icon {\n    cursor: pointer;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    flex-shrink: 0;\n    background: transparent;\n    color: ${t("treeselect.clear.icon.color")};\n}`,blt={root:({instance:t})=>({position:"self"===t.appendTo?"relative":void 0})},Clt={root:({instance:t})=>({"p-treeselect p-component p-inputwrapper":!0,"p-treeselect-display-chip":"chip"===t.display,"p-disabled":t.disabled,"p-invalid":t.invalid,"p-focus":t.focused,"p-variant-filled":t.variant?"filled"===t.variant:"filled"===t.config.inputStyle(),"p-inputwrapper-filled":!t.emptyValue,"p-inputwrapper-focus":t.focused||t.overlayVisible,"p-treeselect-open":t.overlayVisible,"p-treeselect-clearable":t.showClear,"p-treeselect-fluid":t.hasFluid,"p-treeselect-sm p-inputfield-sm":"small"===t.size,"p-treeselect-lg p-inputfield-lg":"large"===t.size}),labelContainer:"p-treeselect-label-container",label:({instance:t})=>({"p-treeselect-label":!0,"p-placeholder":t.label===t.placeholder,"p-treeselect-label-empty":!t.placeholder&&t.emptyValue}),chip:"p-treeselect-chip-item",pcChip:"p-treeselect-chip",dropdown:"p-treeselect-dropdown",dropdownIcon:"p-treeselect-dropdown-icon",panel:"p-treeselect-overlay p-component",treeContainer:"p-treeselect-tree-container",emptyMessage:"p-treeselect-empty-message"};let zue=(()=>{class t extends gs{name="treeselect";theme=ylt;classes=Clt;inlineStyles=blt;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const Tlt=["value"],Slt=["header"],xlt=["empty"],Elt=["footer"],Dlt=["clearicon"],klt=["triggericon"],Ilt=["dropdownicon"],Alt=["filtericon"],Mlt=["closeicon"],Rlt=["itemtogglericon"],Olt=["itemcheckboxicon"],Flt=["itemloadingicon"],Plt=["container"],Llt=["focusInput"],Nlt=["filter"],Glt=["tree"],Blt=["panel"],Vlt=["overlay"],jlt=["firstHiddenFocusableEl"],Hlt=["lastHiddenFocusableEl"],Ult=(t,r)=>({$implicit:t,placeholder:r}),que=(t,r)=>({$implicit:t,options:r}),$lt=t=>({"max-height":t}),Ylt=t=>({$implicit:t}),Wlt=(t,r)=>({$implicit:t,partialSelected:r});function zlt(t,r){1&t&&n.eu8(0)}function qlt(t,r){if(1&t&&(n.qex(0),n.DNE(1,zlt,1,0,"ng-container",25),n.bVm()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngTemplateOutlet",e.valueTemplate||e._valueTemplate)("ngTemplateOutletContext",n.l_i(2,Ult,e.value,e.placeholder))}}function Xlt(t,r){if(1&t&&(n.qex(0),n.EFF(1),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.SpI(" ",e.label||"empty"," ")}}function Klt(t,r){if(1&t&&(n.j41(0,"div",27),n.nrm(1,"p-chip",28),n.k0s()),2&t){const e=r.$implicit;n.R7$(),n.Y8G("label",e.label)}}function Qlt(t,r){if(1&t&&(n.qex(0),n.EFF(1),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.JRh(e.placeholder||"empty")}}function Jlt(t,r){if(1&t&&n.DNE(0,Klt,2,1,"div",26)(1,Qlt,2,1,"ng-container",20),2&t){const e=n.XpG(2);n.Y8G("ngForOf",e.value),n.R7$(),n.Y8G("ngIf",e.emptyValue)}}function Zlt(t,r){if(1&t&&n.DNE(0,Xlt,2,1,"ng-container",19)(1,Jlt,2,2,"ng-template",null,5,n.C5r),2&t){const e=n.sdS(2),i=n.XpG();n.Y8G("ngIf","comma"===i.display)("ngIfElse",e)}}function ect(t,r){if(1&t){const e=n.RV6();n.j41(0,"TimesIcon",31),n.bIt("click",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.clear(o))}),n.k0s()}2&t&&n.HbH("p-treeselect-clear-icon")}function tct(t,r){}function nct(t,r){1&t&&n.DNE(0,tct,0,0,"ng-template")}function ict(t,r){if(1&t){const e=n.RV6();n.j41(0,"span",32),n.bIt("click",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.clear(o))}),n.DNE(1,nct,1,0,null,33),n.k0s()}if(2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)}}function rct(t,r){if(1&t&&(n.qex(0),n.DNE(1,ect,1,2,"TimesIcon",29)(2,ict,2,1,"span",30),n.bVm()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),n.R7$(),n.Y8G("ngIf",e.clearIconTemplate||e.clearIconTemplate)}}function oct(t,r){1&t&&n.nrm(0,"ChevronDownIcon",34),2&t&&n.Y8G("styleClass","p-treeselect-dropdown-icon")}function sct(t,r){}function act(t,r){1&t&&n.DNE(0,sct,0,0,"ng-template")}function lct(t,r){if(1&t&&(n.j41(0,"span",35),n.DNE(1,act,1,0,null,33),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngTemplateOutlet",e.triggerIconTemplate||e._triggerIconTemplate||e.dropdownIconTemplate||e._dropdownIconTemplate)}}function cct(t,r){1&t&&n.eu8(0)}function uct(t,r){1&t&&n.eu8(0)}function dct(t,r){if(1&t&&n.DNE(0,uct,1,0,"ng-container",33),2&t){const e=n.XpG(3);n.Y8G("ngTemplateOutlet",e.emptyTemplate||e._emptyTemplate)}}function pct(t,r){1&t&&(n.qex(0),n.DNE(1,dct,1,1,"ng-template",null,10,n.C5r),n.bVm())}function hct(t,r){1&t&&n.eu8(0)}function fct(t,r){if(1&t&&n.DNE(0,hct,1,0,"ng-container",25),2&t){const e=r.$implicit,i=n.XpG(3);n.Y8G("ngTemplateOutlet",i.itemTogglerIconTemplate||i._itemTogglerIconTemplate)("ngTemplateOutletContext",n.eq3(2,Ylt,e))}}function mct(t,r){1&t&&n.DNE(0,fct,1,4,"ng-template",null,11,n.C5r)}function gct(t,r){1&t&&n.eu8(0)}function vct(t,r){if(1&t&&n.DNE(0,gct,1,0,"ng-container",25),2&t){const e=r.$implicit,i=r.partialSelected,o=n.XpG(3);n.Y8G("ngTemplateOutlet",o.itemCheckboxIconTemplate||o._itemCheckboxIconTemplate)("ngTemplateOutletContext",n.l_i(2,Wlt,e,i))}}function _ct(t,r){1&t&&n.DNE(0,vct,1,5,"ng-template",null,12,n.C5r)}function yct(t,r){1&t&&n.eu8(0)}function bct(t,r){if(1&t&&n.DNE(0,yct,1,0,"ng-container",33),2&t){const e=n.XpG(3);n.Y8G("ngTemplateOutlet",e.itemLoadingIconTemplate||e._itemLoadingIconTemplate)}}function Cct(t,r){1&t&&n.DNE(0,bct,1,1,"ng-template",null,13,n.C5r)}function wct(t,r){1&t&&n.eu8(0)}function Tct(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",36,6)(2,"span",37,7),n.bIt("focus",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onFirstHiddenFocus(o))}),n.k0s(),n.DNE(4,cct,1,0,"ng-container",25),n.j41(5,"div",38)(6,"p-tree",39,8),n.bIt("selectionChange",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onSelectionChange(o))})("onNodeExpand",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.nodeExpand(o))})("onNodeCollapse",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.nodeCollapse(o))})("onNodeSelect",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onSelect(o))})("onNodeUnselect",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onUnselect(o))}),n.DNE(8,pct,3,0,"ng-container",20)(9,mct,2,0,null,20)(10,_ct,2,0,null,20)(11,Cct,2,0,null,20),n.k0s()(),n.DNE(12,wct,1,0,"ng-container",25),n.j41(13,"span",37,9),n.bIt("focus",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onLastHiddenFocus(o))}),n.k0s()()}if(2&t){const e=n.XpG();n.HbH(e.panelStyleClass),n.Y8G("ngStyle",e.panelStyle)("ngClass",e.panelClass),n.BMQ("id",e.listId),n.R7$(2),n.BMQ("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0),n.R7$(2),n.Y8G("ngTemplateOutlet",e.headerTemplate||e._headerTemplate)("ngTemplateOutletContext",n.l_i(38,que,e.value,e.options)),n.R7$(),n.Y8G("ngStyle",n.eq3(41,$lt,e.scrollHeight)),n.R7$(),n.Y8G("value",e.options)("propagateSelectionDown",e.propagateSelectionDown)("propagateSelectionUp",e.propagateSelectionUp)("selectionMode",e.selectionMode)("selection",e.value)("metaKeySelection",e.metaKeySelection)("emptyMessage",e.emptyMessage)("filter",e.filter)("filterBy",e.filterBy)("filterMode",e.filterMode)("filterPlaceholder",e.filterPlaceholder)("filterLocale",e.filterLocale)("filteredNodes",e.filteredNodes)("virtualScroll",e.virtualScroll)("virtualScrollItemSize",e.virtualScrollItemSize)("virtualScrollOptions",e.virtualScrollOptions)("_templateMap",e.templateMap)("loading",e.loading),n.R7$(2),n.Y8G("ngIf",e.emptyTemplate||e._emptyTemplate),n.R7$(),n.Y8G("ngIf",e.itemTogglerIconTemplate||e._itemTogglerIconTemplate),n.R7$(),n.Y8G("ngIf",e.itemCheckboxIconTemplate||e._itemCheckboxIconTemplate),n.R7$(),n.Y8G("ngIf",e.itemLoadingIconTemplate||e._itemLoadingIconTemplate),n.R7$(),n.Y8G("ngTemplateOutlet",e.footerTemplate)("ngTemplateOutletContext",n.l_i(43,que,e.value,e.options)),n.R7$(),n.BMQ("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0)}}const Sct={provide:tl,useExisting:(0,n.Rfq)(()=>Bq),multi:!0};let Bq=(()=>{class t extends jo{inputId;scrollHeight="400px";disabled;metaKeySelection=!1;variant="outlined";display="comma";selectionMode="single";tabindex="0";ariaLabel;ariaLabelledBy;placeholder;panelClass;panelStyle;fluid=!1;panelStyleClass;set containerStyle(e){const i=this._componentStyle.inlineStyles.root({instance:this});this._containerStyle={...i,...e}}get containerStyle(){return this._containerStyle}_containerStyle;containerStyleClass;labelStyle;labelStyleClass;overlayOptions;emptyMessage="";appendTo;filter=!1;filterBy="label";filterMode="lenient";filterPlaceholder;filterLocale;filterInputAutoFocus=!0;propagateSelectionDown=!0;propagateSelectionUp=!0;showClear=!1;resetFilterOnHide=!0;virtualScroll;virtualScrollItemSize;size;virtualScrollOptions;autofocus;get options(){return this._options}set options(e){this._options=e,this.updateTreeState()}get showTransitionOptions(){return this._showTransitionOptions}set showTransitionOptions(e){this._showTransitionOptions=e,console.log("The showTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}get hideTransitionOptions(){return this._hideTransitionOptions}set hideTransitionOptions(e){this._hideTransitionOptions=e,console.log("The hideTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}loading;onNodeExpand=new n.bkB;onNodeCollapse=new n.bkB;onShow=new n.bkB;onHide=new n.bkB;onClear=new n.bkB;onFilter=new n.bkB;onFocus=new n.bkB;onBlur=new n.bkB;onNodeUnselect=new n.bkB;onNodeSelect=new n.bkB;_showTransitionOptions;_hideTransitionOptions;containerEl;focusInput;filterViewChild;treeViewChild;panelEl;overlayViewChild;firstHiddenFocusableElementOnOverlay;lastHiddenFocusableElementOnOverlay;filteredNodes;filterValue=null;serializedValue;valueTemplate;headerTemplate;emptyTemplate;footerTemplate;clearIconTemplate;triggerIconTemplate;dropdownIconTemplate;filterIconTemplate;closeIconTemplate;itemTogglerIconTemplate;itemCheckboxIconTemplate;itemLoadingIconTemplate;templates;_valueTemplate;_headerTemplate;_emptyTemplate;_footerTemplate;_clearIconTemplate;_triggerIconTemplate;_filterIconTemplate;_closeIconTemplate;_itemTogglerIconTemplate;_itemCheckboxIconTemplate;_itemLoadingIconTemplate;_dropdownIconTemplate;focused;overlayVisible;selfChange;value;expandedNodes=[];_options;templateMap;onModelChange=()=>{};onModelTouched=()=>{};listId="";_componentStyle=(0,n.WQX)(zue);ngOnInit(){super.ngOnInit(),this.listId=Bl("pn_id_")+"_list",this.updateTreeState()}ngAfterContentInit(){this.templates.length&&(this.templateMap={}),this.templates.forEach(e=>{switch(e.getType()){case"value":this._valueTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"empty":this._emptyTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"clearicon":this._clearIconTemplate=e.template;break;case"triggericon":this._triggerIconTemplate=e.template;break;case"filtericon":this._filterIconTemplate=e.template;break;case"closeicon":this._closeIconTemplate=e.template;break;case"itemtogglericon":this._itemTogglerIconTemplate=e.template;break;case"itemcheckboxicon":this._itemCheckboxIconTemplate=e.template;break;case"dropdownicon":this._dropdownIconTemplate=e.template;break;case"itemloadingicon":this._itemLoadingIconTemplate=e.template;break;default:e.name?this.templateMap[e.name]=e.template:this.valueTemplate=e.template}})}onOverlayAnimationStart(e){if("visible"===e.toState)if(this.filter)qs(this.filterValue)&&this.treeViewChild?._filter(this.filterValue),this.filterInputAutoFocus&&this.filterViewChild?.nativeElement.focus();else{let i=Mm(this.panelEl.nativeElement);i&&i.length>0&&i[0].focus()}}onOverlayBeforeHide(e){let i=Mm(this.containerEl.nativeElement);i&&i.length>0&&i[0].focus()}onSelectionChange(e){this.value=e,this.onModelChange(this.value),this.cd.markForCheck()}onClick(e){this.disabled||!this.overlayViewChild?.el?.nativeElement?.contains(e.target)&&!Wa(e.target,"p-treeselect-close")&&!Wa(e.target,"p-checkbox-box")&&!Wa(e.target,"p-checkbox-icon")&&(this.overlayVisible?this.hide():this.show(),this.focusInput?.nativeElement.focus())}onKeyDown(e){switch(e.code){case"ArrowDown":this.overlayVisible||(this.show(),e.preventDefault()),this.onArrowDown(e),e.preventDefault();break;case"Space":case"Enter":this.overlayVisible||(this.show(),e.preventDefault());break;case"Escape":this.overlayVisible&&(this.hide(),this.focusInput?.nativeElement.focus(),e.preventDefault());break;case"Tab":this.onTabKey(e)}}onFilterInput(e){this.filterValue=e.target.value,this.treeViewChild?._filter(this.filterValue),this.onFilter.emit({filter:this.filterValue,filteredValue:this.treeViewChild?.filteredNodes}),setTimeout(()=>{this.overlayViewChild.alignOverlay()})}onArrowDown(e){if(this.overlayVisible&&this.panelEl?.nativeElement){let i=Mm(this.panelEl.nativeElement,".p-tree-node");i&&i.length>0&&i[0].focus(),e.preventDefault()}}onFirstHiddenFocus(e){la(e.relatedTarget===this.focusInput?.nativeElement?bx(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInput?.nativeElement)}onLastHiddenFocus(e){la(e.relatedTarget===this.focusInput?.nativeElement?nO(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInput?.nativeElement)}show(){this.overlayVisible=!0}hide(e){this.overlayVisible=!1,this.resetFilter(),this.onHide.emit(e),this.cd.markForCheck()}clear(e){this.value=null,this.resetExpandedNodes(),this.resetPartialSelected(),this.onModelChange(this.value),this.onClear.emit(),e.stopPropagation()}checkValue(){return null!==this.value&&qs(this.value)}onTabKey(e,i=!1){i||(this.overlayVisible&&this.hasFocusableElements()?(la(e.shiftKey?this.lastHiddenFocusableElementOnOverlay.nativeElement:this.firstHiddenFocusableElementOnOverlay.nativeElement),e.preventDefault()):this.overlayVisible&&this.hide(this.filter))}hasFocusableElements(){return Mm(this.overlayViewChild.overlayViewChild.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}resetFilter(){this.filter&&!this.resetFilterOnHide?(this.filteredNodes=this.treeViewChild?.filteredNodes,this.treeViewChild?.resetFilter()):this.filterValue=null}updateTreeState(){if(this.value){let e="single"===this.selectionMode?[this.value]:[...this.value];this.resetExpandedNodes(),this.resetPartialSelected(),e&&this.options&&this.updateTreeBranchState(null,null,e)}}updateTreeBranchState(e,i,o){if(e){if(this.isSelected(e)&&(this.expandPath(i),o.splice(o.indexOf(e),1)),o.length>0&&e.children)for(let s of e.children)this.updateTreeBranchState(s,[...i,e],o)}else for(let s of this.options)this.updateTreeBranchState(s,[],o)}expandPath(e){for(let i of e)i.expanded=!0;this.expandedNodes=[...e]}nodeExpand(e){this.onNodeExpand.emit(e),this.expandedNodes.push(e.node)}nodeCollapse(e){this.onNodeCollapse.emit(e),this.expandedNodes.splice(this.expandedNodes.indexOf(e.node),1)}resetExpandedNodes(){for(let e of this.expandedNodes)e.expanded=!1;this.expandedNodes=[]}resetPartialSelected(e=this.options){if(e)for(let i of e)i.partialSelected=!1,i.children&&i.children?.length>0&&this.resetPartialSelected(i.children)}findSelectedNodes(e,i,o){if(e){if(this.isSelected(e)&&(o.push(e),delete i[e.key]),Object.keys(i).length&&e.children)for(let s of e.children)this.findSelectedNodes(s,i,o)}else for(let s of this.options)this.findSelectedNodes(s,i,o)}isSelected(e){return-1!=this.findIndexInSelection(e)}findIndexInSelection(e){let i=-1;if(this.value)if("single"===this.selectionMode)i=this.value.key&&this.value.key===e.key||this.value==e?0:-1;else for(let o=0;o<this.value.length;o++){let s=this.value[o];if(s.key&&s.key===e.key||s==e){i=o;break}}return i}onSelect(e){this.onNodeSelect.emit(e),"single"===this.selectionMode&&(this.hide(),this.focusInput?.nativeElement.focus())}onUnselect(e){this.onNodeUnselect.emit(e)}onInputFocus(e){this.disabled||(this.focused=!0,this.onFocus.emit(e))}onInputBlur(e){this.focused=!1,this.onBlur.emit(e),this.onModelTouched()}writeValue(e){this.value=e,this.updateTreeState(),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){setTimeout(()=>{this.disabled=e,this.cd.markForCheck()})}get containerClass(){return this._componentStyle.classes.root({instance:this})}get hasFluid(){const i=this.el.nativeElement.closest("p-fluid");return this.fluid||!!i}get labelClass(){return this._componentStyle.classes.label({instance:this})}get emptyValue(){return!this.value||0===Object.keys(this.value).length}get emptyOptions(){return!this.options||0===this.options.length}get label(){let e=this.value||[];return e.length?e.map(i=>i.label).join(", "):"single"===this.selectionMode&&this.value?e.label:this.placeholder}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["p-treeSelect"],["p-treeselect"],["p-tree-select"]],contentQueries:function(i,o,s){if(1&i&&(n.wni(s,Tlt,4),n.wni(s,Slt,4),n.wni(s,xlt,4),n.wni(s,Elt,4),n.wni(s,Dlt,4),n.wni(s,klt,4),n.wni(s,Ilt,4),n.wni(s,Alt,4),n.wni(s,Mlt,4),n.wni(s,Rlt,4),n.wni(s,Olt,4),n.wni(s,Flt,4),n.wni(s,hs,4)),2&i){let a;n.mGM(a=n.lsd())&&(o.valueTemplate=a.first),n.mGM(a=n.lsd())&&(o.headerTemplate=a.first),n.mGM(a=n.lsd())&&(o.emptyTemplate=a.first),n.mGM(a=n.lsd())&&(o.footerTemplate=a.first),n.mGM(a=n.lsd())&&(o.clearIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.triggerIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.dropdownIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.filterIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.closeIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.itemTogglerIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.itemCheckboxIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.itemLoadingIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.templates=a)}},viewQuery:function(i,o){if(1&i&&(n.GBs(Plt,5),n.GBs(Llt,5),n.GBs(Nlt,5),n.GBs(Glt,5),n.GBs(Blt,5),n.GBs(Vlt,5),n.GBs(jlt,5),n.GBs(Hlt,5)),2&i){let s;n.mGM(s=n.lsd())&&(o.containerEl=s.first),n.mGM(s=n.lsd())&&(o.focusInput=s.first),n.mGM(s=n.lsd())&&(o.filterViewChild=s.first),n.mGM(s=n.lsd())&&(o.treeViewChild=s.first),n.mGM(s=n.lsd())&&(o.panelEl=s.first),n.mGM(s=n.lsd())&&(o.overlayViewChild=s.first),n.mGM(s=n.lsd())&&(o.firstHiddenFocusableElementOnOverlay=s.first),n.mGM(s=n.lsd())&&(o.lastHiddenFocusableElementOnOverlay=s.first)}},inputs:{inputId:"inputId",scrollHeight:"scrollHeight",disabled:[2,"disabled","disabled",n.L39],metaKeySelection:[2,"metaKeySelection","metaKeySelection",n.L39],variant:"variant",display:"display",selectionMode:"selectionMode",tabindex:"tabindex",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",placeholder:"placeholder",panelClass:"panelClass",panelStyle:"panelStyle",fluid:[2,"fluid","fluid",n.L39],panelStyleClass:"panelStyleClass",containerStyle:"containerStyle",containerStyleClass:"containerStyleClass",labelStyle:"labelStyle",labelStyleClass:"labelStyleClass",overlayOptions:"overlayOptions",emptyMessage:"emptyMessage",appendTo:"appendTo",filter:[2,"filter","filter",n.L39],filterBy:"filterBy",filterMode:"filterMode",filterPlaceholder:"filterPlaceholder",filterLocale:"filterLocale",filterInputAutoFocus:[2,"filterInputAutoFocus","filterInputAutoFocus",n.L39],propagateSelectionDown:[2,"propagateSelectionDown","propagateSelectionDown",n.L39],propagateSelectionUp:[2,"propagateSelectionUp","propagateSelectionUp",n.L39],showClear:[2,"showClear","showClear",n.L39],resetFilterOnHide:[2,"resetFilterOnHide","resetFilterOnHide",n.L39],virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",size:"size",virtualScrollOptions:"virtualScrollOptions",autofocus:[2,"autofocus","autofocus",n.L39],options:"options",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",loading:[2,"loading","loading",n.L39]},outputs:{onNodeExpand:"onNodeExpand",onNodeCollapse:"onNodeCollapse",onShow:"onShow",onHide:"onHide",onClear:"onClear",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onNodeUnselect:"onNodeUnselect",onNodeSelect:"onNodeSelect"},features:[n.Jv_([Sct,zue]),n.GFd,n.Vt3],decls:18,vars:30,consts:[["container",""],["focusInput",""],["defaultValueTemplate",""],["overlay",""],["content",""],["chipsValueTemplate",""],["panel",""],["firstHiddenFocusableEl",""],["tree",""],["lastHiddenFocusableEl",""],["empty",""],["togglericon",""],["checkboxicon",""],["loadingicon",""],[3,"click","ngClass","ngStyle"],[1,"p-hidden-accessible"],["type","text","role","combobox","readonly","",3,"focus","blur","keydown","disabled","pAutoFocus"],[1,"p-treeselect-label-container"],[3,"ngClass","ngStyle"],[4,"ngIf","ngIfElse"],[4,"ngIf"],["role","button","aria-haspopup","tree",1,"p-treeselect-dropdown"],[3,"styleClass",4,"ngIf"],["class","p-treeselect-dropdown-icon",4,"ngIf"],[3,"visibleChange","onAnimationStart","onBeforeHide","onShow","onHide","visible","options","target","appendTo","showTransitionOptions","hideTransitionOptions"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-treeselect-chip-item",4,"ngFor","ngForOf"],[1,"p-treeselect-chip-item"],["styleClass","p-treeselect-chip",3,"label"],[3,"class","click",4,"ngIf"],["class","p-treeselect-clear-icon",3,"click",4,"ngIf"],[3,"click"],[1,"p-treeselect-clear-icon",3,"click"],[4,"ngTemplateOutlet"],[3,"styleClass"],[1,"p-treeselect-dropdown-icon"],[1,"p-treeselect-overlay","p-component",3,"ngStyle","ngClass"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus"],[1,"p-treeselect-tree-container",3,"ngStyle"],[3,"selectionChange","onNodeExpand","onNodeCollapse","onNodeSelect","onNodeUnselect","value","propagateSelectionDown","propagateSelectionUp","selectionMode","selection","metaKeySelection","emptyMessage","filter","filterBy","filterMode","filterPlaceholder","filterLocale","filteredNodes","virtualScroll","virtualScrollItemSize","virtualScrollOptions","_templateMap","loading"]],template:function(i,o){if(1&i){const s=n.RV6();n.j41(0,"div",14,0),n.bIt("click",function(l){return n.eBV(s),n.Njj(o.onClick(l))}),n.j41(2,"div",15)(3,"input",16,1),n.bIt("focus",function(l){return n.eBV(s),n.Njj(o.onInputFocus(l))})("blur",function(l){return n.eBV(s),n.Njj(o.onInputBlur(l))})("keydown",function(l){return n.eBV(s),n.Njj(o.onKeyDown(l))}),n.k0s()(),n.j41(5,"div",17)(6,"div",18),n.DNE(7,qlt,2,5,"ng-container",19)(8,Zlt,3,2,"ng-template",null,2,n.C5r),n.k0s()(),n.DNE(10,rct,3,2,"ng-container",20),n.j41(11,"div",21),n.DNE(12,oct,1,1,"ChevronDownIcon",22)(13,lct,2,1,"span",23),n.k0s(),n.j41(14,"p-overlay",24,3),n.mxI("visibleChange",function(l){return n.eBV(s),n.DH7(o.overlayVisible,l)||(o.overlayVisible=l),n.Njj(l)}),n.bIt("onAnimationStart",function(l){return n.eBV(s),n.Njj(o.onOverlayAnimationStart(l))})("onBeforeHide",function(l){return n.eBV(s),n.Njj(o.onOverlayBeforeHide(l))})("onShow",function(l){return n.eBV(s),n.Njj(o.onShow.emit(l))})("onHide",function(l){return n.eBV(s),n.Njj(o.hide(l))}),n.DNE(16,Tct,15,46,"ng-template",null,4,n.C5r),n.k0s()()}if(2&i){let s,a;const l=n.sdS(9);n.HbH(o.containerStyleClass),n.Y8G("ngClass",o.containerClass)("ngStyle",o.containerStyle),n.R7$(3),n.Y8G("disabled",o.disabled)("pAutoFocus",o.autofocus),n.BMQ("id",o.inputId)("tabindex",o.disabled?-1:o.tabindex)("aria-controls",o.overlayVisible?o.listId:null)("aria-haspopup","tree")("aria-expanded",null!==(s=o.overlayVisible)&&void 0!==s&&s)("aria-labelledby",o.ariaLabelledBy)("aria-label",o.ariaLabel||("p-emptylabel"===o.label?void 0:o.label)),n.R7$(3),n.HbH(o.labelStyleClass),n.Y8G("ngClass",o.labelClass)("ngStyle",o.labelStyle),n.R7$(),n.Y8G("ngIf",o.valueTemplate||o._valueTemplate)("ngIfElse",l),n.R7$(3),n.Y8G("ngIf",o.checkValue()&&!o.disabled&&o.showClear),n.R7$(),n.BMQ("aria-expanded",null!==(a=o.overlayVisible)&&void 0!==a&&a)("aria-label","treeselect trigger"),n.R7$(),n.Y8G("ngIf",!(o.triggerIconTemplate||o._triggerIconTemplate||o.dropdownIconTemplate||o._dropdownIconTemplate)),n.R7$(),n.Y8G("ngIf",o.triggerIconTemplate||o._triggerIconTemplate||o.dropdownIconTemplate||o._dropdownIconTemplate),n.R7$(),n.R50("visible",o.overlayVisible),n.Y8G("options",o.overlayOptions)("target","@parent")("appendTo",o.appendTo)("showTransitionOptions",o.showTransitionOptions)("hideTransitionOptions",o.hideTransitionOptions)}},dependencies:[gn,bi,oo,fi,uo,Jr,lk,Di,YG,Jf,pf,Y_,S8],encapsulation:2,changeDetection:0})}return t})(),xct=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({imports:[Bq,Di,Di]})}return t})();function Ect(t,r){if(1&t&&(n.j41(0,"span",4),n.EFF(1),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.SpI(" ",e.selectedEntryPath()," ")}}let Vq=(()=>{class t{constructor(){this.taxonomy=n.hFB.required(),this.taxonomyTree=n.hFB.required(),this.required=(0,n.hFB)(!1),this.disabled=(0,n.vPA)(!1),this.placeholder=(0,n.hFB)(""),this.onItemSelected=(0,n.CGW)(),this.selectedEntry=(0,n.geq)(null),this.selectedTaxonomyEntryNode=(0,n.vPA)(null),this.selectedEntryPath=(0,n.vPA)(null),this.onChange=()=>{},this.onTouched=()=>{}}clearSelectedItem(){this.selectedEntry.set(null),this.onItemSelected.emit(null),this.onChange(null)}verifySelectedItem(){this.selectedEntry()||this.onItemSelected.emit(null),this.onTouched()}ngOnInit(){this.selectedEntry()&&this.writeValue(this.selectedEntry())}writeValue(e){if(e){let i=this.getTaxonomyEntry(e.key,this.taxonomyTree());i&&(this.selectedTaxonomyEntryNode.set(i),this.onTreeNodeSelected(i))}}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled.set(e)}nodeSelected(e){this.onTreeNodeSelected(e.node)}onTreeNodeSelected(e){if(e){let i=this.taxonomy().find(o=>o.key===e.key);i&&(this.selectedEntryPath.set(i.displayPath?i.displayPath.join(" > "):this.getNodePath(e,[])),this.onItemSelected.emit(i),this.onChange(i))}else this.selectedEntryPath.set(""),this.onItemSelected.emit(null),this.onChange(null)}getNodePath(e,i){return i.push(e.label),e.parent&&this.getNodePath(e.parent,i),i.reverse().join(" > ")}getTaxonomyEntry(e,i){if(!i||!i.length)return null;for(let o of i){if(o.key===e)return o;if(o.children&&o.children.length){let s=this.getTaxonomyEntry(e,o.children);if(s)return s}}return null}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-item-type-selection"]],inputs:{taxonomy:[1,"taxonomy"],taxonomyTree:[1,"taxonomyTree"],required:[1,"required"],placeholder:[1,"placeholder"],selectedEntry:[1,"selectedEntry"]},outputs:{onItemSelected:"onItemSelected",selectedEntry:"selectedEntryChange"},features:[n.Jv_([oi,{provide:tl,useExisting:t,multi:!0}])],decls:8,vars:11,consts:[[1,"tw-relative","tw-w-full"],["containerStyleClass","tw-w-full",3,"ngModelChange","onClear","onNodeSelect","onNodeUnselect","ngModel","showClear","required","disabled","options","filter","filterInputAutoFocus","appendTo"],["for","itemTypeSelection"],[1,"tw-text-red-500"],[1,"tw-absolute","tw-bottom-0","-tw-mb-4","tw-ml-4","tw-block","tw-text-xs","tw-text-gray-500"]],template:function(i,o){1&i&&(n.j41(0,"div",0)(1,"p-floatlabel")(2,"p-treeselect",1),n.mxI("ngModelChange",function(a){return n.DH7(o.selectedTaxonomyEntryNode,a)||(o.selectedTaxonomyEntryNode=a),a}),n.bIt("onClear",function(){return o.clearSelectedItem()})("onNodeSelect",function(a){return o.nodeSelected(a)})("onNodeUnselect",function(){return o.clearSelectedItem()}),n.k0s(),n.j41(3,"label",2),n.EFF(4),n.j41(5,"span",3),n.EFF(6),n.k0s()()(),n.DNE(7,Ect,2,1,"span",4),n.k0s()),2&i&&(n.R7$(2),n.R50("ngModel",o.selectedTaxonomyEntryNode),n.Y8G("showClear",!0)("required",o.required())("disabled",o.disabled())("options",o.taxonomyTree())("filter",!0)("filterInputAutoFocus",!0)("appendTo","body"),n.R7$(2),n.SpI(" ",o.placeholder()," "),n.R7$(2),n.JRh(o.required()?"*":""),n.R7$(),n.vxM(o.selectedTaxonomyEntryNode()?7:-1))},dependencies:[$w,gn,Ra,_o,Sv,ko,om,Zp,xct,Bq],encapsulation:2})}}return t})(),Dct=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=n.$C({type:t})}static{this.\u0275inj=n.G2t({providers:[{provide:"$state",useFactory:e=>e.get("$state"),deps:["$injector"]}],imports:[mf,rm,gn,vg,Yv,Ra,Vq,U$,d2,K_,Iv,xv,Zp,th,Vst,c7,tat]})}}return t})(),kct=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=n.$C({type:t})}static{this.\u0275inj=n.G2t({providers:[n$(i$())],imports:[$w,mf,gn,vg,Ra,sY,Ix,d2,K_,Iv,xv,th,c7,Rh]})}}return t})();const Ict=({dt:t})=>`\n.p-datepicker {\nposition: relative;\n    display: inline-flex;\n    max-width: 100%;\n}\n\n.p-datepicker-input {\n    flex: 1 1 auto;\n    width: 1%;\n}\n\n.p-datepicker:has(.p-datepicker-dropdown) .p-datepicker-input {\n    border-start-end-radius: 0;\n    border-end-end-radius: 0;\n}\n\n.p-datepicker-dropdown {\n    cursor: pointer;\n    display: inline-flex;\n    cursor: pointer;\n    user-select: none;\n    align-items: center;\n    justify-content: center;\n    overflow: hidden;\n    position: relative;\n    width: ${t("datepicker.dropdown.width")};\n    border-start-end-radius: ${t("datepicker.dropdown.border.radius")};\n    border-end-end-radius: ${t("datepicker.dropdown.border.radius")};\n    background: ${t("datepicker.dropdown.background")};\n    border: 1px solid ${t("datepicker.dropdown.border.color")};\n    border-left: 0 none;\n    color: ${t("datepicker.dropdown.color")};\n    transition: background ${t("datepicker.transition.duration")}, color ${t("datepicker.transition.duration")}, border-color ${t("datepicker.transition.duration")}, outline-color ${t("datepicker.transition.duration")};\n    outline-color: transparent;\n}\n\n.p-datepicker-dropdown:not(:disabled):hover {\n    background: ${t("datepicker.dropdown.hover.background")};\n    border-color: ${t("datepicker.dropdown.hover.border.color")};\n    color: ${t("datepicker.dropdown.hover.color")};\n}\n\n.p-datepicker-dropdown:not(:disabled):active {\n    background: ${t("datepicker.dropdown.active.background")};\n    border-color: ${t("datepicker.dropdown.active.border.color")};\n    color: ${t("datepicker.dropdown.active.color")};\n}\n\n.p-datepicker-dropdown:focus-visible {\n    box-shadow: ${t("datepicker.dropdown.focus.ring.shadow")};\n    outline: ${t("datepicker.dropdown.focus.ring.width")} ${t("datepicker.dropdown.focus.ring.style")} ${t("datepicker.dropdown.focus.ring.color")};\n    outline-offset: ${t("datepicker.dropdown.focus.ring.offset")};\n}\n\n.p-datepicker:has(.p-datepicker-input-icon-container) {\n    position: relative;\n}\n\n.p-datepicker:has(.p-datepicker-input-icon-container) .p-datepicker-input {\n    padding-right: calc((${t("form.field.padding.x")} * 2) + ${t("icon.size")});\n}\n\n.p-datepicker-input-icon-container {\n    cursor: pointer;\n    position: absolute;\n    top: 50%;\n    right: ${t("form.field.padding.x")};\n    margin-top: calc(-1 * (${t("icon.size")} / 2));\n    color: ${t("datepicker.input.icon.color")};\n}\n\n.p-datepicker-fluid {\n    display: flex;\n}\n\n.p-datepicker-fluid .p-datepicker-input {\n    width: 1%;\n}\n\n.p-datepicker .p-datepicker-panel {\n    min-width: 100%;\n}\n\n.p-datepicker-panel {\n    position: absolute;\n    width: auto;\n    padding: ${t("datepicker.panel.padding")};\n    background: ${t("datepicker.panel.background")};\n    color: ${t("datepicker.panel.color")};\n    border: 1px solid ${t("datepicker.panel.border.color")};\n    border-radius: ${t("datepicker.panel.border.radius")};\n    box-shadow: ${t("datepicker.panel.shadow")};\n}\n\n.p-datepicker-panel-inline {\n    display: inline-block;\n    overflow-x: auto;\n    box-shadow: none;\n}\n\n.p-datepicker-header {\n    display: flex;\n    align-items: center;\n    justify-content: space-between;\n    padding: ${t("datepicker.header.padding")};\n    font-weight: ${t("datepicker.header.font.weight")};\n    background: ${t("datepicker.header.background")};\n    color: ${t("datepicker.header.color")};\n    border-bottom: 1px solid ${t("datepicker.header.border.color")};\n}\n\n.p-datepicker-title {\n    display: flex;\n    align-items: center;\n    justify-content: space-between;\n    gap: ${t("datepicker.title.gap")};\n    font-weight: ${t("datepicker.title.font.weight")};\n}\n\n.p-datepicker-select-year,\n.p-datepicker-select-month {\n    border: none;\n    background: transparent;\n    margin: 0;\n    cursor: pointer;\n    font-weight: inherit;\n    transition: background ${t("datepicker.transition.duration")}, color ${t("datepicker.transition.duration")}, border-color ${t("datepicker.transition.duration")}, outline-color ${t("datepicker.transition.duration")}, box-shadow ${t("datepicker.transition.duration")};\n}\n\n.p-datepicker-select-month {\n    padding: ${t("datepicker.select.month.padding")};\n    color: ${t("datepicker.select.month.color")};\n    border-radius: ${t("datepicker.select.month.border.radius")};\n}\n\n.p-datepicker-select-year {\n    padding: ${t("datepicker.select.year.padding")};\n    color: ${t("datepicker.select.year.color")};\n    border-radius: ${t("datepicker.select.year.border.radius")};\n}\n\n.p-datepicker-select-month:enabled:hover {\n    background: ${t("datepicker.select.month.hover.background")};\n    color: ${t("datepicker.select.month.hover.color")};\n}\n\n.p-datepicker-select-year:enabled:hover {\n    background: ${t("datepicker.select.year.hover.background")};\n    color: ${t("datepicker.select.year.hover.color")};\n}\n\n.p-datepicker-calendar-container {\n    display: flex;\n}\n\n.p-datepicker-calendar-container .p-datepicker-calendar {\n    flex: 1 1 auto;\n    border-left: 1px solid ${t("datepicker.group.border.color")};\n    padding-right: ${t("datepicker.group.gap")};\n    padding-left: ${t("datepicker.group.gap")};\n}\n\n.p-datepicker-calendar-container .p-datepicker-calendar:first-child {\n    padding-left: 0;\n    border-left: 0 none;\n}\n\n.p-datepicker-calendar-container .p-datepicker-calendar:last-child {\n    padding-right: 0;\n}\n\n.p-datepicker-day-view {\n    width: 100%;\n    border-collapse: collapse;\n    font-size: 1rem;\n    margin: ${t("datepicker.day.view.margin")};\n}\n\n.p-datepicker-weekday-cell {\n    padding: ${t("datepicker.week.day.padding")};\n}\n\n.p-datepicker-weekday {\n    font-weight: ${t("datepicker.week.day.font.weight")};\n    color: ${t("datepicker.week.day.color")};\n}\n\n.p-datepicker-day-cell {\n    padding: ${t("datepicker.date.padding")};\n}\n\n.p-datepicker-day {\n    display: flex;\n    justify-content: center;\n    align-items: center;\n    cursor: pointer;\n    margin: 0 auto;\n    overflow: hidden;\n    position: relative;\n    width: ${t("datepicker.date.width")};\n    height: ${t("datepicker.date.height")};\n    border-radius: ${t("datepicker.date.border.radius")};\n    transition: background ${t("datepicker.transition.duration")}, color ${t("datepicker.transition.duration")}, border-color ${t("datepicker.transition.duration")},\n        box-shadow ${t("datepicker.transition.duration")}, outline-color ${t("datepicker.transition.duration")};\n    border: 1px solid transparent;\n    outline-color: transparent;\n    color: ${t("datepicker.date.color")};\n}\n\n.p-datepicker-day:not(.p-datepicker-day-selected):not(.p-disabled):hover {\n    background: ${t("datepicker.date.hover.background")};\n    color: ${t("datepicker.date.hover.color")};\n}\n\n.p-datepicker-day:focus-visible {\n    box-shadow: ${t("datepicker.date.focus.ring.shadow")};\n    outline: ${t("datepicker.date.focus.ring.width")} ${t("datepicker.date.focus.ring.style")} ${t("datepicker.date.focus.ring.color")};\n    outline-offset: ${t("datepicker.date.focus.ring.offset")};\n}\n\n.p-datepicker-day-selected {\n    background: ${t("datepicker.date.selected.background")};\n    color: ${t("datepicker.date.selected.color")};\n}\n\n.p-datepicker-day-selected-range {\n    background: ${t("datepicker.date.range.selected.background")};\n    color: ${t("datepicker.date.range.selected.color")};\n}\n\n.p-datepicker-today > .p-datepicker-day {\n    background: ${t("datepicker.today.background")};\n    color: ${t("datepicker.today.color")};\n}\n\n.p-datepicker-today > .p-datepicker-day-selected {\n    background: ${t("datepicker.date.selected.background")};\n    color: ${t("datepicker.date.selected.color")};\n}\n\n.p-datepicker-today > .p-datepicker-day-selected-range {\n    background: ${t("datepicker.date.range.selected.background")};\n    color: ${t("datepicker.date.range.selected.color")};\n}\n\n.p-datepicker-weeknumber {\n    text-align: center\n}\n\n.p-datepicker-month-view {\n    margin: ${t("datepicker.month.view.margin")};\n}\n\n.p-datepicker-month {\n    width: 33.3%;\n    display: inline-flex;\n    align-items: center;\n    justify-content: center;\n    cursor: pointer;\n    overflow: hidden;\n    position: relative;\n    padding: ${t("datepicker.month.padding")};\n    transition: background ${t("datepicker.transition.duration")}, color ${t("datepicker.transition.duration")}, border-color ${t("datepicker.transition.duration")}, box-shadow ${t("datepicker.transition.duration")}, outline-color ${t("datepicker.transition.duration")};\n    border-radius: ${t("datepicker.month.border.radius")};\n    outline-color: transparent;\n    color: ${t("datepicker.date.color")};\n}\n\n.p-datepicker-month:not(.p-disabled):not(.p-datepicker-month-selected):hover {\n    color:  ${t("datepicker.date.hover.color")};\n    background: ${t("datepicker.date.hover.background")};\n}\n\n.p-datepicker-month-selected {\n    color: ${t("datepicker.date.selected.color")};\n    background: ${t("datepicker.date.selected.background")};\n}\n\n.p-datepicker-month:not(.p-disabled):focus-visible {\n    box-shadow: ${t("datepicker.date.focus.ring.shadow")};\n    outline: ${t("datepicker.date.focus.ring.width")} ${t("datepicker.date.focus.ring.style")} ${t("datepicker.date.focus.ring.color")};\n    outline-offset: ${t("datepicker.date.focus.ring.offset")};\n}\n\n.p-datepicker-year-view {\n    margin: ${t("datepicker.year.view.margin")};\n}\n\n.p-datepicker-year {\n    width: 50%;\n    display: inline-flex;\n    align-items: center;\n    justify-content: center;\n    cursor: pointer;\n    overflow: hidden;\n    position: relative;\n    padding: ${t("datepicker.year.padding")};\n    transition: background ${t("datepicker.transition.duration")}, color ${t("datepicker.transition.duration")}, border-color ${t("datepicker.transition.duration")}, box-shadow ${t("datepicker.transition.duration")}, outline-color ${t("datepicker.transition.duration")};\n    border-radius: ${t("datepicker.year.border.radius")};\n    outline-color: transparent;\n    color: ${t("datepicker.date.color")};\n}\n\n.p-datepicker-year:not(.p-disabled):not(.p-datepicker-year-selected):hover {\n    color: ${t("datepicker.date.hover.color")};\n    background: ${t("datepicker.date.hover.background")};\n}\n\n.p-datepicker-year-selected {\n    color: ${t("datepicker.date.selected.color")};\n    background: ${t("datepicker.date.selected.background")};\n}\n\n.p-datepicker-year:not(.p-disabled):focus-visible {\n    box-shadow: ${t("datepicker.date.focus.ring.shadow")};\n    outline: ${t("datepicker.date.focus.ring.width")} ${t("datepicker.date.focus.ring.style")} ${t("datepicker.date.focus.ring.color")};\n    outline-offset: ${t("datepicker.date.focus.ring.offset")};\n}\n\n.p-datepicker-buttonbar {\n    display: flex;\n    justify-content: space-between;\n    align-items: center;\n    padding:  ${t("datepicker.buttonbar.padding")};\n    border-top: 1px solid ${t("datepicker.buttonbar.border.color")};\n}\n\n.p-datepicker-buttonbar .p-button {\n    width: auto;\n}\n\n.p-datepicker-time-picker {\n    display: flex;\n    justify-content: center;\n    align-items: center;\n    border-top: 1px solid ${t("datepicker.time.picker.border.color")};\n    padding: 0;\n    gap: ${t("datepicker.time.picker.gap")};\n}\n\n.p-datepicker-calendar-container + .p-datepicker-time-picker {\n    padding: ${t("datepicker.time.picker.padding")};\n}\n\n.p-datepicker-time-picker > div {\n    display: flex;\n    align-items: center;\n    flex-direction: column;\n    gap: ${t("datepicker.time.picker.button.gap")};\n}\n\n.p-datepicker-time-picker span {\n    font-size: 1rem;\n}\n\n.p-datepicker-timeonly .p-datepicker-time-picker {\n    border-top: 0 none;\n}\n\n.p-datepicker-calendar:not(:first-child):not(:last-child) .p-datepicker-header {\n    justify-content: center;\n}\n\n/* For PrimeNG */\n\np-calendar.ng-invalid.ng-dirty .p-datepicker.p-inputwrapper .p-inputtext{\n    border-color: ${t("inputtext.invalid.border.color")};\n}\n\np-datepicker.ng-invalid.ng-dirty .p-datepicker.p-inputwrapper .p-inputtext{\n    border-color: ${t("inputtext.invalid.border.color")};\n}\n`,Act={root:({props:t})=>({position:"self"===t.appendTo?"relative":void 0})},Mct={root:({instance:t})=>({"p-datepicker p-component p-inputwrapper":!0,"p-datepicker-fluid":t.hasFluid,"p-inputwrapper-filled":t.filled,"p-inputwrapper-focus":t.focus,"p-focus":t.focus||t.overlayVisible}),pcInput:"p-datepicker-input",dropdown:"p-datepicker-dropdown",inputIconContainer:"p-datepicker-input-icon-container",inputIcon:"p-datepicker-input-icon",panel:({instance:t})=>({"p-datepicker-panel p-component":!0,"p-datepicker-panel-inline":t.inline,"p-disabled":t.disabled,"p-datepicker-timeonly":t.timeOnly}),calendarContainer:"p-datepicker-calendar-container",calendar:"p-datepicker-calendar",header:"p-datepicker-header",pcPrevButton:"p-datepicker-prev-button",title:"p-datepicker-title",selectMonth:"p-datepicker-select-month",selectYear:"p-datepicker-select-year",decade:"p-datepicker-decade",pcNextButton:"p-datepicker-next-button",dayView:"p-datepicker-day-view",weekHeader:"p-datepicker-weekheader p-disabled",weekNumber:"p-datepicker-weeknumber",weekLabelContainer:"p-datepicker-weeklabel-container p-disabled",weekDayCell:"p-datepicker-weekday-cell",weekDay:"p-datepicker-weekday",dayCell:({date:t})=>["p-datepicker-day-cell",{"p-datepicker-other-month":t.otherMonth,"p-datepicker-today":t.today}],day:({instance:t,date:r})=>{let e="";return t.isRangeSelection()&&t.isSelected(r)&&r.selectable&&(e=r.day===t.value[0].getDate()||r.day===t.value[1].getDate()?"p-datepicker-day-selected":"p-datepicker-day-selected-range"),{"p-datepicker-day":!0,"p-datepicker-day-selected":!t.isRangeSelection()&&t.isSelected(r)&&r.selectable,"p-disabled":t.disabled||!r.selectable,[e]:!0}},monthView:"p-datepicker-month-view",month:({instance:t,props:r,month:e,index:i})=>["p-datepicker-month",{"p-datepicker-month-selected":t.isMonthSelected(i),"p-disabled":r.disabled||!e.selectable}],yearView:"p-datepicker-year-view",year:({instance:t,props:r,year:e})=>["p-datepicker-year",{"p-datepicker-year-selected":t.isYearSelected(e.value),"p-disabled":r.disabled||!e.selectable}],timePicker:"p-datepicker-time-picker",hourPicker:"p-datepicker-hour-picker",pcIncrementButton:"p-datepicker-increment-button",pcDecrementButton:"p-datepicker-decrement-button",separator:"p-datepicker-separator",minutePicker:"p-datepicker-minute-picker",secondPicker:"p-datepicker-second-picker",ampmPicker:"p-datepicker-ampm-picker",buttonbar:"p-datepicker-buttonbar",pcTodayButton:"p-datepicker-today-button",pcClearButton:"p-datepicker-clear-button"};let Xue=(()=>{class t extends gs{name="datepicker";theme=Ict;classes=Mct;inlineStyles=Act;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const Rct=["date"],Oct=["header"],Fct=["footer"],Pct=["disabledDate"],Lct=["decade"],Nct=["previousicon"],Gct=["nexticon"],Bct=["triggericon"],Vct=["clearicon"],jct=["decrementicon"],Hct=["incrementicon"],Uct=["inputicon"],$ct=["container"],Yct=["inputfield"],Wct=["contentWrapper"],zct=[[["p-header"]],[["p-footer"]]],qct=["p-header","p-footer"],Xct=t=>({clickCallBack:t}),Kct=t=>({"p-datepicker-input-icon":t}),Qct=(t,r)=>({showTransitionParams:t,hideTransitionParams:r}),Jct=t=>({value:"visible",params:t}),Kue=t=>({visibility:t}),jq=t=>({$implicit:t}),Zct=(t,r)=>({"p-datepicker-day-cell":!0,"p-datepicker-other-month":t,"p-datepicker-today":r}),eut=(t,r)=>({"p-datepicker-month":!0,"p-datepicker-month-selected":t,"p-disabled":r}),tut=(t,r)=>({"p-datepicker-year":!0,"p-datepicker-year-selected":t,"p-disabled":r}),Que=t=>[t];function nut(t,r){if(1&t){const e=n.RV6();n.j41(0,"TimesIcon",11),n.bIt("click",function(){n.eBV(e);const o=n.XpG(3);return n.Njj(o.clear())}),n.k0s()}2&t&&n.HbH("p-datepicker-clear-icon")}function iut(t,r){}function rut(t,r){1&t&&n.DNE(0,iut,0,0,"ng-template")}function out(t,r){if(1&t){const e=n.RV6();n.j41(0,"span",12),n.bIt("click",function(){n.eBV(e);const o=n.XpG(3);return n.Njj(o.clear())}),n.DNE(1,rut,1,0,null,13),n.k0s()}if(2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)}}function sut(t,r){if(1&t&&(n.qex(0),n.DNE(1,nut,1,2,"TimesIcon",9)(2,out,2,1,"span",10),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),n.R7$(),n.Y8G("ngIf",e.clearIconTemplate||e._clearIconTemplate)}}function aut(t,r){if(1&t&&n.nrm(0,"span",16),2&t){const e=n.XpG(3);n.Y8G("ngClass",e.icon)}}function lut(t,r){1&t&&n.nrm(0,"CalendarIcon")}function cut(t,r){}function uut(t,r){1&t&&n.DNE(0,cut,0,0,"ng-template")}function dut(t,r){if(1&t&&(n.qex(0),n.DNE(1,lut,1,0,"CalendarIcon",7)(2,uut,1,0,null,13),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngIf",!e.triggerIconTemplate&&!e._triggerIconTemplate),n.R7$(),n.Y8G("ngTemplateOutlet",e.triggerIconTemplate||e._triggerIconTemplate)}}function put(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",14),n.bIt("click",function(o){n.eBV(e),n.XpG();const s=n.sdS(1),a=n.XpG();return n.Njj(a.onButtonClick(o,s))}),n.DNE(1,aut,1,1,"span",15)(2,dut,3,2,"ng-container",7),n.k0s()}if(2&t){let e;const i=n.XpG(2);n.Y8G("disabled",i.disabled),n.BMQ("aria-label",i.iconButtonAriaLabel)("aria-expanded",null!==(e=i.overlayVisible)&&void 0!==e&&e)("aria-controls",i.overlayVisible?i.panelId:null),n.R7$(),n.Y8G("ngIf",i.icon),n.R7$(),n.Y8G("ngIf",!i.icon)}}function hut(t,r){if(1&t){const e=n.RV6();n.j41(0,"CalendarIcon",20),n.bIt("click",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.onButtonClick(o))}),n.k0s()}if(2&t){const e=n.XpG(3);n.Y8G("ngClass",n.eq3(1,Kct,e.showOnFocus))}}function fut(t,r){1&t&&n.eu8(0)}function mut(t,r){if(1&t&&(n.qex(0),n.j41(1,"span",17),n.DNE(2,hut,1,3,"CalendarIcon",18)(3,fut,1,0,"ng-container",19),n.k0s(),n.bVm()),2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("ngIf",!e.inputIconTemplate&&!e._inputIconTemplate),n.R7$(),n.Y8G("ngTemplateOutlet",e.inputIconTemplate||e._inputIconTemplate)("ngTemplateOutletContext",n.eq3(3,Xct,e.onButtonClick.bind(e)))}}function gut(t,r){if(1&t){const e=n.RV6();n.j41(0,"input",6,1),n.bIt("focus",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onInputFocus(o))})("keydown",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onInputKeydown(o))})("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onInputClick())})("blur",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onInputBlur(o))})("input",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onUserInput(o))}),n.k0s(),n.DNE(2,sut,3,2,"ng-container",7)(3,put,3,6,"button",8)(4,mut,4,5,"ng-container",7)}if(2&t){let e;const i=n.XpG();n.HbH(i.inputStyleClass),n.Y8G("value",i.inputFieldValue)("readonly",i.readonlyInput)("ngStyle",i.inputStyle)("ngClass","p-datepicker-input")("placeholder",i.placeholder||"")("disabled",i.disabled)("pAutoFocus",i.autofocus)("variant",i.variant)("fluid",i.hasFluid),n.BMQ("id",i.inputId)("name",i.name)("required",i.required)("aria-required",i.required)("aria-expanded",null!==(e=i.overlayVisible)&&void 0!==e&&e)("aria-controls",i.overlayVisible?i.panelId:null)("aria-labelledby",i.ariaLabelledBy)("aria-label",i.ariaLabel)("tabindex",i.tabindex)("inputmode",i.touchUI?"off":null),n.R7$(2),n.Y8G("ngIf",i.showClear&&!i.disabled&&null!=i.value),n.R7$(),n.Y8G("ngIf",i.showIcon&&"button"===i.iconDisplay),n.R7$(),n.Y8G("ngIf","input"===i.iconDisplay&&i.showIcon)}}function vut(t,r){1&t&&n.eu8(0)}function _ut(t,r){1&t&&n.nrm(0,"ChevronLeftIcon")}function yut(t,r){}function but(t,r){1&t&&n.DNE(0,yut,0,0,"ng-template")}function Cut(t,r){if(1&t&&(n.j41(0,"span"),n.DNE(1,but,1,0,null,13),n.k0s()),2&t){const e=n.XpG(4);n.R7$(),n.Y8G("ngTemplateOutlet",e.previousIconTemplate||e._previousIconTemplate)}}function wut(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",37),n.bIt("click",function(o){n.eBV(e);const s=n.XpG(4);return n.Njj(s.switchToMonthView(o))})("keydown",function(o){n.eBV(e);const s=n.XpG(4);return n.Njj(s.onContainerButtonKeydown(o))}),n.EFF(1),n.k0s()}if(2&t){const e=n.XpG().$implicit,i=n.XpG(3);n.Y8G("disabled",i.switchViewButtonDisabled()),n.BMQ("aria-label",i.getTranslation("chooseMonth")),n.R7$(),n.SpI(" ",i.getMonthName(e.month)," ")}}function Tut(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",38),n.bIt("click",function(o){n.eBV(e);const s=n.XpG(4);return n.Njj(s.switchToYearView(o))})("keydown",function(o){n.eBV(e);const s=n.XpG(4);return n.Njj(s.onContainerButtonKeydown(o))}),n.EFF(1),n.k0s()}if(2&t){const e=n.XpG().$implicit,i=n.XpG(3);n.Y8G("disabled",i.switchViewButtonDisabled()),n.BMQ("aria-label",i.getTranslation("chooseYear")),n.R7$(),n.SpI(" ",i.getYear(e)," ")}}function Sut(t,r){if(1&t&&(n.qex(0),n.EFF(1),n.bVm()),2&t){const e=n.XpG(5);n.R7$(),n.Lme("",e.yearPickerValues()[0]," - ",e.yearPickerValues()[e.yearPickerValues().length-1],"")}}function xut(t,r){1&t&&n.eu8(0)}function Eut(t,r){if(1&t&&(n.j41(0,"span",39),n.DNE(1,Sut,2,2,"ng-container",7)(2,xut,1,0,"ng-container",19),n.k0s()),2&t){const e=n.XpG(4);n.R7$(),n.Y8G("ngIf",!e.decadeTemplate&&e._decadeTemplate),n.R7$(),n.Y8G("ngTemplateOutlet",e.decadeTemplate||e._decadeTemplate)("ngTemplateOutletContext",n.eq3(3,jq,e.yearPickerValues))}}function Dut(t,r){1&t&&n.nrm(0,"ChevronRightIcon")}function kut(t,r){}function Iut(t,r){1&t&&n.DNE(0,kut,0,0,"ng-template")}function Aut(t,r){if(1&t&&(n.j41(0,"span"),n.DNE(1,Iut,1,0,null,13),n.k0s()),2&t){const e=n.XpG(4);n.R7$(),n.Y8G("ngTemplateOutlet",e.nextIconTemplate||e._nextIconTemplate)}}function Mut(t,r){if(1&t&&(n.j41(0,"th",44)(1,"span"),n.EFF(2),n.k0s()()),2&t){const e=n.XpG(5);n.R7$(2),n.JRh(e.getTranslation("weekHeader"))}}function Rut(t,r){if(1&t&&(n.j41(0,"th",45)(1,"span",46),n.EFF(2),n.k0s()()),2&t){const e=r.$implicit;n.R7$(2),n.JRh(e)}}function Out(t,r){if(1&t&&(n.j41(0,"td",49)(1,"span",50),n.EFF(2),n.k0s()()),2&t){const e=n.XpG().index,i=n.XpG(2).$implicit;n.R7$(2),n.SpI(" ",i.weekNumbers[e]," ")}}function Fut(t,r){if(1&t&&(n.qex(0),n.EFF(1),n.bVm()),2&t){const e=n.XpG(2).$implicit;n.R7$(),n.JRh(e.day)}}function Put(t,r){1&t&&n.eu8(0)}function Lut(t,r){if(1&t&&(n.qex(0),n.DNE(1,Put,1,0,"ng-container",19),n.bVm()),2&t){const e=n.XpG(2).$implicit,i=n.XpG(6);n.R7$(),n.Y8G("ngTemplateOutlet",i.dateTemplate||i._dateTemplate)("ngTemplateOutletContext",n.eq3(2,jq,e))}}function Nut(t,r){1&t&&n.eu8(0)}function Gut(t,r){if(1&t&&(n.qex(0),n.DNE(1,Nut,1,0,"ng-container",19),n.bVm()),2&t){const e=n.XpG(2).$implicit,i=n.XpG(6);n.R7$(),n.Y8G("ngTemplateOutlet",i.disabledDateTemplate||i._disabledDateTemplate)("ngTemplateOutletContext",n.eq3(2,jq,e))}}function But(t,r){if(1&t&&(n.j41(0,"div",53),n.EFF(1),n.k0s()),2&t){const e=n.XpG(2).$implicit;n.R7$(),n.SpI(" ",e.day," ")}}function Vut(t,r){if(1&t){const e=n.RV6();n.qex(0),n.j41(1,"span",51),n.bIt("click",function(o){n.eBV(e);const s=n.XpG().$implicit,a=n.XpG(6);return n.Njj(a.onDateSelect(o,s))})("keydown",function(o){n.eBV(e);const s=n.XpG().$implicit,a=n.XpG(3).index,l=n.XpG(3);return n.Njj(l.onDateCellKeydown(o,s,a))}),n.DNE(2,Fut,2,1,"ng-container",7)(3,Lut,2,4,"ng-container",7)(4,Gut,2,4,"ng-container",7),n.k0s(),n.DNE(5,But,2,1,"div",52),n.bVm()}if(2&t){const e=n.XpG().$implicit,i=n.XpG(6);n.R7$(),n.Y8G("ngClass",i.dayClass(e)),n.BMQ("data-date",i.formatDateKey(i.formatDateMetaToDate(e))),n.R7$(),n.Y8G("ngIf",!i.dateTemplate&&!i._dateTemplate&&(e.selectable||!i.disabledDateTemplate&&!i._disabledDateTemplate)),n.R7$(),n.Y8G("ngIf",e.selectable||!i.disabledDateTemplate&&!i._disabledDateTemplate),n.R7$(),n.Y8G("ngIf",!e.selectable),n.R7$(),n.Y8G("ngIf",i.isSelected(e))}}function jut(t,r){if(1&t&&(n.j41(0,"td",16),n.DNE(1,Vut,6,6,"ng-container",7),n.k0s()),2&t){const e=r.$implicit,i=n.XpG(6);n.Y8G("ngClass",n.l_i(3,Zct,e.otherMonth,e.today)),n.BMQ("aria-label",e.day),n.R7$(),n.Y8G("ngIf",!e.otherMonth||i.showOtherMonths)}}function Hut(t,r){if(1&t&&(n.j41(0,"tr"),n.DNE(1,Out,3,1,"td",47)(2,jut,2,6,"td",48),n.k0s()),2&t){const e=r.$implicit,i=n.XpG(5);n.R7$(),n.Y8G("ngIf",i.showWeek),n.R7$(),n.Y8G("ngForOf",e)}}function Uut(t,r){if(1&t&&(n.j41(0,"table",40)(1,"thead")(2,"tr"),n.DNE(3,Mut,3,1,"th",41)(4,Rut,3,1,"th",42),n.k0s()(),n.j41(5,"tbody"),n.DNE(6,Hut,3,2,"tr",43),n.k0s()()),2&t){const e=n.XpG().$implicit,i=n.XpG(3);n.R7$(3),n.Y8G("ngIf",i.showWeek),n.R7$(),n.Y8G("ngForOf",i.weekDays),n.R7$(2),n.Y8G("ngForOf",e.dates)}}function $ut(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",28)(1,"div",29)(2,"p-button",30),n.bIt("keydown",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.onContainerButtonKeydown(o))})("onClick",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.onPrevButtonClick(o))}),n.DNE(3,_ut,1,0,"ChevronLeftIcon",7)(4,Cut,2,1,"span",7),n.k0s(),n.j41(5,"div",31),n.DNE(6,wut,2,3,"button",32)(7,Tut,2,3,"button",33)(8,Eut,3,5,"span",34),n.k0s(),n.j41(9,"p-button",35),n.bIt("keydown",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.onContainerButtonKeydown(o))})("onClick",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.onNextButtonClick(o))}),n.DNE(10,Dut,1,0,"ChevronRightIcon",7)(11,Aut,2,1,"span",7),n.k0s()(),n.DNE(12,Uut,7,3,"table",36),n.k0s()}if(2&t){const e=r.index,i=n.XpG(3);n.R7$(2),n.Y8G("ngStyle",n.eq3(12,Kue,0===e?"visible":"hidden")),n.BMQ("aria-label",i.prevIconAriaLabel),n.R7$(),n.Y8G("ngIf",!i.previousIconTemplate&&!i._previousIconTemplate),n.R7$(),n.Y8G("ngIf",i.previousIconTemplate||!i._previousIconTemplate),n.R7$(2),n.Y8G("ngIf","date"===i.currentView),n.R7$(),n.Y8G("ngIf","year"!==i.currentView),n.R7$(),n.Y8G("ngIf","year"===i.currentView),n.R7$(),n.Y8G("ngStyle",n.eq3(14,Kue,e===i.months.length-1?"visible":"hidden")),n.BMQ("aria-label",i.nextIconAriaLabel),n.R7$(),n.Y8G("ngIf",!i.nextIconTemplate&&!i._nextIconTemplate),n.R7$(),n.Y8G("ngIf",i.nextIconTemplate||!i._nextIconTemplate),n.R7$(),n.Y8G("ngIf","date"===i.currentView)}}function Yut(t,r){if(1&t&&(n.j41(0,"div",53),n.EFF(1),n.k0s()),2&t){const e=n.XpG().$implicit;n.R7$(),n.SpI(" ",e," ")}}function Wut(t,r){if(1&t){const e=n.RV6();n.j41(0,"span",56),n.bIt("click",function(o){const s=n.eBV(e).index,a=n.XpG(4);return n.Njj(a.onMonthSelect(o,s))})("keydown",function(o){const s=n.eBV(e).index,a=n.XpG(4);return n.Njj(a.onMonthCellKeydown(o,s))}),n.EFF(1),n.DNE(2,Yut,2,1,"div",52),n.k0s()}if(2&t){const e=r.$implicit,i=r.index,o=n.XpG(4);n.Y8G("ngClass",n.l_i(3,eut,o.isMonthSelected(i),o.isMonthDisabled(i))),n.R7$(),n.SpI(" ",e," "),n.R7$(),n.Y8G("ngIf",o.isMonthSelected(i))}}function zut(t,r){if(1&t&&(n.j41(0,"div",54),n.DNE(1,Wut,3,6,"span",55),n.k0s()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.monthPickerValues())}}function qut(t,r){if(1&t&&(n.j41(0,"div",53),n.EFF(1),n.k0s()),2&t){const e=n.XpG().$implicit;n.R7$(),n.SpI(" ",e," ")}}function Xut(t,r){if(1&t){const e=n.RV6();n.j41(0,"span",56),n.bIt("click",function(o){const s=n.eBV(e).$implicit,a=n.XpG(4);return n.Njj(a.onYearSelect(o,s))})("keydown",function(o){const s=n.eBV(e).$implicit,a=n.XpG(4);return n.Njj(a.onYearCellKeydown(o,s))}),n.EFF(1),n.DNE(2,qut,2,1,"div",52),n.k0s()}if(2&t){const e=r.$implicit,i=n.XpG(4);n.Y8G("ngClass",n.l_i(3,tut,i.isYearSelected(e),i.isYearDisabled(e))),n.R7$(),n.SpI(" ",e," "),n.R7$(),n.Y8G("ngIf",i.isYearSelected(e))}}function Kut(t,r){if(1&t&&(n.j41(0,"div",57),n.DNE(1,Xut,3,6,"span",55),n.k0s()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.yearPickerValues())}}function Qut(t,r){if(1&t&&(n.qex(0),n.j41(1,"div",24),n.DNE(2,$ut,13,16,"div",25),n.k0s(),n.DNE(3,zut,2,1,"div",26)(4,Kut,2,1,"div",27),n.bVm()),2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("ngForOf",e.months),n.R7$(),n.Y8G("ngIf","month"===e.currentView),n.R7$(),n.Y8G("ngIf","year"===e.currentView)}}function Jut(t,r){1&t&&n.nrm(0,"ChevronUpIcon")}function Zut(t,r){}function edt(t,r){1&t&&n.DNE(0,Zut,0,0,"ng-template")}function tdt(t,r){1&t&&(n.qex(0),n.EFF(1,"0"),n.bVm())}function ndt(t,r){1&t&&n.nrm(0,"ChevronDownIcon")}function idt(t,r){}function rdt(t,r){1&t&&n.DNE(0,idt,0,0,"ng-template")}function odt(t,r){1&t&&n.nrm(0,"ChevronUpIcon")}function sdt(t,r){}function adt(t,r){1&t&&n.DNE(0,sdt,0,0,"ng-template")}function ldt(t,r){1&t&&(n.qex(0),n.EFF(1,"0"),n.bVm())}function cdt(t,r){1&t&&n.nrm(0,"ChevronDownIcon")}function udt(t,r){}function ddt(t,r){1&t&&n.DNE(0,udt,0,0,"ng-template")}function pdt(t,r){if(1&t&&(n.qex(0),n.DNE(1,ddt,1,0,null,13),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngTemplateOutlet",e.decrementIconTemplate||e._decrementIconTemplate)}}function hdt(t,r){if(1&t&&(n.j41(0,"div",61)(1,"span"),n.EFF(2),n.k0s()()),2&t){const e=n.XpG(3);n.R7$(2),n.JRh(e.timeSeparator)}}function fdt(t,r){1&t&&n.nrm(0,"ChevronUpIcon")}function mdt(t,r){}function gdt(t,r){1&t&&n.DNE(0,mdt,0,0,"ng-template")}function vdt(t,r){1&t&&(n.qex(0),n.EFF(1,"0"),n.bVm())}function _dt(t,r){1&t&&n.nrm(0,"ChevronDownIcon")}function ydt(t,r){}function bdt(t,r){1&t&&n.DNE(0,ydt,0,0,"ng-template")}function Cdt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",66)(1,"p-button",60),n.bIt("keydown",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.onContainerButtonKeydown(o))})("keydown.enter",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.incrementSecond(o))})("keydown.space",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.incrementSecond(o))})("mousedown",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.onTimePickerElementMouseDown(o,2,1))})("mouseup",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.onTimePickerElementMouseUp(o))})("keyup.enter",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.onTimePickerElementMouseUp(o))})("keyup.space",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.onTimePickerElementMouseUp(o))})("mouseleave",function(){n.eBV(e);const o=n.XpG(3);return n.Njj(o.onTimePickerElementMouseLeave())}),n.DNE(2,fdt,1,0,"ChevronUpIcon",7)(3,gdt,1,0,null,13),n.k0s(),n.j41(4,"span"),n.DNE(5,vdt,2,0,"ng-container",7),n.EFF(6),n.k0s(),n.j41(7,"p-button",60),n.bIt("keydown",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.onContainerButtonKeydown(o))})("keydown.enter",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.decrementSecond(o))})("keydown.space",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.decrementSecond(o))})("mousedown",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.onTimePickerElementMouseDown(o,2,-1))})("mouseup",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.onTimePickerElementMouseUp(o))})("keyup.enter",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.onTimePickerElementMouseUp(o))})("keyup.space",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.onTimePickerElementMouseUp(o))})("mouseleave",function(){n.eBV(e);const o=n.XpG(3);return n.Njj(o.onTimePickerElementMouseLeave())}),n.DNE(8,_dt,1,0,"ChevronDownIcon",7)(9,bdt,1,0,null,13),n.k0s()()}if(2&t){const e=n.XpG(3);n.R7$(),n.BMQ("aria-label",e.getTranslation("nextSecond")),n.R7$(),n.Y8G("ngIf",!e.incrementIconTemplate&&!e._incrementIconTemplate),n.R7$(),n.Y8G("ngTemplateOutlet",e.incrementIconTemplate||e._incrementIconTemplate),n.R7$(2),n.Y8G("ngIf",e.currentSecond<10),n.R7$(),n.JRh(e.currentSecond),n.R7$(),n.BMQ("aria-label",e.getTranslation("prevSecond")),n.R7$(),n.Y8G("ngIf",!e.decrementIconTemplate&&!e._decrementIconTemplate),n.R7$(),n.Y8G("ngTemplateOutlet",e.decrementIconTemplate||e._decrementIconTemplate)}}function wdt(t,r){if(1&t&&(n.j41(0,"div",61)(1,"span"),n.EFF(2),n.k0s()()),2&t){const e=n.XpG(3);n.R7$(2),n.JRh(e.timeSeparator)}}function Tdt(t,r){1&t&&n.nrm(0,"ChevronUpIcon")}function Sdt(t,r){}function xdt(t,r){1&t&&n.DNE(0,Sdt,0,0,"ng-template")}function Edt(t,r){1&t&&n.nrm(0,"ChevronDownIcon")}function Ddt(t,r){}function kdt(t,r){1&t&&n.DNE(0,Ddt,0,0,"ng-template")}function Idt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",67)(1,"p-button",68),n.bIt("keydown",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.onContainerButtonKeydown(o))})("onClick",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.toggleAMPM(o))})("keydown.enter",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.toggleAMPM(o))}),n.DNE(2,Tdt,1,0,"ChevronUpIcon",7)(3,xdt,1,0,null,13),n.k0s(),n.j41(4,"span"),n.EFF(5),n.k0s(),n.j41(6,"p-button",69),n.bIt("keydown",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.onContainerButtonKeydown(o))})("click",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.toggleAMPM(o))})("keydown.enter",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.toggleAMPM(o))}),n.DNE(7,Edt,1,0,"ChevronDownIcon",7)(8,kdt,1,0,null,13),n.k0s()()}if(2&t){const e=n.XpG(3);n.R7$(),n.BMQ("aria-label",e.getTranslation("am")),n.R7$(),n.Y8G("ngIf",!e.incrementIconTemplate&&!e._incrementIconTemplate),n.R7$(),n.Y8G("ngTemplateOutlet",e.incrementIconTemplate||e._incrementIconTemplate),n.R7$(2),n.JRh(e.pm?"PM":"AM"),n.R7$(),n.BMQ("aria-label",e.getTranslation("pm")),n.R7$(),n.Y8G("ngIf",!e.decrementIconTemplate&&!e._decrementIconTemplate),n.R7$(),n.Y8G("ngTemplateOutlet",e.decrementIconTemplate||e._decrementIconTemplate)}}function Adt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",58)(1,"div",59)(2,"p-button",60),n.bIt("keydown",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onContainerButtonKeydown(o))})("keydown.enter",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.incrementHour(o))})("keydown.space",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.incrementHour(o))})("mousedown",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onTimePickerElementMouseDown(o,0,1))})("mouseup",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onTimePickerElementMouseUp(o))})("keyup.enter",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onTimePickerElementMouseUp(o))})("keyup.space",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onTimePickerElementMouseUp(o))})("mouseleave",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.onTimePickerElementMouseLeave())}),n.DNE(3,Jut,1,0,"ChevronUpIcon",7)(4,edt,1,0,null,13),n.k0s(),n.j41(5,"span"),n.DNE(6,tdt,2,0,"ng-container",7),n.EFF(7),n.k0s(),n.j41(8,"p-button",60),n.bIt("keydown",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onContainerButtonKeydown(o))})("keydown.enter",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.decrementHour(o))})("keydown.space",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.decrementHour(o))})("mousedown",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onTimePickerElementMouseDown(o,0,-1))})("mouseup",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onTimePickerElementMouseUp(o))})("keyup.enter",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onTimePickerElementMouseUp(o))})("keyup.space",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onTimePickerElementMouseUp(o))})("mouseleave",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.onTimePickerElementMouseLeave())}),n.DNE(9,ndt,1,0,"ChevronDownIcon",7)(10,rdt,1,0,null,13),n.k0s()(),n.j41(11,"div",61)(12,"span"),n.EFF(13),n.k0s()(),n.j41(14,"div",62)(15,"p-button",60),n.bIt("keydown",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onContainerButtonKeydown(o))})("keydown.enter",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.incrementMinute(o))})("keydown.space",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.incrementMinute(o))})("mousedown",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onTimePickerElementMouseDown(o,1,1))})("mouseup",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onTimePickerElementMouseUp(o))})("keyup.enter",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onTimePickerElementMouseUp(o))})("keyup.space",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onTimePickerElementMouseUp(o))})("mouseleave",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.onTimePickerElementMouseLeave())}),n.DNE(16,odt,1,0,"ChevronUpIcon",7)(17,adt,1,0,null,13),n.k0s(),n.j41(18,"span"),n.DNE(19,ldt,2,0,"ng-container",7),n.EFF(20),n.k0s(),n.j41(21,"p-button",60),n.bIt("keydown",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onContainerButtonKeydown(o))})("keydown.enter",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.decrementMinute(o))})("keydown.space",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.decrementMinute(o))})("mousedown",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onTimePickerElementMouseDown(o,1,-1))})("mouseup",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onTimePickerElementMouseUp(o))})("keyup.enter",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onTimePickerElementMouseUp(o))})("keyup.space",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onTimePickerElementMouseUp(o))})("mouseleave",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.onTimePickerElementMouseLeave())}),n.DNE(22,cdt,1,0,"ChevronDownIcon",7)(23,pdt,2,1,"ng-container",7),n.k0s()(),n.DNE(24,hdt,3,1,"div",63)(25,Cdt,10,8,"div",64)(26,wdt,3,1,"div",63)(27,Idt,9,7,"div",65),n.k0s()}if(2&t){const e=n.XpG(2);n.R7$(2),n.BMQ("aria-label",e.getTranslation("nextHour")),n.R7$(),n.Y8G("ngIf",!e.incrementIconTemplate&&!e._incrementIconTemplate),n.R7$(),n.Y8G("ngTemplateOutlet",e.incrementIconTemplate||e._incrementIconTemplate),n.R7$(2),n.Y8G("ngIf",e.currentHour<10),n.R7$(),n.JRh(e.currentHour),n.R7$(),n.BMQ("aria-label",e.getTranslation("prevHour")),n.R7$(),n.Y8G("ngIf",!e.decrementIconTemplate&&!e._decrementIconTemplate),n.R7$(),n.Y8G("ngTemplateOutlet",e.decrementIconTemplate||e._decrementIconTemplate),n.R7$(3),n.JRh(e.timeSeparator),n.R7$(2),n.BMQ("aria-label",e.getTranslation("nextMinute")),n.R7$(),n.Y8G("ngIf",!e.incrementIconTemplate&&!e._incrementIconTemplate),n.R7$(),n.Y8G("ngTemplateOutlet",e.incrementIconTemplate||e._incrementIconTemplate),n.R7$(2),n.Y8G("ngIf",e.currentMinute<10),n.R7$(),n.JRh(e.currentMinute),n.R7$(),n.BMQ("aria-label",e.getTranslation("prevMinute")),n.R7$(),n.Y8G("ngIf",!e.decrementIconTemplate&&!e._decrementIconTemplate),n.R7$(),n.Y8G("ngIf",e.decrementIconTemplate||e._decrementIconTemplate),n.R7$(),n.Y8G("ngIf",e.showSeconds),n.R7$(),n.Y8G("ngIf",e.showSeconds),n.R7$(),n.Y8G("ngIf","12"==e.hourFormat),n.R7$(),n.Y8G("ngIf","12"==e.hourFormat)}}function Mdt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",70)(1,"p-button",71),n.bIt("keydown",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onContainerButtonKeydown(o))})("onClick",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onTodayButtonClick(o))}),n.k0s(),n.j41(2,"p-button",72),n.bIt("keydown",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onContainerButtonKeydown(o))})("onClick",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onClearButtonClick(o))}),n.k0s()()}if(2&t){const e=n.XpG(2);n.R7$(),n.Y8G("label",e.getTranslation("today"))("ngClass",n.eq3(4,Que,e.todayButtonStyleClass)),n.R7$(),n.Y8G("label",e.getTranslation("clear"))("ngClass",n.eq3(6,Que,e.clearButtonStyleClass))}}function Rdt(t,r){1&t&&n.eu8(0)}function Odt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",21,2),n.bIt("@overlayAnimation.start",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onOverlayAnimationStart(o))})("@overlayAnimation.done",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onOverlayAnimationDone(o))})("click",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onOverlayClick(o))}),n.SdG(2),n.DNE(3,vut,1,0,"ng-container",13)(4,Qut,5,3,"ng-container",7)(5,Adt,28,21,"div",22)(6,Mdt,3,8,"div",23),n.SdG(7,1),n.DNE(8,Rdt,1,0,"ng-container",13),n.k0s()}if(2&t){const e=n.XpG();n.HbH(e.panelStyleClass),n.Y8G("ngStyle",e.panelStyle)("ngClass",e.panelClass)("@overlayAnimation",n.eq3(18,Jct,n.l_i(15,Qct,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",!0===e.inline),n.BMQ("id",e.panelId)("aria-label",e.getTranslation("chooseDate"))("role",e.inline?null:"dialog")("aria-modal",e.inline?null:"true"),n.R7$(3),n.Y8G("ngTemplateOutlet",e.headerTemplate||e._headerTemplate),n.R7$(),n.Y8G("ngIf",!e.timeOnly),n.R7$(),n.Y8G("ngIf",(e.showTime||e.timeOnly)&&"date"===e.currentView),n.R7$(),n.Y8G("ngIf",e.showButtonBar),n.R7$(2),n.Y8G("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)}}const Fdt={provide:tl,useExisting:(0,n.Rfq)(()=>Hq),multi:!0};let Hq=(()=>{class t extends jo{zone;overlayService;iconDisplay="button";style;styleClass;inputStyle;inputId;name;inputStyleClass;placeholder;ariaLabelledBy;ariaLabel;iconAriaLabel;disabled;dateFormat;multipleSeparator=",";rangeSeparator="-";inline=!1;showOtherMonths=!0;selectOtherMonths;showIcon;fluid;icon;appendTo;readonlyInput;shortYearCutoff="+10";monthNavigator;yearNavigator;hourFormat="24";timeOnly;stepHour=1;stepMinute=1;stepSecond=1;showSeconds=!1;required;showOnFocus=!0;showWeek=!1;startWeekFromFirstDayOfYear=!1;showClear=!1;dataType="date";selectionMode="single";maxDateCount;showButtonBar;todayButtonStyleClass;clearButtonStyleClass;autofocus;autoZIndex=!0;baseZIndex=0;panelStyleClass;panelStyle;keepInvalid=!1;hideOnDateTimeSelect=!0;touchUI;timeSeparator=":";focusTrap=!0;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";tabindex;variant;get minDate(){return this._minDate}set minDate(e){this._minDate=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDates(){return this._disabledDates}set disabledDates(e){this._disabledDates=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDays(){return this._disabledDays}set disabledDays(e){this._disabledDays=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get yearRange(){return this._yearRange}set yearRange(e){if(this._yearRange=e,e){const i=e.split(":"),o=parseInt(i[0]),s=parseInt(i[1]);this.populateYearOptions(o,s)}}get showTime(){return this._showTime}set showTime(e){this._showTime=e,void 0===this.currentHour&&this.initTime(this.value||new Date),this.updateInputfield()}get responsiveOptions(){return this._responsiveOptions}set responsiveOptions(e){this._responsiveOptions=e,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get numberOfMonths(){return this._numberOfMonths}set numberOfMonths(e){this._numberOfMonths=e,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get firstDayOfWeek(){return this._firstDayOfWeek}set firstDayOfWeek(e){this._firstDayOfWeek=e,this.createWeekDays()}set locale(e){console.log("Locale property has no effect, use new i18n API instead.")}get view(){return this._view}set view(e){this._view=e,this.currentView=this._view}get defaultDate(){return this._defaultDate}set defaultDate(e){if(this._defaultDate=e,this.initialized){const i=e||new Date;this.currentMonth=i.getMonth(),this.currentYear=i.getFullYear(),this.initTime(i),this.createMonths(this.currentMonth,this.currentYear)}}onFocus=new n.bkB;onBlur=new n.bkB;onClose=new n.bkB;onSelect=new n.bkB;onClear=new n.bkB;onInput=new n.bkB;onTodayClick=new n.bkB;onClearClick=new n.bkB;onMonthChange=new n.bkB;onYearChange=new n.bkB;onClickOutside=new n.bkB;onShow=new n.bkB;dateTemplate;headerTemplate;footerTemplate;disabledDateTemplate;decadeTemplate;previousIconTemplate;nextIconTemplate;triggerIconTemplate;clearIconTemplate;decrementIconTemplate;incrementIconTemplate;inputIconTemplate;containerViewChild;inputfieldViewChild;set content(e){this.contentViewChild=e,this.contentViewChild&&(this.isMonthNavigate?(Promise.resolve(null).then(()=>this.updateFocus()),this.isMonthNavigate=!1):!this.focus&&!this.inline&&this.initFocusableCell())}_dateTemplate;_headerTemplate;_footerTemplate;_disabledDateTemplate;_decadeTemplate;_previousIconTemplate;_nextIconTemplate;_triggerIconTemplate;_clearIconTemplate;_decrementIconTemplate;_incrementIconTemplate;_inputIconTemplate;_componentStyle=(0,n.WQX)(Xue);contentViewChild;value;dates;months;weekDays;currentMonth;currentYear;currentHour;currentMinute;currentSecond;pm;mask;maskClickListener;overlay;responsiveStyleElement;overlayVisible;onModelChange=()=>{};onModelTouched=()=>{};calendarElement;timePickerTimer;documentClickListener;animationEndListener;ticksTo1970;yearOptions;focus;isKeydown;filled;inputFieldValue=null;_minDate;_maxDate;_showTime;_yearRange;preventDocumentListener;dayClass(e){return this._componentStyle.classes.day({instance:this,date:e})}_disabledDates;_disabledDays;selectElement;todayElement;focusElement;scrollHandler;documentResizeListener;navigationState=null;isMonthNavigate;initialized;translationSubscription;_locale;_responsiveOptions;currentView;attributeSelector;panelId;_numberOfMonths=1;_firstDayOfWeek;_view="date";preventFocus;_defaultDate;_focusKey=null;window;get locale(){return this._locale}get iconButtonAriaLabel(){return this.iconAriaLabel?this.iconAriaLabel:this.getTranslation("chooseDate")}get prevIconAriaLabel(){return this.getTranslation("year"===this.currentView?"prevDecade":"month"===this.currentView?"prevYear":"prevMonth")}get nextIconAriaLabel(){return this.getTranslation("year"===this.currentView?"nextDecade":"month"===this.currentView?"nextYear":"nextMonth")}get rootClass(){return this._componentStyle.classes.root({instance:this})}get panelClass(){return this._componentStyle.classes.panel({instance:this})}get hasFluid(){const i=this.el.nativeElement.closest("p-fluid");return this.fluid||!!i}constructor(e,i){super(),this.zone=e,this.overlayService=i}ngOnInit(){console.log("Calendar component is deprecated as of v18, use DatePicker component instead."),super.ngOnInit(),this.attributeSelector=Bl("pn_id_"),this.panelId=this.attributeSelector+"_panel";const e=this.defaultDate||new Date;this.createResponsiveStyle(),this.currentMonth=e.getMonth(),this.currentYear=e.getFullYear(),this.yearOptions=[],this.currentView=this.view,"date"===this.view&&(this.createWeekDays(),this.initTime(e),this.createMonths(this.currentMonth,this.currentYear),this.ticksTo1970=24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.createWeekDays(),this.cd.markForCheck()}),this.initialized=!0}ngAfterViewInit(){super.ngAfterViewInit(),this.inline&&(this.contentViewChild&&this.contentViewChild.nativeElement.setAttribute(this.attributeSelector,""),!this.disabled&&!this.inline&&(this.initFocusableCell(),1===this.numberOfMonths&&this.contentViewChild&&this.contentViewChild.nativeElement&&(this.contentViewChild.nativeElement.style.width=kd(this.containerViewChild?.nativeElement)+"px")))}templates;ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"date":default:this._dateTemplate=e.template;break;case"decade":this._decadeTemplate=e.template;break;case"disabledDate":this._disabledDateTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"inputicon":this._inputIconTemplate=e.template;break;case"previousicon":this._previousIconTemplate=e.template;break;case"nexticon":this._nextIconTemplate=e.template;break;case"triggericon":this._triggerIconTemplate=e.template;break;case"clearicon":this._clearIconTemplate=e.template;break;case"decrementicon":this._decrementIconTemplate=e.template;break;case"incrementicon":this._incrementIconTemplate=e.template;break;case"footer":this._footerTemplate=e.template}})}getTranslation(e){return this.config.getTranslation(e)}populateYearOptions(e,i){this.yearOptions=[];for(let o=e;o<=i;o++)this.yearOptions.push(o)}createWeekDays(){this.weekDays=[];let e=this.getFirstDateOfWeek(),i=this.getTranslation(Xs.DAY_NAMES_MIN);for(let o=0;o<7;o++)this.weekDays.push(i[e]),e=6==e?0:++e}monthPickerValues(){let e=[];for(let i=0;i<=11;i++)e.push(this.config.getTranslation("monthNamesShort")[i]);return e}yearPickerValues(){let e=[],i=this.currentYear-this.currentYear%10;for(let o=0;o<10;o++)e.push(i+o);return e}createMonths(e,i){this.months=this.months=[];for(let o=0;o<this.numberOfMonths;o++){let s=e+o,a=i;s>11&&(s=s%11-1,a=i+1),this.months.push(this.createMonth(s,a))}}getWeekNumber(e){let i=new Date(e.getTime());if(this.startWeekFromFirstDayOfYear){let s=+this.getFirstDateOfWeek();i.setDate(i.getDate()+6+s-i.getDay())}else i.setDate(i.getDate()+4-(i.getDay()||7));let o=i.getTime();return i.setMonth(0),i.setDate(1),Math.floor(Math.round((o-i.getTime())/864e5)/7)+1}createMonth(e,i){let o=[],s=this.getFirstDayOfMonthIndex(e,i),a=this.getDaysCountInMonth(e,i),l=this.getDaysCountInPrevMonth(e,i),c=1,d=new Date,f=[],v=Math.ceil((a+s)/7);for(let w=0;w<v;w++){let x=[];if(0==w){for(let M=l-s+1;M<=l;M++){let F=this.getPreviousMonthAndYear(e,i);x.push({day:M,month:F.month,year:F.year,otherMonth:!0,today:this.isToday(d,M,F.month,F.year),selectable:this.isSelectable(M,F.month,F.year,!0)})}let I=7-x.length;for(let M=0;M<I;M++)x.push({day:c,month:e,year:i,today:this.isToday(d,c,e,i),selectable:this.isSelectable(c,e,i,!1)}),c++}else for(let I=0;I<7;I++){if(c>a){let M=this.getNextMonthAndYear(e,i);x.push({day:c-a,month:M.month,year:M.year,otherMonth:!0,today:this.isToday(d,c-a,M.month,M.year),selectable:this.isSelectable(c-a,M.month,M.year,!0)})}else x.push({day:c,month:e,year:i,today:this.isToday(d,c,e,i),selectable:this.isSelectable(c,e,i,!1)});c++}this.showWeek&&f.push(this.getWeekNumber(new Date(x[0].year,x[0].month,x[0].day))),o.push(x)}return{month:e,year:i,dates:o,weekNumbers:f}}initTime(e){this.pm=e.getHours()>11,this.showTime?(this.currentMinute=e.getMinutes(),this.currentSecond=e.getSeconds(),this.setCurrentHourPM(e.getHours())):this.timeOnly&&(this.currentMinute=0,this.currentHour=0,this.currentSecond=0)}navBackward(e){this.disabled?e.preventDefault():(this.isMonthNavigate=!0,"month"===this.currentView?(this.decrementYear(),setTimeout(()=>{this.updateFocus()},1)):"year"===this.currentView?(this.decrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(0===this.currentMonth?(this.currentMonth=11,this.decrementYear()):this.currentMonth--,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)))}navForward(e){this.disabled?e.preventDefault():(this.isMonthNavigate=!0,"month"===this.currentView?(this.incrementYear(),setTimeout(()=>{this.updateFocus()},1)):"year"===this.currentView?(this.incrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(11===this.currentMonth?(this.currentMonth=0,this.incrementYear()):this.currentMonth++,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)))}decrementYear(){this.currentYear--;let e=this.yearOptions;if(this.yearNavigator&&this.currentYear<e[0]){let i=e[e.length-1]-e[0];this.populateYearOptions(e[0]-i,e[e.length-1]-i)}}decrementDecade(){this.currentYear=this.currentYear-10}incrementDecade(){this.currentYear=this.currentYear+10}incrementYear(){this.currentYear++;let e=this.yearOptions;if(this.yearNavigator&&this.currentYear>e[e.length-1]){let i=e[e.length-1]-e[0];this.populateYearOptions(e[0]+i,e[e.length-1]+i)}}switchToMonthView(e){this.setCurrentView("month"),e.preventDefault()}switchToYearView(e){this.setCurrentView("year"),e.preventDefault()}onDateSelect(e,i){!this.disabled&&i.selectable?(this.isMultipleSelection()&&this.isSelected(i)?(this.value=this.value.filter((o,s)=>!this.isDateEquals(o,i)),0===this.value.length&&(this.value=null),this.updateModel(this.value)):this.shouldSelectDate(i)&&this.selectDate(i),(this.isSingleSelection()&&this.hideOnDateTimeSelect||this.isRangeSelection()&&this.value[1])&&setTimeout(()=>{e.preventDefault(),this.hideOverlay(),this.mask&&this.disableModality(),this.cd.markForCheck()},150),this.updateInputfield(),e.preventDefault()):e.preventDefault()}shouldSelectDate(e){return!this.isMultipleSelection()||null==this.maxDateCount||this.maxDateCount>(this.value?this.value.length:0)}onMonthSelect(e,i){"month"===this.view?this.onDateSelect(e,{year:this.currentYear,month:i,day:1,selectable:!0}):(this.currentMonth=i,this.createMonths(this.currentMonth,this.currentYear),this.setCurrentView("date"),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}))}onYearSelect(e,i){"year"===this.view?this.onDateSelect(e,{year:i,month:0,day:1,selectable:!0}):(this.currentYear=i,this.setCurrentView("month"),this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}))}updateInputfield(){let e="";if(this.value)if(this.isSingleSelection())e=this.formatDateTime(this.value);else if(this.isMultipleSelection())for(let i=0;i<this.value.length;i++)e+=this.formatDateTime(this.value[i]),i!==this.value.length-1&&(e+=this.multipleSeparator+" ");else if(this.isRangeSelection()&&this.value&&this.value.length){let o=this.value[1];e=this.formatDateTime(this.value[0]),o&&(e+=" "+this.rangeSeparator+" "+this.formatDateTime(o))}this.inputFieldValue=e,this.updateFilledState(),this.inputfieldViewChild&&this.inputfieldViewChild.nativeElement&&(this.inputfieldViewChild.nativeElement.value=this.inputFieldValue)}formatDateTime(e){let i=this.keepInvalid?e:null;const o=this.isValidDateForTimeConstraints(e);return this.isValidDate(e)?this.timeOnly?i=this.formatTime(e):(i=this.formatDate(e,this.getDateFormat()),this.showTime&&(i+=" "+this.formatTime(e))):"string"===this.dataType&&(i=e),i=o?i:"",i}formatDateMetaToDate(e){return new Date(e.year,e.month,e.day)}formatDateKey(e){return`${e.getFullYear()}-${e.getMonth()}-${e.getDate()}`}setCurrentHourPM(e){"12"==this.hourFormat?(this.pm=e>11,this.currentHour=e>=12?12==e?12:e-12:0==e?12:e):this.currentHour=e}setCurrentView(e){this.currentView=e,this.cd.detectChanges(),this.alignOverlay()}selectDate(e){let i=this.formatDateMetaToDate(e);if(this.showTime&&(i.setHours("12"==this.hourFormat?12===this.currentHour?this.pm?12:0:this.pm?this.currentHour+12:this.currentHour:this.currentHour),i.setMinutes(this.currentMinute),i.setSeconds(this.currentSecond)),this.minDate&&this.minDate>i&&(i=this.minDate,this.setCurrentHourPM(i.getHours()),this.currentMinute=i.getMinutes(),this.currentSecond=i.getSeconds()),this.maxDate&&this.maxDate<i&&(i=this.maxDate,this.setCurrentHourPM(i.getHours()),this.currentMinute=i.getMinutes(),this.currentSecond=i.getSeconds()),this.isSingleSelection())this.updateModel(i);else if(this.isMultipleSelection())this.updateModel(this.value?[...this.value,i]:[i]);else if(this.isRangeSelection())if(this.value&&this.value.length){let o=this.value[0],s=this.value[1];!s&&i.getTime()>=o.getTime()?s=i:(o=i,s=null),this.updateModel([o,s])}else this.updateModel([i,null]);this.onSelect.emit(i)}updateModel(e){if(this.value=e,"date"==this.dataType)this.onModelChange(this.value);else if("string"==this.dataType)if(this.isSingleSelection())this.onModelChange(this.formatDateTime(this.value));else{let i=null;Array.isArray(this.value)&&(i=this.value.map(o=>this.formatDateTime(o))),this.onModelChange(i)}}getFirstDayOfMonthIndex(e,i){let o=new Date;o.setDate(1),o.setMonth(e),o.setFullYear(i);let s=o.getDay()+this.getSundayIndex();return s>=7?s-7:s}getDaysCountInMonth(e,i){return 32-this.daylightSavingAdjust(new Date(i,e,32)).getDate()}getDaysCountInPrevMonth(e,i){let o=this.getPreviousMonthAndYear(e,i);return this.getDaysCountInMonth(o.month,o.year)}getPreviousMonthAndYear(e,i){let o,s;return 0===e?(o=11,s=i-1):(o=e-1,s=i),{month:o,year:s}}getNextMonthAndYear(e,i){let o,s;return 11===e?(o=0,s=i+1):(o=e+1,s=i),{month:o,year:s}}getSundayIndex(){let e=this.getFirstDateOfWeek();return e>0?7-e:0}isSelected(e){if(!this.value)return!1;if(this.isSingleSelection())return this.isDateEquals(this.value,e);if(this.isMultipleSelection()){let i=!1;for(let o of this.value)if(i=this.isDateEquals(o,e),i)break;return i}return this.isRangeSelection()?this.value[1]?this.isDateEquals(this.value[0],e)||this.isDateEquals(this.value[1],e)||this.isDateBetween(this.value[0],this.value[1],e):this.isDateEquals(this.value[0],e):void 0}isComparable(){return null!=this.value&&"string"!=typeof this.value}isMonthSelected(e){if(this.isComparable()&&!this.isMultipleSelection()){const[i,o]=this.isRangeSelection()?this.value:[this.value,this.value],s=new Date(this.currentYear,e,1);return s>=i&&s<=(o??i)}return!1}isMonthDisabled(e,i){const o=i??this.currentYear;for(let s=1;s<this.getDaysCountInMonth(e,o)+1;s++)if(this.isSelectable(s,e,o,!1))return!1;return!0}isYearDisabled(e){return Array(12).fill(0).every((i,o)=>this.isMonthDisabled(o,e))}isYearSelected(e){if(this.isComparable()){let i=this.isRangeSelection()?this.value[0]:this.value;return!this.isMultipleSelection()&&i.getFullYear()===e}return!1}isDateEquals(e,i){return!(!e||!H_(e))&&e.getDate()===i.day&&e.getMonth()===i.month&&e.getFullYear()===i.year}isDateBetween(e,i,o){if(H_(e)&&H_(i)){let a=this.formatDateMetaToDate(o);return e.getTime()<=a.getTime()&&i.getTime()>=a.getTime()}return!1}isSingleSelection(){return"single"===this.selectionMode}isRangeSelection(){return"range"===this.selectionMode}isMultipleSelection(){return"multiple"===this.selectionMode}isToday(e,i,o,s){return e.getDate()===i&&e.getMonth()===o&&e.getFullYear()===s}isSelectable(e,i,o,s){let a=!0,l=!0,c=!0,d=!0;return!(s&&!this.selectOtherMonths)&&(this.minDate&&(this.minDate.getFullYear()>o||this.minDate.getFullYear()===o&&"year"!=this.currentView&&(this.minDate.getMonth()>i||this.minDate.getMonth()===i&&this.minDate.getDate()>e))&&(a=!1),this.maxDate&&(this.maxDate.getFullYear()<o||this.maxDate.getFullYear()===o&&(this.maxDate.getMonth()<i||this.maxDate.getMonth()===i&&this.maxDate.getDate()<e))&&(l=!1),this.disabledDates&&(c=!this.isDateDisabled(e,i,o)),this.disabledDays&&(d=!this.isDayDisabled(e,i,o)),a&&l&&c&&d)}isDateDisabled(e,i,o){if(this.disabledDates)for(let s of this.disabledDates)if(s.getFullYear()===o&&s.getMonth()===i&&s.getDate()===e)return!0;return!1}isDayDisabled(e,i,o){if(this.disabledDays){let a=new Date(o,i,e).getDay();return-1!==this.disabledDays.indexOf(a)}return!1}onInputFocus(e){this.focus=!0,this.showOnFocus&&this.showOverlay(),this.onFocus.emit(e)}onInputClick(){this.showOnFocus&&!this.overlayVisible&&this.showOverlay()}onInputBlur(e){this.focus=!1,this.onBlur.emit(e),this.keepInvalid||this.updateInputfield(),this.onModelTouched()}onButtonClick(e,i=this.inputfieldViewChild?.nativeElement){this.overlayVisible?this.hideOverlay():(i.focus(),this.showOverlay())}clear(){this.inputFieldValue=null,this.value=null,this.onModelChange(this.value),this.onClear.emit()}onOverlayClick(e){this.overlayService.add({originalEvent:e,target:this.el.nativeElement})}getMonthName(e){return this.config.getTranslation("monthNames")[e]}getYear(e){return"month"===this.currentView?this.currentYear:e.year}switchViewButtonDisabled(){return this.numberOfMonths>1||this.disabled}onPrevButtonClick(e){this.navigationState={backward:!0,button:!0},this.navBackward(e)}onNextButtonClick(e){this.navigationState={backward:!1,button:!0},this.navForward(e)}onContainerButtonKeydown(e){switch(e.which){case 9:if(this.inline||this.trapFocus(e),this.inline){const i=xo(this.containerViewChild?.nativeElement,".p-datepicker-header");if(this.timeOnly)return;e.target==i.children[i?.children?.length-1]&&this.initFocusableCell()}break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault()}}onInputKeydown(e){this.isKeydown=!0,40===e.keyCode&&this.contentViewChild?this.trapFocus(e):27===e.keyCode?this.overlayVisible&&(this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault()):13===e.keyCode?this.overlayVisible&&(this.overlayVisible=!1,e.preventDefault()):9===e.keyCode&&this.contentViewChild&&(Mm(this.contentViewChild.nativeElement).forEach(i=>i.tabIndex="-1"),this.overlayVisible&&(this.overlayVisible=!1))}onDateCellKeydown(e,i,o){const s=e.currentTarget,a=s.parentElement,l=this.formatDateMetaToDate(i);switch(e.which){case 40:{s.tabIndex="-1";let I=Gw(a),M=a.parentElement.nextElementSibling;M?Wa(M.children[I].children[0],"p-disabled")?(this.navigationState={backward:!1},this.navForward(e)):(M.children[I].children[0].tabIndex="0",M.children[I].children[0].focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 38:{s.tabIndex="-1";let I=Gw(a),M=a.parentElement.previousElementSibling;if(M){let F=M.children[I].children[0];Wa(F,"p-disabled")?(this.navigationState={backward:!0},this.navBackward(e)):(F.tabIndex="0",F.focus())}else this.navigationState={backward:!0},this.navBackward(e);e.preventDefault();break}case 37:{s.tabIndex="-1";let I=a.previousElementSibling;if(I){let M=I.children[0];Wa(M,"p-disabled")||Wa(M.parentElement,"p-datepicker-weeknumber")?this.navigateToMonth(!0,o):(M.tabIndex="0",M.focus())}else this.navigateToMonth(!0,o);e.preventDefault();break}case 39:{s.tabIndex="-1";let I=a.nextElementSibling;if(I){let M=I.children[0];Wa(M,"p-disabled")?this.navigateToMonth(!1,o):(M.tabIndex="0",M.focus())}else this.navigateToMonth(!1,o);e.preventDefault();break}case 13:case 32:this.onDateSelect(e,i),e.preventDefault();break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault();break;case 9:this.inline||this.trapFocus(e);break;case 33:{s.tabIndex="-1";const I=new Date(l.getFullYear(),l.getMonth()-1,l.getDate()),M=this.formatDateKey(I);this.navigateToMonth(!0,o,`span[data-date='${M}']:not(.p-disabled):not(.p-ink)`),e.preventDefault();break}case 34:{s.tabIndex="-1";const I=new Date(l.getFullYear(),l.getMonth()+1,l.getDate()),M=this.formatDateKey(I);this.navigateToMonth(!1,o,`span[data-date='${M}']:not(.p-disabled):not(.p-ink)`),e.preventDefault();break}case 36:s.tabIndex="-1";const c=new Date(l.getFullYear(),l.getMonth(),1),d=this.formatDateKey(c),f=xo(s.offsetParent,`span[data-date='${d}']:not(.p-disabled):not(.p-ink)`);f&&(f.tabIndex="0",f.focus()),e.preventDefault();break;case 35:s.tabIndex="-1";const v=new Date(l.getFullYear(),l.getMonth()+1,0),w=this.formatDateKey(v),x=xo(s.offsetParent,`span[data-date='${w}']:not(.p-disabled):not(.p-ink)`);v&&(x.tabIndex="0",x.focus()),e.preventDefault()}}onMonthCellKeydown(e,i){const o=e.currentTarget;switch(e.which){case 38:case 40:{o.tabIndex="-1";var s=o.parentElement.children,a=Gw(o);let l=s[40===e.which?a+3:a-3];l&&(l.tabIndex="0",l.focus()),e.preventDefault();break}case 37:{o.tabIndex="-1";let l=o.previousElementSibling;l?(l.tabIndex="0",l.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case 39:{o.tabIndex="-1";let l=o.nextElementSibling;l?(l.tabIndex="0",l.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 13:case 32:this.onMonthSelect(e,i),e.preventDefault();break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault();break;case 9:this.inline||this.trapFocus(e)}}onYearCellKeydown(e,i){const o=e.currentTarget;switch(e.which){case 38:case 40:{o.tabIndex="-1";var s=o.parentElement.children,a=Gw(o);let l=s[40===e.which?a+2:a-2];l&&(l.tabIndex="0",l.focus()),e.preventDefault();break}case 37:{o.tabIndex="-1";let l=o.previousElementSibling;l?(l.tabIndex="0",l.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case 39:{o.tabIndex="-1";let l=o.nextElementSibling;l?(l.tabIndex="0",l.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 13:case 32:this.onYearSelect(e,i),e.preventDefault();break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault();break;case 9:this.trapFocus(e)}}navigateToMonth(e,i,o){if(e)if(1===this.numberOfMonths||0===i)this.navigationState={backward:!0},this._focusKey=o,this.navBackward(event);else{let s=this.contentViewChild.nativeElement.children[i-1];if(o){const a=xo(s,o);a.tabIndex="0",a.focus()}else{let a=$c(s,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),l=a[a.length-1];l.tabIndex="0",l.focus()}}else if(1===this.numberOfMonths||i===this.numberOfMonths-1)this.navigationState={backward:!1},this._focusKey=o,this.navForward(event);else{let s=this.contentViewChild.nativeElement.children[i+1];if(o){const a=xo(s,o);a.tabIndex="0",a.focus()}else{let a=xo(s,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");a.tabIndex="0",a.focus()}}}updateFocus(){let e;if(this.navigationState){if(this.navigationState.button)this.initFocusableCell(),this.navigationState.backward?xo(this.contentViewChild.nativeElement,".p-datepicker-prev").focus():xo(this.contentViewChild.nativeElement,".p-datepicker-next").focus();else{if(this.navigationState.backward){let i;i=$c(this.contentViewChild.nativeElement,"month"===this.currentView?".p-monthpicker .p-monthpicker-month:not(.p-disabled)":"year"===this.currentView?".p-yearpicker .p-yearpicker-year:not(.p-disabled)":this._focusKey||".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),i&&i.length>0&&(e=i[i.length-1])}else e=xo(this.contentViewChild.nativeElement,"month"===this.currentView?".p-monthpicker .p-monthpicker-month:not(.p-disabled)":"year"===this.currentView?".p-yearpicker .p-yearpicker-year:not(.p-disabled)":this._focusKey||".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");e&&(e.tabIndex="0",e.focus())}this.navigationState=null,this._focusKey=null}else this.initFocusableCell()}initFocusableCell(){const e=this.contentViewChild?.nativeElement;let i;if("month"===this.currentView){let o=$c(e,".p-monthpicker .p-monthpicker-month:not(.p-disabled)"),s=xo(e,".p-monthpicker .p-monthpicker-month.p-highlight");o.forEach(a=>a.tabIndex=-1),i=s||o[0],0===o.length&&$c(e,'.p-monthpicker .p-monthpicker-month.p-disabled[tabindex = "0"]').forEach(l=>l.tabIndex=-1)}else if("year"===this.currentView){let o=$c(e,".p-yearpicker .p-yearpicker-year:not(.p-disabled)"),s=xo(e,".p-yearpicker .p-yearpicker-year.p-highlight");o.forEach(a=>a.tabIndex=-1),i=s||o[0],0===o.length&&$c(e,'.p-yearpicker .p-yearpicker-year.p-disabled[tabindex = "0"]').forEach(l=>l.tabIndex=-1)}else if(i=xo(e,"span.p-highlight"),!i){let o=xo(e,"td.p-datepicker-today span:not(.p-disabled):not(.p-ink)");i=o||xo(e,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)")}i&&(i.tabIndex="0",!this.preventFocus&&(!this.navigationState||!this.navigationState.button)&&setTimeout(()=>{this.disabled||i.focus()},1),this.preventFocus=!1)}trapFocus(e){let i=Mm(this.contentViewChild.nativeElement);if(i&&i.length>0)if(i[0].ownerDocument.activeElement){let o=i.indexOf(i[0].ownerDocument.activeElement);if(e.shiftKey)if(-1==o||0===o)if(this.focusTrap)i[i.length-1].focus();else{if(-1===o)return this.hideOverlay();if(0===o)return}else i[o-1].focus();else if(-1==o)if(this.timeOnly)i[0].focus();else{let s=0;for(let a=0;a<i.length;a++)"SPAN"===i[a].tagName&&(s=a);i[s].focus()}else if(o===i.length-1){if(!this.focusTrap&&-1!=o)return this.hideOverlay();i[0].focus()}else i[o+1].focus()}else i[0].focus();e.preventDefault()}onMonthDropdownChange(e){this.currentMonth=parseInt(e),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)}onYearDropdownChange(e){this.currentYear=parseInt(e),this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)}convertTo24Hour(e,i){return"12"==this.hourFormat?12===e?i?12:0:i?e+12:e:e}constrainTime(e,i,o,s){let l,a=[e,i,o],c=this.value;const d=this.convertTo24Hour(e,s),f=this.isRangeSelection(),v=this.isMultipleSelection();(f||v)&&(this.value||(this.value=[new Date,new Date]),f&&(c=this.value[1]||this.value[0]),v&&(c=this.value[this.value.length-1]));const x=c?c.toDateString():null;let I=this.minDate&&x&&this.minDate.toDateString()===x,M=this.maxDate&&x&&this.maxDate.toDateString()===x;switch(I&&(l=this.minDate.getHours()>=12),!0){case I&&l&&12===this.minDate.getHours()&&this.minDate.getHours()>d:a[0]=11;case I&&this.minDate.getHours()===d&&this.minDate.getMinutes()>i:a[1]=this.minDate.getMinutes();case I&&this.minDate.getHours()===d&&this.minDate.getMinutes()===i&&this.minDate.getSeconds()>o:a[2]=this.minDate.getSeconds();break;case I&&!l&&this.minDate.getHours()-1===d&&this.minDate.getHours()>d:a[0]=11,this.pm=!0;case I&&this.minDate.getHours()===d&&this.minDate.getMinutes()>i:a[1]=this.minDate.getMinutes();case I&&this.minDate.getHours()===d&&this.minDate.getMinutes()===i&&this.minDate.getSeconds()>o:a[2]=this.minDate.getSeconds();break;case I&&l&&this.minDate.getHours()>d&&12!==d:this.setCurrentHourPM(this.minDate.getHours()),a[0]=this.currentHour;case I&&this.minDate.getHours()===d&&this.minDate.getMinutes()>i:a[1]=this.minDate.getMinutes();case I&&this.minDate.getHours()===d&&this.minDate.getMinutes()===i&&this.minDate.getSeconds()>o:a[2]=this.minDate.getSeconds();break;case I&&this.minDate.getHours()>d:a[0]=this.minDate.getHours();case I&&this.minDate.getHours()===d&&this.minDate.getMinutes()>i:a[1]=this.minDate.getMinutes();case I&&this.minDate.getHours()===d&&this.minDate.getMinutes()===i&&this.minDate.getSeconds()>o:a[2]=this.minDate.getSeconds();break;case M&&this.maxDate.getHours()<d:a[0]=this.maxDate.getHours();case M&&this.maxDate.getHours()===d&&this.maxDate.getMinutes()<i:a[1]=this.maxDate.getMinutes();case M&&this.maxDate.getHours()===d&&this.maxDate.getMinutes()===i&&this.maxDate.getSeconds()<o:a[2]=this.maxDate.getSeconds()}return a}incrementHour(e){let o=(this.currentHour??0)+this.stepHour,s=this.pm;"24"==this.hourFormat?o=o>=24?o-24:o:"12"==this.hourFormat&&((this.currentHour??0)<12&&o>11&&(s=!this.pm),o=o>=13?o-12:o),this.toggleAMPMIfNotMinDate(s),[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(o,this.currentMinute,this.currentSecond,s),e.preventDefault()}toggleAMPMIfNotMinDate(e){let i=this.value;const o=i?i.toDateString():null;this.pm=!!(this.minDate&&o&&this.minDate.toDateString()===o&&this.minDate.getHours()>=12)||e}onTimePickerElementMouseDown(e,i,o){this.disabled||(this.repeat(e,null,i,o),e.preventDefault())}onTimePickerElementMouseUp(e){this.disabled||(this.clearTimePickerTimer(),this.updateTime())}onTimePickerElementMouseLeave(){!this.disabled&&this.timePickerTimer&&(this.clearTimePickerTimer(),this.updateTime())}repeat(e,i,o,s){let a=i||500;switch(this.clearTimePickerTimer(),this.timePickerTimer=setTimeout(()=>{this.repeat(e,100,o,s),this.cd.markForCheck()},a),o){case 0:1===s?this.incrementHour(e):this.decrementHour(e);break;case 1:1===s?this.incrementMinute(e):this.decrementMinute(e);break;case 2:1===s?this.incrementSecond(e):this.decrementSecond(e)}this.updateInputfield()}clearTimePickerTimer(){this.timePickerTimer&&(clearTimeout(this.timePickerTimer),this.timePickerTimer=null)}decrementHour(e){let i=(this.currentHour??0)-this.stepHour,o=this.pm;"24"==this.hourFormat?i=i<0?24+i:i:"12"==this.hourFormat&&(12===this.currentHour&&(o=!this.pm),i=i<=0?12+i:i),this.toggleAMPMIfNotMinDate(o),[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(i,this.currentMinute,this.currentSecond,o),e.preventDefault()}incrementMinute(e){let i=(this.currentMinute??0)+this.stepMinute;i=i>59?i-60:i,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour,i,this.currentSecond,this.pm),e.preventDefault()}decrementMinute(e){let i=(this.currentMinute??0)-this.stepMinute;i=i<0?60+i:i,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour,i,this.currentSecond,this.pm),e.preventDefault()}incrementSecond(e){let i=this.currentSecond+this.stepSecond;i=i>59?i-60:i,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour,this.currentMinute,i,this.pm),e.preventDefault()}decrementSecond(e){let i=this.currentSecond-this.stepSecond;i=i<0?60+i:i,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour,this.currentMinute,i,this.pm),e.preventDefault()}updateTime(){let e=this.value;this.isRangeSelection()&&(e=this.value[1]||this.value[0]),this.isMultipleSelection()&&(e=this.value[this.value.length-1]),e=e?new Date(e.getTime()):new Date,e.setHours("12"==this.hourFormat?12===this.currentHour?this.pm?12:0:this.pm?this.currentHour+12:this.currentHour:this.currentHour),e.setMinutes(this.currentMinute),e.setSeconds(this.currentSecond),this.isRangeSelection()&&(e=this.value[1]?[this.value[0],e]:[e,null]),this.isMultipleSelection()&&(e=[...this.value.slice(0,-1),e]),this.updateModel(e),this.onSelect.emit(e),this.updateInputfield()}toggleAMPM(e){const i=!this.pm;this.pm=i,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour,this.currentMinute,this.currentSecond,i),this.updateTime(),e.preventDefault()}onUserInput(e){if(!this.isKeydown)return;this.isKeydown=!1;let i=e.target.value;try{let o=this.parseValueFromString(i);this.isValidSelection(o)?(this.updateModel(o),this.updateUI()):this.keepInvalid&&this.updateModel(o)}catch{this.updateModel(this.keepInvalid?i:null)}this.filled=null!=i&&i.length,this.onInput.emit(e)}isValidSelection(e){if(this.isSingleSelection())return this.isSelectable(e.getDate(),e.getMonth(),e.getFullYear(),!1);let i=e.every(o=>this.isSelectable(o.getDate(),o.getMonth(),o.getFullYear(),!1));return i&&this.isRangeSelection()&&(i=1===e.length||e.length>1&&e[1]>=e[0]),i}parseValueFromString(e){if(!e||0===e.trim().length)return null;let i;if(this.isSingleSelection())i=this.parseDateTime(e);else if(this.isMultipleSelection()){let o=e.split(this.multipleSeparator);i=[];for(let s of o)i.push(this.parseDateTime(s.trim()))}else if(this.isRangeSelection()){let o=e.split(" "+this.rangeSeparator+" ");i=[];for(let s=0;s<o.length;s++)i[s]=this.parseDateTime(o[s].trim())}return i}parseDateTime(e){let i,o=e.split(" ");if(this.timeOnly)i=new Date,this.populateTime(i,o[0],o[1]);else{const s=this.getDateFormat();if(this.showTime){let a="12"==this.hourFormat?o.pop():null,l=o.pop();i=this.parseDate(o.join(" "),s),this.populateTime(i,l,a)}else i=this.parseDate(e,s)}return i}populateTime(e,i,o){if("12"==this.hourFormat&&!o)throw"Invalid Time";this.pm="PM"===o||"pm"===o;let s=this.parseTime(i);e.setHours(s.hour),e.setMinutes(s.minute),e.setSeconds(s.second)}isValidDate(e){return H_(e)&&qs(e)}updateUI(){let e=this.value;Array.isArray(e)&&(e=2===e.length?e[1]:e[0]);let i=this.defaultDate&&this.isValidDate(this.defaultDate)&&!this.value?this.defaultDate:e&&this.isValidDate(e)?e:new Date;this.currentMonth=i.getMonth(),this.currentYear=i.getFullYear(),this.createMonths(this.currentMonth,this.currentYear),(this.showTime||this.timeOnly)&&(this.setCurrentHourPM(i.getHours()),this.currentMinute=i.getMinutes(),this.currentSecond=i.getSeconds())}showOverlay(){this.overlayVisible||(this.updateUI(),this.touchUI||(this.preventFocus=!0),this.overlayVisible=!0)}hideOverlay(){this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,this.clearTimePickerTimer(),this.touchUI&&this.disableModality(),this.cd.markForCheck()}toggle(){this.inline||(this.overlayVisible?this.hideOverlay():(this.showOverlay(),this.inputfieldViewChild?.nativeElement.focus()))}onOverlayAnimationStart(e){switch(e.toState){case"visible":case"visibleTouchUI":this.inline||(this.overlay=e.element,this.overlay?.setAttribute(this.attributeSelector,""),W5(this.overlay,this.inline?void 0:{position:"absolute",top:"0",left:"0"}),this.appendOverlay(),this.updateFocus(),this.autoZIndex&&(this.touchUI?Yc.set("modal",this.overlay,this.baseZIndex||this.config.zIndex.modal):Yc.set("overlay",this.overlay,this.baseZIndex||this.config.zIndex.overlay)),this.alignOverlay(),this.onShow.emit(e));break;case"void":this.onOverlayHide(),this.onClose.emit(e)}}onOverlayAnimationDone(e){switch(e.toState){case"visible":case"visibleTouchUI":this.inline||(this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener());break;case"void":this.autoZIndex&&Yc.clear(e.element)}}appendOverlay(){this.appendTo&&("body"===this.appendTo?this.document.body.appendChild(this.overlay):yx(this.appendTo,this.overlay))}restoreOverlayAppend(){this.overlay&&this.appendTo&&this.el.nativeElement.appendChild(this.overlay)}alignOverlay(){this.touchUI?this.enableModality(this.overlay):this.overlay&&(this.appendTo?("date"===this.view?(this.overlay.style.width=kd(this.overlay)+"px",this.overlay.style.minWidth=kd(this.inputfieldViewChild?.nativeElement)+"px"):this.overlay.style.width=kd(this.inputfieldViewChild?.nativeElement)+"px",ZD(this.overlay,this.inputfieldViewChild?.nativeElement)):z5(this.overlay,this.inputfieldViewChild?.nativeElement))}enableModality(e){!this.mask&&this.touchUI&&(this.mask=this.renderer.createElement("div"),this.renderer.setStyle(this.mask,"zIndex",String(parseInt(e.style.zIndex)-1)),Nc(this.mask,"p-overlay-mask p-datepicker-mask p-datepicker-mask-scrollblocker p-overlay-mask p-overlay-mask-enter"),this.maskClickListener=this.renderer.listen(this.mask,"click",o=>{this.disableModality(),this.overlayVisible=!1}),this.renderer.appendChild(this.document.body,this.mask),tO())}disableModality(){this.mask&&(Nc(this.mask,"p-overlay-mask-leave"),this.animationEndListener||(this.animationEndListener=this.renderer.listen(this.mask,"animationend",this.destroyMask.bind(this))))}destroyMask(){if(!this.mask)return;this.renderer.removeChild(this.document.body,this.mask);let i,e=this.document.body.children;for(let o=0;o<e.length;o++)if(Wa(e[o],"p-datepicker-mask-scrollblocker")){i=!0;break}i||Lw(),this.unbindAnimationEndListener(),this.unbindMaskClickListener(),this.mask=null}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}unbindAnimationEndListener(){this.animationEndListener&&this.mask&&(this.animationEndListener(),this.animationEndListener=null)}writeValue(e){if(this.value=e,this.value&&"string"==typeof this.value)try{this.value=this.parseValueFromString(this.value)}catch{this.keepInvalid&&(this.value=e)}this.updateInputfield(),this.updateUI(),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}getDateFormat(){return this.dateFormat||this.getTranslation("dateFormat")}getFirstDateOfWeek(){return this._firstDayOfWeek||this.getTranslation(Xs.FIRST_DAY_OF_WEEK)}formatDate(e,i){if(!e)return"";let o;const s=f=>{const v=o+1<i.length&&i.charAt(o+1)===f;return v&&o++,v},a=(f,v,w)=>{let x=""+v;if(s(f))for(;x.length<w;)x="0"+x;return x},l=(f,v,w,x)=>s(f)?x[v]:w[v];let c="",d=!1;if(e)for(o=0;o<i.length;o++)if(d)"'"!==i.charAt(o)||s("'")?c+=i.charAt(o):d=!1;else switch(i.charAt(o)){case"d":c+=a("d",e.getDate(),2);break;case"D":c+=l("D",e.getDay(),this.getTranslation(Xs.DAY_NAMES_SHORT),this.getTranslation(Xs.DAY_NAMES));break;case"o":c+=a("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":c+=a("m",e.getMonth()+1,2);break;case"M":c+=l("M",e.getMonth(),this.getTranslation(Xs.MONTH_NAMES_SHORT),this.getTranslation(Xs.MONTH_NAMES));break;case"y":c+=s("y")?e.getFullYear():(e.getFullYear()%100<10?"0":"")+e.getFullYear()%100;break;case"@":c+=e.getTime();break;case"!":c+=1e4*e.getTime()+this.ticksTo1970;break;case"'":s("'")?c+="'":d=!0;break;default:c+=i.charAt(o)}return c}formatTime(e){if(!e)return"";let i="",o=e.getHours(),s=e.getMinutes(),a=e.getSeconds();return"12"==this.hourFormat&&o>11&&12!=o&&(o-=12),i+="12"==this.hourFormat&&0===o?12:o<10?"0"+o:o,i+=":",i+=s<10?"0"+s:s,this.showSeconds&&(i+=":",i+=a<10?"0"+a:a),"12"==this.hourFormat&&(i+=e.getHours()>11?" PM":" AM"),i}parseTime(e){let i=e.split(":");if(i.length!==(this.showSeconds?3:2))throw"Invalid time";let s=parseInt(i[0]),a=parseInt(i[1]),l=this.showSeconds?parseInt(i[2]):null;if(isNaN(s)||isNaN(a)||s>23||a>59||"12"==this.hourFormat&&s>12||this.showSeconds&&(isNaN(l)||l>59))throw"Invalid time";return"12"==this.hourFormat&&(12!==s&&this.pm?s+=12:!this.pm&&12===s&&(s-=12)),{hour:s,minute:a,second:l}}parseDate(e,i){if(null==i||null==e)throw"Invalid arguments";if(""===(e="object"==typeof e?e.toString():e+""))return null;let o,s,a,I,l=0,c="string"!=typeof this.shortYearCutoff?this.shortYearCutoff:(new Date).getFullYear()%100+parseInt(this.shortYearCutoff,10),d=-1,f=-1,v=-1,w=-1,x=!1,M=we=>{let je=o+1<i.length&&i.charAt(o+1)===we;return je&&o++,je},F=we=>{let je=M(we),tt="@"===we?14:"!"===we?20:"y"===we&&je?4:"o"===we?3:2,rt=new RegExp("^\\d{"+("y"===we?tt:1)+","+tt+"}"),lt=e.substring(l).match(rt);if(!lt)throw"Missing number at position "+l;return l+=lt[0].length,parseInt(lt[0],10)},re=(we,je,tt)=>{let nt=-1,rt=M(we)?tt:je,lt=[];for(let bt=0;bt<rt.length;bt++)lt.push([bt,rt[bt]]);lt.sort((bt,Wt)=>-(bt[1].length-Wt[1].length));for(let bt=0;bt<lt.length;bt++){let Wt=lt[bt][1];if(e.substr(l,Wt.length).toLowerCase()===Wt.toLowerCase()){nt=lt[bt][0],l+=Wt.length;break}}if(-1!==nt)return nt+1;throw"Unknown name at position "+l},pe=()=>{if(e.charAt(l)!==i.charAt(o))throw"Unexpected literal at position "+l;l++};for("month"===this.view&&(v=1),o=0;o<i.length;o++)if(x)"'"!==i.charAt(o)||M("'")?pe():x=!1;else switch(i.charAt(o)){case"d":v=F("d");break;case"D":re("D",this.getTranslation(Xs.DAY_NAMES_SHORT),this.getTranslation(Xs.DAY_NAMES));break;case"o":w=F("o");break;case"m":f=F("m");break;case"M":f=re("M",this.getTranslation(Xs.MONTH_NAMES_SHORT),this.getTranslation(Xs.MONTH_NAMES));break;case"y":d=F("y");break;case"@":I=new Date(F("@")),d=I.getFullYear(),f=I.getMonth()+1,v=I.getDate();break;case"!":I=new Date((F("!")-this.ticksTo1970)/1e4),d=I.getFullYear(),f=I.getMonth()+1,v=I.getDate();break;case"'":M("'")?pe():x=!0;break;default:pe()}if(l<e.length&&(a=e.substr(l),!/^\s+/.test(a)))throw"Extra/unparsed characters found in date: "+a;if(-1===d?d=(new Date).getFullYear():d<100&&(d+=(new Date).getFullYear()-(new Date).getFullYear()%100+(d<=c?0:-100)),w>-1)for(f=1,v=w;s=this.getDaysCountInMonth(d,f-1),!(v<=s);)f++,v-=s;if("year"===this.view&&(f=-1===f?1:f,v=-1===v?1:v),I=this.daylightSavingAdjust(new Date(d,f-1,v)),I.getFullYear()!==d||I.getMonth()+1!==f||I.getDate()!==v)throw"Invalid date";return I}daylightSavingAdjust(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null}updateFilledState(){this.filled=this.inputFieldValue&&""!=this.inputFieldValue}isValidDateForTimeConstraints(e){return!!this.keepInvalid||(!this.minDate||e>=this.minDate)&&(!this.maxDate||e<=this.maxDate)}onTodayButtonClick(e){const i=new Date,o={day:i.getDate(),month:i.getMonth(),year:i.getFullYear(),otherMonth:i.getMonth()!==this.currentMonth||i.getFullYear()!==this.currentYear,today:!0,selectable:!0};this.createMonths(i.getMonth(),i.getFullYear()),this.onDateSelect(e,o),this.onTodayClick.emit(i)}onClearButtonClick(e){this.updateModel(null),this.updateInputfield(),this.hideOverlay(),this.onClearClick.emit(e)}createResponsiveStyle(){if(this.numberOfMonths>1&&this.responsiveOptions){this.responsiveStyleElement||(this.responsiveStyleElement=this.renderer.createElement("style"),this.responsiveStyleElement.type="text/css",this.renderer.appendChild(this.document.body,this.responsiveStyleElement));let e="";if(this.responsiveOptions){let i=[...this.responsiveOptions].filter(o=>!(!o.breakpoint||!o.numMonths)).sort((o,s)=>-1*o.breakpoint.localeCompare(s.breakpoint,void 0,{numeric:!0}));for(let o=0;o<i.length;o++){let{breakpoint:s,numMonths:a}=i[o],l=`\n                        .p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${a}) .p-datepicker-next {\n                            display: inline-flex !important;\n                        }\n                    `;for(let c=a;c<this.numberOfMonths;c++)l+=`\n                            .p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${c+1}) {\n                                display: none !important;\n                            }\n                        `;e+=`\n                        @media screen and (max-width: ${s}) {\n                            ${l}\n                        }\n                    `}}this.responsiveStyleElement.innerHTML=e,ek(this.responsiveStyleElement,"nonce",this.config?.csp()?.nonce)}}destroyResponsiveStyleElement(){this.responsiveStyleElement&&(this.responsiveStyleElement.remove(),this.responsiveStyleElement=null)}bindDocumentClickListener(){this.documentClickListener||this.zone.runOutsideAngular(()=>{this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:this.document,"mousedown",i=>{this.isOutsideClicked(i)&&this.overlayVisible&&this.zone.run(()=>{this.hideOverlay(),this.onClickOutside.emit(i),this.cd.markForCheck()})})})}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){!this.documentResizeListener&&!this.touchUI&&(this.documentResizeListener=this.renderer.listen(this.window,"resize",this.onWindowResize.bind(this)))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new jw(this.containerViewChild?.nativeElement,()=>{this.overlayVisible&&this.hideOverlay()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}isOutsideClicked(e){return!(this.el.nativeElement.isSameNode(e.target)||this.isNavIconClicked(e)||this.el.nativeElement.contains(e.target)||this.overlay&&this.overlay.contains(e.target))}isNavIconClicked(e){return Wa(e.target,"p-datepicker-prev")||Wa(e.target,"p-datepicker-prev-icon")||Wa(e.target,"p-datepicker-next")||Wa(e.target,"p-datepicker-next-icon")}onWindowResize(){this.overlayVisible&&!by()&&this.hideOverlay()}onOverlayHide(){this.currentView=this.view,this.mask&&this.destroyMask(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.translationSubscription&&this.translationSubscription.unsubscribe(),this.overlay&&this.autoZIndex&&Yc.clear(this.overlay),this.destroyResponsiveStyleElement(),this.clearTimePickerTimer(),this.restoreOverlayAppend(),this.onOverlayHide(),super.ngOnDestroy()}static \u0275fac=function(i){return new(i||t)(n.rXU(n.SKi),n.rXU(Cy))};static \u0275cmp=n.VBU({type:t,selectors:[["p-calendar"]],contentQueries:function(i,o,s){if(1&i&&(n.wni(s,Rct,4),n.wni(s,Oct,4),n.wni(s,Fct,4),n.wni(s,Pct,4),n.wni(s,Lct,4),n.wni(s,Nct,4),n.wni(s,Gct,4),n.wni(s,Bct,4),n.wni(s,Vct,4),n.wni(s,jct,4),n.wni(s,Hct,4),n.wni(s,Uct,4),n.wni(s,hs,4)),2&i){let a;n.mGM(a=n.lsd())&&(o.dateTemplate=a.first),n.mGM(a=n.lsd())&&(o.headerTemplate=a.first),n.mGM(a=n.lsd())&&(o.footerTemplate=a.first),n.mGM(a=n.lsd())&&(o.disabledDateTemplate=a.first),n.mGM(a=n.lsd())&&(o.decadeTemplate=a.first),n.mGM(a=n.lsd())&&(o.previousIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.nextIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.triggerIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.clearIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.decrementIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.incrementIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.inputIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.templates=a)}},viewQuery:function(i,o){if(1&i&&(n.GBs($ct,5),n.GBs(Yct,5),n.GBs(Wct,5)),2&i){let s;n.mGM(s=n.lsd())&&(o.containerViewChild=s.first),n.mGM(s=n.lsd())&&(o.inputfieldViewChild=s.first),n.mGM(s=n.lsd())&&(o.content=s.first)}},inputs:{iconDisplay:"iconDisplay",style:"style",styleClass:"styleClass",inputStyle:"inputStyle",inputId:"inputId",name:"name",inputStyleClass:"inputStyleClass",placeholder:"placeholder",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",iconAriaLabel:"iconAriaLabel",disabled:[2,"disabled","disabled",n.L39],dateFormat:"dateFormat",multipleSeparator:"multipleSeparator",rangeSeparator:"rangeSeparator",inline:[2,"inline","inline",n.L39],showOtherMonths:[2,"showOtherMonths","showOtherMonths",n.L39],selectOtherMonths:[2,"selectOtherMonths","selectOtherMonths",n.L39],showIcon:[2,"showIcon","showIcon",n.L39],fluid:[2,"fluid","fluid",n.L39],icon:"icon",appendTo:"appendTo",readonlyInput:[2,"readonlyInput","readonlyInput",n.L39],shortYearCutoff:"shortYearCutoff",monthNavigator:[2,"monthNavigator","monthNavigator",n.L39],yearNavigator:[2,"yearNavigator","yearNavigator",n.L39],hourFormat:"hourFormat",timeOnly:[2,"timeOnly","timeOnly",n.L39],stepHour:[2,"stepHour","stepHour",n.Udg],stepMinute:[2,"stepMinute","stepMinute",n.Udg],stepSecond:[2,"stepSecond","stepSecond",n.Udg],showSeconds:[2,"showSeconds","showSeconds",n.L39],required:[2,"required","required",n.L39],showOnFocus:[2,"showOnFocus","showOnFocus",n.L39],showWeek:[2,"showWeek","showWeek",n.L39],startWeekFromFirstDayOfYear:"startWeekFromFirstDayOfYear",showClear:[2,"showClear","showClear",n.L39],dataType:"dataType",selectionMode:"selectionMode",maxDateCount:[2,"maxDateCount","maxDateCount",n.Udg],showButtonBar:[2,"showButtonBar","showButtonBar",n.L39],todayButtonStyleClass:"todayButtonStyleClass",clearButtonStyleClass:"clearButtonStyleClass",autofocus:[2,"autofocus","autofocus",n.L39],autoZIndex:[2,"autoZIndex","autoZIndex",n.L39],baseZIndex:[2,"baseZIndex","baseZIndex",n.Udg],panelStyleClass:"panelStyleClass",panelStyle:"panelStyle",keepInvalid:[2,"keepInvalid","keepInvalid",n.L39],hideOnDateTimeSelect:[2,"hideOnDateTimeSelect","hideOnDateTimeSelect",n.L39],touchUI:[2,"touchUI","touchUI",n.L39],timeSeparator:"timeSeparator",focusTrap:[2,"focusTrap","focusTrap",n.L39],showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",tabindex:[2,"tabindex","tabindex",n.Udg],variant:"variant",minDate:"minDate",maxDate:"maxDate",disabledDates:"disabledDates",disabledDays:"disabledDays",yearRange:"yearRange",showTime:"showTime",responsiveOptions:"responsiveOptions",numberOfMonths:"numberOfMonths",firstDayOfWeek:"firstDayOfWeek",locale:"locale",view:"view",defaultDate:"defaultDate"},outputs:{onFocus:"onFocus",onBlur:"onBlur",onClose:"onClose",onSelect:"onSelect",onClear:"onClear",onInput:"onInput",onTodayClick:"onTodayClick",onClearClick:"onClearClick",onMonthChange:"onMonthChange",onYearChange:"onYearChange",onClickOutside:"onClickOutside",onShow:"onShow"},features:[n.Jv_([Fdt,Xue]),n.GFd,n.Vt3],ngContentSelectors:qct,decls:4,vars:6,consts:[["container",""],["inputfield",""],["contentWrapper",""],[3,"ngClass","ngStyle"],[3,"ngIf"],[3,"class","ngStyle","ngClass","click",4,"ngIf"],["pInputText","","type","text","role","combobox","aria-autocomplete","none","aria-haspopup","dialog","autocomplete","off",3,"focus","keydown","click","blur","input","value","readonly","ngStyle","ngClass","placeholder","disabled","pAutoFocus","variant","fluid"],[4,"ngIf"],["type","button","aria-haspopup","dialog","class","p-datepicker-dropdown","tabindex","0",3,"disabled","click",4,"ngIf"],[3,"class","click",4,"ngIf"],["class","p-datepicker-clear-icon",3,"click",4,"ngIf"],[3,"click"],[1,"p-datepicker-clear-icon",3,"click"],[4,"ngTemplateOutlet"],["type","button","aria-haspopup","dialog","tabindex","0",1,"p-datepicker-dropdown",3,"click","disabled"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[1,"p-datepicker-input-icon-container"],[3,"ngClass","click",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"click","ngClass"],[3,"click","ngStyle","ngClass"],["class","p-datepicker-time-picker",4,"ngIf"],["class","p-datepicker-buttonbar",4,"ngIf"],[1,"p-datepicker-calendar-container"],["class","p-datepicker-calendar",4,"ngFor","ngForOf"],["class","p-datepicker-month-view",4,"ngIf"],["class","p-datepicker-year-view",4,"ngIf"],[1,"p-datepicker-calendar"],[1,"p-datepicker-header"],["size","small","rounded","","text","","styleClass","p-datepicker-prev-button p-button-icon-only","type","button",3,"keydown","onClick","ngStyle"],[1,"p-datepicker-title"],["type","button","class","p-datepicker-select-month","pRipple","",3,"disabled","click","keydown",4,"ngIf"],["type","button","class","p-datepicker-select-year","pRipple","",3,"disabled","click","keydown",4,"ngIf"],["class","p-datepicker-decade",4,"ngIf"],["rounded","","text","","size","small","styleClass","p-datepicker-next-button p-button-icon-only",3,"keydown","onClick","ngStyle"],["class","p-datepicker-day-view","role","grid",4,"ngIf"],["type","button","pRipple","",1,"p-datepicker-select-month",3,"click","keydown","disabled"],["type","button","pRipple","",1,"p-datepicker-select-year",3,"click","keydown","disabled"],[1,"p-datepicker-decade"],["role","grid",1,"p-datepicker-day-view"],["class","p-datepicker-weekheader p-disabled",4,"ngIf"],["class","p-datepicker-weekday-cell","scope","col",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"p-datepicker-weekheader","p-disabled"],["scope","col",1,"p-datepicker-weekday-cell"],[1,"p-datepicker-weekday"],["class","p-datepicker-weeknumber",4,"ngIf"],[3,"ngClass",4,"ngFor","ngForOf"],[1,"p-datepicker-weeknumber"],[1,"p-datepicker-weeklabel-container","p-disabled"],["draggable","false","pRipple","",3,"click","keydown","ngClass"],["class","p-hidden-accessible","aria-live","polite",4,"ngIf"],["aria-live","polite",1,"p-hidden-accessible"],[1,"p-datepicker-month-view"],["pRipple","",3,"ngClass","click","keydown",4,"ngFor","ngForOf"],["pRipple","",3,"click","keydown","ngClass"],[1,"p-datepicker-year-view"],[1,"p-datepicker-time-picker"],[1,"p-datepicker-hour-picker"],["rounded","","text","","size","small","styleClass","p-datepicker-increment-button p-button-icon-only",3,"keydown","keydown.enter","keydown.space","mousedown","mouseup","keyup.enter","keyup.space","mouseleave"],[1,"p-datepicker-separator"],[1,"p-datepicker-minute-picker"],["class","p-datepicker-separator",4,"ngIf"],["class","p-datepicker-second-picker",4,"ngIf"],["class","p-datepicker-ampm-picker",4,"ngIf"],[1,"p-datepicker-second-picker"],[1,"p-datepicker-ampm-picker"],["size","small","text","","rounded","","styleClass","p-datepicker-increment-button p-button-icon-only",3,"keydown","onClick","keydown.enter"],["size","small","text","","rounded","","styleClass","p-datepicker-increment-button p-button-icon-only",3,"keydown","click","keydown.enter"],[1,"p-datepicker-buttonbar"],["size","small","styleClass","p-datepicker-today-button",3,"keydown","onClick","label","ngClass"],["size","small","styleClass","p-datepicker-clear-button",3,"keydown","onClick","label","ngClass"]],template:function(i,o){1&i&&(n.NAR(zct),n.j41(0,"span",3,0),n.DNE(2,gut,5,24,"ng-template",4)(3,Odt,9,20,"div",5),n.k0s()),2&i&&(n.HbH(o.styleClass),n.Y8G("ngClass",o.rootClass)("ngStyle",o.style),n.R7$(2),n.Y8G("ngIf",!o.inline),n.R7$(),n.Y8G("ngIf",o.inline||o.overlayVisible))},dependencies:[gn,bi,oo,fi,uo,Jr,Rp,Mh,jx,qw,i7,Y_,pf,oie,Jf,hf,Di],encapsulation:2,data:{animation:[(0,Hi.hZ)("overlayAnimation",[(0,Hi.wk)("visibleTouchUI",(0,Hi.iF)({transform:"translate(-50%,-50%)",opacity:1})),(0,Hi.kY)("void => visible",[(0,Hi.iF)({opacity:0,transform:"scaleY(0.8)"}),(0,Hi.i0)("{{showTransitionParams}}",(0,Hi.iF)({opacity:1,transform:"*"}))]),(0,Hi.kY)("visible => void",[(0,Hi.i0)("{{hideTransitionParams}}",(0,Hi.iF)({opacity:0}))]),(0,Hi.kY)("void => visibleTouchUI",[(0,Hi.iF)({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}),(0,Hi.i0)("{{showTransitionParams}}")]),(0,Hi.kY)("visibleTouchUI => void",[(0,Hi.i0)("{{hideTransitionParams}}",(0,Hi.iF)({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}))])])]},changeDetection:0})}return t})(),Pdt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({imports:[Hq,Di,Di]})}return t})();const Ldt=({dt:t})=>`\n.p-textarea {\n    font-family: inherit;\n    font-feature-settings: inherit;\n    font-size: 1rem;\n    color: ${t("textarea.color")};\n    background: ${t("textarea.background")};\n    padding: ${t("textarea.padding.y")} ${t("textarea.padding.x")};\n    border: 1px solid ${t("textarea.border.color")};\n    transition: background ${t("textarea.transition.duration")}, color ${t("textarea.transition.duration")}, border-color ${t("textarea.transition.duration")}, outline-color ${t("textarea.transition.duration")}, box-shadow ${t("textarea.transition.duration")};\n    appearance: none;\n    border-radius: ${t("textarea.border.radius")};\n    outline-color: transparent;\n    box-shadow: ${t("textarea.shadow")};\n}\n\n.p-textarea:enabled:hover {\n    border-color: ${t("textarea.hover.border.color")};\n}\n\n.p-textarea:enabled:focus {\n    border-color: ${t("textarea.focus.border.color")};\n    box-shadow: ${t("textarea.focus.ring.shadow")};\n    outline: ${t("textarea.focus.ring.width")} ${t("textarea.focus.ring.style")} ${t("textarea.focus.ring.color")};\n    outline-offset: ${t("textarea.focus.ring.offset")};\n}\n\n.p-textarea.p-invalid {\n    border-color: ${t("textarea.invalid.border.color")};\n}\n\n.p-textarea.p-variant-filled {\n    background: ${t("textarea.filled.background")};\n}\n\n.p-textarea.p-variant-filled:enabled:focus {\n    background: ${t("textarea.filled.focus.background")};\n}\n\n.p-textarea:disabled {\n    opacity: 1;\n    background: ${t("textarea.disabled.background")};\n    color: ${t("textarea.disabled.color")};\n}\n\n.p-textarea::placeholder {\n    color: ${t("textarea.placeholder.color")};\n}\n\n.p-textarea-fluid {\n    width: 100%;\n}\n\n.p-textarea-resizable {\n    overflow: hidden;\n    resize: none;\n}\n\n.p-textarea.ng-invalid.ng-dirty {\n    border-color: ${t("textarea.invalid.border.color")}\n}\n\n.p-textarea.ng-invalid.ng-dirty::placeholder {\n    color: ${t("textarea.invalid.placeholder.color")};\n}`,Ndt={root:({instance:t,props:r})=>["p-textarea p-component",{"p-filled":t.filled,"p-textarea-resizable ":r.autoResize,"p-invalid":r.invalid,"p-variant-filled":r.variant?"filled"===r.variant:"filled"===t.config.inputStyle||"filled"===t.config.inputVariant,"p-textarea-fluid":r.fluid}]};let Jue=(()=>{class t extends gs{name="textarea";theme=Ldt;classes=Ndt;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})(),Bdt=(()=>{class t extends jo{ngModel;control;autoResize;variant="outlined";fluid=!1;onResize=new n.bkB;filled;cachedScrollHeight;ngModelSubscription;ngControlSubscription;_componentStyle=(0,n.WQX)(Jue);constructor(e,i){super(),this.ngModel=e,this.control=i,console.log("pInputTextarea directive is deprecated in v18. Use pTextarea directive instead")}ngOnInit(){super.ngOnInit(),this.ngModel&&(this.ngModelSubscription=this.ngModel.valueChanges.subscribe(()=>{this.updateState()})),this.control&&(this.ngControlSubscription=this.control.valueChanges.subscribe(()=>{this.updateState()}))}get hasFluid(){const i=this.el.nativeElement.closest("p-fluid");return this.fluid||!!i}ngAfterViewInit(){super.ngAfterViewInit(),this.autoResize&&this.resize(),this.updateFilledState(),this.cd.detectChanges()}onInput(e){this.updateState()}updateFilledState(){this.filled=this.el.nativeElement.value&&this.el.nativeElement.value.length}resize(e){this.el.nativeElement.style.height="auto",this.el.nativeElement.style.height=this.el.nativeElement.scrollHeight+"px",parseFloat(this.el.nativeElement.style.height)>=parseFloat(this.el.nativeElement.style.maxHeight)?(this.el.nativeElement.style.overflowY="scroll",this.el.nativeElement.style.height=this.el.nativeElement.style.maxHeight):this.el.nativeElement.style.overflow="hidden",this.onResize.emit(e||{})}updateState(){this.updateFilledState(),this.autoResize&&this.resize()}ngOnDestroy(){this.ngModelSubscription&&this.ngModelSubscription.unsubscribe(),this.ngControlSubscription&&this.ngControlSubscription.unsubscribe(),super.ngOnDestroy()}static \u0275fac=function(i){return new(i||t)(n.rXU(ko,8),n.rXU(mg,8))};static \u0275dir=n.FsC({type:t,selectors:[["","pInputTextarea",""]],hostAttrs:[1,"p-textarea","p-component"],hostVars:8,hostBindings:function(i,o){1&i&&n.bIt("input",function(a){return o.onInput(a)}),2&i&&n.AVh("p-filled",o.filled)("p-textarea-resizable",o.autoResize)("p-variant-filled","filled"===o.variant||"filled"===o.config.inputStyle()||"filled"===o.config.inputVariant())("p-textarea-fluid",o.hasFluid)},inputs:{autoResize:[2,"autoResize","autoResize",n.L39],variant:"variant",fluid:[2,"fluid","fluid",n.L39]},outputs:{onResize:"onResize"},features:[n.Jv_([Jue]),n.GFd,n.Vt3]})}return t})(),Vdt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({})}return t})(),jdt=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=n.$C({type:t})}static{this.\u0275inj=n.G2t({imports:[gn,th,Aie,Ra,xv,Pdt,e7,Vdt]})}}return t})(),Hdt=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=n.$C({type:t})}static{this.\u0275inj=n.G2t({imports:[gn,th,Ra,xv,vg]})}}return t})();let s0=(()=>{class t{constructor(){}getApiUrl(){return"https://app-mealconnectapi-prod.azurewebsites.net"}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Zue=(()=>{class t{constructor(e){this.filterService=e}registerCustomFilters(){this.filterService.register("containsAny",(e,i)=>{if(null==i||""===i.trim())return!0;if(null==e)return!1;const o=i.split(" ");for(let s=0;s<o.length;s++)if(o[s]&&e.toLowerCase().includes(o[s].toLowerCase()))return!0;return!1}),this.filterService.register("containsAll",(e,i)=>{if(null==i||""===i.trim())return!0;if(null==e)return!1;const o=i.split(" ");for(let s=0;s<o.length;s++)if(o[s]&&!e.toLowerCase().includes(o[s].toLowerCase()))return!1;return!0})}static{this.\u0275fac=function(i){return new(i||t)(n.KVO(Cx))}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const Udt=function SQ(...t){return function _5(...t){const r=(e={},i={})=>{const o=((t,r)=>{for(var e in r||(r={}))RR.call(r,e)&&xH(t,e,r[e]);if(ND)for(var e of ND(r))GD.call(r,e)&&xH(t,e,r[e]);return t})({},e);return Object.keys(i).forEach(s=>{o[s]=dg(i[s])&&s in e&&dg(e[s])?r(e[s],i[s]):i[s]}),o};return t.reduce((e,i,o)=>0===o?i:r(e,i),{})}(...t)}({primitive:{borderRadius:{none:"0",xs:"2px",sm:"4px",md:"6px",lg:"8px",xl:"12px"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"}},semantic:{transitionDuration:"0.2s",focusRing:{width:"0",style:"none",color:"transparent",offset:"0"},disabledOpacity:"0.6",iconSize:"1rem",anchorGutter:"2px",primary:{50:"{emerald.50}",100:"{emerald.100}",200:"{emerald.200}",300:"{emerald.300}",400:"{emerald.400}",500:"{emerald.500}",600:"{emerald.600}",700:"{emerald.700}",800:"{emerald.800}",900:"{emerald.900}",950:"{emerald.950}"},formField:{paddingX:"0.75rem",paddingY:"0.625rem",sm:{fontSize:"0.875rem",paddingX:"0.625rem",paddingY:"0.5rem"},lg:{fontSize:"1.125rem",paddingX:"0.875rem",paddingY:"0.75rem"},borderRadius:"{border.radius.md}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{transition.duration}"},list:{padding:"0.5rem 0",gap:"0",header:{padding:"0.625rem 1rem 0 1rem"},option:{padding:"0.625rem 1rem",borderRadius:"0"},optionGroup:{padding:"0.625rem 1rem",fontWeight:"600"}},content:{borderRadius:"{border.radius.md}"},mask:{transitionDuration:"0.15s"},navigation:{list:{padding:"0.5rem 0",gap:"0"},item:{padding:"0.625rem 1rem",borderRadius:"0",gap:"0.5rem"},submenuLabel:{padding:"0.625rem 1rem",fontWeight:"600"},submenuIcon:{size:"0.875rem"}},overlay:{select:{borderRadius:"{border.radius.md}",shadow:"0 2px 12px 0 rgba(0, 0, 0, 0.1)"},popover:{borderRadius:"{border.radius.md}",padding:"1rem",shadow:"0 1px 3px rgba(0, 0, 0, 0.1)"},modal:{borderRadius:"{border.radius.xl}",padding:"1.5rem",shadow:"0 1px 3px rgba(0, 0, 0, 0.3)"},navigation:{shadow:"0 2px 12px 0 rgba(0, 0, 0, 0.1)"}},colorScheme:{light:{surface:{0:"#ffffff",50:"{slate.50}",100:"{slate.100}",200:"{slate.200}",300:"{slate.300}",400:"{slate.400}",500:"{slate.500}",600:"{slate.600}",700:"{slate.700}",800:"{slate.800}",900:"{slate.900}",950:"{slate.950}"},primary:{color:"{primary.500}",contrastColor:"#ffffff",hoverColor:"{primary.600}",activeColor:"{primary.700}"},highlight:{background:"{primary.50}",focusBackground:"{primary.100}",color:"{primary.700}",focusColor:"{primary.800}"},focusRing:{shadow:"0 0 0 0.2rem {primary.200}"},mask:{background:"rgba(0,0,0,0.4)",color:"{surface.200}"},formField:{background:"{surface.0}",disabledBackground:"{surface.200}",filledBackground:"{surface.50}",filledHoverBackground:"{surface.50}",filledFocusBackground:"{surface.0}",borderColor:"{surface.300}",hoverBorderColor:"{primary.color}",focusBorderColor:"{primary.color}",invalidBorderColor:"{red.400}",color:"{surface.700}",disabledColor:"{surface.500}",placeholderColor:"{surface.500}",invalidPlaceholderColor:"{red.600}",floatLabelColor:"{surface.500}",floatLabelFocusColor:"{primary.600}",floatLabelActiveColor:"{surface.500}",floatLabelInvalidColor:"{form.field.invalid.placeholder.color}",iconColor:"{surface.500}",shadow:"none"},text:{color:"{surface.700}",hoverColor:"{surface.800}",mutedColor:"{surface.500}",hoverMutedColor:"{surface.600}"},content:{background:"{surface.0}",hoverBackground:"{surface.100}",borderColor:"{surface.200}",color:"{text.color}",hoverColor:"{text.hover.color}"},overlay:{select:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"},popover:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"},modal:{background:"{surface.0}",borderColor:"{surface.200}",color:"{text.color}"}},list:{option:{focusBackground:"{surface.100}",selectedBackground:"{highlight.background}",selectedFocusBackground:"{highlight.focus.background}",color:"{text.color}",focusColor:"{text.hover.color}",selectedColor:"{highlight.color}",selectedFocusColor:"{highlight.focus.color}",icon:{color:"{surface.400}",focusColor:"{surface.500}"}},optionGroup:{background:"transparent",color:"{text.color}"}},navigation:{item:{focusBackground:"{surface.100}",activeBackground:"{surface.100}",color:"{text.color}",focusColor:"{text.hover.color}",activeColor:"{text.hover.color}",icon:{color:"{surface.400}",focusColor:"{surface.500}",activeColor:"{surface.500}"}},submenuLabel:{background:"transparent",color:"{text.color}"},submenuIcon:{color:"{surface.400}",focusColor:"{surface.500}",activeColor:"{surface.500}"}}},dark:{surface:{0:"#ffffff",50:"{zinc.50}",100:"{zinc.100}",200:"{zinc.200}",300:"{zinc.300}",400:"{zinc.400}",500:"{zinc.500}",600:"{zinc.600}",700:"{zinc.700}",800:"{zinc.800}",900:"{zinc.900}",950:"{zinc.950}"},primary:{color:"{primary.400}",contrastColor:"{surface.900}",hoverColor:"{primary.300}",activeColor:"{primary.200}"},highlight:{background:"color-mix(in srgb, {primary.400}, transparent 84%)",focusBackground:"color-mix(in srgb, {primary.400}, transparent 76%)",color:"rgba(255,255,255,.87)",focusColor:"rgba(255,255,255,.87)"},focusRing:{shadow:"0 0 0 0.2rem color-mix(in srgb, {primary.color}, transparent 80%)"},mask:{background:"rgba(0,0,0,0.6)",color:"{surface.200}"},formField:{background:"{surface.950}",disabledBackground:"{surface.700}",filledBackground:"{surface.800}",filledHoverBackground:"{surface.800}",filledFocusBackground:"{surface.950}",borderColor:"{surface.600}",hoverBorderColor:"{primary.color}",focusBorderColor:"{primary.color}",invalidBorderColor:"{red.300}",color:"{surface.0}",disabledColor:"{surface.400}",placeholderColor:"{surface.400}",invalidPlaceholderColor:"{red.400}",floatLabelColor:"{surface.400}",floatLabelFocusColor:"{primary.color}",floatLabelActiveColor:"{surface.400}",floatLabelInvalidColor:"{form.field.invalid.placeholder.color}",iconColor:"{surface.400}",shadow:"none"},text:{color:"{surface.0}",hoverColor:"{surface.0}",mutedColor:"{surface.400}",hoverMutedColor:"{surface.300}"},content:{background:"{surface.900}",hoverBackground:"{surface.800}",borderColor:"{surface.700}",color:"{text.color}",hoverColor:"{text.hover.color}"},overlay:{select:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"},popover:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"},modal:{background:"{surface.900}",borderColor:"{surface.700}",color:"{text.color}"}},list:{option:{focusBackground:"{surface.800}",selectedBackground:"{highlight.background}",selectedFocusBackground:"{highlight.focus.background}",color:"{text.color}",focusColor:"{text.hover.color}",selectedColor:"{highlight.color}",selectedFocusColor:"{highlight.focus.color}",icon:{color:"{surface.500}",focusColor:"{surface.400}"}},optionGroup:{background:"transparent",color:"{text.color}"}},navigation:{item:{focusBackground:"{surface.800}",activeBackground:"{surface.800}",color:"{text.color}",focusColor:"{text.hover.color}",activeColor:"{text.hover.color}",icon:{color:"{surface.500}",focusColor:"{surface.400}",activeColor:"{surface.400}"}},submenuLabel:{background:"transparent",color:"{text.color}"},submenuIcon:{color:"{surface.500}",focusColor:"{surface.400}",activeColor:"{surface.400}"}}}}},components:{accordion:{root:{transitionDuration:"{transition.duration}"},panel:{borderWidth:"0",borderColor:"{content.border.color}"},header:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{text.color}",padding:"1.125rem",fontWeight:"700",borderRadius:"0",borderWidth:"0 1px 1px 1px",borderColor:"{content.border.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"},toggleIcon:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{text.color}",activeHoverColor:"{text.color}"},first:{topBorderRadius:"{content.border.radius}",borderWidth:"1px"},last:{bottomBorderRadius:"{content.border.radius}",activeBottomBorderRadius:"0"}},content:{borderWidth:"0 1px 1px 1px",borderColor:"{content.border.color}",background:"{content.background}",color:"{text.color}",padding:"1.125rem"},colorScheme:{light:{header:{background:"{surface.50}",hoverBackground:"{surface.100}",activeBackground:"{surface.50}",activeHoverBackground:"{surface.100}"}},dark:{header:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.800}",activeHoverBackground:"{surface.700}"}}}},autocomplete:{root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},list:{padding:"{list.padding}",gap:"{list.gap}"},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},optionGroup:{background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},dropdown:{width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"},borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"}},chip:{borderRadius:"{border.radius.sm}"},emptyMessage:{padding:"{list.option.padding}"},colorScheme:{light:{chip:{focusBackground:"{surface.200}",focusColor:"{surface.800}"},dropdown:{background:"{surface.50}",hoverBackground:"{surface.100}",activeBackground:"{surface.200}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}"}},dark:{chip:{focusBackground:"{surface.700}",focusColor:"{surface.0}"},dropdown:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}"}}}},avatar:{root:{width:"2rem",height:"2rem",fontSize:"1rem",background:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}"},icon:{size:"1rem"},group:{borderColor:"{content.background}",offset:"-0.75rem"},lg:{width:"3rem",height:"3rem",fontSize:"1.5rem",icon:{size:"1.5rem"},group:{offset:"-1rem"}},xl:{width:"4rem",height:"4rem",fontSize:"2rem",icon:{size:"2rem"}}},badge:{root:{borderRadius:"{border.radius.md}",padding:"0 0.5rem",fontSize:"0.75rem",fontWeight:"700",minWidth:"1.5rem",height:"1.5rem"},dot:{size:"0.5rem"},sm:{fontSize:"0.625rem",minWidth:"1.25rem",height:"1.25rem"},lg:{fontSize:"0.875rem",minWidth:"1.75rem",height:"1.75rem"},xl:{fontSize:"1rem",minWidth:"2rem",height:"2rem"},colorScheme:{light:{primary:{background:"{primary.color}",color:"{primary.contrast.color}"},secondary:{background:"{surface.100}",color:"{surface.600}"},success:{background:"{green.500}",color:"{surface.0}"},info:{background:"{sky.500}",color:"{surface.0}"},warn:{background:"{orange.500}",color:"{surface.0}"},danger:{background:"{red.500}",color:"{surface.0}"},contrast:{background:"{surface.950}",color:"{surface.0}"}},dark:{primary:{background:"{primary.color}",color:"{primary.contrast.color}"},secondary:{background:"{surface.800}",color:"{surface.300}"},success:{background:"{green.400}",color:"{green.950}"},info:{background:"{sky.400}",color:"{sky.950}"},warn:{background:"{orange.400}",color:"{orange.950}"},danger:{background:"{red.400}",color:"{red.950}"},contrast:{background:"{surface.0}",color:"{surface.950}"}}}},blockui:{root:{borderRadius:"{content.border.radius}"}},breadcrumb:{root:{padding:"1.25rem",background:"{content.background}",gap:"0.5rem",transitionDuration:"{transition.duration}"},item:{color:"{text.muted.color}",hoverColor:"{text.color}",borderRadius:"{content.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",hoverColor:"{navigation.item.icon.focus.color}"},focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},separator:{color:"{navigation.item.icon.color}"}},button:{root:{borderRadius:"{form.field.border.radius}",roundedBorderRadius:"2rem",gap:"0.5rem",paddingX:"1rem",paddingY:"{form.field.padding.y}",iconOnlyWidth:"2.75rem",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"},label:{fontWeight:"600"},raisedShadow:"0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",offset:"{form.field.focus.ring.offset}"},badgeSize:"1rem",transitionDuration:"{form.field.transition.duration}"},colorScheme:{light:{root:{primary:{background:"{primary.color}",hoverBackground:"{primary.hover.color}",activeBackground:"{primary.active.color}",borderColor:"{primary.color}",hoverBorderColor:"{primary.hover.color}",activeBorderColor:"{primary.active.color}",color:"{primary.contrast.color}",hoverColor:"{primary.contrast.color}",activeColor:"{primary.contrast.color}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem {primary.200}"}},secondary:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",borderColor:"{surface.100}",hoverBorderColor:"{surface.200}",activeBorderColor:"{surface.300}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem {surface.200}"}},info:{background:"{sky.500}",hoverBackground:"{sky.600}",activeBackground:"{sky.700}",borderColor:"{sky.500}",hoverBorderColor:"{sky.600}",activeBorderColor:"{sky.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem {sky.200}"}},success:{background:"{green.500}",hoverBackground:"{green.600}",activeBackground:"{green.700}",borderColor:"{green.500}",hoverBorderColor:"{green.600}",activeBorderColor:"{green.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem {green.200}"}},warn:{background:"{orange.500}",hoverBackground:"{orange.600}",activeBackground:"{orange.700}",borderColor:"{orange.500}",hoverBorderColor:"{orange.600}",activeBorderColor:"{orange.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem {orange.200}"}},help:{background:"{purple.500}",hoverBackground:"{purple.600}",activeBackground:"{purple.700}",borderColor:"{purple.500}",hoverBorderColor:"{purple.600}",activeBorderColor:"{purple.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem {purple.200}"}},danger:{background:"{red.500}",hoverBackground:"{red.600}",activeBackground:"{red.700}",borderColor:"{red.500}",hoverBorderColor:"{red.600}",activeBorderColor:"{red.700}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem {red.200}"}},contrast:{background:"{surface.950}",hoverBackground:"{surface.900}",activeBackground:"{surface.800}",borderColor:"{surface.950}",hoverBorderColor:"{surface.900}",activeBorderColor:"{surface.800}",color:"{surface.0}",hoverColor:"{surface.0}",activeColor:"{surface.0}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem {surface.400}"}}},outlined:{primary:{hoverBackground:"{primary.50}",activeBackground:"{primary.100}",borderColor:"{primary.200}",color:"{primary.color}"},secondary:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.200}",color:"{surface.500}"},success:{hoverBackground:"{green.50}",activeBackground:"{green.100}",borderColor:"{green.200}",color:"{green.500}"},info:{hoverBackground:"{sky.50}",activeBackground:"{sky.100}",borderColor:"{sky.200}",color:"{sky.500}"},warn:{hoverBackground:"{orange.50}",activeBackground:"{orange.100}",borderColor:"{orange.200}",color:"{orange.500}"},help:{hoverBackground:"{purple.50}",activeBackground:"{purple.100}",borderColor:"{purple.200}",color:"{purple.500}"},danger:{hoverBackground:"{red.50}",activeBackground:"{red.100}",borderColor:"{red.200}",color:"{red.500}"},contrast:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.700}",color:"{surface.950}"},plain:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.200}",color:"{surface.700}"}},text:{primary:{hoverBackground:"{primary.50}",activeBackground:"{primary.100}",color:"{primary.color}"},secondary:{hoverBackground:"{surface.100}",activeBackground:"{surface.200}",color:"{surface.600}"},success:{hoverBackground:"{green.50}",activeBackground:"{green.100}",color:"{green.500}"},info:{hoverBackground:"{sky.50}",activeBackground:"{sky.100}",color:"{sky.500}"},warn:{hoverBackground:"{orange.50}",activeBackground:"{orange.100}",color:"{orange.500}"},help:{hoverBackground:"{purple.50}",activeBackground:"{purple.100}",color:"{purple.500}"},danger:{hoverBackground:"{red.50}",activeBackground:"{red.100}",color:"{red.500}"},contrast:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",color:"{surface.950}"},plain:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",color:"{surface.700}"}},link:{color:"{primary.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"}},dark:{root:{primary:{background:"{primary.color}",hoverBackground:"{primary.hover.color}",activeBackground:"{primary.active.color}",borderColor:"{primary.color}",hoverBorderColor:"{primary.hover.color}",activeBorderColor:"{primary.active.color}",color:"{primary.contrast.color}",hoverColor:"{primary.contrast.color}",activeColor:"{primary.contrast.color}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem color-mix(in srgb, {primary.color}, transparent 80%)"}},secondary:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",borderColor:"{surface.800}",hoverBorderColor:"{surface.700}",activeBorderColor:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem color-mix(in srgb, {surface.300}, transparent 80%)"}},info:{background:"{sky.400}",hoverBackground:"{sky.300}",activeBackground:"{sky.200}",borderColor:"{sky.400}",hoverBorderColor:"{sky.300}",activeBorderColor:"{sky.200}",color:"{sky.950}",hoverColor:"{sky.950}",activeColor:"{sky.950}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem color-mix(in srgb, {sky.400}, transparent 80%)"}},success:{background:"{green.400}",hoverBackground:"{green.300}",activeBackground:"{green.200}",borderColor:"{green.400}",hoverBorderColor:"{green.300}",activeBorderColor:"{green.200}",color:"{green.950}",hoverColor:"{green.950}",activeColor:"{green.950}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem color-mix(in srgb, {green.400}, transparent 80%)"}},warn:{background:"{orange.400}",hoverBackground:"{orange.300}",activeBackground:"{orange.200}",borderColor:"{orange.400}",hoverBorderColor:"{orange.300}",activeBorderColor:"{orange.200}",color:"{orange.950}",hoverColor:"{orange.950}",activeColor:"{orange.950}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem color-mix(in srgb, {orange.400}, transparent 80%)"}},help:{background:"{purple.400}",hoverBackground:"{purple.300}",activeBackground:"{purple.200}",borderColor:"{purple.400}",hoverBorderColor:"{purple.300}",activeBorderColor:"{purple.200}",color:"{purple.950}",hoverColor:"{purple.950}",activeColor:"{purple.950}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem color-mix(in srgb, {purple.400}, transparent 80%)"}},danger:{background:"{red.400}",hoverBackground:"{red.300}",activeBackground:"{red.200}",borderColor:"{red.400}",hoverBorderColor:"{red.300}",activeBorderColor:"{red.200}",color:"{red.950}",hoverColor:"{red.950}",activeColor:"{red.950}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem color-mix(in srgb, {red.400}, transparent 80%)"}},contrast:{background:"{surface.0}",hoverBackground:"{surface.100}",activeBackground:"{surface.200}",borderColor:"{surface.0}",hoverBorderColor:"{surface.100}",activeBorderColor:"{surface.200}",color:"{surface.950}",hoverColor:"{surface.950}",activeColor:"{surface.950}",focusRing:{color:"transparent",shadow:"0 0 0 0.2rem color-mix(in srgb, {surface.0}, transparent 80%)"}}},outlined:{primary:{hoverBackground:"color-mix(in srgb, {primary.color}, transparent 96%)",activeBackground:"color-mix(in srgb, {primary.color}, transparent 84%)",borderColor:"{primary.700}",color:"{primary.color}"},secondary:{hoverBackground:"rgba(255,255,255,0.04)",activeBackground:"rgba(255,255,255,0.16)",borderColor:"{surface.700}",color:"{surface.400}"},success:{hoverBackground:"color-mix(in srgb, {green.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {green.400}, transparent 84%)",borderColor:"{green.700}",color:"{green.400}"},info:{hoverBackground:"color-mix(in srgb, {sky.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {sky.400}, transparent 84%)",borderColor:"{sky.700}",color:"{sky.400}"},warn:{hoverBackground:"color-mix(in srgb, {orange.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {orange.400}, transparent 84%)",borderColor:"{orange.700}",color:"{orange.400}"},help:{hoverBackground:"color-mix(in srgb, {help.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {help.400}, transparent 84%)",borderColor:"{purple.700}",color:"{purple.400}"},danger:{hoverBackground:"color-mix(in srgb, {danger.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {danger.400}, transparent 84%)",borderColor:"{red.700}",color:"{red.400}"},contrast:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{surface.500}",color:"{surface.0}"},plain:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{surface.600}",color:"{surface.0}"}},text:{primary:{hoverBackground:"color-mix(in srgb, {primary.color}, transparent 96%)",activeBackground:"color-mix(in srgb, {primary.color}, transparent 84%)",color:"{primary.color}"},secondary:{hoverBackground:"{surface.700}",activeBackground:"{surface.600}",color:"{surface.300}"},success:{hoverBackground:"color-mix(in srgb, {green.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {green.400}, transparent 84%)",color:"{green.400}"},info:{hoverBackground:"color-mix(in srgb, {sky.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {sky.400}, transparent 84%)",color:"{sky.400}"},warn:{hoverBackground:"color-mix(in srgb, {orange.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {orange.400}, transparent 84%)",color:"{orange.400}"},help:{hoverBackground:"color-mix(in srgb, {purple.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {purple.400}, transparent 84%)",color:"{purple.400}"},danger:{hoverBackground:"color-mix(in srgb, {red.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {red.400}, transparent 84%)",color:"{red.400}"},contrast:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{surface.0}"},plain:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{surface.0}"}},link:{color:"{primary.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"}}}},datepicker:{root:{transitionDuration:"{transition.duration}"},panel:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.popover.shadow}",padding:"{overlay.popover.padding}"},header:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",padding:"0 0 0.75rem 0"},title:{gap:"0.5rem",fontWeight:"700"},dropdown:{width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"},borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"}},inputIcon:{color:"{form.field.icon.color}"},selectMonth:{hoverBackground:"{content.hover.background}",color:"{content.color}",hoverColor:"{content.hover.color}",padding:"0.375rem 0.625rem",borderRadius:"{content.border.radius}"},selectYear:{hoverBackground:"{content.hover.background}",color:"{content.color}",hoverColor:"{content.hover.color}",padding:"0.375rem 0.625rem",borderRadius:"{content.border.radius}"},group:{borderColor:"{content.border.color}",gap:"{overlay.popover.padding}"},dayView:{margin:"0.75rem 0 0 0"},weekDay:{padding:"0.375rem",fontWeight:"700",color:"{content.color}"},date:{hoverBackground:"{content.hover.background}",selectedBackground:"{primary.color}",rangeSelectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{primary.contrast.color}",rangeSelectedColor:"{highlight.color}",width:"2.5rem",height:"2.5rem",borderRadius:"50%",padding:"0.375rem",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"}},monthView:{margin:"0.75rem 0 0 0"},month:{padding:"0.5rem",borderRadius:"{content.border.radius}"},yearView:{margin:"0.75rem 0 0 0"},year:{padding:"0.5rem",borderRadius:"{content.border.radius}"},buttonbar:{padding:"0.75rem 0 0 0",borderColor:"{content.border.color}"},timePicker:{padding:"0.75rem 0 0 0",borderColor:"{content.border.color}",gap:"0.5rem",buttonGap:"0.25rem"},colorScheme:{light:{dropdown:{background:"{surface.50}",hoverBackground:"{surface.100}",activeBackground:"{surface.200}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}"},today:{background:"{surface.200}",color:"{surface.900}"}},dark:{dropdown:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}"},today:{background:"{surface.700}",color:"{surface.0}"}}}},card:{root:{background:"{content.background}",borderRadius:"{border.radius.lg}",color:"{content.color}",shadow:"0 .125rem .25rem rgba(0,0,0,.075)"},body:{padding:"1.5rem",gap:"0.75rem"},caption:{gap:"0.5rem"},title:{fontSize:"1.25rem",fontWeight:"700"},subtitle:{color:"{text.muted.color}"}},carousel:{root:{transitionDuration:"{transition.duration}"},content:{gap:"0.25rem"},indicatorList:{padding:"1rem",gap:"0.5rem"},indicator:{width:"1rem",height:"1rem",borderRadius:"50",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},colorScheme:{light:{indicator:{background:"{surface.200}",hoverBackground:"{surface.300}",activeBackground:"{primary.color}"}},dark:{indicator:{background:"{surface.700}",hoverBackground:"{surface.600}",activeBackground:"{primary.color}"}}}},cascadeselect:{root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},dropdown:{width:"2.5rem",color:"{form.field.icon.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},list:{padding:"{list.padding}",gap:"{list.gap}",mobileIndent:"1.25rem"},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}",icon:{color:"{list.option.icon.color}",focusColor:"{list.option.icon.focus.color}",size:"0.875rem"}},clearIcon:{color:"{form.field.icon.color}"}},checkbox:{root:{borderRadius:"{border.radius.sm}",width:"1.5rem",height:"1.5rem",background:"{form.field.background}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",checkedBorderColor:"{primary.color}",checkedHoverBorderColor:"{primary.hover.color}",checkedFocusBorderColor:"{primary.color}",checkedDisabledBorderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",shadow:"{form.field.shadow}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{width:"1.25rem",height:"1.25rem"},lg:{width:"1.75rem",height:"1.75rem"}},icon:{size:"1rem",color:"{form.field.color}",checkedColor:"{primary.contrast.color}",checkedHoverColor:"{primary.contrast.color}",disabledColor:"{form.field.disabled.color}",sm:{size:"0.75rem"},lg:{size:"1.25rem"}}},chip:{root:{borderRadius:"16px",paddingX:"0.875rem",paddingY:"0.625rem",gap:"0.5rem",transitionDuration:"{transition.duration}"},image:{width:"2rem",height:"2rem"},icon:{size:"1rem"},removeIcon:{size:"1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},colorScheme:{light:{root:{background:"{surface.100}",color:"{surface.800}"},icon:{color:"{surface.800}"},removeIcon:{color:"{surface.800}"}},dark:{root:{background:"{surface.800}",color:"{surface.0}"},icon:{color:"{surface.0}"},removeIcon:{color:"{surface.0}"}}}},colorpicker:{root:{transitionDuration:"{transition.duration}"},preview:{width:"1.75rem",height:"1.75rem",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"}},panel:{shadow:"{overlay.popover.shadow}",borderRadius:"{overlay.popover.borderRadius}"},colorScheme:{light:{panel:{background:"{surface.800}",borderColor:"{surface.900}"},handle:{color:"{surface.0}"}},dark:{panel:{background:"{surface.900}",borderColor:"{surface.700}"},handle:{color:"{surface.0}"}}}},confirmdialog:{icon:{size:"2rem",color:"{overlay.modal.color}"},content:{gap:"1rem"}},confirmpopup:{root:{background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",color:"{overlay.popover.color}",borderRadius:"{overlay.popover.border.radius}",shadow:"{overlay.popover.shadow}",gutter:"10px",arrowOffset:"1.25rem"},content:{padding:"{overlay.popover.padding}",gap:"1rem"},icon:{size:"1.5rem",color:"{overlay.popover.color}"},footer:{gap:"0.5rem",padding:"0 {overlay.popover.padding} {overlay.popover.padding} {overlay.popover.padding}"}},contextmenu:{root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},list:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},item:{focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},submenu:{mobileIndent:"1.25rem"},submenuLabel:{padding:"{navigation.submenu.label.padding}",fontWeight:"{navigation.submenu.label.font.weight}",background:"{navigation.submenu.label.background.}",color:"{navigation.submenu.label.color}"},submenuIcon:{size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},separator:{borderColor:"{content.border.color}"}},dataview:{root:{borderColor:"{content.border.color}",borderWidth:"1px",borderRadius:"4px",padding:"0"},header:{borderColor:"{content.border.color}",borderWidth:"0 0 1px 0",padding:"0.875rem 1.125rem",borderRadius:"5px 5px 0 0"},content:{background:"{content.background}",color:"{content.color}",borderColor:"transparent",borderWidth:"0",padding:"0",borderRadius:"5px"},footer:{background:"{content.background}",color:"{content.color}",borderColor:"{content.border.color}",borderWidth:"1px 0 0 0",padding:"0.875rem 1.125rem",borderRadius:"0 0 5px 5px"},paginatorTop:{borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},paginatorBottom:{borderColor:"{content.border.color}",borderWidth:"1px 0 0 0"},colorScheme:{light:{header:{background:"{surface.50}",color:"{text.color}"}},dark:{header:{background:"{surface.800}",color:"{text.color}"}}}},datatable:{root:{transitionDuration:"{transition.duration}"},header:{borderColor:"{datatable.border.color}",borderWidth:"1px 0 1px 0",padding:"0.75rem 1rem"},headerCell:{selectedBackground:"{highlight.background}",borderColor:"{datatable.border.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",gap:"0.5rem",padding:"0.75rem 1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"}},columnTitle:{fontWeight:"700"},row:{background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"}},bodyCell:{borderColor:"{datatable.border.color}",padding:"0.75rem 1rem"},footerCell:{borderColor:"{datatable.border.color}",padding:"0.75rem 1rem"},columnFooter:{fontWeight:"700"},footer:{borderColor:"{datatable.border.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem"},dropPoint:{color:"{primary.color}"},columnResizerWidth:"0.5rem",resizeIndicator:{width:"1px",color:"{primary.color}"},sortIcon:{color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",size:"0.875rem"},loadingIcon:{size:"2rem"},rowToggleButton:{hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",selectedHoverColor:"{primary.color}",size:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},filter:{inlineGap:"0.5rem",overlaySelect:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},overlayPopover:{background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",borderRadius:"{overlay.popover.border.radius}",color:"{overlay.popover.color}",shadow:"{overlay.popover.shadow}",padding:"{overlay.popover.padding}",gap:"0.5rem"},rule:{borderColor:"{content.border.color}"},constraintList:{padding:"{list.padding}",gap:"{list.gap}"},constraint:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",separator:{borderColor:"{content.border.color}"},padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"}},paginatorTop:{borderColor:"{datatable.border.color}",borderWidth:"0 0 1px 0"},paginatorBottom:{borderColor:"{datatable.border.color}",borderWidth:"0 0 1px 0"},colorScheme:{light:{root:{borderColor:"{content.border.color}"},header:{background:"{surface.50}",color:"{text.color}"},headerCell:{background:"{surface.50}",hoverBackground:"{surface.100}",color:"{text.color}"},footer:{background:"{surface.50}",color:"{text.color}"},footerCell:{background:"{surface.50}",color:"{text.color}"},row:{stripedBackground:"{surface.50}"},bodyCell:{selectedBorderColor:"{primary.100}"}},dark:{root:{borderColor:"{surface.800}"},header:{background:"{surface.800}",color:"{text.color}"},headerCell:{background:"{surface.800}",hoverBackground:"{surface.700}",color:"{text.color}"},footer:{background:"{surface.800}",color:"{text.color}"},footerCell:{background:"{surface.800}",color:"{text.color}"},row:{stripedBackground:"{surface.950}"},bodyCell:{selectedBorderColor:"{primary.900}"}}}},dialog:{root:{background:"{overlay.modal.background}",borderColor:"{overlay.modal.border.color}",color:"{overlay.modal.color}",borderRadius:"{overlay.modal.border.radius}",shadow:"{overlay.modal.shadow}"},header:{padding:"{overlay.modal.padding}",gap:"0.5rem"},title:{fontSize:"1.25rem",fontWeight:"600"},content:{padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}"},footer:{padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}",gap:"0.5rem"}},divider:{root:{borderColor:"{content.border.color}"},content:{background:"{content.background}",color:"{text.color}"},horizontal:{margin:"1.125rem 0",padding:"0 1.125rem",content:{padding:"0 0.625rem"}},vertical:{margin:"0 1.125rem",padding:"1.125rem 0",content:{padding:"0.625rem 0"}}},dock:{root:{background:"rgba(255, 255, 255, 0.1)",borderColor:"rgba(255, 255, 255, 0.2)",padding:"0.5rem",borderRadius:"{border.radius.lg}"},item:{borderRadius:"{content.border.radius}",padding:"0.5rem",size:"3rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}}},drawer:{root:{background:"{overlay.modal.background}",borderColor:"{overlay.modal.border.color}",color:"{overlay.modal.color}",shadow:"{overlay.modal.shadow}"},header:{padding:"{overlay.modal.padding}"},title:{fontSize:"1.5rem",fontWeight:"600"},content:{padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}"},footer:{padding:"{overlay.modal.padding}"}},editor:{toolbar:{borderColor:"{content.border.color}",borderRadius:"{content.border.radius}"},toolbarItem:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}",padding:"{list.padding}"},overlayOption:{focusBackground:"{list.option.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},content:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}"},colorScheme:{light:{toolbar:{background:"{surface.50}"}},dark:{toolbar:{background:"{surface.800}"}}}},fieldset:{root:{background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",padding:"0.75rem 1.125rem 1.125rem 1.125rem",transitionDuration:"{transition.duration}"},legend:{borderRadius:"{content.border.radius}",borderWidth:"1px",borderColor:"{content.border.color}",padding:"0.625rem 0.875rem",gap:"0.5rem",fontWeight:"700",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},toggleIcon:{color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}"},content:{padding:"0"},colorScheme:{light:{legend:{background:"{surface.50}",hoverBackground:"{surface.100}",color:"{text.color}",hoverColor:"{text.hover.color}"}},dark:{legend:{background:"{surface.800}",hoverBackground:"{surface.700}",color:"{text.color}",hoverColor:"{text.hover.color}"}}}},fileupload:{root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",transitionDuration:"{transition.duration}"},header:{borderWidth:"0 0 1px 0",borderColor:"{content.border.color}",padding:"1.125rem",borderRadius:"5px 5px 0 0",gap:"0.5rem"},content:{highlightBorderColor:"{primary.color}",padding:"1.125rem",gap:"1rem"},file:{padding:"1rem",gap:"1rem",borderColor:"{content.border.color}",info:{gap:"0.5rem"}},fileList:{gap:"0.5rem"},progressbar:{height:"0.25rem"},basic:{gap:"0.5rem"},colorScheme:{light:{header:{background:"{surface.50}",color:"{text.color}"}},dark:{header:{background:"{surface.800}",color:"{text.color}"}}}},iftalabel:{root:{color:"{form.field.float.label.color}",focusColor:"{form.field.float.label.focus.color}",invalidColor:"{form.field.float.label.invalid.color}",transitionDuration:"0.2s",positionX:"{form.field.padding.x}",top:"{form.field.padding.y}",fontSize:"0.75rem",fontWeight:"400"},input:{paddingTop:"1.875rem",paddingBottom:"{form.field.padding.y}"}},floatlabel:{root:{color:"{form.field.float.label.color}",focusColor:"{form.field.float.label.focus.color}",activeColor:"{form.field.float.label.active.color}",invalidColor:"{form.field.float.label.invalid.color}",transitionDuration:"0.2s",positionX:"{form.field.padding.x}",positionY:"{form.field.padding.y}",fontWeight:"500",active:{fontSize:"0.75rem",fontWeight:"400"}},over:{active:{top:"-1.375rem"}},in:{input:{paddingTop:"1.875rem",paddingBottom:"{form.field.padding.y}"},active:{top:"{form.field.padding.y}"}},on:{borderRadius:"{border.radius.xs}",active:{background:"{form.field.background}",padding:"0 0.125rem"}}},galleria:{root:{borderWidth:"1px",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",transitionDuration:"{transition.duration}"},navButton:{background:"rgba(255, 255, 255, 0.1)",hoverBackground:"rgba(255, 255, 255, 0.2)",color:"{surface.100}",hoverColor:"{surface.0}",size:"3rem",gutter:"0",prev:{borderRadius:"0 12px 12px 0"},next:{borderRadius:"12px 0 0 12px"},focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},navIcon:{size:"1.5rem"},thumbnailsContent:{padding:"1rem 0.25rem"},thumbnailNavButton:{size:"2rem",borderRadius:"{content.border.radius}",gutter:"0.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},thumbnailNavButtonIcon:{size:"1rem"},caption:{background:"rgba(0, 0, 0, 0.5)",color:"{surface.100}",padding:"1rem"},indicatorList:{gap:"0.5rem",padding:"1rem"},indicatorButton:{width:"1rem",height:"1rem",activeBackground:"{primary.color}",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},insetIndicatorList:{background:"rgba(0, 0, 0, 0.5)"},insetIndicatorButton:{background:"rgba(255, 255, 255, 0.4)",hoverBackground:"rgba(255, 255, 255, 0.6)",activeBackground:"rgba(255, 255, 255, 0.9)"},closeButton:{size:"3rem",gutter:"0.5rem",background:"rgba(255, 255, 255, 0.1)",hoverBackground:"rgba(255, 255, 255, 0.2)",color:"{surface.50}",hoverColor:"{surface.0}",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},closeButtonIcon:{size:"1.5rem"},colorScheme:{light:{thumbnailsContent:{background:"{surface.50}"},thumbnailNavButton:{hoverBackground:"{surface.100}",color:"{surface.600}",hoverColor:"{surface.700}"},indicatorButton:{background:"{surface.200}",hoverBackground:"{surface.300}"}},dark:{thumbnailsContent:{background:"{surface.800}"},thumbnailNavButton:{hoverBackground:"{surface.700}",color:"{surface.400}",hoverColor:"{surface.0}"},indicatorButton:{background:"{surface.700}",hoverBackground:"{surface.600}"}}}},iconfield:{icon:{color:"{form.field.icon.color}"}},image:{root:{transitionDuration:"{transition.duration}"},preview:{icon:{size:"1.5rem"},mask:{background:"{mask.background}",color:"{mask.color}"}},toolbar:{position:{left:"auto",right:"1rem",top:"1rem",bottom:"auto"},blur:"8px",background:"rgba(255,255,255,0.1)",borderColor:"rgba(255,255,255,0.2)",borderWidth:"1px",borderRadius:"{content.border.radius}",padding:".5rem",gap:"0.5rem"},action:{hoverBackground:"rgba(255,255,255,0.1)",color:"{surface.50}",hoverColor:"{surface.0}",size:"3rem",iconSize:"1.5rem",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}}},imagecompare:{handle:{size:"15px",hoverSize:"30px",background:"rgba(255,255,255,0.3)",hoverBackground:"rgba(255,255,255,0.3)",borderColor:"rgba(255,255,255,0.3)",hoverBorderColor:"rgba(255,255,255,0.3)",borderWidth:"3px",borderRadius:"50%",transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"rgba(255,255,255,0.3)",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}}},inlinemessage:{root:{padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{content.border.radius}",gap:"0.5rem"},text:{fontWeight:"500"},icon:{size:"1.125rem"},colorScheme:{light:{info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"color-mix(in srgb, {blue.50}, transparent 5%)",color:"{blue.600}",shadow:"none"},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"color-mix(in srgb, {green.50}, transparent 5%)",color:"{green.600}",shadow:"none"},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"color-mix(in srgb,{yellow.50}, transparent 5%)",color:"{yellow.600}",shadow:"none"},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"color-mix(in srgb, {red.50}, transparent 5%)",color:"{red.600}",shadow:"none"},secondary:{background:"{surface.100}",borderColor:"{surface.100}",color:"{surface.600}",shadow:"none"},contrast:{background:"{surface.900}",borderColor:"{surface.900}",color:"{surface.50}",shadow:"none"}},dark:{info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"color-mix(in srgb, {blue.500}, transparent 84%)",color:"{blue.500}",shadow:"none"},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"color-mix(in srgb, {green.500}, transparent 84%)",color:"{green.500}",shadow:"none"},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"color-mix(in srgb, {yellow.500}, transparent 84%)",color:"{yellow.500}",shadow:"none"},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"color-mix(in srgb, {red.500}, transparent 84%)",color:"{red.500}",shadow:"none"},secondary:{background:"{surface.800}",borderColor:"{surface.800}",color:"{surface.300}",shadow:"none"},contrast:{background:"{surface.0}",borderColor:"{surface.0}",color:"{surface.950}",shadow:"none"}}}},inplace:{root:{padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{transition.duration}"},display:{hoverBackground:"{content.hover.background}",hoverColor:"{content.hover.color}"}},inputchips:{root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}"},chip:{borderRadius:"{border.radius.sm}"},colorScheme:{light:{chip:{focusBackground:"{surface.200}",color:"{surface.800}"}},dark:{chip:{focusBackground:"{surface.700}",color:"{surface.0}"}}}},inputgroup:{addon:{borderRadius:"{form.field.border.radius}",padding:"0.625rem 0.5rem",minWidth:"2.75rem"},colorScheme:{light:{addon:{background:"{surface.50}",borderColor:"{form.field.border.color}",color:"{text.muted.color}"}},dark:{addon:{background:"{surface.800}",borderColor:"{form.field.border.color}",color:"{text.muted.color}"}}}},inputnumber:{root:{transitionDuration:"{transition.duration}"},button:{width:"2.5rem",borderRadius:"{form.field.border.radius}",verticalPadding:"{form.field.padding.y}"},colorScheme:{light:{button:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}"}},dark:{button:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.500}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}"}}}},inputotp:{root:{gap:"0.5rem"},input:{width:"2.5rem",sm:{width:"2rem"},lg:{width:"3rem"}}},inputtext:{root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}}},knob:{root:{transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},value:{background:"{primary.color}"},range:{background:"{content.border.color}"},text:{color:"{text.muted.color}"}},listbox:{root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",borderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",shadow:"{form.field.shadow}",borderRadius:"{form.field.border.radius}",transitionDuration:"{form.field.transition.duration}"},list:{padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},optionGroup:{background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},checkmark:{color:"{list.option.color}",gutterStart:"-0.5rem",gutterEnd:"0.5rem"},emptyMessage:{padding:"{list.option.padding}"},colorScheme:{light:{option:{stripedBackground:"{surface.50}"}},dark:{option:{stripedBackground:"{surface.900}"}}}},megamenu:{root:{borderColor:"transparent",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",verticalOrientation:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},horizontalOrientation:{padding:"0.75rem 1rem",gap:"0.5rem"},transitionDuration:"{transition.duration}"},baseItem:{borderRadius:"{content.border.radius}",padding:"0.75rem 1rem"},item:{focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},overlay:{padding:"0",background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",shadow:"{overlay.navigation.shadow}",gap:"0.5rem"},submenu:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},submenuLabel:{padding:"{navigation.submenu.label.padding}",fontWeight:"{navigation.submenu.label.font.weight}",background:"{navigation.submenu.label.background.}",color:"{navigation.submenu.label.color}"},submenuIcon:{size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},separator:{borderColor:"{content.border.color}"},mobileButton:{borderRadius:"50%",size:"2rem",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",hoverBackground:"{content.hover.background}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},colorScheme:{light:{root:{background:"{surface.50}"}},dark:{root:{background:"{surface.800}"}}}},menu:{root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},list:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},item:{focusBackground:"{navigation.item.focus.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}"}},submenuLabel:{padding:"{navigation.submenu.label.padding}",fontWeight:"{navigation.submenu.label.font.weight}",background:"{navigation.submenu.label.background.}",color:"{navigation.submenu.label.color}"},separator:{borderColor:"{content.border.color}"}},menubar:{root:{borderColor:"transparent",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",padding:"0.75rem 1rem",transitionDuration:"{transition.duration}"},baseItem:{borderRadius:"{content.border.radius}",padding:"0.75rem 1rem"},item:{focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},submenu:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}",background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",mobileIndent:"1.25rem",icon:{size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"}},separator:{borderColor:"{content.border.color}"},mobileButton:{borderRadius:"50%",size:"2rem",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",hoverBackground:"{content.hover.background}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},colorScheme:{light:{root:{background:"{surface.50}"}},dark:{root:{background:"{surface.800}"}}}},message:{root:{borderRadius:"{content.border.radius}",borderWidth:"1px",transitionDuration:"{transition.duration}"},content:{padding:"0.75rem 1rem",gap:"0.5rem",sm:{padding:"0.5rem 0.625rem"},lg:{padding:"0.75rem 0.875rem"}},text:{fontSize:"1rem",fontWeight:"500",sm:{fontSize:"0.875rem"},lg:{fontSize:"1.125rem"}},icon:{size:"1.25rem",sm:{size:"1rem"},lg:{size:"1.5rem"}},closeButton:{width:"2rem",height:"2rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"}},closeIcon:{size:"1rem",sm:{fontSize:"0.875rem"},lg:{fontSize:"1.125rem"}},outlined:{root:{borderWidth:"1px"}},simple:{content:{padding:"0"}},colorScheme:{light:{info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"transparent",color:"{blue.600}",shadow:"none",closeButton:{hoverBackground:"{blue.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {blue.200}"}},outlined:{color:"{blue.600}",borderColor:"{blue.600}"},simple:{color:"{blue.600}"}},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"transparent",color:"{green.600}",shadow:"none",closeButton:{hoverBackground:"{green.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {green.200}"}},outlined:{color:"{green.600}",borderColor:"{green.600}"},simple:{color:"{green.600}"}},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"transparent",color:"{yellow.600}",shadow:"none",closeButton:{hoverBackground:"{yellow.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {yellow.200}"}},outlined:{color:"{yellow.600}",borderColor:"{yellow.600}"},simple:{color:"{yellow.600}"}},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"transparent",color:"{red.600}",shadow:"none",closeButton:{hoverBackground:"{red.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {red.200}"}},outlined:{color:"{red.600}",borderColor:"{red.600}"},simple:{color:"{red.600}"}},secondary:{background:"{surface.100}",borderColor:"transparent",color:"{surface.600}",shadow:"none",closeButton:{hoverBackground:"{surface.200}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {surface.200}"}},outlined:{color:"{surface.500}",borderColor:"{surface.500}"},simple:{color:"{surface.500}"}},contrast:{background:"{surface.900}",borderColor:"transparent",color:"{surface.50}",shadow:"none",closeButton:{hoverBackground:"{surface.800}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {surface.400}"}},outlined:{color:"{surface.900}",borderColor:"{surface.900}"},simple:{color:"{surface.900}"}}},dark:{info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"transparent",color:"{blue.500}",shadow:"none",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {blue.500}, transparent 80%)"}},outlined:{color:"{blue.500}",borderColor:"{blue.500}"},simple:{color:"{blue.500}"}},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"transparent",color:"{green.500}",shadow:"none",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {green.500}, transparent 80%)"}},outlined:{color:"{green.500}",borderColor:"{green.500}"},simple:{color:"{green.500}"}},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"transparent",color:"{yellow.500}",shadow:"none",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {yellow.500}, transparent 80%)"}},outlined:{color:"{yellow.500}",borderColor:"{yellow.500}"},simple:{color:"{yellow.500}"}},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"transparent",color:"{red.500}",shadow:"none",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {red.500}, transparent 80%)"}},outlined:{color:"{red.500}",borderColor:"{red.500}"},simple:{color:"{red.500}"}},secondary:{background:"{surface.800}",borderColor:"transparent",color:"{surface.300}",shadow:"none",closeButton:{hoverBackground:"{surface.700}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {surface.300}, transparent 80%)"}},outlined:{color:"{surface.400}",borderColor:"{surface.400}"},simple:{color:"{surface.400}"}},contrast:{background:"{surface.0}",borderColor:"transparent",color:"{surface.950}",shadow:"none",closeButton:{hoverBackground:"{surface.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {surface.950}, transparent 80%)"}},outlined:{color:"{surface.0}",borderColor:"{surface.0}"},simple:{color:"{surface.0}"}}}}},metergroup:{root:{borderRadius:"{content.border.radius}",gap:"1rem"},meters:{background:"{content.border.color}",size:"0.625rem"},label:{gap:"0.5rem"},labelMarker:{size:"0.5rem"},labelIcon:{size:"1rem"},labelList:{verticalGap:"0.5rem",horizontalGap:"1rem"}},multiselect:{root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},dropdown:{width:"2.5rem",color:"{form.field.icon.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},list:{padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}",gap:"0.5rem"},optionGroup:{background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},clearIcon:{color:"{form.field.icon.color}"},chip:{borderRadius:"{border.radius.sm}"},emptyMessage:{padding:"{list.option.padding}"}},orderlist:{root:{gap:"1.125rem"},controls:{gap:"0.5rem"}},organizationchart:{root:{gutter:"0.75rem",transitionDuration:"{transition.duration}"},node:{background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",borderColor:"{content.border.color}",color:"{content.color}",selectedColor:"{highlight.color}",hoverColor:"{content.hover.color}",padding:"1rem 1.25rem",toggleablePadding:"1rem 1.25rem 1.5rem 1.25rem",borderRadius:"{content.border.radius}"},nodeToggleButton:{background:"{content.background}",hoverBackground:"{content.hover.background}",borderColor:"{content.border.color}",color:"{text.muted.color}",hoverColor:"{text.color}",size:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},connector:{color:"{content.border.color}",borderRadius:"{content.border.radius}",height:"24px"}},overlaybadge:{root:{outline:{width:"2px",color:"{content.background}"}}},popover:{root:{background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",color:"{overlay.popover.color}",borderRadius:"{overlay.popover.border.radius}",shadow:"{overlay.popover.shadow}",gutter:"10px",arrowOffset:"1.25rem"},content:{padding:"{overlay.popover.padding}"}},paginator:{root:{padding:"0.5rem 1rem",gap:"0.25rem",borderRadius:"{content.border.radius}",background:"{content.background}",color:"{content.color}",transitionDuration:"{transition.duration}"},navButton:{background:"transparent",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedColor:"{highlight.color}",width:"2.5rem",height:"2.5rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},currentPageReport:{color:"{text.muted.color}"},jumpToPageInput:{maxWidth:"2.5rem"}},password:{meter:{background:"{content.border.color}",borderRadius:"{content.border.radius}",height:".75rem"},icon:{color:"{form.field.icon.color}"},overlay:{background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",borderRadius:"{overlay.popover.border.radius}",color:"{overlay.popover.color}",padding:"{overlay.popover.padding}",shadow:"{overlay.popover.shadow}"},content:{gap:"0.75rem"},colorScheme:{light:{strength:{weakBackground:"{red.500}",mediumBackground:"{amber.500}",strongBackground:"{green.500}"}},dark:{strength:{weakBackground:"{red.400}",mediumBackground:"{amber.400}",strongBackground:"{green.400}"}}}},panel:{root:{borderColor:"{content.border.color}",borderRadius:"{content.border.radius}"},header:{borderWidth:"0 0 1px 0",borderColor:"{content.border.color}",padding:"1.125rem",borderRadius:"5px 5px 0 0"},toggleableHeader:{padding:"0.25rem 1.125rem"},title:{fontWeight:"700"},content:{padding:"1.125rem"},footer:{padding:"1.125rem"},colorScheme:{light:{header:{background:"{surface.50}",color:"{text.color}"}},dark:{header:{background:"{surface.800}",color:"{text.color}"}}}},panelmenu:{root:{gap:"0",transitionDuration:"{transition.duration}"},panel:{background:"{content.background}",borderColor:"{content.border.color}",borderWidth:"1px",color:"{content.color}",padding:"0.25rem 0.25rem",borderRadius:"0",first:{borderWidth:"1px 1px 0 1px",topBorderRadius:"{content.border.radius}"},last:{borderWidth:"0 1px 1px 1px",bottomBorderRadius:"{content.border.radius}"}},item:{focusBackground:"{navigation.item.focus.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",gap:"0.5rem",padding:"{navigation.item.padding}",borderRadius:"{content.border.radius}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}"}},submenu:{indent:"1rem"},submenuIcon:{color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}"}},picklist:{root:{gap:"1.125rem"},controls:{gap:"0.5rem"}},progressbar:{root:{background:"{content.border.color}",borderRadius:"{content.border.radius}",height:"1.5rem"},value:{background:"{primary.color}"},label:{color:"{primary.contrast.color}",fontSize:"0.875rem",fontWeight:"600"}},progressspinner:{colorScheme:{light:{root:{"color.1":"{pink.500}","color.2":"{sky.500}","color.3":"{emerald.500}","color.4":"{amber.500}"}},dark:{root:{"color.1":"{pink.400}","color.2":"{sky.400}","color.3":"{emerald.400}","color.4":"{amber.400}"}}}},radiobutton:{root:{width:"1.5rem",height:"1.5rem",background:"{form.field.background}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",checkedBorderColor:"{primary.color}",checkedHoverBorderColor:"{primary.hover.color}",checkedFocusBorderColor:"{primary.color}",checkedDisabledBorderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",shadow:"{form.field.shadow}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{width:"1.25rem",height:"1.25rem"},lg:{width:"1.75rem",height:"1.75rem"}},icon:{size:"1rem",checkedColor:"{primary.contrast.color}",checkedHoverColor:"{primary.contrast.color}",disabledColor:"{form.field.disabled.color}",sm:{size:"0.75rem"},lg:{size:"1.25rem"}}},rating:{root:{gap:"0.25rem",transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},icon:{size:"1.25rem",color:"{text.muted.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"}},scrollpanel:{root:{transitionDuration:"{transition.duration}"},bar:{size:"9px",borderRadius:"{border.radius.sm}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},colorScheme:{light:{bar:{background:"{surface.200}"}},dark:{bar:{background:"{surface.700}"}}}},select:{root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},dropdown:{width:"2.5rem",color:"{form.field.icon.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},list:{padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},option:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},optionGroup:{background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},clearIcon:{color:"{form.field.icon.color}"},checkmark:{color:"{list.option.color}",gutterStart:"-0.5rem",gutterEnd:"0.5rem"},emptyMessage:{padding:"{list.option.padding}"}},selectbutton:{root:{borderRadius:"{form.field.border.radius}"},colorScheme:{light:{root:{invalidBorderColor:"{form.field.invalid.border.color}"}},dark:{root:{invalidBorderColor:"{form.field.invalid.border.color}"}}}},skeleton:{root:{borderRadius:"{content.border.radius}"},colorScheme:{light:{root:{background:"{surface.200}",animationBackground:"rgba(255,255,255,0.4)"}},dark:{root:{background:"rgba(255, 255, 255, 0.06)",animationBackground:"rgba(255, 255, 255, 0.04)"}}}},slider:{root:{transitionDuration:"{transition.duration}"},track:{background:"{content.border.color}",borderRadius:"{content.border.radius}",size:"3px"},range:{background:"{primary.color}"},handle:{width:"16px",height:"16px",borderRadius:"50%",background:"{primary.color}",hoverBackground:"{primary.color}",content:{borderRadius:"50%",hoverBackground:"{primary.color}",width:"12px",height:"12px",shadow:"none"},focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"}},colorScheme:{light:{handle:{contentBackground:"{surface.0}"}},dark:{handle:{contentBackground:"{surface.950}"}}}},speeddial:{root:{gap:"0.5rem",transitionDuration:"{transition.duration}"}},splitter:{root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",transitionDuration:"{transition.duration}"},gutter:{background:"{content.border.color}"},handle:{size:"24px",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},colorScheme:{light:{handle:{background:"{surface.400}"}},dark:{handle:{background:"{surface.600}"}}}},splitbutton:{root:{borderRadius:"{form.field.border.radius}",roundedBorderRadius:"2rem",raisedShadow:"0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)"}},stepper:{root:{transitionDuration:"{transition.duration}"},separator:{background:"{content.border.color}",activeBackground:"{primary.color}",margin:"0 0 0 1.625rem",size:"2px"},step:{padding:"0.5rem",gap:"1rem"},stepHeader:{padding:"0",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},gap:"0.5rem"},stepTitle:{color:"{text.muted.color}",activeColor:"{primary.color}",fontWeight:"500"},stepNumber:{background:"{content.background}",activeBackground:"{primary.color}",borderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",activeColor:"{primary.contrast.color}",size:"2.25rem",fontSize:"1.125rem",fontWeight:"500",borderRadius:"50%",shadow:"none"},steppanels:{padding:"0.875rem 0.5rem 1.125rem 0.5rem"},steppanel:{background:"{content.background}",color:"{content.color}",padding:"0",indent:"1rem"}},steps:{root:{transitionDuration:"{transition.duration}"},separator:{background:"{content.border.color}"},itemLink:{borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},gap:"0.5rem"},itemLabel:{color:"{text.muted.color}",activeColor:"{primary.color}",fontWeight:"500"},itemNumber:{background:"{content.background}",activeBackground:"{primary.color}",borderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",activeColor:"{primary.contrast.color}",size:"2.25rem",fontSize:"1.125rem",fontWeight:"500",borderRadius:"50%",shadow:"none"}},tabmenu:{root:{transitionDuration:"{transition.duration}"},tablist:{borderWidth:"0",background:"{content.background}",borderColor:"{content.border.color}"},item:{borderWidth:"2px 0 0 0",borderColor:"transparent",hoverBorderColor:"transparent",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}",padding:"1rem 1.25rem",fontWeight:"600",margin:"0",gap:"0.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},itemIcon:{color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},activeBar:{height:"0",bottom:"0",background:"transparent"},colorScheme:{light:{item:{background:"{surface.50}",hoverBackground:"{surface.100}",activeBackground:"{surface.0}"}},dark:{item:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.900}"}}}},tabs:{root:{transitionDuration:"{transition.duration}"},tablist:{borderWidth:"0",background:"{content.background}",borderColor:"{content.border.color}"},tab:{borderWidth:"2px 0 0 0",borderColor:"transparent",hoverBorderColor:"transparent",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}",padding:"1rem 1.25rem",fontWeight:"700",margin:"0",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"}},tabpanel:{background:"{content.background}",color:"{content.color}",padding:"0.875rem 1.125rem 1.125rem 1.125rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"}},navButton:{background:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",width:"2.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"}},activeBar:{height:"0",bottom:"0",background:"transparent"},colorScheme:{light:{navButton:{shadow:"0px 0px 10px 50px rgba(255, 255, 255, 0.6)"},tab:{background:"{surface.50}",hoverBackground:"{surface.100}",activeBackground:"{surface.0}"}},dark:{navButton:{shadow:"0px 0px 10px 50px color-mix(in srgb, {content.background}, transparent 50%)"},tab:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.900}"}}}},tabview:{root:{transitionDuration:"{transition.duration}"},tabList:{background:"{content.background}",borderColor:"{content.border.color}"},tab:{borderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},tabPanel:{background:"{content.background}",color:"{content.color}"},navButton:{background:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}"},colorScheme:{light:{navButton:{shadow:"0px 0px 10px 50px rgba(255, 255, 255, 0.6)"}},dark:{navButton:{shadow:"0px 0px 10px 50px color-mix(in srgb, {content.background}, transparent 50%)"}}}},textarea:{root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}}},tieredmenu:{root:{background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},list:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},item:{focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},submenu:{mobileIndent:"1.25rem"},submenuIcon:{size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},separator:{borderColor:"{content.border.color}"}},tag:{root:{fontSize:"0.875rem",fontWeight:"700",padding:"0.25rem 0.5rem",gap:"0.25rem",borderRadius:"{content.border.radius}",roundedBorderRadius:"{border.radius.xl}"},icon:{size:"0.75rem"},colorScheme:{light:{primary:{background:"{primary.color}",color:"{primary.contrast.color}"},secondary:{background:"{surface.100}",color:"{surface.600}"},success:{background:"{green.500}",color:"{surface.0}"},info:{background:"{sky.500}",color:"{surface.0}"},warn:{background:"{orange.500}",color:"{surface.0}"},danger:{background:"{red.500}",color:"{surface.0}"},contrast:{background:"{surface.950}",color:"{surface.0}"}},dark:{primary:{background:"{primary.color}",color:"{primary.contrast.color}"},secondary:{background:"{surface.800}",color:"{surface.300}"},success:{background:"{green.400}",color:"{green.950}"},info:{background:"{sky.400}",color:"{sky.950}"},warn:{background:"{orange.400}",color:"{orange.950}"},danger:{background:"{red.400}",color:"{red.950}"},contrast:{background:"{surface.0}",color:"{surface.950}"}}}},terminal:{root:{background:"{form.field.background}",borderColor:"{form.field.border.color}",color:"{form.field.color}",height:"18rem",padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{form.field.border.radius}"},prompt:{gap:"0.25rem"},commandResponse:{margin:"2px 0"}},timeline:{event:{minHeight:"5rem"},horizontal:{eventContent:{padding:"1rem 0"}},vertical:{eventContent:{padding:"0 1rem"}},eventMarker:{size:"1.125rem",borderRadius:"50%",borderWidth:"2px",background:"{content.background}",borderColor:"{primary.color}",content:{borderRadius:"50%",size:"0.375rem",background:"transparent",insetShadow:"none"}},eventConnector:{color:"{content.border.color}",size:"2px"}},togglebutton:{root:{padding:"0.625rem 1rem",borderRadius:"{content.border.radius}",gap:"0.5rem",fontWeight:"500",background:"{form.field.background}",borderColor:"{form.field.border.color}",color:"{form.field.color}",hoverColor:"{form.field.color}",checkedBackground:"{highlight.background}",checkedColor:"{highlight.color}",checkedBorderColor:"{form.field.border.color}",disabledBackground:"{form.field.disabled.background}",disabledBorderColor:"{form.field.disabled.background}",disabledColor:"{form.field.disabled.color}",invalidBorderColor:"{form.field.invalid.border.color}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",padding:"0.5rem 0.75rem"},lg:{fontSize:"{form.field.lg.font.size}",padding:"0.75rem 1.25rem"}},icon:{color:"{text.muted.color}",hoverColor:"{text.muted.color}",checkedColor:"{highlight.color}",disabledColor:"{form.field.disabled.color}"},content:{left:"0.25rem",top:"0.25rem",checkedBackground:"transparent",checkedShadow:"none"},colorScheme:{light:{root:{hoverBackground:"{surface.100}"}},dark:{root:{hoverBackground:"{surface.800}"}}}},toggleswitch:{root:{width:"3rem",height:"1.75rem",borderRadius:"30px",gap:"0.25rem",shadow:"{form.field.shadow}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},borderWidth:"1px",borderColor:"transparent",hoverBorderColor:"transparent",checkedBorderColor:"transparent",checkedHoverBorderColor:"transparent",invalidBorderColor:"{form.field.invalid.border.color}",transitionDuration:"{form.field.transition.duration}",slideDuration:"0.2s"},handle:{borderRadius:"50%",size:"1.25rem"},colorScheme:{light:{root:{background:"{surface.300}",disabledBackground:"{form.field.disabled.background}",hoverBackground:"{surface.400}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}"},handle:{background:"{surface.0}",disabledBackground:"{form.field.disabled.color}",hoverBackground:"{surface.0}",checkedBackground:"{surface.0}",checkedHoverBackground:"{surface.0}",color:"{text.muted.color}",hoverColor:"{text.color}",checkedColor:"{primary.color}",checkedHoverColor:"{primary.hover.color}"}},dark:{root:{background:"{surface.700}",disabledBackground:"{surface.600}",hoverBackground:"{surface.600}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.hover.color}"},handle:{background:"{surface.400}",disabledBackground:"{surface.900}",hoverBackground:"{surface.300}",checkedBackground:"{surface.900}",checkedHoverBackground:"{surface.900}",color:"{surface.900}",hoverColor:"{surface.800}",checkedColor:"{primary.color}",checkedHoverColor:"{primary.hover.color}"}}}},tree:{root:{background:"{content.background}",color:"{content.color}",padding:"1rem",gap:"2px",indent:"1rem",transitionDuration:"{transition.duration}"},node:{padding:"0.375rem 0.625rem",borderRadius:"{content.border.radius}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{text.color}",hoverColor:"{text.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"},gap:"0.25rem"},nodeIcon:{color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedColor:"{highlight.color}"},nodeToggleButton:{borderRadius:"50%",size:"1.75rem",hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedHoverColor:"{primary.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},loadingIcon:{size:"2rem"},filter:{margin:"0 0 0.5rem 0"}},treeselect:{root:{background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},dropdown:{width:"2.5rem",color:"{form.field.icon.color}"},overlay:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},tree:{padding:"{list.padding}"},clearIcon:{color:"{form.field.icon.color}"},emptyMessage:{padding:"{list.option.padding}"},chip:{borderRadius:"{border.radius.sm}"}},treetable:{root:{transitionDuration:"{transition.duration}"},header:{borderColor:"{treetable.border.color}",borderWidth:"1px 0 1px 0",padding:"0.75rem 1rem"},headerCell:{selectedBackground:"{highlight.background}",borderColor:"{treetable.border.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",gap:"0.5rem",padding:"0.75rem 1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"}},columnTitle:{fontWeight:"700"},row:{background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{sr.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"inset {focus.ring.shadow}"}},bodyCell:{borderColor:"{treetable.border.color}",padding:"0.75rem 1rem",gap:"0.5rem"},footerCell:{borderColor:"{treetable.border.color}",padding:"0.75rem 1rem"},columnFooter:{fontWeight:"700"},footer:{borderColor:"{treetable.border.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem"},columnResizerWidth:"0.5rem",resizeIndicator:{width:"1px",color:"{primary.color}"},sortIcon:{color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",size:"0.875rem"},loadingIcon:{size:"2rem"},nodeToggleButton:{hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",selectedHoverColor:"{primary.color}",size:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},paginatorTop:{borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},paginatorBottom:{borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},colorScheme:{light:{root:{borderColor:"{content.border.color}"},header:{background:"{surface.50}",color:"{text.color}"},headerCell:{background:"{surface.50}",hoverBackground:"{surface.100}",color:"{text.color}"},footer:{background:"{surface.50}",color:"{text.color}"},footerCell:{background:"{surface.50}",color:"{text.color}"},bodyCell:{selectedBorderColor:"{primary.100}"}},dark:{root:{borderColor:"{surface.800}"},header:{background:"{surface.800}",color:"{text.color}"},headerCell:{background:"{surface.800}",hoverBackground:"{surface.700}",color:"{text.color}"},footer:{background:"{surface.800}",color:"{text.color}"},footerCell:{background:"{surface.800}",color:"{text.color}"},bodyCell:{selectedBorderColor:"{primary.900}"}}}},toast:{root:{width:"25rem",borderRadius:"{content.border.radius}",borderWidth:"0 0 0 6px",transitionDuration:"{transition.duration}"},icon:{size:"1.25rem"},content:{padding:"{overlay.popover.padding}",gap:"0.5rem"},text:{gap:"0.5rem"},summary:{fontWeight:"500",fontSize:"1rem"},detail:{fontWeight:"500",fontSize:"0.875rem"},closeButton:{width:"2rem",height:"2rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"}},closeIcon:{size:"1rem"},colorScheme:{light:{blur:"1.5px",info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"{blue.500}",color:"{blue.600}",detailColor:"{surface.700}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"{blue.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {blue.200}"}}},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"{green.500}",color:"{green.600}",detailColor:"{surface.700}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"{green.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {green.200}"}}},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"{yellow.500}",color:"{yellow.600}",detailColor:"{surface.700}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"{yellow.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {yellow.200}"}}},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"{red.500}",color:"{red.600}",detailColor:"{surface.700}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"{red.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {red.200}"}}},secondary:{background:"{surface.100}",borderColor:"{surface.500}",color:"{surface.600}",detailColor:"{surface.700}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"{surface.200}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {surface.200}"}}},contrast:{background:"{surface.900}",borderColor:"{primary.color}",color:"{surface.50}",detailColor:"{surface.0}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"{surface.800}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem {surface.400}"}}}},dark:{blur:"10px",info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"color-mix(in srgb, {blue.700}, transparent 64%)",color:"{blue.500}",detailColor:"{surface.0}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {blue.500}, transparent 80%)"}}},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"color-mix(in srgb, {green.700}, transparent 64%)",color:"{green.500}",detailColor:"{surface.0}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {green.500}, transparent 80%)"}}},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"color-mix(in srgb, {yellow.700}, transparent 64%)",color:"{yellow.500}",detailColor:"{surface.0}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {yellow.500}, transparent 80%)"}}},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"color-mix(in srgb, {red.700}, transparent 64%)",color:"{red.500}",detailColor:"{surface.0}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {red.500}, transparent 80%)"}}},secondary:{background:"{surface.800}",borderColor:"{surface.700}",color:"{surface.300}",detailColor:"{surface.0}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"{surface.700}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {surface.300}, transparent 80%)"}}},contrast:{background:"{surface.0}",borderColor:"{surface.100}",color:"{surface.950}",detailColor:"{surface.950}",shadow:"{overlay.popover.shadow}",closeButton:{hoverBackground:"{surface.100}",focusRing:{color:"{focus.ring.color}",shadow:"0 0 0 0.2rem color-mix(in srgb, {surface.950}, transparent 80%)"}}}}}},toolbar:{root:{background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",padding:"0.75rem"},colorScheme:{light:{root:{background:"{surface.50}",color:"{content.color}"}},dark:{root:{background:"{surface.800}",color:"{content.color}"}}}},virtualscroller:{loader:{mask:{background:"{content.background}",color:"{text.muted.color}"},icon:{size:"2rem"}}},tooltip:{root:{maxWidth:"12.5rem",gutter:"0.25rem",shadow:"{overlay.popover.shadow}",padding:"0.625rem 0.75rem",borderRadius:"{overlay.popover.border.radius}"},colorScheme:{light:{root:{background:"{surface.700}",color:"{surface.0}"}},dark:{root:{background:"{surface.700}",color:"{surface.0}"}}}},ripple:{colorScheme:{light:{root:{background:"rgba(0,0,0,0.1)"}},dark:{root:{background:"rgba(255,255,255,0.3)"}}}}}},{semantic:{primary:{50:"#fffcea",100:"#fff6c5",200:"#ffeb87",300:"#ffdb48",400:"#ffc81e",500:"#fca704",600:"#e98300",700:"#b95704",800:"#96430a",900:"#7b370c",950:"#471b01"}}});let $dt=(()=>{class t{constructor(e,i){this.upgrade=e,i.registerCustomFilters(),pM.setLicenseKey("CompanyName=Feeding America,LicensedApplication=MealConnect,LicenseType=SingleApplication,LicensedConcurrentDeveloperCount=3,LicensedProductionInstancesCount=1,AssetReference=AG-016629,ExpiryDate=28_July_2022_[v2]_MTY1ODk2MjgwMDAwMA==6ec29b83483e497e2893d71fb8d24f2a")}ngDoBootstrap(){this.upgrade.bootstrap(document.documentElement,["faom"],{strictDi:!1})}static{this.\u0275fac=function(i){return new(i||t)(n.KVO(cw),n.KVO(Zue))}}static{this.\u0275mod=n.$C({type:t})}static{this.\u0275inj=n.G2t({providers:[nd(),Xfe(()=>{const e=(0,n.WQX)(Fme),o=(0,n.WQX)(s0).getApiUrl();return{link:e.create({uri:`${o}/graphql`}),cache:new LD}}),sge({theme:{preset:Udt,options:{darkModeSelector:"none"}}}),Kf],imports:[vc,gn,BIe,cw,th,v4e,ust,J1,Dct,NIe,kct,jdt,_4e,TKe,Hdt,DF,Yz,qZe]})}}return t})(),T2=(()=>{class t{constructor(){this.disabled=!1,this.includeNoFilterItem=!0,this.loadOnInitialization=!0,this.showRequiredIcon=!1,this.placeholder="Filter by Location",this.noFilterText="-- No Filter --",this.includeStoreLevelDetail=!1,this.storeLevelText="All Organizations",this.storeLevelCode="store-level detail"}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["ng-component"]],inputs:{disabled:"disabled",includeNoFilterItem:"includeNoFilterItem",loadOnInitialization:"loadOnInitialization",showRequiredIcon:"showRequiredIcon",placeholder:"placeholder",noFilterText:"noFilterText",includeStoreLevelDetail:"includeStoreLevelDetail",storeLevelText:"storeLevelText",storeLevelCode:"storeLevelCode"},standalone:!1,decls:0,vars:0,template:function(i,o){},encapsulation:2})}}return t})(),Ydt=(()=>{class t{constructor(e){this.http=e}getAssociatedAgenciesForFoodbank(){return this.http.get("/api/agencies/associated")}getAllAgencies(){return this.http.get("/api/agencies/all")}static{this.\u0275fac=function(i){return new(i||t)(n.KVO(Da))}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Yy=(()=>{class t{constructor(){this.message=""}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["loading"]],inputs:{message:"message"},standalone:!1,decls:3,vars:1,consts:[[1,"text-center"],[1,"icon-spinner","icon-spin","icon-large"]],template:function(i,o){1&i&&(n.j41(0,"span",0),n.nrm(1,"i",1),n.EFF(2),n.k0s()),2&i&&(n.R7$(2),n.SpI(" ",o.message,"\n"))},encapsulation:2})}}return t})(),Wdt=(()=>{class t{constructor(){this.warningIconReason=""}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["warning-icon"]],inputs:{warningIconReason:"warningIconReason"},standalone:!1,decls:2,vars:1,consts:[[1,"warning-icon"],[1,"icon","icon-warning-sign","subtle-warning-indicator",3,"title"]],template:function(i,o){1&i&&(n.j41(0,"div",0),n.nrm(1,"i",1),n.k0s()),2&i&&(n.R7$(),n.FS9("title",o.warningIconReason))},styles:[".warning-icon[_ngcontent-%COMP%]{width:33px}"]})}}return t})();const zdt=["dropdown"],ede=t=>({$implicit:t}),qdt=(t,r)=>({$implicit:t,searchText:r});function Xdt(t,r){}function Kdt(t,r){1&t&&n.DNE(0,Xdt,0,0,"ng-template")}function Qdt(t,r){if(1&t&&n.DNE(0,Kdt,1,0,null,8),2&t){const e=n.XpG();n.Y8G("ngTemplateOutlet",e.headerTemplate)}}function Jdt(t,r){}function Zdt(t,r){1&t&&n.DNE(0,Jdt,0,0,"ng-template")}function ept(t,r){if(1&t&&n.DNE(0,Zdt,1,0,null,9),2&t){const e=n.XpG();n.Y8G("ngTemplateOutlet",e.selectedItemTemplate)("ngTemplateOutletContext",n.eq3(2,ede,e.currentlySelectedItem))}}function tpt(t,r){}function npt(t,r){1&t&&n.DNE(0,tpt,0,0,"ng-template")}function ipt(t,r){if(1&t&&n.DNE(0,npt,1,0,null,9),2&t){const e=r.$implicit,i=n.XpG(),o=n.sdS(2);n.Y8G("ngTemplateOutlet",i.itemTemplate)("ngTemplateOutletContext",n.l_i(2,qdt,e,null==o?null:o.filterValue))}}function rpt(t,r){}function opt(t,r){1&t&&n.DNE(0,rpt,0,0,"ng-template")}function spt(t,r){if(1&t&&n.DNE(0,opt,1,0,null,9),2&t){const e=r.$implicit,i=n.XpG(2);n.Y8G("ngTemplateOutlet",i.groupTemplate)("ngTemplateOutletContext",n.eq3(2,ede,e))}}function apt(t,r){1&t&&n.DNE(0,spt,1,4,"ng-template",10)}function lpt(t,r){}function cpt(t,r){1&t&&n.DNE(0,lpt,0,0,"ng-template")}function upt(t,r){if(1&t&&n.DNE(0,cpt,1,0,null,8),2&t){const e=n.XpG();n.Y8G("ngTemplateOutlet",e.footerTemplate)}}function dpt(t,r){1&t&&n.nrm(0,"warning-icon",16)}function ppt(t,r){if(1&t&&(n.j41(0,"div",14),n.DNE(1,dpt,1,0,"warning-icon",15),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngIf",!e.currentlySelectedItem)}}function hpt(t,r){1&t&&(n.j41(0,"div",17),n.nrm(1,"loading",18),n.k0s())}function fpt(t,r){if(1&t&&(n.j41(0,"div",11),n.DNE(1,ppt,2,1,"div",12)(2,hpt,2,0,"div",13),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngIf",!e.loading&&e.showRequiredIcon),n.R7$(),n.Y8G("ngIf",e.loading)}}const mpt={provide:tl,useExisting:(0,n.Rfq)(()=>Uu),multi:!0};let Uu=(()=>{class t{constructor(e){this.dropdown=null,this.selectedItemTemplate=null,this.itemTemplate=null,this.groupTemplate=null,this.headerTemplate=null,this.footerTemplate=null,this.loading=!1,this.showRequiredIcon=!1,this.placeholder="",this.disabled=!1,this.filterFields="",this.group=!1,this.optionGroupLabel="",this.options=[],this.filterMatchMode="contains",this.itemSize=30,this.scrollHeight="200px",this.showClear=!0,this.style=null,this.styleClass="dropdown-container",this.panelStyle=null,this.showFilter=!0,this.panelStyleClass="",this.appendTo=null,this.fluid=!1,this.itemSelected=new n.bkB,this.blurred=new n.bkB,this.cleared=new n.bkB,this.filtered=new n.bkB,this.dropdownShown=new n.bkB,this.dropdownHidden=new n.bkB,this.changed=new n.bkB,this.currentlySelectedItem=null,this.onChange=i=>{},this.onTouched=()=>{},e.registerCustomFilters()}ngAfterViewInit(){this.dropdown&&(this.dropdown.filterMatchMode=this.filterMatchMode)}ngOnInit(){}onItemSelected(e){this.currentlySelectedItem=e.value,this.onChange(e.value),this.itemSelected.emit(e.value)}setSelectedItem(e){this.currentlySelectedItem=e}onBlurred(){this.blurred.emit()}onClear(e){this.cleared.emit(e)}onFiltered(e){this.filtered.emit(e)}onShow(e){this.dropdownShown.emit(e)}onHide(e){this.dropdownHidden.emit(e)}get value(){return this.currentlySelectedItem}writeValue(e){this.currentlySelectedItem=e,this.setSelectedItem(e),this.onChange(this.currentlySelectedItem)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(Zue))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["dropdown"]],viewQuery:function(i,o){if(1&i&&n.GBs(zdt,5),2&i){let s;n.mGM(s=n.lsd())&&(o.dropdown=s.first)}},inputs:{selectedItemTemplate:"selectedItemTemplate",itemTemplate:"itemTemplate",groupTemplate:"groupTemplate",headerTemplate:"headerTemplate",footerTemplate:"footerTemplate",loading:"loading",showRequiredIcon:"showRequiredIcon",placeholder:"placeholder",disabled:"disabled",filterFields:"filterFields",group:"group",optionGroupLabel:"optionGroupLabel",options:"options",filterMatchMode:"filterMatchMode",itemSize:"itemSize",scrollHeight:"scrollHeight",showClear:"showClear",style:"style",styleClass:"styleClass",panelStyle:"panelStyle",showFilter:"showFilter",panelStyleClass:"panelStyleClass",appendTo:"appendTo",fluid:"fluid"},outputs:{itemSelected:"itemSelected",blurred:"blurred",cleared:"cleared",filtered:"filtered",dropdownShown:"dropdownShown",dropdownHidden:"dropdownHidden",changed:"changed"},standalone:!1,features:[n.Jv_([mpt])],decls:9,vars:22,consts:[["dropdown",""],[3,"onChange","onBlur","onClear","onFilter","onHide","onShow","ngModelChange","options","filter","filterBy","showClear","virtualScroll","virtualScrollItemSize","scrollHeight","group","placeholder","panelStyle","panelStyleClass","disabled","optionGroupLabel","ngModel","appendTo","fluid"],["pTemplate","header"],["pTemplate","selectedItem"],["pTemplate","item"],[4,"ngIf"],["pTemplate","footer"],["class","right-icon-container",4,"ngIf"],[4,"ngTemplateOutlet"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["pTemplate","group"],[1,"right-icon-container"],["class","warning-icon",4,"ngIf"],["class","loading-icon",4,"ngIf"],[1,"warning-icon"],["warningIconReason","Required.","class","store-warning",4,"ngIf"],["warningIconReason","Required.",1,"store-warning"],[1,"loading-icon"],["message",""]],template:function(i,o){if(1&i){const s=n.RV6();n.j41(0,"div")(1,"p-select",1,0),n.bIt("onChange",function(l){return n.eBV(s),n.Njj(o.onItemSelected(l))})("onBlur",function(){return n.eBV(s),n.Njj(o.onBlurred())})("onClear",function(l){return n.eBV(s),n.Njj(o.onClear(l))})("onFilter",function(l){return n.eBV(s),n.Njj(o.onFiltered(l))})("onHide",function(l){return n.eBV(s),n.Njj(o.onHide(l))})("onShow",function(l){return n.eBV(s),n.Njj(o.onShow(l))}),n.mxI("ngModelChange",function(l){return n.eBV(s),n.DH7(o.currentlySelectedItem,l)||(o.currentlySelectedItem=l),n.Njj(l)}),n.DNE(3,Qdt,1,1,"ng-template",2)(4,ept,1,4,"ng-template",3)(5,ipt,1,5,"ng-template",4)(6,apt,1,0,null,5)(7,upt,1,1,"ng-template",6),n.k0s(),n.DNE(8,fpt,3,2,"div",7),n.k0s()}2&i&&(n.HbH(o.styleClass),n.R7$(),n.Aen(o.style),n.Y8G("options",o.options)("filter",o.showFilter)("filterBy",o.filterFields)("showClear",o.showClear)("virtualScroll",!o.group)("virtualScrollItemSize",o.itemSize)("scrollHeight",o.scrollHeight)("group",o.group)("placeholder",o.placeholder)("panelStyle",o.panelStyle)("panelStyleClass",o.panelStyleClass)("disabled",o.disabled||o.loading)("optionGroupLabel",o.optionGroupLabel),n.R50("ngModel",o.currentlySelectedItem),n.Y8G("appendTo",o.appendTo)("fluid",o.fluid),n.R7$(5),n.Y8G("ngIf",o.group),n.R7$(2),n.Y8G("ngIf",o.showRequiredIcon||o.loading))},dependencies:[fi,uo,_o,ko,hs,ff,Yy,Wdt],styles:[".warning-icon[_ngcontent-%COMP%], .loading-icon[_ngcontent-%COMP%]{margin-top:5px;margin-left:0}.not-loading[_ngcontent-%COMP%]{width:100%}.right-icon-container[_ngcontent-%COMP%]{position:absolute;right:35px;top:0}.dropdown-container[_ngcontent-%COMP%]{width:100%;position:relative;margin-left:15px;margin-right:15px}"]})}}return t})(),Zd=(()=>{class t{constructor(e){this.sanitizer=e}transform(e,i){if(!i||!e)return e;const o=i.split(" ").filter(l=>!!l);if(!o||0===o.length)return e;const s=new RegExp(`(${o.join("|")})`,"ig"),a=e.toString().replace(s,'<span class="filter-highlight">$1</span>');return this.sanitizer.bypassSecurityTrustHtml(a)}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(Ku,16))}}static{this.\u0275pipe=n.EJ8({name:"highlight",type:t,pure:!0,standalone:!1})}}return t})();const gpt=["dropdown"];function vpt(t,r){if(1&t&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&t){const e=n.XpG().$implicit;n.R7$(),n.SpI(" (",null==e?null:e.Code,")")}}function _pt(t,r){if(1&t&&(n.j41(0,"div",5)(1,"span"),n.EFF(2),n.k0s(),n.DNE(3,vpt,2,1,"span",6),n.k0s()),2&t){const e=r.$implicit;n.R7$(2),n.JRh(null==e?null:e.Name),n.R7$(),n.Y8G("ngIf",null==e?null:e.Code)}}function ypt(t,r){if(1&t&&(n.nrm(0,"span",8),n.nI1(1,"highlight")),2&t){const e=n.XpG(),i=e.$implicit;n.Y8G("innerHtml",n.i5U(1,1," ("+(null==i?null:i.Code)+")",e.searchText),n.npT)}}function bpt(t,r){if(1&t&&(n.j41(0,"div",7),n.nrm(1,"span",8),n.nI1(2,"highlight"),n.DNE(3,ypt,2,4,"span",9),n.k0s()),2&t){const e=r.$implicit,i=r.searchText;n.R7$(),n.Y8G("innerHtml",n.i5U(2,2,null==e?null:e.Name,i),n.npT),n.R7$(2),n.Y8G("ngIf",null==e?null:e.Code)}}let Cpt=(()=>{class t extends T2{constructor(e,i){super(),this.agencyService=e,this.toasterService=i,this.dropdown=null,this.isFanoList=!1,this.agencySelected=new n.bkB,this.agencies=[],this.selectedAgency=null,this.loading=!1,this.onChange=o=>{},this.onTouched=()=>{}}ngOnInit(){this.loadAgencies()}ngOnChanges(e){const i=this.agencies.find(o=>-1==o.ID);e.includeStoreLevelDetail.currentValue&&!i&&this.agencies.splice(1,0,{Name:this.storeLevelText,Code:this.storeLevelCode,ID:-1}),!e.includeStoreLevelDetail.currentValue&&i&&(this.agencies=this.agencies.filter(o=>-1!=o.ID))}loadAgencies(){let e;this.loading=!0,e=this.isFanoList?this.agencyService.getAllAgencies():this.agencyService.getAssociatedAgenciesForFoodbank(),e.subscribe(i=>{this.agencies=[...i],this.includeStoreLevelDetail&&this.agencies.unshift({Name:this.storeLevelText,Code:this.storeLevelCode,ID:-1}),this.includeNoFilterItem&&this.agencies.unshift({Name:this.noFilterText,Code:""}),this.loading=!1},i=>{this.loading=!1,this.toasterService.displayErrorToast("Error","Error loading foodbank agencies")})}onAgencySelected(e){this.selectedAgency=e,this.agencySelected.emit(e),this.onChange(e)}onDropdownBlurred(){this.onTouched()}get value(){return this.selectedAgency}writeValue(e){this.selectedAgency=e,this.dropdown&&this.dropdown.setSelectedItem(e),this.onChange(this.selectedAgency)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(Ydt),n.rXU(tc))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["agency-picker"]],viewQuery:function(i,o){if(1&i&&n.GBs(gpt,5),2&i){let s;n.mGM(s=n.lsd())&&(o.dropdown=s.first)}},inputs:{isFanoList:"isFanoList"},outputs:{agencySelected:"agencySelected"},standalone:!1,features:[n.Jv_([{provide:tl,useExisting:(0,n.Rfq)(()=>t),multi:!0}]),n.Vt3,n.OA$],decls:7,vars:8,consts:[["selectedAgencyTemplate",""],["agencyTemplate",""],["dropdown",""],[1,"row"],["filterFields","Name,Code",3,"itemSelected","blurred","options","itemTemplate","selectedItemTemplate","loading","placeholder","showRequiredIcon","disabled"],[1,"agency-name","agency-selected"],[4,"ngIf"],[1,"agency-name"],[3,"innerHtml"],[3,"innerHtml",4,"ngIf"]],template:function(i,o){if(1&i){const s=n.RV6();n.DNE(0,_pt,4,2,"ng-template",null,0,n.C5r)(2,bpt,4,5,"ng-template",null,1,n.C5r),n.j41(4,"div",3)(5,"dropdown",4,2),n.bIt("itemSelected",function(l){return n.eBV(s),n.Njj(o.onAgencySelected(l))})("blurred",function(){return n.eBV(s),n.Njj(o.onDropdownBlurred())}),n.k0s()()}if(2&i){const s=n.sdS(1),a=n.sdS(3);n.R7$(5),n.Y8G("options",o.agencies)("itemTemplate",a)("selectedItemTemplate",s)("loading",o.loading)("placeholder",o.placeholder)("showRequiredIcon",o.showRequiredIcon)("disabled",o.disabled)("placeholder",o.placeholder)}},dependencies:[Uu,fi,Zd],styles:[".agency-name[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:14px}.agency-selected[_ngcontent-%COMP%]{margin-top:2px}.agency-name[_ngcontent-%COMP%]{padding-right:15px;overflow:hidden;text-overflow:ellipsis;min-height:17px}"]})}}return t})(),wc=(()=>{class t{constructor(e){this.angularJsState=null,this.angularJsLocation=null,this.history=[];const i=e.getAngularJsInjector(),o=i.get("$rootScope");this.angularJsState=i.get("$state"),this.angularJsLocation=i.get("$location"),o.$on("$stateChangeSuccess",(s,a,l)=>{this.history.push({stateName:a.name,params:{...l}})})}get currentLocation(){return this.angularJsLocation}navigate(e,i,o){this.angularJsState.go(e,i,o)}getUrl(e,i){return this.angularJsState.href(e,i)}getParam(e){return this.angularJsState.params[e]}getPreviousState(){return this.history.length>1?this.history[this.history.length-2]:null}navigatePreviousState(e,i){const o=this.getPreviousState();o?this.navigate(o.stateName,o.params):this.navigate(e,i)}static{this.\u0275fac=function(i){return new(i||t)(n.KVO(Jk))}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),KF=(()=>{class t{constructor(e){this.http=e}getAllFoodbankDonors(){return this.http.get("/api/foodbankdonorssearchgrid")}erpExclude(e){return this.http.post(`/api/foodbank/donor/${e}/erp/exclude`,{})}getAllDonors(){return this.http.get("/api/donors/all")}getAllFoodBankProduceDonors(){return this.http.get("/api/donors/foodbankproduce")}getNationalDonors(){return Yo(this.http.get("/api/donors/national"))}getDonorsByFoodbank(){return this.http.get("/api/donors/associated")}getFoodbankDonorLocations(){return this.http.get("/api/foodbank/current/donorlocations")}getDonorLocationsByAgency(e){return this.http.get(`/api/agencies/${e}/donorlocations`)}getDonorLocationsByDonor(e){return this.http.get(`/api/donor/${e}/donorlocations`)}getDonorLocation(e,i){return Yo(this.http.get(`/api/donors/${e}/locations/${i}`))}getTotalReceiptCount(e,i){return Yo(this.http.get(`/api/donors/${e}/locations/${i}/receiptcount`))}elevateDonorLocation(e,i){return Yo(this.http.put(`/api/donors/${e}/locations/${i.DonorLocationID}/elevate/`,i))}static{this.\u0275fac=function(i){return new(i||t)(n.KVO(Da))}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),tde=(()=>{class t{constructor(e){this.window=e}show(e){return this.window.confirm(e)}static{this.\u0275fac=function(i){return new(i||t)(n.KVO(Window))}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function wpt(t,r){if(1&t){const e=n.RV6();n.j41(0,"a",0),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.erpExclude())}),n.EFF(1,"Add ERP Exclusion"),n.k0s()}}let Tpt=(()=>{class t{get showErpExclusionButton(){return!this.isExcludedFromERPSynchronization}constructor(e,i,o,s){this.legacyNavigationService=e,this.donorService=i,this.toasterService=o,this.confirmationService=s,this.columnApi=null,this.gridApi=null,this.params=null,this.id=0,this.isExcludedFromERPSynchronization=!1,this.isNational=!1}agInit(e){this.params=e,this.columnApi=e.columnApi,this.column=e.column,this.gridApi=e.api,this.isExcludedFromERPSynchronization=e.data.IsExcludedFromERPSynchronization,this.isNational=e.data.IsNational,this.id=e.data.ID}navigateToDetailsLink(){this.legacyNavigationService.navigate("app.foodbank-donordetail",{id:this.id})}navigateToUsersLink(){this.legacyNavigationService.navigate("app.foodbank-donor-users",{id:this.id,donorName:this.params?.data.Name,isNationalDonor:this.isNational})}navigateToInvitationLink(){this.legacyNavigationService.navigate("app.foodbank-new-donor-invitation",{donorId:this.id})}erpExclude(){this.confirmationService.show("Permanently exclude all receipts from this donor from all future ERP synchronizations? Note: this change cannot be reversed.")&&this.donorService.erpExclude(this.id).subscribe(i=>{if(i.Successful){if(this.toasterService.displayInfoToast("Exclusion Added Successfully","The selected donor was updated successfully."),this.params){const o=this.gridApi?.getRowNode(this.id.toString());this.params.data.IsExcludedFromERPSynchronization=!0,o?.setData(this.params.data)}}else this.toasterService.displayErrorToast("Error Updating Exclusion","There was a error updating the donor's exclusion.")},()=>{this.toasterService.displayErrorToast("Error Updating Exclusion","There was a error updating the donor's exclusion.")})}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(wc),n.rXU(KF),n.rXU(tc),n.rXU(tde))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-donor-action-cell"]],standalone:!1,decls:6,vars:1,consts:[[1,"btn","btn-small","btn-primary","action-button",3,"click"],["class","btn btn-small btn-primary action-button",3,"click",4,"ngIf"]],template:function(i,o){1&i&&(n.j41(0,"a",0),n.bIt("click",function(){return o.navigateToDetailsLink()}),n.EFF(1,"Locations"),n.k0s(),n.qex(2),n.j41(3,"a",0),n.bIt("click",function(){return o.navigateToUsersLink()}),n.EFF(4,"Manage Users"),n.k0s(),n.DNE(5,wpt,2,0,"a",1),n.bVm()),2&i&&(n.R7$(5),n.Y8G("ngIf",o.showErpExclusionButton&&!o.isNational))},dependencies:[fi],encapsulation:2})}}return t})();function Spt(t,r){1&t&&(n.j41(0,"span",0)(1,"span",1),n.nrm(2,"i",2)(3,"i",3),n.k0s(),n.EFF(4," Excluded "),n.k0s())}function xpt(t,r){1&t&&(n.j41(0,"span",0)(1,"span",1),n.nrm(2,"i",4)(3,"i",2),n.k0s(),n.EFF(4," Included "),n.k0s())}let Ept=(()=>{class t{constructor(){this.excluded=!1,this.id=0}ngOnInit(){}agInit(e){this.id=e.data.ID,this.excluded=e.data.IsExcludedFromERPSynchronization}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["donor-sync-status-cell"]],standalone:!1,decls:2,vars:1,consts:[[1,"erp-status-span"],[1,"fa-stack"],[1,"fa","fa-exchange","fa-stack-1x","fa-inverse"],[1,"fa","fa-ban","fa-stack-2x","text-danger"],[1,"fa","fa-square","fa-stack-2x"]],template:function(i,o){1&i&&n.DNE(0,Spt,5,0,"span",0)(1,xpt,5,0,"span",0),2&i&&n.vxM(o.excluded?0:1)},encapsulation:2})}}return t})(),nde=(()=>{class t{constructor(){this.className="",this.displayValue=""}agInit(e){const i=e.className;i&&(this.className=i),this.displayValue=e.getValue?e.getValue():""}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-span-class-cell"]],hostAttrs:[1,"ag-cell-value"],standalone:!1,decls:3,vars:3,consts:[["ref","eCellValue","role","gridcell","aria-colindex","2",1,"ag-cell-value"]],template:function(i,o){1&i&&(n.j41(0,"span",0)(1,"span"),n.EFF(2),n.k0s()()),2&i&&(n.R7$(),n.HbH(o.className),n.R7$(),n.JRh(o.displayValue))},encapsulation:2})}}return t})(),Dpt=(()=>{class t{get rawValue(){return this.dateTime}get formattedValue(){return el()(this.dateTime).format("MM/DD/YYYY h:mma")}constructor(){this.dateTime=""}ngOnInit(){}agInit(e){e.getValue&&(this.dateTime=e.getValue())}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-date-time-cell"]],standalone:!1,decls:2,vars:3,consts:[[3,"title"]],template:function(i,o){1&i&&(n.j41(0,"span",0),n.EFF(1),n.k0s()),2&i&&(n.Y8G("title",o.formattedValue),n.BMQ("data-time",o.formattedValue),n.R7$(),n.JRh(o.formattedValue))},encapsulation:2})}}return t})(),kpt=(()=>{class t{constructor(){this.donorTypes=[]}get donorTypesCommaSeparated(){return this.donorTypes.join(", ")}ngOnInit(){}agInit(e){const i=e.data,o=[];i.IsNational?(i.IsModuleMealConnectDonorEnabled&&o.push("Blue Receipt"),i.IsModuleNationalProduceDonorEnabled&&o.push("Produce Matching")):o.push(i.IsShared?"Local (Shared)":"Local"),this.donorTypes=o}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-donor-type-cell"]],standalone:!1,decls:2,vars:1,template:function(i,o){1&i&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&i&&(n.R7$(),n.JRh(o.donorTypesCommaSeparated))},encapsulation:2})}}return t})();const Uq="foodbankadmin",ide="foodbankepancoord";let Zb=(()=>{class t{constructor(e){this.angularInjectorService=e,this.angularJsClaimsService=null;const i=e.getAngularJsInjector();this.angularJsClaimsService=i.get("claimsService")}get userRole(){return this.angularJsClaimsService.getUserContext().userRole}get userName(){return this.angularJsClaimsService.getUserContext().userName}get userEntityId(){return this.angularJsClaimsService.getUserContext().userEntityId}isUserInRole(e){return e.toUpperCase()===this.userRole.toUpperCase()}isUserInAnyRole(e){const i=this.userRole;return e.some(o=>o.toUpperCase()===i.toUpperCase())}static{this.\u0275fac=function(i){return new(i||t)(n.KVO(Jk))}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Opt=b(7586),Wv=b.n(Opt);const Fpt=["dateFilter"];let Ppt=(()=>{class t{constructor(){this.singleDatePicker=!1,this.placeholder="filter by date",this.dateRangeSelected=new n.bkB,this.dateRangeCleared=new n.bkB,this.datePickerControl=null,this.datePickerOptions=null}ngAfterViewInit(){this.datePickerOptions={singleDatePicker:this.singleDatePicker,ranges:this.singleDatePicker?void 0:{Today:[Wv()().toDate(),Wv()().add(1,"day").toDate()],Yesterday:[Wv()().subtract(1,"day").toDate(),Wv()().subtract(1,"day").toDate()],"Last 7 Days":[Wv()().subtract(6,"days").toDate(),Wv()().toDate()],"Last 30 Days":[Wv()().subtract(29,"days").toDate(),Wv()().toDate()],"This Month":[Wv()().startOf("month").toDate(),Wv()().endOf("month").toDate()],"Last Month":[Wv()().subtract(1,"month").startOf("month").toDate(),Wv()().subtract(1,"month").endOf("month").toDate()]}},this.datePickerControl=$(this.dateFilter.nativeElement).daterangepicker(this.datePickerOptions,(e,i)=>{e&i&&e.isValid()&&i.isValid()&&this.datePickerControl.val()?this.dateRangeSelected.emit({startDate:e.toDate(),endDate:i.toDate()}):""===e&&""===i&&this.dateRangeCleared.emit()})}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["date-picker"]],viewQuery:function(i,o){if(1&i&&n.GBs(Fpt,5),2&i){let s;n.mGM(s=n.lsd())&&(o.dateFilter=s.first)}},inputs:{singleDatePicker:"singleDatePicker",placeholder:"placeholder"},outputs:{dateRangeSelected:"dateRangeSelected",dateRangeCleared:"dateRangeCleared"},standalone:!1,decls:5,vars:1,consts:[["dateFilter",""],[1,"input-group"],[1,"input-group-addon"],[1,"icon-calendar"],["type","text",1,"form-control",3,"placeholder"]],template:function(i,o){1&i&&(n.j41(0,"div",1)(1,"span",2),n.nrm(2,"i",3),n.k0s(),n.nrm(3,"input",4,0),n.k0s()),2&i&&(n.R7$(3),n.Y8G("placeholder",o.placeholder))},encapsulation:2})}}return t})();function Lpt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",7)(1,"a",8),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.newDonorButtonClick())}),n.nrm(2,"i",9),n.EFF(3," New Local Donor Organization"),n.k0s()()}}let uI={height:"100%"},Npt=(()=>{class t{constructor(e,i){this.claimsService=e,this.legacyNavigationService=i,this.newDonorLinkState="app.foodbank-donors-add-local",this.showAddDonorButton=!1,this.gridOptions={getRowNodeId:o=>o.ID,columnDefs:[{headerName:"Donor Banner Number",field:"Code",minWidth:80,width:120,cellStyle:uI,cellRendererFramework:nde,cellRendererParams:{className:"code-grid-value"}},{headerName:"Donor",field:"Name",minWidth:120,width:200,cellStyle:uI,cellRendererFramework:nde,cellRendererParams:{className:"gridcell"}},{headerName:"Type",field:"isNational",minWidth:60,width:100,tooltipField:"",cellStyle:uI,cellRendererFramework:kpt},{headerName:"Sync Status",field:"isExcludedFromERPSynchronization",tooltipField:"",minWidth:80,width:100,cellStyle:uI,cellRendererFramework:Ept},{headerName:"Created",field:"Created",minWidth:120,tooltipField:"",cellStyle:uI,cellRendererFramework:Dpt},{headerName:"Action",colId:"Action",minWidth:425,width:425,suppressMenu:!0,filter:!1,sortable:!1,mobileIndex:0,cellStyle:uI,cellRendererFramework:Tpt}]},this.searchText="",this.dateFilterStart="",this.dateFilterEnd=""}ngOnInit(){this.showAddDonorButton=this.claimsService.isUserInAnyRole(["foodcoordcoops","foodcoordstateasso"])}filterDatesSelected(e){this.dateFilterStart=e.startDate.toString(),this.dateFilterEnd=e.endDate.toString()}filterDatesCleared(){this.dateFilterStart="",this.dateFilterEnd=""}newDonorButtonClick(){this.legacyNavigationService.navigate(this.newDonorLinkState,null)}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(Zb),n.rXU(wc))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-donor-list"]],viewQuery:function(i,o){if(1&i&&n.GBs(yg,5),2&i){let s;n.mGM(s=n.lsd())&&(o.grid=s.first)}},hostAttrs:[1,"full-height-element"],standalone:!1,decls:7,vars:7,consts:[[1,"row","filter-row"],["role","search",1,"col-md-6","col-sm-12"],["name","donorSearchField","id","donorSearchField","type","text","placeholder","filter by donor name, number, or zip code",1,"form-control",3,"ngModelChange","ngModel"],[1,"col-md-6","col-sm-12"],[3,"dateRangeSelected","dateRangeCleared"],["height","100%","endpoint","/api/foodbankdonorsgrid",3,"gridOptions","filterText","startDate","endDate","dateProperty"],["class","lower-action-bar display-flex justify-end",4,"ngIf"],[1,"lower-action-bar","display-flex","justify-end"],[1,"btn","btn-primary",3,"click"],[1,"icon-plus"]],template:function(i,o){1&i&&(n.j41(0,"div",0)(1,"div",1)(2,"input",2),n.mxI("ngModelChange",function(a){return n.DH7(o.searchText,a)||(o.searchText=a),a}),n.k0s()(),n.j41(3,"div",3)(4,"date-picker",4),n.bIt("dateRangeSelected",function(a){return o.filterDatesSelected(a)})("dateRangeCleared",function(){return o.filterDatesCleared()}),n.k0s()()(),n.nrm(5,"grid",5),n.DNE(6,Lpt,4,0,"div",6)),2&i&&(n.R7$(2),n.R50("ngModel",o.searchText),n.R7$(3),n.Y8G("gridOptions",o.gridOptions)("filterText",o.searchText)("startDate",o.dateFilterStart)("endDate",o.dateFilterEnd)("dateProperty","Created"),n.R7$(),n.Y8G("ngIf",!o.showAddDonorButton))},dependencies:[fi,Ppt,yg,Cc,_o,ko],encapsulation:2})}}return t})();var Io=function(){return Io=Object.assign||function(r){for(var e,i=1,o=arguments.length;i<o;i++)for(var s in e=arguments[i])Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s]);return r},Io.apply(this,arguments)};function $q(t,r){var e={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&r.indexOf(i)<0&&(e[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(t);o<i.length;o++)r.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(t,i[o])&&(e[i[o]]=t[i[o]])}return e}function Hl(t){var r="function"==typeof Symbol&&Symbol.iterator,e=r&&t[r],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function hc(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var o,a,i=e.call(t),s=[];try{for(;(void 0===r||r-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return s}function $u(t,r,e){if(e||2===arguments.length)for(var s,i=0,o=r.length;i<o;i++)(s||!(i in r))&&(s||(s=Array.prototype.slice.call(r,0,i)),s[i]=r[i]);return t.concat(s||Array.prototype.slice.call(r))}var zG,_u=function(t){return t.Start="xstate.start",t.Stop="xstate.stop",t.Raise="xstate.raise",t.Send="xstate.send",t.Cancel="xstate.cancel",t.NullEvent="",t.Assign="xstate.assign",t.After="xstate.after",t.DoneState="done.state",t.DoneInvoke="done.invoke",t.Log="xstate.log",t.Init="xstate.init",t.Invoke="xstate.invoke",t.ErrorExecution="error.execution",t.ErrorCommunication="error.communication",t.ErrorPlatform="error.platform",t.ErrorCustom="xstate.error",t.Update="xstate.update",t.Pure="xstate.pure",t.Choose="xstate.choose",t}(_u||{}),QF=function(t){return t.Parent="#_parent",t.Internal="#_internal",t}(QF||{}),Yq=_u.Start,Wq=_u.Stop,JF=_u.Raise,WG=_u.Send,rde=_u.Cancel,Gpt=_u.NullEvent,ode=_u.Assign,sde=_u.Log,Bpt=_u.Init,zq=_u.Invoke,ade=_u.ErrorPlatform,Vpt=_u.ErrorCustom,lde=_u.Update,jpt=_u.Choose,Hpt=_u.Pure,ude={},qq="xstate.guard";function Xq(t,r,e){void 0===e&&(e=".");var i=ZF(t,e),o=ZF(r,e);return ic(o)?!!ic(i)&&o===i:ic(i)?i in o:Object.keys(i).every(function(s){return s in o&&Xq(i[s],o[s])})}function dde(t){try{return ic(t)||"number"==typeof t?"".concat(t):t.type}catch{throw new Error("Events must be strings or objects with a string event.type property.")}}function Kq(t,r){try{return dI(t)?t:t.toString().split(r)}catch{throw new Error("'".concat(t,"' is not a valid state path."))}}function ZF(t,r){return function $pt(t){return"object"==typeof t&&"value"in t&&"context"in t&&"event"in t&&"_event"in t}(t)?t.value:dI(t)?qG(t):"string"!=typeof t?t:qG(Kq(t,r))}function qG(t){if(1===t.length)return t[0];for(var r={},e=r,i=0;i<t.length-1;i++)i===t.length-2?e[t[i]]=t[i+1]:(e[t[i]]={},e=e[t[i]]);return r}function eP(t,r){for(var e={},i=Object.keys(t),o=0;o<i.length;o++){var s=i[o];e[s]=r(t[s],s,t,o)}return e}function pde(t,r,e){var i,o,s={};try{for(var a=Hl(Object.keys(t)),l=a.next();!l.done;l=a.next()){var c=l.value,d=t[c];e(d)&&(s[c]=r(d,c,t))}}catch(f){i={error:f}}finally{try{l&&!l.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}return s}var Ypt=function(t){return function(r){var e,i,o=r;try{for(var s=Hl(t),a=s.next();!a.done;a=s.next())o=o[a.value]}catch(c){e={error:c}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(e)throw e.error}}return o}};function XG(t){return t?ic(t)?[[t]]:_d(Object.keys(t).map(function(e){var i=t[e];return"string"==typeof i||i&&Object.keys(i).length?XG(t[e]).map(function(o){return[e].concat(o)}):[[e]]})):[[]]}function _d(t){var r;return(r=[]).concat.apply(r,$u([],hc(t),!1))}function hde(t){return dI(t)?t:[t]}function a0(t){return void 0===t?[]:hde(t)}function KG(t,r,e){var i,o;if(fc(t))return t(r,e.data);var s={};try{for(var a=Hl(Object.keys(t)),l=a.next();!l.done;l=a.next()){var c=l.value,d=t[c];s[c]=fc(d)?d(r,e.data):d}}catch(f){i={error:f}}finally{try{l&&!l.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}return s}function fde(t){return!!(t instanceof Promise||null!==t&&(fc(t)||"object"==typeof t)&&fc(t.then))}function mde(t,r){return eP(t.states,function(e,i){if(e){var o=(ic(r)?void 0:r[i])||(e?e.current:void 0);if(o)return{current:o,states:mde(e,o)}}})}function Kpt(t,r){return{current:r,states:mde(t,r)}}function gde(t,r,e,i){return t&&e.reduce(function(s,a){var l,c,d=a.assignment,f={state:i,action:a,_event:r},v={};if(fc(d))v=d(s,r.data,f);else try{for(var w=Hl(Object.keys(d)),x=w.next();!x.done;x=w.next()){var I=x.value,M=d[I];v[I]=fc(M)?M(s,r.data,f):M}}catch(F){l={error:F}}finally{try{x&&!x.done&&(c=w.return)&&c.call(w)}finally{if(l)throw l.error}}return Object.assign({},s,v)},t)}function dI(t){return Array.isArray(t)}function fc(t){return"function"==typeof t}function ic(t){return"string"==typeof t}function vde(t,r){if(t)return ic(t)?{type:qq,name:t,predicate:r?r[t]:void 0}:fc(t)?{type:qq,name:t.name,predicate:t}:t}var wT=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function S2(t){return!!t&&"__xstatenode"in t}function QG(t,r){return ic(t)||"number"==typeof t?Io({type:t},r):t}function Bh(t,r){if(!ic(t)&&"$$type"in t&&"scxml"===t.$$type)return t;var e=QG(t);return Io({name:e.type,data:e,$$type:"scxml",type:"external"},r)}function pI(t,r){return hde(r).map(function(i){return typeof i>"u"||"string"==typeof i||S2(i)?{target:i,event:t}:Io(Io({},i),{event:t})})}function _de(t,r,e,i,o){var s=t.options.guards,a={state:o,cond:r,_event:i};if(r.type===qq)return(s?.[r.name]||r.predicate)(e,i.data,a);var l=s?.[r.type];if(!l)throw new Error("Guard '".concat(r.type,"' is not implemented on machine '").concat(t.id,"'."));return l(e,i.data,a)}function yde(t){return"string"==typeof t?{type:t}:t}function JG(t,r,e){var i=function(){},o="object"==typeof t,s=o?t:null;return{next:((o?t.next:t)||i).bind(s),error:((o?t.error:r)||i).bind(s),complete:((o?t.complete:e)||i).bind(s)}}function ZG(t,r){return"".concat(t,":invocation[").concat(r,"]")}function Qq(t){return(t.type===JF||t.type===WG&&t.to===QF.Internal)&&"number"!=typeof t.delay}(zG={})[wT]=function(){return this},zG[Symbol.observable]=function(){return this};var e6=function(t){return"atomic"===t.type||"final"===t.type};function bde(t){return Object.keys(t.states).map(function(r){return t.states[r]})}function tP(t){return bde(t).filter(function(r){return"history"!==r.type})}function Cde(t){var r=[t];return e6(t)?r:r.concat(_d(tP(t).map(Cde)))}function nP(t,r){var e,i,o,s,a,l,c,d,v=Jq(new Set(t)),w=new Set(r);try{for(var x=Hl(w),I=x.next();!I.done;I=x.next())for(var F=(M=I.value).parent;F&&!w.has(F);)w.add(F),F=F.parent}catch(bt){e={error:bt}}finally{try{I&&!I.done&&(i=x.return)&&i.call(x)}finally{if(e)throw e.error}}var re=Jq(w);try{for(var pe=Hl(w),we=pe.next();!we.done;we=pe.next())if("compound"!==(M=we.value).type||re.get(M)&&re.get(M).length){if("parallel"===M.type)try{for(var je=(a=void 0,Hl(tP(M))),tt=je.next();!tt.done;tt=je.next()){var nt=tt.value;w.has(nt)||(w.add(nt),v.get(nt)?v.get(nt).forEach(function(Wt){return w.add(Wt)}):nt.initialStateNodes.forEach(function(Wt){return w.add(Wt)}))}}catch(Wt){a={error:Wt}}finally{try{tt&&!tt.done&&(l=je.return)&&l.call(je)}finally{if(a)throw a.error}}}else v.get(M)?v.get(M).forEach(function(Wt){return w.add(Wt)}):M.initialStateNodes.forEach(function(Wt){return w.add(Wt)})}catch(bt){o={error:bt}}finally{try{we&&!we.done&&(s=pe.return)&&s.call(pe)}finally{if(o)throw o.error}}try{for(var rt=Hl(w),lt=rt.next();!lt.done;lt=rt.next()){var M;for(F=(M=lt.value).parent;F&&!w.has(F);)w.add(F),F=F.parent}}catch(bt){c={error:bt}}finally{try{lt&&!lt.done&&(d=rt.return)&&d.call(rt)}finally{if(c)throw c.error}}return w}function wde(t,r){var e=r.get(t);if(!e)return{};if("compound"===t.type){var i=e[0];if(!i)return{};if(e6(i))return i.key}var o={};return e.forEach(function(s){o[s.key]=wde(s,r)}),o}function Jq(t){var r,e,i=new Map;try{for(var o=Hl(t),s=o.next();!s.done;s=o.next()){var a=s.value;i.has(a)||i.set(a,[]),a.parent&&(i.has(a.parent)||i.set(a.parent,[]),i.get(a.parent).push(a))}}catch(l){r={error:l}}finally{try{s&&!s.done&&(e=o.return)&&e.call(o)}finally{if(r)throw r.error}}return i}function tht(t,r){return wde(t,Jq(nP([t],r)))}function iP(t,r){return Array.isArray(t)?t.some(function(e){return e===r}):t instanceof Set&&t.has(r)}function t6(t,r){return"compound"===r.type?tP(r).some(function(e){return"final"===e.type&&iP(t,e)}):"parallel"===r.type&&tP(r).every(function(e){return t6(t,e)})}function Tde(t){return new Set(_d(t.map(function(r){return r.tags})))}var hI=Bh({type:Bpt});function Zq(t,r){return r&&r[t]||void 0}function rP(t,r){var e;if(ic(t)||"number"==typeof t)e=fc(i=Zq(t,r))?{type:t,exec:i}:i||{type:t,exec:void 0};else if(fc(t))e={type:t.name||t.toString(),exec:t};else{var i;if(fc(i=Zq(t.type,r)))e=Io(Io({},t),{exec:i});else if(i){var o=i.type||t.type;e=Io(Io(Io({},i),t),{type:o})}else e=t}return e}var TT=function(t,r){return t?(dI(t)?t:[t]).map(function(i){return rP(i,r)}):[]};function eX(t){var r=rP(t);return Io(Io({id:ic(t)?t:r.id},r),{type:r.type})}function n6(t,r){var e="".concat(_u.DoneState,".").concat(t);return{type:e,data:r,toString:function(){return e}}}function i6(t,r){var e="".concat(_u.DoneInvoke,".").concat(t);return{type:e,data:r,toString:function(){return e}}}function sP(t,r){var e="".concat(_u.ErrorPlatform,".").concat(t);return{type:e,data:r,toString:function(){return e}}}function r6(t,r,e,i,o,s,a){void 0===a&&(a=!1);var l=a?[]:function(t){var r,e,i=[];try{for(var o=Hl(t),s=o.next();!s.done;s=o.next())for(var a=s.value,l=0;l<a.actions.length;)a.actions[l].type!==ode?l++:(i.push(a.actions[l]),a.actions.splice(l,1))}catch(c){r={error:c}}finally{try{s&&!s.done&&(e=o.return)&&e.call(o)}finally{if(r)throw r.error}}return i}(o),c=l.length?gde(e,i,l,r):e,d=a?[e]:void 0,f=[];function v(I,M){var F;switch(M.type){case JF:var re=function oht(t,r,e,i){var a,o={_event:e},s=Bh(fc(t.event)?t.event(r,e.data,o):t.event);if(ic(t.delay)){var l=i&&i[t.delay];a=fc(l)?l(r,e.data,o):l}else a=fc(t.delay)?t.delay(r,e.data,o):t.delay;return Io(Io({},t),{type:JF,_event:s,delay:a})}(M,c,i,t.options.delays);return s&&"number"==typeof re.delay&&s(re,c,i),re;case WG:var pe=function sht(t,r,e,i){var a,o={_event:e},s=Bh(fc(t.event)?t.event(r,e.data,o):t.event);if(ic(t.delay)){var l=i&&i[t.delay];a=fc(l)?l(r,e.data,o):l}else a=fc(t.delay)?t.delay(r,e.data,o):t.delay;var c=fc(t.to)?t.to(r,e.data,o):t.to;return Io(Io({},t),{to:c,_event:s,event:s.data,delay:a})}(M,c,i,t.options.delays);return s&&pe.to!==QF.Internal&&("entry"===I?f.push(pe):s(pe,c,i)),pe;case sde:var je=function(t,r,e){return Io(Io({},t),{value:ic(t.expr)?t.expr:t.expr(r,e.data,{_event:e})})}(M,c,i);return s?.(je,c,i),je;case jpt:if(!(nt=null===(F=M.conds.find(function(Lr){var Jo=vde(Lr.cond,t.options.guards);return!Jo||_de(t,Jo,c,i,s?void 0:r)}))||void 0===F?void 0:F.actions))return[];var rt=hc(r6(t,r,c,i,[{type:I,actions:TT(a0(nt),t.options.actions)}],s,a),2),lt=rt[0];return c=rt[1],d?.push(c),lt;case Hpt:var nt;if(!(nt=M.get(c,i.data)))return[];var Wt=hc(r6(t,r,c,i,[{type:I,actions:TT(a0(nt),t.options.actions)}],s,a),2),Zt=Wt[0];return c=Wt[1],d?.push(c),Zt;case Wq:return je=function pht(t,r,e){var i=fc(t.activity)?t.activity(r,e.data):t.activity;return{type:_u.Stop,activity:"string"==typeof i?{id:i}:i}}(M,c,i),s?.(je,e,i),je;case ode:c=gde(c,i,[M],s?void 0:r),d?.push(c);break;default:var ci=rP(M,t.options.actions),Wi=ci.exec;if(s)s(ci,c,i);else if(Wi&&d){var ki=d.length-1,Xr=Io(Io({},ci),{exec:function(Lr){for(var Jo=[],cr=1;cr<arguments.length;cr++)Jo[cr-1]=arguments[cr];Wi.apply(void 0,$u([d[ki]],hc(Jo),!1))}});ci=Xr}return ci}}return[_d(o.map(function w(I){var M,F,re=[];try{for(var pe=Hl(I.actions),we=pe.next();!we.done;we=pe.next()){var tt=v(I.type,we.value);tt&&(re=re.concat(tt))}}catch(nt){M={error:nt}}finally{try{we&&!we.done&&(F=pe.return)&&F.call(pe)}finally{if(M)throw M.error}}return f.forEach(function(nt){s(nt,c,i)}),f.length=0,re})),c]}function xde(t,r){if(t===r)return!0;if(void 0===t||void 0===r)return!1;if(ic(t)||ic(r))return t===r;var e=Object.keys(t),i=Object.keys(r);return e.length===i.length&&e.every(function(o){return xde(t[o],r[o])})}var Wy=function(){function t(r){var i,e=this;this.actions=[],this.activities=ude,this.meta={},this.events=[],this.value=r.value,this.context=r.context,this._event=r._event,this._sessionid=r._sessionid,this.event=this._event.data,this.historyValue=r.historyValue,this.history=r.history,this.actions=r.actions||[],this.activities=r.activities||ude,this.meta=function iht(t){return void 0===t&&(t=[]),t.reduce(function(r,e){return void 0!==e.meta&&(r[e.id]=e.meta),r},{})}(r.configuration),this.events=r.events||[],this.matches=this.matches.bind(this),this.toStrings=this.toStrings.bind(this),this.configuration=r.configuration,this.transitions=r.transitions,this.children=r.children,this.done=!!r.done,this.tags=null!==(i=Array.isArray(r.tags)?new Set(r.tags):r.tags)&&void 0!==i?i:new Set,this.machine=r.machine,Object.defineProperty(this,"nextEvents",{get:function(){return function nht(t){return $u([],hc(new Set(_d($u([],hc(t.map(function(r){return r.ownEvents})),!1)))),!1)}(e.configuration)}})}return t.from=function(r,e){return r instanceof t?r.context!==e?new t({value:r.value,context:e,_event:r._event,_sessionid:null,historyValue:r.historyValue,history:r.history,actions:[],activities:r.activities,meta:{},events:[],configuration:[],transitions:[],children:{}}):r:new t({value:r,context:e,_event:hI,_sessionid:null,historyValue:void 0,history:void 0,actions:[],activities:void 0,meta:void 0,events:[],configuration:[],transitions:[],children:{}})},t.create=function(r){return new t(r)},t.inert=function(r,e){return r instanceof t?r.actions.length?new t({value:r.value,context:e,_event:hI,_sessionid:null,historyValue:r.historyValue,history:r.history,activities:r.activities,configuration:r.configuration,transitions:[],children:{}}):r:t.from(r,e)},t.prototype.toStrings=function(r,e){var i=this;if(void 0===r&&(r=this.value),void 0===e&&(e="."),ic(r))return[r];var o=Object.keys(r);return o.concat.apply(o,$u([],hc(o.map(function(s){return i.toStrings(r[s],e).map(function(a){return s+e+a})})),!1))},t.prototype.toJSON=function(){var e=this.tags,i=$q(this,["configuration","transitions","tags","machine"]);return Io(Io({},i),{tags:Array.from(e)})},t.prototype.matches=function(r){return Xq(r,this.value)},t.prototype.hasTag=function(r){return this.tags.has(r)},t.prototype.can=function(r){var e,i=null===(e=this.machine)||void 0===e?void 0:e.getTransitionData(this,r);return!!i?.transitions.length&&i.transitions.some(function(o){return void 0!==o.target||o.actions.length})},t}(),o6=[],fI=function(t,r){o6.push(t);var e=r(t);return o6.pop(),e};function Ede(t){var r;return(r={id:t,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:t}}})[wT]=function(){return this},r}function Dde(t,r,e){var i=Ede(r);if(i.deferred=!0,S2(t)){var o=i.state=fI(void 0,function(){return(e?t.withContext(e):t).initialState});i.getSnapshot=function(){return o}}return i}function Cht(t){return"string"==typeof t?{type:t,toString:function(){return t}}:t}function s6(t){return Io(Io({type:zq},t),{toJSON:function(){var r=$q(t,["onDone","onError"]);return Io(Io({},r),{type:zq,src:Cht(t.src)})}})}var gI={},vI=function(t){return"#"===t[0]},Sht=function(){function t(r,e,i,o){void 0===i&&(i="context"in r?r.context:void 0);var a,s=this;this.config=r,this._context=i,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.tags=[],this.options=Object.assign({actions:{},guards:{},services:{},activities:{},delays:{}},e),this.parent=o?.parent,this.key=this.config.key||o?.key||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:"."),this.id=this.config.id||$u([this.machine.key],hc(this.path),!1).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:null!==(a=this.config.schema)&&void 0!==a?a:{},this.description=this.config.description,this.initial=this.config.initial,this.states=this.config.states?eP(this.config.states,function(d,f){var v,w=new t(d,{},void 0,{parent:s,key:f});return Object.assign(s.idMap,Io(((v={})[w.id]=w,v),w.idMap)),w}):gI;var l=0;(function c(d){var f,v;d.order=l++;try{for(var w=Hl(bde(d)),x=w.next();!x.done;x=w.next())c(x.value)}catch(M){f={error:M}}finally{try{x&&!x.done&&(v=w.return)&&v.call(w)}finally{if(f)throw f.error}}})(this),this.history=!0===this.config.history?"shallow":this.config.history||!1,this._transient=!!this.config.always||!!this.config.on&&(Array.isArray(this.config.on)?this.config.on.some(function(d){return""===d.event}):""in this.config.on),this.strict=!!this.config.strict,this.onEntry=a0(this.config.entry||this.config.onEntry).map(function(d){return rP(d)}),this.onExit=a0(this.config.exit||this.config.onExit).map(function(d){return rP(d)}),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=a0(this.config.invoke).map(function(d,f){var v,w;if(S2(d)){var x=ZG(s.id,f);return s.machine.options.services=Io(((v={})[x]=d,v),s.machine.options.services),s6({src:x,id:x})}if(ic(d.src))return x=d.id||ZG(s.id,f),s6(Io(Io({},d),{id:x,src:d.src}));if(S2(d.src)||fc(d.src))return x=d.id||ZG(s.id,f),s.machine.options.services=Io(((w={})[x]=d.src,w),s.machine.options.services),s6(Io(Io({id:x},d),{src:x}));var I=d.src;return s6(Io(Io({id:ZG(s.id,f)},d),{src:I}))}),this.activities=a0(this.config.activities).concat(this.invoke).map(function(d){return eX(d)}),this.transition=this.transition.bind(this),this.tags=a0(this.config.tags)}return t.prototype._init=function(){this.__cache.transitions||Cde(this).forEach(function(r){return r.on})},t.prototype.withConfig=function(r,e){var i=this.options,s=i.activities,a=i.guards,l=i.services,c=i.delays;return new t(this.config,{actions:Io(Io({},i.actions),r.actions),activities:Io(Io({},s),r.activities),guards:Io(Io({},a),r.guards),services:Io(Io({},l),r.services),delays:Io(Io({},c),r.delays)},e??this.context)},t.prototype.withContext=function(r){return new t(this.config,this.options,r)},Object.defineProperty(t.prototype,"context",{get:function(){return fc(this._context)?this._context():this._context},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:eP(this.states,function(r){return r.definition}),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke,description:this.description,tags:this.tags}},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){return this.definition},Object.defineProperty(t.prototype,"on",{get:function(){return this.__cache.on?this.__cache.on:this.__cache.on=this.transitions.reduce(function(e,i){return e[i.eventType]=e[i.eventType]||[],e[i.eventType].push(i),e},{})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),t.prototype.getCandidates=function(r){if(this.__cache.candidates[r])return this.__cache.candidates[r];var e=""===r,i=this.transitions.filter(function(o){var s=o.eventType===r;return e?s:s||"*"===o.eventType});return this.__cache.candidates[r]=i,i},t.prototype.getDelayedTransitions=function(){var r=this,e=this.config.after;if(!e)return[];var i=function(s,a){var c=function hht(t,r){var e=r?"#".concat(r):"";return"".concat(_u.After,"(").concat(t,")").concat(e)}(fc(s)?"".concat(r.id,":delay[").concat(a,"]"):s,r.id);return r.onEntry.push(function oP(t,r){return{to:r?r.to:void 0,type:WG,event:fc(t)?t:QG(t),delay:r?r.delay:void 0,id:r&&void 0!==r.id?r.id:fc(t)?t.name:dde(t)}}(c,{delay:s})),r.onExit.push(function(t){return{type:rde,sendId:t}}(c)),c};return(dI(e)?e.map(function(s,a){var l=i(s.delay,a);return Io(Io({},s),{event:l})}):_d(Object.keys(e).map(function(s,a){var l=e[s],c=ic(l)?{target:l}:l,d=isNaN(+s)?s:+s,f=i(d,a);return a0(c).map(function(v){return Io(Io({},v),{event:f,delay:d})})}))).map(function(s){var a=s.delay;return Io(Io({},r.formatTransition(s)),{delay:a})})},t.prototype.getStateNodes=function(r){var e,i=this;if(!r)return[];var o=r instanceof Wy?r.value:ZF(r,this.delimiter);if(ic(o)){var s=this.getStateNode(o).initial;return void 0!==s?this.getStateNodes(((e={})[o]=s,e)):[this,this.states[o]]}var a=Object.keys(o),l=[this];return l.push.apply(l,$u([],hc(_d(a.map(function(c){return i.getStateNode(c).getStateNodes(o[c])}))),!1)),l},t.prototype.handles=function(r){var e=dde(r);return this.events.includes(e)},t.prototype.resolveState=function(r){var e=r instanceof Wy?r:Wy.create(r),i=Array.from(nP([],this.getStateNodes(e.value)));return new Wy(Io(Io({},e),{value:this.resolve(e.value),configuration:i,done:t6(i,this),tags:Tde(i),machine:this.machine}))},t.prototype.transitionLeafNode=function(r,e,i){var s=this.getStateNode(r).next(e,i);return s&&s.transitions.length?s:this.next(e,i)},t.prototype.transitionCompoundNode=function(r,e,i){var o=Object.keys(r),a=this.getStateNode(o[0])._transition(r[o[0]],e,i);return a&&a.transitions.length?a:this.next(e,i)},t.prototype.transitionParallelNode=function(r,e,i){var o,s,a={};try{for(var l=Hl(Object.keys(r)),c=l.next();!c.done;c=l.next()){var d=c.value,f=r[d];if(f){var w=this.getStateNode(d)._transition(f,e,i);w&&(a[d]=w)}}}catch(re){o={error:re}}finally{try{c&&!c.done&&(s=l.return)&&s.call(l)}finally{if(o)throw o.error}}var x=Object.keys(a).map(function(re){return a[re]}),I=_d(x.map(function(re){return re.transitions}));if(!x.some(function(re){return re.transitions.length>0}))return this.next(e,i);var F=_d(Object.keys(a).map(function(re){return a[re].configuration}));return{transitions:I,exitSet:_d(x.map(function(re){return re.exitSet})),configuration:F,source:e,actions:_d(Object.keys(a).map(function(re){return a[re].actions}))}},t.prototype._transition=function(r,e,i){return ic(r)?this.transitionLeafNode(r,e,i):1===Object.keys(r).length?this.transitionCompoundNode(r,e,i):this.transitionParallelNode(r,e,i)},t.prototype.getTransitionData=function(r,e){return this._transition(r.value,r,Bh(e))},t.prototype.next=function(r,e){var i,o,d,s=this,a=e.name,l=[],c=[];try{for(var f=Hl(this.getCandidates(a)),v=f.next();!v.done;v=f.next()){var w=v.value,x=w.cond,I=w.in,M=r.context,F=!I||(ic(I)&&vI(I)?r.matches(ZF(this.getStateNodeById(I).path,this.delimiter)):Xq(ZF(I,this.delimiter),Ypt(this.path.slice(0,-2))(r.value))),re=!1;try{re=!x||_de(this.machine,x,M,e,r)}catch(je){throw new Error("Unable to evaluate guard '".concat(x.name||x.type,"' in transition for event '").concat(a,"' in state node '").concat(this.id,"':\n").concat(je.message))}if(re&&F){void 0!==w.target&&(c=w.target),l.push.apply(l,$u([],hc(w.actions),!1)),d=w;break}}}catch(je){i={error:je}}finally{try{v&&!v.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}if(d){if(!c.length)return{transitions:[d],exitSet:[],configuration:r.value?[this]:[],source:r,actions:l};var pe=_d(c.map(function(je){return s.getRelativeStateNodes(je,r.historyValue)}));return{transitions:[d],exitSet:d.internal?[]:_d(c.map(function(je){return s.getPotentiallyReenteringNodes(je)})),configuration:pe,source:r,actions:l}}},t.prototype.getPotentiallyReenteringNodes=function(r){if(this.order<r.order)return[this];for(var e=[],i=this,o=r;i&&i!==o;)e.push(i),i=i.parent;return i!==o?[]:(e.push(o),e)},t.prototype.getActions=function(r,e,i,o,s,a,l){var c,d,f,v,w=this,x=a?nP([],this.getStateNodes(a.value)):[],I=new Set;try{for(var M=Hl(Array.from(r).sort(function(Zt,en){return Zt.order-en.order})),F=M.next();!F.done;F=M.next())(!iP(x,re=F.value)||iP(i.exitSet,re)||re.parent&&I.has(re.parent))&&I.add(re)}catch(Zt){c={error:Zt}}finally{try{F&&!F.done&&(d=M.return)&&d.call(M)}finally{if(c)throw c.error}}try{for(var pe=Hl(x),we=pe.next();!we.done;we=pe.next()){var re;(!iP(r,re=we.value)||iP(i.exitSet,re.parent))&&i.exitSet.push(re)}}catch(Zt){f={error:Zt}}finally{try{we&&!we.done&&(v=pe.return)&&v.call(pe)}finally{if(f)throw f.error}}i.exitSet.sort(function(Zt,en){return en.order-Zt.order});var je=Array.from(I).sort(function(Zt,en){return Zt.order-en.order}),tt=new Set(i.exitSet),nt=_d(je.map(function(Zt){var en=[];if("final"!==Zt.type)return en;var ci=Zt.parent;if(!ci.parent)return en;en.push(n6(Zt.id,Zt.doneData),n6(ci.id,Zt.doneData?KG(Zt.doneData,o,s):void 0));var Wi=ci.parent;return"parallel"===Wi.type&&tP(Wi).every(function(ki){return t6(i.configuration,ki)})&&en.push(n6(Wi.id)),en})),rt=je.map(function(Zt){var en=Zt.onEntry,ci=Zt.activities.map(function(Wi){return function uht(t){var r=eX(t);return{type:_u.Start,activity:r,exec:void 0}}(Wi)});return{type:"entry",actions:TT(l?$u($u([],hc(en),!1),hc(ci),!1):$u($u([],hc(ci),!1),hc(en),!1),w.machine.options.actions)}}).concat({type:"state_done",actions:nt.map(function(Zt){return function rht(t,r){return{type:JF,event:"function"==typeof t?t:QG(t),delay:r?r.delay:void 0,id:r?.id}}(Zt)})}),lt=Array.from(tt).map(function(Zt){return{type:"exit",actions:TT($u($u([],hc(Zt.onExit),!1),hc(Zt.activities.map(function(en){return function dht(t){var r=fc(t)?t:eX(t);return{type:_u.Stop,activity:r,exec:void 0}}(en)})),!1),w.machine.options.actions)}}),bt=lt.concat({type:"transition",actions:TT(i.actions,this.machine.options.actions)}).concat(rt);if(e){var Wt=TT(_d($u([],hc(r),!1).sort(function(Zt,en){return en.order-Zt.order}).map(function(Zt){return Zt.onExit})),this.machine.options.actions).filter(function(Zt){return!Qq(Zt)});return bt.concat({type:"stop",actions:Wt})}return bt},t.prototype.transition=function(r,e,i,o){void 0===r&&(r=this.initialState);var a,s=Bh(e);if(r instanceof Wy)a=void 0===i?r:this.resolveState(Wy.from(r,i));else{var l=ic(r)?this.resolve(qG(this.getResolvedPath(r))):this.resolve(r);a=this.resolveState(Wy.from(l,i??this.machine.context))}if(this.strict&&!this.events.includes(s.name)&&!function zpt(t){return/^(done|error)\./.test(t)}(s.name))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(s.name,"'"));var d=this._transition(a.value,a,s)||{transitions:[],configuration:[],exitSet:[],source:a,actions:[]},f=nP([],this.getStateNodes(a.value)),v=d.configuration.length?nP(f,d.configuration):f;return d.configuration=$u([],hc(v),!1),this.resolveTransition(d,a,a.context,o,s)},t.prototype.resolveRaisedTransition=function(r,e,i,o){var s,a=r.actions;return(r=this.transition(r,e,void 0,o))._event=i,r.event=i.data,(s=r.actions).unshift.apply(s,$u([],hc(a),!1)),r},t.prototype.resolveTransition=function(r,e,i,o,s){var a,l,c,d,f=this;void 0===s&&(s=hI);var v=r.configuration,w=!e||r.transitions.length>0,x=w?r.configuration:e?e.configuration:[],I=t6(x,this),M=w?tht(this.machine,v):void 0,F=e?e.historyValue?e.historyValue:r.source?this.machine.historyValue(e.value):void 0:void 0,re=this.getActions(new Set(x),I,r,i,s,e,o),pe=e?Io({},e.activities):{};try{for(var we=Hl(re),je=we.next();!je.done;je=we.next()){var tt=je.value;try{for(var nt=(c=void 0,Hl(tt.actions)),rt=nt.next();!rt.done;rt=nt.next()){var lt=rt.value;lt.type===Yq?pe[lt.activity.id||lt.activity.type]=lt:lt.type===Wq&&(pe[lt.activity.id||lt.activity.type]=!1)}}catch(Tn){c={error:Tn}}finally{try{rt&&!rt.done&&(d=nt.return)&&d.call(nt)}finally{if(c)throw c.error}}}}catch(Tn){a={error:Tn}}finally{try{je&&!je.done&&(l=we.return)&&l.call(we)}finally{if(a)throw a.error}}var bt=hc(r6(this,e,i,s,re,o,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),Wt=bt[0],Zt=bt[1],en=hc(function Xpt(t,r){var e,i,o=hc([[],[]],2),s=o[0],a=o[1];try{for(var l=Hl(t),c=l.next();!c.done;c=l.next()){var d=c.value;r(d)?s.push(d):a.push(d)}}catch(f){e={error:f}}finally{try{c&&!c.done&&(i=l.return)&&i.call(l)}finally{if(e)throw e.error}}return[s,a]}(Wt,Qq),2),ci=en[0],Wi=en[1],Xr=Wt.filter(function(Tn){var xn;return Tn.type===Yq&&(null===(xn=Tn.activity)||void 0===xn?void 0:xn.type)===zq}).reduce(function(Tn,xn){return Tn[xn.activity.id]=function vht(t,r,e,i){var o,s=yde(t.src),a=null===(o=r?.options.services)||void 0===o?void 0:o[s.type],l=t.data?KG(t.data,e,i):void 0,c=a?Dde(a,t.id,l):Ede(t.id);return c.meta=t,c}(xn.activity,f.machine,Zt,s),Tn},e?Io({},e.children):{}),Lr=new Wy({value:M||e.value,context:Zt,_event:s,_sessionid:e?e._sessionid:null,historyValue:M?F?Kpt(F,M):void 0:e?e.historyValue:void 0,history:!M||r.source?e:void 0,actions:M?Wi:[],activities:M?pe:e?e.activities:{},events:[],configuration:x,transitions:r.transitions,children:Xr,done:I,tags:Tde(x),machine:this}),Jo=i!==Zt;Lr.changed=s.name===lde||Jo;var cr=Lr.history;cr&&delete cr.history;var is=!I&&(this._transient||v.some(function(Tn){return Tn._transient}));if(!(w||is&&""!==s.name))return Lr;var Ji=Lr;if(!I)for(is&&(Ji=this.resolveRaisedTransition(Ji,{type:Gpt},s,o));ci.length;){var hn=ci.shift();Ji=this.resolveRaisedTransition(Ji,hn._event,s,o)}var hi=Ji.changed||(cr?!!Ji.actions.length||Jo||typeof cr.value!=typeof Ji.value||!xde(Ji.value,cr.value):void 0);return Ji.changed=hi,Ji.history=cr,Ji},t.prototype.getStateNode=function(r){if(vI(r))return this.machine.getStateNodeById(r);if(!this.states)throw new Error("Unable to retrieve child state '".concat(r,"' from '").concat(this.id,"'; no child states exist."));var e=this.states[r];if(!e)throw new Error("Child state '".concat(r,"' does not exist on '").concat(this.id,"'"));return e},t.prototype.getStateNodeById=function(r){var e=vI(r)?r.slice(1):r;if(e===this.id)return this;var i=this.machine.idMap[e];if(!i)throw new Error("Child state node '#".concat(e,"' does not exist on machine '").concat(this.id,"'"));return i},t.prototype.getStateNodeByPath=function(r){if("string"==typeof r&&vI(r))try{return this.getStateNodeById(r.slice(1))}catch{}for(var e=Kq(r,this.delimiter).slice(),i=this;e.length;){var o=e.shift();if(!o.length)break;i=i.getStateNode(o)}return i},t.prototype.resolve=function(r){var e,i=this;if(!r)return this.initialStateValue||gI;switch(this.type){case"parallel":return eP(this.initialStateValue,function(s,a){return s?i.getStateNode(a).resolve(r[a]||s):gI});case"compound":if(ic(r)){var o=this.getStateNode(r);return"parallel"===o.type||"compound"===o.type?((e={})[r]=o.initialStateValue,e):r}return Object.keys(r).length?eP(r,function(s,a){return s?i.getStateNode(a).resolve(s):gI}):this.initialStateValue||{};default:return r||gI}},t.prototype.getResolvedPath=function(r){if(vI(r)){var e=this.machine.idMap[r.slice(1)];if(!e)throw new Error("Unable to find state node '".concat(r,"'"));return e.path}return Kq(r,this.delimiter)},Object.defineProperty(t.prototype,"initialStateValue",{get:function(){var r,e;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;if("parallel"===this.type)e=pde(this.states,function(i){return i.initialStateValue||gI},function(i){return"history"!==i.type});else if(void 0!==this.initial){if(!this.states[this.initial])throw new Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));e=e6(this.states[this.initial])?this.initial:((r={})[this.initial]=this.states[this.initial].initialStateValue,r)}else e={};return this.__cache.initialStateValue=e,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),t.prototype.getInitialState=function(r,e){this._init();var i=this.getStateNodes(r);return this.resolveTransition({configuration:i,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,e??this.machine.context,void 0)},Object.defineProperty(t.prototype,"initialState",{get:function(){var r=this.initialStateValue;if(!r)throw new Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(r)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"target",{get:function(){var r;if("history"===this.type){var e=this.config;r=ic(e.target)&&vI(e.target)?qG(this.machine.getStateNodeById(e.target).path.slice(this.path.length-1)):e.target}return r},enumerable:!1,configurable:!0}),t.prototype.getRelativeStateNodes=function(r,e,i){return void 0===i&&(i=!0),i?"history"===r.type?r.resolveHistory(e):r.initialStateNodes:[r]},Object.defineProperty(t.prototype,"initialStateNodes",{get:function(){var r=this;return e6(this)?[this]:"compound"!==this.type||this.initial?_d(XG(this.initialStateValue).map(function(i){return r.getFromRelativePath(i)})):[this]},enumerable:!1,configurable:!0}),t.prototype.getFromRelativePath=function(r){if(!r.length)return[this];var e=hc(r),i=e[0],o=e.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '".concat(i,"' from node with no states"));var s=this.getStateNode(i);if("history"===s.type)return s.resolveHistory();if(!this.states[i])throw new Error("Child state '".concat(i,"' does not exist on '").concat(this.id,"'"));return this.states[i].getFromRelativePath(o)},t.prototype.historyValue=function(r){if(Object.keys(this.states).length)return{current:r||this.initialStateValue,states:pde(this.states,function(e,i){if(!r)return e.historyValue();var o=ic(r)?void 0:r[i];return e.historyValue(o||e.initialStateValue)},function(e){return!e.history})}},t.prototype.resolveHistory=function(r){var e=this;if("history"!==this.type)return[this];var i=this.parent;if(!r){var o=this.target;return o?_d(XG(o).map(function(a){return i.getFromRelativePath(a)})):i.initialStateNodes}var s=function Wpt(t,r){return function(e){var i,o,s=e;try{for(var a=Hl(t),l=a.next();!l.done;l=a.next())s=s[r][l.value]}catch(d){i={error:d}}finally{try{l&&!l.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}return s}}(i.path,"states")(r).current;return ic(s)?[i.getStateNode(s)]:_d(XG(s).map(function(a){return"deep"===e.history?i.getFromRelativePath(a):[i.states[a[0]]]}))},Object.defineProperty(t.prototype,"stateIds",{get:function(){var r=this,e=_d(Object.keys(this.states).map(function(i){return r.states[i].stateIds}));return[this.id].concat(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"events",{get:function(){var r,e,i,o;if(this.__cache.events)return this.__cache.events;var s=this.states,a=new Set(this.ownEvents);if(s)try{for(var l=Hl(Object.keys(s)),c=l.next();!c.done;c=l.next()){var f=s[c.value];if(f.states)try{for(var v=(i=void 0,Hl(f.events)),w=v.next();!w.done;w=v.next())a.add("".concat(w.value))}catch(I){i={error:I}}finally{try{w&&!w.done&&(o=v.return)&&o.call(v)}finally{if(i)throw i.error}}}}catch(I){r={error:I}}finally{try{c&&!c.done&&(e=l.return)&&e.call(l)}finally{if(r)throw r.error}}return this.__cache.events=Array.from(a)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ownEvents",{get:function(){var r=new Set(this.transitions.filter(function(e){return!(!e.target&&!e.actions.length&&e.internal)}).map(function(e){return e.eventType}));return Array.from(r)},enumerable:!1,configurable:!0}),t.prototype.resolveTarget=function(r){var e=this;if(void 0!==r)return r.map(function(i){if(!ic(i))return i;var o=i[0]===e.delimiter;if(o&&!e.parent)return e.getStateNodeByPath(i.slice(1));var s=o?e.key+i:i;if(!e.parent)return e.getStateNodeByPath(s);try{return e.parent.getStateNodeByPath(s)}catch(l){throw new Error("Invalid transition definition for state node '".concat(e.id,"':\n").concat(l.message))}})},t.prototype.formatTransition=function(r){var e=this,i=function Zpt(t){if(void 0!==t&&""!==t)return a0(t)}(r.target),o="internal"in r?r.internal:!i||i.some(function(c){return ic(c)&&c[0]===e.delimiter}),s=this.machine.options.guards,a=this.resolveTarget(i),l=Io(Io({},r),{actions:TT(a0(r.actions)),cond:vde(r.cond,s),target:a,source:this,internal:o,eventType:r.event,toJSON:function(){return Io(Io({},l),{target:l.target?l.target.map(function(c){return"#".concat(c.id)}):void 0,source:"#".concat(e.id)})}});return l},t.prototype.formatTransitions=function(){var r,e,o,i=this;if(this.config.on)if(Array.isArray(this.config.on))o=this.config.on;else{var s=this.config.on,l=s["*"],c=void 0===l?[]:l,d=$q(s,["*"]);o=_d(Object.keys(d).map(function(pe){return pI(pe,d[pe])}).concat(pI("*",c)))}else o=[];var f=this.config.always?pI("",this.config.always):[],v=this.config.onDone?pI(String(n6(this.id)),this.config.onDone):[],w=_d(this.invoke.map(function(pe){var we=[];return pe.onDone&&we.push.apply(we,$u([],hc(pI(String(i6(pe.id)),pe.onDone)),!1)),pe.onError&&we.push.apply(we,$u([],hc(pI(String(sP(pe.id)),pe.onError)),!1)),we})),x=this.after,I=_d($u($u($u($u([],hc(v),!1),hc(w),!1),hc(o),!1),hc(f),!1).map(function(pe){return a0(pe).map(function(we){return i.formatTransition(we)})}));try{for(var M=Hl(x),F=M.next();!F.done;F=M.next())I.push(F.value)}catch(pe){r={error:pe}}finally{try{F&&!F.done&&(e=M.return)&&e.call(M)}finally{if(r)throw r.error}}return I},t}();function _I(t,r){return new Sht(t,r)}var xht={deferEvents:!1},Ide=function(){function t(r){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=Io(Io({},xht),r)}return t.prototype.initialize=function(r){if(this.initialized=!0,r){if(!this.options.deferEvents)return void this.schedule(r);this.process(r)}this.flushEvents()},t.prototype.schedule=function(r){if(this.initialized&&!this.processingEvent){if(0!==this.queue.length)throw new Error("Event queue should be empty when it is not processing events");this.process(r),this.flushEvents()}else this.queue.push(r)},t.prototype.clear=function(){this.queue=[]},t.prototype.flushEvents=function(){for(var r=this.queue.shift();r;)this.process(r),r=this.queue.shift()},t.prototype.process=function(r){this.processingEvent=!0;try{r()}catch(e){throw this.clear(),e}finally{this.processingEvent=!1}},t}(),nX=new Map,Eht=0,lP_free=function(t){nX.delete(t)};function iX(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:void 0}var rX={sync:!1,autoForward:!1},ch=function(t){return t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped",t}(ch||{}),Aht=function(){function t(r,e){void 0===e&&(e=t.defaultOptions);var i=this;this.machine=r,this.delayedEventsMap={},this.listeners=new Set,this.contextListeners=new Set,this.stopListeners=new Set,this.doneListeners=new Set,this.eventListeners=new Set,this.sendListeners=new Set,this.initialized=!1,this.status=ch.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(f,v){if(dI(f))return i.batch(f),i.state;var w=Bh(QG(f,v));if(i.status===ch.Stopped)return i.state;if(i.status!==ch.Running&&!i.options.deferEvents)throw new Error('Event "'.concat(w.name,'" was sent to uninitialized service "').concat(i.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.\nEvent: ').concat(JSON.stringify(w.data)));return i.scheduler.schedule(function(){i.forward(w);var x=i._nextState(w);i.update(x,w)}),i._state},this.sendTo=function(f,v,w){var x=i.parent&&(v===QF.Parent||i.parent.id===v),I=x?i.parent:ic(v)?v===QF.Internal?i:i.children.get(v)||function(t){return nX.get(t)}(v):function Jpt(t){return!!t&&"function"==typeof t.send}(v)?v:void 0;if(I)if("machine"in I){if(i.status!==ch.Stopped||i.parent!==I||i.state.done){var M=Io(Io({},f),{name:f.name===Vpt?"".concat(sP(i.id)):f.name,origin:i.sessionId});!w&&i.machine.config.predictableActionArguments?i._outgoingQueue.push([I,M]):I.send(M)}}else!w&&i.machine.config.predictableActionArguments?i._outgoingQueue.push([I,f.data]):I.send(f.data);else if(!x)throw new Error("Unable to send event to child '".concat(v,"' from service '").concat(i.id,"'."))},this._exec=function(f,v,w,x){void 0===x&&(x=i.machine.options.actions);var I=f.exec||Zq(f.type,x),M=fc(I)?I:I?I.exec:f.exec;if(M)try{return M(v,w.data,i.machine.config.predictableActionArguments?{action:f,_event:w}:{action:f,state:i.state,_event:w})}catch(Wi){throw i.parent&&i.parent.send({type:"xstate.error",data:Wi}),Wi}switch(f.type){case JF:i.defer(f);break;case WG:var re=f;if("number"==typeof re.delay)return void i.defer(re);re.to?i.sendTo(re._event,re.to,w===hI):i.send(re._event);break;case rde:i.cancel(f.sendId);break;case Yq:if(i.status!==ch.Running)return;var pe=f.activity;if(!i.machine.config.predictableActionArguments&&!i.state.activities[pe.id||pe.type])break;if(pe.type===_u.Invoke){var we=yde(pe.src),je=i.machine.options.services?i.machine.options.services[we.type]:void 0,tt=pe.id,nt=pe.data,rt="autoForward"in pe?pe.autoForward:!!pe.forward;if(!je)return;var lt=nt?KG(nt,v,w):void 0;if("string"==typeof je)return;var bt=fc(je)?je(v,w.data,{data:lt,src:we,meta:pe.meta}):je;if(!bt)return;var Wt=void 0;S2(bt)&&(bt=lt?bt.withContext(lt):bt,Wt={autoForward:rt}),i.spawn(bt,tt,Wt)}else i.spawnActivity(pe);break;case Wq:i.stopChild(f.activity.id);break;case sde:var en=f.label,ci=f.value;en?i.logger(en,ci):i.logger(ci)}};var o=Io(Io({},t.defaultOptions),e),s=o.clock,a=o.logger,l=o.parent,c=o.id;this.id=void 0!==c?c:r.id,this.logger=a,this.clock=s,this.parent=l,this.options=o,this.scheduler=new Ide({deferEvents:this.options.deferEvents}),this.sessionId="x:".concat(Eht++)}return Object.defineProperty(t.prototype,"initialState",{get:function(){var r=this;return this._initialState?this._initialState:fI(this,function(){return r._initialState=r.machine.initialState,r._initialState})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),t.prototype.execute=function(r,e){var i,o;try{for(var s=Hl(r.actions),a=s.next();!a.done;a=s.next())this.exec(a.value,r,e)}catch(c){i={error:c}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}},t.prototype.update=function(r,e){var i,o,s,a,l,c,d,f,v=this;if(r._sessionid=this.sessionId,this._state=r,this.machine.config.predictableActionArguments&&e!==hI||!this.options.execute)for(var w=void 0;w=this._outgoingQueue.shift();)w[0].send(w[1]);else this.execute(this.state);if(this.children.forEach(function(bt){v.state.children[bt.id]=bt}),this.devTools&&this.devTools.send(e.data,r),r.event)try{for(var x=Hl(this.eventListeners),I=x.next();!I.done;I=x.next())(0,I.value)(r.event)}catch(bt){i={error:bt}}finally{try{I&&!I.done&&(o=x.return)&&o.call(x)}finally{if(i)throw i.error}}try{for(var F=Hl(this.listeners),re=F.next();!re.done;re=F.next())(0,re.value)(r,r.event)}catch(bt){s={error:bt}}finally{try{re&&!re.done&&(a=F.return)&&a.call(F)}finally{if(s)throw s.error}}try{for(var pe=Hl(this.contextListeners),we=pe.next();!we.done;we=pe.next())(0,we.value)(this.state.context,this.state.history?this.state.history.context:void 0)}catch(bt){l={error:bt}}finally{try{we&&!we.done&&(c=pe.return)&&c.call(pe)}finally{if(l)throw l.error}}if(this.state.done){var tt=r.configuration.find(function(bt){return"final"===bt.type&&bt.parent===v.machine}),nt=tt&&tt.doneData?KG(tt.doneData,r.context,e):void 0;this._doneEvent=i6(this.id,nt);try{for(var rt=Hl(this.doneListeners),lt=rt.next();!lt.done;lt=rt.next())(0,lt.value)(this._doneEvent)}catch(bt){d={error:bt}}finally{try{lt&&!lt.done&&(f=rt.return)&&f.call(rt)}finally{if(d)throw d.error}}this._stop(),this._stopChildren(),lP_free(this.sessionId)}},t.prototype.onTransition=function(r){return this.listeners.add(r),this.status===ch.Running&&r(this.state,this.state.event),this},t.prototype.subscribe=function(r,e,i){var o=this,s=JG(r,e,i);this.listeners.add(s.next),this.status!==ch.NotStarted&&s.next(this.state);var a=function(){o.doneListeners.delete(a),o.stopListeners.delete(a),s.complete()};return this.status===ch.Stopped?s.complete():(this.onDone(a),this.onStop(a)),{unsubscribe:function(){o.listeners.delete(s.next),o.doneListeners.delete(a),o.stopListeners.delete(a)}}},t.prototype.onEvent=function(r){return this.eventListeners.add(r),this},t.prototype.onSend=function(r){return this.sendListeners.add(r),this},t.prototype.onChange=function(r){return this.contextListeners.add(r),this},t.prototype.onStop=function(r){return this.stopListeners.add(r),this},t.prototype.onDone=function(r){return this.status===ch.Stopped&&this._doneEvent?r(this._doneEvent):this.doneListeners.add(r),this},t.prototype.off=function(r){return this.listeners.delete(r),this.eventListeners.delete(r),this.sendListeners.delete(r),this.stopListeners.delete(r),this.doneListeners.delete(r),this.contextListeners.delete(r),this},t.prototype.start=function(r){var e=this;if(this.status===ch.Running)return this;this.machine._init(),function(t,r){nX.set(t,r)}(this.sessionId,this),this.initialized=!0,this.status=ch.Running;var i=void 0===r?this.initialState:fI(this,function(){return function mht(t){return"object"==typeof t&&null!==t&&"value"in t&&"_event"in t}(r)?e.machine.resolveState(r):e.machine.resolveState(Wy.from(r,e.machine.context))});return this.options.devTools&&this.attachDev(),this.scheduler.initialize(function(){e.update(i,hI)}),this},t.prototype._stopChildren=function(){this.children.forEach(function(r){fc(r.stop)&&r.stop()}),this.children.clear()},t.prototype._stop=function(){var r,e,i,o,s,a,l,c,d,f;try{for(var v=Hl(this.listeners),w=v.next();!w.done;w=v.next())this.listeners.delete(x=w.value)}catch(rt){r={error:rt}}finally{try{w&&!w.done&&(e=v.return)&&e.call(v)}finally{if(r)throw r.error}}try{for(var I=Hl(this.stopListeners),M=I.next();!M.done;M=I.next())(x=M.value)(),this.stopListeners.delete(x)}catch(rt){i={error:rt}}finally{try{M&&!M.done&&(o=I.return)&&o.call(I)}finally{if(i)throw i.error}}try{for(var F=Hl(this.contextListeners),re=F.next();!re.done;re=F.next())this.contextListeners.delete(x=re.value)}catch(rt){s={error:rt}}finally{try{re&&!re.done&&(a=F.return)&&a.call(F)}finally{if(s)throw s.error}}try{for(var pe=Hl(this.doneListeners),we=pe.next();!we.done;we=pe.next()){var x;this.doneListeners.delete(x=we.value)}}catch(rt){l={error:rt}}finally{try{we&&!we.done&&(c=pe.return)&&c.call(pe)}finally{if(l)throw l.error}}if(!this.initialized)return this;this.initialized=!1,this.status=ch.Stopped,this._initialState=void 0;try{for(var je=Hl(Object.keys(this.delayedEventsMap)),tt=je.next();!tt.done;tt=je.next())this.clock.clearTimeout(this.delayedEventsMap[tt.value])}catch(rt){d={error:rt}}finally{try{tt&&!tt.done&&(f=je.return)&&f.call(je)}finally{if(d)throw d.error}}this.scheduler.clear(),this.scheduler=new Ide({deferEvents:this.options.deferEvents})},t.prototype.stop=function(){var r=this,e=this.scheduler;return this._stop(),e.schedule(function(){var i;if(null===(i=r._state)||void 0===i||!i.done){var o=Bh({type:"xstate.stop"}),s=fI(r,function(){var a=_d($u([],hc(r.state.configuration),!1).sort(function(v,w){return w.order-v.order}).map(function(v){return TT(v.onExit,r.machine.options.actions)})),l=hc(r6(r.machine,r.state,r.state.context,o,[{type:"exit",actions:a}],r.machine.config.predictableActionArguments?r._exec:void 0,r.machine.config.predictableActionArguments||r.machine.config.preserveActionOrder),2),f=new Wy({value:r.state.value,context:l[1],_event:o,_sessionid:r.sessionId,historyValue:void 0,history:r.state,actions:l[0].filter(function(v){return!Qq(v)}),activities:{},events:[],configuration:[],transitions:[],children:{},done:r.state.done,tags:r.state.tags,machine:r.machine});return f.changed=!0,f});r.update(s,o),r._stopChildren(),lP_free(r.sessionId)}}),this},t.prototype.batch=function(r){var e=this;if(this.status===ch.NotStarted&&this.options.deferEvents);else if(this.status!==ch.Running)throw new Error("".concat(r.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.'));if(r.length){var i=!!this.machine.config.predictableActionArguments&&this._exec;this.scheduler.schedule(function(){var o,s,a=e.state,l=!1,c=[],d=function(x){var I=Bh(x);e.forward(I),a=fI(e,function(){return e.machine.transition(a,I,void 0,i||void 0)}),c.push.apply(c,$u([],hc(e.machine.config.predictableActionArguments?a.actions:a.actions.map(function(M){return function ght(t,r){var e=t.exec;return Io(Io({},t),{exec:void 0!==e?function(){return e(r.context,r.event,{action:t,state:r,_event:r._event})}:void 0})}(M,a)})),!1)),l=l||!!a.changed};try{for(var f=Hl(r),v=f.next();!v.done;v=f.next())d(v.value)}catch(x){o={error:x}}finally{try{v&&!v.done&&(s=f.return)&&s.call(f)}finally{if(o)throw o.error}}a.changed=l,a.actions=c,e.update(a,Bh(r[r.length-1]))})}},t.prototype.sender=function(r){return this.send.bind(this,r)},t.prototype._nextState=function(r,e){var i=this;void 0===e&&(e=!!this.machine.config.predictableActionArguments&&this._exec);var o=Bh(r);if(0===o.name.indexOf(ade)&&!this.state.nextEvents.some(function(a){return 0===a.indexOf(ade)}))throw o.data.data;return fI(this,function(){return i.machine.transition(i.state,o,void 0,e||void 0)})},t.prototype.nextState=function(r){return this._nextState(r,!1)},t.prototype.forward=function(r){var e,i;try{for(var o=Hl(this.forwardTo),s=o.next();!s.done;s=o.next()){var a=s.value,l=this.children.get(a);if(!l)throw new Error("Unable to forward event '".concat(r,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(a,"'."));l.send(r)}}catch(c){e={error:c}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(e)throw e.error}}},t.prototype.defer=function(r){var e=this,i=this.clock.setTimeout(function(){"to"in r&&r.to?e.sendTo(r._event,r.to,!0):e.send(r._event)},r.delay);r.id&&(this.delayedEventsMap[r.id]=i)},t.prototype.cancel=function(r){this.clock.clearTimeout(this.delayedEventsMap[r]),delete this.delayedEventsMap[r]},t.prototype.exec=function(r,e,i){void 0===i&&(i=this.machine.options.actions),this._exec(r,e.context,e._event,i)},t.prototype.removeChild=function(r){var e;this.children.delete(r),this.forwardTo.delete(r),null===(e=this.state)||void 0===e||delete e.children[r]},t.prototype.stopChild=function(r){var e=this.children.get(r);e&&(this.removeChild(r),fc(e.stop)&&e.stop())},t.prototype.spawn=function(r,e,i){if(this.status!==ch.Running)return Dde(r,e);if(fde(r))return this.spawnPromise(Promise.resolve(r),e);if(fc(r))return this.spawnCallback(r,e);if(function yht(t){return function _ht(t){try{return"function"==typeof t.send}catch{return!1}}(t)&&"id"in t}(r))return this.spawnActor(r,e);if(function Qpt(t){try{return"subscribe"in t&&fc(t.subscribe)}catch{return!1}}(r))return this.spawnObservable(r,e);if(S2(r))return this.spawnMachine(r,Io(Io({},i),{id:e}));if(function qpt(t){return null!==t&&"object"==typeof t&&"transition"in t&&"function"==typeof t.transition}(r))return this.spawnBehavior(r,e);throw new Error('Unable to spawn entity "'.concat(e,'" of type "').concat(typeof r,'".'))},t.prototype.spawnMachine=function(r,e){var i=this;void 0===e&&(e={});var o=new t(r,Io(Io({},this.options),{parent:this,id:e.id||r.id})),s=Io(Io({},rX),e);s.sync&&o.onTransition(function(l){i.send(lde,{state:l,id:o.id})});var a=o;return this.children.set(o.id,a),s.autoForward&&this.forwardTo.add(o.id),o.onDone(function(l){i.removeChild(o.id),i.send(Bh(l,{origin:o.id}))}).start(),a},t.prototype.spawnBehavior=function(r,e){var i=function Iht(t,r){void 0===r&&(r={});var e=t.initialState,i=new Set,o=[],s=!1,l=function bht(t){var r;return Io(((r={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}})[wT]=function(){return this},r),t)}({id:r.id,send:function(d){o.push(d),function(){if(!s){for(s=!0;o.length>0;){var d=o.shift();e=t.transition(e,d,c),i.forEach(function(f){return f.next(e)})}s=!1}}()},getSnapshot:function(){return e},subscribe:function(d,f,v){var w=JG(d,f,v);return i.add(w),w.next(e),{unsubscribe:function(){i.delete(w)}}}}),c={parent:r.parent,self:l,id:r.id||"anonymous",observers:i};return e=t.start?t.start(c):e,l}(r,{id:e,parent:this});return this.children.set(e,i),i},t.prototype.spawnPromise=function(r,e){var i,a,o=this,s=!1;r.then(function(c){s||(a=c,o.removeChild(e),o.send(Bh(i6(e,c),{origin:e})))},function(c){if(!s){o.removeChild(e);var d=sP(e,c);try{o.send(Bh(d,{origin:e}))}catch(f){o.devTools&&o.devTools.send(d,o.state),o.machine.strict&&o.stop()}}});var l=((i={id:e,send:function(){},subscribe:function(c,d,f){var v=JG(c,d,f),w=!1;return r.then(function(x){w||(v.next(x),!w&&v.complete())},function(x){w||v.error(x)}),{unsubscribe:function(){return w=!0}}},stop:function(){s=!0},toJSON:function(){return{id:e}},getSnapshot:function(){return a}})[wT]=function(){return this},i);return this.children.set(e,l),l},t.prototype.spawnCallback=function(r,e){var i,c,f,o=this,s=!1,a=new Set,l=new Set;try{f=r(function(w){c=w,l.forEach(function(x){return x(w)}),!s&&o.send(Bh(w,{origin:e}))},function(w){a.add(w)})}catch(w){this.send(sP(e,w))}if(fde(f))return this.spawnPromise(f,e);var v=((i={id:e,send:function(w){return a.forEach(function(x){return x(w)})},subscribe:function(w){var x=JG(w);return l.add(x.next),{unsubscribe:function(){l.delete(x.next)}}},stop:function(){s=!0,fc(f)&&f()},toJSON:function(){return{id:e}},getSnapshot:function(){return c}})[wT]=function(){return this},i);return this.children.set(e,v),v},t.prototype.spawnObservable=function(r,e){var i,s,o=this,a=r.subscribe(function(c){s=c,o.send(Bh(c,{origin:e}))},function(c){o.removeChild(e),o.send(Bh(sP(e,c),{origin:e}))},function(){o.removeChild(e),o.send(Bh(i6(e),{origin:e}))}),l=((i={id:e,send:function(){},subscribe:function(c,d,f){return r.subscribe(c,d,f)},stop:function(){return a.unsubscribe()},getSnapshot:function(){return s},toJSON:function(){return{id:e}}})[wT]=function(){return this},i);return this.children.set(e,l),l},t.prototype.spawnActor=function(r,e){return this.children.set(e,r),r},t.prototype.spawnActivity=function(r){var e=this.machine.options&&this.machine.options.activities?this.machine.options.activities[r.type]:void 0;if(e){var i=e(this.state.context,r);this.spawnEffect(r.id,i)}},t.prototype.spawnEffect=function(r,e){var i;this.children.set(r,((i={id:r,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:e||void 0,getSnapshot:function(){},toJSON:function(){return{id:r}}})[wT]=function(){return this},i))},t.prototype.attachDev=function(){var r=iX();if(this.options.devTools&&r){if(r.__REDUX_DEVTOOLS_EXTENSION__){var e="object"==typeof this.options.devTools?this.options.devTools:void 0;this.devTools=r.__REDUX_DEVTOOLS_EXTENSION__.connect(Io(Io({name:this.id,autoPause:!0,stateSanitizer:function(i){return{value:i.value,context:i.context,actions:i.actions}}},e),{features:Io({jump:!1,skip:!1},e?e.features:void 0)}),this.machine),this.devTools.init(this.state)}!function kht(t){if(iX()){var r=function Dht(){var t=iX();if(t&&"__xstate__"in t)return t.__xstate__}();r&&r.register(t)}}(this)}},t.prototype.toJSON=function(){return{id:this.id}},t.prototype[wT]=function(){return this},t.prototype.getSnapshot=function(){return this.status===ch.NotStarted?this.initialState:this._state},t.defaultOptions={execute:!0,deferEvents:!0,clock:{setTimeout:function(r,e){return setTimeout(r,e)},clearTimeout:function(r){return clearTimeout(r)}},logger:console.log.bind(console),devTools:!1},t.interpret=x2,t}();function x2(t,r){return new Aht(t,r)}var yI=b(1184);const Rht=()=>({width:"50vw"});function Oht(t,r){}function Fht(t,r){1&t&&n.DNE(0,Oht,0,0,"ng-template")}function Pht(t,r){}function Lht(t,r){1&t&&n.DNE(0,Pht,0,0,"ng-template")}function Nht(t,r){if(1&t&&n.DNE(0,Lht,1,0,null,1),2&t){const e=n.XpG(2);n.Y8G("ngTemplateOutlet",e.footerTemplate)}}function Ght(t,r){1&t&&n.DNE(0,Nht,1,1,"ng-template",3)}let E2=(()=>{class t{constructor(){this.title="",this.bodyTemplate=null,this.footerTemplate=null,this.isOpen=!1,this.showFooter=!0,this.modalClosed=new n.bkB}ngOnInit(){}dialogHidden(){this.modalClosed.emit()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["modal"]],inputs:{title:"title",bodyTemplate:"bodyTemplate",footerTemplate:"footerTemplate",isOpen:"isOpen",showFooter:"showFooter"},outputs:{modalClosed:"modalClosed"},standalone:!1,decls:3,vars:8,consts:[["appendTo","body",3,"visibleChange","onHide","header","visible","modal"],[4,"ngTemplateOutlet"],[4,"ngIf"],["pTemplate","footer"]],template:function(i,o){1&i&&(n.j41(0,"p-dialog",0),n.mxI("visibleChange",function(a){return n.DH7(o.isOpen,a)||(o.isOpen=a),a}),n.bIt("onHide",function(){return o.dialogHidden()}),n.DNE(1,Fht,1,0,null,1)(2,Ght,1,0,null,2),n.k0s()),2&i&&(n.Aen(n.lJ4(7,Rht)),n.Y8G("header",o.title),n.R50("visible",o.isOpen),n.Y8G("modal",!0),n.R7$(),n.Y8G("ngTemplateOutlet",o.bodyTemplate),n.R7$(),n.Y8G("ngIf",o.showFooter))},dependencies:[fi,uo,hs,gf],encapsulation:2})}}return t})();const Bht=["nationalDonorDropdown"],Vht=t=>({"has-warning":t});function jht(t,r){1&t&&(n.j41(0,"span",16),n.EFF(1,"This store number is already in use."),n.k0s())}function Hht(t,r){if(1&t&&(n.j41(0,"span"),n.EFF(1," This operation will move all "),n.j41(2,"strong"),n.EFF(3),n.k0s(),n.EFF(4," receipts from this location to the national donor location: "),n.k0s()),2&t){const e=n.XpG(3);n.R7$(3),n.SpI("(",e.receiptCount.toLocaleString(),")")}}function Uht(t,r){if(1&t&&(n.j41(0,"span",19),n.EFF(1),n.k0s()),2&t){const e=n.XpG(3);n.R7$(),n.JRh(e.matchingNationalDonorLocation.Address.AddressLine2)}}function $ht(t,r){if(1&t&&(n.j41(0,"div"),n.DNE(1,Hht,5,1,"span",13),n.j41(2,"div",17)(3,"strong",18),n.EFF(4),n.k0s(),n.j41(5,"div")(6,"span",19),n.EFF(7),n.k0s(),n.DNE(8,Uht,2,1,"span",20),n.j41(9,"span",19),n.EFF(10),n.k0s()()()()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngIf",e.receiptCount),n.R7$(3),n.JRh(e.matchingNationalDonorLocation.Code.trim()),n.R7$(3),n.JRh(e.matchingNationalDonorLocation.Address.AddressLine1),n.R7$(),n.Y8G("ngIf",e.matchingNationalDonorLocation.Address.AddressLine2),n.R7$(2),n.E5c("",e.matchingNationalDonorLocation.Address.City,", ",e.matchingNationalDonorLocation.Address.Province,", ",e.matchingNationalDonorLocation.Address.PostalCode,"")}}function Yht(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",21),n.EFF(1," An error occurred loading the number of receipts "),n.j41(2,"button",22),n.bIt("click",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.onReceiptCountReloadRequested())}),n.EFF(3," Retry "),n.k0s()()}}function Wht(t,r){1&t&&(n.j41(0,"span",16),n.EFF(1,"Code is required"),n.k0s())}function zht(t,r){1&t&&n.nrm(0,"loading",23)}function qht(t,r){if(1&t&&(n.j41(0,"div",21)(1,"span"),n.EFF(2),n.k0s()()),2&t){const e=n.XpG(2);n.R7$(2),n.JRh(e.elevationResult.FailureReason)}}function Xht(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",6)(1,"div",7)(2,"dropdown",8,4),n.bIt("itemSelected",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onDonorSelected(o))})("cleared",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onDonorSelected(null))}),n.k0s()(),n.j41(4,"div",9)(5,"label",10),n.EFF(6,"Store Number"),n.k0s(),n.j41(7,"input",11),n.mxI("ngModelChange",function(o){n.eBV(e);const s=n.XpG();return n.DH7(s.donorLocationCode,o)||(s.donorLocationCode=o),n.Njj(o)}),n.bIt("ngModelChange",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onDonorLocationCodeChanged(o))}),n.k0s(),n.DNE(8,jht,2,0,"span",12)(9,$ht,11,7,"div",13)(10,Yht,4,0,"div",14)(11,Wht,2,0,"span",12),n.k0s(),n.DNE(12,zht,1,0,"loading",15)(13,qht,3,1,"div",14),n.k0s()}if(2&t){const e=n.XpG(),i=n.sdS(6),o=n.sdS(8);n.R7$(2),n.Y8G("options",e.nationalDonors)("itemTemplate",i)("selectedItemTemplate",o)("disabled","Elevating"===e.currentState||"ElevationFailed"===e.currentState)("loading","DonorsLoading"===e.currentState),n.R7$(2),n.Y8G("ngClass",n.eq3(14,Vht,e.matchingNationalDonorLocation)),n.R7$(3),n.R50("ngModel",e.donorLocationCode),n.Y8G("disabled","Elevating"===e.currentState||"ElevationFailed"===e.currentState),n.R7$(),n.Y8G("ngIf",e.matchingNationalDonorLocation),n.R7$(),n.Y8G("ngIf",e.matchingNationalDonorLocation),n.R7$(),n.Y8G("ngIf","ReceiptCountLoadError"===e.currentState),n.R7$(),n.Y8G("ngIf",!e.donorLocationCode),n.R7$(),n.Y8G("ngIf","SelectedDonorLocationsLoading"===e.currentState),n.R7$(),n.Y8G("ngIf",e.elevationResult&&!e.elevationResult.Successful)}}function Kht(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",24),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onElevateRequested())}),n.EFF(1),n.k0s()}if(2&t){const e=n.XpG();n.Y8G("disabled","FormIsValid"!==e.currentState),n.R7$(),n.SpI(" ","Elevating"===e.currentState?"Elevating":"Elevate"," ")}}function Qht(t,r){if(1&t&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&t){const e=r.$implicit;n.R7$(),n.Lme("",e.Name," (",e.Code.trim(),")")}}function Jht(t,r){if(1&t&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&t){const e=r.$implicit;n.R7$(),n.Lme("",e.Name," (",e.Code.trim(),")")}}var ma=function(t){return t.Initial="Initial",t.ValidateDonorLocationSettings="ValidateDonorLocationSettings",t.ReceiptCountLoading="ReceiptCountLoading",t.ReceiptCountLoadError="ReceiptCountLoadError",t.DonorsLoading="DonorsLoading",t.DonorsLoadError="DonorsLoadError",t.DonorLocationLoading="DonorLocationLoading",t.CheckForDonorMatch="CheckForDonorMatch",t.SelectingDonor="SelectingDonor",t.SelectedDonorLocationsLoading="SelectedDonorLocationsLoading",t.SelectedDonorLocationsLoadError="SelectedDonorLocationsLoadError",t.ValidateDonorLocationCode="ValidateDonorLocationCode",t.DonorLocationCodeInvalid="DonorLocationCodeInvalid",t.FormIsValid="FormIsValid",t.InvalidDonorLocationSettings="InvalidDonorLocationSettings",t.Elevating="Elevating",t.ElevationFailed="ElevationFailed",t.CheckElevationResult="CheckElevationResult",t.Elevated="Elevated",t}(ma||{}),Vh=function(t){return t.OnInit="OnInit",t.OnDonorSelected="OnDonorSelected",t.OnDonorCleared="OnDonorCleared",t.OnDonorLocationCodeChanged="OnDonorLocationCodeChanged",t.OnReceiptCountReloadRequested="OnReceiptCountReloadRequested",t.OnElevateRequested="OnElevateRequested",t}(Vh||{});let Zht=(()=>{class t{constructor(e){var i=this;this.donorService=e,this.nationalDonorDropdown=null,this.donorLocationSettings=null,this.modalClosed=new n.bkB,this.elevated=new n.bkB,this.donorLocationCode="",this.nationalDonors=[],this.currentState=null,this.elevationResult=null,this.receiptCount=null;const o=(0,yI.k)({donorLocationSettings:null,nationalDonors:[],selectedNationalDonor:null,selectedNationalDonorLocations:[],matchingDonorLocation:null,elevationResult:null,error:""}),s=_I({id:"DonorLocationElevation",initial:ma.Initial,context:o.initialContext,predictableActionArguments:!0,states:{[ma.Initial]:{on:{[Vh.OnInit]:{actions:[o.assign({donorLocationSettings:(a,l)=>l.data})],target:ma.ValidateDonorLocationSettings}}},[ma.ValidateDonorLocationSettings]:{always:[{target:ma.InvalidDonorLocationSettings,cond:a=>!a.donorLocationSettings},{target:ma.ReceiptCountLoading,cond:a=>!!a.donorLocationSettings}]},[ma.InvalidDonorLocationSettings]:{},[ma.ReceiptCountLoading]:{invoke:{src:a=>this.donorService.getTotalReceiptCount(this.donorLocationSettings.DonorID,this.donorLocationSettings.ID),onDone:{actions:[(a,l)=>{this.receiptCount=l.data}],target:[ma.DonorsLoading]},onError:{actions:o.assign({error:(a,l)=>l.data}),target:[ma.ReceiptCountLoadError]}}},[ma.ReceiptCountLoadError]:{on:{[Vh.OnReceiptCountReloadRequested]:{target:[ma.ReceiptCountLoading]}}},[ma.DonorsLoading]:{invoke:{src:(a=(0,lr.A)(function*(){return yield i.donorService.getNationalDonors()}),function(){return a.apply(this,arguments)}),onDone:{actions:[o.assign({nationalDonors:(a,l)=>{const c=l.data;if(c.Successful&&c.Value){let d=l.data.Value;return d=d.sort((f,v)=>f.Name.localeCompare(v.Name)),this.nationalDonors=d,d}return this.nationalDonors=[],[]}})],target:ma.CheckForDonorMatch},onError:{target:ma.DonorsLoadError}}},[ma.DonorsLoadError]:{},[ma.CheckForDonorMatch]:{entry:o.assign({selectedNationalDonor:a=>{if(a.selectedNationalDonor)return a.selectedNationalDonor;if(this.donorLocationSettings&&this.donorLocationSettings.Name){let l=this.donorLocationSettings.Name.split(" ")[0],c=a.nationalDonors.find(d=>d.Name.includes(l));if(c)return this.nationalDonorDropdown?.setSelectedItem(c),c}return null}}),always:[{target:ma.SelectingDonor,cond:a=>!a.selectedNationalDonor},{target:ma.SelectedDonorLocationsLoading,cond:a=>!!a.selectedNationalDonor}]},[ma.SelectingDonor]:{on:{[Vh.OnDonorSelected]:{actions:[o.assign({selectedNationalDonor:(a,l)=>l.data})],target:ma.SelectedDonorLocationsLoading}}},[ma.SelectedDonorLocationsLoading]:{invoke:{src:a=>Yo(this.donorService.getDonorLocationsByDonor(a.selectedNationalDonor.ID)),onDone:{target:[ma.ValidateDonorLocationCode],actions:o.assign({selectedNationalDonorLocations:(a,l)=>l.data})},onError:{target:ma.SelectedDonorLocationsLoadError}}},[ma.SelectedDonorLocationsLoadError]:{},[ma.ValidateDonorLocationCode]:{entry:[o.assign({matchingDonorLocation:a=>{const l=this.donorLocationCode.trim().toLowerCase();return l?a.selectedNationalDonorLocations.find(d=>d.Code.trim().toLowerCase()===l)??null:null}})],always:[{target:ma.DonorLocationCodeInvalid,cond:()=>!this.donorLocationCode},{target:ma.FormIsValid,cond:a=>!!this.donorLocationCode}]},[ma.DonorLocationCodeInvalid]:{on:{[Vh.OnDonorLocationCodeChanged]:{target:ma.ValidateDonorLocationCode},[Vh.OnDonorSelected]:{target:ma.SelectedDonorLocationsLoading},[Vh.OnDonorCleared]:{target:ma.SelectingDonor}}},[ma.FormIsValid]:{on:{[Vh.OnDonorLocationCodeChanged]:{actions:[o.assign({matchingDonorLocation:()=>null})],target:ma.ValidateDonorLocationCode},[Vh.OnDonorSelected]:{actions:[o.assign({selectedNationalDonor:(a,l)=>l.data,matchingDonorLocation:()=>null})],target:ma.SelectedDonorLocationsLoading},[Vh.OnDonorCleared]:{actions:[o.assign({selectedNationalDonor:()=>null,matchingDonorLocation:()=>null})],target:ma.SelectingDonor},[Vh.OnElevateRequested]:{target:ma.Elevating}}},[ma.Elevating]:{invoke:{id:"elevateDonorLocation",src:a=>this.donorService.elevateDonorLocation(this.donorLocationSettings.DonorID,{Code:this.donorLocationCode,NationalDonorID:a.selectedNationalDonor.ID,DonorLocationID:this.donorLocationSettings.ID}),onDone:{actions:(a,l)=>{this.elevationResult=l.data},target:ma.CheckElevationResult},onError:{actions:(a,l)=>{this.elevationResult=l.data},target:ma.ElevationFailed}}},[ma.CheckElevationResult]:{always:[{target:ma.Elevated,cond:()=>!!this.elevationResult?.Successful},{target:ma.ElevationFailed,cond:()=>!this.elevationResult?.Successful}]},[ma.ElevationFailed]:{},[ma.Elevated]:{entry:()=>{this.elevated.emit(!0)}}}});var a;this.stateService=x2(s).start(),this.stateService.onTransition(a=>{this.currentState=a.value})}ngOnDestroy(){this.stateService.stop()}ngOnInit(){this.donorLocationCode=this.donorLocationSettings?.Code??"",this.stateService.send(Vh.OnInit,{data:this.donorLocationSettings})}get matchingNationalDonorLocation(){return this.stateService.getSnapshot().context.matchingDonorLocation}onDonorSelected(e){e?this.stateService.send(Vh.OnDonorSelected,{data:e}):this.stateService.send(Vh.OnDonorCleared)}onDonorLocationCodeChanged(e){this.stateService.send(Vh.OnDonorLocationCodeChanged,{data:e})}onReceiptCountReloadRequested(){this.stateService.send(Vh.OnReceiptCountReloadRequested)}onElevateRequested(){this.stateService.send(Vh.OnElevateRequested)}onModalClosed(){this.currentState===ma.ElevationFailed?this.elevated.emit(!1):this.modalClosed.emit()}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(KF))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["donor-location-elevation"]],viewQuery:function(i,o){if(1&i&&n.GBs(Bht,5),2&i){let s;n.mGM(s=n.lsd())&&(o.nationalDonorDropdown=s.first)}},inputs:{donorLocationSettings:"donorLocationSettings"},outputs:{modalClosed:"modalClosed",elevated:"elevated"},standalone:!1,decls:9,vars:3,consts:[["body",""],["footer",""],["nationalDonorItemTemplate",""],["nationalDonorSelectedItemTemplate",""],["nationalDonorDropdown",""],["title","Elevate Location to National Donor",3,"modalClosed","isOpen","bodyTemplate","footerTemplate"],[2,"min-height","300px","font-size","16px"],[1,"tw-relative"],["filterFields","Name,Code","placeholder","Select a Donor","styleClass","",3,"itemSelected","cleared","options","itemTemplate","selectedItemTemplate","disabled","loading"],[1,"form-group","mt-10",3,"ngClass"],["for","donorLocationCode",1,"control-label"],["id","donorLocationCode","name","donorLocationCode","placeholder","Store Number","type","text","autocomplete","off","required","true",1,"form-control",3,"ngModelChange","ngModel","disabled"],["class","help-block",4,"ngIf"],[4,"ngIf"],["class","alert alert-danger",4,"ngIf"],["message","Verifying Code",4,"ngIf"],[1,"help-block"],[1,"tw-px-4","tw-py-6","tw-border","tw-border-solid","tw-bg-gray-100","tw-border-gray-300","tw-rounded"],[1,"tw-block","tw-text-gray-700"],[1,"tw-block","tw-text-gray-500"],["class","tw-block tw-text-gray-500",4,"ngIf"],[1,"alert","alert-danger"],["type","button",1,"btn","btn-default","ml-5",3,"click"],["message","Verifying Code"],[1,"btn","btn-primary",3,"click","disabled"]],template:function(i,o){if(1&i){const s=n.RV6();n.j41(0,"modal",5),n.bIt("modalClosed",function(){return n.eBV(s),n.Njj(o.onModalClosed())}),n.k0s(),n.DNE(1,Xht,14,16,"ng-template",null,0,n.C5r)(3,Kht,2,2,"ng-template",null,1,n.C5r)(5,Qht,2,2,"ng-template",null,2,n.C5r)(7,Jht,2,2,"ng-template",null,3,n.C5r)}if(2&i){const s=n.sdS(2),a=n.sdS(4);n.Y8G("isOpen",!0)("bodyTemplate",s)("footerTemplate",a)}},dependencies:[bi,fi,E2,Yy,Uu,Cc,_o,Sv,ko],encapsulation:2})}}return t})();const eft=["dropdown"],tft=(t,r)=>({"donor-address":t,"donor-main-text":r});function nft(t,r){if(1&t&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&t){const e=n.XpG(3);n.R7$(),n.SpI(" (",null==e.selectedDonorLocation?null:e.selectedDonorLocation.Code,")")}}function ift(t,r){if(1&t&&(n.j41(0,"div",6)(1,"span"),n.EFF(2),n.k0s(),n.DNE(3,nft,2,1,"span",7),n.k0s()),2&t){const e=n.XpG(2);n.R7$(2),n.JRh(null==e.selectedDonorLocation?null:e.selectedDonorLocation.DonorName),n.R7$(),n.Y8G("ngIf",null==e.selectedDonorLocation?null:e.selectedDonorLocation.Code)}}function rft(t,r){if(1&t&&(n.j41(0,"div",6)(1,"span"),n.EFF(2),n.k0s()()),2&t){const e=n.XpG(2);n.R7$(2),n.SjE(" ",null==e.selectedDonorLocation?null:e.selectedDonorLocation.AddressLine1," ",null==e.selectedDonorLocation?null:e.selectedDonorLocation.AddressLine2," ",null==e.selectedDonorLocation?null:e.selectedDonorLocation.City," ",null==e.selectedDonorLocation?null:e.selectedDonorLocation.Province," ",null==e.selectedDonorLocation?null:e.selectedDonorLocation.PostalCode," ")}}function oft(t,r){if(1&t&&n.DNE(0,ift,4,2,"div",5)(1,rft,3,5,"div",5),2&t){const e=n.XpG();n.Y8G("ngIf",!e.hideDonorName),n.R7$(),n.Y8G("ngIf",e.hideDonorName)}}function sft(t,r){if(1&t&&(n.nrm(0,"span",11),n.nI1(1,"highlight")),2&t){const e=n.XpG(2),i=e.$implicit;n.Y8G("innerHtml",n.i5U(1,1," ("+(null==i?null:i.Code)+")",e.searchText),n.npT)}}function aft(t,r){if(1&t&&(n.j41(0,"div",10),n.nrm(1,"span",11),n.nI1(2,"highlight"),n.DNE(3,sft,2,4,"span",9),n.k0s()),2&t){const e=n.XpG(),i=e.$implicit,o=e.searchText;n.R7$(),n.Y8G("innerHtml",n.i5U(2,2,null==i?null:i.DonorName,o),n.npT),n.R7$(2),n.Y8G("ngIf",null==i?null:i.Code)}}function lft(t,r){1&t&&(n.j41(0,"span"),n.EFF(1,"#"),n.k0s())}function cft(t,r){if(1&t&&(n.j41(0,"span"),n.DNE(1,lft,2,0,"span",7),n.EFF(2),n.k0s()),2&t){const e=n.XpG().$implicit,i=n.XpG();n.R7$(),n.Y8G("ngIf",(null==e?null:e.Code)!==i.noFilterText),n.R7$(),n.SpI(" ",null==e||null==e.Code?null:e.Code.trim()," ")}}function uft(t,r){if(1&t&&(n.nrm(0,"span",11),n.nI1(1,"highlight")),2&t){const e=n.XpG(),i=e.$implicit;n.Y8G("innerHtml",n.i5U(1,1,((null==i?null:i.AddressLine1)||"")+" "+((null==i?null:i.AddressLine2)||"")+" "+((null==i?null:i.City)||"")+" "+((null==i?null:i.Province)||"")+" "+((null==i?null:i.PostalCode)||""),e.searchText),n.npT)}}function dft(t,r){if(1&t&&(n.DNE(0,aft,4,5,"div",8),n.j41(1,"div")(2,"span"),n.DNE(3,cft,3,2,"span",7)(4,uft,2,4,"span",9),n.k0s()()),2&t){const e=r.$implicit,i=n.XpG();n.Y8G("ngIf",!i.hideDonorName),n.R7$(),n.HbH(n.l_i(5,tft,!i.hideDonorName,i.hideDonorName)),n.R7$(2),n.Y8G("ngIf",i.hideDonorName&&e.Code),n.R7$(),n.Y8G("ngIf",e.DonorLocationID)}}const pft={provide:tl,useExisting:(0,n.Rfq)(()=>Ade),multi:!0};let Ade=(()=>{class t extends T2{get agencyId(){return this.innerAgencyId}set agencyId(e){this.innerAgencyId=e,this.initialized&&this.loadDonorLocations()}get donorId(){return this.innerDonorId}set donorId(e){this.innerDonorId=e,this.initialized&&this.loadDonorLocations()}constructor(e,i,o){super(),this.donorService=e,this.toasterService=i,this.filterService=o,this.dropdown=null,this.hideDonorName=!1,this.innerAgencyId=null,this.innerDonorId=null,this.donorLocationSelected=new n.bkB,this.initialized=!1,this.donorLocations=[],this.selectedDonorLocation=null,this.loading=!1,this.onChange=s=>{},this.onTouched=()=>{}}ngOnInit(){if(this.agencyId&&this.donorId)throw"Donor Location Picker Component: both agency ID and donor ID cannot be populated at the same time.";this.loadOnInitialization?this.loadDonorLocations():this.initialized=!0}loadDonorLocations(){let e;this.loading=!0,e=this.agencyId?this.donorService.getDonorLocationsByAgency(this.agencyId):this.donorId?this.donorService.getDonorLocationsByDonor(this.donorId):this.donorService.getFoodbankDonorLocations(),e.subscribe(i=>{this.donorLocations=this.donorId?i.map(o=>({DonorLocationID:o.ID,DonorName:o.Donor.Name,Code:o.Code,AddressLine1:o.Address.AddressLine1,AddressLine2:o.Address.AddressLine2,City:o.Address.City,Province:o.Address.Province,PostalCode:o.Address.PostalCode})):[...i],this.includeNoFilterItem&&this.donorLocations.unshift({DonorName:this.noFilterText,Code:this.hideDonorName?this.noFilterText:"",DonorLocationID:null}),this.loading=!1,this.initialized=!0},i=>{this.toasterService.displayErrorToast("Error","Error loading donor locations"),this.loading=!1})}onDonorLocationSelected(e){this.selectedDonorLocation=e,this.donorLocationSelected.emit(e),this.onChange(e)}get value(){return this.selectedDonorLocation}writeValue(e){this.selectedDonorLocation=e,this.dropdown&&this.dropdown.setSelectedItem(e),this.onChange(this.selectedDonorLocation)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(KF),n.rXU(tc),n.rXU(Cx))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["donor-location-picker"]],viewQuery:function(i,o){if(1&i&&n.GBs(eft,5),2&i){let s;n.mGM(s=n.lsd())&&(o.dropdown=s.first)}},inputs:{hideDonorName:"hideDonorName",agencyId:"agencyId",donorId:"donorId"},outputs:{donorLocationSelected:"donorLocationSelected"},standalone:!1,features:[n.Jv_([pft]),n.Vt3],decls:7,vars:6,consts:[["selectedDonorLocationTemplate",""],["donorLocationTemplate",""],["dropdown",""],[1,"row"],["filterFields","Code,DonorName,AddressLine1,AddressLine2,City,PostalCode,Province",3,"itemSelected","options","itemTemplate","selectedItemTemplate","loading","disabled","placeholder"],["class","donor-main-text donor-selected",4,"ngIf"],[1,"donor-main-text","donor-selected"],[4,"ngIf"],["class","donor-main-text",4,"ngIf"],[3,"innerHtml",4,"ngIf"],[1,"donor-main-text"],[3,"innerHtml"]],template:function(i,o){if(1&i){const s=n.RV6();n.DNE(0,oft,2,2,"ng-template",null,0,n.C5r)(2,dft,5,8,"ng-template",null,1,n.C5r),n.j41(4,"div",3)(5,"dropdown",4,2),n.bIt("itemSelected",function(l){return n.eBV(s),n.Njj(o.onDonorLocationSelected(l))}),n.k0s()()}if(2&i){const s=n.sdS(1),a=n.sdS(3);n.R7$(5),n.Y8G("options",o.donorLocations)("itemTemplate",a)("selectedItemTemplate",s)("loading",o.loading)("disabled",o.disabled)("placeholder",o.placeholder)}},dependencies:[fi,Uu,Zd],styles:[".donor-selected[_ngcontent-%COMP%]{margin-top:2px}.donor-main-text[_ngcontent-%COMP%]{font-size:14px;padding-right:15px;overflow:hidden;text-overflow:ellipsis;min-height:23px}.donor-address[_ngcontent-%COMP%]{font-size:10px}.warning-icon[_ngcontent-%COMP%], .loading-icon[_ngcontent-%COMP%]{margin-top:7px;margin-left:0}"]})}}return t})();const hft=["dropdown"];function fft(t,r){if(1&t&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&t){const e=n.XpG().$implicit;n.R7$(),n.SpI(" (",null==e||null==e.Code?null:e.Code.trim(),")")}}function mft(t,r){if(1&t&&(n.j41(0,"div",5)(1,"span"),n.EFF(2),n.k0s(),n.DNE(3,fft,2,1,"span",6),n.k0s()),2&t){const e=r.$implicit;n.R7$(2),n.JRh(null==e?null:e.Name),n.R7$(),n.Y8G("ngIf",null==e||null==e.Code?null:e.Code.trim())}}function gft(t,r){if(1&t&&(n.nrm(0,"span",8),n.nI1(1,"highlight")),2&t){const e=n.XpG(),i=e.$implicit,o=e.searchText;n.Y8G("innerHtml",n.i5U(1,1," ("+(null==i||null==i.Code?null:i.Code.trim())+")",o),n.npT)}}function vft(t,r){if(1&t&&(n.j41(0,"div",7),n.nrm(1,"span",8),n.nI1(2,"highlight"),n.DNE(3,gft,2,4,"span",9),n.k0s()),2&t){const e=r.$implicit,i=r.searchText;n.R7$(),n.Y8G("innerHtml",n.i5U(2,2,null==e?null:e.Name,i),n.npT),n.R7$(2),n.Y8G("ngIf",null==e?null:e.Code)}}let _ft=(()=>{class t extends T2{constructor(e,i){super(),this.donorService=e,this.toasterService=i,this.dropdown=null,this.donorSelected=new n.bkB,this.isFanoList=!1,this.donors=[],this.selectedDonor=null,this.loading=!1,this.onChange=o=>{},this.onTouched=()=>{}}ngOnInit(){this.loadOnInitialization&&this.loadDonors()}ngOnChanges(e){const i=this.donors.find(o=>-1==o.ID);e.includeStoreLevelDetail.currentValue&&!i&&this.donors.splice(1,0,{Name:this.storeLevelText,Code:this.storeLevelCode,ID:-1}),!e.includeStoreLevelDetail.currentValue&&i&&(this.donors=this.donors.filter(o=>-1!=o.ID))}loadDonors(){let e;this.loading=!0,e=this.isFanoList?this.donorService.getAllDonors():this.donorService.getDonorsByFoodbank(),e.subscribe(i=>{this.donors=[...i],this.includeStoreLevelDetail&&this.donors.unshift({Name:this.storeLevelText,Code:this.storeLevelCode,ID:-1}),this.includeNoFilterItem&&this.donors.unshift({Name:this.noFilterText,Code:"",DonorLocationID:null}),this.loading=!1},i=>{this.toasterService.displayErrorToast("Error","Error loading donors"),this.loading=!1})}onDonorSelected(e){this.selectedDonor=e,this.donorSelected.emit(e),this.onChange(e)}get value(){return this.selectedDonor}writeValue(e){this.selectedDonor=e,this.dropdown&&this.dropdown.setSelectedItem(e),this.onChange(this.selectedDonor)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(KF),n.rXU(tc))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["donor-picker"]],viewQuery:function(i,o){if(1&i&&n.GBs(hft,5),2&i){let s;n.mGM(s=n.lsd())&&(o.dropdown=s.first)}},inputs:{isFanoList:"isFanoList"},outputs:{donorSelected:"donorSelected"},standalone:!1,features:[n.Jv_([{provide:tl,useExisting:(0,n.Rfq)(()=>t),multi:!0}]),n.Vt3,n.OA$],decls:7,vars:6,consts:[["selectedDonorTemplate",""],["donorTemplate",""],["dropdown",""],[1,"row"],["filterFields","Name,Code",3,"itemSelected","options","itemTemplate","selectedItemTemplate","loading","placeholder","disabled"],[1,"donor-name","donor-selected"],[4,"ngIf"],[1,"donor-name"],[3,"innerHtml"],[3,"innerHtml",4,"ngIf"]],template:function(i,o){if(1&i){const s=n.RV6();n.DNE(0,mft,4,2,"ng-template",null,0,n.C5r)(2,vft,4,5,"ng-template",null,1,n.C5r),n.j41(4,"div",3)(5,"dropdown",4,2),n.bIt("itemSelected",function(l){return n.eBV(s),n.Njj(o.onDonorSelected(l))}),n.k0s()()}if(2&i){const s=n.sdS(1),a=n.sdS(3);n.R7$(5),n.Y8G("options",o.donors)("itemTemplate",a)("selectedItemTemplate",s)("loading",o.loading)("placeholder",o.placeholder)("disabled",o.disabled)}},dependencies:[fi,Uu,Zd],styles:[".donor-name[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:14px}.donor-selected[_ngcontent-%COMP%]{margin-top:2px}.donor-name[_ngcontent-%COMP%]{padding-right:15px;overflow:hidden;text-overflow:ellipsis;min-height:17px}.warning-icon[_ngcontent-%COMP%], .loading-icon[_ngcontent-%COMP%]{margin-top:7px;margin-left:0}"]})}}return t})(),yft=(()=>{class t{constructor(e){this.http=e}getPossibleDonorLocationsForUser(e,i){return this.http.get(`/api/donoruserlocations?userId=${i}&donorId=${e}`)}updateDonorLocationsForUser(e){return this.http.put("/api/donoruserlocations",e)}static{this.\u0275fac=function(i){return new(i||t)(n.KVO(Da))}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const bft=["activeDonorLocationTable"],Cft=()=>["Code","AddressLine1","AddressLine2","City","Province","PostalCode"];function wft(t,r){if(1&t&&(n.j41(0,"div")(1,"div")(2,"span"),n.EFF(3),n.k0s(),n.j41(4,"span"),n.EFF(5),n.k0s()(),n.j41(6,"div",16)(7,"span"),n.EFF(8),n.k0s()()()),2&t){const e=n.XpG(2);n.R7$(3),n.JRh(e.selectedDonorLocation.DonorName),n.R7$(2),n.SpI(" (",e.selectedDonorLocation.Code,")"),n.R7$(3),n.SjE(" ",e.selectedDonorLocation.AddressLine1," ",e.selectedDonorLocation.AddressLine2," ",e.selectedDonorLocation.City," ",e.selectedDonorLocation.Province," ",e.selectedDonorLocation.PostalCode," ")}}function Tft(t,r){if(1&t&&n.DNE(0,wft,9,7,"div",11),2&t){const e=n.XpG();n.Y8G("ngIf",e.selectedDonorLocation)}}function Sft(t,r){if(1&t&&(n.j41(0,"div",17),n.nrm(1,"span",18),n.nI1(2,"highlight"),n.nrm(3,"span",18),n.nI1(4,"highlight"),n.k0s(),n.j41(5,"div",19)(6,"span")(7,"span"),n.EFF(8),n.k0s(),n.nrm(9,"span",18),n.nI1(10,"highlight"),n.k0s()()),2&t){const e=r.$implicit,i=r.searchText;n.R7$(),n.Y8G("innerHtml",n.i5U(2,4,null==e?null:e.DonorName,i),n.npT),n.R7$(2),n.Y8G("innerHtml",n.i5U(4,7," ("+(null==e?null:e.Code)+")",i),n.npT),n.R7$(5),n.SpI(" ",null==e||null==e.Code?null:e.Code.trim()," "),n.R7$(),n.Y8G("innerHtml",n.i5U(10,10,((null==e?null:e.AddressLine1)||"")+" "+((null==e?null:e.AddressLine2)||"")+" "+((null==e?null:e.City)||"")+" "+((null==e?null:e.Province)||"")+" "+((null==e?null:e.PostalCode)||""),i),n.npT)}}function xft(t,r){1&t&&(n.j41(0,"div",20)(1,"div",21),n.nrm(2,"loading"),n.k0s()())}function Eft(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",22)(1,"dropdown",23,3),n.bIt("itemSelected",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onDonorLocationSelected(o))}),n.k0s()()}if(2&t){const e=n.XpG(),i=n.sdS(1),o=n.sdS(3);n.R7$(),n.Y8G("options",e.allowedDonorLocations)("itemTemplate",o)("selectedItemTemplate",i)("disabled",!1)}}function Dft(t,r){1&t&&(n.j41(0,"span"),n.EFF(1,"s"),n.k0s())}function kft(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",24)(1,"input",25),n.bIt("input",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.applyFilterGlobal(o,"contains"))}),n.mxI("ngModelChange",function(o){n.eBV(e);const s=n.XpG();return n.DH7(s.activeDonorLocationFilter,o)||(s.activeDonorLocationFilter=o),n.Njj(o)}),n.k0s()()}if(2&t){const e=n.XpG();n.R7$(),n.R50("ngModel",e.activeDonorLocationFilter)}}function Ift(t,r){1&t&&(n.j41(0,"tr")(1,"th"),n.EFF(2,"Code"),n.k0s(),n.j41(3,"th"),n.EFF(4,"Address"),n.k0s(),n.nrm(5,"th"),n.k0s())}function Aft(t,r){if(1&t){const e=n.RV6();n.j41(0,"tr")(1,"td"),n.EFF(2),n.k0s(),n.j41(3,"td"),n.nrm(4,"span",18),n.nI1(5,"highlight"),n.k0s(),n.j41(6,"td")(7,"button",26),n.bIt("click",function(){const o=n.eBV(e).$implicit,s=n.XpG();return n.Njj(s.removeDonorLocationFromList(o))}),n.EFF(8," Remove "),n.k0s()()()}if(2&t){const e=r.$implicit,i=n.XpG();n.R7$(2),n.JRh(e.Code),n.R7$(2),n.Y8G("innerHtml",n.i5U(5,3,((null==e?null:e.AddressLine1)||"")+" "+((null==e?null:e.AddressLine2)||"")+" "+((null==e?null:e.City)||"")+" "+((null==e?null:e.Province)||"")+" "+((null==e?null:e.PostalCode)||""),i.activeDonorLocationFilter),n.npT),n.R7$(3),n.Y8G("disabled",!!i.userId&&1===i.activeDonorLocations.length)}}function Mft(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",28),n.bIt("click",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.save())}),n.EFF(1," Save "),n.k0s()}if(2&t){const e=n.XpG(2);n.Y8G("disabled",!e.enableSave||e.saving)}}function Rft(t,r){if(1&t&&(n.j41(0,"div"),n.DNE(1,Mft,2,1,"button",27),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngIf",e.userId)}}let Oft=(()=>{class t{get userId(){return this.internalUserId}set userId(e){this.internalUserId=e,this.loadActiveAndAllowedLocations()}constructor(e,i){this.donorUserLocationService=e,this.toasterService=i,this.donorId=0,this.internalUserId=null,this.locationsUpdated=new n.bkB,this.selectedDonorLocation=null,this.allowedDonorLocations=[],this.donorLocations=[],this.activeDonorLocations=[],this.activeDonorLocationFilter="",this.loading=!1,this.saving=!1,this.enableSave=!1}ngOnInit(){}loadActiveAndAllowedLocations(){this.donorId&&(this.loading=!0,this.donorUserLocationService.getPossibleDonorLocationsForUser(this.donorId,this.userId).subscribe(e=>{this.loading=!1,e.Successful||e.Value?(this.activeDonorLocations=e.Value.ActiveDonorLocations,this.allowedDonorLocations=e.Value.AllowedDonorLocations,this.donorLocations=[...this.activeDonorLocations,...this.allowedDonorLocations]):this.toasterService.displayErrorToast("Error","Error loading donor locations.")}))}onDonorLocationSelected(e){this.selectedDonorLocation=e}addSelectedDonorLocationToList(){this.activeDonorLocations.push(this.selectedDonorLocation),this.filterDonorLocations(),this.selectedDonorLocation=null}removeDonorLocationFromList(e){this.activeDonorLocations=this.activeDonorLocations.filter(i=>i!==e),this.filterDonorLocations()}clear(e){e.clear()}applyFilterGlobal(e,i){this.activeDonorLocationTable.filterGlobal(e.target.value,i)}filterDonorLocations(){this.enableSave=!0,this.allowedDonorLocations=this.donorLocations.filter(e=>!this.activeDonorLocations.some(i=>i===e)),this.locationsUpdated.emit(this.activeDonorLocations)}save(){this.saving=!0,this.donorUserLocationService.updateDonorLocationsForUser({DonorId:this.donorId,DonorLocationIDs:this.activeDonorLocations.map(e=>e.DonorLocationID),UserId:this.userId}).subscribe(e=>{e.Successful?(this.locationsUpdated.emit(this.activeDonorLocations),this.toasterService.displayInfoToast("Success","Donor Locations Updated")):this.toasterService.displayErrorToast("Error","There was a problem updating donor locations. Please try again.")},()=>{this.toasterService.displayErrorToast("Error","Error saving donor locations.")},()=>{this.saving=!1,this.enableSave=!1})}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(yft),n.rXU(tc))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["donor-user-location-management"]],viewQuery:function(i,o){if(1&i&&n.GBs(bft,5),2&i){let s;n.mGM(s=n.lsd())&&(o.activeDonorLocationTable=s.first)}},inputs:{donorId:"donorId",userId:"userId"},outputs:{locationsUpdated:"locationsUpdated"},standalone:!1,decls:21,vars:12,consts:[["selectedDonorLocationTemplate",""],["donorLocationTemplate",""],["activeDonorLocationTable",""],["dropdown",""],[1,"tw-flex","tw-flex-col","tw-w-full",2,"min-height","300px"],["class","tw-flex tw-flex-row tw-w-full tw-justify-center",4,"ngIf"],["class","tw-w-full",4,"ngIf"],[1,"tw-w-full","tw-mt-3"],["type","button",1,"btn","btn-primary","tw-mt-3",3,"click","disabled"],[1,"tw-w-full","tw-m-2","tw-mt-10"],[1,"tw-font-bold"],[4,"ngIf"],["scrollHeight","300px",3,"scrollable","value","responsive","breakpoint","globalFilterFields"],["pTemplate","caption"],["pTemplate","header"],["pTemplate","body"],[1,"donor-main-text","donor-selected"],[1,"donor-main-text"],[3,"innerHtml"],[1,"donor-address"],[1,"tw-flex","tw-flex-row","tw-w-full","tw-justify-center"],[1,"tw-flex"],[1,"tw-w-full"],["filterFields","Code,DonorName,AddressLine1,AddressLine2,City,PostalCode,Province","styleClass","","placeholder","Select a Donor Location",3,"itemSelected","options","itemTemplate","selectedItemTemplate","disabled"],[1,"flex"],["type","text","placeholder","Search",3,"input","ngModelChange","ngModel"],[1,"btn","btn-danger",3,"click","disabled"],["class","btn btn-primary","label","Save",3,"disabled","click",4,"ngIf"],["label","Save",1,"btn","btn-primary",3,"click","disabled"]],template:function(i,o){if(1&i){const s=n.RV6();n.DNE(0,Tft,1,1,"ng-template",null,0,n.C5r)(2,Sft,11,13,"ng-template",null,1,n.C5r),n.j41(4,"div",4),n.DNE(5,xft,3,0,"div",5)(6,Eft,3,4,"div",6),n.j41(7,"div",7)(8,"button",8),n.bIt("click",function(){return n.eBV(s),n.Njj(o.addSelectedDonorLocationToList())}),n.EFF(9," Add Selected "),n.k0s()(),n.j41(10,"div",9)(11,"div",10),n.EFF(12),n.DNE(13,Dft,2,0,"span",11),n.EFF(14," selected "),n.k0s(),n.j41(15,"p-table",12,2),n.DNE(17,kft,2,1,"ng-template",13)(18,Ift,6,0,"ng-template",14)(19,Aft,9,6,"ng-template",15),n.k0s()()(),n.DNE(20,Rft,2,1,"div",11)}2&i&&(n.R7$(5),n.Y8G("ngIf",o.loading),n.R7$(),n.Y8G("ngIf",!o.loading),n.R7$(2),n.Y8G("disabled",!o.selectedDonorLocation),n.R7$(4),n.SpI(" ",o.activeDonorLocations.length," location"),n.R7$(),n.Y8G("ngIf",1!==o.activeDonorLocations.length),n.R7$(2),n.Y8G("scrollable",!0)("value",o.activeDonorLocations)("responsive",!0)("breakpoint","960px")("globalFilterFields",n.lJ4(11,Cft)),n.R7$(5),n.Y8G("ngIf",o.userId))},dependencies:[fi,Yy,Uu,hs,Cc,_o,ko,Nu,Zd],styles:[".donor-selected[_ngcontent-%COMP%]{margin-top:2px}.donor-main-text[_ngcontent-%COMP%]{font-size:14px;padding-right:15px;overflow:hidden;text-overflow:ellipsis;min-height:23px}.donor-address[_ngcontent-%COMP%]{font-size:10px}.warning-icon[_ngcontent-%COMP%], .loading-icon[_ngcontent-%COMP%]{margin-top:7px;margin-left:0}td[_ngcontent-%COMP%]{padding-top:5px!important;padding-bottom:5px!important}"]})}}return t})();function eC(t){return Array.isArray?Array.isArray(t):"[object Array]"===Ode(t)}function zy(t){return"string"==typeof t}function Mde(t){return"number"==typeof t}function Rde(t){return"object"==typeof t}function Ig(t){return null!=t}function oX(t){return!t.trim().length}function Ode(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const Fde=Object.prototype.hasOwnProperty;class $ft{constructor(r){this._keys=[],this._keyMap={};let e=0;r.forEach(i=>{let o=Pde(i);this._keys.push(o),this._keyMap[o.id]=o,e+=o.weight}),this._keys.forEach(i=>{i.weight/=e})}get(r){return this._keyMap[r]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Pde(t){let r=null,e=null,i=null,o=1,s=null;if(zy(t)||eC(t))i=t,r=Lde(t),e=sX(t);else{if(!Fde.call(t,"name"))throw new Error("Missing name property in key");const a=t.name;if(i=a,Fde.call(t,"weight")&&(o=t.weight,o<=0))throw new Error((t=>`Property 'weight' in key '${t}' must be a positive integer`)(a));r=Lde(a),e=sX(a),s=t.getFn}return{path:r,id:e,weight:o,src:i,getFn:s}}function Lde(t){return eC(t)?t:t.split(".")}function sX(t){return eC(t)?t.join("."):t}var ua={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,r)=>t.score===r.score?t.idx<r.idx?-1:1:t.score<r.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,useExtendedSearch:!1,getFn:function Yft(t,r){let e=[],i=!1;const o=(s,a,l)=>{if(Ig(s))if(a[l]){const d=s[a[l]];if(!Ig(d))return;if(l===a.length-1&&(zy(d)||Mde(d)||function Nft(t){return!0===t||!1===t||function Gft(t){return Rde(t)&&null!==t}(t)&&"[object Boolean]"==Ode(t)}(d)))e.push(function Lft(t){return null==t?"":function Pft(t){if("string"==typeof t)return t;let r=t+"";return"0"==r&&1/t==-1/0?"-0":r}(t)}(d));else if(eC(d)){i=!0;for(let f=0,v=d.length;f<v;f+=1)o(d[f],a,l+1)}else a.length&&o(d,a,l+1)}else e.push(s)};return o(t,zy(r)?r.split("."):r,0),i?e:e[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};const Wft=/[^ ]+/g;class aX{constructor({getFn:r=ua.getFn,fieldNormWeight:e=ua.fieldNormWeight}={}){this.norm=function zft(t=1,r=3){const e=new Map,i=Math.pow(10,r);return{get(o){const s=o.match(Wft).length;if(e.has(s))return e.get(s);const a=1/Math.pow(s,.5*t),l=parseFloat(Math.round(a*i)/i);return e.set(s,l),l},clear(){e.clear()}}}(e,3),this.getFn=r,this.isCreated=!1,this.setIndexRecords()}setSources(r=[]){this.docs=r}setIndexRecords(r=[]){this.records=r}setKeys(r=[]){this.keys=r,this._keysMap={},r.forEach((e,i)=>{this._keysMap[e.id]=i})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,zy(this.docs[0])?this.docs.forEach((r,e)=>{this._addString(r,e)}):this.docs.forEach((r,e)=>{this._addObject(r,e)}),this.norm.clear())}add(r){const e=this.size();zy(r)?this._addString(r,e):this._addObject(r,e)}removeAt(r){this.records.splice(r,1);for(let e=r,i=this.size();e<i;e+=1)this.records[e].i-=1}getValueForItemAtKeyId(r,e){return r[this._keysMap[e]]}size(){return this.records.length}_addString(r,e){if(!Ig(r)||oX(r))return;let i={v:r,i:e,n:this.norm.get(r)};this.records.push(i)}_addObject(r,e){let i={i:e,$:{}};this.keys.forEach((o,s)=>{let a=o.getFn?o.getFn(r):this.getFn(r,o.path);if(Ig(a))if(eC(a)){let l=[];const c=[{nestedArrIndex:-1,value:a}];for(;c.length;){const{nestedArrIndex:d,value:f}=c.pop();if(Ig(f))if(zy(f)&&!oX(f)){let v={v:f,i:d,n:this.norm.get(f)};l.push(v)}else eC(f)&&f.forEach((v,w)=>{c.push({nestedArrIndex:w,value:v})})}i.$[s]=l}else if(zy(a)&&!oX(a)){let l={v:a,n:this.norm.get(a)};i.$[s]=l}}),this.records.push(i)}toJSON(){return{keys:this.keys,records:this.records}}}function Nde(t,r,{getFn:e=ua.getFn,fieldNormWeight:i=ua.fieldNormWeight}={}){const o=new aX({getFn:e,fieldNormWeight:i});return o.setKeys(t.map(Pde)),o.setSources(r),o.create(),o}function qft(t,{getFn:r=ua.getFn,fieldNormWeight:e=ua.fieldNormWeight}={}){const{keys:i,records:o}=t,s=new aX({getFn:r,fieldNormWeight:e});return s.setKeys(i),s.setIndexRecords(o),s}function a6(t,{errors:r=0,currentLocation:e=0,expectedLocation:i=0,distance:o=ua.distance,ignoreLocation:s=ua.ignoreLocation}={}){const a=r/t.length;if(s)return a;const l=Math.abs(i-e);return o?a+l/o:l?1:a}function Qft(t){let r={};for(let e=0,i=t.length;e<i;e+=1){const o=t.charAt(e);r[o]=(r[o]||0)|1<<i-e-1}return r}const l6=String.prototype.normalize?t=>t.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,""):t=>t;class Gde{constructor(r,{location:e=ua.location,threshold:i=ua.threshold,distance:o=ua.distance,includeMatches:s=ua.includeMatches,findAllMatches:a=ua.findAllMatches,minMatchCharLength:l=ua.minMatchCharLength,isCaseSensitive:c=ua.isCaseSensitive,ignoreDiacritics:d=ua.ignoreDiacritics,ignoreLocation:f=ua.ignoreLocation}={}){if(this.options={location:e,threshold:i,distance:o,includeMatches:s,findAllMatches:a,minMatchCharLength:l,isCaseSensitive:c,ignoreDiacritics:d,ignoreLocation:f},r=c?r:r.toLowerCase(),r=d?l6(r):r,this.pattern=r,this.chunks=[],!this.pattern.length)return;const v=(x,I)=>{this.chunks.push({pattern:x,alphabet:Qft(x),startIndex:I})},w=this.pattern.length;if(w>32){let x=0;const I=w%32,M=w-I;for(;x<M;)v(this.pattern.substr(x,32),x),x+=32;if(I){const F=w-32;v(this.pattern.substr(F),F)}}else v(this.pattern,0)}searchIn(r){const{isCaseSensitive:e,ignoreDiacritics:i,includeMatches:o}=this.options;if(r=e?r:r.toLowerCase(),r=i?l6(r):r,this.pattern===r){let M={isMatch:!0,score:0};return o&&(M.indices=[[0,r.length-1]]),M}const{location:s,distance:a,threshold:l,findAllMatches:c,minMatchCharLength:d,ignoreLocation:f}=this.options;let v=[],w=0,x=!1;this.chunks.forEach(({pattern:M,alphabet:F,startIndex:re})=>{const{isMatch:pe,score:we,indices:je}=function Kft(t,r,e,{location:i=ua.location,distance:o=ua.distance,threshold:s=ua.threshold,findAllMatches:a=ua.findAllMatches,minMatchCharLength:l=ua.minMatchCharLength,includeMatches:c=ua.includeMatches,ignoreLocation:d=ua.ignoreLocation}={}){if(r.length>32)throw new Error("Pattern length exceeds max of 32.");const f=r.length,v=t.length,w=Math.max(0,Math.min(i,v));let x=s,I=w;const M=l>1||c,F=M?Array(v):[];let re;for(;(re=t.indexOf(r,I))>-1;){let rt=a6(r,{currentLocation:re,expectedLocation:w,distance:o,ignoreLocation:d});if(x=Math.min(rt,x),I=re+f,M){let lt=0;for(;lt<f;)F[re+lt]=1,lt+=1}}I=-1;let pe=[],we=1,je=f+v;const tt=1<<f-1;for(let rt=0;rt<f;rt+=1){let lt=0,bt=je;for(;lt<bt;)a6(r,{errors:rt,currentLocation:w+bt,expectedLocation:w,distance:o,ignoreLocation:d})<=x?lt=bt:je=bt,bt=Math.floor((je-lt)/2+lt);je=bt;let Wt=Math.max(1,w-bt+1),Zt=a?v:Math.min(w+bt,v)+f,en=Array(Zt+2);en[Zt+1]=(1<<rt)-1;for(let Wi=Zt;Wi>=Wt;Wi-=1){let ki=Wi-1,Xr=e[t.charAt(ki)];if(M&&(F[ki]=+!!Xr),en[Wi]=(en[Wi+1]<<1|1)&Xr,rt&&(en[Wi]|=(pe[Wi+1]|pe[Wi])<<1|1|pe[Wi+1]),en[Wi]&tt&&(we=a6(r,{errors:rt,currentLocation:ki,expectedLocation:w,distance:o,ignoreLocation:d}),we<=x)){if(x=we,I=ki,I<=w)break;Wt=Math.max(1,2*w-I)}}if(a6(r,{errors:rt+1,currentLocation:w,expectedLocation:w,distance:o,ignoreLocation:d})>x)break;pe=en}const nt={isMatch:I>=0,score:Math.max(.001,we)};if(M){const rt=function Xft(t=[],r=ua.minMatchCharLength){let e=[],i=-1,o=-1,s=0;for(let a=t.length;s<a;s+=1){let l=t[s];l&&-1===i?i=s:!l&&-1!==i&&(o=s-1,o-i+1>=r&&e.push([i,o]),i=-1)}return t[s-1]&&s-i>=r&&e.push([i,s-1]),e}(F,l);rt.length?c&&(nt.indices=rt):nt.isMatch=!1}return nt}(r,M,F,{location:s+re,distance:a,threshold:l,findAllMatches:c,minMatchCharLength:d,includeMatches:o,ignoreLocation:f});pe&&(x=!0),w+=we,pe&&je&&(v=[...v,...je])});let I={isMatch:x,score:x?w/this.chunks.length:1};return x&&o&&(I.indices=v),I}}class ST{constructor(r){this.pattern=r}static isMultiMatch(r){return Bde(r,this.multiRegex)}static isSingleMatch(r){return Bde(r,this.singleRegex)}search(){}}function Bde(t,r){const e=t.match(r);return e?e[1]:null}class Vde extends ST{constructor(r,{location:e=ua.location,threshold:i=ua.threshold,distance:o=ua.distance,includeMatches:s=ua.includeMatches,findAllMatches:a=ua.findAllMatches,minMatchCharLength:l=ua.minMatchCharLength,isCaseSensitive:c=ua.isCaseSensitive,ignoreDiacritics:d=ua.ignoreDiacritics,ignoreLocation:f=ua.ignoreLocation}={}){super(r),this._bitapSearch=new Gde(r,{location:e,threshold:i,distance:o,includeMatches:s,findAllMatches:a,minMatchCharLength:l,isCaseSensitive:c,ignoreDiacritics:d,ignoreLocation:f})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(r){return this._bitapSearch.searchIn(r)}}class jde extends ST{constructor(r){super(r)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(r){let i,e=0;const o=[],s=this.pattern.length;for(;(i=r.indexOf(this.pattern,e))>-1;)e=i+s,o.push([i,e-1]);const a=!!o.length;return{isMatch:a,score:a?0:1,indices:o}}}const lX=[class Jft extends ST{constructor(r){super(r)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(r){const e=r===this.pattern;return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}},jde,class emt extends ST{constructor(r){super(r)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(r){const e=r.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}},class tmt extends ST{constructor(r){super(r)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(r){const e=!r.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,r.length-1]}}},class imt extends ST{constructor(r){super(r)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(r){const e=!r.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,r.length-1]}}},class nmt extends ST{constructor(r){super(r)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(r){const e=r.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[r.length-this.pattern.length,r.length-1]}}},class Zft extends ST{constructor(r){super(r)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(r){const i=-1===r.indexOf(this.pattern);return{isMatch:i,score:i?0:1,indices:[0,r.length-1]}}},Vde],Hde=lX.length,rmt=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,amt=new Set([Vde.type,jde.type]),cX=[];function uX(t,r){for(let e=0,i=cX.length;e<i;e+=1){let o=cX[e];if(o.condition(t,r))return new o(t,r)}return new Gde(t,r)}const c6_AND="$and",pX=t=>!(!t.$and&&!t.$or),Ude=t=>({[c6_AND]:Object.keys(t).map(r=>({[r]:t[r]}))});function $de(t,r,{auto:e=!0}={}){const i=o=>{let s=Object.keys(o);const a=(t=>!!t.$path)(o);if(!a&&s.length>1&&!pX(o))return i(Ude(o));if((t=>!eC(t)&&Rde(t)&&!pX(t))(o)){const c=a?o.$path:s[0],d=a?o.$val:o[c];if(!zy(d))throw new Error((t=>`Invalid value for key ${t}`)(c));const f={keyId:sX(c),pattern:d};return e&&(f.searcher=uX(d,r)),f}let l={children:[],operator:s[0]};return s.forEach(c=>{const d=o[c];eC(d)&&d.forEach(f=>{l.children.push(i(f))})}),l};return pX(t)||(t=Ude(t)),i(t)}function hmt(t,r){const e=t.matches;r.matches=[],Ig(e)&&e.forEach(i=>{if(!Ig(i.indices)||!i.indices.length)return;const{indices:o,value:s}=i;let a={indices:o,value:s};i.key&&(a.key=i.key.src),i.idx>-1&&(a.refIndex=i.idx),r.matches.push(a)})}function fmt(t,r){r.score=t.score}let tC=(()=>{class t{constructor(e,i={},o){this.options={...ua,...i},this._keyStore=new $ft(this.options.keys),this.setCollection(e,o)}setCollection(e,i){if(this._docs=e,i&&!(i instanceof aX))throw new Error("Incorrect 'index' type");this._myIndex=i||Nde(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){Ig(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const i=[];for(let o=0,s=this._docs.length;o<s;o+=1){const a=this._docs[o];e(a,o)&&(this.removeAt(o),o-=1,s-=1,i.push(a))}return i}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:i=-1}={}){const{includeMatches:o,includeScore:s,shouldSort:a,sortFn:l,ignoreFieldNorm:c}=this.options;let d=zy(e)?zy(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return function pmt(t,{ignoreFieldNorm:r=ua.ignoreFieldNorm}){t.forEach(e=>{let i=1;e.matches.forEach(({key:o,norm:s,score:a})=>{const l=o?o.weight:null;i*=Math.pow(0===a&&l?Number.EPSILON:a,(l||1)*(r?1:s))}),e.score=i})}(d,{ignoreFieldNorm:c}),a&&d.sort(l),Mde(i)&&i>-1&&(d=d.slice(0,i)),function mmt(t,r,{includeMatches:e=ua.includeMatches,includeScore:i=ua.includeScore}={}){const o=[];return e&&o.push(hmt),i&&o.push(fmt),t.map(s=>{const{idx:a}=s,l={item:r[a],refIndex:a};return o.length&&o.forEach(c=>{c(s,l)}),l})}(d,this._docs,{includeMatches:o,includeScore:s})}_searchStringList(e){const i=uX(e,this.options),{records:o}=this._myIndex,s=[];return o.forEach(({v:a,i:l,n:c})=>{if(!Ig(a))return;const{isMatch:d,score:f,indices:v}=i.searchIn(a);d&&s.push({item:a,idx:l,matches:[{score:f,value:a,norm:c,indices:v}]})}),s}_searchLogical(e){const i=$de(e,this.options),o=(c,d,f)=>{if(!c.children){const{keyId:w,searcher:x}=c,I=this._findMatches({key:this._keyStore.get(w),value:this._myIndex.getValueForItemAtKeyId(d,w),searcher:x});return I&&I.length?[{idx:f,item:d,matches:I}]:[]}const v=[];for(let w=0,x=c.children.length;w<x;w+=1){const M=o(c.children[w],d,f);if(M.length)v.push(...M);else if("$and"===c.operator)return[]}return v},a={},l=[];return this._myIndex.records.forEach(({$:c,i:d})=>{if(Ig(c)){let f=o(i,c,d);f.length&&(a[d]||(a[d]={idx:d,item:c,matches:[]},l.push(a[d])),f.forEach(({matches:v})=>{a[d].matches.push(...v)}))}}),l}_searchObjectList(e){const i=uX(e,this.options),{keys:o,records:s}=this._myIndex,a=[];return s.forEach(({$:l,i:c})=>{if(!Ig(l))return;let d=[];o.forEach((f,v)=>{d.push(...this._findMatches({key:f,value:l[v],searcher:i}))}),d.length&&a.push({idx:c,item:l,matches:d})}),a}_findMatches({key:e,value:i,searcher:o}){if(!Ig(i))return[];let s=[];if(eC(i))i.forEach(({v:a,i:l,n:c})=>{if(!Ig(a))return;const{isMatch:d,score:f,indices:v}=o.searchIn(a);d&&s.push({score:f,key:e,value:a,idx:l,norm:c,indices:v})});else{const{v:a,n:l}=i,{isMatch:c,score:d,indices:f}=o.searchIn(a);c&&s.push({score:d,key:e,value:a,norm:l,indices:f})}return s}}return t.version="7.1.0",t.createIndex=Nde,t.parseIndex=qft,t.config=ua,t})();tC.parseQuery=$de,function cmt(...t){cX.push(...t)}(class lmt{constructor(r,{isCaseSensitive:e=ua.isCaseSensitive,ignoreDiacritics:i=ua.ignoreDiacritics,includeMatches:o=ua.includeMatches,minMatchCharLength:s=ua.minMatchCharLength,ignoreLocation:a=ua.ignoreLocation,findAllMatches:l=ua.findAllMatches,location:c=ua.location,threshold:d=ua.threshold,distance:f=ua.distance}={}){this.query=null,this.options={isCaseSensitive:e,ignoreDiacritics:i,includeMatches:o,minMatchCharLength:s,findAllMatches:l,ignoreLocation:a,location:c,threshold:d,distance:f},r=e?r:r.toLowerCase(),r=i?l6(r):r,this.pattern=r,this.query=function smt(t,r={}){return t.split("|").map(e=>{let i=e.trim().split(rmt).filter(s=>s&&!!s.trim()),o=[];for(let s=0,a=i.length;s<a;s+=1){const l=i[s];let c=!1,d=-1;for(;!c&&++d<Hde;){const f=lX[d];let v=f.isMultiMatch(l);v&&(o.push(new f(v,r)),c=!0)}if(!c)for(d=-1;++d<Hde;){const f=lX[d];let v=f.isSingleMatch(l);if(v){o.push(new f(v,r));break}}}return o})}(this.pattern,this.options)}static condition(r,e){return e.useExtendedSearch}searchIn(r){const e=this.query;if(!e)return{isMatch:!1,score:1};const{includeMatches:i,isCaseSensitive:o,ignoreDiacritics:s}=this.options;r=o?r:r.toLowerCase(),r=s?l6(r):r;let a=0,l=[],c=0;for(let d=0,f=e.length;d<f;d+=1){const v=e[d];l.length=0,a=0;for(let w=0,x=v.length;w<x;w+=1){const I=v[w],{isMatch:M,indices:F,score:re}=I.search(r);if(!M){c=0,a=0,l.length=0;break}a+=1,c+=re,i&&(amt.has(I.constructor.type)?l=[...l,...F]:l.push(F))}if(a){let w={isMatch:!0,score:c/a};return i&&(w.indices=l),w}}return{isMatch:!1,score:1}}});let gmt=(()=>{class t{constructor(){}search(e,i){const o=[];let s=new tC(e,{isCaseSensitive:!1,includeScore:!0,shouldSort:!0,includeMatches:!0,threshold:.15,minMatchCharLength:3,keys:["Name"]});return i.forEach(a=>{const l=a?.Name?.trim();if(!l)return;const d=s.search(l).slice(0,3).map(f=>({NationalDonor:f.item,Score:f.score,MatchIndices:f.matches?f.matches[0].indices.map(v=>({Start:v[0],End:v[1]})):void 0}));o.push({Donor:a,Results:d})}),o}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var cu=function(t){return t.GetNationalDonorMatches="GetNationalDonorMatches",t.CheckDonors="CheckDonors",t.CheckFoodDrive="CheckFoodDrive",t.ShowFoodDriveInstructions="ShowFoodDriveInstructions",t.FoodDriveInstructionsAcknowledged="FoodDriveInstructionsAcknowledged",t.AskNationalDonor="CheckNationalDonor",t.ShowNationalDonorDownload="ShowNationalDonorDownload",t.NationalDonorDownloaded="NationalDonorDownloaded",t.Complete="Complete",t}(cu||{}),nC=function(t){return t.Yes="Yes",t.No="No",t}(nC||{});let vmt=(()=>{class t{constructor(e){this.searchService=e}createMachine(e,i){const o=(0,yI.k)({donors:e,nationalDonors:i,anyNationalDonors:!1});return x2(_I({id:"LocalDonorVerification",initial:cu.GetNationalDonorMatches,context:o.initialContext,states:{[cu.GetNationalDonorMatches]:{always:[{target:cu.CheckDonors}]},[cu.CheckDonors]:{entry:[o.assign({nationalDonorCheckResults:a=>{const l=this.searchService.search(a.nationalDonors,a.donors);return l?.forEach(c=>{c.Donor.Name.toLowerCase().indexOf("food drive")>-1&&(c.Results=[])}),l}}),o.assign({anyNationalDonors:a=>a.nationalDonorCheckResults?.some(l=>l.Results.some(c=>!!c.NationalDonor))})],always:[{target:cu.Complete,cond:a=>!a.anyNationalDonors},{target:cu.CheckFoodDrive,cond:a=>a.anyNationalDonors}]},[cu.CheckFoodDrive]:{on:{[nC.Yes]:{target:cu.ShowFoodDriveInstructions},[nC.No]:{target:cu.AskNationalDonor}}},[cu.ShowFoodDriveInstructions]:{on:{[nC.Yes]:{target:cu.FoodDriveInstructionsAcknowledged}}},[cu.FoodDriveInstructionsAcknowledged]:{},[cu.AskNationalDonor]:{on:{[nC.Yes]:{target:cu.ShowNationalDonorDownload},[nC.No]:{target:cu.Complete}}},[cu.ShowNationalDonorDownload]:{on:{[nC.Yes]:{target:cu.NationalDonorDownloaded}}},[cu.NationalDonorDownloaded]:{},[cu.Complete]:{}}})).start()}static{this.\u0275fac=function(i){return new(i||t)(n.KVO(gmt))}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),_mt=(()=>{class t{constructor(e){this.sanitizer=e}transform(e){if(!e)return"";if(!e.MatchIndices)return e?.NationalDonor.Name;let i=e.NationalDonor.Name,o=e.MatchIndices.shift(),s=[];for(var a=0;a<i.length;a++){var l=i.charAt(a);o&&a==o.Start&&s.push('<span style="background-color: #fffd91;">'),s.push(l),o&&a==o.End&&(s.push("</span>"),o=e.MatchIndices.shift())}return this.sanitizer.bypassSecurityTrustHtml(`${s.join("")}`)}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(Ku,16))}}static{this.\u0275pipe=n.EJ8({name:"highlightResults",type:t,pure:!0,standalone:!1})}}return t})();function ymt(t,r){1&t&&(n.j41(0,"div",2),n.nrm(1,"p-progressSpinner"),n.j41(2,"span"),n.EFF(3,"Checking National Donors"),n.k0s()())}function bmt(t,r){if(1&t&&(n.j41(0,"li"),n.nrm(1,"span",15),n.nI1(2,"highlightResults"),n.k0s()),2&t){const e=r.$implicit;n.R7$(),n.Y8G("innerHtml",n.bMT(2,1,e),n.npT)}}function Cmt(t,r){if(1&t&&(n.j41(0,"tr")(1,"td"),n.EFF(2),n.k0s(),n.j41(3,"td")(4,"ul",14),n.DNE(5,bmt,3,3,"li",12),n.k0s()()()),2&t){const e=r.$implicit;n.R7$(2),n.JRh(e.Donor.Name),n.R7$(3),n.Y8G("ngForOf",e.Results)}}function wmt(t,r){1&t&&(n.j41(0,"div")(1,"p"),n.EFF(2,"Are you setting up these donors for a food drive?"),n.k0s()())}function Tmt(t,r){1&t&&(n.j41(0,"div")(1,"p"),n.EFF(2,"Are you setting up this donor for a food drive?"),n.k0s()())}function Smt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div"),n.DNE(1,wmt,3,0,"div",13)(2,Tmt,3,0,"div",13),n.j41(3,"button",16),n.bIt("click",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.sendYesResponse())}),n.EFF(4," Yes "),n.k0s(),n.j41(5,"button",17),n.bIt("click",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.sendNoResponse())}),n.EFF(6," No "),n.k0s()()}if(2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngIf",e.totalNationalDonorMatches>1),n.R7$(),n.Y8G("ngIf",1===e.totalNationalDonorMatches)}}function xmt(t,r){1&t&&(n.j41(0,"div")(1,"p"),n.EFF(2,' Please include "Food Drive" in the donor\'s name. This helps us tell the difference between these donors and our national donors (blue receipt). '),n.k0s()())}function Emt(t,r){1&t&&(n.j41(0,"div")(1,"p"),n.EFF(2,' Please include "Food Drive" in the donor\'s name. This helps us tell the difference between this donor and one of our national donors (blue receipt). '),n.k0s()())}function Dmt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div"),n.DNE(1,xmt,3,0,"div",13)(2,Emt,3,0,"div",13),n.j41(3,"button",16),n.bIt("click",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.sendYesResponse())}),n.EFF(4," Ok "),n.k0s()()}if(2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngIf",e.totalNationalDonorMatches>1),n.R7$(),n.Y8G("ngIf",1===e.totalNationalDonorMatches)}}function kmt(t,r){1&t&&(n.j41(0,"div")(1,"p"),n.EFF(2," These donor names you entered sound like they might be national donors (blue receipt). National donors must be set up by emailing "),n.j41(3,"a",18),n.EFF(4,"mealconnect@feedingamerica.org"),n.k0s()(),n.j41(5,"p"),n.EFF(6," Should these donors be set up at the national blue receipt level? "),n.k0s()())}function Imt(t,r){1&t&&(n.j41(0,"div")(1,"p"),n.EFF(2," The donor name you entered sounds like it might be a national donor (blue receipt). National donors must be set up by emailing "),n.j41(3,"a",18),n.EFF(4,"mealconnect@feedingamerica.org"),n.k0s()(),n.j41(5,"p"),n.EFF(6," Should this donor be set up at the national blue receipt level? "),n.k0s()())}function Amt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div"),n.DNE(1,kmt,7,0,"div",13)(2,Imt,7,0,"div",13),n.j41(3,"button",16),n.bIt("click",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.sendYesResponse())}),n.EFF(4," Yes "),n.k0s(),n.j41(5,"button",17),n.bIt("click",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.sendNoResponse())}),n.EFF(6," No "),n.k0s()()}if(2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngIf",e.totalNationalDonorMatches>1),n.R7$(),n.Y8G("ngIf",1===e.totalNationalDonorMatches)}}function Mmt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div")(1,"p"),n.EFF(2,"Open the template for a new national donor:"),n.k0s(),n.j41(3,"a",19),n.EFF(4,"National Donor Template"),n.k0s(),n.j41(5,"button",20),n.bIt("click",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.sendYesResponse())}),n.EFF(6," Done "),n.k0s()()}}function Rmt(t,r){if(1&t&&(n.j41(0,"div",3)(1,"div",4)(2,"div",5)(3,"span",6),n.nrm(4,"i",7),n.j41(5,"span",8),n.EFF(6),n.k0s()()(),n.j41(7,"div",9)(8,"div",10)(9,"table",11)(10,"thead")(11,"tr")(12,"th"),n.EFF(13,"Donor"),n.k0s(),n.j41(14,"th"),n.EFF(15,"National Donor"),n.k0s()()(),n.j41(16,"tbody"),n.DNE(17,Cmt,6,2,"tr",12),n.k0s()(),n.DNE(18,Smt,7,2,"div",13)(19,Dmt,5,2,"div",13)(20,Amt,7,2,"div",13)(21,Mmt,7,0,"div",13),n.k0s()()()()),2&t){const e=n.XpG();n.R7$(6),n.SpI(" ",e.totalNationalDonorMatches," Possible National Donors Detected "),n.R7$(11),n.Y8G("ngForOf",e.nationalDonorCheckResults),n.R7$(),n.Y8G("ngIf",e.isCheckingFoodDrive),n.R7$(),n.Y8G("ngIf",e.isFoodDrive),n.R7$(),n.Y8G("ngIf",e.isCheckingNationalDonor),n.R7$(),n.Y8G("ngIf",e.isNationalDonor)}}let Omt=(()=>{class t{constructor(e){this.stateMachineBuilder=e,this.donors=[],this.nationalDonors=[],this.onComplete=new n.bkB,this.nationalDonorCheckResults=[],this.totalNationalDonorMatches=0}ngOnInit(){this.localDonorVerificationService=this.stateMachineBuilder.createMachine(this.donors,this.nationalDonors),this.localDonorVerificationService.onTransition(e=>{this.nationalDonorCheckResults=e.context.nationalDonorCheckResults,this.totalNationalDonorMatches=this.nationalDonorCheckResults?.map(i=>i.Results.length).reduce((i,o)=>i+o,0)||0,e.value!==cu.Complete?e.value!==cu.FoodDriveInstructionsAcknowledged&&e.value!==cu.NationalDonorDownloaded||this.onComplete.emit(this.getDonorCreationResults(!1,this.nationalDonorCheckResults)):this.onComplete.emit(this.getDonorCreationResults(!0,this.nationalDonorCheckResults))})}ngOnDestroy(){this.localDonorVerificationService?.stop()}get isLoadingNationalDonorMatches(){return this.localDonorVerificationService.state.matches(cu.GetNationalDonorMatches)}get isCheckingFoodDrive(){return this.localDonorVerificationService.state.matches(cu.CheckFoodDrive)}get isFoodDrive(){return this.localDonorVerificationService.state.matches(cu.ShowFoodDriveInstructions)}get isCheckingNationalDonor(){return this.localDonorVerificationService.state.matches(cu.AskNationalDonor)}get isNationalDonor(){return this.localDonorVerificationService.state.matches(cu.ShowNationalDonorDownload)}get state(){return this.localDonorVerificationService.state.value}sendYesResponse(){this.localDonorVerificationService.send(nC.Yes)}sendNoResponse(){this.localDonorVerificationService.send(nC.No)}getDonorCreationResults(e,i){let o=i?.map(s=>({Donor:s.Donor,NationalDonorMatches:s.Results.map(a=>a.NationalDonor)}));return{ProceedWithCreation:e,Matches:o}}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(vmt))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["local-donor-verification"]],inputs:{donors:"donors",nationalDonors:"nationalDonors"},outputs:{onComplete:"onComplete"},standalone:!1,decls:2,vars:2,consts:[["class","display-flex flex-col items-center justify-center",4,"ngIf"],["class","mt-10 mb-10",4,"ngIf"],[1,"display-flex","flex-col","items-center","justify-center"],[1,"mt-10","mb-10"],[1,"panel","panel-warning"],[1,"panel-heading"],[1,"font-bold","display-flex","items-center"],[1,"pi","pi-exclamation-triangle","text-warning",2,"font-size","18px"],[1,"ml-5"],[1,"panel-body"],[1,"table-responsive"],[1,"table","table-striped","table-condensed"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"list-unstyled"],[3,"innerHtml"],[1,"btn","btn-primary",3,"click"],[1,"btn","btn-default","ml-10",3,"click"],["href","mailto:mealconnect@feedingamerica.org"],["download","","href","https://mcstatic.blob.core.windows.net/docs/BlueReceiptList.xlsx","target","_blank",1,"btn","btn-success"],[1,"ml-10","btn","btn-default",3,"click"]],template:function(i,o){1&i&&n.DNE(0,ymt,4,0,"div",0)(1,Rmt,22,6,"div",1),2&i&&(n.Y8G("ngIf",o.isLoadingNationalDonorMatches),n.R7$(),n.Y8G("ngIf",o.totalNationalDonorMatches))},dependencies:[oo,fi,Q_,_mt],encapsulation:2})}}return t})(),Fmt=(()=>{class t{constructor(){this.address=null}refresh(e){return!1}agInit(e){this.address=e.data}afterGuiAttached(e){}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["address-cell"]],standalone:!1,decls:5,vars:5,consts:[[1,"address-row"]],template:function(i,o){1&i&&(n.j41(0,"span")(1,"div",0),n.EFF(2),n.k0s(),n.j41(3,"div",0),n.EFF(4),n.k0s()()),2&i&&(n.R7$(2),n.Lme(" ",null==o.address||null==o.address.AddressLine1?null:o.address.AddressLine1.trim(),"",null!=o.address&&null!=o.address.AddressLine2&&o.address.AddressLine2.length?", "+(null==o.address?null:o.address.AddressLine2):""," "),n.R7$(2),n.E5c(" ",null==o.address?null:o.address.City,", ",null==o.address?null:o.address.Province," ",null==o.address?null:o.address.PostalCode," "))},encapsulation:2})}}return t})();function Pmt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div")(1,"div",2)(2,"button",3),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.declineInterest())}),n.EFF(3," Hide "),n.k0s(),n.j41(4,"button",4),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.expressInterest())}),n.EFF(5," Add Location "),n.k0s()()()}}function Lmt(t,r){1&t&&(n.j41(0,"div",5)(1,"span",6),n.EFF(2," Pending Creation "),n.k0s()())}function Nmt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",5)(1,"span",6),n.EFF(2," Declined "),n.k0s(),n.j41(3,"button",7),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.revertDeclineInterest())}),n.EFF(4," Undo "),n.k0s()()}}let Gmt=(()=>{class t{constructor(){}refresh(e){return!1}agInit(e){this.potentialDonorLocation=e.data,this.onInterested=e.onInterested,this.onDeclined=e.onDeclined,this.onRevertInterest=e.onRevertInterest,this.onRevertDecline=e.onRevertDecline}expressInterest(){this.onInterested(this.potentialDonorLocation.ID),this.potentialDonorLocation.InterestedFoodBankID=1}declineInterest(){this.potentialDonorLocation.InterestDeclined=!0,this.onDeclined(this.potentialDonorLocation.ID)}revertDeclineInterest(){this.potentialDonorLocation.InterestDeclined=!1,this.onRevertDecline(this.potentialDonorLocation.ID)}afterGuiAttached(e){}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-potential-donor-location-action-buttons"]],standalone:!1,decls:3,vars:3,consts:[[4,"ngIf"],["class","tw-flex tw-items-center tw-space-x-2",4,"ngIf"],[1,"tw-flex","tw-space-x-2"],["type","button",1,"btn","btn-default",3,"click"],[1,"btn","btn-primary",3,"click"],[1,"tw-flex","tw-items-center","tw-space-x-2"],[1,"text-muted","tw-italic","tw-mr-2"],[1,"btn","btn-default","btn-sm",3,"click"]],template:function(i,o){1&i&&n.DNE(0,Pmt,6,0,"div",0)(1,Lmt,3,0,"div",1)(2,Nmt,5,0,"div",1),2&i&&(n.Y8G("ngIf",!o.potentialDonorLocation.InterestedFoodBankID&&!o.potentialDonorLocation.InterestDeclined),n.R7$(),n.Y8G("ngIf",o.potentialDonorLocation.InterestedFoodBankID),n.R7$(),n.Y8G("ngIf",o.potentialDonorLocation.InterestDeclined))},dependencies:[fi],encapsulation:2})}}return t})();var Bmt=b(8587);const Umt=function Hmt(t){return t!=t},Yde=function Wmt(t,r,e){return r==r?function $mt(t,r,e){for(var i=e-1,o=t.length;++i<o;)if(t[i]===r)return i;return-1}(t,r,e):function Vmt(t,r,e,i){for(var o=t.length,s=e+(i?1:-1);i?s--:++s<o;)if(r(t[s],s,t))return s;return-1}(t,Umt,e)},qmt=function zmt(t,r){return!(null==t||!t.length)&&Yde(t,r,0)>-1},Kmt=function Xmt(t,r,e){for(var i=-1,o=null==t?0:t.length;++i<o;)if(e(r,t[i]))return!0;return!1};var Qmt=b(5934),hX=b(4226);var Wde=b(3998),tgt=hX.A&&1/(0,Wde.A)(new hX.A([,-0]))[1]==1/0?function(t){return new hX.A(t)}:function Jmt(){};const ngt=tgt,zde=function rgt(t,r,e){var i=-1,o=qmt,s=t.length,a=!0,l=[],c=l;if(e)a=!1,o=Kmt;else if(s>=200){var d=r?null:ngt(t);if(d)return(0,Wde.A)(d);a=!1,o=Qmt.A,c=new Bmt.A}else c=r?[]:l;e:for(;++i<s;){var f=t[i],v=r?r(f):f;if(f=e||0!==f?f:0,a&&v==v){for(var w=c.length;w--;)if(c[w]===v)continue e;r&&c.push(v),l.push(f)}else o(c,v,e)||(c!==l&&c.push(v),l.push(f))}return l},qde=function ogt(t,r){return t&&t.length?zde(t,Fk(r)):[]};let lgt=(()=>{class t{constructor(e){this.httpClient=e}expressInterest(e){var i=this;return(0,lr.A)(function*(){return yield Yo(i.httpClient.put(`/api/potentialdonorlocations/${e}`,null))})()}revertInterest(e){var i=this;return(0,lr.A)(function*(){return yield Yo(i.httpClient.put(`/api/potentialdonorlocations/${e}/revert`,null))})()}declineInterest(e){var i=this;return(0,lr.A)(function*(){return yield Yo(i.httpClient.delete(`/api/potentialdonorlocations/${e}`))})()}revertDecline(e){var i=this;return(0,lr.A)(function*(){return yield Yo(i.httpClient.delete(`/api/potentialdonorlocations/${e}/revert`))})()}static{this.\u0275fac=function(i){return new(i||t)(n.KVO(Da))}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function cgt(t,r){1&t&&(n.j41(0,"span",10),n.EFF(1," Please enter 3 or more characters to filter "),n.k0s())}function ugt(t,r){if(1&t&&(n.j41(0,"div"),n.nrm(1,"span",12),n.nI1(2,"highlight"),n.k0s()),2&t){const e=r.$implicit,i=r.searchText;n.R7$(),n.Y8G("innerHTML",n.i5U(2,1,e.Name,i),n.npT)}}function dgt(t,r){if(1&t&&(n.j41(0,"div")(1,"span"),n.EFF(2),n.k0s()()),2&t){const e=r.$implicit;n.R7$(2),n.JRh(e.Name)}}function pgt(t,r){if(1&t){const e=n.RV6();n.j41(0,"dropdown",11,0),n.bIt("itemSelected",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onDonorSelected(o))}),n.DNE(2,ugt,3,4,"ng-template",null,1,n.C5r)(4,dgt,3,1,"ng-template",null,2,n.C5r),n.k0s()}if(2&t){const e=n.sdS(3),i=n.sdS(5),o=n.XpG();n.Y8G("options",o.donors)("itemTemplate",e)("selectedItemTemplate",i)}}let hgt=(()=>{class t{constructor(e,i){var s,o=this;this.donors=[],this.gridApi=null,this.rowData=[],this.debouncedSearch=null,this.filterTextModel="",this.filterTextValue="",this.isFilterTextTooShort=!1,this.selectedDonor=null,this.gridOptions={columnDefs:[{headerName:"Donor",field:"Donor.Name"},{headerName:"Store Number",field:"StoreNumber"},{headerName:"Address",cellRendererFramework:Fmt},{headerName:"",cellRendererFramework:Gmt,cellRendererParams:{onInterested:(s=(0,lr.A)(function*(a){try{yield e.expressInterest(a)}catch{i.displayErrorToast("Error","Failed to express interest"),o.gridApi?.refresh()}}),function(l){return s.apply(this,arguments)}),onDeclined:function(){var s=(0,lr.A)(function*(a){try{yield e.declineInterest(a)}catch{i.displayErrorToast("Error","Failed to express interest"),o.gridApi?.refresh()}});return function(l){return s.apply(this,arguments)}}(),onRevertInterest:function(){var s=(0,lr.A)(function*(a){try{yield e.revertInterest(a)}catch{i.displayErrorToast("Error","Failed to revert interest"),o.gridApi?.refresh()}});return function(l){return s.apply(this,arguments)}}(),onRevertDecline:function(){var s=(0,lr.A)(function*(a){try{yield e.revertDecline(a)}catch{i.displayErrorToast("Error","Failed to revert declined interest"),o.gridApi?.refresh()}});return function(l){return s.apply(this,arguments)}}()}}]}}ngOnInit(){this.debouncedSearch=PO(()=>{let e=this.getFilteredRows();this.selectedDonor&&(e=e.filter(i=>i.DonorID==this.selectedDonor?.ID)),this.gridOptions.api?.setRowData(e)},300)}onGridInit(e){this.gridApi=e}onDataLoaded(e){this.rowData=e;let i=[];i=e.map(o=>o.Donor),i=qde(i,o=>o.ID),i=function sgt(t,r,e,i){return null==t?[]:((0,Om.A)(r)||(r=null==r?[]:[r]),(0,Om.A)(e=i?void 0:e)||(e=null==e?[]:[e]),wre(t,r,e))}(i,o=>o.Name),this.donors=i,this.filterDonorLocations(this.filterTextValue)}onDonorSelected(e){this.selectedDonor=e||null,this.filterDonorLocations(this.filterTextValue)}filterDonorLocations(e){this.filterTextValue=e.trim(),this.debouncedSearch&&this.debouncedSearch()}getFilteredRows(){if(this.isFilterTextTooShort=this.filterTextValue.length>0&&this.filterTextValue.length<3,0===this.filterTextValue.length)return this.rowData;let e=JSON.parse(JSON.stringify(this.rowData));return this.filterTextValue&&(e=new tC(this.rowData,{isCaseSensitive:!1,minMatchCharLength:3,shouldSort:!0,threshold:.3,keys:[{name:"Donor.Name",weight:.3},{name:"StoreNumber",weight:.1},{name:"AddressLine1",weight:.1},{name:"AddressLine2",weight:.1},{name:"City",weight:.1},{name:"Province",weight:.1},{name:"PostalCode",weight:.1}]}).search(this.filterTextValue).map(s=>s.item)),e}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(lgt),n.rXU(tc))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["potential-donor-locations"]],standalone:!1,decls:7,vars:4,consts:[["donorsDropDown",""],["itemTemplate",""],["selectedItemTemplate",""],[1,"tw-flex","tw-flex-col","tw-flex-auto","tw-h-full"],[1,"tw-flex","tw-justify-between","tw-mb-4"],[1,"tw-flex","tw-flex-col","sm:tw-items-center","sm:tw-flex-row"],["placeholder","Filter Stores","pInputText","","type","text","id","potentialDonorLocationsFilter","name","potentialDonorLocationsFilter","autocomplete","off",1,"form-control","tw-mr-2","md:tw-w-96",3,"ngModelChange","ngModel"],["class","tw-text-gray-500 tw-italic animated fadeIn",4,"ngIf"],["placeholder","Filter by Donor","filterFields","Name","styleClass","tw-w-64",3,"options","itemTemplate","selectedItemTemplate","itemSelected",4,"ngIf"],["height","100%","endpoint","/api/PotentialDonorLocationsGrid",3,"onInit","onDataLoaded","gridOptions"],[1,"tw-text-gray-500","tw-italic","animated","fadeIn"],["placeholder","Filter by Donor","filterFields","Name","styleClass","tw-w-64",3,"itemSelected","options","itemTemplate","selectedItemTemplate"],[3,"innerHTML"]],template:function(i,o){1&i&&(n.j41(0,"div",3)(1,"div",4)(2,"div",5)(3,"input",6),n.bIt("ngModelChange",function(a){return o.filterDonorLocations(a)}),n.k0s(),n.DNE(4,cgt,2,0,"span",7),n.k0s(),n.DNE(5,pgt,6,3,"dropdown",8),n.k0s(),n.j41(6,"grid",9),n.bIt("onInit",function(){return o.onGridInit.bind(o)})("onDataLoaded",function(a){return o.onDataLoaded(a)}),n.k0s()()),2&i&&(n.R7$(3),n.Y8G("ngModel",o.filterTextModel),n.R7$(),n.Y8G("ngIf",o.isFilterTextTooShort),n.R7$(),n.Y8G("ngIf",o.donors.length),n.R7$(),n.Y8G("gridOptions",o.gridOptions))},dependencies:[fi,yg,Uu,Cc,_o,ko,Zd],encapsulation:2})}}return t})();const Xde=function ggt(t,r,e){var i=-1,o=t.length;r<0&&(r=-r>o?0:o+r),(e=e>o?o:e)<0&&(e+=o),o=r>e?0:e-r>>>0,r>>>=0;for(var s=Array(o);++i<o;)s[i]=t[i+r];return s},bgt=function ygt(t,r){return null==(t=function vgt(t,r){return r.length<2?t:C7(t,Xde(r,0,-1))}(t,r=lW(r,t)))||delete t[LO(function fgt(t){var r=null==t?0:t.length;return r?t[r-1]:void 0}(r))]};var wgt=Array.prototype.splice;const Kde=function xgt(t,r){var e=[];if(!t||!t.length)return e;var i=-1,o=[],s=t.length;for(r=Fk(r);++i<s;){var a=t[i];r(a,i,t)&&(e.push(a),o.push(i))}return function Tgt(t,r){for(var e=t?r.length:0,i=e-1;e--;){var o=r[e];if(e==i||o!==s){var s=o;(0,vre.A)(o)?wgt.call(t,o,1):bgt(t,o)}}}(t,o),e};const Jde=function Rgt(t){var r=function Agt(t){return t?1/0===(t=nW(t))||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}(t),e=r%1;return r==r?e?r-e:r:0},Lgt=function Pgt(t){return null==t?[]:function Ogt(t,r){return Ok(r,function(e){return t[e]})}(t,(0,iW.A)(t))};var Ngt=Math.max;const fX=function Ggt(t,r,e,i){t=(0,rW.A)(t)?t:Lgt(t),e=e&&!i?Jde(e):0;var o=t.length;return e<0&&(e=Ngt(o+e,0)),function Dgt(t){return"string"==typeof t||!(0,Om.A)(t)&&(0,are.A)(t)&&"[object String]"==(0,sre.A)(t)}(t)?e<=o&&t.indexOf(r,e)>-1:!!o&&Yde(t,r,e)>-1};var Bgt=b(7409),Vgt=b.n(Bgt);let jgt=(()=>{class t{constructor(e){this.http=e}getAvailableHolidayDates(e){return this.http.get(`/api/fano/holidayDates/${e}`)}getBlackoutDates(e){return this.http.get(`/api/fano/blackoutDates/${e}`)}addBlackoutDates(e,i){const o=i.map(s=>s.fullDate);return this.http.post(`/api/fano/blackoutDates/${e}/add`,o)}removeBlackoutDates(e,i){const o=i.map(s=>s.fullDate);return this.http.post(`/api/fano/blackoutDates/${e}/remove`,o)}static{this.\u0275fac=function(i){return new(i||t)(n.KVO(Da))}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const Hgt=()=>({"min-width":"300px"}),Ugt=(t,r,e)=>({selected:t,marked:r,holiday:e});function $gt(t,r){1&t&&n.nrm(0,"li",21)}function Ygt(t,r){if(1&t){const e=n.RV6();n.j41(0,"li",22),n.bIt("click",function(){const o=n.eBV(e).$implicit,s=n.XpG(2);return n.Njj(s.daySelected(o))}),n.EFF(1),n.k0s()}if(2&t){let e;const i=r.$implicit;n.Y8G("ngClass",n.sMw(2,Ugt,i.selected,i.marked,i.holiday)),n.R7$(),n.SpI(" ",null!==(e=i.date)&&void 0!==e?e:""," ")}}function Wgt(t,r){if(1&t&&(n.j41(0,"div",16)(1,"div",17),n.EFF(2),n.k0s(),n.j41(3,"ul",18)(4,"li")(5,"abbr"),n.EFF(6,"S"),n.k0s()(),n.j41(7,"li")(8,"abbr"),n.EFF(9,"M"),n.k0s()(),n.j41(10,"li")(11,"abbr"),n.EFF(12,"T"),n.k0s()(),n.j41(13,"li")(14,"abbr"),n.EFF(15,"W"),n.k0s()(),n.j41(16,"li")(17,"abbr"),n.EFF(18,"T"),n.k0s()(),n.j41(19,"li")(20,"abbr"),n.EFF(21,"F"),n.k0s()(),n.j41(22,"li")(23,"abbr"),n.EFF(24,"S"),n.k0s()()(),n.j41(25,"ol",7),n.DNE(26,$gt,1,0,"li",19)(27,Ygt,2,6,"li",20),n.k0s()()),2&t){const e=r.$implicit;n.R7$(2),n.SpI(" ",e.name," "),n.R7$(24),n.Y8G("ngForOf",e.spacers),n.R7$(),n.Y8G("ngForOf",e.days)}}let zgt=(()=>{class t{constructor(e,i,o){this.fanoService=e,this.toasterService=i,this.confirmationService=o,this.months=[],this.years=[],this.existingDays=[],this.addDays=[],this.removeDays=[],this.selectedDays=[],this.selectedYear={value:0,selected:!1},this.disableActions=!0,el().extend(Vgt())}ngOnInit(){this.initYears(),this.generateCalendar(),this.populateHolidayDates(),this.populateBlackoutDates()}initYears(){const e=(new Date).getFullYear();this.selectedYear={value:e,selected:!0};for(let i=0;i<=5;i++)this.years.push({value:e+i,selected:!1})}generateCalendar(){this.months=[];for(let e=0;e<12;e++){const i=el()(new Date(this.selectedYear.value,e,1));let o=[],s=[],a=i.day();if(a>0)for(let l=0;l<a;l++)s.push({index:l});for(let l=0;l<i.daysInMonth();l++){const c=el()(new Date(this.selectedYear.value,e,l+1));o.push({index:c.day(),name:c.format("dddd"),abbreviation:c.format("dd"),date:c.date(),week:c.week(),selected:!1,fullDate:c.toDate(),holiday:!1})}this.months.push({index:e,name:i.format("MMMM"),days:o,spacers:s})}}populateHolidayDates(){this.fanoService.getAvailableHolidayDates(this.selectedYear.value).subscribe(e=>{e.forEach(i=>{const o=el()(i.HolidayDate),s=this.months[o.month()].days.find(a=>a.index===o.day()&&a.week===o.week());s&&(s.holiday=!0)})})}populateBlackoutDates(){this.addDays=[],this.removeDays=[],this.disableActions=!0,this.fanoService.getBlackoutDates(this.selectedYear.value).subscribe(e=>{e.forEach(i=>{const o=el()(i.BlackoutDate),s=this.months[o.month()].days.find(a=>a.index===o.day()&&a.week===o.week());s&&(s.marked=!1,s.selected=!0,this.existingDays.push(s))})})}daySelected(e){e.holiday||(e.marked=!e.selected&&!e.marked,e.marked?(Kde(this.removeDays,e),fX(this.existingDays,e)?(e.marked=!1,e.selected=!0):this.addDays.push(e)):(e.selected=!1,Kde(this.addDays,e),fX(this.existingDays,e)&&this.removeDays.push(e)),this.disableActions=0===this.addDays.length&&0===this.removeDays.length)}saveChanges(){this.disableActions=!0,wy([this.fanoService.addBlackoutDates(this.selectedYear.value,this.addDays),this.fanoService.removeBlackoutDates(this.selectedYear.value,this.removeDays)]).subscribe(()=>{this.toasterService.displayInfoToast("Changes Saved",`Blackout dates for ${this.selectedYear.value} were saved successfully.`),this.populateBlackoutDates()})}yearChanged(e){if(!this.disableActions&&!this.confirmationService.show("You have unsaved changes. Would you like to proceed without saving?")){const s=this.years.find(a=>a.selected)??{value:el()().year(),selected:!0};return e.selectedOption=s,void(this.selectedYear=s)}let i=e.value;this.selectedYear=i,this.years.forEach(o=>o.selected=i.value===o.value),this.generateCalendar(),this.populateHolidayDates(),this.populateBlackoutDates()}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(jgt),n.rXU(tc),n.rXU(tde))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-blackout-dates"]],standalone:!1,decls:28,vars:7,consts:[["yearDropdown",""],[1,"calendar-container"],[1,"year"],[1,"actions"],[1,"dropdown"],["optionLabel","value",3,"ngModelChange","onChange","options","ngModel"],[1,"key"],[1,"day-grid"],[1,"holiday"],[1,"text-muted"],[1,"selected"],[1,"marked"],[1,"buttons"],[1,"btn","btn-primary",3,"click","disabled"],[1,"months-grid"],["class","months",4,"ngFor","ngForOf"],[1,"months"],[1,"month"],[1,"weekdays"],["class","spacer",4,"ngFor","ngForOf"],[3,"ngClass","click",4,"ngFor","ngForOf"],[1,"spacer"],[3,"click","ngClass"]],template:function(i,o){if(1&i){const s=n.RV6();n.j41(0,"div",1)(1,"div",2)(2,"div")(3,"div",3)(4,"div",4)(5,"p-select",5,0),n.mxI("ngModelChange",function(l){return n.eBV(s),n.DH7(o.selectedYear,l)||(o.selectedYear=l),n.Njj(l)}),n.bIt("onChange",function(){n.eBV(s);const l=n.sdS(6);return n.Njj(o.yearChanged(l))}),n.k0s()(),n.j41(7,"div",6)(8,"ol",7)(9,"li",8),n.EFF(10,"\xa0"),n.k0s()(),n.j41(11,"span",9),n.EFF(12,"Holiday"),n.k0s(),n.j41(13,"ol",7)(14,"li",10),n.EFF(15,"\xa0"),n.k0s()(),n.j41(16,"span",9),n.EFF(17,"Blackout"),n.k0s(),n.j41(18,"ol",7)(19,"li",11),n.EFF(20,"\xa0"),n.k0s()(),n.j41(21,"span",9),n.EFF(22,"Selected/Unsaved"),n.k0s()(),n.j41(23,"div",12)(24,"button",13),n.bIt("click",function(){return n.eBV(s),n.Njj(o.saveChanges())}),n.EFF(25," Save Changes "),n.k0s()()()(),n.j41(26,"div",14),n.DNE(27,Wgt,28,3,"div",15),n.k0s()()()}2&i&&(n.R7$(5),n.Aen(n.lJ4(6,Hgt)),n.Y8G("options",o.years),n.R50("ngModel",o.selectedYear),n.R7$(19),n.Y8G("disabled",o.disableActions),n.R7$(3),n.Y8G("ngForOf",o.months))},dependencies:[bi,oo,_o,ko,ff],styles:[".calendar-container[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-between}@media (min-width: 768px){.calendar-container[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]{flex-direction:row}}.calendar-container[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .key[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{margin:0 20px 0 5px}.calendar-container[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .key[_ngcontent-%COMP%]   .day-grid[_ngcontent-%COMP%]{display:inline-block}.calendar-container[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .key[_ngcontent-%COMP%]   .day-grid[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{width:10vw;cursor:default}@media (min-width: 768px){.calendar-container[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .key[_ngcontent-%COMP%]   .day-grid[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{width:2vw}}.calendar-container[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .buttons[_ngcontent-%COMP%]   .btn-secondary[_ngcontent-%COMP%]{color:#53682b;background-color:#fff;border:solid 1px #53682b;margin-right:10px}.calendar-container[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .buttons[_ngcontent-%COMP%]   .btn-secondary[_ngcontent-%COMP%]:hover{background-color:#758958}.calendar-container[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .dropdown[_ngcontent-%COMP%], .calendar-container[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .key[_ngcontent-%COMP%], .calendar-container[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .buttons[_ngcontent-%COMP%]{margin-bottom:20px}@media (min-width: 768px){.calendar-container[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .dropdown[_ngcontent-%COMP%], .calendar-container[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .key[_ngcontent-%COMP%], .calendar-container[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .buttons[_ngcontent-%COMP%]{margin-bottom:20px}}.calendar-container[_ngcontent-%COMP%]   .months-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(1,1fr);grid-gap:1em;margin:0 auto;padding:0}@media (min-width: 768px){.calendar-container[_ngcontent-%COMP%]   .months-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(4,1fr)}}.calendar-container[_ngcontent-%COMP%]   .months-grid[_ngcontent-%COMP%]   .months[_ngcontent-%COMP%]{border:solid 1px rgba(0,0,0,.15);border-radius:5px;padding:5px}.calendar-container[_ngcontent-%COMP%]   .months-grid[_ngcontent-%COMP%]   .months[_ngcontent-%COMP%]   .month[_ngcontent-%COMP%]{font-size:16px;text-align:center;border-bottom:1px solid rgba(0,0,0,.15);padding:5px}.calendar-container[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%], .calendar-container[_ngcontent-%COMP%]   ol[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(7,1fr);margin:0 auto;max-width:64em;padding:0;grid-gap:.25em}.calendar-container[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%], .calendar-container[_ngcontent-%COMP%]   ol[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;list-style:none;margin-left:0;font-size:16px}.calendar-container[_ngcontent-%COMP%]   ul.weekdays[_ngcontent-%COMP%]{margin:20px 0 10px}@media (min-width: 768px){.calendar-container[_ngcontent-%COMP%]   ul.weekdays[_ngcontent-%COMP%]{margin:10px 0 0}}.calendar-container[_ngcontent-%COMP%]   ul.weekdays[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{font-size:14px;font-weight:800;text-align:center;height:2vw}.calendar-container[_ngcontent-%COMP%]   ol.day-grid[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{border:1px solid transparent;border-radius:10vw;height:10vw;max-width:10vw;cursor:pointer;font-size:14px}@media (min-width: 768px){.calendar-container[_ngcontent-%COMP%]   ol.day-grid[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{border-radius:2vw;height:2vw;max-width:2vw}}.calendar-container[_ngcontent-%COMP%]   ol.day-grid[_ngcontent-%COMP%]   li.spacer[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #FFF;cursor:default}.calendar-container[_ngcontent-%COMP%]   ol.day-grid[_ngcontent-%COMP%]   li.selected[_ngcontent-%COMP%]{background-color:#009ede;border:1px solid #009EDE;color:#fff}.calendar-container[_ngcontent-%COMP%]   ol.day-grid[_ngcontent-%COMP%]   li.marked[_ngcontent-%COMP%]{background-color:#009ede;border:1px solid #009EDE;color:#fff;opacity:.5}.calendar-container[_ngcontent-%COMP%]   ol.day-grid[_ngcontent-%COMP%]   li.holiday[_ngcontent-%COMP%]{background-color:silver;border:1px solid #C0C0C0;color:#fff;cursor:default}"]})}}return t})();const qgt=(t,r)=>r.ID;function Xgt(t,r){1&t&&n.nrm(0,"i",17)}function Kgt(t,r){1&t&&n.nrm(0,"i",18)}function Qgt(t,r){if(1&t&&n.EFF(0),2&t){const e=n.XpG(2);n.Lme(" (",60*e.localSharingDuration()," minutes for local sharing and ",e.startSharingAfterMinutes()," minutes for this group) ")}}function Jgt(t,r){if(1&t&&n.EFF(0),2&t){const e=n.XpG(2);n.SpI(" (",60*e.localSharingDuration()," minutes for local sharing) ")}}function Zgt(t,r){if(1&t&&(n.j41(0,"div",16),n.DNE(1,Xgt,1,0,"i",17)(2,Kgt,1,0,"i",18),n.j41(3,"span",19),n.EFF(4),n.DNE(5,Qgt,1,2)(6,Jgt,1,1),n.k0s()()),2&t){const e=n.XpG();n.R7$(),n.vxM(!1===e.isValid()?1:2),n.R7$(3),n.SpI(" Offers will be visible to this group after ",60*e.localSharingDuration()+e.startSharingAfterMinutes()," minutes "),n.R7$(),n.vxM(e.startSharingAfterMinutes()>0?5:6)}}function evt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",20)(1,"p-button",21),n.bIt("onClick",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.confirmRemove())}),n.k0s(),n.j41(2,"p-button",22),n.bIt("onClick",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.cancelRemove())}),n.k0s()()}}function tvt(t,r){if(1&t){const e=n.RV6();n.j41(0,"p-button",24),n.bIt("onClick",function(){n.eBV(e);const o=n.XpG(3);return n.Njj(o.beginRemove())}),n.k0s()}}function nvt(t,r){if(1&t&&n.DNE(0,tvt,1,0,"p-button",23),2&t){const e=n.XpG(2);n.vxM(e.isInitialGroup()?-1:0)}}function ivt(t,r){if(1&t&&n.DNE(0,evt,3,0,"div",20)(1,nvt,1,1),2&t){const e=n.XpG();n.vxM(e.isRemoving()?0:1)}}function rvt(t,r){1&t&&n.nrm(0,"i",26)}function ovt(t,r){if(1&t&&(n.j41(0,"div",25),n.EFF(1),n.DNE(2,rvt,1,0,"i",26),n.k0s()),2&t){const e=r.$implicit;n.R7$(),n.SpI(" ",e.Name," "),n.R7$(),n.vxM(e._isInUse?2:-1)}}function svt(t,r){if(1&t&&(n.j41(0,"tr")(1,"td"),n.EFF(2),n.k0s(),n.j41(3,"td"),n.EFF(4),n.k0s(),n.j41(5,"td"),n.EFF(6),n.k0s()()),2&t){const e=r.$implicit;n.R7$(2),n.JRh(e.Name),n.R7$(2),n.JRh(e.Code.trim()),n.R7$(2),n.JRh(e.EntityType.trim())}}let avt=(()=>{class t{constructor(){this.isInitialGroup=n.hFB.required(),this.localSharingDuration=n.hFB.required(),this.groupedRegionalSharingGroupMembers=n.hFB.required(),this.maxDurationMinutes=(0,n.hFB)(0),this.inputRegionalSharingGroupSubgroup=(0,n.hFB)(null,{alias:"regionalSharingGroupSubgroup"}),this.removeRequested=(0,n.CGW)(),this.isValidChanged=(0,n.CGW)(),this.regionalSharingGroupSubgroupChanged=(0,n.CGW)(),this.name=(0,n.vPA)(""),this.startSharingAfterMinutes=(0,n.vPA)(0),this.selectedRegionalSharingGroupMembers=(0,n.vPA)([]),this.isRemoving=(0,n.vPA)(!1),this.isValid=(0,n.EWP)(()=>""!==this.name()&&this.startSharingAfterMinutes()<=this.maxDurationMinutes()&&this.startSharingAfterMinutes()>=0&&void 0!==this.startSharingAfterMinutes()&&null!==this.startSharingAfterMinutes()),this.showingMemberList=(0,n.vPA)(!1),this.sortedSelectedRegionalSharingGroupMembers=(0,n.EWP)(()=>[...this.selectedRegionalSharingGroupMembers()].sort((e,i)=>e.Name.localeCompare(i.Name))),(0,n.QZP)(()=>{this.isValidChanged.emit(this.isValid())}),(0,n.QZP)(()=>{this.isValid()&&this.regionalSharingGroupSubgroupChanged.emit({ID:this.inputRegionalSharingGroupSubgroup()?.ID,Name:this.name(),MinutesBeforeSharing:this.startSharingAfterMinutes(),RegionalSharingGroupSubgroupMembers:this.selectedRegionalSharingGroupMembers().map(e=>({EntityID:e.EntityID}))})})}beginRemove(){this.isRemoving.set(!0)}cancelRemove(){this.isRemoving.set(!1)}confirmRemove(){this.removeRequested.emit()}ngOnInit(){let e=this.inputRegionalSharingGroupSubgroup();if(e&&(this.name.set(e.Name),this.startSharingAfterMinutes.set(e.MinutesBeforeSharing),e.RegionalSharingGroupSubgroupMembers&&e.RegionalSharingGroupSubgroupMembers.length>0)){let i=this.groupedRegionalSharingGroupMembers().flatMap(o=>o.items).filter(o=>e.RegionalSharingGroupSubgroupMembers.some(s=>s.EntityID===o.EntityID));this.selectedRegionalSharingGroupMembers.set([...i])}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["regional-sharing-group-subgroup"]],inputs:{isInitialGroup:[1,"isInitialGroup"],localSharingDuration:[1,"localSharingDuration"],groupedRegionalSharingGroupMembers:[1,"groupedRegionalSharingGroupMembers"],maxDurationMinutes:[1,"maxDurationMinutes"],inputRegionalSharingGroupSubgroup:[1,"regionalSharingGroupSubgroup","inputRegionalSharingGroupSubgroup"]},outputs:{removeRequested:"removeRequested",isValidChanged:"isValidChanged",regionalSharingGroupSubgroupChanged:"regionalSharingGroupSubgroupChanged"},decls:38,vars:22,consts:[["header",""],["icons",""],["item",""],[1,"tw-flex","tw-space-x-2","tw-pt-4","tw-items-center"],[1,"tw-w-1/4","tw-flex-shrink-0"],["pInputText","","id","state-name","autocomplete","off","styleClass","tw-max-w-full",1,"tw-w-full",3,"ngModelChange","ngModel","pAutoFocus","maxlength","required"],["for","state-name"],["autocomplete","off","inputId","start-sharing-after","inputStyleClass","tw-max-w-full",1,"tw-w-full",3,"ngModelChange","ngModel","min","max","required","disabled"],["for","start-sharing-after"],[1,"tw-w-1/2","tw-flex","tw-space-x-2","tw-items-center"],[1,"tw-w-full","tw-min-w-0"],["optionLabel","Name","styleClass","tw-w-full tw-min-w-0",3,"ngModelChange","ngModel","options","group","showToggleAll","virtualScroll","virtualScrollItemSize","required","disabled"],["icon","pi pi-users","severity","secondary","title","View Members",3,"click","disabled","outlined"],["appendTo","body",3,"visibleChange","header","modal","visible"],[1,"table-responsive"],[1,"table","table-striped","table-bordered"],[1,"tw-flex","tw-space-x-2","tw-items-center"],["title","Invalid Group",1,"pi","pi-exclamation-circle","tw-text-yellow-500"],["title","Valid Group",1,"pi","pi-check-circle","tw-text-green-500"],[1,"tw-text-gray-500"],[1,"tw-flex","tw-space-x-2"],["icon","pi pi-trash","severity","danger","title","Confirm Remove Group","size","small",3,"onClick"],["icon","pi pi-undo","severity","secondary","title","Cancel","size","small",3,"onClick"],["icon","pi pi-trash","severity","secondary","title","Remove Group","size","small"],["icon","pi pi-trash","severity","secondary","title","Remove Group","size","small",3,"onClick"],[1,""],["title","In Use",1,"pi","pi-check-circle","tw-text-green-500","tw-text-xs"]],template:function(i,o){if(1&i){const s=n.RV6();n.j41(0,"p-panel"),n.DNE(1,Zgt,7,3,"ng-template",null,0,n.C5r)(3,ivt,2,1,"ng-template",null,1,n.C5r),n.j41(5,"div",3)(6,"div",4)(7,"p-floatlabel")(8,"input",5),n.mxI("ngModelChange",function(l){return n.eBV(s),n.DH7(o.name,l)||(o.name=l),n.Njj(l)}),n.k0s(),n.j41(9,"label",6),n.EFF(10,"Subgroup Name"),n.k0s()()(),n.j41(11,"div",4)(12,"p-floatlabel")(13,"p-inputnumber",7),n.mxI("ngModelChange",function(l){return n.eBV(s),n.DH7(o.startSharingAfterMinutes,l)||(o.startSharingAfterMinutes=l),n.Njj(l)}),n.k0s(),n.j41(14,"label",8),n.EFF(15,"Minutes to Wait Before Sharing"),n.k0s()()(),n.j41(16,"div",9)(17,"p-floatlabel",10)(18,"p-multiselect",11),n.mxI("ngModelChange",function(l){return n.eBV(s),n.DH7(o.selectedRegionalSharingGroupMembers,l)||(o.selectedRegionalSharingGroupMembers=l),n.Njj(l)}),n.DNE(19,ovt,3,2,"ng-template",null,2,n.C5r),n.k0s(),n.j41(21,"label"),n.EFF(22,"Subgroup Members"),n.k0s()(),n.j41(23,"p-button",12),n.bIt("click",function(){return n.eBV(s),n.Njj(o.showingMemberList.set(!0))}),n.k0s()()()(),n.j41(24,"p-dialog",13),n.mxI("visibleChange",function(l){return n.eBV(s),n.DH7(o.showingMemberList,l)||(o.showingMemberList=l),n.Njj(l)}),n.j41(25,"div",14)(26,"table",15)(27,"thead")(28,"tr")(29,"th"),n.EFF(30,"Name"),n.k0s(),n.j41(31,"th"),n.EFF(32,"Code"),n.k0s(),n.j41(33,"th"),n.EFF(34,"Type"),n.k0s()()(),n.j41(35,"tbody"),n.Z7z(36,svt,7,3,"tr",null,qgt),n.k0s()()()()}2&i&&(n.R7$(8),n.R50("ngModel",o.name),n.Y8G("pAutoFocus",!o.name())("maxlength",100)("required",!0),n.R7$(5),n.R50("ngModel",o.startSharingAfterMinutes),n.Y8G("min",0)("max",o.maxDurationMinutes())("required",!0)("disabled",o.isInitialGroup()),n.R7$(5),n.R50("ngModel",o.selectedRegionalSharingGroupMembers),n.Y8G("options",o.groupedRegionalSharingGroupMembers())("group",!0)("showToggleAll",!0)("virtualScroll",!0)("virtualScrollItemSize",43)("required",!0)("disabled",!o.name()),n.R7$(5),n.Y8G("disabled",0===o.selectedRegionalSharingGroupMembers().length)("outlined",!0),n.R7$(),n.Y8G("header",o.name())("modal",!0),n.R50("visible",o.showingMemberList),n.R7$(12),n.Dyx(o.sortedSelectedRegionalSharingGroupMembers()))},dependencies:[O$,Jf,dk,mf,Rp,gn,vg,gf,Yv,om,Ra,Cc,_o,Sv,sk,ko,Xw,J_,Ix,hf,d2,Hb,Vx,Bx],encapsulation:2})}}return t})(),lvt=(()=>{class t{constructor(e){this.http=e}getRegionalSharingGroupMembers(e){return this.http.get(`/api/produce/sharinggroups/${e}/members`)}static{this.\u0275fac=function(i){return new(i||t)(n.KVO(Da))}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const cvt=(t,r)=>r.ID;function uvt(t,r){1&t&&n.nrm(0,"i",8)}function dvt(t,r){if(1&t){const e=n.RV6();n.j41(0,"p-message",1),n.DNE(1,uvt,1,0,"ng-template",null,0,n.C5r),n.j41(3,"span",6)(4,"button",7),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.viewingMembersNotInGroup.set(!0))}),n.EFF(5),n.k0s(),n.EFF(6," not in subgroups "),n.k0s()()}if(2&t){const e=n.XpG();n.R7$(5),n.SpI(" ",e.regionalSharingGroupMembersNotInSubgroups().length," members ")}}function pvt(t,r){1&t&&n.nrm(0,"i",9)}function hvt(t,r){1&t&&(n.j41(0,"p-message",2),n.DNE(1,pvt,1,0,"ng-template",null,0,n.C5r),n.j41(3,"span",6),n.EFF(4,"All members are in subgroups"),n.k0s()())}function fvt(t,r){if(1&t&&(n.j41(0,"tr")(1,"td"),n.EFF(2),n.k0s(),n.j41(3,"td"),n.EFF(4),n.k0s(),n.j41(5,"td"),n.EFF(6),n.k0s()()),2&t){const e=r.$implicit;n.R7$(2),n.JRh(e.Name),n.R7$(2),n.JRh(e.Code.trim()),n.R7$(2),n.JRh(e.EntityType.trim())}}let mvt=(()=>{class t{constructor(){this.regionalSharingGroupSubgroups=n.hFB.required(),this.regionalSharingGroupMembers=n.hFB.required(),this.regionalSharingGroupMembersNotInSubgroups=n.hFB.required(),this.viewingMembersNotInGroup=(0,n.vPA)(!1)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["regional-sharing-group-subgroups-summary"]],inputs:{regionalSharingGroupSubgroups:[1,"regionalSharingGroupSubgroups"],regionalSharingGroupMembers:[1,"regionalSharingGroupMembers"],regionalSharingGroupMembersNotInSubgroups:[1,"regionalSharingGroupMembersNotInSubgroups"]},decls:16,vars:4,consts:[["icon",""],["size","small","severity","warn",1,"tw-block","tw-my-4"],["size","small","severity","success",1,"tw-block","tw-my-4"],["header","Members Not In Subgroups","appendTo","body",3,"visibleChange","modal","visible"],[1,"table-responsive"],[1,"table","table-striped","table-bordered"],[1,"tw-ml-2"],[1,"btn-reset","tw-font-semibold","tw-underline",3,"click"],[1,"pi","pi-warning-circle"],[1,"pi","pi-check-circle"]],template:function(i,o){1&i&&(n.DNE(0,dvt,7,1,"p-message",1)(1,hvt,5,0,"p-message",2),n.j41(2,"p-dialog",3),n.mxI("visibleChange",function(a){return n.DH7(o.viewingMembersNotInGroup,a)||(o.viewingMembersNotInGroup=a),a}),n.j41(3,"div",4)(4,"table",5)(5,"thead")(6,"tr")(7,"th"),n.EFF(8,"Name"),n.k0s(),n.j41(9,"th"),n.EFF(10,"Code"),n.k0s(),n.j41(11,"th"),n.EFF(12,"Type"),n.k0s()()(),n.j41(13,"tbody"),n.Z7z(14,fvt,7,3,"tr",null,cvt),n.k0s()()()()),2&i&&(n.vxM(o.regionalSharingGroupMembersNotInSubgroups().length>0?0:-1),n.R7$(),n.vxM(0===o.regionalSharingGroupMembersNotInSubgroups().length?1:-1),n.R7$(),n.Y8G("modal",!0),n.R50("visible",o.viewingMembersNotInGroup),n.R7$(12),n.Dyx(o.regionalSharingGroupMembersNotInSubgroups()))},dependencies:[vg,gf,Dy,z_],encapsulation:2})}}return t})();const gvt=(t,r)=>r._trackingId;function vvt(t,r){1&t&&n.nrm(0,"i",5)}function _vt(t,r){1&t&&n.nrm(0,"loading",3)}function yvt(t,r){1&t&&n.nrm(0,"i",6)}function bvt(t,r){if(1&t&&(n.j41(0,"p-message",4),n.DNE(1,yvt,1,0,"ng-template",null,0,n.C5r),n.j41(3,"span",2),n.EFF(4),n.k0s()()),2&t){const e=n.XpG();n.R7$(4),n.JRh(e.regionalSharingGroupMembersLoadError())}}function Cvt(t,r){if(1&t){const e=n.RV6();n.j41(0,"regional-sharing-group-subgroup",12),n.bIt("removeRequested",function(){const o=n.eBV(e).$implicit,s=n.XpG(2);return n.Njj(s.removeRegionalSharingGroupSubgroup(o))})("regionalSharingGroupSubgroupChanged",function(o){const s=n.eBV(e).$implicit,a=n.XpG(2);return n.Njj(a.regionalSharingGroupSubgroupChanged(o,s))})("isValidChanged",function(o){const s=n.eBV(e).$implicit,a=n.XpG(2);return n.Njj(a.regionalSharingGroupSubgroupIsValidChanged(s,o))}),n.k0s()}if(2&t){const e=r.$implicit,i=r.$index,o=n.XpG(2);n.Y8G("isInitialGroup",0===i)("regionalSharingGroupSubgroup",e)("groupedRegionalSharingGroupMembers",o.groupedRegionalSharingGroupMembers())("localSharingDuration",o.localSharingDuration())("maxDurationMinutes",o.regionalSharingDurationInMinutes())}}function wvt(t,r){1&t&&n.nrm(0,"i",5)}function Tvt(t,r){1&t&&(n.j41(0,"p-message",8),n.DNE(1,wvt,1,0,"ng-template",null,0,n.C5r),n.j41(3,"span",2),n.EFF(4," Unable to load members "),n.k0s()())}function Svt(t,r){if(1&t){const e=n.RV6();n.Z7z(0,Cvt,1,5,"regional-sharing-group-subgroup",7,gvt,!1,Tvt,5,0,"p-message",8),n.j41(3,"div",9)(4,"p-button",10),n.bIt("onClick",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.addNewRegionalSharingGroupSubgroup())}),n.k0s()(),n.nrm(5,"regional-sharing-group-subgroups-summary",11)}if(2&t){const e=n.XpG();n.Dyx(e.regionalSharingGroupSubgroups()),n.R7$(5),n.Y8G("regionalSharingGroupMembers",e.regionalSharingGroupMembers())("regionalSharingGroupSubgroups",e.regionalSharingGroupSubgroups())("regionalSharingGroupMembersNotInSubgroups",e.regionalSharingGroupMembersNotInSubgroups())}}let xvt=(()=>{class t{constructor(){this.regionalSharingGroupsService=(0,n.WQX)(lvt),this.uniqueIdGeneratorService=(0,n.WQX)(fW),this.localSharingDuration=n.hFB.required(),this.regionalSharingGroupId=n.hFB.required(),this.regionalSharingDuration=n.hFB.required(),this.inputRegionalSharingGroupSubgroups=(0,n.hFB)([],{alias:"regionalSharingGroupSubgroups"}),this.onAllValidChanged=new n.bkB,this.onRegionalSharingGroupSubgroupsChanged=new n.bkB,this.regionalSharingGroupMembers=(0,n.vPA)([]),this.groupedRegionalSharingGroupMembers=(0,n.vPA)([]),this.regionalSharingGroupMembersLoading=(0,n.vPA)(!0),this.regionalSharingGroupMembersLoaded=(0,n.vPA)(!1),this.regionalSharingGroupMembersLoadError=(0,n.vPA)(""),this.regionalSharingDurationInMinutes=(0,n.EWP)(()=>60*this.regionalSharingDuration()),this.regionalSharingGroupSubgroups=(0,n.vPA)([]),this.regionalSharingGroupMembersNotInSubgroups=(0,n.EWP)(()=>this.regionalSharingGroupMembers().filter(e=>!this.regionalSharingGroupSubgroups().some(i=>i.RegionalSharingGroupSubgroupMembers.some(o=>o.EntityID===e.EntityID)))),this.allRegionalSharingGroupSubgroupsValid=(0,n.EWP)(()=>this.regionalSharingGroupSubgroups().every(e=>e._isValid)&&0===this.regionalSharingGroupMembersNotInSubgroups().length),(0,n.QZP)(()=>{let e=this.allRegionalSharingGroupSubgroupsValid();this.onAllValidChanged.emit(e),e&&this.onRegionalSharingGroupSubgroupsChanged.emit(this.regionalSharingGroupSubgroups())})}addNewRegionalSharingGroupSubgroup(e=!1){this.regionalSharingGroupSubgroups.set([...this.regionalSharingGroupSubgroups(),{Name:e?"Initial":"",MinutesBeforeSharing:0,RegionalSharingGroupSubgroupMembers:[],_trackingId:this.uniqueIdGeneratorService.generateId(),_isValid:!1}])}removeRegionalSharingGroupSubgroup(e){this.regionalSharingGroupSubgroups.set(this.regionalSharingGroupSubgroups().filter(i=>i._trackingId!==e._trackingId))}regionalSharingGroupSubgroupChanged(e,i){let o=this.regionalSharingGroupSubgroups().find(s=>s._trackingId===i._trackingId);o&&(o.Name=e.Name,o.MinutesBeforeSharing=e.MinutesBeforeSharing,o.RegionalSharingGroupSubgroupMembers=e.RegionalSharingGroupSubgroupMembers,this.groupedRegionalSharingGroupMembers().forEach(s=>{s.items.forEach(a=>{a._isInUse=this.regionalSharingGroupSubgroups().some(l=>l.RegionalSharingGroupSubgroupMembers.some(c=>c.EntityID===a.EntityID))})}),this.regionalSharingGroupSubgroups.set([...this.regionalSharingGroupSubgroups()]),this.onRegionalSharingGroupSubgroupsChanged.emit(this.regionalSharingGroupSubgroups()))}regionalSharingGroupSubgroupIsValidChanged(e,i){e._isValid=i,this.regionalSharingGroupSubgroups.set([...this.regionalSharingGroupSubgroups()])}ngOnInit(){this.regionalSharingGroupsService.getRegionalSharingGroupMembers(this.regionalSharingGroupId()).subscribe({next:e=>{let i=e.sort((o,s)=>o.Name.localeCompare(s.Name));this.regionalSharingGroupMembers.set(i),this.groupedRegionalSharingGroupMembers.set(Object.entries(zx(i,o=>o.EntityType)).map(([o,s])=>({label:o,value:o,items:s})).sort((o,s)=>o.label.localeCompare(s.label))),this.regionalSharingGroupMembersLoaded.set(!0),this.regionalSharingGroupMembersLoading.set(!1)},error:e=>{this.regionalSharingGroupMembersLoadError.set(e&&e.error&&e.error.Message?e.error.Message:"An error occurred while loading regional sharing group members."),this.regionalSharingGroupMembersLoading.set(!1)}}),this.regionalSharingGroupSubgroups.set([...this.inputRegionalSharingGroupSubgroups().map(e=>({ID:e.ID,Name:e.Name,MinutesBeforeSharing:e.MinutesBeforeSharing,RegionalSharingGroupSubgroupMembers:e.RegionalSharingGroupSubgroupMembers,_trackingId:this.uniqueIdGeneratorService.generateId(),_isValid:!0}))]),0===this.regionalSharingGroupSubgroups().length&&this.addNewRegionalSharingGroupSubgroup(!0)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["regional-sharing-group-subgroups"]],inputs:{localSharingDuration:[1,"localSharingDuration"],regionalSharingGroupId:[1,"regionalSharingGroupId"],regionalSharingDuration:[1,"regionalSharingDuration"],inputRegionalSharingGroupSubgroups:[1,"regionalSharingGroupSubgroups","inputRegionalSharingGroupSubgroups"]},outputs:{onAllValidChanged:"onAllValidChanged",onRegionalSharingGroupSubgroupsChanged:"onRegionalSharingGroupSubgroupsChanged"},decls:8,vars:3,consts:[["icon",""],["size","small","severity","info",1,"tw-block","tw-my-4"],[1,"tw-ml-2"],["message","Loading Regional Sharing Group Members..."],["size","small","severity","error"],[1,"pi","pi-info-circle"],[1,"pi","pi-exclamation-triangle"],[1,"tw-block","tw-mt-4",3,"isInitialGroup","regionalSharingGroupSubgroup","groupedRegionalSharingGroupMembers","localSharingDuration","maxDurationMinutes"],["size","small","severity","info"],[1,"tw-mt-4","tw-flex","tw-justify-end"],["label","Add Subgroup","variant","text","size","small",3,"onClick"],[3,"regionalSharingGroupMembers","regionalSharingGroupSubgroups","regionalSharingGroupMembersNotInSubgroups"],[1,"tw-block","tw-mt-4",3,"removeRequested","regionalSharingGroupSubgroupChanged","isValidChanged","isInitialGroup","regionalSharingGroupSubgroup","groupedRegionalSharingGroupMembers","localSharingDuration","maxDurationMinutes"]],template:function(i,o){1&i&&(n.j41(0,"p-message",1),n.DNE(1,vvt,1,0,"ng-template",null,0,n.C5r),n.j41(3,"span",2),n.EFF(4," Enable subgroups of organizations to be defined, each with their own sharing start time "),n.k0s()(),n.DNE(5,_vt,1,0,"loading",3)(6,bvt,5,1,"p-message",4)(7,Svt,6,4)),2&i&&(n.R7$(5),n.vxM(o.regionalSharingGroupMembersLoading()?5:-1),n.R7$(),n.vxM(o.regionalSharingGroupMembersLoadError()?6:-1),n.R7$(),n.vxM(o.regionalSharingGroupMembersLoaded()?7:-1))},dependencies:[mf,Rp,Dy,z_,avt,mvt,th,Yy],encapsulation:2})}}return t})();const Evt=["dropdown"];function Dvt(t,r){if(1&t&&(n.j41(0,"div")(1,"span"),n.EFF(2),n.k0s()()),2&t){const e=n.XpG().$implicit;n.R7$(2),n.JRh(e.Name)}}function kvt(t,r){1&t&&n.DNE(0,Dvt,3,1,"div",5),2&t&&n.Y8G("ngIf",r.$implicit)}function Ivt(t,r){if(1&t&&(n.j41(0,"div"),n.nrm(1,"span",6),n.nI1(2,"highlight"),n.k0s()),2&t){const e=r.$implicit,i=r.searchText;n.R7$(),n.Y8G("innerHTML",n.i5U(2,1,e.label,i),n.npT)}}function Avt(t,r){if(1&t&&(n.j41(0,"div",7)(1,"span"),n.EFF(2),n.k0s()()),2&t){const e=r.$implicit;n.R7$(2),n.JRh(e.label)}}let Mvt=(()=>{class t extends T2{constructor(){super(),this.dropdown=null,this.disabled=!1,this.requireLoadingDock=!1,this.foodBanks=[],this.agencies=[],this.selectedOrganization=null,this.orgSelected=new n.bkB,this.loading=!1,this.items=[],this.availableAgencies=[],this.selectedItem=null}ngOnInit(){this.selectedOrganization&&(this.setDropDownToSelectedOrganization(this.selectedOrganization),this.onItemSelected(this.selectedOrganization))}ngOnChanges(e){e.disabled?.currentValue&&this.setDropDownToSelectedOrganization(null),e.requireLoadingDock&&this.updateAvailableItems()}updateAvailableItems(){this.items=[],this.foodBanks&&this.items.push({label:"Food Banks",value:"foodbanks",items:this.foodBanks.map(i=>({label:i.Name,value:i}))}),this.agencies&&(this.availableAgencies=this.requireLoadingDock?this.agencies.filter(i=>i.IsLargeDonationCompatible):this.agencies,this.items.push({label:"Agencies",value:"agencies",items:this.availableAgencies.map(i=>({label:i.Name,value:i}))}));let e=this.getSelectedOrganization();this.setDropDownToSelectedOrganization(e),this.onItemSelected(e)}getSelectedOrganization(){return this.selectedItem&&this.foodBanks&&this.agencies?this.foodBanks.find(o=>o.EntityID===this.selectedItem?.EntityID)||this.availableAgencies.find(o=>o.EntityID===this.selectedItem?.EntityID):null}setDropdownToEntityId(e){let i=this.items.find(o=>o.items.find(s=>s.value===e));this.setDropDownToSelectedOrganization(i||null)}setDropDownToSelectedOrganization(e){setTimeout(()=>{this.dropdown&&this.dropdown.setSelectedItem(e)})}onItemSelected(e){this.selectedItem=e,this.orgSelected.emit(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["adhoc-direct-allocation-picker"]],viewQuery:function(i,o){if(1&i&&n.GBs(Evt,5),2&i){let s;n.mGM(s=n.lsd())&&(o.dropdown=s.first)}},inputs:{disabled:"disabled",requireLoadingDock:"requireLoadingDock",foodBanks:"foodBanks",agencies:"agencies",selectedOrganization:"selectedOrganization"},outputs:{orgSelected:"orgSelected"},standalone:!1,features:[n.Vt3,n.OA$],decls:8,vars:6,consts:[["selectedItemTemplate",""],["itemTemplate",""],["groupTemplate",""],["dropdown",""],[3,"itemSelected","cleared","disabled","options","group","groupTemplate","itemTemplate","selectedItemTemplate"],[4,"ngIf"],[3,"innerHTML"],[1,"width-full"]],template:function(i,o){if(1&i){const s=n.RV6();n.DNE(0,kvt,1,1,"ng-template",null,0,n.C5r)(2,Ivt,3,4,"ng-template",null,1,n.C5r)(4,Avt,3,1,"ng-template",null,2,n.C5r),n.j41(6,"dropdown",4,3),n.bIt("itemSelected",function(l){return n.eBV(s),n.Njj(o.onItemSelected(l))})("cleared",function(){return n.eBV(s),n.Njj(o.onItemSelected(null))}),n.k0s()}if(2&i){const s=n.sdS(1),a=n.sdS(3),l=n.sdS(5);n.R7$(6),n.Y8G("disabled",o.disabled)("options",o.items)("group",!0)("groupTemplate",l)("itemTemplate",a)("selectedItemTemplate",s)}},dependencies:[fi,Uu,Zd],encapsulation:2})}}return t})(),u6=(()=>{class t{constructor(e){this.http=e}getAffiliateFoodBanks(){return Yo(this.http.get("/api/affiliates"))}getAffiliateFoodBank(e){return Yo(this.http.get(`/api/affiliates/${e}`))}getAffiliateDonors(){return Yo(this.http.get("/api/donors/affiliateassociated"))}static{this.\u0275fac=function(i){return new(i||t)(n.KVO(Da))}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Rvt(t,r){if(1&t&&(n.j41(0,"div"),n.nrm(1,"span",5),n.nI1(2,"highlight"),n.nrm(3,"span",6),n.nI1(4,"highlight"),n.k0s()),2&t){const e=n.XpG(),i=e.$implicit,o=e.searchText;n.R7$(),n.Y8G("innerHTML",n.i5U(2,2,i.Name,o),n.npT),n.R7$(2),n.Y8G("innerHtml",n.i5U(4,5," ("+i.Code+")",o),n.npT)}}function Ovt(t,r){1&t&&n.DNE(0,Rvt,5,8,"div",4),2&t&&n.Y8G("ngIf",r.$implicit)}function Fvt(t,r){if(1&t&&(n.j41(0,"div")(1,"span"),n.EFF(2),n.k0s(),n.j41(3,"span"),n.EFF(4),n.k0s()()),2&t){const e=n.XpG().$implicit;n.R7$(2),n.JRh(e.Name),n.R7$(2),n.SpI(" (",e.Code,") ")}}function Pvt(t,r){1&t&&n.DNE(0,Fvt,5,2,"div",4),2&t&&n.Y8G("ngIf",r.$implicit)}let Lvt=(()=>{class t{constructor(e,i){this.affiliatesService=e,this.toasterService=i,this.selectedDonorId=null,this.donorSelected=new n.bkB,this.donors=[],this.selectedDonor=null}ngOnChanges(e){if(e.selectedDonorId){let i=this.donors.find(o=>o.ID===e.selectedDonorId.currentValue);this.selectedDonor=i||null}}ngOnInit(){this.affiliatesService.getAffiliateDonors().then(e=>{this.donors=e}).catch(()=>{this.toasterService.displayErrorToast("Error","Unable to load affiliate donors")})}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(u6),n.rXU(tc))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["affiliate-donor-picker"]],inputs:{selectedDonorId:"selectedDonorId"},outputs:{donorSelected:"donorSelected"},standalone:!1,features:[n.OA$],decls:6,vars:4,consts:[["dropdown",""],["itemTemplate",""],["selectedItemTemplate",""],["filterFields","Name,Code","placeholder","Filter by Donor",3,"itemSelected","ngModel","options","itemTemplate","selectedItemTemplate"],[4,"ngIf"],[3,"innerHTML"],[3,"innerHtml"]],template:function(i,o){if(1&i){const s=n.RV6();n.j41(0,"dropdown",3,0),n.bIt("itemSelected",function(l){return n.eBV(s),n.Njj(o.donorSelected.emit(l))}),n.DNE(2,Ovt,1,1,"ng-template",null,1,n.C5r)(4,Pvt,1,1,"ng-template",null,2,n.C5r),n.k0s()}if(2&i){const s=n.sdS(3),a=n.sdS(5);n.Y8G("ngModel",o.selectedDonor)("options",o.donors)("itemTemplate",s)("selectedItemTemplate",a)}},dependencies:[fi,_o,ko,Uu,Zd],encapsulation:2})}}return t})();function Nvt(t,r){if(1&t&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&t){const e=r.$implicit;n.R7$(),n.Lme("[",e.Code,"] ",e.Name,"")}}function Gvt(t,r){if(1&t){const e=n.RV6();n.j41(0,"p-multiSelect",1),n.mxI("ngModelChange",function(o){n.eBV(e);const s=n.XpG();return n.DH7(s.selectedAffiliateFoodBanks,o)||(s.selectedAffiliateFoodBanks=o),n.Njj(o)}),n.bIt("onChange",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.selectionChanged())}),n.DNE(1,Nvt,2,2,"ng-template",2),n.k0s()}if(2&t){const e=n.XpG();n.R50("ngModel",e.selectedAffiliateFoodBanks),n.Y8G("options",e.affiliateFoodBanks)("maxSelectedLabels",2)}}let Bvt=(()=>{class t{constructor(e,i){this.affiliatesService=e,this.toasterService=i,this.affiliateFoodBankIds=[],this.onSelectionChanged=new n.bkB,this.isLoaded=!1,this.affiliateFoodBanks=[],this.selectedAffiliateFoodBanks=[]}selectionChanged(){this.onSelectionChanged.emit(this.selectedAffiliateFoodBanks)}ngOnInit(){this.affiliatesService.getAffiliateFoodBanks().then(e=>{this.affiliateFoodBanks=e,this.affiliateFoodBankIds.length&&(this.selectedAffiliateFoodBanks=this.affiliateFoodBanks.filter(i=>this.affiliateFoodBankIds.includes(i.ID)))}).catch(()=>{this.toasterService.displayErrorToast("Error","Unable to load affiliate food banks.")}).finally(()=>{this.isLoaded=!0})}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(u6),n.rXU(tc))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["affiliate-multi-select"]],inputs:{affiliateFoodBankIds:"affiliateFoodBankIds"},outputs:{onSelectionChanged:"onSelectionChanged"},standalone:!1,decls:1,vars:1,consts:[["id","affiliateSelector","defaultLabel","Select Affiliates","optionLabel","Code","selectedItemsLabel","{0} selected",3,"ngModel","options","maxSelectedLabels","ngModelChange","onChange",4,"ngIf"],["id","affiliateSelector","defaultLabel","Select Affiliates","optionLabel","Code","selectedItemsLabel","{0} selected",3,"ngModelChange","onChange","ngModel","options","maxSelectedLabels"],["pTemplate","item"]],template:function(i,o){1&i&&n.DNE(0,Gvt,2,3,"p-multiSelect",0),2&i&&n.Y8G("ngIf",o.isLoaded)},dependencies:[fi,hs,_o,ko,Hb],encapsulation:2})}}return t})();function Vvt(t,r){if(1&t&&(n.j41(0,"div"),n.nrm(1,"span",5),n.nI1(2,"highlight"),n.nrm(3,"span",6),n.nI1(4,"highlight"),n.k0s()),2&t){const e=n.XpG(),i=e.$implicit,o=e.searchText;n.R7$(),n.Y8G("innerHTML",n.i5U(2,2,i.Name,o),n.npT),n.R7$(2),n.Y8G("innerHtml",n.i5U(4,5," ("+i.Code+")",o),n.npT)}}function jvt(t,r){1&t&&n.DNE(0,Vvt,5,8,"div",4),2&t&&n.Y8G("ngIf",r.$implicit)}function Hvt(t,r){if(1&t&&(n.j41(0,"div")(1,"span"),n.EFF(2),n.k0s(),n.j41(3,"span"),n.EFF(4),n.k0s()()),2&t){const e=n.XpG().$implicit;n.R7$(2),n.JRh(e.Name),n.R7$(2),n.SpI(" (",e.Code,") ")}}function Uvt(t,r){1&t&&n.DNE(0,Hvt,5,2,"div",4),2&t&&n.Y8G("ngIf",r.$implicit)}let $vt=(()=>{class t{constructor(e,i){this.affiliatesService=e,this.toasterService=i,this.selectedAffiliateId=null,this.affiliateSelected=new n.bkB,this.affiliateFoodBanks=[],this.selectedAffiliateFoodBank=null}ngOnInit(){this.affiliatesService.getAffiliateFoodBanks().then(e=>{this.affiliateFoodBanks=e}).catch(()=>{this.toasterService.displayErrorToast("Error","Unable to load affiliate food banks")})}ngOnChanges(e){if(e.selectedAffiliateId){let i=this.affiliateFoodBanks.find(o=>o.ID==e.selectedAffiliateId.currentValue);this.selectedAffiliateFoodBank=i||null}}onAffiliateSelected(e){this.affiliateSelected.emit(e)}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(u6),n.rXU(tc))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["affiliate-picker"]],inputs:{selectedAffiliateId:"selectedAffiliateId"},outputs:{affiliateSelected:"affiliateSelected"},standalone:!1,features:[n.OA$],decls:6,vars:4,consts:[["dropdown",""],["itemTemplate",""],["selectedItemTemplate",""],["filterFields","Name,Code","placeholder","Filter by Affiliate",3,"itemSelected","ngModel","options","itemTemplate","selectedItemTemplate"],[4,"ngIf"],[3,"innerHTML"],[3,"innerHtml"]],template:function(i,o){if(1&i){const s=n.RV6();n.j41(0,"dropdown",3,0),n.bIt("itemSelected",function(l){return n.eBV(s),n.Njj(o.onAffiliateSelected(l))}),n.DNE(2,jvt,1,1,"ng-template",null,1,n.C5r)(4,Uvt,1,1,"ng-template",null,2,n.C5r),n.k0s()}if(2&i){const s=n.sdS(3),a=n.sdS(5);n.Y8G("ngModel",o.selectedAffiliateFoodBank)("options",o.affiliateFoodBanks)("itemTemplate",s)("selectedItemTemplate",a)}},dependencies:[fi,_o,ko,Uu,Zd],encapsulation:2})}}return t})();function Yvt(t,r){if(1&t&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.JRh(e.affiliateFoodBank.Name)}}let Wvt=(()=>{class t{constructor(e,i){this.affiliatesService=e,this.toasterService=i,this.foodBankId=null,this.sectionSelected=new n.bkB,this.affiliateFoodBank=null}ngOnInit(){this.foodBankId&&this.affiliatesService.getAffiliateFoodBank(parseInt(this.foodBankId,10)).then(e=>{this.affiliateFoodBank=e}).catch(()=>{this.toasterService.displayErrorToast("Error","An error occurred loading the affiliate food bank")})}onSectionSelected(e){this.sectionSelected.emit(e)}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(u6),n.rXU(tc))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["affiliate-settings"]],inputs:{foodBankId:"foodBankId"},outputs:{sectionSelected:"sectionSelected"},standalone:!1,decls:13,vars:1,consts:[[1,"content-heading"],[4,"ngIf"],[1,"tw-flex","tw-space-x-4"],[1,"tw-h-12","tw-w-12","tw-flex","tw-items-center","tw-justify-center","tw-rounded-full","tw-border","tw-border-solid"],[1,"pi","pi-users","tw-text-4xl"],[1,"tw-flex","tw-flex-col"],[1,"tw-text-2xl","tw-uppercase"],[1,""],[1,"btn","btn-default",3,"click"]],template:function(i,o){1&i&&(n.j41(0,"h3",0),n.DNE(1,Yvt,2,1,"span",1),n.EFF(2," Settings\n"),n.k0s(),n.j41(3,"div",2)(4,"div",3),n.nrm(5,"i",4),n.k0s(),n.j41(6,"div",5)(7,"span",6),n.EFF(8,"Users"),n.k0s(),n.j41(9,"span",7),n.EFF(10,"Account Users"),n.k0s(),n.j41(11,"button",8),n.bIt("click",function(){return o.onSectionSelected("users")}),n.EFF(12," Manage Users "),n.k0s()()()),2&i&&(n.R7$(),n.Y8G("ngIf",o.affiliateFoodBank))},dependencies:[fi],encapsulation:2})}}return t})(),zvt=(()=>{class t{constructor(e){this.http=e}setCategoryHidden(e,i){return this.http.put(`/api/foodbank/categories/${e}/hidden`,i)}static{this.\u0275fac=function(i){return new(i||t)(n.KVO(Da))}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),qvt=(()=>{class t{constructor(e,i){this.categoryService=e,this.toasterService=i,this.categoryId=0,this.initialHiddenValue=!1,this.categoryIsHidden=!1}ngOnInit(){this.categoryIsHidden=this.initialHiddenValue}categoryHiddenChanged(){0!==this.categoryId&&this.categoryService.setCategoryHidden(this.categoryId,this.categoryIsHidden).subscribe(e=>{e.Successful?this.toasterService.displayInfoToast("Success","Category hidden status updated."):this.toasterService.displayErrorToast("Error","There was an error updating the hidden status of the category.")},()=>{this.toasterService.displayErrorToast("Error","There was an error updating the hidden status of the category.")})}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(zvt),n.rXU(tc))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["category-hidden-selector"]],inputs:{categoryId:"categoryId",initialHiddenValue:"initialHiddenValue"},standalone:!1,decls:2,vars:1,consts:[[3,"ngModelChange","onChange","ngModel"]],template:function(i,o){1&i&&(n.j41(0,"div")(1,"p-inputSwitch",0),n.mxI("ngModelChange",function(a){return n.DH7(o.categoryIsHidden,a)||(o.categoryIsHidden=a),a}),n.bIt("onChange",function(){return o.categoryHiddenChanged()}),n.k0s()()),2&i&&(n.R7$(),n.R50("ngModel",o.categoryIsHidden))},dependencies:[u7,_o,ko],styles:[".p-inputswitch-slider[_ngcontent-%COMP%], .p-inputswitch-checked[_ngcontent-%COMP%]{width:unset;height:27px}"]})}}return t})(),Xvt=(()=>{class t{constructor(e){this.http=e}getAllFoodbanks(){return this.http.get("/api/fano/foodbanks")}static{this.\u0275fac=function(i){return new(i||t)(n.KVO(Da))}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const Kvt=["dropdown"];function Qvt(t,r){if(1&t&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&t){const e=n.XpG().$implicit;n.R7$(),n.SpI(" (",null==e?null:e.Code,")")}}function Jvt(t,r){if(1&t&&(n.j41(0,"div",5)(1,"span"),n.EFF(2),n.k0s(),n.DNE(3,Qvt,2,1,"span",6),n.k0s()),2&t){const e=r.$implicit;n.R7$(2),n.JRh(null==e?null:e.Name),n.R7$(),n.Y8G("ngIf",null==e?null:e.Code)}}function Zvt(t,r){if(1&t&&(n.nrm(0,"span",8),n.nI1(1,"highlight")),2&t){const e=n.XpG(),i=e.$implicit;n.Y8G("innerHtml",n.i5U(1,1," ("+(null==i?null:i.Code)+")",e.searchText),n.npT)}}function e_t(t,r){if(1&t&&(n.j41(0,"div",7),n.nrm(1,"span",8),n.nI1(2,"highlight"),n.DNE(3,Zvt,2,4,"span",9),n.k0s()),2&t){const e=r.$implicit,i=r.searchText;n.R7$(),n.Y8G("innerHtml",n.i5U(2,2,null==e?null:e.Name,i),n.npT),n.R7$(2),n.Y8G("ngIf",null==e?null:e.Code)}}let t_t=(()=>{class t extends T2{constructor(e,i){super(),this.foodbankService=e,this.toasterService=i,this.dropdown=null,this.foodbankSelected=new n.bkB,this.foodbanks=[],this.selectedFoodbank=null,this.loading=!1,this.onChange=o=>{},this.onTouched=()=>{}}ngOnInit(){this.loadFoodBanks()}ngOnChanges(e){const i=this.foodbanks.find(o=>-1==o.ID);e.includeStoreLevelDetail.currentValue&&!i&&this.foodbanks.splice(1,0,{Name:this.storeLevelText,Code:this.storeLevelCode,ID:-1}),!e.includeStoreLevelDetail.currentValue&&i&&(this.foodbanks=this.foodbanks.filter(o=>-1!=o.ID))}loadFoodBanks(){let e;this.loading=!0,e=this.foodbankService.getAllFoodbanks(),e.subscribe(i=>{this.foodbanks=[...i],this.includeStoreLevelDetail&&this.foodbanks.unshift({Name:this.storeLevelText,Code:this.storeLevelCode,ID:-1}),this.includeNoFilterItem&&this.foodbanks.unshift({Name:this.noFilterText,Code:""}),this.loading=!1},i=>{this.loading=!1,this.toasterService.displayErrorToast("Error","Error loading foodbanks")})}onFoodbankSelected(e){this.selectedFoodbank=e,this.foodbankSelected.emit(e),this.onChange(e)}onDropdownBlurred(){this.onTouched()}get value(){return this.selectedFoodbank}writeValue(e){this.selectedFoodbank=e,this.dropdown&&this.dropdown.setSelectedItem(e),this.onChange(this.selectedFoodbank)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(Xvt),n.rXU(tc))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-foodbank-picker"]],viewQuery:function(i,o){if(1&i&&n.GBs(Kvt,5),2&i){let s;n.mGM(s=n.lsd())&&(o.dropdown=s.first)}},outputs:{foodbankSelected:"foodbankSelected"},standalone:!1,features:[n.Jv_([{provide:tl,useExisting:(0,n.Rfq)(()=>t),multi:!0}]),n.Vt3,n.OA$],decls:7,vars:8,consts:[["selectedFoodBankTemplate",""],["foodbankTemplate",""],["dropdown",""],[1,"row"],["filterFields","Name,Code",3,"itemSelected","blurred","options","itemTemplate","selectedItemTemplate","loading","placeholder","showRequiredIcon","disabled"],[1,"foodbank-name","foodbank-selected"],[4,"ngIf"],[1,"foodbank-name"],[3,"innerHtml"],[3,"innerHtml",4,"ngIf"]],template:function(i,o){if(1&i){const s=n.RV6();n.DNE(0,Jvt,4,2,"ng-template",null,0,n.C5r)(2,e_t,4,5,"ng-template",null,1,n.C5r),n.j41(4,"div",3)(5,"dropdown",4,2),n.bIt("itemSelected",function(l){return n.eBV(s),n.Njj(o.onFoodbankSelected(l))})("blurred",function(){return n.eBV(s),n.Njj(o.onDropdownBlurred())}),n.k0s()()}if(2&i){const s=n.sdS(1),a=n.sdS(3);n.R7$(5),n.Y8G("options",o.foodbanks)("itemTemplate",a)("selectedItemTemplate",s)("loading",o.loading)("placeholder",o.placeholder)("showRequiredIcon",o.showRequiredIcon)("disabled",o.disabled)("placeholder",o.placeholder)}},dependencies:[fi,Uu,Zd],styles:[".foodbank-name[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:14px}.foodbank-selected[_ngcontent-%COMP%]{margin-top:2px}.foodbank-name[_ngcontent-%COMP%]{padding-right:15px;overflow:hidden;text-overflow:ellipsis;min-height:17px}"]})}}return t})(),n_t=(()=>{class t{constructor(){this.style="",this.class=""}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["icon-edit"]],inputs:{style:"style",class:"class"},standalone:!1,decls:7,vars:1,consts:[["xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","fill","currentColor","viewBox","0 0 512 512","stroke-width","1.5","height","20px","width","20px","version","1.1","id","Layer_1",0,"xml","space","preserve",3,"ngClass"],["id","SVGRepo_bgCarrier","stroke-width","0"],["id","SVGRepo_tracerCarrier","stroke-linecap","round","stroke-linejoin","round"],["id","SVGRepo_iconCarrier"],["stroke-linecap","round","stroke-linejoin","round","d","M498.125,92.38l-78.505-78.506c-18.496-18.497-48.436-18.5-66.935,0C339.518,27.043,50.046,316.516,44.525,322.035 c-2.182,2.182-3.725,4.918-4.46,7.915L0.502,491.068c-3.036,12.368,8.186,23.44,20.431,20.432 c8.361-2.053,153.718-37.747,161.117-39.564c2.996-0.735,5.734-2.278,7.915-4.46c5.816-5.816,293.677-293.677,308.161-308.161 C516.622,140.818,516.627,110.879,498.125,92.38z M39.957,472.043l1.612-6.562l4.951,4.951L39.957,472.043z M84.874,461.014 l-33.887-33.887l14.736-60.009l79.16,79.16L84.874,461.014z M178.022,431.647l-97.668-97.668L332.559,81.773l97.668,97.668 L178.022,431.647z M474.24,135.429l-19.508,19.507l-97.667-97.668l19.507-19.507c5.294-5.293,13.867-5.298,19.163,0l78.506,78.507 C479.536,121.563,479.536,130.132,474.24,135.429z"]],template:function(i,o){1&i&&(n.qSk(),n.j41(0,"svg",0),n.nrm(1,"g",1)(2,"g",2),n.j41(3,"g",3)(4,"g")(5,"g"),n.nrm(6,"path",4),n.k0s()()()()),2&i&&n.Y8G("ngClass",o.class)},dependencies:[bi],encapsulation:2})}}return t})();const i_t=t=>({display:"flex",gap:t}),r_t=t=>[t];function o_t(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",9),n.bIt("click",function(){n.eBV(e);const o=n.XpG(3);return n.Njj(o.beginEditRoute())}),n.nrm(1,"icon-edit",10),n.k0s()}}function s_t(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",11),n.bIt("click",function(){n.eBV(e);const o=n.XpG(3);return n.Njj(o.beginRemoveRoute())}),n.nrm(1,"icon-trash-can",10),n.k0s()}}function a_t(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",12),n.bIt("click",function(){n.eBV(e);const o=n.XpG(3);return n.Njj(o.cancelRemoveRoute())}),n.nrm(1,"icon-arrow-uturn-left",13),n.k0s()}if(2&t){const e=n.XpG(3);n.Y8G("disabled",e.removing)}}function l_t(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",14),n.bIt("click",function(){n.eBV(e);const o=n.XpG(3);return n.Njj(o.confirmRemoveRoute())}),n.nrm(1,"icon-trash-can-solid",15),n.k0s()}if(2&t){const e=n.XpG(3);n.Y8G("disabled",e.removing),n.R7$(),n.Y8G("ngClass",n.eq3(2,r_t,e.removing?"tw-text-gray-500":"tw-text-red-900 hover:tw-text-red-700"))}}function c_t(t,r){if(1&t&&(n.j41(0,"div",4),n.DNE(1,o_t,2,0,"button",5)(2,s_t,2,0,"button",6)(3,a_t,2,1,"button",7)(4,l_t,2,4,"button",8),n.k0s()),2&t){const e=n.XpG(2);n.Y8G("ngStyle",n.eq3(5,i_t,e.confirming?"0.5rem":"1.5rem")),n.R7$(),n.Y8G("ngIf",!e.confirming),n.R7$(),n.Y8G("ngIf",!e.confirming),n.R7$(),n.Y8G("ngIf",e.confirming),n.R7$(),n.Y8G("ngIf",e.confirming)}}function u_t(t,r){if(1&t&&(n.j41(0,"div")(1,"div",1)(2,"span",2),n.EFF(3),n.k0s()(),n.DNE(4,c_t,5,7,"div",3),n.k0s()),2&t){const e=n.XpG();n.R7$(2),n.Y8G("title",e.route.Name),n.R7$(),n.SpI(" ",e.route.Name," "),n.R7$(),n.Y8G("ngIf",e.isAuthorizedUser&&e.routeRow&&(null==e.routeRow?null:e.routeRow.isFirstRow))}}let d_t=(()=>{class t{constructor(){this.route=null,this.isAuthorizedUser=!1,this.confirming=!1,this.removing=!1}ngOnInit(){}agInit(e){this.route=e.data.route,this.onRouteMappingAdded=e.onRouteMappingAdded,this.routeRow=e.data,this.onEditRoute=e.onEditRoute,this.onDeleteRoute=e.onDeleteRoute,this.isAuthorizedUser=e.isAuthorizedUser}refresh(e){return!1}beginEditRoute(){this.onEditRoute(this.routeRow)}beginRemoveRoute(){this.confirming=!0}confirmRemoveRoute(){this.removing=!0,this.onDeleteRoute(this.routeRow)}cancelRemoveRoute(){this.confirming=!1}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["route-detail-renderer"]],standalone:!1,decls:1,vars:1,consts:[[4,"ngIf"],[1,"tw-flex","tw-items-center"],[1,"tw-text-sm","xl:tw-text-base","2xl:tw-text-lg","tw-font-semibold","tw-truncate",3,"title"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],["type","button","class","\n        tw-p-0 tw-bg-transparent tw-border-0 tw-select-none tw-text-gray-500\n        hover:tw-text-blue-900\n        tw-transition-all tw-duration-300\n      ","title","Edit Route",3,"click",4,"ngIf"],["type","button","class","\n        tw-p-0 tw-bg-transparent tw-border-0 tw-select-none tw-text-gray-500\n        hover:tw-text-red-900\n        tw-transition-all tw-duration-300\n      ","title","Remove Route",3,"click",4,"ngIf"],["type","button","class","\n        tw-p-0 tw-bg-transparent tw-border-0 tw-select-none tw-text-gray-500\n      ","title","Cancel",3,"disabled","click",4,"ngIf"],["type","button","class","tw-ml-4 tw-p-0 tw-bg-transparent tw-border-0 tw-select-none","title","Confirm Removal",3,"disabled","click",4,"ngIf"],["type","button","title","Edit Route",1,"tw-p-0","tw-bg-transparent","tw-border-0","tw-select-none","tw-text-gray-500","hover:tw-text-blue-900","tw-transition-all","tw-duration-300",3,"click"],[1,"tw-w-8","tw-h-8"],["type","button","title","Remove Route",1,"tw-p-0","tw-bg-transparent","tw-border-0","tw-select-none","tw-text-gray-500","hover:tw-text-red-900","tw-transition-all","tw-duration-300",3,"click"],["type","button","title","Cancel",1,"tw-p-0","tw-bg-transparent","tw-border-0","tw-select-none","tw-text-gray-500",3,"click","disabled"],[1,"tw-w-8","tw-h-8","tw-text-gray-500","hover:tw-text-gray-700"],["type","button","title","Confirm Removal",1,"tw-ml-4","tw-p-0","tw-bg-transparent","tw-border-0","tw-select-none",3,"click","disabled"],[1,"tw-w-8","tw-h-8","tw-transition-all","tw-duration-300",3,"ngClass"]],template:function(i,o){1&i&&n.DNE(0,u_t,5,3,"div",0),2&i&&n.Y8G("ngIf",o.route)},dependencies:[bi,fi,Jr,dW,pW,hW,n_t],encapsulation:2})}}return t})();function p_t(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",6),n.bIt("click",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.removeDriver(o.driver))}),n.nrm(1,"span",7),n.k0s()}}function h_t(t,r){if(1&t&&(n.j41(0,"div",2)(1,"div",3)(2,"div",4),n.EFF(3),n.k0s(),n.DNE(4,p_t,2,0,"button",5),n.k0s()()),2&t){const e=n.XpG();n.R7$(3),n.SpI(" ",e.driver.UserName," "),n.R7$(),n.Y8G("ngIf",e.isAuthorizedUser)}}function f_t(t,r){if(1&t&&(n.j41(0,"div",10)(1,"span",11),n.EFF(2),n.k0s()()),2&t){const e=r.$implicit;n.R7$(2),n.SpI(" ",e.UserName," ")}}function m_t(t,r){if(1&t){const e=n.RV6();n.j41(0,"div")(1,"p-autoComplete",8),n.mxI("ngModelChange",function(o){n.eBV(e);const s=n.XpG();return n.DH7(s.selectedDriver,o)||(s.selectedDriver=o),n.Njj(o)}),n.bIt("completeMethod",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.filterDrivers(o))})("onSelect",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.driverSelected(o))}),n.DNE(2,f_t,3,1,"ng-template",9),n.k0s()()}if(2&t){const e=n.XpG();n.R7$(),n.Y8G("disabled",e.loading||!e.isAuthorizedUser),n.R50("ngModel",e.selectedDriver),n.Y8G("suggestions",e.filteredDrivers)("dropdown",!0)("virtualScroll",!0)("itemSize",e.dropDownItemHeight)}}let g_t=(()=>{class t{constructor(){this.driver=null,this.selectedDriver=null,this.filteredDrivers=[],this.loading=!1,this.dropDownItemHeight=50,this.isAuthorizedUser=!1}ngOnInit(){}agInit(e){window.innerWidth<1550&&(this.dropDownItemHeight=60),e.data.driver&&(this.driver=e.data.driver),this.data=e.data,this.onDriverSelected=e.onDriverSelected,this.onDriverRemoved=e.onDriverRemoved,this.getAvailableDrivers=e.getAvailableDrivers,this.isAuthorizedUser=e.isAuthorizedUser}refresh(e){return!1}filterDrivers(e){let i=e.query.toLowerCase();this.filteredDrivers=this.getAvailableDrivers(this.data).filter(o=>o.UserName?.toLowerCase().indexOf(i)>-1)}driverSelected(e){this.loading=!0,this.onDriverSelected(e.value,this.data)}removeDriver(e){this.loading=!0,this.onDriverRemoved(e,this.data)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-driver-assignment-renderer"]],inputs:{data:"data"},standalone:!1,decls:2,vars:2,consts:[["class","driver-container",4,"ngIf"],[4,"ngIf"],[1,"driver-container"],[1,"tw-text-sm","xl:tw-text-base","2xl:tw-text-xl","tw-flex","tw-items-center","tw-w-full"],[1,"tw-font-semibold","tw-text-gray-500","tw-overflow-hidden","tw-text-ellipsis","tw-whitespace-nowrap"],["class","tw-text-lg tw-text-gray-500 remove-button","title","Remove Driver from Route",3,"click",4,"ngIf"],["title","Remove Driver from Route",1,"tw-text-lg","tw-text-gray-500","remove-button",3,"click"],[1,"p-dialog-header-close-icon","pi","pi-times"],["placeholder","Select Driver","field","UserName","appendTo","body",1,"tw-flex","tw-flex-col","tw-flex-auto",3,"ngModelChange","completeMethod","onSelect","disabled","ngModel","suggestions","dropdown","virtualScroll","itemSize"],["pTemplate","item"],[1,"tw-flex","tw-flex-row","tw-items-center","tw-text-sm","tw-mt-3"],[1,"tw-font-semibold","tw-text-gray-600"]],template:function(i,o){1&i&&n.DNE(0,h_t,5,2,"div",0)(1,m_t,3,6,"div",1),2&i&&(n.Y8G("ngIf",o.driver),n.R7$(),n.Y8G("ngIf",!o.driver))},dependencies:[fi,hs,_o,ko,Ib],styles:[".driver-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;width:100%}.remove-button[_ngcontent-%COMP%]{flex-shrink:0;background:none;border:none;cursor:pointer;font-size:1.2em;margin-left:4px}.driver-container[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;overflow:hidden;position:relative}.driver-container[_ngcontent-%COMP%]   .tw-font-semibold[_ngcontent-%COMP%]{overflow-x:auto;white-space:nowrap;flex-grow:1}.driver-container[_ngcontent-%COMP%]   .remove-button[_ngcontent-%COMP%]{flex-shrink:0}"],changeDetection:0})}}return t})(),v_t=(()=>{class t{constructor(e){this.http=e,this.cachedDonorLocations=[],this.cachedAgencies=[]}getRoutes(){return Yo(this.http.get("/api/v2/foodbanks/current/routes"))}getAvailableDrivers(){var e=this;return(0,lr.A)(function*(){return yield Yo(e.http.get("/api/v2/foodbanks/current/routes/drivers"))})()}assignRoutesDriver(e,i){var o=this;return(0,lr.A)(function*(){try{const s={RouteID:e.ID,DriverUserID:i.ID};delete s.ID;const a=e.RouteDrivers.filter(c=>c.DriverUserID!==i.ID).map(c=>({ID:c.ID,RouteID:c.RouteID,DriverUserID:c.DriverUserID})),l={...e,RouteDrivers:[...a,s]};return yield Yo(o.http.put("/api/v2/foodbanks/current/routes",l))}catch(s){throw s}})()}removeRoutesDriver(e,i){var o=this;return(0,lr.A)(function*(){try{const s=e.RouteDrivers.filter(l=>l.DriverUserID!==i.ID).map(l=>({ID:l.ID,RouteID:l.RouteID,DriverUserID:l.DriverUserID})),a={...e,RouteDrivers:s};return yield Yo(o.http.put("/api/v2/foodbanks/current/routes",a))}catch(s){throw s}})()}createRoute(e){var i=this;return(0,lr.A)(function*(){try{return yield Yo(i.http.post("/api/v2/foodbanks/current/routes",e))}catch(o){throw console.error("Error creating route:",o),o}})()}getDonorLocations(){var e=this;return(0,lr.A)(function*(){try{let o=[];e.cachedDonorLocations.length?o=yield Promise.resolve(e.cachedDonorLocations):(o=yield Yo(e.http.get("/api/foodbankconnections/donorlocations")),e.cachedDonorLocations=[...o]);const s=new Set;return o.filter(l=>!s.has(l.ID)&&(s.add(l.ID),!0))}catch(o){throw console.error("Error fetching donor locations:",o),o}})()}getAgencies(){var e=this;return(0,lr.A)(function*(){try{let o=[];e.cachedAgencies.length?o=yield Promise.resolve(e.cachedAgencies):(o=yield Yo(e.http.get("/api/foodbankconnections/agencies")),e.cachedAgencies=[...o]);const s=new Set;return o.filter(l=>!s.has(l.ID)&&(s.add(l.ID),!0))}catch(o){throw console.error("Error fetching agencies:",o),o}})()}generateId(){return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}updateRoute(e){var i=this;return(0,lr.A)(function*(){try{const o={...e,Name:e.Name,RouteStops:e.RouteStops};return yield Yo(i.http.put("/api/v2/foodbanks/current/routes",o))}catch(o){throw o}})()}deleteRoute(e){var i=this;return(0,lr.A)(function*(){return Yo(i.http.delete(`/api/v2/foodbanks/current/routes/${e}`))})()}static{this.\u0275fac=function(i){return new(i||t)(n.KVO(Da))}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const Zde=(t,r)=>({"max-height":t,"min-height":r}),epe=t=>({over:t}),tpe=(t,r)=>({selected:t,disabled:r});function __t(t,r){if(1&t){const e=n.RV6();n.j41(0,"li",14),n.bIt("click",function(o){const s=n.eBV(e),a=s.$implicit,l=s.index,c=n.XpG();return c.disabled||c.selectItem(c.highlightedAvailableItems,a,"available"),n.Njj(c.shiftClick(o,l,"available",a))})("dragstart",function(o){const s=n.eBV(e).$implicit,a=n.XpG();return n.Njj(a.drag(o,s,"available"))})("dragend",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.dragEnd("available"))}),n.j41(1,"div",15)(2,"div",16)(3,"span",17),n.EFF(4),n.k0s()(),n.j41(5,"div",18)(6,"div",19)(7,"span",20),n.EFF(8),n.k0s()(),n.j41(9,"span",21),n.EFF(10),n.k0s()()()()}if(2&t){const e=r.$implicit,i=n.XpG();n.Y8G("ngClass",n.l_i(5,tpe,i.isItemSelected(i.highlightedAvailableItems,e),i.disabled))("draggable",!i.disabled&&i.format.draggable),n.R7$(4),n.SpI("# ",e.label,""),n.R7$(4),n.JRh(e.title),n.R7$(2),n.JRh(e.subtitle)}}function y_t(t,r){if(1&t){const e=n.RV6();n.j41(0,"li",14),n.bIt("click",function(o){const s=n.eBV(e),a=s.$implicit,l=s.index,c=n.XpG();return c.disabled||c.selectItem(c.highlightedSelectedItems,a,"selected"),n.Njj(c.shiftClick(o,l,"selected",a))})("dragstart",function(o){const s=n.eBV(e).$implicit,a=n.XpG();return n.Njj(a.drag(o,s,"selected"))})("dragend",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.dragEnd("selected"))}),n.j41(1,"div",15)(2,"div",16)(3,"span",17),n.EFF(4),n.k0s()(),n.j41(5,"div",18)(6,"div",19)(7,"span",20),n.EFF(8),n.k0s()(),n.j41(9,"span",21),n.EFF(10),n.k0s()()()()}if(2&t){const e=r.$implicit,i=n.XpG();n.Y8G("ngClass",n.l_i(5,tpe,i.isItemSelected(i.highlightedSelectedItems,e),i.disabled))("draggable",!i.disabled&&i.format.draggable),n.R7$(4),n.SpI("# ",e.label,""),n.R7$(4),n.JRh(e.title),n.R7$(2),n.JRh(e.subtitle)}}let b_t=(()=>{class t{constructor(){this.availableItems=[],this.selectedItems=[],this.filterPlaceholder="Filter items...",this.selectedItemsChange=new n.bkB,this.filteredAvailableItems=[],this.filteredSelectedItems=[],this.highlightedAvailableItems=[],this.highlightedSelectedItems=[],this.height="200px",this.disabled=!1,this.format={add:"Add",remove:"Remove",all:"Select All",none:"Deselect All",draggable:!0},this.availableDragOver=!1,this.selectedDragOver=!1,this.draggedItems=[],this.availableFilterText="",this.selectedFilterText=""}ngOnInit(){const e=[...this.availableItems],i=this.getSearchFilterResult(e,this.availableFilterText),o=[...this.selectedItems],s=this.getSearchFilterResult(o,this.selectedFilterText);this.filteredAvailableItems=i,this.filteredSelectedItems=s}direction(){return!0}moveItem(e,i,o){o.forEach(s=>{const a=e.indexOf(s);-1!==a&&(e.splice(a,1),i.push(s))}),this.selectedItemsChange.emit(this.selectedItems)}moveHighlightedItemsToSelected(){this.moveItem(this.availableItems,this.selectedItems,this.highlightedAvailableItems),this.highlightedAvailableItems=[];const e=this.availableItems.filter(a=>!this.selectedItems.includes(a)),i=this.getSearchFilterResult(e,this.availableFilterText);this.filteredAvailableItems=i;const o=[...this.selectedItems],s=this.getSearchFilterResult(o,this.selectedFilterText);this.filteredSelectedItems=s}moveHighlightedItemsToAvailable(){this.moveItem(this.selectedItems,this.availableItems,this.highlightedSelectedItems),this.highlightedSelectedItems=[];const e=this.selectedItems.filter(a=>!this.availableItems.includes(a)),i=this.getSearchFilterResult(e,this.selectedFilterText);this.filteredSelectedItems=i;const o=[...this.availableItems],s=this.getSearchFilterResult(o,this.availableFilterText);this.filteredAvailableItems=s}selectItem(e,i,o){const s=e.indexOf(i);-1===s?e.push(i):e.splice(s,1),"available"===o?this.highlightedAvailableItems=[...e]:this.highlightedSelectedItems=[...e]}isItemSelected(e,i){return-1!==e.indexOf(i)}selectAllAndMove(e){"available"===e?(this.highlightedAvailableItems=[...this.filteredAvailableItems],this.moveHighlightedItemsToSelected()):(this.highlightedSelectedItems=[...this.filteredSelectedItems],this.moveHighlightedItemsToAvailable())}isAllSelected(e){return"available"===e?this.filteredAvailableItems.length===this.highlightedAvailableItems.length:this.filteredSelectedItems.length===this.highlightedSelectedItems.length}isAnySelected(e){return"available"===e?this.highlightedAvailableItems.length>0:this.highlightedSelectedItems.length>0}allowDrop(e,i){e.preventDefault(),"available"===i?this.availableDragOver=!0:this.selectedDragOver=!0}dragLeave(){this.availableDragOver=!1,this.selectedDragOver=!1}drop(e,i){e.preventDefault(),this.moveItem(this.draggedItems,i,this.draggedItems),this.dragLeave()}drag(e,i,o){this.draggedItems=[i]}dragEnd(e){this.draggedItems=[]}shiftClick(e,i,o,s){}getSearchFilterResult(e,i){return e.filter(s=>s.label.toLowerCase().includes(i.toLowerCase())||s.title.toLowerCase().includes(i.toLowerCase())||s.subtitle.toLowerCase().includes(i.toLowerCase()))}onAvailableFilterTextChange(e){this.availableFilterText=e.target.value,this.filteredAvailableItems=this.getSearchFilterResult(this.availableItems,this.availableFilterText)}onSelectedFilterTextChange(e){this.selectedFilterText=e.target.value,this.filteredSelectedItems=this.getSearchFilterResult(this.selectedItems,this.selectedFilterText)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["dual-listbox"]],inputs:{availableItems:"availableItems",selectedItems:"selectedItems",filterPlaceholder:"filterPlaceholder"},outputs:{selectedItemsChange:"selectedItemsChange"},standalone:!1,decls:18,vars:21,consts:[[1,"dual-listbox-container","tw-flex","tw-flex-row","tw-space-x-2"],[1,"listbox","tw-w-1/2"],["type","text",1,"form-control","tw-mb-2",3,"input","placeholder"],[1,"record-picker"],[1,"no-border-radius",3,"drop","dragover","dragleave","ngStyle","ngClass"],[3,"ngClass","draggable","click","dragstart","dragend",4,"ngFor","ngForOf"],[1,"button-group","tw-flex","tw-flex-col","tw-justify-center"],["type","button","title","Add Selected",1,"mt-30","btn","btn-primary","tw-flex","justify-center",3,"click","disabled"],[1,"pi","pi-angle-right"],["type","button","title","Remove Selected",1,"btn","btn-primary","tw-flex","justify-center",2,"margin-top","10px",3,"click","disabled"],[1,"pi","pi-angle-left"],["type","button","title","Remove All",1,"btn","btn-primary","tw-flex","justify-center",2,"margin-top","10px",3,"click","disabled"],[1,"pi","pi-angle-double-left"],["type","text",1,"form-control","tw-mb-2",2,"width","100%","margin-bottom","10px",3,"input","placeholder"],[3,"click","dragstart","dragend","ngClass","draggable"],[1,"tw-flex","tw-flex-row","tw-items-center"],[1,"tw-mr-4","tw-border","tw-border-gray-200","tw-bg-gray-100","tw-px-4","tw-py-2","tw-flex","tw-justify-center","tw-items-center",2,"min-width","120px"],[1,"tw-text-sm","tw-text-gray-900","tw-font-semibold"],[1,"tw-ml-4"],[1,"tw-text-sm"],[1,"tw-font-semibold","tw-text-gray-600"],[1,"tw-text-xs"]],template:function(i,o){1&i&&(n.j41(0,"div",0)(1,"div",1)(2,"input",2),n.bIt("input",function(a){return o.onAvailableFilterTextChange(a)}),n.k0s(),n.j41(3,"div",3)(4,"ul",4),n.bIt("drop",function(a){return o.drop(a,o.selectedItems)})("dragover",function(a){return o.allowDrop(a,"available")})("dragleave",function(){return o.dragLeave()}),n.DNE(5,__t,11,8,"li",5),n.k0s()()(),n.j41(6,"div",6)(7,"button",7),n.bIt("click",function(){return o.moveHighlightedItemsToSelected()}),n.nrm(8,"i",8),n.k0s(),n.j41(9,"button",9),n.bIt("click",function(){return o.moveHighlightedItemsToAvailable()}),n.nrm(10,"i",10),n.k0s(),n.j41(11,"button",11),n.bIt("click",function(){return o.selectAllAndMove("selected")}),n.nrm(12,"i",12),n.k0s()(),n.j41(13,"div",1)(14,"input",13),n.bIt("input",function(a){return o.onSelectedFilterTextChange(a)}),n.k0s(),n.j41(15,"div",3)(16,"ul",4),n.bIt("drop",function(a){return o.drop(a,o.availableItems)})("dragover",function(a){return o.allowDrop(a,"selected")})("dragleave",function(){return o.dragLeave()}),n.DNE(17,y_t,11,8,"li",5),n.k0s()()()()),2&i&&(n.R7$(2),n.Y8G("placeholder",o.filterPlaceholder),n.R7$(2),n.Y8G("ngStyle",n.l_i(11,Zde,o.height,o.height))("ngClass",n.eq3(14,epe,o.availableDragOver)),n.R7$(),n.Y8G("ngForOf",o.filteredAvailableItems),n.R7$(2),n.Y8G("disabled",0===o.highlightedAvailableItems.length),n.R7$(2),n.Y8G("disabled",0===o.highlightedSelectedItems.length),n.R7$(2),n.Y8G("disabled",0===o.selectedItems.length),n.R7$(3),n.Y8G("placeholder",o.filterPlaceholder),n.R7$(2),n.Y8G("ngStyle",n.l_i(16,Zde,o.height,o.height))("ngClass",n.eq3(19,epe,o.selectedDragOver)),n.R7$(),n.Y8G("ngForOf",o.filteredSelectedItems))},dependencies:[bi,oo,Jr],styles:[".record-picker[_ngcontent-%COMP%]{overflow-x:hidden;overflow-y:auto;border:1px solid #ddd;border-radius:5px;position:relative;cursor:pointer;min-height:250px}.record-picker[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{margin:0;padding:0 0 1px}.record-picker[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{border-top:thin solid #ddd;border-bottom:1px solid #ddd;display:block;padding:10px;margin-bottom:-1px;font-size:.85em;cursor:pointer;white-space:nowrap;min-height:24px!important}.record-picker[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:hover{background-color:#f5f5f5}.record-picker[_ngcontent-%COMP%]   li.selected[_ngcontent-%COMP%]{background-color:#d9edf7}.record-picker[_ngcontent-%COMP%]   li.selected[_ngcontent-%COMP%]:hover{background-color:#c4e3f3}.record-picker[_ngcontent-%COMP%]   li.disabled[_ngcontent-%COMP%]{opacity:.5;cursor:default;background-color:inherit}.record-picker[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:first-child{border-top-left-radius:5px;border-top-right-radius:5px;border-top:none}.record-picker[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:last-child{border-bottom-left-radius:5px;border-bottom-right-radius:5px;border-bottom:none}"]})}}return t})();var C_t=Math.ceil,w_t=Math.max;const x_t=()=>({width:"50vw"});function E_t(t,r){1&t&&n.EFF(0," Driver - Route Map ")}function D_t(t,r){if(1&t&&(n.j41(0,"th",8),n.EFF(1),n.k0s()),2&t){const e=r.$implicit;n.R7$(),n.SpI(" ",e," ")}}function k_t(t,r){if(1&t&&(n.j41(0,"td",10),n.EFF(1),n.k0s()),2&t){const e=r.$implicit,i=n.XpG().$implicit,o=n.XpG();n.R7$(),n.SpI(" ",o.hasDriver(e,i)?"\u2b24":""," ")}}function I_t(t,r){if(1&t&&(n.j41(0,"tr")(1,"td"),n.EFF(2),n.k0s(),n.DNE(3,k_t,2,1,"td",9),n.k0s()),2&t){const e=r.$implicit,i=n.XpG();n.R7$(2),n.JRh(e),n.R7$(),n.Y8G("ngForOf",i.uniqueRouteNames)}}function A_t(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",11),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.print())}),n.nrm(1,"i",12),n.EFF(2," Print "),n.k0s()}if(2&t){const e=n.XpG();n.Y8G("disabled",e.printingMap)}}let M_t=(()=>{class t{constructor(){this.isVisible=!1,this.routesMapData={},this.onClose=new n.bkB,this.printingMap=!1,this.uniqueRouteNames=[],this.uniqueDriverNames=[],this.driverNameColumnWidth=65,this.routeNameColumnWidth=40,this.routesPerPage=7,this.cellPadding=4}ngOnInit(){const e=[];Object.values(this.routesMapData).forEach(i=>e.push(...i)),this.uniqueDriverNames=[...new Set(e)],this.uniqueRouteNames=Object.keys(this.routesMapData)}ngOnChanges(e){if(e.routesMapData){const i=[];Object.values(this.routesMapData).forEach(o=>i.push(...o)),this.uniqueDriverNames=[...new Set(i)],this.uniqueRouteNames=Object.keys(this.routesMapData)}}hasDriver(e,i){return this.routesMapData[e]?.includes(i)??!1}onShow(){}print(){var e=this;return(0,lr.A)(function*(){e.printingMap=!0;const i=new gW.jsPDF({putOnlyUsedFonts:!0,orientation:"landscape"});i.text("Driver - Route Map",14,15);const o=function T_t(t,r,e){r=(e?(0,cW.A)(t,r,e):void 0===r)?1:w_t(Jde(r),0);var i=null==t?0:t.length;if(!i||r<1)return[];for(var o=0,s=0,a=Array(C_t(i/r));o<i;)a[s++]=Xde(t,o,o+=r);return a}(e.uniqueRouteNames,e.routesPerPage);o.forEach((s,a)=>{const l=e.createChunkedHeaders(s),c=e.createDataForChunk(s);kre()(i,{head:[l.map(d=>d.name)],body:c.map(d=>Object.values(d)),startY:30,theme:"striped",styles:{overflow:"linebreak",cellPadding:e.cellPadding,fontSize:10,halign:"center",valign:"middle"},columnStyles:{0:{cellWidth:"auto",halign:"left"},...s.reduce((d,f,v)=>({...d,[v+1]:{cellWidth:"auto"}}),{})},didParseCell:d=>{0===d.row.index&&(d.cell.styles.halign=0===d.column.index?"left":"center")}}),a<o.length-1&&i.addPage()}),yield i.save("Driver - Route Map.pdf",{returnPromise:!0}),e.printingMap=!1})()}createChunkedHeaders(e){return[{name:"Driver Email",align:"left",padding:this.cellPadding,prompt:"",width:this.driverNameColumnWidth},...e.map(i=>({name:i,align:"center",padding:this.cellPadding,prompt:"",width:this.routeNameColumnWidth}))]}createDataForChunk(e){return e&&0!==e.length?this.uniqueDriverNames.map(i=>{let o={"Driver Email":i};return e.forEach(s=>{const a=this.hasDriver(s,i);o={...o,[s]:a?"o":"    "}}),o}):[]}createHeaders(){return[{name:"Driver Email",align:"left",padding:this.cellPadding,prompt:"",width:this.driverNameColumnWidth},...this.uniqueRouteNames.map(e=>({name:e,align:"center",padding:this.cellPadding,prompt:"",width:this.routeNameColumnWidth}))]}createData(){return this.uniqueDriverNames.map(e=>{let i={"Driver Email":e};return this.uniqueRouteNames.forEach(o=>{i={...i,[o]:this.hasDriver(o,e)?"o":"    "}}),i})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["view-print-route-mapping"]],inputs:{isVisible:"isVisible",routesMapData:"routesMapData"},outputs:{onClose:"onClose"},standalone:!1,features:[n.OA$],decls:13,vars:9,consts:[["driverRouteMap",""],["header","Schedule",3,"visibleChange","onHide","onShow","visible","modal","draggable","resizable"],["pTemplate","header"],[1,"table-responsive"],["id","driverRouteMap",1,"table","table-striped"],["class","tw-text-center",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],["pTemplate","footer"],[1,"tw-text-center"],["class","text-success tw-text-center",4,"ngFor","ngForOf"],[1,"text-success","tw-text-center"],[1,"btn","btn-primary",3,"click","disabled"],[1,"fa","fa-print"]],template:function(i,o){if(1&i){const s=n.RV6();n.j41(0,"p-dialog",1),n.mxI("visibleChange",function(l){return n.eBV(s),n.DH7(o.isVisible,l)||(o.isVisible=l),n.Njj(l)}),n.bIt("onHide",function(){return n.eBV(s),n.Njj(o.onClose.emit())})("onShow",function(){return n.eBV(s),n.Njj(o.onShow())}),n.DNE(1,E_t,1,0,"ng-template",2),n.j41(2,"div",3)(3,"table",4,0)(5,"thead")(6,"tr")(7,"th"),n.EFF(8,"Driver Email:"),n.k0s(),n.DNE(9,D_t,2,1,"th",5),n.k0s()(),n.j41(10,"tbody"),n.DNE(11,I_t,4,2,"tr",6),n.k0s()()(),n.DNE(12,A_t,3,1,"ng-template",7),n.k0s()}2&i&&(n.Aen(n.lJ4(8,x_t)),n.R50("visible",o.isVisible),n.Y8G("modal",!0)("draggable",!1)("resizable",!1),n.R7$(9),n.Y8G("ngForOf",o.uniqueRouteNames),n.R7$(2),n.Y8G("ngForOf",o.uniqueDriverNames))},dependencies:[oo,hs,gf],encapsulation:2})}}return t})();const npe=()=>({width:"60vw",height:"80vh"}),ipe=t=>({"disabled-button":t});function R_t(t,r){1&t&&n.nrm(0,"loading",16)}function O_t(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",19),n.bIt("click",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.onCreateRouteClick())}),n.EFF(1," Create a Route "),n.k0s()}}function F_t(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",19),n.bIt("click",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.onPrintClick())}),n.nrm(1,"i",20),n.EFF(2," Print to PDF "),n.k0s()}}function P_t(t,r){if(1&t&&(n.j41(0,"div",17),n.DNE(1,O_t,2,0,"button",18)(2,F_t,3,0,"button",18),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngIf",e.isAuthorizedUser),n.R7$(),n.Y8G("ngIf",e.isAuthorizedUser)}}function L_t(t,r){if(1&t&&n.nrm(0,"grid",21),2&t){const e=n.XpG();n.Y8G("getDataAsync",e.onGetDataAsync.bind(e))("gridOptions",e.gridOptions)("onInit",e.onGridInit.bind(e))("rowHeight",80)("hideRowCount",!0)}}function N_t(t,r){1&t&&n.EFF(0," Create a Route ")}function G_t(t,r){if(1&t&&(n.j41(0,"div",22),n.EFF(1),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.SpI(" ",e.newRouteNameError," ")}}function B_t(t,r){1&t&&(n.j41(0,"div",23),n.EFF(1,"Loading stops..."),n.k0s())}function V_t(t,r){if(1&t){const e=n.RV6();n.j41(0,"div")(1,"label",8),n.EFF(2,"Donor Locations"),n.k0s(),n.j41(3,"dual-listbox",24),n.mxI("selectedItemsChange",function(o){n.eBV(e);const s=n.XpG();return n.DH7(s.selectedDonorLocationItems,o)||(s.selectedDonorLocationItems=o),n.Njj(o)}),n.bIt("selectedItemsChange",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onListBoxChanged())}),n.k0s()()}if(2&t){const e=n.XpG();n.R7$(3),n.Y8G("availableItems",e.getFilteredAvailableDonorLocationItems()),n.R50("selectedItems",e.selectedDonorLocationItems),n.Y8G("filterPlaceholder",e.donorFilterPlaceholder)}}function j_t(t,r){if(1&t){const e=n.RV6();n.j41(0,"div")(1,"label",8),n.EFF(2,"Agencies"),n.k0s(),n.j41(3,"dual-listbox",24),n.mxI("selectedItemsChange",function(o){n.eBV(e);const s=n.XpG();return n.DH7(s.selectedAgencyItems,o)||(s.selectedAgencyItems=o),n.Njj(o)}),n.bIt("selectedItemsChange",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onListBoxChanged())}),n.k0s()()}if(2&t){const e=n.XpG();n.R7$(3),n.Y8G("availableItems",e.getFilteredAvailableAgencyItems()),n.R50("selectedItems",e.selectedAgencyItems),n.Y8G("filterPlaceholder",e.agencyFilterPlaceholder)}}function H_t(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",25)(1,"button",26),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.createRoute())}),n.EFF(2," Save "),n.k0s()()}if(2&t){const e=n.XpG();n.R7$(),n.Y8G("ngClass",n.eq3(2,ipe,e.isSaving||e.isSaveButtonDisabled))("disabled",e.isSaving||e.isSaveButtonDisabled)}}function U_t(t,r){1&t&&n.EFF(0," Edit Route ")}function $_t(t,r){if(1&t&&(n.j41(0,"div",22),n.EFF(1),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.SpI(" ",e.editRouteNameError," ")}}function Y_t(t,r){if(1&t){const e=n.RV6();n.j41(0,"div")(1,"label",8),n.EFF(2," Route Name "),n.j41(3,"span",9),n.EFF(4,"*"),n.k0s()(),n.j41(5,"input",10,1),n.mxI("ngModelChange",function(o){n.eBV(e);const s=n.XpG();return n.DH7(s.selectedRoute.Name,o)||(s.selectedRoute.Name=o),n.Njj(o)}),n.bIt("input",function(){n.eBV(e);const o=n.sdS(6),s=n.XpG();return n.Njj(s.onEditInputChange(o.value))}),n.k0s(),n.DNE(7,$_t,2,1,"div",11),n.k0s()}if(2&t){const e=n.XpG();n.R7$(5),n.R50("ngModel",e.selectedRoute.Name),n.R7$(2),n.Y8G("ngIf",e.editRouteNameError)}}function W_t(t,r){1&t&&(n.j41(0,"div",23),n.EFF(1,"Loading stops..."),n.k0s())}function z_t(t,r){if(1&t){const e=n.RV6();n.j41(0,"div")(1,"label",8),n.EFF(2,"Donor Locations"),n.k0s(),n.j41(3,"dual-listbox",24),n.mxI("selectedItemsChange",function(o){n.eBV(e);const s=n.XpG();return n.DH7(s.selectedDonorLocationItems,o)||(s.selectedDonorLocationItems=o),n.Njj(o)}),n.bIt("selectedItemsChange",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onListBoxChanged())}),n.k0s()()}if(2&t){const e=n.XpG();n.R7$(3),n.Y8G("availableItems",e.getFilteredAvailableDonorLocationItems()),n.R50("selectedItems",e.selectedDonorLocationItems),n.Y8G("filterPlaceholder",e.donorFilterPlaceholder)}}function q_t(t,r){if(1&t){const e=n.RV6();n.j41(0,"div")(1,"label",8),n.EFF(2,"Agencies"),n.k0s(),n.j41(3,"dual-listbox",24),n.mxI("selectedItemsChange",function(o){n.eBV(e);const s=n.XpG();return n.DH7(s.selectedAgencyItems,o)||(s.selectedAgencyItems=o),n.Njj(o)}),n.bIt("selectedItemsChange",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onListBoxChanged())}),n.k0s()()}if(2&t){const e=n.XpG();n.R7$(3),n.Y8G("availableItems",e.getFilteredAvailableAgencyItems()),n.R50("selectedItems",e.selectedAgencyItems),n.Y8G("filterPlaceholder",e.agencyFilterPlaceholder)}}function X_t(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",25)(1,"button",26),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.saveEditedRoute())}),n.EFF(2," Save "),n.k0s()()}if(2&t){const e=n.XpG();n.R7$(),n.Y8G("ngClass",n.eq3(2,ipe,e.isSaving||e.isEditSaveButtonDisabled))("disabled",e.isSaving||e.isEditSaveButtonDisabled)}}let K_t=(()=>{class t{constructor(e,i,o){this.routesService=e,this.claimsService=i,this.toasterService=o,this.isAdmin=this.claimsService.isUserInRole(Uq),this.isFoodbankUser=this.claimsService.isUserInRole("foodbankuser"),this.isAuthorizedUser=this.isAdmin||this.isFoodbankUser,this.initialLoadComplete=!1,this.loading=!1,this.routes=[],this.drivers=[],this.totalData=[],this.currentData=[],this.routesMapData={},this.donorLocations=[],this.agencies=[],this.availableDonorLocationItems=[],this.selectedDonorLocationItems=[],this.availableAgencyItems=[],this.selectedAgencyItems=[],this.donorFilterPlaceholder="Filter by donor #, name or address",this.agencyFilterPlaceholder="Filter by agency #, name or address",this.viewPrintModalVisible=!1,this.createRouteModalVisible=!1,this.newRouteName="",this.newRouteNameError=null,this.isSaving=!1,this.isEditModalOpen=!1,this.selectedRoute=null,this.editRouteNameError=null,this.isSaveButtonDisabled=!0,this.isEditSaveButtonDisabled=!0,this.gridOptions={rowBuffer:50,suppressRowTransform:!0,columnDefs:this.buildColumnDefinitions(),defaultColDef:{sortable:!1,suppressMenu:!0},getRowNodeId:s=>s.id,frameworkComponents:{routeDetailRendererComponent:d_t,driverAssignmentRendererComponent:g_t}},this.gridApi=null}ngOnInit(){var e=this;return(0,lr.A)(function*(){yield e.loadData(),e.updateCurrentData()})()}onGridInit(e){this.gridApi=e}loadDonorLocations(){var e=this;return(0,lr.A)(function*(){try{const i=yield e.routesService.getDonorLocations();e.donorLocations=i,e.availableDonorLocationItems=Ph(i.map(o=>e.mapToDualListboxItem(o)),["title"])}catch(i){console.error("Error loading donor locations:",i),e.toasterService.displayErrorToast("Error","There was a problem loading donor locations")}})()}loadAgencies(){var e=this;return(0,lr.A)(function*(){try{const i=yield e.routesService.getAgencies();e.agencies=i,e.availableAgencyItems=Ph(i.map(o=>e.mapToDualListboxItem(o)),["title"])}catch(i){console.error("Error loading agencies:",i),e.toasterService.displayErrorToast("Error","There was a problem loading agencies")}})()}getFilteredAndMappedItems(e,i){const o=new Set(i.map(s=>s.id));return e.filter(s=>!o.has(s.ID)).map(s=>this.mapToDualListboxItem(s))}mapToDualListboxItem(e){return"DonorID"in e?{id:e.ID,title:e.DonorName,subtitle:`${e.AddressLine1}, ${e.City}, ${e.Province} ${e.PostalCode}`,label:e.Code}:{id:e.ID,title:e.Name,subtitle:`${e.AddressLine1}, ${e.City}, ${e.Province} ${e.PostalCode}`,label:e.Code}}onCreateRouteClick(){var e=this;return(0,lr.A)(function*(){e.loading=!0;try{yield Promise.all([e.loadDonorLocations(),e.loadAgencies()]),e.selectedDonorLocationItems=[],e.selectedAgencyItems=[]}catch(i){console.error("Error fetching donor locations or agencies:",i),e.toasterService.displayErrorToast("Error","There was a problem loading donor locations or agencies")}finally{setTimeout(()=>{e.loading=!1,e.createRouteModalVisible=!0,e.isSaveButtonDisabled=!0},0)}})()}openModal(){this.createRouteModalVisible=!0}closeModal(){this.createRouteModalVisible=!1,this.newRouteName="",this.selectedDonorLocationItems=[],this.selectedAgencyItems=[]}mapRouteStops(){return[...this.selectedDonorLocationItems.map(o=>{const s=this.donorLocations.find(a=>a.ID===o.id);return s?{EntityID:s.EntityID}:(console.error(`Donor location not found for item ID: ${o.id}`),null)}).filter(o=>null!==o),...this.selectedAgencyItems.map(o=>{const s=this.agencies.find(a=>a.ID===o.id);return s?{EntityID:s.EntityID}:(console.error(`Agency not found for item ID: ${o.id}`),null)}).filter(o=>null!==o)]}createRoute(){var e=this;return(0,lr.A)(function*(){e.newRouteNameError=null,e.validateRouteName(e.newRouteName),e.newRouteName=e.newRouteName.trim(),e.isSaving=!0;const i=e.mapRouteStops(),o={Name:e.newRouteName,RouteStops:i};try{const s=yield e.routesService.createRoute(o),l={id:e.routesService.generateId(),routeId:s.ID,route:s,isNewRow:!0,isFirstRow:!0,rowSpan:1};e.addData(l),e.gridOptions.api?.applyTransaction({add:[l],addIndex:e.currentData.length-1}),e.gridOptions.api?.ensureIndexVisible(e.currentData.length-1),e.closeModal()}catch(s){console.error("Error creating route:",s),e.toasterService.displayErrorToast("Error","There was a problem creating a route")}finally{e.isSaving=!1}})()}loadData(){var e=this;return(0,lr.A)(function*(){const i=e.routesService.getRoutes(),o=e.routesService.getAvailableDrivers(),s=yield Promise.all([i,o]);e.routes=s[0],e.drivers=s[1],e.initialLoadComplete=!0,e.routes.forEach(a=>{const l=a.RouteDrivers.map(c=>{const d=e.drivers.find(f=>f.ID===c.DriverUserID);return d?{id:e.routesService.generateId(),route:a,driver:d,driverId:d.ID,routeId:a.ID,rowSpan:1,isFirstRow:!1,isNewRow:!1}:null}).filter(c=>null!==c);l.length>0?(l[0]&&(l[0].rowSpan=l.length,l[0].isFirstRow=!0),e.totalData.push(...l)):e.totalData.push({id:e.routesService.generateId(),route:a,driver:void 0,driverId:void 0,routeId:a.ID,rowSpan:1,isFirstRow:!0,isNewRow:!1})}),e.rebuildCurrentData()})()}buildColumnDefinitions(){return[{headerName:"Route",minWidth:100,width:200,cellRenderer:"routeDetailRendererComponent",cellRendererParams:{isAuthorizedUser:this.isAuthorizedUser,onEditRoute:this.onEditRouteClick.bind(this),onDeleteRoute:this.onDeleteRouteClick.bind(this)},rowSpan:e=>e.data.rowSpan,cellClass:["ag-cell-span","stretch-cell"]},{headerName:"Driver(s)",minWidth:200,width:200,cellRenderer:"driverAssignmentRendererComponent",cellRendererParams:{isAuthorizedUser:this.isAuthorizedUser,onDriverSelected:(e,i)=>{const o=this.gridOptions.api?.getRowNode(i.id);o&&this.addDriverToRoute(e,o)},onDriverRemoved:(e,i)=>{const o=this.gridOptions.api?.getRowNode(i.id);o&&this.removeDriverFromRoute(e,o)},getAvailableDrivers:this.getAvailableDrivers.bind(this)},cellClass:["stretch-cell"]}]}rebuildCurrentData(){var e=this;return(0,lr.A)(function*(){e.currentData=e.totalData.filter(o=>void 0!==o.route),e.currentData=Ph(e.currentData,["route.Name","driver.Name"]);const i=zx(e.currentData,o=>o.routeId);Wx(i,e.setRowPropertiesForRouteData.bind(e)),e.gridOptions.api&&e.gridOptions.api.setRowData(e.currentData)})()}addData(e){this.currentData.push(e),this.totalData.push(e)}removeData(e){this.currentData=this.currentData.filter(i=>i.id!==e.id),this.totalData=this.totalData.filter(i=>i.id!==e.id)}updateData(e){const i=this.currentData.find(s=>s.id===e.id);i&&(i.route=e.route,i.routeId=e.routeId,i.driver=e.driver,i.driverId=e.driverId,i.isFirstRow=e.isFirstRow,i.rowSpan=e.rowSpan);const o=this.totalData.find(s=>s.id===e.id);o&&(o.route=e.route,o.routeId=e.routeId,o.driver=e.driver,o.driverId=e.driverId,o.isFirstRow=e.isFirstRow,o.rowSpan=e.rowSpan)}setRowPropertiesForRouteData(e,i,o){const s=Ph(e,["driver.Name"])[0];s.isFirstRow=!0,s.rowSpan=e.length,1!==e.length||e[0].driverId?o[i].some(a=>a.isNewRow)||(s.rowSpan++,this.addData({id:this.routesService.generateId(),route:e[0].route,routeId:e[0].routeId,rowSpan:1,isNewRow:!0,isFirstRow:!1})):(s.isNewRow=!0,s.rowSpan=1)}onGetDataAsync(){var e=this;return(0,lr.A)(function*(){return e.resetData(),yield e.rebuildCurrentData(),{data:e.currentData,page:1,total:1,error:null}})()}onListBoxChanged(){let e=!1;e=this.isEditModalOpen&&this.selectedRoute?null===this.validateRouteName(this.selectedRoute.Name):null===this.validateRouteName(this.newRouteName),e&&(this.isSaveButtonDisabled=!1,this.isEditSaveButtonDisabled=!1)}resetData(){this.currentData=[],this.totalData=this.totalData.map(e=>(e.isFirstRow=!1,e.rowSpan=1,e))}getAvailableDrivers(e){const i=this.currentData.filter(s=>s.routeId===e.routeId&&!!s.driverId).map(s=>s.driverId);let o=[];return o=i.length?this.drivers.filter(s=>!i.includes(s.ID)):this.drivers,Ph(o,["Name"])}updateCurrentData(){this.currentData=this.routes.map(e=>{const i=e.RouteDrivers.map((s,a)=>({id:this.routesService.generateId(),routeId:e.ID,route:e,rowSpan:1,isNewRow:!1,isFirstRow:0===a}));if(0===i.length)return[{id:this.routesService.generateId(),routeId:e.ID,route:e,rowSpan:1,isNewRow:!0,isFirstRow:!0}];const o=this.routesService.generateId();return i.push({id:o,routeId:e.ID,route:e,rowSpan:1,isNewRow:!0,isFirstRow:!1}),i}).reduce((e,i)=>e.concat(i),[]),this.gridOptions.api&&this.gridOptions.api.setRowData(this.currentData)}addDriverToRoute(e,i){var o=this;return(0,lr.A)(function*(){const s=i.data;try{const a=yield o.routesService.assignRoutesDriver(s.route,e);if(!a)throw new Error("Failed to update the route with the new driver.");if(s.route.RouteDrivers||(s.route.RouteDrivers=[]),s.route.RouteDrivers=a.RouteDrivers,!i.data.isFirstRow){const w=o.currentData.find(x=>x.routeId===s.routeId&&!0===x.isFirstRow);if(w){w.rowSpan++,w.isNewRow=!1,o.gridOptions.api?.applyTransaction({update:[w]});const x=o.gridOptions.api?.getRowNode(w.id);o.gridOptions.api?.redrawRows({rowNodes:[x]})}}const l={...s,driver:e,driverId:e.ID,isNewRow:!1,isFirstRow:i.data.isFirstRow,rowSpan:i.data.isFirstRow?i.data.rowSpan+1:1},c=o.currentData.findIndex(w=>w.id===s.id);if(-1===c)throw new Error("Failed to find the row in currentData.");o.currentData[c]=l;const d=o.totalData.findIndex(w=>w.id===s.id);if(-1===d)throw new Error("Failed to find the row in totalData.");if(o.totalData[d]=l,o.gridOptions.api?.applyTransaction({update:[l]}),i.setData(l),!o.currentData.find(w=>w.routeId===s.routeId&&!0===w.isNewRow)){const w={id:o.routesService.generateId(),route:s.route,routeId:s.routeId,isNewRow:!0,isFirstRow:!1,rowSpan:1};o.addData(w),o.gridOptions.api?.applyTransaction({add:[w],addIndex:i.rowIndex+1})}const v=o.gridOptions.api?.getRowNode(l.id);o.gridOptions.api?.redrawRows({rowNodes:[i,v]})}catch(a){console.error("Error updating driver:",a),o.toasterService.displayErrorToast("Error","There was a problem updating the driver")}})()}removeDriverFromRoute(e,i){var o=this;return(0,lr.A)(function*(){const s=i.data;try{let a=null;if(o.gridOptions.api?.forEachNodeAfterFilterAndSort(w=>{w.rowIndex===i.rowIndex+1&&(a=w)}),!(yield o.routesService.removeRoutesDriver(s.route,e)))throw new Error("Failed to update the route after removing the driver.");if(s.route.RouteDrivers=s.route.RouteDrivers.filter(w=>w.DriverUserID!==e.ID),!i.data.isFirstRow){const w=o.currentData.find(x=>x.routeId===s.routeId&&!0===x.isFirstRow);if(w){w.rowSpan--,o.gridOptions.api?.applyTransaction({update:[w]});const x=o.gridOptions.api?.getRowNode(w.id);o.gridOptions.api?.redrawRows({rowNodes:[x]})}}const c=i.data.rowSpan,d={...s,driver:null,driverId:null,isNewRow:!1,isFirstRow:i.data.isFirstRow,rowSpan:i.data.isFirstRow?i.data.rowSpan-1:1},f=o.currentData.findIndex(w=>w.id===s.id);if(-1===f)throw new Error("Failed to find the row in currentData.");o.currentData[f]=d;const v=o.totalData.findIndex(w=>w.id===s.id);if(-1===v)throw new Error("Failed to find the row in totalData.");if(o.totalData[v]=d,o.currentData=o.currentData.filter(w=>w.id!==s.id),o.totalData=o.totalData.filter(w=>w.id!==s.id),o.gridOptions.api?.applyTransaction({remove:[i.data]}),i.data.isFirstRow&&a){const x={...a.data,isFirstRow:!0,rowSpan:c-1};o.gridOptions.api?.applyTransaction({update:[x]});const I=o.gridOptions.api?.getRowNode(a.id);o.gridOptions.api?.redrawRows({rowNodes:[I]})}}catch(a){console.error("Error removing driver:",a),o.toasterService.displayErrorToast("Error","There was a problem removing the driver")}})()}onEditRouteClick(e){this.onEditRoute(e)}onDeleteRouteClick(e){this.onDeleteRoute(e)}closeEditModal(){this.isEditModalOpen=!1,this.selectedRoute=null}onPrintClick(){this.routesMapData=this.currentData.reduce((e,i)=>{const{route:o,driver:s}=i,{Name:a}=o,{UserName:l}=s||{};return a in e||(e={...e,[a]:[]}),l&&(e[a]=[...new Set([...e[a],l])]),e},{}),this.viewPrintModalVisible=!0}onEditRoute(e){var i=this;return(0,lr.A)(function*(){i.loading=!0;try{yield Promise.all([i.loadDonorLocations(),i.loadAgencies()]),i.selectedRoute={...e.route},i.selectedDonorLocationItems=i.selectedRoute.RouteStops.map(o=>{const s=i.donorLocations.find(a=>a.EntityID===o.EntityID);return s?i.mapToDualListboxItem(s):null}).filter(o=>null!==o),i.selectedAgencyItems=i.selectedRoute.RouteStops.map(o=>{const s=i.agencies.find(a=>a.EntityID===o.EntityID);return s?i.mapToDualListboxItem(s):null}).filter(o=>null!==o),i.availableDonorLocationItems=i.getFilteredAndMappedItems(i.donorLocations,i.selectedDonorLocationItems),i.availableAgencyItems=i.getFilteredAndMappedItems(i.agencies,i.selectedAgencyItems)}catch(o){console.error("Error fetching donor locations or agencies:",o)}finally{setTimeout(()=>{i.loading=!1,i.isEditModalOpen=!0,i.isEditSaveButtonDisabled=!0},0)}})()}mapRouteStopsToSelectedItems(e){this.selectedDonorLocationItems=e.map(i=>{const o=this.donorLocations.find(s=>s.ID===i.EntityID);return o?this.mapToDualListboxItem(o):null}).filter(i=>null!==i),this.selectedAgencyItems=e.map(i=>{const o=this.agencies.find(s=>s.ID===i.EntityID);return o?this.mapToDualListboxItem(o):null}).filter(i=>null!==i)}saveEditedRoute(){var e=this;return(0,lr.A)(function*(){if(e.selectedRoute)try{e.isSaving=!0,e.editRouteNameError=null,e.validateRouteName(e.selectedRoute.Name),e.selectedRoute.RouteStops=e.mapRouteStops(),yield e.routesService.updateRoute(e.selectedRoute);const i=e.currentData.findIndex(o=>o.routeId===e.selectedRoute?.ID);-1!==i&&(e.currentData[i].route=e.selectedRoute,e.gridOptions.api?.applyTransaction({update:[e.currentData[i]]}),e.gridOptions.api?.ensureIndexVisible(i)),e.availableDonorLocationItems=e.getFilteredAndMappedItems(e.donorLocations,e.selectedDonorLocationItems),e.availableAgencyItems=e.getFilteredAndMappedItems(e.agencies,e.selectedAgencyItems),e.closeEditModal()}catch(i){console.error("Error saving the edited route:",i),e.toasterService.displayErrorToast("Error","There was a problem saving the route")}finally{e.isSaving=!1}})()}onDeleteRoute(e){var i=this;return(0,lr.A)(function*(){i.loading=!0;try{yield i.routesService.deleteRoute(e.routeId),i.routes=i.routes.filter(s=>s.ID!==e.routeId);const o=i.currentData.filter(s=>s.routeId===e.routeId);o.length>0&&(o.forEach(s=>i.removeData(s)),i.gridOptions.api?.applyTransaction({remove:o}))}catch(o){console.error("Error deleting route:",o),i.toasterService.displayErrorToast("Error","There was a problem deleting the route")}finally{i.loading=!1}})()}isDonorLocation(e){return e&&void 0!==e.DonorID}isAgency(e){return e&&void 0!==e.Code&&void 0!==e.Name}getFilteredAvailableDonorLocationItems(){return Ph(this.availableDonorLocationItems.filter(e=>!this.selectedDonorLocationItems.some(i=>i.id===e.id)),["title"])}getFilteredAvailableAgencyItems(){return Ph(this.availableAgencyItems.filter(e=>!this.selectedAgencyItems.some(i=>i.id===e.id)),["title"])}updateAvailableDonorLocationItems(){this.availableDonorLocationItems=this.donorLocations.map(e=>this.mapToDualListboxItem(e)).filter(e=>!this.selectedDonorLocationItems.some(i=>i.id===e.id))}updateAvailableAgencyItems(){this.availableAgencyItems=this.agencies.map(e=>this.mapToDualListboxItem(e)).filter(e=>!this.selectedAgencyItems.some(i=>i.id===e.id))}validateRouteName(e){return""===e?"Route name is required.":/^\s*$/.test(e)?"Route name cannot be only spaces.":/[a-zA-Z0-9]/.test(e)?e.length>255?"Route name cannot exceed 255 characters.":null:"Route name must contain at least one alphanumeric character."}onInputChange(e){this.newRouteNameError=null;const i=this.validateRouteName(e);i?(this.newRouteNameError=i,this.isSaveButtonDisabled=!0):this.isSaveButtonDisabled=!1}onEditInputChange(e){this.editRouteNameError=null;const i=this.validateRouteName(e);i?(this.editRouteNameError=i,this.isEditSaveButtonDisabled=!0):this.isEditSaveButtonDisabled=!1}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(v_t),n.rXU(Zb),n.rXU(tc))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-routes"]],viewQuery:function(i,o){if(1&i&&n.GBs(yg,5),2&i){let s;n.mGM(s=n.lsd())&&(o.grid=s.first)}},standalone:!1,decls:27,vars:30,consts:[["routeNameInput",""],["editRouteNameInput",""],["message","Loading Route Information...",4,"ngIf"],["style","display: flex; justify-content: flex-end; gap: 8px",4,"ngIf"],["height","100%","class","tw-mt-4",3,"getDataAsync","gridOptions","onInit","rowHeight","hideRowCount",4,"ngIf"],["appendTo","body",3,"visibleChange","onHide","visible","modal","closeOnEscape","closable","focusTrap"],["pTemplate","header"],[2,"margin-top","2rem","padding-left","1.5rem","padding-right","1.5rem","display","flex","flex-direction","column","gap","1.5rem"],[2,"font-size","1.25rem","display","block","margin-bottom","0.5rem"],[1,"text-danger"],["type","text","name","routeName","placeholder","Enter Route Name","required","",2,"padding","0.5rem","border","1px solid #ccc","border-radius","0.25rem","width","33%",3,"ngModelChange","input","ngModel"],["class","text-danger","style","color: red",4,"ngIf"],["class","loading-indicator",4,"ngIf"],[4,"ngIf"],["pTemplate","footer"],[3,"onClose","isVisible","routesMapData"],["message","Loading Route Information..."],[2,"display","flex","justify-content","flex-end","gap","8px"],["class","btn btn-primary",3,"click",4,"ngIf"],[1,"btn","btn-primary",3,"click"],[1,"fa","fa-print"],["height","100%",1,"tw-mt-4",3,"getDataAsync","gridOptions","onInit","rowHeight","hideRowCount"],[1,"text-danger",2,"color","red"],[1,"loading-indicator"],[2,"height","400px",3,"selectedItemsChange","availableItems","selectedItems","filterPlaceholder"],[1,"tw-w-full","tw-border-t","tw-pt-4","tw-flex","tw-justify-end"],[1,"btn","btn-primary","tw-py-2","tw-px-4",3,"click","ngClass","disabled"]],template:function(i,o){if(1&i){const s=n.RV6();n.DNE(0,R_t,1,0,"loading",2)(1,P_t,3,2,"div",3)(2,L_t,1,5,"grid",4),n.j41(3,"p-dialog",5),n.mxI("visibleChange",function(l){return n.eBV(s),n.DH7(o.createRouteModalVisible,l)||(o.createRouteModalVisible=l),n.Njj(l)}),n.bIt("onHide",function(){return n.eBV(s),n.Njj(o.closeModal())}),n.DNE(4,N_t,1,0,"ng-template",6),n.j41(5,"div",7)(6,"div")(7,"label",8),n.EFF(8," Route Name "),n.j41(9,"span",9),n.EFF(10,"*"),n.k0s()(),n.j41(11,"input",10,0),n.mxI("ngModelChange",function(l){return n.eBV(s),n.DH7(o.newRouteName,l)||(o.newRouteName=l),n.Njj(l)}),n.bIt("input",function(){n.eBV(s);const l=n.sdS(12);return n.Njj(o.onInputChange(l.value))}),n.k0s(),n.DNE(13,G_t,2,1,"div",11),n.k0s(),n.DNE(14,B_t,2,0,"div",12)(15,V_t,4,3,"div",13)(16,j_t,4,3,"div",13),n.k0s(),n.DNE(17,H_t,3,4,"ng-template",14),n.k0s(),n.j41(18,"p-dialog",5),n.mxI("visibleChange",function(l){return n.eBV(s),n.DH7(o.isEditModalOpen,l)||(o.isEditModalOpen=l),n.Njj(l)}),n.bIt("onHide",function(){return n.eBV(s),n.Njj(o.closeEditModal())}),n.DNE(19,U_t,1,0,"ng-template",6),n.j41(20,"div",7),n.DNE(21,Y_t,8,2,"div",13)(22,W_t,2,0,"div",12)(23,z_t,4,3,"div",13)(24,q_t,4,3,"div",13),n.k0s(),n.DNE(25,X_t,3,4,"ng-template",14),n.k0s(),n.j41(26,"view-print-route-mapping",15),n.bIt("onClose",function(){return n.eBV(s),n.Njj(o.viewPrintModalVisible=!1)}),n.k0s()}2&i&&(n.Y8G("ngIf",!o.initialLoadComplete),n.R7$(),n.Y8G("ngIf",o.initialLoadComplete),n.R7$(),n.Y8G("ngIf",o.initialLoadComplete),n.R7$(),n.Aen(n.lJ4(28,npe)),n.R50("visible",o.createRouteModalVisible),n.Y8G("modal",!0)("closeOnEscape",!0)("closable",!0)("focusTrap",!0),n.R7$(8),n.R50("ngModel",o.newRouteName),n.R7$(2),n.Y8G("ngIf",o.newRouteNameError),n.R7$(),n.Y8G("ngIf",o.loading),n.R7$(),n.Y8G("ngIf",!o.loading),n.R7$(),n.Y8G("ngIf",!o.loading),n.R7$(2),n.Aen(n.lJ4(29,npe)),n.R50("visible",o.isEditModalOpen),n.Y8G("modal",!0)("closeOnEscape",!0)("closable",!0)("focusTrap",!0),n.R7$(3),n.Y8G("ngIf",o.selectedRoute),n.R7$(),n.Y8G("ngIf",o.loading),n.R7$(),n.Y8G("ngIf",!o.loading),n.R7$(),n.Y8G("ngIf",!o.loading),n.R7$(2),n.Y8G("isVisible",o.viewPrintModalVisible)("routesMapData",o.routesMapData))},dependencies:[bi,fi,hs,Cc,_o,Sv,ko,yg,Yy,b_t,gf,M_t],styles:[".large-modal .p-dialog{width:80vw!important;height:80vh!important}  .large-modal .p-dialog-content{display:flex;flex-direction:column;height:100%}  .large-modal .p-dialog-content>div{flex:1;overflow:auto}.disabled-button[_ngcontent-%COMP%]{background-color:#ccc!important;cursor:not-allowed}"]})}}return t})();var ao=function(t){return t[t.FilterText=0]="FilterText",t[t.TaxonomyCategory=1]="TaxonomyCategory",t[t.TaxonomyHierarchyCategory=2]="TaxonomyHierarchyCategory",t[t.OppositeTaxonomyHierarchyCategory=3]="OppositeTaxonomyHierarchyCategory",t[t.Supplier=4]="Supplier",t[t.Distance=5]="Distance",t[t.FOBCostPerPound=6]="FOBCostPerPound",t[t.SourceProgramCode=7]="SourceProgramCode",t[t.HERCategories=8]="HERCategories",t[t.IsImported=9]="IsImported",t[t.IsOrderableAsVehicle=10]="IsOrderableAsVehicle",t[t.IsFeatured=11]="IsFeatured",t[t.HideProduceCombos=12]="HideProduceCombos",t[t.IsCombinableWithCart=13]="IsCombinableWithCart",t}(ao||{});class Nm{constructor(r,e){this.id=crypto.randomUUID(),this.type=r,this.value=e}}class Q_t extends Nm{constructor(r=""){super(ao.FilterText,r)}}class rpe extends Nm{constructor(r=""){super(ao.TaxonomyCategory,r)}}class J_t extends Nm{constructor(r=""){super(ao.TaxonomyHierarchyCategory,r)}}class Z_t extends Nm{constructor(r=""){super(ao.OppositeTaxonomyHierarchyCategory,r)}}class ope extends Nm{constructor(r){super(ao.Supplier,r)}}class e0t extends Nm{constructor(r){super(ao.Distance,r)}}class t0t extends Nm{constructor(r){super(ao.FOBCostPerPound,r)}}class mX extends Nm{constructor(r){super(ao.SourceProgramCode,r)}}class n0t extends Nm{constructor(r){super(ao.HERCategories,r)}}class i0t extends Nm{constructor(r){super(ao.IsImported,r)}}class r0t extends Nm{constructor(r){super(ao.IsFeatured,r)}}class o0t extends Nm{constructor(r){super(ao.HideProduceCombos,r)}}class spe extends Nm{constructor(r){super(ao.IsCombinableWithCart,r)}}let jh=(()=>{class t{constructor(){this.claimsService=(0,n.WQX)(Zb),this.environmentService=(0,n.WQX)(s0),this.http=(0,n.WQX)(Da),this.userIsFANO=(0,n.vPA)(!1),this.browseEntities=(0,n.vPA)([]),this.deliveryLocations=(0,n.vPA)([]),this.browsingAs=(0,n.vPA)(null),this.deliveryLocation=(0,n.vPA)(null),this.isFANO=(0,n.EWP)(()=>this.userIsFANO()),this.availableBrowseEntities=(0,n.EWP)(()=>this.browseEntities()),this.availableDeliveryLocations=(0,n.EWP)(()=>this.deliveryLocations()),this.browsingAsEntity=(0,n.EWP)(()=>this.browsingAs()),this.deliveryLocationEntity=(0,n.EWP)(()=>this.deliveryLocation()),this.apiUrl=this.environmentService.getApiUrl(),this.loadBrowsingEntityData()}getOrderingEligibleEntities(){return this.http.get(`${this.apiUrl}/marketplace/entities/buyers`)}getCurrentEntity(){return this.http.get(`${this.apiUrl}/marketplace/entities/current`)}getEntityLocations(e){return this.http.get(`${this.apiUrl}/marketplace/entities/${e}/locations`)}setBrowingEntity(e){this.browsingAs.set(e),e&&e.internalDetail?this.getEntityLocations(e.internalDetail.internalEntityId).subscribe({next:i=>{this.deliveryLocations.set(i.locations),this.deliveryLocation.set(i.locations.length?i.locations[0]:null)}}):this.deliveryLocations.set([])}setDeliveryLocation(e){this.deliveryLocation.set(e)}loadBrowsingEntityData(e=!1){(!this.browsingAsEntity()||e)&&(this.userIsFANO.set(this.claimsService.isUserInRole("fano")),this.isFANO()?this.getOrderingEligibleEntities().subscribe({next:i=>{this.browseEntities.set(i),i.length>0&&(this.browsingAs.set(i[0]),i[0].internalDetail?.internalEntityId&&this.getEntityLocations(i[0].internalDetail.internalEntityId).subscribe({next:o=>{this.deliveryLocations.set(o.locations),this.deliveryLocation.set(o.locations.length?o.locations[0]:null)}}))}}):this.getCurrentEntity().subscribe({next:i=>{i&&(this.browseEntities.set([i.entity]),this.browsingAs.set(i.entity),this.deliveryLocations.set(i.locations),i.locations.length>0&&this.deliveryLocation.set(i.locations[0]))}}))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const s0t={NONE:{displayName:"No Combinations",description:"Never allow this offer to be combined in a single order"},SAME_LOCATION_ENTITY:{displayName:"Combine Within Supplier Location",description:"Combinable with any offer from the same supplier and originating from the same warehouse"},SAME_SOURCE_ENTITY:{displayName:"Combine Within Supplier",description:"Combinable with other offers from the same supplier, regardless of the warehouse"},ANY:{displayName:"Unrestricted / Combine with Anything",description:"Combinable with any offer, regardless of the supplier or pickup location"}},cP={GREEN:{entry:{vocabularyId:"FANOHERCategory",itemId:"GREEN"},displayDetails:{displayName:"Often"}},YELLOW:{entry:{vocabularyId:"FANOHERCategory",itemId:"YELLOW"},displayDetails:{displayName:"Sometimes"}},RED:{entry:{vocabularyId:"FANOHERCategory",itemId:"RED"},displayDetails:{displayName:"Rarely"}},NA:{entry:{vocabularyId:"FANOHERCategory",itemId:"NA"},displayDetails:{displayName:"Not Applicable"}}},uP={DRY:{entry:{vocabularyId:"FANOStorageType",itemId:"DRY"},displayDetails:{displayName:"Dry"}},REF:{entry:{vocabularyId:"FANOStorageType",itemId:"REF"},displayDetails:{displayName:"Refrigerated"}},FRZ:{entry:{vocabularyId:"FANOStorageType",itemId:"FRZ"},displayDetails:{displayName:"Frozen"}}},ape={INCH:{displayName:"in."},FOOT:{displayName:"ft."},MM:{displayName:"mm"},METER:{displayName:"m"}},gX={FOB:{displayName:"FOB",description:"Standard pricing where the total of all costs here are the FOB price, and delivery is considered separately."},DELIVERED:{displayName:"Delivered",description:"Pricing includes delivery. Selecting this option requires supplier delivery."}},a0t={WEIGHT:{displayName:"Weight",description:"Pricing is by weight."},QUANTITY:{displayName:"Unit",description:"Pricing is specified by unit/quantity."}},lpe={OUNCE:{displayName:"oz.",description:"Ounces"},POUND:{displayName:"lbs",description:"Pounds"},GRAM:{displayName:"g",description:"Grams"},KILOGRAM:{displayName:"kg",description:"Kilograms"},TON:{displayName:"ton",description:"Tons"}},l0t={ADMIN_FEE:{displayName:"Admin. Fee",description:"Administrative and other fees"},PRODUCT_COST:{displayName:"Product Cost",description:"A charge for the actual product"},PPO:{displayName:"PPO",description:"A Pick and Pack Out (PPO) charge"},SEAL:{displayName:"Truck Seal",description:"A truck seal charge"},TEMP_RECORDER:{displayName:"Temp. Recorder",description:"A temperature recorder fee"},TRANSPORTATION_FEE:{displayName:"Transportation Fee",description:"A transportation cost or fee"},OTHER:{displayName:"Misc. Fee",description:"A miscellaneous cost or fee"}},vX="FANONetSuitePackingTypes",_X="FANONetSuiteUnitTypes",d6="FANOPalletPackingTypes",p6="FANOVehiclePackingTypes",yX="FANOProducePackingTypes",bX="FANOPieceTypes",cpe={PIECE:{displayName:"Piece"}},h6={BAG:{displayName:"Bag"},BIN:{displayName:"Bin"},BOX:{displayName:"Box"},BULKBOX:{displayName:"Bulk box"},CAN:{displayName:"Can"},CARTON:{displayName:"Carton"},CASE:{displayName:"Case"},CRATE:{displayName:"Crate"},DISPLAY:{displayName:"Display"},DRUM:{displayName:"Drum"},EACH:{displayName:"Each"},GA:{displayName:"GA"},LB:{displayName:"LB"},PAIL:{displayName:"Pail"},POUND:{displayName:"Pound"},SHIPPER:{displayName:"Shipper"},TOTES:{displayName:"Totes"},TUB:{displayName:"Tub"}},f6={FOURPACK:{displayName:"4 Pack"},ASEPTICBOX:{displayName:"Aseptic Box"},BAG:{displayName:"Bag"},BIN:{displayName:"Bin"},BOTTLE:{displayName:"Bottle"},BOWL:{displayName:"Bowl"},BOX:{displayName:"Box"},BULKBOX:{displayName:"Bulk Box"},BULKTOTE:{displayName:"Bulk Tote"},CAN:{displayName:"Can"},CANISTER:{displayName:"Canister"},CARTON:{displayName:"Carton"},CHUB:{displayName:"Chub"},CONTAINER:{displayName:"Container"},CUP:{displayName:"Cup"},EZOCAN:{displayName:"EZO Can"},GABLETOP:{displayName:"Gable Top"},GLASSJAR:{displayName:"Glass Jar"},JAR:{displayName:"Jar"},METAL:{displayName:"Metal"},MWBOWL:{displayName:"MW Bowl"},MWTRAY:{displayName:"MW Tray"},OTHER:{displayName:"Other"},PACK:{displayName:"Pack"},PACKAGE:{displayName:"Package"},PACKET:{displayName:"Packet"},PAPER:{displayName:"Paper"},PLASTIC:{displayName:"Plastic"},PLASTICBOTTLE:{displayName:"Plastic Bottle"},PLASTICJAR:{displayName:"Plastic Jar"},POUCH:{displayName:"Pouch"},ROLL:{displayName:"Roll"},SLEEVE:{displayName:"Sleeve"},STICK:{displayName:"Stick"},TIN:{displayName:"Tin"},TOTE:{displayName:"Tote"},TRAYS:{displayName:"Trays"},TUB:{displayName:"Tub"},TUBE:{displayName:"Tube"},UNKNOWN:{displayName:"Unknown"}},m6={PALLET:{displayName:"Pallet"}},upe={TRAILER:{displayName:"Truck/Trailer"}},dpe={Carton:{displayName:"Carton"},BulkBox:{displayName:"Bulk Box"},Totes:{displayName:"Totes"},Crate:{displayName:"Crate"},Box:{displayName:"Box"},Bag:{displayName:"Bag"},Bin:{displayName:"Bin"}},ppe={CAR:{displayName:"Car"},VAN:{displayName:"Van"},SMALL_TRUCK:{displayName:"Small Truck"},BOX_TRUCK:{displayName:"Box Truck"},TRAILER:{displayName:"Truck"}},c0t=[{value:!0,label:"Imported"},{value:!1,label:"Domestic"},{value:null,label:"(Unknown)"}],CX={1:{displayName:"US Extra Fancy"},2:{displayName:"US Fancy"},3:{displayName:"US #1"},4:{displayName:"US #2"},5:{displayName:"US #3"},6:{displayName:"US Utility"},7:{displayName:"US Commercial"},8:{displayName:"Unclassified"},9:{displayName:"Processor"}};function u0t(t,r,e,i){switch(t){case 0:return r&e^~r&i;case 1:case 3:return r^e^i;case 2:return r&e^r&i^e&i}}function wX(t,r){return t<<r|t>>>32-r}const p0t=function d0t(t){const r=[1518500249,1859775393,2400959708,3395469782],e=[1732584193,4023233417,2562383102,271733878,3285377520],i=new Uint8Array(t.length+1);i.set(t),i[t.length]=128,t=i;const s=Math.ceil((t.length/4+2)/16),a=new Array(s);for(let l=0;l<s;++l){const c=new Uint32Array(16);for(let d=0;d<16;++d)c[d]=t[64*l+4*d]<<24|t[64*l+4*d+1]<<16|t[64*l+4*d+2]<<8|t[64*l+4*d+3];a[l]=c}a[s-1][14]=8*(t.length-1)/Math.pow(2,32),a[s-1][14]=Math.floor(a[s-1][14]),a[s-1][15]=8*(t.length-1)&4294967295;for(let l=0;l<s;++l){const c=new Uint32Array(80);for(let I=0;I<16;++I)c[I]=a[l][I];for(let I=16;I<80;++I)c[I]=wX(c[I-3]^c[I-8]^c[I-14]^c[I-16],1);let d=e[0],f=e[1],v=e[2],w=e[3],x=e[4];for(let I=0;I<80;++I){const M=Math.floor(I/20),F=wX(d,5)+u0t(M,f,v,w)+x+r[M]+c[I]>>>0;x=w,w=v,v=wX(f,30)>>>0,f=d,d=F}e[0]=e[0]+d>>>0,e[1]=e[1]+f>>>0,e[2]=e[2]+v>>>0,e[3]=e[3]+w>>>0,e[4]=e[4]+x>>>0}return Uint8Array.of(e[0]>>24,e[0]>>16,e[0]>>8,e[0],e[1]>>24,e[1]>>16,e[1]>>8,e[1],e[2]>>24,e[2]>>16,e[2]>>8,e[2],e[3]>>24,e[3]>>16,e[3]>>8,e[3],e[4]>>24,e[4]>>16,e[4]>>8,e[4])},h0t=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i,hpe=function g0t(t){if(!function f0t(t){return"string"==typeof t&&h0t.test(t)}(t))throw TypeError("Invalid UUID");let r;return Uint8Array.of((r=parseInt(t.slice(0,8),16))>>>24,r>>>16&255,r>>>8&255,255&r,(r=parseInt(t.slice(9,13),16))>>>8,255&r,(r=parseInt(t.slice(14,18),16))>>>8,255&r,(r=parseInt(t.slice(19,23),16))>>>8,255&r,(r=parseInt(t.slice(24,36),16))/1099511627776&255,r/4294967296&255,r>>>24&255,r>>>16&255,r>>>8&255,255&r)},Hh=[];for(let t=0;t<256;++t)Hh.push((t+256).toString(16).slice(1));function b0t(t,r,e,i,o,s){const a="string"==typeof e?function v0t(t){t=unescape(encodeURIComponent(t));const r=new Uint8Array(t.length);for(let e=0;e<t.length;++e)r[e]=t.charCodeAt(e);return r}(e):e,l="string"==typeof i?hpe(i):i;if("string"==typeof i&&(i=hpe(i)),16!==i?.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let c=new Uint8Array(16+a.length);if(c.set(l),c.set(a,l.length),c=r(c),c[6]=15&c[6]|t,c[8]=63&c[8]|128,o){s=s||0;for(let d=0;d<16;++d)o[s+d]=c[d];return o}return function fpe(t,r=0){return(Hh[t[r+0]]+Hh[t[r+1]]+Hh[t[r+2]]+Hh[t[r+3]]+"-"+Hh[t[r+4]]+Hh[t[r+5]]+"-"+Hh[t[r+6]]+Hh[t[r+7]]+"-"+Hh[t[r+8]]+Hh[t[r+9]]+"-"+Hh[t[r+10]]+Hh[t[r+11]]+Hh[t[r+12]]+Hh[t[r+13]]+Hh[t[r+14]]+Hh[t[r+15]]).toLowerCase()}(c)}function TX(t,r,e,i){return b0t(80,p0t,t,r,e,i)}TX.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",TX.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8";const k2=TX;let SX=(()=>{class t{constructor(e,i){this.http=e,this.environmentService=i,this.produceUUIDNamespace="9dba83c3-fb57-4f36-8382-4e932dae267f",this.apiUrl=this.environmentService.getApiUrl()}findTaxonomyForProduceItem(e,i){let o;return e&&e.length>0&&(o=e.find(s=>s.key===`PRODUCE:VEGETABLE:${i.toUpperCase().replaceAll(" ","_").replaceAll(",","")}`||s.key===`PRODUCE:FRUIT:${i.toUpperCase().replaceAll(" ","_").replaceAll(",","")}`)),o}getProduceActiveOffers(e){return this.http.get("/api/MarketplaceProduceActiveOfferItemsGrid?ApplyEstimatedDeliveryCost=true&IsFeatured=false&page=1&rows=1000&searchFilter=&sidx=LastAvailableDate&sord=asc"+(e&&e>0?"&FoodBankEntityIdFilter="+e:"")).pipe((0,Os.T)(i=>i.rows))}getFoodBank(e){return this.http.get(`/api/foodbank/${e}`)}mapProduceListingsToTimelineEntries(e,i,o,s){const a=[],l={};for(const c of e.rows){let d=c.Offer.ID;d in l?l[d].push(c):l[d]=[c]}for(const c in l)l[c][0].Offer?.IsCombo&&0===Math.round(l[c][0].Offer?.TrucksAvailable??0)||a.push(this.produceItemGroupToTimelineEntry(l[c],i,o,s));return a}produceItemGroupToTimelineEntry(e,i,o,s){const a=k2(e[0].Offer.ID.toString(),this.produceUUIDNamespace),l=a+Math.floor(new Date(e[0].Created).getTime()),c=this.produceOfferItemsToOffer(e,a,l,i),d=e.reduce((x,I)=>x+I.FOBCostPerTruck,0),f=e.reduce((x,I)=>x+I.WeightPerTruck,0);let w=[];return s&&o&&(w=[{locationEntity:s,estimatedDistanceInMiles:e[0].Distance,estimatedFreightCostPerTruck:e[0].Offer.EstimatedDeliveryCost*f-d}]),{entityId:e[0].Offer.Donor.EntityID,startTimeUTC:Math.floor(new Date(e[0].Created).getTime()),endTimeUTC:Math.floor(new Date(e[0].Offer.LastAvailableDate).getTime()),offerId:a,offerCode:"P"+a,offerVersionId:l,invalidatedTimeUTC:null,created:new Date(e[0].Created),modified:new Date(e[0].Modified),matcherRunId:crypto.randomUUID(),displayName:c.title,deliveryEstimates:w,offerSnapshot:c,itemSummaries:[this.produceOfferToItemSummaries(e,c)],transformedOfferKey:null,userOfferRestrictions:null}}produceOfferItemsToOffer(e,i,o,s){const a={internalDetail:{internalEntityId:e[0].Offer.Donor.EntityID,internalEntityTypeCode:"Donor"},name:e[0].Offer.Donor.Name},l={internalDetail:{internalEntityId:e[0].DonorLocation.EntityID,internalEntityTypeCode:"DonorLocation",internalAddressId:e[0].DonorLocation.AddressID,internalObjectId:e[0].DonorLocation.ID},name:e[0].DonorLocation.WarehouseName,addressLine1:e[0].DonorLocation.Address.AddressLine1,addressLine2:e[0].DonorLocation.Address.AddressLine2,city:e[0].DonorLocation.Address.City,province:e[0].DonorLocation.Address.Province,countryCode:e[0].DonorLocation.Address.CountryCode,latitude:e[0].DonorLocation.Address.Latitude,longitude:e[0].DonorLocation.Address.Longitude},c=e.length>1;let d="";const f=[],v=new Set;let M,w=[],x="Comments on Offer:",I=!1;for(const nt of e){w.push(`${nt.NumberOfPalletsInEachComboLoadTruck} ${nt.ProduceItemType.ItemType.toLocaleLowerCase()} pallets from ${nt.DonorLocation.WarehouseName} at ${nt.DonorLocation.Address.AddressLine1}, ${nt.DonorLocation.Address.City}, ${nt.DonorLocation.Address.Province}`),v.add(nt.DonorLocationID);let rt=this.findTaxonomyForProduceItem(s,nt.ProduceItemType.ItemType);if(rt)if(f.push(rt),""===d)d=rt.key;else{const lt=d.split(":"),bt=rt.key.split(":"),Wt=[];for(let Zt=0;Zt<Math.min(lt.length,bt.length);Zt++)lt[Zt]===bt[Zt]&&Wt.push(lt[Zt]);d=0===Wt.length?"PRODUCE":Wt.join(":")}nt.Notes&&""!=nt.Notes&&(I=!0,x+=`\n${rt?rt.displayName+" item: ":""}${nt.Notes}`)}""!=x&&(x="\n\n"+x),I||(x=""),""!=d&&(M=s.find(nt=>nt.key===d));const F=[{vocabularyId:"FANONetSuite",itemId:c?"":e[0].ProduceItemType.Code}];M&&F.push({vocabularyId:"FANOTaxonomyCategory",itemId:M.key});const re=c?`${f.map(nt=>nt.displayName).join(" / ")} (Produce Combo Load)`:M?.displayName??e[0].OfferItemWithVariety.toLocaleLowerCase(),pe=e.map(nt=>this.produceOfferItemToPalletContents(nt,this.findTaxonomyForProduceItem(s,nt.ProduceItemType.ItemType))),we=e.map(nt=>nt.Attachment).find(nt=>nt?.IsImage)?.StoragePath??M?.defaultImageUri??null;var je=pe;if(c){const nt=this.getTruckCosts(e);je=[{contentItemId:k2(`TRUCK-LEVEL-${e[0].Offer.ID}`,this.produceUUIDNamespace),title:re,description:"",packingType:{itemId:"Truck",unitLevel:"VEHICLE",vocabularyId:p6},weight:{weightUOM:"POUND",value:e[0].Offer.TotalTruckWeight??e[0].WeightPerTruck,isEstimated:!1},quantity:Math.round(e[0].Offer.TrucksAvailable),isQuantityEstimated:!1,itemTypes:F,qualityCodes:[],productDateCodes:[],dimensions:[],segmentableQuantityDetail:{minimumUnitsPerOrder:1,isUnlimited:!1},nutritionalCategoryDetails:{vocabularyId:"FANOHERCategory",itemId:"GREEN"},images:we?[{imageUri:we}]:[],itemCosts:nt,contents:pe}]}let tt=c?`This is a mixed produce offer, where each trucks contains pallets of: ${f.map(nt=>nt.displayName).join("; ").toLowerCase()}.`:`Produce offer of ${re}`;return tt=(tt.trim()+"\n\n"+x.trim()).trim(),v.size>1&&(tt+="\n\nNote: This offer is split between multiple locations. For each truck, pickup:\n - "+w.join("\n - ")),{user:{internalUserId:e[0].Offer.User.ID,userEmail:e[0].Offer.User.UserName,userName:e[0].Offer.User.UserName,representedEntity:a},receiptToEntity:a,sourceEntity:a,locationEntity:l,offerCode:"PR-"+e[0].Offer.ID,offerId:i,offerVersionId:o,contentStructure:"PRODUCT",internalProgramCode:"PRODUCE",designationCode:this.getDesignationCode(e),reasonCode:"UNKNOWN",title:re,description:tt,leadTimeInDays:e[0].Offer.NumberOfDaysLeadTime,contents:je,transportationContext:[],attachments:[],pickupRule:"NONE",creationTimeUTC:Math.floor(new Date(e[0].Created).getTime()),matchPreferences:{blockAllMatching:!1,constraints:[],combinationRule:c||!e[0].Offer.IsCombinableWithOtherOffers?"NONE":"SAME_SOURCE_ENTITY"},costs:[],expirationTimeUTC:Math.floor(Math.floor(new Date(e[0].Offer.ExpirationDate).getTime())),shippingDeadlineTimeUTC:e[0].Offer.LastAvailableDate?Math.floor(Math.floor(new Date(e[0].Offer.LastAvailableDate).getTime())):null,shippingFirstAvailableTimeUTC:e[0].Offer.FirstAvailableDate?Math.floor(Math.floor(new Date(e[0].Offer.FirstAvailableDate).getTime())):null,accessWindows:[]}}getDesignationCode(e){const i=Array.from(new Set(e.map(o=>o.ProduceTransactionType?.Code).filter(o=>void 0!==o)));return i.length>1?"MIXED":"ITEM-FOR-SALE"===i[0]?"PURCHASE":"DONATION"}produceOfferItemToPalletContents(e,i){const o=i?.displayName??e.OfferItemWithVariety.toLocaleLowerCase(),s=[{vocabularyId:"FANONetSuite",itemId:e.ProduceItemType.Code}];i&&s.push({vocabularyId:"FANOTaxonomyCategory",itemId:i.key}),e.Grade&&s.push({vocabularyId:"FANOProduceGrade",itemId:e.Grade});const a=i&&i.defaultImageUri?[{imageUri:i.defaultImageUri}]:[];let l=e.NumberOfPallets??e.NumberOfPalletsInEachComboLoadTruck;return e.Offer?.IsCombo||(l=Math.round(l*(e.TotalPoundsAvailable/e.TotalPoundsOffered))),{contentItemId:k2(`PALLET-LEVEL-${e.ID}`,this.produceUUIDNamespace),title:o,description:e.Variety??"",packingType:{itemId:"Pallet",unitLevel:"PALLET",vocabularyId:d6},weight:{weightUOM:"POUND",value:e.NumberOfDistributionUnitsPerShippingUnit*e.NumberOfShippingUnitsPerPallet*e.Size,isEstimated:!1},vehiclePackingEstimates:[{vehicleClass:"TRAILER",estimatedFillQuantity:e.PalletsPerFTL}],quantity:l,isQuantityEstimated:!1,isImported:e.IsImported,itemTypes:s,qualityCodes:[],productDateCodes:[],nutritionalCategoryDetails:{vocabularyId:"FANOHERCategory",itemId:"GREEN"},dimensions:[],segmentableQuantityDetail:e.Offer.IsCombo?null:{isUnlimited:!1,minimumUnitsPerOrder:1,totalUnitsAvailable:e.NumberOfPallets},images:a,itemCosts:this.getPalletCosts(e),contents:[{contentItemId:k2(`CASE-LEVEL-${e.ID}`,this.produceUUIDNamespace),title:o,description:e.Variety??"",packingType:{itemId:e.ShippingUnitType,unitLevel:"CASE",vocabularyId:yX},weight:{weightUOM:"POUND",value:e.NumberOfDistributionUnitsPerShippingUnit*e.Size,isEstimated:!1},vehiclePackingEstimates:[{vehicleClass:"TRAILER",estimatedFillQuantity:e.PalletsPerFTL*e.NumberOfShippingUnitsPerPallet}],quantity:e.NumberOfShippingUnitsPerPallet,isQuantityEstimated:!1,isImported:e.IsImported,itemTypes:s,qualityCodes:[],productDateCodes:[],nutritionalCategoryDetails:{vocabularyId:"FANOHERCategory",itemId:"GREEN"},dimensions:[],images:a,itemCosts:[],contents:[{contentItemId:k2(`UNIT-LEVEL-${e.ID}`,this.produceUUIDNamespace),title:o,description:e.Variety??"",packingType:{itemId:e.DistributionUnitType,unitLevel:"EACH",vocabularyId:yX},weight:{weightUOM:"POUND",value:e.Size,isEstimated:!1},vehiclePackingEstimates:[{vehicleClass:"TRAILER",estimatedFillQuantity:e.PalletsPerFTL*e.NumberOfDistributionUnitsPerShippingUnit*e.NumberOfShippingUnitsPerPallet}],quantity:e.NumberOfDistributionUnitsPerShippingUnit,isQuantityEstimated:!1,isImported:e.IsImported,itemTypes:s,qualityCodes:[],productDateCodes:[],nutritionalCategoryDetails:{vocabularyId:"FANOHERCategory",itemId:"GREEN"},dimensions:[],images:a,itemCosts:[],contents:[]}]}]}}getTruckCosts(e){const i=[];let o=0;for(const a of e)a.CostPerPound>0&&(o+=a.CostPerPound*(a.NumberOfPallets??a.NumberOfPalletsInEachComboLoadTruck)*a.NumberOfDistributionUnitsPerShippingUnit*a.NumberOfShippingUnitsPerPallet*a.Size);o>0&&i.push({applyTo:"QUANTITY",cost:o,costType:"PRODUCT_COST",currencyCode:"USD",modifiers:[]});const s=e[0];return(s.Offer.AdminFeePerTruck??0)>0&&i.push({applyTo:"QUANTITY",cost:s.Offer.AdminFeePerTruck,costType:"ADMIN_FEE",currencyCode:"USD",modifiers:[]}),s.Offer.SealsPricePerTruck&&s.Offer.SealsPricePerTruck>0&&i.push({applyTo:"QUANTITY",currencyCode:"USD",costType:"SEAL",cost:s.Offer.SealsPricePerTruck,modifiers:[]}),s.Offer.TemperatureRecorderPricePerTruck&&s.Offer.TemperatureRecorderPricePerTruck>0&&i.push({applyTo:"QUANTITY",currencyCode:"USD",costType:"TEMP_RECORDER",cost:s.Offer.TemperatureRecorderPricePerTruck,modifiers:[]}),s.Offer.MiscellaneousPricePerTruck&&s.Offer.MiscellaneousPricePerTruck>0&&i.push({applyTo:"QUANTITY",currencyCode:"USD",costType:"ADMIN_FEE",cost:s.Offer.MiscellaneousPricePerTruck,modifiers:[]}),i}getPalletCosts(e){const i=[];let o=0;return e.CostPerPound>0&&(o+=e.CostPerPound*e.NumberOfDistributionUnitsPerShippingUnit*e.NumberOfShippingUnitsPerPallet*e.Size),o>0&&i.push({applyTo:"QUANTITY",cost:o,costType:"PRODUCT_COST",currencyCode:"USD",modifiers:[]}),(e.Offer.AdminFeePerTruck??0)>0&&i.push({applyTo:"QUANTITY",cost:e.Offer.AdminFeePerTruck/e.PalletsPerFTL,costType:"ADMIN_FEE",currencyCode:"USD",modifiers:[]}),e.Offer.SealsPricePerTruck&&e.Offer.SealsPricePerTruck>0&&i.push({applyTo:"QUANTITY",currencyCode:"USD",costType:"SEAL",cost:e.Offer.SealsPricePerTruck/e.PalletsPerFTL,modifiers:[]}),e.Offer.TemperatureRecorderPricePerTruck&&e.Offer.TemperatureRecorderPricePerTruck>0&&i.push({applyTo:"QUANTITY",currencyCode:"USD",costType:"TEMP_RECORDER",cost:e.Offer.TemperatureRecorderPricePerTruck/e.PalletsPerFTL,modifiers:[]}),e.Offer.MiscellaneousPricePerTruck&&e.Offer.MiscellaneousPricePerTruck>0&&i.push({applyTo:"QUANTITY",currencyCode:"USD",costType:"OTHER",cost:e.Offer.MiscellaneousPricePerTruck/e.PalletsPerFTL,modifiers:[]}),i}getWeightObject(e,i=!1){return{weightUOM:"POUND",value:e,isEstimated:i}}produceOfferToItemSummaries(e,i){const s=[],a=i.contents[0],l=new Set(a.images.map(nt=>nt.imageUri));for(const nt of a.contents){const rt=nt.itemTypes.find(lt=>"FANOTaxonomyCategory"===lt.vocabularyId);if(rt&&!(rt.itemId in s)&&s.push(rt.itemId),nt.images)for(const lt of nt.images)l.add(lt.imageUri)}const c=[...l].map(nt=>({imageUri:nt})),d=a.itemTypes.find(nt=>"FANOTaxonomyCategory"===nt.vocabularyId);if("VEHICLE"===a.packingType.unitLevel){if(!e[0].Offer.IsCombo)throw new Error("Unexpected truck-level data in non-combo offer");return this.getSummaryForComboOffer(e[0].Offer.ID,a,d,s,c,i,e)}var v,w,f=null;f=a,v=a.contents[0],w=a.contents[0].contents[0];var x=f?.vehiclePackingEstimates?.find(nt=>"TRAILER"===nt.vehicleClass);if(!x)throw new Error("No packing estimate found for converted produce item");const I=x?.estimatedFillQuantity,M=f?.weight??null,pe=f.itemCosts.reduce((nt,rt)=>nt+rt.cost,0);let we="",je=!1;return e.forEach(nt=>{nt.Notes&&(we+=`Comments on ${nt.ProduceItemType.ItemType.toLowerCase()}: ${nt.Notes}\n\n`,je=!0)}),je||(we=""),{itemSummaryId:k2(`ITEMSUMMARY-${e[0].Offer.ID}}`,this.produceUUIDNamespace),fanoTaxonomyCategoryId:d?.itemId??"PRODUCE",containsFANOTaxonomyCategoryIds:s,containsItemTypes:s,itemName:f.title,itemDescription:f.description,images:c,vehicleLevelOfferContentId:null,vehicleLevelCost:[],vehicleLevelProductWeightPerUnit:null,vehicleLevelProductWeightInPounds:null,vehicleType:"Truck",vehicleLevelNutritionalCategoryDetails:{vocabularyId:"FANOHERCategory",itemId:"GREEN"},vehicleLevelIsImported:!!e.every(nt=>nt.IsImported)||!e.every(nt=>!1===nt.IsImported)&&null,canOrderAtVehicleLevel:!1,minimumVehicleUnitsPerOrder:0,maximumVehicleUnitsPerOrder:null,palletLevelOfferContentId:f.contentItemId,palletLevelCost:[{startTimeUTC:0,endTimeUTC:Number.MAX_SAFE_INTEGER,costPerPound:pe/f.weight.value,costPerUnit:pe,isEstimated:!0,addedCostPerOrder:0}],palletLevelProductWeightPerUnit:M,palletLevelProductWeightInPounds:M.value,palletsPerVehicleUnit:I,palletLevelPackingType:"PALLET",palletLevelNutritionalCategoryDetails:{vocabularyId:"FANOHERCategory",itemId:"GREEN"},palletLevelIsImported:f.isImported,canOrderAtPalletLevel:!0,minimumPalletUnitsPerOrder:1,maximumPalletUnitsPerOrder:f.quantity,caseLevelOfferContentId:crypto.randomUUID(),caseLevelCost:[{startTimeUTC:0,endTimeUTC:Number.MAX_SAFE_INTEGER,costPerPound:pe/f.weight.value,costPerUnit:pe/v.quantity,isEstimated:!1,addedCostPerOrder:0}],caseLevelProductWeightPerUnit:v.weight,caseLevelProductWeightInPounds:v.weight.value,casesPerPalletUnit:e[0].NumberOfShippingUnitsPerPallet,caseLevelPackingType:e[0].ShippingUnitType,caseLevelNutritionalCategoryDetails:{vocabularyId:"FANOHERCategory",itemId:"GREEN"},caseLevelIsImported:v.isImported,canOrderAtCaseLevel:!1,minimumCaseUnitsPerOrder:null,unitLevelOfferContentId:crypto.randomUUID(),unitLevelCost:[{startTimeUTC:0,endTimeUTC:Number.MAX_SAFE_INTEGER,costPerPound:pe/f.weight.value,costPerUnit:pe/v.quantity/w.quantity,isEstimated:!1,addedCostPerOrder:0}],unitLevelProductWeightPerUnit:w.weight,unitLevelProductWeightInPounds:w.weight.value,unitsPerCaseUnit:e[0].NumberOfDistributionUnitsPerShippingUnit,unitLevelPackingType:e[0].DistributionUnitType,unitLevelNutritionalCategoryDetails:{vocabularyId:"FANOHERCategory",itemId:"GREEN"},unitLevelIsImported:w.isImported,canOrderAtUnitLevel:!1,minimumUnitUnitsPerOrder:null,produceOfferDetails:{produceOfferId:e[0].Offer.ID,offerItems:e,isCombo:e[0].Offer.IsCombo,isFeatured:e[0].Offer.IsFeatured,palletsPerFTL:I,notes:we}}}getSummaryForComboOffer(e,i,o,s,a,l,c){const d=i.contents.reduce((pe,we)=>pe+we.quantity,0),f=i.contents.reduce((pe,we)=>pe+we.weight.value,0)/d,v=this.getWeightObject(f,!0),I=i.itemCosts.reduce((pe,we)=>pe+we.cost,0);let F="";for(const pe of i.contents)pe.description&&(F+=`${pe.description} (${pe.title}); `);let re=!!i.contents.every(pe=>pe.isImported)||!i.contents.every(pe=>!1===pe.isImported)&&null;return{itemSummaryId:k2(`ITEMSUMMARY-${e}}`,this.produceUUIDNamespace),fanoTaxonomyCategoryId:o?.itemId??"PRODUCE",containsFANOTaxonomyCategoryIds:s,containsItemTypes:s,itemName:l.title,itemDescription:F,images:a,vehicleLevelOfferContentId:i.contentItemId,vehicleLevelCost:[{startTimeUTC:0,endTimeUTC:Number.MAX_SAFE_INTEGER,costPerPound:I/i.weight.value,costPerUnit:I,isEstimated:!1,addedCostPerOrder:0}],vehicleLevelProductWeightPerUnit:i.weight,vehicleLevelProductWeightInPounds:i.weight.value,vehicleType:"Truck",vehicleLevelNutritionalCategoryDetails:{vocabularyId:"FANOHERCategory",itemId:"GREEN"},vehicleLevelIsImported:re,canOrderAtVehicleLevel:!0,minimumVehicleUnitsPerOrder:1,maximumVehicleUnitsPerOrder:i.quantity,palletLevelOfferContentId:i.contents.length>1?null:i.contents[0].contentItemId,palletLevelCost:[{startTimeUTC:0,endTimeUTC:Number.MAX_SAFE_INTEGER,costPerPound:I/i.weight.value,costPerUnit:I/d,isEstimated:!0,addedCostPerOrder:0}],palletLevelProductWeightPerUnit:v,palletLevelProductWeightInPounds:v.value,palletsPerVehicleUnit:d,palletLevelPackingType:"PALLET",palletLevelNutritionalCategoryDetails:{vocabularyId:"FANOHERCategory",itemId:"GREEN"},palletLevelIsImported:re,canOrderAtPalletLevel:!1,minimumPalletUnitsPerOrder:null,maximumPalletUnitsPerOrder:null,caseLevelOfferContentId:crypto.randomUUID(),caseLevelCost:[],caseLevelProductWeightPerUnit:null,caseLevelProductWeightInPounds:null,casesPerPalletUnit:null,caseLevelPackingType:null,caseLevelNutritionalCategoryDetails:{vocabularyId:"FANOHERCategory",itemId:"GREEN"},caseLevelIsImported:re,canOrderAtCaseLevel:!1,minimumCaseUnitsPerOrder:null,unitLevelOfferContentId:crypto.randomUUID(),unitLevelCost:[],unitLevelProductWeightPerUnit:null,unitLevelProductWeightInPounds:null,unitsPerCaseUnit:null,unitLevelPackingType:null,unitLevelNutritionalCategoryDetails:{vocabularyId:"FANOHERCategory",itemId:"GREEN"},unitLevelIsImported:re,canOrderAtUnitLevel:!1,minimumUnitUnitsPerOrder:null,produceOfferDetails:{produceOfferId:e,offerItems:c,isCombo:!0,isFeatured:c[0].Offer?.IsFeatured??!1,palletsPerFTL:d}}}static{this.\u0275fac=function(i){return new(i||t)(n.KVO(Da),n.KVO(s0))}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Yu=(()=>{class t{constructor(e,i){this.http=e,this.environmentService=i,this.CACHE_STORAGE_KEY_BASE="marketplace_cache",this.CACHE_OFFERS_KEY="available_offers",this.CACHE_OFFER_FLAGS_KEY="offers_flags",this.CACHE_TAXONOMIES_KEY="taxonomies",this.CACHE_TAXONOMIES_TREE_KEY="taxonomies_tree",this.CACHE_EXPIRATION_MS=6e5,this.TAXONOMY_EXPIRATION_MS=2592e6,this.FILTERS_EXPIRATION_MS=2592e6,this.legacyProduceService=(0,n.WQX)(SX),this.entityService=(0,n.WQX)(jh),this.storageKey=(0,n.vPA)(this.CACHE_STORAGE_KEY_BASE),this.apiUrl=this.environmentService.getApiUrl();const o=localStorage.getItem("currentAccount");if(o)try{const s=JSON.parse(o);s.localAccountId&&this.storageKey.set(`${this.CACHE_STORAGE_KEY_BASE}:${s.localAccountId}`)}catch(s){console.error("Error parsing currentAccount from localStorage",s)}}forceRefreshAvailableOffers(){this.getAvailableOffers(!0).subscribe({next:()=>{}})}getAvailableOffers(e=!1,i=!0,o=null,s=null){const a=e;return!o&&this.entityService.browsingAsEntity()&&(o=this.entityService.browsingAsEntity()),o&&this.entityService.browsingAsEntity()&&o.internalDetail?.internalEntityId!=this.entityService.browsingAsEntity()?.internalDetail?.internalEntityId&&(this.entityService.setBrowingEntity(o),e=!0),s||(s=this.entityService.deliveryLocationEntity()),wy({taxonomy:this.getTaxonomy(a),marketplaceOffers:this.getCachedData(this.CACHE_OFFERS_KEY,this.CACHE_EXPIRATION_MS,e,`${this.apiUrl}/marketplace/available-offers${o&&o.internalDetail?.internalEntityId?"?entityId="+o.internalDetail.internalEntityId:""}`),produceOffers:this.getCachedData("AvailableProduceListings",this.CACHE_EXPIRATION_MS,e,"/api/MarketplaceProduceActiveOfferItemsGrid?ApplyEstimatedDeliveryCost=true&IsFeatured=false&page=1&rows=1000&searchFilter=&sidx=LastAvailableDate&sord=asc"+(o&&o.internalDetail?.internalEntityId?"&FoodBankEntityIdFilter="+o.internalDetail.internalEntityId:""))}).pipe((0,Os.T)(({taxonomy:l,marketplaceOffers:c,produceOffers:d})=>[...this.legacyProduceService.mapProduceListingsToTimelineEntries(d,l,o,s),...c]))}getManageOffers(){return this.http.get(`${this.apiUrl}/marketplace/offers/views/manage-offers`)}getMyOffers(){return this.http.get(`${this.apiUrl}/marketplace/offers/views/manage-offers`)}updateOffer(e){return this.http.put(`${this.apiUrl}/marketplace/offers/${e.offerId}`,e)}cancelOffer(e){return this.http.put(`${this.apiUrl}/marketplace/offers/${e.offerId}/cancel`,e)}postOffer(e){return this.http.post(`${this.apiUrl}/marketplace/offers`,e)}getOfferSubmissionEligibleEntities(e){return this.http.get(`${this.apiUrl}/marketplace/offer-submission-entities`,{params:{entityType:e}})}getOfferSubmissionEligibleEntityLocations(e){return this.http.get(`${this.apiUrl}/marketplace/offer-submission-entities/${e}/locations`)}getOfferVersionHistory(e){return this.http.get(`${this.apiUrl}/marketplace/offers/${e}/history`)}getOfferFlags(e,i,o,s,a,l){let c=new Mp;return c=c.append("code",e),o&&(c=c.append("userId",o)),s&&(c=c.append("entityId",s)),a&&(c=c.append("startTimeUtc",a)),l&&(c=c.append("endTimeUtc",l)),this.getCachedData(this.CACHE_OFFER_FLAGS_KEY,this.CACHE_EXPIRATION_MS,!0===i,`${this.apiUrl}/marketplace/offerflags?${c.toString()}`)}featureOffers(e){return this.http.post(`${this.apiUrl}/marketplace/offerflags`,{offerIds:e,options:{code:"FEATURED"}})}removeFeatureOffers(e){return this.http.delete(`${this.apiUrl}/marketplace/offerflags`,{body:{offerIds:e,options:{code:"FEATURED"}}})}refreshOfferListings(e){return this.http.post(`${this.apiUrl}/marketplace/offers/${e}/refreshListings`,{})}getTimelineEntry(e,i=!1){return this.getAvailableOffers(i).pipe((0,Os.T)(o=>o.find(s=>s.offerId===e)))}getTaxonomy(e=!1){return this.getCachedData(this.CACHE_TAXONOMIES_KEY,this.TAXONOMY_EXPIRATION_MS,e,`${this.apiUrl}/marketplace/taxonomy-entries`).pipe((0,Os.T)(i=>i.map(o=>({...o,netSuiteItems:o.netSuiteItems.map(s=>({...s,isDefault:s.itemId===o.defaultNetSuiteItemId})).sort((s,a)=>s.isDefault!==a.isDefault?s.isDefault?-1:1:s.description.localeCompare(a.description,void 0,{sensitivity:"base"}))}))))}getTaxonomyEntry(e,i=!1){return this.getTaxonomy(i).pipe((0,Os.T)(o=>o.find(s=>s.key===e)))}getParentTaxonomyKeys(e){const i=e.split(":"),o=[];for(let s=0;s<i.length;s++)o.push(i.slice(0,s+1).join(":"));return o}getTaxonomyPath(e,i=!1){const o=this.getParentTaxonomyKeys(e);return this.getTaxonomy(i).pipe((0,Os.T)(s=>s.filter(a=>o.includes(a.key)).sort((a,l)=>a.key.length-l.key.length)))}getTaxonomyTree(e=!1){return this.getCachedData(this.CACHE_TAXONOMIES_TREE_KEY,this.TAXONOMY_EXPIRATION_MS,e,`${this.apiUrl}/marketplace/taxonomy-entries-tree`)}getTaxonomyTreeNodes(e,i){let o=[];return i.forEach(s=>{let a=this.getTaxonomyTreeNode(e,s);a&&o.push(a)}),o}getTaxonomyTreeNode(e,i){for(let o=0;o<e.length;o++){let s=e[o];if(s.key===i)return s;if(i.startsWith(s.key)&&s.children.length)return this.getTaxonomyTreeNode(s.children,i)}return null}getCachedData(e,i,o,s){return Pc(caches.open(this.storageKey())).pipe(qd(a=>o?this.clearCacheKey(e).pipe(qd(()=>this.fetchAndCacheData(e,s))):Pc(a.match(e)).pipe(qd(l=>l?Pc(l.json()).pipe(qd(c=>Date.now()-c.timestamp<i?Fs(c.data):this.fetchAndCacheData(e,s))):this.fetchAndCacheData(e,s)))))}fetchAndCacheData(e,i){return this.http.get(i).pipe(qd(o=>Pc(caches.open(this.storageKey())).pipe(qd(s=>{const a=new Response(JSON.stringify({timestamp:Date.now(),data:o}),{headers:{"Content-Type":"application/json"}});return s.put(e,a),Fs(o)}))))}clearCacheKey(e){return Pc(caches.open(this.storageKey())).pipe(qd(i=>Pc(i.delete(e)).pipe((0,Os.T)(()=>{}))))}weightToPounds(e){switch(e.weightUOM){case"OUNCE":return.0625*e.value;case"POUND":return e.value;case"KILOGRAM":return 2.20462*e.value;case"GRAM":return.00220462*e.value;default:throw Error(`Unknown weight type. Cannot convert ${e.weightUOM} to pounds.`)}}getEarliestShipDateUTC(e){return Date.now()+864e5*(e.leadTimeInDays??0)}getContentItemTotalFOBCostPerUnit(e,i=null){return e.itemCosts.reduce((o,s)=>o+this.getContentItemCostPerUnitForEntity(e,s,i),0)}getContentItemCostPerUnitForEntity(e,i,o=null){let s=i.cost;if("WEIGHT"===i.applyTo&&(s=e.weight.value*i.cost),o){const a=i.modifiers.filter(l=>!l.applyToEntities||0===l.applyToEntities.length||l.applyToEntities.some(c=>c.internalDetail?.internalEntityId===o.internalDetail?.internalEntityId));if(a.length>0){const l=Date.now();for(const c of a)c.startTimeUTC&&c.startTimeUTC>l||c.endTimeUTC&&c.endTimeUTC<l||(s*=c.costModification)}}return s}getCurrentItemSummaryCost(e){if(!e)return null;const i=Date.now();return e.find(s=>s.startTimeUTC<=i&&s.endTimeUTC>i)||null}getPricingSummary(e,i){let o=null,s=null,a={pricingModel:e.pricingModel};switch(i){case"VEHICLE":o=this.getCurrentItemSummaryCost(e.vehicleLevelCost),s=1;break;case"PALLET":o=this.getCurrentItemSummaryCost(e.palletLevelCost),s=e.palletsPerVehicleUnit??null;break;case"CASE":o=this.getCurrentItemSummaryCost(e.caseLevelCost),e.palletsPerVehicleUnit&&e.casesPerPalletUnit&&(s=e.palletsPerVehicleUnit*e.casesPerPalletUnit);break;case"EACH":o=this.getCurrentItemSummaryCost(e.unitLevelCost),e.palletsPerVehicleUnit&&e.casesPerPalletUnit&&e.unitsPerCaseUnit&&(s=e.palletsPerVehicleUnit*e.casesPerPalletUnit*e.unitsPerCaseUnit)}return"DELIVERED"===e.pricingModel?a.freightCostPerFTL=0:e.deliveryEstimate&&(a.freightCostPerFTL=e.deliveryEstimate.estimatedFreightCostPerTruck),o&&(a.isEstimated=o.isEstimated,a.fobCostPerUnit=o.costPerUnit,a.fobCostPerPound=o.costPerPound,a.totalAdditionalFeesPerOrder=o.addedCostPerOrder,a.freightCostStatus="NOT_AVAILABLE_AT_UNIT",s&&(a.freightCostStatus="MISSING_ESTIMATE",a.fobCostPerFTL=o.costPerUnit*s,a.freightCostPerFTL&&(a.freightCostStatus="DETERMINED",a.freightCostPerFTLUnit=a.freightCostPerFTL/s,a.freightCostPerFTLPound=e.vehicleLevelProductWeightInPounds?a.freightCostPerFTL/e.vehicleLevelProductWeightInPounds:null,a.dlvdCostPerFTL=a.freightCostPerFTL+a.fobCostPerFTL,a.dlvdCostPerFTLUnit=a.freightCostPerFTLUnit+a.fobCostPerUnit,a.dlvdCostPerFTLPound=a.freightCostPerFTLPound?a.freightCostPerFTLPound+a.fobCostPerPound:null),"DELIVERED"===e.pricingModel&&(a.freightCostStatus="DETERMINED",a.freightCostPerFTL=0,a.freightCostPerFTLUnit=0,a.freightCostPerFTLPound=0,a.dlvdCostPerFTL=a.fobCostPerFTL,a.dlvdCostPerFTLPound=a.fobCostPerPound,a.dlvdCostPerFTLUnit=a.fobCostPerUnit))),a}getSupplierDetails(e){return this.http.get(`${this.apiUrl}/marketplace/supplierDetails?entityId=${e}`)}getPackingTypeDisplayName(e){if(!e||!e?.itemId||!e?.vocabularyId)return e?.itemId??"";switch(e.vocabularyId){case vX:return e.itemId in h6?h6[e.itemId].displayName:e?.itemId??"";case _X:return e.itemId in f6?f6[e.itemId].displayName:e?.itemId??"";case d6:return e.itemId in m6?m6[e.itemId].displayName:e?.itemId??"";case p6:return e.itemId in upe?upe[e.itemId].displayName:e?.itemId??"";case yX:return e.itemId in dpe?dpe[e.itemId].displayName:e?.itemId??"";case bX:return e.itemId in cpe?cpe[e.itemId].displayName:e?.itemId??"";default:return e?.itemId??""}}static{this.\u0275fac=function(i){return new(i||t)(n.KVO(Da),n.KVO(s0))}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var uh=function(t){return t.GroceryBlockOffers="GroceryBlockOffers",t.GroceryCreateMatchPreferences="GroceryCreateMatchPreferences",t.GroceryCreateOffers="GroceryCreateOffers",t.GroceryCreateOrders="GroceryCreateOrders",t.GroceryEditOffers="GroceryEditOffers",t.GroceryEditOfferSupplier="GroceryEditOfferSupplier",t.GroceryFeatureOffers="GroceryFeatureOffers",t.GroceryUnblockOffers="GroceryUnblockOffers",t.GroceryViewOfferAdminInfo="GroceryViewOfferAdminInfo",t.GroceryViewOfferHistory="GroceryViewOfferHistory",t.MarketplaceCreateReceipts="MarketplaceCreateReceipts",t.MarketplaceViewOffers="MarketplaceViewOffers",t.MarketplacePreloadOffers="MarketplacePreloadOffers",t.ProduceCreateOffers="ProduceCreateOffers",t.ProduceCreateOrders="ProduceCreateOrders",t.RealTimeCreateOffers="RealTimeCreateOffers",t.GroceryViewPricing="GroceryViewPricing",t}(uh||{});let qy=(()=>{class t{constructor(){this.status=(0,n.vPA)(null),this.isLoaded=(0,n.EWP)(()=>!!this.status),this.canBlockGroceryOffers=(0,n.EWP)(()=>{const e=this.status();return e?e.Modules.includes(uh.GroceryBlockOffers):null}),this.canUnblockGroceryOffers=(0,n.EWP)(()=>{const e=this.status();return e?e.Modules.includes(uh.GroceryUnblockOffers):null}),this.canViewOfferAdminInfo=(0,n.EWP)(()=>{const e=this.status();return e?e.Modules.includes(uh.GroceryViewOfferAdminInfo):null}),this.canViewOfferHistory=(0,n.EWP)(()=>{const e=this.status();return e?e.Modules.includes(uh.GroceryViewOfferHistory):null}),this.canViewMarketplaceOffers=(0,n.EWP)(()=>{const e=this.status();return e?e.Modules.includes(uh.MarketplaceViewOffers):null}),this.canPreloadMarketplaceOffers=(0,n.EWP)(()=>{const e=this.status();return e?e.Modules.includes(uh.MarketplacePreloadOffers):null}),this.canCreateMarketplaceReceipts=(0,n.EWP)(()=>{const e=this.status();return e?e.Modules.includes(uh.MarketplaceCreateReceipts):null}),this.canEditGroceryOffers=(0,n.EWP)(()=>{const e=this.status();return e?e.Modules.includes(uh.GroceryEditOffers):null}),this.canEditGroceryOfferSupplier=(0,n.EWP)(()=>{const e=this.status();return e?e.Modules.includes(uh.GroceryEditOfferSupplier):null}),this.canCreateGroceryOffers=(0,n.EWP)(()=>{const e=this.status();return e?e.Modules.includes(uh.GroceryCreateOffers):null}),this.canViewGroceryPricing=(0,n.EWP)(()=>{const e=this.status();return e?e.Modules.includes(uh.GroceryViewPricing):null}),this.canCreateGroceryOrders=(0,n.EWP)(()=>{const e=this.status();return e?e.Modules.includes(uh.GroceryCreateOrders):null}),this.canFeatureGroceryOffers=(0,n.EWP)(()=>{const e=this.status();return e?e.Modules.includes(uh.GroceryFeatureOffers):null}),this.canCreateGroceryMatchPreferences=(0,n.EWP)(()=>{const e=this.status();return e?e.Modules.includes(uh.GroceryCreateMatchPreferences):null}),this.canCreateProduceOffers=(0,n.EWP)(()=>{const e=this.status();return e?e.Modules.includes(uh.ProduceCreateOffers):null}),this.canCreateProduceOrders=(0,n.EWP)(()=>{const e=this.status();return e?e.Modules.includes(uh.ProduceCreateOrders):null}),this.canCreateRealTimeOffers=(0,n.EWP)(()=>{const e=this.status();return e?e.Modules.includes(uh.RealTimeCreateOffers):null}),this.isMarketplaceNavigationEnabled=(0,n.EWP)(()=>{const e=this.status();return e?"true"===e.EffectiveConfigurationValues["Marketplace.Navigation.Enabled"]:null}),this.isMarketplaceTruckRoundingEnabled=(0,n.EWP)(()=>{const e=this.status();return e?"true"===e.EffectiveConfigurationValues["Marketplace.TruckRounding.Enabled"]:null})}init(e){e&&e.$on("statusLoaded",(i,o)=>{this.status.set(o)})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),dP=(()=>{class t{constructor(){this.legacySessionDataService=(0,n.WQX)(qy)}canUserTakeAction(e,i){if(null==e||e.userOfferRestrictions?.includes(i))return!1;switch(i){case"ORDER":return!!("GROCERY"===e.programCode&&this.legacySessionDataService.canCreateGroceryOrders()||"PRODUCE"===e.programCode&&this.legacySessionDataService.canCreateProduceOrders());case"VIEW_PRICES":return"GROCERY"!==e.programCode||1==this.legacySessionDataService.canViewGroceryPricing();default:return!1}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),I2=(()=>{class t{convertToPounds(e,i){switch(e){case"POUND":return i;case"GRAM":return.00220462*i;case"KILOGRAM":return 2.20462*i;case"OUNCE":return.0625*i;default:throw Error("Unable to convert to pounds from unknown type")}}findContentItemInOffer(e,i){let o=e.find(s=>s.contentItemId===i);if(o)return o;for(const s of e)if(o=this.findContentItemInOffer(s.contents??[],i),o)return o;return null}tempEstimateOfferProgramCode(e){if(!e)return null;for(const i of e.contents){const o=i.itemTypes.find(s=>"FANOTaxonomyCategory"===s.vocabularyId)?.itemId;return o?o.startsWith("PRODUCE")?"PRODUCE":"GROCERY":null}return null}getStartOfDay(e){let i=e?new Date(e):new Date;return i.setHours(0,0,0,0),"number"==typeof e?i.getTime():i}getEndOfDay(e){let i=e?new Date(e):new Date;return i.setHours(23,59,59,999),"number"==typeof e?i.getTime():i}isItemSummaryCombinableWithItemSummaries(e,i){const s=e.sourceEntity.internalDetail?.internalEntityId,a=e.offerCombinationRule??"NONE",l=[e,...i];if("NONE"===a||0===i.length||!s||i.some(d=>d.sourceEntity.internalDetail?.internalEntityId!=s||d.pricingModel!=e.pricingModel||"NONE"===(d.offerCombinationRule??"NONE")||d.programCode!=e.programCode||d.offerId.toLowerCase()===e.offerId.toLowerCase()))return!1;const c=new Set(l.map(d=>d.locationEntity.internalDetail?.internalEntityId)).size;return!(c>3||l.some(d=>"SAME_LOCATION_ENTITY"===d.offerCombinationRule)&&c>1)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),xX=(()=>{class t{constructor(e,i){this.http=e,this.environmentService=i,this.legacyProduceService=(0,n.WQX)(SX),this.toasterService=(0,n.WQX)(tc),this.activeReservations=(0,n.vPA)([]),this.earliestReservationEndTimeUTC=(0,n.EWP)(()=>0===this.activeReservations().length?null:this.activeReservations().reduce((o,s)=>s.expirationTimeUTC<o.expirationTimeUTC?s:o).expirationTimeUTC),this.apiUrl=this.environmentService.getApiUrl()}getEntityReservations(){return this.http.get(`${this.apiUrl}/marketplace/offer/reserve`).pipe((0,Os.T)(e=>(this.activeReservations.set(e),e)))}reserveOffer(e,i,o,s="ADD",a=!0){return this.http.post(`${this.apiUrl}/marketplace/offer/reserve`,{offerContentItemId:i,offerId:e.offerId,quantity:o}).pipe((0,Os.T)(l=>{if(l.isReserved){let c=this.activeReservations().filter(d=>d.reservationId!==l.reservedItemDetails?.reservationId);this.activeReservations.set([l.reservedItemDetails,...c])}return"RESERVED"!=l.outcome&&a&&this.showReservationError(l,s),l}),Fx(l=>{let c=l.error;return c&&(this.showReservationError(c,s),c.isReserved||this.activeReservations.set(this.activeReservations().filter(d=>d.offerId!=c.reservedItemDetails?.offerId&&d.contentItemId!=c.reservedItemDetails?.contentItemId))),Fs(c)}))}cancelReservation(e,i){this.http.post(`${this.apiUrl}/marketplace/offer/reserve/cancel`,{offerId:e,offerContentItemId:i}).subscribe({next:()=>{this.activeReservations.set(this.activeReservations().filter(o=>!(o.offerId===e&&o.contentItemId===i)))}})}showReservationError(e,i){let s="";switch(e.outcome){case"REQUEST_CANNOT_BE_MET":s="Sorry, there aren't enough units available to cover your request, likely because others have it reserved right now.";break;case"SERVER_ERROR":s="Sorry, something went wrong on our end - try again or contact us.";break;case"INVALID_REQUEST":case"UNAUTHORIZED":s="Sorry, something went wrong - try refreshing your browser and trying again";break;case"OFFER_NOT_AVAILABLE":s="Sorry, the offer isn't available right now. It might have been changed or ordered by a different organization.";break;case"EXISTING_ENTITY_RESERVATION_FROM_OTHER_USER":s="A different user from your organization already has an active reservation for this item.";break;default:s="Sorry - we weren't able to reserve this for you"}this.toasterService.displayErrorToast("ADD"==i?"Can't Add to Cart!":"Can't Update Cart!",s,8e3)}static{this.\u0275fac=function(i){return new(i||t)(n.KVO(Da),n.KVO(s0))}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),l0=(()=>{class t{constructor(){this.marketplaceService=(0,n.WQX)(Yu),this.marketplaceUtilities=(0,n.WQX)(I2),this.reservationsService=(0,n.WQX)(xX),this.http=(0,n.WQX)(Da),this.angularJsInjectorService=(0,n.WQX)(Jk),this.environmentService=(0,n.WQX)(s0),this.legacyNavigationService=(0,n.WQX)(wc),this.toasterService=(0,n.WQX)(tc),this.authService=(0,n.WQX)(dP),this.legacySessionDataService=(0,n.WQX)(qy),this.CART_STORAGE_KEY_BASE="marketplace:shopping_cart",this.storageKey=(0,n.vPA)(this.CART_STORAGE_KEY_BASE),this.truckCartRoundingUpperRange=(0,n.vPA)(.03),this.truckCartRoundingLowerRange=(0,n.vPA)(.02),this.cartChanged=(0,n.vPA)(0),this.inCartContentIds=(0,n.EWP)(()=>{this.cartChanged();let i=this.getCart();return i&&i.orderRequests&&0!==i.orderRequests.length?i.orderRequests.flatMap(o=>o.pickupLocationsRequests.flatMap(s=>s.requests.map(a=>a.contentItemId))):[]}),this.cartItemCount=(0,n.EWP)(()=>this.inCartContentIds().length);const e=localStorage.getItem("currentAccount");if(e)try{const i=JSON.parse(e);i.localAccountId&&this.storageKey.set(`${this.CART_STORAGE_KEY_BASE}:${i.localAccountId}`)}catch(i){console.error("Error parsing currentAccount from localStorage",i)}}getCart(){const e=localStorage.getItem(this.storageKey());return e?JSON.parse(e):null}saveCart(e){localStorage.setItem(this.storageKey(),JSON.stringify(e)),this.cartChanged.update(i=>i+1)}addToCartByFlatItem(e,i=null,o,s,a=!1,l=""){this.marketplaceService.getTimelineEntry(e.offerId).subscribe({next:c=>{c&&this.addToCart(c,e,i,o,s,a,l)}})}addToCart(e,i,o=null,s,a,l=!1,c=""){const d=this.getCart()??this.createEmptyCart(s),f=e.itemSummaries.find(I=>I.itemSummaryId==i.itemSummaryId);if(!f)throw Error("Failed to find requested item");const v=o??f.palletLevelOfferContentId??f.vehicleLevelOfferContentId;if(!v)throw Error("Failed to find a valid content item id");if(!this.authService.canUserTakeAction(i,"ORDER"))return void this.toasterService.displayErrorToast("Unauthorized","Your account does not currently have permission to order this item.");if(!a)return void this.toasterService.displayErrorToast("Unable to Order","No delivery locations available.");let x=1;v==f.vehicleLevelOfferContentId&&(x=1),v==f.palletLevelOfferContentId&&(x=Math.min(f.palletsPerVehicleUnit??1,(null==f.maximumPalletUnitsPerOrder?f.palletsPerVehicleUnit:f.maximumPalletUnitsPerOrder)??1)),v==f.caseLevelOfferContentId&&(x=Math.min(f.casesPerPalletUnit??1,(null==f.maximumCaseUnitsPerOrder?f.casesPerPalletUnit:f.maximumCaseUnitsPerOrder)??1)),v==f.unitLevelOfferContentId&&(x=Math.min(f.unitsPerCaseUnit??1,(null==f.maximumUnitUnitsPerOrder?f.unitsPerCaseUnit:f.maximumUnitUnitsPerOrder)??1)),i.produceOfferDetails?this.finishAddToCart(e,i,v,x,d,a,l,c):this.reservationsService.reserveOffer(i,v,x).subscribe({next:I=>{"RESERVED"===I.outcome&&this.finishAddToCart(e,i,v,x,d,a,l,c)}})}finishAddToCart(e,i,o,s,a,l,c=!1,d=""){this.addRequestedItemToExistingCart(a,{timelineEntry:e,flatItemSummary:i,contentItemId:o,quantity:s},l,c,d),this.updateCartSummary(a),this.saveCart(a)}addRequestedItemToExistingCart(e,i,o,s=!1,a=""){if(this.inCartContentIds().includes(i.contentItemId))return void console.log("Attempted to add an item already in the cart");const l=i.timelineEntry.offerSnapshot.locationEntity,c=i.timelineEntry.offerSnapshot.sourceEntity,d=this.getCombinableOrdersForItemInCart(e,i.flatItemSummary).map(w=>w.id);if(0===d.length||s||""!=a&&!d.includes(a))return void e.orderRequests.push({id:crypto.randomUUID(),sourceEntity:c,deliveryLocationEntity:o,pickupLocationsRequests:[{id:crypto.randomUUID(),requests:[i],sourceEntityLocation:l}],orderRequestSummary:{fobCost:0,freightCostPerTruck:0,totalDeliveredProductCost:0,estimatedDeliveryTimeUTC:null,truckLoads:0,truckLoadsExact:0,truckLoadsAreRounded:!1,freightCostIsAveraged:!1,pricingModel:"FOB"}});let f=e.orderRequests.find(w=>w.id===(""!=a?a:d[0]));if(!f)throw Error("Error finding matched order");var v=f.pickupLocationsRequests.find(w=>w.sourceEntityLocation.internalDetail?.internalEntityId===l.internalDetail?.internalEntityId);v?v.requests.push(i):f.pickupLocationsRequests.push({id:crypto.randomUUID(),requests:[i],sourceEntityLocation:l})}updateItemQuantity(e){const i=this.getCart();if(null!=i){const o=i.orderRequests.filter(s=>s.sourceEntity.internalDetail?.internalEntityId===e.timelineEntry.offerSnapshot.sourceEntity.internalDetail?.internalEntityId);for(const s of o)for(const a of s.pickupLocationsRequests){let l=a.requests.find(c=>c.contentItemId==e.contentItemId);if(l)return l.quantity=e.quantity,this.updateCartSummary(i),void this.saveCart(i)}}}refreshCartSummary(){const e=this.getCart();null!=e&&this.updateCartSummary(e)}removeItemFromCart(e){const i=this.getCart();if(i){for(const o of i.orderRequests)for(const s of o.pickupLocationsRequests){const a=s.requests.find(l=>l.flatItemSummary.itemSummaryId===e);s.requests=s.requests.filter(l=>l.flatItemSummary.itemSummaryId!=e),a&&this.reservationsService.cancelReservation(a.flatItemSummary.offerId,a.contentItemId)}if(this.cleanCart(i),this.updateCartSummary(i),this.saveCart(i),0===i.orderRequests.length)return void localStorage.removeItem(this.storageKey())}}cleanCart(e){if(e){for(const i of e.orderRequests)i.pickupLocationsRequests=i.pickupLocationsRequests.filter(o=>o.requests.length>0);e.orderRequests=e.orderRequests.filter(i=>i.pickupLocationsRequests.length>0)}}removeOrderRequestFromCart(e,i=!0){const o=this.getCart();if(o){for(const s of o.orderRequests)if(s.id===e)for(const a of s.pickupLocationsRequests)for(const l of a.requests)this.reservationsService.cancelReservation(l.flatItemSummary.offerId,l.contentItemId);o.orderRequests=o.orderRequests.filter(s=>s.id!=e),this.updateCartSummary(o),this.saveCart(o),0===o.orderRequests.length&&localStorage.removeItem(this.storageKey()),i&&this.marketplaceService.forceRefreshAvailableOffers()}}refreshItemInCart(e,i){const o=this.getCart();if(!o)return"UNABLE_TO_REFRESH";let s=null,a=null;e:for(const l of o.orderRequests)for(const c of l.pickupLocationsRequests)if(s=c.requests.find(d=>d.flatItemSummary.itemSummaryId!=e)??null,s){a=l;break e}return s&&(i.vehicleLevelOfferContentId===s.contentItemId&&i.canOrderAtVehicleLevel||i.palletLevelOfferContentId===s.contentItemId&&i.canOrderAtPalletLevel||i.caseLevelOfferContentId===s.contentItemId&&i.canOrderAtCaseLevel)?(this.removeItemFromCart(e),this.addToCartByFlatItem(i,s.contentItemId,o.orderingEntity,a?.deliveryLocationEntity),"SUCCESS"):"UNABLE_TO_REFRESH"}moveCartOrderRequestToNewOrder(e){const i=this.getCart();if(i)for(const o of i.orderRequests)for(const s of o.pickupLocationsRequests)for(const a of s.requests)a.flatItemSummary.itemSummaryId===e&&(this.removeItemFromCart(e),this.addToCartByFlatItem(a.flatItemSummary,a.contentItemId,i.orderingEntity,o.deliveryLocationEntity,!0))}moveCartOrderRequestToExistingOrder(e,i){const o=this.getCart();let s=null,a=null,l=[];if(!o)return!1;for(const c of o.orderRequests){c.id==i&&(l=c.pickupLocationsRequests.flatMap(d=>d.requests.map(f=>f.flatItemSummary)));for(const d of c.pickupLocationsRequests)for(const f of d.requests)f.flatItemSummary.itemSummaryId===e&&(s=f,a=d.sourceEntityLocation)}if(!s||!a||0==l.length||!this.marketplaceUtilities.isItemSummaryCombinableWithItemSummaries(s.flatItemSummary,l))return!1;for(const c of o.orderRequests)for(const d of c.pickupLocationsRequests)d.requests=d.requests.filter(f=>f.flatItemSummary.itemSummaryId!=s.flatItemSummary.itemSummaryId);return this.cleanCart(o),this.saveCart(o),this.addRequestedItemToExistingCart(o,s,a,!1,i),this.updateCartSummary(o),this.saveCart(o),!0}getCartItemSummariesByOrder(){const e=this.getCart();if(!e)return{};const i={};for(const o of e.orderRequests)i[o.id]=o.pickupLocationsRequests.flatMap(s=>s.requests.map(a=>a.flatItemSummary));return i}updateCartSummary(e){for(const i of e.orderRequests){let o=0,s=[],a=0,l=!1,c=null,d="FOB";for(const M of i.pickupLocationsRequests)for(const F of M.requests){(!c||F.flatItemSummary.earliestDeliveryTimeUTC&&c<F.flatItemSummary.earliestDeliveryTimeUTC)&&(c=F.flatItemSummary.earliestDeliveryTimeUTC);const re=F.flatItemSummary;"DELIVERED"!=re.pricingModel?re.deliveryEstimate?.estimatedFreightCostPerTruck?s.push(re.deliveryEstimate?.estimatedFreightCostPerTruck):l=!0:s.push(0);let pe=null;switch(F.contentItemId){case re.vehicleLevelOfferContentId:a+=F.quantity,pe=this.marketplaceService.getPricingSummary(re,"VEHICLE");break;case re.palletLevelOfferContentId:a+=F.quantity/F.flatItemSummary.palletsPerVehicleUnit,pe=this.marketplaceService.getPricingSummary(re,"PALLET");break;case re.caseLevelOfferContentId:a+=F.quantity/F.flatItemSummary.casesPerPalletUnit/F.flatItemSummary.palletsPerVehicleUnit,pe=this.marketplaceService.getPricingSummary(re,"CASE")}if(o+=pe?.fobCostPerUnit*F.quantity,d=pe?.pricingModel??"FOB",!F.flatItemSummary.palletLevelCost)throw Error("Cannot build cart summary as cost data are unavailable")}let f=!1;if(this.legacySessionDataService.isMarketplaceTruckRoundingEnabled()&&i.pickupLocationsRequests.every(M=>M.requests.every(F=>"GROCERY"===F.flatItemSummary.programCode))){const M=Math.round(a),F=a-M;F>=-1*this.truckCartRoundingLowerRange()&&F<this.truckCartRoundingUpperRange()&&0!=F&&(a=M,f=!0)}const v=[...new Set(s)],w=0===v.length?null:v.reduce((M,F)=>M+F,0)/v.length,x=s.length>1&&w!=s[0],I=null!=w&&null!=o&&null!=o&&(w>0||"DELIVERED"===d)?o+w*Math.ceil(a):null;i.orderRequestSummary={fobCost:o,freightCostPerTruck:w,totalDeliveredProductCost:I,estimatedDeliveryTimeUTC:c,truckLoadsExact:a,truckLoads:Math.ceil(a),truckLoadsAreRounded:f,freightCostIsAveraged:x,pricingModel:d}}}createEmptyCart(e){return{id:this.generateCartId(),orderingEntity:e,orderRequests:[]}}generateCartId(){return crypto.randomUUID()}createBuildPackage(e,i){const o=[],s=new Map;let a=[];const c=new Map;let d=[];for(const v of e.pickupLocationsRequests)for(const w of v.requests){let x=w.flatItemSummary.locationEntity.internalDetail?.internalEntityId;c.has(x)?c.get(x).actions.push({actionType:"PICKUP",offerId:w.timelineEntry.offerId,contentItemId:w.contentItemId,quantity:w.quantity}):c.set(x,{entity:w.timelineEntry.offerSnapshot.locationEntity,actions:[{actionType:"PICKUP",offerId:w.timelineEntry.offerId,contentItemId:w.contentItemId,quantity:w.quantity}]}),d.push({actionType:"DROPOFF",offerId:w.timelineEntry.offerId,contentItemId:w.contentItemId,quantity:w.quantity}),s.has(w.timelineEntry.offerId)||s.set(w.timelineEntry.offerId,w.timelineEntry.offerSnapshot)}let f=1;for(const[v,w]of c)a.push({entityLocation:w.entity,sequence:f,actions:w.actions,expectedArrivalUTC:0}),f+=1;return a.push({entityLocation:e.deliveryLocationEntity,sequence:f,actions:d,expectedArrivalUTC:1}),o.push({transportationMethod:this.defaultTransportationMethod(),requestedStops:a,useTransportationContext:null}),{requestedOrders:o,offersUsed:[...s.values()],requestingEntity:i}}defaultTransportationMethod(e="TRAILER"){return"TRAILER"===e?{maxProductPayload:{weightUOM:"POUND",value:4e4,isEstimated:!0},internalDimensions:[{dimensionCode:"LENGTH",dimensionUOM:"INCH",value:631,isEstimated:!0},{dimensionCode:"WIDTH",dimensionUOM:"INCH",value:100,isEstimated:!0},{dimensionCode:"HEIGHT",dimensionUOM:"INCH",value:111,isEstimated:!0}],vehicleClass:"TRAILER",requireLoadingDock:!0}:this.defaultTransportationMethod("TRAILER")}findContentItemByPackingType(e=[],i){for(const o of e){if(o.packingType===i)return o;if(o.contents?.length){const s=this.findContentItemByPackingType(o.contents,i);if(s)return s}}return null}startOrderCheckout(e,i){const o=e.pickupLocationsRequests.every(a=>a.requests.every(l=>l.flatItemSummary.produceOfferDetails));if(e.pickupLocationsRequests.some(a=>a.requests.some(l=>l.flatItemSummary.produceOfferDetails))!=o)throw new Error("Cannot process both produce and marketplace offers through the same order checkout!");if(o)this.startProduceOrderCheckout(e);else{const a=this.createBuildPackage(e,i);this.renewCartReservations(e),this.startMarketplaceOrderCheckout(e.id,a,e.deliveryLocationEntity)}}startProduceOrderCheckout(e){const i=[];for(const o of e.pickupLocationsRequests)for(const s of o.requests)i.push(this.buildProduceOfferFromRequest(s));this.transferProduceOrderCheckoutToProduce(e.id,i,e.deliveryLocationEntity)}transferProduceOrderCheckoutToProduce(e,i,o,s=null){let a=this.angularJsInjectorService.getAngularJsInjector().get("offeringService"),l=this.angularJsInjectorService.getAngularJsInjector().get("produceOrderEventStoreService"),c=this.angularJsInjectorService.getAngularJsInjector().get("produceOrderTruckService"),d=this.angularJsInjectorService.getAngularJsInjector().get("produceOrderCommonService");a.getNavStructure(a.offeringTypesConstants.produceOrder),a.currentNav.produceOrder.originalProduceOfferId=i[0].ID,a.currentNav.produceOrder.offersInOrder=i;let f=this.legacyNavigationService;l.reserveOrder(a.currentNav.produceOrder).then(function(v){v?(c.setOriginalOffersInOrder(a.currentNav.produceOrder.offersInOrder),s&&(a.currentNav.produceOrder.orderingAs=s),a.currentNav.produceOrder.isMarketplace=!0,a.currentNav.produceOrder.hasMarketplaceOffers=!1,a.currentNav.produceOrder.marketplaceCartOrderRequestId=e,a.currentNav.produceOrder.marketplaceOrderDestination=o,a.currentNav.produceOrder.trucks=new Array,d.resetTotalFTLs(a.currentNav.produceOrder),d.resetTotalPalletsOrdered(a.currentNav.produceOrder),d.resetTotalFobCost(a.currentNav.produceOrder),d.resetAvgCostPerTruck(a.currentNav.produceOrder),a.gotToStep("app.produce-order.new.manage-load"),f.navigate(a.currentStep.state,{produceOrder:a.currentNav.produceOrder})):l.displayModalBasedReservationStatus()})}setupProduceOfferForCheckout(e,i,o,s,a=!0){if(a){const l=new Array;for(const c of e?.OfferItems){const d=JSON.parse(JSON.stringify(c));delete d.Offer,d.OfferID=null,l.push(d)}e.OfferItems=[...l]}return e.TotalPallets=o,e.fullTruckLoadsOrdering=i,e.nbrOfPalletsOrdering=s,e.ftlOnTruck=i,e.palletsOnTruck=o,e.ftlOnTruckForInput=i,e.palletsOnTruckForInput=o,e.fullTruckLoadsOrderingWarning=!1,e.showNbrOfPalletsOrderingWarning=!1,e.IsMarketplaceCheckout=!0,e.IsMarketplaceOffer=!1,e.AllowPickup=!0,e.AllowFANOTransportation=!0,e}buildProduceOfferFromRequest(e){let i=e.flatItemSummary.produceOfferDetails,o=JSON.parse(JSON.stringify(i?.offerItems[0].Offer));o.OfferItems=[...i?.offerItems];let s="",a=0,l=0,c=0;if(e.contentItemId===e.flatItemSummary.vehicleLevelOfferContentId&&(s="VEHICLE",a=e.quantity,c=e.flatItemSummary.palletsPerVehicleUnit,l=e.flatItemSummary.palletsPerVehicleUnit*e.quantity),e.contentItemId===e.flatItemSummary.palletLevelOfferContentId&&(s="PALLET",a=e.quantity/e.flatItemSummary.palletsPerVehicleUnit,l=e.quantity),""===s)throw new Error("Cannot find produce orderable unit");return this.setupProduceOfferForCheckout(o,a,c,l)}renewCartReservations(e){for(const i of e.pickupLocationsRequests)for(const o of i.requests)this.reservationsService.reserveOffer(o.flatItemSummary,o.contentItemId,o.quantity,"UPDATE",!1).subscribe({error:s=>{throw new Error("Error updating reservations")}})}startMarketplaceOrderCheckout(e,i,o){let s=this.angularJsInjectorService.getAngularJsInjector().get("offeringService"),a=this.angularJsInjectorService.getAngularJsInjector().get("produceOrderTruckService");var l=this.environmentService?this.environmentService.getApiUrl():"";this.http.post(l+"/legacy/produce/orderPackageToProduceOrder",i).subscribe(c=>{s.getNavStructure(s.offeringTypesConstants.produceOrder),s.currentNav.produceOrder=c,a.setOriginalOffersInOrder(s.currentNav.produceOrder.offersInOrder),s.currentNav.produceOrder.marketplaceCartOrderRequestId=e,s.currentNav.produceOrder.marketplaceOrderDestination=o,s.gotToStep("app.produce-order.new.manage-load"),this.legacyNavigationService.navigate(s.currentStep.state,{produceOrder:s.currentNav.produceOrder})})}getCombinableOrdersForItemInCart(e,i){return e?e.orderRequests.filter(o=>this.marketplaceUtilities.isItemSummaryCombinableWithItemSummaries(i,o.pickupLocationsRequests.flatMap(s=>s.requests.map(a=>a.flatItemSummary)))):[]}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),zv=(()=>{class t{constructor(e,i){this.http=e,this.environmentService=i,this.marketplaceService=(0,n.WQX)(Yu),this.entityService=(0,n.WQX)(jh),this.marketplaceUtilities=(0,n.WQX)(I2),this.cartService=(0,n.WQX)(l0),this.taxonomy=(0,n.vPA)({}),this.apiUrl=this.environmentService.getApiUrl(),this.marketplaceService.getTaxonomy().subscribe({next:o=>{let s={};o.forEach(a=>s[a.key]=a),this.taxonomy.set(s)}})}getFlattenedItemSummariesForTimelineEntry(e){let o,i=0;this.entityService.deliveryLocationEntity()&&(i=this.entityService.deliveryLocationEntity()?.internalDetail?.internalEntityId??0,o=this.entityService.deliveryLocationEntity()?.postalCode??null,o&&o.length>=5&&(o=o.substring(0,5)));let s={};return s=this.cartService.getCartItemSummariesByOrder(),e.itemSummaries.map(a=>{const l=this.findBestDeliveryEstimate(e.deliveryEstimates,i,o);return this.mapTimelineEntryToFlatItemSummary(e,a,l,this.taxonomy(),s)})}mapTimelineEntryToFlatItemSummary(e,i,o,s,a){let l=e.offerSnapshot.contents[0].itemTypes.find(d=>"FANOProduceGrade"===d.vocabularyId)?.itemId;const c={offerId:e.offerId,offerVersionId:e.offerVersionId,offerCode:e.offerSnapshot.offerCode,offerTitle:e.offerSnapshot.title,offerDescription:e.offerSnapshot.description,taxonomyEntry:i.fanoTaxonomyCategoryId in s?s[i.fanoTaxonomyCategoryId]:null,sourceEntity:e.offerSnapshot.sourceEntity,locationEntity:e.offerSnapshot.locationEntity,designationCode:e.offerSnapshot.designationCode,deliveryEstimate:o,firstAvailableToShipTimeUTC:e.offerSnapshot.shippingFirstAvailableTimeUTC?Math.max(e.startTimeUTC,e.offerSnapshot.shippingFirstAvailableTimeUTC):e.startTimeUTC,lastAvailableToShipTimeUTC:e.offerSnapshot.shippingDeadlineTimeUTC?Math.max(e.endTimeUTC,e.offerSnapshot.shippingDeadlineTimeUTC):e.endTimeUTC,earliestDeliveryTimeUTC:this.getEarliestDeliveryDate(e.offerSnapshot.leadTimeInDays,o,e.offerSnapshot.shippingFirstAvailableTimeUTC),endTimeUTC:e.endTimeUTC,pricingModel:e.offerSnapshot.pricingModel??"FOB",programCode:e.offerSnapshot.internalProgramCode?e.offerSnapshot.internalProgramCode:i.fanoTaxonomyCategoryId.startsWith("PRODUCE")?"PRODUCE":"GROCERY",...i,palletPricingSummary:null,casePricingSummary:null,unitPricingSummary:null,upc:e.offerSnapshot.contents[0].itemTypes.find(d=>"upc"===d.vocabularyId.toLowerCase())?.itemId??"",grade:l?CX[Number(l)].displayName:"",leadTimeInDays:e.offerSnapshot.leadTimeInDays,userOfferRestrictions:e.userOfferRestrictions,offerCombinationRule:e.offerSnapshot.matchPreferences?.combinationRule??"NONE",combinableCartOrderIds:null};return c.palletPricingSummary=this.marketplaceService.getPricingSummary(c,"PALLET"),c.casePricingSummary=this.marketplaceService.getPricingSummary(c,"CASE"),c.unitPricingSummary=this.marketplaceService.getPricingSummary(c,"EACH"),this.refreshItemSummaryCombinabilityData(c,a),c}refreshItemSummaryCombinabilityData(e,i=null){null==i&&(i=this.cartService.getCartItemSummariesByOrder()),Array.isArray(e)||(e=[e]);for(const o of e)o.combinableCartOrderIds=Object.keys(i).filter(s=>this.marketplaceUtilities.isItemSummaryCombinableWithItemSummaries(o,i[s]));return e}getFlattenedAvailableItemSummaries(e=!1){const i=this.entityService.browsingAsEntity();return i?this.getFlattenedAvailableItemSummariesForEntityLocation(i,this.entityService.deliveryLocationEntity(),e,!0):new Fc.c}getFlattenedAvailableItemSummariesForEntityLocation(e,i=null,o=!1,s=!1){if(!e||!e.internalDetail?.internalEntityId)throw new Error("Cannot retrieve listings for invalid entities");let a;i&&(a=i?.postalCode??null,a&&a.length>=5&&(a=a.substring(0,5)));let l={};return l=this.cartService.getCartItemSummariesByOrder(),this.marketplaceService.getAvailableOffers(o,s,e,i).pipe((0,Os.T)(c=>c.flatMap(d=>d.itemSummaries.map(f=>{const v=this.findBestDeliveryEstimate(d.deliveryEstimates,i?.internalDetail?.internalEntityId??0,a);return this.mapTimelineEntryToFlatItemSummary(d,f,v,this.taxonomy(),l)}))))}getEarliestDeliveryDateByOffer(e,i){return this.getEarliestDeliveryDate(e.leadTimeInDays,i,e.shippingFirstAvailableTimeUTC)}getEarliestDeliveryDate(e,i,o){if(!i||!i.estimatedDistanceInMiles)return null;const a=864e5,l=i.estimatedDistanceInMiles/600,c=e??0;let d=Date.now()+c*a;return o&&o>d&&(d=o),d+l*a}findBestDeliveryEstimate(e,i,o){if(!e||0===e.length)return null;let s;return s=e.find(a=>a.locationEntity.internalDetail?.internalEntityId===i)??null,s||(e.find(a=>a.locationEntity.postalCode?.startsWith(o??"9999999"))??null)}static{this.\u0275fac=function(i){return new(i||t)(n.KVO(Da),n.KVO(s0))}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),pP=(()=>{class t{constructor(){this.marketplaceService=(0,n.WQX)(Yu),this.timelineEntriesService=(0,n.WQX)(zv),this.FILTER_STORAGE_KEY_BASE="marketplace:filters_state",this.storageKeyPrefix=(0,n.vPA)("marketplace"),this.sectionFilters=(0,n.vPA)([]),this.filterSections={browse:"browse"},this.browseFilters=(0,n.EWP)(()=>this.sectionFilters().find(i=>i.section===this.filterSections.browse).filters);const e=localStorage.getItem("currentAccount");if(e)try{const i=JSON.parse(e);i.localAccountId&&this.storageKeyPrefix.set(`${this.FILTER_STORAGE_KEY_BASE}:${i.localAccountId}`);let o=[];for(let s of Object.keys(this.filterSections))o.push({section:s,filters:this.getFilters(s)});this.sectionFilters.set([...o])}catch(i){console.error("Error parsing currentAccount",i)}}getSectionKey(e){return`${this.storageKeyPrefix()}:${e}`}getFilters(e,i=null){let o=[],s=localStorage.getItem(this.getSectionKey(e));return s&&(o=JSON.parse(s)),null!==i&&(o=o.filter(a=>a.type===i)),o}updateFilterText(e,i){let s,o=this.getFilters(e,ao.FilterText);o.length>0?(s=o[0],s.value=i):s=new Q_t(i),this.updateFilters(e,[s],ao.FilterText)}updateFilters(e,i,o=null){let s=this.getFilters(e),a=[],l=[];s.forEach(c=>{(null===o||c.type===o)&&!i.find(d=>d.id===c.id)&&l.push(c.id)}),i.forEach(c=>{let d=s.find(f=>f.id===c.id);d?d.value=c.value:a.push(c)}),this.saveFilters(e,[...s.filter(c=>!l.includes(c.id)),...a])}removeFilter(e,i){let o=this.getFilters(e);o=o.filter(s=>s.id!==i.id),this.saveFilters(e,o)}removeFilters(e,i){let o=this.getFilters(e),s=i.map(a=>a.id);o=o.filter(a=>!s.includes(a.id)),this.saveFilters(e,o)}applyFilters(e,i){let o=[...e],s=i.filter(v=>v.type===ao.TaxonomyCategory&&v.value);if(s.length){let v=s.map(w=>w.value);o=o.filter(w=>v.some(x=>x===w.fanoTaxonomyCategoryId))}let a=i.filter(v=>v.type===ao.TaxonomyHierarchyCategory&&v.value);if(a.length){let v=a.map(w=>w.value);o=o.filter(w=>v.some(x=>w.fanoTaxonomyCategoryId.startsWith(x)))}let l=i.filter(v=>v.type===ao.OppositeTaxonomyHierarchyCategory&&v.value);if(l.length){let v=l.map(w=>w.value);o=o.filter(w=>v.some(x=>!w.fanoTaxonomyCategoryId.startsWith(x)))}let c=i.filter(v=>v.type===ao.SourceProgramCode&&v.value);c.length&&(c.find(w=>"GROCERY"===w.value)&&c.find(w=>"PRODUCE"===w.value)||c.forEach(w=>{switch(w.value){case"GROCERY":o=o.filter(x=>"GROCERY"===x.programCode);break;case"PRODUCE":o=o.filter(x=>"PRODUCE"===x.programCode)}}));let d=i.find(v=>v.type===ao.IsFeatured);d&&(o=o.filter(v=>d.value.includes(v.offerId.toLowerCase())));let f=new tC(o,{isCaseSensitive:!1,ignoreDiacritics:!0,includeMatches:!0,includeScore:!0,minMatchCharLength:2,shouldSort:!0,threshold:.3,keys:[{name:"itemDescription",getFn:v=>v.itemDescription,weight:.2},{name:"itemName",getFn:v=>v.itemName,weight:.4},{name:"upc",getFn:v=>v.upc??"",weight:.1},{name:"palletLevelBrandLabel",getFn:v=>v.palletLevelBrandLabel,weight:.1},{name:"sourceEntity.name",getFn:v=>v.sourceEntity.name,weight:.1},{name:"taxonomyEntry.displayName",getFn:v=>v.taxonomyEntry?.displayName,weight:.1},{name:"offerCode",getFn:v=>v.offerCode,weight:.1}]});return i.forEach(v=>{switch(v.type){case ao.Distance:{let w=v.value;o=o.filter(x=>!!x.deliveryEstimate?.estimatedDistanceInMiles&&x.deliveryEstimate.estimatedDistanceInMiles<=w);break}case ao.FilterText:{let w=v.value;if(w){let x=f.search(w),I=[...o];o=[],x.forEach(M=>{o.push({...I[M.refIndex],matches:M.matches,score:M.score})})}break}case ao.Supplier:{let w=v.value.internalDetail?.internalEntityId;w&&(o=o.filter(x=>x.sourceEntity.internalDetail?.internalEntityId===w));break}case ao.FOBCostPerPound:o=o.filter(w=>{let x=this.marketplaceService.getPricingSummary(w,w.canOrderAtPalletLevel?"PALLET":"VEHICLE");return!!x&&x.fobCostPerPound<v.value});break;case ao.HERCategories:{const w=v.value;o=o.filter(x=>{const I=new Set([x.palletLevelNutritionalCategoryDetails?.itemId,x.vehicleLevelNutritionalCategoryDetails?.itemId,x.caseLevelNutritionalCategoryDetails?.itemId]);return w.some(M=>I.has(M))});break}case ao.IsImported:{const w=v.value;o=o.filter(x=>w.includes(x.palletLevelIsImported??null));break}case ao.IsCombinableWithCart:{const w=new Set(v.value);o=this.timelineEntriesService.refreshItemSummaryCombinabilityData(o),o=o.filter(w.size>0?x=>(x.combinableCartOrderIds??[]).some(M=>w.has(M)):x=>x.combinableCartOrderIds&&x.combinableCartOrderIds.length>0);break}case ao.TaxonomyCategory:case ao.TaxonomyHierarchyCategory:case ao.OppositeTaxonomyHierarchyCategory:case ao.SourceProgramCode:case ao.IsFeatured:break;case ao.HideProduceCombos:v.value&&(o=o.filter(x=>"PRODUCE"!==x.programCode||"PRODUCE"===x.programCode&&x.produceOfferDetails&&!x.produceOfferDetails.isCombo))}}),o}applySavedFilters(e,i){let o=this.getFilters(e);return this.applyFilters(i,o)}hasSavedFilters(e){let i=this.getFilters(e);return!(1===i.length&&i[0].type===ao.FilterText&&!i[0].value||!this.getFilters(e).length)}saveFilters(e,i){localStorage.setItem(this.getSectionKey(e),JSON.stringify(i)),this.sectionFilters.set([...this.sectionFilters().filter(o=>o.section!==e),{section:e,filters:i}])}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),C0t=(()=>{class t{constructor(){this.style=(0,n.hFB)(""),this.class=(0,n.hFB)("")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["icon-cart"]],inputs:{style:[1,"style"],class:[1,"class"]},decls:2,vars:4,consts:[["xmlns","http://www.w3.org/2000/svg","width","50","height","44","fill","currentColor","viewBox","0 0 50 44"],["d","M20.9375 40.5625C20.9375 41.23 20.7396 41.8825 20.3687 42.4375C19.9979 42.9926 19.4708 43.4251 18.8541 43.6806C18.2374 43.936 17.5588 44.0029 16.9041 43.8727C16.2494 43.7424 15.648 43.421 15.176 42.949C14.704 42.477 14.3826 41.8756 14.2523 41.2209C14.1221 40.5662 14.189 39.8876 14.4444 39.2709C14.6999 38.6542 15.1324 38.1271 15.6875 37.7563C16.2425 37.3854 16.895 37.1875 17.5625 37.1875C18.4576 37.1875 19.316 37.5431 19.949 38.176C20.5819 38.809 20.9375 39.6674 20.9375 40.5625ZM39.5 37.1875C38.8325 37.1875 38.18 37.3854 37.625 37.7563C37.0699 38.1271 36.6374 38.6542 36.3819 39.2709C36.1265 39.8876 36.0596 40.5662 36.1898 41.2209C36.3201 41.8756 36.6415 42.477 37.1135 42.949C37.5855 43.421 38.1869 43.7424 38.8416 43.8727C39.4963 44.0029 40.1749 43.936 40.7916 43.6806C41.4083 43.4251 41.9354 42.9926 42.3062 42.4375C42.6771 41.8825 42.875 41.23 42.875 40.5625C42.875 39.6674 42.5194 38.809 41.8865 38.176C41.2535 37.5431 40.3951 37.1875 39.5 37.1875ZM49.5638 10.6389L44.1554 30.1042C43.858 31.1675 43.222 32.1049 42.3438 32.7741C41.4656 33.4433 40.3932 33.8079 39.2891 33.8125H18.44C17.3326 33.812 16.2558 33.4493 15.3738 32.7798C14.4918 32.1103 13.8529 31.1707 13.5547 30.1042L6.155 3.4375H2.375C1.92745 3.4375 1.49822 3.25971 1.18176 2.94324C0.86529 2.62677 0.6875 2.19755 0.6875 1.75C0.6875 1.30245 0.86529 0.873225 1.18176 0.556757C1.49822 0.24029 1.92745 0.0625 2.375 0.0625H7.4375C7.80643 0.0624291 8.16522 0.183265 8.45895 0.40651C8.75267 0.629755 8.96514 0.943106 9.06383 1.29859L11.0635 8.5H47.9375C48.1977 8.49995 48.4543 8.56005 48.6874 8.6756C48.9205 8.79115 49.1237 8.95903 49.2811 9.16612C49.4386 9.37321 49.546 9.6139 49.5951 9.86938C49.6441 10.1249 49.6334 10.3882 49.5638 10.6389ZM45.7163 11.875H12.0022L16.8137 29.2014C16.9124 29.5569 17.1248 29.8702 17.4186 30.0935C17.7123 30.3167 18.0711 30.4376 18.44 30.4375H39.2891C39.658 30.4376 40.0168 30.3167 40.3105 30.0935C40.6042 29.8702 40.8167 29.5569 40.9154 29.2014L45.7163 11.875Z"]],template:function(i,o){1&i&&(n.qSk(),n.j41(0,"svg",0),n.nrm(1,"path",1),n.k0s()),2&i&&(n.Aen(o.style()),n.HbH(o.class()))},encapsulation:2})}}return t})();function w0t(t,r){1&t&&(n.j41(0,"span",1),n.EFF(1,"Your Cart"),n.k0s())}let g6=(()=>{class t{constructor(){this.legacyNavigationService=(0,n.WQX)(wc),this.cartService=(0,n.WQX)(l0),this.showLabel=(0,n.hFB)(!1),this.cartItemCount=(0,n.EWP)(()=>this.cartService.cartItemCount())}onCartClick(){this.legacyNavigationService.navigate("app.marketplace-cart")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-cart-button"]],inputs:{showLabel:[1,"showLabel"]},decls:6,vars:2,consts:[[1,"tw-flex","tw-items-center","tw-gap-0"],[1,"tw-mb-[6px]","tw-text-gray-900"],[1,"tw-relative","tw-cursor-pointer","tw-border-none","tw-bg-transparent",3,"click"],[1,"tw-h-[44px]","tw-w-[44px]","tw-text-gray-800"],[1,"tw-absolute","tw-right-[15px]","tw-top-[13px]","tw-flex","tw-h-5","tw-w-5","tw-items-center","tw-justify-center","tw-text-xs","tw-font-bold","tw-text-gray-900"]],template:function(i,o){1&i&&(n.j41(0,"div",0),n.DNE(1,w0t,2,0,"span",1),n.j41(2,"button",2),n.bIt("click",function(){return o.onCartClick()}),n.nrm(3,"icon-cart",3),n.j41(4,"span",4),n.EFF(5),n.k0s()()()),2&i&&(n.R7$(),n.vxM(o.showLabel()?1:-1),n.R7$(4),n.SpI(" ",o.cartItemCount()," "))},dependencies:[C0t],encapsulation:2})}}return t})();const T0t=({dt:t})=>`\n.p-listbox {\n    background: ${t("listbox.background")};\n    color: ${t("listbox.color")};\n    border: 1px solid ${t("listbox.border.color")};\n    border-radius: ${t("listbox.border.radius")};\n    transition: background ${t("listbox.transition.duration")}, color ${t("listbox.transition.duration")}, border-color ${t("listbox.transition.duration")},\n            box-shadow ${t("listbox.transition.duration")}, outline-color ${t("listbox.transition.duration")};\n    outline-color: transparent;\n    box-shadow: ${t("listbox.shadow")};\n}\n\n.p-listbox.p-focus {\n    border-color: ${t("listbox.focus.border.color")};\n    box-shadow: ${t("listbox.focus.ring.shadow")};\n    outline: ${t("listbox.focus.ring.width")} ${t("listbox.focus.ring.style")} ${t("listbox.focus.ring.color")};\n    outline-offset: ${t("listbox.focus.ring.offset")};\n}\n\n.p-listbox.p-disabled {\n    opacity: 1;\n    background: ${t("listbox.disabled.background")};\n    color: ${t("listbox.disabled.color")};\n}\n\n.p-listbox.p-disabled .p-listbox-option {\n    color: ${t("listbox.disabled.color")};\n}\n\n.p-listbox-header {\n    padding: ${t("listbox.list.header.padding")};\n    display: flex;\n    align-items: center;\n}\n\n.p-listbox-header > * {\n    flex: 1 1 auto;\n}\n\n.p-listbox-header > .p-checkbox {\n    flex: 0 0 auto;\n}\n\n.p-listbox-filter {\n    width: 100%;\n}\n\n.p-listbox-list-container {\n    overflow: auto;\n}\n\n.p-listbox-list {\n    list-style-type: none;\n    margin: 0;\n    padding: ${t("listbox.list.padding")};\n    outline: 0 none;\n    display: flex;\n    flex-direction: column;\n    gap: ${t("listbox.list.gap")};\n}\n\n.p-listbox-option {\n    display: flex;\n    align-items: center;\n    cursor: pointer;\n    position: relative;\n    overflow: hidden;\n    padding: ${t("listbox.option.padding")};\n    border: 0 none;\n    border-radius: ${t("listbox.option.border.radius")};\n    color: ${t("listbox.option.color")};\n    transition: background ${t("listbox.transition.duration")}, color ${t("listbox.transition.duration")}, border-color ${t("listbox.transition.duration")},\n            box-shadow ${t("listbox.transition.duration")}, outline-color ${t("listbox.transition.duration")};\n}\n\n.p-listbox-striped li:nth-child(even of .p-listbox-option) {\n    background: ${t("listbox.option.striped.background")};\n}\n\n.p-listbox .p-listbox-list .p-listbox-option.p-listbox-option-selected {\n    background: ${t("listbox.option.selected.background")};\n    color: ${t("listbox.option.selected.color")};\n}\n\n.p-listbox:not(.p-disabled) .p-listbox-option.p-listbox-option-selected.p-focus {\n    background: ${t("listbox.option.selected.focus.background")};\n    color: ${t("listbox.option.selected.focus.color")};\n}\n\n.p-listbox:not(.p-disabled) .p-listbox-option:not(.p-listbox-option-selected):not(.p-disabled).p-focus {\n    background: ${t("listbox.option.focus.background")};\n    color: ${t("listbox.option.focus.color")};\n}\n\n.p-listbox:not(.p-disabled) .p-listbox-option:not(.p-listbox-option-selected):not(.p-disabled):hover {\n    background: ${t("listbox.option.focus.background")};\n    color: ${t("listbox.option.focus.color")};\n}\n\n.p-listbox-option-check-icon {\n    position: relative;\n    margin-inline-start: ${t("listbox.checkmark.gutter.start")};\n    margin-inline-end: ${t("listbox.checkmark.gutter.end")};\n    color: ${t("listbox.checkmark.color")};\n}\n\n.p-listbox-option-group {\n    margin: 0;\n    padding: ${t("listbox.option.group.padding")};\n    color: ${t("listbox.option.group.color")};\n    background: ${t("listbox.option.group.background")};\n    font-weight: ${t("listbox.option.group.font.weight")};\n}\n\n.p-listbox-empty-message {\n    padding: ${t("listbox.empty.message.padding")};\n}\n\n/* For PrimeNG */\n\np-listbox.ng-invalid.ng-dirty > .p-listbox.p-component {\n    border-color: ${t("listbox.invalid.border.color")};\n}\n`,S0t={root:({props:t})=>["p-listbox p-component",{"p-listbox-striped":t.striped,"p-disabled":t.disabled,"p-invalid":t.invalid}],header:"p-listbox-header",pcFilter:"p-listbox-filter",listContainer:"p-listbox-list-container",list:"p-listbox-list",optionGroup:"p-listbox-option-group",option:({instance:t,props:r,option:e,index:i,getItemOptions:o})=>["p-listbox-option",{"p-listbox-option-selected":t.isSelected(e)&&r.highlightOnSelect,"p-focus":t.focusedOptionIndex===t.getOptionIndex(i,o),"p-disabled":t.isOptionDisabled(e)}],optionCheckIcon:"p-listbox-option-check-icon",optionBlankIcon:"p-listbox-option-blank-icon",emptyMessage:"p-listbox-empty-message"};let mpe=(()=>{class t extends gs{name="listbox";theme=T0t;classes=S0t;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const E0t=["item"],D0t=["group"],k0t=["header"],gpe=["filter"],I0t=["footer"],A0t=["emptyfilter"],M0t=["empty"],R0t=["filtericon"],O0t=["checkicon"],F0t=["checkmark"],P0t=["loader"],L0t=["headerchkbox"],N0t=["lastHiddenFocusableElement"],G0t=["firstHiddenFocusableElement"],B0t=["scroller"],V0t=["list"],j0t=["container"],H0t=[[["p-header"]],[["p-footer"]]],U0t=["p-header","p-footer"],v6=(t,r)=>({$implicit:t,options:r}),$0t=t=>({"p-checkbox-disabled":t}),EX=t=>({$implicit:t}),vpe=t=>({options:t}),DX=t=>({height:t}),Y0t=()=>({}),W0t=(t,r,e)=>({"p-listbox-option-selected":t,"p-focus":r,"p-disabled":e}),z0t=(t,r,e)=>({$implicit:t,index:r,selected:e}),q0t=t=>({implicit:t});function X0t(t,r){1&t&&n.eu8(0)}function K0t(t,r){if(1&t&&(n.j41(0,"div",23),n.SdG(1),n.DNE(2,X0t,1,0,"ng-container",24),n.k0s()),2&t){const e=n.XpG();n.R7$(2),n.Y8G("ngTemplateOutlet",e.headerTemplate||e._headerTemplate)("ngTemplateOutletContext",n.l_i(2,v6,e.modelValue(),e.visibleOptions()))}}function Q0t(t,r){}function J0t(t,r){1&t&&n.DNE(0,Q0t,0,0,"ng-template")}function Z0t(t,r){if(1&t&&n.DNE(0,J0t,1,0,null,24),2&t){const e=n.XpG(5);n.Y8G("ngTemplateOutlet",e.checkIconTemplate||e._checkIconTemplate)("ngTemplateOutletContext",n.eq3(2,EX,e.allSelected()))}}function eyt(t,r){1&t&&(n.qex(0),n.DNE(1,Z0t,1,4,"ng-template",null,6,n.C5r),n.bVm())}function tyt(t,r){if(1&t&&(n.j41(0,"p-checkbox",31),n.DNE(1,eyt,3,0,"ng-container",19),n.k0s()),2&t){const e=n.XpG(3);n.Y8G("ngModel",e.allSelected())("disabled",e.disabled)("tabindex",-1)("variant",(e.config.inputStyle(),"filled"))("binary",!0),n.R7$(),n.Y8G("ngIf",e.checkIconTemplate||e._checkIconTemplate)}}function nyt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",27),n.bIt("click",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onToggleAll(o))})("keydown",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onHeaderCheckboxKeyDown(o))}),n.j41(1,"div",28)(2,"input",29,5),n.bIt("focus",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onHeaderCheckboxFocus(o))})("blur",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.onHeaderCheckboxBlur())}),n.k0s()(),n.DNE(4,tyt,2,6,"p-checkbox",30),n.k0s()}if(2&t){const e=n.XpG(2);n.Y8G("ngClass",n.eq3(6,$0t,e.disabled)),n.R7$(),n.BMQ("data-p-hidden-accessible",!0),n.R7$(),n.Y8G("disabled",e.disabled),n.BMQ("checked",e.allSelected())("aria-label",e.toggleAllAriaLabel),n.R7$(2),n.Y8G("ngIf",e.checkbox&&e.multiple)}}function iyt(t,r){1&t&&n.eu8(0)}function ryt(t,r){if(1&t&&(n.qex(0),n.DNE(1,iyt,1,0,"ng-container",24),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngTemplateOutlet",e.filterTemplate||e._filterTemplate)("ngTemplateOutletContext",n.eq3(2,vpe,e.filterOptions))}}function oyt(t,r){1&t&&n.nrm(0,"SearchIcon",38),2&t&&(n.Y8G("styleClass","p-listbox-filter-icon"),n.BMQ("aria-hidden",!0))}function syt(t,r){}function ayt(t,r){1&t&&n.DNE(0,syt,0,0,"ng-template")}function lyt(t,r){if(1&t&&(n.j41(0,"span",39),n.DNE(1,ayt,1,0,null,40),n.k0s()),2&t){const e=n.XpG(4);n.BMQ("aria-hidden",!0),n.R7$(),n.Y8G("ngTemplateOutlet",e.filterIconTemplate||e._filterIconTemplate)}}function cyt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",34)(1,"p-iconfield")(2,"input",35,7),n.bIt("input",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.onFilterChange(o))})("keydown",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.onFilterKeyDown(o))})("focus",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.onFilterFocus(o))})("blur",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.onFilterBlur(o))}),n.k0s(),n.j41(4,"p-inputicon"),n.DNE(5,oyt,1,2,"SearchIcon",36)(6,lyt,2,2,"span",37),n.k0s()()()}if(2&t){const e=n.XpG(3);n.R7$(2),n.Y8G("value",e._filterValue()||"")("disabled",e.disabled)("tabindex",e.disabled||e.focused?-1:e.tabindex),n.BMQ("aria-owns",e.id+"_list")("aria-activedescendant",e.focusedOptionId)("placeholder",e.filterPlaceHolder)("aria-label",e.ariaFilterLabel),n.R7$(3),n.Y8G("ngIf",!e.filterIconTemplate&&!e._filterIconTemplate),n.R7$(),n.Y8G("ngIf",e.filterIconTemplate||e._filterIconTemplate)}}function uyt(t,r){if(1&t&&(n.DNE(0,cyt,7,9,"div",32),n.j41(1,"span",33),n.EFF(2),n.k0s()),2&t){const e=n.XpG(2);n.Y8G("ngIf",e.filter),n.R7$(),n.BMQ("data-p-hidden-accessible",!0),n.R7$(),n.SpI(" ",e.filterResultMessageText," ")}}function dyt(t,r){if(1&t&&(n.j41(0,"div",23),n.DNE(1,nyt,5,8,"div",25)(2,ryt,2,4,"ng-container",26)(3,uyt,3,3,"ng-template",null,4,n.C5r),n.k0s()),2&t){const e=n.sdS(4),i=n.XpG();n.R7$(),n.Y8G("ngIf",i.checkbox&&i.multiple&&i.showToggleAll),n.R7$(),n.Y8G("ngIf",i.filterTemplate||i._filterTemplate)("ngIfElse",e)}}function pyt(t,r){1&t&&n.eu8(0)}function hyt(t,r){if(1&t&&n.DNE(0,pyt,1,0,"ng-container",24),2&t){const e=r.$implicit,i=r.options;n.XpG(2);const o=n.sdS(10);n.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",n.l_i(2,v6,e,i))}}function fyt(t,r){1&t&&n.eu8(0)}function myt(t,r){if(1&t&&n.DNE(0,fyt,1,0,"ng-container",24),2&t){const e=r.options,i=n.XpG(3);n.Y8G("ngTemplateOutlet",i.loaderTemplate||i._loaderTemplate)("ngTemplateOutletContext",n.eq3(2,vpe,e))}}function gyt(t,r){1&t&&n.DNE(0,myt,1,4,"ng-template",null,10,n.C5r)}function vyt(t,r){if(1&t){const e=n.RV6();n.j41(0,"p-scroller",41,8),n.bIt("onLazyLoad",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onLazyLoad.emit(o))}),n.DNE(2,hyt,1,5,"ng-template",null,9,n.C5r)(4,gyt,2,0),n.k0s()}if(2&t){const e=n.XpG();n.Aen(n.eq3(9,DX,e.scrollHeight)),n.Y8G("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize)("autoSize",!0)("lazy",e.lazy)("options",e.virtualScrollOptions)("tabindex",e.scrollerTabIndex),n.R7$(4),n.vxM(e.loaderTemplate||e._loaderTemplate?4:-1)}}function _yt(t,r){1&t&&n.eu8(0)}function yyt(t,r){if(1&t&&(n.qex(0),n.DNE(1,_yt,1,0,"ng-container",24),n.bVm()),2&t){const e=n.XpG(),i=n.sdS(10);n.R7$(),n.Y8G("ngTemplateOutlet",i)("ngTemplateOutletContext",n.l_i(3,v6,e.visibleOptions(),n.lJ4(2,Y0t)))}}function byt(t,r){if(1&t&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&t){const e=n.XpG(2).$implicit,i=n.XpG(2);n.R7$(),n.JRh(i.getOptionGroupLabel(e.optionGroup))}}function Cyt(t,r){1&t&&n.eu8(0)}function wyt(t,r){if(1&t&&(n.qex(0),n.j41(1,"li",45),n.DNE(2,byt,2,1,"span",19)(3,Cyt,1,0,"ng-container",24),n.k0s(),n.bVm()),2&t){const e=n.XpG(),i=e.$implicit,o=e.index,s=n.XpG().options,a=n.XpG();n.R7$(),n.Y8G("ngStyle",n.eq3(5,DX,s.itemSize+"px")),n.BMQ("id",a.id+"_"+a.getOptionIndex(o,s)),n.R7$(),n.Y8G("ngIf",!a.groupTemplate&&!a._groupTemplate),n.R7$(),n.Y8G("ngTemplateOutlet",a.groupTemplate||a._groupTemplate)("ngTemplateOutletContext",n.eq3(7,EX,i.optionGroup))}}function Tyt(t,r){}function Syt(t,r){1&t&&n.DNE(0,Tyt,0,0,"ng-template")}function xyt(t,r){if(1&t&&n.DNE(0,Syt,1,0,null,24),2&t){const e=n.XpG(4).$implicit,i=n.XpG(2);n.Y8G("ngTemplateOutlet",i.checkIconTemplate||i._checkIconTemplate)("ngTemplateOutletContext",n.eq3(2,EX,i.isSelected(e)))}}function Eyt(t,r){1&t&&(n.qex(0),n.DNE(1,xyt,1,4,"ng-template",null,6,n.C5r),n.bVm())}function Dyt(t,r){if(1&t&&(n.j41(0,"p-checkbox",48),n.DNE(1,Eyt,3,0,"ng-container",19),n.k0s()),2&t){const e=n.XpG(2).$implicit,i=n.XpG(2);n.Y8G("ngModel",i.isSelected(e))("readonly",!0)("disabled",i.disabled||i.isOptionDisabled(e))("tabindex",-1)("variant",(i.config.inputStyle(),"filled"))("binary",!0),n.R7$(),n.Y8G("ngIf",i.checkIconTemplate||i._checkIconTemplate)}}function kyt(t,r){1&t&&n.nrm(0,"BlankIcon",50)}function Iyt(t,r){1&t&&n.nrm(0,"CheckIcon",50)}function Ayt(t,r){if(1&t&&(n.qex(0),n.DNE(1,kyt,1,0,"BlankIcon",49)(2,Iyt,1,0,"CheckIcon",49),n.bVm()),2&t){const e=n.XpG(3).$implicit,i=n.XpG(2);n.R7$(),n.Y8G("ngIf",!i.isSelected(e)),n.R7$(),n.Y8G("ngIf",i.isSelected(e))}}function Myt(t,r){1&t&&n.eu8(0)}function Ryt(t,r){if(1&t&&(n.qex(0),n.DNE(1,Ayt,3,2,"ng-container",19)(2,Myt,1,0,"ng-container",24),n.bVm()),2&t){const e=n.XpG(2).$implicit,i=n.XpG(2);n.R7$(),n.Y8G("ngIf",!i.checkmarkTemplate&&!i._checkmarkTemplate),n.R7$(),n.Y8G("ngTemplateOutlet",i.checkmarkTemplate||i._checkmarkTemplate)("ngTemplateOutletContext",n.eq3(3,q0t,i.isSelected(e)))}}function Oyt(t,r){if(1&t&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&t){const e=n.XpG(2).$implicit,i=n.XpG(2);n.R7$(),n.JRh(i.getOptionLabel(e))}}function Fyt(t,r){1&t&&n.eu8(0)}function Pyt(t,r){if(1&t){const e=n.RV6();n.qex(0),n.j41(1,"li",46),n.bIt("click",function(o){n.eBV(e);const s=n.XpG(),a=s.$implicit,l=s.index,c=n.XpG().options,d=n.XpG();return n.Njj(d.onOptionSelect(o,a,d.getOptionIndex(l,c)))})("dblclick",function(o){n.eBV(e);const s=n.XpG().$implicit,a=n.XpG(2);return n.Njj(a.onOptionDoubleClick(o,s))})("mousedown",function(o){n.eBV(e);const s=n.XpG().index,a=n.XpG().options,l=n.XpG();return n.Njj(l.onOptionMouseDown(o,l.getOptionIndex(s,a)))})("mouseenter",function(o){n.eBV(e);const s=n.XpG().index,a=n.XpG().options,l=n.XpG();return n.Njj(l.onOptionMouseEnter(o,l.getOptionIndex(s,a)))})("touchend",function(){n.eBV(e);const o=n.XpG(3);return n.Njj(o.onOptionTouchEnd())}),n.DNE(2,Dyt,2,7,"p-checkbox",47)(3,Ryt,3,5,"ng-container",19)(4,Oyt,2,1,"span",19)(5,Fyt,1,0,"ng-container",24),n.k0s(),n.bVm()}if(2&t){const e=n.XpG(),i=e.$implicit,o=e.index,s=n.XpG().options,a=n.XpG();n.R7$(),n.Y8G("ngStyle",n.eq3(13,DX,s.itemSize+"px"))("ngClass",n.sMw(15,W0t,a.isSelected(i)&&a.highlightOnSelect,a.focusedOptionIndex()===a.getOptionIndex(o,s),a.isOptionDisabled(i))),n.BMQ("id",a.id+"_"+a.getOptionIndex(o,s))("aria-label",a.getOptionLabel(i))("aria-selected",a.isSelected(i))("aria-disabled",a.isOptionDisabled(i))("aria-setsize",a.ariaSetSize)("ariaPosInset",a.getAriaPosInset(a.getOptionIndex(o,s))),n.R7$(),n.Y8G("ngIf",a.checkbox&&a.multiple),n.R7$(),n.Y8G("ngIf",a.checkmark),n.R7$(),n.Y8G("ngIf",!a.itemTemplate&&!a._itemTemplate),n.R7$(),n.Y8G("ngTemplateOutlet",a.itemTemplate||a._itemTemplate)("ngTemplateOutletContext",n.sMw(19,z0t,i,a.getOptionIndex(o,s),a.isSelected(i)))}}function Lyt(t,r){if(1&t&&n.DNE(0,wyt,4,9,"ng-container",19)(1,Pyt,6,23,"ng-container",19),2&t){const e=r.$implicit,i=n.XpG(2);n.Y8G("ngIf",i.isOptionGroup(e)),n.R7$(),n.Y8G("ngIf",!i.isOptionGroup(e))}}function Nyt(t,r){if(1&t&&n.EFF(0),2&t){const e=n.XpG(3);n.SpI(" ",e.emptyFilterMessageText," ")}}function Gyt(t,r){1&t&&n.eu8(0,null,12)}function Byt(t,r){if(1&t&&n.DNE(0,Gyt,2,0,"ng-container",40),2&t){const e=n.XpG(3);n.Y8G("ngTemplateOutlet",e.emptyFilterTemplate||e._emptyFilterTemplate||e._emptyTemplate||e.emptyTemplate)}}function Vyt(t,r){if(1&t&&(n.j41(0,"li",51),n.DNE(1,Nyt,1,1)(2,Byt,1,1,"ng-container"),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.vxM(e.emptyFilterTemplate||e._emptyFilterTemplate||e._emptyTemplate||e.emptyTemplate?2:1)}}function jyt(t,r){if(1&t&&n.EFF(0),2&t){const e=n.XpG(3);n.SpI(" ",e.emptyMessage," ")}}function Hyt(t,r){1&t&&n.eu8(0,null,13)}function Uyt(t,r){if(1&t&&n.DNE(0,Hyt,2,0,"ng-container",40),2&t){const e=n.XpG(3);n.Y8G("ngTemplateOutlet",e.emptyTemplate||e._emptyTemplate)}}function $yt(t,r){if(1&t&&(n.j41(0,"li",51),n.DNE(1,jyt,1,1)(2,Uyt,1,1,"ng-container"),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.vxM(e.emptyTemplate||e._emptyTemplate?2:1)}}function Yyt(t,r){if(1&t){const e=n.RV6();n.j41(0,"ul",42,11),n.bIt("focus",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onListFocus(o))})("blur",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onListBlur(o))})("keydown",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onListKeyDown(o))}),n.DNE(2,Lyt,2,2,"ng-template",43)(3,Vyt,3,1,"li",44)(4,$yt,3,1,"li",44),n.k0s()}if(2&t){const e=r.$implicit,i=r.options,o=n.XpG();n.Aen(i.contentStyle),n.Y8G("tabindex",-1)("ngClass",i.contentStyleClass),n.BMQ("aria-multiselectable",!0)("aria-activedescendant",o.focused?o.focusedOptionId:void 0)("aria-label",o.ariaLabel)("aria-disabled",o.disabled),n.R7$(2),n.Y8G("ngForOf",e),n.R7$(),n.Y8G("ngIf",o.hasFilter()&&o.isEmpty()),n.R7$(),n.Y8G("ngIf",!o.hasFilter()&&o.isEmpty())}}function Wyt(t,r){1&t&&n.eu8(0)}function zyt(t,r){if(1&t&&(n.j41(0,"div",52),n.SdG(1,1),n.DNE(2,Wyt,1,0,"ng-container",24),n.k0s()),2&t){const e=n.XpG();n.R7$(2),n.Y8G("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)("ngTemplateOutletContext",n.l_i(2,v6,e.modelValue(),e.visibleOptions()))}}function qyt(t,r){if(1&t&&(n.j41(0,"span",22),n.EFF(1),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.SpI(" ",e.emptyMessage," ")}}const Xyt={provide:tl,useExisting:(0,n.Rfq)(()=>kX),multi:!0};let kX=(()=>{class t extends jo{filterService;id;searchMessage;emptySelectionMessage;selectionMessage;autoOptionFocus=!0;ariaLabel;selectOnFocus;searchLocale;focusOnHover=!0;filterMessage;filterFields;lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;scrollHeight="14rem";tabindex=0;multiple;style;styleClass;listStyle;listStyleClass;readonly;disabled;checkbox=!1;filter=!1;filterBy;filterMatchMode="contains";filterLocale;metaKeySelection=!1;dataKey;showToggleAll=!0;optionLabel;optionValue;optionGroupChildren="items";optionGroupLabel="label";optionDisabled;ariaFilterLabel;filterPlaceHolder;emptyFilterMessage;emptyMessage;group;get options(){return this._options()}set options(e){this._options.set(e)}get filterValue(){return this._filterValue()}set filterValue(e){this._filterValue.set(e)}get selectAll(){return this._selectAll}set selectAll(e){this._selectAll=e}striped=!1;highlightOnSelect=!0;checkmark=!1;onChange=new n.bkB;onClick=new n.bkB;onDblClick=new n.bkB;onFilter=new n.bkB;onFocus=new n.bkB;onBlur=new n.bkB;onSelectAllChange=new n.bkB;onLazyLoad=new n.bkB;headerCheckboxViewChild;filterViewChild;lastHiddenFocusableElement;firstHiddenFocusableElement;scroller;listViewChild;containerViewChild;headerFacet;footerFacet;itemTemplate;groupTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;filterIconTemplate;checkIconTemplate;checkmarkTemplate;loaderTemplate;templates;_itemTemplate;_groupTemplate;_headerTemplate;_filterTemplate;_footerTemplate;_emptyFilterTemplate;_emptyTemplate;_filterIconTemplate;_checkIconTemplate;_checkmarkTemplate;_loaderTemplate;_filterValue=(0,n.vPA)(null);_filteredOptions;filterOptions;filtered;value;onModelChange=()=>{};onModelTouched=()=>{};optionTouched;focus;headerCheckboxFocus;translationSubscription;focused;scrollerTabIndex="0";_componentStyle=(0,n.WQX)(mpe);get containerClass(){return{"p-listbox p-component":!0,"p-listbox-striped":this.striped,"p-disabled":this.disabled}}get focusedOptionId(){return-1!==this.focusedOptionIndex()?`${this.id}_${this.focusedOptionIndex()}`:null}get filterResultMessageText(){return qs(this.visibleOptions())?this.filterMessageText.replaceAll("{0}",this.visibleOptions().length):this.emptyFilterMessageText}get filterMessageText(){return this.filterMessage||this.config.translation.searchMessage||""}get searchMessageText(){return this.searchMessage||this.config.translation.searchMessage||""}get emptyFilterMessageText(){return this.emptyFilterMessage||this.config.translation.emptySearchMessage||this.config.translation.emptyFilterMessage||""}get selectionMessageText(){return this.selectionMessage||this.config.translation.selectionMessage||""}get emptySelectionMessageText(){return this.emptySelectionMessage||this.config.translation.emptySelectionMessage||""}get selectedMessageText(){return this.hasSelectedOption()?this.selectionMessageText.replaceAll("{0}",this.multiple?this.modelValue().length:"1"):this.emptySelectionMessageText}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}get virtualScrollerDisabled(){return!this.virtualScroll}get searchFields(){return this.filterBy?.split(",")||this.filterFields||[this.optionLabel]}get toggleAllAriaLabel(){return this.config.translation.aria?this.config.translation.aria[this.allSelected()?"selectAll":"unselectAll"]:void 0}searchValue;searchTimeout;_selectAll=null;_options=(0,n.vPA)(null);startRangeIndex=(0,n.vPA)(-1);focusedOptionIndex=(0,n.vPA)(-1);modelValue=(0,n.vPA)(null);visibleOptions=(0,n.EWP)(()=>{const e=this.group?this.flatOptions(this._options()):this._options()||[];return this._filterValue()?this.filterService.filter(e,this.searchFields,this._filterValue(),this.filterMatchMode,this.filterLocale):e});constructor(e){super(),this.filterService=e}ngOnInit(){super.ngOnInit(),this.id=this.id||Bl("pn_id_"),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.cd.markForCheck()}),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterChange(e),reset:()=>this.resetFilter()})}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this._itemTemplate=e.template;break;case"group":this._groupTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"filter":this._filterTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"empty":this._emptyTemplate=e.template;break;case"emptyfilter":this._emptyFilterTemplate=e.template;break;case"filtericon":this._filterIconTemplate=e.template;break;case"checkicon":this._checkIconTemplate=e.template;break;case"checkmark":this._checkmarkTemplate=e.template;break;case"loader":this._loaderTemplate=e.template}})}writeValue(e){this.value=e,this.modelValue.set(this.value),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}flatOptions(e){return(e||[]).reduce((i,o,s)=>{i.push({optionGroup:o,group:!0,index:s});const a=this.getOptionGroupChildren(o);return a&&a.forEach(l=>i.push(l)),i},[])}autoUpdateModel(){if(this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()&&!this.multiple){const e=this.findFirstFocusedOptionIndex();this.focusedOptionIndex.set(e),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()])}}updateModel(e,i){this.value=e,this.modelValue.set(e),this.onModelChange(e),this.onChange.emit({originalEvent:i,value:this.value})}removeOption(e){return this.modelValue().filter(i=>!id(i,this.getOptionValue(e),this.equalityKey()))}onOptionSelect(e,i,o=-1){this.disabled||this.isOptionDisabled(i)||this.readonly||(e&&this.onClick.emit({originalEvent:e,option:i,value:this.value}),this.multiple?this.onOptionSelectMultiple(e,i):this.onOptionSelectSingle(e,i),this.optionTouched=!1,-1!==o&&this.focusedOptionIndex.set(o))}onOptionSelectMultiple(e,i){let o=this.isSelected(i),s=null;if(!this.optionTouched&&this.metaKeySelection){let l=e.metaKey||e.ctrlKey;o?s=l?this.removeOption(i):[this.getOptionValue(i)]:(s=l&&this.modelValue()||[],s=[...s,this.getOptionValue(i)])}else s=o?this.removeOption(i):[...this.modelValue()||[],this.getOptionValue(i)];this.updateModel(s,e)}onOptionSelectSingle(e,i){let o=this.isSelected(i),s=!1,a=null;!this.optionTouched&&this.metaKeySelection?o?(e.metaKey||e.ctrlKey)&&(a=null,s=!0):(a=this.getOptionValue(i),s=!0):(a=o?null:this.getOptionValue(i),s=!0),s&&this.updateModel(a,e)}onOptionSelectRange(e,i=-1,o=-1){if(-1===i&&(i=this.findNearestSelectedOptionIndex(o,!0)),-1===o&&(o=this.findNearestSelectedOptionIndex(i)),-1!==i&&-1!==o){const s=Math.min(i,o),a=Math.max(i,o),l=this.visibleOptions().slice(s,a+1).filter(c=>this.isValidOption(c)).map(c=>this.getOptionValue(c));this.updateModel(l,e)}}onToggleAll(e){if(!this.disabled&&!this.readonly){if(la(this.headerCheckboxViewChild.nativeElement),null!==this.selectAll)this.onSelectAllChange.emit({originalEvent:e,checked:!this.allSelected()});else{const i=this.allSelected()?[]:this.visibleOptions().filter(o=>this.isValidOption(o)).map(o=>this.getOptionValue(o));this.updateModel(i,e),this.onChange.emit({originalEvent:e,value:this.value})}e.preventDefault()}}allSelected(){return null!==this.selectAll?this.selectAll:qs(this.visibleOptions())&&this.visibleOptions().every(e=>this.isOptionGroup(e)||this.isOptionDisabled(e)||this.isSelected(e))}onOptionTouchEnd(){this.disabled||(this.optionTouched=!0)}onOptionMouseDown(e,i){this.changeFocusedOptionIndex(e,i)}onOptionMouseEnter(e,i){this.focusOnHover&&this.changeFocusedOptionIndex(e,i)}onOptionDoubleClick(e,i){this.disabled||this.isOptionDisabled(i)||this.readonly||this.onDblClick.emit({originalEvent:e,option:i,value:this.value})}onFirstHiddenFocus(e){la(this.listViewChild.nativeElement);const i=bx(this.el.nativeElement,':not([data-p-hidden-focusable="true"])');this.lastHiddenFocusableElement.nativeElement.tabIndex=lp(i)?"-1":void 0,this.firstHiddenFocusableElement.nativeElement.tabIndex=-1}onLastHiddenFocus(e){e.relatedTarget===this.listViewChild.nativeElement?(la(bx(this.el.nativeElement,":not(.p-hidden-focusable)")),this.firstHiddenFocusableElement.nativeElement.tabIndex=void 0):la(this.firstHiddenFocusableElement.nativeElement),this.lastHiddenFocusableElement.nativeElement.tabIndex=-1}onFocusout(e){!this.el.nativeElement.contains(e.relatedTarget)&&this.lastHiddenFocusableElement&&this.firstHiddenFocusableElement&&(this.firstHiddenFocusableElement.nativeElement.tabIndex=this.lastHiddenFocusableElement.nativeElement.tabIndex=void 0,this.containerViewChild.nativeElement.tabIndex="0",this.scrollerTabIndex="0")}onListFocus(e){this.focused=!0;const i=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(i),this.onFocus.emit(e),this.containerViewChild.nativeElement.tabIndex="-1",this.scrollerTabIndex="-1"}onFilterFocus(e){this.containerViewChild.nativeElement.tabIndex="-1"}onListBlur(e){this.focused=!1,this.focusedOptionIndex.set(-1),this.startRangeIndex.set(-1),this.searchValue=""}onHeaderCheckboxFocus(e){this.headerCheckboxFocus=!0}onHeaderCheckboxBlur(){this.headerCheckboxFocus=!1}onHeaderCheckboxKeyDown(e){if(this.disabled)e.preventDefault();else switch(e.code){case"Space":case"Enter":this.onToggleAll(e);break;case"Tab":this.onHeaderCheckboxTabKeyDown(e)}}onHeaderCheckboxTabKeyDown(e){la(this.listViewChild.nativeElement),e.preventDefault()}onFilterChange(e){let i=e.target.value?.trim();this._filterValue.set(i),this.focusedOptionIndex.set(-1),this.startRangeIndex.set(-1),this.onFilter.emit({originalEvent:e,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller.scrollToIndex(0)}onFilterBlur(e){this.focusedOptionIndex.set(-1),this.startRangeIndex.set(-1)}onListKeyDown(e){const i=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"Space":case"NumpadEnter":this.onSpaceKey(e);break;case"Tab":break;case"ShiftLeft":case"ShiftRight":this.onShiftKey();break;default:if(this.multiple&&"KeyA"===e.code&&i){const o=this.visibleOptions().filter(s=>this.isValidOption(s)).map(s=>this.getOptionValue(s));this.updateModel(o,e),e.preventDefault();break}!i&&rd(e.key)&&(this.searchOptions(e,e.key),e.preventDefault())}}onFilterKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":this.onEnterKey(e);break;case"ShiftLeft":case"ShiftRight":this.onShiftKey()}}onArrowDownKey(e){const i=-1!==this.focusedOptionIndex()?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();this.multiple&&e.shiftKey&&this.onOptionSelectRange(e,this.startRangeIndex(),i),this.changeFocusedOptionIndex(e,i),e.preventDefault()}onArrowUpKey(e){const i=-1!==this.focusedOptionIndex()?this.findPrevOptionIndex(this.focusedOptionIndex()):this.findLastFocusedOptionIndex();this.multiple&&e.shiftKey&&this.onOptionSelectRange(e,i,this.startRangeIndex()),this.changeFocusedOptionIndex(e,i),e.preventDefault()}onArrowLeftKey(e,i=!1){i&&this.focusedOptionIndex.set(-1)}onHomeKey(e,i=!1){if(i)e.currentTarget.setSelectionRange(0,0),this.focusedOptionIndex.set(-1);else{let o=e.metaKey||e.ctrlKey,s=this.findFirstOptionIndex();this.multiple&&e.shiftKey&&o&&this.onOptionSelectRange(e,s,this.startRangeIndex()),this.changeFocusedOptionIndex(e,s)}e.preventDefault()}onEndKey(e,i=!1){if(i){const o=e.currentTarget,s=o.value.length;o.setSelectionRange(s,s),this.focusedOptionIndex.set(-1)}else{let o=e.metaKey||e.ctrlKey,s=this.findLastOptionIndex();this.multiple&&e.shiftKey&&o&&this.onOptionSelectRange(e,this.startRangeIndex(),s),this.changeFocusedOptionIndex(e,s)}e.preventDefault()}onPageDownKey(e){this.scrollInView(0),e.preventDefault()}onPageUpKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onEnterKey(e){-1!==this.focusedOptionIndex()&&(this.multiple&&e.shiftKey?this.onOptionSelectRange(e,this.focusedOptionIndex()):this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()])),e.preventDefault()}onSpaceKey(e){this.onEnterKey(e)}onShiftKey(){const e=this.focusedOptionIndex();this.startRangeIndex.set(e)}getOptionGroupChildren(e){return this.optionGroupChildren?ml(e,this.optionGroupChildren):e.items}getOptionGroupLabel(e){return this.optionGroupLabel?ml(e,this.optionGroupLabel):e&&void 0!==e.label?e.label:e}getOptionLabel(e){return this.optionLabel?ml(e,this.optionLabel):null!=e.label?e.label:e}getOptionIndex(e,i){return this.virtualScrollerDisabled?e:i&&i.getItemOptions(e).index}getOptionValue(e){return this.optionValue?ml(e,this.optionValue):!this.optionLabel&&e&&void 0!==e.value?e.value:e}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(i=>this.isOptionGroup(i)).length:e)+1}hasSelectedOption(){return qs(this.modelValue())}isOptionGroup(e){return this.optionGroupLabel&&e.optionGroup&&e.group}changeFocusedOptionIndex(e,i){this.focusedOptionIndex()!==i&&(this.focusedOptionIndex.set(i),this.scrollInView(),this.selectOnFocus&&!this.multiple&&this.onOptionSelect(e,this.visibleOptions()[i]))}searchOptions(e,i){this.searchValue=(this.searchValue||"")+i;let o=-1,s=!1;return-1!==this.focusedOptionIndex()?(o=this.visibleOptions().slice(this.focusedOptionIndex()).findIndex(a=>this.isOptionMatched(a)),o=-1===o?this.visibleOptions().slice(0,this.focusedOptionIndex()).findIndex(a=>this.isOptionMatched(a)):o+this.focusedOptionIndex()):o=this.visibleOptions().findIndex(a=>this.isOptionMatched(a)),-1!==o&&(s=!0),-1===o&&-1===this.focusedOptionIndex()&&(o=this.findFirstFocusedOptionIndex()),-1!==o&&this.changeFocusedOptionIndex(e,o),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),s}isOptionMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))}scrollInView(e=-1){const o=xo(this.listViewChild.nativeElement,`li[id="${-1!==e?`${this.id}_${e}`:this.focusedOptionId}"]`);o?o.scrollIntoView&&o.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||this.virtualScroll&&this.scroller.scrollToIndex(-1!==e?e:this.focusedOptionIndex())}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findLastOptionIndex(){return Jp(this.visibleOptions(),e=>this.isValidOption(e))}findFirstFocusedOptionIndex(){const e=this.findFirstSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findLastFocusedOptionIndex(){const e=this.findLastSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}findLastSelectedOptionIndex(){return this.hasSelectedOption()?Jp(this.visibleOptions(),e=>this.isValidSelectedOption(e)):-1}findNextOptionIndex(e){const i=e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(o=>this.isValidOption(o)):-1;return i>-1?i+e+1:e}findNextSelectedOptionIndex(e){const i=this.hasSelectedOption()&&e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(o=>this.isValidSelectedOption(o)):-1;return i>-1?i+e+1:-1}findPrevSelectedOptionIndex(e){const i=this.hasSelectedOption()&&e>0?Jp(this.visibleOptions().slice(0,e),o=>this.isValidSelectedOption(o)):-1;return i>-1?i:-1}findFirstSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findPrevOptionIndex(e){const i=e>0?Jp(this.visibleOptions().slice(0,e),o=>this.isValidOption(o)):-1;return i>-1?i:e}findNearestSelectedOptionIndex(e,i=!1){let o=-1;return this.hasSelectedOption()&&(i?(o=this.findPrevSelectedOptionIndex(e),o=-1===o?this.findNextSelectedOptionIndex(e):o):(o=this.findNextSelectedOptionIndex(e),o=-1===o?this.findPrevSelectedOptionIndex(e):o)),o>-1?o:e}equalityKey(){return this.optionValue?null:this.dataKey}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}isOptionDisabled(e){return!!this.optionDisabled&&ml(e,this.optionDisabled)}isSelected(e){const i=this.getOptionValue(e);return this.multiple?(this.modelValue()||[]).some(o=>id(o,i,this.equalityKey())):id(this.modelValue(),i,this.equalityKey())}isValidOption(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isEmpty(){return!this._options()?.length||!this.visibleOptions()?.length}hasFilter(){return this._filterValue()&&this._filterValue().trim().length>0}resetFilter(){this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value=""),this._filterValue.set(null)}ngOnDestroy(){this.translationSubscription&&this.translationSubscription.unsubscribe(),super.ngOnDestroy()}static \u0275fac=function(i){return new(i||t)(n.rXU(Cx))};static \u0275cmp=n.VBU({type:t,selectors:[["p-listbox"],["p-listBox"],["p-list-box"]],contentQueries:function(i,o,s){if(1&i&&(n.wni(s,Q5,5),n.wni(s,rO,5),n.wni(s,E0t,4),n.wni(s,D0t,4),n.wni(s,k0t,4),n.wni(s,gpe,4),n.wni(s,I0t,4),n.wni(s,A0t,4),n.wni(s,M0t,4),n.wni(s,R0t,4),n.wni(s,O0t,4),n.wni(s,F0t,4),n.wni(s,P0t,4),n.wni(s,hs,4)),2&i){let a;n.mGM(a=n.lsd())&&(o.headerFacet=a.first),n.mGM(a=n.lsd())&&(o.footerFacet=a.first),n.mGM(a=n.lsd())&&(o.itemTemplate=a.first),n.mGM(a=n.lsd())&&(o.groupTemplate=a.first),n.mGM(a=n.lsd())&&(o.headerTemplate=a.first),n.mGM(a=n.lsd())&&(o.filterTemplate=a.first),n.mGM(a=n.lsd())&&(o.footerTemplate=a.first),n.mGM(a=n.lsd())&&(o.emptyFilterTemplate=a.first),n.mGM(a=n.lsd())&&(o.emptyTemplate=a.first),n.mGM(a=n.lsd())&&(o.filterIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.checkIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.checkmarkTemplate=a.first),n.mGM(a=n.lsd())&&(o.loaderTemplate=a.first),n.mGM(a=n.lsd())&&(o.templates=a)}},viewQuery:function(i,o){if(1&i&&(n.GBs(L0t,5),n.GBs(gpe,5),n.GBs(N0t,5),n.GBs(G0t,5),n.GBs(B0t,5),n.GBs(V0t,5),n.GBs(j0t,5)),2&i){let s;n.mGM(s=n.lsd())&&(o.headerCheckboxViewChild=s.first),n.mGM(s=n.lsd())&&(o.filterViewChild=s.first),n.mGM(s=n.lsd())&&(o.lastHiddenFocusableElement=s.first),n.mGM(s=n.lsd())&&(o.firstHiddenFocusableElement=s.first),n.mGM(s=n.lsd())&&(o.scroller=s.first),n.mGM(s=n.lsd())&&(o.listViewChild=s.first),n.mGM(s=n.lsd())&&(o.containerViewChild=s.first)}},inputs:{id:"id",searchMessage:"searchMessage",emptySelectionMessage:"emptySelectionMessage",selectionMessage:"selectionMessage",autoOptionFocus:[2,"autoOptionFocus","autoOptionFocus",n.L39],ariaLabel:"ariaLabel",selectOnFocus:[2,"selectOnFocus","selectOnFocus",n.L39],searchLocale:[2,"searchLocale","searchLocale",n.L39],focusOnHover:[2,"focusOnHover","focusOnHover",n.L39],filterMessage:"filterMessage",filterFields:"filterFields",lazy:[2,"lazy","lazy",n.L39],virtualScroll:[2,"virtualScroll","virtualScroll",n.L39],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",n.Udg],virtualScrollOptions:"virtualScrollOptions",scrollHeight:"scrollHeight",tabindex:[2,"tabindex","tabindex",n.Udg],multiple:[2,"multiple","multiple",n.L39],style:"style",styleClass:"styleClass",listStyle:"listStyle",listStyleClass:"listStyleClass",readonly:[2,"readonly","readonly",n.L39],disabled:[2,"disabled","disabled",n.L39],checkbox:[2,"checkbox","checkbox",n.L39],filter:[2,"filter","filter",n.L39],filterBy:"filterBy",filterMatchMode:"filterMatchMode",filterLocale:"filterLocale",metaKeySelection:[2,"metaKeySelection","metaKeySelection",n.L39],dataKey:"dataKey",showToggleAll:[2,"showToggleAll","showToggleAll",n.L39],optionLabel:"optionLabel",optionValue:"optionValue",optionGroupChildren:"optionGroupChildren",optionGroupLabel:"optionGroupLabel",optionDisabled:"optionDisabled",ariaFilterLabel:"ariaFilterLabel",filterPlaceHolder:"filterPlaceHolder",emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",group:[2,"group","group",n.L39],options:"options",filterValue:"filterValue",selectAll:"selectAll",striped:[2,"striped","striped",n.L39],highlightOnSelect:[2,"highlightOnSelect","highlightOnSelect",n.L39],checkmark:[2,"checkmark","checkmark",n.L39]},outputs:{onChange:"onChange",onClick:"onClick",onDblClick:"onDblClick",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onSelectAllChange:"onSelectAllChange",onLazyLoad:"onLazyLoad"},features:[n.Jv_([Xyt,mpe]),n.GFd,n.Vt3],ngContentSelectors:U0t,decls:17,vars:25,consts:[["firstHiddenFocusableElement",""],["container",""],["buildInItems",""],["lastHiddenFocusableElement",""],["builtInFilterElement",""],["headerchkbox",""],["icon",""],["filterInput",""],["scroller",""],["content",""],["loader",""],["list",""],["emptyFilter",""],["empty",""],[3,"focusout","ngClass","ngStyle"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus","tabindex"],["class","p-listbox-header",4,"ngIf"],[3,"ngClass","ngStyle"],[3,"items","style","itemSize","autoSize","lazy","options","tabindex","onLazyLoad",4,"ngIf"],[4,"ngIf"],["class","p-listbox-footer",4,"ngIf"],["role","status","aria-live","polite","class","p-hidden-accessible",4,"ngIf"],["role","status","aria-live","polite",1,"p-hidden-accessible"],[1,"p-listbox-header"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-checkbox p-component",3,"ngClass","click","keydown",4,"ngIf"],[4,"ngIf","ngIfElse"],[1,"p-checkbox","p-component",3,"click","keydown","ngClass"],[1,"p-hidden-accessible"],["type","checkbox","readonly","readonly",3,"focus","blur","disabled"],["styleClass","p-listbox-option-check-icon",3,"ngModel","disabled","tabindex","variant","binary",4,"ngIf"],["styleClass","p-listbox-option-check-icon",3,"ngModel","disabled","tabindex","variant","binary"],["class","p-listbox-filter-container",4,"ngIf"],["role","status","attr.aria-live","polite",1,"p-hidden-accessible"],[1,"p-listbox-filter-container"],["pInputText","","type","text","role","searchbox",1,"p-listbox-filter",3,"input","keydown","focus","blur","value","disabled","tabindex"],[3,"styleClass",4,"ngIf"],["class","p-listbox-filter-icon",4,"ngIf"],[3,"styleClass"],[1,"p-listbox-filter-icon"],[4,"ngTemplateOutlet"],[3,"onLazyLoad","items","itemSize","autoSize","lazy","options","tabindex"],["role","listbox",1,"p-listbox-list",3,"focus","blur","keydown","tabindex","ngClass"],["ngFor","",3,"ngForOf"],["class","p-listbox-empty-message","role","option",4,"ngIf"],["role","option",1,"p-listbox-option-group",3,"ngStyle"],["pRipple","","role","option",1,"p-listbox-option",3,"click","dblclick","mousedown","mouseenter","touchend","ngStyle","ngClass"],["styleClass","p-listbox-option-check-icon",3,"ngModel","readonly","disabled","tabindex","variant","binary",4,"ngIf"],["styleClass","p-listbox-option-check-icon",3,"ngModel","readonly","disabled","tabindex","variant","binary"],["styleClass","p-listbox-option-check-icon",4,"ngIf"],["styleClass","p-listbox-option-check-icon"],["role","option",1,"p-listbox-empty-message"],[1,"p-listbox-footer"]],template:function(i,o){if(1&i){const s=n.RV6();n.NAR(H0t),n.j41(0,"div",14),n.bIt("focusout",function(l){return n.eBV(s),n.Njj(o.onFocusout(l))}),n.j41(1,"span",15,0),n.bIt("focus",function(l){return n.eBV(s),n.Njj(o.onFirstHiddenFocus(l))}),n.k0s(),n.DNE(3,K0t,3,5,"div",16)(4,dyt,5,3,"div",16),n.j41(5,"div",17,1),n.DNE(7,vyt,5,11,"p-scroller",18)(8,yyt,2,6,"ng-container",19)(9,Yyt,5,11,"ng-template",null,2,n.C5r),n.k0s(),n.DNE(11,zyt,3,5,"div",20)(12,qyt,2,1,"span",21),n.j41(13,"span",22),n.EFF(14),n.k0s(),n.j41(15,"span",15,3),n.bIt("focus",function(l){return n.eBV(s),n.Njj(o.onLastHiddenFocus(l))}),n.k0s()()}2&i&&(n.HbH(o.styleClass),n.Y8G("ngClass",o.containerClass)("ngStyle",o.style),n.BMQ("id",o.id),n.R7$(),n.Y8G("tabindex",o.disabled?-1:o.tabindex),n.BMQ("aria-hidden",!0)("data-p-hidden-focusable",!0),n.R7$(2),n.Y8G("ngIf",o.headerFacet||o.headerTemplate||o._headerTemplate),n.R7$(),n.Y8G("ngIf",o.checkbox&&o.multiple&&o.showToggleAll||o.filter),n.R7$(),n.HbH(o.listStyleClass),n.xc7("max-height",o.virtualScroll?"auto":o.scrollHeight||"auto"),n.Y8G("ngClass","p-listbox-list-container")("ngStyle",o.listStyle),n.BMQ("tabindex",!o.disabled&&"0"),n.R7$(2),n.Y8G("ngIf",o.virtualScroll),n.R7$(),n.Y8G("ngIf",!o.virtualScroll),n.R7$(3),n.Y8G("ngIf",o.footerFacet||o.footerTemplate||o._footerTemplate),n.R7$(),n.Y8G("ngIf",o.isEmpty()),n.R7$(2),n.SpI(" ",o.selectedMessageText," "),n.R7$(),n.Y8G("tabindex",o.disabled?-1:o.tabindex),n.BMQ("aria-hidden",!0)("data-p-hidden-focusable",!0))},dependencies:[gn,bi,oo,fi,uo,Jr,Mh,Db,kx,ak,Av,Dx,Ex,hf,d8,Ra,_o,ko,Di],encapsulation:2,changeDetection:0})}return t})(),Kyt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({imports:[kX,Di,Di]})}return t})();const Qyt=({dt:t})=>`\n.p-overlaybadge {\n    position: relative;\n}\n\n.p-overlaybadge .p-badge {\n    position: absolute;\n    top: 0;\n    right: 0;\n    transform: translate(50%, -50%);\n    transform-origin: 100% 0;\n    margin: 0;\n    outline-width: ${t("overlaybadge.outline.width")};\n    outline-style: solid;\n    outline-color: ${t("overlaybadge.outline.color")};\n}\n`,Jyt={root:"p-overlaybadge"};let _pe=(()=>{class t extends gs{name="overlaybadge";theme=Qyt;classes=Jyt;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const Zyt=["*"];let ype=(()=>{class t extends jo{styleClass;style;badgeSize;severity;value;badgeDisabled=!1;set size(e){this._size=e,!this.badgeSize&&this.size&&console.log("size property is deprecated and will removed in v18, use badgeSize instead.")}get size(){return this._size}_size;_componentStyle=(0,n.WQX)(_pe);constructor(){super()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=n.VBU({type:t,selectors:[["p-overlayBadge"],["p-overlay-badge"],["p-overlaybadge"]],inputs:{styleClass:"styleClass",style:"style",badgeSize:"badgeSize",severity:"severity",value:"value",badgeDisabled:[2,"badgeDisabled","badgeDisabled",n.L39],size:"size"},features:[n.Jv_([_pe]),n.GFd,n.Vt3],ngContentSelectors:Zyt,decls:3,vars:7,consts:[[1,"p-overlaybadge"],[3,"styleClass","badgeSize","severity","value","badgeDisabled"]],template:function(i,o){1&i&&(n.NAR(),n.j41(0,"div",0),n.SdG(1),n.nrm(2,"p-badge",1),n.k0s()),2&i&&(n.R7$(2),n.Aen(o.style),n.Y8G("styleClass",o.styleClass)("badgeSize",o.badgeSize)("severity",o.severity)("value",o.value)("badgeDisabled",o.badgeDisabled))},dependencies:[gn,dk,D8,Di],encapsulation:2,changeDetection:0})}return t})(),e1t=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({imports:[ype,Di,Di]})}return t})(),t1t=(()=>{class t{constructor(){this.style=(0,n.hFB)(""),this.class=(0,n.hFB)("")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["icon-filter"]],inputs:{style:[1,"style"],class:[1,"class"]},decls:2,vars:4,consts:[["xmlns","http://www.w3.org/2000/svg","width","24","height","20","fill","currentColor","viewBox","0 0 24 20"],["d","M1.6875 5.31253H5.55469C5.76122 6.11917 6.23034 6.83413 6.8881 7.34469C7.54586 7.85526 8.35484 8.13238 9.1875 8.13238C10.0202 8.13238 10.8291 7.85526 11.4869 7.34469C12.1447 6.83413 12.6138 6.11917 12.8203 5.31253H22.3125C22.5611 5.31253 22.7996 5.21376 22.9754 5.03794C23.1512 4.86213 23.25 4.62367 23.25 4.37503C23.25 4.12639 23.1512 3.88793 22.9754 3.71212C22.7996 3.5363 22.5611 3.43753 22.3125 3.43753H12.8203C12.6138 2.63089 12.1447 1.91593 11.4869 1.40537C10.8291 0.894803 10.0202 0.617676 9.1875 0.617676C8.35484 0.617676 7.54586 0.894803 6.8881 1.40537C6.23034 1.91593 5.76122 2.63089 5.55469 3.43753H1.6875C1.43886 3.43753 1.2004 3.5363 1.02459 3.71212C0.848772 3.88793 0.75 4.12639 0.75 4.37503C0.75 4.62367 0.848772 4.86213 1.02459 5.03794C1.2004 5.21376 1.43886 5.31253 1.6875 5.31253ZM9.1875 2.50003C9.55834 2.50003 9.92085 2.61 10.2292 2.81602C10.5375 3.02205 10.7779 3.31489 10.9198 3.6575C11.0617 4.00011 11.0988 4.37711 11.0265 4.74082C10.9541 5.10454 10.7755 5.43863 10.5133 5.70085C10.2511 5.96308 9.91701 6.14165 9.55329 6.214C9.18958 6.28635 8.81258 6.24922 8.46997 6.1073C8.12736 5.96539 7.83452 5.72507 7.62849 5.41672C7.42247 5.10838 7.3125 4.74587 7.3125 4.37503C7.3125 3.87775 7.51004 3.40083 7.86168 3.0492C8.21331 2.69757 8.69022 2.50003 9.1875 2.50003ZM22.3125 14.6875H20.3203C20.1138 13.8809 19.6447 13.1659 18.9869 12.6554C18.3291 12.1448 17.5202 11.8677 16.6875 11.8677C15.8548 11.8677 15.0459 12.1448 14.3881 12.6554C13.7303 13.1659 13.2612 13.8809 13.0547 14.6875H1.6875C1.43886 14.6875 1.2004 14.7863 1.02459 14.9621C0.848772 15.1379 0.75 15.3764 0.75 15.625C0.75 15.8737 0.848772 16.1121 1.02459 16.2879C1.2004 16.4638 1.43886 16.5625 1.6875 16.5625H13.0547C13.2612 17.3692 13.7303 18.0841 14.3881 18.5947C15.0459 19.1053 15.8548 19.3824 16.6875 19.3824C17.5202 19.3824 18.3291 19.1053 18.9869 18.5947C19.6447 18.0841 20.1138 17.3692 20.3203 16.5625H22.3125C22.5611 16.5625 22.7996 16.4638 22.9754 16.2879C23.1512 16.1121 23.25 15.8737 23.25 15.625C23.25 15.3764 23.1512 15.1379 22.9754 14.9621C22.7996 14.7863 22.5611 14.6875 22.3125 14.6875ZM16.6875 17.5C16.3167 17.5 15.9541 17.3901 15.6458 17.184C15.3375 16.978 15.0971 16.6852 14.9552 16.3426C14.8133 15.9999 14.7762 15.6229 14.8485 15.2592C14.9209 14.8955 15.0995 14.5614 15.3617 14.2992C15.6239 14.037 15.958 13.8584 16.3217 13.7861C16.6854 13.7137 17.0624 13.7508 17.405 13.8928C17.7476 14.0347 18.0405 14.275 18.2465 14.5833C18.4525 14.8917 18.5625 15.2542 18.5625 15.625C18.5625 16.1223 18.365 16.5992 18.0133 16.9509C17.6617 17.3025 17.1848 17.5 16.6875 17.5Z"]],template:function(i,o){1&i&&(n.qSk(),n.j41(0,"svg",0),n.nrm(1,"path",1),n.k0s()),2&i&&(n.Aen(o.style()),n.HbH(o.class()))},encapsulation:2})}}return t})(),n1t=(()=>{class t{constructor(){this.style=(0,n.hFB)(""),this.class=(0,n.hFB)("")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["icon-grid"]],inputs:{style:[1,"style"],class:[1,"class"]},decls:2,vars:4,consts:[["xmlns","http://www.w3.org/2000/svg","width","22","height","22","viewBox","0 0 22 22","fill","currentColor",1,"tw-block","tw-w-[24px]","tw-h-[24px]"],["d","M8 0H2C1.46957 0 0.960859 0.210714 0.585786 0.585786C0.210714 0.960859 0 1.46957 0 2V8C0 8.53043 0.210714 9.03914 0.585786 9.41421C0.960859 9.78929 1.46957 10 2 10H8C8.53043 10 9.03914 9.78929 9.41421 9.41421C9.78929 9.03914 10 8.53043 10 8V2C10 1.46957 9.78929 0.960859 9.41421 0.585786C9.03914 0.210714 8.53043 0 8 0ZM8 8H2V2H8V8ZM20 0H14C13.4696 0 12.9609 0.210714 12.5858 0.585786C12.2107 0.960859 12 1.46957 12 2V8C12 8.53043 12.2107 9.03914 12.5858 9.41421C12.9609 9.78929 13.4696 10 14 10H20C20.5304 10 21.0391 9.78929 21.4142 9.41421C21.7893 9.03914 22 8.53043 22 8V2C22 1.46957 21.7893 0.960859 21.4142 0.585786C21.0391 0.210714 20.5304 0 20 0ZM20 8H14V2H20V8ZM8 12H2C1.46957 12 0.960859 12.2107 0.585786 12.5858C0.210714 12.9609 0 13.4696 0 14V20C0 20.5304 0.210714 21.0391 0.585786 21.4142C0.960859 21.7893 1.46957 22 2 22H8C8.53043 22 9.03914 21.7893 9.41421 21.4142C9.78929 21.0391 10 20.5304 10 20V14C10 13.4696 9.78929 12.9609 9.41421 12.5858C9.03914 12.2107 8.53043 12 8 12ZM8 20H2V14H8V20ZM20 12H14C13.4696 12 12.9609 12.2107 12.5858 12.5858C12.2107 12.9609 12 13.4696 12 14V20C12 20.5304 12.2107 21.0391 12.5858 21.4142C12.9609 21.7893 13.4696 22 14 22H20C20.5304 22 21.0391 21.7893 21.4142 21.4142C21.7893 21.0391 22 20.5304 22 20V14C22 13.4696 21.7893 12.9609 21.4142 12.5858C21.0391 12.2107 20.5304 12 20 12ZM20 20H14V14H20V20Z"]],template:function(i,o){1&i&&(n.qSk(),n.j41(0,"svg",0),n.nrm(1,"path",1),n.k0s()),2&i&&(n.Aen(o.style()),n.HbH(o.class()))},encapsulation:2})}}return t})(),i1t=(()=>{class t{constructor(){this.style=(0,n.hFB)(""),this.class=(0,n.hFB)("")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["icon-table"]],inputs:{style:[1,"style"],class:[1,"class"]},decls:2,vars:4,consts:[["xmlns","http://www.w3.org/2000/svg","width","23","height","22","viewBox","0 0 23 22","fill","currentColor",1,"tw-block","tw-w-[24px]","tw-h-[24px]"],["d","M20.5 0H2.5C1.96957 0 1.46086 0.210714 1.08579 0.585786C0.710714 0.960859 0.5 1.46957 0.5 2V20C0.5 20.5304 0.710714 21.0391 1.08579 21.4142C1.46086 21.7893 1.96957 22 2.5 22H20.5C21.0304 22 21.5391 21.7893 21.9142 21.4142C22.2893 21.0391 22.5 20.5304 22.5 20V2C22.5 1.46957 22.2893 0.960859 21.9142 0.585786C21.5391 0.210714 21.0304 0 20.5 0ZM20.5 2V10H2.5V2H20.5ZM20.5 20H2.5V12H20.5V20Z"]],template:function(i,o){1&i&&(n.qSk(),n.j41(0,"svg",0),n.nrm(1,"path",1),n.k0s()),2&i&&(n.Aen(o.style()),n.HbH(o.class()))},encapsulation:2})}}return t})();var bI=function(t){return t.Orange="orange",t.Green="green",t}(bI||{});const r1t=(t,r,e)=>["tw-bg-transparent tw-border-0 tw-font-normal tw-p-0 tw-m-0 tw-tracking-wider tw-underline tw-underline-offset-2",t,r,e];let IX=(()=>{class t{constructor(){this.text=(0,n.hFB)(""),this.useAlternateStyle=(0,n.hFB)(!1),this.linkStyle=(0,n.hFB)(bI.Orange),this.class=(0,n.hFB)(""),this.clicked=(0,n.CGW)(),this.LinkStyle=bI}onClick(e){this.clicked.emit({event:e,action:"button-clicked"})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-primary-link-button"]],inputs:{text:[1,"text"],useAlternateStyle:[1,"useAlternateStyle"],linkStyle:[1,"linkStyle"],class:[1,"class"]},outputs:{clicked:"clicked"},decls:2,vars:6,consts:[["type","button",3,"click","ngClass"]],template:function(i,o){1&i&&(n.j41(0,"button",0),n.bIt("click",function(a){return o.onClick(a)}),n.EFF(1),n.k0s()),2&i&&(n.Y8G("ngClass",n.sMw(2,r1t,o.linkStyle()===o.LinkStyle.Orange?"tw-text-fa-orange-500 hover:tw-text-fa-orange-600":"",o.linkStyle()===o.LinkStyle.Green?"tw-text-fa-green-500 hover:tw-text-fa-green-600":"",o.class())),n.R7$(),n.SpI(" ",o.text(),"\n"))},dependencies:[gn,bi],encapsulation:2})}}return t})(),o1t=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-close-chevrons-icon"]],decls:3,vars:0,consts:[[1,"tw-flex","tw-w-[15px]","tw-h-[15px]","tw-bg-transparent","tw-items-center","tw-justify-center"],["width","14","height","15","viewBox","0 0 14 15","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M7.51367 7.91992L1.57617 13.8574C1.46476 13.9688 1.31365 14.0314 1.15609 14.0314C0.998532 14.0314 0.847425 13.9688 0.736014 13.8574C0.624602 13.746 0.562012 13.5949 0.562012 13.4373C0.562012 13.2798 0.624602 13.1287 0.736014 13.0173L6.25418 7.49984L0.736014 1.98242C0.624602 1.87101 0.562012 1.7199 0.562012 1.56234C0.562012 1.40478 0.624602 1.25368 0.736014 1.14226C0.847425 1.03085 0.998532 0.968262 1.15609 0.968262C1.31365 0.968262 1.46476 1.03085 1.57617 1.14226L7.51367 7.07976C7.56887 7.13491 7.61267 7.20039 7.64255 7.27247C7.67243 7.34455 7.68781 7.42181 7.68781 7.49984C7.68781 7.57787 7.67243 7.65513 7.64255 7.72721C7.61267 7.79929 7.56887 7.86478 7.51367 7.91992ZM13.4512 7.07976L7.51367 1.14226C7.40226 1.03085 7.25115 0.968262 7.09359 0.968262C6.93603 0.968262 6.78492 1.03085 6.67351 1.14226C6.5621 1.25368 6.49951 1.40478 6.49951 1.56234C6.49951 1.7199 6.5621 1.87101 6.67351 1.98242L12.1917 7.49984L6.67351 13.0173C6.5621 13.1287 6.49951 13.2798 6.49951 13.4373C6.49951 13.5949 6.5621 13.746 6.67351 13.8574C6.78492 13.9688 6.93603 14.0314 7.09359 14.0314C7.25115 14.0314 7.40226 13.9688 7.51367 13.8574L13.4512 7.91992C13.5064 7.86478 13.5502 7.79929 13.5801 7.72721C13.6099 7.65513 13.6253 7.57787 13.6253 7.49984C13.6253 7.42181 13.6099 7.34455 13.5801 7.27247C13.5502 7.20039 13.5064 7.13491 13.4512 7.07976Z","fill","#DE7C00"]],template:function(i,o){1&i&&(n.j41(0,"div",0),n.qSk(),n.j41(1,"svg",1),n.nrm(2,"path",2),n.k0s()())},encapsulation:2})}}return t})(),bpe=(()=>{class t{constructor(){this.taxonomyTree=n.hFB.required(),this.selectedNodes=(0,n.hFB)([]),this.sourceProgramCodeFilter=(0,n.hFB)(null),this.onTaxonomyEntriesSelected=(0,n.CGW)(),this.onTaxonomyEntriesUnselected=(0,n.CGW)(),this.taxonomyTreeNodes=[],this.taxonomyTreeNodesSelected=[],this.taxonomyTreeNodesToDisplay=(0,n.EWP)(()=>{switch(this.sourceProgramCodeFilter()){case"GROCERY":return this.onTaxonomyEntriesUnselected.emit(this.taxonomyTreeNodesSelected.filter(e=>e.key?.startsWith("PRODUCE")).map(e=>e.key)),this.taxonomyTreeNodesSelected=this.taxonomyTreeNodesSelected.filter(e=>!e.key?.startsWith("PRODUCE")),this.taxonomyTreeNodes.filter(e=>!e.key?.startsWith("PRODUCE"));case"PRODUCE":return this.onTaxonomyEntriesUnselected.emit(this.taxonomyTreeNodesSelected.filter(e=>!e.key?.startsWith("PRODUCE")).map(e=>e.key)),this.taxonomyTreeNodesSelected=this.taxonomyTreeNodesSelected.filter(e=>e.key?.startsWith("PRODUCE")),this.taxonomyTreeNodes.filter(e=>e.key?.startsWith("PRODUCE"));default:return this.taxonomyTreeNodes}})}ngOnInit(){this.taxonomyTreeNodes=this.buildTaxonomyTreeNodes(this.taxonomyTree()),this.taxonomyTreeNodesSelected=this.selectedNodes()}ngOnChanges(e){e.selectedNodes&&(this.taxonomyTreeNodesSelected=e.selectedNodes.currentValue)}buildTaxonomyTreeNodes(e){let i=[];return e.forEach(o=>{i.push(this.buildTaxonomyTreeBranch(o))}),i}buildTaxonomyTreeBranch(e){let i=[];return e.children?.length>0&&e.children.forEach(s=>{i.push(this.buildTaxonomyTreeBranch(s))}),{key:e.key,label:e.label,data:e.data,children:i}}buildSelectedTaxonomy(e,i){return i.push(e.key),e.children&&e.children.forEach(o=>this.buildSelectedTaxonomy(o,i)),i}onTaxonomyNodeSelected(e){this.onTaxonomyEntriesSelected.emit(this.buildSelectedTaxonomy(e.node,[]))}onTaxonomyNodeUnselected(e){this.onTaxonomyEntriesUnselected.emit(this.buildSelectedTaxonomy(e.node,[]))}clearSelectedNodes(){this.taxonomyTreeNodesSelected=[]}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-taxonomy-tree"]],inputs:{taxonomyTree:[1,"taxonomyTree"],selectedNodes:[1,"selectedNodes"],sourceProgramCodeFilter:[1,"sourceProgramCodeFilter"]},outputs:{onTaxonomyEntriesSelected:"onTaxonomyEntriesSelected",onTaxonomyEntriesUnselected:"onTaxonomyEntriesUnselected"},features:[n.OA$],decls:1,vars:2,consts:[["selectionMode","checkbox",1,"tw-mb-0","tw-mt-0",3,"selectionChange","onNodeSelect","onNodeUnselect","value","selection"]],template:function(i,o){1&i&&(n.j41(0,"p-tree",0),n.mxI("selectionChange",function(a){return n.DH7(o.taxonomyTreeNodesSelected,a)||(o.taxonomyTreeNodesSelected=a),a}),n.bIt("onNodeSelect",function(a){return o.onTaxonomyNodeSelected(a)})("onNodeUnselect",function(a){return o.onTaxonomyNodeUnselected(a)}),n.k0s()),2&i&&(n.Y8G("value",o.taxonomyTreeNodesToDisplay()),n.R50("selection",o.taxonomyTreeNodesSelected))},dependencies:[Gq,YG],encapsulation:2})}}return t})();const s1t=["overlay"],a1t=["flyout"],Cpe=t=>["tw-flex tw-items-center tw-justify-center tw-gap-2 tw-border tw-border-solid tw-bg-white tw-px-4 tw-py-2 hover:tw-border-fa-orange-500 hover:tw-bg-fa-orange-500 hover:tw-text-white",t],l1t=()=>({baseZIndex:11e3});function c1t(t,r){if(1&t&&(n.j41(0,"p-overlaybadge",4),n.nrm(1,"icon-filter",5),n.k0s()),2&t){const e=n.XpG();n.Y8G("value",e.selectedFilterCount())}}function u1t(t,r){1&t&&n.nrm(0,"icon-filter",5)}function d1t(t,r){if(1&t&&(n.j41(0,"div",44)(1,"span",11),n.EFF(2),n.k0s()()),2&t){const e=r.$implicit;n.R7$(2),n.JRh(e.name)}}function p1t(t,r){if(1&t){const e=n.RV6();n.j41(0,"div")(1,"span",16),n.EFF(2," Browsing As "),n.k0s(),n.j41(3,"div",17)(4,"p-select",43),n.mxI("ngModelChange",function(o){n.eBV(e);const s=n.XpG();return n.DH7(s.selectedBrowsingAsEntity,o)||(s.selectedBrowsingAsEntity=o),n.Njj(o)}),n.bIt("onChange",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.browsingAsEntityChanged(o))}),n.DNE(5,d1t,3,1,"ng-template",null,2,n.C5r),n.k0s()()()}if(2&t){const e=n.XpG();n.R7$(4),n.Y8G("options",e.entityService.availableBrowseEntities()),n.R50("ngModel",e.selectedBrowsingAsEntity),n.Y8G("filter",!0)}}function h1t(t,r){if(1&t&&(n.j41(0,"div",45),n.EFF(1),n.k0s()),2&t){const e=n.XpG().$implicit;n.R7$(),n.JRh(e.addressLine2)}}function f1t(t,r){if(1&t&&(n.j41(0,"div")(1,"div")(2,"div")(3,"span"),n.EFF(4),n.k0s(),n.DNE(5,h1t,2,1,"div",45),n.k0s(),n.j41(6,"span"),n.EFF(7),n.k0s(),n.j41(8,"div",46)(9,"span"),n.EFF(10),n.k0s()()()()),2&t){const e=r.$implicit;n.R7$(4),n.SpI(" ",e.addressLine1," "),n.R7$(),n.vxM(e.addressLine2?5:-1),n.R7$(2),n.E5c("",e.city,", ",e.province," ",e.postalCode,""),n.R7$(3),n.JRh(e.name)}}function m1t(t,r){if(1&t&&(n.EFF(0),n.nI1(1,"currency")),2&t){const e=n.XpG();n.SpI(" Less than ",n.bMT(1,1,e.filterMaxCostPerPound()),"/lb. ")}}function g1t(t,r){1&t&&n.EFF(0," Any price ")}function v1t(t,r){if(1&t&&n.EFF(0),2&t){const e=n.XpG();n.SpI(" Within ",e.filterMaxDistanceValue()," miles ")}}function _1t(t,r){1&t&&n.EFF(0," Any distance ")}let y1t=(()=>{class t{constructor(){this.filtersService=(0,n.WQX)(pP),this.marketplaceService=(0,n.WQX)(Yu),this.entityService=(0,n.WQX)(jh),this.renderer=(0,n.WQX)(n.sFG),this.MAX_DISTANCE=2e3,this.MAX_FOB_PER_POUND=3,this.overlayRef=n.ebz.required("overlay"),this.flyoutRef=n.ebz.required("flyout"),this.taxonomyTree=n.hFB.required(),this.initiallySelectedNodes=(0,n.hFB)([]),this.initiallyShowGrid=(0,n.hFB)(!0,{alias:"showGrid"}),this.onShowGridChanged=(0,n.CGW)(),this.onRefreshRequested=(0,n.CGW)(),this.selectedNodes=(0,n.vPA)([]),this.isFiltersVisible=!1,this.showGrid=(0,n.vPA)(!1),this.isGrocerySelected=(0,n.vPA)(!1),this.isProduceSelected=(0,n.vPA)(!1),this.isImportStatusUnknownSelected=(0,n.vPA)(!1),this.isImportStatusDomesticSelected=(0,n.vPA)(!1),this.isImportStatusInternationalSelected=(0,n.vPA)(!1),this.isHideProduceCombosSelected=(0,n.vPA)(!1),this.filterItemsCombinableToCart=(0,n.vPA)(!1),this.filterMaxDistanceState=(0,n.vPA)("MAX"),this.filterMaxDistanceValue=(0,n.vPA)(this.MAX_DISTANCE),this.filterMaxCostPerPoundState=(0,n.vPA)("MAX"),this.filterMaxCostPerPound=(0,n.vPA)(this.MAX_FOB_PER_POUND),this.filterHERCodes=(0,n.vPA)([]),this.availableHERCodes=Object.values(cP),this.selectedBrowsingAsEntity=(0,n.vPA)(null),this.selectedDeliveryLocation=(0,n.vPA)(null),this.browseFiltersSubject=new K.B,this.subscriptions=[],this.selectedSourceProgramCodeFilter=(0,n.EWP)(()=>this.isGrocerySelected()&&this.isProduceSelected()||!this.isGrocerySelected()&&!this.isProduceSelected()?null:this.isGrocerySelected()?"GROCERY":this.isProduceSelected()?"PRODUCE":null),this.selectedFilterCount=(0,n.EWP)(()=>this.filtersService.browseFilters().filter(e=>e.type===ao.Distance||e.type===ao.FOBCostPerPound||e.type===ao.SourceProgramCode||e.type===ao.Supplier||e.type===ao.TaxonomyCategory||e.type===ao.HideProduceCombos).length),this.subscriptions.push(this.browseFiltersSubject.pipe($z(300)).subscribe(e=>{this.updateProgramCodeFilters(e),this.updateSelectedTaxonomyNodes(e),this.updateMiscFilters(e)})),(0,n.QZP)(()=>{const e=this.filtersService.browseFilters();this.browseFiltersSubject.next(e)})}ngOnInit(){this.initiallyShowGrid()&&this.showGrid.set(!0),this.selectedNodes.set([...this.initiallySelectedNodes()]),this.selectedBrowsingAsEntity.set(this.entityService.browsingAsEntity()),this.selectedDeliveryLocation.set(this.entityService.deliveryLocationEntity())}ngAfterViewInit(){this.renderer.setStyle(this.flyoutRef().nativeElement,"right","-100%")}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe)}updateProgramCodeFilters(e){let i=e.filter(o=>o.type===ao.SourceProgramCode);i.length?(this.isGrocerySelected.set(i.some(o=>"GROCERY"===o.value)),this.isProduceSelected.set(i.some(o=>"PRODUCE"===o.value))):(this.isGrocerySelected.set(!1),this.isProduceSelected.set(!1))}updateSelectedTaxonomyNodes(e){let i=e.filter(o=>o.type===ao.TaxonomyCategory);this.selectedNodes.set(i.length?this.getTaxonomyNodesMatchingFilters(i):[])}updateMiscFilters(e){let i=!1,o=!1,s=!1,a=!1,l=!1,c=!1;for(const d of e)switch(d.type){case ao.FOBCostPerPound:i=!0,this.filterMaxCostPerPound.set(d.value),this.filterMaxCostPerPoundState.set("APPLIED");break;case ao.Distance:o=!0,this.filterMaxDistanceValue.set(d.value),this.filterMaxDistanceState.set("APPLIED");break;case ao.IsImported:s=!0;const f=d.value;f.includes(!1)&&this.isImportStatusDomesticSelected.set(!0),f.includes(!0)&&this.isImportStatusInternationalSelected.set(!0),f.includes(null)&&this.isImportStatusUnknownSelected.set(!0);break;case ao.HERCategories:a=!0,this.filterHERCodes.set(d.value);break;case ao.HideProduceCombos:l=!0,d.value&&this.isHideProduceCombosSelected.set(!0);break;case ao.IsCombinableWithCart:c=!0,d.value&&this.filterItemsCombinableToCart.set(!0)}i||(this.filterMaxCostPerPound.set(this.MAX_FOB_PER_POUND),this.filterMaxCostPerPoundState.set("MAX")),o||(this.filterMaxDistanceValue.set(this.MAX_DISTANCE),this.filterMaxDistanceState.set("MAX")),s||(this.isImportStatusDomesticSelected.set(!1),this.isImportStatusInternationalSelected.set(!1),this.isImportStatusUnknownSelected.set(!1)),a||this.filterHERCodes.set([]),l||this.isHideProduceCombosSelected.set(!1),c||this.filterItemsCombinableToCart.set(!1)}getTaxonomyNodesMatchingFilters(e){if(!e.length)return[];let i=e.map(o=>o.value);return this.marketplaceService.getTaxonomyTreeNodes(this.taxonomyTree(),i)}onImportStatusChange(e){const i=[];this.isImportStatusDomesticSelected()&&i.push(!1),this.isImportStatusInternationalSelected()&&i.push(!0),this.isImportStatusUnknownSelected()&&i.push(null),3!==i.length&&0!==i.length?this.filtersService.updateFilters(this.filtersService.filterSections.browse,[new i0t(i)],ao.IsImported):this.filtersService.removeFilters(this.filtersService.filterSections.browse,this.filtersService.browseFilters().filter(o=>o.type===ao.IsImported))}onHideProduceCombosSelectedChange(e){e?this.filtersService.updateFilters(this.filtersService.filterSections.browse,[new o0t(e)],ao.HideProduceCombos):this.filtersService.removeFilters(this.filtersService.filterSections.browse,this.filtersService.browseFilters().filter(i=>i.type==ao.HideProduceCombos))}onShowOnlyCombinableToCart(e){e?this.filtersService.updateFilters(this.filtersService.filterSections.browse,[new spe([])],ao.IsCombinableWithCart):this.filtersService.removeFilters(this.filtersService.filterSections.browse,this.filtersService.browseFilters().filter(i=>i.type==ao.IsCombinableWithCart))}onSourceProgramCodeChanged(e){"GROCERY"===e&&this.isGrocerySelected()&&this.isProduceSelected.set(!1),"PRODUCE"===e&&this.isProduceSelected()&&this.isGrocerySelected.set(!1);let i=this.filtersService.browseFilters().filter(a=>a.type===ao.SourceProgramCode),o=i.find(a=>"GROCERY"===a.value),s=i.find(a=>"PRODUCE"===a.value);this.isGrocerySelected()&&!o&&this.filtersService.updateFilters(this.filtersService.filterSections.browse,[...this.filtersService.browseFilters(),new mX("GROCERY")]),this.isProduceSelected()&&!s&&this.filtersService.updateFilters(this.filtersService.filterSections.browse,[...this.filtersService.browseFilters(),new mX("PRODUCE")]),!this.isGrocerySelected()&&o&&this.filtersService.updateFilters(this.filtersService.filterSections.browse,[...this.filtersService.browseFilters().filter(a=>a.type!==ao.SourceProgramCode||a.type===ao.SourceProgramCode&&"GROCERY"!==a.value)]),!this.isProduceSelected()&&s&&this.filtersService.updateFilters(this.filtersService.filterSections.browse,[...this.filtersService.browseFilters().filter(a=>a.type!==ao.SourceProgramCode||a.type===ao.SourceProgramCode&&"PRODUCE"!==a.value)])}onTaxonomyItemsSelected(e){let i=e.map(o=>new rpe(o));this.filtersService.updateFilters(this.filtersService.filterSections.browse,[...this.filtersService.browseFilters(),...i])}onTaxonomyItemsUnselected(e){this.filtersService.updateFilters(this.filtersService.filterSections.browse,[...this.filtersService.browseFilters().filter(i=>i.type!==ao.TaxonomyCategory||i.type===ao.TaxonomyCategory&&!e.includes(i.value))])}onToggleFiltersClicked(){this.isFiltersVisible=!this.isFiltersVisible,this.isFiltersVisible?(this.renderer.appendChild(document.body,this.overlayRef().nativeElement),this.renderer.appendChild(document.body,this.flyoutRef().nativeElement),setTimeout(()=>{this.renderer.setStyle(this.overlayRef().nativeElement,"opacity","1"),this.renderer.setStyle(this.overlayRef().nativeElement,"pointer-events","auto"),this.renderer.setStyle(this.flyoutRef().nativeElement,"right","0")},10)):(this.renderer.setStyle(this.overlayRef().nativeElement,"opacity","0"),this.renderer.setStyle(this.overlayRef().nativeElement,"pointer-events","none"),this.renderer.setStyle(this.flyoutRef().nativeElement,"right","-100%"),setTimeout(()=>{this.renderer.removeChild(document.body,this.overlayRef().nativeElement),this.renderer.removeChild(document.body,this.flyoutRef().nativeElement)},300))}setDistance(e){if(e.value){if(e.value<this.MAX_DISTANCE)return this.filterMaxDistanceState.set("APPLIED"),void this.filtersService.updateFilters(this.filtersService.filterSections.browse,[new e0t(e.value)],ao.Distance);this.filterMaxDistanceState.set("MAX")}this.filtersService.removeFilters(this.filtersService.filterSections.browse,this.filtersService.browseFilters().filter(i=>i.type===ao.Distance))}setMaxCostPerPound(e){if(e.value){if(e.value<this.MAX_FOB_PER_POUND)return this.filterMaxCostPerPoundState.set("APPLIED"),void this.filtersService.updateFilters(this.filtersService.filterSections.browse,[new t0t(e.value)],ao.FOBCostPerPound);this.filterMaxCostPerPoundState.set("MAX")}this.filtersService.removeFilters(this.filtersService.filterSections.browse,this.filtersService.browseFilters().filter(i=>i.type===ao.FOBCostPerPound))}setHERCategories(e){const i=e.value;i&&i.filter(o=>null!=o&&null!=o).length>0?this.filtersService.updateFilters(this.filtersService.filterSections.browse,[new n0t(e.value)],ao.HERCategories):this.filtersService.removeFilters(this.filtersService.filterSections.browse,this.filtersService.browseFilters().filter(o=>o.type===ao.HERCategories))}forceRefreshListings(){this.onToggleFiltersClicked(),this.onRefreshRequested.emit()}onToggleViewClicked(e){e!==this.showGrid()&&(this.showGrid.set(e),this.onShowGridChanged.emit(e))}deliveryLocationChanged(e){this.onToggleFiltersClicked(),e?.value&&this.entityService.setDeliveryLocation(e.value)}browsingAsEntityChanged(e){this.entityService.setBrowingEntity(e?.value),this.selectedBrowsingAsEntity.set(e?.value),this.onRefreshRequested.emit(),this.onToggleFiltersClicked()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-filter-flyout"]],viewQuery:function(i,o){1&i&&(n.wEZ(o.overlayRef,s1t,5),n.wEZ(o.flyoutRef,a1t,5)),2&i&&n.NyB(2)},inputs:{taxonomyTree:[1,"taxonomyTree"],initiallySelectedNodes:[1,"initiallySelectedNodes"],initiallyShowGrid:[1,"showGrid","initiallyShowGrid"]},outputs:{onShowGridChanged:"onShowGridChanged",onRefreshRequested:"onRefreshRequested"},decls:97,vars:44,consts:[["overlay",""],["flyout",""],["item",""],["title","Show Filters",1,"tw-relative","tw-cursor-pointer","tw-border-none","tw-bg-transparent",3,"click"],["badgeSize","small",3,"value"],[1,"tw-h-[30px]","tw-w-[30px]","tw-text-gray-800"],[1,"tw-pointer-events-none","tw-fixed","tw-inset-0","tw-bg-gray-100/25","tw-opacity-0","tw-transition-opacity","tw-duration-300",2,"z-index","10000",3,"click"],[1,"tw-fixed","tw-right-0","tw-top-0","tw-h-full","tw-w-64","tw-border-0","tw-border-l-2","tw-border-solid","tw-border-gray-300","tw-bg-white","tw-shadow-2xl","tw-transition-all","tw-duration-300",2,"z-index","10001"],[1,"tw-flex","tw-h-full","tw-flex-auto","tw-flex-col","tw-gap-4","tw-p-4"],[1,"tw-flex","tw-items-center","tw-justify-start","tw-gap-2"],["text","Hide filters",1,"tw-text-[16px]","tw-font-semibold",3,"click"],[1,"tw-font-semibold"],[1,"tw-flex"],[3,"click","ngClass"],[1,"tw-text-[16px]","tw-font-semibold"],[1,"tw-flex","tw-flex-col","tw-space-y-4","tw-overflow-auto"],[1,"tw-mb-2","tw-block","tw-text-lg","tw-font-semibold"],[1,"tw-mb-2","tw-flex","tw-items-center","tw-gap-2"],["optionLabel","addressLine1","placeholder","Delivering To...","appendTo","body",3,"onChange","ngModelChange","options","ngModel","overlayOptions"],["inputId","marketplace_grocery",3,"ngModelChange","ngModel","binary"],["for","marketplace_grocery",1,"tw-mb-0"],[1,"tw-flex","tw-items-center","tw-gap-2"],["inputId","marketplace_produce",3,"ngModelChange","ngModel","binary"],["for","marketplace_produce",1,"tw-mb-0"],[1,"tw-text-lg","tw-font-semibold"],[3,"onTaxonomyEntriesSelected","onTaxonomyEntriesUnselected","taxonomyTree","selectedNodes","sourceProgramCodeFilter"],[1,"tw-p-2"],[1,"w-full",3,"ngModelChange","onChange","ngModel","min","max","step"],[1,"tw-text-xs","tw-italic","tw-text-slate-400"],["optionValue","entry.itemId","optionLabel","displayDetails.displayName",1,"w-full","md:w-56",3,"ngModelChange","onChange","ngModel","options","multiple","checkbox","showToggleAll"],["inputId","marketplace_importstatus_false",3,"ngModelChange","ngModel","binary"],["for","marketplace_importstatus_false",1,"tw-mb-0"],["inputId","marketplace_importstatus_true",3,"ngModelChange","ngModel","binary"],["for","marketplace_importstatus_true",1,"tw-mb-0"],["inputId","marketplace_importstatus_unknown",3,"ngModelChange","ngModel","binary"],["for","marketplace_importstatus_unknown",1,"tw-mb-0"],["inputId","marketplace_comboloads",3,"ngModelChange","ngModel","binary"],["for","marketplace_comboloads",1,"tw-mb-0"],[1,"tw-mt-4","tw-flex","tw-items-center","tw-gap-2"],["inputId","marketplace_show_combinable",3,"ngModelChange","ngModel","binary"],["for","marketplace_show_combinable",1,"tw-mb-0"],[1,"tw-mt-8"],[1,"tw-cursor-pointer",3,"click"],["optionLabel","name","placeholder","Browsing As...",3,"ngModelChange","onChange","options","ngModel","filter"],[1,"tw-text-wrap"],[1,"ml-2"],[1,"tw-mt-2","tw-italic"]],template:function(i,o){if(1&i){const s=n.RV6();n.j41(0,"button",3),n.bIt("click",function(){return n.eBV(s),n.Njj(o.onToggleFiltersClicked())}),n.DNE(1,c1t,2,1,"p-overlaybadge",4)(2,u1t,1,0,"icon-filter",5),n.k0s(),n.j41(3,"div",6,0),n.bIt("click",function(){return n.eBV(s),n.Njj(o.onToggleFiltersClicked())}),n.k0s(),n.j41(5,"div",7,1)(7,"div",8)(8,"div",9),n.nrm(9,"app-close-chevrons-icon"),n.j41(10,"app-primary-link-button",10),n.bIt("click",function(){return n.eBV(s),n.Njj(o.onToggleFiltersClicked())}),n.k0s()(),n.j41(11,"div")(12,"h4",11),n.EFF(13,"View Mode"),n.k0s(),n.j41(14,"div",12)(15,"button",13),n.bIt("click",function(){return n.eBV(s),n.Njj(o.onToggleViewClicked(!0))}),n.nrm(16,"icon-grid"),n.j41(17,"span",14),n.EFF(18,"Grid"),n.k0s()(),n.j41(19,"button",13),n.bIt("click",function(){return n.eBV(s),n.Njj(o.onToggleViewClicked(!1))}),n.nrm(20,"icon-table"),n.j41(21,"span",14),n.EFF(22,"Table"),n.k0s()()()(),n.j41(23,"div",15),n.DNE(24,p1t,7,3,"div"),n.j41(25,"div")(26,"span",16),n.EFF(27," Delivering To "),n.k0s(),n.j41(28,"div",17)(29,"p-select",18),n.bIt("onChange",function(l){return n.eBV(s),n.Njj(o.deliveryLocationChanged(l))}),n.mxI("ngModelChange",function(l){return n.eBV(s),n.DH7(o.selectedDeliveryLocation,l)||(o.selectedDeliveryLocation=l),n.Njj(l)}),n.DNE(30,f1t,11,6,"ng-template",null,2,n.C5r),n.k0s()()(),n.j41(32,"div")(33,"span",16),n.EFF(34," Marketplace "),n.k0s(),n.j41(35,"div",17)(36,"p-checkbox",19),n.mxI("ngModelChange",function(l){return n.eBV(s),n.DH7(o.isGrocerySelected,l)||(o.isGrocerySelected=l),n.Njj(l)}),n.bIt("ngModelChange",function(){return n.eBV(s),n.Njj(o.onSourceProgramCodeChanged("GROCERY"))}),n.k0s(),n.j41(37,"label",20),n.EFF(38,"Grocery"),n.k0s()(),n.j41(39,"div",21)(40,"p-checkbox",22),n.mxI("ngModelChange",function(l){return n.eBV(s),n.DH7(o.isProduceSelected,l)||(o.isProduceSelected=l),n.Njj(l)}),n.bIt("ngModelChange",function(){return n.eBV(s),n.Njj(o.onSourceProgramCodeChanged("PRODUCE"))}),n.k0s(),n.j41(41,"label",23),n.EFF(42,"Produce"),n.k0s()()(),n.j41(43,"div")(44,"span",24),n.EFF(45,"Categories"),n.k0s(),n.j41(46,"app-taxonomy-tree",25),n.bIt("onTaxonomyEntriesSelected",function(l){return n.eBV(s),n.Njj(o.onTaxonomyItemsSelected(l))})("onTaxonomyEntriesUnselected",function(l){return n.eBV(s),n.Njj(o.onTaxonomyItemsUnselected(l))}),n.k0s()(),n.j41(47,"div")(48,"span",24),n.EFF(49,"Cost (per/lb)"),n.k0s(),n.j41(50,"div",26)(51,"p-slider",27),n.mxI("ngModelChange",function(l){return n.eBV(s),n.DH7(o.filterMaxCostPerPound,l)||(o.filterMaxCostPerPound=l),n.Njj(l)}),n.bIt("onChange",function(l){return n.eBV(s),n.Njj(o.setMaxCostPerPound(l))}),n.k0s()(),n.j41(52,"span",28),n.DNE(53,m1t,2,3)(54,g1t,1,0),n.k0s()(),n.j41(55,"div")(56,"span",24),n.EFF(57,"Distance"),n.k0s(),n.j41(58,"div",26)(59,"p-slider",27),n.mxI("ngModelChange",function(l){return n.eBV(s),n.DH7(o.filterMaxDistanceValue,l)||(o.filterMaxDistanceValue=l),n.Njj(l)}),n.bIt("onChange",function(l){return n.eBV(s),n.Njj(o.setDistance(l))}),n.k0s()(),n.j41(60,"span",28),n.DNE(61,v1t,1,1)(62,_1t,1,0),n.k0s()(),n.j41(63,"div")(64,"span",24),n.EFF(65,"HER Category"),n.k0s(),n.j41(66,"div",26)(67,"p-listbox",29),n.mxI("ngModelChange",function(l){return n.eBV(s),n.DH7(o.filterHERCodes,l)||(o.filterHERCodes=l),n.Njj(l)}),n.bIt("onChange",function(l){return n.eBV(s),n.Njj(o.setHERCategories(l))}),n.k0s()()(),n.j41(68,"div")(69,"span",24),n.EFF(70,"Import"),n.k0s(),n.j41(71,"div",17)(72,"p-checkbox",30),n.mxI("ngModelChange",function(l){return n.eBV(s),n.DH7(o.isImportStatusDomesticSelected,l)||(o.isImportStatusDomesticSelected=l),n.Njj(l)}),n.bIt("ngModelChange",function(l){return n.eBV(s),n.Njj(o.onImportStatusChange(l))}),n.k0s(),n.j41(73,"label",31),n.EFF(74,"Domestic"),n.k0s()(),n.j41(75,"div",17)(76,"p-checkbox",32),n.mxI("ngModelChange",function(l){return n.eBV(s),n.DH7(o.isImportStatusInternationalSelected,l)||(o.isImportStatusInternationalSelected=l),n.Njj(l)}),n.bIt("ngModelChange",function(l){return n.eBV(s),n.Njj(o.onImportStatusChange(l))}),n.k0s(),n.j41(77,"label",33),n.EFF(78,"International Import"),n.k0s()(),n.j41(79,"div",17)(80,"p-checkbox",34),n.mxI("ngModelChange",function(l){return n.eBV(s),n.DH7(o.isImportStatusUnknownSelected,l)||(o.isImportStatusUnknownSelected=l),n.Njj(l)}),n.bIt("ngModelChange",function(l){return n.eBV(s),n.Njj(o.onImportStatusChange(l))}),n.k0s(),n.j41(81,"label",35),n.EFF(82,"Unknown"),n.k0s()()(),n.j41(83,"div")(84,"span",24),n.EFF(85,"Misc."),n.k0s(),n.j41(86,"div",21)(87,"p-checkbox",36),n.mxI("ngModelChange",function(l){return n.eBV(s),n.DH7(o.isHideProduceCombosSelected,l)||(o.isHideProduceCombosSelected=l),n.Njj(l)}),n.bIt("ngModelChange",function(l){return n.eBV(s),n.Njj(o.onHideProduceCombosSelectedChange(l))}),n.k0s(),n.j41(88,"label",37),n.EFF(89," Hide Produce Combo Loads "),n.k0s()(),n.j41(90,"div",38)(91,"p-checkbox",39),n.mxI("ngModelChange",function(l){return n.eBV(s),n.DH7(o.filterItemsCombinableToCart,l)||(o.filterItemsCombinableToCart=l),n.Njj(l)}),n.bIt("ngModelChange",function(l){return n.eBV(s),n.Njj(o.onShowOnlyCombinableToCart(l))}),n.k0s(),n.j41(92,"label",40),n.EFF(93," Only Offers I Can Add to My Current Order "),n.k0s()()(),n.j41(94,"div",41)(95,"a",42),n.bIt("click",function(){return n.eBV(s),n.Njj(o.forceRefreshListings())}),n.EFF(96,"Refresh Listings"),n.k0s()()()()()}2&i&&(n.R7$(),n.vxM(o.selectedFilterCount()?1:2),n.R7$(14),n.Y8G("ngClass",n.eq3(39,Cpe,o.showGrid()?"tw-border-fa-orange-500 tw-text-fa-orange-500":"tw-border-r-0 tw-border-gray-600 tw-text-gray-600")),n.R7$(4),n.Y8G("ngClass",n.eq3(41,Cpe,o.showGrid()?"tw-border-l-0 tw-border-gray-600 tw-text-gray-600":"tw-border-fa-orange-500 tw-text-fa-orange-500")),n.R7$(5),n.vxM(o.entityService.isFANO()?24:-1),n.R7$(5),n.Y8G("options",o.entityService.availableDeliveryLocations()),n.R50("ngModel",o.selectedDeliveryLocation),n.Y8G("overlayOptions",n.lJ4(43,l1t)),n.R7$(7),n.R50("ngModel",o.isGrocerySelected),n.Y8G("binary",!0),n.R7$(4),n.R50("ngModel",o.isProduceSelected),n.Y8G("binary",!0),n.R7$(6),n.Y8G("taxonomyTree",o.taxonomyTree())("selectedNodes",o.selectedNodes())("sourceProgramCodeFilter",o.selectedSourceProgramCodeFilter()),n.R7$(5),n.R50("ngModel",o.filterMaxCostPerPound),n.Y8G("min",0)("max",o.MAX_FOB_PER_POUND)("step",.05),n.R7$(2),n.vxM("APPLIED"==o.filterMaxCostPerPoundState()?53:54),n.R7$(6),n.R50("ngModel",o.filterMaxDistanceValue),n.Y8G("min",50)("max",o.MAX_DISTANCE)("step",10),n.R7$(2),n.vxM("APPLIED"==o.filterMaxDistanceState()?61:62),n.R7$(6),n.R50("ngModel",o.filterHERCodes),n.Y8G("options",o.availableHERCodes)("multiple",!0)("checkbox",!0)("showToggleAll",!1),n.R7$(5),n.R50("ngModel",o.isImportStatusDomesticSelected),n.Y8G("binary",!0),n.R7$(4),n.R50("ngModel",o.isImportStatusInternationalSelected),n.Y8G("binary",!0),n.R7$(4),n.R50("ngModel",o.isImportStatusUnknownSelected),n.Y8G("binary",!0),n.R7$(7),n.R50("ngModel",o.isHideProduceCombosSelected),n.Y8G("binary",!0),n.R7$(4),n.R50("ngModel",o.filterItemsCombinableToCart),n.Y8G("binary",!0))},dependencies:[dk,gn,bi,oc,wk,Av,o1t,Ra,_o,ko,IX,t1t,n1t,i1t,e1t,ype,bpe,n7,t7,Kyt,kX,Zp,ff,d2],encapsulation:2})}}return t})(),qv=(()=>{class t{transform(e,i=2,o=!0,s="TBD"){return e===1/0||e===-1/0||null==e||0===e&&!o?s:`$${new Intl.NumberFormat("en-US",{minimumFractionDigits:i,maximumFractionDigits:i}).format(e)}`}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=n.EJ8({name:"formatPrice",type:t,pure:!0})}}return t})(),AX=(()=>{class t{constructor(){this.style=(0,n.hFB)(""),this.class=(0,n.hFB)("")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["icon-grocery"]],inputs:{style:[1,"style"],class:[1,"class"]},decls:2,vars:4,consts:[["xmlns","http://www.w3.org/2000/svg","width","24","height","24","viewBox","0 0 24 24","fill","currentColor",1,"tw-block","tw-w-[24px]","tw-h-[24px]"],["d","M22.6671 5.57946C22.5114 5.40479 22.3205 5.26512 22.107 5.16965C21.8934 5.07418 21.662 5.02509 21.4281 5.02562H16.5132C16.5132 3.71993 15.9945 2.46773 15.0713 1.54447C14.148 0.621219 12.8958 0.102539 11.5901 0.102539C10.2844 0.102539 9.03225 0.621219 8.10899 1.54447C7.18573 2.46773 6.66705 3.71993 6.66705 5.02562H1.75218C1.51963 5.02624 1.28982 5.07589 1.07775 5.17132C0.86568 5.26676 0.676112 5.40583 0.521413 5.57946C0.368007 5.75245 0.252888 5.95591 0.1836 6.1765C0.114313 6.39708 0.0924223 6.62982 0.119362 6.85946L1.58193 19.1672C1.62936 19.5682 1.82299 19.9376 2.12575 20.2048C2.42851 20.472 2.81916 20.6182 3.22295 20.6154H19.9665C20.3703 20.6182 20.761 20.472 21.0637 20.2048C21.3665 19.9376 21.5601 19.5682 21.6076 19.1672L23.0701 6.85946C23.0969 6.62975 23.0749 6.39697 23.0054 6.17638C22.9359 5.95579 22.8206 5.75237 22.6671 5.57946ZM11.5901 1.74356C12.4606 1.74356 13.2954 2.08935 13.9109 2.70486C14.5264 3.32036 14.8722 4.15516 14.8722 5.02562H8.30808C8.30808 4.15516 8.65387 3.32036 9.26937 2.70486C9.88487 2.08935 10.7197 1.74356 11.5901 1.74356ZM19.9758 18.9743C19.9728 18.9754 19.9695 18.9754 19.9665 18.9743H3.20552L1.75218 6.66664H6.66705V9.12818C6.66705 9.34579 6.7535 9.55449 6.90738 9.70837C7.06125 9.86225 7.26995 9.94869 7.48757 9.94869C7.70518 9.94869 7.91388 9.86225 8.06776 9.70837C8.22163 9.55449 8.30808 9.34579 8.30808 9.12818V6.66664H14.8722V9.12818C14.8722 9.34579 14.9586 9.55449 15.1125 9.70837C15.2664 9.86225 15.4751 9.94869 15.6927 9.94869C15.9103 9.94869 16.119 9.86225 16.2729 9.70837C16.4268 9.55449 16.5132 9.34579 16.5132 9.12818V6.66664H21.4363L19.9758 18.9743Z"]],template:function(i,o){1&i&&(n.qSk(),n.j41(0,"svg",0),n.nrm(1,"path",1),n.k0s()),2&i&&(n.Aen(o.style()),n.HbH(o.class()))},encapsulation:2})}}return t})(),MX=(()=>{class t{constructor(){this.style=(0,n.hFB)(""),this.class=(0,n.hFB)("")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["icon-produce"]],inputs:{style:[1,"style"],class:[1,"class"]},decls:2,vars:4,consts:[["xmlns","http://www.w3.org/2000/svg","width","19","height","26","viewBox","0 0 19 26","fill","currentColor",1,"tw-block","tw-w-[24px]","tw-h-[24px]"],["d","M9.59011 11.4487C8.61642 11.4487 7.66459 11.7375 6.855 12.2784C6.0454 12.8194 5.4144 13.5882 5.04178 14.4878C4.66917 15.3874 4.57167 16.3773 4.76163 17.3322C4.95159 18.2872 5.42047 19.1644 6.10897 19.8529C6.79748 20.5414 7.67469 21.0103 8.62967 21.2003C9.58465 21.3902 10.5745 21.2927 11.4741 20.9201C12.3737 20.5475 13.1425 19.9165 13.6835 19.1069C14.2245 18.2973 14.5132 17.3455 14.5132 16.3718C14.5118 15.0665 13.9927 13.8151 13.0698 12.8922C12.1468 11.9692 10.8954 11.4501 9.59011 11.4487ZM9.59011 19.6538C8.94099 19.6538 8.30643 19.4614 7.7667 19.1007C7.22697 18.7401 6.8063 18.2275 6.55789 17.6278C6.30948 17.0281 6.24449 16.3682 6.37113 15.7315C6.49776 15.0948 6.81035 14.51 7.26935 14.051C7.72836 13.592 8.31316 13.2794 8.94982 13.1528C9.58647 13.0262 10.2464 13.0912 10.8461 13.3396C11.4458 13.588 11.9584 14.0087 12.319 14.5484C12.6797 15.0881 12.8722 15.7227 12.8722 16.3718C12.8722 17.2423 12.5264 18.0771 11.9109 18.6926C11.2954 19.3081 10.4606 19.6538 9.59011 19.6538ZM18.1029 13.3626L15.0465 4.7277C14.6719 3.58903 13.9503 2.59612 12.983 1.88812C12.0157 1.18012 10.8511 0.79252 9.65246 0.779629C8.4538 0.766738 7.28115 1.12921 6.29884 1.81624C5.31653 2.50327 4.5738 3.48043 4.17473 4.61077L1.14806 13.1749C0.634964 14.533 0.457054 15.9948 0.629428 17.4364C0.801801 18.8779 1.31937 20.2566 2.13822 21.4554C2.95707 22.6542 4.05304 23.6379 5.33311 24.3228C6.61319 25.0077 8.0396 25.3738 9.49132 25.3898C10.943 25.4059 12.3772 25.0715 13.6721 24.4151C14.967 23.7587 16.0845 22.7996 16.9297 21.6192C17.7749 20.4387 18.3229 19.0718 18.5271 17.6345C18.7313 16.1971 18.5858 14.7317 18.1029 13.3626ZM9.59011 23.7564C8.39444 23.7556 7.21682 23.4647 6.15833 22.9086C5.09984 22.3525 4.19208 21.5479 3.51298 20.5638C2.83389 19.5797 2.40372 18.4455 2.25942 17.2586C2.11511 16.0716 2.26097 14.8674 2.68447 13.7492C2.68642 13.7429 2.68882 13.7367 2.69165 13.7308L5.7214 5.15744C6.00655 4.34932 6.53761 3.65079 7.24002 3.15989C7.94243 2.66899 8.78093 2.41037 9.63783 2.42032C10.4947 2.43028 11.327 2.70831 12.0178 3.2154C12.7086 3.72249 13.2233 4.43317 13.4896 5.2477L13.4958 5.26616L16.5542 13.9103C16.9468 15.0242 17.0667 16.2161 16.9038 17.386C16.7409 18.5558 16.2999 19.6696 15.6179 20.6339C14.9358 21.5982 14.0325 22.385 12.9838 22.9283C11.935 23.4716 10.7713 23.7555 9.59011 23.7564Z"]],template:function(i,o){1&i&&(n.qSk(),n.j41(0,"svg",0),n.nrm(1,"path",1),n.k0s()),2&i&&(n.Aen(o.style()),n.HbH(o.class()))},encapsulation:2})}}return t})();var Xv=function(t){return t.SolidOrange="solid-orange",t.OutlinedOrange="outlined-orange",t.SolidGreen="solid-green",t.OutlinedGreen="outlined-green",t}(Xv||{});const b1t=(t,r,e,i,o)=>["tw-border-1 tw-rounded-full tw-border-solid tw-text-xs tw-font-semibold tw-tracking-wider","disabled:tw-cursor-not-allowed disabled:tw-border-gray-300 disabled:tw-bg-gray-100 disabled:tw-text-gray-400",t,r,e,i,o];let wpe=(()=>{class t{constructor(){this.disabled=(0,n.hFB)(!1),this.text=(0,n.hFB)(""),this.disabledText=(0,n.hFB)(""),this.clickedText=(0,n.hFB)(""),this.buttonStyle=(0,n.hFB)(Xv.SolidOrange),this.clicked=(0,n.CGW)(),this.buttonClasses=(0,n.hFB)([]),this.size=(0,n.hFB)("LARGE"),this.isClicked=(0,n.vPA)(!1),this.isTemporarilyDisabled=(0,n.vPA)(!1),this.ButtonStyle=Xv}onClick(e){this.clicked.emit({event:e,action:"button-clicked"}),this.clickedText()&&(this.isClicked.set(!0),this.isTemporarilyDisabled.set(!0),setTimeout(()=>{this.isClicked.set(!1),this.isTemporarilyDisabled.set(!1)},1e3))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-secondary-button"]],inputs:{disabled:[1,"disabled"],text:[1,"text"],disabledText:[1,"disabledText"],clickedText:[1,"clickedText"],buttonStyle:[1,"buttonStyle"],buttonClasses:[1,"buttonClasses"],size:[1,"size"]},outputs:{clicked:"clicked"},decls:2,vars:9,consts:[["type","button",3,"click","ngClass","disabled"]],template:function(i,o){1&i&&(n.j41(0,"button",0),n.bIt("click",function(a){return o.onClick(a)}),n.EFF(1),n.k0s()),2&i&&(n.Y8G("ngClass",n.s1E(3,b1t,o.buttonStyle()===o.ButtonStyle.SolidOrange?"tw-border-fa-orange-500 tw-bg-fa-orange-500 tw-text-white hover:tw-border-fa-orange-600 hover:tw-bg-fa-orange-600":"",o.buttonStyle()===o.ButtonStyle.OutlinedOrange?"tw-border-fa-orange-500 tw-bg-transparent tw-text-fa-orange-500 hover:tw-border-fa-orange-500 hover:tw-bg-fa-orange-500 hover:tw-text-white":"",o.buttonStyle()===o.ButtonStyle.SolidGreen?"tw-border-fa-green-500 tw-bg-fa-green-500 tw-text-white hover:tw-border-fa-green-600 hover:tw-bg-fa-green-600":"",o.buttonStyle()===o.ButtonStyle.OutlinedGreen?"tw-border-fa-green-500 tw-bg-transparent tw-text-fa-green-500 hover:tw-border-fa-green-500 hover:tw-bg-fa-green-500 hover:tw-text-white":"","LARGE"===o.size()?"tw-px-6 tw-py-2":"tw-px-4 tw-py-1"))("disabled",o.disabled()||o.isTemporarilyDisabled()),n.R7$(),n.SpI(" ",o.isClicked()&&o.clickedText()?o.clickedText():o.disabled()&&o.disabledText()?o.disabledText():o.text(),"\n"))},dependencies:[gn,bi],encapsulation:2})}}return t})();const C1t=({dt:t})=>`\n.p-galleria {\n    overflow: hidden;\n    border-style: solid;\n    border-width: ${t("galleria.border.width")};\n    border-color: ${t("galleria.border.color")};\n    border-radius: ${t("galleria.border.radius")};\n}\n\n.p-galleria-content {\n    display: flex;\n    flex-direction: column;\n}\n\n.p-galleria-items-container {\n    display: flex;\n    flex-direction: column;\n    position: relative;\n}\n\n.p-galleria-items {\n    position: relative;\n    display: flex;\n    height: 100%;\n}\n\n.p-galleria-nav-button {\n    position: absolute;\n    top: 50%;\n    display: inline-flex;\n    justify-content: center;\n    align-items: center;\n    overflow: hidden;\n    background: ${t("galleria.nav.button.background")};\n    color: ${t("galleria.nav.button.color")};\n    width: ${t("galleria.nav.button.size")};\n    height: ${t("galleria.nav.button.size")};\n    transition: background ${t("galleria.transition.duration")}, color ${t("galleria.transition.duration")}, outline-color ${t("galleria.transition.duration")}, box-shadow ${t("galleria.transition.duration")};\n    margin: calc(-1 * calc(${t("galleria.nav.button.size")}) / 2) ${t("galleria.nav.button.gutter")} 0 ${t("galleria.nav.button.gutter")};\n    padding: 0;\n    user-select: none;\n    border: 0 none;\n    cursor: pointer;\n    outline-color: transparent;\n}\n\n.p-galleria-nav-button:not(.p-disabled):hover {\n    background: ${t("galleria.nav.button.hover.background")};\n    color: ${t("galleria.nav.button.hover.color")};\n}\n\n.p-galleria-nav-button:not(.p-disabled):focus-visible {\n    box-shadow: ${t("galleria.nav.button.focus.ring.shadow")};\n    outline: ${t("galleria.nav.button.focus.ring.width")} ${t("galleria.nav.button.focus.ring.style")} ${t("galleria.nav.button.focus.ring.color")};\n    outline-offset: ${t("galleria.nav.button.focus.ring.offset")};\n}\n\n.p-galleria-next-icon,\n.p-galleria-prev-icon {\n    font-size: ${t("galleria.nav.icon.size")};\n    width: ${t("galleria.nav.icon.size")};\n    height: ${t("galleria.nav.icon.size")};\n}\n\n.p-galleria-prev-button {\n    border-radius: ${t("galleria.nav.button.prev.border.radius")};\n    left: 0;\n}\n\n.p-galleria-next-button {\n    border-radius: ${t("galleria.nav.button.next.border.radius")};\n    right: 0;\n}\n\n.p-galleria-prev-button:dir(rtl) {\n    left: auto;\n    right: 0;\n    transform: rotate(180deg);\n}\n\n.p-galleria-next-button:dir(rtl) {\n    right: auto;\n    left: 0;\n    transform: rotate(180deg);\n}\n\n.p-galleria-item {\n    display: flex;\n    justify-content: center;\n    align-items: center;\n    height: 100%;\n    width: 100%;\n}\n\n.p-galleria-hover-navigators .p-galleria-nav-button {\n    pointer-events: none;\n    opacity: 0;\n    transition: opacity ${t("galleria.transition.duration")} ease-in-out;\n}\n\n.p-galleria-hover-navigators .p-galleria-items-container:hover .p-galleria-nav-button {\n    pointer-events: all;\n    opacity: 1;\n}\n\n.p-galleria-hover-navigators .p-galleria-items-container:hover .p-galleria-nav-button.p-disabled {\n    pointer-events: none;\n}\n\n.p-galleria-caption {\n    position: absolute;\n    bottom: 0;\n    left: 0;\n    width: 100%;\n    background: ${t("galleria.caption.background")};\n    color: ${t("galleria.caption.color")};\n    padding: ${t("galleria.caption.padding")};\n}\n\n.p-galleria-thumbnails {\n    display: flex;\n    flex-direction: column;\n    overflow: auto;\n    flex-shrink: 0;\n}\n\n.p-galleria-thumbnail-nav-button {\n    align-self: center;\n    flex: 0 0 auto;\n    display: flex;\n    justify-content: center;\n    align-items: center;\n    overflow: hidden;\n    position: relative;\n    margin: 0 ${t("galleria.thumbnail.nav.button.gutter")};\n    padding: 0;\n    border: none;\n    user-select: none;\n    cursor: pointer;\n    background: transparent;\n    color: ${t("galleria.thumbnail.nav.button.color")};\n    width: ${t("galleria.thumbnail.nav.button.size")};\n    height: ${t("galleria.thumbnail.nav.button.size")};\n    transition: background ${t("galleria.transition.duration")}, color ${t("galleria.transition.duration")}, outline-color ${t("galleria.transition.duration")};\n    outline-color: transparent;\n    border-radius: ${t("galleria.thumbnail.nav.button.border.radius")};\n}\n\n.p-galleria-thumbnail-nav-button:hover {\n    background: ${t("galleria.thumbnail.nav.button.hover.background")};\n    color: ${t("galleria.thumbnail.nav.button.hover.color")};\n}\n\n.p-galleria-thumbnail-nav-button:focus-visible {\n    box-shadow: ${t("galleria.thumbnail.nav.button.focus.ring.shadow")};\n    outline: ${t("galleria.thumbnail.nav.button.focus.ring.width")} ${t("galleria.thumbnail.nav.button.focus.ring.style")} ${t("galleria.thumbnail.nav.button.focus.ring.color")};\n    outline-offset: ${t("galleria.thumbnail.nav.button.focus.ring.offset")};\n}\n\n.p-galleria-thumbnail-nav-button .p-galleria-thumbnail-next-icon,\n.p-galleria-thumbnail-nav-button .p-galleria-thumbnail-prev-icon {\n    font-size: ${t("galleria.thumbnail.nav.button.icon.size")};\n    width: ${t("galleria.thumbnail.nav.button.icon.size")};\n    height: ${t("galleria.thumbnail.nav.button.icon.size")};\n}\n\n.p-galleria-thumbnails-content {\n    display: flex;\n    flex-direction: row;\n    background: ${t("galleria.thumbnails.content.background")};\n    padding: ${t("galleria.thumbnails.content.padding")};\n}\n\n.p-galleria-thumbnails-viewport {\n    overflow: hidden;\n    width: 100%;\n}\n\n.p-galleria:not(.p-galleria-thumbnails-right):not(.p-galleria-thumbnails-left) .p-galleria-thumbnail-prev-button:dir(rtl),\n.p-galleria:not(.p-galleria-thumbnails-right):not(.p-galleria-thumbnails-left) .p-galleria-thumbnail-next-button:dir(rtl) {\n    transform: rotate(180deg);\n}\n\n.p-galleria-thumbnail-items {\n    display: flex;\n}\n\n.p-galleria-thumbnail-item {\n    overflow: auto;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    cursor: pointer;\n    opacity: 0.5;\n}\n\n.p-galleria-thumbnail {\n    outline-color: transparent;\n}\n\n.p-galleria-thumbnail-item:hover {\n    opacity: 1;\n    transition: opacity 0.3s;\n}\n\n.p-galleria-thumbnail-item-current {\n    opacity: 1;\n}\n\n.p-galleria-thumbnails-left .p-galleria-content,\n.p-galleria-thumbnails-right .p-galleria-content {\n    flex-direction: row;\n}\n\n.p-galleria-thumbnails-left .p-galleria-items-container,\n.p-galleria-thumbnails-right .p-galleria-items-container {\n    flex-direction: row;\n}\n\n.p-galleria-thumbnails-left .p-galleria-items-container,\n.p-galleria-thumbnails-top .p-galleria-items-container {\n    order: 2;\n}\n\n.p-galleria-thumbnails-left .p-galleria-thumbnails,\n.p-galleria-thumbnails-top .p-galleria-thumbnails {\n    order: 1;\n}\n\n.p-galleria-thumbnails-left .p-galleria-thumbnails-content,\n.p-galleria-thumbnails-right .p-galleria-thumbnails-content {\n    flex-direction: column;\n    flex-grow: 1;\n}\n\n.p-galleria-thumbnails-left .p-galleria-thumbnail-items,\n.p-galleria-thumbnails-right .p-galleria-thumbnail-items {\n    flex-direction: column;\n    height: 100%;\n}\n\n.p-galleria-indicator-list {\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    padding: ${t("galleria.indicator.list.padding")};\n    gap: ${t("galleria.indicator.list.gap")};\n    margin: 0;\n    list-style: none;\n}\n\n.p-galleria-indicator-button {\n    display: inline-flex;\n    align-items: center;\n    background: ${t("galleria.indicator.button.background")};\n    width: ${t("galleria.indicator.button.width")};\n    height: ${t("galleria.indicator.button.height")};\n    transition: background ${t("galleria.transition.duration")}, color ${t("galleria.transition.duration")}, outline-color ${t("galleria.transition.duration")}, box-shadow ${t("galleria.transition.duration")};\n    outline-color: transparent;\n    border-radius: ${t("galleria.indicator.button.border.radius")};\n    margin: 0;\n    padding: 0;\n    border: none;\n    user-select: none;\n    cursor: pointer;\n}\n\n.p-galleria-indicator-button:hover {\n    background: ${t("galleria.indicator.button.hover.background")};\n}\n\n.p-galleria-indicator-button:focus-visible {\n    box-shadow: ${t("galleria.indicator.button.focus.ring.shadow")};\n    outline: ${t("galleria.indicator.button.focus.ring.width")} ${t("galleria.indicator.button.focus.ring.style")} ${t("galleria.indicator.button.focus.ring.color")};\n    outline-offset: ${t("galleria.indicator.button.focus.ring.offset")};\n}\n\n.p-galleria-indicator-active .p-galleria-indicator-button {\n    background: ${t("galleria.indicator.button.active.background")};\n}\n\n.p-galleria-indicators-left .p-galleria-items-container,\n.p-galleria-indicators-right .p-galleria-items-container {\n    flex-direction: row;\n    align-items: center;\n}\n\n.p-galleria-indicators-left .p-galleria-items,\n.p-galleria-indicators-top .p-galleria-items {\n    order: 2;\n}\n\n.p-galleria-indicators-left .p-galleria-indicator-list,\n.p-galleria-indicators-top .p-galleria-indicator-list {\n    order: 1;\n}\n\n.p-galleria-indicators-left .p-galleria-indicator-list,\n.p-galleria-indicators-right .p-galleria-indicator-list {\n    flex-direction: column;\n}\n\n.p-galleria-inset-indicators .p-galleria-indicator-list {\n    position: absolute;\n    display: flex;\n    z-index: 1;\n    background: ${t("galleria.inset.indicator.list.background")};\n}\n\n.p-galleria-inset-indicators .p-galleria-indicator-button {\n    background: ${t("galleria.inset.indicator.button.background")};\n}\n\n.p-galleria-inset-indicators .p-galleria-indicator-button:hover {\n    background: ${t("galleria.inset.indicator.button.hover.background")};\n}\n\n.p-galleria-inset-indicators .p-galleria-indicator-active .p-galleria-indicator-button {\n    background: ${t("galleria.inset.indicator.button.active.background")};\n}\n\n.p-galleria-inset-indicators.p-galleria-indicators-top .p-galleria-indicator-list {\n    top: 0;\n    left: 0;\n    width: 100%;\n    align-items: flex-start;\n}\n\n.p-galleria-inset-indicators.p-galleria-indicators-right .p-galleria-indicator-list {\n    right: 0;\n    top: 0;\n    height: 100%;\n    align-items: flex-end;\n}\n\n.p-galleria-inset-indicators.p-galleria-indicators-bottom .p-galleria-indicator-list {\n    bottom: 0;\n    left: 0;\n    width: 100%;\n    align-items: flex-end;\n}\n\n.p-galleria-inset-indicators.p-galleria-indicators-left .p-galleria-indicator-list {\n    left: 0;\n    top: 0;\n    height: 100%;\n    align-items: flex-start;\n}\n\n.p-galleria-mask {\n    position: fixed;\n    top: 0;\n    left: 0;\n    width: 100%;\n    height: 100%;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n}\n\n.p-galleria-close-button {\n    position: absolute;\n    top: 0;\n    right: 0;\n    display: flex;\n    justify-content: center;\n    align-items: center;\n    overflow: hidden;\n    margin: ${t("galleria.close.button.gutter")};\n    background: ${t("galleria.close.button.background")};\n    color: ${t("galleria.close.button.color")};\n    width: ${t("galleria.close.button.size")};\n    height: ${t("galleria.close.button.size")};\n    padding: 0;\n    border: none;\n    user-select: none;\n    cursor: pointer;\n    border-radius: ${t("galleria.close.button.border.radius")};\n    outline-color: transparent;\n    transition: background ${t("galleria.transition.duration")}, color ${t("galleria.transition.duration")}, outline-color ${t("galleria.transition.duration")};\n}\n\n.p-galleria-close-icon {\n    font-size: ${t("galleria.close.button.icon.size")};\n    width: ${t("galleria.close.button.icon.size")};\n    height: ${t("galleria.close.button.icon.size")};\n}\n\n.p-galleria-close-button:hover {\n    background: ${t("galleria.close.button.hover.background")};\n    color: ${t("galleria.close.button.hover.color")};\n}\n\n.p-galleria-close-button:focus-visible {\n    box-shadow: ${t("galleria.close.button.focus.ring.shadow")};\n    outline: ${t("galleria.close.button.focus.ring.width")} ${t("galleria.close.button.focus.ring.style")} ${t("galleria.close.button.focus.ring.color")};\n    outline-offset: ${t("galleria.close.button.focus.ring.offset")};\n}\n\n.p-galleria-mask .p-galleria-nav-button {\n    position: fixed;\n    top: 50%;\n}\n\n.p-galleria-enter-active {\n    transition: all 150ms cubic-bezier(0, 0, 0.2, 1);\n}\n\n.p-galleria-leave-active {\n    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);\n}\n\n.p-galleria-enter-from,\n.p-galleria-leave-to {\n    opacity: 0;\n    transform: scale(0.7);\n}\n\n.p-galleria-enter-active .p-galleria-nav-button {\n    opacity: 0;\n}\n\n.p-items-hidden .p-galleria-thumbnail-item {\n    visibility: hidden;\n}\n\n.p-items-hidden .p-galleria-thumbnail-item.p-galleria-thumbnail-item-active {\n    visibility: visible;\n}\n`,w1t={mask:"p-galleria-mask p-overlay-mask p-overlay-mask-enter",root:({instance:t})=>{const r=t.$attrs.showThumbnails&&t.getPositionClass("p-galleria-thumbnails",t.$attrs.thumbnailsPosition),e=t.$attrs.showIndicators&&t.getPositionClass("p-galleria-indicators",t.$attrs.indicatorsPosition);return["p-galleria p-component",{"p-galleria-fullscreen":t.$attrs.fullScreen,"p-galleria-inset-indicators":t.$attrs.showIndicatorsOnItem,"p-galleria-hover-navigators":t.$attrs.showItemNavigatorsOnHover&&!t.$attrs.fullScreen},r,e]},closeButton:"p-galleria-close-button",closeIcon:"p-galleria-close-icon",header:"p-galleria-header",content:"p-galleria-content",footer:"p-galleria-footer",itemsContainer:"p-galleria-items-container",items:"p-galleria-items",prevButton:({instance:t})=>["p-galleria-prev-button p-galleria-nav-button",{"p-disabled":t.isNavBackwardDisabled()}],prevIcon:"p-galleria-prev-icon",item:"p-galleria-item",nextButton:({instance:t})=>["p-galleria-next-button p-galleria-nav-button",{"p-disabled":t.isNavForwardDisabled()}],nextIcon:"p-galleria-next-icon",caption:"p-galleria-caption",indicatorList:"p-galleria-indicator-list",indicator:({instance:t,index:r})=>["p-galleria-indicator",{"p-galleria-indicator-active":t.isIndicatorItemActive(r)}],indicatorButton:"p-galleria-indicator-button",thumbnails:"p-galleria-thumbnails",thumbnailContent:"p-galleria-thumbnails-content",thumbnailPrevButton:({instance:t})=>["p-galleria-thumbnail-prev-button p-galleria-thumbnail-nav-button",{"p-disabled":t.isNavBackwardDisabled()}],thumbnailPrevIcon:"p-galleria-thumbnail-prev-icon",thumbnailsViewport:"p-galleria-thumbnails-viewport",thumbnailItems:"p-galleria-thumbnail-items",thumbnailItem:({instance:t,index:r,activeIndex:e})=>["p-galleria-thumbnail-item",{"p-galleria-thumbnail-item-current":e===r,"p-galleria-thumbnail-item-active":t.isItemActive(r),"p-galleria-thumbnail-item-start":t.firstItemAciveIndex()===r,"p-galleria-thumbnail-item-end":t.lastItemActiveIndex()===r}],thumbnail:"p-galleria-thumbnail",thumbnailNextButton:({instance:t})=>["p-galleria-thumbnail-next-button  p-galleria-thumbnail-nav-button",{"p-disabled":t.isNavForwardDisabled()}],thumbnailNextIcon:"p-galleria-thumbnail-next-icon"};let Tpe=(()=>{class t extends gs{name="galleria";theme=C1t;classes=w1t;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const S1t=["header"],x1t=["footer"],E1t=["indicator"],D1t=["caption"],k1t=["closeicon"],I1t=["previousthumbnailicon"],A1t=["nextthumbnailicon"],M1t=["itempreviousicon"],R1t=["itemnexticon"],O1t=["item"],F1t=["thumbnail"],P1t=["mask"],L1t=["container"],N1t=()=>({"p-galleria-mask p-overlay-mask p-overlay-mask-enter":!0}),G1t=(t,r)=>({showTransitionParams:t,hideTransitionParams:r}),B1t=t=>({value:"visible",params:t});function V1t(t,r){if(1&t){const e=n.RV6();n.j41(0,"p-galleriaContent",7),n.bIt("@animation.start",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.onAnimationStart(o))})("@animation.done",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.onAnimationEnd(o))})("maskHide",function(){n.eBV(e);const o=n.XpG(3);return n.Njj(o.onMaskHide())})("activeItemChange",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.onActiveItemChange(o))}),n.k0s()}if(2&t){const e=n.XpG(3);n.Y8G("@animation",n.eq3(9,B1t,n.l_i(6,G1t,e.showTransitionOptions,e.hideTransitionOptions)))("value",e.value)("activeIndex",e.activeIndex)("numVisible",e.numVisibleLimit||e.numVisible)("ngStyle",e.containerStyle)("fullScreen",e.fullScreen)}}function j1t(t,r){if(1&t&&(n.j41(0,"div",5,2),n.DNE(2,V1t,1,11,"p-galleriaContent",6),n.k0s()),2&t){const e=n.XpG(2);n.HbH(e.maskClass),n.Y8G("ngClass",n.lJ4(6,N1t)),n.BMQ("role",e.fullScreen?"dialog":"region")("aria-modal",e.fullScreen?"true":void 0),n.R7$(2),n.Y8G("ngIf",e.visible)}}function H1t(t,r){if(1&t&&(n.j41(0,"div",null,1),n.DNE(2,j1t,3,7,"div",4),n.k0s()),2&t){const e=n.XpG();n.R7$(2),n.Y8G("ngIf",e.maskVisible)}}function U1t(t,r){if(1&t){const e=n.RV6();n.j41(0,"p-galleriaContent",8),n.bIt("activeItemChange",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onActiveItemChange(o))}),n.k0s()}if(2&t){const e=n.XpG();n.Y8G("value",e.value)("activeIndex",e.activeIndex)("numVisible",e.numVisibleLimit||e.numVisible)}}const $1t=["closeButton"],Y1t=(t,r,e)=>({"p-galleria p-component":!0,"p-galleria-fullscreen":t,"p-galleria-inset-indicators":r,"p-galleria-hover-navigators":e}),W1t=()=>({});function z1t(t,r){1&t&&n.nrm(0,"TimesIcon",11),2&t&&n.Y8G("styleClass","p-galleria-close-icon")}function q1t(t,r){}function X1t(t,r){1&t&&n.DNE(0,q1t,0,0,"ng-template")}function K1t(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",8),n.bIt("click",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.maskHide.emit())}),n.DNE(1,z1t,1,1,"TimesIcon",9)(2,X1t,1,0,null,10),n.k0s()}if(2&t){const e=n.XpG(2);n.BMQ("aria-label",e.closeAriaLabel())("data-pc-section","closebutton"),n.R7$(),n.Y8G("ngIf",!e.galleria.closeIconTemplate&&!e.galleria._closeIconTemplate),n.R7$(),n.Y8G("ngTemplateOutlet",e.galleria.closeIconTemplate||e.galleria._closeIconTemplate)}}function Q1t(t,r){if(1&t&&(n.j41(0,"div",12),n.nrm(1,"p-galleriaItemSlot",13),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("templates",e.galleria.templates)}}function J1t(t,r){if(1&t){const e=n.RV6();n.j41(0,"p-galleriaThumbnails",14),n.bIt("onActiveIndexChange",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onActiveIndexChange(o))})("stopSlideShow",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.stopSlideShow())}),n.k0s()}if(2&t){const e=n.XpG(2);n.Y8G("containerId",e.id)("value",e.value)("activeIndex",e.activeIndex)("templates",e.galleria.templates)("numVisible",e.numVisible)("responsiveOptions",e.galleria.responsiveOptions)("circular",e.galleria.circular)("isVertical",e.isVertical())("contentHeight",e.galleria.verticalThumbnailViewPortHeight)("showThumbnailNavigators",e.galleria.showThumbnailNavigators)("slideShowActive",e.slideShowActive)}}function Z1t(t,r){if(1&t&&(n.j41(0,"div",15),n.nrm(1,"p-galleriaItemSlot",16),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("templates",e.galleria.templates)}}function ebt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",1),n.DNE(1,K1t,3,4,"button",2)(2,Q1t,2,1,"div",3),n.j41(3,"div",4)(4,"p-galleriaItem",5),n.bIt("onActiveIndexChange",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onActiveIndexChange(o))})("startSlideShow",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.startSlideShow())})("stopSlideShow",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.stopSlideShow())}),n.k0s(),n.DNE(5,J1t,1,11,"p-galleriaThumbnails",6),n.k0s(),n.DNE(6,Z1t,2,1,"div",7),n.k0s()}if(2&t){const e=n.XpG();n.HbH(e.galleriaClass()),n.Y8G("ngClass",n.sMw(24,Y1t,e.galleria.fullScreen,e.galleria.showIndicatorsOnItem,e.galleria.showItemNavigatorsOnHover&&!e.galleria.fullScreen))("ngStyle",e.galleria.fullScreen?n.lJ4(28,W1t):e.galleria.containerStyle)("pFocusTrapDisabled",!e.fullScreen),n.BMQ("id",e.id)("role","region"),n.R7$(),n.Y8G("ngIf",e.galleria.fullScreen),n.R7$(),n.Y8G("ngIf",e.galleria.templates&&(e.galleria.headerFacet||e.galleria.headerTemplate)),n.R7$(),n.BMQ("aria-live",e.galleria.autoPlay?"polite":"off"),n.R7$(),n.Y8G("id",e.id)("value",e.value)("activeIndex",e.activeIndex)("circular",e.galleria.circular)("templates",e.galleria.templates)("showIndicators",e.galleria.showIndicators)("changeItemOnIndicatorHover",e.galleria.changeItemOnIndicatorHover)("indicatorFacet",e.galleria.indicatorFacet)("captionFacet",e.galleria.captionFacet)("showItemNavigators",e.galleria.showItemNavigators)("autoPlay",e.galleria.autoPlay)("slideShowActive",e.slideShowActive),n.R7$(),n.Y8G("ngIf",e.galleria.showThumbnails),n.R7$(),n.Y8G("ngIf",e.shouldRenderFooter())}}function tbt(t,r){1&t&&n.eu8(0)}function nbt(t,r){if(1&t&&(n.qex(0),n.DNE(1,tbt,1,0,"ng-container",1),n.bVm()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",e.context)}}const ibt=t=>({"p-galleria-prev-button p-galleria-nav-button":!0,"p-disabled":t}),rbt=t=>({"p-galleria-next-button p-galleria-nav-button":!0,"p-disabled":t}),obt=t=>({"p-galleria-indicator":!0,"p-galleria-indicator-active":t});function sbt(t,r){1&t&&n.nrm(0,"ChevronLeftIcon",9),2&t&&n.Y8G("styleClass","p-galleria-prev-icon")}function abt(t,r){}function lbt(t,r){1&t&&n.DNE(0,abt,0,0,"ng-template")}function cbt(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",6),n.bIt("click",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.navBackward(o))})("focus",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onButtonFocus("left"))})("blur",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onButtonBlur("left"))}),n.DNE(1,sbt,1,1,"ChevronLeftIcon",7)(2,lbt,1,0,null,8),n.k0s()}if(2&t){const e=n.XpG();n.Y8G("ngClass",n.eq3(4,ibt,e.isNavBackwardDisabled()))("disabled",e.isNavBackwardDisabled()),n.R7$(),n.Y8G("ngIf",!e.galleria.itemPreviousIconTemplate&&!e.galleria._itemPreviousIconTemplate),n.R7$(),n.Y8G("ngTemplateOutlet",e.galleria.itemPreviousIconTemplate||e.galleria._itemPreviousIconTemplate)}}function ubt(t,r){1&t&&n.nrm(0,"ChevronRightIcon",9),2&t&&n.Y8G("styleClass","p-galleria-next-icon")}function dbt(t,r){}function pbt(t,r){1&t&&n.DNE(0,dbt,0,0,"ng-template")}function hbt(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",6),n.bIt("click",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.navForward(o))})("focus",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onButtonFocus("right"))})("blur",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onButtonBlur("right"))}),n.DNE(1,ubt,1,1,"ChevronRightIcon",7)(2,pbt,1,0,null,8),n.k0s()}if(2&t){const e=n.XpG();n.Y8G("ngClass",n.eq3(4,rbt,e.isNavForwardDisabled()))("disabled",e.isNavForwardDisabled()),n.R7$(),n.Y8G("ngIf",!e.galleria.itemNextIconTemplate&&!e.galleria._itemNextIconTemplate),n.R7$(),n.Y8G("ngTemplateOutlet",e.galleria.itemNextIconTemplate||e.galleria._itemNextIconTemplate)}}function fbt(t,r){if(1&t&&(n.j41(0,"div",10),n.nrm(1,"p-galleriaItemSlot",11),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.Y8G("item",e.activeItem)("templates",e.templates)}}function mbt(t,r){1&t&&n.nrm(0,"button",17)}function gbt(t,r){if(1&t){const e=n.RV6();n.j41(0,"li",14),n.bIt("click",function(){const o=n.eBV(e).index,s=n.XpG(2);return n.Njj(s.onIndicatorClick(o))})("mouseenter",function(){const o=n.eBV(e).index,s=n.XpG(2);return n.Njj(s.onIndicatorMouseEnter(o))})("keydown",function(o){const s=n.eBV(e).index,a=n.XpG(2);return n.Njj(a.onIndicatorKeyDown(o,s))}),n.DNE(1,mbt,1,0,"button",15),n.nrm(2,"p-galleriaItemSlot",16),n.k0s()}if(2&t){const e=r.index,i=n.XpG(2);n.Y8G("ngClass",n.eq3(7,obt,i.isIndicatorItemActive(e))),n.BMQ("aria-label",i.ariaPageLabel(e+1))("aria-selected",i.activeIndex===e)("aria-controls",i.id+"_item_"+e),n.R7$(),n.Y8G("ngIf",!i.indicatorFacet&&!i.galleria.indicatorTemplate),n.R7$(),n.Y8G("index",e)("templates",i.templates)}}function vbt(t,r){if(1&t&&(n.j41(0,"ul",12),n.DNE(1,gbt,3,9,"li",13),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngForOf",e.value)}}const _bt=["itemsContainer"],ybt=t=>({height:t}),bbt=t=>({"p-galleria-thumbnail-prev-button p-galleria-thumbnail-nav-button":!0,"p-disabled":t}),Cbt=(t,r,e,i)=>({"p-galleria-thumbnail-item":!0,"p-galleria-thumbnail-item-current":t,"p-galleria-thumbnail-item-active":r,"p-galleria-thumbnail-item-start":e,"p-galleria-thumbnail-item-end":i}),wbt=t=>({"p-galleria-thumbnail-next-button p-galleria-thumbnail-nav-button":!0,"p-disabled":t});function Tbt(t,r){1&t&&n.nrm(0,"ChevronLeftIcon",11),2&t&&n.Y8G("styleClass","p-galleria-thumbnail-prev-icon")}function Sbt(t,r){1&t&&n.nrm(0,"ChevronUpIcon",11),2&t&&n.Y8G("styleClass","p-galleria-thumbnail-prev-icon")}function xbt(t,r){if(1&t&&(n.qex(0),n.DNE(1,Tbt,1,1,"ChevronLeftIcon",10)(2,Sbt,1,1,"ChevronUpIcon",10),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngIf",!e.isVertical),n.R7$(),n.Y8G("ngIf",e.isVertical)}}function Ebt(t,r){}function Dbt(t,r){1&t&&n.DNE(0,Ebt,0,0,"ng-template")}function kbt(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",7),n.bIt("click",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.navBackward(o))}),n.DNE(1,xbt,3,2,"ng-container",8)(2,Dbt,1,0,null,9),n.k0s()}if(2&t){const e=n.XpG();n.Y8G("ngClass",n.eq3(5,bbt,e.isNavBackwardDisabled()))("disabled",e.isNavBackwardDisabled()),n.BMQ("aria-label",e.ariaPrevButtonLabel()),n.R7$(),n.Y8G("ngIf",!e.galleria.previousThumbnailIconTemplate&&!e.galleria._previousThumbnailIconTemplate),n.R7$(),n.Y8G("ngTemplateOutlet",e.galleria.previousThumbnailIconTemplate||e.galleria._previousThumbnailIconTemplate)}}function Ibt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",12),n.bIt("keydown",function(o){const s=n.eBV(e).index,a=n.XpG();return n.Njj(a.onThumbnailKeydown(o,s))}),n.j41(1,"div",13),n.bIt("click",function(){const o=n.eBV(e).index,s=n.XpG();return n.Njj(s.onItemClick(o))})("touchend",function(){const o=n.eBV(e).index,s=n.XpG();return n.Njj(s.onItemClick(o))})("keydown.enter",function(){const o=n.eBV(e).index,s=n.XpG();return n.Njj(s.onItemClick(o))}),n.nrm(2,"p-galleriaItemSlot",14),n.k0s()()}if(2&t){const e=r.$implicit,i=r.index,o=n.XpG();n.Y8G("ngClass",n.ziG(10,Cbt,o.activeIndex===i,o.isItemActive(i),o.firstItemAciveIndex()===i,o.lastItemActiveIndex()===i)),n.BMQ("aria-selected",o.activeIndex===i)("aria-controls",o.containerId+"_item_"+i)("data-pc-section","thumbnailitem")("data-p-active",o.activeIndex===i),n.R7$(),n.BMQ("tabindex",o.activeIndex===i?0:-1)("aria-current",o.activeIndex===i?"page":void 0)("aria-label",o.ariaPageLabel(i+1)),n.R7$(),n.Y8G("item",e)("templates",o.templates)}}function Abt(t,r){1&t&&n.nrm(0,"ChevronRightIcon",16),2&t&&n.Y8G("ngClass","p-galleria-thumbnail-next-icon")}function Mbt(t,r){1&t&&n.nrm(0,"ChevronDownIcon",16),2&t&&n.Y8G("ngClass","p-galleria-thumbnail-next-icon")}function Rbt(t,r){if(1&t&&(n.qex(0),n.DNE(1,Abt,1,1,"ChevronRightIcon",15)(2,Mbt,1,1,"ChevronDownIcon",15),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngIf",!e.isVertical),n.R7$(),n.Y8G("ngIf",e.isVertical)}}function Obt(t,r){}function Fbt(t,r){1&t&&n.DNE(0,Obt,0,0,"ng-template")}function Pbt(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",7),n.bIt("click",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.navForward(o))}),n.DNE(1,Rbt,3,2,"ng-container",8)(2,Fbt,1,0,null,9),n.k0s()}if(2&t){const e=n.XpG();n.Y8G("ngClass",n.eq3(5,wbt,e.isNavForwardDisabled()))("disabled",e.isNavForwardDisabled()),n.BMQ("aria-label",e.ariaNextButtonLabel()),n.R7$(),n.Y8G("ngIf",!e.galleria.nextThumbnailIconTemplate&&!e.galleria._nextThumbnailIconTemplate),n.R7$(),n.Y8G("ngTemplateOutlet",e.galleria.nextThumbnailIconTemplate||e.galleria._nextThumbnailIconTemplate)}}let hP=(()=>{class t extends jo{platformId;element;cd;get activeIndex(){return this._activeIndex}set activeIndex(e){this._activeIndex=e}fullScreen=!1;id;value;numVisible=3;responsiveOptions;showItemNavigators=!1;showThumbnailNavigators=!0;showItemNavigatorsOnHover=!1;changeItemOnIndicatorHover=!1;circular=!1;autoPlay=!1;shouldStopAutoplayByClick=!0;transitionInterval=4e3;showThumbnails=!0;thumbnailsPosition="bottom";verticalThumbnailViewPortHeight="300px";showIndicators=!1;showIndicatorsOnItem=!1;indicatorsPosition="bottom";baseZIndex=0;maskClass;containerClass;containerStyle;showTransitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.maskVisible&&(this.maskVisible=!0)}activeIndexChange=new n.bkB;visibleChange=new n.bkB;mask;container;_visible=!1;_activeIndex=0;headerTemplate;headerFacet;footerTemplate;footerFacet;indicatorTemplate;indicatorFacet;captionTemplate;captionFacet;_closeIconTemplate;closeIconTemplate;_previousThumbnailIconTemplate;previousThumbnailIconTemplate;_nextThumbnailIconTemplate;nextThumbnailIconTemplate;_itemPreviousIconTemplate;itemPreviousIconTemplate;_itemNextIconTemplate;itemNextIconTemplate;_itemTemplate;itemTemplate;_thumbnailTemplate;thumbnailTemplate;maskVisible=!1;numVisibleLimit=0;_componentStyle=(0,n.WQX)(Tpe);constructor(e,i,o){super(),this.platformId=e,this.element=i,this.cd=o}templates;ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"header":this.headerFacet=e.template;break;case"footer":this.footerFacet=e.template;break;case"indicator":this.indicatorFacet=e.template;break;case"closeicon":this.closeIconTemplate=e.template;break;case"itemnexticon":this.itemNextIconTemplate=e.template;break;case"itempreviousicon":this.itemPreviousIconTemplate=e.template;break;case"previousthumbnailicon":this.previousThumbnailIconTemplate=e.template;break;case"nextthumbnailicon":this.nextThumbnailIconTemplate=e.template;break;case"caption":this.captionFacet=e.template;break;case"item":this.itemTemplate=e.template;break;case"thumbnail":this.thumbnailTemplate=e.template}})}ngOnChanges(e){super.ngOnChanges(e),this.numVisibleLimit=e.value&&e.value.currentValue?.length<this.numVisible?e.value.currentValue.length:0}onMaskHide(){this.visible=!1,this.visibleChange.emit(!1)}onActiveItemChange(e){this.activeIndex!==e&&(this.activeIndex=e,this.activeIndexChange.emit(e))}onAnimationStart(e){switch(e.toState){case"visible":this.enableModality(),setTimeout(()=>{la(xo(this.container.nativeElement,'[data-pc-section="closebutton"]'))},25);break;case"void":Nc(this.mask?.nativeElement,"p-overlay-mask-leave")}}onAnimationEnd(e){"void"===e.toState&&this.disableModality()}enableModality(){tO(),this.cd.markForCheck(),this.mask&&Yc.set("modal",this.mask.nativeElement,this.baseZIndex||this.config.zIndex.modal)}disableModality(){Lw(),this.maskVisible=!1,this.cd.markForCheck(),this.mask&&Yc.clear(this.mask.nativeElement)}ngOnDestroy(){this.fullScreen&&ru(this.document.body,"p-overflow-hidden"),this.mask&&this.disableModality()}static \u0275fac=function(i){return new(i||t)(n.rXU(n.Agw),n.rXU(n.aKT),n.rXU(n.gRc))};static \u0275cmp=n.VBU({type:t,selectors:[["p-galleria"]],contentQueries:function(i,o,s){if(1&i&&(n.wni(s,S1t,4),n.wni(s,x1t,4),n.wni(s,E1t,4),n.wni(s,D1t,4),n.wni(s,k1t,4),n.wni(s,I1t,4),n.wni(s,A1t,4),n.wni(s,M1t,4),n.wni(s,R1t,4),n.wni(s,O1t,4),n.wni(s,F1t,4),n.wni(s,hs,4)),2&i){let a;n.mGM(a=n.lsd())&&(o.headerTemplate=a.first),n.mGM(a=n.lsd())&&(o.footerTemplate=a.first),n.mGM(a=n.lsd())&&(o.indicatorTemplate=a.first),n.mGM(a=n.lsd())&&(o.captionTemplate=a.first),n.mGM(a=n.lsd())&&(o._closeIconTemplate=a.first),n.mGM(a=n.lsd())&&(o._previousThumbnailIconTemplate=a.first),n.mGM(a=n.lsd())&&(o._nextThumbnailIconTemplate=a.first),n.mGM(a=n.lsd())&&(o._itemPreviousIconTemplate=a.first),n.mGM(a=n.lsd())&&(o._itemNextIconTemplate=a.first),n.mGM(a=n.lsd())&&(o._itemTemplate=a.first),n.mGM(a=n.lsd())&&(o._thumbnailTemplate=a.first),n.mGM(a=n.lsd())&&(o.templates=a)}},viewQuery:function(i,o){if(1&i&&(n.GBs(P1t,5),n.GBs(L1t,5)),2&i){let s;n.mGM(s=n.lsd())&&(o.mask=s.first),n.mGM(s=n.lsd())&&(o.container=s.first)}},inputs:{activeIndex:"activeIndex",fullScreen:[2,"fullScreen","fullScreen",n.L39],id:"id",value:"value",numVisible:[2,"numVisible","numVisible",n.Udg],responsiveOptions:"responsiveOptions",showItemNavigators:[2,"showItemNavigators","showItemNavigators",n.L39],showThumbnailNavigators:[2,"showThumbnailNavigators","showThumbnailNavigators",n.L39],showItemNavigatorsOnHover:[2,"showItemNavigatorsOnHover","showItemNavigatorsOnHover",n.L39],changeItemOnIndicatorHover:[2,"changeItemOnIndicatorHover","changeItemOnIndicatorHover",n.L39],circular:[2,"circular","circular",n.L39],autoPlay:[2,"autoPlay","autoPlay",n.L39],shouldStopAutoplayByClick:[2,"shouldStopAutoplayByClick","shouldStopAutoplayByClick",n.L39],transitionInterval:[2,"transitionInterval","transitionInterval",n.Udg],showThumbnails:[2,"showThumbnails","showThumbnails",n.L39],thumbnailsPosition:"thumbnailsPosition",verticalThumbnailViewPortHeight:"verticalThumbnailViewPortHeight",showIndicators:[2,"showIndicators","showIndicators",n.L39],showIndicatorsOnItem:[2,"showIndicatorsOnItem","showIndicatorsOnItem",n.L39],indicatorsPosition:"indicatorsPosition",baseZIndex:[2,"baseZIndex","baseZIndex",n.Udg],maskClass:"maskClass",containerClass:"containerClass",containerStyle:"containerStyle",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",visible:"visible"},outputs:{activeIndexChange:"activeIndexChange",visibleChange:"visibleChange"},standalone:!1,features:[n.Jv_([Tpe]),n.GFd,n.Vt3,n.OA$],decls:3,vars:2,consts:[["windowed",""],["container",""],["mask",""],[4,"ngIf","ngIfElse"],[3,"ngClass","class",4,"ngIf"],[3,"ngClass"],[3,"value","activeIndex","numVisible","ngStyle","fullScreen","maskHide","activeItemChange",4,"ngIf"],[3,"maskHide","activeItemChange","value","activeIndex","numVisible","ngStyle","fullScreen"],[3,"activeItemChange","value","activeIndex","numVisible"]],template:function(i,o){if(1&i&&n.DNE(0,H1t,3,1,"div",3)(1,U1t,1,3,"ng-template",null,0,n.C5r),2&i){const s=n.sdS(2);n.Y8G("ngIf",o.fullScreen)("ngIfElse",s)}},dependencies:()=>[bi,fi,Jr,Lbt],encapsulation:2,data:{animation:[(0,Hi.hZ)("animation",[(0,Hi.kY)("void => visible",[(0,Hi.iF)({transform:"scale(0.7)",opacity:0}),(0,Hi.i0)("{{showTransitionParams}}")]),(0,Hi.kY)("visible => void",[(0,Hi.i0)("{{hideTransitionParams}}",(0,Hi.iF)({transform:"scale(0.7)",opacity:0}))])])]},changeDetection:0})}return t})(),Lbt=(()=>{class t extends jo{galleria;cd;differs;elementRef;get activeIndex(){return this._activeIndex}set activeIndex(e){this._activeIndex=e}value=[];numVisible;fullScreen;maskHide=new n.bkB;activeItemChange=new n.bkB;closeButton;id;_activeIndex=0;slideShowActive=!0;interval;styleClass;differ;constructor(e,i,o,s){super(),this.galleria=e,this.cd=i,this.differs=o,this.elementRef=s,this.id=this.galleria.id||Bl("pn_id_"),this.differ=this.differs.find(this.galleria).create()}handleFullscreenChange(e){this.fullScreen=document?.fullscreenElement===this.elementRef.nativeElement?.children[0]}ngDoCheck(){if(Gr(this.galleria.platformId)){const e=this.differ.diff(this.galleria);e&&e.forEachItem.length>0&&this.cd.markForCheck()}}shouldRenderFooter(){return this.galleria.footerFacet&&this.galleria.templates.toArray().length>0||this.galleria.footerTemplate}galleriaClass(){const e=this.galleria.showThumbnails&&this.getPositionClass("p-galleria-thumbnails",this.galleria.thumbnailsPosition),i=this.galleria.showIndicators&&this.getPositionClass("p-galleria-indicators",this.galleria.indicatorsPosition);return(this.galleria.containerClass?this.galleria.containerClass+" ":"")+(e?e+" ":"")+(i?i+" ":"")}startSlideShow(){Gr(this.galleria.platformId)&&(this.interval=setInterval(()=>{let e=this.galleria.circular&&this.value.length-1===this.activeIndex?0:this.activeIndex+1;this.onActiveIndexChange(e),this.activeIndex=e},this.galleria.transitionInterval),this.slideShowActive=!0)}stopSlideShow(){this.galleria.autoPlay&&!this.galleria.shouldStopAutoplayByClick||(this.interval&&clearInterval(this.interval),this.slideShowActive=!1)}getPositionClass(e,i){const s=["top","left","bottom","right"].find(a=>a===i);return s?`${e}-${s}`:""}isVertical(){return"left"===this.galleria.thumbnailsPosition||"right"===this.galleria.thumbnailsPosition}onActiveIndexChange(e){this.activeIndex!==e&&(this.activeIndex=e,this.activeItemChange.emit(this.activeIndex))}closeAriaLabel(){return this.config.translation.aria?this.config.translation.aria.close:void 0}static \u0275fac=function(i){return new(i||t)(n.rXU(hP),n.rXU(n.gRc),n.rXU(n.MKu),n.rXU(n.aKT))};static \u0275cmp=n.VBU({type:t,selectors:[["p-galleriaContent"]],viewQuery:function(i,o){if(1&i&&n.GBs($1t,5),2&i){let s;n.mGM(s=n.lsd())&&(o.closeButton=s.first)}},hostBindings:function(i,o){1&i&&n.bIt("fullscreenchange",function(a){return o.handleFullscreenChange(a)},!1,n.EBC)},inputs:{activeIndex:"activeIndex",value:"value",numVisible:[2,"numVisible","numVisible",n.Udg],fullScreen:[2,"fullScreen","fullScreen",n.L39]},outputs:{maskHide:"maskHide",activeItemChange:"activeItemChange"},standalone:!1,features:[n.GFd,n.Vt3],decls:1,vars:1,consts:[["pFocusTrap","",3,"ngClass","ngStyle","class","pFocusTrapDisabled",4,"ngIf"],["pFocusTrap","",3,"ngClass","ngStyle","pFocusTrapDisabled"],["type","button","class","p-galleria-close-button",3,"click",4,"ngIf"],["class","p-galleria-header",4,"ngIf"],[1,"p-galleria-content"],[3,"onActiveIndexChange","startSlideShow","stopSlideShow","id","value","activeIndex","circular","templates","showIndicators","changeItemOnIndicatorHover","indicatorFacet","captionFacet","showItemNavigators","autoPlay","slideShowActive"],[3,"containerId","value","activeIndex","templates","numVisible","responsiveOptions","circular","isVertical","contentHeight","showThumbnailNavigators","slideShowActive","onActiveIndexChange","stopSlideShow",4,"ngIf"],["class","p-galleria-footer",4,"ngIf"],["type","button",1,"p-galleria-close-button",3,"click"],[3,"styleClass",4,"ngIf"],[4,"ngTemplateOutlet"],[3,"styleClass"],[1,"p-galleria-header"],["type","header",3,"templates"],[3,"onActiveIndexChange","stopSlideShow","containerId","value","activeIndex","templates","numVisible","responsiveOptions","circular","isVertical","contentHeight","showThumbnailNavigators","slideShowActive"],[1,"p-galleria-footer"],["type","footer",3,"templates"]],template:function(i,o){1&i&&n.DNE(0,ebt,7,29,"div",0),2&i&&n.Y8G("ngIf",o.value&&o.value.length>0)},dependencies:()=>[bi,fi,uo,Jr,pf,Ite,RX,Nbt,Gbt],encapsulation:2,changeDetection:0})}return t})(),RX=(()=>{class t{templates;index;get item(){return this._item}shouldRender(){return this.contentTemplate||this.galleria._itemTemplate||this.galleria.itemTemplate||this.galleria.captionTemplate||this.galleria.captionTemplate||this.galleria.captionFacet||this.galleria.thumbnailTemplate||this.galleria._thumbnailTemplate||this.galleria.footerTemplate}galleria=(0,n.WQX)(hP);set item(e){this._item=e,this.templates&&this.templates?.toArray().length>0?this.templates.forEach(i=>{if(i.getType()===this.type)switch(this.type){case"item":case"caption":case"thumbnail":case"footer":this.context={$implicit:this.item},this.contentTemplate=i.template}}):this.getContentTemplate()}getContentTemplate(){switch(this.type){case"item":default:this.context={$implicit:this.item},this.contentTemplate=this.galleria._itemTemplate||this.galleria.itemTemplate;break;case"caption":this.context={$implicit:this.item},this.contentTemplate=this.galleria.captionTemplate||this.galleria.captionFacet;break;case"thumbnail":this.context={$implicit:this.item},this.contentTemplate=this.galleria.thumbnailTemplate||this.galleria._thumbnailTemplate;break;case"indicator":this.context={$implicit:this.index},this.contentTemplate=this.galleria.indicatorTemplate||this.galleria.indicatorFacet;break;case"footer":this.context={$implicit:this.item},this.contentTemplate=this.galleria.footerTemplate||this.galleria.footerFacet}}type;contentTemplate;context;_item;ngAfterContentInit(){this.templates&&this.templates.toArray().length>0?this.templates?.forEach(e=>{if(e.getType()===this.type)switch(this.type){case"item":case"caption":case"thumbnail":case"footer":default:this.context={$implicit:this.item},this.contentTemplate=e.template;break;case"indicator":this.context={$implicit:this.index},this.contentTemplate=e.template}}):this.getContentTemplate()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=n.VBU({type:t,selectors:[["p-galleriaItemSlot"]],inputs:{templates:"templates",index:[2,"index","index",n.Udg],item:"item",type:"type"},standalone:!1,features:[n.GFd],decls:1,vars:1,consts:[[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,o){1&i&&n.DNE(0,nbt,2,2,"ng-container",0),2&i&&n.Y8G("ngIf",o.shouldRender())},dependencies:[fi,uo],encapsulation:2,changeDetection:0})}return t})(),Nbt=(()=>{class t{galleria;id;circular=!1;value;showItemNavigators=!1;showIndicators=!0;slideShowActive=!0;changeItemOnIndicatorHover=!0;autoPlay=!1;templates;indicatorFacet;captionFacet;startSlideShow=new n.bkB;stopSlideShow=new n.bkB;onActiveIndexChange=new n.bkB;get activeIndex(){return this._activeIndex}set activeIndex(e){this._activeIndex=e}get activeItem(){return this.value&&this.value[this._activeIndex]}_activeIndex=0;leftButtonFocused=!1;rightButtonFocused=!1;constructor(e){this.galleria=e}ngOnChanges({autoPlay:e}){e?.currentValue&&this.startSlideShow.emit(),e&&!1===e.currentValue&&this.stopTheSlideShow()}next(){this.onActiveIndexChange.emit(this.circular&&this.value.length-1===this.activeIndex?0:this.activeIndex+1)}prev(){this.onActiveIndexChange.emit(this.circular&&0===this.activeIndex?this.value.length-1:0!==this.activeIndex?this.activeIndex-1:0)}onButtonFocus(e){"left"===e?this.leftButtonFocused=!0:this.rightButtonFocused=!0}onButtonBlur(e){"left"===e?this.leftButtonFocused=!1:this.rightButtonFocused=!1}stopTheSlideShow(){this.slideShowActive&&this.stopSlideShow&&this.stopSlideShow.emit()}navForward(e){this.stopTheSlideShow(),this.next(),e&&e.cancelable&&e.preventDefault()}navBackward(e){this.stopTheSlideShow(),this.prev(),e&&e.cancelable&&e.preventDefault()}onIndicatorClick(e){this.stopTheSlideShow(),this.onActiveIndexChange.emit(e)}onIndicatorMouseEnter(e){this.changeItemOnIndicatorHover&&(this.stopTheSlideShow(),this.onActiveIndexChange.emit(e))}onIndicatorKeyDown(e,i){switch(e.code){case"Enter":case"Space":this.stopTheSlideShow(),this.onActiveIndexChange.emit(i),e.preventDefault();break;case"ArrowDown":case"ArrowUp":e.preventDefault()}}isNavForwardDisabled(){return!this.circular&&this.activeIndex===this.value.length-1}isNavBackwardDisabled(){return!this.circular&&0===this.activeIndex}isIndicatorItemActive(e){return this.activeIndex===e}ariaSlideLabel(){return this.galleria.config.translation.aria?this.galleria.config.translation.aria.slide:void 0}ariaSlideNumber(e){return this.galleria.config.translation.aria?this.galleria.config.translation.aria.slideNumber.replace(/{slideNumber}/g,e):void 0}ariaPageLabel(e){return this.galleria.config.translation.aria?this.galleria.config.translation.aria.pageLabel.replace(/{page}/g,e):void 0}static \u0275fac=function(i){return new(i||t)(n.rXU(hP))};static \u0275cmp=n.VBU({type:t,selectors:[["p-galleriaItem"]],hostAttrs:[1,"p-galleria-items-container"],inputs:{id:"id",circular:[2,"circular","circular",n.L39],value:"value",showItemNavigators:[2,"showItemNavigators","showItemNavigators",n.L39],showIndicators:[2,"showIndicators","showIndicators",n.L39],slideShowActive:[2,"slideShowActive","slideShowActive",n.L39],changeItemOnIndicatorHover:[2,"changeItemOnIndicatorHover","changeItemOnIndicatorHover",n.L39],autoPlay:[2,"autoPlay","autoPlay",n.L39],templates:"templates",indicatorFacet:"indicatorFacet",captionFacet:"captionFacet",activeIndex:"activeIndex"},outputs:{startSlideShow:"startSlideShow",stopSlideShow:"stopSlideShow",onActiveIndexChange:"onActiveIndexChange"},standalone:!1,features:[n.GFd,n.OA$],decls:7,vars:9,consts:[[1,"p-galleria-items"],["type","button","role","navigation",3,"ngClass","disabled","click","focus","blur",4,"ngIf"],["role","group",1,"p-galleria-item",3,"id"],["type","item",1,"p-galleria-item",3,"item","templates"],["class","p-galleria-caption",4,"ngIf"],["class","p-galleria-indicator-list",4,"ngIf"],["type","button","role","navigation",3,"click","focus","blur","ngClass","disabled"],[3,"styleClass",4,"ngIf"],[4,"ngTemplateOutlet"],[3,"styleClass"],[1,"p-galleria-caption"],["type","caption",3,"item","templates"],[1,"p-galleria-indicator-list"],["tabindex","0",3,"ngClass","click","mouseenter","keydown",4,"ngFor","ngForOf"],["tabindex","0",3,"click","mouseenter","keydown","ngClass"],["type","button","tabIndex","-1","class","p-galleria-indicator-button",4,"ngIf"],["type","indicator",3,"index","templates"],["type","button","tabIndex","-1",1,"p-galleria-indicator-button"]],template:function(i,o){1&i&&(n.j41(0,"div",0),n.DNE(1,cbt,3,6,"button",1),n.j41(2,"div",2),n.nrm(3,"p-galleriaItemSlot",3),n.k0s(),n.DNE(4,hbt,3,6,"button",1)(5,fbt,2,2,"div",4),n.k0s(),n.DNE(6,vbt,2,1,"ul",5)),2&i&&(n.R7$(),n.Y8G("ngIf",o.showItemNavigators),n.R7$(),n.Y8G("id",o.id+"_item_"+o.activeIndex),n.BMQ("aria-label",o.ariaSlideNumber(o.activeIndex+1))("aria-roledescription",o.ariaSlideLabel()),n.R7$(),n.Y8G("item",o.activeItem)("templates",o.templates),n.R7$(),n.Y8G("ngIf",o.showItemNavigators),n.R7$(),n.Y8G("ngIf",o.captionFacet||o.galleria.captionTemplate),n.R7$(),n.Y8G("ngIf",o.showIndicators))},dependencies:()=>[bi,oo,fi,uo,qw,jx,RX],encapsulation:2,changeDetection:0})}return t})(),Gbt=(()=>{class t{galleria;document;platformId;renderer;cd;containerId;value;isVertical=!1;slideShowActive=!1;circular=!1;responsiveOptions;contentHeight="300px";showThumbnailNavigators=!0;templates;onActiveIndexChange=new n.bkB;stopSlideShow=new n.bkB;itemsContainer;get numVisible(){return this._numVisible}set numVisible(e){this._numVisible=e,this._oldNumVisible=this.d_numVisible,this.d_numVisible=e}get activeIndex(){return this._activeIndex}set activeIndex(e){this._oldactiveIndex=this._activeIndex,this._activeIndex=e}index;startPos=null;thumbnailsStyle=null;sortedResponsiveOptions=null;totalShiftedItems=0;page=0;documentResizeListener;_numVisible=0;d_numVisible=0;_oldNumVisible=0;_activeIndex=0;_oldactiveIndex=0;constructor(e,i,o,s,a){this.galleria=e,this.document=i,this.platformId=o,this.renderer=s,this.cd=a}ngOnInit(){Gr(this.platformId)&&(this.createStyle(),this.responsiveOptions&&this.bindDocumentListeners())}ngAfterContentChecked(){let e=this.totalShiftedItems;(this._oldNumVisible!==this.d_numVisible||this._oldactiveIndex!==this._activeIndex)&&this.itemsContainer&&(e=this._activeIndex<=this.getMedianItemIndex()?0:this.value.length-this.d_numVisible+this.getMedianItemIndex()<this._activeIndex?this.d_numVisible-this.value.length:this.value.length-this.d_numVisible<this._activeIndex&&this.d_numVisible%2==0?-1*this._activeIndex+this.getMedianItemIndex()+1:-1*this._activeIndex+this.getMedianItemIndex(),e!==this.totalShiftedItems&&(this.totalShiftedItems=e),this.itemsContainer&&this.itemsContainer.nativeElement&&(this.itemsContainer.nativeElement.style.transform=this.isVertical?`translate3d(0, ${e*(100/this.d_numVisible)}%, 0)`:`translate3d(${e*(100/this.d_numVisible)}%, 0, 0)`),this._oldactiveIndex!==this._activeIndex&&(ru(this.itemsContainer.nativeElement,"p-items-hidden"),this.itemsContainer.nativeElement.style.transition="transform 500ms ease 0s"),this._oldactiveIndex=this._activeIndex,this._oldNumVisible=this.d_numVisible)}ngAfterViewInit(){Gr(this.platformId)&&this.calculatePosition()}createStyle(){this.thumbnailsStyle||(this.thumbnailsStyle=this.document.createElement("style"),this.document.body.appendChild(this.thumbnailsStyle));let e=`\n            #${this.containerId} .p-galleria-thumbnail-item {\n                flex: 1 0 ${100/this.d_numVisible}%\n            }\n        `;if(this.responsiveOptions){this.sortedResponsiveOptions=[...this.responsiveOptions],this.sortedResponsiveOptions.sort((i,o)=>{const s=i.breakpoint,a=o.breakpoint;let l=null;return l=null==s&&null!=a?-1:null!=s&&null==a?1:null==s&&null==a?0:"string"==typeof s&&"string"==typeof a?s.localeCompare(a,void 0,{numeric:!0}):s<a?-1:s>a?1:0,-1*l});for(let i=0;i<this.sortedResponsiveOptions.length;i++){let o=this.sortedResponsiveOptions[i];e+=`\n                    @media screen and (max-width: ${o.breakpoint}) {\n                        #${this.containerId} .p-galleria-thumbnail-item {\n                            flex: 1 0 ${100/o.numVisible}%\n                        }\n                    }\n                `}}this.thumbnailsStyle.innerHTML=e,ek(this.thumbnailsStyle,"nonce",this.galleria.config?.csp()?.nonce)}calculatePosition(){if(Gr(this.platformId)&&this.itemsContainer&&this.sortedResponsiveOptions){let e=window.innerWidth,i={numVisible:this._numVisible};for(let o=0;o<this.sortedResponsiveOptions.length;o++){let s=this.sortedResponsiveOptions[o];parseInt(s.breakpoint,10)>=e&&(i=s)}this.d_numVisible!==i.numVisible&&(this.d_numVisible=i.numVisible,this.cd.markForCheck())}}getTabIndex(e){return this.isItemActive(e)?0:null}navForward(e){this.stopTheSlideShow();let i=this._activeIndex+1;i+this.totalShiftedItems>this.getMedianItemIndex()&&(-1*this.totalShiftedItems<this.getTotalPageNumber()-1||this.circular)&&this.step(-1),this.onActiveIndexChange.emit(this.circular&&this.value.length-1===this._activeIndex?0:i),e.cancelable&&e.preventDefault()}navBackward(e){this.stopTheSlideShow();let i=0!==this._activeIndex?this._activeIndex-1:0;this.d_numVisible-(i+this.totalShiftedItems)-1>this.getMedianItemIndex()&&(-1*this.totalShiftedItems!=0||this.circular)&&this.step(1),this.onActiveIndexChange.emit(this.circular&&0===this._activeIndex?this.value.length-1:i),e.cancelable&&e.preventDefault()}onItemClick(e){this.stopTheSlideShow();let i=e;if(i!==this._activeIndex){const o=i+this.totalShiftedItems;let s=0;i<this._activeIndex?(s=this.d_numVisible-o-1-this.getMedianItemIndex(),s>0&&-1*this.totalShiftedItems!=0&&this.step(s)):(s=this.getMedianItemIndex()-o,s<0&&-1*this.totalShiftedItems<this.getTotalPageNumber()-1&&this.step(s)),this.activeIndex=i,this.onActiveIndexChange.emit(this.activeIndex)}}onThumbnailKeydown(e,i){switch(("Enter"===e.code||"Space"===e.code)&&(this.onItemClick(i),e.preventDefault()),e.code){case"ArrowRight":this.onRightKey();break;case"ArrowLeft":this.onLeftKey();break;case"Home":this.onHomeKey(),e.preventDefault();break;case"End":this.onEndKey(),e.preventDefault();break;case"ArrowUp":case"ArrowDown":e.preventDefault();break;case"Tab":this.onTabKey()}}onRightKey(){const e=$c(this.itemsContainer.nativeElement,'[data-pc-section="thumbnailitem"]'),i=this.findFocusedIndicatorIndex();this.changedFocusedIndicator(i,i+1===e.length?e.length-1:i+1)}onLeftKey(){const e=this.findFocusedIndicatorIndex();this.changedFocusedIndicator(e,e-1<=0?0:e-1)}onHomeKey(){const e=this.findFocusedIndicatorIndex();this.changedFocusedIndicator(e,0)}onEndKey(){const e=$c(this.itemsContainer.nativeElement,'[data-pc-section="thumbnailitem"]'),i=this.findFocusedIndicatorIndex();this.changedFocusedIndicator(i,e.length-1)}onTabKey(){const e=[...$c(this.itemsContainer.nativeElement,'[data-pc-section="thumbnailitem"]')],i=e.findIndex(a=>!0===Xf(a,"data-p-active")),o=xo(this.itemsContainer.nativeElement,'[tabindex="0"]'),s=e.findIndex(a=>a===o.parentElement);e[s].children[0].tabIndex="-1",e[i].children[0].tabIndex="0"}findFocusedIndicatorIndex(){const e=[...$c(this.itemsContainer.nativeElement,'[data-pc-section="thumbnailitem"]')],i=xo(this.itemsContainer.nativeElement,'[data-pc-section="thumbnailitem"] > [tabindex="0"]');return e.findIndex(o=>o===i.parentElement)}changedFocusedIndicator(e,i){const o=$c(this.itemsContainer.nativeElement,'[data-pc-section="thumbnailitem"]');o[e].children[0].tabIndex="-1",o[i].children[0].tabIndex="0",o[i].children[0].focus()}step(e){let i=this.totalShiftedItems+e;e<0&&-1*i+this.d_numVisible>this.value.length-1?i=this.d_numVisible-this.value.length:e>0&&i>0&&(i=0),this.circular&&(e<0&&this.value.length-1===this._activeIndex?i=0:e>0&&0===this._activeIndex&&(i=this.d_numVisible-this.value.length)),this.itemsContainer&&(ru(this.itemsContainer.nativeElement,"p-items-hidden"),this.itemsContainer.nativeElement.style.transform=this.isVertical?`translate3d(0, ${i*(100/this.d_numVisible)}%, 0)`:`translate3d(${i*(100/this.d_numVisible)}%, 0, 0)`,this.itemsContainer.nativeElement.style.transition="transform 500ms ease 0s"),this.totalShiftedItems=i}stopTheSlideShow(){this.slideShowActive&&this.stopSlideShow&&this.stopSlideShow.emit()}changePageOnTouch(e,i){i<0?this.navForward(e):this.navBackward(e)}getTotalPageNumber(){return this.value.length>this.d_numVisible?this.value.length-this.d_numVisible+1:0}getMedianItemIndex(){let e=Math.floor(this.d_numVisible/2);return this.d_numVisible%2?e:e-1}onTransitionEnd(){this.itemsContainer&&this.itemsContainer.nativeElement&&(Nc(this.itemsContainer.nativeElement,"p-items-hidden"),this.itemsContainer.nativeElement.style.transition="")}onTouchEnd(e){let i=e.changedTouches[0];this.changePageOnTouch(e,this.isVertical?i.pageY-this.startPos.y:i.pageX-this.startPos.x)}onTouchMove(e){e.cancelable&&e.preventDefault()}onTouchStart(e){let i=e.changedTouches[0];this.startPos={x:i.pageX,y:i.pageY}}isNavBackwardDisabled(){return!this.circular&&0===this._activeIndex||this.value.length<=this.d_numVisible}isNavForwardDisabled(){return!this.circular&&this._activeIndex===this.value.length-1||this.value.length<=this.d_numVisible}firstItemAciveIndex(){return-1*this.totalShiftedItems}lastItemActiveIndex(){return this.firstItemAciveIndex()+this.d_numVisible-1}isItemActive(e){return this.firstItemAciveIndex()<=e&&this.lastItemActiveIndex()>=e}bindDocumentListeners(){Gr(this.platformId)&&(this.documentResizeListener=this.renderer.listen(this.document.defaultView||"window","resize",()=>{this.calculatePosition()}))}unbindDocumentListeners(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}ngOnDestroy(){this.responsiveOptions&&this.unbindDocumentListeners(),this.thumbnailsStyle&&this.thumbnailsStyle.parentNode?.removeChild(this.thumbnailsStyle)}ariaPrevButtonLabel(){return this.galleria.config.translation.aria?this.galleria.config.translation.aria.prevPageLabel:void 0}ariaNextButtonLabel(){return this.galleria.config.translation.aria?this.galleria.config.translation.aria.nextPageLabel:void 0}ariaPageLabel(e){return this.galleria.config.translation.aria?this.galleria.config.translation.aria.pageLabel.replace(/{page}/g,e):void 0}static \u0275fac=function(i){return new(i||t)(n.rXU(hP),n.rXU(be),n.rXU(n.Agw),n.rXU(n.sFG),n.rXU(n.gRc))};static \u0275cmp=n.VBU({type:t,selectors:[["p-galleriaThumbnails"]],viewQuery:function(i,o){if(1&i&&n.GBs(_bt,5),2&i){let s;n.mGM(s=n.lsd())&&(o.itemsContainer=s.first)}},inputs:{containerId:"containerId",value:"value",isVertical:[2,"isVertical","isVertical",n.L39],slideShowActive:[2,"slideShowActive","slideShowActive",n.L39],circular:[2,"circular","circular",n.L39],responsiveOptions:"responsiveOptions",contentHeight:"contentHeight",showThumbnailNavigators:"showThumbnailNavigators",templates:"templates",numVisible:"numVisible",activeIndex:"activeIndex"},outputs:{onActiveIndexChange:"onActiveIndexChange",stopSlideShow:"stopSlideShow"},standalone:!1,features:[n.GFd],decls:8,vars:6,consts:[["itemsContainer",""],[1,"p-galleria-thumbnails"],[1,"p-galleria-thumbnails-content"],["type","button","pRipple","",3,"ngClass","disabled","click",4,"ngIf"],[1,"p-galleria-thumbnails-viewport",3,"ngStyle"],["role","tablist",1,"p-galleria-thumbnail-items",3,"transitionend","touchstart","touchmove"],[3,"ngClass","keydown",4,"ngFor","ngForOf"],["type","button","pRipple","",3,"click","ngClass","disabled"],[4,"ngIf"],[4,"ngTemplateOutlet"],[3,"styleClass",4,"ngIf"],[3,"styleClass"],[3,"keydown","ngClass"],[1,"p-galleria-thumbnail",3,"click","touchend","keydown.enter"],["type","thumbnail",3,"item","templates"],[3,"ngClass",4,"ngIf"],[3,"ngClass"]],template:function(i,o){if(1&i){const s=n.RV6();n.j41(0,"div",1)(1,"div",2),n.DNE(2,kbt,3,7,"button",3),n.j41(3,"div",4)(4,"div",5,0),n.bIt("transitionend",function(){return n.eBV(s),n.Njj(o.onTransitionEnd())})("touchstart",function(l){return n.eBV(s),n.Njj(o.onTouchStart(l))})("touchmove",function(l){return n.eBV(s),n.Njj(o.onTouchMove(l))}),n.DNE(6,Ibt,3,15,"div",6),n.k0s()(),n.DNE(7,Pbt,3,7,"button",3),n.k0s()()}2&i&&(n.R7$(2),n.Y8G("ngIf",o.showThumbnailNavigators),n.R7$(),n.Y8G("ngStyle",n.eq3(4,ybt,o.isVertical?o.contentHeight:"")),n.R7$(3),n.Y8G("ngForOf",o.value),n.R7$(),n.Y8G("ngIf",o.showThumbnailNavigators))},dependencies:()=>[bi,oo,fi,uo,Jr,Mh,qw,i7,Y_,jx,RX],encapsulation:2,changeDetection:0})}return t})(),Spe=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({imports:[gn,Di,pf,qw,i7,Y_,jx,Ate,Mte,gn,Di]})}return t})();const Bbt=()=>({width:"60vw",height:"90vh"}),Vbt=()=>({"1300px":"75vw","640px":"90vw"});function jbt(t,r){1&t&&n.nrm(0,"img",4),2&t&&n.Y8G("src",r.$implicit,n.B4B)}function Hbt(t,r){1&t&&n.nrm(0,"img",5),2&t&&n.Y8G("src",r.$implicit,n.B4B)}let xpe=(()=>{class t{constructor(){this.isVisible=n.geq.required(),this.imageUrls=n.hFB.required(),this.responsiveOptions=[{breakpoint:"1300px",numVisible:4},{breakpoint:"1024px",numVisible:3},{breakpoint:"768px",numVisible:2},{breakpoint:"640px",numVisible:1}]}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-item-image-gallery"]],inputs:{isVisible:[1,"isVisible"],imageUrls:[1,"imageUrls"]},outputs:{isVisible:"isVisibleChange"},decls:6,vars:13,consts:[["item",""],["thumbnail",""],["appendTo","body",3,"visibleChange","modal","visible","breakpoints"],[3,"value","responsiveOptions","showItemNavigators","showThumbnails","circular","numVisible"],[1,"tw-block","tw-w-full","tw-object-contain",2,"max-height","60vh",3,"src"],[1,"tw-block","tw-max-h-[200px]","tw-w-full","tw-object-contain",3,"src"]],template:function(i,o){if(1&i){const s=n.RV6();n.j41(0,"p-dialog",2),n.mxI("visibleChange",function(l){return n.eBV(s),n.DH7(o.isVisible,l)||(o.isVisible=l),n.Njj(l)}),n.j41(1,"p-galleria",3),n.DNE(2,jbt,1,1,"ng-template",null,0,n.C5r)(4,Hbt,1,1,"ng-template",null,1,n.C5r),n.k0s()()}2&i&&(n.Aen(n.lJ4(11,Bbt)),n.Y8G("modal",!0),n.R50("visible",o.isVisible),n.Y8G("breakpoints",n.lJ4(12,Vbt)),n.R7$(),n.Y8G("value",o.imageUrls())("responsiveOptions",o.responsiveOptions)("showItemNavigators",!0)("showThumbnails",o.imageUrls().length>1)("circular",!0)("numVisible",5))},dependencies:[vg,gf,Spe,hP],encapsulation:2})}}return t})();function Ubt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",8)(1,"img",9),n.bIt("error",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.handleImageError(o))})("click",function(){const o=n.eBV(e).$implicit,s=n.XpG(2);return n.Njj(s.highlightExistingImage(o))}),n.k0s()()}if(2&t){const e=r.$implicit,i=n.XpG(2);n.R7$(),n.Y8G("src",e,n.B4B)("hidden",i.imageError())}}function $bt(t,r){if(1&t&&(n.j41(0,"div",1),n.Z7z(1,Ubt,2,2,"div",8,n.Vm6),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.Dyx(e.imageUrls())}}function Ybt(t,r){if(1&t){const e=n.RV6();n.j41(0,"i",10),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.removeHighlightImage())}),n.k0s()}}function Wbt(t,r){if(1&t&&(n.j41(0,"div",5),n.nrm(1,"img",11),n.j41(2,"div",12),n.EFF(3," (Shared or Stock Image) "),n.k0s()()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("src",e.highlightUrl(),n.B4B)}}function zbt(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",14),n.bIt("click",function(){n.eBV(e);const o=n.XpG(3);return n.Njj(o.showGallery.set(!0))}),n.nrm(1,"img",11),n.k0s()}if(2&t){const e=n.XpG(3);n.R7$(),n.Y8G("src",e.highlightUrl(),n.B4B)}}function qbt(t,r){if(1&t&&n.nrm(0,"img",11),2&t){const e=n.XpG(3);n.Y8G("src",e.highlightUrl(),n.B4B)}}function Xbt(t,r){if(1&t&&n.DNE(0,zbt,2,1,"button",13)(1,qbt,1,1,"img",11),2&t){const e=n.XpG(2);n.vxM(e.allowGallery()?0:1)}}function Kbt(t,r){if(1&t&&n.DNE(0,Wbt,4,1,"div",5)(1,Xbt,2,1),2&t){const e=n.XpG();n.vxM(e.showStockOverlay()?0:1)}}function Qbt(t,r){if(1&t&&n.nrm(0,"img",15)(1,"div",16),2&t){const e=n.XpG(2);n.Y8G("hidden",e.highlightVisible())("src",e.placeholderImage(),n.B4B)}}function Jbt(t,r){if(1&t&&n.nrm(0,"img",15)(1,"div",17),2&t){const e=n.XpG(2);n.Y8G("hidden",e.highlightVisible())("src",e.placeholderImage(),n.B4B)}}function Zbt(t,r){if(1&t&&(n.j41(0,"div",5),n.DNE(1,Qbt,2,2)(2,Jbt,2,2),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.vxM(e.placeholderImageUrl()?1:2)}}function eCt(t,r){if(1&t){const e=n.RV6();n.j41(0,"p-fileupload",18),n.bIt("onUpload",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onBasicUploadAuto(o))}),n.k0s()}if(2&t){const e=n.XpG();n.Y8G("url",e.uploadUrl())("auto",!0)}}function tCt(t,r){if(1&t){const e=n.RV6();n.j41(0,"app-item-image-gallery",19),n.mxI("isVisibleChange",function(o){n.eBV(e);const s=n.XpG();return n.DH7(s.showGallery,o)||(s.showGallery=o),n.Njj(o)}),n.k0s()}if(2&t){const e=n.XpG();n.R50("isVisible",e.showGallery),n.Y8G("imageUrls",e.imageUrls())}}let A2=(()=>{class t{constructor(){this.environment=(0,n.WQX)(s0),this.uploadUrl=(0,n.vPA)(""),this.imageUrls=(0,n.geq)([]),this.imgSrc=(0,n.hFB)(null),this.showStockOverlay=(0,n.hFB)(!1),this.singleImageMode=(0,n.EWP)(()=>{const e=this.imgSrc();return!!(e&&e.length>0||0===this.imageUrls().length)}),this.allowUpload=(0,n.hFB)(!1),this.allowGallery=(0,n.hFB)(!1),this.showGallery=(0,n.vPA)(!1),this.imageError=(0,n.vPA)(!1),this.onImagesChanged=(0,n.CGW)(),this.highlightUrl=(0,n.vPA)(""),this.highlightVisible=(0,n.vPA)(!1),this.placeholderImage=(0,n.EWP)(()=>this.placeholderImageUrl()&&""!=this.placeholderImageUrl()?this.placeholderImageUrl():this.placeholderImageSrc),this.placeholderImageUrl=(0,n.hFB)(null),this.placeholderImageSrc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA4MAAARTCAYAAADRDvZbAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAJWaSURBVHgB7N0JnFx1me//p6p6TTpJZ19ISCVhiSIkio4KKgXjeHEGIXpHBxdIy9y/V8c7gMxFHGcGGv4vF5yRzRn1PwskCuMOCaIw4kBHBRwF6QCOIFkqQMgC6VSn9+5a/uep6iKdppf6nTrn1Fk+79fr0FmqIKS3+p7n+T2PCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKBiAgAAAADuaR29xsqMXqghwiAAAAAAJyStK2Vd661r5ejbiYLgWOnRa7t17R592yEAAAAAAF9LWddNUgpyBYeuw9Z1l3VtlFLABAAAAAD4QNK6rpFSaCt4cGkw3CAAAAAAgJpIWdeD4k0AnOjaJaVqIQAAAADAA6uktiGQUAgAAAAAHtLBLzeKf0LgRKEwKQAAAAAAx5wtzg6FcevKS+n8IgAAAACgSu3i/xA4/vqNUCUEAAAAAFvmir/OBppe2ja6XgAAAAAAFdMhMbslWOFvokvbRjcKAAAAAGBaYQmCYwPhNQIAAAAAmJRXQXD3uMuLQLhRMKWYAAAAAIgiPSPoxuCVDuvanlgxv3PG/zw9M/N/rNMVFRJLyBx9W8hJt5XV0oNPvSCZK7+jv7ROSgvt1zv8Z9FQ+FHr2iyYEGEQAAAAiB7NAQ9IKYQ5oSO+aPa2+df/2eH6pa3rC7FYKiaFZCVPLMSs8JiX7YVCfsv+d39Zf6lNnKvqHbauc6yrU/AqhEEAAAAgetrFmXN1HS0fOWPbrIvPPCtWcCRYpq2E0nFk88Obe+94KCWlUJiU6mhb6husKyM4BmEQAAAAiJb3WtedUp1OKwRudTAEvlpMNo2GwjapvlJ4l3W9T3AMwiAAAAAQHUkp7RJMik11qxdtWfj1ja2uhcBjHS4UYtftO/dL260f3yr2/9x6fvAK67pJ8ArCIAAAABAN+tr/NrFfZcu0XvY/tsz4k1M3SCHWKt56/Mg3Hr7CqhJqa2tK7NHzg6uFdtFXEAYBAACAaNA1ErvEnvSir7d11q1auEFqZ/dIIf++l879cpv148vEHg3DlwiKCIMAAABA+Onrfg2CSTEVk/TCf/7zdP3x81JSe4V8QT66/9y/12BrZwCOtovqdNEOgcQFAAAAQNi1SfCDoIrFY3Lbkvuu1AmhdvYHaii+WlCUEAAAAABhpgFIp4can/Nb8PcXdjactCQl/hKLxeSsxGkr/nrw/t/qovolYiZpXdtE11hEHGEQAAAACLePio2hMbM+cqbMeNfrkuJPzfVL5pxVyMc+Ofzk8xdYP28yeK6GY20X3SoRx5lBAAAAILxsnRVMLJkjizd/TPzOSnQd+/7H399t/fAGMcNkUeHMIAAAABBmOnUzafIEjY8LvvRnEgTWH/Wspfd+Wqt8HWJGW2bbJOIIgwAAAEA46cRN4xUMM975OkksniMBEYvFClcn1iy6RcxoxfR8iTjCIAAAABBOek4wafIEjUizLjpDAiUmcxf/00XrxLw6mBIbQ3XChDAIAAAAhI+tPXwzN5wepKrgGPFLbVQHVZtEGGEQAAAACBdtgTQOgjo0puW9p0sgHa0OmgyE0b+n0yTCCIMAAABAuCTFxiqJgJ0VfJVCLH6W9eZmMZOSCCMMAgAAAOFhuyoYuLOC4+hk0aa3nbhHzCQlwucGCYMAAABAeCTF1oL5YAfBsrl/c76WNk13B66XiCIMAgAAAOGgVcFbxZBWBWf80eskBGIxiaest51iJikRRRgEAAAAwiElNs7AhaUqWBQv6BCZ7QbP0ACdlIiqEwAAACCaklJqEWyViQPBYevSM2jadtgp5u2HXop6VXBULBlfNDuTP3jE5EnHS0QRBgEAABAVKevaYF1aPSqHQBMaCNPWtcW6to3+2C/axMaC+dYr3i1hU7d4tgybhcHIIgwCAAAgzFJSGqiiIbDaqZHrR68Noz/XcLjJurZKbYOhVgWvFkMNp62QxnUrJGzqT1jcOvzkCyZPSUpEcWYQAAAAYaOh7zLr2m1dD0qpaubG+gANhjeN/nduk9rtrGsTG1XBuX8Vvqqgii2cLagMYRAAAABhUg6BGtKS4p02KQXPBzz+79qqCgZ9wfyU+gb9fLbTVwiDAAAACIOz5WgIrOUS8fKfQyuFSXHfNWKjKhj0BfNTyXf1rRQzaYkowiAAAACCTIPfjeJ9RW46bVL6MxkvgDewys6/P9RVQUu+dygpqAhhEAAAAEH1eut63LouF3/SsLbJum4Q52l76KViIwCHuSooBZGhJ54TQ8ZPCAvCIAAAAIKoTfxXDZzMp6zrN+LsnzUpNkLwrI+cGeqqoCVT6B4webwVH4s3FCKJMAgAAICgaZfSmbxang00pVVMp8KrVgWvEUPFBfPvOkXCLHekPy3mU127JaIIgwAAAAiSdrERhHxC20adCIRJsXFWsGXD6WGvCspw53N2Jol2SkQRBgEAABAU7RLcIFhWbSC0XRWc+d7TJez6f/JUUsxoEIzsKoo6AQAAAPxPz8e5EQTTUgoEe+TVoUBXFCSltFzeyZbUciB8g5gHkaTYqArO+kiIh8aMKhQK6aFHdxs+K7pVQUUYBAAAgN9peLpRnKHhqzO+rHXL/Gv+Z6b++LmrJBZbWYjLOinEkvqAmBQyhZhkYnlJW7++pZDLX7v/3V/W30pJKYglpXr6/3SndZ1j8BytCt4qhopnBf/odRJ2/XfrjB6j940Oj9kqERYTAAAAwL+cOmeXiS+YtXnBlz+YSSydc1asYDhkJFbISCHeUcjK5n1/8iUNlG1S/Q5BDSNXWNdNFT7+o2IjDLb+33eHPwxaf5MHNv6z5A4YzYLRv/95EuE2UcIgAAAA/Epfq+rU0KpClxUCb15480cksXDmRqv650S75+6YxK7d+z++9DOpPqhqINF20enaFfXvYpfpf0urgos3f0zCrv8nT0nmy/eKoQfFrDIbOoRBAAAA+JWtStgYnfOufe/2preuucChEDjebonFP/Xiu65fLdUtltc9d2+Y5jHmfxfWK/35118ojetWSKjZrwrq3+lmiTCmiQIAAMCPtGhxtdhUt3JBx+Lv/R9pessJG10KgmqVFPJblt7/6eOtH2sgTIs9OqBmqgXytv4uZrzzdeEPgpb++58yDYIqLREPgoowCAAAAD/SyaFJsaHx9OTWRf/80WRidvN68UAsX7h82X9c+YOWD515idgLhOWwN1lobRPTvwvr3zjromhMEO25/WGxoUMgCQEAAAD8pTw91Liip0Fw/hf+9CwrDS0Rby1tXL/iHYV87M+Hn3ze+u8b/9mbravRuv5j3K/Pta5/N/336cCYGe8K/wTR3jsebh18eIcY0hbR90mEB8eUURkEAACA32wQG1XBxnXHbysGQffaQqezavbGM/5ttEJoJ2hoq2hy3K9dJlQFJ5Td3y0933w4LeY2if2W3lAhDAIAAMBPtGXyUjGkUzPnf+nPVtYwCJatmrXxDG35fJ+YG79HUCukxpNU9axgYvEcCbvR9tCkmNGq4HWCIsIgAAAA/KRNbFTC5n/xAxmxecbQadYfJ7X0J1eeb/3wZjGXGr00GJqfm4xQVXDg/qfEBg2CaUERYRAAAAB+oQHoYjE068NnSt3S1lpXBI8RK8hl82/+8DYxbxctD5NJio2qoP5dRKgqaGq3lFpEMYowCAAAAL9ISqkqVjFtD/VpJSzWsHaZtrteIebOltIyeyP6dzHjXadI2NmsCmp76LVCVfAYhEEAAAD4RUoMzfqIf1sirRLfWcfdd2Ve7K0xSIoh/buIQlXwyL9uszOcJy3sFXwVwiAAAAD8QNsjzzJ5QnxWozSe5uul6jGrHHVjYs2iW8RlxargH4V/lcTws/sygz9/xrQluFwVxDiEQQAAAPiFURhsesuJ/q+ExWTu4n+6aJ24vOTczxVSx1iR7vDnf0RV0EGEQQAAAPhBUkxaI606YnNgKmHxS1s+dKZr6wyiUhXsv/8pyb14OClmqApOgTAIAAAAP0iaPDje0iiN63zdInqUVR2cvfEMnZJqZ9XEtKJSFbQ5QbRTqApOijAIAAAAP1hv8uC61YskYDbaXDUxpfoTFkWnKnigWwxpVdDONNfIIAwCAACg1nR4zEqTJ9QHLwyWV004Vx20/tZmf+wcCT37VcFN4vJZzaAjDAIAAMAP1pk82OdTRCekqyaW/OgKrQ6mxQEz3vm64LTKVqHv7sfSNquCrp3TDAvCIAAAAILFSlWxmU0SQLF4XfzfrLeXSLWsv4NZF4X/rKAumO/9wWNJMbdJWDA/LcIgAAAA/MBod5wOkAmm2Kpl9/2VrtDokCpoVTAKC+YHfmr7rCBVwQoQBgEAAOAHhmEwkJXBUfFLq1pEH6GqYM83H06LuU1CVbAihEEAAADASzGZu+hrG98hNlceRKUqODo0JilmdgtVwYoRBgEAAACPxQpyWcuHztQwaLRqQhfMR6UqOHD/U2LDN4SqYMUIgwAAAPADo1CU7x2UgIvN2njG1WK4aiJiVUFTWhXcJKgYYRAAAAB+kK74kQWRkZ0HJeh01cT8mz+8XSoMwloVnPm+N0jY2awK6tCYa4WqoBHCIAAAAPzAaGRkoS/wlUFVXkR/RSUPnvWRMyQezJUaRrq/cn9azKXF5hnMKCMMAgAAoNa0qpM2ecLIzpckDLQ6eNx9V+ZlmlUTWhWc8Uevk7Ab+k06M/To7qSYKVcFYYgwCAAAAD/YY/LgwV8+KyERs5LMjdOtmtCqYOhZfxGZm+8XG9JCVdAWwiAAAAD8oMPkwfneoVCcGyyKydzF/3TROpnk7yAqVcH++5+S3P6M0b5JoSpYFcIgAAAA/CAtJhNFrQgw+HBoqoOii+hbPnTmhPvxolIVtDlBtEOoCtpGGAQAAIBfdJg8ePCRHRIaVnVw9sYzLpZxqyYa1q2ITlXwgNEMIaVVwYqG72BihEEAAAD4gb6w/5nJE0Z2HZSh7c9LiGycf/OHt0m5QhoTmfO/z5HQs18V3GRdnQLbCIMAAADwiy1Gj9YQccdDEiLlVRPF6qAumK9fs0jCru/ux9I2q4LXCapCGETUJa0rZV1tY64No79meoAZAABUJy2GraLDTzwfquqgrppY8qMrtlk/SM+6KPxnBXXBfO8PHkuKuU3CgvmqxQSIFg14G6UU9lIyfeBLS+mb0lYxvVsJAADsaLeua0yeoOfqFnzpQgmRdO6Fw7ckls+9QUIu89X/TPdv/U1SzGhVcLUQBqtGGERUpKRU9btA7Ff80lIKhtcKX3wAAHDLXOvqMnqG9Yp2/vUXSqMVChEcWhU8uPGfxYbbrOsSQdVoE0XYafDbZF0PSqkiWE3rZ1JKgXK3GN6xBAAAFdPhKcZnBzM33CsIFptDY/R1GGcFHUIYRJjp2T/9grFRnNc++u9OCgAAcJK2AN4ihnJWlanvrkcFwaBVwYH7nxIbviF0aDmGMIiw0srdXeLuEJiklALh5QIAAJzUIYaDZFTPHQ9Lvm9Q4H9VVAXbBY5JCBA+2kfuZUA7d/TtNgEAAE55Tgy7ewrDOYnV10njuuMF/qVVwe4vG7f1asX4U9a1XeAYwiDC5kbr+rh4L2VduiDnlwIAAJywR0pdOOtNnpTdfVBm/Mk6iTXUCXzIinRdn7s7k9vf3SRm0sLQGMfRJoow0dbQWrZsahBNCQAAcEK5EpQxeVK+Z0j67nxM4E+Dv96VHn58j+kxHv1YuFbgOMIgwiIl/ugh13OKSQEAAE44bF03i6G+rY9xdtCPrEjX/Y8/TYq5tHVtFjiOMIiwuE38Qe90+eXPAgBAGGgYpDoYAv33PyW5A92Gz6Iq6CbCIMJA20OT4h8poV0UAACnUB0Mg4LtCaIdQlXQNTEBgi0ppYXySbEp3jRTZiTXSaKppfjzkcwB6U9XPaiqw7rOFgAA4IS51rVLDFdGzfrIGTLrojMFtdf/k6ckYz5BVGVk4spwevStvmjbPfq2UwyryFFHGETQtYnNtkwNgAtTHym+nUh350/kpY5vFsOhTRoGOwQAADihXUrdQBWLz2qURZs/JvGZpoMr4axC5sDF/9Jqo0XUjs7RS6uJHYIpsVoCQWdrsfzicz8hS8+7VOpbl0z6mKYla2TeW94n+cFeGXjhabFBv+LdJwAAwAla+fnf1lVxsmPvoD/03P5w0+DDO8Qj+uJO15G0jV76Y/3YoWI4Ac4MIsj0kzsphpZt+L9WyHtvxY/X4LgwdZHYYLQoFwAATMnW2cH+n/5WUDu6YL7/JzV7HySlFAi1jVSPFaUExyAMIshSYmiBFermrH+XmNLnTdZOOgWtWKYEAAA4xXiyaM4KI4MPPSuojd47H0171B46nZSUAuGdwhqwVxAGEWRnmTy4vnWx3QpfkVYUbVgvAADAKbaqg71bWTNRC8Wq4NbfJMVftD1MhxEZnT8NK8Iggixp8mA9/1cNDZM2qoPGTwAAAFMyrg4OP/G8DG1/XuAtm6skvKBDNNulFAqTEmGEQQSZUdVtZvI0qdastW8VQ0kBAABOMq8O6o67Ox4SeEerggP3PyU+t0pKgfByiSjCICKjcckaqdZM88pgUgAAgNNsVQdZQu8dH1cFx9Mq4Q0S0bZRwiCCKmnyYG3xdEJ8dDE9AACoKVvVwb47OTvohezernQAqoJjldtGb5WIIQwiqIzuBlaxOL5axjsQAQBARYwHyfRtfYzqoNus0N31hXuC+vrnoxKxQEgYRFDVZHGojQojYRAAAHfoa4EOkyfke4Zk4CeBqlgFzsDPnslknz0Q5Nc/kQqEdQIEl34TqPiLjVYHnWoXNaR/xpqEVwAAQsyqQcl1YrjTd+CRHTLzvW8UuKIw8PPff2qK309P9ItNbz8xOf7X6lbOn/CxKn+ot7X/3qf0tZU+TwcK6lCHlDinzbr2WNe1EnIxAYJrtxicHTzh8m86EgZ33HSRadupTqpKCwAAcJq+ln1ATIKA9Yz5118ojetWCJxXkFg6Fsu3SiHmRXWwU/S/J7Klr+OZ7ZkvbNVguFGcCYZ6s0H3km2REKNNFJGRH+wVAAAQKvqC/W7TZww+8qzAHTEpJD0KgsoKf4UNBSlsmpE66fGlP7ly43H/8elNUroRv1mqozcatF00KSFGGESQpU0enHMoDNqYKJoUAADglk1ieBxj4KdPMUgmhGIFSWkwXPYfVz5ghcIHrV96g1TXnTVXQn5+kDCIIDP6wu9UGEywXgIAAD8xXjOR7x2SkR0vCUJr1Wgo/MGSez59tlR39i8lIV5KTxhEkHWbPDg32CdOsHHuMCkAAMBNW40eXRDpueMhQeititcXdi2979NaQLhC7NF20aslpBPiCYOIjLxDYRAAAPhOpxiumRh+4nlaRaMhFosVblj2k0/Ptn58idij7aKhrA4SBhFkaZMHO9cmOlMMJQUAALjJ1iAZdg5GRkwKhfZlP7nyHWI/EF4qIawOEgYRGU5VBuOcGQQAwI82iekgmUd2CCKkIButCuHxYq9lNJTVQcIggixt8uAaVgZXCgAAcJsGQaN1ArSKRo5WCK9Zeu+ntZJsZ3/gpRIyhEHAEJVBAAB8SV/gGw+SoVU0cmKxeOHq1s+cf50YVpKl1CaakhAhDCLIjD6BRzL7pUbmCgAA8EKH0CqK6c1tPvvkG6y315k9rThZ9GIJEcIggsz0bo4jGsxXS8wRAADgFVpFMS0r1Z219J4rd4v5UvoNEqJBMoRBBJlhZfCA1Ego99IAAOBDtlpFBx+iOhhBsVh94UYxvHkgpdd16yUkCIMIsppUButbl4ghwiAAAN7pEMPXCFodRBTFVs6/+cPbxezjRVtFL5CQIAwiyIy+0LN0HgCAyDCq9gz+8llBJMUa1i7TCaFm1WSRdRIShEEEmVEYdGq1RL35mcGkAAAArxi3iuZ7h2RoO9XBKIoVZF18aet2w6fRJgr4BNVBAAAwXoeYvEYoaKvoc4IIiknr7E++s2D4rFYJyTEgwiCCjuogAACYSIfJg4eepDIYUbHm05NJMZ9FkZQQIAwCAAAgbLTS8zOTJ2R3HWTFRETFJJYU8xUTKyUECIMIurTJg51aPB9vahFDTBQFAMBbW0werOcGR3a8JIigeEEHwpieG5wrIUAYRKQ41SaaIAwCAOB3aTG5aVzQ6mDNdhKjpmJJiag6AYJtj8mDcw4NkEk0zRRDSQEA+5JSuqlUfjtHSnely21K44cZJCf596TH/Twz5vn6e3vk6AvozJi3QFBtE4PvwUNPPC8z3/tGAaKCMAjYYKNNFACmUg5660evOaNvy7/ulKSYGxsKtY1q9+hb/XmnAP6l5wY1DG6s9Akju2gTRbQQBhF0RnesRzI1a/+4QEpTzdICIOqS1pWSUthbJ0dDn1/pn628Uys1we9rIExL6WvcNiEgwl86TB6cO9BdHCITn9kkiJDSYok5EkGEQQRdTdqXbKyW2DB6bbKua4VQCESFBqnU6BWE4GdHuZq5YfTnj1vXzda1WYDaS0vptUJln3e6b3D789J0xomCSKn8Y+SotIQAA2QQZPpJu87kCTWsDJa1WdeD1nWNcI4QCKNy+LtJSqHosHXdZV2Xjf56FIZJvV5KN752ydGKIlBLRtVqrQ4iWgqxgn6MRPLrFWEQQZWS0gutDVIDNiqDYyWtq11KobDicwwAfCsppbCnn9O7R9/qz6MehFZZ12+kdPMLqCWjlQEjOzk3GDUjT+0dP4SrEqFoiScMImj0E/VGKb3YSoqhvEOrJRySlNLdc33xSCgEgiUppZBTDoBaCUwJa2TGi0np74lAiFrR02BmYXDXQUG0DD6+x/TYUUZCMmmZMIgg0bvs+sLrcrGphnsGp5IUQiEQBBr0xgbAdpl4oAqORSBErRlVcPJ9Q4IIsW4XDHY8HcmqoCIMIijKLVi+aLuakTxNXJAUQiHgRykpff3R83/tQgC0oxwIUwJ4L23y4PJEUURDdn8mk32hy/T15TYJCcIg/C4ppRdh2oJVdftVfesScYJWBmee+AdpcUdSSqFQ/79TAqAWylVADYB8LjpDA+GtQistvGfc0lfoHRZEQ/9Pf2ta5SvvrwwFwiD8TKuBOiQmJQ5Z8I4PpsUhx73vM61z1r9LXJSS0ovQ24TJo4BXUnK0Qt8uBBen6VAZ263+QBXSJg/O7meiaBQUCoV035bHTKuCemOhQ0KCMAg/0hdfOordkWqgijfNlBUXtkvDvOOS4pBEc0vrsg3/V064/JsyI2m04cJUm5RemBIKAfekpHTzpTzllxDonksF8F664kcWWC8RFb13PJws9A6Zfr3fIiHC0nn4TUocDj0a1DS0VbkOYlL6713Z9vfS8/TDcuC+r7m5y7Bt9NokLK4HnJKSAJxli81qksSsZql/zVKJW2+L1+wmqVs2t/T7s5ut328q/jhx3NxJ/z35ngEpHDl6Fiq793Dp7YuHX/l5+ddy+uPRX3dYeRdjhwDeId3hGFr97b3zMTGkLaKEQcAF5fM5jrUPaTVwYepimfeW94oXZq09o3h1d/5EXur4phehUCunNwuhELBDF6PfID4KgRrsNOzVLZsndce1WqFunjSsXfpK8HPGsUGxcYpHFrI5ye3LSPbAkWKVJGe9cNK3uoMte7Bbsjttj9/Xs4MXCGEQ3jI6M0hlMOSsSHfk6w9KwXxybNq67pYQIQzCD7RXW9tCk+KQpiVrZPmF7a5VA6ei5wj18iAUanDeIKVKoYbCUOy7AVzm+I0nOzT4Nf7B6mLYq1+7zHq7zMHA54zCkYHi27rFs4uXnLbiVY8ZsQJh//2/lb67HhVDSQG8Res3XtFzx0My+MizYkirgu0SMjEBakuHxNwkDpr3lvfJ4nM/Lnbkc1mJJ5y9R+JBKFRpKX2B2iwAJqNfb9qlBi8KG9+0uhj4NAA2WT/2W/Abr1wVrFS3dYfdMBDqOejVAnhDBxftMnnCrI+cIbMuOlMQPv33PyWZf7hXbNCvW+dIyDqyqAyiVpJSOhuYEodoFVDPBtoZ5lIo5GV4aFBGrCsWj0tDY7PUNzSKE7RK2LL2DDn8y7skYwVDl0JhUkoVwnYhFALjpazrRvFwT6me8WvZ8MbAhL/xCv1mrVMtG95gGgap0sAr5R2XgIzsOCjdX3tAbNCqoL62SkvIUBlELTh+d16rgQtTFxXPCZrKZUdkaKBP8vn8Mb/udChUGgS7fnmndd0lLksLoRDwtCVUq39NVvgrvw2qYlXwpSMi2XzFz8nuy2QOtv2Lydd0nUwzTwD3GVcFVev/fbfM+KPXCcJDK4IaBG2cE1ShrAoqwiC8lBQfVQPV0GB/sRo4FbdCobaOagupy9JSeiG8VYBoOVtKC86T4iI9+zfzvafLzA2nS90UUzyDJH+kX/LdA0bP6f/JU5L5slHbFW2i8IK+ztXXHRtNnpRYMkcWb/6YIDx673pMjnzdVkVQaVWwzbq+ISFEGIRXdNCJfkF2rBqorZfHbbjSVjUwn8/JYH+v5HO5ip+TqKsrhsJEXb04xcNQ2GFdHxUmjyL89PuaTgl1rRpYbgFt/sPXBroCOBE7VUF9mXTwL7+RyT57wOTru+5zPEcAd1EVjLh876Bk/uE+O8NixtJ2rvdJSBEG4TbfrYwYGR6U4cEBKRQKYkddfb00Ns2wKoYJcYqHoXCTsKMQ3klKqRNA366U0tcDvTKj1x7r6hy90lI9feF3p7h0NjBhVQFbrCrgrIveFrgzgJWyUxXUXV0HN/6zGNLBYZ8SwD36Gle/HmwweRJVwfDQjoXur9tuCy0LbXtoGWEQbkqJjxbIazVQzwbmsllxQl1DgzRalUInQ2F/ersVCm8vvnXZJiEUwh0pKb340j1ySYPnpaVUwbb7cal3h7Qt1PHBJHoGcM4n3xm6KuB4phNEy7r/dVtn3/d+ZRLA9U6cvrjqEKAkKaXP3bFv1crRt+UbSZNJj77dM+bnSbExOIaqYPANbX9Oem5/WIafeF6qFOr20DLCINyik/scbdNafO4nalYNnIobodCjdRRqkxAK4YyUlF54paR6HVL6uOyo8PHt4sK0wKiEwLJ8V6/kTe+gW19SD1hVQcMF3ZwXjKZyyFs/eq0cfTtd0PMMVcHgyvcNSt+dj8nAIzsku/OgOEBfMF47eoUaYRBOS0qpt9qxNi2tAuoCeV0kb0pXRmg1MDsyIm4LeChsl5COTIbrtDVTK3Ipcd4mmfpmxdzR/7ZRG9h0ohYCld2q4OCvdqW7/u4HSTGjHSOXCMJMw52+Dlg3+jYlLg9zcsK8azZI0xknCvwva92A0tA3Yl1DVgXQgSrgWBoEb5aItLITBuEkX62MyI4MF4OgG9XAqQQ4FKbl6ItvoBJtUuoCcPOuvlaR9GNy/JoUDaE6Gi4pDoliCCyzVRW0HPqb76eHHt2dNHiKfkF+g5TOiSJcUtZ11ujbcsUvMBrWrZAFX7pQ4K7saBdBbv8RKVjVvHxv6etOubtAvw6Vf23sr4/9uf5+lecAp6Jfo7ZIiAfGjEcYhBOS4tMF8rWi6yh0FUV9fUNQQ2G7sKMQU2sX7xY5j2/XcTQI6nTQ1k/+kcy6+EyJouKLLysMmrI5OIYW0fDQsFc+H5ySgIW/Y1ivhrU9NLF4jsCe/Giw02qdvtXQlj1QCnwjo22bOevnPlcOgtq5YN4qEVCEQVRLd/foVDjHvgnMWf8uWXLuJxxdIF8r5VCoKymcokFQQ2HGugiFqJF28S4IlpUD4d1SCoKOfM3RyaBaDQzrdNBKZPcdNlslMSpz008y/fduN3k/6PtQV9zwNSW49P2t3/c1BKYkJHRgjA6OwfTK7ZlZq7I3sst6u+tgcX1DAIJeJTZJ6WtUpBAGYZd+Q9D2sDZxiIY/DYEaBk35oRo4lRAsrm8XXsChpF28D4Jj6d3aqoNg4ri5Mv9z749kS+hYdlZJqEKhkN7/p19pLfQOmYZB/QtPC4KkXAHUEJiSsKEqOCGt9I3s0DN5L70S+rQbwMX2zFrTm43tEkGEQdiREj+tjMhlSwvkfVINnEoIQqHeMesQRJVOCL5RAo5qYIndoTFK93dlvnyvGGJwTLCk5GgIDG4L6DSoCpZoxW94+/PF4KfDWEacmcgZBIel9HVpi0QUYRAmfLlAfmigX4Im4KGwQ0qhMC2IEj2nt0sCjGrgsewOjbG5ToLdgsEQ7irgeBGuCmrlb/ChHaOTOJ8LS5unqQelFATTEmGEQVRKJ4PpyoikOERXRejKCD8skK+VgIfCTcKOwqjQ7xUaBJMSUI1WAFx4y8WRrwaW2R0ao2xWBRkc428aAnUi+OUS4irgeFGrCuoydq36DT6yI0qVv4loNfA6Kc28iDzCICqh3yAc/YTRlRGLz/242OHmAvlaSdTVFUNhoq5enNKf3m6FwtuLb122SQiFYaeV4FsloLQlVC+UFNtDXzpia2hMFVVBBsf4UyRDYJH1CnjhP22U+jWLJMy0/bPvrseKN3FCfN6vUtoXr/sDb5IITQudDmEQU0mKj1ZGhKUaOBUNhU3NM4O6uH6TEArDqOqq4PplC2T9cfNlyawZ1tUsvUMjsuPlI9L54svWdUjcoisj5v71e6Rlw+mCo2y3h4rtJfNUBf0nuiFwVGLJnGKLaNgd/od7ZeD+pyTiCIFTqBNgYiyQrwENun093Y4urtfprHp5EArbRq92KVUA0oIwaBObQVBDYNubTiq+He9tq5Za/zxZ9vf0y6ZfPyP3PfO8OEnPBy78ykXSsHaZ4Khie6jd6oD15bf7aw+IDZEdzOBDfg6B6TGXlp4zcuz3kfQkz2uVo/8vydEfrxzz6+snelLTW0+QsMvu7UpbQTAp0dVpXVuFEDglKoMYT79wajVwgzhEw99xG66UlrVniKniyojBfhkZHpYocjIUlnm4uH6THF0SjmDS7xH66j8lhv7Pma+TPz2t8mLQpkefKYZCJ2gQXLzpY1JnvcVRxfZQbe/M27upZrMqyDoJ/3D8Jq8N5YCnL9I7T1lR333phoWZj507v9X6uExKPLay+KiYFeoKsWTpKYXklP/GkR6R4UxaEvXWQ/NpiVl1jngiLfn4HusX0oWGuelrb98v137nZX20tiWtsv796+Zff2Gqcd0KCS3rM+/lT3+7eEYwYsoBsEMYWFURwiDGSklpSIxj3yi0HXTFhe2hWCBfSwEPhe3CWaGgsjVB1DQIln3/iZ3yjw/9VqpR/5plsvi2jzEoZgLZA9br8OGc2GLvrKBinUTtpaS0Ema9eC8tpRfkne0fXth9zYeWzrG+qa+SePys0ZDnzOuNfNYKhdbHZq6v9OPx4g06sU1/0Cl1TenH4gvTX2h4/eW/lVlyJObcWX0/Gdj2TObw5+8OewtwWkrhb8/oW+1CoAJoiDAI5auVEX5fIF9LTodCDYIaCjPWRSjEBPQT+E6TJ5x78gr5zDmvFzu0hPRPDz1lhUJ7GywIgpOzu1y+zOYEUaqCtaWlcQ2BG8U7+kJ8y4nL6js/d/GS7vefOWe9JGLrrI8EDaLuBxMNgtme0pWfZr6AhkMrJP62bpE8kjhOHk4skd/GW+WFWLMEnv2bN17IjLvSo7++Z/StTvoc+wdPT/L8tMARhEGkxEcL5KkGTk/XUegqivr6BkdDoYeL69uFUBgE+v1BX0heVukTls6aITdecEZxUIxdPUMj8sE77pfeIbNBUQTByRUGR0rTQ23/C6gKBpCXLaH6wnzzpefPS9/8v5cXJFbYYH3MpKSWNAgOHy6FQhOJJiscLpVH6pbJfXUr5JHYPAkimzdvnDC2DVi/YOwefZsevcpBDj5CGIw2faHnWDVQLT73E7YXyA8PDRRXRqAy5VCoKymc4nEo1FHzHQK/Mj4vWE1VsMxOdZAgOLmq1kiM6tv6WLr7qw8kxQxVwdrQ1m5dA5MSdxUDYPuHFmWu+eCiVonHL5j2bF8t2A2FKl4nzyfmyiP1Sflu/ZrgBENvqoJpObY9s1OOhj0EDGEwmpJSOhvo2PkBrQLqAnldJG9KV0YM9vdKPmfzLEvEBXxxfYeUQmFa4DdGKyWKZUSrKjjR5FBTj7/4snxq68MVPVaHxSz9wWUEwUlk9x2uKghm93fLS5/cnCn0DplWmKgKes+LamDHG09ovPnXXzl5neR10rAPA+BEctaN5qGXpm8dncxoMHy48QS5IbHW162kLlQFO8dc24TQFzqEwejx1cqIMC6Qr5WAh8JNwo5Cv9HvDxWnCH3wDy95t7Q0Vj+MYV9Pv3zw9p9O+zimhk4tf7hf8r3VdVtkbvpJpv/e7abfL6gKeks/AbQauEHckVmxoG7zfdeu6nztqqaNNW8BrYZWCfWqRrxBHmlYJd9tWCvfjR8nfmK9lkof3PgvySqqghryyqGvY/THBL+QIwxGR1JYIB8JboTC/vR2KxTeXnzrsk1CKPQL4zD44CfOFydokjj7a3dP+RiC4NSqHRijsi9mMgc/+i92bhxSFfTO2VIKgklxXtoKgVt/8eUT5fgFdTqEJhyTKbU6OHTQqhZWOaTOh9XCntsfkp5vVtZVMY5+3+0Qwl8kEQajQe8W6jdnx76Q685A3R1INdC/3AiFHq2jUJuEUFhr/g2D1n9s0W0fk6Y/MF9fEQX5gWHJv2zjjNRY1jvh4P/6t87sC12mxwmoCnpHz/zfKM5Ln33ajM0PfG51q8Rj4QmB4+kqCq0SFhwYWFfXIt9pOrWmoZCWbthVJwgz362M0GpgdmRE4L5CvvT3reG7sWmGJOqqb9+bs/5dxcuDUNgmpZsYN0lp8mhagFFz/uKdBMFJ6MCYfFevVKvvx9szNoKguk74fHWblsNvkNLXSSeVQuDn1yStGy7XSNjVzxFJWDe0B1+0f5awLNsrf9b7iPxZ4nH5TqMVCutf53ko7Ln9YbERBPXmzXWCSKMyGF4pYWUExkjU1UlT88ygLq6/WUrBEN7xZWVw5obTZf7n3y94NScmh6oqKgw6Rv4cIQy6SaeF6pTfpDgn88YTm7b++sYT9RPZy52E/uHEWcKxPK4U6ufswY3/LDZoB067INKoDIYPC+QxIT2f2dfT7eji+nKl8PAv75JDv7zTrVCYlKP77tqFHYWRpecE537mPYJXcyoIqioqDLR2u0vPB94pDrZtrlhQd3PozgTa0TC3OBhGhg9VXyVU5Uph3ZPyr01vkH9JrHE1FOrnrA1682aTIPIIg+GiLT23iYMrI3RVxFKrGmhnZQTVQH/KDg8XLydD4VzrRoGeI9VKoYbC/GCfuCAppW9c7UIojB6r9KgDY1gh8WpOBsHBX+1KD9z/VFLMpYXPSTe1Sen7uyOsT6eOX9ywZvsZJ8+Idggcq26mFQgbnWkbLbNC4f/q/Zm8q2GH3Nj0Jlemj2pV0PqcFRtuEW7ewBIXhIVWTR4XB4OgroxY9fGv2QqCQ4P9MtDXQxD0MQ2EWikcHOiVQr76HY/aPrwgdZGs/vjXi9VCFyWlFAr1rmY0W5oiSM8JMjn01fRssFNBMNczkOn+x58mxZxWBa8QuKVdnAuCmfPfPGtT/senihUE9XUDQXCsuFUjaV5uBcMZ4qTjh1+UG3t/JI8M3iPLC9VN+R3PZlUwLRy9wCjCYPAlretBcfCTWl/Ur2z7e1l87sfFVD6Xlf7ebtpCA8SNUKhnS0+4/JtehUK9CZIShJa2h8755DsFx3IyCKqef/u52NxPtsm6tgjc0C7izDCXRXMSHS988zVbt16dbAv0rkC3xeLaFlVqHXWSVW08fvA5+a++78kV2afFCdm9XWkbVUG9edMuwCjCYLCVq4EpcYhWA7WyY2d3oE6t7O89YgXC6gMFvKehUN9/w0MDQQuFWg3XGyJ3iTu7tlBLo+2hOFaxNVSD27AzX2/7frTdznJ5pRV6phE6T2cy6VlpJ4Jg5uJzWrcc+PfXJo+bV0c3RaU0DDbOF8dle+Wv+n9WfZXQinSH/vZOsSEttHRjDMJgMOk3bH3he5M41OKhQ2JWXNherAaa7g7UBfIDfUdkaKBfEGy6+1F3QPb39RRDoRPGhkI7NxkM6CoKfWHq6BRd1Bbtoa/m5BlBpWeOjty6TWzQCgPnjpynQVAXyVc9CC4Wk47t/3RSx+a/WqFfH5MCM7p+onFhqVroJAeqhP1WRTD34uGkmCkPegJeQRgMnpSUqoEbxCH6Al2rgToAxJRWAwesapJOqkR4aPuZhsK+noz1Ph4SJ5Tbj/Wys57EQJsQCkOB9tBXczoIFqsLf/29tI3poSotnDtyWjkItkmV1q9u3JK/53WtpyUbHXu9EEn1s0SalzofCFW5Sjh0n1mVsFDVWUGqgjgGYTA49Bu1toxoO1xSHKAVwMXnfsLWi/Ox1UCtJiGcyovrnQyFevNBq4R2d1YaaBNCYXDFSlVBHFUYHCm1hmadG8xlVQQzNqoLxT+OlHYKwjlOBcHMtR9avOnxr5yUsv6Vjg2VizSdMupWINQq4cAu+d7Af8gH8nsrekqxKmh+vlc/Zy8RYBzntk/DTSnrute6zhWH6ITQlW3/IC0nvFFMZUeGZbC/l0mhUWIFfl0VMjIyJLFYTBKJ6rfS6MegnlFtsALh4P6dbq2jUPpiSO+M6w2VPdaVEVRCX5hWfF5JH9z2ppPFKd+Ojci8v2anYFm+Z1DyXb2ll3MOGXh4R+eRr/5nUuzRc4IMjXFWu1TZGmp9Hqa3/9NJv/zAO+ZcaP2UPSxOilnf9+qarRdB+r3K+Zvgc3I9cm7ueb1TL4/EF0z+QOs/3XXdFin0Gd+g3WRdNwswTkzgd/pirF0ctDB1UXEFgCkWyKMsFo9LQ2Oz1Dc0ilN0R+FLHd90a3F9WVrYUVgp/f5Q8R0fffCDnzhfnKAvsz78vtdwVnBU/nC/5HudHUeftaoKL/3F5ozN9lCtuK8WOKldqhwWs3B2ovO///lkWTArQTXQTXkrhA3s09YZcUW8Tu6bsV4+Vfd6OSL1r/rtntsfkp5vGreI6pdV/ZxNCzAObaL+lZRSS2i7OKR8ZstOENSqkJ4NJAhCjW0f1Y8NJ+jEUW0f1ZsVLraPJuXojsKkwLcIgqXzgdkDGceDoO4TPHTld8RmEKQ91HntUmUQ1POBB7/12laCoAfKLaNuyWfl3L7fyH8M3v+qc4Q67MlGEFSbhCCISRAG/ck3KyO0GsgCeUxGQ6F+bOj5USfWUSi9WaEtzAtt3LQwkJRSIKx6Wh/ghlfOBw47v6onc93WTpv7BJW2h6YFTmmTKoPgu97QsvXxr5ykITAp8IYGQp0y6hbrtdfxg+niOcJTCkeKv5TvHZRDn/6O2MQ0WUyKM4P+kpTSygjd9u5Ir79WWHRlxNw3niexugaj5+oC+UHrhb5TlR+El4ZCHTCTL+QkkUhIrMpD9ommluKNi1arWpgb7JOh/TvFJeVzuLbm6odcTc8MbnnzCoki/VwqZAYkn+lz41iSHPm3bZmBB363VuzR70+fEDhllZT+Tm1/v//0ny7s3HzFCg2CSwTeSjSWBsrknK3cj6XnCM8v7JMddQul87tPdQw9siMp9jRb1wXWtVU4N49xODPoH3rXRqceOrI3UOmqiOM2XGm8N1DpjjldLQDYUdfQII2Nzdb3SWfuN+k5Qj1PqOcKXdImnCMcr6ZnBjf+pfmqm6ArVgMP9zo6LXSs3u/+V+bIv/3M7vcYraRre2ha4AQNgg9IFdWaaz68eFv7hxadJait4cOly031cwqFpvkfjf/xk/pxU00lWbvO3iDAGLSJ1l55ZcRd4uACeV0ZoRVBuwvkCYKoRnZ4WPp6umVwoNeR9tGxi+v1bKELdFdaUoAa0GqgDolxdH/gOMXJofaDYHkkfVrgBL13UlUQvOXjy9IEQZ9omKvtLOKqke5YbODgbfkfn1bt0vjXW9cNAoxBGKytlJTu0jh2bqm8QH7eW94rplggD6e5GQpNz79OQ18k3yaAx/J9Q5Lb5/yQmLGGf/vC9sPX3pUU+/ScYIfACRoE9cV4UmzSIPiX75mfFPhH05LiFFBXZXutQHjgGgcC4eXCeXmMQZto7Wg10NFPRq0G2gmBWg3UyZCEQLitoalZ6usbHGsf7U9vlxe3/IOT6yjOFl70ltEm6iJtCc0fGZDCkLtnsrMvZjIHP/ovekYoKfZo18r7BE7R7/s3ik0EQR/LW6+hBl5wb+VEWV1LodC06Ir4nzypNzHttozq1wT9ftcpiDwqg95LisPVQK2WrPr41+xVA0eGqAbCM9p+3N/XUzyT6gStDmqVUKuFDq2jqGqqHzCd4rnAg0eKLaFeBMGX/vIb+sOk2KPnBK8QOKWq815/ef4CgqCfaWWwYb64TiuEgwdvyP3oVP38tLtEXoPkneLgnAoEF2HQW+WVEY7tASqvjGhassboeboyYrC/R4b6+6wfuzCyDpiEno/SUKg7CnUCqRPKOwodCIUp4ZsjXOBlCFTlIGhzl6DSiRgMjHFO+ZygrffHn//R3M5b/vfSpMDf6mfpsBdxnRUI48OHb8tuPWWL9bMtYo/enOD8IAiDHklKaYG8Dqlw5IVmeYH84nM/bjwkprxAPjvCygjUztjF9T4LhW2CmtOF60FXXBPRP+xpCFQOBEEGxjirqnOCulD+Xy9fnhQEgw6Ucfv8oBo+HEvkM3f+5+dXanXQbrtnm3B+MPLYM+g+rQZ+27rs7nV6FX3Bu+LCa6VhgdkeLq0Ganve0EA/1UD4h/WxqDcotGU5FotJIlE3wUMKxY9ffZvXF9iF0qXnXXO5XPFt6cdZyWazUrdwpcx5U+n82uBzT4mh/VLaxRR1Nd0z+P3lLVZ4Gm1fj8ckFg/OvUutAhb6hiXf1WuFQetGR87lM0Rj6LCYl/5isy6rr2bvnA6M+brAKXo262tiw5ql9Zn//vrJGurZIxgU1vex4nTRkR5xXW6wedXSGWcV8vWf3Pbbfp0ua3oDSL90v9m6dJs9+wcjyoNbF5FVnk64QRyiFUDdG6j7A03pi22twugLacAv6urri2/1hX4inii+1UBY39AoibrSl6e4FQ5zVhU7c/hlMdX6tgtl4LknTQOhY23cqI5W0srVtFiD9fHRWC+xpgbrqhe/KQZAK7yO/TN7beCRHZ2H24tTQ6vpQNEphe0Cp2gr3q1iw7yWeOann1ut70ta14Mm3liqELq9f1ANd6269iNLvrztt4OXbPttr51zgNYftPgxeo4gkgiD7khJKQgmxSE6KMNu69vQYL+MDA0K4KTxQS5R31D8eTyRkLj1a3Hr1+KJUjWnrq40QVR/b+xzK5XTx9v8njr3bR+Uff/+NyZP4YWXDxWGc8VLegZLlcL6Ook1Wx9X9YmahENtAZWBYSmMWH8ufZut7Y220YXy1d7I2CQEQSeVq+tJMaRP/MXfr+lMLm5ICYJJw2C2TyQ/LK7S6aVDB1//4BeXXRx/z++1qm/nHGBKSu2iNwkihzDoPEdXRmg1cGHqYtsrIwb7eyWfC/7ZGzinGNTKoayu9CK6HOTKIU2rcfFia15itGJnP8jVWsOiVYbPYPm87+ULr6rAaeVQEqPVQysgFgNjgzPf4opBbyRbfFsYzlp34kdqHv6OKmS6v/qfmb6tjyelOjrc7FMCJ6Wsa6PY8IWPLs285vimlCDYmhaK9O8V1+WzEht8aWP+R6fqygk9Q3iZ2b+geP/haikNo0kLIoUw6CytBraJQ3RC6PIL221VA3WBvE5s5GxguJSD3NG2yleHtKMVu8SEFbsgKreM2mE6YAnBVKwaSqlKN1asLl4MiRoO9SxP8edT/XvKIU/P+Vk30vwT+l4t1zOYOfy3388MP70vKdXREfXaIsaZIefoi2tb7aEb3jK786o/XUC7ehhou6hOFx3pFtflh2OxoUM3ZLeeck7dBb/V84OmH0O0i0YUYdA5jgZBXRmhk0JNsUDev0zbKtX4ih3siTfOlPxQn8lTksLd0VAohrkxgS4st8eyL3SlX7rs9tZC71BSqkMQdIet9tBVS+rl1k8xOTRUtF0011daSu+2ke5YIl5/69UfWPDn1333ZTvnB1OjV4cgMgiDztAv+m3iAK0C6tlAPSNoimqgO6Zqq3TjfBwmptVBuzc5tDpoGAYB3+r55kPpntsfdmKwSDkIpgVOsrVcXkuJ9163qnNuS4KqYJjErNcG9VYgHHpJPDHctar9I8uutsKgnfOD5Yr2G4QbRJFBGKxeUhw6cK/VwIWpi4zb2nTEvlYD2Rv4auODXFTaKlE1hsjAd7QtNPPFezJDj+5OSvXSQhB0g9FKlrE+/YGFmZOPayQIhpEuo8/26CoIcZ31mjA2/PJZuR+dujXxJ0/qGUDTqfZ6M0NnX7QLIoEwWL3bpEoa/lZc2G6rGpgdGS4GwTBWA1+9dqAU5CppqyTIhY++P+2OQqqbs0iy3QdNnkIYhK/o2ojMP/w46UBbqNJhMe8TgqAbNMwZD43R9tAvblzC150w03bRgX3iidxgLD6cufpbf7XsDz/45RdTYv497VIpTRalOhgBhMHqpEYv2zQAahC0Uw0cHhr07cqIV6putFXCIbGY/XBvY4jMHAF8oFgN/Id700O/3OFUxUiDIGcE3WFraIzuKH/g86sFIZdoLi2jz3n0um24a+6fnbX8hg9+Wa4Q849LHSaj00WvEIQeYbA6bWJTNSsj3Fwgb6etkiAHL+jH47DNmx86QMbQXAFqqpDp/c6v5MitP9OfOBUEN0lpfQRB0B1tYuN99en3L8wkFzdQFYyCxvnerJoYNaZdtEPMixfaKnqL0EEQeoRB+/QLt639QXYXyE9XDZysrXLs73E+DqgIL8xQM8WW0C/fJ4WeASfPj2nLF3sE3VPe02ZktD1UEBG6aqJu9PygF0bbRa/+wIL/ed13X9avJybf28of05cIQo0waJ+tb9KLz/3EhNXAcmiL6x6sMdU5bY2Ljf6aro1omjGDtkpEUqyKmxV6ZtAQYbDGMjfcJy1/9pZ03XGtSYmIoe3PSeamn6RzLx52MgTqgXJt9bpJ4KY2MVwlUZw088HiTWG+3kRJfYt3YVCNZOa2X7ziUisM6jJ60+FGbdb1DWHVRKgRBu1LiaE1F10n89/4J1YFLvbK+adyoAMwNY8r17w4q7H+/3hSr2Tdivmdsy4+M9n0jpMzMRt724Jg8Fe70r3f+1Vy+Inn9adJcc5hKQ2K6RC4yVZVcMNbZsvGd9KRHjlenx3U6aJDhy741Q1rNv/BFTvTYvY1Rj+2Lxa+hoQaYdC+pMmDF73lAllyhvn5QAAl1VQG6+eYtWQLA2R8I/v8ofWHP3e3yOckM+OP12Va/ucb03XL54Vg/H4hM7Dtmc7MV37a6nA7aBk7BL3TJqZVQesl9g0fWyqIKC8ni6psb+xNa2ZqVVB3D5oOk2kbfV5aEEqEQfuMXizOW3+OALBPJ9Ai0pL9P94u1rU+sbQ10/yHp3TOOOe1yaC1kea6+zt7/vVnMvDQ79cX+oZS4g5tCb1WGBTjhXLlxEjbH86V5OIGQUR5XR1UI93rcj86dY6NYTL6MX6ZcOY4tAiDHsn2HxEAtRFrnCGGkgLfyu3LtPbe/lDKuiQ2qyndfM5rZcZZazP1pxzX6sdWUg2A/Xc/3tq79fGMS1XAMm0L1Tv4nA/0TkoMj41oVfDqDxmfY0bYeF0d1GEyuf6r37Cm+c9/s3MgJWZ0YCI3mEKKMGhftwDwTKLOfmXQxp5BBEShZzDZv/U3opcl3bB2abrpbSdlGk9d0Vq3dqnUIhwWpJAe+tVuGXx0tww88Du3A2DZg1Ka+pcWeEUrJsZTxakKokirgzo/ouD8mrBJDb0899Eb16yLn/9Uh5jdxNDDrbpqol0QOoRBj+QGPJwcBeAYiaYWMZQUBFFy+Ol9oteoTGLZXCsgLpHGdSsz9ckFrfVrl1h3tmOOhbOCFb5yzx3qHnryhZXDTz2fGfx1WsNfUrwbQkQ1sHaSYhgGqQriGPVzRIYPi2fyWYnley89fc2MSx7b2Z8SM5dK6esM1cGQIQzalzZ5cLafMAhUQ5fO22Vj6TzCoTX34uHWgRcPa4Vu7K+nE8tape64uZKYNzMTmz0jVregZU6sqV5/LLG6+DFBLt/VmykMjrQWRnKZ7Es9+u/UVtVM9oXD+rjk2P+eeItqYO0UN0OIIaqCOIbXYVCNHJ776E2r18feY1wd1K9vZ1nXVkGoEAY9kqUyCI/MaoxLS0OppXLJrAZpaUy88vOls+qPeau/Xvz90ce0NMSt5ydkX8+I7Hh5QH6WPiL3PhP8m4A2wiCrJcItmXsxI3oFFNVAfzjL5MFUBfEq2ibq9SAZqzooud7L3rCm+RLDs4PlQTKEwZAhDNqXNnlwjsogKjBdSBv7GA16Y9+OfYwTfw693r5qtlzyxkVy66MHax4Kq1ktYePMIGEQfsWkUH/YIIbt5FQFMaG6md6GQZXtaf31jWvWJc5/qtP6mUnbfGr08Z2C0CAMAg6ZLqS1WBW7WdNU7PxoqfVn/ZuzlxffaiisFY+XzisNhLzghl/QEuofxusktCp4MQvmMZG6WaVWUS8HyVjhMy4Degbw/xWzMKgf+3ojhDAYIoRB+4xeJA51vSjwp2raKsf+XthphbB3KCffffKQ1IoGwnze3jfMujmLJNttFGbthsHk6HPLb3Un6dwxPx77uPHSY37cPfrfPzz64/SYx6QFUdEhpUpgh8AvklJ6QVz5ExbXS+pUzi5jAtoqGm/wvjo4nGn91Q1r0n9wxU79PmPSDaMhsl0QGoRB+6gY+EAlIW38Y9xoq4wKDYQ/Tx8pnimshWKraN7Du6eTS0qpXUbD3frRn5cvr6THXHukdKc2LdyxDRP9PpOW0sdaq/D+9YuUyYOLk2Y+uFiASdXN9j4M5gZjbzwhpsFus5TOAlZKvxalhBtUoUEYtC9t8uDBQ3sF9mn17tyT5sobls2UExY0R6Ya5zcapt9/2gK55SEPF+U6xEZlMCmlF+Ma9taNvi1ffpCUycNn55hru/BNO6j0RVfbBL/O+7d2jFtEW1sScsFbZwswqboZIkPiuVhu8Ky/fM+8rV/5YZfR06zrAuHrTmgQBuF7Hzh1vnzUqkhRxfOHPz6ptWZhMJGok1w2Kx65TYK7b3Ci0NohR4ODXnQ3BBfv39pJimFlcMNbZkvrTL5/YQq1mCqqRrpjN//5ca1WGOwQs49r3a/5KUEoEAbtMzszeMgfZwbL5+Mma6vsGcrJjkOD8viLfeIHnz17ufzxyQx29BP9mDlxfpM8e8jjb1qWeML+EBmtDBpKSrikRq9yO1CHdW2To+EBwZaSV79/NRxuEd6/TkqZPJjBMahYLaaKFvLWx+hweZBMyuCZtIqGCGHQPl/cdX29tk1aL8wnmlY59q3p+bh9PcPFQHjbowdrdj7s0jOXEgR9aol146AmYTDG3XUHpUYvXZydltI39a1ytKpUEARZSo6Gw7S8+v0Lc8YtogyOQcUSzVITI92t/3XDmvSbr9hp8ixaRUOEMFgdowlMg1Z1sGn+MqmWVvfef+oC65rvWuukrhFYenJDMWx+9r7nPH/h/24rBGp7KOCE/GCf6XnBqElK6Wxa2+jPt4xeQaITN68RTCQpE79/NwtMJMWwMph6XYsAFdGJotouWvB4SFpuMPamExvOl1KwSxk8U8MgraIh4PnirpDx/O6qtnLe+qcnFKc6enGGTkPhV85fVWwL9NIHrLAL/+odrs1Ez0Sd2f2rgeeelAM/+Lw8/7X/Rwafe0pQsQ3WtUmChSBYufL7V9eW6NnYlKASKZMH0yIKY4naVJFj2d4NyUUN2wyflpTwHaeIJMKgh3L9PVKNchBcOtr66RU9I6aBsMWjAS76/3niAm/DJyqnuwb9cqZ0IloFPPyLb8meGz8k+//9b6X/2f+S/JB//7xADZWnlepC+11SGgqRFEyEFlG4L+Ht67tX5PrnfOczK7aLOaN9m/AnwmB10iYPzg4ckWrcYgWyWk3U1CDoVdvm+mV88/Szn6Wr+ziuRqJu8pUiWgXc9+9/I3tu+pBkfvFtAiBgZpWUqoW7hWrhRJJCiyjcVqtzg8e2ilZKb5CcLwg8wqCHsgP2K4PvP22+5xXB8TQMtnjUmgr/uvVR/5y90ypg96N3y95bLy9WAWkFBRzRJsdWC0GLKLxQPjdYA7Fcv54BvFvM+GXvLqpAGKzOHpMHZ/vtV1T8MExFg+Drl84QRJcGwf01mi6rYvFY8W25FVTPAnb99N9k+OBuAeC4crUw6qGQFlF4J1aj2Y65wdZbPrbUdIp0ecUEAoxpogGg5+f8Ui07cUGz/Dxd3dnH6eyrYdjA5DQI1rwqODJQDIFHfv1DX7eBrmxqkuObm4tX+efFt81HW4Dm1NfLnHEDcZ4bGHjlx3tGf7xncFC6s1npHhkp/r7+HLUVwfdvORTqkB6d2hq1KaRJMV00/+bZAtiiraL5YfFcrj/2yfOOb730n/cZTcqXUnWwQxBYhMHqpE0ebHfx/JKWaLVN7jg0YPoUuEgHxmgI/O6Th6RWtKq+78E75MUHvmn92N2bEZXSAPC2efOKL/jXzZolp1qXBoByMLBlbmVtZRkrODzZ21sMEU8cOSJPWD/WIPFEjz/+bsKA9++EohoKUyYPLraI/uE8AWyJ1+iluS6gL/SfJaV9pJV2AmjVXJ9zkyCwCIMB0NIYrUXbz748WLyYKFo7GgB1t6RODf3uky9bP6/NKgm174Hb5bkffbWmIbAcDE6zAsHbrRf0x1s/b62vl1rR//bbR4PFeQsXHvN7Pz98uBga9Hpy9C2mxvvXWJRCoa0W0fVr+P4Fm+K1KwDECrlUclHDtemDRpXJdYJAIwxWJ23yYLuVQT959mVvqnYaQP7m7OUCe8qtthrqeodzsr+n9IW9x/qxBrue4q+XAl7598pv/dKm2/37X8uz3/jbmnzeaDj4k0WL5B1WQHhba2tNg4EpDRFvH1OB2mdVlB6zKks/PHiQcDgqbO/fu198UX5qhcQd1o+f9bbNdGwo1OXTWyV8kkKLKLwUb5SayQ0Wvti2eM+FX3re5FlJKbWVer57G84gDAaAn9omtVrkhXufycg7krPl7aui9U1Vw1vPNCGtHOTKQa/8duxjgmzo0F4rBP5dMQx6RVsBtSp0nhUQPrx0aaDCwXSWNjfLeXqNVpj0rJpWl+556SW556B/JsO6Kezv348mk5KaM0cGslnZNzwsj/f1yc+PHCleHtFQuEVKwVArhWkJj5TJg2kRRdV0mqhehRp05OQG5P1vWzjnwi+J6bnBcnspAogwWB2juyA5m6sltGVSX/DXul30x88c9nSS5Oce3CtfmdUQmHbRcpCbKqRNV7GLsvK5wOfu+ap4QQOChoOPLFsmp7a0hCogTEWHnOil/99KQ6FWDTUY6hm1sIjS+7chkZCTFyyQ/VYFWKxraUOD/PFo9VAD4c80GHZ3S2/e9a8xbVI6a3Tt6BV0tIiiNnSiaKEGQ2QK+ViskE1ZP+oUsxshqwSBRRisjlEYrGbPoA7vuOSNi6RWNLR4PUlSw9JHv7+j+P/t9v97NW2VBLnqedkSqi12n12zJlIBcCpaMSxWDU85RW5/8cXAVwyj/P5dYv0/J6zS1N4xrcBvnz27eMny5fJjqyLsQcVQA1S7lELhJRLsKYNJoUUUtRCvr81EUVUY1CqfngNOVfgM/Zw/TRBYhMHqGIXBwUN7xa7vPnFI/vjkVllSoxUTNz+8r2b75TSEalVSA+GJ85uPqRRO1VY5WZALW1tlkGk1cMc3/04OdT4gbiq3CP7FihUEwCloFU2vcivp53ftOmYdgl/x/j1q4cyZ0mJVBndnMjKcyx3ze1ot1KvcSnrrgQOyf8S1r4FaKdDF9ZskuK2jKZMH0yIKx8Rq9/I8lh9pPeuUGZltv+03eRrL5wOMMFgdzw7Lanj56/uek6+cv8rTdlENTp/reEF+vru2Qyc0iH7+QfthGv6jAXDHN//W1Smh5SrR2ysc6Y+Ssa2kGgq1YnjHi/4bgMX7d2LNViA+Yd482dHV9apAqLSNtNxKqqFQK4b3WpdL2qR0nihoU0dpEUXt6JnBWskPyUXvnCeGYTApCCzCoIdyVb7o1eEtbd/fIf9oBUK3K4QaAn+WPlKsyu2negYHaTXw+R99vbgz0A16VuyTK1dSJXJIeXrlX69eLV+wKoUaDmtZLeT9Wxk9R6iBcLf1/hqY4izo661Kol6XWJXVWw8elMd7e92oFpanjuoI+uskGFMHk0KLKGolVsOvbflhOfvU+WJIh80kJVzDoyKDMFidtMmDqzkzWKbB7P/cvVs+cNoCeUdylq1QWG6NfLF7UOLx+KvaKnVgzeP7ejkHB8e5eTaQkOCupFUp/P9OOaXYQnrHvn3FaqGXoZD3r7liIJw/X3YcOjRlIFRaKfyb5cuLLaT3ZjLyY6uq6EIo1PUTG6zrHPH/i8aUyYNpEYWj9AOqVgp5WbU4sVJKn6NJg2eaTB+Fj9Twoy00CiYPfvOXH5K6Gc7dPXz9spnWN/smmTXaOjp+EArn4+AXz9/zVXnuR18TpxESauebViD8wui5Qv1m8uAnzhcn6BfVs792d/HHvH+d8Vx3t3QZhndtH3XpXKG+i/08cVQ/nPUgc6rSJ6xaUi+7/m2tAI7IWZ+rA/ukVgrNyzrj5z+bltLNm4qeIqWBUZsEgUNlsHppMbhzkh3odTQMPv5iX/EC/MqtvYGEhNq7aNkyec+iRfLV555z/Ewh719nHT9nTvGtSSDUM4XvmD1bvmtVFh2uFJYnjmrb6BXivyphUmgRRS3FartKTPLDWuXrNniGfk4nBYFEGATgGrfaQj95/PHFM2yEhNprtULbZ633hS5zn3lgWPbNq5ehevtNJ3X5giztyspv3/Y23r8O00Coqyde6q98MERLIlE8T/ju1tbimUKHB828V0pTCP3WNlppNaSIFlE4r4YDZFQhl1w+v37rC4eMbgAdLwikGn+0hYLRQfihKtZLAEGy74Hb5akbL3E0COogEw0J1598MkHBZ3T66IKenJy0d0gWZ+wtr9fnvS5dej7vX3ccZ1X65lnvK1PlM4Xfsz733u3s9FYdLrPLui4Xf2CKKCIvlh+RNUvqgzDoCQ6gMlg9zxbPA0Gx+3tfcnRa6PGjw0tYIeB/jdmCrHh5RBZZgW7n0gbpb5z+nuOsgZwkD4wUnwv32WkZLSuHQp1A6uB5Qg1gN1iX/sFqfY4wKYY702gRRfgU5PUnNLeyXiIaqAxWb4/Jg3WsPhBWWvnu/NyfOhoEdY/cw29+M0EwYDTYvfb5ISvkDUvjyMQhT1tCNTievHeYIOgxDYR2KoRlep7w+2vXyiWLF4tDyucIdXBLUmqHFlHAqgy+9WTjrw9JQSBRGQTgCA2CTzrYFqrhT9tBT5s1SxBc2jo6ayAvL86rk0Ozj37Lae0rVQM1EKI2NBDqUvre4WGxS88TntvaKpfu2uVUlfBsKQXCWpwjpEUUKMrLwtl1tIlGBJXB6hmeGXR+vxpQa30vPC2dn3+/Ix/fOkVSQ+C9b3wjQTAktOq36uBIsUo4Yygva/YNywnWRRCsvVXWTZfmuuruCy9raHC6SqjnCDUQGrVrOiAptIgCxV2Da5Y1mu4NZM9gQBEGq8edE0TawUe2FgfFZPurPw97qhX+NATqtFCEj1YJtXV0bl9O4A86XVQDoS6or5ZWCb9r3chZ4szwn3IgNGrbrBItooCywuDyBcaVQcJgQBEGq0dlEJGlE0N1dYQTQVAD4CNveQvVQMBjGgRPmDevGAyr5XCVUA8K3yneTBqlRRQ4Rn6lIBI4M1g9KoOIpOfv+ao896OvSbW0LfTb69czIAaooXIgfObQIXGCVglPaGqSW158sdqzhF5NGk0KLaLwjbzUXIEOjqigMuixHKslEAJOBUENgA9b1UCCIFB7zfX1cpyDlfl3zJ4tt6xeLSc2VV0900B4zejlFlpE4R8+CGKjfQJpMZMUBA5hsHppkwezZxBB51QQ1LZQPR+4sorx9gCctXDmTFk4Y4Y4RdtGbzvxRCfaRt0MhLSIAogs2kSrZ7h0nj2DCC4ngqC2heruQIbEAP50nFXRG8hmq1o5MZ62jbbE43LLvn1ShXIgVE62jCaFFlH4SZ4WTXiHymD1zMJgP5VBBJMTQfB4qwrItFDA/5yaMDrWBxYskFutKmGV00bdqBDSIgp/KTiys7O6P0LpTVLMpAWBQxgEMC3HguDppzMtFAiA4sqJVucnxZ+kQ2VWr/ZTIKRFFP5T8MEAGUQGYbB6aZMHs1oCQaPrI6oNgsVBMW9+M+cDgQBxeqBMWfkcYZWDZcqBsNq1E0mhRRR+U8gK4BXCIIBJ6UL5Xd+7XqrxkWXLiq2hrc4sogbgIR0oM6exUZw2K5Eotoz+cXWThMtrJzaKfbSIwn/ytW8T3Xc4X/3iUQQCYdAZaZMHD1IdRAD0vfC07P5+dUFQB8V8/ZRTBEBwHd/a6vj5QaWvND+7fHm1k0b1X3OjGFb3xjyXFlH4jw8qg/u6CqZPSQsCiTAI4FWGDu2V3339sqoGHmkQ/Ozq1QIg2PT84PFz5ohbdNJolYFQy4sPiPmwi6TQIgq/0fOCtT4zGIvL714YMv2kNxqoCP8gDDrD6BNAX2gDfqUfn0/eeElV51sJgkC4tDQ0OLp/cLwaBUJaROE/+SGpOSsMDgzlTMMdYTCgCIPO4BMAoaEVQYIggPGWzJrlSrtomQOBcJV13VnhY2kRhT/lndvvaVusTh7baRxKuwWBRBh0hlEYHKQyCJ/a/b0vSd8Lz4hdBEEgvNxuF1UOBMLXS2mozHSSQoso/Chf+/OChVhCdh8YNp3ulBYEUp3ACdwNQeDpLsEXH/im2EUQBMKv3C76Un+/uEUDobr1wAGxSddNPGddN03xGFpEIyA32CvZwT6r2DYoueGB4q/F4gmJ1zVI3YzZUtc00yqCNYiv+KJNtE6e2D1oOkGG18IBRRisgdyA/aEcgBt0cmg1uwQJgkB0aLto99CQDOdy4pYqA2F55USndXVM8vu0iIZY3gp+g137rDDY96rfK8hIMRxm+48Uf17fMlcaWxf5JxTmBqX2EpkDmWyrwRM0OKYFgUSbqDPSJg+uZkIj4LTy5FC7Pnn88QRBIEK8aBdVH7UCYRV7CDXw3SoTD5TRX6NFNKSGj7wsfS/umDAITmSk97D0vvCM9O/fVfxxTeUGxBdiibT1T5MwqNKCQCIM1kCWyiB8pJqBMW+3Xqhdf/LJAiBa3J4uqjTN/fXy5fL6mTPFJh0oc+sEv06LaEgNZQ7IkFURtEPD4+DLLxTPzWsoLGRrMMjFD8NjVCyxR8x3d6YFgUQYdEba5ME5KoPwCT0naHdgzPHNzfKtdesEQDRpu6hWCd2k//bPr1wpJzbZbtE8W44dKEOLaEhpRXA4c1CqlbdCoIZCrRbqW09DoS9aREXu3z5svHFeCIOBRRgEIqr797+2fU5Qg+C9p58urfX1AiCaNAguaWkRt81KJORzViBcYv/rjQ6USY3+OCm0iIaOBjgnguB4nreQ+qFNNN4gDz09ZLoyrVMQWIRBZ6RNHjzUZX+HG+AEPSf47Df+VuyYU1dXDIIrrUAIINoWzpxZbBl12zLrv/H5ZFJa7O05LJ8f1DNQtIiGkAbBQt69gUaetJBqi2ghL7VWiNfLtqf6Vhk+bY8gsAiDNZAdOCJALWlF0O45QZ0cShAEUOZFdVCd1NQkly5dKjbpi9u7xLBFdP3qJlpEA6A8GdRtrraQ+mZ4TINse7LPtE10uyCwWC3hjLTJg5kmilo6+MjW4mWHBkGdHgoAZVoZ1Kt32P2zVTpddP/IiN2VEymTB2s5ceM5tqeZwiO6S9DNquBktEKoV6JppjTMni91M6qcsJutbPqp62KJDjFrpdbg2CEILCqDQIRoe+ju718vdujkUFZIAJiIF6smynTlRBUTRitnpcEL3sp5Qb/LDtY2RGkL6cDB56prIc1nfTM8Ztvvim9M10pwZjDACIPOMDpoa7c9D6jWs9/4O1uVaR0Y8/VTThEAmEhDIuH6qomy8oTRJS4PsNIW0eWzBmuzYgAVq0VVcCLlFlLdcWjcQuqXFtF4nfzw132mw2PSYvg6GP5CGHQGnwTwPW0N1Qmidnx73TrOCQKYkherJsp0wuhnV6wQt+j/xUXvaLEqPntqs2IAlfNJGCzTcFqeQqofP9rGOq2sP44PFWJN8qNf9STFDOcFA44w6ByjQDhIdRAe0vbQ5370VbFDzwmeZr3IA4CpaBBc6EX75qg3WP+tKgbKTM1Kg+e9/uhLJM9XDKBisTr3p9napYNt+vfvPtpCOlFw9VGLqCQaOp/ZO2TSIqrnBbcJAo0w6Byqg/Atu9NDOScIwISGQa+qg+r9Cxa4cn5w/aomOW7mq8+iebJiAEYSDf7vWim3kPZP1ELqlxZRy0PPFN8kxQznBQOOMFgjOSaKwiN2p4dyThCAKa+rgxo7/3r5crv7Byf9d150Vksx+E3G1RUDMKLTPGNx597/btKPm3KVWT9uii2kPmkR1WXz//6zftPChj6+QxBohEHnpE0ezK5BeMV2e6hVEeScIABTXlcHdSH9Z61A6JhxLaLToYW0tjQIaiAMGv1YKbaQvtQlI4NZqbVCrEG+9/Nu0ymitIiGAGHQOUZ3U7IDVAbhvufv+aqt9tAPL1smH7EuADDldXVQvX327OLlhMlaRKdDC2ntNM5z6eyoB/L5ggz2DklfV78M9gxJIZeXWnj2YH365Z6s6X7BLYLAIww6p9vkwXqoGHBTaWjM18SUtodyThBANbyuDup/6bMOtItW0iI6HVpIvReva5CmAAdCpaFwZCgrvYcHiqEwN+LhlNRYXO74xUhazFEZDAHCYI3kqAzCZXaCoKI9FEC1NAjO8/jrSHHdRLXtooYtotMZ20Ka7Te6ZwxD9bMXSH3LXAkDDYX93YPFaqEXLaSF+Az59wczSTGTFsMjUvAnwqBz0iYPzjJABi7SqqCdoTG0hwJwitetokpbRauZLmq3RXQ6WmkcOPgcLaQua1qwXBqsUBgWXrWQPnswkd6xbygpZjoEoUAYBELo2W/8ndhBeygApzRYlbqWBm93wFUzXdSJFtHplFtI+yZaMQBH6PlBDYWxunoJC1dbSON1cscvcmkxo+cFvyEIBcKgc9ImDx5i6TxcohXB7t//WkzpcnnaQwE4aUlLi3hNp4tesmiRGHO4RXQqunx8bAtpccUAHKPtoi3L1xZDYRAnjU7llRZSKxg60UJaiDXJN356OCVm0kJlMDQIg0DI2FklwdAYAG7QyqDX1UGly+hNudUiOh2tRBZXDJRbSPMeDg4JOQ2FM5aslpnLTw7NecKyfC5/tIW0d9h2C+m92+Pp9EHjCnWHIDTqBE4xWi0x1EVlEM7TqqCdqjNBEIBb5jQ1Se+wt+2Qzw4MGD3+aIvoy1Ir5RZSnYyp1azG1kUSq/M+SIdRcdqonie0/k41fA9lDkghOyJhoC2k+cERq0o4IvWNdVLfVCeJ+srapAvxBvnHHxtXpWkRDRnCoHOMwiDgBjtVQYbGAHCTThXd39MjuUJBvKD/lfsOGy5/97BFdDoaCvNWpUerhHUzZkvD7PlWOPS+3TaMNBTGWxqKVUL9+9XLzTOiXtMWUr00DJaD4VTSXTPk3sf2JsVMWqgMhgph0DlGYXDw0F4BnERVEIAflddMvNTfL175WY/ZxO5yi2huUHxFdxLrpSFGq1pha3WsJf271EvD93DmYDEYhoUOmNFruH9Y6put8NsQl1hi3M2OeJ1s6hjqsH6UEjNUBUOGMOgcKoOoKbtVQYbGAHCbtop6FQa1RXS/QVuqH1pEp1NuIdXQQgups45pIe3vkaEjL4WqhXSob8i6pFgpbGiut/5/S6GwEGtIf+M/u1NiRgvvmwShQhh0jlEYzLFnEA6iKgjAz8qDZNw+Oxj0FtHpjG0hLVW2WmkhdUixhXT2fKm3rii0kN7+m0TSxuAYXWCcFoQKYdA5RmEwO0AYhHOoCgLwO68GyYSlRXQ65cBCC6nzXmkhHR6U4SMvh7KFtP32/WKIqmBIsVqihvQcAFAt3SloWhVklQQAr83z4OaT/RbR4FaAXllk/8IzLLJ3WLyhqdhCqqspGmYvCM0i+zt+ad1EPiSm0lKqDCJkqAw6K21dyUofnB3oLU4KA8ab1RiXlobSaOglsxqkpTHxys+Xzqo/5u21379KTH2EqiAAj+kgGTdbRcPeIjodWkjdo9XXxnlLi5f+/Wq1UKuGQaRDfb/wYzGln17XCkKJMAg4rBzSNLwVQ9xokGtpiFshT39uvR0T9Ma+LT+mUul0Wv7rP82/qn946VIBAK9pddDNVlHjFtHVTbJqabP14n5muM6H0ULqmnILqX68lP+eg+SO/7JdFdwmCCXCoLPSYlAZHDq0V5rms9/NT8pBbrKQNj7ITVSx81J7e7uY4qwggFrRc4OJI0dc2Tlop0V04zlzix06eoVxxcAxU0hnzJLGYqsjU0idoFNd9dKwrX+/2cFe308h1U+7L5rfP1YdwuCY0CIM1hBDZJxj0lY5WcUuaDKZjGzdat6+z1lBALWiraIaCLus4OYkuy2iF7z16FGNY1YMWFWfocyB8KwY0BbSI4dkxLpoIXVW+eNG6Y0EP3/cfLXDVlVQP72uE4QWYdBZe0wezACZkslC2tjfm65iF0VbtmwpBkITVAUB1JobYVDZaRFNLn51lay4YqCloRiaQrlioNxC2tBUHIpCC6lzjmkhPfxccZWDX6RfFvnag2LHJqEqGGqEQVRlfJDze1tlmFx7rflZbqqCAGpNh8hohdDJVlG7LaLTeWXFQBhbSIcHX2kh1d169TNm00LqkER8WBKzGqVhZoMM9w1LdiQnhbzzrdGV0v/yF++lKoiJEQadZVSmsbMk3Cnj2yrHvp2urXLs76E2Ojo6isNjTLx97lyqggBqToNgc329Y4NknGgRnc4xLaT9PTJ05KVQtZAOde0rXhp8G6xgGG/ge4VteasaOFz6eIzHY9JkhUI1MpiVof7hmoTCPVZV8N9/KXZsEqqCoUcYdJZZz55N5SBXSVvlZBU7BNumTZvE1F8cf7wAgB84vYDeqRbR6RRbSLWKZl1hbiHVwSjlqigMDU98Y6K+qa546cJ3DYZetZBq9PyL28UO/R+hKhgBhEFnGYXB+t4D8u6TS19oK1k7QDUOZaaDY3TJ/HsWLRIA8ANdMbH3iDPn5t1qEZ3OKy2kw4PFvXNhaiHVgKuXtpBqNbTOCoe0kFYgPySSnfrGRKI+Uby8aiHVBfO/eFbsuEWoCkYCYdBZRmHwHatmy9+cfZwAJrQqaDo4hrOCAPzEqQX0XrSITkcHsZRbSLO9GRnu7QpVC6meK1QafBut/0dC4RQGD1T80HILaaFQkOxQzpUW0ipWSey2rpsEkUAYrCHTF/SA0imipvS8IAD4iRNhUHnVIjqd8oJ3vbRKqNVCrRqGRbmFtH72glIojHPk5BgjPaXzgoZi1o2RsS2kwwMjkh3OSbWqHBqjE+p4kRoRhEFnpU0eTBiEKR0aY9oiet7ChQyOAeA7GgarVasW0ekcs2JgNESFxYgVcnP9R2TGklVUCcs0BI5U/z7W9tFm68pbFcJqW0h1aMxX7a2SSFvXZkFkxAVOMkp3hEGY0imipnS3IAD4TXnFhF1+aBGdjg5i0RbSmctPLu70i9WF4+y/to/2799tBZXqK1ihkLVXFZxMuYV0RmuzNLU0WlVYs8+TclWwu19M6VPPEUQKYdBZhEG4avNms5t1DI4B4Ge6YqIafmkRnY62kDbOWyoty9cWw2EYQmFxJUXmoETemFUSTtNQqO2jLfNmSPPsRqtyWNnLdlZJwARtojVEGIQJbRE1rQxyVhCAn1WzYsKvLaLTCVMLqbaM6rJ6rYBG1rA377+6hrri9UoL6XCuOHxmPP2l824RO1glEVFUBp2VNnkwYRAm7LSIfoQWUQA+1mKzMhiEFtHpjG0h1XAY1GrhUKbyCZqhk+2bdpWE015pIZ07cQvpHf9la2iMYpVERFEZrDENhK2trQJMx3SKqLaIUhkE4GfaJqrnBnMF8yEZQWkRnY62kGooVFol1HAVpNUUWuHUs4ORnC46bC91OUFDYXx0Cmlpif2IvJzJV7NKol0QSVQGnZc2eTDVQVTKdIooQRBAENg5NxjUFtHpaIVQzxXOWLK6+OOg0EAYOSPODo2phgbC5taZcutjc6pZJYGIojIIBIBpEFS0iAIIAtN9g2FoEZ2OtpDqpTsLhzMHJTvY6+tqoQ6TiRSHVkk4KX2oWa79jq2BPh3CKolIozLoPKNSnw4FAaZz1113GT2eFlEAQWFn36Bpi2jq1Jm+bBGdTrmF1O9TSCO3YkKHxvikKqgK8Tq59ge2bhbovZVLBJFGZdB59H3Ccdu2bTN6PEEQQFCYtonaahH9w+B/TRw7hXT4yMuS7T8ifhGp84IaAj0eGjOdLY8lZPNPu8SGTcLQmMgjDDrPKAzu2bNHgKlo9di0gnzewoUCAEGgA2QaEgkZzk1fXbLbInrWqeFZfaDto83Wpa2Zfmkh1QpmZAy/LH5SiDfJFbfaCqc6NIZVEiAMuqBbAAfZWSnxDiqDAAJEW0W7rIpfJaLSIjqdcguptmhqlbCWU0gTDU0SCTo0JtsvfrLpF/WSPmjrzCarJFBEGHSeUWWQaaKYjulKCW0RnVMfzH1VAKKp2CpaQRiMaovoVLRFs9xCqqFQW0i9nO6plcpYVCqDPhsas/tQo1z3LVvtoWnrukkAIQy6gTAIR23fvt3o8bSIAggabROdDi2i06ubMbt4vdJC2t9tVQ7z4qYgrcCoih+Hxnx/xE5VUD+V2gUYRRh0HmEQjuns7DQ+L8jwGABB01xX2csRWkQrU24hzWcXFauEbrWQalUwEmHQh0NjdJXE5gf2iw2bhFUSGIMw6DzCIByjYdDEHOsF1Wmzg7NLCwCUVgZ1kEyuUJj0MbSImtNQGG9pKAa2kd7DxcupFtJ4Xb00W4EzEnxZFRwSG/QTjKExOAZhEPAx0+ExVAUBBJUGwoHsxC+4aRGtXvlcYbmFVIOhXRoEZyxZHY2zgj6sCm7aZpX2fmrr/XezMDQG4xAGnZc2ejBL5zEF0/OChEEAQaVDZCYLg4oWUWeUW0gbWu21kBZXW1jPj8zQmEFbrZiuKSRa5Lrv2gqCukriZgHGIQzWGG2imIppmygtogCCaqqJorSIOs+0hVRDYGPr4uLbyNBVEnlbaxtcc/N/5O0OjblWqApiAoRB56VNHkwYxGTs7BekMgggqCabKEqLqPvGtpDmhwclN3w0lGtorGtqsSqBEVxZ5LdVEl3NcvNWW+us08LQGEyCMAj4lGmL6KmzZgkABNVUE0VpEfVGsVqo4W8GXSa+HBrzvSG7VcFLBJhEXOA0o1IfZwYxmccff9zo8e+gKgggwBLxiV+S0CIKz2kIHPZXVTDd1SKbH7A1yGaTdXUIMAnCoPPo+4Qj9uzZY/T445uaBACCSldLjG8V1ZLG9w4dEiO0iKJaPguChVidvO96w8+D0acKqyQwDcKgO6gOomoMjwEQNRoIx3u8z2wvHi2iqEp+yH+rJB5qkM5dg2KDBsG0AFMgDLqD6iCqokHQdLjQaS0tAgBBVpwoOsbjvb20iMJbgwfET4qrJL5la2iMrpK4SYBpEAZ9gImiGM/0Y0KHx8ypj+CkNwChMrYyqP1t95p+f6RFFNUorpLwz9AYdd0PRqpZJcELTEyLMOiOtMmDCYMYz3SS6ErOCwIIgYZxE0VpEYVnNAT6bpXETGn/VpfYkBZWSaBChEF3GKU700EhCD/Tc6Qrm5sFAIJubGWQFlF4KuuvqmBxlYRVFbTzVOs6R4AKEQbdYau5GygzHR7DjkEAYVBeL0GLKDzlw1USnc83y+af2vozbRKGxsAAYdAHaBPFeKYfE1QGAYRBw5hdg7SIwjN+XCXxRVvtofo/wioJGCEMuiNt8mDCIMYzrQweTxgEEALlyiAtovCMDo3x3SqJZjtDY9QtQlUQhgiDPkAYxFh2Ph4YIAMgDDQM0iIKT/ltaMyhRrnO3tAYXSXRLoAhwqA70iYPJgxiLKqCAKKqPECGFlF4wm+rJGJx+cbPpZpVEoAxwiAQcFQFAYTJbwcGaBGF+/y4SuJQs91VEluEVRKwiTDoDqNSn+kaAYSb6cfDnHF7uQAgqGgRhWd0aEx4VklcIYBNhEF30PcJ20z3TjJJFECYPNpjNsyDFlEY0xDos6ExWx5LsEoCNUEYdEfa6MFUBjGG6RlSKoMAwuLnXV2yd2io4sfTIgpbhl8WPykkZsgVt/aKDTo0hlUSqAphEPAZ0zDIABkAYaC9bnfs22f0HFpEYay4SqJf/GTTzxPVDI1JC1AFwqA7jF7NM00UY3FmEEBU/fywWZscLaIwFp5VEmlhaAwcQBh0B2EQnmmtrxcACDptEX1uYKDix9MiCmN+HBrz/RFWSaCmCIPuIRDCFj4WAEQNLaJwXXGVRLf4SbqrRTY/YGuQzSahKgiHEAbdQxiELZwZBBBFtIjCVVoVLOTFLwqxOrniNltBUO+dMDQGjiEM+gRhEAAQVbSIwlU+XCWx6Rdx2fLLI2LDzcLQGDiIMOietMmDCYMoM/1YaE0kBACCihZRuG7wRfGTQqJFrvt2n9igqyRuFsBBhEGfIAyizHjPIANkAAQcLaJwja6S8NHQGHXdD0ZYJQHfIAy6Z4/Jg7u7/XWoGQAAL9AiCtfoGUG/rZLomimb/tPWgvm0MDQGLiAMAgCAmqBFFK7S6aF+WyXxvQG7VcH3CeACwqB7jHr9TBeNAwAQBrSIwhUaAof9VRWscpVEpwAuIAy6h0OAAABMgRZRuMZnQVBXSbzv+kNiA6sk4CrCoHuoDAIAMAlaROGa3ID/Vkk81CCduwbFBg2CaQFcQhh0D5VBAACmQIsoXDH0kvhJcZXEt2wNCtRVEu0CuIgw6B6jMMhqCdgVm8ldcgDBQ4soXBG+VRKAqwiD7iEMwpZkMmnycEkfsnUGAQBqhhZRuEJDoA9XSbR/q0ts0IExrJKA6wiD7uHMIAAAk6BFFI7z4yoJqypo56nCKgl4hDDoHkp9AABMgBZROK5YFbR1Ls81nc83y+af2qpUbhKGxsAjhEGfoE0UZa2trUaPN3lBBQC1RosoXOG7VRIN8r4v2moP1aExrJKAZwiD7kmbPJgwiDLTMCgMkAEQMLSIwlE6NMZ3qyQa7QyNUd8QqoLwEGHQRwiEUKYDZPa8/LIAQFDQIgrH+W1ozKFGue5btquC7QJ4iDDorrTJgwmDsKN7xNbhdADwHC2icJwPh8bccm+eVRIIDMIg4DOmlcHurL/2KQHAVGgRhWN8ODQm/XKj3PRDWzf3twirJFADhEF3sV4CxkzPDO4ZHBQACAJaROEoHRoTnlUSVwhQA4RBd9H3CWNz5swxejxtogCCgBZROEpDoN+GxmwTVkkgcAiD7tpj9OA9Rg9HSBkPkKEyCCAgaBGFY4YOip8UEjPkuu/aWvXEKgnUFGEQ8BnTMMieQQBBQIsoHKOrJHL+uhG66eeJaobGpAWoEcKguzgzCGOmZwZ1gAytogD8jBZROCo8qyTSwtAY1Bhh0F2cGYQxDYPGgbCpSQDAz2gRhSP8ODTm+yN2q4IMjUHNEQbdZRQG2TOIMtNW0SeOHBEA8CtaROEIP66S6GqRzQ/YGmSzSUrrJICaIgy6izAIW9avX2/0+D0vvywA4Ee0iMIxWhUs5MUvCrE6+djXuu28eNNPC4bGwBcIgz5CGESZaZvoE729AgB+RYsoqubHVRK/iMtPO3vNvmGXaBBMC+ADhEF3pU0eTBhE2bp164we/0SPv75BAkAZLaJwxOCL4ieFRItc9+0+sUFXSWwSwCcIgz5CGESZaZso6yUA+BEtonCErpLw0dAYdd0PRlglgVCICapy+YZka6M0rZdsboPEYislVkhaf62vtAx0948kxYDp4BCEl+mqkZXNzQL4TZN1z7GxEJcl+QZZmW+Uxdbb1kKdZGJZ2RMflAPxkeKPD8SNX1QhILqz1vt4xOyFPC2iOIaeEyzkxE8y/XHJ9FX2Z7JeC8rQSF6eOzRQeOdrF5/zxXue7hDAJwiDNl21YW2qGADjsY3WT+30iwNAJC0pNMj+GOEPQGSlpVDoiCVGrv3iFpZMo7YIg4asEJiUXO42qwqYEgAAAMCuQmEToRC1lBBU7KrzT77M+qT9thUE1woAAABQjVhsvRQSF5x5Yuueh35/+GkBPEZlsALFc4G5hhutv602AQAAAJxVKIhc+6W7f3+tAB6iMliBs05a+Ih15+ZcAQAAAJwX00G6Z548Xx565tA2ATxCGJzGVe856TaCIAAAAFxGIITnaBOdwqfPP+ka6y+oXQAAAABvFGL5/DlfvGdHhwAuIwxOojg1NJ/fLQAAAIC3dg8dGX7DTR3pjAAuigsmpusjAAAAAO+tapjdcLkALqMyOIGrzlubknj+QQEAAABq47BVHVxNdRBuojI4kVj+MgEAAABqZy7VQbitTnCM0bOCG8RQfV1CTlg+XxbPbZF5s5sFAKKmd2BYuo4MyO/2HJQ+68d26dfT1yYXydxZzXw9BRAYw9mcDI/kil8Hnz+YkQNdvVKtmMjFwjBDuIg20XGufM+JbfFYzOi84OJ5LZJ6/RppqGdTBwAoDYSP/u4FMfUaKwS+ce1yAYCg27n3kGzfsa+qm2Oik0Xjw6u/uCWdFsAFtImOYwXBa0wev2Jxq7zrD04iCALAGK9ZWarsmXiTFQIJggDCYs1x80uvEeuqe42Yy9WnBHAJYXAMrQpab5KVPn5mcwMvXABgAtoqdbhnoOLH64umtVZVEADCpMV6rXjaiUulCrF4QdYJ4BLC4Cg9K2haFVx3wtLiJzkA4FhdPf1Gjz/thKpeLAGAb2mnhB4psi0hcwRwCWFwVCGf3yiGVUG9kw0AeLURqzJYKX2RxI01AGFW1WvGfOWvTwFThEEpVQVjIm0mz1nHXWwAmJRO1atUS3OjAECYaRicyU0v+BBhUKgKAgAAwF0UEuBHkQ+Do1XBdpPn8MkMAM4ZNmgpBYCgojoIP4p8GCxk8+0mj6cqCADTMxmlfuBwD4EQQCRQUIDfRDoMFquCcdlo8hw+iQFgenNnz6j4sRoEdTkzAIQd1UH4TaTDIFVBAHCHTgc1qQ4+fzAjABAFxoWFWGy9AC6JbBi0UxU889SVAgCozGqDm2cHunqtq0cAIOxsVAdbP33+SUavWYFKRTYMmlYFdQ/W4nmzBABQmZFs1ujxzx3sFgCIAsNOs1hM5BoBXBDJMMhZQQBwV+/AkOzc22X0nF17DzFIBkAkvGblIqNWekvyM+edkBLAYZEMg6ZVQb17Q1UQACqnbZ+mGCQDICoa6hOyNrnI5CmxQix2tQAOi1wYtFMVPI2qIAAYeWLHPrGDQTIAosK4OhiLpagOwmmRC4N2qoItjAAGgIppda93YFjsYJAMgKigOgg/iFQYvOq8tSmqggDgrmpbPRkkAyAqqA6i1qJVGYzljCYxURUEADM6OMbOecGxGCQDICqoDqLWIhMGtSqod1NMnkNVEADM2D0rOJYGQVpFAUQF1UHUUnQqg/H8bSYPpyoIAGZKIa66qmDZ7/YcFACIAqqDqKVIhMEr33Nim/UmafAUqoIAYEgngdodHDOehsrDR/oFAKKA6iBqJRJhMB6LcVYQAFzmRIvoWAySARAVVAdRK6EPg1QFAcB9+7t6HKsKlj295yCDZABEBtVB1ELow6BpVXCdFQSpCgKAmV1VrpOYCINkAEQJ1UHUQqjDoGlVcKYVAlcfN18AAJXTdRI793aJGxgkAyBKqA7Ca6EOg6ZVwRM4KwgAxpw+KzgWg2QARAnVQXgttGGQqiAAeMN0ncTcFrObbgySARAlVAfhpdCGQc4KAoD7du49ZDw4RsNgfSJW8eMZJAMgSqgOwkuhDIN2qoJrqAoCgLGdhoNjyl9rVyycWfFzGCQDIGqoDsIroQuDV21Ym7RTFQQAmOk60m/UIrp4Xkvx5ptaaRAGFYNkAEQJ1UF4JXRhsJDPbxSqggDguqcNA9rYr7V1ibjR2UEGyQCIGqqD8EKowqBWBWMibSbPoSoIAOZM10lMdONtzZJZYoJBMgCihOogvBCqMEhVEAC8YTpBdKIbbwySAYCpUR2E20ITBkergu0mz6EqCAD2mO4WXDxv4iogg2QAYHJUB+G20ITBQjbfbvJ4qoIAYI/pOgn9WjvZ6h4GyQDA1LQ6aITqIAyEIgwWq4Jx2WjyHKqCAGCP6TqJqV7IMEgGAKam1UHDAoZWBy8WoAKhCINUBQHAGzo4xnSdxNzZzVM+hkEyADC100yLGLFY22c2JJMCTCPwYdBOVfDMU1cKAMCc6VnBSm68MUgGAKbWYl7IiBVy9ZwdxLQCHwZNq4J6l3qyQQYAgMmVBrhUXhU06cJgkAwATI3qINwQ6DDIWUEA8M7zBzNGg2OWGNx4Y5AMAEyN6iDcEOgwaFoV1E8gqoIAYI9pi6jJXWwGyQDA9KgOwmmBDYN2qoKnURUEAFv2d/U4tk5i0ucwSAYApkR1EE4LbBi0UxU0fWECACjZZbhOYs1x88QUg2QAYHrGX1+t6uDlqWSrABMIZBi86ry1KaqCAOANXSexc29XxY/XwTF2W/IZJAMAU9OvrzoQ0UCsYXbD5QJMIJiVwVjuGpOHUxUEAPtMzwpWM6iLQTIAMD3Tr7MxkUupDmIigQuDWhW0yt0pk+dQFQQA+0zXSaxYZP/1BoNkAGB6NqqDc6kOYiLBqwzG87eZPJyqIADYt3PvIeN1Eg31CakGg2QAYHpUB+GEQIXBK99zYpv1JmnwFKqCAFCFnYaDY5z4mssgGQCYHtVBOCFQYTAei3FWEAA80nWk36hFVF+UOPU1l0EyADA9qoOoVmDCIFVBAPDW04bDWQx3X02JQTIAMD071cF6qoMYIzBh0LQqqHdKqAoCgD121kk4GQYZJAMAlTGtDlov/i+jOoiyQIRB06qgvihZ7eCLEgCIGpP2ULXOhU4MBskAwPRsVAdbOTuIskCEQdOq4AmcFQSAqpjuFrS7ZH4qDJIBgMpwdhB2+T4MUhUEAG+ZrpNwc1gXg2QAYHpMFoVdvg+DnBUEAG+ZrpN4zcpF4hYGyQBAZagOwg5fh0E7VcE1VAUBwDYdHGO6TmLu7GZxi51BMrSKAogiqoOww7dh8KoNa5N2qoIAAPtMzwp6cQPOdJAM1UEAUUV1EKZ8GwYL+fxGoSoIAJ4pnbmrvCro1dddO4NkACCKqA7ClC/DoFYFrW/7bSbPoSoIANV5/mDGaHDMEhcmiE6GQTIAUBmqgzDhyzBIVRAAvGfaInqahzfhTAfJbDf8fwGAsKA6CBO+C4OjVcF2k+dQFQSA6uy3Kml+WScxEQbJAEDlqA6iUr4Lg4Vsvt3k8VQFAaB6uwzXSaw5bp54jUEyAFAZqoOolK/CYLEqGJeNJs+hKggA1dF1Ejv3dhk9Z2Zzo3iNQTIAUDmqg6iEr8IgVUEA8N4TATpfxyAZAKgM1UFUwjdh0E5V8MxTVwoAoDom6ySaGxJG1TmnMUgGACpHdRDT8U0YNK0K6p2OxR6ONQeAMNq595DR4Bht1Uwkavetg0EyAFA5fa0802zYF9XBiPFFGOSsIADUxk7DwTGrl9T+JhyDZACgcnaqg4LI8EUYNK0K6jlBqoIAUJ2uI/1GLaJakdM20VpjkAwAVE5fNxtWB1s/ff5JRkUaBFfNw6CdquBpVAUBoGqmIWnZvBniFwySAYDKGVYHY9bttmsEkVDzMGinKujlomMACCPTdRJaEVw2r1n8gkEyAFA5G9XBJNXBaKhpGLzqvLUpqoIA4D2T9lDlh7OCYzFIBgDMUB3ERGpbGYzljD7IqAoCgDNMdwuaBC+vMEgGACpHdRATqVkY1Kqgdc8hZfIcqoIAUD3TdRLaHuqHwTHjMUgGAMy8ZuUik4dTHYyA2lUG4/nbTB5OVRAAnGG6TmKF4fk8LzFIBgAqp6+nG+qMbu5RHQy5moTBK99zYpv1JmnwFKqCAOAAHRxjuk5idnO9+BWDZACgcg31CVmbNKwOFgqEwRCrSRiMx2KcFQSAGjA9K+indRITYZAMAJjRVlGj6mAslvrMeSekBKHkeRikKggAtVFqk6y8Kui3dRKTYZAMAFTOTnWwEItdLQglz8OgaVVQx+BSFQSA6j1/MGM0OMaPE0QnwiAZADBDdRBlnoZB06qgjr9dfdx8AQBUz7RF1G+7BafCIBkAqBzVQZR5GgZNq4IncFYQAByx3wo/YVgnMRkGyQCAGaqDUJ6FQaqCAFA7uwzXSfh9cMx4DJIBADNUB6E8C4OcFQSA2tB1Ejv3dlX8eK0IBuW84FgMkgEAM1QH4UkYtFMVXENVEAAcEeazgmMxSAYAzFAdhOth8KoNa5N2qoIAAGeYrpNYOKdRgopBMgBghupgtLkeBgv5/EahKggANbFz7yHjdRL1Cc+3DjmGQTIAYIbqYLS5+h1fq4IxkTaT51AVBADn7DQcHBPUFtEyBskAgDmqg9Hl7u3ffO4yoSoIADXRdaTfqEVUQ1SQ1klMhkEyAGCG6mB0uRYGtSpofZxcbvIcqoIA4BzTASlBWycxGQbJAIA5qoPR5FoYLGTz7SaPpyoIAM6xs05CF82HBYNkAMAM1cFociUMFs8KxmWjyXOoCgKAc0zaQ1XQzwqOxyAZADBHdTB6XAmDVAUBoLZMdwsGccn8VBgkAwDmqA5Gj+Nh0E5V8MxTVwoAwBmm6yS0PTQMg2PGY5AMAJijOhgtjodB06rg4nkt1hWu9iQAqCXTdRIrDFsqg4JBMgBgjupgtDgaBjkrCAC1pYNjTNdJzG6ul7BikAwAmKM6GB2OhkHTqqCeE6QqCADOMT0rGJZ1EpNhkAwAmKM6GB2OhUE7VcHTqAoCgGNKla3Kq4JhWycxEQbJAIA9Wh00QnUwkJyrDBbyN5o8XKuCLc3hml4HALX0/MGM0eCYsE0QnQyDZADAnFYHDaf9Ux0MIEfC4FXnrU1JQTaYPIeqIAA4y7RFNGy7BSfDIBkAsMf49bpWBzckk4LAcKYyGMtdY/JwqoIA4Kz9XT2sk5gCg2QAwFyL+S7wWCFXT3UwQKoOg5/ecNIGvQtg8hyqggDgrF2G6yTCPjhmPNP/XwbJAECJjepgG9XB4Kg6DMbywllBAKghXSexc29XxY/XimBUzguWmf4/M0gGAEqoDoZbVWHwyvec2Ga9SRo8haogADiMs4KVMV0zwSAZACihOhheVYXBeCzGWUEAqDHTdRIL5zRKFDFIBgDsoToYXrbDoGlVsL4uQVUQABy2c+8h43US9QnntgoFie4cZJAMANiz1nzvINXBALD9isC0Kvja5CKqggDgsJ2Gg2Oi2iJatmhOk9HjGSQDACXzZjfL4nktJk+JFbL1lwl8zVYYNK0KzrRC4Gqz0jIAYBpdR/qNWkS1KhildRITmdVczyAZALBpnWmXXzy28fJUslXgW7bCoGlV8ATOCgKA40zPtEVtncRkGCQDAPYsnjfLtDo4t2F2w+UC3zIOg3aqgsY9xgCAKdlZJ6GL5sEgGQCohml10PpqeynVQf8yDoOmVUH9gGmoj3ZbEgA4zaQ9VEX9rOBYDJIBAPuoDoaLURi86vyT9RBostLHzzQfQwsAqIDpbsGoLZmfDoNkAMA+qoPhUXEYvGrD2qRIwSjVr2OVBAA4znSdhLaHRn1wzHgMkgEA+6gOhkfFYbCQz28UqoIAUHOm6yRWGA5MiQoGyQCAfVQHw6GiMKhVQesd2CYGqAoCgPN0cIzpOonZVhUMr8YgGQCwj+pgOFRWGcznOCsIAD5gelaQdRKTY5AMAFSH6mDwTRsGS2cFY5wVBIAaK4WRyquCrJOYHoNkAMA+qoPBN20YLGTz7WKAqiAAuOP5gxmjwTFMEJ0eg2QAoDpUB4NtyjBYPCsYl41igKogALjDtEWU3YKVYZAMANhHdTDYpgyDplXBubOaqQoCgAv2d/WwTsIlDJIBgOpQHQyuScOgnargm16zXAAAzttluE6CwTGVY5AMAFSH6mBwTRoGTauC+gGgHwgAAGfpOomde7sqfrxWBDkvaIZBMgBQHaqDwTRhGLRVFVxLVRAA3MBZQfcxSAYAqkN1MJgmDIOmVUE9Jzh3Ni1JAOAG03USC+c0CswxSAYAqkN1MHheFQbtVAVPY4IoALhi595Dxusk6hPTbg3CBBgkAwDVoToYPK9+xZDL3SYGtCrY0szZFABww07DwTG0iNrHIBkAqB7VwWA5Jgxedd7alMRiKTFAVRAA3NF1pN+oRVQrW6yTqA6DZACgOlQHg+XYymAsd40YoCoIAO4xbUNknUT1GCQDANWjOhgcr4TBK99zYhtVQQDwBzvrJHTRPKrHIBkAqA7VweB4JQzGYnKZGKAqCADuMWkPVZwVdA6DZACgepoVTGh1UOC5YhjUs4Ixia03eSJVQQBwj+luQZbMO4dBMgBQPQ2DM80KR62fOe+ElMBTxTBYkHybyZOoCgKAe0zXSWh7KINjnMUgGQConuHZwVghFrta4KliGIzF5axKn1Bfl6AqCAAuMl0nscLwjBumxyAZAKiecXUwZtapiOrFdcm89TZZ6RNem1xEVRAAXKKDY0zXScy2ggucxyAZAKieYXWw9coNJxIIPRQvZEeM/sJXGx4GBQBUzvSsIOsk3MMgGQConlYHG+oMjjLkhDDoobjE6pKVPlhHxFIVBAB3lAaRVF4VZJ2EuxgkAwDOWL644hWCMUtS4Jl4IVao+L2jO0MAAO54/mDGaHAME0TdxyAZAKieSTEpli/MEXgmLgAAXzBtEWW3oPsYJAMACLN4rBDLVPrgPoM71gCAyu3v6mGdhE8xSAYAqtM3MFTxYwvxWLfAM/GC5CsOg9rCBABw3i7DdRIMjvEOg2QAoDoG5+ELlrTAM3FJSGelD9bWF9P9VwCAqek6iZ17uyp+vFYEOS/oHTuDZPheCQAl+vXQpPMlQRj0VPzvtzyrYbDikt+jT79QfOECAHDG/b961ujxnBX03ryWRqPH870SAEo3Ow3Pw2e+eM+ODoFnSgNkCtJR6RP0jqe+cOGbHABUZ3gkKz/51e+N7phqVXDhHLNgguppJdakGsv3SgBRp2fhS18HjWaObBN4qq74z0L+ZonFN1T6JH2n3rXtt7LmuHmyduUimTebsysAUCkNgb/b85I8nT4ow1mzyZOl82sMgq4FPad5uLfyFzVjv1fq0uW5s5qlob5OACCs9PtbV89A8Ry8yfGHUQXru9sWgadeORF/1fknHbbeVLxzcKyGuoTU1zPVDgAqUc1k5re9dlHNp4j+/L8Pyrvf+hqjvVFluoevt7dH1gSw1TWby8svrP/3kVxBAACO23393b9fLfDUK7co8yI3W2n8GrFB72yb3t0GAJhhnURtlQfJ7Npf8VQ8AEBltCp4rcBzr/Qa/f3dv2+33qQFAOBLDI6pPa1oEsgBwHHpL9z9+80Czx178CSf/6gAAHyHEOIfpxxv60QFAGBihVh8+BxBTRwTBq+/Z0dHoZD/lAAAfEPbQ1cvaRH4gw7xOfm42QIAqFqhUIhd8cUt6bSgJl41ku5LP9xxk9CzCwC+MKu5Xk4iePjO8QtnBnIIDgD4SUzkui/98JmbBDUz4Xzy60vnBwmEAFBDWoE6/YR5rJLwKa3WEggBwB4rCF77xVLmQA1N+gpDAyEtowBQG1p5euMJ8wmCPqeBUM8Qcp4TACp2uJDPvZcg6A9TvsootozG46us6M4CSADwgIYKDYGcSQsOPdN5uvU+07cAgCnECpti8eE3fOmenWQLn6ib7gHXb3k6bb1576fPW7MhFotfJrFYSgAAjtKW0GXzZhAoAkpDvFYIdf3Hrv098mLXgAAAijJWCNwSyxU2f/GeHR0CX4mJoas2rE1KvnCB9U5NSUFS1i8xYxsADNUnYtLSXC/zWhqLQVCvoPj5fx+Ud7/1Ndaf3/zPvH3HPunt7Qn9WbuRXF4yvcPSZV09AyPSa10juYIAQASkC1LIWCFjm5UVOocSI1tu2pLOCHzJOAxO5KoNyaSERb5hd6UPfftrFwkAmEpYQTDIZwEJgwBQna7eIXlsR1dlDy4UHrz+h8+yhw+umLZNtBLXh2g3yFXnn1TxY5sYGAAAAAAgoBhTBwAAAAARRBgEAAAAgAgiDAIAAABABBEGAQAAACCCCIMAAAAAEEGEQQAAAACIIMIgAAAAAEQQYRAAAAAAIogwCAAAAAARRBgEAAAAgAgiDAIAAABABBEGAQAAACCCCIMAAAAAEEGEQQAAAACIIMIgAAAAAEQQYRAAAAAAIogwCAAAAAARRBgEAAAAgAgiDAIAAABABBEGAQAAACCCCIMAAAAAEEGEQQAAAACIIMIgAAAAAEQQYRAAAAAAIogwCAAAAAARRBgEAAAAgAgiDAIAAABABBEGAQAAACCCCIMAAAAAEEGEQQAAAACIIMIgAAAAAEQQYRAAAAAAIogwCAAAAAARRBgEAAAAgAgiDAIAAABABBEGAQAAACCCCIMAAAAAEEGEQQAAAACIIMIgAAAAAEQQYRAAAAAAIogwCAAAAAARRBgEAAAAgAgiDAIAAABABBEGAQAAACCCCIMAAAAAEEGEQQAAAACIIMIgAAAAAEQQYRAAAAAAIogwCAAAAAARRBgEAAAAgAgiDAIAAABABBEGAQAAACCCCIMAAAAAEEGEQQAAAACIIMIgAAAAAEQQYRAAAAAAIogwCAAAAAARRBgEAAAAgAgiDAIAAABABBEGAQAAACCCCIMAAAAAEEGEQQAAAACIIMIgAAAAAEQQYRAAAAAAIogwCAAAAAARRBgEAAAAgAgiDAIAAABABBEGAQAAACCCCIMAAAAAEEGEQQAAAACIIMIgAAAAAEQQYRAAAAAAIogwCMBJGQEAAEAgEAYBOKlVAAAAEAiEQQAAAACIIMIgAAAAAEQQYRAAAAAAIogwCAAAAAARRBhEUDG1EgAAAKgCYRBBxdRKAAAAoAqEQQAAAACIIMIgAAAAAEQQYRAAAAAAIogwCAAAAAARRBgEAAAAgAgiDAIAAABABBEGAQAAACCCCIMAAAAAEEGEQQAAAACIIMIgAAAAAEQQYRAAAAAAIogwCAAAAAARRBgEAAAAgAgiDAIAAABABBEGAQAAACCCCIMAAAAAEEGEQQAAAACIIMIgAAAAAEQQYRAAAAAAIogwCAAAAAARRBgEAAAAgAgiDAIAAABABBEGAQAAACCCCIMAAAAAEEGEQQAAAACIIMIgAAAAAEQQYRAAAAAAIogwCAAAAAARRBgEAAAAgAgiDAIAAABABBEGAQAAACCCCIMAAAAAEEGEQQAAAACIIMIgAAAAAEQQYRAAAAAAIogwCAAAAAARRBgEAAAAgAgiDAIAAABABBEGAQAAACCCCIMAAAAAEEGEQQAAAACIIMIgAAAAAEQQYRAAAAAAIogwCAAAAAARRBgEAAAAgAgiDAIAAABABBEGAQAAACCCCIMAAAAAEEGEQQAAAACIIMIgAAAAAEQQYRAAAAAAIogwCAAAAAARRBgEAAAAgAgiDAIAAABABBEGAQAAACCCCIMAAAAAEEGEQQAAAACIIMIgAAAAAEQQYRAAAAAAIogwCAAAAAARRBgEAAAAgAgiDAIAAABABBEGAQAAACCCCIMAAAAAEEGEQQAAAACIIMIgAAAAAEQQYRAAAAAAIogwCAAAAAARRBgEAAAAgAgiDAIAAABABBEGAQAAACCCCIMAAAAAEEGEQQAAAACIIMIgAAAAAEQQYRAAAAAAIogwCAAAAAARRBgEAAAAgAgiDAIAAABABBEGAQAAACCCCIMAAAAAEEGEQQAAAACIIMIgAAAAAEQQYRAAAAAAIogwCAAAAAARRBgEAAAAgAgiDAIAAABABBEGAQAAACCCCIMAAAAAEEGEQQAAAACIIMIgAAAAAEQQYRAAAAAAIogwCAAAAAARRBgEAAAAgAgiDAIAAABABBEGAQAAACCCCIMAAAAAEEGEQQAAAACIIMIgAAAAAEQQYRAA8P+3dz+7UZVhAIffb0YQolFiQmJMTBojxp1cAroW7SUoN6Cuyk7DxuJG7kC5AivpnhLXRlhoDH9kxESJRIWAKe105vNMNyZtWua0nQH6Pk8ymab5Znlmzu+835wBABISgwAAAAmJQQAAgITEIAAAQEJiEAAAICExCAAAkJAYBAAASEgMAgAAJCQGAQAAEhKDAAAACYlBAACAhMQgAABAQmIQAAAgITEIAACQkBgEAABISAwCAAAkJAYBAAASEoMAAAAJiUEAAICExCAAAEBCYhAAACAhMQgAAJCQGAQAAEhIDAIAACQkBgEAABISgwAAAAmJQQAAgITEIAAAQEJiEAAAICExCAAAkJAYBAAASEgMAgAAJCQGAQAAEhKDAAAACYlBAACAhMQgAABAQmIQAAAgITEIAACQkBgEAABISAwCAAAkJAYBAAASEoMAAAAJiUEAAICExCAAAEBCYhAAACAhMQgAAJCQGAQAAEhIDAIAACQkBgEAABISgwAAAAmJQQAAgITEIAAAQEJiEAAAICExCAAAkJAYBAAASEgMAgAAJCQGAQAAEhKDAAAACYlBAACAhMQgAABAQmIQAAAgITEIAACQkBgEAABISAwCAAAkJAYBAAASEoMAAAAJiUEAAICExCAAAEBCYhAAACAhMQgAAJCQGAQAAEhIDAIAACQkBgEAABISgwAAAAmJQQAAgITEIAAAQEJiEAAAICExCAAAkJAYBAAASEgMAgAAJCQGAQAAEhKDAAAACYlBAACAhMTgLvQHwwAAAHgaicHNeuMuXF4dBAAAtPFgeS3gSSAGN6hR74679s69hwEAAG3cX+6Pv7jGlYAJEYOblLEPuD/+XrZVFKCltUENgKxGO8t+b84hx1Rr6fwaMCFicKNaLo+7dHQw/3L7QQAwvtFJkG32QFZXbv7Tan2nDsY+N4W2xOAGpVsW2qy/deffuHH7fgAwnrXBML6//pcgBFIZ7SYbhWCrLaIRvfnF60sBE1KCTeZOHrsYpZxo85rDB7vx2svPx9EXD8WBrsYG9q/vfvozut1u7ES/P4jVtf8j8JWXDserR5+LFw4fCID9aBSBo+HBb82j33abfKlfnf322qmACXkm2KQp5PPNoXqizWtGV7h/vHWv+eteHDq4s5MkgKfBw/WJ3t5M9UZbRkePA93SBKYLacD+83DnuyBqKf0zARNkMriFuffeuNk8zQQAAEybqSBT4DLsFupw8EkAAMD0mQoyFWJwC18s3lho5qatbiYDAAC7VSLOzC/0egETJga3sVJWP2yeegEAANNQ4pv5C1c/C5gCMbiNcwu9u9HpvB2CEACAias/NMMI3xNkasTgI5xd+LknCAEAmKhaL650+u+sDyNgStxNdExzs2/ORB1+GTVmAwAA9sqwnju7eM3NC5k6MdjS6ZPHPqilfBp+dgIAgN25WYbDU/OL15cCHgMxuAOjKWEd1NlS6kchCgEAaKPWpU4pX39+4er5gMdIDO7S3Luvn4hOmY0ab0Upx5t/HQkANupFqUsxjEvDblzuDOJ48975fq11psT6eyfAfna3CcDLpZRLMRwumQTypBCDe+zj2ZkjzwpCgHWjD5lH/VbW6dmZ5nqaXRbA/rTShKCbwgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACwrf8AtfK2g8GS4AwAAAAASUVORK5CYII="}ngOnInit(){this.uploadUrl.set(`${this.environment.getApiUrl()}/attachments`),this.imgSrc()&&this.imageUrls.set([this.imgSrc()]),this.resetHighlight()}ngOnChanges(e){e.imgSrc&&this.imageError.set(!1),this.resetHighlight()}resetHighlight(){null!=this.imageUrls()&&this.imageUrls().length>0?(this.highlightExistingImage(this.imageUrls()[0]),this.highlightVisible.set(!0)):this.highlightVisible.set(!1)}handleImageError(e){this.imageError.set(!0);const i=e.target;i&&console.error(`Failed image URL: ${i.src}`)}onBasicUploadAuto(e){let i=e.originalEvent.body.resizedImages.value,o=i[i.length-1].fileUri;this.singleImageMode()?this.imageUrls.set([o]):this.imageUrls.update(s=>[...s,o]),this.imageError.set(!1),this.onImagesChanged.emit(this.imageUrls()),this.highlightUrl.set(o),this.highlightVisible.set(!0)}highlightExistingImage(e){this.highlightUrl.set(e)}removeHighlightImage(){this.imageUrls.update(e=>{const i=e.indexOf(this.highlightUrl());return i>-1&&e.splice(i,1),e}),0==this.imageUrls().length?(this.highlightUrl.set(null),this.highlightVisible.set(!1)):this.highlightUrl.set(this.imageUrls()[0]),this.onImagesChanged.emit(this.imageUrls())}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-item-image"]],inputs:{imageUrls:[1,"imageUrls"],imgSrc:[1,"imgSrc"],showStockOverlay:[1,"showStockOverlay"],allowUpload:[1,"allowUpload"],allowGallery:[1,"allowGallery"],placeholderImageUrl:[1,"placeholderImageUrl"]},outputs:{imageUrls:"imageUrlsChange",onImagesChanged:"onImagesChanged"},features:[n.OA$],decls:9,vars:6,consts:[[1,"tw-grid","tw-grid-cols-4","tw-gap-2",3,"ngClass"],[1,"tw-col-span-1"],[1,"tw-col-span-3"],[1,"bg-white","tw-mb-2","tw-aspect-square","tw-content-center","tw-rounded-md","tw-p-2"],["aria-label","Remove Image",1,"pi","pi-trash","hover:tw-cursor-pointer","hover:tw-text-red-600"],[1,"tw-relative"],["mode","basic","name","demo[]","chooseLabel","Add Image","chooseIcon","pi pi-upload","accept","image/*",3,"url","auto"],[3,"isVisible","imageUrls"],[1,"tw-border-1","bg-white","tw-mb-2","tw-rounded-md","tw-border-solid","tw-border-gray-200","tw-p-2","tw-transition-colors","hover:tw-cursor-pointer","hover:tw-border-fa-orange-500"],["alt","Card image",1,"tw-w-full","tw-max-w-full",3,"error","click","src","hidden"],["aria-label","Remove Image",1,"pi","pi-trash","hover:tw-cursor-pointer","hover:tw-text-red-600",3,"click"],["alt","Product image",1,"tw-h-full","tw-w-full","tw-max-w-full","tw-object-contain","tw-object-center",3,"src"],[1,"tw-absolute","tw-left-0","tw-top-0","tw-h-full","tw-w-full","tw-content-end","tw-bg-white","tw-bg-opacity-40","tw-text-center","tw-text-xs"],["type","button","title","View Image",1,"btn-reset"],["type","button","title","View Image",1,"btn-reset",3,"click"],[1,"tw-w-full","tw-object-contain",3,"hidden","src"],[1,"tw-h-full","tw-w-full","tw-max-w-full","tw-object-contain","tw-object-center"],[1,"tw-absolute","tw-inset-0","tw-bg-white","tw-opacity-60"],["mode","basic","name","demo[]","chooseLabel","Add Image","chooseIcon","pi pi-upload","accept","image/*",3,"onUpload","url","auto"],[3,"isVisibleChange","isVisible","imageUrls"]],template:function(i,o){1&i&&(n.j41(0,"div",0),n.DNE(1,$bt,3,0,"div",1),n.j41(2,"div",2)(3,"div",3),n.DNE(4,Ybt,1,0,"i",4)(5,Kbt,2,1)(6,Zbt,3,1,"div",5),n.k0s(),n.DNE(7,eCt,1,2,"p-fileupload",6),n.k0s()(),n.DNE(8,tCt,1,2,"app-item-image-gallery",7)),2&i&&(n.Y8G("ngClass",o.singleImageMode()?"!tw-grid-cols-3":""),n.R7$(),n.vxM(o.singleImageMode()?-1:1),n.R7$(3),n.vxM(o.highlightVisible()&&o.allowUpload()?4:-1),n.R7$(),n.vxM(o.highlightVisible()?5:6),n.R7$(2),n.vxM(o.allowUpload()?7:-1),n.R7$(),n.vxM(o.allowGallery()?8:-1))},dependencies:[jte,oY,gn,bi,vg,Spe,xpe],encapsulation:2})}}return t})();const nCt=(t,r)=>r.id;function iCt(t,r){if(1&t&&(n.j41(0,"span",3),n.EFF(1),n.k0s()),2&t){const e=n.XpG().$implicit;n.R7$(),n.JRh(e.text)}}function rCt(t,r){if(1&t&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&t){const e=n.XpG().$implicit;n.R7$(),n.JRh(e.text)}}function oCt(t,r){1&t&&n.DNE(0,iCt,2,1,"span",3)(1,rCt,2,1,"span"),2&t&&n.vxM(r.$implicit.highlight?0:1)}function sCt(t,r){if(1&t&&(n.j41(0,"li",1)(1,"span",2),n.EFF(2),n.k0s(),n.Z7z(3,oCt,2,1,null,null,n.Vm6),n.k0s()),2&t){const e=r.$implicit,i=n.XpG();n.R7$(2),n.SpI(" ",e.alias,": "),n.R7$(),n.Dyx(i.highlightValue(e.value,e.indices))}}let aCt=(()=>{class t{constructor(){this.matches=n.hFB.required(),this.results=(0,n.vPA)([])}ngOnInit(){let e=[];this.matches()&&this.matches().length&&this.matches().forEach(i=>{i&&i.key&&e.push({id:crypto.randomUUID(),alias:this.getKeyAlias(i.key),value:i.value,indices:i.indices??[]})}),e.length&&this.results.set([...e])}getKeyAlias(e){switch(e){case"itemDescription":return"Summary";case"itemName":return"Name";case"locationEntity.name":return"Location Name";case"locationEntity.addressLine1":return"Location Address";case"locationEntity.city":return"Location City";case"locationEntity.postalCode":return"Location Postal Code";case"palletLevelBrandLabel":return"Brand";case"sourceEntity.name":return"Source Name";case"sourceEntity.addressLine1":return"Source Address";case"sourceEntity.city":return"Source City";case"sourceEntity.postalCode":return"Source Postal Code";case"taxonomyEntry.displayName":return"Category / Type";case"containsItemTypes":return"Contents";case"offerCode":return"Offer Code";default:return e}}highlightValue(e,i){if(!i||0===i.length)return[{text:e,highlight:!1}];let o=[],s=0;return i.forEach(([a,l])=>{s<a&&o.push({text:e.slice(s,a),highlight:!1}),o.push({text:e.slice(a,l+1),highlight:!0}),s=l+1}),s<e.length&&o.push({text:e.slice(s),highlight:!1}),o}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-search-results"]],inputs:{matches:[1,"matches"]},decls:3,vars:0,consts:[[1,"tw-m-0","tw-max-w-[300px]","tw-list-none","tw-p-0"],[1,"tw-mb-2"],[1,"tw-font-semibold"],[1,"tw-bg-yellow-200","tw-font-bold"]],template:function(i,o){1&i&&(n.j41(0,"ul",0),n.Z7z(1,sCt,5,1,"li",1,nCt),n.k0s()),2&i&&(n.R7$(),n.Dyx(o.results()))},dependencies:[gn],encapsulation:2,changeDetection:0})}}return t})();function lCt(t,r){1&t&&(n.j41(0,"div",3),n.nrm(1,"icon-grocery",18),n.k0s())}function cCt(t,r){if(1&t&&(n.j41(0,"div",4)(1,"div",19),n.nrm(2,"icon-produce",20),n.k0s(),n.j41(3,"div",21),n.EFF(4),n.k0s()()),2&t){const e=n.XpG();n.R7$(4),n.SpI(" ",e.designationCodes().length>1?"Mixed":e.designationCodes().includes("PURCHASE")?"Purchased":"Donated"," ")}}function uCt(t,r){1&t&&(n.j41(0,"div",22),n.nrm(1,"i",24),n.k0s())}function dCt(t,r){1&t&&(n.j41(0,"div",23),n.nrm(1,"i",25),n.k0s())}function pCt(t,r){if(1&t&&(n.j41(0,"div",5),n.DNE(1,uCt,2,0,"div",22)(2,dCt,2,0,"div",23),n.k0s()),2&t){let e,i;const o=n.XpG();n.R7$(),n.vxM("WHEN_COMBINABLE"==o.showCombinability()&&(null!==(e=null==(e=o.entryList()[0].combinableCartOrderIds)?null:e.length)&&void 0!==e?e:0)>0?1:-1),n.R7$(),n.vxM("ALWAYS"==o.showCombinability()&&0===(null!==(i=null==(i=o.entryList()[0].combinableCartOrderIds)?null:i.length)&&void 0!==i?i:0)?2:-1)}}function hCt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",6)(1,"button",26),n.bIt("click",function(o){n.eBV(e),n.XpG();const s=n.sdS(22);return n.Njj(s.toggle(o))}),n.nrm(2,"i",27),n.k0s()()}}function fCt(t,r){if(1&t&&(n.j41(0,"div",11)(1,"span",28),n.EFF(2),n.k0s()()),2&t){const e=n.XpG();n.R7$(),n.Y8G("title",e.taxonomySummary()),n.R7$(),n.SpI(" ",e.taxonomySummary()," ")}}function mCt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",12)(1,"a",29),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onNavigateSupplier())}),n.EFF(2),n.k0s()()}if(2&t){let e,i;const o=n.XpG();n.R7$(),n.FS9("title",null==(e=o.availableFrom())?null:e.name),n.R7$(),n.JRh(null==(i=o.availableFrom())?null:i.name)}}function gCt(t,r){if(1&t&&(n.j41(0,"span",30),n.EFF(1),n.k0s(),n.j41(2,"div",31)(3,"strong",32),n.EFF(4),n.nI1(5,"currency"),n.k0s(),n.j41(6,"span",33),n.EFF(7,"(per lb)"),n.k0s()()),2&t){const e=n.XpG();n.R7$(),n.JRh(1===e.entryList().length?"Available at":"Starting as low as"),n.R7$(3),n.JRh(n.bMT(5,2,e.minCostPerPound()))}}function vCt(t,r){if(1&t&&(n.j41(0,"span",15)(1,"strong",34),n.EFF(2),n.nI1(3,"formatPrice"),n.k0s(),n.j41(4,"span",35),n.EFF(5," (per case) "),n.k0s(),n.EFF(6," / "),n.j41(7,"strong",36),n.EFF(8),n.nI1(9,"formatPrice"),n.k0s(),n.j41(10,"span",37),n.EFF(11," (per unit) "),n.k0s()()),2&t){const e=n.XpG();n.R7$(2),n.SpI(" ",n.bMT(3,2,e.minCaseCost())," "),n.R7$(6),n.SpI(" ",n.bMT(9,4,e.minUnitCost())," ")}}function _Ct(t,r){if(1&t&&(n.j41(0,"span",16),n.EFF(1),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.SpI(" ",e.sharingStage()," ")}}function yCt(t,r){if(1&t&&(n.j41(0,"span",38),n.EFF(1),n.k0s()),2&t){let e;const i=n.XpG(2);n.R7$(),n.SpI("",null==(e=i.entryList()[0].deliveryEstimate)?null:e.estimatedDistanceInMiles," mi. ")}}function bCt(t,r){if(1&t){const e=n.RV6();n.j41(0,"app-secondary-button",40),n.bIt("click",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.onAddToCartClicked())}),n.k0s()}if(2&t){const e=n.XpG(2);n.Y8G("buttonStyle",e.ButtonStyle.OutlinedGreen)("text",e.singleEntryInCart()?"In Cart":"Add to cart")("disabled",e.singleEntryInCart()||e.entityService.isFANO()||!e.entityService.deliveryLocationEntity())}}function CCt(t,r){if(1&t&&(n.j41(0,"div",13),n.DNE(1,yCt,2,1,"span",38)(2,bCt,1,3,"app-secondary-button",39),n.k0s()),2&t){let e;const i=n.XpG();n.R7$(),n.vxM(null!=(e=i.entryList()[0].deliveryEstimate)&&e.estimatedDistanceInMiles?1:-1),n.R7$(),n.vxM(i.userCanOrder()?2:-1)}}function wCt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",13)(1,"app-secondary-button",41),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onNavigateItem())}),n.k0s()()}if(2&t){const e=n.XpG();n.R7$(),n.Y8G("buttonStyle",e.ButtonStyle.OutlinedGreen)}}function TCt(t,r){if(1&t&&n.nrm(0,"app-search-results",17),2&t){const e=n.XpG();n.Y8G("matches",e.matches())}}let SCt=(()=>{class t{constructor(){this.entityService=(0,n.WQX)(jh),this.marketplaceService=(0,n.WQX)(Yu),this.legacyNavigationService=(0,n.WQX)(wc),this.authService=(0,n.WQX)(dP),this.cartService=(0,n.WQX)(l0),this.parentTaxonomy=(0,n.hFB)(),this.entryData=(0,n.hFB)(null),this.entryList=(0,n.vPA)([]),this.dataMode=(0,n.hFB)(null),this.showCombinability=(0,n.hFB)("NEVER"),this.targetCartOrderId=(0,n.hFB)(""),this.displayMode=(0,n.vPA)("ENTRY"),this.designationCodes=(0,n.vPA)([]),this.programCodes=(0,n.vPA)([]),this.displayTitle=(0,n.vPA)(""),this.imgSrc=(0,n.vPA)(""),this.varietyCount=(0,n.vPA)(0),this.supplierCount=(0,n.vPA)(0),this.minCaseCost=(0,n.vPA)(0),this.minUnitCost=(0,n.vPA)(0),this.minCostPerPound=(0,n.vPA)(0),this.caseLevelPackingType=(0,n.vPA)(""),this.unitLevelPackingType=(0,n.vPA)(""),this.availableFrom=(0,n.vPA)(null),this.showSharingStage=(0,n.vPA)(!1),this.sharingStage=(0,n.vPA)(""),this.showUnitPricing=(0,n.vPA)(!1),this.showStockOverlay=(0,n.vPA)(!1),this.overridePlaceholderImageUrl=(0,n.vPA)(null),this.singleEntryInCart=(0,n.EWP)(()=>{if("TAXONOMY"==this.dataMode()||1!==this.entryList().length)return!1;let e=this.entryList()[0];return this.cartService.inCartContentIds().includes(e.vehicleLevelOfferContentId??"")||this.cartService.inCartContentIds().includes(e.palletLevelOfferContentId??"")||this.cartService.inCartContentIds().includes(e.caseLevelOfferContentId??"")||this.cartService.inCartContentIds().includes(e.unitLevelOfferContentId??"")}),this.taxonomySummary=(0,n.EWP)(()=>{if("TAXONOMY"!==this.displayMode())return"";let e=this.varietyCount(),i=this.supplierCount();return this.designationCodes().includes("PURCHASE"),`${e} ${1!==e?"offers":"offer"} at ${i} ${1!==i?"suppliers":"supplier"} available`}),this.matches=(0,n.EWP)(()=>{let e=this.entryData();if(!e)return null;if(Array.isArray(e)){let i=[];return e.forEach(o=>{o.matches&&o.matches.forEach(s=>i.push(s))}),i.length?i:null}return e.matches||null}),this.userCanOrder=(0,n.EWP)(()=>{let e=this.entryList();return!!e.length&&this.authService.canUserTakeAction(e[0],"ORDER")}),this.userCanViewPrices=(0,n.EWP)(()=>{let e=this.entryList();return!!e.length&&this.authService.canUserTakeAction(e[0],"VIEW_PRICES")}),this.ButtonStyle=Xv}ngOnInit(){this.entryData()?this.dataMode()?Array.isArray(this.entryData())&&"ENTRY"==this.dataMode()?console.error("Cannot handle multiple entries in single entry mode"):("TAXONOMY"==this.dataMode()&&!this.parentTaxonomy()&&console.error("A parent taxonomy entry is required for taxonomy mode"),this.entryData()&&(Array.isArray(this.entryData())?this.entryList.set(this.entryData()):this.entryList.set([this.entryData()]),"TAXONOMY_WHEN_MULTIPLE"===this.dataMode()&&1===this.entryList().length||"ENTRY"===this.dataMode()?this.displayMode.set("ENTRY"):this.displayMode.set("TAXONOMY"),this.loadEntries(this.entryList()))):console.error("A data mode must be specified"):console.error("No entries provided")}onNavigateItem(){"TAXONOMY"===this.displayMode()?this.legacyNavigationService.navigate("app.marketplace-taxonomy-entry-detail",{taxonomyKey:this.parentTaxonomy()?.key}):this.legacyNavigationService.navigate("app.marketplace-timeline-entry-detail",{offerId:this.entryList()[0].offerId})}onNavigateSupplier(){"ENTRY"===this.displayMode()&&this.legacyNavigationService.navigate("app.marketplace-supplier-detail",{entityId:this.availableFrom()?.internalDetail?.internalEntityId})}loadEntries(e){let i=[];"TAXONOMY"==this.displayMode()&&(this.displayTitle.set(this.parentTaxonomy()?.displayName),this.caseLevelPackingType.set("case"),this.unitLevelPackingType.set("unit"),i=this.entryList()),"ENTRY"==this.displayMode()&&(i=[this.entryList()[0]],this.displayTitle.set(i[0].itemName),this.caseLevelPackingType.set(i[0].caseLevelPackingType?.toLowerCase()??"case"),this.unitLevelPackingType.set(i[0].unitLevelPackingType?.toLowerCase()??"unit"),this.availableFrom.set(i[0].sourceEntity)),this.varietyCount.set(i.length),this.supplierCount.set(new Set(i.map(l=>l.sourceEntity.internalDetail?.internalEntityId)).size);const o=Math.min(...i.map(l=>l.casePricingSummary?.fobCostPerUnit).filter(l=>null!=l))??0;this.minCaseCost.set(o);const s=Math.min(...i.map(l=>l.unitPricingSummary?.fobCostPerUnit).filter(l=>null!=l))??0;this.minUnitCost.set(s);const a=Math.min(...i.map(l=>{let c=l.canOrderAtVehicleLevel?l.vehicleLevelCost:l.canOrderAtPalletLevel?l.palletLevelCost:l.canOrderAtCaseLevel?l.caseLevelCost:l.unitLevelCost;return this.marketplaceService.getCurrentItemSummaryCost(c)?.costPerPound??0}).filter(l=>null!=l))??0;this.minCostPerPound.set(a),this.designationCodes.set([...new Set(i.map(l=>l.designationCode))]),this.programCodes.set([...new Set(i.map(l=>l.programCode))]),this.showUnitPricing.set(!!i.every(l=>"GROCERY"===l.programCode)),this.showSharingStage.set(i.every(l=>"PRODUCE"===l.programCode)),this.sharingStage.set(this.getRegionalSharingStage(i)),this.setBestImage(i)}getRegionalSharingStage(e){return e[0].produceOfferDetails?.offerItems[0]?.Offer?.CurrentSharingStage??""}onAddToCartClicked(){if("ENTRY"===this.displayMode()&&1===this.entryList().length){let e=this.entryList()[0],i="";e.canOrderAtVehicleLevel&&(i=e.vehicleLevelOfferContentId),e.canOrderAtPalletLevel&&(i=e.palletLevelOfferContentId),e.canOrderAtCaseLevel&&(i=e.caseLevelOfferContentId),i&&""!=i&&this.cartService.addToCartByFlatItem(e,i,this.entityService.browsingAsEntity(),this.entityService.deliveryLocationEntity(),!1,this.targetCartOrderId())}}setBestImage(e){const i=this.parentTaxonomy()?.defaultImageUri??"";""!=i&&this.overridePlaceholderImageUrl.set(i),1===e.length&&e[0].images?.length>0&&e[0].images[0].imageUri.length>0?this.imgSrc.set(e[0].images[0].imageUri):"TAXONOMY"==this.displayMode()&&""!=i&&this.imgSrc.set(i)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-browse-item-card"]],inputs:{parentTaxonomy:[1,"parentTaxonomy"],entryData:[1,"entryData"],dataMode:[1,"dataMode"],showCombinability:[1,"showCombinability"],targetCartOrderId:[1,"targetCartOrderId"]},decls:24,vars:16,consts:[["searchresults",""],[1,"transition-shadow","tw-relative","tw-flex","tw-h-[450px]","tw-w-[264px]","tw-flex-col","tw-items-start","tw-space-y-3","tw-rounded-lg","tw-border","tw-border-solid","tw-border-slate-200","tw-bg-white","tw-p-4","tw-shadow-[0px_0.125rem_0.25rem_rgba(0,0,0,0.075)]","hover:tw-shadow-[4px_4px_8px_rgba(0,0,0,0.1)]"],[1,"tw-absolute","tw-left-3","tw-top-3","tw-z-10","tw-mt-0","tw-flex","tw-flex-col","tw-gap-1"],[1,"tw-flex","tw-h-[32px]","tw-w-[32px]","tw-items-center","tw-justify-center","tw-rounded-full","tw-bg-fa-orange-200"],[1,"tw-grid","tw-grid-flow-col","tw-gap-2"],[1,"tw-absolute","tw-right-3","tw-top-3","tw-z-10","tw-mt-0","tw-flex","tw-flex-col","tw-gap-1"],[1,"tw-absolute","tw-right-3","tw-top-0","tw-z-10"],[1,"tw-flex","tw-w-full","tw-items-center","tw-justify-center"],[1,"tw-h-[204px]","tw-w-[204px]","tw-overflow-hidden","hover:tw-cursor-pointer",3,"click"],[3,"imgSrc","showStockOverlay","placeholderImageUrl"],[1,"tw-m-0","tw-inline","tw-w-full","tw-flex-shrink-0","tw-appearance-none","tw-overflow-hidden","tw-text-ellipsis","tw-whitespace-nowrap","tw-border-0","tw-bg-transparent","tw-p-0","tw-text-left","tw-text-lg","tw-font-semibold","tw-text-gray-900","hover:tw-text-gray-900","hover:tw-underline",3,"click","title"],[1,"tw-w-full","tw-overflow-hidden","tw-text-ellipsis","tw-whitespace-nowrap","tw-bg-gray-100","tw-p-1","tw-pl-2","tw-text-sm","tw-font-semibold"],[1,"tw-inline","tw-w-full","tw-cursor-pointer","tw-overflow-hidden","tw-text-ellipsis","tw-whitespace-nowrap","tw-bg-gray-100","tw-p-1","tw-pl-2","tw-text-sm","tw-font-semibold"],[1,"tw-w-full"],[1,"tw-h-5","tw-overflow-hidden","tw-text-ellipsis","tw-whitespace-nowrap","tw-text-sm","tw-italic","tw-text-gray-900"],[1,"tw-font-bold"],[1,"tw-font-semibold"],[3,"matches"],[1,"tw-text-fa-orange-500"],[1,"tw-flex","tw-h-[32px]","tw-w-[32px]","tw-items-center","tw-justify-center","tw-rounded-full","tw-bg-fa-green-200"],[1,"tw-text-fa-green-500"],[1,"tw-flex","tw-h-[32px]","tw-items-center","tw-justify-center","tw-rounded-full","tw-bg-fa-green-200","tw-px-3"],["title","This can combine with the order in your cart!",1,"tw-flex","tw-h-[32px]","tw-w-[32px]","tw-items-center","tw-justify-center","tw-rounded-full","tw-bg-fa-green-200"],["title","This can't combine with the order and will start a new order",1,"tw-flex","tw-h-[32px]","tw-w-[32px]","tw-items-center","tw-justify-center","tw-rounded-full","tw-bg-slate-100"],[1,"pi","pi-cart-arrow-down","tw-text-fa-green-500"],[1,"pi","pi-cart-arrow-down","tw-text-red-500"],["title","Search Result Details","type","button",1,"btn-reset","tw-text-gray-500","hover:tw-text-gray-700",3,"click"],[1,"pi","pi-search"],[3,"title"],[3,"click","title"],[1,"tw-text-xs"],[1,"tw-text-base","tw-font-bold","tw-text-gray-900"],["title","Minimum cost per pound"],[1,"tw-ms-1","tw-text-sm","tw-text-gray-500"],["title","Minimum case cost"],[1,"tw-text-xs","tw-font-semibold","tw-text-gray-500"],["title","Minimum unit cost"],[1,"tw-text-xs","tw-text-gray-500"],[1,"tw-float-end","tw-pt-3","tw-text-xs","tw-text-slate-400"],["clickedText","Adding...",1,"tw-mt-auto",3,"buttonStyle","text","disabled"],["clickedText","Adding...",1,"tw-mt-auto",3,"click","buttonStyle","text","disabled"],["text","See Offers",1,"tw-mt-auto",3,"click","buttonStyle"]],template:function(i,o){if(1&i){const s=n.RV6();n.j41(0,"div",1)(1,"div")(2,"div",2),n.DNE(3,lCt,2,0,"div",3)(4,cCt,5,1,"div",4),n.k0s(),n.DNE(5,pCt,3,2,"div",5),n.k0s(),n.DNE(6,hCt,3,0,"div",6),n.j41(7,"div",7)(8,"div",8),n.bIt("click",function(){return n.eBV(s),n.Njj(o.onNavigateItem())}),n.nrm(9,"app-item-image",9),n.k0s()(),n.j41(10,"button",10),n.bIt("click",function(){return n.eBV(s),n.Njj(o.onNavigateItem())}),n.EFF(11),n.k0s(),n.DNE(12,fCt,3,2,"div",11)(13,mCt,3,2,"div",12),n.j41(14,"div",13),n.DNE(15,gCt,8,4),n.j41(16,"div",14),n.DNE(17,vCt,12,6,"span",15)(18,_Ct,2,1,"span",16),n.k0s()(),n.DNE(19,CCt,3,2,"div",13)(20,wCt,2,1,"div",13),n.k0s(),n.j41(21,"p-popover",null,0),n.DNE(23,TCt,1,1,"app-search-results",17),n.k0s()}if(2&i){let s,a;n.R7$(3),n.vxM(o.programCodes().includes("GROCERY")?3:4),n.R7$(2),n.vxM("NEVER"!=o.showCombinability()&&"ENTRY"==o.displayMode()&&null!=o.entryList()[0].combinableCartOrderIds?5:-1),n.R7$(),n.vxM(null!=(s=o.matches())&&s.length?6:-1),n.R7$(3),n.Y8G("imgSrc",o.imgSrc())("showStockOverlay",o.showStockOverlay())("placeholderImageUrl",o.overridePlaceholderImageUrl()),n.R7$(),n.Y8G("title",o.displayTitle()),n.R7$(),n.SpI(" ",o.displayTitle()," "),n.R7$(),n.vxM("TAXONOMY"===o.displayMode()?12:-1),n.R7$(),n.vxM("ENTRY"===o.displayMode()?13:-1),n.R7$(2),n.vxM(o.userCanViewPrices()?15:-1),n.R7$(2),n.vxM(o.userCanViewPrices()&&o.showUnitPricing()?17:-1),n.R7$(),n.vxM(o.showSharingStage()&&"ENTRY"===o.displayMode()?18:-1),n.R7$(),n.vxM("ENTRY"===o.displayMode()?19:-1),n.R7$(),n.vxM("TAXONOMY"===o.displayMode()?20:-1),n.R7$(3),n.vxM(null!=(a=o.matches())&&a.length?23:-1)}},dependencies:[AX,MX,A2,qv,wpe,gn,oc,rm,K_,kv,aCt],encapsulation:2})}}return t})();const xCt=(t,r)=>r.id;function ECt(t,r){if(1&t&&n.nrm(0,"app-browse-item-card",1),2&t){const e=r.$implicit,i=n.XpG();n.Y8G("dataMode",e.dataMode)("parentTaxonomy",e.taxonomyModeParentTaxonomyEntry)("entryData",e.timelineEntryData)("showCombinability",i.showCombinability())("targetCartOrderId",i.targetCartOrderId())}}function DCt(t,r){1&t&&(n.j41(0,"span"),n.EFF(1,"No items found"),n.k0s())}function OX(t,r,e,i=2,o=!1,s=!1){const a=[],l=new Map;let c=f=>f.split(":").slice(0,i).join(":"),d=[];t.forEach(f=>{let v=!0;if(e&&(v=f.fanoTaxonomyCategoryId.startsWith(e),o&&(v=!v)),v){d.push(f);let w=c(f.fanoTaxonomyCategoryId);l.has(w)||l.set(w,[])}});for(const f of d){let v=c(f.fanoTaxonomyCategoryId);l.get(v)?.push(f);let w=Array.from(l.entries()).filter(([x])=>s?v.startsWith(x)&&v!==x:v===x);s&&w.forEach(x=>{l.get(x[0])?.push(f)})}for(const f of l.keys()){let v=r.find(w=>w.key===f);if(!v){const w=f.split(":");v={key:f,displayName:w[w.length-1].toLowerCase(),displayPath:[],description:"",defaultImageUri:"",defaultNutritionalCategory:"",isDeprecated:!1,isNutritionalCategoryDetermined:!1,netSuiteItems:[]}}a.push({id:crypto.randomUUID(),dataMode:"TAXONOMY_WHEN_MULTIPLE",taxonomyModeParentTaxonomyEntry:v,timelineEntryData:l.get(f)??[]})}return a}let Epe=(()=>{class t{constructor(){this.entryGroups=(0,n.hFB)([]),this.overflow=(0,n.hFB)("WRAP"),this.showCombinability=(0,n.hFB)("NEVER"),this.targetCartOrderId=(0,n.hFB)(""),this.overflowClasses=(0,n.EWP)(()=>{switch(this.overflow()){case"WRAP":return["tw-flex-wrap"];case"SCROLL":return["tw-overflow-x-auto tw-overflow-y-auto"];case"HIDE":return["tw-overflow-hidden"]}}),this.showAsCombinableToItems=(0,n.hFB)([])}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-browse-item-card-list"]],inputs:{entryGroups:[1,"entryGroups"],overflow:[1,"overflow"],showCombinability:[1,"showCombinability"],targetCartOrderId:[1,"targetCartOrderId"],showAsCombinableToItems:[1,"showAsCombinableToItems"]},decls:4,vars:2,consts:[[1,"tw-flex","tw-justify-start","tw-gap-4","tw-pb-2",3,"ngClass"],[3,"dataMode","parentTaxonomy","entryData","showCombinability","targetCartOrderId"]],template:function(i,o){1&i&&(n.j41(0,"div",0),n.Z7z(1,ECt,1,5,"app-browse-item-card",1,xCt,!1,DCt,2,0,"span"),n.k0s()),2&i&&(n.Y8G("ngClass",o.overflowClasses()),n.R7$(),n.Dyx(o.entryGroups()))},dependencies:[SCt,gn,bi],encapsulation:2})}}return t})();function kCt(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",8),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onRefresh.emit())}),n.nrm(1,"i",9),n.j41(2,"span"),n.EFF(3," Refresh"),n.k0s()()}}function ICt(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",10),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onReset.emit())}),n.nrm(1,"i",11),n.EFF(2," Reset Columns "),n.k0s()}}let Dpe=(()=>{class t{constructor(){this.gridOptions=n.hFB.required(),this.showRefresh=(0,n.hFB)(!0),this.showReset=(0,n.hFB)(!1),this.onRefresh=(0,n.CGW)(),this.onReset=(0,n.CGW)()}sizeColumnsToFit(){this.gridOptions().api?.sizeColumnsToFit()}autoSizeColumns(e){this.gridOptions().columnApi?.autoSizeAllColumns(!!e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-grid-footer"]],inputs:{gridOptions:[1,"gridOptions"],showRefresh:[1,"showRefresh"],showReset:[1,"showReset"]},outputs:{onRefresh:"onRefresh",onReset:"onReset"},decls:9,vars:2,consts:[[1,"display-flex","items-center","justify-between",2,"background-color","#f6f6f6","padding-top","0.5rem","padding-bottom","0.5rem","border","solid 1px #e0e0e0","border-top","0"],["type","button",1,"btn","btn-link","btn-sm"],[1,"display-flex","items-center","justify-end"],["type","button","title","Reset column order and visibility",1,"btn","btn-link","btn-sm"],["type","button","title","Size Columns To Fit",1,"btn","btn-link","btn-sm",3,"click"],[1,"fa","fa-compress"],["type","button","title","Autosize Columns",1,"btn","btn-link","btn-sm",3,"click"],[1,"fa","fa-arrows-h"],["type","button",1,"btn","btn-link","btn-sm",3,"click"],[1,"fa","fa-refresh"],["type","button","title","Reset column order and visibility",1,"btn","btn-link","btn-sm",3,"click"],[1,"fa","fa-rotate-left"]],template:function(i,o){1&i&&(n.j41(0,"div",0)(1,"div"),n.DNE(2,kCt,4,0,"button",1),n.k0s(),n.j41(3,"div",2),n.DNE(4,ICt,3,0,"button",3),n.j41(5,"button",4),n.bIt("click",function(){return o.sizeColumnsToFit()}),n.nrm(6,"i",5),n.k0s(),n.j41(7,"button",6),n.bIt("click",function(){return o.autoSizeColumns(!1)}),n.nrm(8,"i",7),n.k0s()()()),2&i&&(n.R7$(2),n.vxM(o.showRefresh()?2:-1),n.R7$(2),n.vxM(o.showReset()?4:-1))},encapsulation:2})}}return t})();const ACt=(t,r,e)=>["tw-bg-transparent tw-border-0 tw-font-normal tw-text-xs tw-p-0 tw-m-0 tw-tracking-wider tw-underline tw-underline-offset-2",t,r,e];let MCt=(()=>{class t{constructor(){this.text=(0,n.hFB)(""),this.useAlternateStyle=(0,n.hFB)(!1),this.linkStyle=(0,n.hFB)(bI.Orange),this.class=(0,n.hFB)(""),this.clicked=(0,n.CGW)(),this.LinkStyle=bI}onClick(e){this.clicked.emit({event:e,action:"button-clicked"})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-secondary-link-button"]],inputs:{text:[1,"text"],useAlternateStyle:[1,"useAlternateStyle"],linkStyle:[1,"linkStyle"],class:[1,"class"]},outputs:{clicked:"clicked"},decls:2,vars:6,consts:[["type","button",3,"click","ngClass"]],template:function(i,o){1&i&&(n.j41(0,"button",0),n.bIt("click",function(a){return o.onClick(a)}),n.EFF(1),n.k0s()),2&i&&(n.Y8G("ngClass",n.sMw(2,ACt,o.linkStyle()===o.LinkStyle.Orange?"tw-text-fa-orange-500 hover:tw-text-fa-orange-600":"",o.linkStyle()===o.LinkStyle.Green?"tw-text-fa-green-500 hover:tw-text-fa-green-600":"",o.class())),n.R7$(),n.SpI(" ",o.text(),"\n"))},dependencies:[gn,bi],encapsulation:2})}}return t})();function RCt(t,r){if(1&t){const e=n.RV6();n.j41(0,"app-secondary-button",3),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onAddToCartClicked())}),n.k0s()}if(2&t){const e=n.XpG();n.Y8G("text",e.isInCart()?"In cart":"Add to cart")("buttonStyle",e.ButtonStyle.OutlinedGreen)("disabled",e.isInCart()||e.entityService.isFANO()||!e.entityService.deliveryLocationEntity())}}let OCt=(()=>{class t{constructor(){this.entityService=(0,n.WQX)(jh),this.cartService=(0,n.WQX)(l0),this.timelineEntryService=(0,n.WQX)(zv),this.legacyNavigationService=(0,n.WQX)(wc),this.authService=(0,n.WQX)(dP),this.targetCartOrderId=(0,n.hFB)(""),this.isInCart=(0,n.EWP)(()=>{let e=this.entry();return this.cartService.inCartContentIds().includes(e.vehicleLevelOfferContentId??"")||this.cartService.inCartContentIds().includes(e.palletLevelOfferContentId??"")||this.cartService.inCartContentIds().includes(e.caseLevelOfferContentId??"")}),this.userCanOrder=(0,n.EWP)(()=>this.authService.canUserTakeAction(this.entry(),"ORDER")),this.entry=(0,n.vPA)(null),this.showAddToCart=(0,n.vPA)(!0),this.ButtonStyle=Xv,this.LinkStyle=bI}agInit(e){this.entry.set(e.data)}refresh(e){return!1}onAddToCartClicked(){if(this.entry()){let e=this.entry(),i="";e.canOrderAtVehicleLevel&&(i=e.vehicleLevelOfferContentId),e.canOrderAtPalletLevel&&(i=e.palletLevelOfferContentId),e.canOrderAtCaseLevel&&(i=e.caseLevelOfferContentId),i&&""!=i&&this.cartService.addToCartByFlatItem(e,i,this.entityService.browsingAsEntity(),this.entityService.deliveryLocationEntity(),!1,this.targetCartOrderId())}}onSeeDetailsClicked(){this.legacyNavigationService.navigate("app.marketplace-timeline-entry-detail",{offerId:this.entry()?.offerId})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-action-renderer"]],inputs:{targetCartOrderId:[1,"targetCartOrderId"]},decls:3,vars:2,consts:[[1,"tw-grid","tw-place-items-center","tw-gap-1"],["size","SMALL","clickedText","Added",3,"text","buttonStyle","disabled"],["text","See details",3,"click","linkStyle"],["size","SMALL","clickedText","Added",3,"click","text","buttonStyle","disabled"]],template:function(i,o){1&i&&(n.j41(0,"div",0),n.DNE(1,RCt,1,3,"app-secondary-button",1),n.j41(2,"app-secondary-link-button",2),n.bIt("click",function(){return o.onSeeDetailsClicked()}),n.k0s()()),2&i&&(n.R7$(),n.vxM(o.showAddToCart()&&o.userCanOrder()?1:-1),n.R7$(),n.Y8G("linkStyle",o.LinkStyle.Green))},dependencies:[wpe,MCt],encapsulation:2})}}return t})();function FCt(t,r){if(1&t&&n.nrm(0,"i",0),2&t){const e=n.XpG();n.Y8G("pTooltip",e.notes())}}let PCt=(()=>{class t{constructor(){this.notes=(0,n.vPA)(null),this.entry=(0,n.vPA)(null)}agInit(e){this.entry.set(e.data),this.notes.set(this.entry()?.produceOfferDetails?.notes??null)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-notes-renderer"]],decls:1,vars:1,consts:[["aria-hidden","true",1,"fa","fa-commenting-o","!tw-text-xl","tw-text-orange-500",3,"pTooltip"]],template:function(i,o){1&i&&n.DNE(0,FCt,1,1,"i",0),2&i&&n.vxM(o.notes()?0:-1)},dependencies:[Rh,ou],encapsulation:2})}}return t})();function LCt(t,r){if(1&t&&(n.EFF(0),n.nI1(1,"formatPrice")),2&t){const e=n.XpG(3);n.SpI(" ",n.i5U(1,1,e.deliveredCost(),3)," ")}}function NCt(t,r){if(1&t&&n.nrm(0,"i",0),2&t){const e=n.XpG(3);n.FS9("pTooltip",e.deliveredCostMissingNote())}}function GCt(t,r){if(1&t&&(n.j41(0,"div")(1,"span"),n.EFF(2),n.k0s(),n.j41(3,"span"),n.DNE(4,LCt,2,4)(5,NCt,1,1,"i",0),n.k0s()()),2&t){const e=n.XpG(2);n.R7$(),n.HbH(e.labelClass()),n.R7$(),n.JRh(e.deliveredCostLabel()),n.R7$(2),n.vxM(e.deliveredCost()?4:5)}}function BCt(t,r){if(1&t&&(n.j41(0,"div")(1,"span"),n.EFF(2),n.k0s(),n.j41(3,"span"),n.EFF(4),n.nI1(5,"formatPrice"),n.k0s()(),n.DNE(6,GCt,6,5,"div")),2&t){const e=n.XpG();n.R7$(),n.HbH(e.labelClass()),n.R7$(),n.JRh(e.fobCostLabel()),n.R7$(2),n.JRh(n.i5U(5,6,e.fobCost(),3)),n.R7$(2),n.vxM(e.showDelivered()?6:-1)}}let kpe=(()=>{class t{constructor(){this.canViewPrices=(0,n.vPA)(!0),this.costedUnit=(0,n.vPA)("CASE"),this.showAsPerPound=(0,n.vPA)(!1),this.showDelivered=(0,n.vPA)(!0),this.fobCostLabel=(0,n.vPA)("FOB:"),this.deliveredCostLabel=(0,n.vPA)("Dlvd:"),this.deliveredCostMissingNote=(0,n.vPA)(""),this.labelClass=(0,n.vPA)("tw-pr-1"),this.fobCost=(0,n.vPA)(null),this.deliveredCost=(0,n.vPA)(null)}agInit(e){null!=e.canViewPrices&&this.canViewPrices.set(e.canViewPrices),e.costedUnit&&this.costedUnit.set(e.costedUnit),e.showDelivered&&this.showDelivered.set(e.showDelivered),e.showAsPerPound&&this.showAsPerPound.set(e.showAsPerPound),e.fobCostLabel&&this.fobCostLabel.set(e.fobCostLabel),e.deliveredCostLabel&&this.deliveredCostLabel.set(e.deliveredCostLabel),e.labelClass&&this.labelClass.set(e.labelClass),this.setCosts(e.data)}refresh(e){return!1}setCosts(e){const i="PALLET"==this.costedUnit()?e.palletPricingSummary:e.casePricingSummary;if(this.showAsPerPound()?(this.fobCost.set(i.fobCostPerPound),this.deliveredCost.set(i.dlvdCostPerFTLPound)):(this.fobCost.set(i.fobCostPerUnit??0),this.deliveredCost.set(i.dlvdCostPerFTLUnit)),"DETERMINED"!=i.freightCostStatus)switch(i.freightCostStatus){case"MISSING_ESTIMATE":this.deliveredCostMissingNote.set("Sorry, no delivery estimate is available and so we can't provide delivered pricing right now.");break;case"NOT_AVAILABLE_AT_UNIT":this.deliveredCostMissingNote.set(`Sorry, given the nature of this offer, we can't provide delivered pricing at the ${this.costedUnit().toLowerCase()} level.`)}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-price-renderer"]],decls:1,vars:1,consts:[[1,"pi","pi-question-circle","tw-pl-2","!tw-text-xs",3,"pTooltip"]],template:function(i,o){1&i&&n.DNE(0,BCt,7,9),2&i&&n.vxM(o.canViewPrices()?0:-1)},dependencies:[gn,Rh,ou,qv],encapsulation:2})}}return t})(),VCt=(()=>{class t{constructor(){this.legacyNavigationService=(0,n.WQX)(wc),this.taxonomyKey=(0,n.vPA)(""),this.taxonomyName=(0,n.vPA)(""),this.title=(0,n.EWP)(()=>`View ${this.taxonomyName()} Offers`)}agInit(e){this.taxonomyKey.set(e.data?.taxonomyEntry?.key??""),this.taxonomyName.set(e.data?.taxonomyEntry?.displayName??"")}refresh(e){return!1}navigate(){this.legacyNavigationService.navigate("app.marketplace-taxonomy-entry-detail",{taxonomyKey:this.taxonomyKey()})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["ng-component"]],decls:2,vars:2,consts:[["type","button",1,"btn-reset","hover:tw-text-fa-orange-500","hover:tw-underline",3,"click","title"]],template:function(i,o){1&i&&(n.j41(0,"button",0),n.bIt("click",function(){return o.navigate()}),n.EFF(1),n.k0s()),2&i&&(n.Y8G("title",o.title()),n.R7$(),n.SpI(" ",o.taxonomyName()," "))},encapsulation:2,changeDetection:0})}}return t})();function jCt(t,r){if(1&t&&(n.j41(0,"span",0),n.EFF(1),n.k0s()),2&t){const e=n.XpG();n.Y8G("ngClass",e.classes)("title",e.status),n.R7$(),n.SpI(" ",e.status," ")}}let HCt=(()=>{class t{constructor(){this.status="",this.classes=""}agInit(e){switch(this.status=e.value,this.status){case"Often":this.classes="tw-bg-green-200 tw-text-green-900";break;case"Sometimes":this.classes="tw-bg-yellow-300 tw-text-yellow-900";break;case"Rarely":this.classes="tw-bg-red-700 tw-text-amber-100";break;case"Not Applicable":this.classes="tw-bg-slate-200 tw-text-slate-500"}}refresh(e){return this.status=e.value,!1}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["ng-component"]],decls:1,vars:1,consts:[[1,"tw-inline-block","tw-rounded-full","tw-px-4","tw-py-1","tw-text-xs","tw-font-semibold",3,"ngClass","title"]],template:function(i,o){1&i&&n.DNE(0,jCt,2,3,"span",0),2&i&&n.vxM(o.status?0:-1)},dependencies:[gn,bi],encapsulation:2,changeDetection:0})}}return t})(),UCt=(()=>{class t{constructor(){this.showGallery=(0,n.vPA)(!1),this.imageUrl=(0,n.vPA)(""),this.imageUrls=(0,n.vPA)([])}agInit(e){e.data&&(e.data.images.length?(this.imageUrl.set(e.data.images[0].imageUri??""),this.imageUrls.set(e.data.images.map(i=>i.imageUri))):e.data.taxonomyEntry?.defaultImageUri&&""!=e.data.taxonomyEntry.defaultImageUri&&(this.imageUrl.set(e.data.taxonomyEntry?.defaultImageUri),this.imageUrls.set([e.data.taxonomyEntry?.defaultImageUri])))}refresh(e){return!1}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["ng-component"]],decls:3,vars:3,consts:[["title","View Images","type","button",1,"btn-reset",3,"click"],[2,"max-width","100px","max-height","30px",3,"src"],[3,"isVisibleChange","isVisible","imageUrls"]],template:function(i,o){1&i&&(n.j41(0,"button",0),n.bIt("click",function(){return o.showGallery.set(!0)}),n.nrm(1,"img",1),n.k0s(),n.j41(2,"app-item-image-gallery",2),n.mxI("isVisibleChange",function(a){return n.DH7(o.showGallery,a)||(o.showGallery=a),a}),n.k0s()),2&i&&(n.R7$(),n.Y8G("src",o.imageUrl(),n.B4B),n.R7$(),n.R50("isVisible",o.showGallery),n.Y8G("imageUrls",o.imageUrls()))},dependencies:[xpe],encapsulation:2})}}return t})();function $Ct(t,r){1&t&&(n.j41(0,"span",0),n.EFF(1,"Purchased"),n.k0s())}function YCt(t,r){if(1&t&&(n.j41(0,"span",1),n.EFF(1),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.JRh("DONATION"===(null==e.params?null:e.params.designationCode)?"Donated":"PURCHASE"===(null==e.params?null:e.params.designationCode)?"Purchased":"Mixed")}}let WCt=(()=>{class t{agInit(e){this.params=e}refresh(e){return this.params=e,!1}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["ng-component"]],decls:2,vars:1,consts:[[1,"tw-inline-block","tw-rounded-full","tw-bg-fa-orange-200","tw-px-4","tw-py-1","tw-text-fa-orange-700"],[1,"tw-inline-block","tw-rounded-full","tw-bg-fa-green-200","tw-px-4","tw-py-1","tw-text-fa-green-600"]],template:function(i,o){1&i&&n.DNE(0,$Ct,2,0,"span",0)(1,YCt,2,1,"span",1),2&i&&n.vxM("GROCERY"==(null==o.params?null:o.params.programCode)?0:1)},encapsulation:2,changeDetection:0})}}return t})(),zCt=(()=>{class t{constructor(){this.legacyNavigationService=(0,n.WQX)(wc),this.supplierId=(0,n.vPA)(""),this.supplierName=(0,n.vPA)(""),this.title=(0,n.EWP)(()=>`View ${this.supplierName()}`)}agInit(e){this.supplierId.set(e.data?.sourceEntity.internalDetail?.internalEntityId?.toString()??""),this.supplierName.set(e.data?.sourceEntity.name??"")}refresh(e){return!1}navigate(){this.legacyNavigationService.navigate("app.marketplace-supplier-detail",{entityId:this.supplierId()})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["ng-component"]],decls:2,vars:2,consts:[["type","button",1,"btn-reset","hover:tw-text-fa-orange-500","hover:tw-underline",3,"click","title"]],template:function(i,o){1&i&&(n.j41(0,"button",0),n.bIt("click",function(){return o.navigate()}),n.EFF(1),n.k0s()),2&i&&(n.Y8G("title",o.title()),n.R7$(),n.SpI(" ",o.supplierName()," "))},encapsulation:2,changeDetection:0})}}return t})(),qCt=(()=>{class t{constructor(){this.legacyNavigationService=(0,n.WQX)(wc),this.offerId=(0,n.vPA)(""),this.offerTitle=(0,n.vPA)(""),this.title=(0,n.EWP)(()=>`View ${this.offerTitle()} Details`)}agInit(e){this.offerId.set(e.data?.offerId??""),this.offerTitle.set(e.data?.offerTitle??"")}refresh(e){return!1}navigate(){this.legacyNavigationService.navigate("app.marketplace-timeline-entry-detail",{offerId:this.offerId()})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["ng-component"]],decls:2,vars:2,consts:[["type","button",1,"btn-reset","hover:tw-text-fa-orange-500","hover:tw-underline",3,"click","title"]],template:function(i,o){1&i&&(n.j41(0,"button",0),n.bIt("click",function(){return o.navigate()}),n.EFF(1),n.k0s()),2&i&&(n.Y8G("title",o.title()),n.R7$(),n.SpI(" ",o.offerTitle()," "))},encapsulation:2,changeDetection:0})}}return t})();function XCt(t,r){if(1&t){const e=n.RV6();n.j41(0,"app-grid-footer",2),n.bIt("onRefresh",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.onRefresh.emit())})("onReset",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.resetGridColumns())}),n.k0s()}if(2&t){const e=n.XpG(2);n.Y8G("gridOptions",e.gridOptions())("showRefresh",e.showRefresh())("showReset",e.showReset())}}function KCt(t,r){if(1&t&&(n.nrm(0,"ag-grid-angular",0),n.DNE(1,XCt,1,3,"app-grid-footer",1)),2&t){const e=n.XpG();n.Y8G("rowData",e.entries())("gridOptions",e.gridOptions()),n.R7$(),n.vxM(e.showFooter()?1:-1)}}let _6=(()=>{class t{constructor(){this.cacheService=(0,n.WQX)(jb),this.authService=(0,n.WQX)(dP),this.entries=(0,n.hFB)([]),this.autoHideUnused=(0,n.hFB)(!0),this.defaultHideColumns=(0,n.hFB)([]),this.blockedColumns=(0,n.hFB)([]),this.showFooter=(0,n.hFB)(!0),this.showRefresh=(0,n.hFB)(!0),this.showReset=(0,n.hFB)(!1),this.visibleColumnsCacheKey=(0,n.hFB)(""),this.targetCartOrderId=(0,n.hFB)(""),this.onRefresh=(0,n.CGW)(),this.gridOptions=(0,n.vPA)(null)}ngOnInit(){this.initializeGridOptions()}resetGridColumns(){this.visibleColumnsCacheKey()&&this.cacheService.clear(this.visibleColumnsCacheKey()),this.gridOptions()?.columnApi?.resetColumnState(),this.autoSizeAllColumns()}autoSizeAllColumns(){setTimeout(()=>{this.gridOptions()?.columnApi?.autoSizeAllColumns(!1)},0)}export(e){const i=this.gridOptions()?.columnApi?.getAllGridColumns().map(c=>c.getColId()).filter(c=>!["IMAGE","ACTION"].includes(c)),o=new Date,s=o.getFullYear(),a=(o.getMonth()+1).toString().padStart(2,"0"),l=o.getDate().toString().padStart(2,"0");e=e??`offers_${s}-${a}-${l}.xlsx`,this.gridOptions()?.api?.exportDataAsExcel({columnKeys:i,fileName:e})}formatPrice(e,i=2){return null==e?"":`$${new Intl.NumberFormat("en-US",{minimumFractionDigits:i,maximumFractionDigits:i}).format(e)}`}getColumnDefs(){let e=[{colId:"IMAGE",headerName:"",resizable:!1,sortable:!1,minWidth:50,width:50,maxWidth:80,suppressColumnsToolPanel:!0,suppressMovable:!0,field:"images",cellRenderer:UCt},{colId:"CATEGORY",headerName:"Category",headerTooltip:"Category",field:"taxonomyEntry.displayName",tooltipField:"taxonomyEntry.displayName",minWidth:100,width:100,enableRowGroup:!0,cellRenderer:VCt},{colId:"SUPPLIER",headerName:"Supplier",headerTooltip:"Supplier",field:"sourceEntity.name",tooltipField:"sourceEntity.name",cellRenderer:zCt},{colId:"TITLE",headerName:"Title",headerTooltip:"Title",field:"offerTitle",tooltipField:"offerTitle",minWidth:80,width:200,cellRenderer:qCt},{colId:"VARIETY",headerName:"Description / Variety",headerTooltip:"Description / Variety",field:"itemDescription",tooltipField:"itemDescription",minWidth:80,width:140,maxWidth:300},{colId:"PRICE_PER_POUND",headerName:"Price/lb",headerTooltip:"Price Per Pound",minWidth:100,width:110,valueGetter:i=>"FOB"===i.data?.pricingModel?i.data?.palletPricingSummary?.fobCostPerPound:i.data?.palletPricingSummary?.dlvdCostPerFTLPound,cellRenderer:kpe,cellRendererParams:i=>({canViewPrices:this.authService.canUserTakeAction(i.data,"VIEW_PRICES"),costedUnit:"PALLET",showAsPerPound:!0})},{colId:"PRICE_PER_CASE",headerName:"Price/Case",headerTooltip:"Price Per Case",minWidth:100,width:110,field:"caseLevelProductCostPerUnit",valueGetter:i=>"FOB"===i.data?.pricingModel?i.data?.casePricingSummary?.fobCostPerUnit:i.data?.casePricingSummary?.dlvdCostPerFTLUnit,cellRenderer:kpe,cellRendererParams:i=>({canViewPrices:this.authService.canUserTakeAction(i.data,"VIEW_PRICES"),costedUnit:"CASE"})},{colId:"GRADE",headerName:"Grade",headerTooltip:"Grade",field:"grade",minWidth:60,width:60},{colId:"NOTES",headerName:"Notes",headerTooltip:"Notes",minWidth:60,width:60,cellRenderer:PCt,valueGetter:i=>i.data?.produceOfferDetails?.notes},{colId:"HER",headerName:"HER",headerTooltip:"Healthy Eating Research Guideline",minWidth:60,width:100,cellRenderer:HCt,valueGetter:i=>{switch(i.data?.palletLevelNutritionalCategoryDetails?.itemId){case"GREEN":return"Often";case"YELLOW":return"Sometimes";case"RED":return"Rarely";case"NA":return"Not Applicable";default:return""}}},{colId:"REGIONAL_SHARING_STATUS",headerName:"Regional Sharing",headerTooltip:"Regional Sharing Status",valueGetter:i=>"PRODUCE"===i.data?.programCode?i.data.produceOfferDetails?.offerItems[0].Offer?.CurrentSharingStage??"":""},{colId:"OFFER_CODE",headerName:"Offer #",headerTooltip:"Offer Number",field:"offerCode",tooltipField:"offerCode",minWidth:90,width:90,enableRowGroup:!0},{colId:"OFFER_TYPE",headerName:"Offer Type",headerTooltip:"Offer Type",field:"designationCode",width:100,minWidth:85,cellRenderer:WCt,cellRendererParams:i=>({designationCode:i.data.designationCode,programCode:i.data.programCode})},{colId:"FIRST_AVAILABLE",minWidth:100,headerName:"First Avail",headerTooltip:"First Available to Ship Date",field:"firstAvailableToShipTimeUTC",wrapText:!0,valueFormatter:i=>i.value?`${new Intl.DateTimeFormat("en-US").format(new Date(i.value))}`:""},{colId:"LAST_AVAILABLE",minWidth:100,headerName:"Last Avail",headerTooltip:"Last Available Date",field:"lastAvailableToShipTimeUTC",wrapText:!0,valueFormatter:i=>i.value?`${new Intl.DateTimeFormat("en-US").format(new Date(i.value))}`:""},{colId:"END_TIME",minWidth:100,headerName:"Offer Exp",headerTooltip:"Offer Expiration",field:"endTimeUTC",tooltipField:"endTimeUTC",valueFormatter:i=>i.value?`${new Intl.DateTimeFormat("en-US").format(new Date(i.value))}`:"",width:100},{colId:"UNIT_TYPE",headerName:"Unit Type",headerTooltip:"Unit Type",field:"unitLevelPackingType",tooltipField:"unitLevelPackingType",minWidth:50,width:60},{colId:"PACK",headerName:"Pack",headerTooltip:"Pack",field:"unitsPerCaseUnit",tooltipField:"unitsPerCaseUnit",minWidth:50,width:50},{colId:"SIZE",headerName:"Size",headerTooltip:"Size",minWidth:50,width:60,comparator:(i,o,s,a)=>s.data&&a.data?s.data.unitLevelProductWeightInPounds<a.data.unitLevelProductWeightInPounds?-1:s.data.unitLevelProductWeightInPounds>a.data.unitLevelProductWeightInPounds?1:0:0,valueGetter:i=>i.data?.unitLevelProductWeightPerUnit?`${i.data.unitLevelProductWeightPerUnit.value} ${i.data.unitLevelProductWeightPerUnit.weightUOM}`:""},{colId:"ORIGIN",headerName:"Origin",headerTooltip:"Origin",field:"unitLevelIsImported",valueGetter:i=>null==i.data?.unitLevelIsImported?"Unknown":!0===i.data.unitLevelIsImported?"Imported":!1===i.data.unitLevelIsImported?"Domestic":""},{colId:"CASES_PER_PALLET",headerName:"Cases/Pallet",headerTooltip:"Cases Per Pallet",field:"casesPerPalletUnit",tooltipField:"casesPerPalletUnit",minWidth:50,width:50},{colId:"PALLETS_PER_FTL",headerName:"Pallets/FTL",headerTooltip:"Pallets Per Full Truck Load",field:"palletsPerVehicleUnit",tooltipField:"palletsPerVehicleUnit",minWidth:50,width:50},{colId:"LOCATION_CITY",headerName:"Location City",headerTooltip:"Location City",field:"locationEntity.city",minWidth:80,width:80,cellStyle:{"white-space":"normal"}},{colId:"LOCATION_STATE",headerName:"Location State",headerTooltip:"Location State",field:"locationEntity.province",minWidth:50,width:60,wrapText:!0},{colId:"STORAGE_TYPE",headerName:"Storage Type",headerTooltip:"Storage Type",minWidth:80,valueGetter:i=>i.data?.palletLevelStorageRequirementDetails?i.data.palletLevelStorageRequirementDetails.itemId:""},{colId:"CASE_GROSS_WEIGHT",headerName:"Case Gross Weight",headerTooltip:"Case Gross Weight",minWidth:80,valueGetter:i=>i.data?.caseLevelProductWeightInPounds?(Math.round(100*i.data.caseLevelProductWeightInPounds)/100).toString():""},{colId:"MIN_PALLETS_PER_ORDER",headerName:"Min. Pallet Order",headerTooltip:"Minimum Pallets Per Order",field:"minimumPalletUnitsPerOrder",minWidth:50,width:60,hide:!0},{colId:"PALLETS_AVAILABLE",headerName:"Pallets Avail",headerTooltip:"Pallets Available",minWidth:50,width:60,hide:!0,comparator:(i,o)=>{let s=parseInt(i),a=parseInt(o);return!Number.isFinite(s)&&Number.isFinite(a)?1:Number.isFinite(s)&&!Number.isFinite(a)?-1:Number.isFinite(s)||Number.isFinite(a)?s<a?-1:s>a?1:0:0},valueGetter:i=>i.data?.canOrderAtPalletLevel?i.data.maximumPalletUnitsPerOrder?i.data.maximumPalletUnitsPerOrder?.toFixed():"(Unlimited)":i.data?.canOrderAtVehicleLevel&&i.data.palletsPerVehicleUnit&&i.data.maximumVehicleUnitsPerOrder?(i.data.maximumVehicleUnitsPerOrder*i.data.palletsPerVehicleUnit).toFixed():""},{colId:"VEHICLE_ORDER_MAXIMUM",headerName:"Truckloads Avail",headerTooltip:"Truckloads Available",field:"maximumVehicleUnitsPerOrder",minWidth:50,width:60,hide:!0,comparator:(i,o)=>{let s=parseInt(i),a=parseInt(o);return!Number.isFinite(s)&&Number.isFinite(a)?1:Number.isFinite(s)&&!Number.isFinite(a)?-1:Number.isFinite(s)||Number.isFinite(a)?s<a?-1:s>a?1:0:0},valueGetter:i=>i.data?.canOrderAtVehicleLevel?i.data.maximumVehicleUnitsPerOrder?i.data.maximumVehicleUnitsPerOrder?.toFixed():"(Unlimited)":i.data?.canOrderAtPalletLevel&&null==i.data.maximumPalletUnitsPerOrder?"(Unlimited)":i.data?.canOrderAtPalletLevel&&i.data.palletsPerVehicleUnit&&i.data.maximumPalletUnitsPerOrder?(i.data.maximumPalletUnitsPerOrder/i.data.palletsPerVehicleUnit).toFixed():""},{colId:"PRICING_MODEL",headerName:"Pricing",headerTooltip:"Pricing",field:"pricingModel",tooltipField:"pricingModel",wrapText:!0,minWidth:50,width:50,hide:!0},{colId:"LABEL_NAME",headerName:"Label Name",headerTooltip:"Label Name",field:"unitLevelBrandLabel",tooltipField:"unitLevelBrandLabel",wrapText:!0,minWidth:50,width:50,hide:!0},{colId:"UPC",headerName:"UPC #",headerTooltip:"UPC/SKU Code",field:"upc",minWidth:50,width:50,hide:!0},{colId:"LEAD_TIME",headerName:"Days Lead Time",headerTooltip:"Days Lead Time",field:"leadTimeInDays",minWidth:50,width:50,hide:!0},{colId:"COMBINABLE_WITH_CART",headerName:"Combinable with Cart",headerTooltip:"Can this item combine with order(s) in your cart?",field:"combinableCartOrderIds",minWidth:150,width:150,hide:!0,valueGetter:i=>null==i.data?.combinableCartOrderIds?"Unknown":0==i.data?.combinableCartOrderIds.length?"Not Combinable":"Combinable"},{colId:"ACTION",headerName:"",pinned:"right",maxWidth:150,minWidth:150,width:150,resizable:!1,suppressColumnsToolPanel:!0,suppressMovable:!0,cellRenderer:OCt,cellClass:"tw-flex tw-items-center tw-justify-center tw-border tw-border-solid tw-border-gray-200 tw-px-4 tw-py-2"}];return this.blockedColumns().length?e.filter(i=>!this.blockedColumns().includes(i.colId)):e}initializeGridOptions(){var i,e=this;this.gridOptions.set({columnDefs:this.getColumnDefs(),defaultColDef:{flex:1,sortable:!0,resizable:!0,filter:!1},rowHeight:70,getRowId:i=>i.data.itemSummaryId,onColumnMoved:i=>{if(!this.visibleColumnsCacheKey())return;const s=i.columnApi.getAllDisplayedColumns().map(a=>a.getColId());this.cacheService.cache({key:this.visibleColumnsCacheKey(),value:s,persist:!0,ttl:1/0,type:"data"})},onColumnVisible:i=>{if(!this.visibleColumnsCacheKey())return;const s=i.columnApi.getAllDisplayedColumns().map(a=>a.getColId());this.cacheService.cache({key:this.visibleColumnsCacheKey(),value:s,persist:!0,ttl:1/0,type:"data"})},onGridReady:(i=(0,lr.A)(function*(o){if(e.visibleColumnsCacheKey()){let s=yield e.cacheService.get(e.visibleColumnsCacheKey());if(s?.length){let a=o.columnApi.getColumns()?.map(l=>l.getColId()).filter(l=>!s.includes(l));a?.length&&o.columnApi.setColumnsVisible(a,!1),s.forEach((l,c)=>{o.columnApi.moveColumn(l,c)}),o.columnApi.setColumnsVisible(s,!0)}}else e.defaultHideColumns().forEach(s=>{o.columnApi?.setColumnVisible(s,!1)})}),function(s){return i.apply(this,arguments)}),onRowDataUpdated:()=>{this.autoSizeAllColumns()},enableCellTextSelection:!0,enableBrowserTooltips:!0,suppressRowClickSelection:!0,suppressColumnVirtualisation:!0,sideBar:{toolPanels:[{id:"columns",labelDefault:"Columns",labelKey:"columns",iconKey:"columns",toolPanel:"agColumnsToolPanel",toolPanelParams:{suppressColumnFilter:!0,suppressColumnSelectAll:!1,suppressPivotMode:!0,suppressRowGroups:!0,suppressValues:!0}}]}})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-browse-item-table"]],inputs:{entries:[1,"entries"],autoHideUnused:[1,"autoHideUnused"],defaultHideColumns:[1,"defaultHideColumns"],blockedColumns:[1,"blockedColumns"],showFooter:[1,"showFooter"],showRefresh:[1,"showRefresh"],showReset:[1,"showReset"],visibleColumnsCacheKey:[1,"visibleColumnsCacheKey"],targetCartOrderId:[1,"targetCartOrderId"]},outputs:{onRefresh:"onRefresh"},decls:1,vars:1,consts:[[1,"ag-theme-faom",2,"width","100%","height","100%","min-height","400px",3,"rowData","gridOptions"],[3,"gridOptions","showRefresh","showReset"],[3,"onRefresh","onReset","gridOptions","showRefresh","showReset"]],template:function(i,o){1&i&&n.DNE(0,KCt,2,3),2&i&&n.vxM(o.gridOptions()?0:-1)},dependencies:[DF,p8,Dpe],styles:[".ag-theme-faom .ag-cell{padding-left:10px!important;padding-right:10px!important}  .ag-theme-faom .ag-header-cell{padding-left:10px!important;padding-right:10px!important}"]})}}return t})();const QCt=["browseItemTable"],JCt=(t,r)=>r.filter.id;function ZCt(t,r){if(1&t&&(n.j41(0,"div",2)(1,"div",13),n.EFF(2),n.k0s()()),2&t){let e;const i=n.XpG(2);n.R7$(2),n.SpI(" Feeding America, Browsing As: ",null==(e=i.entityService.browsingAsEntity())?null:e.name," ")}}function ewt(t,r){1&t&&n.nrm(0,"app-cart-button",6),2&t&&n.Y8G("showLabel",!1)}function twt(t,r){if(1&t){const e=n.RV6();n.j41(0,"app-filter-flyout",14),n.bIt("onShowGridChanged",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onShowGridChanged(o))})("onRefreshRequested",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.onRefreshRequested())}),n.k0s()}if(2&t){const e=n.XpG(2);n.Y8G("showGrid",e.showGrid())("taxonomyTree",e.taxonomyTree())("initiallySelectedNodes",e.initiallySelectedNodes())}}function nwt(t,r){if(1&t){const e=n.RV6();n.j41(0,"li",10)(1,"div",15)(2,"button",16),n.bIt("click",function(){const o=n.eBV(e).$implicit,s=n.XpG(2);return n.Njj(s.removeFilter(o.filter))}),n.nrm(3,"i",17),n.k0s(),n.j41(4,"span"),n.EFF(5),n.k0s()()()}if(2&t){const e=r.$implicit;n.R7$(5),n.SpI(" ",e.name," ")}}function iwt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",11)(1,"button",18),n.bIt("click",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.exportData())}),n.EFF(2," Export "),n.k0s()()}}function rwt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div")(1,"div",8)(2,"span",23),n.EFF(3,"Featured Offers"),n.k0s(),n.j41(4,"p-button",24),n.bIt("onClick",function(){n.eBV(e);const o=n.XpG(4);return n.Njj(o.addFeaturedOffersFilter())}),n.k0s()(),n.nrm(5,"app-browse-item-card-list",25),n.k0s()}if(2&t){const e=n.XpG(4);n.R7$(4),n.Y8G("link",!0),n.R7$(),n.Y8G("entryGroups",e.featuredOffersEntries())}}function owt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div")(1,"div",8)(2,"span",23),n.EFF(3),n.k0s(),n.j41(4,"p-button",24),n.bIt("onClick",function(){n.eBV(e);const o=n.XpG(4);return n.Njj(o.addSourceProgramCodeFilter(o.taxonomyBlock1LinkKey()))}),n.k0s()(),n.nrm(5,"app-browse-item-card-list",25),n.k0s()}if(2&t){const e=n.XpG(4);n.R7$(3),n.JRh(e.taxonomyBlock1Title()),n.R7$(),n.Y8G("link",!0),n.R7$(),n.Y8G("entryGroups",e.taxonomyBlock1EntryGroups())}}function swt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",19)(1,"div",26)(2,"span",23),n.EFF(3),n.k0s(),n.j41(4,"p-button",24),n.bIt("onClick",function(){n.eBV(e);const o=n.XpG(4);return n.Njj(o.addSourceProgramCodeFilter(o.taxonomyBlock2LinkKey()))}),n.k0s()(),n.nrm(5,"app-browse-item-card-list",25),n.k0s()}if(2&t){const e=n.XpG(4);n.R7$(3),n.SpI(" ",e.taxonomyBlock2Title()," "),n.R7$(),n.Y8G("link",!0),n.R7$(),n.Y8G("entryGroups",e.taxonomyBlock2EntryGroups())}}function awt(t,r){if(1&t&&(n.DNE(0,rwt,6,2,"div")(1,owt,6,3,"div")(2,swt,6,3,"div",19),n.j41(3,"div",20)(4,"div")(5,"span",21),n.EFF(6,"All Offers"),n.k0s()(),n.nrm(7,"app-browse-item-card-list",22),n.k0s()),2&t){const e=n.XpG(3);n.vxM(e.featuredItems().length>0?0:-1),n.R7$(),n.vxM(e.taxonomyBlock1EntryGroups().length>0?1:-1),n.R7$(),n.vxM(e.taxonomyBlock2EntryGroups().length>0?2:-1),n.R7$(5),n.Y8G("entryGroups",e.searchListEntriesGrouped())}}function lwt(t,r){if(1&t&&(n.j41(0,"div",27),n.EFF(1,"Results"),n.k0s(),n.nrm(2,"app-browse-item-card-list",22)),2&t){const e=n.XpG(3);n.R7$(2),n.Y8G("entryGroups",e.searchListEntriesGrouped())}}function cwt(t,r){if(1&t&&n.DNE(0,awt,8,4)(1,lwt,3,1),2&t){const e=n.XpG(2);n.vxM(e.isFiltering()?1:0)}}function uwt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",12)(1,"app-browse-item-table",28,0),n.bIt("onRefresh",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.refreshListings(!0))}),n.k0s()()}if(2&t){const e=n.XpG(2);n.R7$(),n.Y8G("entries",e.filteredItems())("showReset",!0)}}function dwt(t,r){if(1&t){const e=n.RV6();n.DNE(0,ZCt,3,1,"div",2),n.j41(1,"div",3)(2,"div",4)(3,"app-filter-input",5),n.bIt("searchTermChanged",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.filterSearchTerm(o))}),n.k0s(),n.DNE(4,ewt,1,1,"app-cart-button",6)(5,twt,1,3,"app-filter-flyout",7),n.k0s(),n.j41(6,"div")(7,"div",8)(8,"ul",9),n.Z7z(9,nwt,6,1,"li",10,JCt),n.k0s(),n.j41(11,"div"),n.DNE(12,iwt,3,0,"div",11),n.k0s()(),n.DNE(13,cwt,2,1)(14,uwt,3,2,"div",12),n.k0s()()}if(2&t){const e=n.XpG();n.vxM(e.entityService.isFANO()?0:-1),n.R7$(3),n.Y8G("searchTermValue",e.searchTerm()),n.R7$(),n.vxM(e.entityService.isFANO()?-1:4),n.R7$(),n.vxM(e.isFilterBarDataLoaded()?5:-1),n.R7$(),n.ZvI("tw-mx-auto tw-flex tw-h-full tw-w-full tw-flex-col tw-gap-4 ",e.showGrid()?"tw-container tw-max-w-[1390px]":"",""),n.R7$(3),n.Dyx(e.selectedFilters()),n.R7$(3),n.vxM(e.showGrid()?-1:12),n.R7$(),n.vxM(e.showGrid()?13:14)}}function pwt(t,r){1&t&&(n.j41(0,"div",1),n.nrm(1,"p-progress-spinner",29),n.j41(2,"span",30),n.EFF(3,"Loading..."),n.k0s()())}let hwt=(()=>{class t{constructor(){this.entityService=(0,n.WQX)(jh),this.cacheService=(0,n.WQX)(jb),this.marketplaceService=(0,n.WQX)(Yu),this.filtersService=(0,n.WQX)(pP),this.legacyNavigationService=(0,n.WQX)(wc),this.timelineEntryService=(0,n.WQX)(zv),this.browseItemTable=n.ebz.required("browseItemTable"),this.taxonomyBlock1Title=(0,n.vPA)("Produce"),this.taxonomyBlock1LinkKey=(0,n.vPA)("PRODUCE"),this.taxonomyBlock1LinkKeyOppositeMatch=(0,n.vPA)(!1),this.taxonomyBlock2Title=(0,n.vPA)("Grocery"),this.taxonomyBlock2LinkKey=(0,n.vPA)("GROCERY"),this.taxonomyBlock2LinkKeyOppositeMatch=(0,n.vPA)(!0),this.showGrid=(0,n.vPA)(!1),this.flatItems=(0,n.vPA)([]),this.filteredItems=(0,n.vPA)([]),this.featuredOfferIds=(0,n.vPA)([]),this.featuredItems=(0,n.vPA)([]),this.taxonomies=(0,n.vPA)([]),this.taxonomyTree=(0,n.vPA)([]),this.initiallySelectedNodes=(0,n.vPA)([]),this.isFilterBarDataLoaded=(0,n.vPA)(!1),this.isOfferDataLoaded=(0,n.vPA)(!1),this.isFiltering=(0,n.vPA)(!1),this.searchTerm=(0,n.vPA)(""),this.isProducePurchasingEnabled=(0,n.hFB)(!1),this.searchListEntriesGrouped=(0,n.EWP)(()=>{let o=OX(this.filteredItems(),this.taxonomies(),null,3);return o.sort((s,a)=>(Array.isArray(a.timelineEntryData)?a.timelineEntryData:[a.timelineEntryData]).length-(Array.isArray(s.timelineEntryData)?s.timelineEntryData:[s.timelineEntryData]).length),o}),this.featuredOffersEntries=(0,n.EWP)(()=>this.featuredItems().map(e=>({id:crypto.randomUUID(),dataMode:"ENTRY",timelineEntryData:e})).slice(0,5)),this.taxonomyBlock1EntryGroups=(0,n.EWP)(()=>{let o=OX(this.filteredItems(),this.taxonomies(),this.taxonomyBlock1LinkKey(),3).slice(0,5);return o.sort((s,a)=>(Array.isArray(a.timelineEntryData)?a.timelineEntryData:[a.timelineEntryData]).length-(Array.isArray(s.timelineEntryData)?s.timelineEntryData:[s.timelineEntryData]).length),o}),this.taxonomyBlock2EntryGroups=(0,n.EWP)(()=>{let o=OX(this.filteredItems(),this.taxonomies(),this.taxonomyBlock1LinkKey(),3,!0).slice(0,5);return o.sort((s,a)=>(Array.isArray(a.timelineEntryData)?a.timelineEntryData:[a.timelineEntryData]).length-(Array.isArray(s.timelineEntryData)?s.timelineEntryData:[s.timelineEntryData]).length),o}),this.selectedFilters=(0,n.EWP)(()=>{let e=this.filtersService.browseFilters().filter(x=>x.type!==ao.FilterText),i=[],o=e.filter(x=>x.type===ao.TaxonomyCategory);if(o.length){const x=[];o.sort((I,M)=>I.value.localeCompare(M.value)).forEach(I=>{const M=x.some(F=>I.value.startsWith(F));x.push(I.value),M||this.marketplaceService.getTaxonomyEntry(I.value).subscribe({next:F=>{i.push({filter:I,name:F?.displayName??this.getLowestTaxonomyName(I)})},error:()=>{i.push({filter:I,name:I.value})}})})}let s=e.filter(x=>x.type===ao.SourceProgramCode);s.length&&s.forEach(x=>{i.push({filter:x,name:this.titleCase(x.value)})});let a=e.filter(x=>x.type===ao.Distance);a.length&&a.forEach(x=>{i.push({filter:x,name:this.titleCase(`Within ${x.value.toString()} miles`)})});let l=e.filter(x=>x.type===ao.FOBCostPerPound);l.length&&l.forEach(x=>{i.push({filter:x,name:this.titleCase(`Less than $${x.value.toString()}/lb.`)})});let c=e.filter(x=>x.type===ao.HERCategories);c.length&&c.forEach(x=>{i.push({filter:x,name:`HER: ${x.value.map(I=>cP[I].displayDetails.displayName).join(" / ")}`})});let d=e.filter(x=>x.type===ao.IsImported);d.length&&d.forEach(x=>{const I=[];for(const M of x.value)!1===M&&I.push("Domestic"),!0===M&&I.push("International"),null===M&&I.push("Unknown Import Status");i.push({filter:x,name:`${I.join(" / ")}`})});let f=e.find(x=>x.type===ao.IsFeatured);f&&i.push({filter:f,name:"Featured"});let v=e.find(x=>x.type===ao.HideProduceCombos);v&&i.push({filter:v,name:"Hide Produce Combo Loads"});let w=e.find(x=>x.type===ao.IsCombinableWithCart);return w&&i.push({filter:w,name:"Only Items That Can Add to an Existing Order in my Cart"}),i}),(0,n.QZP)(()=>{this.filteredItems.set([...this.filtersService.applyFilters(this.flatItems(),this.filtersService.browseFilters())]),this.isFiltering.set(this.filtersService.hasSavedFilters(this.filtersService.filterSections.browse))}),(0,n.QZP)(()=>{this.entityService.deliveryLocationEntity(),this.entityService.browsingAsEntity()&&this.loadData()})}ngOnInit(){}removeFilter(e){e.type===ao.TaxonomyCategory?this.removeTaxonomyFilterAndChildren(e):this.filtersService.removeFilter(this.filtersService.filterSections.browse,e)}removeTaxonomyFilterAndChildren(e){let o=this.filtersService.browseFilters().filter(s=>s.type===ao.TaxonomyCategory).filter(s=>s.value.startsWith(e.value));this.filtersService.removeFilters(this.filtersService.filterSections.browse,o)}getLowestTaxonomyName(e){const i=e.value.lastIndexOf(":");let o=e.value;return i>-1&&(o=e.value.slice(i+1)),o=this.replaceUnderscores(o),o=this.titleCase(o),o}titleCase(e){return"string"!=typeof e||0===e.length?e:(e=e.toLowerCase()).split(" ").map(i=>0===i.length?"":i.charAt(0).toUpperCase()+i.slice(1)).join(" ")}replaceUnderscores(e){return"string"!=typeof e||0===e.length?e:e.replaceAll("_"," ")}refreshListings(e=!1){this.timelineEntryService.getFlattenedAvailableItemSummaries(e).subscribe({next:i=>{this.flatItems.set(i),this.applyFilters()}})}gotoTaxonomyDetail(e,i){this.legacyNavigationService.navigate("app.marketplace-taxonomy-entry-detail",{taxonomyKey:e,oppositeMatch:i||void 0})}addFeaturedOffersFilter(){this.updateFeaturedOffersFilter(),this.applyFilters()}updateFeaturedOffersFilter(){let e=this.filtersService.getFilters(this.filtersService.filterSections.browse,ao.IsFeatured);e.length?e[0].value=this.featuredOfferIds():e.push(new r0t(this.featuredOfferIds())),this.filtersService.updateFilters(this.filtersService.filterSections.browse,e,ao.IsFeatured)}addSourceProgramCodeFilter(e){let i=this.filtersService.getFilters(this.filtersService.filterSections.browse,ao.SourceProgramCode);i.some(o=>o.value===e)||(i.push(new mX(e)),this.filtersService.updateFilters(this.filtersService.filterSections.browse,i,ao.SourceProgramCode),this.applyFilters())}loadData(e=!1){this.isOfferDataLoaded.set(!1),wy({flatItems:this.timelineEntryService.getFlattenedAvailableItemSummaries(e),taxonomies:this.marketplaceService.getTaxonomy(e),taxonomyTree:this.marketplaceService.getTaxonomyTree(e),featuredOffers:this.marketplaceService.getOfferFlags("FEATURED",e)}).subscribe({next:({flatItems:i,taxonomies:o,taxonomyTree:s,featuredOffers:a})=>{if(i&&o&&s&&a){new Map(o.map(I=>[I.key,I.displayName]));let c=this.filtersService.browseFilters(),d=c.find(I=>I.type===ao.FilterText);this.searchTerm.set(d?.value??""),this.taxonomies.set(o),this.taxonomyTree.set(s);let f=c.filter(I=>I.type===ao.TaxonomyCategory).map(I=>I.value),v=this.getSelectedTaxonomyNodes(s,f,[]);this.initiallySelectedNodes.set(v),this.cacheService.get(`${this.filtersService.filterSections.browse}:showGrid`).then(I=>{this.showGrid.set(I??!0),this.isFilterBarDataLoaded.set(!0),this.isOfferDataLoaded.set(!0)});let w=a.map(I=>I.offerId.toLowerCase());w.push(...i.filter(I=>I.produceOfferDetails?.isFeatured).map(I=>I.offerId.toLowerCase()));let x=i.filter(I=>w.includes(I.offerId.toLowerCase())).sort((I,M)=>I.endTimeUTC||M.endTimeUTC?I.endTimeUTC?M.endTimeUTC?I.endTimeUTC-M.endTimeUTC:-1:1:0);this.featuredOfferIds.set(x.map(I=>I.offerId.toLowerCase())),this.featuredItems.set(x),this.flatItems.set(i)}},error:i=>{console.error("API Error:",i)}})}exportData(){this.browseItemTable().export()}getSelectedTaxonomyNodes(e,i,o){return e.forEach(s=>{(i.includes(s.key)||i.some(a=>a.startsWith(s.key)))&&o.push(s),s.children.length&&this.getSelectedTaxonomyNodes(s.children,i,o)}),o}filterSearchTerm(e){this.filtersService.updateFilterText(this.filtersService.filterSections.browse,e),this.applyFilters()}onShowGridChanged(e){this.showGrid.set(e),this.cacheService.cache({key:`${this.filtersService.filterSections.browse}:showGrid`,value:e,persist:!0,ttl:1/0,type:"ui"})}onRefreshRequested(){this.loadData(!0)}applyFilters(){let e=this.filtersService.applySavedFilters(this.filtersService.filterSections.browse,this.flatItems());this.filteredItems.set(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["marketplace-browse"]],viewQuery:function(i,o){1&i&&n.wEZ(o.browseItemTable,QCt,5),2&i&&n.NyB()},inputs:{isProducePurchasingEnabled:[1,"isProducePurchasingEnabled"]},decls:2,vars:1,consts:[["browseItemTable",""],[1,"tw-flex","tw-h-full","tw-flex-col","tw-items-center","tw-justify-center"],[1,"tw-mb-4","tw-gap-8"],[1,"tw-flex","tw-h-full","tw-flex-auto","tw-flex-col"],[1,"tw-mb-2","tw-mr-2","tw-flex","tw-items-center","tw-gap-6"],["placeholder","Search by item name, brand, category, or UPC number",1,"tw-flex-grow",3,"searchTermChanged","searchTermValue"],[3,"showLabel"],[3,"showGrid","taxonomyTree","initiallySelectedNodes"],[1,"tw-flex","tw-justify-between"],[1,"-tw-ml-2","tw-mb-0","tw-flex","tw-min-h-9","tw-list-none","tw-flex-wrap","tw-p-0"],[1,"tw-mb-2","tw-ml-2","tw-mt-4"],[1,"tw-flex","tw-gap-x-2"],[1,"tw-block","tw-h-full","tw-w-full"],[1,"tw-font-bold"],[3,"onShowGridChanged","onRefreshRequested","showGrid","taxonomyTree","initiallySelectedNodes"],[1,"tw-flex","tw-items-center","tw-space-x-1","tw-rounded-full","tw-bg-fa-orange-500","tw-px-6","tw-py-3","tw-text-sm","tw-font-semibold","tw-leading-none","tw-text-white"],["title","Remove Filter",1,"btn-reset","tw-text-orange-200","tw-transition-colors","hover:tw-text-white",3,"click"],[1,"pi","pi-times-circle","tw-text-xs"],["type","button",1,"btn","btn-sm","btn-primary","action-button",3,"click"],[1,"tw-mb-4"],[1,"tw-py-2"],[1,"tw-text-lg","tw-font-bold"],["overflow","WRAP",3,"entryGroups"],[1,"tw-text-lg","tw-font-semibold"],["label","See All","size","small",3,"onClick","link"],["overflow","SCROLL",3,"entryGroups"],[1,"tw-flex","tw-items-center","tw-justify-between"],[1,"tw-w-full","tw-text-lg","tw-font-bold"],["visibleColumnsCacheKey","marketplace.browseGrid.visibleColumns",1,"tw-flex","tw-h-full","tw-flex-col",3,"onRefresh","entries","showReset"],["ariaLabel","loading"],[1,"tw-font-semibold"]],template:function(i,o){1&i&&n.DNE(0,dwt,15,9)(1,pwt,4,0,"div",1),2&i&&n.vxM(o.isOfferDataLoaded()?0:1)},dependencies:[Epe,_6,mf,Rp,wte,gn,y1t,Yz,Iv,Q_,g6],encapsulation:2})}}return t})();const fwt=({dt:t})=>`\n.p-divider-horizontal {\n    display: flex;\n    width: 100%;\n    position: relative;\n    align-items: center;\n    margin: ${t("divider.horizontal.margin")};\n    padding: ${t("divider.horizontal.padding")};\n}\n\n.p-divider-horizontal:before {\n    position: absolute;\n    display: block;\n    inset-block-start: 50%;\n    inset-inline-start: 0;\n    width: 100%;\n    content: "";\n    border-block-start: 1px solid ${t("divider.border.color")};\n}\n\n.p-divider-horizontal .p-divider-content {\n    padding: ${t("divider.horizontal.content.padding")};\n}\n\n.p-divider-vertical {\n    min-height: 100%;\n    display: flex;\n    position: relative;\n    justify-content: center;\n    margin: ${t("divider.vertical.margin")};\n    padding: ${t("divider.vertical.padding")};\n}\n\n.p-divider-vertical:before {\n    position: absolute;\n    display: block;\n    inset-block-start: 0;\n    inset-inline-start: 50%;\n    height: 100%;\n    content: "";\n    border-inline-start: 1px solid ${t("divider.border.color")};\n}\n\n.p-divider.p-divider-vertical .p-divider-content {\n    padding: ${t("divider.vertical.content.padding")};\n}\n\n.p-divider-content {\n    z-index: 1;\n    background: ${t("divider.content.background")};\n    color: ${t("divider.content.color")};\n}\n\n.p-divider-solid.p-divider-horizontal:before {\n    border-block-start-style: solid;\n}\n\n.p-divider-solid.p-divider-vertical:before {\n    border-inline-start-style: solid;\n}\n\n.p-divider-dashed.p-divider-horizontal:before {\n    border-block-start-style: dashed;\n}\n\n.p-divider-dashed.p-divider-vertical:before {\n    border-inline-start-style: dashed;\n}\n\n.p-divider-dotted.p-divider-horizontal:before {\n    border-block-start-style: dotted;\n}\n\n.p-divider-dotted.p-divider-vertical:before {\n    border-inline-start-style: dotted;\n}\n\n.p-divider-left:dir(rtl),\n.p-divider-right:dir(rtl) {\n    flex-direction: row-reverse;\n}\n`,mwt={root:({props:t})=>({justifyContent:"horizontal"===t.layout?"center"===t.align||null===t.align?"center":"left"===t.align?"flex-start":"right"===t.align?"flex-end":null:null,alignItems:"vertical"===t.layout?"center"===t.align||null===t.align?"center":"top"===t.align?"flex-start":"bottom"===t.align?"flex-end":null:null})},gwt={root:({props:t})=>["p-divider p-component","p-divider-"+t.layout,"p-divider-"+t.type,{"p-divider-left":"horizontal"===t.layout&&(!t.align||"left"===t.align)},{"p-divider-center":"horizontal"===t.layout&&"center"===t.align},{"p-divider-right":"horizontal"===t.layout&&"right"===t.align},{"p-divider-top":"vertical"===t.layout&&"top"===t.align},{"p-divider-center":"vertical"===t.layout&&(!t.align||"center"===t.align)},{"p-divider-bottom":"vertical"===t.layout&&"bottom"===t.align}],content:"p-divider-content"};let Ipe=(()=>{class t extends gs{name="divider";theme=fwt;classes=gwt;inlineStyles=mwt;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const _wt=["*"];let c0=(()=>{class t extends jo{style;styleClass;layout="horizontal";type="solid";align;_componentStyle=(0,n.WQX)(Ipe);get hostClass(){return this.styleClass}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["p-divider"]],hostVars:33,hostBindings:function(i,o){2&i&&(n.BMQ("aria-orientation",o.layout)("data-pc-name","divider")("role","separator"),n.HbH(o.hostClass),n.xc7("justify-content","horizontal"===o.layout?"center"===o.align||void 0===o.align?"center":"left"===o.align?"flex-start":"right"===o.align?"flex-end":null:null)("align-items","vertical"===o.layout?"center"===o.align||void 0===o.align?"center":"top"===o.align?"flex-start":"bottom"===o.align?"flex-end":null:null),n.AVh("p-divider",!0)("p-component",!0)("p-divider-horizontal","horizontal"===o.layout)("p-divider-vertical","vertical"===o.layout)("p-divider-solid","solid"===o.type)("p-divider-dashed","dashed"===o.type)("p-divider-dotted","dotted"===o.type)("p-divider-left","horizontal"===o.layout&&(!o.align||"left"===o.align))("p-divider-center","horizontal"===o.layout&&"center"===o.align||"vertical"===o.layout&&(!o.align||"center"===o.align))("p-divider-right","horizontal"===o.layout&&"right"===o.align)("p-divider-top","vertical"===o.layout&&"top"===o.align)("p-divider-bottom","vertical"===o.layout&&"bottom"===o.align))},inputs:{style:"style",styleClass:"styleClass",layout:"layout",type:"type",align:"align"},features:[n.Jv_([Ipe]),n.Vt3],ngContentSelectors:_wt,decls:2,vars:0,consts:[[1,"p-divider-content"]],template:function(i,o){1&i&&(n.NAR(),n.j41(0,"div",0),n.SdG(1),n.k0s())},dependencies:[gn,Di],encapsulation:2,changeDetection:0})}return t})(),Xy=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({imports:[c0]})}return t})();const ywt=({dt:t})=>`\n/*!\n* Quill Editor v1.3.3\n* https://quilljs.com/\n* Copyright (c) 2014, Jason Chen\n* Copyright (c) 2013, salesforce.com\n*/\n.ql-container {\n    box-sizing: border-box;\n    font-family: Helvetica, Arial, sans-serif;\n    font-size: 13px;\n    height: 100%;\n    margin: 0;\n    position: relative;\n}\n.ql-container.ql-disabled .ql-tooltip {\n    visibility: hidden;\n}\n.ql-container.ql-disabled .ql-editor ul[data-checked] > li::before {\n    pointer-events: none;\n}\n.ql-clipboard {\n    inset-inline-start: -100000px;\n    height: 1px;\n    overflow-y: hidden;\n    position: absolute;\n    top: 50%;\n}\n.ql-clipboard p {\n    margin: 0;\n    padding: 0;\n}\n.ql-editor {\n    box-sizing: border-box;\n    line-height: 1.42;\n    height: 100%;\n    outline: none;\n    overflow-y: auto;\n    padding: 12px 15px;\n    tab-size: 4;\n    -moz-tab-size: 4;\n    text-align: start;\n    white-space: pre-wrap;\n    word-wrap: break-word;\n}\n.ql-editor > * {\n    cursor: text;\n}\n.ql-editor p,\n.ql-editor ol,\n.ql-editor ul,\n.ql-editor pre,\n.ql-editor blockquote,\n.ql-editor h1,\n.ql-editor h2,\n.ql-editor h3,\n.ql-editor h4,\n.ql-editor h5,\n.ql-editor h6 {\n    margin: 0;\n    padding: 0;\n    counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol,\n.ql-editor ul {\n    padding-inline-start: 1.5rem;\n}\n.ql-editor ol > li,\n.ql-editor ul > li {\n    list-style-type: none;\n}\n.ql-editor ul > li::before {\n    content: '\\2022';\n}\n.ql-editor ul[data-checked='true'],\n.ql-editor ul[data-checked='false'] {\n    pointer-events: none;\n}\n.ql-editor ul[data-checked='true'] > li *,\n.ql-editor ul[data-checked='false'] > li * {\n    pointer-events: all;\n}\n.ql-editor ul[data-checked='true'] > li::before,\n.ql-editor ul[data-checked='false'] > li::before {\n    color: #777;\n    cursor: pointer;\n    pointer-events: all;\n}\n.ql-editor ul[data-checked='true'] > li::before {\n    content: '\\2611';\n}\n.ql-editor ul[data-checked='false'] > li::before {\n    content: '\\2610';\n}\n.ql-editor li::before {\n    display: inline-block;\n    white-space: nowrap;\n    width: 1.2rem;\n}\n.ql-editor li:not(.ql-direction-rtl)::before {\n    margin-inline-start: -1.5rem;\n    margin-inline-end: 0.3rem;\n    text-align: end;\n}\n.ql-editor li.ql-direction-rtl::before {\n    margin-inline-start: 0.3rem;\n    margin-inline-end: -1.5rem;\n}\n.ql-editor ol li:not(.ql-direction-rtl),\n.ql-editor ul li:not(.ql-direction-rtl) {\n    padding-inline-start: 1.5rem;\n}\n.ql-editor ol li.ql-direction-rtl,\n.ql-editor ul li.ql-direction-rtl {\n    padding-inline-end: 1.5rem;\n}\n.ql-editor ol li {\n    counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n    counter-increment: list-0;\n}\n.ql-editor ol li:before {\n    content: counter(list-0, decimal) '. ';\n}\n.ql-editor ol li.ql-indent-1 {\n    counter-increment: list-1;\n}\n.ql-editor ol li.ql-indent-1:before {\n    content: counter(list-1, lower-alpha) '. ';\n}\n.ql-editor ol li.ql-indent-1 {\n    counter-reset: list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-2 {\n    counter-increment: list-2;\n}\n.ql-editor ol li.ql-indent-2:before {\n    content: counter(list-2, lower-roman) '. ';\n}\n.ql-editor ol li.ql-indent-2 {\n    counter-reset: list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-3 {\n    counter-increment: list-3;\n}\n.ql-editor ol li.ql-indent-3:before {\n    content: counter(list-3, decimal) '. ';\n}\n.ql-editor ol li.ql-indent-3 {\n    counter-reset: list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-4 {\n    counter-increment: list-4;\n}\n.ql-editor ol li.ql-indent-4:before {\n    content: counter(list-4, lower-alpha) '. ';\n}\n.ql-editor ol li.ql-indent-4 {\n    counter-reset: list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-5 {\n    counter-increment: list-5;\n}\n.ql-editor ol li.ql-indent-5:before {\n    content: counter(list-5, lower-roman) '. ';\n}\n.ql-editor ol li.ql-indent-5 {\n    counter-reset: list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-6 {\n    counter-increment: list-6;\n}\n.ql-editor ol li.ql-indent-6:before {\n    content: counter(list-6, decimal) '. ';\n}\n.ql-editor ol li.ql-indent-6 {\n    counter-reset: list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-7 {\n    counter-increment: list-7;\n}\n.ql-editor ol li.ql-indent-7:before {\n    content: counter(list-7, lower-alpha) '. ';\n}\n.ql-editor ol li.ql-indent-7 {\n    counter-reset: list-8 list-9;\n}\n.ql-editor ol li.ql-indent-8 {\n    counter-increment: list-8;\n}\n.ql-editor ol li.ql-indent-8:before {\n    content: counter(list-8, lower-roman) '. ';\n}\n.ql-editor ol li.ql-indent-8 {\n    counter-reset: list-9;\n}\n.ql-editor ol li.ql-indent-9 {\n    counter-increment: list-9;\n}\n.ql-editor ol li.ql-indent-9:before {\n    content: counter(list-9, decimal) '. ';\n}\n.ql-editor .ql-video {\n    display: block;\n    max-width: 100%;\n}\n.ql-editor .ql-video.ql-align-center {\n    margin: 0 auto;\n}\n.ql-editor .ql-video.ql-align-right {\n    margin: 0 0 0 auto;\n}\n.ql-editor .ql-bg-black {\n    background: #000;\n}\n.ql-editor .ql-bg-red {\n    background: #e60000;\n}\n.ql-editor .ql-bg-orange {\n    background: #f90;\n}\n.ql-editor .ql-bg-yellow {\n    background: #ff0;\n}\n.ql-editor .ql-bg-green {\n    background: #008a00;\n}\n.ql-editor .ql-bg-blue {\n    background: #06c;\n}\n.ql-editor .ql-bg-purple {\n    background: #93f;\n}\n.ql-editor .ql-color-white {\n    color: #fff;\n}\n.ql-editor .ql-color-red {\n    color: #e60000;\n}\n.ql-editor .ql-color-orange {\n    color: #f90;\n}\n.ql-editor .ql-color-yellow {\n    color: #ff0;\n}\n.ql-editor .ql-color-green {\n    color: #008a00;\n}\n.ql-editor .ql-color-blue {\n    color: #06c;\n}\n.ql-editor .ql-color-purple {\n    color: #93f;\n}\n.ql-editor .ql-font-serif {\n    font-family: Georgia, Times New Roman, serif;\n}\n.ql-editor .ql-font-monospace {\n    font-family: Monaco, Courier New, monospace;\n}\n.ql-editor .ql-size-small {\n    font-size: 0.75rem;\n}\n.ql-editor .ql-size-large {\n    font-size: 1.5rem;\n}\n.ql-editor .ql-size-huge {\n    font-size: 2.5rem;\n}\n.ql-editor .ql-direction-rtl {\n    direction: rtl;\n    text-align: inherit;\n}\n.ql-editor .ql-align-center {\n    text-align: center;\n}\n.ql-editor .ql-align-justify {\n    text-align: justify;\n}\n.ql-editor .ql-align-right {\n    text-align: end;\n}\n.ql-editor.ql-blank::before {\n    color: rgba(0, 0, 0, 0.6);\n    content: attr(data-placeholder);\n    font-style: italic;\n    inset-inline-start: 15px;\n    pointer-events: none;\n    position: absolute;\n    inset-inline-end: 15px;\n}\n.ql-snow.ql-toolbar:after,\n.ql-snow .ql-toolbar:after {\n    clear: both;\n    content: '';\n    display: table;\n}\n.ql-snow.ql-toolbar button,\n.ql-snow .ql-toolbar button {\n    background: none;\n    border: none;\n    cursor: pointer;\n    display: inline-block;\n    float: left;\n    height: 24px;\n    padding-block: 3px;\n    padding-inline: 5px;\n    width: 28px;\n}\n.ql-snow.ql-toolbar button svg,\n.ql-snow .ql-toolbar button svg {\n    float: left;\n    height: 100%;\n}\n.ql-snow.ql-toolbar button:active:hover,\n.ql-snow .ql-toolbar button:active:hover {\n    outline: none;\n}\n.ql-snow.ql-toolbar input.ql-image[type='file'],\n.ql-snow .ql-toolbar input.ql-image[type='file'] {\n    display: none;\n}\n.ql-snow.ql-toolbar button:hover,\n.ql-snow .ql-toolbar button:hover,\n.ql-snow.ql-toolbar button:focus,\n.ql-snow .ql-toolbar button:focus,\n.ql-snow.ql-toolbar button.ql-active,\n.ql-snow .ql-toolbar button.ql-active,\n.ql-snow.ql-toolbar .ql-picker-label:hover,\n.ql-snow .ql-toolbar .ql-picker-label:hover,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active,\n.ql-snow.ql-toolbar .ql-picker-item:hover,\n.ql-snow .ql-toolbar .ql-picker-item:hover,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected {\n    color: #06c;\n}\n.ql-snow.ql-toolbar button:hover .ql-fill,\n.ql-snow .ql-toolbar button:hover .ql-fill,\n.ql-snow.ql-toolbar button:focus .ql-fill,\n.ql-snow .ql-toolbar button:focus .ql-fill,\n.ql-snow.ql-toolbar button.ql-active .ql-fill,\n.ql-snow .ql-toolbar button.ql-active .ql-fill,\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,\n.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill {\n    fill: #06c;\n}\n.ql-snow.ql-toolbar button:hover .ql-stroke,\n.ql-snow .ql-toolbar button:hover .ql-stroke,\n.ql-snow.ql-toolbar button:focus .ql-stroke,\n.ql-snow .ql-toolbar button:focus .ql-stroke,\n.ql-snow.ql-toolbar button.ql-active .ql-stroke,\n.ql-snow .ql-toolbar button.ql-active .ql-stroke,\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,\n.ql-snow.ql-toolbar button:hover .ql-stroke-miter,\n.ql-snow .ql-toolbar button:hover .ql-stroke-miter,\n.ql-snow.ql-toolbar button:focus .ql-stroke-miter,\n.ql-snow .ql-toolbar button:focus .ql-stroke-miter,\n.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,\n.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter {\n    stroke: #06c;\n}\n@media (pointer: coarse) {\n    .ql-snow.ql-toolbar button:hover:not(.ql-active),\n    .ql-snow .ql-toolbar button:hover:not(.ql-active) {\n        color: #444;\n    }\n    .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,\n    .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,\n    .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,\n    .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill {\n        fill: #444;\n    }\n    .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,\n    .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,\n    .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,\n    .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter {\n        stroke: #444;\n    }\n}\n.ql-snow {\n    box-sizing: border-box;\n}\n.ql-snow * {\n    box-sizing: border-box;\n}\n.ql-snow .ql-hidden {\n    display: none;\n}\n.ql-snow .ql-out-bottom,\n.ql-snow .ql-out-top {\n    visibility: hidden;\n}\n.ql-snow .ql-tooltip {\n    position: absolute;\n    transform: translateY(10px);\n}\n.ql-snow .ql-tooltip a {\n    cursor: pointer;\n    text-decoration: none;\n}\n.ql-snow .ql-tooltip.ql-flip {\n    transform: translateY(-10px);\n}\n.ql-snow .ql-formats {\n    display: inline-block;\n    vertical-align: middle;\n}\n.ql-snow .ql-formats:after {\n    clear: both;\n    content: '';\n    display: table;\n}\n.ql-snow .ql-stroke {\n    fill: none;\n    stroke: #444;\n    stroke-linecap: round;\n    stroke-linejoin: round;\n    stroke-width: 2;\n}\n.ql-snow .ql-stroke-miter {\n    fill: none;\n    stroke: #444;\n    stroke-miterlimit: 10;\n    stroke-width: 2;\n}\n.ql-snow .ql-fill,\n.ql-snow .ql-stroke.ql-fill {\n    fill: #444;\n}\n.ql-snow .ql-empty {\n    fill: none;\n}\n.ql-snow .ql-even {\n    fill-rule: evenodd;\n}\n.ql-snow .ql-thin,\n.ql-snow .ql-stroke.ql-thin {\n    stroke-width: 1;\n}\n.ql-snow .ql-transparent {\n    opacity: 0.4;\n}\n.ql-snow .ql-direction svg:last-child {\n    display: none;\n}\n.ql-snow .ql-direction.ql-active svg:last-child {\n    display: inline;\n}\n.ql-snow .ql-direction.ql-active svg:first-child {\n    display: none;\n}\n.ql-snow .ql-editor h1 {\n    font-size: 2rem;\n}\n.ql-snow .ql-editor h2 {\n    font-size: 1.5rem;\n}\n.ql-snow .ql-editor h3 {\n    font-size: 1.17rem;\n}\n.ql-snow .ql-editor h4 {\n    font-size: 1rem;\n}\n.ql-snow .ql-editor h5 {\n    font-size: 0.83rem;\n}\n.ql-snow .ql-editor h6 {\n    font-size: 0.67rem;\n}\n.ql-snow .ql-editor a {\n    text-decoration: underline;\n}\n.ql-snow .ql-editor blockquote {\n    border-inline-start: 4px solid #ccc;\n    margin-block-end: 5px;\n    margin-block-start: 5px;\n    padding-inline-start: 16px;\n}\n.ql-snow .ql-editor code,\n.ql-snow .ql-editor pre {\n    background: #f0f0f0;\n    border-radius: 3px;\n}\n.ql-snow .ql-editor pre {\n    white-space: pre-wrap;\n    margin-block-end: 5px;\n    margin-block-start: 5px;\n    padding: 5px 10px;\n}\n.ql-snow .ql-editor code {\n    font-size: 85%;\n    padding: 2px 4px;\n}\n.ql-snow .ql-editor pre.ql-syntax {\n    background: #23241f;\n    color: #f8f8f2;\n    overflow: visible;\n}\n.ql-snow .ql-editor img {\n    max-width: 100%;\n}\n.ql-snow .ql-picker {\n    color: #444;\n    display: inline-block;\n    float: left;\n    inset-inline-start: 0;\n    font-size: 14px;\n    font-weight: 500;\n    height: 24px;\n    position: relative;\n    vertical-align: middle;\n}\n.ql-snow .ql-picker-label {\n    cursor: pointer;\n    display: inline-block;\n    height: 100%;\n    padding-inline-start: 8px;\n    padding-inline-end: 2px;\n    position: relative;\n    width: 100%;\n}\n.ql-snow .ql-picker-label::before {\n    display: inline-block;\n    line-height: 22px;\n}\n.ql-snow .ql-picker-options {\n    background: #fff;\n    display: none;\n    min-width: 100%;\n    padding: 4px 8px;\n    position: absolute;\n    white-space: nowrap;\n}\n.ql-snow .ql-picker-options .ql-picker-item {\n    cursor: pointer;\n    display: block;\n    padding-block-end: 5px;\n    padding-block-start: 5px;\n}\n.ql-snow .ql-picker.ql-expanded .ql-picker-label {\n    color: #ccc;\n    z-index: 2;\n}\n.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill {\n    fill: #ccc;\n}\n.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke {\n    stroke: #ccc;\n}\n.ql-snow .ql-picker.ql-expanded .ql-picker-options {\n    display: block;\n    margin-block-start: -1px;\n    top: 100%;\n    z-index: 1;\n}\n.ql-snow .ql-color-picker,\n.ql-snow .ql-icon-picker {\n    width: 28px;\n}\n.ql-snow .ql-color-picker .ql-picker-label,\n.ql-snow .ql-icon-picker .ql-picker-label {\n    padding: 2px 4px;\n}\n.ql-snow .ql-color-picker .ql-picker-label svg,\n.ql-snow .ql-icon-picker .ql-picker-label svg {\n    inset-inline-end: 4px;\n}\n.ql-snow .ql-icon-picker .ql-picker-options {\n    padding: 4px 0;\n}\n.ql-snow .ql-icon-picker .ql-picker-item {\n    height: 24px;\n    width: 24px;\n    padding: 2px 4px;\n}\n.ql-snow .ql-color-picker .ql-picker-options {\n    padding: 3px 5px;\n    width: 152px;\n}\n.ql-snow .ql-color-picker .ql-picker-item {\n    border: 1px solid transparent;\n    float: left;\n    height: 16px;\n    margin: 2px;\n    padding: 0;\n    width: 16px;\n}\n.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg {\n    position: absolute;\n    margin-block-start: -9px;\n    inset-inline-end: 0;\n    top: 50%;\n    width: 18px;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=''])::before {\n    content: attr(data-label);\n}\n.ql-snow .ql-picker.ql-header {\n    width: 98px;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item::before {\n    content: 'Normal';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value='1']::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value='1']::before {\n    content: 'Heading 1';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value='2']::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value='2']::before {\n    content: 'Heading 2';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value='3']::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value='3']::before {\n    content: 'Heading 3';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value='4']::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value='4']::before {\n    content: 'Heading 4';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value='5']::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value='5']::before {\n    content: 'Heading 5';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value='6']::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value='6']::before {\n    content: 'Heading 6';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value='1']::before {\n    font-size: 2rem;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value='2']::before {\n    font-size: 1.5rem;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value='3']::before {\n    font-size: 1.17rem;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value='4']::before {\n    font-size: 1rem;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value='5']::before {\n    font-size: 0.83rem;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value='6']::before {\n    font-size: 0.67rem;\n}\n.ql-snow .ql-picker.ql-font {\n    width: 108px;\n}\n.ql-snow .ql-picker.ql-font .ql-picker-label::before,\n.ql-snow .ql-picker.ql-font .ql-picker-item::before {\n    content: 'Sans Serif';\n}\n.ql-snow .ql-picker.ql-font .ql-picker-label[data-value='serif']::before,\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value='serif']::before {\n    content: 'Serif';\n}\n.ql-snow .ql-picker.ql-font .ql-picker-label[data-value='monospace']::before,\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value='monospace']::before {\n    content: 'Monospace';\n}\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value='serif']::before {\n    font-family: Georgia, Times New Roman, serif;\n}\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value='monospace']::before {\n    font-family: Monaco, Courier New, monospace;\n}\n.ql-snow .ql-picker.ql-size {\n    width: 98px;\n}\n.ql-snow .ql-picker.ql-size .ql-picker-label::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item::before {\n    content: 'Normal';\n}\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-value='small']::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value='small']::before {\n    content: 'Small';\n}\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-value='large']::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value='large']::before {\n    content: 'Large';\n}\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-value='huge']::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value='huge']::before {\n    content: 'Huge';\n}\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value='small']::before {\n    font-size: 10px;\n}\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value='large']::before {\n    font-size: 18px;\n}\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value='huge']::before {\n    font-size: 32px;\n}\n.ql-snow .ql-color-picker.ql-background .ql-picker-item {\n    background: #fff;\n}\n.ql-snow .ql-color-picker.ql-color .ql-picker-item {\n    background: #000;\n}\n.ql-toolbar.ql-snow {\n    border: 1px solid #ccc;\n    box-sizing: border-box;\n    font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;\n    padding: 8px;\n}\n.ql-toolbar.ql-snow .ql-formats {\n    margin-inline-end: 15px;\n}\n.ql-toolbar.ql-snow .ql-picker-label {\n    border: 1px solid transparent;\n}\n.ql-toolbar.ql-snow .ql-picker-options {\n    border: 1px solid transparent;\n    box-shadow: rgba(0, 0, 0, 0.2) 0 2px 8px;\n}\n.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label {\n    border-color: #ccc;\n}\n.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options {\n    border-color: #ccc;\n}\n.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,\n.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover {\n    border-color: #000;\n}\n.ql-toolbar.ql-snow + .ql-container.ql-snow {\n    border-block-start: 0;\n}\n.ql-snow .ql-tooltip {\n    background: #fff;\n    border: 1px solid #ccc;\n    box-shadow: 0 0 5px #ddd;\n    color: #444;\n    padding: 5px 12px;\n    white-space: nowrap;\n}\n.ql-snow .ql-tooltip::before {\n    content: 'Visit URL:';\n    line-height: 26px;\n    margin-inline-end: 8px;\n}\n.ql-snow .ql-tooltip input[type='text'] {\n    display: none;\n    border: 1px solid #ccc;\n    font-size: 13px;\n    height: 26px;\n    margin: 0;\n    padding: 3px 5px;\n    width: 170px;\n}\n.ql-snow .ql-tooltip a.ql-preview {\n    display: inline-block;\n    max-width: 200px;\n    overflow-x: hidden;\n    text-overflow: ellipsis;\n    vertical-align: top;\n}\n.ql-snow .ql-tooltip a.ql-action::after {\n    border-inline-end: 1px solid #ccc;\n    content: 'Edit';\n    margin-inline-start: 16px;\n    padding-inline-end: 8px;\n}\n.ql-snow .ql-tooltip a.ql-remove::before {\n    content: 'Remove';\n    margin-inline-start: 8px;\n}\n.ql-snow .ql-tooltip a {\n    line-height: 26px;\n}\n.ql-snow .ql-tooltip.ql-editing a.ql-preview,\n.ql-snow .ql-tooltip.ql-editing a.ql-remove {\n    display: none;\n}\n.ql-snow .ql-tooltip.ql-editing input[type='text'] {\n    display: inline-block;\n}\n.ql-snow .ql-tooltip.ql-editing a.ql-action::after {\n    border-inline-end: 0;\n    content: 'Save';\n    padding-inline-end: 0;\n}\n.ql-snow .ql-tooltip[data-mode='link']::before {\n    content: 'Enter link:';\n}\n.ql-snow .ql-tooltip[data-mode='formula']::before {\n    content: 'Enter formula:';\n}\n.ql-snow .ql-tooltip[data-mode='video']::before {\n    content: 'Enter video:';\n}\n.ql-snow a {\n    color: #06c;\n}\n.ql-container.ql-snow {\n    border: 1px solid #ccc;\n}\n\n.p-editor .p-editor-toolbar {\n    background: ${t("editor.toolbar.background")};\n    border-start-end-radius: ${t("editor.toolbar.border.radius")};\n    border-start-start-radius: ${t("editor.toolbar.border.radius")};\n}\n\n.p-editor .p-editor-toolbar.ql-snow {\n    border: 1px solid ${t("editor.toolbar.border.color")};\n}\n\n.p-editor .p-editor-toolbar.ql-snow .ql-stroke {\n    stroke: ${t("editor.toolbar.item.color")};\n}\n\n.p-editor .p-editor-toolbar.ql-snow .ql-fill {\n    fill: ${t("editor.toolbar.item.color")};\n}\n\n.p-editor .p-editor-toolbar.ql-snow .ql-picker .ql-picker-label {\n    border: 0 none;\n    color: ${t("editor.toolbar.item.color")};\n}\n\n.p-editor .p-editor-toolbar.ql-snow .ql-picker .ql-picker-label:hover {\n    color: ${t("editor.toolbar.item.hover.color")};\n}\n\n.p-editor .p-editor-toolbar.ql-snow .ql-picker .ql-picker-label:hover .ql-stroke {\n    stroke: ${t("editor.toolbar.item.hover.color")};\n}\n\n.p-editor .p-editor-toolbar.ql-snow .ql-picker .ql-picker-label:hover .ql-fill {\n    fill: ${t("editor.toolbar.item.hover.color")};\n}\n\n.p-editor .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label {\n    color: ${t("editor.toolbar.item.active.color")};\n}\n\n.p-editor .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke {\n    stroke: ${t("editor.toolbar.item.active.color")};\n}\n\n.p-editor .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill {\n    fill: ${t("editor.toolbar.item.active.color")};\n}\n\n.p-editor .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options {\n    background: ${t("editor.overlay.background")};\n    border: 1px solid ${t("editor.overlay.border.color")};\n    box-shadow: ${t("editor.overlay.shadow")};\n    border-radius: ${t("editor.overlay.border.radius")};\n    padding: ${t("editor.overlay.padding")};\n}\n\n.p-editor .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options .ql-picker-item {\n    color: ${t("editor.overlay.option.color")};\n    border-radius: ${t("editor.overlay.option.border.radius")};\n}\n\n.p-editor .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options .ql-picker-item:hover {\n    background: ${t("editor.overlay.option.focus.background")};\n    color: ${t("editor.overlay.option.focus.color")};\n}\n\n.p-editor .p-editor-toolbar.ql-snow .ql-picker.ql-expanded:not(.ql-icon-picker) .ql-picker-item {\n    padding: ${t("editor.overlay.option.padding")};\n}\n\n.p-editor .p-editor-content {\n    border-end-end-radius: ${t("editor.content.border.radius")};\n    border-end-start-radius: ${t("editor.content.border.radius")};\n}\n\n.p-editor .p-editor-content.ql-snow {\n    border: 1px solid ${t("editor.content.border.color")};\n}\n\n.p-editor .p-editor-content .ql-editor {\n    background: ${t("editor.content.background")};\n    color: ${t("editor.content.color")};\n    border-end-end-radius: ${t("editor.content.border.radius")};\n    border-end-start-radius: ${t("editor.content.border.radius")};\n}\n\n.p-editor .ql-snow.ql-toolbar button:hover,\n.p-editor .ql-snow.ql-toolbar button:focus {\n    color: ${t("editor.toolbar.item.hover.color")};\n}\n\n.p-editor .ql-snow.ql-toolbar button:hover .ql-stroke,\n.p-editor .ql-snow.ql-toolbar button:focus .ql-stroke {\n    stroke: ${t("editor.toolbar.item.hover.color")};\n}\n\n.p-editor .ql-snow.ql-toolbar button:hover .ql-fill,\n.p-editor .ql-snow.ql-toolbar button:focus .ql-fill {\n    fill: ${t("editor.toolbar.item.hover.color")};\n}\n\n.p-editor .ql-snow.ql-toolbar button.ql-active,\n.p-editor .ql-snow.ql-toolbar .ql-picker-label.ql-active,\n.p-editor .ql-snow.ql-toolbar .ql-picker-item.ql-selected {\n    color: ${t("editor.toolbar.item.active.color")};\n}\n\n.p-editor .ql-snow.ql-toolbar button.ql-active .ql-stroke,\n.p-editor .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,\n.p-editor .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke {\n    stroke: ${t("editor.toolbar.item.active.color")};\n}\n\n.p-editor .ql-snow.ql-toolbar button.ql-active .ql-fill,\n.p-editor .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,\n.p-editor .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill {\n    fill: ${t("editor.toolbar.item.active.color")};\n}\n\n.p-editor .ql-snow.ql-toolbar button.ql-active .ql-picker-label,\n.p-editor .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-picker-label,\n.p-editor .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-picker-label {\n    color: ${t("editor.toolbar.item.active.color")};\n}\n`,bwt={root:"p-editor",toolbar:"p-editor-toolbar",content:"p-editor-content"};let Ape=(()=>{class t extends gs{name="editor";theme=ywt;classes=bwt;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const wwt=["header"],Twt=[[["p-header"]]],Swt=["p-header"];function xwt(t,r){1&t&&n.eu8(0)}function Ewt(t,r){if(1&t&&(n.j41(0,"div",3),n.SdG(1),n.DNE(2,xwt,1,0,"ng-container",4),n.k0s()),2&t){const e=n.XpG();n.R7$(2),n.Y8G("ngTemplateOutlet",e.headerTemplate||e._headerTemplate)}}function Dwt(t,r){1&t&&(n.j41(0,"div",3)(1,"span",5)(2,"select",6)(3,"option",7),n.EFF(4,"Heading"),n.k0s(),n.j41(5,"option",8),n.EFF(6,"Subheading"),n.k0s(),n.j41(7,"option",9),n.EFF(8,"Normal"),n.k0s()(),n.j41(9,"select",10)(10,"option",9),n.EFF(11,"Sans Serif"),n.k0s(),n.j41(12,"option",11),n.EFF(13,"Serif"),n.k0s(),n.j41(14,"option",12),n.EFF(15,"Monospace"),n.k0s()()(),n.j41(16,"span",5),n.nrm(17,"button",13)(18,"button",14)(19,"button",15),n.k0s(),n.j41(20,"span",5),n.nrm(21,"select",16)(22,"select",17),n.k0s(),n.j41(23,"span",5),n.nrm(24,"button",18)(25,"button",19),n.j41(26,"select",20),n.nrm(27,"option",9),n.j41(28,"option",21),n.EFF(29,"center"),n.k0s(),n.j41(30,"option",22),n.EFF(31,"right"),n.k0s(),n.j41(32,"option",23),n.EFF(33,"justify"),n.k0s()()(),n.j41(34,"span",5),n.nrm(35,"button",24)(36,"button",25)(37,"button",26),n.k0s(),n.j41(38,"span",5),n.nrm(39,"button",27),n.k0s()())}const kwt={provide:tl,useExisting:(0,n.Rfq)(()=>y6),multi:!0};let y6=(()=>{class t extends jo{style;styleClass;placeholder;formats;modules;bounds;scrollingContainer;debug;get readonly(){return this._readonly}set readonly(e){this._readonly=e,this.quill&&(this._readonly?this.quill.disable():this.quill.enable())}onInit=new n.bkB;onTextChange=new n.bkB;onSelectionChange=new n.bkB;toolbar;value;delayedCommand=null;_readonly=!1;onModelChange=()=>{};onModelTouched=()=>{};quill;dynamicQuill;headerTemplate;templates;_headerTemplate;get isAttachedQuillEditorToDOM(){return this.quillElements?.editorElement?.isConnected}quillElements;_componentStyle=(0,n.WQX)(Ape);constructor(){super(),(0,n.mal)(()=>{this.initQuillElements(),this.initQuillEditor()})}ngAfterContentInit(){this.templates.forEach(e=>{"header"===e.getType()&&(this.headerTemplate=e.template)})}writeValue(e){if(this.value=e,this.quill)if(e){const i=()=>{this.quill.setContents(this.quill.clipboard.convert(this.dynamicQuill.version.startsWith("2")?{html:this.value}:this.value))};this.isAttachedQuillEditorToDOM?i():this.delayedCommand=i}else{const i=()=>{this.quill.setText("")};this.isAttachedQuillEditorToDOM?i():this.delayedCommand=i}}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}getQuill(){return this.quill}initQuillEditor(){ts(this.platformId)||(this.dynamicQuill?this.createQuillEditor():Promise.resolve().then(b.bind(b,9825)).then(e=>{this.dynamicQuill=e.default,this.createQuillEditor()}).catch(e=>console.error(e.message)))}createQuillEditor(){this.initQuillElements();const{toolbarElement:e,editorElement:i}=this.quillElements;let o={toolbar:e},s=this.modules?{...o,...this.modules}:o;this.quill=new this.dynamicQuill(i,{modules:s,placeholder:this.placeholder,readOnly:this.readonly,theme:"snow",formats:this.formats,bounds:this.bounds,debug:this.debug,scrollingContainer:this.scrollingContainer});const a=this.dynamicQuill.version.startsWith("2");this.value&&this.quill.setContents(this.quill.clipboard.convert(a?{html:this.value}:this.value)),this.quill.on("text-change",(l,c,d)=>{if("user"===d){let f=a?this.quill.getSemanticHTML():xo(i,".ql-editor").innerHTML,v=this.quill.getText().trim();"<p><br></p>"===f&&(f=null),this.onTextChange.emit({htmlValue:f,textValue:v,delta:l,source:d}),this.onModelChange(f),this.onModelTouched()}}),this.quill.on("selection-change",(l,c,d)=>{this.onSelectionChange.emit({range:l,oldRange:c,source:d})}),this.onInit.emit({editor:this.quill})}initQuillElements(){this.quillElements||(this.quillElements={editorElement:xo(this.el.nativeElement,"div.p-editor-content"),toolbarElement:xo(this.el.nativeElement,"div.p-editor-toolbar")})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=n.VBU({type:t,selectors:[["p-editor"]],contentQueries:function(i,o,s){if(1&i&&(n.wni(s,Q5,5),n.wni(s,wwt,4),n.wni(s,hs,4)),2&i){let a;n.mGM(a=n.lsd())&&(o.toolbar=a.first),n.mGM(a=n.lsd())&&(o.headerTemplate=a.first),n.mGM(a=n.lsd())&&(o.templates=a)}},hostAttrs:[1,"p-editor"],inputs:{style:"style",styleClass:"styleClass",placeholder:"placeholder",formats:"formats",modules:"modules",bounds:"bounds",scrollingContainer:"scrollingContainer",debug:"debug",readonly:"readonly"},outputs:{onInit:"onInit",onTextChange:"onTextChange",onSelectionChange:"onSelectionChange"},features:[n.Jv_([kwt,Ape]),n.Vt3],ngContentSelectors:Swt,decls:4,vars:6,consts:[[3,"ngClass"],["class","p-editor-toolbar",4,"ngIf"],[1,"p-editor-content",3,"ngStyle"],[1,"p-editor-toolbar"],[4,"ngTemplateOutlet"],[1,"ql-formats"],[1,"ql-header"],["value","1"],["value","2"],["selected",""],[1,"ql-font"],["value","serif"],["value","monospace"],["aria-label","Bold","type","button",1,"ql-bold"],["aria-label","Italic","type","button",1,"ql-italic"],["aria-label","Underline","type","button",1,"ql-underline"],[1,"ql-color"],[1,"ql-background"],["value","ordered","aria-label","Ordered List","type","button",1,"ql-list"],["value","bullet","aria-label","Unordered List","type","button",1,"ql-list"],[1,"ql-align"],["value","center"],["value","right"],["value","justify"],["aria-label","Insert Link","type","button",1,"ql-link"],["aria-label","Insert Image","type","button",1,"ql-image"],["aria-label","Insert Code Block","type","button",1,"ql-code-block"],["aria-label","Remove Styles","type","button",1,"ql-clean"]],template:function(i,o){1&i&&(n.NAR(Twt),n.j41(0,"div",0),n.DNE(1,Ewt,3,1,"div",1)(2,Dwt,40,0,"div",1),n.nrm(3,"div",2),n.k0s()),2&i&&(n.HbH(o.styleClass),n.Y8G("ngClass","p-editor-container"),n.R7$(),n.Y8G("ngIf",o.toolbar||o.headerTemplate||o._headerTemplate),n.R7$(),n.Y8G("ngIf",!o.toolbar&&!o.headerTemplate&&!o._headerTemplate),n.R7$(),n.Y8G("ngStyle",o.style))},dependencies:[gn,bi,fi,uo,Jr,Di],encapsulation:2,changeDetection:0})}return t})(),Mpe=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({imports:[y6,Di,Di]})}return t})(),FX=(()=>{class t{transform(e){return[e?.addressLine1,e?.addressLine2,e?.city,e?.province,e?.postalCode].filter(Boolean).join(", ")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=n.EJ8({name:"formatEntityAddress",type:t,pure:!0})}}return t})();const Iwt=()=>({height:"300px"}),Awt=()=>["SUPPLIER"];function Mwt(t,r){if(1&t&&n.EFF(0),2&t){let e;const i=n.XpG(2);n.SpI(" Feeding America, Browsing As: ",null==(e=i.entityService.browsingAsEntity())?null:e.name," ")}}function Rwt(t,r){1&t&&n.nrm(0,"app-cart-button",4),2&t&&n.Y8G("showLabel",!0)}function Owt(t,r){if(1&t&&n.nrm(0,"img",8),2&t){const e=n.XpG(2);n.Y8G("src",e.supplierImageUri(),n.B4B)}}function Fwt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",11)(1,"div",16)(2,"button",17),n.bIt("click",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.createOfferFromSupplierDetail())}),n.EFF(3," Create Offer "),n.k0s(),n.j41(4,"button",18),n.bIt("click",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.editSupplier())}),n.EFF(5," Edit Supplier "),n.k0s()()()}if(2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("disabled",!e.isGrocery())}}function Pwt(t,r){if(1&t&&(n.j41(0,"div",13)(1,"div",19),n.EFF(2),n.k0s(),n.j41(3,"div",19),n.EFF(4),n.k0s(),n.j41(5,"div",19),n.EFF(6),n.k0s()()),2&t){const e=n.XpG(2);n.R7$(2),n.SpI(" ",e.supplierItems().length," active offers "),n.R7$(2),n.Lme(" ",e.activeCategoryCount()," active ",1===e.activeCategoryCount()?"category":"categories"," "),n.R7$(2),n.Lme(" ",e.activeWarehouses().length," active ",1===e.activeWarehouses().length?"warehouse":"warehouses"," ")}}function Lwt(t,r){}function Nwt(t,r){if(1&t&&(n.j41(0,"div",26),n.EFF(1),n.k0s(),n.j41(2,"div",27),n.EFF(3),n.nI1(4,"formatEntityAddress"),n.k0s()),2&t){const e=r.$implicit;n.R7$(),n.SpI(" ",e.name," "),n.R7$(2),n.SpI(" ",n.bMT(4,2,e)," ")}}function Gwt(t,r){if(1&t&&(n.j41(0,"p-card",20)(1,"span",21),n.EFF(2," Warehouse Information "),n.k0s(),n.j41(3,"div",22),n.Z7z(4,Nwt,5,4,null,null,n.Vm6),n.k0s()(),n.j41(6,"div",23)(7,"span",21),n.EFF(8," Available Offers "),n.k0s(),n.j41(9,"div",24),n.nrm(10,"app-browse-item-table",25),n.k0s()()),2&t){const e=n.XpG(2);n.R7$(4),n.Dyx(e.activeWarehouses()),n.R7$(6),n.Y8G("blockedColumns",n.lJ4(3,Awt))("entries",e.supplierItems())("showReset",!0)}}function Bwt(t,r){1&t&&(n.j41(0,"p-card",15)(1,"div",28),n.EFF(2," Sorry, we don't have any offers from this supplier right now... "),n.k0s(),n.j41(3,"div",29)(4,"div",30),n.EFF(5," Check back in soon as new offers become available regularly! "),n.k0s()()())}function Vwt(t,r){if(1&t&&(n.j41(0,"div",2)(1,"div",3),n.DNE(2,Mwt,1,1),n.k0s(),n.j41(3,"div"),n.DNE(4,Rwt,1,1,"app-cart-button",4),n.k0s()(),n.j41(5,"div",5)(6,"div",6)(7,"div",7),n.DNE(8,Owt,1,1,"img",8),n.k0s(),n.j41(9,"p-card",9)(10,"div",10),n.EFF(11),n.k0s(),n.DNE(12,Fwt,6,1,"div",11),n.nrm(13,"p-divider",12),n.DNE(14,Pwt,7,5,"div",13),n.j41(15,"p-editor",14),n.DNE(16,Lwt,0,0,"ng-template",null,0,n.C5r),n.k0s()()()(),n.DNE(18,Gwt,11,4)(19,Bwt,6,0,"p-card",15)),2&t){const e=n.XpG();n.R7$(2),n.vxM(e.entityService.isFANO()?2:-1),n.R7$(2),n.vxM(e.entityService.isFANO()?-1:4),n.R7$(4),n.vxM(e.supplierImageUri()&&e.supplierImageUri().length>0?8:-1),n.R7$(3),n.SpI(" ",e.supplierName()," "),n.R7$(),n.vxM(e.entityService.isFANO()?12:-1),n.R7$(2),n.vxM(e.hasActiveItems()?14:-1),n.R7$(),n.Aen(n.lJ4(12,Iwt)),n.Y8G("ngModel",e.supplierDescription())("readonly",!0),n.R7$(3),n.vxM(e.hasActiveItems()?18:-1),n.R7$(),n.vxM(e.hasActiveItems()?-1:19)}}function jwt(t,r){1&t&&(n.j41(0,"div",1),n.nrm(1,"p-progress-spinner",31),n.j41(2,"span",32),n.EFF(3,"Loading..."),n.k0s()())}let Hwt=(()=>{class t{constructor(){this.entityService=(0,n.WQX)(jh),this.filtersService=(0,n.WQX)(pP),this.marketplaceService=(0,n.WQX)(Yu),this.timelineEntriesService=(0,n.WQX)(zv),this.legacyNavigationService=(0,n.WQX)(wc),this.entityId=null,this.supplierName=(0,n.vPA)(""),this.supplierImageUri=(0,n.vPA)(""),this.supplierDescription=(0,n.vPA)(""),this.supplierItems=(0,n.vPA)([]),this.activeWarehouses=(0,n.vPA)([]),this.activeCategoryCount=(0,n.vPA)(0),this.isLoaded=(0,n.vPA)(!1),this.hasActiveItems=(0,n.vPA)(!1),this.isGrocery=(0,n.vPA)(!1)}ngOnInit(){this.loadData()}loadData(){wy({entries:this.timelineEntriesService.getFlattenedAvailableItemSummaries(),supplierDetail:this.marketplaceService.getSupplierDetails(this.entityId)}).subscribe({next:({entries:e,supplierDetail:i})=>{this.supplierName.set(i.name),this.supplierDescription.set(i.description),this.supplierImageUri.set(i.imageUrl),this.isGrocery.set(i.isGrocery);let o=new ope({internalDetail:{internalEntityId:this.entityId}}),s=this.filtersService.applyFilters(e,[o]);s&&s.length>0?(this.supplierItems.set(s),this.activeCategoryCount.set(new Set(s.map(a=>a.fanoTaxonomyCategoryId)).size),this.setActiveWarehouses(s),this.hasActiveItems.set(!0)):this.hasActiveItems.set(!1),this.isLoaded.set(!0)},error:({})=>{this.hasActiveItems.set(!1),this.isLoaded.set(!0)}})}editSupplier(){this.legacyNavigationService.navigate("app.marketplace-supplier-settings",{entityId:this.entityId})}createOfferFromSupplierDetail(){this.legacyNavigationService.navigate("app.marketplace-offer",{donorEntityId:this.entityId})}setActiveWarehouses(e){const i=new Set,o=e.filter(s=>!i.has(s.locationEntity.internalDetail?.internalEntityId)&&(i.add(s.locationEntity.internalDetail?.internalEntityId),!0));this.activeWarehouses.set(o.map(s=>s.locationEntity))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["marketplace-supplier-detail"]],inputs:{entityId:"entityId"},decls:2,vars:1,consts:[["header",""],[1,"tw-flex","tw-h-full","tw-flex-col","tw-items-center","tw-justify-center"],[1,"tw-mb-4","tw-flex","tw-justify-between","tw-gap-8"],[1,"tw-font-bold"],[3,"showLabel"],[1,"tw-w-full"],[1,"tw-mb-4","tw-grid","tw-w-full","tw-grid-cols-12"],[1,"tw-col-span-4"],[1,"tw-max-h-[200px]","tw-max-w-[400px]","tw-object-contain",3,"src"],[1,"tw-col-span-8"],[1,"tw-text-xl","tw-font-bold"],[1,"tw-relative","tw-flex-auto","tw-text-center"],[1,"tw-block"],[1,"tw-mb-4","tw-flex","tw-font-bold"],[1,"hide-toolbar","hide-border",3,"ngModel","readonly"],[1,"tw-mx-auto","tw-mt-10","tw-block","tw-max-w-screen-sm"],[1,"tw-absolute","tw--top-6","tw-right-6","tw-flex","tw-gap-2"],["type","button",1,"btn","btn-primary",3,"click","disabled"],["type","button",1,"btn","btn-primary",3,"click"],[1,"tw-flex-auto","tw-text-center"],[1,"tw-mb-4"],[1,"tw-mb-4","tw-block","tw-text-lg","tw-font-bold"],[1,"marketplace-detail-grid-block","!tw-grid-cols-[1fr,2fr]"],[1,"tw-flex","tw-h-full","tw-flex-auto","tw-flex-col","tw-rounded-lg","tw-bg-white","tw-p-6","tw-shadow-md"],[1,"tw-flex","tw-h-full","tw-flex-auto","tw-flex-col"],["visibleColumnsCacheKey","marketplace.supplierDetail.visibleColumns",1,"tw-flex","tw-h-full","tw-flex-auto","tw-flex-col",3,"blockedColumns","entries","showReset"],[1,"marketplace-detail-label"],[1,"marketplace-detail-value"],[1,"tw-text-center","tw-text-2xl"],[1,"tw-mt-12"],[1,"tw-text-center","tw-text-slate-500"],["ariaLabel","loading"],[1,"tw-font-semibold"]],template:function(i,o){1&i&&n.DNE(0,Vwt,20,13)(1,jwt,4,0,"div",1),2&i&&n.vxM(o.isLoaded()?0:1)},dependencies:[g6,_6,gn,Xy,c0,FX,Iv,Q_,rm,kg,Ra,_o,ko,Mpe,y6],encapsulation:2})}}return t})();const Uwt=()=>({height:"320px"});function $wt(t,r){if(1&t){const e=n.RV6();n.j41(0,"app-item-image",18),n.bIt("onImagesChanged",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onImageChanged(o))}),n.k0s()}if(2&t){const e=n.XpG();n.Y8G("allowUpload",!0)("imgSrc",e.imageUrl()?e.imageUrl():null)}}function Ywt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",9)(1,"div",19)(2,"button",20),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.saveSupplierInformation())}),n.EFF(3," Save Changes "),n.k0s(),n.j41(4,"button",21),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.cancelAndReturnToSupplierDetails())}),n.EFF(5," Cancel "),n.k0s()()()}}function Wwt(t,r){1&t&&(n.j41(0,"span",22),n.nrm(1,"button",23)(2,"button",24)(3,"button",25)(4,"button",26),n.k0s())}let zwt=(()=>{class t{constructor(){this.entityService=(0,n.WQX)(jh),this.legacyNavigationService=(0,n.WQX)(wc),this.marketplaceService=(0,n.WQX)(Yu),this.http=(0,n.WQX)(Da),this.entityId=null,this.donorCode=(0,n.vPA)(""),this.supplierName=(0,n.vPA)(""),this.isNational=(0,n.vPA)(!1),this.isNationalExecutive=(0,n.vPA)(!1),this.isDeactivated=(0,n.vPA)(!1),this.imageUrl=(0,n.vPA)(""),this.description=(0,n.vPA)(""),this.richDescription=(0,n.vPA)(""),this.isLoaded=(0,n.vPA)(!1),this.donorId=(0,n.vPA)(null),this.isGrocery=(0,n.vPA)(!1)}ngOnInit(){this.entityId&&this.loadData(this.entityId)}loadData(e){this.marketplaceService.getSupplierDetails(e).subscribe({next:i=>{this.donorCode.set(i.code),this.supplierName.set(i.name),this.imageUrl.set(i.imageUrl),this.description.set(i.description),this.donorId.set(i.donorId),this.isLoaded.set(!0),this.isGrocery.set(i.isGrocery??!1)}})}onImageChanged(e){this.imageUrl.set(e&&e.length>0?e[0]:"")}saveSupplierInformation(){const e={ID:this.donorId(),Code:this.donorCode(),Name:this.supplierName(),Description:this.description(),ImageUrl:this.imageUrl(),SharedWithAffiliateFoodBankIDs:[]};this.http.put(`/api/donors/${this.donorId()}`,e).subscribe({next:i=>{this.legacyNavigationService.navigate("app.marketplace-supplier-detail",{entityId:this.entityId})},error:i=>{console.error("Update failed:",i)}})}cancelAndReturnToSupplierDetails(){this.legacyNavigationService.navigate("app.marketplace-supplier-detail",{entityId:this.entityId})}navigateToManageUsers(){this.legacyNavigationService.navigate("app.fa-donors.manage-users",{id:this.donorId()})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["marketplace-supplier-settings"]],inputs:{entityId:"entityId"},decls:24,vars:8,consts:[["header",""],[1,"tw-mb-4","tw-gap-8"],[1,"tw-mb-4","tw-flex","tw-justify-between","tw-gap-8"],[1,"tw-w-full"],[1,"tw-grid","tw-w-full","tw-grid-cols-12","tw-gap-4"],[1,"tw-col-span-4","tw-max-w-[300px]"],["priority","",3,"allowUpload","imgSrc"],[1,"tw-col-span-8"],[1,"tw-text-xl","tw-font-bold"],[1,"tw-relative","tw-flex-auto","tw-text-center"],[1,"tw-block"],[1,"tw-mb-4","tw-flex","tw-font-bold"],[3,"ngModelChange","ngModel"],[1,"tw-block","tw-w-full"],[1,"tw-left-6","tw-flex","tw-gap-2"],["type","button",1,"btn","btn-primary",3,"click"],["type","button",1,"btn","btn-primary",3,"click","disabled"],[1,"tw-h-full"],["priority","",3,"onImagesChanged","allowUpload","imgSrc"],[1,"tw-absolute","tw--top-6","tw-right-6","tw-flex","tw-gap-2"],["type","button",1,"btn","btn-success","btn-sm",3,"click"],["type","button",1,"btn","btn-danger",3,"click"],[1,"ql-formats"],["type","button","aria-label","Bold",1,"ql-bold"],["type","button","aria-label","Italic",1,"ql-italic"],["type","button","aria-label","Underline",1,"ql-underline"],["type","button","aria-label","Link",1,"ql-link"]],template:function(i,o){if(1&i){const s=n.RV6();n.nrm(0,"div",1)(1,"div",2),n.j41(2,"div",3)(3,"div",4)(4,"div",5),n.DNE(5,$wt,1,2,"app-item-image",6),n.k0s(),n.j41(6,"div",7)(7,"div",8),n.EFF(8),n.k0s(),n.DNE(9,Ywt,6,0,"div",9),n.nrm(10,"p-divider",10),n.j41(11,"div",11),n.EFF(12,"Supplier Description"),n.k0s(),n.j41(13,"p-editor",12),n.mxI("ngModelChange",function(l){return n.eBV(s),n.DH7(o.description,l)||(o.description=l),n.Njj(l)}),n.DNE(14,Wwt,5,0,"ng-template",null,0,n.C5r),n.k0s()()()(),n.j41(16,"div",13),n.nrm(17,"p-divider",10),n.j41(18,"div",14)(19,"button",15),n.bIt("click",function(){return n.eBV(s),n.Njj(o.navigateToManageUsers())}),n.EFF(20," Manage Users "),n.k0s(),n.j41(21,"button",16),n.bIt("click",function(){return n.eBV(s),n.Njj(o.saveSupplierInformation())}),n.EFF(22," Pause Supplier "),n.k0s()()(),n.nrm(23,"div",17)}2&i&&(n.R7$(5),n.vxM(o.isLoaded()?5:-1),n.R7$(3),n.JRh(o.supplierName()),n.R7$(),n.vxM(o.entityService.isFANO()?9:-1),n.R7$(4),n.Aen(n.lJ4(7,Uwt)),n.R50("ngModel",o.description),n.R7$(8),n.Y8G("disabled",!0))},dependencies:[gn,Ra,_o,ko,Xy,c0,Iv,rm,A2,th,Mpe,y6],encapsulation:2})}}return t})();const qwt=({dt:t})=>`\n.p-toggleswitch {\n    display: inline-block;\n    width: ${t("toggleswitch.width")};\n    height: ${t("toggleswitch.height")};\n}\n\n.p-toggleswitch-input {\n    cursor: pointer;\n    appearance: none;\n    position: absolute;\n    top: 0;\n    inset-inline-start: 0;\n    width: 100%;\n    height: 100%;\n    padding: 0;\n    margin: 0;\n    opacity: 0;\n    z-index: 1;\n    outline: 0 none;\n    border-radius: ${t("toggleswitch.border.radius")};\n}\n\n.p-toggleswitch-slider {\n    display: inline-block;\n    cursor: pointer;\n    width: 100%;\n    height: 100%;\n    border-width: ${t("toggleswitch.border.width")};\n    border-style: solid;\n    border-color: ${t("toggleswitch.border.color")};\n    background: ${t("toggleswitch.background")};\n    transition: background ${t("toggleswitch.transition.duration")}, color ${t("toggleswitch.transition.duration")}, border-color ${t("toggleswitch.transition.duration")}, outline-color ${t("toggleswitch.transition.duration")}, box-shadow ${t("toggleswitch.transition.duration")};\n    border-radius: ${t("toggleswitch.border.radius")};\n    outline-color: transparent;\n    box-shadow: ${t("toggleswitch.shadow")};\n}\n\n.p-toggleswitch-handle {\n    position: absolute;\n    top: 50%;\n    display: flex;\n    justify-content: center;\n    align-items: center;\n    background: ${t("toggleswitch.handle.background")};\n    color: ${t("toggleswitch.handle.color")};\n    width: ${t("toggleswitch.handle.size")};\n    height: ${t("toggleswitch.handle.size")};\n    inset-inline-start: ${t("toggleswitch.gap")};\n    margin-block-start: calc(-1 * calc(${t("toggleswitch.handle.size")} / 2));\n    border-radius: ${t("toggleswitch.handle.border.radius")};\n    transition: background ${t("toggleswitch.transition.duration")}, color ${t("toggleswitch.transition.duration")}, inset-inline-start ${t("toggleswitch.slide.duration")}, box-shadow ${t("toggleswitch.slide.duration")};\n}\n\n.p-toggleswitch.p-toggleswitch-checked .p-toggleswitch-slider {\n    background: ${t("toggleswitch.checked.background")};\n    border-color: ${t("toggleswitch.checked.border.color")};\n}\n\n.p-toggleswitch.p-toggleswitch-checked .p-toggleswitch-handle {\n    background: ${t("toggleswitch.handle.checked.background")};\n    color: ${t("toggleswitch.handle.checked.color")};\n    inset-inline-start: calc(${t("toggleswitch.width")} - calc(${t("toggleswitch.handle.size")} + ${t("toggleswitch.gap")}));\n}\n\n.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover) .p-toggleswitch-slider {\n    background: ${t("toggleswitch.hover.background")};\n    border-color: ${t("toggleswitch.hover.border.color")};\n}\n\n.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover) .p-toggleswitch-handle {\n    background: ${t("toggleswitch.handle.hover.background")};\n    color: ${t("toggleswitch.handle.hover.color")};\n}\n\n.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover).p-toggleswitch-checked .p-toggleswitch-slider {\n    background: ${t("toggleswitch.checked.hover.background")};\n    border-color: ${t("toggleswitch.checked.hover.border.color")};\n}\n\n.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover).p-toggleswitch-checked .p-toggleswitch-handle {\n    background: ${t("toggleswitch.handle.checked.hover.background")};\n    color: ${t("toggleswitch.handle.checked.hover.color")};\n}\n\n.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:focus-visible) .p-toggleswitch-slider {\n    box-shadow: ${t("toggleswitch.focus.ring.shadow")};\n    outline: ${t("toggleswitch.focus.ring.width")} ${t("toggleswitch.focus.ring.style")} ${t("toggleswitch.focus.ring.color")};\n    outline-offset: ${t("toggleswitch.focus.ring.offset")};\n}\n\n.p-toggleswitch.p-invalid > .p-toggleswitch-slider {\n    border-color: ${t("toggleswitch.invalid.border.color")};\n}\n\n.p-toggleswitch.p-disabled {\n    opacity: 1;\n}\n\n.p-toggleswitch.p-disabled .p-toggleswitch-slider {\n    background: ${t("toggleswitch.disabled.background")};\n}\n\n.p-toggleswitch.p-disabled .p-toggleswitch-handle {\n    background: ${t("toggleswitch.handle.disabled.background")};\n}\n\n/* For PrimeNG */\n\np-toggleswitch.ng-invalid.ng-dirty > .p-toggleswitch > .p-toggleswitch-slider {\n    border-color: ${t("toggleswitch.invalid.border.color")};\n}`,Xwt={root:{position:"relative"}},Kwt={root:({instance:t})=>({"p-toggleswitch p-component":!0,"p-toggleswitch-checked":t.checked(),"p-disabled":t.disabled,"p-invalid":t.invalid}),input:"p-toggleswitch-input",slider:"p-toggleswitch-slider",handle:"p-toggleswitch-handle"};let Rpe=(()=>{class t extends gs{name="toggleswitch";theme=qwt;classes=Kwt;inlineStyles=Xwt;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const Jwt=["handle"],Zwt=["input"],eTt=t=>({checked:t});function tTt(t,r){1&t&&n.eu8(0)}function nTt(t,r){if(1&t&&n.DNE(0,tTt,1,0,"ng-container",4),2&t){const e=n.XpG();n.Y8G("ngTemplateOutlet",e.handleTemplate||e._handleTemplate)("ngTemplateOutletContext",n.eq3(2,eTt,e.checked()))}}const iTt={provide:tl,useExisting:(0,n.Rfq)(()=>b6),multi:!0};let b6=(()=>{class t extends jo{style;styleClass;tabindex;inputId;name;disabled;readonly;trueValue=!0;falseValue=!1;ariaLabel;ariaLabelledBy;autofocus;onChange=new n.bkB;input;handleTemplate;_handleTemplate;modelValue=!1;focused=!1;onModelChange=()=>{};onModelTouched=()=>{};_componentStyle=(0,n.WQX)(Rpe);templates;ngAfterContentInit(){this.templates.forEach(e=>{e.getType(),this._handleTemplate=e.template})}onClick(e){!this.disabled&&!this.readonly&&(this.modelValue=this.checked()?this.falseValue:this.trueValue,this.onModelChange(this.modelValue),this.onChange.emit({originalEvent:e,checked:this.modelValue}),this.input.nativeElement.focus())}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}writeValue(e){this.modelValue=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}checked(){return this.modelValue===this.trueValue}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["p-toggleswitch"],["p-toggleSwitch"],["p-toggle-switch"]],contentQueries:function(i,o,s){if(1&i&&(n.wni(s,Jwt,4),n.wni(s,hs,4)),2&i){let a;n.mGM(a=n.lsd())&&(o.handleTemplate=a.first),n.mGM(a=n.lsd())&&(o.templates=a)}},viewQuery:function(i,o){if(1&i&&n.GBs(Zwt,5),2&i){let s;n.mGM(s=n.lsd())&&(o.input=s.first)}},inputs:{style:"style",styleClass:"styleClass",tabindex:[2,"tabindex","tabindex",n.Udg],inputId:"inputId",name:"name",disabled:[2,"disabled","disabled",n.L39],readonly:[2,"readonly","readonly",n.L39],trueValue:"trueValue",falseValue:"falseValue",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",autofocus:[2,"autofocus","autofocus",n.L39]},outputs:{onChange:"onChange"},features:[n.Jv_([iTt,Rpe]),n.GFd,n.Vt3],decls:6,vars:23,consts:[["input",""],[3,"click","ngClass","ngStyle"],["type","checkbox","role","switch",3,"focus","blur","ngClass","checked","disabled","pAutoFocus"],[3,"ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,o){if(1&i){const s=n.RV6();n.j41(0,"div",1),n.bIt("click",function(l){return n.eBV(s),n.Njj(o.onClick(l))}),n.j41(1,"input",2,0),n.bIt("focus",function(){return n.eBV(s),n.Njj(o.onFocus())})("blur",function(){return n.eBV(s),n.Njj(o.onBlur())}),n.k0s(),n.j41(3,"span",3)(4,"div",3),n.DNE(5,nTt,1,4,"ng-container"),n.k0s()()()}2&i&&(n.Aen(o.sx("root")),n.HbH(o.styleClass),n.Y8G("ngClass",o.cx("root"))("ngStyle",o.style),n.BMQ("data-pc-name","toggleswitch")("data-pc-section","root"),n.R7$(),n.Y8G("ngClass",o.cx("input"))("checked",o.checked())("disabled",o.disabled)("pAutoFocus",o.autofocus),n.BMQ("id",o.inputId)("aria-checked",o.checked())("aria-labelledby",o.ariaLabelledBy)("aria-label",o.ariaLabel)("name",o.name)("tabindex",o.tabindex)("data-pc-section","hiddenInput"),n.R7$(2),n.Y8G("ngClass",o.cx("slider")),n.BMQ("data-pc-section","slider"),n.R7$(),n.Y8G("ngClass",o.cx("handle")),n.R7$(),n.vxM(o.handleTemplate||o._handleTemplate?5:-1))},dependencies:[gn,bi,uo,Jr,Jf,Di],encapsulation:2,changeDetection:0})}return t})(),Ope=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({imports:[b6,Di,Di]})}return t})(),rTt=(()=>{class t{transform(e,i,o){return!e||e<=0?"\u2014":`${e} ${1===e?`${i}`:`${o}`}`}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=n.EJ8({name:"formatCountWithLabel",type:t,pure:!0})}}return t})();const oTt=()=>["CATEGORY"];function sTt(t,r){1&t&&(n.j41(0,"div",0),n.nrm(1,"p-progress-spinner",1),n.j41(2,"span",2),n.EFF(3,"Loading..."),n.k0s()())}function aTt(t,r){if(1&t&&(n.j41(0,"p-message",3),n.EFF(1),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.JRh(e.errorMessage())}}function lTt(t,r){1&t&&(n.j41(0,"div",4),n.EFF(1," Sorry - we couldn't find that category in our system. Please check your link and try again. "),n.k0s())}function cTt(t,r){if(1&t&&n.EFF(0),2&t){let e;const i=n.XpG(3);n.SpI(" Feeding America, Browsing As: ",null==(e=i.entityService.browsingAsEntity())?null:e.name," ")}}function uTt(t,r){1&t&&n.nrm(0,"app-cart-button",7),2&t&&n.Y8G("showLabel",!0)}function dTt(t,r){1&t&&(n.j41(0,"span",28),n.EFF(1,">"),n.k0s())}function pTt(t,r){if(1&t){const e=n.RV6();n.j41(0,"app-primary-link-button",27),n.bIt("clicked",function(){const o=n.eBV(e).$implicit,s=n.XpG(4);return n.Njj(s.onNavigateToTaxonomy(o.key))}),n.k0s(),n.DNE(1,dTt,2,0,"span",28)}if(2&t){const i=r.$index,o=r.$count;n.FS9("text",r.$implicit.displayName),n.R7$(),n.vxM(i!==o-1?1:-1)}}function hTt(t,r){if(1&t&&n.Z7z(0,pTt,2,2,null,null,n.Vm6),2&t){const e=n.XpG(3);n.Dyx(e.taxonomyPath())}}function fTt(t,r){1&t&&n.nrm(0,"i",20)}function mTt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",24)(1,"span",29),n.EFF(2,"Show Offers in Child Categories"),n.k0s(),n.j41(3,"p-toggleswitch",30),n.mxI("ngModelChange",function(o){n.eBV(e);const s=n.XpG(3);return n.DH7(s.showChildren,o)||(s.showChildren=o),n.Njj(o)}),n.bIt("onChange",function(){n.eBV(e);const o=n.XpG(3);return n.Njj(o.loadData())}),n.k0s()()}if(2&t){const e=n.XpG(3);n.R7$(3),n.R50("ngModel",e.showChildren)}}function gTt(t,r){if(1&t&&(n.j41(0,"div",5)(1,"div",6),n.DNE(2,cTt,1,1),n.k0s(),n.j41(3,"div"),n.DNE(4,uTt,1,1,"app-cart-button",7),n.k0s()(),n.j41(5,"div",8)(6,"div",9),n.nrm(7,"app-item-image",10),n.k0s(),n.j41(8,"div",11)(9,"div",12)(10,"h2",13),n.EFF(11),n.k0s(),n.DNE(12,hTt,2,0),n.k0s(),n.j41(13,"div",14)(14,"div",15)(15,"span",16),n.EFF(16),n.nI1(17,"formatCountWithLabel"),n.k0s(),n.j41(18,"span",17),n.EFF(19),n.nI1(20,"formatCountWithLabel"),n.k0s()(),n.j41(21,"div",18)(22,"span",19),n.EFF(23,"Starting as low as... "),n.DNE(24,fTt,1,0,"i",20),n.k0s(),n.j41(25,"ul",21)(26,"li")(27,"strong",22),n.EFF(28),n.nI1(29,"formatPrice"),n.k0s(),n.j41(30,"span",23),n.EFF(31," (per case) "),n.k0s()(),n.j41(32,"li")(33,"strong",22),n.EFF(34),n.nI1(35,"formatPrice"),n.k0s(),n.j41(36,"span",23),n.EFF(37," (per unit) "),n.k0s()(),n.j41(38,"li")(39,"strong",22),n.EFF(40),n.nI1(41,"formatPrice"),n.k0s(),n.j41(42,"span",23),n.EFF(43,"(per lb)"),n.k0s()(),n.j41(44,"li")(45,"strong",22),n.EFF(46),n.nI1(47,"formatPrice"),n.k0s(),n.j41(48,"span",23),n.EFF(49,"(per delivered case)"),n.k0s()(),n.j41(50,"li")(51,"strong",22),n.EFF(52),n.nI1(53,"formatPrice"),n.k0s(),n.j41(54,"span",23),n.EFF(55,"(per delivered unit)"),n.k0s()(),n.j41(56,"li")(57,"strong",22),n.EFF(58),n.nI1(59,"formatPrice"),n.k0s(),n.j41(60,"span",23),n.EFF(61,"(per delivered lb)"),n.k0s()()()()(),n.DNE(62,mTt,4,1,"div",24),n.k0s()(),n.j41(63,"div",25),n.nrm(64,"app-browse-item-table",26),n.k0s()),2&t){const e=n.XpG(2);n.R7$(2),n.vxM(e.entityService.isFANO()?2:-1),n.R7$(2),n.vxM(e.entityService.isFANO()?-1:4),n.R7$(3),n.Y8G("imgSrc",e.image()),n.R7$(4),n.SpI(" ",e.taxonomyName()," "),n.R7$(),n.vxM(e.oppositeMatch?-1:12),n.R7$(4),n.SpI(" ",n.brH(17,19,e.typesAvailable(),"offer","offers")," available "),n.R7$(3),n.SpI(" ",n.brH(20,23,e.vendorsAvailable(),"supplier","suppliers")," available "),n.R7$(5),n.vxM(e.offersWithNoDeliveryCosts()?24:-1),n.R7$(4),n.SpI(" ",n.bMT(29,27,e.minCaseCost())," "),n.R7$(6),n.SpI(" ",n.bMT(35,29,e.minUnitCost())," "),n.R7$(6),n.SpI(" ",n.bMT(41,31,e.minPoundCost()),""),n.R7$(6),n.SpI(" ",n.bMT(47,33,e.minCaseCostDlvd()),""),n.R7$(6),n.SpI(" ",n.bMT(53,35,e.minUnitCostDlvd()),""),n.R7$(6),n.SpI(" ",n.bMT(59,37,e.minPoundCostDlvd()),""),n.R7$(4),n.vxM(e.showChildrenToggle()?62:-1),n.R7$(2),n.Y8G("entries",e.timelineEntries())("showRefresh",!1)("showReset",!0)("blockedColumns",n.lJ4(39,oTt))}}function vTt(t,r){if(1&t&&n.DNE(0,aTt,2,1,"p-message",3)(1,lTt,2,0,"div",4)(2,gTt,65,40),2&t){const e=n.XpG();n.vxM(e.errorMessage()?0:-1),n.R7$(),n.vxM(e.taxonomyEntry()?-1:1),n.R7$(),n.vxM(e.taxonomyEntry()?2:-1)}}let _Tt=(()=>{class t{constructor(){this.entityService=(0,n.WQX)(jh),this.marketplaceService=(0,n.WQX)(Yu),this.filtersService=(0,n.WQX)(pP),this.timelineEntriesService=(0,n.WQX)(zv),this.legacyNavigationService=(0,n.WQX)(wc),this.isLoading=(0,n.vPA)(!1),this.errorMessage=(0,n.vPA)(""),this.timelineEntries=(0,n.vPA)([]),this.taxonomyPath=(0,n.vPA)([]),this.taxonomyEntry=(0,n.vPA)(null),this.taxonomyName=(0,n.vPA)(""),this.image=(0,n.vPA)(null),this.typesAvailable=(0,n.vPA)(0),this.vendorsAvailable=(0,n.vPA)(0),this.minCaseCost=(0,n.vPA)(0),this.minUnitCost=(0,n.vPA)(0),this.minPoundCost=(0,n.vPA)(0),this.minCaseCostDlvd=(0,n.vPA)(0),this.minUnitCostDlvd=(0,n.vPA)(0),this.minPoundCostDlvd=(0,n.vPA)(0),this.offersWithNoDeliveryCosts=(0,n.vPA)(!1),this.watchedTaxonomyKey=(0,n.vPA)(""),this.showChildren=(0,n.vPA)(!1),this.showChildrenToggle=(0,n.hFB)(!0),this.taxonomyKey="",this.oppositeMatch=!1,(0,n.QZP)(()=>{this.watchedTaxonomyKey()&&this.entityService.availableBrowseEntities().length&&this.loadTaxonomyPath()})}ngOnInit(){this.isLoading.set(!0)}ngOnChanges(e){e.taxonomyKey&&this.watchedTaxonomyKey.set(e.taxonomyKey.currentValue)}loadTaxonomyPath(){this.isLoading.set(!0),this.errorMessage.set(""),this.marketplaceService.getTaxonomyPath(this.taxonomyKey).subscribe({next:e=>{e?(this.taxonomyPath.set(e),this.taxonomyEntry.set(e.find(i=>i.key===this.taxonomyKey)??null),this.taxonomyEntry()?(this.loadData(),this.taxonomyName.set(this.oppositeMatch?"Non-"+this.taxonomyEntry().displayName:this.taxonomyEntry().displayName),this.taxonomyEntry()?.defaultImageUri&&this.image.set(this.taxonomyEntry()?.defaultImageUri)):this.isLoading.set(!1)):this.isLoading.set(!1)},error:e=>{this.isLoading.set(!1),this.errorMessage.set("Failed to load. Refresh the page to try again.")}})}loadData(){this.isLoading.set(!0),this.errorMessage.set(""),this.timelineEntriesService.getFlattenedAvailableItemSummaries().subscribe({next:e=>{let i=[];i=this.oppositeMatch?this.filtersService.applyFilters(e,[new Z_t(this.taxonomyKey)]):this.showChildren()?this.filtersService.applyFilters(e,[new J_t(this.taxonomyKey)]):this.filtersService.applyFilters(e,[new rpe(this.taxonomyKey)]),this.timelineEntries.set(i),this.updateHeaderValues(),this.isLoading.set(!1)},error:e=>{this.isLoading.set(!1),this.errorMessage.set("Failed to load offers. Refresh the page to try again.")}})}updateHeaderValues(){const e=this.timelineEntries();this.typesAvailable.set(e.length),this.vendorsAvailable.set(new Set(e.map(a=>a.sourceEntity.internalDetail?.internalEntityId)).size);const i=e.map(a=>this.marketplaceService.getPricingSummary(a,"CASE")),o=e.map(a=>this.marketplaceService.getPricingSummary(a,"EACH")),s=e.map(a=>this.marketplaceService.getPricingSummary(a,"PALLET"));this.minCaseCost.set(Math.min(...i.map(a=>a.fobCostPerUnit).filter(a=>null!=a))??0),this.minCaseCostDlvd.set(Math.min(...i.map(a=>a.dlvdCostPerFTLUnit).filter(a=>null!=a))??0),this.minUnitCost.set(Math.min(...o.map(a=>a.fobCostPerUnit).filter(a=>null!=a))??0),this.minUnitCostDlvd.set(Math.min(...o.map(a=>a.dlvdCostPerFTLUnit).filter(a=>null!=a))??0),this.minPoundCost.set(Math.min(...s.map(a=>a.fobCostPerPound).filter(a=>null!=a))??0),this.minPoundCostDlvd.set(Math.min(...s.map(a=>a.dlvdCostPerFTLPound).filter(a=>null!=a))??0),s.some(a=>"DETERMINED"!=a.freightCostStatus)&&this.offersWithNoDeliveryCosts.set(!0)}onNavigateToTaxonomy(e){this.legacyNavigationService.navigate("app.marketplace-taxonomy-entry-detail",{taxonomyKey:e})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["marketplace-taxonomy-entry-detail"]],inputs:{showChildrenToggle:[1,"showChildrenToggle"],taxonomyKey:"taxonomyKey",oppositeMatch:"oppositeMatch"},features:[n.OA$],decls:2,vars:1,consts:[[1,"tw-flex","tw-h-full","tw-flex-col","tw-items-center","tw-justify-center"],["ariaLabel","loading"],[1,"tw-font-semibold"],["severity","error"],[1,"tw-container","tw-mx-auto","tw-mt-16","tw-max-w-screen-sm"],[1,"tw-mb-4","tw-flex","tw-justify-between","tw-gap-8"],[1,"tw-font-bold"],[3,"showLabel"],[1,"tw-flex","tw-items-start","tw-gap-4"],[1,"tw-h-[265px]","tw-w-[265px]","tw-p-0"],[3,"imgSrc"],[1,"tw-flex","tw-flex-grow","tw-flex-col","tw-items-start","tw-justify-start"],[1,"tw-mb-4","tw-w-full","tw-border-b","tw-border-l-0","tw-border-r-0","tw-border-t-0","tw-border-solid","tw-border-gray-300","tw-pb-4"],[1,"tw-m-0","tw-mb-1","tw-font-semibold"],[1,"tw-grid","tw-w-full","tw-grid-cols-4","tw-gap-4"],[1,"tw-text-left","tw-align-top"],[1,"tw-mb-1","tw-table","tw-bg-gray-200","tw-p-1","tw-text-sm","tw-font-semibold"],[1,"tw-table","tw-bg-gray-200","tw-p-1","tw-text-sm","tw-font-semibold"],[1,"tw-col-span-3","tw-text-left","tw-align-top"],[1,"tw-text-xs","tw-italic","tw-text-gray-500"],["pTooltip","Note delivery costs are not available for all offers listed below, so the minimum delivered costs may be incomplete.",1,"pi","pi-question-circle","tw-pl-2","!tw-text-xs"],[1,"tw-m-0","tw-my-2","tw-grid","tw-list-none","tw-grid-cols-3","tw-gap-2","tw-p-0"],[1,"tw-text-lg"],[1,"tw-ms-1","tw-font-semibold","tw-text-gray-500"],[1,"tw-mb-2","tw-mt-8","tw-flex","tw-w-full","tw-justify-end"],[1,"tw-mt-5","tw-h-full"],["visibleColumnsCacheKey","marketplace.taxonomyEntryDetails.visibleColumns",1,"tw-flex","tw-h-full","tw-flex-col",3,"entries","showRefresh","showReset","blockedColumns"],[3,"clicked","text"],[1,"tw-px-2"],[1,"tw-py-2","tw-pr-4"],[3,"ngModelChange","onChange","ngModel"]],template:function(i,o){1&i&&n.DNE(0,sTt,4,0,"div",0)(1,vTt,3,3),2&i&&n.vxM(o.isLoading()?0:1)},dependencies:[_6,g6,gn,Dy,z_,rTt,qv,Ra,_o,ko,A2,IX,Iv,Q_,Ope,b6,Rh,ou],encapsulation:2})}}return t})(),fP=(()=>{class t{transform(e,i=!0,o=!0){return e?new Intl.DateTimeFormat("en-US",{dateStyle:o?"short":void 0,timeStyle:i?"short":void 0}).format(new Date(e)):"\u2014"}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=n.EJ8({name:"formatUTCTimestamp",type:t,pure:!0})}}return t})();const yTt=(t,r,e,i,o,s,a)=>["tw-rounded-full tw-border-2 tw-border-solid tw-font-semibold tw-tracking-wider","disabled:tw-cursor-not-allowed disabled:tw-border-gray-300 disabled:tw-bg-gray-100 disabled:tw-text-gray-400",t,r,e,i,o,s,a];function bTt(t,r){1&t&&(n.j41(0,"div",2),n.nrm(1,"i",3),n.k0s())}let mP=(()=>{class t{constructor(){this.disabled=(0,n.hFB)(!1),this.text=(0,n.hFB)(""),this.disabledText=(0,n.hFB)(""),this.clickedText=(0,n.hFB)(""),this.buttonStyle=(0,n.hFB)(Xv.SolidOrange),this.clicked=(0,n.CGW)(),this.size=(0,n.hFB)("LARGE"),this.showLoading=(0,n.hFB)(!1),this.isClicked=(0,n.vPA)(!1),this.isTemporarilyDisabled=(0,n.vPA)(!1),this.ButtonStyle=Xv}onClick(e){this.clicked.emit({event:e,action:"button-clicked"}),this.clickedText()&&(this.isClicked.set(!0),this.isTemporarilyDisabled.set(!0),setTimeout(()=>{this.isClicked.set(!1),this.isTemporarilyDisabled.set(!1)},1e3))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-primary-button"]],inputs:{disabled:[1,"disabled"],text:[1,"text"],disabledText:[1,"disabledText"],clickedText:[1,"clickedText"],buttonStyle:[1,"buttonStyle"],size:[1,"size"],showLoading:[1,"showLoading"]},outputs:{clicked:"clicked"},decls:4,vars:12,consts:[["type","button",3,"click","ngClass","disabled"],[1,"tw-relative","tw-flex","tw-items-center","tw-justify-center"],[1,"tw-absolute","tw-inset-0","tw-flex","tw-items-center","tw-justify-center"],[1,"pi","pi-spin","pi-spinner","tw-text-white",2,"font-size","2rem"]],template:function(i,o){1&i&&(n.j41(0,"button",0),n.bIt("click",function(a){return o.onClick(a)}),n.j41(1,"div",1),n.EFF(2),n.DNE(3,bTt,2,0,"div",2),n.k0s()()),2&i&&(n.Y8G("ngClass",n.sGs(4,yTt,"LARGE"===o.size()?"tw-px-6 tw-py-2 tw-text-lg":"","MEDIUM"===o.size()?"tw-px-4 tw-py-2":"","SMALL"===o.size()?"tw-px-2 tw-py-1 tw-text-xs":"",o.buttonStyle()===o.ButtonStyle.SolidOrange?"tw-border-fa-orange-500 tw-bg-fa-orange-500 tw-text-white hover:tw-border-fa-orange-600 hover:tw-bg-fa-orange-600":"",o.buttonStyle()===o.ButtonStyle.OutlinedOrange?"tw-border-fa-orange-500 tw-bg-transparent tw-text-fa-orange-500 hover:tw-border-fa-orange-500 hover:tw-bg-fa-orange-500 hover:tw-text-white":"",o.buttonStyle()===o.ButtonStyle.SolidGreen?"tw-border-fa-green-500 tw-bg-fa-green-500 tw-text-white hover:tw-border-fa-green-600 hover:tw-bg-fa-green-600":"",o.buttonStyle()===o.ButtonStyle.OutlinedGreen?"tw-border-fa-green-500 tw-bg-transparent tw-text-fa-green-500 hover:tw-border-fa-green-500 hover:tw-bg-fa-green-500 hover:tw-text-white":""))("disabled",o.disabled()||o.isTemporarilyDisabled()),n.R7$(2),n.SpI(" ",o.isClicked()&&o.clickedText()?o.clickedText():o.disabled()&&o.disabledText()?o.disabledText():o.text()," "),n.R7$(),n.vxM(o.showLoading()?3:-1))},dependencies:[gn,bi],encapsulation:2})}}return t})(),CTt=(()=>{class t{transform(e){if(!e||0===e.length)return null;let i=[],o=[];for(const s of e)o.push(s.value+ape[s.dimensionUOM].displayName),i.push(s.dimensionCode.substring(0,1));return o.join(" x ")+" ("+i.join("x")+")"}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=n.EJ8({name:"formatSizeDimensions",type:t,pure:!0})}}return t})(),Fpe=(()=>{class t{transform(e){switch(e){case"POUND":return"lbs.";case"OUNCE":return"oz";case"GRAM":return"g";case"KILOGRAM":return"kg";case"TON":return"t";default:return e??""}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=n.EJ8({name:"formatWeightUOM",type:t,pure:!0})}}return t})(),wTt=(()=>{class t{transform(e){switch(e.weightUOM){case"POUND":return e.value;case"GRAM":return.00220462*e.value;case"KILOGRAM":return 2.20462*e.value;case"OUNCE":return.0625*e.value;default:throw Error("Unknown weight type - cannot convert to pounds")}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=n.EJ8({name:"weightToPounds",type:t,pure:!0})}}return t})(),TTt=(()=>{class t{constructor(){this.class=(0,n.hFB)("")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-pallet-icon"]],inputs:{class:[1,"class"]},decls:3,vars:0,consts:[[1,"tw-flex","tw-aspect-square","tw-items-center","tw-justify-center","tw-rounded-full","tw-bg-transparent"],["xmlns","http://www.w3.org/2000/svg","height","100%","viewBox","0 -960 960 960","width","100%","fill","#444"],["d","M80-80v-160h800v160H760v-80H540v80H420v-80H200v80H80Zm160-240q-17 0-28.5-11.5T200-360v-480q0-17 11.5-28.5T240-880h480q17 0 28.5 11.5T760-840v480q0 17-11.5 28.5T720-320H240Zm40-80h400v-400H280v400Zm80-240h240v-80H360v80Zm-80 240v-400 400Z"]],template:function(i,o){1&i&&(n.j41(0,"div",0),n.qSk(),n.j41(1,"svg",1),n.nrm(2,"path",2),n.k0s()())},dependencies:[gn],encapsulation:2})}}return t})();function STt(t,r){if(1&t&&(n.EFF(0),n.nI1(1,"currency")),2&t){const e=n.XpG(2);n.Lme(" FOB Cost/",e.vehicleEstimateVehicleType(),": ",n.bMT(1,2,e.vehicleEstimateTotalVehicleFOBCost())," ")}}function xTt(t,r){if(1&t&&(n.j41(0,"div",0)(1,"div",2),n.nrm(2,"i",3),n.k0s(),n.j41(3,"div",4)(4,"div",5),n.EFF(5),n.k0s(),n.j41(6,"div",6),n.EFF(7),n.nI1(8,"number"),n.k0s(),n.j41(9,"div",7),n.DNE(10,STt,2,4),n.k0s()()()),2&t){const e=n.XpG();n.R7$(5),n.LHq(" Ordered by ",e.getItemPackingType(e.vehicleEstimateContentItem()),"; ",e.vehicleEstimateUnitsPerVehicle()," ",e.getItemPackingType(e.vehicleEstimateContentItem()),"(s) Per ",e.vehicleEstimateVehicleType()," "),n.R7$(2),n.E5c(" ",e.vehicleEstimateTotalVehicles()," ",e.vehicleEstimateVehicleType(),"(s) Available at ",n.bMT(8,8,e.vehicleEstimateTotalVehicleWeight())," lbs. each "),n.R7$(3),n.vxM(e.showPrices()?10:-1)}}function ETt(t,r){1&t&&n.nrm(0,"i",9)}function DTt(t,r){1&t&&n.nrm(0,"app-pallet-icon")}function kTt(t,r){1&t&&n.nrm(0,"i",10)}function ITt(t,r){1&t&&n.nrm(0,"i",11)}function ATt(t,r){1&t&&n.nrm(0,"i",11)}function MTt(t,r){if(1&t&&(n.j41(0,"span",12),n.EFF(1),n.nI1(2,"currency"),n.k0s()),2&t){const e=n.XpG(2).$implicit,i=n.XpG();n.Mz_("title","FOB cost per ",i.getItemPackingType(e),""),n.R7$(),n.Lme(" FOB: ",n.bMT(2,4,i.getItemFobCost(e)),"/",i.getItemPackingType(e)," ")}}function RTt(t,r){if(1&t&&(n.j41(0,"span",5),n.EFF(1),n.k0s(),n.DNE(2,MTt,3,6,"span",12)),2&t){const e=n.XpG().$implicit,i=n.XpG();n.R7$(),n.SpI("Orderable (min. ",(null==e.segmentableQuantityDetail?null:e.segmentableQuantityDetail.minimumUnitsPerOrder)||1," per order)"),n.R7$(),n.vxM(i.showPrices()?2:-1)}}function OTt(t,r){if(1&t&&(n.j41(0,"span",13),n.EFF(1),n.nI1(2,"currency"),n.k0s()),2&t){const e=n.XpG(2).$implicit,i=n.XpG();n.Mz_("title","The approximate cost per ",i.getItemPackingType(e),". See the orderable unit above for exact details."),n.R7$(),n.Lme("(Apx. ",n.bMT(2,4,i.parentCalculatedCostPerUnit()/i.totalLevelQuantity()),"/",i.getItemPackingType(e),")")}}function FTt(t,r){if(1&t&&n.DNE(0,OTt,3,6,"span",13),2&t){const e=n.XpG(2);n.vxM(e.parentCalculatedCostPerUnit()?0:-1)}}function PTt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div")(1,"app-offer-content-tree",14),n.mxI("selectedContentItemChange",function(o){n.eBV(e);const s=n.XpG(2);return n.DH7(s.selectedContentItem,o)||(s.selectedContentItem=o),n.Njj(o)}),n.bIt("selectionUpdated",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.selectedContentItemChanged(o))}),n.k0s()()}if(2&t){const e=n.XpG().$implicit,i=n.XpG();n.R7$(),n.Y8G("baseOffer",i.baseOffer())("contents",e.contents),n.R50("selectedContentItem",i.selectedContentItem),n.Y8G("parentCalculatedCostPerUnit",e.segmentableQuantityDetail?i.getItemFobCost(e):i.parentCalculatedCostPerUnit()?i.parentCalculatedCostPerUnit()/e.quantity:null)("isRoot",!1)}}function LTt(t,r){if(1&t){const e=n.RV6();n.j41(0,"li")(1,"div",8),n.bIt("click",function(){const o=n.eBV(e).$implicit,s=n.XpG();return n.Njj(s.onEntryClicked(o))}),n.j41(2,"div",2),n.DNE(3,ETt,1,0,"i",9)(4,DTt,1,0,"app-pallet-icon")(5,kTt,1,0,"i",10)(6,ITt,1,0,"i",11)(7,ATt,1,0,"i",11),n.k0s(),n.j41(8,"div",4)(9,"div",5),n.EFF(10),n.nI1(11,"number"),n.nI1(12,"formatWeightUOM"),n.k0s(),n.j41(13,"div",6),n.EFF(14),n.k0s(),n.j41(15,"div"),n.DNE(16,RTt,3,2)(17,FTt,1,1),n.k0s()()(),n.DNE(18,PTt,2,5,"div"),n.k0s()}if(2&t){let e;const i=r.$implicit,o=n.XpG();n.R7$(),n.ZvI("tw-flex tw-m-1 tw-border-slate-200 tw-border tw-border-solid tw-px-4 tw-py-2 tw-cursor-pointer tw-rounded-md ",i.contentItemId===(null==(e=o.selectedContentItem())?null:e.contentItemId)?"tw-bg-amber-50":"tw-bg-slate-50 hover:tw-bg-yellow-100",""),n.R7$(2),n.vxM("VEHICLE"===i.packingType.unitLevel?3:-1),n.R7$(),n.vxM("PALLET"===i.packingType.unitLevel?4:-1),n.R7$(),n.vxM("CASE"===i.packingType.unitLevel?5:-1),n.R7$(),n.vxM("EACH"===i.packingType.unitLevel?6:-1),n.R7$(),n.vxM("PIECE"===i.packingType.unitLevel?7:-1),n.R7$(3),n.SjE(" ","STRUCTURE"===o.baseOffer().contentStructure&&o.isRoot()?null!=i.segmentableQuantityDetail&&i.segmentableQuantityDetail.isUnlimited?"(Unlimited)":null==i.segmentableQuantityDetail?null:i.segmentableQuantityDetail.totalUnitsAvailable:i.quantity," ",o.getItemPackingType(i),"(s) at ",i.weight.isEstimated?"~":"","",n.bMT(11,16,i.weight.value)," ",n.bMT(12,18,i.weight.weightUOM)," each "),n.R7$(4),n.JRh(i.title),n.R7$(2),n.vxM(i.segmentableQuantityDetail||o.isRoot()?16:17),n.R7$(2),n.vxM(i.contents.length>0?18:-1)}}let NTt=(()=>{class t{constructor(){this.weightToPounds=new wTt,this.entityService=(0,n.WQX)(jh),this.marketplaceService=(0,n.WQX)(Yu),this.timelineEntryService=(0,n.WQX)(zv),this.baseOffer=n.hFB.required(),this.contents=(0,n.hFB)([]),this.selectedContentItem=(0,n.geq)(null),this.selectionUpdated=(0,n.CGW)(),this.isRoot=(0,n.hFB)(!0),this.selectFirstOrderable=(0,n.hFB)(!0),this.showPrices=(0,n.hFB)(!0),this.parentCalculatedCostPerUnit=(0,n.hFB)(null),this.showVehicleEstimate=(0,n.vPA)(!1),this.vehicleEstimateVehicleCount=(0,n.vPA)(0),this.vehicleEstimateVehicleType=(0,n.vPA)(""),this.vehicleEstimateUnitsPerVehicle=(0,n.vPA)(0),this.vehicleEstimateContentItem=(0,n.vPA)(null),this.vehicleEstimateTotalVehicles=(0,n.vPA)(""),this.vehicleEstimateAvailableEstimates=(0,n.vPA)([]),this.vehicleEstimateTotalVehicleWeight=(0,n.vPA)(0),this.vehicleEstimateTotalVehicleFOBCost=(0,n.vPA)(0),this.offerVersionIdLoaded=(0,n.vPA)(null),this.wrapperUlClasses=(0,n.EWP)(()=>{const e=[];if(this.isRoot())e.push("tw-pl-0");else if(e.push("tw-pl-6","tw-ml-2","tw-border-0","tw-border-l-2","tw-border-solid"),this.contents()&&this.contents().length>0)switch(this.contents()[0].packingType.unitLevel){case"PALLET":e.push("tw-border-orange-400");break;case"CASE":e.push("tw-border-orange-200");break;case"EACH":e.push("tw-border-orange-100");break;case"PIECE":e.push("tw-border-orange-50")}return e}),this.totalLevelQuantity=(0,n.EWP)(()=>this.contents().reduce((e,i)=>e+i.quantity,0)),(0,n.QZP)(()=>{this.determineIfSelected(this.contents())}),(0,n.QZP)(()=>{let e=this.baseOffer();(0,n.O8t)(()=>{this.offerVersionIdLoaded()!==e.offerVersionId&&(this.offerVersionIdLoaded.set(e.offerVersionId),this.contents().length&&this.determineIfSelected(this.contents(),!0))})})}determineIfSelected(e,i=!1){if(e&&!0===this.selectFirstOrderable()&&(i||null===this.selectedContentItem()))for(const o of e)o.segmentableQuantityDetail&&this.selectedContentItemChanged(o)}ngOnInit(){this.isRoot()&&1===this.contents().length&&this.contents()[0].vehiclePackingEstimates&&this.setVehiclePackingEstimate(this.contents()[0])}setVehiclePackingEstimate(e,i="TRAILER"){var o=e.vehiclePackingEstimates?.find(s=>s.vehicleClass==i);o&&"VEHICLE"!==e.packingType.unitLevel?("STRUCTURE"===this.baseOffer().contentStructure&&e.segmentableQuantityDetail&&this.isRoot()?this.vehicleEstimateTotalVehicles.set(e.segmentableQuantityDetail.isUnlimited?"(Unlimited)":(e.segmentableQuantityDetail.totalUnitsAvailable/o.estimatedFillQuantity).toFixed(1)):this.vehicleEstimateTotalVehicles.set((e.quantity/o.estimatedFillQuantity).toFixed(1)),this.showVehicleEstimate.set(!0),this.vehicleEstimateContentItem.set(e),this.vehicleEstimateUnitsPerVehicle.set(o.estimatedFillQuantity),this.vehicleEstimateVehicleType.set(ppe[i].displayName),this.vehicleEstimateAvailableEstimates.set(e.vehiclePackingEstimates.map(s=>({code:s.vehicleClass,displayName:ppe[s.vehicleClass].displayName,quantity:s.estimatedFillQuantity}))),this.vehicleEstimateTotalVehicleWeight.set(this.weightToPounds.transform(e.weight)*Math.min(o.estimatedFillQuantity,e.quantity)),this.vehicleEstimateTotalVehicleFOBCost.set(this.getItemFobCost(e)*o.estimatedFillQuantity)):this.showVehicleEstimate.set(!1)}onEntryClicked(e){this.selectedContentItem.set(e),this.selectionUpdated.emit(e)}selectedContentItemChanged(e){this.selectedContentItem.set(e),this.selectionUpdated.emit(e)}getItemFobCost(e){return this.marketplaceService.getContentItemTotalFOBCostPerUnit(e,this.entityService.browsingAsEntity())}getItemPackingType(e){return this.marketplaceService.getPackingTypeDisplayName(e?.packingType)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-offer-content-tree"]],inputs:{baseOffer:[1,"baseOffer"],contents:[1,"contents"],selectedContentItem:[1,"selectedContentItem"],isRoot:[1,"isRoot"],selectFirstOrderable:[1,"selectFirstOrderable"],showPrices:[1,"showPrices"],parentCalculatedCostPerUnit:[1,"parentCalculatedCostPerUnit"]},outputs:{selectedContentItem:"selectedContentItemChange",selectionUpdated:"selectionUpdated"},decls:4,vars:2,consts:[[1,"tw-m-1","tw-mb-8","tw-flex","tw-px-4","tw-py-2"],[1,"tw-ml-0","tw-list-none",3,"ngClass"],[1,"tw-w-12","tw-flex-none","tw-pr-3"],[1,"pi","pi-truck","!tw-text-[2rem]"],[1,"tw-flex-1"],[1,"tw-font-semibold"],[1,"tw-font-xs","tw-text-slate-400"],[1,"tw-float-end","tw-font-semibold"],[3,"click"],[1,"pi","pi-truck",2,"font-size","2rem"],[1,"pi","pi-box",2,"font-size","2rem"],[1,"pi","pi-stop",2,"font-size","1.5rem"],[1,"tw-float-end","tw-font-semibold",3,"title"],[1,"tw-float-end","tw-text-sm","tw-italic",3,"title"],[3,"selectedContentItemChange","selectionUpdated","baseOffer","contents","selectedContentItem","parentCalculatedCostPerUnit","isRoot"]],template:function(i,o){1&i&&(n.DNE(0,xTt,11,10,"div",0),n.j41(1,"ul",1),n.Z7z(2,LTt,19,20,"li",null,n.Vm6),n.k0s()),2&i&&(n.vxM(o.showVehicleEstimate()?0:-1),n.R7$(),n.Y8G("ngClass",o.wrapperUlClasses()),n.R7$(),n.Dyx(o.contents()))},dependencies:[t,TTt,Fpe,gn,bi,as,oc,Zp],encapsulation:2})}}return t})(),GTt=(()=>{class t{transform(e){return e?l0t[e].displayName:null}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=n.EJ8({name:"formatCostType",type:t,pure:!0})}}return t})();function BTt(t,r){if(1&t&&(n.j41(0,"div",6),n.EFF(1,"Label Name"),n.k0s(),n.j41(2,"div",7),n.EFF(3),n.k0s()),2&t){let e;const i=n.XpG();n.R7$(3),n.SpI(" ",null==(e=i.detailContentItem())?null:e.brandLabel," ")}}function VTt(t,r){if(1&t&&(n.j41(0,"div",6),n.EFF(1,"Desc. / Variety"),n.k0s(),n.j41(2,"div",7),n.EFF(3),n.k0s()),2&t){let e;const i=n.XpG();n.R7$(3),n.SpI(" ",null==(e=i.detailContentItem())?null:e.description," ")}}function jTt(t,r){if(1&t&&(n.j41(0,"div",6),n.EFF(1,"Grade"),n.k0s(),n.j41(2,"div",7),n.EFF(3),n.k0s()),2&t){const e=n.XpG();n.R7$(3),n.SpI(" ",e.detailContentItemGrade()," ")}}function HTt(t,r){if(1&t&&(n.j41(0,"div",6),n.EFF(1,"UPC / SKU"),n.k0s(),n.j41(2,"div",7),n.EFF(3),n.k0s()),2&t){const e=n.XpG();n.R7$(3),n.SpI(" ",e.detailContentItemUpc()," ")}}function UTt(t,r){if(1&t&&(n.j41(0,"div",6),n.EFF(1,"Quantity Per FTL"),n.k0s(),n.j41(2,"div",7),n.EFF(3),n.k0s()),2&t){const e=n.XpG();n.R7$(3),n.SpI(" ",e.detailContentItemUnitsPerTrailer()," ")}}function $Tt(t,r){if(1&t&&(n.j41(0,"div",6),n.EFF(1,"Nutritional Category"),n.k0s(),n.j41(2,"div",7),n.EFF(3),n.k0s()),2&t){const e=n.XpG();n.R7$(3),n.SpI(" ",e.detailContentItemNutritionalCategory()," ")}}function YTt(t,r){if(1&t&&(n.j41(0,"div",6),n.EFF(1,"Storage Requirement"),n.k0s(),n.j41(2,"div",7),n.EFF(3),n.k0s()),2&t){const e=n.XpG();n.R7$(3),n.SpI(" ",e.detailContentItemStorageRequirement()," ")}}function WTt(t,r){if(1&t&&(n.j41(0,"div",6),n.EFF(1,"Shelf Life Notes"),n.k0s(),n.j41(2,"div",7),n.EFF(3),n.k0s()),2&t){let e;const i=n.XpG();n.R7$(3),n.SpI(" ",null==(e=i.detailContentItem())?null:e.shelfLifeNotes," ")}}function zTt(t,r){if(1&t&&(n.j41(0,"div",6),n.EFF(1,"Unit Dimensions"),n.k0s(),n.j41(2,"div",7),n.EFF(3),n.nI1(4,"formatSizeDimensions"),n.k0s()),2&t){let e;const i=n.XpG();n.R7$(3),n.SpI(" ",n.bMT(4,1,null==(e=i.detailContentItem())?null:e.dimensions)," ")}}function qTt(t,r){1&t&&(n.j41(0,"div",13),n.EFF(1,"Base Price"),n.k0s(),n.j41(2,"div",13),n.EFF(3," Amt. After Discounts "),n.k0s())}function XTt(t,r){1&t&&(n.j41(0,"div",13),n.EFF(1,"Amount"),n.k0s())}function KTt(t,r){if(1&t&&(n.j41(0,"div",14),n.EFF(1),n.nI1(2,"currency"),n.k0s(),n.j41(3,"div",14),n.EFF(4),n.nI1(5,"currency"),n.k0s()),2&t){const e=n.XpG().$implicit;n.R7$(),n.SpI(" ",n.bMT(2,2,e.cost)," "),n.R7$(3),n.SpI(" ",n.bMT(5,4,e.discountPrice)," ")}}function QTt(t,r){if(1&t&&(n.j41(0,"div",14),n.EFF(1),n.nI1(2,"currency"),n.k0s()),2&t){const e=n.XpG().$implicit;n.R7$(),n.SpI(" ",n.bMT(2,1,e.cost)," ")}}function JTt(t,r){if(1&t&&(n.j41(0,"div"),n.EFF(1),n.nI1(2,"formatCostType"),n.k0s(),n.j41(3,"div"),n.EFF(4),n.k0s(),n.DNE(5,KTt,6,6)(6,QTt,3,3,"div",14)),2&t){let e;const i=r.$implicit,o=n.XpG(2);n.R7$(),n.JRh(n.bMT(2,3,i.costType)),n.R7$(3),n.SpI(" ","QUANTITY"===i.applyTo?"Per "+(null==(e=o.detailContentItem())||null==e.packingType?null:e.packingType.itemId):"WEIGHT"===i.applyTo?"Per Pound":i.applyTo," "),n.R7$(),n.vxM(o.detailContentItemCostsHaveDiscounts()?5:6)}}function ZTt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",6),n.EFF(1,"FOB Cost Per Unit"),n.k0s(),n.j41(2,"div",7),n.EFF(3),n.nI1(4,"currency"),n.j41(5,"i",11),n.bIt("click",function(o){n.eBV(e);const s=n.sdS(7);return n.Njj(s.toggle(o))}),n.k0s(),n.j41(6,"p-popover",null,0)(8,"div")(9,"div",12),n.EFF(10,"Cost Type"),n.k0s(),n.j41(11,"div",12),n.EFF(12,"Applies"),n.k0s(),n.DNE(13,qTt,4,0)(14,XTt,2,0,"div",13),n.Z7z(15,JTt,7,5,null,null,n.Vm6),n.k0s()()(),n.j41(17,"div",6),n.EFF(18,"Minimum Units per Order"),n.k0s(),n.j41(19,"div",7),n.EFF(20),n.nI1(21,"number"),n.k0s()}if(2&t){let e;const i=n.XpG();n.R7$(3),n.SpI(" ",null==i.detailContentItem()?"":n.bMT(4,6,i.detailContentItemFOBCost())," "),n.R7$(5),n.ZvI("tw-grid tw-gap-x-4 tw-gap-y-2 ",i.detailContentItemCostsHaveDiscounts()?"tw-grid-cols-4":"tw-grid-cols-3",""),n.R7$(5),n.vxM(i.detailContentItemCostsHaveDiscounts()?13:14),n.R7$(2),n.Dyx(i.detailContentItemCostRecords()),n.R7$(5),n.SpI(" ",n.bMT(21,8,null==(e=i.detailContentItem())||null==e.segmentableQuantityDetail?null:e.segmentableQuantityDetail.minimumUnitsPerOrder)," ")}}function eSt(t,r){if(1&t&&(n.j41(0,"div",6),n.EFF(1,"Quantity Available"),n.k0s(),n.j41(2,"div",7),n.EFF(3),n.nI1(4,"number"),n.k0s()),2&t){let e;const i=n.XpG();n.R7$(3),n.SpI(" ",null!=(e=i.detailContentItem())&&null!=e.segmentableQuantityDetail&&e.segmentableQuantityDetail.isUnlimited?"Unlimited":n.bMT(4,1,null==(e=i.detailContentItem())||null==e.segmentableQuantityDetail?null:e.segmentableQuantityDetail.totalUnitsAvailable)," ")}}let Ppe=(()=>{class t{constructor(){this.entityService=(0,n.WQX)(jh),this.marketplaceService=(0,n.WQX)(Yu),this.offerVersion=n.hFB.required(),this.showPrices=(0,n.hFB)(!1),this.detailContentItemIsRoot=(0,n.EWP)(()=>this.offerVersion().contents.map(e=>e.contentItemId).includes(this.detailContentItem()?.contentItemId??"")??!1),this.contentTreeRootItems=(0,n.EWP)(()=>"STRUCTURE"===this.offerVersion().contentStructure&&1===this.offerVersion().contents.length&&1===this.offerVersion().contents[0].contents.length&&"PALLET"===this.offerVersion().contents[0].contents[0].packingType.unitLevel&&this.offerVersion().contents[0].contents[0].segmentableQuantityDetail?this.offerVersion().contents[0].contents:this.offerVersion().contents),this.detailContentItem=(0,n.vPA)(null),this.detailContentItemTaxonomyCode=(0,n.vPA)(""),this.detailContentItemTaxonomyEntry=(0,n.vPA)(null),this.detailContentItemUpc=(0,n.vPA)(""),this.detailContentItemNetSuiteId=(0,n.vPA)(""),this.detailContentItemFOBCost=(0,n.vPA)(0),this.detailContentItemNutritionalCategory=(0,n.vPA)(""),this.detailContentItemStorageRequirement=(0,n.vPA)(""),this.detailContentItemUnitsPerTrailer=(0,n.vPA)(null),this.detailContentItemGrade=(0,n.vPA)(""),this.detailContentItemPackingType=(0,n.vPA)(""),this.detailContentItemCostRecords=(0,n.EWP)(()=>{const e=new Array;if(!this.detailContentItem()?.itemCosts||!this.entityService.browsingAsEntity())return e;for(const i of this.detailContentItem()?.itemCosts){let o=this.marketplaceService.getContentItemCostPerUnitForEntity(this.detailContentItem(),i,this.entityService.browsingAsEntity());e.push({...i,hasDiscount:o!=i.cost,discountPrice:o})}return e}),this.detailContentItemCostsHaveDiscounts=(0,n.EWP)(()=>this.detailContentItemCostRecords().filter(e=>!0===e.hasDiscount).length>0)}selectedContentItemChanged(e){if(this.detailContentItem.set(e),null==e)return this.detailContentItemTaxonomyCode.set(""),this.detailContentItemFOBCost.set(0),this.detailContentItemUpc.set(""),this.detailContentItemNetSuiteId.set(""),this.detailContentItemTaxonomyEntry.set(null),this.detailContentItemNutritionalCategory.set(""),this.detailContentItemStorageRequirement.set(""),this.detailContentItemUnitsPerTrailer.set(null),this.detailContentItemGrade.set(""),void this.detailContentItemPackingType.set("");for(const i of e.itemTypes)"FANOTaxonomyCategory"==i.vocabularyId&&this.detailContentItemTaxonomyCode.set(i.itemId),"upc"==i.vocabularyId.toLowerCase()&&this.detailContentItemUpc.set(i.itemId),"FANONetSuite"==i.vocabularyId&&this.detailContentItemNetSuiteId.set(i.itemId),"FANOProduceGrade"==i.vocabularyId&&Object.keys(CX).includes(i.itemId)&&this.detailContentItemGrade.set(CX[Number(i.itemId)].displayName);if(""!=this.detailContentItemTaxonomyCode()&&this.marketplaceService.getTaxonomyEntry(this.detailContentItemTaxonomyCode()).subscribe(i=>{i&&this.detailContentItemTaxonomyEntry.set(i)}),this.detailContentItemFOBCost.set(this.marketplaceService.getContentItemTotalFOBCostPerUnit(this.detailContentItem(),this.entityService.browsingAsEntity())),this.detailContentItem()?.nutritionalCategoryDetails?.itemId&&this.detailContentItemNutritionalCategory.set(cP[this.detailContentItem()?.nutritionalCategoryDetails?.itemId].displayDetails.displayName),this.detailContentItem()?.storageRequirementDetails?.itemId&&this.detailContentItemStorageRequirement.set(uP[this.detailContentItem()?.storageRequirementDetails?.itemId].displayDetails.displayName),this.detailContentItemPackingType.set(this.marketplaceService.getPackingTypeDisplayName(this.detailContentItem()?.packingType)),this.detailContentItemUnitsPerTrailer.set(null),this.detailContentItem()?.vehiclePackingEstimates){const i=this.detailContentItem()?.vehiclePackingEstimates?.find(o=>"TRAILER"===o.vehicleClass);i&&i.estimatedFillQuantity>0&&this.detailContentItemUnitsPerTrailer.set(i?.estimatedFillQuantity)}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-packing-structure-info"]],inputs:{offerVersion:[1,"offerVersion"],showPrices:[1,"showPrices"]},decls:52,vars:29,consts:[["costDetails",""],[1,"tw-grid","tw-grid-cols-1","md:tw-grid-cols-2","md:tw-gap-4"],[1,""],[1,"tw-italic","tw-text-slate-700"],[3,"selectionUpdated","baseOffer","contents","showPrices"],[1,"marketplace-detail-grid-block"],[1,"marketplace-detail-label"],[1,"marketplace-detail-value"],[1,"tw-font-semibold"],[1,"tw-text-xs","tw-text-gray-500"],[1,"tw-mt-4","tw-italic","tw-text-slate-700"],[1,"pi","pi-window-maximize","tw-pl-2","tw-text-blue-600",3,"click"],[1,"tw-font-bold"],[1,"tw-text-right","tw-font-bold"],[1,"tw-text-right"]],template:function(i,o){if(1&i&&(n.j41(0,"div",1)(1,"div",2)(2,"div",3),n.EFF(3,"Packing Structure"),n.k0s(),n.j41(4,"app-offer-content-tree",4),n.bIt("selectionUpdated",function(a){return o.selectedContentItemChanged(a)}),n.k0s()(),n.j41(5,"div")(6,"div",3),n.EFF(7,"Unit Details"),n.k0s(),n.j41(8,"div",5)(9,"div",6),n.EFF(10,"Feeding America Item Type"),n.k0s(),n.j41(11,"div",7)(12,"div",8),n.EFF(13),n.k0s(),n.j41(14,"div",9),n.EFF(15),n.k0s()(),n.DNE(16,BTt,4,1)(17,VTt,4,1)(18,jTt,4,1)(19,HTt,4,1),n.j41(20,"div",6),n.EFF(21,"Import vs. Domestic"),n.k0s(),n.j41(22,"div",7),n.EFF(23),n.k0s(),n.j41(24,"div",6),n.EFF(25,"Packing Type"),n.k0s(),n.j41(26,"div",7),n.EFF(27),n.k0s(),n.j41(28,"div",6),n.EFF(29),n.k0s(),n.j41(30,"div",7),n.EFF(31),n.k0s(),n.DNE(32,UTt,4,1)(33,$Tt,4,1)(34,YTt,4,1)(35,WTt,4,1),n.j41(36,"div",6),n.EFF(37),n.k0s(),n.j41(38,"div",7),n.EFF(39),n.nI1(40,"number"),n.nI1(41,"formatWeightUOM"),n.k0s(),n.DNE(42,zTt,5,3),n.k0s(),n.j41(43,"div",10),n.EFF(44,"Purchasing"),n.k0s(),n.j41(45,"div",5)(46,"div",6),n.EFF(47),n.k0s(),n.j41(48,"div",7),n.EFF(49),n.k0s(),n.DNE(50,ZTt,22,10)(51,eSt,5,3),n.k0s()()()),2&i){let s,a,l,c,d,f,v,w,x,I,M,F;n.R7$(4),n.Y8G("baseOffer",o.offerVersion())("contents",o.contentTreeRootItems())("showPrices",o.showPrices()),n.R7$(9),n.SpI(" ",null==(s=o.detailContentItemTaxonomyEntry())?null:s.displayName," "),n.R7$(2),n.SpI(" ",null==(a=o.detailContentItemTaxonomyEntry())||null==a.displayPath?null:a.displayPath.join(" > ")," "),n.R7$(),n.vxM(null!=(l=o.detailContentItem())&&l.brandLabel?16:-1),n.R7$(),n.vxM(null!=(c=o.detailContentItem())&&c.description?17:-1),n.R7$(),n.vxM(o.detailContentItemGrade()?18:-1),n.R7$(),n.vxM(o.detailContentItemUpc()?19:-1),n.R7$(4),n.SpI(" ",null==o.detailContentItem()||null==(null==(d=o.detailContentItem())?null:d.isImported)?"(Unknown)":null!=(d=o.detailContentItem())&&d.isImported?"Import":"Domestic"," "),n.R7$(4),n.SpI(" ",o.detailContentItemPackingType()," "),n.R7$(2),n.SpI(" ",o.detailContentItemIsRoot()?"Quantity":"Quantity (per parent unit)"," "),n.R7$(2),n.SpI(" ",null==(f=o.detailContentItem())?null:f.quantity," "),n.R7$(),n.vxM(o.detailContentItemUnitsPerTrailer()?32:-1),n.R7$(),n.vxM(o.detailContentItemNutritionalCategory()?33:-1),n.R7$(),n.vxM(o.detailContentItemStorageRequirement()?34:-1),n.R7$(),n.vxM(null!=(v=o.detailContentItem())&&v.shelfLifeNotes?35:-1),n.R7$(2),n.SpI(" Weight (per ",o.detailContentItemPackingType(),") "),n.R7$(2),n.Lme(" ",n.bMT(40,25,null==(w=o.detailContentItem())||null==w.weight?null:w.weight.value)," ",n.bMT(41,27,null==(w=o.detailContentItem())||null==w.weight?null:w.weight.weightUOM)," "),n.R7$(3),n.vxM(null!=(x=o.detailContentItem())&&x.dimensions&&(null==(x=o.detailContentItem())?null:x.dimensions.length)>0?42:-1),n.R7$(5),n.SpI(" Can Order by ",o.detailContentItemPackingType(),"? "),n.R7$(2),n.SpI(" ",null==o.detailContentItem()?"":null==(null==(I=o.detailContentItem())?null:I.segmentableQuantityDetail)?"No":"Yes"," "),n.R7$(),n.vxM(o.showPrices()&&o.detailContentItem()&&o.detailContentItemFOBCost()>0&&null!=(M=o.detailContentItem())&&M.segmentableQuantityDetail?50:-1),n.R7$(),n.vxM(null!=(F=o.detailContentItem())&&null!=F.segmentableQuantityDetail&&F.segmentableQuantityDetail.totalUnitsAvailable?51:-1)}},dependencies:[gn,as,oc,NTt,GTt,K_,kv,Fpe,CTt],encapsulation:2})}}return t})();const tSt=["mapContainer"];let PX=(()=>{class t{constructor(){this.map=null,this.center=null,this.zoomLevel=5,this.marker=null}ngAfterViewInit(){this.map=new google.maps.Map(this.mapContainer.nativeElement,{center:this.center,zoom:this.zoomLevel})}ngOnInit(){}ngOnChanges(e){if(this.map&&e?.center&&this.center&&this.center.lat&&this.center.lng){const i={lat:this.center.lat,lng:this.center.lng};this.map.setCenter(new google.maps.LatLng(i)),this.marker?this.marker.setPosition(i):this.marker=new google.maps.Marker({map:this.map,position:i})}this.map&&this.map.setZoom(this.zoomLevel)}ngOnDestroy(){this.map&&this.map.unbindAll&&this.map.unbindAll()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["google-map"]],viewQuery:function(i,o){if(1&i&&n.GBs(tSt,5),2&i){let s;n.mGM(s=n.lsd())&&(o.mapContainer=s.first)}},inputs:{center:"center",zoomLevel:"zoomLevel"},standalone:!1,features:[n.OA$],decls:2,vars:0,consts:[["mapContainer",""],["id","mapContainer",1,"map-container"]],template:function(i,o){1&i&&n.nrm(0,"div",1,0)},styles:[".map-container[_ngcontent-%COMP%]{display:block;height:100%;width:100%}"]})}}return t})();const nSt=t=>({"tw-hidden":t});function iSt(t,r){1&t&&n.EFF(0," Loading details...\n")}function rSt(t,r){1&t&&n.EFF(0," Offer not found.\n")}function oSt(t,r){if(1&t&&n.EFF(0),2&t){let e;const i=n.XpG(2);n.SpI(" Feeding America, Browsing As: ",null==(e=i.entityService.browsingAsEntity())?null:e.name," ")}}function sSt(t,r){1&t&&n.nrm(0,"app-cart-button",2),2&t&&n.Y8G("showLabel",!0)}function aSt(t,r){if(1&t&&(n.j41(0,"div",9),n.EFF(1),n.k0s()),2&t){let e;const i=n.XpG(2);n.R7$(),n.SpI(" Supplier Identifier: ",null==(e=i.activeEntry())||null==e.offerSnapshot?null:e.offerSnapshot.sourceIdentifier," ")}}function lSt(t,r){if(1&t&&(n.EFF(0),n.nI1(1,"formatUTCTimestamp")),2&t){let e;const i=n.XpG(3);n.SpI(" ",n.i5U(1,1,null==(e=i.activeEntry())||null==e.offerSnapshot?null:e.offerSnapshot.shippingFirstAvailableTimeUTC,!1)," ")}}function cSt(t,r){if(1&t&&(n.EFF(0),n.nI1(1,"formatUTCTimestamp")),2&t){let e;const i=n.XpG(3);n.SpI(" ",n.i5U(1,1,null==(e=i.activeEntry())||null==e.offerSnapshot?null:e.offerSnapshot.shippingDeadlineTimeUTC,!1)," ")}}function uSt(t,r){if(1&t&&(n.j41(0,"div")(1,"span",11),n.EFF(2),n.k0s(),n.DNE(3,lSt,2,4),n.EFF(4),n.DNE(5,cSt,2,4),n.k0s()),2&t){let e,i,o;const s=n.XpG(2);n.R7$(2),n.SpI("",s.availableToShipStatement(),": "),n.R7$(),n.vxM(null!=(e=s.activeEntry())&&null!=e.offerSnapshot&&e.offerSnapshot.shippingFirstAvailableTimeUTC?3:-1),n.R7$(),n.SpI(" ",null!=(i=s.activeEntry())&&null!=i.offerSnapshot&&i.offerSnapshot.shippingDeadlineTimeUTC&&null!=(i=s.activeEntry())&&null!=i.offerSnapshot&&i.offerSnapshot.shippingFirstAvailableTimeUTC?" - ":""," "),n.R7$(),n.vxM(null!=(o=s.activeEntry())&&null!=o.offerSnapshot&&o.offerSnapshot.shippingDeadlineTimeUTC?5:-1)}}function dSt(t,r){if(1&t&&(n.EFF(0),n.nI1(1,"formatPrice")),2&t){let e;const i=n.XpG(2);n.SpI(" Est. ",n.bMT(1,1,null==(e=i.activeItemPricingSummaryPallet())?null:e.freightCostPerFTL)," freight cost per FTL ")}}function pSt(t,r){1&t&&(n.j41(0,"p-message",15),n.EFF(1,"This offer has delivered pricing. Delivery is included in the base cost and the supplier will deliver the product."),n.k0s())}function hSt(t,r){1&t&&(n.j41(0,"p-message",15),n.EFF(1,"This item contains multiple items that can be purchased separately, see below for details"),n.k0s())}function fSt(t,r){if(1&t&&(n.j41(0,"div",30),n.EFF(1),n.k0s()),2&t){let e;const i=n.XpG(3);n.R7$(),n.SpI(" ",null==(e=i.activeFlatItemSummary())?null:e.itemName," ")}}function mSt(t,r){if(1&t&&(n.EFF(0),n.nI1(1,"formatPrice")),2&t){let e;const i=n.XpG(3);n.Lme(" ",n.bMT(1,2,null==(e=i.activeItemPricingSummaryCase())?null:e.dlvdCostPerFTLUnit)," (",null!=(e=i.activeItemPricingSummaryCase())&&e.isEstimated?"Apx. ":"","per dlvd. case) ")}}function gSt(t,r){if(1&t&&(n.EFF(0),n.nI1(1,"formatPrice")),2&t){let e;const i=n.XpG(3);n.Lme(" ",n.bMT(1,2,null==(e=i.activeItemPricingSummaryUnit())?null:e.dlvdCostPerFTLUnit)," (",null!=(e=i.activeItemPricingSummaryUnit())&&e.isEstimated?"Apx. ":"","per dlvd. unit) ")}}function vSt(t,r){if(1&t&&(n.EFF(0),n.nI1(1,"currency")),2&t){let e;const i=n.XpG(3);n.Lme(" ",n.bMT(1,2,null==(e=i.activeItemPricingSummaryPallet())?null:e.dlvdCostPerFTLPound)," (",null!=(e=i.activeItemPricingSummaryPallet())&&e.isEstimated?"Apx. ":"","per dlvd. lb) ")}}function _St(t,r){1&t&&(n.j41(0,"div",32),n.EFF(1," Delivered Pricing Not Available "),n.nrm(2,"i",33),n.k0s())}function ySt(t,r){if(1&t&&(n.DNE(0,fSt,2,1,"div",30),n.j41(1,"div",31)(2,"div"),n.EFF(3),n.nI1(4,"formatPrice"),n.k0s(),n.j41(5,"div"),n.EFF(6),n.nI1(7,"formatPrice"),n.k0s(),n.j41(8,"div"),n.EFF(9),n.nI1(10,"formatPrice"),n.k0s(),n.j41(11,"div"),n.DNE(12,mSt,2,4),n.k0s(),n.j41(13,"div"),n.DNE(14,gSt,2,4),n.k0s(),n.j41(15,"div"),n.DNE(16,vSt,2,4),n.k0s(),n.DNE(17,_St,3,0,"div",32),n.k0s()),2&t){let e,i,o,s,a,l,c;const d=n.XpG(2);n.vxM(d.multiplePurchasableItems()?0:-1),n.R7$(3),n.E5c(" ",n.bMT(4,14,null==(e=d.activeItemPricingSummaryCase())?null:e.fobCostPerUnit)," (",null!=(e=d.activeItemPricingSummaryCase())&&e.isEstimated?"Apx. ":"","per ",null!=(e=d.activeItemPricingSummaryCase())&&e.isEstimated?"":"FOB ","case) "),n.R7$(3),n.E5c(" ",n.bMT(7,16,null==(i=d.activeItemPricingSummaryUnit())?null:i.fobCostPerUnit)," (",null!=(i=d.activeItemPricingSummaryUnit())&&i.isEstimated?"Apx. ":"","per ",null!=(i=d.activeItemPricingSummaryUnit())&&i.isEstimated?"":"FOB ","unit) "),n.R7$(3),n.E5c(" ",n.bMT(10,18,null==(o=d.activeItemPricingSummaryPallet())?null:o.fobCostPerPound)," (",null!=(o=d.activeItemPricingSummaryPallet())&&o.isEstimated?"Apx. ":"","per ",null!=(o=d.activeItemPricingSummaryPallet())&&o.isEstimated?"":"FOB ","lb) "),n.R7$(3),n.vxM(null!=(s=d.activeItemPricingSummaryCase())&&s.dlvdCostPerFTLUnit?12:-1),n.R7$(2),n.vxM(null!=(a=d.activeItemPricingSummaryUnit())&&a.dlvdCostPerFTLUnit?14:-1),n.R7$(2),n.vxM(null!=(l=d.activeItemPricingSummaryPallet())&&l.dlvdCostPerFTLPound?16:-1),n.R7$(),n.vxM(null!=(c=d.activeItemPricingSummaryPallet())&&c.dlvdCostPerFTLPound||null!=(c=d.activeItemPricingSummaryCase())&&c.dlvdCostPerFTLUnit||null!=(c=d.activeItemPricingSummaryCase())&&c.dlvdCostPerFTLUnit?-1:17)}}function bSt(t,r){if(1&t&&n.EFF(0),2&t){let e;const i=n.XpG(2);n.SpI(" ",null!==(e=null==(e=i.activeFlatItemSummary())?null:e.maximumPalletUnitsPerOrder)&&void 0!==e?e:"(Unlimited)"," pallet(s) available ")}}function CSt(t,r){if(1&t&&n.EFF(0),2&t){let e;const i=n.XpG(2);n.SpI(" ",null!==(e=null==(e=i.activeFlatItemSummary())?null:e.maximumVehicleUnitsPerOrder)&&void 0!==e?e:"(Unlimited)"," truck(s) available ")}}function wSt(t,r){if(1&t&&n.EFF(0),2&t){let e;const i=n.XpG(2);n.SpI(" ",null==(e=i.activeFlatItemSummary())?null:e.minimumPalletUnitsPerOrder," pallet order minimum ")}}function TSt(t,r){if(1&t&&n.EFF(0),2&t){let e;const i=n.XpG(2);n.SpI(" ",null==(e=i.activeFlatItemSummary())?null:e.minimumVehicleUnitsPerOrder," truck order minimum ")}}function SSt(t,r){if(1&t){const e=n.RV6();n.j41(0,"app-primary-button",34),n.bIt("click",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.onAddToCartClicked())}),n.k0s()}if(2&t){const e=n.XpG(2);n.Y8G("text",e.activeItemInCart()?"Already In Cart!":"Add to cart")("disabled",e.activeItemInCart()||e.entityService.isFANO()||!e.entityService.deliveryLocationEntity())}}function xSt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",0)(1,"div",1),n.DNE(2,oSt,1,1),n.k0s(),n.j41(3,"div"),n.DNE(4,sSt,1,1,"app-cart-button",2),n.k0s()(),n.j41(5,"div",3)(6,"div",4)(7,"div",5),n.nrm(8,"app-item-image",6),n.k0s(),n.j41(9,"div",7)(10,"p-card")(11,"div",8),n.EFF(12),n.k0s(),n.DNE(13,aSt,2,1,"div",9),n.j41(14,"div",10)(15,"div")(16,"span",11),n.EFF(17,"Available Until:"),n.k0s(),n.EFF(18),n.nI1(19,"formatUTCTimestamp"),n.k0s(),n.DNE(20,uSt,6,4,"div"),n.k0s(),n.j41(21,"div",12)(22,"div")(23,"button",13),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.viewSupplierDetails())}),n.EFF(24),n.k0s()(),n.j41(25,"div",14),n.DNE(26,dSt,2,3),n.k0s()(),n.nrm(27,"p-divider"),n.DNE(28,pSt,2,0,"p-message",15)(29,hSt,2,0,"p-message",15)(30,ySt,18,20),n.j41(31,"div",16),n.EFF(32),n.k0s(),n.nrm(33,"p-divider"),n.j41(34,"div",17)(35,"div")(36,"span",11),n.DNE(37,bSt,1,1)(38,CSt,1,1),n.k0s()(),n.j41(39,"div")(40,"span",11),n.EFF(41),n.k0s()(),n.j41(42,"div")(43,"span",11),n.DNE(44,wSt,1,1)(45,TSt,1,1),n.k0s()()(),n.j41(46,"div",18),n.DNE(47,SSt,1,2,"app-primary-button",19),n.k0s()()(),n.j41(48,"div",20),n.nrm(49,"p-divider"),n.k0s(),n.j41(50,"div",20)(51,"p-card",21),n.nrm(52,"app-packing-structure-info",22),n.k0s(),n.nrm(53,"p-divider"),n.j41(54,"p-card",23)(55,"div",24)(56,"div",25)(57,"div",26),n.EFF(58,"Supplier Name"),n.k0s(),n.j41(59,"div",27),n.EFF(60),n.k0s(),n.j41(61,"div",26),n.EFF(62,"Warehouse Name"),n.k0s(),n.j41(63,"div",27),n.EFF(64),n.k0s(),n.j41(65,"div",26),n.EFF(66,"Warehouse Address"),n.k0s(),n.j41(67,"div",27),n.EFF(68),n.nI1(69,"formatEntityAddress"),n.k0s(),n.j41(70,"div",26),n.EFF(71,"Receipt To"),n.k0s(),n.j41(72,"div",27),n.EFF(73),n.k0s(),n.j41(74,"div",26),n.EFF(75," Receipt to Organization Address "),n.k0s(),n.j41(76,"div",27),n.EFF(77),n.nI1(78,"formatEntityAddress"),n.k0s()(),n.j41(79,"div",28),n.nrm(80,"google-map",29),n.k0s()()()()()()}if(2&t){let e,i,o,s,a,l,c,d,f,v,w,x,I,M,F;const re=n.XpG();n.R7$(2),n.vxM(re.entityService.isFANO()?2:-1),n.R7$(2),n.vxM(re.entityService.isFANO()?-1:4),n.R7$(4),n.Y8G("imageUrls",re.images())("allowGallery",!0)("placeholderImageUrl",re.overridePlaceholderImage()),n.R7$(4),n.Lme(" ",null==(e=re.activeEntry())||null==e.offerSnapshot?null:e.offerSnapshot.title," (Offer ",null==(e=re.activeEntry())||null==e.offerSnapshot?null:e.offerSnapshot.offerCode,") "),n.R7$(),n.vxM(null!=(i=re.activeEntry())&&null!=i.offerSnapshot&&i.offerSnapshot.sourceIdentifier&&(null==(i=re.activeEntry())||null==i.offerSnapshot?null:i.offerSnapshot.sourceIdentifier.length)>0?13:-1),n.R7$(5),n.SpI(" ",n.bMT(19,29,null==(o=re.activeEntry())?null:o.endTimeUTC)," "),n.R7$(2),n.vxM(re.availableToShipStatement()?20:-1),n.R7$(4),n.SpI(" ",null==(s=re.activeEntry())||null==s.offerSnapshot||null==s.offerSnapshot.sourceEntity?null:s.offerSnapshot.sourceEntity.name," "),n.R7$(2),n.vxM(re.userCanViewPrices()&&"DELIVERED"!==(null==(a=re.activeEntry())||null==a.offerSnapshot?null:a.offerSnapshot.pricingModel)?26:-1),n.R7$(2),n.vxM("DELIVERED"===(null==(l=re.activeEntry())||null==l.offerSnapshot?null:l.offerSnapshot.pricingModel)?28:-1),n.R7$(),n.vxM(re.multiplePurchasableItems()?29:-1),n.R7$(),n.vxM(re.activeFlatItemSummary()&&re.userCanViewPrices()?30:-1),n.R7$(2),n.SpI(" ",null==(c=re.activeEntry())||null==c.offerSnapshot?null:c.offerSnapshot.description," "),n.R7$(5),n.vxM(null!=(d=re.activeFlatItemSummary())&&d.canOrderAtPalletLevel?37:null!=(d=re.activeFlatItemSummary())&&d.canOrderAtVehicleLevel?38:-1),n.R7$(4),n.SpI(" ",null==(f=re.activeEntry())||null==f.offerSnapshot?null:f.offerSnapshot.leadTimeInDays," day lead time "),n.R7$(3),n.vxM(null!=(v=re.activeFlatItemSummary())&&v.canOrderAtPalletLevel?44:null!=(v=re.activeFlatItemSummary())&&v.canOrderAtVehicleLevel?45:-1),n.R7$(3),n.vxM(re.userCanOrder()?47:-1),n.R7$(5),n.Y8G("showPrices",re.userCanViewPrices())("offerVersion",re.activeEntry().offerSnapshot),n.R7$(8),n.SpI(" ",null==(w=re.activeEntry())||null==w.offerSnapshot||null==w.offerSnapshot.sourceEntity?null:w.offerSnapshot.sourceEntity.name," "),n.R7$(4),n.SpI(" ",null==(x=re.activeEntry())||null==x.offerSnapshot||null==x.offerSnapshot.locationEntity?null:x.offerSnapshot.locationEntity.name," "),n.R7$(4),n.SpI(" ",n.bMT(69,31,null==(I=re.activeEntry())||null==I.offerSnapshot?null:I.offerSnapshot.locationEntity)," "),n.R7$(5),n.SpI(" ",null==(M=re.activeEntry())||null==M.offerSnapshot||null==M.offerSnapshot.receiptToEntity?null:M.offerSnapshot.receiptToEntity.name," "),n.R7$(4),n.SpI(" ",n.bMT(78,33,null==(F=re.activeEntry())||null==F.offerSnapshot?null:F.offerSnapshot.receiptToEntity)," "),n.R7$(2),n.Y8G("ngClass",n.eq3(35,nSt,null==re.locationCenter())),n.R7$(),n.Y8G("center",re.locationCenter())}}let ESt=(()=>{class t{constructor(){this.entityService=(0,n.WQX)(jh),this.legacyNavigationService=(0,n.WQX)(wc),this.marketplaceService=(0,n.WQX)(Yu),this.timelineEntryService=(0,n.WQX)(zv),this.authService=(0,n.WQX)(dP),this.cartService=(0,n.WQX)(l0),this.offerId="",this.activeEntry=(0,n.vPA)(null),this.availableEntryFlatSummaries=(0,n.vPA)([]),this.activeFlatItemSummary=(0,n.vPA)(null),this.multiplePurchasableItems=(0,n.vPA)(!1),this.locationCenter=(0,n.vPA)(null),this.watchedOfferId=(0,n.vPA)(""),this.activeItemPricingSummaryUnit=(0,n.vPA)(null),this.activeItemPricingSummaryCase=(0,n.vPA)(null),this.activeItemPricingSummaryPallet=(0,n.vPA)(null),this.activeItemInCart=(0,n.EWP)(()=>{this.cartService.inCartContentIds();const e=this.activeFlatItemSummary();return!!e&&(this.cartService.inCartContentIds().includes(e.vehicleLevelOfferContentId??"")||this.cartService.inCartContentIds().includes(e.palletLevelOfferContentId??"")||this.cartService.inCartContentIds().includes(e.caseLevelOfferContentId??"")||this.cartService.inCartContentIds().includes(e.unitLevelOfferContentId??""))}),this.availableToShipStatement=(0,n.EWP)(()=>{let e="";return this.activeEntry()?.offerSnapshot.shippingDeadlineTimeUTC&&this.activeEntry()?.offerSnapshot.shippingFirstAvailableTimeUTC&&(e="Must Ship Between"),this.activeEntry()?.offerSnapshot.shippingDeadlineTimeUTC&&!this.activeEntry()?.offerSnapshot.shippingFirstAvailableTimeUTC&&(e="Must Ship By"),!this.activeEntry()?.offerSnapshot.shippingDeadlineTimeUTC&&this.activeEntry()?.offerSnapshot.shippingFirstAvailableTimeUTC&&(e="Must Ship After"),e}),this.isLoading=(0,n.vPA)(!0),this.images=(0,n.EWP)(()=>this.activeEntry()?.offerSnapshot.contents.flatMap(e=>e.images.map(i=>i.imageUri))??[]),this.overridePlaceholderImage=(0,n.vPA)(null),this.userCanOrder=(0,n.EWP)(()=>this.authService.canUserTakeAction(this.activeFlatItemSummary(),"ORDER")),this.userCanViewPrices=(0,n.EWP)(()=>this.authService.canUserTakeAction(this.activeFlatItemSummary(),"VIEW_PRICES")),(0,n.QZP)(()=>{this.watchedOfferId()&&this.entityService.availableBrowseEntities().length&&this.loadTimelineEntry()}),(0,n.QZP)(()=>{if(1===this.activeEntry()?.offerSnapshot.contents.length){const e=this.activeEntry()?.offerSnapshot.contents[0].itemTypes.find(i=>"FANOTaxonomyCategory"===i.vocabularyId)?.itemId;e&&""!=e&&this.marketplaceService.getTaxonomyEntry(e).subscribe({next:i=>{i?.defaultImageUri&&this.overridePlaceholderImage.set(i.defaultImageUri)}})}})}ngOnChanges(e){e.offerId&&this.watchedOfferId.set(e.offerId.currentValue)}loadTimelineEntry(){this.marketplaceService.getTimelineEntry(this.offerId).subscribe({next:e=>{e&&(this.activeEntry.set(e),this.updateMap(e?.offerSnapshot),this.availableEntryFlatSummaries.set(this.timelineEntryService.getFlattenedItemSummariesForTimelineEntry(e)),this.availableEntryFlatSummaries().length>1&&this.multiplePurchasableItems.set(!0),this.setActiveItem(this.availableEntryFlatSummaries()[0])),this.isLoading.set(!1)}})}viewSupplierDetails(){this.legacyNavigationService.navigate("app.marketplace-supplier-detail",{entityId:this.activeEntry()?.offerSnapshot.sourceEntity.internalDetail?.internalEntityId})}setActiveItem(e){this.activeFlatItemSummary.set(e),this.activeItemPricingSummaryUnit.set(this.marketplaceService.getPricingSummary(e,"EACH")),this.activeItemPricingSummaryCase.set(this.marketplaceService.getPricingSummary(e,"CASE")),this.activeItemPricingSummaryPallet.set(this.marketplaceService.getPricingSummary(e,"PALLET"))}updateMap(e){this.locationCenter.set(null!=e?.locationEntity?.latitude&&e?.locationEntity?.longitude?{lat:e?.locationEntity?.latitude,lng:e?.locationEntity?.longitude}:null)}onAddToCartClicked(){let e="";const i=this.activeFlatItemSummary();if(i){if(i.canOrderAtPalletLevel)e=i.palletLevelOfferContentId;else{if(!i.canOrderAtVehicleLevel)return;e=i.vehicleLevelOfferContentId}this.cartService.addToCartByFlatItem(i,e,this.entityService.browsingAsEntity(),this.entityService.deliveryLocationEntity())}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["marketplace-timeline-entry-detail"]],inputs:{offerId:"offerId"},features:[n.OA$],decls:3,vars:3,consts:[[1,"tw-mb-4","tw-flex","tw-justify-between","tw-gap-8"],[1,"tw-font-bold"],[3,"showLabel"],[1,"tw-container","tw-mx-auto","tw-max-w-screen-lg"],[1,"tw-grid","tw-grid-cols-6","tw-gap-4"],[1,"tw-col-span-2"],[3,"imageUrls","allowGallery","placeholderImageUrl"],[1,"tw-col-span-4"],[1,"tw-text-2xl","tw-font-bold"],[1,""],[1,"tw-flex","tw-gap-x-6"],[1,"tw-font-semibold"],[1,"tw-mt-2","tw-flex","tw-items-center","tw-justify-between"],["title","View Supplier Details",1,"btn","btn-link","tw-pl-0",3,"click"],[1,"tw-text-sm","tw-text-slate-400"],["severity","warn",1,"tw-mb-4","tw-block","tw-text-xs"],[1,"tw-whitespace-pre-line"],[1,"tw-mb-2","tw-grid","tw-grid-cols-3"],[1,"tw-mb-2"],["clickedText","Added","size","MEDIUM",1,"tw-mt-2",3,"text","disabled"],[1,"tw-col-span-6"],["header","Product Information"],[3,"showPrices","offerVersion"],["header","Supplier Information",1,""],[1,"tw-grid","tw-grid-cols-1","md:tw-grid-cols-2","md:tw-gap-4"],[1,"marketplace-detail-grid-block"],[1,"marketplace-detail-label"],[1,"marketplace-detail-value"],[3,"ngClass"],[3,"center"],[1,"tw-my-2","tw-text-xl","tw-font-semibold"],[1,"tw-mb-4","tw-grid","tw-grid-cols-3","tw-gap-y-1","tw-font-semibold"],[1,"tw-mt-1","tw-text-xs","tw-text-slate-400"],["pTooltip","Sorry - delivery estimates aren't available right now for this item. Final costs will be calculated during checkout.",1,"pi","pi-question-circle","tw-pl-2","!tw-text-xs"],["clickedText","Added","size","MEDIUM",1,"tw-mt-2",3,"click","text","disabled"]],template:function(i,o){1&i&&n.DNE(0,iSt,1,0)(1,rSt,1,0)(2,xSt,81,37),2&i&&(n.vxM(o.isLoading()?0:-1),n.R7$(),n.vxM(o.isLoading()||o.activeEntry()?-1:1),n.R7$(),n.vxM(!o.isLoading()&&o.activeEntry()?2:-1))},dependencies:[A2,Xy,c0,Dy,z_,FX,fP,rm,kg,gn,bi,oc,th,ou,PX,K_,g6,qv,mP,Ppe],encapsulation:2})}}return t})();const DSt=({dt:t})=>`\n.p-confirmpopup {\n    position: absolute;\n    margin-top: ${t("confirmpopup.gutter")};\n    top: 0;\n    left: 0;\n    background: ${t("confirmpopup.background")};\n    color: ${t("confirmpopup.color")};\n    border: 1px solid ${t("confirmpopup.border.color")};\n    border-radius: ${t("confirmpopup.border.radius")};\n    box-shadow: ${t("confirmpopup.shadow")};\n}\n\n.p-confirmpopup-content {\n    display: flex;\n    align-items: center;\n    padding: ${t("confirmpopup.content.padding")};\n    gap: ${t("confirmpopup.content.gap")};\n}\n\n.p-confirmpopup-icon {\n    font-size: ${t("confirmpopup.icon.size")};\n    width: ${t("confirmpopup.icon.size")};\n    height: ${t("confirmpopup.icon.size")};\n    color: ${t("confirmpopup.icon.color")};\n}\n\n.p-confirmpopup-footer {\n    display: flex;\n    justify-content: flex-end;\n    gap: ${t("confirmpopup.footer.gap")};\n    padding: ${t("confirmpopup.footer.padding")};\n}\n\n.p-confirmpopup-footer button {\n    width: auto;\n}\n\n.p-confirmpopup-footer button:last-child {\n    margin: 0;\n}\n\n.p-confirmpopup-flipped {\n    margin-top: calc(${t("confirmpopup.gutter")} * -1);\n    margin-bottom: ${t("confirmpopup.gutter")};\n}\n\n.p-confirmpopup-enter-from {\n    opacity: 0;\n    transform: scaleY(0.8);\n}\n\n.p-confirmpopup-leave-to {\n    opacity: 0;\n}\n\n.p-confirmpopup-enter-active {\n    transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n}\n\n.p-confirmpopup-leave-active {\n    transition: opacity 0.1s linear;\n}\n\n.p-confirmpopup:after,\n.p-confirmpopup:before {\n    bottom: 100%;\n    left: ${t("confirmpopup.arrow.offset")};\n    content: " ";\n    height: 0;\n    width: 0;\n    position: absolute;\n    pointer-events: none;\n}\n\n.p-confirmpopup:after {\n    border-width: calc(${t("confirmpopup.gutter")} - 2px);\n    margin-left: calc(-1 * (${t("confirmpopup.gutter")} - 2px));\n    border-style: solid;\n    border-color: transparent;\n    border-bottom-color: ${t("confirmpopup.background")};\n}\n\n.p-confirmpopup:before {\n    border-width: ${t("confirmpopup.gutter")};\n    margin-left: calc(-1 * ${t("confirmpopup.gutter")});\n    border-style: solid;\n    border-color: transparent;\n    border-bottom-color: ${t("confirmpopup.border.color")};\n}\n\n.p-confirmpopup-flipped:after,\n.p-confirmpopup-flipped:before {\n    bottom: auto;\n    top: 100%;\n}\n\n.p-confirmpopup-flipped:after {\n    border-bottom-color: transparent;\n    border-top-color: ${t("confirmpopup.background")};\n}\n\n.p-confirmpopup-flipped:before {\n    border-bottom-color: transparent;\n    border-top-color: ${t("confirmpopup.border.color")};\n}\n`,kSt={root:"p-confirmpopup p-component",content:"p-confirmpopup-content",icon:"p-confirmpopup-icon",message:"p-confirmpopup-message",footer:"p-confirmpopup-footer",pcRejectButton:"p-confirmpopup-reject-button",pcAcceptButton:"p-confirmpopup-accept-button"};let Lpe=(()=>{class t extends gs{name="confirmpopup";theme=DSt;classes=kSt;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const ASt=["content"],MSt=["accepticon"],RSt=["rejecticon"],OSt=["headless"],FSt=(t,r)=>({showTransitionParams:t,hideTransitionParams:r}),PSt=t=>({value:"open",params:t}),Npe=t=>({$implicit:t});function LSt(t,r){1&t&&n.eu8(0)}function NSt(t,r){if(1&t&&(n.qex(0),n.DNE(1,LSt,1,0,"ng-container",8),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngTemplateOutlet",e.headlessTemplate||e._headlessTemplate)("ngTemplateOutletContext",n.eq3(2,Npe,e.confirmation))}}function GSt(t,r){1&t&&n.eu8(0)}function BSt(t,r){if(1&t&&(n.qex(0),n.DNE(1,GSt,1,0,"ng-container",8),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",n.eq3(2,Npe,e.confirmation))}}function VSt(t,r){if(1&t&&n.nrm(0,"i",15),2&t){const e=n.XpG(4);n.HbH(null==e.confirmation?null:e.confirmation.icon),n.Y8G("ngClass","p-confirmpopup-icon")}}function jSt(t,r){if(1&t&&(n.DNE(0,VSt,1,3,"i",13),n.j41(1,"span",14),n.EFF(2),n.k0s()),2&t){const e=n.XpG(3);n.Y8G("ngIf",null==e.confirmation?null:e.confirmation.icon),n.R7$(2),n.JRh(null==e.confirmation?null:e.confirmation.message)}}function HSt(t,r){if(1&t&&n.nrm(0,"i"),2&t){const e=n.XpG(4);n.HbH(null==e.confirmation?null:e.confirmation.rejectIcon)}}function USt(t,r){}function $St(t,r){1&t&&n.DNE(0,USt,0,0,"ng-template",null,3,n.C5r)}function YSt(t,r){if(1&t){const e=n.RV6();n.j41(0,"p-button",16),n.bIt("onClick",function(){n.eBV(e);const o=n.XpG(3);return n.Njj(o.onReject())}),n.DNE(1,HSt,1,2,"i",17)(2,$St,2,0,null,18),n.k0s()}if(2&t){const e=n.XpG(3);n.Y8G("label",e.rejectButtonLabel)("ngClass","p-confirmpopup-reject-button")("styleClass",null==e.confirmation?null:e.confirmation.rejectButtonStyleClass)("size",(null==e.confirmation.rejectButtonProps?null:e.confirmation.rejectButtonProps.size)||"small")("text",(null==e.confirmation.rejectButtonProps?null:e.confirmation.rejectButtonProps.text)||!1)("buttonProps",e.getRejectButtonProps()),n.BMQ("aria-label",e.rejectButtonLabel),n.R7$(),n.Y8G("ngIf",null==e.confirmation?null:e.confirmation.rejectIcon)("ngIfElse",e.rejecticon),n.R7$(),n.Y8G("ngTemplateOutlet",e.rejectIconTemplate||e._rejectIconTemplate)}}function WSt(t,r){if(1&t&&n.nrm(0,"i"),2&t){const e=n.XpG(4);n.HbH(null==e.confirmation?null:e.confirmation.acceptIcon)}}function zSt(t,r){}function qSt(t,r){1&t&&n.DNE(0,zSt,0,0,"ng-template",null,4,n.C5r)}function XSt(t,r){if(1&t){const e=n.RV6();n.j41(0,"p-button",19),n.bIt("onClick",function(){n.eBV(e);const o=n.XpG(3);return n.Njj(o.onAccept())}),n.DNE(1,WSt,1,2,"i",17)(2,qSt,2,0,null,18),n.k0s()}if(2&t){const e=n.XpG(3);n.Y8G("label",e.acceptButtonLabel)("ngClass","p-confirmpopup-accept-button")("styleClass",null==e.confirmation?null:e.confirmation.acceptButtonStyleClass)("size",(null==e.confirmation.acceptButtonProps?null:e.confirmation.acceptButtonProps.size)||"small")("buttonProps",e.getAcceptButtonProps()),n.BMQ("aria-label",e.acceptButtonLabel),n.R7$(),n.Y8G("ngIf",null==e.confirmation?null:e.confirmation.acceptIcon)("ngIfElse",e.accepticontemplate),n.R7$(),n.Y8G("ngTemplateOutlet",e.acceptIconTemplate||e._acceptIconTemplate)}}function KSt(t,r){if(1&t&&(n.j41(0,"div",9,1),n.DNE(2,BSt,2,4,"ng-container",7)(3,jSt,3,2,"ng-template",null,2,n.C5r),n.k0s(),n.j41(5,"div",10),n.DNE(6,YSt,3,10,"p-button",11)(7,XSt,3,9,"p-button",12),n.k0s()),2&t){const e=n.sdS(4),i=n.XpG(2);n.R7$(2),n.Y8G("ngIf",i.contentTemplate||i._contentTemplate)("ngIfElse",e),n.R7$(4),n.Y8G("ngIf",!1!==(null==i.confirmation?null:i.confirmation.rejectVisible)),n.R7$(),n.Y8G("ngIf",!1!==(null==i.confirmation?null:i.confirmation.acceptVisible))}}function QSt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",6),n.bIt("click",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onOverlayClick(o))})("@animation.start",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onAnimationStart(o))})("@animation.done",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onAnimationEnd(o))}),n.DNE(1,NSt,2,4,"ng-container",7)(2,KSt,8,4,"ng-template",null,0,n.C5r),n.k0s()}if(2&t){const e=n.sdS(3),i=n.XpG();n.HbH(i.styleClass),n.Y8G("ngClass","p-confirmpopup p-component")("ngStyle",i.style)("@animation",n.eq3(10,PSt,n.l_i(7,FSt,i.showTransitionOptions,i.hideTransitionOptions))),n.R7$(),n.Y8G("ngIf",i.headlessTemplate||i._headlessTemplate)("ngIfElse",e)}}let gP=(()=>{class t extends jo{el;confirmationService;renderer;cd;overlayService;document;key;defaultFocus="accept";showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";autoZIndex=!0;baseZIndex=0;style;styleClass;get visible(){return this._visible}set visible(e){this._visible=e,this.cd.markForCheck()}container;subscription;confirmation;contentTemplate;acceptIconTemplate;rejectIconTemplate;headlessTemplate;_contentTemplate;_acceptIconTemplate;_rejectIconTemplate;_headlessTemplate;_visible;documentClickListener;documentResizeListener;scrollHandler;window;_componentStyle=(0,n.WQX)(Lpe);constructor(e,i,o,s,a,l){super(),this.el=e,this.confirmationService=i,this.renderer=o,this.cd=s,this.overlayService=a,this.document=l,this.window=this.document.defaultView,this.subscription=this.confirmationService.requireConfirmation$.subscribe(c=>{c?c.key===this.key&&(this.confirmation=c,Object.keys(c).forEach(f=>{this[f]=c[f]}),this.confirmation.accept&&(this.confirmation.acceptEvent=new n.bkB,this.confirmation.acceptEvent.subscribe(this.confirmation.accept)),this.confirmation.reject&&(this.confirmation.rejectEvent=new n.bkB,this.confirmation.rejectEvent.subscribe(this.confirmation.reject)),this.visible=!0):this.hide()})}templates;ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"content":this._contentTemplate=e.template;break;case"rejecticon":this._rejectIconTemplate=e.template;break;case"accepticon":this._acceptIconTemplate=e.template;break;case"headless":this._headlessTemplate=e.template}})}option(e,i){const o=this||this;if(o.hasOwnProperty(e))return i?o[i]:o[e]}onEscapeKeydown(e){this.confirmation&&this.confirmation.closeOnEscape&&this.onReject()}onAnimationStart(e){if("open"===e.toState){this.container=e.element,this.renderer.appendChild(this.document.body,this.container),this.align(),this.bindListeners();const i=this.getElementToFocus();i&&i.focus()}}onAnimationEnd(e){"void"===e.toState&&this.onContainerDestroy()}getAcceptButtonProps(){return this.option("acceptButtonProps")}getRejectButtonProps(){return this.option("rejectButtonProps")}getElementToFocus(){switch(this.defaultFocus){case"accept":return xo(this.container,".p-confirm-popup-accept");case"reject":return xo(this.container,".p-confirm-popup-reject");case"none":return null}}align(){if(this.autoZIndex&&Yc.set("overlay",this.container,this.config.zIndex.overlay),!this.confirmation)return;ZD(this.container,this.confirmation?.target,!1);const e=yy(this.container),i=yy(this.confirmation?.target);let o=0;e.left<i.left&&(o=i.left-e.left),this.container.style.setProperty("--overlayArrowLeft",`${o}px`),e.top<i.top&&Nc(this.container,"p-confirm-popup-flipped")}hide(){this.visible=!1}onAccept(){this.confirmation?.acceptEvent&&this.confirmation.acceptEvent.emit(),this.hide()}onReject(){this.confirmation?.rejectEvent&&this.confirmation.rejectEvent.emit(),this.hide()}onOverlayClick(e){this.overlayService.add({originalEvent:e,target:this.el.nativeElement})}bindListeners(){setTimeout(()=>{this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener()})}unbindListeners(){this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener()}bindDocumentClickListener(){if(!this.documentClickListener){let e=CZ()?"touchstart":"click";this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:this.document,e,o=>{if(this.confirmation&&!1!==this.confirmation.dismissableMask){let s=this.confirmation.target;this.container!==o.target&&!this.container?.contains(o.target)&&s!==o.target&&!s.contains(o.target)&&this.hide()}})}}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}onWindowResize(){this.visible&&!by()&&this.hide()}bindDocumentResizeListener(){this.documentResizeListener||(this.documentResizeListener=this.renderer.listen(this.window,"resize",this.onWindowResize.bind(this)))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new jw(this.confirmation?.target,()=>{this.visible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unsubscribeConfirmationSubscriptions(){this.confirmation&&(this.confirmation.acceptEvent&&this.confirmation.acceptEvent.unsubscribe(),this.confirmation.rejectEvent&&this.confirmation.rejectEvent.unsubscribe())}onContainerDestroy(){this.unbindListeners(),this.unsubscribeConfirmationSubscriptions(),this.autoZIndex&&Yc.clear(this.container),this.confirmation=null,this.container=null}restoreAppend(){this.container&&this.renderer.removeChild(this.document.body,this.container),this.onContainerDestroy()}get acceptButtonLabel(){return this.confirmation?.acceptLabel||this.config.getTranslation(Xs.ACCEPT)}get rejectButtonLabel(){return this.confirmation?.rejectLabel||this.config.getTranslation(Xs.REJECT)}ngOnDestroy(){this.restoreAppend(),this.subscription&&this.subscription.unsubscribe()}static \u0275fac=function(i){return new(i||t)(n.rXU(n.aKT),n.rXU(Kf),n.rXU(n.sFG),n.rXU(n.gRc),n.rXU(Cy),n.rXU(be))};static \u0275cmp=n.VBU({type:t,selectors:[["p-confirmPopup"],["p-confirmpopup"],["p-confirm-popup"]],contentQueries:function(i,o,s){if(1&i&&(n.wni(s,ASt,4),n.wni(s,MSt,4),n.wni(s,RSt,4),n.wni(s,OSt,4),n.wni(s,hs,4)),2&i){let a;n.mGM(a=n.lsd())&&(o.contentTemplate=a.first),n.mGM(a=n.lsd())&&(o.acceptIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.rejectIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.headlessTemplate=a.first),n.mGM(a=n.lsd())&&(o.templates=a)}},hostBindings:function(i,o){1&i&&n.bIt("keydown.escape",function(a){return o.onEscapeKeydown(a)},!1,n.EBC)},inputs:{key:"key",defaultFocus:"defaultFocus",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",autoZIndex:[2,"autoZIndex","autoZIndex",n.L39],baseZIndex:[2,"baseZIndex","baseZIndex",n.Udg],style:"style",styleClass:"styleClass",visible:"visible"},features:[n.Jv_([Lpe]),n.GFd,n.Vt3],decls:1,vars:1,consts:[["notHeadless",""],["content",""],["withoutContentTemplate",""],["rejecticon",""],["accepticontemplate",""],["role","alertdialog",3,"ngClass","ngStyle","class","click",4,"ngIf"],["role","alertdialog",3,"click","ngClass","ngStyle"],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-confirmpopup-content"],[1,"p-confirmpopup-footer"],["type","button",3,"label","ngClass","styleClass","size","text","buttonProps","onClick",4,"ngIf"],["type","button",3,"label","ngClass","styleClass","size","buttonProps","onClick",4,"ngIf"],[3,"ngClass","class",4,"ngIf"],[1,"p-confirmpopup-message"],[3,"ngClass"],["type","button",3,"onClick","label","ngClass","styleClass","size","text","buttonProps"],[3,"class",4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet"],["type","button",3,"onClick","label","ngClass","styleClass","size","buttonProps"]],template:function(i,o){1&i&&n.DNE(0,QSt,4,12,"div",5),2&i&&n.Y8G("ngIf",o.visible)},dependencies:[gn,bi,fi,uo,Jr,Di,mf,Rp],encapsulation:2,data:{animation:[(0,Hi.hZ)("animation",[(0,Hi.wk)("void",(0,Hi.iF)({transform:"scaleY(0.8)",opacity:0})),(0,Hi.wk)("open",(0,Hi.iF)({transform:"translateY(0)",opacity:1})),(0,Hi.kY)("void => open",(0,Hi.i0)("{{showTransitionParams}}")),(0,Hi.kY)("open => void",(0,Hi.i0)("{{hideTransitionParams}}"))])]},changeDetection:0})}return t})(),C6=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({imports:[gP,Di,Di]})}return t})(),JSt=(()=>{class t{el;zone;renderer;scope;dragEffect;dragHandle;onDragStart=new n.bkB;onDragEnd=new n.bkB;onDrag=new n.bkB;handle;dragListener;mouseDownListener;mouseUpListener;_pDraggableDisabled=!1;constructor(e,i,o){this.el=e,this.zone=i,this.renderer=o}get pDraggableDisabled(){return this._pDraggableDisabled}set pDraggableDisabled(e){this._pDraggableDisabled=e,this._pDraggableDisabled?this.unbindMouseListeners():(this.el.nativeElement.draggable=!0,this.bindMouseListeners())}ngAfterViewInit(){this.pDraggableDisabled||(this.el.nativeElement.draggable=!0,this.bindMouseListeners())}bindDragListener(){this.dragListener||this.zone.runOutsideAngular(()=>{this.dragListener=this.renderer.listen(this.el.nativeElement,"drag",this.drag.bind(this))})}unbindDragListener(){this.dragListener&&this.zone.runOutsideAngular(()=>{this.dragListener&&this.dragListener(),this.dragListener=null})}bindMouseListeners(){!this.mouseDownListener&&!this.mouseUpListener&&this.zone.runOutsideAngular(()=>{this.mouseDownListener=this.renderer.listen(this.el.nativeElement,"mousedown",this.mousedown.bind(this)),this.mouseUpListener=this.renderer.listen(this.el.nativeElement,"mouseup",this.mouseup.bind(this))})}unbindMouseListeners(){this.mouseDownListener&&this.mouseUpListener&&this.zone.runOutsideAngular(()=>{this.mouseDownListener&&this.mouseDownListener(),this.mouseUpListener&&this.mouseUpListener(),this.mouseDownListener=null,this.mouseUpListener=null})}drag(e){this.onDrag.emit(e)}dragStart(e){this.allowDrag()&&!this.pDraggableDisabled?(this.dragEffect&&(e.dataTransfer.effectAllowed=this.dragEffect),e.dataTransfer.setData("text",this.scope),this.onDragStart.emit(e),this.bindDragListener()):e.preventDefault()}dragEnd(e){this.onDragEnd.emit(e),this.unbindDragListener()}mousedown(e){this.handle=e.target}mouseup(e){this.handle=null}allowDrag(){return!this.dragHandle||!this.handle||Vr.matches(this.handle,this.dragHandle)}ngOnDestroy(){this.unbindDragListener(),this.unbindMouseListeners()}static \u0275fac=function(i){return new(i||t)(n.rXU(n.aKT),n.rXU(n.SKi),n.rXU(n.sFG))};static \u0275dir=n.FsC({type:t,selectors:[["","pDraggable",""]],hostBindings:function(i,o){1&i&&n.bIt("dragstart",function(a){return o.dragStart(a)})("dragend",function(a){return o.dragEnd(a)})},inputs:{scope:[0,"pDraggable","scope"],dragEffect:"dragEffect",dragHandle:"dragHandle",pDraggableDisabled:"pDraggableDisabled"},outputs:{onDragStart:"onDragStart",onDragEnd:"onDragEnd",onDrag:"onDrag"}})}return t})(),ZSt=(()=>{class t{el;zone;renderer;scope;pDroppableDisabled=!1;dropEffect;onDragEnter=new n.bkB;onDragLeave=new n.bkB;onDrop=new n.bkB;constructor(e,i,o){this.el=e,this.zone=i,this.renderer=o}dragOverListener;ngAfterViewInit(){this.pDroppableDisabled||this.bindDragOverListener()}bindDragOverListener(){this.dragOverListener||this.zone.runOutsideAngular(()=>{this.dragOverListener=this.renderer.listen(this.el.nativeElement,"dragover",this.dragOver.bind(this))})}unbindDragOverListener(){this.dragOverListener&&this.zone.runOutsideAngular(()=>{this.dragOverListener&&this.dragOverListener(),this.dragOverListener=null})}dragOver(e){e.preventDefault()}drop(e){this.allowDrop(e)&&(ru(this.el.nativeElement,"p-draggable-enter"),e.preventDefault(),this.onDrop.emit(e))}dragEnter(e){e.preventDefault(),this.dropEffect&&(e.dataTransfer.dropEffect=this.dropEffect),Nc(this.el.nativeElement,"p-draggable-enter"),this.onDragEnter.emit(e)}dragLeave(e){e.preventDefault(),this.el.nativeElement.contains(e.relatedTarget)||(ru(this.el.nativeElement,"p-draggable-enter"),this.onDragLeave.emit(e))}allowDrop(e){let i=e.dataTransfer.getData("text");if("string"==typeof this.scope&&i==this.scope)return!0;if(Array.isArray(this.scope))for(let o=0;o<this.scope.length;o++)if(i==this.scope[o])return!0;return!1}ngOnDestroy(){this.unbindDragOverListener()}static \u0275fac=function(i){return new(i||t)(n.rXU(n.aKT),n.rXU(n.SKi),n.rXU(n.sFG))};static \u0275dir=n.FsC({type:t,selectors:[["","pDroppable",""]],hostBindings:function(i,o){1&i&&n.bIt("drop",function(a){return o.drop(a)})("dragenter",function(a){return o.dragEnter(a)})("dragleave",function(a){return o.dragLeave(a)})},inputs:{scope:[0,"pDroppable","scope"],pDroppableDisabled:[2,"pDroppableDisabled","pDroppableDisabled",n.L39],dropEffect:"dropEffect"},outputs:{onDragEnter:"onDragEnter",onDragLeave:"onDragLeave",onDrop:"onDrop"},features:[n.GFd]})}return t})(),Gpe=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({})}return t})();const ext=["*"];let CI=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["page-heading"]],ngContentSelectors:ext,decls:3,vars:0,consts:[[1,"tw-bg-white","tw-py-4","tw-mx-[-20px]","tw-mt-[-20px]","mb-20","tw-border-solid","tw-border-l-0","tw-border-r-0","tw-border-t-0","tw-border-b","tw-border-gray-300"],[1,"tw-font-light","tw-text-2xl","tw-uppercase","tw-pl-[20px]","tw-text-gray-400"]],template:function(i,o){1&i&&(n.NAR(),n.j41(0,"div",0)(1,"span",1),n.SdG(2),n.k0s()())},encapsulation:2})}}return t})(),txt=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-back-chevron-icon"]],decls:3,vars:0,consts:[[1,"tw-flex","tw-w-[10px]","tw-h-[10px]","tw-bg-transparent","tw-items-center","tw-justify-center"],["width","6","height","9","viewBox","0 0 6 9","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.83735 0.149851L0.774852 4.21235C0.73708 4.25008 0.707115 4.29489 0.686671 4.3442C0.666227 4.39352 0.655705 4.44639 0.655705 4.49977C0.655705 4.55316 0.666227 4.60603 0.686671 4.65534C0.707115 4.70466 0.73708 4.74947 0.774852 4.7872L4.83735 8.8497C4.91358 8.92593 5.01697 8.96875 5.12477 8.96875C5.23258 8.96875 5.33597 8.92593 5.4122 8.8497C5.48843 8.77347 5.53125 8.67008 5.53125 8.56227C5.53125 8.45447 5.48843 8.35108 5.4122 8.27485L1.63661 4.49977L5.4122 0.724695C5.44994 0.686951 5.47988 0.64214 5.50031 0.592825C5.52074 0.543509 5.53125 0.490652 5.53125 0.437273C5.53125 0.383894 5.52074 0.331038 5.50031 0.281721C5.47988 0.232406 5.44994 0.187595 5.4122 0.149851C5.37445 0.112106 5.32964 0.0821657 5.28033 0.061739C5.23101 0.0413113 5.17815 0.030797 5.12477 0.030797C5.0714 0.030797 5.01854 0.0413113 4.96922 0.061739C4.91991 0.0821657 4.8751 0.112106 4.83735 0.149851Z","fill","#DE7C00"]],template:function(i,o){1&i&&(n.j41(0,"div",0),n.qSk(),n.j41(1,"svg",1),n.nrm(2,"path",2),n.k0s()())},encapsulation:2})}}return t})(),nxt=(()=>{class t{transform(e){if(!e)return"\u2014";const o=e.replace(/\D/g,"").match(/^(\d{3})(\d{3})(\d{4})$/);return o?`(${o[1]}) ${o[2]}-${o[3]}`:e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=n.EJ8({name:"formatPhone",type:t,pure:!0})}}return t})();function ixt(t,r){if(1&t&&(n.j41(0,"div",5)(1,"span",6),n.EFF(2),n.k0s()()),2&t){const e=n.XpG();n.R7$(2),n.E5c(" Shipping From: ",e.locationEntity().name,", ",e.locationEntity().city,", ",e.locationEntity().province," ")}}let rxt=(()=>{class t{constructor(){this.locationEntity=n.hFB.required(),this.phone=(0,n.hFB)(""),this.leadTime=(0,n.hFB)(0),this.minimumOrderQuantity=(0,n.hFB)(0)}formatQuantity(){return this.minimumOrderQuantity()?this.minimumOrderQuantity().toString():"\u2014"}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-cart-order-header"]],inputs:{locationEntity:[1,"locationEntity"],phone:[1,"phone"],leadTime:[1,"leadTime"],minimumOrderQuantity:[1,"minimumOrderQuantity"]},decls:19,vars:9,consts:[["header",""],[3,"toggleable","collapsed"],[1,"tw-flex","tw-flex-col"],[1,"tw-mx-4","tw-my-2","tw-mt-0"],[1,"tw-sm:grid-cols-2","tw-xs:grid-cols-1","tw-grid","tw-list-none","tw-grid-cols-3","tw-gap-4","tw-p-0"],[1,"tw-flex","tw-items-center","tw-justify-between","tw-gap-2"],[1,"font-bold"]],template:function(i,o){1&i&&(n.j41(0,"p-panel",1),n.DNE(1,ixt,3,3,"ng-template",null,0,n.C5r),n.j41(3,"div",2)(4,"div",3)(5,"ul",4)(6,"li",2)(7,"strong"),n.EFF(8,"Address"),n.k0s(),n.j41(9,"span"),n.EFF(10),n.nrm(11,"br"),n.EFF(12),n.k0s()(),n.j41(13,"li",2)(14,"strong"),n.EFF(15,"Phone"),n.k0s(),n.j41(16,"span"),n.EFF(17),n.nI1(18,"formatPhone"),n.k0s()()()()()()),2&i&&(n.Y8G("toggleable",!0)("collapsed",!0),n.R7$(10),n.JRh(o.locationEntity().addressLine1),n.R7$(2),n.E5c("",o.locationEntity().city,", ",o.locationEntity().province," ",o.locationEntity().postalCode,""),n.R7$(5),n.JRh(n.bMT(18,7,o.phone())))},dependencies:[nxt,Vx,Bx],encapsulation:2})}}return t})(),wI=(()=>{class t{transform(e,i){return null==i&&(i=2),e?new Intl.NumberFormat("en-US",{minimumFractionDigits:i,maximumFractionDigits:i}).format(e):"\u2014"}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=n.EJ8({name:"formatDecimal",type:t,pure:!0})}}return t})();function sxt(t,r){if(1&t&&(n.j41(0,"span",0),n.EFF(1),n.k0s()),2&t){const e=n.XpG();n.Y8G("ngClass",e.herClasses()),n.R7$(),n.SpI(" HER (",e.herLabel(),") ")}}function axt(t,r){if(1&t&&(n.j41(0,"span",1),n.EFF(1),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.SpI(" ",e.pricingModel()," Pricing ")}}let lxt=(()=>{class t{constructor(){this.entry=(0,n.hFB)(null),this.showValues=n.hFB.required(),this.level=n.hFB.required(),this.her=(0,n.vPA)(null),this.pricingModel=(0,n.vPA)(""),this.storage=(0,n.vPA)(""),this.herLabel=(0,n.EWP)(()=>{switch(this.her()){case"GREEN":return"Often";case"YELLOW":return"Sometimes";case"RED":return"Rarely";case"NA":return"Not Applicable";default:return""}}),this.herClasses=(0,n.EWP)(()=>{switch(this.her()){case"GREEN":return"tw-bg-green-300";case"YELLOW":return"tw-bg-yellow-400";case"RED":return"tw-bg-red-600 tw-text-white";case"NA":return"tw-bg-slate-200 tw-text-slate-500";default:return""}})}ngOnInit(){this.entry()&&this.setupChips()}setupChips(){if(this.showValues().find(e=>"HER"===e)){let e;switch(this.level()){case"VEHICLE":e=this.entry()?.vehicleLevelNutritionalCategoryDetails?.itemId;break;case"PALLET":e=this.entry()?.palletLevelNutritionalCategoryDetails?.itemId;break;case"CASE":e=this.entry()?.caseLevelNutritionalCategoryDetails?.itemId;break;case"EACH":e=this.entry()?.unitLevelNutritionalCategoryDetails?.itemId}this.her.set(e??null)}this.showValues().find(e=>"PRICING_MODEL"===e)&&this.pricingModel.set(this.entry()?.pricingModel?gX[this.entry()?.pricingModel].displayName:""),this.showValues().find(e=>"DELIVERED_PRICING"===e)&&"DELIVERED"===this.entry()?.pricingModel&&this.pricingModel.set(this.entry()?.pricingModel?gX[this.entry()?.pricingModel].displayName:"")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-item-chip-display"]],inputs:{entry:[1,"entry"],showValues:[1,"showValues"],level:[1,"level"]},decls:2,vars:2,consts:[[1,"tw-ml-2","tw-inline-block","tw-rounded-full","tw-px-4","tw-py-1","tw-text-xs",3,"ngClass"],[1,"tw-ml-2","tw-inline-block","tw-rounded-full","tw-bg-blue-500","tw-px-4","tw-py-1","tw-text-xs","tw-text-white"]],template:function(i,o){1&i&&n.DNE(0,sxt,2,2,"span",0)(1,axt,2,1,"span",1),2&i&&(n.vxM(o.her()?0:-1),n.R7$(),n.vxM(""!=o.pricingModel()?1:-1))},dependencies:[wte,bi],encapsulation:2})}}return t})();const cxt=()=>["HER","DELIVERED_PRICING"],uxt=()=>({width:"20px",height:"20px"});function dxt(t,r){if(1&t&&(n.j41(0,"li"),n.EFF(1),n.k0s()),2&t){const e=r.$implicit;n.R7$(),n.JRh(e.flatItemSummary.offerTitle)}}function pxt(t,r){1&t&&n.Z7z(0,dxt,2,1,"li",null,n.Vm6),2&t&&n.Dyx(r.$implicit.requests)}function hxt(t,r){if(1&t&&(n.j41(0,"div")(1,"div",43),n.EFF(2),n.k0s(),n.j41(3,"div",44),n.EFF(4," Containing: "),n.j41(5,"ul"),n.Z7z(6,pxt,2,0,null,null,n.Vm6),n.k0s()()()),2&t){const e=r.$implicit;n.R7$(2),n.SpI(" Order From ",e.sourceEntity.name," "),n.R7$(4),n.Dyx(e.pickupLocationsRequests)}}function fxt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div"),n.EFF(1,"Sorry - this item appears to be no longer available."),n.k0s(),n.j41(2,"div",46)(3,"a",17),n.bIt("click",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.removeItem(o,!1))}),n.EFF(4,"Remove from Cart"),n.k0s()()}}function mxt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div"),n.EFF(1," Sorry - changes were made to this offer while it was in your cart. Please refresh the offer to see the changes and proceed. "),n.k0s(),n.j41(2,"div",46)(3,"a",17),n.bIt("click",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.refreshItem(o))}),n.EFF(4,"Refresh Offer"),n.k0s()()}}function gxt(t,r){1&t&&(n.j41(0,"div"),n.EFF(1," Sorry - An unexpected error occurred. Please refresh the page. "),n.k0s())}function vxt(t,r){1&t&&(n.j41(0,"div"),n.EFF(1," Sorry - An unexpected error occurred. Please refresh the page. "),n.k0s())}function _xt(t,r){1&t&&(n.j41(0,"div"),n.EFF(1," Sorry - An unexpected error occurred. Please refresh the page. "),n.k0s())}function yxt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div"),n.EFF(1,"Sorry - this item appears to be no longer available."),n.k0s(),n.j41(2,"div",46)(3,"a",17),n.bIt("click",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.removeItem(o,!1))}),n.EFF(4," Remove from Cart "),n.k0s()()}}function bxt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div"),n.EFF(1," Sorry - this item appears to be reserved by another member of your organization. "),n.k0s(),n.j41(2,"div",46)(3,"a",17),n.bIt("click",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.removeItem(o,!1))}),n.EFF(4," Remove from Cart "),n.k0s()()}}function Cxt(t,r){}function wxt(t,r){if(1&t&&n.DNE(0,gxt,2,0,"div")(1,vxt,2,0,"div")(2,_xt,2,0,"div")(3,yxt,5,0)(4,bxt,5,0)(5,Cxt,0,0),2&t){let e;const i=n.XpG(2);n.vxM("SERVER_ERROR"===(e=i.lastReservationError())?0:"UNAUTHORIZED"===e?1:"INVALID_REQUEST"===e?2:"OFFER_NOT_AVAILABLE"===e?3:"EXISTING_ENTITY_RESERVATION_FROM_OTHER_USER"===e?4:5)}}function Txt(t,r){if(1&t&&(n.j41(0,"div",14)(1,"div",45),n.DNE(2,fxt,5,0)(3,mxt,5,0)(4,wxt,6,1),n.k0s()()),2&t){const e=n.XpG();n.R7$(2),n.vxM("NOT_AVAILABLE"===e.outdatedStatus()?2:-1),n.R7$(),n.vxM("OFFER_UPDATED"===e.outdatedStatus()?3:-1),n.R7$(),n.vxM("RESERVATION_NOT_MET"===e.outdatedStatus()?4:-1)}}function Sxt(t,r){if(1&t&&(n.j41(0,"div",20),n.nrm(1,"i",47),n.EFF(2),n.k0s()),2&t){const e=n.XpG();n.R7$(2),n.SpI(" ",e.reservationTimeRemaining()," ")}}function xxt(t,r){1&t&&(n.j41(0,"div")(1,"div",48),n.nrm(2,"p-progress-spinner",49),n.j41(3,"span"),n.EFF(4,"Refreshing Reservation..."),n.k0s()()()),2&t&&(n.R7$(2),n.Aen(n.lJ4(2,uxt)))}function Ext(t,r){1&t&&n.nrm(0,"i",33)}let Dxt=(()=>{class t{constructor(){this.toasterService=(0,n.WQX)(tc),this.marketplaceService=(0,n.WQX)(Yu),this.marketplaceUtilities=(0,n.WQX)(I2),this.legacyNavigationService=(0,n.WQX)(wc),this.timelineEntrySerivce=(0,n.WQX)(zv),this.cartService=(0,n.WQX)(l0),this.entityService=(0,n.WQX)(jh),this.reservationsService=(0,n.WQX)(xX),this.confirmationService=(0,n.WQX)(Kf),this.onDragging=(0,n.CGW)(),this.isRefreshingReservation=(0,n.vPA)(!1),this.reservationRefresh=new K.B,this.reservationInterval=function oxt(t=0,r=w8){return t<0&&(t=0),Z$(t,t,r)}(1e4),this.reservationTimeRemaining=(0,n.vPA)(""),this.isDragging=(0,n.vPA)(!1),this.activeReservation=(0,n.EWP)(()=>{const i=this.itemRequest();return i?this.reservationsService.activeReservations().find(o=>o.offerId.toLowerCase()===i.flatItemSummary.offerId.toLowerCase()&&o.contentItemId.toLowerCase()===i.contentItemId.toLowerCase()):null}),this.showReservationWarning=(0,n.vPA)(!1),this.allTimelineEntries=(0,n.hFB)([]),this.itemRequest=(0,n.geq)(null),this.imgSrc=(0,n.vPA)(""),this.overridePlaceholderImageUrl=(0,n.vPA)(null),this.onRemoveItem=(0,n.CGW)(),this.onMoveToNewOrder=(0,n.CGW)(),this.onMoveToExistingOrder=(0,n.CGW)(),this.truckQuantity=(0,n.vPA)(0),this.palletQuantity=(0,n.vPA)(0),this.caseQuantity=(0,n.vPA)(0),this.orderLevel=(0,n.vPA)(null),this.totalWeight=(0,n.vPA)(0),this.maxOrderable=(0,n.vPA)(0),this.minOrderable=(0,n.vPA)(0),this.currentUnitCost=(0,n.vPA)(null),this.palletsPerFTL=(0,n.vPA)(null),this.casesPerPallet=(0,n.vPA)(null),this.casesPerFTL=(0,n.vPA)(null),this.unitsPerFTL=(0,n.vPA)(null),this.fobCostPerPound=(0,n.vPA)(null),this.fobCostPerTruck=(0,n.vPA)(null),this.fobCostPerPallet=(0,n.vPA)(null),this.fobCostPerCase=(0,n.vPA)(null),this.fobCostPerUnit=(0,n.vPA)(null),this.dlvdCostPerFTL=(0,n.vPA)(null),this.dlvdCostPerCase=(0,n.vPA)(null),this.dlvdCostPerUnit=(0,n.vPA)(null),this.freightCostPerFTL=(0,n.vPA)(null),this.freightCostPerCase=(0,n.vPA)(null),this.freightCostPerUnit=(0,n.vPA)(null),this.freightPriceAvailable=(0,n.vPA)(!1),this.pricingSummary=(0,n.vPA)(null),this.reservationIntervalSubscription=null,this.purchaseUnitDescription=(0,n.vPA)("Pallets"),this.lastReservationError=(0,n.vPA)(null),this.outdatedStatus=(0,n.EWP)(()=>{let i=this.allTimelineEntries().find(s=>s.offerId===this.itemRequest()?.flatItemSummary.offerId);return i?this.lastReservationError()?"RESERVATION_NOT_MET":i.offerVersionId===this.itemRequest()?.flatItemSummary.offerVersionId?"FRESH":i.itemSummaries.flatMap(s=>[s.vehicleLevelOfferContentId,s.palletLevelOfferContentId,s.caseLevelOfferContentId,s.unitLevelOfferContentId]).some(s=>s===this.itemRequest()?.contentItemId)?"OFFER_UPDATED":"NOT_AVAILABLE":"NOT_AVAILABLE"}),this.availableMoveToOrders=(0,n.EWP)(()=>{const i=this.cartService.getCart();return i&&this.itemRequest()?this.cartService.getCombinableOrdersForItemInCart(i,this.itemRequest().flatItemSummary):[]}),this.onRequestUpdated=(0,n.CGW)(),this.reservationRefresh.pipe($z(3e3)).subscribe(i=>{if(this.itemRequest()?.flatItemSummary.produceOfferDetails)return;this.isRefreshingReservation.set(!0);let o=0;switch(this.orderLevel()){case"VEHICLE":o=this.truckQuantity()??0;break;case"PALLET":o=this.palletQuantity()??0;break;case"CASE":o=this.caseQuantity()??0}this.lastReservationError.set(null),this.reservationsService.reserveOffer(this.itemRequest()?.flatItemSummary,this.itemRequest()?.contentItemId,o,"UPDATE").subscribe({next:s=>{"RESERVED"===s.outcome?this.showReservationWarning.set(!1):s.reservedItemDetails?(this.palletQuantity.set(s.reservedItemDetails.quantity),this.updateUnitQuantities(s.reservedItemDetails.quantity)):"REQUEST_CANNOT_BE_MET"!==s.outcome&&this.lastReservationError.set(s.outcome)},complete:()=>{this.isRefreshingReservation.set(!1)}})});let e=!0;(0,n.QZP)(()=>{let i=this.truckQuantity();i=this.palletQuantity(),i=this.caseQuantity(),e||this.reservationRefresh.next(i),e=!1})}ngOnInit(){if(this.itemRequest()&&this.itemRequest()?.flatItemSummary){this.reservationIntervalSubscription=this.reservationInterval.subscribe({next:()=>{this.updateReservationWarning()}}),this.updateReservationWarning();const e=this.itemRequest().flatItemSummary;switch(e.images&&e.images.length>0?this.imgSrc.set(e.images[0].imageUri):e.taxonomyEntry?.defaultImageUri&&this.overridePlaceholderImageUrl.set(e.taxonomyEntry.defaultImageUri),this.itemRequest()?.contentItemId){case e.vehicleLevelOfferContentId:if(!e.canOrderAtVehicleLevel)throw Error("Requested order at vehicle level but this isn't allowed");this.orderLevel.set("VEHICLE"),this.purchaseUnitDescription.set("Trucks"),this.truckQuantity.set(this.itemRequest()?.quantity??1),this.minOrderable.set(e.minimumVehicleUnitsPerOrder??1),this.maxOrderable.set(e.maximumVehicleUnitsPerOrder??null),this.currentUnitCost.set(this.marketplaceService.getCurrentItemSummaryCost(e.vehicleLevelCost)),this.fobCostPerTruck.set(this.currentUnitCost()?.costPerUnit??0);break;case e.palletLevelOfferContentId:if(!e.canOrderAtPalletLevel)throw Error("Requested order at pallet level but this isn't allowed");this.orderLevel.set("PALLET"),this.purchaseUnitDescription.set("Pallets"),this.palletQuantity.set(this.itemRequest()?.quantity??1),this.minOrderable.set(e.minimumPalletUnitsPerOrder??1),this.maxOrderable.set(e.maximumPalletUnitsPerOrder??null),this.currentUnitCost.set(this.marketplaceService.getCurrentItemSummaryCost(e.palletLevelCost)),this.currentUnitCost()?.costPerUnit?this.fobCostPerTruck.set(e.palletsPerVehicleUnit?this.currentUnitCost()?.costPerUnit*e.palletsPerVehicleUnit:null):this.fobCostPerTruck.set(0);break;case e.caseLevelOfferContentId:if(!e.canOrderAtCaseLevel)throw Error("Requested order at case level but this isn't allowed");this.orderLevel.set("CASE"),this.caseQuantity.set(this.itemRequest()?.quantity??1),this.minOrderable.set(e.minimumCaseUnitsPerOrder??1),this.maxOrderable.set(e.maximumCaseUnitsPerOrder??null),this.currentUnitCost.set(this.marketplaceService.getCurrentItemSummaryCost(e.caseLevelCost)),this.currentUnitCost()?.costPerUnit?this.fobCostPerTruck.set(e.palletsPerVehicleUnit&&e.casesPerPalletUnit?this.currentUnitCost()?.costPerUnit*e.palletsPerVehicleUnit*e.casesPerPalletUnit:null):this.fobCostPerTruck.set(0);break;case e.unitLevelOfferContentId:throw Error("each-level purchases not supported")}this.pricingSummary.set(this.marketplaceService.getPricingSummary(e,this.orderLevel())),this.palletsPerFTL.set(e.palletsPerVehicleUnit??(e.palletLevelPackingEstimates&&e.palletLevelPackingEstimates.length>0?(e?.palletLevelPackingEstimates)[0].estimatedFillQuantity:null)),this.casesPerFTL.set((e.palletsPerVehicleUnit??0)*(e.casesPerPalletUnit??0)),this.casesPerPallet.set(e.casesPerPalletUnit??null),this.unitsPerFTL.set(this.casesPerFTL()&&e.unitsPerCaseUnit?this.casesPerFTL()*e.unitsPerCaseUnit:null),this.fobCostPerPound.set(this.currentUnitCost()?.costPerPound??0),this.fobCostPerCase.set(this.fobCostPerTruck()&&this.casesPerFTL()?this.fobCostPerTruck()/this.casesPerFTL():null),this.fobCostPerUnit.set(this.fobCostPerTruck()&&this.unitsPerFTL()?this.fobCostPerTruck()/this.unitsPerFTL():null),this.fobCostPerPallet.set(this.fobCostPerTruck()&&this.palletsPerFTL()?this.fobCostPerTruck()/this.palletsPerFTL():null),e.deliveryEstimate&&(this.freightCostPerFTL.set(e.deliveryEstimate.estimatedFreightCostPerTruck),this.dlvdCostPerFTL.set((this.freightCostPerFTL()??0)+(this.fobCostPerTruck()??0)),this.freightPriceAvailable.set(!0),this.casesPerFTL()&&(this.freightCostPerCase.set(this.freightCostPerFTL()/this.casesPerFTL()),this.freightCostPerCase()&&this.dlvdCostPerCase.set((this.freightCostPerCase()??0)+(this.fobCostPerCase()??0))),e.unitsPerCaseUnit&&e.casesPerPalletUnit&&e.palletsPerVehicleUnit&&(this.freightCostPerUnit.set(this.freightCostPerFTL()/(e.unitsPerCaseUnit*e.casesPerPalletUnit*e.palletsPerVehicleUnit)),this.freightCostPerUnit()&&this.fobCostPerUnit()&&this.dlvdCostPerUnit.set(this.freightCostPerUnit()+this.fobCostPerUnit()))),this.updateUnitQuantities(this.itemRequest()?.quantity??1)}}navigateToItem(){this.legacyNavigationService.navigate("app.marketplace-timeline-entry-detail",{offerId:this.itemRequest().flatItemSummary.offerId})}updateUnitQuantities(e){let i=this.itemRequest();const o=this.itemRequest()?.flatItemSummary;switch(this.orderLevel()){case"VEHICLE":this.truckQuantity.set(e),i.quantity=e,this.onRequestUpdated.emit(i),this.totalWeight.set(e*o.vehicleLevelProductWeightInPounds),this.truckQuantity()&&o.palletsPerVehicleUnit?(this.palletQuantity.set(this.truckQuantity()*o.palletsPerVehicleUnit),o.casesPerPalletUnit&&this.caseQuantity.set(this.palletQuantity()*o.casesPerPalletUnit)):this.palletQuantity.set(null);break;case"PALLET":this.palletQuantity.set(e),i.quantity=e,this.onRequestUpdated.emit(i),this.totalWeight.set(e*o.palletLevelProductWeightInPounds),this.palletQuantity()?(o.palletsPerVehicleUnit&&this.truckQuantity.set(this.palletQuantity()/o.palletsPerVehicleUnit),o.casesPerPalletUnit&&this.caseQuantity.set(this.palletQuantity()*o.casesPerPalletUnit)):this.palletQuantity.set(null);break;case"CASE":this.caseQuantity.set(e),i.quantity=e,this.onRequestUpdated.emit(i),this.totalWeight.set(e*o.caseLevelProductWeightInPounds),this.caseQuantity()&&o.casesPerPalletUnit?(this.palletQuantity.set(this.caseQuantity()*o.casesPerPalletUnit),this.truckQuantity.set(this.palletQuantity()*o.palletsPerVehicleUnit)):this.palletQuantity.set(null)}}removeItem(e,i=!0){i?this.confirmationService.confirm({target:e.target,message:`Remove ${this.itemRequest()?.flatItemSummary.itemName} from cart?`,icon:"pi pi-exclamation-triangle",rejectButtonProps:{label:"Keep",severity:"secondary",outlined:!0},acceptButtonProps:{label:"Remove"},accept:()=>{this.onRemoveItem.emit(this.itemRequest())},reject:()=>{}}):this.onRemoveItem.emit(this.itemRequest())}splitToNewOrder(e){this.onMoveToNewOrder.emit(this.itemRequest())}moveToExistingOrder(e){this.onMoveToExistingOrder.emit({ItemToMove:this.itemRequest(),TargetCartOrderId:e.value})}refreshItem(e){const i=this.itemRequest()?.contentItemId,o=this.allTimelineEntries().find(c=>c.offerId===this.itemRequest()?.flatItemSummary.offerId);if(!o||!i)return this.removeItem(e,!1),void this.toasterService.displayErrorToast("Failed to Refresh!","Sorry, we couldn't refresh this item in your cart and had to just remove it. You may be able to add it again through the browse area.");const a=this.timelineEntrySerivce.getFlattenedItemSummariesForTimelineEntry(o).find(c=>c.vehicleLevelOfferContentId===i||c.palletLevelOfferContentId===i||c.caseLevelOfferContentId===i||c.unitLevelOfferContentId===i);if(!a)return this.removeItem(e,!1),void this.toasterService.displayErrorToast("Failed to Refresh!","Sorry, we couldn't refresh this item in your cart and had to just remove it. You may be able to add it again through the browse area.");"SUCCESS"!=this.cartService.refreshItemInCart(this.itemRequest()?.flatItemSummary.itemSummaryId,a)&&(this.removeItem(e,!1),this.toasterService.displayErrorToast("Failed to Refresh!","Sorry, we couldn't refresh this item in your cart and had to just remove it. You may be able to add it again through the browse area."))}updateReservationWarning(){if(this.itemRequest()?.flatItemSummary.produceOfferDetails)return this.showReservationWarning.set(!0),void this.reservationTimeRemaining.set("Not reserved until checkout");const i=Date.now(),o=(this.activeReservation()?.expirationTimeUTC??0)-i;if(!this.activeReservation()||o<0)return this.showReservationWarning.set(!0),void this.reservationTimeRemaining.set("Reservation Expired!");if(o<6000001){const s=o/6e4;let a="";a=s<2?"Reserved for less than two minutes":`Reserved for ${Math.floor(s)} minutes`,this.reservationTimeRemaining.set(a),this.showReservationWarning.set(!0)}else this.showReservationWarning.set(!1)}dragStart(){this.onDragging.emit(this.itemRequest()),this.isDragging.set(!0)}dragStop(){this.onDragging.emit(null),this.isDragging.set(!1)}ngOnDestroy(){this.reservationRefresh.unsubscribe(),this.reservationIntervalSubscription?.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-cart-order-item"]],inputs:{allTimelineEntries:[1,"allTimelineEntries"],itemRequest:[1,"itemRequest"]},outputs:{onDragging:"onDragging",itemRequest:"itemRequestChange",onRemoveItem:"onRemoveItem",onMoveToNewOrder:"onMoveToNewOrder",onMoveToExistingOrder:"onMoveToExistingOrder",onRequestUpdated:"onRequestUpdated"},features:[n.Jv_([Kf])],decls:115,vars:63,consts:[["changeOrders",""],["item",""],[1,"flex-col","tw-flex"],[1,"tw-text-lg","tw-font-bold"],[1,"tw-flex"],[1,"tw-basis-1/2","tw-justify-center"],[1,"tw-text-center","tw-font-bold"],[1,"tw-text-center"],["label","Move to New Order","variant","outlined",3,"onClick"],["layout","vertical"],["id","moveToOrder","optionValue","id","optionLabel","details.displayName","placeholder","Available Orders",1,"tw-h-10",3,"onChange","options"],["pDraggable","cartItem","dragHandle",".drag-icon",3,"onDragStart","onDragEnd"],["id","dragIcon",1,"drag-icon","tw-absolute","tw-left-4","tw-top-4"],["title","Drag to change orders",1,"pi","pi-arrows-alt","drag-icon","tw-cursor-move","!tw-text-xl","tw-text-slate-400","hover:tw-text-slate-700"],[1,"tw-fond-bold","tw-absolute","tw-left-0","tw-top-0","tw-z-50","tw-m-0","tw-h-full","tw-w-full","tw-cursor-not-allowed","tw-content-center","tw-rounded-md","tw-bg-white/50","tw-p-2","tw-text-center","tw-text-lg"],[1,"tw-flex","tw-w-full","tw-items-start"],[1,"tw-mr-4","tw-h-full","tw-w-[124px]","tw-object-contain","tw-object-center","tw-align-top"],[1,"tw-cursor-pointer",3,"click"],[3,"imgSrc","placeholderImageUrl"],[1,"tw-w-[124px]"],[1,"tw-mt-4","tw-h-full","tw-content-center","tw-p-3","tw-text-center","tw-text-sm","tw-text-slate-800"],[1,"tw-flex-1"],[1,"tw-mb-2","tw-flex","tw-justify-between","tw-text-lg"],[1,"tw-font-bold"],[1,"tw-cursor-pointer","tw-text-slate-800",3,"click"],["level","PALLET",3,"entry","showValues"],[1,"tw-flex","tw-gap-4"],["title","Move to a different order",1,"pi","pi-arrow-up-right-and-arrow-down-left-from-center","tw-cursor-pointer","hover:tw-text-blue-800",3,"click"],["title","Remove from Cart",1,"pi","pi-trash","tw-cursor-pointer","hover:tw-text-red-800",3,"click"],[1,"tw-grid","tw-grid-cols-1","tw-gap-2","tw-text-xs","lg:tw-grid-cols-3"],[1,"marketplace-detail-grid-block"],[1,"marketplace-detail-label"],[1,"marketplace-detail-value"],["pTooltip","Sorry - delivery estimates aren't available right now for this item. Final costs will be calculated during checkout.",1,"pi","pi-question-circle","tw-pl-2"],[1,"tw-mt-2","tw-grid","tw-grid-cols-5","tw-gap-2"],["for","truckQuantity",1,"tw-text-xs","tw-text-slate-500"],["id","truckQuantity","autocomplete","off","inputStyleClass","tw-w-full",1,"tw-w-full",3,"ngModelChange","min","max","step","showButtons","disabled","ngModel"],["for","palletQuantity",1,"tw-text-xs","tw-text-slate-500"],["id","palletQuantity","autocomplete","off","inputStyleClass","tw-w-full",1,"tw-w-full",3,"ngModelChange","min","max","step","showButtons","disabled","ngModel"],["for","caseQuantity",1,"tw-text-xs","tw-text-slate-500"],["id","caseQuantity","autocomplete","off","inputStyleClass","tw-w-full",1,"tw-w-full",3,"ngModelChange","min","max","step","showButtons","disabled","ngModel"],["for","totalWeight",1,"tw-text-xs","tw-text-slate-500"],["id","totalWeight",1,"tw-p-2"],[1,"tw-font-semibold"],[1,"tw-text-xs","tw-text-slate-400"],[1,"tw-mx-auto","tw-block","tw-w-[60%]","tw-rounded-md","tw-border","tw-border-solid","tw-border-slate-800","tw-bg-white","tw-p-4"],[1,"tw-mt-2"],[1,"pi","pi-exclamation-triangle","tw-text-red-600"],[1,"tw-mt-8","tw-flex","tw-h-4","tw-flex-col","tw-items-center","tw-justify-center","tw-gap-2","tw-text-center","tw-text-xs"],["ariaLabel","Refreshing Reservation"]],template:function(i,o){if(1&i){const s=n.RV6();n.nrm(0,"p-confirmpopup"),n.j41(1,"p-popover",null,0)(3,"div",2)(4,"div",3),n.EFF(5,"Arrange Orders"),n.k0s(),n.nrm(6,"p-divider"),n.j41(7,"div",4)(8,"div",5)(9,"div",6),n.EFF(10,"New Order"),n.k0s(),n.j41(11,"p",7),n.EFF(12,"Move this offer to a new order"),n.k0s(),n.j41(13,"div",7)(14,"p-button",8),n.bIt("onClick",function(l){return n.eBV(s),n.Njj(o.splitToNewOrder(l))}),n.k0s()()(),n.nrm(15,"p-divider",9),n.j41(16,"div",5)(17,"div",6),n.EFF(18,"Existing Order"),n.k0s(),n.j41(19,"p",7),n.EFF(20," Move this offer to a compatible existing order "),n.k0s(),n.j41(21,"p-select",10),n.bIt("onChange",function(l){return n.eBV(s),n.Njj(o.moveToExistingOrder(l))}),n.DNE(22,hxt,8,1,"ng-template",null,1,n.C5r),n.k0s()()()()(),n.j41(24,"p-card",11),n.bIt("onDragStart",function(){return n.eBV(s),n.Njj(o.dragStart())})("onDragEnd",function(){return n.eBV(s),n.Njj(o.dragStop())}),n.j41(25,"div",12),n.nrm(26,"i",13),n.k0s(),n.DNE(27,Txt,5,3,"div",14),n.j41(28,"div",15)(29,"div")(30,"div",16)(31,"a",17),n.bIt("click",function(){return n.eBV(s),n.Njj(o.navigateToItem())}),n.nrm(32,"app-item-image",18),n.k0s()(),n.j41(33,"div",19),n.DNE(34,Sxt,3,1,"div",20)(35,xxt,5,3,"div"),n.k0s()(),n.j41(36,"div",21)(37,"div",22)(38,"div",23)(39,"a",24),n.bIt("click",function(){return n.eBV(s),n.Njj(o.navigateToItem())}),n.EFF(40),n.k0s(),n.nrm(41,"app-item-chip-display",25),n.k0s(),n.j41(42,"div",26)(43,"div")(44,"i",27),n.bIt("click",function(l){n.eBV(s);const c=n.sdS(2);return n.Njj(c.toggle(l))}),n.k0s()(),n.j41(45,"div")(46,"i",28),n.bIt("click",function(l){return n.eBV(s),n.Njj(o.removeItem(l))}),n.k0s()()()(),n.j41(47,"div",29)(48,"div",30)(49,"div",31),n.EFF(50,"FOB Cost / Lb"),n.k0s(),n.j41(51,"div",32),n.EFF(52),n.nI1(53,"formatPrice"),n.k0s(),n.j41(54,"div",31),n.EFF(55),n.k0s(),n.j41(56,"div",32),n.EFF(57),n.k0s(),n.j41(58,"div",31),n.EFF(59,"Min. Per Order"),n.k0s(),n.j41(60,"div",32),n.EFF(61),n.k0s()(),n.j41(62,"div",30)(63,"div",31),n.EFF(64,"Cases / Pallet"),n.k0s(),n.j41(65,"div",32),n.EFF(66),n.nI1(67,"formatDecimal"),n.k0s(),n.j41(68,"div",31),n.EFF(69,"Pallets / FTL"),n.k0s(),n.j41(70,"div",32),n.EFF(71),n.nI1(72,"formatDecimal"),n.k0s(),n.j41(73,"div",31),n.EFF(74,"Cases / FTL"),n.k0s(),n.j41(75,"div",32),n.EFF(76),n.nI1(77,"formatDecimal"),n.k0s()(),n.j41(78,"div",30)(79,"div",31),n.EFF(80,"Dlvd / FTL"),n.k0s(),n.j41(81,"div",32),n.EFF(82),n.nI1(83,"formatPrice"),n.DNE(84,Ext,1,0,"i",33),n.k0s(),n.j41(85,"div",31),n.EFF(86,"Dlvd / Case"),n.k0s(),n.j41(87,"div",32),n.EFF(88),n.nI1(89,"formatPrice"),n.k0s(),n.j41(90,"div",31),n.EFF(91,"Dlvd / Unit"),n.k0s(),n.j41(92,"div",32),n.EFF(93),n.nI1(94,"formatPrice"),n.k0s()()(),n.j41(95,"div",34)(96,"div")(97,"label",35),n.EFF(98,"Trucks"),n.k0s(),n.j41(99,"p-inputnumber",36),n.bIt("ngModelChange",function(l){return n.eBV(s),n.Njj(o.updateUnitQuantities(l))}),n.mxI("ngModelChange",function(l){return n.eBV(s),n.DH7(o.truckQuantity,l)||(o.truckQuantity=l),n.Njj(l)}),n.k0s()(),n.j41(100,"div")(101,"label",37),n.EFF(102,"Pallets"),n.k0s(),n.j41(103,"p-inputnumber",38),n.bIt("ngModelChange",function(l){return n.eBV(s),n.Njj(o.updateUnitQuantities(l))}),n.mxI("ngModelChange",function(l){return n.eBV(s),n.DH7(o.palletQuantity,l)||(o.palletQuantity=l),n.Njj(l)}),n.k0s()(),n.j41(104,"div")(105,"label",39),n.EFF(106,"Cases"),n.k0s(),n.j41(107,"p-inputnumber",40),n.bIt("ngModelChange",function(l){return n.eBV(s),n.Njj(o.updateUnitQuantities(l))}),n.mxI("ngModelChange",function(l){return n.eBV(s),n.DH7(o.caseQuantity,l)||(o.caseQuantity=l),n.Njj(l)}),n.k0s()(),n.j41(108,"div")(109,"label",41),n.EFF(110,"Total Weight"),n.k0s(),n.j41(111,"div",42),n.EFF(112),n.nI1(113,"formatDecimal"),n.k0s()(),n.nrm(114,"div"),n.k0s()()()()}if(2&i){let s,a,l;n.R7$(21),n.Y8G("options",o.availableMoveToOrders()),n.R7$(3),n.ZvI("order-gray-card tw-relative tw-mb-4 tw-block ",o.isDragging()?"tw-bg-slate-600":"",""),n.R7$(3),n.vxM("FRESH"!=o.outdatedStatus()?27:-1),n.R7$(5),n.Y8G("imgSrc",o.imgSrc())("placeholderImageUrl",o.overridePlaceholderImageUrl()),n.R7$(2),n.vxM(o.showReservationWarning()?34:-1),n.R7$(),n.vxM(o.isRefreshingReservation()?35:-1),n.R7$(5),n.JRh(null!==(s=null==(s=o.itemRequest())||null==s.flatItemSummary?null:s.flatItemSummary.itemName)&&void 0!==s?s:null==(s=o.itemRequest())||null==s.flatItemSummary?null:s.flatItemSummary.itemDescription),n.R7$(),n.Y8G("entry",null!==(a=null==(a=o.itemRequest())?null:a.flatItemSummary)&&void 0!==a?a:null)("showValues",n.lJ4(62,cxt)),n.R7$(11),n.SpI(" ",n.bMT(53,42,o.fobCostPerPound())," "),n.R7$(3),n.SpI(" ",o.purchaseUnitDescription()," Available "),n.R7$(2),n.SpI(" ",null!==(l=o.maxOrderable())&&void 0!==l?l:"(Unlimited)"," "),n.R7$(4),n.SpI(" ",o.minOrderable()," "),n.R7$(5),n.SpI(" ",n.i5U(67,44,o.casesPerPallet(),0)," "),n.R7$(5),n.SpI(" ",n.i5U(72,47,o.palletsPerFTL(),0)," "),n.R7$(5),n.SpI(" ",n.i5U(77,50,o.casesPerFTL(),0)," "),n.R7$(6),n.SpI(" ",n.bMT(83,53,o.dlvdCostPerFTL())," "),n.R7$(2),n.vxM(o.freightPriceAvailable()?-1:84),n.R7$(4),n.SpI(" ",n.bMT(89,55,o.dlvdCostPerCase())," "),n.R7$(5),n.SpI(" ",n.bMT(94,57,o.dlvdCostPerUnit())," "),n.R7$(6),n.Y8G("min","VEHICLE"===o.orderLevel()?o.minOrderable():null)("max","VEHICLE"===o.orderLevel()?o.maxOrderable():null)("step",1)("showButtons","VEHICLE"===o.orderLevel())("disabled","VEHICLE"!=o.orderLevel()),n.R50("ngModel",o.truckQuantity),n.R7$(4),n.Y8G("min","PALLET"===o.orderLevel()?o.minOrderable():null)("max","PALLET"===o.orderLevel()?o.maxOrderable():null)("step",1)("showButtons","PALLET"===o.orderLevel())("disabled","PALLET"!=o.orderLevel()),n.R50("ngModel",o.palletQuantity),n.R7$(4),n.Y8G("min","CASE"===o.orderLevel()?o.minOrderable():null)("max","CASE"===o.orderLevel()?o.maxOrderable():null)("step",1)("showButtons","CASE"===o.orderLevel())("disabled","CASE"!=o.orderLevel()),n.R50("ngModel",o.caseQuantity),n.R7$(5),n.SpI(" ",n.i5U(113,59,o.totalWeight(),0)," lbs. ")}},dependencies:[A2,C6,gP,lxt,J_,Ra,_o,ko,qv,wI,Rh,ou,rm,kg,Iv,Q_,Dy,K_,kv,mf,Rp,Gpe,JSt,Xy,c0,Zp,ff],encapsulation:2})}}return t})();function kxt(t,r){if(1&t&&(n.j41(0,"div",9)(1,"p"),n.EFF(2),n.k0s()()),2&t){const e=r.$implicit;n.R7$(2),n.JRh(e.message)}}function Ixt(t,r){1&t&&n.EFF(0," (Included) ")}function Axt(t,r){if(1&t&&(n.j41(0,"span",10),n.EFF(1),n.nI1(2,"formatPrice"),n.k0s()),2&t){let e;const i=n.XpG(2);n.R7$(),n.Lme(" (",i.summary().truckLoads," at ",n.bMT(2,2,null!==(e=i.summary().freightCostPerTruck)&&void 0!==e?e:0),"/truck)")}}function Mxt(t,r){1&t&&n.nrm(0,"i",11)}function Rxt(t,r){1&t&&n.nrm(0,"i",12)}function Oxt(t,r){if(1&t&&(n.EFF(0),n.nI1(1,"formatPrice"),n.DNE(2,Axt,3,4,"span",10)(3,Mxt,1,0,"i",11)(4,Rxt,1,0,"i",12)),2&t){let e;const i=n.XpG();n.SpI(" ",n.bMT(1,3,(null!==(e=i.summary().freightCostPerTruck)&&void 0!==e?e:0)*(null!==(e=i.summary().truckLoads)&&void 0!==e?e:0))," "),n.R7$(2),n.vxM(i.summary().truckLoads&&i.summary().freightCostPerTruck?2:3),n.R7$(2),n.vxM(i.summary().freightCostIsAveraged?4:-1)}}function Fxt(t,r){1&t&&n.nrm(0,"i",5)}function Pxt(t,r){1&t&&(n.j41(0,"div",6),n.nrm(1,"i",13),n.EFF(2,"\xa0Less than a truckload "),n.k0s())}let Lxt=(()=>{class t{constructor(){this.confirmationService=(0,n.WQX)(Kf),this.summary=n.hFB.required(),this.orderId=n.hFB.required(),this.deliveryLocationEntity=n.hFB.required(),this.canCheckout=n.hFB.required(),this.checkoutRequested=(0,n.CGW)(),this.ButtonStyle=Xv}onCheckoutClicked(e){this.summary().truckLoadsExact&&this.summary().truckLoadsExact%1==0?this.checkoutRequested.emit(this.orderId()):this.confirmationService.confirm({target:e.target,message:"You have an incomplete load! You can proceed to checkout, but we recommend having a full load to best utilize truck capacity. You will be charged for a full truck load's freight cost.",icon:"pi pi-exclamation-triangle",rejectButtonProps:{label:"Make Changes"},acceptButtonProps:{label:"Continue Checkout",severity:"secondary",outlined:!0},accept:()=>{this.checkoutRequested.emit(this.orderId())},reject:()=>{}})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-cart-order-summary"]],inputs:{summary:[1,"summary"],orderId:[1,"orderId"],deliveryLocationEntity:[1,"deliveryLocationEntity"],canCheckout:[1,"canCheckout"]},outputs:{checkoutRequested:"checkoutRequested"},features:[n.Jv_([Kf])],decls:44,vars:25,consts:[["content",""],["header","Order Summary",1,"order-gray-card"],[1,"tw-grid","tw-list-none","tw-gap-4","tw-p-0"],[1,"tw-flex","tw-flex-col","tw-gap-2"],[1,"tw-text-[20px]","tw-font-semibold"],["pTooltip","The truck load count is rounded - meaning we think these products can fit together on a single truck.",1,"pi","pi-question-circle","tw-pl-2"],[1,"tw-border-rad","tw-rounded-lg","tw-bg-[#fff1ae]","tw-p-2"],[1,"tw-mt-6","tw-flex","tw-justify-center"],["text","Checkout",3,"click","buttonStyle","disabled"],[1,"tw-w-72"],[1,"tw-p-1","tw-text-xs","tw-text-slate-500"],["pTooltip","Sorry - delivery estimates aren't available for this order. Final costs will be calculated during checkout.",1,"pi","pi-question-circle","tw-pl-2"],["pTooltip","Cost per truck was averaged based on the costs from the various offers in this order. Actual cost will depend on truck makeup and will be determined during checkout.",1,"pi","pi-question-circle","tw-pl-2"],[1,"pi","pi-exclamation-triangle"]],template:function(i,o){if(1&i){const s=n.RV6();n.j41(0,"p-confirmpopup"),n.DNE(1,kxt,3,1,"ng-template",null,0,n.C5r),n.k0s(),n.j41(3,"p-card",1)(4,"ul",2)(5,"li",3)(6,"span"),n.EFF(7,"Delivering To:"),n.k0s(),n.j41(8,"strong",4),n.EFF(9),n.k0s()(),n.j41(10,"li",3)(11,"span"),n.EFF(12,"FOB Cost:"),n.k0s(),n.j41(13,"strong",4),n.EFF(14),n.nI1(15,"formatPrice"),n.k0s()(),n.j41(16,"li",3)(17,"span"),n.EFF(18),n.k0s(),n.j41(19,"strong",4),n.DNE(20,Ixt,1,0)(21,Oxt,5,5),n.k0s()(),n.j41(22,"li",3)(23,"span"),n.EFF(24,"Est. Total Delivered Product Cost:"),n.k0s(),n.j41(25,"strong",4),n.EFF(26),n.nI1(27,"formatPrice"),n.k0s()(),n.j41(28,"li",3)(29,"span"),n.EFF(30,"Est. Earliest Delivery Date:"),n.k0s(),n.j41(31,"strong",4),n.EFF(32),n.nI1(33,"formatUTCTimestamp"),n.k0s()(),n.j41(34,"li",3)(35,"span"),n.EFF(36,"Total Truckloads:"),n.k0s(),n.j41(37,"strong"),n.EFF(38),n.nI1(39,"formatDecimal"),n.DNE(40,Fxt,1,0,"i",5),n.k0s(),n.DNE(41,Pxt,3,0,"div",6),n.k0s()(),n.j41(42,"div",7)(43,"app-primary-button",8),n.bIt("click",function(l){return n.eBV(s),n.Njj(o.onCheckoutClicked(l))}),n.k0s()()()}if(2&i){let s,a,l,c;n.R7$(9),n.E5c("",o.deliveryLocationEntity().addressLine1,", ",o.deliveryLocationEntity().city,", ",o.deliveryLocationEntity().province,""),n.R7$(5),n.SpI(" ",n.bMT(15,16,null!==(s=o.summary().fobCost)&&void 0!==s?s:0)," "),n.R7$(4),n.SpI("",o.summary().freightCostIsAveraged?"Avg.":""," Est. Freight Cost (Final in Checkout) :"),n.R7$(2),n.vxM("DELIVERED"===o.summary().pricingModel?20:21),n.R7$(6),n.JRh(n.bMT(27,18,null!==(a=o.summary().totalDeliveredProductCost)&&void 0!==a?a:0)),n.R7$(6),n.SpI(" ",n.i5U(33,20,o.summary().estimatedDeliveryTimeUTC,!1)," "),n.R7$(5),n.ZvI("tw-text-[20px] tw-font-semibold ",o.summary().truckLoadsExact!=o.summary().truckLoads?"tw-text-red-600":"",""),n.R7$(),n.SpI(" ",n.bMT(39,23,null!==(l=o.summary().truckLoadsExact)&&void 0!==l?l:0)," "),n.R7$(2),n.vxM(o.summary().truckLoadsAreRounded?40:-1),n.R7$(),n.vxM((null!==(c=o.summary().truckLoadsExact)&&void 0!==c?c:0)>0&&(null!==(c=o.summary().truckLoadsExact)&&void 0!==c?c:0)<1?41:-1),n.R7$(2),n.Y8G("buttonStyle",o.ButtonStyle.OutlinedOrange)("disabled",!o.canCheckout())}},dependencies:[mP,qv,fP,wI,rm,kg,Rh,ou,C6,gP],encapsulation:2})}}return t})(),Bpe=(()=>{class t{transform(e){return e?("string"==typeof e&&(e=new Date(e)),new Intl.DateTimeFormat("en-US").format(e)):"\u2014"}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=n.EJ8({name:"formatDate",type:t,pure:!0})}}return t})(),Nxt=(()=>{class t{constructor(){this.http=(0,n.WQX)(Da),this.environmentService=(0,n.WQX)(s0),this.CART_STORAGE_KEY_BASE="marketplace:recent_orders",this.storageKey=(0,n.vPA)(this.CART_STORAGE_KEY_BASE),this.apiUrl=this.environmentService.getApiUrl()}getTodaysOrders(){let e=new Date;return e.setDate(e.getDate()-1),this.http.post("/api/ProduceOrderTrucksGrid?page=1&rows=25&searchFilter=&sidx=OrderID&sord=desc",[{Name:"OrderDate",Condition:"after",Text:e.toISOString()}]).pipe((0,Os.T)(i=>{if(i.rows){const o={};for(const a of i.rows){let l=a.OrderID;l in o?o[l].push(a):o[l]=[a]}const s=[];for(const[a,l]of Object.entries(o)){const c=parseInt(a,10);s.push({OrderID:c,Trucks:l,TotalEstimatedFreightCost:l.reduce((d,f)=>d+f.EstimatedFreightCost,0),TotalEstimatedLandedCost:l.reduce((d,f)=>d+f.EstimatedLandedCost,0),TotalFOBCost:l.reduce((d,f)=>d+f.FOBCost,0),Title:[...new Set(l.map(d=>d.Item))].join(" / "),Suppliers:[...new Set(l.map(d=>d.Donor))].join(" / ")})}return s.sort((a,l)=>l.OrderID-a.OrderID),s}return[]}))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const Gxt=(t,r)=>r.OrderID;function Bxt(t,r){if(1&t&&(n.j41(0,"div",21),n.nrm(1,"i",22),n.j41(2,"div")(3,"div",23),n.EFF(4),n.k0s(),n.j41(5,"div"),n.EFF(6),n.k0s()()()),2&t){const e=n.XpG().$implicit;n.R7$(4),n.SpI(" Truck #",e.TruckReceiptStatus.TruckID," "),n.R7$(2),n.SpI("Status: ",e.OrderStatus,"")}}function Vxt(t,r){if(1&t&&(n.j41(0,"p-panel",6),n.DNE(1,Bxt,7,2,"ng-template",null,0,n.C5r),n.j41(3,"div",14)(4,"div",15)(5,"div",16)(6,"div",17),n.EFF(7,"Item(s)"),n.k0s(),n.j41(8,"div",18),n.EFF(9),n.k0s(),n.j41(10,"div",17),n.EFF(11," Requested Pickup "),n.k0s(),n.j41(12,"div",18),n.EFF(13),n.nI1(14,"formatDate"),n.k0s(),n.j41(15,"div",17),n.EFF(16," Requested Delivery "),n.k0s(),n.j41(17,"div",18),n.EFF(18),n.nI1(19,"formatDate"),n.k0s(),n.j41(20,"div",17),n.EFF(21," Transportation Provider "),n.k0s(),n.j41(22,"div",18),n.EFF(23),n.k0s()(),n.j41(24,"div",16)(25,"div",17),n.EFF(26,"Submitted By"),n.k0s(),n.j41(27,"div",19)(28,"span",20),n.EFF(29),n.k0s()(),n.j41(30,"div",17),n.EFF(31,"FOB Cost"),n.k0s(),n.j41(32,"div",18),n.EFF(33),n.nI1(34,"formatPrice"),n.k0s(),n.j41(35,"div",17),n.EFF(36," Est. Freight Cost "),n.k0s(),n.j41(37,"div",18),n.EFF(38),n.nI1(39,"formatPrice"),n.k0s(),n.j41(40,"div",17),n.EFF(41," Est. Landed Cost "),n.k0s(),n.j41(42,"div",18),n.EFF(43),n.nI1(44,"formatPrice"),n.k0s()()()()()),2&t){const e=r.$implicit,i=n.XpG().$implicit;n.Y8G("toggleable",!0)("collapsed",i.Trucks.length>1),n.R7$(9),n.SpI(" ",e.Item," "),n.R7$(4),n.SpI(" ",n.bMT(14,11,e.RequestedPickupDate)," "),n.R7$(5),n.SpI(" ",n.bMT(19,13,e.RequestedDeliveryDate)," "),n.R7$(5),n.SpI(" ",e.TransportationProviderOption," "),n.R7$(5),n.FS9("title",e.Username),n.R7$(),n.JRh(e.Username),n.R7$(4),n.SpI(" ",n.bMT(34,15,e.FOBCost)," "),n.R7$(5),n.SpI(" ",n.bMT(39,17,e.EstimatedFreightCost)," "),n.R7$(5),n.SpI(" ",n.bMT(44,19,e.EstimatedLandedCost)," ")}}function jxt(t,r){if(1&t){const e=n.RV6();n.j41(0,"p-card",3)(1,"div",4)(2,"div",5),n.Z7z(3,Vxt,45,21,"p-panel",6,n.Vm6),n.k0s(),n.j41(5,"div",7)(6,"p-card",8)(7,"ul",9)(8,"li",10)(9,"span"),n.EFF(10,"FOB Cost:"),n.k0s(),n.j41(11,"strong",11),n.EFF(12),n.nI1(13,"formatPrice"),n.k0s()(),n.j41(14,"li",10)(15,"span"),n.EFF(16,"Est. FreightCost:"),n.k0s(),n.j41(17,"strong",11),n.EFF(18),n.nI1(19,"formatPrice"),n.k0s()(),n.j41(20,"li",10)(21,"span"),n.EFF(22,"Est. Landing Cost:"),n.k0s(),n.j41(23,"strong",11),n.EFF(24),n.nI1(25,"formatPrice"),n.k0s()()(),n.j41(26,"div",12)(27,"app-primary-button",13),n.bIt("click",function(){const o=n.eBV(e).$implicit,s=n.XpG(3);return n.Njj(s.onDetailsClicked(o.OrderID))}),n.k0s()()()()()()}if(2&t){const e=r.$implicit,i=n.XpG(3);n.yjJ("header","Order No. ",e.OrderID,": ",e.Title," from ",e.Suppliers,""),n.R7$(3),n.Dyx(e.Trucks),n.R7$(9),n.JRh(n.bMT(13,8,e.TotalFOBCost)),n.R7$(6),n.JRh(n.bMT(19,10,e.TotalEstimatedFreightCost)),n.R7$(6),n.JRh(n.bMT(25,12,e.TotalEstimatedLandedCost)),n.R7$(3),n.Y8G("buttonStyle",i.ButtonStyle.OutlinedOrange)}}function Hxt(t,r){if(1&t&&(n.j41(0,"h3",2),n.EFF(1,"Today's Orders"),n.k0s(),n.Z7z(2,jxt,28,14,"p-card",3,Gxt)),2&t){const e=n.XpG(2);n.R7$(2),n.Dyx(e.orders())}}function Uxt(t,r){if(1&t&&n.DNE(0,Hxt,4,0),2&t){const e=n.XpG();n.vxM(e.orders().length>0?0:-1)}}function $xt(t,r){1&t&&(n.j41(0,"div",1),n.nrm(1,"p-progress-spinner",24),n.j41(2,"span",25),n.EFF(3,"Loading Recent Orders..."),n.k0s()())}let Yxt=(()=>{class t{constructor(){this.ordersService=(0,n.WQX)(Nxt),this.legacyNavigationService=(0,n.WQX)(wc),this.isLoading=(0,n.vPA)(!0),this.orders=(0,n.vPA)([]),this.ButtonStyle=Xv}ngOnInit(){this.loadOrders()}loadOrders(){this.ordersService.getTodaysOrders().subscribe({next:e=>{this.orders.set(e),this.isLoading.set(!1)}})}onDetailsClicked(e,i=null){this.legacyNavigationService.navigate("app.produce-order.existing-orders.details",{id:e})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-cart-recent-orders"]],decls:2,vars:1,consts:[["header",""],[1,"tw-flex","tw-h-full","tw-flex-col","tw-items-center","tw-justify-center"],[1,"tw-mt-24"],[1,"tw-mb-8","tw-block","tw-rounded-md","tw-border","tw-border-solid","tw-border-slate-200",3,"header"],[1,"tw-grid","tw-grid-cols-7","tw-gap-4"],[1,"tw-col-span-7","md:tw-col-span-5"],[1,"order-gray-card","tw-mb-4","tw-block",3,"toggleable","collapsed"],[1,"tw-col-span-7","md:tw-col-span-2"],["header","Order Summary",1,"order-gray-card"],[1,"tw-grid","tw-list-none","tw-gap-4","tw-p-0"],[1,"tw-flex","tw-flex-col","tw-gap-2"],[1,"tw-text-[20px]","tw-font-semibold"],[1,"tw-mt-6","tw-flex","tw-justify-center"],["text","Order Details",3,"click","buttonStyle"],[1,"tw-flex","tw-gap-6"],[1,"tw-grid","tw-w-full","tw-grid-cols-1","tw-gap-2","tw-text-xs","lg:tw-grid-cols-2"],[1,"marketplace-detail-grid-block"],[1,"marketplace-detail-label"],[1,"marketplace-detail-value"],[1,"marketplace-detail-value","tw-overflow-hidden","tw-text-ellipsis","tw-text-nowrap"],[3,"title"],[1,"tw-flex","tw-items-center","tw-justify-between","tw-gap-2"],[1,"pi","pi-truck",2,"font-size","2.5rem"],[1,"tw-text-lg","tw-font-semibold"],["ariaLabel","loading"],[1,"tw-font-semibold"]],template:function(i,o){1&i&&n.DNE(0,Uxt,1,1)(1,$xt,4,0,"div",1),2&i&&n.vxM(o.isLoading()?1:0)},dependencies:[Iv,Q_,rm,kg,qv,mP,Vx,Bx,Bpe],encapsulation:2})}}return t})();const Vpe=(t,r)=>r.id,Wxt=(t,r)=>r.timelineEntry.offerId,zxt=()=>({width:"90vw"}),qxt=()=>["LOCATION_CITY","LOCATION_STATE","PRICE_PER_CASE","SIZE","HER","PACK","CASES_PER_PALLET","LAST_AVAILABLE"];function Xxt(t,r){1&t&&(n.j41(0,"p-message",11)(1,"div",15),n.EFF(2,"Your cart contains multiple orders"),n.k0s(),n.j41(3,"div"),n.EFF(4," We create multiple orders when items in your cart are either coming from different suppliers, or when mixing rules on offers prevent us from grouping items in the same order. You'll need to complete a separate checkout for each order to finish. "),n.k0s()())}function Kxt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",22)(1,"div",23),n.EFF(2),n.k0s(),n.j41(3,"div")(4,"span",24)(5,"i",25),n.bIt("click",function(o){n.eBV(e);const s=n.XpG().$implicit,a=n.XpG(3);return n.Njj(a.removeOrderRequest(o,s.id))}),n.k0s()()()()}if(2&t){const e=n.XpG().$implicit;n.R7$(2),n.SpI(" Order from ",e.sourceEntity.name," ")}}function Qxt(t,r){if(1&t){const e=n.RV6();n.j41(0,"app-cart-order-item",29),n.bIt("onRemoveItem",function(o){n.eBV(e);const s=n.XpG(5);return n.Njj(s.onItemRemoved(o))})("onRequestUpdated",function(o){n.eBV(e);const s=n.XpG(5);return n.Njj(s.onRequestUpdated(o))})("onDragging",function(o){n.eBV(e);const s=n.XpG(5);return n.Njj(s.itemDragging(o))})("onMoveToNewOrder",function(o){n.eBV(e);const s=n.XpG(5);return n.Njj(s.onMoveToNewOrder(o))})("onMoveToExistingOrder",function(o){n.eBV(e);const s=n.XpG(5);return n.Njj(s.onMoveToExistingOrder(o))}),n.k0s()}if(2&t){const e=r.$implicit,i=n.XpG(5);n.Y8G("itemRequest",e)("allTimelineEntries",i.timelineEntries())}}function Jxt(t,r){if(1&t&&(n.j41(0,"div"),n.nrm(1,"app-cart-order-header",26),n.k0s(),n.j41(2,"div",27),n.Z7z(3,Qxt,1,2,"app-cart-order-item",28,Wxt),n.k0s()),2&t){const e=r.$implicit;n.ZvI("tw-mb-4 ",r.$index>0?"tw-mt-12":"",""),n.R7$(),n.Y8G("locationEntity",e.sourceEntityLocation),n.R7$(2),n.Dyx(e.requests)}}function Zxt(t,r){if(1&t){const e=n.RV6();n.j41(0,"p-card",16),n.bIt("onDrop",function(){const o=n.eBV(e).$implicit,s=n.XpG(3);return n.Njj(s.dropIntoExistingOrder(o))})("onDragEnter",function(){const o=n.eBV(e).$implicit,s=n.XpG(3);return n.Njj(s.dragEnter(o))})("onDragLeave",function(){n.eBV(e);const o=n.XpG(3);return n.Njj(o.dragLeave())}),n.DNE(1,Kxt,6,1,"ng-template",null,1,n.C5r),n.j41(3,"div",17)(4,"div",18),n.Z7z(5,Jxt,5,4,null,null,Vpe),n.j41(7,"a",19),n.bIt("click",function(){const o=n.eBV(e).$implicit,s=n.XpG(3);return n.Njj(s.showSupplierOffers(o))}),n.EFF(8),n.k0s()(),n.j41(9,"div",20)(10,"app-cart-order-summary",21),n.bIt("checkoutRequested",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.checkoutRequested(o))}),n.k0s()()()(),n.j41(11,"div",12),n.bIt("onDrop",function(){n.eBV(e);const o=n.XpG(3);return n.Njj(o.dropAsNewOrder())}),n.j41(12,"div",13),n.EFF(13," Move to New Order "),n.k0s(),n.j41(14,"div",14),n.EFF(15," Drop here to start a new order with this offer "),n.k0s()()}if(2&t){let e,i,o;const s=r.$implicit,a=n.XpG(3);n.AVh("cannot-combine-hover",a.draggedItem()&&(null==(e=a.dragTargetOrder())?null:e.id)===s.id&&!a.draggedItemIsCompatible())("can-combine-hover",a.draggedItem()&&(null==(i=a.dragTargetOrder())?null:i.id)===s.id&&a.draggedItemIsCompatible()),n.R7$(5),n.Dyx(s.pickupLocationsRequests),n.R7$(3),n.SpI(" See more offers from ",null!==(o=s.sourceEntity.name)&&void 0!==o?o:"this supplier",""),n.R7$(2),n.Y8G("summary",s.orderRequestSummary)("canCheckout",!0)("orderId",s.id)("deliveryLocationEntity",s.deliveryLocationEntity)}}function e2t(t,r){if(1&t){const e=n.RV6();n.DNE(0,Xxt,5,0,"p-message",11),n.j41(1,"div",12),n.bIt("onDrop",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.dropAsNewOrder())}),n.j41(2,"div",13),n.EFF(3," Move to New Order "),n.k0s(),n.j41(4,"div",14),n.EFF(5," Drop here to start a new order with this offer "),n.k0s()(),n.Z7z(6,Zxt,16,9,null,null,Vpe)}if(2&t){let e,i;const o=n.XpG(2);n.vxM((null!==(e=null==(e=o.cart())||null==e.orderRequests?null:e.orderRequests.length)&&void 0!==e?e:0)>1?0:-1),n.R7$(6),n.Dyx(null==(i=o.cart())?null:i.orderRequests)}}function t2t(t,r){if(1&t){const e=n.RV6();n.j41(0,"p-card",8)(1,"div",30),n.EFF(2," Nothing in Your Cart Yet!"),n.nrm(3,"i",31),n.k0s(),n.j41(4,"div",32)(5,"div",33)(6,"a",19),n.bIt("click",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.onBackClicked())}),n.EFF(7," Browse around "),n.k0s(),n.EFF(8," and find a few things to continue... "),n.k0s()()()}}function n2t(t,r){if(1&t&&n.nrm(0,"app-browse-item-card-list",40),2&t){let e;const i=n.XpG(3);n.Y8G("entryGroups",i.supplierOffersListGroups())("showAsCombinableToItems",i.selectedAddToOrderItems())("targetCartOrderId",null!==(e=null==(e=i.showMoreFromSupplierOrderRequest())?null:e.id)&&void 0!==e?e:"")}}function i2t(t,r){if(1&t&&(n.j41(0,"div",41)(1,"div",42),n.nrm(2,"app-browse-item-table",43),n.k0s()()),2&t){let e;const i=n.XpG(3);n.R7$(2),n.Y8G("entries",i.supplierOffers())("showReset",!0)("targetCartOrderId",null!==(e=null==(e=i.showMoreFromSupplierOrderRequest())?null:e.id)&&void 0!==e?e:"")("defaultHideColumns",n.lJ4(4,qxt))}}function r2t(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",10)(1,"div",34)(2,"div",35)(3,"p-toggleswitch",36),n.mxI("ngModelChange",function(o){n.eBV(e);const s=n.XpG(2);return n.DH7(s.showMoreAsTable,o)||(s.showMoreAsTable=o),n.Njj(o)}),n.k0s(),n.j41(4,"label",37),n.EFF(5," Show as Table "),n.k0s()(),n.j41(6,"div",35)(7,"p-toggleswitch",38),n.mxI("ngModelChange",function(o){n.eBV(e);const s=n.XpG(2);return n.DH7(s.showMoreFilterToCombinable,o)||(s.showMoreFilterToCombinable=o),n.Njj(o)}),n.bIt("onChange",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.refreshSupplierOffers())}),n.k0s(),n.j41(8,"label",39),n.EFF(9," Only Show Offers Combinable with this Order "),n.k0s()()(),n.DNE(10,n2t,1,3,"app-browse-item-card-list",40)(11,i2t,3,5,"div",41),n.k0s()}if(2&t){const e=n.XpG(2);n.R7$(3),n.R50("ngModel",e.showMoreAsTable),n.R7$(4),n.R50("ngModel",e.showMoreFilterToCombinable),n.R7$(3),n.vxM(e.showMoreAsTable()?-1:10),n.R7$(),n.vxM(e.showMoreAsTable()?11:-1)}}function o2t(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",3)(1,"div",4)(2,"div",5)(3,"div",6),n.nrm(4,"app-back-chevron-icon"),n.j41(5,"app-primary-link-button",7),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onBackClicked())}),n.k0s()()()(),n.DNE(6,e2t,8,1)(7,t2t,9,0,"p-card",8),n.nrm(8,"app-cart-recent-orders"),n.k0s(),n.j41(9,"p-dialog",9,0),n.mxI("visibleChange",function(o){n.eBV(e);const s=n.XpG();return n.DH7(s.showMoreFromSupplier,o)||(s.showMoreFromSupplier=o),n.Njj(o)}),n.bIt("onHide",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.showMoreFromSupplier.set(!1))}),n.DNE(11,r2t,12,4,"div",10),n.k0s()}if(2&t){let e;const i=n.XpG();n.R7$(6),n.vxM(i.cart()?6:7),n.R7$(3),n.Aen(n.lJ4(7,zxt)),n.Y8G("header","More from "+(null==(e=i.showMoreFromSupplierOrderRequest())||null==e.sourceEntity?null:e.sourceEntity.name))("modal",!0),n.R50("visible",i.showMoreFromSupplier),n.R7$(2),n.vxM(i.showMoreFromSupplier()?11:-1)}}function s2t(t,r){1&t&&(n.j41(0,"div",2),n.nrm(1,"p-progress-spinner",44),n.j41(2,"span",45),n.EFF(3,"Loading..."),n.k0s()())}let a2t=(()=>{class t{constructor(){this.cartService=(0,n.WQX)(l0),this.marketplaceService=(0,n.WQX)(Yu),this.legacyNavigationService=(0,n.WQX)(wc),this.timelineEntryService=(0,n.WQX)(zv),this.filtersService=(0,n.WQX)(pP),this.reservationsService=(0,n.WQX)(xX),this.confirmationService=(0,n.WQX)(Kf),this.toasterService=(0,n.WQX)(tc),this.marketplaceUtilities=(0,n.WQX)(I2),this.title=(0,n.hFB)("Shopping Cart"),this.cart=(0,n.vPA)(null),this.timelineEntries=(0,n.vPA)([]),this.entries=(0,n.vPA)([]),this.showMoreFromSupplier=(0,n.vPA)(!1),this.supplierOffers=(0,n.vPA)([]),this.showMoreAsTable=(0,n.vPA)(!1),this.showMoreFilterToCombinable=(0,n.vPA)(!0),this.supplierOffersListGroups=(0,n.EWP)(()=>this.supplierOffers().map(e=>({id:crypto.randomUUID(),dataMode:"ENTRY",timelineEntryData:e,taxonomyModeParentTaxonomyEntry:e.taxonomyEntry}))),this.showMoreFromSupplierOrderRequest=(0,n.vPA)(null),this.selectedAddToOrderItems=(0,n.vPA)([]),this.isDataLoaded=(0,n.vPA)(!1),this.draggedItem=(0,n.vPA)(null),this.dragTargetOrder=(0,n.vPA)(null),this.draggedItemIsCompatible=(0,n.EWP)(()=>!(!this.dragTargetOrder()||!this.draggedItem())&&this.marketplaceUtilities.isItemSummaryCombinableWithItemSummaries(this.draggedItem().flatItemSummary,this.dragTargetOrder()?.pickupLocationsRequests.flatMap(e=>e.requests.map(i=>i.flatItemSummary))??[])),this.dragOriginOrder=(0,n.EWP)(()=>{if(!this.draggedItem())return null;for(const e of this.cart()?.orderRequests??[])for(const i of e.pickupLocationsRequests)for(const o of i.requests)if(o.flatItemSummary.itemSummaryId===this.draggedItem()?.flatItemSummary.itemSummaryId)return e;return null}),(0,n.QZP)(()=>{this.cartService.cartChanged(),this.loadCart()})}ngOnInit(){this.loadCart(),this.loadData(),this.marketplaceService.forceRefreshAvailableOffers()}loadCart(){this.cart.set(this.cartService.getCart())}loadData(){wy({offers:this.marketplaceService.getAvailableOffers(),taxonomies:this.marketplaceService.getTaxonomy(),reservations:this.reservationsService.getEntityReservations()}).subscribe({next:({offers:e,taxonomies:i})=>{if(e&&i){const o=new Map(i.map(a=>[a.key,a.displayName])),s=e.map(a=>({...a,displayName:o.get(a.itemSummaries[0].fanoTaxonomyCategoryId)||"Unknown"}));this.timelineEntries.set(s),this.entries.set([...this.timelineEntries()]),this.isDataLoaded.set(!0)}},error:e=>{console.error("API Error:",e)}})}onQuantityChanged(e){this.cartService.updateItemQuantity(e),this.loadCart()}onItemRemoved(e){e&&(this.cartService.removeItemFromCart(e.flatItemSummary.itemSummaryId),this.loadCart())}removeOrderRequest(e,i,o=!0){if(!o)return this.cartService.removeOrderRequestFromCart(i),void this.loadCart();this.confirmationService.confirm({target:e.target,message:"Remove this group from your cart?",icon:"pi pi-exclamation-triangle",rejectButtonProps:{label:"Keep",severity:"secondary",outlined:!0},acceptButtonProps:{label:"Remove"},accept:()=>{this.cartService.removeOrderRequestFromCart(i),this.loadCart()},reject:()=>{}})}onBackClicked(){this.legacyNavigationService.navigate("app.marketplace-browse")}onRequestUpdated(e){this.cartService.updateItemQuantity(e),this.loadCart()}checkoutRequested(e){if(this.loadCart(),this.cart()&&this.cart()?.orderingEntity){const i=this.cart()?.orderRequests.find(o=>o.id===e);i&&this.cartService.startOrderCheckout(i,this.cart()?.orderingEntity)}}refreshSupplierOffers(){this.showMoreFromSupplierOrderRequest()&&this.showSupplierOffers(this.showMoreFromSupplierOrderRequest())}showSupplierOffers(e){const i=e.pickupLocationsRequests.flatMap(o=>o.requests.map(s=>s.flatItemSummary));wy({entries:this.timelineEntryService.getFlattenedAvailableItemSummaries()}).subscribe({next:({entries:o})=>{const s=[];s.push(new ope(e.sourceEntity)),this.showMoreFilterToCombinable()&&s.push(new spe([e.id]));let a=this.filtersService.applyFilters(o,s);this.supplierOffers.set(a),this.showMoreFromSupplier.set(!0),this.showMoreFromSupplierOrderRequest.set(e),this.selectedAddToOrderItems.set(i)},error:()=>{this.supplierOffers.set([]),this.showMoreFromSupplier.set(!1),this.showMoreFromSupplierOrderRequest.set(null),this.selectedAddToOrderItems.set([])}})}dropAsNewOrder(){if(this.draggedItem()){if((this.dragOriginOrder()?.pickupLocationsRequests.map(e=>e.requests.length).reduce((e,i)=>e+i,0)??0)<2)return;this.cartService.moveCartOrderRequestToNewOrder(this.draggedItem().flatItemSummary.itemSummaryId),this.loadCart(),this.draggedItem.set(null)}}dropIntoExistingOrder(e){this.dragTargetOrder()?.id!=this.dragOriginOrder()?.id&&null!=this.dragOriginOrder()?.id&&(this.draggedItem()&&this.draggedItemIsCompatible()?(this.cartService.moveCartOrderRequestToExistingOrder(this.draggedItem().flatItemSummary.itemSummaryId,e.id),this.loadCart(),this.draggedItem.set(null)):this.toasterService.displayErrorToast("Cannot Combine These","Sorry - we can't combine these offers together into a single order. Please process the orders separately."))}dragEnter(e){this.dragTargetOrder.set(e)}dragLeave(){this.dragTargetOrder.set(null)}itemDragging(e){this.draggedItem.set(e)}onMoveToNewOrder(e){e&&(this.cartService.moveCartOrderRequestToNewOrder(e.flatItemSummary.itemSummaryId),this.loadCart())}onMoveToExistingOrder(e){e&&(this.cartService.moveCartOrderRequestToExistingOrder(e.ItemToMove.flatItemSummary.itemSummaryId,e.TargetCartOrderId),this.loadCart())}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["marketplace-cart"]],inputs:{title:[1,"title"]},decls:5,vars:1,consts:[["moreFromSupplierDialog",""],["header",""],[1,"tw-flex","tw-h-full","tw-flex-col","tw-items-center","tw-justify-center"],[1,"tw-container","tw-mx-auto","tw-max-w-screen-xl"],[1,"tw-mb-10"],[1,"tw-flex","tw-justify-between"],[1,"tw-flex","tw-items-center","tw-justify-start","tw-gap-1"],["text","Keep browsing offers",1,"tw-text-[16px]","tw-font-semibold",3,"click"],[1,"tw-mx-auto","tw-mt-10","tw-block","tw-max-w-screen-sm"],["appendTo","body",3,"visibleChange","onHide","header","modal","visible"],[1,"tw-min-h-[550px]"],["severity","warn",1,"tw-mb-4","tw-block"],["pDroppable","cartItem",1,"drag-to-new-order-zone","tw-w-full",3,"onDrop"],[1,"tw-w-full","tw-text-center","tw-text-lg","tw-font-bold"],[1,"tw-mt-3","tw-w-full","tw-text-center","tw-italic","tw-text-slate-400"],[1,"tw-font-bold"],["pDroppable","cartItem",1,"tw-block","tw-rounded-md","tw-border","tw-border-solid","tw-border-slate-200",3,"onDrop","onDragEnter","onDragLeave"],[1,"tw-grid","tw-grid-cols-7","tw-gap-4"],[1,"tw-col-span-7","md:tw-col-span-5"],[1,"tw-cursor-pointer",3,"click"],[1,"tw-col-span-7","md:tw-col-span-2"],[3,"checkoutRequested","summary","canCheckout","orderId","deliveryLocationEntity"],[1,"tw-flex","tw-justify-between","tw-p-6","tw-pb-0"],[1,"tw-text-2xl","tw-font-bold"],[1,"tw-float-end"],[1,"pi","pi-trash","tw-cursor-pointer","hover:tw-text-red-800",3,"click"],[3,"locationEntity"],[1,"tw-flex","tw-flex-col","tw-gap-4"],[3,"itemRequest","allTimelineEntries"],[3,"onRemoveItem","onRequestUpdated","onDragging","onMoveToNewOrder","onMoveToExistingOrder","itemRequest","allTimelineEntries"],[1,"tw-text-center","tw-text-2xl"],[1,"pi","pi-shopping-cart","tw-float-end","tw-w-5"],[1,"tw-mt-12"],[1,"tw-text-center","tw-text-slate-500"],[1,"tw-mb-2","tw-flex","tw-flex-wrap","tw-gap-4"],[1,"tw-flex"],["inputId","showMoreAsTable",3,"ngModelChange","ngModel"],["for","showMoreAsTable",1,"tw-ml-2","tw-p-1"],["inputId","showMoreFilterToCombinable",3,"ngModelChange","onChange","ngModel"],["for","showMoreFilterToCombinable",1,"tw-ml-2","tw-p-1"],["showCombinability","NEVER",3,"entryGroups","showAsCombinableToItems","targetCartOrderId"],[1,"tw-relative","tw-min-h-[445px]"],[1,"tw-absolute","tw-bottom-0","tw-left-0","tw-right-0","tw-top-0"],["visibleColumnsCacheKey","marketplace.cartOffers.visibleColumns",3,"entries","showReset","targetCartOrderId","defaultHideColumns"],["ariaLabel","loading"],[1,"tw-font-semibold"]],template:function(i,o){1&i&&(n.nrm(0,"p-confirmpopup"),n.j41(1,"page-heading"),n.EFF(2,"Your Cart"),n.k0s(),n.DNE(3,o2t,12,8)(4,s2t,4,0,"div",2)),2&i&&(n.R7$(3),n.vxM(o.isDataLoaded()?3:4))},dependencies:[Ra,_o,ko,txt,rxt,Lxt,IX,Dxt,rm,kg,vg,gf,_6,Dy,z_,Epe,e7,Ope,b6,Iv,Q_,CI,Yxt,C6,gP,Gpe,ZSt],styles:[".order-gray-card .p-card{border-radius:.25rem;border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(226 232 240 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity, 1))}  .drag-to-new-order-zone{height:2rem}  .drag-to-new-order-zone div{display:none}  .drag-to-new-order-zone.p-draggable-enter{margin-bottom:1.5rem;margin-top:.5rem;height:3.5rem;border-radius:.5rem;border-width:1px;border-style:dashed;--tw-border-opacity: 1;border-color:rgb(100 116 139 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity, 1));padding:1rem 5rem 5rem}  .drag-to-new-order-zone.p-draggable-enter div{display:block}  .can-combine-hover{--tw-border-opacity: 1;border-color:rgb(22 163 74 / var(--tw-border-opacity, 1));--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);--tw-shadow-color: #166534;--tw-shadow: var(--tw-shadow-colored)}  .cannot-combine-hover{--tw-border-opacity: 1;border-color:rgb(185 28 28 / var(--tw-border-opacity, 1));--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);--tw-shadow-color: #991b1b;--tw-shadow: var(--tw-shadow-colored)}"]})}}return t})();const l2t=({dt:t})=>`\n.p-select {\n    display: inline-flex;\n    cursor: pointer;\n    position: relative;\n    user-select: none;\n    background: ${t("select.background")};\n    border: 1px solid ${t("select.border.color")};\n    transition: background ${t("select.transition.duration")}, color ${t("select.transition.duration")}, border-color ${t("select.transition.duration")},\n        outline-color ${t("select.transition.duration")}, box-shadow ${t("select.transition.duration")};\n    border-radius: ${t("select.border.radius")};\n    outline-color: transparent;\n    box-shadow: ${t("select.shadow")};\n}\n\n.p-select:not(.p-disabled):hover {\n    border-color: ${t("select.hover.border.color")};\n}\n\n.p-select:not(.p-disabled).p-focus {\n    border-color: ${t("select.focus.border.color")};\n    box-shadow: ${t("select.focus.ring.shadow")};\n    outline: ${t("select.focus.ring.width")} ${t("select.focus.ring.style")} ${t("select.focus.ring.color")};\n    outline-offset: ${t("select.focus.ring.offset")};\n}\n\n.p-select.p-variant-filled {\n    background: ${t("select.filled.background")};\n}\n\n.p-select.p-variant-filled.p-focus {\n    background: ${t("select.filled.focus.background")};\n}\n\n.p-select.p-disabled {\n    opacity: 1;\n    background: ${t("select.disabled.background")};\n}\n\n.p-select-clear-icon {\n    position: absolute;\n    top: 50%;\n    margin-top: -0.5rem;\n    color: ${t("select.clear.icon.color")};\n    right: ${t("select.dropdown.width")};\n}\n\n.p-select-dropdown {\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    flex-shrink: 0;\n    background: transparent;\n    color: ${t("select.dropdown.color")};\n    width: ${t("select.dropdown.width")};\n    border-start-end-radius: ${t("select.border.radius")};\n    border-end-end-radius: ${t("select.border.radius")};\n}\n\n.p-select-label {\n    display: block;\n    white-space: nowrap;\n    overflow: hidden;\n    flex: 1 1 auto;\n    width: 1%;\n    padding: ${t("select.padding.y")} ${t("select.padding.x")};\n    text-overflow: ellipsis;\n    cursor: pointer;\n    color: ${t("select.color")};\n    background: transparent;\n    border: 0 none;\n    outline: 0 none;\n}\n\n.p-select-label.p-placeholder {\n    color: ${t("select.placeholder.color")};\n}\n\n.p-select:has(.p-select-clear-icon) .p-select-label {\n    padding-right: calc(1rem + ${t("select.padding.x")});\n}\n\n.p-select.p-disabled .p-select-label {\n    color: ${t("select.disabled.color")};\n}\n\n.p-select-label-empty {\n    overflow: hidden;\n    opacity: 0;\n}\n\ninput.p-select-label {\n    cursor: default;\n}\n\n.p-select .p-select-overlay {\n    min-width: 100%;\n}\n\n.p-select-overlay {\n    position: absolute;\n    top: 0;\n    left: 0;\n    background: ${t("select.overlay.background")};\n    color: ${t("select.overlay.color")};\n    border: 1px solid ${t("select.overlay.border.color")};\n    border-radius: ${t("select.overlay.border.radius")};\n    box-shadow: ${t("select.overlay.shadow")};\n}\n\n.p-select-header {\n    padding: ${t("select.list.header.padding")};\n}\n\n.p-select-filter {\n    width: 100%;\n}\n\n.p-select-list-container {\n    overflow: auto;\n}\n\n.p-select-option-group {\n    cursor: auto;\n    margin: 0;\n    padding: ${t("select.option.group.padding")};\n    background: ${t("select.option.group.background")};\n    color: ${t("select.option.group.color")};\n    font-weight: ${t("select.option.group.font.weight")};\n}\n\n.p-select-list {\n    margin: 0;\n    padding: 0;\n    list-style-type: none;\n    padding: ${t("select.list.padding")};\n    gap: ${t("select.list.gap")};\n    display: flex;\n    flex-direction: column;\n}\n\n.p-select-option {\n    cursor: pointer;\n    font-weight: normal;\n    white-space: nowrap;\n    position: relative;\n    overflow: hidden;\n    display: flex;\n    align-items: center;\n    padding: ${t("select.option.padding")};\n    border: 0 none;\n    color: ${t("select.option.color")};\n    background: transparent;\n    transition: background ${t("select.transition.duration")}, color ${t("select.transition.duration")}, border-color ${t("select.transition.duration")},\n    box-shadow ${t("select.transition.duration")}, outline-color ${t("select.transition.duration")};\n    border-radius: ${t("select.option.border.radius")};\n}\n\n.p-select-option:not(.p-select-option-selected):not(.p-disabled).p-focus {\n    background: ${t("select.option.focus.background")};\n    color: ${t("select.option.focus.color")};\n}\n\n.p-select-option.p-select-option-selected {\n    background: ${t("select.option.selected.background")};\n    color: ${t("select.option.selected.color")};\n}\n\n.p-select-option.p-select-option-selected.p-focus {\n    background: ${t("select.option.selected.focus.background")};\n    color: ${t("select.option.selected.focus.color")};\n}\n\n.p-select-option-check-icon {\n    position: relative;\n    margin-inline-start: ${t("select.checkmark.gutter.start")};\n    margin-inline-end: ${t("select.checkmark.gutter.end")};\n    color: ${t("select.checkmark.color")};\n}\n\n.p-select-empty-message {\n    padding: ${t("select.empty.message.padding")};\n}\n\n.p-select-fluid {\n    display: flex;\n}\n\n/*For PrimeNG*/\n\n.p-dropdown.ng-invalid.ng-dirty,\n.p-select.ng-invalid.ng-dirty {\n    outline: 1px solid ${t("select.invalid.border.color")};\n    outline-offset: 0;\n}\n\n.p-dropdown.ng-invalid.ng-dirty .p-dropdown-label.p-placeholder,\n.p-select.ng-invalid.ng-dirty .p-select-label.p-placeholder {\n    color: ${t("select.invalid.placeholder.color")};\n}\n`,c2t={root:({instance:t})=>["p-dropdown p-select p-component p-inputwrapper",{"p-disabled":t.disabled,"p-variant-filled":t.variant?"filled"===t.variant:"filled"===t.config.inputStyle(),"p-focus":t.focused,"p-inputwrapper-filled":void 0!==t.modelValue()&&null!==t.modelValue()&&!t.modelValue().length,"p-inputwrapper-focus":t.focused||t.overlayVisible,"p-select-open":t.overlayVisible,"p-select-fluid":t.hasFluid,"p-select-sm p-inputfield-sm":"small"===t.size,"p-select-lg p-inputfield-lg":"large"===t.size}],label:({instance:t,props:r})=>["p-select-label",{"p-placeholder":!r.editable&&t.label===r.placeholder,"p-select-label-empty":!(r.editable||t.$slots.value||"p-emptylabel"!==t.label&&0!==t.label.length)}],clearIcon:"p-select-clear-icon",dropdown:"p-select-dropdown",loadingicon:"p-select-loading-icon",dropdownIcon:"p-select-dropdown-icon",overlay:"p-select-overlay p-component",header:"p-select-header",pcFilter:"p-select-filter",listContainer:"p-select-list-container",list:"p-select-list",optionGroup:"p-select-option-group",optionGroupLabel:"p-select-option-group-label",option:({instance:t,props:r,state:e,option:i,focusedOption:o})=>["p-select-option",{"p-select-option-selected":t.isSelected(i)&&r.highlightOnSelect,"p-focus":e.focusedOptionIndex===o,"p-disabled":t.isOptionDisabled(i)}],optionLabel:"p-select-option-label",optionCheckIcon:"p-select-option-check-icon",optionBlankIcon:"p-select-option-blank-icon",emptyMessage:"p-select-empty-message"};let jpe=(()=>{class t extends gs{name="select";theme=l2t;classes=c2t;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();var Hpe;Hpe||(Hpe={});const vP=t=>({height:t}),u2t=(t,r,e)=>({"p-select-option":!0,"p-select-option-selected":t,"p-disabled":r,"p-focus":e}),LX=t=>({$implicit:t});function d2t(t,r){1&t&&n.nrm(0,"CheckIcon",4),2&t&&n.Y8G("styleClass","p-select-option-check-icon")}function p2t(t,r){1&t&&n.nrm(0,"BlankIcon",4),2&t&&n.Y8G("styleClass","p-select-option-blank-icon")}function h2t(t,r){if(1&t&&(n.qex(0),n.DNE(1,d2t,1,1,"CheckIcon",3)(2,p2t,1,1,"BlankIcon",3),n.bVm()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngIf",e.selected),n.R7$(),n.Y8G("ngIf",!e.selected)}}function f2t(t,r){if(1&t&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&t){let e;const i=n.XpG();n.R7$(),n.JRh(null!==(e=i.label)&&void 0!==e?e:"empty")}}function m2t(t,r){1&t&&n.eu8(0)}const g2t=["container"],v2t=["filter"],_2t=["focusInput"],y2t=["editableInput"],b2t=["items"],C2t=["scroller"],w2t=["overlay"],T2t=["firstHiddenFocusableEl"],S2t=["lastHiddenFocusableEl"],x2t=()=>({class:"p-select-clear-icon"}),E2t=()=>({class:"p-select-dropdown-icon"}),Upe=t=>({options:t}),$pe=(t,r)=>({$implicit:t,options:r}),D2t=()=>({});function k2t(t,r){if(1&t&&(n.qex(0),n.EFF(1),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.JRh("p-emptylabel"===e.label()?"\xa0":e.label())}}function I2t(t,r){if(1&t&&n.eu8(0,23),2&t){const e=n.XpG(2);n.Y8G("ngTemplateOutlet",e.selectedItemTemplate)("ngTemplateOutletContext",n.eq3(2,LX,e.selectedOption))}}function A2t(t,r){if(1&t&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&t){const e=n.XpG(3);n.R7$(),n.JRh("p-emptylabel"===e.label()?"\xa0":e.label())}}function M2t(t,r){if(1&t&&n.DNE(0,A2t,2,1,"span",17),2&t){const e=n.XpG(2);n.Y8G("ngIf",!e.selectedOption)}}function R2t(t,r){if(1&t){const e=n.RV6();n.j41(0,"span",21,3),n.bIt("focus",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onInputFocus(o))})("blur",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onInputBlur(o))})("keydown",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onKeyDown(o))}),n.DNE(2,k2t,2,1,"ng-container",19)(3,I2t,1,4,"ng-container",22)(4,M2t,1,1,"ng-template",null,4,n.C5r),n.k0s()}if(2&t){let e;const i=n.sdS(5),o=n.XpG();n.Y8G("ngClass",o.inputClass)("pTooltip",o.tooltip)("tooltipPosition",o.tooltipPosition)("positionStyle",o.tooltipPositionStyle)("tooltipStyleClass",o.tooltipStyleClass)("pAutoFocus",o.autofocus),n.BMQ("aria-disabled",o.disabled)("id",o.inputId)("aria-label",o.ariaLabel||("p-emptylabel"===o.label()?void 0:o.label()))("aria-labelledby",o.ariaLabelledBy)("aria-haspopup","listbox")("aria-expanded",null!==(e=o.overlayVisible)&&void 0!==e&&e)("aria-controls",o.overlayVisible?o.id+"_list":null)("tabindex",o.disabled?-1:o.tabindex)("aria-activedescendant",o.focused?o.focusedOptionId:void 0)("aria-required",o.required)("required",o.required),n.R7$(2),n.Y8G("ngIf",!o.selectedItemTemplate)("ngIfElse",i),n.R7$(),n.Y8G("ngIf",o.selectedItemTemplate&&o.selectedOption)}}function O2t(t,r){if(1&t){const e=n.RV6();n.j41(0,"input",24,5),n.bIt("input",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onEditableInput(o))})("keydown",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onKeyDown(o))})("focus",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onInputFocus(o))})("blur",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onInputBlur(o))}),n.k0s()}if(2&t){const e=n.XpG();n.Y8G("ngClass",e.inputClass)("disabled",e.disabled)("pAutoFocus",e.autofocus),n.BMQ("id",e.inputId)("maxlength",e.maxlength)("placeholder",void 0===e.modelValue()||null===e.modelValue()?e.placeholder():void 0)("aria-label",e.ariaLabel||("p-emptylabel"===e.label()?void 0:e.label()))("aria-activedescendant",e.focused?e.focusedOptionId:void 0)}}function F2t(t,r){if(1&t){const e=n.RV6();n.j41(0,"TimesIcon",26),n.bIt("click",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.clear(o))}),n.k0s()}2&t&&n.BMQ("data-pc-section","clearicon")}function P2t(t,r){}function L2t(t,r){1&t&&n.DNE(0,P2t,0,0,"ng-template")}function N2t(t,r){if(1&t){const e=n.RV6();n.j41(0,"span",26),n.bIt("click",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.clear(o))}),n.DNE(1,L2t,1,0,null,27),n.k0s()}if(2&t){const e=n.XpG(2);n.BMQ("data-pc-section","clearicon"),n.R7$(),n.Y8G("ngTemplateOutlet",e.clearIconTemplate)("ngTemplateOutletContext",n.lJ4(3,x2t))}}function G2t(t,r){if(1&t&&(n.qex(0),n.DNE(1,F2t,1,1,"TimesIcon",25)(2,N2t,2,4,"span",25),n.bVm()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngIf",!e.clearIconTemplate),n.R7$(),n.Y8G("ngIf",e.clearIconTemplate)}}function B2t(t,r){1&t&&n.eu8(0)}function V2t(t,r){if(1&t&&(n.qex(0),n.DNE(1,B2t,1,0,"ng-container",28),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngTemplateOutlet",e.loadingIconTemplate)}}function j2t(t,r){if(1&t&&n.nrm(0,"span",31),2&t){const e=n.XpG(3);n.Y8G("ngClass","p-select-loading-icon pi-spin "+e.loadingIcon)}}function H2t(t,r){1&t&&n.nrm(0,"span",32),2&t&&n.HbH("p-select-loading-icon pi pi-spinner pi-spin")}function U2t(t,r){if(1&t&&(n.qex(0),n.DNE(1,j2t,1,1,"span",29)(2,H2t,1,2,"span",30),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngIf",e.loadingIcon),n.R7$(),n.Y8G("ngIf",!e.loadingIcon)}}function $2t(t,r){if(1&t&&(n.qex(0),n.DNE(1,V2t,2,1,"ng-container",17)(2,U2t,3,2,"ng-container",17),n.bVm()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngIf",e.loadingIconTemplate),n.R7$(),n.Y8G("ngIf",!e.loadingIconTemplate)}}function Y2t(t,r){if(1&t&&n.nrm(0,"span",36),2&t){const e=n.XpG(3);n.Y8G("ngClass",e.dropdownIcon)}}function W2t(t,r){1&t&&n.nrm(0,"ChevronDownIcon",37),2&t&&n.Y8G("styleClass","p-select-dropdown-icon")}function z2t(t,r){if(1&t&&(n.qex(0),n.DNE(1,Y2t,1,1,"span",34)(2,W2t,1,1,"ChevronDownIcon",35),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngIf",e.dropdownIcon),n.R7$(),n.Y8G("ngIf",!e.dropdownIcon)}}function q2t(t,r){}function X2t(t,r){1&t&&n.DNE(0,q2t,0,0,"ng-template")}function K2t(t,r){if(1&t&&(n.j41(0,"span",38),n.DNE(1,X2t,1,0,null,27),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngTemplateOutlet",e.dropdownIconTemplate)("ngTemplateOutletContext",n.lJ4(2,E2t))}}function Q2t(t,r){if(1&t&&n.DNE(0,z2t,3,2,"ng-container",17)(1,K2t,2,3,"span",33),2&t){const e=n.XpG();n.Y8G("ngIf",!e.dropdownIconTemplate),n.R7$(),n.Y8G("ngIf",e.dropdownIconTemplate)}}function J2t(t,r){1&t&&n.eu8(0)}function Z2t(t,r){1&t&&n.eu8(0)}function eEt(t,r){if(1&t&&(n.qex(0),n.DNE(1,Z2t,1,0,"ng-container",27),n.bVm()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngTemplateOutlet",e.filterTemplate)("ngTemplateOutletContext",n.eq3(2,Upe,e.filterOptions))}}function tEt(t,r){1&t&&n.nrm(0,"SearchIcon")}function nEt(t,r){}function iEt(t,r){1&t&&n.DNE(0,nEt,0,0,"ng-template")}function rEt(t,r){if(1&t&&(n.j41(0,"span"),n.DNE(1,iEt,1,0,null,28),n.k0s()),2&t){const e=n.XpG(4);n.R7$(),n.Y8G("ngTemplateOutlet",e.filterIconTemplate)}}function oEt(t,r){if(1&t){const e=n.RV6();n.j41(0,"p-iconfield")(1,"input",45,10),n.bIt("input",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.onFilterInputChange(o))})("keydown",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.onFilterKeyDown(o))})("blur",function(o){n.eBV(e);const s=n.XpG(3);return n.Njj(s.onFilterBlur(o))}),n.k0s(),n.j41(3,"p-inputicon"),n.DNE(4,tEt,1,0,"SearchIcon",17)(5,rEt,2,1,"span",17),n.k0s()()}if(2&t){const e=n.XpG(3);n.R7$(),n.Y8G("value",e._filterValue()||"")("variant",e.variant),n.BMQ("placeholder",e.filterPlaceholder)("aria-owns",e.id+"_list")("aria-label",e.ariaFilterLabel)("aria-activedescendant",e.focusedOptionId),n.R7$(3),n.Y8G("ngIf",!e.filterIconTemplate),n.R7$(),n.Y8G("ngIf",e.filterIconTemplate)}}function sEt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",44),n.bIt("click",function(o){return n.eBV(e),n.Njj(o.stopPropagation())}),n.DNE(1,eEt,2,4,"ng-container",19)(2,oEt,6,8,"ng-template",null,9,n.C5r),n.k0s()}if(2&t){const e=n.sdS(3),i=n.XpG(2);n.R7$(),n.Y8G("ngIf",i.filterTemplate)("ngIfElse",e)}}function aEt(t,r){1&t&&n.eu8(0)}function lEt(t,r){if(1&t&&n.DNE(0,aEt,1,0,"ng-container",27),2&t){const e=r.$implicit,i=r.options;n.XpG(2);const o=n.sdS(9);n.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",n.l_i(2,$pe,e,i))}}function cEt(t,r){1&t&&n.eu8(0)}function uEt(t,r){if(1&t&&n.DNE(0,cEt,1,0,"ng-container",27),2&t){const e=r.options,i=n.XpG(4);n.Y8G("ngTemplateOutlet",i.loaderTemplate)("ngTemplateOutletContext",n.eq3(2,Upe,e))}}function dEt(t,r){1&t&&(n.qex(0),n.DNE(1,uEt,1,4,"ng-template",null,12,n.C5r),n.bVm())}function pEt(t,r){if(1&t){const e=n.RV6();n.j41(0,"p-scroller",46,11),n.bIt("onLazyLoad",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onLazyLoad.emit(o))}),n.DNE(2,lEt,1,5,"ng-template",null,2,n.C5r)(4,dEt,3,0,"ng-container",17),n.k0s()}if(2&t){const e=n.XpG(2);n.Aen(n.eq3(8,vP,e.scrollHeight)),n.Y8G("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize||e._itemSize)("autoSize",!0)("lazy",e.lazy)("options",e.virtualScrollOptions),n.R7$(4),n.Y8G("ngIf",e.loaderTemplate)}}function hEt(t,r){1&t&&n.eu8(0)}function fEt(t,r){if(1&t&&(n.qex(0),n.DNE(1,hEt,1,0,"ng-container",27),n.bVm()),2&t){n.XpG();const e=n.sdS(9),i=n.XpG();n.R7$(),n.Y8G("ngTemplateOutlet",e)("ngTemplateOutletContext",n.l_i(3,$pe,i.visibleOptions(),n.lJ4(2,D2t)))}}function mEt(t,r){if(1&t&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&t){const e=n.XpG(2).$implicit,i=n.XpG(3);n.R7$(),n.JRh(i.getOptionGroupLabel(e.optionGroup))}}function gEt(t,r){1&t&&n.eu8(0)}function vEt(t,r){if(1&t&&(n.qex(0),n.j41(1,"li",50),n.DNE(2,mEt,2,1,"span",17)(3,gEt,1,0,"ng-container",27),n.k0s(),n.bVm()),2&t){const e=n.XpG(),i=e.$implicit,o=e.index,s=n.XpG().options,a=n.XpG(2);n.R7$(),n.Y8G("ngStyle",n.eq3(5,vP,s.itemSize+"px")),n.BMQ("id",a.id+"_"+a.getOptionIndex(o,s)),n.R7$(),n.Y8G("ngIf",!a.groupTemplate),n.R7$(),n.Y8G("ngTemplateOutlet",a.groupTemplate)("ngTemplateOutletContext",n.eq3(7,LX,i.optionGroup))}}function _Et(t,r){if(1&t){const e=n.RV6();n.qex(0),n.j41(1,"p-dropdownItem",51),n.bIt("onClick",function(o){n.eBV(e);const s=n.XpG().$implicit,a=n.XpG(3);return n.Njj(a.onOptionSelect(o,s))})("onMouseEnter",function(o){n.eBV(e);const s=n.XpG().index,a=n.XpG().options,l=n.XpG(2);return n.Njj(l.onOptionMouseEnter(o,l.getOptionIndex(s,a)))}),n.k0s(),n.bVm()}if(2&t){const e=n.XpG(),i=e.$implicit,o=e.index,s=n.XpG().options,a=n.XpG(2);n.R7$(),n.Y8G("id",a.id+"_"+a.getOptionIndex(o,s))("option",i)("checkmark",a.checkmark)("selected",a.isSelected(i))("label",a.getOptionLabel(i))("disabled",a.isOptionDisabled(i))("template",a.itemTemplate)("focused",a.focusedOptionIndex()===a.getOptionIndex(o,s))("ariaPosInset",a.getAriaPosInset(a.getOptionIndex(o,s)))("ariaSetSize",a.ariaSetSize)}}function yEt(t,r){if(1&t&&n.DNE(0,vEt,4,9,"ng-container",17)(1,_Et,2,10,"ng-container",17),2&t){const e=r.$implicit,i=n.XpG(3);n.Y8G("ngIf",i.isOptionGroup(e)),n.R7$(),n.Y8G("ngIf",!i.isOptionGroup(e))}}function bEt(t,r){if(1&t&&n.EFF(0),2&t){const e=n.XpG(4);n.SpI(" ",e.emptyFilterMessageLabel," ")}}function CEt(t,r){1&t&&n.eu8(0,null,14)}function wEt(t,r){if(1&t&&n.DNE(0,CEt,2,0,"ng-container",28),2&t){const e=n.XpG(4);n.Y8G("ngTemplateOutlet",e.emptyFilterTemplate||e.emptyTemplate)}}function TEt(t,r){if(1&t&&(n.j41(0,"li",52),n.DNE(1,bEt,1,1)(2,wEt,1,1,"ng-container"),n.k0s()),2&t){const e=n.XpG().options,i=n.XpG(2);n.Y8G("ngStyle",n.eq3(2,vP,e.itemSize+"px")),n.R7$(),n.vxM(i.emptyFilterTemplate||i.emptyTemplate?2:1)}}function SEt(t,r){if(1&t&&n.EFF(0),2&t){const e=n.XpG(4);n.SpI(" ",e.emptyMessageLabel," ")}}function xEt(t,r){1&t&&n.eu8(0)}function EEt(t,r){if(1&t&&n.DNE(0,xEt,1,0,"ng-container",28),2&t){const e=n.XpG(4);n.Y8G("ngTemplateOutlet",e.emptyTemplate)}}function DEt(t,r){if(1&t&&(n.j41(0,"li",52),n.DNE(1,SEt,1,1)(2,EEt,1,1,"ng-container"),n.k0s()),2&t){const e=n.XpG().options,i=n.XpG(2);n.Y8G("ngStyle",n.eq3(2,vP,e.itemSize+"px")),n.R7$(),n.vxM(i.emptyTemplate?2:1)}}function kEt(t,r){if(1&t&&(n.j41(0,"ul",47,13),n.DNE(2,yEt,2,2,"ng-template",48)(3,TEt,3,4,"li",49)(4,DEt,3,4,"li",49),n.k0s()),2&t){const e=r.$implicit,i=r.options,o=n.XpG(2);n.Aen(i.contentStyle),n.Y8G("ngClass",i.contentStyleClass),n.BMQ("id",o.id+"_list")("aria-label",o.listLabel),n.R7$(2),n.Y8G("ngForOf",e),n.R7$(),n.Y8G("ngIf",o.filterValue&&o.isEmpty()),n.R7$(),n.Y8G("ngIf",!o.filterValue&&o.isEmpty())}}function IEt(t,r){1&t&&n.eu8(0)}function AEt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",39)(1,"span",40,6),n.bIt("focus",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onFirstHiddenFocus(o))}),n.k0s(),n.DNE(3,J2t,1,0,"ng-container",28)(4,sEt,4,2,"div",41),n.j41(5,"div",42),n.DNE(6,pEt,5,10,"p-scroller",43)(7,fEt,2,6,"ng-container",17)(8,kEt,5,8,"ng-template",null,7,n.C5r),n.k0s(),n.DNE(10,IEt,1,0,"ng-container",28),n.j41(11,"span",40,8),n.bIt("focus",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onLastHiddenFocus(o))}),n.k0s()()}if(2&t){const e=n.XpG();n.HbH(e.panelStyleClass),n.Y8G("ngClass","p-select-overlay p-component")("ngStyle",e.panelStyle),n.R7$(),n.BMQ("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0),n.R7$(2),n.Y8G("ngTemplateOutlet",e.headerTemplate),n.R7$(),n.Y8G("ngIf",e.filter),n.R7$(),n.xc7("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),n.R7$(),n.Y8G("ngIf",e.virtualScroll),n.R7$(),n.Y8G("ngIf",!e.virtualScroll),n.R7$(3),n.Y8G("ngTemplateOutlet",e.footerTemplate),n.R7$(),n.BMQ("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0)}}const MEt={provide:tl,useExisting:(0,n.Rfq)(()=>Ype),multi:!0};let REt=(()=>{class t extends jo{id;option;selected;focused;label;disabled;visible;itemSize;ariaPosInset;ariaSetSize;template;checkmark;onClick=new n.bkB;onMouseEnter=new n.bkB;onOptionClick(e){this.onClick.emit(e)}onOptionMouseEnter(e){this.onMouseEnter.emit(e)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["p-dropdownItem"]],inputs:{id:"id",option:"option",selected:[2,"selected","selected",n.L39],focused:[2,"focused","focused",n.L39],label:"label",disabled:[2,"disabled","disabled",n.L39],visible:[2,"visible","visible",n.L39],itemSize:[2,"itemSize","itemSize",n.Udg],ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",template:"template",checkmark:[2,"checkmark","checkmark",n.L39]},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},standalone:!1,features:[n.GFd,n.Vt3],decls:4,vars:22,consts:[["role","option","pRipple","",3,"click","mouseenter","id","ngStyle","ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"styleClass",4,"ngIf"],[3,"styleClass"]],template:function(i,o){1&i&&(n.j41(0,"li",0),n.bIt("click",function(a){return o.onOptionClick(a)})("mouseenter",function(a){return o.onOptionMouseEnter(a)}),n.DNE(1,h2t,3,2,"ng-container",1)(2,f2t,2,1,"span",1)(3,m2t,1,0,"ng-container",2),n.k0s()),2&i&&(n.Y8G("id",o.id)("ngStyle",n.eq3(14,vP,o.itemSize+"px"))("ngClass",n.sMw(16,u2t,o.selected,o.disabled,o.focused)),n.BMQ("aria-label",o.label)("aria-setsize",o.ariaSetSize)("aria-posinset",o.ariaPosInset)("aria-selected",o.selected)("data-p-focused",o.focused)("data-p-highlight",o.selected)("data-p-disabled",o.disabled),n.R7$(),n.Y8G("ngIf",o.checkmark),n.R7$(),n.Y8G("ngIf",!o.template),n.R7$(),n.Y8G("ngTemplateOutlet",o.template)("ngTemplateOutletContext",n.eq3(20,LX,o.option)))},dependencies:()=>[bi,fi,uo,Jr,Mh,d8,Dx],encapsulation:2})}return t})(),Ype=(()=>{class t extends jo{zone;filterService;id;scrollHeight="200px";filter;name;style;panelStyle;styleClass;panelStyleClass;readonly;required;editable;appendTo;tabindex=0;set placeholder(e){this._placeholder.set(e)}get placeholder(){return this._placeholder.asReadonly()}loadingIcon;filterPlaceholder;filterLocale;variant="outlined";inputId;dataKey;filterBy;filterFields;autofocus;resetFilterOnHide=!1;checkmark=!1;dropdownIcon;loading=!1;optionLabel;optionValue;optionDisabled;optionGroupLabel="label";optionGroupChildren="items";autoDisplayFirst=!0;group;showClear;emptyFilterMessage="";emptyMessage="";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;overlayOptions;ariaFilterLabel;ariaLabel;ariaLabelledBy;filterMatchMode="contains";maxlength;tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;focusOnHover=!1;selectOnFocus=!1;autoOptionFocus=!0;autofocusFilter=!0;fluid;get disabled(){return this._disabled}set disabled(e){e&&(this.focused=!1,this.overlayVisible&&this.hide()),this._disabled=e,this.cd.destroyed||this.cd.detectChanges()}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e,console.log("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}_itemSize;get autoZIndex(){return this._autoZIndex}set autoZIndex(e){this._autoZIndex=e,console.log("The autoZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}_autoZIndex;get baseZIndex(){return this._baseZIndex}set baseZIndex(e){this._baseZIndex=e,console.log("The baseZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}_baseZIndex;get showTransitionOptions(){return this._showTransitionOptions}set showTransitionOptions(e){this._showTransitionOptions=e,console.log("The showTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}_showTransitionOptions;get hideTransitionOptions(){return this._hideTransitionOptions}set hideTransitionOptions(e){this._hideTransitionOptions=e,console.log("The hideTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}_hideTransitionOptions;get filterValue(){return this._filterValue()}set filterValue(e){setTimeout(()=>{this._filterValue.set(e)})}get options(){return this._options()}set options(e){BD(e,this._options())||this._options.set(e)}onChange=new n.bkB;onFilter=new n.bkB;onFocus=new n.bkB;onBlur=new n.bkB;onClick=new n.bkB;onShow=new n.bkB;onHide=new n.bkB;onClear=new n.bkB;onLazyLoad=new n.bkB;_componentStyle=(0,n.WQX)(jpe);containerViewChild;filterViewChild;focusInputViewChild;editableInputViewChild;itemsViewChild;scroller;overlayViewChild;firstHiddenFocusableElementOnOverlay;lastHiddenFocusableElementOnOverlay;get hostClass(){return this._componentStyle.classes.root({instance:this}).map(i=>"string"==typeof i?i:Object.keys(i).filter(o=>i[o]).join(" ")).join(" ")+" "+this.styleClass}get hostStyle(){return this.style}_disabled;itemsWrapper;itemTemplate;groupTemplate;loaderTemplate;selectedItemTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;dropdownIconTemplate;loadingIconTemplate;clearIconTemplate;filterIconTemplate;filterOptions;_options=(0,n.vPA)(null);_placeholder=(0,n.vPA)(void 0);modelValue=(0,n.vPA)(null);value;onModelChange=()=>{};onModelTouched=()=>{};hover;focused;overlayVisible;optionsChanged;panel;selectedOptionUpdated;_filterValue=(0,n.vPA)(null);searchValue;searchTimeout;preventModelTouched;focusedOptionIndex=(0,n.vPA)(-1);clicked=(0,n.vPA)(!1);get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(Xs.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(Xs.EMPTY_FILTER_MESSAGE)}get isVisibleClearIcon(){return null!=this.modelValue()&&this.hasSelectedOption()&&this.showClear&&!this.disabled}get listLabel(){return this.config.getTranslation(Xs.ARIA).listLabel}get hasFluid(){const i=this.el.nativeElement.closest("p-fluid");return this.fluid||!!i}get inputClass(){const e=this.label();return{"p-select-label":!0,"p-placeholder":this.placeholder()&&e===this.placeholder(),"p-select-label-empty":!(this.editable||this.selectedItemTemplate||null!=e&&"p-emptylabel"!==e&&0!==e.length)}}get focusedOptionId(){return-1!==this.focusedOptionIndex()?`${this.id}_${this.focusedOptionIndex()}`:null}visibleOptions=(0,n.EWP)(()=>{const e=this.getAllVisibleAndNonVisibleOptions();if(this._filterValue()){const o=this.filterBy||this.optionLabel||this.filterFields||this.optionValue?this.filterService.filter(e,this.searchFields(),this._filterValue().trim(),this.filterMatchMode,this.filterLocale):this.options.filter(s=>s.label?-1!==s.label.toString().toLowerCase().indexOf(this._filterValue().toLowerCase().trim()):-1!==s.toString().toLowerCase().indexOf(this._filterValue().toLowerCase().trim()));if(this.group){const a=[];return(this.options||[]).forEach(l=>{const d=this.getOptionGroupChildren(l).filter(f=>o.includes(f));d.length>0&&a.push({...l,["string"==typeof this.optionGroupChildren?this.optionGroupChildren:"items"]:[...d]})}),this.flatOptions(a)}return o}return e});label=(0,n.EWP)(()=>{const e=this.getAllVisibleAndNonVisibleOptions(),i=e.findIndex(o=>this.isOptionValueEqualsModelValue(o));return-1!==i?this.getOptionLabel(e[i]):this.placeholder()||"p-emptylabel"});filled=(0,n.EWP)(()=>"string"==typeof this.modelValue()?!!this.modelValue():"p-emptylabel"!==this.label()&&void 0!==this.modelValue()&&null!==this.modelValue());selectedOption;editableInputValue=(0,n.EWP)(()=>this.getOptionLabel(this.selectedOption)||this.modelValue()||"");constructor(e,i){super(),this.zone=e,this.filterService=i,(0,n.QZP)(()=>{const o=this.modelValue(),s=this.visibleOptions();if(s&&qs(s)){const a=this.findSelectedOptionIndex();(-1!==a||void 0===o||"string"==typeof o&&0===o.length||this.isModelValueNotSet()||this.editable)&&(this.selectedOption=s[a])}lp(s)&&(void 0===o||this.isModelValueNotSet())&&qs(this.selectedOption)&&(this.selectedOption=null),void 0!==o&&this.editable&&this.updateEditableLabel(),this.cd.markForCheck()})}isModelValueNotSet(){return null===this.modelValue()&&!this.isOptionValueEqualsModelValue(this.selectedOption)}getAllVisibleAndNonVisibleOptions(){return this.group?this.flatOptions(this.options):this.options||[]}ngOnInit(){super.ngOnInit(),console.log("Dropdown component is deprecated as of v18, use Select component instead."),this.id=this.id||Bl("pn_id_"),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterInputChange(e),reset:()=>this.resetFilter()})}ngAfterViewChecked(){if(this.optionsChanged&&this.overlayVisible&&(this.optionsChanged=!1,this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()},1)})),this.selectedOptionUpdated&&this.itemsWrapper){let e=xo(this.overlayViewChild?.overlayViewChild?.nativeElement,"li.p-highlight");e&&wZ(this.itemsWrapper,e),this.selectedOptionUpdated=!1}}templates;ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"selectedItem":this.selectedItemTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"filter":this.filterTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"emptyfilter":this.emptyFilterTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;case"group":this.groupTemplate=e.template;break;case"loader":this.loaderTemplate=e.template;break;case"dropdownicon":this.dropdownIconTemplate=e.template;break;case"loadingicon":this.loadingIconTemplate=e.template;break;case"clearicon":this.clearIconTemplate=e.template;break;case"filtericon":this.filterIconTemplate=e.template}})}flatOptions(e){return(e||[]).reduce((i,o,s)=>{i.push({optionGroup:o,group:!0,index:s});const a=this.getOptionGroupChildren(o);return a&&a.forEach(l=>i.push(l)),i},[])}autoUpdateModel(){if(this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()&&(this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex()),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()],!1)),this.autoDisplayFirst&&(null===this.modelValue()||void 0===this.modelValue())&&!this.placeholder()){const e=this.findFirstOptionIndex();this.onOptionSelect(null,this.visibleOptions()[e],!1,!0)}}onOptionSelect(e,i,o=!0,s=!1){if(!this.isSelected(i)){const a=this.getOptionValue(i);this.updateModel(a,e),this.focusedOptionIndex.set(this.findSelectedOptionIndex()),!1===s&&this.onChange.emit({originalEvent:e,value:a})}o&&this.hide(!0)}onOptionMouseEnter(e,i){this.focusOnHover&&this.changeFocusedOptionIndex(e,i)}updateModel(e,i){this.value=e,this.onModelChange(e),this.modelValue.set(e),this.selectedOptionUpdated=!0}writeValue(e){this.filter&&this.resetFilter(),this.value=e,this.allowModelChange()&&this.onModelChange(e),this.modelValue.set(this.value),this.updateEditableLabel(),this.cd.markForCheck()}allowModelChange(){return this.autoDisplayFirst&&!this.placeholder()&&(void 0===this.modelValue()||null===this.modelValue())&&!this.editable&&this.options&&this.options.length}isSelected(e){return this.isValidOption(e)&&this.isOptionValueEqualsModelValue(e)}isOptionValueEqualsModelValue(e){return id(this.modelValue(),this.getOptionValue(e),this.equalityKey())}ngAfterViewInit(){this.editable&&this.updateEditableLabel(),this.updatePlaceHolderForFloatingLabel()}updatePlaceHolderForFloatingLabel(){const e=this.el.nativeElement.parentElement,i=e?.classList.contains("p-float-label");if(e&&i&&!this.selectedOption){const o=e.querySelector("label");o&&this._placeholder.set(o.textContent)}}updateEditableLabel(){this.editableInputViewChild&&(this.editableInputViewChild.nativeElement.value=this.getOptionLabel(this.selectedOption)||this.modelValue()||"")}clearEditableLabel(){this.editableInputViewChild&&(this.editableInputViewChild.nativeElement.value="")}getOptionIndex(e,i){return this.virtualScrollerDisabled?e:i&&i.getItemOptions(e).index}getOptionLabel(e){return null!=this.optionLabel?ml(e,this.optionLabel):e&&void 0!==e.label?e.label:e}getOptionValue(e){return this.optionValue&&null!==this.optionValue?ml(e,this.optionValue):!this.optionLabel&&e&&void 0!==e.value?e.value:e}isOptionDisabled(e){return!(this.getOptionValue(this.modelValue())===this.getOptionValue(e)||this.getOptionLabel(this.modelValue()===this.getOptionLabel(e))&&!1===e.disabled)&&(this.optionDisabled?ml(e,this.optionDisabled):!(!e||void 0===e.disabled)&&e.disabled)}getOptionGroupLabel(e){return null!=this.optionGroupLabel?ml(e,this.optionGroupLabel):e&&void 0!==e.label?e.label:e}getOptionGroupChildren(e){return null!=this.optionGroupChildren?ml(e,this.optionGroupChildren):e.items}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(i=>this.isOptionGroup(i)).length:e)+1}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}resetFilter(){this._filterValue.set(null),this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value="")}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onContainerClick(e){this.disabled||this.readonly||this.loading||(this.focusInputViewChild?.nativeElement.focus({preventScroll:!0}),"INPUT"!==e.target.tagName&&"clearicon"!==e.target.getAttribute("data-pc-section")&&!e.target.closest('[data-pc-section="clearicon"]')&&((!this.overlayViewChild||!this.overlayViewChild.el.nativeElement.contains(e.target))&&(this.overlayVisible?this.hide(!0):this.show(!0)),this.onClick.emit(e),this.clicked.set(!0),this.cd.detectChanges()))}isEmpty(){return!this._options()||this.visibleOptions()&&0===this.visibleOptions().length}onEditableInput(e){const i=e.target.value;this.searchValue="",!this.searchOptions(e,i)&&this.focusedOptionIndex.set(-1),this.onModelChange(i),this.updateModel(i,e),setTimeout(()=>{this.onChange.emit({originalEvent:e,value:i})},1),!this.overlayVisible&&qs(i)&&this.show()}show(e){this.overlayVisible=!0;const i=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.editable?-1:this.findSelectedOptionIndex();this.focusedOptionIndex.set(i),e&&la(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}onOverlayAnimationStart(e){if("visible"===e.toState){if(this.itemsWrapper=xo(this.overlayViewChild?.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-dropdown-items-wrapper"),this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.options&&this.options.length)if(this.virtualScroll){const i=this.modelValue()?this.focusedOptionIndex():-1;-1!==i&&this.scroller?.scrollToIndex(i)}else{let i=xo(this.itemsWrapper,".p-dropdown-item.p-highlight");i&&i.scrollIntoView({block:"nearest",inline:"nearest"})}this.filterViewChild&&this.filterViewChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&!this.editable&&this.filterViewChild.nativeElement.focus()),this.onShow.emit(e)}"void"===e.toState&&(this.itemsWrapper=null,this.onModelTouched(),this.onHide.emit(e))}hide(e){this.overlayVisible=!1,this.focusedOptionIndex.set(-1),this.clicked.set(!1),this.searchValue="","modal"===this.overlayOptions?.mode&&Lw(),this.filter&&this.resetFilterOnHide&&this.resetFilter(),e&&(this.focusInputViewChild&&la(this.focusInputViewChild?.nativeElement),this.editable&&this.editableInputViewChild&&la(this.editableInputViewChild?.nativeElement)),this.cd.markForCheck()}onInputFocus(e){if(this.disabled)return;this.focused=!0;const i=-1!==this.focusedOptionIndex()?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(i),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onBlur.emit(e),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}onKeyDown(e,i){if(!(this.disabled||this.readonly||this.loading)){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,this.editable);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,this.editable);break;case"Delete":this.onDeleteKey(e);break;case"Home":this.onHomeKey(e,this.editable);break;case"End":this.onEndKey(e,this.editable);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Space":this.onSpaceKey(e,i);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e,this.editable);break;case"ShiftLeft":case"ShiftRight":break;default:!e.metaKey&&rd(e.key)&&(!this.overlayVisible&&this.show(),!this.editable&&this.searchOptions(e,e.key))}this.clicked.set(!1)}}onFilterKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":case"NumpadEnter":this.onEnterKey(e,!0);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0)}}onFilterBlur(e){this.focusedOptionIndex.set(-1)}onArrowDownKey(e){if(this.overlayVisible){const i=-1!==this.focusedOptionIndex()?this.findNextOptionIndex(this.focusedOptionIndex()):this.clicked()?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,i)}else this.show(),this.editable&&this.changeFocusedOptionIndex(e,this.findSelectedOptionIndex());e.preventDefault(),e.stopPropagation()}changeFocusedOptionIndex(e,i){if(this.focusedOptionIndex()!==i&&(this.focusedOptionIndex.set(i),this.scrollInView(),this.selectOnFocus)){const o=this.visibleOptions()[i];this.onOptionSelect(e,o,!1)}}get virtualScrollerDisabled(){return!this.virtualScroll}scrollInView(e=-1){if(this.itemsViewChild&&this.itemsViewChild.nativeElement){const o=xo(this.itemsViewChild.nativeElement,`li[id="${-1!==e?`${this.id}_${e}`:this.focusedOptionId}"]`);o?o.scrollIntoView&&o.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(-1!==e?e:this.focusedOptionIndex())},0)}}hasSelectedOption(){return void 0!==this.modelValue()}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}equalityKey(){return this.optionValue?null:this.dataKey}findFirstFocusedOptionIndex(){const e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextOptionIndex(e){const i=e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(o=>this.isValidOption(o)):-1;return i>-1?i+e+1:e}findPrevOptionIndex(e){const i=e>0?Jp(this.visibleOptions().slice(0,e),o=>this.isValidOption(o)):-1;return i>-1?i:e}findLastOptionIndex(){return Jp(this.visibleOptions(),e=>this.isValidOption(e))}findLastFocusedOptionIndex(){const e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}isValidOption(e){return null!=e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionGroup(e){return null!=this.optionGroupLabel&&null!=e.optionGroup&&e.group}onArrowUpKey(e,i=!1){if(e.altKey&&!i){if(-1!==this.focusedOptionIndex()){const o=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,o)}this.overlayVisible&&this.hide()}else{const o=-1!==this.focusedOptionIndex()?this.findPrevOptionIndex(this.focusedOptionIndex()):this.clicked()?this.findLastOptionIndex():this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,o),!this.overlayVisible&&this.show()}e.preventDefault(),e.stopPropagation()}onArrowLeftKey(e,i=!1){i&&this.focusedOptionIndex.set(-1)}onDeleteKey(e){this.showClear&&(this.clear(e),e.preventDefault())}onHomeKey(e,i=!1){if(i){const o=e.currentTarget;e.shiftKey?o.setSelectionRange(0,o.value.length):(o.setSelectionRange(0,0),this.focusedOptionIndex.set(-1))}else this.changeFocusedOptionIndex(e,this.findFirstOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()}onEndKey(e,i=!1){if(i){const o=e.currentTarget;if(e.shiftKey)o.setSelectionRange(0,o.value.length);else{const s=o.value.length;o.setSelectionRange(s,s),this.focusedOptionIndex.set(-1)}}else this.changeFocusedOptionIndex(e,this.findLastOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onSpaceKey(e,i=!1){!this.editable&&!i&&this.onEnterKey(e)}onEnterKey(e,i=!1){if(this.overlayVisible){if(-1!==this.focusedOptionIndex()){const o=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,o)}!i&&this.hide()}else this.focusedOptionIndex.set(-1),this.onArrowDownKey(e);e.preventDefault()}onEscapeKey(e){this.overlayVisible&&this.hide(!0),e.preventDefault()}onTabKey(e,i=!1){if(!i)if(this.overlayVisible&&this.hasFocusableElements())la(e.shiftKey?this.lastHiddenFocusableElementOnOverlay.nativeElement:this.firstHiddenFocusableElementOnOverlay.nativeElement),e.preventDefault();else{if(-1!==this.focusedOptionIndex()&&this.overlayVisible){const o=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,o)}this.overlayVisible&&this.hide(this.filter)}e.stopPropagation()}onFirstHiddenFocus(e){la(e.relatedTarget===this.focusInputViewChild?.nativeElement?bx(this.overlayViewChild.el?.nativeElement,":not(.p-hidden-focusable)"):this.focusInputViewChild?.nativeElement)}onLastHiddenFocus(e){la(e.relatedTarget===this.focusInputViewChild?.nativeElement?nO(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement)}hasFocusableElements(){return Mm(this.overlayViewChild.overlayViewChild.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}onBackspaceKey(e,i=!1){i&&!this.overlayVisible&&this.show()}searchFields(){return this.filterBy?.split(",")||this.filterFields||[this.optionLabel]}searchOptions(e,i){this.searchValue=(this.searchValue||"")+i;let o=-1,s=!1;return o=this.visibleOptions().findIndex(a=>this.isOptionExactMatched(a)),-1===o&&(o=this.visibleOptions().findIndex(a=>this.isOptionStartsWith(a))),-1!==o&&(s=!0),-1===o&&-1===this.focusedOptionIndex()&&(o=this.findFirstFocusedOptionIndex()),-1!==o&&this.changeFocusedOptionIndex(e,o),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),s}isOptionStartsWith(e){return this.isValidOption(e)&&this.getOptionLabel(e).toString().toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))}isOptionExactMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toString().toLocaleLowerCase(this.filterLocale)===this.searchValue.toLocaleLowerCase(this.filterLocale)}onFilterInputChange(e){this._filterValue.set(e.target.value),this.focusedOptionIndex.set(-1),this.onFilter.emit({originalEvent:e,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller.scrollToIndex(0),setTimeout(()=>{this.overlayViewChild.alignOverlay()}),this.cd.markForCheck()}applyFocus(){this.editable?xo(this.el.nativeElement,".p-dropdown-label.p-inputtext").focus():la(this.focusInputViewChild?.nativeElement)}focus(){this.applyFocus()}clear(e){this.updateModel(null,e),this.clearEditableLabel(),this.onModelTouched(),this.onChange.emit({originalEvent:e,value:this.value}),this.onClear.emit(e),this.resetFilter()}static \u0275fac=function(i){return new(i||t)(n.rXU(n.SKi),n.rXU(Cx))};static \u0275cmp=n.VBU({type:t,selectors:[["p-dropdown"]],contentQueries:function(i,o,s){if(1&i&&n.wni(s,hs,4),2&i){let a;n.mGM(a=n.lsd())&&(o.templates=a)}},viewQuery:function(i,o){if(1&i&&(n.GBs(g2t,5),n.GBs(v2t,5),n.GBs(_2t,5),n.GBs(y2t,5),n.GBs(b2t,5),n.GBs(C2t,5),n.GBs(w2t,5),n.GBs(T2t,5),n.GBs(S2t,5)),2&i){let s;n.mGM(s=n.lsd())&&(o.containerViewChild=s.first),n.mGM(s=n.lsd())&&(o.filterViewChild=s.first),n.mGM(s=n.lsd())&&(o.focusInputViewChild=s.first),n.mGM(s=n.lsd())&&(o.editableInputViewChild=s.first),n.mGM(s=n.lsd())&&(o.itemsViewChild=s.first),n.mGM(s=n.lsd())&&(o.scroller=s.first),n.mGM(s=n.lsd())&&(o.overlayViewChild=s.first),n.mGM(s=n.lsd())&&(o.firstHiddenFocusableElementOnOverlay=s.first),n.mGM(s=n.lsd())&&(o.lastHiddenFocusableElementOnOverlay=s.first)}},hostVars:5,hostBindings:function(i,o){1&i&&n.bIt("click",function(a){return o.onContainerClick(a)}),2&i&&(n.BMQ("id",o.id),n.Aen(o.hostStyle),n.HbH(o.hostClass))},inputs:{id:"id",scrollHeight:"scrollHeight",filter:[2,"filter","filter",n.L39],name:"name",style:"style",panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",readonly:[2,"readonly","readonly",n.L39],required:[2,"required","required",n.L39],editable:[2,"editable","editable",n.L39],appendTo:"appendTo",tabindex:[2,"tabindex","tabindex",n.Udg],placeholder:"placeholder",loadingIcon:"loadingIcon",filterPlaceholder:"filterPlaceholder",filterLocale:"filterLocale",variant:"variant",inputId:"inputId",dataKey:"dataKey",filterBy:"filterBy",filterFields:"filterFields",autofocus:[2,"autofocus","autofocus",n.L39],resetFilterOnHide:[2,"resetFilterOnHide","resetFilterOnHide",n.L39],checkmark:[2,"checkmark","checkmark",n.L39],dropdownIcon:"dropdownIcon",loading:[2,"loading","loading",n.L39],optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",autoDisplayFirst:[2,"autoDisplayFirst","autoDisplayFirst",n.L39],group:[2,"group","group",n.L39],showClear:[2,"showClear","showClear",n.L39],emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",lazy:[2,"lazy","lazy",n.L39],virtualScroll:[2,"virtualScroll","virtualScroll",n.L39],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",n.Udg],virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",filterMatchMode:"filterMatchMode",maxlength:[2,"maxlength","maxlength",n.Udg],tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",focusOnHover:[2,"focusOnHover","focusOnHover",n.L39],selectOnFocus:[2,"selectOnFocus","selectOnFocus",n.L39],autoOptionFocus:[2,"autoOptionFocus","autoOptionFocus",n.L39],autofocusFilter:[2,"autofocusFilter","autofocusFilter",n.L39],fluid:[2,"fluid","fluid",n.L39],disabled:"disabled",itemSize:"itemSize",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",filterValue:"filterValue",options:"options"},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onShow:"onShow",onHide:"onHide",onClear:"onClear",onLazyLoad:"onLazyLoad"},standalone:!1,features:[n.Jv_([MEt,jpe]),n.GFd,n.Vt3],decls:11,vars:15,consts:[["elseBlock",""],["overlay",""],["content",""],["focusInput",""],["defaultPlaceholder",""],["editableInput",""],["firstHiddenFocusableEl",""],["buildInItems",""],["lastHiddenFocusableEl",""],["builtInFilterElement",""],["filter",""],["scroller",""],["loader",""],["items",""],["emptyFilter",""],["role","combobox",3,"ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","pAutoFocus","focus","blur","keydown",4,"ngIf"],["type","text","aria-haspopup","listbox",3,"ngClass","disabled","pAutoFocus","input","keydown","focus","blur",4,"ngIf"],[4,"ngIf"],["role","button","aria-label","dropdown trigger","aria-haspopup","listbox",1,"p-select-dropdown"],[4,"ngIf","ngIfElse"],[3,"visibleChange","onAnimationStart","onHide","visible","options","target","appendTo","autoZIndex","baseZIndex","showTransitionOptions","hideTransitionOptions"],["role","combobox",3,"focus","blur","keydown","ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","pAutoFocus"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["type","text","aria-haspopup","listbox",3,"input","keydown","focus","blur","ngClass","disabled","pAutoFocus"],["class","p-select-clear-icon",3,"click",4,"ngIf"],[1,"p-select-clear-icon",3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],["aria-hidden","true",3,"ngClass",4,"ngIf"],["aria-hidden","true",3,"class",4,"ngIf"],["aria-hidden","true",3,"ngClass"],["aria-hidden","true"],["class","p-select-dropdown-icon",4,"ngIf"],["class","p-select-dropdown-icon",3,"ngClass",4,"ngIf"],[3,"styleClass",4,"ngIf"],[1,"p-select-dropdown-icon",3,"ngClass"],[3,"styleClass"],[1,"p-select-dropdown-icon"],[3,"ngClass","ngStyle"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus"],["class","p-select-header",3,"click",4,"ngIf"],[1,"p-select-list-container"],[3,"items","style","itemSize","autoSize","lazy","options","onLazyLoad",4,"ngIf"],[1,"p-select-header",3,"click"],["pInputText","","type","text","role","searchbox","autocomplete","off",1,"p-select-filter",3,"input","keydown","blur","value","variant"],[3,"onLazyLoad","items","itemSize","autoSize","lazy","options"],["role","listbox",1,"p-select-list",3,"ngClass"],["ngFor","",3,"ngForOf"],["class","p-select-empty-message","role","option",3,"ngStyle",4,"ngIf"],["role","option",1,"p-select-option-group",3,"ngStyle"],[3,"onClick","onMouseEnter","id","option","checkmark","selected","label","disabled","template","focused","ariaPosInset","ariaSetSize"],["role","option",1,"p-select-empty-message",3,"ngStyle"]],template:function(i,o){if(1&i){const s=n.RV6();n.DNE(0,R2t,6,20,"span",15)(1,O2t,2,8,"input",16)(2,G2t,3,2,"ng-container",17),n.j41(3,"div",18),n.DNE(4,$2t,3,2,"ng-container",19)(5,Q2t,2,2,"ng-template",null,0,n.C5r),n.k0s(),n.j41(7,"p-overlay",20,1),n.mxI("visibleChange",function(l){return n.eBV(s),n.DH7(o.overlayVisible,l)||(o.overlayVisible=l),n.Njj(l)}),n.bIt("onAnimationStart",function(l){return n.eBV(s),n.Njj(o.onOverlayAnimationStart(l))})("onHide",function(){return n.eBV(s),n.Njj(o.hide())}),n.DNE(9,AEt,13,17,"ng-template",null,2,n.C5r),n.k0s()}if(2&i){let s;const a=n.sdS(6);n.Y8G("ngIf",!o.editable),n.R7$(),n.Y8G("ngIf",o.editable),n.R7$(),n.Y8G("ngIf",o.isVisibleClearIcon),n.R7$(),n.BMQ("aria-expanded",null!==(s=o.overlayVisible)&&void 0!==s&&s)("data-pc-section","trigger"),n.R7$(),n.Y8G("ngIf",o.loading)("ngIfElse",a),n.R7$(3),n.R50("visible",o.overlayVisible),n.Y8G("options",o.overlayOptions)("target","@parent")("appendTo",o.appendTo)("autoZIndex",o.autoZIndex)("baseZIndex",o.baseZIndex)("showTransitionOptions",o.showTransitionOptions)("hideTransitionOptions",o.hideTransitionOptions)}},dependencies:()=>[bi,oo,fi,uo,Jr,lk,ou,Db,Jf,pf,Y_,ak,hf,Ex,kx,REt],encapsulation:2,changeDetection:0})}return t})(),OEt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({imports:[gn,Fee,Di,Rh,Db,O$,pf,Y_,ak,d8,Dx,Ix,Ex,kx,Fee,Di]})}return t})();const FEt=({dt:t})=>`\n.p-toolbar {\n    display: flex;\n    align-items: center;\n    justify-content: space-between;\n    flex-wrap: wrap;\n    padding: ${t("toolbar.padding")};\n    background: ${t("toolbar.background")};\n    border: 1px solid ${t("toolbar.border.color")};\n    color: ${t("toolbar.color")};\n    border-radius: ${t("toolbar.border.radius")};\n    gap: ${t("toolbar.gap")};\n}\n\n.p-toolbar-start,\n.p-toolbar-center,\n.p-toolbar-end {\n    display: flex;\n    align-items: center;\n}\n`,PEt={root:"p-toolbar p-component",start:"p-toolbar-start",center:"p-toolbar-center",end:"p-toolbar-end"};let Wpe=(()=>{class t extends gs{name="toolbar";theme=FEt;classes=PEt;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const NEt=["start"],GEt=["end"],BEt=["center"],VEt=["*"];function jEt(t,r){1&t&&n.eu8(0)}function HEt(t,r){if(1&t&&(n.j41(0,"div",4),n.DNE(1,jEt,1,0,"ng-container",5),n.k0s()),2&t){const e=n.XpG();n.BMQ("data-pc-section","start"),n.R7$(),n.Y8G("ngTemplateOutlet",e.startTemplate||e._startTemplate)}}function UEt(t,r){1&t&&n.eu8(0)}function $Et(t,r){if(1&t&&(n.j41(0,"div",6),n.DNE(1,UEt,1,0,"ng-container",5),n.k0s()),2&t){const e=n.XpG();n.BMQ("data-pc-section","center"),n.R7$(),n.Y8G("ngTemplateOutlet",e.centerTemplate||e._centerTemplate)}}function YEt(t,r){1&t&&n.eu8(0)}function WEt(t,r){if(1&t&&(n.j41(0,"div",7),n.DNE(1,YEt,1,0,"ng-container",5),n.k0s()),2&t){const e=n.XpG();n.BMQ("data-pc-section","end"),n.R7$(),n.Y8G("ngTemplateOutlet",e.endTemplate||e._endTemplate)}}let zpe=(()=>{class t extends jo{style;styleClass;ariaLabelledBy;_componentStyle=(0,n.WQX)(Wpe);getBlockableElement(){return this.el.nativeElement.children[0]}startTemplate;endTemplate;centerTemplate;templates;_startTemplate;_endTemplate;_centerTemplate;ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"start":case"left":this._startTemplate=e.template;break;case"end":case"right":this._endTemplate=e.template;break;case"center":this._centerTemplate=e.template}})}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["p-toolbar"]],contentQueries:function(i,o,s){if(1&i&&(n.wni(s,NEt,4),n.wni(s,GEt,4),n.wni(s,BEt,4),n.wni(s,hs,4)),2&i){let a;n.mGM(a=n.lsd())&&(o.startTemplate=a.first),n.mGM(a=n.lsd())&&(o.endTemplate=a.first),n.mGM(a=n.lsd())&&(o.centerTemplate=a.first),n.mGM(a=n.lsd())&&(o.templates=a)}},inputs:{style:"style",styleClass:"styleClass",ariaLabelledBy:"ariaLabelledBy"},features:[n.Jv_([Wpe]),n.Vt3],ngContentSelectors:VEt,decls:5,vars:9,consts:[["role","toolbar",3,"ngClass","ngStyle"],["class","p-toolbar-start",4,"ngIf"],["class","p-toolbar-center",4,"ngIf"],["class","p-toolbar-end",4,"ngIf"],[1,"p-toolbar-start"],[4,"ngTemplateOutlet"],[1,"p-toolbar-center"],[1,"p-toolbar-end"]],template:function(i,o){1&i&&(n.NAR(),n.j41(0,"div",0),n.SdG(1),n.DNE(2,HEt,2,2,"div",1)(3,$Et,2,2,"div",2)(4,WEt,2,2,"div",3),n.k0s()),2&i&&(n.HbH(o.styleClass),n.Y8G("ngClass","p-toolbar p-component")("ngStyle",o.style),n.BMQ("aria-labelledby",o.ariaLabelledBy)("data-pc-name","toolbar"),n.R7$(2),n.Y8G("ngIf",o.startTemplate||o._startTemplate),n.R7$(),n.Y8G("ngIf",o.centerTemplate||o._centerTemplate),n.R7$(),n.Y8G("ngIf",o.endTemplate||o._endTemplate))},dependencies:[gn,bi,fi,uo,Jr,Di],encapsulation:2,changeDetection:0})}return t})(),zEt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({imports:[zpe,Di,Di]})}return t})(),qEt=(()=>{class t{constructor(e,i){this.http=e,this.environmentService=i,this.claimsService=(0,n.WQX)(Zb),this.isFANO=(0,n.vPA)(!1),this.apiUrl=this.environmentService.getApiUrl()}refreshIssues(){return this.http.post(`${this.apiUrl}/issue-queue/refresh`,null)}getActiveIssues(e){return this.http.get(`${this.apiUrl}/issue-queue?handlerCodes=${e.join("|")}`)}executeIssueAction(e){return this.http.post(`${this.apiUrl}/issue-queue/execute-action`,e)}static{this.\u0275fac=function(i){return new(i||t)(n.KVO(Da),n.KVO(s0))}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const XEt={OPEN:{displayName:"Open"},RESOLVED:{displayName:"Resolved"},ARCHIVED:{displayName:"Archived"},IGNORED:{displayName:"Ignored"}},KEt={MARKETPLACE_OFFER_NETSUITE_DISCREPANCY:{displayName:"Marketplace-NetSuite Offer Discrepancies"},TAXONOMY_ERRORS:{displayName:"Taxonomy Errors in NetSuite"}},w6={FIX_OFFER:{displayName:"Fix Offer",helpText:"Update the offer based on the recommendation from the issue description.",iconClass:"pi pi-wrench"},IGNORE:{displayName:"Ignore",helpText:"Ignore this issue",iconClass:"pi pi-bell-slash"},REOPEN:{displayName:"Re-Open",helpText:"Re-open this issue",iconClass:"pi pi-folder-open"}};let QEt=(()=>{class t{constructor(){this.legacyNavigationService=(0,n.WQX)(wc),this.link=(0,n.vPA)(""),this.text=(0,n.vPA)("")}agInit(e){try{if(e.data&&"NS_WAREHOUSE_OFFER_DISCREPANCY"===e.data.issueClass){let i=JSON.parse(e.data.objectData)?.OfferId;i&&(this.link.set(this.legacyNavigationService.getUrl("app.marketplace-offer-details",{offerId:i})),this.text.set("Offer Details"))}}catch{}}refresh(e){return!1}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["ng-component"]],decls:2,vars:2,consts:[["target","_blank",3,"href"]],template:function(i,o){1&i&&(n.j41(0,"a",0),n.EFF(1),n.k0s()),2&i&&(n.Y8G("href",o.link(),n.B4B),n.R7$(),n.JRh(o.text()))},encapsulation:2})}}return t})();function JEt(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",2),n.bIt("click",function(){const o=n.eBV(e).$implicit,s=n.XpG();return n.Njj(s.fireAction(o))}),n.nrm(1,"i",3),n.j41(2,"span",4),n.EFF(3),n.k0s()()}if(2&t){const e=r.$implicit;n.R7$(),n.Y8G("className",e.iconClass),n.R7$(2),n.JRh(e.displayName)}}let ZEt=(()=>{class t{constructor(){this.issue=(0,n.vPA)(null),this.actions=(0,n.vPA)([])}agInit(e){if(this.onFireAction=e.onFireAction,e.data){this.issue.set(e.data);const i=[];for(const o of e.data.availableActions){let s={displayName:o.actionTypeCode.replaceAll("_"," "),helpText:"Execute this action",iconClass:"pi pi-caret-right"};o.actionTypeCode in w6&&(s=w6[o.actionTypeCode]),i.push({...o,...s})}this.actions.set(i)}}refresh(e){return!1}fireAction(e){this.issue()&&this.onFireAction({issue:this.issue(),action:e})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-issue-action-renderer"]],decls:3,vars:0,consts:[[1,"tw-flex"],["type","button",1,"btn-reset","tw-flex","tw-flex-col","tw-items-center","tw-justify-center","tw-p-2","hover:tw-text-fa-orange-500"],["type","button",1,"btn-reset","tw-flex","tw-flex-col","tw-items-center","tw-justify-center","tw-p-2","hover:tw-text-fa-orange-500",3,"click"],[3,"className"],[1,"tw-leading-tight","tw-underline"]],template:function(i,o){1&i&&(n.j41(0,"div",0),n.Z7z(1,JEt,4,2,"button",1,n.Vm6),n.k0s()),2&i&&(n.R7$(),n.Dyx(o.actions()))},encapsulation:2})}}return t})(),eDt=(()=>{class t{constructor(){this.iconClass=(0,n.vPA)("pi pi-exclamation-circle")}agInit(e){if(e.data)switch(e.data.issueClass){case"DUPLICATE_DEFAULT_TAXONOMY_ITEM":this.iconClass.set("pi pi-sitemap");break;case"NS_WAREHOUSE_OFFER_DISCREPANCY":this.iconClass.set("pi pi-arrow-right-arrow-left")}}refresh(e){return!1}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["ng-component"]],decls:1,vars:2,template:function(i,o){1&i&&n.nrm(0,"i"),2&i&&n.HbH(o.iconClass())},encapsulation:2})}}return t})();function tDt(t,r){if(1&t&&(n.j41(0,"page-heading"),n.EFF(1),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.JRh(e.pageHeading())}}function nDt(t,r){if(1&t){const e=n.RV6();n.j41(0,"p-multiSelect",19),n.mxI("ngModelChange",function(o){n.eBV(e);const s=n.XpG();return n.DH7(s.selectedHandlers,o)||(s.selectedHandlers=o),n.Njj(o)}),n.k0s()}if(2&t){const e=n.XpG();n.Y8G("options",e.handlerTypes)("maxSelectedLabels",1),n.R50("ngModel",e.selectedHandlers)}}function iDt(t,r){if(1&t){const e=n.RV6();n.j41(0,"p-button",20),n.bIt("onClick",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.refreshIssues())}),n.k0s()}}let rDt=(()=>{class t{constructor(){this.issueQueueService=(0,n.WQX)(qEt),this.toasterService=(0,n.WQX)(tc),this.confirmationService=(0,n.WQX)(Kf),this.handlerTypes=Object.entries(KEt).map(([e,i])=>({id:e,details:i})),this.statusCodes=Object.entries(XEt).map(([e,i])=>({id:e,details:i})),this.availableHandlers=(0,n.hFB)(["TAXONOMY_ERRORS","MARKETPLACE_OFFER_NETSUITE_DISCREPANCY"]),this.selectedHandlers=(0,n.vPA)(["TAXONOMY_ERRORS","MARKETPLACE_OFFER_NETSUITE_DISCREPANCY"]),this.showRescanIssues=(0,n.hFB)(!0),this.pageHeading=(0,n.hFB)("Issue Administration"),this.gridOptions=(0,n.vPA)(null),this.selectedRows=(0,n.vPA)([]),this.issues=(0,n.vPA)([]),this.selectedStatusFilters=(0,n.vPA)(["OPEN"]),this.selectedBulkAction=(0,n.vPA)(null),this.availableBulkActions=(0,n.EWP)(()=>{const e=this.selectedRows();if(new Set(e.map(s=>s.handlerCode)).size>1)return[];if(new Set(e.map(s=>s.issueClass)).size>1)return[];if(new Set(e.map(s=>s.issueSubClass)).size>1)return[];if(new Set(e.map(s=>s.statusCode)).size>1)return[];const i=new Set(e.flatMap(s=>s.availableActions.map(a=>a.actionTypeCode))),o=[];for(const s of i){let a={displayName:s.replaceAll("_"," "),actionTypeCode:s};s in w6&&(a.displayName=w6[s].displayName),o.push(a)}return o}),this.filteredIssues=(0,n.EWP)(()=>{const e=this.selectedStatusFilters();return this.issues().filter(i=>e.includes(i.statusCode))})}ngOnInit(){this.initializeGridOptions(),this.loadIssues()}loadIssues(){this.selectedHandlers().length>0&&this.issueQueueService.getActiveIssues(this.selectedHandlers()).subscribe({next:e=>{this.issues.set(e),this.autoSizeAllColumns()}})}refreshIssues(){this.issueQueueService.refreshIssues().subscribe({next:()=>{this.loadIssues()},error:()=>{this.toasterService.displayErrorToast("Failed to Refresh Issues","Please contact an administrator")}})}fireAction(e){this.issueQueueService.executeIssueAction({issueIds:[e.issue.id],actionTypeCode:e.action.actionTypeCode,actionExecutionMetadata:{}}).subscribe({next:i=>{"ALL_EXECUTED"==i.outcomeCode&&this.toasterService.displaySuccessToast("Action Executed!",i.issueResults[0].outcomeDescription),"PARTIALLY_EXECUTED"==i.outcomeCode&&this.toasterService.displayInfoToast("Partially Executed!","Some issues were not able to be acted upon, but others completed. Check the list for more information."),"NONE_EXECUTED"==i.outcomeCode&&this.toasterService.displayErrorToast("Action Failed!","Issues failed to update. You may need to resolve the issue manually.");const o=i.issueResults.map(l=>l.issue),s=o.map(l=>l.id),a=this.issues().filter(l=>!s.includes(l.id));this.issues.set([...o,...a]),this.gridOptions().api?.applyTransaction({update:i.issueResults.map(l=>l.issue)}),this.gridOptions().api?.onFilterChanged()},error:i=>{this.toasterService.displayErrorToast("Action Failed",i.error.outcomeDescription)}})}confirmBulkAction(e){this.confirmationService.confirm({target:e.currentTarget,message:`Are you sure? This will apply '${this.selectedBulkAction()?.displayName}' to ${this.selectedRows().length} issues!`,icon:"pi pi-exclamation-triangle",rejectButtonProps:{label:"Nevermind",severity:"secondary",outlined:!0},acceptButtonProps:{label:"Continue"},accept:()=>{const i=this.selectedBulkAction().actionTypeCode;this.performBulkAction(i)},reject:()=>{}})}performBulkAction(e){this.issueQueueService.executeIssueAction({issueIds:this.selectedRows().map(i=>i.id),actionTypeCode:e,actionExecutionMetadata:{}}).subscribe({next:i=>{"ALL_EXECUTED"==i.outcomeCode&&this.toasterService.displaySuccessToast("Action Executed!","Everything completed successfully"),"PARTIALLY_EXECUTED"==i.outcomeCode&&this.toasterService.displayInfoToast("Partially Executed!","Some issues were not able to be acted upon, but others completed. Check the list for more information."),"NONE_EXECUTED"==i.outcomeCode&&this.toasterService.displayErrorToast("Action Failed!","Issues failed to update. You may need to resolve the issues manually.");const o=i.issueResults.map(l=>l.issue),s=o.map(l=>l.id),a=this.issues().filter(l=>!s.includes(l.id));this.issues.set([...o,...a]),this.gridOptions().api?.applyTransaction({update:i.issueResults.map(l=>l.issue)}),this.gridOptions().api?.onFilterChanged()},error:i=>{this.toasterService.displayErrorToast("Action Failed",i.error.outcomeDescription)}})}initializeGridOptions(){var i,e=this;this.gridOptions.set({columnDefs:[{headerName:"",headerCheckboxSelection:!0,colId:"checkbox",checkboxSelection:!0,resizable:!1,suppressColumnsToolPanel:!0,suppressMovable:!0,width:50,maxWidth:50,minWidth:50},{headerName:"",headerTooltip:"",maxWidth:70,cellRenderer:eDt},{headerName:"Status",headerTooltip:"Issue Status",field:"statusCode",minWidth:70},{headerName:"Class",headerTooltip:"Issue Class",field:"issueClass",minWidth:70,hide:!0},{headerName:"Sub-Class",headerTooltip:"Issue Sub Class",field:"issueSubClass",minWidth:70,hide:!0},{headerName:"Title",headerTooltip:"Issue Title",field:"issueTitle",minWidth:70},{headerName:"Description",headerTooltip:"Description",field:"issueDescription",minWidth:70},{headerName:"Details",headerTooltip:"Link for more information",cellRenderer:QEt},{headerName:"Actions",headerTooltip:"Available Actions",pinned:"right",maxWidth:250,minWidth:250,width:250,resizable:!1,suppressColumnsToolPanel:!0,suppressMovable:!0,cellRenderer:ZEt,cellRendererParams:{onFireAction:i=>{this.fireAction(i)}}}],defaultColDef:{flex:1,sortable:!0,resizable:!0,filter:!1},getRowId:i=>String(i.data.id),sideBar:{toolPanels:[{id:"columns",labelDefault:"Columns",labelKey:"columns",iconKey:"columns",toolPanel:"agColumnsToolPanel",toolPanelParams:{suppressColumnFilter:!0,suppressColumnSelectAll:!0,suppressPivotMode:!0,suppressRowGroups:!0,suppressValues:!0}}]},onGridReady:(i=(0,lr.A)(function*(o){e.autoSizeAllColumns()}),function(s){return i.apply(this,arguments)}),onSelectionChanged:i=>{this.selectedRows.set(this.gridOptions().api.getSelectedRows())},enableCellTextSelection:!0,rowSelection:"multiple"})}autoSizeAllColumns(){setTimeout(()=>{this.gridOptions()?.columnApi?.autoSizeAllColumns(!1)},0)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-issue-administration"]],inputs:{availableHandlers:[1,"availableHandlers"],showRescanIssues:[1,"showRescanIssues"],pageHeading:[1,"pageHeading"]},decls:26,vars:12,consts:[["bulkAction",""],[1,"tw-mb-4"],[1,"tw-flex","tw-w-full","tw-justify-between"],[1,""],[1,"tw-flex"],["label","Bulk Update","icon","pi pi-list-check",3,"click","disabled"],[1,"flex","flex-col","gap-4"],[1,"tw-mb-2","tw-font-bold"],[1,"tw-mb-4","tw-text-xs","tw-text-slate-500"],["optionLabel","displayName",3,"ngModelChange","ngModel","options"],[1,"tw-mt-2"],["label","Apply Action","variant","text","severity","danger",3,"onClick","disabled"],[1,"tw-flex","tw-justify-end"],[1,"tw-mr-2"],["optionLabel","details.displayName","optionValue","id","placeholder","Filter by Status","showHeader","false",3,"ngModelChange","ngModel","options"],["optionLabel","details.displayName","optionValue","id","placeholder","Select Handlers","showHeader","false",3,"options","maxSelectedLabels","ngModel"],["icon","pi pi-refresh","label","Refresh List",1,"tw-ml-2",3,"onClick","disabled"],["icon","pi pi-check-circle","label","Rescan For Issues","severity","secondary",1,"tw-ml-2"],[1,"ag-theme-faom",2,"width","100%","height","100%","min-height","400px",3,"rowData","gridOptions"],["optionLabel","details.displayName","optionValue","id","placeholder","Select Handlers","showHeader","false",3,"ngModelChange","options","maxSelectedLabels","ngModel"],["icon","pi pi-check-circle","label","Rescan For Issues","severity","secondary",1,"tw-ml-2",3,"onClick"]],template:function(i,o){if(1&i){const s=n.RV6();n.nrm(0,"p-confirmpopup"),n.DNE(1,tDt,2,1,"page-heading"),n.j41(2,"div",1)(3,"p-toolbar")(4,"div",2)(5,"div",3)(6,"div",4)(7,"p-button",5),n.bIt("click",function(l){n.eBV(s);const c=n.sdS(9);return n.Njj(c.toggle(l))}),n.k0s(),n.j41(8,"p-popover",null,0)(10,"div",6)(11,"div")(12,"div",7),n.EFF(13,"Apply Bulk Action"),n.k0s(),n.j41(14,"div",8),n.EFF(15," This will attempt to apply the chosen action to all of the selected issues. "),n.k0s(),n.j41(16,"p-dropdown",9),n.mxI("ngModelChange",function(l){return n.eBV(s),n.DH7(o.selectedBulkAction,l)||(o.selectedBulkAction=l),n.Njj(l)}),n.k0s(),n.j41(17,"div",10)(18,"p-button",11),n.bIt("onClick",function(l){return n.eBV(s),n.Njj(o.confirmBulkAction(l))}),n.k0s()()()()()()(),n.j41(19,"div",12)(20,"div",13)(21,"p-multiSelect",14),n.mxI("ngModelChange",function(l){return n.eBV(s),n.DH7(o.selectedStatusFilters,l)||(o.selectedStatusFilters=l),n.Njj(l)}),n.k0s()(),n.DNE(22,nDt,1,3,"p-multiSelect",15),n.j41(23,"p-button",16),n.bIt("onClick",function(){return n.eBV(s),n.Njj(o.loadIssues())}),n.k0s(),n.DNE(24,iDt,1,0,"p-button",17),n.k0s()()()(),n.nrm(25,"ag-grid-angular",18)}2&i&&(n.R7$(),n.vxM(o.pageHeading()?1:-1),n.R7$(6),n.Y8G("disabled",0==o.availableBulkActions().length),n.R7$(9),n.R50("ngModel",o.selectedBulkAction),n.Y8G("options",o.availableBulkActions()),n.R7$(2),n.Y8G("disabled",null==o.selectedBulkAction()),n.R7$(3),n.R50("ngModel",o.selectedStatusFilters),n.Y8G("options",o.statusCodes),n.R7$(),n.vxM(o.handlerTypes.length>1?22:-1),n.R7$(),n.Y8G("disabled",0==o.selectedHandlers().length),n.R7$(),n.vxM(o.showRescanIssues()?24:-1),n.R7$(),n.Y8G("rowData",o.filteredIssues())("gridOptions",o.gridOptions()))},dependencies:[Ra,_o,ko,zEt,zpe,mf,Rp,d2,Hb,DF,p8,CI,OEt,Ype,K_,kv,C6,gP],encapsulation:2})}}return t})();const oDt=({dt:t})=>`\n.p-iftalabel {\n    display: block;\n    position: relative;\n}\n\n.p-iftalabel label {\n    position: absolute;\n    pointer-events: none;\n    top: ${t("iftalabel.top")};\n    transition-property: all;\n    transition-timing-function: ease;\n    line-height: 1;\n    font-size: ${t("iftalabel.font.size")};\n    font-weight: ${t("iftalabel.font.weight")};\n    inset-inline-start: ${t("iftalabel.position.x")};\n    color: ${t("iftalabel.color")};\n    transition-duration: ${t("iftalabel.transition.duration")};\n}\n\n.p-iftalabel .p-inputtext,\n.p-iftalabel .p-textarea,\n.p-iftalabel .p-select-label,\n.p-iftalabel .p-multiselect-label-container,\n.p-iftalabel .p-autocomplete-input-multiple,\n.p-iftalabel .p-cascadeselect-label,\n.p-iftalabel .p-treeselect-label {\n    padding-top: ${t("iftalabel.input.padding.top")};\n}\n\n.p-iftalabel:has(.ng-invalid.ng-dirty) label {\n    color: ${t("iftalabel.invalid.color")};\n}\n\n.p-iftalabel:has(input:focus) label,\n.p-iftalabel:has(input:-webkit-autofill) label,\n.p-iftalabel:has(textarea:focus) label,\n.p-iftalabel:has(.p-inputwrapper-focus) label {\n    color: ${t("iftalabel.focus.color")};\n}\n\n.p-iftalabel .p-inputicon {\n    top: ${t("iftalabel.input.padding.top")};\n    transform: translateY(25%);\n    margin-top: 0;\n}\n\n/*.p-iftalabel .p-placeholder,\n.p-iftalabel input::placeholder,\n.p-iftalabel .p-inputtext::placeholder {\n    opacity: 0;\n    transition-property: all;\n    transition-timing-function: ease;\n}\n\n.p-iftalabel .p-focus .p-placeholder,\n.p-iftalabel input:focus::placeholder,\n.p-iftalabel .p-inputtext:focus::placeholder {\n    opacity: 1;\n    transition-property: all;\n    transition-timing-function: ease;\n}*/\n`,sDt={root:"p-iftalabel"};let qpe=(()=>{class t extends gs{name="iftalabel";theme=oDt;classes=sDt;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const lDt=["*"];let Xpe=(()=>{class t extends jo{_componentStyle=(0,n.WQX)(qpe);static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["p-iftalabel"],["p-iftaLabel"],["p-ifta-label"]],hostAttrs:[1,"p-iftalabel"],features:[n.Jv_([qpe]),n.Vt3],ngContentSelectors:lDt,decls:1,vars:0,template:function(i,o){1&i&&(n.NAR(),n.SdG(0))},encapsulation:2,changeDetection:0})}return t})(),Kpe=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({imports:[gn,Di,AO,Di]})}return t})();const cDt=({dt:t})=>`\n.p-inputgroup,\n.p-inputgroup .p-floatlabel,\n.p-inputgroup .p-iftalabel {\n    display: flex;\n    align-items: stretch;\n    width: 100%;\n}\n\n.p-inputgroup .p-inputtext,\n.p-inputgroup .p-inputwrapper {\n    flex: 1 1 auto;\n    width: 1%;\n}\n\n.p-inputgroupaddon {\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    padding: ${t("inputgroup.addon.padding")};\n    background: ${t("inputgroup.addon.background")};\n    color: ${t("inputgroup.addon.color")};\n    border-block-start: 1px solid ${t("inputgroup.addon.border.color")};\n    border-block-end: 1px solid ${t("inputgroup.addon.border.color")};\n    min-width: ${t("inputgroup.addon.min.width")};\n}\n\n.p-inputgroupaddon:first-child,\n.p-inputgroupaddon + .p-inputgroupaddon {\n    border-inline-start: 1px solid ${t("inputgroup.addon.border.color")};\n}\n\n.p-inputgroupaddon:last-child {\n    border-inline-end: 1px solid ${t("inputgroup.addon.border.color")};\n}\n\n.p-inputgroupaddon:has(.p-button) {\n    padding: 0;\n    overflow: hidden;\n}\n\n.p-inputgroupaddon .p-button {\n    border-radius: 0;\n}\n\n.p-inputgroup > .p-component,\n.p-inputgroup > .p-inputwrapper > .p-component,\n.p-inputgroup:first-child > p-button > .p-button,\n.p-inputgroup > .p-floatlabel > .p-component,\n.p-inputgroup > .p-floatlabel > .p-inputwrapper > .p-component,\n.p-inputgroup > .p-iftalabel > .p-component,\n.p-inputgroup > .p-iftalabel > .p-inputwrapper > .p-component {\n    border-radius: 0;\n    margin: 0;\n}\n\n.p-inputgroupaddon:first-child,\n.p-inputgroup > .p-component:first-child,\n.p-inputgroup > .p-inputwrapper:first-child > .p-component,\n.p-inputgroup > .p-floatlabel:first-child > .p-component,\n.p-inputgroup > .p-floatlabel:first-child > .p-inputwrapper > .p-component,\n.p-inputgroup > .p-iftalabel:first-child > .p-component,\n.p-inputgroup > .p-iftalabel:first-child > .p-inputwrapper > .p-component {\n    border-start-start-radius: ${t("inputgroup.addon.border.radius")};\n    border-end-start-radius: ${t("inputgroup.addon.border.radius")};\n}\n\n.p-inputgroupaddon:last-child,\n.p-inputgroup > .p-component:last-child,\n.p-inputgroup > .p-inputwrapper:last-child > .p-component,\n.p-inputgroup > .p-floatlabel:last-child > .p-component,\n.p-inputgroup > .p-floatlabel:last-child > .p-inputwrapper > .p-component,\n.p-inputgroup > .p-iftalabel:last-child > .p-component,\n.p-inputgroup > .p-iftalabel:last-child > .p-inputwrapper > .p-component {\n    border-start-end-radius: ${t("inputgroup.addon.border.radius")};\n    border-end-end-radius: ${t("inputgroup.addon.border.radius")};\n}\n\n.p-inputgroup .p-component:focus,\n.p-inputgroup .p-component.p-focus,\n.p-inputgroup .p-inputwrapper-focus,\n.p-inputgroup .p-component:focus ~ label,\n.p-inputgroup .p-component.p-focus ~ label,\n.p-inputgroup .p-inputwrapper-focus ~ label {\n    z-index: 1;\n}\n\n.p-inputgroup > .p-button:not(.p-button-icon-only) {\n    width: auto;\n}\n\n/*For PrimeNG*/\n\n.p-inputgroup p-button:first-child, .p-inputgroup p-button:last-child {\n    display: inline-flex;\n}\n\n.p-inputgroup:has(> p-button:first-child) .p-button{\n    border-start-start-radius: ${t("inputgroup.addon.border.radius")};\n    border-end-start-radius: ${t("inputgroup.addon.border.radius")};\n}\n\n.p-inputgroup:has(> p-button:last-child) .p-button {\n    border-start-end-radius: ${t("inputgroup.addon.border.radius")};\n    border-end-end-radius: ${t("inputgroup.addon.border.radius")};\n}\n`,uDt={root:({props:t})=>["p-inputgroup",{"p-inputgroup-fluid":t.fluid}]};let Qpe=(()=>{class t extends gs{name="inputgroup";theme=cDt;classes=uDt;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const pDt=["*"];let T6=(()=>{class t extends jo{style;styleClass;_componentStyle=(0,n.WQX)(Qpe);static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["p-inputgroup"],["p-inputGroup"],["p-input-group"]],hostAttrs:[1,"p-inputgroup"],hostVars:5,hostBindings:function(i,o){2&i&&(n.BMQ("data-pc-name","inputgroup"),n.Aen(o.style),n.HbH(o.styleClass))},inputs:{style:"style",styleClass:"styleClass"},features:[n.Jv_([Qpe]),n.Vt3],ngContentSelectors:pDt,decls:1,vars:0,template:function(i,o){1&i&&(n.NAR(),n.SdG(0))},dependencies:[gn,Di],encapsulation:2})}return t})(),Jpe=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({imports:[T6,Di,Di]})}return t})();const hDt={root:"p-inputgroupaddon"};let Zpe=(()=>{class t extends gs{name="inputgroupaddon";classes=hDt;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const fDt=["*"];let S6=(()=>{class t extends jo{style;styleClass;_componentStyle=(0,n.WQX)(Zpe);get hostStyle(){return this.style}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["p-inputgroup-addon"],["p-inputGroupAddon"]],hostVars:7,hostBindings:function(i,o){2&i&&(n.BMQ("data-pc-name","inputgroupaddon"),n.Aen(o.hostStyle),n.HbH(o.styleClass),n.AVh("p-inputgroupaddon",!0))},inputs:{style:"style",styleClass:"styleClass"},features:[n.Jv_([Zpe]),n.Vt3],ngContentSelectors:fDt,decls:1,vars:0,template:function(i,o){1&i&&(n.NAR(),n.SdG(0))},dependencies:[gn],encapsulation:2})}return t})(),ehe=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({imports:[S6,Di,Di]})}return t})();const mDt=({dt:t})=>`\n.p-textarea {\n    font-family: inherit;\n    font-feature-settings: inherit;\n    font-size: 1rem;\n    color: ${t("textarea.color")};\n    background: ${t("textarea.background")};\n    padding: ${t("textarea.padding.y")} ${t("textarea.padding.x")};\n    border: 1px solid ${t("textarea.border.color")};\n    transition: background ${t("textarea.transition.duration")}, color ${t("textarea.transition.duration")}, border-color ${t("textarea.transition.duration")}, outline-color ${t("textarea.transition.duration")}, box-shadow ${t("textarea.transition.duration")};\n    appearance: none;\n    border-radius: ${t("textarea.border.radius")};\n    outline-color: transparent;\n    box-shadow: ${t("textarea.shadow")};\n}\n\n.p-textarea.ng-invalid.ng-dirty {\n    border-color: ${t("textarea.invalid.border.color")}\n};\n\n.p-textarea:enabled:hover {\n    border-color: ${t("textarea.hover.border.color")};\n}\n\n.p-textarea:enabled:focus {\n    border-color: ${t("textarea.focus.border.color")};\n    box-shadow: ${t("textarea.focus.ring.shadow")};\n    outline: ${t("textarea.focus.ring.width")} ${t("textarea.focus.ring.style")} ${t("textarea.focus.ring.color")};\n    outline-offset: ${t("textarea.focus.ring.offset")};\n}\n\n.p-textarea.p-invalid {\n    border-color: ${t("textarea.invalid.border.color")};\n}\n\n.p-textarea.p-variant-filled {\n    background: ${t("textarea.filled.background")};\n}\n\n.p-textarea.p-variant-filled:enabled:focus {\n    background: ${t("textarea.filled.focus.background")};\n}\n\n.p-textarea:disabled {\n    opacity: 1;\n    background: ${t("textarea.disabled.background")};\n    color: ${t("textarea.disabled.color")};\n}\n\n.p-textarea::placeholder {\n    color: ${t("textarea.placeholder.color")};\n}\n\n.p-textarea.ng-invalid.ng-dirty::placeholder {\n    color: ${t("textarea.invalid.placeholder.color")};\n}\n\n.p-textarea-fluid {\n    width: 100%;\n}\n\n.p-textarea-resizable {\n    overflow: hidden;\n    resize: none;\n}\n\n.p-textarea-sm {\n    font-size: ${t("textarea.sm.font.size")};\n    padding-block: ${t("textarea.sm.padding.y")};\n    padding-inline: ${t("textarea.sm.padding.x")};\n}\n\n.p-textarea-lg {\n    font-size: ${t("textarea.lg.font.size")};\n    padding-block: ${t("textarea.lg.padding.y")};\n    padding-inline: ${t("textarea.lg.padding.x")};\n}\n`,gDt={root:({instance:t,props:r})=>["p-textarea p-component",{"p-filled":t.filled,"p-textarea-resizable ":r.autoResize,"p-invalid":r.invalid,"p-variant-filled":r.variant?"filled"===r.variant:"filled"===t.config.inputStyle||"filled"===t.config.inputVariant,"p-textarea-fluid":r.fluid}]};let the=(()=>{class t extends gs{name="textarea";theme=mDt;classes=gDt;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})(),_Dt=(()=>{class t extends jo{ngModel;control;autoResize;variant="outlined";fluid=!1;pSize;onResize=new n.bkB;filled;cachedScrollHeight;ngModelSubscription;ngControlSubscription;_componentStyle=(0,n.WQX)(the);constructor(e,i){super(),this.ngModel=e,this.control=i}ngOnInit(){super.ngOnInit(),this.ngModel&&(this.ngModelSubscription=this.ngModel.valueChanges.subscribe(()=>{this.updateState()})),this.control&&(this.ngControlSubscription=this.control.valueChanges.subscribe(()=>{this.updateState()}))}get hasFluid(){const i=this.el.nativeElement.closest("p-fluid");return this.fluid||!!i}ngAfterViewInit(){super.ngAfterViewInit(),this.autoResize&&this.resize(),this.updateFilledState(),this.cd.detectChanges()}onInput(e){this.updateState()}updateFilledState(){this.filled=this.el.nativeElement.value&&this.el.nativeElement.value.length}resize(e){this.el.nativeElement.style.height="auto",this.el.nativeElement.style.height=this.el.nativeElement.scrollHeight+"px",parseFloat(this.el.nativeElement.style.height)>=parseFloat(this.el.nativeElement.style.maxHeight)?(this.el.nativeElement.style.overflowY="scroll",this.el.nativeElement.style.height=this.el.nativeElement.style.maxHeight):this.el.nativeElement.style.overflow="hidden",this.onResize.emit(e||{})}updateState(){this.updateFilledState(),this.autoResize&&this.resize()}ngOnDestroy(){this.ngModelSubscription&&this.ngModelSubscription.unsubscribe(),this.ngControlSubscription&&this.ngControlSubscription.unsubscribe(),super.ngOnDestroy()}static \u0275fac=function(i){return new(i||t)(n.rXU(ko,8),n.rXU(mg,8))};static \u0275dir=n.FsC({type:t,selectors:[["","pTextarea",""]],hostAttrs:[1,"p-textarea","p-component"],hostVars:16,hostBindings:function(i,o){1&i&&n.bIt("input",function(a){return o.onInput(a)}),2&i&&n.AVh("p-filled",o.filled)("p-textarea-resizable",o.autoResize)("p-variant-filled","filled"===o.variant||"filled"===o.config.inputStyle()||"filled"===o.config.inputVariant())("p-textarea-fluid",o.hasFluid)("p-textarea-sm","small"===o.pSize)("p-inputfield-sm","small"===o.pSize)("p-textarea-lg","large"===o.pSize)("p-inputfield-lg","large"===o.pSize)},inputs:{autoResize:[2,"autoResize","autoResize",n.L39],variant:"variant",fluid:[2,"fluid","fluid",n.L39],pSize:"pSize"},outputs:{onResize:"onResize"},features:[n.Jv_([the]),n.GFd,n.Vt3]})}return t})(),yDt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({})}return t})();class bDt{static minimumArrayLength(r){return e=>e.value instanceof Array&&!e.value.length?{minimumArrayLength:r}:null}}function CDt(t,r){if(1&t&&(n.j41(0,"span",4),n.EFF(1),n.k0s()),2&t){const e=n.XpG().$implicit;n.R7$(),n.JRh(e.name)}}function wDt(t,r){1&t&&(n.j41(0,"span",5),n.nrm(1,"i",6),n.k0s())}function TDt(t,r){if(1&t&&(n.j41(0,"span",7),n.EFF(1),n.k0s()),2&t){const e=n.XpG(2).$implicit;n.R7$(),n.JRh(e.addressLine2)}}function SDt(t,r){if(1&t&&(n.j41(0,"div")(1,"span"),n.EFF(2),n.k0s(),n.DNE(3,TDt,2,1,"span",7),n.k0s(),n.j41(4,"span"),n.EFF(5),n.k0s()),2&t){const e=n.XpG().$implicit;n.R7$(2),n.SpI(" ",e.addressLine1," "),n.R7$(),n.vxM(e.addressLine2?3:-1),n.R7$(2),n.E5c(" ",e.city,", ",e.province," ",e.postalCode," ")}}function xDt(t,r){if(1&t&&(n.j41(0,"div")(1,"div"),n.DNE(2,CDt,2,1,"span",4)(3,wDt,2,0,"span",5),n.k0s(),n.DNE(4,SDt,6,5),n.k0s()),2&t){const e=r.$implicit,i=n.XpG();n.R7$(2),n.vxM(i.showName()?2:-1),n.R7$(),n.vxM(i.showIsPrimaryLocation()&&null!=e.internalDetail&&null!=e.internalDetail.internalAttributes&&e.internalDetail.internalAttributes.isPrimaryLocation?3:-1),n.R7$(),n.vxM(i.showAddress()?4:-1)}}let x6=(()=>{class t{constructor(){this.entitySummaries=n.hFB.required(),this.selectedEntitySummaries=(0,n.geq)(null),this.showName=(0,n.hFB)(!0),this.showAddress=(0,n.hFB)(!1),this.showIsPrimaryLocation=(0,n.hFB)(!1),this.required=(0,n.hFB)(!1),this.disabled=(0,n.hFB)(!1),this.placeholder=(0,n.hFB)(""),this.multiselect=(0,n.hFB)(!1),this.showClear=(0,n.hFB)(!0),this.appendTo=(0,n.hFB)(void 0),this.onClear=(0,n.CGW)(),this.optionLabel=(0,n.EWP)(()=>this.showName()?"name":this.showAddress()?"addressLine1":"name"),this.itemHeight=(0,n.EWP)(()=>{let e=0;return this.showName()&&(e+=40),this.showAddress()&&(e+=40),e}),this.onSingleItemSelected=(0,n.CGW)(),this.onMultiSelectionsChanged=(0,n.CGW)(),this.filteredItems=(0,n.vPA)([]),this.searchIndex=null,this.addressSearchKeys=[{name:"name",weight:.5},{name:"addressLine1",weight:.2},{name:"city",weight:.1},{name:"postalCode",weight:.1},{name:"province",weight:.1}],this.nameSearchKeys=[{name:"name",weight:.8}],this.onChange=()=>{},this.onTouched=()=>{}}filterItems(e){if(!e||!e.query)return void this.filteredItems.set([...this.entitySummaries()]);this.searchIndex||this.buildSearchIndex();let i=this.searchIndex?.search(e.query);this.filteredItems.set(i?i.map(o=>o.item):[])}buildSearchIndex(){this.searchIndex=new tC(this.entitySummaries(),{keys:this.showAddress()?this.addressSearchKeys:this.nameSearchKeys,isCaseSensitive:!1,shouldSort:!0,threshold:.3})}selectItem(e){this.fireItemChanges()}clearSelectedItem(){this.fireItemChanges(),this.onClear.emit()}verifySelectedItem(){this.selectedEntitySummaries()||(this.multiselect()?this.onMultiSelectionsChanged.emit(null):this.onSingleItemSelected.emit(null),this.onTouched())}fireItemChanges(){null!=this.selectedEntitySummaries()&&(this.multiselect()?this.onMultiSelectionsChanged.emit(this.selectedEntitySummaries()):this.onSingleItemSelected.emit(this.selectedEntitySummaries())),this.onChange(this.selectedEntitySummaries())}ngOnInit(){this.filteredItems.set([...this.entitySummaries()]),this.overlayOptions={listener:(e,i)=>"scroll"!==i?.type&&(i?.valid??!0)}}ngOnChanges(e){this.filteredItems.set([...this.entitySummaries()]),this.buildSearchIndex()}writeValue(e){this.selectedEntitySummaries.set(e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-entity-summary-selection"]],inputs:{entitySummaries:[1,"entitySummaries"],selectedEntitySummaries:[1,"selectedEntitySummaries"],showName:[1,"showName"],showAddress:[1,"showAddress"],showIsPrimaryLocation:[1,"showIsPrimaryLocation"],required:[1,"required"],disabled:[1,"disabled"],placeholder:[1,"placeholder"],multiselect:[1,"multiselect"],showClear:[1,"showClear"],appendTo:[1,"appendTo"]},outputs:{selectedEntitySummaries:"selectedEntitySummariesChange",onClear:"onClear",onSingleItemSelected:"onSingleItemSelected",onMultiSelectionsChanged:"onMultiSelectionsChanged"},features:[n.Jv_([{provide:tl,useExisting:t,multi:!0}]),n.OA$],decls:8,vars:16,consts:[["item",""],[1,"tw-block","tw-w-full","tw-max-w-full",3,"ngModelChange","completeMethod","onSelect","onUnselect","onClear","onBlur","ngModel","dropdown","optionLabel","suggestions","virtualScroll","virtualScrollItemSize","showClear","forceSelection","required","disabled","multiple","inputStyleClass","overlayOptions","appendTo"],["for",""],[1,"tw-text-red-500"],[1,"tw-font-semibold"],[1,"tw-ml-1"],["title","Primary Location",1,"pi","pi-check-circle","tw-text-green-500"],[1,"ml-2"]],template:function(i,o){if(1&i){const s=n.RV6();n.j41(0,"p-floatlabel")(1,"p-autocomplete",1),n.mxI("ngModelChange",function(l){return n.eBV(s),n.DH7(o.selectedEntitySummaries,l)||(o.selectedEntitySummaries=l),n.Njj(l)}),n.bIt("completeMethod",function(l){return n.eBV(s),n.Njj(o.filterItems(l))})("onSelect",function(l){return n.eBV(s),n.Njj(o.selectItem(l))})("onUnselect",function(){return n.eBV(s),n.Njj(o.clearSelectedItem())})("onClear",function(){return n.eBV(s),n.Njj(o.clearSelectedItem())})("onBlur",function(){return n.eBV(s),n.Njj(o.verifySelectedItem())}),n.DNE(2,xDt,5,3,"ng-template",null,0,n.C5r),n.k0s(),n.j41(4,"label",2),n.EFF(5),n.j41(6,"span",3),n.EFF(7),n.k0s()()()}2&i&&(n.R7$(),n.R50("ngModel",o.selectedEntitySummaries),n.Y8G("dropdown",!0)("optionLabel",o.optionLabel())("suggestions",o.filteredItems())("virtualScroll",!0)("virtualScrollItemSize",o.itemHeight())("showClear",o.showClear())("forceSelection",!0)("required",o.required())("disabled",o.disabled())("multiple",o.multiselect())("inputStyleClass",o.multiselect()?"":"prime-input")("overlayOptions",o.overlayOptions)("appendTo",o.appendTo()),n.R7$(4),n.SpI("",o.placeholder()," "),n.R7$(2),n.JRh(o.required()?"*":""))},dependencies:[$w,Ib,gn,Ra,_o,Sv,ko,om],encapsulation:2})}}return t})();function EDt(t,r){if(1&t){const e=n.RV6();n.j41(0,"p-button",17),n.bIt("onClick",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.remove())}),n.k0s()}2&t&&n.Y8G("text",!0)}function DDt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",5)(1,"p-inputgroup")(2,"p-inputgroup-addon"),n.nrm(3,"i",18),n.k0s(),n.j41(4,"p-floatlabel")(5,"p-inputnumber",19),n.bIt("onFocus",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.selectControlText(o))}),n.k0s(),n.j41(6,"label",20),n.EFF(7),n.k0s()()()(),n.j41(8,"div",5)(9,"p-inputgroup")(10,"p-inputgroup-addon"),n.nrm(11,"i",18),n.k0s(),n.j41(12,"p-floatlabel")(13,"p-inputnumber",21),n.bIt("onFocus",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.selectControlText(o))}),n.k0s(),n.j41(14,"label",22),n.EFF(15),n.k0s()()()()}if(2&t){const e=n.XpG();n.R7$(5),n.Y8G("min",0)("step",1)("minFractionDigits",2)("maxFractionDigits",8)("formControl",e.modificationFormGroup.controls.unitCost),n.R7$(2),n.SpI("",e.purchaseUnit()," Cost"),n.R7$(6),n.Y8G("min",0)("step",.1)("minFractionDigits",2)("maxFractionDigits",8)("formControl",e.modificationFormGroup.controls.displayUnitCost),n.R7$(2),n.SpI("",e.displayUnit()," Cost")}}function kDt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",4)(1,"p-floatlabel")(2,"p-inputgroup")(3,"p-inputgroup-addon"),n.nrm(4,"i",18),n.k0s(),n.j41(5,"p-inputnumber",23),n.bIt("onFocus",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.selectControlText(o))}),n.k0s(),n.j41(6,"label",24),n.EFF(7,"Cost Per Pound"),n.k0s()()()()}if(2&t){const e=n.XpG();n.R7$(5),n.Y8G("min",0)("step",.01)("minFractionDigits",2)("maxFractionDigits",8)("formControl",e.modificationFormGroup.controls.costPerPound)}}function IDt(t,r){if(1&t&&(n.j41(0,"div",16)(1,"p-message")(2,"span",25),n.EFF(3),n.k0s()()()),2&t){const e=n.XpG();n.R7$(3),n.SpI(" ",e.summary()," ")}}let ADt=(()=>{class t{constructor(){this.confirmationService=(0,n.WQX)(Kf),this.cost=n.hFB.required(),this.costTypeKey=n.hFB.required(),this.purchasingEntities=n.hFB.required(),this.applyToEntities=n.hFB.required(),this.costModification=n.hFB.required(),this.startTimeUTC=(0,n.hFB)(null),this.endTimeUTC=(0,n.hFB)(null),this.costApplyTo=n.hFB.required(),this.purchaseUnit=n.hFB.required(),this.displayUnit=n.hFB.required(),this.casesPerPallet=n.hFB.required(),this.unitsPerCase=n.hFB.required(),this.onUpdate=(0,n.CGW)(),this.onRemove=(0,n.CGW)(),this.modificationFormGroup=new Sb({startDate:new fs(null),endDate:new fs(null),unitCost:new fs(null),displayUnitCost:new fs(null),costPerPound:new fs(null),modifiedPercent:new fs({value:1,disabled:!0},Ls.required),applyToEntities:new fs([])}),this.summary=(0,n.vPA)(""),this.selectedStartDate=(0,n.vPA)(null),this.selectedEndDate=(0,n.vPA)(null),this.minStartDate=(0,n.vPA)(null),this.minEndDate=(0,n.vPA)(null),this.formSubscriptions=[],this.displayCost=(0,n.EWP)(()=>"WEIGHT"===this.costApplyTo()?this.cost():"Case"===this.displayUnit()?this.cost()/this.casesPerPallet():"Unit"===this.displayUnit()?this.cost()/this.casesPerPallet()/this.unitsPerCase():this.cost())}refreshSummary(){const e="QUANTITY"===this.costApplyTo()?this.modificationFormGroup.controls.unitCost.value:this.modificationFormGroup.controls.costPerPound.value;if(null===e)return void this.summary.set("");let i=`The $${this.cost()} cost ${"QUANTITY"===this.costApplyTo()?`per ${this.purchaseUnit().toLowerCase()}`:"per pound"} will be ${e<this.cost()?"reduced":"increased"} to $${e.toFixed(2)}`;this.selectedStartDate()&&(i+=` from ${el()(this.selectedStartDate()).format("YYYY-MM-DD")}`,this.selectedEndDate()&&(i+=` through ${el()(this.selectedEndDate()).format("YYYY-MM-DD")}`)),this.applyToEntities().length&&(i+=` for ${this.applyToEntities().map(o=>o.name).join(", ")} `),i+=". Note that other modifications may impact this price.",this.summary.set(i)}ngOnInit(){this.startTimeUTC()?(this.minStartDate.set(new Date(this.startTimeUTC())),this.modificationFormGroup.controls.startDate.setValue(new Date(this.startTimeUTC()))):this.minStartDate.set(this.getStartOfDay(new Date)),this.endTimeUTC()?(this.minEndDate.set(new Date(this.endTimeUTC())),this.modificationFormGroup.controls.endDate.setValue(new Date(this.endTimeUTC()))):this.minEndDate.set(this.getEndOfDay(new Date));let e=this.costModification();switch(this.costApplyTo()){case"QUANTITY":this.modificationFormGroup.controls.unitCost.setValue(null!=e&&"number"==typeof e&&e>0?this.calculateCost(this.calculateDiscountPercent(this.costModification())):this.cost()),this.modificationFormGroup.controls.displayUnitCost.setValue(this.calculateDisplayCost());break;case"WEIGHT":this.modificationFormGroup.controls.costPerPound.setValue(null!=e&&"number"==typeof e&&e>0?this.calculateCost(this.calculateDiscountPercent(this.costModification())):this.cost())}this.modificationFormGroup.controls.modifiedPercent.setValue(this.calculateDiscountPercent(this.costModification())),this.modificationFormGroup.controls.applyToEntities.setValue(this.applyToEntities()),this.formSubscriptions.push(this.modificationFormGroup.controls.startDate.valueChanges.subscribe({next:i=>{this.selectedStartDate.set(i),i?(this.minEndDate.set(this.getEndOfDay(i)),this.modificationFormGroup.controls.endDate.value&&this.modificationFormGroup.controls.endDate.value<i&&this.modificationFormGroup.controls.endDate.setValue(null)):this.modificationFormGroup.controls.endDate.setValue(null)}})),this.formSubscriptions.push(this.modificationFormGroup.controls.endDate.valueChanges.subscribe({next:i=>{this.selectedEndDate.set(i)}})),"QUANTITY"===this.costApplyTo()&&(this.formSubscriptions.push(this.modificationFormGroup.controls.unitCost.valueChanges.subscribe({next:i=>{null!==i?(this.modificationFormGroup.controls.modifiedPercent.setValue(this.calculatePercentModifiedAtCost(i),{emitEvent:!1}),this.modificationFormGroup.controls.displayUnitCost.setValue(this.calculateDisplayCost(),{emitEvent:!1})):this.modificationFormGroup.controls.unitCost.setValue(0,{emitEvent:!1})}})),this.formSubscriptions.push(this.modificationFormGroup.controls.displayUnitCost.valueChanges.subscribe({next:i=>{if(null!==i){let o=this.cost();"Unit"===this.displayUnit()&&(o=i),"Case"===this.displayUnit()&&(o=i*this.casesPerPallet()),this.modificationFormGroup.controls.unitCost.setValue(o,{emitEvent:!1}),this.modificationFormGroup.controls.modifiedPercent.setValue(this.calculatePercentModifiedAtCost(o),{emitEvent:!1})}else this.modificationFormGroup.controls.displayUnitCost.setValue(0,{emitEvent:!1})}}))),"WEIGHT"===this.costApplyTo()&&this.formSubscriptions.push(this.modificationFormGroup.controls.costPerPound.valueChanges.subscribe({next:i=>{null!==i?this.modificationFormGroup.controls.modifiedPercent.setValue(this.calculatePercentModifiedAtCost(i),{emitEvent:!1}):this.modificationFormGroup.controls.costPerPound.setValue(0,{emitEvent:!1})}})),this.formSubscriptions.push(this.modificationFormGroup.valueChanges.subscribe({next:()=>{this.onUpdate.emit({startTimeUTC:this.modificationFormGroup.controls.startDate.value?this.getStartOfDay(this.modificationFormGroup.controls.startDate.value).getTime():null,endTimeUTC:this.modificationFormGroup.controls.endDate.value?this.getEndOfDay(this.modificationFormGroup.controls.endDate.value).getTime():null,applyToEntities:this.modificationFormGroup.controls.applyToEntities.value,costModification:this.calculateCostModification(this.modificationFormGroup.controls.modifiedPercent.value)}),this.refreshSummary()}})),this.refreshSummary()}ngOnDestroy(){this.formSubscriptions.forEach(e=>e.unsubscribe())}calculateCost(e){let i=this.cost()*this.calculateCostModification(e);return this.roundToDecimalPlaces(i,8)}calculateDiscountPercent(e){return 100*e}calculateCostModification(e){return e?e/100:1}calculatePercentModifiedAtCost(e){return e>0?e/this.cost()*100:0}calculateDisplayCost(){let e=0,i=this.modificationFormGroup.controls.unitCost.value;return"Pallet"===this.displayUnit()&&i&&(e=i),"Case"===this.displayUnit()&&i&&this.casesPerPallet()&&(e=i/this.casesPerPallet()),"Unit"===this.displayUnit()&&i&&this.casesPerPallet()&&this.unitsPerCase()&&(e=i/this.casesPerPallet()/this.unitsPerCase()),e}selectControlText(e){let i=e.target;i&&i.value&&i.select()}remove(){this.confirmationService.confirm({message:"Do you want to remove this cost modification?",header:"Remove Cost Modification",icon:"pi pi-exclamation-triangle",accept:()=>{this.onRemove.emit()},rejectButtonProps:{severity:"secondary"}})}roundToDecimalPlaces(e,i){let o=Math.pow(10,i);return Math.floor(e*o)/o}getStartOfDay(e){return el()(e).startOf("day").toDate()}getEndOfDay(e){return el()(e).endOf("day").toDate()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-item-cost-modification"]],inputs:{cost:[1,"cost"],costTypeKey:[1,"costTypeKey"],purchasingEntities:[1,"purchasingEntities"],applyToEntities:[1,"applyToEntities"],costModification:[1,"costModification"],startTimeUTC:[1,"startTimeUTC"],endTimeUTC:[1,"endTimeUTC"],costApplyTo:[1,"costApplyTo"],purchaseUnit:[1,"purchaseUnit"],displayUnit:[1,"displayUnit"],casesPerPallet:[1,"casesPerPallet"],unitsPerCase:[1,"unitsPerCase"]},outputs:{onUpdate:"onUpdate",onRemove:"onRemove"},decls:30,vars:25,consts:[["icons",""],[1,"tw-mt-2","tw-block","tw-py-6",3,"header"],[1,"tw-mt-6","tw-flex","tw-flex-wrap","tw-gap-y-8",3,"formGroup"],[1,"tw-w-full","tw-font-bold","tw-italic"],[1,"tw-w-full","tw-px-2","lg:tw-w-1/2"],[1,"tw-w-full","tw-px-2","lg:tw-w-1/3"],["suffix","%","mode","decimal","id","modification","autocomplete","off",1,"w-full",3,"onFocus","min","max","minFractionDigits","maxFractionDigits","formControl"],["for","modification"],[1,"tw-w-full","tw-py-2","tw-font-bold","tw-italic"],[1,"tw-w-full","tw-px-2","sm:tw-w-1/2","lg:tw-w-1/4"],["inputStyleClass","prime-input tw-w-full display-block","inputId","startDate","showIcon","","appendTo","body","iconDisplay","input",1,"prime-input","tw-w-full",3,"minDate","formControl"],["for","startDate"],["inputStyleClass","prime-input tw-w-full display-block","inputId","endDate","showIcon","","appendTo","body","iconDisplay","input",1,"prime-input","tw-w-full",3,"minDate","formControl"],["for","endDate"],[1,"tw-w-full","tw-max-w-full","tw-px-2","lg:tw-w-1/2"],["placeholder","Food Bank / Organization Is...","appendTo","body",3,"multiselect","entitySummaries","formControl"],[1,"tw-px-2","tw-py-4"],["title","Remove Cost Modification","icon","pi pi-trash","size","small",3,"onClick","text"],[1,"pi","pi-dollar"],["mode","decimal","id","unitCost","autocomplete","off",1,"w-full",3,"onFocus","min","step","minFractionDigits","maxFractionDigits","formControl"],["for","unitCost"],["mode","decimal","id","displayUnitCost","autocomplete","off",1,"w-full",3,"onFocus","min","step","minFractionDigits","maxFractionDigits","formControl"],["for","displayUnitCost"],["mode","decimal","id","costPerPound","autocomplete","off",1,"w-full",3,"onFocus","min","step","minFractionDigits","maxFractionDigits","formControl"],["for","costPerPound"],[1,"tw-text-sm"]],template:function(i,o){if(1&i){const s=n.RV6();n.j41(0,"p-panel",1),n.nI1(1,"titlecase"),n.DNE(2,EDt,1,1,"ng-template",null,0,n.C5r),n.j41(4,"div",2)(5,"div",3),n.EFF(6),n.nI1(7,"formatPrice"),n.k0s(),n.DNE(8,DDt,16,12)(9,kDt,8,5,"div",4),n.j41(10,"div",5)(11,"p-floatlabel")(12,"p-inputnumber",6),n.bIt("onFocus",function(l){return n.eBV(s),n.Njj(o.selectControlText(l))}),n.k0s(),n.j41(13,"label",7),n.EFF(14,"Percent Change with Modification"),n.k0s()()(),n.j41(15,"div",8),n.EFF(16," When / for organizations... "),n.k0s(),n.j41(17,"div",9)(18,"p-floatlabel"),n.nrm(19,"p-datepicker",10),n.j41(20,"label",11),n.EFF(21,"Date is After"),n.k0s()()(),n.j41(22,"div",9)(23,"p-floatlabel"),n.nrm(24,"p-datepicker",12),n.j41(25,"label",13),n.EFF(26,"Date is Before"),n.k0s()()(),n.j41(27,"div",14),n.nrm(28,"app-entity-summary-selection",15),n.k0s()(),n.DNE(29,IDt,4,1,"div",16),n.k0s()}2&i&&(n.Mz_("header","",n.bMT(1,20,o.costTypeKey().toLowerCase().replaceAll("_"," "))," Modification"),n.R7$(4),n.Y8G("formGroup",o.modificationFormGroup),n.R7$(2),n.Lme(" Modify the base cost of ",n.i5U(7,22,o.displayCost(),2)," per ","QUANTITY"===o.costApplyTo()?o.displayUnit().toLowerCase():"pound"," to... "),n.R7$(2),n.vxM("QUANTITY"===o.costApplyTo()?8:-1),n.R7$(),n.vxM("WEIGHT"===o.costApplyTo()?9:-1),n.R7$(3),n.Y8G("min",0)("max",300)("minFractionDigits",1)("maxFractionDigits",2)("formControl",o.modificationFormGroup.controls.modifiedPercent),n.R7$(7),n.Y8G("minDate",o.minStartDate())("formControl",o.modificationFormGroup.controls.startDate),n.R7$(5),n.Y8G("minDate",o.minEndDate())("formControl",o.modificationFormGroup.controls.endDate),n.R7$(4),n.Y8G("multiselect",!0)("entitySummaries",o.purchasingEntities())("formControl",o.modificationFormGroup.controls.applyToEntities),n.R7$(),n.vxM(o.summary()?29:-1))},dependencies:[mf,Rp,gn,oi,r7,MO,x6,Yv,om,Ra,_o,Rm,Xw,J_,Dy,z_,Vx,Bx,xv,dO,Tv,T6,S6,qv],encapsulation:2})}}return t})();const MDt=(t,r)=>r._uuid;function RDt(t,r){1&t&&(n.j41(0,"p-message",0)(1,"span",3)(2,"div",4)(3,"div",5),n.EFF(4," Warning on Multiple Modifications! "),n.k0s(),n.EFF(5," Be careful when adding multiple modifications! If two (or more) modifications apply to the same food bank at the same time, the modified percentages will all multiply together, this results in a different unit cost than is shown on any given modification alone. For example, if a $100 item has one modification at 80% and a second at 80%, the final cost will be $64 (100 * 0.8 * 0.8). "),n.k0s()()())}function ODt(t,r){if(1&t){const e=n.RV6();n.j41(0,"app-item-cost-modification",7),n.bIt("onUpdate",function(o){const s=n.eBV(e).$implicit,a=n.XpG(2);return n.Njj(a.updateModifier(s._uuid,o))})("onRemove",function(){const o=n.eBV(e).$implicit,s=n.XpG(2);return n.Njj(s.removeModifier(o._uuid))}),n.k0s()}if(2&t){const e=r.$implicit,i=n.XpG(2);n.Y8G("cost",i.cost())("costTypeKey",i.costTypeKey())("purchasingEntities",i.purchasingEntities())("startTimeUTC",e.startTimeUTC)("endTimeUTC",e.endTimeUTC)("applyToEntities",e.applyToEntities)("costModification",e.costModification)("costApplyTo",i.costApplyTo())("purchaseUnit",i.purchaseUnit())("displayUnit",i.displayUnit())("casesPerPallet",i.casesPerPallet())("unitsPerCase",i.unitsPerCase())}}function FDt(t,r){if(1&t&&n.Z7z(0,ODt,1,12,"app-item-cost-modification",6,MDt),2&t){const e=n.XpG();n.Dyx(e.costModifiers())}}function PDt(t,r){1&t&&(n.j41(0,"p-message",1),n.EFF(1,"No cost modifications defined"),n.k0s())}let LDt=(()=>{class t{constructor(){this.costTypeKey=n.hFB.required(),this.cost=n.hFB.required(),this.costApplyTo=n.hFB.required(),this.purchasingEntities=n.hFB.required(),this.originalCostModifiers=n.hFB.required({alias:"costModifiers"}),this.purchaseUnit=n.hFB.required(),this.displayUnit=n.hFB.required(),this.casesPerPallet=n.hFB.required(),this.unitsPerCase=n.hFB.required(),this.onUpdate=(0,n.CGW)(),this.costModifiers=(0,n.vPA)([])}ngOnInit(){this.costModifiers.set([...this.originalCostModifiers().map(e=>({_uuid:crypto.randomUUID(),...e}))]),this.costModifiers().length||this.addModifier()}addModifier(){this.costModifiers.set([...this.costModifiers(),this.buildCodeModifier()]),this.sendUpdate()}updateModifier(e,i){let o=this.costModifiers().find(s=>s._uuid===e);o.applyToEntities=i.applyToEntities,o.costModification=i.costModification,o.startTimeUTC=i.startTimeUTC,o.endTimeUTC=i.endTimeUTC,this.costModifiers.set([...this.costModifiers()]),this.sendUpdate()}removeModifier(e){this.costModifiers.set([...this.costModifiers().filter(i=>i._uuid!==e)]),this.sendUpdate()}buildCodeModifier(){return{_uuid:crypto.randomUUID(),applyToEntities:[],costModification:1,startTimeUTC:null,endTimeUTC:null}}sendUpdate(){this.onUpdate.emit(this.costModifiers().map(e=>{let{_uuid:i,...o}=e;return o}))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-item-cost-modifications"]],inputs:{costTypeKey:[1,"costTypeKey"],cost:[1,"cost"],costApplyTo:[1,"costApplyTo"],purchasingEntities:[1,"purchasingEntities"],originalCostModifiers:[1,"costModifiers","originalCostModifiers"],purchaseUnit:[1,"purchaseUnit"],displayUnit:[1,"displayUnit"],casesPerPallet:[1,"casesPerPallet"],unitsPerCase:[1,"unitsPerCase"]},outputs:{onUpdate:"onUpdate"},decls:4,vars:3,consts:[["severity","warn"],["severity","info"],["label","Add Cost Modification",3,"click","link"],[1,"tw-text-sm"],[1,"tw-mt-4"],[1,"tw-mb-4","tw-font-bold"],[3,"cost","costTypeKey","purchasingEntities","startTimeUTC","endTimeUTC","applyToEntities","costModification","costApplyTo","purchaseUnit","displayUnit","casesPerPallet","unitsPerCase"],[3,"onUpdate","onRemove","cost","costTypeKey","purchasingEntities","startTimeUTC","endTimeUTC","applyToEntities","costModification","costApplyTo","purchaseUnit","displayUnit","casesPerPallet","unitsPerCase"]],template:function(i,o){1&i&&(n.DNE(0,RDt,6,0,"p-message",0)(1,FDt,2,0)(2,PDt,2,0,"p-message",1),n.j41(3,"p-button",2),n.bIt("click",function(){return o.addModifier()}),n.k0s()),2&i&&(n.vxM(o.costModifiers().length>1?0:-1),n.R7$(),n.vxM(o.costModifiers().length?1:2),n.R7$(2),n.Y8G("link",!0))},dependencies:[mf,Rp,gn,ADt,Dy,z_],encapsulation:2})}}return t})();function NDt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",17)(1,"p-inputgroup")(2,"p-inputgroup-addon"),n.nrm(3,"i",18),n.k0s(),n.j41(4,"p-iftalabel")(5,"p-inputnumber",19),n.bIt("onFocus",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.selectControlText(o))}),n.k0s(),n.j41(6,"label",20),n.EFF(7,"Per Pallet"),n.k0s()()()(),n.j41(8,"div",17)(9,"p-inputgroup")(10,"p-inputgroup-addon"),n.nrm(11,"i",18),n.k0s(),n.j41(12,"p-iftalabel")(13,"p-inputnumber",21),n.bIt("onFocus",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.selectControlText(o))}),n.k0s(),n.j41(14,"label",22),n.EFF(15,"Per Case"),n.k0s()()()(),n.j41(16,"div",17)(17,"p-inputgroup")(18,"p-inputgroup-addon"),n.nrm(19,"i",18),n.k0s(),n.j41(20,"p-iftalabel")(21,"p-inputnumber",23),n.bIt("onFocus",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.selectControlText(o))}),n.k0s(),n.j41(22,"label",24),n.EFF(23,"Per Unit"),n.k0s()()()()}2&t&&(n.R7$(5),n.Y8G("required",!0)("min",0)("step",1)("minFractionDigits",2)("maxFractionDigits",8),n.R7$(8),n.Y8G("min",0)("step",.1)("minFractionDigits",2)("maxFractionDigits",8),n.R7$(8),n.Y8G("min",0)("step",.01)("minFractionDigits",2)("maxFractionDigits",8))}function GDt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",10)(1,"p-inputgroup")(2,"p-inputgroup-addon"),n.nrm(3,"i",18),n.k0s(),n.j41(4,"p-iftalabel")(5,"p-inputnumber",25),n.bIt("onFocus",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.selectControlText(o))}),n.k0s(),n.j41(6,"label",26),n.EFF(7,"Per Pound"),n.k0s()()()()}2&t&&(n.R7$(5),n.Y8G("min",0)("step",.01)("minFractionDigits",2)("maxFractionDigits",8))}function BDt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",29)(1,"p-button",30),n.bIt("onClick",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.showingItemCostModificationForm.set(!1))}),n.k0s(),n.j41(2,"p-button",31),n.bIt("onClick",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.saveCostModifications())}),n.k0s()()}if(2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("disabled",!e.allCostModifiersValid())}}function VDt(t,r){if(1&t){const e=n.RV6();n.j41(0,"p-dialog",27),n.mxI("visibleChange",function(o){n.eBV(e);const s=n.XpG();return n.DH7(s.showingItemCostModificationForm,o)||(s.showingItemCostModificationForm=o),n.Njj(o)}),n.j41(1,"app-item-cost-modifications",28),n.bIt("onUpdate",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.costModificationUpdate(o))}),n.k0s(),n.DNE(2,BDt,3,1,"ng-template",null,0,n.C5r),n.k0s()}if(2&t){const e=n.XpG();n.Y8G("modal",!0)("draggable",!1),n.R50("visible",e.showingItemCostModificationForm),n.R7$(),n.Y8G("cost",e.itemCost().cost)("costModifiers",e.itemCost().modifiers)("costTypeKey",e.itemCostForm.controls.costType.value)("costApplyTo",e.itemCost().applyTo)("purchaseUnit",e.purchaseUnit())("displayUnit",e.displayUnit())("casesPerPallet",e.casesPerPallet())("unitsPerCase",e.unitsPerCase())("purchasingEntities",e.purchasingEntities())}}function jDt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",16)(1,"p-button",32),n.bIt("onClick",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.showingItemCostModificationForm.set(!0))}),n.k0s()()}if(2&t){const e=n.XpG();n.R7$(),n.Y8G("disabled",!e.allowModifiers()||e.costRestrictionsActive())("link",!0)}}let NX=(()=>{class t{constructor(){this.confirmationService=(0,n.WQX)(Kf),this.costTypes=(0,n.vPA)([{id:"PRODUCT_COST",label:"Product Cost"},{id:"ADMIN_FEE",label:"Administrative Fee"}]),this.costApplicationTypes=Object.entries(a0t).map(([e,i])=>({id:e,details:i})),this.itemCostForm=new Sb({costType:new fs("",Ls.required),costApplyTo:new fs("QUANTITY",Ls.required),costPerPallet:new fs(0),costPerCase:new fs(0),costPerUnit:new fs(0),costPerPound:new fs(0)}),this.showingItemCostModificationForm=(0,n.vPA)(!1),this.costModifications=(0,n.vPA)([]),this.formSubscriptions=[],this.isRemoving=!1,this.allCostModifiersValid=(0,n.EWP)(()=>this.costModifications().every(e=>null!=e.costModification&&null!=e.costModification&&"number"==typeof e.costModification&&e.costModification>=0)),this.itemCost=(0,n.hFB)(),this.lastUpdatedCostRecord=(0,n.vPA)(null),this.pack=n.hFB.required(),this.casesPerPallet=n.hFB.required(),this.unitsPerCase=n.hFB.required(),this.purchaseUnit=(0,n.hFB)("Pallet"),this.displayUnit=(0,n.hFB)("Case"),this.purchasingEntities=n.hFB.required(),this.canRemove=(0,n.hFB)(!0),this.costRestrictionsActive=(0,n.hFB)(!1),this.onUpdate=(0,n.CGW)(),this.onRemove=(0,n.CGW)(),this.allowModifiers=(0,n.EWP)(()=>{if(this.lastUpdatedCostRecord(),this.itemCostForm.controls.costType.disabled)return!1;switch(this.itemCostForm.controls.costApplyTo.value){case"QUANTITY":return!!this.itemCostForm.controls.costPerPallet.value;case"WEIGHT":return!!this.itemCostForm.controls.costPerPound.value}return!1}),(0,n.QZP)(()=>{this.pack(),this.casesPerPallet(),this.computeCosts()})}ngOnInit(){let e=this.costTypes().find(o=>o.id===this.itemCost()?.costType);switch(e&&this.itemCostForm.controls.costType.setValue(e.id),this.itemCost()?.applyTo&&this.itemCostForm.controls.costApplyTo.setValue(this.itemCost()?.applyTo),this.formSubscriptions.push(this.itemCostForm.controls.costPerPallet.valueChanges.subscribe({next:()=>{this.computeCosts("Pallet")}})),this.formSubscriptions.push(this.itemCostForm.controls.costPerCase.valueChanges.subscribe({next:()=>{this.computeCosts("Case")}})),this.formSubscriptions.push(this.itemCostForm.controls.costPerUnit.valueChanges.subscribe({next:()=>{this.computeCosts("Unit")}})),this.formSubscriptions.push(this.itemCostForm.controls.costPerPound.valueChanges.subscribe({next:()=>{this.computeCosts("Pound")}})),this.itemCost()?.applyTo){case"QUANTITY":"Pallet"===this.purchaseUnit()&&this.itemCostForm.controls.costPerPallet.setValue(this.itemCost()?.cost??0);break;case"WEIGHT":this.itemCostForm.controls.costPerPound.setValue(this.itemCost()?.cost??0)}this.computeCosts();let i=this.itemCost()?.modifiers;i&&this.costModifications.set(i)}ngOnDestroy(){this.formSubscriptions.forEach(e=>e.unsubscribe())}computeCosts(e=null,i=!0){let o=this.pack(),s=this.casesPerPallet();if((!o||!s||this.costRestrictionsActive())&&(this.disableControls(),!o||!s))return;let a=this.itemCostForm.controls.costPerPallet.value??0,l=this.itemCostForm.controls.costPerCase.value??0,c=this.itemCostForm.controls.costPerUnit.value??0;if(e||(e=this.purchaseUnit()),"Pound"!=e){switch(e){case"Pallet":l=a/s,c=l/o;break;case"Case":a=l*s,c=l/o;break;case"Unit":l=c*o,a=l*s}this.itemCostForm.controls.costPerPallet.setValue(this.round(a),{emitEvent:!1}),this.itemCostForm.controls.costPerCase.setValue(this.round(l),{emitEvent:!1}),this.itemCostForm.controls.costPerUnit.setValue(this.round(c),{emitEvent:!1})}this.costRestrictionsActive()||(this.itemCostForm.controls.costType.enable({emitEvent:!1}),this.itemCostForm.controls.costApplyTo.enable({emitEvent:!1}),this.itemCostForm.controls.costPerPallet.enable({emitEvent:!1}),this.itemCostForm.controls.costPerCase.enable({emitEvent:!1}),this.itemCostForm.controls.costPerUnit.enable({emitEvent:!1}),this.itemCostForm.controls.costPerPound.enable({emitEvent:!1})),i&&this.emitUpdate()}disableControls(){this.itemCostForm.controls.costType.disable({emitEvent:!1}),this.itemCostForm.controls.costApplyTo.disable({emitEvent:!1}),this.itemCostForm.controls.costPerPallet.disable({emitEvent:!1}),this.itemCostForm.controls.costPerCase.disable({emitEvent:!1}),this.itemCostForm.controls.costPerUnit.disable({emitEvent:!1}),this.itemCostForm.controls.costPerPound.disable({emitEvent:!1})}round(e){return parseFloat(e.toFixed(8))}emitUpdate(){if(!this.isRemoving){let e=this.getOfferContentCost();this.onUpdate.emit(e)}}getValidControl(){switch(this.purchaseUnit()){case"Pallet":default:return this.itemCostForm.controls.costPerPallet;case"Case":return this.itemCostForm.controls.costPerCase;case"Unit":return this.itemCostForm.controls.costPerUnit}}getCost(){switch(this.itemCost()?.applyTo){case"QUANTITY":return this.getValidControl().value??0;case"WEIGHT":return this.itemCostForm.controls.costPerPound.value??0;default:return 0}}getCostType(){return this.costTypes().find(e=>e.id===this.itemCostForm.controls.costType.value)}getOfferContentCost(){const e={costType:this.getCostType().id,applyTo:this.itemCostForm.controls.costApplyTo.value,currencyCode:this.itemCost().currencyCode,cost:"WEIGHT"===this.itemCostForm.controls.costApplyTo.value?this.itemCostForm.controls.costPerPound.value??0:this.getCost(),modifiers:this.itemCost().modifiers};return this.lastUpdatedCostRecord.set(e),e}costModificationUpdate(e){this.costModifications.set(e)}saveCostModifications(){this.itemCost().modifiers=this.costModifications(),this.emitUpdate(),this.showingItemCostModificationForm.set(!1)}selectControlText(e){let i=e.target;i&&i.value&&i.select()}remove(){this.confirmationService.confirm({message:`Do you want to remove this $${this.getCost()}/${"QUANTITY"===this.itemCostForm.controls.costApplyTo.value?this.purchaseUnit():"pound"} ${this.getCostType().label}?`,header:"Remove Cost",icon:"pi pi-exclamation-triangle",accept:()=>{this.isRemoving=!0,this.onRemove.emit()},rejectButtonProps:{severity:"secondary"}})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-item-cost"]],inputs:{itemCost:[1,"itemCost"],pack:[1,"pack"],casesPerPallet:[1,"casesPerPallet"],unitsPerCase:[1,"unitsPerCase"],purchaseUnit:[1,"purchaseUnit"],displayUnit:[1,"displayUnit"],purchasingEntities:[1,"purchasingEntities"],canRemove:[1,"canRemove"],costRestrictionsActive:[1,"costRestrictionsActive"]},outputs:{onUpdate:"onUpdate",onRemove:"onRemove"},decls:23,vars:9,consts:[["footer",""],[1,"tw-max-w-screen-lg","tw-items-center","tw-gap-4","tw-rounded","tw-border","tw-border-solid","tw-border-gray-300","tw-px-2","tw-py-1",3,"formGroup"],[1,"tw-flex"],[1,"tw-flex","tw-flex-1","tw-gap-4"],[1,"tw-flex","tw-basis-1/5","tw-align-bottom"],[1,"tw-mt-8","tw-w-full"],["optionValue","id","optionLabel","label","formControlName","costType","inputId","costType",1,"tw-w-full",3,"onChange","options","fluid"],["for","costType",1,"tw-text-xs","tw-text-gray-500"],["optionValue","id","optionLabel","details.displayName","formControlName","costApplyTo","inputId","costApplyTo",1,"tw-w-full",3,"onChange","options","fluid"],["for","costApplyTo",1,"tw-text-xs","tw-text-gray-500"],[1,"tw-flex","tw-basis-3/5"],[1,"tw-w-14","tw-flex-none"],["title","Remove Cost","size","small",3,"onClick","link","disabled"],[1,"lg:tw-hidden"],[1,"pi","pi-trash"],["header","Cost Modifications","appendTo","body","styleClass","tw-max-w-screen-lg",3,"modal","draggable","visible"],[1,"tw-flex","tw-basis-full"],[1,"tw-flex","tw-basis-1/5"],[1,"pi","pi-dollar"],["mode","decimal","autocomplete","off","inputId","costPerPallet","formControlName","costPerPallet",3,"onFocus","required","min","step","minFractionDigits","maxFractionDigits"],["for","costPerPallet"],["mode","decimal","autocomplete","off","inputId","costPerCase","formControlName","costPerCase",3,"onFocus","min","step","minFractionDigits","maxFractionDigits"],["for","costPerCase"],["mode","decimal","autocomplete","off","inputId","costPerUnit","formControlName","costPerUnit",3,"onFocus","min","step","minFractionDigits","maxFractionDigits"],["for","costPerUnit"],["mode","decimal","autocomplete","off","inputId","costPerPound","formControlName","costPerPound",3,"onFocus","min","step","minFractionDigits","maxFractionDigits"],["for","costPerPound"],["header","Cost Modifications","appendTo","body","styleClass","tw-max-w-screen-lg",3,"visibleChange","modal","draggable","visible"],[3,"onUpdate","cost","costModifiers","costTypeKey","costApplyTo","purchaseUnit","displayUnit","casesPerPallet","unitsPerCase","purchasingEntities"],[1,"tw-space-x-2","tw-py-2"],["label","Cancel","severity","secondary",3,"onClick"],["label","Save",3,"onClick","disabled"],["label","View Cost Modifications","size","small",3,"onClick","disabled","link"]],template:function(i,o){1&i&&(n.j41(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"p-floatlabel",5)(5,"p-select",6),n.bIt("onChange",function(){return o.emitUpdate()}),n.k0s(),n.j41(6,"label",7),n.EFF(7,"Cost Type"),n.k0s()()(),n.j41(8,"div",4)(9,"p-floatlabel",5)(10,"p-select",8),n.bIt("onChange",function(){return o.emitUpdate()}),n.k0s(),n.j41(11,"label",9),n.EFF(12,"Price By"),n.k0s()()(),n.DNE(13,NDt,24,13)(14,GDt,8,4,"div",10),n.k0s(),n.j41(15,"div",11)(16,"p-button",12),n.bIt("onClick",function(){return o.remove()}),n.j41(17,"span",13),n.EFF(18,"Remove Cost"),n.k0s(),n.nrm(19,"i",14),n.k0s()()(),n.j41(20,"div"),n.DNE(21,VDt,4,12,"p-dialog",15)(22,jDt,2,2,"div",16),n.k0s()()),2&i&&(n.Y8G("formGroup",o.itemCostForm),n.R7$(5),n.Y8G("options",o.costTypes())("fluid",!0),n.R7$(5),n.Y8G("options",o.costApplicationTypes)("fluid",!0),n.R7$(3),n.vxM("QUANTITY"===o.itemCostForm.controls.costApplyTo.value?13:14),n.R7$(3),n.Y8G("link",!0)("disabled",!o.canRemove()||o.itemCostForm.controls.costType.disabled),n.R7$(5),n.vxM(o.showingItemCostModificationForm()?21:22))},dependencies:[mf,Rp,gn,rY,vg,gf,Ra,_o,Rm,Sv,Kpe,Xpe,ehe,S6,Jpe,T6,Xw,J_,LDt,xv,Tv,Eb,Zp,ff,Yv,om],encapsulation:2})}}return t})();const HDt=(t,r)=>r._uuid;function UDt(t,r){if(1&t){const e=n.RV6();n.j41(0,"app-item-cost",2),n.bIt("onUpdate",function(o){const s=n.eBV(e).$implicit,a=n.XpG();return n.Njj(a.onItemCostUpdate(s._uuid,o))})("onRemove",function(){const o=n.eBV(e).$implicit,s=n.XpG();return n.Njj(s.removeCost(o))}),n.k0s()}if(2&t){const e=r.$implicit,i=n.XpG();n.Y8G("itemCost",e)("pack",i.pack())("casesPerPallet",i.casesPerPallet())("unitsPerCase",i.unitsPerCase())("purchasingEntities",i.purchasingEntities())("canRemove",i.canRemove())("costRestrictionsActive",i.costRestrictionsActive())}}const nhe={costType:"PRODUCT_COST",applyTo:"QUANTITY",currencyCode:"USD",cost:0,modifiers:[]};let GX=(()=>{class t{constructor(){this.confirmationService=(0,n.WQX)(Kf),this.marketplaceService=(0,n.WQX)(Yu),this.itemCostComponent=n.ebz.required(NX),this.showName=(0,n.hFB)(!0),this.showAddress=(0,n.hFB)(!1),this.required=(0,n.hFB)(!1),this.placeholder=(0,n.hFB)(""),this.field=(0,n.hFB)("name"),this.multiselect=(0,n.hFB)(!1),this.costRestrictionsActive=(0,n.hFB)(!1),this.inputItemCosts=n.hFB.required({alias:"itemCosts"}),this.itemCosts=(0,n.vPA)([]),this.pack=n.hFB.required(),this.casesPerPallet=n.hFB.required(),this.unitsPerCase=n.hFB.required(),this.palletsPerFTL=n.hFB.required(),this.canRemove=(0,n.hFB)(!1),this.onUpdate=(0,n.CGW)(),this.costTypes=(0,n.vPA)([{id:"PRODUCT_COST",label:"Product Cost"},{id:"ADMIN_FEE",label:"Administrative Fee"}]),this.costApplications=(0,n.vPA)([{id:"QUANTITY",label:"Quantity"},{id:"WEIGHT",label:"Weight"}]),this.purchasingEntities=n.hFB.required(),this.disabled=(0,n.vPA)(!1),this.showCostModifierForm=(0,n.vPA)(!1),this.fobPerPallet=(0,n.EWP)(()=>this.itemCosts().reduce((e,i)=>e+i.cost,0)),this.availableCostTypes=(0,n.EWP)(()=>this.costTypes().filter(e=>!this.itemCosts().some(i=>i.costType===e.id))),this.canAddCost=(0,n.EWP)(()=>this.availableCostTypes().length>0&&!this.costRestrictionsActive()),this.duplicateCostTypes=(0,n.EWP)(()=>this.itemCosts().reduce((i,o)=>{const s=o.costType;return i[s]=(i[s]||0)+1,i},{}))}ngOnInit(){0===this.inputItemCosts().length?this.itemCosts.set([{_uuid:crypto.randomUUID(),...nhe}]):this.itemCosts.set([...this.inputItemCosts().map(e=>({_uuid:crypto.randomUUID(),...e}))])}setItemCosts(e){e&&0!==e.length?(this.itemCosts.set([...e.map(i=>({_uuid:crypto.randomUUID(),...i}))]),this.itemCostComponent().computeCosts(null,!1)):this.itemCosts.set([{_uuid:crypto.randomUUID(),...nhe}])}addCostModifier(){this.showCostModifierForm.set(!0)}addCost(){if(this.canAddCost()){this.itemCosts.set([...this.itemCosts(),{_uuid:crypto.randomUUID(),costType:this.availableCostTypes()[0].id,applyTo:"QUANTITY",cost:0,currencyCode:"USD",modifiers:[]}]);for(const e of this.costTypes())this.itemCosts().find(i=>i.costType==e.id)||this.itemCosts.set([...this.itemCosts(),{_uuid:crypto.randomUUID(),costType:e.id,applyTo:"QUANTITY",cost:0,currencyCode:"USD",modifiers:[]}]);this.sendUpdate()}}removeCost(e){this.itemCosts.set([...this.itemCosts().filter(i=>i._uuid!==e._uuid)]),this.sendUpdate()}sendUpdate(){this.onUpdate.emit(this.itemCosts().map(e=>{let{_uuid:i,...o}=e;return o}))}getCostTypeLabel(e){return this.costTypes().find(i=>i.id===e)?.label}getApplicationLabel(e){return this.costApplications().find(i=>i.id===e)?.label}onItemCostUpdate(e,i){let o=this.itemCosts().find(s=>s._uuid===e);o.applyTo=i.applyTo,o.cost=i.cost,o.costType=i.costType,o.currencyCode=i.currencyCode,o.modifiers=i.modifiers,this.itemCosts.set([...this.itemCosts()]),this.sendUpdate()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-item-costs-editor"]],viewQuery:function(i,o){1&i&&n.wEZ(o.itemCostComponent,NX,5),2&i&&n.NyB()},inputs:{showName:[1,"showName"],showAddress:[1,"showAddress"],required:[1,"required"],placeholder:[1,"placeholder"],field:[1,"field"],multiselect:[1,"multiselect"],costRestrictionsActive:[1,"costRestrictionsActive"],inputItemCosts:[1,"itemCosts","inputItemCosts"],pack:[1,"pack"],casesPerPallet:[1,"casesPerPallet"],unitsPerCase:[1,"unitsPerCase"],palletsPerFTL:[1,"palletsPerFTL"],canRemove:[1,"canRemove"],purchasingEntities:[1,"purchasingEntities"]},outputs:{onUpdate:"onUpdate"},features:[n.Jv_([])],decls:4,vars:2,consts:[[1,"tw-mb-4","tw-block",3,"itemCost","pack","casesPerPallet","unitsPerCase","purchasingEntities","canRemove","costRestrictionsActive"],["label","Add Cost",3,"onClick","link","disabled"],[1,"tw-mb-4","tw-block",3,"onUpdate","onRemove","itemCost","pack","casesPerPallet","unitsPerCase","purchasingEntities","canRemove","costRestrictionsActive"]],template:function(i,o){1&i&&(n.Z7z(0,UDt,1,7,"app-item-cost",0,HDt),n.j41(2,"div")(3,"p-button",1),n.bIt("onClick",function(){return o.addCost()}),n.k0s()()),2&i&&(n.Dyx(o.itemCosts()),n.R7$(3),n.Y8G("link",!0)("disabled",!o.canAddCost()))},dependencies:[mf,Rp,gn,r7,Yv,Ra,Xw,Vx,Zp,NX],encapsulation:2})}}return t})();const $Dt=["offerDescription"],YDt=(t,r,e)=>({"tw-bg-red-100 tw-text-red-800":t,"tw-bg-yellow-100 tw-text-yellow-800":r,"tw-bg-green-100 tw-text-green-800":e});function WDt(t,r){if(1&t&&(n.j41(0,"page-heading"),n.EFF(1),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.JRh(e.formTitle())}}function zDt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",19)(1,"app-entity-summary-selection",111),n.bIt("onSingleItemSelected",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onSubmissionEntitySelected(o))}),n.k0s()()}if(2&t){const e=n.XpG();n.R7$(),n.Y8G("entitySummaries",e.submissionEligibleEntities())("required",!0)("formControl",e.offerForm.controls.selectedSubmissionEntity)}}function qDt(t,r){if(1&t){const e=n.RV6();n.j41(0,"app-item-type-selection",112),n.bIt("onItemSelected",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.taxonomySelected(o))}),n.k0s()}if(2&t){const e=n.XpG();n.Y8G("taxonomy",e.taxonomy())("taxonomyTree",e.taxonomyTree())("required",!0)("formControl",e.offerForm.controls.selectedTaxonomyEntry)}}function XDt(t,r){1&t&&(n.j41(0,"span",116),n.EFF(1," (DEFAULT)"),n.k0s())}function KDt(t,r){if(1&t&&(n.j41(0,"div",117)(1,"span"),n.EFF(2),n.k0s()(),n.j41(3,"div",117)(4,"span"),n.EFF(5),n.k0s()()),2&t){const e=n.XpG().$implicit;n.R7$(2),n.SpI("Project: ",e.projectCsg,""),n.R7$(3),n.SpI("Fund: ",e.fundLabel,"")}}function QDt(t,r){if(1&t&&(n.j41(0,"div",115)(1,"span",116),n.EFF(2),n.k0s(),n.j41(3,"span"),n.EFF(4),n.k0s(),n.j41(5,"span"),n.DNE(6,XDt,2,0,"span",116)(7,KDt,6,2),n.k0s()()),2&t){const e=r.$implicit;n.R7$(2),n.SpI(" ",e.itemId," "),n.R7$(2),n.SpI(" - ",e.description,""),n.R7$(2),n.vxM(e.isDefault?6:7)}}function JDt(t,r){if(1&t&&(n.j41(0,"p-floatlabel",23)(1,"p-select",113),n.DNE(2,QDt,8,3,"ng-template",null,2,n.C5r),n.k0s(),n.j41(4,"label",114),n.EFF(5,"NetSuite Item"),n.k0s()()),2&t){const e=n.XpG();n.R7$(),n.Y8G("options",e.netSuiteItems())("formControl",e.offerForm.controls.selectedTaxonomyEntryNetSuiteItem)("overlayOptions",e.overlayOptions)}}function ZDt(t,r){if(1&t&&(n.j41(0,"p-iftalabel",35),n.nrm(1,"p-inputnumber",118),n.j41(2,"label",119),n.EFF(3," Unit Weight "),n.j41(4,"span",15),n.EFF(5,"*"),n.k0s()()()),2&t){const e=n.XpG();n.R7$(),n.Y8G("min",1)("formControl",e.offerForm.controls.size)("maxFractionDigits",2)}}function ekt(t,r){if(1&t&&(n.j41(0,"p-iftalabel",35),n.nrm(1,"p-inputnumber",120),n.j41(2,"label",121),n.EFF(3),n.j41(4,"span",15),n.EFF(5,"*"),n.k0s()()()),2&t){let e;const i=n.XpG();n.R7$(),n.Y8G("min",1)("formControl",i.offerForm.controls.pieceCount)("maxFractionDigits",0),n.R7$(2),n.SpI(" Pieces (Count per ",null==(e=i.offerForm.get("unitPackingType"))?null:e.value,") ")}}function tkt(t,r){if(1&t&&(n.j41(0,"div",122)(1,"span"),n.EFF(2),n.k0s()()),2&t){const e=r.$implicit;n.R7$(2),n.JRh(e.label)}}function nkt(t,r){if(1&t&&(n.j41(0,"div",123),n.EFF(1),n.k0s()),2&t){const e=r.$implicit;n.R7$(),n.JRh(e.details.displayName)}}function ikt(t,r){if(1&t&&n.nrm(0,"i",43),2&t){const e=n.XpG();n.Mz_("title","The computed weight (",e.computedCaseWeight,"lbs) is different from the entered weight.")}}function rkt(t,r){if(1&t&&(n.j41(0,"div")(1,"div",116),n.EFF(2),n.k0s(),n.j41(3,"div",124),n.EFF(4),n.k0s()()),2&t){const e=r.$implicit;n.R7$(2),n.SpI(" ",e.details.displayName," "),n.R7$(2),n.SpI(" ",e.details.description," ")}}function okt(t,r){1&t&&(n.j41(0,"div")(1,"span",116),n.EFF(2,"Costs"),n.k0s(),n.j41(3,"span",128),n.EFF(4,"*"),n.k0s()())}function skt(t,r){if(1&t&&(n.j41(0,"div")(1,"div",116),n.EFF(2),n.k0s(),n.j41(3,"div",124),n.EFF(4),n.k0s()()),2&t){const e=r.$implicit;n.R7$(2),n.SpI(" ",e.details.displayName," "),n.R7$(2),n.SpI(" ",e.details.description," ")}}function akt(t,r){if(1&t){const e=n.RV6();n.DNE(0,okt,5,0,"ng-template",null,3,n.C5r),n.j41(2,"div",125)(3,"p-floatlabel",58)(4,"p-select",126),n.DNE(5,skt,5,2,"ng-template",null,2,n.C5r),n.k0s(),n.j41(7,"label",80),n.EFF(8,"Pricing Type:"),n.k0s()()(),n.j41(9,"app-item-costs-editor",127),n.bIt("onUpdate",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onCostsUpdated(o))}),n.k0s()}if(2&t){const e=n.XpG();n.R7$(4),n.Y8G("formControl",e.offerForm.controls.pricingModel)("options",e.availablePricingModelOptions()),n.R7$(5),n.Y8G("purchasingEntities",e.purchasingEntities())("itemCosts",e.purchaseItemCosts())("pack",e.offerForm.controls.pack.value)("casesPerPallet",e.offerForm.controls.casesPerPallet.value)("unitsPerCase",e.offerForm.controls.pack.value)("palletsPerFTL",e.offerForm.controls.palletsPerFTL.value)("canRemove",e.purchaseItemCosts().length>1)("costRestrictionsActive",e.taxonomyHasCostRestrictions())}}function lkt(t,r){if(1&t&&(n.j41(0,"p",102),n.EFF(1),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.SpI(" ",e.discountPriceLabel()," ")}}function ckt(t,r){if(1&t&&(n.j41(0,"div",108),n.nrm(1,"app-entity-summary-selection",129),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.Y8G("multiselect",!0)("formControl",e.offerForm.controls.allowedListingEntities)("entitySummaries",e.purchasingEntities())}}function ukt(t,r){if(1&t&&(n.j41(0,"li"),n.EFF(1),n.k0s()),2&t){const e=r.$implicit;n.R7$(),n.JRh(e)}}function dkt(t,r){if(1&t&&(n.j41(0,"li"),n.EFF(1),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.JRh(e.priceRestrictionErrorMessage())}}function pkt(t,r){1&t&&(n.j41(0,"span"),n.EFF(1,"(validating...)"),n.k0s())}function hkt(t,r){if(1&t&&(n.j41(0,"div",109)(1,"div",130)(2,"div",131)(3,"div",132)(4,"span",133)(5,"ul"),n.Z7z(6,ukt,2,1,"li",null,n.Vm6),n.DNE(8,dkt,2,1,"li"),n.k0s(),n.DNE(9,pkt,2,0,"span"),n.k0s()()()()()),2&t){const e=n.XpG();n.R7$(2),n.Y8G("ngClass",n.sMw(3,YDt,e.offerForm.invalid||e.priceRestrictionErrorMessage(),e.offerForm.pending,e.offerForm.valid&&e.offerForm.dirty)),n.R7$(4),n.Dyx(e.formErrors()),n.R7$(2),n.vxM(e.priceRestrictionErrorMessage()?8:-1),n.R7$(),n.vxM(e.offerForm.pending?9:-1)}}function fkt(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",136),n.bIt("click",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.displayFormErrors())}),n.EFF(1," Why can't I submit? "),n.k0s()}}function mkt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",110),n.DNE(1,fkt,2,0,"button",134),n.j41(2,"button",135),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.submitOffer())}),n.EFF(3),n.k0s()()}if(2&t){const e=n.XpG();n.R7$(),n.vxM("VALID"!==e.offerFormStatusSignal()||e.priceRestrictionErrorMessage()?1:-1),n.R7$(),n.Y8G("disabled",!e.isOfferFormAbleToSubmit()),n.R7$(),n.SpI(" ",e.commandText()," ")}}function ihe(t){return r=>{if(!r.value)return null;const e=t instanceof Function?t():t,i=new Date(r.value);i.setHours(0,0,0,0);const o=new Date(e);return o.setHours(0,0,0,0),i<o?{minimumDate:{required:o,actual:i}}:null}}let BX=(()=>{class t{constructor(){this.entityService=(0,n.WQX)(jh),this.confirmationService=(0,n.WQX)(Kf),this.onOfferVersionCreated=(0,n.CGW)(),this.marketplaceService=(0,n.WQX)(Yu),this.legacySessionDataService=(0,n.WQX)(qy),this.legacyNavigationService=(0,n.WQX)(wc),this.utilitiesService=(0,n.WQX)(I2),this.toasterService=(0,n.WQX)(tc),this.formTitle=(0,n.hFB)("New Offer for Purchase"),this.editingOffer=(0,n.hFB)(null),this.donorEntityId=(0,n.hFB)(null),this.commandText=(0,n.hFB)("Submit Offer"),this.hideSubmit=(0,n.hFB)(!1),this.allowEditingSupplier=(0,n.EWP)(()=>this.submissionEligibleEntities.length>1||this.entityService.isFANO()),this.allowRestrictingListingsToEntities=(0,n.EWP)(()=>!!this.legacySessionDataService.canCreateGroceryMatchPreferences()),this.onStatusChange=(0,n.CGW)(),this.offerDescriptionDiv=n.ebz.required("offerDescription"),this.costEditorComponent=n.ebz.required(GX),this.priceRestrictionErrorMessage=(0,n.vPA)(""),this.purchaseItemCosts=(0,n.vPA)([]),this.purchasingEntities=(0,n.vPA)([]),this.submissionEligibleEntities=(0,n.vPA)([]),this.submissionEligibleEntityLocations=(0,n.vPA)([]),this.isSubmissionEligibleEntityLocationsLoading=(0,n.vPA)(!1),this.taxonomy=(0,n.vPA)([]),this.taxonomyTree=(0,n.vPA)([]),this.taxonomyHasCostRestrictions=(0,n.vPA)(!1),this.minimumStartDate=(0,n.vPA)(new Date),this.minimumEndDate=(0,n.vPA)(new Date),this.minimumShipmentDate=(0,n.vPA)(new Date),this.formErrors=(0,n.vPA)([]),this.isImportedOptions=c0t,this.herCategoryEntries=Object.values(cP),this.storageTypeEntries=Object.values(uP),this.combinationRules=Object.entries(s0t).map(([e,i])=>({id:e,details:i})),this.pricingModelOptions=Object.entries(gX).map(([e,i])=>({id:e,details:i})),this.availablePricingModelOptions=(0,n.EWP)(()=>{let e=this.selectedLocationEntity();return"DonorLocation"===e?.internalDetail?.internalEntityTypeCode&&e.internalDetail.internalAttributes?.isDeliveredPricing?this.pricingModelOptions.filter(i=>"DELIVERED"===i.id):this.pricingModelOptions}),this.updateSelectedPricingModel=(0,n.QZP)(()=>{let e=this.availablePricingModelOptions(),i=this.offerForm.controls.pricingModel.value;e&&e.length>0&&i&&!e?.some(o=>o.id===i)&&this.offerForm.controls.pricingModel.setValue(e[0].id)}),this.caseDimensionUOMTypes=Object.entries(ape).map(([e,i])=>({id:e,details:i})),this.sellByUnitTypes=[{id:"PALLET",displayName:"Pallet"}],this.sizeUOMTypes=[{label:"By Weight",value:"WEIGHT",items:Object.entries(lpe).map(([e,i])=>({id:e,details:i}))},{label:"By Unit",value:"COUNT",items:[{id:"EACH",details:{displayName:"Each",description:"A unit - like a roll of paper towel or a single egg"}}]}],this.sizeUOMIsWeight=(0,n.EWP)(()=>{const e=this.offerFormValueSignal();return!e?.sizeUOM||e.sizeUOM in lpe}),this.unitPackingTypes=Object.entries(f6).map(([e,i])=>({id:e,details:i})),this.casePackingTypes=Object.entries(h6).map(([e,i])=>({id:e,details:i})),this.palletPackingTypes=Object.entries(m6).map(([e,i])=>({id:e,details:i})),this.computedSizeWeight=0,this.computedCaseWeight=0,this.computedPalletWeight=0,this.computedTruckWeight=0,this.imageUrls=(0,n.vPA)([]),this.netSuiteItems=(0,n.vPA)([]),this.itemDiscounts=(0,n.vPA)([]),this.discountPriceLabel=(0,n.vPA)(null),this.isSubmittingOffer=(0,n.vPA)(!1),this.offerForm=new Sb({offerTitle:new fs("",Ls.required),offerDescription:new fs(""),upc:new fs("",Ls.required),itemDescription:new fs("",Ls.required),supplierReferenceNumber:new fs(""),pack:new fs(null,Ls.required),size:new fs(null,Ls.required),pieceCount:new fs(null),sizeUOM:new fs("OUNCE",Ls.required),sellByUnit:new fs("PALLET",Ls.required),palletsPerFTL:new fs(null,Ls.required),casesPerPallet:new fs(null,Ls.required),unitPackingType:new fs("BAG",Ls.required),casePackingType:new fs("BOX",Ls.required),caseDimensionUOM:new fs("INCH",Ls.required),caseLength:new fs(null),caseWidth:new fs(null),caseHeight:new fs(null),caseWeightPounds:new fs(0,[Ls.required,Ls.min(.1)]),palletPackingType:new fs("PALLET",Ls.required),shelfLifeNotes:new fs(""),pricingModel:new fs("FOB"),combinationRule:new fs("NONE",Ls.required),nutritionalCategory:new fs(null,Ls.required),storageType:new fs(null,Ls.required),selectedSubmissionEntity:new fs(null,Ls.required),selectedLocationEntity:new fs({value:null,disabled:!0},Ls.required),selectedTaxonomyEntry:new fs(null,Ls.required),selectedTaxonomyEntryNetSuiteItem:new fs(null),allowedListingEntities:new fs([]),startDate:new fs(new Date,Ls.required),endDate:new fs(new Date,Ls.required),shipmentFirstAvailableDate:new fs(null),shipmentDeadlineDate:new fs(null),sellByUnitsAvailable:new fs({value:0,disabled:!0}),isUnlimited:new fs(!0),isPaused:new fs(!1),isImported:new fs(null),labelName:new fs(""),leadTime:new fs(0),minimumUnitsPerOrder:new fs(1,Ls.required),offerContentCosts:new fs([],bDt.minimumArrayLength(1)),herCategory:new fs("")}),this.formSubscriptions=[],this.offerFormStatusSignal=m8(this.offerForm.statusChanges),this.offerFormValueSignal=m8(this.offerForm.valueChanges),this.selectedLocationEntity=m8(this.offerForm.controls.selectedLocationEntity.valueChanges),this.isOfferFormAbleToSubmit=(0,n.EWP)(()=>"VALID"===this.offerFormStatusSignal()&&!this.priceRestrictionErrorMessage()&&!this.isSubmittingOffer())}ngOnInit(){this.loadSubmissionEligibleEntities(),this.loadTaxonomy(),this.loadPurchasingEntities(),this.allowEditingSupplier()||this.offerForm.controls.selectedSubmissionEntity.disable();const e=this.donorEntityId();if(e){const a=this.submissionEligibleEntities().find(l=>l.internalDetail?.internalEntityId===e)??null;a&&(this.offerForm.controls.selectedSubmissionEntity.patchValue(a),this.offerForm.controls.selectedLocationEntity.enable())}let i=new Date;i.setDate(i.getDate()+90),this.minimumShipmentDate.set(i),this.offerForm.controls.endDate.setValue(i),this.formSubscriptions.push(this.offerForm.controls.startDate.valueChanges.subscribe(s=>{if(s){this.minimumEndDate.set(new Date(s));const a=this.offerForm.controls.endDate;a&&(a.setValidators([ihe(()=>this.minimumEndDate())]),a.updateValueAndValidity())}})),this.formSubscriptions.push(this.offerForm.controls.endDate.valueChanges.subscribe(s=>{this.setOrderDatesAndValidators()})),this.formSubscriptions.push(this.offerForm.controls.leadTime.valueChanges.subscribe(s=>{this.setOrderDatesAndValidators()})),this.formSubscriptions.push(this.offerForm.controls.shipmentDeadlineDate.valueChanges.subscribe(s=>{this.setOrderDatesAndValidators(!0)})),this.formSubscriptions.push(this.offerForm.controls.isUnlimited.valueChanges.subscribe(s=>{s?(this.offerForm.controls.sellByUnitsAvailable.disable(),this.offerForm.controls.sellByUnitsAvailable.clearValidators(),this.offerForm.controls.sellByUnitsAvailable.setValue(null)):(this.offerForm.controls.sellByUnitsAvailable.enable(),this.offerForm.controls.sellByUnitsAvailable?.setValidators([Ls.required,Ls.min(1)])),this.offerForm.controls.sellByUnitsAvailable.updateValueAndValidity()})),this.setEditOffer(),this.formSubscriptions.push(this.offerForm.controls.size.valueChanges.subscribe(s=>{this.updateComputedWeights()})),this.formSubscriptions.push(this.offerForm.controls.pack.valueChanges.subscribe(s=>{this.updateComputedWeights()})),this.formSubscriptions.push(this.offerForm.controls.casesPerPallet.valueChanges.subscribe(s=>{this.updateComputedWeights(),this.calculateRequiredCosts(this.offerForm.controls.selectedLocationEntity.value)})),this.formSubscriptions.push(this.offerForm.controls.palletsPerFTL.valueChanges.subscribe(s=>{this.updateComputedWeights()})),this.formSubscriptions.push(this.offerForm.controls.sizeUOM.valueChanges.subscribe(s=>{this.updateComputedWeights()})),this.formSubscriptions.push(this.offerForm.controls.caseWeightPounds.valueChanges.subscribe(s=>{this.updateComputedWeights(!1)})),this.formSubscriptions.push(this.offerForm.controls.selectedTaxonomyEntry.valueChanges.subscribe(s=>{if(!s)return this.offerForm.controls.selectedTaxonomyEntryNetSuiteItem.setValue(null),void this.netSuiteItems.set([]);this.netSuiteItems.set([...s.netSuiteItems])})),this.formSubscriptions.push(this.offerForm.controls.selectedTaxonomyEntryNetSuiteItem.valueChanges.subscribe(s=>{this.calculateRequiredCosts(this.offerForm.controls.selectedLocationEntity.value)})),this.formSubscriptions.push(this.offerForm.statusChanges.subscribe(s=>{this.onStatusChange.emit(s)})),this.formSubscriptions.push(this.offerForm.controls.sizeUOM.valueChanges.subscribe(s=>{"EACH"===s?(this.offerForm.controls.size.clearValidators(),this.offerForm.controls.pieceCount.setValidators([Ls.required])):(this.offerForm.controls.size.setValidators([Ls.required]),this.offerForm.controls.pieceCount.clearValidators()),this.offerForm.controls.size.updateValueAndValidity(),this.offerForm.controls.pieceCount.updateValueAndValidity()})),this.overlayOptions={listener:(s,a)=>"scroll"!==a?.type&&(a?.valid??!0)};let o=this.offerDescriptionDiv().nativeElement;o&&setTimeout(()=>{let c=o.scrollHeight;c<80&&(c=80),c>400&&(c=400),o.style.height=`${c}px`})}setOrderDatesAndValidators(e=!1){const i=this.offerForm.controls.endDate.value,o=this.offerForm.controls.leadTime.value,s=this.offerForm.controls.shipmentDeadlineDate.value;if(i){let a=new Date(i);const l=this.offerForm.controls.shipmentDeadlineDate;if(o&&o>0&&a.setDate(a.getDate()+o),!s)return this.minimumShipmentDate.set(a),void(l&&(l.setValidators(null),l.updateValueAndValidity({emitEvent:!1})));if(this.minimumShipmentDate.set(a),s<a)if(e){let c=a;c.setDate(c.getDate()-(o??0)),this.offerForm.controls.endDate.setValue(c)}else this.offerForm.controls.shipmentDeadlineDate.setValue(a);l&&(l.setValidators([ihe(()=>this.minimumShipmentDate())]),l.updateValueAndValidity({emitEvent:!1}))}}setEditOffer(){if(null==this.editingOffer())return;const e=this.editingOffer()?.contents[0],i=this.editingOffer()?.contents[0]?.contents[0],o=this.editingOffer()?.contents[0]?.contents[0]?.contents[0],s=this.editingOffer()?.contents[0]?.contents[0]?.contents[0]?.contents[0];let a=null;if(null==e||null==i||null==o||null==s)return void this.toasterService.displayErrorToast("Unable to Load Item","This item doesn't appear to be structured as expected - please contact an administrator.");1===s.contents.length&&(a=s.contents[0]);let l="";if(e.segmentableQuantityDetail&&(l="VEHICLE"),i.segmentableQuantityDetail&&(l="PALLET"),o.segmentableQuantityDetail&&(l="CASE"),""==l)return void this.toasterService.displayErrorToast("Unable to Load Item","This item doesn't appear to be structured as expected - please contact an administrator.");this.offerForm.controls.offerTitle.setValue(this.editingOffer()?.title??null),this.offerForm.controls.offerDescription.setValue(this.editingOffer()?.description??null),this.offerForm.controls.itemDescription.setValue(e.description??null),this.offerForm.controls.supplierReferenceNumber.setValue(this.editingOffer()?.sourceIdentifier??null),this.offerForm.controls.isPaused.setValue(this.editingOffer()?.matchPreferences?.blockAllMatching??!1),this.offerForm.controls.size.setValue(s?.weight?.value??null),this.offerForm.controls.pack.setValue(s?.quantity??null),this.offerForm.controls.casesPerPallet.setValue(o?.quantity??null),this.offerForm.controls.caseWeightPounds.setValue(o?.weight?.value?this.marketplaceService.weightToPounds(o.weight):null),this.offerForm.controls.palletsPerFTL.setValue(i?.quantity??null),this.offerForm.controls.sellByUnitsAvailable.setValue(i?.segmentableQuantityDetail?.totalUnitsAvailable??null),this.offerForm.controls.minimumUnitsPerOrder.setValue(i?.segmentableQuantityDetail?.minimumUnitsPerOrder??null),this.offerForm.controls.isUnlimited.setValue(i?.segmentableQuantityDetail?.isUnlimited??!1),i?.segmentableQuantityDetail?.isUnlimited||this.offerForm.controls.sellByUnitsAvailable.enable(),this.offerForm.controls.isImported.setValue(e?.isImported??null),this.offerForm.controls.labelName.setValue(e?.brandLabel??null),this.offerForm.controls.upc.setValue(this.findItemType(e,"UPC")),this.offerForm.controls.combinationRule.setValue(this.editingOffer().matchPreferences?.combinationRule??"NONE");let c=this.editingOffer()?.matchPreferences?.listingStartTimeUTC,d=c?this.utilitiesService.getStartOfDay(c):this.editingOffer().creationTimeUTC;this.minimumStartDate.set(this.utilitiesService.getStartOfDay(new Date)),this.offerForm.controls.startDate.setValue(new Date(d)),this.offerForm.controls.endDate.setValue(new Date(this.editingOffer().expirationTimeUTC));let f=e?.images;switch(null!=f&&this.imageUrls.set(f.map(v=>v.imageUri)),this.offerForm.controls.sizeUOM.setValue(s?.weight?.weightUOM??null),s?.packingType?.itemId&&s?.packingType?.itemId.toUpperCase()in f6?this.offerForm.controls.unitPackingType.setValue(s?.packingType?.itemId.toUpperCase()):(this.toasterService.displayErrorToast("Invalid Unit Packing Type",`The packing type "${s?.packingType?.itemId}" isn't available so we set the unit packing type to 'Bag'. Please update it as required.`),this.offerForm.controls.unitPackingType.setValue("BAG")),o?.packingType?.itemId&&o?.packingType?.itemId.toUpperCase()in h6?this.offerForm.controls.casePackingType.setValue(o?.packingType?.itemId.toUpperCase()):(this.toasterService.displayErrorToast("Invalid Case Packing Type",`The packing type "${o?.packingType?.itemId}" isn't available so we set the case packing type to 'Case'. Please update it as required.`),this.offerForm.controls.casePackingType.setValue("CASE")),this.offerForm.controls.palletPackingType.setValue(i?.packingType?.itemId&&i?.packingType?.itemId in m6?i.packingType.itemId:"PALLET"),l){case"VEHICLE":this.purchaseItemCosts.set(e.itemCosts);break;case"PALLET":this.purchaseItemCosts.set(i.itemCosts);break;case"CASE":this.purchaseItemCosts.set(o.itemCosts)}if(this.offerForm.controls.nutritionalCategory.setValue(i?.nutritionalCategoryDetails?.itemId??"YELLOW"),this.offerForm.controls.storageType.setValue(i?.storageRequirementDetails?.itemId??"DRY"),this.offerForm.controls.shelfLifeNotes.setValue(i?.shelfLifeNotes??null),this.offerForm.controls.pricingModel.setValue(this.editingOffer()?.pricingModel??"FOB"),this.offerForm.controls.leadTime.setValue(this.editingOffer()?.leadTimeInDays??0),this.editingOffer()?.shippingFirstAvailableTimeUTC&&this.offerForm.controls.shipmentFirstAvailableDate.setValue(new Date(this.editingOffer()?.shippingFirstAvailableTimeUTC)),this.editingOffer()?.shippingDeadlineTimeUTC&&this.offerForm.controls.shipmentDeadlineDate.setValue(new Date(this.editingOffer()?.shippingDeadlineTimeUTC)),o.dimensions&&o.dimensions.length>0){for(const v of o.dimensions)switch(v.dimensionCode){case"LENGTH":this.offerForm.controls.caseLength.setValue(v.value);break;case"WIDTH":this.offerForm.controls.caseWidth.setValue(v.value);break;case"HEIGHT":this.offerForm.controls.caseHeight.setValue(v.value)}this.offerForm.controls.caseDimensionUOM.setValue(o.dimensions[0].dimensionUOM)}a&&(this.offerForm.controls.sizeUOM.setValue("EACH"),this.offerForm.controls.pieceCount.setValue(a.quantity)),this.updateComputedWeights()}updateComputedWeights(e=!0){let i=Number(this.sizeUOMIsWeight()&&"EACH"!=this.offerForm.controls.sizeUOM.value?this.offerForm.controls.size.value:0),o=this.sizeUOMIsWeight()&&"EACH"!=this.offerForm.controls.sizeUOM.value?this.offerForm.controls.sizeUOM.value:"POUND";if(!this.sizeUOMIsWeight()&&this.offerForm.controls.caseWeightPounds.value&&this.offerForm.controls.pack.value&&this.offerForm.controls.pack.value>0&&(i=this.offerForm.controls.caseWeightPounds.value/this.offerForm.controls.pack.value,this.offerForm.controls.size.setValue(i,{emitEvent:!1})),this.computedSizeWeight=this.utilitiesService.convertToPounds(o,i),i&&i>0){let s=Number(this.offerForm.controls.pack.value),a=Number(this.offerForm.controls.casesPerPallet.value),l=Number(this.offerForm.controls.palletsPerFTL.value),c=!1;this.computedCaseWeight!=this.offerForm.controls.caseWeightPounds.value&&(c=!0),this.computedCaseWeight=0,this.computedPalletWeight=0,this.computedTruckWeight=0,null!=s&&s>0&&(this.computedCaseWeight=this.computedSizeWeight*s,c||this.offerForm.controls.caseWeightPounds.setValue(this.computedCaseWeight,{emitEvent:e}),null!=a&&a>0&&this.offerForm.controls.caseWeightPounds.value&&(this.computedPalletWeight=this.offerForm.controls.caseWeightPounds.value*a,null!=l&&l>0&&(this.computedTruckWeight=this.computedPalletWeight*l)))}}loadSubmissionEligibleEntities(){var e=this;return(0,lr.A)(function*(){e.marketplaceService.getOfferSubmissionEligibleEntities("GROCERY").subscribe(i=>{e.submissionEligibleEntities.set(i);const o=e.donorEntityId();if(o){const s=i.find(a=>a.internalDetail?.internalEntityId===o)??null;s&&(e.offerForm.controls.selectedSubmissionEntity.patchValue(s),e.onSubmissionEntitySelected(s))}if(null!=e.editingOffer()){const s=i.filter(a=>a.internalDetail?.internalEntityId==e.editingOffer()?.sourceEntity.internalDetail?.internalEntityId);s.length>0?(e.offerForm.controls.selectedSubmissionEntity.setValue(s[0]),e.onSubmissionEntitySelected(s[0])):e.toasterService.displayErrorToast("Couldn't find supplier!",`We couldn't find the specified supplier (${e.editingOffer()?.sourceEntity.name}) in the list of available suppliers. Please check with us to help.`)}else 1===i.length&&(e.offerForm.controls.selectedSubmissionEntity.setValue(i[0]),e.onSubmissionEntitySelected(i[0]))})})()}loadPurchasingEntities(){this.entityService.getOrderingEligibleEntities().subscribe(e=>{if(this.purchasingEntities.set(e),null!=this.editingOffer()){const i=this.editingOffer()?.matchPreferences?.constraints?.filter(o=>"ALLOW"==o.constraintType);if(i){const o=i.flatMap(a=>a.targetEntities),s=e.filter(a=>o.find(l=>l?.internalDetail?.internalEntityId==a.internalDetail?.internalEntityId));s.length>0&&this.offerForm.controls.allowedListingEntities.setValue(s)}}})}findItemType(e,i){return null==e?null:e.itemTypes.find(o=>o.vocabularyId.toLowerCase()==i.toLowerCase())?.itemId??null}findItemCost(e,i){return null==e||null==e.itemCosts||0==e.itemCosts.length?null:e.itemCosts.find(o=>o.costType==i)??null}loadTaxonomy(){var e=this;return(0,lr.A)(function*(){e.marketplaceService.getTaxonomy().subscribe(i=>{if(e.taxonomy.set(i.filter(o=>!o.key.startsWith("PRODUCE"))),null!=e.editingOffer()){const o=e.findItemType(e.editingOffer()?.contents[0],"FANOTaxonomyCategory");if(o){const a=i.filter(l=>l.key==o);a.length>0?e.offerForm.controls.selectedTaxonomyEntry.setValue(a[0]):e.toasterService.displayErrorToast("Couldn't find item type!",`We couldn't find the specified item category (${o}) in the list of available items. Please check with us to help.`)}const s=e.findItemType(e.editingOffer()?.contents[0],"FANONetSuite");if(s){const a=e.offerForm.controls.selectedTaxonomyEntry.value?.netSuiteItems.find(l=>l.itemId===s);a&&e.offerForm.controls.selectedTaxonomyEntryNetSuiteItem.setValue(a)}}}),e.marketplaceService.getTaxonomyTree().subscribe({next:i=>{const o=i.filter(s=>!s.key.startsWith("PRODUCE"));e.taxonomyTree.set([...o])}})})()}onSubmissionEntitySelected(e){e?.internalDetail?.internalEntityId?(this.loadSubmissionEligibleEntityLocations(e.internalDetail.internalEntityId),this.offerForm.controls.selectedLocationEntity.setValue(null),this.offerForm.controls.selectedLocationEntity.enable()):(this.submissionEligibleEntityLocations.set([]),this.offerForm.controls.selectedLocationEntity.setValue(null),this.offerForm.controls.selectedLocationEntity.disable())}onImagesChanged(e){}loadSubmissionEligibleEntityLocations(e){var i=this;return(0,lr.A)(function*(){i.isSubmissionEligibleEntityLocationsLoading.set(!0),i.marketplaceService.getOfferSubmissionEligibleEntityLocations(e).subscribe({next:o=>{if(i.submissionEligibleEntityLocations.set(o),i.isSubmissionEligibleEntityLocationsLoading.set(!1),i.editingOffer()){const s=o.filter(a=>a.internalDetail?.internalEntityId==i.editingOffer()?.locationEntity.internalDetail?.internalEntityId);i.offerForm.controls.selectedLocationEntity.setValue(s.length>0?s[0]:null)}},error:()=>{i.isSubmissionEligibleEntityLocationsLoading.set(!1),i.toasterService.displayErrorToast("Error","An unexpected error occurred loading the warehouses")}})})()}onCostsUpdated(e){this.purchaseItemCosts.set([...e]),this.offerForm.controls.offerContentCosts.setValue([...e])}getFormErrors(){const e=[];return Object.keys(this.offerForm.controls).forEach(i=>{const o=this.offerForm.get(i);o&&o.invalid&&o.errors&&Object.keys(o.errors).forEach(s=>{e.push(`${this.toTitleCase(i)}: ${this.toTitleCase(s)}`)})}),e}toTitleCase(e){if(!e)return e;let o=e.replace(/([A-Z])/g," $1").trim().replace(/\b\w/g,s=>s.toUpperCase());return o.includes("U T C")&&(o=o.replace("U T C","UTC")),o}displayFormErrors(){this.formErrors.set([]),this.formErrors.set(this.getFormErrors())}submitOffer(){if(this.isSubmittingOffer()||this.offerForm.invalid||this.priceRestrictionErrorMessage())return;this.isSubmittingOffer.set(!0);const e=this.getBaseEditableOffer(),i=[{vocabularyId:"FANOTaxonomyCategory",itemId:this.offerForm.controls.selectedTaxonomyEntry.value.key},{vocabularyId:"FANONetSuite",itemId:this.offerForm.controls.selectedTaxonomyEntryNetSuiteItem.value?this.offerForm.controls.selectedTaxonomyEntryNetSuiteItem.value.itemId:this.offerForm.controls.selectedTaxonomyEntry.value?.defaultNetSuiteItemId}];null!==this.offerForm.controls.upc.value&&this.offerForm.controls.upc.value.length>0&&i.push({vocabularyId:"upc",itemId:this.offerForm.controls.upc.value});const o=[];for(const M of this.imageUrls())o.push({imageUri:M});let s=!1;try{1==e.contents.length&&1==e.contents[0].contents.length&&1==e.contents[0].contents[0].contents.length&&1==e.contents[0].contents[0].contents[0].contents.length&&"STRUCTURE"==e.contentStructure&&(s=!0)}catch{}if(0==s)return this.toasterService.displayErrorToast("Unable to edit offer","This offer is not in the expected form of a vendor offer and cannot be edited here."),void this.isSubmittingOffer.set(!1);const a=[];this.offerForm.controls.caseLength.value&&a.push(this.getSizeDimension("LENGTH",this.offerForm.controls.caseLength.value)),this.offerForm.controls.caseHeight.value&&a.push(this.getSizeDimension("HEIGHT",this.offerForm.controls.caseHeight.value)),this.offerForm.controls.caseWidth.value&&a.push(this.getSizeDimension("WIDTH",this.offerForm.controls.caseWidth.value));const l=[];let c=this.offerForm.controls.allowedListingEntities.value;null!=c&&c.length>0&&l.push({constraintType:"ALLOW",targetEntities:c}),e.receiptToEntity=this.offerForm.controls.selectedSubmissionEntity.value,e.sourceEntity=this.offerForm.controls.selectedSubmissionEntity.value,e.locationEntity=this.offerForm.controls.selectedLocationEntity.value,e.title=this.offerForm.controls.offerTitle.value,e.description=this.offerForm.controls.offerDescription.value,e.sourceIdentifier=this.offerForm.controls.supplierReferenceNumber.value,e.matchPreferences={combinationRule:this.offerForm.controls.combinationRule.value,constraints:l,blockAllMatching:this.offerForm.controls.isPaused.value,listingStartTimeUTC:this.utilitiesService.getStartOfDay(this.offerForm.controls.startDate.value).getTime()},e.creationTimeUTC=Date.now(),e.leadTimeInDays=this.offerForm.controls.leadTime.value,e.expirationTimeUTC=this.utilitiesService.getEndOfDay(this.offerForm.controls.endDate.value).getTime(),e.shippingDeadlineTimeUTC=this.offerForm.controls.shipmentDeadlineDate.value?this.utilitiesService.getEndOfDay(this.offerForm.controls.shipmentDeadlineDate.value).getTime():null,e.shippingFirstAvailableTimeUTC=this.offerForm.controls.shipmentFirstAvailableDate.value?this.utilitiesService.getStartOfDay(this.offerForm.controls.shipmentFirstAvailableDate.value).getTime():null,e.pricingModel=this.offerForm.controls.pricingModel.value,"DELIVERED"==e.pricingModel&&(e.requireSingleTransportationMethod=!0,e.pickupRule="NONE",e.transportationContext=[{offeringEntity:this.offerForm.controls.selectedLocationEntity.value,pricePerOffer:0,pricePerDistanceUnit:0,distanceUOM:"MILE",restrictToRecipientEntity:[]}]),"FOB"===e.pricingModel&&(e.requireSingleTransportationMethod=!1,e.pickupRule="ARRANGED",e.transportationContext=[]);let d={};d=this.sizeUOMIsWeight()?{value:this.offerForm.controls.size.value,weightUOM:this.offerForm.controls.sizeUOM.value,isEstimated:!1}:{value:this.offerForm.controls.caseWeightPounds.value/this.offerForm.controls.pack.value,weightUOM:"POUND",isEstimated:!0};let f=null;this.sizeUOMIsWeight()||(f=1==e.contents[0].contents[0].contents[0].contents[0].contents.length?e.contents[0].contents[0].contents[0].contents[0].contents[0]:{contentItemId:crypto.randomUUID(),title:"",description:"",packingType:{unitLevel:"PIECE",vocabularyId:bX,itemId:"PIECE"},quantity:0,isQuantityEstimated:!1,weight:{weightUOM:"POUND",isEstimated:!1,value:0},itemTypes:[],brandLabel:"",qualityCodes:[],productDateCodes:[],images:[],dimensions:[],itemCosts:[],contents:[]},f=this.populateContentItem({existingItem:f,itemTypes:i,images:o,unitsPerParent:this.offerForm.controls.pieceCount.value,unitsPerFTL:this.offerForm.controls.palletsPerFTL.value*this.offerForm.controls.casesPerPallet.value*this.offerForm.controls.pack.value*this.offerForm.controls.pieceCount.value,unitWeight:{value:d.value/this.offerForm.controls.pieceCount.value,weightUOM:"POUND",isEstimated:!0},costs:[],packingType:{unitLevel:"PIECE",vocabularyId:bX,itemId:"PIECE"},isOrderedUnit:!1,childContentItems:[]}));const v=this.populateContentItem({existingItem:e.contents[0].contents[0].contents[0].contents[0],itemTypes:i,images:o,unitsPerParent:this.offerForm.controls.pack.value,unitsPerFTL:this.offerForm.controls.palletsPerFTL.value*this.offerForm.controls.casesPerPallet.value*this.offerForm.controls.pack.value,unitWeight:d,costs:[],packingType:{unitLevel:"EACH",vocabularyId:_X,itemId:this.offerForm.controls.unitPackingType.value},isOrderedUnit:!1,childContentItems:f?[f]:[]}),w=this.populateContentItem({existingItem:e.contents[0].contents[0].contents[0],itemTypes:i,images:o,unitsPerParent:this.offerForm.controls.casesPerPallet.value,unitsPerFTL:this.offerForm.controls.palletsPerFTL.value*this.offerForm.controls.casesPerPallet.value,unitWeight:{value:this.offerForm.controls.caseWeightPounds.value,weightUOM:"POUND",isEstimated:!1},costs:[],packingType:{unitLevel:"CASE",vocabularyId:vX,itemId:this.offerForm.controls.casePackingType.value},isOrderedUnit:!1,childContentItems:[v],dimensions:a}),x=this.populateContentItem({existingItem:e.contents[0].contents[0],itemTypes:i,images:o,unitsPerParent:this.offerForm.controls.palletsPerFTL.value,unitsPerFTL:this.offerForm.controls.palletsPerFTL.value,unitWeight:{value:this.computedPalletWeight,weightUOM:"POUND",isEstimated:!1},costs:this.getCostsBlock("PALLET"),packingType:{unitLevel:"PALLET",vocabularyId:d6,itemId:this.offerForm.controls.palletPackingType.value},isOrderedUnit:"PALLET"===this.offerForm.controls.sellByUnit.value,childContentItems:[w]}),I=this.populateContentItem({existingItem:e.contents[0],itemTypes:i,images:o,unitsPerParent:1,unitsPerFTL:1,unitWeight:{value:this.computedTruckWeight,weightUOM:"POUND",isEstimated:!1},costs:this.getCostsBlock("VEHICLE"),packingType:{unitLevel:"VEHICLE",vocabularyId:p6,itemId:"TRAILER"},isOrderedUnit:"VEHICLE"===this.offerForm.controls.sellByUnit.value,childContentItems:[x]});e.contents=[I],e.internalProgramCode="GROCERY",this.marketplaceService.postOffer(e).subscribe({next:M=>{this.toasterService.displaySuccessToast("Offer Submitted","Your offer was submitted successfully"),this.onOfferVersionCreated.emit(M.offer),this.isSubmittingOffer.set(!1)},error:M=>{let F=M.error,re="";for(const pe of F.errors)re+=pe.message+"; ";re.endsWith("; ")&&(re=re.slice(0,-2)),this.toasterService.displayErrorToast("Failed to save offer!",re),this.isSubmittingOffer.set(!1)},complete:()=>{}})}getSizeDimension(e,i){return{dimensionCode:e,dimensionUOM:this.offerForm.controls.caseDimensionUOM.value,value:i,isEstimated:!1}}getCostsBlock(e){const i=this.offerForm.controls.sellByUnit.value;if(e===i)return this.purchaseItemCosts();const o=[];for(const s of this.purchaseItemCosts())switch(s.applyTo){case"WEIGHT":if("CASE"==e||"EACH"==e||"PIECE"==e)throw new Error("Unexpected costs level - costs should only be computable by purchased units, and these offers don't support purchasing at the case, each , or piece level");break;case"QUANTITY":{if(!this.offerForm.controls.palletsPerFTL.value||!this.offerForm.controls.casesPerPallet.value||!this.offerForm.controls.pack.value)throw Error("Cannot compute adjusted costs without palletsPerFTL, casePerPallet, and pack");let a=0,l=0,c=0;switch(i){case"CASE":c=s.cost,l=s.cost*this.offerForm.controls.casesPerPallet.value;break;case"PALLET":l=s.cost,c=s.cost/this.offerForm.controls.casesPerPallet.value}switch(e){case"VEHICLE":a=this.round(l*this.offerForm.controls.palletsPerFTL.value);break;case"PALLET":a=this.round(l);break;case"CASE":a=this.round(c);break;case"EACH":a=this.round(c/this.offerForm.controls.pack.value)}o.push({applyTo:s.applyTo,cost:a,costType:s.costType,currencyCode:s.currencyCode,modifiers:s.modifiers})}}return o}round(e){return parseFloat(e.toFixed(8))}getBaseEditableOffer(){return null!=this.editingOffer()?this.editingOffer():{offerId:crypto.randomUUID(),offerVersionId:null,offerCode:null,user:null,receiptToEntity:{},sourceEntity:{},locationEntity:{},contentStructure:"STRUCTURE",designationCode:"PURCHASE",title:"",description:"",attachments:[],reasonCode:"SALE",costs:[],accessWindows:[],pickupRule:"NONE",sourceIdentifier:null,transportationContext:[],matchPreferences:{combinationRule:"NONE",constraints:[],blockAllMatching:!1,listingStartTimeUTC:null},creationTimeUTC:(new Date).getTime(),leadTimeInDays:null,expirationTimeUTC:this.utilitiesService.getEndOfDay(new Date).getTime(),contents:[{contentItemId:crypto.randomUUID(),title:"",description:"",packingType:{unitLevel:"VEHICLE",vocabularyId:p6,itemId:"TRAILER"},quantity:1,isQuantityEstimated:!1,weight:{weightUOM:"POUND",isEstimated:!1,value:0},itemTypes:[],brandLabel:"",qualityCodes:[],productDateCodes:[],images:[],dimensions:[],itemCosts:[],contents:[{contentItemId:crypto.randomUUID(),title:"",description:"",packingType:{unitLevel:"PALLET",vocabularyId:d6,itemId:"PALLET"},quantity:1,isQuantityEstimated:!1,weight:{weightUOM:"POUND",isEstimated:!1,value:0},itemTypes:[],brandLabel:"",qualityCodes:[],productDateCodes:[],images:[],dimensions:[],itemCosts:[],segmentableQuantityDetail:null,contents:[{contentItemId:crypto.randomUUID(),title:"",description:"",packingType:{unitLevel:"CASE",vocabularyId:vX,itemId:"CASE"},quantity:0,isQuantityEstimated:!1,weight:{weightUOM:"POUND",isEstimated:!1,value:0},itemTypes:[],brandLabel:"",qualityCodes:[],productDateCodes:[],images:[],dimensions:[],itemCosts:[],contents:[{contentItemId:crypto.randomUUID(),title:"",description:"",packingType:{unitLevel:"EACH",vocabularyId:_X,itemId:"CAN"},quantity:0,isQuantityEstimated:!1,weight:{weightUOM:"POUND",isEstimated:!1,value:0},itemTypes:[],brandLabel:"",qualityCodes:[],productDateCodes:[],images:[],dimensions:[],itemCosts:[],contents:[]}]}]}]}]}}populateContentItem(e){return e.existingItem.itemTypes=e.itemTypes,e.existingItem.images=e.images,e.existingItem.itemCosts=e.costs,e.existingItem.packingType=e.packingType,e.isOrderedUnit&&(e.existingItem.segmentableQuantityDetail={totalUnitsAvailable:1==this.offerForm.controls.isUnlimited.value?null:Number(this.offerForm.controls.sellByUnitsAvailable.value),minimumUnitsPerOrder:this.offerForm.controls.minimumUnitsPerOrder.value,isUnlimited:this.offerForm.controls.isUnlimited.value}),e.existingItem.title=this.offerForm.controls.offerTitle.value,e.existingItem.description=this.offerForm.controls.itemDescription.value,e.existingItem.weight=e.unitWeight,e.existingItem.brandLabel=this.offerForm.controls.labelName.value,e.existingItem.quantity=e.unitsPerParent,e.existingItem.contents=e.childContentItems,e.existingItem.isImported=this.offerForm.controls.isImported.value,e.existingItem.shelfLifeNotes=this.offerForm.controls.shelfLifeNotes.value??void 0,e.existingItem.nutritionalCategoryDetails=this.offerForm.controls.nutritionalCategory.value?cP[this.offerForm.controls.nutritionalCategory.value].entry:null,e.existingItem.storageRequirementDetails=this.offerForm.controls.storageType.value?uP[this.offerForm.controls.storageType.value].entry:null,e.existingItem.vehiclePackingEstimates=[{vehicleClass:"TRAILER",estimatedFillQuantity:e.unitsPerFTL}],e.dimensions&&(e.existingItem.dimensions=e.dimensions),e.existingItem}locationEntitySelected(e){if(this.calculateRequiredCosts(e),!e)return;let i=1,o=0,s=!1,a=!1;if("DonorLocation"===e.internalDetail?.internalEntityTypeCode&&(i=e.internalDetail.internalAttributes?.minimumOrderQuantityPallets??i,o=e.internalDetail.internalAttributes?.leadTimeDays??o),i>1&&this.offerForm.controls.minimumUnitsPerOrder.value!==i){if("PALLET"!==this.offerForm.controls.sellByUnit.value)throw new Error("Failed to set minimum order quantity because quantity is expressed in pallets.");s=!0,this.offerForm.controls.minimumUnitsPerOrder.setValue(i)}if(o>0&&this.offerForm.controls.leadTime.value!==o&&(a=!0,this.offerForm.controls.leadTime.setValue(o)),s||a){let l="This warehouse has some fixed settings we applied: ";s&&(l+=`Minimum Order Quantity (MOQ) was changed to ${i} pallets. `),a&&(l+=`Days lead time was changed to ${o}. `),this.toasterService.displayInfoToast("Settings Changed!",l)}}calculateRequiredCosts(e){if(this.taxonomyHasCostRestrictions.set(!1),this.offerForm.controls.pricingModel.enable(),this.priceRestrictionErrorMessage.set(""),!e)return;const i=this.offerForm.controls.casesPerPallet.value,o=this.offerForm.controls.selectedTaxonomyEntryNetSuiteItem.value,s=this.offerForm.controls.selectedSubmissionEntity.value?.internalDetail?.internalEntityId;if(!i||!o||!s||0===o.pricingRestrictions.length)return;if(!o.pricingRestrictions.some(c=>c.donorEntityId===s)){const c=o.pricingRestrictions.map(f=>f.donorEntityId),d=this.submissionEligibleEntities().filter(f=>c.indexOf(f?.internalDetail?.internalEntityId??0)>=0).map(f=>`${f.name}`).join(", ");return void this.priceRestrictionErrorMessage.set(`Invalid vendor for selected NetSuite discount item. Valid vendors are: ${d}`)}const a=e.internalDetail?.internalEntityId,l=o.pricingRestrictions.find(c=>c.donorLocationEntityId===a);if(l)this.costEditorComponent().setItemCosts([{applyTo:"QUANTITY",cost:i*l.memberPrice,costType:"PRODUCT_COST",currencyCode:"USD",modifiers:[]}]),this.taxonomyHasCostRestrictions.set(!0),this.offerForm.controls.pricingModel.disable();else{const c=o.pricingRestrictions.map(v=>v.donorLocationEntityId),f=this.submissionEligibleEntityLocations().filter(v=>c.indexOf(v.internalDetail?.internalEntityId??0)>=0).map(v=>`${v.name} (${v.addressLine1})`).join(", ");this.priceRestrictionErrorMessage.set(`Invalid warehouse for selected NetSuite discount item. Valid warehouses are: ${f}`)}}taxonomySelected(e){let i=this.offerForm.controls.selectedTaxonomyEntryNetSuiteItem.value;i&&!e?.netSuiteItems.some(o=>o.itemId===i.itemId)&&this.offerForm.controls.selectedTaxonomyEntryNetSuiteItem.setValue(null)}ngOnDestroy(){this.formSubscriptions.forEach(e=>e.unsubscribe())}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-offer-form"]],viewQuery:function(i,o){1&i&&(n.wEZ(o.offerDescriptionDiv,$Dt,5),n.wEZ(o.costEditorComponent,GX,5)),2&i&&n.NyB(2)},inputs:{formTitle:[1,"formTitle"],editingOffer:[1,"editingOffer"],donorEntityId:[1,"donorEntityId"],commandText:[1,"commandText"],hideSubmit:[1,"hideSubmit"]},outputs:{onOfferVersionCreated:"onOfferVersionCreated",onStatusChange:"onStatusChange"},decls:215,vars:109,consts:[["offerDescription",""],["group",""],["item",""],["header",""],[1,"tw-m-auto","tw-w-full","tw-max-w-[1050px]"],[1,"tw-basis-128","tw-grid","tw-grid-cols-1","tw-grid-rows-1"],[1,"tw-grid-row","tw-mb-8"],[1,"tw-col-span-full","tw-pt-8",3,"submit","formGroup"],[1,"tw-flex","tw-flex-wrap","md:tw-flex-row-reverse"],[1,"tw-flex","tw-w-full","tw-gap-y-8","md:tw-flex-1"],[1,"tw-grid","tw-w-full","tw-grid-cols-1","tw-gap-x-4","tw-gap-y-8","md:tw-grid-cols-2"],[1,"tw-col-span-2"],[1,"tw-w-full"],["id","offerTitle","pInputText","","autocomplete","off",1,"tw-w-full",3,"formControl","required"],["for","offerTitle"],[1,"tw-text-red-500"],[1,"w-full"],["id","offerDescription","pTextarea","","autocomplete","off",1,"w-full",3,"formControl","required"],["for","offerDescription"],[1,"tw-col-span-2","md:tw-col-span-1"],["placeholder","Warehouse",3,"onSingleItemSelected","showName","showAddress","required","disabled","entitySummaries","formControl"],[1,"tw-mb-4","tw-flex","tw-w-full","tw-gap-x-4"],["placeholder","Category / Type (Type to Search)",1,"tw-w-full",3,"taxonomy","taxonomyTree","required","formControl"],[1,"tw-w-44"],["id","upc","pInputText","","autocomplete","off",1,"w-full",3,"formControl","required"],["for","upc"],["id","itemDescription","pInputText","","autocomplete","off","maxlength","30",1,"w-full",3,"formControl","required"],["for","itemDescription"],[1,"tw-y-6","tw-flex","tw-w-full","tw-flex-wrap","md:tw-hidden"],[1,"tw-mb-6","tw-block","tw-text-lg","tw-font-semibold"],[1,"tw-w-full","md:tw-w-64"],[1,"tw-mr-4"],["id","itemImages",3,"imageUrlsChange","onImagesChanged","allowUpload","imageUrls"],[1,"tw-flex-1","tw-gap-y-8"],[1,"tw-grid","tw-grid-cols-1","tw-gap-x-4","tw-gap-y-8","md:tw-mb-4","md:tw-grid-cols-2"],["variant","in",1,"tw-basis-2/5"],[1,"tw-basis-3/5","!tw-justify-end"],["id","sizeUOM","autocomplete","off","size","small","optionValue","id","optionLabel","details.displayName",1,"!tw-max-w-32",3,"formControl","group","options","overlayOptions"],[1,"tw-px-2"],["id","unitPackingType","optionValue","id","optionLabel","details.displayName","autocomplete","off","size","small",1,"!tw-max-w-32",3,"formControl","options","overlayOptions"],["id","pack","autocomplete","off",1,"",3,"min","formControl"],["for","pack"],[1,"tw-pr-2"],[1,"pi","pi-exclamation-circle","tw-pr-2",3,"title"],["id","caseWeightPounds","mode","decimal","pTooltip","Case weight, in pounds","autocomplete","off",1,"!tw-w-[80px]",3,"min","maxFractionDigits","required","formControl"],["id","casePackingType","autocomplete","off","optionValue","id","optionLabel","details.displayName","size","small",1,"!tw-max-w-24",3,"formControl","options","overlayOptions"],["id","casesPerPallet","autocomplete","off",1,"",3,"min","formControl"],["for","casesPerPallet"],["id","palletPackingType","autocomplete","off","optionValue","id","optionLabel","details.displayName","size","small",1,"!tw-max-w-32",3,"formControl","options","overlayOptions"],["id","palletsPerFTL","autocomplete","off",1,"",3,"min","formControl"],["for","palletsPerFTL"],[1,"tw-justify-end"],["id","labelName","pInputText","","autocomplete","off",1,"tw-w-full",3,"formControl"],["for","labelName"],[1,"tw-w-full","tw-flex-none","tw-content-center"],[1,"always-float","tw-flex-1"],["id","isImported","optionValue","value","optionLabel","label",1,"p-inputwrapper-filled","tw-h-10",3,"formControl","autoDisplayFirst","options"],["for","isImported"],[1,"tw-flex-1"],["id","nutritionalCategory","optionValue","entry.itemId","optionLabel","displayDetails.displayName",1,"tw-h-10",3,"formControl","options","required"],["for","nutritionalCategory"],["id","storageType","optionValue","entry.itemId","optionLabel","displayDetails.displayName",1,"tw-h-10",3,"formControl","options","required"],["for","storageType"],["id","shelfLifeNotes","pTextarea","","autocomplete","off",1,"tw-w-full",3,"formControl"],["for","shelfLifeNotes"],[1,"tw-max-w-[514px]","tw-flex-1"],[1,"tw-basis-1/5"],[1,"tw-justify-start","tw-text-wrap","tw-text-center"],["variant","in",1,"tw-basis-1/5"],["id","caseLength","maxFractionDigits","1","inputStyleClass","tw-min-w-0","autocomplete","off",1,"tw-min-w-0",3,"min","formControl"],["for","caseLength"],["id","caseWidth","maxFractionDigits","1","inputStyleClass","tw-min-w-0","autocomplete","off",1,"tw-min-w-0",3,"min","formControl"],["for","caseWidth"],["id","caseHeight","maxFractionDigits","1","inputStyleClass","tw-min-w-0","autocomplete","off",1,"tw-min-w-0",3,"min","formControl"],["for","caseHeight"],["id","caseDimensionUOM","optionValue","id","optionLabel","details.displayName",1,"tw-h-10",3,"formControl","options"],[1,"tw-mb-8","tw-block","tw-text-lg","tw-font-semibold"],[1,"tw-flex","tw-flex-1","tw-flex-col","tw-gap-y-8"],[1,"tw-flex","tw-gap-x-4"],["id","sellByUnit","optionLabel","displayName","optionValue","id","placeholder","Sell by Unit",1,"tw-h-10",3,"formControl","options","autoDisplayFirst","overlayOptions"],["for","sellByUnit"],["id","combinationRule","optionValue","id","optionLabel","details.displayName","appendTo","body",1,"tw-h-10",3,"formControl","options","autoDisplayFirst"],["for","combinationRule"],["id","minimumUnitsPerOrder","autocomplete","off","inputStyleClass","",1,"tw-w-full",3,"min","formControl","required"],["for","minimumUnitsPerOrder"],[1,"tw-flex","tw-flex-1"],[1,"tw-mr-2","tw-flex-auto"],["id","sellByUnitsAvailable","autocomplete","off","inputStyleClass","",1,"tw-w-full",3,"min","formControl"],["for","sellByUnitsAvailable"],[1,"tw-w-36","tw-flex-none","tw-content-center"],["inputId","isUnlimited",3,"formControl","binary"],["for","isUnlimited",1,"tw-mb-0","tw-ml-2","tw-cursor-pointer"],[1,"tw-grid","tw-grid-cols-4","tw-gap-x-4"],["inputStyleClass","prime-input w-full display-block","inputId","endDate","showIcon","","title","The last day this offer will be available for orders.","appendTo","body","iconDisplay","input",1,"w-full","prime-input",3,"formControl","minDate","required"],["for","endDate"],["id","leadTime","title","The number of days are required to prepare orders in the warehouse prior to shipping.","autocomplete","off","inputStyleClass","",1,"tw-w-full",3,"min","formControl"],["for","leadTime"],["inputStyleClass","prime-input w-full display-block","inputId","shipmentFirstAvailableDate","showIcon","","title","If specified, this is the first possible date on which this offer can ship. If not supplied, the offer start date is used. Offers are always always subject to the lead time as well such that, for any order, the first available shipment date will be either 'today + lead time' or this shipment first available date, whichever is greater.","appendTo","body","iconDisplay","input",1,"w-full","prime-input",3,"formControl","minDate"],["for","shipmentFirstAvailableDate"],["inputStyleClass","prime-input w-full display-block","inputId","shipmentDeadlineDate","showIcon","","title","If specified, this is the last possible date on which the product must leave the warehouse. It always must be at least (Days Lead Time) after the Offer End Date.","appendTo","body","iconDisplay","input",1,"w-full","prime-input",3,"formControl","minDate"],["for","shipmentDeadlineDate"],[1,"tw-bg-white"],[1,"tw-text-sm","tw-text-slate-500"],["inputStyleClass","prime-input w-full display-block","inputId","startDate","showIcon","","appendTo","body","iconDisplay","input",1,"w-full","prime-input",3,"formControl"],["for","startDate"],[1,"tw-flex-none","tw-content-center"],["inputId","isPaused",3,"formControl","binary"],["for","isPaused",1,"tw-mb-0","tw-ml-2","tw-cursor-pointer"],[1,"tw-mt-8","tw-w-full","md:tw-col-span-2"],[1,"tw-flex"],[1,"tw-mt-4","tw-flex","tw-justify-end"],["placeholder","Supplier",3,"onSingleItemSelected","entitySummaries","required","formControl"],["placeholder","Category / Type (Type to Search)",1,"tw-w-full",3,"onItemSelected","taxonomy","taxonomyTree","required","formControl"],["inputId","netSuiteItems","optionLabel","itemId","appendTo","body",1,"tw-h-10",3,"options","formControl","overlayOptions"],["for","netSuiteItems"],[1,"flex","items-center","gap-2"],[1,"tw-font-semibold"],[1,"tw-text-xs","tw-font-light"],["id","size","autocomplete","off","mode","decimal",3,"min","formControl","maxFractionDigits"],["for","size"],["id","pieceCount","autocomplete","off",3,"min","formControl","maxFractionDigits"],["for","pieceCount"],[1,"tw-font-bold","tw-text-orange-500"],[1,"tw-pl-2"],[1,"tw-text-xs","tw-text-slate-400"],[1,"tw-my-8"],["id","pricingModel","optionValue","id","optionLabel","details.displayName","placeholder","Pricing Type",1,"tw-h-10",3,"formControl","options"],[1,"tw-block",3,"onUpdate","purchasingEntities","itemCosts","pack","casesPerPallet","unitsPerCase","palletsPerFTL","canRemove","costRestrictionsActive"],[1,"tw-ml-1","tw-text-red-500"],["placeholder","Restrict Listings To...","appendTo","body",1,"tw-w-full","tw-max-w-full",3,"multiselect","formControl","entitySummaries"],[1,"w-gap-2","tw-mt-4","tw-w-full"],[1,"tw-rounded-md","tw-p-3",3,"ngClass"],[1,"tw-flex","tw-items-center"],[1,"tw-font-medium"],["type","button",1,"btn","btn-default","tw-mr-4"],["type","button",1,"btn","btn-primary",3,"click","disabled"],["type","button",1,"btn","btn-default","tw-mr-4",3,"click"]],template:function(i,o){if(1&i){const s=n.RV6();n.DNE(0,WDt,2,1,"page-heading"),n.j41(1,"div",4)(2,"div",5)(3,"div",6)(4,"form",7),n.bIt("submit",function(){return n.eBV(s),n.Njj(o.submitOffer())}),n.j41(5,"div",8)(6,"div",9)(7,"div",10)(8,"div",11)(9,"p-floatlabel",12),n.nrm(10,"input",13),n.j41(11,"label",14),n.EFF(12,"Offer/Item Title "),n.j41(13,"span",15),n.EFF(14,"*"),n.k0s()()()(),n.j41(15,"div",11)(16,"p-floatlabel",16)(17,"textarea",17,0),n.EFF(19,"                  "),n.k0s(),n.j41(20,"label",18),n.EFF(21,"Offer Details"),n.k0s()()(),n.DNE(22,zDt,2,3,"div",19),n.j41(23,"div",19)(24,"app-entity-summary-selection",20),n.bIt("onSingleItemSelected",function(l){return n.eBV(s),n.Njj(o.locationEntitySelected(l))}),n.k0s()(),n.j41(25,"div",11)(26,"div",21),n.DNE(27,qDt,1,4,"app-item-type-selection",22)(28,JDt,6,3,"p-floatlabel",23),n.k0s()(),n.j41(29,"p-floatlabel",19),n.nrm(30,"input",24),n.j41(31,"label",25),n.EFF(32,"UPC/SKU "),n.j41(33,"span",15),n.EFF(34,"*"),n.k0s()()(),n.j41(35,"p-floatlabel",19),n.nrm(36,"input",26),n.j41(37,"label",27),n.EFF(38,"Variety/Description "),n.j41(39,"span",15),n.EFF(40,"*"),n.k0s()()()()(),n.j41(41,"div",28),n.nrm(42,"p-divider"),n.j41(43,"span",29),n.EFF(44," Images "),n.k0s()(),n.j41(45,"div",30)(46,"div",31)(47,"app-item-image",32),n.mxI("imageUrlsChange",function(l){return n.eBV(s),n.DH7(o.imageUrls,l)||(o.imageUrls=l),n.Njj(l)}),n.bIt("onImagesChanged",function(l){return n.eBV(s),n.Njj(o.onImagesChanged(l))}),n.k0s()()()(),n.nrm(48,"p-divider"),n.j41(49,"span",29),n.EFF(50," Product Details "),n.k0s(),n.j41(51,"div",33)(52,"div",34)(53,"p-inputGroup"),n.DNE(54,ZDt,6,3,"p-iftalabel",35)(55,ekt,6,4,"p-iftalabel",35),n.j41(56,"p-inputgroup-addon",36)(57,"p-select",37),n.DNE(58,tkt,3,1,"ng-template",null,1,n.C5r)(60,nkt,2,1,"ng-template",null,2,n.C5r),n.k0s(),n.j41(62,"span",38),n.EFF(63,"/"),n.k0s(),n.nrm(64,"p-select",39),n.k0s()(),n.j41(65,"p-input-group")(66,"p-iftalabel",35),n.nrm(67,"p-inputnumber",40),n.j41(68,"label",41),n.EFF(69),n.j41(70,"span",15),n.EFF(71,"*"),n.k0s()()(),n.j41(72,"p-inputgroup-addon",36)(73,"span",42),n.DNE(74,ikt,1,2,"i",43),n.nrm(75,"p-inputnumber",44),n.EFF(76," lbs / "),n.k0s(),n.nrm(77,"p-select",45),n.k0s()(),n.j41(78,"p-input-group")(79,"p-iftalabel",35),n.nrm(80,"p-inputnumber",46),n.j41(81,"label",47),n.EFF(82),n.j41(83,"span",15),n.EFF(84,"*"),n.k0s()()(),n.j41(85,"p-inputgroup-addon",36)(86,"span",42),n.EFF(87),n.nI1(88,"number"),n.k0s(),n.nrm(89,"p-select",48),n.k0s()(),n.j41(90,"p-input-group")(91,"p-iftalabel",35),n.nrm(92,"p-inputnumber",49),n.j41(93,"label",50),n.EFF(94),n.j41(95,"span",15),n.EFF(96,"*"),n.k0s()()(),n.j41(97,"p-inputgroup-addon",36)(98,"div",51),n.EFF(99),n.nI1(100,"number"),n.k0s()()(),n.j41(101,"p-floatlabel",16),n.nrm(102,"input",52),n.j41(103,"label",53),n.EFF(104,"Brand / Label Name"),n.k0s()(),n.j41(105,"div",54)(106,"p-floatlabel",55),n.nrm(107,"p-select",56),n.j41(108,"label",57),n.EFF(109,"Product is Imported?"),n.k0s()()(),n.j41(110,"p-floatlabel",58),n.nrm(111,"p-select",59),n.j41(112,"label",60),n.EFF(113,"HER Nutritional Category: "),n.j41(114,"span",15),n.EFF(115,"*"),n.k0s()()(),n.j41(116,"p-floatlabel",58),n.nrm(117,"p-select",61),n.j41(118,"label",62),n.EFF(119,"Storage Type: "),n.j41(120,"span",15),n.EFF(121,"*"),n.k0s()()(),n.j41(122,"p-floatlabel",58),n.nrm(123,"textarea",63),n.j41(124,"label",64),n.EFF(125,"Shelf Life Notes"),n.k0s()(),n.j41(126,"p-input-group",65)(127,"p-inputgroup-addon",66)(128,"div",67),n.EFF(129," Case Dimensions "),n.k0s()(),n.j41(130,"p-iftalabel",68),n.nrm(131,"p-inputnumber",69),n.j41(132,"label",70),n.EFF(133,"Length"),n.k0s()(),n.j41(134,"p-iftalabel",68),n.nrm(135,"p-inputnumber",71),n.j41(136,"label",72),n.EFF(137,"Width"),n.k0s()(),n.j41(138,"p-iftalabel",68),n.nrm(139,"p-inputnumber",73),n.j41(140,"label",74),n.EFF(141,"Height"),n.k0s()(),n.j41(142,"p-inputgroup-addon",66),n.nrm(143,"p-select",75),n.k0s()()()(),n.nrm(144,"p-divider"),n.j41(145,"span",76),n.EFF(146," Pricing and Orders "),n.k0s(),n.j41(147,"div",77)(148,"div",78)(149,"p-floatlabel",58),n.nrm(150,"p-select",79),n.j41(151,"label",80),n.EFF(152,"Sell by:"),n.k0s()(),n.j41(153,"p-floatlabel",58)(154,"p-select",81),n.DNE(155,rkt,5,2,"ng-template",null,2,n.C5r),n.k0s(),n.j41(157,"label",82),n.EFF(158,"Order Combination Rules:"),n.k0s()()(),n.j41(159,"div",78)(160,"p-floatlabel",58),n.nrm(161,"p-inputnumber",83),n.j41(162,"label",84),n.EFF(163),n.j41(164,"span",15),n.EFF(165,"*"),n.k0s()()(),n.j41(166,"div",85)(167,"p-floatlabel",86),n.nrm(168,"p-inputnumber",87),n.j41(169,"label",88),n.EFF(170,"Quantity Available"),n.k0s()(),n.j41(171,"div",89),n.nrm(172,"p-checkbox",90),n.j41(173,"label",91),n.EFF(174," Always Available "),n.k0s()()()(),n.j41(175,"div",92)(176,"p-floatlabel"),n.nrm(177,"p-datepicker",93),n.j41(178,"label",94),n.EFF(179,"Offer End Date / Last Date to Order "),n.j41(180,"span",15),n.EFF(181,"*"),n.k0s()()(),n.j41(182,"p-floatlabel"),n.nrm(183,"p-inputnumber",95),n.j41(184,"label",96),n.EFF(185,"Days Lead Time"),n.k0s()(),n.j41(186,"p-floatlabel"),n.nrm(187,"p-datepicker",97),n.j41(188,"label",98),n.EFF(189,"Earliest Shipment Date"),n.k0s()(),n.j41(190,"p-floatlabel"),n.nrm(191,"p-datepicker",99),n.j41(192,"label",100),n.EFF(193,"Last Shipment Date"),n.k0s()()(),n.j41(194,"p-panel",101),n.DNE(195,akt,10,10)(196,lkt,2,1,"p",102),n.k0s()(),n.nrm(197,"p-divider"),n.j41(198,"span",76),n.EFF(199," Listing and Visibility "),n.k0s(),n.j41(200,"div",10)(201,"p-floatlabel",16),n.nrm(202,"p-datepicker",103),n.j41(203,"label",104),n.EFF(204," Delay Listings Until (Start Date) "),n.j41(205,"span",15),n.EFF(206,"*"),n.k0s()()(),n.j41(207,"div",105),n.nrm(208,"p-checkbox",106),n.j41(209,"label",107),n.EFF(210," Don't list this offer (start paused) "),n.k0s()()(),n.DNE(211,ckt,2,3,"div",108)(212,hkt,10,7,"div",109)(213,mkt,4,3,"div",110),n.k0s()()()(),n.nrm(214,"p-confirmdialog")}if(2&i){let s,a,l,c;n.vxM(null!==(s=o.formTitle())&&void 0!==s&&s?0:-1),n.R7$(4),n.Y8G("formGroup",o.offerForm),n.R7$(6),n.Y8G("formControl",o.offerForm.controls.offerTitle)("required",!0),n.R7$(7),n.Y8G("formControl",o.offerForm.controls.offerDescription)("required",!1),n.R7$(5),n.vxM(o.allowEditingSupplier()?22:-1),n.R7$(2),n.Y8G("showName",!0)("showAddress",!0)("required",!0)("disabled",o.isSubmissionEligibleEntityLocationsLoading())("entitySummaries",o.submissionEligibleEntityLocations())("formControl",o.offerForm.controls.selectedLocationEntity),n.R7$(3),n.vxM(o.taxonomyTree().length&&o.taxonomy().length?27:-1),n.R7$(),n.vxM(o.netSuiteItems().length?28:-1),n.R7$(2),n.Y8G("formControl",o.offerForm.controls.upc)("required",!0),n.R7$(6),n.Y8G("formControl",o.offerForm.controls.itemDescription)("required",!0),n.R7$(11),n.Y8G("allowUpload",!0),n.R50("imageUrls",o.imageUrls),n.R7$(7),n.vxM(o.sizeUOMIsWeight()?54:55),n.R7$(3),n.Y8G("formControl",o.offerForm.controls.sizeUOM)("group",!0)("options",o.sizeUOMTypes)("overlayOptions",o.overlayOptions),n.R7$(7),n.Y8G("formControl",o.offerForm.controls.unitPackingType)("options",o.unitPackingTypes)("overlayOptions",o.overlayOptions),n.R7$(3),n.Y8G("min",1)("formControl",o.offerForm.controls.pack),n.R7$(2),n.Lme("Pack (",null==(a=o.offerForm.get("unitPackingType"))?null:a.value," / ",null==(a=o.offerForm.get("casePackingType"))?null:a.value,") "),n.R7$(5),n.vxM(o.computedCaseWeight!=o.offerForm.controls.caseWeightPounds.value&&o.sizeUOMIsWeight()?74:-1),n.R7$(),n.Y8G("min",.01)("maxFractionDigits",2)("required",!0)("formControl",o.offerForm.controls.caseWeightPounds),n.R7$(2),n.Y8G("formControl",o.offerForm.controls.casePackingType)("options",o.casePackingTypes)("overlayOptions",o.overlayOptions),n.R7$(3),n.Y8G("min",1)("formControl",o.offerForm.controls.casesPerPallet),n.R7$(2),n.Lme("",null==(l=o.offerForm.get("casePackingType"))?null:l.value," / ",null==(l=o.offerForm.get("palletPackingType"))?null:l.value," "),n.R7$(5),n.SpI("",0==o.computedPalletWeight?"?":n.i5U(88,103,o.computedPalletWeight,"1.1-1")," lbs / "),n.R7$(2),n.Y8G("formControl",o.offerForm.controls.palletPackingType)("options",o.palletPackingTypes)("overlayOptions",o.overlayOptions),n.R7$(3),n.Y8G("min",1)("formControl",o.offerForm.controls.palletsPerFTL),n.R7$(2),n.SpI("",null==(c=o.offerForm.get("palletPackingType"))?null:c.value," / Truck "),n.R7$(5),n.SpI(" ",0==o.computedTruckWeight?"?":n.i5U(100,106,o.computedTruckWeight,"1.0-0")," lbs / truck "),n.R7$(3),n.Y8G("formControl",o.offerForm.controls.labelName),n.R7$(5),n.Y8G("formControl",o.offerForm.controls.isImported)("autoDisplayFirst",!1)("options",o.isImportedOptions),n.R7$(4),n.Y8G("formControl",o.offerForm.controls.nutritionalCategory)("options",o.herCategoryEntries)("required",!0),n.R7$(6),n.Y8G("formControl",o.offerForm.controls.storageType)("options",o.storageTypeEntries)("required",!0),n.R7$(6),n.Y8G("formControl",o.offerForm.controls.shelfLifeNotes),n.R7$(8),n.Y8G("min",0)("formControl",o.offerForm.controls.caseLength),n.R7$(4),n.Y8G("min",0)("formControl",o.offerForm.controls.caseWidth),n.R7$(4),n.Y8G("min",0)("formControl",o.offerForm.controls.caseHeight),n.R7$(4),n.Y8G("formControl",o.offerForm.controls.caseDimensionUOM)("options",o.caseDimensionUOMTypes),n.R7$(7),n.Y8G("formControl",o.offerForm.controls.sellByUnit)("options",o.sellByUnitTypes)("autoDisplayFirst",!0)("overlayOptions",o.overlayOptions),n.R7$(4),n.Y8G("formControl",o.offerForm.controls.combinationRule)("options",o.combinationRules)("autoDisplayFirst",!0),n.R7$(7),n.Y8G("min",1)("formControl",o.offerForm.controls.minimumUnitsPerOrder)("required",!0),n.R7$(2),n.SpI("MOQ in ",o.offerForm.controls.sellByUnit.value,"s "),n.R7$(5),n.Y8G("min",0)("formControl",o.offerForm.controls.sellByUnitsAvailable),n.R7$(4),n.Y8G("formControl",o.offerForm.controls.isUnlimited)("binary",!0),n.R7$(5),n.Y8G("formControl",o.offerForm.controls.endDate)("minDate",o.minimumEndDate())("required",!0),n.R7$(6),n.Y8G("min",0)("formControl",o.offerForm.controls.leadTime),n.R7$(4),n.Y8G("formControl",o.offerForm.controls.shipmentFirstAvailableDate)("minDate",o.offerForm.controls.startDate.value),n.R7$(4),n.Y8G("formControl",o.offerForm.controls.shipmentDeadlineDate)("minDate",o.minimumShipmentDate()),n.R7$(4),n.vxM(o.itemDiscounts().length?196:195),n.R7$(7),n.Y8G("formControl",o.offerForm.controls.startDate),n.R7$(6),n.Y8G("formControl",o.offerForm.controls.isPaused)("binary",!0),n.R7$(3),n.vxM(o.allowRestrictingListingsToEntities()?211:-1),n.R7$(),n.vxM(o.formErrors().length>0||o.priceRestrictionErrorMessage()?212:-1),n.R7$(),n.vxM(o.hideSubmit()?-1:213)}},dependencies:[wk,Av,gn,bi,as,rY,iY,r7,MO,Xy,c0,x6,om,Ra,wv,Cc,_o,Rm,Sv,sk,Kpe,Xpe,ehe,S6,Jpe,T6,Xw,J_,Ix,hf,A2,Vq,CI,xv,dO,Tv,Zp,ff,yDt,_Dt,Vx,Bx,GX,th,ou],styles:["input.ng-invalid.ng-touched[_ngcontent-%COMP%], textarea.ng-invalid.ng-touched[_ngcontent-%COMP%], .p-inputnumber.ng-invalid.ng-touched[_ngcontent-%COMP%]   .p-inputnumber-input[_ngcontent-%COMP%]{border-right:4px solid #FF4500}[_nghost-%COMP%]     app-entity-summary-selection.ng-invalid.ng-touched input{border-right:4px solid #FF4500}[_nghost-%COMP%]     app-item-type-selection.ng-invalid.ng-touched input{border-right:4px solid #FF4500}[_nghost-%COMP%]     .p-inputnumber.ng-invalid.ng-touched .p-inputnumber-input{border-right:4px solid #FF4500}"]})}}return t})(),gkt=(()=>{class t{constructor(){this.legacyNavigationService=(0,n.WQX)(wc),this.legacySessionDataService=(0,n.WQX)(qy),this.angularJsInjector=(0,n.WQX)(Jk).getAngularJsInjector(),this.donorEntityId=(0,n.vPA)(null)}ngOnInit(){let i=this.angularJsInjector.get("$stateParams").donorEntityId;i&&this.donorEntityId.set(parseInt(i))}onOfferCreated(e){this.legacyNavigationService.navigate("app.marketplace-offers")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["marketplace-offer"]],decls:1,vars:1,consts:[["formTitle","New Offer for Purchase",3,"onOfferVersionCreated","donorEntityId"]],template:function(i,o){1&i&&(n.j41(0,"app-offer-form",0),n.bIt("onOfferVersionCreated",function(a){return o.onOfferCreated(a)}),n.k0s()),2&i&&n.Y8G("donorEntityId",o.donorEntityId())},dependencies:[BX],encapsulation:2})}}return t})();const vkt=({dt:t})=>`\n.p-tabs {\n    display: flex;\n    flex-direction: column;\n}\n\n.p-tablist {\n    display: flex;\n    position: relative;\n}\n\n.p-tabs-scrollable > .p-tablist {\n    overflow: hidden;\n}\n\n.p-tablist-viewport {\n    overflow-x: auto;\n    overflow-y: hidden;\n    scroll-behavior: smooth;\n    scrollbar-width: none;\n    overscroll-behavior: contain auto;\n}\n\n.p-tablist-viewport::-webkit-scrollbar {\n    display: none;\n}\n\n.p-tablist-tab-list {\n    position: relative;\n    display: flex;\n    background: ${t("tabs.tablist.background")};\n    border-style: solid;\n    border-color: ${t("tabs.tablist.border.color")};\n    border-width: ${t("tabs.tablist.border.width")};\n}\n\n.p-tablist-content {\n    flex-grow: 1;\n}\n\n.p-tablist-nav-button {\n    all: unset;\n    position: absolute !important;\n    flex-shrink: 0;\n    top: 0;\n    z-index: 2;\n    height: 100%;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    background: ${t("tabs.nav.button.background")};\n    color: ${t("tabs.nav.button.color")};\n    width: ${t("tabs.nav.button.width")};\n    transition: color ${t("tabs.transition.duration")}, outline-color ${t("tabs.transition.duration")}, box-shadow ${t("tabs.transition.duration")};\n    box-shadow: ${t("tabs.nav.button.shadow")};\n    outline-color: transparent;\n    cursor: pointer;\n}\n\n.p-tablist-nav-button:focus-visible {\n    z-index: 1;\n    box-shadow: ${t("tabs.nav.button.focus.ring.shadow")};\n    outline: ${t("tabs.nav.button.focus.ring.width")} ${t("tabs.nav.button.focus.ring.style")} ${t("tabs.nav.button.focus.ring.color")};\n    outline-offset: ${t("tabs.nav.button.focus.ring.offset")};\n}\n\n.p-tablist-nav-button:hover {\n    color: ${t("tabs.nav.button.hover.color")};\n}\n\n.p-tablist-prev-button {\n    left: 0;\n}\n\n.p-tablist-next-button {\n    right: 0;\n}\n\n.p-tab {\n    display: flex;\n    align-items: center;\n    flex-shrink: 0;\n    cursor: pointer;\n    user-select: none;\n    position: relative;\n    border-style: solid;\n    white-space: nowrap;\n    gap: ${t("tabs.tab.gap")};\n    background: ${t("tabs.tab.background")};\n    border-width: ${t("tabs.tab.border.width")};\n    border-color: ${t("tabs.tab.border.color")};\n    color: ${t("tabs.tab.color")};\n    padding: ${t("tabs.tab.padding")};\n    font-weight: ${t("tabs.tab.font.weight")};\n    transition: background ${t("tabs.transition.duration")}, border-color ${t("tabs.transition.duration")}, color ${t("tabs.transition.duration")}, outline-color ${t("tabs.transition.duration")}, box-shadow ${t("tabs.transition.duration")};\n    margin: ${t("tabs.tab.margin")};\n    outline-color: transparent;\n}\n\n.p-tab:not(.p-disabled):focus-visible {\n    z-index: 1;\n    box-shadow: ${t("tabs.tab.focus.ring.shadow")};\n    outline: ${t("tabs.tab.focus.ring.width")} ${t("tabs.tab.focus.ring.style")} ${t("tabs.tab.focus.ring.color")};\n    outline-offset: ${t("tabs.tab.focus.ring.offset")};\n}\n\n.p-tab:not(.p-tab-active):not(.p-disabled):hover {\n    background: ${t("tabs.tab.hover.background")};\n    border-color: ${t("tabs.tab.hover.border.color")};\n    color: ${t("tabs.tab.hover.color")};\n}\n\n.p-tab-active {\n    background: ${t("tabs.tab.active.background")};\n    border-color: ${t("tabs.tab.active.border.color")};\n    color: ${t("tabs.tab.active.color")};\n}\n\n.p-tabpanels {\n    background: ${t("tabs.tabpanel.background")};\n    color: ${t("tabs.tabpanel.color")};\n    padding: ${t("tabs.tabpanel.padding")};\n    outline: 0 none;\n}\n\n.p-tabpanel:focus-visible {\n    box-shadow: ${t("tabs.tabpanel.focus.ring.shadow")};\n    outline: ${t("tabs.tabpanel.focus.ring.width")} ${t("tabs.tabpanel.focus.ring.style")} ${t("tabs.tabpanel.focus.ring.color")};\n    outline-offset: ${t("tabs.tabpanel.focus.ring.offset")};\n}\n\n.p-tablist-active-bar {\n    z-index: 1;\n    display: block;\n    position: absolute;\n    bottom: ${t("tabs.active.bar.bottom")};\n    height: ${t("tabs.active.bar.height")};\n    background: ${t("tabs.active.bar.background")};\n    transition: 250ms cubic-bezier(0.35, 0, 0.25, 1);\n}\n`,_kt={root:({props:t})=>["p-tabs p-component",{"p-tabs-scrollable":t.scrollable}]};let rhe=(()=>{class t extends gs{name="tabs";theme=vkt;classes=_kt;static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275prov=n.jDH({token:t,factory:t.\u0275fac})}return t})();const bkt=["previcon"],Ckt=["nexticon"],wkt=["content"],Tkt=["prevButton"],Skt=["nextButton"],xkt=["inkbar"],Ekt=["tabs"],Dkt=["*"],kkt=t=>({"p-tablist-viewport":t});function Ikt(t,r){1&t&&n.eu8(0)}function Akt(t,r){if(1&t&&n.DNE(0,Ikt,1,0,"ng-container",11),2&t){const e=n.XpG(2);n.Y8G("ngTemplateOutlet",e.prevIconTemplate||e._prevIconTemplate)}}function Mkt(t,r){1&t&&n.nrm(0,"ChevronLeftIcon")}function Rkt(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",10,3),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onPrevButtonClick())}),n.DNE(2,Akt,1,1,"ng-container")(3,Mkt,1,0,"ChevronLeftIcon"),n.k0s()}if(2&t){const e=n.XpG();n.BMQ("aria-label",e.prevButtonAriaLabel)("tabindex",e.tabindex)("data-pc-group-section","navigator"),n.R7$(2),n.vxM(e.prevIconTemplate||e._prevIconTemplate?2:3)}}function Okt(t,r){1&t&&n.eu8(0)}function Fkt(t,r){if(1&t&&n.DNE(0,Okt,1,0,"ng-container",11),2&t){const e=n.XpG(2);n.Y8G("ngTemplateOutlet",e.nextIconTemplate||e._nextIconTemplate)}}function Pkt(t,r){1&t&&n.nrm(0,"ChevronRightIcon")}function Lkt(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",12,4),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onNextButtonClick())}),n.DNE(2,Fkt,1,1,"ng-container")(3,Pkt,1,0,"ChevronRightIcon"),n.k0s()}if(2&t){const e=n.XpG();n.BMQ("aria-label",e.nextButtonAriaLabel)("tabindex",e.tabindex)("data-pc-group-section","navigator"),n.R7$(2),n.vxM(e.nextIconTemplate||e._nextIconTemplate?2:3)}}let ohe=(()=>{class t extends jo{prevIconTemplate;nextIconTemplate;templates;content;prevButton;nextButton;inkbar;tabs;pcTabs=(0,n.WQX)((0,n.Rfq)(()=>E6));isPrevButtonEnabled=(0,n.vPA)(!1);isNextButtonEnabled=(0,n.vPA)(!1);resizeObserver;showNavigators=(0,n.EWP)(()=>this.pcTabs.showNavigators());tabindex=(0,n.EWP)(()=>this.pcTabs.tabindex());scrollable=(0,n.EWP)(()=>this.pcTabs.scrollable());constructor(){super(),(0,n.QZP)(()=>{this.pcTabs.value(),Gr(this.platformId)&&setTimeout(()=>{this.updateInkBar()})})}get prevButtonAriaLabel(){return this.config.translation.aria.previous}get nextButtonAriaLabel(){return this.config.translation.aria.next}ngAfterViewInit(){super.ngAfterViewInit(),this.showNavigators()&&Gr(this.platformId)&&(this.updateButtonState(),this.bindResizeObserver())}_prevIconTemplate;_nextIconTemplate;ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"previcon":this._prevIconTemplate=e.template;break;case"nexticon":this._nextIconTemplate=e.template}})}ngOnDestroy(){this.unbindResizeObserver(),super.ngOnDestroy()}onScroll(e){this.showNavigators()&&this.updateButtonState(),e.preventDefault()}onPrevButtonClick(){const e=this.content.nativeElement,i=df(e),o=Math.abs(e.scrollLeft)-i,s=o<=0?0:o;e.scrollLeft=p$(e)?-1*s:s}onNextButtonClick(){const e=this.content.nativeElement,i=df(e)-this.getVisibleButtonWidths(),o=e.scrollLeft+i,s=e.scrollWidth-i,a=o>=s?s:o;e.scrollLeft=p$(e)?-1*a:a}updateButtonState(){const e=this.content?.nativeElement,i=this.el?.nativeElement,{scrollWidth:s,offsetWidth:l}=e,d=Math.abs(e.scrollLeft),[f,v]=[df(e),Tb(e)];this.isPrevButtonEnabled.set(0!==d),this.isNextButtonEnabled.set(i.offsetWidth>=l&&d!==s-f)}updateInkBar(){const i=this.inkbar.nativeElement,o=this.tabs.nativeElement,s=xo(this.content.nativeElement,'[data-pc-name="tab"][data-p-active="true"]');i.style.width=kd(s)+"px",i.style.left=yy(s).left-yy(o).left+"px"}getVisibleButtonWidths(){const e=this.prevButton?.nativeElement,i=this.nextButton?.nativeElement;return[e,i].reduce((o,s)=>s?o+df(s):o,0)}bindResizeObserver(){this.resizeObserver=new ResizeObserver(()=>this.updateButtonState()),this.resizeObserver.observe(this.el.nativeElement)}unbindResizeObserver(){this.resizeObserver&&(this.resizeObserver.unobserve(this.el.nativeElement),this.resizeObserver=null)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=n.VBU({type:t,selectors:[["p-tablist"]],contentQueries:function(i,o,s){if(1&i&&(n.wni(s,bkt,4),n.wni(s,Ckt,4),n.wni(s,hs,4)),2&i){let a;n.mGM(a=n.lsd())&&(o.prevIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.nextIconTemplate=a.first),n.mGM(a=n.lsd())&&(o.templates=a)}},viewQuery:function(i,o){if(1&i&&(n.GBs(wkt,5),n.GBs(Tkt,5),n.GBs(Skt,5),n.GBs(xkt,5),n.GBs(Ekt,5)),2&i){let s;n.mGM(s=n.lsd())&&(o.content=s.first),n.mGM(s=n.lsd())&&(o.prevButton=s.first),n.mGM(s=n.lsd())&&(o.nextButton=s.first),n.mGM(s=n.lsd())&&(o.inkbar=s.first),n.mGM(s=n.lsd())&&(o.tabs=s.first)}},hostVars:5,hostBindings:function(i,o){2&i&&(n.BMQ("data-pc-name","tablist"),n.AVh("p-tablist",!0)("p-component",!0))},features:[n.Vt3],ngContentSelectors:Dkt,decls:9,vars:6,consts:[["content",""],["tabs",""],["inkbar",""],["prevButton",""],["nextButton",""],["type","button","pRipple","",1,"p-tablist-nav-button","p-tablist-prev-button"],[1,"p-tablist-content",3,"scroll","ngClass"],["role","tablist",1,"p-tablist-tab-list"],["role","presentation",1,"p-tablist-active-bar"],["type","button","pRipple","",1,"p-tablist-nav-button","p-tablist-next-button"],["type","button","pRipple","",1,"p-tablist-nav-button","p-tablist-prev-button",3,"click"],[4,"ngTemplateOutlet"],["type","button","pRipple","",1,"p-tablist-nav-button","p-tablist-next-button",3,"click"]],template:function(i,o){if(1&i){const s=n.RV6();n.NAR(),n.DNE(0,Rkt,4,4,"button",5),n.j41(1,"div",6,0),n.bIt("scroll",function(l){return n.eBV(s),n.Njj(o.onScroll(l))}),n.j41(3,"div",7,1),n.SdG(5),n.nrm(6,"span",8,2),n.k0s()(),n.DNE(8,Lkt,4,4,"button",9)}2&i&&(n.vxM(o.showNavigators()&&o.isPrevButtonEnabled()?0:-1),n.R7$(),n.Y8G("ngClass",n.eq3(4,kkt,o.scrollable())),n.R7$(5),n.BMQ("data-pc-section","inkbar"),n.R7$(2),n.vxM(o.showNavigators()&&o.isNextButtonEnabled()?8:-1))},dependencies:[gn,bi,uo,jx,qw,Gve,Mh,Di],encapsulation:2,changeDetection:0})}return t})();const Nkt=["*"];let Gkt=(()=>{class t extends jo{value=(0,n.geq)();disabled=(0,n.hFB)(!1,{transform:n.L39});pcTabs=(0,n.WQX)((0,n.Rfq)(()=>E6));pcTabList=(0,n.WQX)((0,n.Rfq)(()=>ohe));ripple=(0,n.EWP)(()=>this.config.ripple());id=(0,n.EWP)(()=>`${this.pcTabs.id()}_tab_${this.value()}`);ariaControls=(0,n.EWP)(()=>`${this.pcTabs.id()}_tabpanel_${this.value()}`);active=(0,n.EWP)(()=>id(this.pcTabs.value(),this.value()));tabindex=(0,n.EWP)(()=>this.active()?this.pcTabs.tabindex():-1);onFocus(e){this.pcTabs.selectOnFocus()&&this.changeActiveValue()}onClick(e){this.changeActiveValue()}onKeyDown(e){switch(e.code){case"ArrowRight":this.onArrowRightKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"NumpadEnter":case"Space":this.onEnterKey(e)}e.stopPropagation()}onArrowRightKey(e){const i=this.findNextTab(e.currentTarget);i?this.changeFocusedTab(e,i):this.onHomeKey(e),e.preventDefault()}onArrowLeftKey(e){const i=this.findPrevTab(e.currentTarget);i?this.changeFocusedTab(e,i):this.onEndKey(e),e.preventDefault()}onHomeKey(e){const i=this.findFirstTab();this.changeFocusedTab(e,i),e.preventDefault()}onEndKey(e){const i=this.findLastTab();this.changeFocusedTab(e,i),e.preventDefault()}onPageDownKey(e){this.scrollInView(this.findLastTab()),e.preventDefault()}onPageUpKey(e){this.scrollInView(this.findFirstTab()),e.preventDefault()}onEnterKey(e){this.changeActiveValue(),e.preventDefault()}findNextTab(e,i=!1){const o=i?e:e.nextElementSibling;return o?Xf(o,"data-p-disabled")||"inkbar"===Xf(o,"data-pc-section")?this.findNextTab(o):o:null}findPrevTab(e,i=!1){const o=i?e:e.previousElementSibling;return o?Xf(o,"data-p-disabled")||"inkbar"===Xf(o,"data-pc-section")?this.findPrevTab(o):o:null}findFirstTab(){return this.findNextTab(this.pcTabList?.tabs?.nativeElement?.firstElementChild,!0)}findLastTab(){return this.findPrevTab(this.pcTabList?.tabs?.nativeElement?.lastElementChild,!0)}changeActiveValue(){this.pcTabs.updateValue(this.value())}changeFocusedTab(e,i){la(i),this.scrollInView(i)}scrollInView(e){e?.scrollIntoView?.({block:"nearest"})}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["p-tab"]],hostVars:16,hostBindings:function(i,o){1&i&&n.bIt("focus",function(a){return o.onFocus(a)})("click",function(a){return o.onClick(a)})("keydown",function(a){return o.onKeyDown(a)}),2&i&&(n.BMQ("data-pc-name","tab")("id",o.id())("aria-controls",o.ariaControls())("role","tab")("aria-selected",o.active())("data-p-disabled",o.disabled())("data-p-active",o.active())("tabindex",o.tabindex()),n.AVh("p-tab",!0)("p-tab-active",o.active())("p-disabled",o.disabled())("p-component",!0))},inputs:{value:[1,"value"],disabled:[1,"disabled"]},outputs:{value:"valueChange"},features:[n.nM4([Mh]),n.Vt3],ngContentSelectors:Nkt,decls:1,vars:0,template:function(i,o){1&i&&(n.NAR(),n.SdG(0))},dependencies:[gn,Di],encapsulation:2,changeDetection:0})}return t})();const Bkt=["*"];function Vkt(t,r){1&t&&n.SdG(0)}let jkt=(()=>{class t extends jo{pcTabs=(0,n.WQX)((0,n.Rfq)(()=>E6));value=(0,n.geq)(void 0);id=(0,n.EWP)(()=>`${this.pcTabs.id()}_tabpanel_${this.value()}`);ariaLabelledby=(0,n.EWP)(()=>`${this.pcTabs.id()}_tab_${this.value()}`);active=(0,n.EWP)(()=>id(this.pcTabs.value(),this.value()));static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["p-tabpanel"]],hostVars:9,hostBindings:function(i,o){2&i&&(n.BMQ("data-pc-name","tabpanel")("id",o.id())("role","tabpanel")("aria-labelledby",o.ariaLabelledby())("data-p-active",o.active()),n.AVh("p-tabpanel",!0)("p-component",!0))},inputs:{value:[1,"value"]},outputs:{value:"valueChange"},features:[n.Vt3],ngContentSelectors:Bkt,decls:1,vars:1,template:function(i,o){1&i&&(n.NAR(),n.DNE(0,Vkt,1,0)),2&i&&n.vxM(o.active()?0:-1)},dependencies:[gn],encapsulation:2,changeDetection:0})}return t})();const Hkt=["*"];let Ukt=(()=>{class t extends jo{static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["p-tabpanels"]],hostVars:6,hostBindings:function(i,o){2&i&&(n.BMQ("data-pc-name","tabpanels")("role","presentation"),n.AVh("p-tabpanels",!0)("p-component",!0))},features:[n.Vt3],ngContentSelectors:Hkt,decls:1,vars:0,template:function(i,o){1&i&&(n.NAR(),n.SdG(0))},dependencies:[gn],encapsulation:2,changeDetection:0})}return t})();const $kt=["*"];let E6=(()=>{class t extends jo{value=(0,n.geq)(void 0);scrollable=(0,n.hFB)(!1,{transform:n.L39});lazy=(0,n.hFB)(!1,{transform:n.L39});selectOnFocus=(0,n.hFB)(!1,{transform:n.L39});showNavigators=(0,n.hFB)(!0,{transform:n.L39});tabindex=(0,n.hFB)(0,{transform:n.Udg});id=(0,n.vPA)(Bl("pn_id_"));_componentStyle=(0,n.WQX)(rhe);updateValue(e){this.value.update(()=>e)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=n.xGo(t)))(o||t)}})();static \u0275cmp=n.VBU({type:t,selectors:[["p-tabs"]],hostVars:8,hostBindings:function(i,o){2&i&&(n.BMQ("data-pc-name","tabs")("id",o.id),n.AVh("p-tabs",!0)("p-tabs-scrollable",o.scrollable())("p-component",!0))},inputs:{value:[1,"value"],scrollable:[1,"scrollable"],lazy:[1,"lazy"],selectOnFocus:[1,"selectOnFocus"],showNavigators:[1,"showNavigators"],tabindex:[1,"tabindex"]},outputs:{value:"valueChange"},features:[n.Jv_([rhe]),n.Vt3],ngContentSelectors:$kt,decls:1,vars:0,template:function(i,o){1&i&&(n.NAR(),n.SdG(0))},dependencies:[gn],encapsulation:2,changeDetection:0})}return t})(),Ykt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=n.$C({type:t});static \u0275inj=n.G2t({imports:[E6,Ukt,jkt,ohe,Gkt]})}return t})();function Wkt(t,r){if(1&t&&(n.j41(0,"span",5),n.EFF(1),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.SpI(" (UPC: ",e.itemUPC(),")")}}function zkt(t,r){1&t&&(n.j41(0,"div",7),n.EFF(1," Delivered Pricing "),n.k0s())}function qkt(t,r){1&t&&(n.j41(0,"div",8),n.EFF(1," Not Listed for Food Bank "),n.k0s())}function Xkt(t,r){1&t&&(n.j41(0,"div",9),n.EFF(1," Discounted "),n.k0s())}function Kkt(t,r){if(1&t&&(n.j41(0,"span",17),n.EFF(1),n.nI1(2,"formatPrice"),n.k0s()),2&t){let e;const i=n.XpG(2);n.R7$(),n.JRh(n.brH(2,1,null==(e=i.orgItemListing())||null==e.palletPricingSummary?null:e.palletPricingSummary.fobCostPerUnit,2,!0))}}function Qkt(t,r){if(1&t&&(n.j41(0,"span",17),n.EFF(1),n.nI1(2,"formatPrice"),n.k0s()),2&t){let e;const i=n.XpG(2);n.R7$(),n.JRh(n.brH(2,1,null==(e=i.orgItemListing())||null==e.casePricingSummary?null:e.casePricingSummary.fobCostPerUnit,2,!0))}}function Jkt(t,r){if(1&t&&(n.j41(0,"span",17),n.EFF(1),n.nI1(2,"formatPrice"),n.k0s()),2&t){let e;const i=n.XpG(2);n.R7$(),n.JRh(n.brH(2,1,null==(e=i.orgItemListing())||null==e.palletPricingSummary?null:e.palletPricingSummary.fobCostPerPound,2,!0))}}function Zkt(t,r){if(1&t&&(n.j41(0,"span",17),n.EFF(1),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.SpI("(",e.itemLeadTime()," day lead time)")}}function eIt(t,r){if(1&t){const e=n.RV6();n.j41(0,"p-card",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"a",4),n.EFF(5),n.k0s()(),n.j41(6,"div"),n.EFF(7),n.DNE(8,Wkt,2,1,"span",5),n.k0s()(),n.j41(9,"div",6),n.DNE(10,zkt,2,0,"div",7)(11,qkt,2,0,"div",8)(12,Xkt,2,0,"div",9),n.j41(13,"div")(14,"a",10),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.removeItem())}),n.nrm(15,"i",11),n.k0s()()()(),n.j41(16,"div",12),n.EFF(17),n.nI1(18,"formatEntityAddress"),n.k0s(),n.j41(19,"div",13)(20,"div",14)(21,"div",15),n.EFF(22,"Cost / Pallet"),n.k0s(),n.j41(23,"div",16)(24,"span"),n.EFF(25),n.nI1(26,"formatPrice"),n.k0s(),n.DNE(27,Kkt,3,5,"span",17),n.k0s(),n.j41(28,"div",15),n.EFF(29,"Cost / Case"),n.k0s(),n.j41(30,"div",16)(31,"span"),n.EFF(32),n.nI1(33,"formatPrice"),n.k0s(),n.DNE(34,Qkt,3,5,"span",17),n.k0s(),n.j41(35,"div",15),n.EFF(36,"Cost / Pound"),n.k0s(),n.j41(37,"div",16)(38,"span"),n.EFF(39),n.nI1(40,"formatPrice"),n.k0s(),n.DNE(41,Jkt,3,5,"span",17),n.k0s(),n.j41(42,"div",15),n.EFF(43,"Pricing Model"),n.k0s(),n.j41(44,"div",16),n.EFF(45),n.k0s()(),n.j41(46,"div",14)(47,"div",15),n.EFF(48,"Pallets Available"),n.k0s(),n.j41(49,"div",16),n.EFF(50),n.k0s(),n.j41(51,"div",15),n.EFF(52,"Pallets / FTL"),n.k0s(),n.j41(53,"div",16),n.EFF(54),n.k0s(),n.j41(55,"div",15),n.EFF(56,"Earliest Ship. Date"),n.k0s(),n.j41(57,"div",16),n.EFF(58),n.nI1(59,"formatUTCTimestamp"),n.DNE(60,Zkt,2,1,"span",17),n.k0s(),n.j41(61,"div",15),n.EFF(62,"Combination Rule"),n.k0s(),n.j41(63,"div",16),n.EFF(64),n.k0s()()(),n.j41(65,"div",18),n.nrm(66,"p-divider"),n.k0s(),n.j41(67,"div",1)(68,"p-floatlabel")(69,"p-input-number",19),n.mxI("ngModelChange",function(o){n.eBV(e);const s=n.XpG();return n.DH7(s.orderItemQuantity,o)||(s.orderItemQuantity=o),n.Njj(o)}),n.bIt("ngModelChange",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.quantityChanged(o))}),n.k0s(),n.j41(70,"label",20),n.EFF(71,"Pallets to Order:"),n.k0s()(),n.j41(72,"div",2)(73,"div",21),n.EFF(74),n.nI1(75,"formatDecimal"),n.k0s(),n.j41(76,"div"),n.EFF(77),n.nI1(78,"formatDecimal"),n.k0s()(),n.j41(79,"div",22),n.EFF(80),n.nI1(81,"formatPrice"),n.k0s()()()}if(2&t){let e,i;const o=n.XpG();n.R7$(4),n.Y8G("href",o.detailLink(),n.B4B),n.R7$(),n.Lme(" ",o.orderItem().offer.offerCode,": ",o.orderItem().offer.sourceEntity.name," "),n.R7$(2),n.SpI(" ",o.orderItem().contentItem.title," "),n.R7$(),n.vxM(o.itemUPC()?8:-1),n.R7$(2),n.vxM("DELIVERED"===o.itemPricingModel()?10:-1),n.R7$(),n.vxM(o.activeListings()&&!o.orgItemListing()?11:-1),n.R7$(),n.vxM(o.hasModifiedPrice()?12:-1),n.R7$(5),n.SpI(" Shipping From: ",n.bMT(18,39,o.orderItem().offer.locationEntity)," "),n.R7$(7),n.HbH(o.hasModifiedPrice()?"tw-line-through":""),n.R7$(),n.JRh(n.bMT(26,41,o.itemPalletCostUnmodified())),n.R7$(2),n.vxM(o.hasModifiedPrice()?27:-1),n.R7$(4),n.HbH(o.hasModifiedPrice()?"tw-line-through":""),n.R7$(),n.JRh(n.bMT(33,43,o.itemCaseCostUnmodified())),n.R7$(2),n.vxM(o.hasModifiedPrice()?34:-1),n.R7$(4),n.HbH(o.hasModifiedPrice()?"tw-line-through":""),n.R7$(),n.JRh(n.bMT(40,45,o.itemPoundCostUnmodified())),n.R7$(2),n.vxM(o.hasModifiedPrice()?41:-1),n.R7$(4),n.SpI(" ",o.itemPricingModel()," "),n.R7$(5),n.Lme(" ",null!=(e=o.orderItem())&&null!=e.contentItem&&null!=e.contentItem.segmentableQuantityDetail&&e.contentItem.segmentableQuantityDetail.isUnlimited?"(Unlimited)":o.itemPalletsAvailable()," (Min. ",null!==(e=null==(e=o.orderItem())||null==e.contentItem||null==e.contentItem.segmentableQuantityDetail?null:e.contentItem.segmentableQuantityDetail.minimumUnitsPerOrder)&&void 0!==e?e:1," / Order) "),n.R7$(4),n.SpI(" ",o.itemPalletsPerFTL()," "),n.R7$(4),n.SpI(" ",n.i5U(59,47,o.itemEarliestShipDateUTC(),!1)," "),n.R7$(2),n.vxM(o.itemLeadTime()>0?60:-1),n.R7$(4),n.SpI(" ",o.itemCombinationRule()," "),n.R7$(5),n.R50("ngModel",o.orderItemQuantity),n.Y8G("min",o.itemMOQ())("max",null!==(i=o.itemPalletsAvailable())&&void 0!==i?i:9999)("step",1)("showButtons",!0),n.R7$(5),n.SpI("FTLs: ",n.bMT(75,50,o.percentFTL()),""),n.R7$(3),n.SpI("Total Weight: ",n.bMT(78,52,o.totalWeightPounds()),""),n.R7$(3),n.SpI(" Total: ",n.bMT(81,54,o.totalFOBCost())," ")}}let tIt=(()=>{class t{constructor(){this.marketplaceService=(0,n.WQX)(Yu),this.inputOrderItem=n.hFB.required(),this.activeListings=(0,n.hFB)([]),this.legacyNavigationService=(0,n.WQX)(wc),this.quantityUpdated=(0,n.CGW)(),this.onRemoveItem=(0,n.CGW)(),this.detailLink=(0,n.vPA)(""),this.orderItemQuantity=(0,n.vPA)(1),this.orderItem=(0,n.vPA)(null),this.itemUPC=(0,n.vPA)(""),this.itemPalletsPerFTL=(0,n.vPA)(0),this.itemPalletCostUnmodified=(0,n.vPA)(0),this.itemPalletsAvailable=(0,n.vPA)(0),this.itemCaseCostUnmodified=(0,n.vPA)(0),this.itemPoundCostUnmodified=(0,n.vPA)(0),this.itemEarliestShipDateUTC=(0,n.vPA)(0),this.itemCombinationRule=(0,n.vPA)(""),this.itemPalletWeight=(0,n.vPA)(0),this.itemPricingModel=(0,n.vPA)(void 0),this.itemLeadTime=(0,n.vPA)(0),this.itemMOQ=(0,n.vPA)(1),this.totalFOBCost=(0,n.EWP)(()=>this.costPerOrderedUnit()*this.orderItemQuantity()),this.percentFTL=(0,n.EWP)(()=>this.orderItemQuantity()/this.itemPalletsPerFTL()),this.totalWeightPounds=(0,n.EWP)(()=>this.itemPalletWeight()*this.orderItemQuantity()),this.costPerOrderedUnit=(0,n.EWP)(()=>this.orgItemListing()?.palletPricingSummary?.fobCostPerUnit??this.itemPalletCostUnmodified()),this.hasModifiedPrice=(0,n.EWP)(()=>!(!this.orgItemListing()?.palletPricingSummary?.fobCostPerUnit||this.orgItemListing()?.palletPricingSummary?.fobCostPerUnit==this.itemPalletCostUnmodified())),this.orgItemListing=(0,n.EWP)(()=>this.activeListings().find(e=>e.offerId.toLowerCase()===this.inputOrderItem().offer.offerId?.toLowerCase())??null),(0,n.QZP)(()=>{this.orgItemListing(),this.updateQuantity(this.orderItemQuantity())})}ngOnInit(){this.orderItem.set(this.inputOrderItem()),this.orderItemQuantity.set(this.inputOrderItem().quantity),this.loadContentItemData(),this.detailLink.set(this.legacyNavigationService.getUrl("app.marketplace-offer-details",{offerId:this.orderItem()?.offer.offerId}))}loadContentItemData(){let e=this.orderItem().contentItem,i=null,o=null,s=null;switch(this.itemCombinationRule.set(this.orderItem()?.offer.matchPreferences?.combinationRule??""),e.packingType.unitLevel){case"VEHICLE":i=e,1===i.contents.length&&"PALLET"===i.contents[0].packingType.unitLevel&&(o=i.contents[0]),1===o?.contents.length&&"CASE"===o.contents[0].packingType.unitLevel&&(s=o.contents[0]);break;case"PALLET":o=e}1===o?.contents.length&&"CASE"===o.contents[0].packingType.unitLevel&&(s=o.contents[0]);let a=o?.quantity??0;o&&(this.itemPalletCostUnmodified.set(this.marketplaceService.getContentItemTotalFOBCostPerUnit(o)),o?.segmentableQuantityDetail&&(a=o.segmentableQuantityDetail.isUnlimited?9999999:o.segmentableQuantityDetail.totalUnitsAvailable),o&&a<this.orderItemQuantity()&&this.updateQuantity(a),this.itemPalletsAvailable.set(a),s&&this.itemCaseCostUnmodified.set(this.itemPalletCostUnmodified()/s.quantity),this.itemPalletWeight.set(this.marketplaceService.weightToPounds(o.weight))),this.itemMOQ.set(e.segmentableQuantityDetail?.minimumUnitsPerOrder??1),this.itemPoundCostUnmodified.set(this.itemPalletCostUnmodified()/this.marketplaceService.weightToPounds(e.weight));const l=e.itemTypes.find(d=>"upc"==d.vocabularyId.toLowerCase())?.itemId;l&&this.itemUPC.set(l);const c=e.vehiclePackingEstimates?.find(d=>"TRAILER"===d.vehicleClass);c&&(this.itemPalletsPerFTL.set(c.estimatedFillQuantity),this.updateQuantity(Math.min(c.estimatedFillQuantity,a))),this.orderItem()?.offer&&(this.itemPricingModel.set(this.orderItem()?.offer.pricingModel??void 0),this.itemEarliestShipDateUTC.set(this.marketplaceService.getEarliestShipDateUTC(this.orderItem()?.offer)),this.itemLeadTime.set(this.orderItem()?.offer.leadTimeInDays??0))}updateQuantity(e){this.orderItemQuantity.set(e),this.quantityChanged(null)}quantityChanged(e){this.quantityUpdated.emit({quantity:this.orderItemQuantity(),offer:this.orderItem().offer,contentItem:this.orderItem().contentItem,totalFobCost:this.totalFOBCost(),percentFTLs:this.percentFTL()})}removeItem(){this.orderItem()?.contentItem.contentItemId&&this.onRemoveItem.emit(this.orderItem()?.contentItem.contentItemId)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-offer-admin-marketplace-order-item"]],inputs:{inputOrderItem:[1,"inputOrderItem"],activeListings:[1,"activeListings"]},outputs:{quantityUpdated:"quantityUpdated",onRemoveItem:"onRemoveItem"},decls:1,vars:1,consts:[[1,"tw-block","tw-rounded","tw-border","tw-border-solid","tw-border-slate-200"],[1,"tw-flex","tw-justify-between"],[1,"tw-font-semibold"],[1,"tw-text-2xl"],["target","_blank",1,"tw-text-slate-900",3,"href"],[1,""],[1,"tw-flex","tw-justify-between","tw-gap-2"],["pTooltip","This offer uses delivered pricing and is not combinable with FOB pricing offers.",1,"tw-ml-2","tw-inline-block","tw-h-6","tw-rounded-full","tw-bg-blue-500","tw-px-4","tw-py-1","tw-text-xs","tw-text-white"],["pTooltip","This offer isn't currently visible to the selected organization. But it can still be ordered administratively here.",1,"tw-ml-2","tw-inline-block","tw-h-6","tw-rounded-full","tw-bg-red-500","tw-px-4","tw-py-1","tw-text-xs","tw-text-white"],["pTooltip","There is a price modification on this offer that applies to this food bank. The pricing below reflects the current price available to the food bank/organization.",1,"tw-ml-2","tw-inline-block","tw-h-6","tw-rounded-full","tw-bg-green-500","tw-px-4","tw-py-1","tw-text-xs","tw-text-white"],[3,"click"],[1,"pi","pi-trash"],[1,"tw-mb-4","tw-italic","tw-text-slate-400"],[1,"tw-grid","tw-grid-cols-1","tw-gap-2","tw-text-xs","lg:tw-grid-cols-2"],[1,"marketplace-detail-grid-block"],[1,"marketplace-detail-label"],[1,"marketplace-detail-value"],[1,"tw-pl-2"],[1,"tw-mb-10","tw-w-full"],["id","orderItemQuantity",3,"ngModelChange","ngModel","min","max","step","showButtons"],["for","orderItemQuantity"],[1,"tw-pb-2"],[1,"tw-pt-2","tw-text-2xl","tw-font-semibold"]],template:function(i,o){1&i&&n.DNE(0,eIt,82,56,"p-card",0),2&i&&n.vxM(o.orderItem()?0:-1)},dependencies:[Ra,_o,ko,FX,rm,kg,J_,qv,fP,Xy,c0,Yv,om,wI,Rh,ou],encapsulation:2})}}return t})();const nIt=(t,r)=>r.offer.offerId;function iIt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",3)(1,"app-offer-admin-marketplace-order-item",19),n.bIt("onRemoveItem",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.removeItem(o))})("quantityUpdated",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.orderItemUpdated(o))}),n.k0s()()}if(2&t){const e=r.$implicit,i=n.XpG();n.R7$(),n.Y8G("inputOrderItem",e)("activeListings",i.orderingOrganizationListings())}}function rIt(t,r){if(1&t&&(n.j41(0,"div",20)(1,"div")(2,"span",21),n.EFF(3),n.k0s(),n.j41(4,"span",4),n.EFF(5),n.k0s()(),n.j41(6,"div",22),n.EFF(7),n.k0s()()),2&t){const e=r.$implicit;n.R7$(3),n.Lme(" ",e.offerCode,": ",e.title," "),n.R7$(2),n.SjE(" ",e.locationEntity.addressLine1,", ",e.locationEntity.city,", ",e.locationEntity.province,", ",e.locationEntity.postalCode," [",null==e.locationEntity.name?null:e.locationEntity.name.trim(),"] "),n.R7$(2),n.JRh(e.sourceEntity.name)}}function oIt(t,r){1&t&&(n.j41(0,"div",18)(1,"p-message",23)(2,"strong"),n.EFF(3,"Mixed Pricing"),n.k0s(),n.EFF(4,"! This order contains offers with both delivered and FOB pricing, but these need to be ordered independently."),n.k0s()())}let sIt=(()=>{class t{ngOnInit(){this.loadInitialOfferItems()}constructor(){this.entityService=(0,n.WQX)(jh),this.marketplaceUtilities=(0,n.WQX)(I2),this.marketplaceService=(0,n.WQX)(Yu),this.toasterService=(0,n.WQX)(tc),this.timelineEntryService=(0,n.WQX)(zv),this.cartService=(0,n.WQX)(l0),this.orderingEntity=(0,n.hFB)(null),this.deliveryLocation=(0,n.hFB)(null),this.initialOfferIds=(0,n.hFB)([]),this.availableOffers=(0,n.vPA)([]),this.allAddableOffers=(0,n.vPA)([]),this.filteredOffers=(0,n.vPA)([]),this.checkingOut=(0,n.vPA)(!1),this.canCheckout=(0,n.EWP)(()=>!(!(this.orderingEntity()&&this.deliveryLocation()&&this.orderingItems().length>=0)||this.hasMixedPricingModels())),this.hasMixedPricingModels=(0,n.EWP)(()=>this.orderingItems().length>0&&1!=new Set(this.orderingItems().map(e=>e.offer.pricingModel)).size),this.totalFOBCost=(0,n.EWP)(()=>this.orderingItems().reduce((e,i)=>e+(i.totalFobCost??0),0)),this.totalFTLs=(0,n.EWP)(()=>this.orderingItems().reduce((e,i)=>e+(i.percentFTLs??0),0)),this.listingStatus=(0,n.EWP)(()=>"LOADED"!=this.loadingListingsStatus()?"TBD":this.orderingItems().every(e=>null!=this.orderingOrganizationListings().find(i=>i.offerId.toLowerCase()===e.offer.offerId?.toLowerCase()))?"All Offers Have Listings":this.orderingItems().some(e=>null!=this.orderingOrganizationListings().find(i=>i.offerId.toLowerCase()===e.offer.offerId?.toLowerCase()))?"Some Offers Without Listings":"No Offers Have Listings"),this.offersToDisplay=(0,n.EWP)(()=>{let e=[...this.filteredOffers()],i=this.orderingItems();if(!i.length)return e;let o=i[0].offer.locationEntity.internalDetail?.internalEntityId;return e.sort((s,a)=>{let l=s.locationEntity.internalDetail?.internalEntityId===o,c=a.locationEntity.internalDetail?.internalEntityId===o;return l&&!c?-1:c&&!l?1:0})}),this.orderingOrganizationListings=(0,n.vPA)([]),this.addingOffer=(0,n.vPA)(!1),this.orderingItems=(0,n.vPA)([]),this.selectedOfferToAdd=(0,n.geq)(null),this.loadingListingsStatus=(0,n.vPA)("NOT_AVAILABLE"),this.addOfferSearchIndex=null,this.addOfferSearchKeys=[{name:"offerCode",weight:.2},{name:"title",weight:.4},{name:"description",weight:.2},{name:"sourceEntity.name",weight:.2}],this.ButtonStyle=Xv,(0,n.QZP)(()=>{this.orderingEntity()&&this.deliveryLocation()&&this.timelineEntryService.getFlattenedAvailableItemSummariesForEntityLocation(this.orderingEntity(),this.deliveryLocation(),!0,!1).subscribe({next:e=>{this.orderingOrganizationListings.set(e),this.loadingListingsStatus.set("LOADED")}})})}loadInitialOfferItems(){this.marketplaceService.getManageOffers().subscribe({next:e=>{const i=Date.now(),o=e.filter(s=>!s.consumedByOrderId&&!s.splitFromOfferId&&s.expirationTimeUTC>i&&"STRUCTURE"===s.contentStructure&&((s.contents?.[0]?.contents?.[0]?.segmentableQuantityDetail?.totalUnitsAvailable??0)>0||s.contents?.[0]?.contents?.[0]?.segmentableQuantityDetail?.isUnlimited));this.availableOffers.set(o),this.allAddableOffers.set(o);for(const s of this.initialOfferIds()){const a=this.allAddableOffers().find(l=>l.offerId===s);a&&this.addOrderItem(a)}}})}addOrderItem(e){let i={offer:e,contentItem:this.getOrderableItem(e),quantity:1,totalFobCost:null,percentFTLs:null};this.orderingItems.set([...this.orderingItems(),i]);const o=this.orderingItems().map(s=>s.offer.offerId);this.allAddableOffers.set(this.availableOffers().filter(s=>s.sourceEntity.internalDetail?.internalEntityId==e.sourceEntity.internalDetail?.internalEntityId&&!o.includes(s.offerId))),this.buildSearchIndex()}getOrderableItem(e){return e.contents[0].contents[0]}addOfferSelected(e){this.addOrderItem(e.value),this.selectedOfferToAdd.set(null)}removeItem(e){this.orderingItems.set([...this.orderingItems().filter(i=>i.contentItem.contentItemId!=e)]),0===this.orderingItems().length&&(this.allAddableOffers.set(this.availableOffers()),this.buildSearchIndex())}orderItemUpdated(e){this.orderingItems.update(i=>i.map(o=>o.offer.offerId===e.offer.offerId?{...o,quantity:e.quantity,totalFobCost:e.totalFobCost,percentFTLs:e.percentFTLs}:o))}filterOffers(e){if(!e||!e.query)return void this.filteredOffers.set([...this.allAddableOffers()]);this.addOfferSearchIndex||this.buildSearchIndex();let i=this.addOfferSearchIndex?.search(e.query);this.filteredOffers.set(i?i.map(o=>o.item):[])}buildSearchIndex(){this.addOfferSearchIndex=new tC(this.allAddableOffers(),{keys:this.addOfferSearchKeys,isCaseSensitive:!1,shouldSort:!0,threshold:.3})}findOfferToAdd(){this.addingOffer.set(!0)}startOrderCheckout(){if(!this.canCheckout())return;this.checkingOut.set(!0);const e=this.orderingEntity(),i=this.deliveryLocation(),o=[];let s=1;for(const l of this.orderingItems())o.push({actions:[{contentItemId:l.contentItem.contentItemId,actionType:"PICKUP",offerId:l.offer.offerId,quantity:l.quantity}],entityLocation:l.offer.locationEntity,sequence:s}),s+=1,o.push({actions:[{contentItemId:l.contentItem.contentItemId,actionType:"DROPOFF",offerId:l.offer.offerId,quantity:l.quantity}],entityLocation:i,sequence:s}),s+=1;const a={offersUsed:this.orderingItems().map(l=>l.offer),requestingEntity:e,requestedOrders:[{requestedStops:o}]};this.cartService.startMarketplaceOrderCheckout(crypto.randomUUID(),a,i)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-offer-admin-marketplace-order"]],inputs:{orderingEntity:[1,"orderingEntity"],deliveryLocation:[1,"deliveryLocation"],initialOfferIds:[1,"initialOfferIds"],selectedOfferToAdd:[1,"selectedOfferToAdd"]},outputs:{selectedOfferToAdd:"selectedOfferToAddChange"},decls:38,vars:19,consts:[["item",""],[1,"tw-grid","tw-grid-cols-7","tw-gap-4"],[1,"tw-col-span-5"],[1,"tw-mb-4"],[1,"tw-block"],[1,"tw-mt-8"],["id","addOfferAutocomplete","optionLabel","offerCode","scrollHeight","300px","inputStyleClass","tw-h-12 !tw-text-lg !tw-pl-2",1,"tw-block","tw-w-full","tw-max-w-full",3,"ngModelChange","completeMethod","onSelect","ngModel","suggestions","dropdown","virtualScroll","virtualScrollItemSize"],["for","addOfferAutocomplete"],[1,"tw-text-xs","tw-italic","tw-text-slate-400"],[1,"tw-col-span-2"],["header","Order Summary",1,"tw-block","tw-rounded","tw-border","tw-border-solid","tw-border-slate-200","tw-bg-slate-50"],[1,"tw-grid","tw-list-none","tw-gap-4","tw-p-0"],[1,"tw-flex","tw-flex-col","tw-gap-2"],[1,"tw-text-[20px]","tw-font-semibold"],["pTooltip","This shows whether the offers in this order are currently visible to the selected food bank/organization. This doesn't prevent checking out and is purely informational.",1,"pi","pi-question-circle","tw-pl-2","!tw-text-xs"],[1,"tw-mt-6","tw-flex-col","tw-justify-center"],[1,"tw-w-full","tw-justify-center","tw-text-center"],["text","Checkout",3,"click","buttonStyle","disabled","showLoading"],[1,"tw-mt-4"],[3,"onRemoveItem","quantityUpdated","inputOrderItem","activeListings"],[1,"tw-py-2"],[1,"tw-block","tw-font-semibold"],[1,"tw-italic"],["severity","warn",1,"tw-text-center"]],template:function(i,o){if(1&i){const s=n.RV6();n.j41(0,"div",1)(1,"div",2),n.Z7z(2,iIt,2,2,"div",3,nIt),n.nrm(4,"p-divider",4),n.j41(5,"p-floatlabel",5)(6,"p-autocomplete",6),n.mxI("ngModelChange",function(l){return n.eBV(s),n.DH7(o.selectedOfferToAdd,l)||(o.selectedOfferToAdd=l),n.Njj(l)}),n.bIt("completeMethod",function(l){return n.eBV(s),n.Njj(o.filterOffers(l))})("onSelect",function(l){return n.eBV(s),n.Njj(o.addOfferSelected(l))}),n.DNE(7,rIt,8,8,"ng-template",null,0,n.C5r),n.k0s(),n.j41(9,"label",7),n.EFF(10,"Add an Offer to the Order"),n.k0s()(),n.j41(11,"div",8),n.EFF(12," Note that, once an item is added to the order, only offers from the same supplier will be available to add. "),n.k0s()(),n.j41(13,"div",9)(14,"p-card",10)(15,"ul",11)(16,"li",12)(17,"span"),n.EFF(18,"Total FOB Cost:"),n.k0s(),n.j41(19,"strong",13),n.EFF(20),n.nI1(21,"formatPrice"),n.k0s()(),n.j41(22,"li",12)(23,"span"),n.EFF(24,"Full Truckloads:"),n.k0s(),n.j41(25,"strong",13),n.EFF(26),n.nI1(27,"formatDecimal"),n.k0s()(),n.j41(28,"li",12)(29,"span"),n.EFF(30,"Active Listings for Food Bank?: "),n.nrm(31,"i",14),n.k0s(),n.j41(32,"strong"),n.EFF(33),n.k0s()()(),n.j41(34,"div",15)(35,"div",16)(36,"app-primary-button",17),n.bIt("click",function(){return n.eBV(s),n.Njj(o.startOrderCheckout())}),n.k0s()(),n.DNE(37,oIt,5,0,"div",18),n.k0s()()()()}2&i&&(n.R7$(2),n.Dyx(o.orderingItems()),n.R7$(4),n.R50("ngModel",o.selectedOfferToAdd),n.Y8G("suggestions",o.offersToDisplay())("dropdown",!0)("virtualScroll",!0)("virtualScrollItemSize",80),n.R7$(14),n.JRh(n.bMT(21,15,o.totalFOBCost())),n.R7$(6),n.JRh(n.bMT(27,17,o.totalFTLs())),n.R7$(6),n.ZvI("tw-text-[20px] tw-font-semibold ","All Offers Have Listings"!=o.listingStatus()?"tw-text-red-700":"",""),n.R7$(),n.JRh(o.listingStatus()),n.R7$(3),n.Y8G("buttonStyle",o.ButtonStyle.OutlinedOrange)("disabled",!o.canCheckout()||o.checkingOut())("showLoading",o.checkingOut()),n.R7$(),n.vxM(o.hasMixedPricingModels()?37:-1))},dependencies:[$w,Ib,Xy,c0,rm,kg,tIt,mP,qv,wI,Ra,_o,ko,Yv,om,Rh,ou,Dy,z_],encapsulation:2})}}return t})(),aIt=(()=>{class t{transform(e){return[e?.AddressLine1,e?.AddressLine2,e?.City,e?.Province,e?.PostalCode].filter(Boolean).join(", ")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=n.EJ8({name:"formatFAOMAddress",type:t,pure:!0})}}return t})();const lIt=(t,r)=>r.ID;function cIt(t,r){1&t&&(n.j41(0,"div",7),n.EFF(1," Combo "),n.k0s())}function uIt(t,r){1&t&&(n.j41(0,"div",8),n.EFF(1," Not Combinable! "),n.k0s())}function dIt(t,r){1&t&&(n.j41(0,"div",9),n.nrm(1,"i",22),n.k0s())}function pIt(t,r){if(1&t&&(n.j41(0,"div",23),n.EFF(1),n.k0s(),n.j41(2,"div",14)(3,"div",15),n.EFF(4,"FOB Cost Per Pound"),n.k0s(),n.j41(5,"div",16)(6,"span"),n.EFF(7),n.nI1(8,"formatPrice"),n.k0s()(),n.j41(9,"div",15),n.EFF(10,"FOB Cost Per Truck"),n.k0s(),n.j41(11,"div",16),n.EFF(12),n.nI1(13,"formatPrice"),n.k0s(),n.j41(14,"div",15),n.EFF(15,"Grade"),n.k0s(),n.j41(16,"div",16)(17,"span"),n.EFF(18),n.k0s()(),n.j41(19,"div",15),n.EFF(20,"Variety"),n.k0s(),n.j41(21,"div",16),n.EFF(22),n.k0s()(),n.j41(23,"div",14)(24,"div",15),n.EFF(25,"Size"),n.k0s(),n.j41(26,"div",16)(27,"span"),n.EFF(28),n.k0s()(),n.j41(29,"div",15),n.EFF(30,"Pack"),n.k0s(),n.j41(31,"div",16),n.EFF(32),n.k0s(),n.j41(33,"div",15),n.EFF(34,"Cases / Pallet"),n.k0s(),n.j41(35,"div",16),n.EFF(36),n.k0s(),n.j41(37,"div",15),n.EFF(38,"Pallets per FTL"),n.k0s(),n.j41(39,"div",16),n.EFF(40),n.k0s()(),n.j41(41,"div",24),n.EFF(42),n.k0s()),2&t){const e=r.$implicit,i=n.XpG();n.R7$(),n.SpI(" ",e.OfferItemWithVariety," "),n.R7$(6),n.JRh(n.bMT(8,10,e.FOBCostPerPound)),n.R7$(5),n.SpI(" ",n.bMT(13,12,e.FOBCostPerTruck)," "),n.R7$(6),n.JRh(e.Grade),n.R7$(4),n.SpI(" ",e.Variety," "),n.R7$(6),n.SpI("",e.Size,"lbs."),n.R7$(4),n.SpI(" ",e.NumberOfDistributionUnitsPerShippingUnit," "),n.R7$(4),n.SpI(" ",e.NumberOfShippingUnitsPerPallet," "),n.R7$(4),n.SpI(" ",i.produceOffer().Offer.OfferWithItems.IsCombo?e.NumberOfPalletsInEachComboLoadTruck:e.PalletsPerFTL," "),n.R7$(2),n.SpI(" ",e.Notes," ")}}let hIt=(()=>{class t{constructor(){this.produceOffer=n.hFB.required(),this.onRemoveItem=(0,n.CGW)(),this.quantityUpdated=(0,n.CGW)(),this.orderItemQuantity=(0,n.vPA)(1),this.maxUnitsOrderable=(0,n.vPA)(1),this.orderedUnitDescription=(0,n.EWP)(()=>this.isCombo()?"Trucks":"Pallets"),this.isCombo=(0,n.EWP)(()=>this.produceOffer().Offer.OfferWithItems.IsCombo),this.totalFOBCost=(0,n.EWP)(()=>this.isCombo()?this.orderItemQuantity()*this.produceOffer().Offer.Items.reduce((e,i)=>e+i.FOBCostPerTruck,0):this.orderItemQuantity()*(this.produceOffer().Offer.Items[0].FOBCostPerTruck/this.produceOffer().Offer.Items[0].PalletsPerFTL)),this.percentFTL=(0,n.EWP)(()=>this.isCombo()?this.orderItemQuantity():this.orderItemQuantity()/this.produceOffer().Offer.Items[0].PalletsPerFTL),this.totalWeightPounds=(0,n.EWP)(()=>{if(this.isCombo()){const e=this.produceOffer().Offer.Items.reduce((i,o)=>i+o.WeightPerTruck,0);return this.orderItemQuantity()*e}return this.orderItemQuantity()*(this.produceOffer().Offer.Items[0].WeightPerTruck/this.produceOffer().Offer.Items[0].PalletsPerFTL)})}ngOnInit(){if(this.isCombo())this.maxUnitsOrderable.set(this.produceOffer().Offer.OfferWithItems.TrucksAvailable);else{const e=this.produceOffer().Offer.Items[0];this.maxUnitsOrderable.set(Math.floor(e.NumberOfPallets*(e.TotalPoundsAvailable/e.TotalPoundsOffered))),this.orderItemQuantity.set(Math.min(this.maxUnitsOrderable(),e.PalletsPerFTL))}this.quantityChanged(null)}removeItem(){this.produceOffer()&&this.onRemoveItem.emit(this.produceOffer())}updateQuantity(e){this.orderItemQuantity.set(e),this.quantityChanged(null)}quantityChanged(e){let i=0,o=0;this.isCombo()?(i=this.orderItemQuantity(),o=this.produceOffer().Offer.Items.reduce((s,a)=>s+a.NumberOfPalletsInEachComboLoadTruck,0)*i):(o=this.orderItemQuantity(),i=o/this.produceOffer().Offer.Items[0].PalletsPerFTL),this.quantityUpdated.emit({Offer:this.produceOffer().Offer,FTLsToOrder:i,PalletsToOrder:o,FOBCost:this.totalFOBCost()})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-offer-admin-produce-order-item"]],inputs:{produceOffer:[1,"produceOffer"]},outputs:{onRemoveItem:"onRemoveItem",quantityUpdated:"quantityUpdated"},decls:71,vars:43,consts:[[1,"tw-block","tw-rounded","tw-border","tw-border-solid","tw-border-slate-200"],[1,"tw-flex","tw-justify-between"],[1,"tw-font-semibold"],[1,"tw-text-2xl"],[1,""],[1,"tw-flex","tw-justify-between","tw-gap-2"],["pTooltip","Current sharing stage",1,"tw-ml-2","tw-inline-block","tw-h-6","tw-rounded-full","tw-bg-blue-500","tw-px-4","tw-py-1","tw-text-xs","tw-text-white"],["pTooltip","This is a combo offer.",1,"tw-ml-2","tw-inline-block","tw-h-6","tw-rounded-full","tw-bg-green-500","tw-px-4","tw-py-1","tw-text-xs","tw-text-white"],["pTooltip","This offer was marked as not combinable with other offers.",1,"tw-ml-2","tw-inline-block","tw-h-6","tw-rounded-full","tw-bg-red-500","tw-px-4","tw-py-1","tw-text-xs","tw-text-white"],["pTooltip","Featured Offer",1,"tw-ml-2","tw-inline-block","tw-h-6","tw-rounded-full","tw-bg-orange-500","tw-px-4","tw-py-1","tw-text-xs","tw-text-white"],[3,"click"],[1,"pi","pi-trash"],[1,"tw-mb-4","tw-italic","tw-text-slate-400"],[1,"tw-grid","tw-grid-cols-1","tw-gap-2","tw-text-xs","lg:tw-grid-cols-2"],[1,"marketplace-detail-grid-block"],[1,"marketplace-detail-label"],[1,"marketplace-detail-value"],[1,"tw-mb-10","tw-w-full"],["id","orderItemQuantity",3,"ngModelChange","ngModel","min","max","step","showButtons"],["for","orderItemQuantity"],[1,"tw-pb-2"],[1,"tw-pt-2","tw-text-2xl","tw-font-semibold"],[1,"pi","pi-star"],[1,"tw-mt-4","tw-text-lg","tw-font-semibold","lg:tw-col-span-2"],[1,"tw-mt-2","tw-text-xs","tw-italic","lg:tw-col-span-2"]],template:function(i,o){1&i&&(n.j41(0,"p-card",0)(1,"div",1)(2,"div",2)(3,"div",3),n.EFF(4),n.k0s(),n.j41(5,"div",4),n.EFF(6),n.k0s()(),n.j41(7,"div",5)(8,"div",6),n.EFF(9),n.k0s(),n.DNE(10,cIt,2,0,"div",7)(11,uIt,2,0,"div",8)(12,dIt,2,0,"div",9),n.j41(13,"div")(14,"a",10),n.bIt("click",function(){return o.removeItem()}),n.nrm(15,"i",11),n.k0s()()()(),n.j41(16,"div",12),n.EFF(17),n.nI1(18,"formatFAOMAddress"),n.k0s(),n.j41(19,"div",13)(20,"div",14)(21,"div",15),n.EFF(22,"Status"),n.k0s(),n.j41(23,"div",16)(24,"span"),n.EFF(25),n.k0s()(),n.j41(26,"div",15),n.EFF(27,"Offer Type"),n.k0s(),n.j41(28,"div",16),n.EFF(29),n.k0s(),n.j41(30,"div",15),n.EFF(31,"Distance"),n.k0s(),n.j41(32,"div",16),n.EFF(33),n.nI1(34,"formatDecimal"),n.k0s()(),n.j41(35,"div",14)(36,"div",15),n.EFF(37,"Posted"),n.k0s(),n.j41(38,"div",16),n.EFF(39),n.nI1(40,"formatDate"),n.k0s(),n.j41(41,"div",15),n.EFF(42,"Availability"),n.k0s(),n.j41(43,"div",16),n.EFF(44),n.nI1(45,"formatDate"),n.nI1(46,"formatDate"),n.k0s(),n.j41(47,"div",15),n.EFF(48,"Trucks Available"),n.k0s(),n.j41(49,"div",16),n.EFF(50),n.nI1(51,"formatDecimal"),n.k0s()(),n.Z7z(52,pIt,43,14,null,null,lIt),n.k0s(),n.j41(54,"div",17),n.nrm(55,"p-divider"),n.k0s(),n.j41(56,"div",1)(57,"p-floatlabel")(58,"p-input-number",18),n.mxI("ngModelChange",function(a){return n.DH7(o.orderItemQuantity,a)||(o.orderItemQuantity=a),a}),n.bIt("ngModelChange",function(a){return o.quantityChanged(a)}),n.k0s(),n.j41(59,"label",19),n.EFF(60),n.k0s()(),n.j41(61,"div",2)(62,"div",20),n.EFF(63),n.nI1(64,"formatDecimal"),n.k0s(),n.j41(65,"div"),n.EFF(66),n.nI1(67,"formatDecimal"),n.k0s()(),n.j41(68,"div",21),n.EFF(69),n.nI1(70,"formatPrice"),n.k0s()()()),2&i&&(n.R7$(4),n.Lme(" ",o.produceOffer().Offer.OfferID,": ",o.produceOffer().Offer.Title," "),n.R7$(2),n.SpI(" ",o.produceOffer().Offer.OfferWithItems.Donor.Name," "),n.R7$(3),n.SpI(" ",o.produceOffer().Offer.OfferWithItems.CurrentSharingStage," "),n.R7$(),n.vxM(o.produceOffer().Offer.Items.length>1?10:-1),n.R7$(),n.vxM(o.produceOffer().Offer.OfferWithItems.IsCombinableWithOtherOffers?-1:11),n.R7$(),n.vxM(o.produceOffer().Offer.OfferWithItems.IsFeatured?12:-1),n.R7$(5),n.SpI(" Shipping From: ",n.bMT(18,24,o.produceOffer().Offer.Items[0].DonorLocation.Address)," "),n.R7$(8),n.JRh(o.produceOffer().Offer.OfferWithItems.OfferStatus.Name),n.R7$(4),n.SpI(" ",o.produceOffer().Offer.Items[0].OfferTransactionTypeDescription," "),n.R7$(4),n.SpI(" ",n.i5U(34,26,o.produceOffer().Offer.Items[0].Distance,0)," miles "),n.R7$(6),n.SpI(" ",n.bMT(40,29,o.produceOffer().Offer.OfferWithItems.Created)," "),n.R7$(5),n.Lme(" ",n.bMT(45,31,o.produceOffer().Offer.OfferWithItems.FirstAvailableDate)," - ",n.bMT(46,33,o.produceOffer().Offer.OfferWithItems.LastAvailableDate)," "),n.R7$(6),n.SpI(" ",n.bMT(51,35,o.produceOffer().Offer.OfferWithItems.TrucksAvailable)," "),n.R7$(2),n.Dyx(o.produceOffer().Offer.Items),n.R7$(6),n.R50("ngModel",o.orderItemQuantity),n.Y8G("min",1)("max",o.maxUnitsOrderable())("step",1)("showButtons",!0),n.R7$(2),n.SpI("",o.orderedUnitDescription()," to Order:"),n.R7$(3),n.SpI("FTLs: ",n.bMT(64,37,o.percentFTL()),""),n.R7$(3),n.SpI("Total Weight: ",n.bMT(67,39,o.totalWeightPounds()),""),n.R7$(3),n.SpI(" Total: ",n.bMT(70,41,o.totalFOBCost())," "))},dependencies:[rm,kg,Xy,c0,Yv,om,Xw,J_,Bpe,aIt,Rh,ou,qv,Ra,_o,ko,wI],encapsulation:2})}}return t})();function fIt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",3)(1,"app-offer-admin-produce-order-item",15),n.bIt("onRemoveItem",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.removeItem(o))})("quantityUpdated",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.orderItemUpdated(o))}),n.k0s()()}if(2&t){const e=r.$implicit;n.R7$(),n.Y8G("produceOffer",e)}}function mIt(t,r){if(1&t&&(n.j41(0,"div",16)(1,"div",17)(2,"div",18),n.EFF(3),n.k0s(),n.j41(4,"div"),n.EFF(5),n.nI1(6,"formatDecimal"),n.k0s()(),n.j41(7,"div",17)(8,"div"),n.EFF(9),n.k0s(),n.j41(10,"div"),n.EFF(11),n.k0s()()()),2&t){const e=r.$implicit;n.R7$(3),n.Lme(" ",e.OfferID,": ",e.Title," "),n.R7$(2),n.SpI(" Trucks Available: ",n.bMT(6,5,e.OfferWithItems.TrucksAvailable)," "),n.R7$(4),n.JRh(e.Items[0].Offer.Donor.Name),n.R7$(2),n.SpI("",e.Items[0].Distance," mi. away")}}let gIt=(()=>{class t{constructor(){this.legacyProduceService=(0,n.WQX)(SX),this.cartService=(0,n.WQX)(l0),this.toasterService=(0,n.WQX)(tc),this.orderingEntity=(0,n.hFB)(null),this.deliveryLocation=(0,n.hFB)(null),this.initialOfferIds=(0,n.hFB)([]),this.ButtonStyle=Xv,this.availableOffers=(0,n.vPA)([]),this.allAddableOffers=(0,n.vPA)([]),this.filteredOffers=(0,n.vPA)([]),this.selectedOfferToAdd=(0,n.geq)(null),this.offersInOrder=(0,n.vPA)([]),this.canCheckout=(0,n.EWP)(()=>!(!this.orderingEntity()||!this.deliveryLocation())),this.totalFTLs=(0,n.EWP)(()=>this.offersInOrder().reduce((e,i)=>e+i.FTLsToOrder,0)),this.totalFOBCost=(0,n.EWP)(()=>this.offersInOrder().reduce((e,i)=>e+i.FOBCost,0)),this.addOfferSearchIndex=null,this.addOfferSearchKeys=[{name:"OfferID",weight:.2},{name:"Items.OfferItemWithVariety",weight:.4}],(0,n.QZP)(()=>{this.orderingEntity()&&this.deliveryLocation()&&this.legacyProduceService.getProduceActiveOffers(this.orderingEntity()?.internalDetail?.internalEntityId).subscribe({next:e=>{const i={};for(const s of e){let a=s.Offer.ID;a in i?i[a].push(s):i[a]=[s]}let o=Object.entries(i).map(([s,a])=>{let l=JSON.parse(JSON.stringify(a[0].Offer));const c=new Array;for(const v of a){const w=JSON.parse(JSON.stringify(v));delete w.Offer,w.OfferID=null,c.push(w)}l.OfferItems=c;const d=JSON.parse(JSON.stringify(l)),f=a.map(v=>v.OfferItemWithVariety).join(" / ");return{OfferID:+s,Items:a,Title:a.length>1?`Combo (${f})`:f,OfferWithItems:d}});o=o.filter(s=>!(s.OfferWithItems.IsCombo&&s.OfferWithItems.TrucksAvailable<.5)),this.availableOffers.set(o),this.allAddableOffers.set(o),this.setInitialOffers()}})})}setInitialOffers(){for(const e of this.initialOfferIds())if(e&&!isNaN(Number(e))){const i=this.allAddableOffers().find(o=>o.OfferID===Number(e));i?this.addOffer(i):this.toasterService.displayErrorToast("Couldn't Find Offer!",`Sorry, the requested produce offer isn't available to ${this.orderingEntity().name}`)}}filterOffers(e){if(!e||!e.query)return void this.filteredOffers.set([...this.allAddableOffers()]);this.addOfferSearchIndex||this.buildSearchIndex();let i=this.addOfferSearchIndex?.search(e.query);this.filteredOffers.set(i?i.map(o=>o.item):[])}buildSearchIndex(){this.addOfferSearchIndex=new tC(this.allAddableOffers(),{keys:this.addOfferSearchKeys,isCaseSensitive:!1,shouldSort:!0,threshold:.3})}addOfferSelected(e){this.addOffer(e.value)}addOffer(e){let i={Offer:e,PalletsToOrder:0,FTLsToOrder:0,FOBCost:0};this.offersInOrder.set([...this.offersInOrder(),i]),this.selectedOfferToAdd.set(null),this.allAddableOffers.set(this.availableOffers().filter(o=>o.OfferWithItems.DonorID==e.OfferWithItems.DonorID&&!this.offersInOrder().map(s=>s.Offer.OfferID).includes(o.OfferID))),this.buildSearchIndex()}startOrderCheckout(){if(!this.canCheckout())return;const e=this.orderingEntity(),i=this.deliveryLocation(),o=[];for(const s of this.offersInOrder()){let l=s.PalletsToOrder;o.push(this.cartService.setupProduceOfferForCheckout(s.Offer.OfferWithItems,s.FTLsToOrder,l,l,!1))}this.legacyProduceService.getFoodBank(e.internalDetail?.internalObjectId).subscribe({next:s=>{this.cartService.transferProduceOrderCheckoutToProduce("",o,i,{isOrderingAs:!0,org:s})}})}removeItem(e){this.offersInOrder.set([...this.offersInOrder().filter(i=>i.Offer.OfferID!=e.Offer.OfferID)]),0===this.offersInOrder().length&&(this.allAddableOffers.set(this.availableOffers()),this.buildSearchIndex())}orderItemUpdated(e){this.offersInOrder.update(i=>i.map(o=>o.Offer.OfferID===e.Offer.OfferID?{...o,PalletsToOrder:e.PalletsToOrder,FTLsToOrder:e.FTLsToOrder,FOBCost:e.FOBCost}:o))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-offer-admin-produce-order"]],inputs:{orderingEntity:[1,"orderingEntity"],deliveryLocation:[1,"deliveryLocation"],initialOfferIds:[1,"initialOfferIds"],selectedOfferToAdd:[1,"selectedOfferToAdd"]},outputs:{selectedOfferToAdd:"selectedOfferToAddChange"},decls:28,vars:13,consts:[["item",""],[1,"tw-grid","tw-grid-cols-7","tw-gap-4"],[1,"tw-col-span-5"],[1,"tw-mb-8"],[1,"tw-block"],[1,"tw-mt-8"],["scrollHeight","300px","inputStyleClass","tw-h-12 !tw-text-lg !tw-pl-2",1,"tw-block","tw-w-full","tw-max-w-full",3,"ngModelChange","completeMethod","onSelect","ngModel","suggestions","dropdown","virtualScroll","virtualScrollItemSize"],["for","addOfferAutocomplete"],[1,"tw-col-span-2"],["header","Order Summary",1,"tw-block","tw-rounded","tw-border","tw-border-solid","tw-border-slate-200","tw-bg-slate-50"],[1,"tw-grid","tw-list-none","tw-gap-4","tw-p-0"],[1,"tw-flex","tw-flex-col","tw-gap-2"],[1,"tw-text-[20px]","tw-font-semibold"],[1,"tw-mt-6","tw-flex","tw-justify-center"],["text","Checkout",3,"click","buttonStyle","disabled"],[3,"onRemoveItem","quantityUpdated","produceOffer"],[1,"tw-w-full"],[1,"tw-flex","tw-justify-between"],[1,"tw-font-semibold"]],template:function(i,o){if(1&i){const s=n.RV6();n.j41(0,"div",1)(1,"div",2),n.Z7z(2,fIt,2,1,"div",3,n.Vm6),n.nrm(4,"p-divider",4),n.j41(5,"p-floatlabel",5)(6,"p-autocomplete",6),n.mxI("ngModelChange",function(l){return n.eBV(s),n.DH7(o.selectedOfferToAdd,l)||(o.selectedOfferToAdd=l),n.Njj(l)}),n.bIt("completeMethod",function(l){return n.eBV(s),n.Njj(o.filterOffers(l))})("onSelect",function(l){return n.eBV(s),n.Njj(o.addOfferSelected(l))}),n.DNE(7,mIt,12,7,"ng-template",null,0,n.C5r),n.k0s(),n.j41(9,"label",7),n.EFF(10,"Add an Offer to the Order"),n.k0s()()(),n.j41(11,"div",8)(12,"p-card",9)(13,"ul",10)(14,"li",11)(15,"span"),n.EFF(16,"Total FOB Cost:"),n.k0s(),n.j41(17,"strong",12),n.EFF(18),n.nI1(19,"formatPrice"),n.k0s()(),n.j41(20,"li",11)(21,"span"),n.EFF(22,"Full Truckloads:"),n.k0s(),n.j41(23,"strong",12),n.EFF(24),n.nI1(25,"formatDecimal"),n.k0s()()(),n.j41(26,"div",13)(27,"app-primary-button",14),n.bIt("click",function(){return n.eBV(s),n.Njj(o.startOrderCheckout())}),n.k0s()()()()()}2&i&&(n.R7$(2),n.Dyx(o.offersInOrder()),n.R7$(4),n.R50("ngModel",o.selectedOfferToAdd),n.Y8G("suggestions",o.filteredOffers())("dropdown",!0)("virtualScroll",!0)("virtualScrollItemSize",60),n.R7$(12),n.JRh(n.bMT(19,9,o.totalFOBCost())),n.R7$(6),n.JRh(n.bMT(25,11,o.totalFTLs())),n.R7$(3),n.Y8G("buttonStyle",o.ButtonStyle.OutlinedOrange)("disabled",!o.canCheckout()))},dependencies:[mP,Xy,c0,rm,kg,$w,Ib,DF,_o,ko,hIt,qv,wI,Yv,om],encapsulation:2})}}return t})();const vIt=(t,r)=>({"tw-border-green-800":t,"tw-border-r-0 tw-border-gray-200":r}),_It=(t,r)=>({"tw-bg-fa-green-200":t,"tw-bg-gray-200":r}),yIt=(t,r)=>({"tw-text-fa-green-500":t,"tw-text-gray-500":r}),she=t=>({"tw-text-gray-500":t}),bIt=(t,r)=>({"tw-border-fa-orange-800":t,"tw-border-l-0 tw-border-gray-200":r}),CIt=(t,r)=>({"tw-bg-fa-orange-200":t,"tw-bg-gray-200":r}),wIt=(t,r)=>({"tw-text-fa-orange-500":t,"tw-text-gray-500":r}),TIt=t=>[t];function SIt(t,r){if(1&t&&n.nrm(0,"app-offer-admin-marketplace-order",17),2&t){const e=n.XpG(2);n.Y8G("deliveryLocation",e.deliveryLocation())("orderingEntity",e.orderingEntity())("initialOfferIds",e.initialOrderingIds())}}function xIt(t,r){if(1&t&&n.nrm(0,"app-offer-admin-produce-order",17),2&t){const e=n.XpG(2);n.Y8G("deliveryLocation",e.deliveryLocation())("orderingEntity",e.orderingEntity())("initialOfferIds",n.eq3(3,TIt,e.orderOfferId))}}function EIt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",8)(1,"span",2),n.EFF(2,"Items in Order"),n.k0s()(),n.j41(3,"div",9)(4,"button",10),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.selectedArea.set("PRODUCE"))}),n.j41(5,"div",11),n.nrm(6,"icon-produce",12),n.k0s(),n.j41(7,"span",13),n.EFF(8," Produce "),n.k0s()(),n.j41(9,"button",14),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.selectedArea.set("MARKETPLACE"))}),n.j41(10,"div",15),n.nrm(11,"icon-grocery",16),n.k0s(),n.j41(12,"span",13),n.EFF(13," Grocery "),n.k0s()()(),n.j41(14,"p-card"),n.DNE(15,SIt,1,3,"app-offer-admin-marketplace-order",17)(16,xIt,1,5,"app-offer-admin-produce-order",17),n.k0s()}if(2&t){const e=n.XpG();n.R7$(4),n.Y8G("ngClass",n.l_i(10,vIt,"PRODUCE"===e.selectedArea(),"PRODUCE"!==e.selectedArea())),n.R7$(),n.Y8G("ngClass",n.l_i(13,_It,"PRODUCE"===e.selectedArea(),"PRODUCE"!==e.selectedArea())),n.R7$(),n.Y8G("ngClass",n.l_i(16,yIt,"PRODUCE"===e.selectedArea(),"PRODUCE"!==e.selectedArea())),n.R7$(),n.Y8G("ngClass",n.eq3(19,she,"PRODUCE"!==e.selectedArea())),n.R7$(2),n.Y8G("ngClass",n.l_i(21,bIt,"MARKETPLACE"===e.selectedArea(),"MARKETPLACE"!==e.selectedArea())),n.R7$(),n.Y8G("ngClass",n.l_i(24,CIt,"MARKETPLACE"===e.selectedArea(),"MARKETPLACE"!==e.selectedArea())),n.R7$(),n.Y8G("ngClass",n.l_i(27,wIt,"MARKETPLACE"===e.selectedArea(),"MARKETPLACE"!==e.selectedArea())),n.R7$(),n.Y8G("ngClass",n.eq3(30,she,"MARKETPLACE"!==e.selectedArea())),n.R7$(3),n.vxM("MARKETPLACE"===e.selectedArea()?15:-1),n.R7$(),n.vxM("PRODUCE"===e.selectedArea()?16:-1)}}let DIt=(()=>{class t{constructor(){this.entityService=(0,n.WQX)(jh),this.marketplaceUtilities=(0,n.WQX)(I2),this.marketplaceService=(0,n.WQX)(Yu),this.toasterService=(0,n.WQX)(tc),this.timelineEntryService=(0,n.WQX)(zv),this.cartService=(0,n.WQX)(l0),this.orderOfferId="",this.selectedArea=(0,n.vPA)("MARKETPLACE"),this.orderingEligibleEntities=(0,n.vPA)([]),this.possibleDestinations=(0,n.vPA)([]),this.orderingOrganizationListings=(0,n.vPA)([]),this.orderingEntity=(0,n.vPA)(null),this.deliveryLocation=(0,n.vPA)(null),this.initialOrderingIds=(0,n.EWP)(()=>this.orderOfferId?this.orderOfferId.split("|"):[]),this.ButtonStyle=Xv}ngOnInit(){this.loadEntityData(),this.orderOfferId&&""!=this.orderOfferId&&(isNaN(Number(this.orderOfferId))||this.selectedArea.set("PRODUCE"))}loadEntityData(){this.entityService.getOrderingEligibleEntities().subscribe({next:e=>{this.orderingEligibleEntities.set(e)}})}orderingEntitySelected(e){if(!e)return;const i=e?.internalDetail?.internalEntityId;i?(this.orderingEntity.set(e),this.deliveryLocation.set(null),this.entityService.getEntityLocations(i).subscribe({next:o=>{this.possibleDestinations.set(o.locations)},error:o=>{this.toasterService.displayErrorToast("Failed to load locations!","Sorry, we ran into an error loading locations for this organization.")}})):this.toasterService.displayErrorToast("Invalid Organization!","Sorry - something appears to be wrong with the selected organization's record. Please contact an administrator.")}deliveryLocationSelected(e){null!=e?this.deliveryLocation.set(e):this.orderingOrganizationListings.set([])}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-marketplace-offer-admin-order"]],inputs:{orderOfferId:"orderOfferId"},decls:13,vars:7,consts:[[1,"tw-container","tw-mx-auto","tw-max-w-screen-xl"],[1,"tw-mb-8","tw-w-full"],[1,"tw-text-xl","tw-font-bold"],[1,""],[1,"tw-flex","tw-w-full","tw-gap-4","tw-pt-4"],[1,"tw-flex-auto"],["placeholder","Order For...",3,"onSingleItemSelected","entitySummaries","required"],["placeholder","Primary Destination",3,"onSingleItemSelected","entitySummaries","required","showAddress","showIsPrimaryLocation"],[1,"tw-my-8","tw-w-full"],[1,"tw-my-6","tw-flex","tw-py-2"],["title","View Produce Offers",1,"btn-reset","tw-group","tw-flex","tw-items-center","tw-space-x-2","tw-border-2","tw-border-solid","tw-px-4","tw-py-2",3,"click","ngClass"],[1,"tw-flex","tw-h-[32px]","tw-w-[32px]","tw-items-center","tw-justify-center","tw-rounded-full","tw-transition-colors","group-hover:tw-bg-fa-green-200",3,"ngClass"],[1,"group-hover:tw-text-fa-green-500",3,"ngClass"],[1,"tw-font-semibold",3,"ngClass"],["title","View Grocery Offers",1,"btn-reset","tw-group","tw-flex","tw-items-center","tw-space-x-2","tw-border-2","tw-border-solid","tw-px-4","tw-py-2",3,"click","ngClass"],[1,"tw-flex","tw-h-[32px]","tw-w-[32px]","tw-items-center","tw-justify-center","tw-rounded-full","tw-transition-colors","group-hover:tw-bg-fa-orange-200",3,"ngClass"],[1,"group-hover:tw-text-fa-orange-500",3,"ngClass"],[3,"deliveryLocation","orderingEntity","initialOfferIds"]],template:function(i,o){1&i&&(n.j41(0,"page-heading"),n.EFF(1,"Create an Order"),n.k0s(),n.j41(2,"div",0)(3,"div",1)(4,"span",2),n.EFF(5,"On Behalf Of..."),n.k0s()(),n.j41(6,"p-card",3)(7,"div",4)(8,"div",5)(9,"app-entity-summary-selection",6),n.bIt("onSingleItemSelected",function(a){return o.orderingEntitySelected(a)}),n.k0s()(),n.j41(10,"div",5)(11,"app-entity-summary-selection",7),n.bIt("onSingleItemSelected",function(a){return o.deliveryLocationSelected(a)}),n.k0s()()()(),n.DNE(12,EIt,17,32),n.k0s()),2&i&&(n.R7$(9),n.Y8G("entitySummaries",o.orderingEligibleEntities())("required",!0),n.R7$(2),n.Y8G("entitySummaries",o.possibleDestinations())("required",!0)("showAddress",!0)("showIsPrimaryLocation",!0),n.R7$(),n.vxM(o.orderingEntity()&&o.deliveryLocation()?12:-1))},dependencies:[Ra,xv,x6,Xy,$w,rm,kg,Ykt,Rh,sIt,gIt,gn,bi,AX,MX,CI],encapsulation:2})}}return t})();function M2(t,r,e,i,o,s,a,l=!1){e=e||[],a=a||[];const c=(o=o||[]).slice(0);if(typeof s<"u"&&null!==s){if(i){if("function"==typeof i&&i(c,s))return;if("object"==typeof i){if(i.prefilter&&i.prefilter(c,s))return;if(i.normalize){const x=i.normalize(c,s,t,r);x&&(t=x[0],r=x[1])}}}c.push(s)}"regexp"===Ky(t)&&"regexp"===Ky(r)&&(t=t.toString(),r=r.toString());const d=typeof t,f=typeof r,v="undefined"!==d||a&&a.length>0&&a[a.length-1].lhs&&Object.getOwnPropertyDescriptor(a[a.length-1].lhs,s),w="undefined"!==f||a&&a.length>0&&a[a.length-1].rhs&&Object.getOwnPropertyDescriptor(a[a.length-1].rhs,s);if(v||!w)if(w||!v)if(Ky(t)===Ky(r))if("date"!==Ky(t)||t.valueOf()-r.valueOf()==0)if("object"===d&&null!==t&&null!==r){let x=!1;for(let I=a.length-1;I>-1;--I)if(a[I].lhs===t){x=!0;break}if(x)t!==r&&e.push({kind:"E",path:c,lhs:t,rhs:r});else{if(a.push({lhs:t,rhs:r}),Array.isArray(t)&&Array.isArray(r)){let I=t,M=r;l&&(I=I.slice(0).sort(function(pe,we){return TI(pe)-TI(we)}),M=M.slice(0).sort(function(pe,we){return TI(pe)-TI(we)}));let F=M.length-1,re=I.length-1;for(;F>re;)e.push({kind:"A",path:c,index:F,item:{kind:"N",rhs:M[F--],path:void 0}});for(;re>F;)e.push({kind:"A",path:c,index:re,item:{kind:"D",lhs:I[re--],path:void 0}});for(;F>=0;--F)M2(I[F],M[F],e,i,c,F,a,l)}else{const I=t,M=r,F=[...Object.keys(I),...Object.getOwnPropertySymbols(I)],re=[...Object.keys(M),...Object.getOwnPropertySymbols(M)];for(let pe=0;pe<F.length;++pe){const we=F[pe],je=re.indexOf(we);je>=0?(M2(I[we],M[we],e,i,c,we,a,l),re[je]=null):M2(I[we],void 0,e,i,c,we,a,l)}for(let pe=0;pe<re.length;++pe){const we=re[pe];we&&M2(void 0,M[we],e,i,c,we,a,l)}}a.pop()}}else t!==r&&("number"===d&&isNaN(t)&&isNaN(r)||e.push({kind:"E",path:c,lhs:t,rhs:r}));else e.push({kind:"E",path:c,lhs:t,rhs:r});else e.push({kind:"E",path:c,lhs:t,rhs:r});else e.push({kind:"D",path:c,lhs:t});else e.push({kind:"N",path:c,rhs:r})}function Ky(t){const r=typeof t;return"object"!==r?r:t===Math?"math":null===t?"null":Array.isArray(t)?"array":"[object Date]"===Object.prototype.toString.call(t)?"date":"function"==typeof t.toString&&/^\/.*\//.test(t.toString())?"regexp":"object"}function TI(t){let r=0;const e=Ky(t);if("array"===e)return t.forEach(function(s){r+=TI(s)}),r+UX(`[type: array, hash: ${r}]`);if("object"===e){for(let o in t)if(t.hasOwnProperty(o)){const s=TI(t[o]);r+=UX(`[ type: object, key: ${o}, value hash: ${s}]`)}return r}return r+UX(`[ type: ${e} ; value: ${t}]`)}function UX(t){let r=0;if(0===t.length)return r;for(let e=0;e<t.length;e++)r=(r<<5)-r+t.charCodeAt(e),r|=0;return r}function AIt(t,r){1&t&&(n.j41(0,"tr")(1,"th"),n.EFF(2,"Date"),n.k0s(),n.j41(3,"th"),n.EFF(4,"User"),n.k0s(),n.j41(5,"th"),n.EFF(6,"Organization"),n.k0s(),n.j41(7,"th"),n.EFF(8,"Change"),n.k0s(),n.j41(9,"th"),n.EFF(10,"View"),n.k0s()())}function MIt(t,r){if(1&t&&(n.j41(0,"li"),n.EFF(1),n.k0s()),2&t){const e=r.$implicit;n.R7$(),n.JRh(e)}}function RIt(t,r){if(1&t){const e=n.RV6();n.j41(0,"tr")(1,"td"),n.EFF(2),n.nI1(3,"formatUTCTimestamp"),n.k0s(),n.j41(4,"td"),n.EFF(5),n.k0s(),n.j41(6,"td"),n.EFF(7),n.k0s(),n.j41(8,"td")(9,"ul",3),n.Z7z(10,MIt,2,1,"li",null,n.Vm6),n.k0s()(),n.j41(12,"td")(13,"i",4),n.bIt("click",function(){const o=n.eBV(e).$implicit,s=n.XpG();return n.Njj(s.viewVersion(o.offerVersion))}),n.k0s()()()}if(2&t){const e=r.$implicit;n.R7$(2),n.JRh(n.bMT(3,3,e.offerVersion.creationTimeUTC)),n.R7$(3),n.JRh(e.offerVersion.user.userEmail),n.R7$(2),n.JRh(e.offerVersion.user.representedEntity.name),n.R7$(3),n.Dyx(e.changes)}}let OIt=(()=>{class t{constructor(){this.datePipe=(0,n.WQX)(ti),this.versionHistory=(0,n.hFB)([]),this.scrollable=(0,n.hFB)(!0),this.scrollHeight=(0,n.hFB)("400px"),this.onViewVersion=(0,n.CGW)(),this.changeHistory=(0,n.EWP)(()=>{let e=null;const i=[];for(const o of this.versionHistory().slice().reverse()){let s=this.getDiff(o,e);i.push({offerVersion:o,changes:s.length?s:["No Relevant Changes"]}),e=o}return i.slice().reverse()}),this.ignoredPropertyNames=["offerVersionId","creationTimeUTC"]}ngOnInit(){}viewVersion(e){this.onViewVersion.emit(e)}getDiff(e,i){const o=new Set;return i?(function kIt(t,r,e){const i=[];return M2(t,r,i,e),i?.length?i:void 0}(i,e)?.forEach(a=>{try{let l=this.getRelevantPropertyName(a.path);if(this.ignoredPropertyNames.includes(l))return;switch(l=this.toTitleCase(l),a.kind){case"N":o.add(`Added - ${l} = '${a.rhs}'`);break;case"D":o.add(`Removed - ${l} = '${a.lhs}'`);break;case"E":let f=a;o.add(`Updated - ${l} from '${this.formatValue(l,f.lhs)}' to '${this.formatValue(l,f.rhs)}'`);break;case"A":let w=this.getRelevantPropertyName(a.path);o.add(`Updated Entries - ${w}`)}}catch{}}),Array.from(o)):(o.add("(Original Offer)"),Array.from(o))}formatValue(e,i){try{if(e.endsWith("UTC")&&("string"==typeof i||"number"==typeof i))return this.datePipe.transform(new Date(i),"yyyy-MM-dd");if(this.isObject(i))return JSON.stringify(i)}catch{}return i}getRelevantPropertyName(e){let i=e[e.length-1];return"itemId"===i&&e.length>2&&(i=e[e.length-2],"string"!=typeof i&&(i=e[e.length-3])),i}getPath(e){return e.join(".")}isObject(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}toTitleCase(e){if(!e)return e;let o=e.replace(/([A-Z])/g," $1").trim().replace(/\b\w/g,s=>s.toUpperCase());return o.includes("U T C")&&(o=o.replace("U T C","UTC")),o}getChanges(e,i){const o=[];return null==i?(o.push("(Original Offer)"),o):(JSON.stringify(i.sourceEntity)!=JSON.stringify(e.sourceEntity)&&o.push("Source"),JSON.stringify(i.locationEntity)!=JSON.stringify(e.locationEntity)&&o.push("Location"),JSON.stringify(i.receiptToEntity)!=JSON.stringify(e.receiptToEntity)&&o.push("Receipt Organization"),i.designationCode!=e.designationCode&&o.push("Designation Code"),i.title!=e.title&&o.push("Title"),i.description!=e.description&&o.push("Description"),i.reasonCode!=e.reasonCode&&o.push("Reason Code"),JSON.stringify(i.transportationContext)!=JSON.stringify(e.transportationContext)&&o.push("Transportation Offerings"),JSON.stringify(i.costs)!=JSON.stringify(e.costs)&&o.push("Offer-Level Costs"),JSON.stringify(i.accessWindows)!=JSON.stringify(e.accessWindows)&&o.push("Access Windows"),i.expirationTimeUTC!=e.expirationTimeUTC&&o.push("Expiration Time"),JSON.stringify(i.matchPreferences)!=JSON.stringify(e.matchPreferences)&&o.push("Match Preferences"),i.leadTimeInDays!=e.leadTimeInDays&&o.push("Lead Time"),JSON.stringify(i.contents)!=JSON.stringify(e.contents)&&o.push("Contents"),0==o.length&&o.push("(No Changes)"),o)}findPriorVersion(e){const i=this.versionHistory().filter(o=>o.creationTimeUTC<e.creationTimeUTC);return i.length>0?i[0]:null}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-marketplace-offer-change-log"]],inputs:{versionHistory:[1,"versionHistory"],scrollable:[1,"scrollable"],scrollHeight:[1,"scrollHeight"]},outputs:{onViewVersion:"onViewVersion"},decls:5,vars:3,consts:[["header",""],["body",""],[3,"value","scrollable","scrollHeight"],[1,"tw-m-0","tw-list-none","tw-p-0"],[1,"pi","pi-window-maximize","tw-cursor-pointer","hover:tw-text-gray-500",3,"click"]],template:function(i,o){1&i&&(n.j41(0,"p-table",2),n.DNE(1,AIt,11,0,"ng-template",null,0,n.C5r)(3,RIt,14,5,"ng-template",null,1,n.C5r),n.k0s()),2&i&&n.Y8G("value",o.changeHistory())("scrollable",o.scrollable())("scrollHeight",o.scrollHeight())},dependencies:[gn,c7,Nu,fP],encapsulation:2})}}return t})();const FIt=["heading"];function PIt(t,r){if(1&t){const e=n.RV6();n.j41(0,"p-message",3),n.EFF(1),n.nI1(2,"formatUTCTimestamp"),n.j41(3,"a",29),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.setViewVersion(o.currentVersion()))}),n.EFF(4,"click here"),n.k0s(),n.EFF(5,"."),n.k0s()}if(2&t){const e=n.XpG();n.R7$(),n.SpI("This is not the latest version of this offer. The information below is as of the update to the offer on ",n.bMT(2,1,e.activeVersion().creationTimeUTC),". To see the latest version, ")}}function LIt(t,r){if(1&t&&(n.j41(0,"p-message",3),n.EFF(1),n.nI1(2,"formatUTCTimestamp"),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.SpI("Note: The latest version of this offer expired on ",n.bMT(2,1,e.activeVersion().expirationTimeUTC)," and is no longer available.")}}function NIt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",9)(1,"button",30),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.startEdit())}),n.EFF(2," Edit Offer "),n.k0s()()}}function GIt(t,r){if(1&t&&(n.j41(0,"div",10),n.EFF(1),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.SpI("UPC/SKU: ",e.upc(),"")}}function BIt(t,r){if(1&t&&(n.j41(0,"div",11),n.EFF(1),n.k0s()),2&t){let e;const i=n.XpG();n.R7$(),n.SpI(" Supplier Identifier: ",null==(e=i.activeVersion())?null:e.sourceIdentifier," ")}}function VIt(t,r){if(1&t&&(n.EFF(0),n.nI1(1,"formatUTCTimestamp")),2&t){let e;const i=n.XpG(2);n.SpI(" ",n.i5U(1,1,null==(e=i.activeVersion())?null:e.shippingFirstAvailableTimeUTC,!1)," ")}}function jIt(t,r){if(1&t&&(n.EFF(0),n.nI1(1,"formatUTCTimestamp")),2&t){let e;const i=n.XpG(2);n.SpI(" ",n.i5U(1,1,null==(e=i.activeVersion())?null:e.shippingDeadlineTimeUTC,!1)," ")}}function HIt(t,r){if(1&t&&(n.j41(0,"div",16)(1,"span",10),n.EFF(2),n.k0s(),n.DNE(3,VIt,2,4),n.EFF(4),n.DNE(5,jIt,2,4),n.k0s()),2&t){let e,i,o;const s=n.XpG();n.R7$(2),n.SpI("",s.availableToShipStatement(),": "),n.R7$(),n.vxM(null!=(e=s.activeVersion())&&e.shippingFirstAvailableTimeUTC?3:-1),n.R7$(),n.SpI(" ",null!=(i=s.activeVersion())&&i.shippingDeadlineTimeUTC&&null!=(i=s.activeVersion())&&i.shippingFirstAvailableTimeUTC?" - ":""," "),n.R7$(),n.vxM(null!=(o=s.activeVersion())&&o.shippingDeadlineTimeUTC?5:-1)}}function UIt(t,r){1&t&&(n.j41(0,"p-message",18),n.EFF(1,"This offer contains multiple root content items - their details are below."),n.k0s())}function $It(t,r){if(1&t&&n.nrm(0,"app-packing-structure-info",19),2&t){const e=n.XpG();n.Y8G("offerVersion",e.activeVersion())}}function YIt(t,r){if(1&t&&n.nrm(0,"google-map",24),2&t){const e=n.XpG();n.Y8G("center",e.locationCenter())}}function WIt(t,r){if(1&t&&(n.j41(0,"p-card",25)(1,"div",5)(2,"div",31)(3,"div",22),n.EFF(4,"Offer Code"),n.k0s(),n.j41(5,"div",23),n.EFF(6),n.k0s(),n.j41(7,"div",22),n.EFF(8,"Offer ID"),n.k0s(),n.j41(9,"div",23),n.EFF(10),n.k0s(),n.j41(11,"div",22),n.EFF(12,"Last Update Date"),n.k0s(),n.j41(13,"div",23),n.EFF(14),n.nI1(15,"formatUTCTimestamp"),n.k0s(),n.j41(16,"div",22),n.EFF(17,"Split From"),n.k0s(),n.j41(18,"div",23),n.EFF(19),n.k0s()(),n.j41(20,"div",31)(21,"div",22),n.EFF(22,"Content Structure"),n.k0s(),n.j41(23,"div",23),n.EFF(24),n.k0s(),n.j41(25,"div",22),n.EFF(26,"Reason Code"),n.k0s(),n.j41(27,"div",23),n.EFF(28),n.k0s(),n.j41(29,"div",22),n.EFF(30,"Designation"),n.k0s(),n.j41(31,"div",23),n.EFF(32),n.k0s(),n.j41(33,"div",22),n.EFF(34,"Updated By"),n.k0s(),n.j41(35,"div",23),n.EFF(36),n.k0s()()()()),2&t){let e,i,o,s,a,l,c,d;const f=n.XpG();n.R7$(6),n.SpI(" ",null==(e=f.activeVersion())?null:e.offerCode," "),n.R7$(4),n.SpI(" ",null==(i=f.activeVersion())?null:i.offerId," "),n.R7$(4),n.SpI(" ",n.bMT(15,8,null==(o=f.activeVersion())?null:o.creationTimeUTC)," "),n.R7$(5),n.SpI(" ",null==(s=f.activeVersion())?null:s.splitFromOfferId," "),n.R7$(5),n.SpI(" ",null==(a=f.activeVersion())?null:a.contentStructure," "),n.R7$(4),n.SpI(" ",null==(l=f.activeVersion())?null:l.reasonCode," "),n.R7$(4),n.SpI(" ",null==(c=f.activeVersion())?null:c.designationCode," "),n.R7$(4),n.SpI(" ",null==(d=f.activeVersion())||null==d.user?null:d.user.userEmail," ")}}function zIt(t,r){if(1&t){const e=n.RV6();n.j41(0,"p-card",26)(1,"app-marketplace-offer-change-log",32),n.bIt("onViewVersion",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.setViewVersion(o))}),n.k0s()()}if(2&t){const e=n.XpG();n.R7$(),n.Y8G("versionHistory",e.versionHistory())}}function qIt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",28)(1,"app-offer-form",33),n.bIt("onOfferVersionCreated",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onOfferUpdated(o))}),n.k0s()()}if(2&t){const e=n.XpG();n.R7$(),n.Y8G("editingOffer",e.offerToEdit())}}let XIt=(()=>{class t{constructor(){this.marketplaceService=(0,n.WQX)(Yu),this.legacyNavigationService=(0,n.WQX)(wc),this.legacySessionDataService=(0,n.WQX)(qy),this.heading=n.ebz.required("heading"),this.currentVersion=(0,n.vPA)(null),this.activeVersion=(0,n.vPA)(null),this.versionHistory=(0,n.vPA)([]),this.locationCenter=(0,n.vPA)(null),this.detailContentItem=(0,n.vPA)(null),this.detailContentItemTaxonomyCode=(0,n.vPA)(""),this.detailContentItemTaxonomyEntry=(0,n.vPA)(null),this.detailContentItemUpc=(0,n.vPA)(""),this.detailContentItemNetSuiteId=(0,n.vPA)(""),this.detailContentItemFOBCost=(0,n.vPA)(0),this.detailContentItemPackingType=(0,n.vPA)(""),this.editingOffer=(0,n.vPA)(!1),this.offerToEdit=(0,n.vPA)(null),this.offerUpdating=(0,n.vPA)(!1),this.activeVersionRestrictToNames=(0,n.vPA)([]),this.offerIsExpired=(0,n.EWP)(()=>!!this.currentVersion()&&this.currentVersion().expirationTimeUTC<Date.now()),this.availableToShipStatement=(0,n.EWP)(()=>{let e="";return this.activeVersion()?.shippingDeadlineTimeUTC&&this.activeVersion()?.shippingFirstAvailableTimeUTC&&(e="Must Ship Between"),this.activeVersion()?.shippingDeadlineTimeUTC&&!this.activeVersion()?.shippingFirstAvailableTimeUTC&&(e="Must Ship By"),!this.activeVersion()?.shippingDeadlineTimeUTC&&this.activeVersion()?.shippingFirstAvailableTimeUTC&&(e="Must Ship After"),e}),this.upc=(0,n.EWP)(()=>{if(this.activeVersion()?.contents?.length){const i=this.activeVersion().contents[0].itemTypes.find(o=>"upc"==o.vocabularyId.toLowerCase());if(i)return i.itemId}return""}),this.images=(0,n.EWP)(()=>{let e=this.activeVersion();return e?.contents?.length?e.contents[0].images.map(i=>i.imageUri):[]}),(0,n.QZP)(()=>{this.updateMap(this.activeVersion())})}startEdit(){this.editingOffer.set(!0),this.offerToEdit.set(this.currentVersion())}onOfferUpdated(e){this.refreshOffers(),this.editingOffer.set(!1)}ngOnInit(){this.refreshOffers()}refreshOffers(){this.marketplaceService.getOfferVersionHistory(this.legacyNavigationService.getParam("offerId")).subscribe(e=>{const i=e.sort((o,s)=>o.creationTimeUTC<s.creationTimeUTC?1:-1);this.versionHistory.set(i),this.currentVersion.set(i[0]),this.setViewVersion(i[0],!0)})}setViewVersion(e,i=!1){if(this.activeVersion.set(e),this.updateMap(this.activeVersion()),i||this.heading().nativeElement.scrollIntoView({behavior:"smooth"}),null!=this.activeVersion()?.matchPreferences?.constraints&&this.activeVersion().matchPreferences.constraints.length>0){const o=this.activeVersion()?.matchPreferences?.constraints?.filter(s=>"ALLOW"==s.constraintType);if(o){const s=o.flatMap(a=>a.targetEntities);s.length>0&&this.activeVersionRestrictToNames.set(s.map(a=>a.name))}}}updateMap(e){this.locationCenter.set(null!=e?.locationEntity?.latitude&&e?.locationEntity?.longitude?{lat:e?.locationEntity?.latitude,lng:e?.locationEntity?.longitude}:null)}refreshListings(){this.currentVersion()?.offerId&&this.marketplaceService.refreshOfferListings(this.currentVersion()?.offerId).subscribe({next:()=>{}})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-marketplace-offer-details"]],viewQuery:function(i,o){1&i&&n.wEZ(o.heading,FIt,5),2&i&&n.NyB()},decls:69,vars:37,consts:[["heading",""],["dialog",""],[1,"tw-container","tw-mx-auto","tw-max-w-screen-lg"],["severity","warn",1,"tw-mb-4","tw-block"],[1,"tw-flex","tw-flex-col","tw-space-y-4"],[1,"tw-flex","tw-space-x-4"],[1,"tw-w-80","tw-flex-shrink-0",3,"imageUrls"],[1,"tw-block","tw-w-full"],[1,"tw-flex","tw-justify-between","tw-text-2xl","tw-font-bold"],[1,"tw-flex","tw-gap-2"],[1,"tw-font-semibold"],[1,""],[1,"tw-mt-2"],[1,"tw-whitespace-break-spaces"],[1,"tw-full"],[1,"tw-text-size-sm"],[1,"tw-text-size-sm","tw-mt-2"],["header","Product Information"],["severity","warn",1,"tw-col-span-1","tw-mb-4","tw-block","md:tw-col-span-2"],[3,"offerVersion"],["header","Supplier Information"],[1,"marketplace-detail-grid-block","tw-flex-grow"],[1,"marketplace-detail-label"],[1,"marketplace-detail-value"],[1,"tw-block","tw-h-64","tw-w-80","tw-flex-shrink-0",3,"center"],["header","Admin Information"],["header","Offer Change Log"],["appendTo","body",3,"visibleChange","onHide","header","modal","visible","draggable"],[2,"width","900px","height","700px"],[1,"tw-cursor-pointer",3,"click"],["type","button",1,"btn","btn-sm","btn-primary",3,"click"],[1,"marketplace-detail-grid-block","tw-flex-1"],[3,"onViewVersion","versionHistory"],["formTitle","",3,"onOfferVersionCreated","editingOffer"]],template:function(i,o){if(1&i){const s=n.RV6();n.j41(0,"page-heading")(1,"span",null,0),n.EFF(3),n.k0s()(),n.j41(4,"div",2),n.DNE(5,PIt,6,3,"p-message",3)(6,LIt,3,3,"p-message",3),n.j41(7,"div",4)(8,"div",5),n.nrm(9,"app-item-image",6),n.j41(10,"p-card",7)(11,"div",8)(12,"div"),n.EFF(13),n.k0s(),n.DNE(14,NIt,3,0,"div",9),n.k0s(),n.DNE(15,GIt,2,1,"div",10)(16,BIt,2,1,"div",11),n.j41(17,"div",11),n.EFF(18),n.nI1(19,"formatUTCTimestamp"),n.k0s(),n.j41(20,"div",12),n.EFF(21),n.k0s(),n.nrm(22,"p-divider"),n.j41(23,"div",13),n.EFF(24),n.k0s(),n.nrm(25,"p-divider"),n.j41(26,"div",14)(27,"div",5)(28,"div",15)(29,"span",10),n.EFF(30,"Days Lead Time: "),n.k0s(),n.EFF(31),n.k0s(),n.j41(32,"div",15)(33,"span",10),n.EFF(34,"Listing Status: "),n.k0s(),n.EFF(35),n.k0s()(),n.DNE(36,HIt,6,4,"div",16),n.k0s()()(),n.j41(37,"p-card",17),n.DNE(38,UIt,2,0,"p-message",18)(39,$It,1,1,"app-packing-structure-info",19),n.k0s(),n.j41(40,"p-card",20)(41,"div",5)(42,"div",21)(43,"div",22),n.EFF(44,"Supplier Name"),n.k0s(),n.j41(45,"div",23),n.EFF(46),n.k0s(),n.j41(47,"div",22),n.EFF(48,"Warehouse Name"),n.k0s(),n.j41(49,"div",23),n.EFF(50),n.k0s(),n.j41(51,"div",22),n.EFF(52,"Warehouse Address"),n.k0s(),n.j41(53,"div",23),n.EFF(54),n.k0s(),n.j41(55,"div",22),n.EFF(56,"Receipt To"),n.k0s(),n.j41(57,"div",23),n.EFF(58),n.k0s(),n.j41(59,"div",22),n.EFF(60," Receipt to Organization Address "),n.k0s(),n.j41(61,"div",23),n.EFF(62),n.k0s()(),n.DNE(63,YIt,1,1,"google-map",24),n.k0s()(),n.DNE(64,WIt,37,10,"p-card",25)(65,zIt,2,1,"p-card",26),n.k0s()(),n.j41(66,"p-dialog",27,1),n.mxI("visibleChange",function(l){return n.eBV(s),n.DH7(o.editingOffer,l)||(o.editingOffer=l),n.Njj(l)}),n.bIt("onHide",function(){return n.eBV(s),n.Njj(o.editingOffer.set(!1))}),n.DNE(68,qIt,2,1,"div",28),n.k0s()}if(2&i){let s,a,l,c,d,f,v,w,x,I,M,F,re,pe,we,je;n.R7$(3),n.SpI(" Offer Details for ",null==(s=o.activeVersion())?null:s.offerCode," "),n.R7$(2),n.vxM((null==(a=o.currentVersion())?null:a.offerVersionId)!=(null==(a=o.activeVersion())?null:a.offerVersionId)?5:-1),n.R7$(),n.vxM(o.offerIsExpired()?6:-1),n.R7$(3),n.Y8G("imageUrls",o.images()),n.R7$(4),n.SpI(" ",null==(l=o.activeVersion())?null:l.title," "),n.R7$(),n.vxM(o.legacySessionDataService.canEditGroceryOffers()?14:-1),n.R7$(),n.vxM(o.upc().length>0?15:-1),n.R7$(),n.vxM(null!=(c=o.activeVersion())&&c.sourceIdentifier&&(null==(c=o.activeVersion())?null:c.sourceIdentifier.length)>0?16:-1),n.R7$(2),n.SpI(" Offer Expiration Date: ",n.bMT(19,35,null==(d=o.activeVersion())?null:d.expirationTimeUTC)," "),n.R7$(3),n.JRh(null==(f=o.activeVersion())||null==f.sourceEntity?null:f.sourceEntity.name),n.R7$(3),n.SpI(" ",null==(v=o.activeVersion())?null:v.description," "),n.R7$(7),n.SpI("",null==(w=o.activeVersion())?null:w.leadTimeInDays," "),n.R7$(4),n.SpI("",null==(null==(x=o.activeVersion())?null:x.matchPreferences)?"":1==(null==(x=o.activeVersion())||null==x.matchPreferences?null:x.matchPreferences.blockAllMatching)?"Blocked":null!=(x=o.activeVersion())&&null!=x.matchPreferences&&x.matchPreferences.constraints&&(null==(x=o.activeVersion())||null==x.matchPreferences?null:x.matchPreferences.constraints.length)>0?"Restricted ("+o.activeVersionRestrictToNames().join("; ")+")":"Listed"," "),n.R7$(),n.vxM(o.availableToShipStatement()?36:-1),n.R7$(2),n.vxM((null!==(I=null==(I=o.activeVersion())||null==I.contents?null:I.contents.length)&&void 0!==I?I:0)>1?38:-1),n.R7$(),n.vxM(o.activeVersion()?39:-1),n.R7$(7),n.SpI(" ",null==(M=o.activeVersion())||null==M.sourceEntity?null:M.sourceEntity.name," "),n.R7$(4),n.SpI(" ",null==(F=o.activeVersion())||null==F.locationEntity?null:F.locationEntity.name," "),n.R7$(4),n.LHq(" ",null==(re=o.activeVersion())||null==re.locationEntity?null:re.locationEntity.addressLine1,", ",null==(re=o.activeVersion())||null==re.locationEntity?null:re.locationEntity.city,", ",null==(re=o.activeVersion())||null==re.locationEntity?null:re.locationEntity.province,", ",null==(re=o.activeVersion())||null==re.locationEntity?null:re.locationEntity.postalCode," "),n.R7$(4),n.SpI(" ",null==(pe=o.activeVersion())||null==pe.receiptToEntity?null:pe.receiptToEntity.name," "),n.R7$(4),n.LHq(" ",null==(we=o.activeVersion())||null==we.receiptToEntity?null:we.receiptToEntity.addressLine1,", ",null==(we=o.activeVersion())||null==we.receiptToEntity?null:we.receiptToEntity.city,", ",null==(we=o.activeVersion())||null==we.receiptToEntity?null:we.receiptToEntity.province,", ",null==(we=o.activeVersion())||null==we.receiptToEntity?null:we.receiptToEntity.postalCode," "),n.R7$(),n.vxM(o.locationCenter()?63:-1),n.R7$(),n.vxM(o.legacySessionDataService.canViewOfferAdminInfo()?64:-1),n.R7$(),n.vxM(o.legacySessionDataService.canViewOfferHistory()?65:-1),n.R7$(),n.Y8G("header","Editing Offer "+(null==(je=o.offerToEdit())?null:je.offerCode))("modal",!0),n.R50("visible",o.editingOffer),n.Y8G("draggable",!1),n.R7$(2),n.vxM(o.editingOffer()?68:-1)}},dependencies:[rm,kg,gn,CI,c0,OIt,A2,Dy,z_,fP,mf,Gq,th,PX,gf,BX,Ppe],styles:["[_nghost-%COMP%]     .p-tree{background-color:transparent;padding:0}[_nghost-%COMP%]     .p-tree-node-content{border:1px solid gray;background-color:#fff}[_nghost-%COMP%]     .p-tree-node-toggle-button{display:none}[_nghost-%COMP%]     .p-tree-node-content.p-tree-node-selected{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))}"]})}}return t})();var Kv=function(t){return t.Active="Active",t.Consumed="Consumed",t.Ended="Ended",t}(Kv||{});let KIt=(()=>{class t{constructor(){this.marketplaceService=(0,n.WQX)(Yu)}convertToGridStructureOfferVersion(e,i){let o=this.safeGetItemAtLevel(e,1),s=this.safeGetItemAtLevel(e,2),a=this.safeGetItemAtLevel(e,3),l=this.safeGetItemAtLevel(e,4),c=l?.weight.value.toFixed(1)??"",d=l?this.getSizeUnit(l):"",f=this.getCategory(e,i),v=this.getPalletsPerFTL(s);return{offerId:e.offerId??"",imageUrl:this.getImage(e),offerCode:e.offerCode??"",categoryKey:f?.key??"",categoryDisplayName:f?.displayName??"(Unknown)",categoryPath:f?.displayPath??[],sourceEntity:e.sourceEntity,locationEntity:e.locationEntity,locationSummary:`${e.locationEntity.city}, ${e.locationEntity.province}`,pack:l?.quantity.toFixed(0)??"",sizeValue:c,sizeUnit:d,size:`${c} ${d}`,lastUpdatedTime:new Date(e.creationTimeUTC).toLocaleString(),firstAvailableToShipTime:this.getFirstAvailableDate(e),expirationDay:new Date(e.expirationTimeUTC).toLocaleDateString(),truckItem:o,palletItem:s,caseItem:a,unitItem:l,packingUnit:this.marketplaceService.getPackingTypeDisplayName(l?.packingType),brandLabel:o?.brandLabel??"",palletsAvailable:s?this.getPalletsAvailable(s):"",upcCode:o?this.getUpcCode(o):"",costPerCase:a&&s?this.getCaseCost(a,s):"",buyerVisibility:this.getBuyerVisibility(e),status:this.getStatus(e,s),matchPreferences:e.matchPreferences,offerVersion:e,offerTitle:e.title,programCode:f?.key.startsWith("PRODUCE")?"PRODUCE":"GROCERY",isImported:e.contents.some(w=>w.isImported),herCategory:s?.nutritionalCategoryDetails?.itemId??null,itemDescription:s?.description??null,palletsPerFTL:v,storageType:this.getStorageType(s),leadTimeInDays:e.leadTimeInDays??null,pricingModel:e.pricingModel??null}}getImage(e){let i=e.contents[0].images;return i.length?i[0].imageUri:""}getStorageType(e){const i=e?.storageRequirementDetails?.itemId;return i?Object.hasOwn(uP,i)?uP[i].displayDetails.displayName:i:""}getCategory(e,i){if(e.contents?.length>0){let o=e.contents[0].itemTypes.find(s=>"FANOTaxonomyCategory"===s.vocabularyId)?.itemId;if(o){const s=i?.find(a=>a.key==o);if(s)return s}}return null}getPalletsPerFTL(e){return e?e.vehiclePackingEstimates?.find(i=>"TRAILER"===i.vehicleClass)?.estimatedFillQuantity??null:null}getFirstAvailableDate(e){let i=e.creationTimeUTC;return e.matchPreferences?.listingStartTimeUTC&&(i=e.matchPreferences.listingStartTimeUTC),e.shippingFirstAvailableTimeUTC&&e.shippingFirstAvailableTimeUTC>i&&(i=e.shippingFirstAvailableTimeUTC),new Date(i).toLocaleDateString()}getSizeUnit(e){let i="";switch(e.weight.weightUOM){case"OUNCE":i="oz";break;case"POUND":i="lbs";break;default:i=e.weight.weightUOM}return i}getPalletsAvailable(e){let i="(Unknown)";return"number"==typeof e.segmentableQuantityDetail?.totalUnitsAvailable&&(i=e.segmentableQuantityDetail.totalUnitsAvailable.toFixed(0)),1==e.segmentableQuantityDetail?.isUnlimited&&(i="Unlimited"),i}getUpcCode(e){return e.itemTypes.length?e.itemTypes.find(i=>"upc"===i.vocabularyId.toLowerCase())?.itemId??"":""}getCaseCost(e,i){return e.segmentableQuantityDetail||i.segmentableQuantityDetail&&e?_n(e.segmentableQuantityDetail?this.marketplaceService.getContentItemTotalFOBCostPerUnit(e):this.marketplaceService.getContentItemTotalFOBCostPerUnit(i)/e.quantity,"en-us","$"):""}getBuyerVisibility(e){let i="LISTED";return e.matchPreferences&&(e.matchPreferences.constraints.length>0&&(i="PARTIAL"),e.matchPreferences.blockAllMatching&&(i="BLOCKED")),i}getStatus(e,i){let o=new Date(Date.now()+3e5).getTime();return e.consumedByOrderId||"STRUCTURE"===e.contentStructure&&0===i?.segmentableQuantityDetail?.totalUnitsAvailable?Kv.Consumed:e.expirationTimeUTC<o?Kv.Ended:Kv.Active}safeGetItemAtLevel(e,i){if(null==e||null==e.contents||1!=e.contents.length)return null;let o=e.contents[0];for(let s=0;s<i;s++){if(s==i-1)return o;if(null==o.contents||1!=o.contents.length)return null;o=o.contents[0]}return null}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),QIt=(()=>{class t extends IM{constructor(e,i){super("manageOffersGrid",e,i)}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(n.aKT),n.rXU(n.zZn))}}static{this.\u0275dir=n.FsC({type:t,selectors:[["manage-offers-grid"]],features:[n.Vt3]})}}return t})();const JIt=(t,r)=>({"hover:tw-text-fa-orange-500":t,"tw-cursor-not-allowed tw-text-gray-400":r});function ZIt(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",2),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.edit())}),n.nrm(1,"i",7),n.j41(2,"span",4),n.EFF(3,"Edit"),n.k0s()()}}let eAt=(()=>{class t{constructor(){this.legacyNavigationService=(0,n.WQX)(wc),this.legacySessionDataService=(0,n.WQX)(qy),this.offerStatus=Kv,this.canOrder=(0,n.vPA)(!1)}agInit(e){this.params=e,this.onEdit=e.onEdit,this.onOrder=e.onOrder,this.canOrder.set(e.data?.status===Kv.Active)}refresh(e){return!1}edit(){this.onEdit(this.params?.data)}view(){this.legacyNavigationService.navigate("app.marketplace-offer-details",{offerId:this.params?.data?.offerId})}order(){this.canOrder()&&this.onOrder(this.params?.data)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["ng-component"]],decls:10,vars:5,consts:[[1,"tw-flex","tw-flex-row"],["type","button",1,"btn-reset","tw-flex","tw-flex-col","tw-items-center","tw-justify-center","tw-p-2","hover:tw-text-fa-orange-500"],["type","button",1,"btn-reset","tw-flex","tw-flex-col","tw-items-center","tw-justify-center","tw-p-2","hover:tw-text-fa-orange-500",3,"click"],[1,"pi","pi-eye"],[1,"tw-leading-tight","tw-underline"],["type","button",1,"btn-reset","tw-flex","tw-flex-col","tw-items-center","tw-justify-center","tw-p-2",3,"click","ngClass"],[1,"pi","pi-shopping-cart"],[1,"pi","pi-pencil"]],template:function(i,o){1&i&&(n.j41(0,"div",0),n.DNE(1,ZIt,4,0,"button",1),n.j41(2,"button",2),n.bIt("click",function(){return o.view()}),n.nrm(3,"i",3),n.j41(4,"span",4),n.EFF(5,"View"),n.k0s()(),n.j41(6,"button",5),n.bIt("click",function(){return o.order()}),n.nrm(7,"i",6),n.j41(8,"span",4),n.EFF(9,"Order"),n.k0s()()()),2&i&&(n.R7$(),n.vxM(o.legacySessionDataService.canEditGroceryOffers()?1:-1),n.R7$(5),n.Y8G("ngClass",n.l_i(2,JIt,o.canOrder(),!o.canOrder())))},dependencies:[gn,bi],encapsulation:2,changeDetection:0})}}return t})();function tAt(t,r){1&t&&n.nrm(0,"i",0)}function nAt(t,r){1&t&&n.nrm(0,"i",1)}let iAt=(()=>{class t{constructor(){this.isFeatured=(0,n.vPA)(!1)}agInit(e){e&&this.isFeatured.set(e.value)}refresh(e){return!1}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["ng-component"]],decls:3,vars:1,consts:[["title","Featured",1,"pi","pi-star-fill","tw-text-fa-orange-500"],["title","Not Featured",1,"pi","pi-star"]],template:function(i,o){1&i&&(n.j41(0,"div"),n.DNE(1,tAt,1,0,"i",0)(2,nAt,1,0,"i",1),n.k0s()),2&i&&(n.R7$(),n.vxM(o.isFeatured()?1:2))},encapsulation:2,changeDetection:0})}}return t})();function rAt(t,r){if(1&t&&(n.j41(0,"span",0),n.EFF(1),n.k0s()),2&t){const e=n.XpG();n.Y8G("ngClass",e.classes())("title",e.status()),n.R7$(),n.SpI(" ",e.status()," ")}}let oAt=(()=>{class t{constructor(){this.status=(0,n.vPA)(""),this.classes=(0,n.vPA)("")}agInit(e){switch(this.status.set(e.value),this.status()){case"Often":this.classes.set("tw-bg-green-200 tw-text-green-900");break;case"Sometimes":this.classes.set("tw-bg-yellow-300 tw-text-yellow-900");break;case"Rarely":this.classes.set("tw-bg-red-700 tw-text-amber-100");break;case"Not Applicable":this.classes.set("tw-bg-slate-200 tw-text-slate-500")}}refresh(e){return!1}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["ng-component"]],decls:1,vars:1,consts:[[1,"tw-inline-block","tw-rounded-full","tw-px-4","tw-py-1","tw-text-xs","tw-font-semibold",3,"ngClass","title"]],template:function(i,o){1&i&&n.DNE(0,rAt,2,3,"span",0),2&i&&n.vxM(o.status()?0:-1)},dependencies:[gn,bi],encapsulation:2,changeDetection:0})}}return t})();function sAt(t,r){1&t&&(n.j41(0,"span",0),n.EFF(1," Blocked "),n.k0s())}function aAt(t,r){1&t&&(n.j41(0,"span",1),n.EFF(1," None "),n.k0s())}function lAt(t,r){1&t&&(n.j41(0,"span",2),n.EFF(1," Partial "),n.k0s())}let cAt=(()=>{class t{agInit(e){this.params=e}refresh(e){return!1}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["ng-component"]],decls:3,vars:1,consts:[["title","This offer is currently blocked from all listings",1,"tw-inline-block","tw-rounded-full","tw-bg-red-200","tw-px-4","tw-py-1","tw-font-semibold","tw-text-red-900"],["title","This offer is currently listed following normal rules",1,"tw-inline-block","tw-rounded-full","tw-bg-green-200","tw-px-4","tw-py-1","tw-font-semibold","tw-text-green-900"],["title","This offer is partially listed and is visible only to organizations listed in the offer settings",1,"tw-inline-block","tw-rounded-full","tw-bg-yellow-200","tw-px-4","tw-py-1","tw-font-semibold","tw-text-yellow-900"]],template:function(i,o){if(1&i&&n.DNE(0,sAt,2,0,"span",0)(1,aAt,2,0,"span",1)(2,lAt,2,0,"span",2),2&i){let s;n.vxM("BLOCKED"===(s=null==o.params?null:o.params.status)?0:"LISTED"===s?1:"PARTIAL"===s?2:-1)}},encapsulation:2,changeDetection:0})}}return t})();function uAt(t,r){if(1&t&&(n.j41(0,"span",0),n.EFF(1),n.k0s()),2&t){const e=n.XpG();n.Y8G("ngClass",e.classes),n.R7$(),n.SpI(" ",null==e.params.data?null:e.params.data.status," ")}}let dAt=(()=>{class t{constructor(){this.classes=""}agInit(e){switch(this.params=e,this.params.data?.status){case Kv.Active:this.classes="tw-bg-green-200 tw-text-green-900";break;case Kv.Consumed:case Kv.Ended:this.classes="tw-bg-gray-200 tw-text-gray-900"}}refresh(e){return!1}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["ng-component"]],decls:1,vars:1,consts:[[1,"tw-inline-block","tw-rounded-full","tw-px-4","tw-py-1","tw-text-xs","tw-font-semibold",3,"ngClass"]],template:function(i,o){1&i&&n.DNE(0,uAt,2,2,"span",0),2&i&&n.vxM(null!=o.params.data&&o.params.data.status?0:-1)},dependencies:[gn,bi],encapsulation:2,changeDetection:0})}}return t})(),pAt=(()=>{class t{constructor(){this.isChecked=n.hFB.required(),this.inputId=n.hFB.required(),this.onChange=(0,n.CGW)()}onNgModelChange(e){this.onChange.emit(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-binary-checkbox"]],inputs:{isChecked:[1,"isChecked"],inputId:[1,"inputId"]},outputs:{onChange:"onChange"},decls:1,vars:3,consts:[[3,"ngModelChange","ngModel","binary","inputId"]],template:function(i,o){1&i&&(n.j41(0,"p-checkbox",0),n.bIt("ngModelChange",function(a){return o.onNgModelChange(a)}),n.k0s()),2&i&&n.Y8G("ngModel",o.isChecked())("binary",!0)("inputId",o.inputId())},dependencies:[wk,Av,Ra,_o,ko],encapsulation:2})}}return t})(),hAt=(()=>{class t{constructor(){this.inputId=n.hFB.required(),this.onChange=(0,n.CGW)(),this.options=[],this.selectedOption=void 0}ngOnInit(){this.options=[{code:"GREEN",label:"Often"},{code:"YELLOW",label:"Sometimes"},{code:"RED",label:"Rarely"},{code:"NA",label:"Not Applicable"}]}onSelectionChanged(e){this.onChange.emit(e.value??null)}clearSelection(){this.selectedOption=null}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-her-category-selection"]],inputs:{inputId:[1,"inputId"]},outputs:{onChange:"onChange"},decls:4,vars:5,consts:[["optionLabel","label","optionValue","code",3,"ngModelChange","onChange","ngModel","inputId","options","showClear"],[3,"for"]],template:function(i,o){1&i&&(n.j41(0,"p-floatlabel")(1,"p-select",0),n.mxI("ngModelChange",function(a){return n.DH7(o.selectedOption,a)||(o.selectedOption=a),a}),n.bIt("onChange",function(a){return o.onSelectionChanged(a)}),n.k0s(),n.j41(2,"label",1),n.EFF(3,"HER Category"),n.k0s()()),2&i&&(n.R7$(),n.R50("ngModel",o.selectedOption),n.Y8G("inputId",o.inputId())("options",o.options)("showClear",!0),n.R7$(),n.Y8G("for",o.inputId()))},dependencies:[Ra,_o,ko,Yv,om,Zp,ff],encapsulation:2})}}return t})(),fAt=(()=>{class t{constructor(){this.inputId=n.hFB.required(),this.onChange=(0,n.CGW)(),this.options=[],this.selectedOption=void 0}ngOnInit(){this.options=[{code:"LISTED",label:"None"},{code:"PARTIAL",label:"Partial"},{code:"BLOCKED",label:"Blocked"}]}onSelectionChanged(e){this.onChange.emit(e.value??null)}clearSelection(){this.selectedOption=null}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-listing-restrictions-selection"]],inputs:{inputId:[1,"inputId"]},outputs:{onChange:"onChange"},decls:4,vars:5,consts:[["optionLabel","label","optionValue","code",3,"ngModelChange","onChange","ngModel","inputId","options","showClear"],[3,"for"]],template:function(i,o){1&i&&(n.j41(0,"p-floatlabel")(1,"p-select",0),n.mxI("ngModelChange",function(a){return n.DH7(o.selectedOption,a)||(o.selectedOption=a),a}),n.bIt("onChange",function(a){return o.onSelectionChanged(a)}),n.k0s(),n.j41(2,"label",1),n.EFF(3,"Listing Restriction"),n.k0s()()),2&i&&(n.R7$(),n.R50("ngModel",o.selectedOption),n.Y8G("inputId",o.inputId())("options",o.options)("showClear",!0),n.R7$(),n.Y8G("for",o.inputId()))},dependencies:[Ra,_o,ko,Yv,om,Zp,ff],encapsulation:2})}}return t})(),mAt=(()=>{class t{constructor(){this.inputId=n.hFB.required(),this.onChange=(0,n.CGW)(),this.options=(0,n.vPA)(Object.keys(Kv)),this.selectedOption=(0,n.geq)(null)}onSelectionChanged(e){this.onChange.emit(e.value??null)}clearSelection(){this.selectedOption.set(null)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-offer-status-selection"]],inputs:{inputId:[1,"inputId"],selectedOption:[1,"selectedOption"]},outputs:{onChange:"onChange",selectedOption:"selectedOptionChange"},decls:4,vars:5,consts:[[3,"ngModelChange","onChange","ngModel","inputId","options","showClear"],[3,"for"]],template:function(i,o){1&i&&(n.j41(0,"p-floatlabel")(1,"p-select",0),n.mxI("ngModelChange",function(a){return n.DH7(o.selectedOption,a)||(o.selectedOption=a),a}),n.bIt("onChange",function(a){return o.onSelectionChanged(a)}),n.k0s(),n.j41(2,"label",1),n.EFF(3,"Status"),n.k0s()()),2&i&&(n.R7$(),n.R50("ngModel",o.selectedOption),n.Y8G("inputId",o.inputId())("options",o.options())("showClear",!0),n.R7$(),n.Y8G("for",o.inputId()))},dependencies:[Ra,_o,ko,Yv,om,Zp,ff],encapsulation:2})}}return t})();const gAt=["supplierRef"],vAt=["supplierLocationRef"],_At=["statusSelectionRef"],yAt=["listingRestrictionSelectionRef"],bAt=["herCategorySelectionRef"],CAt=["taxonomyTreeRef"];function wAt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",9)(1,"span",17),n.EFF(2,"Marketplace"),n.k0s(),n.j41(3,"label",18)(4,"app-binary-checkbox",19),n.bIt("onChange",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onIsGroceryCheckedChanged(o))}),n.k0s(),n.j41(5,"span",12),n.EFF(6,"Grocery"),n.k0s()(),n.j41(7,"label",20)(8,"app-binary-checkbox",21),n.bIt("onChange",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onIsProduceCheckedChanged(o))}),n.k0s(),n.j41(9,"span",12),n.EFF(10,"Produce"),n.k0s()()()}if(2&t){const e=n.XpG();n.R7$(4),n.Y8G("isChecked",e.isGrocerySelected()),n.R7$(4),n.Y8G("isChecked",e.isProduceSelected())}}function TAt(t,r){if(1&t){const e=n.RV6();n.j41(0,"app-taxonomy-tree",22,5),n.bIt("onTaxonomyEntriesSelected",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.taxonomyEntriesSelected(o))})("onTaxonomyEntriesUnselected",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.taxonomyEntriesUnselected(o))}),n.k0s()}if(2&t){const e=n.XpG();n.Y8G("selectedNodes",e.selectedNodes())("taxonomyTree",e.taxonomyTree())("sourceProgramCodeFilter",e.isGrocerySelected()?"GROCERY":e.isProduceSelected()?"PRODUCE":null)}}let SAt=(()=>{class t{constructor(){this.marketplaceService=(0,n.WQX)(Yu),this.supplierRef=(0,n.ebz)("supplierRef"),this.supplierLocationRef=(0,n.ebz)("supplierLocationRef"),this.statusSelectionRef=(0,n.ebz)("statusSelectionRef"),this.listingRestrictionSelectionRef=(0,n.ebz)("listingRestrictionSelectionRef"),this.herCategorySelectionRef=(0,n.ebz)("herCategorySelectionRef"),this.taxonomyTreeRef=(0,n.ebz)("taxonomyTreeRef"),this.showProgramCodeFilter=(0,n.vPA)(!1),this.selectedNodes=(0,n.vPA)([]),this.selectedTaxonomyKeys=(0,n.vPA)([]),this.submissionEligibleEntities=(0,n.vPA)([]),this.submissionEligibleEntityLocations=(0,n.vPA)([]),this.taxonomyLoaded=(0,n.vPA)(!1),this.taxonomyTree=(0,n.vPA)([]),this.selectedSupplier=(0,n.vPA)(null),this.selectedSupplierLocation=(0,n.vPA)(null),this.isGrocerySelected=(0,n.vPA)(!1),this.isProduceSelected=(0,n.vPA)(!1),this.isImportedSelected=(0,n.vPA)(!1),this.selectedStatus=(0,n.vPA)(null),this.selectedListingRestriction=(0,n.vPA)(null),this.selectedHerCategory=(0,n.vPA)(null),this.selectedTaxonomyEntries=(0,n.vPA)([]),this.filters=null,this.filterMonitor=(0,n.QZP)(()=>{if(null!==this.filters){let e=this.filters();(0,n.O8t)(()=>{!e.some(i=>"SUPPLIER"===i.code)&&this.selectedSupplier()&&(this.submissionEntitySelected(null),this.supplierRef()?.writeValue(null),this.supplierLocationRef()?.writeValue(null)),!e.some(i=>"WAREHOUSE"===i.code)&&this.selectedSupplierLocation()&&(this.onSubmissionEntityLocationSelected(null),this.supplierLocationRef()?.writeValue(null)),!e.some(i=>"PROGRAM_CODE"===i.code)&&(this.isGrocerySelected()||this.isProduceSelected())&&(this.isGrocerySelected.set(!1),this.isProduceSelected.set(!1),this.emitSelectedProgramCode()),!e.some(i=>"IS_IMPORTED"===i.code)&&this.isImportedSelected()&&(this.isImportedSelected.set(!1),this.onIsImportedSelected(!1)),!e.some(i=>"STATUS"===i.code)&&this.selectedStatus()&&(this.onStatusChanged(null),this.statusSelectionRef()?.clearSelection()),!e.some(i=>"LISTING_RESTRICTION"===i.code)&&this.selectedListingRestriction()&&(this.onListingRestrictionChanged(null),this.listingRestrictionSelectionRef()?.clearSelection()),!e.some(i=>"HER_CATEGORY"===i.code)&&this.selectedHerCategory()&&(this.onHerCategoryChanged(null),this.herCategorySelectionRef()?.clearSelection()),!e.some(i=>"TAXONOMY"===i.code)&&this.selectedTaxonomyEntries().length&&(this.selectedTaxonomyEntries.set([]),this.taxonomyTreeRef()?.clearSelectedNodes(),this.onTaxonomyEntriesCleared())})}})}agInit(e){this.onSupplierSelected=e.onSupplierSelected,this.onSupplierLocationSelected=e.onSupplierLocationSelected,this.onProgramCodeSelected=e.onProgramCodeSelected,this.onIsImportedSelected=e.onIsImportedSelected,this.onHerCategorySelected=e.onHerCategorySelected,this.onStatusSelected=e.onStatusSelected,this.onListingRestrictionSelected=e.onListingRestrictionSelected,this.onSelectedTaxonomyKeysChanged=e.onSelectedTaxonomyKeysChanged,this.onTaxonomyEntriesCleared=e.onTaxonomyEntriesCleared,this.filters=e.filters,this.loadSubmissionEligibleEntities(),this.loadTaxonomy()}loadSubmissionEligibleEntities(){this.marketplaceService.getOfferSubmissionEligibleEntities("ALL").subscribe({next:e=>{this.submissionEligibleEntities.set(e)}})}loadSubmissionEligibleEntityLocations(e){this.marketplaceService.getOfferSubmissionEligibleEntityLocations(e).subscribe({next:i=>{this.submissionEligibleEntityLocations.set(i)}})}loadTaxonomy(){this.marketplaceService.getTaxonomyTree().subscribe({next:e=>{this.taxonomyTree.set(e),this.taxonomyLoaded.set(!0)}})}taxonomyEntriesSelected(e){let i=this.selectedTaxonomyKeys();e.forEach(o=>{i.includes(o)||i.push(o)}),this.selectedTaxonomyKeys.set(i),this.onSelectedTaxonomyKeysChanged(i),this.updateSelectedNodes(i)}taxonomyEntriesUnselected(e){let i=this.selectedTaxonomyKeys();e.forEach(o=>{let s=i.indexOf(o);i.includes(o)&&i.splice(s,1)}),this.selectedTaxonomyKeys.set(i),this.onSelectedTaxonomyKeysChanged(i),this.updateSelectedNodes(i)}submissionEntitySelected(e){this.selectedSupplier.set(e),this.submissionEligibleEntityLocations.set([]),e?.internalDetail?.internalEntityId&&this.loadSubmissionEligibleEntityLocations(e.internalDetail.internalEntityId),this.onSupplierSelected(e)}updateSelectedNodes(e){this.selectedNodes.set(e.length?this.getSelectedTaxonomyNodes(e):[])}getSelectedTaxonomyNodes(e){return this.marketplaceService.getTaxonomyTreeNodes(this.taxonomyTree(),e)}onSubmissionEntityCleared(){this.onSupplierLocationSelected(null),this.supplierLocationRef()?.writeValue(null)}onSubmissionEntityLocationSelected(e){this.selectedSupplierLocation.set(e),this.onSupplierLocationSelected(e)}onIsGroceryCheckedChanged(e){this.isGrocerySelected.set(e),e&&this.isProduceSelected.set(!1),this.emitSelectedProgramCode()}onIsProduceCheckedChanged(e){this.isProduceSelected.set(e),e&&this.isGrocerySelected.set(!1),this.emitSelectedProgramCode()}emitSelectedProgramCode(){this.isGrocerySelected()&&this.onProgramCodeSelected("GROCERY"),this.isProduceSelected()&&this.onProgramCodeSelected("PRODUCE"),!this.isGrocerySelected()&&!this.isProduceSelected()&&this.onProgramCodeSelected(null)}onIsImportedChanged(e){this.onIsImportedSelected(e),this.isImportedSelected.set(e)}onStatusChanged(e){this.onStatusSelected(e),this.selectedStatus.set(e)}onListingRestrictionChanged(e){this.onListingRestrictionSelected(e||null),this.selectedListingRestriction.set(e)}onHerCategoryChanged(e){this.onHerCategorySelected(e),this.selectedHerCategory.set(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-structure-offers-tool-panel"]],viewQuery:function(i,o){1&i&&(n.wEZ(o.supplierRef,gAt,5),n.wEZ(o.supplierLocationRef,vAt,5),n.wEZ(o.statusSelectionRef,_At,5),n.wEZ(o.listingRestrictionSelectionRef,yAt,5),n.wEZ(o.herCategorySelectionRef,bAt,5),n.wEZ(o.taxonomyTreeRef,CAt,5)),2&i&&n.NyB(6)},decls:21,vars:8,consts:[["supplierRef",""],["supplierLocationRef",""],["statusSelectionRef",""],["listingRestrictionSelectionRef",""],["herCategorySelectionRef",""],["taxonomyTreeRef",""],[1,"tw-flex","tw-flex-col","tw-gap-y-6","tw-px-4","tw-py-6"],["placeholder","Supplier","formControlName","selectedSubmissionEntity",3,"onSingleItemSelected","onClear","entitySummaries"],["placeholder","Warehouse",3,"onSingleItemSelected","disabled","showName","showAddress","entitySummaries"],[1,"tw-flex","tw-flex-col","tw-gap-2","tw-rounded","tw-bg-white","tw-px-4","tw-py-2"],["for","is_imported",1,"tw-mb-0","tw-flex","tw-cursor-pointer","tw-items-center"],["inputId","is_imported",3,"onChange","isChecked"],[1,"tw-ml-2"],["inputId","selected_status",3,"onChange"],["inputId","selected_listing_restriction",3,"onChange"],["inputId","selected_her_category",3,"onChange"],[1,"tw-rounded",3,"selectedNodes","taxonomyTree","sourceProgramCodeFilter"],[1,"tw-text-lg"],["for","marketplace_grocery",1,"tw-mb-0","tw-flex","tw-cursor-pointer","tw-items-center"],["inputId","marketplace_grocery",3,"onChange","isChecked"],["for","marketplace_produce",1,"tw-mb-0","tw-flex","tw-cursor-pointer","tw-items-center"],["inputId","marketplace_produce",3,"onChange","isChecked"],[1,"tw-rounded",3,"onTaxonomyEntriesSelected","onTaxonomyEntriesUnselected","selectedNodes","taxonomyTree","sourceProgramCodeFilter"]],template:function(i,o){if(1&i){const s=n.RV6();n.j41(0,"div",6)(1,"app-entity-summary-selection",7,0),n.bIt("onSingleItemSelected",function(l){return n.eBV(s),n.Njj(o.submissionEntitySelected(l))})("onClear",function(){return n.eBV(s),n.Njj(o.onSubmissionEntityCleared())}),n.k0s(),n.j41(3,"app-entity-summary-selection",8,1),n.bIt("onSingleItemSelected",function(l){return n.eBV(s),n.Njj(o.onSubmissionEntityLocationSelected(l))}),n.k0s(),n.DNE(5,wAt,11,2,"div",9),n.j41(6,"div")(7,"label",10)(8,"app-binary-checkbox",11),n.bIt("onChange",function(l){return n.eBV(s),n.Njj(o.onIsImportedChanged(l))}),n.k0s(),n.j41(9,"span",12),n.EFF(10,"Is Imported"),n.k0s()()(),n.j41(11,"div")(12,"app-offer-status-selection",13,2),n.bIt("onChange",function(l){return n.eBV(s),n.Njj(o.onStatusChanged(l))}),n.k0s()(),n.j41(14,"div")(15,"app-listing-restrictions-selection",14,3),n.bIt("onChange",function(l){return n.eBV(s),n.Njj(o.onListingRestrictionChanged(l))}),n.k0s()(),n.j41(17,"div")(18,"app-her-category-selection",15,4),n.bIt("onChange",function(l){return n.eBV(s),n.Njj(o.onHerCategoryChanged(l))}),n.k0s()(),n.DNE(20,TAt,2,3,"app-taxonomy-tree",16),n.k0s()}2&i&&(n.R7$(),n.Y8G("entitySummaries",o.submissionEligibleEntities()),n.R7$(2),n.Y8G("disabled",!o.submissionEligibleEntityLocations().length)("showName",!0)("showAddress",!0)("entitySummaries",o.submissionEligibleEntityLocations()),n.R7$(2),n.vxM(o.showProgramCodeFilter()?5:-1),n.R7$(3),n.Y8G("isChecked",o.isImportedSelected()),n.R7$(12),n.vxM(o.taxonomyLoaded()?20:-1))},dependencies:[pAt,wk,gn,x6,hAt,fAt,Gq,bpe,th,mAt],encapsulation:2})}}return t})();const xAt=["offerForm"],EAt=["issues"],DAt=["dialog"],kAt=(t,r)=>r.code,IAt=(t,r)=>({"tw-border-green-800":t,"tw-border-r-0 tw-border-gray-200":r}),AAt=(t,r)=>({"tw-bg-fa-green-200":t,"tw-bg-gray-200":r}),MAt=(t,r)=>({"tw-text-fa-green-500":t,"tw-text-gray-500":r}),lhe=t=>({"tw-text-gray-500":t}),RAt=(t,r)=>({"tw-border-fa-orange-800":t,"tw-border-l-0 tw-border-gray-200":r}),OAt=(t,r)=>({"tw-bg-fa-orange-200":t,"tw-bg-gray-200":r}),FAt=(t,r)=>({"tw-text-fa-orange-500":t,"tw-text-gray-500":r});function PAt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",5)(1,"button",26),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.viewingOfferType.set("PRODUCE"))}),n.j41(2,"div",27),n.nrm(3,"icon-produce",28),n.k0s(),n.j41(4,"span",29),n.EFF(5," Produce "),n.k0s()(),n.j41(6,"button",30),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.viewingOfferType.set("GROCERY"))}),n.j41(7,"div",31),n.nrm(8,"icon-grocery",32),n.k0s(),n.j41(9,"span",29),n.EFF(10," Grocery "),n.k0s()()()}if(2&t){const e=n.XpG();n.R7$(),n.Y8G("ngClass",n.l_i(8,IAt,"PRODUCE"===e.viewingOfferType(),"PRODUCE"!==e.viewingOfferType())),n.R7$(),n.Y8G("ngClass",n.l_i(11,AAt,"PRODUCE"===e.viewingOfferType(),"PRODUCE"!==e.viewingOfferType())),n.R7$(),n.Y8G("ngClass",n.l_i(14,MAt,"PRODUCE"===e.viewingOfferType(),"PRODUCE"!==e.viewingOfferType())),n.R7$(),n.Y8G("ngClass",n.eq3(17,lhe,"PRODUCE"!==e.viewingOfferType())),n.R7$(2),n.Y8G("ngClass",n.l_i(19,RAt,"GROCERY"===e.viewingOfferType(),"GROCERY"!==e.viewingOfferType())),n.R7$(),n.Y8G("ngClass",n.l_i(22,OAt,"GROCERY"===e.viewingOfferType(),"GROCERY"!==e.viewingOfferType())),n.R7$(),n.Y8G("ngClass",n.l_i(25,FAt,"GROCERY"===e.viewingOfferType(),"GROCERY"!==e.viewingOfferType())),n.R7$(),n.Y8G("ngClass",n.eq3(28,lhe,"GROCERY"!==e.viewingOfferType()))}}function LAt(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",33),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.duplicateOffer())}),n.EFF(1," Duplicate "),n.k0s()}if(2&t){const e=n.XpG();n.Y8G("disabled",!e.hasOneSelectedRow())}}function NAt(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",34),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.setPauseStatus(!0))}),n.EFF(1," Block "),n.k0s()}if(2&t){const e=n.XpG();n.Y8G("disabled",!e.hasSelectedRows())}}function GAt(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",35),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.setPauseStatus(!1))}),n.EFF(1," Unblock "),n.k0s()}if(2&t){const e=n.XpG();n.Y8G("disabled",!e.hasSelectedRows())}}function BAt(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",33),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.featureOffers())}),n.EFF(1," Featured "),n.k0s(),n.j41(2,"button",33),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.unfeatureOffers())}),n.EFF(3," Not Featured "),n.k0s(),n.j41(4,"button",33),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.cancelOffer())}),n.EFF(5," Cancel Offer "),n.k0s()}if(2&t){const e=n.XpG();n.Y8G("disabled",!e.hasSelectedRows()),n.R7$(2),n.Y8G("disabled",!e.hasSelectedRows()),n.R7$(2),n.Y8G("disabled",!e.hasOneSelectedRow())}}function VAt(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",33),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.startAdminOrder())}),n.EFF(1," Start Order "),n.k0s()}if(2&t){const e=n.XpG();n.Y8G("disabled",!e.hasSelectedRows()||e.selectedRows().length>3)}}function jAt(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",17),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.addOffer())}),n.EFF(1," Add an Offer "),n.k0s()}}function HAt(t,r){if(1&t){const e=n.RV6();n.j41(0,"li",21)(1,"div",36)(2,"button",37),n.bIt("click",function(){const o=n.eBV(e).$implicit,s=n.XpG();return n.Njj(s.removeFilter(o.code))}),n.nrm(3,"i",38),n.k0s(),n.j41(4,"span",39),n.EFF(5),n.k0s()()()}if(2&t){const e=r.$implicit;n.R7$(5),n.SpI(" ",e.label," ")}}function UAt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",25)(1,"app-offer-form",40,2),n.bIt("onOfferVersionCreated",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onOfferUpdated(o))})("onStatusChange",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onOfferFormStatusChange(o))}),n.k0s()()}if(2&t){const e=n.XpG();n.R7$(),n.Y8G("editingOffer",e.offerToEdit())("hideSubmit",!0)}}function $At(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",45),n.bIt("click",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.displayFormIssues(o))}),n.EFF(1," Show Form Issues "),n.k0s()}}function YAt(t,r){if(1&t&&(n.j41(0,"li"),n.EFF(1),n.k0s()),2&t){const e=r.$implicit;n.R7$(),n.JRh(e)}}function WAt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",41),n.DNE(1,$At,2,0,"button",42),n.j41(2,"p-popover",null,3)(4,"ul",43),n.Z7z(5,YAt,2,1,"li",null,n.Vm6),n.k0s()(),n.j41(7,"button",44),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.submitOfferForm())}),n.EFF(8," Save Offer "),n.k0s()()}if(2&t){const e=n.XpG();n.R7$(),n.vxM(e.isOfferFormValid()?-1:1),n.R7$(4),n.Dyx(e.formIssues()),n.R7$(2),n.Y8G("disabled",!e.isOfferFormValid())}}let zAt=(()=>{class t{constructor(){var i,e=this;this.cacheService=(0,n.WQX)(jb),this.claimsService=(0,n.WQX)(Zb),this.legacyNavigationService=(0,n.WQX)(wc),this.legacySessionDataService=(0,n.WQX)(qy),this.entitiesService=(0,n.WQX)(jh),this.marketplaceService=(0,n.WQX)(Yu),this.offerVersionConverterService=(0,n.WQX)(KIt),this.toasterService=(0,n.WQX)(tc),this.offerFormComponentRef=n.ebz.required("offerForm"),this.issuesRef=n.ebz.required("issues"),this.visibleColumnsCacheKey="marketplace.structureOffersGrid.visibleColumns",this.currentUserRole=(0,n.vPA)(""),this.dialog=(0,n.ebz)("dialog"),this.filterText=(0,n.vPA)(""),this.filteredOfferIds=(0,n.vPA)([]),this.featuredOfferIds=(0,n.vPA)([]),this.taxonomy=(0,n.vPA)([]),this.offersLoading=(0,n.vPA)(!1),this.offersLoaded=(0,n.vPA)(!1),this.addingOffer=(0,n.vPA)(!1),this.editingOffer=(0,n.vPA)(!1),this.offerToEdit=(0,n.vPA)(null),this.offerUpdating=(0,n.vPA)(!1),this.selectedRows=(0,n.vPA)([]),this.filterModel=(0,n.vPA)({groups:[{name:"Marketplace",filters:[{id:"1a",value:"grocery",label:"Grocery",selected:!1},{id:"2a",value:"produce",label:"Produce",selected:!1}]},{name:"Category",filters:[{id:"1b",value:"fresh_fruit",label:"Fresh Fruit",selected:!1},{id:"2b",value:"fresh_vegetables",label:"Fresh Vegetables",selected:!1},{id:"3b",value:"baby_food",label:"Baby Food",selected:!1},{id:"4b",value:"beans",label:"Beans",selected:!1}]}]}),this.selectedSupplier=(0,n.vPA)(null),this.selectedSupplierLocation=(0,n.vPA)(null),this.selectedProgramCode=(0,n.vPA)(null),this.selectedIsImported=(0,n.vPA)(!1),this.selectedListingRestriction=(0,n.vPA)(null),this.selectedOfferStatus=(0,n.vPA)(null),this.selectedHerCategory=(0,n.vPA)(null),this.selectedTaxonomies=(0,n.vPA)([]),this.viewingOfferType=(0,n.vPA)("PRODUCE"),this.isOfferFormValid=(0,n.vPA)(!1),this.filters=(0,n.vPA)([]),this.formIssues=(0,n.vPA)([]),this.editingOfferTitle=(0,n.EWP)(()=>{let i=this.editingOffer(),o=this.offerToEdit();return i?o?.offerCode?`Editing Offer ${o.offerCode}`:"New Offer":""}),this.hasSelectedRows=(0,n.EWP)(()=>this.selectedRows().length>0),this.hasOneSelectedRow=(0,n.EWP)(()=>1===this.selectedRows().length),this.gridOptions={columnDefs:[{headerName:"",headerCheckboxSelection:!0,colId:"checkbox",checkboxSelection:!0,resizable:!1,suppressColumnsToolPanel:!0,suppressMovable:!0,width:50,maxWidth:50,minWidth:50},{headerName:"",resizable:!1,sortable:!1,width:70,maxWidth:100,minWidth:70,suppressColumnsToolPanel:!0,suppressMovable:!0,field:"imageUrl",cellRenderer:i=>`<img src='${i.value}' style='max-width: 100px; max-height: 30px;'></img>`},{headerName:"Offer #",headerTooltip:"Offer Number",field:"offerCode",minWidth:70},{headerName:"Title",field:"offerTitle",minWidth:70},{headerName:"Category",headerTooltip:"Category",field:"categoryDisplayName",enableRowGroup:!0,minWidth:70},{headerName:"Supplier",headerTooltip:"Supplier",field:"sourceEntity.name",enableRowGroup:!0,minWidth:70},{headerName:"Location",headerTooltip:"Location",field:"locationSummary",minWidth:70},{headerName:"HER",headerTooltip:"Healthy Eating Research Guideline",minWidth:60,width:100,cellRenderer:oAt,valueGetter:i=>{switch(i.data?.herCategory){case"GREEN":return"Often";case"YELLOW":return"Sometimes";case"RED":return"Rarely";case"NA":return"Not Applicable";default:return""}}},{headerName:"Last Updated",headerTooltip:"Last Updated Time",field:"lastUpdatedTime",minWidth:70,hide:!0},{headerName:"First Available",headerTooltip:"First Available (the greater of the first shipment date or the listing start date, if either are provided, otherwise the last update date)",field:"firstAvailableToShipTime",minWidth:70},{headerName:"Expiration",headerTooltip:"Expiration",field:"expirationDay",minWidth:70},{headerName:"Pack",headerTooltip:"Pack",field:"pack",minWidth:70},{headerName:"Size",headerTooltip:"Size",field:"size",minWidth:70},{headerName:"Unit",headerTooltip:"Unit",field:"packingUnit",minWidth:70},{headerName:"Label",headerTooltip:"Label",field:"brandLabel",minWidth:70},{headerName:"Desc./Variety",headerTooltip:"Item Description / Variety",field:"itemDescription",minWidth:70},{headerName:"Pallets Avl.",headerTooltip:"Pallets Available",field:"palletsAvailable",minWidth:70},{headerName:"UPC",headerTooltip:"UPC/SKU Code",field:"upcCode",enableRowGroup:!0,minWidth:70},{headerName:"Origin",headerTooltip:"Origin",field:"isImported",valueGetter:i=>null==i.data?.isImported?"Unknown":!0===i.data.isImported?"Imported":!1===i.data.isImported?"Domestic":""},{headerName:"Cases/Pallet",headerTooltip:"Cases Per Pallet",field:"caseItem.quantity",tooltipField:"caseItem.quantity",minWidth:50,width:50},{headerName:"Pallets/FTL",headerTooltip:"Pallets Per Full Truck Load",field:"palletsPerFTL",tooltipField:"palletsPerFTL",minWidth:50,width:50},{headerName:"MOQ (Pallets)",headerTooltip:"Minimum Order Quantity of Pallets",field:"palletItem.segmentableQuantityDetail.minimumUnitsPerOrder",colId:"palletMOQ",minWidth:70},{headerName:"Storage Type",headerTooltip:"Storage Type",field:"storageType",minWidth:50,width:50},{headerName:"Days Lead Time",headerTooltip:"Days Lead Time",field:"leadTimeInDays",minWidth:50,width:50},{headerName:"Pricing",headerTooltip:"Pricing",field:"pricingModel",minWidth:90},{headerName:"Cost / Case",headerTooltip:"Cost / Case",field:"costPerCase",minWidth:70},{headerName:"Status Name",headerTooltip:"Status Name",field:"status",colId:"statusLabel",hide:!0,suppressColumnsToolPanel:!0,minWidth:70},{headerName:"Status",headerTooltip:"Status",minWidth:120,width:130,sortable:!0,suppressMenu:!0,suppressMovable:!1,suppressColumnsToolPanel:!1,pinned:"right",field:"status",colId:"status",cellRenderer:dAt},{headerName:"Listing Restrictions",headerTooltip:"Listing Restrictions",minWidth:100,width:180,sortable:!0,suppressMenu:!0,suppressMovable:!1,suppressColumnsToolPanel:!1,pinned:"right",colId:"buyerVisibility",cellStyle:{textAlign:"center",justifyContent:"center"},cellRenderer:cAt,cellRendererParams:i=>({status:i.data.buyerVisibility}),valueGetter:i=>i.data?.buyerVisibility},{headerName:"Feat?",headerTooltip:"Is Featured",colId:"featured",minWidth:70,width:70,sortable:!0,suppressMovable:!1,suppressColumnsToolPanel:!1,pinned:"right",cellRenderer:iAt,valueGetter:i=>i.data?.isFeatured},{headerName:"",sortable:!1,suppressMenu:!0,suppressMovable:!0,filter:!1,minWidth:175,width:175,pinned:"right",colId:"action",suppressColumnsToolPanel:!0,cellRenderer:eAt,cellRendererParams:{onEdit:i=>{this.editingOffer.set(!0),this.offerToEdit.set(i.offerVersion)},onOrder:i=>{this.legacyNavigationService.navigate("app.marketplace-offer-admin-order",{orderOfferId:i.offerId})}}}],defaultColDef:{flex:1,sortable:!0,resizable:!0,filter:!1},sideBar:{toolPanels:[{id:"columns",labelDefault:"Columns",labelKey:"columns",iconKey:"columns",toolPanel:"agColumnsToolPanel",toolPanelParams:{suppressColumnFilter:!0,suppressColumnSelectAll:!0,suppressPivotMode:!0,suppressRowGroups:!0,suppressValues:!0}},{id:"customTools",labelDefault:"Filter Offers",labelKey:"customTools",iconKey:"filter",toolPanel:SAt,toolPanelParams:{onSupplierSelected:i=>{this.selectedSupplier.set(i),this.filterOffers()},onSupplierLocationSelected:i=>{this.selectedSupplierLocation.set(i),this.filterOffers()},onProgramCodeSelected:i=>{this.selectedProgramCode.set(i),this.filterOffers()},onIsImportedSelected:i=>{this.selectedIsImported.set(i),this.filterOffers()},onListingRestrictionSelected:i=>{this.selectedListingRestriction.set(i),this.filterOffers()},onStatusSelected:i=>{this.selectedOfferStatus.set(i),this.filterOffers()},onHerCategorySelected:i=>{this.selectedHerCategory.set(i),this.filterOffers()},onSelectedTaxonomyKeysChanged:i=>{this.selectedTaxonomies.set(i),this.filterOffers()},onTaxonomyEntriesCleared:()=>{this.selectedTaxonomies.set([]),this.filterOffers()},filters:this.filters}}],defaultToolPanel:""},getRowId:i=>i.data.offerId,enableBrowserTooltips:!0,enableCellTextSelection:!0,rowSelection:"multiple",suppressColumnVirtualisation:!0,suppressRowClickSelection:!0,onSelectionChanged:i=>{this.selectedRows.set(this.gridOptions.api.getSelectedRows())},onColumnMoved:i=>{const s=this.gridOptions.columnApi.getAllDisplayedColumns().map(a=>a.getColId());this.cacheService.cache({key:this.visibleColumnsCacheKey,value:s,persist:!0,ttl:1/0,type:"data"})},onColumnVisible:i=>{const s=this.gridOptions.columnApi.getAllDisplayedColumns().map(a=>a.getColId());this.cacheService.cache({key:this.visibleColumnsCacheKey,value:s,persist:!0,ttl:1/0,type:"data"})},onGridReady:(i=(0,lr.A)(function*(o){let s=yield e.cacheService.get(e.visibleColumnsCacheKey);if(s?.length){let a=o.columnApi.getColumns()?.map(l=>l.getColId()).filter(l=>!s.includes(l));a?.length&&o.columnApi.setColumnsVisible(a,!1),s.forEach((l,c)=>{o.columnApi.moveColumn(l,c)}),o.columnApi.setColumnsVisible(s,!0)}e.legacySessionDataService.canFeatureGroceryOffers()&&e.gridOptions.columnApi?.setColumnVisible("featured",!0),e.loadOffers()}),function(s){return i.apply(this,arguments)}),isExternalFilterPresent:()=>!0,doesExternalFilterPass:i=>!!i.data&&this.filteredOfferIds().includes(i.data.offerId)},(0,n.QZP)(()=>{"GROCERY"===this.viewingOfferType()&&this.autoSizeAllColumns()})}ngOnInit(){this.currentUserRole.set(this.claimsService.userRole),this.legacySessionDataService.canCreateProduceOffers()||this.viewingOfferType.set("GROCERY")}autoSizeAllColumns(){setTimeout(()=>{this.gridOptions.columnApi?.autoSizeAllColumns(!1)},0)}startAdminOrder(){if(new Set(this.selectedRows().map(o=>o.sourceEntity.internalDetail?.internalEntityId)).size>1)return void this.toasterService.displayErrorToast("Multiple Suppliers Selected","Sorry - we can only process orders with items from the same supplier.");if(this.selectedRows().filter(o=>o.status!=Kv.Active).length>0)return void this.toasterService.displayErrorToast("Offers not Available","Sorry - only offers that are active are able to be ordered.");let i=this.selectedRows().map(o=>o.offerId).join("|");this.legacyNavigationService.navigate("app.marketplace-offer-admin-order",{orderOfferId:i})}loadTaxonomy(){this.marketplaceService.getTaxonomy().subscribe(e=>{e&&this.taxonomy.set(e)})}loadOffers(){this.gridOptions.api?.showLoadingOverlay(),this.offersLoaded.set(!1),this.offersLoading.set(!0),wy({offers:this.marketplaceService.getManageOffers(),featuredOffers:this.marketplaceService.getOfferFlags("FEATURED"),taxonomy:this.marketplaceService.getTaxonomy()}).subscribe({next:({offers:e,featuredOffers:i,taxonomy:o})=>{let s=i.map(l=>l.offerId);this.featuredOfferIds.set(s),this.taxonomy.set(o);let a=e.filter(l=>"STRUCTURE"==l.contentStructure).sort((l,c)=>l.expirationTimeUTC-c.expirationTimeUTC).map(l=>{let c=this.offerVersionConverterService.convertToGridStructureOfferVersion(l,this.taxonomy());return this.applyIsFeatured(c,s)});this.gridOptions.api?.setRowData(a),this.filteredOfferIds.set(a.map(l=>l.offerId)),this.offersLoading.set(!1),this.offersLoaded.set(!0),this.gridOptions.api?.hideOverlay(),this.gridOptions.api?.onFilterChanged()},error:e=>{this.offersLoading.set(!1),this.gridOptions.api?.hideOverlay(),this.toasterService.displayErrorToast("Error","Unable to load offers")}})}applyIsFeatured(e,i){return{...e,isFeatured:i.includes(e.offerId)}}addOffer(){this.legacyNavigationService.navigate("app.marketplace-offer")}onOfferUpdated(e){this.editingOffer.set(!1);let i=this.applyIsFeatured(this.offerVersionConverterService.convertToGridStructureOfferVersion(e,this.taxonomy()),this.featuredOfferIds());this.gridOptions.api?.getRowNode(e.offerId)?this.gridOptions.api?.applyTransaction({update:[i]}):(this.gridOptions.api?.applyTransaction({add:[i]}),this.filteredOfferIds.set([...this.filteredOfferIds(),i.offerId])),this.gridOptions.api?.onFilterChanged()}onOfferFormStatusChange(e){let i=this.offerFormComponentRef().getFormErrors();this.formIssues.set([...i]),this.isOfferFormValid.set("VALID"===e)}sendOfferUpdate(e){return this.marketplaceService.updateOffer(e).pipe(eh({next:i=>(this.offerUpdating.set(!1),this.toasterService.displaySuccessToast("Success","Offer updated"),i.offer),error:i=>{this.offerUpdating.set(!1),this.toasterService.displayErrorToast("Error","Unable to update offer")}}))}sendCancelOffer(e){return this.marketplaceService.cancelOffer(e).pipe(eh({next:i=>(this.offerUpdating.set(!1),this.toasterService.displaySuccessToast("Success","Offer cancelled"),i.offer),error:i=>{this.offerUpdating.set(!1),this.toasterService.displayErrorToast("Error","Unable to cancel offer. It is possible the offer is already cancelled or has been consumed.")}}))}sendPostOffer(e){this.marketplaceService.postOffer(e).subscribe({next:i=>{this.offerUpdating.set(!1),this.toasterService.displaySuccessToast("Success","Offer submitted");let o=this.offerVersionConverterService.convertToGridStructureOfferVersion(i.offer,this.taxonomy());this.gridOptions.api?.applyTransaction({add:[this.applyIsFeatured(o,this.featuredOfferIds())]}),this.filterOffers()},error:i=>{this.offerUpdating.set(!1),this.toasterService.displayErrorToast("Error","Unable to send offer")}})}setPauseStatus(e){let i=[];this.selectedRows().forEach(o=>{null!=o.offerVersion.matchPreferences?o.offerVersion.matchPreferences.blockAllMatching=e:o.offerVersion.matchPreferences={blockAllMatching:e,constraints:[],combinationRule:"ANY"},i.push(this.sendOfferUpdate(o.offerVersion))}),wy(i).subscribe({next:o=>{o.forEach(s=>{let a=[],l=this.offerVersionConverterService.convertToGridStructureOfferVersion(s.offer,this.taxonomy());a.push(this.applyIsFeatured(l,this.featuredOfferIds())),this.gridOptions.api?.applyTransaction({update:a})})}})}featureOffers(){let e=this.selectedRows(),i=e.map(o=>o.offerId);this.marketplaceService.featureOffers(i).subscribe({next:()=>{this.updateFeaturedFlagForSelectedRows(e)}})}unfeatureOffers(){let e=this.selectedRows(),i=e.map(o=>o.offerId);this.marketplaceService.removeFeatureOffers(i).subscribe({next:()=>{this.updateFeaturedFlagForSelectedRows(e)}})}cancelOffer(){this.selectedRows().forEach(e=>{e.offerVersion.expirationTimeUTC=Date.now(),this.sendCancelOffer(e.offerVersion).subscribe({next:i=>{this.refreshOfferInGrid(i.offer)}})})}refreshOfferInGrid(e){let i=[],o=this.offerVersionConverterService.convertToGridStructureOfferVersion(e,this.taxonomy());i.push(this.applyIsFeatured(o,this.featuredOfferIds())),this.gridOptions.api?.applyTransaction({update:i})}updateFeaturedFlagForSelectedRows(e){this.marketplaceService.getOfferFlags("FEATURED",!0).subscribe({next:i=>{this.featuredOfferIds.set(i.map(o=>o.offerId)),this.toasterService.displaySuccessToast("Success","Updated Featured Offers"),this.gridOptions.api?.applyTransaction({update:e.map(o=>this.applyIsFeatured(o,this.featuredOfferIds()))})}})}duplicateOffer(){if(1!==this.selectedRows().length)return void this.toasterService.displayErrorToast("Error","Can only duplicate one offer at a time");let e=JSON.parse(JSON.stringify(this.selectedRows()[0].offerVersion));e.offerId=crypto.randomUUID(),e.offerVersionId=null,e.offerCode=null,e.contents=this.replaceDuplicateOfferContentIds(e.contents),e.pricingModel="FOB",this.clearOfferContentItemType(e.contents,"UPC"),this.clearOfferContentItemCosts(e.contents),this.editingOffer.set(!0),this.offerToEdit.set(e)}replaceDuplicateOfferContentIds(e){for(const i of e)i.contentItemId=crypto.randomUUID(),i.contents=this.replaceDuplicateOfferContentIds(i.contents);return e}clearOfferContentItemType(e,i){null==e||!e.length||e.forEach(o=>{o.itemTypes=o.itemTypes.filter(s=>s.vocabularyId.toLowerCase()!=i.toLowerCase()),o.contents.length&&this.clearOfferContentItemType(o.contents,i)})}clearOfferContentItemCosts(e){null==e||!e.length||e.forEach(i=>{i.itemCosts.length=0,i.contents.length&&this.clearOfferContentItemCosts(i.contents)})}onSearchTermChanged(e){this.filterText.set(e),this.filterOffers()}filterOffers(){let e=this.filterText(),i=[],o=[];this.filters.set([]),this.gridOptions.api?.forEachNode(a=>{i.push(a.data)});let s=i.map(a=>a.offerId);if(e?.length){let l=new tC(i,{isCaseSensitive:!1,minMatchCharLength:2,shouldSort:!0,threshold:.3,keys:[{name:"offerTitle",weight:.3},{name:"offerCode",weight:.2},{name:"unitItem.description",weight:.1},{name:"offerVersion.description",weight:.1},{name:"category",weight:.2},{name:"categoryDisplayName",weight:.1},{name:"categoryKey",weight:.1},{name:"sourceEntity.city",weight:.1},{name:"sourceEntity.name",weight:.1},{name:"locationEntity.city",weight:.1},{name:"locationEntity.name",weight:.1},{name:"locationEntity.province",weight:.1},{name:"upcCode",weight:.1},{name:"brandLabel",weight:.2}]}).search(e).map(c=>c.item.offerId);s=s.filter(c=>l.includes(c))}if(this.selectedSupplier()){let a=this.selectedSupplier()?.internalDetail?.internalEntityId,l=i.filter(c=>c.sourceEntity.internalDetail?.internalEntityId===a).map(c=>c.offerId);s=s.filter(c=>l.includes(c)),o.push({code:"SUPPLIER",label:"Supplier",value:this.selectedSupplier()?.name??null})}if(this.selectedSupplier()&&this.selectedSupplierLocation()){let a=this.selectedSupplierLocation()?.internalDetail?.internalEntityId,l=i.filter(c=>c.locationEntity.internalDetail?.internalEntityId===a).map(c=>c.offerId);s=s.filter(c=>l.includes(c)),o.push({code:"WAREHOUSE",label:"Warehouse",value:this.selectedSupplierLocation()?.name??null})}if(this.selectedProgramCode()){let a=i.filter(l=>l.programCode===this.selectedProgramCode()).map(l=>l.offerId);s=s.filter(l=>a.includes(l)),o.push({code:"PROGRAM_CODE",label:"Program",value:this.selectedProgramCode()})}if(this.selectedIsImported()){let a=i.filter(l=>l.isImported).map(l=>l.offerId);s=s.filter(l=>a.includes(l)),o.push({code:"IS_IMPORTED",label:"Imported",value:"yes"})}if(this.selectedOfferStatus()){let a=i.filter(l=>l.status===this.selectedOfferStatus()).map(l=>l.offerId);s=s.filter(l=>a.includes(l)),o.push({code:"STATUS",label:"Status",value:this.selectedOfferStatus()})}if(this.selectedListingRestriction()){let a=i.filter(l=>l.buyerVisibility===this.selectedListingRestriction()).map(l=>l.offerId);s=s.filter(l=>a.includes(l)),o.push({code:"LISTING_RESTRICTION",label:"Listing Restriction",value:this.selectedListingRestriction()})}if(this.selectedHerCategory()){let a=i.filter(l=>l.herCategory===this.selectedHerCategory()).map(l=>l.offerId);s=s.filter(l=>a.includes(l)),o.push({code:"HER_CATEGORY",label:"HER Category",value:this.selectedHerCategory()})}if(this.selectedTaxonomies().length){let a=this.selectedTaxonomies(),l=i.filter(c=>a.some(d=>c.categoryKey.startsWith(d))).map(c=>c.offerId);s=s.filter(c=>l.includes(c)),o.push({code:"TAXONOMY",label:"Taxonomy",value:null})}this.filteredOfferIds.set(s),this.filters.set([...o]),this.gridOptions.api?.onFilterChanged()}removeFilter(e){this.filters.set([...this.filters().filter(i=>i.code!==e)])}exportGridData(){let e=this.gridOptions.columnApi?.getAllGridColumns().map(i=>i.getColId());this.gridOptions.api?.exportDataAsExcel({columnKeys:e?.filter(i=>!["checkbox","imageUrl","status","action"].includes(i)),fileName:"offers.xlsx"})}resetGridColumns(){this.cacheService.clear(this.visibleColumnsCacheKey),this.gridOptions.columnApi?.resetColumnState(),this.autoSizeAllColumns()}displayFormIssues(e){this.issuesRef().toggle(e)}submitOfferForm(){this.offerFormComponentRef().submitOffer()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["marketplace-offers"]],viewQuery:function(i,o){1&i&&(n.wEZ(o.offerFormComponentRef,xAt,5),n.wEZ(o.issuesRef,EAt,5),n.wEZ(o.dialog,DAt,5)),2&i&&n.NyB(3)},decls:35,vars:16,consts:[["dialog",""],["footer",""],["offerForm",""],["issues",""],[1,"tw-flex","tw-h-full","tw-flex-auto","tw-flex-col"],[1,"tw-flex","tw-py-2"],[3,"ngClass"],[1,"unified-styles"],[1,"tw-flex","tw-items-center","tw-gap-4"],["placeholder","Search by item name, brand, category, offer number, or UPC number",1,"tw-flex-grow",3,"searchTermChanged"],[1,"tw-my-4","tw-flex","tw-items-center","tw-justify-between"],[1,"tw-flex","tw-gap-2"],["type","button",1,"btn","btn-sm","btn-primary","action-button",3,"disabled"],["type","button","title","Block from Listing",1,"btn","btn-sm","btn-primary","action-button",3,"disabled"],["type","button","title","Unblock from Listing",1,"btn","btn-sm","btn-primary","action-button",3,"disabled"],[1,"tw-flex","tw-items-center","tw-gap-2"],["type","button","title","Reset all columns to default layout",1,"btn","btn-sm","btn-primary","action-button",3,"click"],["type","button",1,"btn","btn-sm","btn-primary","action-button",3,"click"],["type","button",1,"btn","btn-sm","btn-primary","action-button"],[1,"tw-min-h-9"],[1,"-tw-ml-2","tw-mb-0","tw-flex","tw-list-none","tw-flex-wrap","tw-p-0"],[1,"tw-mb-2","tw-ml-2"],[1,"ag-theme-faom",2,"width","100%","height","100%","min-height","400px",3,"gridOptions"],[3,"onRefresh","gridOptions"],["appendTo","body",3,"visibleChange","onHide","header","modal","visible","draggable"],[2,"width","900px","height","700px"],["title","View Produce Offers",1,"btn-reset","tw-group","tw-flex","tw-items-center","tw-space-x-2","tw-border-2","tw-border-solid","tw-px-4","tw-py-2",3,"click","ngClass"],[1,"tw-flex","tw-h-[32px]","tw-w-[32px]","tw-items-center","tw-justify-center","tw-rounded-full","tw-transition-colors","group-hover:tw-bg-fa-green-200",3,"ngClass"],[1,"group-hover:tw-text-fa-green-500",3,"ngClass"],[1,"tw-font-semibold",3,"ngClass"],["title","View Grocery Offers",1,"btn-reset","tw-group","tw-flex","tw-items-center","tw-space-x-2","tw-border-2","tw-border-solid","tw-px-4","tw-py-2",3,"click","ngClass"],[1,"tw-flex","tw-h-[32px]","tw-w-[32px]","tw-items-center","tw-justify-center","tw-rounded-full","tw-transition-colors","group-hover:tw-bg-fa-orange-200",3,"ngClass"],[1,"group-hover:tw-text-fa-orange-500",3,"ngClass"],["type","button",1,"btn","btn-sm","btn-primary","action-button",3,"click","disabled"],["type","button","title","Block from Listing",1,"btn","btn-sm","btn-primary","action-button",3,"click","disabled"],["type","button","title","Unblock from Listing",1,"btn","btn-sm","btn-primary","action-button",3,"click","disabled"],[1,"tw-flex","tw-items-center","tw-space-x-1","tw-rounded-full","tw-bg-fa-orange-500","tw-px-3","tw-py-1","tw-text-sm","tw-font-semibold","tw-leading-none","tw-text-white"],["title","Remove Filter",1,"btn-reset","tw-text-orange-200","tw-transition-colors","hover:tw-text-white",3,"click"],[1,"pi","pi-times-circle","tw-text-xs"],[1,"text-sm"],["formTitle","",3,"onOfferVersionCreated","onStatusChange","editingOffer","hideSubmit"],[1,"tw-mt-4","tw-flex","tw-justify-end","tw-gap-2"],["type","button",1,"btn","btn-link"],[1,"list-unstyled"],["type","button",1,"btn","btn-primary",3,"click","disabled"],["type","button",1,"btn","btn-link",3,"click"]],template:function(i,o){if(1&i){const s=n.RV6();n.j41(0,"div",4)(1,"page-heading"),n.EFF(2,"All Offers"),n.k0s(),n.DNE(3,PAt,11,30,"div",5),n.j41(4,"div",6),n.nrm(5,"manage-offers-grid",7),n.k0s(),n.j41(6,"div",6)(7,"div",8)(8,"app-filter-input",9),n.bIt("searchTermChanged",function(l){return n.eBV(s),n.Njj(o.onSearchTermChanged(l))}),n.k0s()(),n.j41(9,"div",10)(10,"div",11),n.DNE(11,LAt,2,1,"button",12)(12,NAt,2,1,"button",13)(13,GAt,2,1,"button",14)(14,BAt,6,3)(15,VAt,2,1,"button",12),n.k0s(),n.j41(16,"div",15)(17,"button",16),n.bIt("click",function(){return n.eBV(s),n.Njj(o.resetGridColumns())}),n.EFF(18," Reset Columns "),n.k0s(),n.j41(19,"button",17),n.bIt("click",function(){return n.eBV(s),n.Njj(o.loadOffers())}),n.EFF(20," Refresh "),n.k0s(),n.j41(21,"button",17),n.bIt("click",function(){return n.eBV(s),n.Njj(o.exportGridData())}),n.EFF(22," Export "),n.k0s(),n.DNE(23,jAt,2,0,"button",18),n.k0s()(),n.j41(24,"div",19)(25,"ul",20),n.Z7z(26,HAt,6,1,"li",21,kAt),n.k0s()(),n.nrm(28,"ag-grid-angular",22),n.j41(29,"app-grid-footer",23),n.bIt("onRefresh",function(){return n.eBV(s),n.Njj(o.loadOffers())}),n.k0s()()(),n.j41(30,"p-dialog",24,0),n.mxI("visibleChange",function(l){return n.eBV(s),n.DH7(o.editingOffer,l)||(o.editingOffer=l),n.Njj(l)}),n.bIt("onHide",function(){return n.eBV(s),n.Njj(o.editingOffer.set(!1))}),n.DNE(32,UAt,3,2,"div",25)(33,WAt,9,2,"ng-template",null,1,n.C5r),n.k0s()}2&i&&(n.R7$(3),n.vxM(o.legacySessionDataService.canCreateGroceryOffers()&&o.legacySessionDataService.canCreateProduceOffers()?3:-1),n.R7$(),n.Y8G("ngClass","PRODUCE"===o.viewingOfferType()?"tw-block tw-h-full":"tw-hidden"),n.R7$(2),n.Y8G("ngClass","GROCERY"===o.viewingOfferType()?"tw-flex tw-h-full tw-flex-col":"tw-hidden"),n.R7$(5),n.vxM(o.legacySessionDataService.canCreateGroceryOffers()?11:-1),n.R7$(),n.vxM(o.legacySessionDataService.canBlockGroceryOffers()?12:-1),n.R7$(),n.vxM(o.legacySessionDataService.canUnblockGroceryOffers()?13:-1),n.R7$(),n.vxM(o.legacySessionDataService.canFeatureGroceryOffers()?14:-1),n.R7$(),n.vxM(o.entitiesService.isFANO()?15:-1),n.R7$(8),n.vxM(o.legacySessionDataService.canCreateGroceryOffers()?23:-1),n.R7$(3),n.Dyx(o.filters()),n.R7$(2),n.Y8G("gridOptions",o.gridOptions),n.R7$(),n.Y8G("gridOptions",o.gridOptions),n.R7$(),n.Y8G("header",o.editingOfferTitle())("modal",!0),n.R50("visible",o.editingOffer),n.Y8G("draggable",!1),n.R7$(2),n.vxM(o.editingOffer()?32:-1))},dependencies:[gn,bi,vg,gf,Yz,Ra,Dpe,AX,MX,QIt,DF,p8,CI,K_,kv,BX],encapsulation:2})}}return t})(),qAt=(()=>{class t{constructor(){}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["marketplace-orders-to-fulfill"]],standalone:!1,decls:2,vars:0,template:function(i,o){1&i&&(n.j41(0,"p"),n.EFF(1,"orders-to-fulfill works!"),n.k0s())},encapsulation:2})}}return t})(),XAt=(()=>{class t{constructor(){}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["marketplace-orders"]],standalone:!1,decls:2,vars:0,template:function(i,o){1&i&&(n.j41(0,"p"),n.EFF(1,"orders works!"),n.k0s())},encapsulation:2})}}return t})(),KAt=(()=>{class t{constructor(){this.legacySessionDataService=(0,n.WQX)(qy),this.marketplaceService=(0,n.WQX)(Yu),this.timelineEntryService=(0,n.WQX)(zv),this.isLoading=(0,n.vPA)(!1),this.hasError=(0,n.vPA)(!1),this.initialLoadComplete=(0,n.vPA)(!1),(0,n.QZP)(()=>{this.legacySessionDataService.isLoaded()&&this.legacySessionDataService.canPreloadMarketplaceOffers()&&!1===this.initialLoadComplete()&&this.loadOffers()})}loadOffers(){this.isLoading()||this.initialLoadComplete()||(this.isLoading.set(!0),this.hasError.set(!1),wy({timelineEntries:this.timelineEntryService.getFlattenedAvailableItemSummaries(!0),offerFlags:this.marketplaceService.getOfferFlags("FEATURED",!0),taxonomyTree:this.marketplaceService.getTaxonomyTree(!0),taxonomy:this.marketplaceService.getTaxonomy(!0)}).subscribe({next:({})=>{this.isLoading.set(!1),this.initialLoadComplete.set(!0)},error:e=>{this.isLoading.set(!1),this.hasError.set(!0),this.initialLoadComplete.set(!0)}}))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),QAt=(()=>{class t{constructor(){this.legacyNavigationService=(0,n.WQX)(wc),this.legacySessionDataService=(0,n.WQX)(qy),(0,n.QZP)(()=>{if(this.legacySessionDataService.isLoaded()&&((this.legacySessionDataService.canCreateProduceOffers()||this.legacySessionDataService.canCreateProduceOrders())&&(this.legacySessionDataService.isMarketplaceNavigationEnabled()?this.legacyNavigationService.navigate("app.marketplace-offers"):this.legacyNavigationService.navigate("app.produce-offer.manage")),this.legacySessionDataService.canCreateGroceryOffers()||this.legacySessionDataService.canCreateGroceryOrders())){this.legacyNavigationService.navigate("app.marketplace-offers");const i=document.getElementsByClassName("btn-primary-action");i.length&&i[0].remove()}})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["marketplace-supplier-dashboard"]],decls:4,vars:0,consts:[[1,"tw-flex","tw-h-full","tw-flex-col","tw-items-center","tw-justify-center"],["ariaLabel","loading"],[1,"tw-font-semibold"]],template:function(i,o){1&i&&(n.j41(0,"div",0),n.nrm(1,"p-progress-spinner",1),n.j41(2,"span",2),n.EFF(3,"Loading..."),n.k0s()())},dependencies:[Iv,Q_],encapsulation:2})}}return t})(),JAt=(()=>{class t{constructor(e){this.http=e,this._selectedAgency=null,this._agencies=[]}getOrderAheadEnabledAgencies(){if(this._agencies.length)return Fs(this._agencies);{const e=this.http.get("/api/agencies/orderahead");return e.subscribe(i=>{this._agencies=i}),e}}setSelectedAgency(e){this._selectedAgency=e}get selectedAgency(){return this._selectedAgency}static{this.\u0275fac=function(i){return new(i||t)(n.KVO(Da))}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),ZAt=(()=>{class t{constructor(e){this.http=e,this._currentFoodBank=null}getCurrentFoodBank(){return this._currentFoodBank?Fs(this._currentFoodBank):this.http.get("/api/foodbank/current").pipe((0,Os.T)(i=>(this._currentFoodBank=i.FoodBank,this._currentFoodBank)))}static{this.\u0275fac=function(i){return new(i||t)(n.KVO(Da))}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function eMt(t,r){if(1&t&&(n.j41(0,"option",7),n.EFF(1),n.k0s()),2&t){const e=r.$implicit;n.Y8G("ngValue",e),n.R7$(),n.SpI(" ",e.Name," ")}}function tMt(t,r){if(1&t&&(n.j41(0,"optgroup",5),n.DNE(1,eMt,2,2,"option",6),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngForOf",e.agencies)}}function nMt(t,r){if(1&t&&(n.j41(0,"select",1)(1,"optgroup",2)(2,"option",3),n.EFF(3),n.k0s()(),n.DNE(4,tMt,2,1,"optgroup",4),n.k0s()),2&t){const e=n.XpG();n.Y8G("formControl",e.agency)("compareWith",e.compareByID),n.R7$(2),n.Y8G("value",null),n.R7$(),n.JRh(null==e.currentFoodBank?null:e.currentFoodBank.Name),n.R7$(),n.Y8G("ngIf",e.agencies.length)}}let iMt=(()=>{class t{constructor(e,i,o){this.agenciesService=e,this.foodBanksService=i,this.claimsService=o,this.showAgencies=!0,this.onAgencySelected=new n.bkB,this.isVisible=!1,this.currentFoodBank=null,this.agencies=[],this.agency=new xb("")}loadAgencies(){return this.agenciesService.getOrderAheadEnabledAgencies().subscribe(e=>{this.agencies=this.showAgencies?e:[],e.length?(this.agency.setValue(null),this.isVisible=!0):this.isVisible=!1})}compareByID(e,i){return e?.ID==i?.ID}ngOnInit(){this.claimsService.isUserInAnyRole([Uq,ide])&&(this.foodBanksService.getCurrentFoodBank().subscribe(e=>{this.currentFoodBank=e}),this.loadAgencies(),this.agency.valueChanges.subscribe(e=>{this.agenciesService.setSelectedAgency(e),this.onAgencySelected.emit(e)}))}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(JAt),n.rXU(ZAt),n.rXU(Zb))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["order-ahead-agency-selection"]],inputs:{showAgencies:"showAgencies"},outputs:{onAgencySelected:"onAgencySelected"},standalone:!1,decls:1,vars:1,consts:[["name","orderAheadAgencies","class","form-control",3,"formControl","compareWith",4,"ngIf"],["name","orderAheadAgencies",1,"form-control",3,"formControl","compareWith"],["label","Food Bank"],[3,"value"],["label","Agencies",4,"ngIf"],["label","Agencies"],[3,"ngValue",4,"ngFor","ngForOf"],[3,"ngValue"]],template:function(i,o){1&i&&n.DNE(0,nMt,5,5,"select",0),2&i&&n.Y8G("ngIf",o.isVisible)},dependencies:[oo,fi,Sy,xy,Ty,_o,dO],encapsulation:2})}}return t})(),$X=(()=>{class t{constructor(e){this.http=e}isAvailableEmailAddress(e){return new Promise((o,s)=>e?Yo(this.http.post("/api/orderahead/customers/emailisavailable",{EmailAddress:e})).then(a=>{o(!!a.Successful)},a=>{s(a)}):s("No email address provided"))}isAvailablePhoneNumber(e){return new Promise((o,s)=>e?Yo(this.http.post("/api/orderahead/customers/phonenumberisavailable",{PhoneNumber:e})).then(a=>{o(!(!a.Successful||!a.Value))},a=>{s(a)}):s("No phone number provided"))}createCustomer(e){return Yo(this.http.post("/api/orderahead/customers",e))}getCustomerIsExclusiveToCurrentOrg(e){return Yo(this.http.get(`/api/orderahead/customer/${e}/isexclusivetoorg`))}restrictCustomerFromOrdering(e){return Yo(this.http.put(`/api/orderahead/customer/${e.ID}/restrictfromordering`,e))}static{this.\u0275fac=function(i){return new(i||t)(n.KVO(Da))}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),rMt=(()=>{class t{constructor(e){this.customersService=e}validate(e){return e&&e.value&&String(e.value).length?this.customersService.isAvailableEmailAddress(e.value).then(i=>i?null:{emailExists:!0}):Fs(null)}static{this.\u0275fac=function(i){return new(i||t)(n.KVO($X))}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),oMt=(()=>{class t{constructor(){}getSupportedLanguages(){return Fs([{name:"English",code:"en"},{name:"Espa\xf1ol",code:"es"},{name:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439",code:"ru"},{name:"Haitian Creole",code:"ht"},{name:"\u4e2d\u6587 (\u7b80\u4f53)",code:"zh-Hans"},{name:"Fran\xe7ais",code:"fr"},{name:"\u0928\u0947\u092a\u093e\u0932\u0940",code:"ne"},{name:"Polski",code:"pl"},{name:"Soomaali",code:"so"},{name:"T\xfcrk\xe7e",code:"tr"},{name:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",code:"ar"}])}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const sMt=["dropdown"];function aMt(t,r){if(1&t&&(n.j41(0,"div",3)(1,"span"),n.EFF(2),n.k0s()()),2&t){const e=r.$implicit;n.R7$(2),n.JRh(e.name)}}let che=(()=>{class t{constructor(e){this.languageService=e,this.dropDown=null,this.languages=[],this.selectedLanguage=null,this.onChange=i=>{},this.onTouched=()=>{}}ngOnInit(){this.languageService.getSupportedLanguages().subscribe(e=>{this.languages=e})}languageSelected(e){this.selectedLanguage=e,this.onChange(e)}get value(){return this.selectedLanguage}writeValue(e){this.selectedLanguage=e,this.dropDown&&this.dropDown.setSelectedItem(e),this.onChange(this.selectedLanguage)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.dropDown&&(this.dropDown.disabled=e)}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(oMt))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["language-select"]],viewQuery:function(i,o){if(1&i&&n.GBs(sMt,5),2&i){let s;n.mGM(s=n.lsd())&&(o.dropDown=s.first)}},standalone:!1,features:[n.Jv_([{provide:tl,multi:!0,useExisting:t}])],decls:5,vars:3,consts:[["dropdownTemplate",""],["dropdown",""],["filterFields","name,code","placeholder","Select a Language","styleClass","",3,"itemSelected","options","itemTemplate","selectedItemTemplate"],[1,""]],template:function(i,o){if(1&i){const s=n.RV6();n.DNE(0,aMt,3,1,"ng-template",null,0,n.C5r),n.j41(2,"div")(3,"dropdown",2,1),n.bIt("itemSelected",function(l){return n.eBV(s),n.Njj(o.languageSelected(l))}),n.k0s()()}if(2&i){const s=n.sdS(1);n.R7$(3),n.Y8G("options",o.languages)("itemTemplate",s)("selectedItemTemplate",s)}},dependencies:[Uu],encapsulation:2})}}return t})();function lMt(t,r){1&t&&(n.qex(0),n.j41(1,"div",1),n.EFF(2,"Not Available"),n.k0s(),n.bVm())}function cMt(t,r){if(1&t&&(n.qex(0),n.j41(1,"div",2),n.EFF(2),n.k0s(),n.j41(3,"div",2),n.EFF(4),n.k0s(),n.bVm()),2&t){const e=n.XpG();n.R7$(2),n.SpI(" ",e.address1," "),n.R7$(2),n.E5c(" ",e.city," ",e.state," ",e.zip," ")}}let uMt=(()=>{class t{constructor(){this.address=null}get isValid(){return!!this.address}get address1(){return this.address&&this.address.AddressLine1&&this.address.AddressLine1.length>0?this.address.AddressLine1:""}get city(){return this.address&&this.address.City&&this.address.City.length>0?this.address.City+", ":""}get state(){return this.address&&this.address.Province&&this.address.Province.length>0?this.address.Province:""}get zip(){return this.address&&this.address.PostalCode&&this.address.PostalCode.length>0?this.address.PostalCode:""}agInit(e){e.getValue&&(this.address=e.getValue())}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-location-cell"]],standalone:!1,decls:2,vars:2,consts:[[4,"ngIf"],[1,"address-not-available"],[1,"address-row"]],template:function(i,o){1&i&&n.DNE(0,lMt,3,0,"ng-container",0)(1,cMt,5,4,"ng-container",0),2&i&&(n.Y8G("ngIf",!o.isValid),n.R7$(),n.Y8G("ngIf",o.isValid))},dependencies:[fi],encapsulation:2})}}return t})(),dMt=(()=>{class t{constructor(){this.endpoint="/api/InvitationPantriesGrid",this.gridHeight="",this.onSelectedLocationIDsChanged=new n.bkB,this.gridOptions={columnDefs:[{headerName:"Name",field:"Label",minWidth:140,checkboxSelection:!0,headerCheckboxSelection:!0,headerCheckboxSelectionFilteredOnly:!0},{headerName:"Address",field:"Address",minWidth:240,cellRendererFramework:uMt}],onSelectionChanged:e=>{let o=e.api.getSelectedNodes().map(s=>s.data.ID);this.onSelectedLocationIDsChanged.emit(o)},suppressRowClickSelection:!0,rowSelection:"multiple"}}ngOnInit(){this.gridHeight=this.gridHeight||"400px"}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["location-selection-grid"]],viewQuery:function(i,o){if(1&i&&n.GBs(yg,5),2&i){let s;n.mGM(s=n.lsd())&&(o.grid=s.first)}},inputs:{gridHeight:"gridHeight"},outputs:{onSelectedLocationIDsChanged:"onSelectedLocationIDsChanged"},standalone:!1,decls:1,vars:3,consts:[["minHeight","200px",3,"gridOptions","endpoint","height"]],template:function(i,o){1&i&&n.nrm(0,"grid",0),2&i&&n.Y8G("gridOptions",o.gridOptions)("endpoint",o.endpoint)("height",o.gridHeight)},dependencies:[yg],encapsulation:2})}}return t})(),pMt=(()=>{class t{constructor(){this.endpoint="/api/InvitationDeliveryProgramsGrid",this.gridHeight="",this.onSelectedDeliveryProgramIDsChanged=new n.bkB,this.onDataLoaded=new n.bkB,this.gridOptions={columnDefs:[{headerName:"Name",field:"Name",minWidth:140,checkboxSelection:!0,headerCheckboxSelection:!0,headerCheckboxSelectionFilteredOnly:!0}],onSelectionChanged:e=>{let o=e.api.getSelectedNodes().map(s=>s.data.ID);this.onSelectedDeliveryProgramIDsChanged.emit(o)},suppressRowClickSelection:!0,rowSelection:"multiple"}}onGridDataLoaded(e){this.onDataLoaded.emit(e)}ngOnInit(){this.gridHeight=this.gridHeight||"400px"}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["delivery-programs-grid"]],viewQuery:function(i,o){if(1&i&&n.GBs(yg,5),2&i){let s;n.mGM(s=n.lsd())&&(o.grid=s.first)}},inputs:{gridHeight:"gridHeight"},outputs:{onSelectedDeliveryProgramIDsChanged:"onSelectedDeliveryProgramIDsChanged",onDataLoaded:"onDataLoaded"},standalone:!1,decls:1,vars:3,consts:[["minHeight","200px",3,"onDataLoaded","gridOptions","endpoint","height"]],template:function(i,o){1&i&&(n.j41(0,"grid",0),n.bIt("onDataLoaded",function(a){return o.onGridDataLoaded(a)}),n.k0s()),2&i&&n.Y8G("gridOptions",o.gridOptions)("endpoint",o.endpoint)("height",o.gridHeight)},dependencies:[yg],encapsulation:2})}}return t})();function hMt(t,r){1&t&&(n.j41(0,"small",42),n.EFF(1,"First name is required."),n.k0s())}function fMt(t,r){1&t&&(n.j41(0,"small",43),n.EFF(1,"Last name is required."),n.k0s())}function mMt(t,r){1&t&&n.nrm(0,"i",44)}function gMt(t,r){1&t&&(n.j41(0,"small",45),n.EFF(1,"E-mail Address is required."),n.k0s())}function vMt(t,r){1&t&&(n.j41(0,"small",45),n.EFF(1,"E-mail address invalid."),n.k0s())}function _Mt(t,r){1&t&&(n.j41(0,"small",45),n.EFF(1,"E-mail address already in use."),n.k0s())}function yMt(t,r){1&t&&n.nrm(0,"i",44)}function bMt(t,r){1&t&&(n.j41(0,"small",46),n.EFF(1,"Phone Number is required."),n.k0s())}function CMt(t,r){1&t&&(n.j41(0,"small",46),n.EFF(1,"Phone number is in use, an email address is required."),n.k0s())}function wMt(t,r){1&t&&(n.j41(0,"small",47),n.EFF(1,"Phone number is already in use. Customer may receive notifications to this number but will need to log in with their e-mail address."),n.k0s())}function TMt(t,r){1&t&&(n.j41(0,"div",5)(1,"div",34)(2,"span",9),n.EFF(3," An email address or phone number is required "),n.k0s()()())}function SMt(t,r){if(1&t&&(n.j41(0,"div",48)(1,"strong"),n.EFF(2,"Error"),n.k0s(),n.EFF(3),n.k0s()),2&t){const e=n.XpG();n.R7$(3),n.SpI(" ",e.errorMessage," ")}}let xMt=(()=>{class t{constructor(e,i,o,s){this.fb=e,this.availableEmailValidator=i,this.customersService=o,this.claimsService=s,this.customerSubmitted=new n.bkB,this.onCancel=new n.bkB,this.customerName="",this.errorMessage="",this.submittingForm=!1,this.isFoodBankUser=!1,this.languages=[{name:"English",code:"en"},{name:"Espa\xf1ol",code:"es"},{name:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439",code:"ru"},{name:"Haitian Creole",code:"ht"},{name:"\u4e2d\u6587 (\u7b80\u4f53)",code:"zh-Hans"},{name:"Fran\xe7ais",code:"fr"},{name:"\u0928\u0947\u092a\u093e\u0932\u0940",code:"ne"},{name:"Polski",code:"pl"},{name:"Soomaali",code:"so"},{name:"T\xfcrk\xe7e",code:"tr"},{name:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",code:"ar"}],this.phoneNumberChecking=!1,this.phoneNumberChecked=!1,this.phoneNumberAvailable=!1}cancel(){this.onCancel.emit()}setSelectedLocationIDs(e){this.model.patchValue({pantryLocationsToEnable:e})}setDeliveryProgramIDs(e){this.model.patchValue({deliveryProgramsToEnable:e})}onSubmit(){this.errorMessage="",this.submittingForm=!0;const e={...this.model.value};e.preferredLanguageCode=e.preferredLanguage.code,this.customersService.createCustomer(e).then(i=>{this.customerSubmitted.emit(i)}).catch(i=>{this.errorMessage=i?.error?.Message??"An unexpected error occurred creating the customer."}).finally(()=>{this.submittingForm=!1})}ngOnInit(){this.model=this.fb.group({firstName:["",[Ls.required]],lastName:["",[Ls.required]],emailAddress:["",{validators:[Ls.required,Ls.email],asyncValidators:[this.availableEmailValidator],updateOn:"blur"}],postalCode:["",[Ls.required,Ls.maxLength(5),Ls.pattern("[0-9][0-9][0-9][0-9][0-9]")]],phoneNumber:"",isEmailEnabled:!1,isSmsEnabled:!1,isPhoneEnabled:!1,isDeliveryEnabled:!1,pantryLocationsToEnable:[],deliveryProgramsToEnable:[],preferredLanguage:[null,[Ls.required]]}),this.emailAddress?.valueChanges.subscribe(e=>{this.isEmailEnabled?.setValue(!(!e||!e.length))}),this.phoneNumber?.valueChanges.subscribe(e=>{this.phoneNumberChecked=!1,this.phoneNumberAvailable=!1;let i=e.match(/\d/g);if(!i)return this.emailAddress?.addValidators(Ls.required),this.emailAddress?.updateValueAndValidity(),this.isPhoneEnabled?.setValue(!1),void this.isSmsEnabled?.setValue(!1);10===i.length&&(this.phoneNumberChecking=!0,this.isPhoneEnabled?.setValue(!0),this.isSmsEnabled?.setValue(!0),this.customersService.isAvailablePhoneNumber(e).then(o=>{this.phoneNumberChecked=!0,this.phoneNumberChecking=!1,this.phoneNumberAvailable=o,o?this.emailAddress?.removeValidators(Ls.required):this.emailAddress?.addValidators(Ls.required),this.emailAddress?.updateValueAndValidity()}))}),this.isFoodBankUser=this.claimsService.isUserInAnyRole([Uq,ide])}get firstName(){return this.model.get("firstName")}get lastName(){return this.model.get("lastName")}get emailAddress(){return this.model.get("emailAddress")}get postalCode(){return this.model.get("postalCode")}get phoneNumber(){return this.model.get("phoneNumber")}get isDeliveryEnabled(){return this.model.get("isDeliveryEnabled")}get pantryLocationsToEnable(){return this.model.get("pantryLocationsToEnable")}get deliveryProgramsToEnable(){return this.model.get("deliveryProgramsToEnable")}get preferredLanguage(){return this.model.get("preferredLanguage")}get isEmailEnabled(){return this.model.get("isEmailEnabled")}get isSmsEnabled(){return this.model.get("isSmsEnabled")}get isPhoneEnabled(){return this.model.get("isPhoneEnabled")}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(u8),n.rXU(rMt),n.rXU($X),n.rXU(Zb))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-order-ahead-customer-form"]],hostAttrs:[1,"full-height-element"],inputs:{customerName:"customerName"},outputs:{customerSubmitted:"customerSubmitted",onCancel:"onCancel"},standalone:!1,decls:94,vars:14,consts:[["customerForm","ngForm"],[1,"panel","panel-default"],[1,"panel-heading"],[1,"panel-body"],["novalidate","","autocomplete","off",3,"ngSubmit","formGroup"],[1,"row"],[1,"col-lg-6"],[1,"form-group"],["for","firstName"],[1,"text-danger"],["formControlName","firstName","pInputText","","type","text","id","firstName","name","firstName","aria-errormessage","firstName-error",1,"form-control"],["id","firstName-error","class","text-danger",4,"ngIf"],["for","lastName"],["formControlName","lastName","pInputText","","type","text","id","lastName","name","lastName",1,"form-control"],["id","lastName-error","class","text-danger",4,"ngIf"],["for","emailAddress"],[1,"p-input-icon-right","display-block"],["class","pi pi-spin pi-spinner",4,"ngIf"],["formControlName","emailAddress","pInputText","","type","email","id","emailAddress","name","emailAddress","aria-errormessage","emailAddress-error",1,"form-control"],["id","emailAddress-error","class","text-danger",4,"ngIf"],["for","phoneNumber"],["id","phoneNumber","name","phoneNumber","formControlName","phoneNumber","mask","(999) 999-9999","type","tel","styleClass","form-control"],["id","phoneNumber-error","class","text-danger",4,"ngIf"],["id","phoneNumber-error","class","text-warning",4,"ngIf"],["for","postalCode"],["id","postalCode","name","postalCode","formControlName","postalCode","mask","99999","type","text","styleClass","form-control"],["for","preferredLanguage"],["name","preferredLanguage","formControlName","preferredLanguage"],[1,"text-muted","ml-15","mt-10"],[1,"checkbox"],["formControlName","isEmailEnabled","type","checkbox"],["formControlName","isSmsEnabled","type","checkbox"],["formControlName","isPhoneEnabled","type","checkbox"],[1,"row","mt-10","mb-10"],[1,"col-sm-12"],["gridHeight","200px",3,"onSelectedLocationIDsChanged"],["gridHeight","200px",3,"onSelectedDeliveryProgramIDsChanged"],["class","row",4,"ngIf"],[1,"row","mt-10"],["type","button",1,"btn","btn-default",3,"click"],["type","submit",1,"btn","btn-primary","ml-10",3,"disabled"],["class","alert alert-danger mt-10",4,"ngIf"],["id","firstName-error",1,"text-danger"],["id","lastName-error",1,"text-danger"],[1,"pi","pi-spin","pi-spinner"],["id","emailAddress-error",1,"text-danger"],["id","phoneNumber-error",1,"text-danger"],["id","phoneNumber-error",1,"text-warning"],[1,"alert","alert-danger","mt-10"]],template:function(i,o){if(1&i){const s=n.RV6();n.j41(0,"div",1)(1,"div",2),n.EFF(2,"Create Customer"),n.k0s(),n.j41(3,"div",3)(4,"form",4,0),n.bIt("ngSubmit",function(){return n.eBV(s),n.Njj(o.onSubmit())}),n.j41(6,"div",5)(7,"div",6)(8,"div",7)(9,"label",8),n.EFF(10,"First Name "),n.j41(11,"span",9),n.EFF(12,"*"),n.k0s()(),n.nrm(13,"input",10),n.DNE(14,hMt,2,0,"small",11),n.k0s()(),n.j41(15,"div",6)(16,"div",7)(17,"label",12),n.EFF(18,"Last Name "),n.j41(19,"span",9),n.EFF(20,"*"),n.k0s()(),n.nrm(21,"input",13),n.DNE(22,fMt,2,0,"small",14),n.k0s()()(),n.j41(23,"div",5)(24,"div",6)(25,"div",7)(26,"label",15),n.EFF(27,"E-mail Address "),n.k0s(),n.j41(28,"span",16),n.DNE(29,mMt,1,0,"i",17),n.nrm(30,"input",18),n.k0s(),n.DNE(31,gMt,2,0,"small",19)(32,vMt,2,0,"small",19)(33,_Mt,2,0,"small",19),n.k0s()(),n.j41(34,"div",6)(35,"div",7)(36,"label",20),n.EFF(37,"Phone Number"),n.k0s(),n.j41(38,"span",16),n.DNE(39,yMt,1,0,"i",17),n.nrm(40,"p-inputMask",21),n.k0s(),n.DNE(41,bMt,2,0,"small",22)(42,CMt,2,0,"small",22)(43,wMt,2,0,"small",23),n.k0s()()(),n.j41(44,"div",5)(45,"div",6)(46,"div",7)(47,"label",24),n.EFF(48,"Postal Code "),n.j41(49,"span",9),n.EFF(50,"*"),n.k0s()(),n.nrm(51,"p-inputMask",25),n.k0s()(),n.j41(52,"div",6)(53,"div",7)(54,"label",26),n.EFF(55,"Preferred Language "),n.j41(56,"span",9),n.EFF(57,"*"),n.k0s()(),n.nrm(58,"language-select",27),n.k0s()()(),n.j41(59,"div",5)(60,"div",6)(61,"div",1)(62,"p",28),n.EFF(63,"Messaging Preference:"),n.k0s(),n.j41(64,"div",29)(65,"label"),n.nrm(66,"input",30),n.EFF(67," Email "),n.k0s()(),n.j41(68,"div",29)(69,"label"),n.nrm(70,"input",31),n.EFF(71," Text (SMS) "),n.k0s()(),n.j41(72,"div",29)(73,"label"),n.nrm(74,"input",32),n.EFF(75," Phone Call "),n.k0s()()()()(),n.j41(76,"div",33)(77,"div",34)(78,"label"),n.EFF(79,"Pantries to Enable"),n.k0s(),n.j41(80,"location-selection-grid",35),n.bIt("onSelectedLocationIDsChanged",function(l){return n.eBV(s),n.Njj(o.setSelectedLocationIDs(l))}),n.k0s()()(),n.j41(81,"div",33)(82,"div",34)(83,"label"),n.EFF(84,"Delivery Programs to Enable"),n.k0s(),n.j41(85,"delivery-programs-grid",36),n.bIt("onSelectedDeliveryProgramIDsChanged",function(l){return n.eBV(s),n.Njj(o.setDeliveryProgramIDs(l))}),n.k0s()()(),n.DNE(86,TMt,4,0,"div",37),n.j41(87,"div",38)(88,"div",34)(89,"button",39),n.bIt("click",function(){return n.eBV(s),n.Njj(o.cancel())}),n.EFF(90," Cancel "),n.k0s(),n.j41(91,"button",40),n.EFF(92," Create "),n.k0s()()(),n.DNE(93,SMt,4,1,"div",41),n.k0s()()()}if(2&i){const s=n.sdS(5);n.R7$(4),n.Y8G("formGroup",o.model),n.R7$(10),n.Y8G("ngIf",(null==o.firstName?null:o.firstName.dirty)&&(null==o.firstName||null==o.firstName.errors?null:o.firstName.errors.required)),n.R7$(8),n.Y8G("ngIf",(null==o.lastName?null:o.lastName.dirty)&&(null==o.lastName?null:o.lastName.invalid)),n.R7$(7),n.Y8G("ngIf",null==o.emailAddress?null:o.emailAddress.pending),n.R7$(2),n.Y8G("ngIf",(null==o.emailAddress?null:o.emailAddress.dirty)&&(null==o.emailAddress||null==o.emailAddress.errors?null:o.emailAddress.errors.required)),n.R7$(),n.Y8G("ngIf",(null==o.emailAddress?null:o.emailAddress.dirty)&&(null==o.emailAddress||null==o.emailAddress.errors?null:o.emailAddress.errors.email)),n.R7$(),n.Y8G("ngIf",(null==o.emailAddress?null:o.emailAddress.dirty)&&(null==o.emailAddress||null==o.emailAddress.errors?null:o.emailAddress.errors.emailExists)),n.R7$(6),n.Y8G("ngIf",o.phoneNumberChecking),n.R7$(2),n.Y8G("ngIf",(null==o.phoneNumber?null:o.phoneNumber.dirty)&&(null==o.phoneNumber||null==o.phoneNumber.errors?null:o.phoneNumber.errors.required)),n.R7$(),n.Y8G("ngIf",o.phoneNumberChecked&&!o.phoneNumberAvailable&&!(null!=o.emailAddress&&o.emailAddress.valid)),n.R7$(),n.Y8G("ngIf",o.phoneNumberChecked&&!o.phoneNumberAvailable&&(null==o.emailAddress?null:o.emailAddress.valid)),n.R7$(43),n.Y8G("ngIf",!(null!=o.emailAddress&&o.emailAddress.value||null!=o.phoneNumber&&o.phoneNumber.value)),n.R7$(5),n.Y8G("disabled",!s.form.valid||o.submittingForm),n.R7$(2),n.Y8G("ngIf",o.errorMessage)}},dependencies:[fi,hf,I8,wv,Cc,Cv,_o,Rm,Tv,Eb,che,dMt,pMt],encapsulation:2})}}return t})();function EMt(t,r){1&t&&(n.j41(0,"div",6),n.nrm(1,"p-progressSpinner"),n.j41(2,"span"),n.EFF(3,"Loading Customer"),n.k0s()())}function DMt(t,r){1&t&&(n.j41(0,"div",7)(1,"span"),n.EFF(2,"This customer is not able to be disabled because they have placed orders with multiple organizations. Please contact support to have this customer disabled."),n.k0s()())}function kMt(t,r){if(1&t&&(n.j41(0,"div")(1,"div",8),n.EFF(2),n.k0s()()),2&t){const e=n.XpG(2);n.R7$(2),n.SpI(" ",e.errorMessage," ")}}function IMt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div")(1,"p"),n.nrm(2,"i",9),n.EFF(3," This action will prevent "),n.j41(4,"strong"),n.EFF(5),n.k0s(),n.EFF(6),n.j41(7,"strong"),n.EFF(8,"All outstanding orders will be cancelled."),n.k0s(),n.EFF(9," Please consider removing their access to a specific location or delivery program instead. "),n.k0s(),n.j41(10,"textarea",10),n.mxI("ngModelChange",function(o){n.eBV(e);const s=n.XpG(2);return n.DH7(s.reason,o)||(s.reason=o),n.Njj(o)}),n.k0s(),n.j41(11,"div",11)(12,"span",12),n.EFF(13),n.k0s()(),n.j41(14,"small",13),n.EFF(15,"An entry in the audit log will be added for this action."),n.k0s()()}if(2&t){const e=n.XpG(2);n.R7$(5),n.Lme("",e.neighbor.FirstName," ",e.neighbor.LastName,""),n.R7$(),n.SpI(" (",e.neighbor.EMailAddress,") from placing any future orders anywhere on the platform and cannot be undone. "),n.R7$(4),n.R50("ngModel",e.reason),n.Y8G("disabled",e.submitting),n.R7$(3),n.SpI("(",e.reason.length,"/500)")}}function AMt(t,r){if(1&t&&n.DNE(0,EMt,4,0,"div",3)(1,DMt,3,0,"div",4)(2,kMt,3,1,"div",5)(3,IMt,16,6,"div",5),2&t){const e=n.XpG();n.Y8G("ngIf",e.isLoading),n.R7$(),n.Y8G("ngIf",e.isLoaded&&!e.isAbleToRestrictOrdering),n.R7$(),n.Y8G("ngIf",e.errorMessage),n.R7$(),n.Y8G("ngIf",e.neighbor&&e.isAbleToRestrictOrdering)}}function MMt(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",16),n.bIt("click",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.disableCustomer())}),n.EFF(1),n.k0s()}if(2&t){const e=n.XpG(2);n.Y8G("disabled",!e.reason||e.submitting),n.R7$(),n.SpI(" ",e.submitting?"Disabling Customer...":"Disable Customer"," ")}}function RMt(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",14),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onModalClosed())}),n.EFF(1,"Cancel"),n.k0s(),n.DNE(2,MMt,2,2,"button",15)}if(2&t){const e=n.XpG();n.R7$(2),n.Y8G("ngIf",e.isAbleToRestrictOrdering)}}let OMt=(()=>{class t{constructor(e){this.customersService=e,this.isOpen=!1,this.neighbor=null,this.modalClosed=new n.bkB,this.isAbleToRestrictOrdering=!1,this.errorMessage="",this.isLoading=!1,this.isLoaded=!1,this.reason="",this.submitting=!1}disableCustomer(){var e=this;return(0,lr.A)(function*(){if(e.errorMessage="",e.neighbor){e.submitting=!0;try{let i=yield e.customersService.restrictCustomerFromOrdering({ID:e.neighbor.ID,Reason:e.reason});i.Successful?e.modalClosed.emit(!0):e.errorMessage=i.FailureReason}catch{e.errorMessage="An unexpected error occurred, please try again later"}finally{e.submitting=!1}}else e.errorMessage="Unable to disable customer"})()}onModalClosed(){this.modalClosed.emit(!1)}ngOnInit(){this.neighbor?(this.isLoading=!0,this.customersService.getCustomerIsExclusiveToCurrentOrg(this.neighbor.ID).then(e=>{e.Successful?(this.isAbleToRestrictOrdering=!0===e.Value,this.isLoaded=!0):this.errorMessage=e.FailureReason}).finally(()=>{this.isLoading=!1})):this.errorMessage="Unable to determine selected neighbor"}static{this.\u0275fac=function(i){return new(i||t)(n.rXU($X))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["orderahead-restrict-customer-modal"]],inputs:{isOpen:"isOpen",neighbor:"neighbor"},outputs:{modalClosed:"modalClosed"},standalone:!1,decls:5,vars:3,consts:[["body",""],["footer",""],["title","Restrict Customer From Ordering",3,"modalClosed","bodyTemplate","footerTemplate","isOpen"],["class","display-flex flex-col justify-center items-center",4,"ngIf"],["class","alert alert-warning",4,"ngIf"],[4,"ngIf"],[1,"display-flex","flex-col","justify-center","items-center"],[1,"alert","alert-warning"],[1,"alert","alert-danger"],[1,"pi","pi-exclamation-triangle","text-warning"],["name","reason","rows","3","maxlength","500","placeholder","Reason to disable this customer",1,"form-control","mt-5",3,"ngModelChange","ngModel","disabled"],[1,"display-flex","justify-end"],[1,"text-muted",2,"font-size","12px"],[1,"mt-5"],[1,"btn","btn-default",3,"click"],["class","btn btn-primary",3,"disabled","click",4,"ngIf"],[1,"btn","btn-primary",3,"click","disabled"]],template:function(i,o){if(1&i){const s=n.RV6();n.j41(0,"modal",2),n.bIt("modalClosed",function(){return n.eBV(s),n.Njj(o.onModalClosed())}),n.k0s(),n.DNE(1,AMt,4,4,"ng-template",null,0,n.C5r)(3,RMt,3,1,"ng-template",null,1,n.C5r)}if(2&i){const s=n.sdS(2),a=n.sdS(4);n.Y8G("bodyTemplate",s)("footerTemplate",a)("isOpen",o.isOpen)}},dependencies:[fi,Cc,_o,sk,ko,E2,Q_],styles:["*[_ngcontent-%COMP%]{font-size:18px}small[_ngcontent-%COMP%]{font-size:14px}"]})}}return t})(),FMt=(()=>{class t{constructor(e){this.http=e}getDistributionPoints(e){const i=e?{params:(new Mp).set("agencyID",e)}:{};return this.http.get("/api/orderahead/dashboard/distributionpoints",i).pipe((0,Os.T)(s=>s))}getUpcomingOrders(e,i,o){let s=this.getHttpParams(e,i,o);return this.http.get("/api/orderahead/dashboard/upcomingorders",{params:s}).pipe((0,Os.T)(l=>l))}getHistoricalOrders(e,i,o,s){let a=this.getHttpParams(i,o,s);return a=a.set("timeframe",e),this.http.get("/api/orderahead/dashboard/historicalorders",{params:a}).pipe((0,Os.T)(c=>c))}getCommonlyOrderedItems(e,i,o,s){let a=this.getHttpParams(i,o,s);return a=a.set("timeframe",e),this.http.get("/api/orderahead/dashboard/commonlyordereditems",{params:a}).pipe((0,Os.T)(c=>c))}getOrdersPerDistributionPoint(e,i,o,s){let a=this.getHttpParams(i,o,s);return a=a.set("timeframe",e),this.http.get("/api/orderahead/dashboard/ordersperdistributionpoint",{params:a}).pipe((0,Os.T)(c=>c))}getHttpParams(e,i,o){let s=new Mp;return e&&(s=s.set("agencyID",e)),i&&(s=s.set("locationID",i.toString())),o&&(s=s.set("deliveryProgramID",o)),s}static{this.\u0275fac=function(i){return new(i||t)(n.KVO(Da))}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),YX=(()=>{class t{constructor(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["tefap-icon"]],standalone:!1,decls:3,vars:0,consts:[["title","TEFAP"],["xmlns","http://www.w3.org/2000/svg","width","16","height","16","fill","currentColor","viewBox","0 0 16 16"],["d","M12.258 3h-8.51l-.083 2.46h.479c.26-1.544.758-1.783 2.693-1.845l.424-.013v7.827c0 .663-.144.82-1.3.923v.52h4.082v-.52c-1.162-.103-1.306-.26-1.306-.923V3.602l.431.013c1.934.062 2.434.301 2.693 1.846h.479L12.258 3z"]],template:function(i,o){1&i&&(n.j41(0,"span",0),n.qSk(),n.j41(1,"svg",1),n.nrm(2,"path",2),n.k0s()())},encapsulation:2})}}return t})();function PMt(t,r){if(1&t&&(n.j41(0,"option",24),n.EFF(1),n.k0s()),2&t){const e=r.$implicit;n.Y8G("value",e.UniqueID),n.R7$(),n.SpI(" ",e.Name," ")}}function LMt(t,r){if(1&t&&(n.j41(0,"optgroup",22),n.DNE(1,PMt,2,2,"option",23),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngForOf",e.pickupLocations)}}function NMt(t,r){if(1&t&&(n.j41(0,"option",24),n.EFF(1),n.k0s()),2&t){const e=r.$implicit;n.Y8G("value",e.UniqueID),n.R7$(),n.SpI(" ",e.Name," ")}}function GMt(t,r){if(1&t&&(n.j41(0,"optgroup",25),n.DNE(1,NMt,2,2,"option",23),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngForOf",e.deliveryPrograms)}}function BMt(t,r){if(1&t&&(n.j41(0,"th",30),n.EFF(1),n.nI1(2,"date"),n.k0s()),2&t){const e=r.$implicit;n.R7$(),n.SpI(" ",n.i5U(2,1,e.Date,"EEE M/d")," ")}}function VMt(t,r){if(1&t&&(n.j41(0,"td",31)(1,"span",32),n.EFF(2),n.nI1(3,"number"),n.k0s(),n.j41(4,"span",33),n.EFF(5),n.k0s()()),2&t){const e=r.$implicit;n.R7$(2),n.SpI(" ",n.bMT(3,2,e.OrderCount)," "),n.R7$(3),n.SpI(" / ",e.MaxOrderCount||"No Max"," ")}}function jMt(t,r){if(1&t&&(n.j41(0,"table",26)(1,"thead")(2,"tr"),n.nrm(3,"th"),n.DNE(4,BMt,3,4,"th",27),n.k0s()(),n.j41(5,"tbody")(6,"tr")(7,"td",28),n.EFF(8," Orders Placed / Maximum "),n.k0s(),n.DNE(9,VMt,6,4,"td",29),n.k0s()()()),2&t){const e=n.XpG();n.R7$(4),n.Y8G("ngForOf",e.upcomingOrders),n.R7$(5),n.Y8G("ngForOf",e.upcomingOrders)}}function HMt(t,r){1&t&&(n.j41(0,"div")(1,"span",34),n.EFF(2,"No Upcoming Orders"),n.k0s()())}function UMt(t,r){1&t&&(n.j41(0,"div")(1,"span",34),n.EFF(2,"Upcoming Orders Loading..."),n.k0s()())}function $Mt(t,r){1&t&&(n.j41(0,"div")(1,"span",35),n.EFF(2,"An error occurred"),n.k0s()())}function YMt(t,r){if(1&t&&(n.j41(0,"span",36),n.EFF(1),n.nI1(2,"number"),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.JRh(n.i5U(2,1,e.historicalOrderCount,"1.0-0"))}}function WMt(t,r){1&t&&(n.j41(0,"span",36),n.EFF(1,"Loading..."),n.k0s())}function zMt(t,r){if(1&t&&(n.j41(0,"div",7),n.nrm(1,"p-chart",37),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.Y8G("data",e.chartData)("options",e.chartOptions)}}function qMt(t,r){1&t&&(n.j41(0,"div")(1,"span",35),n.EFF(2,"An error occurred"),n.k0s()())}function XMt(t,r){1&t&&(n.j41(0,"tr",41)(1,"td"),n.nrm(2,"div",42),n.k0s(),n.j41(3,"td"),n.nrm(4,"div",42),n.k0s()())}function KMt(t,r){if(1&t&&(n.j41(0,"tbody"),n.DNE(1,XMt,5,0,"tr",40),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngForOf",e.commonlyOrderedItemsCount)}}function QMt(t,r){1&t&&n.nrm(0,"tefap-icon")}function JMt(t,r){if(1&t&&(n.j41(0,"tr")(1,"td",44),n.EFF(2),n.DNE(3,QMt,1,0,"tefap-icon",9),n.k0s(),n.j41(4,"td"),n.EFF(5),n.nI1(6,"number"),n.nI1(7,"number"),n.k0s()()),2&t){const e=r.$implicit;n.R7$(),n.Y8G("title",e.Description),n.R7$(),n.JRh(e.Name),n.R7$(),n.Y8G("ngIf",e.IsTEFAP),n.R7$(2),n.Lme(" ",n.bMT(6,5,e.TotalOrders)," / ",n.bMT(7,7,e.TotalItems)," ")}}function ZMt(t,r){if(1&t&&(n.j41(0,"tbody"),n.DNE(1,JMt,8,9,"tr",43),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngForOf",e.commonlyOrderedItems)}}function eRt(t,r){if(1&t&&(n.j41(0,"div",38)(1,"table",39)(2,"thead")(3,"tr")(4,"th"),n.EFF(5,"Item"),n.k0s(),n.j41(6,"th"),n.EFF(7,"Orders / Item Count"),n.k0s()()(),n.DNE(8,KMt,2,1,"tbody",9)(9,ZMt,2,1,"tbody",9),n.k0s()()),2&t){const e=n.XpG();n.R7$(8),n.Y8G("ngIf",e.commonlyOrderedItemsLoading),n.R7$(),n.Y8G("ngIf",!e.commonlyOrderedItemsLoading)}}function tRt(t,r){1&t&&(n.j41(0,"div")(1,"span",35),n.EFF(2,"An error occurred"),n.k0s()())}function nRt(t,r){1&t&&(n.j41(0,"tr",41)(1,"td"),n.nrm(2,"div",42),n.k0s(),n.j41(3,"td"),n.nrm(4,"div",42),n.k0s(),n.j41(5,"td"),n.nrm(6,"div",42),n.k0s()())}function iRt(t,r){if(1&t&&(n.j41(0,"tbody"),n.DNE(1,nRt,7,0,"tr",40),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngForOf",e.distributionPoints)}}function rRt(t,r){if(1&t&&(n.j41(0,"tr")(1,"td"),n.EFF(2),n.k0s(),n.j41(3,"td"),n.EFF(4),n.nI1(5,"number"),n.k0s(),n.j41(6,"td"),n.EFF(7),n.nI1(8,"number"),n.k0s()()),2&t){const e=r.$implicit;n.R7$(2),n.JRh(e.DistributionPoint),n.R7$(2),n.JRh(n.bMT(5,3,e.OrdersCount)),n.R7$(3),n.JRh(n.bMT(8,5,e.TotalOrdersCount))}}function oRt(t,r){if(1&t&&(n.j41(0,"tbody"),n.DNE(1,rRt,9,7,"tr",43),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngForOf",e.ordersPerDistributionPoint)}}function sRt(t,r){if(1&t&&(n.j41(0,"div",38)(1,"table",39)(2,"thead")(3,"tr")(4,"th"),n.EFF(5,"Distribution Point"),n.k0s(),n.j41(6,"th"),n.EFF(7),n.k0s(),n.j41(8,"th"),n.EFF(9,"Total"),n.k0s()()(),n.DNE(10,iRt,2,1,"tbody",9)(11,oRt,2,1,"tbody",9),n.k0s()()),2&t){const e=n.XpG();n.R7$(7),n.SpI(" In ","1month"===e.ordersPerDistributionPointDaysBack?"Last Month":"6months"===e.ordersPerDistributionPointDaysBack?"Last 6 Months":"Last Year"," "),n.R7$(3),n.Y8G("ngIf",e.ordersPerDistributionPointLoading),n.R7$(),n.Y8G("ngIf",!e.ordersPerDistributionPointLoading)}}function aRt(t,r){1&t&&(n.j41(0,"div")(1,"span",35),n.EFF(2,"An error occurred"),n.k0s()())}let lRt=(()=>{class t{constructor(e){this.dashboardService=e,this.agencyId=void 0,this.distributionPoints=[],this.distributionPointsLoading=!1,this.distributionPointsLoadError=!1,this.selectedDistributionPoint=null,this.pickupLocations=[],this.deliveryPrograms=[],this.upcomingOrders=[],this.upcomingOrdersLoading=!1,this.upcomingOrdersLoadError=!1,this.historicalOrdersDaysBack="1month",this.historicalOrders=[],this.historicalOrderCount=0,this.historicalOrderPounds=0,this.historicalOrdersLoading=!1,this.historicalOrdersLoadError=!1,this.commonlyOrderedItemsDaysBack="1month",this.commonlyOrderedItems=[],this.commonlyOrderedItemsCount=[1,2,3,4,5,6,7,8,9,10],this.commonlyOrderedItemsLoading=!1,this.commonlyOrderedItemsLoadError=!1,this.ordersPerDistributionPointDaysBack="1month",this.ordersPerDistributionPoint=[],this.ordersPerDistributionPointLoading=!1,this.ordersPerDistributionPointLoadError=!1}onDistributionPointChange(e){e.target.value?(this.selectedDistributionPoint=this.distributionPoints.find(i=>i.UniqueID===e.target.value)??null,this.loadData()):this.selectedDistributionPoint=null}onHistoricalOrdersChange(e){this.historicalOrdersDaysBack=e.target.value?e.target.value:"1month";const i=this.getSelectedPantryLocationID(),o=this.getSelectedDeliveryProgramID();this.loadHistoricalOrders(i,o)}onCommonlyOrderedItemsChange(e){this.commonlyOrderedItemsDaysBack=e.target.value?e.target.value:"1month";const i=this.getSelectedPantryLocationID(),o=this.getSelectedDeliveryProgramID();this.loadCommonlyOrderedItems(i,o)}onOrdersPerDistributionPointChange(e){this.ordersPerDistributionPointDaysBack=e.target.value?e.target.value:"1month";const i=this.getSelectedPantryLocationID(),o=this.getSelectedDeliveryProgramID();this.loadOrdersPerDistributionPoint(i,o)}loadDistributionPoints(){this.distributionPoints=[],this.distributionPointsLoading=!0,this.distributionPointsLoadError=!1,this.dashboardService.getDistributionPoints(this.agencyId).subscribe(e=>{this.distributionPoints=e,this.pickupLocations=this.distributionPoints.filter(i=>"PICKUP"===i.Type),this.deliveryPrograms=this.distributionPoints.filter(i=>"DELIVERY"===i.Type)},()=>{this.distributionPointsLoading=!1,this.distributionPointsLoadError=!0})}loadData(){const e=this.getSelectedPantryLocationID(),i=this.getSelectedDeliveryProgramID();this.loadUpcomingOrders(e,i),this.loadHistoricalOrders(e,i),this.loadCommonlyOrderedItems(e,i),this.loadOrdersPerDistributionPoint(e,i)}loadUpcomingOrders(e,i){this.upcomingOrdersLoading=!0,this.upcomingOrdersLoadError=!1,this.dashboardService.getUpcomingOrders(this.agencyId,e,i).subscribe(o=>{this.upcomingOrders=o,this.upcomingOrdersLoading=!1},()=>{this.upcomingOrdersLoading=!1,this.upcomingOrdersLoadError=!0})}loadHistoricalOrders(e,i){this.historicalOrdersLoading=!0,this.historicalOrdersLoadError=!1,this.dashboardService.getHistoricalOrders(this.historicalOrdersDaysBack,this.agencyId,e,i).subscribe(o=>{this.historicalOrders=o.reverse(),this.historicalOrderCount=o.reduce((a,l)=>a+l.CancelledOrdersCount+l.IncompleteOrdersCount+l.CompletedCount,0);const s="1month"==this.historicalOrdersDaysBack?"M/D":"M/YYYY";this.chartData.labels=this.historicalOrders.map(a=>el()(a.Date).format(s)),this.chartData.datasets=[{type:"bar",label:"Cancelled",backgroundColor:"#b94a48",data:this.historicalOrders.map(a=>a.CancelledOrdersCount)},{type:"bar",label:"Incomplete",backgroundColor:"#c09853",data:this.historicalOrders.map(a=>a.IncompleteOrdersCount)},{type:"bar",label:"Complete",backgroundColor:"#468847",data:this.historicalOrders.map(a=>a.CompletedCount)}],this.chartData={...this.chartData},this.historicalOrdersLoading=!1},()=>{this.historicalOrdersLoading=!1,this.historicalOrdersLoadError=!0})}loadCommonlyOrderedItems(e,i){this.commonlyOrderedItemsLoading=!0,this.commonlyOrderedItemsLoadError=!1,this.commonlyOrderedItems=[],this.dashboardService.getCommonlyOrderedItems(this.commonlyOrderedItemsDaysBack,this.agencyId,e,i).subscribe(o=>{this.commonlyOrderedItems=o,this.commonlyOrderedItemsLoading=!1},()=>{this.commonlyOrderedItemsLoading=!1,this.commonlyOrderedItemsLoadError=!0})}loadOrdersPerDistributionPoint(e,i){this.ordersPerDistributionPointLoading=!0,this.ordersPerDistributionPointLoadError=!1,this.ordersPerDistributionPoint=[],this.dashboardService.getOrdersPerDistributionPoint(this.ordersPerDistributionPointDaysBack,this.agencyId,e,i).subscribe(o=>{this.ordersPerDistributionPoint=o,this.ordersPerDistributionPointLoading=!1},()=>{this.ordersPerDistributionPointLoading=!1,this.ordersPerDistributionPointLoadError=!0})}getSelectedPantryLocationID(){if(this.selectedDistributionPoint&&"PICKUP"===this.selectedDistributionPoint.Type)return this.selectedDistributionPoint.ID}getSelectedDeliveryProgramID(){if(this.selectedDistributionPoint&&"DELIVERY"===this.selectedDistributionPoint.Type)return this.selectedDistributionPoint.ID}ngOnChanges(e){this.selectedDistributionPoint=null,this.loadData(),this.loadDistributionPoints()}ngOnInit(){this.loadDistributionPoints(),this.chartData={labels:[],datasets:[]},this.chartOptions={maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},stacked:!1,plugins:{tooltip:{callbacks:{footer:e=>{let i=0;return e.forEach(o=>{i+=o.parsed.y}),`Total: ${i}`}}}},scales:{x:{stacked:!0,ticks:{color:"#000000"},grid:{color:"#000000",drawBorder:!1}},y:{stacked:!0,ticks:{color:"#000000"},grid:{color:"#000000",drawBorder:!1}}}}}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(FMt))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["order-ahead-dashboard"]],inputs:{agencyId:"agencyId"},standalone:!1,features:[n.OA$],decls:61,vars:18,consts:[[1,"tw-container"],[1,"tw-flex","tw-justify-end"],[1,"tw-w-auto","form-control",3,"change","disabled"],["label","Pickup Location",4,"ngIf"],["label","Delivery Program",4,"ngIf"],[1,"tw-mt-8","tw-bg-white","tw-shadow","tw-p-10"],[1,"tw-m-0","tw-flex-shrink-0","tw-flex-nowrap"],[1,"tw-mt-8"],["class","table",4,"ngIf"],[4,"ngIf"],[1,"-tw-ml-8","tw-flex","tw-flex-col","md:tw-flex-row"],[1,"tw-ml-8","tw-mt-8","tw-bg-white","tw-shadow","tw-p-10","lg:tw-w-1/2"],[1,"tw-flex","tw-justify-between","tw-items-center","tw-space-x-2"],["value","1month"],["value","6months"],["value","12months"],[1,"tw-mt-8","tw-flex","tw-justify-center","tw-space-x-8"],[1,"tw-text-center","tw-flex","tw-flex-col"],["class","tw-text-xl md:tw-text-3xl",4,"ngIf"],[1,"tw-uppercase","tw-text-gray-400"],["class","tw-mt-8",4,"ngIf"],["class","tw-mt-8 table-responsive",4,"ngIf"],["label","Pickup Location"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["label","Delivery Program"],[1,"table"],["class","text-center tw-text-gray-500",4,"ngFor","ngForOf"],[1,"tw-font-bold","tw-align-bottom"],["class","text-center",4,"ngFor","ngForOf"],[1,"text-center","tw-text-gray-500"],[1,"text-center"],["title","Number of Orders Placed",1,"tw-text-3xl"],["title","Maximum Orders Allowed",1,"tw-gray-500"],[1,"tw-text-3xl"],[1,"tw-text-2xl","text-danger"],[1,"tw-text-xl","md:tw-text-3xl"],["type","bar","height","300",3,"data","options"],[1,"tw-mt-8","table-responsive"],[1,"table","table-striped"],["class","tw-animate-pulse",4,"ngFor","ngForOf"],[1,"tw-animate-pulse"],[1,"tw-h-5","tw-bg-gray-200","tw-rounded"],[4,"ngFor","ngForOf"],[3,"title"]],template:function(i,o){1&i&&(n.j41(0,"div",0)(1,"div",1)(2,"select",2),n.bIt("change",function(a){return o.onDistributionPointChange(a)}),n.j41(3,"option"),n.EFF(4,"All Locations"),n.k0s(),n.DNE(5,LMt,2,1,"optgroup",3)(6,GMt,2,1,"optgroup",4),n.k0s()(),n.j41(7,"div",5)(8,"h3",6),n.EFF(9,"Upcoming Orders"),n.k0s(),n.j41(10,"div",7),n.DNE(11,jMt,10,2,"table",8)(12,HMt,3,0,"div",9)(13,UMt,3,0,"div",9)(14,$Mt,3,0,"div",9),n.k0s()(),n.j41(15,"div",10)(16,"div",11)(17,"div",12)(18,"h3",6),n.EFF(19," Historical Orders "),n.k0s(),n.j41(20,"select",2),n.bIt("change",function(a){return o.onHistoricalOrdersChange(a)}),n.j41(21,"option",13),n.EFF(22,"Last 30 Days"),n.k0s(),n.j41(23,"option",14),n.EFF(24,"Last 6 Months"),n.k0s(),n.j41(25,"option",15),n.EFF(26,"Last Year"),n.k0s()()(),n.j41(27,"div",16)(28,"div",17),n.DNE(29,YMt,3,4,"span",18)(30,WMt,2,0,"span",18),n.j41(31,"span",19),n.EFF(32," Orders "),n.k0s()()(),n.DNE(33,zMt,2,2,"div",20)(34,qMt,3,0,"div",9),n.k0s(),n.j41(35,"div",11)(36,"div",12)(37,"h3",6),n.EFF(38," Commonly Ordered Items "),n.k0s(),n.j41(39,"select",2),n.bIt("change",function(a){return o.onCommonlyOrderedItemsChange(a)}),n.j41(40,"option",13),n.EFF(41,"Last 30 Days"),n.k0s(),n.j41(42,"option",14),n.EFF(43,"Last 6 Months"),n.k0s(),n.j41(44,"option",15),n.EFF(45,"Last Year"),n.k0s()()(),n.DNE(46,eRt,10,2,"div",21)(47,tRt,3,0,"div",9),n.k0s()(),n.j41(48,"div",5)(49,"div",12)(50,"h3",6),n.EFF(51," Orders Per Distribution Point "),n.k0s(),n.j41(52,"select",2),n.bIt("change",function(a){return o.onOrdersPerDistributionPointChange(a)}),n.j41(53,"option",13),n.EFF(54,"Last 30 Days"),n.k0s(),n.j41(55,"option",14),n.EFF(56,"Last 6 Months"),n.k0s(),n.j41(57,"option",15),n.EFF(58,"Last Year"),n.k0s()()(),n.DNE(59,sRt,12,3,"div",21)(60,aRt,3,0,"div",9),n.k0s()()),2&i&&(n.R7$(2),n.Y8G("disabled",o.upcomingOrdersLoading||o.historicalOrdersLoading||o.commonlyOrderedItemsLoading||o.ordersPerDistributionPointLoading),n.R7$(3),n.Y8G("ngIf",o.pickupLocations.length),n.R7$(),n.Y8G("ngIf",o.deliveryPrograms.length),n.R7$(5),n.Y8G("ngIf",!o.upcomingOrdersLoading&&o.upcomingOrders.length),n.R7$(),n.Y8G("ngIf",!o.upcomingOrdersLoading&&0===o.upcomingOrders.length&&!o.upcomingOrdersLoadError),n.R7$(),n.Y8G("ngIf",o.upcomingOrdersLoading),n.R7$(),n.Y8G("ngIf",o.upcomingOrdersLoadError),n.R7$(6),n.Y8G("disabled",o.historicalOrdersLoading),n.R7$(9),n.Y8G("ngIf",!o.historicalOrdersLoading),n.R7$(),n.Y8G("ngIf",o.historicalOrdersLoading),n.R7$(3),n.Y8G("ngIf",!o.historicalOrdersLoadError),n.R7$(),n.Y8G("ngIf",o.historicalOrdersLoadError),n.R7$(5),n.Y8G("disabled",o.commonlyOrderedItemsLoading),n.R7$(7),n.Y8G("ngIf",!o.commonlyOrderedItemsLoadError),n.R7$(),n.Y8G("ngIf",o.commonlyOrderedItemsLoadError),n.R7$(5),n.Y8G("disabled",o.ordersPerDistributionPointLoading),n.R7$(7),n.Y8G("ngIf",!o.ordersPerDistributionPointLoadError),n.R7$(),n.Y8G("ngIf",o.ordersPerDistributionPointLoadError))},dependencies:[oo,fi,Fue,Sy,xy,YX,as,ti],encapsulation:2})}}return t})(),uhe=(()=>{class t{constructor(e){this.http=e}getNeighborProfileFields(e){var i=this;return(0,lr.A)(function*(){return yield Yo(i.http.get(`/api/orderahead/location/${e}/neighborProfileFields`))})()}postNeighborProfileConfig(e,i){var o=this;return(0,lr.A)(function*(){return yield Yo(o.http.post(`/api/orderahead/location/${e}/neighborProfileFields`,i))})()}getNeighborProfileDeliveryFields(e){var i=this;return(0,lr.A)(function*(){return yield Yo(i.http.get(`/api/deliveryprograms/${e}/neighborProfileFields`))})()}postNeighborProfileDeliveryConfig(e,i){var o=this;return(0,lr.A)(function*(){return yield Yo(o.http.post(`/api/deliveryprograms/${e}/neighborProfileFields`,i))})()}static{this.\u0275fac=function(i){return new(i||t)(n.KVO(Da))}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function cRt(t,r){if(1&t&&(n.j41(0,"option",4),n.EFF(1),n.k0s()),2&t){const e=r.$implicit;n.Y8G("value",e.trim()),n.R7$(),n.SpI(" ",e.trim()," ")}}function uRt(t,r){if(1&t&&(n.j41(0,"div")(1,"label",1),n.EFF(2),n.k0s(),n.j41(3,"select",2),n.DNE(4,cRt,2,2,"option",3),n.k0s()()),2&t){const e=n.XpG();n.R7$(),n.FS9("for",e.field.Name),n.R7$(),n.JRh(e.field.DisplayName),n.R7$(),n.FS9("id",e.field.Name),n.R7$(),n.Y8G("ngForOf",e.singleSelectOptions)}}function dRt(t,r){if(1&t){const e=n.RV6();n.qex(0),n.j41(1,"input",8),n.mxI("ngModelChange",function(o){const s=n.eBV(e).ngIf,a=n.XpG(3);return n.DH7(a.selectedMultiOptions[s],o)||(a.selectedMultiOptions[s]=o),n.Njj(o)}),n.k0s(),n.j41(2,"label",1),n.EFF(3),n.k0s(),n.bVm()}if(2&t){const e=r.ngIf,i=n.XpG(3);n.R7$(),n.Y8G("id",i.field.Name+"-"+e)("value",e),n.R50("ngModel",i.selectedMultiOptions[e]),n.R7$(),n.Y8G("for",i.field.Name+"-"+e),n.R7$(),n.JRh(e)}}function pRt(t,r){if(1&t&&(n.j41(0,"div",7),n.DNE(1,dRt,4,5,"ng-container",0),n.k0s()),2&t){const e=r.$implicit;n.R7$(),n.Y8G("ngIf",e)}}function hRt(t,r){if(1&t&&(n.j41(0,"div")(1,"label",1),n.EFF(2),n.k0s(),n.j41(3,"div",5),n.DNE(4,pRt,2,1,"div",6),n.k0s()()),2&t){const e=n.XpG();n.R7$(),n.Y8G("for",e.field.Name),n.R7$(),n.JRh(e.field.DisplayName),n.R7$(2),n.Y8G("ngForOf",e.multiSelectOptions)}}let dhe=(()=>{class t{constructor(){this.singleSelectOptions=[],this.multiSelectOptions=[],this.selectedMultiOptions={}}ngOnInit(){const e=this.field.Options?.map(i=>i.ShowTranslatedValue?i.ValueTranslated:i.Value)||[];"multi-select"===this.field.InputType&&(this.multiSelectOptions=e,this.multiSelectOptions.forEach(i=>{this.selectedMultiOptions[i]=!1})),"single-select"===this.field.InputType&&(this.singleSelectOptions=e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["field-preview"]],inputs:{field:"field"},standalone:!1,decls:2,vars:2,consts:[[4,"ngIf"],[3,"for"],[3,"id"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"multi-select-container"],["class","multi-select-item",4,"ngFor","ngForOf"],[1,"multi-select-item"],["type","checkbox",3,"ngModelChange","id","value","ngModel"]],template:function(i,o){1&i&&n.DNE(0,uRt,5,4,"div",0)(1,hRt,5,3,"div",0),2&i&&(n.Y8G("ngIf","single-select"===o.field.InputType),n.R7$(),n.Y8G("ngIf","multi-select"===o.field.InputType))},dependencies:[oo,fi,Sy,xy,Cv,_o,ko],styles:["[_nghost-%COMP%]{display:block;margin:1rem auto;max-width:600px;padding:1rem;font-family:Arial,sans-serif;color:#333;box-sizing:border-box}label[_ngcontent-%COMP%]{display:block;margin-bottom:.5rem;font-size:1rem;word-wrap:break-word}select[_ngcontent-%COMP%]{width:100%;max-width:100%;padding:.5rem;border:1px solid #ccc;border-radius:4px;font-size:1rem;background-color:#fff;margin-bottom:1rem;transition:border-color .2s ease-in-out;word-wrap:break-word}select[_ngcontent-%COMP%]:focus{border-color:#007bff;outline:none}.multi-select-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.multi-select-item[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]{margin:0;vertical-align:middle}.multi-select-item[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{margin:0;line-height:1.4;font-size:1rem}"]})}}return t})();const _P=t=>({disabled:t}),fRt=t=>({"tw-flex tw-items-center tw-justify-between":!0,"tw-mb-4":t}),WX=t=>({"tw-hidden":t}),mRt=t=>({group:t}),zX=t=>({field:t});function gRt(t,r){if(1&t&&(n.j41(0,"div"),n.nrm(1,"span",15),n.nI1(2,"highlight"),n.k0s()),2&t){const e=r.$implicit,i=r.searchText;n.R7$(),n.Y8G("innerHtml",n.i5U(2,1,e.Name,i),n.npT)}}function vRt(t,r){if(1&t&&(n.j41(0,"div")(1,"span"),n.EFF(2),n.k0s()()),2&t){const e=r.$implicit;n.R7$(2),n.JRh(e.Name)}}function _Rt(t,r){1&t&&(n.j41(0,"div",16),n.nrm(1,"loading",17),n.k0s())}function yRt(t,r){1&t&&(n.j41(0,"span",33),n.EFF(1," * "),n.j41(2,"span",34),n.EFF(3,"Required by Feeding America"),n.k0s()())}function bRt(t,r){if(1&t){const e=n.RV6();n.j41(0,"span",35),n.bIt("click",function(o){n.eBV(e),n.XpG();const s=n.sdS(7);return n.Njj(s.toggle(o))}),n.nrm(1,"i",36),n.k0s()}}function CRt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",24)(1,"div",25)(2,"span",26),n.EFF(3),n.DNE(4,yRt,4,0,"span",27),n.k0s(),n.DNE(5,bRt,2,0,"span",28),n.j41(6,"p-popover",null,7),n.nrm(8,"field-preview",29),n.k0s()(),n.j41(9,"label",30)(10,"input",31),n.bIt("click",function(o){n.eBV(e);const s=n.XpG().field;return n.Njj(s.IsConfigurable?null:o.preventDefault())}),n.k0s(),n.nrm(11,"span",32),n.k0s()()}if(2&t){const e=n.XpG().field,i=n.XpG(2);n.R7$(3),n.SpI(" ",i.formatFieldName(e.Name)," "),n.R7$(),n.Y8G("ngIf",!e.IsConfigurable),n.R7$(),n.Y8G("ngIf",i.popoverInputFieldNames.includes(e.Name)),n.R7$(3),n.Y8G("field",e),n.R7$(),n.Y8G("for","np-"+e.Name),n.R7$(),n.Y8G("formControlName","np-"+e.Name)("id","np-"+e.Name),n.R7$(),n.Y8G("ngClass",n.eq3(8,_P,!e.IsConfigurable))}}function wRt(t,r){if(1&t&&n.DNE(0,CRt,12,10,"div",23),2&t){const e=r.field,i=n.XpG(2);n.Y8G("ngIf","no_fixed_address"!==e.Name||i.showNoFixedAddress)}}function TRt(t,r){1&t&&(n.j41(0,"span",33),n.EFF(1," * "),n.j41(2,"span",34),n.EFF(3,"Required by Feeding America"),n.k0s()())}function SRt(t,r){if(1&t){const e=n.RV6();n.j41(0,"span",35),n.bIt("click",function(o){n.eBV(e),n.XpG();const s=n.sdS(7);return n.Njj(s.toggle(o))}),n.nrm(1,"i",36),n.k0s()}}function xRt(t,r){if(1&t&&(n.j41(0,"div",40)(1,"div",41)(2,"span",42),n.EFF(3,"\u221f"),n.k0s(),n.nrm(4,"input",43),n.j41(5,"span",44),n.EFF(6,"Make Optional?"),n.k0s()()()),2&t){const e=n.XpG().field;n.R7$(4),n.Y8G("formControlName","np-optional-"+e.Name)}}function ERt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",37)(1,"div",25)(2,"span",26),n.EFF(3),n.DNE(4,TRt,4,0,"span",27),n.k0s(),n.DNE(5,SRt,2,0,"span",28),n.j41(6,"p-popover",null,7),n.nrm(8,"field-preview",29),n.k0s()(),n.j41(9,"label",30)(10,"input",38),n.bIt("click",function(o){const s=n.eBV(e).field;return n.Njj(s.IsConfigurable?null:o.preventDefault())})("change",function(o){const s=n.eBV(e).field,a=n.XpG(2);return n.Njj(a.onParentToggle(s.Name,o.target.checked))}),n.k0s(),n.nrm(11,"span",32),n.k0s()(),n.DNE(12,xRt,7,1,"div",39)}if(2&t){let e,i;const o=r.field,s=n.XpG(2);n.Y8G("ngClass",n.eq3(10,fRt,!(s.optionalFields.includes(o.Name)&&null!=(e=s.dynamicForm.get("np-"+o.Name))&&e.value))),n.R7$(3),n.SpI(" ",s.formatFieldName(o.Name)," "),n.R7$(),n.Y8G("ngIf",!o.IsConfigurable),n.R7$(),n.Y8G("ngIf",s.popoverInputFieldNames.includes(o.Name)),n.R7$(3),n.Y8G("field",o),n.R7$(),n.Y8G("for","np-"+o.Name),n.R7$(),n.Y8G("formControlName","np-"+o.Name)("id","np-"+o.Name),n.R7$(),n.Y8G("ngClass",n.eq3(12,_P,!o.IsConfigurable)),n.R7$(),n.Y8G("ngIf",s.optionalFields.includes(o.Name)&&(null==(i=s.dynamicForm.get("np-"+o.Name))?null:i.value))}}function DRt(t,r){1&t&&(n.j41(0,"span",33),n.EFF(1," * "),n.j41(2,"div",34),n.EFF(3,"Required by Feeding America"),n.k0s()())}function kRt(t,r){if(1&t){const e=n.RV6();n.j41(0,"span",35),n.bIt("click",function(o){n.eBV(e),n.XpG();const s=n.sdS(7);return n.Njj(s.toggle(o))}),n.nrm(1,"i",36),n.k0s()}}function IRt(t,r){if(1&t){const e=n.RV6();n.j41(0,"span",35),n.bIt("click",function(o){n.eBV(e),n.XpG();const s=n.sdS(7);return n.Njj(s.toggle(o))}),n.nrm(1,"i",36),n.k0s()}}function ARt(t,r){if(1&t&&(n.j41(0,"div",50)(1,"div",41)(2,"span",42),n.EFF(3,"\u221f"),n.k0s(),n.nrm(4,"input",43),n.j41(5,"span",44),n.EFF(6,"Make Optional?"),n.k0s()()()),2&t){const e=n.XpG().$implicit;n.R7$(4),n.Y8G("formControlName","np-optional-"+e.Name)}}function MRt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div")(1,"div",47)(2,"div",25)(3,"span",48),n.EFF(4),n.k0s(),n.DNE(5,IRt,2,0,"span",28),n.j41(6,"p-popover",null,7),n.nrm(8,"field-preview",29),n.k0s()(),n.j41(9,"label",30)(10,"input",31),n.bIt("click",function(o){const s=n.eBV(e).$implicit;return n.Njj(s.IsConfigurable?null:o.preventDefault())}),n.k0s(),n.nrm(11,"span",32),n.k0s()(),n.DNE(12,ARt,7,1,"div",49),n.k0s()}if(2&t){let e;const i=r.$implicit,o=n.XpG(4);n.R7$(4),n.JRh(o.formatFieldName(i.Name)),n.R7$(),n.Y8G("ngIf",o.popoverInputFieldNames.includes(i.Name)),n.R7$(3),n.Y8G("field",i),n.R7$(),n.Y8G("for","np-"+i.Name),n.R7$(),n.Y8G("formControlName","np-"+i.Name)("id","np-"+i.Name),n.R7$(),n.Y8G("ngClass",n.eq3(8,_P,!i.IsConfigurable)),n.R7$(),n.Y8G("ngIf",o.optionalFields.includes(i.Name)&&(null==(e=o.dynamicForm.get("np-"+i.Name))?null:e.value))}}function RRt(t,r){if(1&t&&(n.j41(0,"div"),n.DNE(1,MRt,13,10,"div",46),n.k0s()),2&t){const e=n.XpG().field;n.R7$(),n.Y8G("ngForOf",e.relatedFields)}}function ORt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",24)(1,"div",25)(2,"span",26),n.EFF(3),n.DNE(4,DRt,4,0,"span",27),n.k0s(),n.DNE(5,kRt,2,0,"span",28),n.j41(6,"p-popover",null,7),n.nrm(8,"field-preview",29),n.k0s()(),n.j41(9,"label",30)(10,"input",38),n.bIt("click",function(o){const s=n.eBV(e).field;return n.Njj(s.IsConfigurable?null:o.preventDefault())})("change",function(o){const s=n.eBV(e).field,a=n.XpG(2);return n.Njj(a.onCounterParentToggle(o.target.checked,s.relatedFields))}),n.k0s(),n.nrm(11,"span",32),n.k0s()(),n.DNE(12,RRt,2,1,"div",45)}if(2&t){let e;const i=r.field,o=n.XpG(2);n.R7$(3),n.SpI(" ",o.formatFieldName(i.Name)," "),n.R7$(),n.Y8G("ngIf",!i.IsConfigurable),n.R7$(),n.Y8G("ngIf",o.popoverInputFieldNames.includes(i.Name)),n.R7$(3),n.Y8G("field",i),n.R7$(),n.Y8G("for","np-"+i.Name),n.R7$(),n.Y8G("formControlName","np-"+i.Name)("id","np-"+i.Name),n.R7$(),n.Y8G("ngClass",n.eq3(9,_P,!i.IsConfigurable)),n.R7$(),n.Y8G("ngIf",null==(e=o.dynamicForm.get("np-"+i.Name))?null:e.value)}}function FRt(t,r){1&t&&(n.j41(0,"div",61),n.EFF(1," * Email and Phone Number fields will always be visible "),n.k0s())}function PRt(t,r){1&t&&(n.j41(0,"span",33),n.EFF(1," * "),n.j41(2,"div",34),n.EFF(3,"Required by Feeding America"),n.k0s()())}function LRt(t,r){if(1&t){const e=n.RV6();n.j41(0,"span",35),n.bIt("click",function(o){n.eBV(e),n.XpG();const s=n.sdS(9);return n.Njj(s.toggle(o))}),n.nrm(1,"i",36),n.k0s()}}function NRt(t,r){if(1&t&&(n.j41(0,"div",62)(1,"span",42),n.EFF(2,"\u221f"),n.k0s(),n.nrm(3,"input",63),n.j41(4,"span",44),n.EFF(5,"Make Optional?"),n.k0s()()),2&t){const e=n.XpG().$implicit;n.Y8G("ngClass",n.eq3(3,WX,"email_address"===e.field.Name||"phone_number"===e.field.Name)),n.R7$(3),n.Y8G("formControlName","np-optional-"+e.field.Name)("ngClass",n.eq3(5,WX,"email_address"===e.field.Name||"phone_number"===e.field.Name))}}function GRt(t,r){if(1&t&&(n.j41(0,"div",64),n.EFF(1," AND/OR "),n.k0s()),2&t){const e=n.XpG().$implicit;n.Y8G("ngClass",n.eq3(1,WX,"email_address"===e.field.Name||"phone_number"===e.field.Name))}}function BRt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",54),n.DNE(1,FRt,2,0,"div",55),n.j41(2,"div",56)(3,"div",57)(4,"span",26),n.EFF(5),n.DNE(6,PRt,4,0,"span",27),n.k0s(),n.DNE(7,LRt,2,0,"span",28),n.j41(8,"p-popover",null,7),n.nrm(10,"field-preview",29),n.k0s()(),n.j41(11,"label",58)(12,"input",31),n.bIt("click",function(o){const s=n.eBV(e).$implicit;return n.Njj(s.field.IsConfigurable?null:o.preventDefault())}),n.k0s(),n.nrm(13,"span",32),n.k0s()(),n.DNE(14,NRt,6,7,"div",59)(15,GRt,2,3,"div",60),n.k0s()}if(2&t){let e;const i=r.$implicit,o=r.last,s=n.XpG(3);n.R7$(),n.Y8G("ngIf","email_address"===i.field.Name),n.R7$(4),n.SpI(" ",s.formatFieldName(i.field.Name)," "),n.R7$(),n.Y8G("ngIf",!i.IsConfigurable),n.R7$(),n.Y8G("ngIf",s.popoverInputFieldNames.includes(i.field.Name)),n.R7$(3),n.Y8G("field",i.field),n.R7$(),n.Y8G("for","np-"+i.field.Name),n.R7$(),n.Y8G("formControlName","np-"+i.field.Name)("id","np-"+i.field.Name),n.R7$(),n.Y8G("ngClass",n.eq3(11,_P,!i.field.IsConfigurable)),n.R7$(),n.Y8G("ngIf",s.optionalFields.includes(i.field.Name)&&(null==(e=s.dynamicForm.get("np-"+i.field.Name))?null:e.value)),n.R7$(),n.Y8G("ngIf",!o)}}function VRt(t,r){1&t&&(n.j41(0,"span",65),n.EFF(1," At least one of the above must be selected. "),n.k0s())}function jRt(t,r){if(1&t&&(n.j41(0,"div",51),n.DNE(1,BRt,16,13,"div",52),n.k0s(),n.DNE(2,VRt,2,0,"span",53)),2&t){const e=r.group,i=n.XpG(2);n.R7$(),n.Y8G("ngForOf",e),n.R7$(),n.Y8G("ngIf",null==i.dynamicForm?null:i.dynamicForm.hasError("orConditionFailed"))}}function HRt(t,r){1&t&&n.eu8(0)}function URt(t,r){if(1&t&&(n.qex(0),n.DNE(1,HRt,1,0,"ng-container",69),n.bVm()),2&t){const e=n.XpG().$implicit;n.XpG(2);const i=n.sdS(8);n.R7$(),n.Y8G("ngTemplateOutlet",i)("ngTemplateOutletContext",n.eq3(2,mRt,e))}}function $Rt(t,r){if(1&t&&(n.qex(0),n.DNE(1,URt,2,4,"ng-container",45),n.bVm()),2&t){const e=r.$implicit,i=n.XpG().$implicit;n.R7$(),n.Y8G("ngIf",i.value.includes(e[0].field.Name))}}function YRt(t,r){1&t&&n.eu8(0)}function WRt(t,r){if(1&t&&(n.qex(0),n.DNE(1,YRt,1,0,"ng-container",69),n.bVm()),2&t){const e=n.XpG().$implicit;n.XpG(2);const i=n.sdS(2);n.R7$(),n.Y8G("ngTemplateOutlet",i)("ngTemplateOutletContext",n.eq3(2,zX,e))}}function zRt(t,r){if(1&t&&(n.qex(0),n.DNE(1,WRt,2,4,"ng-container",45),n.bVm()),2&t){const e=r.$implicit,i=n.XpG().$implicit;n.R7$(),n.Y8G("ngIf",i.value.includes(e.Name))}}function qRt(t,r){1&t&&n.eu8(0)}function XRt(t,r){if(1&t&&(n.qex(0),n.DNE(1,qRt,1,0,"ng-container",69),n.bVm()),2&t){const e=n.XpG().$implicit;n.XpG(2);const i=n.sdS(4);n.R7$(),n.Y8G("ngTemplateOutlet",i)("ngTemplateOutletContext",n.eq3(2,zX,e))}}function KRt(t,r){if(1&t&&(n.qex(0),n.DNE(1,XRt,2,4,"ng-container",45),n.bVm()),2&t){const e=r.$implicit,i=n.XpG().$implicit;n.R7$(),n.Y8G("ngIf",i.value.includes(e.Name))}}function QRt(t,r){1&t&&n.eu8(0)}function JRt(t,r){if(1&t&&(n.qex(0),n.DNE(1,QRt,1,0,"ng-container",69),n.bVm()),2&t){const e=n.XpG().$implicit;n.XpG(2);const i=n.sdS(6);n.R7$(),n.Y8G("ngTemplateOutlet",i)("ngTemplateOutletContext",n.eq3(2,zX,e))}}function ZRt(t,r){if(1&t&&(n.qex(0),n.DNE(1,JRt,2,4,"ng-container",45),n.bVm()),2&t){const e=r.$implicit,i=n.XpG().$implicit;n.R7$(),n.Y8G("ngIf",i.value.includes(e.Name))}}function eOt(t,r){if(1&t&&(n.j41(0,"div",66)(1,"div",67)(2,"span",68),n.EFF(3),n.k0s(),n.DNE(4,$Rt,2,1,"ng-container",46)(5,zRt,2,1,"ng-container",46)(6,KRt,2,1,"ng-container",46)(7,ZRt,2,1,"ng-container",46),n.k0s()()),2&t){const e=r.$implicit,i=n.XpG(2);n.R7$(3),n.SpI(" ",e.key," "),n.R7$(),n.Y8G("ngForOf",i.groupedConditionalFields),n.R7$(),n.Y8G("ngForOf",i.requiredFields),n.R7$(),n.Y8G("ngForOf",i.configurableFields),n.R7$(),n.Y8G("ngForOf",i.counterFields)}}function tOt(t,r){if(1&t){const e=n.RV6();n.j41(0,"form",18),n.bIt("ngSubmit",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onSumbit())}),n.DNE(1,wRt,1,1,"ng-template",null,3,n.C5r)(3,ERt,13,14,"ng-template",null,4,n.C5r)(5,ORt,13,11,"ng-template",null,5,n.C5r)(7,jRt,3,2,"ng-template",null,6,n.C5r),n.j41(9,"h3"),n.EFF(10,"Configure Neighbor Profile Fields"),n.k0s(),n.j41(11,"div",19),n.DNE(12,eOt,8,5,"div",20),n.nI1(13,"keyvalue"),n.k0s(),n.j41(14,"div",21)(15,"button",22),n.EFF(16," Save "),n.k0s()()()}if(2&t){const e=n.XpG();n.Y8G("formGroup",e.dynamicForm),n.R7$(12),n.Y8G("ngForOf",n.i5U(13,3,e.fieldGroupings,e.keepOriginalOrder)),n.R7$(3),n.Y8G("disabled",!e.dynamicForm.valid)}}let nOt=(()=>{class t{constructor(e,i,o){this.fb=e,this.neighborProfileConfigurationService=i,this.toasterService=o,this.deliveryPrograms=[],this.isLoading=!1,this.selectedProgramId=null,this.allFieldsData=null,this.locationFieldsInitialValues=null,this.locationConditionalFieldsData=null,this.dynamicForm=this.fb.group({}),this.requiredFields=null,this.configurableFields=null,this.counterFields=[],this.conditionalFields=null,this.groupedConditionalFields=[],this.optionalFields=["address_line_1","address_line_2","city","state","county","phone_number","middle_name","suffix","proxy_address_line_1","proxy_address_line_2","proxy_middle_name","proxy_suffix","proxy_city","proxy_state","proxy_county","proxy_phone_number"],this.forcedOptionalFields=["address_line_1","address_line_2","middle_name","suffix","proxy_address_line_1","proxy_address_line_2","proxy_middle_name","proxy_suffix"],this.popoverInputFieldNames=["gender_identity","race_ethnicity","preferred_language","other_govt_programs","disability_status","household_monthly_income","living_situation","employment_status","military_status","food_insecurity_worried","food_insecurity_experienced","dietary_restrictions","food_allergies"],this.fieldGroupings={"Personal Information":["first_name","middle_name","last_name","suffix","birth_date","age","gender_identity","race_ethnicity","preferred_language","disability_status"],"Contact Details":["address_line_1","address_line_2","city","state","zipcode","county","email_address","phone_number","ok_to_contact","preferred_contact_method","no_fixed_address"],"Household Information":["household_adults_count","household_children_count","household_seniors_count","household_adult_first_name","household_adult_last_name","household_child_first_name","household_child_last_name","household_senior_first_name","household_senior_last_name"],"Income and Housing":["other_govt_programs","household_monthly_income","living_situation","employment_status","military_status"],"Food Needs":["food_insecurity_worried","food_insecurity_experienced","dietary_restrictions","food_allergies"],"Proxy Details":["proxy_count","proxy_first_name","proxy_middle_name","proxy_last_name","proxy_suffix","proxy_address_line_1","proxy_address_line_2","proxy_city","proxy_state","proxy_zipcode","proxy_phone_number","proxy_no_phone_number"]},this.keepOriginalOrder=()=>0}resetSelectedDeliveryProgram(){this.isLoading=!0,this.selectedProgramId=null,this.allFieldsData=null,this.locationFieldsInitialValues=null,this.locationConditionalFieldsData=null,this.dynamicForm=this.fb.group({}),this.requiredFields=null,this.configurableFields=null,this.counterFields=null,this.conditionalFields=null,this.groupedConditionalFields=[],this.isLoading=!1}onProgramSelected(e){this.resetSelectedDeliveryProgram(),e?.ID&&(this.selectedProgramId=e.ID,this.getNeighborProfileData(e.ID))}applyEmailPhoneDependency(){const e=this.dynamicForm.get("np-phone_number"),i=this.dynamicForm.get("np-email_address"),o="np-optional-phone_number",s=()=>{const a=e?.value,l=i?.value;if(a){this.dynamicForm.contains(o)||this.dynamicForm.addControl(o,this.fb.control(!0));const c=this.dynamicForm.get(o);l?c?.enable():(c?.disable(),c?.setValue(!1,{emitEvent:!1}))}else this.dynamicForm.contains(o)&&this.dynamicForm.removeControl(o)};e?.valueChanges.subscribe(s),i?.valueChanges.subscribe(s),s()}buildForm(){if(this.allFieldsData&&this.locationFieldsInitialValues){this.allFieldsData.forEach(o=>{const s=this.locationFieldsInitialValues?.find(c=>c.NeighborProfileFieldID===o.ID),a=!!s,l=a&&s.IsActive||!o.IsConfigurable;if(this.dynamicForm.addControl(`np-${o.Name}`,this.fb.control(l)),this.optionalFields.includes(o.Name)){const c=this.dynamicForm.get(`np-${o.Name}`),d=`np-optional-${o.Name}`,f=()=>{let v=!0;if(a&&!0===s?.IsRequired&&(v=!1),this.dynamicForm.contains(d)?this.dynamicForm.get(d)?.patchValue(v):this.dynamicForm.addControl(d,this.fb.control(v)),this.forcedOptionalFields.includes(o.Name)){const w=this.dynamicForm.get(d);w?.setValue(!0,{emitEvent:!1}),w?.disable()}};"proxy_address_line_1"===o.Name||"proxy_address_line_2"===o.Name?f():(c?.valueChanges.subscribe(v=>{v?f():this.dynamicForm.contains(d)&&this.dynamicForm.removeControl(d)}),l&&f())}}),this.separateFields(this.allFieldsData);const i=this.groupedConditionalFields.filter(o=>o.some(s=>"OR"===s.condition?.ConditionType)).map(o=>{const s=o.map(a=>a.field.Name);return this.applyOrConditionValidator(s)});this.dynamicForm.setValidators(i),this.dynamicForm.updateValueAndValidity(),this.applyEmailPhoneDependency()}}onParentToggle(e,i){const o=`np-optional-${e}`;i&&this.dynamicForm.contains(o)&&this.dynamicForm.get(o).setValue(!0)}onCounterParentToggle(e,i){e||i.forEach(o=>{this.dynamicForm.get(`np-${o.Name}`)?.setValue(!1,{emitEvent:!1})})}formatFieldName(e){return e.split("_").map(i=>i.charAt(0).toUpperCase()+i.slice(1)).join(" ")}applyOrConditionValidator(e){return i=>{const o=i;return o&&o.controls&&!e.some(a=>o.get(`np-${a}`)?.value)?{orConditionFailed:!0}:null}}separateFields(e){this.conditionalFields=this.getConditionalFields(e),this.counterFields=this.getCounterFields(e),this.requiredFields=this.getFANORequiredFields(e),this.configurableFields=this.getConfigurableFields(e),this.groupConditionalFields()}isFieldTypeCounterOrRelated(e){return"counter"===e.InputType||null!==e.CounterFieldID}isConditionalField(e){return(this.conditionalFields?.map(o=>o.field.ID)||[]).includes(e.ID)}groupConditionalFields(){if(this.conditionalFields){const e=this.conditionalFields.reduce((i,o)=>{const s=o.condition.ID;return i[s]||(i[s]=[]),i[s].push(o),i},{});this.groupedConditionalFields=Object.values(e)}}getFANORequiredFields(e){return e.filter(i=>!i.IsConfigurable&&!this.isFieldTypeCounterOrRelated(i)&&!this.isConditionalField(i))}getConfigurableFields(e){return e.filter(i=>i.IsConfigurable&&!this.isFieldTypeCounterOrRelated(i)&&!this.isConditionalField(i))}getCounterFields(e){return e.filter(s=>"counter"===s.InputType).map(s=>({...s,relatedFields:e.filter(a=>a.CounterFieldID===s.ID)}))}getConditionalFields(e){return this.locationConditionalFieldsData?.reduce((o,s)=>{let a;try{a=JSON.parse(s.FieldIDs)}catch(l){console.error("Failed to parse FieldIDs:",l)}return a&&a.forEach(l=>{const c=e.find(d=>d.ID===l);c&&o.push({field:c,condition:s})}),o},[])||[]}mapStateToFields(){const e=this.dynamicForm.value;return Object.entries(e).reduce((o,[s,a])=>{if(!a||s.startsWith("np-optional-")||!a)return o;const l=s.replace(/^np-/,""),c=this.allFieldsData.find(v=>v.Name===l),d=`np-optional-${l}`,f=e.hasOwnProperty(d)&&!0===e[d];return c?.ID&&o.push({NeighborProfileFieldID:c.ID,EntityDeliveryProgramID:this.selectedProgramId,IsActive:!0,IsRequired:!this.forcedOptionalFields.includes(c.Name)&&!f}),o},[])}get showNoFixedAddress(){const e=this.dynamicForm.get("np-address_line_1")?.value,i=this.dynamicForm.get("np-address_line_2")?.value,o=this.dynamicForm.get("np-city")?.value,s=this.dynamicForm.get("np-state")?.value,a=this.dynamicForm.get("np-county")?.value;return e||i||o||s||a}onSumbit(){var e=this;return(0,lr.A)(function*(){try{if(e.selectedProgramId){e.isLoading=!0;const i=e.mapStateToFields(),o=yield e.neighborProfileConfigurationService.postNeighborProfileDeliveryConfig(e.selectedProgramId,i);o.Successful?e.toasterService.displaySuccessToast("Success","Configuration saved"):e.toasterService.displayErrorToast("Error",o.FailureReason||"Error saving neighbor profile configuration data"),e.isLoading=!1}}catch{e.toasterService.displayErrorToast("Error","Error saving neighbor profile configuration data"),e.isLoading=!1}})()}getNeighborProfileData(e){var i=this;return(0,lr.A)(function*(){try{i.isLoading=!0;const o=yield i.neighborProfileConfigurationService.getNeighborProfileDeliveryFields(e);i.allFieldsData=o?.Value?.AllFields||null,i.locationFieldsInitialValues=o?.Value?.DeliveryProgramFields||null,i.locationConditionalFieldsData=o?.Value?.DeliveryProgramConditionalFields||null,i.buildForm(),i.isLoading=!1}catch{i.toasterService.displayErrorToast("Error","Error loading neighbor profile configuration data"),i.isLoading=!1}})()}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(R$),n.rXU(uhe),n.rXU(tc))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["delivery-neighbor-profile-configuration"]],inputs:{deliveryPrograms:"deliveryPrograms"},standalone:!1,decls:13,vars:5,consts:[["selectFromTemplate",""],["selectedContentTemplate",""],["dropdown",""],["requiredFieldTemplate",""],["configurableFieldTemplate",""],["counterFieldTemplate",""],["conditionalFieldTemplate",""],["popover",""],[1,"panel","panel-default","mt-2"],[1,"panel-heading"],[1,"panel-body"],[1,"tw-grid","tw-grid-cols-1","lg:tw-grid-cols-2","xl:tw-grid-cols-3"],["filterMatchMode","contains","filterFields","Name","placeholder","Select a Delivery Program","styleClass","",3,"itemSelected","options","itemTemplate","selectedItemTemplate"],["class","tw-flex tw-items-center tw-justify-center tw-p-6",4,"ngIf"],[3,"formGroup","ngSubmit",4,"ngIf"],[3,"innerHtml"],[1,"tw-flex","tw-items-center","tw-justify-center","tw-p-6"],["message","Loading Profile Configuration..."],[3,"ngSubmit","formGroup"],[1,"tw-grid","tw-items-stretch","tw-gap-4","md:tw-grid-cols-1","lg:tw-grid-cols-2","xl:tw-grid-cols-3","2xl:tw-grid-cols-4"],["class","tw-h-full",4,"ngFor","ngForOf"],[1,"tw-mx-auto","tw-mt-4"],["type","submit",1,"btn","btn-primary",3,"disabled"],["class","tw-mb-4 tw-flex tw-items-center tw-justify-between",4,"ngIf"],[1,"tw-mb-4","tw-flex","tw-items-center","tw-justify-between"],[1,"tw-h-8","tw-flex-auto"],[1,"tooltip-container","tw-pr-2"],["class","tooltip-trigger",4,"ngIf"],["class","info-popover-button tw-pr-2","style","cursor: pointer",3,"click",4,"ngIf"],[3,"field"],[1,"profile-toggle",3,"for"],["type","checkbox",3,"click","formControlName","id"],[1,"profile-slider",3,"ngClass"],[1,"tooltip-trigger"],[1,"tooltip"],[1,"info-popover-button","tw-pr-2",2,"cursor","pointer",3,"click"],[1,"fa","fa-info-circle"],[3,"ngClass"],["type","checkbox",3,"click","change","formControlName","id"],["class","tw-mb-4 tw-mt-0",4,"ngIf"],[1,"tw-mb-4","tw-mt-0"],[1,"tw-flex","tw-items-center","tw-space-x-2"],[1,"tw-pb-2","tw-text-xl","tw-font-bold","tw-text-gray-500"],["type","checkbox",1,"tw-h-5","tw-w-5",3,"formControlName"],[1,"tw-h-5"],[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"tw-mb-4","tw-flex","tw-items-center","tw-justify-between","tw-pl-8"],[1,"tw-pr-2"],["class","tw-mb-4 tw-mt-0 tw-pl-8",4,"ngIf"],[1,"tw-mb-4","tw-mt-0","tw-pl-8"],[1,""],["class","tw-mb-4",4,"ngFor","ngForOf"],["class","tw-pb-4 tw-italic tw-text-red-500",4,"ngIf"],[1,"tw-mb-4"],["class","tw-text-md tw-pb-2 tw-italic",4,"ngIf"],[1,"tw-flex","tw-w-full","tw-items-center","tw-justify-between"],[1,"tw-flex","tw-h-8","tw-flex-1","tw-items-center"],[1,"profile-toggle","tw-whitespace-nowrap",3,"for"],["class","tw-mt-2 tw-flex tw-items-center tw-space-x-2 tw-pl-4",3,"ngClass",4,"ngIf"],["class","tw-mt-4 tw-w-full tw-pl-4 tw-italic",3,"ngClass",4,"ngIf"],[1,"tw-text-md","tw-pb-2","tw-italic"],[1,"tw-mt-2","tw-flex","tw-items-center","tw-space-x-2","tw-pl-4",3,"ngClass"],["type","checkbox",1,"tw-h-5","tw-w-5",3,"formControlName","ngClass"],[1,"tw-mt-4","tw-w-full","tw-pl-4","tw-italic",3,"ngClass"],[1,"tw-pb-4","tw-italic","tw-text-red-500"],[1,"tw-h-full"],[1,"tw-flex","tw-h-full","tw-flex-col","tw-rounded-lg","tw-bg-neutral-100","tw-px-4"],[1,"tw-my-4","tw-text-lg","tw-font-semibold"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,o){if(1&i){const s=n.RV6();n.DNE(0,gRt,3,4,"ng-template",null,0,n.C5r)(2,vRt,3,1,"ng-template",null,1,n.C5r),n.j41(4,"div",8)(5,"div",9),n.EFF(6," Select a Delivery Program to configure Neighbor Profile "),n.k0s(),n.j41(7,"div",10)(8,"div",11)(9,"dropdown",12,2),n.bIt("itemSelected",function(l){return n.eBV(s),n.Njj(o.onProgramSelected(l))}),n.k0s()()()(),n.DNE(11,_Rt,2,0,"div",13)(12,tOt,17,6,"form",14)}if(2&i){const s=n.sdS(1),a=n.sdS(3);n.R7$(9),n.Y8G("options",o.deliveryPrograms)("itemTemplate",s)("selectedItemTemplate",a),n.R7$(2),n.Y8G("ngIf",o.isLoading),n.R7$(),n.Y8G("ngIf",!o.isLoading&&o.allFieldsData&&o.allFieldsData.length>0)}},dependencies:[bi,oo,fi,uo,wv,Cv,_o,Rm,Tv,Eb,Yy,Uu,kv,dhe,Zo,Zd],styles:['.profile-toggle[_ngcontent-%COMP%]{position:relative;display:inline-block;width:58px;height:32px}.profile-toggle[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{display:none}.profile-slider[_ngcontent-%COMP%]{position:absolute;cursor:pointer;inset:0;background-color:#ccc;transition:.3s;border-radius:34px}.profile-slider[_ngcontent-%COMP%]:before{position:absolute;content:"";height:26px;width:26px;left:3px;bottom:3px;background-color:#fff;transition:.3s;border-radius:50%}input[_ngcontent-%COMP%]:checked, input[_ngcontent-%COMP%]:checked + .profile-slider[_ngcontent-%COMP%]{background-color:#2196f3}input[_ngcontent-%COMP%]:checked + .profile-slider[_ngcontent-%COMP%]:before{transform:translate(26px)}.profile-slider.disabled[_ngcontent-%COMP%]{cursor:not-allowed;opacity:.15}.tooltip-container[_ngcontent-%COMP%]{position:relative;display:inline-block}.tooltip-trigger[_ngcontent-%COMP%]{cursor:pointer;color:red}.tooltip[_ngcontent-%COMP%]{visibility:hidden;opacity:0;position:absolute;bottom:100%;left:100%;background-color:#ccc;color:#3b3b3b;padding:8px;border-radius:6px;text-align:center;white-space:nowrap;font-size:small;transition:opacity .3s ease,visibility .3s ease;z-index:10}.tooltip-container[_ngcontent-%COMP%]:hover   .tooltip[_ngcontent-%COMP%]{visibility:visible;opacity:1}']})}}return t})(),iOt=(()=>{class t{constructor(e,i){this.http=e,this.cacheService=i}getGeocodedAddress(e){var i=this;return(0,lr.A)(function*(){let o=`geocoding.${e}`,s=yield i.cacheService.get(o);if(s)return s;let a=yield Yo(i.http.get("/api/geocoding/formattedaddress",{params:{addressFragment:e}}));return a.Successful?(yield i.cacheService.cache({key:o,value:a.Value,persist:!1,ttl:1/0,type:"data"}),a.Value):null})()}static{this.\u0275fac=function(i){return new(i||t)(n.KVO(Da),n.KVO(jb))}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),qX=(()=>{class t{constructor(e){this.http=e}addLocation(e){var i=this;return(0,lr.A)(function*(){return yield Yo(i.http.post("/api/orderahead/location",e))})()}getLocations(e){var i=this;return(0,lr.A)(function*(){const o=e?{params:(new Mp).set("agencyId",e)}:{};return yield Yo(i.http.get("/api/orderahead/locations/",o))})()}getLocation(e){var i=this;return(0,lr.A)(function*(){return yield Yo(i.http.get(`/api/orderahead/location/${e}`))})()}getLocationImages(e){var i=this;return(0,lr.A)(function*(){return yield Yo(i.http.get(`/api/orderahead/location/${e.ID}/images`))})()}getLocationProducts(e,i){var o=this;return(0,lr.A)(function*(){const s=i?{params:(new Mp).set("language",i)}:{};return yield Yo(o.http.get(`/api/orderahead/location/${e}/products`,s))})()}static{this.\u0275fac=function(i){return new(i||t)(n.KVO(Da))}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),rOt=(()=>{class t{constructor(){}getStates(){return[{abbreviation:"AL",name:"Alabama"},{abbreviation:"AK",name:"Alaska"},{abbreviation:"AZ",name:"Arizona"},{abbreviation:"AR",name:"Arkansas"},{abbreviation:"CA",name:"California"},{abbreviation:"CO",name:"Colorado"},{abbreviation:"CT",name:"Connecticut"},{abbreviation:"DE",name:"Delaware"},{abbreviation:"DC",name:"District Of Columbia"},{abbreviation:"FL",name:"Florida"},{abbreviation:"GA",name:"Georgia"},{abbreviation:"HI",name:"Hawaii"},{abbreviation:"ID",name:"Idaho"},{abbreviation:"IL",name:"Illinois"},{abbreviation:"IN",name:"Indiana"},{abbreviation:"IA",name:"Iowa"},{abbreviation:"KS",name:"Kansas"},{abbreviation:"KY",name:"Kentucky"},{abbreviation:"LA",name:"Louisiana"},{abbreviation:"ME",name:"Maine"},{abbreviation:"MD",name:"Maryland"},{abbreviation:"MA",name:"Massachusetts"},{abbreviation:"MI",name:"Michigan"},{abbreviation:"MN",name:"Minnesota"},{abbreviation:"MS",name:"Mississippi"},{abbreviation:"MO",name:"Missouri"},{abbreviation:"MT",name:"Montana"},{abbreviation:"NE",name:"Nebraska"},{abbreviation:"NV",name:"Nevada"},{abbreviation:"NH",name:"New Hampshire"},{abbreviation:"NJ",name:"New Jersey"},{abbreviation:"NM",name:"New Mexico"},{abbreviation:"NY",name:"New York"},{abbreviation:"NC",name:"North Carolina"},{abbreviation:"ND",name:"North Dakota"},{abbreviation:"OH",name:"Ohio"},{abbreviation:"OK",name:"Oklahoma"},{abbreviation:"OR",name:"Oregon"},{abbreviation:"PA",name:"Pennsylvania"},{abbreviation:"PR",name:"Puerto Rico"},{abbreviation:"RI",name:"Rhode Island"},{abbreviation:"SC",name:"South Carolina"},{abbreviation:"SD",name:"South Dakota"},{abbreviation:"TN",name:"Tennessee"},{abbreviation:"TX",name:"Texas"},{abbreviation:"UT",name:"Utah"},{abbreviation:"VT",name:"Vermont"},{abbreviation:"VA",name:"Virginia"},{abbreviation:"WA",name:"Washington"},{abbreviation:"WV",name:"West Virginia"},{abbreviation:"WI",name:"Wisconsin"},{abbreviation:"WY",name:"Wyoming"}]}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function oOt(t,r){if(1&t&&(n.j41(0,"option",31),n.EFF(1),n.k0s()),2&t){const e=r.$implicit;n.Y8G("value",e.abbreviation),n.R7$(),n.SpI(" ",e.name," ")}}function sOt(t,r){1&t&&(n.j41(0,"div",32)(1,"span",33),n.EFF(2,"Location Added!"),n.k0s()())}function aOt(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",34),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.verifyLocation())}),n.EFF(1),n.k0s()}if(2&t){const e=n.XpG();n.Y8G("disabled",!e.locationForm.valid||"Verifying"===e.currentState),n.R7$(),n.SpI(" ","Verifying"===e.currentState?"Verifying...":"Verify Location"," ")}}function lOt(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",34),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.addLocation())}),n.EFF(1),n.k0s()}if(2&t){const e=n.XpG();n.Y8G("disabled","VerificationSuccessful"!==e.currentState),n.R7$(),n.SpI(" ","VerificationSuccessful"===e.currentState?"Add Location":"Adding..."," ")}}function cOt(t,r){1&t&&(n.j41(0,"div",35),n.EFF(1," Unable to look up address, please verify the address is correct.\n"),n.k0s())}var Fp=function(t){return t.Initial="Initial",t.Verifying="Verifying",t.VerificationFailed="VerificationFailed",t.VerificationSuccessful="VerificationSuccessful",t.AddingLocation="AddingLocation",t.AddLocationFailed="AddLocationFailed",t.LocationAdded="LocationAdded",t}(Fp||{}),sm=function(t){return t.OnInit="OnInit",t.OnVerify="OnVerify",t.OnFailure="OnFailure",t.OnSuccess="OnSuccess",t.OnAddLocation="OnAddLocation",t.OnLocationAdded="OnLocationAdded",t}(sm||{});let uOt=(()=>{class t{constructor(e,i,o){var s=this;this.geocodingService=e,this.locationsService=i,this.settingsDataService=o,this.defaultAddress=null,this.locationCreated=new n.bkB,this.currentState="",this.error="",this.states=[],this.locationForm=new kge({name:new xb("",[Ls.required]),description:new xb("",[Ls.required]),pickupInstructions:new xb("",[Ls.required]),addressLine1:new xb("",[Ls.required]),addressLine2:new xb(""),city:new xb("",[Ls.required]),state:new xb("",[Ls.required]),zipCode:new xb("",[Ls.required,Ls.minLength(5),Ls.maxLength(5)])}),this.addressCenter=null,this.zoomLevel=5;const a=(0,yI.k)({}),l=_I({id:"locationMachine",initial:Fp.Initial,context:a.initialContext,predictableActionArguments:!0,states:{[Fp.Initial]:{on:{[sm.OnVerify]:{target:Fp.Verifying}}},[Fp.Verifying]:{invoke:{src:()=>function(){var c=(0,lr.A)(function*(d){let f=yield s.geocodingService.getGeocodedAddress(s.getAddressString());f?(s.addressCenter={lat:f.Latitude,lng:f.Longitude},s.zoomLevel=14,d(sm.OnSuccess)):(s.zoomLevel=5,d(sm.OnFailure))});return function(d){return c.apply(this,arguments)}}(),onError:{target:Fp.VerificationFailed}},on:{[sm.OnSuccess]:{target:Fp.VerificationSuccessful},[sm.OnFailure]:{target:Fp.VerificationFailed}}},[Fp.VerificationFailed]:{on:{[sm.OnInit]:{target:Fp.Initial}}},[Fp.VerificationSuccessful]:{on:{[sm.OnInit]:{target:Fp.Initial},[sm.OnAddLocation]:{target:Fp.AddingLocation}}},[Fp.AddingLocation]:{invoke:{src:()=>function(){var c=(0,lr.A)(function*(d){const f=yield s.locationsService.addLocation({Label:s.locationForm.get("name")?.value,Description:s.locationForm.get("description")?.value,PickupInstructions:s.locationForm.get("pickupInstructions")?.value,Address:{AddressLine1:s.locationForm.get("addressLine1")?.value,AddressLine2:s.locationForm.get("addressLine2")?.value,City:s.locationForm.get("city")?.value,Province:s.locationForm.get("state")?.value,PostalCode:s.locationForm.get("zipCode")?.value}});s.locationForm.disable(),s.locationCreated.emit(f),d(sm.OnSuccess)});return function(d){return c.apply(this,arguments)}}(),onError:{target:Fp.AddLocationFailed}},on:{[sm.OnSuccess]:{target:Fp.LocationAdded},[sm.OnFailure]:{target:Fp.AddLocationFailed}}},[Fp.AddLocationFailed]:{},[Fp.LocationAdded]:{}}},{});this.stateService=x2(l).start(),this.stateService.onTransition(c=>{this.currentState=c.value.toString()})}ngOnInit(){this.states=this.settingsDataService.getStates(),this.addressCenter=this.getDefaultCenter(),this.zoomLevel=this.getDefaultZoomLevel()}ngOnChanges(e){e?.defaultAddress&&e.defaultAddress.currentValue&&this.setDefaultAddress()}getDefaultCenter(){return{lat:37.0625,lng:-95.677068}}getDefaultZoomLevel(){return 5}setDefaultAddress(){this.defaultAddress&&this.locationForm.patchValue({city:this.defaultAddress.City,state:this.defaultAddress.Province,zipCode:this.defaultAddress.PostalCode?.substring(0,this.defaultAddress.PostalCode.length>5?5:this.defaultAddress.PostalCode.length)})}verifyLocation(){this.stateService.send(sm.OnVerify)}addLocation(){this.stateService.send(sm.OnAddLocation)}clearVerification(){this.stateService.send(sm.OnInit)}getAddressString(){return`${this.locationForm.get("addressLine1")?.value}, \n      ${this.locationForm.get("city")?.value},\n      ${this.locationForm.get("state")?.value},\n      ${this.locationForm.get("zipCode")?.value}`}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(iOt),n.rXU(qX),n.rXU(rOt))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["location-details-and-address"]],inputs:{defaultAddress:"defaultAddress"},outputs:{locationCreated:"locationCreated"},standalone:!1,features:[n.OA$],decls:68,vars:10,consts:[[3,"formGroup"],[1,"row"],[1,"col-md-3"],[1,"form-group"],["pTooltip","A descriptive name for the location. This will be the primary name used for this location in the customer facing site.","tooltipPosition","right",1,"info-popover-button"],[1,"fa","fa-info-circle"],["formControlName","name","autocomplete","off",1,"form-control",3,"input"],["pTooltip","A brief description of the location. This may display in detailed information about the location in the customer facing site.","tooltipPosition","right",1,"info-popover-button"],["formControlName","description","autocomplete","off",1,"form-control",3,"input"],[1,"col-md-6"],["pTooltip","Instructions for how the customer should pick up ordered products. This is provided to the customer through the customer facing site.","tooltipPosition","right",1,"info-popover-button"],["formControlName","pickupInstructions","autocomplete","off",1,"form-control",3,"input"],[1,"row","item-detail"],["pTooltip","Please include the complete street address of the pickup location.","tooltipPosition","right",1,"info-popover-button"],["formControlName","addressLine1","autocomplete","off",1,"form-control",3,"input"],["pTooltip","Secondary address information helpful to locate pickup point, such as unit number.","tooltipPosition","right",1,"info-popover-button"],["formControlName","addressLine2","autocomplete","off",1,"form-control",3,"input"],[1,"col-md-2"],["pTooltip","The full name of the city","tooltipPosition","right",1,"info-popover-button"],["formControlName","city","autocomplete","off",1,"form-control",3,"input"],["pTooltip","The state for the pickup location","tooltipPosition","right",1,"info-popover-button"],["formControlName","state","placeholder","State",1,"form-control",3,"input"],[3,"value",4,"ngFor","ngForOf"],["pTooltip","The five digit postal code for the location","tooltipPosition","right",1,"info-popover-button"],["formControlName","zipCode","autocomplete","off",1,"form-control",3,"input","pKeyFilter","maxlength"],[1,"tw-relative"],[1,"tw-block","tw-w-full",2,"height","400px",3,"center","zoomLevel"],["class","\n      tw-absolute\n      tw-top-0\n      tw-bottom-0\n      tw-left-0\n      tw-right-0\n      tw-w-full\n      tw-flex\n      tw-items-center\n      tw-justify-center\n      tw-bg-gray-900\n      tw-bg-opacity-50\n      tw-backdrop-blur-sm\n    ",4,"ngIf"],[1,"tw-mt-4","tw-flex","justify-end"],["type","button","class","btn btn-primary",3,"disabled","click",4,"ngIf"],["class","alert alert-danger",4,"ngIf"],[3,"value"],[1,"tw-absolute","tw-top-0","tw-bottom-0","tw-left-0","tw-right-0","tw-w-full","tw-flex","tw-items-center","tw-justify-center","tw-bg-gray-900","tw-bg-opacity-50","tw-backdrop-blur-sm"],[1,"tw-text-4xl","tw-text-white"],["type","button",1,"btn","btn-primary",3,"click","disabled"],[1,"alert","alert-danger"]],template:function(i,o){1&i&&(n.j41(0,"form",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"label"),n.EFF(5," Name "),n.j41(6,"span",4),n.nrm(7,"i",5),n.k0s()(),n.j41(8,"input",6),n.bIt("input",function(){return o.clearVerification()}),n.k0s()()(),n.j41(9,"div",2)(10,"div",3)(11,"label"),n.EFF(12,"Description "),n.j41(13,"span",7),n.nrm(14,"i",5),n.k0s()(),n.j41(15,"input",8),n.bIt("input",function(){return o.clearVerification()}),n.k0s()()(),n.j41(16,"div",9)(17,"div",3)(18,"label"),n.EFF(19,"Pickup Instructions "),n.j41(20,"span",10),n.nrm(21,"i",5),n.k0s()(),n.j41(22,"input",11),n.bIt("input",function(){return o.clearVerification()}),n.k0s()()()(),n.j41(23,"div",12)(24,"div",2)(25,"div",3)(26,"label"),n.EFF(27," Address Line 1 "),n.j41(28,"span",13),n.nrm(29,"i",5),n.k0s()(),n.j41(30,"input",14),n.bIt("input",function(){return o.clearVerification()}),n.k0s()()(),n.j41(31,"div",2)(32,"div",3)(33,"label"),n.EFF(34," Address Line 2 "),n.j41(35,"span",15),n.nrm(36,"i",5),n.k0s()(),n.j41(37,"input",16),n.bIt("input",function(){return o.clearVerification()}),n.k0s()()(),n.j41(38,"div",17)(39,"div",3)(40,"label"),n.EFF(41," City "),n.j41(42,"span",18),n.nrm(43,"i",5),n.k0s()(),n.j41(44,"input",19),n.bIt("input",function(){return o.clearVerification()}),n.k0s()()(),n.j41(45,"div",17)(46,"div",3)(47,"label"),n.EFF(48," State "),n.j41(49,"span",20),n.nrm(50,"i",5),n.k0s()(),n.j41(51,"select",21),n.bIt("input",function(){return o.clearVerification()}),n.nrm(52,"option"),n.DNE(53,oOt,2,2,"option",22),n.k0s()()(),n.j41(54,"div",17)(55,"div",3)(56,"label"),n.EFF(57,"ZIP Code "),n.j41(58,"span",23),n.nrm(59,"i",5),n.k0s()(),n.j41(60,"input",24),n.bIt("input",function(){return o.clearVerification()}),n.k0s()()()()(),n.j41(61,"div",25),n.nrm(62,"google-map",26),n.DNE(63,sOt,3,0,"div",27),n.k0s(),n.j41(64,"div",28),n.DNE(65,aOt,2,2,"button",29)(66,lOt,2,2,"button",29),n.k0s(),n.DNE(67,cOt,2,0,"div",30)),2&i&&(n.Y8G("formGroup",o.locationForm),n.R7$(53),n.Y8G("ngForOf",o.states),n.R7$(7),n.Y8G("pKeyFilter","int")("maxlength",5),n.R7$(2),n.Y8G("center",o.addressCenter)("zoomLevel",o.zoomLevel),n.R7$(),n.Y8G("ngIf","LocationAdded"===o.currentState),n.R7$(2),n.Y8G("ngIf","Initial"===o.currentState||"Verifying"===o.currentState),n.R7$(),n.Y8G("ngIf","VerificationSuccessful"===o.currentState||"AddingLocation"===o.currentState),n.R7$(),n.Y8G("ngIf","VerificationFailed"===o.currentState))},dependencies:[oo,fi,wv,Sy,xy,Cc,Ty,_o,Rm,sk,Tv,Eb,ou,PX,Lz],encapsulation:2})}}return t})();const dOt=()=>({width:"75vw"});function pOt(t,r){if(1&t){const e=n.RV6();n.j41(0,"location-details-and-address",2),n.bIt("locationCreated",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onLocationCreated(o))}),n.k0s()}if(2&t){const e=n.XpG();n.Y8G("defaultAddress",e.defaultAddress)}}let hOt=(()=>{class t{constructor(){this.visible=!1,this.defaultAddress=null,this.onHide=new n.bkB,this.locationCreated=new n.bkB,this.pantryLocation=null}ngOnChanges(e){}ngOnInit(){}onLocationCreated(e){this.locationCreated.emit(e),this.pantryLocation=e}hide(){this.onHide.emit()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["orderahead-location-modal"]],inputs:{visible:"visible",defaultAddress:"defaultAddress"},outputs:{onHide:"onHide",locationCreated:"locationCreated"},standalone:!1,features:[n.OA$],decls:2,vars:10,consts:[["header","New Location","appendTo","body",3,"visibleChange","onHide","visible","modal","draggable","resizable","closeOnEscape","baseZIndex"],[3,"defaultAddress","locationCreated",4,"ngIf"],[3,"locationCreated","defaultAddress"]],template:function(i,o){1&i&&(n.j41(0,"p-dialog",0),n.mxI("visibleChange",function(a){return n.DH7(o.visible,a)||(o.visible=a),a}),n.bIt("onHide",function(){return o.hide()}),n.DNE(1,pOt,1,1,"location-details-and-address",1),n.k0s()),2&i&&(n.Aen(n.lJ4(9,dOt)),n.R50("visible",o.visible),n.Y8G("modal",!0)("draggable",!1)("resizable",!1)("closeOnEscape",!0)("baseZIndex",200),n.R7$(),n.Y8G("ngIf",o.visible))},dependencies:[fi,gf,uOt],encapsulation:2})}}return t})();function fOt(t,r){1&t&&(n.j41(0,"span"),n.nrm(1,"i",20),n.k0s())}function mOt(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",21),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.addPickupTimes.emit())}),n.EFF(1," Go "),n.k0s()}}function gOt(t,r){1&t&&(n.j41(0,"span"),n.nrm(1,"i",20),n.k0s())}function vOt(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",21),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.addPhoto.emit())}),n.EFF(1," Go "),n.k0s()}}let _Ot=(()=>{class t{updateStatuses(){this.setupProgress=30,this.hasPickupTimes=!1,this.hasPhotos=!1,this.pickupTimes&&this.pickupTimes.length>0&&(this.hasPickupTimes=!0,this.setupProgress+=30),this.pantryLocation?.AttachmentCollection&&this.pantryLocation.AttachmentCollection.AttachmentCollectionItems.length>0&&(this.hasPhotos=!0,this.setupProgress+=30)}constructor(){this.pickupTimes=null,this.addPickupTimes=new n.bkB,this.addPhoto=new n.bkB,this.activate=new n.bkB,this.setupProgress=0,this.hasPickupTimes=!1,this.hasPhotos=!1}ngOnInit(){this.updateStatuses()}ngOnChanges(e){this.updateStatuses()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["location-setup-progress"]],inputs:{pantryLocation:"pantryLocation",pickupTimes:"pickupTimes"},outputs:{addPickupTimes:"addPickupTimes",addPhoto:"addPhoto",activate:"activate"},standalone:!1,features:[n.OA$],decls:38,vars:9,consts:[[1,"tw-flex","tw-flex-row","tw-items-stretch","tw-justify-center","tw-space-x-2","tw-bg-fa-blue-500","tw-p-2"],[1,"tw-flex","tw-items-center"],[1,"tw-flex","tw-items-center","tw-h-12","tw-w-12","tw-justify-center","tw-rounded-full","tw-border-2","tw-border-solid","tw-border-white","tw-p-2","tw-text-white"],[1,"tw-flex","tw-flex-col","tw-justify-center"],[1,"tw-text-2xl","tw-font-semibold","tw-text-white"],[1,"tw-text-gray-200"],[1,"tw-flex","tw-flex-row","tw-px-6","tw-py-2","tw-rounded-full","tw-space-x-8","tw-border-2","tw-border-solid","tw-border-fa-blue-900","tw-bg-fa-blue-700"],[1,"tw-flex","tw-flex-row","tw-items-center","tw-space-x-2"],[4,"ngIf"],["class","\n          hover:enabled:tw-bg-opacity-90\n          btn-reset\n          tw-bg-fa-blue-300\n          tw-px-2\n          tw-py-1\n          tw-text-white\n          tw-rounded\n          tw-transition-all\n        ","type","button",3,"click",4,"ngIf"],[1,"tw-flex","tw-flex-col"],[1,"tw-font-semibold","tw-text-white"],["pTooltip","A pickup window must be created before this location can be activated.","tooltipPosition","right",1,"info-popover-button"],[1,"fa","fa-info-circle"],[1,"tw-text-gray-200","tw-text-sm"],["pTooltip","Homepage content must be added before this location can be activated.","tooltipPosition","right",1,"info-popover-button"],[1,"pi","pi-chevron-right","tw-text-2xl","tw-text-fa-blue-700"],[1,"tw-flex","tw-items-center","tw-px-6","tw-py-2","tw-rounded-full","tw-space-x-2","tw-border-2","tw-border-solid","tw-border-fa-blue-900","tw-bg-fa-blue-700"],[1,"hover:enabled:tw-bg-opacity-90","btn-reset","p-2","tw-bg-fa-orange-500","tw-px-2","tw-py-1","tw-text-white","tw-rounded","tw-transition-all","disabled:tw-bg-opacity-50",3,"click","disabled"],[1,"tw-text-white"],[1,"pi","pi-check-circle","tw-text-lg","text-success"],["type","button",1,"hover:enabled:tw-bg-opacity-90","btn-reset","tw-bg-fa-blue-300","tw-px-2","tw-py-1","tw-text-white","tw-rounded","tw-transition-all",3,"click"]],template:function(i,o){1&i&&(n.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"span"),n.EFF(4),n.k0s()()(),n.j41(5,"div",3)(6,"span",4),n.EFF(7,"Setup In Progress"),n.k0s(),n.j41(8,"span",5),n.EFF(9,"Complete required steps and then activate"),n.k0s()(),n.j41(10,"div",6)(11,"div",7),n.DNE(12,fOt,2,0,"span",8)(13,mOt,2,0,"button",9),n.j41(14,"div",10)(15,"span",11),n.EFF(16," Add Pickup Times "),n.j41(17,"span",12),n.nrm(18,"i",13),n.k0s()(),n.j41(19,"span",14),n.EFF(20),n.k0s()()(),n.j41(21,"div",7),n.DNE(22,gOt,2,0,"span",8)(23,vOt,2,0,"button",9),n.j41(24,"div",10)(25,"span",11),n.EFF(26,"Add Homepage Content "),n.j41(27,"span",15),n.nrm(28,"i",13),n.k0s()(),n.j41(29,"span",14),n.EFF(30),n.k0s()()()(),n.j41(31,"span",1),n.nrm(32,"i",16),n.k0s(),n.j41(33,"div",17)(34,"button",18),n.bIt("click",function(){return o.activate.emit(!o.pantryLocation.IsActive)}),n.EFF(35," Activate "),n.k0s(),n.j41(36,"span",19),n.EFF(37),n.k0s()()()),2&i&&(n.R7$(4),n.SpI("",o.setupProgress,"%"),n.R7$(8),n.Y8G("ngIf",o.hasPickupTimes),n.R7$(),n.Y8G("ngIf",!o.hasPickupTimes),n.R7$(7),n.JRh(o.hasPickupTimes?"Complete":"Incomplete"),n.R7$(2),n.Y8G("ngIf",o.hasPhotos),n.R7$(),n.Y8G("ngIf",!o.hasPhotos),n.R7$(7),n.JRh(o.hasPhotos?"Complete":"Incomplete"),n.R7$(4),n.Y8G("disabled",!o.hasPhotos||!o.hasPickupTimes),n.R7$(3),n.JRh(o.hasPhotos&&o.hasPickupTimes?"ready to activate":"waiting for requirements"))},dependencies:[fi,ou],encapsulation:2})}}return t})(),phe=(()=>{class t{constructor(e){this.http=e}getPantryContent(e){var i=this;return(0,lr.A)(function*(){return yield Yo(i.http.get(`/api/orderahead/location/${e}/content`))})()}updatePantryContent(e,i,o){var s=this;return(0,lr.A)(function*(){let a=new Mp;return o&&o.forEach(l=>{a=a.append("locationIds",`${l}`)}),yield Yo(s.http.put(`/api/orderahead/location/${e}/content`,i,{params:a}))})()}getRelatedPantryContent(e){var i=this;return(0,lr.A)(function*(){return yield Yo(i.http.get(`/api/orderahead/location/${e}/relatedcontent`))})()}getRelatedPantryLocations(e){var i=this;return(0,lr.A)(function*(){return yield Yo(i.http.get(`/api/orderahead/location/${e}/relatedlocations`))})()}static{this.\u0275fac=function(i){return new(i||t)(n.KVO(Da))}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const yP=t=>({disabled:t}),yOt=t=>({"tw-flex tw-items-center tw-justify-between":!0,"tw-mb-4":t}),XX=t=>({"tw-hidden":t}),bOt=t=>({"tw-mb-4 tw-italic tw-text-red-500":t}),COt=t=>({group:t}),KX=t=>({field:t}),wOt=()=>({standalone:!0});function TOt(t,r){if(1&t&&(n.j41(0,"div"),n.nrm(1,"span",11),n.nI1(2,"highlight"),n.k0s()),2&t){const e=r.$implicit,i=r.searchText;n.R7$(),n.Y8G("innerHtml",n.i5U(2,1,e.Label,i),n.npT)}}function SOt(t,r){if(1&t&&(n.j41(0,"div")(1,"span"),n.EFF(2),n.k0s()()),2&t){const e=r.$implicit;n.R7$(2),n.JRh(e.Label)}}function xOt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",12)(1,"div",13),n.EFF(2," Copy Neighbor Profile from an existing location "),n.k0s(),n.j41(3,"div",14)(4,"div",15)(5,"dropdown",16,2),n.bIt("itemSelected",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onCopyFromLocationSelected(o))}),n.k0s()()()()}if(2&t){const e=n.XpG(),i=n.sdS(1),o=n.sdS(3);n.R7$(5),n.Y8G("options",e.locationOptions)("itemTemplate",i)("selectedItemTemplate",o)}}function EOt(t,r){1&t&&(n.j41(0,"span",32),n.EFF(1," * "),n.j41(2,"span",33),n.EFF(3,"Required by Feeding America"),n.k0s()())}function DOt(t,r){if(1&t){const e=n.RV6();n.j41(0,"span",34),n.bIt("click",function(o){n.eBV(e),n.XpG();const s=n.sdS(7);return n.Njj(s.toggle(o))}),n.nrm(1,"i",35),n.k0s()}}function kOt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",23)(1,"div",24)(2,"span",25),n.EFF(3),n.DNE(4,EOt,4,0,"span",26),n.k0s(),n.DNE(5,DOt,2,0,"span",27),n.j41(6,"p-popover",null,7),n.nrm(8,"field-preview",28),n.k0s()(),n.j41(9,"label",29)(10,"input",30),n.bIt("click",function(o){n.eBV(e);const s=n.XpG().field;return n.Njj(s.IsConfigurable?null:o.preventDefault())}),n.k0s(),n.nrm(11,"span",31),n.k0s()()}if(2&t){const e=n.XpG().field,i=n.XpG(2);n.R7$(3),n.SpI(" ",i.formatFieldName(e.Name)," "),n.R7$(),n.Y8G("ngIf",!e.IsConfigurable),n.R7$(),n.Y8G("ngIf",i.popoverInputFieldNames.includes(e.Name)),n.R7$(3),n.Y8G("field",e),n.R7$(),n.Y8G("for","np-"+e.Name),n.R7$(),n.Y8G("formControlName","np-"+e.Name)("id","np-"+e.Name),n.R7$(),n.Y8G("ngClass",n.eq3(8,yP,!e.IsConfigurable))}}function IOt(t,r){if(1&t&&n.DNE(0,kOt,12,10,"div",22),2&t){const e=r.field,i=n.XpG(2);n.Y8G("ngIf","no_fixed_address"!==e.Name||i.showNoFixedAddress)}}function AOt(t,r){1&t&&(n.j41(0,"span",32),n.EFF(1," * "),n.j41(2,"span",33),n.EFF(3,"Required by Feeding America"),n.k0s()())}function MOt(t,r){if(1&t){const e=n.RV6();n.j41(0,"span",34),n.bIt("click",function(o){n.eBV(e),n.XpG();const s=n.sdS(7);return n.Njj(s.toggle(o))}),n.nrm(1,"i",35),n.k0s()}}function ROt(t,r){if(1&t&&(n.j41(0,"div",39)(1,"div",40)(2,"span",41),n.EFF(3,"\u221f"),n.k0s(),n.nrm(4,"input",42),n.j41(5,"span",43),n.EFF(6,"Make Optional?"),n.k0s()()()),2&t){const e=n.XpG().field;n.R7$(4),n.Y8G("formControlName","np-optional-"+e.Name)}}function OOt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",36)(1,"div",24)(2,"span",25),n.EFF(3),n.DNE(4,AOt,4,0,"span",26),n.k0s(),n.DNE(5,MOt,2,0,"span",27),n.j41(6,"p-popover",null,7),n.nrm(8,"field-preview",28),n.k0s()(),n.j41(9,"label",29)(10,"input",37),n.bIt("click",function(o){const s=n.eBV(e).field;return n.Njj(s.IsConfigurable?null:o.preventDefault())})("change",function(o){const s=n.eBV(e).field,a=n.XpG(2);return n.Njj(a.onParentToggle(s.Name,o.target.checked))}),n.k0s(),n.nrm(11,"span",31),n.k0s()(),n.DNE(12,ROt,7,1,"div",38)}if(2&t){let e,i;const o=r.field,s=n.XpG(2);n.Y8G("ngClass",n.eq3(10,yOt,!(s.optionalFields.includes(o.Name)&&null!=(e=s.dynamicForm.get("np-"+o.Name))&&e.value))),n.R7$(3),n.SpI(" ",s.formatFieldName(o.Name)," "),n.R7$(),n.Y8G("ngIf",!o.IsConfigurable),n.R7$(),n.Y8G("ngIf",s.popoverInputFieldNames.includes(o.Name)),n.R7$(3),n.Y8G("field",o),n.R7$(),n.Y8G("for","np-"+o.Name),n.R7$(),n.Y8G("formControlName","np-"+o.Name)("id","np-"+o.Name),n.R7$(),n.Y8G("ngClass",n.eq3(12,yP,!o.IsConfigurable)),n.R7$(),n.Y8G("ngIf",s.optionalFields.includes(o.Name)&&(null==(i=s.dynamicForm.get("np-"+o.Name))?null:i.value))}}function FOt(t,r){1&t&&(n.j41(0,"span",32),n.EFF(1," * "),n.j41(2,"div",33),n.EFF(3,"Required by Feeding America"),n.k0s()())}function POt(t,r){if(1&t){const e=n.RV6();n.j41(0,"span",34),n.bIt("click",function(o){n.eBV(e),n.XpG();const s=n.sdS(7);return n.Njj(s.toggle(o))}),n.nrm(1,"i",35),n.k0s()}}function LOt(t,r){if(1&t){const e=n.RV6();n.j41(0,"span",34),n.bIt("click",function(o){n.eBV(e),n.XpG();const s=n.sdS(7);return n.Njj(s.toggle(o))}),n.nrm(1,"i",35),n.k0s()}}function NOt(t,r){if(1&t&&(n.j41(0,"div",49)(1,"div",40)(2,"span",41),n.EFF(3,"\u221f"),n.k0s(),n.nrm(4,"input",42),n.j41(5,"span",43),n.EFF(6,"Make Optional?"),n.k0s()()()),2&t){const e=n.XpG().$implicit;n.R7$(4),n.Y8G("formControlName","np-optional-"+e.Name)}}function GOt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div")(1,"div",46)(2,"div",24)(3,"span",47),n.EFF(4),n.k0s(),n.DNE(5,LOt,2,0,"span",27),n.j41(6,"p-popover",null,7),n.nrm(8,"field-preview",28),n.k0s()(),n.j41(9,"label",29)(10,"input",30),n.bIt("click",function(o){const s=n.eBV(e).$implicit;return n.Njj(s.IsConfigurable?null:o.preventDefault())}),n.k0s(),n.nrm(11,"span",31),n.k0s()(),n.DNE(12,NOt,7,1,"div",48),n.k0s()}if(2&t){let e;const i=r.$implicit,o=n.XpG(4);n.R7$(4),n.JRh(o.formatFieldName(i.Name)),n.R7$(),n.Y8G("ngIf",o.popoverInputFieldNames.includes(i.Name)),n.R7$(3),n.Y8G("field",i),n.R7$(),n.Y8G("for","np-"+i.Name),n.R7$(),n.Y8G("formControlName","np-"+i.Name)("id","np-"+i.Name),n.R7$(),n.Y8G("ngClass",n.eq3(8,yP,!i.IsConfigurable)),n.R7$(),n.Y8G("ngIf",o.optionalFields.includes(i.Name)&&(null==(e=o.dynamicForm.get("np-"+i.Name))?null:e.value))}}function BOt(t,r){if(1&t&&(n.j41(0,"div"),n.DNE(1,GOt,13,10,"div",45),n.k0s()),2&t){const e=n.XpG().field;n.R7$(),n.Y8G("ngForOf",e.relatedFields)}}function VOt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",23)(1,"div",24)(2,"span",25),n.EFF(3),n.DNE(4,FOt,4,0,"span",26),n.k0s(),n.DNE(5,POt,2,0,"span",27),n.j41(6,"p-popover",null,7),n.nrm(8,"field-preview",28),n.k0s()(),n.j41(9,"label",29)(10,"input",37),n.bIt("click",function(o){const s=n.eBV(e).field;return n.Njj(s.IsConfigurable?null:o.preventDefault())})("change",function(o){const s=n.eBV(e).field,a=n.XpG(2);return n.Njj(a.onCounterParentToggle(o.target.checked,s.relatedFields))}),n.k0s(),n.nrm(11,"span",31),n.k0s()(),n.DNE(12,BOt,2,1,"div",44)}if(2&t){let e;const i=r.field,o=n.XpG(2);n.R7$(3),n.SpI(" ",o.formatFieldName(i.Name)," "),n.R7$(),n.Y8G("ngIf",!i.IsConfigurable),n.R7$(),n.Y8G("ngIf",o.popoverInputFieldNames.includes(i.Name)),n.R7$(3),n.Y8G("field",i),n.R7$(),n.Y8G("for","np-"+i.Name),n.R7$(),n.Y8G("formControlName","np-"+i.Name)("id","np-"+i.Name),n.R7$(),n.Y8G("ngClass",n.eq3(9,yP,!i.IsConfigurable)),n.R7$(),n.Y8G("ngIf",null==(e=o.dynamicForm.get("np-"+i.Name))?null:e.value)}}function jOt(t,r){1&t&&(n.j41(0,"div",59),n.EFF(1," * Email and Phone Number fields will always be visible. Toggling neither allows neighbor to choose one or both. "),n.k0s())}function HOt(t,r){1&t&&(n.j41(0,"span",32),n.EFF(1," * "),n.j41(2,"div",33),n.EFF(3,"Required by Feeding America"),n.k0s()())}function UOt(t,r){if(1&t){const e=n.RV6();n.j41(0,"span",34),n.bIt("click",function(o){n.eBV(e),n.XpG();const s=n.sdS(9);return n.Njj(s.toggle(o))}),n.nrm(1,"i",35),n.k0s()}}function $Ot(t,r){if(1&t&&(n.j41(0,"div",60)(1,"span",41),n.EFF(2,"\u221f"),n.k0s(),n.nrm(3,"input",61),n.j41(4,"span",43),n.EFF(5,"Make Optional?"),n.k0s()()),2&t){const e=n.XpG().$implicit;n.Y8G("ngClass",n.eq3(3,XX,"email_address"===e.field.Name||"phone_number"===e.field.Name)),n.R7$(3),n.Y8G("formControlName","np-optional-"+e.field.Name)("ngClass",n.eq3(5,XX,"email_address"===e.field.Name||"phone_number"===e.field.Name))}}function YOt(t,r){if(1&t&&(n.j41(0,"div",62),n.EFF(1," AND/OR "),n.k0s()),2&t){const e=n.XpG().$implicit;n.Y8G("ngClass",n.eq3(1,XX,"email_address"===e.field.Name||"phone_number"===e.field.Name))}}function WOt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",52),n.DNE(1,jOt,2,0,"div",53),n.j41(2,"div",54)(3,"div",55)(4,"span",25),n.EFF(5),n.DNE(6,HOt,4,0,"span",26),n.k0s(),n.DNE(7,UOt,2,0,"span",27),n.j41(8,"p-popover",null,7),n.nrm(10,"field-preview",28),n.k0s()(),n.j41(11,"label",56)(12,"input",30),n.bIt("click",function(o){const s=n.eBV(e).$implicit;return n.Njj(s.field.IsConfigurable?null:o.preventDefault())}),n.k0s(),n.nrm(13,"span",31),n.k0s()(),n.DNE(14,$Ot,6,7,"div",57)(15,YOt,2,3,"div",58),n.k0s()}if(2&t){let e;const i=r.$implicit,o=r.last,s=n.XpG(3);n.R7$(),n.Y8G("ngIf","email_address"===i.field.Name),n.R7$(4),n.SpI(" ",s.formatFieldName(i.field.Name)," "),n.R7$(),n.Y8G("ngIf",!i.IsConfigurable),n.R7$(),n.Y8G("ngIf",s.popoverInputFieldNames.includes(i.field.Name)),n.R7$(3),n.Y8G("field",i.field),n.R7$(),n.Y8G("for","np-"+i.field.Name),n.R7$(),n.Y8G("formControlName","np-"+i.field.Name)("id","np-"+i.field.Name),n.R7$(),n.Y8G("ngClass",n.eq3(11,yP,!i.field.IsConfigurable)),n.R7$(),n.Y8G("ngIf",s.optionalFields.includes(i.field.Name)&&(null==(e=s.dynamicForm.get("np-"+i.field.Name))?null:e.value)),n.R7$(),n.Y8G("ngIf",!o)}}function zOt(t,r){if(1&t&&(n.j41(0,"div",36),n.EFF(1," At least one of the above must be selected. "),n.k0s()),2&t){const e=n.XpG().$implicit,i=n.XpG(3);n.Y8G("ngClass",n.eq3(1,bOt,i.dynamicForm.hasError("orConditionFailed")&&"age"===e.field.Name))}}function qOt(t,r){if(1&t&&(n.j41(0,"div"),n.DNE(1,zOt,2,3,"div",63),n.k0s()),2&t){const e=r.$implicit,i=n.XpG(3);n.R7$(),n.Y8G("ngIf",(null==i.dynamicForm?null:i.dynamicForm.hasError("orConditionFailed"))&&"age"===e.field.Name)}}function XOt(t,r){if(1&t&&(n.j41(0,"div",50),n.DNE(1,WOt,16,13,"div",51),n.k0s(),n.DNE(2,qOt,2,1,"div",45)),2&t){const e=r.group;n.R7$(),n.Y8G("ngForOf",e),n.R7$(),n.Y8G("ngForOf",e)}}function KOt(t,r){1&t&&n.eu8(0)}function QOt(t,r){if(1&t&&(n.qex(0),n.DNE(1,KOt,1,0,"ng-container",67),n.bVm()),2&t){const e=n.XpG().$implicit;n.XpG(2);const i=n.sdS(8);n.R7$(),n.Y8G("ngTemplateOutlet",i)("ngTemplateOutletContext",n.eq3(2,COt,e))}}function JOt(t,r){if(1&t&&(n.qex(0),n.DNE(1,QOt,2,4,"ng-container",44),n.bVm()),2&t){const e=r.$implicit,i=n.XpG().$implicit;n.R7$(),n.Y8G("ngIf",i.value.includes(e[0].field.Name))}}function ZOt(t,r){1&t&&n.eu8(0)}function eFt(t,r){if(1&t&&(n.qex(0),n.DNE(1,ZOt,1,0,"ng-container",67),n.bVm()),2&t){const e=n.XpG().$implicit;n.XpG(2);const i=n.sdS(2);n.R7$(),n.Y8G("ngTemplateOutlet",i)("ngTemplateOutletContext",n.eq3(2,KX,e))}}function tFt(t,r){if(1&t&&(n.qex(0),n.DNE(1,eFt,2,4,"ng-container",44),n.bVm()),2&t){const e=r.$implicit,i=n.XpG().$implicit;n.R7$(),n.Y8G("ngIf",i.value.includes(e.Name))}}function nFt(t,r){1&t&&n.eu8(0)}function iFt(t,r){if(1&t&&(n.qex(0),n.DNE(1,nFt,1,0,"ng-container",67),n.bVm()),2&t){const e=n.XpG().$implicit;n.XpG(2);const i=n.sdS(4);n.R7$(),n.Y8G("ngTemplateOutlet",i)("ngTemplateOutletContext",n.eq3(2,KX,e))}}function rFt(t,r){if(1&t&&(n.qex(0),n.DNE(1,iFt,2,4,"ng-container",44),n.bVm()),2&t){const e=r.$implicit,i=n.XpG().$implicit;n.R7$(),n.Y8G("ngIf",i.value.includes(e.Name))}}function oFt(t,r){1&t&&n.eu8(0)}function sFt(t,r){if(1&t&&(n.qex(0),n.DNE(1,oFt,1,0,"ng-container",67),n.bVm()),2&t){const e=n.XpG().$implicit;n.XpG(2);const i=n.sdS(6);n.R7$(),n.Y8G("ngTemplateOutlet",i)("ngTemplateOutletContext",n.eq3(2,KX,e))}}function aFt(t,r){if(1&t&&(n.qex(0),n.DNE(1,sFt,2,4,"ng-container",44),n.bVm()),2&t){const e=r.$implicit,i=n.XpG().$implicit;n.R7$(),n.Y8G("ngIf",i.value.includes(e.Name))}}function lFt(t,r){if(1&t&&(n.j41(0,"div",64)(1,"div",65)(2,"span",66),n.EFF(3),n.k0s(),n.DNE(4,JOt,2,1,"ng-container",45)(5,tFt,2,1,"ng-container",45)(6,rFt,2,1,"ng-container",45)(7,aFt,2,1,"ng-container",45),n.k0s()()),2&t){const e=r.$implicit,i=n.XpG(2);n.R7$(3),n.SpI(" ",e.key," "),n.R7$(),n.Y8G("ngForOf",i.groupedConditionalFields),n.R7$(),n.Y8G("ngForOf",i.requiredFields),n.R7$(),n.Y8G("ngForOf",i.configurableFields),n.R7$(),n.Y8G("ngForOf",i.counterFields)}}function cFt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",12)(1,"div",13),n.EFF(2,"Copy Neighbor Profile to other locations"),n.k0s(),n.j41(3,"div",14)(4,"div",15)(5,"p-multiSelect",68),n.mxI("ngModelChange",function(o){n.eBV(e);const s=n.XpG(2);return n.DH7(s.selectedLocations,o)||(s.selectedLocations=o),n.Njj(o)}),n.bIt("onChange",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.handleMultiSelectChange(o))}),n.k0s()()()()}if(2&t){const e=n.XpG(2);n.R7$(5),n.R50("ngModel",e.selectedLocations),n.Y8G("ngModelOptions",n.lJ4(4,wOt))("options",e.locationOptions)("maxSelectedLabels",2)}}function uFt(t,r){if(1&t){const e=n.RV6();n.j41(0,"form",17),n.bIt("ngSubmit",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onSumbit())}),n.DNE(1,IOt,1,1,"ng-template",null,3,n.C5r)(3,OOt,13,14,"ng-template",null,4,n.C5r)(5,VOt,13,11,"ng-template",null,5,n.C5r)(7,XOt,3,2,"ng-template",null,6,n.C5r),n.j41(9,"h3"),n.EFF(10,"Configure Neighbor Profile Fields"),n.k0s(),n.j41(11,"div",18),n.DNE(12,lFt,8,5,"div",19),n.nI1(13,"keyvalue"),n.k0s(),n.DNE(14,cFt,6,5,"div",8),n.j41(15,"div",20)(16,"button",21),n.EFF(17," Save "),n.k0s()()()}if(2&t){const e=n.XpG();n.Y8G("formGroup",e.dynamicForm),n.R7$(12),n.Y8G("ngForOf",n.i5U(13,4,e.fieldGroupings,e.keepOriginalOrder)),n.R7$(2),n.Y8G("ngIf",e.locationOptions.length&&!e.isLoading),n.R7$(2),n.Y8G("disabled",!e.dynamicForm.valid)}}function dFt(t,r){1&t&&(n.j41(0,"div",69),n.nrm(1,"loading",70),n.k0s())}let pFt=(()=>{class t{constructor(e,i,o,s){this.fb=e,this.neighborProfileConfigurationService=i,this.toasterService=o,this.pantryContentService=s,this.isLoading=!0,this.allFieldsData=null,this.locationFieldsInitialValues=null,this.locationConditionalFieldsData=null,this.dynamicForm=this.fb.group({}),this.requiredFields=null,this.configurableFields=null,this.counterFields=[],this.conditionalFields=null,this.groupedConditionalFields=[],this.optionalFields=["address_line_1","address_line_2","city","state","county","phone_number","middle_name","suffix","proxy_address_line_1","proxy_address_line_2","proxy_middle_name","proxy_suffix","proxy_city","proxy_state","proxy_county","proxy_phone_number"],this.forcedOptionalFields=["address_line_1","address_line_2","middle_name","suffix","proxy_address_line_1","proxy_address_line_2","proxy_middle_name","proxy_suffix"],this.popoverInputFieldNames=["gender_identity","race_ethnicity","preferred_language","other_govt_programs","disability_status","household_monthly_income","living_situation","employment_status","military_status","food_insecurity_worried","food_insecurity_experienced","dietary_restrictions","food_allergies"],this.fieldGroupings={"Personal Information":["first_name","middle_name","last_name","suffix","birth_date","age","gender_identity","race_ethnicity","preferred_language","disability_status"],"Contact Details":["address_line_1","address_line_2","city","state","zipcode","county","email_address","phone_number","ok_to_contact","preferred_contact_method","no_fixed_address"],"Household Information":["household_adults_count","household_children_count","household_seniors_count","household_adult_first_name","household_adult_last_name","household_child_first_name","household_child_last_name","household_senior_first_name","household_senior_last_name"],"Income and Housing":["other_govt_programs","household_monthly_income","living_situation","employment_status","military_status"],"Food Needs":["food_insecurity_worried","food_insecurity_experienced","dietary_restrictions","food_allergies"],"Proxy Details":["proxy_count","proxy_first_name","proxy_middle_name","proxy_last_name","proxy_suffix","proxy_address_line_1","proxy_address_line_2","proxy_city","proxy_state","proxy_zipcode","proxy_phone_number","proxy_no_phone_number"]},this.copyFromLocations=[],this.locationOptions=[],this.selectedLocations=[],this.selectedItemsLabel="Select Locations",this.keepOriginalOrder=()=>0}ngOnInit(){this.getNeighborProfileData(this.locationId)}applyEmailPhoneDependency(){const e=this.dynamicForm.get("np-phone_number"),i=this.dynamicForm.get("np-email_address"),o="np-optional-phone_number",s=()=>{const a=e?.value,l=i?.value;if(a){this.dynamicForm.contains(o)||this.dynamicForm.addControl(o,this.fb.control(!0));const c=this.dynamicForm.get(o);l?c?.enable():(c?.disable(),c?.setValue(!1,{emitEvent:!1}))}else this.dynamicForm.contains(o)&&this.dynamicForm.removeControl(o)};e?.valueChanges.subscribe(s),i?.valueChanges.subscribe(s),s()}buildForm(){if(this.allFieldsData&&this.locationFieldsInitialValues){this.allFieldsData.forEach(o=>{const s=this.locationFieldsInitialValues?.find(c=>c.NeighborProfileFieldID===o.ID),a=!!s,l=a&&s.IsActive||!o.IsConfigurable;if(this.dynamicForm.addControl(`np-${o.Name}`,this.fb.control(l)),this.optionalFields.includes(o.Name)){const c=this.dynamicForm.get(`np-${o.Name}`),d=`np-optional-${o.Name}`,f=()=>{let v=!0;if(a&&!0===s?.IsRequired&&(v=!1),this.dynamicForm.contains(d)?this.dynamicForm.get(d)?.patchValue(v):this.dynamicForm.addControl(d,this.fb.control(v)),this.forcedOptionalFields.includes(o.Name)){const w=this.dynamicForm.get(d);w?.setValue(!0,{emitEvent:!1}),w?.disable()}};"proxy_address_line_1"===o.Name||"proxy_address_line_2"===o.Name?f():(c?.valueChanges.subscribe(v=>{v?f():this.dynamicForm.contains(d)&&this.dynamicForm.removeControl(d)}),l&&f())}}),this.separateFields(this.allFieldsData);const i=this.groupedConditionalFields.filter(o=>o.some(s=>"OR"===s.condition?.ConditionType)).map(o=>{const s=o.map(l=>l.field.Name);return s.includes("email_address")&&s.includes("phone_number")?null:this.applyOrConditionValidator(s)}).filter(o=>null!==o);this.dynamicForm.setValidators(i),this.dynamicForm.updateValueAndValidity(),this.applyEmailPhoneDependency()}}onParentToggle(e,i){const o=`np-optional-${e}`;i&&this.dynamicForm.contains(o)&&this.dynamicForm.get(o).setValue(!0)}onCounterParentToggle(e,i){e||i.forEach(o=>{this.dynamicForm.get(`np-${o.Name}`)?.setValue(!1,{emitEvent:!1})})}formatFieldName(e){return e.split("_").map(i=>i.charAt(0).toUpperCase()+i.slice(1)).join(" ")}applyOrConditionValidator(e){return i=>{const o=i;return o&&o.controls&&!e.some(a=>o.get(`np-${a}`)?.value)?{orConditionFailed:!0}:null}}separateFields(e){this.conditionalFields=this.getConditionalFields(e),this.counterFields=this.getCounterFields(e),this.requiredFields=this.getFANORequiredFields(e),this.configurableFields=this.getConfigurableFields(e),this.groupConditionalFields()}isFieldTypeCounterOrRelated(e){return"counter"===e.InputType||null!==e.CounterFieldID}isConditionalField(e){return(this.conditionalFields?.map(o=>o.field.ID)||[]).includes(e.ID)}groupConditionalFields(){if(this.conditionalFields){const e=this.conditionalFields.reduce((i,o)=>{const s=o.condition.ID;return i[s]||(i[s]=[]),i[s].push(o),i},{});this.groupedConditionalFields=Object.values(e)}}getFANORequiredFields(e){return e.filter(i=>!i.IsConfigurable&&!this.isFieldTypeCounterOrRelated(i)&&!this.isConditionalField(i))}getConfigurableFields(e){return e.filter(i=>i.IsConfigurable&&!this.isFieldTypeCounterOrRelated(i)&&!this.isConditionalField(i))}getCounterFields(e){return e.filter(s=>"counter"===s.InputType).map(s=>({...s,relatedFields:e.filter(a=>a.CounterFieldID===s.ID)}))}getConditionalFields(e){return this.locationConditionalFieldsData?.reduce((o,s)=>{let a;try{a=JSON.parse(s.FieldIDs)}catch(l){console.error("Failed to parse FieldIDs:",l)}return a&&a.forEach(l=>{const c=e.find(d=>d.ID===l);c&&o.push({field:c,condition:s})}),o},[])||[]}mapStateToFields(){const e=this.dynamicForm.value;return Object.entries(e).reduce((o,[s,a])=>{if(!a||s.startsWith("np-optional-")||!a)return o;const l=s.replace(/^np-/,""),c=this.allFieldsData.find(v=>v.Name===l),d=`np-optional-${l}`,f=e.hasOwnProperty(d)&&!0===e[d];return c?.ID&&o.push({NeighborProfileFieldID:c.ID,PantryLocationID:this.locationId,IsActive:!0,IsRequired:!this.forcedOptionalFields.includes(c.Name)&&!f}),o},[])}handleMultiSelectChange(e){this.selectedLocations=e.value}get showNoFixedAddress(){const e=this.dynamicForm.get("np-address_line_1")?.value,i=this.dynamicForm.get("np-address_line_2")?.value,o=this.dynamicForm.get("np-city")?.value,s=this.dynamicForm.get("np-state")?.value,a=this.dynamicForm.get("np-county")?.value;return e||i||o||s||a}onSumbit(){const e=this.mapStateToFields(),i=this.selectedLocations.map(s=>s.ID),o=[this.locationId,...i];this.postNeighborProfileConfigs(o,e)}onCopyFromLocationSelected(e){var i=this;return(0,lr.A)(function*(){if(e)try{i.isLoading=!0;const o=yield i.neighborProfileConfigurationService.getNeighborProfileFields(e.ID);i.allFieldsData=o?.Value?.AllFields||null,i.locationFieldsInitialValues=o?.Value?.LocationFields||null,i.locationConditionalFieldsData=o?.Value?.LocationConditionalFields||null,i.dynamicForm=i.fb.group({}),i.buildForm(),i.toasterService.displaySuccessToast("Success",`Copied Neighor Profile from ${e.Label}`),i.isLoading=!1}catch{i.toasterService.displayErrorToast("Error","Error copying neighbor profile"),i.isLoading=!1}})()}postNeighborProfileConfigs(e,i){var o=this;return(0,lr.A)(function*(){try{o.isLoading=!0;const s=e.map(l=>o.neighborProfileConfigurationService.postNeighborProfileConfig(l,i)),a=yield Promise.all(s);a[0].Successful?o.toasterService.displaySuccessToast("Success","Configuration saved"):o.toasterService.displayErrorToast("Error",a[0].FailureReason||"Error saving neighbor profile configuration data"),o.isLoading=!1}catch{o.toasterService.displayErrorToast("Error","Error saving neighbor profile configuration data"),o.isLoading=!1}})()}getNeighborProfileData(e){var i=this;return(0,lr.A)(function*(){try{i.isLoading=!0;const o=yield Promise.all([i.neighborProfileConfigurationService.getNeighborProfileFields(e),i.pantryContentService.getRelatedPantryLocations(i.locationId)]),s=o?.[0],a=o?.[1];i.locationOptions=[...a].sort((l,c)=>l.Label.localeCompare(c.Label)),i.allFieldsData=s?.Value?.AllFields||null,i.locationFieldsInitialValues=s?.Value?.LocationFields||null,i.copyFromLocations=a,i.locationConditionalFieldsData=s?.Value?.LocationConditionalFields||null,i.buildForm(),i.isLoading=!1}catch{i.toasterService.displayErrorToast("Error","Error loading neighbor profile configuration data"),i.isLoading=!1}})()}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(R$),n.rXU(uhe),n.rXU(tc),n.rXU(phe))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["neighbor-profile-configuration"]],inputs:{locationId:"locationId"},standalone:!1,decls:7,vars:3,consts:[["copyFromLocationsTemplate",""],["selectedContentTemplate",""],["dropdown",""],["requiredFieldTemplate",""],["configurableFieldTemplate",""],["counterFieldTemplate",""],["conditionalFieldTemplate",""],["popover",""],["class","panel panel-default mt-10",4,"ngIf"],[3,"formGroup","ngSubmit",4,"ngIf"],["class","tw-flex tw-items-center tw-justify-center tw-p-6",4,"ngIf"],[3,"innerHtml"],[1,"panel","panel-default","mt-10"],[1,"panel-heading"],[1,"panel-body"],[1,"tw-grid","tw-grid-cols-1","lg:tw-grid-cols-2","xl:tw-grid-cols-3"],["filterMatchMode","contains","filterFields","LocationName","placeholder","Select a location","styleClass","",3,"itemSelected","options","itemTemplate","selectedItemTemplate"],[3,"ngSubmit","formGroup"],[1,"tw-grid","tw-items-stretch","tw-gap-4","md:tw-grid-cols-1","lg:tw-grid-cols-2","xl:tw-grid-cols-3","2xl:tw-grid-cols-4"],["class","tw-h-full",4,"ngFor","ngForOf"],[1,"tw-mx-auto","tw-mt-4"],["type","submit",1,"btn","btn-primary",3,"disabled"],["class","tw-mb-4 tw-flex tw-items-center tw-justify-between",4,"ngIf"],[1,"tw-mb-4","tw-flex","tw-items-center","tw-justify-between"],[1,"tw-h-8","tw-flex-auto"],[1,"tooltip-container","tw-pr-2"],["class","tooltip-trigger",4,"ngIf"],["class","info-popover-button tw-pr-2","style","cursor: pointer",3,"click",4,"ngIf"],[3,"field"],[1,"profile-toggle",3,"for"],["type","checkbox",3,"click","formControlName","id"],[1,"profile-slider",3,"ngClass"],[1,"tooltip-trigger"],[1,"tooltip"],[1,"info-popover-button","tw-pr-2",2,"cursor","pointer",3,"click"],[1,"fa","fa-info-circle"],[3,"ngClass"],["type","checkbox",3,"click","change","formControlName","id"],["class","tw-mb-4 tw-mt-0",4,"ngIf"],[1,"tw-mb-4","tw-mt-0"],[1,"tw-flex","tw-items-center","tw-space-x-2"],[1,"tw-pb-2","tw-text-xl","tw-font-bold","tw-text-gray-500"],["type","checkbox",1,"tw-h-5","tw-w-5",3,"formControlName"],[1,"tw-h-5"],[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"tw-mb-4","tw-flex","tw-items-center","tw-justify-between","tw-pl-8"],[1,"tw-pr-2"],["class","tw-mb-4 tw-mt-0 tw-pl-8",4,"ngIf"],[1,"tw-mb-4","tw-mt-0","tw-pl-8"],[1,""],["class","tw-mb-4",4,"ngFor","ngForOf"],[1,"tw-mb-4"],["class","tw-text-md tw-pb-2 tw-italic",4,"ngIf"],[1,"tw-flex","tw-w-full","tw-items-center","tw-justify-between"],[1,"tw-flex","tw-h-8","tw-flex-1","tw-items-center"],[1,"profile-toggle","tw-whitespace-nowrap",3,"for"],["class","tw-mt-2 tw-flex tw-items-center tw-space-x-2 tw-pl-4",3,"ngClass",4,"ngIf"],["class","tw-mt-4 tw-w-full tw-pl-4 tw-italic",3,"ngClass",4,"ngIf"],[1,"tw-text-md","tw-pb-2","tw-italic"],[1,"tw-mt-2","tw-flex","tw-items-center","tw-space-x-2","tw-pl-4",3,"ngClass"],["type","checkbox",1,"tw-h-5","tw-w-5",3,"formControlName","ngClass"],[1,"tw-mt-4","tw-w-full","tw-pl-4","tw-italic",3,"ngClass"],[3,"ngClass",4,"ngIf"],[1,"tw-h-full"],[1,"tw-flex","tw-h-full","tw-flex-col","tw-rounded-lg","tw-bg-neutral-100","tw-px-4"],[1,"tw-my-4","tw-text-lg","tw-font-semibold"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["styleClass","tw-w-full","optionLabel","Label","placeholder","Select Locations","selectedItemsLabel","{0} selected",3,"ngModelChange","onChange","ngModel","ngModelOptions","options","maxSelectedLabels"],[1,"tw-flex","tw-items-center","tw-justify-center","tw-p-6"],["message","Loading Profile Configuration..."]],template:function(i,o){1&i&&n.DNE(0,TOt,3,4,"ng-template",null,0,n.C5r)(2,SOt,3,1,"ng-template",null,1,n.C5r)(4,xOt,7,3,"div",8)(5,uFt,18,7,"form",9)(6,dFt,2,0,"div",10),2&i&&(n.R7$(4),n.Y8G("ngIf",o.copyFromLocations.length&&!o.isLoading),n.R7$(),n.Y8G("ngIf",!o.isLoading&&o.allFieldsData&&o.allFieldsData.length>0),n.R7$(),n.Y8G("ngIf",o.isLoading))},dependencies:[bi,oo,fi,uo,wv,Cv,_o,Rm,ko,Tv,Eb,Yy,Uu,Hb,kv,dhe,Zo,Zd],styles:['.profile-toggle[_ngcontent-%COMP%]{position:relative;display:inline-block;width:58px;height:32px}.profile-toggle[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{display:none}.profile-slider[_ngcontent-%COMP%]{position:absolute;cursor:pointer;inset:0;background-color:#ccc;transition:.3s;border-radius:34px}.profile-slider[_ngcontent-%COMP%]:before{position:absolute;content:"";height:26px;width:26px;left:3px;bottom:3px;background-color:#fff;transition:.3s;border-radius:50%}input[_ngcontent-%COMP%]:checked, input[_ngcontent-%COMP%]:checked + .profile-slider[_ngcontent-%COMP%]{background-color:#2196f3}input[_ngcontent-%COMP%]:checked + .profile-slider[_ngcontent-%COMP%]:before{transform:translate(26px)}.profile-slider.disabled[_ngcontent-%COMP%]{cursor:not-allowed;opacity:.15}.tooltip-container[_ngcontent-%COMP%]{position:relative;display:inline-block}.tooltip-trigger[_ngcontent-%COMP%]{cursor:pointer;color:red}.tooltip[_ngcontent-%COMP%]{visibility:hidden;opacity:0;position:absolute;bottom:100%;left:100%;background-color:#ccc;color:#3b3b3b;padding:8px;border-radius:6px;text-align:center;white-space:nowrap;font-size:small;transition:opacity .3s ease,visibility .3s ease;z-index:10}.tooltip-container[_ngcontent-%COMP%]:hover   .tooltip[_ngcontent-%COMP%]{visibility:visible;opacity:1}']})}}return t})(),hFt=(()=>{class t{constructor(){this.classes=""}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["icon-mobile-phone"]],inputs:{classes:"classes"},standalone:!1,decls:2,vars:1,consts:[["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","1.5","stroke","currentColor",1,"tw-w-12","tw-h-12","tw-rotate-90",3,"ngClass"],["stroke-linecap","round","stroke-linejoin","round","d","M10.5 1.5H8.25A2.25 2.25 0 006 3.75v16.5a2.25 2.25 0 002.25 2.25h7.5A2.25 2.25 0 0018 20.25V3.75a2.25 2.25 0 00-2.25-2.25H13.5m-3 0V3h3V1.5m-3 0h3m-3 18.75h3"]],template:function(i,o){1&i&&(n.qSk(),n.j41(0,"svg",0),n.nrm(1,"path",1),n.k0s()),2&i&&n.Y8G("ngClass",o.classes)},dependencies:[bi],encapsulation:2})}}return t})();const fFt=t=>({"tw-w-12 tw-h-12 tw-rotate-90":!0,"tw-text-fa-orange-500":t}),mFt=t=>({"tw-w-12 tw-h-12":!0,"tw-text-fa-orange-500":t}),gFt=(t,r)=>({"tw-px-8":t,"tw-px-4":r}),hhe=(t,r)=>({"tw-h-8":t,"tw-h-4":r});function vFt(t,r){1&t&&n.nrm(0,"span",12)}function _Ft(t,r){if(1&t&&n.nrm(0,"iframe",13),2&t){const e=n.XpG();n.Y8G("src",e.safeUrl,n.f$h)("height",e.landscape?e.width:e.height)("width",e.landscape?e.height:e.width)}}function yFt(t,r){1&t&&(n.j41(0,"div",14),n.nrm(1,"span",15)(2,"span",16),n.k0s())}let bFt=(()=>{class t{constructor(e){this.sanitizer=e,this.url="",this.width=375,this.height=667,this.safeUrl=null,this.landscape=!1}ngOnInit(){this.setUrl()}ngOnChanges(e){e.url&&this.setUrl()}setUrl(){this.safeUrl=this.sanitizer.bypassSecurityTrustResourceUrl(this.url)}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(Ku))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["mobile-preview"]],inputs:{url:"url",width:"width",height:"height"},standalone:!1,features:[n.OA$],decls:13,vars:21,consts:[[1,"tw-flex","tw-flex-col"],[1,"tw-self-start"],["title","Landscape",1,"btn-reset","tw-text-gray-500",3,"click"],[3,"classes"],["title","Portrait",1,"btn-reset","tw-text-gray-500",3,"click"],[1,"tw-flex","tw-transition-all","tw-duration-300","tw-transform"],[1,"tw-inline-block","tw-rounded-xl","tw-border","tw-border-solid","tw-border-gray-900","tw-bg-gray-800",3,"ngClass"],[1,"tw-flex","tw-items-center","tw-justify-center",3,"ngClass"],["class","tw-block tw-h-1 tw-w-8 tw-bg-gray-700",4,"ngIf"],["style","border: none","class","tw-transition-all tw-rounded-lg tw-bg-gray-900",3,"src","height","width",4,"ngIf"],[1,"tw-flex","tw-h-8","tw-items-center","tw-justify-center",3,"ngClass"],["class","tw-mt-24 tw-flex tw-flex-col",4,"ngIf"],[1,"tw-block","tw-h-1","tw-w-8","tw-bg-gray-700"],[1,"tw-transition-all","tw-rounded-lg","tw-bg-gray-900",2,"border","none",3,"src","height","width"],[1,"tw-mt-24","tw-flex","tw-flex-col"],[1,"tw-block","tw-h-24","tw-w-1","tw-rounded-r","tw-bg-gray-600"],[1,"tw-mt-6","tw-block","tw-h-12","tw-w-1","tw-rounded-r","tw-bg-gray-600"]],template:function(i,o){1&i&&(n.j41(0,"div",0)(1,"div",1)(2,"button",2),n.bIt("click",function(){return o.landscape=!0}),n.nrm(3,"icon-mobile-phone",3),n.k0s(),n.j41(4,"button",4),n.bIt("click",function(){return o.landscape=!1}),n.nrm(5,"icon-mobile-phone",3),n.k0s()(),n.j41(6,"div",5)(7,"div",6)(8,"div",7),n.DNE(9,vFt,1,0,"span",8),n.k0s(),n.DNE(10,_Ft,1,3,"iframe",9),n.nrm(11,"div",10),n.k0s(),n.DNE(12,yFt,3,0,"div",11),n.k0s()()),2&i&&(n.R7$(3),n.Y8G("classes",n.eq3(8,fFt,o.landscape)),n.R7$(2),n.Y8G("classes",n.eq3(10,mFt,!o.landscape)),n.R7$(2),n.Y8G("ngClass",n.l_i(12,gFt,o.landscape,!o.landscape)),n.R7$(),n.Y8G("ngClass",n.l_i(15,hhe,!o.landscape,o.landscape)),n.R7$(),n.Y8G("ngIf",!o.landscape),n.R7$(),n.Y8G("ngIf",o.safeUrl),n.R7$(),n.Y8G("ngClass",n.l_i(18,hhe,!o.landscape,o.landscape)),n.R7$(),n.Y8G("ngIf",!o.landscape))},dependencies:[bi,fi,hFt],encapsulation:2})}}return t})(),CFt=(()=>{class t{constructor(e){this.locationsService=e,this.url="",this.isLandscape=!1,this.pantryLocations=[],this.selectedPantryLocation=null,this.locationUrl=""}ngOnInit(){this.locationsService.getLocations().then(e=>{e.Value&&(this.pantryLocations=e.Value)})}onLocationSelected(e){e?.Address?.PostalCode&&(this.locationUrl=`${this.url}/pantries?zip=${e.Address.PostalCode}`)}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(qX))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["neighbor-preview"]],inputs:{url:"url"},standalone:!1,decls:6,vars:3,consts:[[1,"tw-flex","tw-flex-col"],[1,"tw-flex","tw-items-center","tw-space-x-2","tw-mb-2"],[1,"tw-font-semibold"],["optionLabel","Label","placeholder","Select Location",3,"ngModelChange","onChange","ngModel","options"],[3,"url"]],template:function(i,o){1&i&&(n.j41(0,"div",0)(1,"div",1)(2,"span",2),n.EFF(3," Location to Preview: "),n.k0s(),n.j41(4,"p-select",3),n.mxI("ngModelChange",function(a){return n.DH7(o.selectedPantryLocation,a)||(o.selectedPantryLocation=a),a}),n.bIt("onChange",function(a){return o.onLocationSelected(a.value)}),n.k0s()(),n.nrm(5,"mobile-preview",4),n.k0s()),2&i&&(n.R7$(4),n.R50("ngModel",o.selectedPantryLocation),n.Y8G("options",o.pantryLocations),n.R7$(),n.Y8G("url",o.locationUrl))},dependencies:[ff,_o,ko,bFt],encapsulation:2})}}return t})(),fhe=(()=>{class t{constructor(){this.childForms=new gg.t(new Map),this.childForms$=this.childForms.asObservable()}registerForm(e,i){const o=this.childForms.value;o.set(e,i),this.childForms.next(o)}getForm(e){return this.childForms.value.get(e)}unregisterForm(e){const i=this.childForms.value;i.delete(e),this.childForms.next(i)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const wFt=["fileUpload"],TFt=t=>({"tw-bg-green-50 tw-ring-2 tw-ring-fa-orange-500 tw-ring-offset-4":t});function SFt(t,r){}function xFt(t,r){}function EFt(t,r){if(1&t&&(n.j41(0,"div",7)(1,"span",8),n.nrm(2,"i",9),n.k0s(),n.j41(3,"span",10),n.EFF(4),n.k0s()()),2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("ngClass",e.dropIconClass),n.R7$(2),n.SpI(" ",e.dropText," ")}}function DFt(t,r){if(1&t&&(n.j41(0,"div",7)(1,"span",8),n.nrm(2,"i",9),n.k0s(),n.j41(3,"span",10),n.EFF(4),n.k0s()()),2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("ngClass",e.uploadIconClass),n.R7$(2),n.SpI(" ",e.uploadText," ")}}function kFt(t,r){if(1&t&&(n.j41(0,"div",7)(1,"span",8),n.nrm(2,"i",9),n.k0s(),n.j41(3,"span",10),n.EFF(4),n.k0s()()),2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("ngClass",e.successIconClass),n.R7$(2),n.SpI(" ",e.successText," ")}}function IFt(t,r){if(1&t&&(n.j41(0,"div",7)(1,"span",8),n.nrm(2,"i",9),n.k0s(),n.j41(3,"span",10),n.EFF(4),n.k0s()()),2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("ngClass",e.failureIconClass),n.R7$(2),n.SpI(" ",e.failureText," ")}}function AFt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",5),n.bIt("dragenter",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onDragEnter(o))})("dragleave",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onDragLeave(o))}),n.DNE(1,EFt,5,2,"div",6)(2,DFt,5,2,"div",6)(3,kFt,5,2,"div",6)(4,IFt,5,2,"div",6),n.k0s()}if(2&t){const e=n.XpG();n.HbH(e.contentClasses),n.Y8G("ngStyle",e.contentStyles),n.R7$(),n.Y8G("ngIf","Initial"===e.currentState),n.R7$(),n.Y8G("ngIf","Uploading"===e.currentState),n.R7$(),n.Y8G("ngIf","UploadSuccess"===e.currentState),n.R7$(),n.Y8G("ngIf","UploadFailure"===e.currentState)}}var u0=function(t){return t.Initial="Initial",t.Uploading="Uploading",t.UploadSuccess="UploadSuccess",t.UploadFailure="UploadFailure",t}(u0||{}),Qy=function(t){return t.OnInit="OnInit",t.OnUpload="OnUpload",t.OnSuccess="OnSuccess",t.OnFailure="OnFailure",t}(Qy||{});let mhe=(()=>{class t{constructor(){this.style=null,this.styleClass="",this.containerClasses="",this.containerStyles=null,this.contentClasses="",this.contentStyles=null,this.uploadUrl="",this.fileTypes="",this.dropText="Drop Files Here or Click to Browse",this.dropIconClass="pi pi-plus",this.uploadText="Uploading...",this.uploadIconClass="pi pi-spin pi-spinner",this.successText="Upload Successful",this.successIconClass="pi pi-check",this.failureText="Upload Failed",this.failureIconClass="pi pi-exclamation-triangle",this.clickToBrowse=!0,this.fileUploaded=new n.bkB,this.currentState="",this.isDroppable=!1;const e=(0,yI.k)({progress:0}),i=_I({id:"fileUploadMachine",initial:u0.Initial,context:e.initialContext,states:{[u0.Initial]:{on:{[Qy.OnUpload]:{target:u0.Uploading}}},[u0.Uploading]:{entry:()=>{this.isDroppable=!1},on:{[Qy.OnSuccess]:{target:u0.UploadSuccess},[Qy.OnFailure]:{target:u0.UploadFailure}}},[u0.UploadSuccess]:{on:{[Qy.OnInit]:{target:u0.Initial}}},[u0.UploadFailure]:{on:{[Qy.OnInit]:{target:u0.Initial}}}}});this.stateService=x2(i).start(),this.stateService.onTransition(o=>{this.currentState=o.value.toString()})}ngOnInit(){}onDragEnter(e){this.isDroppable=!0,e.preventDefault(),e.stopPropagation()}onDragLeave(e){this.isDroppable=!1,e.preventDefault(),e.stopPropagation()}onBeforeUpload(e){this.stateService.send(Qy.OnUpload)}onSend(e){}onUpload(e){e.originalEvent instanceof Fw?this.fileUploaded.emit(e.originalEvent.body):console.warn("Upload event does not contain an HttpResponse:",e.originalEvent),this.fileUpload.clear(),this.stateService.send(Qy.OnSuccess),setTimeout(()=>{this.stateService.send(Qy.OnInit)},5e3)}onError(e){this.fileUpload.clear(),this.stateService.send(Qy.OnFailure)}onClear(){}onRemove(e){}onSelect(e){}onProgress(e){}openFileBrowser(){this.clickToBrowse&&this.fileUpload.choose()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["file-upload"]],viewQuery:function(i,o){if(1&i&&n.GBs(wFt,5),2&i){let s;n.mGM(s=n.lsd())&&(o.fileUpload=s.first)}},inputs:{style:"style",styleClass:"styleClass",containerClasses:"containerClasses",containerStyles:"containerStyles",contentClasses:"contentClasses",contentStyles:"contentStyles",uploadUrl:"uploadUrl",fileTypes:"fileTypes",dropText:"dropText",dropIconClass:"dropIconClass",uploadText:"uploadText",uploadIconClass:"uploadIconClass",successText:"successText",successIconClass:"successIconClass",failureText:"failureText",failureIconClass:"failureIconClass",clickToBrowse:"clickToBrowse"},outputs:{fileUploaded:"fileUploaded"},standalone:!1,decls:5,vars:17,consts:[["fileUpload",""],["name","files","mode","advanced",3,"onBeforeUpload","onSend","onUpload","onError","onClear","onRemove","onSelect","onProgress","click","url","multiple","accept","disabled","auto","showCancelButton","showUploadButton","styleClass","ngStyle","ngClass"],["pTemplate","file"],["pTemplate","toolbar"],["pTemplate","content"],[3,"dragenter","dragleave","ngStyle"],["class","\n          tw-pointer-events-none\n          tw-flex\n          tw-flex-col\n          tw-items-center\n          tw-justify-center\n        ",4,"ngIf"],[1,"tw-pointer-events-none","tw-flex","tw-flex-col","tw-items-center","tw-justify-center"],[1,"tw-pointer-events-none"],[1,"tw-text-3xl",3,"ngClass"],[1,"action-text","tw-pointer-events-none"]],template:function(i,o){if(1&i){const s=n.RV6();n.j41(0,"p-fileUpload",1,0),n.bIt("onBeforeUpload",function(l){return n.eBV(s),n.Njj(o.onBeforeUpload(l))})("onSend",function(l){return n.eBV(s),n.Njj(o.onSend(l))})("onUpload",function(l){return n.eBV(s),n.Njj(o.onUpload(l))})("onError",function(l){return n.eBV(s),n.Njj(o.onError(l))})("onClear",function(){return n.eBV(s),n.Njj(o.onClear())})("onRemove",function(l){return n.eBV(s),n.Njj(o.onRemove(l))})("onSelect",function(l){return n.eBV(s),n.Njj(o.onSelect(l))})("onProgress",function(l){return n.eBV(s),n.Njj(o.onProgress(l))})("click",function(){return n.eBV(s),n.Njj(o.openFileBrowser())}),n.DNE(2,SFt,0,0,"ng-template",2)(3,xFt,0,0,"ng-template",3)(4,AFt,5,8,"ng-template",4),n.k0s()}2&i&&(n.Aen(o.style),n.ZvI("\n        tw-flex\n        tw-flex-col\n        tw-w-full\n        tw-border\n        tw-border-gray-100\n        tw-border-solid\n        tw-rounded-sm\n        tw-transition-all\n        tw-duration-300\n        ",o.containerClasses,"\n      "),n.Y8G("url",o.uploadUrl)("multiple",!0)("accept",o.fileTypes)("disabled",!1)("auto",!0)("showCancelButton",!1)("showUploadButton",!1)("styleClass",o.styleClass)("ngStyle",o.containerStyles)("ngClass",n.eq3(15,TFt,o.isDroppable)))},dependencies:[bi,fi,Jr,hs,oY],encapsulation:2})}}return t})();var ghe=b(9825),MFt=b(5843);const RFt={theme:"snow",modules:{toolbar:[["bold"],["link"],[{list:"ordered"}],[{list:"bullet"}],["clean"]]}};ghe.default.register(class OFt extends MFt.A{static sanitize(r){return/^https?:\/\//i.test(r)||(r="https://"+r),super.sanitize(r)}},!0);let FFt=(()=>{class t{constructor(e){this.element=e,this.touched=!1,this.disabled=!1,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this.initializeQuill()}ngAfterViewInit(){this.initializeEditor()}ngOnDestroy(){this.cleanUpEditor()}initializeQuill(){const e=this.element.nativeElement.querySelector(".quill");e&&(this.editor=new ghe.default(e,RFt))}initializeEditor(){this.value?.deltaContent&&this.setValue(this.value),this.editor.on("text-change",()=>this.onValueChange())}cleanUpEditor(){this.editor&&this.editor.off("text-change",this.onValueChange)}setValue(e){try{const i=JSON.parse(e.deltaContent);this.editor.setContents(i)}catch(i){console.error("Error parsing delta content",i)}}onValueChange(){if(this.markAsTouched(),!this.disabled){this.editor.root.innerHTML.replace("<p></p>","").replace(/<p><br\s*\/?><\/p>/g,"");const e=this.editor.getSemanticHTML(),i=JSON.stringify(this.editor.getContents()).replace('{"ops":[{"insert":"\\n"}]}','{"ops":[]}');this.onChange({htmlContent:e,deltaContent:i})}}writeValue(e){e&&this.setValue(e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}markAsTouched(){this.touched||(this.onTouched(),this.touched=!0)}setDisabledState(e){this.disabled=e,this.editor.enable(!e)}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(n.aKT))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["rich-text-editor"]],inputs:{value:"value"},standalone:!1,features:[n.Jv_([{provide:tl,multi:!0,useExisting:(0,n.Rfq)(()=>t)}])],decls:1,vars:0,consts:[[1,"quill"]],template:function(i,o){1&i&&n.nrm(0,"div",0)},styles:["[_nghost-%COMP%]    {display:flex;flex-direction:column;width:100%;padding:0}[_nghost-%COMP%]     .ql-toolbar{display:flex}[_nghost-%COMP%]     .ql-editor{max-height:250px}[_nghost-%COMP%]     .ql-editor ol{padding-left:14px}[_nghost-%COMP%]     .ql-editor li{padding-left:0}"]})}}return t})();const PFt=()=>[1,3,4],LFt=()=>[1];function NFt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",5)(1,"form",6)(2,"input",7),n.bIt("change",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onOtherServicesCheckboxChanged())}),n.k0s(),n.j41(3,"label",8),n.EFF(4,"Show Other Services? (Optional)"),n.k0s()()()}if(2&t){const e=n.XpG();n.R7$(),n.Y8G("formGroup",e.form)}}function GFt(t,r){if(1&t){const e=n.RV6();n.j41(0,"a",21),n.bIt("click",function(){n.eBV(e);const o=n.XpG(3);return n.Njj(o.onBannerImageUndo())}),n.EFF(1," Undo Change? "),n.k0s()}}function BFt(t,r){if(1&t&&n.nrm(0,"img",22),2&t){const e=n.XpG(3);n.Y8G("src",e.bannerImageUrl,n.B4B)}}function VFt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",16)(1,"label",17)(2,"p"),n.EFF(3),n.k0s(),n.DNE(4,GFt,2,0,"a",18),n.k0s(),n.DNE(5,BFt,1,1,"img",19),n.j41(6,"file-upload",20),n.bIt("fileUploaded",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onBannerImageUploaded(o))}),n.k0s()()}if(2&t){const e=n.XpG(2);n.R7$(3),n.SpI("",e.item.Title," Image"),n.R7$(),n.Y8G("ngIf",e.bannerImageUndoVisible),n.R7$(),n.Y8G("ngIf",e.bannerImageUrl),n.R7$(),n.Mz_("dropText","Click or Drop to Replace ",e.item.Title," Image Here"),n.Y8G("uploadUrl",e.bannerImageUploadUrl)}}function jFt(t,r){if(1&t){const e=n.RV6();n.j41(0,"a",26),n.bIt("click",function(){n.eBV(e);const o=n.XpG(3);return n.Njj(o.onLogoImageUndo())}),n.EFF(1," Undo Change? "),n.k0s()}}function HFt(t,r){if(1&t&&n.nrm(0,"img",27),2&t){const e=n.XpG(3);n.Y8G("src",e.logoImageUrl,n.B4B)}}function UFt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",16)(1,"label",17)(2,"p"),n.EFF(3,"Logo Image"),n.k0s(),n.DNE(4,jFt,2,0,"a",23),n.k0s(),n.DNE(5,HFt,1,1,"img",24),n.j41(6,"file-upload",25),n.bIt("fileUploaded",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onLogoImageUploaded(o))}),n.k0s()()}if(2&t){const e=n.XpG(2);n.R7$(4),n.Y8G("ngIf",e.logoImageUndoVisible),n.R7$(),n.Y8G("ngIf",e.logoImageUrl),n.R7$(),n.Y8G("uploadUrl",e.logoImageUploadUrl)}}function $Ft(t,r){if(1&t&&(n.j41(0,"form",9),n.DNE(1,VFt,7,6,"div",10),n.j41(2,"div")(3,"label"),n.EFF(4,"Primary Content"),n.j41(5,"span",11),n.EFF(6,"*"),n.k0s()(),n.nrm(7,"rich-text-editor",12),n.k0s(),n.DNE(8,UFt,7,3,"div",10),n.j41(9,"div")(10,"label"),n.EFF(11,"Action Link Text"),n.j41(12,"span",11),n.EFF(13,"*"),n.k0s()(),n.nrm(14,"input",13),n.k0s(),n.j41(15,"div")(16,"label"),n.EFF(17,"Popup Title"),n.j41(18,"span",11),n.EFF(19,"*"),n.k0s()(),n.nrm(20,"input",14),n.k0s(),n.j41(21,"div")(22,"label"),n.EFF(23,"Popup Content"),n.j41(24,"span",11),n.EFF(25,"*"),n.k0s()(),n.nrm(26,"rich-text-editor",15),n.k0s()()),2&t){const e=n.XpG();n.Y8G("formGroup",e.form),n.R7$(),n.Y8G("ngIf",n.lJ4(3,PFt).includes(e.item.SequenceNumber)),n.R7$(7),n.Y8G("ngIf",n.lJ4(4,LFt).includes(e.item.SequenceNumber))}}function vhe(t){return'{"ops":[]}'===t.value.deltaContent?{emptyContent:{value:t.value}}:null}let YFt=(()=>{class t{constructor(e,i,o){this.fb=e,this.toasterService=i,this.pantryContentFormService=o,this.bannerImageUploadUrl="",this.logoImageUploadUrl="",this.bannerImageUrl="",this.logoImageUrl="",this.bannerImageUndoVisible=!1,this.previousBannerImageUrl="",this.previousBannerImageID=0,this.previousBannerImageStoragePath="",this.logoImageUndoVisible=!1,this.previousLogoImageUrl="",this.previousLogoImageID=0,this.previousLogoImageStoragePath="",this.initialEmptyState={isVisible:!1,bannerImage:"",content:{deltaContent:'{"ops":[]}',htmlContent:""},actionLinkText:"",modalTitle:"",logoImage:"",modalContent:{deltaContent:'{"ops":[]}',htmlContent:""}},this.formValueChangesSubscription=new mx.yU}ngOnInit(){const e=4!==this.item.SequenceNumber||![this.item.MainContent,this.item.ModalContent].every(i=>'{"ops":[]}'==i);this.form=this.fb.group({isVisible:[e],bannerImage:[this.item.BannerImageAttachmentCollection?.AttachmentCollectionItems?.[0]?.Attachment?.StoragePath??""],content:[{deltaContent:this.item.MainContent,htmlContent:this.item.MainContentHtml},[vhe]],logoImage:[this.item.LogoImageAttachmentCollection?.AttachmentCollectionItems?.[0]?.Attachment?.StoragePath??""],actionLinkText:[this.item.ActionLinkText,Ls.required],modalTitle:[this.item.ModalTitle,Ls.required],modalContent:[{deltaContent:this.item.ModalContent,htmlContent:this.item.ModalContentHtml},[vhe]]}),this.bannerImageUploadUrl="/api/attachments",this.logoImageUploadUrl="/api/attachments",this.bannerImageUrl=this.item.BannerImageAttachmentCollection?.AttachmentCollectionItems?.[0]?.Attachment?.StoragePath??"",this.logoImageUrl=this.item.LogoImageAttachmentCollection?.AttachmentCollectionItems?.[0]?.Attachment?.StoragePath??"",this.formValueChangesSubscription=this.form.valueChanges.subscribe(()=>{this.onContentChanged()}),this.pantryContentFormService.registerForm(this.item.SequenceNumber.toString(),this.form)}ngOnDestroy(){this.formValueChangesSubscription.unsubscribe(),this.pantryContentFormService.unregisterForm(this.item.SequenceNumber.toString())}onContentChanged(){this.item.MainContent=this.form.value.content.deltaContent,this.item.MainContentHtml=this.form.value.content.htmlContent,this.item.ActionLinkText=this.form.value.actionLinkText,this.item.ModalTitle=this.form.value.modalTitle,this.item.ModalContent=this.form.value.modalContent.deltaContent,this.item.ModalContentHtml=this.form.value.modalContent.htmlContent}onOtherServicesCheckboxChanged(){this.form.get("isVisible")?.value||(this.bannerImageUrl=this.initialEmptyState.bannerImage,this.logoImageUrl=this.initialEmptyState.logoImage,this.item.BannerImageAttachmentCollection.AttachmentCollectionItems[0].Attachment.StoragePath=this.bannerImageUrl,this.item.LogoImageAttachmentCollection.AttachmentCollectionItems[0].Attachment.StoragePath=this.logoImageUrl,this.form.reset({...this.initialEmptyState,modalTitle:this.item.ModalTitle,actionLinkText:this.item.ActionLinkText}),this.form.markAsDirty(),this.form.updateValueAndValidity())}onBannerImageUploaded(e){e.Successful?e.Value&&(this.previousBannerImageUrl=this.bannerImageUrl,this.previousBannerImageID=this.item.BannerImageAttachmentCollection.AttachmentCollectionItems[0].Attachment.ID,this.previousBannerImageStoragePath=this.item.BannerImageAttachmentCollection.AttachmentCollectionItems[0].Attachment.StoragePath,this.bannerImageUrl=e.Value.StoragePath,this.item.BannerImageAttachmentCollection.AttachmentCollectionItems[0].Attachment.ID=e.Value.ID,this.item.BannerImageAttachmentCollection.AttachmentCollectionItems[0].Attachment.StoragePath=e.Value.StoragePath,this.form.markAsDirty(),this.form.get("bannerImage")?.setValue(e.Value.StoragePath),this.bannerImageUndoVisible=!0):this.toasterService.displayErrorToast("Error",e.FailureReason)}onBannerImageUndo(){this.bannerImageUrl=this.previousBannerImageUrl,this.item.BannerImageAttachmentCollection.AttachmentCollectionItems[0].Attachment.ID=this.previousBannerImageID,this.item.BannerImageAttachmentCollection.AttachmentCollectionItems[0].Attachment.StoragePath=this.previousBannerImageStoragePath,this.previousBannerImageUrl="",this.previousBannerImageID=0,this.previousBannerImageStoragePath="",this.bannerImageUndoVisible=!1}onLogoImageUploaded(e){e.Successful?e.Value&&(this.previousLogoImageUrl=this.logoImageUrl,this.previousLogoImageID=this.item.LogoImageAttachmentCollection.AttachmentCollectionItems[0].Attachment.ID,this.previousLogoImageStoragePath=this.item.LogoImageAttachmentCollection.AttachmentCollectionItems[0].Attachment.StoragePath,this.logoImageUrl=e.Value.StoragePath,this.item.LogoImageAttachmentCollection.AttachmentCollectionItems[0].Attachment.ID=e.Value.ID,this.item.LogoImageAttachmentCollection.AttachmentCollectionItems[0].Attachment.StoragePath=e.Value.StoragePath,this.form.markAsDirty(),this.form.get("logoImage")?.setValue(e.Value.StoragePath),this.logoImageUndoVisible=!0):this.toasterService.displayErrorToast("Error",e.FailureReason)}onLogoImageUndo(){this.logoImageUrl=this.previousLogoImageUrl,this.item.LogoImageAttachmentCollection.AttachmentCollectionItems[0].Attachment.ID=this.previousLogoImageID,this.item.LogoImageAttachmentCollection.AttachmentCollectionItems[0].Attachment.StoragePath=this.previousLogoImageStoragePath,this.previousLogoImageUrl="",this.previousLogoImageID=0,this.previousLogoImageStoragePath="",this.logoImageUndoVisible=!1}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(u8),n.rXU(tc),n.rXU(fhe))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["pantry-content-form"]],inputs:{item:"item"},standalone:!1,decls:6,vars:3,consts:[[1,"panel","panel-default","mt-10","tw-col-span-1"],[1,"panel-heading"],[1,"panel-body"],["class","tw-col-span-1",4,"ngIf"],["class","tw-flex-1",3,"formGroup",4,"ngIf"],[1,"tw-col-span-1"],[3,"formGroup"],["type","checkbox","id","other-services-checkbox","formControlName","isVisible",3,"change"],["for","other-services-checkbox"],[1,"tw-flex-1",3,"formGroup"],["class","tw-container tw-mx-auto tw-col-span-1 tw-flex tw-flex-col",4,"ngIf"],[1,"text-danger"],["formControlName","content"],["type","text","formControlName","actionLinkText",1,"form-control"],["type","text","formControlName","modalTitle",1,"form-control"],["formControlName","modalContent"],[1,"tw-container","tw-mx-auto","tw-col-span-1","tw-flex","tw-flex-col"],[1,"tw-flex","tw-w-full","tw-justify-between"],["class","",3,"click",4,"ngIf"],["alt","Banner Image","class","tw-max-w-full tw-h-auto tw-object-contain",3,"src",4,"ngIf"],[1,"tw-cursor-pointer",3,"fileUploaded","dropText","uploadUrl"],[1,"",3,"click"],["alt","Banner Image",1,"tw-max-w-full","tw-h-auto","tw-object-contain",3,"src"],[3,"click",4,"ngIf"],["alt","Logo Image","class","tw-max-w-full tw-h-auto tw-object-contain",3,"src",4,"ngIf"],["dropText","Click or Drop to Replace Logo Image Here",1,"tw-cursor-pointer",3,"fileUploaded","uploadUrl"],[3,"click"],["alt","Logo Image",1,"tw-max-w-full","tw-h-auto","tw-object-contain",3,"src"]],template:function(i,o){if(1&i&&(n.j41(0,"div",0)(1,"div",1),n.EFF(2),n.k0s(),n.j41(3,"div",2),n.DNE(4,NFt,5,1,"div",3)(5,$Ft,27,5,"form",4),n.k0s()()),2&i){let s;n.R7$(2),n.JRh(o.item.Title),n.R7$(2),n.Y8G("ngIf",4===o.item.SequenceNumber),n.R7$(),n.Y8G("ngIf",null==(s=o.form.get("isVisible"))?null:s.value)}},dependencies:[fi,wv,Cc,Cv,_o,Rm,Tv,Eb,mhe,FFt],styles:["label[_ngcontent-%COMP%]{padding-top:8px}#other-services-checkbox[_ngcontent-%COMP%]{margin-right:8px}"]})}}return t})();function WFt(t,r){if(1&t&&(n.j41(0,"div"),n.nrm(1,"span",10),n.nI1(2,"highlight"),n.k0s()),2&t){const e=r.$implicit,i=r.searchText;n.R7$(),n.Y8G("innerHtml",n.i5U(2,1,e.LocationName,i),n.npT)}}function zFt(t,r){if(1&t&&(n.j41(0,"div")(1,"span"),n.EFF(2),n.k0s()()),2&t){const e=r.$implicit;n.R7$(2),n.JRh(e.LocationName)}}function qFt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",11)(1,"div",12),n.EFF(2,"Copy content from an existing location"),n.k0s(),n.j41(3,"div",13)(4,"div",14)(5,"dropdown",15,2),n.bIt("itemSelected",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.onRelatedContentSelected(o))}),n.k0s()()()()}if(2&t){n.XpG();const e=n.sdS(2),i=n.sdS(4),o=n.XpG();n.R7$(5),n.Y8G("options",o.relatedPantryContent)("itemTemplate",e)("selectedItemTemplate",i)}}function XFt(t,r){1&t&&n.nrm(0,"pantry-content-form",18),2&t&&n.Y8G("item",r.$implicit)}function KFt(t,r){if(1&t&&(n.j41(0,"div",16),n.DNE(1,XFt,1,1,"pantry-content-form",17),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngForOf",e.pantryContent)}}function QFt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",11)(1,"div",12),n.EFF(2,"Copy content to other locations"),n.k0s(),n.j41(3,"div",13)(4,"div",14)(5,"p-multiSelect",19),n.mxI("ngModelChange",function(o){n.eBV(e);const s=n.XpG(2);return n.DH7(s.selectedLocations,o)||(s.selectedLocations=o),n.Njj(o)}),n.bIt("ngModelChange",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.onOptionsChange())}),n.k0s()()()()}if(2&t){const e=n.XpG(2);n.R7$(5),n.Y8G("options",e.locationOptions),n.R50("ngModel",e.selectedLocations),n.Y8G("maxSelectedLabels",2)}}function JFt(t,r){1&t&&(n.j41(0,"div",20),n.nrm(1,"loading",21),n.k0s())}function ZFt(t,r){1&t&&(n.j41(0,"p",22)(1,"span",23),n.EFF(2,"*"),n.k0s(),n.EFF(3,"Some required fields are missing "),n.k0s())}function ePt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div"),n.DNE(1,WFt,3,4,"ng-template",null,0,n.C5r)(3,zFt,3,1,"ng-template",null,1,n.C5r)(5,qFt,7,3,"div",5)(6,KFt,2,1,"div",6)(7,QFt,6,3,"div",5)(8,JFt,2,0,"div",4),n.j41(9,"div",7)(10,"button",8),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.save())}),n.EFF(11," Save "),n.k0s(),n.DNE(12,ZFt,4,0,"p",9),n.k0s()()}if(2&t){const e=n.XpG();n.R7$(5),n.Y8G("ngIf",e.relatedPantryContent.length&&!e.isUpdatingContent),n.R7$(),n.Y8G("ngIf",!e.isUpdatingContent),n.R7$(),n.Y8G("ngIf",e.locationOptions.length&&!e.isLoading&&!e.isUpdatingContent),n.R7$(),n.Y8G("ngIf",e.isUpdatingContent),n.R7$(2),n.Y8G("disabled",!e.isSaveButtonEnabled),n.R7$(2),n.Y8G("ngIf",!e.allFormsValid)}}function tPt(t,r){1&t&&(n.j41(0,"div",20),n.nrm(1,"loading",24),n.k0s())}let nPt=(()=>{class t{constructor(e,i,o,s,a){this.pantryContentService=e,this.toasterService=i,this.fb=o,this.pantryContentFormService=s,this.angularJsInjectorService=a,this.locationContentChanged=new n.bkB,this.childForms=new Map,this.pantryContent=[],this.relatedPantryContent=[],this.pantryData=[],this.isSaveButtonEnabled=!1,this.isLoading=!0,this.isUpdatingContent=!1,this.deregisterStateChangeStart=null,this.beforeUnloadHandler=null,this.allFormsValid=!0,this.anyTouched=!1,this.subscriptions=[],this.locationOptions=[],this.selectedLocations=[],this.selectedItemsLabel="Select Locations";let c=a.getAngularJsInjector().get("$rootScope");this.beforeUnloadHandler=this.handleUnsavedChanges.bind(this),this.deregisterStateChangeStart=c.$on("$stateChangeStart",this.beforeUnloadHandler),window.addEventListener("beforeunload",this.beforeUnloadHandler)}ngOnInit(){this.loadPantryContent(),this.pantryContentFormService.childForms$.subscribe(e=>{this.childForms=e,this.childForms.forEach(i=>{this.subscriptions.push(i.valueChanges.subscribe(()=>{this.updateSaveButtonState(),this.validateForms()})),this.subscriptions.push(i.statusChanges.subscribe(()=>{this.updateSaveButtonState(),this.validateForms()}))})})}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe()),this.beforeUnloadHandler&&window.removeEventListener("beforeunload",this.beforeUnloadHandler),this.deregisterStateChangeStart&&this.deregisterStateChangeStart()}loadPantryContent(){var e=this;return(0,lr.A)(function*(){try{e.isLoading=!0;const i=yield e.pantryContentService.getPantryContent(e.locationId);e.pantryData=e.sortBySequenceNumber(i);const o=yield e.pantryContentService.getRelatedPantryContent(e.locationId),s=yield e.pantryContentService.getRelatedPantryLocations(e.locationId);e.locationOptions=[...s].sort((c,d)=>c.Label.localeCompare(d.Label));const l=o.map(c=>({...c,PantryContents:e.sortBySequenceNumber(c.PantryContents)})).sort((c,d)=>c.LocationName.localeCompare(d.LocationName));e.relatedPantryContent=l,e.pantryContent=e.sortBySequenceNumber(i),e.updateSaveButtonState(),e.isLoading=!1}catch{e.toasterService.displayErrorToast("Error","Error loading pantry content"),e.isLoading=!1}})()}sortBySequenceNumber(e){return e.sort((i,o)=>i.SequenceNumber-o.SequenceNumber)}validateFormFieldValues(e){return!(!e||!e.isVisible||""===e.actionLinkText||""===e.bannerImage&&!e.skipBannerImageCheck||""===e.modalTitle||"<p></p>"===e.content.htmlContent||"<p>"===e.content.htmlContent||"<p></p>"===e.modalContent.htmlContent||"<p>"===e.modalContent.htmlContent)}validateForms(){const e=[];this.childForms.forEach((i,o)=>{i.value.isVisible&&e.push(this.validateFormFieldValues({...i.value,skipBannerImageCheck:2==+o||4==+o}))}),!this.allFormsValid&&e.every(i=>!!i)?this.allFormsValid=!0:e.some(i=>!i)&&(this.allFormsValid=!1),this.anyTouched=!0}updateSaveButtonState(){let e=!0,i=!1;this.childForms.forEach(o=>{!o.valid&&o.value.isVisible&&(e=!1),o.pristine||(i=!0)}),this.isSaveButtonEnabled=e&&(i||0!==this.selectedLocations.length)}handleUnsavedChanges(e){if(e&&"object"==typeof e&&this.anyTouched)if(e instanceof Event){const i=e;i.preventDefault(),i.returnValue=!0}else confirm("Changes you made may not be saved.")||e.preventDefault()}onRelatedContentSelected(e){if(e?.PantryContents?.length){this.isUpdatingContent=!0;const i=[];for(const o of e.PantryContents)if(4!==o.SequenceNumber){const s=this.pantryContent.find(a=>a.SequenceNumber===o.SequenceNumber);i.push({...s,...o})}i.push(this.pantryContent.find(o=>4===o.SequenceNumber)),this.pantryContent=this.sortBySequenceNumber(i),this.childForms.forEach(o=>o.markAsDirty()),this.updateSaveButtonState()}else this.isUpdatingContent=!0,this.pantryContent=this.pantryData;setTimeout(()=>{this.isUpdatingContent=!1},1e3)}onOptionsChange(){this.updateSaveButtonState()}save(){var e=this;return(0,lr.A)(function*(){try{e.isUpdatingContent=!0;const i=e.selectedLocations.map(({ID:o})=>o);yield e.pantryContentService.updatePantryContent(e.locationId,e.pantryContent,i),e.selectedLocations=[],e.locationContentChanged.emit(e.pantryContent),e.toasterService.displaySuccessToast("Success","Pantry content saved"),e.loadPantryContent(),e.isUpdatingContent=!1,e.anyTouched=!1}catch{e.toasterService.displayErrorToast("Error","Error saving pantry content"),e.isUpdatingContent=!1}})()}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(phe),n.rXU(tc),n.rXU(u8),n.rXU(fhe),n.rXU(Jk))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["pantry-content"]],inputs:{locationId:"locationId"},outputs:{locationContentChanged:"locationContentChanged"},standalone:!1,decls:2,vars:2,consts:[["relatedContentTemplate",""],["selectedContentTemplate",""],["dropdown",""],[4,"ngIf"],["class","tw-flex tw-p-6 tw-justify-center tw-items-center",4,"ngIf"],["class","panel panel-default mt-10",4,"ngIf"],["class","\n      tw-grid tw-grid-cols-1\n      lg:tw-grid-cols-2\n      xl:tw-grid-cols-3\n      2xl:tw-grid-cols-4\n      tw-gap-4 tw-grid-flow-row\n    ",4,"ngIf"],[1,"tw-flex","tw-items-center","tw-space-x-2"],[1,"btn","btn-primary",3,"click","disabled"],["class","p-error tw-flex tw-items-center",4,"ngIf"],[3,"innerHtml"],[1,"panel","panel-default","mt-10"],[1,"panel-heading"],[1,"panel-body"],[1,"tw-grid","tw-grid-cols-1","lg:tw-grid-cols-2","xl:tw-grid-cols-3"],["filterMatchMode","contains","filterFields","LocationName","placeholder","Select a location","styleClass","",3,"itemSelected","options","itemTemplate","selectedItemTemplate"],[1,"tw-grid","tw-grid-cols-1","lg:tw-grid-cols-2","xl:tw-grid-cols-3","2xl:tw-grid-cols-4","tw-gap-4","tw-grid-flow-row"],[3,"item",4,"ngFor","ngForOf"],[3,"item"],["styleClass","tw-w-full","optionLabel","Label","defaultLabel","Select Locations","selectedItemsLabel","{0} selected",3,"ngModelChange","options","ngModel","maxSelectedLabels"],[1,"tw-flex","tw-p-6","tw-justify-center","tw-items-center"],["message","Updating Pantry Content..."],[1,"p-error","tw-flex","tw-items-center"],[1,"text-danger"],["message","Loading Pantry Content..."]],template:function(i,o){1&i&&n.DNE(0,ePt,13,6,"div",3)(1,tPt,2,0,"div",4),2&i&&(n.Y8G("ngIf",!o.isLoading),n.R7$(),n.Y8G("ngIf",o.isLoading))},dependencies:[oo,fi,_o,ko,Yy,Uu,Hb,YFt,Zd],styles:["dropdown[styleclass=language-dropdown][_ngcontent-%COMP%]{width:100%;position:relative;margin-left:0;margin-right:0}"]})}}return t})();const iPt=["dropdown"];function rPt(t,r){if(1&t&&(n.j41(0,"span",8),n.nrm(1,"i",9),n.EFF(2),n.k0s()),2&t){const e=n.XpG().$implicit;n.R7$(2),n.SpI(" ",e.Name," ")}}function oPt(t,r){if(1&t&&(n.j41(0,"div")(1,"div",10)(2,"div"),n.nrm(3,"span",11),n.nI1(4,"highlight"),n.k0s(),n.j41(5,"div",12)(6,"span",13),n.EFF(7),n.k0s(),n.j41(8,"span",14),n.nI1(9,"highlight"),n.EFF(10),n.k0s(),n.nrm(11,"span",15),n.nI1(12,"highlight"),n.j41(13,"span",16),n.EFF(14),n.k0s()()(),n.j41(15,"div",17)(16,"span"),n.EFF(17),n.k0s()()()),2&t){const e=n.XpG(),i=e.$implicit,o=e.searchText;n.R7$(3),n.Y8G("innerHtml",n.i5U(4,8,i.Name,o),n.npT),n.R7$(4),n.SpI("[",i.EachQuantity,"]"),n.R7$(),n.Y8G("innerHtml",n.i5U(9,11,i.Amount,o),n.npT),n.R7$(2),n.SpI("",i.Amount," "),n.R7$(),n.Y8G("innerHtml",n.i5U(12,14,i.UnitOfMeasure.Name,o),n.npT),n.R7$(3),n.JRh(i.DonationPackageType.Name),n.R7$(),n.FS9("title",i.Description),n.R7$(2),n.JRh(i.Description)}}function sPt(t,r){if(1&t&&(n.j41(0,"div",5),n.DNE(1,rPt,3,1,"span",6)(2,oPt,18,17,"div",7),n.k0s()),2&t){const e=r.$implicit;n.R7$(),n.Y8G("ngIf",e.IsOther),n.R7$(),n.Y8G("ngIf",!e.IsOther)}}function aPt(t,r){if(1&t&&(n.j41(0,"div",18)(1,"span"),n.EFF(2),n.k0s()()),2&t){const e=r.$implicit;n.R7$(2),n.JRh(null==e?null:e.Name)}}function lPt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",20),n.bIt("click",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.onNewProductSelected())}),n.nrm(1,"i",9),n.EFF(2," Other (Add New Item) "),n.k0s()}}function cPt(t,r){if(1&t&&n.DNE(0,lPt,3,0,"div",19),2&t){const e=n.XpG();n.Y8G("ngIf",e.showFooter)}}let uPt=(()=>{class t extends T2{constructor(){super(),this.dropdown=null,this.products=[],this.selectedProduct=null,this.productSelected=new n.bkB,this.selectionCleared=new n.bkB,this.productsToDisplay=[],this.filterText="",this.showFooter=!1,this.addingNewProduct=!1}onProductSelected(e){this.selectedProduct=e,this.productSelected.emit(this.selectedProduct)}onNewProductSelected(){let e={ID:"other",Name:"Other (Add New Item)",IsOther:!0};this.selectedProduct=e,this.addingNewProduct=!0,this.productSelected.emit(e)}onFiltered(e){this.showFooter=!!e.filter}onCleared(){this.addingNewProduct=!1,this.selectionCleared.emit()}get placeholderToDisplay(){return this.addingNewProduct?"Other (Add New Item)":"Select Product"}ngOnInit(){this.productsToDisplay=[...this.products]}ngOnChanges(e){e.selectedProduct&&(this.dropdown?.setSelectedItem(e.selectedProduct.currentValue),e.selectedProduct.currentValue?.IsOther&&(this.addingNewProduct=!0))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["products-picker"]],viewQuery:function(i,o){if(1&i&&n.GBs(iPt,5),2&i){let s;n.mGM(s=n.lsd())&&(o.dropdown=s.first)}},inputs:{products:"products",selectedProduct:"selectedProduct"},outputs:{productSelected:"productSelected",selectionCleared:"selectionCleared"},standalone:!1,features:[n.Vt3,n.OA$],decls:8,vars:6,consts:[["productTemplate",""],["selectedProductTemplate",""],["footerTemplate",""],["dropdown",""],["filterMatchMode","contains","filterFields","Name","scrollHeight","300px","styleClass","",3,"itemSelected","filtered","cleared","options","itemTemplate","selectedItemTemplate","footerTemplate","placeholder","itemSize"],[1,"products-list"],["class","text-bold","style","font-size: 20px",4,"ngIf"],[4,"ngIf"],[1,"text-bold",2,"font-size","20px"],[1,"fas","fa-plus","text-success"],[1,"text-sm"],[1,"text-bold",3,"innerHtml"],[1,"flex"],["ng-show","item.EachQuantity > 1","title","Quantity"],[1,"ml-5","product-amount",3,"innerHtml"],[1,"mr-5",3,"innerHtml"],[1,"label","label-default"],[1,"text-sm","text-muted","truncate",3,"title"],[1,"selected-product"],["class","text-bold ml-10","style","font-size: 20px",3,"click",4,"ngIf"],[1,"text-bold","ml-10",2,"font-size","20px",3,"click"]],template:function(i,o){if(1&i){const s=n.RV6();n.DNE(0,sPt,3,2,"ng-template",null,0,n.C5r)(2,aPt,3,1,"ng-template",null,1,n.C5r)(4,cPt,1,1,"ng-template",null,2,n.C5r),n.j41(6,"dropdown",4,3),n.bIt("itemSelected",function(l){return n.eBV(s),n.Njj(o.onProductSelected(l))})("filtered",function(l){return n.eBV(s),n.Njj(o.onFiltered(l))})("cleared",function(){return n.eBV(s),n.Njj(o.onCleared())}),n.k0s()}if(2&i){const s=n.sdS(1),a=n.sdS(3),l=n.sdS(5);n.R7$(6),n.Y8G("options",o.productsToDisplay)("itemTemplate",s)("selectedItemTemplate",a)("footerTemplate",l)("placeholder",o.placeholderToDisplay)("itemSize",61)}},dependencies:[fi,Uu,Zd],styles:[".products-list[_ngcontent-%COMP%]{font-size:14px}.products-list[_ngcontent-%COMP%]   .product-amount[_ngcontent-%COMP%]{margin-right:2px}.selected-product[_ngcontent-%COMP%]{margin-top:2px;font-size:14px}"]})}}return t})();var dPt=b(1861);const hPt=function pPt(t,r){var e=[];return y7(t,function(i,o,s){r(i,o,s)&&e.push(i)}),e},_he=function fPt(t,r){return((0,Om.A)(t)?dPt.A:hPt)(t,Fk(r))},yhe=function mPt(t,r){return((0,Om.A)(t)?Ok:Cre)(t,Fk(r))};let _Pt=(()=>{class t{constructor(){}getCategoriesFromProducts(e){return Ph(qde(function gPt(t,r){return bre(yhe(t,r),1)}(yhe(_he(e,i=>i.PantryInventorySubcategories.length>0),i=>i.PantryInventorySubcategories)),i=>i?i.PantrySubcategoryID:null),i=>i.PantrySubcategory.Name)}groupProductsByCategory(e,i){let o=[];return e.forEach(s=>{let a=_he(i,l=>fX(l.PantryInventorySubcategories.map(c=>c.PantrySubcategoryID),s.PantrySubcategoryID));o.push({Category:s,Products:a})}),o}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),yPt=(()=>{class t{constructor(e){this.http=e}getDeliveryPrograms(e){var i=this;return(0,lr.A)(function*(){const o=e?{params:(new Mp).set("agencyId",e)}:{};return yield Yo(i.http.get("/api/deliveryprograms",o))})()}getDeliveryProgramProducts(e,i){var o=this;return(0,lr.A)(function*(){const s=i?{params:(new Mp).set("language",i)}:{};return yield Yo(o.http.get(`/api/deliveryprograms/${e}/products`,s))})()}static{this.\u0275fac=function(i){return new(i||t)(n.KVO(Da))}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),bPt=(()=>{class t{constructor(){}getImageUrlWithWidth(e,i){if(!e.AttachmentCollection||!e.AttachmentCollection.AttachmentCollectionItems||!e.AttachmentCollection.AttachmentCollectionItems.length)return"";let o=Ph(e.AttachmentCollection?.AttachmentCollectionItems,s=>s.SequenceNumber)[0].Attachment;return this.getImageUrlFromAttachment(o,i)}getImageUrlFromAttachment(e,i){let o=e.StoragePath;if(e.AttachmentImages?.length){let a=Ph(e.AttachmentImages,l=>l.Width).find(l=>l.Width>=i);if(a){let l=o.substring(o.lastIndexOf("."),o.length);o=o.replace(l,`_${a.Width}${l}`)}}return o}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function CPt(t,r){1&t&&(n.j41(0,"div",15),n.nrm(1,"loading",16),n.k0s())}function wPt(t,r){1&t&&(n.j41(0,"div",15)(1,"span",18),n.EFF(2,"There are no products available"),n.k0s()())}function TPt(t,r){1&t&&n.nrm(0,"tefap-icon")}function SPt(t,r){if(1&t&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&t){const e=n.XpG().$implicit;n.R7$(),n.SpI("[",e.EachQuantity,"]")}}function xPt(t,r){if(1&t&&(n.j41(0,"div",24)(1,"div",25)(2,"div",26),n.nrm(3,"img",27),n.k0s(),n.j41(4,"div",28)(5,"div")(6,"div",29)(7,"div",30)(8,"span",31),n.EFF(9),n.k0s(),n.DNE(10,TPt,1,0,"tefap-icon",14),n.k0s(),n.j41(11,"span",32),n.EFF(12),n.k0s()(),n.j41(13,"div",33)(14,"p",34),n.DNE(15,SPt,2,1,"span",14),n.EFF(16),n.k0s()()()()()()),2&t){const e=r.$implicit,i=n.XpG(3);n.R7$(3),n.Y8G("src",i.getProductImage(e),n.B4B)("alt",e.Name),n.R7$(6),n.JRh(e.Name),n.R7$(),n.Y8G("ngIf","TEFAP"===(null==e.PantryInventoryItemSource?null:e.PantryInventoryItemSource.Code)),n.R7$(),n.Y8G("title",e.Description),n.R7$(),n.JRh(e.Description),n.R7$(3),n.Y8G("ngIf",e.EachQuantity&&e.EachQuantity>1),n.R7$(),n.E5c(" ",e.Amount," ",e.UnitOfMeasure.Name," ",e.DonationPackageType.Name," ")}}function EPt(t,r){if(1&t&&(n.j41(0,"div",19)(1,"div",20)(2,"h3",21),n.EFF(3),n.k0s()(),n.j41(4,"div",22),n.DNE(5,xPt,17,10,"div",23),n.k0s()()),2&t){const e=r.$implicit;n.R7$(3),n.SpI(" ",e.Category.PantrySubcategory.Name," "),n.R7$(2),n.Y8G("ngForOf",e.Products)}}function DPt(t,r){if(1&t&&(n.j41(0,"div"),n.DNE(1,wPt,3,0,"div",13)(2,EPt,6,2,"div",17),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngIf",!e.productsGroupedByCategory.length),n.R7$(),n.Y8G("ngForOf",e.productsGroupedByCategory)}}let kPt=(()=>{class t{constructor(e,i,o,s){this.categoriesService=e,this.deliveryProgramsService=i,this.imageService=o,this.locationsService=s,this.locationId=null,this.deliveryProgramId=null,this.onInit=null,this.loading=!1,this.selectedLanguage="en",this.products=[],this.categories=[],this.productsGroupedByCategory=[]}ngOnInit(){var e=this;return(0,lr.A)(function*(){e.onInit&&e.onInit(e.loadProducts.bind(e)),yield e.loadProducts()})()}ngOnChanges(e){(e.locationId||e.deliveryProgramId)&&this.loadProducts()}loadProducts(){var e=this;return(0,lr.A)(function*(){e.products=[],e.loading=!0,e.locationId&&(e.products=yield e.locationsService.getLocationProducts(e.locationId,e.selectedLanguage)),e.deliveryProgramId&&(e.products=yield e.deliveryProgramsService.getDeliveryProgramProducts(e.deliveryProgramId,e.selectedLanguage)),e.updateCategories(),e.loading=!1})()}updateCategories(){this.categories=this.categoriesService.getCategoriesFromProducts(this.products),this.productsGroupedByCategory=this.categoriesService.groupProductsByCategory(this.categories,this.products)}getProductImage(e){return this.imageService.getImageUrlWithWidth(e,200)}onSelectedLanguageChange(){this.loadProducts()}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(_Pt),n.rXU(yPt),n.rXU(bPt),n.rXU(qX))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["order-ahead-products-preview"]],inputs:{locationId:"locationId",deliveryProgramId:"deliveryProgramId",onInit:"onInit"},standalone:!1,features:[n.OA$],decls:26,vars:3,consts:[[1,"tw-my-4","tw-flex","tw-justify-end"],["title","Language",1,"form-control","tw-w-auto",3,"ngModelChange","change","ngModel"],["value","en"],["value","es"],["value","ru"],["value","ht"],["value","zh-Hans"],["value","fr"],["value","ne"],["value","pl"],["value","so"],["value","tr"],["value","ar"],["class","tw-flex tw-p-6 tw-justify-center tw-items-center",4,"ngIf"],[4,"ngIf"],[1,"tw-flex","tw-p-6","tw-justify-center","tw-items-center"],["message","Loading Available Products..."],["class","\n      tw-bg-white\n      tw-border\n      tw-border-solid\n      tw-border-gray-100\n      tw-mb-6\n      tw-p-2\n      tw-shadow\n    ",4,"ngFor","ngForOf"],[1,"tw-text-2xl"],[1,"tw-bg-white","tw-border","tw-border-solid","tw-border-gray-100","tw-mb-6","tw-p-2","tw-shadow"],[1,"tw-flex","tw-text-gray-500","md:tw-text-2xl","lg:tw-text-3xl"],[1,"category-title","-tw-mt-6","tw-ml-2","tw-px-4","tw-bg-white","tw-border","border-gray-100","tw-text-primary-900","tw-shadow","tw-rounded"],[1,"tw-flex","tw-flex-wrap","tw-overflow-x-hidden"],["class","tw-w-full md:tw-w-1/2 lg:tw-w-1/3",4,"ngFor","ngForOf"],[1,"tw-w-full","md:tw-w-1/2","lg:tw-w-1/3"],[1,"tw-px-2","tw-py-6","tw-flex","tw-flex-row"],[1,"tw-flex","tw-flex-col","tw-justify-center","tw-flex-shrink-0","tw-w-1/3"],[1,"tw-h-32","tw-object-contain",3,"src","alt"],[1,"tw-flex","tw-flex-col","tw-justify-between","tw-px-2","tw-w-2/3"],[1,"tw-flex","tw-flex-col","tw-min-w-0"],[1,"tw-flex"],[1,"tw-text-xl","tw-font-bold","tw-block","xl:tw-text-2xl"],[1,"tw-truncate",3,"title"],[1,"tw-overflow-auto","tw-scrolling-touch"],[1,"tw-text-sm","tw-whitespace-normal","tw-leading-snug","xl:tw-text-lg","md:tw-leading-normal"]],template:function(i,o){1&i&&(n.j41(0,"div",0)(1,"select",1),n.mxI("ngModelChange",function(a){return n.DH7(o.selectedLanguage,a)||(o.selectedLanguage=a),a}),n.bIt("change",function(){return o.onSelectedLanguageChange()}),n.j41(2,"option",2),n.EFF(3,"English"),n.k0s(),n.j41(4,"option",3),n.EFF(5,"Espa\xf1ol"),n.k0s(),n.j41(6,"option",4),n.EFF(7,"\u0420\u0443\u0441\u0441\u043a\u0438\u0439"),n.k0s(),n.j41(8,"option",5),n.EFF(9,"Haitian Creole"),n.k0s(),n.j41(10,"option",6),n.EFF(11,"\u4e2d\u6587 (\u7b80\u4f53)"),n.k0s(),n.j41(12,"option",7),n.EFF(13,"Fran\xe7ais"),n.k0s(),n.j41(14,"option",8),n.EFF(15,"\u0928\u0947\u092a\u093e\u0932\u0940"),n.k0s(),n.j41(16,"option",9),n.EFF(17,"Polski"),n.k0s(),n.j41(18,"option",10),n.EFF(19,"Soomaali"),n.k0s(),n.j41(20,"option",11),n.EFF(21,"T\xfcrk\xe7e"),n.k0s(),n.j41(22,"option",12),n.EFF(23,"\u0627\u0644\u0639\u0631\u0628\u064a\u0629"),n.k0s()()(),n.DNE(24,CPt,2,0,"div",13)(25,DPt,3,2,"div",14)),2&i&&(n.R7$(),n.R50("ngModel",o.selectedLanguage),n.R7$(23),n.Y8G("ngIf",o.loading),n.R7$(),n.Y8G("ngIf",!o.loading))},dependencies:[oo,fi,Sy,xy,Ty,_o,ko,Yy,YX],encapsulation:2})}}return t})();function IPt(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",7),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.cancel())}),n.EFF(1," Cancel "),n.k0s()}}let APt=(()=>{class t{constructor(){this.disableConfirm=!1,this.downloadBusyText="Preparing...",this.downloadText="Generate",this.downloadBusy=!1,this.showCancel=!1,this.offerCsv=!1,this.offerPdf=!1,this.onGenerate=new n.bkB,this.onCancel=new n.bkB,this.checkOneConfirmed=!1,this.checkTwoConfirmed=!1,this.exportText="Export"}ngOnInit(){}generate(e){!this.checkOneConfirmed||!this.checkTwoConfirmed||(this.exportText="Generating...",this.onGenerate.emit(e))}cancel(){this.onCancel.emit()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["confirm-export"]],inputs:{disableConfirm:"disableConfirm",downloadBusyText:"downloadBusyText",downloadText:"downloadText",downloadBusy:"downloadBusy",showCancel:"showCancel",offerCsv:"offerCsv",offerPdf:"offerPdf"},outputs:{onGenerate:"onGenerate",onCancel:"onCancel"},standalone:!1,decls:12,vars:7,consts:[[1,"alert","alert-warning","display-flex","flex-col"],[1,"checkbox"],["id","checkOneConfirmed","name","checkOneConfirmed","type","checkbox","required","",3,"ngModelChange","ngModel"],["id","checkTwoConfirmed","name","checkTwoConfirmed","type","checkbox","required","",3,"ngModelChange","ngModel"],[1,"mt-10","mb-10"],["classes","btn btn-primary","type","submit",3,"onExportSelected","offerCsv","offerPdf","text","disabled"],["class","btn btn-default ml-10","type","button",3,"click",4,"ngIf"],["type","button",1,"btn","btn-default","ml-10",3,"click"]],template:function(i,o){1&i&&(n.j41(0,"div",0)(1,"label",1)(2,"input",2),n.mxI("ngModelChange",function(a){return n.DH7(o.checkOneConfirmed,a)||(o.checkOneConfirmed=a),a}),n.k0s(),n.EFF(3," I understand that by exporting the data from the system that this data will no longer be protected by the system's security features. "),n.k0s(),n.j41(4,"label",1)(5,"input",3),n.mxI("ngModelChange",function(a){return n.DH7(o.checkTwoConfirmed,a)||(o.checkTwoConfirmed=a),a}),n.k0s(),n.EFF(6," I take full responsibility for the information that I'm exporting. "),n.k0s(),n.j41(7,"em",4),n.EFF(8," An entry will be added to the audit log for this action. Customers who have a profile but have not yet placed an order will not be included in the report. "),n.k0s(),n.j41(9,"div")(10,"export-button",5),n.bIt("onExportSelected",function(a){return o.generate(a)}),n.k0s(),n.DNE(11,IPt,2,0,"button",6),n.k0s()()),2&i&&(n.R7$(2),n.R50("ngModel",o.checkOneConfirmed),n.R7$(3),n.R50("ngModel",o.checkTwoConfirmed),n.R7$(5),n.Y8G("offerCsv",o.offerCsv)("offerPdf",o.offerPdf)("text",o.exportText)("disabled",o.disableConfirm||o.downloadBusy||!(o.checkOneConfirmed&&o.checkTwoConfirmed)),n.R7$(),n.Y8G("ngIf",o.showCancel))},dependencies:[fi,Cv,_o,M$,ko,nle],encapsulation:2})}}return t})();function MPt(t,r){1&t&&n.EFF(0," We're sorry. The offer you selected is no longer available.\n")}function RPt(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",3),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.close())}),n.EFF(1,"Ok"),n.k0s()}}let OPt=(()=>{class t{get isOpen(){return this.modalIsOpen}set isOpen(e){this.modalIsOpen=e}constructor(){this.modalIsOpen=!1,this.onClosed=new n.bkB}ngOnInit(){}close(){this.modalIsOpen=!1,this.onClosed.emit()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-offer-unavailable-modal"]],inputs:{isOpen:"isOpen"},outputs:{onClosed:"onClosed"},standalone:!1,decls:5,vars:4,consts:[["offerUnavailableBody",""],["offerUnavailableFooter",""],["title","Offer Unavailable",3,"modalClosed","bodyTemplate","footerTemplate","isOpen","showFooter"],["type","button",1,"btn","btn-primary",3,"click"]],template:function(i,o){if(1&i){const s=n.RV6();n.j41(0,"modal",2),n.bIt("modalClosed",function(){return n.eBV(s),n.Njj(o.close())}),n.k0s(),n.DNE(1,MPt,1,0,"ng-template",null,0,n.C5r)(3,RPt,2,0,"ng-template",null,1,n.C5r)}if(2&i){const s=n.sdS(2),a=n.sdS(4);n.Y8G("bodyTemplate",s)("footerTemplate",a)("isOpen",o.isOpen)("showFooter",!0)}},dependencies:[E2],encapsulation:2})}}return t})();var FPt=b(977),bhe=b(6118);let Che=(()=>{class t{constructor(e){this.http=e}getAllProduceItems(e){return e||(e=!1),Yo(this.http.get(`/api/foodbank/produce/itemTypes?includeAllItems=${e}`))}static{this.\u0275fac=function(i){return new(i||t)(n.KVO(Da))}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),LPt=(()=>{class t{constructor(e){this.http=e}getProduceNotificationConfig(){return Yo(this.http.get("/api/foodbank/current/producenotificationconfig"))}saveProduceNotificationConfig(e){return Yo(this.http.post("/api/foodbank/current/producenotificationconfig",e))}static{this.\u0275fac=function(i){return new(i||t)(n.KVO(Da))}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const NPt=["produceNotificationContainer"],GPt=()=>[0,1,2,3,4,5,6];function BPt(t,r){if(1&t){const e=n.RV6();n.j41(0,"table",16)(1,"thead")(2,"th",11),n.EFF(3,"Notify our Produce Contacts when:"),n.k0s(),n.j41(4,"th",11),n.EFF(5,"Is available for less than:"),n.k0s(),n.j41(6,"th",11),n.EFF(7,"With a distance away less than:"),n.k0s(),n.j41(8,"th",11),n.EFF(9,"From these suppliers:"),n.k0s()(),n.j41(10,"tr")(11,"td")(12,"input",17),n.mxI("ngModelChange",function(o){n.eBV(e);const s=n.XpG();return n.DH7(s.defaultProduceItemConfig.Selected,o)||(s.defaultProduceItemConfig.Selected=o),n.Njj(o)}),n.bIt("change",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.selectAllChanged())}),n.k0s(),n.j41(13,"label",18),n.EFF(14," Enable All"),n.k0s()(),n.j41(15,"td")(16,"div"),n.EFF(17," $ "),n.j41(18,"input",19),n.mxI("ngModelChange",function(o){n.eBV(e);const s=n.XpG();return n.DH7(s.defaultProduceItemConfig.FobCostPerPound,o)||(s.defaultProduceItemConfig.FobCostPerPound=o),n.Njj(o)}),n.bIt("keyup",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.costPerPoundChanged(o.defaultProduceItemConfig))})("change",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.costPerPoundChanged(o.defaultProduceItemConfig))})("blur",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.submit())}),n.k0s()()(),n.j41(19,"td")(20,"input",20),n.mxI("ngModelChange",function(o){n.eBV(e);const s=n.XpG();return n.DH7(s.defaultProduceItemConfig.Distance,o)||(s.defaultProduceItemConfig.Distance=o),n.Njj(o)}),n.bIt("keyup",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.distanceChanged(o.defaultProduceItemConfig))})("change",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.distanceChanged(o.defaultProduceItemConfig))})("blur",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.submit())}),n.k0s(),n.j41(21,"span",21),n.EFF(22," miles"),n.k0s()(),n.j41(23,"td")(24,"div",22)(25,"p-multiselect",23),n.mxI("ngModelChange",function(o){n.eBV(e);const s=n.XpG();return n.DH7(s.defaultProduceItemConfig.SelectedEntityIds,o)||(s.defaultProduceItemConfig.SelectedEntityIds=o),n.Njj(o)}),n.bIt("onChange",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.defaultDonorsChanges())}),n.k0s()()()()()}if(2&t){const e=n.XpG();n.R7$(12),n.R50("ngModel",e.defaultProduceItemConfig.Selected),n.Y8G("value",null)("disabled",e.saving),n.R7$(6),n.R50("ngModel",e.defaultProduceItemConfig.FobCostPerPound),n.Y8G("disabled",e.saving),n.R7$(2),n.R50("ngModel",e.defaultProduceItemConfig.Distance),n.Y8G("disabled",e.saving),n.R7$(5),n.Y8G("options",e.donors),n.R50("ngModel",e.defaultProduceItemConfig.SelectedEntityIds),n.Y8G("maxSelectedLabels",3)("virtualScroll",!0)("virtualScrollItemSize",43)}}function VPt(t,r){if(1&t){const e=n.RV6();n.j41(0,"tr")(1,"td")(2,"input",24),n.mxI("ngModelChange",function(o){const s=n.eBV(e).$implicit;return n.DH7(s.notificationConfig.Selected,o)||(s.notificationConfig.Selected=o),n.Njj(o)}),n.bIt("change",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.submit())}),n.k0s(),n.j41(3,"label",25),n.EFF(4),n.k0s()(),n.j41(5,"td")(6,"span",21),n.EFF(7,"$"),n.k0s(),n.j41(8,"input",26),n.mxI("ngModelChange",function(o){const s=n.eBV(e).$implicit;return n.DH7(s.notificationConfig.FobCostPerPound,o)||(s.notificationConfig.FobCostPerPound=o),n.Njj(o)}),n.bIt("keyup",function(){const o=n.eBV(e).$implicit,s=n.XpG();return n.Njj(s.preventNegativeCostsAndDistances(o.notificationConfig))})("change",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.submit())}),n.k0s()(),n.j41(9,"td")(10,"input",27),n.mxI("ngModelChange",function(o){const s=n.eBV(e).$implicit;return n.DH7(s.notificationConfig.Distance,o)||(s.notificationConfig.Distance=o),n.Njj(o)}),n.bIt("keyup",function(){const o=n.eBV(e).$implicit,s=n.XpG();return n.Njj(s.preventNegativeCostsAndDistances(o.notificationConfig))})("change",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.submit())}),n.k0s(),n.j41(11,"span",21),n.EFF(12," miles"),n.k0s()(),n.j41(13,"td")(14,"div",28)(15,"p-multiselect",23),n.mxI("ngModelChange",function(o){const s=n.eBV(e).$implicit;return n.DH7(s.notificationConfig.SelectedEntityIds,o)||(s.notificationConfig.SelectedEntityIds=o),n.Njj(o)}),n.bIt("onChange",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.submit())}),n.k0s()()()()}if(2&t){const e=r.$implicit,i=r.index,o=n.XpG();n.R7$(2),n.Y8G("id","config"+i)("checked",e.notificationConfig.Selected),n.R50("ngModel",e.notificationConfig.Selected),n.Y8G("value",e.produceItem.ID)("disabled",o.saving),n.R7$(),n.Y8G("for","config"+i),n.R7$(),n.JRh(e.produceItem.Text),n.R7$(4),n.R50("ngModel",e.notificationConfig.FobCostPerPound),n.Y8G("disabled",o.saving),n.R7$(2),n.R50("ngModel",e.notificationConfig.Distance),n.Y8G("disabled",o.saving),n.R7$(5),n.Y8G("options",o.donors),n.R50("ngModel",e.notificationConfig.SelectedEntityIds),n.Y8G("maxSelectedLabels",3)("virtualScroll",!0)("virtualScrollItemSize",43)}}function jPt(t,r){1&t&&(n.j41(0,"div",30),n.nrm(1,"p-skeleton",31),n.k0s())}function HPt(t,r){1&t&&(n.j41(0,"div",29)(1,"div",30),n.nrm(2,"p-skeleton",31),n.k0s(),n.j41(3,"div",32),n.nrm(4,"p-skeleton",31),n.k0s(),n.DNE(5,jPt,2,0,"div",33),n.k0s()),2&t&&(n.R7$(5),n.Y8G("ngForOf",n.lJ4(1,GPt)))}let UPt=(()=>{class t{constructor(e,i,o,s,a,l){var c=this;this.produceItemService=e,this.produceNotificationConfigService=i,this.toaster=o,this.legacyNavigationService=s,this.claimsService=a,this.donorService=l,this.produceItems=[],this.notificationConfigs=[],this.produceItemConfigs=[],this.lastSavedProduceItemConfigs=[],this.defaultProduceItemConfig=null,this.loading=!0,this.saving=!1,this.excludeComboOffers=!1,this.donors=[],this.debouncedSubmit=PO(function(){var d=(0,lr.A)(function*(f){if(!f&&(0,FPt.A)(c.produceItemConfigs,c.lastSavedProduceItemConfigs))return;c.toaster.clear(),c.lastSavedProduceItemConfigs=(0,bhe.A)(c.produceItemConfigs),c.saving=!0;const v=c.produceItemConfigs.map(w=>w.notificationConfig);try{yield c.produceNotificationConfigService.saveProduceNotificationConfig({ExcludeComboOffers:c.excludeComboOffers,ItemConfigs:v}),c.saving=!1,c.toaster.displayInfoToast("Success","Produce Notification configuration saved.",2e3)}catch{c.toaster.displayErrorToast("Error","There was a problem saving the notification configuration, please try again later.")}});return function(f){return d.apply(this,arguments)}}(),1e3)}ngOnInit(){this.loadProduceItems()}selectAllChanged(){const e=this.defaultProduceItemConfig.Selected;this.produceItemConfigs.forEach(i=>i.notificationConfig.Selected=e),this.submit(!0)}costPerPoundChanged(e){this.preventNegativeCostsAndDistances(e),this.produceItemConfigs.forEach(i=>{i.notificationConfig!==e&&(i.notificationConfig.FobCostPerPound=e.FobCostPerPound)})}preventNegativeCostsAndDistances(e){(e.FobCostPerPound??0)<0&&(e.FobCostPerPound=Math.abs(e.FobCostPerPound??0)),(e.Distance??0)<0&&(e.Distance=Math.abs(e.Distance??0))}distanceChanged(e){this.preventNegativeCostsAndDistances(e),this.produceItemConfigs.forEach(i=>{i.notificationConfig!==e&&(i.notificationConfig.Distance=e.Distance)})}submit(e=!0){var i=this;return(0,lr.A)(function*(){i.debouncedSubmit(e)})()}navigateToExtendedContacts(){switch(this.claimsService.userRole.trim().toUpperCase()){case"FOODBANKUSER":case"FOODBANKADMIN":this.legacyNavigationService.navigate("app.foodbank-profile-settings.contacts");break;case"FOODCOORDSTATEASSO":this.legacyNavigationService.navigate("app.stateassoc-profile-settings.contacts");break;case"FOODCOORDCOOPS":this.legacyNavigationService.navigate("app.coop-profile-settings.contacts")}}defaultDonorsChanges(){this.produceItemConfigs.forEach(e=>{e.notificationConfig.SelectedEntityIds=[...this.defaultProduceItemConfig.SelectedEntityIds||[]]}),this.submit()}loadProduceItems(){var e=this;return(0,lr.A)(function*(){e.loading=!0;try{e.produceItems=yield(yield e.produceItemService.getAllProduceItems()).sort((o,s)=>{const a=o.Text.toUpperCase(),l=s.Text.toUpperCase();return a<l?-1:l>a?1:0});const i=yield e.produceNotificationConfigService.getProduceNotificationConfig();if(!i.Successful)return void e.toaster.displayErrorToast("Error","Error loading produce notification configuration, please try again later.");e.donors=yield function PPt(t,r){const e="object"==typeof r;return new Promise((i,o)=>{const s=new B$.Ms({next:a=>{i(a),s.unsubscribe()},error:o,complete:()=>{e?i(r.defaultValue):o(new ck)}});t.subscribe(s)})}(e.donorService.getAllFoodBankProduceDonors()),e.defaultProduceItemConfig={Distance:null,FobCostPerPound:null,ProduceItemTypeID:null,Selected:!1,SelectedEntityIds:[]},e.produceItemConfigs=e.produceItems.map(o=>{const s=i.Value?.ItemConfigs.find(a=>a.ProduceItemTypeID===o.ID);return{produceItem:o,notificationConfig:s??{ProduceItemTypeID:o.ID,Selected:!1},donors:e.donors.filter(a=>s?.SelectedEntityIds?.includes(a.EntityId))}}),e.defaultProduceItemConfig.Selected=!e.produceItemConfigs.some(o=>!o.notificationConfig.Selected),e.excludeComboOffers=i.Value.ExcludeComboOffers,e.lastSavedProduceItemConfigs=(0,bhe.A)(e.produceItemConfigs),e.loading=!1}catch{return void e.toaster.displayErrorToast("Error","There was an error retrieving produce notification config data, please try again later.")}})()}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(Che),n.rXU(LPt),n.rXU(tc),n.rXU(wc),n.rXU(Zb),n.rXU(KF))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-produce-notification-config"]],viewQuery:function(i,o){if(1&i&&n.GBs(NPt,5),2&i){let s;n.mGM(s=n.lsd())&&(o.notificationContainer=s.first)}},standalone:!1,decls:35,vars:6,consts:[["produceNotificationContainer",""],[1,"display-flex","flex-auto","flex-col"],[1,"display-flex","flex-auto","flex-col","tw-overflow-y-auto","tw-p-2"],[1,"tw-cursor-pointer",3,"click"],[1,"tw-mb-4"],["id","excludeCombosCheckbox","type","checkbox",3,"ngModelChange","change","ngModel","disabled"],["for","excludeCombosCheckbox"],[1,"tw-font-bold"],["class","tw-mb-4 tw-w-full tw-table-fixed",4,"ngIf"],["id","customConfigContainer",1,"tw-h-auto","sm:tw-h-0",2,"height","0px"],[1,"tw-w-full"],[1,"grid-header"],[4,"ngFor","ngForOf"],["class","tw-mt-16 tw-flex tw-flex-col",4,"ngIf"],[1,"tw-mb-2","tw-mr-2","tw-mt-4","tw-flex","tw-justify-end"],[1,"btn","btn-primary","tw-items-center","tw-gap-2","md:tw-flex",3,"click","disabled"],[1,"tw-mb-4","tw-w-full","tw-table-fixed"],["id","selectAllCheckbox","type","checkbox",3,"ngModelChange","change","ngModel","value","disabled"],["for","selectAllCheckbox"],["type","number","step","0.01","min","0",1,"configuration-input",3,"ngModelChange","keyup","change","blur","ngModel","disabled"],["type","number","step","5","min","0",1,"configuration-input",3,"ngModelChange","keyup","change","blur","ngModel","disabled"],[1,"tw-hidden","sm:tw-inline"],[1,"tw-m-2","tw-w-80","lg:tw-w-[350px]"],["optionLabel","Name","optionValue","EntityID","placeholder","Select Suppliers","styleClass","w-full",3,"ngModelChange","onChange","options","ngModel","maxSelectedLabels","virtualScroll","virtualScrollItemSize"],["type","checkbox",3,"ngModelChange","change","id","checked","ngModel","value","disabled"],[3,"for"],["type","number","step","0.01","min","0",1,"configuration-input",3,"ngModelChange","keyup","change","ngModel","disabled"],["type","number","step","5","min","0",1,"configuration-input",3,"ngModelChange","keyup","change","ngModel","disabled"],[1,"tw-m-2","tw-w-80","lg:tw-w-[512px]"],[1,"tw-mt-16","tw-flex","tw-flex-col"],[1,"tw-mb-1","tw-w-full"],["shape","rectangle","height","2rem"],[1,"tw-mb-14","tw-w-full"],["class","tw-mb-1 tw-w-full",4,"ngFor","ngForOf"]],template:function(i,o){if(1&i){const s=n.RV6();n.j41(0,"div",1,0)(2,"div",2)(3,"p"),n.EFF(4," Set up automated text messages to all of your Produce Contacts (with cell phone numbers listed in MealConnect) when a specific offer you are interested in becomes available on MealConnect. You can add and manage Produce Contacts on Configuration > "),n.j41(5,"a",3),n.bIt("click",function(){return n.eBV(s),n.Njj(o.navigateToExtendedContacts())}),n.EFF(6,"Contacts"),n.k0s(),n.EFF(7,". "),n.k0s(),n.j41(8,"p"),n.EFF(9," You can set up as many or as few notifications as you'd like. If want text messages for EVERY offer, just click Enable All, and leave the FOB and distance fields blank. If, for example, you just want notifications for truckloads of strawberries located less than 300 miles away, you would select the Strawberry checkbox, leave the middle FOB $ limit blank, and enter 300 in the distance field. "),n.k0s(),n.j41(10,"div",4)(11,"input",5),n.mxI("ngModelChange",function(l){return n.eBV(s),n.DH7(o.excludeComboOffers,l)||(o.excludeComboOffers=l),n.Njj(l)}),n.bIt("change",function(){return n.eBV(s),n.Njj(o.submit(!0))}),n.k0s(),n.j41(12,"label",6),n.EFF(13," Exclude Combo Offers"),n.k0s()(),n.j41(14,"h4",7),n.EFF(15,"Defaults"),n.k0s(),n.DNE(16,BPt,26,12,"table",8),n.j41(17,"h4",7),n.EFF(18,"Customizations"),n.k0s(),n.j41(19,"div",9)(20,"table",10)(21,"thead")(22,"th",11),n.EFF(23,"Item"),n.k0s(),n.j41(24,"th",11),n.EFF(25,"FOB $/lb"),n.k0s(),n.j41(26,"th",11),n.EFF(27,"Distance Away"),n.k0s(),n.j41(28,"th",11),n.EFF(29,"From these suppliers:"),n.k0s()(),n.DNE(30,VPt,16,16,"tr",12),n.k0s()(),n.DNE(31,HPt,6,2,"div",13),n.k0s(),n.j41(32,"div",14)(33,"button",15),n.bIt("click",function(){return n.eBV(s),n.Njj(o.submit(!0))}),n.EFF(34," Save "),n.k0s()()()}2&i&&(n.R7$(11),n.R50("ngModel",o.excludeComboOffers),n.Y8G("disabled",o.saving),n.R7$(5),n.Y8G("ngIf",o.defaultProduceItemConfig),n.R7$(14),n.Y8G("ngForOf",o.produceItemConfigs),n.R7$(),n.Y8G("ngIf",o.loading),n.R7$(2),n.Y8G("disabled",o.saving))},dependencies:[oo,fi,Cc,rk,Cv,_o,ok,ko,Hb,Pq],styles:[".configuration-input[_ngcontent-%COMP%]{height:1.75rem;width:5rem;border-radius:.25rem;border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1));padding:.5rem}.grid-header[_ngcontent-%COMP%]{padding:1rem 1.5rem;text-align:center;font-size:.75rem;line-height:1rem;font-weight:400;text-transform:uppercase;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}p[_ngcontent-%COMP%]{max-width:unset;font-size:small}th[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(83 104 43 / var(--tw-bg-opacity, 1))}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{height:2.5rem;border-radius:.25rem;border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}td[_ngcontent-%COMP%], label[_ngcontent-%COMP%]{padding-left:.5rem}h4[_ngcontent-%COMP%]{margin:0}table[_ngcontent-%COMP%]{margin-top:0}"]})}}return t})();function WPt(t,r){if(1&t){const e=n.RV6();n.j41(0,"span",4),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.showDialog())}),n.nrm(1,"i",5),n.k0s()}}function zPt(t,r){1&t&&(n.j41(0,"tr")(1,"th"),n.EFF(2,"Date Changed"),n.k0s(),n.j41(3,"th"),n.EFF(4,"Scheduled Pickup Date"),n.k0s(),n.j41(5,"th"),n.EFF(6,"Scheduled Delivery Date"),n.k0s()())}function qPt(t,r){if(1&t&&(n.j41(0,"tr")(1,"td"),n.EFF(2),n.nI1(3,"date"),n.k0s(),n.j41(4,"td"),n.EFF(5),n.nI1(6,"date"),n.k0s(),n.j41(7,"td"),n.EFF(8),n.nI1(9,"date"),n.k0s()()),2&t){const e=r.$implicit;n.R7$(2),n.JRh(n.i5U(3,3,e.Created,"MM/dd/YYYY")),n.R7$(3),n.JRh(n.i5U(6,6,e.CarrierScheduledPickupDate,"MM/dd/YYYY")),n.R7$(3),n.JRh(n.i5U(9,9,e.CarrierScheduledDeliveryDate,"MM/dd/YYYY"))}}function XPt(t,r){if(1&t&&(n.j41(0,"div",10)(1,"span"),n.EFF(2),n.nI1(3,"date"),n.k0s()()),2&t){const e=n.XpG(2);n.R7$(2),n.SpI("Delivered on ",n.i5U(3,1,e.deliveredDate,"MM/dd/YYYY"),"")}}function KPt(t,r){if(1&t&&(n.j41(0,"p-table",6),n.DNE(1,zPt,7,0,"ng-template",7)(2,qPt,10,12,"ng-template",8),n.k0s(),n.DNE(3,XPt,4,4,"div",9)),2&t){const e=n.XpG();n.Y8G("value",e.displayHistoryRecords),n.R7$(3),n.Y8G("ngIf",e.deliveredDate)}}function QPt(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",11),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.dialogIsOpen=!1)}),n.EFF(1," Ok "),n.k0s()}}let JPt=(()=>{class t{get orderTruckSalesOrderHistoryRecords(){return this.innerOrderTruckSalesOrderHistoryRecords}set orderTruckSalesOrderHistoryRecords(e){this.innerOrderTruckSalesOrderHistoryRecords=e,this.initialized&&this.initializeHistoryData()}constructor(){this.orderNumber=0,this.innerOrderTruckSalesOrderHistoryRecords=[],this.mode="pickup",this.dialogIsOpen=!1,this.deliveryDateChanged=!1,this.pickupDateChanged=!1,this.deliveredDate=null,this.displayHistoryRecords=[],this.initialized=!1}ngOnInit(){this.initializeHistoryData(),this.initialized=!0}onModalClosed(){this.dialogIsOpen=!1}initializeHistoryData(){this.sortByCreatedDate(this.innerOrderTruckSalesOrderHistoryRecords),this.deliveryDateChanged=!!this.dateScheduledDeliveryDateChanged(),this.pickupDateChanged=!!this.dateScheduledPickupDateChanged(),this.deliveredDate=this.getDeliveryDate(),this.displayHistoryRecords=this.dedupeHistoryRecordsForDisplay()}dedupeHistoryRecordsForDisplay(){return function $Pt(t,r){return r="function"==typeof r?r:void 0,t&&t.length?zde(t,void 0,r):[]}(this.innerOrderTruckSalesOrderHistoryRecords.filter(e=>e.CarrierScheduledPickupDate||e.CarrierScheduledDeliveryDate),(e,i)=>{const o=new Date(e.CarrierScheduledDeliveryDate).setHours(0,0,0,0),s=new Date(i.CarrierScheduledDeliveryDate).setHours(0,0,0,0),a=new Date(e.CarrierScheduledPickupDate).setHours(0,0,0,0),l=new Date(i.CarrierScheduledPickupDate).setHours(0,0,0,0);return o==s&&a==l})}getDeliveryDate(){if(!this.innerOrderTruckSalesOrderHistoryRecords||0===this.innerOrderTruckSalesOrderHistoryRecords.length)return null;const e=this.innerOrderTruckSalesOrderHistoryRecords.filter(i=>!!i.CarrierDeliveryDate);return 0===e.length?null:e[e.length-1].CarrierDeliveryDate}sortByCreatedDate(e){e.sort((i,o)=>i.Created<o.Created?-1:i.Created>o.Created?1:0)}showDialog(){this.dialogIsOpen=!this.dialogIsOpen}dateScheduledDeliveryDateChanged(){if("pickup"==this.mode||!this.orderTruckSalesOrderHistoryRecords||this.orderTruckSalesOrderHistoryRecords.length<=1)return null;let e=null;for(let i=1;i<this.orderTruckSalesOrderHistoryRecords.length;i++){let o=null;this.orderTruckSalesOrderHistoryRecords[i].CarrierScheduledDeliveryDate&&(o=new Date(this.orderTruckSalesOrderHistoryRecords[i].CarrierScheduledDeliveryDate).setHours(0,0,0,0));let s=null;this.orderTruckSalesOrderHistoryRecords[i-1].CarrierScheduledDeliveryDate&&(s=new Date(this.orderTruckSalesOrderHistoryRecords[i-1].CarrierScheduledDeliveryDate).setHours(0,0,0,0)),o&&s&&o!=s&&(e=this.orderTruckSalesOrderHistoryRecords[i].Created)}return e}dateScheduledPickupDateChanged(){if("delivery"==this.mode||!this.orderTruckSalesOrderHistoryRecords||this.orderTruckSalesOrderHistoryRecords.length<=1)return null;let e=null;for(let i=1;i<this.orderTruckSalesOrderHistoryRecords.length;i++){let o=null;this.orderTruckSalesOrderHistoryRecords[i].CarrierScheduledPickupDate&&(o=new Date(this.orderTruckSalesOrderHistoryRecords[i].CarrierScheduledPickupDate).setHours(0,0,0,0));let s=null;this.orderTruckSalesOrderHistoryRecords[i-1].CarrierScheduledPickupDate&&(s=new Date(this.orderTruckSalesOrderHistoryRecords[i-1].CarrierScheduledPickupDate).setHours(0,0,0,0)),o&&s&&o!=s&&(e=this.orderTruckSalesOrderHistoryRecords[i].Created)}return e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["pickup-delivery-date-history-modal"]],inputs:{orderNumber:"orderNumber",orderTruckSalesOrderHistoryRecords:"orderTruckSalesOrderHistoryRecords",mode:"mode"},standalone:!1,decls:6,vars:5,consts:[["body",""],["footer",""],[3,"click",4,"ngIf"],[3,"modalClosed","title","bodyTemplate","footerTemplate","isOpen"],[3,"click"],[1,"fa","fa-info-circle","call-to-action"],["selectionMode","single","responsiveLayout","scroll",3,"value"],["pTemplate","header"],["pTemplate","body"],["class","delivered-date",4,"ngIf"],[1,"delivered-date"],["label","Ok",1,"btn","btn-primary",3,"click"]],template:function(i,o){if(1&i){const s=n.RV6();n.DNE(0,WPt,2,0,"span",2),n.j41(1,"modal",3),n.bIt("modalClosed",function(){return n.eBV(s),n.Njj(o.onModalClosed())}),n.k0s(),n.DNE(2,KPt,4,2,"ng-template",null,0,n.C5r)(4,QPt,2,0,"ng-template",null,1,n.C5r)}if(2&i){const s=n.sdS(3),a=n.sdS(5);n.Y8G("ngIf",o.deliveryDateChanged||o.pickupDateChanged),n.R7$(),n.Y8G("title","Pickup/Delivery Date Changes for Order #"+o.orderNumber)("bodyTemplate",s)("footerTemplate",a)("isOpen",o.dialogIsOpen)}},dependencies:[hs,fi,E2,Nu,ti],styles:[".call-to-action[_ngcontent-%COMP%]{color:#e98300}.delivered-date[_ngcontent-%COMP%]{margin-top:15px;font-size:14px;font-weight:700}"]})}}return t})();var ZPt=b(2900),whe=b.n(ZPt);function eLt(t,r){if(1&t&&(n.j41(0,"div",18)(1,"span",3),n.EFF(2),n.k0s(),n.j41(3,"span"),n.EFF(4),n.k0s()()),2&t){const e=n.XpG(2);n.R7$(2),n.JRh(e.receiptCreatedTime),n.R7$(2),n.JRh(e.receiptCreatedDate)}}function tLt(t,r){if(1&t&&(n.j41(0,"div")(1,"span",3),n.EFF(2),n.k0s(),n.j41(3,"span"),n.EFF(4),n.k0s()()),2&t){const e=n.XpG(2);n.R7$(2),n.JRh(e.receiptTransmittedTime),n.R7$(2),n.JRh(e.receiptTransmittedDate)}}function nLt(t,r){if(1&t&&(n.j41(0,"div")(1,"span",3),n.EFF(2),n.k0s(),n.j41(3,"span"),n.EFF(4),n.k0s()()),2&t){const e=n.XpG(2);n.R7$(2),n.JRh(e.receiptAcknowledgedTime),n.R7$(2),n.JRh(e.receiptAcknowledgedDate)}}function iLt(t,r){if(1&t&&(n.j41(0,"div",2)(1,"div",3),n.EFF(2,"Receipt Data Tracking"),n.k0s(),n.j41(3,"div",4),n.EFF(4,"From MealConnect to National Office"),n.k0s(),n.j41(5,"div",5)(6,"div",6),n.nrm(7,"i",7),n.k0s(),n.j41(8,"div",8),n.nrm(9,"div",9),n.k0s(),n.j41(10,"div",6),n.nrm(11,"i",10),n.k0s(),n.j41(12,"div",8),n.nrm(13,"div",9),n.k0s(),n.j41(14,"div",6),n.nrm(15,"i",10),n.k0s(),n.nrm(16,"div",11),n.k0s(),n.j41(17,"div",12)(18,"div",13),n.DNE(19,eLt,5,2,"div",14),n.j41(20,"div"),n.EFF(21),n.k0s()(),n.j41(22,"div",15),n.DNE(23,tLt,5,2,"div",16),n.j41(24,"div"),n.EFF(25),n.k0s()(),n.j41(26,"div",17),n.DNE(27,nLt,5,2,"div",16),n.j41(28,"div"),n.EFF(29),n.k0s()()()()),2&t){const e=n.XpG();n.R7$(11),n.HbH(e.receiptTransmittedIconClass),n.R7$(4),n.HbH(e.receiptAcknowledgedIconClass),n.R7$(4),n.Y8G("ngIf",null==e.receiptSummary?null:e.receiptSummary.ReceiptCreationTime),n.R7$(2),n.SpI(" ",e.receiptCreatedText," "),n.R7$(2),n.Y8G("ngIf",null==e.receiptSummary?null:e.receiptSummary.ReceiptTransmittedTime),n.R7$(2),n.SpI(" ",e.receiptTransmittedText," "),n.R7$(2),n.Y8G("ngIf",null==e.receiptSummary?null:e.receiptSummary.ReceiptAcknowledgedTime),n.R7$(2),n.SpI(" ",e.receiptAcknowledgedText," ")}}function rLt(t,r){if(1&t&&(n.j41(0,"div",18)(1,"span",3),n.EFF(2),n.k0s()()),2&t){const e=n.XpG(2);n.R7$(2),n.E5c("",e.receiptCreatedTime," ",e.receiptCreatedDate," - ",e.receiptCreatedText,"")}}function oLt(t,r){if(1&t&&(n.j41(0,"li")(1,"div",18)(2,"span",3),n.EFF(3),n.k0s()()()),2&t){const e=n.XpG(2);n.R7$(3),n.E5c(" ",e.receiptTransmittedTime," ",e.receiptTransmittedDate," - ",e.receiptTransmittedText,"")}}function sLt(t,r){if(1&t&&(n.j41(0,"li")(1,"div",18)(2,"span",3),n.EFF(3),n.k0s()()()),2&t){const e=n.XpG(2);n.R7$(3),n.E5c(" ",e.receiptAcknowledgedTime," ",e.receiptAcknowledgedDate," - ",e.receiptAcknowledgedText,"")}}function aLt(t,r){if(1&t&&(n.j41(0,"div",19)(1,"span",3),n.EFF(2,"Receipt Tracking:"),n.k0s(),n.j41(3,"ul",20)(4,"li"),n.DNE(5,rLt,3,3,"div",14),n.k0s(),n.DNE(6,oLt,4,3,"li",16)(7,sLt,4,3,"li",16),n.k0s()()),2&t){const e=n.XpG();n.R7$(5),n.Y8G("ngIf",null==e.receiptSummary?null:e.receiptSummary.ReceiptCreationTime),n.R7$(),n.Y8G("ngIf",null==e.receiptSummary?null:e.receiptSummary.ReceiptTransmittedTime),n.R7$(),n.Y8G("ngIf",null==e.receiptSummary?null:e.receiptSummary.ReceiptAcknowledgedTime)}}let The=(()=>{class t{get receiptSummary(){return this._receiptSummary}set receiptSummary(e){this._receiptSummary=e,this.reset(),this.setSummaryDescriptions()}constructor(){this._receiptSummary=null,this.receiptCreatedTime="",this.receiptCreatedDate="",this.receiptCreatedText="",this.receiptTransmittedTime="",this.receiptTransmittedDate="",this.receiptTransmittedText="",this.receiptTransmittedIconClass="",this.receiptAcknowledgedTime="",this.receiptAcknowledgedDate="",this.receiptAcknowledgedText="",this.receiptAcknowledgedIconClass="",el().extend(whe())}ngOnInit(){}reset(){this.receiptCreatedTime="",this.receiptCreatedDate="",this.receiptCreatedText="Receipt Created",this.receiptTransmittedTime="",this.receiptTransmittedDate="",this.receiptTransmittedText="Waiting to Transmit",this.receiptTransmittedIconClass="pi-spinner pi-spin",this.receiptAcknowledgedTime="",this.receiptAcknowledgedDate="",this.receiptAcknowledgedText="Waiting for Acknowledgement",this.receiptAcknowledgedIconClass=""}setSummaryDescriptions(){if(!this.receiptSummary)return;const e=el()(this.receiptSummary.ReceiptCreationTime);if(this.receiptCreatedTime=e.format("h:mm"),this.receiptCreatedDate=` (${e.format("MMM Do")})`,this.receiptSummary.IsReceiptComplete||(this.receiptTransmittedText="Waiting for other parties to complete receipt"),this.receiptSummary.ReceiptTransmittedTime){const i=el()(this.receiptSummary.ReceiptTransmittedTime);this.receiptTransmittedTime=i.format("h:mm"),this.receiptTransmittedDate=` (${i.format("MMM Do")})`,this.receiptTransmittedIconClass="pi-check",this.receiptTransmittedText="Receipt Transmitted",this.receiptAcknowledgedIconClass="pi-spinner pi-spin"}if(this.receiptSummary.ReceiptAcknowledgedTime){const i=el()(this.receiptSummary.ReceiptAcknowledgedTime);this.receiptAcknowledgedTime=i.format("h:mm"),this.receiptAcknowledgedDate=` (${i.format("MMM Do")})`,this.receiptAcknowledgedIconClass="pi-check",this.receiptAcknowledgedText="Receipt Acknowledged"}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["receipt-status-tracker"]],inputs:{receiptSummary:"receiptSummary"},standalone:!1,decls:2,vars:2,consts:[["class","tw-hidden md:tw-block",4,"ngIf"],["class","tw-block md:tw-hidden tw-w-full",4,"ngIf"],[1,"tw-hidden","md:tw-block"],[1,"tw-font-bold"],[1,"tw-mb-2"],[1,"tw-grid","tw-grid-flow-col","tw-auto-cols-min","tw-gap-0","tw-ml-6"],[1,"tw-rounded-full","tw-w-12","tw-h-12","tw-bg-gray-300"],[1,"tw-flex","pi","pi-check","tw-justify-center","tw-mt-2",2,"font-size","2rem"],[1,"tw-flex","tw-h-12","tw-w-24","tw-items-center"],[1,"tw-h-2","tw-w-full","tw-bg-gray-300"],[1,"tw-flex","pi","tw-justify-center","tw-mt-2",2,"font-size","2rem"],[1,"tw-flex","tw-h-12","tw-w-12","tw-items-center"],[1,"tw-grid","tw-grid-flow-col","tw-auto-cols-min","tw-gap-0","tw-mt-2","tw-text-xs"],[1,"tw-w-36","tw-h-12","tw-text-left"],["role","note",4,"ngIf"],["role","note",1,"tw-w-36","tw-h-12"],[4,"ngIf"],["role","note",1,"tw-w-44","tw-h-12"],["role","note"],[1,"tw-block","md:tw-hidden","tw-w-full"],[1,"tw-w-full"]],template:function(i,o){1&i&&n.DNE(0,iLt,30,10,"div",0)(1,aLt,8,3,"div",1),2&i&&(n.Y8G("ngIf",o.receiptSummary),n.R7$(),n.Y8G("ngIf",o.receiptSummary))},dependencies:[fi],encapsulation:2})}}return t})(),lLt=(()=>{class t{constructor(){this.style=""}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["icon-info-circle-solid"]],inputs:{style:"style"},standalone:!1,decls:2,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24","fill","currentColor"],["fill-rule","evenodd","d","M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm8.706-1.442c1.146-.573 2.437.463 2.126 1.706l-.709 2.836.042-.02a.75.75 0 01.67 1.34l-.04.022c-1.147.573-2.438-.463-2.127-1.706l.71-2.836-.042.02a.75.75 0 11-.671-1.34l.041-.022zM12 9a.75.75 0 100-1.5.75.75 0 000 1.5z","clip-rule","evenodd"]],template:function(i,o){1&i&&(n.qSk(),n.j41(0,"svg",0),n.nrm(1,"path",1),n.k0s())},encapsulation:2})}}return t})(),SI=(()=>{class t{constructor(){}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["help-indicator"]],standalone:!1,decls:1,vars:0,consts:[[1,"hover:tw-opacity-80"]],template:function(i,o){1&i&&n.nrm(0,"icon-info-circle-solid",0)},dependencies:[lLt],encapsulation:2})}}return t})();function cLt(t,r){1&t&&n.nrm(0,"help-indicator",6),2&t&&n.Y8G("pTooltip","Switch to 'Bulk Receipting' mode to view receipting status and create receipts for multiple trucks at a time.")}let uLt=(()=>{class t{constructor(){this.modeUpdate=new n.bkB,this.initialModeEnabled=!1,this.hideTooltip=!1,this.currentModeAppStorageKey="ReceiptModeSelectorBulkEnabled"}ngOnInit(){}ngAfterViewInit(){"true"===sessionStorage.getItem(this.currentModeAppStorageKey)?(this.initialModeEnabled=!0,this.modeUpdate.emit(!0)):(this.initialModeEnabled=!1,this.modeUpdate.emit(!1))}onCheckboxChange(e){this.modeUpdate.emit(!e),sessionStorage.setItem(this.currentModeAppStorageKey,(!e).toString())}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["receipt-mode-selector"]],inputs:{initialModeEnabled:"initialModeEnabled",hideTooltip:"hideTooltip"},outputs:{modeUpdate:"modeUpdate"},standalone:!1,decls:6,vars:2,consts:[["checkbox",""],[1,"mode-select-container"],["class","tw-w-8 tw-h-8 tw-text-gray-700",3,"pTooltip",4,"ngIf"],[1,"mode-select"],["type","checkbox","id","mode-select",3,"change","checked"],["for","mode-select"],[1,"tw-w-8","tw-h-8","tw-text-gray-700",3,"pTooltip"]],template:function(i,o){if(1&i){const s=n.RV6();n.j41(0,"div",1),n.DNE(1,cLt,1,1,"help-indicator",2),n.j41(2,"span",3)(3,"input",4,0),n.bIt("change",function(){n.eBV(s);const l=n.sdS(4);return n.Njj(o.onCheckboxChange(l.checked))}),n.k0s(),n.nrm(5,"label",5),n.k0s()()}2&i&&(n.R7$(),n.Y8G("ngIf",!o.hideTooltip),n.R7$(2),n.Y8G("checked",!o.initialModeEnabled))},dependencies:[fi,SI,ou],styles:['help-indicator[_ngcontent-%COMP%]{position:absolute;right:205px;top:33px}.mode-select-container[_ngcontent-%COMP%]{display:flex;position:relative;justify-content:right;margin-top:-30px;margin-bottom:-10px;margin-right:30px}.mode-select[_ngcontent-%COMP%]{position:relative;width:200px;height:50px;border-radius:25px;margin:20px 0;font-size:.9em}.mode-select[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{appearance:none;position:relative;width:230px;height:50px;border-radius:25px;background-color:#1e1e1e;outline:none;font-family:sans-serif;cursor:pointer}span.mode-select[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:before, span.mode-select[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:after{z-index:2;position:absolute;top:50%;transform:translateY(-50%);color:#eee}span.mode-select[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:before{content:"Normal";left:20px}span.mode-select[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:after{content:"Bulk Receipting";right:20px;color:#fff}span.mode-select[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{z-index:1;position:absolute;top:10px;bottom:-3px;border-radius:20px}span.mode-select.mode-select[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{transition:.25s -.1s}span.mode-select.mode-select[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:checked{background-color:#eee}span.mode-select.mode-select[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:checked:hover{background-color:#f5f5f5}span.mode-select.mode-select[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:checked:before{color:#eee;transition:color .5s .2s}span.mode-select.mode-select[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:checked:after{color:#aaa;transition:color .5s}span.mode-select.mode-select[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{left:8px;right:120px;background:#333;transition:left .5s,right .4s .2s}span.mode-select.mode-select[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:not(:checked){background:#333;transition:background .5s -.1s}span.mode-select.mode-select[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:not(:checked):hover{background:#555}span.mode-select.mode-select[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:not(:checked):before{color:#ccc;transition:color .5s}span.mode-select.mode-select[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:not(:checked):after{color:#333;transition:color .5s .2s}span.mode-select.mode-select[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:not(:checked) + label[_ngcontent-%COMP%]{left:90px;right:-23px;background:#eee;transition:left .4s .2s,right .5s,background .35s -.1s}']})}}return t})(),dLt=(()=>{class t{constructor(){}logError(e,i){window.Rollbar&&Rollbar.error(e,i)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),QX=(()=>{class t{constructor(e,i){this.http=e,this.loggerService=i}getReceiptFoundations(e){const i=new Mp({fromString:e.map(o=>`truckIds=${o}`).join("&")});return Yo(this.http.get("/api/produce/receipts/foundation",{params:i}))}getReceiptSummary(e){return Yo(this.http.get(`/api/produce/receipts/?truckId=${e}`))}saveChangeRequest(e){return Yo(this.http.post(`/api/produce/receipts/${e.ReceiptID}/changes`,e))}submitReceiptCreations(e){return Yo(this.http.post("/api/produce/receipts",e))}checkReceiptFoundationsForMissingData(e,i=null){try{e.some(s=>s.Origins.some(a=>a.Destinations.some(l=>l.Items.some(c=>c.WeightPounds>0&&null==c.OrderTruckSalesOrderHistoryItemID))))&&this.loggerService.logError("Missing OrderTruckSalesOrderHistoryID",{foundations:e,source:i})}catch(o){this.loggerService.logError("Unable to complete check of receipt foundation for missing data",o)}}static{this.\u0275fac=function(i){return new(i||t)(n.KVO(Da),n.KVO(dLt))}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),She=(()=>{class t{constructor(){}getCommaSeparatedList(e,i="and"){let o="";e=[...new Set(e)];for(let s=0;s<e.length;s++)o+=s<e.length-1?s>0?", "+e[s]:e[s]:s>0?" "+i+" "+e[s]:e[s];return o}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),D6=(()=>{class t{constructor(e){this.textModificationService=e}convertToReceiptCreation(e){return{OrderID:e.OrderID,OrderTruckID:e.OrderTruckID,Comments:"",OrderTruckVersion:e.OrderTruckVersion,OrderTruckSalesOrderHistoryVersion:e.OrderTruckSalesOrderHistoryVersion,Origins:e.Origins.map(i=>({OriginEntityID:i.OriginEntityID,Destinations:i.Destinations.map(o=>({DestinationEntityID:o.DestinationEntityID,IsEditable:o.IsEditable,IsRequiredToSubmit:o.IsRequiredToSubmit,Items:o.Items.map(s=>({ItemTypeName:s.ItemTypeName,ProduceItemTypeID:s.ProduceItemTypeID,Description:s.Description,Quantity:s.Quantity,QuantityUnitType:s.QuantityUnitType,Pallets:s.Pallets,WeightPounds:s.WeightPounds,IsCreatedAsOrdered:s.IsCreatedAsOrdered,OrderTruckSalesOrderHistoryItemID:s.OrderTruckSalesOrderHistoryItemID,DeliveredPallets:s.ExistingPallets,DeliveredQuantityUnitType:s.ExistingQuantityUnitType,DeliveredQuantity:s.ExistingQuantity,DeliveredWeightPounds:s.ExistingWeightPounds,ProduceReceiptLineItemID:s.ProduceReceiptLineItemID,AddedDuringReceipting:s.AddedDuringReceipting})),TotalWeightPounds:o.Items.reduce((s,a)=>s+a.WeightPounds,0)}))}))}}getReceiptBundleTotalPounds(e){if(!e||!e.ReceiptCreation)return 0;let i=0;return e.ReceiptCreation.Origins.forEach(o=>{o.Destinations.filter(s=>s.IsEditable).forEach(s=>{i+=s.TotalWeightPounds})}),i}getReceiptCreationTotalPounds(e){if(!e)return 0;let i=0;return e.Origins.forEach(o=>{o.Destinations.forEach(s=>{s.Items.forEach(a=>{i+=a.DeliveredWeightPounds??0})})}),i}getReceiptFoundationTotalPounds(e){if(!e||!e.Origins)return 0;let i=0;return e.Origins.forEach(o=>{o.Destinations.forEach(s=>{i+=s.TotalPounds})}),i}getItemNamesFromReceiptFoundation(e){if(!e)return"";let i=[];return e.Origins.forEach(o=>{o.Destinations.filter(s=>s.IsEditable).forEach(s=>{s.Items.forEach(a=>{i.push(a.ItemTypeName)})})}),this.textModificationService.getCommaSeparatedList(i).toLowerCase()}getItemNamesFromReceiptCreation(e){if(!e)return"";let i=[];return e.Origins.forEach(o=>{o.Destinations.forEach(s=>{s.Items.forEach(a=>{i.push(a.ItemTypeName)})})}),this.textModificationService.getCommaSeparatedList(i)}updateReceiptCreation(e,i){i.Comments=e.Comments,e.Origins.forEach(o=>{o.Destinations.forEach(s=>{s.Items.forEach(a=>{a.Pallets=a.DeliveredPallets,a.Quantity=a.DeliveredQuantity??0,a.QuantityUnitType=a.DeliveredQuantityUnitType??"",a.WeightPounds=a.DeliveredWeightPounds??0})})})}static{this.\u0275fac=function(i){return new(i||t)(n.KVO(She))}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var xa=function(t){return t.LoadingBundles="LoadingBundles",t.LoadingBundlesFailed="LoadingBundlesFailed",t.AnalyzingBundles="AnalyzingBundles",t.NoReceiptsAvailable="NoReceiptsAvailable",t.ViewingSummary="ViewingSummary",t.MakingAdjustments="MakingAdjustments",t.DetermineNextStep="DetermineNextStep",t.Reviewing="Reviewing",t.Submitting="Submitting",t.SubmissionSuccessful="SubmissionSuccessful",t.SubmissionFailed="SubmissionFailed",t.AnalyzingSubmissionResult="AnalyzingSubmissionResult",t}(xa||{}),Wu=function(t){return t.OnBundlesLoaded="OnBundlesLoaded",t.OnBundleSelected="OnBundleSelected",t.OnCorrect="OnCorrect",t.OnAdjustmentsRequired="OnAdjustmentsRequired",t.OnAdjustmentsComplete="OnAdjustmentsComplete",t.OnReviewRequested="OnReviewRequested",t.OnFailureDismissed="OnFailureDismissed",t.OnReloadBundles="OnReloadBundles",t}(Wu||{});let pLt=(()=>{class t{get cacheKey(){return`produce.receipting.${this.claimsService.userName}`}get interpreter(){return this._interpreter}get truckIds(){return this._truckIds}get state$(){return this._state$}constructor(e,i,o,s){this.cacheService=e,this.produceReceiptsService=i,this.produceModelsMapperService=o,this.claimsService=s,this._truckIds=[],this.adjustmentRequested=!1,this._interpreter=null}init(e,i){var o=this;this._truckIds=[...e];const s=(0,yI.k)({receiptBundles:[],selectedReceiptBundle:{}}),a=function(){var w=(0,lr.A)(function*(x){yield o.cacheService.cache({key:o.cacheKey,value:{truckIds:e,receiptBundles:x},persist:!0,ttl:1/0})});return function(I){return w.apply(this,arguments)}}(),l=function(){var w=(0,lr.A)(function*(){var x=yield o.cacheService.get(o.cacheKey);if(x&&JSON.stringify(x.truckIds)===JSON.stringify(e)){if(x.receiptBundles&&x.receiptBundles.length>0){const F=x.receiptBundles.filter(re=>null!=re.ReceiptFoundation).map(re=>re.ReceiptFoundation);o.produceReceiptsService.checkReceiptFoundationsForMissingData(F,"ProduceReceiptingStateService (cached)")}return x.receiptBundles}let I=[],M=yield o.produceReceiptsService.getReceiptFoundations(e);return M&&M.length>0&&o.produceReceiptsService.checkReceiptFoundationsForMissingData(M,"ProduceReceiptingStateService (http)"),M.forEach(F=>{I.push({Identifier:F.Identifier,ReceiptFoundation:F,ReceiptCreation:o.produceModelsMapperService.convertToReceiptCreation(F)})}),yield a(I),I});return function(){return w.apply(this,arguments)}}(),c=function(){var w=(0,lr.A)(function*(x){let I=x.receiptBundles.map(M=>M.ReceiptCreation);return yield o.produceReceiptsService.submitReceiptCreations(I)});return function(I){return w.apply(this,arguments)}}(),d=s.assign((w,x)=>1===w.receiptBundles.length?{selectedReceiptBundle:w.receiptBundles[0]}:w.receiptBundles.every(F=>F.IsReadyToSubmit)?{selectedReceiptBundle:null}:{selectedReceiptBundle:w.receiptBundles.find(F=>!F.IsReadyToSubmit)}),f=w=>{w.receiptBundles.forEach(x=>x.ReceiptCreationResult=void 0)},v=_I({id:"ReceiptingMachine",predictableActionArguments:!0,initial:xa.LoadingBundles,context:s.initialContext,states:{[xa.LoadingBundles]:{entry:s.assign({receiptBundles:[],selectedReceiptBundle:null}),invoke:{src:l,onDone:{actions:[s.assign({receiptBundles:(w,x)=>x.data}),d],target:xa.AnalyzingBundles},onError:{target:xa.LoadingBundlesFailed}}},[xa.AnalyzingBundles]:{always:[{target:xa.NoReceiptsAvailable,cond:(w,x)=>!w.receiptBundles?.length},{target:xa.MakingAdjustments,cond:(w,x)=>!!w.selectedReceiptBundle&&this.adjustmentRequested},{target:xa.ViewingSummary,cond:(w,x)=>!!w.selectedReceiptBundle&&!this.adjustmentRequested},{target:xa.Reviewing,cond:(w,x)=>w.receiptBundles.every(I=>I.IsReadyToSubmit)&&w.receiptBundles.length>1}]},[xa.LoadingBundlesFailed]:{},[xa.NoReceiptsAvailable]:{},[xa.ViewingSummary]:{on:{[Wu.OnCorrect]:[{cond:(w,x)=>w.receiptBundles.length>1,actions:[(w,x)=>{w.selectedReceiptBundle&&(w.selectedReceiptBundle.IsReadyToSubmit=!0)},d],target:[xa.AnalyzingBundles]},{cond:w=>1===w.receiptBundles.length,actions:[(w,x)=>{w.selectedReceiptBundle&&(w.selectedReceiptBundle.IsReadyToSubmit=!0)}],target:[xa.Submitting]}],[Wu.OnAdjustmentsRequired]:{actions:[s.assign({selectedReceiptBundle:(w,x)=>x.data})],target:[xa.MakingAdjustments]},[Wu.OnBundleSelected]:{actions:[s.assign({selectedReceiptBundle:(w,x)=>x.data})]},[Wu.OnReviewRequested]:{target:[xa.Reviewing]}}},[xa.MakingAdjustments]:{entry:[w=>{this.adjustmentRequested=!1}],on:{[Wu.OnAdjustmentsComplete]:[{cond:w=>w.receiptBundles.length>1,actions:[w=>{w.selectedReceiptBundle&&(w.selectedReceiptBundle.IsReadyToSubmit=!0)},d],target:[xa.AnalyzingBundles]},{cond:w=>1===w.receiptBundles.length,actions:[w=>{w.selectedReceiptBundle&&(w.selectedReceiptBundle.IsReadyToSubmit=!0)}],target:[xa.Submitting]}],[Wu.OnBundleSelected]:{actions:[s.assign({selectedReceiptBundle:(w,x)=>x.data})],target:[xa.ViewingSummary]},[Wu.OnReviewRequested]:{target:[xa.Reviewing]}}},[xa.Reviewing]:{entry:s.assign({selectedReceiptBundle:()=>null}),on:{[Wu.OnAdjustmentsRequired]:{actions:[s.assign({selectedReceiptBundle:(w,x)=>x.data}),f],target:[xa.MakingAdjustments]},[Wu.OnBundleSelected]:{actions:[s.assign({selectedReceiptBundle:(w,x)=>x.data}),f],target:[xa.AnalyzingBundles]},[Wu.OnCorrect]:{target:[xa.Submitting],cond:w=>w.receiptBundles.every(x=>x.IsReadyToSubmit)}}},[xa.Submitting]:{entry:[s.assign({result:()=>null}),f],invoke:{src:c,onDone:{actions:[s.assign({result:(w,x)=>x.data}),(w,x)=>{x.data.Results.forEach(M=>{let F=w.receiptBundles.find(re=>re.ReceiptCreation.OrderTruckID===M.OrderTruckID);F&&(F.ReceiptCreationResult=M)})}],target:[xa.AnalyzingSubmissionResult]},onError:{actions:[s.assign({result:(w,x)=>x.data})],target:[xa.SubmissionFailed]}}},[xa.AnalyzingSubmissionResult]:{always:[{target:[xa.SubmissionFailed],cond:w=>!w.result?.AllSuccessful},{target:[xa.SubmissionSuccessful],cond:w=>!!w.result?.AllSuccessful}]},[xa.SubmissionFailed]:{entry:[()=>{this.cacheService.clear(this.cacheKey)}],on:{[Wu.OnCorrect]:{target:[xa.Submitting]},[Wu.OnFailureDismissed]:[{cond:w=>1===w.receiptBundles.length,target:[xa.ViewingSummary]},{cond:w=>w.receiptBundles.length>1,target:[xa.Reviewing]}],[Wu.OnAdjustmentsRequired]:{actions:[s.assign({selectedReceiptBundle:(w,x)=>x.data}),f],target:[xa.MakingAdjustments]},[Wu.OnBundleSelected]:{actions:[s.assign({selectedReceiptBundle:(w,x)=>x.data}),f],target:[xa.AnalyzingBundles]},[Wu.OnReloadBundles]:{target:[xa.LoadingBundles]}}},[xa.SubmissionSuccessful]:{entry:[()=>{this.cacheService.clear(this.cacheKey)}]}}});return this._interpreter=x2(v),this._interpreter.start(),this._state$=new K.B,this._interpreter.onTransition(w=>{let x=this._interpreter?.getSnapshot().context.receiptBundles;x&&!(w.matches(xa.SubmissionSuccessful)||w.matches(xa.SubmissionFailed))&&a(x),this._state$.next(w.value)}),this._interpreter}setReceiptBundle(e,i){let o=this.getReceiptBundleByIdentifier(e);o&&this._interpreter?.getSnapshot().context.selectedReceiptBundle?.Identifier!==o.Identifier&&this._interpreter?.send(Wu.OnBundleSelected,{data:{receiptBundle:o,adjusting:i}})}viewReceipt(e){let i=this.getReceiptBundleByIdentifier(e);i||(i=this.getFirstReceiptBundle()),i&&this._interpreter?.send(Wu.OnBundleSelected,{data:i})}adjustReceipt(e){this.adjustmentRequested=!0;let i=this.getReceiptBundleByIdentifier(e);i&&this._interpreter?.send(Wu.OnAdjustmentsRequired,{data:i})}reviewReceipts(){this._interpreter&&this._interpreter.send(Wu.OnReviewRequested)}reset(){this._truckIds=[],this._interpreter?.stop()}getReceiptBundleByIdentifier(e){return e?this._interpreter?.getSnapshot().context.receiptBundles.find(o=>o.Identifier===e)??null:null}getFirstReceiptBundle(){if(!this._interpreter)return null;let e=this._interpreter.getSnapshot().context.receiptBundles;return!e||e.length<1?null:e[0]}static{this.\u0275fac=function(i){return new(i||t)(n.KVO(jb),n.KVO(QX),n.KVO(D6),n.KVO(Zb))}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const hLt=(t,r)=>({"tw-brightness-75":t,"tw-opacity-80":r});function fLt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",7)(1,"span",8),n.nrm(2,"i",9),n.EFF(3," multi-party-receipt*"),n.k0s(),n.j41(4,"span",10)(5,"span",11),n.EFF(6,"Only Show Items for My Food Bank"),n.k0s(),n.j41(7,"label",12)(8,"input",13),n.mxI("ngModelChange",function(o){n.eBV(e);const s=n.XpG(3);return n.DH7(s.onlyShowMyItems,o)||(s.onlyShowMyItems=o),n.Njj(o)}),n.k0s(),n.nrm(9,"span"),n.k0s()()()}if(2&t){const e=n.XpG(3);n.R7$(8),n.R50("ngModel",e.onlyShowMyItems)}}function mLt(t,r){1&t&&(n.j41(0,"th",26),n.EFF(1," Offer Type "),n.k0s())}function gLt(t,r){1&t&&(n.j41(0,"span",35),n.EFF(1,"P"),n.k0s())}function vLt(t,r){1&t&&(n.j41(0,"span",36),n.EFF(1,"D"),n.k0s())}function _Lt(t,r){if(1&t&&(n.j41(0,"td",32),n.DNE(1,gLt,2,0,"span",33)(2,vLt,2,0,"span",34),n.k0s()),2&t){const e=n.XpG().$implicit;n.R7$(),n.Y8G("ngIf","ITEM-FOR-SALE"==e.ProduceTransactionTypeCode),n.R7$(),n.Y8G("ngIf","DONATED-FREE"==e.ProduceTransactionTypeCode)}}function yLt(t,r){if(1&t&&(n.j41(0,"span",37),n.EFF(1),n.k0s()),2&t){const e=n.XpG().$implicit;n.R7$(),n.JRh(e.OriginalOutdatedQuantity.toLocaleString())}}function bLt(t,r){if(1&t&&(n.j41(0,"span",37),n.EFF(1),n.k0s()),2&t){const e=n.XpG().$implicit;n.R7$(),n.JRh(e.OriginalOutdatedQuantityUnitType)}}function CLt(t,r){1&t&&(n.j41(0,"span"),n.EFF(1,"*"),n.k0s())}function wLt(t,r){if(1&t&&(n.j41(0,"span",37),n.EFF(1),n.k0s()),2&t){const e=n.XpG().$implicit;n.R7$(),n.JRh(e.OriginalOutdatedPallets.toLocaleString())}}function TLt(t,r){1&t&&(n.j41(0,"span"),n.EFF(1,"*"),n.k0s())}function SLt(t,r){if(1&t&&(n.j41(0,"span",37),n.EFF(1),n.k0s()),2&t){const e=n.XpG().$implicit;n.R7$(),n.JRh(e.OriginalOutdatedWeightPounds.toLocaleString())}}function xLt(t,r){1&t&&(n.j41(0,"span"),n.EFF(1,"*"),n.k0s())}function ELt(t,r){if(1&t&&(n.j41(0,"tr")(1,"td",27),n.EFF(2),n.k0s(),n.DNE(3,_Lt,3,2,"td",28),n.j41(4,"td",29),n.DNE(5,yLt,2,1,"span",30),n.EFF(6),n.DNE(7,bLt,2,1,"span",30),n.EFF(8),n.DNE(9,CLt,2,0,"span",0),n.k0s(),n.j41(10,"td",29),n.DNE(11,wLt,2,1,"span",30),n.EFF(12),n.DNE(13,TLt,2,0,"span",0),n.k0s(),n.j41(14,"td",31),n.DNE(15,SLt,2,1,"span",30),n.EFF(16),n.DNE(17,xLt,2,0,"span",0),n.k0s()()),2&t){let e;const i=r.$implicit,o=n.XpG(4);n.R7$(),n.Y8G("title",i.Description),n.R7$(),n.SpI(" ",i.ItemTypeName," "),n.R7$(),n.Y8G("ngIf",o.isProducePurchasingEnabled),n.R7$(2),n.Y8G("ngIf",i.OriginalOutdatedQuantity),n.R7$(),n.SpI(" ",i.Quantity.toLocaleString()," "),n.R7$(),n.Y8G("ngIf",i.OriginalOutdatedQuantityUnitType),n.R7$(),n.SpI(" ",i.QuantityUnitType," "),n.R7$(),n.Y8G("ngIf",i.OriginalOutdatedQuantity||i.OriginalOutdatedQuantityUnitType),n.R7$(2),n.Y8G("ngIf",i.OriginalOutdatedPallets),n.R7$(),n.SpI(" ",null!==(e=null==i.Pallets?null:i.Pallets.toLocaleString())&&void 0!==e?e:0," "),n.R7$(),n.Y8G("ngIf",i.OriginalOutdatedPallets),n.R7$(2),n.Y8G("ngIf",i.OriginalOutdatedWeightPounds),n.R7$(),n.SpI(" ",i.WeightPounds.toLocaleString()," "),n.R7$(),n.Y8G("ngIf",i.OriginalOutdatedWeightPounds)}}function DLt(t,r){if(1&t&&(n.j41(0,"div")(1,"div",14)(2,"div",15)(3,"span",16),n.EFF(4),n.nI1(5,"number"),n.k0s(),n.j41(6,"div",17)(7,"div",18),n.EFF(8," To "),n.j41(9,"span",19),n.EFF(10),n.k0s(),n.j41(11,"div"),n.EFF(12),n.k0s()(),n.nrm(13,"i",20),n.k0s()(),n.j41(14,"div",21)(15,"table",22)(16,"thead")(17,"tr")(18,"th",23),n.EFF(19,"Item"),n.k0s(),n.DNE(20,mLt,2,0,"th",24),n.j41(21,"th",25),n.EFF(22,"Quantity / UOM"),n.k0s(),n.j41(23,"th",25),n.EFF(24,"Pallets"),n.k0s(),n.j41(25,"th",25),n.EFF(26,"Weight"),n.k0s()()(),n.j41(27,"tbody"),n.DNE(28,ELt,18,14,"tr",6),n.k0s()()()()()),2&t){const e=r.$implicit,i=n.XpG(3);n.R7$(),n.HbH(n.l_i(14,hLt,!e.IsEditable,!e.IsEditable)),n.Y8G("@openClose",e.IsEditable||!i.onlyShowMyItems?"open":"closed"),n.R7$(3),n.SpI(" ",n.bMT(5,12,e.TotalPounds),"lbs "),n.R7$(6),n.JRh(e.Name),n.R7$(2),n.SjE(" ",e.Address.AddressLine1,", ",e.Address.AddressLine2?e.Address.AddressLine2+",":""," ",e.Address.City,", ",e.Address.Province,", ",e.Address.PostalCode," "),n.R7$(8),n.Y8G("ngIf",i.isProducePurchasingEnabled),n.R7$(8),n.Y8G("ngForOf",e.Items)}}function kLt(t,r){if(1&t&&(n.j41(0,"div",3),n.DNE(1,fLt,10,1,"div",4),n.j41(2,"p",5),n.EFF(3),n.k0s(),n.DNE(4,DLt,29,17,"div",6),n.k0s()),2&t){const e=r.$implicit,i=n.XpG(2);n.R7$(),n.Y8G("ngIf",i.anyNonEditableDestinations),n.R7$(2),n.Lme(" Donation Summary from ",e.Name,", Truck ",i.receiptFoundation.Identifier," "),n.R7$(),n.Y8G("ngForOf",e.Destinations)}}function ILt(t,r){1&t&&(n.j41(0,"p",3),n.EFF(1," * One or more of these items were altered by the Feeding America national office. The revised items & quantities display above. "),n.k0s())}function ALt(t,r){1&t&&(n.j41(0,"p",3),n.EFF(1," * Shaded destinations will be receipted by the other food bank or National Office. "),n.k0s())}function MLt(t,r){if(1&t&&(n.qex(0),n.DNE(1,kLt,5,4,"div",1)(2,ILt,2,0,"p",2)(3,ALt,2,0,"p",2),n.bVm()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngForOf",e.receiptFoundation.Origins),n.R7$(),n.Y8G("ngIf",e.anyReceiptQuantitiesChanged),n.R7$(),n.Y8G("ngIf",e.anyNonEditableDestinations)}}let RLt=(()=>{class t{constructor(){this.receiptFoundation=null,this.isProducePurchasingEnabled=!1,this.anyReceiptQuantitiesChanged=!1,this.anyNonEditableDestinations=!1,this.onlyShowMyItems=!0}ngOnInit(){this.anyReceiptQuantitiesChanged=!!this.receiptFoundation?.Origins.some(e=>e.Destinations.some(i=>i.Items.some(o=>o.OriginalOutdatedPallets||o.OriginalOutdatedQuantity||o.OriginalOutdatedQuantityUnitType||o.OriginalOutdatedWeightPounds))),this.anyNonEditableDestinations=!!this.receiptFoundation?.Origins.some(e=>e.Destinations.some(i=>!i.IsEditable))}ngOnChanges(e){e.isProducePurchasingEnabled&&(this.isProducePurchasingEnabled=e.isProducePurchasingEnabled.currentValue)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["donation-summary"]],inputs:{receiptFoundation:"receiptFoundation",isProducePurchasingEnabled:"isProducePurchasingEnabled"},standalone:!1,features:[n.OA$],decls:1,vars:1,consts:[[4,"ngIf"],["class","tw-text-gray-500",4,"ngFor","ngForOf"],["class","tw-text-gray-500",4,"ngIf"],[1,"tw-text-gray-500"],["class","\n        multi-party-receipt-review-controls\n        tw-border-solid tw-border-0\n        lg:tw-border-b\n        tw-border-slate-200 tw-pb-4 tw-mb-4\n        md:tw-mb-2\n      ",4,"ngIf"],[1,"tw-italic","tw-text-center"],[4,"ngFor","ngForOf"],[1,"multi-party-receipt-review-controls","tw-border-solid","tw-border-0","lg:tw-border-b","tw-border-slate-200","tw-pb-4","tw-mb-4","md:tw-mb-2"],[1,"multi-party-indicator","tw-invisible","md:tw-visible"],[1,"fa","fa-users"],[1,"multi-party-switch","tw-float-right"],[1,"tw-mr-2"],[1,"switch","switch-lg"],["type","checkbox","id","onlyShowMyItems","name","onlyShowMyItems",3,"ngModelChange","ngModel"],[1,"tw-mt-8","tw-bg-white","tw-p-3","tw-rounded-md","tw-overflow-hidden"],[1,"tw-flex","tw-flex-col","tw-items-end"],[1,"tw-text-2xl","tw-font-semibold"],[1,"tw-flex","tw-gap-2","tw-items-center"],[1,"tw-text-end"],[1,"tw-font-semibold"],[1,"pi","pi-map-marker","tw-text-2xl"],[1,"tw-mt-8","table-responsive"],[1,"table","table-striped"],[1,"tw-font-normal"],["class","tw-text-center tw-font-normal",4,"ngIf"],[1,"tw-text-right","tw-font-normal"],[1,"tw-text-center","tw-font-normal"],[3,"title"],["class","tw-text-center",4,"ngIf"],[1,"tw-text-right"],["class","tw-line-through",4,"ngIf"],[1,"tw-text-right","tw-font-semibold"],[1,"tw-text-center"],["title","Contains Purchase items",4,"ngIf"],["title","Contains Donated items",4,"ngIf"],["title","Contains Purchase items"],["title","Contains Donated items"],[1,"tw-line-through"]],template:function(i,o){1&i&&n.DNE(0,MLt,4,3,"ng-container",0),2&i&&n.Y8G("ngIf",o.receiptFoundation)},dependencies:[oo,fi,Cv,_o,ko,as],encapsulation:2,data:{animation:[(0,Hi.hZ)("openClose",[(0,Hi.wk)("open",(0,Hi.iF)({opacity:1})),(0,Hi.wk)("closed",(0,Hi.iF)({height:"0px",opacity:0})),(0,Hi.kY)("open => closed",[(0,Hi.i0)("0.5s ease-in-out")]),(0,Hi.kY)("closed => open",[(0,Hi.i0)("0.5s ease-in-out")])])]}})}}return t})(),JX=(()=>{class t{transform(e,i){return e?(el().extend(whe()),el()(e).format(i)):""}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=n.EJ8({name:"dayjs",type:t,pure:!0,standalone:!1})}}return t})();const OLt=()=>({width:"14px",height:"14px"});function FLt(t,r){if(1&t&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&t){const e=r.$implicit;n.R7$(),n.JRh(e.Name)}}function PLt(t,r){if(1&t&&(n.j41(0,"div",15)(1,"div",16)(2,"span",17),n.EFF(3,"Receipt Due"),n.k0s(),n.j41(4,"span",18),n.EFF(5),n.nI1(6,"date"),n.k0s()(),n.j41(7,"div",16)(8,"span",17),n.EFF(9,"Ordered"),n.k0s(),n.j41(10,"span"),n.EFF(11),n.nI1(12,"date"),n.k0s()(),n.j41(13,"div",19)(14,"a",20),n.nrm(15,"i",2),n.EFF(16," Order Details "),n.k0s()(),n.j41(17,"div",16)(18,"span",17),n.EFF(19,"Status"),n.k0s(),n.j41(20,"span",18),n.EFF(21),n.k0s()(),n.j41(22,"div",16)(23,"span",17),n.EFF(24,"Donor"),n.k0s(),n.DNE(25,FLt,2,1,"span",21),n.k0s()()),2&t){const e=n.XpG();n.R7$(5),n.JRh(e.receiptBundle.ReceiptFoundation.ReceiptDueDate?n.i5U(6,5,e.receiptBundle.ReceiptFoundation.ReceiptDueDate,"longDate"):"No Due Date Set"),n.R7$(6),n.JRh(n.i5U(12,8,e.receiptBundle.ReceiptFoundation.OrderDate,"longDate")),n.R7$(3),n.Y8G("href",e.manageOfferUrl,n.B4B),n.R7$(7),n.JRh(e.receiptBundle.ReceiptFoundation.OrderTruckStatus),n.R7$(4),n.Y8G("ngForOf",e.receiptBundle.ReceiptFoundation.Origins)}}function LLt(t,r){if(1&t&&(n.j41(0,"span"),n.EFF(1),n.nI1(2,"dayjs"),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.SpI(" on ",n.i5U(2,1,null==e.receiptBundle||null==e.receiptBundle.ReceiptFoundation?null:e.receiptBundle.ReceiptFoundation.DeliveryDate,"MMMM Do"),"")}}function NLt(t,r){1&t&&n.nrm(0,"i",22)}function GLt(t,r){1&t&&n.nrm(0,"p-progressSpinner"),2&t&&n.Aen(n.lJ4(2,OLt))}function BLt(t,r){1&t&&(n.j41(0,"span"),n.EFF(1,"Destinations "),n.k0s())}function VLt(t,r){1&t&&(n.j41(0,"span"),n.EFF(1," (Submit Now)"),n.k0s())}function jLt(t,r){if(1&t&&(n.j41(0,"span"),n.EFF(1," Yes, All "),n.DNE(2,BLt,2,0,"span",5),n.EFF(3,"Correct"),n.DNE(4,VLt,2,0,"span",5),n.k0s()),2&t){const e=n.XpG();n.R7$(2),n.Y8G("ngIf",e.isMultiPartyReceipt&&e.isAllowedToEditAllDestinations),n.R7$(2),n.Y8G("ngIf",!e.isMultiTruckReceipt)}}function HLt(t,r){1&t&&(n.j41(0,"span"),n.EFF(1," Submitting "),n.k0s())}function ULt(t,r){1&t&&(n.j41(0,"span"),n.EFF(1,", Partially Receipt, "),n.k0s())}let $Lt=(()=>{class t{constructor(e,i,o){this.textModificationService=e,this.legacyNavigationService=i,this.produceModelsMapperService=o,this.receiptBundle=null,this.isMultiTruckReceipt=!1,this.submitting=!1,this.isMarketplace=n.hFB.required(),this.onSubmit=new n.bkB,this.onAdjust=new n.bkB,this.isMultiPartyReceipt=!1,this.isAllowedToEditAllDestinations=!1,this.manageOfferUrl="",this.totalPounds=0,this.itemNames="",this.donorNames=""}ngOnInit(){var e=this.receiptBundle?.ReceiptFoundation;this.isMultiPartyReceipt=e?.Origins?.some(o=>o?.Destinations?.some(s=>!s.IsRequiredToSubmit))??!1,this.isAllowedToEditAllDestinations=e?.Origins?.every(o=>o?.Destinations?.every(s=>s?.IsEditable??!1)??!1)??!1;let i=this.isMarketplace()?"app.marketplace-orders.existing-orders.details":"app.produce-order.existing-orders.details";if(this.manageOfferUrl=this.legacyNavigationService.getUrl(i,{id:this.receiptBundle?.ReceiptFoundation?.OrderID}),this.receiptBundle){this.totalPounds=this.produceModelsMapperService.getReceiptBundleTotalPounds(this.receiptBundle),this.itemNames=this.produceModelsMapperService.getItemNamesFromReceiptFoundation(this.receiptBundle?.ReceiptFoundation);let o=this.receiptBundle.ReceiptFoundation.Origins.map(s=>s.Name);this.donorNames=this.textModificationService.getCommaSeparatedList(o)}}submitReceipt(){this.onSubmit.emit()}adjustReceipt(){this.onAdjust.emit()}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(She),n.rXU(wc),n.rXU(D6))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["receipt-summary"]],inputs:{receiptBundle:"receiptBundle",isMultiTruckReceipt:"isMultiTruckReceipt",submitting:"submitting",isMarketplace:[1,"isMarketplace"]},outputs:{onSubmit:"onSubmit",onAdjust:"onAdjust"},standalone:!1,decls:28,vars:19,consts:[["class","\n    tw-grid tw-grid-rows-2 tw-grid-cols-2\n    md:tw-grid-cols-3\n    tw-gap-4 tw-text-center\n  ",4,"ngIf"],["target","_blank",1,"btn","btn-primary","action-button","tw-block","md:tw-hidden","tw-my-4",3,"href"],[1,"pi","pi-external-link","tw-text-sm","tw-mr-1"],[1,"tw-my-4","tw-p-4","tw-bg-gray-200"],[1,"tw-italic"],[4,"ngIf"],[1,"tw-text-2xl"],[1,"tw-grid","tw-grid-cols-[auto,auto]","tw-grid-rows-2","tw-gap-2"],["type","button",1,"btn","btn-primary","tw-flex","tw-justify-center","tw-items-center","tw-gap-2",3,"click","disabled"],["class","pi pi-check",4,"ngIf"],[3,"style",4,"ngIf"],[1,"tw-w-8","tw-h-8","tw-text-gray-700",3,"pTooltip"],["type","button",1,"btn","btn-primary","action-button",3,"click","disabled"],[1,"tw-hidden","md:tw-block"],[1,"tw-block","md:tw-hidden"],[1,"tw-grid","tw-grid-rows-2","tw-grid-cols-2","md:tw-grid-cols-3","tw-gap-4","tw-text-center"],[1,"tw-flex","tw-flex-col","tw-justify-center","tw-items-center"],[1,"tw-uppercase","tw-text-gray-500"],[1,"tw-font-semibold"],[1,"tw-flex-col","tw-justify-center","tw-items-end","tw-hidden","md:tw-flex"],["target","_blank",1,"btn","btn-primary","action-button",3,"href"],[4,"ngFor","ngForOf"],[1,"pi","pi-check"]],template:function(i,o){1&i&&(n.DNE(0,PLt,26,11,"div",0),n.j41(1,"a",1),n.nrm(2,"i",2),n.EFF(3," Order Details\n"),n.k0s(),n.j41(4,"div",3)(5,"span",4),n.EFF(6),n.nI1(7,"number"),n.DNE(8,LLt,3,4,"span",5),n.EFF(9,". See the donation summary to the right. "),n.k0s()(),n.j41(10,"div")(11,"p",6),n.EFF(12),n.k0s(),n.j41(13,"div",7)(14,"button",8),n.bIt("click",function(){return o.submitReceipt()}),n.DNE(15,NLt,1,0,"i",9)(16,GLt,1,3,"p-progressSpinner",10)(17,jLt,5,2,"span",5)(18,HLt,2,0,"span",5),n.k0s(),n.nrm(19,"help-indicator",11),n.j41(20,"button",12),n.bIt("click",function(){return o.adjustReceipt()}),n.j41(21,"span",13),n.EFF(22,"I Need to Make Adjustments"),n.DNE(23,ULt,2,0,"span",5),n.EFF(24," or Add Comments"),n.k0s(),n.j41(25,"span",14),n.EFF(26,"Make Adjustments"),n.k0s()(),n.nrm(27,"help-indicator",11),n.k0s()()),2&i&&(n.Y8G("ngIf",o.receiptBundle&&o.receiptBundle.ReceiptFoundation),n.R7$(),n.Y8G("href",o.manageOfferUrl,n.B4B),n.R7$(5),n.LHq(" ",o.isMultiPartyReceipt&&o.isAllowedToEditAllDestinations?"Collectively, all receiving parties":"You"," should have received ",n.bMT(7,17,o.totalPounds)," pounds of ",o.itemNames," from ",o.donorNames," in this truck"),n.R7$(2),n.Y8G("ngIf",null==o.receiptBundle||null==o.receiptBundle.ReceiptFoundation?null:o.receiptBundle.ReceiptFoundation.DeliveryDate),n.R7$(4),n.SpI(" Was Everything Received OK in Truck ",null==o.receiptBundle||null==o.receiptBundle.ReceiptFoundation?null:o.receiptBundle.ReceiptFoundation.Identifier,"? "),n.R7$(2),n.Y8G("disabled",o.submitting),n.R7$(),n.Y8G("ngIf",!o.submitting),n.R7$(),n.Y8G("ngIf",o.submitting),n.R7$(),n.Y8G("ngIf",!o.submitting),n.R7$(),n.Y8G("ngIf",o.submitting),n.R7$(),n.Y8G("pTooltip",(o.isMultiPartyReceipt?o.isAllowedToEditAllDestinations?"Tap this button to immediately receipt this truck as ordered for all destinations.":"Tap this button to immediately receipt this truck as ordered for your destination.":"Tap this button to immediately receipt this truck as ordered.")+(o.isMultiTruckReceipt?"You will have an opportunity to review the receipt prior to submission.":"")),n.R7$(),n.Y8G("disabled",o.submitting),n.R7$(3),n.Y8G("ngIf",o.isMultiPartyReceipt&&o.isAllowedToEditAllDestinations),n.R7$(4),n.Y8G("pTooltip","Tap this button to adjust items, mark items as not received, or add comments about this order before submitting the receipt."+(o.isMultiPartyReceipt&&o.isAllowedToEditAllDestinations?" This button may also be used to receipt only some destinations.":"")))},dependencies:[oo,fi,Q_,SI,ou,as,ti,JX],encapsulation:2})}}return t})();function YLt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div")(1,"p"),n.EFF(2," A receipt has already been created for this truck and your receipt cannot be submitted. "),n.k0s(),n.j41(3,"p"),n.EFF(4,"View other receipt?"),n.k0s(),n.j41(5,"div",4)(6,"button",5),n.bIt("click",function(){n.eBV(e);const o=n.XpG(3);return n.Njj(o.viewExistingReceipt())}),n.EFF(7," View Other Receipt "),n.k0s(),n.j41(8,"button",6),n.bIt("click",function(){n.eBV(e);const o=n.XpG(3);return n.Njj(o.close())}),n.EFF(9," Close Warning "),n.k0s()()()}}function WLt(t,r){1&t&&(n.j41(0,"div")(1,"p"),n.EFF(2,"The information displayed changed. Please review the updates."),n.k0s()())}function zLt(t,r){if(1&t&&(n.j41(0,"div")(1,"p"),n.EFF(2),n.k0s()()),2&t){const e=n.XpG(3);n.R7$(2),n.JRh(e.receiptBundle.ReceiptCreationResult.InternalErrorMessage)}}function qLt(t,r){if(1&t&&(n.j41(0,"div"),n.DNE(1,YLt,10,0,"div",3)(2,WLt,3,0,"div",3)(3,zLt,3,1,"div",3),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngIf",e.receiptBundle.ReceiptCreationResult.FailedBecauseReceiptExists),n.R7$(),n.Y8G("ngIf",e.receiptBundle.ReceiptCreationResult.FailedBecauseOfConcurrencyIssue),n.R7$(),n.Y8G("ngIf",e.receiptBundle.ReceiptCreationResult.FailedBecauseOfInternalError)}}function XLt(t,r){if(1&t&&n.DNE(0,qLt,4,3,"div",3),2&t){const e=n.XpG();n.Y8G("ngIf",e.receiptBundle&&e.receiptBundle.ReceiptCreationResult)}}function KLt(t,r){1&t&&(n.j41(0,"button",7),n.EFF(1,"Ok"),n.k0s())}let xhe=(()=>{class t{constructor(e){this.legacyNavigationService=e,this.isMarketplace=n.hFB.required(),this.receiptBundle=null,this.onClosed=new n.bkB}ngOnInit(){}viewExistingReceipt(){let e=this.isMarketplace()?"app.marketplace-orders.receipting":"app.produce-order.receipting";this.legacyNavigationService.navigate(e,{truckIds:[this.receiptBundle?.ReceiptFoundation.OrderTruckID],state:"adjust",identifier:this.receiptBundle?.Identifier})}close(){this.onClosed.emit()}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(wc))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["receipt-submission-failure-modal"]],inputs:{isMarketplace:[1,"isMarketplace"],receiptBundle:"receiptBundle"},outputs:{onClosed:"onClosed"},standalone:!1,decls:5,vars:4,consts:[["submissionFailedBody",""],["submissionFailedFooter",""],["title","Submission Failed",3,"modalClosed","bodyTemplate","footerTemplate","isOpen","showFooter"],[4,"ngIf"],[1,"tw-flex","tw-justify-end","tw-gap-2"],["type","button",1,"btn","btn-default",3,"click"],["type","button",1,"btn","btn-primary",3,"click"],["type","button",1,"btn","btn-primary"]],template:function(i,o){if(1&i){const s=n.RV6();n.j41(0,"modal",2),n.bIt("modalClosed",function(){return n.eBV(s),n.Njj(o.close())}),n.k0s(),n.DNE(1,XLt,1,1,"ng-template",null,0,n.C5r)(3,KLt,2,0,"ng-template",null,1,n.C5r)}if(2&i){const s=n.sdS(2),a=n.sdS(4);n.Y8G("bodyTemplate",s)("footerTemplate",a)("isOpen",!0)("showFooter",!1)}},dependencies:[fi,E2],encapsulation:2})}}return t})();const QLt=t=>({"tw-bg-red-50":t}),JLt=t=>({"tw-cursor-default":t});function ZLt(t,r){1&t&&n.nrm(0,"i",13)}function e3t(t,r){1&t&&n.nrm(0,"i",14)}function t3t(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",10),n.bIt("click",function(){n.eBV(e);const o=n.XpG().$implicit,s=n.XpG();return n.Njj(s.setReceiptBundle(o))}),n.DNE(1,ZLt,1,0,"i",11)(2,e3t,1,0,"i",12),n.k0s()}if(2&t){const e=n.XpG().$implicit;n.HbH(n.eq3(4,JLt,e.ReceiptCreationResult.Successful)),n.R7$(),n.Y8G("ngIf",!e.ReceiptCreationResult.Successful),n.R7$(),n.Y8G("ngIf",e.ReceiptCreationResult.Successful)}}function n3t(t,r){if(1&t){const e=n.RV6();n.j41(0,"tr")(1,"td"),n.DNE(2,t3t,3,6,"button",7),n.k0s(),n.j41(3,"td"),n.EFF(4),n.k0s(),n.j41(5,"td",2),n.EFF(6),n.nI1(7,"number"),n.k0s(),n.j41(8,"th"),n.EFF(9),n.k0s(),n.j41(10,"th"),n.EFF(11),n.k0s(),n.j41(12,"th"),n.EFF(13),n.k0s(),n.j41(14,"th")(15,"button",8),n.bIt("click",function(){const o=n.eBV(e).$implicit,s=n.XpG();return n.Njj(s.editReceipt(o))}),n.nrm(16,"i",9),n.EFF(17," Edit "),n.k0s()()()}if(2&t){const e=r.$implicit,i=n.XpG();n.HbH(n.eq3(11,QLt,e&&!1===(null==e.ReceiptCreationResult?null:e.ReceiptCreationResult.Successful))),n.R7$(2),n.Y8G("ngIf",e.ReceiptCreationResult),n.R7$(2),n.JRh(e.ReceiptFoundation.Identifier),n.R7$(2),n.SpI(" ",n.bMT(7,9,i.getTotalPounds(e.ReceiptCreation))," "),n.R7$(3),n.JRh(i.getItemNames(e.ReceiptCreation)),n.R7$(2),n.JRh(i.getSummary(e.ReceiptCreation)),n.R7$(2),n.JRh(e.ReceiptCreation.Comments),n.R7$(2),n.Y8G("disabled",i.submitting)}}function i3t(t,r){1&t&&(n.j41(0,"span"),n.EFF(1,"Attempt Resubmit"),n.k0s())}function r3t(t,r){1&t&&(n.j41(0,"span"),n.EFF(1,"Submit Receipts"),n.k0s())}function o3t(t,r){if(1&t){const e=n.RV6();n.j41(0,"receipt-submission-failure-modal",15),n.bIt("onClosed",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.setReceiptBundle(null))}),n.k0s()}if(2&t){const e=n.XpG();n.Y8G("receiptBundle",e.selectedReceiptBundle)("isMarketplace",e.isMarketplace())}}let s3t=(()=>{class t{constructor(e){this.produceModelsMapperService=e,this.isMarketplace=n.hFB.required(),this.receiptBundles=[],this.submitting=!1,this.onEditReceipt=new n.bkB,this.onSubmit=new n.bkB,this.onReloadRequested=new n.bkB,this.selectedReceiptBundle=null}ngOnInit(){}get anyBundlesFailedSubmission(){return this.receiptBundles&&this.receiptBundles.some(e=>e&&e.ReceiptCreationResult&&!1===e.ReceiptCreationResult.Successful)}getTotalPounds(e){return this.produceModelsMapperService.getReceiptCreationTotalPounds(e)}getSummary(e){let i="As Ordered (No Changes)";var o=!1;return e.Origins.forEach(s=>{s.Destinations.filter(a=>a.IsEditable).forEach(a=>{a.Items.forEach(l=>{l.DeliveredPallets&&l.DeliveredPallets!=l.Pallets&&(o=!0),l.DeliveredQuantity!=l.Quantity&&(o=!0),l.DeliveredQuantityUnitType!=l.QuantityUnitType&&(o=!0),l.DeliveredWeightPounds!=l.WeightPounds&&(o=!0)})})}),o&&(i="Changes Made"),i}getItemNames(e){return this.produceModelsMapperService.getItemNamesFromReceiptCreation(e)}setReceiptBundle(e){null===e&&this.selectedReceiptBundle?.ReceiptCreationResult?.FailedBecauseOfConcurrencyIssue&&this.onReloadRequested.emit(this.selectedReceiptBundle),this.selectedReceiptBundle=e}reloadReceiptBundle(e){return(0,lr.A)(function*(){})()}editReceipt(e){this.onEditReceipt.emit(e)}submit(){this.onSubmit.emit()}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(D6))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["receipt-review"]],inputs:{isMarketplace:[1,"isMarketplace"],receiptBundles:"receiptBundles",submitting:"submitting"},outputs:{onEditReceipt:"onEditReceipt",onSubmit:"onSubmit",onReloadRequested:"onReloadRequested"},standalone:!1,decls:24,vars:5,consts:[[1,"table-responsive"],[1,"table"],[1,"tw-text-right"],[3,"class",4,"ngFor","ngForOf"],["type","button",1,"btn","btn-primary",3,"click","disabled"],[4,"ngIf"],[3,"receiptBundle","isMarketplace","onClosed",4,"ngIf"],["type","button","class","btn-reset tw-motion-safe:tw-animate-zoom-in-bounce",3,"class","click",4,"ngIf"],["type","button",1,"btn","btn-primary","action-button",3,"click","disabled"],[1,"pi","pi-pencil","tw-text-sm"],["type","button",1,"btn-reset","tw-motion-safe:tw-animate-zoom-in-bounce",3,"click"],["class","pi pi-info-circle text-danger",4,"ngIf"],["class","pi pi-check text-green",4,"ngIf"],[1,"pi","pi-info-circle","text-danger"],[1,"pi","pi-check","text-green"],[3,"onClosed","receiptBundle","isMarketplace"]],template:function(i,o){1&i&&(n.j41(0,"div")(1,"div",0)(2,"table",1)(3,"thead")(4,"tr")(5,"th"),n.EFF(6,"Status"),n.k0s(),n.j41(7,"th"),n.EFF(8,"Truck"),n.k0s(),n.j41(9,"th",2),n.EFF(10,"Gross Weight"),n.k0s(),n.j41(11,"th"),n.EFF(12,"Items Ordered"),n.k0s(),n.j41(13,"th"),n.EFF(14,"Summary"),n.k0s(),n.j41(15,"th"),n.EFF(16,"Comments"),n.k0s(),n.nrm(17,"th"),n.k0s()(),n.j41(18,"tbody"),n.DNE(19,n3t,18,13,"tr",3),n.k0s()()(),n.j41(20,"button",4),n.bIt("click",function(){return o.submit()}),n.DNE(21,i3t,2,0,"span",5)(22,r3t,2,0,"span",5),n.k0s()(),n.DNE(23,o3t,1,2,"receipt-submission-failure-modal",6)),2&i&&(n.R7$(19),n.Y8G("ngForOf",o.receiptBundles),n.R7$(),n.Y8G("disabled",o.submitting),n.R7$(),n.Y8G("ngIf",o.anyBundlesFailedSubmission),n.R7$(),n.Y8G("ngIf",!o.anyBundlesFailedSubmission),n.R7$(),n.Y8G("ngIf",o.selectedReceiptBundle&&!(null!=o.selectedReceiptBundle.ReceiptCreationResult&&o.selectedReceiptBundle.ReceiptCreationResult.Successful)))},dependencies:[oo,fi,xhe,as],encapsulation:2})}}return t})(),a3t=(()=>{class t{constructor(){}getAllUnitsOfMeasure(){return Promise.resolve([{Text:"Bag",ID:"Bag",PluralText:"Bags"},{Text:"Bin",ID:"Bin",PluralText:"Bins"},{Text:"Box",ID:"Box",PluralText:"Boxes"},{Text:"Carton",ID:"Carton",PluralText:"Cartons"},{Text:"Case",ID:"Case",PluralText:"Cases"},{Text:"Crate",ID:"Crate",PluralText:"Crates"},{Text:"Totes",ID:"Totes",PluralText:"Totes"}])}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function l3t(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",3),n.EFF(1," Are you sure you want to zero out all items? A comment is required to proceed. "),n.k0s(),n.j41(2,"div")(3,"textarea",4),n.mxI("ngModelChange",function(o){n.eBV(e);const s=n.XpG();return n.DH7(s.comment,o)||(s.comment=o),n.Njj(o)}),n.EFF(4," "),n.k0s()()}if(2&t){const e=n.XpG();n.R7$(3),n.R50("ngModel",e.comment)}}function c3t(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",5)(1,"button",6),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.okButtonClicked())}),n.nrm(2,"i",7),n.EFF(3," Ok "),n.k0s(),n.j41(4,"button",8),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.dialogIsOpen=!1)}),n.EFF(5," Cancel "),n.k0s()()}if(2&t){const e=n.XpG();n.R7$(),n.Y8G("disabled",0===e.comment.length)}}let u3t=(()=>{class t{get isOpen(){return this.dialogIsOpen}set isOpen(e){this.dialogIsOpen=e}constructor(){this.zeroOutConfirmed=new n.bkB,this.dialogIsOpen=!1,this.comment="",this.dialogIsOpen=this.isOpen}ngOnInit(){}okButtonClicked(){this.comment&&(this.zeroOutConfirmed.emit(this.comment),this.isOpen=!1)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["zero-out-confirm-modal"]],inputs:{isOpen:"isOpen"},outputs:{zeroOutConfirmed:"zeroOutConfirmed"},standalone:!1,decls:5,vars:3,consts:[["body",""],["footer",""],["title","Confirm Zero All Items",3,"bodyTemplate","footerTemplate","isOpen"],[1,"tw-w-full","tw-mb-3"],[1,"tw-w-full","tw-h-full",3,"ngModelChange","ngModel"],[1,"tw-flex","tw-w-full","tw-justify-end"],["label","Save & Submit",1,"btn","btn-primary","tw-flex","tw-items-center","tw-gap-2",3,"click","disabled"],[1,"pi","pi-save"],["label","Cancel",1,"btn","btn-primary","tw-flex","tw-items-center","tw-gap-2",3,"click"]],template:function(i,o){if(1&i&&(n.nrm(0,"modal",2),n.DNE(1,l3t,5,1,"ng-template",null,0,n.C5r)(3,c3t,6,1,"ng-template",null,1,n.C5r)),2&i){const s=n.sdS(2),a=n.sdS(4);n.Y8G("bodyTemplate",s)("footerTemplate",a)("isOpen",o.dialogIsOpen)}},dependencies:[Cc,_o,ko,E2],encapsulation:2})}}return t})(),d3t=(()=>{class t{constructor(e,i){this.produceReceiptsService=e,this.toasterService=i,this.changeRequested=new n.bkB,this.receiptID=null,this.changeRequestText=""}ngOnInit(){}onChangeRequestSubmit(){!this.changeRequestText||null===this.receiptID||this.produceReceiptsService.saveChangeRequest({ReceiptID:this.receiptID,Message:this.changeRequestText}).then(()=>{this.toasterService.displayInfoToast("Success","Change Request Submitted"),this.changeRequested.emit(this.changeRequestText)}).catch(()=>{this.toasterService.displayInfoToast("Error","There was a problem submitting your change request - please try again.")})}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(QX),n.rXU(tc))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["change-request"]],inputs:{receiptID:"receiptID"},outputs:{changeRequested:"changeRequested"},standalone:!1,decls:11,vars:2,consts:[[1,"tw-w-full","tw-border-2","tw-border-gray-500","tw-border-solid","tw-p-4","tw-bg-gray-100"],[1,"md:tw-text-right","tw-font-bold","tw-text-lg"],[1,"tw-w-full","tw-mt-2"],[1,"tw-w-full","tw-h-40",3,"ngModelChange","ngModel"],[1,"tw-flex","tw-flex-col","md:tw-flex-row","tw-mt-4","tw-justify-end","tw-align-middle"],[1,"tw-italic","tw-text-gray-500","tw-w-full","md:tw-w-auto"],[1,"tw-justify-items-end","md:tw-ml-2"],["type","button",1,"btn","btn-primary","tw-w-full","md:tw-w-auto","tw-justify-self-end",3,"click","disabled"]],template:function(i,o){1&i&&(n.j41(0,"div",0)(1,"div",1),n.EFF(2," Requested Change - What is Incorrect? "),n.k0s(),n.j41(3,"div",2)(4,"textarea",3),n.mxI("ngModelChange",function(a){return n.DH7(o.changeRequestText,a)||(o.changeRequestText=a),a}),n.k0s()(),n.j41(5,"div",4)(6,"div",5),n.EFF(7," Note: This will notify Feeding America and save a record of the request onto this receipt. "),n.k0s(),n.j41(8,"div",6)(9,"button",7),n.bIt("click",function(){return o.onChangeRequestSubmit()}),n.EFF(10," Submit Change Request "),n.k0s()()()()),2&i&&(n.R7$(4),n.R50("ngModel",o.changeRequestText),n.R7$(5),n.Y8G("disabled",0===o.changeRequestText.length))},dependencies:[Cc,_o,ko],encapsulation:2})}}return t})();const p3t=JSON.parse('{"v":"5.6.5","fr":25,"ip":0,"op":55,"w":800,"h":800,"nm":"info","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Capa de formas 1","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.4],"y":[1]},"o":{"x":[0.6],"y":[0]},"t":16,"s":[0]},{"t":25,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.823},"o":{"x":0.167,"y":0.167},"t":16,"s":[400,900,0],"to":[0,-19.956,0],"ti":[0,42.274,0]},{"i":{"x":0.833,"y":0.839},"o":{"x":0.167,"y":0.158},"t":17,"s":[400,780.262,0],"to":[0,-42.274,0],"ti":[0,43.012,0]},{"i":{"x":0.833,"y":0.85},"o":{"x":0.167,"y":0.173},"t":18,"s":[400,646.353,0],"to":[0,-43.012,0],"ti":[0,37.35,0]},{"i":{"x":0.833,"y":0.859},"o":{"x":0.167,"y":0.187},"t":19,"s":[400,522.188,0],"to":[0,-37.35,0],"ti":[0,28.247,0]},{"i":{"x":0.833,"y":0.869},"o":{"x":0.167,"y":0.203},"t":20,"s":[400,422.254,0],"to":[0,-28.247,0],"ti":[0,18.162,0]},{"i":{"x":0.833,"y":0.888},"o":{"x":0.167,"y":0.23},"t":21,"s":[400,352.706,0],"to":[0,-18.162,0],"ti":[0,8.866,0]},{"i":{"x":0.833,"y":0.881},"o":{"x":0.167,"y":0.322},"t":22,"s":[400,313.285,0],"to":[0,-8.866,0],"ti":[0,1.425,0]},{"i":{"x":0.833,"y":0.678},"o":{"x":0.167,"y":0.276},"t":23,"s":[400,299.51,0],"to":[0,-1.425,0],"ti":[0,-3.72,0]},{"i":{"x":0.833,"y":0.807},"o":{"x":0.167,"y":0.112},"t":24,"s":[400,304.736,0],"to":[0,3.72,0],"ti":[0,-6.605,0]},{"i":{"x":0.833,"y":0.832},"o":{"x":0.167,"y":0.147},"t":25,"s":[400,321.833,0],"to":[0,6.605,0],"ti":[0,-7.576,0]},{"i":{"x":0.833,"y":0.844},"o":{"x":0.167,"y":0.165},"t":26,"s":[400,344.367,0],"to":[0,7.576,0],"ti":[0,-7.137,0]},{"i":{"x":0.833,"y":0.854},"o":{"x":0.167,"y":0.179},"t":27,"s":[400,367.29,0],"to":[0,7.137,0],"ti":[0,-5.825,0]},{"i":{"x":0.833,"y":0.863},"o":{"x":0.167,"y":0.194},"t":28,"s":[400,387.192,0],"to":[0,5.825,0],"ti":[0,-4.12,0]},{"i":{"x":0.833,"y":0.876},"o":{"x":0.167,"y":0.213},"t":29,"s":[400,402.24,0],"to":[0,4.12,0],"ti":[0,-2.399,0]},{"i":{"x":0.833,"y":0.9},"o":{"x":0.167,"y":0.254},"t":30,"s":[400,411.913,0],"to":[0,2.399,0],"ti":[0,-0.912,0]},{"i":{"x":0.833,"y":0.743},"o":{"x":0.167,"y":0.495},"t":31,"s":[400,416.633,0],"to":[0,0.912,0],"ti":[0,0.205,0]},{"i":{"x":0.833,"y":0.769},"o":{"x":0.167,"y":0.123},"t":32,"s":[400,417.388,0],"to":[0,-0.205,0],"ti":[0,0.918,0]},{"i":{"x":0.833,"y":0.821},"o":{"x":0.167,"y":0.13},"t":33,"s":[400,415.402,0],"to":[0,-0.918,0],"ti":[0,1.26,0]},{"i":{"x":0.833,"y":0.838},"o":{"x":0.167,"y":0.156},"t":34,"s":[400,411.88,0],"to":[0,-1.26,0],"ti":[0,1.307,0]},{"i":{"x":0.833,"y":0.849},"o":{"x":0.167,"y":0.172},"t":35,"s":[400,407.842,0],"to":[0,-1.307,0],"ti":[0,1.151,0]},{"i":{"x":0.833,"y":0.858},"o":{"x":0.167,"y":0.185},"t":36,"s":[400,404.039,0],"to":[0,-1.151,0],"ti":[0,0.883,0]},{"i":{"x":0.833,"y":0.868},"o":{"x":0.167,"y":0.201},"t":37,"s":[400,400.935,0],"to":[0,-0.883,0],"ti":[0,0.579,0]},{"i":{"x":0.833,"y":0.885},"o":{"x":0.167,"y":0.227},"t":38,"s":[400,398.741,0],"to":[0,-0.579,0],"ti":[0,0.294,0]},{"i":{"x":0.833,"y":0.89},"o":{"x":0.167,"y":0.303},"t":39,"s":[400,397.463,0],"to":[0,-0.294,0],"ti":[0,0.063,0]},{"i":{"x":0.833,"y":0.657},"o":{"x":0.167,"y":0.341},"t":40,"s":[400,396.978,0],"to":[0,-0.063,0],"ti":[0,-0.1,0]},{"i":{"x":0.833,"y":0.802},"o":{"x":0.167,"y":0.11},"t":41,"s":[400,397.088,0],"to":[0,0.1,0],"ti":[0,-0.194,0]},{"i":{"x":0.833,"y":0.818},"o":{"x":0.167,"y":0.144},"t":42,"s":[400,397.577,0],"to":[0,0.194,0],"ti":[0,-0.244,0]},{"i":{"x":0.833,"y":0.852},"o":{"x":0.167,"y":0.154},"t":43,"s":[400,398.249,0],"to":[0,0.244,0],"ti":[0,-0.236,0]},{"i":{"x":0.833,"y":0.869},"o":{"x":0.167,"y":0.19},"t":44,"s":[400,399.044,0],"to":[0,0.236,0],"ti":[0,-0.162,0]},{"i":{"x":0.833,"y":0.884},"o":{"x":0.167,"y":0.23},"t":45,"s":[400,399.665,0],"to":[0,0.162,0],"ti":[0,-0.082,0]},{"i":{"x":0.833,"y":0.901},"o":{"x":0.167,"y":0.294},"t":46,"s":[400,400.018,0],"to":[0,0.082,0],"ti":[0,-0.023,0]},{"i":{"x":0.833,"y":0.703},"o":{"x":0.167,"y":0.533},"t":47,"s":[400,400.158,0],"to":[0,0.023,0],"ti":[0,0.011,0]},{"i":{"x":0.833,"y":0.818},"o":{"x":0.167,"y":0.116},"t":48,"s":[400,400.159,0],"to":[0,-0.011,0],"ti":[0,0.024,0]},{"i":{"x":0.833,"y":0.902},"o":{"x":0.167,"y":0.154},"t":49,"s":[400,400.093,0],"to":[0,-0.024,0],"ti":[0,0.015,0]},{"i":{"x":0.833,"y":0.917},"o":{"x":0.167,"y":0.554},"t":50,"s":[400,400.014,0],"to":[0,-0.015,0],"ti":[0,0.002,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":51,"s":[400,400,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":52,"s":[400,400,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":53,"s":[400,400,0],"to":[0,0,0],"ti":[0,0,0]},{"t":54,"s":[400,400,0]}],"ix":2},"a":{"a":0,"k":[250,250,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.833,0.833,0.833],"y":[0.823,0.823,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,0]},"t":16,"s":[0,0,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.839,0.839,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.158,0.158,0]},"t":17,"s":[23.948,23.948,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.85,0.85,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.173,0.173,0]},"t":18,"s":[50.729,50.729,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.859,0.859,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.187,0.187,0]},"t":19,"s":[75.562,75.562,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.869,0.869,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.203,0.203,0]},"t":20,"s":[95.549,95.549,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.888,0.888,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.23,0.23,0]},"t":21,"s":[109.459,109.459,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.948,0.948,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.322,0.322,0]},"t":22,"s":[117.343,117.343,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.644,0.644,1]},"o":{"x":[0.167,0.167,0.167],"y":[-0.136,-0.136,0]},"t":23,"s":[120.098,120.098,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.807,0.807,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.109,0.109,0]},"t":24,"s":[119.053,119.053,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.832,0.832,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.147,0.147,0]},"t":25,"s":[115.633,115.633,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.844,0.844,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.165,0.165,0]},"t":26,"s":[111.127,111.127,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.854,0.854,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.179,0.179,0]},"t":27,"s":[106.542,106.542,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.863,0.863,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.194,0.194,0]},"t":28,"s":[102.562,102.562,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.876,0.876,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.213,0.213,0]},"t":29,"s":[99.552,99.552,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.903,0.903,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.254,0.254,0]},"t":30,"s":[97.617,97.617,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1.136,1.136,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.604,0.604,0]},"t":31,"s":[96.673,96.673,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.769,0.769,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.052,0.052,0]},"t":32,"s":[96.522,96.522,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.821,0.821,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.13,0.13,0]},"t":33,"s":[96.92,96.92,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.838,0.838,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.156,0.156,0]},"t":34,"s":[97.624,97.624,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.849,0.849,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.172,0.172,0]},"t":35,"s":[98.432,98.432,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.858,0.858,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.185,0.185,0]},"t":36,"s":[99.192,99.192,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.868,0.868,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.201,0.201,0]},"t":37,"s":[99.813,99.813,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.885,0.885,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.227,0.227,0]},"t":38,"s":[100.252,100.252,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.936,0.936,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.303,0.303,0]},"t":39,"s":[100.507,100.507,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.546,0.546,1]},"o":{"x":[0.167,0.167,0.167],"y":[-0.285,-0.285,0]},"t":40,"s":[100.604,100.604,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.802,0.802,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.102,0.102,0]},"t":41,"s":[100.582,100.582,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.818,0.818,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.144,0.144,0]},"t":42,"s":[100.485,100.485,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.852,0.852,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.154,0.154,0]},"t":43,"s":[100.35,100.35,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.869,0.869,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.19,0.19,0]},"t":44,"s":[100.191,100.191,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.884,0.884,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.23,0.23,0]},"t":45,"s":[100.067,100.067,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.916,0.916,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.294,0.294,0]},"t":46,"s":[99.996,99.996,100]},{"i":{"x":[0.833,0.833,0.833],"y":[6.49,6.49,1]},"o":{"x":[0.167,0.167,0.167],"y":[11.837,11.837,0]},"t":47,"s":[99.968,99.968,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.818,0.818,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.082,0.082,0]},"t":48,"s":[99.968,99.968,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.902,0.902,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.154,0.154,0]},"t":49,"s":[99.981,99.981,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.917,0.917,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.554,0.554,0]},"t":50,"s":[99.997,99.997,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":51,"s":[100,100,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":52,"s":[100,100,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":53,"s":[100,100,100]},{"t":54,"s":[100,100,100]}],"ix":6}},"ao":0,"ef":[{"ty":5,"nm":"AC IN [Q8Y] Controls","np":5,"mn":"Pseudo/MHAC PrCtrl Q8Y 4","ix":1,"en":1,"ef":[{"ty":3,"nm":"Position","mn":"Pseudo/MHAC PrCtrl Q8Y 4-0001","ix":1,"v":{"a":0,"k":[0,500],"ix":1}},{"ty":0,"nm":"Bounces","mn":"Pseudo/MHAC PrCtrl Q8Y 4-0002","ix":2,"v":{"a":0,"k":2,"ix":2}},{"ty":0,"nm":"Scale","mn":"Pseudo/MHAC PrCtrl Q8Y 4-0003","ix":3,"v":{"a":0,"k":0,"ix":3}}]}],"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,-19.33],[19.33,0],[0,19.33],[-19.33,0]],"o":[[0,19.33],[-19.33,0],[0,-19.33],[19.33,0]],"v":[[35,0],[0,35],[-35,0],[0,-35]],"c":true},"ix":2},"nm":"Trazado 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Relleno 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[250,140],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transformar"}],"nm":"Grupo 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[19.33,0],[0,19.33],[0,0],[-19.33,0],[0,-19.33],[0,0]],"o":[[-19.33,0],[0,0],[0,-19.33],[19.33,0],[0,0],[0,19.33]],"v":[[0,97.5],[-35,62.5],[-35,-62.5],[0,-97.5],[35,-62.5],[35,62.5]],"c":true},"ix":2},"nm":"Trazado 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Relleno 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[250,297.5],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transformar"}],"nm":"Grupo 2","np":2,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false}],"ip":16,"op":55,"st":16,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"info contornos","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[400,400,0],"ix":2},"a":{"a":0,"k":[250,250,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.833,0.833,0.833],"y":[0.802,0.802,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,0]},"t":0,"s":[0,0,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.855,0.855,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.144,0.144,0]},"t":1,"s":[38.344,38.344,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.889,0.889,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.195,0.195,0]},"t":2,"s":[91.002,91.002,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.981,0.981,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.333,0.333,0]},"t":3,"s":[130.234,130.234,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.742,0.742,1]},"o":{"x":[0.167,0.167,0.167],"y":[-0.024,-0.024,0]},"t":4,"s":[143.314,143.314,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.841,0.841,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.123,0.123,0]},"t":5,"s":[133.145,133.145,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.875,0.875,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.175,0.175,0]},"t":6,"s":[111.838,111.838,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.926,0.926,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.25,0.25,0]},"t":7,"s":[92.38,92.38,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.306,0.306,1]},"o":{"x":[0.167,0.167,0.167],"y":[-0.675,-0.675,0]},"t":8,"s":[82.668,82.668,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.822,0.822,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.095,0.095,0]},"t":9,"s":[83.736,83.736,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.863,0.863,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.156,0.156,0]},"t":10,"s":[91.562,91.562,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.9,0.9,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.212,0.212,0]},"t":11,"s":[100.497,100.497,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1.1,1.1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.51,0.51,0]},"t":12,"s":[106.269,106.269,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.788,0.788,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.045,0.045,0]},"t":13,"s":[107.397,107.397,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.85,0.85,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.138,0.138,0]},"t":14,"s":[104.92,104.92,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.884,0.884,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.188,0.188,0]},"t":15,"s":[101.108,101.108,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.956,0.956,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.296,0.296,0]},"t":16,"s":[98.068,98.068,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.696,0.696,1]},"o":{"x":[0.167,0.167,0.167],"y":[-0.092,-0.092,0]},"t":17,"s":[96.875,96.875,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.835,0.835,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.115,0.115,0]},"t":18,"s":[97.442,97.442,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.871,0.871,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.168,0.168,0]},"t":19,"s":[98.94,98.94,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.916,0.916,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.235,0.235,0]},"t":20,"s":[100.408,100.408,100]},{"i":{"x":[0.833,0.833,0.833],"y":[5.49,5.49,1]},"o":{"x":[0.167,0.167,0.167],"y":[7.059,7.059,0]},"t":21,"s":[101.213,101.213,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.813,0.813,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.082,0.082,0]},"t":22,"s":[101.223,101.223,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.859,0.859,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.15,0.15,0]},"t":23,"s":[100.695,100.695,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.894,0.894,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.203,0.203,0]},"t":24,"s":[100.037,100.037,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1.022,1.022,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.394,0.394,0]},"t":25,"s":[99.58,99.58,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.77,0.77,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.017,0.017,0]},"t":26,"s":[99.457,99.457,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.851,0.851,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.131,0.131,0]},"t":27,"s":[99.612,99.612,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.894,0.894,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.189,0.189,0]},"t":28,"s":[99.886,99.886,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.986,0.986,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.397,0.397,0]},"t":29,"s":[100.102,100.102,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.79,0.79,1]},"o":{"x":[0.167,0.167,0.167],"y":[-0.017,-0.017,0]},"t":30,"s":[100.16,100.16,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.866,0.866,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.138,0.138,0]},"t":31,"s":[100.112,100.112,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.904,0.904,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.219,0.219,0]},"t":32,"s":[100.039,100.039,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1.064,1.064,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.631,0.631,0]},"t":33,"s":[99.995,99.995,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.917,0.917,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.036,0.036,0]},"t":34,"s":[99.988,99.988,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0.001,0.001,0]},"t":35,"s":[100,100,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":36,"s":[100,100,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":37,"s":[100,100,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":38,"s":[100,100,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":39,"s":[100,100,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":40,"s":[100,100,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":41,"s":[100,100,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":42,"s":[100,100,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":43,"s":[100,100,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":44,"s":[100,100,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":45,"s":[100,100,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":46,"s":[100,100,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":47,"s":[100,100,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":48,"s":[100,100,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":49,"s":[100,100,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":50,"s":[100,100,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":51,"s":[100,100,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":52,"s":[100,100,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":53,"s":[100,100,100]},{"t":54,"s":[100,100,100]}],"ix":6}},"ao":0,"ef":[{"ty":5,"nm":"AC IN [NWX] Controls","np":4,"mn":"Pseudo/MHAC PrCtrl NWX 4","ix":1,"en":1,"ef":[{"ty":0,"nm":"Number of bounces","mn":"Pseudo/MHAC PrCtrl NWX 4-0001","ix":1,"v":{"a":0,"k":4,"ix":1}},{"ty":0,"nm":"Scale","mn":"Pseudo/MHAC PrCtrl NWX 4-0002","ix":2,"v":{"a":0,"k":0,"ix":2}}]}],"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,-131.167],[131.168,0],[0,131.168],[-131.168,0]],"o":[[0,131.168],[-131.168,0],[0,-131.167],[131.168,0]],"v":[[237.5,0],[0,237.5],[-237.5,0],[0,-237.5]],"c":true},"ix":2},"nm":"Trazado 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.995999983245,0.663000009574,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Relleno 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[250,250],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transformar"}],"nm":"Grupo 3","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":55,"st":0,"bm":0}],"markers":[]}');let ZX=(()=>{class t{constructor(){this.options={animationData:p3t,loop:!1}}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["info-warning-animation"]],standalone:!1,decls:2,vars:1,consts:[[3,"options"]],template:function(i,o){1&i&&(n.j41(0,"div"),n.nrm(1,"ng-lottie",0),n.k0s()),2&i&&(n.R7$(),n.Y8G("options",o.options))},dependencies:[U$],encapsulation:2})}}return t})();const h3t=(t,r)=>({"quantity-change-container":t,"quantity-change-container-warning":r}),Ehe=t=>({"tw-font-bold":t});function f3t(t,r){if(1&t&&(n.j41(0,"div",2),n.nrm(1,"span",3),n.nI1(2,"highlight"),n.k0s()),2&t){const e=r.$implicit,i=r.searchText;n.R7$(),n.Y8G("innerHtml",n.i5U(2,2,null==e?null:e.Text,i),n.npT)("title",null==e?null:e.Text)}}function m3t(t,r){if(1&t&&(n.j41(0,"div"),n.EFF(1),n.nI1(2,"number"),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.Lme(" ",n.bMT(2,2,e.item.Quantity)," ",e.getPluralizedUnitOfMeasure(e.item.QuantityUnitType,e.item.Quantity)," ")}}function g3t(t,r){1&t&&(n.j41(0,"div")(1,"span",12),n.EFF(2,"N/A"),n.k0s()())}function v3t(t,r){if(1&t&&(n.j41(0,"div",13),n.nrm(1,"info-warning-animation"),n.k0s()),2&t){const e=n.XpG(2);n.Y8G("pTooltip",e.item.QuantityWarning)}}function _3t(t,r){if(1&t){const e=n.RV6();n.j41(0,"dropdown",14),n.mxI("ngModelChange",function(o){n.eBV(e);const s=n.XpG(2);return n.DH7(s.item.AddedUnitOfMeasure,o)||(s.item.AddedUnitOfMeasure=o),n.Njj(o)}),n.bIt("itemSelected",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.onUnitOfMeasureChanged(o.item))}),n.k0s()}if(2&t){const e=n.XpG(2),i=n.sdS(1);n.Y8G("options",e.unitsOfMeasure)("itemTemplate",i)("selectedItemTemplate",i),n.R50("ngModel",e.item.AddedUnitOfMeasure),n.Y8G("showFilter",!1)("disabled",e.disabled)}}function y3t(t,r){if(1&t&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.JRh(e.getPluralizedUnitOfMeasure(e.item.QuantityUnitType,e.item.Quantity))}}function b3t(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",4)(1,"div",5),n.DNE(2,m3t,3,4,"div",6)(3,g3t,3,0,"div",6),n.nrm(4,"div",7),n.j41(5,"div")(6,"input",8),n.mxI("ngModelChange",function(o){n.eBV(e);const s=n.XpG();return n.DH7(s.item.DeliveredQuantity,o)||(s.item.DeliveredQuantity=o),n.Njj(o)}),n.bIt("change",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.deliveredQuantityChanged(o.item))})("focus",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onDeliveredQuantityFocused())})("blur",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onDeliveredQuantityBlurred())}),n.k0s()(),n.DNE(7,v3t,2,1,"div",9),n.j41(8,"div",10),n.DNE(9,_3t,1,6,"dropdown",11)(10,y3t,2,1,"span",6),n.k0s()()()}if(2&t){const e=n.XpG();n.R7$(),n.HbH(n.l_i(9,h3t,!e.item.QuantityWarning,e.item.QuantityWarning)),n.R7$(),n.Y8G("ngIf",!e.item.AddedDuringReceipting),n.R7$(),n.Y8G("ngIf",e.item.AddedDuringReceipting),n.R7$(3),n.R50("ngModel",e.item.DeliveredQuantity),n.Y8G("disabled",e.disabled),n.R7$(),n.Y8G("ngIf",e.item.QuantityWarning),n.R7$(2),n.Y8G("ngIf",e.item.AddedDuringReceipting),n.R7$(),n.Y8G("ngIf",!e.item.AddedDuringReceipting)}}function C3t(t,r){if(1&t&&(n.j41(0,"div",4)(1,"div",15)(2,"div",16),n.EFF(3),n.nI1(4,"number"),n.k0s(),n.nrm(5,"div",7),n.j41(6,"div",17)(7,"div")(8,"span"),n.EFF(9),n.nI1(10,"number"),n.k0s(),n.j41(11,"span"),n.EFF(12),n.k0s()()()()()),2&t){let e;const i=n.XpG();n.R7$(3),n.Lme(" ",n.bMT(4,8,i.summaryItem.OriginalQuantity)," ",i.getPluralizedUnitOfMeasure(null!==(e=i.summaryItem.OriginalQuantityUnitType)&&void 0!==e?e:"",i.summaryItem.OriginalQuantity)," "),n.R7$(5),n.HbH(n.eq3(12,Ehe,i.summaryItem.Quantity!==i.summaryItem.OriginalQuantity)),n.R7$(),n.JRh(n.bMT(10,10,i.summaryItem.Quantity)),n.R7$(2),n.HbH(n.eq3(14,Ehe,i.summaryItem.OriginalQuantityUnitType!==i.summaryItem.QuantityUnitType)),n.R7$(),n.SpI(" ",i.getPluralizedUnitOfMeasure(i.summaryItem.QuantityUnitType,i.summaryItem.Quantity),"")}}let w3t=(()=>{class t{constructor(){this.item=null,this.summaryItem=null,this.isReadOnly=!1,this.disabled=!1,this.unitOfMeasureChanged=new n.bkB,this.deliveredQuantityIsFocused=!1}ngDoCheck(){!this.deliveredQuantityIsFocused&&this.item&&this.deliveredQuantityChanged(this.item)}ngOnInit(){this.previousDeliveredQuantity=this.item?.DeliveredQuantity}getPluralizedUnitOfMeasure(e,i){if(1===i)return e;const o=this.unitsOfMeasure.find(s=>s.Text===e);return o&&i>1?o.PluralText:e}onDeliveredQuantityFocused(){this.deliveredQuantityIsFocused=!0,this.item&&(this.item.QuantityWarning="")}onDeliveredQuantityBlurred(){this.deliveredQuantityIsFocused=!1}deliveredQuantityChanged(e){e.QuantityWarning="",e.DeliveredQuantity&&e.Quantity&&e.DeliveredQuantity>1.5*e.Quantity&&(e.QuantityWarning="Unusually High Value - Value is more than 150% of ordered value, please make sure that this value is correct before submission."),e.DeliveredQuantity&&e.Quantity&&e.DeliveredQuantity<.5*e.Quantity&&(e.QuantityWarning="Unusually Low Value - Value is less than 50% of ordered value, please make sure that this value is correct before submission."),this.unitOfMeasureChanged.emit(e)}onUnitOfMeasureChanged(e){this.item.DeliveredQuantityUnitType=this.item?.AddedUnitOfMeasure?.Text,this.unitOfMeasureChanged.emit(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["unit-of-measure"]],inputs:{item:"item",summaryItem:"summaryItem",unitsOfMeasure:"unitsOfMeasure",isReadOnly:"isReadOnly",disabled:"disabled"},outputs:{unitOfMeasureChanged:"unitOfMeasureChanged"},standalone:!1,decls:4,vars:2,consts:[["unitOfMeasureTemplate",""],["class","tw-flex tw-justify-center",4,"ngIf"],[1,"dropdown-text"],[3,"innerHtml","title"],[1,"tw-flex","tw-justify-center"],[1,"tw-w-full","tw-justify-end"],[4,"ngIf"],[1,"quantity-change-divider"],["type","number","min","0","step","1","title","Quantity Delivered",1,"quantity-change-input",3,"ngModelChange","change","focus","blur","ngModel","disabled"],["class","tw-w-8 tw-h-8 tw-flex",3,"pTooltip",4,"ngIf"],[1,"tw-ml-0","tw-pl-0","tw-w-32"],["placeholder","Unit","name","unitOfMeasureDropDown","styleClass","","appendTo","body",3,"options","itemTemplate","selectedItemTemplate","ngModel","showFilter","disabled","ngModelChange","itemSelected",4,"ngIf"],[1,"tw-text-gray-300"],[1,"tw-w-8","tw-h-8","tw-flex",3,"pTooltip"],["placeholder","Unit","name","unitOfMeasureDropDown","styleClass","","appendTo","body",3,"ngModelChange","itemSelected","options","itemTemplate","selectedItemTemplate","ngModel","showFilter","disabled"],[1,"tw-w-full","tw-justify-end","quantity-change-container"],[1,"tw-w-1/2","tw-text-right"],[1,"tw-w-1/2"]],template:function(i,o){1&i&&n.DNE(0,f3t,3,5,"ng-template",null,0,n.C5r)(2,b3t,11,12,"div",1)(3,C3t,13,16,"div",1),2&i&&(n.R7$(2),n.Y8G("ngIf",o.item),n.R7$(),n.Y8G("ngIf",o.summaryItem))},dependencies:[fi,Cc,rk,_o,ok,ko,Uu,ou,ZX,as,Zd],styles:['.grid-header[_ngcontent-%COMP%]{padding:1rem 1.5rem;text-align:center;font-size:.75rem;line-height:1rem;font-weight:400}.grid-body-cell[_ngcontent-%COMP%]{white-space:nowrap;padding:1rem;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.quantity-change-container[_ngcontent-%COMP%]{margin:.5rem;display:flex;align-items:center;gap:1rem;border-radius:.25rem;border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1));padding:.5rem 1rem}.quantity-change-container-warning[_ngcontent-%COMP%]{margin:.5rem;display:flex;align-items:center;gap:1rem;border-radius:.25rem;border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(253 186 116 / var(--tw-border-opacity, 1));padding:.5rem 1rem}.quantity-change-divider[_ngcontent-%COMP%]{display:block;height:2rem;width:1px;--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1));content:" "}.quantity-change-input[_ngcontent-%COMP%]{width:5rem;border-radius:.25rem;border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1));padding:.5rem;text-align:right}.description-input[_ngcontent-%COMP%]{width:100%;border-radius:.25rem;border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1));padding:.5rem}']})}}return t})();const T3t=(t,r)=>({"quantity-change-container":t,"quantity-change-container-warning":r}),S3t=t=>({"tw-font-bold":t});function x3t(t,r){if(1&t&&(n.j41(0,"div"),n.EFF(1),n.nI1(2,"number"),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.SpI(" ",n.bMT(2,1,e.item.Pallets)," ")}}function E3t(t,r){1&t&&(n.j41(0,"div")(1,"span",7),n.EFF(2,"N/A"),n.k0s()())}function D3t(t,r){if(1&t&&(n.j41(0,"div",8),n.nrm(1,"info-warning-animation"),n.k0s()),2&t){const e=n.XpG(2);n.Y8G("pTooltip",e.item.PalletsWarning)}}function k3t(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",1)(1,"div",2),n.DNE(2,x3t,3,3,"div",3)(3,E3t,3,0,"div",3),n.nrm(4,"div",4),n.j41(5,"div")(6,"input",5),n.mxI("ngModelChange",function(o){n.eBV(e);const s=n.XpG();return n.DH7(s.item.DeliveredPallets,o)||(s.item.DeliveredPallets=o),n.Njj(o)}),n.bIt("change",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.deliveredPalletsChanged(o.item))})("focus",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.palletsFocused())})("blur",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.palletsBlurred())}),n.k0s()(),n.DNE(7,D3t,2,1,"div",6),n.k0s()()}if(2&t){const e=n.XpG();n.R7$(),n.HbH(n.l_i(7,T3t,!e.item.PalletsWarning,e.item.PalletsWarning)),n.R7$(),n.Y8G("ngIf",!e.item.AddedDuringReceipting),n.R7$(),n.Y8G("ngIf",e.item.AddedDuringReceipting),n.R7$(3),n.R50("ngModel",e.item.DeliveredPallets),n.Y8G("disabled",e.disabled),n.R7$(),n.Y8G("ngIf",e.item.PalletsWarning)}}function I3t(t,r){if(1&t&&(n.j41(0,"div")(1,"span"),n.EFF(2),n.nI1(3,"number"),n.k0s()()),2&t){const e=n.XpG(2);n.R7$(),n.HbH(n.eq3(5,S3t,e.summaryItem.Pallets!==e.summaryItem.OriginalPallets)),n.R7$(),n.JRh(n.bMT(3,3,e.summaryItem.Pallets))}}function A3t(t,r){1&t&&(n.j41(0,"div"),n.EFF(1," N/A "),n.k0s())}function M3t(t,r){if(1&t&&(n.j41(0,"div",1)(1,"div",9)(2,"div",10),n.EFF(3),n.nI1(4,"number"),n.k0s(),n.nrm(5,"div",4),n.j41(6,"div",11),n.DNE(7,I3t,4,7,"div",3)(8,A3t,2,0,"div",3),n.k0s()()()),2&t){const e=n.XpG();n.R7$(3),n.SpI(" ",n.bMT(4,3,e.summaryItem.OriginalPallets||0)," "),n.R7$(4),n.Y8G("ngIf",null!=e.summaryItem.Pallets),n.R7$(),n.Y8G("ngIf",null==e.summaryItem.Pallets)}}let R3t=(()=>{class t{constructor(){this.item=null,this.summaryItem=null,this.isReadOnly=!1,this.disabled=!1,this.palletsChanged=new n.bkB,this.palletsIsFocused=!1}ngOnInit(){}ngDoCheck(){!this.palletsIsFocused&&this.item&&this.deliveredPalletsChanged(this.item)}palletsFocused(){this.palletsIsFocused=!0}palletsBlurred(){this.palletsIsFocused=!1}deliveredPalletsChanged(e){e.PalletsWarning="",e.DeliveredPallets&&e.Pallets&&e.DeliveredPallets>1.5*e.Pallets&&(e.PalletsWarning="Unusually High Value - Value is more than 150% of ordered value, please make sure that this value is correct before submission."),e.DeliveredPallets&&e.Pallets&&e.DeliveredPallets<.5*e.Pallets&&(e.PalletsWarning="Unusually Low Value - Value is less than 50% of ordered value, please make sure that this value is correct before submission."),this.palletsChanged.emit()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["pallets"]],inputs:{item:"item",summaryItem:"summaryItem",isReadOnly:"isReadOnly",disabled:"disabled"},outputs:{palletsChanged:"palletsChanged"},standalone:!1,decls:2,vars:2,consts:[["class","tw-flex tw-justify-end",4,"ngIf"],[1,"tw-flex","tw-justify-end"],[1,"tw-w-full","tw-justify-center"],[4,"ngIf"],[1,"quantity-change-divider"],["type","number","min","0","step","1","title","Pallets Delivered",1,"quantity-change-input",3,"ngModelChange","change","focus","blur","ngModel","disabled"],["class","tw-w-8 tw-h-8 tw-flex",3,"pTooltip",4,"ngIf"],[1,"tw-text-gray-300"],[1,"tw-w-8","tw-h-8","tw-flex",3,"pTooltip"],[1,"tw-w-full","tw-justify-center","quantity-change-container"],[1,"tw-w-1/2","tw-text-right"],[1,"tw-w-1/2"]],template:function(i,o){1&i&&n.DNE(0,k3t,8,10,"div",0)(1,M3t,9,5,"div",0),2&i&&(n.Y8G("ngIf",o.item),n.R7$(),n.Y8G("ngIf",o.summaryItem))},dependencies:[fi,Cc,rk,_o,ok,ko,ou,ZX,as],styles:['.grid-header[_ngcontent-%COMP%]{padding:1rem 1.5rem;text-align:center;font-size:.75rem;line-height:1rem;font-weight:400}.grid-body-cell[_ngcontent-%COMP%]{white-space:nowrap;padding:1rem;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.quantity-change-container[_ngcontent-%COMP%]{margin:.5rem;display:flex;align-items:center;gap:1rem;border-radius:.25rem;border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1));padding:.5rem 1rem}.quantity-change-container-warning[_ngcontent-%COMP%]{margin:.5rem;display:flex;align-items:center;gap:1rem;border-radius:.25rem;border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(253 186 116 / var(--tw-border-opacity, 1));padding:.5rem 1rem}.quantity-change-divider[_ngcontent-%COMP%]{display:block;height:2rem;width:1px;--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1));content:" "}.quantity-change-input[_ngcontent-%COMP%]{width:5rem;border-radius:.25rem;border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1));padding:.5rem;text-align:right}.description-input[_ngcontent-%COMP%]{width:100%;border-radius:.25rem;border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1));padding:.5rem}']})}}return t})();const O3t=(t,r)=>({"quantity-change-container":t,"quantity-change-container-warning":r}),F3t=t=>({"tw-font-bold":t});function P3t(t,r){if(1&t&&(n.j41(0,"div"),n.EFF(1),n.nI1(2,"number"),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.SpI(" ",n.bMT(2,1,e.item.WeightPounds)," lbs ")}}function L3t(t,r){1&t&&(n.j41(0,"div")(1,"span",7),n.EFF(2,"N/A"),n.k0s()())}function N3t(t,r){if(1&t){const e=n.RV6();n.j41(0,"input",8),n.mxI("ngModelChange",function(o){n.eBV(e);const s=n.XpG(2);return n.DH7(s.item.DeliveredWeightPounds,o)||(s.item.DeliveredWeightPounds=o),n.Njj(o)}),n.bIt("change",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.deliveredWeightChanged(o.item))})("focus",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.onWeightFocused())})("blur",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.onWeightBlurred())}),n.k0s()}if(2&t){const e=n.XpG(2);n.R50("ngModel",e.item.DeliveredWeightPounds),n.Y8G("disabled",e.disabled)}}function G3t(t,r){if(1&t&&(n.j41(0,"div"),n.EFF(1),n.nI1(2,"number"),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.SpI(" ",n.bMT(2,1,e.item.DeliveredWeightPounds)," lbs ")}}function B3t(t,r){if(1&t&&(n.j41(0,"div",9),n.nrm(1,"info-warning-animation"),n.k0s()),2&t){const e=n.XpG(2);n.Y8G("pTooltip",e.item.WeightWarning)}}function V3t(t,r){if(1&t&&(n.j41(0,"div",1)(1,"div",2),n.DNE(2,P3t,3,3,"div",3)(3,L3t,3,0,"div",3),n.nrm(4,"div",4),n.j41(5,"div"),n.DNE(6,N3t,1,2,"input",5)(7,G3t,3,3,"div",3),n.k0s(),n.DNE(8,B3t,2,1,"div",6),n.k0s()()),2&t){const e=n.XpG();n.R7$(),n.HbH(n.l_i(7,O3t,!e.item.WeightWarning,e.item.WeightWarning)),n.R7$(),n.Y8G("ngIf",!e.item.AddedDuringReceipting),n.R7$(),n.Y8G("ngIf",e.item.AddedDuringReceipting),n.R7$(3),n.Y8G("ngIf",!e.isReadOnly),n.R7$(),n.Y8G("ngIf",e.isReadOnly),n.R7$(),n.Y8G("ngIf",!e.isReadOnly&&e.item.WeightWarning)}}function j3t(t,r){if(1&t&&(n.j41(0,"div",1)(1,"div",10)(2,"div",11),n.EFF(3),n.nI1(4,"number"),n.k0s(),n.nrm(5,"div",4),n.j41(6,"div",12)(7,"div"),n.EFF(8),n.nI1(9,"number"),n.k0s()()()()),2&t){const e=n.XpG();n.R7$(3),n.SpI(" ",n.bMT(4,4,e.summaryItem.OriginalWeightPounds)," lbs "),n.R7$(4),n.HbH(n.eq3(8,F3t,e.summaryItem.WeightPounds!==e.summaryItem.OriginalWeightPounds)),n.R7$(),n.SpI(" ",n.bMT(9,6,e.summaryItem.WeightPounds)," lbs ")}}let H3t=(()=>{class t{constructor(){this.item=null,this.summaryItem=null,this.isReadOnly=!1,this.disabled=!1,this.weightChanged=new n.bkB,this.weightIsFocused=!1}ngOnInit(){}ngDoCheck(){!this.weightIsFocused&&this.item&&this.deliveredWeightChanged(this.item)}onWeightFocused(){this.weightIsFocused=!0}onWeightBlurred(){this.weightIsFocused=!1}deliveredWeightChanged(e){e.WeightWarning="",e.DeliveredWeightPounds&&e.DeliveredWeightPounds>44e3&&(e.WeightWarning="Unusually High Value - Please make sure that this value is correct before submission."),e.DeliveredWeightPounds&&e.DeliveredWeightPounds<100&&(e.WeightWarning="Unusually Low Value - Please make sure that this value is correct before submission."),this.weightChanged.emit(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["weight"]],inputs:{item:"item",summaryItem:"summaryItem",isReadOnly:"isReadOnly",disabled:"disabled"},outputs:{weightChanged:"weightChanged"},standalone:!1,decls:2,vars:2,consts:[["class","tw-flex tw-justify-end",4,"ngIf"],[1,"tw-flex","tw-justify-end"],[1,"tw-w-full","tw-justify-end"],[4,"ngIf"],[1,"quantity-change-divider"],["type","number","min","0","step","1","title","Pounds Delivered","class","quantity-change-input",3,"ngModel","disabled","ngModelChange","change","focus","blur",4,"ngIf"],["class","tw-w-8 tw-h-8 tw-flex",3,"pTooltip",4,"ngIf"],[1,"tw-text-gray-300"],["type","number","min","0","step","1","title","Pounds Delivered",1,"quantity-change-input",3,"ngModelChange","change","focus","blur","ngModel","disabled"],[1,"tw-w-8","tw-h-8","tw-flex",3,"pTooltip"],[1,"tw-w-full","tw-justify-end","quantity-change-container"],[1,"tw-w-1/2","tw-text-right"],[1,"tw-w-1/2"]],template:function(i,o){1&i&&n.DNE(0,V3t,9,10,"div",0)(1,j3t,10,10,"div",0),2&i&&(n.Y8G("ngIf",o.item),n.R7$(),n.Y8G("ngIf",o.summaryItem))},dependencies:[fi,Cc,rk,_o,ok,ko,ou,ZX,as],styles:['.grid-header[_ngcontent-%COMP%]{padding:1rem 1.5rem;text-align:center;font-size:.75rem;line-height:1rem;font-weight:400}.grid-body-cell[_ngcontent-%COMP%]{white-space:nowrap;padding:1rem;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.quantity-change-container[_ngcontent-%COMP%]{margin:.5rem;display:flex;align-items:center;gap:1rem;border-radius:.25rem;border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1));padding:.5rem 1rem}.quantity-change-container-warning[_ngcontent-%COMP%]{margin:.5rem;display:flex;align-items:center;gap:1rem;border-radius:.25rem;border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(253 186 116 / var(--tw-border-opacity, 1));padding:.5rem 1rem}.quantity-change-divider[_ngcontent-%COMP%]{display:block;height:2rem;width:1px;--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1));content:" "}.quantity-change-input[_ngcontent-%COMP%]{width:5rem;border-radius:.25rem;border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1));padding:.5rem;text-align:right}.description-input[_ngcontent-%COMP%]{width:100%;border-radius:.25rem;border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1));padding:.5rem}']})}}return t})(),U3t=(()=>{class t{constructor(){}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["loading-skeleton"]],standalone:!1,decls:15,vars:0,consts:[[1,"tw-grid"],[1,"tw-w-full","tw-mb-8"],["shape","rectangle","height","5rem","styleClass",""],[1,"tw-w-2/5","tw-mb-2","tw-justify-self-end"],["shape","rectangle","height","2rem","styleClass",""],[1,"tw-w-full","tw-mb-4"],["shape","rectangle","height","4rem","styleClass",""],["shape","rectangle","height","2.5rem","styleClass",""],["shape","rectangle","height","20rem","styleClass",""]],template:function(i,o){1&i&&(n.j41(0,"div",0)(1,"div",1),n.nrm(2,"p-skeleton",2),n.k0s(),n.j41(3,"div",3),n.nrm(4,"p-skeleton",4),n.k0s(),n.j41(5,"div",5),n.nrm(6,"p-skeleton",6),n.k0s(),n.j41(7,"div",5),n.nrm(8,"p-skeleton",7),n.k0s(),n.j41(9,"div",5),n.nrm(10,"p-skeleton",7),n.k0s(),n.j41(11,"div",5),n.nrm(12,"p-skeleton",7),n.k0s()(),n.j41(13,"div",1),n.nrm(14,"p-skeleton",8),n.k0s())},dependencies:[Pq],encapsulation:2})}}return t})();function $3t(t,r){if(1&t&&(n.j41(0,"div",2),n.nrm(1,"span",3),n.nI1(2,"highlight"),n.k0s()),2&t){const e=r.$implicit,i=r.searchText;n.R7$(),n.Y8G("innerHtml",n.i5U(2,2,null==e?null:e.Text,i),n.npT)("title",null==e?null:e.Text)}}function Y3t(t,r){if(1&t){const e=n.RV6();n.j41(0,"div")(1,"dropdown",4),n.mxI("ngModelChange",function(o){n.eBV(e);const s=n.XpG(2);return n.DH7(s.item.AddedProduceItem,o)||(s.item.AddedProduceItem=o),n.Njj(o)}),n.bIt("itemSelected",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.addedItemSelected(s.item,o))}),n.k0s()()}if(2&t){const e=n.XpG(2),i=n.sdS(1);n.R7$(),n.Y8G("options",e.produceItems)("itemTemplate",i)("selectedItemTemplate",i)("showFilter",!0),n.R50("ngModel",e.item.AddedProduceItem),n.Y8G("disabled",e.disabled)}}function W3t(t,r){if(1&t&&(n.j41(0,"div"),n.EFF(1),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.SpI(" ",e.item.ItemTypeName," ")}}function z3t(t,r){if(1&t&&(n.j41(0,"div"),n.DNE(1,Y3t,2,6,"div",1)(2,W3t,2,1,"div",1),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngIf",e.item.AddedDuringReceipting),n.R7$(),n.Y8G("ngIf",!e.item.AddedDuringReceipting)}}function q3t(t,r){if(1&t&&(n.j41(0,"div"),n.EFF(1),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.SpI(" ",e.summaryItem.ItemName,"\n")}}let X3t=(()=>{class t{constructor(){this.item=null,this.summaryItem=null,this.produceItems=[],this.disabled=!1,this.itemTypeSelected=new n.bkB}ngOnInit(){this.item?.AddedDuringReceipting&&!this.item.AddedProduceItem&&(this.item.AddedProduceItem=this.produceItems.find(e=>e.ID==this.item?.ProduceItemTypeID))}addedItemSelected(e,i){e.ProduceItemTypeID=i?.ID,e.ItemTypeName=i?.Text,this.itemTypeSelected.emit(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["item-type"]],inputs:{item:"item",summaryItem:"summaryItem",produceItems:"produceItems",disabled:"disabled"},outputs:{itemTypeSelected:"itemTypeSelected"},standalone:!1,decls:4,vars:2,consts:[["produceItemsTemplate",""],[4,"ngIf"],[1,"dropdown-text"],[3,"innerHtml","title"],["filterMatchMode","contains","filterFields","Text","placeholder","Item Type","name","itemTypeDropDown","styleClass","","appendTo","body",3,"ngModelChange","itemSelected","options","itemTemplate","selectedItemTemplate","showFilter","ngModel","disabled"]],template:function(i,o){1&i&&n.DNE(0,$3t,3,5,"ng-template",null,0,n.C5r)(2,z3t,3,2,"div",1)(3,q3t,2,1,"div",1),2&i&&(n.R7$(2),n.Y8G("ngIf",o.item),n.R7$(),n.Y8G("ngIf",o.summaryItem))},dependencies:[fi,_o,ko,Uu,Zd],encapsulation:2})}}return t})();function K3t(t,r){if(1&t&&(n.j41(0,"div"),n.EFF(1),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.SpI(" ",e.item.Description," ")}}function Q3t(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",2)(1,"input",3),n.mxI("ngModelChange",function(o){n.eBV(e);const s=n.XpG(2);return n.DH7(s.item.Description,o)||(s.item.Description=o),n.Njj(o)}),n.bIt("change",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.onDescriptionChanged())}),n.k0s()()}if(2&t){const e=n.XpG(2);n.R7$(),n.R50("ngModel",e.item.Description),n.Y8G("disabled",e.disabled)}}function J3t(t,r){if(1&t&&(n.j41(0,"div"),n.DNE(1,K3t,2,1,"div",0)(2,Q3t,2,2,"div",1),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngIf",!e.item.AddedDuringReceipting),n.R7$(),n.Y8G("ngIf",e.item.AddedDuringReceipting)}}function Z3t(t,r){if(1&t&&(n.j41(0,"div"),n.EFF(1),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.SpI(" ",e.summaryItem.Description,"\n")}}let e4t=(()=>{class t{constructor(){this.item=null,this.summaryItem=null,this.disabled=!1,this.descriptionChanged=new n.bkB}ngOnInit(){}onDescriptionChanged(){this.descriptionChanged.emit(this.item)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["description"]],inputs:{item:"item",summaryItem:"summaryItem",disabled:"disabled"},outputs:{descriptionChanged:"descriptionChanged"},standalone:!1,decls:2,vars:2,consts:[[4,"ngIf"],["class","tw-w-full",4,"ngIf"],[1,"tw-w-full"],["title","Description",1,"description-input","tw-w-full",3,"ngModelChange","change","ngModel","disabled"]],template:function(i,o){1&i&&n.DNE(0,J3t,3,2,"div",0)(1,Z3t,2,1,"div",0),2&i&&(n.Y8G("ngIf",o.item),n.R7$(),n.Y8G("ngIf",o.summaryItem))},dependencies:[fi,Cc,_o,ko],styles:['.grid-header[_ngcontent-%COMP%]{padding:1rem 1.5rem;text-align:center;font-size:.75rem;line-height:1rem;font-weight:400}.grid-body-cell[_ngcontent-%COMP%]{white-space:nowrap;padding:1rem;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.quantity-change-container[_ngcontent-%COMP%]{margin:.5rem;display:flex;align-items:center;gap:1rem;border-radius:.25rem;border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1));padding:.5rem 1rem}.quantity-change-container-warning[_ngcontent-%COMP%]{margin:.5rem;display:flex;align-items:center;gap:1rem;border-radius:.25rem;border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(253 186 116 / var(--tw-border-opacity, 1));padding:.5rem 1rem}.quantity-change-divider[_ngcontent-%COMP%]{display:block;height:2rem;width:1px;--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1));content:" "}.quantity-change-input[_ngcontent-%COMP%]{width:5rem;border-radius:.25rem;border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1));padding:.5rem;text-align:right}.description-input[_ngcontent-%COMP%]{width:100%;border-radius:.25rem;border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1));padding:.5rem}']})}}return t})();function t4t(t,r){if(1&t&&(n.j41(0,"span",7),n.EFF(1),n.k0s()),2&t){const e=r.$implicit;n.R7$(),n.E5c("",e.Name," (",e.Address.City,", ",e.Address.Province,")")}}function n4t(t,r){if(1&t&&(n.j41(0,"div",2)(1,"div",3)(2,"div",4)(3,"span",5),n.EFF(4,"Receipted "),n.k0s(),n.j41(5,"span",6),n.EFF(6),n.nI1(7,"date"),n.k0s()(),n.j41(8,"div",4)(9,"span",5),n.EFF(10,"Receipted By"),n.k0s(),n.j41(11,"span",7),n.EFF(12),n.k0s()(),n.j41(13,"div",4)(14,"span",5),n.EFF(15,"Ordered"),n.k0s(),n.j41(16,"span",7),n.EFF(17),n.nI1(18,"date"),n.k0s()(),n.j41(19,"div",4)(20,"span",5),n.EFF(21,"Status"),n.k0s(),n.j41(22,"span",7),n.EFF(23),n.k0s()(),n.j41(24,"div",4)(25,"span",5),n.EFF(26,"Donor"),n.k0s(),n.DNE(27,t4t,2,3,"span",8),n.k0s(),n.j41(28,"div",9)(29,"a",10),n.nrm(30,"i",11),n.EFF(31," Order Details "),n.k0s()()()()),2&t){const e=n.XpG();n.R7$(6),n.JRh(n.i5U(7,6,e.receiptSummary.ReceiptedDate,"longDate")),n.R7$(6),n.JRh(e.receiptSummary.ReceiptedBy),n.R7$(5),n.JRh(n.i5U(18,9,e.receiptBundle.ReceiptFoundation.OrderDate,"longDate")),n.R7$(6),n.JRh(e.receiptBundle.ReceiptFoundation.OrderTruckStatus),n.R7$(4),n.Y8G("ngForOf",e.receiptBundle.ReceiptFoundation.Origins),n.R7$(2),n.Y8G("href",e.manageOfferUrl,n.B4B)}}function i4t(t,r){if(1&t&&(n.j41(0,"span",7),n.EFF(1),n.k0s()),2&t){const e=r.$implicit;n.R7$(),n.E5c("",e.Name," (",e.Address.City,", ",e.Address.Province,")")}}function r4t(t,r){1&t&&n.nrm(0,"i",17)}function o4t(t,r){1&t&&n.nrm(0,"i",18)}function s4t(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",13)(1,"button",14),n.bIt("click",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.onToggleShowPallets())}),n.DNE(2,r4t,1,0,"i",15)(3,o4t,1,0,"i",16),n.EFF(4),n.k0s()()}if(2&t){const e=n.XpG(2);n.R7$(2),n.Y8G("ngIf",!e.showPallets),n.R7$(),n.Y8G("ngIf",e.showPallets),n.R7$(),n.SpI(" ",e.showPallets?"Exclude":"Include"," Pallets ")}}function a4t(t,r){if(1&t&&(n.j41(0,"div",2)(1,"div",3)(2,"div",4)(3,"span",5),n.EFF(4,"Receipt Due "),n.k0s(),n.j41(5,"span",6),n.EFF(6),n.nI1(7,"date"),n.k0s()(),n.j41(8,"div",4)(9,"span",5),n.EFF(10,"Ordered"),n.k0s(),n.j41(11,"span",7),n.EFF(12),n.nI1(13,"date"),n.k0s()(),n.j41(14,"div",4)(15,"span",5),n.EFF(16,"Status"),n.k0s(),n.j41(17,"span",7),n.EFF(18),n.k0s()(),n.j41(19,"div",4)(20,"span",5),n.EFF(21,"Donor"),n.k0s(),n.DNE(22,i4t,2,3,"span",8),n.k0s(),n.j41(23,"div",9)(24,"a",10),n.nrm(25,"i",11),n.EFF(26," Order Details "),n.k0s()()(),n.DNE(27,s4t,5,3,"div",12),n.k0s()),2&t){const e=n.XpG();n.R7$(6),n.JRh(e.receiptBundle.ReceiptFoundation.ReceiptDueDate?n.i5U(7,6,e.receiptBundle.ReceiptFoundation.ReceiptDueDate,"longDate"):"No Due Date Set"),n.R7$(6),n.JRh(n.i5U(13,9,e.receiptBundle.ReceiptFoundation.OrderDate,"longDate")),n.R7$(6),n.JRh(e.receiptBundle.ReceiptFoundation.OrderTruckStatus),n.R7$(4),n.Y8G("ngForOf",e.receiptBundle.ReceiptFoundation.Origins),n.R7$(2),n.Y8G("href",e.manageOfferUrl,n.B4B),n.R7$(3),n.Y8G("ngIf",!e.isReadOnly)}}function l4t(t,r){1&t&&n.nrm(0,"i",17)}function c4t(t,r){1&t&&n.nrm(0,"i",18)}function u4t(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",19)(1,"button",14),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onToggleShowPallets())}),n.DNE(2,l4t,1,0,"i",15)(3,c4t,1,0,"i",16),n.EFF(4),n.k0s()()}if(2&t){const e=n.XpG();n.R7$(2),n.Y8G("ngIf",!e.showPallets),n.R7$(),n.Y8G("ngIf",e.showPallets),n.R7$(),n.SpI(" ",e.showPallets?"Exclude":"Include"," Pallets ")}}let d4t=(()=>{class t{constructor(){this.receiptBundle=null,this.receiptSummary=null,this.isReadOnly=!1,this.manageOfferUrl="",this.showPallets=!1,this.toggleShowPallets=new n.bkB}ngOnInit(){}onToggleShowPallets(){this.toggleShowPallets.emit()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["adjustment-header"]],inputs:{receiptBundle:"receiptBundle",receiptSummary:"receiptSummary",isReadOnly:"isReadOnly",manageOfferUrl:"manageOfferUrl",showPallets:"showPallets"},outputs:{toggleShowPallets:"toggleShowPallets"},standalone:!1,decls:3,vars:3,consts:[["class","tw-flex tw-gap-4",4,"ngIf"],["class","\n    md:tw-hidden\n    tw-flex\n    tw-items-center\n    tw-justify-center\n    tw-px-6\n    tw-py-4\n    tw-bg-gray-100\n    tw-rounded\n    tw-border\n    tw-border-solid\n    tw-border-gray-300\n  ",4,"ngIf"],[1,"tw-flex","tw-gap-4"],[1,"tw-flex","tw-flex-grow","tw-flex-col","md:tw-flex-row","tw-justify-between","tw-w-full","tw-items-center","md:tw-items-start","tw-gap-4","tw-bg-gray-200","tw-px-6","tw-py-4","tw-rounded"],[1,"tw-flex","tw-flex-col","tw-justify-center","tw-items-center"],[1,"tw-uppercase","tw-text-gray-500"],[1,"tw-font-semibold","tw-text-center"],[1,"tw-text-center"],["class","tw-text-center",4,"ngFor","ngForOf"],[1,"tw-self-center"],["target","_blank",1,"btn","btn-primary",3,"href"],[1,"pi","pi-external-link","tw-text-sm","tw-mr-1"],["class","\n      lg:tw-flex\n      md:tw-flex\n      tw-items-center tw-hidden\n      md:tw-visible\n      tw-justify-center\n      tw-px-6\n      tw-py-4\n      tw-bg-gray-100\n      tw-rounded\n      tw-border\n      tw-border-solid\n      tw-border-gray-300\n    ",4,"ngIf"],[1,"lg:tw-flex","md:tw-flex","tw-items-center","tw-hidden","md:tw-visible","tw-justify-center","tw-px-6","tw-py-4","tw-bg-gray-100","tw-rounded","tw-border","tw-border-solid","tw-border-gray-300"],["type","button",1,"btn","btn-default","tw-w-[150px]","tw-flex","tw-items-center","tw-gap-2",3,"click"],["class","pi pi-eye",4,"ngIf"],["class","pi pi-eye-slash",4,"ngIf"],[1,"pi","pi-eye"],[1,"pi","pi-eye-slash"],[1,"md:tw-hidden","tw-flex","tw-items-center","tw-justify-center","tw-px-6","tw-py-4","tw-bg-gray-100","tw-rounded","tw-border","tw-border-solid","tw-border-gray-300"]],template:function(i,o){1&i&&n.DNE(0,n4t,32,12,"div",0)(1,a4t,28,12,"div",0)(2,u4t,5,3,"div",1),2&i&&(n.Y8G("ngIf",o.receiptSummary&&o.receiptBundle&&o.isReadOnly),n.R7$(),n.Y8G("ngIf",o.receiptBundle&&!o.isReadOnly),n.R7$(),n.Y8G("ngIf",!o.isReadOnly))},dependencies:[oo,fi,ti],encapsulation:2})}}return t})(),p4t=(()=>{class t{transform(e){return e&&0!==e?`(${e>0?"+":""}${qt(e,"en-US")})`:""}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=n.EJ8({name:"signedNumber",type:t,pure:!0,standalone:!1})}}return t})();const Dhe=t=>({"tw-brightness-75":t});function h4t(t,r){if(1&t&&(n.j41(0,"div",3),n.nrm(1,"span",4),n.nI1(2,"highlight"),n.k0s()),2&t){const e=r.$implicit,i=r.searchText;n.R7$(),n.Y8G("innerHtml",n.i5U(2,2,null==e?null:e.Text,i),n.npT)("title",null==e?null:e.Text)}}function f4t(t,r){1&t&&n.nrm(0,"loading-skeleton")}function m4t(t,r){if(1&t&&(n.j41(0,"div",31),n.EFF(1),n.k0s()),2&t){const e=n.XpG().$implicit;n.R7$(),n.SpI(" *This section will be receipted by ",e.Name," ")}}function g4t(t,r){1&t&&(n.j41(0,"th",24),n.EFF(1," Offer Type "),n.k0s())}function v4t(t,r){1&t&&(n.j41(0,"th",24)(1,"div",26)(2,"span"),n.EFF(3,"Pallets"),n.k0s(),n.j41(4,"span"),n.EFF(5,"Ordered | Delivered"),n.k0s()()())}function _4t(t,r){1&t&&(n.j41(0,"span",39),n.EFF(1,"P"),n.k0s())}function y4t(t,r){1&t&&(n.j41(0,"span",40),n.EFF(1,"D"),n.k0s())}function b4t(t,r){if(1&t&&(n.j41(0,"td",34)(1,"div",26),n.DNE(2,_4t,2,0,"span",37)(3,y4t,2,0,"span",38),n.k0s()()),2&t){const e=n.XpG().$implicit;n.R7$(2),n.Y8G("ngIf","ITEM-FOR-SALE"==e.ProduceTransactionTypeCode),n.R7$(),n.Y8G("ngIf","DONATED-FREE"==e.ProduceTransactionTypeCode)}}function C4t(t,r){if(1&t&&(n.j41(0,"tr",23)(1,"td",32),n.nrm(2,"item-type",33),n.k0s(),n.j41(3,"td",34),n.nrm(4,"description",33),n.k0s(),n.DNE(5,b4t,4,2,"td",35),n.j41(6,"td",34),n.nrm(7,"unit-of-measure",36),n.k0s(),n.j41(8,"td",34),n.nrm(9,"pallets",33),n.k0s(),n.j41(10,"td",34),n.nrm(11,"weight",33),n.k0s()()),2&t){const e=r.$implicit,i=n.XpG(5);n.R7$(2),n.Y8G("summaryItem",e),n.R7$(2),n.Y8G("summaryItem",e),n.R7$(),n.Y8G("ngIf",i.isProducePurchasingEnabled),n.R7$(2),n.Y8G("summaryItem",e)("unitsOfMeasure",i.unitsOfMeasure),n.R7$(2),n.Y8G("summaryItem",e),n.R7$(2),n.Y8G("summaryItem",e)}}function w4t(t,r){1&t&&n.nrm(0,"td")}function T4t(t,r){if(1&t&&(n.j41(0,"span"),n.EFF(1),n.nI1(2,"signedNumber"),n.k0s()),2&t){const e=n.XpG(2).$implicit;n.R7$(),n.JRh(n.bMT(2,1,e.TotalPalletDifferenceFromOrdered))}}function S4t(t,r){1&t&&(n.j41(0,"span"),n.EFF(1," N/A "),n.k0s())}function x4t(t,r){if(1&t&&(n.j41(0,"div")(1,"span",30),n.EFF(2),n.nI1(3,"number"),n.k0s(),n.DNE(4,T4t,3,3,"span",1)(5,S4t,2,0,"span",1),n.k0s()),2&t){const e=n.XpG().$implicit;n.R7$(2),n.JRh(n.bMT(3,3,e.TotalPallets)),n.R7$(2),n.Y8G("ngIf",null!==e.TotalPalletDifferenceFromOrdered),n.R7$(),n.Y8G("ngIf",null===e.TotalPalletDifferenceFromOrdered)}}function E4t(t,r){if(1&t&&(n.qex(0),n.j41(1,"div",13)(2,"div",14),n.DNE(3,m4t,2,1,"div",15),n.j41(4,"div",16)(5,"div",17),n.EFF(6),n.k0s(),n.j41(7,"div",18),n.EFF(8),n.k0s(),n.j41(9,"div",19)(10,"div",20)(11,"table",21)(12,"thead",22)(13,"tr",23)(14,"th",24),n.EFF(15,"Item"),n.k0s(),n.j41(16,"th",24),n.EFF(17,"Description"),n.k0s(),n.DNE(18,g4t,2,0,"th",25),n.j41(19,"th",24)(20,"div",26)(21,"span"),n.EFF(22,"UOM / Quantity"),n.k0s(),n.j41(23,"span"),n.EFF(24,"Ordered | Delivered"),n.k0s()()(),n.DNE(25,v4t,6,0,"th",25),n.j41(26,"th",24)(27,"div",26)(28,"span"),n.EFF(29,"Gross Weight"),n.k0s(),n.j41(30,"span"),n.EFF(31,"Ordered | Delivered"),n.k0s()()()()(),n.j41(32,"tbody",27),n.DNE(33,C4t,12,7,"tr",28),n.j41(34,"tr",29),n.nrm(35,"td")(36,"td"),n.DNE(37,w4t,1,0,"td",1),n.j41(38,"td")(39,"span",30),n.EFF(40),n.nI1(41,"number"),n.k0s(),n.EFF(42),n.nI1(43,"signedNumber"),n.k0s(),n.j41(44,"td"),n.DNE(45,x4t,6,5,"div",1),n.k0s(),n.j41(46,"td")(47,"span",30),n.EFF(48),n.nI1(49,"number"),n.k0s(),n.EFF(50),n.nI1(51,"signedNumber"),n.k0s()()()()()()()()(),n.bVm()),2&t){const e=r.$implicit,i=n.XpG(4);n.R7$(),n.HbH(n.eq3(22,Dhe,!e.IsDestinationEditable)),n.R7$(2),n.Y8G("ngIf",!e.IsDestinationEditable),n.R7$(3),n.SpI(" ",e.ToAndFromDescription," "),n.R7$(2),n.SpI(" ",e.ToAddress," "),n.R7$(10),n.Y8G("ngIf",i.isProducePurchasingEnabled),n.R7$(7),n.Y8G("ngIf",i.showPallets),n.R7$(8),n.Y8G("ngForOf",e.Items),n.R7$(4),n.Y8G("ngIf",i.isProducePurchasingEnabled),n.R7$(3),n.JRh(n.bMT(41,14,e.TotalQuantity)),n.R7$(2),n.SpI(" ",n.bMT(43,16,e.TotalQuantityDifferenceFromOrdered)," "),n.R7$(3),n.Y8G("ngIf",null!==e.TotalPalletDifferenceFromOrdered),n.R7$(3),n.JRh(n.bMT(49,18,e.TotalWeightPounds)),n.R7$(2),n.SpI(" ",n.bMT(51,20,e.TotalWeightDifferenceFromOrdered)," ")}}function D4t(t,r){if(1&t&&(n.j41(0,"div",11),n.DNE(1,E4t,52,24,"ng-container",12),n.k0s()),2&t){const e=r.$implicit;n.R7$(),n.Y8G("ngForOf",e.Destinations)}}function k4t(t,r){if(1&t&&(n.qex(0),n.DNE(1,D4t,2,1,"div",10),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngForOf",e.receiptSummary.Origins)}}function I4t(t,r){if(1&t&&(n.j41(0,"div",48),n.EFF(1),n.k0s()),2&t){const e=n.XpG().$implicit;n.R7$(),n.SpI(" *This section will be receipted by ",e.Name," ")}}function A4t(t,r){1&t&&(n.j41(0,"th",24),n.EFF(1," Offer Type "),n.k0s())}function M4t(t,r){1&t&&(n.j41(0,"th",24)(1,"div",26)(2,"span"),n.EFF(3,"Pallets"),n.k0s(),n.j41(4,"span"),n.EFF(5,"Ordered | Delivered"),n.k0s()()())}function R4t(t,r){1&t&&(n.j41(0,"span",58),n.EFF(1," (DEFAULT)"),n.k0s())}function O4t(t,r){if(1&t&&(n.j41(0,"div",59)(1,"span"),n.EFF(2),n.k0s()()),2&t){const e=n.XpG().$implicit;n.R7$(2),n.SpI(" Project: ",e.projectCsg," ")}}function F4t(t,r){if(1&t&&(n.j41(0,"div",57)(1,"span",58),n.EFF(2),n.k0s(),n.j41(3,"span"),n.EFF(4),n.k0s(),n.j41(5,"span"),n.DNE(6,R4t,2,0,"span",58)(7,O4t,3,1,"div",59),n.k0s()()),2&t){const e=r.$implicit;n.R7$(2),n.SpI(" ",e.itemId," "),n.R7$(2),n.SpI(" - ",e.description,""),n.R7$(2),n.vxM(e.isDefault?6:7)}}function P4t(t,r){if(1&t){const e=n.RV6();n.j41(0,"p-floatlabel",54)(1,"p-select",55),n.bIt("onChange",function(o){n.eBV(e);const s=n.XpG(2).$implicit,a=n.XpG(5);return n.Njj(a.setNetSuiteItem(s,o.value))}),n.DNE(2,F4t,8,3,"ng-template"),n.k0s(),n.j41(3,"label",56),n.EFF(4," NetSuite Item "),n.k0s()()}if(2&t){const e=n.XpG(7);n.R7$(),n.Y8G("options",e.netSuiteItems())}}function L4t(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",49)(1,"app-item-type-selection",53),n.bIt("onItemSelected",function(o){n.eBV(e);const s=n.XpG().$implicit,a=n.XpG(5);return n.Njj(a.addedItemSelected(s,o))}),n.k0s(),n.DNE(2,P4t,5,1,"p-floatlabel",54),n.k0s()}if(2&t){const e=n.XpG().$implicit,i=n.XpG(5);n.R7$(),n.Y8G("taxonomy",i.taxonomy())("taxonomyTree",i.taxonomyTree())("selectedEntry",i.getMarketplaceTaxonomyItem(e)),n.R7$(),n.vxM(i.netSuiteItems().length?2:-1)}}function N4t(t,r){if(1&t&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&t){const e=n.XpG().$implicit;n.R7$(),n.JRh(e.ItemTypeName)}}function G4t(t,r){1&t&&(n.j41(0,"span",39),n.EFF(1,"P"),n.k0s())}function B4t(t,r){1&t&&(n.j41(0,"span",40),n.EFF(1,"D"),n.k0s())}function V4t(t,r){if(1&t&&(n.j41(0,"td",34)(1,"div",26),n.DNE(2,G4t,2,0,"span",37)(3,B4t,2,0,"span",38),n.k0s()()),2&t){const e=n.XpG().$implicit;n.R7$(2),n.Y8G("ngIf","ITEM-FOR-SALE"==e.ProduceTransactionTypeCode),n.R7$(),n.Y8G("ngIf","DONATED-FREE"==e.ProduceTransactionTypeCode)}}function j4t(t,r){if(1&t&&(n.j41(0,"td",34),n.nrm(1,"pallets",60),n.k0s()),2&t){const e=n.XpG().$implicit,i=n.XpG().$implicit;n.R7$(),n.Y8G("item",e)("disabled",!i.IsEditable)}}function H4t(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",62),n.bIt("click",function(){n.eBV(e);const o=n.XpG(2).$implicit,s=n.XpG(5);return n.Njj(s.setOrdered(o))}),n.EFF(1," Ordered "),n.k0s()}if(2&t){const e=n.XpG(3).$implicit;n.Y8G("disabled",!e.IsEditable)}}function U4t(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",65),n.bIt("click",function(){n.eBV(e);const o=n.XpG(2).$implicit,s=n.XpG().$implicit,a=n.XpG(4);return n.Njj(a.removeItem(s,o))}),n.EFF(1," Remove "),n.k0s()}if(2&t){const e=n.XpG(3).$implicit;n.Y8G("disabled",!e.IsEditable)}}function $4t(t,r){if(1&t){const e=n.RV6();n.j41(0,"td",34)(1,"div",61)(2,"button",62),n.bIt("click",function(){n.eBV(e);const o=n.XpG().$implicit,s=n.XpG(5);return n.Njj(s.zeroOutItem(o))}),n.EFF(3," Zero "),n.k0s(),n.DNE(4,H4t,2,1,"button",63)(5,U4t,2,1,"button",64),n.k0s()()}if(2&t){const e=n.XpG().$implicit,i=n.XpG().$implicit;n.R7$(2),n.Y8G("disabled",!i.IsEditable),n.R7$(2),n.Y8G("ngIf",!e.AddedDuringReceipting),n.R7$(),n.Y8G("ngIf",e.AddedDuringReceipting)}}function Y4t(t,r){if(1&t){const e=n.RV6();n.j41(0,"tr",23)(1,"td",32),n.DNE(2,L4t,3,4,"div",49)(3,N4t,2,1,"span"),n.k0s(),n.j41(4,"td",34)(5,"description",50),n.bIt("descriptionChanged",function(){n.eBV(e);const o=n.XpG(5);return n.Njj(o.validateItems())}),n.k0s()(),n.DNE(6,V4t,4,2,"td",35),n.j41(7,"td",34)(8,"unit-of-measure",51),n.bIt("unitOfMeasureChanged",function(){n.eBV(e);const o=n.XpG(5);return n.Njj(o.validateItems())}),n.k0s()(),n.DNE(9,j4t,2,2,"td",35),n.j41(10,"td",34)(11,"weight",52),n.bIt("weightChanged",function(){n.eBV(e);const o=n.XpG(5);return n.Njj(o.validateItems())}),n.k0s()(),n.DNE(12,$4t,6,3,"td",35),n.k0s()}if(2&t){const e=r.$implicit,i=n.XpG().$implicit,o=n.XpG(4);n.R7$(2),n.vxM(e.AddedDuringReceipting&&i.IsEditable?2:3),n.R7$(3),n.Y8G("item",e)("disabled",!i.IsEditable),n.R7$(),n.Y8G("ngIf",o.isProducePurchasingEnabled),n.R7$(2),n.Y8G("item",e)("unitsOfMeasure",o.unitsOfMeasure)("disabled",!i.IsEditable),n.R7$(),n.Y8G("ngIf",o.showPallets),n.R7$(2),n.Y8G("item",e)("disabled",!i.IsEditable),n.R7$(),n.Y8G("ngIf",!o.isReadOnly)}}function W4t(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",66)(1,"button",67),n.bIt("click",function(){n.eBV(e);const o=n.XpG().$implicit,s=n.XpG(4);return n.Njj(s.addItemToDestination(o))}),n.nrm(2,"i",68),n.EFF(3," Add Item "),n.k0s()()}}function z4t(t,r){if(1&t&&(n.qex(0),n.j41(1,"div")(2,"div",13)(3,"div",14),n.DNE(4,I4t,2,1,"div",43),n.j41(5,"div",16)(6,"div",44),n.EFF(7),n.k0s(),n.j41(8,"div",45),n.EFF(9),n.k0s(),n.j41(10,"div",46)(11,"div",20)(12,"table",21)(13,"thead",22)(14,"tr",23)(15,"th",24),n.EFF(16,"Item"),n.k0s(),n.j41(17,"th",24),n.EFF(18,"Description"),n.k0s(),n.DNE(19,A4t,2,0,"th",25),n.j41(20,"th",24)(21,"div",26)(22,"span"),n.EFF(23,"UOM / Quantity"),n.k0s(),n.j41(24,"span"),n.EFF(25,"Ordered | Delivered"),n.k0s()()(),n.DNE(26,M4t,6,0,"th",25),n.j41(27,"th",24)(28,"div",26)(29,"span"),n.EFF(30,"Gross Weight"),n.k0s(),n.j41(31,"span"),n.EFF(32,"Ordered | Delivered"),n.k0s()()(),n.nrm(33,"th"),n.k0s()(),n.j41(34,"tbody",27),n.Z7z(35,Y4t,13,11,"tr",23,n.Vm6),n.k0s()()()()()()(),n.DNE(37,W4t,4,0,"div",47),n.k0s(),n.bVm()),2&t){const e=r.$implicit,i=n.XpG(4);n.R7$(),n.HbH(n.eq3(8,Dhe,!e.IsEditable)),n.R7$(3),n.Y8G("ngIf",!e.IsEditable),n.R7$(3),n.SpI(" ",e.ToAndFromDescription," "),n.R7$(2),n.SpI(" ",e.ToAddress," "),n.R7$(10),n.Y8G("ngIf",i.isProducePurchasingEnabled),n.R7$(7),n.Y8G("ngIf",i.showPallets),n.R7$(9),n.Dyx(e.Items),n.R7$(2),n.Y8G("ngIf",!i.isReadOnly&&e.IsEditable)}}function q4t(t,r){if(1&t&&(n.j41(0,"div",42),n.DNE(1,z4t,38,10,"ng-container",12),n.k0s()),2&t){const e=r.$implicit;n.R7$(),n.Y8G("ngForOf",e.Destinations)}}function X4t(t,r){if(1&t&&(n.qex(0),n.DNE(1,q4t,2,1,"div",41),n.bVm()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngForOf",null==e.receiptBundle||null==e.receiptBundle.ReceiptCreation?null:e.receiptBundle.ReceiptCreation.Origins)}}function K4t(t,r){if(1&t&&(n.j41(0,"span",79),n.EFF(1),n.k0s()),2&t){const e=n.XpG(3);n.R7$(),n.JRh(e.validationMessages[0])}}function Q4t(t,r){1&t&&(n.j41(0,"span"),n.nrm(1,"i",82),n.EFF(2," Multi-Party "),n.nrm(3,"help-indicator",83),n.k0s())}function J4t(t,r){1&t&&(n.j41(0,"span",84),n.nrm(1,"i",85),n.EFF(2," Ready to Transmit "),n.nrm(3,"help-indicator",86),n.k0s())}function Z4t(t,r){if(1&t&&(n.j41(0,"span",80),n.DNE(1,Q4t,4,0,"span",1)(2,J4t,4,0,"span",81),n.k0s()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngIf",!e.isMultiPartyComplete),n.R7$(),n.Y8G("ngIf",e.isMultiPartyComplete)}}function eNt(t,r){1&t&&(n.j41(0,"span"),n.EFF(1," (& Submit Now)"),n.k0s())}function tNt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",69)(1,"div",70)(2,"button",71),n.bIt("click",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.addComments())}),n.nrm(3,"i",68),n.EFF(4," Add Comments "),n.k0s(),n.j41(5,"button",71),n.bIt("click",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.resetAllItems())}),n.nrm(6,"i",72),n.EFF(7," Reset All Items "),n.k0s(),n.j41(8,"button",71),n.bIt("click",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.zeroOutAllItems())}),n.nrm(9,"i",73),n.EFF(10," Zero Out All Items "),n.k0s()(),n.j41(11,"div",74),n.DNE(12,K4t,2,1,"span",75)(13,Z4t,3,2,"span",76),n.j41(14,"button",77),n.bIt("click",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.submit())}),n.nrm(15,"i",78),n.EFF(16," Save Edits"),n.DNE(17,eNt,2,0,"span",1),n.k0s()()()}if(2&t){const e=n.XpG(2);n.R7$(12),n.Y8G("ngIf",e.validationMessages.length>0),n.R7$(),n.Y8G("ngIf",e.enableSave&&e.isMultiParty),n.R7$(),n.Y8G("disabled",!e.enableSave),n.R7$(3),n.Y8G("ngIf",!e.isMultiTruckReceipt)}}function nNt(t,r){1&t&&(n.j41(0,"div",95),n.EFF(1," Changes Requested: "),n.k0s())}function iNt(t,r){if(1&t&&(n.j41(0,"div")(1,"span",30),n.EFF(2),n.nI1(3,"dayjs"),n.k0s(),n.j41(4,"span",96),n.EFF(5),n.k0s()()),2&t){const e=r.$implicit;n.R7$(2),n.Lme("",e.CreatedBy," on ",n.i5U(3,3,e.Created,"MM/DD/YYYY"),": "),n.R7$(3),n.JRh(e.Comments)}}function rNt(t,r){if(1&t&&(n.j41(0,"div",93),n.DNE(1,nNt,2,0,"div",94)(2,iNt,6,6,"div",12),n.k0s()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngIf",null==e.receiptSummary||null==e.receiptSummary.ChangeRequests?null:e.receiptSummary.ChangeRequests.length),n.R7$(),n.Y8G("ngForOf",null==e.receiptSummary?null:e.receiptSummary.ChangeRequests)}}function oNt(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",97),n.bIt("click",function(){n.eBV(e);const o=n.XpG(3);return n.Njj(o.showChangeRequest=!0)}),n.nrm(1,"i",98),n.EFF(2," Request Change "),n.k0s()}if(2&t){const e=n.XpG(3);n.Y8G("disabled",!e.enableRequestChangeButton)}}function sNt(t,r){if(1&t){const e=n.RV6();n.j41(0,"change-request",99),n.bIt("changeRequested",function(){n.eBV(e);const o=n.XpG(3);return n.Njj(o.onChangeRequested())}),n.k0s()}if(2&t){const e=n.XpG(3);n.Y8G("receiptID",(null==e.receiptSummary?null:e.receiptSummary.ReceiptID)||null)}}function aNt(t,r){if(1&t&&(n.j41(0,"div",87),n.DNE(1,rNt,3,2,"div",88),n.j41(2,"div",89),n.DNE(3,oNt,3,1,"button",90),n.j41(4,"div",91),n.DNE(5,sNt,1,1,"change-request",92),n.k0s()()()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngIf",e.isReadOnly),n.R7$(2),n.Y8G("ngIf",!e.showChangeRequest),n.R7$(2),n.Y8G("ngIf",e.showChangeRequest)}}function lNt(t,r){if(1&t&&(n.j41(0,"div",104)(1,"span",30),n.EFF(2,"Comments: "),n.k0s(),n.j41(3,"span",96),n.EFF(4),n.k0s()()),2&t){const e=n.XpG(3);n.R7$(4),n.JRh(null==e.receiptSummary?null:e.receiptSummary.Comments)}}function cNt(t,r){if(1&t&&(n.j41(0,"div",100)(1,"div",101)(2,"div"),n.nrm(3,"receipt-status-tracker",102),n.DNE(4,lNt,5,1,"div",103),n.k0s()()()),2&t){const e=n.XpG(2);n.R7$(3),n.Y8G("receiptSummary",e.receiptSummary),n.R7$(),n.Y8G("ngIf",null==e.receiptSummary?null:e.receiptSummary.Comments)}}function uNt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",105)(1,"textarea",106),n.mxI("ngModelChange",function(o){n.eBV(e);const s=n.XpG(2);return n.DH7(s.receiptBundle.ReceiptCreation.Comments,o)||(s.receiptBundle.ReceiptCreation.Comments=o),n.Njj(o)}),n.k0s()()}if(2&t){const e=n.XpG(2);n.R7$(),n.Y8G("disabled",e.isReadOnly),n.R50("ngModel",e.receiptBundle.ReceiptCreation.Comments)}}function dNt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div")(1,"adjustment-header",5),n.bIt("toggleShowPallets",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.toggleShowPallets())}),n.k0s(),n.DNE(2,k4t,2,1,"ng-container",1)(3,X4t,2,1,"ng-container",1)(4,tNt,18,4,"div",6)(5,aNt,6,3,"div",7)(6,cNt,5,2,"div",8)(7,uNt,2,2,"div",9),n.k0s()}if(2&t){const e=n.XpG();n.R7$(),n.Y8G("receiptBundle",e.receiptBundle)("receiptSummary",e.receiptSummary)("isReadOnly",e.isReadOnly)("manageOfferUrl",e.manageOfferUrl)("showPallets",e.showPallets),n.R7$(),n.Y8G("ngIf",e.receiptSummary&&e.receiptSummary.IsReceiptComplete),n.R7$(),n.Y8G("ngIf",e.receiptSummary&&!e.receiptSummary.IsReceiptComplete),n.R7$(),n.Y8G("ngIf",!e.isReadOnly),n.R7$(),n.Y8G("ngIf",e.isReadOnly),n.R7$(),n.Y8G("ngIf",e.isReadOnly),n.R7$(),n.Y8G("ngIf",e.receiptBundle&&e.receiptBundle.ReceiptCreation&&!e.isReadOnly&&e.showComments)}}let pNt=(()=>{class t{constructor(){this.legacyNavigationService=(0,n.WQX)(wc),this.marketplaceService=(0,n.WQX)(Yu),this.produceItemService=(0,n.WQX)(Che),this.produceReceiptsService=(0,n.WQX)(QX),this.unitOfMeasureService=(0,n.WQX)(a3t),this.isMarketplace=n.hFB.required(),this.receiptBundle=null,this.isMultiTruckReceipt=!1,this.isProducePurchasingEnabled=!1,this.onSubmit=new n.bkB,this.isReadOnly=!1,this.editZeroedReceiptConfirmModalIsOpen=!1,this.enableSave=!1,this.produceItems=[],this.manageOfferUrl="",this.receiptSummary=null,this.showComments=!1,this.showPallets=!1,this.unitsOfMeasure=[],this.validationMessages=[],this.zeroAllItemsDialogIsOpen=!1,this.showChangeRequest=!1,this.enableRequestChangeButton=!1,this.loadingReceiptSummary=!0,this.taxonomy=(0,n.vPA)([]),this.taxonomyTree=(0,n.vPA)([]),this.netSuiteItems=(0,n.vPA)([]),this.isMultiParty=!1,this.isMultiPartyComplete=!1,this.marketplaceTaxonomyItemCache=new Map}ngOnInit(){this.loadSupportingData();let e=this.isMarketplace()?"app.marketplace-orders.existing-orders.details":"app.produce-order.existing-orders.details";this.manageOfferUrl=this.legacyNavigationService.getUrl(e,{id:this.receiptBundle?.ReceiptFoundation?.OrderID}),this.receiptBundle?.ReceiptCreation?.Comments&&(this.showComments=!0),this.populateDestinationAndOriginDescriptions(),this.validateItems(),this.marketplaceService.getTaxonomy().subscribe({next:i=>{this.taxonomy.set(i)}}),this.marketplaceService.getTaxonomyTree().subscribe({next:i=>{this.taxonomyTree.set(i)}})}ngOnChanges(e){e.isProducePurchasingEnabled&&(this.isProducePurchasingEnabled=e.isProducePurchasingEnabled.currentValue)}calculateDifferenceFromOrdered(){this.receiptSummary&&this.receiptSummary.Origins?.forEach(e=>{e.Destinations?.forEach(i=>{i.TotalPalletDifferenceFromOrdered=0,i.TotalWeightDifferenceFromOrdered=0,i.TotalQuantityDifferenceFromOrdered=0,i.TotalPallets=0,i.TotalWeightPounds=0,i.TotalQuantity=0;const o=i.Items?.some(s=>null===s.Pallets)||!1;i.Items?.forEach(s=>{s.PalletDifferenceFromOrdered=(s.Pallets||0)-(s.OriginalPallets||0),s.WeightDifferenceFromOrdered=(s.WeightPounds||0)-s.OriginalWeightPounds,s.QuantityDifferenceFromOrdered=(s.Quantity||0)-s.OriginalQuantity,i.TotalPallets=(i.TotalPallets||0)+(s.Pallets||0),i.TotalWeightPounds=(i.TotalWeightPounds||0)+(s.WeightPounds||0),i.TotalQuantity=(i.TotalQuantity||0)+(s.Quantity||0),i.TotalPalletDifferenceFromOrdered=(i.TotalPalletDifferenceFromOrdered||0)+(s.PalletDifferenceFromOrdered||0),i.TotalWeightDifferenceFromOrdered=(i.TotalWeightDifferenceFromOrdered||0)+(s.WeightDifferenceFromOrdered||0),i.TotalQuantityDifferenceFromOrdered=(i.TotalQuantityDifferenceFromOrdered||0)+(s.QuantityDifferenceFromOrdered||0)}),o&&(i.TotalPalletDifferenceFromOrdered=null,i.TotalPallets=null)})})}populateDestinationAndOriginDescriptions(){this.receiptBundle&&this.receiptBundle.ReceiptCreation.Origins.forEach(e=>{e.Destinations.forEach(i=>{const o=this.receiptBundle?.ReceiptFoundation?.Origins.find(a=>a.OriginEntityID==e.OriginEntityID)?.Name,s=this.receiptBundle?.ReceiptFoundation?.Origins.find(a=>a.OriginEntityID==e.OriginEntityID)?.Destinations.find(a=>a.DestinationEntityID==i.DestinationEntityID);i.ToAndFromDescription=`From ${o} to ${s?.Name}`,i.Name=s?.Name??"",i.ToAddress=`${s?.Address.AddressLine1} ${s?.Address.AddressLine2||""} ${s?.Address.City}, ${s?.Address.Province} ${s?.Address.PostalCode}`})})}populateSummaryDestinationAndOriginDescriptions(){this.receiptSummary&&this.receiptSummary.Origins?.forEach(e=>{e.Destinations?.forEach(i=>{i.ToAndFromDescription=`From ${e.Name} to ${i.Name}`,i.ToAddress=`${i?.Address?.AddressLine1} ${i?.Address?.AddressLine2||""} ${i?.Address?.City}, ${i?.Address?.Province} ${i?.Address?.PostalCode}`})})}loadReceiptSummary(){return this.produceReceiptsService.getReceiptSummary(this.receiptBundle.ReceiptFoundation.OrderTruckID).finally(()=>{this.loadingReceiptSummary=!1})}loadSupportingData(){if(!this.receiptBundle)return;const e=this.produceItemService.getAllProduceItems(!0),i=this.unitOfMeasureService.getAllUnitsOfMeasure(),o=this.loadReceiptSummary();Promise.all([e,i,o]).then(s=>{this.produceItems=s[0],this.unitsOfMeasure=s[1],this.receiptSummary=s[2],this.receiptSummary&&this.receiptSummary.Receipted&&this.receiptSummary.IsReceiptComplete?(this.isReadOnly=!0,this.showPallets=!0,this.enableRequestChangeButton=!0,this.calculateDifferenceFromOrdered(),this.populateSummaryDestinationAndOriginDescriptions()):(this.isReadOnly=!1,this.receiptBundle?.ReceiptCreation.Origins.forEach(a=>{a.Destinations.forEach(l=>{l.Items.forEach(c=>{c.DeliveredQuantityUnitType&&(c.AddedUnitOfMeasure=this.unitsOfMeasure.find(d=>d.Text===c.DeliveredQuantityUnitType))})})}),this.receiptBundle?.ReceiptCreation.Origins.forEach((a,l)=>{const c=this.receiptBundle?.ReceiptFoundation.Origins[l];a.Destinations.forEach((d,f)=>{const v=c?.Destinations[f];d.Items.forEach((w,x)=>{const I=v?.Items[x];w.ProduceTransactionTypeCode=I?.ProduceTransactionTypeCode})})}))})}resetAllItems(e=!0){this.receiptBundle&&(this.receiptBundle.ReceiptCreation.Origins.forEach(i=>{i.Destinations.filter(o=>o.IsEditable).forEach(o=>{e&&(o.Items=o.Items.filter(s=>!s.AddedDuringReceipting)),o.Items.forEach(s=>{s.DeliveredQuantity=null,s.DeliveredQuantityUnitType=null,s.DeliveredPallets=void 0,s.DeliveredWeightPounds=null,s.AddedProduceItem=null,s.AddedUnitOfMeasure=null})})}),this.validateItems())}zeroOutItem(e){e.DeliveredQuantity=0,e.DeliveredPallets=0,e.DeliveredWeightPounds=0,this.validateItems()}zeroOutAllItems(){this.zeroAllItemsDialogIsOpen=!0}onChangeRequested(){this.showChangeRequest=!1,this.loadReceiptSummary().then(e=>{this.receiptSummary=e})}onZeroOutItemsConfirmed(e){this.receiptBundle?.ReceiptCreation&&(this.receiptBundle.ReceiptCreation.Origins.forEach(i=>{i.Destinations.filter(o=>o.IsEditable).forEach(o=>{o.Items.forEach(s=>{this.zeroOutItem(s)})})}),this.receiptBundle.ReceiptCreation.Comments=e,this.showComments=!0,this.zeroAllItemsDialogIsOpen=!1)}setOrdered(e){e.DeliveredQuantity=e.Quantity,e.DeliveredQuantityUnitType=e.QuantityUnitType,e.AddedUnitOfMeasure=this.unitsOfMeasure.find(i=>i.Text===e.QuantityUnitType),e.DeliveredPallets=e.Pallets,e.DeliveredWeightPounds=e.WeightPounds,this.validateItems()}toggleShowPallets(){this.showPallets=!this.showPallets,this.validateItems()}submit(){this.receiptBundle&&(this.receiptBundle.ReceiptCreation.Origins.forEach(e=>{e.Destinations.forEach(i=>{i.Items.forEach(o=>{this.showPallets||(o.DeliveredPallets=void 0),o.AddedDuringReceipting||(o.DeliveredQuantityUnitType=o.QuantityUnitType),o.IsCreatedAsOrdered=o.Quantity===o.DeliveredQuantity&&o.QuantityUnitType===o.DeliveredQuantityUnitType&&(!this.showPallets||o.Pallets===o.DeliveredPallets)&&o.WeightPounds===o.DeliveredWeightPounds})})}),this.onSubmit.emit(this.receiptBundle.ReceiptCreation))}addItemToDestination(e){e.Items.push({ProduceItemTypeID:0,Description:"",Quantity:0,QuantityUnitType:"",Pallets:0,WeightPounds:0,IsCreatedAsOrdered:!1,OrderTruckSalesOrderHistoryItemID:null,ItemTypeName:"",DeliveredQuantity:null,DeliveredQuantityUnitType:void 0,DeliveredPallets:void 0,DeliveredWeightPounds:null,AddedDuringReceipting:!0,ProduceTransactionTypeCode:null,ProduceReceiptLineItemID:null}),this.validateItems()}removeItem(e,i){e.Items=e.Items.filter(o=>o!==i)}addedItemSelected(e,i){if(i){let o=this.produceItems.find(s=>s.Code===i.defaultNetSuiteItemId);e.ProduceItemTypeID=o.ID,e.AddedProduceItem=o,e.ItemTypeName=i.displayName,this.netSuiteItems.set([...i.netSuiteItems])}else this.netSuiteItems.set([]);this.validateItems()}setNetSuiteItem(e,i){if(i){let o=this.produceItems.find(s=>s.Code===i.itemId);o&&(e.ProduceItemTypeID=o.ID)}}getMarketplaceTaxonomyItem(e){if(0===e.ProduceItemTypeID)return null;if(this.marketplaceTaxonomyItemCache.has(e.ProduceItemTypeID))return this.marketplaceTaxonomyItemCache.get(e.ProduceItemTypeID);let i=this.produceItems.find(s=>s.ID===e.ProduceItemTypeID);if(!i)return null;let o=this.taxonomy().find(s=>s.defaultNetSuiteItemId===i.Code);return o&&this.marketplaceTaxonomyItemCache.set(e.ProduceItemTypeID,o),o??null}unitOfMeasureChanged(e,i){e.DeliveredQuantityUnitType=i?.Text,this.validateItems()}validateItems(){this.validationMessages=[],this.isMultiParty=!1;var e=!0;this.receiptBundle?.ReceiptCreation.Origins.forEach(i=>{i.Destinations.forEach(o=>{let s=o.IsRequiredToSubmit;var a=!1;o.Items.forEach(l=>{const c=null!=l.DeliveredQuantity&&l.DeliveredQuantity>=0,d=null!=l.DeliveredPallets&&l.DeliveredPallets>=0,f=null!=l.DeliveredWeightPounds&&l.DeliveredWeightPounds>=0,v=l.ItemTypeName||"any added items";l.AddedDuringReceipting&&!l.AddedProduceItem&&s&&this.validationMessages.push("Please supply an item type for any added items."),s&&!l.Description&&this.validationMessages.push(`Please supply a description for ${v}`),c||(a=!0,s&&this.validationMessages.push(`Please supply quantity for ${v}`)),s&&l.AddedDuringReceipting&&!l.DeliveredQuantityUnitType&&this.validationMessages.push(`Please supply a unit of measure for ${v}`),s&&this.showPallets&&!d&&this.validationMessages.push(`Please supply pallets for ${v}`),f||(a=!0,s&&this.validationMessages.push(`Please supply a weight for ${v}`)),s||(this.isMultiParty=!0,a&&(e=!1))})})}),this.isMultiPartyComplete=e,this.enableSave=0===this.validationMessages.length}addComments(){this.showComments=!0}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["receipt-adjustments"]],inputs:{isMarketplace:[1,"isMarketplace"],receiptBundle:"receiptBundle",isMultiTruckReceipt:"isMultiTruckReceipt",isProducePurchasingEnabled:"isProducePurchasingEnabled"},outputs:{onSubmit:"onSubmit"},standalone:!1,features:[n.OA$],decls:5,vars:3,consts:[["produceItemsTemplate",""],[4,"ngIf"],[3,"zeroOutConfirmed","isOpen"],[1,"dropdown-text"],[3,"innerHtml","title"],[3,"toggleShowPallets","receiptBundle","receiptSummary","isReadOnly","manageOfferUrl","showPallets"],["class","tw-mt-8 tw-justify-between tw-px-2 md:tw-flex",4,"ngIf"],["class","tw-flex tw-flex-col tw-justify-between tw-gap-2 md:tw-flex-row",4,"ngIf"],["class","tw-mt-4 tw-w-full tw-flex-col md:tw-flex-row",4,"ngIf"],["class","tw-mt-8 tw-h-40 tw-w-1/2",4,"ngIf"],["class","tw-mt-8 tw-bg-white",4,"ngFor","ngForOf"],[1,"tw-mt-8","tw-bg-white"],[4,"ngFor","ngForOf"],[1,"tw-sm:px-6","tw-lg:px-8","tw-bg-white","tw-px-4"],[1,"tw-mt-8","tw-flex","tw-flex-col"],["class","tw-mb-2 tw-text-center tw-italic",4,"ngIf"],[1,"tw-sm:-mx-6","tw-lg:-mx-8","tw--mx-4","tw--my-2","tw-overflow-x-auto"],[1,"tw-flex","tw-bg-white","tw-font-semibold","md:tw-justify-end"],[1,"tw-flex","tw-bg-white","md:tw-justify-end"],[1,"tw-md:px-6","tw-lg:px-8","tw-inline-block","tw-min-w-full","tw-bg-white","tw-py-2","tw-align-middle"],[1,"tw-md:rounded-lg","tw-shadow","tw-ring-1","tw-ring-black","tw-ring-opacity-5"],[1,"tw-min-w-full","tw-divide-y","tw-divide-gray-300"],[1,"tw-bg-produce-500","tw-uppercase","tw-text-white"],[1,"tw-divide-x","tw-divide-gray-200"],["scope","col",1,"grid-header"],["scope","col","class","grid-header",4,"ngIf"],[1,"tw-flex","tw-flex-col","tw-items-center"],[1,"tw-divide-y","tw-divide-gray-200","tw-bg-white"],["class","tw-divide-x tw-divide-gray-200",4,"ngFor","ngForOf"],[1,"tw-h-10","tw-bg-gray-300","tw-text-center"],[1,"tw-font-bold"],[1,"tw-mb-2","tw-text-center","tw-italic"],[1,"grid-body-cell","tw-font-medium"],[3,"summaryItem"],[1,"grid-body-cell"],["class","grid-body-cell",4,"ngIf"],[3,"summaryItem","unitsOfMeasure"],["title","Contains Purchase items",4,"ngIf"],["title","Contains Donated items",4,"ngIf"],["title","Contains Purchase items"],["title","Contains Donated items"],["class","tw-mt-8",4,"ngFor","ngForOf"],[1,"tw-mt-8"],["class","tw-text-center tw-italic",4,"ngIf"],[1,"tw-mt-2","tw-flex","tw-justify-end","tw-font-semibold"],[1,"tw-flex","tw-justify-end"],[1,"tw-md:px-6","tw-lg:px-8","tw-inline-block","tw-min-w-full","tw-py-2","tw-align-middle"],["class","tw-mb-8 tw-mt-8 tw-flex tw-justify-end tw-bg-gray-100 tw-px-2 tw-py-4",4,"ngIf"],[1,"tw-text-center","tw-italic"],[1,"tw-flex","tw-gap-x-2"],[3,"descriptionChanged","item","disabled"],[3,"unitOfMeasureChanged","item","unitsOfMeasure","disabled"],[3,"weightChanged","item","disabled"],[1,"tw-flex-grow",3,"onItemSelected","taxonomy","taxonomyTree","selectedEntry"],[1,"tw-w-44"],["inputId","netSuiteItems","optionLabel","itemId","appendTo","body",1,"tw-h-10",3,"onChange","options"],["for","netSuiteItems"],[1,"flex","items-center","gap-2"],[1,"tw-font-semibold"],[1,"tw-text-xs","tw-font-light"],[3,"item","disabled"],[1,"tw-flex","tw-items-center","tw-justify-end","tw-gap-2","tw-px-2"],["type","button",1,"btn","btn-default",3,"click","disabled"],["type","button","class","btn btn-default",3,"disabled","click",4,"ngIf"],["type","button","class","btn btn-danger",3,"disabled","click",4,"ngIf"],["type","button",1,"btn","btn-danger",3,"click","disabled"],[1,"tw-mb-8","tw-mt-8","tw-flex","tw-justify-end","tw-bg-gray-100","tw-px-2","tw-py-4"],["type","button",1,"btn","btn-default","tw-flex","tw-items-center","tw-gap-2",3,"click"],[1,"pi","pi-plus"],[1,"tw-mt-8","tw-justify-between","tw-px-2","md:tw-flex"],[1,"tw-gap-4","md:tw-flex"],["type","button",1,"btn","btn-primary","action-button","tw-mb-2","tw-w-full","tw-items-center","tw-gap-2","md:tw-flex",3,"click"],[1,"pi","pi-undo"],[1,"pi","pi-exclamation-circle"],[1,"tw-items-center","tw-gap-4","md:tw-flex"],["class","tw-italic tw-text-gray-500",4,"ngIf"],["style","min-width: 250px","class","tw-block tw-italic sm:tw-text-center md:tw-text-right",4,"ngIf"],[1,"btn","btn-primary","tw-w-full","tw-items-center","tw-gap-2","md:tw-flex",3,"click","disabled"],[1,"pi","pi-save"],[1,"tw-italic","tw-text-gray-500"],[1,"tw-block","tw-italic","sm:tw-text-center","md:tw-text-right",2,"min-width","250px"],["class","tw-opacity-90",4,"ngIf"],[1,"fa","fa-users"],["pTooltip","You are currently providing a portion of a multi-party receipt. This receipt will only be complete and transmitted when all parties have provided receipt information.",1,"align-middle","tw-inline-block","tw-h-8","tw-w-8","tw-text-gray-700"],[1,"tw-opacity-90"],[1,"fa","fa-check"],["pTooltip","You are providing all remaining required parts of a multi-party receipt. This receipt will be complete and transmitted immediately after submission.",1,"align-middle","tw-inline-block","tw-h-8","tw-w-8","tw-text-gray-700"],[1,"tw-flex","tw-flex-col","tw-justify-between","tw-gap-2","md:tw-flex-row"],["class","tw-flex tw-flex-col tw-align-top",4,"ngIf"],[1,"tw-mt-4"],["class","btn btn-primary tw-w-full md:tw-w-[160px]",3,"disabled","click",4,"ngIf"],[1,""],[3,"receiptID","changeRequested",4,"ngIf"],[1,"tw-flex","tw-flex-col","tw-align-top"],["class","tw-mt-2 tw-text-lg tw-font-bold",4,"ngIf"],[1,"tw-mt-2","tw-text-lg","tw-font-bold"],[1,"tw-italic"],[1,"btn","btn-primary","tw-w-full","md:tw-w-[160px]",3,"click","disabled"],[1,"pi","pi-comment","tw-mr-1","tw-text-sm","tw-font-bold"],[3,"changeRequested","receiptID"],[1,"tw-mt-4","tw-w-full","tw-flex-col","md:tw-flex-row"],[1,"tw-flex","md:tw-w-2/5"],[3,"receiptSummary"],["class","tw-mt-2",4,"ngIf"],[1,"tw-mt-2"],[1,"tw-mt-8","tw-h-40","tw-w-1/2"],["type","text",1,"tw-h-full","tw-w-full",3,"ngModelChange","disabled","ngModel"]],template:function(i,o){if(1&i){const s=n.RV6();n.DNE(0,h4t,3,5,"ng-template",null,0,n.C5r)(2,f4t,1,0,"loading-skeleton",1)(3,dNt,8,11,"div",1),n.j41(4,"zero-out-confirm-modal",2),n.bIt("zeroOutConfirmed",function(l){return n.eBV(s),n.Njj(o.onZeroOutItemsConfirmed(l))}),n.k0s()}2&i&&(n.R7$(2),n.Y8G("ngIf",o.loadingReceiptSummary),n.R7$(),n.Y8G("ngIf",!o.loadingReceiptSummary),n.R7$(),n.Y8G("isOpen",o.zeroAllItemsDialogIsOpen))},dependencies:[oo,fi,om,Cc,_o,ko,Vq,ff,SI,ou,u3t,The,d3t,w3t,R3t,H3t,U3t,X3t,e4t,d4t,as,Zd,JX,p4t],styles:['.grid-header[_ngcontent-%COMP%]{padding:1rem 1.5rem;text-align:center;font-size:.75rem;line-height:1rem;font-weight:400}.grid-body-cell[_ngcontent-%COMP%]{white-space:nowrap;padding:1rem;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.quantity-change-container[_ngcontent-%COMP%]{margin:.5rem;display:flex;align-items:center;gap:1rem;border-radius:.25rem;border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1));padding:.5rem 1rem}.quantity-change-container-warning[_ngcontent-%COMP%]{margin:.5rem;display:flex;align-items:center;gap:1rem;border-radius:.25rem;border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(253 186 116 / var(--tw-border-opacity, 1));padding:.5rem 1rem}.quantity-change-divider[_ngcontent-%COMP%]{display:block;height:2rem;width:1px;--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1));content:" "}.quantity-change-input[_ngcontent-%COMP%]{width:5rem;border-radius:.25rem;border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1));padding:.5rem;text-align:right}.description-input[_ngcontent-%COMP%]{width:100%;border-radius:.25rem;border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1));padding:.5rem}']})}}return t})();const hNt=t=>({"tw-text-orange-500":t}),fNt=(t,r)=>({"tw-underline tw-underline-offset-8":t,"tw-cursor-default":r}),mNt=t=>({"tw-text-orange-500 tw-underline tw-underline-offset-8":t});function gNt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",3)(1,"div",4)(2,"span",5),n.nrm(3,"i",6),n.EFF(4),n.nI1(5,"number"),n.k0s()(),n.j41(6,"button",7),n.bIt("click",function(){const o=n.eBV(e).$implicit,s=n.XpG();return n.Njj(s.selectReceiptBundle(o))}),n.EFF(7),n.k0s()()}if(2&t){const e=r.$implicit,i=n.XpG();n.Y8G("ngClass",n.eq3(8,hNt,e.Identifier===i.selectedIdentifier)),n.R7$(2),n.HbH(e.IsReadyToSubmit?"tw-visible tw-opacity-100":"tw-invisible tw-opacity-0"),n.R7$(2),n.SpI(" ",n.bMT(5,6,i.getTotalPounds(e)),"lbs Received "),n.R7$(2),n.Y8G("ngClass",n.l_i(10,fNt,e.Identifier===i.selectedIdentifier,1===i.receiptBundles.length)),n.R7$(),n.SpI(" ",e.Identifier," ")}}function vNt(t,r){if(1&t&&(n.j41(0,"span",8),n.EFF(1," Review & Submit "),n.k0s()),2&t){const e=n.XpG();n.Y8G("ngClass",n.eq3(1,mNt,!e.selectedIdentifier))}}let _Nt=(()=>{class t{constructor(e){this.produceModelsMapperService=e,this.receiptBundles=[],this.selectedIdentifier="",this.onSelection=new n.bkB}ngOnInit(){}getTotalPounds(e){return this.produceModelsMapperService.getReceiptCreationTotalPounds(e.ReceiptCreation)}selectReceiptBundle(e){this.onSelection.emit(e)}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(D6))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["receipt-header"]],inputs:{receiptBundles:"receiptBundles",selectedIdentifier:"selectedIdentifier"},outputs:{onSelection:"onSelection"},standalone:!1,decls:3,vars:2,consts:[[1,"tw-flex-col","md:tw-flex-row","tw-flex","tw-gap-4","tw-items-center","md:tw-items-end"],["class","tw-flex tw-flex-col",3,"ngClass",4,"ngFor","ngForOf"],["class","tw-text-xl",3,"ngClass",4,"ngIf"],[1,"tw-flex","tw-flex-col",3,"ngClass"],[1,"tw-h-4","md:tw-h-8"],[1,"tw-transition-opacity","tw-duration-500"],[1,"pi","pi-check"],["type","button",1,"md:tw-text-xl","btn-reset",3,"click","ngClass"],[1,"tw-text-xl",3,"ngClass"]],template:function(i,o){1&i&&(n.j41(0,"div",0),n.DNE(1,gNt,8,13,"div",1)(2,vNt,2,3,"span",2),n.k0s()),2&i&&(n.R7$(),n.Y8G("ngForOf",o.receiptBundles),n.R7$(),n.Y8G("ngIf",o.receiptBundles.length>1))},dependencies:[bi,oo,fi,as],encapsulation:2})}}return t})();function yNt(t,r){1&t&&(n.j41(0,"div"),n.nrm(1,"loading",5),n.k0s())}function bNt(t,r){if(1&t){const e=n.RV6();n.j41(0,"receipt-header",6),n.bIt("onSelection",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.selectReceiptBundle(o))}),n.k0s()}if(2&t){const e=n.XpG();n.Y8G("receiptBundles",e.receiptBundles)("selectedIdentifier",null==e.selectedReceiptBundle?null:e.selectedReceiptBundle.Identifier)}}function CNt(t,r){if(1&t){const e=n.RV6();n.j41(0,"receipt-submission-failure-modal",13),n.bIt("onClosed",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.dismissError())}),n.k0s()}if(2&t){const e=n.XpG(2);n.Y8G("receiptBundle",e.selectedReceiptBundle)("isMarketplace",e.isMarketplace)}}function wNt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",7)(1,"div",8)(2,"receipt-summary",9),n.bIt("onSubmit",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onSelectedReceiptBundleSubmit(o.selectedReceiptBundle))})("onAdjust",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onSelectedReceiptBundleAdjustmentRequired(o.selectedReceiptBundle))}),n.k0s(),n.j41(3,"div",10),n.nrm(4,"donation-summary",11),n.k0s()(),n.DNE(5,CNt,1,2,"receipt-submission-failure-modal",12),n.k0s()}if(2&t){const e=n.XpG();n.R7$(2),n.Y8G("receiptBundle",e.selectedReceiptBundle)("isMultiTruckReceipt",e.receiptBundles.length>1)("submitting","Submitting"===e.currentState)("isMarketplace",e.isMarketplace),n.R7$(2),n.Y8G("receiptFoundation",e.selectedReceiptBundle.ReceiptFoundation)("isProducePurchasingEnabled",e.isProducePurchasingEnabled),n.R7$(),n.Y8G("ngIf","SubmissionFailed"===e.currentState)}}function TNt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",14)(1,"receipt-adjustments",15),n.bIt("onSubmit",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onSelectedReceiptAdjusted(o))}),n.k0s()()}if(2&t){const e=n.XpG();n.R7$(),n.Y8G("receiptBundle",e.selectedReceiptBundle)("isMultiTruckReceipt",e.receiptBundles.length>1)("isProducePurchasingEnabled",e.isProducePurchasingEnabled)("isMarketplace",e.isMarketplace)}}function SNt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",14)(1,"receipt-review",16),n.bIt("onEditReceipt",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.onAdjustReceipt(o))})("onSubmit",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onReviewSubmit())})("onReloadRequested",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.reloadReceiptBundle(o))}),n.k0s()()}if(2&t){const e=n.XpG();n.R7$(),n.Y8G("receiptBundles",e.receiptBundles)("submitting","Submitting"===e.currentState)("isMarketplace",e.isMarketplace)}}let xNt=(()=>{class t{constructor(e,i,o){this.cdr=e,this.produceReceiptingStateService=i,this.legacyNavigationService=o,this.truckIds=[],this.identifier="",this.state=void 0,this.isProducePurchasingEnabled=!1,this.isMarketplace=!1,this.onComplete=new n.bkB,this.interpreter=null,this.selectedReceiptBundle=null,this.receiptBundles=[],this.currentState=null,this.currentStateSubscription=null,this.baseRoute=""}ngOnInit(){if(this.baseRoute=this.isMarketplace?"app.marketplace-orders":"app.produce-order",this.interpreter=JSON.stringify(this.produceReceiptingStateService.truckIds)!==JSON.stringify(this.truckIds)?this.produceReceiptingStateService.init(this.truckIds,this.identifier):this.produceReceiptingStateService.interpreter,this.state)switch(this.state){case"adjust":this.produceReceiptingStateService.adjustReceipt(this.identifier);break;case"review":this.produceReceiptingStateService.reviewReceipts()}else this.identifier&&this.produceReceiptingStateService.viewReceipt(this.identifier);this.interpreter&&(this.currentState=this.interpreter.getSnapshot().value,this.selectedReceiptBundle=this.interpreter.getSnapshot().context.selectedReceiptBundle,this.receiptBundles=this.interpreter.getSnapshot().context.receiptBundles,this.currentStateSubscription=this.produceReceiptingStateService.state$.subscribe(e=>{console.log(`State: ${e}`),this.onStateChange(e)}))}ngAfterViewInit(){const e=document.querySelector("receipt-navigator");e&&e.addEventListener("isProducePurchasingEnabledChange",i=>{this.isProducePurchasingEnabled=i.detail,this.cdr.detectChanges()})}ngOnDestroy(){this.unsubscribeFromStateChanges()}unsubscribeFromStateChanges(){this.currentStateSubscription&&this.currentStateSubscription.unsubscribe()}onStateChange(e){if(this.currentState=e,this.interpreter){let i=this.interpreter.getSnapshot().context;this.selectedReceiptBundle=i.selectedReceiptBundle,this.receiptBundles=i.receiptBundles,this.currentState===xa.SubmissionSuccessful&&this.receiptBundles.length&&(this.produceReceiptingStateService.reset(),1===this.receiptBundles.length?this.legacyNavigationService.navigate(`${this.baseRoute}.existing-orders.details`,{id:this.receiptBundles[0].ReceiptFoundation.OrderID}):this.legacyNavigationService.navigate(`${this.baseRoute}.existing-orders.manage`))}else this.selectedReceiptBundle=null,this.receiptBundles=[];switch(e){case xa.ViewingSummary:this.viewReceiptOverview(this.selectedReceiptBundle);break;case xa.Reviewing:this.reviewReceipts()}}setDeliveredEqualToOrdered(e){e.ReceiptCreation.Origins.forEach(i=>{i.Destinations.filter(o=>o.IsEditable).forEach(o=>{o.Items.forEach(s=>{s.DeliveredPallets=s.Pallets,s.DeliveredQuantity=s.Quantity??0,s.DeliveredQuantityUnitType=s.QuantityUnitType??"",s.DeliveredWeightPounds=s.WeightPounds??0})})})}setAllItemsToCreatedAsOrdered(e){e.ReceiptCreation.Origins.forEach(i=>{i.Destinations.forEach(o=>{o.Items.forEach(s=>{s.IsCreatedAsOrdered=!0})})})}onSelectedReceiptBundleSubmit(e){this.setDeliveredEqualToOrdered(e),this.setAllItemsToCreatedAsOrdered(e),this.interpreter?.send(Wu.OnCorrect,{data:e})}onSelectedReceiptBundleAdjustmentRequired(e){this.adjustReceipt(e)}onSelectedReceiptAdjusted(e){this.interpreter?.send(Wu.OnAdjustmentsComplete)}onAdjustReceipt(e){this.adjustReceipt(e)}onReviewSubmit(){this.interpreter?.send(Wu.OnCorrect)}selectReceiptBundle(e){this.interpreter?.getSnapshot().context.selectedReceiptBundle?.Identifier!==e.Identifier&&this.viewReceiptOverview(e)}viewReceiptOverview(e){e?.Identifier&&this.navigate({truckIds:this.truckIds,identifier:e.Identifier,state:void 0})}adjustReceipt(e){this.navigate({truckIds:this.truckIds,identifier:e.Identifier,state:"adjust"})}reviewReceipts(){this.navigate({truckIds:this.truckIds,identifier:void 0,state:"review"})}reloadReceiptBundle(e){this.interpreter?.send(Wu.OnReloadBundles)}dismissError(){this.selectedReceiptBundle?.ReceiptCreationResult?.FailedBecauseOfConcurrencyIssue?this.reloadReceiptBundle(this.selectedReceiptBundle):1===this.receiptBundles.length?this.legacyNavigationService.navigate(`${this.baseRoute}.existing-orders.details`,{id:this.receiptBundles[0].ReceiptFoundation.OrderID}):this.interpreter?.send(Wu.OnFailureDismissed)}navigate(e){this.legacyNavigationService.navigate(`${this.baseRoute}.receipting`,{truckIds:e.truckIds,identifier:e.identifier,state:e.state},{notify:!0})}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(n.gRc),n.rXU(pLt),n.rXU(wc))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["receipt-navigator"]],inputs:{truckIds:"truckIds",identifier:"identifier",state:"state",isProducePurchasingEnabled:"isProducePurchasingEnabled",isMarketplace:"isMarketplace"},outputs:{onComplete:"onComplete"},standalone:!1,decls:6,vars:5,consts:[[1,"tw-bg-white","tw-px-4","tw-py-3","md:tw-py-6"],[4,"ngIf"],[3,"receiptBundles","selectedIdentifier","onSelection",4,"ngIf"],["class","tw-container tw-mt-2 md:tw-mt-8",4,"ngIf"],["class","tw-mt-10",4,"ngIf"],["message","Loading..."],[3,"onSelection","receiptBundles","selectedIdentifier"],[1,"tw-container","tw-mt-2","md:tw-mt-8"],[1,"tw-flex","tw-flex-col","tw-gap-8","lg:tw-flex-row"],[1,"tw-mt-2","tw-block","md:tw-mt-8","lg:tw-w-1/2",3,"onSubmit","onAdjust","receiptBundle","isMultiTruckReceipt","submitting","isMarketplace"],[1,"tw-border-2","tw-border-solid","tw-border-gray-300","tw-bg-white","tw-p-1","md:tw-p-8","lg:tw-w-1/2"],[3,"receiptFoundation","isProducePurchasingEnabled"],[3,"receiptBundle","isMarketplace","onClosed",4,"ngIf"],[3,"onClosed","receiptBundle","isMarketplace"],[1,"tw-mt-10"],[3,"onSubmit","receiptBundle","isMultiTruckReceipt","isProducePurchasingEnabled","isMarketplace"],[3,"onEditReceipt","onSubmit","onReloadRequested","receiptBundles","submitting","isMarketplace"]],template:function(i,o){1&i&&(n.j41(0,"div",0),n.DNE(1,yNt,2,0,"div",1)(2,bNt,1,2,"receipt-header",2)(3,wNt,6,7,"div",3)(4,TNt,2,4,"div",4)(5,SNt,2,3,"div",4),n.k0s()),2&i&&(n.R7$(),n.Y8G("ngIf","LoadingBundles"===o.currentState),n.R7$(),n.Y8G("ngIf",o.receiptBundles.length),n.R7$(),n.Y8G("ngIf",o.selectedReceiptBundle&&("ViewingSummary"===o.currentState||"Submitting"===o.currentState||"AnalyzingSubmissionResult"===o.currentState||"SubmissionFailed"===o.currentState||"SubmissionSuccessful"===o.currentState)),n.R7$(),n.Y8G("ngIf",o.selectedReceiptBundle&&"MakingAdjustments"===o.currentState),n.R7$(),n.Y8G("ngIf",o.receiptBundles&&o.receiptBundles.length>1&&("Reviewing"===o.currentState||"Submitting"===o.currentState||"SubmissionFailed"===o.currentState||"SubmissionSuccessful"===o.currentState)))},dependencies:[fi,Yy,RLt,$Lt,s3t,pNt,_Nt,xhe],encapsulation:2})}}return t})();function ENt(t,r){1&t&&(n.j41(0,"div"),n.EFF(1,"Not all parties have entered receipt data."),n.k0s())}let DNt=(()=>{class t{constructor(e){this.legacyNavigationService=e,this.truckId=null,this.identifier=null,this.create=!1,this.edit=!1,this.warning=null,this.isMarketplace=!1,this.createOrEditVerb="Create"}ngOnInit(){this.edit&&(this.createOrEditVerb="Edit")}startNavigate(){this.legacyNavigationService.navigate(this.isMarketplace?"app.marketplace-orders.receipting":"app.produce-order.receipting",{truckIds:[this.truckId],state:this.create&&!this.edit?null:"adjust",identifier:this.identifier})}onTap(){null!=this.warning?confirm(this.warning)&&this.startNavigate():this.startNavigate()}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(wc))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["receipt-button"]],inputs:{truckId:"truckId",identifier:"identifier",create:"create",edit:"edit",warning:"warning",isMarketplace:"isMarketplace"},standalone:!1,decls:4,vars:2,consts:[[4,"ngIf"],[1,"btn","btn-primary",3,"click"],[1,"fa","fa-receipt"]],template:function(i,o){1&i&&(n.DNE(0,ENt,2,0,"div",0),n.j41(1,"button",1),n.bIt("click",function(){return o.onTap()}),n.nrm(2,"i",2),n.EFF(3),n.k0s()),2&i&&(n.Y8G("ngIf",o.edit),n.R7$(3),n.SpI(" ",o.create?o.createOrEditVerb:"View"," Receipt\n"))},dependencies:[fi],encapsulation:2})}}return t})();function kNt(t,r){if(1&t&&(n.j41(0,"div",2)(1,"div",3)(2,"div"),n.nrm(3,"i",4),n.k0s(),n.j41(4,"div",5)(5,"div"),n.EFF(6),n.nI1(7,"dayjs"),n.k0s(),n.j41(8,"div"),n.nrm(9,"receipt-button",6),n.k0s()()()()),2&t){const e=n.XpG();n.R7$(6),n.SpI(" Receipt Due ",n.i5U(7,7,e.truckReceiptStatus.LastAllowableReceiptTime,"MMMM Do, h:mmA")," "),n.R7$(3),n.Y8G("truckId",e.truckReceiptStatus.TruckID)("identifier",e.truckReceiptStatus.Identifier)("create",!0)("warning",e.truckReceiptStatus.PickupWarningText)("edit",e.truckReceiptStatus.ReceiptExists)("isMarketplace",e.isMarketplace)}}function INt(t,r){if(1&t&&(n.j41(0,"div"),n.EFF(1),n.nI1(2,"date"),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.SpI(" Created ",n.bMT(2,1,e.truckReceiptStatus.ReceiptCreatedOn)," ")}}function ANt(t,r){if(1&t&&(n.j41(0,"div"),n.EFF(1),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.SpI(" By ",e.truckReceiptStatus.ReceiptCreatedBy," ")}}function MNt(t,r){if(1&t&&(n.j41(0,"div"),n.EFF(1),n.nI1(2,"number"),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.SpI(" ",n.bMT(2,1,e.truckReceiptStatus.PoundsReceived)," Pounds Receipted ")}}function RNt(t,r){1&t&&(n.j41(0,"div",12),n.EFF(1," Zero Pounds Receipted "),n.k0s())}function ONt(t,r){if(1&t&&(n.j41(0,"div"),n.nrm(1,"receipt-button",13),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("truckId",e.truckReceiptStatus.TruckID)("identifier",e.truckReceiptStatus.Identifier)("create",!1)}}function FNt(t,r){if(1&t&&(n.j41(0,"div",7)(1,"div",8)(2,"div"),n.nrm(3,"i",4),n.k0s(),n.j41(4,"div",9),n.DNE(5,INt,3,3,"div",10)(6,ANt,2,1,"div",10)(7,MNt,3,3,"div",10)(8,RNt,2,0,"div",11)(9,ONt,2,3,"div",10),n.k0s()()()),2&t){const e=n.XpG();n.R7$(5),n.Y8G("ngIf",!e.truckReceiptStatus.ReceiptExistenceInferred),n.R7$(),n.Y8G("ngIf",!e.truckReceiptStatus.ReceiptExistenceInferred),n.R7$(),n.Y8G("ngIf",0!=e.truckReceiptStatus.PoundsReceived),n.R7$(),n.Y8G("ngIf",0==e.truckReceiptStatus.PoundsReceived),n.R7$(),n.Y8G("ngIf",!e.truckReceiptStatus.ReceiptExistenceInferred)}}let PNt=(()=>{class t{constructor(){this.truckReceiptStatus={},this.dueDate=null,this.isMarketplace=!1,this.isReceipted=!1}ngOnInit(){this.isReceipted=!0}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["receipt-status-panel"]],inputs:{truckReceiptStatus:"truckReceiptStatus",dueDate:"dueDate",isMarketplace:"isMarketplace"},standalone:!1,decls:2,vars:2,consts:[["class","tw-border-surface-800/25 tw-rounded tw-border-2 tw-p-10",4,"ngIf"],["class","tw-rounded tw-border-2 tw-border-slate-800/25 tw-p-10",4,"ngIf"],[1,"tw-border-surface-800/25","tw-rounded","tw-border-2","tw-p-10"],[1,"tw-flex","tw-flex-row","tw-gap-3"],[1,"fa","fa-calendar","fa-2x"],[1,"tw-flex-col","tw-gap-3"],[3,"truckId","identifier","create","warning","edit","isMarketplace"],[1,"tw-rounded","tw-border-2","tw-border-slate-800/25","tw-p-10"],[1,"tw-flex","tw-flex-row","tw-gap-5"],[1,"tw-flex-col","tw-space-y-2"],[4,"ngIf"],["class","tw-mt-1.5 tw-font-bold",4,"ngIf"],[1,"tw-mt-1.5","tw-font-bold"],[3,"truckId","identifier","create"]],template:function(i,o){1&i&&n.DNE(0,kNt,10,10,"div",0)(1,FNt,10,5,"div",1),2&i&&(n.Y8G("ngIf",o.truckReceiptStatus.CanCreateReceipt),n.R7$(),n.Y8G("ngIf",o.truckReceiptStatus.ReceiptExists&&o.truckReceiptStatus.IsReceiptComplete))},dependencies:[fi,DNt,as,ti,JX],encapsulation:2})}}return t})();const LNt=["dropdown"],NNt=()=>({"max-width":"100%"});function GNt(t,r){if(1&t&&(n.j41(0,"div")(1,"span",5),n.EFF(2),n.k0s()()),2&t){const e=r.$implicit;n.R7$(2),n.JRh(e.label)}}function BNt(t,r){if(1&t&&(n.j41(0,"span",7),n.EFF(1),n.k0s()),2&t){const e=n.XpG().$implicit;n.Y8G("title",e.FormattedText),n.R7$(),n.JRh(e.FormattedText)}}function VNt(t,r){1&t&&n.DNE(0,BNt,2,2,"span",6),2&t&&n.Y8G("ngIf",r.$implicit)}function jNt(t,r){if(1&t&&(n.nrm(0,"span",8),n.nI1(1,"highlight")),2&t){const e=r.$implicit;n.Y8G("innerHtml",n.i5U(1,2,e.label,r.searchText),n.npT)("title",e.label)}}let HNt=(()=>{class t extends T2{constructor(){super(),this.dropdown=null,this.warehouses=[],this.selectedWarehouseEntityId="",this.warehouseSelected=new n.bkB,this.placeholder="Select a warehouse",this.newWarehouseValue="newwarehouse",this.addNewWarehouse={ID:0,EntityId:0,Address:{City:"",CountryCode:"",State:""},FormattedText:"Add New Warehouse",WarehouseName:this.newWarehouseValue},this.groupedWarehouses=[]}ngOnChanges(e){"-1"===e.selectedWarehouse?.currentValue&&this.setDropdownToSelectedWarehouse(null),e.selectedWarehouseEntityId?.currentValue&&this.setDropdownToEntityId(e.selectedWarehouseEntityId.currentValue)}ngOnInit(){this.groupedWarehouses=[{label:this.placeholder,value:"",items:this.warehouses.map(e=>({label:e.FormattedText,value:e}))},{label:"---------- Actions ----------",value:this.newWarehouseValue,items:[{label:"Add New Warehouse",value:this.addNewWarehouse}]}],this.selectedWarehouseEntityId&&this.setDropdownToEntityId(this.selectedWarehouseEntityId)}setDropdownToEntityId(e){let i=this.warehouses.find(o=>o.EntityId.toString()===e);this.setDropdownToSelectedWarehouse(i||null)}setDropdownToSelectedWarehouse(e){setTimeout(()=>{this.dropdown?.setSelectedItem(e)})}onWarehouseSelected(e){e?e.EntityId?this.warehouseSelected.emit(e.EntityId.toString()):e.WarehouseName!==this.newWarehouseValue||this.warehouseSelected.emit(this.newWarehouseValue):this.warehouseSelected.emit(null)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["warehouse-selection"]],viewQuery:function(i,o){if(1&i&&n.GBs(LNt,5),2&i){let s;n.mGM(s=n.lsd())&&(o.dropdown=s.first)}},inputs:{warehouses:"warehouses",selectedWarehouseEntityId:"selectedWarehouseEntityId"},outputs:{warehouseSelected:"warehouseSelected"},standalone:!1,features:[n.Vt3,n.OA$],decls:8,vars:7,consts:[["dropdown",""],["groupTemplate",""],["selectedItemTemplate",""],["itemTemplate",""],["filterMatchMode","containsAny","filterFields","label","placeholder","Select a warehouse","styleClass","","scrollHeight","300px","panelStyleClass","warehouse-selection-panel",3,"itemSelected","options","itemTemplate","selectedItemTemplate","group","groupTemplate","panelStyle"],[2,"font-size","12px"],["style","font-size: 14px; margin-top: 2px",3,"title",4,"ngIf"],[2,"font-size","14px","margin-top","2px",3,"title"],[1,"tw-truncate",2,"font-size","12px",3,"innerHtml","title"]],template:function(i,o){if(1&i){const s=n.RV6();n.j41(0,"dropdown",4,0),n.bIt("itemSelected",function(l){return n.eBV(s),n.Njj(o.onWarehouseSelected(l))}),n.k0s(),n.DNE(2,GNt,3,1,"ng-template",null,1,n.C5r)(4,VNt,1,1,"ng-template",null,2,n.C5r)(6,jNt,2,5,"ng-template",null,3,n.C5r)}if(2&i){const s=n.sdS(3),a=n.sdS(5),l=n.sdS(7);n.Y8G("options",o.groupedWarehouses)("itemTemplate",l)("selectedItemTemplate",a)("group",!0)("groupTemplate",s)("panelStyle",n.lJ4(6,NNt))}},dependencies:[fi,Uu,Zd],encapsulation:2})}}return t})(),UNt=(()=>{class t{constructor(){this.allergens=[],this.preselected=[],this.onAllergensChanged=new n.bkB,this.selectedAllergens=[]}ngOnInit(){this.preselected?.length&&(this.selectedAllergens=this.preselected)}onChange(){this.onAllergensChanged.emit(this.selectedAllergens)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-allergens-selection"]],inputs:{allergens:"allergens",preselected:"preselected"},outputs:{onAllergensChanged:"onAllergensChanged"},standalone:!1,decls:1,vars:2,consts:[["defaultLabel","Select Allergens","id","selectedAllergens","optionLabel","Name","display","chip",3,"ngModelChange","onChange","ngModel","options"]],template:function(i,o){1&i&&(n.j41(0,"p-multiSelect",0),n.mxI("ngModelChange",function(a){return n.DH7(o.selectedAllergens,a)||(o.selectedAllergens=a),a}),n.bIt("onChange",function(){return o.onChange()}),n.k0s()),2&i&&(n.R50("ngModel",o.selectedAllergens),n.Y8G("options",o.allergens))},dependencies:[_o,ko,Hb],styles:["#selectedAllergens[_ngcontent-%COMP%]{display:block;width:100%}#selectedAllergens[_ngcontent-%COMP%]   p-multiselect[_ngcontent-%COMP%]{display:block;width:100%}"]})}}return t})(),khe=(()=>{class t{constructor(e){this.http=e}getAllDrivers(){return Yo(this.http.get("/api/agencies/current/drivers"))}createDriver(e){return Yo(this.http.post("/api/agencies/current/drivers",e))}static{this.\u0275fac=function(i){return new(i||t)(n.KVO(Da))}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function $Nt(t,r){1&t&&(n.j41(0,"small",17),n.EFF(1,"Name is required."),n.k0s())}function YNt(t,r){1&t&&(n.j41(0,"small",18),n.EFF(1,"Phone Number is required."),n.k0s())}function WNt(t,r){if(1&t&&(n.j41(0,"div",19)(1,"div",20)(2,"div",21)(3,"span",22),n.EFF(4),n.k0s()()()()),2&t){const e=n.XpG();n.R7$(4),n.SpI(" ",e.errorMessage," ")}}let Ihe=(()=>{class t{constructor(e,i){this.fb=e,this.driverTrackingService=i,this.onDriverCreated=new n.bkB,this.onCancel=new n.bkB,this.errorMessage="",this.submitting=!1}submit(){this.model.invalid||(this.errorMessage="",this.submitting=!0,this.driverTrackingService.createDriver({Name:this.driverName?.value,PhoneNumber:this.phoneNumber?.value}).then(e=>{this.onDriverCreated.emit(e)}).catch(e=>{this.errorMessage=e?.error?.Message??"An unexpected error occurred creating the driver."}).finally(()=>{this.submitting=!1}))}cancel(){this.onCancel.emit()}ngOnInit(){this.model=this.fb.group({driverName:["",[Ls.required]],phoneNumber:["",[Ls.required,Ls.pattern("\\([0-9]{3}\\) [0-9]{3}-[0-9]{4}")]]})}get driverName(){return this.model.get("driverName")}get phoneNumber(){return this.model.get("phoneNumber")}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(u8),n.rXU(khe))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["driver-form"]],outputs:{onDriverCreated:"onDriverCreated",onCancel:"onCancel"},standalone:!1,decls:28,vars:6,consts:[["driverForm","ngForm"],["novalidate","","autocomplete","off",3,"ngSubmit","formGroup"],[1,"row"],[1,"col-md-6"],[1,"form-group"],["for","driverName"],[1,"text-danger"],["formControlName","driverName","pInputText","","type","text","id","driverName","name","driverName","aria-errormessage","driverName-error",1,"form-control"],["id","driverName-error","class","text-danger",4,"ngIf"],["for","phoneNumber"],["formControlName","phoneNumber","mask","(999) 999-9999","type","tel","id","phoneNumber","name","phoneNumber","styleClass","form-control","aria-errormessage","phoneNumber-error"],["id","phoneNumber-error","class","text-danger",4,"ngIf"],[1,"col-lg-6"],[1,"display-flex"],["type","submit",1,"btn","btn-primary","display-flex","items-center",3,"disabled"],["type","button",1,"ml-5","btn","btn-default",3,"click"],["class","mt-10 row",4,"ngIf"],["id","driverName-error",1,"text-danger"],["id","phoneNumber-error",1,"text-danger"],[1,"mt-10","row"],[1,"col-lg-12"],[1,"alert","alert-danger"],[1,"text-normal"]],template:function(i,o){if(1&i){const s=n.RV6();n.j41(0,"form",1,0),n.bIt("ngSubmit",function(){return n.eBV(s),n.Njj(o.submit())}),n.j41(2,"div",2)(3,"div",3)(4,"div",4)(5,"label",5),n.EFF(6,"Name "),n.j41(7,"span",6),n.EFF(8,"*"),n.k0s()(),n.nrm(9,"input",7),n.DNE(10,$Nt,2,0,"small",8),n.k0s()(),n.j41(11,"div",3)(12,"div",4)(13,"label",9),n.EFF(14,"Phone Number "),n.j41(15,"span",6),n.EFF(16,"*"),n.k0s()(),n.nrm(17,"p-inputMask",10),n.DNE(18,YNt,2,0,"small",11),n.k0s()()(),n.j41(19,"div",2)(20,"div",12)(21,"div",13)(22,"button",14)(23,"span"),n.EFF(24),n.k0s()(),n.j41(25,"button",15),n.bIt("click",function(){return n.eBV(s),n.Njj(o.cancel())}),n.EFF(26," Cancel "),n.k0s()()()(),n.DNE(27,WNt,5,1,"div",16),n.k0s()}if(2&i){const s=n.sdS(1);n.Y8G("formGroup",o.model),n.R7$(10),n.Y8G("ngIf",(null==o.driverName?null:o.driverName.dirty)&&(null==o.driverName||null==o.driverName.errors?null:o.driverName.errors.required)),n.R7$(8),n.Y8G("ngIf",(null==o.phoneNumber?null:o.phoneNumber.dirty)&&(null==o.phoneNumber||null==o.phoneNumber.errors?null:o.phoneNumber.errors.required)),n.R7$(4),n.Y8G("disabled",!s.form.valid||o.submitting),n.R7$(2),n.JRh(o.submitting?"Creating Driver...":"Create Driver"),n.R7$(3),n.Y8G("ngIf",o.errorMessage)}},dependencies:[fi,wv,Cc,_o,Rm,I8,hf,Tv,Eb],encapsulation:2})}}return t})(),zNt=(()=>{class t{constructor(){this.style=""}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["icon-eye"]],inputs:{style:"style"},standalone:!1,decls:3,vars:2,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 20 20","fill","currentColor"],["d","M10 12a2 2 0 100-4 2 2 0 000 4z"],["fill-rule","evenodd","d","M.458 10C1.732 5.943 5.522 3 10 3s8.268 2.943 9.542 7c-1.274 4.057-5.064 7-9.542 7S1.732 14.057.458 10zM14 10a4 4 0 11-8 0 4 4 0 018 0z","clip-rule","evenodd"]],template:function(i,o){1&i&&(n.qSk(),n.j41(0,"svg",0),n.nrm(1,"path",1)(2,"path",2),n.k0s()),2&i&&n.Aen(o.style)},encapsulation:2})}}return t})(),qNt=(()=>{class t{constructor(){this.style=""}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["icon-eye-closed"]],inputs:{style:"style"},standalone:!1,decls:3,vars:2,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 20 20","fill","currentColor"],["fill-rule","evenodd","d","M3.707 2.293a1 1 0 00-1.414 1.414l14 14a1 1 0 001.414-1.414l-1.473-1.473A10.014 10.014 0 0019.542 10C18.268 5.943 14.478 3 10 3a9.958 9.958 0 00-4.512 1.074l-1.78-1.781zm4.261 4.26l1.514 1.515a2.003 2.003 0 012.45 2.45l1.514 1.514a4 4 0 00-5.478-5.478z","clip-rule","evenodd"],["d","M12.454 16.697L9.75 13.992a4 4 0 01-3.742-3.741L2.335 6.578A9.98 9.98 0 00.458 10c1.274 4.057 5.065 7 9.542 7 .847 0 1.669-.105 2.454-.303z"]],template:function(i,o){1&i&&(n.qSk(),n.j41(0,"svg",0),n.nrm(1,"path",1)(2,"path",2),n.k0s()),2&i&&n.Aen(o.style)},encapsulation:2})}}return t})();const XNt=["dropdown"];function KNt(t,r){1&t&&n.nrm(0,"icon-eye",15)}function QNt(t,r){1&t&&n.nrm(0,"icon-eye-closed",15)}function JNt(t,r){if(1&t){const e=n.RV6();n.j41(0,"dropdown",16,2),n.bIt("itemSelected",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.driverSelected(o))}),n.k0s()}if(2&t){const e=n.XpG(),i=n.sdS(18),o=n.sdS(20);n.Y8G("options",e.driverOptions)("itemTemplate",o)("selectedItemTemplate",i)("loading",e.isLoadingDrivers)("disabled",e.isReadOnly||e.isLoadingDrivers||e.isLoadingDriversError)("placeholder",e.isLoadingDrivers?"Loading Drivers...":"Select Driver")}}function ZNt(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",17)(1,"span",18),n.EFF(2,"There was an error loading drivers."),n.k0s(),n.j41(3,"button",19),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.loadDrivers())}),n.EFF(4," Retry "),n.k0s()()}}function e5t(t,r){1&t&&(n.j41(0,"div",20)(1,"span",18),n.EFF(2," The selected driver was not found. Please choose a new driver. "),n.k0s()())}function t5t(t,r){if(1&t){const e=n.RV6();n.j41(0,"driver-form",21),n.bIt("onCancel",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.cancelAddingDriver())})("onDriverCreated",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.driverAdded(o))}),n.k0s()}}function n5t(t,r){if(1&t&&(n.j41(0,"span",22),n.EFF(1),n.k0s()),2&t){const e=r.$implicit;n.R7$(),n.Lme(" ",null==e?null:e.Name," ",null==e?null:e.Contact.PhoneNumber," ")}}function i5t(t,r){if(1&t&&(n.j41(0,"span",23),n.EFF(1),n.k0s()),2&t){const e=r.$implicit;n.R7$(),n.Lme(" ",null==e?null:e.Name," ",null==e?null:e.Contact.PhoneNumber," ")}}var Ea=function(t){return t.NoTracking="NoTracking",t.Tracking="Tracking",t.LoadingDrivers="LoadingDrivers",t.LoadingDriversFailed="LoadingDriversFailed",t.SelectingDriver="SelectingDriver",t.AddingDriver="AddingDriver",t.DriverSelected="DriverSelected",t.DriverSelectedNotFound="DriverSelectedNotFound",t.StaticDriverAssigned="StaticDriverAssigned",t}(Ea||{}),Pp=function(t){return t.OnToggleTracking="OnToggleTracking",t.OnAssignDriver="OnAssignDriver",t.OnAssignStaticDriver="OnAssignStaticDriver",t.OnDriverSelected="OnDriverSelected",t.OnDriverRetry="OnDriverRetry",t.OnAddingDriverCancelled="OnAddingDriverCancelled",t.OnAddingDriverComplete="OnAddingDriverComplete",t}(Pp||{});let r5t=(()=>{class t{constructor(e){this.driverSelection=null,this.assignedDriver=null,this.readOnly=!1,this.trackingEnabled=!1,this.onDriverSelected=new n.bkB,this.onEditingChanged=new n.bkB,this.onTrackingChanged=new n.bkB,this.driverOptions=[{ID:0,Name:"Create New Driver...",Contact:{ID:0,Name:"Create New Driver...",PhoneNumber:"",EMailAddress:""}}];const i=(0,yI.k)({title:"",description:"",drivers:[],selectedDriver:null,error:null}),o=i.assign({title:()=>"No Driver Tracking",description:()=>"Product is picked up and delivered without tracking"}),s=i.assign({title:()=>"Use Driver Tracking",description:()=>"Ask a driver to mark pick-up and drop-off items"}),a=i.assign((v,w)=>{const x=w.data;return this.onDriverSelected.emit(x),{selectedDriver:x}}),l=v=>{setTimeout(()=>{if(v.selectedDriver){let w=v.drivers.find(x=>x.ID===v.selectedDriver?.ID)||null;this.driverSelection?.setSelectedItem(w)}else this.driverSelection?.setSelectedItem(null)},0)},c=function(){var v=(0,lr.A)(function*(){return yield e.getAllDrivers()});return function(){return v.apply(this,arguments)}}(),d=v=>{this.driverOptions=[...v.drivers.sort((w,x)=>w.Name.localeCompare(x.Name)),{ID:0,Name:"Create New Driver...",Contact:{ID:0,Name:"Create New Driver...",PhoneNumber:"",EMailAddress:""}}]},f=_I({id:"DriverTracking",predictableActionArguments:!0,initial:Ea.NoTracking,context:i.initialContext,states:{[Ea.NoTracking]:{entry:[o,v=>v.selectedDriver=null,()=>this.onEditingChanged.emit(!1),()=>this.onTrackingChanged.emit(!1)],on:{[Pp.OnToggleTracking]:{target:Ea.Tracking},[Pp.OnAssignDriver]:{target:`${Ea.Tracking}.${Ea.LoadingDrivers}`,actions:[a]},[Pp.OnAssignStaticDriver]:{target:`${Ea.Tracking}.${Ea.StaticDriverAssigned}`,actions:[i.assign({drivers:(v,w)=>[w.data]}),d,a,l,v=>{setTimeout(()=>{this.driverSelection&&(this.driverSelection.disabled=!0)})}]}}},[Ea.Tracking]:{entry:[s,()=>this.onEditingChanged.emit(!0),()=>this.onTrackingChanged.emit(!0)],initial:Ea.LoadingDrivers,on:{[Pp.OnToggleTracking]:{target:[Ea.NoTracking]}},states:{[Ea.LoadingDrivers]:{entry:i.assign({error:null}),invoke:{src:c,onDone:{target:Ea.SelectingDriver,actions:[s,i.assign({drivers:(v,w)=>w.data}),d]},onError:{target:Ea.LoadingDriversFailed}}},[Ea.LoadingDriversFailed]:{entry:i.assign({error:"Failed to load drivers"}),on:{[Pp.OnDriverRetry]:{target:Ea.LoadingDrivers}}},[Ea.SelectingDriver]:{entry:()=>this.onEditingChanged.emit(!0),always:[{target:Ea.DriverSelected,cond:v=>!!v.selectedDriver}],on:{[Pp.OnDriverSelected]:[{target:Ea.DriverSelected,actions:[a,()=>this.onEditingChanged.emit(!1)],cond:(v,w)=>0!==w.data.ID},{target:Ea.AddingDriver,cond:(v,w)=>0===w.data.ID}]}},[Ea.DriverSelected]:{always:[{target:Ea.SelectingDriver,cond:(v,w)=>!v.selectedDriver},{target:Ea.DriverSelectedNotFound,cond:v=>!!v.selectedDriver&&-1===v.drivers.findIndex(w=>w.ID===v.selectedDriver?.ID)}],entry:[l,()=>this.onEditingChanged.emit(!1)],on:{[Pp.OnDriverSelected]:[{target:Ea.DriverSelected,actions:a,cond:(v,w)=>0!==w.data?.ID},{target:Ea.AddingDriver,cond:(v,w)=>0===w.data?.ID},{target:Ea.SelectingDriver,actions:a,cond:(v,w)=>!w.data}]}},[Ea.DriverSelectedNotFound]:{entry:()=>this.onEditingChanged.emit(!0),on:{[Pp.OnDriverSelected]:{target:Ea.DriverSelected,actions:a}}},[Ea.AddingDriver]:{entry:()=>this.onEditingChanged.emit(!0),on:{[Pp.OnAddingDriverCancelled]:{target:Ea.SelectingDriver},[Pp.OnAddingDriverComplete]:{target:Ea.DriverSelected,actions:[a,i.assign({drivers:(v,w)=>[...v.drivers,w.data]}),d]}}},[Ea.StaticDriverAssigned]:{entry:()=>this.onEditingChanged.emit(!1),type:"final"}}}}});this.driverTrackingStateService=x2(f).start()}get selectingDriver(){return this.state.matches(`${Ea.Tracking}.${Ea.SelectingDriver}`)}get isReadOnly(){return this.readOnly}get isDriverTrackingEnabled(){return this.state.matches(Ea.Tracking)}get isAddingDriver(){return this.state.matches(`${Ea.Tracking}.${Ea.AddingDriver}`)}get isDriverSelected(){return this.state.matches(`${Ea.Tracking}.${Ea.DriverSelected}`)}get isSelectedDriverNotFound(){return this.state.matches(`${Ea.Tracking}.${Ea.DriverSelectedNotFound}`)}get isLoadingDrivers(){return this.state.matches(`${Ea.Tracking}.${Ea.LoadingDrivers}`)}get isLoadingDriversError(){return this.state.matches(`${Ea.Tracking}.${Ea.LoadingDriversFailed}`)}get title(){return this.state.context.title}get description(){return this.state.context.description}get selectedDriver(){return this.state.context.selectedDriver}get state(){return this.driverTrackingStateService.getSnapshot()}toggleDriverTracking(){this.driverTrackingStateService.send(Pp.OnToggleTracking)}loadDrivers(){this.driverTrackingStateService.send(Pp.OnDriverRetry)}onDriverIdSelected(e){const i=e.target.value,o=this.driverOptions.find(s=>s.ID==i)||null;this.driverSelected(o)}driverSelected(e){this.driverTrackingStateService.send(Pp.OnDriverSelected,{data:e})}driverAdded(e){this.driverTrackingStateService.send(Pp.OnAddingDriverComplete,{data:e})}cancelAddingDriver(){this.driverTrackingStateService.send(Pp.OnAddingDriverCancelled)}ngOnInit(){this.assignedDriver?this.driverTrackingStateService.send(this.readOnly?Pp.OnAssignStaticDriver:Pp.OnAssignDriver,{data:this.assignedDriver}):this.trackingEnabled&&this.driverTrackingStateService.send(Pp.OnToggleTracking)}ngOnDestroy(){this.driverTrackingStateService.stop()}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(khe))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["driver-tracking"]],viewQuery:function(i,o){if(1&i&&n.GBs(XNt,5),2&i){let s;n.mGM(s=n.lsd())&&(o.driverSelection=s.first)}},inputs:{assignedDriver:"assignedDriver",readOnly:"readOnly",trackingEnabled:"trackingEnabled"},outputs:{onDriverSelected:"onDriverSelected",onEditingChanged:"onEditingChanged",onTrackingChanged:"onTrackingChanged"},standalone:!1,decls:21,vars:10,consts:[["selectedDriverTemplate",""],["driverOptionsTemplate",""],["dropdown",""],[1,"display-flex","justify-between","items-center"],[1,"left-icon-container"],["style","width: 32px; height: 32px",4,"ngIf"],[1,"pl-15","pr-15","flex-grow"],[1,"primary-status-title"],[1,"sub-status"],[1,"action-toggle-button","btn","btn-default",3,"click","disabled","title"],[1,"mcw-repeat"],["filterFields","Name","styleClass","relative","class","mt-10 display-block",3,"options","itemTemplate","selectedItemTemplate","loading","disabled","placeholder","itemSelected",4,"ngIf"],["class","mt-10 alert alert-danger display-flex justify-between items-center",4,"ngIf"],["class","mt-10 alert alert-danger",4,"ngIf"],[3,"onCancel","onDriverCreated",4,"ngIf"],[2,"width","32px","height","32px"],["filterFields","Name","styleClass","relative",1,"mt-10","display-block",3,"itemSelected","options","itemTemplate","selectedItemTemplate","loading","disabled","placeholder"],[1,"mt-10","alert","alert-danger","display-flex","justify-between","items-center"],[1,"text-normal"],["type","button",1,"btn","btn-default","btn-sm",3,"click"],[1,"mt-10","alert","alert-danger"],[3,"onCancel","onDriverCreated"],[2,"font-size","16px"],[2,"font-size","14px"]],template:function(i,o){if(1&i){const s=n.RV6();n.j41(0,"div")(1,"div",3)(2,"div",4),n.DNE(3,KNt,1,0,"icon-eye",5)(4,QNt,1,0,"icon-eye-closed",5),n.k0s(),n.j41(5,"div",6)(6,"div",7),n.EFF(7),n.k0s(),n.j41(8,"div",8),n.EFF(9),n.k0s()(),n.j41(10,"div")(11,"button",9),n.bIt("click",function(){return n.eBV(s),n.Njj(o.toggleDriverTracking())}),n.nrm(12,"i",10),n.k0s()()(),n.DNE(13,JNt,2,6,"dropdown",11)(14,ZNt,5,0,"div",12)(15,e5t,3,0,"div",13)(16,t5t,1,0,"driver-form",14)(17,n5t,2,2,"ng-template",null,0,n.C5r)(19,i5t,2,2,"ng-template",null,1,n.C5r),n.k0s()}2&i&&(n.R7$(3),n.Y8G("ngIf",o.isDriverTrackingEnabled),n.R7$(),n.Y8G("ngIf",!o.isDriverTrackingEnabled),n.R7$(3),n.JRh(o.title),n.R7$(2),n.SpI(" ",o.description," "),n.R7$(2),n.Y8G("disabled",o.isReadOnly)("title",o.isDriverTrackingEnabled?"Disable Driver Tracking":"Enable Driver Tracking"),n.R7$(2),n.Y8G("ngIf",o.isDriverTrackingEnabled&&!o.isAddingDriver),n.R7$(),n.Y8G("ngIf",o.isLoadingDriversError),n.R7$(),n.Y8G("ngIf",o.isSelectedDriverNotFound),n.R7$(),n.Y8G("ngIf",o.isAddingDriver))},dependencies:[fi,Uu,zNt,qNt,Ihe],encapsulation:2})}}return t})(),o5t=(()=>{class t{constructor(e){this.httpClient=e,this.preselected=[],this.onIngredientsChanged=new n.bkB,this.loadingIngredients=!1,this.selectedIngredients=[],this.filteredIngredients=[]}ngOnInit(){this.preselected?.length&&(this.selectedIngredients=this.preselected)}filterIngredients(e){var i=this;return(0,lr.A)(function*(){let o=e.query.toLowerCase();i.loadingIngredients=!0,i.filteredIngredients=yield Yo(i.httpClient.get("/api/ingredients?q="+o)).then(s=>(i.loadingIngredients=!1,s))})()}onChange(){this.onIngredientsChanged.emit(this.selectedIngredients)}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(Da))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["ingredients-selection"]],inputs:{preselected:"preselected"},outputs:{onIngredientsChanged:"onIngredientsChanged"},standalone:!1,decls:1,vars:3,consts:[["id","selectedIngredients","placeholder","Search Ingredients","field","Name",1,"display-block","width-full",3,"ngModelChange","completeMethod","ngModel","suggestions","multiple"]],template:function(i,o){1&i&&(n.j41(0,"p-autoComplete",0),n.mxI("ngModelChange",function(a){return n.DH7(o.selectedIngredients,a)||(o.selectedIngredients=a),a}),n.bIt("completeMethod",function(a){return o.filterIngredients(a)})("ngModelChange",function(){return o.onChange()}),n.k0s()),2&i&&(n.R50("ngModel",o.selectedIngredients),n.Y8G("suggestions",o.filteredIngredients)("multiple",!0))},dependencies:[Ib,_o,ko],encapsulation:2})}}return t})(),Ahe=(()=>{class t{constructor(){this.lowerLimit=0,this.upperLimit=24,this.step=.5,this.minimumDuration=1,this.maximumDuration=null,this.threshold=60,this.startTime=8,this.endTime=11,this.timeChanged=new n.bkB,this.selectedTimeRange=[this.startTime,this.endTime],this.warning=null,this.today=!1}get isToday(){return this.today}set isToday(e){this.today=e}ngOnInit(){this.validateTimeSelection(),this.enforceMinMaxDurations()}ngOnChanges(e){(e.lowerLimit||e.upperLimit||e.step||e.startTime||e.endTime||e.minimumDuration||e.maximumDuration||e.threshold||e.isToday)&&(this.validateTimeSelection(),this.enforceMinMaxDurations()),this.adjustStartTimeIfToday(),this.selectedTimeRange=[this.startTime,this.endTime],this.emitTimeChange()}onTimeChange(){const e=this.startTime,i=this.endTime;this.startTime=this.selectedTimeRange[0],this.endTime=this.selectedTimeRange[1];let o=null;this.startTime!==e?o="startTime":this.endTime!==i&&(o="endTime"),this.adjustStartTimeIfToday(),this.validateTimeSelection(),this.enforceMinMaxDurations(o),this.selectedTimeRange=[this.startTime,this.endTime],this.emitTimeChange()}emitTimeChange(){this.timeChanged.emit({start:this.startTime,end:this.endTime,warning:this.warning})}adjustStartTimeIfToday(){if(this.warning=null,this.today){const e=new Date,i=new Date(e.getTime()+60*this.threshold*1e3),o=this.getNextHalfHour(i),s=o.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0}).toLowerCase(),a=this.minimumDuration<=1?"hour":"hours",l=e.getHours()+e.getMinutes()/60,c=l+this.threshold/60,d=o.getHours(),f=o.getMinutes();this.startTime=d+f/60,this.endTime-this.startTime<this.minimumDuration&&(this.endTime=this.startTime+this.minimumDuration),this.startTime<l?this.warning=`The selected start time is earlier than the current time. The start time has been adjusted to the next available slot (${s}). The minimum duration of ${this.minimumDuration} ${a} has been enforced.`:this.startTime<c&&(this.warning=`The selected start time is within a ${this.threshold}-minute threshold. The start time has been adjusted to the next available slot (${s}). The minimum duration of ${this.minimumDuration} ${a} has been enforced.`)}}enforceMinMaxDurations(e=null){this.endTime==this.startTime&&24==this.endTime&&(this.endTime=24,this.startTime=this.startTime-this.minimumDuration),this.startTime==this.endTime&&(this.startTime=this.startTime-this.minimumDuration),this.startTime<0&&(this.startTime=0,this.endTime=this.minimumDuration),this.endTime>24&&(this.endTime=24,this.startTime=this.startTime-this.minimumDuration),this.startTime<this.lowerLimit&&(this.startTime=this.lowerLimit,this.endTime=this.startTime+this.minimumDuration),this.endTime-this.startTime<this.minimumDuration&&("startTime"===e?this.endTime=this.startTime+this.minimumDuration:this.startTime=this.endTime-this.minimumDuration,this.startTime<this.lowerLimit&&(this.startTime=this.lowerLimit,this.endTime=this.startTime+this.minimumDuration),(this.endTime>this.upperLimit||this.startTime>this.upperLimit)&&(this.endTime=this.upperLimit,this.startTime=this.endTime-this.minimumDuration),this.warning=`The difference between the start and end times is less than the required minimum of ${this.minimumDuration} ${this.minimumDuration<=1?"hour":"hours"}. The time has been adjusted.`),null!=this.maximumDuration&&this.endTime-this.startTime>this.maximumDuration&&("endTime"===e?this.startTime=this.endTime-this.maximumDuration:this.endTime=this.startTime+this.maximumDuration,this.warning=`The selected time range exceeds the maximum allowed duration of ${this.maximumDuration} ${this.maximumDuration<=1?"hour":"hours"}. The time has been adjusted.`)}validateTimeSelection(){if(this.startTime>this.endTime){const e=this.startTime;this.startTime=this.endTime,this.endTime=e}}formatTime(e){const i=Math.floor(e);return`${i>12?i-12:0===i?12:i}:${0==e%1*60?"00":"30"} ${i>=12&&i<24?"PM":"AM"}`}getLabelPosition(e){return(e-this.lowerLimit)/(this.upperLimit-this.lowerLimit)*100}getNextHalfHour(e){const i=new Date(e);return i.getMinutes()<=30?i.setMinutes(30):(i.setHours(i.getHours()+1),i.setMinutes(0)),i.setSeconds(0),i.setMilliseconds(0),i}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-time-slider"]],inputs:{lowerLimit:"lowerLimit",upperLimit:"upperLimit",step:"step",minimumDuration:"minimumDuration",maximumDuration:"maximumDuration",threshold:"threshold",startTime:"startTime",endTime:"endTime",isToday:"isToday"},outputs:{timeChanged:"timeChanged"},standalone:!1,features:[n.OA$],decls:7,vars:11,consts:[[1,"time-slider-container"],["styleClass","custom-slider",3,"ngModelChange","onSlideEnd","ngModel","min","max","step","range"],[1,"time-labels"],[1,"time-label"]],template:function(i,o){1&i&&(n.j41(0,"div",0)(1,"p-slider",1),n.mxI("ngModelChange",function(a){return n.DH7(o.selectedTimeRange,a)||(o.selectedTimeRange=a),a}),n.bIt("onSlideEnd",function(){return o.onTimeChange()}),n.k0s(),n.j41(2,"div",2)(3,"span",3),n.EFF(4),n.k0s(),n.j41(5,"span",3),n.EFF(6),n.k0s()()()),2&i&&(n.R7$(),n.R50("ngModel",o.selectedTimeRange),n.Y8G("min",o.lowerLimit)("max",o.upperLimit)("step",o.step)("range",!0),n.R7$(2),n.xc7("left",o.getLabelPosition(o.selectedTimeRange[0]),"%"),n.R7$(),n.SpI(" ",o.formatTime(o.selectedTimeRange[0])," "),n.R7$(),n.xc7("left",o.getLabelPosition(o.selectedTimeRange[1]),"%"),n.R7$(),n.SpI(" ",o.formatTime(o.selectedTimeRange[1])," "))},dependencies:[_o,ko,t7],styles:[".time-slider-container{position:relative;width:95%;padding-top:20px;margin:0 auto}.custom-slider{width:100%}.time-labels{margin-top:20px;display:flex;justify-content:space-between;padding:0 10px}.p-slider .p-slider-handle{background:#34c1ef!important;border-color:#34c1ef!important;outline:solid!important;outline-color:#34c1ef!important}.p-slider-handle:before{background:#0056b3!important;outline:solid!important;outline-color:#34c1ef!important}.p-slider:not(.p-disabled) .p-slider-handle:hover,.p-slider:not(.p-disabled) .p-slider-handle:hover:before,.p-slider:not(.p-disabled) .p-slider-handle:focus,.p-slider:not(.p-disabled) .p-slider-handle:focus:before{background:#0056b3!important;outline:solid!important;outline-color:#34c1ef!important}.p-slider .p-slider-range{background-color:#34c1ef!important}\n"],encapsulation:2})}}return t})(),s5t=(()=>{class t{constructor(){this.label="Select pickup time",this.lowerLimit=0,this.upperLimit=24,this.step=.5,this.minimumDuration=1,this.maximumDuration=null,this.threshold=60,this.startTime=8,this.endTime=11,this.timeChanged=new n.bkB,this.today=!1}get isToday(){return this.today}set isToday(e){this.today=e}onTimeChange(e){this.timeChanged.emit(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-pickup-time-slider"]],inputs:{label:"label",lowerLimit:"lowerLimit",upperLimit:"upperLimit",step:"step",minimumDuration:"minimumDuration",maximumDuration:"maximumDuration",threshold:"threshold",startTime:"startTime",endTime:"endTime",isToday:"isToday"},outputs:{timeChanged:"timeChanged"},standalone:!1,decls:8,vars:9,consts:[[1,"slider-container"],[1,"heading"],[1,"input-group"],[1,"icon-clock"],[1,"slider"],[3,"timeChanged","lowerLimit","upperLimit","step","minimumDuration","threshold","startTime","endTime","isToday"]],template:function(i,o){1&i&&(n.j41(0,"div",0)(1,"div",1)(2,"span",2),n.nrm(3,"i",3),n.k0s(),n.j41(4,"label"),n.EFF(5),n.k0s()(),n.j41(6,"div",4)(7,"app-time-slider",5),n.bIt("timeChanged",function(a){return o.onTimeChange(a)}),n.k0s()()()),2&i&&(n.R7$(5),n.JRh(o.label),n.R7$(2),n.Y8G("lowerLimit",o.lowerLimit)("upperLimit",o.upperLimit)("step",o.step)("minimumDuration",o.minimumDuration)("threshold",o.threshold)("startTime",o.startTime)("endTime",o.endTime)("isToday",o.isToday))},dependencies:[Ahe],styles:[".time-slider-container[_ngcontent-%COMP%]{position:relative;width:95%;padding-top:20px;margin:0 auto}.custom-slider[_ngcontent-%COMP%]{width:100%}.time-labels[_ngcontent-%COMP%]{margin-top:20px;display:flex;justify-content:space-between;padding:0 10px}.p-slider[_ngcontent-%COMP%]   .p-slider-handle[_ngcontent-%COMP%]{background:#34c1ef!important;border-color:#34c1ef!important;outline:solid!important;outline-color:#34c1ef!important}.p-slider-handle[_ngcontent-%COMP%]:before{background:#0056b3!important;outline:solid!important;outline-color:#34c1ef!important}.p-slider[_ngcontent-%COMP%]:not(.p-disabled)   .p-slider-handle[_ngcontent-%COMP%]:hover, .p-slider[_ngcontent-%COMP%]:not(.p-disabled)   .p-slider-handle[_ngcontent-%COMP%]:hover:before, .p-slider[_ngcontent-%COMP%]:not(.p-disabled)   .p-slider-handle[_ngcontent-%COMP%]:focus, .p-slider[_ngcontent-%COMP%]:not(.p-disabled)   .p-slider-handle[_ngcontent-%COMP%]:focus:before{background:#0056b3!important;outline:solid!important;outline-color:#34c1ef!important}.p-slider[_ngcontent-%COMP%]   .p-slider-range[_ngcontent-%COMP%]{background-color:#34c1ef!important}.slider-container[_ngcontent-%COMP%]{position:relative;width:100%;border:#ccc 1px solid;background-color:#fff;border-radius:4px}.slider-container[_ngcontent-%COMP%]   .heading[_ngcontent-%COMP%]{display:flex;gap:15px;align-items:center;color:#555;background-color:#fff;border-bottom:#ccc 1px solid}.slider-container[_ngcontent-%COMP%]   .heading[_ngcontent-%COMP%]   .input-group[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:40px;height:35px;background-color:#eee;border-right:#ccc 1px solid}.slider-container[_ngcontent-%COMP%]   .heading[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{flex:1;margin-bottom:0}.slider-container[_ngcontent-%COMP%]   .slider[_ngcontent-%COMP%]{padding:15px 10px 10px}"]})}}return t})();var R2=function(t){return t[t.Ordinal=0]="Ordinal",t[t.DayOfMonth=1]="DayOfMonth",t}(R2||{});let eK=(()=>{class t{constructor(e,i){this.http=e,this.cacheService=i,this.cacheKey="receipting.lockoutPeriod",this.activeReceiptLockoutPeriodPromise=null}getLockoutConfig(){return this.http.get("/api/foodbank/lockoutConfig")}getLockoutConfigPromise(){return Yo(this.getLockoutConfig())}saveLockoutConfig(e){return this.cacheService.clear(this.cacheKey),this.http.post("/api/foodbanks/current/settings/receiptlockout",e)}getReceiptingLockoutPeriod(){return Yo(this.http.get("/api/pickups/getReceiptingLockoutSummary"))}getReceiptingLockoutPeriodPromise(){return this.activeReceiptLockoutPeriodPromise||(this.activeReceiptLockoutPeriodPromise=this.cacheService.get(this.cacheKey).then(e=>e||this.getReceiptingLockoutPeriod().then(i=>this.cacheService.cache({key:this.cacheKey,value:i,ttl:6e4}).then(()=>i))).finally(()=>{this.activeReceiptLockoutPeriodPromise=null})),this.activeReceiptLockoutPeriodPromise}checkForLockoutViolation(e,i){if(!i||!i.LockoutEnabled||!e)return null;const o=el()().startOf("day");return i.RelevantLockoutPeriods?.find(a=>a.AccountingMonth===e.getMonth()+1&&a.AccountingYear===e.getFullYear()&&el()(a.LockoutDate).startOf("day").isBefore(o))?i.EffectivePickupDate:null}calculateFutureLockoutDates(e,i,o){if(e.RecurrenceType==R2.Ordinal&&(null==e.OrdinalNumber||null==e.WeekdayNumber)||e.RecurrenceType===R2.DayOfMonth&&null===e.DayOfMonth)return null;const s=el()(o).startOf("day"),a=el()(new Date),l=[];for(let c=1;c<=i;c++){const d=s.month(s.month()+c-1).date(1).hour(0).minute(0).second(0);let f;f=e.RecurrenceType==R2.Ordinal?this.getGivenDateOfMonth(d.toDate(),e.WeekdayNumber,e.OrdinalNumber):d.add(e.DayOfMonth-1,"days"),l.push({lockoutDate:f,date:f.toDate(),closeOutDate:f.add(-1,"months"),closed:a.diff(f)>0})}for(let c=0;c<e.ManuallyAddedDates.length;c++){let d=e.ManuallyAddedDates[c],f=el()(d.split(":")[0]),v=el()(d.split(":")[1]),w=l.findIndex(x=>x.closeOutDate.month()+1==f.month()+1&&x.closeOutDate.year()==f.year());-1!==w&&(l[w].lockoutDate=v,l[w].date=v.toDate(),l[w].closed=a.diff(v)>0)}return l}getGivenDateOfMonth(e,i,o){const s=el()(e).startOf("month"),a=s.clone().day(i);return a.month()!=s.month()&&o++,a.add(o-1,"weeks")}static{this.\u0275fac=function(i){return new(i||t)(n.KVO(Da),n.KVO(jb))}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function a5t(t,r){if(1&t&&(n.j41(0,"p"),n.EFF(1),n.k0s()),2&t){const e=n.XpG(3);n.R7$(),n.JRh(e.singleWarningMessage)}}function l5t(t,r){if(1&t&&(n.j41(0,"p"),n.EFF(1),n.k0s()),2&t){const e=n.XpG(3);n.R7$(),n.JRh(e.multipleWarningMessage)}}function c5t(t,r){if(1&t&&(n.j41(0,"div"),n.DNE(1,a5t,2,1,"p",3)(2,l5t,2,1,"p",3),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngIf",!e.multipleReceiptsSubmitted),n.R7$(),n.Y8G("ngIf",e.multipleReceiptsSubmitted)}}function u5t(t,r){if(1&t&&(n.j41(0,"p"),n.EFF(1),n.k0s()),2&t){const e=n.XpG(3);n.R7$(),n.Lme(" Unfortunately this receipt is past due and ",e.foodbankName," has closed reporting for this month. However, this pickup will still be recorded with a pick up date of ",e.formattedEffectivePickupDate,". ")}}function d5t(t,r){if(1&t&&(n.j41(0,"p"),n.EFF(1),n.k0s()),2&t){const e=n.XpG(3);n.R7$(),n.Lme(" Unfortunately at least one submitted receipt is past due and ",e.foodbankName," has closed reporting for this month. However, the pickups for past-due receipts will still be recorded with a pick up date of ",e.formattedEffectivePickupDate,". ")}}function p5t(t,r){if(1&t&&(n.j41(0,"div"),n.DNE(1,u5t,2,2,"p",3)(2,d5t,2,2,"p",3),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.Y8G("ngIf",!e.multipleReceiptsSubmitted),n.R7$(),n.Y8G("ngIf",e.multipleReceiptsSubmitted)}}function h5t(t,r){if(1&t&&(n.j41(0,"p"),n.EFF(1,"Thank you for your submission."),n.k0s(),n.DNE(2,c5t,3,2,"div",3)(3,p5t,3,2,"div",3)),2&t){const e=n.XpG();n.R7$(2),n.Y8G("ngIf",e.useDynamicContent),n.R7$(),n.Y8G("ngIf",!e.useDynamicContent)}}function f5t(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",4),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.isOpen=!1)}),n.EFF(1," Ok "),n.k0s()}}let m5t=(()=>{class t{constructor(e){this.receiptingLockoutService=e,this.isOpen=!1,this.foodbankName="",this.effectivePickupDate=null,this.multipleReceiptsSubmitted=!1,this.modalClosed=new n.bkB,this.singleWarningMessage=null,this.multipleWarningMessage=null,this.useDynamicContent=!1}get formattedEffectivePickupDate(){return this.effectivePickupDate?el()(this.effectivePickupDate).format("MM/DD/YYYY"):""}ngOnInit(){this.receiptingLockoutService.getLockoutConfig().subscribe(e=>{if(!e.Successful)return this.singleWarningMessage=null,void(this.multipleWarningMessage=null);if(!e.Value)return;const i=e.Value;this.singleWarningMessage=i.SingleWarningMessage||null,this.multipleWarningMessage=i.MultipleWarningMessage||null,this.useDynamicContent=null!=this.singleWarningMessage&&null!=this.multipleWarningMessage,this.singleWarningMessage&&this.singleWarningMessage.includes("{foodbank}")&&(this.singleWarningMessage=this.singleWarningMessage.replaceAll("{foodbank}",this.foodbankName)),this.multipleWarningMessage&&this.multipleWarningMessage.includes("{foodbank}")&&(this.multipleWarningMessage=this.multipleWarningMessage.replaceAll("{foodbank}",this.foodbankName)),this.singleWarningMessage&&this.singleWarningMessage.includes("{newpickupdate}")&&(this.singleWarningMessage=this.singleWarningMessage.replaceAll("{newpickupdate}",this.formattedEffectivePickupDate)),this.multipleWarningMessage&&this.multipleWarningMessage.includes("{newpickupdate}")&&(this.multipleWarningMessage=this.multipleWarningMessage.replaceAll("{newpickupdate}",this.formattedEffectivePickupDate))},e=>{this.singleWarningMessage=null,this.multipleWarningMessage=null})}onModalClosed(){this.modalClosed.emit()}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(eK))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-late-receipt-notice-modal"]],inputs:{isOpen:"isOpen",foodbankName:"foodbankName",effectivePickupDate:"effectivePickupDate",multipleReceiptsSubmitted:"multipleReceiptsSubmitted"},outputs:{modalClosed:"modalClosed"},standalone:!1,decls:5,vars:3,consts:[["body",""],["footer",""],["title","Late Receipt",3,"modalClosed","bodyTemplate","footerTemplate","isOpen"],[4,"ngIf"],["label","Ok",1,"btn","btn-primary",3,"click"]],template:function(i,o){if(1&i){const s=n.RV6();n.j41(0,"modal",2),n.bIt("modalClosed",function(){return n.eBV(s),n.Njj(o.onModalClosed())}),n.k0s(),n.DNE(1,h5t,4,2,"ng-template",null,0,n.C5r)(3,f5t,2,0,"ng-template",null,1,n.C5r)}if(2&i){const s=n.sdS(2),a=n.sdS(4);n.Y8G("bodyTemplate",s)("footerTemplate",a)("isOpen",o.isOpen)}},dependencies:[fi,E2],styles:["p[_ngcontent-%COMP%]{font-size:13px}"]})}}return t})();var g5t=b(1047),v5t=b.n(g5t);function _5t(t,r){if(1&t&&(n.j41(0,"div",20)(1,"span"),n.EFF(2),n.k0s()()),2&t){const e=r.$implicit;n.R7$(2),n.JRh(null==e?null:e.name)}}function y5t(t,r){if(1&t&&(n.j41(0,"div",20)(1,"span"),n.EFF(2),n.k0s()()),2&t){const e=r.$implicit;n.R7$(2),n.JRh(e)}}function b5t(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",5)(1,"div",6),n.EFF(2,"Recurrence"),n.k0s(),n.j41(3,"div",3)(4,"div",8)(5,"div",21)(6,"p"),n.EFF(7," Select a recurring day of the month to indicate when the previous month will be closed. You can also customize this further on a month-by-month basis below. "),n.k0s(),n.j41(8,"p"),n.EFF(9,"Close out the previous month on:"),n.k0s()()(),n.j41(10,"div",8)(11,"div",22)(12,"p-radioButton",23),n.mxI("ngModelChange",function(o){n.eBV(e);const s=n.XpG();return n.DH7(s.recurrenceType,o)||(s.recurrenceType=o),n.Njj(o)}),n.k0s(),n.EFF(13,"\xa0Weekday Recurrence "),n.k0s()(),n.j41(14,"div",24)(15,"div",25)(16,"dropdown",26),n.mxI("ngModelChange",function(o){n.eBV(e);const s=n.XpG();return n.DH7(s.selectedOrdinalNumber,o)||(s.selectedOrdinalNumber=o),n.Njj(o)}),n.bIt("itemSelected",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onOrdinalNumberSelected())}),n.k0s()(),n.j41(17,"div",25)(18,"dropdown",27),n.mxI("ngModelChange",function(o){n.eBV(e);const s=n.XpG();return n.DH7(s.selectedWeekDayNumber,o)||(s.selectedWeekDayNumber=o),n.Njj(o)}),n.bIt("itemSelected",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onWeekdaySelected())}),n.k0s()(),n.j41(19,"div",28)(20,"span"),n.EFF(21,"of the current month"),n.k0s()()(),n.j41(22,"div",8)(23,"div",29)(24,"p-radioButton",23),n.mxI("ngModelChange",function(o){n.eBV(e);const s=n.XpG();return n.DH7(s.recurrenceType,o)||(s.recurrenceType=o),n.Njj(o)}),n.k0s(),n.EFF(25,"\xa0Day of the Month Recurrence "),n.k0s()(),n.j41(26,"div",30)(27,"div",31)(28,"div",8)(29,"div",32)(30,"span"),n.EFF(31,"Day"),n.k0s()(),n.j41(32,"div",33)(33,"dropdown",34),n.mxI("ngModelChange",function(o){n.eBV(e);const s=n.XpG();return n.DH7(s.selectedDayOfMonth,o)||(s.selectedDayOfMonth=o),n.Njj(o)}),n.bIt("itemSelected",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onDayOfMonthSelected())}),n.k0s()()()(),n.j41(34,"div",35)(35,"span"),n.EFF(36,"of the current month"),n.k0s()()()()()}if(2&t){const e=n.XpG(),i=n.sdS(1),o=n.sdS(3);n.R7$(12),n.Y8G("value",e.recurrenceTypeEnum.Ordinal),n.R50("ngModel",e.recurrenceType),n.R7$(4),n.Y8G("options",e.ordinalNumbers)("itemTemplate",i)("selectedItemTemplate",i)("showFilter",!1),n.R50("ngModel",e.selectedOrdinalNumber),n.Y8G("disabled",!e.lockoutEnabled||e.recurrenceType===e.recurrenceTypeEnum.DayOfMonth),n.R7$(2),n.Y8G("options",e.weekdays)("itemTemplate",i)("selectedItemTemplate",i)("showFilter",!1),n.R50("ngModel",e.selectedWeekDayNumber),n.Y8G("disabled",!e.lockoutEnabled||e.recurrenceType===e.recurrenceTypeEnum.DayOfMonth),n.R7$(6),n.Y8G("value",e.recurrenceTypeEnum.DayOfMonth),n.R50("ngModel",e.recurrenceType),n.R7$(9),n.Y8G("options",e.dayOfMonth)("itemTemplate",o)("selectedItemTemplate",o)("showFilter",!1),n.R50("ngModel",e.selectedDayOfMonth),n.Y8G("disabled",!e.lockoutEnabled||e.recurrenceType===e.recurrenceTypeEnum.Ordinal)}}function C5t(t,r){1&t&&(n.j41(0,"span"),n.EFF(1,"closed on"),n.k0s())}function w5t(t,r){1&t&&(n.j41(0,"span"),n.EFF(1,"will close on"),n.k0s())}function T5t(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",38)(1,"div",39),n.EFF(2),n.DNE(3,C5t,2,0,"span",40)(4,w5t,2,0,"span",40),n.k0s(),n.j41(5,"div",36)(6,"p-calendar",41),n.bIt("onSelect",function(o){const s=n.eBV(e).$implicit,a=n.XpG(2);return n.Njj(a.onDateChanged(o,s))}),n.mxI("ngModelChange",function(o){const s=n.eBV(e).$implicit;return n.DH7(s.date,o)||(s.date=o),n.Njj(o)}),n.k0s()()()}if(2&t){const e=r.$implicit;n.R7$(2),n.Lme(" ",e.closeOutDate&&e.closeOutDate.format("MMMM")," ",e.closeOutDate&&e.closeOutDate.format("YYYY")," "),n.R7$(),n.Y8G("ngIf",e.closed),n.R7$(),n.Y8G("ngIf",!e.closed),n.R7$(2),n.R50("ngModel",e.date)}}function S5t(t,r){if(1&t&&(n.j41(0,"div",5)(1,"div",6),n.EFF(2,"Next 12 Lockout Dates"),n.k0s(),n.j41(3,"div",3)(4,"div",8)(5,"div",21)(6,"p"),n.EFF(7,"You can adjust individual lockout dates here."),n.k0s()()(),n.j41(8,"div",8)(9,"div",36),n.DNE(10,T5t,7,5,"div",37),n.k0s()()()()),2&t){const e=n.XpG();n.R7$(10),n.Y8G("ngForOf",e.lockoutDates)}}function x5t(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",5)(1,"div",6),n.EFF(2,"Customize Warning Message"),n.k0s(),n.j41(3,"div",3)(4,"div",8)(5,"div",21)(6,"p"),n.EFF(7," Update the warning message to your agencies below. You can use {foodbank} to populate with your name, and {newpickupdate} to add pickup date. "),n.k0s()()(),n.j41(8,"div",8)(9,"div",21)(10,"h4"),n.EFF(11,"Singular Selection Message"),n.k0s(),n.j41(12,"textarea",42),n.mxI("ngModelChange",function(o){n.eBV(e);const s=n.XpG();return n.DH7(s.singleWarningMessage,o)||(s.singleWarningMessage=o),n.Njj(o)}),n.k0s()()(),n.j41(13,"div",8)(14,"div",21)(15,"h4"),n.EFF(16,"Multiple Selection Message"),n.k0s(),n.j41(17,"textarea",42),n.mxI("ngModelChange",function(o){n.eBV(e);const s=n.XpG();return n.DH7(s.multipleWarningMessage,o)||(s.multipleWarningMessage=o),n.Njj(o)}),n.k0s()()()()()}if(2&t){const e=n.XpG();n.R7$(12),n.Y8G("rows",5)("cols",100),n.R50("ngModel",e.singleWarningMessage),n.R7$(5),n.Y8G("rows",5)("cols",100),n.R50("ngModel",e.multipleWarningMessage)}}function E5t(t,r){if(1&t&&(n.j41(0,"div",43)(1,"strong"),n.EFF(2,"Error"),n.k0s(),n.EFF(3),n.k0s()),2&t){const e=n.XpG();n.R7$(3),n.SpI(" ",e.errorMessage," ")}}el().extend(v5t());let k5t=(()=>{class t{constructor(e,i){this.receiptingLockoutService=e,this.toasterService=i,this.savedLockoutSettings=new n.bkB,this.canceledLockoutSettings=new n.bkB,this.weekdays=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"].map((o,s)=>({number:s,name:o})),this.ordinalNumbers=["First","Second","Third","Fourth"].map((o,s)=>({number:s+1,name:o})),this.dayOfMonth=[...Array(28).keys()].map(o=>o+1),this.defaultSingleWarningMessage="Unfortunately this receipt is past due and {foodbank} has closed reporting for this month. However, this pickup will still be recorded with a pick up date of {newpickupdate}.",this.defaultMultipleWarningMessage="Unfortunately at least one submitted receipt is past due and {foodbank} has closed reporting for this month. However, the pickups for past-due receipts will still be recorded with a pick up date of {newpickupdate}.",this.lockoutEnabled=!1,this.recurrenceType=R2.Ordinal,this.manuallyAddedDates=[],this.months=el().months().map((o,s)=>({number:s,name:o})),this.addManualDateError="",this.manuallyAddedDate=null,this.lockoutDates=[],this.selectedOrdinalNumber=null,this.selectedWeekDayNumber=null,this.selectedDayOfMonth=null,this.dayjs=el(),this.now=el()(),this.recurrenceTypeEnum=R2,this.singleWarningMessage=this.defaultSingleWarningMessage,this.multipleWarningMessage=this.defaultMultipleWarningMessage,this.errorMessage=""}ngOnInit(){}ngAfterViewInit(){this.receiptingLockoutService.getLockoutConfig().subscribe(e=>{if(!e.Successful)return void this.toasterService.displayErrorToast("Error Loading Lockout Configuration",e.FailureReason);if(!e.Value)return;const i=e.Value;this.lockoutEnabled=i.LockoutEnabled,this.recurrenceType=i.RecurrenceType,this.selectedDayOfMonth=i.DayOfMonth,this.manuallyAddedDates=i.ManuallyAddedDates.map(o=>-1===o.indexOf(":")?`-1:${el()(o).format("MM/DD/YYYY")}`:o),this.selectedOrdinalNumber=this.ordinalNumbers.find(o=>o.number===i.OrdinalNumber)||null,this.selectedWeekDayNumber=this.weekdays.find(o=>o.number===i.WeekdayNumber)||null,this.calculateFutureLockoutDates(),this.singleWarningMessage=i.SingleWarningMessage||this.defaultSingleWarningMessage,this.multipleWarningMessage=i.MultipleWarningMessage||this.defaultMultipleWarningMessage},e=>{this.toasterService.displayErrorToast("Error Loading Lockout Configuration",e)})}onLockoutEnabledChanged(){this.lockoutEnabled||(this.recurrenceType=R2.Ordinal,this.selectedDayOfMonth=null,this.selectedOrdinalNumber=null,this.selectedWeekDayNumber=null),this.calculateFutureLockoutDates()}onDateChanged(e,i){let o=i.lockoutDate,s=i.closeOutDate.format("MM/01/YYYY");i.date=e,i.lockoutDate=el()(e);let a=`${s}:${o.format("MM/DD/YYYY")}`,l=this.manuallyAddedDates.findIndex(d=>d==a);-1!=l&&this.manuallyAddedDates.splice(l,1);let c=`${s}:${i.lockoutDate.format("MM/DD/YYYY")}`;this.manuallyAddedDates.push(c),this.calculateFutureLockoutDates()}onOrdinalNumberSelected(){this.selectedOrdinalNumber&&(this.selectedDayOfMonth=null),this.calculateFutureLockoutDates()}onWeekdaySelected(){this.selectedWeekDayNumber&&(this.selectedDayOfMonth=null),this.calculateFutureLockoutDates()}onDayOfMonthSelected(){this.selectedDayOfMonth&&(this.selectedOrdinalNumber=null,this.selectedWeekDayNumber=null),this.calculateFutureLockoutDates()}getCurrentSettings(){return this.manuallyAddedDates=[...new Set(this.manuallyAddedDates)],this.manuallyAddedDates=this.manuallyAddedDates.filter(e=>{let i=el()(e.split(":")[1]);return el()(new Date).diff(i,"month")<2}),{RecurrenceType:this.recurrenceType,LockoutEnabled:this.lockoutEnabled,OrdinalNumber:this.selectedOrdinalNumber?this.selectedOrdinalNumber.number:null,WeekdayNumber:this.selectedWeekDayNumber?this.selectedWeekDayNumber.number:null,DayOfMonth:this.selectedDayOfMonth,ManuallyAddedDates:this.manuallyAddedDates,SingleWarningMessage:this.singleWarningMessage,MultipleWarningMessage:this.multipleWarningMessage}}saveLockoutSettings(){if(this.errorMessage="",(!this.lockoutDates||0===this.lockoutDates.length)&&this.lockoutEnabled)return void(this.errorMessage="Recurrence criteria is missing.");const e=this.getCurrentSettings();this.receiptingLockoutService.saveLockoutConfig(e).subscribe({next:i=>{i.Successful?(this.savedLockoutSettings.emit(e),this.toasterService.displayInfoToast("Success","Lockout Settings Saved")):this.toasterService.displayErrorToast("Error Saving Receipt Lockout Settings",i.FailureReason)},error:i=>{this.toasterService.displayErrorToast("Error Saving Lockout Config",i)}})}onCanceled(){this.canceledLockoutSettings.emit()}calculateFutureLockoutDates(){this.lockoutDates=this.receiptingLockoutService.calculateFutureLockoutDates(this.getCurrentSettings(),12,new Date)}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(eK),n.rXU(tc))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["lockout-config"]],outputs:{savedLockoutSettings:"savedLockoutSettings",canceledLockoutSettings:"canceledLockoutSettings"},standalone:!1,decls:38,vars:6,consts:[["numberedItemTemplate",""],["stringTemplate",""],[1,"panel","panel-default"],[1,"panel-body"],[1,"main-inner-container"],[1,"panel","panel-info"],[1,"panel-heading"],[1,"text-muted"],[1,"row"],[1,"col-md-1"],["name","lockoutEnabled",3,"ngModelChange","onChange","ngModel"],[1,"col-md-5"],["class","panel panel-info",4,"ngIf"],["type","click","id","saveLockoutConfigButton","data-style","expand-right",1,"btn","btn-primary","config-save-button","btn-lg",3,"click","disabled"],[1,"ladda-label"],[1,"ladda-spinner"],[1,"btn","btn-default","config-cancel-button",3,"click"],["class","alert alert-danger mt-10",4,"ngIf"],[1,"disclaimer-panel"],[1,"col-md-12","text-muted"],[1,"dropdown-text"],[1,"col-md-12"],[1,"col-xs-12"],["name","recurrenceOptions",3,"ngModelChange","value","ngModel"],[1,"row","mt-10"],[1,"col-md-3","col-sm-12"],["placeholder","Select Ordinal","name","ordinalNumberDropdown",3,"ngModelChange","itemSelected","options","itemTemplate","selectedItemTemplate","showFilter","ngModel","disabled"],["name","weekdayNumberDropdown","placeholder","Select Weekday",3,"ngModelChange","itemSelected","options","itemTemplate","selectedItemTemplate","showFilter","ngModel","disabled"],[1,"col-md-3","col-sm-12","lockout-label-center"],[1,"col-md-12","col-sm-12","mt-20"],[1,"row","mt-10","transform-center-parent"],[1,"col-md-3"],[1,"col-xs-2","lockout-label-center"],[1,"col-xs-10"],["name","dayOfMonthDropdown","placeholder","Select Day",3,"ngModelChange","itemSelected","options","itemTemplate","selectedItemTemplate","showFilter","ngModel","disabled"],[1,"col-md-3","lockout-label-center"],[1,"col-md-4"],["class","row lockout-date-row",4,"ngFor","ngForOf"],[1,"row","lockout-date-row"],[1,"col-md-6","close-date"],[4,"ngIf"],[3,"onSelect","ngModelChange","ngModel"],["pInputTextarea","",3,"ngModelChange","rows","cols","ngModel"],[1,"alert","alert-danger","mt-10"]],template:function(i,o){if(1&i){const s=n.RV6();n.DNE(0,_5t,3,1,"ng-template",null,0,n.C5r)(2,y5t,3,1,"ng-template",null,1,n.C5r),n.j41(4,"div",2)(5,"div",3)(6,"div",4)(7,"h4"),n.EFF(8,"Lockout Date Settings"),n.k0s(),n.j41(9,"div",5)(10,"div",6),n.EFF(11,"Enable Lockout Period"),n.k0s(),n.j41(12,"div",3)(13,"p"),n.EFF(14," Enable the receipting lockout period. When enabled, any user submitting a receipt after the lockout date configured below will see a warning message (that you can customize below). In addition, the effective pickup date of the receipts will be set to the first day of the current month"),n.j41(15,"span",7),n.EFF(16,"*"),n.k0s(),n.EFF(17," and the food bank sourcing coordinator will be notified via email. "),n.k0s(),n.j41(18,"div",8)(19,"div",9)(20,"p-inputSwitch",10),n.mxI("ngModelChange",function(l){return n.eBV(s),n.DH7(o.lockoutEnabled,l)||(o.lockoutEnabled=l),n.Njj(l)}),n.bIt("onChange",function(){return n.eBV(s),n.Njj(o.onLockoutEnabledChanged())}),n.k0s()(),n.j41(21,"div",11),n.EFF(22,"Enable lockout period"),n.k0s()()()(),n.DNE(23,b5t,37,22,"div",12)(24,S5t,11,1,"div",12)(25,x5t,18,6,"div",12),n.j41(26,"button",13),n.bIt("click",function(){return n.eBV(s),n.Njj(o.saveLockoutSettings())}),n.j41(27,"span",14),n.EFF(28,"Save"),n.k0s(),n.nrm(29,"span",15),n.k0s(),n.j41(30,"button",16),n.bIt("click",function(){return n.eBV(s),n.Njj(o.onCanceled())}),n.EFF(31," Cancel "),n.k0s(),n.DNE(32,E5t,4,1,"div",17),n.j41(33,"div",18)(34,"div",3)(35,"div",8)(36,"div",19),n.EFF(37," * If you choose to close out a given month before the last day of that month, the effective pickup day will be the first day of the subsequent month (e.g. if you set December 24th as the lockout day for December, and an agency submits a receipt on December 26th, with pickup dates of 11/30 or before, the pickup date for that receipt will be adjusted to be January 1st). "),n.k0s()()()()()()()}2&i&&(n.R7$(20),n.R50("ngModel",o.lockoutEnabled),n.R7$(3),n.Y8G("ngIf",o.lockoutEnabled),n.R7$(),n.Y8G("ngIf",o.lockoutDates&&o.lockoutDates.length>0&&o.lockoutEnabled),n.R7$(),n.Y8G("ngIf",o.lockoutEnabled),n.R7$(),n.Y8G("disabled",o.lockoutEnabled&&o.lockoutDates&&0===o.lockoutDates.length),n.R7$(6),n.Y8G("ngIf",o.errorMessage))},dependencies:[oo,fi,Uu,u7,Cc,_o,ko,Hq,Z8,Bdt],styles:[".dropdown-text[_ngcontent-%COMP%]{font-size:13px;padding-top:4px}.manually-added-date-cell[_ngcontent-%COMP%]{vertical-align:middle}.lockout-label-center[_ngcontent-%COMP%]{height:35px;margin-top:7px}.manual-date-container[_ngcontent-%COMP%]{max-height:300px;overflow-y:auto}.lockout-date-row[_ngcontent-%COMP%]{padding-bottom:10px;margin:15px 0;border-bottom:solid 1px #bce8f1}.close-date[_ngcontent-%COMP%]{line-height:2em}"]})}}return t})();function I5t(t,r){if(1&t){const e=n.RV6();n.j41(0,"div")(1,"span",9),n.EFF(2,"File Type"),n.k0s(),n.j41(3,"select",16),n.mxI("ngModelChange",function(o){n.eBV(e);const s=n.XpG();return n.DH7(s.fileType,o)||(s.fileType=o),n.Njj(o)}),n.j41(4,"option",17),n.EFF(5,"Select a file type"),n.k0s(),n.j41(6,"option",18),n.EFF(7,"CSV"),n.k0s(),n.j41(8,"option",19),n.EFF(9,"Excel"),n.k0s(),n.j41(10,"option",20),n.EFF(11,"PDF"),n.k0s()()()}if(2&t){const e=n.XpG();n.R7$(3),n.R50("ngModel",e.fileType)}}function A5t(t,r){if(1&t){const e=n.RV6();n.j41(0,"li")(1,"span",21),n.EFF(2),n.k0s(),n.j41(3,"button",22),n.bIt("click",function(){const o=n.eBV(e).$implicit,s=n.XpG();return n.Njj(s.removeRecipient(o))}),n.nrm(4,"i",23),n.k0s()()}if(2&t){const e=r.$implicit;n.R7$(2),n.SpI(" ",e," ")}}let M5t=(()=>{class t{constructor(){this.defaultRecipient="",this.prompt="",this.initialFileType="",this.heading="",this.onSubmit=new n.bkB,this.onCancel=new n.bkB,this.showFileTypeSelection=!1,this.visible=!0,this.fileType="",this.recipient="",this.recipients=[]}ngOnInit(){this.initialFileType?this.fileType=this.initialFileType:this.showFileTypeSelection=!0,this.defaultRecipient&&this.isValidEmail(this.defaultRecipient)&&this.recipients.push(this.defaultRecipient)}addRecipient(e){e=e.trim().toLowerCase(),this.recipients.includes(e)||this.recipients.push(e),this.recipient=""}removeRecipient(e){this.recipients.splice(this.recipients.indexOf(e),1)}submit(){this.onSubmit.emit({recipients:this.recipients,fileType:this.fileType})}cancel(){this.onCancel.emit()}isValidEmail(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["email-prompt"]],inputs:{defaultRecipient:"defaultRecipient",prompt:"prompt",initialFileType:"initialFileType",heading:"heading"},outputs:{onSubmit:"onSubmit",onCancel:"onCancel"},standalone:!1,decls:22,vars:11,consts:[["recipientForm","ngForm"],[3,"visibleChange","onHide","header","modal","visible","baseZIndex"],[3,"ngSubmit"],[1,"tw-block","tw-text-md","tw-mb-4"],[4,"ngIf"],[1,"tw-block","tw-text-lg","tw-font-semibold"],[1,"list-unstyled","tw-m-0","tw-mb-4"],[4,"ngFor","ngForOf"],[1,"tw-border","tw-border-gray-300","tw-rounded-lg","tw-border-solid","tw-p-3","tw-mb-4"],[1,"tw-block","tw-text-sm","tw-font-semibold"],[1,"input-group"],["name","recipient","type","email","placeholder","Email Address","title","Recipient","autocomplete","off","required","",1,"form-control",3,"ngModelChange","ngModel","email"],[1,"input-group-btn"],["type","submit",1,"btn","btn-primary",3,"disabled"],[1,"tw-flex","tw-justify-end"],[1,"btn","btn-primary",3,"click","disabled"],["name","fileType",1,"form-control","mt-5","mb-10",3,"ngModelChange","ngModel"],["value",""],["label","CSV","value","csv"],["label","Excel","value","xlsx"],["label","PDF","value","pdf"],[1,"tw-text-sm","tw-text-gray-700"],["type","button","title","Remove Recipient",1,"btn","btn-reset","tw-p-0","tw-text-gray-700","hover:tw-text-red-900",3,"click"],[1,"fa","fa-close"]],template:function(i,o){if(1&i){const s=n.RV6();n.j41(0,"p-dialog",1),n.mxI("visibleChange",function(l){return n.eBV(s),n.DH7(o.visible,l)||(o.visible=l),n.Njj(l)}),n.bIt("onHide",function(){return n.eBV(s),n.Njj(o.cancel())}),n.j41(1,"form",2,0),n.bIt("ngSubmit",function(){return n.eBV(s),n.Njj(o.addRecipient(o.recipient))}),n.j41(3,"span",3),n.EFF(4),n.k0s(),n.DNE(5,I5t,12,1,"div",4),n.j41(6,"span",5),n.EFF(7,"Report Recipients"),n.k0s(),n.j41(8,"div")(9,"ul",6),n.DNE(10,A5t,5,1,"li",7),n.k0s()(),n.j41(11,"div",8)(12,"span",9),n.EFF(13,"Add Recipient"),n.k0s(),n.j41(14,"div",10)(15,"input",11),n.mxI("ngModelChange",function(l){return n.eBV(s),n.DH7(o.recipient,l)||(o.recipient=l),n.Njj(l)}),n.k0s(),n.j41(16,"span",12)(17,"button",13),n.EFF(18," Add "),n.k0s()()()(),n.j41(19,"div",14)(20,"button",15),n.bIt("click",function(){return n.eBV(s),n.Njj(o.submit())}),n.EFF(21," Submit "),n.k0s()()()()}if(2&i){const s=n.sdS(2);n.Y8G("header",o.heading)("modal",!0),n.R50("visible",o.visible),n.Y8G("baseZIndex",2e3),n.R7$(4),n.JRh(o.prompt),n.R7$(),n.Y8G("ngIf",o.showFileTypeSelection),n.R7$(5),n.Y8G("ngForOf",o.recipients),n.R7$(5),n.R50("ngModel",o.recipient),n.Y8G("email",!0),n.R7$(2),n.Y8G("disabled",!s.form.valid),n.R7$(3),n.Y8G("disabled",!o.recipients.length||!o.fileType)}},dependencies:[oo,fi,wv,Sy,xy,Cc,Ty,_o,Rm,Sv,c8,ko,Sx,gf],encapsulation:2})}}return t})();function R5t(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",1),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.callRestoreFromCache())}),n.nrm(1,"i",2),n.j41(2,"span",3),n.EFF(3),n.k0s()()}if(2&t){const e=n.XpG();n.Y8G("pTooltip",e.restoreTooltip),n.R7$(3),n.SpI(" ",e.restoreText," ")}}function O5t(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",1),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.callResetUI())}),n.nrm(1,"i",4),n.j41(2,"span",3),n.EFF(3),n.k0s()()}if(2&t){const e=n.XpG();n.Y8G("pTooltip",e.resetTooltip),n.R7$(3),n.SpI(" ",e.resetText," ")}}let F5t=(()=>{class t{constructor(e){this.isCacheRestored=!1,this.isCacheAvailable=!1,this.onRestoreFromCache=null,this.onReset=null,this.restoreText="Restore",this.resetText="Reset",this.restoreTooltip="Your prior filters and grid settings for this page are available to be restored. Tap to restore.",this.resetTooltip="Your prior filters and grid settings for this page were restored. Tap to change the filters and grid back to defaults.",this.restored=!1,this.reset=!1,this.onItemToCacheReceivedSubscription=null,this.restoringFromCache=!1,this.onItemToCacheReceivedSubscription=e.OnItemToCacheReceived.subscribe(i=>{!this.restoringFromCache&&this.isCacheAvailable&&"ui"===i.type&&(this.isCacheAvailable=!1)})}get isRestoreAvailable(){return!this.isCacheRestored&&this.isCacheAvailable&&!this.restored&&!this.reset}get isResetAvailable(){return this.isCacheRestored&&!this.reset}callRestoreFromCache(){this.onRestoreFromCache&&(this.restoringFromCache=!0,this.onRestoreFromCache(),this.restoringFromCache=!1),this.restored=!0}callResetUI(){this.onReset&&this.onReset(),this.reset=!0}ngOnDestroy(){this.isRestoreAvailable&&!this.restored&&this.callResetUI(),this.onItemToCacheReceivedSubscription?.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(jb))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["ui-cache-status"]],inputs:{isCacheRestored:"isCacheRestored",isCacheAvailable:"isCacheAvailable",onRestoreFromCache:"onRestoreFromCache",onReset:"onReset",restoreText:"restoreText",resetText:"resetText",restoreTooltip:"restoreTooltip",resetTooltip:"resetTooltip"},standalone:!1,decls:2,vars:2,consts:[["class","btn btn-default display-flex items-center fade-in","tooltipPosition","left",3,"pTooltip","click",4,"ngIf"],["tooltipPosition","left",1,"btn","btn-default","display-flex","items-center","fade-in",3,"click","pTooltip"],[1,"pi","pi-history","spin",2,"font-size","22px"],[1,"ml-5"],[1,"pi","pi-times","spin",2,"font-size","22px"]],template:function(i,o){1&i&&n.DNE(0,R5t,4,2,"button",0)(1,O5t,4,2,"button",0),2&i&&(n.Y8G("ngIf",o.isRestoreAvailable),n.R7$(),n.Y8G("ngIf",o.isResetAvailable))},dependencies:[fi,ou],styles:[".fade-in[_ngcontent-%COMP%]{animation-name:_ngcontent-%COMP%_fadeIn;animation-duration:3s}.spin[_ngcontent-%COMP%]{animation-name:_ngcontent-%COMP%_spin;animation-duration:.5s;animation-delay:3s}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0}70%{opacity:0}to{opacity:1}}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(-360deg)}}"]})}}return t})();function P5t(t,r){1&t&&(n.j41(0,"span",11),n.EFF(1," Primary "),n.k0s())}function L5t(t,r){1&t&&(n.j41(0,"span",12),n.EFF(1," Secondary "),n.k0s())}function N5t(t,r){1&t&&(n.j41(0,"span",13),n.EFF(1," Help Menu "),n.k0s())}function G5t(t,r){if(1&t){const e=n.RV6();n.j41(0,"div")(1,"div",1)(2,"span",2),n.EFF(3),n.k0s(),n.j41(4,"button",3),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.onEdit(o.row))}),n.nrm(5,"i",4),n.EFF(6," Edit "),n.k0s(),n.DNE(7,P5t,2,0,"span",5)(8,L5t,2,0,"span",6)(9,N5t,2,0,"span",7),n.k0s(),n.j41(10,"div",8)(11,"span",9),n.EFF(12),n.k0s(),n.j41(13,"span",10),n.EFF(14),n.k0s()()()}if(2&t){const e=n.XpG();n.R7$(3),n.SpI(" ",e.row.contact.Name," "),n.R7$(4),n.Y8G("ngIf",e.row.isPrimaryContact),n.R7$(),n.Y8G("ngIf",e.row.isSecondaryContact),n.R7$(),n.Y8G("ngIf",e.row.isHelpMenuContact),n.R7$(3),n.JRh(e.row.contact.EMailAddress),n.R7$(2),n.SpI(" ",e.row.contact.PhoneNumber," ")}}let B5t=(()=>{class t{constructor(){this.row=null}refresh(e){return!1}agInit(e){this.row=e.data,this.onEdit=e.onEdit}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-contact-detail-renderer"]],standalone:!1,decls:1,vars:1,consts:[[4,"ngIf"],[1,"tw-text-sm","xl:tw-text-base","2xl:tw-text-lg","tw-flex","items-start","tw-space-x-2"],["title","Contact Name",1,"tw-font-bold","tw-text-gray-900"],["type","button","title","Edit Contact",1,"btn","btn-xs","btn-default",3,"click"],[1,"fa","fa-pencil"],["class","\n        tw-text-xs tw-text-white tw-bg-green-700 tw-px-1 tw-py-px tw-rounded\n      ","title","Primary Contact",4,"ngIf"],["class","\n        tw-text-xs tw-text-white tw-bg-blue-700 tw-px-1 tw-py-px tw-rounded\n      ","title","Secondary Contact",4,"ngIf"],["class","\n        tw-text-xs tw-text-white tw-bg-fa-blue-700 tw-px-1 tw-py-px tw-rounded\n      ","title","Help Menu Contact (displayed in Help and Info panel)",4,"ngIf"],[1,"tw-flex","tw-flex-col"],["title","EMail Address"],["title","Phone Number"],["title","Primary Contact",1,"tw-text-xs","tw-text-white","tw-bg-green-700","tw-px-1","tw-py-px","tw-rounded"],["title","Secondary Contact",1,"tw-text-xs","tw-text-white","tw-bg-blue-700","tw-px-1","tw-py-px","tw-rounded"],["title","Help Menu Contact (displayed in Help and Info panel)",1,"tw-text-xs","tw-text-white","tw-bg-fa-blue-700","tw-px-1","tw-py-px","tw-rounded"]],template:function(i,o){1&i&&n.DNE(0,G5t,15,6,"div",0),2&i&&n.Y8G("ngIf",o.row)},dependencies:[fi],encapsulation:2})}}return t})();const V5t=["categoryNotificationsOverlay"];function j5t(t,r){if(1&t&&(n.j41(0,"span",11),n.EFF(1),n.k0s()),2&t){const e=r.$implicit;n.R7$(),n.SpI(" ",e.Description," ")}}function H5t(t,r){if(1&t&&(n.j41(0,"div"),n.DNE(1,j5t,2,1,"span",10),n.k0s()),2&t){const e=n.XpG(3);n.R7$(),n.Y8G("ngForOf",e.notificationTypeSelections)}}function U5t(t,r){if(1&t){const e=n.RV6();n.j41(0,"div")(1,"div",5)(2,"span",6),n.EFF(3),n.k0s(),n.j41(4,"help-indicator",7),n.bIt("click",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.expand(o))}),n.k0s()(),n.j41(5,"p-popover",8,0),n.DNE(7,H5t,2,1,"ng-template",9),n.k0s()()}if(2&t){const e=n.XpG(2);n.R7$(3),n.JRh(e.row.extendedContact.Name),n.R7$(),n.Y8G("pTooltip","Show Notifications"),n.R7$(),n.Y8G("focusOnShow",!0)}}function $5t(t,r){if(1&t&&(n.j41(0,"div"),n.nrm(1,"span",13),n.nI1(2,"highlight"),n.k0s()),2&t){const e=r.$implicit,i=r.searchText;n.R7$(),n.Y8G("innerHTML",n.i5U(2,1,null==e?null:e.Name,i),n.npT)}}function Y5t(t,r){if(1&t&&(n.j41(0,"div")(1,"span"),n.EFF(2),n.k0s()()),2&t){const e=r.$implicit;n.R7$(2),n.JRh(e.Name)}}function W5t(t,r){if(1&t){const e=n.RV6();n.j41(0,"div")(1,"dropdown",12,1),n.bIt("dropdownShown",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.filterCategories())})("itemSelected",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.categorySelected(o))}),n.DNE(3,$5t,3,4,"ng-template",null,2,n.C5r)(5,Y5t,3,1,"ng-template",null,3,n.C5r),n.k0s()()}if(2&t){const e=n.sdS(4),i=n.sdS(6),o=n.XpG(2);n.R7$(),n.Y8G("options",o.filteredCategories)("itemTemplate",e)("selectedItemTemplate",i)("disabled",o.loading)("fluid",!0)}}function z5t(t,r){if(1&t&&(n.j41(0,"div"),n.DNE(1,U5t,8,3,"div",4)(2,W5t,7,5,"div",4),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngIf",e.row.extendedContact),n.R7$(),n.Y8G("ngIf",!e.row.extendedContact)}}let q5t=(()=>{class t{constructor(){this.notificationActionTypes=[],this.row=null,this.filteredCategories=[],this.notificationTypeSelections=[],this.loading=!1}filterCategories(){this.filteredCategories=this.getAvailableCategories(this.row)}categorySelected(e){this.loading=!0,this.onCategorySelected(e,this.row)}expand(e){let i=this.getNotificationTypes(this.row);this.notificationTypeSelections=i.map(o=>{let s=this.row?.notificationTypes.filter(a=>a.NotificationTypeID==o.ID);return{ID:o.ID,Code:o.Code,Description:o.Description,Actions:s?s.map(a=>a.NotificationActionType):[]}}).sort((o,s)=>o.Description<s.Description?-1:o.Description>s.Description?1:0),this.categoryNotificationsOverlay.toggle(e)}isEnabled(e,i){return e.Actions.some(o=>o.Code===i.Code)}refresh(e){return!1}agInit(e){this.notificationActionTypes=e.notificationActionTypes,this.row=e.data,this.getAvailableCategories=e.getAvailableCategories,this.getNotificationTypes=e.getNotificationTypes,this.onCategorySelected=e.onCategorySelected}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-category-renderer"]],viewQuery:function(i,o){if(1&i&&n.GBs(V5t,5),2&i){let s;n.mGM(s=n.lsd())&&(o.categoryNotificationsOverlay=s.first)}},standalone:!1,decls:1,vars:1,consts:[["categoryNotificationsOverlay",""],["dropdown",""],["itemTemplate",""],["selectedItemTemplate",""],[4,"ngIf"],[1,"tw-flex","tw-space-x-2"],[1,"tw-text-lg"],[1,"tw-block","tw-w-6","tw-h-6","tw-text-gray-700","tw-flex-shrink-0",3,"click","pTooltip"],[1,"tw-m-0",3,"focusOnShow"],["pTemplate","content"],["class","tw-block",4,"ngFor","ngForOf"],[1,"tw-block"],["filterFields","Name","placeholder","Add Category","appendTo","body","styleClass","",3,"dropdownShown","itemSelected","options","itemTemplate","selectedItemTemplate","disabled","fluid"],[3,"innerHTML"]],template:function(i,o){1&i&&n.DNE(0,z5t,3,2,"div",4),2&i&&n.Y8G("ngIf",o.row)},dependencies:[oo,fi,hs,ou,kv,Uu,SI,Zd],encapsulation:2})}}return t})();const X5t=t=>[t];function K5t(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",5),n.bIt("click",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.beginRemoveCategory())}),n.nrm(1,"icon-trash-can",6),n.k0s()}}function Q5t(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",7),n.bIt("click",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.confirming=!1)}),n.nrm(1,"icon-arrow-uturn-left",8),n.k0s()}if(2&t){const e=n.XpG(2);n.Y8G("disabled",e.removing)}}function J5t(t,r){if(1&t){const e=n.RV6();n.j41(0,"button",9),n.bIt("click",function(){n.eBV(e);const o=n.XpG(2);return n.Njj(o.confirmRemoveCategory())}),n.nrm(1,"icon-trash-can-solid",10),n.k0s()}if(2&t){const e=n.XpG(2);n.Y8G("disabled",e.removing),n.R7$(),n.Y8G("ngClass",n.eq3(2,X5t,e.removing?"tw-text-gray-500":"tw-text-red-900 hover:tw-text-red-700"))}}function Z5t(t,r){if(1&t&&(n.j41(0,"div",1),n.DNE(1,K5t,2,0,"button",2)(2,Q5t,2,1,"button",3)(3,J5t,2,4,"button",4),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngIf",!e.confirming),n.R7$(),n.Y8G("ngIf",e.confirming),n.R7$(),n.Y8G("ngIf",e.confirming)}}let e8t=(()=>{class t{constructor(){this.confirming=!1,this.removing=!1}ngOnInit(){}agInit(e){this.contactRow=e.data,this.onRemoveCategory=e.onRemoveCategory}refresh(e){return!1}beginRemoveCategory(){this.confirming=!0}confirmRemoveCategory(){this.removing=!0,this.onRemoveCategory(this.contactRow,e=>{this.removing=!1,this.confirming=!1})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-remove-category-renderer"]],standalone:!1,decls:1,vars:1,consts:[["class","tw-flex",4,"ngIf"],[1,"tw-flex"],["type","button","class","\n      tw-p-0 tw-bg-transparent tw-border-0 tw-select-none tw-text-gray-500\n      hover:tw-text-red-900\n      tw-transition-all tw-duration-300\n    ","title","Remove Category",3,"click",4,"ngIf"],["type","button","class","tw-p-0 tw-bg-transparent tw-border-0 tw-select-none tw-text-gray-500","title","Cancel",3,"disabled","click",4,"ngIf"],["type","button","class","tw-ml-4 tw-p-0 tw-bg-transparent tw-border-0 tw-select-none","title","Confirm Removal",3,"disabled","click",4,"ngIf"],["type","button","title","Remove Category",1,"tw-p-0","tw-bg-transparent","tw-border-0","tw-select-none","tw-text-gray-500","hover:tw-text-red-900","tw-transition-all","tw-duration-300",3,"click"],[1,"tw-w-8","tw-h-8"],["type","button","title","Cancel",1,"tw-p-0","tw-bg-transparent","tw-border-0","tw-select-none","tw-text-gray-500",3,"click","disabled"],[1,"tw-w-8","tw-h-8","tw-text-gray-500","hover:tw-text-gray-700"],["type","button","title","Confirm Removal",1,"tw-ml-4","tw-p-0","tw-bg-transparent","tw-border-0","tw-select-none",3,"click","disabled"],[1,"tw-w-8","tw-h-8","tw-transition-all","tw-duration-300",3,"ngClass"]],template:function(i,o){1&i&&n.DNE(0,Z5t,4,3,"div",0),2&i&&n.Y8G("ngIf",o.contactRow&&!o.contactRow.isNewRow)},dependencies:[bi,fi,dW,pW,hW],encapsulation:2})}}return t})(),t8t=(()=>{class t{constructor(){this.isAssigned=!1,this.isAllowed=!1,this.actionText=""}ngOnInit(){}refresh(e){return!1}agInit(e){this.contactRow=e.data,this.onToggle=e.onToggle,e.data.enabledActionTypeCodes.length&&(this.isAssigned=e.data.enabledActionTypeCodes.includes(e.notificationActionType.Code)),this.updateIsAllowed(e.categories,e.notificationActionType),this.updateActionText(this.isAllowed,this.isAssigned)}updateIsAllowed(e,i){if(this.contactRow.isNewRow)return void(this.isAllowed=!1);let o=e.find(s=>s.Code==this.contactRow.extendedContact?.Code);o&&(this.isAllowed=o.CustomNotificationActionTypeCodes.length?o.CustomNotificationActionTypeCodes.some(s=>s===i.Code):o.NotificationActionTypeCodes.some(s=>s===i.Code))}updateActionText(e,i){this.actionText=this.contactRow.isNewRow?"":e?i?"Remove Notifications":"Add Notifications":""}toggle(e){var i=this;return(0,lr.A)(function*(){yield i.onToggle(i.contactRow,e),i.isAssigned=!i.isAssigned})()}onStatusChange(e){this.updateActionText(e.isAllowed,e.isAssigned)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["assignment-renderer"]],standalone:!1,decls:1,vars:4,consts:[[1,"tw-w-full","tw-h-full",3,"onToggle","onStatusChange","isAssigned","isAllowed","title","classes"]],template:function(i,o){1&i&&(n.j41(0,"tri-state-toggle",0),n.bIt("onToggle",function(a){return o.toggle(a)})("onStatusChange",function(a){return o.onStatusChange(a)}),n.k0s()),2&i&&n.Y8G("isAssigned",o.isAssigned)("isAllowed",o.isAllowed)("title",o.actionText)("classes",o.isAllowed?"":"tw-bg-gray-200")},dependencies:[Dre],encapsulation:2})}}return t})(),n8t=(()=>{class t{constructor(e){this.httpClient=e}getContacts(e){var i=this;return(0,lr.A)(function*(){return yield Yo(i.httpClient.get("/api/contacts",{params:e}))})()}addContact(e,i){var o=this;return(0,lr.A)(function*(){return Yo(o.httpClient.post("/api/contacts",e,{params:i}))})()}updateContact(e,i){var o=this;return(0,lr.A)(function*(){return yield Yo(o.httpClient.put(`/api/contacts/${e.ID}`,e,{params:i}))})()}addNotificationActionType(e,i,o,s){var a=this;return(0,lr.A)(function*(){return Yo(a.httpClient.post(`/api/contacts/${e.ID}/categories/${i.ID}/notificationActionTypes`,o,{params:s}))})()}removeNotificationActionType(e,i,o,s){var a=this;return(0,lr.A)(function*(){return Yo(a.httpClient.delete(`/api/contacts/${e.ID}/categories/${i.ID}/notificationActionTypes/${o.ID}`,{params:s}))})()}getCategories(e){var i=this;return(0,lr.A)(function*(){return yield Yo(i.httpClient.get("/api/contacts/categories",{params:e}))})()}addCategoryToContact(e,i,o){var s=this;return(0,lr.A)(function*(){return Yo(s.httpClient.post(`/api/contacts/${e.ID}/categories`,{ID:i.ID,Code:i.Code,Name:i.Name},{params:o}))})()}removeCategoryFromContact(e,i,o){var s=this;return(0,lr.A)(function*(){return Yo(s.httpClient.delete(`/api/contacts/${e.ID}/categories/${i.ID}`,{params:o}))})()}getNotificationActionTypes(e){var i=this;return(0,lr.A)(function*(){return Yo(i.httpClient.get("/api/contacts/notificationActionTypes",{params:e}))})()}static{this.\u0275fac=function(i){return new(i||t)(n.KVO(Da))}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var i8t=b(821),r8t=b.n(i8t);let o8t=(()=>{class t{constructor(e){this.httpClient=e}lookupPhoneNumber(e){return this.httpClient.get(`/api/phonenumbers/${e}`)}formatPhoneNumber(e){return!e||e.length>11||e.length<10?e:11===e.length?"("+e[1]+e[2]+e[3]+") "+e[4]+e[5]+e[6]+"-"+e[7]+e[8]+e[9]+e[10]:10===e.length?"("+e[0]+e[1]+e[2]+") "+e[3]+e[4]+e[5]+"-"+e[6]+e[7]+e[8]+e[9]:""}static{this.\u0275fac=function(i){return new(i||t)(n.KVO(Da))}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const s8t=["phoneInputSpan"],a8t=(t,r,e)=>({"fa-mobile-phone":t,"fa-phone":r,"text-muted":e}),l8t=t=>({"cursor-not-allowed":t}),c8t=(t,r,e)=>({"text-primary":t,"text-success":r,"text-info":e}),u8t=(t,r,e,i,o)=>({"fa-exclamation-circle":t,"fa-check":r,"fa-spinner":e,"fa-span":i,"fa-question":o});function d8t(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",10),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.clearPhone())}),n.j41(1,"span",11),n.nrm(2,"i",12),n.k0s()()}}function p8t(t,r){1&t&&(n.j41(0,"div",2),n.nrm(1,"i",13),n.k0s())}function h8t(t,r){if(1&t&&(n.j41(0,"div",14),n.nrm(1,"i",15),n.k0s()),2&t){const e=n.XpG();n.HbH(n.sMw(5,c8t,e.lookupComplete&&!e.loading&&!e.isMobile,e.lookupComplete&&!e.loading&&e.isMobile,e.loading||!e.lookupComplete)),n.Y8G("pTooltip",e.toolTip),n.R7$(),n.HbH(n.s1E(9,u8t,e.lookupComplete&&!e.loading&&!e.isMobile,e.lookupComplete&&!e.loading&&e.isMobile,e.loading,e.loading,!e.loading&&!e.lookupComplete&&e.phone.length))}}let Mhe=(()=>{class t{constructor(e){this.phoneNumbersService=e,this.el=null,this.placeholder="Phone Number",this.mobileVerifiedMessage="Mobile Number Verified",this.nonMobileMessage="Mobile Numbers Only",this.name="mobilePhoneEntry",this.onLookupComplete=new n.bkB,this.onLookupFailed=new n.bkB,this.onIsMobileChanged=new n.bkB,this.phone="",this.isMobile=!1,this.loading=!1,this.lookupInProgress=!1,this.lookupComplete=!1,this.preventEdit=!1,this.isValid=!1,this.isDisabled=!1,this.mask=null,this.lastCheckedPhoneNumber="",this.onChange=i=>{},this.onTouched=()=>{}}get toolTip(){return this.isMobile?this.mobileVerifiedMessage:this.nonMobileMessage}ngOnInit(){}ngAfterViewInit(){const e=this;this.mask=r8t()({mask:"(999) 999-9999",placeholder:"_",clearIncomplete:!0,onincomplete(){e.phone="",e.isMobile=!1,e.onChange(e.phone)},oncomplete(){e.validatePhoneNumber(),setTimeout(()=>{e.onChange(e.phone)})}}).mask(this.el?.nativeElement.querySelector("input"))}clearPhone(){this.phone="",this.setIsMobile(!1),this.lookupComplete=!1,this.onChange(this.phone)}setIsMobile(e){this.isMobile=e,this.onIsMobileChanged.emit(this.isMobile)}onPhoneInputChanged(e){this.mask?.setValue(e.target.value),this.phone=e.target.value,this.onChange(this.phone),this.validatePhoneNumber()}validatePhoneNumber(){const e=this.getNumbers(this.phone);10!=e.length&&11!=e.length||e!=this.lastCheckedPhoneNumber&&(this.lookupComplete=!1,this.loading=!0,this.phoneNumbersService.lookupPhoneNumber(e||"").subscribe(i=>{i&&(i.Successful&&i.Value?(this.lastCheckedPhoneNumber=e,this.onLookupComplete.emit(i.Value),i.Value&&this.setIsMobile(i.Value.IsMobile)):this.onLookupFailed.emit(this.phoneNumbersService.formatPhoneNumber(this.phone))),this.lookupComplete=!0,this.loading=!1,this.isDisabled=!1}))}getNumbers(e){return e?e.replace(/\D/g,""):""}onPhoneInputBlurred(){this.onTouched()}get value(){return this.phone}writeValue(e){this.phone=this.phoneNumbersService.formatPhoneNumber(e),this.validatePhoneNumber(),this.onChange(this.phone)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.isDisabled=e}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(o8t))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-mobile-phone-entry"]],viewQuery:function(i,o){if(1&i&&n.GBs(s8t,5),2&i){let s;n.mGM(s=n.lsd())&&(o.el=s.first)}},inputs:{placeholder:"placeholder",mobileVerifiedMessage:"mobileVerifiedMessage",nonMobileMessage:"nonMobileMessage",name:"name"},outputs:{onLookupComplete:"onLookupComplete",onLookupFailed:"onLookupFailed",onIsMobileChanged:"onIsMobileChanged"},standalone:!1,features:[n.Jv_([{provide:tl,useExisting:(0,n.Rfq)(()=>t),multi:!0}])],decls:11,vars:18,consts:[["phoneInputSpan",""],[1,"input-group"],[1,"input-group-addon"],[1,"fa","fa-lg",2,"margin-bottom","-2px"],[1,"display-flex",2,"position","relative"],["type","text","pInputText","",1,"p-inputtext",3,"ngModelChange","blur","change","name","placeholder","ngModel","disabled"],["title","Clear Phone Number","style","position: absolute; top: 0; right: 0; bottom: 0; cursor: pointer","class","display-flex items-center",3,"click",4,"ngIf"],["id","mobilePhoneOnlyLabel",1,"sr-only"],["class","input-group-addon",4,"ngIf"],["tooltipPosition","top","class","input-group-addon",3,"pTooltip","class",4,"ngIf"],["title","Clear Phone Number",1,"display-flex","items-center",2,"position","absolute","top","0","right","0","bottom","0","cursor","pointer",3,"click"],[1,"text-muted",2,"position","relative","padding-right","5px","z-index","10"],[1,"fa","fa-times-circle"],[1,"tw-block",2,"width","14px","height","14px"],["tooltipPosition","top",1,"input-group-addon",3,"pTooltip"],[1,"fa"]],template:function(i,o){if(1&i){const s=n.RV6();n.j41(0,"div",1)(1,"div",2),n.nrm(2,"i",3),n.k0s(),n.j41(3,"div",4,0)(5,"input",5),n.mxI("ngModelChange",function(l){return n.eBV(s),n.DH7(o.phone,l)||(o.phone=l),n.Njj(l)}),n.bIt("blur",function(){return n.eBV(s),n.Njj(o.onPhoneInputBlurred())})("change",function(l){return n.eBV(s),n.Njj(o.onPhoneInputChanged(l))}),n.k0s(),n.DNE(6,d8t,3,0,"div",6),n.k0s(),n.j41(7,"label",7),n.EFF(8),n.k0s(),n.DNE(9,p8t,2,0,"div",8)(10,h8t,2,15,"div",9),n.k0s()}2&i&&(n.R7$(2),n.HbH(n.sMw(12,a8t,o.isMobile,!o.isMobile,!o.lookupComplete)),n.R7$(),n.HbH(n.eq3(16,l8t,o.preventEdit&&o.phone)),n.R7$(2),n.Y8G("name",o.name)("placeholder",o.placeholder),n.R50("ngModel",o.phone),n.Y8G("disabled",o.isDisabled),n.R7$(),n.Y8G("ngIf",!o.preventEdit&&o.phone),n.R7$(2),n.JRh(o.phone),n.R7$(),n.Y8G("ngIf",!o.loading&&!o.lookupComplete),n.R7$(),n.Y8G("ngIf",o.loading||o.lookupComplete))},dependencies:[fi,Cc,_o,ko,ou],styles:["input[_ngcontent-%COMP%]{border-radius:0%;width:100%}[_ngcontent-%COMP%]::placeholder{color:#999}"]})}}return t})();const f8t=["categoryNotificationsOverlay"],m8t=(t,r)=>({"tw-w-1/2":t,"tw-w-full":r});function g8t(t,r){if(1&t&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.JRh(e.existingPrimary.EMailAddress)}}function v8t(t,r){if(1&t&&(n.j41(0,"span",23),n.EFF(1),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.JRh(e.existingPrimary.PhoneNumber)}}function _8t(t,r){if(1&t&&(n.j41(0,"div")(1,"div",20)(2,"span"),n.EFF(3," This will take over "),n.j41(4,"span",21),n.EFF(5,"Primary Contact"),n.k0s(),n.EFF(6," from "),n.j41(7,"span",21),n.EFF(8),n.k0s(),n.EFF(9,". ["),n.DNE(10,g8t,2,1,"span",15)(11,v8t,2,1,"span",22),n.EFF(12,"] "),n.k0s()()()),2&t){const e=n.XpG();n.R7$(8),n.JRh(e.existingPrimary.Name),n.R7$(2),n.Y8G("ngIf",e.existingPrimary.EMailAddress),n.R7$(),n.Y8G("ngIf",e.existingPrimary.PhoneNumber)}}function y8t(t,r){if(1&t&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.JRh(e.existingSecondary.EMailAddress)}}function b8t(t,r){if(1&t&&(n.j41(0,"span",23),n.EFF(1),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.JRh(e.existingSecondary.PhoneNumber)}}function C8t(t,r){if(1&t&&(n.j41(0,"div")(1,"div",20)(2,"span"),n.EFF(3," This will take over "),n.j41(4,"span",21),n.EFF(5,"Secondary Contact"),n.k0s(),n.EFF(6," from "),n.j41(7,"span",21),n.EFF(8),n.k0s(),n.EFF(9,". ["),n.DNE(10,y8t,2,1,"span",15)(11,b8t,2,1,"span",22),n.EFF(12,"] "),n.k0s()()()),2&t){const e=n.XpG();n.R7$(8),n.JRh(e.existingSecondary.Name),n.R7$(2),n.Y8G("ngIf",e.existingSecondary.EMailAddress),n.R7$(),n.Y8G("ngIf",e.existingSecondary.PhoneNumber)}}function w8t(t,r){if(1&t&&(n.j41(0,"span"),n.EFF(1),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.JRh(e.existingHelpMenu.EMailAddress)}}function T8t(t,r){if(1&t&&(n.j41(0,"span",23),n.EFF(1),n.k0s()),2&t){const e=n.XpG(2);n.R7$(),n.JRh(e.existingHelpMenu.PhoneNumber)}}function S8t(t,r){if(1&t&&(n.j41(0,"div")(1,"div",20)(2,"span"),n.EFF(3," This will take over "),n.j41(4,"span",21),n.EFF(5,"Help Menu Contact"),n.k0s(),n.EFF(6," from "),n.j41(7,"span",21),n.EFF(8),n.k0s(),n.EFF(9,". ["),n.DNE(10,w8t,2,1,"span",15)(11,T8t,2,1,"span",22),n.EFF(12,"] "),n.k0s()()()),2&t){const e=n.XpG();n.R7$(8),n.JRh(e.existingHelpMenu.Name),n.R7$(2),n.Y8G("ngIf",e.existingHelpMenu.EMailAddress),n.R7$(),n.Y8G("ngIf",e.existingHelpMenu.PhoneNumber)}}function x8t(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",24)(1,"span"),n.EFF(2,"Receiving All E-Mails, Text Messages, and Phone Calls"),n.k0s(),n.j41(3,"button",25),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.editNotificationPreferences())}),n.EFF(4," Edit Notification Preferences "),n.k0s()()}}function E8t(t,r){if(1&t){const e=n.RV6();n.j41(0,"li",29)(1,"div",30)(2,"label")(3,"input",31),n.bIt("change",function(o){const s=n.eBV(e).$implicit,a=n.XpG(2);return n.Njj(a.onContactCategoryChanged(o,s))}),n.k0s(),n.EFF(4),n.k0s()(),n.j41(5,"help-indicator",32),n.bIt("click",function(o){const s=n.eBV(e).$implicit,a=n.XpG(2);return n.Njj(a.expand(o,s))}),n.k0s()()}if(2&t){const e=r.$implicit,i=n.XpG(2);n.R7$(3),n.Y8G("disabled",i.isPrimary||i.isSecondary),n.R7$(),n.SpI(" ",e.Name," "),n.R7$(),n.Y8G("pTooltip","Show Notifications")}}function D8t(t,r){if(1&t&&(n.j41(0,"div",24)(1,"span",26),n.EFF(2,"Categories"),n.k0s(),n.j41(3,"ul",27),n.DNE(4,E8t,6,3,"li",28),n.k0s()()),2&t){const e=n.XpG();n.R7$(4),n.Y8G("ngForOf",e.categories)}}function k8t(t,r){if(1&t&&(n.j41(0,"div",33)(1,"button",34),n.EFF(2),n.k0s()()),2&t){const e=n.XpG();n.R7$(),n.Y8G("disabled",!e.isValid()||e.isSaving),n.R7$(),n.SpI(" ",e.isSaving?"Saving":"Save"," ")}}function I8t(t,r){if(1&t&&(n.j41(0,"span",36),n.EFF(1),n.k0s()),2&t){const e=r.$implicit;n.R7$(),n.SpI(" ",e," ")}}function A8t(t,r){if(1&t&&(n.j41(0,"div"),n.DNE(1,I8t,2,1,"span",35),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngForOf",e.selectedNotificationTypeDescriptions)}}let M8t=(()=>{class t{constructor(){this.phoneDescription="",this.emailDescription="",this.showSave=!1,this.showSummary=!1,this.showCategories=!1,this.categories=[],this.isSaving=!1,this.contacts=[],this.onEditNotificationPreferences=new n.bkB,this.onSave=new n.bkB,this.name="",this.email="",this.phoneNumber="",this.isDirty=!1,this.isPrimary=!1,this.isSecondary=!1,this.isHelpMenuContactType=!1,this.existingPrimary=null,this.existingSecondary=null,this.existingHelpMenu=null,this.isTakingOverPrimary=!1,this.isTakingOverSecondary=!1,this.isTakingOverHelpMenu=!1,this.selectedNotificationTypeDescriptions=[]}ngOnInit(){this.setContact(this.contact),this.existingPrimary=this.contacts.find(e=>e.IsPrimaryContact),this.existingSecondary=this.contacts.find(e=>e.IsSecondaryContact),this.existingHelpMenu=this.contacts.find(e=>e.IsHelpMenuContact)}ngOnChanges(e){e.contact&&this.setContact(e.contact.currentValue)}setContact(e){e&&(this.name=e.Name,this.email=e.EMailAddress,this.phoneNumber=e.PhoneNumber,e.IsPrimaryContact&&(this.isPrimary=!0),e.IsSecondaryContact&&(this.isSecondary=!0),e.IsHelpMenuContact&&(this.isHelpMenuContactType=!0))}isValid(){return!!this.name&&(!!this.email||!!this.phoneNumber)&&(this.isPrimary||this.isSecondary||this.isHelpMenuContactType||!!this.contact.ExtendedContacts.length)}editNotificationPreferences(){this.onEditNotificationPreferences.emit()}onPrimaryChanged(){this.isPrimary?(this.isSecondary=!1,this.isTakingOverSecondary=!1,this.isTakingOverPrimary=!!this.existingPrimary&&this.existingPrimary.ID!==this.contact.ID):this.isTakingOverPrimary=!1}onSecondaryChanged(){this.isSecondary?(this.isPrimary=!1,this.isTakingOverPrimary=!1,this.isTakingOverSecondary=!!this.existingSecondary&&this.existingSecondary.ID!==this.contact.ID):this.isTakingOverSecondary=!1}onHelpMenuContactChanged(){this.isTakingOverHelpMenu=!(!this.isHelpMenuContactType||!this.existingHelpMenu)}onContactCategoryChanged(e,i){if(e.target.checked&&!this.contact.ExtendedContacts.find(o=>o.ID===i.ID))this.contact.ExtendedContacts.push({Name:i.Name,Code:i.Code});else{let o=this.contact.ExtendedContacts.findIndex(s=>s.Code==i.Code);o>-1&&this.contact.ExtendedContacts.splice(o,1)}}expand(e,i){this.selectedNotificationTypeDescriptions=i.NotificationTypes.map(o=>o.Description).sort((o,s)=>o.localeCompare(s)),this.categoryNotificationsOverlay.toggle(e)}saveContact(){this.onSave.emit({ID:this.contact.ID,EMailAddress:this.email,PhoneNumber:this.phoneNumber,Name:this.name,IsHelpMenuContact:this.isHelpMenuContactType,IsPrimaryContact:this.isPrimary,IsSecondaryContact:this.isSecondary,ExtendedContacts:this.contact.ExtendedContacts})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["edit-contact"]],viewQuery:function(i,o){if(1&i&&n.GBs(f8t,5),2&i){let s;n.mGM(s=n.lsd())&&(o.categoryNotificationsOverlay=s.first)}},inputs:{contact:"contact",phoneDescription:"phoneDescription",emailDescription:"emailDescription",showSave:"showSave",showSummary:"showSummary",showCategories:"showCategories",categories:"categories",isSaving:"isSaving",contacts:"contacts"},outputs:{onEditNotificationPreferences:"onEditNotificationPreferences",onSave:"onSave"},standalone:!1,features:[n.OA$],decls:35,vars:19,consts:[["categoryNotificationsOverlay",""],[3,"ngSubmit"],[1,"tw-flex","tw-gap-2"],[1,"tw-flex","tw-flex-col","tw-gap-2",3,"ngClass"],["name","contactName","placeholder","Contact Name","type","text","pInputText","","autocomplete","off",1,"form-control",3,"ngModelChange","input","ngModel"],["name","contactEmail","placeholder","E-Mail Address","type","email","pInputText","","autocomplete","off",1,"form-control",3,"ngModelChange","input","ngModel","email"],[1,"tw-text-sm","tw-italic"],["ngDefaultControl","","placeholder","Mobile Phone","nonMobileMessage","Not a mobile number.","name","contactPhone","autocomplete","off",3,"ngModelChange","input","ngModel"],[1,"tw-flex","tw-justify-between","tw-items-center"],[1,"radio-inline"],["type","checkbox","id","keyContactTypePrimary","name","keyContactTypePrimary",3,"ngModelChange","change","ngModel"],["type","checkbox","id","keyContactTypeSecondary","name","keyContactTypeSecondary",3,"ngModelChange","change","ngModel"],[1,"tw-ml-2","checkbox-inline"],["type","checkbox","id","helpMenuContactType","name","helpMenuContactType",3,"ngModelChange","change","ngModel"],[1,"tw-mt-2"],[4,"ngIf"],["class","tw-w-1/2",4,"ngIf"],["class","tw-mt-4",4,"ngIf"],["appendTo","body",1,"tw-m-0"],["pTemplate","content"],[1,"alert","alert-warning"],[1,"tw-font-semibold"],["class","tw-ml-2",4,"ngIf"],[1,"tw-ml-2"],[1,"tw-w-1/2"],["type","button",1,"tw-block","btn","btn-default",3,"click"],[1,"tw-ml-4","tw-font-semibold"],[1,"tw-list-none","tw-p-0"],["class","tw-flex",4,"ngFor","ngForOf"],[1,"tw-flex"],[1,"checkbox","tw-text-sm"],["type","checkbox",3,"change","disabled"],[1,"tw-block","tw-w-6","tw-h-6","tw-text-gray-700","tw-flex-shrink-0",3,"click","pTooltip"],[1,"tw-mt-4"],["type","submit",1,"btn","btn-primary",3,"disabled"],["class","tw-block",4,"ngFor","ngForOf"],[1,"tw-block"]],template:function(i,o){if(1&i){const s=n.RV6();n.j41(0,"form",1),n.bIt("ngSubmit",function(){return n.eBV(s),n.Njj(o.saveContact())}),n.j41(1,"div",2)(2,"div",3)(3,"div")(4,"input",4),n.mxI("ngModelChange",function(l){return n.eBV(s),n.DH7(o.name,l)||(o.name=l),n.Njj(l)}),n.bIt("input",function(){return n.eBV(s),n.Njj(o.isDirty=!0)}),n.k0s()(),n.j41(5,"div")(6,"input",5),n.mxI("ngModelChange",function(l){return n.eBV(s),n.DH7(o.email,l)||(o.email=l),n.Njj(l)}),n.bIt("input",function(){return n.eBV(s),n.Njj(o.isDirty=!0)}),n.k0s(),n.j41(7,"span",6),n.EFF(8),n.k0s()(),n.j41(9,"div")(10,"app-mobile-phone-entry",7),n.mxI("ngModelChange",function(l){return n.eBV(s),n.DH7(o.phoneNumber,l)||(o.phoneNumber=l),n.Njj(l)}),n.bIt("input",function(){return n.eBV(s),n.Njj(o.isDirty=!0)}),n.k0s(),n.j41(11,"span",6),n.EFF(12),n.k0s()(),n.j41(13,"div")(14,"div",8)(15,"div")(16,"label",9)(17,"input",10),n.mxI("ngModelChange",function(l){return n.eBV(s),n.DH7(o.isPrimary,l)||(o.isPrimary=l),n.Njj(l)}),n.bIt("change",function(){return n.eBV(s),n.Njj(o.onPrimaryChanged())}),n.k0s(),n.EFF(18," Primary Contact "),n.k0s(),n.j41(19,"label",9)(20,"input",11),n.mxI("ngModelChange",function(l){return n.eBV(s),n.DH7(o.isSecondary,l)||(o.isSecondary=l),n.Njj(l)}),n.bIt("change",function(){return n.eBV(s),n.Njj(o.onSecondaryChanged())}),n.k0s(),n.EFF(21," Secondary Contact "),n.k0s()(),n.j41(22,"label",12)(23,"input",13),n.mxI("ngModelChange",function(l){return n.eBV(s),n.DH7(o.isHelpMenuContactType,l)||(o.isHelpMenuContactType=l),n.Njj(l)}),n.bIt("change",function(){return n.eBV(s),n.Njj(o.onHelpMenuContactChanged())}),n.k0s(),n.EFF(24," Help Menu Contact "),n.k0s()(),n.j41(25,"div",14),n.DNE(26,_8t,13,3,"div",15)(27,C8t,13,3,"div",15)(28,S8t,13,3,"div",15),n.k0s()()(),n.DNE(29,x8t,5,0,"div",16)(30,D8t,5,1,"div",16),n.k0s(),n.DNE(31,k8t,3,2,"div",17),n.k0s(),n.j41(32,"p-popover",18,0),n.DNE(34,A8t,2,1,"ng-template",19),n.k0s()}2&i&&(n.R7$(2),n.Y8G("ngClass",n.l_i(16,m8t,o.showSummary,!o.showSummary)),n.R7$(2),n.R50("ngModel",o.name),n.R7$(2),n.R50("ngModel",o.email),n.Y8G("email",!0),n.R7$(2),n.JRh(o.emailDescription),n.R7$(2),n.R50("ngModel",o.phoneNumber),n.R7$(2),n.JRh(o.phoneDescription),n.R7$(5),n.R50("ngModel",o.isPrimary),n.R7$(3),n.R50("ngModel",o.isSecondary),n.R7$(3),n.R50("ngModel",o.isHelpMenuContactType),n.R7$(3),n.Y8G("ngIf",o.isTakingOverPrimary&&o.existingPrimary),n.R7$(),n.Y8G("ngIf",o.isTakingOverSecondary&&o.existingSecondary),n.R7$(),n.Y8G("ngIf",o.isTakingOverHelpMenu&&o.existingHelpMenu),n.R7$(),n.Y8G("ngIf",o.showSummary),n.R7$(),n.Y8G("ngIf",o.showCategories),n.R7$(),n.Y8G("ngIf",o.showSave))},dependencies:[bi,oo,fi,wv,Cc,Cv,_o,Rm,c8,ko,Sx,hs,ou,kv,Mhe,SI],encapsulation:2})}}return t})();function R8t(t,r){if(1&t&&(n.j41(0,"div"),n.nrm(1,"span",7),n.nI1(2,"highlight"),n.k0s()),2&t){const e=r.$implicit,i=r.searchText;n.R7$(),n.Y8G("innerHTML",n.i5U(2,1,null==e?null:e.Name,i),n.npT)}}function O8t(t,r){if(1&t&&(n.j41(0,"div")(1,"span"),n.EFF(2),n.k0s()()),2&t){const e=r.$implicit;n.R7$(2),n.JRh(e.Name)}}function F8t(t,r){1&t&&(n.j41(0,"div",8)(1,"span",9),n.EFF(2," No Additional Notification Categories Configured "),n.k0s()())}function P8t(t,r){if(1&t&&(n.j41(0,"li"),n.EFF(1),n.k0s()),2&t){const e=r.$implicit;n.R7$(),n.SpI(" ",e.Name," ")}}function L8t(t,r){if(1&t&&(n.j41(0,"div")(1,"ul",10),n.DNE(2,P8t,2,1,"li",11),n.k0s()()),2&t){const e=n.XpG();n.R7$(2),n.Y8G("ngForOf",e.contact.ExtendedContacts)}}let N8t=(()=>{class t{constructor(){this.filteredCategories=[]}ngOnInit(){}filterCategories(){this.filteredCategories=this.getAvailableCategories()}getAvailableCategories(){let e=this.contact.ExtendedContacts.map(i=>i.Code);return this.categories.filter(i=>-1===e.indexOf(i.Name))}categorySelected(e){this.contact.ExtendedContacts.push({ID:e.ID,Name:e.Name,Code:e.Code})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["notification-preferences"]],inputs:{contact:"contact",categories:"categories"},standalone:!1,decls:11,vars:6,consts:[["dropdown",""],["itemTemplate",""],["selectedItemTemplate",""],[1,"tw-block","tw-text-lg"],["filterFields","Name","placeholder","Add Category","appendTo","body","styleClass","",3,"dropdownShown","itemSelected","options","itemTemplate","selectedItemTemplate"],["class","\n    tw-mt-4\n    tw-flex\n    tw-items-center\n    tw-justify-center\n    tw-w-full\n    tw-h-48\n    tw-bg-gray-200\n    tw-border\n    tw-border-solid\n    tw-border-gray-500\n    tw-rounded\n  ",4,"ngIf"],[4,"ngIf"],[3,"innerHTML"],[1,"tw-mt-4","tw-flex","tw-items-center","tw-justify-center","tw-w-full","tw-h-48","tw-bg-gray-200","tw-border","tw-border-solid","tw-border-gray-500","tw-rounded"],[1,"tw-italic","tw-text-sm","tw-mx-4"],[1,"tw-list-none"],[4,"ngFor","ngForOf"]],template:function(i,o){if(1&i){const s=n.RV6();n.j41(0,"span",3),n.EFF(1),n.k0s(),n.j41(2,"div")(3,"dropdown",4,0),n.bIt("dropdownShown",function(){return n.eBV(s),n.Njj(o.filterCategories())})("itemSelected",function(l){return n.eBV(s),n.Njj(o.categorySelected(l))}),n.DNE(5,R8t,3,4,"ng-template",null,1,n.C5r)(7,O8t,3,1,"ng-template",null,2,n.C5r),n.k0s()(),n.DNE(9,F8t,3,0,"div",5)(10,L8t,3,1,"div",6)}if(2&i){const s=n.sdS(6),a=n.sdS(8);n.R7$(),n.JRh(o.contact.Name),n.R7$(2),n.Y8G("options",o.filteredCategories)("itemTemplate",s)("selectedItemTemplate",a),n.R7$(6),n.Y8G("ngIf",!o.contact.ExtendedContacts||!o.contact.ExtendedContacts.length),n.R7$(),n.Y8G("ngIf",o.contact.ExtendedContacts&&o.contact.ExtendedContacts.length)}},dependencies:[oo,fi,Uu,Zd],encapsulation:2})}}return t})();const G8t=["primaryContactComponent"],B8t=["secondaryContactComponent"];function V8t(t,r){1&t&&(n.j41(0,"span",23),n.EFF(1,"There is currently no "),n.j41(2,"strong"),n.EFF(3,"Primary Contact"),n.k0s(),n.EFF(4,", consider specifying a contact as "),n.j41(5,"strong"),n.EFF(6,"Primary"),n.k0s(),n.EFF(7," by clicking Edit next to their name"),n.k0s())}function j8t(t,r){1&t&&(n.j41(0,"span",23),n.EFF(1,"There is currently no "),n.j41(2,"strong"),n.EFF(3,"Secondary Contact"),n.k0s(),n.EFF(4,", consider specifying a contact as "),n.j41(5,"strong"),n.EFF(6,"Secondary"),n.k0s(),n.EFF(7," by clicking Edit next to their name"),n.k0s())}function H8t(t,r){1&t&&(n.j41(0,"span",23),n.EFF(1,"There is currently no "),n.j41(2,"strong"),n.EFF(3,"Help Menu Contact"),n.k0s(),n.EFF(4,", consider specifying a contact as "),n.j41(5,"strong"),n.EFF(6,"Help Menu Contact"),n.k0s(),n.EFF(7," by clicking Edit next to their name"),n.k0s())}function U8t(t,r){if(1&t&&(n.j41(0,"div",21),n.DNE(1,V8t,8,0,"span",22)(2,j8t,8,0,"span",22)(3,H8t,8,0,"span",22),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.Y8G("ngIf",e.isMissingPrimaryContact),n.R7$(),n.Y8G("ngIf",e.isMissingSecondaryContact),n.R7$(),n.Y8G("ngIf",e.isMissingHelpMenuContact)}}function $8t(t,r){1&t&&(n.j41(0,"span",24),n.EFF(1," Please enter 3 or more characters to filter "),n.k0s())}function Y8t(t,r){if(1&t&&(n.j41(0,"div"),n.nrm(1,"span",26),n.nI1(2,"highlight"),n.k0s()),2&t){const e=r.$implicit,i=r.searchText;n.R7$(),n.Y8G("innerHTML",n.i5U(2,1,e.Name,i),n.npT)}}function W8t(t,r){if(1&t&&(n.j41(0,"div")(1,"span"),n.EFF(2),n.k0s()()),2&t){const e=r.$implicit;n.R7$(2),n.JRh(e.Name)}}function z8t(t,r){if(1&t){const e=n.RV6();n.j41(0,"dropdown",25,0),n.bIt("itemSelected",function(o){n.eBV(e);const s=n.XpG();return n.Njj(s.categorySelected(o))}),n.DNE(2,Y8t,3,4,"ng-template",null,1,n.C5r)(4,W8t,3,1,"ng-template",null,2,n.C5r),n.k0s()}if(2&t){const e=n.sdS(3),i=n.sdS(5),o=n.XpG();n.Y8G("options",o.categories)("itemTemplate",e)("selectedItemTemplate",i)("fluid",!0)}}function q8t(t,r){if(1&t&&n.nrm(0,"grid",27),2&t){const e=n.XpG();n.Y8G("gridOptions",e.gridOptions)("frameworkComponents",e.frameworkComponents)("hideRowCount",!0)("onInit",e.onGridInit.bind(e))("getDataAsync",e.onGetDataAsync.bind(e))("rowHeight",80)}}function X8t(t,r){1&t&&n.EFF(0,"Add Contact")}function K8t(t,r){if(1&t){const e=n.RV6();n.j41(0,"edit-contact",29),n.bIt("onSave",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.addContact(o))}),n.k0s()}if(2&t){const e=n.XpG(2);n.Y8G("contact",e.contactToAdd)("contacts",e.contacts)("isSaving",e.savingContact)("showSummary",!1)("showSave",!0)("showCategories",!0)("categories",e.categories)}}function Q8t(t,r){if(1&t&&n.DNE(0,K8t,1,7,"edit-contact",28),2&t){const e=n.XpG();n.Y8G("ngIf",e.contactToAdd)}}function J8t(t,r){1&t&&n.EFF(0,"Edit Contact")}function Z8t(t,r){if(1&t){const e=n.RV6();n.j41(0,"edit-contact",31),n.bIt("onSave",function(o){n.eBV(e);const s=n.XpG(2);return n.Njj(s.saveContact(o))}),n.k0s()}if(2&t){const e=n.XpG(2);n.Y8G("contact",e.contactToEdit)("contacts",e.contacts)("showSave",!0)("showSummary",!1)("isSaving",e.savingContact)}}function e7t(t,r){if(1&t&&n.DNE(0,Z8t,1,5,"edit-contact",30),2&t){const e=n.XpG();n.Y8G("ngIf",e.contactToEdit)}}function t7t(t,r){1&t&&n.EFF(0,"Edit Notification Preferences")}function n7t(t,r){if(1&t&&(n.j41(0,"div"),n.nrm(1,"notification-preferences",32),n.k0s()),2&t){const e=n.XpG();n.R7$(),n.Y8G("contact",e.notificationPreferencesContact)("categories",e.categories)}}let i7t=(()=>{class t{constructor(e,i,o,s,a){this.confirmationService=e,this.contactsService=i,this.toasterService=o,this.uniqueIdGeneratorService=s,this.triStateToggleTrackerService=a,this.entityId=null,this.gridApi=null,this.contacts=[],this.contactsLoaded=!1,this.primaryContact=null,this.secondaryContact=null,this.addingContact=!1,this.editingContact=!1,this.savingContact=!1,this.contactToAdd=null,this.contactToEdit=null,this.changingNotificationPreferences=!1,this.notificationPreferencesContact=null,this.categories=[],this.notificationActionTypes=[],this.allRows=[],this.filterTextValue="",this.filterTextModel="",this.isFilterTextTooShort=!1,this.filteredCategory=null,this.debouncedRefresh=null,this.debouncedSearch=null,this.frameworkComponents={assignmentRendererComponent:t8t,categoryRendererComponent:q5t,contactDetailRendererComponent:B5t,removeCategoryRendererComponent:e8t},this.isMissingPrimaryContact=!1,this.isMissingSecondaryContact=!1,this.isMissingHelpMenuContact=!1}filterData(e){this.filterTextValue=e.trim(),this.debouncedSearch&&this.debouncedSearch()}getFilteredRows(){if(this.isFilterTextTooShort=this.filterTextValue.length>0&&this.filterTextValue.length<3,0===this.filterTextValue.length&&!this.filteredCategory)return this.allRows;let e=JSON.parse(JSON.stringify(this.allRows));if(this.filterTextValue){const s=new tC(this.contacts,{isCaseSensitive:!1,minMatchCharLength:3,threshold:.3,keys:[{name:"Name",weight:.6},{name:"EMailAddress",weight:.2},{name:"PhoneNumber",weight:.2}]}).search(this.filterTextValue).map(l=>l.item.ID);let a=[];s.forEach(l=>{let c=e.filter(d=>d.contact.ID===l).sort((d,f)=>{if(d.isFirstRow)return-1;if(d.isNewRow)return 1;if(d.extendedContact&&f.extendedContact){if(d.extendedContact.Name<f.extendedContact.Name)return-1;if(d.extendedContact.Name>f.extendedContact.Name)return 1}return 0});c&&(a=a.concat(c))}),e=a}return this.filteredCategory&&(e=e.filter(i=>i.extendedContact?.Code===this.filteredCategory?.Code),e.forEach(i=>i.rowSpan=1)),e}updateRowInAllRows(e){let i=this.allRows.find(o=>o.id===e.id);i&&Object.assign(i,e)}buildConnectCell(e){var o,i=this;return{headerName:e.Name,width:60,minWidth:60,cellClass:"connect-cell",cellRenderer:"assignmentRendererComponent",cellRendererParams:{notificationActionType:e,categories:this.categories,onToggle:(o=(0,lr.A)(function*(s,a){if(s.enabledActionTypeCodes.includes(e.Code))try{yield i.contactsService.removeNotificationActionType(s.contact,s.extendedContact,e,i.getHttpParams()),s.enabledActionTypeCodes.splice(s.enabledActionTypeCodes.indexOf(e.Code),1),a.onComplete(!0)}catch{a.onComplete(!1)}else try{yield i.contactsService.addNotificationActionType(s.contact,s.extendedContact,e,i.getHttpParams()),s.enabledActionTypeCodes.push(e.Code),a.onComplete(!0)}catch{a.onComplete(!1)}}),function(a,l){return o.apply(this,arguments)})}}}onGridInit(e){this.gridApi=e}onGetDataAsync(){return this.loadContacts().then(()=>this.filterTextValue?{data:this.getFilteredRows(),page:1,total:1,error:null}:{data:this.allRows,page:1,total:1,error:null})}buildGridOptions(e){var i=this;let o={rowBuffer:50,suppressRowTransform:!0,getRowNodeId:s=>s.id,defaultColDef:{sortable:!1,suppressMenu:!0},columnDefs:[{headerName:"Contact",minWidth:100,width:240,cellClass:["ag-cell-span","stretch-cell"],cellRenderer:"contactDetailRendererComponent",cellRendererParams:{onEdit:s=>{this.editingContact=!0,this.contactToEdit=this.contacts.find(a=>a.ID==s.contact.ID)}},rowSpan:s=>s.data.rowSpan},{headerName:"Category",minWidth:100,width:150,cellClass:["stretch-cell"],cellRenderer:"categoryRendererComponent",cellRendererParams:{notificationActionTypes:e,getAvailableCategories:s=>{let a=this.allRows.filter(l=>l.contact.ID==s.contact.ID&&null!==l.extendedContact).map(l=>l.extendedContact.Code);return this.categories.filter(l=>-1===a.indexOf(l.Code))},getNotificationTypes:s=>this.categories.find(l=>s.extendedContact?.ID===l.ID)?.NotificationTypes,onCategorySelected:(s=(0,lr.A)(function*(a,l){try{let c=yield i.contactsService.addCategoryToContact(l.contact,a,i.getHttpParams());try{let d=i.allRows.find(M=>M.contact.ID===l.contact.ID&&!0===M.isFirstRow);d.rowSpan++,d.isNewRow=!1;let f=i.gridOptions.api?.getRowNode(d.id);f.setData(d),i.updateRowInAllRows(d),i.gridOptions.api?.applyTransaction({update:[d]}),i.gridOptions.api?.redrawRows({rowNodes:[f]});let v=i.gridOptions.api?.getRowNode(l.id),w=i.categories.find(M=>M.ID==a.ID);w&&(l.extendedContact={ID:w.ID,Code:w.Code,Name:w.Name,ExtendedContactNotificationActionTypes:c.ExtendedContactNotificationActionTypes,ExtendedContactNotificationTypes:c.ExtendedContactNotificationTypes},l.enabledActionTypeCodes=l.extendedContact.ExtendedContactNotificationActionTypes.filter(M=>M.IsEnabled).map(M=>M.NotificationActionType.Code)),l.isNewRow=!1,l.actionTypes=i.notificationActionTypes.filter(M=>a.NotificationActionTypeCodes.some(F=>F===M.Code)),v.setData(l),i.updateRowInAllRows(l),i.gridOptions.api?.applyTransaction({update:[l]});let x={id:i.uniqueIdGeneratorService.generateId(),contact:l.contact,extendedContact:null,enabledActionTypeCodes:[],notificationTypes:[],actionTypes:[],isPrimaryContact:!1,isSecondaryContact:!1,isHelpMenuContact:!1,rowSpan:1,isFirstRow:!1,isNewRow:!0};i.gridOptions.api?.applyTransaction({add:[x],addIndex:v.rowIndex+1});let I=i.allRows.indexOf(l);i.allRows.splice(I+1,0,x)}catch{i.toasterService.displayErrorToast("Error","Sorry, an unexpected error occurred while adding the category. [2]")}}catch{i.toasterService.displayErrorToast("Error","Sorry, an unexpected error occurred while adding the category.")}}),function(l,c){return s.apply(this,arguments)})}}]};var s;e.forEach(s=>{o.columnDefs?.push(this.buildConnectCell(s))}),o.columnDefs?.push({headerName:"",width:80,minWidth:80,cellRenderer:"removeCategoryRendererComponent",cellRendererParams:{onRemoveCategory:(s,a)=>{let c=this.getRowsForContact(s.contact).length<=2;!c||s.isPrimaryContact||s.isSecondaryContact||s.isHelpMenuContact?this.removeCategoryFromContact(s).then(()=>{a(!0),(s.isPrimaryContact||s.isSecondaryContact||s.isHelpMenuContact)&&c&&this.debouncedRefresh&&this.debouncedRefresh()}).catch(()=>a(!1)):this.confirmationService.confirm({message:"This is the last category specified for this contact. If you remove this category the contact will no longer be associated with this organization. Continue?",accept:()=>{this.removeCategoryFromContact(s).then(()=>{let d=this.allRows.filter(v=>v.contact.ID===s.contact.ID),f=[];d.forEach(v=>{this.allRows.splice(this.allRows.indexOf(v),1);let w=this.gridOptions.api?.getRowNode(v.id);w&&f.push(w)}),this.gridOptions.api?.applyTransaction({remove:d}),this.gridOptions.api?.redrawRows({rowNodes:f}),a(!0)}).catch(()=>a(!1))},reject:()=>{a(!0)}})}}}),this.gridOptions=o}getRowsForContact(e){return this.allRows.filter(i=>i.contact.ID===e.ID)}removeCategoryFromContact(e){var i=this;return(0,lr.A)(function*(){try{yield i.contactsService.removeCategoryFromContact(e.contact,e.extendedContact,i.getHttpParams());let a,o=i.allRows.find(c=>c.id===e.id),s=i.allRows.indexOf(o);i.allRows.splice(s,1),i.gridOptions.api?.applyTransaction({remove:[o]}),o?.isFirstRow?(a=i.allRows.find(c=>c.contact.ID===e.contact.ID),a.rowSpan=i.allRows.filter(c=>c.contact.ID===e.contact.ID).length,a.isFirstRow=!0):(a=i.allRows.find(c=>c.contact.ID===e.contact.ID&&!0===c.isFirstRow),a.rowSpan--,1===a.rowSpan&&(a.isNewRow=!0));let l=i.gridOptions.api?.getRowNode(a.id);l.setData(a),i.updateRowInAllRows(a),i.gridOptions.api?.applyTransaction({update:[a]}),i.gridOptions.api?.redrawRows({rowNodes:[l]})}catch{i.toasterService.displayErrorToast("Error","Sorry, an error occurred while removing this category.")}})()}startEditNotificationPreferences(e=null){this.notificationPreferencesContact=e,this.changingNotificationPreferences=!0}endEditNotificationPreferences(){this.notificationPreferencesContact=null,this.changingNotificationPreferences=!1}startAddContact(){this.addingContact=!0,this.contactToAdd={Name:"",PhoneNumber:"",EMailAddress:"",IsPrimaryContact:!1,IsSecondaryContact:!1,IsHelpMenuContact:!1,ExtendedContacts:[]}}endAddContact(){this.addingContact=!1,this.contactToAdd=null}addContact(e){var i=this;return(0,lr.A)(function*(){try{i.savingContact=!0;let o=yield i.contactsService.addContact(e,i.getHttpParams());if(e.IsPrimaryContact||e.IsSecondaryContact||e.IsHelpMenuContact)i.gridApi?.refresh();else{i.contacts.push(o);let s=i.addContactToAllRows(o);i.addContactsToGrid(s)}i.toasterService.displayInfoToast("Success","Contact added!"),i.endAddContact()}catch(o){i.toasterService.displayErrorToast("Error",o?.error?.ExceptionMessage||"Sorry, an error occurred while adding the contact.")}finally{i.savingContact=!1}})()}updateGridContact(e){let i=this.allRows.find(a=>a.contact.ID===e.ID&&a.isFirstRow);if(!i)return;let o=this.gridOptions.api?.getRowNode(i.id),s=i.isPrimaryContact&&!e.IsPrimaryContact||i.isSecondaryContact&&!e.IsSecondaryContact||i.isHelpMenuContact&&!e.IsHelpMenuContact;i.contact=e,o.setData(i),this.updateRowInAllRows(i),s?this.gridApi?.refresh():(this.gridOptions.api?.applyTransaction({update:[i]}),this.gridOptions.api?.redrawRows({rowNodes:[o]}))}saveContact(e){var i=this;return(0,lr.A)(function*(){i.savingContact=!0;try{yield i.contactsService.updateContact(e,i.getHttpParams());let o=i.contacts.find(a=>a.ID==e.ID);o&&(o.Name=e.Name,o.EMailAddress=e.EMailAddress,o.PhoneNumber=e.PhoneNumber);let s=i.allRows.find(a=>a.contact.ID===e.ID);s&&(e.IsPrimaryContact&&!s.isPrimaryContact||e.IsSecondaryContact&&!s.isSecondaryContact||e.IsHelpMenuContact&&!s.isHelpMenuContact?i.gridApi?.refresh():(Object.assign(s.contact,e),i.updateGridContact(s.contact))),i.editingContact=!1,i.contactToEdit=null}catch(o){i.toasterService.displayErrorToast("Error",o?.error?.ExceptionMessage||"Sorry, an error occurred while saving.")}finally{i.savingContact=!1}})()}addContactToAllRows(e){let i=0,o=!1,s=[];return e.ExtendedContacts.forEach(a=>{i++;let l={id:this.uniqueIdGeneratorService.generateId(),contact:e,extendedContact:a,enabledActionTypeCodes:a.ExtendedContactNotificationActionTypes.filter(c=>c.IsEnabled).map(c=>c.NotificationActionType.Code),actionTypes:a.ExtendedContactNotificationActionTypes.filter(c=>c.IsEnabled).map(c=>c.NotificationActionType),notificationTypes:a.ExtendedContactNotificationTypes,rowSpan:1,isFirstRow:!o,isNewRow:!1,isPrimaryContact:e.IsPrimaryContact,isSecondaryContact:e.IsSecondaryContact,isHelpMenuContact:e.IsHelpMenuContact};o=!0,s.push(l)}),s.push({id:this.uniqueIdGeneratorService.generateId(),contact:e,extendedContact:null,enabledActionTypeCodes:[],actionTypes:[],notificationTypes:[],rowSpan:1,isFirstRow:!o,isNewRow:!0,isPrimaryContact:e.IsPrimaryContact,isSecondaryContact:e.IsSecondaryContact,isHelpMenuContact:e.IsHelpMenuContact}),s[0].rowSpan=i+1,this.allRows=this.allRows.concat(s),s}addContactsToGrid(e){this.gridOptions.api?.applyTransaction({add:e})}loadContacts(){var e=this;return(0,lr.A)(function*(){e.allRows=[];try{e.contacts=yield e.contactsService.getContacts(e.getHttpParams()),e.contacts.forEach(i=>{e.addContactToAllRows(i)}),e.isMissingPrimaryContact=!e.contacts.find(i=>i.IsPrimaryContact),e.isMissingSecondaryContact=!e.contacts.find(i=>i.IsSecondaryContact),e.isMissingHelpMenuContact=!e.contacts.find(i=>i.IsHelpMenuContact),yield e.triStateToggleTrackerService.init(),e.contactsLoaded=!0}catch{e.toasterService.displayErrorToast("Error","Unable to load contacts")}})()}loadCategories(){var e=this;return(0,lr.A)(function*(){try{let i=new Mp;e.entityId&&(i=i.set("entityId",e.entityId)),e.categories=yield e.contactsService.getCategories(e.getHttpParams())}catch{e.toasterService.displayErrorToast("Error","Unable to load categories.")}})()}loadNotificationActionTypes(){var e=this;return(0,lr.A)(function*(){try{e.notificationActionTypes=yield e.contactsService.getNotificationActionTypes(e.getHttpParams()),e.buildGridOptions(e.notificationActionTypes)}catch{e.toasterService.displayErrorToast("Error","Unable to load notification action types.")}})()}getHttpParams(){let e=new Mp;return this.entityId&&(e=e.set("entityId",this.entityId)),e}categorySelected(e){this.filteredCategory=e,this.debouncedSearch&&this.debouncedSearch()}ngOnInit(){var e=this;return(0,lr.A)(function*(){e.debouncedRefresh=PO(()=>{e.gridApi?.refresh()},300),e.debouncedSearch=PO(()=>{let i=e.getFilteredRows();e.gridOptions.api?.setRowData(i)},300),yield e.loadCategories(),yield e.loadNotificationActionTypes(),yield e.loadContacts()})()}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(Kf),n.rXU(n8t),n.rXU(tc),n.rXU(fW),n.rXU(mW))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["contacts"]],viewQuery:function(i,o){if(1&i&&(n.GBs(G8t,5),n.GBs(B8t,5)),2&i){let s;n.mGM(s=n.lsd())&&(o.primaryContactComponent=s.first),n.mGM(s=n.lsd())&&(o.secondaryContactComponent=s.first)}},inputs:{entityId:"entityId"},standalone:!1,features:[n.Jv_([Kf])],decls:29,vars:21,consts:[["contactTypeDropdown",""],["itemTemplate",""],["selectedItemTemplate",""],["role","alert",1,"alert","alert-info","alert-dismissible"],["type","button","data-dismiss","alert","aria-label","Close",1,"close","tw-mr-4"],["aria-hidden","true"],["href","mailto:groceryprogram@feedingamerica.org"],["class","alert alert-warning",4,"ngIf"],[1,"tw-mt-4","tw-flex","tw-justify-between"],[1,"tw-flex","tw-flex-col","sm:tw-flex-row","sm:tw-items-center"],["placeholder","Filter Contacts","pInputText","","type","text","id","contactsFilter","name","contactsFilter","autocomplete","off",1,"form-control","tw-mr-2","md:tw-w-96",3,"ngModelChange","ngModel"],["class","animated fadeIn tw-italic tw-text-gray-500",4,"ngIf"],[1,"tw-flex","tw-items-center"],["placeholder","Filter by Category","filterFields","Name","styleClass","tw-mr-2 tw-w-64",3,"options","itemTemplate","selectedItemTemplate","fluid","itemSelected",4,"ngIf"],[1,"btn","btn-primary",3,"click"],["height","100%","class","tw-mt-4",3,"gridOptions","frameworkComponents","hideRowCount","onInit","getDataAsync","rowHeight",4,"ngIf"],["appendTo","body",3,"visibleChange","onHide","modal","closeOnEscape","closable","focusTrap","visible"],["pTemplate","header"],["pTemplate","content"],[4,"ngIf"],["appendTo","body"],[1,"alert","alert-warning"],["class","tw-block",4,"ngIf"],[1,"tw-block"],[1,"animated","fadeIn","tw-italic","tw-text-gray-500"],["placeholder","Filter by Category","filterFields","Name","styleClass","tw-mr-2 tw-w-64",3,"itemSelected","options","itemTemplate","selectedItemTemplate","fluid"],[3,"innerHTML"],["height","100%",1,"tw-mt-4",3,"gridOptions","frameworkComponents","hideRowCount","onInit","getDataAsync","rowHeight"],["phoneDescription","Enter your phone number and choose a category to get updates by text.\n    (Standard message rates may apply)",3,"contact","contacts","isSaving","showSummary","showSave","showCategories","categories","onSave",4,"ngIf"],["phoneDescription","Enter your phone number and choose a category to get updates by text.\n    (Standard message rates may apply)",3,"onSave","contact","contacts","isSaving","showSummary","showSave","showCategories","categories"],["phoneDescription","Enter your phone number and choose a category to get updates by text.\n    (Standard message rates may apply)",3,"contact","contacts","showSave","showSummary","isSaving","onSave",4,"ngIf"],["phoneDescription","Enter your phone number and choose a category to get updates by text.\n    (Standard message rates may apply)",3,"onSave","contact","contacts","showSave","showSummary","isSaving"],[3,"contact","categories"]],template:function(i,o){1&i&&(n.j41(0,"div",3)(1,"button",4)(2,"span",5),n.EFF(3,"\xd7"),n.k0s()(),n.j41(4,"span"),n.EFF(5," At this time, grocery notifications are set through another system. To manage grocery contacts, please email "),n.j41(6,"a",6),n.EFF(7," groceryprogram@feedingamerica.org "),n.k0s(),n.EFF(8," . "),n.k0s()(),n.DNE(9,U8t,4,3,"div",7),n.j41(10,"div",8)(11,"div",9)(12,"input",10),n.bIt("ngModelChange",function(a){return o.filterData(a)}),n.k0s(),n.DNE(13,$8t,2,0,"span",11),n.k0s(),n.j41(14,"div",12),n.DNE(15,z8t,6,4,"dropdown",13),n.j41(16,"button",14),n.bIt("click",function(){return o.startAddContact()}),n.EFF(17," Add Contact "),n.k0s()()(),n.DNE(18,q8t,1,6,"grid",15),n.j41(19,"p-dialog",16),n.mxI("visibleChange",function(a){return n.DH7(o.addingContact,a)||(o.addingContact=a),a}),n.bIt("onHide",function(){return o.endAddContact()}),n.DNE(20,X8t,1,0,"ng-template",17)(21,Q8t,1,1,"ng-template",18),n.k0s(),n.j41(22,"p-dialog",16),n.mxI("visibleChange",function(a){return n.DH7(o.editingContact,a)||(o.editingContact=a),a}),n.bIt("onHide",function(){return o.editingContact=!1}),n.DNE(23,J8t,1,0,"ng-template",17)(24,e7t,1,1,"ng-template",18),n.k0s(),n.j41(25,"p-dialog",16),n.mxI("visibleChange",function(a){return n.DH7(o.changingNotificationPreferences,a)||(o.changingNotificationPreferences=a),a}),n.bIt("onHide",function(){return o.endEditNotificationPreferences()}),n.DNE(26,t7t,1,0,"ng-template",17)(27,n7t,2,2,"div",19),n.k0s(),n.nrm(28,"p-confirmDialog",20)),2&i&&(n.R7$(9),n.Y8G("ngIf",o.isMissingPrimaryContact||o.isMissingSecondaryContact||o.isMissingHelpMenuContact),n.R7$(3),n.Y8G("ngModel",o.filterTextModel),n.R7$(),n.Y8G("ngIf",o.isFilterTextTooShort),n.R7$(2),n.Y8G("ngIf",o.categories.length),n.R7$(3),n.Y8G("ngIf",o.contactsLoaded),n.R7$(),n.Y8G("modal",!0)("closeOnEscape",!0)("closable",!0)("focusTrap",!0),n.R50("visible",o.addingContact),n.R7$(3),n.Y8G("modal",!0)("closeOnEscape",!0)("closable",!0)("focusTrap",!0),n.R50("visible",o.editingContact),n.R7$(3),n.Y8G("modal",!0)("closeOnEscape",!0)("closable",!0)("focusTrap",!0),n.R50("visible",o.changingNotificationPreferences),n.R7$(2),n.Y8G("ngIf",o.notificationPreferencesContact))},dependencies:[fi,Cc,_o,ko,hs,iY,gf,yg,Uu,M8t,N8t,Zd],encapsulation:2})}}return t})(),r7t=(()=>{class t{constructor(){this.disabled=!1,this.disabledText="Exporting",this.text="Export",this.onExportSelected=new n.bkB,this.menuItems=[]}ngOnInit(){this.menuItems=[{label:"Export Options",items:[{label:"Excel",icon:"pi pi-fw pi-file-excel",command:()=>this.onExportSelected.emit("xlsx")},{label:"CSV",icon:"pi pi-fw pi-file",command:()=>this.onExportSelected.emit("csv")}]}]}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-grid-export-button"]],inputs:{disabled:"disabled",disabledText:"disabledText",text:"text"},outputs:{onExportSelected:"onExportSelected"},standalone:!1,decls:5,vars:4,consts:[["menu",""],["type","button",1,"btn","btn-primary",3,"click","disabled"],["appendTo","body",3,"popup","model"]],template:function(i,o){if(1&i){const s=n.RV6();n.j41(0,"div")(1,"button",1),n.bIt("click",function(l){n.eBV(s);const c=n.sdS(4);return n.Njj(c.toggle(l))}),n.EFF(2),n.k0s(),n.nrm(3,"p-menu",2,0),n.k0s()}2&i&&(n.R7$(),n.Y8G("disabled",o.disabled),n.R7$(),n.SpI(" ",o.disabled?o.disabledText:o.text," "),n.R7$(),n.Y8G("popup",!0)("model",o.menuItems))},dependencies:[J8],encapsulation:2})}}return t})();const o7t=["editor"];function s7t(t,r){1&t&&n.EFF(0," Markdown ")}function a7t(t,r){if(1&t){const e=n.RV6();n.j41(0,"div",5)(1,"button",6),n.bIt("click",function(){n.eBV(e);const o=n.XpG();return n.Njj(o.insertLink())}),n.EFF(2,"Insert Link"),n.k0s(),n.j41(3,"div")(4,"input",7),n.mxI("ngModelChange",function(o){n.eBV(e);const s=n.XpG();return n.DH7(s.showPreview,o)||(s.showPreview=o),n.Njj(o)}),n.k0s(),n.j41(5,"label",8),n.EFF(6,"\xa0Show Preview"),n.k0s()()()}if(2&t){const e=n.XpG();n.R7$(4),n.R50("ngModel",e.showPreview)}}function l7t(t,r){1&t&&n.EFF(0,"Preview")}function c7t(t,r){if(1&t&&(n.j41(0,"div",9)(1,"p-panel"),n.DNE(2,l7t,1,0,"ng-template",1),n.j41(3,"div",10),n.nrm(4,"markdown",11),n.k0s()()()),2&t){const e=n.XpG();n.R7$(4),n.Y8G("data",e.markdown)}}let tK,u7t=(()=>{class t{constructor(){this.disabled=!1,this.markdown="",this.showPreview=!1,this.onChange=e=>{},this.onTouched=()=>{}}ngAfterViewInit(){}ngOnInit(){}insertLink(){this.markdown+="[Link Text Goes Here](Link URL Goes Here)"}markdownChanged(){this.onChange(this.markdown)}markdownBlurred(){this.onTouched()}get value(){return this.markdown}writeValue(e){this.markdown=e}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["markdown-editor"]],viewQuery:function(i,o){if(1&i&&n.GBs(o7t,5),2&i){let s;n.mGM(s=n.lsd())&&(o.editor=s.first)}},inputs:{disabled:"disabled"},standalone:!1,decls:5,vars:2,consts:[["title","Markdown"],["pTemplate","header"],["rows","5",1,"tw-w-full",3,"ngModelChange","change","blur","ngModel"],["pTemplate","footer"],["class","tw-mt-4",4,"ngIf"],[1,"tw-flex","tw-justify-between"],[1,"btn","tw-mr-2",3,"click"],["type","checkbox","id","showPreviewCheck",3,"ngModelChange","ngModel"],["for","showPreviewCheck"],[1,"tw-mt-4"],[1,"tw-w-full","tw-text-center"],[3,"data"]],template:function(i,o){1&i&&(n.j41(0,"p-panel",0),n.DNE(1,s7t,1,0,"ng-template",1),n.j41(2,"textarea",2),n.mxI("ngModelChange",function(a){return n.DH7(o.markdown,a)||(o.markdown=a),a}),n.bIt("change",function(){return o.markdownChanged()})("blur",function(){return o.markdownBlurred()}),n.k0s(),n.DNE(3,a7t,7,1,"ng-template",3),n.k0s(),n.DNE(4,c7t,5,1,"div",4)),2&i&&(n.R7$(2),n.R50("ngModel",o.markdown),n.R7$(2),n.Y8G("ngIf",o.showPreview))},dependencies:[fi,Cc,Cv,_o,ko,hs,nY,Bx],styles:[".markdown-editor[_ngcontent-%COMP%]{width:100%}"]})}}return t})(),d7t=(()=>{class t{get markdown(){return this.internalMarkdown}set markdown(e){this.internalMarkdown=e}constructor(){this.internalMarkdown=""}ngAfterViewInit(){}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["markdown-viewer"]],inputs:{markdown:"markdown"},standalone:!1,decls:2,vars:1,consts:[[1,"tw-text-center"],[3,"data"]],template:function(i,o){1&i&&(n.j41(0,"div",0),n.nrm(1,"markdown",1),n.k0s()),2&i&&(n.R7$(),n.Y8G("data",o.markdown))},dependencies:[nY],styles:["p[_ngcontent-%COMP%]{width:100%!important}"]})}}return t})(),p7t=(()=>{class t{constructor(){}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["required-asterisk"]],standalone:!1,decls:2,vars:0,consts:[["ng-if","$ctrl.showRequiredAsterisk",1,"required-asterisk"]],template:function(i,o){1&i&&(n.j41(0,"span",0),n.EFF(1," * "),n.k0s())},styles:[".required-asterisk[_ngcontent-%COMP%]{color:#b94a48}"]})}}return t})();try{tK=typeof Intl<"u"&&Intl.v8BreakIterator}catch{tK=!1}let h7t=(()=>{class t{_platformId=(0,n.WQX)(n.Agw);isBrowser=this._platformId?Gr(this._platformId):"object"==typeof document&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!(!window.chrome&&!tK)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),g7t=(()=>{class t{constructor(e){this.platform=e,this.isInternetExplorer=this.platform.TRIDENT,this.isEdge=this.platform.EDGE}static{this.\u0275fac=function(i){return new(i||t)(n.KVO(h7t))}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const bs="USA",Gm="CAN";let v7t=(()=>{class t{constructor(){this.statesAndProvinces=[{country:bs,abbreviation:"AL",name:"Alabama"},{country:bs,abbreviation:"AK",name:"Alaska"},{country:bs,abbreviation:"AS",name:"American Samoa"},{country:bs,abbreviation:"AZ",name:"Arizona"},{country:bs,abbreviation:"AR",name:"Arkansas"},{country:bs,abbreviation:"CA",name:"California"},{country:bs,abbreviation:"CO",name:"Colorado"},{country:bs,abbreviation:"CT",name:"Connecticut"},{country:bs,abbreviation:"DE",name:"Delaware"},{country:bs,abbreviation:"DC",name:"District Of Columbia"},{country:bs,abbreviation:"FM",name:"Federated States Of Micronesia"},{country:bs,abbreviation:"FL",name:"Florida"},{country:bs,abbreviation:"GA",name:"Georgia"},{country:bs,abbreviation:"GU",name:"Guam"},{country:bs,abbreviation:"HI",name:"Hawaii"},{country:bs,abbreviation:"ID",name:"Idaho"},{country:bs,abbreviation:"IL",name:"Illinois"},{country:bs,abbreviation:"IN",name:"Indiana"},{country:bs,abbreviation:"IA",name:"Iowa"},{country:bs,abbreviation:"KS",name:"Kansas"},{country:bs,abbreviation:"KY",name:"Kentucky"},{country:bs,abbreviation:"LA",name:"Louisiana"},{country:bs,abbreviation:"ME",name:"Maine"},{country:bs,abbreviation:"MH",name:"Marshall Islands"},{country:bs,abbreviation:"MD",name:"Maryland"},{country:bs,abbreviation:"MA",name:"Massachusetts"},{country:bs,abbreviation:"MI",name:"Michigan"},{country:bs,abbreviation:"MN",name:"Minnesota"},{country:bs,abbreviation:"MS",name:"Mississippi"},{country:bs,abbreviation:"MO",name:"Missouri"},{country:bs,abbreviation:"MT",name:"Montana"},{country:bs,abbreviation:"NE",name:"Nebraska"},{country:bs,abbreviation:"NV",name:"Nevada"},{country:bs,abbreviation:"NH",name:"New Hampshire"},{country:bs,abbreviation:"NJ",name:"New Jersey"},{country:bs,abbreviation:"NM",name:"New Mexico"},{country:bs,abbreviation:"NY",name:"New York"},{country:bs,abbreviation:"NC",name:"North Carolina"},{country:bs,abbreviation:"ND",name:"North Dakota"},{country:bs,abbreviation:"MP",name:"Northern Mariana Islands"},{country:bs,abbreviation:"OH",name:"Ohio"},{country:bs,abbreviation:"OK",name:"Oklahoma"},{country:bs,abbreviation:"OR",name:"Oregon"},{country:bs,abbreviation:"PW",name:"Palau"},{country:bs,abbreviation:"PA",name:"Pennsylvania"},{country:bs,abbreviation:"PR",name:"Puerto Rico"},{country:bs,abbreviation:"RI",name:"Rhode Island"},{country:bs,abbreviation:"SC",name:"South Carolina"},{country:bs,abbreviation:"SD",name:"South Dakota"},{country:bs,abbreviation:"TN",name:"Tennessee"},{country:bs,abbreviation:"TX",name:"Texas"},{country:bs,abbreviation:"UT",name:"Utah"},{country:bs,abbreviation:"VT",name:"Vermont"},{country:bs,abbreviation:"VI",name:"Virgin Islands"},{country:bs,abbreviation:"VA",name:"Virginia"},{country:bs,abbreviation:"WA",name:"Washington"},{country:bs,abbreviation:"WV",name:"West Virginia"},{country:bs,abbreviation:"WI",name:"Wisconsin"},{country:bs,abbreviation:"WY",name:"Wyoming"},{country:Gm,abbreviation:"AB",name:"Alberta"},{country:Gm,abbreviation:"BC",name:"British Columbia"},{country:Gm,abbreviation:"MB",name:"Manitoba"},{country:Gm,abbreviation:"NB",name:"New Brunswick"},{country:Gm,abbreviation:"NL",name:"Newfoundland and Labrador"},{country:Gm,abbreviation:"NT",name:"Northwest Territories"},{country:Gm,abbreviation:"NS",name:"Nova Scotia"},{country:Gm,abbreviation:"NU",name:"Nunavut"},{country:Gm,abbreviation:"ON",name:"Ontario"},{country:Gm,abbreviation:"PE",name:"Prince Edward Island"},{country:Gm,abbreviation:"QC",name:"Quebec"},{country:Gm,abbreviation:"SK",name:"Saskatchewan"},{country:Gm,abbreviation:"YT",name:"Yukon"}]}getStates(){return this.statesAndProvinces.filter(e=>e.country===bs)}getProvinces(){return this.statesAndProvinces.filter(e=>e.country===Gm)}getStatesAndProvinces(){return this.statesAndProvinces}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=n.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const _7t=["dropdown"];function y7t(t,r){if(1&t&&(n.j41(0,"div")(1,"span"),n.EFF(2),n.k0s()()),2&t){const e=r.$implicit;n.R7$(2),n.Lme("",null==e?null:e.name," (",null==e?null:e.abbreviation,")")}}function b7t(t,r){if(1&t&&(n.j41(0,"div",7)(1,"span"),n.EFF(2),n.k0s()()),2&t){const e=r.$implicit;n.R7$(2),n.JRh(e.country)}}function C7t(t,r){if(1&t&&(n.j41(0,"div",8)(1,"div",8),n.nrm(2,"span",9),n.nI1(3,"highlight"),n.k0s()()),2&t){const e=r.$implicit,i=r.searchText;n.R7$(2),n.Y8G("innerHtml",n.i5U(3,1,e.name+" ("+e.abbreviation+")",i),n.npT)}}const w7t={provide:tl,useExisting:(0,n.Rfq)(()=>Ohe),multi:!0};let Ohe=(()=>{class t{constructor(e){this.stateService=e,this.dropDown=null,this.stateSelected=new n.bkB,this.disabled=!1,this.includeProvinces=!0,this.selectedState=null,this.groupedStates=[],this.onChange=i=>{},this.onTouched=()=>{}}ngOnInit(){this.initializeGroupedStates()}initializeGroupedStates(){const e=[],i=this.stateService.getStates();if(e.push({country:i[0].country,value:i[0].country,items:i}),this.includeProvinces){const o=this.stateService.getProvinces();e.push({country:o[0].country,value:o[0].country,items:o})}this.groupedStates=e}onStateSelected(e){this.selectedState=e,this.stateSelected.emit(e),this.onChange(e)}get value(){return this.selectedState}writeValue(e){this.selectedState=e,this.dropDown&&this.dropDown.setSelectedItem(e),this.onChange(this.selectedState)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e}static{this.\u0275fac=function(i){return new(i||t)(n.rXU(v7t))}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["app-state-picker"]],viewQuery:function(i,o){if(1&i&&n.GBs(_7t,5),2&i){let s;n.mGM(s=n.lsd())&&(o.dropDown=s.first)}},inputs:{disabled:"disabled",includeProvinces:"includeProvinces"},outputs:{stateSelected:"stateSelected"},standalone:!1,features:[n.Jv_([w7t])],decls:9,vars:6,consts:[["selectedStateTemplate",""],["groupTemplate",""],["stateTemplate",""],["dropdown",""],["pTemplate","group"],[1,"row"],["filterFields","name,abbreviation","placeholder","State","optionGroupLabel","country",3,"itemSelected","options","itemTemplate","selectedItemTemplate","groupTemplate","group","disabled"],[1,"state-group"],[1,"state-item"],[3,"innerHtml"]],template:function(i,o){if(1&i){const s=n.RV6();n.DNE(0,y7t,3,2,"ng-template",null,0,n.C5r)(2,b7t,3,1,"ng-template",4,1,n.C5r)(4,C7t,4,4,"ng-template",null,2,n.C5r),n.j41(6,"div",5)(7,"dropdown",6,3),n.bIt("itemSelected",function(l){return n.eBV(s),n.Njj(o.onStateSelected(l))}),n.k0s()()}if(2&i){const s=n.sdS(1),a=n.sdS(3),l=n.sdS(5);n.R7$(7),n.Y8G("options",o.groupedStates)("itemTemplate",l)("selectedItemTemplate",s)("groupTemplate",a)("group",!0)("disabled",o.disabled)}},dependencies:[hs,Uu,Zd],styles:[".state-item[_ngcontent-%COMP%]{width:100%;font-size:12px}.state-group[_ngcontent-%COMP%]{font-size:12px;font-weight:700}.abbreviation[_ngcontent-%COMP%]{font-weight:700}"]})}}return t})();const T7t=[{referenceName:"Grid",type:yg},{referenceName:"DonorList",type:Npt},{referenceName:"StatePicker",type:Ohe},{referenceName:"DonorLocationPicker",type:Ade},{referenceName:"DonorLocationElevation",type:Zht},{referenceName:"AgencyPicker",type:Cpt},{referenceName:"DonorPicker",type:_ft},{referenceName:"LocalDonorVerification",type:Omt},{referenceName:"RequiredAsterisk",type:p7t},{referenceName:"OrderAheadDashboard",type:lRt},{referenceName:"OrderAheadCustomerForm",type:xMt},{referenceName:"OrderAheadAgencySelection",type:iMt},{referenceName:"OrderAheadRestrictCustomerModal",type:OMt},{referenceName:"OrderAheadLocationModal",type:hOt},{referenceName:"LocationSetupProgress",type:_Ot},{referenceName:"OrderAheadConfirmExport",type:APt},{referenceName:"PickupDeliveryDateHistoryModal",type:JPt},{referenceName:"WarehouseSelection",type:HNt},{referenceName:"DriverTracking",type:r5t},{referenceName:"DriverForm",type:Ihe},{referenceName:"ReceiptNavigator",type:xNt},{referenceName:"MobilePhoneEntry",type:Mhe},{referenceName:"UiCacheStatus",type:F5t},{referenceName:"ProductsPicker",type:uPt},{referenceName:"LockoutConfig",type:k5t},{referenceName:"LateReceiptNoticeModal",type:m5t},{referenceName:"ReceiptStatusTracker",type:The},{referenceName:"ReceiptStatusPanel",type:PNt},{referenceName:"ReceiptModeSelector",type:uLt},{referenceName:"GridExportButton",type:r7t},{referenceName:"BlackoutDates",type:zgt},{referenceName:"ProduceNotificationConfig",type:UPt},{referenceName:"OfferUnavailableModal",type:OPt},{referenceName:"MarkdownEditor",type:u7t},{referenceName:"MarkdownViewer",type:d7t},{referenceName:"DonorLocationUserManagement",type:Oft},{referenceName:"TefapIcon",type:YX},{referenceName:"CategoryHiddenSelector",type:qvt},{referenceName:"HelpIndicator",type:SI},{referenceName:"LanguageSelect",type:che},{referenceName:"Connections",type:qae},{referenceName:"FileUpload",type:mhe},{referenceName:"NeighborPreview",type:CFt},{referenceName:"OrderAheadProductsPreview",type:kPt},{referenceName:"AdhocDirectAllocationPicker",type:Mvt},{referenceName:"IngredientsSelection",type:o5t},{referenceName:"AffiliateMultiSelect",type:Bvt},{referenceName:"AffiliatePicker",type:$vt},{referenceName:"AffiliateSettings",type:Wvt},{referenceName:"AffiliateDonorPicker",type:Lvt},{referenceName:"AllergensSelection",type:UNt},{referenceName:"Tooltip",type:(()=>{class t{constructor(){this.infoText="",this.position="right"}ngOnInit(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=n.VBU({type:t,selectors:[["tooltip"]],inputs:{infoText:"infoText",position:"position"},standalone:!1,decls:2,vars:2,consts:[[1,"info-popover-button",3,"pTooltip","tooltipPosition"],[1,"fa","fa-info-circle"]],template:function(i,o){1&i&&(n.j41(0,"span",0),n.nrm(1,"i",1),n.k0s()),2&i&&n.Y8G("pTooltip",o.infoText)("tooltipPosition",o.position)},dependencies:[ou],encapsulation:2})}}return t})()},{referenceName:"Contacts",type:i7t},{referenceName:"PantryContent",type:nPt},{referenceName:"FoodbankPicker",type:t_t},{referenceName:"PotentialDonorLocations",type:hgt},{referenceName:"Routes",type:K_t},{referenceName:"EmailPrompt",type:M5t},{referenceName:"MarketplaceBrowse",type:hwt},{referenceName:"MarketplaceSupplierDetail",type:Hwt},{referenceName:"MarketplaceTaxonomyEntryDetail",type:_Tt},{referenceName:"MarketplaceTimelineEntryDetail",type:ESt},{referenceName:"MarketplaceOffer",type:gkt},{referenceName:"MarketplaceOffers",type:zAt},{referenceName:"MarketplaceOfferDetails",type:XIt},{referenceName:"MarketplaceOfferAdminOrder",type:DIt},{referenceName:"MarketplaceOrders",type:XAt},{referenceName:"MarketplaceOrdersToFulfill",type:qAt},{referenceName:"NeighborProfileConfiguration",type:pFt},{referenceName:"DeliveryNeighborProfileConfiguration",type:nOt},{referenceName:"IssueAdministration",type:rDt},{referenceName:"RegionalSharingGroupSubgroups",type:xvt},{referenceName:"TimeSlider",type:Ahe},{referenceName:"PickupTimeSlider",type:s5t},{referenceName:"MarketplaceCart",type:a2t},{referenceName:"MarketplaceSupplierSettings",type:zwt},{referenceName:"MarketplaceSupplierDashboard",type:QAt}],S7t=[{referenceName:"BrowserUtilityService",type:g7t},{referenceName:"CacheService",type:jb},{referenceName:"EnvironmentService",type:s0},{referenceName:"ReceiptingLockoutService",type:eK},{referenceName:"MarketplaceCartService",type:l0},{referenceName:"LegacySessionDataService",type:qy},{referenceName:"MarketplaceOffersPreloadService",type:KAt}];(0,n.SmG)();const E7t={initializeModernAngular:()=>{console.log("Initializing Hybrid Angular/AngularJS App"),(t=>{T7t.forEach(r=>{const e=r.referenceName.charAt(0).toLowerCase()+r.referenceName.slice(1);t.module("faom").directive(e,function h4(t){const r=function(e,i,o){const s=t.unsafelyOverwriteSignalInputs??!1,a=3===SM(i),l=a?f=>()=>n.SKi.isInAngularZone()?f():c.run(f):f=>f;let c;const d=a&&og(i)>1;return{restrict:"E",terminal:!0,require:[eb,"?ngModel"],controller:function(){},link:(f,v,w,x)=>{const I=x[1],M=x[0];let F,re=!1;if(!M||d){const nt=t.downgradedModule||"",rt=`${uv}${nt}`,lt=`instantiating component '${iy(t.component)}'`;NS(i,nt,rt,lt);const bt=i.get(rt);F=bt.injector??bt.promise}const je=(nt,rt)=>{const bt=rt.get(n.OM3).resolveComponentFactory(t.component);if(!bt)throw new Error(`Expecting ComponentFactory for: ${iy(t.component)}`);const Wt=new qj(v),Zt=new d4(v,w,f,I,nt,e,o,bt,l,s),en=Zt.compileContents(),ci=Zt.createComponentAndSetup(en,a,t.propagateDigest);Wt.resolve(ci.injector),re&&f.$evalAsync(()=>{})},tt=a?(nt,rt)=>{c||(c=nt.get(n.SKi)),l(()=>je(nt,rt))()}:je;nD.all([M||F,F||M]).then(([nt,rt])=>tt(nt,rt)),re=!0}}};return r.$inject=[mM,cv,"$parse"],r}({component:r.type}))}),S7t.forEach(r=>{const e=r.referenceName.charAt(0).toLowerCase()+r.referenceName.slice(1);t.module("faom").factory(e,function f4(t,r=""){const e=function(i){const o=`${lf}${r}`,a=`instantiating injectable '${Wf(t)?iy(t):String(t)}'`;NS(i,r,o,a);try{return i.get(o).get(t)}catch(l){throw new Error(`Error while ${a}: ${l.message||l}`)}};return e.$inject=[cv],e}(r.type))})})(angular),ha().bootstrapModule($dt).catch(t=>console.error(t))}};window.faomAngular=E7t},1448:function(m){var T;T=()=>(()=>{"use strict";var y=[,(E,D,k)=>{k.r(D),k.d(D,{default:()=>P});var G,R=(G=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0,function(Q={}){var Z,X,H=Q;function z(){function te(oi){const ei=ct;$e=he=0,ct=new Map,ei.forEach(Ci=>{try{Ci(oi)}catch(Zn){console.error(Zn)}}),this.xa(),tn&&tn.Ta()}let he=0,$e=0,ct=new Map,tn=null,an=null;this.requestAnimationFrame=function(oi){he||(he=requestAnimationFrame(te.bind(this)));const ei=++$e;return ct.set(ei,oi),ei},this.cancelAnimationFrame=function(oi){ct.delete(oi),he&&0==ct.size&&(cancelAnimationFrame(he),he=0)},this.Ra=function(oi){an&&(document.body.remove(an),an=null),oi||(an=document.createElement("div"),an.style.backgroundColor="black",an.style.position="fixed",an.style.right=0,an.style.top=0,an.style.color="white",an.style.padding="4px",an.innerHTML="RIVE FPS",oi=function(ei){an.innerHTML="RIVE FPS "+ei.toFixed(1)},document.body.appendChild(an)),tn=new function(){let ei=0,Ci=0;this.Ta=function(){var Zn=performance.now();Ci?(++ei,1e3<(Zn-=Ci)&&(oi(1e3*ei/Zn),ei=Ci=0)):(Ci=Zn,ei=0)}}},this.Oa=function(){an&&(document.body.remove(an),an=null),tn=null},this.xa=function(){}}function fe(te){console.assert(!0);const he=new Map;let $e=-1/0;this.push=function(ct){return he.has(ct=ct+((1<<te)-1)>>te)&&clearTimeout(he.get(ct)),he.set(ct,setTimeout(function(){he.delete(ct),0==he.length?$e=-1/0:ct==$e&&($e=Math.max(...he.keys()),console.assert($e<ct))},1e3)),$e=Math.max(ct,$e),$e<<te}}H.ready=new Promise((te,he)=>{Z=te,X=he});const q=H.onRuntimeInitialized;H.onRuntimeInitialized=function(){q&&q();let te=H.decodeAudio;H.decodeAudio=function(tn,an){an(tn=te(tn))};let he=H.decodeFont;H.decodeFont=function(tn,an){an(tn=he(tn))};const $e=H.FileAssetLoader;H.ptrToAsset=tn=>{let an=H.ptrToFileAsset(tn);return an.isImage?H.ptrToImageAsset(tn):an.isFont?H.ptrToFontAsset(tn):an.isAudio?H.ptrToAudioAsset(tn):an},H.CustomFileAssetLoader=$e.extend("CustomFileAssetLoader",{__construct:function({loadContents:tn}){this.__parent.__construct.call(this),this.Ha=tn},loadContents:function(tn,an){return tn=H.ptrToAsset(tn),this.Ha(tn,an)}}),H.CDNFileAssetLoader=$e.extend("CDNFileAssetLoader",{__construct:function(){this.__parent.__construct.call(this)},loadContents:function(tn){let an=H.ptrToAsset(tn);return""!==(tn=an.cdnUuid)&&(oi=an.cdnBaseUrl+"/"+tn,(Ci=new XMLHttpRequest).responseType="arraybuffer",Ci.onreadystatechange=function(){4==Ci.readyState&&200==Ci.status&&(oi=>{an.decode(new Uint8Array(oi.response))})(Ci)},Ci.open("GET",oi,!0),Ci.send(null),!0);var oi,Ci}}),H.FallbackFileAssetLoader=$e.extend("FallbackFileAssetLoader",{__construct:function(){this.__parent.__construct.call(this),this.wa=[]},addLoader:function(tn){this.wa.push(tn)},loadContents:function(tn,an){for(let oi of this.wa)if(oi.loadContents(tn,an))return!0;return!1}});let ct=H.computeAlignment;H.computeAlignment=function(tn,an,oi,ei,Ci=1){return ct.call(this,tn,an,oi,ei,Ci)}};const ne="createConicGradient createImageData createLinearGradient createPattern createRadialGradient getContextAttributes getImageData getLineDash getTransform isContextLost isPointInPath isPointInStroke measureText".split(" "),N=new function(){function te(){if(!he){let Or=function(Zo,jr,as){if(jr=dr.createShader(jr),dr.shaderSource(jr,as),dr.compileShader(jr),0<((as=dr.getShaderInfoLog(jr))||"").length)throw as;dr.attachShader(Zo,jr)};var Rn=document.createElement("canvas"),nr={alpha:1,depth:0,stencil:0,antialias:0,premultipliedAlpha:1,preserveDrawingBuffer:0,powerPreference:"high-performance",failIfMajorPerformanceCaveat:0,enableExtensionsByDefault:1,explicitSwapControl:1,renderViaOffscreenBackBuffer:1};let dr;if(/iPhone|iPad|iPod/i.test(navigator.userAgent)){if(dr=Rn.getContext("webgl",nr),$e=1,!dr)return console.log("No WebGL support. Image mesh will not be drawn."),!1}else if(dr=Rn.getContext("webgl2",nr))$e=2;else{if(!(dr=Rn.getContext("webgl",nr)))return console.log("No WebGL support. Image mesh will not be drawn."),!1;$e=1}if(dr=new Proxy(dr,{get:(Zo,jr)=>Zo.isContextLost()?(Ci||(console.error("Cannot render the mesh because the GL Context was lost. Tried to invoke ",jr),Ci=!0),"function"==typeof Zo[jr]?function(){}:void 0):"function"==typeof Zo[jr]?function(...as){return Zo[jr].apply(Zo,as)}:Zo[jr],set(Zo,jr,as){if(!Zo.isContextLost())return Zo[jr]=as,!0;Ci||(console.error("Cannot render the mesh because the GL Context was lost. Tried to set property "+jr),Ci=!0)}}),ct=Math.min(dr.getParameter(dr.MAX_RENDERBUFFER_SIZE),dr.getParameter(dr.MAX_TEXTURE_SIZE)),Or(Rn=dr.createProgram(),dr.VERTEX_SHADER,"attribute vec2 vertex;\n                attribute vec2 uv;\n                uniform vec4 mat;\n                uniform vec2 translate;\n                varying vec2 st;\n                void main() {\n                    st = uv;\n                    gl_Position = vec4(mat2(mat) * vertex + translate, 0, 1);\n                }"),Or(Rn,dr.FRAGMENT_SHADER,"precision highp float;\n                uniform sampler2D image;\n                varying vec2 st;\n                void main() {\n                    gl_FragColor = texture2D(image, st);\n                }"),dr.bindAttribLocation(Rn,0,"vertex"),dr.bindAttribLocation(Rn,1,"uv"),dr.linkProgram(Rn),0<((nr=dr.getProgramInfoLog(Rn))||"").trim().length)throw nr;tn=dr.getUniformLocation(Rn,"mat"),an=dr.getUniformLocation(Rn,"translate"),dr.useProgram(Rn),dr.bindBuffer(dr.ARRAY_BUFFER,dr.createBuffer()),dr.enableVertexAttribArray(0),dr.enableVertexAttribArray(1),dr.bindBuffer(dr.ELEMENT_ARRAY_BUFFER,dr.createBuffer()),dr.uniform1i(dr.getUniformLocation(Rn,"image"),0),dr.pixelStorei(dr.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),he=dr}return!0}let he=null,$e=0,ct=0,tn=null,an=null,oi=0,ei=0,Ci=!1;te(),this.eb=function(){return te(),ct},this.Ma=function(Rn){he.deleteTexture&&he.deleteTexture(Rn)},this.La=function(Rn){if(!te())return null;const nr=he.createTexture();return nr?(he.bindTexture(he.TEXTURE_2D,nr),he.texImage2D(he.TEXTURE_2D,0,he.RGBA,he.RGBA,he.UNSIGNED_BYTE,Rn),he.texParameteri(he.TEXTURE_2D,he.TEXTURE_WRAP_S,he.CLAMP_TO_EDGE),he.texParameteri(he.TEXTURE_2D,he.TEXTURE_WRAP_T,he.CLAMP_TO_EDGE),he.texParameteri(he.TEXTURE_2D,he.TEXTURE_MAG_FILTER,he.LINEAR),2==$e?(he.texParameteri(he.TEXTURE_2D,he.TEXTURE_MIN_FILTER,he.LINEAR_MIPMAP_LINEAR),he.generateMipmap(he.TEXTURE_2D)):he.texParameteri(he.TEXTURE_2D,he.TEXTURE_MIN_FILTER,he.LINEAR),nr):null};const Zn=new fe(8),vr=new fe(8),ti=new fe(10),Rr=new fe(10);this.Qa=function(Rn,nr,dr,Or,Zo){if(te()){var jr=Zn.push(Rn),as=vr.push(nr);if(he.canvas){for(var $s of((he.canvas.width!=jr||he.canvas.height!=as)&&(he.canvas.width=jr,he.canvas.height=as),he.viewport(0,as-nr,Rn,nr),he.disable(he.SCISSOR_TEST),he.clearColor(0,0,0,0),he.clear(he.COLOR_BUFFER_BIT),he.enable(he.SCISSOR_TEST),dr.sort((Vs,ga)=>ga.Ba-Vs.Ba),jr=ti.push(Or),oi!=jr&&(he.bufferData(he.ARRAY_BUFFER,8*jr,he.DYNAMIC_DRAW),oi=jr),jr=0,dr))he.bufferSubData(he.ARRAY_BUFFER,jr,$s.ia),jr+=4*$s.ia.length;for(var oc of(console.assert(jr==4*Or),dr))he.bufferSubData(he.ARRAY_BUFFER,jr,oc.Ea),jr+=4*oc.Ea.length;for(var Qa of(console.assert(jr==8*Or),jr=Rr.push(Zo),ei!=jr&&(he.bufferData(he.ELEMENT_ARRAY_BUFFER,2*jr,he.DYNAMIC_DRAW),ei=jr),$s=0,dr))he.bufferSubData(he.ELEMENT_ARRAY_BUFFER,$s,Qa.indices),$s+=2*Qa.indices.length;console.assert($s==2*Zo),Qa=0,oc=!0,jr=$s=0;for(const Vs of dr){Vs.image.da!=Qa&&(he.bindTexture(he.TEXTURE_2D,Vs.image.ca||null),Qa=Vs.image.da),Vs.hb?(he.scissor(Vs.na,as-Vs.oa-Vs.va,Vs.sb,Vs.va),oc=!0):oc&&(he.scissor(0,as-nr,Rn,nr),oc=!1);const ga=-2/nr;he.uniform4f(tn,Vs.N[0]*(dr=2/Rn)*Vs.X,Vs.N[1]*ga*Vs.Y,Vs.N[2]*dr*Vs.X,Vs.N[3]*ga*Vs.Y),he.uniform2f(an,Vs.N[4]*dr*Vs.X+dr*(Vs.na-Vs.fb*Vs.X)-1,Vs.N[5]*ga*Vs.Y+ga*(Vs.oa-Vs.gb*Vs.Y)+1),he.vertexAttribPointer(0,2,he.FLOAT,!1,0,jr),he.vertexAttribPointer(1,2,he.FLOAT,!1,0,jr+4*Or),he.drawElements(he.TRIANGLES,Vs.indices.length,he.UNSIGNED_SHORT,$s),jr+=4*Vs.ia.length,$s+=2*Vs.indices.length}console.assert(jr==4*Or),console.assert($s==2*Zo)}}},this.canvas=function(){return te()&&he.canvas}},Y=H.onRuntimeInitialized;H.onRuntimeInitialized=function(){function te(gn){switch(gn){case Zn.srcOver:return"source-over";case Zn.screen:return"screen";case Zn.overlay:return"overlay";case Zn.darken:return"darken";case Zn.lighten:return"lighten";case Zn.colorDodge:return"color-dodge";case Zn.colorBurn:return"color-burn";case Zn.hardLight:return"hard-light";case Zn.softLight:return"soft-light";case Zn.difference:return"difference";case Zn.exclusion:return"exclusion";case Zn.multiply:return"multiply";case Zn.hue:return"hue";case Zn.saturation:return"saturation";case Zn.color:return"color";case Zn.luminosity:return"luminosity"}}function he(gn){return"rgba("+((16711680&gn)>>>16)+","+((65280&gn)>>>8)+","+((255&gn)>>>0)+","+((4278190080&gn)>>>24)/255+")"}function $e(){0<as.length&&(N.Qa(jr.drawWidth(),jr.drawHeight(),as,$s,oc),as=[],oc=$s=0,jr.reset(512,512));for(const gn of Zo){for(const po of gn.u)po();gn.u=[]}Zo.clear()}Y&&Y();var ct=H.RenderPaintStyle;const tn=H.RenderPath,an=H.RenderPaint,oi=H.Renderer,ei=H.StrokeCap,Ci=H.StrokeJoin,Zn=H.BlendMode,vr=ct.fill,ti=ct.stroke,Rr=H.FillRule.evenOdd;let Rn=1;var nr=H.RenderImage.extend("CanvasRenderImage",{__construct:function({R:gn,W:po}={}){this.__parent.__construct.call(this),this.da=Rn,Rn=Rn+1&2147483647||1,this.R=gn,this.W=po},__destruct:function(){this.ca&&(N.Ma(this.ca),URL.revokeObjectURL(this.la)),this.__parent.__destruct.call(this)},decode:function(gn){var po=this;po.W&&po.W(po);var Ys=new Image;po.la=URL.createObjectURL(new Blob([gn],{type:"image/png"})),Ys.onload=function(){po.Ga=Ys,po.ca=N.La(Ys),po.size(Ys.width,Ys.height),po.R&&po.R(po)},Ys.src=po.la}}),dr=tn.extend("CanvasRenderPath",{__construct:function(){this.__parent.__construct.call(this),this.F=new Path2D},rewind:function(){this.F=new Path2D},addPath:function(gn,po,Ys,Gr,ts,Js,va){var Ma=this.F,Pa=Ma.addPath;gn=gn.F;const Ul=new DOMMatrix;Ul.a=po,Ul.b=Ys,Ul.c=Gr,Ul.d=ts,Ul.e=Js,Ul.f=va,Pa.call(Ma,gn,Ul)},fillRule:function(gn){this.ka=gn},moveTo:function(gn,po){this.F.moveTo(gn,po)},lineTo:function(gn,po){this.F.lineTo(gn,po)},cubicTo:function(gn,po,Ys,Gr,ts,Js){this.F.bezierCurveTo(gn,po,Ys,Gr,ts,Js)},close:function(){this.F.closePath()}}),Or=an.extend("CanvasRenderPaint",{color:function(gn){this.ma=he(gn)},thickness:function(gn){this.Ja=gn},join:function(gn){switch(gn){case Ci.miter:this.ba="miter";break;case Ci.round:this.ba="round";break;case Ci.bevel:this.ba="bevel"}},cap:function(gn){switch(gn){case ei.butt:this.aa="butt";break;case ei.round:this.aa="round";break;case ei.square:this.aa="square"}},style:function(gn){this.Ia=gn},blendMode:function(gn){this.Fa=te(gn)},clearGradient:function(){this.P=null},linearGradient:function(gn,po,Ys,Gr){this.P={Ca:gn,Da:po,qa:Ys,ra:Gr,ga:[]}},radialGradient:function(gn,po,Ys,Gr){this.P={Ca:gn,Da:po,qa:Ys,ra:Gr,ga:[],bb:!0}},addStop:function(gn,po){this.P.ga.push({color:gn,stop:po})},completeGradient:function(){},draw:function(gn,po,Ys){let Gr=this.Ia;var ts=this.ma,Js=this.P;if(gn.globalCompositeOperation=this.Fa,null!=Js){ts=Js.Ca;var va=Js.Da;const Pa=Js.qa;var Ma=Js.ra;const Ul=Js.ga;Js.bb?(Js=Pa-ts,Ma-=va,ts=gn.createRadialGradient(ts,va,0,ts,va,Math.sqrt(Js*Js+Ma*Ma))):ts=gn.createLinearGradient(ts,va,Pa,Ma);for(let Ft=0,me=Ul.length;Ft<me;Ft++)ts.addColorStop((va=Ul[Ft]).stop,he(va.color));this.ma=ts,this.P=null}switch(Gr){case ti:gn.strokeStyle=ts,gn.lineWidth=this.Ja,gn.lineCap=this.aa,gn.lineJoin=this.ba,gn.stroke(po);break;case vr:gn.fillStyle=ts,gn.fill(po,Ys)}}});const Zo=new Set;let jr=null,as=[],$s=0,oc=0;var Qa=H.CanvasRenderer=oi.extend("Renderer",{__construct:function(gn){this.__parent.__construct.call(this),this.D=[1,0,0,1,0,0],this.o=gn.getContext("2d"),this.ja=gn,this.u=[]},save:function(){this.D.push(...this.D.slice(this.D.length-6)),this.u.push(this.o.save.bind(this.o))},restore:function(){const gn=this.D.length-6;if(6>gn)throw"restore() called without matching save().";this.D.splice(gn),this.u.push(this.o.restore.bind(this.o))},transform:function(gn,po,Ys,Gr,ts,Js){const va=this.D,Ma=va.length-6;va.splice(Ma,6,va[Ma]*gn+va[Ma+2]*po,va[Ma+1]*gn+va[Ma+3]*po,va[Ma]*Ys+va[Ma+2]*Gr,va[Ma+1]*Ys+va[Ma+3]*Gr,va[Ma]*ts+va[Ma+2]*Js+va[Ma+4],va[Ma+1]*ts+va[Ma+3]*Js+va[Ma+5]),this.u.push(this.o.transform.bind(this.o,gn,po,Ys,Gr,ts,Js))},rotate:function(gn){const po=Math.sin(gn);gn=Math.cos(gn),this.transform(gn,po,-po,gn,0,0)},_drawPath:function(gn,po){this.u.push(po.draw.bind(po,this.o,gn.F,gn.ka===Rr?"evenodd":"nonzero"))},_drawRiveImage:function(gn,po,Ys){var Gr=gn.Ga;if(Gr){var ts=this.o,Js=te(po);this.u.push(function(){ts.globalCompositeOperation=Js,ts.globalAlpha=Ys,ts.drawImage(Gr,0,0),ts.globalAlpha=1})}},_getMatrix:function(gn){const po=this.D,Ys=po.length-6;for(let Gr=0;6>Gr;++Gr)gn[Gr]=po[Ys+Gr]},_drawImageMesh:function(gn,po,Ys,Gr,ts,Js,va,Ma,Pa,Ul){var Ft=this.o.canvas.width,me=this.o.canvas.height;const Oe=Pa-va,Je=Ul-Ma;va=Math.max(va,0),Ma=Math.max(Ma,0),Pa=Math.min(Pa,Ft),Ul=Math.min(Ul,me);const yt=Pa-va,Bt=Ul-Ma;if(console.assert(yt<=Math.min(Oe,Ft)),console.assert(Bt<=Math.min(Je,me)),!(0>=yt||0>=Bt)){Pa=yt<Oe||Bt<Je,Ft=Ul=1;var yn=Math.ceil(yt*Ul),Sn=Math.ceil(Bt*Ft);me=N.eb(),yn>me&&(Ul*=me/yn,yn=me),Sn>me&&(Ft*=me/Sn,Sn=me),jr||(jr=new H.DynamicRectanizer(me),jr.reset(512,512)),0>(me=jr.addRect(yn,Sn))&&($e(),Zo.add(this),me=jr.addRect(yn,Sn),console.assert(0<=me));var ii=65535&me,ai=me>>16;as.push({N:this.D.slice(this.D.length-6),image:gn,na:ii,oa:ai,fb:va,gb:Ma,sb:yn,va:Sn,X:Ul,Y:Ft,ia:new Float32Array(Gr),Ea:new Float32Array(ts),indices:new Uint16Array(Js),hb:Pa,Ba:gn.da<<1|(Pa?1:0)}),$s+=Gr.length,oc+=Js.length;var br=this.o,Kn=te(po);this.u.push(function(){br.save(),br.resetTransform(),br.globalCompositeOperation=Kn,br.globalAlpha=Ys;const xr=N.canvas();xr&&br.drawImage(xr,ii,ai,yn,Sn,va,Ma,yt,Bt),br.restore()})}},_clipPath:function(gn){this.u.push(this.o.clip.bind(this.o,gn.F,gn.ka===Rr?"evenodd":"nonzero"))},clear:function(){Zo.add(this),this.u.push(this.o.clearRect.bind(this.o,0,0,this.ja.width,this.ja.height))},flush:function(){},translate:function(gn,po){this.transform(1,0,0,1,gn,po)}});H.makeRenderer=function(gn){const po=new Qa(gn),Ys=po.o;return new Proxy(po,{get(Gr,ts){if("function"==typeof Gr[ts])return function(...Js){return Gr[ts].apply(Gr,Js)};if("function"==typeof Ys[ts]){if(-1<ne.indexOf(ts))throw Error("RiveException: Method call to '"+ts+"()' is not allowed, as the renderer cannot immediately pass through the return                 values of any canvas 2d context methods.");return function(...Js){po.u.push(Ys[ts].bind(Ys,...Js))}}return Gr[ts]},set(Gr,ts,Js){if(ts in Ys)return po.u.push(()=>{Ys[ts]=Js}),!0}})},H.decodeImage=function(gn,po){new nr({R:po}).decode(gn)},H.renderFactory={makeRenderPaint:function(){return new Or},makeRenderPath:function(){return new dr},makeRenderImage:function(){let gn=ga;return new nr({W:()=>{gn.total++},R:()=>{if(gn.loaded++,gn.loaded===gn.total){const po=gn.ready;po&&(po(),gn.ready=null)}}})}};let Vs=H.load,ga=null;H.load=function(gn,po,Ys=!0){const Gr=new H.FallbackFileAssetLoader;return void 0!==po&&Gr.addLoader(po),Ys&&(po=new H.CDNFileAssetLoader,Gr.addLoader(po)),new Promise(function(ts){let Js=null;ga={total:0,loaded:0,ready:function(){ts(Js)}},Js=Vs(gn,Gr),0==ga.total&&ts(Js)})};let Rl=H.RendererWrapper.prototype.align;H.RendererWrapper.prototype.align=function(gn,po,Ys,Gr,ts=1){Rl.call(this,gn,po,Ys,Gr,ts)},ct=new z,H.requestAnimationFrame=ct.requestAnimationFrame.bind(ct),H.cancelAnimationFrame=ct.cancelAnimationFrame.bind(ct),H.enableFPSCounter=ct.Ra.bind(ct),H.disableFPSCounter=ct.Oa,ct.xa=$e,H.resolveAnimationFrame=$e,H.cleanup=function(){jr&&jr.delete()}};var De,Fe,W=Object.assign({},H),J="./this.program",n="object"==typeof window,K="function"==typeof importScripts,se="";(n||K)&&(K?se=self.location.href:typeof document<"u"&&document.currentScript&&(se=document.currentScript.src),G&&(se=G),se=0!==se.indexOf("blob:")?se.substr(0,se.replace(/[?#].*/,"").lastIndexOf("/")+1):"",K&&(Fe=te=>{var he=new XMLHttpRequest;return he.open("GET",te,!1),he.responseType="arraybuffer",he.send(null),new Uint8Array(he.response)}),De=(te,he,$e)=>{var ct=new XMLHttpRequest;ct.open("GET",te,!0),ct.responseType="arraybuffer",ct.onload=()=>{200==ct.status||0==ct.status&&ct.response?he(ct.response):$e()},ct.onerror=$e,ct.send(null)});var be,_e=H.print||console.log.bind(console),ke=H.printErr||console.error.bind(console);Object.assign(H,W),W=null,H.thisProgram&&(J=H.thisProgram),H.wasmBinary&&(be=H.wasmBinary),"object"!=typeof WebAssembly&&wt("no native wasm support detected");var Ie,Se,le,xe,We,st,ut,Ae,ye,Re,de=!1;function Qe(){var te=Ie.buffer;H.HEAP8=le=new Int8Array(te),H.HEAP16=We=new Int16Array(te),H.HEAP32=ut=new Int32Array(te),H.HEAPU8=xe=new Uint8Array(te),H.HEAPU16=st=new Uint16Array(te),H.HEAPU32=Ae=new Uint32Array(te),H.HEAPF32=ye=new Float32Array(te),H.HEAPF64=Re=new Float64Array(te)}var vt,Nt=[],Dt=[],qe=[];function ze(){var te=H.preRun.shift();Nt.unshift(te)}var Gt,Ge=0,dt=null,Dn=null;function wt(te){throw H.onAbort&&H.onAbort(te),ke(te="Aborted("+te+")"),de=!0,te=new WebAssembly.RuntimeError(te+". Build with -sASSERTIONS for more info."),X(te),te}function Hn(te){return te.startsWith("data:application/octet-stream;base64,")}if(!Hn(Gt="canvas_advanced.wasm")){var An=Gt;Gt=H.locateFile?H.locateFile(An,se):se+An}function Kt(te){if(te==Gt&&be)return new Uint8Array(be);if(Fe)return Fe(te);throw"both async and sync fetching of the wasm failed"}function Vt(te,he,$e){return function Ot(te){if(!be&&(n||K)){if("function"==typeof fetch&&!te.startsWith("file://"))return fetch(te,{credentials:"same-origin"}).then(he=>{if(!he.ok)throw"failed to load wasm binary file at '"+te+"'";return he.arrayBuffer()}).catch(()=>Kt(te));if(De)return new Promise((he,$e)=>{De(te,ct=>he(new Uint8Array(ct)),$e)})}return Promise.resolve().then(()=>Kt(te))}(te).then(ct=>WebAssembly.instantiate(ct,he)).then(ct=>ct).then($e,ct=>{ke("failed to asynchronously prepare wasm: "+ct),wt(ct)})}var kn=te=>{for(;0<te.length;)te.shift()(H)};function $n(te){if(void 0===te)return"_unknown";var he=(te=te.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return 48<=he&&57>=he?`_${te}`:te}function Ii(te,he){return te=$n(te),{[te]:function(){return he.apply(this,arguments)}}[te]}function Ni(){this.G=[void 0],this.ta=[]}var Ki=new Ni,Qr=void 0;function Cr(te){throw new Qr(te)}var wr=te=>(te||Cr("Cannot use deleted val. handle = "+te),Ki.get(te).value),vs=te=>{switch(te){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return Ki.Za({Aa:1,value:te})}};function rs(te){var he=Error,$e=Ii(te,function(ct){this.name=te,this.message=ct,void 0!==(ct=Error(ct).stack)&&(this.stack=this.toString()+"\n"+ct.replace(/^Error(:[^\n]*)?\n/,""))});return $e.prototype=Object.create(he.prototype),$e.prototype.constructor=$e,$e.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},$e}var ur=void 0,Ns=void 0;function to(te){for(var he="";xe[te];)he+=Ns[xe[te++]];return he}var Qs=[];function pr(){for(;Qs.length;){var te=Qs.pop();te.g.M=!1,te.delete()}}var Ro=void 0,Xo={};function El(te,he){for(void 0===he&&Cr("ptr should not be undefined");te.l;)he=te.S(he),te=te.l;return he}var ks={};function ol(te){var he=to(te=du(te));return Jr(te),he}function Xa(te,he){var $e=ks[te];return void 0===$e&&Cr(he+" has unknown type "+ol(te)),$e}function ya(){}var Dr=!1;function ja(te){--te.count.value,0===te.count.value&&(te.s?te.A.H(te.s):te.j.h.H(te.i))}function ws(te,he,$e){return he===$e?te:void 0===$e.l||null===(te=ws(te,he,$e.l))?null:$e.Pa(te)}var Ko={},Bo=void 0;function Dl(te){throw new Bo(te)}function qr(te,he){return he.j&&he.i||Dl("makeClassHandle requires ptr and ptrType"),!!he.A!=!!he.s&&Dl("Both smartPtrType and smartPtr must be specified"),he.count={value:1},Wo(Object.create(te,{g:{value:he}}))}function Wo(te){return typeof FinalizationRegistry>"u"?(Wo=he=>he,te):(Dr=new FinalizationRegistry(he=>{ja(he.g)}),ya=he=>{Dr.unregister(he)},(Wo=he=>{var $e=he.g;return $e.s&&Dr.register(he,{g:$e},he),he})(te))}var Il={};function os(te){for(;te.length;){var he=te.pop();te.pop()(he)}}function Gs(te){return this.fromWireType(ut[te>>2])}var _s={},vl={};function Hs(te,he,$e){function ct(ei){(ei=$e(ei)).length!==te.length&&Dl("Mismatched type converter count");for(var Ci=0;Ci<te.length;++Ci)Us(te[Ci],ei[Ci])}te.forEach(function(ei){vl[ei]=he});var tn=Array(he.length),an=[],oi=0;he.forEach((ei,Ci)=>{ks.hasOwnProperty(ei)?tn[Ci]=ks[ei]:(an.push(ei),_s.hasOwnProperty(ei)||(_s[ei]=[]),_s[ei].push(()=>{tn[Ci]=ks[ei],++oi===an.length&&ct(tn)}))}),0===an.length&&ct(tn)}function es(te){switch(te){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError(`Unknown type size: ${te}`)}}function Us(te,he,$e={}){if(!("argPackAdvance"in he))throw new TypeError("registerType registeredInstance requires argPackAdvance");!function Al(te,he,$e={}){var ct=he.name;if(te||Cr(`type "${ct}" must have a positive integer typeid pointer`),ks.hasOwnProperty(te)){if($e.ab)return;Cr(`Cannot register type '${ct}' twice`)}ks[te]=he,delete vl[te],_s.hasOwnProperty(te)&&(he=_s[te],delete _s[te],he.forEach(tn=>tn()))}(te,he,$e)}function Ml(te){Cr(te.g.j.h.name+" instance already deleted")}function rc(){}function Xl(te,he,$e){if(void 0===te[he].m){var ct=te[he];te[he]=function(){return te[he].m.hasOwnProperty(arguments.length)||Cr(`Function '${$e}' called with an invalid number of arguments (${arguments.length}) - expects one of (${te[he].m})!`),te[he].m[arguments.length].apply(this,arguments)},te[he].m=[],te[he].m[ct.L]=ct}}function uu(te,he,$e){H.hasOwnProperty(te)?((void 0===$e||void 0!==H[te].m&&void 0!==H[te].m[$e])&&Cr(`Cannot register public name '${te}' twice`),Xl(H,te,te),H.hasOwnProperty($e)&&Cr(`Cannot register multiple overloads of a function with the same number of arguments (${$e})!`),H[te].m[$e]=he):(H[te]=he,void 0!==$e&&(H[te].tb=$e))}function qu(te,he,$e,ct,tn,an,oi,ei){this.name=te,this.constructor=he,this.B=$e,this.H=ct,this.l=tn,this.Ua=an,this.S=oi,this.Pa=ei,this.ya=[]}function Fa(te,he,$e){for(;he!==$e;)he.S||Cr(`Expected null or instance of ${$e.name}, got an instance of ${he.name}`),te=he.S(te),he=he.l;return te}function xc(te,he){return null===he?(this.ea&&Cr(`null is not a valid ${this.name}`),0):(he.g||Cr(`Cannot pass "${$t(he)}" as a ${this.name}`),he.g.i||Cr(`Cannot pass deleted object as a pointer of type ${this.name}`),Fa(he.g.i,he.g.j.h,this.h))}function ad(te,he){if(null===he){if(this.ea&&Cr(`null is not a valid ${this.name}`),this.V){var $e=this.fa();return null!==te&&te.push(this.H,$e),$e}return 0}if(he.g||Cr(`Cannot pass "${$t(he)}" as a ${this.name}`),he.g.i||Cr(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.U&&he.g.j.U&&Cr(`Cannot convert argument of type ${he.g.A?he.g.A.name:he.g.j.name} to parameter type ${this.name}`),$e=Fa(he.g.i,he.g.j.h,this.h),this.V)switch(void 0===he.g.s&&Cr("Passing raw pointer to smart pointer is illegal"),this.nb){case 0:he.g.A===this?$e=he.g.s:Cr(`Cannot convert argument of type ${he.g.A?he.g.A.name:he.g.j.name} to parameter type ${this.name}`);break;case 1:$e=he.g.s;break;case 2:if(he.g.A===this)$e=he.g.s;else{var ct=he.clone();$e=this.jb($e,vs(function(){ct.delete()})),null!==te&&te.push(this.H,$e)}break;default:Cr("Unsupporting sharing policy")}return $e}function Du(te,he){return null===he?(this.ea&&Cr(`null is not a valid ${this.name}`),0):(he.g||Cr(`Cannot pass "${$t(he)}" as a ${this.name}`),he.g.i||Cr(`Cannot pass deleted object as a pointer of type ${this.name}`),he.g.j.U&&Cr(`Cannot convert argument of type ${he.g.j.name} to parameter type ${this.name}`),Fa(he.g.i,he.g.j.h,this.h))}function Ka(te,he,$e,ct){this.name=te,this.h=he,this.ea=$e,this.U=ct,this.V=!1,this.H=this.jb=this.fa=this.za=this.nb=this.ib=void 0,void 0!==he.l?this.toWireType=ad:(this.toWireType=ct?xc:Du,this.v=null)}function Ec(te,he,$e){H.hasOwnProperty(te)||Dl("Replacing nonexistant public symbol"),void 0!==H[te].m&&void 0!==$e?H[te].m[$e]=he:(H[te]=he,H[te].L=$e)}var ri=[],Xc=te=>{var he=ri[te];return he||(te>=ri.length&&(ri.length=te+1),ri[te]=he=vt.get(te)),he};function ta(te,he){var $e=(te=to(te)).includes("j")?((te,he)=>{var $e=[];return function(){if($e.length=0,Object.assign($e,arguments),te.includes("j")){var ct=H["dynCall_"+te];ct=$e&&$e.length?ct.apply(null,[he].concat($e)):ct.call(null,he)}else ct=Xc(he).apply(null,$e);return ct}})(te,he):Xc(he);return"function"!=typeof $e&&Cr(`unknown function pointer with signature ${te}: ${he}`),$e}var Ia=void 0;function ns(te,he){var ct=[],tn={};throw he.forEach(function $e(an){tn[an]||ks[an]||(vl[an]?vl[an].forEach($e):(ct.push(an),tn[an]=!0))}),new Ia(`${te}: `+ct.map(ol).join([", "]))}function Mr(te,he,$e,ct,tn){var an=he.length;2>an&&Cr("argTypes array size mismatch! Must at least get return value and 'this' types!");var oi=null!==he[1]&&null!==$e,ei=!1;for($e=1;$e<he.length;++$e)if(null!==he[$e]&&void 0===he[$e].v){ei=!0;break}var Ci="void"!==he[0].name,Zn=an-2,vr=Array(Zn),ti=[],Rr=[];return function(){if(arguments.length!==Zn&&Cr(`function ${te} called with ${arguments.length} arguments, expected ${Zn} args!`),Rr.length=0,ti.length=oi?2:1,ti[0]=tn,oi){var Rn=he[1].toWireType(Rr,this);ti[1]=Rn}for(var nr=0;nr<Zn;++nr)vr[nr]=he[nr+2].toWireType(Rr,arguments[nr]),ti.push(vr[nr]);if(nr=ct.apply(null,ti),ei)os(Rr);else for(var dr=oi?1:2;dr<he.length;dr++)null!==he[dr].v&&he[dr].v(1===dr?Rn:vr[dr-2]);return Ci?he[0].fromWireType(nr):void 0}}function Dc(te,he){for(var $e=[],ct=0;ct<te;ct++)$e.push(Ae[he+4*ct>>2]);return $e}function mc(te,he,$e){return te instanceof Object||Cr(`${$e} with invalid "this": ${te}`),te instanceof he.h.constructor||Cr(`${$e} incompatible with "this" of type ${te.constructor.name}`),te.g.i||Cr(`cannot call emscripten binding method ${$e} on deleted object`),Fa(te.g.i,te.g.j.h,he.h)}function At(te){te>=Ki.ua&&0==--Ki.get(te).Aa&&Ki.$a(te)}function _n(te,he,$e){switch(he){case 0:return function(ct){return this.fromWireType(($e?le:xe)[ct])};case 1:return function(ct){return this.fromWireType(($e?We:st)[ct>>1])};case 2:return function(ct){return this.fromWireType(($e?ut:Ae)[ct>>2])};default:throw new TypeError("Unknown integer type: "+te)}}function $t(te){if(null===te)return"null";var he=typeof te;return"object"===he||"array"===he||"function"===he?te.toString():""+te}function qt(te,he){switch(he){case 2:return function($e){return this.fromWireType(ye[$e>>2])};case 3:return function($e){return this.fromWireType(Re[$e>>3])};default:throw new TypeError("Unknown float type: "+te)}}function Mn(te,he,$e){switch(he){case 0:return $e?function(ct){return le[ct]}:function(ct){return xe[ct]};case 1:return $e?function(ct){return We[ct>>1]}:function(ct){return st[ct>>1]};case 2:return $e?function(ct){return ut[ct>>2]}:function(ct){return Ae[ct>>2]};default:throw new TypeError("Unknown integer type: "+te)}}var En=(te,he,$e,ct)=>{if(0<ct){ct=$e+ct-1;for(var tn=0;tn<te.length;++tn){var an=te.charCodeAt(tn);if(55296<=an&&57343>=an&&(an=65536+((1023&an)<<10)|1023&te.charCodeAt(++tn)),127>=an){if($e>=ct)break;he[$e++]=an}else{if(2047>=an){if($e+1>=ct)break;he[$e++]=192|an>>6}else{if(65535>=an){if($e+2>=ct)break;he[$e++]=224|an>>12}else{if($e+3>=ct)break;he[$e++]=240|an>>18,he[$e++]=128|an>>12&63}he[$e++]=128|an>>6&63}he[$e++]=128|63&an}}he[$e]=0}},Oi=te=>{for(var he=0,$e=0;$e<te.length;++$e){var ct=te.charCodeAt($e);127>=ct?he++:2047>=ct?he+=2:55296<=ct&&57343>=ct?(he+=4,++$e):he+=3}return he},ir=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,or=(te,he,$e)=>{var ct=he+$e;for($e=he;te[$e]&&!($e>=ct);)++$e;if(16<$e-he&&te.buffer&&ir)return ir.decode(te.subarray(he,$e));for(ct="";he<$e;){var tn=te[he++];if(128&tn){var an=63&te[he++];if(192==(224&tn))ct+=String.fromCharCode((31&tn)<<6|an);else{var oi=63&te[he++];65536>(tn=224==(240&tn)?(15&tn)<<12|an<<6|oi:(7&tn)<<18|an<<12|oi<<6|63&te[he++])?ct+=String.fromCharCode(tn):(tn-=65536,ct+=String.fromCharCode(55296|tn>>10,56320|1023&tn))}}else ct+=String.fromCharCode(tn)}return ct},Ui=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,yr=(te,he)=>{for(var $e=te>>1,ct=$e+he/2;!($e>=ct)&&st[$e];)++$e;if(32<($e<<=1)-te&&Ui)return Ui.decode(xe.subarray(te,$e));for($e="",ct=0;!(ct>=he/2);++ct){var tn=We[te+2*ct>>1];if(0==tn)break;$e+=String.fromCharCode(tn)}return $e},Wr=(te,he,$e)=>{if(void 0===$e&&($e=2147483647),2>$e)return 0;var ct=he;$e=($e-=2)<2*te.length?$e/2:te.length;for(var tn=0;tn<$e;++tn)We[he>>1]=te.charCodeAt(tn),he+=2;return We[he>>1]=0,he-ct},zo=te=>2*te.length,ss=(te,he)=>{for(var $e=0,ct="";!($e>=he/4);){var tn=ut[te+4*$e>>2];if(0==tn)break;++$e,65536<=tn?(tn-=65536,ct+=String.fromCharCode(55296|tn>>10,56320|1023&tn)):ct+=String.fromCharCode(tn)}return ct},Ho=(te,he,$e)=>{if(void 0===$e&&($e=2147483647),4>$e)return 0;var ct=he;$e=ct+$e-4;for(var tn=0;tn<te.length;++tn){var an=te.charCodeAt(tn);if(55296<=an&&57343>=an&&(an=65536+((1023&an)<<10)|1023&te.charCodeAt(++tn)),ut[he>>2]=an,(he+=4)+4>$e)break}return ut[he>>2]=0,he-ct},Ps=te=>{for(var he=0,$e=0;$e<te.length;++$e){var ct=te.charCodeAt($e);55296<=ct&&57343>=ct&&++$e,he+=4}return he},bi={};function go(te){var he=bi[te];return void 0===he?to(te):he}var _l,Aa=[],Kc=[],kc={},fi=()=>{if(!_l){var he,te={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:J||"./this.program"};for(he in kc)void 0===kc[he]?delete te[he]:te[he]=kc[he];var $e=[];for(he in te)$e.push(`${he}=${te[he]}`);_l=$e}return _l},al=[null,[],[]],Is=te=>te%4==0&&(te%100!=0||te%400==0),ll=[31,29,31,30,31,30,31,31,30,31,30,31],ku=[31,28,31,30,31,30,31,31,30,31,30,31];Object.assign(Ni.prototype,{get(te){return this.G[te]},has(te){return void 0!==this.G[te]},Za(te){var he=this.ta.pop()||this.G.length;return this.G[he]=te,he},$a(te){this.G[te]=void 0,this.ta.push(te)}}),Qr=H.BindingError=class extends Error{constructor(te){super(te),this.name="BindingError"}},Ki.G.push({value:void 0},{value:null},{value:!0},{value:!1}),Ki.ua=Ki.G.length,H.count_emval_handles=function(){for(var te=0,he=Ki.ua;he<Ki.G.length;++he)void 0!==Ki.G[he]&&++te;return te},ur=H.PureVirtualError=rs("PureVirtualError");for(var na=Array(256),Eo=0;256>Eo;++Eo)na[Eo]=String.fromCharCode(Eo);Ns=na,H.getInheritedInstanceCount=function(){return Object.keys(Xo).length},H.getLiveInheritedInstances=function(){var he,te=[];for(he in Xo)Xo.hasOwnProperty(he)&&te.push(Xo[he]);return te},H.flushPendingDeletes=pr,H.setDelayFunction=function(te){Ro=te,Qs.length&&Ro&&Ro(pr)},Bo=H.InternalError=class extends Error{constructor(te){super(te),this.name="InternalError"}},rc.prototype.isAliasOf=function(te){if(!(this instanceof rc&&te instanceof rc))return!1;var he=this.g.j.h,$e=this.g.i,ct=te.g.j.h;for(te=te.g.i;he.l;)$e=he.S($e),he=he.l;for(;ct.l;)te=ct.S(te),ct=ct.l;return he===ct&&$e===te},rc.prototype.clone=function(){if(this.g.i||Ml(this),this.g.O)return this.g.count.value+=1,this;var te=Wo,he=Object,$e=he.create,ct=Object.getPrototypeOf(this),tn=this.g;return(te=te($e.call(he,ct,{g:{value:{count:tn.count,M:tn.M,O:tn.O,i:tn.i,j:tn.j,s:tn.s,A:tn.A}}}))).g.count.value+=1,te.g.M=!1,te},rc.prototype.delete=function(){this.g.i||Ml(this),this.g.M&&!this.g.O&&Cr("Object already scheduled for deletion"),ya(this),ja(this.g),this.g.O||(this.g.s=void 0,this.g.i=void 0)},rc.prototype.isDeleted=function(){return!this.g.i},rc.prototype.deleteLater=function(){return this.g.i||Ml(this),this.g.M&&!this.g.O&&Cr("Object already scheduled for deletion"),Qs.push(this),1===Qs.length&&Ro&&Ro(pr),this.g.M=!0,this},Ka.prototype.Va=function(te){return this.za&&(te=this.za(te)),te},Ka.prototype.pa=function(te){this.H&&this.H(te)},Ka.prototype.argPackAdvance=8,Ka.prototype.readValueFromPointer=Gs,Ka.prototype.deleteObject=function(te){null!==te&&te.delete()},Ka.prototype.fromWireType=function(te){function he(){return qr(this.h.B,this.V?{j:this.ib,i:$e,A:this,s:te}:{j:this,i:te})}var $e=this.Va(te);if(!$e)return this.pa(te),null;var ct=function da(te,he){return he=El(te,he),Xo[he]}(this.h,$e);if(void 0!==ct)return 0===ct.g.count.value?(ct.g.i=$e,ct.g.s=te,ct.clone()):(ct=ct.clone(),this.pa(te),ct);if(ct=this.h.Ua($e),!(ct=Ko[ct]))return he.call(this);var tn=ws($e,this.h,(ct=this.U?ct.Ka:ct.pointerType).h);return null===tn?he.call(this):qr(ct.h.B,this.V?{j:ct,i:tn,A:this,s:te}:{j:ct,i:tn})},Ia=H.UnboundTypeError=rs("UnboundTypeError");var Ha={_embind_create_inheriting_constructor:function(te,he,$e){te=to(te),he=Xa(he,"wrapper"),$e=wr($e);var ct=[].slice,tn=he.h,an=tn.B,oi=tn.l.B,ei=tn.l.constructor;for(var Ci in te=Ii(te,function(){tn.l.ya.forEach(function(Zn){if(this[Zn]===oi[Zn])throw new ur(`Pure virtual function ${Zn} must be implemented in JavaScript`)}.bind(this)),Object.defineProperty(this,"__parent",{value:an}),this.__construct.apply(this,ct.call(arguments))}),an.__construct=function(){this===an&&Cr("Pass correct 'this' to __construct");var Zn=ei.implement.apply(void 0,[this].concat(ct.call(arguments)));ya(Zn);var vr=Zn.g;Zn.notifyOnDestruction(),vr.O=!0,Object.defineProperties(this,{g:{value:vr}}),Wo(this),Zn=El(tn,Zn=vr.i),Xo.hasOwnProperty(Zn)?Cr(`Tried to register registered instance: ${Zn}`):Xo[Zn]=this},an.__destruct=function(){this===an&&Cr("Pass correct 'this' to __destruct"),ya(this);var Zn=this.g.i;Zn=El(tn,Zn),Xo.hasOwnProperty(Zn)?delete Xo[Zn]:Cr(`Tried to unregister unregistered instance: ${Zn}`)},te.prototype=Object.create(an),$e)te.prototype[Ci]=$e[Ci];return vs(te)},_embind_finalize_value_object:function(te){var he=Il[te];delete Il[te];var $e=he.fa,ct=he.H,tn=he.sa;Hs([te],tn.map(oi=>oi.Ya).concat(tn.map(oi=>oi.lb)),oi=>{var ei={};return tn.forEach((Ci,Zn)=>{var vr=oi[Zn],ti=Ci.Wa,Rr=Ci.Xa,Rn=oi[Zn+tn.length],nr=Ci.kb,dr=Ci.mb;ei[Ci.Sa]={read:Or=>vr.fromWireType(ti(Rr,Or)),write:(Or,Zo)=>{var jr=[];nr(dr,Or,Rn.toWireType(jr,Zo)),os(jr)}}}),[{name:he.name,fromWireType:function(Ci){var vr,Zn={};for(vr in ei)Zn[vr]=ei[vr].read(Ci);return ct(Ci),Zn},toWireType:function(Ci,Zn){for(var vr in ei)if(!(vr in Zn))throw new TypeError(`Missing field: "${vr}"`);var ti=$e();for(vr in ei)ei[vr].write(ti,Zn[vr]);return null!==Ci&&Ci.push(ct,ti),ti},argPackAdvance:8,readValueFromPointer:Gs,v:ct}]})},_embind_register_bigint:function(){},_embind_register_bool:function(te,he,$e,ct,tn){var an=es($e);Us(te,{name:he=to(he),fromWireType:function(oi){return!!oi},toWireType:function(oi,ei){return ei?ct:tn},argPackAdvance:8,readValueFromPointer:function(oi){if(1===$e)var ei=le;else if(2===$e)ei=We;else{if(4!==$e)throw new TypeError("Unknown boolean type size: "+he);ei=ut}return this.fromWireType(ei[oi>>an])},v:null})},_embind_register_class:function(te,he,$e,ct,tn,an,oi,ei,Ci,Zn,vr,ti,Rr){vr=to(vr),an=ta(tn,an),ei&&(ei=ta(oi,ei)),Zn&&(Zn=ta(Ci,Zn)),Rr=ta(ti,Rr);var Rn=$n(vr);uu(Rn,function(){ns(`Cannot construct ${vr} due to unbound types`,[ct])}),Hs([te,he,$e],ct?[ct]:[],function(nr){if(nr=nr[0],ct)var dr=nr.h,Or=dr.B;else Or=rc.prototype;nr=Ii(Rn,function(){if(Object.getPrototypeOf(this)!==Zo)throw new Qr("Use 'new' to construct "+vr);if(void 0===jr.I)throw new Qr(vr+" has no accessible constructor");var $s=jr.I[arguments.length];if(void 0===$s)throw new Qr(`Tried to invoke ctor of ${vr} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(jr.I).toString()}) parameters instead!`);return $s.apply(this,arguments)});var Zo=Object.create(Or,{constructor:{value:nr}});nr.prototype=Zo;var jr=new qu(vr,nr,Zo,Rr,dr,an,ei,Zn);jr.l&&(void 0===jr.l.T&&(jr.l.T=[]),jr.l.T.push(jr)),dr=new Ka(vr,jr,!0,!1),Or=new Ka(vr+"*",jr,!1,!1);var as=new Ka(vr+" const*",jr,!1,!0);return Ko[te]={pointerType:Or,Ka:as},Ec(Rn,nr),[dr,Or,as]})},_embind_register_class_class_function:function(te,he,$e,ct,tn,an,oi){var ei=Dc($e,ct);he=to(he),an=ta(tn,an),Hs([],[te],function(Ci){function Zn(){ns(`Cannot call ${vr} due to unbound types`,ei)}var vr=`${(Ci=Ci[0]).name}.${he}`;he.startsWith("@@")&&(he=Symbol[he.substring(2)]);var ti=Ci.h.constructor;return void 0===ti[he]?(Zn.L=$e-1,ti[he]=Zn):(Xl(ti,he,vr),ti[he].m[$e-1]=Zn),Hs([],ei,function(Rr){if(Rr=Mr(vr,[Rr[0],null].concat(Rr.slice(1)),null,an,oi),void 0===ti[he].m?(Rr.L=$e-1,ti[he]=Rr):ti[he].m[$e-1]=Rr,Ci.h.T)for(const Rn of Ci.h.T)Rn.constructor.hasOwnProperty(he)||(Rn.constructor[he]=Rr);return[]}),[]})},_embind_register_class_class_property:function(te,he,$e,ct,tn,an,oi,ei){he=to(he),an=ta(tn,an),Hs([],[te],function(Ci){var Zn=`${(Ci=Ci[0]).name}.${he}`,vr={get(){ns(`Cannot access ${Zn} due to unbound types`,[$e])},enumerable:!0,configurable:!0};return vr.set=ei?()=>{ns(`Cannot access ${Zn} due to unbound types`,[$e])}:()=>{Cr(`${Zn} is a read-only property`)},Object.defineProperty(Ci.h.constructor,he,vr),Hs([],[$e],function(ti){ti=ti[0];var Rr={get:()=>ti.fromWireType(an(ct)),enumerable:!0};return ei&&(ei=ta(oi,ei),Rr.set=Rn=>{var nr=[];ei(ct,ti.toWireType(nr,Rn)),os(nr)}),Object.defineProperty(Ci.h.constructor,he,Rr),[]}),[]})},_embind_register_class_constructor:function(te,he,$e,ct,tn,an){var oi=Dc(he,$e);tn=ta(ct,tn),Hs([],[te],function(ei){var Ci=`constructor ${(ei=ei[0]).name}`;if(void 0===ei.h.I&&(ei.h.I=[]),void 0!==ei.h.I[he-1])throw new Qr(`Cannot register multiple constructors with identical number of parameters (${he-1}) for class '${ei.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return ei.h.I[he-1]=()=>{ns(`Cannot construct ${ei.name} due to unbound types`,oi)},Hs([],oi,function(Zn){return Zn.splice(1,0,null),ei.h.I[he-1]=Mr(Ci,Zn,null,tn,an),[]}),[]})},_embind_register_class_function:function(te,he,$e,ct,tn,an,oi,ei){var Ci=Dc($e,ct);he=to(he),an=ta(tn,an),Hs([],[te],function(Zn){function vr(){ns(`Cannot call ${ti} due to unbound types`,Ci)}var ti=`${(Zn=Zn[0]).name}.${he}`;he.startsWith("@@")&&(he=Symbol[he.substring(2)]),ei&&Zn.h.ya.push(he);var Rr=Zn.h.B,Rn=Rr[he];return void 0===Rn||void 0===Rn.m&&Rn.className!==Zn.name&&Rn.L===$e-2?(vr.L=$e-2,vr.className=Zn.name,Rr[he]=vr):(Xl(Rr,he,ti),Rr[he].m[$e-2]=vr),Hs([],Ci,function(nr){return nr=Mr(ti,nr,Zn,an,oi),void 0===Rr[he].m?(nr.L=$e-2,Rr[he]=nr):Rr[he].m[$e-2]=nr,[]}),[]})},_embind_register_class_property:function(te,he,$e,ct,tn,an,oi,ei,Ci,Zn){he=to(he),tn=ta(ct,tn),Hs([],[te],function(vr){var ti=`${(vr=vr[0]).name}.${he}`,Rr={get(){ns(`Cannot access ${ti} due to unbound types`,[$e,oi])},enumerable:!0,configurable:!0};return Rr.set=Ci?()=>{ns(`Cannot access ${ti} due to unbound types`,[$e,oi])}:()=>{Cr(ti+" is a read-only property")},Object.defineProperty(vr.h.B,he,Rr),Hs([],Ci?[$e,oi]:[$e],function(Rn){var nr=Rn[0],dr={get(){var Zo=mc(this,vr,ti+" getter");return nr.fromWireType(tn(an,Zo))},enumerable:!0};if(Ci){Ci=ta(ei,Ci);var Or=Rn[1];dr.set=function(Zo){var jr=mc(this,vr,ti+" setter"),as=[];Ci(Zn,jr,Or.toWireType(as,Zo)),os(as)}}return Object.defineProperty(vr.h.B,he,dr),[]}),[]})},_embind_register_emval:function(te,he){Us(te,{name:he=to(he),fromWireType:function($e){var ct=wr($e);return At($e),ct},toWireType:function($e,ct){return vs(ct)},argPackAdvance:8,readValueFromPointer:Gs,v:null})},_embind_register_enum:function(te,he,$e,ct){function tn(){}$e=es($e),he=to(he),tn.values={},Us(te,{name:he,constructor:tn,fromWireType:function(an){return this.constructor.values[an]},toWireType:function(an,oi){return oi.value},argPackAdvance:8,readValueFromPointer:_n(he,$e,ct),v:null}),uu(he,tn)},_embind_register_enum_value:function(te,he,$e){var ct=Xa(te,"enum");he=to(he),te=ct.constructor,ct=Object.create(ct.constructor.prototype,{value:{value:$e},constructor:{value:Ii(`${ct.name}_${he}`,function(){})}}),te.values[$e]=ct,te[he]=ct},_embind_register_float:function(te,he,$e){$e=es($e),Us(te,{name:he=to(he),fromWireType:function(ct){return ct},toWireType:function(ct,tn){return tn},argPackAdvance:8,readValueFromPointer:qt(he,$e),v:null})},_embind_register_function:function(te,he,$e,ct,tn,an){var oi=Dc(he,$e);te=to(te),tn=ta(ct,tn),uu(te,function(){ns(`Cannot call ${te} due to unbound types`,oi)},he-1),Hs([],oi,function(ei){return Ec(te,Mr(te,[ei[0],null].concat(ei.slice(1)),null,tn,an),he-1),[]})},_embind_register_integer:function(te,he,$e,ct,tn){he=to(he),-1===tn&&(tn=4294967295),tn=es($e);var an=ei=>ei;if(0===ct){var oi=32-8*$e;an=ei=>ei<<oi>>>oi}$e=he.includes("unsigned")?function(ei,Ci){return Ci>>>0}:function(ei,Ci){return Ci},Us(te,{name:he,fromWireType:an,toWireType:$e,argPackAdvance:8,readValueFromPointer:Mn(he,tn,0!==ct),v:null})},_embind_register_memory_view:function(te,he,$e){function ct(an){return new tn(Ae.buffer,Ae[1+(an>>=2)],Ae[an])}var tn=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][he];Us(te,{name:$e=to($e),fromWireType:ct,argPackAdvance:8,readValueFromPointer:ct},{ab:!0})},_embind_register_std_string:function(te,he){var $e="std::string"===(he=to(he));Us(te,{name:he,fromWireType:function(ct){var tn=Ae[ct>>2],an=ct+4;if($e)for(var oi=an,ei=0;ei<=tn;++ei){var Ci=an+ei;if(ei==tn||0==xe[Ci]){if(oi=oi?or(xe,oi,Ci-oi):"",void 0===Zn)var Zn=oi;else Zn+="\0",Zn+=oi;oi=Ci+1}}else{for(Zn=Array(tn),ei=0;ei<tn;++ei)Zn[ei]=String.fromCharCode(xe[an+ei]);Zn=Zn.join("")}return Jr(ct),Zn},toWireType:function(ct,tn){tn instanceof ArrayBuffer&&(tn=new Uint8Array(tn));var an="string"==typeof tn;an||tn instanceof Uint8Array||tn instanceof Uint8ClampedArray||tn instanceof Int8Array||Cr("Cannot pass non-string to std::string");var oi=$e&&an?Oi(tn):tn.length,ei=uo(4+oi+1),Ci=ei+4;if(Ae[ei>>2]=oi,$e&&an)En(tn,xe,Ci,oi+1);else if(an)for(an=0;an<oi;++an){var Zn=tn.charCodeAt(an);255<Zn&&(Jr(Ci),Cr("String has UTF-16 code units that do not fit in 8 bits")),xe[Ci+an]=Zn}else for(an=0;an<oi;++an)xe[Ci+an]=tn[an];return null!==ct&&ct.push(Jr,ei),ei},argPackAdvance:8,readValueFromPointer:Gs,v:function(ct){Jr(ct)}})},_embind_register_std_wstring:function(te,he,$e){if($e=to($e),2===he)var ct=yr,tn=Wr,an=zo,oi=()=>st,ei=1;else 4===he&&(ct=ss,tn=Ho,an=Ps,oi=()=>Ae,ei=2);Us(te,{name:$e,fromWireType:function(Ci){for(var ti,Zn=Ae[Ci>>2],vr=oi(),Rr=Ci+4,Rn=0;Rn<=Zn;++Rn){var nr=Ci+4+Rn*he;(Rn==Zn||0==vr[nr>>ei])&&(Rr=ct(Rr,nr-Rr),void 0===ti?ti=Rr:(ti+="\0",ti+=Rr),Rr=nr+he)}return Jr(Ci),ti},toWireType:function(Ci,Zn){"string"!=typeof Zn&&Cr(`Cannot pass non-string to C++ string type ${$e}`);var vr=an(Zn),ti=uo(4+vr+he);return Ae[ti>>2]=vr>>ei,tn(Zn,ti+4,vr+he),null!==Ci&&Ci.push(Jr,ti),ti},argPackAdvance:8,readValueFromPointer:Gs,v:function(Ci){Jr(Ci)}})},_embind_register_value_object:function(te,he,$e,ct,tn,an){Il[te]={name:to(he),fa:ta($e,ct),H:ta(tn,an),sa:[]}},_embind_register_value_object_field:function(te,he,$e,ct,tn,an,oi,ei,Ci,Zn){Il[te].sa.push({Sa:to(he),Ya:$e,Wa:ta(ct,tn),Xa:an,lb:oi,kb:ta(ei,Ci),mb:Zn})},_embind_register_void:function(te,he){Us(te,{cb:!0,name:he=to(he),argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},_emscripten_get_now_is_monotonic:()=>!0,_emval_as:function(te,he,$e){te=wr(te),he=Xa(he,"emval::as");var ct=[],tn=vs(ct);return Ae[$e>>2]=tn,he.toWireType(ct,te)},_emval_call_method:function(te,he,$e,ct,tn){te=Aa[te],he=wr(he),$e=go($e);var an=[];return Ae[ct>>2]=vs(an),te(he,$e,an,tn)},_emval_call_void_method:function(te,he,$e,ct){(te=Aa[te])(he=wr(he),$e=go($e),null,ct)},_emval_decref:At,_emval_get_method_caller:function(te,he){var $e=function oo(te,he){for(var $e=Array(te),ct=0;ct<te;++ct)$e[ct]=Xa(Ae[he+4*ct>>2],"parameter "+ct);return $e}(te,he),ct=$e[0];he=ct.name+"_$"+$e.slice(1).map(function(oi){return oi.name}).join("_")+"$";var tn=Kc[he];if(void 0!==tn)return tn;var an=Array(te-1);return tn=function Bs(te){var he=Aa.length;return Aa.push(te),he}((oi,ei,Ci,Zn)=>{for(var vr=0,ti=0;ti<te-1;++ti)an[ti]=$e[ti+1].readValueFromPointer(Zn+vr),vr+=$e[ti+1].argPackAdvance;for(oi=oi[ei].apply(oi,an),ti=0;ti<te-1;++ti)$e[ti+1].Na&&$e[ti+1].Na(an[ti]);if(!ct.cb)return ct.toWireType(Ci,oi)}),Kc[he]=tn},_emval_get_module_property:function(te){return te=go(te),vs(H[te])},_emval_get_property:function(te,he){return te=wr(te),he=wr(he),vs(te[he])},_emval_incref:function(te){4<te&&(Ki.get(te).Aa+=1)},_emval_new_cstring:function(te){return vs(go(te))},_emval_new_object:function(){return vs({})},_emval_run_destructors:function(te){os(wr(te)),At(te)},_emval_set_property:function(te,he,$e){te=wr(te),he=wr(he),$e=wr($e),te[he]=$e},_emval_take_value:function(te,he){return te=(te=Xa(te,"_emval_take_value")).readValueFromPointer(he),vs(te)},abort:()=>{wt("")},emscripten_date_now:function(){return Date.now()},emscripten_get_now:()=>performance.now(),emscripten_memcpy_big:(te,he,$e)=>xe.copyWithin(te,he,he+$e),emscripten_resize_heap:te=>{var he=xe.length;if(2147483648<(te>>>=0))return!1;for(var $e=1;4>=$e;$e*=2){var ct=he*(1+.2/$e);ct=Math.min(ct,te+100663296);var tn=Math;ct=Math.max(te,ct);e:{tn=tn.min.call(tn,2147483648,ct+(65536-ct%65536)%65536)-Ie.buffer.byteLength+65535>>>16;try{Ie.grow(tn),Qe();var an=1;break e}catch{}an=void 0}if(an)return!0}return!1},environ_get:(te,he)=>{var $e=0;return fi().forEach(function(ct,tn){var an=he+$e;for(tn=Ae[te+4*tn>>2]=an,an=0;an<ct.length;++an)le[0|tn++]=ct.charCodeAt(an);le[0|tn]=0,$e+=ct.length+1}),0},environ_sizes_get:(te,he)=>{var $e=fi();Ae[te>>2]=$e.length;var ct=0;return $e.forEach(function(tn){ct+=tn.length+1}),Ae[he>>2]=ct,0},fd_close:()=>52,fd_seek:function(){return 70},fd_write:(te,he,$e,ct)=>{for(var tn=0,an=0;an<$e;an++){var oi=Ae[he>>2],ei=Ae[he+4>>2];he+=8;for(var Ci=0;Ci<ei;Ci++){var Zn=xe[oi+Ci],vr=al[te];0===Zn||10===Zn?((1===te?_e:ke)(or(vr,0)),vr.length=0):vr.push(Zn)}tn+=ei}return Ae[ct>>2]=tn,0},strftime_l:(te,he,$e,ct)=>((te,he,$e,ct)=>{function tn(Rn,nr,dr){for(Rn="number"==typeof Rn?Rn.toString():Rn||"";Rn.length<nr;)Rn=dr[0]+Rn;return Rn}function an(Rn,nr){return tn(Rn,nr,"0")}function oi(Rn,nr){function dr(Zo){return 0>Zo?-1:0<Zo?1:0}var Or;return 0===(Or=dr(Rn.getFullYear()-nr.getFullYear()))&&0===(Or=dr(Rn.getMonth()-nr.getMonth()))&&(Or=dr(Rn.getDate()-nr.getDate())),Or}function ei(Rn){switch(Rn.getDay()){case 0:return new Date(Rn.getFullYear()-1,11,29);case 1:return Rn;case 2:return new Date(Rn.getFullYear(),0,3);case 3:return new Date(Rn.getFullYear(),0,2);case 4:return new Date(Rn.getFullYear(),0,1);case 5:return new Date(Rn.getFullYear()-1,11,31);case 6:return new Date(Rn.getFullYear()-1,11,30)}}function Ci(Rn){var nr=Rn.J;for(Rn=new Date(new Date(Rn.K+1900,0,1).getTime());0<nr;){var dr=Rn.getMonth(),Or=(Is(Rn.getFullYear())?ll:ku)[dr];if(!(nr>Or-Rn.getDate())){Rn.setDate(Rn.getDate()+nr);break}nr-=Or-Rn.getDate()+1,Rn.setDate(1),11>dr?Rn.setMonth(dr+1):(Rn.setMonth(0),Rn.setFullYear(Rn.getFullYear()+1))}return dr=new Date(Rn.getFullYear()+1,0,4),nr=ei(new Date(Rn.getFullYear(),0,4)),dr=ei(dr),0>=oi(nr,Rn)?0>=oi(dr,Rn)?Rn.getFullYear()+1:Rn.getFullYear():Rn.getFullYear()-1}var Zn=ut[ct+40>>2];for(var vr in ct={qb:ut[ct>>2],pb:ut[ct+4>>2],Z:ut[ct+8>>2],ha:ut[ct+12>>2],$:ut[ct+16>>2],K:ut[ct+20>>2],C:ut[ct+24>>2],J:ut[ct+28>>2],ub:ut[ct+32>>2],ob:ut[ct+36>>2],rb:Zn&&Zn?or(xe,Zn):""},$e=$e?or(xe,$e):"",Zn={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"})$e=$e.replace(new RegExp(vr,"g"),Zn[vr]);var ti="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),Rr="January February March April May June July August September October November December".split(" ");for(vr in Zn={"%a":Rn=>ti[Rn.C].substring(0,3),"%A":Rn=>ti[Rn.C],"%b":Rn=>Rr[Rn.$].substring(0,3),"%B":Rn=>Rr[Rn.$],"%C":Rn=>an((Rn.K+1900)/100|0,2),"%d":Rn=>an(Rn.ha,2),"%e":Rn=>tn(Rn.ha,2," "),"%g":Rn=>Ci(Rn).toString().substring(2),"%G":Rn=>Ci(Rn),"%H":Rn=>an(Rn.Z,2),"%I":Rn=>(0==(Rn=Rn.Z)?Rn=12:12<Rn&&(Rn-=12),an(Rn,2)),"%j":Rn=>{for(var nr=0,dr=0;dr<=Rn.$-1;nr+=(Is(Rn.K+1900)?ll:ku)[dr++]);return an(Rn.ha+nr,3)},"%m":Rn=>an(Rn.$+1,2),"%M":Rn=>an(Rn.pb,2),"%n":()=>"\n","%p":Rn=>0<=Rn.Z&&12>Rn.Z?"AM":"PM","%S":Rn=>an(Rn.qb,2),"%t":()=>"\t","%u":Rn=>Rn.C||7,"%U":Rn=>an(Math.floor((Rn.J+7-Rn.C)/7),2),"%V":Rn=>{var nr=Math.floor((Rn.J+7-(Rn.C+6)%7)/7);if(2>=(Rn.C+371-Rn.J-2)%7&&nr++,nr)53==nr&&(4==(dr=(Rn.C+371-Rn.J)%7)||3==dr&&Is(Rn.K)||(nr=1));else{nr=52;var dr=(Rn.C+7-Rn.J-1)%7;(4==dr||5==dr&&Is(Rn.K%400-1))&&nr++}return an(nr,2)},"%w":Rn=>Rn.C,"%W":Rn=>an(Math.floor((Rn.J+7-(Rn.C+6)%7)/7),2),"%y":Rn=>(Rn.K+1900).toString().substring(2),"%Y":Rn=>Rn.K+1900,"%z":Rn=>(0<=(Rn=Rn.ob)?"+":"-")+("0000"+((Rn=Math.abs(Rn)/60)/60*100+Rn%60)).slice(-4),"%Z":Rn=>Rn.rb,"%%":()=>"%"},$e=$e.replace(/%%/g,"\0\0"),Zn)$e.includes(vr)&&($e=$e.replace(new RegExp(vr,"g"),Zn[vr](ct)));return vr=function cl(te){var he=Array(Oi(te)+1);return En(te,he,0,he.length),he}($e=$e.replace(/\0\0/g,"%")),vr.length>he?0:(le.set(vr,te),vr.length-1)})(te,he,$e,ct)};!function(){function te($e){if(Se=$e=$e.exports,Ie=Se.memory,Qe(),vt=Se.__indirect_function_table,Dt.unshift(Se.__wasm_call_ctors),Ge--,H.monitorRunDependencies&&H.monitorRunDependencies(Ge),0==Ge&&(null!==dt&&(clearInterval(dt),dt=null),Dn)){var ct=Dn;Dn=null,ct()}return $e}var he={env:Ha,wasi_snapshot_preview1:Ha};if(Ge++,H.monitorRunDependencies&&H.monitorRunDependencies(Ge),H.instantiateWasm)try{return H.instantiateWasm(he,te)}catch($e){ke("Module.instantiateWasm callback failed with error: "+$e),X($e)}(function Fn(te,he){var $e=Gt;return be||"function"!=typeof WebAssembly.instantiateStreaming||Hn($e)||$e.startsWith("file://")||"function"!=typeof fetch?Vt($e,te,he):fetch($e,{credentials:"same-origin"}).then(ct=>WebAssembly.instantiateStreaming(ct,te).then(he,function(tn){return ke("wasm streaming compile failed: "+tn),ke("falling back to ArrayBuffer instantiation"),Vt($e,te,he)}))})(he,function($e){te($e.instance)}).catch(X)}();var gc,Jr=te=>(Jr=Se.free)(te),uo=te=>(uo=Se.malloc)(te),du=te=>(du=Se.__getTypeName)(te);function Ic(){function te(){if(!gc&&(gc=!0,H.calledRun=!0,!de)){if(kn(Dt),Z(H),H.onRuntimeInitialized&&H.onRuntimeInitialized(),H.postRun)for("function"==typeof H.postRun&&(H.postRun=[H.postRun]);H.postRun.length;){var he=H.postRun.shift();qe.unshift(he)}kn(qe)}}if(!(0<Ge)){if(H.preRun)for("function"==typeof H.preRun&&(H.preRun=[H.preRun]);H.preRun.length;)ze();kn(Nt),0<Ge||(H.setStatus?(H.setStatus("Running..."),setTimeout(function(){setTimeout(function(){H.setStatus("")},1),te()},1)):te())}}if(H.__embind_initialize_bindings=()=>(H.__embind_initialize_bindings=Se._embind_initialize_bindings)(),H.dynCall_jiji=(te,he,$e,ct,tn)=>(H.dynCall_jiji=Se.dynCall_jiji)(te,he,$e,ct,tn),H.dynCall_viijii=(te,he,$e,ct,tn,an,oi)=>(H.dynCall_viijii=Se.dynCall_viijii)(te,he,$e,ct,tn,an,oi),H.dynCall_iiiiij=(te,he,$e,ct,tn,an,oi)=>(H.dynCall_iiiiij=Se.dynCall_iiiiij)(te,he,$e,ct,tn,an,oi),H.dynCall_iiiiijj=(te,he,$e,ct,tn,an,oi,ei,Ci)=>(H.dynCall_iiiiijj=Se.dynCall_iiiiijj)(te,he,$e,ct,tn,an,oi,ei,Ci),H.dynCall_iiiiiijj=(te,he,$e,ct,tn,an,oi,ei,Ci,Zn)=>(H.dynCall_iiiiiijj=Se.dynCall_iiiiiijj)(te,he,$e,ct,tn,an,oi,ei,Ci,Zn),Dn=function te(){gc||Ic(),gc||(Dn=te)},H.preInit)for("function"==typeof H.preInit&&(H.preInit=[H.preInit]);0<H.preInit.length;)H.preInit.pop()();return Ic(),Q.ready});const P=R},E=>{E.exports=JSON.parse('{"name":"@rive-app/canvas-lite","version":"2.25.3","description":"A lite version of Rive\'s canvas based web api.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso <luigi@rive.app> (https://rive.app)","Maxwell Talbot <max@rive.app> (https://rive.app)","Arthur Vivian <arthur@rive.app> (https://rive.app)","Umberto Sonnino <umberto@rive.app> (https://rive.app)","Matthew Sullivan <matt.j.sullivan@gmail.com> (mailto:matt.j.sullivan@gmail.com)"],"license":"MIT","files":["rive.js","rive.js.map","rive.wasm","rive_fallback.wasm","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}')},(E,D,k)=>{k.r(D),k.d(D,{Animation:()=>R.Animation});var R=k(4)},(E,D,k)=>{k.r(D),k.d(D,{Animation:()=>R});var R=function(){function P(G,Q,H,Z){this.animation=G,this.artboard=Q,this.playing=Z,this.loopCount=0,this.scrubTo=null,this.instance=new H.LinearAnimationInstance(G,Q)}return Object.defineProperty(P.prototype,"name",{get:function(){return this.animation.name},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"time",{get:function(){return this.instance.time},set:function(G){this.instance.time=G},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"loopValue",{get:function(){return this.animation.loopValue},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"needsScrub",{get:function(){return null!==this.scrubTo},enumerable:!1,configurable:!0}),P.prototype.advance=function(G){null===this.scrubTo?this.instance.advance(G):(this.instance.time=0,this.instance.advance(this.scrubTo),this.scrubTo=null)},P.prototype.apply=function(G){this.instance.apply(G)},P.prototype.cleanup=function(){this.instance.delete()},P}()},(E,D,k)=>{k.r(D),k.d(D,{BLANK_URL:()=>P.BLANK_URL,registerTouchInteractions:()=>R.registerTouchInteractions,sanitizeUrl:()=>P.sanitizeUrl});var R=k(6),P=k(7)},(E,D,k)=>{k.r(D),k.d(D,{registerTouchInteractions:()=>G});var G=function(Q){var H=Q.canvas,Z=Q.artboard,X=Q.stateMachines,z=void 0===X?[]:X,q=Q.rive,ne=Q.fit,N=Q.alignment,Y=Q.isTouchScrollEnabled,W=void 0!==Y&&Y,J=Q.layoutScaleFactor,n=void 0===J?1:J;if(!H||!z.length||!Q.renderer||!q||!Z||typeof window>"u")return null;var K=null,se=!1,Fe=function(_e){if(se&&_e instanceof MouseEvent)"mouseup"==_e.type&&(se=!1);else{se=W&&"touchend"===_e.type&&"touchstart"===K,K=_e.type;var ke=_e.currentTarget.getBoundingClientRect(),be=function(Q,H){var Z,X;return["touchstart","touchmove"].indexOf(Q.type)>-1&&null!==(Z=Q.touches)&&void 0!==Z&&Z.length?(H||Q.preventDefault(),{clientX:Q.touches[0].clientX,clientY:Q.touches[0].clientY}):"touchend"===Q.type&&null!==(X=Q.changedTouches)&&void 0!==X&&X.length?{clientX:Q.changedTouches[0].clientX,clientY:Q.changedTouches[0].clientY}:{clientX:Q.clientX,clientY:Q.clientY}}(_e,W),Ve=be.clientX,Ie=be.clientY;if(Ve||Ie){var Se=Ve-ke.left,de=Ie-ke.top,le=q.computeAlignment(ne,N,{minX:0,minY:0,maxX:ke.width,maxY:ke.height},Z.bounds,n),xe=new q.Mat2D;le.invert(xe);var We=new q.Vec2D(Se,de),st=q.mapXY(xe,We),ut=st.x(),Ae=st.y();switch(st.delete(),xe.delete(),We.delete(),le.delete(),_e.type){case"mouseout":for(var ye=0,Re=z;ye<Re.length;ye++)Re[ye].pointerMove(ut,Ae);break;case"touchmove":case"mouseover":case"mousemove":for(var vt=0,Nt=z;vt<Nt.length;vt++)Nt[vt].pointerMove(ut,Ae);break;case"touchstart":case"mousedown":for(var Dt=0,qe=z;Dt<qe.length;Dt++)qe[Dt].pointerDown(ut,Ae);break;case"touchend":case"mouseup":for(var ze=0,Ge=z;ze<Ge.length;ze++)Ge[ze].pointerUp(ut,Ae)}}}}.bind(void 0);return H.addEventListener("mouseover",Fe),H.addEventListener("mouseout",Fe),H.addEventListener("mousemove",Fe),H.addEventListener("mousedown",Fe),H.addEventListener("mouseup",Fe),H.addEventListener("touchmove",Fe,{passive:W}),H.addEventListener("touchstart",Fe,{passive:W}),H.addEventListener("touchend",Fe),function(){H.removeEventListener("mouseover",Fe),H.removeEventListener("mouseout",Fe),H.removeEventListener("mousemove",Fe),H.removeEventListener("mousedown",Fe),H.removeEventListener("mouseup",Fe),H.removeEventListener("touchmove",Fe),H.removeEventListener("touchstart",Fe),H.removeEventListener("touchend",Fe)}}},(E,D,k)=>{k.r(D),k.d(D,{BLANK_URL:()=>X,sanitizeUrl:()=>q});var R=/^([^\w]*)(javascript|data|vbscript)/im,P=/&#(\w+)(^\w|;)?/g,G=/&(newline|tab);/gi,Q=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,H=/^.+(:|&colon;)/gim,Z=[".","/"],X="about:blank";function q(ne){if(!ne)return X;var N=function fe(ne){return ne.replace(Q,"").replace(P,function(Y,W){return String.fromCharCode(W)})}(ne).replace(G,"").replace(Q,"").trim();if(!N)return X;if(function z(ne){return Z.indexOf(ne[0])>-1}(N))return N;var Y=N.match(H);return Y&&R.test(Y[0])?X:N}}],b={};function T(E){var D=b[E];if(void 0!==D)return D.exports;var k=b[E]={exports:{}};return y[E](k,k.exports,T),k.exports}T.d=(E,D)=>{for(var k in D)T.o(D,k)&&!T.o(E,k)&&Object.defineProperty(E,k,{enumerable:!0,get:D[k]})},T.o=(E,D)=>Object.prototype.hasOwnProperty.call(E,D),T.r=E=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(E,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(E,"__esModule",{value:!0})};var C={};return(()=>{T.r(C),T.d(C,{Alignment:()=>Z,EventType:()=>W,Fit:()=>H,Layout:()=>X,LoopType:()=>J,Rive:()=>Se,RiveEventType:()=>ne,RiveFile:()=>Ie,RuntimeLoader:()=>z,StateMachineInput:()=>q,StateMachineInputType:()=>fe,Testing:()=>xe,decodeAudio:()=>We,decodeFont:()=>ut,decodeImage:()=>st});var E=T(1),D=T(2),k=T(3),R=T(5),P=function(){var Ae=function(ye,Re){return(Ae=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Qe,vt){Qe.__proto__=vt}||function(Qe,vt){for(var Nt in vt)Object.prototype.hasOwnProperty.call(vt,Nt)&&(Qe[Nt]=vt[Nt])})(ye,Re)};return function(ye,Re){if("function"!=typeof Re&&null!==Re)throw new TypeError("Class extends value "+String(Re)+" is not a constructor or null");function Qe(){this.constructor=ye}Ae(ye,Re),ye.prototype=null===Re?Object.create(Re):(Qe.prototype=Re.prototype,new Qe)}}(),G=function(Ae,ye,Re,Qe){return new(Re||(Re=Promise))(function(Nt,Dt){function qe(dt){try{Ge(Qe.next(dt))}catch(Dn){Dt(Dn)}}function ze(dt){try{Ge(Qe.throw(dt))}catch(Dn){Dt(Dn)}}function Ge(dt){dt.done?Nt(dt.value):function vt(Nt){return Nt instanceof Re?Nt:new Re(function(Dt){Dt(Nt)})}(dt.value).then(qe,ze)}Ge((Qe=Qe.apply(Ae,ye||[])).next())})},Q=function(Ae,ye){var Qe,vt,Nt,Dt,Re={label:0,sent:function(){if(1&Nt[0])throw Nt[1];return Nt[1]},trys:[],ops:[]};return Dt={next:qe(0),throw:qe(1),return:qe(2)},"function"==typeof Symbol&&(Dt[Symbol.iterator]=function(){return this}),Dt;function qe(Ge){return function(dt){return function ze(Ge){if(Qe)throw new TypeError("Generator is already executing.");for(;Dt&&(Dt=0,Ge[0]&&(Re=0)),Re;)try{if(Qe=1,vt&&(Nt=2&Ge[0]?vt.return:Ge[0]?vt.throw||((Nt=vt.return)&&Nt.call(vt),0):vt.next)&&!(Nt=Nt.call(vt,Ge[1])).done)return Nt;switch(vt=0,Nt&&(Ge=[2&Ge[0],Nt.value]),Ge[0]){case 0:case 1:Nt=Ge;break;case 4:return Re.label++,{value:Ge[1],done:!1};case 5:Re.label++,vt=Ge[1],Ge=[0];continue;case 7:Ge=Re.ops.pop(),Re.trys.pop();continue;default:if(!(Nt=(Nt=Re.trys).length>0&&Nt[Nt.length-1])&&(6===Ge[0]||2===Ge[0])){Re=0;continue}if(3===Ge[0]&&(!Nt||Ge[1]>Nt[0]&&Ge[1]<Nt[3])){Re.label=Ge[1];break}if(6===Ge[0]&&Re.label<Nt[1]){Re.label=Nt[1],Nt=Ge;break}if(Nt&&Re.label<Nt[2]){Re.label=Nt[2],Re.ops.push(Ge);break}Nt[2]&&Re.ops.pop(),Re.trys.pop();continue}Ge=ye.call(Ae,Re)}catch(dt){Ge=[6,dt],vt=0}finally{Qe=Nt=0}if(5&Ge[0])throw Ge[1];return{value:Ge[0]?Ge[1]:void 0,done:!0}}([Ge,dt])}}},H=function(Ae){return Ae.Cover="cover",Ae.Contain="contain",Ae.Fill="fill",Ae.FitWidth="fitWidth",Ae.FitHeight="fitHeight",Ae.None="none",Ae.ScaleDown="scaleDown",Ae.Layout="layout",Ae}(H||{}),Z=function(Ae){return Ae.Center="center",Ae.TopLeft="topLeft",Ae.TopCenter="topCenter",Ae.TopRight="topRight",Ae.CenterLeft="centerLeft",Ae.CenterRight="centerRight",Ae.BottomLeft="bottomLeft",Ae.BottomCenter="bottomCenter",Ae.BottomRight="bottomRight",Ae}(Z||{}),X=function(){function Ae(ye){var Re,Qe,vt,Nt,Dt,qe,ze;this.fit=null!==(Re=ye?.fit)&&void 0!==Re?Re:H.Contain,this.alignment=null!==(Qe=ye?.alignment)&&void 0!==Qe?Qe:Z.Center,this.layoutScaleFactor=null!==(vt=ye?.layoutScaleFactor)&&void 0!==vt?vt:1,this.minX=null!==(Nt=ye?.minX)&&void 0!==Nt?Nt:0,this.minY=null!==(Dt=ye?.minY)&&void 0!==Dt?Dt:0,this.maxX=null!==(qe=ye?.maxX)&&void 0!==qe?qe:0,this.maxY=null!==(ze=ye?.maxY)&&void 0!==ze?ze:0}return Ae.new=function(ye){var Re=ye.fit,Qe=ye.alignment,vt=ye.minX,Nt=ye.minY,Dt=ye.maxX,qe=ye.maxY;return console.warn("This function is deprecated: please use `new Layout({})` instead"),new Ae({fit:Re,alignment:Qe,minX:vt,minY:Nt,maxX:Dt,maxY:qe})},Ae.prototype.copyWith=function(ye){return new Ae({fit:ye.fit??this.fit,alignment:ye.alignment??this.alignment,layoutScaleFactor:ye.layoutScaleFactor??this.layoutScaleFactor,minX:ye.minX??this.minX,minY:ye.minY??this.minY,maxX:ye.maxX??this.maxX,maxY:ye.maxY??this.maxY})},Ae.prototype.runtimeFit=function(ye){return this.cachedRuntimeFit?this.cachedRuntimeFit:(this.cachedRuntimeFit=Re=this.fit===H.Cover?ye.Fit.cover:this.fit===H.Contain?ye.Fit.contain:this.fit===H.Fill?ye.Fit.fill:this.fit===H.FitWidth?ye.Fit.fitWidth:this.fit===H.FitHeight?ye.Fit.fitHeight:this.fit===H.ScaleDown?ye.Fit.scaleDown:this.fit===H.Layout?ye.Fit.layout:ye.Fit.none,Re);var Re},Ae.prototype.runtimeAlignment=function(ye){return this.cachedRuntimeAlignment?this.cachedRuntimeAlignment:(this.cachedRuntimeAlignment=Re=this.alignment===Z.TopLeft?ye.Alignment.topLeft:this.alignment===Z.TopCenter?ye.Alignment.topCenter:this.alignment===Z.TopRight?ye.Alignment.topRight:this.alignment===Z.CenterLeft?ye.Alignment.centerLeft:this.alignment===Z.CenterRight?ye.Alignment.centerRight:this.alignment===Z.BottomLeft?ye.Alignment.bottomLeft:this.alignment===Z.BottomCenter?ye.Alignment.bottomCenter:this.alignment===Z.BottomRight?ye.Alignment.bottomRight:ye.Alignment.center,Re);var Re},Ae}(),z=function(){function Ae(){}return Ae.loadRuntime=function(){E.default({locateFile:function(){return Ae.wasmURL}}).then(function(ye){var Re;for(Ae.runtime=ye;Ae.callBackQueue.length>0;)null===(Re=Ae.callBackQueue.shift())||void 0===Re||Re(Ae.runtime)}).catch(function(ye){var Re={message:ye?.message||"Unknown error",type:ye?.name||"Error",wasmError:ye instanceof WebAssembly.CompileError||ye instanceof WebAssembly.RuntimeError,originalError:ye};console.debug("Rive WASM load error details:",Re);var Qe="https://cdn.jsdelivr.net/npm/".concat(D.name,"@").concat(D.version,"/rive_fallback.wasm");if(Ae.wasmURL.toLowerCase()!==Qe)console.warn("Failed to load WASM from ".concat(Ae.wasmURL," (").concat(Re.message,"), trying jsdelivr as a backup")),Ae.setWasmUrl(Qe),Ae.loadRuntime();else{var vt=["Could not load Rive WASM file from ".concat(Ae.wasmURL," or ").concat(Qe,"."),"Possible reasons:","- Network connection is down","- WebAssembly is not supported in this environment","- The WASM file is corrupted or incompatible","\nError details:","- Type: ".concat(Re.type),"- Message: ".concat(Re.message),"- WebAssembly-specific error: ".concat(Re.wasmError),"\nTo resolve, you may need to:","1. Check your network connection","2. Set a new WASM source via RuntimeLoader.setWasmUrl()","3. Call RuntimeLoader.loadRuntime() again"].join("\n");console.error(vt)}})},Ae.getInstance=function(ye){Ae.isLoading||(Ae.isLoading=!0,Ae.loadRuntime()),Ae.runtime?ye(Ae.runtime):Ae.callBackQueue.push(ye)},Ae.awaitInstance=function(){return new Promise(function(ye){return Ae.getInstance(function(Re){return ye(Re)})})},Ae.setWasmUrl=function(ye){Ae.wasmURL=ye},Ae.getWasmUrl=function(){return Ae.wasmURL},Ae.isLoading=!1,Ae.callBackQueue=[],Ae.wasmURL="https://unpkg.com/".concat(D.name,"@").concat(D.version,"/rive.wasm"),Ae}(),fe=function(Ae){return Ae[Ae.Number=56]="Number",Ae[Ae.Trigger=58]="Trigger",Ae[Ae.Boolean=59]="Boolean",Ae}(fe||{}),q=function(){function Ae(ye,Re){this.type=ye,this.runtimeInput=Re}return Object.defineProperty(Ae.prototype,"name",{get:function(){return this.runtimeInput.name},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"value",{get:function(){return this.runtimeInput.value},set:function(ye){this.runtimeInput.value=ye},enumerable:!1,configurable:!0}),Ae.prototype.fire=function(){this.type===fe.Trigger&&this.runtimeInput.fire()},Ae.prototype.delete=function(){this.runtimeInput=null},Ae}(),ne=function(Ae){return Ae[Ae.General=128]="General",Ae[Ae.OpenUrl=131]="OpenUrl",Ae}(ne||{}),N=function(){function Ae(ye,Re,Qe,vt){this.stateMachine=ye,this.playing=Qe,this.artboard=vt,this.inputs=[],this.instance=new Re.StateMachineInstance(ye,vt),this.initInputs(Re)}return Object.defineProperty(Ae.prototype,"name",{get:function(){return this.stateMachine.name},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"statesChanged",{get:function(){for(var ye=[],Re=0;Re<this.instance.stateChangedCount();Re++)ye.push(this.instance.stateChangedNameByIndex(Re));return ye},enumerable:!1,configurable:!0}),Ae.prototype.advance=function(ye){this.instance.advance(ye)},Ae.prototype.advanceAndApply=function(ye){this.instance.advanceAndApply(ye)},Ae.prototype.reportedEventCount=function(){return this.instance.reportedEventCount()},Ae.prototype.reportedEventAt=function(ye){return this.instance.reportedEventAt(ye)},Ae.prototype.initInputs=function(ye){for(var Re=0;Re<this.instance.inputCount();Re++){var Qe=this.instance.input(Re);this.inputs.push(this.mapRuntimeInput(Qe,ye))}},Ae.prototype.mapRuntimeInput=function(ye,Re){return ye.type===Re.SMIInput.bool?new q(fe.Boolean,ye.asBool()):ye.type===Re.SMIInput.number?new q(fe.Number,ye.asNumber()):ye.type===Re.SMIInput.trigger?new q(fe.Trigger,ye.asTrigger()):void 0},Ae.prototype.cleanup=function(){this.inputs.forEach(function(ye){ye.delete()}),this.inputs.length=0,this.instance.delete()},Ae}(),Y=function(){function Ae(ye,Re,Qe,vt,Nt){void 0===vt&&(vt=[]),void 0===Nt&&(Nt=[]),this.runtime=ye,this.artboard=Re,this.eventManager=Qe,this.animations=vt,this.stateMachines=Nt}return Ae.prototype.add=function(ye,Re,Qe){if(void 0===Qe&&(Qe=!0),0===(ye=le(ye)).length)this.animations.forEach(function(Hn){return Hn.playing=Re}),this.stateMachines.forEach(function(Hn){return Hn.playing=Re});else for(var vt=this.animations.map(function(Hn){return Hn.name}),Nt=this.stateMachines.map(function(Hn){return Hn.name}),Dt=0;Dt<ye.length;Dt++){var qe=vt.indexOf(ye[Dt]),ze=Nt.indexOf(ye[Dt]);if(qe>=0||ze>=0)qe>=0?this.animations[qe].playing=Re:this.stateMachines[ze].playing=Re;else{var Ge=this.artboard.animationByName(ye[Dt]);if(Ge){var dt=new k.Animation(Ge,this.artboard,this.runtime,Re);dt.advance(0),dt.apply(1),this.animations.push(dt)}else{var Dn=this.artboard.stateMachineByName(ye[Dt]);if(Dn){var wt=new N(Dn,this.runtime,Re,this.artboard);this.stateMachines.push(wt)}}}}return Qe&&this.eventManager.fire(Re?{type:W.Play,data:this.playing}:{type:W.Pause,data:this.paused}),Re?this.playing:this.paused},Ae.prototype.initLinearAnimations=function(ye,Re){for(var Qe=this.animations.map(function(ze){return ze.name}),vt=0;vt<ye.length;vt++){var Nt=Qe.indexOf(ye[vt]);if(Nt>=0)this.animations[Nt].playing=Re;else{var Dt=this.artboard.animationByName(ye[vt]);if(Dt){var qe=new k.Animation(Dt,this.artboard,this.runtime,Re);qe.advance(0),qe.apply(1),this.animations.push(qe)}}}},Ae.prototype.initStateMachines=function(ye,Re){for(var Qe=this.stateMachines.map(function(ze){return ze.name}),vt=0;vt<ye.length;vt++){var Nt=Qe.indexOf(ye[vt]);if(Nt>=0)this.stateMachines[Nt].playing=Re;else{var Dt=this.artboard.stateMachineByName(ye[vt]);if(Dt){var qe=new N(Dt,this.runtime,Re,this.artboard);this.stateMachines.push(qe)}else this.initLinearAnimations([ye[vt]],Re)}}},Ae.prototype.play=function(ye){return this.add(ye,!0)},Ae.prototype.pause=function(ye){return this.add(ye,!1)},Ae.prototype.scrub=function(ye,Re){var Qe=this.animations.filter(function(vt){return ye.includes(vt.name)});return Qe.forEach(function(vt){return vt.scrubTo=Re}),Qe.map(function(vt){return vt.name})},Object.defineProperty(Ae.prototype,"playing",{get:function(){return this.animations.filter(function(ye){return ye.playing}).map(function(ye){return ye.name}).concat(this.stateMachines.filter(function(ye){return ye.playing}).map(function(ye){return ye.name}))},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"paused",{get:function(){return this.animations.filter(function(ye){return!ye.playing}).map(function(ye){return ye.name}).concat(this.stateMachines.filter(function(ye){return!ye.playing}).map(function(ye){return ye.name}))},enumerable:!1,configurable:!0}),Ae.prototype.stop=function(ye){var Re=this,Qe=[];if(0===(ye=le(ye)).length)Qe=this.animations.map(function(Dt){return Dt.name}).concat(this.stateMachines.map(function(Dt){return Dt.name})),this.animations.forEach(function(Dt){return Dt.cleanup()}),this.stateMachines.forEach(function(Dt){return Dt.cleanup()}),this.animations.splice(0,this.animations.length),this.stateMachines.splice(0,this.stateMachines.length);else{var vt=this.animations.filter(function(Dt){return ye.includes(Dt.name)});vt.forEach(function(Dt){Dt.cleanup(),Re.animations.splice(Re.animations.indexOf(Dt),1)});var Nt=this.stateMachines.filter(function(Dt){return ye.includes(Dt.name)});Nt.forEach(function(Dt){Dt.cleanup(),Re.stateMachines.splice(Re.stateMachines.indexOf(Dt),1)}),Qe=vt.map(function(Dt){return Dt.name}).concat(Nt.map(function(Dt){return Dt.name}))}return this.eventManager.fire({type:W.Stop,data:Qe}),Qe},Object.defineProperty(Ae.prototype,"isPlaying",{get:function(){return this.animations.reduce(function(ye,Re){return ye||Re.playing},!1)||this.stateMachines.reduce(function(ye,Re){return ye||Re.playing},!1)},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"isPaused",{get:function(){return!this.isPlaying&&(this.animations.length>0||this.stateMachines.length>0)},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"isStopped",{get:function(){return 0===this.animations.length&&0===this.stateMachines.length},enumerable:!1,configurable:!0}),Ae.prototype.atLeastOne=function(ye,Re){var Qe;return void 0===Re&&(Re=!0),0===this.animations.length&&0===this.stateMachines.length&&(this.artboard.animationCount()>0?this.add([Qe=this.artboard.animationByIndex(0).name],ye,Re):this.artboard.stateMachineCount()>0&&this.add([Qe=this.artboard.stateMachineByIndex(0).name],ye,Re)),Qe},Ae.prototype.handleLooping=function(){for(var ye=0,Re=this.animations.filter(function(vt){return vt.playing});ye<Re.length;ye++){var Qe=Re[ye];0===Qe.loopValue&&Qe.loopCount?(Qe.loopCount=0,this.stop(Qe.name)):1===Qe.loopValue&&Qe.loopCount?(this.eventManager.fire({type:W.Loop,data:{animation:Qe.name,type:J.Loop}}),Qe.loopCount=0):2===Qe.loopValue&&Qe.loopCount>1&&(this.eventManager.fire({type:W.Loop,data:{animation:Qe.name,type:J.PingPong}}),Qe.loopCount=0)}},Ae.prototype.handleStateChanges=function(){for(var ye=[],Re=0,Qe=this.stateMachines.filter(function(Nt){return Nt.playing});Re<Qe.length;Re++)ye.push.apply(ye,Qe[Re].statesChanged);ye.length>0&&this.eventManager.fire({type:W.StateChange,data:ye})},Ae.prototype.handleAdvancing=function(ye){this.eventManager.fire({type:W.Advance,data:ye})},Ae}(),W=function(Ae){return Ae.Load="load",Ae.LoadError="loaderror",Ae.Play="play",Ae.Pause="pause",Ae.Stop="stop",Ae.Loop="loop",Ae.Draw="draw",Ae.Advance="advance",Ae.StateChange="statechange",Ae.RiveEvent="riveevent",Ae.AudioStatusChange="audiostatuschange",Ae}(W||{}),J=function(Ae){return Ae.OneShot="oneshot",Ae.Loop="loop",Ae.PingPong="pingpong",Ae}(J||{}),n=function(){function Ae(ye){void 0===ye&&(ye=[]),this.listeners=ye}return Ae.prototype.getListeners=function(ye){return this.listeners.filter(function(Re){return Re.type===ye})},Ae.prototype.add=function(ye){this.listeners.includes(ye)||this.listeners.push(ye)},Ae.prototype.remove=function(ye){for(var Re=0;Re<this.listeners.length;Re++){var Qe=this.listeners[Re];if(Qe.type===ye.type&&Qe.callback===ye.callback){this.listeners.splice(Re,1);break}}},Ae.prototype.removeAll=function(ye){var Re=this;ye?this.listeners.filter(function(Qe){return Qe.type===ye}).forEach(function(Qe){return Re.remove(Qe)}):this.listeners.splice(0,this.listeners.length)},Ae.prototype.fire=function(ye){this.getListeners(ye.type).forEach(function(Qe){return Qe.callback(ye)})},Ae}(),K=function(){function Ae(ye){this.eventManager=ye,this.queue=[]}return Ae.prototype.add=function(ye){this.queue.push(ye)},Ae.prototype.process=function(){for(;this.queue.length>0;){var ye=this.queue.shift();ye?.action&&ye.action(),ye?.event&&this.eventManager.fire(ye.event)}},Ae}(),se=function(Ae){return Ae[Ae.AVAILABLE=0]="AVAILABLE",Ae[Ae.UNAVAILABLE=1]="UNAVAILABLE",Ae}(se||{}),De=function(Ae){function ye(){var Re=null!==Ae&&Ae.apply(this,arguments)||this;return Re._started=!1,Re._enabled=!1,Re._status=se.UNAVAILABLE,Re}return P(ye,Ae),ye.prototype.delay=function(Re){return G(this,void 0,void 0,function(){return Q(this,function(Qe){return[2,new Promise(function(vt){return setTimeout(vt,Re)})]})})},ye.prototype.timeout=function(){return G(this,void 0,void 0,function(){return Q(this,function(Re){return[2,new Promise(function(Qe,vt){return setTimeout(vt,50)})]})})},ye.prototype.reportToListeners=function(){this.fire({type:W.AudioStatusChange}),this.removeAll()},ye.prototype.enableAudio=function(){return G(this,void 0,void 0,function(){return Q(this,function(Re){return this._enabled||(this._enabled=!0,this._status=se.AVAILABLE,this.reportToListeners()),[2]})})},ye.prototype.testAudio=function(){return G(this,void 0,void 0,function(){return Q(this,function(Qe){switch(Qe.label){case 0:if(this._status!==se.UNAVAILABLE||null===this._audioContext)return[3,4];Qe.label=1;case 1:return Qe.trys.push([1,3,,4]),[4,Promise.race([this._audioContext.resume(),this.timeout()])];case 2:return Qe.sent(),this.enableAudio(),[3,4];case 3:return Qe.sent(),[3,4];case 4:return[2]}})})},ye.prototype._establishAudio=function(){return G(this,void 0,void 0,function(){return Q(this,function(Re){switch(Re.label){case 0:return this._started?[3,5]:(this._started=!0,typeof window>"u"?(this.enableAudio(),[3,5]):[3,1]);case 1:this._audioContext=new AudioContext,this.listenForUserAction(),Re.label=2;case 2:return this._status!==se.UNAVAILABLE?[3,5]:[4,this.testAudio()];case 3:return Re.sent(),[4,this.delay(1e3)];case 4:return Re.sent(),[3,2];case 5:return[2]}})})},ye.prototype.listenForUserAction=function(){var Re=this;document.addEventListener("pointerdown",function(){return G(Re,void 0,void 0,function(){return Q(this,function(vt){return this.enableAudio(),[2]})})},{once:!0})},ye.prototype.establishAudio=function(){return G(this,void 0,void 0,function(){return Q(this,function(Re){return this._establishAudio(),[2]})})},Object.defineProperty(ye.prototype,"systemVolume",{get:function(){return this._status===se.UNAVAILABLE?(this.testAudio(),0):1},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"status",{get:function(){return this._status},enumerable:!1,configurable:!0}),ye}(n),Fe=new De,_e=function(){function Ae(){}return Ae.prototype.observe=function(){},Ae.prototype.unobserve=function(){},Ae.prototype.disconnect=function(){},Ae}(),ke=globalThis.ResizeObserver||_e,Ve=new(function(){function Ae(){var ye=this;this._elementsMap=new Map,this._onObservedEntry=function(Re){var Qe=ye._elementsMap.get(Re.target);null!==Qe?Qe.onResize(0==Re.target.clientWidth||0==Re.target.clientHeight):ye._resizeObserver.unobserve(Re.target)},this._onObserved=function(Re){Re.forEach(ye._onObservedEntry)},this._resizeObserver=new ke(this._onObserved)}return Ae.prototype.add=function(ye,Re){var Qe={onResize:Re,element:ye};return this._elementsMap.set(ye,Qe),this._resizeObserver.observe(ye),Qe},Ae.prototype.remove=function(ye){this._resizeObserver.unobserve(ye.element),this._elementsMap.delete(ye.element)},Ae}()),Ie=function(){function Ae(ye){this.enableRiveAssetCDN=!0,this.referenceCount=0,this.src=ye.src,this.buffer=ye.buffer,ye.assetLoader&&(this.assetLoader=ye.assetLoader),this.enableRiveAssetCDN="boolean"!=typeof ye.enableRiveAssetCDN||ye.enableRiveAssetCDN,this.eventManager=new n,ye.onLoad&&this.on(W.Load,ye.onLoad),ye.onLoadError&&this.on(W.LoadError,ye.onLoadError)}return Ae.prototype.initData=function(){return G(this,void 0,void 0,function(){var ye,Re,Qe;return Q(this,function(vt){switch(vt.label){case 0:return this.src?(ye=this,[4,de(this.src)]):[3,2];case 1:ye.buffer=vt.sent(),vt.label=2;case 2:return this.assetLoader&&(Re=new this.runtime.CustomFileAssetLoader({loadContents:this.assetLoader})),Qe=this,[4,this.runtime.load(new Uint8Array(this.buffer),Re,this.enableRiveAssetCDN)];case 3:if(Qe.file=vt.sent(),null===this.file)throw this.eventManager.fire({type:W.LoadError,data:null}),new Error(Ae.fileLoadErrorMessage);return this.eventManager.fire({type:W.Load,data:this}),[2]}})})},Ae.prototype.init=function(){return G(this,void 0,void 0,function(){var ye;return Q(this,function(Re){switch(Re.label){case 0:if(!this.src&&!this.buffer)throw new Error(Ae.missingErrorMessage);return ye=this,[4,z.awaitInstance()];case 1:return ye.runtime=Re.sent(),[4,this.initData()];case 2:return Re.sent(),[2]}})})},Ae.prototype.on=function(ye,Re){this.eventManager.add({type:ye,callback:Re})},Ae.prototype.off=function(ye,Re){this.eventManager.remove({type:ye,callback:Re})},Ae.prototype.cleanup=function(){var ye;this.referenceCount-=1,this.referenceCount<=0&&(this.removeAllRiveEventListeners(),null===(ye=this.file)||void 0===ye||ye.delete())},Ae.prototype.removeAllRiveEventListeners=function(ye){this.eventManager.removeAll(ye)},Ae.prototype.getInstance=function(){if(null!==this.file)return this.referenceCount+=1,this.file},Ae.missingErrorMessage="Rive source file or data buffer required",Ae.fileLoadErrorMessage="The file failed to load",Ae}(),Se=function(){function Ae(ye){var Qe,Re=this;this.loaded=!1,this._observed=null,this.readyForPlaying=!1,this.artboard=null,this.eventCleanup=null,this.shouldDisableRiveListeners=!1,this.automaticallyHandleEvents=!1,this.enableRiveAssetCDN=!0,this._volume=1,this._artboardWidth=void 0,this._artboardHeight=void 0,this._devicePixelRatioUsed=1,this._hasZeroSize=!1,this._audioEventListener=null,this.durations=[],this.frameTimes=[],this.frameCount=0,this.isTouchScrollEnabled=!1,this.onCanvasResize=function(vt){Re._hasZeroSize=vt,(!Re._layout.maxX||!Re._layout.maxY)&&Re.resizeToCanvas()},this.renderSecondTimer=0,this.canvas=ye.canvas,ye.canvas.constructor===HTMLCanvasElement&&(this._observed=Ve.add(this.canvas,this.onCanvasResize)),this.src=ye.src,this.buffer=ye.buffer,this.riveFile=ye.riveFile,this.layout=null!==(Qe=ye.layout)&&void 0!==Qe?Qe:new X,this.shouldDisableRiveListeners=!!ye.shouldDisableRiveListeners,this.isTouchScrollEnabled=!!ye.isTouchScrollEnabled,this.automaticallyHandleEvents=!!ye.automaticallyHandleEvents,this.enableRiveAssetCDN=void 0===ye.enableRiveAssetCDN||ye.enableRiveAssetCDN,this.eventManager=new n,ye.onLoad&&this.on(W.Load,ye.onLoad),ye.onLoadError&&this.on(W.LoadError,ye.onLoadError),ye.onPlay&&this.on(W.Play,ye.onPlay),ye.onPause&&this.on(W.Pause,ye.onPause),ye.onStop&&this.on(W.Stop,ye.onStop),ye.onLoop&&this.on(W.Loop,ye.onLoop),ye.onStateChange&&this.on(W.StateChange,ye.onStateChange),ye.onAdvance&&this.on(W.Advance,ye.onAdvance),ye.onload&&!ye.onLoad&&this.on(W.Load,ye.onload),ye.onloaderror&&!ye.onLoadError&&this.on(W.LoadError,ye.onloaderror),ye.onplay&&!ye.onPlay&&this.on(W.Play,ye.onplay),ye.onpause&&!ye.onPause&&this.on(W.Pause,ye.onpause),ye.onstop&&!ye.onStop&&this.on(W.Stop,ye.onstop),ye.onloop&&!ye.onLoop&&this.on(W.Loop,ye.onloop),ye.onstatechange&&!ye.onStateChange&&this.on(W.StateChange,ye.onstatechange),ye.assetLoader&&(this.assetLoader=ye.assetLoader),this.taskQueue=new K(this.eventManager),this.init({src:this.src,buffer:this.buffer,riveFile:this.riveFile,autoplay:ye.autoplay,animations:ye.animations,stateMachines:ye.stateMachines,artboard:ye.artboard,useOffscreenRenderer:ye.useOffscreenRenderer})}return Ae.new=function(ye){return console.warn("This function is deprecated: please use `new Rive({})` instead"),new Ae(ye)},Ae.prototype.onSystemAudioChanged=function(){this.volume=this._volume},Ae.prototype.init=function(ye){var Re=this,vt=ye.buffer,Nt=ye.riveFile,Dt=ye.animations,qe=ye.stateMachines,ze=ye.artboard,Ge=ye.autoplay,dt=void 0!==Ge&&Ge,Dn=ye.useOffscreenRenderer,wt=void 0!==Dn&&Dn;if(this.src=ye.src,this.buffer=vt,this.riveFile=Nt,!this.src&&!this.buffer&&!this.riveFile)throw new Error(Ae.missingErrorMessage);var Hn=le(Dt),Gt=le(qe);this.loaded=!1,this.readyForPlaying=!1,z.awaitInstance().then(function(An){Re.runtime=An,Re.removeRiveListeners(),Re.deleteRiveRenderer(),Re.renderer=Re.runtime.makeRenderer(Re.canvas,wt),Re.canvas.width||Re.canvas.height||Re.resizeDrawingSurfaceToCanvas(),Re.initData(ze,Hn,Gt,dt).then(function(){return Re.setupRiveListeners()}).catch(function(Kt){console.error(Kt)})}).catch(function(An){console.error(An)})},Ae.prototype.setupRiveListeners=function(ye){var Re=this;if(!this.shouldDisableRiveListeners){var Qe=(this.animator.stateMachines||[]).filter(function(Nt){return Nt.playing&&Re.runtime.hasListeners(Nt.instance)}).map(function(Nt){return Nt.instance}),vt=this.isTouchScrollEnabled;ye&&"isTouchScrollEnabled"in ye&&(vt=ye.isTouchScrollEnabled),this.eventCleanup=(0,R.registerTouchInteractions)({canvas:this.canvas,artboard:this.artboard,stateMachines:Qe,renderer:this.renderer,rive:this.runtime,fit:this._layout.runtimeFit(this.runtime),alignment:this._layout.runtimeAlignment(this.runtime),isTouchScrollEnabled:vt,layoutScaleFactor:this._layout.layoutScaleFactor})}},Ae.prototype.removeRiveListeners=function(){this.eventCleanup&&(this.eventCleanup(),this.eventCleanup=null)},Ae.prototype.initializeAudio=function(){var Re,ye=this;Fe.status==se.UNAVAILABLE&&null!==(Re=this.artboard)&&void 0!==Re&&Re.hasAudio&&null===this._audioEventListener&&(this._audioEventListener={type:W.AudioStatusChange,callback:function(){return ye.onSystemAudioChanged()}},Fe.add(this._audioEventListener),Fe.establishAudio())},Ae.prototype.initArtboardSize=function(){this.artboard&&(this._artboardWidth=this.artboard.width=this._artboardWidth||this.artboard.width,this._artboardHeight=this.artboard.height=this._artboardHeight||this.artboard.height)},Ae.prototype.initData=function(ye,Re,Qe,vt){var Nt;return G(this,void 0,void 0,function(){var qe;return Q(this,function(ze){switch(ze.label){case 0:return ze.trys.push([0,3,,4]),null!=this.riveFile?[3,2]:(this.riveFile=new Ie({src:this.src,buffer:this.buffer,enableRiveAssetCDN:this.enableRiveAssetCDN,assetLoader:this.assetLoader}),[4,this.riveFile.init()]);case 1:ze.sent(),ze.label=2;case 2:return this.file=this.riveFile.getInstance(),this.initArtboard(ye,Re,Qe,vt),this.initArtboardSize(),this.initializeAudio(),this.loaded=!0,this.eventManager.fire({type:W.Load,data:null!==(Nt=this.src)&&void 0!==Nt?Nt:"buffer"}),this.readyForPlaying=!0,this.taskQueue.process(),this.drawFrame(),[2,Promise.resolve()];case 3:return ze.sent(),qe="Problem loading file; may be corrupt!",console.warn(qe),this.eventManager.fire({type:W.LoadError,data:qe}),[2,Promise.reject(qe)];case 4:return[2]}})})},Ae.prototype.initArtboard=function(ye,Re,Qe,vt){if(this.file){var qe,Nt=ye?this.file.artboardByName(ye):this.file.defaultArtboard();if(!Nt){var Dt="Invalid artboard name or no default artboard";return console.warn(Dt),void this.eventManager.fire({type:W.LoadError,data:Dt})}if(this.artboard=Nt,Nt.volume=this._volume*Fe.systemVolume,this.artboard.animationCount()<1)throw this.eventManager.fire({type:W.LoadError,data:Dt="Artboard has no animations"}),Dt;this.animator=new Y(this.runtime,this.artboard,this.eventManager),Re.length>0||Qe.length>0?(qe=Re.concat(Qe),this.animator.initLinearAnimations(Re,vt),this.animator.initStateMachines(Qe,vt)):qe=[this.animator.atLeastOne(vt,!1)],this.taskQueue.add({event:{type:vt?W.Play:W.Pause,data:qe}})}},Ae.prototype.drawFrame=function(){this.startRendering()},Ae.prototype.draw=function(ye,Re){this.frameRequestId=null;var Qe=performance.now();this.lastRenderTime||(this.lastRenderTime=ye),this.renderSecondTimer+=ye-this.lastRenderTime,this.renderSecondTimer>5e3&&(this.renderSecondTimer=0,Re?.());var vt=(ye-this.lastRenderTime)/1e3;this.lastRenderTime=ye;for(var Dt=0,qe=this.animator.animations.filter(function(Ni){return Ni.playing||Ni.needsScrub}).sort(function(Ni){return Ni.needsScrub?-1:1});Dt<qe.length;Dt++){var ze=qe[Dt];ze.advance(vt),ze.instance.didLoop&&(ze.loopCount+=1),ze.apply(1)}for(var dt=0,Dn=this.animator.stateMachines.filter(function(Ni){return Ni.playing});dt<Dn.length;dt++){var wt=Dn[dt],Hn=wt.reportedEventCount();if(Hn)for(var Gt=0;Gt<Hn;Gt++){var An=wt.reportedEventAt(Gt);if(An)if(An.type===ne.OpenUrl){if(this.eventManager.fire({type:W.RiveEvent,data:An}),this.automaticallyHandleEvents){var Kt=document.createElement("a"),Vt=An.url,Fn=An.target,kn=(0,R.sanitizeUrl)(Vt);Vt&&Kt.setAttribute("href",kn),Fn&&Kt.setAttribute("target",Fn),kn&&kn!==R.BLANK_URL&&Kt.click()}}else this.eventManager.fire({type:W.RiveEvent,data:An})}wt.advanceAndApply(vt)}0==this.animator.stateMachines.length&&this.artboard.advance(vt);var $n=this.renderer;$n.clear(),$n.save(),this.alignRenderer(),this._hasZeroSize||this.artboard.draw($n),$n.restore(),$n.flush(),this.animator.handleLooping(),this.animator.handleStateChanges(),this.animator.handleAdvancing(vt),this.frameCount++;var Ii=performance.now();for(this.frameTimes.push(Ii),this.durations.push(Ii-Qe);this.frameTimes[0]<=Ii-1e3;)this.frameTimes.shift(),this.durations.shift();this.animator.isPlaying?this.startRendering():(this.animator.isPaused||this.animator.isStopped)&&(this.lastRenderTime=0)},Ae.prototype.alignRenderer=function(){var Qe=this.runtime,vt=this._layout,Nt=this.artboard;this.renderer.align(vt.runtimeFit(Qe),vt.runtimeAlignment(Qe),{minX:vt.minX,minY:vt.minY,maxX:vt.maxX,maxY:vt.maxY},Nt.bounds,this._devicePixelRatioUsed*vt.layoutScaleFactor)},Object.defineProperty(Ae.prototype,"fps",{get:function(){return this.durations.length},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"frameTime",{get:function(){return 0===this.durations.length?0:(this.durations.reduce(function(ye,Re){return ye+Re},0)/this.durations.length).toFixed(4)},enumerable:!1,configurable:!0}),Ae.prototype.cleanup=function(){var ye;this.stopRendering(),this.cleanupInstances(),null!==this._observed&&Ve.remove(this._observed),this.removeRiveListeners(),null===(ye=this.riveFile)||void 0===ye||ye.cleanup(),this.riveFile=null,this.file=null,this.deleteRiveRenderer(),null!==this._audioEventListener&&(Fe.remove(this._audioEventListener),this._audioEventListener=null)},Ae.prototype.deleteRiveRenderer=function(){var ye;null===(ye=this.renderer)||void 0===ye||ye.delete(),this.renderer=null},Ae.prototype.cleanupInstances=function(){null!==this.eventCleanup&&this.eventCleanup(),this.stop(),this.artboard&&(this.artboard.delete(),this.artboard=null)},Ae.prototype.retrieveTextRun=function(ye){var Re;if(ye)if(this.artboard){var Qe=this.artboard.textRun(ye);if(Qe)return Qe;console.warn("Could not access a text run with name '".concat(ye,"' in the '").concat(null===(Re=this.artboard)||void 0===Re?void 0:Re.name,"' Artboard. Note that you must rename a text run node in the Rive editor to make it queryable at runtime."))}else console.warn("Tried to access text run, but the Artboard is null");else console.warn("No text run name provided")},Ae.prototype.getTextRunValue=function(ye){var Re=this.retrieveTextRun(ye);return Re?Re.text:void 0},Ae.prototype.setTextRunValue=function(ye,Re){var Qe=this.retrieveTextRun(ye);Qe&&(Qe.text=Re)},Ae.prototype.play=function(ye,Re){var Qe=this;ye=le(ye),this.readyForPlaying?(this.animator.play(ye),this.eventCleanup&&this.eventCleanup(),this.setupRiveListeners(),this.startRendering()):this.taskQueue.add({action:function(){return Qe.play(ye,Re)}})},Ae.prototype.pause=function(ye){var Re=this;ye=le(ye),this.readyForPlaying?(this.eventCleanup&&this.eventCleanup(),this.animator.pause(ye)):this.taskQueue.add({action:function(){return Re.pause(ye)}})},Ae.prototype.scrub=function(ye,Re){var Qe=this;ye=le(ye),this.readyForPlaying?(this.animator.scrub(ye,Re||0),this.drawFrame()):this.taskQueue.add({action:function(){return Qe.scrub(ye,Re)}})},Ae.prototype.stop=function(ye){var Re=this;ye=le(ye),this.readyForPlaying?(this.animator&&this.animator.stop(ye),this.eventCleanup&&this.eventCleanup()):this.taskQueue.add({action:function(){return Re.stop(ye)}})},Ae.prototype.reset=function(ye){var Re,Qe=ye?.artboard,vt=le(ye?.animations),Nt=le(ye?.stateMachines),Dt=null!==(Re=ye?.autoplay)&&void 0!==Re&&Re;this.cleanupInstances(),this.initArtboard(Qe,vt,Nt,Dt),this.taskQueue.process()},Ae.prototype.load=function(ye){this.file=null,this.stop(),this.init(ye)},Object.defineProperty(Ae.prototype,"layout",{get:function(){return this._layout},set:function(ye){this._layout=ye,(!ye.maxX||!ye.maxY)&&this.resizeToCanvas(),this.loaded&&!this.animator.isPlaying&&this.drawFrame()},enumerable:!1,configurable:!0}),Ae.prototype.resizeToCanvas=function(){this._layout=this.layout.copyWith({minX:0,minY:0,maxX:this.canvas.width,maxY:this.canvas.height})},Ae.prototype.resizeDrawingSurfaceToCanvas=function(ye){if(this.canvas instanceof HTMLCanvasElement&&window){var Re=this.canvas.getBoundingClientRect(),Qe=Re.width,vt=Re.height,Nt=ye||window.devicePixelRatio||1;if(this.devicePixelRatioUsed=Nt,this.canvas.width=Nt*Qe,this.canvas.height=Nt*vt,this.startRendering(),this.resizeToCanvas(),this.layout.fit===H.Layout){var Dt=this._layout.layoutScaleFactor;this.artboard.width=Qe/Dt,this.artboard.height=vt/Dt}}},Object.defineProperty(Ae.prototype,"source",{get:function(){return this.src},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"activeArtboard",{get:function(){return this.artboard?this.artboard.name:""},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"animationNames",{get:function(){if(!this.loaded||!this.artboard)return[];for(var ye=[],Re=0;Re<this.artboard.animationCount();Re++)ye.push(this.artboard.animationByIndex(Re).name);return ye},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"stateMachineNames",{get:function(){if(!this.loaded||!this.artboard)return[];for(var ye=[],Re=0;Re<this.artboard.stateMachineCount();Re++)ye.push(this.artboard.stateMachineByIndex(Re).name);return ye},enumerable:!1,configurable:!0}),Ae.prototype.stateMachineInputs=function(ye){if(this.loaded){var Re=this.animator.stateMachines.find(function(Qe){return Qe.name===ye});return Re?.inputs}},Ae.prototype.retrieveInputAtPath=function(ye,Re){if(ye)if(this.artboard){var Qe=this.artboard.inputByPath(ye,Re);if(Qe)return Qe;console.warn("Could not access an input with name: '".concat(ye,"', at path:'").concat(Re,"'"))}else console.warn("Tried to access input: '".concat(ye,"', at path: '").concat(Re,"', but the Artboard is null"));else console.warn("No input name provided for path '".concat(Re,"'"))},Ae.prototype.setBooleanStateAtPath=function(ye,Re,Qe){var vt=this.retrieveInputAtPath(ye,Qe);vt&&(vt.type===fe.Boolean?vt.asBool().value=Re:console.warn("Input with name: '".concat(ye,"', at path:'").concat(Qe,"' is not a boolean")))},Ae.prototype.setNumberStateAtPath=function(ye,Re,Qe){var vt=this.retrieveInputAtPath(ye,Qe);vt&&(vt.type===fe.Number?vt.asNumber().value=Re:console.warn("Input with name: '".concat(ye,"', at path:'").concat(Qe,"' is not a number")))},Ae.prototype.fireStateAtPath=function(ye,Re){var Qe=this.retrieveInputAtPath(ye,Re);Qe&&(Qe.type===fe.Trigger?Qe.asTrigger().fire():console.warn("Input with name: '".concat(ye,"', at path:'").concat(Re,"' is not a trigger")))},Ae.prototype.retrieveTextAtPath=function(ye,Re){if(ye)if(Re)if(this.artboard){var Qe=this.artboard.textByPath(ye,Re);if(Qe)return Qe;console.warn("Could not access text with name: '".concat(ye,"', at path:'").concat(Re,"'"))}else console.warn("Tried to access text: '".concat(ye,"', at path: '").concat(Re,"', but the Artboard is null"));else console.warn("No path provided for text '".concat(ye,"'"));else console.warn("No text name provided for path '".concat(Re,"'"))},Ae.prototype.getTextRunValueAtPath=function(ye,Re){var Qe=this.retrieveTextAtPath(ye,Re);if(Qe)return Qe.text;console.warn("Could not get text with name: '".concat(ye,"', at path:'").concat(Re,"'"))},Ae.prototype.setTextRunValueAtPath=function(ye,Re,Qe){var vt=this.retrieveTextAtPath(ye,Qe);vt?vt.text=Re:console.warn("Could not set text with name: '".concat(ye,"', at path:'").concat(Qe,"'"))},Object.defineProperty(Ae.prototype,"playingStateMachineNames",{get:function(){return this.loaded?this.animator.stateMachines.filter(function(ye){return ye.playing}).map(function(ye){return ye.name}):[]},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"playingAnimationNames",{get:function(){return this.loaded?this.animator.animations.filter(function(ye){return ye.playing}).map(function(ye){return ye.name}):[]},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"pausedAnimationNames",{get:function(){return this.loaded?this.animator.animations.filter(function(ye){return!ye.playing}).map(function(ye){return ye.name}):[]},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"pausedStateMachineNames",{get:function(){return this.loaded?this.animator.stateMachines.filter(function(ye){return!ye.playing}).map(function(ye){return ye.name}):[]},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"isPlaying",{get:function(){return this.animator.isPlaying},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"isPaused",{get:function(){return this.animator.isPaused},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"isStopped",{get:function(){return this.animator.isStopped},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"bounds",{get:function(){return this.artboard?this.artboard.bounds:void 0},enumerable:!1,configurable:!0}),Ae.prototype.on=function(ye,Re){this.eventManager.add({type:ye,callback:Re})},Ae.prototype.off=function(ye,Re){this.eventManager.remove({type:ye,callback:Re})},Ae.prototype.unsubscribe=function(ye,Re){console.warn("This function is deprecated: please use `off()` instead."),this.off(ye,Re)},Ae.prototype.removeAllRiveEventListeners=function(ye){this.eventManager.removeAll(ye)},Ae.prototype.unsubscribeAll=function(ye){console.warn("This function is deprecated: please use `removeAllRiveEventListeners()` instead."),this.removeAllRiveEventListeners(ye)},Ae.prototype.stopRendering=function(){this.loaded&&this.frameRequestId&&(this.runtime.cancelAnimationFrame?this.runtime.cancelAnimationFrame(this.frameRequestId):cancelAnimationFrame(this.frameRequestId),this.frameRequestId=null)},Ae.prototype.startRendering=function(){this.loaded&&this.artboard&&!this.frameRequestId&&(this.frameRequestId=this.runtime.requestAnimationFrame?this.runtime.requestAnimationFrame(this.draw.bind(this)):requestAnimationFrame(this.draw.bind(this)))},Ae.prototype.enableFPSCounter=function(ye){this.runtime.enableFPSCounter(ye)},Ae.prototype.disableFPSCounter=function(){this.runtime.disableFPSCounter()},Object.defineProperty(Ae.prototype,"contents",{get:function(){if(this.loaded){for(var ye={artboards:[]},Re=0;Re<this.file.artboardCount();Re++){for(var Qe=this.file.artboardByIndex(Re),vt={name:Qe.name,animations:[],stateMachines:[]},Nt=0;Nt<Qe.animationCount();Nt++){var Dt=Qe.animationByIndex(Nt);vt.animations.push(Dt.name)}for(var qe=0;qe<Qe.stateMachineCount();qe++){for(var ze=Qe.stateMachineByIndex(qe),Ge=ze.name,dt=new this.runtime.StateMachineInstance(ze,Qe),Dn=[],wt=0;wt<dt.inputCount();wt++){var Hn=dt.input(wt);Dn.push({name:Hn.name,type:Hn.type})}vt.stateMachines.push({name:Ge,inputs:Dn})}ye.artboards.push(vt)}return ye}},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"volume",{get:function(){return this.artboard&&this.artboard.volume!==this._volume&&(this._volume=this.artboard.volume),this._volume},set:function(ye){this._volume=ye,this.artboard&&(this.artboard.volume=ye*Fe.systemVolume)},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"artboardWidth",{get:function(){var ye;return this.artboard?this.artboard.width:null!==(ye=this._artboardWidth)&&void 0!==ye?ye:0},set:function(ye){this._artboardWidth=ye,this.artboard&&(this.artboard.width=ye)},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"artboardHeight",{get:function(){var ye;return this.artboard?this.artboard.height:null!==(ye=this._artboardHeight)&&void 0!==ye?ye:0},set:function(ye){this._artboardHeight=ye,this.artboard&&(this.artboard.height=ye)},enumerable:!1,configurable:!0}),Ae.prototype.resetArtboardSize=function(){this.artboard?(this.artboard.resetArtboardSize(),this._artboardWidth=this.artboard.width,this._artboardHeight=this.artboard.height):(this._artboardWidth=void 0,this._artboardHeight=void 0)},Object.defineProperty(Ae.prototype,"devicePixelRatioUsed",{get:function(){return this._devicePixelRatioUsed},set:function(ye){this._devicePixelRatioUsed=ye},enumerable:!1,configurable:!0}),Ae.missingErrorMessage="Rive source file or data buffer required",Ae}(),de=function(Ae){return G(void 0,void 0,void 0,function(){var ye;return Q(this,function(vt){switch(vt.label){case 0:return ye=new Request(Ae),[4,fetch(ye)];case 1:return[4,vt.sent().arrayBuffer()];case 2:return[2,vt.sent()]}})})},le=function(Ae){return"string"==typeof Ae?[Ae]:Ae instanceof Array?Ae:[]},xe={EventManager:n,TaskQueueManager:K},We=function(Ae){return new Promise(function(ye){return z.getInstance(function(Re){Re.decodeAudio(Ae,ye)})})},st=function(Ae){return new Promise(function(ye){return z.getInstance(function(Re){Re.decodeImage(Ae,ye)})})},ut=function(Ae){return new Promise(function(ye){return z.getInstance(function(Re){Re.decodeFont(Ae,ye)})})}})(),C})(),m.exports=T()},7374:function(m){m.exports=function(){"use strict";var b=6e4,T=36e5,C="millisecond",E="second",D="minute",k="hour",R="day",P="week",G="month",Q="quarter",H="year",Z="date",X="Invalid Date",z=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,fe=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,q={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(ke){var be=["th","st","nd","rd"],Ve=ke%100;return"["+ke+(be[(Ve-20)%10]||be[Ve]||be[0])+"]"}},ne=function(ke,be,Ve){var Ie=String(ke);return!Ie||Ie.length>=be?ke:""+Array(be+1-Ie.length).join(Ve)+ke},N={s:ne,z:function(ke){var be=-ke.utcOffset(),Ve=Math.abs(be),Ie=Math.floor(Ve/60),Se=Ve%60;return(be<=0?"+":"-")+ne(Ie,2,"0")+":"+ne(Se,2,"0")},m:function ke(be,Ve){if(be.date()<Ve.date())return-ke(Ve,be);var Ie=12*(Ve.year()-be.year())+(Ve.month()-be.month()),Se=be.clone().add(Ie,G),de=Ve-Se<0,le=be.clone().add(Ie+(de?-1:1),G);return+(-(Ie+(Ve-Se)/(de?Se-le:le-Se))||0)},a:function(ke){return ke<0?Math.ceil(ke)||0:Math.floor(ke)},p:function(ke){return{M:G,y:H,w:P,d:R,D:Z,h:k,m:D,s:E,ms:C,Q}[ke]||String(ke||"").toLowerCase().replace(/s$/,"")},u:function(ke){return void 0===ke}},Y="en",W={};W[Y]=q;var J="$isDayjsObject",n=function(ke){return ke instanceof Fe||!(!ke||!ke[J])},K=function ke(be,Ve,Ie){var Se;if(!be)return Y;if("string"==typeof be){var de=be.toLowerCase();W[de]&&(Se=de),Ve&&(W[de]=Ve,Se=de);var le=be.split("-");if(!Se&&le.length>1)return ke(le[0])}else{var xe=be.name;W[xe]=be,Se=xe}return!Ie&&Se&&(Y=Se),Se||!Ie&&Y},se=function(ke,be){if(n(ke))return ke.clone();var Ve="object"==typeof be?be:{};return Ve.date=ke,Ve.args=arguments,new Fe(Ve)},De=N;De.l=K,De.i=n,De.w=function(ke,be){return se(ke,{locale:be.$L,utc:be.$u,x:be.$x,$offset:be.$offset})};var Fe=function(){function ke(Ve){this.$L=K(Ve.locale,null,!0),this.parse(Ve),this.$x=this.$x||Ve.x||{},this[J]=!0}var be=ke.prototype;return be.parse=function(Ve){this.$d=function(Ie){var Se=Ie.date,de=Ie.utc;if(null===Se)return new Date(NaN);if(De.u(Se))return new Date;if(Se instanceof Date)return new Date(Se);if("string"==typeof Se&&!/Z$/i.test(Se)){var le=Se.match(z);if(le){var xe=le[2]-1||0,We=(le[7]||"0").substring(0,3);return de?new Date(Date.UTC(le[1],xe,le[3]||1,le[4]||0,le[5]||0,le[6]||0,We)):new Date(le[1],xe,le[3]||1,le[4]||0,le[5]||0,le[6]||0,We)}}return new Date(Se)}(Ve),this.init()},be.init=function(){var Ve=this.$d;this.$y=Ve.getFullYear(),this.$M=Ve.getMonth(),this.$D=Ve.getDate(),this.$W=Ve.getDay(),this.$H=Ve.getHours(),this.$m=Ve.getMinutes(),this.$s=Ve.getSeconds(),this.$ms=Ve.getMilliseconds()},be.$utils=function(){return De},be.isValid=function(){return this.$d.toString()!==X},be.isSame=function(Ve,Ie){var Se=se(Ve);return this.startOf(Ie)<=Se&&Se<=this.endOf(Ie)},be.isAfter=function(Ve,Ie){return se(Ve)<this.startOf(Ie)},be.isBefore=function(Ve,Ie){return this.endOf(Ie)<se(Ve)},be.$g=function(Ve,Ie,Se){return De.u(Ve)?this[Ie]:this.set(Se,Ve)},be.unix=function(){return Math.floor(this.valueOf()/1e3)},be.valueOf=function(){return this.$d.getTime()},be.startOf=function(Ve,Ie){var Se=this,de=!!De.u(Ie)||Ie,le=De.p(Ve),xe=function(vt,Nt){var Dt=De.w(Se.$u?Date.UTC(Se.$y,Nt,vt):new Date(Se.$y,Nt,vt),Se);return de?Dt:Dt.endOf(R)},We=function(vt,Nt){return De.w(Se.toDate()[vt].apply(Se.toDate("s"),(de?[0,0,0,0]:[23,59,59,999]).slice(Nt)),Se)},st=this.$W,ut=this.$M,Ae=this.$D,ye="set"+(this.$u?"UTC":"");switch(le){case H:return de?xe(1,0):xe(31,11);case G:return de?xe(1,ut):xe(0,ut+1);case P:var Re=this.$locale().weekStart||0,Qe=(st<Re?st+7:st)-Re;return xe(de?Ae-Qe:Ae+(6-Qe),ut);case R:case Z:return We(ye+"Hours",0);case k:return We(ye+"Minutes",1);case D:return We(ye+"Seconds",2);case E:return We(ye+"Milliseconds",3);default:return this.clone()}},be.endOf=function(Ve){return this.startOf(Ve,!1)},be.$set=function(Ve,Ie){var Se,de=De.p(Ve),le="set"+(this.$u?"UTC":""),xe=(Se={},Se[R]=le+"Date",Se[Z]=le+"Date",Se[G]=le+"Month",Se[H]=le+"FullYear",Se[k]=le+"Hours",Se[D]=le+"Minutes",Se[E]=le+"Seconds",Se[C]=le+"Milliseconds",Se)[de],We=de===R?this.$D+(Ie-this.$W):Ie;if(de===G||de===H){var st=this.clone().set(Z,1);st.$d[xe](We),st.init(),this.$d=st.set(Z,Math.min(this.$D,st.daysInMonth())).$d}else xe&&this.$d[xe](We);return this.init(),this},be.set=function(Ve,Ie){return this.clone().$set(Ve,Ie)},be.get=function(Ve){return this[De.p(Ve)]()},be.add=function(Ve,Ie){var Se,de=this;Ve=Number(Ve);var le=De.p(Ie),xe=function(ut){var Ae=se(de);return De.w(Ae.date(Ae.date()+Math.round(ut*Ve)),de)};if(le===G)return this.set(G,this.$M+Ve);if(le===H)return this.set(H,this.$y+Ve);if(le===R)return xe(1);if(le===P)return xe(7);var We=(Se={},Se[D]=b,Se[k]=T,Se[E]=1e3,Se)[le]||1,st=this.$d.getTime()+Ve*We;return De.w(st,this)},be.subtract=function(Ve,Ie){return this.add(-1*Ve,Ie)},be.format=function(Ve){var Ie=this,Se=this.$locale();if(!this.isValid())return Se.invalidDate||X;var de=Ve||"YYYY-MM-DDTHH:mm:ssZ",le=De.z(this),xe=this.$H,We=this.$m,st=this.$M,ut=Se.weekdays,Ae=Se.months,Re=function(Nt,Dt,qe,ze){return Nt&&(Nt[Dt]||Nt(Ie,de))||qe[Dt].slice(0,ze)},Qe=function(Nt){return De.s(xe%12||12,Nt,"0")},vt=Se.meridiem||function(Nt,Dt,qe){var ze=Nt<12?"AM":"PM";return qe?ze.toLowerCase():ze};return de.replace(fe,function(Nt,Dt){return Dt||function(qe){switch(qe){case"YY":return String(Ie.$y).slice(-2);case"YYYY":return De.s(Ie.$y,4,"0");case"M":return st+1;case"MM":return De.s(st+1,2,"0");case"MMM":return Re(Se.monthsShort,st,Ae,3);case"MMMM":return Re(Ae,st);case"D":return Ie.$D;case"DD":return De.s(Ie.$D,2,"0");case"d":return String(Ie.$W);case"dd":return Re(Se.weekdaysMin,Ie.$W,ut,2);case"ddd":return Re(Se.weekdaysShort,Ie.$W,ut,3);case"dddd":return ut[Ie.$W];case"H":return String(xe);case"HH":return De.s(xe,2,"0");case"h":return Qe(1);case"hh":return Qe(2);case"a":return vt(xe,We,!0);case"A":return vt(xe,We,!1);case"m":return String(We);case"mm":return De.s(We,2,"0");case"s":return String(Ie.$s);case"ss":return De.s(Ie.$s,2,"0");case"SSS":return De.s(Ie.$ms,3,"0");case"Z":return le}return null}(Nt)||le.replace(":","")})},be.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},be.diff=function(Ve,Ie,Se){var de,le=this,xe=De.p(Ie),We=se(Ve),st=(We.utcOffset()-this.utcOffset())*b,ut=this-We,Ae=function(){return De.m(le,We)};switch(xe){case H:de=Ae()/12;break;case G:de=Ae();break;case Q:de=Ae()/3;break;case P:de=(ut-st)/6048e5;break;case R:de=(ut-st)/864e5;break;case k:de=ut/T;break;case D:de=ut/b;break;case E:de=ut/1e3;break;default:de=ut}return Se?de:De.a(de)},be.daysInMonth=function(){return this.endOf(G).$D},be.$locale=function(){return W[this.$L]},be.locale=function(Ve,Ie){if(!Ve)return this.$L;var Se=this.clone(),de=K(Ve,Ie,!0);return de&&(Se.$L=de),Se},be.clone=function(){return De.w(this.$d,this)},be.toDate=function(){return new Date(this.valueOf())},be.toJSON=function(){return this.isValid()?this.toISOString():null},be.toISOString=function(){return this.$d.toISOString()},be.toString=function(){return this.$d.toUTCString()},ke}(),_e=Fe.prototype;return se.prototype=_e,[["$ms",C],["$s",E],["$m",D],["$H",k],["$W",R],["$M",G],["$y",H],["$D",Z]].forEach(function(ke){_e[ke[1]]=function(be){return this.$g(be,ke[0],ke[1])}}),se.extend=function(ke,be){return ke.$i||(ke(be,Fe,se),ke.$i=!0),se},se.locale=K,se.isDayjs=n,se.unix=function(ke){return se(1e3*ke)},se.en=W[Y],se.Ls=W,se.p={},se}()},2900:function(m){m.exports=function(){"use strict";return function(y,b){var T=b.prototype,C=T.format;T.format=function(E){var D=this,k=this.$locale();if(!this.isValid())return C.bind(this)(E);var R=this.$utils(),P=(E||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(G){switch(G){case"Q":return Math.ceil((D.$M+1)/3);case"Do":return k.ordinal(D.$D);case"gggg":return D.weekYear();case"GGGG":return D.isoWeekYear();case"wo":return k.ordinal(D.week(),"W");case"w":case"ww":return R.s(D.week(),"w"===G?1:2,"0");case"W":case"WW":return R.s(D.isoWeek(),"W"===G?1:2,"0");case"k":case"kk":return R.s(String(0===D.$H?24:D.$H),"k"===G?1:2,"0");case"X":return Math.floor(D.$d.getTime()/1e3);case"x":return D.$d.getTime();case"z":return"["+D.offsetName()+"]";case"zzz":return"["+D.offsetName("long")+"]";default:return G}});return C.bind(this)(P)}}}()},1047:function(m){m.exports=function(){"use strict";return function(y,b,T){var E=function(G){return G&&(G.indexOf?G:G.s)},D=function(G,Q,H,Z,X){var z=G.name?G:G.$locale(),fe=E(z[Q]),q=E(z[H]),ne=fe||q.map(function(Y){return Y.slice(0,Z)});if(!X)return ne;var N=z.weekStart;return ne.map(function(Y,W){return ne[(W+(N||0))%7]})},k=function(){return T.Ls[T.locale()]},R=function(G,Q){return G.formats[Q]||G.formats[Q.toUpperCase()].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(Z,X,z){return X||z.slice(1)})},P=function(){var G=this;return{months:function(Q){return Q?Q.format("MMMM"):D(G,"months")},monthsShort:function(Q){return Q?Q.format("MMM"):D(G,"monthsShort","months",3)},firstDayOfWeek:function(){return G.$locale().weekStart||0},weekdays:function(Q){return Q?Q.format("dddd"):D(G,"weekdays")},weekdaysMin:function(Q){return Q?Q.format("dd"):D(G,"weekdaysMin","weekdays",2)},weekdaysShort:function(Q){return Q?Q.format("ddd"):D(G,"weekdaysShort","weekdays",3)},longDateFormat:function(Q){return R(G.$locale(),Q)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};b.prototype.localeData=function(){return P.bind(this)()},T.localeData=function(){var G=k();return{firstDayOfWeek:function(){return G.weekStart||0},weekdays:function(){return T.weekdays()},weekdaysShort:function(){return T.weekdaysShort()},weekdaysMin:function(){return T.weekdaysMin()},months:function(){return T.months()},monthsShort:function(){return T.monthsShort()},longDateFormat:function(Q){return R(G,Q)},meridiem:G.meridiem,ordinal:G.ordinal}},T.months=function(){return D(k(),"months")},T.monthsShort=function(){return D(k(),"monthsShort","months",3)},T.weekdays=function(G){return D(k(),"weekdays",null,null,G)},T.weekdaysShort=function(G){return D(k(),"weekdaysShort","weekdays",3,G)},T.weekdaysMin=function(G){return D(k(),"weekdaysMin","weekdays",2,G)}}}()},7409:function(m){m.exports=function(){"use strict";var y="week",b="year";return function(T,C,E){var D=C.prototype;D.week=function(k){if(void 0===k&&(k=null),null!==k)return this.add(7*(k-this.week()),"day");var R=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var P=E(this).startOf(b).add(1,b).date(R),G=E(this).endOf(y);if(P.isBefore(G))return 1}var Q=E(this).startOf(b).date(R).startOf(y).subtract(1,"millisecond"),H=this.diff(Q,y,!0);return H<0?E(this).startOf("week").week():Math.ceil(H)},D.weeks=function(k){return void 0===k&&(k=null),this.week(k)}}}()},8655:m=>{var y=-1;function C(_e,ke,be,Ve,Ie){if(_e===ke)return _e?[[0,_e]]:[];if(null!=be){var Se=function De(_e,ke,be){var Ve="number"==typeof be?{index:be,length:0}:be.oldRange,Ie="number"==typeof be?null:be.newRange,Se=_e.length,de=ke.length;if(0===Ve.length&&(null===Ie||0===Ie.length)){var le=Ve.index,xe=_e.slice(0,le),We=_e.slice(le),st=Ie?Ie.index:null,ut=le+de-Se;if(!(null!==st&&st!==ut||ut<0||ut>de)){var Ae=ke.slice(0,ut);if((ye=ke.slice(ut))===We){var Re=Math.min(le,ut);if((Qe=xe.slice(0,Re))===(vt=Ae.slice(0,Re)))return se(Qe,xe.slice(Re),Ae.slice(Re),We)}}if(null===st||st===le){var qe=le,ye=(Ae=ke.slice(0,qe),ke.slice(qe));if(Ae===xe){var ze=Math.min(Se-qe,de-qe);if((Ge=We.slice(We.length-ze))===(dt=ye.slice(ye.length-ze)))return se(xe,We.slice(0,We.length-ze),ye.slice(0,ye.length-ze),Ge)}}}if(Ve.length>0&&Ie&&0===Ie.length){var Qe=_e.slice(0,Ve.index),Ge=_e.slice(Ve.index+Ve.length);if(!(de<(Re=Qe.length)+(ze=Ge.length))){var vt=ke.slice(0,Re),dt=ke.slice(de-ze);if(Qe===vt&&Ge===dt)return se(Qe,_e.slice(Re,Se-ze),ke.slice(Re,de-ze),Ge)}}return null}(_e,ke,be);if(Se)return Se}var de=R(_e,ke),le=_e.substring(0,de);de=G(_e=_e.substring(de),ke=ke.substring(de));var xe=_e.substring(_e.length-de),We=function E(_e,ke){var be;if(!_e)return[[1,ke]];if(!ke)return[[y,_e]];var Ve=_e.length>ke.length?_e:ke,Ie=_e.length>ke.length?ke:_e,Se=Ve.indexOf(Ie);if(-1!==Se)return be=[[1,Ve.substring(0,Se)],[0,Ie],[1,Ve.substring(Se+Ie.length)]],_e.length>ke.length&&(be[0][0]=be[2][0]=y),be;if(1===Ie.length)return[[y,_e],[1,ke]];var de=function Q(_e,ke){var be=_e.length>ke.length?_e:ke,Ve=_e.length>ke.length?ke:_e;if(be.length<4||2*Ve.length<be.length)return null;function Ie(ye,Re,Qe){for(var qe,ze,Ge,dt,vt=ye.substring(Qe,Qe+Math.floor(ye.length/4)),Nt=-1,Dt="";-1!==(Nt=Re.indexOf(vt,Nt+1));){var Dn=R(ye.substring(Qe),Re.substring(Nt)),wt=G(ye.substring(0,Qe),Re.substring(0,Nt));Dt.length<wt+Dn&&(Dt=Re.substring(Nt-wt,Nt)+Re.substring(Nt,Nt+Dn),qe=ye.substring(0,Qe-wt),ze=ye.substring(Qe+Dn),Ge=Re.substring(0,Nt-wt),dt=Re.substring(Nt+Dn))}return 2*Dt.length>=ye.length?[qe,ze,Ge,dt,Dt]:null}var le,xe,We,st,ut,Se=Ie(be,Ve,Math.ceil(be.length/4)),de=Ie(be,Ve,Math.ceil(be.length/2));return Se||de?(le=de?Se&&Se[4].length>de[4].length?Se:de:Se,_e.length>ke.length?(xe=le[0],We=le[1],st=le[2],ut=le[3]):(st=le[0],ut=le[1],xe=le[2],We=le[3]),[xe,We,st,ut,le[4]]):null}(_e,ke);if(de){var xe=de[1],st=de[3],ut=de[4],Ae=C(de[0],de[2]),ye=C(xe,st);return Ae.concat([[0,ut]],ye)}return function D(_e,ke){for(var be=_e.length,Ve=ke.length,Ie=Math.ceil((be+Ve)/2),Se=Ie,de=2*Ie,le=new Array(de),xe=new Array(de),We=0;We<de;We++)le[We]=-1,xe[We]=-1;le[Se+1]=0,xe[Se+1]=0;for(var st=be-Ve,ut=st%2!=0,Ae=0,ye=0,Re=0,Qe=0,vt=0;vt<Ie;vt++){for(var Nt=-vt+Ae;Nt<=vt-ye;Nt+=2){for(var Dt=Se+Nt,ze=(qe=Nt===-vt||Nt!==vt&&le[Dt-1]<le[Dt+1]?le[Dt+1]:le[Dt-1]+1)-Nt;qe<be&&ze<Ve&&_e.charAt(qe)===ke.charAt(ze);)qe++,ze++;if(le[Dt]=qe,qe>be)ye+=2;else if(ze>Ve)Ae+=2;else if(ut&&(Ge=Se+st-Nt)>=0&&Ge<de&&-1!==xe[Ge]&&qe>=(dt=be-xe[Ge]))return k(_e,ke,qe,ze)}for(var Dn=-vt+Re;Dn<=vt-Qe;Dn+=2){for(var dt,Ge=Se+Dn,wt=(dt=Dn===-vt||Dn!==vt&&xe[Ge-1]<xe[Ge+1]?xe[Ge+1]:xe[Ge-1]+1)-Dn;dt<be&&wt<Ve&&_e.charAt(be-dt-1)===ke.charAt(Ve-wt-1);)dt++,wt++;if(xe[Ge]=dt,dt>be)Qe+=2;else if(wt>Ve)Re+=2;else if(!ut){var qe;if((Dt=Se+st-Dn)>=0&&Dt<de&&-1!==le[Dt])if(ze=Se+(qe=le[Dt])-Dt,qe>=(dt=be-dt))return k(_e,ke,qe,ze)}}}return[[y,_e],[1,ke]]}(_e,ke)}(_e=_e.substring(0,_e.length-de),ke=ke.substring(0,ke.length-de));return le&&We.unshift([0,le]),xe&&We.push([0,xe]),N(We,Ie),Ve&&function H(_e){for(var ke=!1,be=[],Ve=0,Ie=null,Se=0,de=0,le=0,xe=0,We=0;Se<_e.length;)0==_e[Se][0]?(be[Ve++]=Se,de=xe,le=We,xe=0,We=0,Ie=_e[Se][1]):(1==_e[Se][0]?xe+=_e[Se][1].length:We+=_e[Se][1].length,Ie&&Ie.length<=Math.max(de,le)&&Ie.length<=Math.max(xe,We)&&(_e.splice(be[Ve-1],0,[y,Ie]),_e[be[Ve-1]+1][0]=1,Ve--,Se=--Ve>0?be[Ve-1]:-1,de=0,le=0,xe=0,We=0,Ie=null,ke=!0)),Se++;for(ke&&N(_e),function ne(_e){function ke(ye,Re){if(!ye||!Re)return 6;var Qe=ye.charAt(ye.length-1),vt=Re.charAt(0),Nt=Qe.match(Z),Dt=vt.match(Z),qe=Nt&&Qe.match(X),ze=Dt&&vt.match(X),Ge=qe&&Qe.match(z),dt=ze&&vt.match(z),Dn=Ge&&ye.match(fe),wt=dt&&Re.match(q);return Dn||wt?5:Ge||dt?4:Nt&&!qe&&ze?3:qe||ze?2:Nt||Dt?1:0}for(var be=1;be<_e.length-1;){if(0==_e[be-1][0]&&0==_e[be+1][0]){var Ve=_e[be-1][1],Ie=_e[be][1],Se=_e[be+1][1],de=G(Ve,Ie);if(de){var le=Ie.substring(Ie.length-de);Ve=Ve.substring(0,Ve.length-de),Ie=le+Ie.substring(0,Ie.length-de),Se=le+Se}for(var xe=Ve,We=Ie,st=Se,ut=ke(Ve,Ie)+ke(Ie,Se);Ie.charAt(0)===Se.charAt(0);){Ve+=Ie.charAt(0),Ie=Ie.substring(1)+Se.charAt(0),Se=Se.substring(1);var Ae=ke(Ve,Ie)+ke(Ie,Se);Ae>=ut&&(ut=Ae,xe=Ve,We=Ie,st=Se)}_e[be-1][1]!=xe&&(xe?_e[be-1][1]=xe:(_e.splice(be-1,1),be--),_e[be][1]=We,st?_e[be+1][1]=st:(_e.splice(be+1,1),be--))}be++}}(_e),Se=1;Se<_e.length;){if(_e[Se-1][0]==y&&1==_e[Se][0]){var st=_e[Se-1][1],ut=_e[Se][1],Ae=P(st,ut),ye=P(ut,st);Ae>=ye?(Ae>=st.length/2||Ae>=ut.length/2)&&(_e.splice(Se,0,[0,ut.substring(0,Ae)]),_e[Se-1][1]=st.substring(0,st.length-Ae),_e[Se+1][1]=ut.substring(Ae),Se++):(ye>=st.length/2||ye>=ut.length/2)&&(_e.splice(Se,0,[0,st.substring(0,ye)]),_e[Se-1][0]=1,_e[Se-1][1]=ut.substring(0,ut.length-ye),_e[Se+1][0]=y,_e[Se+1][1]=st.substring(ye),Se++),Se++}Se++}}(We),We}function k(_e,ke,be,Ve){var Ie=_e.substring(0,be),Se=ke.substring(0,Ve),de=_e.substring(be),le=ke.substring(Ve),xe=C(Ie,Se),We=C(de,le);return xe.concat(We)}function R(_e,ke){if(!_e||!ke||_e.charAt(0)!==ke.charAt(0))return 0;for(var be=0,Ve=Math.min(_e.length,ke.length),Ie=Ve,Se=0;be<Ie;)_e.substring(Se,Ie)==ke.substring(Se,Ie)?Se=be=Ie:Ve=Ie,Ie=Math.floor((Ve-be)/2+be);return Y(_e.charCodeAt(Ie-1))&&Ie--,Ie}function P(_e,ke){var be=_e.length,Ve=ke.length;if(0==be||0==Ve)return 0;be>Ve?_e=_e.substring(be-Ve):be<Ve&&(ke=ke.substring(0,be));var Ie=Math.min(be,Ve);if(_e==ke)return Ie;for(var Se=0,de=1;;){var le=_e.substring(Ie-de),xe=ke.indexOf(le);if(-1==xe)return Se;de+=xe,(0==xe||_e.substring(Ie-de)==ke.substring(0,de))&&(Se=de,de++)}}function G(_e,ke){if(!_e||!ke||_e.slice(-1)!==ke.slice(-1))return 0;for(var be=0,Ve=Math.min(_e.length,ke.length),Ie=Ve,Se=0;be<Ie;)_e.substring(_e.length-Ie,_e.length-Se)==ke.substring(ke.length-Ie,ke.length-Se)?Se=be=Ie:Ve=Ie,Ie=Math.floor((Ve-be)/2+be);return W(_e.charCodeAt(_e.length-Ie))&&Ie--,Ie}var Z=/[^a-zA-Z0-9]/,X=/\s/,z=/[\r\n]/,fe=/\n\r?\n$/,q=/^\r?\n\r?\n/;function N(_e,ke){_e.push([0,""]);for(var le,be=0,Ve=0,Ie=0,Se="",de="";be<_e.length;)if(be<_e.length-1&&!_e[be][1])_e.splice(be,1);else switch(_e[be][0]){case 1:Ie++,de+=_e[be][1],be++;break;case y:Ve++,Se+=_e[be][1],be++;break;case 0:var xe=be-Ie-Ve-1;if(ke){if(xe>=0&&n(_e[xe][1])){var We=_e[xe][1].slice(-1);if(_e[xe][1]=_e[xe][1].slice(0,-1),Se=We+Se,de=We+de,!_e[xe][1]){_e.splice(xe,1),be--;var st=xe-1;_e[st]&&1===_e[st][0]&&(Ie++,de=_e[st][1]+de,st--),_e[st]&&_e[st][0]===y&&(Ve++,Se=_e[st][1]+Se,st--),xe=st}}J(_e[be][1])&&(We=_e[be][1].charAt(0),_e[be][1]=_e[be][1].slice(1),Se+=We,de+=We)}if(be<_e.length-1&&!_e[be][1]){_e.splice(be,1);break}if(Se.length>0||de.length>0){Se.length>0&&de.length>0&&(0!==(le=R(de,Se))&&(xe>=0?_e[xe][1]+=de.substring(0,le):(_e.splice(0,0,[0,de.substring(0,le)]),be++),de=de.substring(le),Se=Se.substring(le)),0!==(le=G(de,Se))&&(_e[be][1]=de.substring(de.length-le)+_e[be][1],de=de.substring(0,de.length-le),Se=Se.substring(0,Se.length-le)));var ut=Ie+Ve;0===Se.length&&0===de.length?(_e.splice(be-ut,ut),be-=ut):0===Se.length?(_e.splice(be-ut,ut,[1,de]),be=be-ut+1):0===de.length?(_e.splice(be-ut,ut,[y,Se]),be=be-ut+1):(_e.splice(be-ut,ut,[y,Se],[1,de]),be=be-ut+2)}0!==be&&0===_e[be-1][0]?(_e[be-1][1]+=_e[be][1],_e.splice(be,1)):be++,Ie=0,Ve=0,Se="",de=""}""===_e[_e.length-1][1]&&_e.pop();var Ae=!1;for(be=1;be<_e.length-1;)0===_e[be-1][0]&&0===_e[be+1][0]&&(_e[be][1].substring(_e[be][1].length-_e[be-1][1].length)===_e[be-1][1]?(_e[be][1]=_e[be-1][1]+_e[be][1].substring(0,_e[be][1].length-_e[be-1][1].length),_e[be+1][1]=_e[be-1][1]+_e[be+1][1],_e.splice(be-1,1),Ae=!0):_e[be][1].substring(0,_e[be+1][1].length)==_e[be+1][1]&&(_e[be-1][1]+=_e[be+1][1],_e[be][1]=_e[be][1].substring(_e[be+1][1].length)+_e[be+1][1],_e.splice(be+1,1),Ae=!0)),be++;Ae&&N(_e,ke)}function Y(_e){return _e>=55296&&_e<=56319}function W(_e){return _e>=56320&&_e<=57343}function J(_e){return W(_e.charCodeAt(0))}function n(_e){return Y(_e.charCodeAt(_e.length-1))}function se(_e,ke,be,Ve){return n(_e)||J(Ve)?null:function K(_e){for(var ke=[],be=0;be<_e.length;be++)_e[be][1].length>0&&ke.push(_e[be]);return ke}([[0,_e],[y,ke],[1,be],[0,Ve]])}function Fe(_e,ke,be,Ve){return C(_e,ke,be,Ve,!0)}Fe.INSERT=1,Fe.DELETE=y,Fe.EQUAL=0,m.exports=Fe},821:function(m){typeof self<"u"&&self,m.exports=function(){"use strict";var y={3976:function(E,D){Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0,D.default={_maxTestPos:500,placeholder:"_",optionalmarker:["[","]"],quantifiermarker:["{","}"],groupmarker:["(",")"],alternatormarker:"|",escapeChar:"\\",mask:null,regex:null,oncomplete:function(){},onincomplete:function(){},oncleared:function(){},repeat:0,greedy:!1,autoUnmask:!1,removeMaskOnSubmit:!1,clearMaskOnLostFocus:!0,insertMode:!0,insertModeVisual:!0,clearIncomplete:!1,alias:null,onKeyDown:function(){},onBeforeMask:null,onBeforePaste:function(k,R){return"function"==typeof R.onBeforeMask?R.onBeforeMask.call(this,k,R):k},onBeforeWrite:null,onUnMask:null,showMaskOnFocus:!0,showMaskOnHover:!0,onKeyValidation:function(){},skipOptionalPartCharacter:" ",numericInput:!1,rightAlign:!1,undoOnEscape:!0,radixPoint:"",_radixDance:!1,groupSeparator:"",keepStatic:null,positionCaretOnTab:!0,tabThrough:!1,supportsInputType:["text","tel","url","password","search"],isComplete:null,preValidation:null,postValidation:null,staticDefinitionSymbol:void 0,jitMasking:!1,nullable:!0,inputEventOnly:!1,noValuePatching:!1,positionCaretOnClick:"lvp",casing:null,inputmode:"text",importDataAttributes:!0,shiftPositions:!0,usePrototypeDefinitions:!0,validationEventTimeOut:3e3,substitutes:{}}},7392:function(E,D){Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0,D.default={9:{validator:"[0-9\uff10-\uff19]",definitionSymbol:"*"},a:{validator:"[A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",definitionSymbol:"*"},"*":{validator:"[0-9\uff10-\uff19A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]"}}},253:function(E,D){Object.defineProperty(D,"__esModule",{value:!0}),D.default=function(k,R,P){if(void 0===P)return k.__data?k.__data[R]:null;k.__data=k.__data||{},k.__data[R]=P}},3776:function(E,D,k){Object.defineProperty(D,"__esModule",{value:!0}),D.Event=void 0,D.off=function(q,ne){var N,Y;return z(this[0])&&q&&(N=this[0].eventRegistry,Y=this[0],q.split(" ").forEach(function(W){var J=Q(W.split("."),2);(function(n,K){var se,De,Fe=[];if(n.length>0)if(void 0===ne)for(se=0,De=N[n][K].length;se<De;se++)Fe.push({ev:n,namespace:K&&K.length>0?K:"global",handler:N[n][K][se]});else Fe.push({ev:n,namespace:K&&K.length>0?K:"global",handler:ne});else if(K.length>0)for(var _e in N)for(var ke in N[_e])if(ke===K)if(void 0===ne)for(se=0,De=N[_e][ke].length;se<De;se++)Fe.push({ev:_e,namespace:ke,handler:N[_e][ke][se]});else Fe.push({ev:_e,namespace:ke,handler:ne});return Fe})(J[0],J[1]).forEach(function(n){!function(De,Fe,_e){if(De in N==1)if(Y.removeEventListener?Y.removeEventListener(De,_e,!1):Y.detachEvent&&Y.detachEvent("on".concat(De),_e),"global"===Fe)for(var ke in N[De])N[De][ke].splice(N[De][ke].indexOf(_e),1);else N[De][Fe].splice(N[De][Fe].indexOf(_e),1)}(n.ev,n.namespace,n.handler)})})),this},D.on=function(q,ne){if(z(this[0])){var N=this[0].eventRegistry,Y=this[0];q.split(" ").forEach(function(W){var se,De,J=Q(W.split("."),2),K=J[1];se=J[0],De=void 0===K?"global":K,Y.addEventListener?Y.addEventListener(se,ne,!1):Y.attachEvent&&Y.attachEvent("on".concat(se),ne),N[se]=N[se]||{},N[se][De]=N[se][De]||[],N[se][De].push(ne)})}return this},D.trigger=function(q){var ne=arguments;if(z(this[0]))for(var N=this[0].eventRegistry,Y=this[0],W="string"==typeof q?q.split(" "):[q.type],J=0;J<W.length;J++){var n=W[J].split("."),K=n[0],se=n[1]||"global";if(void 0!==X&&"global"===se){var De,Fe={bubbles:!0,cancelable:!0,composed:!0,detail:arguments[1]};if(X.createEvent){try{"input"===K?(Fe.inputType="insertText",De=new InputEvent(K,Fe)):De=new CustomEvent(K,Fe)}catch{(De=X.createEvent("CustomEvent")).initCustomEvent(K,Fe.bubbles,Fe.cancelable,Fe.detail)}q.type&&(0,P.default)(De,q),Y.dispatchEvent(De)}else(De=X.createEventObject()).eventType=K,De.detail=arguments[1],q.type&&(0,P.default)(De,q),Y.fireEvent("on"+De.eventType,De)}else if(void 0!==N[K]){arguments[0]=arguments[0].type?arguments[0]:G.default.Event(arguments[0]),arguments[0].detail=arguments.slice(1);var _e=N[K];("global"===se?Object.values(_e).flat():_e[se]).forEach(function(ke){return ke.apply(Y,ne)})}}return this};var R=Z(k(9380)),P=Z(k(600)),G=Z(k(4963));function Q(q,ne){return function(N){if(Array.isArray(N))return N}(q)||function(N,Y){var W=null==N?null:typeof Symbol<"u"&&N[Symbol.iterator]||N["@@iterator"];if(null!=W){var J,n,K,se,De=[],Fe=!0,_e=!1;try{if(K=(W=W.call(N)).next,0===Y){if(Object(W)!==W)return;Fe=!1}else for(;!(Fe=(J=K.call(W)).done)&&(De.push(J.value),De.length!==Y);Fe=!0);}catch(ke){_e=!0,n=ke}finally{try{if(!Fe&&null!=W.return&&(se=W.return(),Object(se)!==se))return}finally{if(_e)throw n}}return De}}(q,ne)||function(N,Y){if(N){if("string"==typeof N)return H(N,Y);var W=Object.prototype.toString.call(N).slice(8,-1);if("Object"===W&&N.constructor&&(W=N.constructor.name),"Map"===W||"Set"===W)return Array.from(N);if("Arguments"===W||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(W))return H(N,Y)}}(q,ne)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(q,ne){(null==ne||ne>q.length)&&(ne=q.length);for(var N=0,Y=new Array(ne);N<ne;N++)Y[N]=q[N];return Y}function Z(q){return q&&q.__esModule?q:{default:q}}var X=R.default.document;function z(q){return q instanceof Element}var fe=D.Event=void 0;"function"==typeof R.default.CustomEvent?D.Event=fe=R.default.CustomEvent:R.default.Event&&X&&X.createEvent?(D.Event=fe=function(q,ne){ne=ne||{bubbles:!1,cancelable:!1,composed:!0,detail:void 0};var N=X.createEvent("CustomEvent");return N.initCustomEvent(q,ne.bubbles,ne.cancelable,ne.detail),N},fe.prototype=R.default.Event.prototype):typeof Event<"u"&&(D.Event=fe=Event)},600:function(E,D){function k(R){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(P){return typeof P}:function(P){return P&&"function"==typeof Symbol&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P})(R)}Object.defineProperty(D,"__esModule",{value:!0}),D.default=function R(){var P,G,Q,H,Z,X,z=arguments[0]||{},fe=1,q=arguments.length,ne=!1;for("boolean"==typeof z&&(ne=z,z=arguments[fe]||{},fe++),"object"!==k(z)&&"function"!=typeof z&&(z={});fe<q;fe++)if(null!=(P=arguments[fe]))for(G in P)Q=z[G],z!==(H=P[G])&&(ne&&H&&("[object Object]"===Object.prototype.toString.call(H)||(Z=Array.isArray(H)))?(Z?(Z=!1,X=Q&&Array.isArray(Q)?Q:[]):X=Q&&"[object Object]"===Object.prototype.toString.call(Q)?Q:{},z[G]=R(ne,X,H)):void 0!==H&&(z[G]=H));return z}},4963:function(E,D,k){Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var R=H(k(9380)),P=H(k(253)),G=k(3776),Q=H(k(600));function H(z){return z&&z.__esModule?z:{default:z}}var Z=R.default.document;function X(z){return z instanceof X?z:this instanceof X?void(null!=z&&z!==R.default&&(this[0]=z.nodeName?z:void 0!==z[0]&&z[0].nodeName?z[0]:Z.querySelector(z),null!=this[0]&&(this[0].eventRegistry=this[0].eventRegistry||{}))):new X(z)}X.prototype={on:G.on,off:G.off,trigger:G.trigger},X.extend=Q.default,X.data=P.default,X.Event=G.Event,D.default=X},9845:function(E,D,k){Object.defineProperty(D,"__esModule",{value:!0}),D.mobile=D.iphone=D.ie=void 0;var R,P=(R=k(9380))&&R.__esModule?R:{default:R},G=P.default.navigator&&P.default.navigator.userAgent||"";D.ie=G.indexOf("MSIE ")>0||G.indexOf("Trident/")>0,D.mobile=P.default.navigator&&P.default.navigator.userAgentData&&P.default.navigator.userAgentData.mobile||P.default.navigator&&P.default.navigator.maxTouchPoints||"ontouchstart"in P.default,D.iphone=/iphone/i.test(G)},7184:function(E,D){Object.defineProperty(D,"__esModule",{value:!0}),D.default=function(R){return R.replace(k,"\\$1")};var k=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^"].join("|\\")+")","gim")},6030:function(E,D,k){function R(K){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(se){return typeof se}:function(se){return se&&"function"==typeof Symbol&&se.constructor===Symbol&&se!==Symbol.prototype?"symbol":typeof se})(K)}Object.defineProperty(D,"__esModule",{value:!0}),D.EventHandlers=void 0;var P,G=k(9845),Q=(P=k(9380))&&P.__esModule?P:{default:P},H=k(7760),Z=k(2839),X=k(8711),z=k(7215),fe=k(4713);function q(){q=function(){return se};var K,se={},De=Object.prototype,Fe=De.hasOwnProperty,_e=Object.defineProperty||function(Kt,Ot,Vt){Kt[Ot]=Vt.value},ke="function"==typeof Symbol?Symbol:{},be=ke.iterator||"@@iterator",Ve=ke.asyncIterator||"@@asyncIterator",Ie=ke.toStringTag||"@@toStringTag";function Se(Kt,Ot,Vt){return Object.defineProperty(Kt,Ot,{value:Vt,enumerable:!0,configurable:!0,writable:!0}),Kt[Ot]}try{Se({},"")}catch{Se=function(Ot,Vt,Fn){return Ot[Vt]=Fn}}function de(Kt,Ot,Vt,Fn){var $n=Object.create((Ot&&Ot.prototype instanceof ye?Ot:ye).prototype),Ii=new Gt(Fn||[]);return _e($n,"_invoke",{value:dt(Kt,Vt,Ii)}),$n}function le(Kt,Ot,Vt){try{return{type:"normal",arg:Kt.call(Ot,Vt)}}catch(Fn){return{type:"throw",arg:Fn}}}se.wrap=de;var xe="suspendedStart",We="suspendedYield",st="executing",ut="completed",Ae={};function ye(){}function Re(){}function Qe(){}var vt={};Se(vt,be,function(){return this});var Nt=Object.getPrototypeOf,Dt=Nt&&Nt(Nt(An([])));Dt&&Dt!==De&&Fe.call(Dt,be)&&(vt=Dt);var qe=Qe.prototype=ye.prototype=Object.create(vt);function ze(Kt){["next","throw","return"].forEach(function(Ot){Se(Kt,Ot,function(Vt){return this._invoke(Ot,Vt)})})}function Ge(Kt,Ot){function Vt(kn,$n,Ii,Ni){var Ki=le(Kt[kn],Kt,$n);if("throw"!==Ki.type){var Qr=Ki.arg,Cr=Qr.value;return Cr&&"object"==R(Cr)&&Fe.call(Cr,"__await")?Ot.resolve(Cr.__await).then(function(wr){Vt("next",wr,Ii,Ni)},function(wr){Vt("throw",wr,Ii,Ni)}):Ot.resolve(Cr).then(function(wr){Qr.value=wr,Ii(Qr)},function(wr){return Vt("throw",wr,Ii,Ni)})}Ni(Ki.arg)}var Fn;_e(this,"_invoke",{value:function(kn,$n){function Ii(){return new Ot(function(Ni,Ki){Vt(kn,$n,Ni,Ki)})}return Fn=Fn?Fn.then(Ii,Ii):Ii()}})}function dt(Kt,Ot,Vt){var Fn=xe;return function(kn,$n){if(Fn===st)throw new Error("Generator is already running");if(Fn===ut){if("throw"===kn)throw $n;return{value:K,done:!0}}for(Vt.method=kn,Vt.arg=$n;;){var Ii=Vt.delegate;if(Ii){var Ni=Dn(Ii,Vt);if(Ni){if(Ni===Ae)continue;return Ni}}if("next"===Vt.method)Vt.sent=Vt._sent=Vt.arg;else if("throw"===Vt.method){if(Fn===xe)throw Fn=ut,Vt.arg;Vt.dispatchException(Vt.arg)}else"return"===Vt.method&&Vt.abrupt("return",Vt.arg);Fn=st;var Ki=le(Kt,Ot,Vt);if("normal"===Ki.type){if(Fn=Vt.done?ut:We,Ki.arg===Ae)continue;return{value:Ki.arg,done:Vt.done}}"throw"===Ki.type&&(Fn=ut,Vt.method="throw",Vt.arg=Ki.arg)}}}function Dn(Kt,Ot){var Vt=Ot.method,Fn=Kt.iterator[Vt];if(Fn===K)return Ot.delegate=null,"throw"===Vt&&Kt.iterator.return&&(Ot.method="return",Ot.arg=K,Dn(Kt,Ot),"throw"===Ot.method)||"return"!==Vt&&(Ot.method="throw",Ot.arg=new TypeError("The iterator does not provide a '"+Vt+"' method")),Ae;var kn=le(Fn,Kt.iterator,Ot.arg);if("throw"===kn.type)return Ot.method="throw",Ot.arg=kn.arg,Ot.delegate=null,Ae;var $n=kn.arg;return $n?$n.done?(Ot[Kt.resultName]=$n.value,Ot.next=Kt.nextLoc,"return"!==Ot.method&&(Ot.method="next",Ot.arg=K),Ot.delegate=null,Ae):$n:(Ot.method="throw",Ot.arg=new TypeError("iterator result is not an object"),Ot.delegate=null,Ae)}function wt(Kt){var Ot={tryLoc:Kt[0]};1 in Kt&&(Ot.catchLoc=Kt[1]),2 in Kt&&(Ot.finallyLoc=Kt[2],Ot.afterLoc=Kt[3]),this.tryEntries.push(Ot)}function Hn(Kt){var Ot=Kt.completion||{};Ot.type="normal",delete Ot.arg,Kt.completion=Ot}function Gt(Kt){this.tryEntries=[{tryLoc:"root"}],Kt.forEach(wt,this),this.reset(!0)}function An(Kt){if(Kt||""===Kt){var Ot=Kt[be];if(Ot)return Ot.call(Kt);if("function"==typeof Kt.next)return Kt;if(!isNaN(Kt.length)){var Vt=-1,Fn=function kn(){for(;++Vt<Kt.length;)if(Fe.call(Kt,Vt))return kn.value=Kt[Vt],kn.done=!1,kn;return kn.value=K,kn.done=!0,kn};return Fn.next=Fn}}throw new TypeError(R(Kt)+" is not iterable")}return Re.prototype=Qe,_e(qe,"constructor",{value:Qe,configurable:!0}),_e(Qe,"constructor",{value:Re,configurable:!0}),Re.displayName=Se(Qe,Ie,"GeneratorFunction"),se.isGeneratorFunction=function(Kt){var Ot="function"==typeof Kt&&Kt.constructor;return!!Ot&&(Ot===Re||"GeneratorFunction"===(Ot.displayName||Ot.name))},se.mark=function(Kt){return Object.setPrototypeOf?Object.setPrototypeOf(Kt,Qe):(Kt.__proto__=Qe,Se(Kt,Ie,"GeneratorFunction")),Kt.prototype=Object.create(qe),Kt},se.awrap=function(Kt){return{__await:Kt}},ze(Ge.prototype),Se(Ge.prototype,Ve,function(){return this}),se.AsyncIterator=Ge,se.async=function(Kt,Ot,Vt,Fn,kn){void 0===kn&&(kn=Promise);var $n=new Ge(de(Kt,Ot,Vt,Fn),kn);return se.isGeneratorFunction(Ot)?$n:$n.next().then(function(Ii){return Ii.done?Ii.value:$n.next()})},ze(qe),Se(qe,Ie,"Generator"),Se(qe,be,function(){return this}),Se(qe,"toString",function(){return"[object Generator]"}),se.keys=function(Kt){var Ot=Object(Kt),Vt=[];for(var Fn in Ot)Vt.push(Fn);return Vt.reverse(),function kn(){for(;Vt.length;){var $n=Vt.pop();if($n in Ot)return kn.value=$n,kn.done=!1,kn}return kn.done=!0,kn}},se.values=An,Gt.prototype={constructor:Gt,reset:function(Kt){if(this.prev=0,this.next=0,this.sent=this._sent=K,this.done=!1,this.delegate=null,this.method="next",this.arg=K,this.tryEntries.forEach(Hn),!Kt)for(var Ot in this)"t"===Ot.charAt(0)&&Fe.call(this,Ot)&&!isNaN(+Ot.slice(1))&&(this[Ot]=K)},stop:function(){this.done=!0;var Kt=this.tryEntries[0].completion;if("throw"===Kt.type)throw Kt.arg;return this.rval},dispatchException:function(Kt){if(this.done)throw Kt;var Ot=this;function Vt(Ki,Qr){return $n.type="throw",$n.arg=Kt,Ot.next=Ki,Qr&&(Ot.method="next",Ot.arg=K),!!Qr}for(var Fn=this.tryEntries.length-1;Fn>=0;--Fn){var kn=this.tryEntries[Fn],$n=kn.completion;if("root"===kn.tryLoc)return Vt("end");if(kn.tryLoc<=this.prev){var Ii=Fe.call(kn,"catchLoc"),Ni=Fe.call(kn,"finallyLoc");if(Ii&&Ni){if(this.prev<kn.catchLoc)return Vt(kn.catchLoc,!0);if(this.prev<kn.finallyLoc)return Vt(kn.finallyLoc)}else if(Ii){if(this.prev<kn.catchLoc)return Vt(kn.catchLoc,!0)}else{if(!Ni)throw new Error("try statement without catch or finally");if(this.prev<kn.finallyLoc)return Vt(kn.finallyLoc)}}}},abrupt:function(Kt,Ot){for(var Vt=this.tryEntries.length-1;Vt>=0;--Vt){var Fn=this.tryEntries[Vt];if(Fn.tryLoc<=this.prev&&Fe.call(Fn,"finallyLoc")&&this.prev<Fn.finallyLoc){var kn=Fn;break}}kn&&("break"===Kt||"continue"===Kt)&&kn.tryLoc<=Ot&&Ot<=kn.finallyLoc&&(kn=null);var $n=kn?kn.completion:{};return $n.type=Kt,$n.arg=Ot,kn?(this.method="next",this.next=kn.finallyLoc,Ae):this.complete($n)},complete:function(Kt,Ot){if("throw"===Kt.type)throw Kt.arg;return"break"===Kt.type||"continue"===Kt.type?this.next=Kt.arg:"return"===Kt.type?(this.rval=this.arg=Kt.arg,this.method="return",this.next="end"):"normal"===Kt.type&&Ot&&(this.next=Ot),Ae},finish:function(Kt){for(var Ot=this.tryEntries.length-1;Ot>=0;--Ot){var Vt=this.tryEntries[Ot];if(Vt.finallyLoc===Kt)return this.complete(Vt.completion,Vt.afterLoc),Hn(Vt),Ae}},catch:function(Kt){for(var Ot=this.tryEntries.length-1;Ot>=0;--Ot){var Vt=this.tryEntries[Ot];if(Vt.tryLoc===Kt){var Fn=Vt.completion;if("throw"===Fn.type){var kn=Fn.arg;Hn(Vt)}return kn}}throw new Error("illegal catch attempt")},delegateYield:function(Kt,Ot,Vt){return this.delegate={iterator:An(Kt),resultName:Ot,nextLoc:Vt},"next"===this.method&&(this.arg=K),Ae}},se}function ne(K,se){var De=typeof Symbol<"u"&&K[Symbol.iterator]||K["@@iterator"];if(!De){if(Array.isArray(K)||(De=function(Ie){if(Ie){if("string"==typeof Ie)return N(Ie,undefined);var de=Object.prototype.toString.call(Ie).slice(8,-1);if("Object"===de&&Ie.constructor&&(de=Ie.constructor.name),"Map"===de||"Set"===de)return Array.from(Ie);if("Arguments"===de||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(de))return N(Ie,undefined)}}(K))||se&&K&&"number"==typeof K.length){De&&(K=De);var Fe=0,_e=function(){};return{s:_e,n:function(){return Fe>=K.length?{done:!0}:{done:!1,value:K[Fe++]}},e:function(Ie){throw Ie},f:_e}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var ke,be=!0,Ve=!1;return{s:function(){De=De.call(K)},n:function(){var Ie=De.next();return be=Ie.done,Ie},e:function(Ie){Ve=!0,ke=Ie},f:function(){try{be||null==De.return||De.return()}finally{if(Ve)throw ke}}}}function N(K,se){(null==se||se>K.length)&&(se=K.length);for(var De=0,Fe=new Array(se);De<se;De++)Fe[De]=K[De];return Fe}function Y(K,se,De,Fe,_e,ke,be){try{var Ve=K[ke](be),Ie=Ve.value}catch(Se){return void De(Se)}Ve.done?se(Ie):Promise.resolve(Ie).then(Fe,_e)}var W,J,n=D.EventHandlers={keyEvent:function(K,se,De,Fe,_e){var ke=this.inputmask,be=ke.opts,Ie=ke.maskset,Se=this,de=(0,ke.dependencyLib)(Se),le=K.key,xe=X.caret.call(ke,Se),We=be.onKeyDown.call(this,K,X.getBuffer.call(ke),xe,be);if(void 0!==We)return We;if(le===Z.keys.Backspace||le===Z.keys.Delete||G.iphone&&le===Z.keys.BACKSPACE_SAFARI||K.ctrlKey&&le===Z.keys.x&&!("oncut"in Se))K.preventDefault(),z.handleRemove.call(ke,Se,le,xe),(0,H.writeBuffer)(Se,X.getBuffer.call(ke,!0),Ie.p,K,Se.inputmask._valueGet()!==X.getBuffer.call(ke).join(""));else if(le===Z.keys.End||le===Z.keys.PageDown){K.preventDefault();var st=X.seekNext.call(ke,X.getLastValidPosition.call(ke));X.caret.call(ke,Se,K.shiftKey?xe.begin:st,st,!0)}else le===Z.keys.Home&&!K.shiftKey||le===Z.keys.PageUp?(K.preventDefault(),X.caret.call(ke,Se,0,K.shiftKey?xe.begin:0,!0)):be.undoOnEscape&&le===Z.keys.Escape&&!0!==K.altKey?((0,H.checkVal)(Se,!0,!1,ke.undoValue.split("")),de.trigger("click")):le!==Z.keys.Insert||K.shiftKey||K.ctrlKey||void 0!==ke.userOptions.insertMode?!0===be.tabThrough&&le===Z.keys.Tab?!0===K.shiftKey?(xe.end=X.seekPrevious.call(ke,xe.end,!0),!0===fe.getTest.call(ke,xe.end-1).match.static&&xe.end--,xe.begin=X.seekPrevious.call(ke,xe.end,!0),xe.begin>=0&&xe.end>0&&(K.preventDefault(),X.caret.call(ke,Se,xe.begin,xe.end))):(xe.begin=X.seekNext.call(ke,xe.begin,!0),xe.end=X.seekNext.call(ke,xe.begin,!0),xe.end<Ie.maskLength&&xe.end--,xe.begin<=Ie.maskLength&&(K.preventDefault(),X.caret.call(ke,Se,xe.begin,xe.end))):K.shiftKey||(be.insertModeVisual&&!1===be.insertMode?le===Z.keys.ArrowRight?setTimeout(function(){var ut=X.caret.call(ke,Se);X.caret.call(ke,Se,ut.begin)},0):le===Z.keys.ArrowLeft&&setTimeout(function(){var ut=X.translatePosition.call(ke,Se.inputmask.caretPos.begin);X.translatePosition.call(ke,Se.inputmask.caretPos.end),X.caret.call(ke,Se,ke.isRTL?ut+(ut===Ie.maskLength?0:1):ut-(0===ut?0:1))},0):void 0===ke.keyEventHook||ke.keyEventHook(K)):z.isSelection.call(ke,xe)?be.insertMode=!be.insertMode:(be.insertMode=!be.insertMode,X.caret.call(ke,Se,xe.begin,xe.begin));return ke.isComposing=le==Z.keys.Process||le==Z.keys.Unidentified,ke.ignorable=le.length>1&&!("textarea"===Se.tagName.toLowerCase()&&le==Z.keys.Enter),n.keypressEvent.call(this,K,se,De,Fe,_e)},keypressEvent:function(K,se,De,Fe,_e){var ke=this.inputmask||this,be=ke.opts,Ie=ke.maskset,Se=ke.el,de=(0,ke.dependencyLib)(Se),le=K.key;if(!0===se||K.ctrlKey&&K.altKey&&!ke.ignorable||!(K.ctrlKey||K.metaKey||ke.ignorable)){if(le){var xe,We=se?{begin:_e,end:_e}:X.caret.call(ke,Se);se||(le=be.substitutes[le]||le),Ie.writeOutBuffer=!0;var st=z.isValid.call(ke,We,le,Fe,void 0,void 0,void 0,se);if(!1!==st&&(X.resetMaskSet.call(ke,!0),xe=void 0!==st.caret?st.caret:X.seekNext.call(ke,st.pos.begin?st.pos.begin:st.pos),Ie.p=xe),xe=be.numericInput&&void 0===st.caret?X.seekPrevious.call(ke,xe):xe,!1!==De&&(setTimeout(function(){be.onKeyValidation.call(Se,le,st)},0),Ie.writeOutBuffer&&!1!==st)){var ut=X.getBuffer.call(ke);(0,H.writeBuffer)(Se,ut,xe,K,!0!==se)}if(K.preventDefault(),se)return!1!==st&&(st.forwardPosition=xe),st}}else le===Z.keys.Enter&&ke.undoValue!==ke._valueGet(!0)&&(ke.undoValue=ke._valueGet(!0),setTimeout(function(){de.trigger("change")},0))},pasteEvent:(W=q().mark(function K(se){var De,Fe,_e,ke,be,Ve;return q().wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:De=function(Se,de,le,xe,We){var st=X.caret.call(Se,de,void 0,void 0,!0),ut=le.substr(0,st.begin),Ae=le.substr(st.end,le.length);if(ut==(Se.isRTL?X.getBufferTemplate.call(Se).slice().reverse():X.getBufferTemplate.call(Se)).slice(0,st.begin).join("")&&(ut=""),Ae==(Se.isRTL?X.getBufferTemplate.call(Se).slice().reverse():X.getBufferTemplate.call(Se)).slice(st.end).join("")&&(Ae=""),xe=ut+xe+Ae,Se.isRTL&&!0!==ke.numericInput){xe=xe.split("");var ye,Re=ne(X.getBufferTemplate.call(Se));try{for(Re.s();!(ye=Re.n()).done;)xe[0]===ye.value&&xe.shift()}catch(Nt){Re.e(Nt)}finally{Re.f()}xe=xe.reverse().join("")}var vt=xe;if("function"==typeof We){if(!1===(vt=We.call(Se,vt,ke)))return!1;vt||(vt=le)}(0,H.checkVal)(de,!0,!1,vt.toString().split(""),se)},Fe=this,ke=(_e=this.inputmask).opts,be=_e._valueGet(!0),_e.skipInputEvent=!0,se.clipboardData&&se.clipboardData.getData?Ve=se.clipboardData.getData("text/plain"):Q.default.clipboardData&&Q.default.clipboardData.getData&&(Ve=Q.default.clipboardData.getData("Text")),De(_e,Fe,be,Ve,ke.onBeforePaste),se.preventDefault();case 7:case"end":return Ie.stop()}},K,this)}),J=function(){var K=this,se=arguments;return new Promise(function(De,Fe){var _e=W.apply(K,se);function ke(Ve){Y(_e,De,Fe,ke,be,"next",Ve)}function be(Ve){Y(_e,De,Fe,ke,be,"throw",Ve)}ke(void 0)})},function(K){return J.apply(this,arguments)}),inputFallBackEvent:function(K){var _e,se=this.inputmask,De=se.opts,Fe=se.dependencyLib,ke=this,be=ke.inputmask._valueGet(!0),Ve=(se.isRTL?X.getBuffer.call(se).slice().reverse():X.getBuffer.call(se)).join(""),Ie=X.caret.call(se,ke,void 0,void 0,!0);if(Ve!==be){if(_e=function(de,le,xe){for(var We,st,ut,Ae=de.substr(0,xe.begin).split(""),ye=de.substr(xe.begin).split(""),Re=le.substr(0,xe.begin).split(""),Qe=le.substr(xe.begin).split(""),vt=Ae.length>=Re.length?Ae.length:Re.length,Nt=ye.length>=Qe.length?ye.length:Qe.length,Dt="",qe=[],ze="~";Ae.length<vt;)Ae.push(ze);for(;Re.length<vt;)Re.push(ze);for(;ye.length<Nt;)ye.unshift(ze);for(;Qe.length<Nt;)Qe.unshift(ze);var Ge=Ae.concat(ye),dt=Re.concat(Qe);for(st=0,We=Ge.length;st<We;st++)switch(ut=fe.getPlaceholder.call(se,X.translatePosition.call(se,st)),Dt){case"insertText":dt[st-1]===Ge[st]&&xe.begin==Ge.length-1&&qe.push(Ge[st]),st=We;break;case"insertReplacementText":case"deleteContentBackward":Ge[st]===ze?xe.end++:st=We;break;default:Ge[st]!==dt[st]&&(Ge[st+1]!==ze&&Ge[st+1]!==ut&&void 0!==Ge[st+1]||(dt[st]!==ut||dt[st+1]!==ze)&&dt[st]!==ze?dt[st+1]===ze&&dt[st]===Ge[st+1]?(Dt="insertText",qe.push(Ge[st]),xe.begin--,xe.end--):Ge[st]!==ut&&Ge[st]!==ze&&(Ge[st+1]===ze||dt[st]!==Ge[st]&&dt[st+1]===Ge[st+1])?(Dt="insertReplacementText",qe.push(Ge[st]),xe.begin--):Ge[st]===ze?(Dt="deleteContentBackward",(X.isMask.call(se,X.translatePosition.call(se,st),!0)||dt[st]===De.radixPoint)&&xe.end++):st=We:(Dt="insertText",qe.push(Ge[st]),xe.begin--,xe.end--))}return{action:Dt,data:qe,caret:xe}}(be,Ve,Ie),(ke.inputmask.shadowRoot||ke.ownerDocument).activeElement!==ke&&ke.focus(),(0,H.writeBuffer)(ke,X.getBuffer.call(se)),X.caret.call(se,ke,Ie.begin,Ie.end,!0),!G.mobile&&se.skipNextInsert&&"insertText"===K.inputType&&"insertText"===_e.action&&se.isComposing)return!1;switch(se.skipNextInsert=!("insertCompositionText"!==K.inputType||"insertText"!==_e.action||!se.isComposing),_e.action){case"insertText":case"insertReplacementText":_e.data.forEach(function(de,le){var xe=new Fe.Event("keypress");xe.key=de,se.ignorable=!1,n.keypressEvent.call(ke,xe)}),setTimeout(function(){se.$el.trigger("keyup")},0);break;case"deleteContentBackward":var Se=new Fe.Event("keydown");Se.key=Z.keys.Backspace,n.keyEvent.call(ke,Se);break;default:(0,H.applyInputValue)(ke,be),X.caret.call(se,ke,Ie.begin,Ie.end,!0)}K.preventDefault()}},setValueEvent:function(K){var se=this.inputmask,De=se.dependencyLib,_e=K&&K.detail?K.detail[0]:arguments[1];void 0===_e&&(_e=this.inputmask._valueGet(!0)),(0,H.applyInputValue)(this,_e,new De.Event("input")),(K.detail&&void 0!==K.detail[1]||void 0!==arguments[2])&&X.caret.call(se,this,K.detail?K.detail[1]:arguments[2])},focusEvent:function(K){var se=this.inputmask,De=se.opts,Fe=se&&se._valueGet();De.showMaskOnFocus&&Fe!==X.getBuffer.call(se).join("")&&(0,H.writeBuffer)(this,X.getBuffer.call(se),X.seekNext.call(se,X.getLastValidPosition.call(se))),!0!==De.positionCaretOnTab||!1!==se.mouseEnter||z.isComplete.call(se,X.getBuffer.call(se))&&-1!==X.getLastValidPosition.call(se)||n.clickEvent.apply(this,[K,!0]),se.undoValue=se&&se._valueGet(!0)},invalidEvent:function(K){this.inputmask.validationEvent=!0},mouseleaveEvent:function(){var K=this.inputmask,se=K.opts;K.mouseEnter=!1,se.clearMaskOnLostFocus&&(this.inputmask.shadowRoot||this.ownerDocument).activeElement!==this&&(0,H.HandleNativePlaceholder)(this,K.originalPlaceholder)},clickEvent:function(K,se){var De=this.inputmask;De.clicked++;var Fe=this;if((Fe.inputmask.shadowRoot||Fe.ownerDocument).activeElement===Fe){var _e=X.determineNewCaretPosition.call(De,X.caret.call(De,Fe),se);void 0!==_e&&X.caret.call(De,Fe,_e)}},cutEvent:function(K){var se=this.inputmask,De=se.maskset,_e=X.caret.call(se,this),ke=se.isRTL?X.getBuffer.call(se).slice(_e.end,_e.begin):X.getBuffer.call(se).slice(_e.begin,_e.end),be=se.isRTL?ke.reverse().join(""):ke.join("");Q.default.navigator&&Q.default.navigator.clipboard?Q.default.navigator.clipboard.writeText(be):Q.default.clipboardData&&Q.default.clipboardData.getData&&Q.default.clipboardData.setData("Text",be),z.handleRemove.call(se,this,Z.keys.Delete,_e),(0,H.writeBuffer)(this,X.getBuffer.call(se),De.p,K,se.undoValue!==se._valueGet(!0))},blurEvent:function(K){var se=this.inputmask,De=se.opts,Fe=se.dependencyLib;se.clicked=0;var _e=Fe(this);if(this.inputmask){(0,H.HandleNativePlaceholder)(this,se.originalPlaceholder);var be=this.inputmask._valueGet(),Ve=X.getBuffer.call(se).slice();""!==be&&(De.clearMaskOnLostFocus&&(-1===X.getLastValidPosition.call(se)&&be===X.getBufferTemplate.call(se).join("")?Ve=[]:H.clearOptionalTail.call(se,Ve)),!1===z.isComplete.call(se,Ve)&&(setTimeout(function(){_e.trigger("incomplete")},0),De.clearIncomplete&&(X.resetMaskSet.call(se,!1),Ve=De.clearMaskOnLostFocus?[]:X.getBufferTemplate.call(se).slice())),(0,H.writeBuffer)(this,Ve,void 0,K)),be=se._valueGet(!0),se.undoValue!==be&&(""!=be||se.undoValue!=X.getBufferTemplate.call(se).join("")||se.undoValue==X.getBufferTemplate.call(se).join("")&&se.maskset.validPositions.length>0)&&(se.undoValue=be,_e.trigger("change"))}},mouseenterEvent:function(){var K=this.inputmask,se=K.opts.showMaskOnHover;if(K.mouseEnter=!0,(this.inputmask.shadowRoot||this.ownerDocument).activeElement!==this){var Fe=(K.isRTL?X.getBufferTemplate.call(K).slice().reverse():X.getBufferTemplate.call(K)).join("");se&&(0,H.HandleNativePlaceholder)(this,Fe)}},submitEvent:function(){var K=this.inputmask,se=K.opts;K.undoValue!==K._valueGet(!0)&&K.$el.trigger("change"),-1===X.getLastValidPosition.call(K)&&K._valueGet&&K._valueGet()===X.getBufferTemplate.call(K).join("")&&K._valueSet(""),se.clearIncomplete&&!1===z.isComplete.call(K,X.getBuffer.call(K))&&K._valueSet(""),se.removeMaskOnSubmit&&(K._valueSet(K.unmaskedvalue(),!0),setTimeout(function(){(0,H.writeBuffer)(K.el,X.getBuffer.call(K))},0))},resetEvent:function(){var K=this.inputmask;K.refreshValue=!0,setTimeout(function(){(0,H.applyInputValue)(K.el,K._valueGet(!0))},0)}}},9716:function(E,D,k){Object.defineProperty(D,"__esModule",{value:!0}),D.EventRuler=void 0;var R,P=k(7760),G=(R=k(2394))&&R.__esModule?R:{default:R},Q=k(2839),H=k(8711);D.EventRuler={on:function(Z,X,z){var fe=Z.inputmask.dependencyLib,q=function(ne){ne.originalEvent&&(arguments[0]=ne=ne.originalEvent||ne);var N,Y=this,W=Y.inputmask,J=W?W.opts:void 0;if(void 0===W&&"FORM"!==this.nodeName){var n=fe.data(Y,"_inputmask_opts");fe(Y).off(),n&&new G.default(n).mask(Y)}else{if(["submit","reset","setvalue"].includes(ne.type)||"FORM"===this.nodeName||!(Y.disabled||Y.readOnly&&!("keydown"===ne.type&&ne.ctrlKey&&ne.key===Q.keys.c||!1===J.tabThrough&&ne.key===Q.keys.Tab))){switch(ne.type){case"input":if(!0===W.skipInputEvent)return W.skipInputEvent=!1,ne.preventDefault();break;case"click":case"focus":return W.validationEvent?(W.validationEvent=!1,Z.blur(),(0,P.HandleNativePlaceholder)(Z,(W.isRTL?H.getBufferTemplate.call(W).slice().reverse():H.getBufferTemplate.call(W)).join("")),setTimeout(function(){Z.focus()},J.validationEventTimeOut),!1):(N=arguments,void setTimeout(function(){Z.inputmask&&z.apply(Y,N)},0))}var K=z.apply(Y,arguments);return!1===K&&(ne.preventDefault(),ne.stopPropagation()),K}ne.preventDefault()}};["submit","reset"].includes(X)?(q=q.bind(Z),null!==Z.form&&fe(Z.form).on(X,q)):fe(Z).on(X,q),Z.inputmask.events[X]=Z.inputmask.events[X]||[],Z.inputmask.events[X].push(q)},off:function(Z,X){if(Z.inputmask&&Z.inputmask.events){var z=Z.inputmask.dependencyLib,fe=Z.inputmask.events;for(var q in X&&((fe=[])[X]=Z.inputmask.events[X]),fe){for(var ne=fe[q];ne.length>0;){var N=ne.pop();["submit","reset"].includes(q)?null!==Z.form&&z(Z.form).off(q,N):z(Z).off(q,N)}delete Z.inputmask.events[q]}}}}},219:function(E,D,k){var R=q(k(7184)),P=q(k(2394)),G=k(2839),Q=k(8711),H=k(4713);function X(le,xe){(null==xe||xe>le.length)&&(xe=le.length);for(var We=0,st=new Array(xe);We<xe;We++)st[We]=le[We];return st}function z(le){return(z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(xe){return typeof xe}:function(xe){return xe&&"function"==typeof Symbol&&xe.constructor===Symbol&&xe!==Symbol.prototype?"symbol":typeof xe})(le)}function fe(le,xe){for(var We=0;We<xe.length;We++){var st=xe[We];st.enumerable=st.enumerable||!1,st.configurable=!0,"value"in st&&(st.writable=!0),Object.defineProperty(le,(void 0,Ae=function(ye){if("object"!==z(ye)||null===ye)return ye;var Qe=ye[Symbol.toPrimitive];if(void 0!==Qe){var vt=Qe.call(ye,"string");if("object"!==z(vt))return vt;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(ye)}(st.key),"symbol"===z(Ae)?Ae:String(Ae)),st)}var Ae}function q(le){return le&&le.__esModule?le:{default:le}}k(1313);var ne=P.default.dependencyLib,N=function(){function le(ut,Ae,ye,Re){(function(Qe,vt){if(!(Qe instanceof vt))throw new TypeError("Cannot call a class as a function")})(this,le),this.mask=ut,this.format=Ae,this.opts=ye,this.inputmask=Re,this._date=new Date(1,0,1),this.initDateObject(ut,this.opts,this.inputmask)}var xe,We;return xe=le,(We=[{key:"date",get:function(){return void 0===this._date&&(this._date=new Date(1,0,1),this.initDateObject(void 0,this.opts,this.inputmask)),this._date}},{key:"initDateObject",value:function(ut,Ae,ye){var Re;for(_e(Ae).lastIndex=0;Re=_e(Ae).exec(this.format);){var Qe=/\d+$/.exec(Re[0]),vt=Qe?Re[0][0]+"x":Re[0],Nt=void 0;if(void 0!==ut){if(Qe){var Dt=_e(Ae).lastIndex,qe=de.call(ye,Re.index,Ae,ye&&ye.maskset);_e(Ae).lastIndex=Dt,Nt=ut.slice(0,ut.indexOf(qe.nextMatch[0]))}else{for(var ze=Re[0][0],Ge=Re.index;ye&&(Ae.placeholder[H.getTest.call(ye,Ge).match.placeholder]||H.getTest.call(ye,Ge).match.placeholder)===ze;)Ge++;Nt=ut.slice(0,Ge-Re.index||n[vt]&&n[vt][4]||vt.length)}ut=ut.slice(Nt.length)}Object.prototype.hasOwnProperty.call(n,vt)&&this.setValue(this,Nt,vt,n[vt][2],n[vt][1])}}},{key:"setValue",value:function(ut,Ae,ye,Re,Qe){if(void 0!==Ae)switch(Re){case"ampm":ut[Re]=Ae,ut["raw"+Re]=Ae.replace(/\s/g,"_");break;case"month":if("mmm"===ye||"mmmm"===ye){ut[Re]=Ve("mmm"===ye?W.monthNames.slice(0,12).findIndex(function(Nt){return Ae.toLowerCase()===Nt.toLowerCase()})+1:W.monthNames.slice(12,24).findIndex(function(Nt){return Ae.toLowerCase()===Nt.toLowerCase()})+1,2),ut[Re]="00"===ut[Re]?"":ut[Re].toString(),ut["raw"+Re]=ut[Re];break}default:ut[Re]=Ae.replace(/[^0-9]/g,"0"),ut["raw"+Re]=Ae.replace(/\s/g,"_")}if(void 0!==Qe){var vt=ut[Re];("day"===Re&&29===parseInt(vt)||"month"===Re&&2===parseInt(vt))&&(29!==parseInt(ut.day)||2!==parseInt(ut.month)||""!==ut.year&&void 0!==ut.year||ut._date.setFullYear(2012,1,29)),"day"===Re&&(J=!0,0===parseInt(vt)&&(vt=1)),"month"===Re&&(J=!0),"year"===Re&&(J=!0,vt.length<n[ye][4]&&(vt=Ve(vt,n[ye][4],!0))),(""!==vt&&!isNaN(vt)||"ampm"===Re)&&Qe.call(ut._date,vt)}}},{key:"reset",value:function(){this._date=new Date(1,0,1)}},{key:"reInit",value:function(){this._date=void 0}}])&&fe(xe.prototype,We),Object.defineProperty(xe,"prototype",{writable:!1}),le}(),Y=(new Date).getFullYear(),W=P.default.prototype.i18n,J=!1,n={d:["[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",Date.prototype.getDate],dd:["0[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",function(){return Ve(Date.prototype.getDate.call(this),2)}],ddd:[""],dddd:[""],m:["[1-9]|1[012]",function(le){var xe=le?parseInt(le):0;return xe>0&&xe--,Date.prototype.setMonth.call(this,xe)},"month",function(){return Date.prototype.getMonth.call(this)+1}],mm:["0[1-9]|1[012]",function(le){var xe=le?parseInt(le):0;return xe>0&&xe--,Date.prototype.setMonth.call(this,xe)},"month",function(){return Ve(Date.prototype.getMonth.call(this)+1,2)}],mmm:[W.monthNames.slice(0,12).join("|"),function(le){var xe=W.monthNames.slice(0,12).findIndex(function(We){return le.toLowerCase()===We.toLowerCase()});return-1!==xe&&Date.prototype.setMonth.call(this,xe)},"month",function(){return W.monthNames.slice(0,12)[Date.prototype.getMonth.call(this)]}],mmmm:[W.monthNames.slice(12,24).join("|"),function(le){var xe=W.monthNames.slice(12,24).findIndex(function(We){return le.toLowerCase()===We.toLowerCase()});return-1!==xe&&Date.prototype.setMonth.call(this,xe)},"month",function(){return W.monthNames.slice(12,24)[Date.prototype.getMonth.call(this)]}],yy:["[0-9]{2}",function(le){var xe=(new Date).getFullYear().toString().slice(0,2);Date.prototype.setFullYear.call(this,"".concat(xe).concat(le))},"year",function(){return Ve(Date.prototype.getFullYear.call(this),2)},2],yyyy:["[0-9]{4}",Date.prototype.setFullYear,"year",function(){return Ve(Date.prototype.getFullYear.call(this),4)},4],h:["[1-9]|1[0-2]",Date.prototype.setHours,"hours",Date.prototype.getHours],hh:["0[1-9]|1[0-2]",Date.prototype.setHours,"hours",function(){return Ve(Date.prototype.getHours.call(this),2)}],hx:[function(le){return"[0-9]{".concat(le,"}")},Date.prototype.setHours,"hours",function(le){return Date.prototype.getHours}],H:["1?[0-9]|2[0-3]",Date.prototype.setHours,"hours",Date.prototype.getHours],HH:["0[0-9]|1[0-9]|2[0-3]",Date.prototype.setHours,"hours",function(){return Ve(Date.prototype.getHours.call(this),2)}],Hx:[function(le){return"[0-9]{".concat(le,"}")},Date.prototype.setHours,"hours",function(le){return function(){return Ve(Date.prototype.getHours.call(this),le)}}],M:["[1-5]?[0-9]",Date.prototype.setMinutes,"minutes",Date.prototype.getMinutes],MM:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setMinutes,"minutes",function(){return Ve(Date.prototype.getMinutes.call(this),2)}],s:["[1-5]?[0-9]",Date.prototype.setSeconds,"seconds",Date.prototype.getSeconds],ss:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setSeconds,"seconds",function(){return Ve(Date.prototype.getSeconds.call(this),2)}],l:["[0-9]{3}",Date.prototype.setMilliseconds,"milliseconds",function(){return Ve(Date.prototype.getMilliseconds.call(this),3)},3],L:["[0-9]{2}",Date.prototype.setMilliseconds,"milliseconds",function(){return Ve(Date.prototype.getMilliseconds.call(this),2)},2],t:["[ap]",se,"ampm",De,1],tt:["[ap]m",se,"ampm",De,2],T:["[AP]",se,"ampm",De,1],TT:["[AP]M",se,"ampm",De,2],Z:[".*",void 0,"Z",function(){var le=this.toString().match(/\((.+)\)/)[1];return le.includes(" ")&&(le=(le=le.replace("-"," ").toUpperCase()).split(" ").map(function(xe){return function Z(le,xe){return function(We){if(Array.isArray(We))return We}(le)||function(We,st){var ut=null==We?null:typeof Symbol<"u"&&We[Symbol.iterator]||We["@@iterator"];if(null!=ut){var Ae,ye,Re,Qe,vt=[],Nt=!0,Dt=!1;try{if(Re=(ut=ut.call(We)).next,0===st){if(Object(ut)!==ut)return;Nt=!1}else for(;!(Nt=(Ae=Re.call(ut)).done)&&(vt.push(Ae.value),vt.length!==st);Nt=!0);}catch(qe){Dt=!0,ye=qe}finally{try{if(!Nt&&null!=ut.return&&(Qe=ut.return(),Object(Qe)!==Qe))return}finally{if(Dt)throw ye}}return vt}}(le,xe)||function(We,st){if(We){if("string"==typeof We)return X(We,st);var ut=Object.prototype.toString.call(We).slice(8,-1);if("Object"===ut&&We.constructor&&(ut=We.constructor.name),"Map"===ut||"Set"===ut)return Array.from(We);if("Arguments"===ut||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ut))return X(We,st)}}(le,xe)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(xe,1)[0]}).join("")),le}],o:[""],S:[""]},K={isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};function se(le){var xe=this.getHours();le.toLowerCase().includes("p")?this.setHours(xe+12):le.toLowerCase().includes("a")&&xe>=12&&this.setHours(xe-12)}function De(){var le=this.getHours();return(le=le||12)>=12?"PM":"AM"}function Fe(le){var xe=/\d+$/.exec(le[0]);if(xe&&void 0!==xe[0]){var We=n[le[0][0]+"x"].slice("");return We[0]=We[0](xe[0]),We[3]=We[3](xe[0]),We}if(n[le[0]])return n[le[0]]}function _e(le){if(!le.tokenizer){var xe=[],We=[];for(var st in n)if(/\.*x$/.test(st)){var ut=st[0]+"\\d+";-1===We.indexOf(ut)&&We.push(ut)}else-1===xe.indexOf(st[0])&&xe.push(st[0]);le.tokenizer="("+(We.length>0?We.join("|")+"|":"")+xe.join("+|")+")+?|.",le.tokenizer=new RegExp(le.tokenizer,"g")}return le.tokenizer}function ke(le,xe,We){if(!J)return!0;if(void 0===le.rawday||!isFinite(le.rawday)&&new Date(le.date.getFullYear(),isFinite(le.rawmonth)?le.month:le.date.getMonth()+1,0).getDate()>=le.day||"29"==le.day&&(!isFinite(le.rawyear)||void 0===le.rawyear||""===le.rawyear)||new Date(le.date.getFullYear(),isFinite(le.rawmonth)?le.month:le.date.getMonth()+1,0).getDate()>=le.day)return xe;if("29"==le.day){var st=de.call(this,xe.pos,We,this.maskset);if(st.targetMatch&&"yyyy"===st.targetMatch[0]&&xe.pos-st.targetMatchIndex==2)return xe.remove=xe.pos+1,xe}else if(2==le.date.getMonth()&&"30"==le.day&&void 0!==xe.c)return le.day="03",le.date.setDate(3),le.date.setMonth(1),xe.insert=[{pos:xe.pos,c:"0"},{pos:xe.pos+1,c:xe.c}],xe.caret=Q.seekNext.call(this,xe.pos+1),xe;return!1}function be(le,xe,We,st){var ut,Ae,ye="",Re=0,Qe={};for(_e(We).lastIndex=0;ut=_e(We).exec(le);){if(void 0===xe)if(Ae=Fe(ut))ye+="("+Ae[0]+")",We.placeholder&&""!==We.placeholder?(Qe[Re]=We.placeholder[ut.index%We.placeholder.length],Qe[We.placeholder[ut.index%We.placeholder.length]]=ut[0].charAt(0)):Qe[Re]=ut[0].charAt(0);else switch(ut[0]){case"[":ye+="(";break;case"]":ye+=")?";break;default:ye+=(0,R.default)(ut[0]),Qe[Re]=ut[0].charAt(0)}else(Ae=Fe(ut))?ye+=!0!==st&&Ae[3]?Ae[3].call(xe.date):Ae[2]?xe["raw"+Ae[2]]:ut[0]:ye+=ut[0];Re++}return void 0===xe&&(We.placeholder=Qe),ye}function Ve(le,xe,We){for(le=String(le),xe=xe||2;le.length<xe;)le=We?le+"0":"0"+le;return le}function Ie(le,xe,We){return"string"==typeof le?new N(le,xe,We,this):le&&"object"===z(le)&&Object.prototype.hasOwnProperty.call(le,"date")?le:void 0}function Se(le,xe){return be(xe.inputFormat,{date:le},xe)}function de(le,xe,We){var st,ut,ye=We&&We.tests[le]?xe.placeholder[We.tests[le][0].match.placeholder]||We.tests[le][0].match.placeholder:"",Re=0,Qe=0;for(_e(xe).lastIndex=0;ut=_e(xe).exec(xe.inputFormat);){var vt=/\d+$/.exec(ut[0]);if(vt)Qe=parseInt(vt[0]);else{for(var Nt=ut[0][0],Dt=Re;this&&(xe.placeholder[H.getTest.call(this,Dt).match.placeholder]||H.getTest.call(this,Dt).match.placeholder)===Nt;)Dt++;0==(Qe=Dt-Re)&&(Qe=ut[0].length)}if(Re+=Qe,-1!=ut[0].indexOf(ye)||Re>=le+1){st=ut,ut=_e(xe).exec(xe.inputFormat);break}}return{targetMatchIndex:Re-Qe,nextMatch:ut,targetMatch:st}}P.default.extendAliases({datetime:{mask:function(le){return le.numericInput=!1,n.S=W.ordinalSuffix.join("|"),le.inputFormat=K[le.inputFormat]||le.inputFormat,le.displayFormat=K[le.displayFormat]||le.displayFormat||le.inputFormat,le.outputFormat=K[le.outputFormat]||le.outputFormat||le.inputFormat,le.regex=be(le.inputFormat,void 0,le),le.min=Ie(le.min,le.inputFormat,le),le.max=Ie(le.max,le.inputFormat,le),null},placeholder:"",inputFormat:"isoDateTime",displayFormat:null,outputFormat:null,min:null,max:null,skipOptionalPartCharacter:"",preValidation:function(le,xe,We,st,ut,Ae,ye,Re){if(Re)return!0;if(isNaN(We)&&le[xe]!==We){var Qe=de.call(this,xe,ut,Ae);if(Qe.nextMatch&&Qe.nextMatch[0]===We&&Qe.targetMatch[0].length>1){var vt=Fe(Qe.targetMatch)[0];if(new RegExp(vt).test("0"+le[xe-1]))return le[xe]=le[xe-1],le[xe-1]="0",{fuzzy:!0,buffer:le,refreshFromBuffer:{start:xe-1,end:xe+1},pos:xe+1}}}return!0},postValidation:function(le,xe,We,st,ut,Ae,ye,Re){var Qe,vt,Nt=this;if(ye)return!0;if(!1===st&&(((Qe=de.call(Nt,xe+1,ut,Ae)).targetMatch&&Qe.targetMatchIndex===xe&&Qe.targetMatch[0].length>1&&void 0!==n[Qe.targetMatch[0]]||(Qe=de.call(Nt,xe+2,ut,Ae)).targetMatch&&Qe.targetMatchIndex===xe+1&&Qe.targetMatch[0].length>1&&void 0!==n[Qe.targetMatch[0]])&&(vt=Fe(Qe.targetMatch)[0]),void 0!==vt&&(void 0!==Ae.validPositions[xe+1]&&new RegExp(vt).test(We+"0")?(le[xe]=We,le[xe+1]="0",st={pos:xe+2,caret:xe}):new RegExp(vt).test("0"+We)&&(le[xe]="0",le[xe+1]=We,st={pos:xe+2})),!1===st))return st;if(st.fuzzy&&(le=st.buffer,xe=st.pos),(Qe=de.call(Nt,xe,ut,Ae)).targetMatch&&Qe.targetMatch[0]&&void 0!==n[Qe.targetMatch[0]]){var Dt=Fe(Qe.targetMatch);vt=Dt[0];var qe=le.slice(Qe.targetMatchIndex,Qe.targetMatchIndex+Qe.targetMatch[0].length);if(!1===new RegExp(vt).test(qe.join(""))&&2===Qe.targetMatch[0].length&&Ae.validPositions[Qe.targetMatchIndex]&&Ae.validPositions[Qe.targetMatchIndex+1]&&(Ae.validPositions[Qe.targetMatchIndex+1].input="0"),"year"==Dt[2])for(var ze=H.getMaskTemplate.call(Nt,!1,1,void 0,!0),Ge=xe+1;Ge<le.length;Ge++)le[Ge]=ze[Ge],Ae.validPositions.splice(xe+1,1)}var dt=st,Dn=Ie.call(Nt,le.join(""),ut.inputFormat,ut);return dt&&!isNaN(Dn.date.getTime())&&(ut.prefillYear&&(dt=function(wt,Hn,Gt){if(wt.year!==wt.rawyear){var An=Y.toString(),Kt=wt.rawyear.replace(/[^0-9]/g,""),Ot=An.slice(0,Kt.length),Vt=An.slice(Kt.length);if(2===Kt.length&&Kt===Ot){var Fn=new Date(Y,wt.month-1,wt.day);wt.day==Fn.getDate()&&(!Gt.max||Gt.max.date.getTime()>=Fn.getTime())&&(wt.date.setFullYear(Y),wt.year=An,Hn.insert=[{pos:Hn.pos+1,c:Vt[0]},{pos:Hn.pos+2,c:Vt[1]}])}}return Hn}(Dn,dt,ut)),dt=function(wt,Hn,Gt,An){if(!Hn)return Hn;if(Hn&&Gt.min&&!isNaN(Gt.min.date.getTime())){var Ot;for(wt.reset(),_e(Gt).lastIndex=0;Ot=_e(Gt).exec(Gt.inputFormat);){var Vt;if((Vt=Fe(Ot))&&Vt[3]){for(var Fn=Vt[1],kn=wt[Vt[2]],$n=Gt.min[Vt[2]],Ii=Gt.max?Gt.max[Vt[2]]:$n+1,Ni=[],Ki=!1,Qr=0;Qr<$n.length;Qr++)void 0!==An.validPositions[Qr+Ot.index]||Ki?(Ni[Qr]=kn[Qr],Ki=Ki||kn[Qr]>$n[Qr]):(Qr+Ot.index==0&&kn[Qr]<$n[Qr]?(Ni[Qr]=kn[Qr],Ki=!0):Ni[Qr]=$n[Qr],"year"===Vt[2]&&kn.length-1==Qr&&$n!=Ii&&(Ni=(parseInt(Ni.join(""))+1).toString().split("")),"ampm"===Vt[2]&&$n!=Ii&&Gt.min.date.getTime()>wt.date.getTime()&&(Ni[Qr]=Ii[Qr]));Fn.call(wt._date,Ni.join(""))}}Hn=Gt.min.date.getTime()<=wt.date.getTime(),wt.reInit()}return Hn&&Gt.max&&(isNaN(Gt.max.date.getTime())||(Hn=Gt.max.date.getTime()>=wt.date.getTime())),Hn}(Dn,dt=ke.call(Nt,Dn,dt,ut),ut,Ae)),void 0!==xe&&dt&&st.pos!==xe?{buffer:be(ut.inputFormat,Dn,ut).split(""),refreshFromBuffer:{start:xe,end:st.pos},pos:st.caret||st.pos}:dt},onKeyDown:function(le,xe,We,st){le.ctrlKey&&le.key===G.keys.ArrowRight&&(this.inputmask._valueSet(Se(new Date,st)),ne(this).trigger("setvalue"))},onUnMask:function(le,xe,We){return xe&&be(We.outputFormat,Ie.call(this,le,We.inputFormat,We),We,!0)},casing:function(le,xe,We,st){if(0==xe.nativeDef.indexOf("[ap]"))return le.toLowerCase();if(0==xe.nativeDef.indexOf("[AP]"))return le.toUpperCase();var ut=H.getTest.call(this,[We-1]);return 0==ut.match.def.indexOf("[AP]")||0===We||ut&&ut.input===String.fromCharCode(G.keyCode.Space)||ut&&ut.match.def===String.fromCharCode(G.keyCode.Space)?le.toUpperCase():le.toLowerCase()},onBeforeMask:function(le,xe){return"[object Date]"===Object.prototype.toString.call(le)&&(le=Se(le,xe)),le},insertMode:!1,insertModeVisual:!1,shiftPositions:!1,keepStatic:!1,inputmode:"numeric",prefillYear:!0}})},1313:function(E,D,k){var R,P=(R=k(2394))&&R.__esModule?R:{default:R};P.default.dependencyLib.extend(!0,P.default.prototype.i18n,{dayNames:["Mon","Tue","Wed","Thu","Fri","Sat","Sun","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],ordinalSuffix:["st","nd","rd","th"]})},3851:function(E,D,k){var R,P=(R=k(2394))&&R.__esModule?R:{default:R},G=k(8711),Q=k(4713);function Z(fe,q){(null==q||q>fe.length)&&(q=fe.length);for(var ne=0,N=new Array(q);ne<q;ne++)N[ne]=fe[ne];return N}P.default.extendDefinitions({A:{validator:"[A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",casing:"upper"},"&":{validator:"[0-9A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",casing:"upper"},"#":{validator:"[0-9A-Fa-f]",casing:"upper"}});var X=/25[0-5]|2[0-4][0-9]|[01][0-9][0-9]/;function z(fe,q,ne,N,Y){if(ne-1>-1&&"."!==q.buffer[ne-1]?(fe=q.buffer[ne-1]+fe,fe=ne-2>-1&&"."!==q.buffer[ne-2]?q.buffer[ne-2]+fe:"0"+fe):fe="00"+fe,Y.greedy&&parseInt(fe)>255&&X.test("00"+fe.charAt(2))){var W=[].concat(function H(fe){return function(q){if(Array.isArray(q))return Z(q)}(fe)||function(q){if(typeof Symbol<"u"&&null!=q[Symbol.iterator]||null!=q["@@iterator"])return Array.from(q)}(fe)||function(q){if(q){if("string"==typeof q)return Z(q,void 0);var N=Object.prototype.toString.call(q).slice(8,-1);if("Object"===N&&q.constructor&&(N=q.constructor.name),"Map"===N||"Set"===N)return Array.from(q);if("Arguments"===N||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N))return Z(q,void 0)}}(fe)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(q.buffer.slice(0,ne)),[".",fe.charAt(2)]);if(W.join("").match(/\./g).length<4)return{refreshFromBuffer:!0,buffer:W,caret:ne+2}}return X.test(fe)}P.default.extendAliases({cssunit:{regex:"[+-]?[0-9]+\\.?([0-9]+)?(px|em|rem|ex|%|in|cm|mm|pt|pc)"},url:{regex:"(https?|ftp)://.*",autoUnmask:!1,keepStatic:!1,tabThrough:!0},ip:{mask:"i{1,3}.j{1,3}.k{1,3}.l{1,3}",definitions:{i:{validator:z},j:{validator:z},k:{validator:z},l:{validator:z}},onUnMask:function(fe,q,ne){return fe},inputmode:"decimal",substitutes:{",":"."}},email:{mask:function(fe){var q=fe.separator,ne=fe.quantifier,N="*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]",Y=N;if(q)for(var W=0;W<ne;W++)Y+="[".concat(q).concat(N,"]");return Y},greedy:!1,casing:"lower",separator:null,quantifier:5,skipOptionalPartCharacter:"",onBeforePaste:function(fe,q){return(fe=fe.toLowerCase()).replace("mailto:","")},definitions:{"*":{validator:"[0-9\uff11-\uff19A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5!#$%&'*+/=?^_`{|}~-]"},"-":{validator:"[0-9A-Za-z-]"}},onUnMask:function(fe,q,ne){return fe},inputmode:"email"},mac:{mask:"##:##:##:##:##:##"},vin:{mask:"V{13}9{4}",definitions:{V:{validator:"[A-HJ-NPR-Za-hj-npr-z\\d]",casing:"upper"}},clearIncomplete:!0,autoUnmask:!0},ssn:{mask:"999-99-9999",postValidation:function(fe,q,ne,N,Y,W,J){var n=Q.getMaskTemplate.call(this,!0,G.getLastValidPosition.call(this),!0,!0);return/^(?!219-09-9999|078-05-1120)(?!666|000|9.{2}).{3}-(?!00).{2}-(?!0{4}).{4}$/.test(n.join(""))}}})},207:function(E,D,k){var R=H(k(7184)),P=H(k(2394)),G=k(2839),Q=k(8711);function H(N){return N&&N.__esModule?N:{default:N}}var Z=P.default.dependencyLib;function X(N,Y){for(var W="",J=0;J<N.length;J++)P.default.prototype.definitions[N.charAt(J)]||Y.definitions[N.charAt(J)]||Y.optionalmarker[0]===N.charAt(J)||Y.optionalmarker[1]===N.charAt(J)||Y.quantifiermarker[0]===N.charAt(J)||Y.quantifiermarker[1]===N.charAt(J)||Y.groupmarker[0]===N.charAt(J)||Y.groupmarker[1]===N.charAt(J)||Y.alternatormarker===N.charAt(J)?W+="\\"+N.charAt(J):W+=N.charAt(J);return W}function z(N,Y,W,J){if(N.length>0&&Y>0&&(!W.digitsOptional||J)){var n=N.indexOf(W.radixPoint),K=!1;W.negationSymbol.back===N[N.length-1]&&(K=!0,N.length--),-1===n&&(N.push(W.radixPoint),n=N.length-1);for(var se=1;se<=Y;se++)isFinite(N[n+se])||(N[n+se]="0")}return K&&N.push(W.negationSymbol.back),N}function fe(N,Y){var W=0;for(var J in"+"===N&&(W=Q.seekNext.call(this,Y.validPositions.length-1)),Y.tests)if((J=parseInt(J))>=W)for(var n=0,K=Y.tests[J].length;n<K;n++)if((void 0===Y.validPositions[J]||"-"===N)&&Y.tests[J][n].match.def===N)return J+(void 0!==Y.validPositions[J]&&"-"!==N?1:0);return W}function q(N,Y){for(var W=-1,J=0,n=Y.validPositions.length;J<n;J++){var K=Y.validPositions[J];if(K&&K.match.def===N){W=J;break}}return W}function ne(N,Y,W,J,n){var K=Y.buffer?Y.buffer.indexOf(n.radixPoint):-1,se=(-1!==K||J&&n.jitMasking)&&new RegExp(n.definitions[9].validator).test(N);return!J&&n._radixDance&&-1!==K&&se&&null==Y.validPositions[K]?{insert:{pos:K===W?K+1:K,c:n.radixPoint},pos:W}:se}P.default.extendAliases({numeric:{mask:function(N){N.repeat=0,N.groupSeparator===N.radixPoint&&N.digits&&"0"!==N.digits&&(N.groupSeparator="."===N.radixPoint?",":","===N.radixPoint?".":"")," "===N.groupSeparator&&(N.skipOptionalPartCharacter=void 0),N.placeholder.length>1&&(N.placeholder=N.placeholder.charAt(0)),"radixFocus"===N.positionCaretOnClick&&""===N.placeholder&&(N.positionCaretOnClick="lvp");var Y="0",W=N.radixPoint;!0===N.numericInput&&void 0===N.__financeInput?(Y="1",N.positionCaretOnClick="radixFocus"===N.positionCaretOnClick?"lvp":N.positionCaretOnClick,N.digitsOptional=!1,isNaN(N.digits)&&(N.digits=2),N._radixDance=!1,W=","===N.radixPoint?"?":"!",""!==N.radixPoint&&void 0===N.definitions[W]&&(N.definitions[W]={},N.definitions[W].validator="["+N.radixPoint+"]",N.definitions[W].placeholder=N.radixPoint,N.definitions[W].static=!0,N.definitions[W].generated=!0)):(N.__financeInput=!1,N.numericInput=!0);var J,se,n="[+]";if(n+=X(N.prefix,N),""!==N.groupSeparator?(void 0===N.definitions[N.groupSeparator]&&(N.definitions[N.groupSeparator]={},N.definitions[N.groupSeparator].validator="["+N.groupSeparator+"]",N.definitions[N.groupSeparator].placeholder=N.groupSeparator,N.definitions[N.groupSeparator].static=!0,N.definitions[N.groupSeparator].generated=!0),n+=N._mask(N)):n+="9{+}",void 0!==N.digits&&0!==N.digits){var K=N.digits.toString().split(",");isFinite(K[0])&&K[1]&&isFinite(K[1])?n+=W+Y+"{"+N.digits+"}":(isNaN(N.digits)||parseInt(N.digits)>0)&&(N.digitsOptional||N.jitMasking?(J=n+W+Y+"{0,"+N.digits+"}",N.keepStatic=!0):n+=W+Y+"{"+N.digits+"}")}else N.inputmode="numeric";return n+=X(N.suffix,N),n+="[-]",J&&(n=[J+X(N.suffix,N)+"[-]",n]),N.greedy=!1,void 0===(se=N).parseMinMaxOptions&&(null!==se.min&&(se.min=se.min.toString().replace(new RegExp((0,R.default)(se.groupSeparator),"g"),""),","===se.radixPoint&&(se.min=se.min.replace(se.radixPoint,".")),se.min=isFinite(se.min)?parseFloat(se.min):NaN,isNaN(se.min)&&(se.min=Number.MIN_VALUE)),null!==se.max&&(se.max=se.max.toString().replace(new RegExp((0,R.default)(se.groupSeparator),"g"),""),","===se.radixPoint&&(se.max=se.max.replace(se.radixPoint,".")),se.max=isFinite(se.max)?parseFloat(se.max):NaN,isNaN(se.max)&&(se.max=Number.MAX_VALUE)),se.parseMinMaxOptions="done"),""!==N.radixPoint&&N.substituteRadixPoint&&(N.substitutes["."==N.radixPoint?",":"."]=N.radixPoint),n},_mask:function(N){return"("+N.groupSeparator+"999){+|1}"},digits:"*",digitsOptional:!0,enforceDigitsOnBlur:!1,radixPoint:".",positionCaretOnClick:"radixFocus",_radixDance:!0,groupSeparator:"",allowMinus:!0,negationSymbol:{front:"-",back:""},prefix:"",suffix:"",min:null,max:null,SetMaxOnOverflow:!1,step:1,inputType:"text",unmaskAsNumber:!1,roundingFN:Math.round,inputmode:"decimal",shortcuts:{k:"1000",m:"1000000"},placeholder:"0",greedy:!1,rightAlign:!0,insertMode:!0,autoUnmask:!1,skipOptionalPartCharacter:"",usePrototypeDefinitions:!1,stripLeadingZeroes:!0,substituteRadixPoint:!0,definitions:{0:{validator:ne},1:{validator:ne,definitionSymbol:"9"},9:{validator:"[0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]",definitionSymbol:"*"},"+":{validator:function(N,Y,W,J,n){return n.allowMinus&&("-"===N||N===n.negationSymbol.front)}},"-":{validator:function(N,Y,W,J,n){return n.allowMinus&&N===n.negationSymbol.back}}},preValidation:function(N,Y,W,J,n,K,se,De){if(!1!==n.__financeInput&&W===n.radixPoint)return!1;var de,le,xe,We,st,_e=N.indexOf(n.radixPoint),ke=Y;if(de=Y,le=W,xe=_e,We=K,(st=n)._radixDance&&st.numericInput&&le!==st.negationSymbol.back&&de<=xe&&(xe>0||le==st.radixPoint)&&(void 0===We.validPositions[de-1]||We.validPositions[de-1].input!==st.negationSymbol.back)&&(de-=1),Y=de,"-"===W||W===n.negationSymbol.front){if(!0!==n.allowMinus)return!1;var be=!1,Ve=q("+",K),Ie=q("-",K);return-1!==Ve&&(be=[Ve],-1!==Ie&&be.push(Ie)),!1!==be?{remove:be,caret:ke-n.negationSymbol.back.length}:{insert:[{pos:fe.call(this,"+",K),c:n.negationSymbol.front,fromIsValid:!0},{pos:fe.call(this,"-",K),c:n.negationSymbol.back,fromIsValid:void 0}],caret:ke+n.negationSymbol.back.length}}if(W===n.groupSeparator)return{caret:ke};if(De)return!0;if(-1!==_e&&!0===n._radixDance&&!1===J&&W===n.radixPoint&&void 0!==n.digits&&(isNaN(n.digits)||parseInt(n.digits)>0)&&_e!==Y){var Se=fe.call(this,n.radixPoint,K);return K.validPositions[Se]&&(K.validPositions[Se].generatedInput=K.validPositions[Se].generated||!1),{caret:n._radixDance&&Y===_e-1?_e+1:_e}}if(!1===n.__financeInput)if(J){if(n.digitsOptional)return{rewritePosition:se.end};if(!n.digitsOptional){if(se.begin>_e&&se.end<=_e)return W===n.radixPoint?{insert:{pos:_e+1,c:"0",fromIsValid:!0},rewritePosition:_e}:{rewritePosition:_e+1};if(se.begin<_e)return{rewritePosition:se.begin-1}}}else if(!n.showMaskOnHover&&!n.showMaskOnFocus&&!n.digitsOptional&&n.digits>0&&""===this.__valueGet.call(this.el))return{rewritePosition:_e};return{rewritePosition:Y}},postValidation:function(N,Y,W,J,n,K,se){if(!1===J)return J;if(se)return!0;if(null!==n.min||null!==n.max){var De=n.onUnMask(N.slice().reverse().join(""),void 0,Z.extend({},n,{unmaskAsNumber:!0}));if(null!==n.min&&De<n.min&&(De.toString().length>n.min.toString().length||De<0))return!1;if(null!==n.max&&De>n.max)return!!n.SetMaxOnOverflow&&{refreshFromBuffer:!0,buffer:z(n.max.toString().replace(".",n.radixPoint).split(""),n.digits,n).reverse()}}return J},onUnMask:function(N,Y,W){if(""===Y&&!0===W.nullable)return Y;var J=N.replace(W.prefix,"");return J=(J=J.replace(W.suffix,"")).replace(new RegExp((0,R.default)(W.groupSeparator),"g"),""),""!==W.placeholder.charAt(0)&&(J=J.replace(new RegExp(W.placeholder.charAt(0),"g"),"0")),W.unmaskAsNumber?(""!==W.radixPoint&&-1!==J.indexOf(W.radixPoint)&&(J=J.replace(R.default.call(this,W.radixPoint),".")),J=(J=J.replace(new RegExp("^"+(0,R.default)(W.negationSymbol.front)),"-")).replace(new RegExp((0,R.default)(W.negationSymbol.back)+"$"),""),Number(J)):J},isComplete:function(N,Y){var W=(Y.numericInput?N.slice().reverse():N).join("");return W=(W=(W=(W=(W=W.replace(new RegExp("^"+(0,R.default)(Y.negationSymbol.front)),"-")).replace(new RegExp((0,R.default)(Y.negationSymbol.back)+"$"),"")).replace(Y.prefix,"")).replace(Y.suffix,"")).replace(new RegExp((0,R.default)(Y.groupSeparator)+"([0-9]{3})","g"),"$1"),","===Y.radixPoint&&(W=W.replace((0,R.default)(Y.radixPoint),".")),isFinite(W)},onBeforeMask:function(N,Y){var W;N=null!==(W=N)&&void 0!==W?W:"";var J=Y.radixPoint||",";isFinite(Y.digits)&&(Y.digits=parseInt(Y.digits)),"number"!=typeof N&&"number"!==Y.inputType||""===J||(N=N.toString().replace(".",J));var n="-"===N.charAt(0)||N.charAt(0)===Y.negationSymbol.front,K=N.split(J),se=K[0].replace(/[^\-0-9]/g,""),De=K.length>1?K[1].replace(/[^0-9]/g,""):"",Fe=K.length>1;N=se+(""!==De?J+De:De);var _e=0;if(""!==J&&(_e=Y.digitsOptional?Y.digits<De.length?Y.digits:De.length:Y.digits,""!==De||!Y.digitsOptional)){var ke=Math.pow(10,_e||1);N=N.replace((0,R.default)(J),"."),isNaN(parseFloat(N))||(N=(Y.roundingFN(parseFloat(N)*ke)/ke).toFixed(_e)),N=N.toString().replace(".",J)}if(0===Y.digits&&-1!==N.indexOf(J)&&(N=N.substring(0,N.indexOf(J))),null!==Y.min||null!==Y.max){var be=N.toString().replace(J,".");null!==Y.min&&be<Y.min?N=Y.min.toString().replace(".",J):null!==Y.max&&be>Y.max&&(N=Y.max.toString().replace(".",J))}return n&&"-"!==N.charAt(0)&&(N="-"+N),z(N.toString().split(""),_e,Y,Fe).join("")},onBeforeWrite:function(N,Y,W,J){function n(Ie,Se){if(!1!==J.__financeInput||Se){var de=Ie.indexOf(J.radixPoint);-1!==de&&Ie.splice(de,1)}if(""!==J.groupSeparator)for(;-1!==(de=Ie.indexOf(J.groupSeparator));)Ie.splice(de,1);return Ie}var K,se,Ie,Se,de,le,xe;if(J.stripLeadingZeroes&&(Ie=Y,Se=J,xe=!1,(le=(de=new RegExp("(^"+(""!==Se.negationSymbol.front?(0,R.default)(Se.negationSymbol.front)+"?":"")+(0,R.default)(Se.prefix)+")(.*)("+(0,R.default)(Se.suffix)+(""!=Se.negationSymbol.back?(0,R.default)(Se.negationSymbol.back)+"?":"")+"$)").exec(Ie.slice().reverse().join("")))?de[2]:"")&&(le=le.split(Se.radixPoint.charAt(0))[0],xe=new RegExp("^[0"+Se.groupSeparator+"]*").exec(le)),se=!(!xe||!(xe[0].length>1||xe[0].length>0&&xe[0].length<le.length))&&xe))for(var De=Y.join("").lastIndexOf(se[0].split("").reverse().join(""))-(se[0]==se.input?0:1),_e=se[0].length-(se[0]==se.input?1:0);_e>0;_e--)this.maskset.validPositions.splice(De+_e,1),delete Y[De+_e];if(N)switch(N.type){case"blur":case"checkval":if(null!==J.min){var ke=J.onUnMask(Y.slice().reverse().join(""),void 0,Z.extend({},J,{unmaskAsNumber:!0}));if(null!==J.min&&ke<J.min)return{refreshFromBuffer:!0,buffer:z(J.min.toString().replace(".",J.radixPoint).split(""),J.digits,J).reverse()}}if(Y[Y.length-1]===J.negationSymbol.front){var be=new RegExp("(^"+(""!=J.negationSymbol.front?(0,R.default)(J.negationSymbol.front)+"?":"")+(0,R.default)(J.prefix)+")(.*)("+(0,R.default)(J.suffix)+(""!=J.negationSymbol.back?(0,R.default)(J.negationSymbol.back)+"?":"")+"$)").exec(n(Y.slice(),!0).reverse().join(""));0==(be?be[2]:"")&&(K={refreshFromBuffer:!0,buffer:[0]})}else""!==J.radixPoint&&Y.indexOf(J.radixPoint)===J.suffix.length&&(K&&K.buffer?K.buffer.splice(0,1+J.suffix.length):(Y.splice(0,1+J.suffix.length),K={refreshFromBuffer:!0,buffer:n(Y)}));if(J.enforceDigitsOnBlur){var Ve=(K=K||{})&&K.buffer||Y.slice().reverse();K.refreshFromBuffer=!0,K.buffer=z(Ve,J.digits,J,!0).reverse()}}return K},onKeyDown:function(N,Y,W,J){var n,se,K=Z(this);if(3!=N.location&&(se=J.shortcuts&&J.shortcuts[N.key])&&se.length>1)return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())*parseInt(se)),K.trigger("setvalue"),!1;if(N.ctrlKey)switch(N.key){case G.keys.ArrowUp:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())+parseInt(J.step)),K.trigger("setvalue"),!1;case G.keys.ArrowDown:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())-parseInt(J.step)),K.trigger("setvalue"),!1}if(!N.shiftKey&&(N.key===G.keys.Delete||N.key===G.keys.Backspace||N.key===G.keys.BACKSPACE_SAFARI)&&W.begin!==Y.length){if(Y[N.key===G.keys.Delete?W.begin-1:W.end]===J.negationSymbol.front)return n=Y.slice().reverse(),""!==J.negationSymbol.front&&n.shift(),""!==J.negationSymbol.back&&n.pop(),K.trigger("setvalue",[n.join(""),W.begin]),!1;if(!0===J._radixDance){var Fe,_e=Y.indexOf(J.radixPoint);if(J.digitsOptional){if(0===_e)return(n=Y.slice().reverse()).pop(),K.trigger("setvalue",[n.join(""),W.begin>=n.length?n.length:W.begin]),!1}else if(-1!==_e&&(W.begin<_e||W.end<_e||N.key===G.keys.Delete&&(W.begin===_e||W.begin-1===_e)))return W.begin===W.end&&(N.key===G.keys.Backspace||N.key===G.keys.BACKSPACE_SAFARI?W.begin++:N.key===G.keys.Delete&&W.begin-1===_e&&(Fe=Z.extend({},W),W.begin--,W.end--)),(n=Y.slice().reverse()).splice(n.length-W.begin,W.begin-W.end+1),n=z(n,J.digits,J).join(""),Fe&&(W=Fe),K.trigger("setvalue",[n,W.begin>=n.length?_e+1:W.begin]),!1}}}},currency:{prefix:"",groupSeparator:",",alias:"numeric",digits:2,digitsOptional:!1},decimal:{alias:"numeric"},integer:{alias:"numeric",inputmode:"numeric",digits:0},percentage:{alias:"numeric",min:0,max:100,suffix:" %",digits:0,allowMinus:!1},indianns:{alias:"numeric",_mask:function(N){return"("+N.groupSeparator+"99){*|1}("+N.groupSeparator+"999){1|1}"},groupSeparator:",",radixPoint:".",placeholder:"0",digits:2,digitsOptional:!1}})},9380:function(E,D){Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var k=!(typeof window>"u"||!window.document||!window.document.createElement);D.default=k?window:{}},7760:function(E,D,k){Object.defineProperty(D,"__esModule",{value:!0}),D.HandleNativePlaceholder=function(ne,N){var Y=ne?ne.inputmask:this;if(R.ie){if(ne.inputmask._valueGet()!==N&&(ne.placeholder!==N||""===ne.placeholder)){var W=Q.getBuffer.call(Y).slice(),J=ne.inputmask._valueGet();if(J!==N){var n=Q.getLastValidPosition.call(Y);-1===n&&J===Q.getBufferTemplate.call(Y).join("")?W=[]:-1!==n&&z.call(Y,W),q(ne,W)}}}else ne.placeholder!==N&&(ne.placeholder=N,""===ne.placeholder&&ne.removeAttribute("placeholder"))},D.applyInputValue=X,D.checkVal=fe,D.clearOptionalTail=z,D.unmaskedvalue=function(ne){var N=ne?ne.inputmask:this,Y=N.opts,W=N.maskset;if(ne){if(void 0===ne.inputmask)return ne.value;ne.inputmask&&ne.inputmask.refreshValue&&X(ne,ne.inputmask._valueGet(!0))}for(var J=[],n=W.validPositions,K=0,se=n.length;K<se;K++)n[K]&&n[K].match&&(1!=n[K].match.static||Array.isArray(W.metadata)&&!0!==n[K].generatedInput)&&J.push(n[K].input);var De=0===J.length?"":(N.isRTL?J.reverse():J).join("");if("function"==typeof Y.onUnMask){var Fe=(N.isRTL?Q.getBuffer.call(N).slice().reverse():Q.getBuffer.call(N)).join("");De=Y.onUnMask.call(N,Fe,De,Y)}return De},D.writeBuffer=q;var R=k(9845),P=k(6030),G=k(2839),Q=k(8711),H=k(7215),Z=k(4713);function X(ne,N,Y){var W=ne?ne.inputmask:this,J=W.opts;ne.inputmask.refreshValue=!1,"function"==typeof J.onBeforeMask&&(N=J.onBeforeMask.call(W,N,J)||N),fe(ne,!0,!1,N=(N||"").toString().split(""),Y),W.undoValue=W._valueGet(!0),(J.clearMaskOnLostFocus||J.clearIncomplete)&&ne.inputmask._valueGet()===Q.getBufferTemplate.call(W).join("")&&-1===Q.getLastValidPosition.call(W)&&ne.inputmask._valueSet("")}function z(ne){ne.length=0;for(var N,Y=Z.getMaskTemplate.call(this,!0,0,!0,void 0,!0);void 0!==(N=Y.shift());)ne.push(N);return ne}function fe(ne,N,Y,W,J){var n,K=ne?ne.inputmask:this,se=K.maskset,De=K.opts,Fe=K.dependencyLib,_e=W.slice(),ke="",be=-1,Ve=De.skipOptionalPartCharacter;De.skipOptionalPartCharacter="",Q.resetMaskSet.call(K,!1),K.clicked=0,be=De.radixPoint?Q.determineNewCaretPosition.call(K,{begin:0,end:0},!1,!1===De.__financeInput?"radixFocus":void 0).begin:0,se.p=be,K.caretPos={begin:be};var Ie=[],Se=K.caretPos;if(_e.forEach(function(ut,Ae){if(void 0!==ut){var ye=new Fe.Event("_checkval");ye.key=ut,ke+=ut;var Re=Q.getLastValidPosition.call(K,void 0,!0);!function(Qe,vt){for(var Nt=Z.getMaskTemplate.call(K,!0,0).slice(Qe,Q.seekNext.call(K,Qe,!1,!1)).join("").replace(/'/g,""),Dt=Nt.indexOf(vt);Dt>0&&" "===Nt[Dt-1];)Dt--;var qe=0===Dt&&!Q.isMask.call(K,Qe)&&(Z.getTest.call(K,Qe).match.nativeDef===vt.charAt(0)||!0===Z.getTest.call(K,Qe).match.static&&Z.getTest.call(K,Qe).match.nativeDef==="'"+vt.charAt(0)||" "===Z.getTest.call(K,Qe).match.nativeDef&&(Z.getTest.call(K,Qe+1).match.nativeDef===vt.charAt(0)||!0===Z.getTest.call(K,Qe+1).match.static&&Z.getTest.call(K,Qe+1).match.nativeDef==="'"+vt.charAt(0)));if(!qe&&Dt>0&&!Q.isMask.call(K,Qe,!1,!0)){var ze=Q.seekNext.call(K,Qe);K.caretPos.begin<ze&&(K.caretPos={begin:ze})}return qe}(be,ke)?(n=P.EventHandlers.keypressEvent.call(K,ye,!0,!1,Y,K.caretPos.begin))&&(be=K.caretPos.begin+1,ke=""):n=P.EventHandlers.keypressEvent.call(K,ye,!0,!1,Y,Re+1),n?(void 0!==n.pos&&se.validPositions[n.pos]&&!0===se.validPositions[n.pos].match.static&&void 0===se.validPositions[n.pos].alternation&&(Ie.push(n.pos),K.isRTL||(n.forwardPosition=n.pos+1)),q.call(K,void 0,Q.getBuffer.call(K),n.forwardPosition,ye,!1),K.caretPos={begin:n.forwardPosition,end:n.forwardPosition},Se=K.caretPos):void 0===se.validPositions[Ae]&&_e[Ae]===Z.getPlaceholder.call(K,Ae)&&Q.isMask.call(K,Ae,!0)?K.caretPos.begin++:K.caretPos=Se}}),Ie.length>0){var de,le,xe=Q.seekNext.call(K,-1,void 0,!1);if(!H.isComplete.call(K,Q.getBuffer.call(K))&&Ie.length<=xe||H.isComplete.call(K,Q.getBuffer.call(K))&&Ie.length>0&&Ie.length!==xe&&0===Ie[0])for(var We=xe;void 0!==(de=Ie.shift());)if(de<We){var st=new Fe.Event("_checkval");if((le=se.validPositions[de]).generatedInput=!0,st.key=le.input,(n=P.EventHandlers.keypressEvent.call(K,st,!0,!1,Y,We))&&void 0!==n.pos&&n.pos!==de&&se.validPositions[n.pos]&&!0===se.validPositions[n.pos].match.static)Ie.push(n.pos);else if(!n)break;We++}}N&&q.call(K,ne,Q.getBuffer.call(K),n?n.forwardPosition:K.caretPos.begin,J||new Fe.Event("checkval"),J&&("input"===J.type&&K.undoValue!==Q.getBuffer.call(K).join("")||"paste"===J.type)),De.skipOptionalPartCharacter=Ve}function q(ne,N,Y,W,J){var n=ne?ne.inputmask:this,K=n.opts,se=n.dependencyLib;if(W&&"function"==typeof K.onBeforeWrite){var De=K.onBeforeWrite.call(n,W,N,Y,K);if(De){if(De.refreshFromBuffer){var Fe=De.refreshFromBuffer;H.refreshFromBuffer.call(n,!0===Fe?Fe:Fe.start,Fe.end,De.buffer||N),N=Q.getBuffer.call(n,!0)}void 0!==Y&&(Y=void 0!==De.caret?De.caret:Y)}}if(void 0!==ne&&(ne.inputmask._valueSet(N.join("")),void 0===Y||void 0!==W&&"blur"===W.type||Q.caret.call(n,ne,Y,void 0,void 0,void 0!==W&&"keydown"===W.type&&(W.key===G.keys.Delete||W.key===G.keys.Backspace)),void 0===ne.inputmask.writeBufferHook||ne.inputmask.writeBufferHook(Y),!0===J)){var _e=se(ne),ke=ne.inputmask._valueGet();ne.inputmask.skipInputEvent=!0,_e.trigger("input"),setTimeout(function(){ke===Q.getBufferTemplate.call(n).join("")?_e.trigger("cleared"):!0===H.isComplete.call(n,N)&&_e.trigger("complete")},0)}}},2394:function(E,D,k){Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var R=Y(k(3976)),P=Y(k(7392)),G=Y(k(4963)),Q=k(9716),H=Y(k(9380)),Z=k(7760),X=k(157),z=k(2391),fe=k(8711),q=k(7215),ne=k(4713);function N(se){return(N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(De){return typeof De}:function(De){return De&&"function"==typeof Symbol&&De.constructor===Symbol&&De!==Symbol.prototype?"symbol":typeof De})(se)}function Y(se){return se&&se.__esModule?se:{default:se}}var W=H.default.document,J="_inputmask_opts";function n(se,De,Fe){if(!(this instanceof n))return new n(se,De,Fe);this.dependencyLib=G.default,this.el=void 0,this.events={},this.maskset=void 0,!0!==Fe&&("[object Object]"===Object.prototype.toString.call(se)?De=se:(De=De||{},se&&(De.alias=se)),this.opts=G.default.extend(!0,{},this.defaults,De),this.noMasksCache=De&&void 0!==De.definitions,this.userOptions=De||{},K(this.opts.alias,De,this.opts)),this.refreshValue=!1,this.undoValue=void 0,this.$el=void 0,this.skipInputEvent=!1,this.validationEvent=!1,this.ignorable=!1,this.mouseEnter=!1,this.clicked=0,this.originalPlaceholder=void 0,this.isComposing=!1,this.hasAlternator=!1}function K(se,De,Fe){var _e=n.prototype.aliases[se];return _e?(_e.alias&&K(_e.alias,void 0,Fe),G.default.extend(!0,Fe,_e),G.default.extend(!0,Fe,De),!0):(null===Fe.mask&&(Fe.mask=se),!1)}n.prototype={dataAttribute:"data-inputmask",defaults:R.default,definitions:P.default,aliases:{},masksCache:{},i18n:{},get isRTL(){return this.opts.isRTL||this.opts.numericInput},mask:function(se){var De=this;return"string"==typeof se&&(se=W.getElementById(se)||W.querySelectorAll(se)),(se=se.nodeName?[se]:Array.isArray(se)?se:[].slice.call(se)).forEach(function(Fe,_e){var ke=G.default.extend(!0,{},De.opts);if(function(Ve,Ie,Se,de){function le(ye,Re){null!==(Re=void 0!==Re?Re:Ve.getAttribute(""===de?ye:de+"-"+ye))&&("string"==typeof Re&&(0===ye.indexOf("on")?Re=H.default[Re]:"false"===Re?Re=!1:"true"===Re&&(Re=!0)),Se[ye]=Re)}if(!0===Ie.importDataAttributes){var xe,We,st,ut,Ae=Ve.getAttribute(de);if(Ae&&""!==Ae&&(Ae=Ae.replace(/'/g,'"'),We=JSON.parse("{"+Ae+"}")),We)for(ut in st=void 0,We)if("alias"===ut.toLowerCase()){st=We[ut];break}for(xe in le("alias",st),Se.alias&&K(Se.alias,Se,Ie),Ie){if(We)for(ut in st=void 0,We)if(ut.toLowerCase()===xe.toLowerCase()){st=We[ut];break}le(xe,st)}}return G.default.extend(!0,Ie,Se),("rtl"===Ve.dir||Ie.rightAlign)&&(Ve.style.textAlign="right"),("rtl"===Ve.dir||Ie.numericInput)&&(Ve.dir="ltr",Ve.removeAttribute("dir"),Ie.isRTL=!0),Object.keys(Se).length}(Fe,ke,G.default.extend(!0,{},De.userOptions),De.dataAttribute)){var be=(0,z.generateMaskSet)(ke,De.noMasksCache);void 0!==be&&(void 0!==Fe.inputmask&&(Fe.inputmask.opts.autoUnmask=!0,Fe.inputmask.remove()),Fe.inputmask=new n(void 0,void 0,!0),Fe.inputmask.opts=ke,Fe.inputmask.noMasksCache=De.noMasksCache,Fe.inputmask.userOptions=G.default.extend(!0,{},De.userOptions),Fe.inputmask.el=Fe,Fe.inputmask.$el=(0,G.default)(Fe),Fe.inputmask.maskset=be,G.default.data(Fe,J,De.userOptions),X.mask.call(Fe.inputmask))}}),se&&se[0]&&se[0].inputmask||this},option:function(se,De){return"string"==typeof se?this.opts[se]:"object"===N(se)?(G.default.extend(this.userOptions,se),this.el&&!0!==De&&this.mask(this.el),this):void 0},unmaskedvalue:function(se){if(this.maskset=this.maskset||(0,z.generateMaskSet)(this.opts,this.noMasksCache),void 0===this.el||void 0!==se){var De=("function"==typeof this.opts.onBeforeMask&&this.opts.onBeforeMask.call(this,se,this.opts)||se).split("");Z.checkVal.call(this,void 0,!1,!1,De),"function"==typeof this.opts.onBeforeWrite&&this.opts.onBeforeWrite.call(this,void 0,fe.getBuffer.call(this),0,this.opts)}return Z.unmaskedvalue.call(this,this.el)},remove:function(){if(this.el){G.default.data(this.el,J,null);var se=this.opts.autoUnmask?(0,Z.unmaskedvalue)(this.el):this._valueGet(this.opts.autoUnmask);se!==fe.getBufferTemplate.call(this).join("")?this._valueSet(se,this.opts.autoUnmask):this._valueSet(""),Q.EventRuler.off(this.el),Object.getOwnPropertyDescriptor&&Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(this.el),"value")&&this.__valueGet&&Object.defineProperty(this.el,"value",{get:this.__valueGet,set:this.__valueSet,configurable:!0}):W.__lookupGetter__&&this.el.__lookupGetter__("value")&&this.__valueGet&&(this.el.__defineGetter__("value",this.__valueGet),this.el.__defineSetter__("value",this.__valueSet)),this.el.inputmask=void 0}return this.el},getemptymask:function(){return this.maskset=this.maskset||(0,z.generateMaskSet)(this.opts,this.noMasksCache),(this.isRTL?fe.getBufferTemplate.call(this).reverse():fe.getBufferTemplate.call(this)).join("")},hasMaskedValue:function(){return!this.opts.autoUnmask},isComplete:function(){return this.maskset=this.maskset||(0,z.generateMaskSet)(this.opts,this.noMasksCache),q.isComplete.call(this,fe.getBuffer.call(this))},getmetadata:function(){if(this.maskset=this.maskset||(0,z.generateMaskSet)(this.opts,this.noMasksCache),Array.isArray(this.maskset.metadata)){var se=ne.getMaskTemplate.call(this,!0,0,!1).join("");return this.maskset.metadata.forEach(function(De){return De.mask!==se||(se=De,!1)}),se}return this.maskset.metadata},isValid:function(se){if(this.maskset=this.maskset||(0,z.generateMaskSet)(this.opts,this.noMasksCache),se){var De=("function"==typeof this.opts.onBeforeMask&&this.opts.onBeforeMask.call(this,se,this.opts)||se).split("");Z.checkVal.call(this,void 0,!0,!1,De)}else se=this.isRTL?fe.getBuffer.call(this).slice().reverse().join(""):fe.getBuffer.call(this).join("");for(var Fe=fe.getBuffer.call(this),_e=fe.determineLastRequiredPosition.call(this),ke=Fe.length-1;ke>_e&&!fe.isMask.call(this,ke);ke--);return Fe.splice(_e,ke+1-_e),q.isComplete.call(this,Fe)&&se===(this.isRTL?fe.getBuffer.call(this).slice().reverse().join(""):fe.getBuffer.call(this).join(""))},format:function(se,De){this.maskset=this.maskset||(0,z.generateMaskSet)(this.opts,this.noMasksCache);var Fe=("function"==typeof this.opts.onBeforeMask&&this.opts.onBeforeMask.call(this,se,this.opts)||se).split("");Z.checkVal.call(this,void 0,!0,!1,Fe);var _e=this.isRTL?fe.getBuffer.call(this).slice().reverse().join(""):fe.getBuffer.call(this).join("");return De?{value:_e,metadata:this.getmetadata()}:_e},setValue:function(se){this.el&&(0,G.default)(this.el).trigger("setvalue",[se])},analyseMask:z.analyseMask},n.extendDefaults=function(se){G.default.extend(!0,n.prototype.defaults,se)},n.extendDefinitions=function(se){G.default.extend(!0,n.prototype.definitions,se)},n.extendAliases=function(se){G.default.extend(!0,n.prototype.aliases,se)},n.format=function(se,De,Fe){return n(De).format(se,Fe)},n.unmask=function(se,De){return n(De).unmaskedvalue(se)},n.isValid=function(se,De){return n(De).isValid(se)},n.remove=function(se){"string"==typeof se&&(se=W.getElementById(se)||W.querySelectorAll(se)),(se=se.nodeName?[se]:se).forEach(function(De){De.inputmask&&De.inputmask.remove()})},n.setValue=function(se,De){"string"==typeof se&&(se=W.getElementById(se)||W.querySelectorAll(se)),(se=se.nodeName?[se]:se).forEach(function(Fe){Fe.inputmask?Fe.inputmask.setValue(De):(0,G.default)(Fe).trigger("setvalue",[De])})},n.dependencyLib=G.default,H.default.Inputmask=n,D.default=n},5296:function(E,D,k){function R(W){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(J){return typeof J}:function(J){return J&&"function"==typeof Symbol&&J.constructor===Symbol&&J!==Symbol.prototype?"symbol":typeof J})(W)}var P=ne(k(9380)),G=ne(k(2394));function Q(W,J){for(var n=0;n<J.length;n++){var K=J[n];K.enumerable=K.enumerable||!1,K.configurable=!0,"value"in K&&(K.writable=!0),Object.defineProperty(W,(void 0,De=function(Fe){if("object"!==R(Fe)||null===Fe)return Fe;var ke=Fe[Symbol.toPrimitive];if(void 0!==ke){var be=ke.call(Fe,"string");if("object"!==R(be))return be;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(Fe)}(K.key),"symbol"===R(De)?De:String(De)),K)}var De}function Z(W){var J="function"==typeof Map?new Map:void 0;return Z=function(n){if(null===n||!function(se){try{return-1!==Function.toString.call(se).indexOf("[native code]")}catch{return"function"==typeof se}}(n))return n;if("function"!=typeof n)throw new TypeError("Super expression must either be null or a function");if(void 0!==J){if(J.has(n))return J.get(n);J.set(n,K)}function K(){return X(n,arguments,q(this).constructor)}return K.prototype=Object.create(n.prototype,{constructor:{value:K,enumerable:!1,writable:!0,configurable:!0}}),fe(K,n)},Z(W)}function X(W,J,n){return(X=z()?Reflect.construct.bind():function(K,se,De){var Fe=[null];Fe.push.apply(Fe,se);var _e=new(Function.bind.apply(K,Fe));return De&&fe(_e,De.prototype),_e}).apply(null,arguments)}function z(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function fe(W,J){return(fe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,K){return n.__proto__=K,n})(W,J)}function q(W){return(q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(J){return J.__proto__||Object.getPrototypeOf(J)})(W)}function ne(W){return W&&W.__esModule?W:{default:W}}var N=P.default.document;if(N&&N.head&&N.head.attachShadow&&P.default.customElements&&void 0===P.default.customElements.get("input-mask")){var Y=function(W){!function(Fe,_e){if("function"!=typeof _e&&null!==_e)throw new TypeError("Super expression must either be null or a function");Fe.prototype=Object.create(_e&&_e.prototype,{constructor:{value:Fe,writable:!0,configurable:!0}}),Object.defineProperty(Fe,"prototype",{writable:!1}),_e&&fe(Fe,_e)}(De,W);var J,n,se=function H(W){var J=z();return function(){var n,K=q(W);if(J){var se=q(this).constructor;n=Reflect.construct(K,arguments,se)}else n=K.apply(this,arguments);return function(De,Fe){if(Fe&&("object"===R(Fe)||"function"==typeof Fe))return Fe;if(void 0!==Fe)throw new TypeError("Derived constructors may only return object or undefined");return function(_e){if(void 0===_e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _e}(De)}(this,n)}}(De);function De(){var Fe;!function(Ie,Se){if(!(Ie instanceof Se))throw new TypeError("Cannot call a class as a function")}(this,De);var _e=(Fe=se.call(this)).getAttributeNames(),ke=Fe.attachShadow({mode:"closed"});for(var be in Fe.input=N.createElement("input"),Fe.input.type="text",ke.appendChild(Fe.input),_e)Object.prototype.hasOwnProperty.call(_e,be)&&Fe.input.setAttribute(_e[be],Fe.getAttribute(_e[be]));var Ve=new G.default;return Ve.dataAttribute="",Ve.mask(Fe.input),Fe.input.inputmask.shadowRoot=ke,Fe}return J=De,(n=[{key:"attributeChangedCallback",value:function(Fe,_e,ke){this.input.setAttribute(Fe,ke)}},{key:"value",get:function(){return this.input.value},set:function(Fe){this.input.value=Fe}}])&&Q(J.prototype,n),Object.defineProperty(J,"prototype",{writable:!1}),De}(Z(HTMLElement));P.default.customElements.define("input-mask",Y)}},2839:function(E,D){function k(X){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(z){return typeof z}:function(z){return z&&"function"==typeof Symbol&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z})(X)}function R(X,z){return function(fe){if(Array.isArray(fe))return fe}(X)||function(fe,q){var ne=null==fe?null:typeof Symbol<"u"&&fe[Symbol.iterator]||fe["@@iterator"];if(null!=ne){var N,Y,W,J,n=[],K=!0,se=!1;try{if(W=(ne=ne.call(fe)).next,0===q){if(Object(ne)!==ne)return;K=!1}else for(;!(K=(N=W.call(ne)).done)&&(n.push(N.value),n.length!==q);K=!0);}catch(De){se=!0,Y=De}finally{try{if(!K&&null!=ne.return&&(J=ne.return(),Object(J)!==J))return}finally{if(se)throw Y}}return n}}(X,z)||function(fe,q){if(fe){if("string"==typeof fe)return P(fe,q);var ne=Object.prototype.toString.call(fe).slice(8,-1);if("Object"===ne&&fe.constructor&&(ne=fe.constructor.name),"Map"===ne||"Set"===ne)return Array.from(fe);if("Arguments"===ne||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ne))return P(fe,q)}}(X,z)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(X,z){(null==z||z>X.length)&&(z=X.length);for(var fe=0,q=new Array(z);fe<z;fe++)q[fe]=X[fe];return q}function G(X,z){var fe=Object.keys(X);if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(X);z&&(q=q.filter(function(ne){return Object.getOwnPropertyDescriptor(X,ne).enumerable})),fe.push.apply(fe,q)}return fe}function Q(X,z,fe){return ne=function(N){if("object"!==k(N)||null===N)return N;var W=N[Symbol.toPrimitive];if(void 0!==W){var J=W.call(N,"string");if("object"!==k(J))return J;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(N)}(z),(z="symbol"===k(ne)?ne:String(ne))in X?Object.defineProperty(X,z,{value:fe,enumerable:!0,configurable:!0,writable:!0}):X[z]=fe,X;var ne}Object.defineProperty(D,"__esModule",{value:!0}),D.keys=D.keyCode=void 0,D.toKey=function(X,z){return Z[X]||(z?String.fromCharCode(X):String.fromCharCode(X).toLowerCase())},D.toKeyCode=function(X){return H[X]};var H=D.keyCode=function(X){for(var z=1;z<arguments.length;z++){var fe=null!=arguments[z]?arguments[z]:{};z%2?G(Object(fe),!0).forEach(function(q){Q(X,q,fe[q])}):Object.getOwnPropertyDescriptors?Object.defineProperties(X,Object.getOwnPropertyDescriptors(fe)):G(Object(fe)).forEach(function(q){Object.defineProperty(X,q,Object.getOwnPropertyDescriptor(fe,q))})}return X}({c:67,x:88,z:90,BACKSPACE_SAFARI:127,Enter:13,Meta_LEFT:91,Meta_RIGHT:92,Space:32},{Alt:18,AltGraph:18,ArrowDown:40,ArrowLeft:37,ArrowRight:39,ArrowUp:38,Backspace:8,CapsLock:20,Control:17,ContextMenu:93,Dead:221,Delete:46,End:35,Escape:27,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,Home:36,Insert:45,NumLock:144,PageDown:34,PageUp:33,Pause:19,PrintScreen:44,Process:229,Shift:16,ScrollLock:145,Tab:9,Unidentified:229}),Z=Object.entries(H).reduce(function(X,z){var fe=R(z,2),ne=fe[1];return X[ne]=void 0===X[ne]?fe[0]:X[ne],X},{});D.keys=Object.entries(H).reduce(function(X,z){var q=R(z,2)[0];return X[q]="Space"===q?" ":q,X},{})},2391:function(E,D,k){Object.defineProperty(D,"__esModule",{value:!0}),D.analyseMask=function(z,fe,q){var ne,N,Y,W,J,n,K=/(?:[?*+]|\{[0-9+*]+(?:,[0-9+*]*)?(?:\|[0-9+*]*)?\})|[^.?*+^${[]()|\\]+|./g,se=/\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\]+|./g,De=!1,Fe=new Q.default,_e=[],ke=[],be=!1;function Ve(Dt,qe,ze){var Ge=Dt.matches[(ze=void 0!==ze?ze:Dt.matches.length)-1];if(fe){if(0===qe.indexOf("[")||De&&/\\d|\\s|\\w|\\p/i.test(qe)||"."===qe){var dt=q.casing?"i":"";/\\p\{.*}/i.test(qe)&&(dt+="u"),Dt.matches.splice(ze++,0,{fn:new RegExp(qe,dt),static:!1,optionality:!1,newBlockMarker:void 0===Ge?"master":Ge.def!==qe,casing:null,def:qe,placeholder:"object"===H(q.placeholder)?q.placeholder[Fe.matches.length]:void 0,nativeDef:qe})}else De&&(qe=qe[qe.length-1]),qe.split("").forEach(function(wt,Hn){Ge=Dt.matches[ze-1],Dt.matches.splice(ze++,0,{fn:/[a-z]/i.test(q.staticDefinitionSymbol||wt)?new RegExp("["+(q.staticDefinitionSymbol||wt)+"]",q.casing?"i":""):null,static:!0,optionality:!1,newBlockMarker:void 0===Ge?"master":Ge.def!==wt&&!0!==Ge.static,casing:null,def:q.staticDefinitionSymbol||wt,placeholder:void 0!==q.staticDefinitionSymbol?wt:"object"===H(q.placeholder)?q.placeholder[Fe.matches.length]:void 0,nativeDef:(De?"'":"")+wt})});De=!1}else{var Dn=q.definitions&&q.definitions[qe]||q.usePrototypeDefinitions&&G.default.prototype.definitions[qe];Dn&&!De?Dt.matches.splice(ze++,0,{fn:Dn.validator?"string"==typeof Dn.validator?new RegExp(Dn.validator,q.casing?"i":""):new function(){this.test=Dn.validator}:/./,static:Dn.static||!1,optionality:Dn.optional||!1,defOptionality:Dn.optional||!1,newBlockMarker:void 0===Ge||Dn.optional?"master":Ge.def!==(Dn.definitionSymbol||qe),casing:Dn.casing,def:Dn.definitionSymbol||qe,placeholder:Dn.placeholder,nativeDef:qe,generated:Dn.generated}):(Dt.matches.splice(ze++,0,{fn:/[a-z]/i.test(q.staticDefinitionSymbol||qe)?new RegExp("["+(q.staticDefinitionSymbol||qe)+"]",q.casing?"i":""):null,static:!0,optionality:!1,newBlockMarker:void 0===Ge?"master":Ge.def!==qe&&!0!==Ge.static,casing:null,def:q.staticDefinitionSymbol||qe,placeholder:void 0!==q.staticDefinitionSymbol?qe:void 0,nativeDef:(De?"'":"")+qe}),De=!1)}}function Ie(){if(_e.length>0){if(Ve(W=_e[_e.length-1],N),W.isAlternator){J=_e.pop();for(var Dt=0;Dt<J.matches.length;Dt++)J.matches[Dt].isGroup&&(J.matches[Dt].isGroup=!1);_e.length>0?(W=_e[_e.length-1]).matches.push(J):Fe.matches.push(J)}}else Ve(Fe,N)}function Se(Dt){var qe=new Q.default(!0);return qe.openGroup=!1,qe.matches=Dt,qe}function de(){if((Y=_e.pop()).openGroup=!1,void 0!==Y)if(_e.length>0){if((W=_e[_e.length-1]).matches.push(Y),W.isAlternator){J=_e.pop();for(var Dt=0;Dt<J.matches.length;Dt++)J.matches[Dt].isGroup=!1,J.matches[Dt].alternatorGroup=!1;_e.length>0?(W=_e[_e.length-1]).matches.push(J):Fe.matches.push(J)}}else Fe.matches.push(Y);else Ie()}function le(Dt){var qe=Dt.pop();return qe.isQuantifier&&(qe=Se([Dt.pop(),qe])),qe}for(fe&&(q.optionalmarker[0]=void 0,q.optionalmarker[1]=void 0);ne=fe?se.exec(z):K.exec(z);){if(N=ne[0],fe){switch(N.charAt(0)){case"?":N="{0,1}";break;case"+":case"*":N="{"+N+"}";break;case"|":if(0===_e.length){var xe=Se(Fe.matches);xe.openGroup=!0,_e.push(xe),Fe.matches=[],be=!0}}switch(N){case"\\d":N="[0-9]";break;case"\\p":N+=se.exec(z)[0],N+=se.exec(z)[0]}}if(De)Ie();else switch(N.charAt(0)){case"$":case"^":fe||Ie();break;case q.escapeChar:De=!0,fe&&Ie();break;case q.optionalmarker[1]:case q.groupmarker[1]:de();break;case q.optionalmarker[0]:_e.push(new Q.default(!1,!0));break;case q.groupmarker[0]:_e.push(new Q.default(!0));break;case q.quantifiermarker[0]:var We=new Q.default(!1,!1,!0),st=(N=N.replace(/[{}?]/g,"")).split("|"),ut=st[0].split(","),Ae=isNaN(ut[0])?ut[0]:parseInt(ut[0]),ye=1===ut.length?Ae:isNaN(ut[1])?ut[1]:parseInt(ut[1]),Re=isNaN(st[1])?st[1]:parseInt(st[1]);"*"!==Ae&&"+"!==Ae||(Ae="*"===ye?0:1),We.quantifier={min:Ae,max:ye,jit:Re};var Qe=_e.length>0?_e[_e.length-1].matches:Fe.matches;(ne=Qe.pop()).isGroup||(ne=Se([ne])),Qe.push(ne),Qe.push(We);break;case q.alternatormarker:if(_e.length>0){var vt=(W=_e[_e.length-1]).matches[W.matches.length-1];n=W.openGroup&&(void 0===vt.matches||!1===vt.isGroup&&!1===vt.isAlternator)?_e.pop():le(W.matches)}else n=le(Fe.matches);if(n.isAlternator)_e.push(n);else if(n.alternatorGroup?(J=_e.pop(),n.alternatorGroup=!1):J=new Q.default(!1,!1,!1,!0),J.matches.push(n),_e.push(J),n.openGroup){n.openGroup=!1;var Nt=new Q.default(!0);Nt.alternatorGroup=!0,_e.push(Nt)}break;default:Ie()}}for(be&&de();_e.length>0;)Y=_e.pop(),Fe.matches.push(Y);return Fe.matches.length>0&&(function Dt(qe){qe&&qe.matches&&qe.matches.forEach(function(ze,Ge){var dt=qe.matches[Ge+1];(void 0===dt||void 0===dt.matches||!1===dt.isQuantifier)&&ze&&ze.isGroup&&(ze.isGroup=!1,fe||(Ve(ze,q.groupmarker[0],0),!0!==ze.openGroup&&Ve(ze,q.groupmarker[1]))),Dt(ze)})}(Fe),ke.push(Fe)),(q.numericInput||q.isRTL)&&function Dt(qe){for(var ze in qe.matches=qe.matches.reverse(),qe.matches)if(Object.prototype.hasOwnProperty.call(qe.matches,ze)){var Ge=parseInt(ze);if(qe.matches[ze].isQuantifier&&qe.matches[Ge+1]&&qe.matches[Ge+1].isGroup){var dt=qe.matches[ze];qe.matches.splice(ze,1),qe.matches.splice(Ge+1,0,dt)}qe.matches[ze]=void 0!==qe.matches[ze].matches?Dt(qe.matches[ze]):((Dn=qe.matches[ze])===q.optionalmarker[0]?Dn=q.optionalmarker[1]:Dn===q.optionalmarker[1]?Dn=q.optionalmarker[0]:Dn===q.groupmarker[0]?Dn=q.groupmarker[1]:Dn===q.groupmarker[1]&&(Dn=q.groupmarker[0]),Dn)}var Dn;return qe}(ke[0]),ke},D.generateMaskSet=function(z,fe){var q;function N(W,J,n){var K,se,De=!1;return null!==W&&""!==W||((De=null!==n.regex)?W=(W=n.regex).replace(/^(\^)(.*)(\$)$/,"$2"):(De=!0,W=".*")),1===W.length&&!1===n.greedy&&0!==n.repeat&&(n.placeholder=""),W=function ne(W,J){var n=J.repeat,K=J.groupmarker,se=J.quantifiermarker,De=J.keepStatic;if(n>0||"*"===n||"+"===n){var Fe="*"===n?0:"+"===n?1:n;if(Fe!=n)W=K[0]+W+K[1]+se[0]+Fe+","+n+se[1];else for(var _e=W,ke=1;ke<Fe;ke++)W+=_e}if(!0===De){var be=W.match(new RegExp("(.)\\[([^\\]]*)\\]","g"));be&&be.forEach(function(Ve,Ie){var xe,Se=function(st){if(Array.isArray(st))return st}(xe=Ve.split("["))||function(st){var Ae=null==st?null:typeof Symbol<"u"&&st[Symbol.iterator]||st["@@iterator"];if(null!=Ae){var ye,Re,Qe,vt,Nt=[],Dt=!0,qe=!1;try{for(Qe=(Ae=Ae.call(st)).next;!(Dt=(ye=Qe.call(Ae)).done)&&(Nt.push(ye.value),2!==Nt.length);Dt=!0);}catch(ze){qe=!0,Re=ze}finally{try{if(!Dt&&null!=Ae.return&&(vt=Ae.return(),Object(vt)!==vt))return}finally{if(qe)throw Re}}return Nt}}(xe)||function(st){if(st){if("string"==typeof st)return Z(st,2);var Ae=Object.prototype.toString.call(st).slice(8,-1);if("Object"===Ae&&st.constructor&&(Ae=st.constructor.name),"Map"===Ae||"Set"===Ae)return Array.from(st);if("Arguments"===Ae||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ae))return Z(st,2)}}(xe)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),de=Se[0],le=Se[1];le=le.replace("]",""),W=W.replace(new RegExp("".concat((0,P.default)(de),"\\[").concat((0,P.default)(le),"\\]")),de.charAt(0)===le.charAt(0)?"(".concat(de,"|").concat(de).concat(le,")"):"".concat(de,"[").concat(le,"]"))})}return W}(W,n),se=De?"regex_"+n.regex:n.numericInput?W.split("").reverse().join(""):W,null!==n.keepStatic&&(se="ks_"+n.keepStatic+se),"object"===H(n.placeholder)&&(se="ph_"+JSON.stringify(n.placeholder)+se),void 0===G.default.prototype.masksCache[se]||!0===fe?(K={mask:W,maskToken:G.default.prototype.analyseMask(W,De,n),validPositions:[],_buffer:void 0,buffer:void 0,tests:{},excludes:{},metadata:J,maskLength:void 0,jitOffset:{}},!0!==fe&&(G.default.prototype.masksCache[se]=K,K=R.default.extend(!0,{},G.default.prototype.masksCache[se]))):K=R.default.extend(!0,{},G.default.prototype.masksCache[se]),K}if("function"==typeof z.mask&&(z.mask=z.mask(z)),Array.isArray(z.mask)){if(z.mask.length>1){null===z.keepStatic&&(z.keepStatic=!0);var Y=z.groupmarker[0];return(z.isRTL?z.mask.reverse():z.mask).forEach(function(W){Y.length>1&&(Y+=z.alternatormarker),Y+=void 0!==W.mask&&"function"!=typeof W.mask?W.mask:W}),N(Y+=z.groupmarker[1],z.mask,z)}z.mask=z.mask.pop()}return q=N(z.mask&&void 0!==z.mask.mask&&"function"!=typeof z.mask.mask?z.mask.mask:z.mask,z.mask,z),null===z.keepStatic&&(z.keepStatic=!1),q};var R=X(k(4963)),P=X(k(7184)),G=X(k(2394)),Q=X(k(9695));function H(z){return(H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(fe){return typeof fe}:function(fe){return fe&&"function"==typeof Symbol&&fe.constructor===Symbol&&fe!==Symbol.prototype?"symbol":typeof fe})(z)}function Z(z,fe){(null==fe||fe>z.length)&&(fe=z.length);for(var q=0,ne=new Array(fe);q<fe;q++)ne[q]=z[q];return ne}function X(z){return z&&z.__esModule?z:{default:z}}},157:function(E,D,k){Object.defineProperty(D,"__esModule",{value:!0}),D.mask=function(){var X=this,z=this.opts,fe=this.el,q=this.dependencyLib;G.EventRuler.off(fe);var ne=function(W,J){var n=W.getAttribute("type"),K="input"===W.tagName.toLowerCase()&&J.supportsInputType.includes(n)||W.isContentEditable||"textarea"===W.tagName.toLowerCase();if(!K)if("input"===W.tagName.toLowerCase()){var se=document.createElement("input");se.setAttribute("type",n),K="text"===se.type,se=null}else K="partial";return!1!==K?function(De){var Fe,_e;function ke(){return this.inputmask?this.inputmask.opts.autoUnmask?this.inputmask.unmaskedvalue():-1!==H.getLastValidPosition.call(X)||!0!==J.nullable?(this.inputmask.shadowRoot||this.ownerDocument).activeElement===this&&J.clearMaskOnLostFocus?(X.isRTL?Q.clearOptionalTail.call(X,H.getBuffer.call(X).slice()).reverse():Q.clearOptionalTail.call(X,H.getBuffer.call(X).slice())).join(""):Fe.call(this):"":Fe.call(this)}function be(Ie){_e.call(this,Ie),this.inputmask&&(0,Q.applyInputValue)(this,Ie)}if(!De.inputmask.__valueGet){if(!0!==J.noValuePatching){if(Object.getOwnPropertyDescriptor){var Ve=Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(De),"value"):void 0;Ve&&Ve.get&&Ve.set?(Fe=Ve.get,_e=Ve.set,Object.defineProperty(De,"value",{get:ke,set:be,configurable:!0})):"input"!==De.tagName.toLowerCase()&&(Fe=function(){return this.textContent},_e=function(Ie){this.textContent=Ie},Object.defineProperty(De,"value",{get:ke,set:be,configurable:!0}))}else document.__lookupGetter__&&De.__lookupGetter__("value")&&(Fe=De.__lookupGetter__("value"),_e=De.__lookupSetter__("value"),De.__defineGetter__("value",ke),De.__defineSetter__("value",be));De.inputmask.__valueGet=Fe,De.inputmask.__valueSet=_e}De.inputmask._valueGet=function(Ie){return X.isRTL&&!0!==Ie?Fe.call(this.el).split("").reverse().join(""):Fe.call(this.el)},De.inputmask._valueSet=function(Ie,Se){_e.call(this.el,null==Ie?"":!0!==Se&&X.isRTL?Ie.split("").reverse().join(""):Ie)},void 0===Fe&&(Fe=function(){return this.value},_e=function(Ie){this.value=Ie},function(Ie){if(q.valHooks&&(void 0===q.valHooks[Ie]||!0!==q.valHooks[Ie].inputmaskpatch)){var Se=q.valHooks[Ie]&&q.valHooks[Ie].get?q.valHooks[Ie].get:function(le){return le.value},de=q.valHooks[Ie]&&q.valHooks[Ie].set?q.valHooks[Ie].set:function(le,xe){return le.value=xe,le};q.valHooks[Ie]={get:function(le){if(le.inputmask){if(le.inputmask.opts.autoUnmask)return le.inputmask.unmaskedvalue();var xe=Se(le);return-1!==H.getLastValidPosition.call(X,void 0,void 0,le.inputmask.maskset.validPositions)||!0!==J.nullable?xe:""}return Se(le)},set:function(le,xe){var We=de(le,xe);return le.inputmask&&(0,Q.applyInputValue)(le,xe),We},inputmaskpatch:!0}}}(De.type),G.EventRuler.on(De,"mouseenter",function(){var Se=this,de=Se.inputmask._valueGet(!0);de!=(Se.inputmask.isRTL?H.getBuffer.call(Se.inputmask).slice().reverse():H.getBuffer.call(Se.inputmask)).join("")&&(0,Q.applyInputValue)(Se,de)}))}}(W):W.inputmask=void 0,K}(fe,z);if(!1!==ne){X.originalPlaceholder=fe.placeholder,X.maxLength=void 0!==fe?fe.maxLength:void 0,-1===X.maxLength&&(X.maxLength=void 0),"inputMode"in fe&&null===fe.getAttribute("inputmode")&&(fe.inputMode=z.inputmode,fe.setAttribute("inputmode",z.inputmode)),!0===ne&&(z.showMaskOnFocus=z.showMaskOnFocus&&-1===["cc-number","cc-exp"].indexOf(fe.autocomplete),R.iphone&&(z.insertModeVisual=!1,fe.setAttribute("autocorrect","off")),G.EventRuler.on(fe,"submit",P.EventHandlers.submitEvent),G.EventRuler.on(fe,"reset",P.EventHandlers.resetEvent),G.EventRuler.on(fe,"blur",P.EventHandlers.blurEvent),G.EventRuler.on(fe,"focus",P.EventHandlers.focusEvent),G.EventRuler.on(fe,"invalid",P.EventHandlers.invalidEvent),G.EventRuler.on(fe,"click",P.EventHandlers.clickEvent),G.EventRuler.on(fe,"mouseleave",P.EventHandlers.mouseleaveEvent),G.EventRuler.on(fe,"mouseenter",P.EventHandlers.mouseenterEvent),G.EventRuler.on(fe,"paste",P.EventHandlers.pasteEvent),G.EventRuler.on(fe,"cut",P.EventHandlers.cutEvent),G.EventRuler.on(fe,"complete",z.oncomplete),G.EventRuler.on(fe,"incomplete",z.onincomplete),G.EventRuler.on(fe,"cleared",z.oncleared),!0!==z.inputEventOnly&&G.EventRuler.on(fe,"keydown",P.EventHandlers.keyEvent),(R.mobile||z.inputEventOnly)&&fe.removeAttribute("maxLength"),G.EventRuler.on(fe,"input",P.EventHandlers.inputFallBackEvent)),G.EventRuler.on(fe,"setvalue",P.EventHandlers.setValueEvent),void 0===X.applyMaskHook||X.applyMaskHook(),H.getBufferTemplate.call(X).join(""),X.undoValue=X._valueGet(!0);var N=(fe.inputmask.shadowRoot||fe.ownerDocument).activeElement;if(""!==fe.inputmask._valueGet(!0)||!1===z.clearMaskOnLostFocus||N===fe){(0,Q.applyInputValue)(fe,fe.inputmask._valueGet(!0),z);var Y=H.getBuffer.call(X).slice();!1===Z.isComplete.call(X,Y)&&z.clearIncomplete&&H.resetMaskSet.call(X,!1),z.clearMaskOnLostFocus&&N!==fe&&(-1===H.getLastValidPosition.call(X)?Y=[]:Q.clearOptionalTail.call(X,Y)),(!1===z.clearMaskOnLostFocus||z.showMaskOnFocus&&N===fe||""!==fe.inputmask._valueGet(!0))&&(0,Q.writeBuffer)(fe,Y),N===fe&&H.caret.call(X,fe,H.seekNext.call(X,H.getLastValidPosition.call(X)))}}};var R=k(9845),P=k(6030),G=k(9716),Q=k(7760),H=k(8711),Z=k(7215)},9695:function(E,D){Object.defineProperty(D,"__esModule",{value:!0}),D.default=function(k,R,P,G){this.matches=[],this.openGroup=k||!1,this.alternatorGroup=!1,this.isGroup=k||!1,this.isOptional=R||!1,this.isQuantifier=P||!1,this.isAlternator=G||!1,this.quantifier={min:1,max:1}}},3194:function(){Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(E,D){if(null==this)throw new TypeError('"this" is null or not defined');var k=Object(this),R=k.length>>>0;if(0===R)return!1;for(var P=0|D,G=Math.max(P>=0?P:R-Math.abs(P),0);G<R;){if(k[G]===E)return!0;G++}return!1}})},9302:function(){var E=Function.bind.call(Function.call,Array.prototype.reduce),D=Function.bind.call(Function.call,Object.prototype.propertyIsEnumerable),k=Function.bind.call(Function.call,Array.prototype.concat),R=Object.keys;Object.entries||(Object.entries=function(P){return E(R(P),function(G,Q){return k(G,"string"==typeof Q&&D(P,Q)?[[Q,P[Q]]]:[])},[])})},7149:function(){function E(D){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(k){return typeof k}:function(k){return k&&"function"==typeof Symbol&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k})(D)}"function"!=typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===E("test".__proto__)?function(D){return D.__proto__}:function(D){return D.constructor.prototype})},4013:function(){String.prototype.includes||(String.prototype.includes=function(E,D){return"number"!=typeof D&&(D=0),!(D+E.length>this.length)&&-1!==this.indexOf(E,D)})},8711:function(E,D,k){Object.defineProperty(D,"__esModule",{value:!0}),D.caret=function(q,ne,N,Y,W){var J,n=this,K=this.opts;if(void 0===ne)return"selectionStart"in q&&"selectionEnd"in q?(ne=q.selectionStart,N=q.selectionEnd):P.default.getSelection?(J=P.default.getSelection().getRangeAt(0)).commonAncestorContainer.parentNode!==q&&J.commonAncestorContainer!==q||(ne=J.startOffset,N=J.endOffset):document.selection&&document.selection.createRange&&(N=(ne=0-(J=document.selection.createRange()).duplicate().moveStart("character",-q.inputmask._valueGet().length))+J.text.length),{begin:Y?ne:fe.call(n,ne),end:Y?N:fe.call(n,N)};if(Array.isArray(ne)&&(N=n.isRTL?ne[0]:ne[1],ne=n.isRTL?ne[1]:ne[0]),void 0!==ne.begin&&(N=n.isRTL?ne.begin:ne.end,ne=n.isRTL?ne.end:ne.begin),"number"==typeof ne){ne=Y?ne:fe.call(n,ne),N="number"==typeof(N=Y?N:fe.call(n,N))?N:ne;var se=parseInt(((q.ownerDocument.defaultView||P.default).getComputedStyle?(q.ownerDocument.defaultView||P.default).getComputedStyle(q,null):q.currentStyle).fontSize)*N;if(q.scrollLeft=se>q.scrollWidth?se:0,q.inputmask.caretPos={begin:ne,end:N},K.insertModeVisual&&!1===K.insertMode&&ne===N&&(W||N++),q===(q.inputmask.shadowRoot||q.ownerDocument).activeElement){if("setSelectionRange"in q)q.setSelectionRange(ne,N);else if(P.default.getSelection){if(J=document.createRange(),null==q.firstChild){var De=document.createTextNode("");q.appendChild(De)}J.setStart(q.firstChild,ne<q.inputmask._valueGet().length?ne:q.inputmask._valueGet().length),J.setEnd(q.firstChild,N<q.inputmask._valueGet().length?N:q.inputmask._valueGet().length),J.collapse(!0);var Fe=P.default.getSelection();Fe.removeAllRanges(),Fe.addRange(J)}else q.createTextRange&&((J=q.createTextRange()).collapse(!0),J.moveEnd("character",N),J.moveStart("character",ne),J.select());void 0===q.inputmask.caretHook||q.inputmask.caretHook.call(n,{begin:ne,end:N})}}},D.determineLastRequiredPosition=function(q){var ne,N,Y=this,W=Y.maskset,J=Y.dependencyLib,n=Z.call(Y),K={},se=W.validPositions[n],De=Q.getMaskTemplate.call(Y,!0,Z.call(Y),!0,!0),Fe=De.length,_e=void 0!==se?se.locator.slice():void 0;for(ne=n+1;ne<De.length;ne++)_e=(N=Q.getTestTemplate.call(Y,ne,_e,ne-1)).locator.slice(),K[ne]=J.extend(!0,{},N);var ke=se&&void 0!==se.alternation?se.locator[se.alternation]:void 0;for(ne=Fe-1;ne>n&&((N=K[ne]).match.optionality||N.match.optionalQuantifier&&N.match.newBlockMarker||ke&&(ke!==K[ne].locator[se.alternation]&&!0!==N.match.static||!0===N.match.static&&N.locator[se.alternation]&&G.checkAlternationMatch.call(Y,N.locator[se.alternation].toString().split(","),ke.toString().split(","))&&""!==Q.getTests.call(Y,ne)[0].def))&&De[ne]===Q.getPlaceholder.call(Y,ne,N.match);ne--)Fe--;return q?{l:Fe,def:K[Fe]?K[Fe].match:void 0}:Fe},D.determineNewCaretPosition=function(q,ne,N){var Y,W,J,n=this,K=n.maskset,se=n.opts;if(ne&&(n.isRTL?q.end=q.begin:q.begin=q.end),q.begin===q.end){switch(N=N||se.positionCaretOnClick){case"none":break;case"select":q={begin:0,end:H.call(n).length};break;case"ignore":q.end=q.begin=z.call(n,Z.call(n));break;case"radixFocus":if(n.clicked>1&&0===K.validPositions.length)break;if(function(Ve){if(""!==se.radixPoint&&0!==se.digits){var Ie=K.validPositions;if(void 0===Ie[Ve]||void 0===Ie[Ve].input){if(Ve<z.call(n,-1))return!0;var Se=H.call(n).indexOf(se.radixPoint);if(-1!==Se){for(var de=0,le=Ie.length;de<le;de++)if(Ie[de]&&Se<de&&Ie[de].input!==Q.getPlaceholder.call(n,de))return!1;return!0}}}return!1}(q.begin)){var De=H.call(n).join("").indexOf(se.radixPoint);q.end=q.begin=se.numericInput?z.call(n,De):De;break}default:if(W=Z.call(n,Y=q.begin,!0),Y<=(J=z.call(n,-1!==W||X.call(n,0)?W:-1)))q.end=q.begin=X.call(n,Y,!1,!0)?Y:z.call(n,Y);else{var Fe=K.validPositions[W],_e=Q.getTestTemplate.call(n,J,Fe?Fe.match.locator:void 0,Fe),ke=Q.getPlaceholder.call(n,J,_e.match);if(""!==ke&&H.call(n)[J]!==ke&&!0!==_e.match.optionalQuantifier&&!0!==_e.match.newBlockMarker||!X.call(n,J,se.keepStatic,!0)&&_e.match.def===ke){var be=z.call(n,J);(Y>=be||Y===J)&&(J=be)}q.end=q.begin=J}}return q}},D.getBuffer=H,D.getBufferTemplate=function(){var q=this.maskset;return void 0===q._buffer&&(q._buffer=Q.getMaskTemplate.call(this,!1,1),void 0===q.buffer&&(q.buffer=q._buffer.slice())),q._buffer},D.getLastValidPosition=Z,D.isMask=X,D.resetMaskSet=function(q){var ne=this.maskset;ne.buffer=void 0,!0!==q&&(ne.validPositions=[],ne.p=0),!1===q&&(ne.tests={},ne.jitOffset={})},D.seekNext=z,D.seekPrevious=function(q,ne){var N=this,Y=q-1;if(q<=0)return 0;for(;Y>0&&(!0===ne&&(!0!==Q.getTest.call(N,Y).match.newBlockMarker||!X.call(N,Y,void 0,!0))||!0!==ne&&!X.call(N,Y,void 0,!0));)Y--;return Y},D.translatePosition=fe;var R,P=(R=k(9380))&&R.__esModule?R:{default:R},G=k(7215),Q=k(4713);function H(q){var N=this.maskset;return void 0!==N.buffer&&!0!==q||(N.buffer=Q.getMaskTemplate.call(this,!0,Z.call(this),!0),void 0===N._buffer&&(N._buffer=N.buffer.slice())),N.buffer}function Z(q,ne,N){var W=-1,J=-1,n=N||this.maskset.validPositions;void 0===q&&(q=-1);for(var K=0,se=n.length;K<se;K++)n[K]&&(ne||!0!==n[K].generatedInput)&&(K<=q&&(W=K),K>=q&&(J=K));return-1===W||W===q?J:-1===J||q-W<J-q?W:J}function X(q,ne,N){var Y=this,W=this.maskset,J=Q.getTestTemplate.call(Y,q).match;if(""===J.def&&(J=Q.getTest.call(Y,q).match),!0!==J.static)return J.fn;if(!0===N&&void 0!==W.validPositions[q]&&!0!==W.validPositions[q].generatedInput)return!0;if(!0!==ne&&q>-1){if(N){var n=Q.getTests.call(Y,q);return n.length>1+(""===n[n.length-1].match.def?1:0)}var K=Q.determineTestTemplate.call(Y,q,Q.getTests.call(Y,q)),se=Q.getPlaceholder.call(Y,q,K.match);return K.match.def!==se}return!1}function z(q,ne,N){var Y=this;void 0===N&&(N=!0);for(var W=q+1;""!==Q.getTest.call(Y,W).match.def&&(!0===ne&&(!0!==Q.getTest.call(Y,W).match.newBlockMarker||!X.call(Y,W,void 0,!0))||!0!==ne&&!X.call(Y,W,void 0,N));)W++;return W}function fe(q){var ne=this.opts;return!this.isRTL||"number"!=typeof q||ne.greedy&&""===ne.placeholder||!this.el||(q=this._valueGet().length-q)<0&&(q=0),q}},4713:function(E,D,k){Object.defineProperty(D,"__esModule",{value:!0}),D.determineTestTemplate=fe,D.getDecisionTaker=Z,D.getMaskTemplate=function(Y,W,J,n,K){var se=this,De=this.opts,Fe=this.maskset,_e=De.greedy;K&&De.greedy&&(De.greedy=!1,se.maskset.tests={}),W=W||0;var ke,be,Ve,Ie,Se=[],de=0;do{if(!0===Y&&Fe.validPositions[de])be=(Ve=K&&Fe.validPositions[de].match.optionality&&void 0===Fe.validPositions[de+1]&&(!0===Fe.validPositions[de].generatedInput||Fe.validPositions[de].input==De.skipOptionalPartCharacter&&de>0)?fe.call(se,de,N.call(se,de,ke,de-1)):Fe.validPositions[de]).match,ke=Ve.locator.slice(),Se.push(!0===J?Ve.input:!1===J?be.nativeDef:X.call(se,de,be));else{be=(Ve=z.call(se,de,ke,de-1)).match,ke=Ve.locator.slice();var le=!0!==n&&(!1!==De.jitMasking?De.jitMasking:be.jit);(Ie=(Ie||Fe.validPositions[de-1])&&be.static&&be.def!==De.groupSeparator&&null===be.fn)||!1===le||void 0===le||"number"==typeof le&&isFinite(le)&&le>de?Se.push(!1===J?be.nativeDef:X.call(se,Se.length,be)):Ie=!1}de++}while(!0!==be.static||""!==be.def||W>de);return""===Se[Se.length-1]&&Se.pop(),!1===J&&void 0!==Fe.maskLength||(Fe.maskLength=de-1),De.greedy=_e,Se},D.getPlaceholder=X,D.getTest=q,D.getTestTemplate=z,D.getTests=N,D.isSubsetOf=ne;var R,P=(R=k(2394))&&R.__esModule?R:{default:R},G=k(8711);function Q(Y){return(Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(W){return typeof W}:function(W){return W&&"function"==typeof Symbol&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W})(Y)}function H(Y,W){var J=(null!=Y.alternation?Y.mloc[Z(Y)]:Y.locator).join("");if(""!==J)for(J=J.split(":")[0];J.length<W;)J+="0";return J}function Z(Y){var W=Y.locator[Y.alternation];return"string"==typeof W&&W.length>0&&(W=W.split(",")[0]),void 0!==W?W.toString():""}function X(Y,W,J){var n=this,K=this.opts,se=this.maskset;if(void 0!==(W=W||q.call(n,Y).match).placeholder||!0===J){if(""!==W.placeholder&&!0===W.static&&!0!==W.generated){var De=G.getLastValidPosition.call(n,Y),Fe=G.seekNext.call(n,De);return(J?Y<=Fe:Y<Fe)?K.staticDefinitionSymbol&&W.static?W.nativeDef:W.def:"function"==typeof W.placeholder?W.placeholder(K):W.placeholder}return"function"==typeof W.placeholder?W.placeholder(K):W.placeholder}if(!0===W.static){if(Y>-1&&void 0===se.validPositions[Y]){var _e,ke=N.call(n,Y),be=[];if("string"==typeof K.placeholder&&ke.length>1+(""===ke[ke.length-1].match.def?1:0))for(var Ve=0;Ve<ke.length;Ve++)if(""!==ke[Ve].match.def&&!0!==ke[Ve].match.optionality&&!0!==ke[Ve].match.optionalQuantifier&&(!0===ke[Ve].match.static||void 0===_e||!1!==ke[Ve].match.fn.test(_e.match.def,se,Y,!0,K))&&(be.push(ke[Ve]),!0===ke[Ve].match.static&&(_e=ke[Ve]),be.length>1&&/[0-9a-bA-Z]/.test(be[0].match.def)))return K.placeholder.charAt(Y%K.placeholder.length)}return W.def}return"object"===Q(K.placeholder)?W.def:K.placeholder.charAt(Y%K.placeholder.length)}function z(Y,W,J){return this.maskset.validPositions[Y]||fe.call(this,Y,N.call(this,Y,W&&W.slice(),J))}function fe(Y,W){var Ie,Se,de,le,se,De,Fe,J=this.opts,n=0,K=(Ie=Y,de=0,le=!1,(Se=W).forEach(function(xe){xe.match.optionality&&(0!==de&&de!==xe.match.optionality&&(le=!0),(0===de||de>xe.match.optionality)&&(de=xe.match.optionality))}),de&&(0==Ie||1==Se.length?de=0:le||(de=0)),de),_e=H(q.call(this,Y=Y>0?Y-1:0));J.greedy&&W.length>1&&""===W[W.length-1].match.def&&(n=1);for(var ke=0;ke<W.length-n;ke++){var be=W[ke];se=H(be,_e.length);var Ve=Math.abs(se-_e);(!0!==be.unMatchedAlternationStopped||W.filter(function(Ie){return!0!==Ie.unMatchedAlternationStopped}).length<=1)&&(void 0===De||""!==se&&Ve<De||Fe&&!J.greedy&&Fe.match.optionality&&Fe.match.optionality-K>0&&"master"===Fe.match.newBlockMarker&&(!be.match.optionality||be.match.optionality-K<1||!be.match.newBlockMarker)||Fe&&!J.greedy&&Fe.match.optionalQuantifier&&!be.match.optionalQuantifier)&&(De=Ve,Fe=be)}return Fe}function q(Y,W){var J=this.maskset;return J.validPositions[Y]?J.validPositions[Y]:(W||N.call(this,Y))[0]}function ne(Y,W,J){function n(K){for(var se,De=[],Fe=-1,_e=0,ke=K.length;_e<ke;_e++)if("-"===K.charAt(_e))for(se=K.charCodeAt(_e+1);++Fe<se;)De.push(String.fromCharCode(Fe));else Fe=K.charCodeAt(_e),De.push(K.charAt(_e));return De.join("")}return Y.match.def===W.match.nativeDef||!(!(J.regex||Y.match.fn instanceof RegExp&&W.match.fn instanceof RegExp)||!0===Y.match.static||!0===W.match.static)&&("."===W.match.fn.source||-1!==n(W.match.fn.source.replace(/[[\]/]/g,"")).indexOf(n(Y.match.fn.source.replace(/[[\]/]/g,""))))}function N(Y,W,J){var n,K,Re,Qe,vt,Nt,se=this,De=this.dependencyLib,Fe=this.maskset,_e=this.opts,ke=this.el,be=Fe.maskToken,Ve=W?J:0,Ie=W?W.slice():[0],Se=[],de=!1,le=W?W.join(""):"",xe=!1;function We(Re,Qe,vt,Nt){function Dt(Ge,dt,Dn){function wt(Ot,Vt){var Fn=0===Vt.matches.indexOf(Ot);return Fn||Vt.matches.every(function(kn,$n){return!0===kn.isQuantifier?Fn=wt(Ot,Vt.matches[$n-1]):Object.prototype.hasOwnProperty.call(kn,"matches")&&(Fn=wt(Ot,kn)),!Fn}),Fn}function Hn(Ot,Vt,Fn){var kn,$n;if((Fe.tests[Ot]||Fe.validPositions[Ot])&&(Fe.validPositions[Ot]?[Fe.validPositions[Ot]]:Fe.tests[Ot]).every(function(Ki,Qr){if(Ki.mloc[Vt])return kn=Ki,!1;var Cr=void 0!==Fn?Fn:Ki.alternation,wr=void 0!==Ki.locator[Cr]?Ki.locator[Cr].toString().indexOf(Vt):-1;return(void 0===$n||wr<$n)&&-1!==wr&&(kn=Ki,$n=wr),!0}),kn){var Ni=kn.mloc[Vt]||kn.mloc[kn.locator[kn.alternation]]||kn.locator;return-1!==Ni[Ni.length-1].toString().indexOf(":")&&Ni.pop(),Ni.slice((void 0!==Fn?Fn:kn.alternation)+1)}return void 0!==Fn?Hn(Ot,Vt):void 0}function Gt(Ot,Vt){return!0===Ot.match.static&&!0!==Vt.match.static&&Vt.match.fn.test(Ot.match.def,Fe,Y,!1,_e,!1)}function An(Ot,Vt){var Fn=Ot.alternation,kn=void 0===Vt||Fn<=Vt.alternation&&-1===Ot.locator[Fn].toString().indexOf(Vt.locator[Fn]);if(!kn&&Fn>Vt.alternation)for(var $n=0;$n<Fn;$n++)if(Ot.locator[$n]!==Vt.locator[$n]){Fn=$n,kn=!0;break}return!!kn&&function(Ii){Ot.mloc=Ot.mloc||{};var Ni=Ot.locator[Ii];if(void 0!==Ni){if("string"==typeof Ni&&(Ni=Ni.split(",")[0]),void 0===Ot.mloc[Ni]&&(Ot.mloc[Ni]=Ot.locator.slice(),Ot.mloc[Ni].push(":".concat(Ot.alternation))),void 0!==Vt){for(var Ki in Vt.mloc)"string"==typeof Ki&&(Ki=parseInt(Ki.split(",")[0])),Ot.mloc[Ki+0]=Vt.mloc[Ki];Ot.locator[Ii]=Object.keys(Ot.mloc).join(",")}return Ot.alternation>Ii&&(Ot.alternation=Ii),!0}return Ot.alternation=void 0,!1}(Fn)}function Kt(Ot,Vt){if(Ot.locator.length!==Vt.locator.length)return!1;for(var Fn=Ot.alternation+1;Fn<Ot.locator.length;Fn++)if(Ot.locator[Fn]!==Vt.locator[Fn])return!1;return!0}if(Ve>Y+_e._maxTestPos)throw new Error("Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. ".concat(Fe.mask));if(Ve===Y&&void 0===Ge.matches){if(Se.push({match:Ge,locator:dt.reverse(),cd:le,mloc:{}}),!Ge.optionality||void 0!==Dn||!(_e.definitions&&_e.definitions[Ge.nativeDef]&&_e.definitions[Ge.nativeDef].optional||P.default.prototype.definitions[Ge.nativeDef]&&P.default.prototype.definitions[Ge.nativeDef].optional))return!0;de=!0,Ve=Y}else if(void 0!==Ge.matches){if(Ge.isGroup&&Dn!==Ge)return function(){if(Ge=Dt(Re.matches[Re.matches.indexOf(Ge)+1],dt,Dn))return!0}();if(Ge.isOptional)return function(){var Ot=Ge,Vt=Se.length;if(Ge=We(Ge,Qe,dt,Dn),Se.length>0){if(Se.forEach(function(Fn,kn){kn>=Vt&&(Fn.match.optionality=Fn.match.optionality?Fn.match.optionality+1:1)}),n=Se[Se.length-1].match,void 0!==Dn||!wt(n,Ot))return Ge;de=!0,Ve=Y}}();if(Ge.isAlternator)return function(){function Ot(ol){for(var Xa,ya=ol.matches[0].matches?ol.matches[0].matches.length:1,Dr=0;Dr<ol.matches.length&&ya===(Xa=ol.matches[Dr].matches?ol.matches[Dr].matches.length:1);Dr++);return ya!==Xa}se.hasAlternator=!0;var Vt,Fn=Ge,kn=[],$n=Se.slice(),Ii=dt.length,Ni=Qe.length>0?Qe.shift():-1;if(-1===Ni||"string"==typeof Ni){var Ki,Qr=Ve,Cr=Qe.slice(),wr=[];if("string"==typeof Ni)wr=Ni.split(",");else for(Ki=0;Ki<Fn.matches.length;Ki++)wr.push(Ki.toString());if(void 0!==Fe.excludes[Y]){for(var vs=wr.slice(),rs=0,ur=Fe.excludes[Y].length;rs<ur;rs++){var Ns=Fe.excludes[Y][rs].toString().split(":");dt.length==Ns[1]&&wr.splice(wr.indexOf(Ns[0]),1)}0===wr.length&&(delete Fe.excludes[Y],wr=vs)}(!0===_e.keepStatic||isFinite(parseInt(_e.keepStatic))&&Qr>=_e.keepStatic)&&(wr=wr.slice(0,1));for(var to=0;to<wr.length;to++){Ki=parseInt(wr[to]),Se=[],Qe="string"==typeof Ni&&Hn(Ve,Ki,Ii)||Cr.slice();var Qs=Fn.matches[Ki];if(Qs&&Dt(Qs,[Ki].concat(dt),Dn))Ge=!0;else if(0===to&&(xe=Ot(Fn)),Qs&&Qs.matches&&Qs.matches.length>Fn.matches[0].matches.length)break;Vt=Se.slice(),Ve=Qr,Se=[];for(var pr=0;pr<Vt.length;pr++){var Ro=Vt[pr],Xo=!1;Ro.alternation=Ro.alternation||Ii,An(Ro);for(var El=0;El<kn.length;El++){var ks=kn[El];if("string"!=typeof Ni||void 0!==Ro.alternation&&wr.includes(Ro.locator[Ro.alternation].toString())){if(Ro.match.nativeDef===ks.match.nativeDef){Xo=!0,An(ks,Ro);break}if(ne(Ro,ks,_e)){An(Ro,ks)&&(Xo=!0,kn.splice(kn.indexOf(ks),0,Ro));break}if(ne(ks,Ro,_e)){An(ks,Ro);break}if(Gt(Ro,ks)){Kt(Ro,ks)||void 0!==ke.inputmask.userOptions.keepStatic?An(Ro,ks)&&(Xo=!0,kn.splice(kn.indexOf(ks),0,Ro)):_e.keepStatic=!0;break}if(Gt(ks,Ro)){An(ks,Ro);break}}}Xo||kn.push(Ro)}}Se=$n.concat(kn),Ve=Y,de=Se.length>0&&xe,Ge=kn.length>0&&!xe,xe&&de&&!Ge&&Se.forEach(function(ol,Xa){ol.unMatchedAlternationStopped=!0}),Qe=Cr.slice()}else Ge=Dt(Fn.matches[Ni]||Re.matches[Ni],[Ni].concat(dt),Dn);if(Ge)return!0}();if(Ge.isQuantifier&&Dn!==Re.matches[Re.matches.indexOf(Ge)-1])return function(){for(var Ot=Ge,Vt=!1,Fn=Qe.length>0?Qe.shift():0;Fn<(isNaN(Ot.quantifier.max)?Fn+1:Ot.quantifier.max)&&Ve<=Y;Fn++){var kn=Re.matches[Re.matches.indexOf(Ot)-1];if(Ge=Dt(kn,[Fn].concat(dt),kn)){if(Se.forEach(function($n,Ii){(n=st(kn,$n.match)?$n.match:Se[Se.length-1].match).optionalQuantifier=Fn>=Ot.quantifier.min,n.jit=(Fn+1)*(kn.matches.indexOf(n)+1)>Ot.quantifier.jit,n.optionalQuantifier&&wt(n,kn)&&(de=!0,Ve=Y,_e.greedy&&null==Fe.validPositions[Y-1]&&Fn>Ot.quantifier.min&&-1!=["*","+"].indexOf(Ot.quantifier.max)&&(Se.pop(),le=void 0),Vt=!0,Ge=!1),!Vt&&n.jit&&(Fe.jitOffset[Y]=kn.matches.length-kn.matches.indexOf(n))}),Vt)break;return!0}}}();if(Ge=We(Ge,Qe,dt,Dn))return!0}else Ve++}for(var qe=Qe.length>0?Qe.shift():0;qe<Re.matches.length;qe++)if(!0!==Re.matches[qe].isQuantifier){var ze=Dt(Re.matches[qe],[qe].concat(vt),Nt);if(ze&&Ve===Y)return ze;if(Ve>Y)break}}function st(Re,Qe){var vt=-1!=Re.matches.indexOf(Qe);return vt||Re.matches.forEach(function(Nt,Dt){void 0===Nt.matches||vt||(vt=st(Nt,Qe))}),vt}if(Y>-1){if(void 0===W){for(var ut,Ae=Y-1;void 0===(ut=Fe.validPositions[Ae]||Fe.tests[Ae])&&Ae>-1;)Ae--;void 0!==ut&&Ae>-1&&(Re=Ae,Qe=ut,Nt=[],Array.isArray(Qe)||(Qe=[Qe]),Qe.length>0&&(void 0===Qe[0].alternation||!0===_e.keepStatic?0===(Nt=fe.call(se,Re,Qe.slice()).locator.slice()).length&&(Nt=Qe[0].locator.slice()):Qe.forEach(function(Dt){""!==Dt.def&&(0===Nt.length?(vt=Dt.alternation,Nt=Dt.locator.slice()):Dt.locator[vt]&&-1===Nt[vt].toString().indexOf(Dt.locator[vt])&&(Nt[vt]+=","+Dt.locator[vt]))})),le=(Ie=Nt).join(""),Ve=Ae)}if(Fe.tests[Y]&&Fe.tests[Y][0].cd===le)return Fe.tests[Y];for(var ye=Ie.shift();ye<be.length&&!(We(be[ye],Ie,[ye])&&Ve===Y||Ve>Y);ye++);}return(0===Se.length||de)&&Se.push({match:{fn:null,static:!0,optionality:!1,casing:null,def:"",placeholder:""},locator:xe&&0===Se.filter(function(Re){return!0!==Re.unMatchedAlternationStopped}).length?[0]:[],mloc:{},cd:le}),void 0!==W&&Fe.tests[Y]?K=De.extend(!0,[],Se):(Fe.tests[Y]=De.extend(!0,[],Se),K=Fe.tests[Y]),Se.forEach(function(Re){Re.match.optionality=Re.match.defOptionality||!1}),K}},7215:function(E,D,k){Object.defineProperty(D,"__esModule",{value:!0}),D.alternate=H,D.checkAlternationMatch=function(W,J,n){for(var K,se=this.opts.greedy?J:J.slice(0,1),De=!1,Fe=void 0!==n?n.split(","):[],_e=0;_e<Fe.length;_e++)-1!==(K=W.indexOf(Fe[_e]))&&W.splice(K,1);for(var ke=0;ke<W.length;ke++)if(se.includes(W[ke])){De=!0;break}return De},D.handleRemove=function(W,J,n,K,se){var De=this,Fe=this.maskset,_e=this.opts;if((_e.numericInput||De.isRTL)&&(J===P.keys.Backspace?J=P.keys.Delete:J===P.keys.Delete&&(J=P.keys.Backspace),De.isRTL)){var ke=n.end;n.end=n.begin,n.begin=ke}var be,Ve=G.getLastValidPosition.call(De,void 0,!0);n.end>=G.getBuffer.call(De).length&&Ve>=n.end&&(n.end=Ve+1),J===P.keys.Backspace?n.end-n.begin<1&&(n.begin=G.seekPrevious.call(De,n.begin)):J===P.keys.Delete&&n.begin===n.end&&(n.end=G.isMask.call(De,n.end,!0,!0)?n.end+1:G.seekNext.call(De,n.end)+1),!1!==(be=Y.call(De,n))&&((!0!==K&&!1!==_e.keepStatic||null!==_e.regex&&-1!==Q.getTest.call(De,n.begin).match.def.indexOf("|"))&&H.call(De,!0),!0!==K&&(Fe.p=J===P.keys.Delete?n.begin+be:n.begin,Fe.p=G.determineNewCaretPosition.call(De,{begin:Fe.p,end:Fe.p},!1,!1===_e.insertMode&&J===P.keys.Backspace?"none":void 0).begin))},D.isComplete=X,D.isSelection=z,D.isValid=fe,D.refreshFromBuffer=ne,D.revalidateMask=Y;var R=k(6030),P=k(2839),G=k(8711),Q=k(4713);function H(W,J,n,K,se,De){var Fe=this,_e=this.dependencyLib,ke=this.opts,be=Fe.maskset;if(!Fe.hasAlternator)return!1;var Ve,Ie,Se,de,le,xe,We,st,Ae,ye,Re=_e.extend(!0,[],be.validPositions),Qe=_e.extend(!0,{},be.tests),vt=!1,Nt=!1,Dt=void 0!==se?se:G.getLastValidPosition.call(Fe);if(De&&(Ae=De.begin,ye=De.end,De.begin>De.end&&(Ae=De.end,ye=De.begin)),-1===Dt&&void 0===se)Ie=(de=Q.getTest.call(Fe,Ve=0)).alternation;else for(;Dt>=0;Dt--)if((Se=be.validPositions[Dt])&&void 0!==Se.alternation){if(Dt<=(W||0)&&de&&de.locator[Se.alternation]!==Se.locator[Se.alternation])break;Ie=be.validPositions[Ve=Dt].alternation,de=Se}if(void 0!==Ie){We=parseInt(Ve),be.excludes[We]=be.excludes[We]||[],!0!==W&&be.excludes[We].push((0,Q.getDecisionTaker)(de)+":"+de.alternation);var qe=[],ze=-1;for(le=We;We<G.getLastValidPosition.call(Fe,void 0,!0)+1;le++)-1===ze&&W<=le&&void 0!==J&&(qe.push(J),ze=qe.length-1),(xe=be.validPositions[We])&&!0!==xe.generatedInput&&(void 0===De||le<Ae||le>=ye)&&qe.push(xe.input),be.validPositions.splice(We,1);for(-1===ze&&void 0!==J&&(qe.push(J),ze=qe.length-1);void 0!==be.excludes[We]&&be.excludes[We].length<10;){for(be.tests={},G.resetMaskSet.call(Fe,!0),vt=!0,le=0;le<qe.length&&(st=vt.caret||0==ke.insertMode&&null!=st?G.seekNext.call(Fe,st):G.getLastValidPosition.call(Fe,void 0,!0)+1,vt=fe.call(Fe,st,qe[le],!1,K,!0));le++)le===ze&&(Nt=vt),1==W&&vt&&(Nt={caretPos:le});if(vt)break;if(G.resetMaskSet.call(Fe),de=Q.getTest.call(Fe,We),be.validPositions=_e.extend(!0,[],Re),be.tests=_e.extend(!0,{},Qe),!be.excludes[We]){Nt=H.call(Fe,W,J,n,K,We-1,De);break}if(null!=de.alternation){var Ge=(0,Q.getDecisionTaker)(de);if(-1!==be.excludes[We].indexOf(Ge+":"+de.alternation)){Nt=H.call(Fe,W,J,n,K,We-1,De);break}for(be.excludes[We].push(Ge+":"+de.alternation),le=We;le<G.getLastValidPosition.call(Fe,void 0,!0)+1;le++)be.validPositions.splice(We)}else delete be.excludes[We]}}return Nt&&!1===ke.keepStatic||delete be.excludes[We],Nt}function Z(W,J,n){var K=this.opts,se=this.maskset;switch(K.casing||J.casing){case"upper":W=W.toUpperCase();break;case"lower":W=W.toLowerCase();break;case"title":var De=se.validPositions[n-1];W=0===n||De&&De.input===String.fromCharCode(P.keyCode.Space)?W.toUpperCase():W.toLowerCase();break;default:if("function"==typeof K.casing){var Fe=Array.prototype.slice.call(arguments);Fe.push(se.validPositions),W=K.casing.apply(this,Fe)}}return W}function X(W){var J=this,n=this.opts,K=this.maskset;if("function"==typeof n.isComplete)return n.isComplete(W,n);if("*"!==n.repeat){var se=!1,De=G.determineLastRequiredPosition.call(J,!0),Fe=De.l;if(void 0===De.def||De.def.newBlockMarker||De.def.optionality||De.def.optionalQuantifier){se=!0;for(var _e=0;_e<=Fe;_e++){var ke=Q.getTestTemplate.call(J,_e).match;if(!0!==ke.static&&void 0===K.validPositions[_e]&&(!1===ke.optionality||void 0===ke.optionality||ke.optionality&&0==ke.newBlockMarker)&&(!1===ke.optionalQuantifier||void 0===ke.optionalQuantifier)||!0===ke.static&&""!=ke.def&&W[_e]!==Q.getPlaceholder.call(J,_e,ke)){se=!1;break}}}return se}}function z(W){var J=this.opts.insertMode?0:1;return this.isRTL?W.begin-W.end>J:W.end-W.begin>J}function fe(W,J,n,K,se,De,Fe){var _e=this,ke=this.dependencyLib,be=this.opts,Ve=_e.maskset;n=!0===n;var Ie=W;function Se(vt){if(void 0!==vt){if(void 0!==vt.remove&&(Array.isArray(vt.remove)||(vt.remove=[vt.remove]),vt.remove.sort(function(Dt,qe){return _e.isRTL?Dt.pos-qe.pos:qe.pos-Dt.pos}).forEach(function(Dt){Y.call(_e,{begin:Dt,end:Dt+1})}),vt.remove=void 0),void 0!==vt.insert&&(Array.isArray(vt.insert)||(vt.insert=[vt.insert]),vt.insert.sort(function(Dt,qe){return _e.isRTL?qe.pos-Dt.pos:Dt.pos-qe.pos}).forEach(function(Dt){""!==Dt.c&&fe.call(_e,Dt.pos,Dt.c,void 0===Dt.strict||Dt.strict,void 0!==Dt.fromIsValid?Dt.fromIsValid:K)}),vt.insert=void 0),vt.refreshFromBuffer&&vt.buffer){var Nt=vt.refreshFromBuffer;ne.call(_e,!0===Nt?Nt:Nt.start,Nt.end,vt.buffer),vt.refreshFromBuffer=void 0}void 0!==vt.rewritePosition&&(Ie=vt.rewritePosition,vt=!0)}return vt}function de(vt,Nt,Dt){var qe=!1;return Q.getTests.call(_e,vt).every(function(ze,Ge){var dt=ze.match;if(G.getBuffer.call(_e,!0),!1!==(qe=(!dt.jit||void 0!==Ve.validPositions[G.seekPrevious.call(_e,vt)])&&(null!=dt.fn?dt.fn.test(Nt,Ve,vt,Dt,be,z.call(_e,W)):(Nt===dt.def||Nt===be.skipOptionalPartCharacter)&&""!==dt.def&&{c:Q.getPlaceholder.call(_e,vt,dt,!0)||dt.def,pos:vt}))){var Dn=void 0!==qe.c?qe.c:Nt,wt=vt;return Dn=Dn===be.skipOptionalPartCharacter&&!0===dt.static?Q.getPlaceholder.call(_e,vt,dt,!0)||dt.def:Dn,!0!==(qe=Se(qe))&&void 0!==qe.pos&&qe.pos!==vt&&(wt=qe.pos),!0!==qe&&void 0===qe.pos&&void 0===qe.c||!1===Y.call(_e,W,ke.extend({},ze,{input:Z.call(_e,Dn,dt,wt)}),K,wt)&&(qe=!1),!1}return!0}),qe}void 0!==W.begin&&(Ie=_e.isRTL?W.end:W.begin);var le=!0,xe=ke.extend(!0,[],Ve.validPositions);if(!1===be.keepStatic&&void 0!==Ve.excludes[Ie]&&!0!==se&&!0!==K)for(var We=Ie;We<(_e.isRTL?W.begin:W.end);We++)void 0!==Ve.excludes[We]&&(Ve.excludes[We]=void 0,delete Ve.tests[We]);if("function"==typeof be.preValidation&&!0!==K&&!0!==De&&(le=Se(le=be.preValidation.call(_e,G.getBuffer.call(_e),Ie,J,z.call(_e,W),be,Ve,W,n||se))),!0===le){if(le=de(Ie,J,n),(!n||!0===K)&&!1===le&&!0!==De){var st=Ve.validPositions[Ie];if(!st||!0!==st.match.static||st.match.def!==J&&J!==be.skipOptionalPartCharacter){if(be.insertMode||void 0===Ve.validPositions[G.seekNext.call(_e,Ie)]||W.end>Ie){var ut=!1;if(Ve.jitOffset[Ie]&&void 0===Ve.validPositions[G.seekNext.call(_e,Ie)]&&!1!==(le=fe.call(_e,Ie+Ve.jitOffset[Ie],J,!0,!0))&&(!0!==se&&(le.caret=Ie),ut=!0),W.end>Ie&&(Ve.validPositions[Ie]=void 0),!ut&&!G.isMask.call(_e,Ie,be.keepStatic&&0===Ie))for(var Ae=Ie+1,ye=G.seekNext.call(_e,Ie,!1,0!==Ie);Ae<=ye;Ae++)if(!1!==(le=de(Ae,J,n))){le=N.call(_e,Ie,void 0!==le.pos?le.pos:Ae)||le,Ie=Ae;break}}}else le={caret:G.seekNext.call(_e,Ie)}}_e.hasAlternator&&!0!==se&&!n&&(se=!0,!1===le&&be.keepStatic&&(X.call(_e,G.getBuffer.call(_e))||0===Ie)?le=H.call(_e,Ie,J,n,K,void 0,W):(z.call(_e,W)&&Ve.tests[Ie]&&Ve.tests[Ie].length>1&&be.keepStatic||1==le&&!0!==be.numericInput&&Ve.tests[Ie]&&Ve.tests[Ie].length>1&&G.getLastValidPosition.call(_e,void 0,!0)>Ie)&&(le=H.call(_e,!0))),!0===le&&(le={pos:Ie})}if("function"==typeof be.postValidation&&!0!==K&&!0!==De){var Re=be.postValidation.call(_e,G.getBuffer.call(_e,!0),void 0!==W.begin?_e.isRTL?W.end:W.begin:W,J,le,be,Ve,n,Fe);void 0!==Re&&(le=!0===Re?le:Re)}le&&void 0===le.pos&&(le.pos=Ie),!1===le||!0===De?(G.resetMaskSet.call(_e,!0),Ve.validPositions=ke.extend(!0,[],xe)):N.call(_e,void 0,Ie,!0);var Qe=Se(le);return void 0!==_e.maxLength&&G.getBuffer.call(_e).length>_e.maxLength&&!K&&(G.resetMaskSet.call(_e,!0),Ve.validPositions=ke.extend(!0,[],xe),Qe=!1),Qe}function q(W,J,n){for(var K=this.maskset,se=!1,De=Q.getTests.call(this,W),Fe=0;Fe<De.length;Fe++){if(De[Fe].match&&(De[Fe].match.nativeDef===J.match[n.shiftPositions?"def":"nativeDef"]&&(!n.shiftPositions||!J.match.static)||De[Fe].match.nativeDef===J.match.nativeDef||n.regex&&!De[Fe].match.static&&De[Fe].match.fn.test(J.input,K,W,!1,n))){se=!0;break}if(De[Fe].match&&De[Fe].match.def===J.match.nativeDef){se=void 0;break}}return!1===se&&void 0!==K.jitOffset[W]&&(se=q.call(this,W+K.jitOffset[W],J,n)),se}function ne(W,J,n){var K,se,De=this,Fe=this.maskset,_e=this.opts,ke=this.dependencyLib,be=_e.skipOptionalPartCharacter,Ve=De.isRTL?n.slice().reverse():n;if(_e.skipOptionalPartCharacter="",!0===W)G.resetMaskSet.call(De,!1),W=0,J=n.length,se=G.determineNewCaretPosition.call(De,{begin:0,end:0},!1).begin;else{for(K=W;K<J;K++)Fe.validPositions.splice(W,0);se=W}var Ie=new ke.Event("keypress");for(K=W;K<J;K++){Ie.key=Ve[K].toString(),De.ignorable=!1;var Se=R.EventHandlers.keypressEvent.call(De,Ie,!0,!1,!1,se);!1!==Se&&void 0!==Se&&(se=Se.forwardPosition)}_e.skipOptionalPartCharacter=be}function N(W,J,n){var K=this,se=this.maskset,De=this.dependencyLib;if(void 0===W)for(W=J-1;W>0&&!se.validPositions[W];W--);for(var Fe=W;Fe<J;Fe++)if(void 0===se.validPositions[Fe]&&!G.isMask.call(K,Fe,!1)&&(0==Fe?Q.getTest.call(K,Fe):se.validPositions[Fe-1])){var _e=Q.getTests.call(K,Fe).slice();""===_e[_e.length-1].match.def&&_e.pop();var ke,be=Q.determineTestTemplate.call(K,Fe,_e);if(be&&(!0!==be.match.jit||"master"===be.match.newBlockMarker&&(ke=se.validPositions[Fe+1])&&!0===ke.match.optionalQuantifier)&&((be=De.extend({},be,{input:Q.getPlaceholder.call(K,Fe,be.match,!0)||be.match.def})).generatedInput=!0,Y.call(K,Fe,be,!0),!0!==n)){var Ve=se.validPositions[J].input;return se.validPositions[J]=void 0,fe.call(K,J,Ve,!0,!0)}}}function Y(W,J,n,K){var se=this,De=this.maskset,Fe=this.opts,_e=this.dependencyLib;var Qe,vt,Nt,Dt,be=0,Ve=void 0!==W.begin?W.begin:W,Ie=void 0!==W.end?W.end:W,Se=!0;if(W.begin>W.end&&(Ve=W.end,Ie=W.begin),K=void 0!==K?K:Ve,void 0===n&&(Ve!==Ie||Fe.insertMode&&void 0!==De.validPositions[K]||void 0===J||J.match.optionalQuantifier||J.match.optionality)){var de,le=_e.extend(!0,[],De.validPositions),xe=G.getLastValidPosition.call(se,void 0,!0);De.p=Ve;var We=z.call(se,W)?Ve:K;for(de=xe;de>=We;de--)De.validPositions.splice(de,1),void 0===J&&delete De.tests[de+1];var st,ut,Ae=K,ye=Ae;for(J&&(De.validPositions[K]=_e.extend(!0,{},J),ye++,Ae++),null==le[Ie]&&De.jitOffset[Ie]&&(Ie+=De.jitOffset[Ie]+1),de=J?Ie:Ie-1;de<=xe;de++){if(void 0!==(st=le[de])&&!0!==st.generatedInput&&(de>=Ie||de>=Ve&&(Nt={begin:Ve,end:Ie},Dt=void 0,void 0!==(Dt=(vt=le)[Qe=de])&&!0===Dt.match.static&&!0!==Dt.match.optionality&&(void 0===vt[0]||void 0===vt[0].alternation)&&(Nt.begin<=Qe-1?vt[Qe-1]&&!0===vt[Qe-1].match.static&&vt[Qe-1]:vt[Qe-1])&&(Nt.end>Qe+1?vt[Qe+1]&&!0===vt[Qe+1].match.static&&vt[Qe+1]:vt[Qe+1])))){for(;""!==Q.getTest.call(se,ye).match.def;){if(!1!==(ut=q.call(se,ye,st,Fe))||"+"===st.match.def){"+"===st.match.def&&G.getBuffer.call(se,!0);var Re=fe.call(se,ye,st.input,"+"!==st.match.def,!0);if(Ae=(Re.pos||ye)+1,!(Se=!1!==Re)&&ut)break}else Se=!1;if(Se){void 0===J&&st.match.static&&de===W.begin&&be++;break}if(!Se&&G.getBuffer.call(se),ye>De.maskLength)break;ye++}""==Q.getTest.call(se,ye).match.def&&(Se=!1),ye=Ae}if(!Se)break}if(!Se)return De.validPositions=_e.extend(!0,[],le),G.resetMaskSet.call(se,!0),!1}else J&&Q.getTest.call(se,K).match.cd===J.match.cd&&(De.validPositions[K]=_e.extend(!0,{},J));return G.resetMaskSet.call(se,!0),be}}},b={};function T(E){var D=b[E];if(void 0!==D)return D.exports;var k=b[E]={exports:{}};return y[E](k,k.exports,T),k.exports}var C={};return function(){var E=C;Object.defineProperty(E,"__esModule",{value:!0}),E.default=void 0,T(7149),T(3194),T(9302),T(4013),T(3851),T(219),T(207),T(5296);var D,k=(D=T(2394))&&D.__esModule?D:{default:D};E.default=k.default}(),C}()},4941:function(m,y,b){var T;typeof globalThis<"u"?globalThis:typeof this<"u"||(typeof window<"u"?window:typeof self<"u"?self:global),m.exports=(T=function(){try{return b(9107)}catch{}}(),function(){"use strict";var C={172:function(R,P){var G=this&&this.__extends||function(){var Z=function(X,z){return(Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(fe,q){fe.__proto__=q}||function(fe,q){for(var ne in q)Object.prototype.hasOwnProperty.call(q,ne)&&(fe[ne]=q[ne])})(X,z)};return function(X,z){if("function"!=typeof z&&null!==z)throw new TypeError("Class extends value "+String(z)+" is not a constructor or null");function fe(){this.constructor=X}Z(X,z),X.prototype=null===z?Object.create(z):(fe.prototype=z.prototype,new fe)}}();Object.defineProperty(P,"__esModule",{value:!0}),P.CellHookData=P.HookData=void 0;var Q=function(){return function Z(X,z,fe){this.table=z,this.pageNumber=z.pageNumber,this.pageCount=this.pageNumber,this.settings=z.settings,this.cursor=fe,this.doc=X.getDocument()}}();P.HookData=Q;var H=function(Z){function X(z,fe,q,ne,N,Y){var W=Z.call(this,z,fe,Y)||this;return W.cell=q,W.row=ne,W.column=N,W.section=ne.section,W}return G(X,Z),X}(Q);P.CellHookData=H},340:function(R,P,G){Object.defineProperty(P,"__esModule",{value:!0});var Q=G(4),H=G(136),Z=G(744),X=G(776),z=G(664),fe=G(972);P.default=function q(ne){ne.API.autoTable=function(){for(var N=[],Y=0;Y<arguments.length;Y++)N[Y]=arguments[Y];var W;1===N.length?W=N[0]:(console.error("Use of deprecated autoTable initiation"),(W=N[2]||{}).columns=N[0],W.body=N[1]);var J=(0,X.parseInput)(this,W),n=(0,fe.createTable)(this,J);return(0,z.drawTable)(this,n),this},ne.API.lastAutoTable=!1,ne.API.previousAutoTable=!1,ne.API.autoTable.previous=!1,ne.API.autoTableText=function(N,Y,W,J){(0,H.default)(N,Y,W,J,this)},ne.API.autoTableSetDefaults=function(N){return Z.DocHandler.setDefaults(N,this),this},ne.autoTableSetDefaults=function(N,Y){Z.DocHandler.setDefaults(N,Y)},ne.API.autoTableHtmlToJson=function(N,Y){var W;if(void 0===Y&&(Y=!1),typeof window>"u")return console.error("Cannot run autoTableHtmlToJson in non browser environment"),null;var J=new Z.DocHandler(this),n=(0,Q.parseHtml)(J,N,window,Y,!1),se=n.body;return{columns:(null===(W=n.head[0])||void 0===W?void 0:W.map(function(Fe){return Fe.content}))||[],rows:se,data:se}},ne.API.autoTableEndPosY=function(){console.error("Use of deprecated function: autoTableEndPosY. Use doc.lastAutoTable.finalY instead.");var N=this.lastAutoTable;return N&&N.finalY?N.finalY:0},ne.API.autoTableAddPageContent=function(N){return console.error("Use of deprecated function: autoTableAddPageContent. Use jsPDF.autoTableSetDefaults({didDrawPage: () => {}}) instead."),ne.API.autoTable.globalDefaults||(ne.API.autoTable.globalDefaults={}),ne.API.autoTable.globalDefaults.addPageContent=N,this},ne.API.autoTableAddPage=function(){return console.error("Use of deprecated function: autoTableAddPage. Use doc.addPage()"),this.addPage(),this}}},136:function(R,P){Object.defineProperty(P,"__esModule",{value:!0}),P.default=function G(Q,H,Z,X,z){X=X||{};var q=z.internal.scaleFactor,ne=z.internal.getFontSize()/q,Y=ne*(z.getLineHeightFactor?z.getLineHeightFactor():1.15),J="",n=1;if(("middle"===X.valign||"bottom"===X.valign||"center"===X.halign||"right"===X.halign)&&(n=(J="string"==typeof Q?Q.split(/\r\n|\r|\n/g):Q).length||1),Z+=ne*(2-1.15),"middle"===X.valign?Z-=n/2*Y:"bottom"===X.valign&&(Z-=n*Y),"center"===X.halign||"right"===X.halign){var K=ne;if("center"===X.halign&&(K*=.5),J&&n>=1){for(var se=0;se<J.length;se++)z.text(J[se],H-z.getStringUnitWidth(J[se])*K,Z),Z+=Y;return z}H-=z.getStringUnitWidth(Q)*K}return"justify"===X.halign?z.text(Q,H,Z,{maxWidth:X.maxWidth||100,align:"justify"}):z.text(Q,H,Z),z}},420:function(R,P){function H(z,fe){var q=z>0,ne=fe||0===fe;return q&&ne?"DF":q?"S":ne?"F":null}function Z(z,fe){var q,ne,N,Y;if(z=z||fe,Array.isArray(z)){if(z.length>=4)return{top:z[0],right:z[1],bottom:z[2],left:z[3]};if(3===z.length)return{top:z[0],right:z[1],bottom:z[2],left:z[1]};if(2===z.length)return{top:z[0],right:z[1],bottom:z[0],left:z[1]};z=1===z.length?z[0]:fe}return"object"==typeof z?("number"==typeof z.vertical&&(z.top=z.vertical,z.bottom=z.vertical),"number"==typeof z.horizontal&&(z.right=z.horizontal,z.left=z.horizontal),{left:null!==(q=z.left)&&void 0!==q?q:fe,top:null!==(ne=z.top)&&void 0!==ne?ne:fe,right:null!==(N=z.right)&&void 0!==N?N:fe,bottom:null!==(Y=z.bottom)&&void 0!==Y?Y:fe}):("number"!=typeof z&&(z=fe),{top:z,right:z,bottom:z,left:z})}Object.defineProperty(P,"__esModule",{value:!0}),P.getPageAvailableWidth=P.parseSpacing=P.getFillStyle=P.addTableBorder=P.getStringWidth=void 0,P.getStringWidth=function G(z,fe,q){return q.applyStyles(fe,!0),(Array.isArray(z)?z:[z]).map(function(Y){return q.getTextWidth(Y)}).reduce(function(Y,W){return Math.max(Y,W)},0)},P.addTableBorder=function Q(z,fe,q,ne){var N=fe.settings.tableLineWidth;z.applyStyles({lineWidth:N,lineColor:fe.settings.tableLineColor});var W=H(N,!1);W&&z.rect(q.x,q.y,fe.getWidth(z.pageSize().width),ne.y-q.y,W)},P.getFillStyle=H,P.parseSpacing=Z,P.getPageAvailableWidth=function X(z,fe){var q=Z(fe.settings.margin,0);return z.pageSize().width-(q.left+q.right)}},796:function(R,P){var G=this&&this.__extends||function(){var X=function(z,fe){return(X=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,ne){q.__proto__=ne}||function(q,ne){for(var N in ne)Object.prototype.hasOwnProperty.call(ne,N)&&(q[N]=ne[N])})(z,fe)};return function(z,fe){if("function"!=typeof fe&&null!==fe)throw new TypeError("Class extends value "+String(fe)+" is not a constructor or null");function q(){this.constructor=z}X(z,fe),z.prototype=null===fe?Object.create(fe):(q.prototype=fe.prototype,new q)}}();Object.defineProperty(P,"__esModule",{value:!0}),P.getTheme=P.defaultStyles=P.HtmlRowInput=void 0;var Q=function(X){function z(fe){var q=X.call(this)||this;return q._element=fe,q}return G(z,X),z}(Array);P.HtmlRowInput=Q,P.defaultStyles=function H(X){return{font:"helvetica",fontStyle:"normal",overflow:"linebreak",fillColor:!1,textColor:20,halign:"left",valign:"top",fontSize:10,cellPadding:5/X,lineColor:200,lineWidth:0,cellWidth:"auto",minCellHeight:0,minCellWidth:0}},P.getTheme=function Z(X){return{striped:{table:{fillColor:255,textColor:80,fontStyle:"normal"},head:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},body:{},foot:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},alternateRow:{fillColor:245}},grid:{table:{fillColor:255,textColor:80,fontStyle:"normal",lineWidth:.1},head:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},body:{},foot:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},alternateRow:{}},plain:{head:{fontStyle:"bold"},foot:{fontStyle:"bold"}}}[X]}},903:function(R,P,G){Object.defineProperty(P,"__esModule",{value:!0}),P.parseCss=void 0;var Q=G(420);function X(q,ne){var N=z(q,ne);if(!N)return null;var Y=N.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d*\.?\d*))?\)$/);if(!Y||!Array.isArray(Y))return null;var W=[parseInt(Y[1]),parseInt(Y[2]),parseInt(Y[3])];return 0===parseInt(Y[4])||isNaN(W[0])||isNaN(W[1])||isNaN(W[2])?null:W}function z(q,ne){var N=ne(q);return"rgba(0, 0, 0, 0)"===N||"transparent"===N||"initial"===N||"inherit"===N?null==q.parentElement?null:z(q.parentElement,ne):N}P.parseCss=function H(q,ne,N,Y,W){var J={},n=1.3333333333333333,K=X(ne,function(xe){return W.getComputedStyle(xe).backgroundColor});null!=K&&(J.fillColor=K);var se=X(ne,function(xe){return W.getComputedStyle(xe).color});null!=se&&(J.textColor=se);var De=function fe(q,ne){var N=[q.paddingTop,q.paddingRight,q.paddingBottom,q.paddingLeft],Y=96/(72/ne),W=(parseInt(q.lineHeight)-parseInt(q.fontSize))/ne/2,J=N.map(function(K){return parseInt(K||"0")/Y}),n=(0,Q.parseSpacing)(J,0);return W>n.top&&(n.top=W),W>n.bottom&&(n.bottom=W),n}(Y,N);De&&(J.cellPadding=De);var Fe="borderTopColor",_e=n*N,ke=Y.borderTopWidth;if(Y.borderBottomWidth===ke&&Y.borderRightWidth===ke&&Y.borderLeftWidth===ke){var be=(parseFloat(ke)||0)/_e;be&&(J.lineWidth=be)}else J.lineWidth={top:(parseFloat(Y.borderTopWidth)||0)/_e,right:(parseFloat(Y.borderRightWidth)||0)/_e,bottom:(parseFloat(Y.borderBottomWidth)||0)/_e,left:(parseFloat(Y.borderLeftWidth)||0)/_e},J.lineWidth.top||(J.lineWidth.right?Fe="borderRightColor":J.lineWidth.bottom?Fe="borderBottomColor":J.lineWidth.left&&(Fe="borderLeftColor"));var Ve=X(ne,function(xe){return W.getComputedStyle(xe)[Fe]});null!=Ve&&(J.lineColor=Ve);var Ie=["left","right","center","justify"];-1!==Ie.indexOf(Y.textAlign)&&(J.halign=Y.textAlign),-1!==(Ie=["middle","bottom","top"]).indexOf(Y.verticalAlign)&&(J.valign=Y.verticalAlign);var Se=parseInt(Y.fontSize||"");isNaN(Se)||(J.fontSize=Se/n);var de=function Z(q){var ne="";return("bold"===q.fontWeight||"bolder"===q.fontWeight||parseInt(q.fontWeight)>=700)&&(ne="bold"),("italic"===q.fontStyle||"oblique"===q.fontStyle)&&(ne+="italic"),ne}(Y);de&&(J.fontStyle=de);var le=(Y.fontFamily||"").toLowerCase();return-1!==q.indexOf(le)&&(J.font=le),J}},744:function(R,P){Object.defineProperty(P,"__esModule",{value:!0}),P.DocHandler=void 0;var G={},Q=function(){function H(Z){this.jsPDFDocument=Z,this.userStyles={textColor:Z.getTextColor?this.jsPDFDocument.getTextColor():0,fontSize:Z.internal.getFontSize(),fontStyle:Z.internal.getFont().fontStyle,font:Z.internal.getFont().fontName,lineWidth:Z.getLineWidth?this.jsPDFDocument.getLineWidth():0,lineColor:Z.getDrawColor?this.jsPDFDocument.getDrawColor():0}}return H.setDefaults=function(Z,X){void 0===X&&(X=null),X?X.__autoTableDocumentDefaults=Z:G=Z},H.unifyColor=function(Z){return Array.isArray(Z)?Z:"number"==typeof Z?[Z,Z,Z]:"string"==typeof Z?[Z]:null},H.prototype.applyStyles=function(Z,X){var z,fe,q;void 0===X&&(X=!1),Z.fontStyle&&this.jsPDFDocument.setFontStyle&&this.jsPDFDocument.setFontStyle(Z.fontStyle);var ne=this.jsPDFDocument.internal.getFont(),N=ne.fontStyle,Y=ne.fontName;if(Z.font&&(Y=Z.font),Z.fontStyle){N=Z.fontStyle;var W=this.getFontList()[Y];W&&-1===W.indexOf(N)&&(this.jsPDFDocument.setFontStyle&&this.jsPDFDocument.setFontStyle(W[0]),N=W[0])}if(this.jsPDFDocument.setFont(Y,N),Z.fontSize&&this.jsPDFDocument.setFontSize(Z.fontSize),!X){var J=H.unifyColor(Z.fillColor);J&&(z=this.jsPDFDocument).setFillColor.apply(z,J),(J=H.unifyColor(Z.textColor))&&(fe=this.jsPDFDocument).setTextColor.apply(fe,J),(J=H.unifyColor(Z.lineColor))&&(q=this.jsPDFDocument).setDrawColor.apply(q,J),"number"==typeof Z.lineWidth&&this.jsPDFDocument.setLineWidth(Z.lineWidth)}},H.prototype.splitTextToSize=function(Z,X,z){return this.jsPDFDocument.splitTextToSize(Z,X,z)},H.prototype.rect=function(Z,X,z,fe,q){return this.jsPDFDocument.rect(Z,X,z,fe,q)},H.prototype.getLastAutoTable=function(){return this.jsPDFDocument.lastAutoTable||null},H.prototype.getTextWidth=function(Z){return this.jsPDFDocument.getTextWidth(Z)},H.prototype.getDocument=function(){return this.jsPDFDocument},H.prototype.setPage=function(Z){this.jsPDFDocument.setPage(Z)},H.prototype.addPage=function(){return this.jsPDFDocument.addPage()},H.prototype.getFontList=function(){return this.jsPDFDocument.getFontList()},H.prototype.getGlobalOptions=function(){return G||{}},H.prototype.getDocumentOptions=function(){return this.jsPDFDocument.__autoTableDocumentDefaults||{}},H.prototype.pageSize=function(){var Z=this.jsPDFDocument.internal.pageSize;return null==Z.width&&(Z={width:Z.getWidth(),height:Z.getHeight()}),Z},H.prototype.scaleFactor=function(){return this.jsPDFDocument.internal.scaleFactor},H.prototype.getLineHeightFactor=function(){var Z=this.jsPDFDocument;return Z.getLineHeightFactor?Z.getLineHeightFactor():1.15},H.prototype.getLineHeight=function(Z){return Z/this.scaleFactor()*this.getLineHeightFactor()},H.prototype.pageNumber=function(){var Z=this.jsPDFDocument.internal.getCurrentPageInfo();return Z?Z.pageNumber:this.jsPDFDocument.internal.getNumberOfPages()},H}();P.DocHandler=Q},4:function(R,P,G){Object.defineProperty(P,"__esModule",{value:!0}),P.parseHtml=void 0;var Q=G(903),H=G(796);function X(fe,q,ne,N,Y,W){for(var J=new H.HtmlRowInput(N),n=0;n<N.cells.length;n++){var K=N.cells[n],se=ne.getComputedStyle(K);if(Y||"none"!==se.display){var De=void 0;W&&(De=(0,Q.parseCss)(fe,K,q,se,ne)),J.push({rowSpan:K.rowSpan,colSpan:K.colSpan,styles:De,_element:K,content:z(K)})}}var Fe=ne.getComputedStyle(N);if(J.length>0&&(Y||"none"!==Fe.display))return J}function z(fe){var q=fe.cloneNode(!0);return q.innerHTML=q.innerHTML.replace(/\n/g,"").replace(/ +/g," "),q.innerHTML=q.innerHTML.split(/<br.*?>/).map(function(ne){return ne.trim()}).join("\n"),q.innerText||q.textContent||""}P.parseHtml=function Z(fe,q,ne,N,Y){var W,J,n;void 0===N&&(N=!1),void 0===Y&&(Y=!1),n="string"==typeof q?ne.document.querySelector(q):q;var K=Object.keys(fe.getFontList()),se=fe.scaleFactor(),De=[],Fe=[],_e=[];if(!n)return console.error("Html table could not be found with input: ",q),{head:De,body:Fe,foot:_e};for(var ke=0;ke<n.rows.length;ke++){var be=n.rows[ke],Ve=null===(J=null===(W=be?.parentElement)||void 0===W?void 0:W.tagName)||void 0===J?void 0:J.toLowerCase(),Ie=X(K,se,ne,be,N,Y);Ie&&("thead"===Ve?De.push(Ie):"tfoot"===Ve?_e.push(Ie):Fe.push(Ie))}return{head:De,body:Fe,foot:_e}}},776:function(R,P,G){Object.defineProperty(P,"__esModule",{value:!0}),P.parseInput=void 0;var Q=G(4),H=G(356),Z=G(420),X=G(744),z=G(792);function J(n,K,se){var De=n[0]||K[0]||se[0]||[],Fe=[];return Object.keys(De).filter(function(_e){return"_element"!==_e}).forEach(function(_e){var be,ke=1;"object"==typeof(be=Array.isArray(De)?De[parseInt(_e)]:De[_e])&&!Array.isArray(be)&&(ke=be?.colSpan||1);for(var Ve=0;Ve<ke;Ve++){var Ie;Ie=Array.isArray(De)?Fe.length:_e+(Ve>0?"_".concat(Ve):""),Fe.push({dataKey:Ie})}}),Fe}P.parseInput=function fe(n,K){var se=new X.DocHandler(n),De=se.getDocumentOptions(),Fe=se.getGlobalOptions();(0,z.default)(se,Fe,De,K);var ke,_e=(0,H.assign)({},Fe,De,K);typeof window<"u"&&(ke=window);var be=function q(n,K,se){for(var De={styles:{},headStyles:{},bodyStyles:{},footStyles:{},alternateRowStyles:{},columnStyles:{}},Fe=function(Ve){if("columnStyles"===Ve)De.columnStyles=(0,H.assign)({},n[Ve],K[Ve],se[Ve]);else{var xe=[n,K,se].map(function(We){return We[Ve]||{}});De[Ve]=(0,H.assign)({},xe[0],xe[1],xe[2])}},_e=0,ke=Object.keys(De);_e<ke.length;_e++)Fe(ke[_e]);return De}(Fe,De,K),Ve=function ne(n,K,se){for(var Fe={didParseCell:[],willDrawCell:[],didDrawCell:[],willDrawPage:[],didDrawPage:[]},_e=0,ke=[n,K,se];_e<ke.length;_e++){var be=ke[_e];be.didParseCell&&Fe.didParseCell.push(be.didParseCell),be.willDrawCell&&Fe.willDrawCell.push(be.willDrawCell),be.didDrawCell&&Fe.didDrawCell.push(be.didDrawCell),be.willDrawPage&&Fe.willDrawPage.push(be.willDrawPage),be.didDrawPage&&Fe.didDrawPage.push(be.didDrawPage)}return Fe}(Fe,De,K),Ie=function N(n,K){var se,De,Fe,_e,ke,be,Ve,Ie,Se,de,le,xe,ut,Ae,We=(0,Z.parseSpacing)(K.margin,40/n.scaleFactor()),st=null!==(se=function Y(n,K){var se=n.getLastAutoTable(),De=n.scaleFactor(),Fe=n.pageNumber(),_e=!1;return se&&se.startPageNumber&&(_e=se.startPageNumber+se.pageNumber-1===Fe),"number"==typeof K?K:null!=K&&!1!==K||!_e||null==se?.finalY?null:se.finalY+20/De}(n,K.startY))&&void 0!==se?se:We.top;ut=!0===K.showFoot?"everyPage":!1===K.showFoot?"never":null!==(De=K.showFoot)&&void 0!==De?De:"everyPage",Ae=!0===K.showHead?"everyPage":!1===K.showHead?"never":null!==(Fe=K.showHead)&&void 0!==Fe?Fe:"everyPage";var ye=null!==(_e=K.useCss)&&void 0!==_e&&_e,vt=null!==(ke=K.horizontalPageBreakRepeat)&&void 0!==ke?ke:null;return{includeHiddenHtml:null!==(be=K.includeHiddenHtml)&&void 0!==be&&be,useCss:ye,theme:K.theme||(ye?"plain":"striped"),startY:st,margin:We,pageBreak:null!==(Ve=K.pageBreak)&&void 0!==Ve?Ve:"auto",rowPageBreak:null!==(Ie=K.rowPageBreak)&&void 0!==Ie?Ie:"auto",tableWidth:null!==(Se=K.tableWidth)&&void 0!==Se?Se:"auto",showHead:Ae,showFoot:ut,tableLineWidth:null!==(de=K.tableLineWidth)&&void 0!==de?de:0,tableLineColor:null!==(le=K.tableLineColor)&&void 0!==le?le:200,horizontalPageBreak:!!K.horizontalPageBreak,horizontalPageBreakRepeat:vt,horizontalPageBreakBehaviour:null!==(xe=K.horizontalPageBreakBehaviour)&&void 0!==xe?xe:"afterAllRows"}}(se,_e),Se=function W(n,K,se){var De=K.head||[],Fe=K.body||[],_e=K.foot||[];if(K.html)if(se){var be=(0,Q.parseHtml)(n,K.html,se,K.includeHiddenHtml,K.useCss)||{};De=be.head||De,Fe=be.body||De,_e=be.foot||De}else console.error("Cannot parse html in non browser environment");return{columns:K.columns||J(De,Fe,_e),head:De,body:Fe,foot:_e}}(se,_e,ke);return{id:K.tableId,content:Se,hooks:Ve,styles:be,settings:Ie}}},792:function(R,P){function Q(H){H.rowHeight?(console.error("Use of deprecated style rowHeight. It is renamed to minCellHeight."),H.minCellHeight||(H.minCellHeight=H.rowHeight)):H.columnWidth&&(console.error("Use of deprecated style columnWidth. It is renamed to cellWidth."),H.cellWidth||(H.cellWidth=H.columnWidth))}Object.defineProperty(P,"__esModule",{value:!0}),P.default=function G(H,Z,X,z){for(var fe=function(Y){Y&&"object"!=typeof Y&&console.error("The options parameter should be of type object, is: "+typeof Y),typeof Y.extendWidth<"u"&&(Y.tableWidth=Y.extendWidth?"auto":"wrap",console.error("Use of deprecated option: extendWidth, use tableWidth instead.")),typeof Y.margins<"u"&&(typeof Y.margin>"u"&&(Y.margin=Y.margins),console.error("Use of deprecated option: margins, use margin instead.")),Y.startY&&"number"!=typeof Y.startY&&(console.error("Invalid value for startY option",Y.startY),delete Y.startY),!Y.didDrawPage&&(Y.afterPageContent||Y.beforePageContent||Y.afterPageAdd)&&(console.error("The afterPageContent, beforePageContent and afterPageAdd hooks are deprecated. Use didDrawPage instead"),Y.didDrawPage=function(_e){H.applyStyles(H.userStyles),Y.beforePageContent&&Y.beforePageContent(_e),H.applyStyles(H.userStyles),Y.afterPageContent&&Y.afterPageContent(_e),H.applyStyles(H.userStyles),Y.afterPageAdd&&_e.pageNumber>1&&_e.afterPageAdd(_e),H.applyStyles(H.userStyles)}),["createdHeaderCell","drawHeaderRow","drawRow","drawHeaderCell"].forEach(function(_e){Y[_e]&&console.error('The "'.concat(_e,'" hook has changed in version 3.0, check the changelog for how to migrate.'))}),[["showFoot","showFooter"],["showHead","showHeader"],["didDrawPage","addPageContent"],["didParseCell","createdCell"],["headStyles","headerStyles"]].forEach(function(_e){var ke=_e[0],be=_e[1];Y[be]&&(console.error("Use of deprecated option ".concat(be,". Use ").concat(ke," instead")),Y[ke]=Y[be])}),[["padding","cellPadding"],["lineHeight","rowHeight"],"fontSize","overflow"].forEach(function(_e){var ke="string"==typeof _e?_e:_e[0],be="string"==typeof _e?_e:_e[1];typeof Y[ke]<"u"&&(typeof Y.styles[be]>"u"&&(Y.styles[be]=Y[ke]),console.error("Use of deprecated option: "+ke+", use the style "+be+" instead."))});for(var W=0,J=["styles","bodyStyles","headStyles","footStyles"];W<J.length;W++)Q(Y[J[W]]||{});for(var K=Y.columnStyles||{},se=0,De=Object.keys(K);se<De.length;se++)Q(K[De[se]]||{})},q=0,ne=[Z,X,z];q<ne.length;q++)fe(ne[q])}},260:function(R,P,G){Object.defineProperty(P,"__esModule",{value:!0}),P.Column=P.Cell=P.Row=P.Table=void 0;var Q=G(796),H=G(172),Z=G(420),X=function(){function ne(N,Y){this.pageNumber=1,this.pageCount=1,this.id=N.id,this.settings=N.settings,this.styles=N.styles,this.hooks=N.hooks,this.columns=Y.columns,this.head=Y.head,this.body=Y.body,this.foot=Y.foot}return ne.prototype.getHeadHeight=function(N){return this.head.reduce(function(Y,W){return Y+W.getMaxCellHeight(N)},0)},ne.prototype.getFootHeight=function(N){return this.foot.reduce(function(Y,W){return Y+W.getMaxCellHeight(N)},0)},ne.prototype.allRows=function(){return this.head.concat(this.body).concat(this.foot)},ne.prototype.callCellHooks=function(N,Y,W,J,n,K){for(var se=0,De=Y;se<De.length;se++){var ke=!1===(0,De[se])(new H.CellHookData(N,this,W,J,n,K));if(W.text=Array.isArray(W.text)?W.text:[W.text],ke)return!1}return!0},ne.prototype.callEndPageHooks=function(N,Y){N.applyStyles(N.userStyles);for(var W=0,J=this.hooks.didDrawPage;W<J.length;W++)(0,J[W])(new H.HookData(N,this,Y))},ne.prototype.callWillDrawPageHooks=function(N,Y){for(var W=0,J=this.hooks.willDrawPage;W<J.length;W++)(0,J[W])(new H.HookData(N,this,Y))},ne.prototype.getWidth=function(N){if("number"==typeof this.settings.tableWidth)return this.settings.tableWidth;if("wrap"===this.settings.tableWidth)return this.columns.reduce(function(J,n){return J+n.wrappedWidth},0);var W=this.settings.margin;return N-W.left-W.right},ne}();P.Table=X;var z=function(){function ne(N,Y,W,J,n){void 0===n&&(n=!1),this.height=0,this.raw=N,N instanceof Q.HtmlRowInput&&(this.raw=N._element,this.element=N._element),this.index=Y,this.section=W,this.cells=J,this.spansMultiplePages=n}return ne.prototype.getMaxCellHeight=function(N){var Y=this;return N.reduce(function(W,J){var n;return Math.max(W,(null===(n=Y.cells[J.index])||void 0===n?void 0:n.height)||0)},0)},ne.prototype.hasRowSpan=function(N){var Y=this;return N.filter(function(W){var J=Y.cells[W.index];return!!J&&J.rowSpan>1}).length>0},ne.prototype.canEntireRowFit=function(N,Y){return this.getMaxCellHeight(Y)<=N},ne.prototype.getMinimumRowHeight=function(N,Y){var W=this;return N.reduce(function(J,n){var K=W.cells[n.index];if(!K)return 0;var se=Y.getLineHeight(K.styles.fontSize),Fe=K.padding("vertical")+se;return Fe>J?Fe:J},0)},ne}();P.Row=z;var fe=function(){function ne(N,Y,W){var J,n;this.contentHeight=0,this.contentWidth=0,this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.height=0,this.x=0,this.y=0,this.styles=Y,this.section=W,this.raw=N;var K=N;null==N||"object"!=typeof N||Array.isArray(N)?(this.rowSpan=1,this.colSpan=1):(this.rowSpan=N.rowSpan||1,this.colSpan=N.colSpan||1,K=null!==(n=null!==(J=N.content)&&void 0!==J?J:N.title)&&void 0!==n?n:N,N._element&&(this.raw=N._element)),this.text=(null!=K?""+K:"").split(/\r\n|\r|\n/g)}return ne.prototype.getTextPos=function(){var N,W;if("top"===this.styles.valign)N=this.y+this.padding("top");else if("bottom"===this.styles.valign)N=this.y+this.height-this.padding("bottom");else{var Y=this.height-this.padding("vertical");N=this.y+Y/2+this.padding("top")}if("right"===this.styles.halign)W=this.x+this.width-this.padding("right");else if("center"===this.styles.halign){var J=this.width-this.padding("horizontal");W=this.x+J/2+this.padding("left")}else W=this.x+this.padding("left");return{x:W,y:N}},ne.prototype.getContentHeight=function(N,Y){void 0===Y&&(Y=1.15);var n=(Array.isArray(this.text)?this.text.length:1)*(this.styles.fontSize/N*Y)+this.padding("vertical");return Math.max(n,this.styles.minCellHeight)},ne.prototype.padding=function(N){var Y=(0,Z.parseSpacing)(this.styles.cellPadding,0);return"vertical"===N?Y.top+Y.bottom:"horizontal"===N?Y.left+Y.right:Y[N]},ne}();P.Cell=fe;var q=function(){function ne(N,Y,W){this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.dataKey=N,this.raw=Y,this.index=W}return ne.prototype.getMaxCustomCellWidth=function(N){for(var Y=0,W=0,J=N.allRows();W<J.length;W++){var K=J[W].cells[this.index];K&&"number"==typeof K.styles.cellWidth&&(Y=Math.max(Y,K.styles.cellWidth))}return Y},ne}();P.Column=q},356:function(R,P){Object.defineProperty(P,"__esModule",{value:!0}),P.assign=void 0,P.assign=function G(Q,H,Z,X,z){if(null==Q)throw new TypeError("Cannot convert undefined or null to object");for(var fe=Object(Q),q=1;q<arguments.length;q++){var ne=arguments[q];if(null!=ne)for(var N in ne)Object.prototype.hasOwnProperty.call(ne,N)&&(fe[N]=ne[N])}return fe}},972:function(R,P,G){Object.defineProperty(P,"__esModule",{value:!0}),P.createTable=void 0;var Q=G(744),H=G(260),Z=G(324),X=G(796),z=G(356);function ne(n,K,se,De,Fe,_e){var ke={};return K.map(function(Ve,Ie){for(var Se=0,de={},le=0,xe=0,We=0,st=se;We<st.length;We++){var ut=st[We];if(null==ke[ut.index]||0===ke[ut.index].left)if(0===xe){var Ae,ye={};"object"==typeof(Ae=Array.isArray(Ve)?Ve[ut.index-le-Se]:Ve[ut.dataKey])&&!Array.isArray(Ae)&&(ye=Ae?.styles||{});var Re=J(n,ut,Ie,Fe,De,_e,ye),Qe=new H.Cell(Ae,Re,n);de[ut.dataKey]=Qe,de[ut.index]=Qe,ke[ut.index]={left:Qe.rowSpan-1,times:xe=Qe.colSpan-1}}else xe--,le++;else ke[ut.index].left--,xe=ke[ut.index].times,Se++}return new H.Row(Ve,Ie,n,de)})}function N(n,K){var se={};return n.forEach(function(De){if(null!=De.raw){var Fe=function Y(n,K){if("head"===n){if("object"==typeof K)return K.header||K.title||null;if("string"==typeof K||"number"==typeof K)return K}else if("foot"===n&&"object"==typeof K)return K.footer;return null}(K,De.raw);null!=Fe&&(se[De.dataKey]=Fe)}}),Object.keys(se).length>0?se:null}function J(n,K,se,De,Fe,_e,ke){var Ve,be=(0,X.getTheme)(De);"head"===n?Ve=Fe.headStyles:"body"===n?Ve=Fe.bodyStyles:"foot"===n&&(Ve=Fe.footStyles);var Ie=(0,z.assign)({},be.table,be[n],Fe.styles,Ve),de="body"===n&&(Fe.columnStyles[K.dataKey]||Fe.columnStyles[K.index])||{},le="body"===n&&se%2==0?(0,z.assign)({},be.alternateRow,Fe.alternateRowStyles):{},xe=(0,X.defaultStyles)(_e),We=(0,z.assign)({},xe,Ie,le,de);return(0,z.assign)(We,ke)}P.createTable=function fe(n,K){var se=new Q.DocHandler(n),De=function q(n,K){var Fe,se=n.content,De=function W(n){return n.map(function(K,se){var De,Fe,_e;return _e="object"==typeof K&&null!==(Fe=null!==(De=K.dataKey)&&void 0!==De?De:K.key)&&void 0!==Fe?Fe:se,new H.Column(_e,K,se)})}(se.columns);0===se.head.length&&(Fe=N(De,"head"))&&se.head.push(Fe),0===se.foot.length&&(Fe=N(De,"foot"))&&se.foot.push(Fe);var _e=n.settings.theme,ke=n.styles;return{columns:De,head:ne("head",se.head,De,ke,_e,K),body:ne("body",se.body,De,ke,_e,K),foot:ne("foot",se.foot,De,ke,_e,K)}}(K,se.scaleFactor()),Fe=new H.Table(K,De);return(0,Z.calculateWidths)(se,Fe),se.applyStyles(se.userStyles),Fe}},664:function(R,P,G){Object.defineProperty(P,"__esModule",{value:!0}),P.addPage=P.drawTable=void 0;var Q=G(420),H=G(260),Z=G(744),X=G(356),z=G(136),fe=G(224);function N(Se,de,le,xe){var We=de.settings;Se.applyStyles(Se.userStyles),("firstPage"===We.showHead||"everyPage"===We.showHead)&&de.head.forEach(function(st){return Fe(Se,de,st,le,xe)})}function W(Se,de,le,xe,We,st){Se.applyStyles(Se.userStyles),st=st??de.body.length;var ut=Math.min(le+st,de.body.length),Ae=-1;return de.body.slice(le,ut).forEach(function(ye,Re){var vt=be(Se,de,le+Re===de.body.length-1,xe);ye.canEntireRowFit(vt,We)&&(Fe(Se,de,ye,xe,We),Ae=le+Re)}),Ae}function J(Se,de,le,xe){var We=de.settings;Se.applyStyles(Se.userStyles),("lastPage"===We.showFoot||"everyPage"===We.showFoot)&&de.foot.forEach(function(st){return Fe(Se,de,st,le,xe)})}function n(Se,de,le){var xe=le.getLineHeight(Se.styles.fontSize),We=Se.padding("vertical"),st=Math.floor((de-We)/xe);return Math.max(0,st)}function De(Se,de,le,xe,We,st,ut){var Ae=be(Se,de,xe,st);if(le.canEntireRowFit(Ae,ut))Fe(Se,de,le,st,ut);else if(function se(Se,de,le,xe){var We=Se.pageSize().height,st=xe.settings.margin,Ae=We-(st.top+st.bottom);"body"===de.section&&(Ae-=xe.getHeadHeight(xe.columns)+xe.getFootHeight(xe.columns));var ye=de.getMinimumRowHeight(xe.columns,Se),Re=ye<le;if(ye>Ae)return console.error("Will not be able to print row ".concat(de.index," correctly since it's minimum height is larger than page height")),!0;if(!Re)return!1;var Qe=de.hasRowSpan(xe.columns);return de.getMaxCellHeight(xe.columns)>Ae?(Qe&&console.error("The content of row ".concat(de.index," will not be drawn correctly since drawing rows with a height larger than the page height and has cells with rowspans is not supported.")),!0):!(Qe||"avoid"===xe.settings.rowPageBreak)}(Se,le,Ae,de)){var ye=function K(Se,de,le,xe){var We={};Se.spansMultiplePages=!0,Se.height=0;for(var st=0,ut=0,Ae=le.columns;ut<Ae.length;ut++)if(Re=Se.cells[(ye=Ae[ut]).index]){Array.isArray(Re.text)||(Re.text=[Re.text]);var Qe=new H.Cell(Re.raw,Re.styles,Re.section);(Qe=(0,X.assign)(Qe,Re)).text=[];var vt=n(Re,de,xe);Re.text.length>vt&&(Qe.text=Re.text.splice(vt,Re.text.length));var Nt=xe.scaleFactor(),Dt=xe.getLineHeightFactor();Re.contentHeight=Re.getContentHeight(Nt,Dt),Re.contentHeight>=de&&(Re.contentHeight=de,Qe.styles.minCellHeight-=de),Re.contentHeight>Se.height&&(Se.height=Re.contentHeight),Qe.contentHeight=Qe.getContentHeight(Nt,Dt),Qe.contentHeight>st&&(st=Qe.contentHeight),We[ye.index]=Qe}var qe=new H.Row(Se.raw,-1,Se.section,We,!0);qe.height=st;for(var ze=0,Ge=le.columns;ze<Ge.length;ze++){var ye,Re;(Qe=qe.cells[(ye=Ge[ze]).index])&&(Qe.height=qe.height),(Re=Se.cells[ye.index])&&(Re.height=Se.height)}return qe}(le,Ae,de,Se);Fe(Se,de,le,st,ut),Ve(Se,de,We,st,ut),De(Se,de,ye,xe,We,st,ut)}else Ve(Se,de,We,st,ut),De(Se,de,le,xe,We,st,ut)}function Fe(Se,de,le,xe,We){xe.x=de.settings.margin.left;for(var st=0,ut=We;st<ut.length;st++){var Ae=ut[st],ye=le.cells[Ae.index];if(ye)if(Se.applyStyles(ye.styles),ye.x=xe.x,ye.y=xe.y,!1!==de.callCellHooks(Se,de.hooks.willDrawCell,ye,le,Ae,xe)){_e(Se,ye,xe);var Qe=ye.getTextPos();(0,z.default)(ye.text,Qe.x,Qe.y,{halign:ye.styles.halign,valign:ye.styles.valign,maxWidth:Math.ceil(ye.width-ye.padding("left")-ye.padding("right"))},Se.getDocument()),de.callCellHooks(Se,de.hooks.didDrawCell,ye,le,Ae,xe),xe.x+=Ae.width}else xe.x+=Ae.width;else xe.x+=Ae.width}xe.y+=le.height}function _e(Se,de,le){var xe=de.styles;if(Se.getDocument().setFillColor(Se.getDocument().getFillColor()),"number"==typeof xe.lineWidth){var We=(0,Q.getFillStyle)(xe.lineWidth,xe.fillColor);We&&Se.rect(de.x,le.y,de.width,de.height,We)}else"object"==typeof xe.lineWidth&&(xe.fillColor&&Se.rect(de.x,le.y,de.width,de.height,"F"),function ke(Se,de,le,xe){var We,st,ut,Ae;function ye(Re,Qe,vt,Nt,Dt){Se.getDocument().setLineWidth(Re),Se.getDocument().line(Qe,vt,Nt,Dt,"S")}xe.top&&(We=le.x,ut=le.x+de.width,xe.right&&(ut+=.5*xe.right),xe.left&&(We-=.5*xe.left),ye(xe.top,We,st=le.y,ut,Ae=le.y)),xe.bottom&&(We=le.x,ut=le.x+de.width,xe.right&&(ut+=.5*xe.right),xe.left&&(We-=.5*xe.left),ye(xe.bottom,We,st=le.y+de.height,ut,Ae=le.y+de.height)),xe.left&&(st=le.y,Ae=le.y+de.height,xe.top&&(st-=.5*xe.top),xe.bottom&&(Ae+=.5*xe.bottom),ye(xe.left,We=le.x,st,ut=le.x,Ae)),xe.right&&(st=le.y,Ae=le.y+de.height,xe.top&&(st-=.5*xe.top),xe.bottom&&(Ae+=.5*xe.bottom),ye(xe.right,We=le.x+de.width,st,ut=le.x+de.width,Ae))}(Se,de,le,xe.lineWidth))}function be(Se,de,le,xe){var We=de.settings.margin.bottom,st=de.settings.showFoot;return("everyPage"===st||"lastPage"===st&&le)&&(We+=de.getFootHeight(de.columns)),Se.pageSize().height-xe.y-We}function Ve(Se,de,le,xe,We,st){void 0===We&&(We=[]),void 0===st&&(st=!1),Se.applyStyles(Se.userStyles),"everyPage"===de.settings.showFoot&&!st&&de.foot.forEach(function(Ae){return Fe(Se,de,Ae,xe,We)}),de.callEndPageHooks(Se,xe);var ut=de.settings.margin;(0,Q.addTableBorder)(Se,de,le,xe),Ie(Se),de.pageNumber++,de.pageCount++,xe.x=ut.left,xe.y=ut.top,le.y=ut.top,de.callWillDrawPageHooks(Se,xe),"everyPage"===de.settings.showHead&&(de.head.forEach(function(Ae){return Fe(Se,de,Ae,xe,We)}),Se.applyStyles(Se.userStyles))}function Ie(Se){var de=Se.pageNumber();return Se.setPage(de+1),Se.pageNumber()===de&&(Se.addPage(),!0)}P.drawTable=function q(Se,de){var le=de.settings,xe=le.startY,We=le.margin,st={x:We.left,y:xe},ut=de.getHeadHeight(de.columns)+de.getFootHeight(de.columns),Ae=xe+We.bottom+ut;"avoid"===le.pageBreak&&(Ae+=de.body.reduce(function(Nt,Dt){return Nt+Dt.height},0));var Qe=new Z.DocHandler(Se);("always"===le.pageBreak||null!=le.startY&&Ae>Qe.pageSize().height)&&(Ie(Qe),st.y=We.top),de.callWillDrawPageHooks(Qe,st);var vt=(0,X.assign)({},st);de.startPageNumber=Qe.pageNumber(),le.horizontalPageBreak?function ne(Se,de,le,xe){var We=(0,fe.calculateAllColumnsCanFitInPage)(Se,de);if("afterAllRows"===de.settings.horizontalPageBreakBehaviour)We.forEach(function(Re,Qe){Se.applyStyles(Se.userStyles),Qe>0?Ve(Se,de,le,xe,Re.columns,!0):N(Se,de,xe,Re.columns),function Y(Se,de,le,xe,We){Se.applyStyles(Se.userStyles),de.body.forEach(function(st,ut){De(Se,de,st,ut===de.body.length-1,le,xe,We)})}(Se,de,le,xe,Re.columns),J(Se,de,xe,Re.columns)});else for(var ut=-1,Ae=We[0],ye=function(){var Re=ut;if(Ae){Se.applyStyles(Se.userStyles);var Qe=Ae.columns;ut>=0?Ve(Se,de,le,xe,Qe,!0):N(Se,de,xe,Qe),Re=W(Se,de,ut+1,xe,Qe),J(Se,de,xe,Qe)}var vt=Re-ut;We.slice(1).forEach(function(Nt){Se.applyStyles(Se.userStyles),Ve(Se,de,le,xe,Nt.columns,!0),W(Se,de,ut+1,xe,Nt.columns,vt),J(Se,de,xe,Nt.columns)}),ut=Re};ut<de.body.length-1;)ye()}(Qe,de,vt,st):(Qe.applyStyles(Qe.userStyles),("firstPage"===le.showHead||"everyPage"===le.showHead)&&de.head.forEach(function(Nt){return Fe(Qe,de,Nt,st,de.columns)}),Qe.applyStyles(Qe.userStyles),de.body.forEach(function(Nt,Dt){De(Qe,de,Nt,Dt===de.body.length-1,vt,st,de.columns)}),Qe.applyStyles(Qe.userStyles),("lastPage"===le.showFoot||"everyPage"===le.showFoot)&&de.foot.forEach(function(Nt){return Fe(Qe,de,Nt,st,de.columns)})),(0,Q.addTableBorder)(Qe,de,vt,st),de.callEndPageHooks(Qe,st),de.finalY=st.y,Se.lastAutoTable=de,Se.previousAutoTable=de,Se.autoTable&&(Se.autoTable.previous=de),Qe.applyStyles(Qe.userStyles)},P.addPage=Ve},224:function(R,P,G){Object.defineProperty(P,"__esModule",{value:!0}),P.calculateAllColumnsCanFitInPage=void 0;var Q=G(420);function H(X,z,fe){var q;void 0===fe&&(fe={});var ne=(0,Q.getPageAvailableWidth)(X,z),N=new Map,Y=[],W=[],J=[];Array.isArray(z.settings.horizontalPageBreakRepeat)?J=z.settings.horizontalPageBreakRepeat:("string"==typeof z.settings.horizontalPageBreakRepeat||"number"==typeof z.settings.horizontalPageBreakRepeat)&&(J=[z.settings.horizontalPageBreakRepeat]),J.forEach(function(De){var Fe=z.columns.find(function(_e){return _e.dataKey===De||_e.index===De});Fe&&!N.has(Fe.index)&&(N.set(Fe.index,!0),Y.push(Fe.index),W.push(z.columns[Fe.index]),ne-=Fe.wrappedWidth)});for(var n=!0,K=null!==(q=fe?.start)&&void 0!==q?q:0;K<z.columns.length;)if(N.has(K))K++;else{var se=z.columns[K].wrappedWidth;if(!(n||ne>=se))break;n=!1,Y.push(K),W.push(z.columns[K]),ne-=se,K++}return{colIndexes:Y,columns:W,lastIndex:K-1}}P.calculateAllColumnsCanFitInPage=function Z(X,z){for(var fe=[],q=0;q<z.columns.length;q++){var ne=H(X,z,{start:q});ne.columns.length&&(fe.push(ne),q=ne.lastIndex)}return fe}},324:function(R,P,G){Object.defineProperty(P,"__esModule",{value:!0}),P.ellipsize=P.resizeColumns=P.calculateWidths=void 0;var Q=G(420);function X(Y,W,J){for(var n=W,K=Y.reduce(function(Se,de){return Se+de.wrappedWidth},0),se=0;se<Y.length;se++){var De=Y[se],ke=De.width+n*(De.wrappedWidth/K),be=J(De),Ve=ke<be?be:ke;W-=Ve-De.width,De.width=Ve}if(W=Math.round(1e10*W)/1e10){var Ie=Y.filter(function(Se){return!(W<0)||Se.width>J(Se)});Ie.length&&(W=X(Ie,W,J))}return W}function ne(Y,W,J,n,K){return Y.map(function(se){return function N(Y,W,J,n,K){var se=1e4*n.scaleFactor();if((W=Math.ceil(W*se)/se)>=(0,Q.getStringWidth)(Y,J,n))return Y;for(;W<(0,Q.getStringWidth)(Y+K,J,n)&&!(Y.length<=1);)Y=Y.substring(0,Y.length-1);return Y.trim()+K}(se,W,J,n,K)})}P.calculateWidths=function H(Y,W){!function Z(Y,W){var J=Y.scaleFactor(),n=W.settings.horizontalPageBreak,K=(0,Q.getPageAvailableWidth)(Y,W);W.allRows().forEach(function(se){for(var De=0,Fe=W.columns;De<Fe.length;De++){var _e=Fe[De],ke=se.cells[_e.index];if(ke){W.callCellHooks(Y,W.hooks.didParseCell,ke,se,_e,null);var Ve=ke.padding("horizontal");ke.contentWidth=(0,Q.getStringWidth)(ke.text,ke.styles,Y)+Ve;var Ie=(0,Q.getStringWidth)(ke.text.join(" ").split(/[^\S\u00A0]+/),ke.styles,Y);ke.minReadableWidth=Ie+ke.padding("horizontal"),"number"==typeof ke.styles.cellWidth?(ke.minWidth=ke.styles.cellWidth,ke.wrappedWidth=ke.styles.cellWidth):"wrap"===ke.styles.cellWidth||!0===n?ke.contentWidth>K?(ke.minWidth=K,ke.wrappedWidth=K):(ke.minWidth=ke.contentWidth,ke.wrappedWidth=ke.contentWidth):(ke.minWidth=ke.styles.minCellWidth||10/J,ke.wrappedWidth=ke.contentWidth,ke.minWidth>ke.wrappedWidth&&(ke.wrappedWidth=ke.minWidth))}}}),W.allRows().forEach(function(se){for(var De=0,Fe=W.columns;De<Fe.length;De++){var _e=Fe[De],ke=se.cells[_e.index];if(ke&&1===ke.colSpan)_e.wrappedWidth=Math.max(_e.wrappedWidth,ke.wrappedWidth),_e.minWidth=Math.max(_e.minWidth,ke.minWidth),_e.minReadableWidth=Math.max(_e.minReadableWidth,ke.minReadableWidth);else{var be=W.styles.columnStyles[_e.dataKey]||W.styles.columnStyles[_e.index]||{},Ve=be.cellWidth||be.minCellWidth;Ve&&"number"==typeof Ve&&(_e.minWidth=Ve,_e.wrappedWidth=Ve)}ke&&(ke.colSpan>1&&!_e.minWidth&&(_e.minWidth=ke.minWidth),ke.colSpan>1&&!_e.wrappedWidth&&(_e.wrappedWidth=ke.minWidth))}})}(Y,W);var J=[],n=0;W.columns.forEach(function(se){var De=se.getMaxCustomCellWidth(W);De?se.width=De:(se.width=se.wrappedWidth,J.push(se)),n+=se.width});var K=W.getWidth(Y.pageSize().width)-n;K&&(K=X(J,K,function(se){return Math.max(se.minReadableWidth,se.minWidth)})),K&&(K=X(J,K,function(se){return se.minWidth})),K=Math.abs(K),!W.settings.horizontalPageBreak&&K>.1/Y.scaleFactor()&&(K=K<1?K:Math.round(K),console.warn("Of the table content, ".concat(K," units width could not fit page"))),function fe(Y){for(var W=Y.allRows(),J=0;J<W.length;J++)for(var n=W[J],K=null,se=0,De=0,Fe=0;Fe<Y.columns.length;Fe++){var _e=Y.columns[Fe];if((De-=1)>1&&Y.columns[Fe+1])se+=_e.width,delete n.cells[_e.index];else if(K){var ke=K;delete n.cells[_e.index],K=null,ke.width=_e.width+se}else{if(!(ke=n.cells[_e.index]))continue;if(De=ke.colSpan,se=0,ke.colSpan>1){K=ke,se+=_e.width;continue}ke.width=_e.width+se}}}(W),function q(Y,W){for(var J={count:0,height:0},n=0,K=Y.allRows();n<K.length;n++){for(var se=K[n],De=0,Fe=Y.columns;De<Fe.length;De++){var ke=se.cells[Fe[De].index];if(ke){W.applyStyles(ke.styles,!0);var be=ke.width-ke.padding("horizontal");if("linebreak"===ke.styles.overflow)ke.text=W.splitTextToSize(ke.text,be+1/W.scaleFactor(),{fontSize:ke.styles.fontSize});else if("ellipsize"===ke.styles.overflow)ke.text=ne(ke.text,be,ke.styles,W,"...");else if("hidden"===ke.styles.overflow)ke.text=ne(ke.text,be,ke.styles,W,"");else if("function"==typeof ke.styles.overflow){var Ve=ke.styles.overflow(ke.text,be);ke.text="string"==typeof Ve?[Ve]:Ve}ke.contentHeight=ke.getContentHeight(W.scaleFactor(),W.getLineHeightFactor());var Ie=ke.contentHeight/ke.rowSpan;ke.rowSpan>1&&J.count*J.height<Ie*ke.rowSpan?J={height:Ie,count:ke.rowSpan}:J&&J.count>0&&J.height>Ie&&(Ie=J.height),Ie>se.height&&(se.height=Ie)}}J.count--}}(W,Y),function z(Y){for(var W={},J=1,n=Y.allRows(),K=0;K<n.length;K++)for(var se=n[K],De=0,Fe=Y.columns;De<Fe.length;De++){var _e=Fe[De],ke=W[_e.index];if(J>1)J--,delete se.cells[_e.index];else if(ke)ke.cell.height+=se.height,J=ke.cell.colSpan,delete se.cells[_e.index],ke.left--,ke.left<=1&&delete W[_e.index];else{var be=se.cells[_e.index];if(!be)continue;if(be.height=se.height,be.rowSpan>1){var Ve=n.length-K;W[_e.index]={cell:be,left:be.rowSpan>Ve?Ve:be.rowSpan,row:se}}}}}(W)},P.resizeColumns=X,P.ellipsize=ne},964:function(R){if(typeof T>"u"){var P=new Error("Cannot find module 'undefined'");throw P.code="MODULE_NOT_FOUND",P}R.exports=T}},E={};function D(R){var P=E[R];if(void 0!==P)return P.exports;var G=E[R]={exports:{}};return C[R].call(G.exports,G,G.exports,D),G.exports}var k={};return function(){var R=k;Object.defineProperty(R,"__esModule",{value:!0}),R.Cell=R.Column=R.Row=R.Table=R.CellHookData=R.__drawTable=R.__createTable=R.applyPlugin=void 0;var P=D(340),G=D(776),Q=D(664),H=D(972),Z=D(260);Object.defineProperty(R,"Table",{enumerable:!0,get:function(){return Z.Table}});var X=D(172);Object.defineProperty(R,"CellHookData",{enumerable:!0,get:function(){return X.CellHookData}});var z=D(260);function fe(W){(0,P.default)(W)}Object.defineProperty(R,"Cell",{enumerable:!0,get:function(){return z.Cell}}),Object.defineProperty(R,"Column",{enumerable:!0,get:function(){return z.Column}}),Object.defineProperty(R,"Row",{enumerable:!0,get:function(){return z.Row}}),R.applyPlugin=fe,R.__createTable=function ne(W,J){var n=(0,G.parseInput)(W,J);return(0,H.createTable)(W,n)},R.__drawTable=function N(W,J){(0,Q.drawTable)(W,J)};try{var Y=D(964);Y.jsPDF&&(Y=Y.jsPDF),fe(Y)}catch{}R.default=function q(W,J){var n=(0,G.parseInput)(W,J),K=(0,H.createTable)(W,n);(0,Q.drawTable)(W,K)}}(),k}())},9107:(m,y,b)=>{"use strict";b.r(y),b.d(y,{AcroForm:()=>Ws,AcroFormAppearance:()=>Tr,AcroFormButton:()=>ai,AcroFormCheckBox:()=>Fo,AcroFormChoiceField:()=>Bt,AcroFormComboBox:()=>Sn,AcroFormEditBox:()=>ii,AcroFormListBox:()=>yn,AcroFormPasswordField:()=>Po,AcroFormPushButton:()=>br,AcroFormRadioButton:()=>Kn,AcroFormTextField:()=>ho,GState:()=>ei,ShadingPattern:()=>Zn,TilingPattern:()=>vr,default:()=>AT,jsPDF:()=>ti});var T=b(2284),D=Uint8Array,k=Uint16Array,R=Int32Array,P=new D([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),G=new D([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Q=new D([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),H=function(j,O){for(var V=new k(31),ie=0;ie<31;++ie)V[ie]=O+=1<<j[ie-1];var ge=new R(V[30]);for(ie=1;ie<30;++ie)for(var ue=V[ie];ue<V[ie+1];++ue)ge[ue]=ue-V[ie]<<5|ie;return{b:V,r:ge}},Z=H(P,2),X=Z.b,z=Z.r;X[28]=258,z[258]=28;for(var fe=H(G,0),q=fe.b,ne=fe.r,N=new k(32768),Y=0;Y<32768;++Y){var W=(43690&Y)>>1|(21845&Y)<<1;N[Y]=((65280&(W=(61680&(W=(52428&W)>>2|(13107&W)<<2))>>4|(3855&W)<<4))>>8|(255&W)<<8)>>1}var J=function(j,O,V){for(var ie=j.length,ge=0,ue=new k(O);ge<ie;++ge)j[ge]&&++ue[j[ge]-1];var Ne,Me=new k(O);for(ge=1;ge<O;++ge)Me[ge]=Me[ge-1]+ue[ge-1]<<1;if(V){Ne=new k(1<<O);var Be=15-O;for(ge=0;ge<ie;++ge)if(j[ge])for(var it=ge<<4|j[ge],pt=O-j[ge],ft=Me[j[ge]-1]++<<pt,kt=ft|(1<<pt)-1;ft<=kt;++ft)Ne[N[ft]>>Be]=it}else for(Ne=new k(ie),ge=0;ge<ie;++ge)j[ge]&&(Ne[ge]=N[Me[j[ge]-1]++]>>15-j[ge]);return Ne},n=new D(288);for(Y=0;Y<144;++Y)n[Y]=8;for(Y=144;Y<256;++Y)n[Y]=9;for(Y=256;Y<280;++Y)n[Y]=7;for(Y=280;Y<288;++Y)n[Y]=8;var K=new D(32);for(Y=0;Y<32;++Y)K[Y]=5;var se=J(n,9,0),De=J(n,9,1),Fe=J(K,5,0),_e=J(K,5,1),ke=function(j){for(var O=j[0],V=1;V<j.length;++V)j[V]>O&&(O=j[V]);return O},be=function(j,O,V){var ie=O/8|0;return(j[ie]|j[ie+1]<<8)>>(7&O)&V},Ve=function(j,O){var V=O/8|0;return(j[V]|j[V+1]<<8|j[V+2]<<16)>>(7&O)},Ie=function(j){return(j+7)/8|0},Se=function(j,O,V){return(null==O||O<0)&&(O=0),(null==V||V>j.length)&&(V=j.length),new D(j.subarray(O,V))},le=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],xe=function(j,O,V){var ie=new Error(O||le[j]);if(ie.code=j,Error.captureStackTrace&&Error.captureStackTrace(ie,xe),!V)throw ie;return ie},st=function(j,O,V){var ie=O/8|0;j[ie]|=V<<=7&O,j[ie+1]|=V>>8},ut=function(j,O,V){var ie=O/8|0;j[ie]|=V<<=7&O,j[ie+1]|=V>>8,j[ie+2]|=V>>16},Ae=function(j,O){for(var V=[],ie=0;ie<j.length;++ie)j[ie]&&V.push({s:ie,f:j[ie]});var ge=V.length,ue=V.slice();if(!ge)return{t:qe,l:0};if(1==ge){var Me=new D(V[0].s+1);return Me[V[0].s]=1,{t:Me,l:1}}V.sort(function(Ai,sr){return Ai.f-sr.f}),V.push({s:-1,f:25001});var Ne=V[0],Be=V[1],it=0,pt=1,ft=2;for(V[0]={s:-1,f:Ne.f+Be.f,l:Ne,r:Be};pt!=ge-1;)Ne=V[V[it].f<V[ft].f?it++:ft++],Be=V[it!=pt&&V[it].f<V[ft].f?it++:ft++],V[pt++]={s:-1,f:Ne.f+Be.f,l:Ne,r:Be};var kt=ue[0].s;for(ie=1;ie<ge;++ie)ue[ie].s>kt&&(kt=ue[ie].s);var Ze=new k(kt+1),Qt=ye(V[pt-1],Ze,0);if(Qt>O){ie=0;var Ht=0,rn=Qt-O,St=1<<rn;for(ue.sort(function(sr,si){return Ze[si.s]-Ze[sr.s]||sr.f-si.f});ie<ge;++ie){var nn=ue[ie].s;if(!(Ze[nn]>O))break;Ht+=St-(1<<Qt-Ze[nn]),Ze[nn]=O}for(Ht>>=rn;Ht>0;){var Vn=ue[ie].s;Ze[Vn]<O?Ht-=1<<O-Ze[Vn]++-1:++ie}for(;ie>=0&&Ht;--ie){var qn=ue[ie].s;Ze[qn]==O&&(--Ze[qn],++Ht)}Qt=O}return{t:new D(Ze),l:Qt}},ye=function(j,O,V){return-1==j.s?Math.max(ye(j.l,O,V+1),ye(j.r,O,V+1)):O[j.s]=V},Re=function(j){for(var O=j.length;O&&!j[--O];);for(var V=new k(++O),ie=0,ge=j[0],ue=1,Me=function(Be){V[ie++]=Be},Ne=1;Ne<=O;++Ne)if(j[Ne]==ge&&Ne!=O)++ue;else{if(!ge&&ue>2){for(;ue>138;ue-=138)Me(32754);ue>2&&(Me(ue>10?ue-11<<5|28690:ue-3<<5|12305),ue=0)}else if(ue>3){for(Me(ge),--ue;ue>6;ue-=6)Me(8304);ue>2&&(Me(ue-3<<5|8208),ue=0)}for(;ue--;)Me(ge);ue=1,ge=j[Ne]}return{c:V.subarray(0,ie),n:O}},Qe=function(j,O){for(var V=0,ie=0;ie<O.length;++ie)V+=j[ie]*O[ie];return V},vt=function(j,O,V){var ie=V.length,ge=Ie(O+2);j[ge]=255&ie,j[ge+1]=ie>>8,j[ge+2]=255^j[ge],j[ge+3]=255^j[ge+1];for(var ue=0;ue<ie;++ue)j[ge+ue+4]=V[ue];return 8*(ge+4+ie)},Nt=function(j,O,V,ie,ge,ue,Me,Ne,Be,it,pt){st(O,pt++,V),++ge[256];for(var ft=Ae(ge,15),kt=ft.t,Ze=ft.l,Qt=Ae(ue,15),Ht=Qt.t,rn=Qt.l,St=Re(kt),nn=St.c,Vn=St.n,qn=Re(Ht),Ai=qn.c,sr=qn.n,si=new k(19),bn=0;bn<nn.length;++bn)++si[31&nn[bn]];for(bn=0;bn<Ai.length;++bn)++si[31&Ai[bn]];for(var ui=Ae(si,7),ji=ui.t,Ut=ui.l,jt=19;jt>4&&!ji[Q[jt-1]];--jt);var vi,Mi,li,Pi,Gn=it+5<<3,Cn=Qe(ge,n)+Qe(ue,K)+Me,Ei=Qe(ge,kt)+Qe(ue,Ht)+Me+14+3*jt+Qe(si,ji)+2*si[16]+3*si[17]+7*si[18];if(Be>=0&&Gn<=Cn&&Gn<=Ei)return vt(O,pt,j.subarray(Be,Be+it));if(st(O,pt,1+(Ei<Cn)),pt+=2,Ei<Cn){vi=J(kt,Ze,0),Mi=kt,li=J(Ht,rn,0),Pi=Ht;var Qi=J(ji,Ut,0);for(st(O,pt,Vn-257),st(O,pt+5,sr-1),st(O,pt+10,jt-4),pt+=14,bn=0;bn<jt;++bn)st(O,pt+3*bn,ji[Q[bn]]);pt+=3*jt;for(var no=[nn,Ai],mt=0;mt<2;++mt){var on=no[mt];for(bn=0;bn<on.length;++bn)st(O,pt,Qi[mn=31&on[bn]]),pt+=ji[mn],mn>15&&(st(O,pt,on[bn]>>5&127),pt+=on[bn]>>12)}}else vi=se,Mi=n,li=Fe,Pi=K;for(bn=0;bn<Ne;++bn){var Ln=ie[bn];if(Ln>255){var mn;ut(O,pt,vi[257+(mn=Ln>>18&31)]),pt+=Mi[mn+257],mn>7&&(st(O,pt,Ln>>23&31),pt+=P[mn]);var zn=31&Ln;ut(O,pt,li[zn]),pt+=Pi[zn],zn>3&&(ut(O,pt,Ln>>5&8191),pt+=G[zn])}else ut(O,pt,vi[Ln]),pt+=Mi[Ln]}return ut(O,pt,vi[256]),pt+Mi[256]},Dt=new R([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),qe=new D(0),Dn=function(){var j=1,O=0;return{p:function(V){for(var ie=j,ge=O,ue=0|V.length,Me=0;Me!=ue;){for(var Ne=Math.min(Me+2655,ue);Me<Ne;++Me)ge+=ie+=V[Me];ie=(65535&ie)+15*(ie>>16),ge=(65535&ge)+15*(ge>>16)}j=ie,O=ge},d:function(){return(255&(j%=65521))<<24|(65280&j)<<8|(255&(O%=65521))<<8|O>>8}}},wt=function(j,O,V,ie,ge){if(!ge&&(ge={l:1},O.dictionary)){var ue=O.dictionary.subarray(-32768),Me=new D(ue.length+j.length);Me.set(ue),Me.set(j,ue.length),j=Me,ge.w=ue.length}return function(j,O,V,ie,ge,ue){var Me=ue.z||j.length,Ne=new D(ie+Me+5*(1+Math.ceil(Me/7e3))+ge),Be=Ne.subarray(ie,Ne.length-ge),it=ue.l,pt=7&(ue.r||0);if(O){pt&&(Be[0]=ue.r>>3);for(var ft=Dt[O-1],kt=ft>>13,Ze=8191&ft,Qt=(1<<V)-1,Ht=ue.p||new k(32768),rn=ue.h||new k(Qt+1),St=Math.ceil(V/3),nn=2*St,Vn=function(As){return(j[As]^j[As+1]<<St^j[As+2]<<nn)&Qt},qn=new R(25e3),Ai=new k(288),sr=new k(32),si=0,bn=0,ui=ue.i||0,ji=0,Ut=ue.w||0,jt=0;ui+2<Me;++ui){var Gn=Vn(ui),Cn=32767&ui,Ei=rn[Gn];if(Ht[Cn]=Ei,rn[Gn]=Cn,Ut<=ui){var vi=Me-ui;if((si>7e3||ji>24576)&&(vi>423||!it)){pt=Nt(j,Be,0,qn,Ai,sr,bn,ji,jt,ui-jt,pt),ji=si=bn=0,jt=ui;for(var Mi=0;Mi<286;++Mi)Ai[Mi]=0;for(Mi=0;Mi<30;++Mi)sr[Mi]=0}var li=2,Pi=0,Qi=Ze,no=Cn-Ei&32767;if(vi>2&&Gn==Vn(ui-no))for(var mt=Math.min(kt,vi)-1,on=Math.min(32767,ui),mn=Math.min(258,vi);no<=on&&--Qi&&Cn!=Ei;){if(j[ui+li]==j[ui+li-no]){for(var Ln=0;Ln<mn&&j[ui+Ln]==j[ui+Ln-no];++Ln);if(Ln>li){if(li=Ln,Pi=no,Ln>mt)break;var zn=Math.min(no,Ln-2),pi=0;for(Mi=0;Mi<zn;++Mi){var _i=ui-no+Mi&32767,Hr=_i-Ht[_i]&32767;Hr>pi&&(pi=Hr,Ei=_i)}}}no+=(Cn=Ei)-(Ei=Ht[Cn])&32767}if(Pi){qn[ji++]=268435456|z[li]<<18|ne[Pi];var kr=31&z[li],fo=31&ne[Pi];bn+=P[kr]+G[fo],++Ai[257+kr],++sr[fo],Ut=ui+li,++si}else qn[ji++]=j[ui],++Ai[j[ui]]}}for(ui=Math.max(ui,Ut);ui<Me;++ui)qn[ji++]=j[ui],++Ai[j[ui]];pt=Nt(j,Be,it,qn,Ai,sr,bn,ji,jt,ui-jt,pt),it||(ue.r=7&pt|Be[pt/8|0]<<3,pt-=7,ue.h=rn,ue.p=Ht,ue.i=ui,ue.w=Ut)}else{for(ui=ue.w||0;ui<Me+it;ui+=65535){var io=ui+65535;io>=Me&&(Be[pt/8|0]=it,io=Me),pt=vt(Be,pt+1,j.subarray(ui,io))}ue.i=Me}return Se(Ne,0,ie+Ie(pt)+ge)}(j,null==O.level?6:O.level,null==O.mem?ge.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(j.length)))):20:12+O.mem,V,ie,ge)},to=function(j,O,V){for(;V;++O)j[O]=V,V>>>=8};function Us(j,O){O||(O={});var V=Dn();V.p(j);var ie=wt(j,O,O.dictionary?6:2,4);return function(j,O){var V=O.level,ie=0==V?0:V<6?1:9==V?3:2;if(j[0]=120,j[1]=ie<<6|(O.dictionary&&32),j[1]|=31-(j[0]<<8|j[1])%31,O.dictionary){var ge=Dn();ge.p(O.dictionary),to(j,2,ge.d())}}(ie,O),to(ie,ie.length-4,V.d()),ie}function uu(j,O){return function(j,O,V,ie){var ge=j.length,ue=ie?ie.length:0;if(!ge||O.f&&!O.l)return V||new D(0);var Me=!V,Ne=Me||2!=O.i,Be=O.i;Me&&(V=new D(3*ge));var it=function(kr){var fo=V.length;if(kr>fo){var io=new D(Math.max(2*fo,kr));io.set(V),V=io}},pt=O.f||0,ft=O.p||0,kt=O.b||0,Ze=O.l,Qt=O.d,Ht=O.m,rn=O.n,St=8*ge;do{if(!Ze){pt=be(j,ft,1);var nn=be(j,ft+1,3);if(ft+=3,!nn){var qn=j[(Vn=Ie(ft)+4)-4]|j[Vn-3]<<8,Ai=Vn+qn;if(Ai>ge){Be&&xe(0);break}Ne&&it(kt+qn),V.set(j.subarray(Vn,Ai),kt),O.b=kt+=qn,O.p=ft=8*Ai,O.f=pt;continue}if(1==nn)Ze=De,Qt=_e,Ht=9,rn=5;else if(2==nn){var sr=be(j,ft,31)+257,si=be(j,ft+10,15)+4,bn=sr+be(j,ft+5,31)+1;ft+=14;for(var ui=new D(bn),ji=new D(19),Ut=0;Ut<si;++Ut)ji[Q[Ut]]=be(j,ft+3*Ut,7);ft+=3*si;var jt=ke(ji),Gn=(1<<jt)-1,Cn=J(ji,jt,1);for(Ut=0;Ut<bn;){var Vn,Ei=Cn[be(j,ft,Gn)];if(ft+=15&Ei,(Vn=Ei>>4)<16)ui[Ut++]=Vn;else{var vi=0,Mi=0;for(16==Vn?(Mi=3+be(j,ft,3),ft+=2,vi=ui[Ut-1]):17==Vn?(Mi=3+be(j,ft,7),ft+=3):18==Vn&&(Mi=11+be(j,ft,127),ft+=7);Mi--;)ui[Ut++]=vi}}var li=ui.subarray(0,sr),Pi=ui.subarray(sr);Ht=ke(li),rn=ke(Pi),Ze=J(li,Ht,1),Qt=J(Pi,rn,1)}else xe(1);if(ft>St){Be&&xe(0);break}}Ne&&it(kt+131072);for(var Qi=(1<<Ht)-1,no=(1<<rn)-1,mt=ft;;mt=ft){var on=(vi=Ze[Ve(j,ft)&Qi])>>4;if((ft+=15&vi)>St){Be&&xe(0);break}if(vi||xe(2),on<256)V[kt++]=on;else{if(256==on){mt=ft,Ze=null;break}var mn=on-254;on>264&&(mn=be(j,ft,(1<<(Ln=P[Ut=on-257]))-1)+X[Ut],ft+=Ln);var zn=Qt[Ve(j,ft)&no],pi=zn>>4;if(zn||xe(3),ft+=15&zn,Pi=q[pi],pi>3){var Ln=G[pi];Pi+=Ve(j,ft)&(1<<Ln)-1,ft+=Ln}if(ft>St){Be&&xe(0);break}Ne&&it(kt+131072);var _i=kt+mn;if(kt<Pi){var yi=ue-Pi,Hr=Math.min(Pi,_i);for(yi+kt<0&&xe(3);kt<Hr;++kt)V[kt]=ie[yi+kt]}for(;kt<_i;++kt)V[kt]=V[kt-Pi]}}O.l=Ze,O.p=mt,O.b=kt,O.f=pt,Ze&&(pt=1,O.m=Ht,O.d=Qt,O.n=rn)}while(!pt);return kt!=V.length&&Me?Se(V,0,kt):V.subarray(0,kt)}(j.subarray(function(j,O){return(8!=(15&j[0])||j[0]>>4>7||(j[0]<<8|j[1])%31)&&xe(6,"invalid zlib data"),(j[1]>>5&1)==+!O&&xe(6,"invalid zlib data: "+(32&j[1]?"need":"unexpected")+" dictionary"),2+(j[1]>>3&4)}(j,O&&O.dictionary),-4),{i:2},O&&O.out,O&&O.dictionary)}var Ec=typeof TextDecoder<"u"&&new TextDecoder;try{Ec.decode(qe,{stream:!0})}catch{}"function"==typeof queueMicrotask?queueMicrotask:"function"==typeof setTimeout&&setTimeout;var go=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function Aa(){go.console&&"function"==typeof go.console.log&&go.console.log.apply(go.console,arguments)}var Bs={log:Aa,warn:function(j){go.console&&("function"==typeof go.console.warn?go.console.warn.apply(go.console,arguments):Aa.call(null,arguments))},error:function(j){go.console&&("function"==typeof go.console.error?go.console.error.apply(go.console,arguments):Aa(j))}};function oo(j,O,V){var ie=new XMLHttpRequest;ie.open("GET",j),ie.responseType="blob",ie.onload=function(){al(ie.response,O,V)},ie.onerror=function(){Bs.error("could not download file")},ie.send()}function Kc(j){var O=new XMLHttpRequest;O.open("HEAD",j,!1);try{O.send()}catch{}return O.status>=200&&O.status<=299}function kc(j){try{j.dispatchEvent(new MouseEvent("click"))}catch{var O=document.createEvent("MouseEvents");O.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),j.dispatchEvent(O)}}var fi,_l,al=go.saveAs||("object"!==(typeof window>"u"?"undefined":(0,T.A)(window))||window!==go?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(j,O,V){var ie=go.URL||go.webkitURL,ge=document.createElement("a");ge.download=O=O||j.name||"download",ge.rel="noopener","string"==typeof j?(ge.href=j,ge.origin!==location.origin?Kc(ge.href)?oo(j,O,V):kc(ge,ge.target="_blank"):kc(ge)):(ge.href=ie.createObjectURL(j),setTimeout(function(){ie.revokeObjectURL(ge.href)},4e4),setTimeout(function(){kc(ge)},0))}:"msSaveOrOpenBlob"in navigator?function(j,O,V){if(O=O||j.name||"download","string"==typeof j)if(Kc(j))oo(j,O,V);else{var ie=document.createElement("a");ie.href=j,ie.target="_blank",setTimeout(function(){kc(ie)})}else navigator.msSaveOrOpenBlob((ge=j,void 0===(ue=V)?ue={autoBom:!1}:"object"!==(0,T.A)(ue)&&(Bs.warn("Deprecated: Expected third argument to be a object"),ue={autoBom:!ue}),ue.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(ge.type)?new Blob(["\ufeff",ge],{type:ge.type}):ge),O);var ge,ue}:function(j,O,V,ie){if((ie=ie||open("","_blank"))&&(ie.document.title=ie.document.body.innerText="downloading..."),"string"==typeof j)return oo(j,O,V);var ge="application/octet-stream"===j.type,ue=/constructor/i.test(go.HTMLElement)||go.safari,Me=/CriOS\/[\d]+/.test(navigator.userAgent);if((Me||ge&&ue)&&"object"===(typeof FileReader>"u"?"undefined":(0,T.A)(FileReader))){var Ne=new FileReader;Ne.onloadend=function(){var pt=Ne.result;pt=Me?pt:pt.replace(/^data:[^;]*;/,"data:attachment/file;"),ie?ie.location.href=pt:location=pt,ie=null},Ne.readAsDataURL(j)}else{var Be=go.URL||go.webkitURL,it=Be.createObjectURL(j);ie?ie.location=it:location.href=it,ie=null,setTimeout(function(){Be.revokeObjectURL(it)},4e4)}});function Is(j){var O;j=j||"",this.ok=!1,"#"==j.charAt(0)&&(j=j.substr(1,6)),j={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[j=(j=j.replace(/ /g,"")).toLowerCase()]||j;for(var V=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(Ne){return[parseInt(Ne[1]),parseInt(Ne[2]),parseInt(Ne[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(Ne){return[parseInt(Ne[1],16),parseInt(Ne[2],16),parseInt(Ne[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(Ne){return[parseInt(Ne[1]+Ne[1],16),parseInt(Ne[2]+Ne[2],16),parseInt(Ne[3]+Ne[3],16)]}}],ie=0;ie<V.length;ie++){var ue=V[ie].process,Me=V[ie].re.exec(j);Me&&(O=ue(Me),this.r=O[0],this.g=O[1],this.b=O[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var Ne=this.r.toString(16),Be=this.g.toString(16),it=this.b.toString(16);return 1==Ne.length&&(Ne="0"+Ne),1==Be.length&&(Be="0"+Be),1==it.length&&(it="0"+it),"#"+Ne+Be+it}}function ll(j,O){var V=j[0],ie=j[1],ge=j[2],ue=j[3];V=cl(V,ie,ge,ue,O[0],7,-680876936),ue=cl(ue,V,ie,ge,O[1],12,-389564586),ge=cl(ge,ue,V,ie,O[2],17,606105819),ie=cl(ie,ge,ue,V,O[3],22,-1044525330),V=cl(V,ie,ge,ue,O[4],7,-176418897),ue=cl(ue,V,ie,ge,O[5],12,1200080426),ge=cl(ge,ue,V,ie,O[6],17,-1473231341),ie=cl(ie,ge,ue,V,O[7],22,-45705983),V=cl(V,ie,ge,ue,O[8],7,1770035416),ue=cl(ue,V,ie,ge,O[9],12,-1958414417),ge=cl(ge,ue,V,ie,O[10],17,-42063),ie=cl(ie,ge,ue,V,O[11],22,-1990404162),V=cl(V,ie,ge,ue,O[12],7,1804603682),ue=cl(ue,V,ie,ge,O[13],12,-40341101),ge=cl(ge,ue,V,ie,O[14],17,-1502002290),V=yl(V,ie=cl(ie,ge,ue,V,O[15],22,1236535329),ge,ue,O[1],5,-165796510),ue=yl(ue,V,ie,ge,O[6],9,-1069501632),ge=yl(ge,ue,V,ie,O[11],14,643717713),ie=yl(ie,ge,ue,V,O[0],20,-373897302),V=yl(V,ie,ge,ue,O[5],5,-701558691),ue=yl(ue,V,ie,ge,O[10],9,38016083),ge=yl(ge,ue,V,ie,O[15],14,-660478335),ie=yl(ie,ge,ue,V,O[4],20,-405537848),V=yl(V,ie,ge,ue,O[9],5,568446438),ue=yl(ue,V,ie,ge,O[14],9,-1019803690),ge=yl(ge,ue,V,ie,O[3],14,-187363961),ie=yl(ie,ge,ue,V,O[8],20,1163531501),V=yl(V,ie,ge,ue,O[13],5,-1444681467),ue=yl(ue,V,ie,ge,O[2],9,-51403784),ge=yl(ge,ue,V,ie,O[7],14,1735328473),V=na(V,ie=yl(ie,ge,ue,V,O[12],20,-1926607734),ge,ue,O[5],4,-378558),ue=na(ue,V,ie,ge,O[8],11,-2022574463),ge=na(ge,ue,V,ie,O[11],16,1839030562),ie=na(ie,ge,ue,V,O[14],23,-35309556),V=na(V,ie,ge,ue,O[1],4,-1530992060),ue=na(ue,V,ie,ge,O[4],11,1272893353),ge=na(ge,ue,V,ie,O[7],16,-155497632),ie=na(ie,ge,ue,V,O[10],23,-1094730640),V=na(V,ie,ge,ue,O[13],4,681279174),ue=na(ue,V,ie,ge,O[0],11,-358537222),ge=na(ge,ue,V,ie,O[3],16,-722521979),ie=na(ie,ge,ue,V,O[6],23,76029189),V=na(V,ie,ge,ue,O[9],4,-640364487),ue=na(ue,V,ie,ge,O[12],11,-421815835),ge=na(ge,ue,V,ie,O[15],16,530742520),V=Eo(V,ie=na(ie,ge,ue,V,O[2],23,-995338651),ge,ue,O[0],6,-198630844),ue=Eo(ue,V,ie,ge,O[7],10,1126891415),ge=Eo(ge,ue,V,ie,O[14],15,-1416354905),ie=Eo(ie,ge,ue,V,O[5],21,-57434055),V=Eo(V,ie,ge,ue,O[12],6,1700485571),ue=Eo(ue,V,ie,ge,O[3],10,-1894986606),ge=Eo(ge,ue,V,ie,O[10],15,-1051523),ie=Eo(ie,ge,ue,V,O[1],21,-2054922799),V=Eo(V,ie,ge,ue,O[8],6,1873313359),ue=Eo(ue,V,ie,ge,O[15],10,-30611744),ge=Eo(ge,ue,V,ie,O[6],15,-1560198380),ie=Eo(ie,ge,ue,V,O[13],21,1309151649),V=Eo(V,ie,ge,ue,O[4],6,-145523070),ue=Eo(ue,V,ie,ge,O[11],10,-1120210379),ge=Eo(ge,ue,V,ie,O[2],15,718787259),ie=Eo(ie,ge,ue,V,O[9],21,-343485551),j[0]=he(V,j[0]),j[1]=he(ie,j[1]),j[2]=he(ge,j[2]),j[3]=he(ue,j[3])}function ku(j,O,V,ie,ge,ue){return O=he(he(O,j),he(ie,ue)),he(O<<ge|O>>>32-ge,V)}function cl(j,O,V,ie,ge,ue,Me){return ku(O&V|~O&ie,j,O,ge,ue,Me)}function yl(j,O,V,ie,ge,ue,Me){return ku(O&ie|V&~ie,j,O,ge,ue,Me)}function na(j,O,V,ie,ge,ue,Me){return ku(O^V^ie,j,O,ge,ue,Me)}function Eo(j,O,V,ie,ge,ue,Me){return ku(V^(O|~ie),j,O,ge,ue,Me)}function Ha(j){var O,V=j.length,ie=[1732584193,-271733879,-1732584194,271733878];for(O=64;O<=j.length;O+=64)ll(ie,Jr(j.substring(O-64,O)));j=j.substring(O-64);var ge=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(O=0;O<j.length;O++)ge[O>>2]|=j.charCodeAt(O)<<(O%4<<3);if(ge[O>>2]|=128<<(O%4<<3),O>55)for(ll(ie,ge),O=0;O<16;O++)ge[O]=0;return ge[14]=8*V,ll(ie,ge),ie}function Jr(j){var O,V=[];for(O=0;O<64;O+=4)V[O>>2]=j.charCodeAt(O)+(j.charCodeAt(O+1)<<8)+(j.charCodeAt(O+2)<<16)+(j.charCodeAt(O+3)<<24);return V}fi=go.atob.bind(go),_l=go.btoa.bind(go);var uo="0123456789abcdef".split("");function du(j){for(var O="",V=0;V<4;V++)O+=uo[j>>8*V+4&15]+uo[j>>8*V&15];return O}function gc(j){return String.fromCharCode(255&j,(65280&j)>>8,(16711680&j)>>16,(4278190080&j)>>24)}function Ic(j){return Ha(j).map(gc).join("")}var te="5d41402abc4b2a76b9719d911017c592"!=function(j){for(var O=0;O<j.length;O++)j[O]=du(j[O]);return j.join("")}(Ha("hello"));function he(j,O){if(te){var V=(65535&j)+(65535&O);return(j>>16)+(O>>16)+(V>>16)<<16|65535&V}return j+O&4294967295}function $e(j,O){var V,ie,ge;if(j!==V){for(var Me=(ge=j,new Array(1+(256/j.length|0)+1).join(ge)),Ne=[],Be=0;Be<256;Be++)Ne[Be]=Be;var it=0;for(Be=0;Be<256;Be++){var pt=Ne[Be];it=(it+pt+Me.charCodeAt(Be))%256,Ne[Be]=Ne[it],Ne[it]=pt}V=j,ie=Ne}else Ne=ie;var ft=O.length,kt=0,Ze=0,Qt="";for(Be=0;Be<ft;Be++)Ze=(Ze+(pt=Ne[kt=(kt+1)%256]))%256,Ne[kt]=Ne[Ze],Ne[Ze]=pt,Me=Ne[(Ne[kt]+Ne[Ze])%256],Qt+=String.fromCharCode(O.charCodeAt(Be)^Me);return Qt}var ct={print:4,modify:8,copy:16,"annot-forms":32};function tn(j,O,V,ie){this.v=1,this.r=2;var ge=192;j.forEach(function(Ne){if(void 0!==ct.perm)throw new Error("Invalid permission: "+Ne);ge+=ct[Ne]}),this.padding="(\xbfN^Nu\x8aAd\0NV\xff\xfa\x01\b..\0\xb6\xd0h>\x80/\f\xa9\xfedSiz";var ue=(O+this.padding).substr(0,32),Me=(V+this.padding).substr(0,32);this.O=this.processOwnerPassword(ue,Me),this.P=-(1+(255^ge)),this.encryptionKey=Ic(ue+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(ie)).substr(0,5),this.U=$e(this.encryptionKey,this.padding)}function an(j){if(/[^\u0000-\u00ff]/.test(j))throw new Error("Invalid PDF Name Object: "+j+", Only accept ASCII characters.");for(var O="",V=j.length,ie=0;ie<V;ie++){var ge=j.charCodeAt(ie);O+=ge<33||35===ge||37===ge||40===ge||41===ge||47===ge||60===ge||62===ge||91===ge||93===ge||123===ge||125===ge||ge>126?"#"+("0"+ge.toString(16)).slice(-2):j[ie]}return O}function oi(j){if("object"!==(0,T.A)(j))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var O={};this.subscribe=function(V,ie,ge){if(ge=ge||!1,"string"!=typeof V||"function"!=typeof ie||"boolean"!=typeof ge)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");O.hasOwnProperty(V)||(O[V]={});var ue=Math.random().toString(35);return O[V][ue]=[ie,!!ge],ue},this.unsubscribe=function(V){for(var ie in O)if(O[ie][V])return delete O[ie][V],0===Object.keys(O[ie]).length&&delete O[ie],!0;return!1},this.publish=function(V){if(O.hasOwnProperty(V)){var ie=Array.prototype.slice.call(arguments,1),ge=[];for(var ue in O[V]){var Me=O[V][ue];try{Me[0].apply(j,ie)}catch(Ne){go.console&&Bs.error("jsPDF PubSub Error",Ne.message,Ne)}Me[1]&&ge.push(ue)}ge.length&&ge.forEach(this.unsubscribe)}},this.getTopics=function(){return O}}function ei(j){if(!(this instanceof ei))return new ei(j);var O="opacity,stroke-opacity".split(",");for(var V in j)j.hasOwnProperty(V)&&O.indexOf(V)>=0&&(this[V]=j[V]);this.id="",this.objectNumber=-1}function Ci(j,O){this.gState=j,this.matrix=O,this.id="",this.objectNumber=-1}function Zn(j,O,V,ie,ge){if(!(this instanceof Zn))return new Zn(j,O,V,ie,ge);this.type="axial"===j?2:3,this.coords=O,this.colors=V,Ci.call(this,ie,ge)}function vr(j,O,V,ie,ge){if(!(this instanceof vr))return new vr(j,O,V,ie,ge);this.boundingBox=j,this.xStep=O,this.yStep=V,this.stream="",this.cloneIndex=0,Ci.call(this,ie,ge)}function ti(j){var O,V="string"==typeof arguments[0]?arguments[0]:"p",ie=arguments[1],ge=arguments[2],ue=arguments[3],Me=[],Ne=1,Be=16,it="S",pt=null;"object"===(0,T.A)(j=j||{})&&(V=j.orientation,ie=j.unit||ie,ge=j.format||ge,ue=j.compress||j.compressPdf||ue,null!==(pt=j.encryption||null)&&(pt.userPassword=pt.userPassword||"",pt.ownerPassword=pt.ownerPassword||"",pt.userPermissions=pt.userPermissions||[]),Ne="number"==typeof j.userUnit?Math.abs(j.userUnit):1,void 0!==j.precision&&(O=j.precision),void 0!==j.floatPrecision&&(Be=j.floatPrecision),it=j.defaultPathOperation||"S"),Me=j.filters||(!0===ue?["FlateEncode"]:Me),ie=ie||"mm",V=(""+(V||"P")).toLowerCase();var ft=j.putOnlyUsedFonts||!1,kt={},Ze={internal:{},__private__:{}};Ze.__private__.PubSub=oi;var Qt="1.3",Ht=Ze.__private__.getPdfVersion=function(){return Qt};Ze.__private__.setPdfVersion=function(Ee){Qt=Ee};var rn={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};Ze.__private__.getPageFormats=function(){return rn};var St=Ze.__private__.getPageFormat=function(Ee){return rn[Ee]};ge=ge||"a4";var Vn="compat";function qn(){this.saveGraphicsState(),vn(new xs(Yt,0,0,-Yt,0,qh()*Yt).toString()+" cm"),this.setFontSize(this.getFontSize()/Yt),it="n",Vn="advanced"}function Ai(){this.restoreGraphicsState(),it="S",Vn="compat"}var sr=Ze.__private__.combineFontStyleAndFontWeight=function(Ee,ht){if("bold"==Ee&&"normal"==ht||"bold"==Ee&&400==ht||"normal"==Ee&&"italic"==ht||"bold"==Ee&&"italic"==ht)throw new Error("Invalid Combination of fontweight and fontstyle");return ht&&(Ee=400==ht||"normal"===ht?"italic"===Ee?"italic":"normal":700!=ht&&"bold"!==ht||"normal"!==Ee?(700==ht?"bold":ht)+""+Ee:"bold"),Ee};Ze.advancedAPI=function(Ee){var ht="compat"===Vn;return ht&&qn.call(this),"function"!=typeof Ee||(Ee(this),ht&&Ai.call(this)),this},Ze.compatAPI=function(Ee){var ht="advanced"===Vn;return ht&&Ai.call(this),"function"!=typeof Ee||(Ee(this),ht&&qn.call(this)),this},Ze.isAdvancedAPI=function(){return"advanced"===Vn};var si,bn=function(Ee){if("advanced"!==Vn)throw new Error(Ee+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},ui=Ze.roundToPrecision=Ze.__private__.roundToPrecision=function(Ee,ht){var sn=O||ht;if(isNaN(Ee)||isNaN(sn))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return Ee.toFixed(sn).replace(/0+$/,"")};si=Ze.hpf=Ze.__private__.hpf="number"==typeof Be?function(Ee){if(isNaN(Ee))throw new Error("Invalid argument passed to jsPDF.hpf");return ui(Ee,Be)}:"smart"===Be?function(Ee){if(isNaN(Ee))throw new Error("Invalid argument passed to jsPDF.hpf");return ui(Ee,Ee>-1&&Ee<1?16:5)}:function(Ee){if(isNaN(Ee))throw new Error("Invalid argument passed to jsPDF.hpf");return ui(Ee,16)};var ji=Ze.f2=Ze.__private__.f2=function(Ee){if(isNaN(Ee))throw new Error("Invalid argument passed to jsPDF.f2");return ui(Ee,2)},Ut=Ze.__private__.f3=function(Ee){if(isNaN(Ee))throw new Error("Invalid argument passed to jsPDF.f3");return ui(Ee,3)},jt=Ze.scale=Ze.__private__.scale=function(Ee){if(isNaN(Ee))throw new Error("Invalid argument passed to jsPDF.scale");return"compat"===Vn?Ee*Yt:"advanced"===Vn?Ee:void 0},Cn=function(Ee){return jt(function(Ee){return"compat"===Vn?qh()-Ee:"advanced"===Vn?Ee:void 0}(Ee))};Ze.__private__.setPrecision=Ze.setPrecision=function(Ee){"number"==typeof parseInt(Ee,10)&&(O=parseInt(Ee,10))};var Ei,vi="00000000000000000000000000000000",Mi=Ze.__private__.getFileId=function(){return vi},li=Ze.__private__.setFileId=function(Ee){return vi=void 0!==Ee&&/^[a-fA-F0-9]{32}$/.test(Ee)?Ee.toUpperCase():vi.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),null!==pt&&(bd=new tn(pt.userPermissions,pt.userPassword,pt.ownerPassword,vi)),vi};Ze.setFileId=function(Ee){return li(Ee),this},Ze.getFileId=function(){return Mi()};var Pi=Ze.__private__.convertDateToPDFDate=function(Ee){var ht=Ee.getTimezoneOffset(),sn=ht<0?"+":"-",Pn=Math.floor(Math.abs(ht/60)),Jn=Math.abs(ht%60),zi=[sn,mn(Pn),"'",mn(Jn),"'"].join("");return["D:",Ee.getFullYear(),mn(Ee.getMonth()+1),mn(Ee.getDate()),mn(Ee.getHours()),mn(Ee.getMinutes()),mn(Ee.getSeconds()),zi].join("")},Qi=Ze.__private__.convertPDFDateToDate=function(Ee){var ht=parseInt(Ee.substr(2,4),10),sn=parseInt(Ee.substr(6,2),10)-1,Pn=parseInt(Ee.substr(8,2),10),Jn=parseInt(Ee.substr(10,2),10),zi=parseInt(Ee.substr(12,2),10),Nr=parseInt(Ee.substr(14,2),10);return new Date(ht,sn,Pn,Jn,zi,Nr,0)},no=Ze.__private__.setCreationDate=function(Ee){var ht;if(void 0===Ee&&(Ee=new Date),Ee instanceof Date)ht=Pi(Ee);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(Ee))throw new Error("Invalid argument passed to jsPDF.setCreationDate");ht=Ee}return Ei=ht},mt=Ze.__private__.getCreationDate=function(Ee){var ht=Ei;return"jsDate"===Ee&&(ht=Qi(Ei)),ht};Ze.setCreationDate=function(Ee){return no(Ee),this},Ze.getCreationDate=function(Ee){return mt(Ee)};var on,mn=Ze.__private__.padd2=function(Ee){return("0"+parseInt(Ee)).slice(-2)},Ln=Ze.__private__.padd2Hex=function(Ee){return("00"+(Ee=Ee.toString())).substr(Ee.length)},zn=0,pi=[],_i=[],yi=0,Hr=[],kr=[],fo=!1,io=_i;Ze.__private__.setCustomOutputDestination=function(Ee){fo=!0,io=Ee};var Yi=function(Ee){fo||(io=Ee)};Ze.__private__.resetCustomOutputDestination=function(){fo=!1,io=_i};var vn=Ze.__private__.out=function(Ee){return Ee=Ee.toString(),yi+=Ee.length+1,io.push(Ee),io},Yn=Ze.__private__.write=function(Ee){return vn(1===arguments.length?Ee.toString():Array.prototype.join.call(arguments," "))},fr=Ze.__private__.getArrayBuffer=function(Ee){for(var ht=Ee.length,sn=new ArrayBuffer(ht),Pn=new Uint8Array(sn);ht--;)Pn[ht]=Ee.charCodeAt(ht);return sn},Pr=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];Ze.__private__.getStandardFonts=function(){return Pr};var ro=j.fontSize||16;Ze.__private__.setFontSize=Ze.setFontSize=function(Ee){return ro="advanced"===Vn?Ee/Yt:Ee,this};var hr,He=Ze.__private__.getFontSize=Ze.getFontSize=function(){return"compat"===Vn?ro:ro*Yt},oe=j.R2L||!1;Ze.__private__.setR2L=Ze.setR2L=function(Ee){return oe=Ee,this},Ze.__private__.getR2L=Ze.getR2L=function(){return oe};var ee,Te=Ze.__private__.setZoomMode=function(Ee){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(Ee))hr=Ee;else if(isNaN(Ee)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(Ee))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+Ee+'" is not recognized.');hr=Ee}else hr=parseInt(Ee,10)};Ze.__private__.getZoomMode=function(){return hr};var Le,ot=Ze.__private__.setPageMode=function(Ee){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(Ee))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+Ee+'" is not recognized.');ee=Ee};Ze.__private__.getPageMode=function(){return ee};var gt=Ze.__private__.setLayoutMode=function(Ee){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(Ee))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+Ee+'" is not recognized.');Le=Ee};Ze.__private__.getLayoutMode=function(){return Le},Ze.__private__.setDisplayMode=Ze.setDisplayMode=function(Ee,ht,sn){return Te(Ee),gt(ht),ot(sn),this};var Lt={title:"",subject:"",author:"",keywords:"",creator:""};Ze.__private__.getDocumentProperty=function(Ee){if(-1===Object.keys(Lt).indexOf(Ee))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Lt[Ee]},Ze.__private__.getDocumentProperties=function(){return Lt},Ze.__private__.setDocumentProperties=Ze.setProperties=Ze.setDocumentProperties=function(Ee){for(var ht in Lt)Lt.hasOwnProperty(ht)&&Ee[ht]&&(Lt[ht]=Ee[ht]);return this},Ze.__private__.setDocumentProperty=function(Ee,ht){if(-1===Object.keys(Lt).indexOf(Ee))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Lt[Ee]=ht};var On,Yt,mr,Sr,Qo,Ur={},Oo={},ia=[],zs={},ha={},$a={},Np={},Gp=null,vc=0,Cs=[],pl=new oi(Ze),cm=j.hotfixes||[],Mu={},Bp={},Vp=[],xs=function Ee(ht,sn,Pn,Jn,zi,Nr){if(!(this instanceof Ee))return new Ee(ht,sn,Pn,Jn,zi,Nr);isNaN(ht)&&(ht=1),isNaN(sn)&&(sn=0),isNaN(Pn)&&(Pn=0),isNaN(Jn)&&(Jn=1),isNaN(zi)&&(zi=0),isNaN(Nr)&&(Nr=0),this._matrix=[ht,sn,Pn,Jn,zi,Nr]};Object.defineProperty(xs.prototype,"sx",{get:function(){return this._matrix[0]},set:function(Ee){this._matrix[0]=Ee}}),Object.defineProperty(xs.prototype,"shy",{get:function(){return this._matrix[1]},set:function(Ee){this._matrix[1]=Ee}}),Object.defineProperty(xs.prototype,"shx",{get:function(){return this._matrix[2]},set:function(Ee){this._matrix[2]=Ee}}),Object.defineProperty(xs.prototype,"sy",{get:function(){return this._matrix[3]},set:function(Ee){this._matrix[3]=Ee}}),Object.defineProperty(xs.prototype,"tx",{get:function(){return this._matrix[4]},set:function(Ee){this._matrix[4]=Ee}}),Object.defineProperty(xs.prototype,"ty",{get:function(){return this._matrix[5]},set:function(Ee){this._matrix[5]=Ee}}),Object.defineProperty(xs.prototype,"a",{get:function(){return this._matrix[0]},set:function(Ee){this._matrix[0]=Ee}}),Object.defineProperty(xs.prototype,"b",{get:function(){return this._matrix[1]},set:function(Ee){this._matrix[1]=Ee}}),Object.defineProperty(xs.prototype,"c",{get:function(){return this._matrix[2]},set:function(Ee){this._matrix[2]=Ee}}),Object.defineProperty(xs.prototype,"d",{get:function(){return this._matrix[3]},set:function(Ee){this._matrix[3]=Ee}}),Object.defineProperty(xs.prototype,"e",{get:function(){return this._matrix[4]},set:function(Ee){this._matrix[4]=Ee}}),Object.defineProperty(xs.prototype,"f",{get:function(){return this._matrix[5]},set:function(Ee){this._matrix[5]=Ee}}),Object.defineProperty(xs.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(xs.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(xs.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(xs.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),xs.prototype.join=function(Ee){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(si).join(Ee)},xs.prototype.multiply=function(Ee){return new xs(Ee.sx*this.sx+Ee.shy*this.shx,Ee.sx*this.shy+Ee.shy*this.sy,Ee.shx*this.sx+Ee.sy*this.shx,Ee.shx*this.shy+Ee.sy*this.sy,Ee.tx*this.sx+Ee.ty*this.shx+this.tx,Ee.tx*this.shy+Ee.ty*this.sy+this.ty)},xs.prototype.decompose=function(){var Ee=this.sx,ht=this.shy,sn=this.shx,Pn=this.sy,Jn=this.tx,zi=this.ty,Nr=Math.sqrt(Ee*Ee+ht*ht),zr=(Ee/=Nr)*sn+(ht/=Nr)*Pn;sn-=Ee*zr,Pn-=ht*zr;var Zr=Math.sqrt(sn*sn+Pn*Pn);return zr/=Zr,Ee*(Pn/=Zr)<ht*(sn/=Zr)&&(Ee=-Ee,ht=-ht,zr=-zr,Nr=-Nr),{scale:new xs(Nr,0,0,Zr,0,0),translate:new xs(1,0,0,1,Jn,zi),rotate:new xs(Ee,ht,-ht,Ee,0,0),skew:new xs(1,0,zr,1,0,0)}},xs.prototype.toString=function(Ee){return this.join(" ")},xs.prototype.inversed=function(){var Ee=this.sx,ht=this.shy,sn=this.shx,Pn=this.sy,Jn=this.tx,zi=this.ty,Nr=1/(Ee*Pn-ht*sn),zr=Pn*Nr,Zr=-ht*Nr,aa=-sn*Nr,ra=Ee*Nr;return new xs(zr,Zr,aa,ra,-zr*Jn-aa*zi,-Zr*Jn-ra*zi)},xs.prototype.applyToPoint=function(Ee){return new Ja(Ee.x*this.sx+Ee.y*this.shx+this.tx,Ee.x*this.shy+Ee.y*this.sy+this.ty)},xs.prototype.applyToRectangle=function(Ee){var ht=this.applyToPoint(Ee),sn=this.applyToPoint(new Ja(Ee.x+Ee.w,Ee.y+Ee.h));return new $l(ht.x,ht.y,sn.x-ht.x,sn.y-ht.y)},xs.prototype.clone=function(){return new xs(this.sx,this.shy,this.shx,this.sy,this.tx,this.ty)},Ze.Matrix=xs;var jp=Ze.matrixMult=function(Ee,ht){return ht.multiply(Ee)},Hp=new xs(1,0,0,1,0,0);Ze.unitMatrix=Ze.identityMatrix=Hp;var Nd=function(Ee,ht){if(!ha[Ee]){var sn=(ht instanceof Zn?"Sh":"P")+(Object.keys(zs).length+1).toString(10);ht.id=sn,ha[Ee]=sn,zs[sn]=ht,pl.publish("addPattern",ht)}};Ze.ShadingPattern=Zn,Ze.TilingPattern=vr,Ze.addShadingPattern=function(Ee,ht){return bn("addShadingPattern()"),Nd(Ee,ht),this},Ze.beginTilingPattern=function(Ee){bn("beginTilingPattern()"),aC(Ee.boundingBox[0],Ee.boundingBox[1],Ee.boundingBox[2]-Ee.boundingBox[0],Ee.boundingBox[3]-Ee.boundingBox[1],Ee.matrix)},Ze.endTilingPattern=function(Ee,ht){bn("endTilingPattern()"),ht.stream=kr[on].join("\n"),Nd(Ee,ht),pl.publish("endTilingPattern",ht),Vp.pop().restore()};var Ee,Ql=Ze.__private__.newObject=function(){var Ee=La();return Xu(Ee,!0),Ee},La=Ze.__private__.newObjectDeferred=function(){return zn++,pi[zn]=function(){return yi},zn},Xu=function(Ee,ht){return ht="boolean"==typeof ht&&ht,pi[Ee]=yi,ht&&vn(Ee+" 0 obj"),Ee},hl=Ze.__private__.newAdditionalObject=function(){var Ee={objId:La(),content:""};return Hr.push(Ee),Ee},Mf=La(),$h=La(),Yh=Ze.__private__.decodeColorString=function(Ee){var ht=Ee.split(" ");if(2!==ht.length||"g"!==ht[1]&&"G"!==ht[1])5===ht.length&&("k"===ht[4]||"K"===ht[4])&&(ht=[(1-ht[0])*(1-ht[3]),(1-ht[1])*(1-ht[3]),(1-ht[2])*(1-ht[3]),"r"]);else{var sn=parseFloat(ht[0]);ht=[sn,sn,sn,"r"]}for(var Pn="#",Jn=0;Jn<3;Jn++)Pn+=("0"+Math.floor(255*parseFloat(ht[Jn])).toString(16)).slice(-2);return Pn},Ku=Ze.__private__.encodeColorString=function(Ee){var ht;"string"==typeof Ee&&(Ee={ch1:Ee});var sn=Ee.ch1,Pn=Ee.ch2,Jn=Ee.ch3,zi=Ee.ch4,Nr="draw"===Ee.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof sn&&"#"!==sn.charAt(0)){var zr=new Is(sn);if(zr.ok)sn=zr.toHex();else if(!/^\d*\.?\d*$/.test(sn))throw new Error('Invalid color "'+sn+'" passed to jsPDF.encodeColorString.')}if("string"==typeof sn&&/^#[0-9A-Fa-f]{3}$/.test(sn)&&(sn="#"+sn[1]+sn[1]+sn[2]+sn[2]+sn[3]+sn[3]),"string"==typeof sn&&/^#[0-9A-Fa-f]{6}$/.test(sn)){var Zr=parseInt(sn.substr(1),16);sn=Zr>>16&255,Pn=Zr>>8&255,Jn=255&Zr}if(void 0===Pn||void 0===zi&&sn===Pn&&Pn===Jn)ht="string"==typeof sn?sn+" "+Nr[0]:2===Ee.precision?ji(sn/255)+" "+Nr[0]:Ut(sn/255)+" "+Nr[0];else if(void 0===zi||"object"===(0,T.A)(zi)){if(zi&&!isNaN(zi.a)&&0===zi.a)return["1.","1.","1.",Nr[1]].join(" ");ht="string"==typeof sn?[sn,Pn,Jn,Nr[1]].join(" "):2===Ee.precision?[ji(sn/255),ji(Pn/255),ji(Jn/255),Nr[1]].join(" "):[Ut(sn/255),Ut(Pn/255),Ut(Jn/255),Nr[1]].join(" ")}else ht="string"==typeof sn?[sn,Pn,Jn,zi,Nr[2]].join(" "):2===Ee.precision?[ji(sn),ji(Pn),ji(Jn),ji(zi),Nr[2]].join(" "):[Ut(sn),Ut(Pn),Ut(Jn),Ut(zi),Nr[2]].join(" ");return ht},fh=Ze.__private__.getFilters=function(){return Me},bu=Ze.__private__.putStream=function(Ee){var ht=(Ee=Ee||{}).data||"",sn=Ee.filters||fh(),Pn=Ee.alreadyAppliedFilters||[],Jn=Ee.addLength1||!1,zi=ht.length,Nr=Ee.objectId,zr=function(Ca){return Ca};if(null!==pt&&void 0===Nr)throw new Error("ObjectId must be passed to putStream for file encryption");null!==pt&&(zr=bd.encryptor(Nr,0));var Zr={};!0===sn&&(sn=["FlateEncode"]);var aa=Ee.additionalKeyValues||[],ra=(Zr=void 0!==ti.API.processDataByFilters?ti.API.processDataByFilters(ht,sn):{data:ht,reverseChain:[]}).reverseChain+(Array.isArray(Pn)?Pn.join(" "):Pn.toString());if(0!==Zr.data.length&&(aa.push({key:"Length",value:Zr.data.length}),!0===Jn&&aa.push({key:"Length1",value:zi})),0!=ra.length)if(ra.split("/").length-1==1)aa.push({key:"Filter",value:ra});else{aa.push({key:"Filter",value:"["+ra+"]"});for(var Cl=0;Cl<aa.length;Cl+=1)if("DecodeParms"===aa[Cl].key){for(var yc=[],Wl=0;Wl<Zr.reverseChain.split("/").length-1;Wl+=1)yc.push("null");yc.push(aa[Cl].value),aa[Cl].value="["+yc.join(" ")+"]"}}vn("<<");for(var Jl=0;Jl<aa.length;Jl++)vn("/"+aa[Jl].key+" "+aa[Jl].value);vn(">>"),0!==Zr.data.length&&(vn("stream"),vn(zr(Zr.data)),vn("endstream"))},Qu=Ze.__private__.putPage=function(Ee){var ht=Ee.number,sn=Ee.data,Pn=Ee.objId,Jn=Ee.contentsObjId;Xu(Pn,!0),vn("<</Type /Page"),vn("/Parent "+Ee.rootDictionaryObjId+" 0 R"),vn("/Resources "+Ee.resourceDictionaryObjId+" 0 R"),vn("/MediaBox ["+parseFloat(si(Ee.mediaBox.bottomLeftX))+" "+parseFloat(si(Ee.mediaBox.bottomLeftY))+" "+si(Ee.mediaBox.topRightX)+" "+si(Ee.mediaBox.topRightY)+"]"),null!==Ee.cropBox&&vn("/CropBox ["+si(Ee.cropBox.bottomLeftX)+" "+si(Ee.cropBox.bottomLeftY)+" "+si(Ee.cropBox.topRightX)+" "+si(Ee.cropBox.topRightY)+"]"),null!==Ee.bleedBox&&vn("/BleedBox ["+si(Ee.bleedBox.bottomLeftX)+" "+si(Ee.bleedBox.bottomLeftY)+" "+si(Ee.bleedBox.topRightX)+" "+si(Ee.bleedBox.topRightY)+"]"),null!==Ee.trimBox&&vn("/TrimBox ["+si(Ee.trimBox.bottomLeftX)+" "+si(Ee.trimBox.bottomLeftY)+" "+si(Ee.trimBox.topRightX)+" "+si(Ee.trimBox.topRightY)+"]"),null!==Ee.artBox&&vn("/ArtBox ["+si(Ee.artBox.bottomLeftX)+" "+si(Ee.artBox.bottomLeftY)+" "+si(Ee.artBox.topRightX)+" "+si(Ee.artBox.topRightY)+"]"),"number"==typeof Ee.userUnit&&1!==Ee.userUnit&&vn("/UserUnit "+Ee.userUnit),pl.publish("putPage",{objId:Pn,pageContext:Cs[ht],pageNumber:ht,page:sn}),vn("/Contents "+Jn+" 0 R"),vn(">>"),vn("endobj");var zi=sn.join("\n");return"advanced"===Vn&&(zi+="\nQ"),Xu(Jn,!0),bu({data:zi,filters:fh(),objectId:Jn}),vn("endobj"),Pn},Gd=Ze.__private__.putPages=function(){var Ee,ht,sn=[];for(Ee=1;Ee<=vc;Ee++)Cs[Ee].objId=La(),Cs[Ee].contentsObjId=La();for(Ee=1;Ee<=vc;Ee++)sn.push(Qu({number:Ee,data:kr[Ee],objId:Cs[Ee].objId,contentsObjId:Cs[Ee].contentsObjId,mediaBox:Cs[Ee].mediaBox,cropBox:Cs[Ee].cropBox,bleedBox:Cs[Ee].bleedBox,trimBox:Cs[Ee].trimBox,artBox:Cs[Ee].artBox,userUnit:Cs[Ee].userUnit,rootDictionaryObjId:Mf,resourceDictionaryObjId:$h}));Xu(Mf,!0),vn("<</Type /Pages");var Pn="/Kids [";for(ht=0;ht<vc;ht++)Pn+=sn[ht]+" 0 R ";vn(Pn+"]"),vn("/Count "+vc),vn(">>"),vn("endobj"),pl.publish("postPutPages")},Zv=function(Ee){pl.publish("putFont",{font:Ee,out:vn,newObject:Ql,putStream:bu}),!0!==Ee.isAlreadyPutted&&(Ee.objectNumber=Ql(),vn("<<"),vn("/Type /Font"),vn("/BaseFont /"+an(Ee.postScriptName)),vn("/Subtype /Type1"),"string"==typeof Ee.encoding&&vn("/Encoding /"+Ee.encoding),vn("/FirstChar 32"),vn("/LastChar 255"),vn(">>"),vn("endobj"))},um=function(Ee){Ee.objectNumber=Ql();var ht=[];ht.push({key:"Type",value:"/XObject"}),ht.push({key:"Subtype",value:"/Form"}),ht.push({key:"BBox",value:"["+[si(Ee.x),si(Ee.y),si(Ee.x+Ee.width),si(Ee.y+Ee.height)].join(" ")+"]"}),ht.push({key:"Matrix",value:"["+Ee.matrix.toString()+"]"});var sn=Ee.pages[1].join("\n");bu({data:sn,additionalKeyValues:ht,objectId:Ee.objectNumber}),vn("endobj")},o1=function(Ee,ht){ht||(ht=21);var sn=Ql(),Pn=function(Ee,ht){var sn,Pn=[],Jn=1/(ht-1);for(sn=0;sn<1;sn+=Jn)Pn.push(sn);Pn.push(1),0!=Ee[0].offset&&Ee.unshift({offset:0,color:Ee[0].color}),1!=Ee[Ee.length-1].offset&&Ee.push({offset:1,color:Ee[Ee.length-1].color});for(var zr="",Zr=0,aa=0;aa<Pn.length;aa++){for(sn=Pn[aa];sn>Ee[Zr+1].offset;)Zr++;var ra=Ee[Zr].offset,Cl=(sn-ra)/(Ee[Zr+1].offset-ra),yc=Ee[Zr].color,Wl=Ee[Zr+1].color;zr+=Ln(Math.round((1-Cl)*yc[0]+Cl*Wl[0]).toString(16))+Ln(Math.round((1-Cl)*yc[1]+Cl*Wl[1]).toString(16))+Ln(Math.round((1-Cl)*yc[2]+Cl*Wl[2]).toString(16))}return zr.trim()}(Ee.colors,ht),Jn=[];Jn.push({key:"FunctionType",value:"0"}),Jn.push({key:"Domain",value:"[0.0 1.0]"}),Jn.push({key:"Size",value:"["+ht+"]"}),Jn.push({key:"BitsPerSample",value:"8"}),Jn.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Jn.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),bu({data:Pn,additionalKeyValues:Jn,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:sn}),vn("endobj"),Ee.objectNumber=Ql(),vn("<< /ShadingType "+Ee.type),vn("/ColorSpace /DeviceRGB");var zi="/Coords ["+si(parseFloat(Ee.coords[0]))+" "+si(parseFloat(Ee.coords[1]))+" ";zi+=2===Ee.type?si(parseFloat(Ee.coords[2]))+" "+si(parseFloat(Ee.coords[3])):si(parseFloat(Ee.coords[2]))+" "+si(parseFloat(Ee.coords[3]))+" "+si(parseFloat(Ee.coords[4]))+" "+si(parseFloat(Ee.coords[5])),vn(zi+="]"),Ee.matrix&&vn("/Matrix ["+Ee.matrix.toString()+"]"),vn("/Function "+sn+" 0 R"),vn("/Extend [true true]"),vn(">>"),vn("endobj")},s1=function(Ee,ht){var sn=La(),Pn=Ql();ht.push({resourcesOid:sn,objectOid:Pn}),Ee.objectNumber=Pn;var Jn=[];Jn.push({key:"Type",value:"/Pattern"}),Jn.push({key:"PatternType",value:"1"}),Jn.push({key:"PaintType",value:"1"}),Jn.push({key:"TilingType",value:"1"}),Jn.push({key:"BBox",value:"["+Ee.boundingBox.map(si).join(" ")+"]"}),Jn.push({key:"XStep",value:si(Ee.xStep)}),Jn.push({key:"YStep",value:si(Ee.yStep)}),Jn.push({key:"Resources",value:sn+" 0 R"}),Ee.matrix&&Jn.push({key:"Matrix",value:"["+Ee.matrix.toString()+"]"}),bu({data:Ee.stream,additionalKeyValues:Jn,objectId:Ee.objectNumber}),vn("endobj")},rr=function(Ee){for(var ht in Ee.objectNumber=Ql(),vn("<<"),Ee)switch(ht){case"opacity":vn("/ca "+ji(Ee[ht]));break;case"stroke-opacity":vn("/CA "+ji(Ee[ht]))}vn(">>"),vn("endobj")},Cu=function(Ee){Xu(Ee.resourcesOid,!0),vn("<<"),vn("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var Ee in vn("/Font <<"),Ur)Ur.hasOwnProperty(Ee)&&(!1===ft||!0===ft&&kt.hasOwnProperty(Ee))&&vn("/"+Ee+" "+Ur[Ee].objectNumber+" 0 R");vn(">>")}(),function(){if(Object.keys(zs).length>0){for(var Ee in vn("/Shading <<"),zs)zs.hasOwnProperty(Ee)&&zs[Ee]instanceof Zn&&zs[Ee].objectNumber>=0&&vn("/"+Ee+" "+zs[Ee].objectNumber+" 0 R");pl.publish("putShadingPatternDict"),vn(">>")}}(),function(Ee){if(Object.keys(zs).length>0){for(var ht in vn("/Pattern <<"),zs)zs.hasOwnProperty(ht)&&zs[ht]instanceof Ze.TilingPattern&&zs[ht].objectNumber>=0&&zs[ht].objectNumber<Ee&&vn("/"+ht+" "+zs[ht].objectNumber+" 0 R");pl.publish("putTilingPatternDict"),vn(">>")}}(Ee.objectOid),function(){if(Object.keys($a).length>0){var Ee;for(Ee in vn("/ExtGState <<"),$a)$a.hasOwnProperty(Ee)&&$a[Ee].objectNumber>=0&&vn("/"+Ee+" "+$a[Ee].objectNumber+" 0 R");pl.publish("putGStateDict"),vn(">>")}}(),function(){for(var Ee in vn("/XObject <<"),Mu)Mu.hasOwnProperty(Ee)&&Mu[Ee].objectNumber>=0&&vn("/"+Ee+" "+Mu[Ee].objectNumber+" 0 R");pl.publish("putXobjectDict"),vn(">>")}(),vn(">>"),vn("endobj")},pm=function(Ee){Oo[Ee.fontName]=Oo[Ee.fontName]||{},Oo[Ee.fontName][Ee.fontStyle]=Ee.id},Vo=function(Ee,ht,sn,Pn,Jn){var zi={id:"F"+(Object.keys(Ur).length+1).toString(10),postScriptName:Ee,fontName:ht,fontStyle:sn,encoding:Pn,isStandardFont:Jn||!1,metadata:{}};return pl.publish("addFont",{font:zi,instance:this}),Ur[zi.id]=zi,pm(zi),zi.id},et=Ze.__private__.pdfEscape=Ze.pdfEscape=function(Ee,ht){return function(Ee,ht){var sn,Pn,Jn,zi,Nr,zr,Zr,aa,ra;if(Jn=(ht=ht||{}).sourceEncoding||"Unicode",Nr=ht.outputEncoding,(ht.autoencode||Nr)&&Ur[On].metadata&&Ur[On].metadata[Jn]&&Ur[On].metadata[Jn].encoding&&(zi=Ur[On].metadata[Jn].encoding,!Nr&&Ur[On].encoding&&(Nr=Ur[On].encoding),!Nr&&zi.codePages&&(Nr=zi.codePages[0]),"string"==typeof Nr&&(Nr=zi[Nr]),Nr)){for(Zr=!1,zr=[],sn=0,Pn=Ee.length;sn<Pn;sn++)(aa=Nr[Ee.charCodeAt(sn)])?zr.push(String.fromCharCode(aa)):zr.push(Ee[sn]),zr[sn].charCodeAt(0)>>8&&(Zr=!0);Ee=zr.join("")}for(sn=Ee.length;void 0===Zr&&0!==sn;)Ee.charCodeAt(sn-1)>>8&&(Zr=!0),sn--;if(!Zr)return Ee;for(zr=ht.noBOM?[]:[254,255],sn=0,Pn=Ee.length;sn<Pn;sn++){if((ra=(aa=Ee.charCodeAt(sn))>>8)>>8)throw new Error("Character at position "+sn+" of string '"+Ee+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");zr.push(ra),zr.push(aa-(ra<<8))}return String.fromCharCode.apply(void 0,zr)}(Ee,ht).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},It=Ze.__private__.beginPage=function(Ee){kr[++vc]=[],Cs[vc]={objId:0,contentsObjId:0,userUnit:Number(Ne),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(Ee[0]),topRightY:Number(Ee[1])}},Co(vc),Yi(kr[on])},In=function(Ee,ht){var sn,Pn,Jn;switch(V=ht||V,"string"==typeof Ee&&(sn=St(Ee.toLowerCase()),Array.isArray(sn)&&(Pn=sn[0],Jn=sn[1])),Array.isArray(Ee)&&(Pn=Ee[0]*Yt,Jn=Ee[1]*Yt),isNaN(Pn)&&(Pn=ge[0],Jn=ge[1]),(Pn>14400||Jn>14400)&&(Bs.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),Pn=Math.min(14400,Pn),Jn=Math.min(14400,Jn)),ge=[Pn,Jn],V.substr(0,1)){case"l":Jn>Pn&&(ge=[Jn,Pn]);break;case"p":Pn>Jn&&(ge=[Jn,Pn])}It(ge),Kr(qi),vn(fd),0!==ms&&vn(ms+" J"),0!==h1&&vn(h1+" j"),pl.publish("addPage",{pageNumber:vc})},Li=function(Ee){Ee>0&&Ee<=vc&&(kr.splice(Ee,1),Cs.splice(Ee,1),vc--,on>vc&&(on=vc),this.setPage(on))},Co=function(Ee){Ee>0&&Ee<=vc&&(on=Ee)},ls=Ze.__private__.getNumberOfPages=Ze.getNumberOfPages=function(){return kr.length-1},Es=function(Ee,ht,sn){var Pn,Jn=void 0;return sn=sn||{},ht=void 0!==ht?ht:Ur[On].fontStyle,Pn=(Ee=void 0!==Ee?Ee:Ur[On].fontName).toLowerCase(),void 0!==Oo[Pn]&&void 0!==Oo[Pn][ht]?Jn=Oo[Pn][ht]:void 0!==Oo[Ee]&&void 0!==Oo[Ee][ht]?Jn=Oo[Ee][ht]:!1===sn.disableWarning&&Bs.warn("Unable to look up font label for font '"+Ee+"', '"+ht+"'. Refer to getFontList() for available fonts."),Jn||sn.noFallback||null==(Jn=Oo.times[ht])&&(Jn=Oo.times.normal),Jn},wu=Ze.__private__.putInfo=function(){var Ee=Ql(),ht=function(Pn){return Pn};for(var sn in null!==pt&&(ht=bd.encryptor(Ee,0)),vn("<<"),vn("/Producer ("+et(ht("jsPDF "+ti.version))+")"),Lt)Lt.hasOwnProperty(sn)&&Lt[sn]&&vn("/"+sn.substr(0,1).toUpperCase()+sn.substr(1)+" ("+et(ht(Lt[sn]))+")");vn("/CreationDate ("+et(ht(Ei))+")"),vn(">>"),vn("endobj")},Yp=Ze.__private__.putCatalog=function(Ee){var ht=(Ee=Ee||{}).rootDictionaryObjId||Mf;switch(Ql(),vn("<<"),vn("/Type /Catalog"),vn("/Pages "+ht+" 0 R"),hr||(hr="fullwidth"),hr){case"fullwidth":vn("/OpenAction [3 0 R /FitH null]");break;case"fullheight":vn("/OpenAction [3 0 R /FitV null]");break;case"fullpage":vn("/OpenAction [3 0 R /Fit]");break;case"original":vn("/OpenAction [3 0 R /XYZ null null 1]");break;default:var sn=""+hr;"%"===sn.substr(sn.length-1)&&(hr=parseInt(hr)/100),"number"==typeof hr&&vn("/OpenAction [3 0 R /XYZ null null "+ji(hr)+"]")}switch(Le||(Le="continuous"),Le){case"continuous":vn("/PageLayout /OneColumn");break;case"single":vn("/PageLayout /SinglePage");break;case"two":case"twoleft":vn("/PageLayout /TwoColumnLeft");break;case"tworight":vn("/PageLayout /TwoColumnRight")}ee&&vn("/PageMode /"+ee),pl.publish("putCatalog"),vn(">>"),vn("endobj")},mh=Ze.__private__.putTrailer=function(){vn("trailer"),vn("<<"),vn("/Size "+(zn+1)),vn("/Root "+zn+" 0 R"),vn("/Info "+(zn-1)+" 0 R"),null!==pt&&vn("/Encrypt "+bd.oid+" 0 R"),vn("/ID [ <"+vi+"> <"+vi+"> ]"),vn(">>")},l1=Ze.__private__.putHeader=function(){vn("%PDF-"+Qt),vn("%\xba\xdf\xac\xe0")},v0=Ze.__private__.putXRef=function(){var Ee="0000000000";vn("xref"),vn("0 "+(zn+1)),vn("0000000000 65535 f ");for(var ht=1;ht<=zn;ht++)vn("function"==typeof pi[ht]?(Ee+pi[ht]()).slice(-10)+" 00000 n ":void 0!==pi[ht]?(Ee+pi[ht]).slice(-10)+" 00000 n ":"0000000000 00000 n ")},pd=Ze.__private__.buildDocument=function(){zn=0,yi=0,_i=[],pi=[],Hr=[],Mf=La(),$h=La(),Yi(_i),pl.publish("buildDocument"),l1(),Gd(),function(){pl.publish("putAdditionalObjects");for(var Ee=0;Ee<Hr.length;Ee++){var ht=Hr[Ee];Xu(ht.objId,!0),vn(ht.content),vn("endobj")}pl.publish("postPutAdditionalObjects")}(),function(){var Ee=[];(function(){for(var Ee in Ur)Ur.hasOwnProperty(Ee)&&(!1===ft||!0===ft&&kt.hasOwnProperty(Ee))&&Zv(Ur[Ee])})(),function(){var Ee;for(Ee in $a)$a.hasOwnProperty(Ee)&&rr($a[Ee])}(),function(){for(var Ee in Mu)Mu.hasOwnProperty(Ee)&&um(Mu[Ee])}(),function(Ee){var ht;for(ht in zs)zs.hasOwnProperty(ht)&&(zs[ht]instanceof Zn?o1(zs[ht]):zs[ht]instanceof vr&&s1(zs[ht],Ee))}(Ee),pl.publish("putResources"),Ee.forEach(Cu),Cu({resourcesOid:$h,objectOid:Number.MAX_SAFE_INTEGER}),pl.publish("postPutResources")}(),null!==pt&&(bd.oid=Ql(),vn("<<"),vn("/Filter /Standard"),vn("/V "+bd.v),vn("/R "+bd.r),vn("/U <"+bd.toHexString(bd.U)+">"),vn("/O <"+bd.toHexString(bd.O)+">"),vn("/P "+bd.P),vn(">>"),vn("endobj")),wu(),Yp();var Ee=yi;return v0(),mh(),vn("startxref"),vn(""+Ee),vn("%%EOF"),Yi(kr[on]),_i.join("\n")},Rf=Ze.__private__.getBlob=function(Ee){return new Blob([fr(Ee)],{type:"application/pdf"})},Hm=Ze.output=Ze.__private__.output=((Ee=function(Ee,ht){switch("string"==typeof(ht=ht||{})?ht={filename:ht}:ht.filename=ht.filename||"generated.pdf",Ee){case void 0:return pd();case"save":Ze.save(ht.filename);break;case"arraybuffer":return fr(pd());case"blob":return Rf(pd());case"bloburi":case"bloburl":if(void 0!==go.URL&&"function"==typeof go.URL.createObjectURL)return go.URL&&go.URL.createObjectURL(Rf(pd()))||void 0;Bs.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var sn="",Pn=pd();try{sn=_l(Pn)}catch{sn=_l(unescape(encodeURIComponent(Pn)))}return"data:application/pdf;filename="+ht.filename+";base64,"+sn;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(go)){var Jn="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",zi=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';ht.pdfObjectUrl&&(Jn=ht.pdfObjectUrl,zi="");var Nr='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><script src="'+Jn+'"'+zi+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(ht)+");<\/script></body></html>",zr=go.open();return null!==zr&&zr.document.write(Nr),zr}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(go)){var Zr='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe id="pdfViewer" src="'+(ht.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+ht.filename+'" width="500px" height="400px" /></body></html>',aa=go.open();if(null!==aa){aa.document.write(Zr);var ra=this;aa.document.documentElement.querySelector("#pdfViewer").onload=function(){aa.document.title=ht.filename,aa.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(ra.output("bloburl"))}}return aa}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(go))throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Cl='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe src="'+this.output("datauristring",ht)+'"></iframe></body></html>',yc=go.open();if(null!==yc&&(yc.document.write(Cl),yc.document.title=ht.filename),yc||typeof safari>"u")return yc;break;case"datauri":case"dataurl":return go.document.location.href=this.output("datauristring",ht);default:return null}}).foo=function(){try{return Ee.apply(this,arguments)}catch(Pn){var ht=Pn.stack||"";~ht.indexOf(" at ")&&(ht=ht.split(" at ")[1]);var sn="Error in function "+ht.split("\n")[0].split("<")[0]+": "+Pn.message;if(!go.console)throw new Error(sn);go.console.error(sn,Pn),go.alert&&alert(sn)}},Ee.foo.bar=Ee,Ee.foo),_0=function(Ee){return!0===Array.isArray(cm)&&cm.indexOf(Ee)>-1};switch(ie){case"pt":Yt=1;break;case"mm":Yt=72/25.4;break;case"cm":Yt=72/2.54;break;case"in":Yt=72;break;case"px":Yt=1==_0("px_scaling")?.75:96/72;break;case"pc":case"em":Yt=12;break;case"ex":Yt=6;break;default:if("number"!=typeof ie)throw new Error("Invalid unit: "+ie);Yt=ie}var bd=null;no(),li();var Um=Ze.__private__.getPageInfo=Ze.getPageInfo=function(Ee){if(isNaN(Ee)||Ee%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Cs[Ee].objId,pageNumber:Ee,pageContext:Cs[Ee]}},oa=Ze.__private__.getPageInfoByObjId=function(Ee){if(isNaN(Ee)||Ee%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var ht in Cs)if(Cs[ht].objId===Ee)break;return Um(ht)},y0=Ze.__private__.getCurrentPageInfo=Ze.getCurrentPageInfo=function(){return{objId:Cs[on].objId,pageNumber:on,pageContext:Cs[on]}};Ze.addPage=function(){return In.apply(this,arguments),this},Ze.setPage=function(){return Co.apply(this,arguments),Yi.call(this,kr[on]),this},Ze.insertPage=function(Ee){return this.addPage(),this.movePage(on,Ee),this},Ze.movePage=function(Ee,ht){var sn,Pn;if(Ee>ht){sn=kr[Ee],Pn=Cs[Ee];for(var Jn=Ee;Jn>ht;Jn--)kr[Jn]=kr[Jn-1],Cs[Jn]=Cs[Jn-1];kr[ht]=sn,Cs[ht]=Pn,this.setPage(ht)}else if(Ee<ht){sn=kr[Ee],Pn=Cs[Ee];for(var zi=Ee;zi<ht;zi++)kr[zi]=kr[zi+1],Cs[zi]=Cs[zi+1];kr[ht]=sn,Cs[ht]=Pn,this.setPage(ht)}return this},Ze.deletePage=function(){return Li.apply(this,arguments),this},Ze.__private__.text=Ze.text=function(Ee,ht,sn,Pn,Jn){var zi,Nr,zr,Zr,aa,ra,Cl,yc,Wl,Jl=(Pn=Pn||{}).scope||this;if("number"==typeof Ee&&"number"==typeof ht&&("string"==typeof sn||Array.isArray(sn))){var Ca=sn;sn=ht,ht=Ee,Ee=Ca}if(arguments[3]instanceof xs?(bn("The transform parameter of text() with a Matrix value"),Wl=Jn):(zr=arguments[4],Zr=arguments[5],"object"===(0,T.A)(Cl=arguments[3])&&null!==Cl||("string"==typeof zr&&(Zr=zr,zr=null),"string"==typeof Cl&&(Zr=Cl,Cl=null),"number"==typeof Cl&&(zr=Cl,Cl=null),Pn={flags:Cl,angle:zr,align:Zr})),isNaN(ht)||isNaN(sn)||null==Ee)throw new Error("Invalid arguments passed to jsPDF.text");if(0===Ee.length)return Jl;var _h,Ou="",sp="number"==typeof Pn.lineHeightFactor?Pn.lineHeightFactor:vh,Pf=Jl.internal.scaleFactor;function w0(ac){return ac=ac.split("\t").join(Array(Pn.TabLen||9).join(" ")),et(ac,Cl)}function Og(ac){for(var lc,Tu=ac.concat(),Zc=[],Wm=Tu.length;Wm--;)"string"==typeof(lc=Tu.shift())?Zc.push(lc):Array.isArray(ac)&&(1===lc.length||void 0===lc[1]&&void 0===lc[2])?Zc.push(lc[0]):Zc.push([lc[0],lc[1],lc[2]]);return Zc}function r_(ac,lc){var Tu;if("string"==typeof ac)Tu=lc(ac)[0];else if(Array.isArray(ac)){for(var Zc,Wm,Gg=ac.concat(),Bg=[],c_=Gg.length;c_--;)"string"==typeof(Zc=Gg.shift())?Bg.push(lc(Zc)[0]):Array.isArray(Zc)&&"string"==typeof Zc[0]&&(Wm=lc(Zc[0],Zc[1],Zc[2]),Bg.push([Wm[0],Wm[1],Wm[2]]));Tu=Bg}return Tu}var Xh=!1,Zi=!0;if("string"==typeof Ee)Xh=!0;else if(Array.isArray(Ee)){var m1=Ee.concat();Nr=[];for(var $m,Bd=m1.length;Bd--;)("string"!=typeof($m=m1.shift())||Array.isArray($m)&&"string"!=typeof $m[0])&&(Zi=!1);Xh=Zi}if(!1===Xh)throw new Error('Type of text must be string or Array. "'+Ee+'" is not recognized.');"string"==typeof Ee&&(Ee=Ee.match(/[\r?\n]/)?Ee.split(/\r\n|\r|\n/g):[Ee]);var zp=ro/Jl.internal.scaleFactor,Et=zp*(sp-1);switch(Pn.baseline){case"bottom":sn-=Et;break;case"top":sn+=zp-Et;break;case"hanging":sn+=zp-2*Et;break;case"middle":sn+=zp/2-Et}if((ra=Pn.maxWidth||0)>0&&("string"==typeof Ee?Ee=Jl.splitTextToSize(Ee,ra):"[object Array]"===Object.prototype.toString.call(Ee)&&(Ee=Ee.reduce(function(ac,lc){return ac.concat(Jl.splitTextToSize(lc,ra))},[]))),pl.publish("preProcessText",zi={text:Ee,x:ht,y:sn,options:Pn,mutex:{pdfEscape:et,activeFontKey:On,fonts:Ur,activeFontSize:ro}}),Ee=zi.text,zr=(Pn=zi.options).angle,Wl instanceof xs||!zr||"number"!=typeof zr)zr&&zr instanceof xs&&(Wl=zr);else{zr*=Math.PI/180,0===Pn.rotationDirection&&(zr=-zr),"advanced"===Vn&&(zr=-zr);var Fg=Math.cos(zr),lC=Math.sin(zr);Wl=new xs(Fg,lC,-lC,Fg,0,0)}"advanced"!==Vn||Wl||(Wl=Hp),void 0!==(aa=Pn.charSpace||zh)&&(Ou+=si(jt(aa))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),void 0!==(yc=Pn.horizontalScale)&&(Ou+=si(100*yc)+" Tz\n");var qp=-1,cC=void 0!==Pn.renderingMode?Pn.renderingMode:Pn.stroke,T0=Jl.internal.getCurrentPageInfo().pageContext;switch(cC){case 0:case!1:case"fill":qp=0;break;case 1:case!0:case"stroke":qp=1;break;case 2:case"fillThenStroke":qp=2;break;case 3:case"invisible":qp=3;break;case 4:case"fillAndAddForClipping":qp=4;break;case 5:case"strokeAndAddPathForClipping":qp=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":qp=6;break;case 7:case"addToPathForClipping":qp=7}-1!==qp?Ou+=qp+" Tr\n":-1!==(void 0!==T0.usedRenderingMode?T0.usedRenderingMode:-1)&&(Ou+="0 Tr\n"),-1!==qp&&(T0.usedRenderingMode=qp),Zr=Pn.align||"left";var Xp,Ju=ro*sp,fm=Jl.internal.pageSize.getWidth(),Kh=Ur[On];aa=Pn.charSpace||zh,ra=Pn.maxWidth||0,Cl=Object.assign({autoencode:!0,noBOM:!0},Pn.flags);var Pg=[],o_=function(ac){return Jl.getStringUnitWidth(ac,{font:Kh,charSpace:aa,fontSize:ro,doKerning:!1})*ro/Pf};if("[object Array]"===Object.prototype.toString.call(Ee)){var wd;Nr=Og(Ee),"left"!==Zr&&(Xp=Nr.map(o_));var wl,mm=0;if("right"===Zr){ht-=Xp[0],Ee=[],Bd=Nr.length;for(var Lf=0;Lf<Bd;Lf++)0===Lf?(wl=Hc(ht),wd=Cd(sn)):(wl=jt(mm-Xp[Lf]),wd=-Ju),Ee.push([Nr[Lf],wl,wd]),mm=Xp[Lf]}else if("center"===Zr){ht-=Xp[0]/2,Ee=[],Bd=Nr.length;for(var yh=0;yh<Bd;yh++)0===yh?(wl=Hc(ht),wd=Cd(sn)):(wl=jt((mm-Xp[yh])/2),wd=-Ju),Ee.push([Nr[yh],wl,wd]),mm=Xp[yh]}else if("left"===Zr){Ee=[],Bd=Nr.length;for(var _p=0;_p<Bd;_p++)Ee.push(Nr[_p])}else if("justify"===Zr&&"Identity-H"===Kh.encoding){Ee=[],Bd=Nr.length,ra=0!==ra?ra:fm;for(var gm=0,Jc=0;Jc<Bd;Jc++)if(wd=0===Jc?Cd(sn):-Ju,wl=0===Jc?Hc(ht):gm,Jc<Bd-1){var Lg=jt((ra-Xp[Jc])/(Nr[Jc].split(" ").length-1)),yp=Nr[Jc].split(" ");Ee.push([yp[0]+" ",wl,wd]),gm=0;for(var Qh=1;Qh<yp.length;Qh++){var S0=(o_(yp[Qh-1]+" "+yp[Qh])-o_(yp[Qh]))*Pf+Lg;Ee.push(Qh==yp.length-1?[yp[Qh],S0,0]:[yp[Qh]+" ",S0,0]),gm-=S0}}else Ee.push([Nr[Jc],wl,wd]);Ee.push(["",gm,0])}else{if("justify"!==Zr)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(Ee=[],Bd=Nr.length,ra=0!==ra?ra:fm,Jc=0;Jc<Bd;Jc++)wd=0===Jc?Cd(sn):-Ju,wl=0===Jc?Hc(ht):0,Pg.push(Jc<Bd-1?si(jt((ra-Xp[Jc])/(Nr[Jc].split(" ").length-1))):0),Ee.push([Nr[Jc],wl,wd])}}!0===("boolean"==typeof Pn.R2L?Pn.R2L:oe)&&(Ee=r_(Ee,function(ac,lc,Tu){return[ac.split("").reverse().join(""),lc,Tu]})),pl.publish("postProcessText",zi={text:Ee,x:ht,y:sn,options:Pn,mutex:{pdfEscape:et,activeFontKey:On,fonts:Ur,activeFontSize:ro}}),Ee=zi.text,_h=zi.mutex.isHex||!1;var s_=Ur[On].encoding;"WinAnsiEncoding"!==s_&&"StandardEncoding"!==s_||(Ee=r_(Ee,function(ac,lc,Tu){return[w0(ac),lc,Tu]})),Nr=Og(Ee),Ee=[];for(var a_,bp,fu,Td=Array.isArray(Nr[0])?1:0,l_="",uC=function(ac,lc,Tu){var Zc="";return Tu instanceof xs?(Tu="number"==typeof Pn.angle?jp(Tu,new xs(1,0,0,1,ac,lc)):jp(new xs(1,0,0,1,ac,lc),Tu),"advanced"===Vn&&(Tu=jp(new xs(1,0,0,-1,0,0),Tu)),Zc=Tu.join(" ")+" Tm\n"):Zc=si(ac)+" "+si(lc)+" Td\n",Zc},bc=0;bc<Nr.length;bc++){switch(l_="",Td){case 1:fu=(_h?"<":"(")+Nr[bc][0]+(_h?">":")"),a_=parseFloat(Nr[bc][1]),bp=parseFloat(Nr[bc][2]);break;case 0:fu=(_h?"<":"(")+Nr[bc]+(_h?">":")"),a_=Hc(ht),bp=Cd(sn)}void 0!==Pg&&void 0!==Pg[bc]&&(l_=Pg[bc]+" Tw\n"),0===bc?Ee.push(l_+uC(a_,bp,Wl)+fu):0===Td?Ee.push(l_+fu):1===Td&&Ee.push(l_+uC(a_,bp,Wl)+fu)}Ee=Ee.join(0===Td?" Tj\nT* ":" Tj\n"),Ee+=" Tj\n";var Vd="BT\n/";return Vd+=On+" "+ro+" Tf\n",Vd+=si(ro*sp)+" TL\n",Vd+=mo+"\n",Vd+=Ou,Vd+=Ee,vn(Vd+="ET"),kt[On]=!0,Jl};var c1=Ze.__private__.clip=Ze.clip=function(Ee){return vn("evenodd"===Ee?"W*":"W"),this};Ze.clipEvenOdd=function(){return c1("evenodd")},Ze.__private__.discardPath=Ze.discardPath=function(){return vn("n"),this};var gh=Ze.__private__.isValidStyle=function(Ee){var ht=!1;return-1!==[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(Ee)&&(ht=!0),ht};Ze.__private__.setDefaultPathOperation=Ze.setDefaultPathOperation=function(Ee){return gh(Ee)&&(it=Ee),this};var n_=Ze.__private__.getStyle=Ze.getStyle=function(Ee){var ht=it;switch(Ee){case"D":case"S":ht="S";break;case"F":ht="f";break;case"FD":case"DF":ht="B";break;case"f":case"f*":case"B":case"B*":ht=Ee}return ht},b0=Ze.close=function(){return vn("h"),this};Ze.stroke=function(){return vn("S"),this},Ze.fill=function(Ee){return hm("f",Ee),this},Ze.fillEvenOdd=function(Ee){return hm("f*",Ee),this},Ze.fillStroke=function(Ee){return hm("B",Ee),this},Ze.fillStrokeEvenOdd=function(Ee){return hm("B*",Ee),this};var hm=function(Ee,ht){"object"===(0,T.A)(ht)?d1(ht,Ee):vn(Ee)},hd=function(Ee){null===Ee||"advanced"===Vn&&void 0===Ee||(Ee=n_(Ee),vn(Ee))};function u1(Ee,ht,sn,Pn,Jn){var zi=new vr(ht||this.boundingBox,sn||this.xStep,Pn||this.yStep,this.gState,Jn||this.matrix);zi.stream=this.stream;var Nr=Ee+"$$"+this.cloneIndex+++"$$";return Nd(Nr,zi),zi}var d1=function(Ee,ht){var sn=ha[Ee.key],Pn=zs[sn];if(Pn instanceof Zn)vn("q"),vn(oC(ht)),Pn.gState&&Ze.setGState(Pn.gState),vn(Ee.matrix.toString()+" cm"),vn("/"+sn+" sh"),vn("Q");else if(Pn instanceof vr){var Jn=new xs(1,0,0,-1,0,qh());Ee.matrix&&(Jn=Jn.multiply(Ee.matrix||Hp),sn=u1.call(Pn,Ee.key,Ee.boundingBox,Ee.xStep,Ee.yStep,Jn).id),vn("q"),vn("/Pattern cs"),vn("/"+sn+" scn"),Pn.gState&&Ze.setGState(Pn.gState),vn(ht),vn("Q")}},oC=function(Ee){switch(Ee){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},Of=Ze.moveTo=function(Ee,ht){return vn(si(jt(Ee))+" "+si(Cn(ht))+" m"),this},Wh=Ze.lineTo=function(Ee,ht){return vn(si(jt(Ee))+" "+si(Cn(ht))+" l"),this},Mc=Ze.curveTo=function(Ee,ht,sn,Pn,Jn,zi){return vn([si(jt(Ee)),si(Cn(ht)),si(jt(sn)),si(Cn(Pn)),si(jt(Jn)),si(Cn(zi)),"c"].join(" ")),this};Ze.__private__.line=Ze.line=function(Ee,ht,sn,Pn,Jn){if(isNaN(Ee)||isNaN(ht)||isNaN(sn)||isNaN(Pn)||!gh(Jn))throw new Error("Invalid arguments passed to jsPDF.line");return"compat"===Vn?this.lines([[sn-Ee,Pn-ht]],Ee,ht,[1,1],Jn||"S"):this.lines([[sn-Ee,Pn-ht]],Ee,ht,[1,1]).stroke()},Ze.__private__.lines=Ze.lines=function(Ee,ht,sn,Pn,Jn,zi){var Nr,zr,Zr,aa,ra,Ca,Ou,_h;if("number"==typeof Ee&&(_h=sn,sn=ht,ht=Ee,Ee=_h),Pn=Pn||[1,1],zi=zi||!1,isNaN(ht)||isNaN(sn)||!Array.isArray(Ee)||!Array.isArray(Pn)||!gh(Jn)||"boolean"!=typeof zi)throw new Error("Invalid arguments passed to jsPDF.lines");for(Of(ht,sn),Nr=Pn[0],zr=Pn[1],aa=Ee.length,Ca=ht,Ou=sn,Zr=0;Zr<aa;Zr++)2===(ra=Ee[Zr]).length?Wh(Ca=ra[0]*Nr+Ca,Ou=ra[1]*zr+Ou):Mc(ra[0]*Nr+Ca,ra[1]*zr+Ou,ra[2]*Nr+Ca,ra[3]*zr+Ou,Ca=ra[4]*Nr+Ca,Ou=ra[5]*zr+Ou);return zi&&b0(),hd(Jn),this},Ze.path=function(Ee){for(var ht=0;ht<Ee.length;ht++){var sn=Ee[ht],Pn=sn.c;switch(sn.op){case"m":Of(Pn[0],Pn[1]);break;case"l":Wh(Pn[0],Pn[1]);break;case"c":Mc.apply(this,Pn);break;case"h":b0()}}return this},Ze.__private__.rect=Ze.rect=function(Ee,ht,sn,Pn,Jn){if(isNaN(Ee)||isNaN(ht)||isNaN(sn)||isNaN(Pn)||!gh(Jn))throw new Error("Invalid arguments passed to jsPDF.rect");return"compat"===Vn&&(Pn=-Pn),vn([si(jt(Ee)),si(Cn(ht)),si(jt(sn)),si(jt(Pn)),"re"].join(" ")),hd(Jn),this},Ze.__private__.triangle=Ze.triangle=function(Ee,ht,sn,Pn,Jn,zi,Nr){if(isNaN(Ee)||isNaN(ht)||isNaN(sn)||isNaN(Pn)||isNaN(Jn)||isNaN(zi)||!gh(Nr))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[sn-Ee,Pn-ht],[Jn-sn,zi-Pn],[Ee-Jn,ht-zi]],Ee,ht,[1,1],Nr,!0),this},Ze.__private__.roundedRect=Ze.roundedRect=function(Ee,ht,sn,Pn,Jn,zi,Nr){if(isNaN(Ee)||isNaN(ht)||isNaN(sn)||isNaN(Pn)||isNaN(Jn)||isNaN(zi)||!gh(Nr))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var zr=4/3*(Math.SQRT2-1);return Jn=Math.min(Jn,.5*sn),zi=Math.min(zi,.5*Pn),this.lines([[sn-2*Jn,0],[Jn*zr,0,Jn,zi-zi*zr,Jn,zi],[0,Pn-2*zi],[0,zi*zr,-Jn*zr,zi,-Jn,zi],[2*Jn-sn,0],[-Jn*zr,0,-Jn,-zi*zr,-Jn,-zi],[0,2*zi-Pn],[0,-zi*zr,Jn*zr,-zi,Jn,-zi]],Ee+Jn,ht,[1,1],Nr,!0),this},Ze.__private__.ellipse=Ze.ellipse=function(Ee,ht,sn,Pn,Jn){if(isNaN(Ee)||isNaN(ht)||isNaN(sn)||isNaN(Pn)||!gh(Jn))throw new Error("Invalid arguments passed to jsPDF.ellipse");var zi=4/3*(Math.SQRT2-1)*sn,Nr=4/3*(Math.SQRT2-1)*Pn;return Of(Ee+sn,ht),Mc(Ee+sn,ht-Nr,Ee+zi,ht-Pn,Ee,ht-Pn),Mc(Ee-zi,ht-Pn,Ee-sn,ht-Nr,Ee-sn,ht),Mc(Ee-sn,ht+Nr,Ee-zi,ht+Pn,Ee,ht+Pn),Mc(Ee+zi,ht+Pn,Ee+sn,ht+Nr,Ee+sn,ht),hd(Jn),this},Ze.__private__.circle=Ze.circle=function(Ee,ht,sn,Pn){if(isNaN(Ee)||isNaN(ht)||isNaN(sn)||!gh(Pn))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(Ee,ht,sn,sn,Pn)},Ze.setFont=function(Ee,ht,sn){return sn&&(ht=sr(ht,sn)),On=Es(Ee,ht,{disableWarning:!1}),this};var MT=Ze.__private__.getFont=Ze.getFont=function(){return Ur[Es.apply(Ze,arguments)]};Ze.__private__.getFontList=Ze.getFontList=function(){var Ee,ht,sn={};for(Ee in Oo)if(Oo.hasOwnProperty(Ee))for(ht in sn[Ee]=[],Oo[Ee])Oo[Ee].hasOwnProperty(ht)&&sn[Ee].push(ht);return sn},Ze.addFont=function(Ee,ht,sn,Pn,Jn){var zi=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&-1!==zi.indexOf(arguments[3])?Jn=arguments[3]:arguments[3]&&-1==zi.indexOf(arguments[3])&&(sn=sr(sn,Pn)),Vo.call(this,Ee,ht,sn,Jn=Jn||"Identity-H")};var vh,qi=j.lineWidth||.200025,Ru=Ze.__private__.getLineWidth=Ze.getLineWidth=function(){return qi},Kr=Ze.__private__.setLineWidth=Ze.setLineWidth=function(Ee){return qi=Ee,vn(si(jt(Ee))+" w"),this};Ze.__private__.setLineDash=ti.API.setLineDash=ti.API.setLineDashPattern=function(Ee,ht){if(Ee=Ee||[],ht=ht||0,isNaN(ht)||!Array.isArray(Ee))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return Ee=Ee.map(function(sn){return si(jt(sn))}).join(" "),ht=si(jt(ht)),vn("["+Ee+"] "+ht+" d"),this};var Xe=Ze.__private__.getLineHeight=Ze.getLineHeight=function(){return ro*vh};Ze.__private__.getLineHeight=Ze.getLineHeight=function(){return ro*vh};var _a=Ze.__private__.setLineHeightFactor=Ze.setLineHeightFactor=function(Ee){return"number"==typeof(Ee=Ee||1.15)&&(vh=Ee),this},C0=Ze.__private__.getLineHeightFactor=Ze.getLineHeightFactor=function(){return vh};_a(j.lineHeight);var Hc=Ze.__private__.getHorizontalCoordinate=function(Ee){return jt(Ee)},Cd=Ze.__private__.getVerticalCoordinate=function(Ee){return"advanced"===Vn?Ee:Cs[on].mediaBox.topRightY-Cs[on].mediaBox.bottomLeftY-jt(Ee)},p1=Ze.__private__.getHorizontalCoordinateString=Ze.getHorizontalCoordinateString=function(Ee){return si(Hc(Ee))},Ff=Ze.__private__.getVerticalCoordinateString=Ze.getVerticalCoordinateString=function(Ee){return si(Cd(Ee))},fd=j.strokeColor||"0 G";Ze.__private__.getStrokeColor=Ze.getDrawColor=function(){return Yh(fd)},Ze.__private__.setStrokeColor=Ze.setDrawColor=function(Ee,ht,sn,Pn){return fd=Ku({ch1:Ee,ch2:ht,ch3:sn,ch4:Pn,pdfColorType:"draw",precision:2}),vn(fd),this};var Nn=j.fillColor||"0 g";Ze.__private__.getFillColor=Ze.getFillColor=function(){return Yh(Nn)},Ze.__private__.setFillColor=Ze.setFillColor=function(Ee,ht,sn,Pn){return Nn=Ku({ch1:Ee,ch2:ht,ch3:sn,ch4:Pn,pdfColorType:"fill",precision:2}),vn(Nn),this};var mo=j.textColor||"0 g",qo=Ze.__private__.getTextColor=Ze.getTextColor=function(){return Yh(mo)};Ze.__private__.setTextColor=Ze.setTextColor=function(Ee,ht,sn,Pn){return mo=Ku({ch1:Ee,ch2:ht,ch3:sn,ch4:Pn,pdfColorType:"text",precision:3}),this};var zh=j.charSpace,RT=Ze.__private__.getCharSpace=Ze.getCharSpace=function(){return parseFloat(zh||0)};Ze.__private__.setCharSpace=Ze.setCharSpace=function(Ee){if(isNaN(Ee))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return zh=Ee,this};var ms=0;Ze.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},Ze.__private__.setLineCap=Ze.setLineCap=function(Ee){var ht=Ze.CapJoinStyles[Ee];if(void 0===ht)throw new Error("Line cap style of '"+Ee+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return ms=ht,vn(ht+" J"),this};var h1=0;Ze.__private__.setLineJoin=Ze.setLineJoin=function(Ee){var ht=Ze.CapJoinStyles[Ee];if(void 0===ht)throw new Error("Line join style of '"+Ee+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return h1=ht,vn(ht+" j"),this},Ze.__private__.setLineMiterLimit=Ze.__private__.setMiterLimit=Ze.setLineMiterLimit=Ze.setMiterLimit=function(Ee){if(Ee=Ee||0,isNaN(Ee))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return vn(si(jt(Ee))+" M"),this},Ze.GState=ei,Ze.setGState=function(Ee){(Ee="string"==typeof Ee?$a[Np[Ee]]:f1(null,Ee)).equals(Gp)||(vn("/"+Ee.id+" gs"),Gp=Ee)};var f1=function(Ee,ht){if(!Ee||!Np[Ee]){var sn=!1;for(var Pn in $a)if($a.hasOwnProperty(Pn)&&$a[Pn].equals(ht)){sn=!0;break}if(sn)ht=$a[Pn];else{var Jn="GS"+(Object.keys($a).length+1).toString(10);$a[Jn]=ht,ht.id=Jn}return Ee&&(Np[Ee]=ht.id),pl.publish("addGState",ht),ht}};Ze.addGState=function(Ee,ht){return f1(Ee,ht),this},Ze.saveGraphicsState=function(){return vn("q"),ia.push({key:On,size:ro,color:mo}),this},Ze.restoreGraphicsState=function(){vn("Q");var Ee=ia.pop();return On=Ee.key,ro=Ee.size,mo=Ee.color,Gp=null,this},Ze.setCurrentTransformationMatrix=function(Ee){return vn(Ee.toString()+" cm"),this},Ze.comment=function(Ee){return vn("#"+Ee),this};var Ja=function(Ee,ht){var sn=Ee||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return sn},set:function(zi){isNaN(zi)||(sn=parseFloat(zi))}});var Pn=ht||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Pn},set:function(zi){isNaN(zi)||(Pn=parseFloat(zi))}});var Jn="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return Jn},set:function(zi){Jn=zi.toString()}}),this},$l=function(Ee,ht,sn,Pn){Ja.call(this,Ee,ht),this.type="rect";var Jn=sn||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return Jn},set:function(Nr){isNaN(Nr)||(Jn=parseFloat(Nr))}});var zi=Pn||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return zi},set:function(Nr){isNaN(Nr)||(zi=parseFloat(Nr))}}),this},sC=function(){this.page=vc,this.currentPage=on,this.pages=kr.slice(0),this.pagesContext=Cs.slice(0),this.x=mr,this.y=Sr,this.matrix=Qo,this.width=Yl(on),this.height=qh(on),this.outputDestination=io,this.id="",this.objectNumber=-1};sC.prototype.restore=function(){vc=this.page,Cs=this.pagesContext,kr=this.pages,mr=this.x,Sr=this.y,Qo=this.matrix,Rg(on=this.currentPage,this.width),Wp(on,this.height),io=this.outputDestination};var aC=function(Ee,ht,sn,Pn,Jn){Vp.push(new sC),vc=on=0,kr=[],mr=Ee,Sr=ht,Qo=Jn,It([sn,Pn])};for(var i_ in Ze.beginFormObject=function(Ee,ht,sn,Pn,Jn){return aC(Ee,ht,sn,Pn,Jn),this},Ze.endFormObject=function(Ee){return function(Ee){if(Bp[Ee])Vp.pop().restore();else{var ht=new sC,sn="Xo"+(Object.keys(Mu).length+1).toString(10);ht.id=sn,Bp[Ee]=sn,Mu[sn]=ht,pl.publish("addFormObject",ht),Vp.pop().restore()}}(Ee),this},Ze.doFormObject=function(Ee,ht){var sn=Mu[Bp[Ee]];return vn("q"),vn(ht.toString()+" cm"),vn("/"+sn.id+" Do"),vn("Q"),this},Ze.getFormObject=function(Ee){var ht=Mu[Bp[Ee]];return{x:ht.x,y:ht.y,width:ht.width,height:ht.height,matrix:ht.matrix}},Ze.save=function(Ee,ht){return Ee=Ee||"generated.pdf",(ht=ht||{}).returnPromise=ht.returnPromise||!1,!1===ht.returnPromise?(al(Rf(pd()),Ee),"function"==typeof al.unload&&go.setTimeout&&setTimeout(al.unload,911),this):new Promise(function(sn,Pn){try{var Jn=al(Rf(pd()),Ee);"function"==typeof al.unload&&go.setTimeout&&setTimeout(al.unload,911),sn(Jn)}catch(zi){Pn(zi.message)}})},ti.API)ti.API.hasOwnProperty(i_)&&("events"===i_&&ti.API.events.length?function(Ee,ht){var Pn,Jn;for(Jn=ht.length-1;-1!==Jn;Jn--)Ee.subscribe.apply(Ee,[ht[Jn][0]].concat("function"==typeof(Pn=ht[Jn][1])?[Pn]:Pn))}(pl,ti.API.events):Ze[i_]=ti.API[i_]);var Yl=Ze.getPageWidth=function(Ee){return(Cs[Ee=Ee||on].mediaBox.topRightX-Cs[Ee].mediaBox.bottomLeftX)/Yt},Rg=Ze.setPageWidth=function(Ee,ht){Cs[Ee].mediaBox.topRightX=ht*Yt+Cs[Ee].mediaBox.bottomLeftX},qh=Ze.getPageHeight=function(Ee){return(Cs[Ee=Ee||on].mediaBox.topRightY-Cs[Ee].mediaBox.bottomLeftY)/Yt},Wp=Ze.setPageHeight=function(Ee,ht){Cs[Ee].mediaBox.topRightY=ht*Yt+Cs[Ee].mediaBox.bottomLeftY};return Ze.internal={pdfEscape:et,getStyle:n_,getFont:MT,getFontSize:He,getCharSpace:RT,getTextColor:qo,getLineHeight:Xe,getLineHeightFactor:C0,getLineWidth:Ru,write:Yn,getHorizontalCoordinate:Hc,getVerticalCoordinate:Cd,getCoordinateString:p1,getVerticalCoordinateString:Ff,collections:{},newObject:Ql,newAdditionalObject:hl,newObjectDeferred:La,newObjectDeferredBegin:Xu,getFilters:fh,putStream:bu,events:pl,scaleFactor:Yt,pageSize:{getWidth:function(){return Yl(on)},setWidth:function(Ee){Rg(on,Ee)},getHeight:function(){return qh(on)},setHeight:function(Ee){Wp(on,Ee)}},encryptionOptions:pt,encryption:bd,getEncryptor:function(Ee){return null!==pt?bd.encryptor(Ee,0):function(ht){return ht}},output:Hm,getNumberOfPages:ls,pages:kr,out:vn,f2:ji,f3:Ut,getPageInfo:Um,getPageInfoByObjId:oa,getCurrentPageInfo:y0,getPDFVersion:Ht,Point:Ja,Rectangle:$l,Matrix:xs,hasHotfix:_0},Object.defineProperty(Ze.internal.pageSize,"width",{get:function(){return Yl(on)},set:function(Ee){Rg(on,Ee)},enumerable:!0,configurable:!0}),Object.defineProperty(Ze.internal.pageSize,"height",{get:function(){return qh(on)},set:function(Ee){Wp(on,Ee)},enumerable:!0,configurable:!0}),function(Ee){for(var ht=0,sn=Pr.length;ht<sn;ht++){var Pn=Vo.call(this,Ee[ht][0],Ee[ht][1],Ee[ht][2],Pr[ht][3],!0);!1===ft&&(kt[Pn]=!0);var Jn=Ee[ht][0].split("-");pm({id:Pn,fontName:Jn[0],fontStyle:Jn[1]||""})}pl.publish("addFonts",{fonts:Ur,dictionary:Oo})}.call(Ze,Pr),On="F1",In(ge,V),pl.publish("initialized"),Ze}tn.prototype.lsbFirstWord=function(j){return String.fromCharCode(255&j,j>>8&255,j>>16&255,j>>24&255)},tn.prototype.toHexString=function(j){return j.split("").map(function(O){return("0"+(255&O.charCodeAt(0)).toString(16)).slice(-2)}).join("")},tn.prototype.hexToBytes=function(j){for(var O=[],V=0;V<j.length;V+=2)O.push(String.fromCharCode(parseInt(j.substr(V,2),16)));return O.join("")},tn.prototype.processOwnerPassword=function(j,O){return $e(Ic(O).substr(0,5),j)},tn.prototype.encryptor=function(j,O){var V=Ic(this.encryptionKey+String.fromCharCode(255&j,j>>8&255,j>>16&255,255&O,O>>8&255)).substr(0,10);return function(ie){return $e(V,ie)}},ei.prototype.equals=function(j){var O,V="id,objectNumber,equals";if(!j||(0,T.A)(j)!==(0,T.A)(this))return!1;var ie=0;for(O in this)if(!(V.indexOf(O)>=0)){if(this.hasOwnProperty(O)&&!j.hasOwnProperty(O)||this[O]!==j[O])return!1;ie++}for(O in j)j.hasOwnProperty(O)&&V.indexOf(O)<0&&ie--;return 0===ie},ti.API={events:[]},ti.version="2.5.2";var Rr=ti.API,Rn=1,nr=function(j){return j.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},dr=function(j){return j.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Or=function(j){return j.toFixed(2)},Zo=function(j){return j.toFixed(5)};Rr.__acroform__={};var jr=function(j,O){j.prototype=Object.create(O.prototype),j.prototype.constructor=j},as=function(j){return j*Rn},$s=function(j){var O=new Oe,V=Tr.internal.getHeight(j)||0,ie=Tr.internal.getWidth(j)||0;return O.BBox=[0,0,Number(Or(ie)),Number(Or(V))],O},oc=Rr.__acroform__.setBit=function(j,O){if(j=j||0,O=O||0,isNaN(j)||isNaN(O))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return j|1<<O},Qa=Rr.__acroform__.clearBit=function(j,O){if(j=j||0,O=O||0,isNaN(j)||isNaN(O))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return j&~(1<<O)},Vs=Rr.__acroform__.getBit=function(j,O){if(isNaN(j)||isNaN(O))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return j&1<<O?1:0},ga=Rr.__acroform__.getBitForPdf=function(j,O){if(isNaN(j)||isNaN(O))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Vs(j,O-1)},Rl=Rr.__acroform__.setBitForPdf=function(j,O){if(isNaN(j)||isNaN(O))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return oc(j,O-1)},gn=Rr.__acroform__.clearBitForPdf=function(j,O){if(isNaN(j)||isNaN(O))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Qa(j,O-1)},po=Rr.__acroform__.calculateCoordinates=function(j,O){var V=O.internal.getHorizontalCoordinate,ie=O.internal.getVerticalCoordinate,ge=j[0],ue=j[1],Me=j[2],Ne=j[3],Be={};return Be.lowerLeft_X=V(ge)||0,Be.lowerLeft_Y=ie(ue+Ne)||0,Be.upperRight_X=V(ge+Me)||0,Be.upperRight_Y=ie(ue)||0,[Number(Or(Be.lowerLeft_X)),Number(Or(Be.lowerLeft_Y)),Number(Or(Be.upperRight_X)),Number(Or(Be.upperRight_Y))]},Ys=function(j){if(j.appearanceStreamContent)return j.appearanceStreamContent;if(j.V||j.DV){var O=[],ie=Gr(j,j._V||j.DV),ge=j.scope.internal.getFont(j.fontName,j.fontStyle).id;O.push("/Tx BMC"),O.push("q"),O.push("BT"),O.push(j.scope.__private__.encodeColorString(j.color)),O.push("/"+ge+" "+Or(ie.fontSize)+" Tf"),O.push("1 0 0 1 0 0 Tm"),O.push(ie.text),O.push("ET"),O.push("Q"),O.push("EMC");var ue=$s(j);return ue.scope=j.scope,ue.stream=O.join("\n"),ue}},Gr=function(j,O){var V=0===j.fontSize?j.maxFontSize:j.fontSize,ie={text:"",fontSize:""},ge=(O=")"==(O="("==O.substr(0,1)?O.substr(1):O).substr(O.length-1)?O.substr(0,O.length-1):O).split(" ");ge=ge.map(j.multiline?function(Ut){return Ut.split("\n")}:function(Ut){return[Ut]});var ue=V,Me=Tr.internal.getHeight(j)||0;Me=Me<0?-Me:Me;var Ut,Ne=Tr.internal.getWidth(j)||0;Ne=Ne<0?-Ne:Ne,ue++;e:for(;ue>0;){O="",ue--;var it,pt,ft=ts("3",j,ue).height,kt=j.multiline?Me-ue:(Me-ft)/2,Ze=kt+=2,Qt=0,Ht=0,rn=0;if(ue<=0){O="(...) Tj\n",O+="% Width of Text: "+ts(O,j,ue=12).width+", FieldWidth:"+Ne+"\n";break}for(var St="",nn=0,Vn=0;Vn<ge.length;Vn++)if(ge.hasOwnProperty(Vn)){var qn=!1;if(1!==ge[Vn].length&&rn!==ge[Vn].length-1){if((ft+2)*(nn+2)+2>Me)continue e;St+=ge[Vn][rn],qn=!0,Ht=Vn,Vn--}else{St=" "==(St+=ge[Vn][rn]+" ").substr(St.length-1)?St.substr(0,St.length-1):St;var Ai=parseInt(Vn),sr=(Ut=Ai)+1<ge.length&&ts(St+" "+ge[Ut+1][0],j,ue).width<=Ne-4,si=Vn>=ge.length-1;if(sr&&!si){St+=" ",rn=0;continue}if(sr||si){if(si)Ht=Ai;else if(j.multiline&&(ft+2)*(nn+2)+2>Me)continue e}else{if(!j.multiline||(ft+2)*(nn+2)+2>Me)continue e;Ht=Ai}}for(var bn="",ui=Qt;ui<=Ht;ui++){var ji=ge[ui];if(j.multiline){if(ui===Ht){bn+=ji[rn]+" ",rn=(rn+1)%ji.length;continue}if(ui===Qt){bn+=ji[ji.length-1]+" ";continue}}bn+=ji[0]+" "}switch(bn=" "==bn.substr(bn.length-1)?bn.substr(0,bn.length-1):bn,pt=ts(bn,j,ue).width,j.textAlign){case"right":it=Ne-pt-2;break;case"center":it=(Ne-pt)/2;break;default:it=2}O+=Or(it)+" "+Or(Ze)+" Td\n",O+="("+nr(bn)+") Tj\n",O+=-Or(it)+" 0 Td\n",Ze=-(ue+2),pt=0,Qt=qn?Ht:Ht+1,nn++,St=""}break}return ie.text=O,ie.fontSize=ue,ie},ts=function(j,O,V){var ie=O.scope.internal.getFont(O.fontName,O.fontStyle),ge=O.scope.getStringUnitWidth(j,{font:ie,fontSize:parseFloat(V),charSpace:0})*parseFloat(V);return{height:O.scope.getStringUnitWidth("3",{font:ie,fontSize:parseFloat(V),charSpace:0})*parseFloat(V)*1.5,width:ge}},Js={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},va=function(j,O){var V={type:"reference",object:j};void 0===O.internal.getPageInfo(j.page).pageContext.annotations.find(function(ie){return ie.type===V.type&&ie.object===V.object})&&O.internal.getPageInfo(j.page).pageContext.annotations.push(V)},Ul=Rr.__acroform__.arrayToPdfArray=function(j,O,V){var ie=function(Me){return Me};if(Array.isArray(j)){for(var ge="[",ue=0;ue<j.length;ue++)switch(0!==ue&&(ge+=" "),(0,T.A)(j[ue])){case"boolean":case"number":case"object":ge+=j[ue].toString();break;case"string":"/"!==j[ue].substr(0,1)?(void 0!==O&&V&&(ie=V.internal.getEncryptor(O)),ge+="("+nr(ie(j[ue].toString()))+")"):ge+=j[ue].toString()}return ge+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},Ft=function(j,O,V){var ie=function(ge){return ge};return void 0!==O&&V&&(ie=V.internal.getEncryptor(O)),(j=j||"").toString(),"("+nr(ie(j))+")"},me=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(void 0===this._objId){if(void 0===this.scope)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(j){this._objId=j}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};me.prototype.toString=function(){return this.objId+" 0 R"},me.prototype.putStream=function(){var j=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:j,objectId:this.objId}),this.scope.internal.out("endobj")},me.prototype.getKeyValueListForStream=function(){var j=[],O=Object.getOwnPropertyNames(this).filter(function(ue){return"content"!=ue&&"appearanceStreamContent"!=ue&&"scope"!=ue&&"objId"!=ue&&"_"!=ue.substring(0,1)});for(var V in O)if(!1===Object.getOwnPropertyDescriptor(this,O[V]).configurable){var ie=O[V],ge=this[ie];ge&&(Array.isArray(ge)?j.push({key:ie,value:Ul(ge,this.objId,this.scope)}):ge instanceof me?(ge.scope=this.scope,j.push({key:ie,value:ge.objId+" 0 R"})):"function"!=typeof ge&&j.push({key:ie,value:ge}))}return j};var Oe=function(){me.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var j,O=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return O},set:function(V){O=V}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(V){j=V.trim()},get:function(){return j||null}})};jr(Oe,me);var Je=function(){me.call(this);var j,O=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return O.length>0?O:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return O}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(j){var V=function(ie){return ie};return this.scope&&(V=this.scope.internal.getEncryptor(this.objId)),"("+nr(V(j))+")"}},set:function(V){j=V}})};jr(Je,me);var yt=function j(){me.call(this);var O=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return O},set:function(St){if(isNaN(St))throw new Error('Invalid value "'+St+'" for attribute F supplied.');O=St}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!ga(O,3)},set:function(St){this.F=St?Rl(O,3):gn(O,3)}});var V=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return V},set:function(St){if(isNaN(St))throw new Error('Invalid value "'+St+'" for attribute Ff supplied.');V=St}});var ie=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==ie.length)return ie},set:function(St){ie=void 0!==St?St:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!ie||isNaN(ie[0])?0:ie[0]},set:function(St){ie[0]=St}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!ie||isNaN(ie[1])?0:ie[1]},set:function(St){ie[1]=St}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!ie||isNaN(ie[2])?0:ie[2]},set:function(St){ie[2]=St}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!ie||isNaN(ie[3])?0:ie[3]},set:function(St){ie[3]=St}});var ge="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return ge},set:function(St){switch(St){case"/Btn":case"/Tx":case"/Ch":case"/Sig":ge=St;break;default:throw new Error('Invalid value "'+St+'" for attribute FT supplied.')}}});var ue=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!ue||ue.length<1){if(this instanceof xr)return;ue="FieldObject"+j.FieldNum++}var St=function(nn){return nn};return this.scope&&(St=this.scope.internal.getEncryptor(this.objId)),"("+nr(St(ue))+")"},set:function(St){ue=St.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return ue},set:function(St){ue=St}});var Me="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return Me},set:function(St){Me=St}});var Ne="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return Ne},set:function(St){Ne=St}});var Be=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return Be},set:function(St){Be=St}});var it=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===it?50/Rn:it},set:function(St){it=St}});var pt="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return pt},set:function(St){pt=St}});var ft="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!ft||this instanceof xr||this instanceof ho))return Ft(ft,this.objId,this.scope)},set:function(St){St=St.toString(),ft=St}});var kt=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(kt)return this instanceof ai?kt:Ft(kt,this.objId,this.scope)},set:function(St){St=St.toString(),kt=this instanceof ai?St:"("===St.substr(0,1)?dr(St.substr(1,St.length-2)):dr(St)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof ai?dr(kt.substr(1,kt.length-1)):kt},set:function(St){St=St.toString(),kt=this instanceof ai?"/"+St:St}});var Ze=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(Ze)return Ze},set:function(St){this.V=St}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(Ze)return this instanceof ai?Ze:Ft(Ze,this.objId,this.scope)},set:function(St){St=St.toString(),Ze=this instanceof ai?St:"("===St.substr(0,1)?dr(St.substr(1,St.length-2)):dr(St)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof ai?dr(Ze.substr(1,Ze.length-1)):Ze},set:function(St){St=St.toString(),Ze=this instanceof ai?"/"+St:St}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var Qt,Ht=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return Ht},set:function(St){Ht=St=!!St}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(Qt)return Qt},set:function(St){Qt=St}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!ga(this.Ff,1)},set:function(St){this.Ff=St?Rl(this.Ff,1):gn(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!ga(this.Ff,2)},set:function(St){this.Ff=St?Rl(this.Ff,2):gn(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!ga(this.Ff,3)},set:function(St){this.Ff=St?Rl(this.Ff,3):gn(this.Ff,3)}});var rn=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==rn)return rn},set:function(St){if(-1===[0,1,2].indexOf(St))throw new Error('Invalid value "'+St+'" for attribute Q supplied.');rn=St}}),Object.defineProperty(this,"textAlign",{get:function(){var St;switch(rn){case 0:default:St="left";break;case 1:St="center";break;case 2:St="right"}return St},configurable:!0,enumerable:!0,set:function(St){switch(St){case"right":case 2:rn=2;break;case"center":case 1:rn=1;break;default:rn=0}}})};jr(yt,me);var Bt=function(){yt.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var j=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return j},set:function(V){j=V}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return j},set:function(V){j=V}});var O=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Ul(O,this.objId,this.scope)},set:function(V){var ie,ge;ge=[],"string"==typeof(ie=V)&&(ge=function(ue,Me,Ne){Ne||(Ne=1);for(var Be,it=[];Be=Me.exec(ue);)it.push(Be[Ne]);return it}(ie,/\((.*?)\)/g)),O=ge}}),this.getOptions=function(){return O},this.setOptions=function(V){O=V,this.sort&&O.sort()},this.addOption=function(V){V=(V=V||"").toString(),O.push(V),this.sort&&O.sort()},this.removeOption=function(V,ie){for(ie=ie||!1,V=(V=V||"").toString();-1!==O.indexOf(V)&&(O.splice(O.indexOf(V),1),!1!==ie););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!ga(this.Ff,18)},set:function(V){this.Ff=V?Rl(this.Ff,18):gn(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!ga(this.Ff,19)},set:function(V){!0===this.combo&&(this.Ff=V?Rl(this.Ff,19):gn(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!ga(this.Ff,20)},set:function(V){V?(this.Ff=Rl(this.Ff,20),O.sort()):this.Ff=gn(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!ga(this.Ff,22)},set:function(V){this.Ff=V?Rl(this.Ff,22):gn(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!ga(this.Ff,23)},set:function(V){this.Ff=V?Rl(this.Ff,23):gn(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!ga(this.Ff,27)},set:function(V){this.Ff=V?Rl(this.Ff,27):gn(this.Ff,27)}}),this.hasAppearanceStream=!1};jr(Bt,yt);var yn=function(){Bt.call(this),this.fontName="helvetica",this.combo=!1};jr(yn,Bt);var Sn=function(){yn.call(this),this.combo=!0};jr(Sn,yn);var ii=function(){Sn.call(this),this.edit=!0};jr(ii,Sn);var ai=function(){yt.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!ga(this.Ff,15)},set:function(V){this.Ff=V?Rl(this.Ff,15):gn(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!ga(this.Ff,16)},set:function(V){this.Ff=V?Rl(this.Ff,16):gn(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!ga(this.Ff,17)},set:function(V){this.Ff=V?Rl(this.Ff,17):gn(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!ga(this.Ff,26)},set:function(V){this.Ff=V?Rl(this.Ff,26):gn(this.Ff,26)}});var j,O={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var V=function(ue){return ue};if(this.scope&&(V=this.scope.internal.getEncryptor(this.objId)),0!==Object.keys(O).length){var ie,ge=[];for(ie in ge.push("<<"),O)ge.push("/"+ie+" ("+nr(V(O[ie]))+")");return ge.push(">>"),ge.join("\n")}},set:function(V){"object"===(0,T.A)(V)&&(O=V)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return O.CA||""},set:function(V){"string"==typeof V&&(O.CA=V)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return j},set:function(V){j=V}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return j.substr(1,j.length-1)},set:function(V){j="/"+V}})};jr(ai,yt);var br=function(){ai.call(this),this.pushButton=!0};jr(br,ai);var Kn=function(){ai.call(this),this.radio=!0,this.pushButton=!1;var j=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return j},set:function(O){j=void 0!==O?O:[]}})};jr(Kn,ai);var xr=function(){var j,O;yt.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return j},set:function(ge){j=ge}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return O},set:function(ge){O=ge}});var V,ie={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var ge=function(Ne){return Ne};this.scope&&(ge=this.scope.internal.getEncryptor(this.objId));var ue,Me=[];for(ue in Me.push("<<"),ie)Me.push("/"+ue+" ("+nr(ge(ie[ue]))+")");return Me.push(">>"),Me.join("\n")},set:function(ge){"object"===(0,T.A)(ge)&&(ie=ge)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return ie.CA||""},set:function(ge){"string"==typeof ge&&(ie.CA=ge)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return V},set:function(ge){V=ge}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return V.substr(1,V.length-1)},set:function(ge){V="/"+ge}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Tr.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};jr(xr,yt),Kn.prototype.setAppearance=function(j){if(!("createAppearanceStream"in j)||!("getCA"in j))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var O in this.Kids)if(this.Kids.hasOwnProperty(O)){var V=this.Kids[O];V.appearanceStreamContent=j.createAppearanceStream(V.optionName),V.caption=j.getCA()}},Kn.prototype.createOption=function(j){var O=new xr;return O.Parent=this,O.optionName=j,this.Kids.push(O),Ts.call(this.scope,O),O};var Fo=function(){ai.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Tr.CheckBox.createAppearanceStream()};jr(Fo,ai);var ho=function(){yt.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!ga(this.Ff,13)},set:function(O){this.Ff=O?Rl(this.Ff,13):gn(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!ga(this.Ff,21)},set:function(O){this.Ff=O?Rl(this.Ff,21):gn(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!ga(this.Ff,23)},set:function(O){this.Ff=O?Rl(this.Ff,23):gn(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!ga(this.Ff,24)},set:function(O){this.Ff=O?Rl(this.Ff,24):gn(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!ga(this.Ff,25)},set:function(O){this.Ff=O?Rl(this.Ff,25):gn(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!ga(this.Ff,26)},set:function(O){this.Ff=O?Rl(this.Ff,26):gn(this.Ff,26)}});var j=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return j},set:function(O){j=O}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return j},set:function(O){Number.isInteger(O)&&(j=O)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};jr(ho,yt);var Po=function(){ho.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!ga(this.Ff,14)},set:function(j){this.Ff=j?Rl(this.Ff,14):gn(this.Ff,14)}}),this.password=!0};jr(Po,ho);var Tr={CheckBox:{createAppearanceStream:function(){return{N:{On:Tr.CheckBox.YesNormal},D:{On:Tr.CheckBox.YesPushDown,Off:Tr.CheckBox.OffPushDown}}},YesPushDown:function(j){var O=$s(j);O.scope=j.scope;var V=[],ie=j.scope.internal.getFont(j.fontName,j.fontStyle).id,ge=j.scope.__private__.encodeColorString(j.color),ue=Gr(j,j.caption);return V.push("0.749023 g"),V.push("0 0 "+Or(Tr.internal.getWidth(j))+" "+Or(Tr.internal.getHeight(j))+" re"),V.push("f"),V.push("BMC"),V.push("q"),V.push("0 0 1 rg"),V.push("/"+ie+" "+Or(ue.fontSize)+" Tf "+ge),V.push("BT"),V.push(ue.text),V.push("ET"),V.push("Q"),V.push("EMC"),O.stream=V.join("\n"),O},YesNormal:function(j){var O=$s(j);O.scope=j.scope;var V=j.scope.internal.getFont(j.fontName,j.fontStyle).id,ie=j.scope.__private__.encodeColorString(j.color),ge=[],ue=Tr.internal.getHeight(j),Me=Tr.internal.getWidth(j),Ne=Gr(j,j.caption);return ge.push("1 g"),ge.push("0 0 "+Or(Me)+" "+Or(ue)+" re"),ge.push("f"),ge.push("q"),ge.push("0 0 1 rg"),ge.push("0 0 "+Or(Me-1)+" "+Or(ue-1)+" re"),ge.push("W"),ge.push("n"),ge.push("0 g"),ge.push("BT"),ge.push("/"+V+" "+Or(Ne.fontSize)+" Tf "+ie),ge.push(Ne.text),ge.push("ET"),ge.push("Q"),O.stream=ge.join("\n"),O},OffPushDown:function(j){var O=$s(j);O.scope=j.scope;var V=[];return V.push("0.749023 g"),V.push("0 0 "+Or(Tr.internal.getWidth(j))+" "+Or(Tr.internal.getHeight(j))+" re"),V.push("f"),O.stream=V.join("\n"),O}},RadioButton:{Circle:{createAppearanceStream:function(j){var O={D:{Off:Tr.RadioButton.Circle.OffPushDown},N:{}};return O.N[j]=Tr.RadioButton.Circle.YesNormal,O.D[j]=Tr.RadioButton.Circle.YesPushDown,O},getCA:function(){return"l"},YesNormal:function(j){var O=$s(j);O.scope=j.scope;var V=[],ie=Tr.internal.getWidth(j)<=Tr.internal.getHeight(j)?Tr.internal.getWidth(j)/4:Tr.internal.getHeight(j)/4;ie=Number((.9*ie).toFixed(5));var ue=Number((ie*Tr.internal.Bezier_C).toFixed(5));return V.push("q"),V.push("1 0 0 1 "+Zo(Tr.internal.getWidth(j)/2)+" "+Zo(Tr.internal.getHeight(j)/2)+" cm"),V.push(ie+" 0 m"),V.push(ie+" "+ue+" "+ue+" "+ie+" 0 "+ie+" c"),V.push("-"+ue+" "+ie+" -"+ie+" "+ue+" -"+ie+" 0 c"),V.push("-"+ie+" -"+ue+" -"+ue+" -"+ie+" 0 -"+ie+" c"),V.push(ue+" -"+ie+" "+ie+" -"+ue+" "+ie+" 0 c"),V.push("f"),V.push("Q"),O.stream=V.join("\n"),O},YesPushDown:function(j){var O=$s(j);O.scope=j.scope;var V=[],ie=Tr.internal.getWidth(j)<=Tr.internal.getHeight(j)?Tr.internal.getWidth(j)/4:Tr.internal.getHeight(j)/4;ie=Number((.9*ie).toFixed(5));var ge=Number((2*ie).toFixed(5)),ue=Number((ge*Tr.internal.Bezier_C).toFixed(5)),Me=Number((ie*Tr.internal.Bezier_C).toFixed(5));return V.push("0.749023 g"),V.push("q"),V.push("1 0 0 1 "+Zo(Tr.internal.getWidth(j)/2)+" "+Zo(Tr.internal.getHeight(j)/2)+" cm"),V.push(ge+" 0 m"),V.push(ge+" "+ue+" "+ue+" "+ge+" 0 "+ge+" c"),V.push("-"+ue+" "+ge+" -"+ge+" "+ue+" -"+ge+" 0 c"),V.push("-"+ge+" -"+ue+" -"+ue+" -"+ge+" 0 -"+ge+" c"),V.push(ue+" -"+ge+" "+ge+" -"+ue+" "+ge+" 0 c"),V.push("f"),V.push("Q"),V.push("0 g"),V.push("q"),V.push("1 0 0 1 "+Zo(Tr.internal.getWidth(j)/2)+" "+Zo(Tr.internal.getHeight(j)/2)+" cm"),V.push(ie+" 0 m"),V.push(ie+" "+Me+" "+Me+" "+ie+" 0 "+ie+" c"),V.push("-"+Me+" "+ie+" -"+ie+" "+Me+" -"+ie+" 0 c"),V.push("-"+ie+" -"+Me+" -"+Me+" -"+ie+" 0 -"+ie+" c"),V.push(Me+" -"+ie+" "+ie+" -"+Me+" "+ie+" 0 c"),V.push("f"),V.push("Q"),O.stream=V.join("\n"),O},OffPushDown:function(j){var O=$s(j);O.scope=j.scope;var V=[],ie=Tr.internal.getWidth(j)<=Tr.internal.getHeight(j)?Tr.internal.getWidth(j)/4:Tr.internal.getHeight(j)/4;ie=Number((.9*ie).toFixed(5));var ge=Number((2*ie).toFixed(5)),ue=Number((ge*Tr.internal.Bezier_C).toFixed(5));return V.push("0.749023 g"),V.push("q"),V.push("1 0 0 1 "+Zo(Tr.internal.getWidth(j)/2)+" "+Zo(Tr.internal.getHeight(j)/2)+" cm"),V.push(ge+" 0 m"),V.push(ge+" "+ue+" "+ue+" "+ge+" 0 "+ge+" c"),V.push("-"+ue+" "+ge+" -"+ge+" "+ue+" -"+ge+" 0 c"),V.push("-"+ge+" -"+ue+" -"+ue+" -"+ge+" 0 -"+ge+" c"),V.push(ue+" -"+ge+" "+ge+" -"+ue+" "+ge+" 0 c"),V.push("f"),V.push("Q"),O.stream=V.join("\n"),O}},Cross:{createAppearanceStream:function(j){var O={D:{Off:Tr.RadioButton.Cross.OffPushDown},N:{}};return O.N[j]=Tr.RadioButton.Cross.YesNormal,O.D[j]=Tr.RadioButton.Cross.YesPushDown,O},getCA:function(){return"8"},YesNormal:function(j){var O=$s(j);O.scope=j.scope;var V=[],ie=Tr.internal.calculateCross(j);return V.push("q"),V.push("1 1 "+Or(Tr.internal.getWidth(j)-2)+" "+Or(Tr.internal.getHeight(j)-2)+" re"),V.push("W"),V.push("n"),V.push(Or(ie.x1.x)+" "+Or(ie.x1.y)+" m"),V.push(Or(ie.x2.x)+" "+Or(ie.x2.y)+" l"),V.push(Or(ie.x4.x)+" "+Or(ie.x4.y)+" m"),V.push(Or(ie.x3.x)+" "+Or(ie.x3.y)+" l"),V.push("s"),V.push("Q"),O.stream=V.join("\n"),O},YesPushDown:function(j){var O=$s(j);O.scope=j.scope;var V=Tr.internal.calculateCross(j),ie=[];return ie.push("0.749023 g"),ie.push("0 0 "+Or(Tr.internal.getWidth(j))+" "+Or(Tr.internal.getHeight(j))+" re"),ie.push("f"),ie.push("q"),ie.push("1 1 "+Or(Tr.internal.getWidth(j)-2)+" "+Or(Tr.internal.getHeight(j)-2)+" re"),ie.push("W"),ie.push("n"),ie.push(Or(V.x1.x)+" "+Or(V.x1.y)+" m"),ie.push(Or(V.x2.x)+" "+Or(V.x2.y)+" l"),ie.push(Or(V.x4.x)+" "+Or(V.x4.y)+" m"),ie.push(Or(V.x3.x)+" "+Or(V.x3.y)+" l"),ie.push("s"),ie.push("Q"),O.stream=ie.join("\n"),O},OffPushDown:function(j){var O=$s(j);O.scope=j.scope;var V=[];return V.push("0.749023 g"),V.push("0 0 "+Or(Tr.internal.getWidth(j))+" "+Or(Tr.internal.getHeight(j))+" re"),V.push("f"),O.stream=V.join("\n"),O}}},createDefaultAppearanceStream:function(j){var O=j.scope.internal.getFont(j.fontName,j.fontStyle).id,V=j.scope.__private__.encodeColorString(j.color);return"/"+O+" "+j.fontSize+" Tf "+V}};Tr.internal={Bezier_C:.551915024494,calculateCross:function(j){var O=Tr.internal.getWidth(j),V=Tr.internal.getHeight(j),ie=Math.min(O,V);return{x1:{x:(O-ie)/2,y:(V-ie)/2+ie},x2:{x:(O-ie)/2+ie,y:(V-ie)/2},x3:{x:(O-ie)/2,y:(V-ie)/2},x4:{x:(O-ie)/2+ie,y:(V-ie)/2+ie}}}},Tr.internal.getWidth=function(j){var O=0;return"object"===(0,T.A)(j)&&(O=as(j.Rect[2])),O},Tr.internal.getHeight=function(j){var O=0;return"object"===(0,T.A)(j)&&(O=as(j.Rect[3])),O};var Ts=Rr.addField=function(j){if(function(j,O){if(O.scope=j,void 0!==j.internal&&(void 0===j.internal.acroformPlugin||!1===j.internal.acroformPlugin.isInitialized)){if(yt.FieldNum=0,j.internal.acroformPlugin=JSON.parse(JSON.stringify(Js)),j.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Rn=j.internal.scaleFactor,j.internal.acroformPlugin.acroFormDictionaryRoot=new Je,j.internal.acroformPlugin.acroFormDictionaryRoot.scope=j,j.internal.acroformPlugin.acroFormDictionaryRoot._eventID=j.internal.events.subscribe("postPutResources",function(){var V;(V=j).internal.events.unsubscribe(V.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete V.internal.acroformPlugin.acroFormDictionaryRoot._eventID,V.internal.acroformPlugin.printedOut=!0}),j.internal.events.subscribe("buildDocument",function(){!function(V){V.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var ie=V.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var ge in ie)if(ie.hasOwnProperty(ge)){var ue=ie[ge];ue.objId=void 0,ue.hasAnnotation&&va(ue,V)}}(j)}),j.internal.events.subscribe("putCatalog",function(){!function(V){if(void 0===V.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");V.internal.write("/AcroForm "+V.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(j)}),j.internal.events.subscribe("postPutPages",function(V){!function(ie,ge){var ue=!ie;for(var Me in ie||(ge.internal.newObjectDeferredBegin(ge.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),ge.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),ie=ie||ge.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(ie.hasOwnProperty(Me)){var Ne=ie[Me],Be=[],it=Ne.Rect;if(Ne.Rect&&(Ne.Rect=po(Ne.Rect,ge)),ge.internal.newObjectDeferredBegin(Ne.objId,!0),Ne.DA=Tr.createDefaultAppearanceStream(Ne),"object"===(0,T.A)(Ne)&&"function"==typeof Ne.getKeyValueListForStream&&(Be=Ne.getKeyValueListForStream()),Ne.Rect=it,Ne.hasAppearanceStream&&!Ne.appearanceStreamContent){var pt=Ys(Ne);Be.push({key:"AP",value:"<</N "+pt+">>"}),ge.internal.acroformPlugin.xForms.push(pt)}if(Ne.appearanceStreamContent){var ft="";for(var kt in Ne.appearanceStreamContent)if(Ne.appearanceStreamContent.hasOwnProperty(kt)){var Ze=Ne.appearanceStreamContent[kt];if(ft+="/"+kt+" ",ft+="<<",Object.keys(Ze).length>=1||Array.isArray(Ze)){for(var Me in Ze)if(Ze.hasOwnProperty(Me)){var Qt=Ze[Me];"function"==typeof Qt&&(Qt=Qt.call(ge,Ne)),ft+="/"+Me+" "+Qt+" ",ge.internal.acroformPlugin.xForms.indexOf(Qt)>=0||ge.internal.acroformPlugin.xForms.push(Qt)}}else"function"==typeof(Qt=Ze)&&(Qt=Qt.call(ge,Ne)),ft+="/"+Me+" "+Qt,ge.internal.acroformPlugin.xForms.indexOf(Qt)>=0||ge.internal.acroformPlugin.xForms.push(Qt);ft+=">>"}Be.push({key:"AP",value:"<<\n"+ft+">>"})}ge.internal.putStream({additionalKeyValues:Be,objectId:Ne.objId}),ge.internal.out("endobj")}ue&&function(j,O){for(var V in j)if(j.hasOwnProperty(V)){var ie=V,ge=j[V];O.internal.newObjectDeferredBegin(ge.objId,!0),"object"===(0,T.A)(ge)&&"function"==typeof ge.putStream&&ge.putStream(),delete j[ie]}}(ge.internal.acroformPlugin.xForms,ge)}(V,j)}),j.internal.acroformPlugin.isInitialized=!0}}(this,j),!(j instanceof yt))throw new Error("Invalid argument passed to jsPDF.addField.");var O;return(O=j).scope.internal.acroformPlugin.printedOut&&(O.scope.internal.acroformPlugin.printedOut=!1,O.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),O.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(O),j.page=j.scope.internal.getCurrentPageInfo().pageNumber,this};Rr.AcroFormChoiceField=Bt,Rr.AcroFormListBox=yn,Rr.AcroFormComboBox=Sn,Rr.AcroFormEditBox=ii,Rr.AcroFormButton=ai,Rr.AcroFormPushButton=br,Rr.AcroFormRadioButton=Kn,Rr.AcroFormCheckBox=Fo,Rr.AcroFormTextField=ho,Rr.AcroFormPasswordField=Po,Rr.AcroFormAppearance=Tr,Rr.AcroForm={ChoiceField:Bt,ListBox:yn,ComboBox:Sn,EditBox:ii,Button:ai,PushButton:br,RadioButton:Kn,CheckBox:Fo,TextField:ho,PasswordField:Po,Appearance:Tr};var j,O,Ws=ti.AcroForm={ChoiceField:Bt,ListBox:yn,ComboBox:Sn,EditBox:ii,Button:ai,PushButton:br,RadioButton:Kn,CheckBox:Fo,TextField:ho,PasswordField:Po,Appearance:Tr};function pa(j){return j.reduce(function(O,V,ie){return O[V]=ie,O},{})}(function(j){j.__addimage__={};var O="UNKNOWN",V={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},ie=j.__addimage__.getImageFileTypeByImageData=function(Ut,jt){var Gn,Cn,Ei,vi,Mi,li=O;if("RGBA"===(jt=jt||O)||void 0!==Ut.data&&Ut.data instanceof Uint8ClampedArray&&"height"in Ut&&"width"in Ut)return"RGBA";if(sr(Ut))for(Mi in V)for(Ei=V[Mi],Gn=0;Gn<Ei.length;Gn+=1){for(vi=!0,Cn=0;Cn<Ei[Gn].length;Cn+=1)if(void 0!==Ei[Gn][Cn]&&Ei[Gn][Cn]!==Ut[Cn]){vi=!1;break}if(!0===vi){li=Mi;break}}else for(Mi in V)for(Ei=V[Mi],Gn=0;Gn<Ei.length;Gn+=1){for(vi=!0,Cn=0;Cn<Ei[Gn].length;Cn+=1)if(void 0!==Ei[Gn][Cn]&&Ei[Gn][Cn]!==Ut.charCodeAt(Cn)){vi=!1;break}if(!0===vi){li=Mi;break}}return li===O&&jt!==O&&(li=jt),li},ge=function Ut(jt){for(var Gn=this.internal.write,Cn=this.internal.putStream,Ei=(0,this.internal.getFilters)();-1!==Ei.indexOf("FlateEncode");)Ei.splice(Ei.indexOf("FlateEncode"),1);jt.objectId=this.internal.newObject();var vi=[];if(vi.push({key:"Type",value:"/XObject"}),vi.push({key:"Subtype",value:"/Image"}),vi.push({key:"Width",value:jt.width}),vi.push({key:"Height",value:jt.height}),jt.colorSpace===rn.INDEXED?vi.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(jt.palette.length/3-1)+" "+("sMask"in jt&&void 0!==jt.sMask?jt.objectId+2:jt.objectId+1)+" 0 R]"}):(vi.push({key:"ColorSpace",value:"/"+jt.colorSpace}),jt.colorSpace===rn.DEVICE_CMYK&&vi.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),vi.push({key:"BitsPerComponent",value:jt.bitsPerComponent}),"decodeParameters"in jt&&void 0!==jt.decodeParameters&&vi.push({key:"DecodeParms",value:"<<"+jt.decodeParameters+">>"}),"transparency"in jt&&Array.isArray(jt.transparency)){for(var Mi="",li=0,Pi=jt.transparency.length;li<Pi;li++)Mi+=jt.transparency[li]+" "+jt.transparency[li]+" ";vi.push({key:"Mask",value:"["+Mi+"]"})}if(void 0!==jt.sMask&&vi.push({key:"SMask",value:jt.objectId+1+" 0 R"}),Cn({data:jt.data,additionalKeyValues:vi,alreadyAppliedFilters:void 0!==jt.filter?["/"+jt.filter]:void 0,objectId:jt.objectId}),Gn("endobj"),"sMask"in jt&&void 0!==jt.sMask){var mt={width:jt.width,height:jt.height,colorSpace:"DeviceGray",bitsPerComponent:jt.bitsPerComponent,decodeParameters:"/Predictor "+jt.predictor+" /Colors 1 /BitsPerComponent "+jt.bitsPerComponent+" /Columns "+jt.width,data:jt.sMask};"filter"in jt&&(mt.filter=jt.filter),Ut.call(this,mt)}if(jt.colorSpace===rn.INDEXED){var on=this.internal.newObject();Cn({data:bn(new Uint8Array(jt.palette)),objectId:on}),Gn("endobj")}},ue=function(){var Ut=this.internal.collections.addImage_images;for(var jt in Ut)ge.call(this,Ut[jt])},Me=function(){var Ut,jt=this.internal.collections.addImage_images,Gn=this.internal.write;for(var Cn in jt)Gn("/I"+(Ut=jt[Cn]).index,Ut.objectId,"0","R")},Ne=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",ue),this.internal.events.subscribe("putXobjectDict",Me))},Be=function(){var Ut=this.internal.collections.addImage_images;return Ne.call(this),Ut},it=function(){return Object.keys(this.internal.collections.addImage_images).length},pt=function(Ut){return"function"==typeof j["process"+Ut.toUpperCase()]},ft=function(Ut){return"object"===(0,T.A)(Ut)&&1===Ut.nodeType},kt=function(Ut,jt){if("IMG"===Ut.nodeName&&Ut.hasAttribute("src")){var Gn=""+Ut.getAttribute("src");if(0===Gn.indexOf("data:image/"))return fi(unescape(Gn).split("base64,").pop());var Cn=j.loadFile(Gn,!0);if(void 0!==Cn)return Cn}if("CANVAS"===Ut.nodeName){if(0===Ut.width||0===Ut.height)throw new Error("Given canvas must have data. Canvas width: "+Ut.width+", height: "+Ut.height);var Ei;switch(jt){case"PNG":Ei="image/png";break;case"WEBP":Ei="image/webp";break;default:Ei="image/jpeg"}return fi(Ut.toDataURL(Ei,1).split("base64,").pop())}},Ze=function(Ut){var jt=this.internal.collections.addImage_images;if(jt)for(var Gn in jt)if(Ut===jt[Gn].alias)return jt[Gn]},Qt=function(Ut,jt,Gn){return Ut||jt||(Ut=-96,jt=-96),Ut<0&&(Ut=-1*Gn.width*72/Ut/this.internal.scaleFactor),jt<0&&(jt=-1*Gn.height*72/jt/this.internal.scaleFactor),0===Ut&&(Ut=jt*Gn.width/Gn.height),0===jt&&(jt=Ut*Gn.height/Gn.width),[Ut,jt]},Ht=function(Ut,jt,Gn,Cn,Ei,vi){var Mi=Qt.call(this,Gn,Cn,Ei),li=this.internal.getCoordinateString,Pi=this.internal.getVerticalCoordinateString,Qi=Be.call(this);if(Gn=Mi[0],Cn=Mi[1],Qi[Ei.index]=Ei,vi){vi*=Math.PI/180;var no=Math.cos(vi),mt=Math.sin(vi),on=function(Ln){return Ln.toFixed(4)},mn=[on(no),on(mt),on(-1*mt),on(no),0,0,"cm"]}this.internal.write("q"),vi?(this.internal.write([1,"0","0",1,li(Ut),Pi(jt+Cn),"cm"].join(" ")),this.internal.write(mn.join(" ")),this.internal.write([li(Gn),"0","0",li(Cn),"0","0","cm"].join(" "))):this.internal.write([li(Gn),"0","0",li(Cn),li(Ut),Pi(jt+Cn),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+Ei.index+" Do"),this.internal.write("Q")},rn=j.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};j.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var St=j.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},nn=j.__addimage__.sHashCode=function(Ut){var jt,Gn,Cn=0;if("string"==typeof Ut)for(Gn=Ut.length,jt=0;jt<Gn;jt++)Cn=(Cn<<5)-Cn+Ut.charCodeAt(jt),Cn|=0;else if(sr(Ut))for(Gn=Ut.byteLength/2,jt=0;jt<Gn;jt++)Cn=(Cn<<5)-Cn+Ut[jt],Cn|=0;return Cn},Vn=j.__addimage__.validateStringAsBase64=function(Ut){(Ut=Ut||"").toString().trim();var jt=!0;return 0===Ut.length&&(jt=!1),Ut.length%4!=0&&(jt=!1),!1===/^[A-Za-z0-9+/]+$/.test(Ut.substr(0,Ut.length-2))&&(jt=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(Ut.substr(-2))&&(jt=!1),jt},qn=j.__addimage__.extractImageFromDataUrl=function(Ut){var jt=(Ut=Ut||"").split("base64,"),Gn=null;if(2===jt.length){var Cn=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(jt[0]);Array.isArray(Cn)&&(Gn={mimeType:Cn[1],charset:Cn[2],data:jt[1]})}return Gn},Ai=j.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"};j.__addimage__.isArrayBuffer=function(Ut){return Ai()&&Ut instanceof ArrayBuffer};var sr=j.__addimage__.isArrayBufferView=function(Ut){return Ai()&&typeof Uint32Array<"u"&&(Ut instanceof Int8Array||Ut instanceof Uint8Array||typeof Uint8ClampedArray<"u"&&Ut instanceof Uint8ClampedArray||Ut instanceof Int16Array||Ut instanceof Uint16Array||Ut instanceof Int32Array||Ut instanceof Uint32Array||Ut instanceof Float32Array||Ut instanceof Float64Array)},si=j.__addimage__.binaryStringToUint8Array=function(Ut){for(var jt=Ut.length,Gn=new Uint8Array(jt),Cn=0;Cn<jt;Cn++)Gn[Cn]=Ut.charCodeAt(Cn);return Gn},bn=j.__addimage__.arrayBufferToBinaryString=function(Ut){for(var jt="",Gn=sr(Ut)?Ut:new Uint8Array(Ut),Cn=0;Cn<Gn.length;Cn+=8192)jt+=String.fromCharCode.apply(null,Gn.subarray(Cn,Cn+8192));return jt};j.addImage=function(){var Ut,jt,Gn,Cn,Ei,vi,Mi,li,Pi;if("number"==typeof arguments[1]?(jt=O,Gn=arguments[1],Cn=arguments[2],Ei=arguments[3],vi=arguments[4],Mi=arguments[5],li=arguments[6],Pi=arguments[7]):(jt=arguments[1],Gn=arguments[2],Cn=arguments[3],Ei=arguments[4],vi=arguments[5],Mi=arguments[6],li=arguments[7],Pi=arguments[8]),"object"===(0,T.A)(Ut=arguments[0])&&!ft(Ut)&&"imageData"in Ut){var Qi=Ut;Ut=Qi.imageData,jt=Qi.format||jt||O,Gn=Qi.x||Gn||0,Cn=Qi.y||Cn||0,Ei=Qi.w||Qi.width||Ei,vi=Qi.h||Qi.height||vi,Mi=Qi.alias||Mi,li=Qi.compression||li,Pi=Qi.rotation||Qi.angle||Pi}var no=this.internal.getFilters();if(void 0===li&&-1!==no.indexOf("FlateEncode")&&(li="SLOW"),isNaN(Gn)||isNaN(Cn))throw new Error("Invalid coordinates passed to jsPDF.addImage");Ne.call(this);var mt=ui.call(this,Ut,jt,Mi,li);return Ht.call(this,Gn,Cn,Ei,vi,mt,Pi),this};var ui=function(Ut,jt,Gn,Cn){var Ei,vi,Mi,Pi;if("string"==typeof Ut&&ie(Ut)===O){Ut=unescape(Ut);var li=ji(Ut,!1);(""!==li||void 0!==(li=j.loadFile(Ut,!0)))&&(Ut=li)}if(ft(Ut)&&(Ut=kt(Ut,jt)),jt=ie(Ut,jt),!pt(jt))throw new Error("addImage does not support files of type '"+jt+"', please ensure that a plugin for '"+jt+"' support is added.");if((null==(Mi=Gn)||0===Mi.length)&&(Gn="string"==typeof(Pi=Ut)||sr(Pi)?nn(Pi):sr(Pi.data)?nn(Pi.data):null),(Ei=Ze.call(this,Gn))||(Ai()&&(Ut instanceof Uint8Array||"RGBA"===jt||(vi=Ut,Ut=si(Ut))),Ei=this["process"+jt.toUpperCase()](Ut,it.call(this),Gn,function(Pi){return Pi&&"string"==typeof Pi&&(Pi=Pi.toUpperCase()),Pi in j.image_compression?Pi:St.NONE}(Cn),vi)),!Ei)throw new Error("An unknown error occurred whilst processing the image.");return Ei},ji=j.__addimage__.convertBase64ToBinaryString=function(Ut,jt){var Gn;jt="boolean"!=typeof jt||jt;var Cn,Ei="";if("string"==typeof Ut){Cn=null!==(Gn=qn(Ut))?Gn.data:Ut;try{Ei=fi(Cn)}catch(vi){if(jt)throw Vn(Cn)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+vi.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return Ei};j.getImageProperties=function(Ut){var jt,Gn,Cn="";if(ft(Ut)&&(Ut=kt(Ut)),"string"==typeof Ut&&ie(Ut)===O&&(""===(Cn=ji(Ut,!1))&&(Cn=j.loadFile(Ut)||""),Ut=Cn),Gn=ie(Ut),!pt(Gn))throw new Error("addImage does not support files of type '"+Gn+"', please ensure that a plugin for '"+Gn+"' support is added.");if(!Ai()||Ut instanceof Uint8Array||(Ut=si(Ut)),!(jt=this["process"+Gn.toUpperCase()](Ut)))throw new Error("An unknown error occurred whilst processing the image");return jt.fileType=Gn,jt}})(ti.API),
/**
         * @license
         * Copyright (c) 2014 Steven Spungin (TwelveTone LLC)  steven@twelvetone.tv
         *
         * Licensed under the MIT License.
         * http://opensource.org/licenses/mit-license
         */
j=ti.API,O=function(V){if(void 0!==V&&""!=V)return!0},ti.API.events.push(["addPage",function(V){this.internal.getPageInfo(V.pageNumber).pageContext.annotations=[]}]),j.events.push(["putPage",function(V){for(var ie,ge,ue,Me=this.internal.getCoordinateString,Ne=this.internal.getVerticalCoordinateString,Be=this.internal.getPageInfoByObjId(V.objId),it=V.pageContext.annotations,pt=!1,ft=0;ft<it.length&&!pt;ft++)switch((ie=it[ft]).type){case"link":(O(ie.options.url)||O(ie.options.pageNumber))&&(pt=!0);break;case"reference":case"text":case"freetext":pt=!0}if(0!=pt){this.internal.write("/Annots [");for(var kt=0;kt<it.length;kt++){ie=it[kt];var Ze=this.internal.pdfEscape,Qt=this.internal.getEncryptor(V.objId);switch(ie.type){case"reference":this.internal.write(" "+ie.object.objId+" 0 R ");break;case"text":var Ht=this.internal.newAdditionalObject(),rn=this.internal.newAdditionalObject(),St=this.internal.getEncryptor(Ht.objId),nn=ie.title||"Note";ue="<</Type /Annot /Subtype /Text "+(ge="/Rect ["+Me(ie.bounds.x)+" "+Ne(ie.bounds.y+ie.bounds.h)+" "+Me(ie.bounds.x+ie.bounds.w)+" "+Ne(ie.bounds.y)+"] ")+"/Contents ("+Ze(St(ie.contents))+")",ue+=" /Popup "+rn.objId+" 0 R",ue+=" /P "+Be.objId+" 0 R",ue+=" /T ("+Ze(St(nn))+") >>",Ht.content=ue;var Vn=Ht.objId+" 0 R";ue="<</Type /Annot /Subtype /Popup "+(ge="/Rect ["+Me(ie.bounds.x+30)+" "+Ne(ie.bounds.y+ie.bounds.h)+" "+Me(ie.bounds.x+ie.bounds.w+30)+" "+Ne(ie.bounds.y)+"] ")+" /Parent "+Vn,ie.open&&(ue+=" /Open true"),rn.content=ue+=" >>",this.internal.write(Ht.objId,"0 R",rn.objId,"0 R");break;case"freetext":ge="/Rect ["+Me(ie.bounds.x)+" "+Ne(ie.bounds.y)+" "+Me(ie.bounds.x+ie.bounds.w)+" "+Ne(ie.bounds.y+ie.bounds.h)+"] ";var qn=ie.color||"#000000";ue="<</Type /Annot /Subtype /FreeText "+ge+"/Contents ("+Ze(Qt(ie.contents))+")",ue+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+qn+")",ue+=" /Border [0 0 0]",this.internal.write(ue+=" >>");break;case"link":if(ie.options.name){var Ai=this.annotations._nameMap[ie.options.name];ie.options.pageNumber=Ai.page,ie.options.top=Ai.y}else ie.options.top||(ie.options.top=0);if(ge="/Rect ["+ie.finalBounds.x+" "+ie.finalBounds.y+" "+ie.finalBounds.w+" "+ie.finalBounds.h+"] ",ue="",ie.options.url)ue="<</Type /Annot /Subtype /Link "+ge+"/Border [0 0 0] /A <</S /URI /URI ("+Ze(Qt(ie.options.url))+") >>";else if(ie.options.pageNumber)switch(ue="<</Type /Annot /Subtype /Link "+ge+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(ie.options.pageNumber).objId+" 0 R",ie.options.magFactor=ie.options.magFactor||"XYZ",ie.options.magFactor){case"Fit":ue+=" /Fit]";break;case"FitH":ue+=" /FitH "+ie.options.top+"]";break;case"FitV":ie.options.left=ie.options.left||0,ue+=" /FitV "+ie.options.left+"]";break;default:var sr=Ne(ie.options.top);ie.options.left=ie.options.left||0,void 0===ie.options.zoom&&(ie.options.zoom=0),ue+=" /XYZ "+ie.options.left+" "+sr+" "+ie.options.zoom+"]"}""!=ue&&this.internal.write(ue+=" >>")}}this.internal.write("]")}}]),j.createAnnotation=function(V){var ie=this.internal.getCurrentPageInfo();switch(V.type){case"link":this.link(V.bounds.x,V.bounds.y,V.bounds.w,V.bounds.h,V);break;case"text":case"freetext":ie.pageContext.annotations.push(V)}},j.link=function(V,ie,ge,ue,Me){var Ne=this.internal.getCurrentPageInfo(),Be=this.internal.getCoordinateString,it=this.internal.getVerticalCoordinateString;Ne.pageContext.annotations.push({finalBounds:{x:Be(V),y:it(ie),w:Be(V+ge),h:it(ie+ue)},options:Me,type:"link"})},j.textWithLink=function(V,ie,ge,ue){var Me,Ne,Be=this.getTextWidth(V),it=this.internal.getLineHeight()/this.internal.scaleFactor;if(void 0!==ue.maxWidth){var pt=this.splitTextToSize(V,Ne=ue.maxWidth).length;Me=Math.ceil(it*pt)}else Ne=Be,Me=it;return this.text(V,ie,ge,ue),"center"===ue.align&&(ie-=Be/2),"right"===ue.align&&(ie-=Be),this.link(ie,(ge+=.2*it)-it,Ne,Me,ue),Be},j.getTextWidth=function(V){var ie=this.internal.getFontSize();return this.getStringUnitWidth(V)*ie/this.internal.scaleFactor},
/**
         * @license
         * Copyright (c) 2017 Aras Abbasi
         *
         * Licensed under the MIT License.
         * http://opensource.org/licenses/mit-license
         */
function(j){var O={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},V={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},ie={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},ge=[1570,1571,1573,1575];j.__arabicParser__={};var ue=j.__arabicParser__.isInArabicSubstitutionA=function(Ht){return void 0!==O[Ht.charCodeAt(0)]},Me=j.__arabicParser__.isArabicLetter=function(Ht){return"string"==typeof Ht&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(Ht)},Ne=j.__arabicParser__.isArabicEndLetter=function(Ht){return Me(Ht)&&ue(Ht)&&O[Ht.charCodeAt(0)].length<=2},Be=j.__arabicParser__.isArabicAlfLetter=function(Ht){return Me(Ht)&&ge.indexOf(Ht.charCodeAt(0))>=0};j.__arabicParser__.arabicLetterHasIsolatedForm=function(Ht){return Me(Ht)&&ue(Ht)&&O[Ht.charCodeAt(0)].length>=1};var it=j.__arabicParser__.arabicLetterHasFinalForm=function(Ht){return Me(Ht)&&ue(Ht)&&O[Ht.charCodeAt(0)].length>=2};j.__arabicParser__.arabicLetterHasInitialForm=function(Ht){return Me(Ht)&&ue(Ht)&&O[Ht.charCodeAt(0)].length>=3};var pt=j.__arabicParser__.arabicLetterHasMedialForm=function(Ht){return Me(Ht)&&ue(Ht)&&4==O[Ht.charCodeAt(0)].length},ft=j.__arabicParser__.resolveLigatures=function(Ht){var rn=0,St=V,nn="",Vn=0;for(rn=0;rn<Ht.length;rn+=1)void 0!==St[Ht.charCodeAt(rn)]?(Vn++,"number"==typeof(St=St[Ht.charCodeAt(rn)])&&(nn+=String.fromCharCode(St),St=V,Vn=0),rn===Ht.length-1&&(St=V,nn+=Ht.charAt(rn-(Vn-1)),rn-=Vn-1,Vn=0)):(St=V,nn+=Ht.charAt(rn-Vn),rn-=Vn,Vn=0);return nn};j.__arabicParser__.isArabicDiacritic=function(Ht){return void 0!==Ht&&void 0!==ie[Ht.charCodeAt(0)]};var kt=j.__arabicParser__.getCorrectForm=function(Ht,rn,St){return Me(Ht)?!1===ue(Ht)?-1:!it(Ht)||!Me(rn)&&!Me(St)||!Me(St)&&Ne(rn)||Ne(Ht)&&!Me(rn)||Ne(Ht)&&Be(rn)||Ne(Ht)&&Ne(rn)?0:pt(Ht)&&Me(rn)&&!Ne(rn)&&Me(St)&&it(St)?3:Ne(Ht)||!Me(St)?1:2:-1},Ze=function(Ht){var rn=0,St=0,nn=0,Vn="",qn="",Ai="",sr=(Ht=Ht||"").split("\\s+"),si=[];for(rn=0;rn<sr.length;rn+=1){for(si.push(""),St=0;St<sr[rn].length;St+=1)qn=sr[rn][St-1],Ai=sr[rn][St+1],Me(Vn=sr[rn][St])?(nn=kt(Vn,qn,Ai),si[rn]+=-1!==nn?String.fromCharCode(O[Vn.charCodeAt(0)][nn]):Vn):si[rn]+=Vn;si[rn]=ft(si[rn])}return si.join(" ")},Qt=j.__arabicParser__.processArabic=j.processArabic=function(){var Ht,rn="string"==typeof arguments[0]?arguments[0]:arguments[0].text,St=[];if(Array.isArray(rn)){var nn=0;for(St=[],nn=0;nn<rn.length;nn+=1)Array.isArray(rn[nn])?St.push([Ze(rn[nn][0]),rn[nn][1],rn[nn][2]]):St.push([Ze(rn[nn])]);Ht=St}else Ht=Ze(rn);return"string"==typeof arguments[0]?Ht:(arguments[0].text=Ht,arguments[0])};j.events.push(["preProcessText",Qt])}(ti.API),ti.API.autoPrint=function(j){var O;return"javascript"===((j=j||{}).variant=j.variant||"non-conform",j.variant)?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){O=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+O+" 0 R")})),this},
/**
         * @license
         * Copyright (c) 2014 Steven Spungin (TwelveTone LLC)  steven@twelvetone.tv
         *
         * Licensed under the MIT License.
         * http://opensource.org/licenses/mit-license
         */
function(j){var O=function(){var V=void 0;Object.defineProperty(this,"pdf",{get:function(){return V},set:function(Ne){V=Ne}});var ie=150;Object.defineProperty(this,"width",{get:function(){return ie},set:function(Ne){ie=isNaN(Ne)||!1===Number.isInteger(Ne)||Ne<0?150:Ne,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=ie+1)}});var ge=300;Object.defineProperty(this,"height",{get:function(){return ge},set:function(Ne){ge=isNaN(Ne)||!1===Number.isInteger(Ne)||Ne<0?300:Ne,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=ge+1)}});var ue=[];Object.defineProperty(this,"childNodes",{get:function(){return ue},set:function(Ne){ue=Ne}});var Me={};Object.defineProperty(this,"style",{get:function(){return Me},set:function(Ne){Me=Ne}}),Object.defineProperty(this,"parentNode",{})};O.prototype.getContext=function(V,ie){var ge;if("2d"!==(V=V||"2d"))return null;for(ge in ie)this.pdf.context2d.hasOwnProperty(ge)&&(this.pdf.context2d[ge]=ie[ge]);return this.pdf.context2d._canvas=this,this.pdf.context2d},O.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},j.events.push(["initialized",function(){this.canvas=new O,this.canvas.pdf=this}])}(ti.API),function(j){var O={left:0,top:0,bottom:0,right:0},V=!1,ie=function(){void 0===this.internal.__cell__&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},O),this.internal.__cell__.margins.width=this.getPageWidth(),ge.call(this))},ge=function(){this.internal.__cell__.lastCell=new ue,this.internal.__cell__.pages=1},ue=function(){var Be=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return Be},set:function(Ht){Be=Ht}});var it=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return it},set:function(Ht){it=Ht}});var pt=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return pt},set:function(Ht){pt=Ht}});var ft=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return ft},set:function(Ht){ft=Ht}});var kt=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return kt},set:function(Ht){kt=Ht}});var Ze=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return Ze},set:function(Ht){Ze=Ht}});var Qt=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return Qt},set:function(Ht){Qt=Ht}}),this};ue.prototype.clone=function(){return new ue(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},ue.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},j.setHeaderFunction=function(Be){return ie.call(this),this.internal.__cell__.headerFunction="function"==typeof Be?Be:void 0,this},j.getTextDimensions=function(Be,it){ie.call(this);var pt=(it=it||{}).fontSize||this.getFontSize(),ft=it.font||this.getFont(),kt=it.scaleFactor||this.internal.scaleFactor,Ze=0,Qt=0,Ht=0,rn=this;if(!Array.isArray(Be)&&"string"!=typeof Be){if("number"!=typeof Be)throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");Be=String(Be)}var St=it.maxWidth;St>0?"string"==typeof Be?Be=this.splitTextToSize(Be,St):"[object Array]"===Object.prototype.toString.call(Be)&&(Be=Be.reduce(function(Vn,qn){return Vn.concat(rn.splitTextToSize(qn,St))},[])):Be=Array.isArray(Be)?Be:[Be];for(var nn=0;nn<Be.length;nn++)Ze<(Ht=this.getStringUnitWidth(Be[nn],{font:ft})*pt)&&(Ze=Ht);return 0!==Ze&&(Qt=Be.length),{w:Ze/=kt,h:Math.max((Qt*pt*this.getLineHeightFactor()-pt*(this.getLineHeightFactor()-1))/kt,0)}},j.cellAddPage=function(){ie.call(this),this.addPage();var Be=this.internal.__cell__.margins||O;return this.internal.__cell__.lastCell=new ue(Be.left,Be.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var Me=j.cell=function(){var Be;Be=arguments[0]instanceof ue?arguments[0]:new ue(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),ie.call(this);var it=this.internal.__cell__.lastCell,pt=this.internal.__cell__.padding,ft=this.internal.__cell__.margins||O,kt=this.internal.__cell__.tableHeaderRow,Ze=this.internal.__cell__.printHeaders;return void 0!==it.lineNumber&&(it.lineNumber===Be.lineNumber?(Be.x=(it.x||0)+(it.width||0),Be.y=it.y||0):it.y+it.height+Be.height+ft.bottom>this.getPageHeight()?(this.cellAddPage(),Be.y=ft.top,Ze&&kt&&(this.printHeaderRow(Be.lineNumber,!0),Be.y+=kt[0].height)):Be.y=it.y+it.height||Be.y),void 0!==Be.text[0]&&(this.rect(Be.x,Be.y,Be.width,Be.height,!0===V?"FD":void 0),"right"===Be.align?this.text(Be.text,Be.x+Be.width-pt,Be.y+pt,{align:"right",baseline:"top"}):"center"===Be.align?this.text(Be.text,Be.x+Be.width/2,Be.y+pt,{align:"center",baseline:"top",maxWidth:Be.width-pt-pt}):this.text(Be.text,Be.x+pt,Be.y+pt,{align:"left",baseline:"top",maxWidth:Be.width-pt-pt})),this.internal.__cell__.lastCell=Be,this};j.table=function(Be,it,pt,ft,kt){if(ie.call(this),!pt)throw new Error("No data for PDF table.");var Ze,Qt,Ht,rn,St=[],nn=[],Vn=[],qn={},Ai={},sr=[],si=[],bn=(kt=kt||{}).autoSize||!1,ui=!1!==kt.printHeaders,ji=kt.css&&void 0!==kt.css["font-size"]?16*kt.css["font-size"]:kt.fontSize||12,Ut=kt.margins||Object.assign({width:this.getPageWidth()},O),jt="number"==typeof kt.padding?kt.padding:3,Gn=kt.headerBackgroundColor||"#c8c8c8",Cn=kt.headerTextColor||"#000";if(ge.call(this),this.internal.__cell__.printHeaders=ui,this.internal.__cell__.margins=Ut,this.internal.__cell__.table_font_size=ji,this.internal.__cell__.padding=jt,this.internal.__cell__.headerBackgroundColor=Gn,this.internal.__cell__.headerTextColor=Cn,this.setFontSize(ji),null==ft)nn=St=Object.keys(pt[0]),Vn=St.map(function(){return"left"});else if(Array.isArray(ft)&&"object"===(0,T.A)(ft[0]))for(St=ft.map(function(Qi){return Qi.name}),nn=ft.map(function(Qi){return Qi.prompt||Qi.name||""}),Vn=ft.map(function(Qi){return Qi.align||"left"}),Ze=0;Ze<ft.length;Ze+=1)Ai[ft[Ze].name]=ft[Ze].width*(19.049976/25.4);else Array.isArray(ft)&&"string"==typeof ft[0]&&(nn=St=ft,Vn=St.map(function(){return"left"}));if(bn||Array.isArray(ft)&&"string"==typeof ft[0])for(Ze=0;Ze<St.length;Ze+=1){for(qn[rn=St[Ze]]=pt.map(function(Qi){return Qi[rn]}),this.setFont(void 0,"bold"),sr.push(this.getTextDimensions(nn[Ze],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),Qt=qn[rn],this.setFont(void 0,"normal"),Ht=0;Ht<Qt.length;Ht+=1)sr.push(this.getTextDimensions(Qt[Ht],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);Ai[rn]=Math.max.apply(null,sr)+jt+jt,sr=[]}if(ui){var Ei={};for(Ze=0;Ze<St.length;Ze+=1)Ei[St[Ze]]={},Ei[St[Ze]].text=nn[Ze],Ei[St[Ze]].align=Vn[Ze];var vi=Ne.call(this,Ei,Ai);si=St.map(function(Qi){return new ue(Be,it,Ai[Qi],vi,Ei[Qi].text,void 0,Ei[Qi].align)}),this.setTableHeaderRow(si),this.printHeaderRow(1,!1)}var Mi=ft.reduce(function(Qi,no){return Qi[no.name]=no.align,Qi},{});for(Ze=0;Ze<pt.length;Ze+=1){"rowStart"in kt&&kt.rowStart instanceof Function&&kt.rowStart({row:Ze,data:pt[Ze]},this);var li=Ne.call(this,pt[Ze],Ai);for(Ht=0;Ht<St.length;Ht+=1){var Pi=pt[Ze][St[Ht]];"cellStart"in kt&&kt.cellStart instanceof Function&&kt.cellStart({row:Ze,col:Ht,data:Pi},this),Me.call(this,new ue(Be,it,Ai[St[Ht]],li,Pi,Ze+2,Mi[St[Ht]]))}}return this.internal.__cell__.table_x=Be,this.internal.__cell__.table_y=it,this};var Ne=function(Be,it){var pt=this.internal.__cell__.padding,ft=this.internal.__cell__.table_font_size,kt=this.internal.scaleFactor;return Object.keys(Be).map(function(Ze){var Qt=Be[Ze];return this.splitTextToSize(Qt.hasOwnProperty("text")?Qt.text:Qt,it[Ze]-pt-pt)},this).map(function(Ze){return this.getLineHeightFactor()*Ze.length*ft/kt+pt+pt},this).reduce(function(Ze,Qt){return Math.max(Ze,Qt)},0)};j.setTableHeaderRow=function(Be){ie.call(this),this.internal.__cell__.tableHeaderRow=Be},j.printHeaderRow=function(Be,it){if(ie.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var pt;if(V=!0,"function"==typeof this.internal.__cell__.headerFunction){var ft=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new ue(ft[0],ft[1],ft[2],ft[3],void 0,-1)}this.setFont(void 0,"bold");for(var kt=[],Ze=0;Ze<this.internal.__cell__.tableHeaderRow.length;Ze+=1){pt=this.internal.__cell__.tableHeaderRow[Ze].clone(),it&&(pt.y=this.internal.__cell__.margins.top||0,kt.push(pt)),pt.lineNumber=Be;var Qt=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),Me.call(this,pt),this.setTextColor(Qt)}kt.length>0&&this.setTableHeaderRow(kt),this.setFont(void 0,"normal"),V=!1}}(ti.API);var ul={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},ds=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Qc=pa(ds),pu=[100,200,300,400,500,600,700,800,900],sc=pa(pu);function Ua(j){var ue,O=j.family.replace(/"|'/g,"").toLowerCase(),V=ul[ue=(ue=j.style)||"normal"]?ue:"normal",ie=function(ue){return ue?"number"==typeof ue?ue>=100&&ue<=900&&ue%100==0?ue:400:/^\d00$/.test(ue)?parseInt(ue):"bold"===ue?700:400:400}(j.weight),ge=function(ue){return"number"==typeof Qc[ue=ue||"normal"]?ue:"normal"}(j.stretch);return{family:O,style:V,weight:ie,stretch:ge,src:j.src||[],ref:j.ref||{name:O,style:[ge,V,ie].join(" ")}}}function ld(j,O,V,ie){var ge;for(ge=V;ge>=0&&ge<O.length;ge+=ie)if(j[O[ge]])return j[O[ge]];for(ge=V;ge>=0&&ge<O.length;ge-=ie)if(j[O[ge]])return j[O[ge]]}var fp={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Ac={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function np(j){return[j.stretch,j.style,j.weight,j.family].join(" ")}function mp(j){return j.trimLeft()}function Lo(j,O){for(var V=0;V<j.length;){if(j.charAt(V)===O)return[j.substring(0,V),j.substring(V+1)];V+=1}return null}function Uo(j){var O=j.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return null===O?null:[O[0],j.substring(O[0].length)]}var No,Er,Ss,jc=["times"];(function(j){var O,V,ie,ge,ue,Me,Ne,Be,it,pt=function(mt){return this.isStrokeTransparent=(mt=mt||{}).isStrokeTransparent||!1,this.strokeOpacity=mt.strokeOpacity||1,this.strokeStyle=mt.strokeStyle||"#000000",this.fillStyle=mt.fillStyle||"#000000",this.isFillTransparent=mt.isFillTransparent||!1,this.fillOpacity=mt.fillOpacity||1,this.font=mt.font||"10px sans-serif",this.textBaseline=mt.textBaseline||"alphabetic",this.textAlign=mt.textAlign||"left",this.lineWidth=mt.lineWidth||1,this.lineJoin=mt.lineJoin||"miter",this.lineCap=mt.lineCap||"butt",this.path=mt.path||[],this.transform=void 0!==mt.transform?mt.transform.clone():new Be,this.globalCompositeOperation=mt.globalCompositeOperation||"normal",this.globalAlpha=mt.globalAlpha||1,this.clip_path=mt.clip_path||[],this.currentPoint=mt.currentPoint||new Me,this.miterLimit=mt.miterLimit||10,this.lastPoint=mt.lastPoint||new Me,this.lineDashOffset=mt.lineDashOffset||0,this.lineDash=mt.lineDash||[],this.margin=mt.margin||[0,0,0,0],this.prevPageLastElemOffset=mt.prevPageLastElemOffset||0,this.ignoreClearRect="boolean"!=typeof mt.ignoreClearRect||mt.ignoreClearRect,this};j.events.push(["initialized",function(){this.context2d=new ft(this),O=this.internal.f2,V=this.internal.getCoordinateString,ie=this.internal.getVerticalCoordinateString,ge=this.internal.getHorizontalCoordinate,ue=this.internal.getVerticalCoordinate,Me=this.internal.Point,Ne=this.internal.Rectangle,Be=this.internal.Matrix,it=new pt}]);var ft=function(mt){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var on=mt;Object.defineProperty(this,"pdf",{get:function(){return on}});var mn=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return mn},set:function(Yi){mn=!!Yi}});var Ln=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return Ln},set:function(Yi){Ln=!!Yi}});var zn=0;Object.defineProperty(this,"posX",{get:function(){return zn},set:function(Yi){isNaN(Yi)||(zn=Yi)}});var pi=0;Object.defineProperty(this,"posY",{get:function(){return pi},set:function(Yi){isNaN(Yi)||(pi=Yi)}}),Object.defineProperty(this,"margin",{get:function(){return it.margin},set:function(Yi){var vn;"number"==typeof Yi?vn=[Yi,Yi,Yi,Yi]:((vn=new Array(4))[0]=Yi[0],vn[1]=Yi.length>=2?Yi[1]:vn[0],vn[2]=Yi.length>=3?Yi[2]:vn[0],vn[3]=Yi.length>=4?Yi[3]:vn[1]),it.margin=vn}});var _i=!1;Object.defineProperty(this,"autoPaging",{get:function(){return _i},set:function(Yi){_i=Yi}});var yi=0;Object.defineProperty(this,"lastBreak",{get:function(){return yi},set:function(Yi){yi=Yi}});var Hr=[];Object.defineProperty(this,"pageBreaks",{get:function(){return Hr},set:function(Yi){Hr=Yi}}),Object.defineProperty(this,"ctx",{get:function(){return it},set:function(Yi){Yi instanceof pt&&(it=Yi)}}),Object.defineProperty(this,"path",{get:function(){return it.path},set:function(Yi){it.path=Yi}});var kr=[];Object.defineProperty(this,"ctxStack",{get:function(){return kr},set:function(Yi){kr=Yi}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(Yi){var vn;vn=kt(Yi),this.ctx.fillStyle=vn.style,this.ctx.isFillTransparent=0===vn.a,this.ctx.fillOpacity=vn.a,this.pdf.setFillColor(vn.r,vn.g,vn.b,{a:vn.a}),this.pdf.setTextColor(vn.r,vn.g,vn.b,{a:vn.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(Yi){var vn=kt(Yi);this.ctx.strokeStyle=vn.style,this.ctx.isStrokeTransparent=0===vn.a,this.ctx.strokeOpacity=vn.a,0===vn.a?this.pdf.setDrawColor(255,255,255):this.pdf.setDrawColor(vn.r,vn.g,vn.b)}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(Yi){-1!==["butt","round","square"].indexOf(Yi)&&(this.ctx.lineCap=Yi,this.pdf.setLineCap(Yi))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(Yi){isNaN(Yi)||(this.ctx.lineWidth=Yi,this.pdf.setLineWidth(Yi))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(Yi){-1!==["bevel","round","miter"].indexOf(Yi)&&(this.ctx.lineJoin=Yi,this.pdf.setLineJoin(Yi))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(Yi){isNaN(Yi)||(this.ctx.miterLimit=Yi,this.pdf.setMiterLimit(Yi))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(Yi){this.ctx.textBaseline=Yi}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(Yi){-1!==["right","end","center","left","start"].indexOf(Yi)&&(this.ctx.textAlign=Yi)}});var fo=null,As=null;Object.defineProperty(this,"fontFaces",{get:function(){return As},set:function(Yi){fo=null,As=Yi}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(Yi){var vn;if(this.ctx.font=Yi,null!==(vn=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(Yi))){var Yn=vn[1],fr=vn[3],Pr=vn[4],ro=vn[6],hr=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Pr)[2];Pr=Math.floor("px"===hr?parseFloat(Pr)*this.pdf.internal.scaleFactor:"em"===hr?parseFloat(Pr)*this.pdf.getFontSize():parseFloat(Pr)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Pr);var He=function(Lt){var On,Yt,mr=[],Sr=Lt.trim();if(""===Sr)return jc;if(Sr in Ac)return[Ac[Sr]];for(;""!==Sr;){switch(Yt=null,On=(Sr=mp(Sr)).charAt(0)){case'"':case"'":Yt=Lo(Sr.substring(1),On);break;default:Yt=Uo(Sr)}if(null===Yt||(mr.push(Yt[0]),""!==(Sr=mp(Yt[1]))&&","!==Sr.charAt(0)))return jc;Sr=Sr.replace(/^,/,"")}return mr}(ro);if(this.fontFaces){var oe=function dh(j,O,V){for(var ie=(V=V||{}).defaultFontFamily||"times",ge=Object.assign({},fp,V.genericFontFamilies||{}),ue=null,Me=null,Ne=0;Ne<O.length;++Ne)if(ge[(ue=Ua(O[Ne])).family]&&(ue.family=ge[ue.family]),j.hasOwnProperty(ue.family)){Me=j[ue.family];break}if(!(Me=Me||j[ie]))throw new Error("Could not find a font-family for the rule '"+np(ue)+"' and default family '"+ie+"'.");if(Me=function(Be,it){if(it[Be])return it[Be];var pt=Qc[Be],kt=ld(it,ds,pt,pt<=Qc.normal?-1:1);if(!kt)throw new Error("Could not find a matching font-stretch value for "+Be);return kt}(ue.stretch,Me),Me=function(Be,it){if(it[Be])return it[Be];for(var pt=ul[Be],ft=0;ft<pt.length;++ft)if(it[pt[ft]])return it[pt[ft]];throw new Error("Could not find a matching font-style for "+Be)}(ue.style,Me),!(Me=function(Be,it){if(it[Be])return it[Be];if(400===Be&&it[500])return it[500];if(500===Be&&it[400])return it[400];var ft=ld(it,pu,sc[Be],Be<400?-1:1);if(!ft)throw new Error("Could not find a matching font-weight for value "+Be);return ft}(ue.weight,Me)))throw new Error("Failed to resolve a font for the rule '"+np(ue)+"'.");return Me}(function io(Yi,vn){if(null===fo){var Yn=(fr=Yi.getFontList(),Pr=[],Object.keys(fr).forEach(function(ro){fr[ro].forEach(function(hr){var He=null;switch(hr){case"bold":He={family:ro,weight:"bold"};break;case"italic":He={family:ro,style:"italic"};break;case"bolditalic":He={family:ro,weight:"bold",style:"italic"};break;case"":case"normal":He={family:ro}}null!==He&&(He.ref={name:ro,style:hr},Pr.push(He))})}),Pr);fo=function(fr){for(var Pr={},ro=0;ro<fr.length;++ro){var hr=Ua(fr[ro]),He=hr.family,oe=hr.stretch,ee=hr.style,Te=hr.weight;Pr[He]=Pr[He]||{},Pr[He][oe]=Pr[He][oe]||{},Pr[He][oe][ee]=Pr[He][oe][ee]||{},Pr[He][oe][ee][Te]=hr}return Pr}(Yn.concat(vn))}var fr,Pr;return fo}(this.pdf,this.fontFaces),He.map(function(Lt){return{family:Lt,stretch:"normal",weight:fr,style:Yn}}));this.pdf.setFont(oe.ref.name,oe.ref.style)}else{var ee="";("bold"===fr||parseInt(fr,10)>=700||"bold"===Yn)&&(ee="bold"),"italic"===Yn&&(ee+="italic"),0===ee.length&&(ee="normal");for(var Te="",Le={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},ot=0;ot<He.length;ot++){if(void 0!==this.pdf.internal.getFont(He[ot],ee,{noFallback:!0,disableWarning:!0})){Te=He[ot];break}if("bolditalic"===ee&&void 0!==this.pdf.internal.getFont(He[ot],"bold",{noFallback:!0,disableWarning:!0}))Te=He[ot],ee="bold";else if(void 0!==this.pdf.internal.getFont(He[ot],"normal",{noFallback:!0,disableWarning:!0})){Te=He[ot],ee="normal";break}}if(""===Te)for(var gt=0;gt<He.length;gt++)if(Le[He[gt]]){Te=Le[He[gt]];break}this.pdf.setFont(Te=""===Te?"Times":Te,ee)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(Yi){this.ctx.globalCompositeOperation=Yi}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(Yi){this.ctx.globalAlpha=Yi}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(Yi){this.ctx.lineDashOffset=Yi,no.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(Yi){this.ctx.lineDash=Yi,no.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(Yi){this.ctx.ignoreClearRect=!!Yi}})};ft.prototype.setLineDash=function(mt){this.lineDash=mt},ft.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},ft.prototype.fill=function(){qn.call(this,"fill",!1)},ft.prototype.stroke=function(){qn.call(this,"stroke",!1)},ft.prototype.beginPath=function(){this.path=[{type:"begin"}]},ft.prototype.moveTo=function(mt,on){if(isNaN(mt)||isNaN(on))throw Bs.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var mn=this.ctx.transform.applyToPoint(new Me(mt,on));this.path.push({type:"mt",x:mn.x,y:mn.y}),this.ctx.lastPoint=new Me(mt,on)},ft.prototype.closePath=function(){var mt=new Me(0,0),on=0;for(on=this.path.length-1;-1!==on;on--)if("begin"===this.path[on].type&&"object"===(0,T.A)(this.path[on+1])&&"number"==typeof this.path[on+1].x){mt=new Me(this.path[on+1].x,this.path[on+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new Me(mt.x,mt.y)},ft.prototype.lineTo=function(mt,on){if(isNaN(mt)||isNaN(on))throw Bs.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var mn=this.ctx.transform.applyToPoint(new Me(mt,on));this.path.push({type:"lt",x:mn.x,y:mn.y}),this.ctx.lastPoint=new Me(mn.x,mn.y)},ft.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),qn.call(this,null,!0)},ft.prototype.quadraticCurveTo=function(mt,on,mn,Ln){if(isNaN(mn)||isNaN(Ln)||isNaN(mt)||isNaN(on))throw Bs.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var zn=this.ctx.transform.applyToPoint(new Me(mn,Ln)),pi=this.ctx.transform.applyToPoint(new Me(mt,on));this.path.push({type:"qct",x1:pi.x,y1:pi.y,x:zn.x,y:zn.y}),this.ctx.lastPoint=new Me(zn.x,zn.y)},ft.prototype.bezierCurveTo=function(mt,on,mn,Ln,zn,pi){if(isNaN(zn)||isNaN(pi)||isNaN(mt)||isNaN(on)||isNaN(mn)||isNaN(Ln))throw Bs.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var _i=this.ctx.transform.applyToPoint(new Me(zn,pi)),yi=this.ctx.transform.applyToPoint(new Me(mt,on)),Hr=this.ctx.transform.applyToPoint(new Me(mn,Ln));this.path.push({type:"bct",x1:yi.x,y1:yi.y,x2:Hr.x,y2:Hr.y,x:_i.x,y:_i.y}),this.ctx.lastPoint=new Me(_i.x,_i.y)},ft.prototype.arc=function(mt,on,mn,Ln,zn,pi){if(isNaN(mt)||isNaN(on)||isNaN(mn)||isNaN(Ln)||isNaN(zn))throw Bs.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(pi=!!pi,!this.ctx.transform.isIdentity){var _i=this.ctx.transform.applyToPoint(new Me(mt,on));mt=_i.x,on=_i.y;var yi=this.ctx.transform.applyToPoint(new Me(0,mn)),Hr=this.ctx.transform.applyToPoint(new Me(0,0));mn=Math.sqrt(Math.pow(yi.x-Hr.x,2)+Math.pow(yi.y-Hr.y,2))}Math.abs(zn-Ln)>=2*Math.PI&&(Ln=0,zn=2*Math.PI),this.path.push({type:"arc",x:mt,y:on,radius:mn,startAngle:Ln,endAngle:zn,counterclockwise:pi})},ft.prototype.arcTo=function(mt,on,mn,Ln,zn){throw new Error("arcTo not implemented.")},ft.prototype.rect=function(mt,on,mn,Ln){if(isNaN(mt)||isNaN(on)||isNaN(mn)||isNaN(Ln))throw Bs.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(mt,on),this.lineTo(mt+mn,on),this.lineTo(mt+mn,on+Ln),this.lineTo(mt,on+Ln),this.lineTo(mt,on),this.lineTo(mt+mn,on),this.lineTo(mt,on)},ft.prototype.fillRect=function(mt,on,mn,Ln){if(isNaN(mt)||isNaN(on)||isNaN(mn)||isNaN(Ln))throw Bs.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!Ze.call(this)){var zn={};"butt"!==this.lineCap&&(zn.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(zn.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(mt,on,mn,Ln),this.fill(),zn.hasOwnProperty("lineCap")&&(this.lineCap=zn.lineCap),zn.hasOwnProperty("lineJoin")&&(this.lineJoin=zn.lineJoin)}},ft.prototype.strokeRect=function(mt,on,mn,Ln){if(isNaN(mt)||isNaN(on)||isNaN(mn)||isNaN(Ln))throw Bs.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");Qt.call(this)||(this.beginPath(),this.rect(mt,on,mn,Ln),this.stroke())},ft.prototype.clearRect=function(mt,on,mn,Ln){if(isNaN(mt)||isNaN(on)||isNaN(mn)||isNaN(Ln))throw Bs.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(mt,on,mn,Ln))},ft.prototype.save=function(mt){mt="boolean"!=typeof mt||mt;for(var on=this.pdf.internal.getCurrentPageInfo().pageNumber,mn=0;mn<this.pdf.internal.getNumberOfPages();mn++)this.pdf.setPage(mn+1),this.pdf.internal.out("q");if(this.pdf.setPage(on),mt){this.ctx.fontSize=this.pdf.internal.getFontSize();var Ln=new pt(this.ctx);this.ctxStack.push(this.ctx),this.ctx=Ln}},ft.prototype.restore=function(mt){mt="boolean"!=typeof mt||mt;for(var on=this.pdf.internal.getCurrentPageInfo().pageNumber,mn=0;mn<this.pdf.internal.getNumberOfPages();mn++)this.pdf.setPage(mn+1),this.pdf.internal.out("Q");this.pdf.setPage(on),mt&&0!==this.ctxStack.length&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},ft.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var kt=function(mt){var on,mn,Ln,zn;if(!0===mt.isCanvasGradient&&(mt=mt.getColor()),!mt)return{r:0,g:0,b:0,a:0,style:mt};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(mt))on=0,mn=0,Ln=0,zn=0;else{var pi=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(mt);if(null!==pi)on=parseInt(pi[1]),mn=parseInt(pi[2]),Ln=parseInt(pi[3]),zn=1;else if(null!==(pi=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(mt)))on=parseInt(pi[1]),mn=parseInt(pi[2]),Ln=parseInt(pi[3]),zn=parseFloat(pi[4]);else{if(zn=1,"string"==typeof mt&&"#"!==mt.charAt(0)){var _i=new Is(mt);mt=_i.ok?_i.toHex():"#000000"}4===mt.length?(on=mt.substring(1,2),on+=on,mn=mt.substring(2,3),mn+=mn,Ln=mt.substring(3,4),Ln+=Ln):(on=mt.substring(1,3),mn=mt.substring(3,5),Ln=mt.substring(5,7)),on=parseInt(on,16),mn=parseInt(mn,16),Ln=parseInt(Ln,16)}}return{r:on,g:mn,b:Ln,a:zn,style:mt}},Ze=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},Qt=function(){return!(!this.ctx.isStrokeTransparent&&0!=this.globalAlpha)};ft.prototype.fillText=function(mt,on,mn,Ln){if(isNaN(on)||isNaN(mn)||"string"!=typeof mt)throw Bs.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(Ln=isNaN(Ln)?void 0:Ln,!Ze.call(this)){var zn=li(this.ctx.transform.rotation);jt.call(this,{text:mt,x:on,y:mn,scale:this.ctx.transform.scaleX,angle:zn,align:this.textAlign,maxWidth:Ln})}},ft.prototype.strokeText=function(mt,on,mn,Ln){if(isNaN(on)||isNaN(mn)||"string"!=typeof mt)throw Bs.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!Qt.call(this)){Ln=isNaN(Ln)?void 0:Ln;var zn=li(this.ctx.transform.rotation);jt.call(this,{text:mt,x:on,y:mn,scale:this.ctx.transform.scaleX,renderingMode:"stroke",angle:zn,align:this.textAlign,maxWidth:Ln})}},ft.prototype.measureText=function(mt){if("string"!=typeof mt)throw Bs.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var on=this.pdf,mn=this.pdf.internal.scaleFactor,Ln=on.internal.getFontSize(),zn=on.getStringUnitWidth(mt)*Ln/on.internal.scaleFactor;return new function(_i){var yi=(_i=_i||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return yi}}),this}({width:zn*=Math.round(96*mn/72*1e4)/1e4})},ft.prototype.scale=function(mt,on){if(isNaN(mt)||isNaN(on))throw Bs.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var mn=new Be(mt,0,0,on,0,0);this.ctx.transform=this.ctx.transform.multiply(mn)},ft.prototype.rotate=function(mt){if(isNaN(mt))throw Bs.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var on=new Be(Math.cos(mt),Math.sin(mt),-Math.sin(mt),Math.cos(mt),0,0);this.ctx.transform=this.ctx.transform.multiply(on)},ft.prototype.translate=function(mt,on){if(isNaN(mt)||isNaN(on))throw Bs.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var mn=new Be(1,0,0,1,mt,on);this.ctx.transform=this.ctx.transform.multiply(mn)},ft.prototype.transform=function(mt,on,mn,Ln,zn,pi){if(isNaN(mt)||isNaN(on)||isNaN(mn)||isNaN(Ln)||isNaN(zn)||isNaN(pi))throw Bs.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var _i=new Be(mt,on,mn,Ln,zn,pi);this.ctx.transform=this.ctx.transform.multiply(_i)},ft.prototype.setTransform=function(mt,on,mn,Ln,zn,pi){mt=isNaN(mt)?1:mt,on=isNaN(on)?0:on,mn=isNaN(mn)?0:mn,Ln=isNaN(Ln)?1:Ln,zn=isNaN(zn)?0:zn,pi=isNaN(pi)?0:pi,this.ctx.transform=new Be(mt,on,mn,Ln,zn,pi)};var Ht=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};ft.prototype.drawImage=function(mt,on,mn,Ln,zn,pi,_i,yi,Hr){var kr=this.pdf.getImageProperties(mt),fo=1,io=1,As=1,Yi=1;void 0!==Ln&&void 0!==yi&&(As=yi/Ln,Yi=Hr/zn,fo=kr.width/Ln*yi/Ln,io=kr.height/zn*Hr/zn),void 0===pi&&(pi=on,_i=mn,on=0,mn=0),void 0!==Ln&&void 0===yi&&(yi=Ln,Hr=zn),void 0===Ln&&void 0===yi&&(yi=kr.width,Hr=kr.height);for(var vn,Yn=this.ctx.transform.decompose(),fr=li(Yn.rotate.shx),Pr=new Be,ro=(Pr=(Pr=(Pr=Pr.multiply(Yn.translate)).multiply(Yn.skew)).multiply(Yn.scale)).applyToRectangle(new Ne(pi-on*As,_i-mn*Yi,Ln*fo,zn*io)),hr=rn.call(this,ro),He=[],oe=0;oe<hr.length;oe+=1)-1===He.indexOf(hr[oe])&&He.push(hr[oe]);if(Vn(He),this.autoPaging)for(var ee=He[0],Te=He[He.length-1],Le=ee;Le<Te+1;Le++){this.pdf.setPage(Le);var ot=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],gt=1===Le?this.posY+this.margin[0]:this.margin[0],On=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Yt=1===Le?0:this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2]+(Le-2)*On;if(0!==this.ctx.clip_path.length){var mr=this.path;vn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=nn(vn,this.posX+this.margin[3],-Yt+gt+this.ctx.prevPageLastElemOffset),Ai.call(this,"fill",!0),this.path=mr}var Sr=JSON.parse(JSON.stringify(ro));Sr=nn([Sr],this.posX+this.margin[3],-Yt+gt+this.ctx.prevPageLastElemOffset)[0];var Qo=(Le>ee||Le<Te)&&Ht.call(this);Qo&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ot,On,null).clip().discardPath()),this.pdf.addImage(mt,"JPEG",Sr.x,Sr.y,Sr.w,Sr.h,null,null,fr),Qo&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(mt,"JPEG",ro.x,ro.y,ro.w,ro.h,null,null,fr)};var rn=function(mt,on,mn){var Ln=[];on=on||this.pdf.internal.pageSize.width,mn=mn||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var zn=this.posY+this.ctx.prevPageLastElemOffset;switch(mt.type){default:case"mt":case"lt":Ln.push(Math.floor((mt.y+zn)/mn)+1);break;case"arc":Ln.push(Math.floor((mt.y+zn-mt.radius)/mn)+1),Ln.push(Math.floor((mt.y+zn+mt.radius)/mn)+1);break;case"qct":var pi=Pi(this.ctx.lastPoint.x,this.ctx.lastPoint.y,mt.x1,mt.y1,mt.x,mt.y);Ln.push(Math.floor((pi.y+zn)/mn)+1),Ln.push(Math.floor((pi.y+pi.h+zn)/mn)+1);break;case"bct":var _i=Qi(this.ctx.lastPoint.x,this.ctx.lastPoint.y,mt.x1,mt.y1,mt.x2,mt.y2,mt.x,mt.y);Ln.push(Math.floor((_i.y+zn)/mn)+1),Ln.push(Math.floor((_i.y+_i.h+zn)/mn)+1);break;case"rect":Ln.push(Math.floor((mt.y+zn)/mn)+1),Ln.push(Math.floor((mt.y+mt.h+zn)/mn)+1)}for(var yi=0;yi<Ln.length;yi+=1)for(;this.pdf.internal.getNumberOfPages()<Ln[yi];)St.call(this);return Ln},St=function(){var mt=this.fillStyle,on=this.strokeStyle,mn=this.font,Ln=this.lineCap,zn=this.lineWidth,pi=this.lineJoin;this.pdf.addPage(),this.fillStyle=mt,this.strokeStyle=on,this.font=mn,this.lineCap=Ln,this.lineWidth=zn,this.lineJoin=pi},nn=function(mt,on,mn){for(var Ln=0;Ln<mt.length;Ln++)switch(mt[Ln].type){case"bct":mt[Ln].x2+=on,mt[Ln].y2+=mn;case"qct":mt[Ln].x1+=on,mt[Ln].y1+=mn;default:mt[Ln].x+=on,mt[Ln].y+=mn}return mt},Vn=function(mt){return mt.sort(function(on,mn){return on-mn})},qn=function(mt,on){for(var mn,Ln,zn=this.fillStyle,pi=this.strokeStyle,_i=this.lineCap,yi=this.lineWidth,Hr=Math.abs(yi*this.ctx.transform.scaleX),kr=this.lineJoin,fo=JSON.parse(JSON.stringify(this.path)),io=JSON.parse(JSON.stringify(this.path)),As=[],Yi=0;Yi<io.length;Yi++)if(void 0!==io[Yi].x)for(var vn=rn.call(this,io[Yi]),Yn=0;Yn<vn.length;Yn+=1)-1===As.indexOf(vn[Yn])&&As.push(vn[Yn]);for(var fr=0;fr<As.length;fr++)for(;this.pdf.internal.getNumberOfPages()<As[fr];)St.call(this);if(Vn(As),this.autoPaging)for(var Pr=As[0],ro=As[As.length-1],hr=Pr;hr<ro+1;hr++){this.pdf.setPage(hr),this.fillStyle=zn,this.strokeStyle=pi,this.lineCap=_i,this.lineWidth=Hr,this.lineJoin=kr;var He=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],oe=1===hr?this.posY+this.margin[0]:this.margin[0],Te=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Le=1===hr?0:this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2]+(hr-2)*Te;if(0!==this.ctx.clip_path.length){var ot=this.path;mn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=nn(mn,this.posX+this.margin[3],-Le+oe+this.ctx.prevPageLastElemOffset),Ai.call(this,mt,!0),this.path=ot}if(Ln=JSON.parse(JSON.stringify(fo)),this.path=nn(Ln,this.posX+this.margin[3],-Le+oe+this.ctx.prevPageLastElemOffset),!1===on||0===hr){var gt=(hr>Pr||hr<ro)&&Ht.call(this);gt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],He,Te,null).clip().discardPath()),Ai.call(this,mt,on),gt&&this.pdf.restoreGraphicsState()}this.lineWidth=yi}else this.lineWidth=Hr,Ai.call(this,mt,on),this.lineWidth=yi;this.path=fo},Ai=function(mt,on){if(("stroke"!==mt||on||!Qt.call(this))&&("stroke"===mt||on||!Ze.call(this))){for(var mn,Ln,zn=[],pi=this.path,_i=0;_i<pi.length;_i++){var yi=pi[_i];switch(yi.type){case"begin":zn.push({begin:!0});break;case"close":zn.push({close:!0});break;case"mt":zn.push({start:yi,deltas:[],abs:[]});break;case"lt":var Hr=zn.length;if(pi[_i-1]&&!isNaN(pi[_i-1].x)&&(mn=[yi.x-pi[_i-1].x,yi.y-pi[_i-1].y],Hr>0))for(;Hr>=0;Hr--)if(!0!==zn[Hr-1].close&&!0!==zn[Hr-1].begin){zn[Hr-1].deltas.push(mn),zn[Hr-1].abs.push(yi);break}break;case"bct":zn[zn.length-1].deltas.push(mn=[yi.x1-pi[_i-1].x,yi.y1-pi[_i-1].y,yi.x2-pi[_i-1].x,yi.y2-pi[_i-1].y,yi.x-pi[_i-1].x,yi.y-pi[_i-1].y]);break;case"qct":zn[zn.length-1].deltas.push(mn=[pi[_i-1].x+2/3*(yi.x1-pi[_i-1].x)-pi[_i-1].x,pi[_i-1].y+2/3*(yi.y1-pi[_i-1].y)-pi[_i-1].y,yi.x+2/3*(yi.x1-yi.x)-pi[_i-1].x,yi.y+2/3*(yi.y1-yi.y)-pi[_i-1].y,yi.x-pi[_i-1].x,yi.y-pi[_i-1].y]);break;case"arc":zn.push({deltas:[],abs:[],arc:!0}),Array.isArray(zn[zn.length-1].abs)&&zn[zn.length-1].abs.push(yi)}}Ln=on?null:"stroke"===mt?"stroke":"fill";for(var Yn=!1,fr=0;fr<zn.length;fr++)if(zn[fr].arc)for(var Pr=zn[fr].abs,ro=0;ro<Pr.length;ro++){var hr=Pr[ro];"arc"===hr.type?bn.call(this,hr.x,hr.y,hr.radius,hr.startAngle,hr.endAngle,hr.counterclockwise,void 0,on,!Yn):Gn.call(this,hr.x,hr.y),Yn=!0}else!0===zn[fr].close?(this.pdf.internal.out("h"),Yn=!1):!0!==zn[fr].begin&&(Cn.call(this,zn[fr].deltas,zn[fr].start.x,zn[fr].start.y),Yn=!0);Ln&&ui.call(this,Ln),on&&ji.call(this)}},sr=function(mt){var on=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,mn=on*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return mt-mn;case"top":return mt+on-mn;case"hanging":return mt+on-2*mn;case"middle":return mt+on/2-mn;default:return mt}},si=function(mt){return mt+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};ft.prototype.createLinearGradient=function(){var mt=function(){};return mt.colorStops=[],mt.addColorStop=function(on,mn){this.colorStops.push([on,mn])},mt.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},mt.isCanvasGradient=!0,mt},ft.prototype.createPattern=function(){return this.createLinearGradient()},ft.prototype.createRadialGradient=function(){return this.createLinearGradient()};var bn=function(mt,on,mn,Ln,zn,pi,_i,yi,Hr){for(var kr=vi.call(this,mn,Ln,zn,pi),fo=0;fo<kr.length;fo++){var io=kr[fo];0===fo&&(Hr?Ut.call(this,io.x1+mt,io.y1+on):Gn.call(this,io.x1+mt,io.y1+on)),Ei.call(this,mt,on,io.x2,io.y2,io.x3,io.y3,io.x4,io.y4)}yi?ji.call(this):ui.call(this,_i)},ui=function(mt){switch(mt){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},ji=function(){this.pdf.clip(),this.pdf.discardPath()},Ut=function(mt,on){this.pdf.internal.out(V(mt)+" "+ie(on)+" m")},jt=function(mt){var on;switch(mt.align){case"right":case"end":on="right";break;case"center":on="center";break;default:on="left"}var mn=this.pdf.getTextDimensions(mt.text),Ln=sr.call(this,mt.y),zn=si.call(this,Ln)-mn.h,pi=this.ctx.transform.applyToPoint(new Me(mt.x,Ln)),_i=this.ctx.transform.decompose(),yi=new Be;yi=(yi=(yi=yi.multiply(_i.translate)).multiply(_i.skew)).multiply(_i.scale);for(var Hr,kr,fo,io=this.ctx.transform.applyToRectangle(new Ne(mt.x,Ln,mn.w,mn.h)),As=yi.applyToRectangle(new Ne(mt.x,zn,mn.w,mn.h)),Yi=rn.call(this,As),vn=[],Yn=0;Yn<Yi.length;Yn+=1)-1===vn.indexOf(Yi[Yn])&&vn.push(Yi[Yn]);if(Vn(vn),this.autoPaging)for(var fr=vn[0],Pr=vn[vn.length-1],ro=fr;ro<Pr+1;ro++){this.pdf.setPage(ro);var hr=1===ro?this.posY+this.margin[0]:this.margin[0],oe=this.pdf.internal.pageSize.height-this.margin[2],ee=oe-this.margin[0],Te=this.pdf.internal.pageSize.width-this.margin[1],Le=Te-this.margin[3],ot=1===ro?0:this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2]+(ro-2)*ee;if(0!==this.ctx.clip_path.length){var gt=this.path;Hr=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=nn(Hr,this.posX+this.margin[3],-1*ot+hr),Ai.call(this,"fill",!0),this.path=gt}var Lt=nn([JSON.parse(JSON.stringify(As))],this.posX+this.margin[3],-ot+hr+this.ctx.prevPageLastElemOffset)[0];mt.scale>=.01&&(kr=this.pdf.internal.getFontSize(),this.pdf.setFontSize(kr*mt.scale),this.lineWidth=(fo=this.lineWidth)*mt.scale);var On="text"!==this.autoPaging;if(On||Lt.y+Lt.h<=oe){if(On||Lt.y>=hr&&Lt.x<=Te){var Yt=On?mt.text:this.pdf.splitTextToSize(mt.text,mt.maxWidth||Te-Lt.x)[0],mr=nn([JSON.parse(JSON.stringify(io))],this.posX+this.margin[3],-ot+hr+this.ctx.prevPageLastElemOffset)[0],Sr=On&&(ro>fr||ro<Pr)&&Ht.call(this);Sr&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Le,ee,null).clip().discardPath()),this.pdf.text(Yt,mr.x,mr.y,{angle:mt.angle,align:on,renderingMode:mt.renderingMode}),Sr&&this.pdf.restoreGraphicsState()}}else Lt.y<oe&&(this.ctx.prevPageLastElemOffset+=oe-Lt.y);mt.scale>=.01&&(this.pdf.setFontSize(kr),this.lineWidth=fo)}else mt.scale>=.01&&(kr=this.pdf.internal.getFontSize(),this.pdf.setFontSize(kr*mt.scale),this.lineWidth=(fo=this.lineWidth)*mt.scale),this.pdf.text(mt.text,pi.x+this.posX,pi.y+this.posY,{angle:mt.angle,align:on,renderingMode:mt.renderingMode,maxWidth:mt.maxWidth}),mt.scale>=.01&&(this.pdf.setFontSize(kr),this.lineWidth=fo)},Gn=function(mt,on,mn,Ln){Ln=Ln||0,this.pdf.internal.out(V(mt+(mn=mn||0))+" "+ie(on+Ln)+" l")},Cn=function(mt,on,mn){return this.pdf.lines(mt,on,mn,null,null)},Ei=function(mt,on,mn,Ln,zn,pi,_i,yi){this.pdf.internal.out([O(ge(mn+mt)),O(ue(Ln+on)),O(ge(zn+mt)),O(ue(pi+on)),O(ge(_i+mt)),O(ue(yi+on)),"c"].join(" "))},vi=function(mt,on,mn,Ln){for(var zn=2*Math.PI,pi=Math.PI/2;on>mn;)on-=zn;var _i=Math.abs(mn-on);_i<zn&&Ln&&(_i=zn-_i);for(var yi=[],Hr=Ln?-1:1,kr=on;_i>1e-5;){var fo=kr+Hr*Math.min(_i,pi);yi.push(Mi.call(this,mt,kr,fo)),_i-=Math.abs(fo-kr),kr=fo}return yi},Mi=function(mt,on,mn){var Ln=(mn-on)/2,zn=mt*Math.cos(Ln),pi=mt*Math.sin(Ln),_i=zn,yi=-pi,Hr=_i*_i+yi*yi,kr=Hr+_i*zn+yi*pi,fo=4/3*(Math.sqrt(2*Hr*kr)-kr)/(_i*pi-yi*zn),io=_i-fo*yi,As=yi+fo*_i,Yi=io,vn=-As,Yn=Ln+on,fr=Math.cos(Yn),Pr=Math.sin(Yn);return{x1:mt*Math.cos(on),y1:mt*Math.sin(on),x2:io*fr-As*Pr,y2:io*Pr+As*fr,x3:Yi*fr-vn*Pr,y3:Yi*Pr+vn*fr,x4:mt*Math.cos(mn),y4:mt*Math.sin(mn)}},li=function(mt){return 180*mt/Math.PI},Pi=function(mt,on,mn,Ln,zn,pi){var _i=mt+.5*(mn-mt),yi=on+.5*(Ln-on),Hr=zn+.5*(mn-zn),kr=pi+.5*(Ln-pi),fo=Math.min(mt,zn,_i,Hr),io=Math.max(mt,zn,_i,Hr),As=Math.min(on,pi,yi,kr),Yi=Math.max(on,pi,yi,kr);return new Ne(fo,As,io-fo,Yi-As)},Qi=function(mt,on,mn,Ln,zn,pi,_i,yi){var Hr,kr,fo,io,As,Yi,vn,Yn,fr,Pr,ro,hr,He,oe,ee=mn-mt,Te=Ln-on,Le=zn-mn,ot=pi-Ln,gt=_i-zn,Lt=yi-pi;for(kr=0;kr<41;kr++)fr=(vn=(fo=mt+(Hr=kr/40)*ee)+Hr*((As=mn+Hr*Le)-fo))+Hr*(As+Hr*(zn+Hr*gt-As)-vn),Pr=(Yn=(io=on+Hr*Te)+Hr*((Yi=Ln+Hr*ot)-io))+Hr*(Yi+Hr*(pi+Hr*Lt-Yi)-Yn),0==kr?(ro=fr,hr=Pr,He=fr,oe=Pr):(ro=Math.min(ro,fr),hr=Math.min(hr,Pr),He=Math.max(He,fr),oe=Math.max(oe,Pr));return new Ne(Math.round(ro),Math.round(hr),Math.round(He-ro),Math.round(oe-hr))},no=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var mn=JSON.stringify({lineDash:this.ctx.lineDash,lineDashOffset:this.ctx.lineDashOffset});this.prevLineDash!==mn&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=mn)}}})(ti.API),
/**
         * @license
         * jsPDF filters PlugIn
         * Copyright (c) 2014 Aras Abbasi
         *
         * Licensed under the MIT License.
         * http://opensource.org/licenses/mit-license
         */
function(j){var O=function(ue){var Me,Ne,Be,it,pt,ft,kt,Ze,Qt,Ht;for(/[^\x00-\xFF]/.test(ue),Ne=[],Be=0,it=(ue+=Me="\0\0\0\0".slice(ue.length%4||4)).length;it>Be;Be+=4)0!==(pt=(ue.charCodeAt(Be)<<24)+(ue.charCodeAt(Be+1)<<16)+(ue.charCodeAt(Be+2)<<8)+ue.charCodeAt(Be+3))?(ft=(pt=((pt=((pt=((pt=(pt-(Ht=pt%85))/85)-(Qt=pt%85))/85)-(Ze=pt%85))/85)-(kt=pt%85))/85)%85,Ne.push(ft+33,kt+33,Ze+33,Qt+33,Ht+33)):Ne.push(122);return function(rn,St){for(var nn=St;nn>0;nn--)rn.pop()}(Ne,Me.length),String.fromCharCode.apply(String,Ne)+"~>"},V=function(ue){var Me,Ne,Be,it,pt,ft=String,kt="length",Qt="charCodeAt",Ht="slice",rn="replace";for(ue[Ht](-2),ue=ue[Ht](0,-2)[rn](/\s/g,"")[rn]("z","!!!!!"),Be=[],it=0,pt=(ue+=Me="uuuuu"[Ht](ue[kt]%5||5))[kt];pt>it;it+=5)Ne=52200625*(ue[Qt](it)-33)+614125*(ue[Qt](it+1)-33)+7225*(ue[Qt](it+2)-33)+85*(ue[Qt](it+3)-33)+(ue[Qt](it+4)-33),Be.push(255&Ne>>24,255&Ne>>16,255&Ne>>8,255&Ne);return function(St,nn){for(var Vn=nn;Vn>0;Vn--)St.pop()}(Be,Me[kt]),ft.fromCharCode.apply(ft,Be)},ie=function(ue){var Me=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(ue=ue.replace(/\s/g,"")).indexOf(">")&&(ue=ue.substr(0,ue.indexOf(">"))),ue.length%2&&(ue+="0"),!1===Me.test(ue))return"";for(var Ne="",Be=0;Be<ue.length;Be+=2)Ne+=String.fromCharCode("0x"+(ue[Be]+ue[Be+1]));return Ne},ge=function(ue){for(var Me=new Uint8Array(ue.length),Ne=ue.length;Ne--;)Me[Ne]=ue.charCodeAt(Ne);return(Me=Us(Me)).reduce(function(Be,it){return Be+String.fromCharCode(it)},"")};j.processDataByFilters=function(ue,Me){var Ne=0,Be=ue||"",it=[];for("string"==typeof(Me=Me||[])&&(Me=[Me]),Ne=0;Ne<Me.length;Ne+=1)switch(Me[Ne]){case"ASCII85Decode":case"/ASCII85Decode":Be=V(Be),it.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":Be=O(Be),it.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":Be=ie(Be),it.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":Be=Be.split("").map(function(pt){return("0"+pt.charCodeAt().toString(16)).slice(-2)}).join("")+">",it.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":Be=ge(Be),it.push("/FlateDecode");break;default:throw new Error('The filter: "'+Me[Ne]+'" is not implemented')}return{data:Be,reverseChain:it.reverse().join(" ")}}}(ti.API),
/**
         * @license
         * jsPDF fileloading PlugIn
         * Copyright (c) 2018 Aras Abbasi (aras.abbasi@gmail.com)
         *
         * Licensed under the MIT License.
         * http://opensource.org/licenses/mit-license
         */
function(j){j.loadFile=function(O,V,ie){return function(ge,ue,Me){ue=!1!==ue,Me="function"==typeof Me?Me:function(){};var Ne=void 0;try{Ne=function(Be,it,pt){var ft=new XMLHttpRequest,kt=0,Ze=function(Qt){var Ht=Qt.length,rn=[],St=String.fromCharCode;for(kt=0;kt<Ht;kt+=1)rn.push(St(255&Qt.charCodeAt(kt)));return rn.join("")};if(ft.open("GET",Be,!it),ft.overrideMimeType("text/plain; charset=x-user-defined"),!1===it&&(ft.onload=function(){pt(200===ft.status?Ze(this.responseText):void 0)}),ft.send(null),it&&200===ft.status)return Ze(ft.responseText)}(ge,ue,Me)}catch{}return Ne}(O,V,ie)},j.loadImageFile=j.loadFile}(ti.API),function(j){function O(){return(go.html2canvas?Promise.resolve(go.html2canvas):b.e("node_modules_html2canvas_dist_html2canvas_js").then(b.t.bind(b,7239,23))).catch(function(Me){return Promise.reject(new Error("Could not load html2canvas: "+Me))}).then(function(Me){return Me.default?Me.default:Me})}function V(){return(go.DOMPurify?Promise.resolve(go.DOMPurify):b.e("node_modules_dompurify_dist_purify_js").then(b.t.bind(b,1973,23))).catch(function(Me){return Promise.reject(new Error("Could not load dompurify: "+Me))}).then(function(Me){return Me.default?Me.default:Me})}var ie=function(Me){var Ne=(0,T.A)(Me);return"undefined"===Ne?"undefined":"string"===Ne||Me instanceof String?"string":"number"===Ne||Me instanceof Number?"number":"function"===Ne||Me instanceof Function?"function":Me&&Me.constructor===Array?"array":Me&&1===Me.nodeType?"element":"object"===Ne?"object":"unknown"},ge=function(Me,Ne){var Be=document.createElement(Me);for(var it in Ne.className&&(Be.className=Ne.className),Ne.innerHTML&&Ne.dompurify&&(Be.innerHTML=Ne.dompurify.sanitize(Ne.innerHTML)),Ne.style)Be.style[it]=Ne.style[it];return Be},ue=function Me(Ne){var Be=Object.assign(Me.convert(Promise.resolve()),JSON.parse(JSON.stringify(Me.template))),it=Me.convert(Promise.resolve(),Be);return(it=it.setProgress(1,Me,1,[Me])).set(Ne)};(ue.prototype=Object.create(Promise.prototype)).constructor=ue,ue.convert=function(Me,Ne){return Me.__proto__=Ne||ue.prototype,Me},ue.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},ue.prototype.from=function(Me,Ne){return this.then(function(){switch(Ne=Ne||function(Be){switch(ie(Be)){case"string":return"string";case"element":return"canvas"===Be.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(Me)){case"string":return this.then(V).then(function(Be){return this.set({src:ge("div",{innerHTML:Me,dompurify:Be})})});case"element":return this.set({src:Me});case"canvas":return this.set({canvas:Me});case"img":return this.set({img:Me});default:return this.error("Unknown source type.")}})},ue.prototype.to=function(Me){switch(Me){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},ue.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var Me={position:"relative",display:"inline-block",width:("number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},Ne=function Be(it,pt){for(var ft=3===it.nodeType?document.createTextNode(it.nodeValue):it.cloneNode(!1),kt=it.firstChild;kt;kt=kt.nextSibling)!0!==pt&&1===kt.nodeType&&"SCRIPT"===kt.nodeName||ft.appendChild(Be(kt,pt));return 1===it.nodeType&&("CANVAS"===it.nodeName?(ft.width=it.width,ft.height=it.height,ft.getContext("2d").drawImage(it,0,0)):"TEXTAREA"!==it.nodeName&&"SELECT"!==it.nodeName||(ft.value=it.value),ft.addEventListener("load",function(){ft.scrollTop=it.scrollTop,ft.scrollLeft=it.scrollLeft},!0)),ft}(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===Ne.tagName&&(Me.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=ge("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=ge("div",{className:"html2pdf__container",style:Me}),this.prop.container.appendChild(Ne),this.prop.container.firstChild.appendChild(ge("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},ue.prototype.toCanvas=function(){return this.thenList([function(){return document.body.contains(this.prop.container)||this.toContainer()}]).then(O).then(function(Ne){var Be=Object.assign({},this.opt.html2canvas);return delete Be.onrendered,Ne(this.prop.container,Be)}).then(function(Ne){(this.opt.html2canvas.onrendered||function(){})(Ne),this.prop.canvas=Ne,document.body.removeChild(this.prop.overlay)})},ue.prototype.toContext2d=function(){return this.thenList([function(){return document.body.contains(this.prop.container)||this.toContainer()}]).then(O).then(function(Ne){var Be=this.opt.jsPDF,it=this.opt.fontFaces,pt="number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,ft=Object.assign({async:!0,allowTaint:!0,scale:pt,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete ft.onrendered,Be.context2d.autoPaging=void 0===this.opt.autoPaging||this.opt.autoPaging,Be.context2d.posX=this.opt.x,Be.context2d.posY=this.opt.y,Be.context2d.margin=this.opt.margin,Be.context2d.fontFaces=it,it)for(var kt=0;kt<it.length;++kt){var Ze=it[kt],Qt=Ze.src.find(function(Ht){return"truetype"===Ht.format});Qt&&Be.addFont(Qt.url,Ze.ref.name,Ze.ref.style)}return ft.windowHeight=ft.windowHeight||0,ft.windowHeight=0==ft.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):ft.windowHeight,Be.context2d.save(!0),Ne(this.prop.container,ft)}).then(function(Ne){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(Ne),this.prop.canvas=Ne,document.body.removeChild(this.prop.overlay)})},ue.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var Me=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=Me})},ue.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},ue.prototype.output=function(Me,Ne,Be){return"img"===(Be=Be||"pdf").toLowerCase()||"image"===Be.toLowerCase()?this.outputImg(Me,Ne):this.outputPdf(Me,Ne)},ue.prototype.outputPdf=function(Me,Ne){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(Me,Ne)})},ue.prototype.outputImg=function(Me){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(Me){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+Me+'" is not supported.'}})},ue.prototype.save=function(Me){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(Me?{filename:Me}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},ue.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},ue.prototype.set=function(Me){if("object"!==ie(Me))return this;var Ne=Object.keys(Me||{}).map(function(Be){if(Be in ue.template.prop)return function(){this.prop[Be]=Me[Be]};switch(Be){case"margin":return this.setMargin.bind(this,Me.margin);case"jsPDF":return function(){return this.opt.jsPDF=Me.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,Me.pageSize);default:return function(){this.opt[Be]=Me[Be]}}},this);return this.then(function(){return this.thenList(Ne)})},ue.prototype.get=function(Me,Ne){return this.then(function(){var Be=Me in ue.template.prop?this.prop[Me]:this.opt[Me];return Ne?Ne(Be):Be})},ue.prototype.setMargin=function(Me){return this.then(function(){switch(ie(Me)){case"number":Me=[Me,Me,Me,Me];case"array":if(2===Me.length&&(Me=[Me[0],Me[1],Me[0],Me[1]]),4===Me.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=Me}).then(this.setPageSize)},ue.prototype.setPageSize=function(Me){function Ne(Be,it){return Math.floor(Be*it/72*96)}return this.then(function(){(Me=Me||ti.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(Me.inner={width:Me.width-this.opt.margin[1]-this.opt.margin[3],height:Me.height-this.opt.margin[0]-this.opt.margin[2]},Me.inner.px={width:Ne(Me.inner.width,Me.k),height:Ne(Me.inner.height,Me.k)},Me.inner.ratio=Me.inner.height/Me.inner.width),this.prop.pageSize=Me})},ue.prototype.setProgress=function(Me,Ne,Be,it){return null!=Me&&(this.progress.val=Me),null!=Ne&&(this.progress.state=Ne),null!=Be&&(this.progress.n=Be),null!=it&&(this.progress.stack=it),this.progress.ratio=this.progress.val/this.progress.state,this},ue.prototype.updateProgress=function(Me,Ne,Be,it){return this.setProgress(Me?this.progress.val+Me:null,Ne||null,Be?this.progress.n+Be:null,it?this.progress.stack.concat(it):null)},ue.prototype.then=function(Me,Ne){var Be=this;return this.thenCore(Me,Ne,function(it,pt){return Be.updateProgress(null,null,1,[it]),Promise.prototype.then.call(this,function(ft){return Be.updateProgress(null,it),ft}).then(it,pt).then(function(ft){return Be.updateProgress(1),ft})})},ue.prototype.thenCore=function(Me,Ne,Be){Be=Be||Promise.prototype.then,Me&&(Me=Me.bind(this)),Ne&&(Ne=Ne.bind(this));var it=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?this:ue.convert(Object.assign({},this),Promise.prototype),pt=Be.call(it,Me,Ne);return ue.convert(pt,this.__proto__)},ue.prototype.thenExternal=function(Me,Ne){return Promise.prototype.then.call(this,Me,Ne)},ue.prototype.thenList=function(Me){var Ne=this;return Me.forEach(function(Be){Ne=Ne.thenCore(Be)}),Ne},ue.prototype.catch=function(Me){Me&&(Me=Me.bind(this));var Ne=Promise.prototype.catch.call(this,Me);return ue.convert(Ne,this)},ue.prototype.catchExternal=function(Me){return Promise.prototype.catch.call(this,Me)},ue.prototype.error=function(Me){return this.then(function(){throw new Error(Me)})},ue.prototype.using=ue.prototype.set,ue.prototype.saveAs=ue.prototype.save,ue.prototype.export=ue.prototype.output,ue.prototype.run=ue.prototype.then,ti.getPageSize=function(Me,Ne,Be){if("object"===(0,T.A)(Me)){var it=Me;Me=it.orientation,Ne=it.unit||Ne,Be=it.format||Be}Ne=Ne||"mm",Be=Be||"a4",Me=(""+(Me||"P")).toLowerCase();var pt,ft=(""+Be).toLowerCase(),kt={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(Ne){case"pt":pt=1;break;case"mm":pt=72/25.4;break;case"cm":pt=72/2.54;break;case"in":pt=72;break;case"px":pt=.75;break;case"pc":case"em":pt=12;break;case"ex":pt=6;break;default:throw"Invalid unit: "+Ne}var Ze,Qt=0,Ht=0;if(kt.hasOwnProperty(ft))Qt=kt[ft][1]/pt,Ht=kt[ft][0]/pt;else try{Qt=Be[1],Ht=Be[0]}catch{throw new Error("Invalid format: "+Be)}if("p"===Me||"portrait"===Me)Me="p",Ht>Qt&&(Ze=Ht,Ht=Qt,Qt=Ze);else{if("l"!==Me&&"landscape"!==Me)throw"Invalid orientation: "+Me;Me="l",Qt>Ht&&(Ze=Ht,Ht=Qt,Qt=Ze)}return{width:Ht,height:Qt,unit:Ne,k:pt,orientation:Me}},j.html=function(Me,Ne){(Ne=Ne||{}).callback=Ne.callback||function(){},Ne.html2canvas=Ne.html2canvas||{},Ne.html2canvas.canvas=Ne.html2canvas.canvas||this.canvas,Ne.jsPDF=Ne.jsPDF||this,Ne.fontFaces=Ne.fontFaces?Ne.fontFaces.map(Ua):null;var Be=new ue(Ne);return Ne.worker?Be:Be.from(Me).doCallback()}}(ti.API),ti.API.addJS=function(j){return Ss=j,this.internal.events.subscribe("postPutResources",function(){No=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(No+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Er=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Ss+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){void 0!==No&&void 0!==Er&&this.internal.out("/Names <</JavaScript "+No+" 0 R>>")}),this},
/**
         * @license
         * Copyright (c) 2014 Steven Spungin (TwelveTone LLC)  steven@twelvetone.tv
         *
         * Licensed under the MIT License.
         * http://opensource.org/licenses/mit-license
         */
function(j){var O;j.events.push(["postPutResources",function(){var V=this,ie=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var ge=V.outline.render().split(/\r\n/),ue=0;ue<ge.length;ue++){var Me=ge[ue],Ne=ie.exec(Me);null!=Ne&&V.internal.newObjectDeferredBegin(Ne[1],!1),V.internal.write(Me)}if(this.outline.createNamedDestinations){var it=this.internal.pages.length,pt=[];for(ue=0;ue<it;ue++){var ft=V.internal.newObject();pt.push(ft);var kt=V.internal.getPageInfo(ue+1);V.internal.write("<< /D["+kt.objId+" 0 R /XYZ null null null]>> endobj")}var Ze=V.internal.newObject();for(V.internal.write("<< /Names [ "),ue=0;ue<pt.length;ue++)V.internal.write("(page_"+(ue+1)+")"+pt[ue]+" 0 R");V.internal.write(" ] >>","endobj"),O=V.internal.newObject(),V.internal.write("<< /Dests "+Ze+" 0 R"),V.internal.write(">>","endobj")}}]),j.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+O+" 0 R"))}]),j.events.push(["initialized",function(){var V=this;V.outline={createNamedDestinations:!1,root:{children:[]}},V.outline.add=function(ie,ge,ue){var Me={title:ge,options:ue,children:[]};return null==ie&&(ie=this.root),ie.children.push(Me),Me},V.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=V,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},V.outline.genIds_r=function(ie){ie.id=V.internal.newObjectDeferred();for(var ge=0;ge<ie.children.length;ge++)this.genIds_r(ie.children[ge])},V.outline.renderRoot=function(ie){this.objStart(ie),this.line("/Type /Outlines"),ie.children.length>0&&(this.line("/First "+this.makeRef(ie.children[0])),this.line("/Last "+this.makeRef(ie.children[ie.children.length-1]))),this.line("/Count "+this.count_r({count:0},ie)),this.objEnd()},V.outline.renderItems=function(ie){for(var ge=this.ctx.pdf.internal.getVerticalCoordinateString,ue=0;ue<ie.children.length;ue++){var Me=ie.children[ue];this.objStart(Me),this.line("/Title "+this.makeString(Me.title)),this.line("/Parent "+this.makeRef(ie)),ue>0&&this.line("/Prev "+this.makeRef(ie.children[ue-1])),ue<ie.children.length-1&&this.line("/Next "+this.makeRef(ie.children[ue+1])),Me.children.length>0&&(this.line("/First "+this.makeRef(Me.children[0])),this.line("/Last "+this.makeRef(Me.children[Me.children.length-1])));var Ne=this.count=this.count_r({count:0},Me);if(Ne>0&&this.line("/Count "+Ne),Me.options&&Me.options.pageNumber){var Be=V.internal.getPageInfo(Me.options.pageNumber);this.line("/Dest ["+Be.objId+" 0 R /XYZ 0 "+ge(0)+" 0]")}this.objEnd()}for(var it=0;it<ie.children.length;it++)this.renderItems(ie.children[it])},V.outline.line=function(ie){this.ctx.val+=ie+"\r\n"},V.outline.makeRef=function(ie){return ie.id+" 0 R"},V.outline.makeString=function(ie){return"("+V.internal.pdfEscape(ie)+")"},V.outline.objStart=function(ie){this.ctx.val+="\r\n"+ie.id+" 0 obj\r\n<<\r\n"},V.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"},V.outline.count_r=function(ie,ge){for(var ue=0;ue<ge.children.length;ue++)ie.count++,this.count_r(ie,ge.children[ue]);return ie.count}}])}(ti.API),
/**
         * @license
         *
         * Licensed under the MIT License.
         * http://opensource.org/licenses/mit-license
         */
function(j){var O=[192,193,194,195,196,197,198,199];j.processJPEG=function(V,ie,ge,ue,Me,Ne){var Be,it=this.decode.DCT_DECODE,pt=null;if("string"==typeof V||this.__addimage__.isArrayBuffer(V)||this.__addimage__.isArrayBufferView(V)){switch(V=this.__addimage__.isArrayBuffer(V=Me||V)?new Uint8Array(V):V,(Be=function(ft){for(var kt,Ze=256*ft.charCodeAt(4)+ft.charCodeAt(5),Qt=ft.length,Ht={width:0,height:0,numcomponents:1},rn=4;rn<Qt;rn+=2){if(-1!==O.indexOf(ft.charCodeAt((rn+=Ze)+1))){kt=256*ft.charCodeAt(rn+5)+ft.charCodeAt(rn+6),Ht={width:256*ft.charCodeAt(rn+7)+ft.charCodeAt(rn+8),height:kt,numcomponents:ft.charCodeAt(rn+9)};break}Ze=256*ft.charCodeAt(rn+2)+ft.charCodeAt(rn+3)}return Ht}(V=this.__addimage__.isArrayBufferView(V)?this.__addimage__.arrayBufferToBinaryString(V):V)).numcomponents){case 1:Ne=this.color_spaces.DEVICE_GRAY;break;case 4:Ne=this.color_spaces.DEVICE_CMYK;break;case 3:Ne=this.color_spaces.DEVICE_RGB}pt={data:V,width:Be.width,height:Be.height,colorSpace:Ne,bitsPerComponent:8,filter:it,index:ie,alias:ge}}return pt}}(ti.API);var Ol,cd,bl,Kl,Af,ba=function(){var j,O,V;function ie(ue){var Me,Be,it,pt,ft,kt,Ze,Qt,Ht,rn,St,nn,Vn;for(this.data=ue,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},ft=null;;){switch(Me=this.readUInt32(),Qt=function(){var qn,Ai;for(Ai=[],qn=0;qn<4;++qn)Ai.push(String.fromCharCode(this.data[this.pos++]));return Ai}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(Me);break;case"fcTL":ft&&this.animation.frames.push(ft),this.pos+=4,ft={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},pt=this.readUInt16(),it=this.readUInt16()||100,ft.delay=1e3*pt/it,ft.disposeOp=this.data[this.pos++],ft.blendOp=this.data[this.pos++],ft.data=[];break;case"IDAT":case"fdAT":for("fdAT"===Qt&&(this.pos+=4,Me-=4),ue=ft?.data||this.imgData,St=0;0<=Me?St<Me:St>Me;0<=Me?++St:--St)ue.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(Be=this.palette.length/3,this.transparency.indexed=this.read(Me),this.transparency.indexed.length>Be)throw new Error("More transparent colors than palette size");if((Ht=Be-this.transparency.indexed.length)>0)for(nn=0;0<=Ht?nn<Ht:nn>Ht;0<=Ht?++nn:--nn)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(Me)[0];break;case 2:this.transparency.rgb=this.read(Me)}break;case"tEXt":kt=(rn=this.read(Me)).indexOf(0),Ze=String.fromCharCode.apply(String,rn.slice(0,kt)),this.text[Ze]=String.fromCharCode.apply(String,rn.slice(kt+1));break;case"IEND":return ft&&this.animation.frames.push(ft),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=4===(Vn=this.colorType)||6===Vn,this.pixelBitlength=this.bits*(this.colors+(this.hasAlphaChannel?1:0)),this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=Me}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}ie.prototype.read=function(ue){var Me,Ne;for(Ne=[],Me=0;0<=ue?Me<ue:Me>ue;0<=ue?++Me:--Me)Ne.push(this.data[this.pos++]);return Ne},ie.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},ie.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},ie.prototype.decodePixels=function(ue){var Me=this.pixelBitlength/8,Ne=new Uint8Array(this.width*this.height*Me),Be=0,it=this;if(null==ue&&(ue=this.imgData),0===ue.length)return new Uint8Array(0);function pt(ft,kt,Ze,Qt){var Ht,rn,St,nn,Vn,qn,Ai,sr,bn,ui,ji,Ut,jt,Gn,Cn,Ei,vi,Mi,li,Pi,Qi=Math.ceil((it.width-ft)/Ze),no=Math.ceil((it.height-kt)/Qt),mt=it.width==Qi&&it.height==no;for(jt=Me*Qi,ji=mt?Ne:new Uint8Array(jt*no),qn=ue.length,Ut=0,rn=0;Ut<no&&Be<qn;){switch(ue[Be++]){case 0:for(nn=Ei=0;Ei<jt;nn=Ei+=1)ji[rn++]=ue[Be++];break;case 1:for(nn=vi=0;vi<jt;nn=vi+=1)Ht=ue[Be++],Vn=nn<Me?0:ji[rn-Me],ji[rn++]=(Ht+Vn)%256;break;case 2:for(nn=Mi=0;Mi<jt;nn=Mi+=1)Ht=ue[Be++],St=(nn-nn%Me)/Me,ji[rn++]=((Gn=Ut&&ji[(Ut-1)*jt+St*Me+nn%Me])+Ht)%256;break;case 3:for(nn=li=0;li<jt;nn=li+=1)Ht=ue[Be++],St=(nn-nn%Me)/Me,Vn=nn<Me?0:ji[rn-Me],Gn=Ut&&ji[(Ut-1)*jt+St*Me+nn%Me],ji[rn++]=(Ht+Math.floor((Vn+Gn)/2))%256;break;case 4:for(nn=Pi=0;Pi<jt;nn=Pi+=1)Ht=ue[Be++],St=(nn-nn%Me)/Me,0===Ut?Gn=Cn=0:(Gn=ji[(Ut-1)*jt+St*Me+nn%Me],Cn=St&&ji[(Ut-1)*jt+(St-1)*Me+nn%Me]),Ai=(Vn=nn<Me?0:ji[rn-Me])+Gn-Cn,sr=Math.abs(Ai-Vn),bn=Math.abs(Ai-Gn),ui=Math.abs(Ai-Cn),ji[rn++]=(Ht+(sr<=bn&&sr<=ui?Vn:bn<=ui?Gn:Cn))%256;break;default:throw new Error("Invalid filter algorithm: "+ue[Be-1])}if(!mt){var on=((kt+Ut*Qt)*it.width+ft)*Me,mn=Ut*jt;for(nn=0;nn<Qi;nn+=1){for(var Ln=0;Ln<Me;Ln+=1)Ne[on++]=ji[mn++];on+=(Ze-1)*Me}}Ut++}}return ue=uu(ue),1==it.interlaceMethod?(pt(0,0,8,8),pt(4,0,8,8),pt(0,4,4,8),pt(2,0,4,4),pt(0,2,2,4),pt(1,0,2,2),pt(0,1,1,2)):pt(0,0,1,1),Ne},ie.prototype.decodePalette=function(){var ue,Me,Ne,Be,it,pt,ft,kt,Ze;for(Ne=this.palette,pt=this.transparency.indexed||[],it=new Uint8Array((pt.length||0)+Ne.length),Be=0,ue=0,Me=ft=0,kt=Ne.length;ft<kt;Me=ft+=3)it[Be++]=Ne[Me],it[Be++]=Ne[Me+1],it[Be++]=Ne[Me+2],it[Be++]=null!=(Ze=pt[ue++])?Ze:255;return it},ie.prototype.copyToImageData=function(ue,Me){var Ne,Be,it,pt,ft,kt,Ze,Qt,Ht,rn,St;if(Be=this.colors,Ht=null,Ne=this.hasAlphaChannel,this.palette.length&&(Ht=null!=(St=this._decodedPalette)?St:this._decodedPalette=this.decodePalette(),Be=4,Ne=!0),Qt=(it=ue.data||ue).length,ft=Ht||Me,pt=kt=0,1===Be)for(;pt<Qt;)Ze=Ht?4*Me[pt/4]:kt,rn=ft[Ze++],it[pt++]=rn,it[pt++]=rn,it[pt++]=rn,it[pt++]=Ne?ft[Ze++]:255,kt=Ze;else for(;pt<Qt;)Ze=Ht?4*Me[pt/4]:kt,it[pt++]=ft[Ze++],it[pt++]=ft[Ze++],it[pt++]=ft[Ze++],it[pt++]=Ne?ft[Ze++]:255,kt=Ze},ie.prototype.decode=function(){var ue;return ue=new Uint8Array(this.width*this.height*4),this.copyToImageData(ue,this.decodePixels()),ue};var ge=function(){if("[object Window]"===Object.prototype.toString.call(go)){try{O=go.document.createElement("canvas"),V=O.getContext("2d")}catch{return!1}return!0}return!1};return ge(),j=function(ue){var Me;if(!0===ge())return V.width=ue.width,V.height=ue.height,V.clearRect(0,0,ue.width,ue.height),V.putImageData(ue,0,0),(Me=new Image).src=O.toDataURL(),Me;throw new Error("This method requires a Browser with Canvas-capability.")},ie.prototype.decodeFrames=function(ue){var Me,Ne,Be,it,pt,ft,kt,Ze;if(this.animation){for(Ze=[],Ne=pt=0,ft=(kt=this.animation.frames).length;pt<ft;Ne=++pt)Be=ue.createImageData((Me=kt[Ne]).width,Me.height),it=this.decodePixels(new Uint8Array(Me.data)),this.copyToImageData(Be,it),Me.imageData=Be,Ze.push(Me.image=j(Be));return Ze}},ie.prototype.renderFrame=function(ue,Me){var Ne,Be,it;return Ne=(Be=this.animation.frames)[Me],it=Be[Me-1],0===Me&&ue.clearRect(0,0,this.width,this.height),1===it?.disposeOp?ue.clearRect(it.xOffset,it.yOffset,it.width,it.height):2===it?.disposeOp&&ue.putImageData(it.imageData,it.xOffset,it.yOffset),0===Ne.blendOp&&ue.clearRect(Ne.xOffset,Ne.yOffset,Ne.width,Ne.height),ue.drawImage(Ne.image,Ne.xOffset,Ne.yOffset)},ie.prototype.animate=function(ue){var Me,Ne,Be,it,pt,ft,kt=this;return Ne=0,it=(ft=this.animation).numFrames,Be=ft.frames,pt=ft.numPlays,(Me=function(){var Ze,Qt;if(Ze=Ne++%it,Qt=Be[Ze],kt.renderFrame(ue,Ze),it>1&&Ne/it<pt)return kt.animation._timeout=setTimeout(Me,Qt.delay)})()},ie.prototype.stopAnimation=function(){var ue;return clearTimeout(null!=(ue=this.animation)?ue._timeout:void 0)},ie.prototype.render=function(ue){var Me,Ne;return ue._png&&ue._png.stopAnimation(),ue._png=this,ue.width=this.width,ue.height=this.height,Me=ue.getContext("2d"),this.animation?(this.decodeFrames(Me),this.animate(Me)):(Ne=Me.createImageData(this.width,this.height),this.copyToImageData(Ne,this.decodePixels()),Me.putImageData(Ne,0,0))},ie}();function Fl(j){var O=0;if(71!==j[O++]||73!==j[O++]||70!==j[O++]||56!==j[O++]||56!=(j[O++]+1&253)||97!==j[O++])throw new Error("Invalid GIF 87a/89a header.");var V=j[O++]|j[O++]<<8,ie=j[O++]|j[O++]<<8,ge=j[O++],Me=1<<1+(7&ge);O++,O++;var Ne=null,Be=null;ge>>7&&(Ne=O,Be=Me,O+=3*Me);var it=!0,pt=[],ft=0,kt=null,Ze=0,Qt=null;for(this.width=V,this.height=ie;it&&O<j.length;)switch(j[O++]){case 33:switch(j[O++]){case 255:if(11!==j[O]||78==j[O+1]&&69==j[O+2]&&84==j[O+3]&&83==j[O+4]&&67==j[O+5]&&65==j[O+6]&&80==j[O+7]&&69==j[O+8]&&50==j[O+9]&&46==j[O+10]&&48==j[O+11]&&3==j[O+12]&&1==j[O+13]&&0==j[O+16])O+=14,Qt=j[O++]|j[O++]<<8,O++;else for(O+=12;;){if(!((Ut=j[O++])>=0))throw Error("Invalid block size");if(0===Ut)break;O+=Ut}break;case 249:if(4!==j[O++]||0!==j[O+4])throw new Error("Invalid graphics extension block.");var Ht=j[O++];ft=j[O++]|j[O++]<<8,kt=j[O++],!(1&Ht)&&(kt=null),Ze=Ht>>2&7,O++;break;case 254:for(;;){if(!((Ut=j[O++])>=0))throw Error("Invalid block size");if(0===Ut)break;O+=Ut}break;default:throw new Error("Unknown graphic control label: 0x"+j[O-1].toString(16))}break;case 44:var rn=j[O++]|j[O++]<<8,St=j[O++]|j[O++]<<8,nn=j[O++]|j[O++]<<8,Vn=j[O++]|j[O++]<<8,qn=j[O++],Ai=qn>>6&1,sr=1<<1+(7&qn),si=Ne,bn=Be,ui=!1;qn>>7&&(ui=!0,si=O,bn=sr,O+=3*sr);var ji=O;for(O++;;){var Ut;if(!((Ut=j[O++])>=0))throw Error("Invalid block size");if(0===Ut)break;O+=Ut}pt.push({x:rn,y:St,width:nn,height:Vn,has_local_palette:ui,palette_offset:si,palette_size:bn,data_offset:ji,data_length:O-ji,transparent_index:kt,interlaced:!!Ai,delay:ft,disposal:Ze});break;case 59:it=!1;break;default:throw new Error("Unknown gif block: 0x"+j[O-1].toString(16))}this.numFrames=function(){return pt.length},this.loopCount=function(){return Qt},this.frameInfo=function(jt){if(jt<0||jt>=pt.length)throw new Error("Frame index out of range.");return pt[jt]},this.decodeAndBlitFrameBGRA=function(jt,Gn){var Cn=this.frameInfo(jt),Ei=Cn.width*Cn.height,vi=new Uint8Array(Ei);Iu(j,Cn.data_offset,vi,Ei);var Mi=Cn.palette_offset,li=Cn.transparent_index;null===li&&(li=256);var Pi=Cn.width,Qi=V-Pi,no=Pi,mt=4*(Cn.y*V+Cn.x),on=4*((Cn.y+Cn.height)*V+Cn.x),mn=mt,Ln=4*Qi;!0===Cn.interlaced&&(Ln+=4*V*7);for(var zn=8,pi=0,_i=vi.length;pi<_i;++pi){var yi=vi[pi];if(0===no&&(no=Pi,(mn+=Ln)>=on&&(Ln=4*Qi+4*V*(zn-1),mn=mt+(Pi+Qi)*(zn<<1),zn>>=1)),yi===li)mn+=4;else{var Hr=j[Mi+3*yi],kr=j[Mi+3*yi+1];Gn[mn++]=j[Mi+3*yi+2],Gn[mn++]=kr,Gn[mn++]=Hr,Gn[mn++]=255}--no}},this.decodeAndBlitFrameRGBA=function(jt,Gn){var Cn=this.frameInfo(jt),Ei=Cn.width*Cn.height,vi=new Uint8Array(Ei);Iu(j,Cn.data_offset,vi,Ei);var Mi=Cn.palette_offset,li=Cn.transparent_index;null===li&&(li=256);var Pi=Cn.width,Qi=V-Pi,no=Pi,mt=4*(Cn.y*V+Cn.x),on=4*((Cn.y+Cn.height)*V+Cn.x),mn=mt,Ln=4*Qi;!0===Cn.interlaced&&(Ln+=4*V*7);for(var zn=8,pi=0,_i=vi.length;pi<_i;++pi){var yi=vi[pi];if(0===no&&(no=Pi,(mn+=Ln)>=on&&(Ln=4*Qi+4*V*(zn-1),mn=mt+(Pi+Qi)*(zn<<1),zn>>=1)),yi===li)mn+=4;else{var kr=j[Mi+3*yi+1],fo=j[Mi+3*yi+2];Gn[mn++]=j[Mi+3*yi],Gn[mn++]=kr,Gn[mn++]=fo,Gn[mn++]=255}--no}}}function Iu(j,O,V,ie){for(var ge=j[O++],ue=1<<ge,Me=ue+1,Ne=Me+1,Be=ge+1,it=(1<<Be)-1,pt=0,ft=0,kt=0,Ze=j[O++],Qt=new Int32Array(4096),Ht=null;;){for(;pt<16&&0!==Ze;)ft|=j[O++]<<pt,pt+=8,1===Ze?Ze=j[O++]:--Ze;if(pt<Be)break;var rn=ft&it;if(ft>>=Be,pt-=Be,rn!==ue){if(rn===Me)break;for(var St=rn<Ne?rn:Ht,nn=0,Vn=St;Vn>ue;)Vn=Qt[Vn]>>8,++nn;var qn=Vn;if(kt+nn+(St!==rn?1:0)>ie)return void Bs.log("Warning, gif stream longer than expected.");V[kt++]=qn;var Ai=kt+=nn;for(St!==rn&&(V[kt++]=qn),Vn=St;nn--;)V[--Ai]=255&(Vn=Qt[Vn]),Vn>>=8;null!==Ht&&Ne<4096&&(Qt[Ne++]=Ht<<8|qn,Ne>=it+1&&Be<12&&(++Be,it=it<<1|1)),Ht=rn}else Ne=Me+1,it=(1<<(Be=ge+1))-1,Ht=null}return kt!==ie&&Bs.log("Warning, gif stream shorter than expected."),V}function Ld(j){var O,V,ie,ge,ue,Me=Math.floor,Ne=new Array(64),Be=new Array(64),it=new Array(64),pt=new Array(64),ft=new Array(65535),kt=new Array(65535),Ze=new Array(64),Qt=new Array(64),Ht=[],rn=0,St=7,nn=new Array(64),Vn=new Array(64),qn=new Array(64),Ai=new Array(256),sr=new Array(2048),si=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],bn=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],ui=[0,1,2,3,4,5,6,7,8,9,10,11],ji=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],Ut=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],jt=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Gn=[0,1,2,3,4,5,6,7,8,9,10,11],Cn=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],Ei=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function vi(mt,on){for(var mn=0,Ln=0,zn=new Array,pi=1;pi<=16;pi++){for(var _i=1;_i<=mt[pi];_i++)zn[on[Ln]]=[],zn[on[Ln]][0]=mn,zn[on[Ln]][1]=pi,Ln++,mn++;mn*=2}return zn}function Mi(mt){for(var on=mt[0],mn=mt[1]-1;mn>=0;)on&1<<mn&&(rn|=1<<St),mn--,--St<0&&(255==rn?(li(255),li(0)):li(rn),St=7,rn=0)}function li(mt){Ht.push(mt)}function Pi(mt){li(mt>>8&255),li(255&mt)}function Qi(mt,on,mn,Ln,zn){for(var pi,_i=zn[0],yi=zn[240],Hr=function(Pr,ro){var hr,He,oe,ee,Te,Le,ot,gt,Lt,On,Yt=0;for(Lt=0;Lt<8;++Lt){var mr=(hr=Pr[Yt])+(gt=Pr[Yt+7]),Sr=hr-gt,Qo=(He=Pr[Yt+1])+(ot=Pr[Yt+6]),Ur=He-ot,Oo=(oe=Pr[Yt+2])+(Le=Pr[Yt+5]),ia=oe-Le,zs=(ee=Pr[Yt+3])+(Te=Pr[Yt+4]),ha=ee-Te,$a=mr+zs,Np=mr-zs,Gp=Qo+Oo,vc=Qo-Oo;Pr[Yt]=$a+Gp,Pr[Yt+4]=$a-Gp;var Cs=.707106781*(vc+Np);Pr[Yt+2]=Np+Cs,Pr[Yt+6]=Np-Cs;var pl=.382683433*(($a=ha+ia)-(vc=Ur+Sr)),cm=.5411961*$a+pl,Mu=1.306562965*vc+pl,Bp=.707106781*(Gp=ia+Ur),Vp=Sr+Bp,xs=Sr-Bp;Pr[Yt+5]=xs+cm,Pr[Yt+3]=xs-cm,Pr[Yt+1]=Vp+Mu,Pr[Yt+7]=Vp-Mu,Yt+=8}for(Yt=0,Lt=0;Lt<8;++Lt){var jp=(hr=Pr[Yt])+(gt=Pr[Yt+56]),Hp=hr-gt,Nd=(He=Pr[Yt+8])+(ot=Pr[Yt+48]),Ql=He-ot,La=(oe=Pr[Yt+16])+(Le=Pr[Yt+40]),Xu=oe-Le,hl=(ee=Pr[Yt+24])+(Te=Pr[Yt+32]),Mf=ee-Te,$h=jp+hl,Yh=jp-hl,Ku=Nd+La,fh=Nd-La;Pr[Yt]=$h+Ku,Pr[Yt+32]=$h-Ku;var bu=.707106781*(fh+Yh);Pr[Yt+16]=Yh+bu,Pr[Yt+48]=Yh-bu;var Qu=.382683433*(($h=Mf+Xu)-(fh=Ql+Hp)),Gd=.5411961*$h+Qu,Zv=1.306562965*fh+Qu,op=.707106781*(Ku=Xu+Ql),um=Hp+op,dm=Hp-op;Pr[Yt+40]=dm+Gd,Pr[Yt+24]=dm-Gd,Pr[Yt+8]=um+Zv,Pr[Yt+56]=um-Zv,Yt++}for(Lt=0;Lt<64;++Lt)Ze[Lt]=(On=Pr[Lt]*ro[Lt])>0?On+.5|0:On-.5|0;return Ze}(mt,on),kr=0;kr<64;++kr)Qt[si[kr]]=Hr[kr];var fo=Qt[0]-mn;mn=Qt[0],0==fo?Mi(Ln[0]):(Mi(Ln[kt[pi=32767+fo]]),Mi(ft[pi]));for(var io=63;io>0&&0==Qt[io];)io--;if(0==io)return Mi(_i),mn;for(var As,Yi=1;Yi<=io;){for(var vn=Yi;0==Qt[Yi]&&Yi<=io;)++Yi;var Yn=Yi-vn;if(Yn>=16){As=Yn>>4;for(var fr=1;fr<=As;++fr)Mi(yi);Yn&=15}Mi(zn[(Yn<<4)+kt[pi=32767+Qt[Yi]]]),Mi(ft[pi]),Yi++}return 63!=io&&Mi(_i),mn}function no(mt){mt=Math.min(Math.max(mt,1),100),ue!=mt&&(function(on){for(var mn=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],Ln=0;Ln<64;Ln++){var zn=Me((mn[Ln]*on+50)/100);zn=Math.min(Math.max(zn,1),255),Ne[si[Ln]]=zn}for(var pi=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],_i=0;_i<64;_i++){var yi=Me((pi[_i]*on+50)/100);yi=Math.min(Math.max(yi,1),255),Be[si[_i]]=yi}for(var Hr=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],kr=0,fo=0;fo<8;fo++)for(var io=0;io<8;io++)it[kr]=1/(Ne[si[kr]]*Hr[fo]*Hr[io]*8),pt[kr]=1/(Be[si[kr]]*Hr[fo]*Hr[io]*8),kr++}(mt<50?Math.floor(5e3/mt):Math.floor(200-2*mt)),ue=mt)}this.encode=function(mt,on){var He,oe;on&&no(on),Ht=new Array,rn=0,St=7,Pi(65496),Pi(65504),Pi(16),li(74),li(70),li(73),li(70),li(0),li(1),li(1),li(0),Pi(1),Pi(1),li(0),li(0),function(){Pi(65499),Pi(132),li(0);for(var He=0;He<64;He++)li(Ne[He]);li(1);for(var oe=0;oe<64;oe++)li(Be[oe])}(),He=mt.width,oe=mt.height,Pi(65472),Pi(17),li(8),Pi(oe),Pi(He),li(3),li(1),li(17),li(0),li(2),li(17),li(1),li(3),li(17),li(1),function(){Pi(65476),Pi(418),li(0);for(var He=0;He<16;He++)li(bn[He+1]);for(var oe=0;oe<=11;oe++)li(ui[oe]);li(16);for(var ee=0;ee<16;ee++)li(ji[ee+1]);for(var Te=0;Te<=161;Te++)li(Ut[Te]);li(1);for(var Le=0;Le<16;Le++)li(jt[Le+1]);for(var ot=0;ot<=11;ot++)li(Gn[ot]);li(17);for(var gt=0;gt<16;gt++)li(Cn[gt+1]);for(var Lt=0;Lt<=161;Lt++)li(Ei[Lt])}(),Pi(65498),Pi(12),li(3),li(1),li(0),li(2),li(17),li(3),li(17),li(0),li(63),li(0);var mn=0,Ln=0,zn=0;rn=0,St=7,this.encode.displayName="_encode_";for(var pi,_i,yi,Hr,kr,fo,io,As,Yi,vn=mt.data,fr=mt.height,Pr=4*mt.width,ro=0;ro<fr;){for(pi=0;pi<Pr;){for(kr=Pr*ro+pi,io=-1,As=0,Yi=0;Yi<64;Yi++)fo=kr+(As=Yi>>3)*Pr+(io=4*(7&Yi)),ro+As>=fr&&(fo-=Pr*(ro+1+As-fr)),pi+io>=Pr&&(fo-=pi+io-Pr+4),_i=vn[fo++],yi=vn[fo++],Hr=vn[fo++],nn[Yi]=(sr[_i]+sr[yi+256|0]+sr[Hr+512|0]>>16)-128,Vn[Yi]=(sr[_i+768|0]+sr[yi+1024|0]+sr[Hr+1280|0]>>16)-128,qn[Yi]=(sr[_i+1280|0]+sr[yi+1536|0]+sr[Hr+1792|0]>>16)-128;mn=Qi(nn,it,mn,O,ie),Ln=Qi(Vn,pt,Ln,V,ge),zn=Qi(qn,pt,zn,V,ge),pi+=32}ro+=8}if(St>=0){var hr=[];hr[1]=St+1,hr[0]=(1<<St+1)-1,Mi(hr)}return Pi(65497),new Uint8Array(Ht)},j=j||50,function(){for(var mt=String.fromCharCode,on=0;on<256;on++)Ai[on]=mt(on)}(),O=vi(bn,ui),V=vi(jt,Gn),ie=vi(ji,Ut),ge=vi(Cn,Ei),function(){for(var mt=1,on=2,mn=1;mn<=15;mn++){for(var Ln=mt;Ln<on;Ln++)kt[32767+Ln]=mn,ft[32767+Ln]=[],ft[32767+Ln][1]=mn,ft[32767+Ln][0]=Ln;for(var zn=-(on-1);zn<=-mt;zn++)kt[32767+zn]=mn,ft[32767+zn]=[],ft[32767+zn][1]=mn,ft[32767+zn][0]=on-1+zn;mt<<=1,on<<=1}}(),function(){for(var mt=0;mt<256;mt++)sr[mt]=19595*mt,sr[mt+256|0]=38470*mt,sr[mt+512|0]=7471*mt+32768,sr[mt+768|0]=-11059*mt,sr[mt+1024|0]=-21709*mt,sr[mt+1280|0]=32768*mt+8421375,sr[mt+1536|0]=-27439*mt,sr[mt+1792|0]=-5329*mt}(),no(j)}function yu(j,O){if(this.pos=0,this.buffer=j,this.datav=new DataView(j.buffer),this.is_with_alpha=!!O,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function Au(j){function O(bn){if(!bn)throw Error("assert :P")}function V(bn,ui,ji){for(var Ut=0;4>Ut;Ut++)if(bn[ui+Ut]!=ji.charCodeAt(Ut))return!0;return!1}function ie(bn,ui,ji,Ut,jt){for(var Gn=0;Gn<jt;Gn++)bn[ui+Gn]=ji[Ut+Gn]}function ge(bn,ui,ji,Ut){for(var jt=0;jt<Ut;jt++)bn[ui+jt]=ji}function ue(bn){return new Int32Array(bn)}function Me(bn,ui){for(var ji=[],Ut=0;Ut<bn;Ut++)ji.push(new ui);return ji}function Ne(bn,ui){var ji=[];return function Ut(jt,Gn,Cn){for(var Ei=Cn[Gn],vi=0;vi<Ei&&(jt.push(Cn.length>Gn+1?[]:new ui),!(Cn.length<Gn+1));vi++)Ut(jt[vi],Gn+1,Cn)}(ji,0,bn),ji}var Be=function(){var bn=this;function ui(B,ae){for(var Pe=1<<ae-1>>>0;B&Pe;)Pe>>>=1;return Pe?(B&Pe-1)+Pe:B}function ji(B,ae,Pe,Ke,_t){O(!(Ke%Pe));do{B[ae+(Ke-=Pe)]=_t}while(0<Ke)}function Ut(B,ae,Pe,Ke,_t){if(O(2328>=_t),512>=_t)var Ct=ue(512);else if(null==(Ct=ue(_t)))return 0;return function(Tt,Rt,Pt,Xt,jn,Qn){var di,Xn,gr=Rt,mi=1<<Pt,Bn=ue(16),Un=ue(16);for(O(0!=jn),O(null!=Xt),O(null!=Tt),O(0<Pt),Xn=0;Xn<jn;++Xn){if(15<Xt[Xn])return 0;++Bn[Xt[Xn]]}if(Bn[0]==jn)return 0;for(Un[1]=0,di=1;15>di;++di){if(Bn[di]>1<<di)return 0;Un[di+1]=Un[di]+Bn[di]}for(Xn=0;Xn<jn;++Xn)di=Xt[Xn],0<Xt[Xn]&&(Qn[Un[di]++]=Xn);if(1==Un[15])return(Xt=new jt).g=0,Xt.value=Qn[0],ji(Tt,gr,1,mi,Xt),mi;var Fi,_r=-1,ar=mi-1,wo=0,Yr=1,ys=1,To=1<<Pt;for(Xn=0,di=1,jn=2;di<=Pt;++di,jn<<=1){if(Yr+=ys<<=1,0>(ys-=Bn[di]))return 0;for(;0<Bn[di];--Bn[di])(Xt=new jt).g=di,Xt.value=Qn[Xn++],ji(Tt,gr+wo,jn,To,Xt),wo=ui(wo,di)}for(di=Pt+1,jn=2;15>=di;++di,jn<<=1){if(Yr+=ys<<=1,0>(ys-=Bn[di]))return 0;for(;0<Bn[di];--Bn[di]){if(Xt=new jt,(wo&ar)!=_r){for(gr+=To,Fi=1<<(_r=di)-Pt;15>_r&&!(0>=(Fi-=Bn[_r]));)++_r,Fi<<=1;mi+=To=1<<(Fi=_r-Pt),Tt[Rt+(_r=wo&ar)].g=Fi+Pt,Tt[Rt+_r].value=gr-Rt-_r}Xt.g=di-Pt,Xt.value=Qn[Xn++],ji(Tt,gr+(wo>>Pt),jn,To,Xt),wo=ui(wo,di)}}return Yr!=2*Un[15]-1?0:mi}(B,ae,Pe,Ke,_t,Ct)}function jt(){this.value=this.g=0}function Gn(){this.value=this.g=0}function Cn(){this.G=Me(5,jt),this.H=ue(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=Me(Bd,Gn)}function Ei(B,ae,Pe,Ke){O(null!=B),O(null!=ae),O(2147483648>Ke),B.Ca=254,B.I=0,B.b=-8,B.Ka=0,B.oa=ae,B.pa=Pe,B.Jd=ae,B.Yc=Pe+Ke,B.Zc=4<=Ke?Pe+Ke-4+1:Pe,pi(B)}function vi(B,ae){for(var Pe=0;0<ae--;)Pe|=yi(B,128)<<ae;return Pe}function Mi(B,ae){var Pe=vi(B,ae);return _i(B)?-Pe:Pe}function li(B,ae,Pe,Ke){var _t,Ct=0;for(O(null!=B),O(null!=ae),O(4294967288>Ke),B.Sb=Ke,B.Ra=0,B.u=0,B.h=0,4<Ke&&(Ke=4),_t=0;_t<Ke;++_t)Ct+=ae[Pe+_t]<<8*_t;B.Ra=Ct,B.bb=Ke,B.oa=ae,B.pa=Pe}function Pi(B){for(;8<=B.u&&B.bb<B.Sb;)B.Ra>>>=8,B.Ra+=B.oa[B.pa+B.bb]<<Fg-8>>>0,++B.bb,B.u-=8;mn(B)&&(B.h=1,B.u=0)}function Qi(B,ae){if(O(0<=ae),!B.h&&ae<=Et){var Pe=on(B)&zp[ae];return B.u+=ae,Pi(B),Pe}return B.h=1,B.u=0}function no(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function mt(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function on(B){return B.Ra>>>(B.u&Fg-1)>>>0}function mn(B){return O(B.bb<=B.Sb),B.h||B.bb==B.Sb&&B.u>Fg}function Ln(B,ae){B.u=ae,B.h=mn(B)}function zn(B){B.u>=lC&&(O(B.u>=lC),Pi(B))}function pi(B){O(null!=B&&null!=B.oa),B.pa<B.Zc?(B.I=(B.oa[B.pa++]|B.I<<8)>>>0,B.b+=8):(O(null!=B&&null!=B.oa),B.pa<B.Yc?(B.b+=8,B.I=B.oa[B.pa++]|B.I<<8):B.Ka?B.b=0:(B.I<<=8,B.b+=8,B.Ka=1))}function _i(B){return vi(B,1)}function yi(B,ae){var Pe=B.Ca;0>B.b&&pi(B);var Ke=B.b,_t=Pe*ae>>>8,Ct=(B.I>>>Ke>_t)+0;for(Ct?(Pe-=_t,B.I-=_t+1<<Ke>>>0):Pe=_t+1,Ke=Pe,_t=0;256<=Ke;)_t+=8,Ke>>=8;return B.b-=Ke=7^_t+qp[Ke],B.Ca=(Pe<<Ke)-1,Ct}function Hr(B,ae,Pe){B[ae+0]=Pe>>24&255,B[ae+1]=Pe>>16&255,B[ae+2]=Pe>>8&255,B[ae+3]=255&Pe}function kr(B,ae){return B[ae+0]|B[ae+1]<<8}function fo(B,ae){return kr(B,ae)|B[ae+2]<<16}function io(B,ae){return kr(B,ae)|kr(B,ae+2)<<16}function As(B,ae){var Pe=1<<ae;return O(null!=B),O(0<ae),B.X=ue(Pe),null==B.X?0:(B.Mb=32-ae,B.Xa=ae,1)}function Yi(B,ae){O(null!=B),O(null!=ae),O(B.Xa==ae.Xa),ie(ae.X,0,B.X,0,1<<ae.Xa)}function vn(){this.X=[],this.Xa=this.Mb=0}function Yn(B,ae,Pe,Ke){O(null!=Pe),O(null!=Ke);var _t=Pe[0],Ct=Ke[0];return 0==_t&&(_t=(B*Ct+ae/2)/ae),0==Ct&&(Ct=(ae*_t+B/2)/B),0>=_t||0>=Ct?0:(Pe[0]=_t,Ke[0]=Ct,1)}function fr(B,ae){return B+(1<<ae)-1>>>ae}function Pr(B,ae){return((4278255360&B)+(4278255360&ae)>>>0&4278255360)+((16711935&B)+(16711935&ae)>>>0&16711935)>>>0}function ro(B,ae){bn[ae]=function(Pe,Ke,_t,Ct,Tt,Rt,Pt){var Xt;for(Xt=0;Xt<Tt;++Xt){var jn=bn[B](Rt[Pt+Xt-1],_t,Ct+Xt);Rt[Pt+Xt]=Pr(Pe[Ke+Xt],jn)}}}function hr(){this.ud=this.hd=this.jd=0}function He(B,ae){return((4278124286&(B^ae))>>>1)+(B&ae)>>>0}function oe(B){return 0<=B&&256>B?B:0>B?0:255<B?255:void 0}function ee(B,ae){return oe(B+(B-ae+.5>>1))}function Te(B,ae,Pe){return Math.abs(ae-Pe)-Math.abs(B-Pe)}function Le(B,ae,Pe,Ke,_t,Ct,Tt){for(Ke=Ct[Tt-1],Pe=0;Pe<_t;++Pe)Ct[Tt+Pe]=Ke=Pr(B[ae+Pe],Ke)}function ot(B,ae,Pe,Ke,_t){var Ct;for(Ct=0;Ct<Pe;++Ct){var Tt=B[ae+Ct],Rt=Tt>>8&255,Pt=16711935&(Pt=(Pt=16711935&Tt)+((Rt<<16)+Rt));Ke[_t+Ct]=(4278255360&Tt)+Pt>>>0}}function gt(B,ae){ae.jd=255&B,ae.hd=B>>8&255,ae.ud=B>>16&255}function Lt(B,ae,Pe,Ke,_t,Ct){var Tt;for(Tt=0;Tt<Ke;++Tt){var Rt=ae[Pe+Tt],Pt=Rt>>>8,Xt=Rt,jn=255&(jn=(jn=Rt>>>16)+((B.jd<<24>>24)*(Pt<<24>>24)>>>5));Xt=255&(Xt=(Xt+=(B.hd<<24>>24)*(Pt<<24>>24)>>>5)+((B.ud<<24>>24)*(jn<<24>>24)>>>5)),_t[Ct+Tt]=(4278255360&Rt)+(jn<<16)+Xt}}function On(B,ae,Pe,Ke,_t){bn[ae]=function(Ct,Tt,Rt,Pt,Xt,jn,Qn,di,Xn){for(Pt=Qn;Pt<di;++Pt)for(Qn=0;Qn<Xn;++Qn)Xt[jn++]=_t(Rt[Ke(Ct[Tt++])])},bn[B]=function(Ct,Tt,Rt,Pt,Xt,jn,Qn){var di=8>>Ct.b,Xn=Ct.Ea,gr=Ct.K[0],mi=Ct.w;if(8>di)for(Ct=(1<<Ct.b)-1,mi=(1<<di)-1;Tt<Rt;++Tt){var Bn,Un=0;for(Bn=0;Bn<Xn;++Bn)Bn&Ct||(Un=Ke(Pt[Xt++])),jn[Qn++]=_t(gr[Un&mi]),Un>>=di}else bn["VP8LMapColor"+Pe](Pt,Xt,gr,mi,jn,Qn,Tt,Rt,Xn)}}function Yt(B,ae,Pe,Ke,_t){for(Pe=ae+Pe;ae<Pe;){var Ct=B[ae++];Ke[_t++]=Ct>>16&255,Ke[_t++]=Ct>>8&255,Ke[_t++]=255&Ct}}function mr(B,ae,Pe,Ke,_t){for(Pe=ae+Pe;ae<Pe;){var Ct=B[ae++];Ke[_t++]=Ct>>16&255,Ke[_t++]=Ct>>8&255,Ke[_t++]=255&Ct,Ke[_t++]=Ct>>24&255}}function Sr(B,ae,Pe,Ke,_t){for(Pe=ae+Pe;ae<Pe;){var Ct=(Tt=B[ae++])>>16&240|Tt>>12&15,Tt=240&Tt|Tt>>28&15;Ke[_t++]=Ct,Ke[_t++]=Tt}}function Qo(B,ae,Pe,Ke,_t){for(Pe=ae+Pe;ae<Pe;){var Ct=(Tt=B[ae++])>>16&248|Tt>>13&7,Tt=Tt>>5&224|Tt>>3&31;Ke[_t++]=Ct,Ke[_t++]=Tt}}function Ur(B,ae,Pe,Ke,_t){for(Pe=ae+Pe;ae<Pe;){var Ct=B[ae++];Ke[_t++]=255&Ct,Ke[_t++]=Ct>>8&255,Ke[_t++]=Ct>>16&255}}function Oo(B,ae,Pe,Ke,_t,Ct){if(0==Ct)for(Pe=ae+Pe;ae<Pe;)Hr(Ke,((Ct=B[ae++])[0]>>24|Ct[1]>>8&65280|Ct[2]<<8&16711680|Ct[3]<<24)>>>0),_t+=32;else ie(Ke,_t,B,ae,Pe)}function ia(B,ae){bn[ae][0]=bn[B+"0"],bn[ae][1]=bn[B+"1"],bn[ae][2]=bn[B+"2"],bn[ae][3]=bn[B+"3"],bn[ae][4]=bn[B+"4"],bn[ae][5]=bn[B+"5"],bn[ae][6]=bn[B+"6"],bn[ae][7]=bn[B+"7"],bn[ae][8]=bn[B+"8"],bn[ae][9]=bn[B+"9"],bn[ae][10]=bn[B+"10"],bn[ae][11]=bn[B+"11"],bn[ae][12]=bn[B+"12"],bn[ae][13]=bn[B+"13"],bn[ae][14]=bn[B+"0"],bn[ae][15]=bn[B+"0"]}function zs(B){return B==Hg||B==b1||B==C1||B==zm}function ha(){this.eb=[],this.size=this.A=this.fb=0}function $a(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function Np(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new ha,this.f.kb=new $a,this.sd=null}function Gp(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function vc(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function Cs(B){return alert("todo:WebPSamplerProcessPlane"),B.T}function pl(B,ae){var Pe=B.T,Ke=ae.ba.f.RGBA,_t=Ke.eb,Ct=Ke.fb+B.ka*Ke.A,Tt=eu[ae.ba.S],Rt=B.y,Pt=B.O,Xt=B.f,jn=B.N,Qn=B.ea,di=B.W,Xn=ae.cc,gr=ae.dc,mi=ae.Mc,Bn=ae.Nc,Un=B.ka,Fi=B.ka+B.T,_r=B.U,ar=_r+1>>1;for(0==Un?Tt(Rt,Pt,null,null,Xt,jn,Qn,di,Xt,jn,Qn,di,_t,Ct,null,null,_r):(Tt(ae.ec,ae.fc,Rt,Pt,Xn,gr,mi,Bn,Xt,jn,Qn,di,_t,Ct-Ke.A,_t,Ct,_r),++Pe);Un+2<Fi;Un+=2)Tt(Rt,(Pt+=2*B.fa)-B.fa,Rt,Pt,Xn=Xt,gr=jn,mi=Qn,Bn=di,Xt,jn+=B.Rc,Qn,di+=B.Rc,_t,(Ct+=2*Ke.A)-Ke.A,_t,Ct,_r);return Pt+=B.fa,B.j+Fi<B.o?(ie(ae.ec,ae.fc,Rt,Pt,_r),ie(ae.cc,ae.dc,Xt,jn,ar),ie(ae.Mc,ae.Nc,Qn,di,ar),Pe--):1&Fi||Tt(Rt,Pt,null,null,Xt,jn,Qn,di,Xt,jn,Qn,di,_t,Ct+Ke.A,null,null,_r),Pe}function cm(B,ae,Pe){var Ke=B.F,_t=[B.J];if(null!=Ke){var Ct=B.U,Tt=ae.ba.S,Rt=Tt==y1||Tt==C1;ae=ae.ba.f.RGBA;var Pt=[0],Xt=B.ka;Pt[0]=B.T,B.Kb&&(0==Xt?--Pt[0]:(--Xt,_t[0]-=B.width),B.j+B.ka+B.T==B.o&&(Pt[0]=B.o-B.j-Xt));var jn=ae.eb;B=lc(Ke,_t[0],B.width,Ct,Pt,jn,(Xt=ae.fb+Xt*ae.A)+(Rt?0:3),ae.A),O(Pe==Pt),B&&zs(Tt)&&Vd(jn,Xt,Rt,Ct,Pt,ae.A)}return 0}function Mu(B){var ae=B.ma,Pe=ae.ba.S,Ke=11>Pe,_t=Pe==d_||Pe==Vg||Pe==y1||Pe==p_||12==Pe||zs(Pe);if(ae.memory=null,ae.Ib=null,ae.Jb=null,ae.Nd=null,!Zi(ae.Oa,B,_t?11:12))return 0;if(_t&&zs(Pe)&&Nr(),B.da)alert("todo:use_scaling");else{if(Ke){if(ae.Ib=Cs,B.Kb){if(ae.memory=ue(B.U+2*(Pe=B.U+1>>1)),null==ae.memory)return 0;ae.ec=ae.memory,ae.fc=0,ae.cc=ae.ec,ae.dc=ae.fc+B.U,ae.Mc=ae.cc,ae.Nc=ae.dc+Pe,ae.Ib=pl,Nr()}}else alert("todo:EmitYUV");_t&&(ae.Jb=cm,Ke&&Jn())}if(Ke&&!h_){for(B=0;256>B;++B)NT[B]=89858*(B-128)+Yg>>Ch,M0[B]=-22014*(B-128)+Yg,Km[B]=-45773*(B-128),f_[B]=113618*(B-128)+Yg>>Ch;for(B=vm;B<Wg;++B)zg[B-vm]=sp(ae=76283*(B-16)+Yg>>Ch,255),fC[B-vm]=sp(ae+8>>4,15);h_=1}return 1}function Bp(B){var ae=B.ma,Pe=B.U,Ke=B.T;return O(!(1&B.ka)),0>=Pe||0>=Ke?0:(Pe=ae.Ib(B,ae),null!=ae.Jb&&ae.Jb(B,ae,Pe),ae.Dc+=Pe,1)}function Vp(B){B.ma.memory=null}function xs(B,ae,Pe,Ke){return 47!=Qi(B,8)?0:(ae[0]=Qi(B,14)+1,Pe[0]=Qi(B,14)+1,Ke[0]=Qi(B,1),0!=Qi(B,3)?0:!B.h)}function jp(B,ae){if(4>B)return B+1;var Pe=B-2>>1;return(2+(1&B)<<Pe)+Qi(ae,Pe)+1}function Hp(B,ae){return 120<ae?ae-120:1<=(Pe=((Pe=V2[ae-1])>>4)*B+(8-(15&Pe)))?Pe:1;var Pe}function Nd(B,ae,Pe){var Ke=on(Pe),_t=B[ae+=255&Ke].g-8;return 0<_t&&(Ln(Pe,Pe.u+8),Ke=on(Pe),ae+=B[ae].value,ae+=Ke&(1<<_t)-1),Ln(Pe,Pe.u+B[ae].g),B[ae].value}function Ql(B,ae,Pe){return Pe.g+=B.g,Pe.value+=B.value<<ae>>>0,O(8>=Pe.g),B.g}function La(B,ae,Pe){var Ke=B.xc;return O((ae=0==Ke?0:B.vc[B.md*(Pe>>Ke)+(ae>>Ke)])<B.Wb),B.Ya[ae]}function Xu(B,ae,Pe,Ke){var _t=B.ab,Ct=B.c*ae,Tt=B.C;ae=Tt+ae;var Rt=Pe,Pt=Ke;for(Ke=B.Ta,Pe=B.Ua;0<_t--;){var Xt=B.gc[_t],jn=Tt,Qn=ae,di=Rt,Xn=Pt,gr=(Pt=Ke,Rt=Pe,Xt.Ea);switch(O(jn<Qn),O(Qn<=Xt.nc),Xt.hc){case 2:g1(di,Xn,(Qn-jn)*gr,Pt,Rt);break;case 0:var mi=jn,Bn=Qn,Un=Pt,Fi=Rt,_r=(To=Xt).Ea;0==mi&&(cC(di,Xn,null,null,1,Un,Fi),Le(di,Xn+1,0,0,_r-1,Un,Fi+1),Xn+=_r,Fi+=_r,++mi);for(var ar=1<<To.b,wo=ar-1,Yr=fr(_r,To.b),ys=To.K,To=To.w+(mi>>To.b)*Yr;mi<Bn;){var Tl=ys,Sl=To,fl=1;for(T0(di,Xn,Un,Fi-_r,1,Un,Fi);fl<_r;){var fa=(fl&~wo)+ar;fa>_r&&(fa=_r),(0,Pg[Tl[Sl++]>>8&15])(di,Xn+ +fl,Un,Fi+fl-_r,fa-fl,Un,Fi+fl),fl=fa}Xn+=_r,Fi+=_r,++mi&wo||(To+=Yr)}Qn!=Xt.nc&&ie(Pt,Rt-gr,Pt,Rt+(Qn-jn-1)*gr,gr);break;case 1:for(gr=di,Bn=Xn,_r=(di=Xt.Ea)-(Fi=di&~(Un=(Xn=1<<Xt.b)-1)),mi=fr(di,Xt.b),ar=Xt.K,Xt=Xt.w+(jn>>Xt.b)*mi;jn<Qn;){for(wo=ar,Yr=Xt,ys=new hr,To=Bn+Fi,Tl=Bn+di;Bn<To;)gt(wo[Yr++],ys),o_(ys,gr,Bn,Xn,Pt,Rt),Bn+=Xn,Rt+=Xn;Bn<Tl&&(gt(wo[Yr++],ys),o_(ys,gr,Bn,_r,Pt,Rt),Bn+=_r,Rt+=_r),++jn&Un||(Xt+=mi)}break;case 3:if(di==Pt&&Xn==Rt&&0<Xt.b){for(Bn=Pt,di=gr=Rt+(Qn-jn)*gr-(Fi=(Qn-jn)*fr(Xt.Ea,Xt.b)),Xn=Pt,Un=Rt,mi=[],Fi=(_r=Fi)-1;0<=Fi;--Fi)mi[Fi]=Xn[Un+Fi];for(Fi=_r-1;0<=Fi;--Fi)Bn[di+Fi]=mi[Fi];Xp(Xt,jn,Qn,Pt,gr,Pt,Rt)}else Xp(Xt,jn,Qn,di,Xn,Pt,Rt)}Rt=Ke,Pt=Pe}Pt!=Pe&&ie(Ke,Pe,Rt,Pt,Ct)}function hl(B,ae){var Pe=B.V,Ke=B.Ba+B.c*B.C,_t=ae-B.C;if(O(ae<=B.l.o),O(16>=_t),0<_t){var Ct=B.l,Tt=B.Ta,Rt=B.Ua,Pt=Ct.width;if(Xu(B,_t,Pe,Ke),_t=Rt=[Rt],O((Pe=B.C)<(Ke=ae)),O(Ct.v<Ct.va),Ke>Ct.o&&(Ke=Ct.o),Pe<Ct.j){var Xt=Ct.j-Pe;Pe=Ct.j,_t[0]+=Xt*Pt}if(Pe>=Ke?Pe=0:(_t[0]+=4*Ct.v,Ct.ka=Pe-Ct.j,Ct.U=Ct.va-Ct.v,Ct.T=Ke-Pe,Pe=1),Pe){if(Rt=Rt[0],11>(Pe=B.ca).S){var jn=Pe.f.RGBA,Qn=(Ke=Pe.S,_t=Ct.U,Ct=Ct.T,Xt=jn.eb,jn.A),di=Ct;for(jn=jn.fb+B.Ma*jn.A;0<di--;){var Xn=Tt,gr=Rt,mi=_t,Bn=Xt,Un=jn;switch(Ke){case u_:wd(Xn,gr,mi,Bn,Un);break;case d_:wl(Xn,gr,mi,Bn,Un);break;case Hg:wl(Xn,gr,mi,Bn,Un),Vd(Bn,Un,0,mi,1,0);break;case E0:yh(Xn,gr,mi,Bn,Un);break;case Vg:Oo(Xn,gr,mi,Bn,Un,1);break;case b1:Oo(Xn,gr,mi,Bn,Un,1),Vd(Bn,Un,0,mi,1,0);break;case y1:Oo(Xn,gr,mi,Bn,Un,0);break;case C1:Oo(Xn,gr,mi,Bn,Un,0),Vd(Bn,Un,1,mi,1,0);break;case p_:mm(Xn,gr,mi,Bn,Un);break;case zm:mm(Xn,gr,mi,Bn,Un),ac(Bn,Un,mi,1,0);break;case jg:Lf(Xn,gr,mi,Bn,Un);break;default:O(0)}Rt+=Pt,jn+=Qn}B.Ma+=Ct}else alert("todo:EmitRescaledRowsYUVA");O(B.Ma<=Pe.height)}}B.C=ae,O(B.C<=B.i)}function Mf(B){var ae;if(0<B.ua)return 0;for(ae=0;ae<B.Wb;++ae){var Pe=B.Ya[ae].G,Ke=B.Ya[ae].H;if(0<Pe[1][Ke[1]+0].g||0<Pe[2][Ke[2]+0].g||0<Pe[3][Ke[3]+0].g)return 0}return 1}function $h(B,ae,Pe,Ke,_t,Ct){if(0!=B.Z){var Tt=B.qd,Rt=B.rd;for(O(null!=jd[B.Z]);ae<Pe;++ae)jd[B.Z](Tt,Rt,Ke,_t,Ke,_t,Ct),Tt=Ke,Rt=_t,_t+=Ct;B.qd=Tt,B.rd=Rt}}function Yh(B,ae){var Pe=B.l.ma,Ke=0==Pe.Z||1==Pe.Z?B.l.j:B.C;if(Ke=B.C<Ke?Ke:B.C,O(ae<=B.l.o),ae>Ke){var _t=B.l.width,Ct=Pe.ca,Tt=Pe.tb+_t*Ke,Rt=B.V,Pt=B.Ba+B.c*Ke,Xt=B.gc;O(1==B.ab),O(3==Xt[0].hc),fm(Xt[0],Ke,ae,Rt,Pt,Ct,Tt),$h(Pe,Ke,ae,Ct,Tt,_t)}B.C=B.Ma=ae}function Ku(B,ae,Pe,Ke,_t,Ct,Tt){var Rt=B.$/Ke,Pt=B.$%Ke,Xt=B.m,jn=B.s,Qn=Pe+B.$,di=Qn;_t=Pe+Ke*_t;var Xn=Pe+Ke*Ct,gr=280+jn.ua,mi=B.Pb?Rt:16777216,Bn=0<jn.ua?jn.Wa:null,Un=jn.wc,Fi=Qn<Xn?La(jn,Pt,Rt):null;O(B.C<Ct),O(Xn<=_t);var _r=!1;e:for(;;){for(;_r||Qn<Xn;){var ar=0;if(Rt>=mi){var wo=Qn-Pe;O((mi=B).Pb),mi.wd=mi.m,mi.xd=wo,0<mi.s.ua&&Yi(mi.s.Wa,mi.s.vb),mi=Rt+j2}if(Pt&Un||(Fi=La(jn,Pt,Rt)),O(null!=Fi),Fi.Qb&&(ae[Qn]=Fi.qb,_r=!0),!_r)if(zn(Xt),Fi.jc){wo=ae;var Yr=Qn,ys=Fi.pd[on(ar=Xt)&Bd-1];O(Fi.jc),256>ys.g?(Ln(ar,ar.u+ys.g),wo[Yr]=ys.value,ar=0):(Ln(ar,ar.u+ys.g-256),O(256<=ys.value),ar=ys.value),0==ar&&(_r=!0)}else ar=Nd(Fi.G[0],Fi.H[0],Xt);if(Xt.h)break;if(_r||256>ar){if(!_r)if(Fi.nd)ae[Qn]=(Fi.qb|ar<<8)>>>0;else{if(zn(Xt),_r=Nd(Fi.G[1],Fi.H[1],Xt),zn(Xt),wo=Nd(Fi.G[2],Fi.H[2],Xt),Yr=Nd(Fi.G[3],Fi.H[3],Xt),Xt.h)break;ae[Qn]=(Yr<<24|_r<<16|ar<<8|wo)>>>0}if(_r=!1,++Qn,++Pt>=Ke&&(Pt=0,++Rt,null!=Tt&&Rt<=Ct&&!(Rt%16)&&Tt(B,Rt),null!=Bn))for(;di<Qn;)ar=ae[di++],Bn.X[(506832829*ar&4294967295)>>>Bn.Mb]=ar}else if(280>ar){if(ar=jp(ar-256,Xt),wo=Nd(Fi.G[4],Fi.H[4],Xt),zn(Xt),wo=Hp(Ke,wo=jp(wo,Xt)),Xt.h)break;if(Qn-Pe<wo||_t-Qn<ar)break e;for(Yr=0;Yr<ar;++Yr)ae[Qn+Yr]=ae[Qn+Yr-wo];for(Qn+=ar,Pt+=ar;Pt>=Ke;)Pt-=Ke,++Rt,null!=Tt&&Rt<=Ct&&!(Rt%16)&&Tt(B,Rt);if(O(Qn<=_t),Pt&Un&&(Fi=La(jn,Pt,Rt)),null!=Bn)for(;di<Qn;)ar=ae[di++],Bn.X[(506832829*ar&4294967295)>>>Bn.Mb]=ar}else{if(!(ar<gr))break e;for(_r=ar-280,O(null!=Bn);di<Qn;)ar=ae[di++],Bn.X[(506832829*ar&4294967295)>>>Bn.Mb]=ar;ar=Qn,O(!(_r>>>(wo=Bn).Xa)),ae[ar]=wo.X[_r],_r=!0}_r||O(Xt.h==mn(Xt))}if(B.Pb&&Xt.h&&Qn<_t)O(B.m.h),B.a=5,B.m=B.wd,B.$=B.xd,0<B.s.ua&&Yi(B.s.vb,B.s.Wa);else{if(Xt.h)break e;Tt?.(B,Rt>Ct?Ct:Rt),B.a=0,B.$=Qn-Pe}return 1}return B.a=3,0}function fh(B){O(null!=B),B.vc=null,B.yc=null,B.Ya=null;var ae=B.Wa;null!=ae&&(ae.X=null),B.vb=null,O(null!=B)}function bu(){var B=new OT;return null==B?null:(B.a=0,B.xb=k0,ia("Predictor","VP8LPredictors"),ia("Predictor","VP8LPredictors_C"),ia("PredictorAdd","VP8LPredictorsAdd"),ia("PredictorAdd","VP8LPredictorsAdd_C"),g1=ot,o_=Lt,wd=Yt,wl=mr,mm=Sr,Lf=Qo,yh=Ur,bn.VP8LMapColor32b=Ju,bn.VP8LMapColor8b=Kh,B)}function Qu(B,ae,Pe,Ke,_t){var Ct=1,Tt=[B],Rt=[ae],Pt=Ke.m,Xt=Ke.s,jn=null,Qn=0;e:for(;;){if(Pe)for(;Ct&&Qi(Pt,1);){var di=Tt,Xn=Rt,gr=Ke,mi=1,Bn=gr.m,Un=gr.gc[gr.ab],Fi=Qi(Bn,2);if(gr.Oc&1<<Fi)Ct=0;else{switch(gr.Oc|=1<<Fi,Un.hc=Fi,Un.Ea=di[0],Un.nc=Xn[0],Un.K=[null],++gr.ab,O(4>=gr.ab),Fi){case 0:case 1:Un.b=Qi(Bn,3)+2,mi=Qu(fr(Un.Ea,Un.b),fr(Un.nc,Un.b),0,gr,Un.K),Un.K=Un.K[0];break;case 3:var _r,ar=Qi(Bn,8)+1,wo=16<ar?0:4<ar?1:2<ar?2:3;if(di[0]=fr(Un.Ea,wo),Un.b=wo,_r=mi=Qu(ar,1,0,gr,Un.K)){var Yr,ys=ar,To=Un,Tl=1<<(8>>To.b),Sl=ue(Tl);if(null==Sl)_r=0;else{var fl=To.K[0],fa=To.w;for(Sl[0]=To.K[0][0],Yr=1;Yr<1*ys;++Yr)Sl[Yr]=Pr(fl[fa+Yr],Sl[Yr-1]);for(;Yr<4*Tl;++Yr)Sl[Yr]=0;To.K[0]=null,To.K[0]=Sl,_r=1}}mi=_r;break;case 2:break;default:O(0)}Ct=mi}}if(Tt=Tt[0],Rt=Rt[0],Ct&&Qi(Pt,1)&&!(Ct=1<=(Qn=Qi(Pt,4))&&11>=Qn)){Ke.a=3;break e}var cc;if(cc=Ct)t:{var Ll,Zs,tu,ap=Ke,Rc=Tt,md=Rt,wa=Qn,wp=Pe,zl=ap.m,Fu=ap.s,Hd=[null],Ud=1,wh=0,Th=xP[wa];n:for(;;){if(wp&&Qi(zl,1)){var Sd=Qi(zl,3)+2,_m=fr(Rc,Sd),Tp=fr(md,Sd),Sh=_m*Tp;if(!Qu(_m,Tp,0,ap,Hd))break n;for(Hd=Hd[0],Fu.xc=Sd,Ll=0;Ll<Sh;++Ll){var ef=Hd[Ll]>>8&65535;Hd[Ll]=ef,ef>=Ud&&(Ud=ef+1)}}if(zl.h)break n;for(Zs=0;5>Zs;++Zs){var Uc=G2[Zs];!Zs&&0<wa&&(Uc+=1<<wa),wh<Uc&&(wh=Uc)}var g_=Me(Ud*Th,jt),qg=Ud,O0=Me(qg,Cn);if(null==O0)var Xg=null;else O(65536>=qg),Xg=O0;var Pu=ue(wh);if(null==Xg||null==Pu||null==g_){ap.a=1;break n}var Oc=g_;for(Ll=tu=0;Ll<Ud;++Ll){var gi=Xg[Ll],v_=gi.G,__=gi.H,gC=0,vC=1,H2=0;for(Zs=0;5>Zs;++Zs){Uc=G2[Zs],v_[Zs]=Oc,__[Zs]=tu,!Zs&&0<wa&&(Uc+=1<<wa);r:{var Qm,y_=Uc,BT=ap,b_=Pu,_C=Oc,VT=tu,U2=0,ym=BT.m,jT=Qi(ym,1);if(ge(b_,0,0,y_),jT){var $2=Qi(ym,1)+1,C_=Qi(ym,1),yC=Qi(ym,0==C_?1:8);b_[yC]=1,2==$2&&(b_[yC=Qi(ym,8)]=1);var nu=1}else{var bC=ue(19),ln=Qi(ym,4)+4;if(19<ln){BT.a=3;var bm=0;break r}for(Qm=0;Qm<ln;++Qm)bC[B2[Qm]]=Qi(ym,3);var Bf=void 0,Zu=void 0,Y2=BT,DI=bC,F0=y_,Kg=b_,xh=0,Cm=Y2.m,W2=8,P0=Me(128,jt);i:for(;Ut(P0,0,7,DI,19);){if(Qi(Cm,1)){var CC=2+2*Qi(Cm,3);if((Bf=2+Qi(Cm,CC))>F0)break i}else Bf=F0;for(Zu=0;Zu<F0&&Bf--;){zn(Cm);var wC=P0[0+(127&on(Cm))];Ln(Cm,Cm.u+wC.g);var Do=wC.value;if(16>Do)Kg[Zu++]=Do,0!=Do&&(W2=Do);else{var A6=16==Do,Ti=Do-16,kI=w1[Ti],L0=Qi(Cm,N2[Ti])+kI;if(Zu+L0>F0)break i;for(var II=A6?W2:0;0<L0--;)Kg[Zu++]=II}}xh=1;break i}xh||(Y2.a=3),nu=xh}(nu=nu&&!ym.h)&&(U2=Ut(_C,VT,8,b_,y_)),nu&&0!=U2?bm=U2:(BT.a=3,bm=0)}if(0==bm)break n;if(vC&&1==FT[Zs]&&(vC=0==Oc[tu].g),gC+=Oc[tu].g,tu+=bm,3>=Zs){var Qg,N0=Pu[0];for(Qg=1;Qg<Uc;++Qg)Pu[Qg]>N0&&(N0=Pu[Qg]);H2+=N0}}if(gi.nd=vC,gi.Qb=0,vC&&(gi.qb=(v_[3][__[3]+0].value<<24|v_[1][__[1]+0].value<<16|v_[2][__[2]+0].value)>>>0,0==gC&&256>v_[0][__[0]+0].value&&(gi.Qb=1,gi.qb+=v_[0][__[0]+0].value<<8)),gi.jc=!gi.Qb&&6>H2,gi.jc){var Jg,Jm=gi;for(Jg=0;Jg<Bd;++Jg){var Zm=Jg,wm=Jm.pd[Zm],TC=Jm.G[0][Jm.H[0]+Zm];256<=TC.value?(wm.g=TC.g+256,wm.value=TC.value):(wm.g=0,wm.value=0,Zm>>=Ql(TC,8,wm),Zm>>=Ql(Jm.G[1][Jm.H[1]+Zm],16,wm),Zm>>=Ql(Jm.G[2][Jm.H[2]+Zm],0,wm),Ql(Jm.G[3][Jm.H[3]+Zm],24,wm))}}}Fu.vc=Hd,Fu.Wb=Ud,Fu.Ya=Xg,Fu.yc=g_,cc=1;break t}cc=0}if(!(Ct=cc)){Ke.a=3;break e}if(0<Qn){if(Xt.ua=1<<Qn,!As(Xt.Wa,Qn)){Ke.a=1,Ct=0;break e}}else Xt.ua=0;var SC=Ke,G0=Tt,HT=Rt,xd=SC.s,xC=xd.xc;if(SC.c=G0,SC.i=HT,xd.md=fr(G0,xC),xd.wc=0==xC?-1:(1<<xC)-1,Pe){Ke.xb=dC;break e}if(null==(jn=ue(Tt*Rt))){Ke.a=1,Ct=0;break e}Ct=(Ct=Ku(Ke,jn,0,Tt,Rt,Rt,null))&&!Pt.h;break e}return Ct?(null!=_t?_t[0]=jn:(O(null==jn),O(Pe)),Ke.$=0,Pe||fh(Xt)):fh(Xt),Ct}function Gd(B,ae){var Pe=B.c*B.i,Ke=Pe+ae+16*ae;return O(B.c<=ae),B.V=ue(Ke),null==B.V?(B.Ta=null,B.Ua=0,B.a=1,0):(B.Ta=B.V,B.Ua=B.Ba+Pe+ae,1)}function Zv(B,ae){var Pe=B.C,Ke=ae-Pe,_t=B.V,Ct=B.Ba+B.c*Pe;for(O(ae<=B.l.o);0<Ke;){var Tt=16<Ke?16:Ke,Rt=B.l.ma,Pt=B.l.width,Xt=Pt*Tt,jn=Rt.ca,Qn=Rt.tb+Pt*Pe,di=B.Ta,Xn=B.Ua;Xu(B,Tt,_t,Ct),Tu(di,Xn,jn,Qn,Xt),$h(Rt,Pe,Pe+Tt,jn,Qn,Pt),Ke-=Tt,_t+=Tt*B.c,Pe+=Tt}O(Pe==ae),B.C=B.Ma=ae}function op(){this.ub=this.yd=this.td=this.Rb=0}function um(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function dm(){this.Fb=this.Bb=this.Cb=0,this.Zb=ue(4),this.Lb=ue(4)}function e_(){var B;this.Yb=(function ae(Pe,Ke,_t){for(var Ct=_t[Ke],Tt=0;Tt<Ct&&(Pe.push(_t.length>Ke+1?[]:0),!(_t.length<Ke+1));Tt++)ae(Pe[Tt],Ke+1,_t)}(B=[],0,[3,11]),B)}function o1(){this.jb=ue(3),this.Wc=Ne([4,8],e_),this.Xc=Ne([4,17],e_)}function s1(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new ue(4),this.od=new ue(4)}function vp(){this.ld=this.La=this.dd=this.tc=0}function rr(){this.Na=this.la=0}function $o(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function _c(){this.ad=ue(384),this.Za=0,this.Ob=ue(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Up(){this.uc=this.M=this.Nb=0,this.wa=Array(new vp),this.Y=0,this.ya=Array(new _c),this.aa=0,this.l=new Mg}function ud(){this.y=ue(16),this.f=ue(8),this.ea=ue(8)}function $p(){this.cb=this.a=0,this.sc="",this.m=new no,this.Od=new op,this.Kc=new um,this.ed=new s1,this.Qa=new dm,this.Ic=this.$c=this.Aa=0,this.D=new Up,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=Me(8,no),this.ia=0,this.pb=Me(4,$o),this.Pa=new o1,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new ud),this.Hd=0,this.rb=Array(new rr),this.sb=0,this.wa=Array(new vp),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new _c),this.L=this.aa=0,this.gd=Ne([4,2],vp),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Mg(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function a1(){var B=new $p;return null!=B&&(B.a=0,B.sc="OK",B.cb=0,B.Xb=0,S1||(S1=pm)),B}function Cu(B,ae,Pe){return 0==B.a&&(B.a=ae,B.sc=Pe,B.cb=0),0}function t_(B,ae,Pe){return 3<=Pe&&157==B[ae+0]&&1==B[ae+1]&&42==B[ae+2]}function dd(B,ae){if(null==B)return 0;if(B.a=0,B.sc="OK",null==ae)return Cu(B,2,"null VP8Io passed to VP8GetHeaders()");var Pe=ae.data,Ke=ae.w,_t=ae.ha;if(4>_t)return Cu(B,7,"Truncated header.");var Ct=Pe[Ke+0]|Pe[Ke+1]<<8|Pe[Ke+2]<<16,Tt=B.Od;if(Tt.Rb=!(1&Ct),Tt.td=Ct>>1&7,Tt.yd=Ct>>4&1,Tt.ub=Ct>>5,3<Tt.td)return Cu(B,3,"Incorrect keyframe parameters.");if(!Tt.yd)return Cu(B,4,"Frame not displayable.");Ke+=3,_t-=3;var Rt=B.Kc;if(Tt.Rb){if(7>_t)return Cu(B,7,"cannot parse picture header");if(!t_(Pe,Ke,_t))return Cu(B,3,"Bad code word");Rt.c=16383&(Pe[Ke+4]<<8|Pe[Ke+3]),Rt.Td=Pe[Ke+4]>>6,Rt.i=16383&(Pe[Ke+6]<<8|Pe[Ke+5]),Rt.Ud=Pe[Ke+6]>>6,Ke+=7,_t-=7,B.za=Rt.c+15>>4,B.Ub=Rt.i+15>>4,ae.width=Rt.c,ae.height=Rt.i,ae.Da=0,ae.j=0,ae.v=0,ae.va=ae.width,ae.o=ae.height,ae.da=0,ae.ib=ae.width,ae.hb=ae.height,ae.U=ae.width,ae.T=ae.height,ge((Ct=B.Pa).jb,0,255,Ct.jb.length),O(null!=(Ct=B.Qa)),Ct.Cb=0,Ct.Bb=0,Ct.Fb=1,ge(Ct.Zb,0,0,Ct.Zb.length),ge(Ct.Lb,0,0,Ct.Lb)}if(Tt.ub>_t)return Cu(B,7,"bad partition length");Ei(Ct=B.m,Pe,Ke,Tt.ub),Ke+=Tt.ub,_t-=Tt.ub,Tt.Rb&&(Rt.Ld=_i(Ct),Rt.Kd=_i(Ct)),Rt=B.Qa;var Pt,Xt=B.Pa;if(O(null!=Ct),O(null!=Rt),Rt.Cb=_i(Ct),Rt.Cb){if(Rt.Bb=_i(Ct),_i(Ct)){for(Rt.Fb=_i(Ct),Pt=0;4>Pt;++Pt)Rt.Zb[Pt]=_i(Ct)?Mi(Ct,7):0;for(Pt=0;4>Pt;++Pt)Rt.Lb[Pt]=_i(Ct)?Mi(Ct,6):0}if(Rt.Bb)for(Pt=0;3>Pt;++Pt)Xt.jb[Pt]=_i(Ct)?vi(Ct,8):255}else Rt.Bb=0;if(Ct.Ka)return Cu(B,3,"cannot parse segment header");if((Rt=B.ed).zd=_i(Ct),Rt.Tb=vi(Ct,6),Rt.wb=vi(Ct,3),Rt.Pc=_i(Ct),Rt.Pc&&_i(Ct)){for(Xt=0;4>Xt;++Xt)_i(Ct)&&(Rt.vd[Xt]=Mi(Ct,6));for(Xt=0;4>Xt;++Xt)_i(Ct)&&(Rt.od[Xt]=Mi(Ct,6))}if(B.L=0==Rt.Tb?0:Rt.zd?1:2,Ct.Ka)return Cu(B,3,"cannot parse filter header");var jn=_t;if(_t=Pt=Ke,Ke=Pt+jn,Rt=jn,B.Xb=(1<<vi(B.m,2))-1,jn<3*(Xt=B.Xb))Pe=7;else{for(Pt+=3*Xt,Rt-=3*Xt,jn=0;jn<Xt;++jn){var Qn=Pe[_t+0]|Pe[_t+1]<<8|Pe[_t+2]<<16;Qn>Rt&&(Qn=Rt),Ei(B.Jc[+jn],Pe,Pt,Qn),Pt+=Qn,Rt-=Qn,_t+=3}Ei(B.Jc[+Xt],Pe,Pt,Rt),Pe=Pt<Ke?0:5}if(0!=Pe)return Cu(B,Pe,"cannot parse partitions");for(Pe=vi(Pt=B.m,7),_t=_i(Pt)?Mi(Pt,4):0,Ke=_i(Pt)?Mi(Pt,4):0,Rt=_i(Pt)?Mi(Pt,4):0,Xt=_i(Pt)?Mi(Pt,4):0,Pt=_i(Pt)?Mi(Pt,4):0,jn=B.Qa,Qn=0;4>Qn;++Qn){if(jn.Cb){var di=jn.Zb[Qn];jn.Fb||(di+=Pe)}else{if(0<Qn){B.pb[Qn]=B.pb[0];continue}di=Pe}var Xn=B.pb[Qn];Xn.Sc[0]=T1[sp(di+_t,127)],Xn.Sc[1]=Ug[sp(di+0,127)],Xn.Eb[0]=2*T1[sp(di+Ke,127)],Xn.Eb[1]=101581*Ug[sp(di+Rt,127)]>>16,8>Xn.Eb[1]&&(Xn.Eb[1]=8),Xn.Qc[0]=T1[sp(di+Xt,117)],Xn.Qc[1]=Ug[sp(di+Pt,127)],Xn.lc=di+Pt}if(!Tt.Rb)return Cu(B,4,"Not a key frame.");for(_i(Ct),Tt=B.Pa,Pe=0;4>Pe;++Pe){for(_t=0;8>_t;++_t)for(Ke=0;3>Ke;++Ke)for(Rt=0;11>Rt;++Rt)Xt=yi(Ct,D0[Pe][_t][Ke][Rt])?vi(Ct,8):$g[Pe][_t][Ke][Rt],Tt.Wc[Pe][_t].Yb[Ke][Rt]=Xt;for(_t=0;17>_t;++_t)Tt.Xc[Pe][_t]=Tt.Wc[Pe][x1[_t]]}return B.kc=_i(Ct),B.kc&&(B.Bd=vi(Ct,8)),B.cb=1}function pm(B,ae,Pe,Ke,_t,Ct,Tt){var Rt=ae[_t].Yb[Pe];for(Pe=0;16>_t;++_t){if(!yi(B,Rt[Pe+0]))return _t;for(;!yi(B,Rt[Pe+1]);)if(Rt=ae[++_t].Yb[0],Pe=0,16==_t)return 16;var Pt=ae[_t+1].Yb;if(yi(B,Rt[Pe+2])){var Xt=B,jn=0;if(yi(Xt,(di=Rt)[(Qn=Pe)+3]))if(yi(Xt,di[Qn+6])){for(Rt=0,Qn=2*(jn=yi(Xt,di[Qn+8]))+(di=yi(Xt,di[Qn+9+jn])),jn=0,di=Nf[Qn];di[Rt];++Rt)jn+=jn+yi(Xt,di[Rt]);jn+=3+(8<<Qn)}else yi(Xt,di[Qn+7])?(jn=7+2*yi(Xt,165),jn+=yi(Xt,145)):jn=5+yi(Xt,159);else jn=yi(Xt,di[Qn+4])?3+yi(Xt,di[Qn+5]):2;Rt=Pt[2]}else jn=1,Rt=Pt[1];Pt=Tt+Pl[_t],0>(Xt=B).b&&pi(Xt);var Qn,di=Xt.b,Xn=(Qn=Xt.Ca>>1)-(Xt.I>>di)>>31;--Xt.b,Xt.Ca+=Xn,Xt.Ca|=1,Xt.I-=(Qn+1&Xn)<<di,Ct[Pt]=((jn^Xn)-Xn)*Ke[(0<_t)+0]}return 16}function Vo(B){var ae=B.rb[B.sb-1];ae.la=0,ae.Na=0,ge(B.zc,0,0,B.zc.length),B.ja=0}function ve(B,ae,Pe,Ke,_t){B[ae+Pe+32*Ke]=-256&(_t=B[ae+Pe+32*Ke]+(_t>>3))?0>_t?0:255:_t}function Ue(B,ae,Pe,Ke,_t,Ct){ve(B,ae,0,Pe,Ke+_t),ve(B,ae,1,Pe,Ke+Ct),ve(B,ae,2,Pe,Ke-Ct),ve(B,ae,3,Pe,Ke-_t)}function et(B){return(20091*B>>16)+B}function It(B,ae,Pe,Ke){var _t,Ct=0,Tt=ue(16);for(_t=0;4>_t;++_t){var Rt=B[ae+0]+B[ae+8],Pt=B[ae+0]-B[ae+8],Xt=(35468*B[ae+4]>>16)-et(B[ae+12]),jn=et(B[ae+4])+(35468*B[ae+12]>>16);Tt[Ct+0]=Rt+jn,Tt[Ct+1]=Pt+Xt,Tt[Ct+2]=Pt-Xt,Tt[Ct+3]=Rt-jn,Ct+=4,ae++}for(_t=Ct=0;4>_t;++_t)Rt=(B=Tt[Ct+0]+4)+Tt[Ct+8],Pt=B-Tt[Ct+8],Xt=(35468*Tt[Ct+4]>>16)-et(Tt[Ct+12]),ve(Pe,Ke,0,0,Rt+(jn=et(Tt[Ct+4])+(35468*Tt[Ct+12]>>16))),ve(Pe,Ke,1,0,Pt+Xt),ve(Pe,Ke,2,0,Pt-Xt),ve(Pe,Ke,3,0,Rt-jn),Ct++,Ke+=32}function In(B,ae,Pe,Ke){var _t=B[ae+0]+4,Ct=35468*B[ae+4]>>16,Tt=et(B[ae+4]),Rt=35468*B[ae+1]>>16;Ue(Pe,Ke,0,_t+Tt,B=et(B[ae+1]),Rt),Ue(Pe,Ke,1,_t+Ct,B,Rt),Ue(Pe,Ke,2,_t-Ct,B,Rt),Ue(Pe,Ke,3,_t-Tt,B,Rt)}function Li(B,ae,Pe,Ke,_t){It(B,ae,Pe,Ke),_t&&It(B,ae+16,Pe,Ke+4)}function Co(B,ae,Pe,Ke){gm(B,ae+0,Pe,Ke,1),gm(B,ae+32,Pe,Ke+128,1)}function ls(B,ae,Pe,Ke){var _t;for(B=B[ae+0]+4,_t=0;4>_t;++_t)for(ae=0;4>ae;++ae)ve(Pe,Ke,ae,_t,B)}function Es(B,ae,Pe,Ke){B[ae+0]&&yp(B,ae+0,Pe,Ke),B[ae+16]&&yp(B,ae+16,Pe,Ke+4),B[ae+32]&&yp(B,ae+32,Pe,Ke+128),B[ae+48]&&yp(B,ae+48,Pe,Ke+128+4)}function wu(B,ae,Pe,Ke){var _t,Ct=ue(16);for(_t=0;4>_t;++_t){var Tt=B[ae+0+_t]+B[ae+12+_t],Rt=B[ae+4+_t]+B[ae+8+_t],Pt=B[ae+4+_t]-B[ae+8+_t],Xt=B[ae+0+_t]-B[ae+12+_t];Ct[0+_t]=Tt+Rt,Ct[8+_t]=Tt-Rt,Ct[4+_t]=Xt+Pt,Ct[12+_t]=Xt-Pt}for(_t=0;4>_t;++_t)Tt=(B=Ct[0+4*_t]+3)+Ct[3+4*_t],Pt=Ct[1+4*_t]-Ct[2+4*_t],Xt=B-Ct[3+4*_t],Pe[Ke+0]=Tt+(Rt=Ct[1+4*_t]+Ct[2+4*_t])>>3,Pe[Ke+16]=Xt+Pt>>3,Pe[Ke+32]=Tt-Rt>>3,Pe[Ke+48]=Xt-Pt>>3,Ke+=64}function Yp(B,ae,Pe){var Ke,_t=ae-32,Ct=Cp,Tt=255-B[_t-1];for(Ke=0;Ke<Pe;++Ke){var Rt,Pt=Ct,Xt=Tt+B[ae-1];for(Rt=0;Rt<Pe;++Rt)B[ae+Rt]=Pt[Xt+B[_t+Rt]];ae+=32}}function mh(B,ae){Yp(B,ae,4)}function l1(B,ae){Yp(B,ae,8)}function v0(B,ae){Yp(B,ae,16)}function pd(B,ae){var Pe;for(Pe=0;16>Pe;++Pe)ie(B,ae+32*Pe,B,ae-32,16)}function Rf(B,ae){var Pe;for(Pe=16;0<Pe;--Pe)ge(B,ae,B[ae-1],16),ae+=32}function Hm(B,ae,Pe){var Ke;for(Ke=0;16>Ke;++Ke)ge(ae,Pe+32*Ke,B,16)}function _0(B,ae){var Pe,Ke=16;for(Pe=0;16>Pe;++Pe)Ke+=B[ae-1+32*Pe]+B[ae+Pe-32];Hm(Ke>>5,B,ae)}function bd(B,ae){var Pe,Ke=8;for(Pe=0;16>Pe;++Pe)Ke+=B[ae-1+32*Pe];Hm(Ke>>4,B,ae)}function sa(B,ae){var Pe,Ke=8;for(Pe=0;16>Pe;++Pe)Ke+=B[ae+Pe-32];Hm(Ke>>4,B,ae)}function Um(B,ae){Hm(128,B,ae)}function oa(B,ae,Pe){return B+2*ae+Pe+2>>2}function y0(B,ae){var Pe,Ke=ae-32;for(Ke=new Uint8Array([oa(B[Ke-1],B[Ke+0],B[Ke+1]),oa(B[Ke+0],B[Ke+1],B[Ke+2]),oa(B[Ke+1],B[Ke+2],B[Ke+3]),oa(B[Ke+2],B[Ke+3],B[Ke+4])]),Pe=0;4>Pe;++Pe)ie(B,ae+32*Pe,Ke,0,Ke.length)}function c1(B,ae){var Pe=B[ae-1],Ke=B[ae-1+32],_t=B[ae-1+64],Ct=B[ae-1+96];Hr(B,ae+0,16843009*oa(B[ae-1-32],Pe,Ke)),Hr(B,ae+32,16843009*oa(Pe,Ke,_t)),Hr(B,ae+64,16843009*oa(Ke,_t,Ct)),Hr(B,ae+96,16843009*oa(_t,Ct,Ct))}function gh(B,ae){var Pe,Ke=4;for(Pe=0;4>Pe;++Pe)Ke+=B[ae+Pe-32]+B[ae-1+32*Pe];for(Ke>>=3,Pe=0;4>Pe;++Pe)ge(B,ae+32*Pe,Ke,4)}function n_(B,ae){var Pe=B[ae-1+0],Ke=B[ae-1+32],_t=B[ae-1+64],Ct=B[ae-1-32],Tt=B[ae+0-32],Rt=B[ae+1-32],Pt=B[ae+2-32],Xt=B[ae+3-32];B[ae+0+96]=oa(Ke,_t,B[ae-1+96]),B[ae+1+96]=B[ae+0+64]=oa(Pe,Ke,_t),B[ae+2+96]=B[ae+1+64]=B[ae+0+32]=oa(Ct,Pe,Ke),B[ae+3+96]=B[ae+2+64]=B[ae+1+32]=B[ae+0+0]=oa(Tt,Ct,Pe),B[ae+3+64]=B[ae+2+32]=B[ae+1+0]=oa(Rt,Tt,Ct),B[ae+3+32]=B[ae+2+0]=oa(Pt,Rt,Tt),B[ae+3+0]=oa(Xt,Pt,Rt)}function b0(B,ae){var Pe=B[ae+1-32],Ke=B[ae+2-32],_t=B[ae+3-32],Ct=B[ae+4-32],Tt=B[ae+5-32],Rt=B[ae+6-32],Pt=B[ae+7-32];B[ae+0+0]=oa(B[ae+0-32],Pe,Ke),B[ae+1+0]=B[ae+0+32]=oa(Pe,Ke,_t),B[ae+2+0]=B[ae+1+32]=B[ae+0+64]=oa(Ke,_t,Ct),B[ae+3+0]=B[ae+2+32]=B[ae+1+64]=B[ae+0+96]=oa(_t,Ct,Tt),B[ae+3+32]=B[ae+2+64]=B[ae+1+96]=oa(Ct,Tt,Rt),B[ae+3+64]=B[ae+2+96]=oa(Tt,Rt,Pt),B[ae+3+96]=oa(Rt,Pt,Pt)}function hm(B,ae){var Pe=B[ae-1+0],Ke=B[ae-1+32],_t=B[ae-1+64],Ct=B[ae-1-32],Tt=B[ae+0-32],Rt=B[ae+1-32],Pt=B[ae+2-32],Xt=B[ae+3-32];B[ae+0+0]=B[ae+1+64]=Ct+Tt+1>>1,B[ae+1+0]=B[ae+2+64]=Tt+Rt+1>>1,B[ae+2+0]=B[ae+3+64]=Rt+Pt+1>>1,B[ae+3+0]=Pt+Xt+1>>1,B[ae+0+96]=oa(_t,Ke,Pe),B[ae+0+64]=oa(Ke,Pe,Ct),B[ae+0+32]=B[ae+1+96]=oa(Pe,Ct,Tt),B[ae+1+32]=B[ae+2+96]=oa(Ct,Tt,Rt),B[ae+2+32]=B[ae+3+96]=oa(Tt,Rt,Pt),B[ae+3+32]=oa(Rt,Pt,Xt)}function hd(B,ae){var Pe=B[ae+0-32],Ke=B[ae+1-32],_t=B[ae+2-32],Ct=B[ae+3-32],Tt=B[ae+4-32],Rt=B[ae+5-32],Pt=B[ae+6-32],Xt=B[ae+7-32];B[ae+0+0]=Pe+Ke+1>>1,B[ae+1+0]=B[ae+0+64]=Ke+_t+1>>1,B[ae+2+0]=B[ae+1+64]=_t+Ct+1>>1,B[ae+3+0]=B[ae+2+64]=Ct+Tt+1>>1,B[ae+0+32]=oa(Pe,Ke,_t),B[ae+1+32]=B[ae+0+96]=oa(Ke,_t,Ct),B[ae+2+32]=B[ae+1+96]=oa(_t,Ct,Tt),B[ae+3+32]=B[ae+2+96]=oa(Ct,Tt,Rt),B[ae+3+64]=oa(Tt,Rt,Pt),B[ae+3+96]=oa(Rt,Pt,Xt)}function u1(B,ae){var Pe=B[ae-1+0],Ke=B[ae-1+32],_t=B[ae-1+64],Ct=B[ae-1+96];B[ae+0+0]=Pe+Ke+1>>1,B[ae+2+0]=B[ae+0+32]=Ke+_t+1>>1,B[ae+2+32]=B[ae+0+64]=_t+Ct+1>>1,B[ae+1+0]=oa(Pe,Ke,_t),B[ae+3+0]=B[ae+1+32]=oa(Ke,_t,Ct),B[ae+3+32]=B[ae+1+64]=oa(_t,Ct,Ct),B[ae+3+64]=B[ae+2+64]=B[ae+0+96]=B[ae+1+96]=B[ae+2+96]=B[ae+3+96]=Ct}function d1(B,ae){var Pe=B[ae-1+0],Ke=B[ae-1+32],_t=B[ae-1+64],Ct=B[ae-1+96],Tt=B[ae-1-32],Rt=B[ae+0-32],Pt=B[ae+1-32],Xt=B[ae+2-32];B[ae+0+0]=B[ae+2+32]=Pe+Tt+1>>1,B[ae+0+32]=B[ae+2+64]=Ke+Pe+1>>1,B[ae+0+64]=B[ae+2+96]=_t+Ke+1>>1,B[ae+0+96]=Ct+_t+1>>1,B[ae+3+0]=oa(Rt,Pt,Xt),B[ae+2+0]=oa(Tt,Rt,Pt),B[ae+1+0]=B[ae+3+32]=oa(Pe,Tt,Rt),B[ae+1+32]=B[ae+3+64]=oa(Ke,Pe,Tt),B[ae+1+64]=B[ae+3+96]=oa(_t,Ke,Pe),B[ae+1+96]=oa(Ct,_t,Ke)}function oC(B,ae){var Pe;for(Pe=0;8>Pe;++Pe)ie(B,ae+32*Pe,B,ae-32,8)}function Of(B,ae){var Pe;for(Pe=0;8>Pe;++Pe)ge(B,ae,B[ae-1],8),ae+=32}function Wh(B,ae,Pe){var Ke;for(Ke=0;8>Ke;++Ke)ge(ae,Pe+32*Ke,B,8)}function Mc(B,ae){var Pe,Ke=8;for(Pe=0;8>Pe;++Pe)Ke+=B[ae+Pe-32]+B[ae-1+32*Pe];Wh(Ke>>4,B,ae)}function MT(B,ae){var Pe,Ke=4;for(Pe=0;8>Pe;++Pe)Ke+=B[ae+Pe-32];Wh(Ke>>3,B,ae)}function vh(B,ae){var Pe,Ke=4;for(Pe=0;8>Pe;++Pe)Ke+=B[ae-1+32*Pe];Wh(Ke>>3,B,ae)}function qi(B,ae){Wh(128,B,ae)}function Ru(B,ae,Pe){var Ke=B[ae-Pe],_t=B[ae+0],Ct=3*(_t-Ke)+_1[1020+B[ae-2*Pe]-B[ae+Pe]],Tt=x0[112+(Ct+4>>3)];B[ae-Pe]=Cp[255+Ke+x0[112+(Ct+3>>3)]],B[ae+0]=Cp[255+_t-Tt]}function Kr(B,ae,Pe,Ke){return Kp[255+B[ae-2*Pe]-B[ae-Pe]]>Ke||Kp[255+B[ae+Pe]-B[ae+0]]>Ke}function Xe(B,ae,Pe,Ke){return 4*Kp[255+B[ae-Pe]-B[ae+0]]+Kp[255+B[ae-2*Pe]-B[ae+Pe]]<=Ke}function _a(B,ae,Pe,Ke,_t){var Ct=B[ae-3*Pe],Tt=B[ae-2*Pe],Rt=B[ae-Pe],Pt=B[ae+0],Xt=B[ae+Pe],jn=B[ae+2*Pe];return 4*Kp[255+Rt-Pt]+Kp[255+Tt-Xt]>Ke?0:Kp[255+B[ae-4*Pe]-Ct]<=_t&&Kp[255+Ct-Tt]<=_t&&Kp[255+Tt-Rt]<=_t&&Kp[255+B[ae+3*Pe]-jn]<=_t&&Kp[255+jn-Xt]<=_t&&Kp[255+Xt-Pt]<=_t}function C0(B,ae,Pe,Ke){var _t=2*Ke+1;for(Ke=0;16>Ke;++Ke)Xe(B,ae+Ke,Pe,_t)&&Ru(B,ae+Ke,Pe)}function Hc(B,ae,Pe,Ke){var _t=2*Ke+1;for(Ke=0;16>Ke;++Ke)Xe(B,ae+Ke*Pe,1,_t)&&Ru(B,ae+Ke*Pe,1)}function Cd(B,ae,Pe,Ke){var _t;for(_t=3;0<_t;--_t)C0(B,ae+=4*Pe,Pe,Ke)}function p1(B,ae,Pe,Ke){var _t;for(_t=3;0<_t;--_t)Hc(B,ae+=4,Pe,Ke)}function Ff(B,ae,Pe,Ke,_t,Ct,Tt,Rt){for(Ct=2*Ct+1;0<_t--;){if(_a(B,ae,Pe,Ct,Tt))if(Kr(B,ae,Pe,Rt))Ru(B,ae,Pe);else{var Pt=B,Xt=ae,jn=Pe,Qn=Pt[Xt-2*jn],di=Pt[Xt-jn],Xn=Pt[Xt+0],gr=Pt[Xt+jn],mi=Pt[Xt+2*jn],Bn=27*(Fi=_1[1020+3*(Xn-di)+_1[1020+Qn-gr]])+63>>7,Un=18*Fi+63>>7,Fi=9*Fi+63>>7;Pt[Xt-3*jn]=Cp[255+Pt[Xt-3*jn]+Fi],Pt[Xt-2*jn]=Cp[255+Qn+Un],Pt[Xt-jn]=Cp[255+di+Bn],Pt[Xt+0]=Cp[255+Xn-Bn],Pt[Xt+jn]=Cp[255+gr-Un],Pt[Xt+2*jn]=Cp[255+mi-Fi]}ae+=Ke}}function fd(B,ae,Pe,Ke,_t,Ct,Tt,Rt){for(Ct=2*Ct+1;0<_t--;){if(_a(B,ae,Pe,Ct,Tt))if(Kr(B,ae,Pe,Rt))Ru(B,ae,Pe);else{var Pt=B,Xt=ae,jn=Pe,Qn=Pt[Xt-jn],di=Pt[Xt+0],Xn=Pt[Xt+jn],gr=x0[112+(4+(mi=3*(di-Qn))>>3)],mi=x0[112+(mi+3>>3)],Bn=gr+1>>1;Pt[Xt-2*jn]=Cp[255+Pt[Xt-2*jn]+Bn],Pt[Xt-jn]=Cp[255+Qn+mi],Pt[Xt+0]=Cp[255+di-gr],Pt[Xt+jn]=Cp[255+Xn-Bn]}ae+=Ke}}function Nn(B,ae,Pe,Ke,_t,Ct){Ff(B,ae,Pe,1,16,Ke,_t,Ct)}function mo(B,ae,Pe,Ke,_t,Ct){Ff(B,ae,1,Pe,16,Ke,_t,Ct)}function qo(B,ae,Pe,Ke,_t,Ct){var Tt;for(Tt=3;0<Tt;--Tt)fd(B,ae+=4*Pe,Pe,1,16,Ke,_t,Ct)}function zh(B,ae,Pe,Ke,_t,Ct){var Tt;for(Tt=3;0<Tt;--Tt)fd(B,ae+=4,1,Pe,16,Ke,_t,Ct)}function RT(B,ae,Pe,Ke,_t,Ct,Tt,Rt){Ff(B,ae,_t,1,8,Ct,Tt,Rt),Ff(Pe,Ke,_t,1,8,Ct,Tt,Rt)}function ms(B,ae,Pe,Ke,_t,Ct,Tt,Rt){Ff(B,ae,1,_t,8,Ct,Tt,Rt),Ff(Pe,Ke,1,_t,8,Ct,Tt,Rt)}function h1(B,ae,Pe,Ke,_t,Ct,Tt,Rt){fd(B,ae+4*_t,_t,1,8,Ct,Tt,Rt),fd(Pe,Ke+4*_t,_t,1,8,Ct,Tt,Rt)}function f1(B,ae,Pe,Ke,_t,Ct,Tt,Rt){fd(B,ae+4,1,_t,8,Ct,Tt,Rt),fd(Pe,Ke+4,1,_t,8,Ct,Tt,Rt)}function Ja(){this.ba=new Np,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new vc,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function $l(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function sC(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function aC(){this.ua=0,this.Wa=new vn,this.vb=new vn,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new Cn,this.yc=new jt}function OT(){this.xb=this.a=0,this.l=new Mg,this.ca=new Np,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new mt,this.Pb=0,this.wd=new mt,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new aC,this.ab=0,this.gc=Me(4,sC),this.Oc=0}function i_(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Mg,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Yl(B,ae,Pe,Ke,_t,Ct,Tt){for(B=null==B?0:B[ae+0],ae=0;ae<Tt;++ae)_t[Ct+ae]=B+Pe[Ke+ae]&255,B=_t[Ct+ae]}function Rg(B,ae,Pe,Ke,_t,Ct,Tt){var Rt;if(null==B)Yl(null,null,Pe,Ke,_t,Ct,Tt);else for(Rt=0;Rt<Tt;++Rt)_t[Ct+Rt]=B[ae+Rt]+Pe[Ke+Rt]&255}function qh(B,ae,Pe,Ke,_t,Ct,Tt){if(null==B)Yl(null,null,Pe,Ke,_t,Ct,Tt);else{var Rt,Pt=B[ae+0],Xt=Pt,jn=Pt;for(Rt=0;Rt<Tt;++Rt)Xt=jn+(Pt=B[ae+Rt])-Xt,jn=Pe[Ke+Rt]+(-256&Xt?0>Xt?0:255:Xt)&255,Xt=Pt,_t[Ct+Rt]=jn}}function Wp(B,ae,Pe,Ke){var _t=ae.width,Ct=ae.o;if(O(null!=B&&null!=ae),0>Pe||0>=Ke||Pe+Ke>Ct)return null;if(!B.Cc){if(null==B.ga){var Tt;if(B.ga=new i_,(Tt=null==B.ga)||(Tt=ae.width*ae.o,O(0==B.Gb.length),B.Gb=ue(Tt),B.Uc=0,null==B.Gb?Tt=0:(B.mb=B.Gb,B.nb=B.Uc,B.rc=null,Tt=1),Tt=!Tt),!Tt){var Rt=B.Fa,Pt=B.P,Xt=B.qc,jn=B.mb,Qn=B.nb,di=Pt+1,Xn=Xt-1,gr=(Tt=B.ga).l;if(O(null!=Rt&&null!=jn&&null!=ae),jd[0]=null,jd[1]=Yl,jd[2]=Rg,jd[3]=qh,Tt.ca=jn,Tt.tb=Qn,Tt.c=ae.width,Tt.i=ae.height,O(0<Tt.c&&0<Tt.i),1>=Xt)ae=0;else if(Tt.$a=3&Rt[Pt+0],Tt.Z=Rt[Pt+0]>>2&3,Tt.Lc=Rt[Pt+0]>>4&3,Pt=Rt[Pt+0]>>6&3,0>Tt.$a||1<Tt.$a||4<=Tt.Z||1<Tt.Lc||Pt)ae=0;else if(gr.put=Bp,gr.ac=Mu,gr.bc=Vp,gr.ma=Tt,gr.width=ae.width,gr.height=ae.height,gr.Da=ae.Da,gr.v=ae.v,gr.va=ae.va,gr.j=ae.j,gr.o=ae.o,Tt.$a)e:{O(1==Tt.$a),ae=bu();t:for(;;){if(null==ae){ae=0;break e}if(O(null!=Tt),Tt.mc=ae,ae.c=Tt.c,ae.i=Tt.i,ae.l=Tt.l,ae.l.ma=Tt,ae.l.width=Tt.c,ae.l.height=Tt.i,ae.a=0,li(ae.m,Rt,di,Xn),!Qu(Tt.c,Tt.i,1,ae,null)||(1==ae.ab&&3==ae.gc[0].hc&&Mf(ae.s)?(Tt.ic=1,Rt=ae.c*ae.i,ae.Ta=null,ae.Ua=0,ae.V=ue(Rt),ae.Ba=0,null==ae.V?(ae.a=1,ae=0):ae=1):(Tt.ic=0,ae=Gd(ae,Tt.c)),!ae))break t;ae=1;break e}Tt.mc=null,ae=0}else ae=Xn>=Tt.c*Tt.i;Tt=!ae}if(Tt)return null;1!=B.ga.Lc?B.Ga=0:Ke=Ct-Pe}O(null!=B.ga),O(Pe+Ke<=Ct);e:{if(ae=(Rt=B.ga).c,Ct=Rt.l.o,0==Rt.$a){if(di=B.rc,Xn=B.Vc,gr=B.Fa,Xt=B.mb,jn=B.nb+Pe*ae,O((Pt=B.P+1+Pe*ae)<=B.P+B.qc),0!=Rt.Z)for(O(null!=jd[Rt.Z]),Tt=0;Tt<Ke;++Tt)jd[Rt.Z](di,Xn,gr,Pt,Xt,jn,ae),di=Xt,Xn=jn,jn+=ae,Pt+=ae;else for(Tt=0;Tt<Ke;++Tt)ie(Xt,jn,gr,Pt,ae),di=Xt,Xn=jn,jn+=ae,Pt+=ae;B.rc=di,B.Vc=Xn}else{if(O(null!=Rt.mc),ae=Pe+Ke,O(null!=(Tt=Rt.mc)),O(ae<=Tt.i),Tt.C>=ae)ae=1;else if(Rt.ic||Jn(),Rt.ic){Rt=Tt.V,di=Tt.Ba;var mi=Tt.i,Bn=(gr=1,Pt=Tt.$/(Xn=Tt.c),Xt=Tt.$%Xn,jn=Tt.m,Qn=Tt.s,Tt.$),Un=Xn*mi,Fi=Xn*ae,_r=Qn.wc,ar=Bn<Fi?La(Qn,Xt,Pt):null;O(Bn<=Un),O(ae<=mi),O(Mf(Qn));t:for(;;){for(;!jn.h&&Bn<Fi;){if(Xt&_r||(ar=La(Qn,Xt,Pt)),O(null!=ar),zn(jn),256>(mi=Nd(ar.G[0],ar.H[0],jn)))Rt[di+Bn]=mi,++Bn,++Xt>=Xn&&(Xt=0,++Pt<=ae&&!(Pt%16)&&Yh(Tt,Pt));else{if(!(280>mi)){gr=0;break t}mi=jp(mi-256,jn);var wo,Yr=Nd(ar.G[4],ar.H[4],jn);if(zn(jn),!(Bn>=(Yr=Hp(Xn,Yr=jp(Yr,jn)))&&Un-Bn>=mi)){gr=0;break t}for(wo=0;wo<mi;++wo)Rt[di+Bn+wo]=Rt[di+Bn+wo-Yr];for(Bn+=mi,Xt+=mi;Xt>=Xn;)Xt-=Xn,++Pt<=ae&&!(Pt%16)&&Yh(Tt,Pt);Bn<Fi&&Xt&_r&&(ar=La(Qn,Xt,Pt))}O(jn.h==mn(jn))}Yh(Tt,Pt>ae?ae:Pt);break t}!gr||jn.h&&Bn<Un?(gr=0,Tt.a=jn.h?5:3):Tt.$=Bn,ae=gr}else ae=Ku(Tt,Tt.V,Tt.Ba,Tt.c,Tt.i,ae,Zv);if(!ae){Ke=0;break e}}Pe+Ke>=Ct&&(B.Cc=1),Ke=1}if(!Ke)return null;if(B.Cc&&(null!=(Ke=B.ga)&&(Ke.mc=null),B.ga=null,0<B.Ga))return alert("todo:WebPDequantizeLevels"),null}return B.nb+Pe*_t}function Ee(B,ae,Pe,Ke,_t,Ct){for(;0<_t--;){var Tt,Rt=B,Pt=ae+(Pe?1:0),Xt=B,jn=ae+(Pe?0:3);for(Tt=0;Tt<Ke;++Tt){var Qn=Xt[jn+4*Tt];255!=Qn&&(Rt[Pt+4*Tt+0]=Rt[Pt+4*Tt+0]*(Qn*=32897)>>23,Rt[Pt+4*Tt+1]=Rt[Pt+4*Tt+1]*Qn>>23,Rt[Pt+4*Tt+2]=Rt[Pt+4*Tt+2]*Qn>>23)}ae+=Ct}}function ht(B,ae,Pe,Ke,_t){for(;0<Ke--;){var Ct;for(Ct=0;Ct<Pe;++Ct){var Tt=B[ae+2*Ct+0],Rt=15&(Xt=B[ae+2*Ct+1]),Pt=4369*Rt,Xt=(240&Xt|Xt>>4)*Pt>>16;B[ae+2*Ct+0]=(240&Tt|Tt>>4)*Pt>>16&240|(15&Tt|Tt<<4)*Pt>>16>>4&15,B[ae+2*Ct+1]=240&Xt|Rt}ae+=_t}}function sn(B,ae,Pe,Ke,_t,Ct,Tt,Rt){var Pt,Xt,jn=255;for(Xt=0;Xt<_t;++Xt){for(Pt=0;Pt<Ke;++Pt){var Qn=B[ae+Pt];Ct[Tt+4*Pt]=Qn,jn&=Qn}ae+=Pe,Tt+=Rt}return 255!=jn}function Pn(B,ae,Pe,Ke,_t){var Ct;for(Ct=0;Ct<_t;++Ct)Pe[Ke+Ct]=B[ae+Ct]>>8}function Jn(){Vd=Ee,ac=ht,lc=sn,Tu=Pn}function zi(B,ae,Pe){bn[B]=function(Ke,_t,Ct,Tt,Rt,Pt,Xt,jn,Qn,di,Xn,gr,mi,Bn,Un,Fi,_r){var ar,wo=_r-1>>1,Yr=Rt[Pt+0]|Xt[jn+0]<<16,ys=Qn[di+0]|Xn[gr+0]<<16;O(null!=Ke);var To=3*Yr+ys+131074>>2;for(ae(Ke[_t+0],255&To,To>>16,mi,Bn),null!=Ct&&ae(Ct[Tt+0],255&(To=3*ys+Yr+131074>>2),To>>16,Un,Fi),ar=1;ar<=wo;++ar){var Tl=Rt[Pt+ar]|Xt[jn+ar]<<16,Sl=Qn[di+ar]|Xn[gr+ar]<<16,fl=Yr+Tl+ys+Sl+524296,fa=fl+2*(Tl+ys)>>3;To=fa+Yr>>1,Yr=(fl=fl+2*(Yr+Sl)>>3)+Tl>>1,ae(Ke[_t+2*ar-1],255&To,To>>16,mi,Bn+(2*ar-1)*Pe),ae(Ke[_t+2*ar-0],255&Yr,Yr>>16,mi,Bn+(2*ar-0)*Pe),null!=Ct&&(Yr=fa+Sl>>1,ae(Ct[Tt+2*ar-1],255&(To=fl+ys>>1),To>>16,Un,Fi+(2*ar-1)*Pe),ae(Ct[Tt+2*ar+0],255&Yr,Yr>>16,Un,Fi+(2*ar+0)*Pe)),Yr=Tl,ys=Sl}1&_r||(ae(Ke[_t+_r-1],255&(To=3*Yr+ys+131074>>2),To>>16,mi,Bn+(_r-1)*Pe),null!=Ct&&ae(Ct[Tt+_r-1],255&(To=3*ys+Yr+131074>>2),To>>16,Un,Fi+(_r-1)*Pe))}}function Nr(){eu[u_]=LT,eu[d_]=Zh,eu[E0]=Xm,eu[Vg]=Su,eu[y1]=pC,eu[p_]=I0,eu[jg]=A0,eu[Hg]=Zh,eu[b1]=Su,eu[C1]=pC,eu[zm]=I0}function zr(B){return B&~E1?0>B?0:255:B>>hC}function Zr(B,ae){return zr((19077*B>>8)+(26149*ae>>8)-14234)}function aa(B,ae,Pe){return zr((19077*B>>8)-(6419*ae>>8)-(13320*Pe>>8)+8708)}function ra(B,ae){return zr((19077*B>>8)+(33050*ae>>8)-17685)}function Cl(B,ae,Pe,Ke,_t){Ke[_t+0]=Zr(B,Pe),Ke[_t+1]=aa(B,ae,Pe),Ke[_t+2]=ra(B,ae)}function yc(B,ae,Pe,Ke,_t){Ke[_t+0]=ra(B,ae),Ke[_t+1]=aa(B,ae,Pe),Ke[_t+2]=Zr(B,Pe)}function Wl(B,ae,Pe,Ke,_t){var Ct=aa(B,ae,Pe);ae=Ct<<3&224|ra(B,ae)>>3,Ke[_t+0]=248&Zr(B,Pe)|Ct>>5,Ke[_t+1]=ae}function Jl(B,ae,Pe,Ke,_t){var Ct=240&ra(B,ae)|15;Ke[_t+0]=240&Zr(B,Pe)|aa(B,ae,Pe)>>4,Ke[_t+1]=Ct}function Ca(B,ae,Pe,Ke,_t){Ke[_t+0]=255,Cl(B,ae,Pe,Ke,_t+1)}function Ou(B,ae,Pe,Ke,_t){yc(B,ae,Pe,Ke,_t),Ke[_t+3]=255}function _h(B,ae,Pe,Ke,_t){Cl(B,ae,Pe,Ke,_t),Ke[_t+3]=255}function sp(B,ae){return 0>B?0:B>ae?ae:B}function Pf(B,ae,Pe){bn[B]=function(Ke,_t,Ct,Tt,Rt,Pt,Xt,jn,Qn){for(var di=jn+(-2&Qn)*Pe;jn!=di;)ae(Ke[_t+0],Ct[Tt+0],Rt[Pt+0],Xt,jn),ae(Ke[_t+1],Ct[Tt+0],Rt[Pt+0],Xt,jn+Pe),_t+=2,++Tt,++Pt,jn+=2*Pe;1&Qn&&ae(Ke[_t+0],Ct[Tt+0],Rt[Pt+0],Xt,jn)}}function w0(B,ae,Pe){return 0==Pe?0==B?0==ae?6:5:0==ae?4:0:Pe}function Og(B,ae,Pe,Ke,_t){switch(B>>>30){case 3:gm(ae,Pe,Ke,_t,0);break;case 2:Jc(ae,Pe,Ke,_t);break;case 1:yp(ae,Pe,Ke,_t)}}function r_(B,ae){var Pe,Ke,_t=ae.M,Ct=ae.Nb,Tt=B.oc,Rt=B.pc+40,Pt=B.oc,Xt=B.pc+584,jn=B.oc,Qn=B.pc+600;for(Pe=0;16>Pe;++Pe)Tt[Rt+32*Pe-1]=129;for(Pe=0;8>Pe;++Pe)Pt[Xt+32*Pe-1]=129,jn[Qn+32*Pe-1]=129;for(0<_t?Tt[Rt-1-32]=Pt[Xt-1-32]=jn[Qn-1-32]=129:(ge(Tt,Rt-32-1,127,21),ge(Pt,Xt-32-1,127,9),ge(jn,Qn-32-1,127,9)),Ke=0;Ke<B.za;++Ke){var di=ae.ya[ae.aa+Ke];if(0<Ke){for(Pe=-1;16>Pe;++Pe)ie(Tt,Rt+32*Pe-4,Tt,Rt+32*Pe+12,4);for(Pe=-1;8>Pe;++Pe)ie(Pt,Xt+32*Pe-4,Pt,Xt+32*Pe+4,4),ie(jn,Qn+32*Pe-4,jn,Qn+32*Pe+4,4)}var Xn=B.Gd,gr=B.Hd+Ke,mi=di.ad,Bn=di.Hc;if(0<_t&&(ie(Tt,Rt-32,Xn[gr].y,0,16),ie(Pt,Xt-32,Xn[gr].f,0,8),ie(jn,Qn-32,Xn[gr].ea,0,8)),di.Za){var Un=Tt,Fi=Rt-32+16;for(0<_t&&(Ke>=B.za-1?ge(Un,Fi,Xn[gr].y[15],4):ie(Un,Fi,Xn[gr+1].y,0,4)),Pe=0;4>Pe;Pe++)Un[Fi+128+Pe]=Un[Fi+256+Pe]=Un[Fi+384+Pe]=Un[Fi+0+Pe];for(Pe=0;16>Pe;++Pe,Bn<<=2)bh[di.Ob[Pe]](Un=Tt,Fi=Rt+mC[Pe]),Og(Bn,mi,16*+Pe,Un,Fi)}else if(Un=w0(Ke,_t,di.Ob[0]),Gf[Un](Tt,Rt),0!=Bn)for(Pe=0;16>Pe;++Pe,Bn<<=2)Og(Bn,mi,16*+Pe,Tt,Rt+mC[Pe]);for(Pe=di.Gc,Un=w0(Ke,_t,di.Dd),Jh[Un](Pt,Xt),Jh[Un](jn,Qn),Bn=mi,Un=Pt,Fi=Xt,255&(di=0|Pe)&&(170&di?Lg(Bn,256,Un,Fi):Qh(Bn,256,Un,Fi)),di=jn,Bn=Qn,255&(Pe>>=8)&&(170&Pe?Lg(mi,320,di,Bn):Qh(mi,320,di,Bn)),_t<B.Ub-1&&(ie(Xn[gr].y,0,Tt,Rt+480,16),ie(Xn[gr].f,0,Pt,Xt+224,8),ie(Xn[gr].ea,0,jn,Qn+224,8)),Xn=B.sa,gr=B.ta+16*Ke+16*Ct*B.R,mi=B.qa,di=B.ra+8*Ke+(Pe=8*Ct*B.B),Bn=B.Ha,Un=B.Ia+8*Ke+Pe,Pe=0;16>Pe;++Pe)ie(Xn,gr+Pe*B.R,Tt,Rt+32*Pe,16);for(Pe=0;8>Pe;++Pe)ie(mi,di+Pe*B.B,Pt,Xt+32*Pe,8),ie(Bn,Un+Pe*B.B,jn,Qn+32*Pe,8)}}function Xh(B,ae,Pe,Ke,_t,Ct,Tt,Rt,Pt){var Xt=[0],jn=[0],Qn=0,di=null!=Pt?Pt.kd:0,Xn=Pt??new $l;if(null==B||12>Pe)return 7;Xn.data=B,Xn.w=ae,Xn.ha=Pe,ae=[ae],Pe=[Pe],Xn.gb=[Xn.gb];e:{var gr=ae,mi=Pe,Bn=Xn.gb;if(O(null!=B),O(null!=mi),O(null!=Bn),Bn[0]=0,12<=mi[0]&&!V(B,gr[0],"RIFF")){if(V(B,gr[0]+8,"WEBP")){Bn=3;break e}var Un=io(B,gr[0]+4);if(12>Un||4294967286<Un){Bn=3;break e}if(di&&Un>mi[0]-8){Bn=7;break e}Bn[0]=Un,gr[0]+=12,mi[0]-=12}Bn=0}if(0!=Bn)return Bn;for(Un=0<Xn.gb[0],Pe=Pe[0];;){e:{var Fi=B;mi=ae,Bn=Pe;var _r=Xt,ar=jn,wo=gr=[0];if((To=Qn=[Qn])[0]=0,8>Bn[0])Bn=7;else{if(!V(Fi,mi[0],"VP8X")){if(10!=io(Fi,mi[0]+4)){Bn=3;break e}if(18>Bn[0]){Bn=7;break e}var Yr=io(Fi,mi[0]+8),ys=1+fo(Fi,mi[0]+12);if(2147483648<=ys*(Fi=1+fo(Fi,mi[0]+15))){Bn=3;break e}null!=wo&&(wo[0]=Yr),null!=_r&&(_r[0]=ys),null!=ar&&(ar[0]=Fi),mi[0]+=18,Bn[0]-=18,To[0]=1}Bn=0}}if(Qn=Qn[0],0!=Bn)return Bn;if(mi=!!(2&(gr=gr[0])),!Un&&Qn)return 3;if(null!=Ct&&(Ct[0]=!!(16&gr)),null!=Tt&&(Tt[0]=mi),null!=Rt&&(Rt[0]=0),Tt=Xt[0],gr=jn[0],Qn&&mi&&null==Pt){Bn=0;break}if(4>Pe){Bn=7;break}if(Un&&Qn||!Un&&!Qn&&!V(B,ae[0],"ALPH")){Pe=[Pe],Xn.na=[Xn.na],Xn.P=[Xn.P],Xn.Sa=[Xn.Sa];e:{Bn=ae,Un=Pe;var To=Xn.gb;_r=Xn.na,ar=Xn.P,wo=Xn.Sa,ys=22,O(null!=(Yr=B)),O(null!=Un),Fi=Bn[0];var Tl=Un[0];for(O(null!=_r),O(null!=wo),_r[0]=null,ar[0]=null,wo[0]=0;;){if(Bn[0]=Fi,Un[0]=Tl,8>Tl){Bn=7;break e}var Sl=io(Yr,Fi+4);if(4294967286<Sl){Bn=3;break e}var fl=8+Sl+1&-2;if(ys+=fl,0<To&&ys>To){Bn=3;break e}if(!V(Yr,Fi,"VP8 ")||!V(Yr,Fi,"VP8L")){Bn=0;break e}if(Tl[0]<fl){Bn=7;break e}V(Yr,Fi,"ALPH")||(_r[0]=Yr,ar[0]=Fi+8,wo[0]=Sl),Fi+=fl,Tl-=fl}}if(Pe=Pe[0],Xn.na=Xn.na[0],Xn.P=Xn.P[0],Xn.Sa=Xn.Sa[0],0!=Bn)break}Pe=[Pe],Xn.Ja=[Xn.Ja],Xn.xa=[Xn.xa];e:if(To=B,Bn=ae,Un=Pe,_r=Xn.gb[0],ar=Xn.Ja,wo=Xn.xa,Yr=Bn[0],Fi=!V(To,Yr,"VP8 "),ys=!V(To,Yr,"VP8L"),O(null!=To),O(null!=Un),O(null!=ar),O(null!=wo),8>Un[0])Bn=7;else{if(Fi||ys){if(To=io(To,Yr+4),12<=_r&&To>_r-12){Bn=3;break e}if(di&&To>Un[0]-8){Bn=7;break e}ar[0]=To,Bn[0]+=8,Un[0]-=8,wo[0]=ys}else wo[0]=5<=Un[0]&&47==To[Yr+0]&&!(To[Yr+4]>>5),ar[0]=Un[0];Bn=0}if(Pe=Pe[0],Xn.Ja=Xn.Ja[0],Xn.xa=Xn.xa[0],ae=ae[0],0!=Bn)break;if(4294967286<Xn.Ja)return 3;if(null==Rt||mi||(Rt[0]=Xn.xa?2:1),Tt=[Tt],gr=[gr],Xn.xa){if(5>Pe){Bn=7;break}Rt=Tt,di=gr,mi=Ct,null==B||5>Pe?B=0:5<=Pe&&47==B[ae+0]&&!(B[ae+4]>>5)?(Un=[0],To=[0],_r=[0],li(ar=new mt,B,ae,Pe),xs(ar,Un,To,_r)?(null!=Rt&&(Rt[0]=Un[0]),null!=di&&(di[0]=To[0]),null!=mi&&(mi[0]=_r[0]),B=1):B=0):B=0}else{if(10>Pe){Bn=7;break}Rt=gr,null==B||10>Pe||!t_(B,ae+3,Pe-3)?B=0:(di=B[ae+0]|B[ae+1]<<8|B[ae+2]<<16,mi=16383&(B[ae+7]<<8|B[ae+6]),B=16383&(B[ae+9]<<8|B[ae+8]),1&di||3<(di>>1&7)||!(di>>4&1)||di>>5>=Xn.Ja||!mi||!B?B=0:(Tt&&(Tt[0]=mi),Rt&&(Rt[0]=B),B=1))}if(!B||(Tt=Tt[0],gr=gr[0],Qn&&(Xt[0]!=Tt||jn[0]!=gr)))return 3;null!=Pt&&(Pt[0]=Xn,Pt.offset=ae-Pt.w,O(4294967286>ae-Pt.w),O(Pt.offset==Pt.ha-Pe));break}return 0==Bn||7==Bn&&Qn&&null==Pt?(null!=Ct&&(Ct[0]|=null!=Xn.na&&0<Xn.na.length),null!=Ke&&(Ke[0]=Tt),null!=_t&&(_t[0]=gr),0):Bn}function Zi(B,ae,Pe){var Ke=ae.width,_t=ae.height,Ct=0,Tt=0,Rt=Ke,Pt=_t;if(ae.Da=null!=B&&0<B.Da,ae.Da&&(Rt=B.cd,Pt=B.bd,Ct=B.v,Tt=B.j,11>Pe||(Ct&=-2,Tt&=-2),0>Ct||0>Tt||0>=Rt||0>=Pt||Ct+Rt>Ke||Tt+Pt>_t))return 0;if(ae.v=Ct,ae.j=Tt,ae.va=Ct+Rt,ae.o=Tt+Pt,ae.U=Rt,ae.T=Pt,ae.da=null!=B&&0<B.da,ae.da){if(!Yn(Rt,Pt,Pe=[B.ib],Ct=[B.hb]))return 0;ae.ib=Pe[0],ae.hb=Ct[0]}return ae.ob=null!=B&&B.ob,ae.Kb=null==B||!B.Sd,ae.da&&(ae.ob=ae.ib<3*Ke/4&&ae.hb<3*_t/4,ae.Kb=0),1}function m1(B){if(null==B)return 2;if(11>B.S){var ae=B.f.RGBA;ae.fb+=(B.height-1)*ae.A,ae.A=-ae.A}else(ae=B.f.kb).O+=((B=B.height)-1)*ae.fa,ae.fa=-ae.fa,ae.N+=(B-1>>1)*ae.Ab,ae.Ab=-ae.Ab,ae.W+=(B-1>>1)*ae.Db,ae.Db=-ae.Db,null!=ae.F&&(ae.J+=(B-1)*ae.lb,ae.lb=-ae.lb);return 0}function $m(B,ae,Pe,Ke){if(null==Ke||0>=B||0>=ae)return 2;if(null!=Pe){if(Pe.Da){var _t=Pe.cd,Ct=Pe.bd,Tt=-2&Pe.v,Rt=-2&Pe.j;if(0>Tt||0>Rt||0>=_t||0>=Ct||Tt+_t>B||Rt+Ct>ae)return 2;B=_t,ae=Ct}if(Pe.da){if(!Yn(B,ae,_t=[Pe.ib],Ct=[Pe.hb]))return 2;B=_t[0],ae=Ct[0]}}Ke.width=B,Ke.height=ae;e:{var Pt=Ke.width,Xt=Ke.height;if(B=Ke.S,0>=Pt||0>=Xt||!(B>=u_&&13>B))B=2;else{if(0>=Ke.Rd&&null==Ke.sd){Tt=Ct=_t=ae=0;var jn=(Rt=Pt*D1[B])*Xt;if(11>B||(Ct=(Xt+1)/2*(ae=(Pt+1)/2),12==B&&(Tt=(_t=Pt)*Xt)),null==(Xt=ue(jn+2*Ct+Tt))){B=1;break e}Ke.sd=Xt,11>B?((Pt=Ke.f.RGBA).eb=Xt,Pt.fb=0,Pt.A=Rt,Pt.size=jn):((Pt=Ke.f.kb).y=Xt,Pt.O=0,Pt.fa=Rt,Pt.Fd=jn,Pt.f=Xt,Pt.N=0+jn,Pt.Ab=ae,Pt.Cd=Ct,Pt.ea=Xt,Pt.W=0+jn+Ct,Pt.Db=ae,Pt.Ed=Ct,12==B&&(Pt.F=Xt,Pt.J=0+jn+2*Ct),Pt.Tc=Tt,Pt.lb=_t)}if(ae=1,Ct=Ke.width,Tt=Ke.height,(_t=Ke.S)>=u_&&13>_t)if(11>_t)B=Ke.f.RGBA,ae&=(Rt=Math.abs(B.A))*(Tt-1)+Ct<=B.size,ae&=Rt>=Ct*D1[_t],ae&=null!=B.eb;else{B=Ke.f.kb,Rt=(Ct+1)/2,jn=(Tt+1)/2,Pt=Math.abs(B.fa),Xt=Math.abs(B.Ab);var Qn=Math.abs(B.Db),di=Math.abs(B.lb);ae&=Pt*(Tt-1)+Ct<=B.Fd,ae&=Xt*(jn-1)+Rt<=B.Cd,ae=(ae&=Qn*(jn-1)+Rt<=B.Ed)&Pt>=Ct&Xt>=Rt&Qn>=Rt,ae&=null!=B.y,ae&=null!=B.f,ae&=null!=B.ea,12==_t&&(ae&=di>=Ct,ae&=di*(Tt-1)+Ct<=B.Tc,ae&=null!=B.F)}else ae=0;B=ae?0:2}}return 0!=B||null!=Pe&&Pe.fd&&(B=m1(Ke)),B}var Bd=64,zp=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],Et=24,Fg=32,lC=8,qp=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];ro("Predictor0","PredictorAdd0"),bn.Predictor0=function(){return 4278190080},bn.Predictor1=function(B){return B},bn.Predictor2=function(B,ae,Pe){return ae[Pe+0]},bn.Predictor3=function(B,ae,Pe){return ae[Pe+1]},bn.Predictor4=function(B,ae,Pe){return ae[Pe-1]},bn.Predictor5=function(B,ae,Pe){return He(He(B,ae[Pe+1]),ae[Pe+0])},bn.Predictor6=function(B,ae,Pe){return He(B,ae[Pe-1])},bn.Predictor7=function(B,ae,Pe){return He(B,ae[Pe+0])},bn.Predictor8=function(B,ae,Pe){return He(ae[Pe-1],ae[Pe+0])},bn.Predictor9=function(B,ae,Pe){return He(ae[Pe+0],ae[Pe+1])},bn.Predictor10=function(B,ae,Pe){return He(He(B,ae[Pe-1]),He(ae[Pe+0],ae[Pe+1]))},bn.Predictor11=function(B,ae,Pe){var Ke=ae[Pe+0];return 0>=Te(Ke>>24&255,B>>24&255,(ae=ae[Pe-1])>>24&255)+Te(Ke>>16&255,B>>16&255,ae>>16&255)+Te(Ke>>8&255,B>>8&255,ae>>8&255)+Te(255&Ke,255&B,255&ae)?Ke:B},bn.Predictor12=function(B,ae,Pe){var Ke=ae[Pe+0];return(oe((B>>24&255)+(Ke>>24&255)-((ae=ae[Pe-1])>>24&255))<<24|oe((B>>16&255)+(Ke>>16&255)-(ae>>16&255))<<16|oe((B>>8&255)+(Ke>>8&255)-(ae>>8&255))<<8|oe((255&B)+(255&Ke)-(255&ae)))>>>0},bn.Predictor13=function(B,ae,Pe){var Ke=ae[Pe-1];return(ee((B=He(B,ae[Pe+0]))>>24&255,Ke>>24&255)<<24|ee(B>>16&255,Ke>>16&255)<<16|ee(B>>8&255,Ke>>8&255)<<8|ee(255&B,255&Ke))>>>0};var cC=bn.PredictorAdd0;bn.PredictorAdd1=Le,ro("Predictor2","PredictorAdd2"),ro("Predictor3","PredictorAdd3"),ro("Predictor4","PredictorAdd4"),ro("Predictor5","PredictorAdd5"),ro("Predictor6","PredictorAdd6"),ro("Predictor7","PredictorAdd7"),ro("Predictor8","PredictorAdd8"),ro("Predictor9","PredictorAdd9"),ro("Predictor10","PredictorAdd10"),ro("Predictor11","PredictorAdd11"),ro("Predictor12","PredictorAdd12"),ro("Predictor13","PredictorAdd13");var T0=bn.PredictorAdd2;On("ColorIndexInverseTransform","MapARGB","32b",function(B){return B>>8&255},function(B){return B}),On("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(B){return B},function(B){return B>>8&255});var g1,Xp=bn.ColorIndexInverseTransform,Ju=bn.MapARGB,fm=bn.VP8LColorIndexInverseTransformAlpha,Kh=bn.MapAlpha,Pg=bn.VP8LPredictorsAdd=[];Pg.length=16,(bn.VP8LPredictors=[]).length=16,(bn.VP8LPredictorsAdd_C=[]).length=16,(bn.VP8LPredictors_C=[]).length=16;var o_,wd,wl,mm,Lf,yh,_p,gm,Jc,Lg,yp,Qh,S0,v1,s_,a_,bp,fu,Ym,Ng,Td,l_,uC,bc,Vd,ac,lc,Tu,Zc=ue(511),Wm=ue(2041),Gg=ue(225),Bg=ue(767),c_=0,_1=Wm,x0=Gg,Cp=Bg,Kp=Zc,u_=0,d_=1,E0=2,Vg=3,y1=4,p_=5,jg=6,Hg=7,b1=8,C1=9,zm=10,N2=[2,3,7],w1=[3,3,11],G2=[280,256,256,256,40],FT=[0,1,1,1,0],B2=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],V2=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],xP=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],j2=8,T1=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],Ug=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],S1=null,Nf=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],Pl=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],PT=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],$g=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],qm=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],D0=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],x1=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Gf=[],bh=[],Jh=[],dC=1,k0=2,jd=[],eu=[];zi("UpsampleRgbLinePair",Cl,3),zi("UpsampleBgrLinePair",yc,3),zi("UpsampleRgbaLinePair",_h,4),zi("UpsampleBgraLinePair",Ou,4),zi("UpsampleArgbLinePair",Ca,4),zi("UpsampleRgba4444LinePair",Jl,2),zi("UpsampleRgb565LinePair",Wl,2);var LT=bn.UpsampleRgbLinePair,Xm=bn.UpsampleBgrLinePair,Zh=bn.UpsampleRgbaLinePair,Su=bn.UpsampleBgraLinePair,pC=bn.UpsampleArgbLinePair,I0=bn.UpsampleRgba4444LinePair,A0=bn.UpsampleRgb565LinePair,Ch=16,Yg=1<<Ch-1,vm=-227,Wg=482,hC=6,E1=(256<<hC)-1,h_=0,NT=ue(256),f_=ue(256),Km=ue(256),M0=ue(256),zg=ue(Wg-vm),fC=ue(Wg-vm);Pf("YuvToRgbRow",Cl,3),Pf("YuvToBgrRow",yc,3),Pf("YuvToRgbaRow",_h,4),Pf("YuvToBgraRow",Ou,4),Pf("YuvToArgbRow",Ca,4),Pf("YuvToRgba4444Row",Jl,2),Pf("YuvToRgb565Row",Wl,2);var mC=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],m_=[0,2,8],R0=[8,7,6,4,4,2,2,2,1,1,1,1];this.WebPDecodeRGBA=function(B,ae,Pe,Ke,_t){var Ct=d_,Tt=new Ja,Rt=new Np;Tt.ba=Rt,Rt.S=Ct,Rt.width=[Rt.width],Rt.height=[Rt.height];var Pt=Rt.width,Xt=Rt.height,jn=new Gp;if(null==jn||null==B)var Qn=2;else O(null!=jn),Qn=Xh(B,ae,Pe,jn.width,jn.height,jn.Pd,jn.Qd,jn.format,null);if(0!=Qn?Pt=0:(null!=Pt&&(Pt[0]=jn.width[0]),null!=Xt&&(Xt[0]=jn.height[0]),Pt=1),Pt){Rt.width=Rt.width[0],Rt.height=Rt.height[0],null!=Ke&&(Ke[0]=Rt.width),null!=_t&&(_t[0]=Rt.height);e:{if(Ke=new Mg,(_t=new $l).data=B,_t.w=ae,_t.ha=Pe,_t.kd=1,ae=[0],O(null!=_t),(0==(B=Xh(_t.data,_t.w,_t.ha,null,null,null,ae,null,_t))||7==B)&&ae[0]&&(B=4),0==(ae=B)){if(O(null!=Tt),Ke.data=_t.data,Ke.w=_t.w+_t.offset,Ke.ha=_t.ha-_t.offset,Ke.put=Bp,Ke.ac=Mu,Ke.bc=Vp,Ke.ma=Tt,_t.xa){if(null==(B=bu())){Tt=1;break e}if(function(di,Xn){var gr=[0],mi=[0],Bn=[0];t:for(;;){if(null==di)return 0;if(null==Xn)return di.a=2,0;if(di.l=Xn,di.a=0,li(di.m,Xn.data,Xn.w,Xn.ha),!xs(di.m,gr,mi,Bn)){di.a=3;break t}if(di.xb=k0,Xn.width=gr[0],Xn.height=mi[0],!Qu(gr[0],mi[0],1,di,null))break t;return 1}return O(0!=di.a),0}(B,Ke)){if(Ke=0==(ae=$m(Ke.width,Ke.height,Tt.Oa,Tt.ba))){t:{Ke=B;n:for(;;){if(null==Ke){Ke=0;break t}if(O(null!=Ke.s.yc),O(null!=Ke.s.Ya),O(0<Ke.s.Wb),O(null!=(Pe=Ke.l)),O(null!=(_t=Pe.ma)),0!=Ke.xb){if(Ke.ca=_t.ba,Ke.tb=_t.tb,O(null!=Ke.ca),!Zi(_t.Oa,Pe,Vg)){Ke.a=2;break n}if(!Gd(Ke,Pe.width)||Pe.da)break n;if((Pe.da||zs(Ke.ca.S))&&Jn(),11>Ke.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=Ke.ca.f.kb.F&&Jn()),Ke.Pb&&0<Ke.s.ua&&null==Ke.s.vb.X&&!As(Ke.s.vb,Ke.s.Wa.Xa)){Ke.a=1;break n}Ke.xb=0}if(!Ku(Ke,Ke.V,Ke.Ba,Ke.c,Ke.i,Pe.o,hl))break n;_t.Dc=Ke.Ma,Ke=1;break t}O(0!=Ke.a),Ke=0}Ke=!Ke}Ke&&(ae=B.a)}else ae=B.a}else{if(null==(B=new a1)){Tt=1;break e}if(B.Fa=_t.na,B.P=_t.P,B.qc=_t.Sa,dd(B,Ke)){if(0==(ae=$m(Ke.width,Ke.height,Tt.Oa,Tt.ba))){if(B.Aa=0,Pe=Tt.Oa,O(null!=(_t=B)),null!=Pe){if(0<(Pt=0>(Pt=Pe.Md)?0:100<Pt?255:255*Pt/100)){for(Xt=jn=0;4>Xt;++Xt)12>(Qn=_t.pb[Xt]).lc&&(Qn.ia=Pt*R0[0>Qn.lc?0:Qn.lc]>>3),jn|=Qn.ia;jn&&(alert("todo:VP8InitRandom"),_t.ia=1)}_t.Ga=Pe.Id,100<_t.Ga?_t.Ga=100:0>_t.Ga&&(_t.Ga=0)}(function U(B,ae){if(null==B)return 0;if(null==ae)return Cu(B,2,"NULL VP8Io parameter in VP8Decode().");if(!B.cb&&!dd(B,ae))return 0;if(O(B.cb),null==ae.ac||ae.ac(ae)){ae.ob&&(B.L=0);var Pe=m_[B.L];if(2==B.L?(B.yb=0,B.zb=0):(B.yb=ae.v-Pe>>4,B.zb=ae.j-Pe>>4,0>B.yb&&(B.yb=0),0>B.zb&&(B.zb=0)),B.Va=ae.o+15+Pe>>4,B.Hb=ae.va+15+Pe>>4,B.Hb>B.za&&(B.Hb=B.za),B.Va>B.Ub&&(B.Va=B.Ub),0<B.L){var Ke=B.ed;for(Pe=0;4>Pe;++Pe){var _t;if(B.Qa.Cb){var Ct=B.Qa.Lb[Pe];B.Qa.Fb||(Ct+=Ke.Tb)}else Ct=Ke.Tb;for(_t=0;1>=_t;++_t){var Tt=B.gd[Pe][_t],Rt=Ct;if(Ke.Pc&&(Rt+=Ke.vd[0],_t&&(Rt+=Ke.od[0])),0<(Rt=0>Rt?0:63<Rt?63:Rt)){var Pt=Rt;0<Ke.wb&&(Pt=4<Ke.wb?Pt>>2:Pt>>1)>9-Ke.wb&&(Pt=9-Ke.wb),1>Pt&&(Pt=1),Tt.dd=Pt,Tt.tc=2*Rt+Pt,Tt.ld=40<=Rt?2:15<=Rt?1:0}else Tt.tc=0;Tt.La=_t}}}Pe=0}else Cu(B,6,"Frame setup failed"),Pe=B.a;if(Pe=0==Pe){if(Pe){B.$c=0,0<B.Aa||(B.Ic=1);e:{Ke=4*(Pt=B.za);var Xt=32*Pt,jn=Pt+1,Qn=0<B.L?Pt*(0<B.Aa?2:1):0,di=(2==B.Aa?2:1)*Pt;if((Tt=Ke+832+(_t=3*(16*(Pe=B.Ic)+m_[B.L])/2*Xt)+(Ct=null!=B.Fa&&0<B.Fa.length?B.Kc.c*B.Kc.i:0))!=Tt)Pe=0;else{if(Tt>B.Vb){if(B.Vb=0,B.Ec=ue(Tt),B.Fc=0,null==B.Ec){Pe=Cu(B,1,"no memory during frame initialization.");break e}B.Vb=Tt}Rt=B.Fc,B.Ac=Tt=B.Ec,B.Bc=Rt,Rt+=Ke,B.Gd=Me(Xt,ud),B.Hd=0,B.rb=Me(jn+1,rr),B.sb=1,B.wa=Qn?Me(Qn,vp):null,B.Y=0,B.D.Nb=0,B.D.wa=B.wa,B.D.Y=B.Y,0<B.Aa&&(B.D.Y+=Pt),O(!0),B.oc=Tt,B.pc=Rt,Rt+=832,B.ya=Me(di,_c),B.aa=0,B.D.ya=B.ya,B.D.aa=B.aa,2==B.Aa&&(B.D.aa+=Pt),B.R=16*Pt,B.B=8*Pt,Pt=(Xt=m_[B.L])*B.R,Xt=Xt/2*B.B,B.sa=Tt,B.ta=Rt+Pt,B.qa=B.sa,B.ra=B.ta+16*Pe*B.R+Xt,B.Ha=B.qa,B.Ia=B.ra+8*Pe*B.B+Xt,B.$c=0,Rt+=_t,B.mb=Ct?Tt:null,B.nb=Ct?Rt:null,O(Rt+Ct<=B.Fc+B.Vb),Vo(B),ge(B.Ac,B.Bc,0,Ke),Pe=1}}if(Pe){if(ae.ka=0,ae.y=B.sa,ae.O=B.ta,ae.f=B.qa,ae.N=B.ra,ae.ea=B.Ha,ae.Vd=B.Ia,ae.fa=B.R,ae.Rc=B.B,ae.F=null,ae.J=0,!c_){for(Pe=-255;255>=Pe;++Pe)Zc[255+Pe]=0>Pe?-Pe:Pe;for(Pe=-1020;1020>=Pe;++Pe)Wm[1020+Pe]=-128>Pe?-128:127<Pe?127:Pe;for(Pe=-112;112>=Pe;++Pe)Gg[112+Pe]=-16>Pe?-16:15<Pe?15:Pe;for(Pe=-255;510>=Pe;++Pe)Bg[255+Pe]=0>Pe?0:255<Pe?255:Pe;c_=1}_p=wu,gm=Li,Lg=Co,yp=ls,Qh=Es,Jc=In,S0=Nn,v1=mo,s_=RT,a_=ms,bp=qo,fu=zh,Ym=h1,Ng=f1,Td=C0,l_=Hc,uC=Cd,bc=p1,bh[0]=gh,bh[1]=mh,bh[2]=y0,bh[3]=c1,bh[4]=n_,bh[5]=hm,bh[6]=b0,bh[7]=hd,bh[8]=d1,bh[9]=u1,Gf[0]=_0,Gf[1]=v0,Gf[2]=pd,Gf[3]=Rf,Gf[4]=bd,Gf[5]=sa,Gf[6]=Um,Jh[0]=Mc,Jh[1]=l1,Jh[2]=oC,Jh[3]=Of,Jh[4]=vh,Jh[5]=MT,Jh[6]=qi,Pe=1}else Pe=0}Pe&&(Pe=function(Xn,gr){for(Xn.M=0;Xn.M<Xn.Va;++Xn.M){var mi,Bn=Xn.Jc[Xn.M&Xn.Xb],Un=Xn.m,Fi=Xn;for(mi=0;mi<Fi.za;++mi){var _r=Un,ar=Fi,wo=ar.Ac,Yr=ar.Bc+4*mi,ys=ar.zc,To=ar.ya[ar.aa+mi];if(To.$b=ar.Qa.Bb?yi(_r,ar.Pa.jb[0])?2+yi(_r,ar.Pa.jb[2]):yi(_r,ar.Pa.jb[1]):0,ar.kc&&(To.Ad=yi(_r,ar.Bd)),To.Za=!yi(_r,145)+0,To.Za){var Tl=To.Ob,Sl=0;for(ar=0;4>ar;++ar){var fl,fa=ys[0+ar];for(fl=0;4>fl;++fl){for(var cc=PT[yi(_r,(fa=qm[wo[Yr+fl]][fa])[0])];0<cc;)cc=PT[2*cc+yi(_r,fa[cc])];wo[Yr+fl]=fa=-cc}ie(Tl,Sl,wo,Yr,4),Sl+=4,ys[0+ar]=fa}}else fa=yi(_r,156)?yi(_r,128)?1:3:yi(_r,163)?2:0,To.Ob[0]=fa,ge(wo,Yr,fa,4),ge(ys,0,fa,4);To.Dd=yi(_r,142)?yi(_r,114)?yi(_r,183)?1:3:2:0}if(Fi.m.Ka)return Cu(Xn,7,"Premature end-of-partition0 encountered.");for(;Xn.ja<Xn.za;++Xn.ja){if(Fi=Bn,_r=(Un=Xn).rb[Un.sb-1],wo=Un.rb[Un.sb+Un.ja],mi=Un.ya[Un.aa+Un.ja],Yr=Un.kc?mi.Ad:0)_r.la=wo.la=0,mi.Za||(_r.Na=wo.Na=0),mi.Hc=0,mi.Gc=0,mi.ia=0;else{var Ll,Zs;if(_r=wo,wo=Fi,Yr=Un.Pa.Xc,To=Un.pb[(ys=Un.ya[Un.aa+Un.ja]).$b],Sl=Un.rb[Un.sb-1],fa=fl=0,ge(ar=ys.ad,Tl=0,0,384),ys.Za)var tu=0,ap=Yr[3];else{cc=ue(16);var Rc=_r.Na+Sl.Na;if(Rc=S1(wo,Yr[1],Rc,To.Eb,0,cc,0),_r.Na=Sl.Na=(0<Rc)+0,1<Rc)_p(cc,0,ar,Tl);else{var md=cc[0]+3>>3;for(cc=0;256>cc;cc+=16)ar[Tl+cc]=md}tu=1,ap=Yr[0]}var wa=15&_r.la,wp=15&Sl.la;for(cc=0;4>cc;++cc){var zl=1&wp;for(md=Zs=0;4>md;++md)wa=wa>>1|(zl=(Rc=S1(wo,ap,Rc=zl+(1&wa),To.Sc,tu,ar,Tl))>tu)<<7,Zs=Zs<<2|(3<Rc?3:1<Rc?2:0!=ar[Tl+0]),Tl+=16;wa>>=4,wp=wp>>1|zl<<7,fl=(fl<<8|Zs)>>>0}for(ap=wa,tu=wp>>4,Ll=0;4>Ll;Ll+=2){for(Zs=0,wa=_r.la>>4+Ll,wp=Sl.la>>4+Ll,cc=0;2>cc;++cc){for(zl=1&wp,md=0;2>md;++md)wa=wa>>1|(zl=0<(Rc=S1(wo,Yr[2],Rc=zl+(1&wa),To.Qc,0,ar,Tl)))<<3,Zs=Zs<<2|(3<Rc?3:1<Rc?2:0!=ar[Tl+0]),Tl+=16;wa>>=2,wp=wp>>1|zl<<5}fa|=Zs<<4*Ll,ap|=wa<<4<<Ll,tu|=(240&wp)<<Ll}_r.la=ap,Sl.la=tu,ys.Hc=fl,ys.Gc=fa,ys.ia=43690&fa?0:To.ia,Yr=!(fl|fa)}if(0<Un.L&&(Un.wa[Un.Y+Un.ja]=Un.gd[mi.$b][mi.Za],Un.wa[Un.Y+Un.ja].La|=!Yr),Fi.Ka)return Cu(Xn,7,"Premature end-of-file encountered.")}if(Vo(Xn),Un=gr,Fi=1,mi=(Bn=Xn).D,_r=0<Bn.L&&Bn.M>=Bn.zb&&Bn.M<=Bn.Va,0==Bn.Aa)e:{if(mi.M=Bn.M,mi.uc=_r,r_(Bn,mi),Fi=1,mi=(Zs=Bn.D).Nb,_r=(fa=m_[Bn.L])*Bn.R,Yr=Bn.sa,ys=Bn.ta-_r+(cc=16*mi*Bn.R),To=Bn.qa,ar=Bn.ra-(wo=fa/2*Bn.B)+(md=8*mi*Bn.B),Tl=Bn.Ha,Sl=Bn.Ia-wo+md,wp=0==(wa=Zs.M),fl=wa>=Bn.Va-1,2==Bn.Aa&&r_(Bn,Zs),Zs.uc)for(zl=(Rc=Bn).D.M,O(Rc.D.uc),Zs=Rc.yb;Zs<Rc.Hb;++Zs){ap=zl;var Fu=(Hd=(Uc=Rc).D).Nb,Hd=Hd.wa[Hd.Y+(tu=Zs)],Ud=Uc.sa,wh=Uc.ta+16*Fu*(Ll=Uc.R)+16*tu,Th=Hd.dd,Sd=Hd.tc;if(0!=Sd)if(O(3<=Sd),1==Uc.L)0<tu&&l_(Ud,wh,Ll,Sd+4),Hd.La&&bc(Ud,wh,Ll,Sd),0<ap&&Td(Ud,wh,Ll,Sd+4),Hd.La&&uC(Ud,wh,Ll,Sd);else{var _m=Uc.B,Tp=Uc.qa,Sh=Uc.ra+8*Fu*_m+8*tu,ef=Uc.Ha,Uc=Uc.Ia+8*Fu*_m+8*tu;Fu=Hd.ld,0<tu&&(v1(Ud,wh,Ll,Sd+4,Th,Fu),a_(Tp,Sh,ef,Uc,_m,Sd+4,Th,Fu)),Hd.La&&(fu(Ud,wh,Ll,Sd,Th,Fu),Ng(Tp,Sh,ef,Uc,_m,Sd,Th,Fu)),0<ap&&(S0(Ud,wh,Ll,Sd+4,Th,Fu),s_(Tp,Sh,ef,Uc,_m,Sd+4,Th,Fu)),Hd.La&&(bp(Ud,wh,Ll,Sd,Th,Fu),Ym(Tp,Sh,ef,Uc,_m,Sd,Th,Fu))}}if(Bn.ia&&alert("todo:DitherRow"),null!=Un.put){if(Zs=16*wa,wa=16*(wa+1),wp?(Un.y=Bn.sa,Un.O=Bn.ta+cc,Un.f=Bn.qa,Un.N=Bn.ra+md,Un.ea=Bn.Ha,Un.W=Bn.Ia+md):(Zs-=fa,Un.y=Yr,Un.O=ys,Un.f=To,Un.N=ar,Un.ea=Tl,Un.W=Sl),fl||(wa-=fa),wa>Un.o&&(wa=Un.o),Un.F=null,Un.J=null,null!=Bn.Fa&&0<Bn.Fa.length&&Zs<wa&&(Un.J=Wp(Bn,Un,Zs,wa-Zs),Un.F=Bn.mb,null==Un.F&&0==Un.F.length)){Fi=Cu(Bn,3,"Could not decode alpha data.");break e}Zs<Un.j&&(fa=Un.j-Zs,Zs=Un.j,O(!(1&fa)),Un.O+=Bn.R*fa,Un.N+=Bn.B*(fa>>1),Un.W+=Bn.B*(fa>>1),null!=Un.F&&(Un.J+=Un.width*fa)),Zs<wa&&(Un.O+=Un.v,Un.N+=Un.v>>1,Un.W+=Un.v>>1,null!=Un.F&&(Un.J+=Un.v),Un.ka=Zs-Un.j,Un.U=Un.va-Un.v,Un.T=wa-Zs,Fi=Un.put(Un))}mi+1!=Bn.Ic||fl||(ie(Bn.sa,Bn.ta-_r,Yr,ys+16*Bn.R,_r),ie(Bn.qa,Bn.ra-wo,To,ar+8*Bn.B,wo),ie(Bn.Ha,Bn.Ia-wo,Tl,Sl+8*Bn.B,wo))}if(!Fi)return Cu(Xn,6,"Output aborted.")}return 1}(B,ae)),null!=ae.bc&&ae.bc(ae),Pe&=1}return Pe?(B.cb=0,Pe):0})(B,Ke)||(ae=B.a)}}else ae=B.a}0==ae&&null!=Tt.Oa&&Tt.Oa.fd&&(ae=m1(Tt.ba))}Tt=ae}Ct=0!=Tt?null:11>Ct?Rt.f.RGBA.eb:Rt.f.kb.y}else Ct=null;return Ct};var D1=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function it(bn,ui){for(var ji="",Ut=0;Ut<4;Ut++)ji+=String.fromCharCode(bn[ui++]);return ji}function pt(bn,ui){return(bn[ui+0]|bn[ui+1]<<8|bn[ui+2]<<16)>>>0}function ft(bn,ui){return(bn[ui+0]|bn[ui+1]<<8|bn[ui+2]<<16|bn[ui+3]<<24)>>>0}new Be;var kt=[0],Ze=[0],Qt=[],Ht=new Be,rn=j,St=function(bn,ui){var ji={},Ut=0,jt=!1,Gn=0,Cn=0;if(ji.frames=[],!
/** @license
               * Copyright (c) 2017 Dominik Homberger
              Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
              The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
              THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
              https://webpjs.appspot.com
              WebPRiffParser dominikhlbg@gmail.com
              */
function(on,mn){for(var pi=0;pi<4;pi++)if(on[mn+pi]!="RIFF".charCodeAt(pi))return!0;return!1}(bn,ui)){var Ei,vi;for(ft(bn,ui+=4),ui+=8;ui<bn.length;){var Mi=it(bn,ui),li=ft(bn,ui+=4);ui+=4;var Pi=li+(1&li);switch(Mi){case"VP8 ":case"VP8L":void 0===ji.frames[Ut]&&(ji.frames[Ut]={}),(mt=ji.frames[Ut]).src_off=jt?Cn:ui-8,mt.src_size=Gn+li+8,Ut++,jt&&(jt=!1,Gn=0,Cn=0);break;case"VP8X":(mt=ji.header={}).feature_flags=bn[ui];var Qi=ui+4;mt.canvas_width=1+pt(bn,Qi),mt.canvas_height=1+pt(bn,Qi+=3),Qi+=3;break;case"ALPH":jt=!0,Gn=Pi+8,Cn=ui-8;break;case"ANIM":(mt=ji.header).bgcolor=ft(bn,ui),mt.loop_count=(Ei=bn)[(vi=Qi=ui+4)+0]|Ei[vi+1]<<8,Qi+=2;break;case"ANMF":var no,mt;(mt=ji.frames[Ut]={}).offset_x=2*pt(bn,ui),mt.offset_y=2*pt(bn,ui+=3),mt.width=1+pt(bn,ui+=3),mt.height=1+pt(bn,ui+=3),mt.duration=pt(bn,ui+=3),ui+=3,no=bn[ui++],mt.dispose=1&no,mt.blend=no>>1&1}"ANMF"!=Mi&&(ui+=Pi)}return ji}}(rn,0);St.response=rn,St.rgbaoutput=!0,St.dataurl=!1;var nn=St.header?St.header:null,Vn=St.frames?St.frames:null;if(nn){nn.loop_counter=nn.loop_count,kt=[nn.canvas_height],Ze=[nn.canvas_width];for(var qn=0;qn<Vn.length&&0!=Vn[qn].blend;qn++);}var Ai=Vn[0],sr=Ht.WebPDecodeRGBA(rn,Ai.src_off,Ai.src_size,Ze,kt);Ai.rgba=sr,Ai.imgwidth=Ze[0],Ai.imgheight=kt[0];for(var si=0;si<Ze[0]*kt[0]*4;si++)Qt[si]=sr[si];return this.width=Ze,this.height=kt,this.data=Qt,this}(function(j){var V=function(kt,Ze,Qt,Ht){var rn=4,St=Me;switch(Ht){case j.image_compression.FAST:rn=1,St=ue;break;case j.image_compression.MEDIUM:rn=6,St=Ne;break;case j.image_compression.SLOW:rn=9,St=Be}var nn=Us(kt=ie(kt,Ze,Qt,St),{level:rn});return j.__addimage__.arrayBufferToBinaryString(nn)},ie=function(kt,Ze,Qt,Ht){for(var rn,St,nn,Vn=kt.length/Ze,qn=new Uint8Array(kt.length+Vn),Ai=pt(),sr=0;sr<Vn;sr+=1){if(rn=kt.subarray(nn=sr*Ze,nn+Ze),Ht)qn.set(Ht(rn,Qt,St),nn+sr);else{for(var si,bn=Ai.length,ui=[];si<bn;si+=1)ui[si]=Ai[si](rn,Qt,St);var ji=ft(ui.concat());qn.set(ui[ji],nn+sr)}St=rn}return qn},ge=function(kt){var Ze=Array.apply([],kt);return Ze.unshift(0),Ze},ue=function(kt,Ze){var Ht=[],rn=kt.length;Ht[0]=1;for(var St=0;St<rn;St+=1)Ht[St+1]=kt[St]-(kt[St-Ze]||0)+256&255;return Ht},Me=function(kt,Ze,Qt){var rn=[],St=kt.length;rn[0]=2;for(var nn=0;nn<St;nn+=1)rn[nn+1]=kt[nn]-(Qt&&Qt[nn]||0)+256&255;return rn},Ne=function(kt,Ze,Qt){var St=[],nn=kt.length;St[0]=3;for(var Vn=0;Vn<nn;Vn+=1)St[Vn+1]=kt[Vn]+256-((kt[Vn-Ze]||0)+(Qt&&Qt[Vn]||0)>>>1)&255;return St},Be=function(kt,Ze,Qt){var nn,Vn=[],qn=kt.length;Vn[0]=4;for(var Ai=0;Ai<qn;Ai+=1)nn=it(kt[Ai-Ze]||0,Qt&&Qt[Ai]||0,Qt&&Qt[Ai-Ze]||0),Vn[Ai+1]=kt[Ai]-nn+256&255;return Vn},it=function(kt,Ze,Qt){if(kt===Ze&&Ze===Qt)return kt;var Ht=Math.abs(Ze-Qt),rn=Math.abs(kt-Qt),St=Math.abs(kt+Ze-Qt-Qt);return Ht<=rn&&Ht<=St?kt:rn<=St?Ze:Qt},pt=function(){return[ge,ue,Me,Ne,Be]},ft=function(kt){var Ze=kt.map(function(Qt){return Qt.reduce(function(Ht,rn){return Ht+Math.abs(rn)},0)});return Ze.indexOf(Math.min.apply(null,Ze))};j.processPNG=function(kt,Ze,Qt,Ht){var rn,St,nn,Vn,qn,Ai,sr,si,bn,ui,ji,Ut,jt,Gn,Cn,Ei=this.decode.FLATE_DECODE,vi="";if(this.__addimage__.isArrayBuffer(kt)&&(kt=new Uint8Array(kt)),this.__addimage__.isArrayBufferView(kt)){if(kt=(nn=new ba(kt)).imgData,St=nn.bits,rn=nn.colorSpace,qn=nn.colors,-1!==[4,6].indexOf(nn.colorType)){if(8===nn.bits){bn=(si=32==nn.pixelBitlength?new Uint32Array(nn.decodePixels().buffer):16==nn.pixelBitlength?new Uint16Array(nn.decodePixels().buffer):new Uint8Array(nn.decodePixels().buffer)).length,ji=new Uint8Array(bn*nn.colors),ui=new Uint8Array(bn);var Mi,li=nn.pixelBitlength-nn.bits;for(Gn=0,Cn=0;Gn<bn;Gn++){for(jt=si[Gn],Mi=0;Mi<li;)ji[Cn++]=jt>>>Mi&255,Mi+=nn.bits;ui[Gn]=jt>>>Mi&255}}if(16===nn.bits){bn=(si=new Uint32Array(nn.decodePixels().buffer)).length,ji=new Uint8Array(bn*(32/nn.pixelBitlength)*nn.colors),ui=new Uint8Array(bn*(32/nn.pixelBitlength)),Ut=nn.colors>1,Gn=0,Cn=0;for(var Pi=0;Gn<bn;)jt=si[Gn++],ji[Cn++]=jt>>>0&255,Ut&&(ji[Cn++]=jt>>>16&255,jt=si[Gn++],ji[Cn++]=jt>>>0&255),ui[Pi++]=jt>>>16&255;St=8}Ht!==j.image_compression.NONE?(kt=V(ji,nn.width*nn.colors,nn.colors,Ht),sr=V(ui,nn.width,1,Ht)):(kt=ji,sr=ui,Ei=void 0)}if(3===nn.colorType&&(rn=this.color_spaces.INDEXED,Ai=nn.palette,nn.transparency.indexed)){var Qi=nn.transparency.indexed,no=0;for(Gn=0,bn=Qi.length;Gn<bn;++Gn)no+=Qi[Gn];if((no/=255)==bn-1&&-1!==Qi.indexOf(0))Vn=[Qi.indexOf(0)];else if(no!==bn){for(si=nn.decodePixels(),ui=new Uint8Array(si.length),Gn=0,bn=si.length;Gn<bn;Gn++)ui[Gn]=Qi[si[Gn]];sr=V(ui,nn.width,1)}}var mt=function(on){var mn;switch(on){case j.image_compression.FAST:mn=11;break;case j.image_compression.MEDIUM:mn=13;break;case j.image_compression.SLOW:mn=14;break;default:mn=12}return mn}(Ht);return Ei===this.decode.FLATE_DECODE&&(vi="/Predictor "+mt+" "),vi+="/Colors "+qn+" /BitsPerComponent "+St+" /Columns "+nn.width,(this.__addimage__.isArrayBuffer(kt)||this.__addimage__.isArrayBufferView(kt))&&(kt=this.__addimage__.arrayBufferToBinaryString(kt)),(sr&&this.__addimage__.isArrayBuffer(sr)||this.__addimage__.isArrayBufferView(sr))&&(sr=this.__addimage__.arrayBufferToBinaryString(sr)),{alias:Qt,data:kt,index:Ze,filter:Ei,decodeParameters:vi,transparency:Vn,palette:Ai,sMask:sr,predictor:mt,width:nn.width,height:nn.height,bitsPerComponent:St,colorSpace:rn}}}})(ti.API),function(j){j.processGIF89A=function(O,V,ie,ge){var ue=new Fl(O),Me=ue.width,Ne=ue.height,Be=[];ue.decodeAndBlitFrameRGBA(0,Be);var it={data:Be,width:Me,height:Ne},pt=new Ld(100).encode(it,100);return j.processJPEG.call(this,pt,V,ie,ge)},j.processGIF87A=j.processGIF89A}(ti.API),yu.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var j=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(j);for(var O=0;O<j;O++){var V=this.datav.getUint8(this.pos++,!0),ie=this.datav.getUint8(this.pos++,!0),ge=this.datav.getUint8(this.pos++,!0),ue=this.datav.getUint8(this.pos++,!0);this.palette[O]={red:ge,green:ie,blue:V,quad:ue}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},yu.prototype.parseBGR=function(){this.pos=this.offset;try{var j="bit"+this.bitPP;this.data=new Uint8Array(this.width*this.height*4),this[j]()}catch(V){Bs.log("bit decode error:"+V)}},yu.prototype.bit1=function(){var j,O=Math.ceil(this.width/8),V=O%4;for(j=this.height-1;j>=0;j--){for(var ie=this.bottom_up?j:this.height-1-j,ge=0;ge<O;ge++)for(var ue=this.datav.getUint8(this.pos++,!0),Me=ie*this.width*4+8*ge*4,Ne=0;Ne<8&&8*ge+Ne<this.width;Ne++){var Be=this.palette[ue>>7-Ne&1];this.data[Me+4*Ne]=Be.blue,this.data[Me+4*Ne+1]=Be.green,this.data[Me+4*Ne+2]=Be.red,this.data[Me+4*Ne+3]=255}0!==V&&(this.pos+=4-V)}},yu.prototype.bit4=function(){for(var j=Math.ceil(this.width/2),O=j%4,V=this.height-1;V>=0;V--){for(var ie=this.bottom_up?V:this.height-1-V,ge=0;ge<j;ge++){var ue=this.datav.getUint8(this.pos++,!0),Me=ie*this.width*4+2*ge*4,Be=15&ue,it=this.palette[ue>>4];if(this.data[Me]=it.blue,this.data[Me+1]=it.green,this.data[Me+2]=it.red,this.data[Me+3]=255,2*ge+1>=this.width)break;this.data[Me+4]=(it=this.palette[Be]).blue,this.data[Me+4+1]=it.green,this.data[Me+4+2]=it.red,this.data[Me+4+3]=255}0!==O&&(this.pos+=4-O)}},yu.prototype.bit8=function(){for(var j=this.width%4,O=this.height-1;O>=0;O--){for(var V=this.bottom_up?O:this.height-1-O,ie=0;ie<this.width;ie++){var ge=this.datav.getUint8(this.pos++,!0),ue=V*this.width*4+4*ie;if(ge<this.palette.length){var Me=this.palette[ge];this.data[ue]=Me.red,this.data[ue+1]=Me.green,this.data[ue+2]=Me.blue,this.data[ue+3]=255}else this.data[ue]=255,this.data[ue+1]=255,this.data[ue+2]=255,this.data[ue+3]=255}0!==j&&(this.pos+=4-j)}},yu.prototype.bit15=function(){for(var j=this.width%3,O=parseInt("11111",2),V=this.height-1;V>=0;V--){for(var ie=this.bottom_up?V:this.height-1-V,ge=0;ge<this.width;ge++){var ue=this.datav.getUint16(this.pos,!0);this.pos+=2;var Me=(ue&O)/O*255|0,Ne=(ue>>5&O)/O*255|0,it=ue>>15?255:0,pt=ie*this.width*4+4*ge;this.data[pt]=(ue>>10&O)/O*255|0,this.data[pt+1]=Ne,this.data[pt+2]=Me,this.data[pt+3]=it}this.pos+=j}},yu.prototype.bit16=function(){for(var j=this.width%3,O=parseInt("11111",2),V=parseInt("111111",2),ie=this.height-1;ie>=0;ie--){for(var ge=this.bottom_up?ie:this.height-1-ie,ue=0;ue<this.width;ue++){var Me=this.datav.getUint16(this.pos,!0);this.pos+=2;var Ne=(Me&O)/O*255|0,Be=(Me>>5&V)/V*255|0,pt=ge*this.width*4+4*ue;this.data[pt]=(Me>>11)/O*255|0,this.data[pt+1]=Be,this.data[pt+2]=Ne,this.data[pt+3]=255}this.pos+=j}},yu.prototype.bit24=function(){for(var j=this.height-1;j>=0;j--){for(var O=this.bottom_up?j:this.height-1-j,V=0;V<this.width;V++){var ie=this.datav.getUint8(this.pos++,!0),ge=this.datav.getUint8(this.pos++,!0),ue=this.datav.getUint8(this.pos++,!0),Me=O*this.width*4+4*V;this.data[Me]=ue,this.data[Me+1]=ge,this.data[Me+2]=ie,this.data[Me+3]=255}this.pos+=this.width%4}},yu.prototype.bit32=function(){for(var j=this.height-1;j>=0;j--)for(var O=this.bottom_up?j:this.height-1-j,V=0;V<this.width;V++){var ie=this.datav.getUint8(this.pos++,!0),ge=this.datav.getUint8(this.pos++,!0),ue=this.datav.getUint8(this.pos++,!0),Me=this.datav.getUint8(this.pos++,!0),Ne=O*this.width*4+4*V;this.data[Ne]=ue,this.data[Ne+1]=ge,this.data[Ne+2]=ie,this.data[Ne+3]=Me}},yu.prototype.getData=function(){return this.data},
/**
         * @license
         * Copyright (c) 2018 Aras Abbasi
         *
         * Licensed under the MIT License.
         * http://opensource.org/licenses/mit-license
         */
function(j){j.processBMP=function(O,V,ie,ge){var ue=new yu(O,!1),Me=ue.width,Ne=ue.height,Be={data:ue.getData(),width:Me,height:Ne},it=new Ld(100).encode(Be,100);return j.processJPEG.call(this,it,V,ie,ge)}}(ti.API),Au.prototype.getData=function(){return this.data},
/**
         * @license
         * Copyright (c) 2019 Aras Abbasi
         *
         * Licensed under the MIT License.
         * http://opensource.org/licenses/mit-license
         */
function(j){j.processWEBP=function(O,V,ie,ge){var ue=new Au(O,!1),Me=ue.width,Ne=ue.height,Be={data:ue.getData(),width:Me,height:Ne},it=new Ld(100).encode(Be,100);return j.processJPEG.call(this,it,V,ie,ge)}}(ti.API),ti.API.processRGBA=function(j,O,V){for(var ie=j.data,ge=ie.length,ue=new Uint8Array(ge/4*3),Me=new Uint8Array(ge/4),Ne=0,Be=0,it=0;it<ge;it+=4){var ft=ie[it+1],kt=ie[it+2],Ze=ie[it+3];ue[Ne++]=ie[it],ue[Ne++]=ft,ue[Ne++]=kt,Me[Be++]=Ze}var Qt=this.__addimage__.arrayBufferToBinaryString(ue);return{alpha:this.__addimage__.arrayBufferToBinaryString(Me),data:Qt,index:O,alias:V,colorSpace:"DeviceRGB",bitsPerComponent:8,width:j.width,height:j.height}},ti.API.setLanguage=function(j){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[j]&&(this.internal.languageSettings.languageCode=j,!1===this.internal.languageSettings.isSubscribed&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},cd=(Ol=ti.API).getCharWidthsArray=function(j,O){var V,ie,ge=(O=O||{}).font||this.internal.getFont(),ue=O.fontSize||this.internal.getFontSize(),Me=O.charSpace||this.internal.getCharSpace(),Ne=O.widths?O.widths:ge.metadata.Unicode.widths,Be=Ne.fof?Ne.fof:1,it=O.kerning?O.kerning:ge.metadata.Unicode.kerning,pt=it.fof?it.fof:1,ft=!1!==O.doKerning,kt=0,Ze=j.length,Qt=0,Ht=Ne[0]||Be,rn=[];for(V=0;V<Ze;V++)ie=j.charCodeAt(V),"function"==typeof ge.metadata.widthOfString?rn.push((ge.metadata.widthOfGlyph(ge.metadata.characterToGlyph(ie))+Me*(1e3/ue)||0)/1e3):(kt=ft&&"object"===(0,T.A)(it[ie])&&!isNaN(parseInt(it[ie][Qt],10))?it[ie][Qt]/pt:0,rn.push((Ne[ie]||Ht)/Be+kt)),Qt=ie;return rn},bl=Ol.getStringUnitWidth=function(j,O){var V=(O=O||{}).fontSize||this.internal.getFontSize(),ie=O.font||this.internal.getFont(),ge=O.charSpace||this.internal.getCharSpace();return Ol.processArabic&&(j=Ol.processArabic(j)),"function"==typeof ie.metadata.widthOfString?ie.metadata.widthOfString(j,V,ge)/V:cd.apply(this,arguments).reduce(function(ue,Me){return ue+Me},0)},Kl=function(j,O,V,ie){for(var ge=[],ue=0,Me=j.length,Ne=0;ue!==Me&&Ne+O[ue]<V;)Ne+=O[ue],ue++;ge.push(j.slice(0,ue));var Be=ue;for(Ne=0;ue!==Me;)Ne+O[ue]>ie&&(ge.push(j.slice(Be,ue)),Ne=0,Be=ue),Ne+=O[ue],ue++;return Be!==ue&&ge.push(j.slice(Be,ue)),ge},Af=function(j,O,V){V||(V={});var ie,ge,ue,Me,Ne,Be,pt=[],ft=[pt],kt=V.textIndent||0,Ze=0,Qt=0,Ht=j.split(" "),rn=cd.apply(this,[" ",V])[0];if(Be=-1===V.lineIndent?Ht[0].length+2:V.lineIndent||0){var St=Array(Be).join(" "),nn=[];Ht.map(function(qn){(qn=qn.split(/\s*\n/)).length>1?nn=nn.concat(qn.map(function(Ai,sr){return(sr&&Ai.length?"\n":"")+Ai})):nn.push(qn[0])}),Ht=nn,Be=bl.apply(this,[St,V])}for(ue=0,Me=Ht.length;ue<Me;ue++){var Vn=0;if(ie=Ht[ue],Be&&"\n"==ie[0]&&(ie=ie.substr(1),Vn=1),kt+Ze+(Qt=(ge=cd.apply(this,[ie,V])).reduce(function(qn,Ai){return qn+Ai},0))>O||Vn){if(Qt>O){for(Ne=Kl.apply(this,[ie,ge,O-(kt+Ze),O]),pt.push(Ne.shift()),pt=[Ne.pop()];Ne.length;)ft.push([Ne.shift()]);Qt=ge.slice(ie.length-(pt[0]?pt[0].length:0)).reduce(function(qn,Ai){return qn+Ai},0)}else pt=[ie];ft.push(pt),kt=Qt+Be,Ze=rn}else pt.push(ie),kt+=Ze+Qt,Ze=rn}return ft.map(Be?function(qn,Ai){return(Ai?St:"")+qn.join(" ")}:function(qn){return qn.join(" ")})},Ol.splitTextToSize=function(j,O,V){var ie,ge=(V=V||{}).fontSize||this.internal.getFontSize(),ue=function(pt){if(pt.widths&&pt.kerning)return{widths:pt.widths,kerning:pt.kerning};var ft=this.internal.getFont(pt.fontName,pt.fontStyle);return ft.metadata.Unicode?{widths:ft.metadata.Unicode.widths||{0:1},kerning:ft.metadata.Unicode.kerning||{}}:{font:ft.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,V);ie=Array.isArray(j)?j:String(j).split(/\r?\n/);var Me=1*this.internal.scaleFactor*O/ge;ue.textIndent=V.textIndent?1*V.textIndent*this.internal.scaleFactor/ge:0,ue.lineIndent=V.lineIndent;var Ne,Be,it=[];for(Ne=0,Be=ie.length;Ne<Be;Ne++)it=it.concat(Af.apply(this,[ie[Ne],Me,ue]));return it},function(j){j.__fontmetrics__=j.__fontmetrics__||{};for(var O="klmnopqrstuvwxyz",V={},ie={},ge=0;ge<16;ge++)V[O[ge]]="0123456789abcdef"[ge],ie["0123456789abcdef"[ge]]=O[ge];var ue=function(ft){return"0x"+parseInt(ft,10).toString(16)},Me=j.__fontmetrics__.compress=function(ft){var kt,Ze,Qt,Ht,rn=["{"];for(var St in ft){if(kt=ft[St],isNaN(parseInt(St,10))?Ze="'"+St+"'":(St=parseInt(St,10),Ze=(Ze=ue(St).slice(2)).slice(0,-1)+ie[Ze.slice(-1)]),"number"==typeof kt)kt<0?(Qt=ue(kt).slice(3),Ht="-"):(Qt=ue(kt).slice(2),Ht=""),Qt=Ht+Qt.slice(0,-1)+ie[Qt.slice(-1)];else{if("object"!==(0,T.A)(kt))throw new Error("Don't know what to do with value type "+(0,T.A)(kt)+".");Qt=Me(kt)}rn.push(Ze+Qt)}return rn.push("}"),rn.join("")},Ne=j.__fontmetrics__.uncompress=function(ft){if("string"!=typeof ft)throw new Error("Invalid argument passed to uncompress.");for(var kt,Ze,Qt,Ht,rn={},St=1,nn=rn,Vn=[],qn="",Ai="",sr=ft.length-1,si=1;si<sr;si+=1)"'"==(Ht=ft[si])?kt?(Qt=kt.join(""),kt=void 0):kt=[]:kt?kt.push(Ht):"{"==Ht?(Vn.push([nn,Qt]),nn={},Qt=void 0):"}"==Ht?((Ze=Vn.pop())[0][Ze[1]]=nn,Qt=void 0,nn=Ze[0]):"-"==Ht?St=-1:void 0===Qt?V.hasOwnProperty(Ht)?(qn+=V[Ht],Qt=parseInt(qn,16)*St,St=1,qn=""):qn+=Ht:V.hasOwnProperty(Ht)?(Ai+=V[Ht],nn[Qt]=parseInt(Ai,16)*St,St=1,Qt=void 0,Ai=""):Ai+=Ht;return rn},Be={codePages:["WinAnsiEncoding"],WinAnsiEncoding:Ne("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},it={Unicode:{Courier:Be,"Courier-Bold":Be,"Courier-BoldOblique":Be,"Courier-Oblique":Be,Helvetica:Be,"Helvetica-Bold":Be,"Helvetica-BoldOblique":Be,"Helvetica-Oblique":Be,"Times-Roman":Be,"Times-Bold":Be,"Times-BoldItalic":Be,"Times-Italic":Be}},pt={Unicode:{"Courier-Oblique":Ne("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":Ne("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":Ne("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:Ne("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":Ne("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":Ne("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:Ne("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:Ne("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":Ne("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:Ne("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":Ne("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":Ne("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":Ne("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":Ne("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};j.events.push(["addFont",function(ft){var kt=ft.font,Ze=pt.Unicode[kt.postScriptName];Ze&&(kt.metadata.Unicode={},kt.metadata.Unicode.widths=Ze.widths,kt.metadata.Unicode.kerning=Ze.kerning);var Qt=it.Unicode[kt.postScriptName];Qt&&(kt.metadata.Unicode.encoding=Qt,kt.encoding=Qt.codePages[0])}])}(ti.API),
/**
         * @license
         * Licensed under the MIT License.
         * http://opensource.org/licenses/mit-license
         */
function(j){var O=function(V){for(var ie=V.length,ge=new Uint8Array(ie),ue=0;ue<ie;ue++)ge[ue]=V.charCodeAt(ue);return ge};j.API.events.push(["addFont",function(V){var Me,Ne,ie=void 0,ge=V.font,ue=V.instance;if(!ge.isStandardFont){if(void 0===ue)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+ge.postScriptName+"').");if("string"!=typeof(ie=!1===ue.existsFileInVFS(ge.postScriptName)?ue.loadFile(ge.postScriptName):ue.getFileFromVFS(ge.postScriptName)))throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+ge.postScriptName+"').");Me=ge,Ne=/^\x00\x01\x00\x00/.test(Ne=ie)?O(Ne):O(fi(Ne)),Me.metadata=j.API.TTFFont.open(Ne),Me.metadata.Unicode=Me.metadata.Unicode||{encoding:{},kerning:{},widths:[]},Me.metadata.glyIdsUsed=[0]}}])}(ti),ti.API.addSvgAsImage=function(V,ie,ge,ue,Me,Ne,Be,it){if(isNaN(ie)||isNaN(ge))throw Bs.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(ue)||isNaN(Me))throw Bs.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var pt=document.createElement("canvas");pt.width=ue,pt.height=Me;var ft=pt.getContext("2d");ft.fillStyle="#fff",ft.fillRect(0,0,pt.width,pt.height);var kt={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},Ze=this;return function O(){return(go.canvg?Promise.resolve(go.canvg):b.e("node_modules_canvg_lib_index_es_js").then(b.bind(b,147))).catch(function(V){return Promise.reject(new Error("Could not load canvg: "+V))}).then(function(V){return V.default?V.default:V})}().then(function(Qt){return Qt.fromString(ft,V,kt)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(Qt){return Qt.render(kt)}).then(function(){Ze.addImage(pt.toDataURL("image/jpeg",1),ie,ge,ue,Me,Be,it)})},ti.API.putTotalPages=function(j){var O,V=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(O=new RegExp(j,"g"),V=this.internal.getNumberOfPages()):(O=new RegExp(this.pdfEscape16(j,this.internal.getFont()),"g"),V=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var ie=1;ie<=this.internal.getNumberOfPages();ie++)for(var ge=0;ge<this.internal.pages[ie].length;ge++)this.internal.pages[ie][ge]=this.internal.pages[ie][ge].replace(O,V);return this},ti.API.viewerPreferences=function(j,O){var V;j=j||{},O=O||!1;var ie,ge,ue,Me={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},Ne=Object.keys(Me),Be=[],it=0,pt=0,ft=0;function kt(Qt,Ht){var rn,St=!1;for(rn=0;rn<Qt.length;rn+=1)Qt[rn]===Ht&&(St=!0);return St}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(Me)),this.internal.viewerpreferences.isSubscribed=!1),V=this.internal.viewerpreferences.configuration,"reset"===j||!0===O){var Ze=Ne.length;for(ft=0;ft<Ze;ft+=1)V[Ne[ft]].value=V[Ne[ft]].defaultValue,V[Ne[ft]].explicitSet=!1}if("object"===(0,T.A)(j))for(ge in j)if(ue=j[ge],kt(Ne,ge)&&void 0!==ue){if("boolean"===V[ge].type&&"boolean"==typeof ue)V[ge].value=ue;else if("name"===V[ge].type&&kt(V[ge].valueSet,ue))V[ge].value=ue;else if("integer"===V[ge].type&&Number.isInteger(ue))V[ge].value=ue;else if("array"===V[ge].type){for(it=0;it<ue.length;it+=1)if(ie=!0,1===ue[it].length&&"number"==typeof ue[it][0])Be.push(String(ue[it]-1));else if(ue[it].length>1){for(pt=0;pt<ue[it].length;pt+=1)"number"!=typeof ue[it][pt]&&(ie=!1);!0===ie&&Be.push([ue[it][0]-1,ue[it][1]-1].join(" "))}V[ge].value="["+Be.join(" ")+"]"}else V[ge].value=V[ge].defaultValue;V[ge].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",function(){var Qt,Ht=[];for(Qt in V)!0===V[Qt].explicitSet&&Ht.push("name"===V[Qt].type?"/"+Qt+" /"+V[Qt].value:"/"+Qt+" "+V[Qt].value);0!==Ht.length&&this.internal.write("/ViewerPreferences\n<<\n"+Ht.join("\n")+"\n>>")}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=V,this},
/** ====================================================================
         * @license
         * jsPDF XMP metadata plugin
         * Copyright (c) 2016 Jussi Utunen, u-jussi@suomi24.fi
         *
         * Permission is hereby granted, free of charge, to any person obtaining
         * a copy of this software and associated documentation files (the
         * "Software"), to deal in the Software without restriction, including
         * without limitation the rights to use, copy, modify, merge, publish,
         * distribute, sublicense, and/or sell copies of the Software, and to
         * permit persons to whom the Software is furnished to do so, subject to
         * the following conditions:
         *
         * The above copyright notice and this permission notice shall be
         * included in all copies or substantial portions of the Software.
         *
         * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
         * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
         * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
         * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
         * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
         * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
         * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
         * ====================================================================
         */
function(j){var O=function(){var ie='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',ge=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),ue=unescape(encodeURIComponent(ie)),Me=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),Ne=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),Be=unescape(encodeURIComponent("</x:xmpmeta>")),it=ue.length+Me.length+Ne.length+ge.length+Be.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+it+" >>"),this.internal.write("stream"),this.internal.write(ge+ue+Me+Ne+Be),this.internal.write("endstream"),this.internal.write("endobj")},V=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};j.addMetadata=function(ie,ge){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:ie,namespaceuri:ge||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",V),this.internal.events.subscribe("postPutResources",O)),this}}(ti.API),function(j){var O=j.API,V=O.pdfEscape16=function(ue,Me){for(var Ne,Be=Me.metadata.Unicode.widths,it=["","0","00","000","0000"],pt=[""],ft=0,kt=ue.length;ft<kt;++ft){if(Ne=Me.metadata.characterToGlyph(ue.charCodeAt(ft)),Me.metadata.glyIdsUsed.push(Ne),Me.metadata.toUnicode[Ne]=ue.charCodeAt(ft),-1==Be.indexOf(Ne)&&(Be.push(Ne),Be.push([parseInt(Me.metadata.widthOfGlyph(Ne),10)])),"0"==Ne)return pt.join("");Ne=Ne.toString(16),pt.push(it[4-Ne.length],Ne)}return pt.join("")},ie=function(ue){var Me,Ne,Be,it,pt,ft,kt;for(pt="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n  /Registry (Adobe)\n  /Ordering (UCS)\n  /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange",Be=[],ft=0,kt=(Ne=Object.keys(ue).sort(function(Ze,Qt){return Ze-Qt})).length;ft<kt;ft++)Me=Ne[ft],Be.length>=100&&(pt+="\n"+Be.length+" beginbfchar\n"+Be.join("\n")+"\nendbfchar",Be=[]),null!=ue[Me]&&"function"==typeof ue[Me].toString&&(it=("0000"+ue[Me].toString(16)).slice(-4),Me=("0000"+(+Me).toString(16)).slice(-4),Be.push("<"+Me+"><"+it+">"));return Be.length&&(pt+="\n"+Be.length+" beginbfchar\n"+Be.join("\n")+"\nendbfchar\n"),pt+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};O.events.push(["putFont",function(ue){!function(Me){var Ne=Me.font,Be=Me.out,it=Me.newObject,pt=Me.putStream;if(Ne.metadata instanceof j.API.TTFFont&&"Identity-H"===Ne.encoding){for(var ft=Ne.metadata.Unicode.widths,kt=Ne.metadata.subset.encode(Ne.metadata.glyIdsUsed,1),Ze="",Qt=0;Qt<kt.length;Qt++)Ze+=String.fromCharCode(kt[Qt]);var Ht=it();pt({data:Ze,addLength1:!0,objectId:Ht}),Be("endobj");var rn=it();pt({data:ie(Ne.metadata.toUnicode),addLength1:!0,objectId:rn}),Be("endobj");var St=it();Be("<<"),Be("/Type /FontDescriptor"),Be("/FontName /"+an(Ne.fontName)),Be("/FontFile2 "+Ht+" 0 R"),Be("/FontBBox "+j.API.PDFObject.convert(Ne.metadata.bbox)),Be("/Flags "+Ne.metadata.flags),Be("/StemV "+Ne.metadata.stemV),Be("/ItalicAngle "+Ne.metadata.italicAngle),Be("/Ascent "+Ne.metadata.ascender),Be("/Descent "+Ne.metadata.decender),Be("/CapHeight "+Ne.metadata.capHeight),Be(">>"),Be("endobj");var nn=it();Be("<<"),Be("/Type /Font"),Be("/BaseFont /"+an(Ne.fontName)),Be("/FontDescriptor "+St+" 0 R"),Be("/W "+j.API.PDFObject.convert(ft)),Be("/CIDToGIDMap /Identity"),Be("/DW 1000"),Be("/Subtype /CIDFontType2"),Be("/CIDSystemInfo"),Be("<<"),Be("/Supplement 0"),Be("/Registry (Adobe)"),Be("/Ordering ("+Ne.encoding+")"),Be(">>"),Be(">>"),Be("endobj"),Ne.objectNumber=it(),Be("<<"),Be("/Type /Font"),Be("/Subtype /Type0"),Be("/ToUnicode "+rn+" 0 R"),Be("/BaseFont /"+an(Ne.fontName)),Be("/Encoding /"+Ne.encoding),Be("/DescendantFonts ["+nn+" 0 R]"),Be(">>"),Be("endobj"),Ne.isAlreadyPutted=!0}}(ue)}]),O.events.push(["putFont",function(ue){!function(Me){var Ne=Me.font,Be=Me.out,it=Me.newObject,pt=Me.putStream;if(Ne.metadata instanceof j.API.TTFFont&&"WinAnsiEncoding"===Ne.encoding){for(var ft=Ne.metadata.rawData,kt="",Ze=0;Ze<ft.length;Ze++)kt+=String.fromCharCode(ft[Ze]);var Qt=it();pt({data:kt,addLength1:!0,objectId:Qt}),Be("endobj");var Ht=it();pt({data:ie(Ne.metadata.toUnicode),addLength1:!0,objectId:Ht}),Be("endobj");var rn=it();Be("<<"),Be("/Descent "+Ne.metadata.decender),Be("/CapHeight "+Ne.metadata.capHeight),Be("/StemV "+Ne.metadata.stemV),Be("/Type /FontDescriptor"),Be("/FontFile2 "+Qt+" 0 R"),Be("/Flags 96"),Be("/FontBBox "+j.API.PDFObject.convert(Ne.metadata.bbox)),Be("/FontName /"+an(Ne.fontName)),Be("/ItalicAngle "+Ne.metadata.italicAngle),Be("/Ascent "+Ne.metadata.ascender),Be(">>"),Be("endobj"),Ne.objectNumber=it();for(var St=0;St<Ne.metadata.hmtx.widths.length;St++)Ne.metadata.hmtx.widths[St]=parseInt(Ne.metadata.hmtx.widths[St]*(1e3/Ne.metadata.head.unitsPerEm));Be("<</Subtype/TrueType/Type/Font/ToUnicode "+Ht+" 0 R/BaseFont/"+an(Ne.fontName)+"/FontDescriptor "+rn+" 0 R/Encoding/"+Ne.encoding+" /FirstChar 29 /LastChar 255 /Widths "+j.API.PDFObject.convert(Ne.metadata.hmtx.widths)+">>"),Be("endobj"),Ne.isAlreadyPutted=!0}}(ue)}]);var ge=function(ue){var Me,Ne=ue.text||"",Be=ue.x,it=ue.y,pt=ue.options||{},ft=ue.mutex||{},kt=ft.pdfEscape,Ze=ft.activeFontKey,Qt=ft.fonts,Ht=Ze,rn="",St=0,nn="",Vn=Qt[Ht].encoding;if("Identity-H"!==Qt[Ht].encoding)return{text:Ne,x:Be,y:it,options:pt,mutex:ft};for(nn=Ne,Ht=Ze,Array.isArray(Ne)&&(nn=Ne[0]),St=0;St<nn.length;St+=1)Qt[Ht].metadata.hasOwnProperty("cmap")&&(Me=Qt[Ht].metadata.cmap.unicode.codeMap[nn[St].charCodeAt(0)]),Me||nn[St].charCodeAt(0)<256&&Qt[Ht].metadata.hasOwnProperty("Unicode")?rn+=nn[St]:rn+="";var qn="";return parseInt(Ht.slice(1))<14||"WinAnsiEncoding"===Vn?qn=kt(rn,Ht).split("").map(function(Ai){return Ai.charCodeAt(0).toString(16)}).join(""):"Identity-H"===Vn&&(qn=V(rn,Qt[Ht])),ft.isHex=!0,{text:qn,x:Be,y:it,options:pt,mutex:ft}};O.events.push(["postProcessText",function(ue){var Me=ue.text||"",Ne=[],Be={text:Me,x:ue.x,y:ue.y,options:ue.options,mutex:ue.mutex};if(Array.isArray(Me)){var it=0;for(it=0;it<Me.length;it+=1)Array.isArray(Me[it])&&3===Me[it].length?Ne.push([ge(Object.assign({},Be,{text:Me[it][0]})).text,Me[it][1],Me[it][2]]):Ne.push(ge(Object.assign({},Be,{text:Me[it]})).text);ue.text=Ne}else ue.text=ge(Object.assign({},Be,{text:Me})).text}])}(ti),
/**
         * @license
         * jsPDF virtual FileSystem functionality
         *
         * Licensed under the MIT License.
         * http://opensource.org/licenses/mit-license
         */
function(j){var O=function(){return void 0===this.internal.vFS&&(this.internal.vFS={}),!0};j.existsFileInVFS=function(V){return O.call(this),void 0!==this.internal.vFS[V]},j.addFileToVFS=function(V,ie){return O.call(this),this.internal.vFS[V]=ie,this},j.getFileFromVFS=function(V){return O.call(this),void 0!==this.internal.vFS[V]?this.internal.vFS[V]:null}}(ti.API),
/**
         * @license
         * Unicode Bidi Engine based on the work of Alex Shensis (@asthensis)
         * MIT License
         */
function(j){j.__bidiEngine__=j.prototype.__bidiEngine__=function(ie){var ge,ue,Me,Ne,Be,it,pt,ft=O,kt=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],Ze=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],Qt={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},Ht={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},rn=["(",")","(","<",">","<","[","]","[","{","}","{","\xab","\xbb","\xab","\u2039","\u203a","\u2039","\u2045","\u2046","\u2045","\u207d","\u207e","\u207d","\u208d","\u208e","\u208d","\u2264","\u2265","\u2264","\u2329","\u232a","\u2329","\ufe59","\ufe5a","\ufe59","\ufe5b","\ufe5c","\ufe5b","\ufe5d","\ufe5e","\ufe5d","\ufe64","\ufe65","\ufe64"],St=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),nn=!1,Vn=0;this.__bidiEngine__={};var qn=function(Ut){var jt=Ut.charCodeAt(),Gn=jt>>8,Cn=Ht[Gn];return void 0!==Cn?ft[256*Cn+(255&jt)]:252===Gn||253===Gn?"AL":St.test(Gn)?"L":8===Gn?"R":"N"},Ai=function(Ut){for(var jt,Gn=0;Gn<Ut.length;Gn++){if("L"===(jt=qn(Ut.charAt(Gn))))return!1;if("R"===jt)return!0}return!1},sr=function(Ut,jt,Gn,Cn){var Ei,vi,Mi,li,Pi=jt[Cn];switch(Pi){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":nn=!1;break;case"N":case"AN":break;case"EN":nn&&(Pi="AN");break;case"AL":nn=!0,Pi="R";break;case"WS":case"BN":Pi="N";break;case"CS":Cn<1||Cn+1>=jt.length||"EN"!==(Ei=Gn[Cn-1])&&"AN"!==Ei||"EN"!==(vi=jt[Cn+1])&&"AN"!==vi?Pi="N":nn&&(vi="AN"),Pi=vi===Ei?vi:"N";break;case"ES":Pi="EN"===(Ei=Cn>0?Gn[Cn-1]:"B")&&Cn+1<jt.length&&"EN"===jt[Cn+1]?"EN":"N";break;case"ET":if(Cn>0&&"EN"===Gn[Cn-1]){Pi="EN";break}if(nn){Pi="N";break}for(Mi=Cn+1,li=jt.length;Mi<li&&"ET"===jt[Mi];)Mi++;Pi=Mi<li&&"EN"===jt[Mi]?"EN":"N";break;case"NSM":if(Me&&!Ne){for(li=jt.length,Mi=Cn+1;Mi<li&&"NSM"===jt[Mi];)Mi++;if(Mi<li){var Qi=Ut[Cn];if(Ei=jt[Mi],(Qi>=1425&&Qi<=2303||64286===Qi)&&("R"===Ei||"AL"===Ei)){Pi="R";break}}}Pi=Cn<1||"B"===(Ei=jt[Cn-1])?"N":Gn[Cn-1];break;case"B":nn=!1,ge=!0,Pi=Vn;break;case"S":ue=!0,Pi="N"}return Pi},si=function(Ut,jt,Gn){var Cn=Ut.split("");return Gn&&bn(Cn,Gn,{hiLevel:Vn}),Cn.reverse(),jt&&jt.reverse(),Cn.join("")},bn=function(Ut,jt,Gn){var Cn,Ei,vi,Mi,li,Pi=-1,Qi=Ut.length,no=0,mt=[],on=Vn?Ze:kt,mn=[];for(nn=!1,ge=!1,ue=!1,Ei=0;Ei<Qi;Ei++)mn[Ei]=qn(Ut[Ei]);for(vi=0;vi<Qi;vi++){if(li=no,mt[vi]=sr(Ut,mn,mt,vi),Cn=240&(no=on[li][Qt[mt[vi]]]),jt[vi]=Mi=on[no&=15][5],Cn>0)if(16===Cn){for(Ei=Pi;Ei<vi;Ei++)jt[Ei]=1;Pi=-1}else Pi=-1;if(on[no][6])-1===Pi&&(Pi=vi);else if(Pi>-1){for(Ei=Pi;Ei<vi;Ei++)jt[Ei]=Mi;Pi=-1}"B"===mn[vi]&&(jt[vi]=0),Gn.hiLevel|=Mi}ue&&function(Ln,zn,pi){for(var _i=0;_i<pi;_i++)if("S"===Ln[_i]){zn[_i]=Vn;for(var yi=_i-1;yi>=0&&"WS"===Ln[yi];yi--)zn[yi]=Vn}}(mn,jt,Qi)},ui=function(Ut,jt,Gn,Cn,Ei){if(!(Ei.hiLevel<Ut)){if(1===Ut&&1===Vn&&!ge)return jt.reverse(),void(Gn&&Gn.reverse());for(var vi,Mi,li,Pi,Qi=jt.length,no=0;no<Qi;){if(Cn[no]>=Ut){for(li=no+1;li<Qi&&Cn[li]>=Ut;)li++;for(Pi=no,Mi=li-1;Pi<Mi;Pi++,Mi--)vi=jt[Pi],jt[Pi]=jt[Mi],jt[Mi]=vi,Gn&&(vi=Gn[Pi],Gn[Pi]=Gn[Mi],Gn[Mi]=vi);no=li}no++}}},ji=function(Ut,jt,Gn){var Cn=Ut.split(""),Ei={hiLevel:Vn};return Gn||(Gn=[]),bn(Cn,Gn,Ei),function(vi,Mi,li){if(0!==li.hiLevel&&pt)for(var Pi,Qi=0;Qi<vi.length;Qi++)1===Mi[Qi]&&(Pi=rn.indexOf(vi[Qi]))>=0&&(vi[Qi]=rn[Pi+1])}(Cn,Gn,Ei),ui(2,Cn,jt,Gn,Ei),ui(1,Cn,jt,Gn,Ei),Cn.join("")};return this.__bidiEngine__.doBidiReorder=function(Ut,jt,Gn){if(function(Ei,vi){if(vi)for(var Mi=0;Mi<Ei.length;Mi++)vi[Mi]=Mi;void 0===Ne&&(Ne=Ai(Ei)),void 0===it&&(it=Ai(Ei))}(Ut,jt),Me||!Be||it)if(Me&&Be&&Ne^it)Vn=Ne?1:0,Ut=si(Ut,jt,Gn);else if(!Me&&Be&&it)Vn=Ne?1:0,Ut=ji(Ut,jt,Gn),Ut=si(Ut,jt);else if(!Me||Ne||Be||it){if(Me&&!Be&&Ne^it)Ut=si(Ut,jt),Ne?(Vn=0,Ut=ji(Ut,jt,Gn)):(Vn=1,Ut=ji(Ut,jt,Gn),Ut=si(Ut,jt));else if(Me&&Ne&&!Be&&it)Vn=1,Ut=ji(Ut,jt,Gn),Ut=si(Ut,jt);else if(!Me&&!Be&&Ne^it){var Cn=pt;Ne?(Vn=1,Ut=ji(Ut,jt,Gn),Vn=0,pt=!1,Ut=ji(Ut,jt,Gn),pt=Cn):(Vn=0,Ut=ji(Ut,jt,Gn),Ut=si(Ut,jt),Vn=1,pt=!1,Ut=ji(Ut,jt,Gn),pt=Cn,Ut=si(Ut,jt))}}else Vn=0,Ut=ji(Ut,jt,Gn);else Vn=Ne?1:0,Ut=ji(Ut,jt,Gn);return Ut},this.__bidiEngine__.setOptions=function(Ut){Ut&&(Me=Ut.isInputVisual,Be=Ut.isOutputVisual,Ne=Ut.isInputRtl,it=Ut.isOutputRtl,pt=Ut.isSymmetricSwapping)},this.__bidiEngine__.setOptions(ie),this.__bidiEngine__};var O=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],V=new j.__bidiEngine__({isInputVisual:!0});j.API.events.push(["postProcessText",function(ie){var ge=ie.text,ue=ie.options||{},Me=[];if(ue.isInputVisual="boolean"!=typeof ue.isInputVisual||ue.isInputVisual,V.setOptions(ue),"[object Array]"===Object.prototype.toString.call(ge)){var Ne=0;for(Me=[],Ne=0;Ne<ge.length;Ne+=1)"[object Array]"===Object.prototype.toString.call(ge[Ne])?Me.push([V.doBidiReorder(ge[Ne][0]),ge[Ne][1],ge[Ne][2]]):Me.push([V.doBidiReorder(ge[Ne])]);ie.text=Me}else ie.text=V.doBidiReorder(ge);V.setOptions({isInputVisual:!0})}])}(ti),ti.API.TTFFont=function(){function j(O){var V;if(this.rawData=O,V=this.contents=new dl(O),this.contents.pos=4,"ttcf"===V.readString(4))throw new Error("TTCF not supported.");V.pos=0,this.parse(),this.subset=new r1(this),this.registerTTF()}return j.open=function(O){return new j(O)},j.prototype.parse=function(){return this.directory=new ip(this.contents),this.head=new ph(this),this.name=new f0(this),this.cmap=new hh(this),this.toUnicode={},this.hhea=new e1(this),this.maxp=new m0(this),this.hmtx=new t1(this),this.post=new DT(this),this.os2=new p0(this),this.loca=new n1(this),this.glyf=new jm(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},j.prototype.registerTTF=function(){var V,ie,ge,ue;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var Me,Ne,Be,it;for(it=[],Me=0,Ne=(Be=this.bbox).length;Me<Ne;Me++)it.push(Math.round(Be[Me]*this.scaleFactor));return it}.call(this),this.stemV=0,this.post.exists?(ie=255&(ge=this.post.italic_angle),32768&(V=ge>>16)&&(V=-(1+(65535^V))),this.italicAngle=+(V+"."+ie)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(ue=this.familyClass)||2===ue||3===ue||4===ue||5===ue||7===ue,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},j.prototype.characterToGlyph=function(O){var V;return(null!=(V=this.cmap.unicode)?V.codeMap[O]:void 0)||0},j.prototype.widthOfGlyph=function(O){var V;return V=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(O).advance*V},j.prototype.widthOfString=function(O,V,ie){var ge,ue,Me,Ne;for(Me=0,ue=0,Ne=(O=""+O).length;0<=Ne?ue<Ne:ue>Ne;ue=0<=Ne?++ue:--ue)ge=O.charCodeAt(ue),Me+=this.widthOfGlyph(this.characterToGlyph(ge))+ie*(1e3/V)||0;return Me*(V/1e3)},j.prototype.lineHeight=function(O,V){return null==V&&(V=!1),(this.ascender+(V?this.lineGap:0)-this.decender)/1e3*O},j}();var hu,dl=function(){function j(O){this.data=O??[],this.pos=0,this.length=this.data.length}return j.prototype.readByte=function(){return this.data[this.pos++]},j.prototype.writeByte=function(O){return this.data[this.pos++]=O},j.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},j.prototype.writeUInt32=function(O){return this.writeByte(O>>>24&255),this.writeByte(O>>16&255),this.writeByte(O>>8&255),this.writeByte(255&O)},j.prototype.readInt32=function(){var O;return(O=this.readUInt32())>=2147483648?O-4294967296:O},j.prototype.writeInt32=function(O){return O<0&&(O+=4294967296),this.writeUInt32(O)},j.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},j.prototype.writeUInt16=function(O){return this.writeByte(O>>8&255),this.writeByte(255&O)},j.prototype.readInt16=function(){var O;return(O=this.readUInt16())>=32768?O-65536:O},j.prototype.writeInt16=function(O){return O<0&&(O+=65536),this.writeUInt16(O)},j.prototype.readString=function(O){var V,ie;for(ie=[],V=0;0<=O?V<O:V>O;V=0<=O?++V:--V)ie[V]=String.fromCharCode(this.readByte());return ie.join("")},j.prototype.writeString=function(O){var V,ie,ge;for(ge=[],V=0,ie=O.length;0<=ie?V<ie:V>ie;V=0<=ie?++V:--V)ge.push(this.writeByte(O.charCodeAt(V)));return ge},j.prototype.readShort=function(){return this.readInt16()},j.prototype.writeShort=function(O){return this.writeInt16(O)},j.prototype.readLongLong=function(){var O,V,ie,ge,ue,Me,Ne,Be;return O=this.readByte(),V=this.readByte(),ie=this.readByte(),ge=this.readByte(),ue=this.readByte(),Me=this.readByte(),Ne=this.readByte(),Be=this.readByte(),128&O?-1*(72057594037927940*(255^O)+281474976710656*(255^V)+1099511627776*(255^ie)+4294967296*(255^ge)+16777216*(255^ue)+65536*(255^Me)+256*(255^Ne)+(255^Be)+1):72057594037927940*O+281474976710656*V+1099511627776*ie+4294967296*ge+16777216*ue+65536*Me+256*Ne+Be},j.prototype.writeLongLong=function(O){var V,ie;return V=Math.floor(O/4294967296),ie=4294967295&O,this.writeByte(V>>24&255),this.writeByte(V>>16&255),this.writeByte(V>>8&255),this.writeByte(255&V),this.writeByte(ie>>24&255),this.writeByte(ie>>16&255),this.writeByte(ie>>8&255),this.writeByte(255&ie)},j.prototype.readInt=function(){return this.readInt32()},j.prototype.writeInt=function(O){return this.writeInt32(O)},j.prototype.read=function(O){var V,ie;for(V=[],ie=0;0<=O?ie<O:ie>O;ie=0<=O?++ie:--ie)V.push(this.readByte());return V},j.prototype.write=function(O){var ie,ge,ue;for(ue=[],ie=0,ge=O.length;ie<ge;ie++)ue.push(this.writeByte(O[ie]));return ue},j}(),ip=function(){var j;function O(V){var ie,ge,ue;for(this.scalarType=V.readInt(),this.tableCount=V.readShort(),this.searchRange=V.readShort(),this.entrySelector=V.readShort(),this.rangeShift=V.readShort(),this.tables={},ge=0,ue=this.tableCount;0<=ue?ge<ue:ge>ue;ge=0<=ue?++ge:--ge)ie={tag:V.readString(4),checksum:V.readInt(),offset:V.readInt(),length:V.readInt()},this.tables[ie.tag]=ie}return O.prototype.encode=function(V){var ie,ge,Me,Ne,Be,it,pt,ft,kt,Ze,Qt,Ht;for(Ht in Ze=Object.keys(V).length,Be=Math.log(2),ft=16*Math.floor(Math.log(Ze)/Be),Me=Math.floor(ft/Be),pt=16*Ze-ft,(ge=new dl).writeInt(this.scalarType),ge.writeShort(Ze),ge.writeShort(ft),ge.writeShort(Me),ge.writeShort(pt),it=ge.pos+16*Ze,Ne=null,Qt=[],V)for(kt=V[Ht],ge.writeString(Ht),ge.writeInt(j(kt)),ge.writeInt(it),ge.writeInt(kt.length),Qt=Qt.concat(kt),"head"===Ht&&(Ne=it),it+=kt.length;it%4;)Qt.push(0),it++;return ge.write(Qt),ie=2981146554-j(ge.data),ge.pos=Ne+8,ge.writeUInt32(ie),ge.data},j=function(V){var ie,ge,ue,Me;for(V=g0.call(V);V.length%4;)V.push(0);for(ue=new dl(V),ge=0,ie=0,Me=V.length;ie<Me;ie=ie+=4)ge+=ue.readUInt32();return 4294967295&ge},O}(),Uh={}.hasOwnProperty,gp=function(j,O){for(var V in O)Uh.call(O,V)&&(j[V]=O[V]);function ie(){this.constructor=j}return ie.prototype=O.prototype,j.prototype=new ie,j.__super__=O.prototype,j};hu=function(){function j(O){var V;this.file=O,this.exists=!!(V=this.file.directory.tables[this.tag]),V&&(this.offset=V.offset,this.length=V.length,this.parse(this.file.contents))}return j.prototype.parse=function(){},j.prototype.encode=function(){},j.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},j}();var ph=function(){function O(){return O.__super__.constructor.apply(this,arguments)}return gp(O,hu),O.prototype.tag="head",O.prototype.parse=function(V){return V.pos=this.offset,this.version=V.readInt(),this.revision=V.readInt(),this.checkSumAdjustment=V.readInt(),this.magicNumber=V.readInt(),this.flags=V.readShort(),this.unitsPerEm=V.readShort(),this.created=V.readLongLong(),this.modified=V.readLongLong(),this.xMin=V.readShort(),this.yMin=V.readShort(),this.xMax=V.readShort(),this.yMax=V.readShort(),this.macStyle=V.readShort(),this.lowestRecPPEM=V.readShort(),this.fontDirectionHint=V.readShort(),this.indexToLocFormat=V.readShort(),this.glyphDataFormat=V.readShort()},O.prototype.encode=function(V){var ie;return(ie=new dl).writeInt(this.version),ie.writeInt(this.revision),ie.writeInt(this.checkSumAdjustment),ie.writeInt(this.magicNumber),ie.writeShort(this.flags),ie.writeShort(this.unitsPerEm),ie.writeLongLong(this.created),ie.writeLongLong(this.modified),ie.writeShort(this.xMin),ie.writeShort(this.yMin),ie.writeShort(this.xMax),ie.writeShort(this.yMax),ie.writeShort(this.macStyle),ie.writeShort(this.lowestRecPPEM),ie.writeShort(this.fontDirectionHint),ie.writeShort(V),ie.writeShort(this.glyphDataFormat),ie.data},O}(),rp=function(){function j(O,V){var ie,ge,ue,Me,Ne,Be,it,pt,ft,kt,Ze,Qt,Ht,rn,St,nn,Vn;switch(this.platformID=O.readUInt16(),this.encodingID=O.readShort(),this.offset=V+O.readInt(),ft=O.pos,O.pos=this.offset,this.format=O.readUInt16(),this.length=O.readUInt16(),this.language=O.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(Be=0;Be<256;++Be)this.codeMap[Be]=O.readByte();break;case 4:for(Ze=O.readUInt16(),kt=Ze/2,O.pos+=6,ue=function(){var qn,Ai;for(Ai=[],Be=qn=0;0<=kt?qn<kt:qn>kt;Be=0<=kt?++qn:--qn)Ai.push(O.readUInt16());return Ai}(),O.pos+=2,Ht=function(){var qn,Ai;for(Ai=[],Be=qn=0;0<=kt?qn<kt:qn>kt;Be=0<=kt?++qn:--qn)Ai.push(O.readUInt16());return Ai}(),it=function(){var qn,Ai;for(Ai=[],Be=qn=0;0<=kt?qn<kt:qn>kt;Be=0<=kt?++qn:--qn)Ai.push(O.readUInt16());return Ai}(),pt=function(){var qn,Ai;for(Ai=[],Be=qn=0;0<=kt?qn<kt:qn>kt;Be=0<=kt?++qn:--qn)Ai.push(O.readUInt16());return Ai}(),ge=(this.length-O.pos+this.offset)/2,Ne=function(){var qn,Ai;for(Ai=[],Be=qn=0;0<=ge?qn<ge:qn>ge;Be=0<=ge?++qn:--qn)Ai.push(O.readUInt16());return Ai}(),Be=St=0,Vn=ue.length;St<Vn;Be=++St)for(rn=ue[Be],ie=nn=Qt=Ht[Be];Qt<=rn?nn<=rn:nn>=rn;ie=Qt<=rn?++nn:--nn)0===pt[Be]?Me=ie+it[Be]:0!==(Me=Ne[pt[Be]/2+(ie-Qt)-(kt-Be)]||0)&&(Me+=it[Be]),this.codeMap[ie]=65535&Me}O.pos=ft}return j.encode=function(O,V){var ie,ge,ue,Me,Ne,Be,it,pt,ft,kt,Ze,Qt,Ht,rn,St,nn,Vn,Ai,sr,si,bn,ui,ji,Ut,jt,Gn,Cn,Ei,vi,Mi,li,Pi,Qi,no,mt,on,mn,Ln,zn,pi,_i,yi,Hr,kr,fo;switch(Cn=new dl,Me=Object.keys(O).sort(function(io,As){return io-As}),V){case"macroman":for(Ht=0,rn=function(){var io=[];for(Qt=0;Qt<256;++Qt)io.push(0);return io}(),nn={0:0},ue={},Ei=0,Pi=Me.length;Ei<Pi;Ei++)null==nn[yi=O[ge=Me[Ei]]]&&(nn[yi]=++Ht),ue[ge]={old:O[ge],new:nn[O[ge]]},rn[ge]=nn[O[ge]];return Cn.writeUInt16(1),Cn.writeUInt16(0),Cn.writeUInt32(12),Cn.writeUInt16(0),Cn.writeUInt16(262),Cn.writeUInt16(0),Cn.write(rn),{charMap:ue,subtable:Cn.data,maxGlyphID:Ht+1};case"unicode":for(jt=[],ft=[],Vn=0,nn={},ie={},St=it=null,vi=0,Qi=Me.length;vi<Qi;vi++)null==nn[Ai=O[ge=Me[vi]]]&&(nn[Ai]=++Vn),ie[ge]={old:Ai,new:nn[Ai]},Ne=nn[Ai]-ge,null!=St&&Ne===it||(St&&ft.push(St),jt.push(ge),it=Ne),St=ge;for(St&&ft.push(St),ft.push(65535),jt.push(65535),ji=2*(ui=jt.length),bn=2*Math.pow(Math.log(ui)/Math.LN2,2),kt=Math.log(bn/2)/Math.LN2,si=2*ui-bn,Be=[],sr=[],Ze=[],Qt=Mi=0,no=jt.length;Mi<no;Qt=++Mi){if(pt=ft[Qt],65535===(Ut=jt[Qt])){Be.push(0),sr.push(0);break}if(Ut-(Gn=ie[Ut].new)>=32768)for(Be.push(0),sr.push(2*(Ze.length+ui-Qt)),ge=li=Ut;Ut<=pt?li<=pt:li>=pt;ge=Ut<=pt?++li:--li)Ze.push(ie[ge].new);else Be.push(Gn-Ut),sr.push(0)}for(Cn.writeUInt16(3),Cn.writeUInt16(1),Cn.writeUInt32(12),Cn.writeUInt16(4),Cn.writeUInt16(16+8*ui+2*Ze.length),Cn.writeUInt16(0),Cn.writeUInt16(ji),Cn.writeUInt16(bn),Cn.writeUInt16(kt),Cn.writeUInt16(si),pi=0,mt=ft.length;pi<mt;pi++)Cn.writeUInt16(ge=ft[pi]);for(Cn.writeUInt16(0),_i=0,on=jt.length;_i<on;_i++)Cn.writeUInt16(ge=jt[_i]);for(Hr=0,mn=Be.length;Hr<mn;Hr++)Cn.writeUInt16(Ne=Be[Hr]);for(kr=0,Ln=sr.length;kr<Ln;kr++)Cn.writeUInt16(sr[kr]);for(fo=0,zn=Ze.length;fo<zn;fo++)Cn.writeUInt16(Ht=Ze[fo]);return{charMap:ie,subtable:Cn.data,maxGlyphID:Vn+1}}},j}(),hh=function(){function O(){return O.__super__.constructor.apply(this,arguments)}return gp(O,hu),O.prototype.tag="cmap",O.prototype.parse=function(V){var ie,ge,ue;for(V.pos=this.offset,this.version=V.readUInt16(),ue=V.readUInt16(),this.tables=[],this.unicode=null,ge=0;0<=ue?ge<ue:ge>ue;ge=0<=ue?++ge:--ge)ie=new rp(V,this.offset),this.tables.push(ie),ie.isUnicode&&null==this.unicode&&(this.unicode=ie);return!0},O.encode=function(V,ie){var ge,ue;return null==ie&&(ie="macroman"),ge=rp.encode(V,ie),(ue=new dl).writeUInt16(0),ue.writeUInt16(1),ge.table=ue.data.concat(ge.subtable),ge},O}(),e1=function(){function O(){return O.__super__.constructor.apply(this,arguments)}return gp(O,hu),O.prototype.tag="hhea",O.prototype.parse=function(V){return V.pos=this.offset,this.version=V.readInt(),this.ascender=V.readShort(),this.decender=V.readShort(),this.lineGap=V.readShort(),this.advanceWidthMax=V.readShort(),this.minLeftSideBearing=V.readShort(),this.minRightSideBearing=V.readShort(),this.xMaxExtent=V.readShort(),this.caretSlopeRise=V.readShort(),this.caretSlopeRun=V.readShort(),this.caretOffset=V.readShort(),V.pos+=8,this.metricDataFormat=V.readShort(),this.numberOfMetrics=V.readUInt16()},O}(),p0=function(){function O(){return O.__super__.constructor.apply(this,arguments)}return gp(O,hu),O.prototype.tag="OS/2",O.prototype.parse=function(V){if(V.pos=this.offset,this.version=V.readUInt16(),this.averageCharWidth=V.readShort(),this.weightClass=V.readUInt16(),this.widthClass=V.readUInt16(),this.type=V.readShort(),this.ySubscriptXSize=V.readShort(),this.ySubscriptYSize=V.readShort(),this.ySubscriptXOffset=V.readShort(),this.ySubscriptYOffset=V.readShort(),this.ySuperscriptXSize=V.readShort(),this.ySuperscriptYSize=V.readShort(),this.ySuperscriptXOffset=V.readShort(),this.ySuperscriptYOffset=V.readShort(),this.yStrikeoutSize=V.readShort(),this.yStrikeoutPosition=V.readShort(),this.familyClass=V.readShort(),this.panose=function(){var ie,ge;for(ge=[],ie=0;ie<10;++ie)ge.push(V.readByte());return ge}(),this.charRange=function(){var ie,ge;for(ge=[],ie=0;ie<4;++ie)ge.push(V.readInt());return ge}(),this.vendorID=V.readString(4),this.selection=V.readShort(),this.firstCharIndex=V.readShort(),this.lastCharIndex=V.readShort(),this.version>0&&(this.ascent=V.readShort(),this.descent=V.readShort(),this.lineGap=V.readShort(),this.winAscent=V.readShort(),this.winDescent=V.readShort(),this.codePageRange=function(){var ie,ge;for(ge=[],ie=0;ie<2;ie=++ie)ge.push(V.readInt());return ge}(),this.version>1))return this.xHeight=V.readShort(),this.capHeight=V.readShort(),this.defaultChar=V.readShort(),this.breakChar=V.readShort(),this.maxContext=V.readShort()},O}(),DT=function(){function O(){return O.__super__.constructor.apply(this,arguments)}return gp(O,hu),O.prototype.tag="post",O.prototype.parse=function(V){var ie,ge,ue;switch(V.pos=this.offset,this.format=V.readInt(),this.italicAngle=V.readInt(),this.underlinePosition=V.readShort(),this.underlineThickness=V.readShort(),this.isFixedPitch=V.readInt(),this.minMemType42=V.readInt(),this.maxMemType42=V.readInt(),this.minMemType1=V.readInt(),this.maxMemType1=V.readInt(),this.format){case 65536:case 196608:break;case 131072:var Me;for(ge=V.readUInt16(),this.glyphNameIndex=[],Me=0;0<=ge?Me<ge:Me>ge;Me=0<=ge?++Me:--Me)this.glyphNameIndex.push(V.readUInt16());for(this.names=[],ue=[];V.pos<this.offset+this.length;)ie=V.readByte(),ue.push(this.names.push(V.readString(ie)));return ue;case 151552:return ge=V.readUInt16(),this.offsets=V.read(ge);case 262144:return this.map=function(){var Ne,Be,it;for(it=[],Me=Ne=0,Be=this.file.maxp.numGlyphs;0<=Be?Ne<Be:Ne>Be;Me=0<=Be?++Ne:--Ne)it.push(V.readUInt32());return it}.call(this)}},O}(),h0=function(j,O){this.raw=j,this.length=j.length,this.platformID=O.platformID,this.encodingID=O.encodingID,this.languageID=O.languageID},f0=function(){function O(){return O.__super__.constructor.apply(this,arguments)}return gp(O,hu),O.prototype.tag="name",O.prototype.parse=function(V){var ie,ge,ue,Me,Ne,Be,it,pt,ft,kt,Ze;for(V.pos=this.offset,V.readShort(),ie=V.readShort(),Be=V.readShort(),ge=[],Me=0;0<=ie?Me<ie:Me>ie;Me=0<=ie?++Me:--Me)ge.push({platformID:V.readShort(),encodingID:V.readShort(),languageID:V.readShort(),nameID:V.readShort(),length:V.readShort(),offset:this.offset+Be+V.readShort()});for(it={},Me=ft=0,kt=ge.length;ft<kt;Me=++ft)V.pos=(ue=ge[Me]).offset,pt=V.readString(ue.length),Ne=new h0(pt,ue),null==it[Ze=ue.nameID]&&(it[Ze]=[]),it[ue.nameID].push(Ne);this.strings=it,this.copyright=it[0],this.fontFamily=it[1],this.fontSubfamily=it[2],this.uniqueSubfamily=it[3],this.fontName=it[4],this.version=it[5];try{this.postscriptName=it[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=it[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=it[7],this.manufacturer=it[8],this.designer=it[9],this.description=it[10],this.vendorUrl=it[11],this.designerUrl=it[12],this.license=it[13],this.licenseUrl=it[14],this.preferredFamily=it[15],this.preferredSubfamily=it[17],this.compatibleFull=it[18],this.sampleText=it[19]},O}(),m0=function(){function O(){return O.__super__.constructor.apply(this,arguments)}return gp(O,hu),O.prototype.tag="maxp",O.prototype.parse=function(V){return V.pos=this.offset,this.version=V.readInt(),this.numGlyphs=V.readUInt16(),this.maxPoints=V.readUInt16(),this.maxContours=V.readUInt16(),this.maxCompositePoints=V.readUInt16(),this.maxComponentContours=V.readUInt16(),this.maxZones=V.readUInt16(),this.maxTwilightPoints=V.readUInt16(),this.maxStorage=V.readUInt16(),this.maxFunctionDefs=V.readUInt16(),this.maxInstructionDefs=V.readUInt16(),this.maxStackElements=V.readUInt16(),this.maxSizeOfInstructions=V.readUInt16(),this.maxComponentElements=V.readUInt16(),this.maxComponentDepth=V.readUInt16()},O}(),t1=function(){function O(){return O.__super__.constructor.apply(this,arguments)}return gp(O,hu),O.prototype.tag="hmtx",O.prototype.parse=function(V){var ie,ge,ue,Ne,Be,it;for(V.pos=this.offset,this.metrics=[],ie=0,Be=this.file.hhea.numberOfMetrics;0<=Be?ie<Be:ie>Be;ie=0<=Be?++ie:--ie)this.metrics.push({advance:V.readUInt16(),lsb:V.readInt16()});for(ue=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var pt,ft;for(ft=[],ie=pt=0;0<=ue?pt<ue:pt>ue;ie=0<=ue?++pt:--pt)ft.push(V.readInt16());return ft}(),this.widths=function(){var pt,ft,kt,Ze;for(Ze=[],pt=0,ft=(kt=this.metrics).length;pt<ft;pt++)Ze.push(kt[pt].advance);return Ze}.call(this),ge=this.widths[this.widths.length-1],it=[],ie=Ne=0;0<=ue?Ne<ue:Ne>ue;ie=0<=ue?++Ne:--Ne)it.push(this.widths.push(ge));return it},O.prototype.forGlyph=function(V){return V in this.metrics?this.metrics[V]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[V-this.metrics.length]}},O}(),g0=[].slice,jm=function(){function O(){return O.__super__.constructor.apply(this,arguments)}return gp(O,hu),O.prototype.tag="glyf",O.prototype.parse=function(){return this.cache={}},O.prototype.glyphFor=function(V){var ie,ge,ue,Me,Ne,Be,it,pt,ft,kt;return V in this.cache?this.cache[V]:(ie=this.file.contents,ge=(Me=this.file.loca).indexOf(V),0===(ue=Me.lengthOf(V))?this.cache[V]=null:(ie.pos=this.offset+ge,Ne=(Be=new dl(ie.read(ue))).readShort(),pt=Be.readShort(),kt=Be.readShort(),it=Be.readShort(),ft=Be.readShort(),this.cache[V]=-1===Ne?new IT(Be,pt,kt,it,ft):new kT(Be,Ne,pt,kt,it,ft),this.cache[V]))},O.prototype.encode=function(V,ie,ge){var ue,Me,Ne,Be,it;for(Ne=[],Me=[],Be=0,it=ie.length;Be<it;Be++)ue=V[ie[Be]],Me.push(Ne.length),ue&&(Ne=Ne.concat(ue.encode(ge)));return Me.push(Ne.length),{table:Ne,offsets:Me}},O}(),kT=function(){function j(O,V,ie,ge,ue,Me){this.raw=O,this.numberOfContours=V,this.xMin=ie,this.yMin=ge,this.xMax=ue,this.yMax=Me,this.compound=!1}return j.prototype.encode=function(){return this.raw.data},j}(),IT=function(){function j(O,V,ie,ge,ue){var Me,Ne;for(this.raw=O,this.xMin=V,this.yMin=ie,this.xMax=ge,this.yMax=ue,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],Me=this.raw;Ne=Me.readShort(),this.glyphOffsets.push(Me.pos),this.glyphIDs.push(Me.readUInt16()),32&Ne;)Me.pos+=1&Ne?4:2,128&Ne?Me.pos+=8:64&Ne?Me.pos+=4:8&Ne&&(Me.pos+=2)}return j.prototype.encode=function(){var O,V,ie;for(V=new dl(g0.call(this.raw.data)),O=0,ie=this.glyphIDs.length;O<ie;++O)V.pos=this.glyphOffsets[O];return V.data},j}(),n1=function(){function O(){return O.__super__.constructor.apply(this,arguments)}return gp(O,hu),O.prototype.tag="loca",O.prototype.parse=function(V){var ge;return V.pos=this.offset,this.offsets=0===this.file.head.indexToLocFormat?function(){var ue,Me;for(Me=[],ge=0,ue=this.length;ge<ue;ge+=2)Me.push(2*V.readUInt16());return Me}.call(this):function(){var ue,Me;for(Me=[],ge=0,ue=this.length;ge<ue;ge+=4)Me.push(V.readUInt32());return Me}.call(this)},O.prototype.indexOf=function(V){return this.offsets[V]},O.prototype.lengthOf=function(V){return this.offsets[V+1]-this.offsets[V]},O.prototype.encode=function(V,ie){for(var ge=new Uint32Array(this.offsets.length),ue=0,Me=0,Ne=0;Ne<ge.length;++Ne)if(ge[Ne]=ue,Me<ie.length&&ie[Me]==Ne){++Me,ge[Ne]=ue;var it=this.offsets[Ne+1]-this.offsets[Ne];it>0&&(ue+=it)}for(var pt=new Array(4*ge.length),ft=0;ft<ge.length;++ft)pt[4*ft+3]=255&ge[ft],pt[4*ft+2]=(65280&ge[ft])>>8,pt[4*ft+1]=(16711680&ge[ft])>>16,pt[4*ft]=(4278190080&ge[ft])>>24;return pt},O}(),r1=function(){function j(O){this.font=O,this.subset={},this.unicodes={},this.next=33}return j.prototype.generateCmap=function(){var O,V,ge,ue;for(V in ge=this.font.cmap.tables[0].codeMap,O={},ue=this.subset)O[V]=ge[ue[V]];return O},j.prototype.glyphsFor=function(O){var V,ie,ge,ue,Me,Ne,Be;for(ge={},Me=0,Ne=O.length;Me<Ne;Me++)ge[ue=O[Me]]=this.font.glyf.glyphFor(ue);for(ue in V=[],ge)null!=(ie=ge[ue])&&ie.compound&&V.push.apply(V,ie.glyphIDs);if(V.length>0)for(ue in Be=this.glyphsFor(V))ge[ue]=ie=Be[ue];return ge},j.prototype.encode=function(O,V){var ie,ge,ue,Me,Be,it,pt,ft,kt,Ze,Qt,Ht,rn,St;for(ge in ie=hh.encode(this.generateCmap(),"unicode"),Me=this.glyphsFor(O),Ze={0:0},St=ie.charMap)Ze[(Be=St[ge]).old]=Be.new;for(Qt in kt=ie.maxGlyphID,Me)Qt in Ze||(Ze[Qt]=kt++);return pt=function(nn){var Vn,qn;for(Vn in qn={},nn)qn[nn[Vn]]=Vn;return qn}(Ze),ft=Object.keys(pt).sort(function(nn,Vn){return nn-Vn}),Ht=function(){var nn,Vn,qn;for(qn=[],nn=0,Vn=ft.length;nn<Vn;nn++)qn.push(pt[ft[nn]]);return qn}(),ue=this.font.glyf.encode(Me,Ht,Ze),it=this.font.loca.encode(ue.offsets,Ht),rn={cmap:this.font.cmap.raw(),glyf:ue.table,loca:it,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(V)},this.font.os2.exists&&(rn["OS/2"]=this.font.os2.raw()),this.font.directory.encode(rn)},j}();ti.API.PDFObject=function(){var j;function O(){}return j=function(V,ie){return(Array(ie+1).join("0")+V).slice(-ie)},O.convert=function(V){var ge,ue;if(Array.isArray(V))return"["+function(){var Ne,Be,it;for(it=[],Ne=0,Be=V.length;Ne<Be;Ne++)it.push(O.convert(V[Ne]));return it}().join(" ")+"]";if("string"==typeof V)return"/"+V;if(V?.isString)return"("+V+")";if(V instanceof Date)return"(D:"+j(V.getUTCFullYear(),4)+j(V.getUTCMonth(),2)+j(V.getUTCDate(),2)+j(V.getUTCHours(),2)+j(V.getUTCMinutes(),2)+j(V.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(V)){for(ge in ue=["<<"],V)ue.push("/"+ge+" "+O.convert(V[ge]));return ue.push(">>"),ue.join("\n")}return""+V},O}();const AT=ti},119:m=>{m.exports=function C(E,D,k){function R(Q,H){if(!D[Q]){if(!E[Q]){if(P)return P(Q,!0);var X=new Error("Cannot find module '"+Q+"'");throw X.code="MODULE_NOT_FOUND",X}var z=D[Q]={exports:{}};E[Q][0].call(z.exports,function(fe){return R(E[Q][1][fe]||fe)},z,z.exports,C,E,D,k)}return D[Q].exports}for(var P=void 0,G=0;G<k.length;G++)R(k[G]);return R}({1:[function(C,E,D){(function(k){"use strict";var P,R=k.MutationObserver||k.WebKitMutationObserver;if(R){var G=0,Q=new R(fe),H=k.document.createTextNode("");Q.observe(H,{characterData:!0}),P=function(){H.data=G=++G%2}}else if(!k.setImmediate&&typeof k.MessageChannel<"u"){var Z=new k.MessageChannel;Z.port1.onmessage=fe,P=function(){Z.port2.postMessage(0)}}else P="document"in k&&"onreadystatechange"in k.document.createElement("script")?function(){var ne=k.document.createElement("script");ne.onreadystatechange=function(){fe(),ne.onreadystatechange=null,ne.parentNode.removeChild(ne),ne=null},k.document.documentElement.appendChild(ne)}:function(){setTimeout(fe,0)};var X,z=[];function fe(){X=!0;for(var ne,N,Y=z.length;Y;){for(N=z,z=[],ne=-1;++ne<Y;)N[ne]();Y=z.length}X=!1}E.exports=function q(ne){1===z.push(ne)&&!X&&P()}}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(C,E,D){"use strict";var k=C(1);function R(){}var P={},G=["REJECTED"],Q=["FULFILLED"],H=["PENDING"];function Z(n){if("function"!=typeof n)throw new TypeError("resolver must be a function");this.state=H,this.queue=[],this.outcome=void 0,n!==R&&q(this,n)}function X(n,K,se){this.promise=n,"function"==typeof K&&(this.onFulfilled=K,this.callFulfilled=this.otherCallFulfilled),"function"==typeof se&&(this.onRejected=se,this.callRejected=this.otherCallRejected)}function z(n,K,se){k(function(){var De;try{De=K(se)}catch(Fe){return P.reject(n,Fe)}De===n?P.reject(n,new TypeError("Cannot resolve promise with itself")):P.resolve(n,De)})}function fe(n){var K=n&&n.then;if(n&&("object"==typeof n||"function"==typeof n)&&"function"==typeof K)return function(){K.apply(n,arguments)}}function q(n,K){var se=!1;function De(be){se||(se=!0,P.reject(n,be))}function Fe(be){se||(se=!0,P.resolve(n,be))}var ke=ne(function _e(){K(Fe,De)});"error"===ke.status&&De(ke.value)}function ne(n,K){var se={};try{se.value=n(K),se.status="success"}catch(De){se.status="error",se.value=De}return se}E.exports=Z,Z.prototype.catch=function(n){return this.then(null,n)},Z.prototype.then=function(n,K){if("function"!=typeof n&&this.state===Q||"function"!=typeof K&&this.state===G)return this;var se=new this.constructor(R);return this.state!==H?z(se,this.state===Q?n:K,this.outcome):this.queue.push(new X(se,n,K)),se},X.prototype.callFulfilled=function(n){P.resolve(this.promise,n)},X.prototype.otherCallFulfilled=function(n){z(this.promise,this.onFulfilled,n)},X.prototype.callRejected=function(n){P.reject(this.promise,n)},X.prototype.otherCallRejected=function(n){z(this.promise,this.onRejected,n)},P.resolve=function(n,K){var se=ne(fe,K);if("error"===se.status)return P.reject(n,se.value);var De=se.value;if(De)q(n,De);else{n.state=Q,n.outcome=K;for(var Fe=-1,_e=n.queue.length;++Fe<_e;)n.queue[Fe].callFulfilled(K)}return n},P.reject=function(n,K){n.state=G,n.outcome=K;for(var se=-1,De=n.queue.length;++se<De;)n.queue[se].callRejected(K);return n},Z.resolve=function N(n){return n instanceof this?n:P.resolve(new this(R),n)},Z.reject=function Y(n){var K=new this(R);return P.reject(K,n)},Z.all=function W(n){var K=this;if("[object Array]"!==Object.prototype.toString.call(n))return this.reject(new TypeError("must be an array"));var se=n.length,De=!1;if(!se)return this.resolve([]);for(var Fe=new Array(se),_e=0,ke=-1,be=new this(R);++ke<se;)Ve(n[ke],ke);return be;function Ve(Ie,Se){K.resolve(Ie).then(function de(le){Fe[Se]=le,++_e===se&&!De&&(De=!0,P.resolve(be,Fe))},function(le){De||(De=!0,P.reject(be,le))})}},Z.race=function J(n){var K=this;if("[object Array]"!==Object.prototype.toString.call(n))return this.reject(new TypeError("must be an array"));var se=n.length,De=!1;if(!se)return this.resolve([]);for(var Fe=-1,_e=new this(R);++Fe<se;)K.resolve(n[Fe]).then(function(Ve){De||(De=!0,P.resolve(_e,Ve))},function(Ve){De||(De=!0,P.reject(_e,Ve))});return _e}},{1:1}],3:[function(C,E,D){(function(k){"use strict";"function"!=typeof k.Promise&&(k.Promise=C(2))}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(C,E,D){"use strict";var k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(At){return typeof At}:function(At){return At&&"function"==typeof Symbol&&At.constructor===Symbol&&At!==Symbol.prototype?"symbol":typeof At};var G=function P(){try{if(typeof indexedDB<"u")return indexedDB;if(typeof webkitIndexedDB<"u")return webkitIndexedDB;if(typeof mozIndexedDB<"u")return mozIndexedDB;if(typeof OIndexedDB<"u")return OIndexedDB;if(typeof msIndexedDB<"u")return msIndexedDB}catch{return}}();function H(At,_n){At=At||[],_n=_n||{};try{return new Blob(At,_n)}catch(En){if("TypeError"!==En.name)throw En;for(var qt=new(typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder),Mn=0;Mn<At.length;Mn+=1)qt.append(At[Mn]);return qt.getBlob(_n.type)}}typeof Promise>"u"&&C(3);var Z=Promise;function X(At,_n){_n&&At.then(function($t){_n(null,$t)},function($t){_n($t)})}function z(At,_n,$t){"function"==typeof _n&&At.then(_n),"function"==typeof $t&&At.catch($t)}function fe(At){return"string"!=typeof At&&(console.warn(At+" used as a key, but it is not a string."),At=String(At)),At}function q(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var ne="local-forage-detect-blob-support",N=void 0,Y={},W=Object.prototype.toString,J="readonly",n="readwrite";function K(At){for(var _n=At.length,$t=new ArrayBuffer(_n),qt=new Uint8Array($t),Mn=0;Mn<_n;Mn++)qt[Mn]=At.charCodeAt(Mn);return $t}function De(At){return"boolean"==typeof N?Z.resolve(N):function se(At){return new Z(function(_n){var $t=At.transaction(ne,n),qt=H([""]);$t.objectStore(ne).put(qt,"key"),$t.onabort=function(Mn){Mn.preventDefault(),Mn.stopPropagation(),_n(!1)},$t.oncomplete=function(){var Mn=navigator.userAgent.match(/Chrome\/(\d+)/),En=navigator.userAgent.match(/Edge\//);_n(En||!Mn||parseInt(Mn[1],10)>=43)}}).catch(function(){return!1})}(At).then(function(_n){return N=_n})}function Fe(At){var _n=Y[At.name],$t={};$t.promise=new Z(function(qt,Mn){$t.resolve=qt,$t.reject=Mn}),_n.deferredOperations.push($t),_n.dbReady=_n.dbReady?_n.dbReady.then(function(){return $t.promise}):$t.promise}function _e(At){var $t=Y[At.name].deferredOperations.pop();if($t)return $t.resolve(),$t.promise}function ke(At,_n){var qt=Y[At.name].deferredOperations.pop();if(qt)return qt.reject(_n),qt.promise}function be(At,_n){return new Z(function($t,qt){if(Y[At.name]=Y[At.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},At.db){if(!_n)return $t(At.db);Fe(At),At.db.close()}var Mn=[At.name];_n&&Mn.push(At.version);var En=G.open.apply(G,Mn);_n&&(En.onupgradeneeded=function(Oi){var ir=En.result;try{ir.createObjectStore(At.storeName),Oi.oldVersion<=1&&ir.createObjectStore(ne)}catch(or){if("ConstraintError"!==or.name)throw or;console.warn('The database "'+At.name+'" has been upgraded from version '+Oi.oldVersion+" to version "+Oi.newVersion+', but the storage "'+At.storeName+'" already exists.')}}),En.onerror=function(Oi){Oi.preventDefault(),qt(En.error)},En.onsuccess=function(){var Oi=En.result;Oi.onversionchange=function(ir){ir.target.close()},$t(Oi),_e(At)}})}function Ve(At){return be(At,!1)}function Ie(At){return be(At,!0)}function Se(At,_n){if(!At.db)return!0;var $t=!At.db.objectStoreNames.contains(At.storeName),Mn=At.version>At.db.version;if(At.version<At.db.version&&(At.version!==_n&&console.warn('The database "'+At.name+"\" can't be downgraded from version "+At.db.version+" to version "+At.version+"."),At.version=At.db.version),Mn||$t){if($t){var En=At.db.version+1;En>At.version&&(At.version=En)}return!0}return!1}function le(At){return H([K(atob(At.data))],{type:At.type})}function xe(At){return At&&At.__local_forage_encoded_blob}function We(At){var _n=this,$t=_n._initReady().then(function(){var qt=Y[_n._dbInfo.name];if(qt&&qt.dbReady)return qt.dbReady});return z($t,At,At),$t}function ut(At,_n,$t,qt){void 0===qt&&(qt=1);try{var Mn=At.db.transaction(At.storeName,_n);$t(null,Mn)}catch(En){if(qt>0&&(!At.db||"InvalidStateError"===En.name||"NotFoundError"===En.name))return Z.resolve().then(function(){if(!At.db||"NotFoundError"===En.name&&!At.db.objectStoreNames.contains(At.storeName)&&At.version<=At.db.version)return At.db&&(At.version=At.db.version+1),Ie(At)}).then(function(){return function st(At){Fe(At);for(var _n=Y[At.name],$t=_n.forages,qt=0;qt<$t.length;qt++){var Mn=$t[qt];Mn._dbInfo.db&&(Mn._dbInfo.db.close(),Mn._dbInfo.db=null)}return At.db=null,Ve(At).then(function(En){return At.db=En,Se(At)?Ie(At):En}).then(function(En){At.db=_n.db=En;for(var Oi=0;Oi<$t.length;Oi++)$t[Oi]._dbInfo.db=En}).catch(function(En){throw ke(At,En),En})}(At).then(function(){ut(At,_n,$t,qt-1)})}).catch($t);$t(En)}}var Dn={_driver:"asyncStorage",_initStorage:function ye(At){var _n=this,$t={db:null};if(At)for(var qt in At)$t[qt]=At[qt];var Mn=Y[$t.name];Mn||(Y[$t.name]=Mn={forages:[],db:null,dbReady:null,deferredOperations:[]}),Mn.forages.push(_n),_n._initReady||(_n._initReady=_n.ready,_n.ready=We);var En=[];function Oi(){return Z.resolve()}for(var ir=0;ir<Mn.forages.length;ir++){var or=Mn.forages[ir];or!==_n&&En.push(or._initReady().catch(Oi))}var Ui=Mn.forages.slice(0);return Z.all(En).then(function(){return $t.db=Mn.db,Ve($t)}).then(function(yr){return $t.db=yr,Se($t,_n._defaultConfig.version)?Ie($t):yr}).then(function(yr){$t.db=Mn.db=yr,_n._dbInfo=$t;for(var Wr=0;Wr<Ui.length;Wr++){var zo=Ui[Wr];zo!==_n&&(zo._dbInfo.db=$t.db,zo._dbInfo.version=$t.version)}})},_support:function Q(){try{if(!G||!G.open)return!1;var At=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),_n="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!At||_n)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}(),iterate:function Qe(At,_n){var $t=this,qt=new Z(function(Mn,En){$t.ready().then(function(){ut($t._dbInfo,J,function(Oi,ir){if(Oi)return En(Oi);try{var Ui=ir.objectStore($t._dbInfo.storeName).openCursor(),yr=1;Ui.onsuccess=function(){var Wr=Ui.result;if(Wr){var zo=Wr.value;xe(zo)&&(zo=le(zo));var ss=At(zo,Wr.key,yr++);void 0!==ss?Mn(ss):Wr.continue()}else Mn()},Ui.onerror=function(){En(Ui.error)}}catch(Wr){En(Wr)}})}).catch(En)});return X(qt,_n),qt},getItem:function Re(At,_n){var $t=this;At=fe(At);var qt=new Z(function(Mn,En){$t.ready().then(function(){ut($t._dbInfo,J,function(Oi,ir){if(Oi)return En(Oi);try{var Ui=ir.objectStore($t._dbInfo.storeName).get(At);Ui.onsuccess=function(){var yr=Ui.result;void 0===yr&&(yr=null),xe(yr)&&(yr=le(yr)),Mn(yr)},Ui.onerror=function(){En(Ui.error)}}catch(yr){En(yr)}})}).catch(En)});return X(qt,_n),qt},setItem:function vt(At,_n,$t){var qt=this;At=fe(At);var Mn=new Z(function(En,Oi){var ir;qt.ready().then(function(){return ir=qt._dbInfo,"[object Blob]"===W.call(_n)?De(ir.db).then(function(or){return or?_n:function de(At){return new Z(function(_n,$t){var qt=new FileReader;qt.onerror=$t,qt.onloadend=function(Mn){var En=btoa(Mn.target.result||"");_n({__local_forage_encoded_blob:!0,data:En,type:At.type})},qt.readAsBinaryString(At)})}(_n)}):_n}).then(function(or){ut(qt._dbInfo,n,function(Ui,yr){if(Ui)return Oi(Ui);try{var Wr=yr.objectStore(qt._dbInfo.storeName);null===or&&(or=void 0);var zo=Wr.put(or,At);yr.oncomplete=function(){void 0===or&&(or=null),En(or)},yr.onabort=yr.onerror=function(){Oi(zo.error?zo.error:zo.transaction.error)}}catch(ss){Oi(ss)}})}).catch(Oi)});return X(Mn,$t),Mn},removeItem:function Nt(At,_n){var $t=this;At=fe(At);var qt=new Z(function(Mn,En){$t.ready().then(function(){ut($t._dbInfo,n,function(Oi,ir){if(Oi)return En(Oi);try{var Ui=ir.objectStore($t._dbInfo.storeName).delete(At);ir.oncomplete=function(){Mn()},ir.onerror=function(){En(Ui.error)},ir.onabort=function(){En(Ui.error?Ui.error:Ui.transaction.error)}}catch(yr){En(yr)}})}).catch(En)});return X(qt,_n),qt},clear:function Dt(At){var _n=this,$t=new Z(function(qt,Mn){_n.ready().then(function(){ut(_n._dbInfo,n,function(En,Oi){if(En)return Mn(En);try{var or=Oi.objectStore(_n._dbInfo.storeName).clear();Oi.oncomplete=function(){qt()},Oi.onabort=Oi.onerror=function(){Mn(or.error?or.error:or.transaction.error)}}catch(Ui){Mn(Ui)}})}).catch(Mn)});return X($t,At),$t},length:function qe(At){var _n=this,$t=new Z(function(qt,Mn){_n.ready().then(function(){ut(_n._dbInfo,J,function(En,Oi){if(En)return Mn(En);try{var or=Oi.objectStore(_n._dbInfo.storeName).count();or.onsuccess=function(){qt(or.result)},or.onerror=function(){Mn(or.error)}}catch(Ui){Mn(Ui)}})}).catch(Mn)});return X($t,At),$t},key:function ze(At,_n){var $t=this,qt=new Z(function(Mn,En){At<0?Mn(null):$t.ready().then(function(){ut($t._dbInfo,J,function(Oi,ir){if(Oi)return En(Oi);try{var or=ir.objectStore($t._dbInfo.storeName),Ui=!1,yr=or.openKeyCursor();yr.onsuccess=function(){var Wr=yr.result;Wr?0===At||Ui?Mn(Wr.key):(Ui=!0,Wr.advance(At)):Mn(null)},yr.onerror=function(){En(yr.error)}}catch(Wr){En(Wr)}})}).catch(En)});return X(qt,_n),qt},keys:function Ge(At){var _n=this,$t=new Z(function(qt,Mn){_n.ready().then(function(){ut(_n._dbInfo,J,function(En,Oi){if(En)return Mn(En);try{var or=Oi.objectStore(_n._dbInfo.storeName).openKeyCursor(),Ui=[];or.onsuccess=function(){var yr=or.result;yr?(Ui.push(yr.key),yr.continue()):qt(Ui)},or.onerror=function(){Mn(or.error)}}catch(yr){Mn(yr)}})}).catch(Mn)});return X($t,At),$t},dropInstance:function dt(At,_n){_n=q.apply(this,arguments);var Mn,$t=this.config();return(At="function"!=typeof At&&At||{}).name||(At.name=At.name||$t.name,At.storeName=At.storeName||$t.storeName),X(Mn=At.name?(At.name===$t.name&&this._dbInfo.db?Z.resolve(this._dbInfo.db):Ve(At).then(function(ir){var or=Y[At.name],Ui=or.forages;or.db=ir;for(var yr=0;yr<Ui.length;yr++)Ui[yr]._dbInfo.db=ir;return ir})).then(At.storeName?function(ir){if(ir.objectStoreNames.contains(At.storeName)){var or=ir.version+1;Fe(At);var Ui=Y[At.name],yr=Ui.forages;ir.close();for(var Wr=0;Wr<yr.length;Wr++){var zo=yr[Wr];zo._dbInfo.db=null,zo._dbInfo.version=or}return new Z(function(Ho,Ps){var bi=G.open(At.name,or);bi.onerror=function(go){bi.result.close(),Ps(go)},bi.onupgradeneeded=function(){bi.result.deleteObjectStore(At.storeName)},bi.onsuccess=function(){var go=bi.result;go.close(),Ho(go)}}).then(function(Ho){Ui.db=Ho;for(var Ps=0;Ps<yr.length;Ps++){var bi=yr[Ps];bi._dbInfo.db=Ho,_e(bi._dbInfo)}}).catch(function(Ho){throw(ke(At,Ho)||Z.resolve()).catch(function(){}),Ho})}}:function(ir){Fe(At);var or=Y[At.name],Ui=or.forages;ir.close();for(var yr=0;yr<Ui.length;yr++)Ui[yr]._dbInfo.db=null;return new Z(function(ss,Ho){var Ps=G.deleteDatabase(At.name);Ps.onerror=function(){var bi=Ps.result;bi&&bi.close(),Ho(Ps.error)},Ps.onblocked=function(){console.warn('dropInstance blocked for database "'+At.name+'" until all open connections are closed')},Ps.onsuccess=function(){var bi=Ps.result;bi&&bi.close(),ss(bi)}}).then(function(ss){or.db=ss;for(var Ho=0;Ho<Ui.length;Ho++)_e(Ui[Ho]._dbInfo)}).catch(function(ss){throw(ke(At,ss)||Z.resolve()).catch(function(){}),ss})}):Z.reject("Invalid arguments"),_n),Mn}};var Hn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",An=/^~~local_forage_type~([^~]+)~/,Kt="__lfsc__:",Vt="arbf",Fn="blob",ur=Object.prototype.toString;function Ns(At){var qt,En,Oi,ir,or,_n=.75*At.length,$t=At.length,Mn=0;"="===At[At.length-1]&&(_n--,"="===At[At.length-2]&&_n--);var Ui=new ArrayBuffer(_n),yr=new Uint8Array(Ui);for(qt=0;qt<$t;qt+=4)En=Hn.indexOf(At[qt]),Oi=Hn.indexOf(At[qt+1]),ir=Hn.indexOf(At[qt+2]),or=Hn.indexOf(At[qt+3]),yr[Mn++]=En<<2|Oi>>4,yr[Mn++]=(15&Oi)<<4|ir>>2,yr[Mn++]=(3&ir)<<6|63&or;return Ui}function to(At){var qt,_n=new Uint8Array(At),$t="";for(qt=0;qt<_n.length;qt+=3)$t+=Hn[_n[qt]>>2],$t+=Hn[(3&_n[qt])<<4|_n[qt+1]>>4],$t+=Hn[(15&_n[qt+1])<<2|_n[qt+2]>>6],$t+=Hn[63&_n[qt+2]];return _n.length%3==2?$t=$t.substring(0,$t.length-1)+"=":_n.length%3==1&&($t=$t.substring(0,$t.length-2)+"=="),$t}var Ro={serialize:function Qs(At,_n){var $t="";if(At&&($t=ur.call(At)),At&&("[object ArrayBuffer]"===$t||At.buffer&&"[object ArrayBuffer]"===ur.call(At.buffer))){var qt,Mn=Kt;At instanceof ArrayBuffer?(qt=At,Mn+=Vt):(qt=At.buffer,"[object Int8Array]"===$t?Mn+="si08":"[object Uint8Array]"===$t?Mn+="ui08":"[object Uint8ClampedArray]"===$t?Mn+="uic8":"[object Int16Array]"===$t?Mn+="si16":"[object Uint16Array]"===$t?Mn+="ur16":"[object Int32Array]"===$t?Mn+="si32":"[object Uint32Array]"===$t?Mn+="ui32":"[object Float32Array]"===$t?Mn+="fl32":"[object Float64Array]"===$t?Mn+="fl64":_n(new Error("Failed to get type for BinaryArray"))),_n(Mn+to(qt))}else if("[object Blob]"===$t){var En=new FileReader;En.onload=function(){var Oi="~~local_forage_type~"+At.type+"~"+to(this.result);_n(Kt+Fn+Oi)},En.readAsArrayBuffer(At)}else try{_n(JSON.stringify(At))}catch(Oi){console.error("Couldn't convert value into a JSON string: ",At),_n(null,Oi)}},deserialize:function pr(At){if(At.substring(0,9)!==Kt)return JSON.parse(At);var qt,_n=At.substring(13),$t=At.substring(9,13);if($t===Fn&&An.test(_n)){var Mn=_n.match(An);qt=Mn[1],_n=_n.substring(Mn[0].length)}var En=Ns(_n);switch($t){case Vt:return En;case Fn:return H([En],{type:qt});case"si08":return new Int8Array(En);case"ui08":return new Uint8Array(En);case"uic8":return new Uint8ClampedArray(En);case"si16":return new Int16Array(En);case"ur16":return new Uint16Array(En);case"si32":return new Int32Array(En);case"ui32":return new Uint32Array(En);case"fl32":return new Float32Array(En);case"fl64":return new Float64Array(En);default:throw new Error("Unkown type: "+$t)}},stringToBuffer:Ns,bufferToString:to};function Xo(At,_n,$t,qt){At.executeSql("CREATE TABLE IF NOT EXISTS "+_n.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],$t,qt)}function ks(At,_n,$t,qt,Mn,En){At.executeSql($t,qt,Mn,function(Oi,ir){ir.code===ir.SYNTAX_ERR?Oi.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[_n.storeName],function(or,Ui){Ui.rows.length?En(or,ir):Xo(or,_n,function(){or.executeSql($t,qt,Mn,En)},En)},En):En(Oi,ir)},En)}function ya(At,_n,$t,qt){var Mn=this;At=fe(At);var En=new Z(function(Oi,ir){Mn.ready().then(function(){void 0===_n&&(_n=null);var or=_n,Ui=Mn._dbInfo;Ui.serializer.serialize(_n,function(yr,Wr){Wr?ir(Wr):Ui.db.transaction(function(zo){ks(zo,Ui,"INSERT OR REPLACE INTO "+Ui.storeName+" (key, value) VALUES (?, ?)",[At,yr],function(){Oi(or)},function(ss,Ho){ir(Ho)})},function(zo){if(zo.code===zo.QUOTA_ERR){if(qt>0)return void Oi(ya.apply(Mn,[At,or,$t,qt-1]));ir(zo)}})})}).catch(ir)});return X(En,$t),En}var Wo={_driver:"webSQLStorage",_initStorage:function El(At){var _n=this,$t={db:null};if(At)for(var qt in At)$t[qt]="string"!=typeof At[qt]?At[qt].toString():At[qt];var Mn=new Z(function(En,Oi){try{$t.db=openDatabase($t.name,String($t.version),$t.description,$t.size)}catch(ir){return Oi(ir)}$t.db.transaction(function(ir){Xo(ir,$t,function(){_n._dbInfo=$t,En()},function(or,Ui){Oi(Ui)})},Oi)});return $t.serializer=Ro,Mn},_support:function wt(){return"function"==typeof openDatabase}(),iterate:function Xa(At,_n){var $t=this,qt=new Z(function(Mn,En){$t.ready().then(function(){var Oi=$t._dbInfo;Oi.db.transaction(function(ir){ks(ir,Oi,"SELECT * FROM "+Oi.storeName,[],function(or,Ui){for(var yr=Ui.rows,Wr=yr.length,zo=0;zo<Wr;zo++){var ss=yr.item(zo),Ho=ss.value;if(Ho&&(Ho=Oi.serializer.deserialize(Ho)),void 0!==(Ho=At(Ho,ss.key,zo+1)))return void Mn(Ho)}Mn()},function(or,Ui){En(Ui)})})}).catch(En)});return X(qt,_n),qt},getItem:function ol(At,_n){var $t=this;At=fe(At);var qt=new Z(function(Mn,En){$t.ready().then(function(){var Oi=$t._dbInfo;Oi.db.transaction(function(ir){ks(ir,Oi,"SELECT * FROM "+Oi.storeName+" WHERE key = ? LIMIT 1",[At],function(or,Ui){var yr=Ui.rows.length?Ui.rows.item(0).value:null;yr&&(yr=Oi.serializer.deserialize(yr)),Mn(yr)},function(or,Ui){En(Ui)})})}).catch(En)});return X(qt,_n),qt},setItem:function Dr(At,_n,$t){return ya.apply(this,[At,_n,$t,1])},removeItem:function ja(At,_n){var $t=this;At=fe(At);var qt=new Z(function(Mn,En){$t.ready().then(function(){var Oi=$t._dbInfo;Oi.db.transaction(function(ir){ks(ir,Oi,"DELETE FROM "+Oi.storeName+" WHERE key = ?",[At],function(){Mn()},function(or,Ui){En(Ui)})})}).catch(En)});return X(qt,_n),qt},clear:function ws(At){var _n=this,$t=new Z(function(qt,Mn){_n.ready().then(function(){var En=_n._dbInfo;En.db.transaction(function(Oi){ks(Oi,En,"DELETE FROM "+En.storeName,[],function(){qt()},function(ir,or){Mn(or)})})}).catch(Mn)});return X($t,At),$t},length:function Ko(At){var _n=this,$t=new Z(function(qt,Mn){_n.ready().then(function(){var En=_n._dbInfo;En.db.transaction(function(Oi){ks(Oi,En,"SELECT COUNT(key) as c FROM "+En.storeName,[],function(ir,or){var Ui=or.rows.item(0).c;qt(Ui)},function(ir,or){Mn(or)})})}).catch(Mn)});return X($t,At),$t},key:function da(At,_n){var $t=this,qt=new Z(function(Mn,En){$t.ready().then(function(){var Oi=$t._dbInfo;Oi.db.transaction(function(ir){ks(ir,Oi,"SELECT key FROM "+Oi.storeName+" WHERE id = ? LIMIT 1",[At+1],function(or,Ui){var yr=Ui.rows.length?Ui.rows.item(0).key:null;Mn(yr)},function(or,Ui){En(Ui)})})}).catch(En)});return X(qt,_n),qt},keys:function Bo(At){var _n=this,$t=new Z(function(qt,Mn){_n.ready().then(function(){var En=_n._dbInfo;En.db.transaction(function(Oi){ks(Oi,En,"SELECT key FROM "+En.storeName,[],function(ir,or){for(var Ui=[],yr=0;yr<or.rows.length;yr++)Ui.push(or.rows.item(yr).key);qt(Ui)},function(ir,or){Mn(or)})})}).catch(Mn)});return X($t,At),$t},dropInstance:function qr(At,_n){_n=q.apply(this,arguments);var $t=this.config();(At="function"!=typeof At&&At||{}).name||(At.name=At.name||$t.name,At.storeName=At.storeName||$t.storeName);var Mn,qt=this;return X(Mn=At.name?new Z(function(En){var Oi;Oi=At.name===$t.name?qt._dbInfo.db:openDatabase(At.name,"","",0),En(At.storeName?{db:Oi,storeNames:[At.storeName]}:function Dl(At){return new Z(function(_n,$t){At.transaction(function(qt){qt.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(Mn,En){for(var Oi=[],ir=0;ir<En.rows.length;ir++)Oi.push(En.rows.item(ir).name);_n({db:At,storeNames:Oi})},function(Mn,En){$t(En)})},function(qt){$t(qt)})})}(Oi))}).then(function(En){return new Z(function(Oi,ir){En.db.transaction(function(or){function Ui(ss){return new Z(function(Ho,Ps){or.executeSql("DROP TABLE IF EXISTS "+ss,[],function(){Ho()},function(bi,go){Ps(go)})})}for(var yr=[],Wr=0,zo=En.storeNames.length;Wr<zo;Wr++)yr.push(Ui(En.storeNames[Wr]));Z.all(yr).then(function(){Oi()}).catch(function(ss){ir(ss)})},function(or){ir(or)})})}):Z.reject("Invalid arguments"),_n),Mn}};function os(At,_n){var $t=At.name+"/";return At.storeName!==_n.storeName&&($t+=At.storeName+"/"),$t}function _s(){return!function Gs(){var At="_localforage_support_test";try{return localStorage.setItem(At,!0),localStorage.removeItem(At),!1}catch{return!0}}()||localStorage.length>0}var Fa={_driver:"localStorageWrapper",_initStorage:function vl(At){var $t={};if(At)for(var qt in At)$t[qt]=At[qt];return $t.keyPrefix=os(At,this._defaultConfig),_s()?(this._dbInfo=$t,$t.serializer=Ro,Z.resolve()):Z.reject()},_support:function Il(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}(),iterate:function Al(At,_n){var $t=this,qt=$t.ready().then(function(){for(var Mn=$t._dbInfo,En=Mn.keyPrefix,Oi=En.length,ir=localStorage.length,or=1,Ui=0;Ui<ir;Ui++){var yr=localStorage.key(Ui);if(0===yr.indexOf(En)){var Wr=localStorage.getItem(yr);if(Wr&&(Wr=Mn.serializer.deserialize(Wr)),void 0!==(Wr=At(Wr,yr.substring(Oi),or++)))return Wr}}});return X(qt,_n),qt},getItem:function es(At,_n){var $t=this;At=fe(At);var qt=$t.ready().then(function(){var Mn=$t._dbInfo,En=localStorage.getItem(Mn.keyPrefix+At);return En&&(En=Mn.serializer.deserialize(En)),En});return X(qt,_n),qt},setItem:function uu(At,_n,$t){var qt=this;At=fe(At);var Mn=qt.ready().then(function(){void 0===_n&&(_n=null);var En=_n;return new Z(function(Oi,ir){var or=qt._dbInfo;or.serializer.serialize(_n,function(Ui,yr){if(yr)ir(yr);else try{localStorage.setItem(or.keyPrefix+At,Ui),Oi(En)}catch(Wr){("QuotaExceededError"===Wr.name||"NS_ERROR_DOM_QUOTA_REACHED"===Wr.name)&&ir(Wr),ir(Wr)}})})});return X(Mn,$t),Mn},removeItem:function Xl(At,_n){var $t=this;At=fe(At);var qt=$t.ready().then(function(){localStorage.removeItem($t._dbInfo.keyPrefix+At)});return X(qt,_n),qt},clear:function Hs(At){var _n=this,$t=_n.ready().then(function(){for(var qt=_n._dbInfo.keyPrefix,Mn=localStorage.length-1;Mn>=0;Mn--){var En=localStorage.key(Mn);0===En.indexOf(qt)&&localStorage.removeItem(En)}});return X($t,At),$t},length:function rc(At){var $t=this.keys().then(function(qt){return qt.length});return X($t,At),$t},key:function Us(At,_n){var $t=this,qt=$t.ready().then(function(){var En,Mn=$t._dbInfo;try{En=localStorage.key(At)}catch{En=null}return En&&(En=En.substring(Mn.keyPrefix.length)),En});return X(qt,_n),qt},keys:function Ml(At){var _n=this,$t=_n.ready().then(function(){for(var qt=_n._dbInfo,Mn=localStorage.length,En=[],Oi=0;Oi<Mn;Oi++){var ir=localStorage.key(Oi);0===ir.indexOf(qt.keyPrefix)&&En.push(ir.substring(qt.keyPrefix.length))}return En});return X($t,At),$t},dropInstance:function qu(At,_n){if(_n=q.apply(this,arguments),!(At="function"!=typeof At&&At||{}).name){var $t=this.config();At.name=At.name||$t.name,At.storeName=At.storeName||$t.storeName}var Mn,qt=this;return X(Mn=At.name?new Z(function(En){En(At.storeName?os(At,qt._defaultConfig):At.name+"/")}).then(function(En){for(var Oi=localStorage.length-1;Oi>=0;Oi--){var ir=localStorage.key(Oi);0===ir.indexOf(En)&&localStorage.removeItem(ir)}}):Z.reject("Invalid arguments"),_n),Mn}},xc=function(_n,$t){return _n===$t||"number"==typeof _n&&"number"==typeof $t&&isNaN(_n)&&isNaN($t)},ad=function(_n,$t){for(var qt=_n.length,Mn=0;Mn<qt;){if(xc(_n[Mn],$t))return!0;Mn++}return!1},Du=Array.isArray||function(At){return"[object Array]"===Object.prototype.toString.call(At)},Ka={},Ec={},ri={INDEXEDDB:Dn,WEBSQL:Wo,LOCALSTORAGE:Fa},Xc=[ri.INDEXEDDB._driver,ri.WEBSQL._driver,ri.LOCALSTORAGE._driver],sl=["dropInstance"],ta=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(sl),Ia={description:"",driver:Xc.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function ns(At,_n){At[_n]=function(){var $t=arguments;return At.ready().then(function(){return At[_n].apply(At,$t)})}}function Mr(){for(var At=1;At<arguments.length;At++){var _n=arguments[At];if(_n)for(var $t in _n)_n.hasOwnProperty($t)&&(arguments[0][$t]=Du(_n[$t])?_n[$t].slice():_n[$t])}return arguments[0]}var Dc=function(){function At(_n){for(var $t in function R(At,_n){if(!(At instanceof _n))throw new TypeError("Cannot call a class as a function")}(this,At),ri)if(ri.hasOwnProperty($t)){var qt=ri[$t],Mn=qt._driver;this[$t]=Mn,Ka[Mn]||this.defineDriver(qt)}this._defaultConfig=Mr({},Ia),this._config=Mr({},this._defaultConfig,_n),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return At.prototype.config=function($t){if("object"===(typeof $t>"u"?"undefined":k($t))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var qt in $t){if("storeName"===qt&&($t[qt]=$t[qt].replace(/\W/g,"_")),"version"===qt&&"number"!=typeof $t[qt])return new Error("Database version must be a number.");this._config[qt]=$t[qt]}return!("driver"in $t)||!$t.driver||this.setDriver(this._config.driver)}return"string"==typeof $t?this._config[$t]:this._config},At.prototype.defineDriver=function($t,qt,Mn){var En=new Z(function(Oi,ir){try{var or=$t._driver,Ui=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!$t._driver)return void ir(Ui);for(var yr=ta.concat("_initStorage"),Wr=0,zo=yr.length;Wr<zo;Wr++){var ss=yr[Wr];if((!ad(sl,ss)||$t[ss])&&"function"!=typeof $t[ss])return void ir(Ui)}!function(){for(var Aa=function(fi){return function(){var _l=new Error("Method "+fi+" is not implemented by the current driver"),al=Z.reject(_l);return X(al,arguments[arguments.length-1]),al}},Bs=0,oo=sl.length;Bs<oo;Bs++){var Kc=sl[Bs];$t[Kc]||($t[Kc]=Aa(Kc))}}();var bi=function(Aa){Ka[or]&&console.info("Redefining LocalForage driver: "+or),Ka[or]=$t,Ec[or]=Aa,Oi()};"_support"in $t?$t._support&&"function"==typeof $t._support?$t._support().then(bi,ir):bi(!!$t._support):bi(!0)}catch(go){ir(go)}});return z(En,qt,Mn),En},At.prototype.driver=function(){return this._driver||null},At.prototype.getDriver=function($t,qt,Mn){var En=Ka[$t]?Z.resolve(Ka[$t]):Z.reject(new Error("Driver not found."));return z(En,qt,Mn),En},At.prototype.getSerializer=function($t){var qt=Z.resolve(Ro);return z(qt,$t),qt},At.prototype.ready=function($t){var qt=this,Mn=qt._driverSet.then(function(){return null===qt._ready&&(qt._ready=qt._initDriver()),qt._ready});return z(Mn,$t,$t),Mn},At.prototype.setDriver=function($t,qt,Mn){var En=this;Du($t)||($t=[$t]);var Oi=this._getSupportedDrivers($t);function ir(){En._config.driver=En.driver()}function or(Wr){return En._extend(Wr),ir(),En._ready=En._initStorage(En._config),En._ready}var yr=null!==this._driverSet?this._driverSet.catch(function(){return Z.resolve()}):Z.resolve();return this._driverSet=yr.then(function(){var Wr=Oi[0];return En._dbInfo=null,En._ready=null,En.getDriver(Wr).then(function(zo){En._driver=zo._driver,ir(),En._wrapLibraryMethodsWithReady(),En._initDriver=function Ui(Wr){return function(){var zo=0;return function ss(){for(;zo<Wr.length;){var Ho=Wr[zo];return zo++,En._dbInfo=null,En._ready=null,En.getDriver(Ho).then(or).catch(ss)}ir();var Ps=new Error("No available storage method found.");return En._driverSet=Z.reject(Ps),En._driverSet}()}}(Oi)})}).catch(function(){ir();var Wr=new Error("No available storage method found.");return En._driverSet=Z.reject(Wr),En._driverSet}),z(this._driverSet,qt,Mn),this._driverSet},At.prototype.supports=function($t){return!!Ec[$t]},At.prototype._extend=function($t){Mr(this,$t)},At.prototype._getSupportedDrivers=function($t){for(var qt=[],Mn=0,En=$t.length;Mn<En;Mn++){var Oi=$t[Mn];this.supports(Oi)&&qt.push(Oi)}return qt},At.prototype._wrapLibraryMethodsWithReady=function(){for(var $t=0,qt=ta.length;$t<qt;$t++)ns(this,ta[$t])},At.prototype.createInstance=function($t){return new At($t)},At}(),mc=new Dc;E.exports=mc},{3:3}]},{},[4])(4)},8328:(m,y,b)=>{m=b.nmd(m);var C="__lodash_hash_undefined__",E=9007199254740991,D="[object Arguments]",R="[object Boolean]",P="[object Date]",Q="[object Function]",H="[object GeneratorFunction]",Z="[object Map]",X="[object Number]",z="[object Object]",fe="[object Promise]",q="[object RegExp]",ne="[object Set]",N="[object String]",Y="[object Symbol]",W="[object WeakMap]",J="[object ArrayBuffer]",n="[object DataView]",K="[object Float32Array]",se="[object Float64Array]",De="[object Int8Array]",Fe="[object Int16Array]",_e="[object Int32Array]",ke="[object Uint8Array]",be="[object Uint8ClampedArray]",Ve="[object Uint16Array]",Ie="[object Uint32Array]",de=/\w*$/,le=/^\[object .+?Constructor\]$/,xe=/^(?:0|[1-9]\d*)$/,We={};We[D]=We["[object Array]"]=We[J]=We[n]=We[R]=We[P]=We[K]=We[se]=We[De]=We[Fe]=We[_e]=We[Z]=We[X]=We[z]=We[q]=We[ne]=We[N]=We[Y]=We[ke]=We[be]=We[Ve]=We[Ie]=!0,We["[object Error]"]=We[Q]=We[W]=!1;var st="object"==typeof global&&global&&global.Object===Object&&global,ut="object"==typeof self&&self&&self.Object===Object&&self,Ae=st||ut||Function("return this")(),ye=y&&!y.nodeType&&y,Re=ye&&m&&!m.nodeType&&m,Qe=Re&&Re.exports===ye;function vt(te,he){return te.set(he[0],he[1]),te}function Nt(te,he){return te.add(he),te}function ze(te,he,$e,ct){var tn=-1,an=te?te.length:0;for(ct&&an&&($e=te[++tn]);++tn<an;)$e=he($e,te[tn],tn,te);return $e}function Dn(te){var he=!1;if(null!=te&&"function"!=typeof te.toString)try{he=!!(te+"")}catch{}return he}function wt(te){var he=-1,$e=Array(te.size);return te.forEach(function(ct,tn){$e[++he]=[tn,ct]}),$e}function Hn(te,he){return function($e){return te(he($e))}}function Gt(te){var he=-1,$e=Array(te.size);return te.forEach(function(ct){$e[++he]=ct}),$e}var te,An=Array.prototype,Kt=Function.prototype,Ot=Object.prototype,Vt=Ae["__core-js_shared__"],Fn=(te=/[^.]+$/.exec(Vt&&Vt.keys&&Vt.keys.IE_PROTO||""))?"Symbol(src)_1."+te:"",kn=Kt.toString,$n=Ot.hasOwnProperty,Ii=Ot.toString,Ni=RegExp("^"+kn.call($n).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ki=Qe?Ae.Buffer:void 0,Qr=Ae.Symbol,Cr=Ae.Uint8Array,wr=Hn(Object.getPrototypeOf,Object),vs=Object.create,rs=Ot.propertyIsEnumerable,ur=An.splice,Ns=Object.getOwnPropertySymbols,to=Ki?Ki.isBuffer:void 0,Qs=Hn(Object.keys,Object),pr=Ho(Ae,"DataView"),Ro=Ho(Ae,"Map"),Xo=Ho(Ae,"Promise"),El=Ho(Ae,"Set"),ks=Ho(Ae,"WeakMap"),ol=Ho(Object,"create"),Xa=_l(pr),ya=_l(Ro),Dr=_l(Xo),ja=_l(El),ws=_l(ks),Ko=Qr?Qr.prototype:void 0,da=Ko?Ko.valueOf:void 0;function Bo(te){var he=-1,$e=te?te.length:0;for(this.clear();++he<$e;){var ct=te[he];this.set(ct[0],ct[1])}}function Gs(te){var he=-1,$e=te?te.length:0;for(this.clear();++he<$e;){var ct=te[he];this.set(ct[0],ct[1])}}function Us(te){var he=-1,$e=te?te.length:0;for(this.clear();++he<$e;){var ct=te[he];this.set(ct[0],ct[1])}}function Fa(te){this.__data__=new Gs(te)}function Xc(te,he,$e){var ct=te[he];(!$n.call(te,he)||!Is(ct,$e)||void 0===$e&&!(he in te))&&(te[he]=$e)}function sl(te,he){for(var $e=te.length;$e--;)if(Is(te[$e][0],he))return $e;return-1}function Ia(te,he,$e,ct,tn,an,oi){var ei;if(ct&&(ei=an?ct(te,tn,an,oi):ct(te)),void 0!==ei)return ei;if(!Jr(te))return te;var Ci=ku(te);if(Ci){if(ei=function go(te){var he=te.length,$e=te.constructor(he);return he&&"string"==typeof te[0]&&$n.call(te,"index")&&($e.index=te.index,$e.input=te.input),$e}(te),!he)return function Ui(te,he){var $e=-1,ct=te.length;for(he||(he=Array(ct));++$e<ct;)he[$e]=te[$e];return he}(te,ei)}else{var Zn=bi(te),vr=Zn==Q||Zn==H;if(na(te))return function _n(te,he){if(he)return te.slice();var $e=new te.constructor(te.length);return te.copy($e),$e}(te,he);if(Zn==z||Zn==D||vr&&!an){if(Dn(te))return an?te:{};if(ei=function Aa(te){return"function"!=typeof te.constructor||fi(te)?{}:function ns(te){return Jr(te)?vs(te):{}}(wr(te))}(vr?{}:te),!he)return function Wr(te,he){return yr(te,Ps(te),he)}(te,function ta(te,he){return te&&yr(he,du(he),te)}(ei,te))}else{if(!We[Zn])return an?te:{};ei=function Bs(te,he,$e,ct){var tn=te.constructor;switch(he){case J:return $t(te);case R:case P:return new tn(+te);case n:return function qt(te,he){var $e=he?$t(te.buffer):te.buffer;return new te.constructor($e,te.byteOffset,te.byteLength)}(te,ct);case K:case se:case De:case Fe:case _e:case ke:case be:case Ve:case Ie:return function or(te,he){var $e=he?$t(te.buffer):te.buffer;return new te.constructor($e,te.byteOffset,te.length)}(te,ct);case Z:return function Mn(te,he,$e){return ze(he?$e(wt(te),!0):wt(te),vt,new te.constructor)}(te,ct,$e);case X:case N:return new tn(te);case q:return function En(te){var he=new te.constructor(te.source,de.exec(te));return he.lastIndex=te.lastIndex,he}(te);case ne:return function Oi(te,he,$e){return ze(he?$e(Gt(te),!0):Gt(te),Nt,new te.constructor)}(te,ct,$e);case Y:return function ir(te){return da?Object(da.call(te)):{}}(te)}}(te,Zn,Ia,he)}}oi||(oi=new Fa);var ti=oi.get(te);if(ti)return ti;if(oi.set(te,ei),!Ci)var Rr=$e?function zo(te){return function Mr(te,he,$e){var ct=he(te);return ku(te)?ct:function qe(te,he){for(var $e=-1,ct=he.length,tn=te.length;++$e<ct;)te[tn+$e]=he[$e];return te}(ct,$e(te))}(te,du,Ps)}(te):du(te);return function Dt(te,he){for(var $e=-1,ct=te?te.length:0;++$e<ct&&!1!==he(te[$e],$e,te););}(Rr||te,function(Rn,nr){Rr&&(Rn=te[nr=Rn]),Xc(ei,nr,Ia(Rn,he,$e,ct,nr,te,oi))}),ei}function $t(te){var he=new te.constructor(te.byteLength);return new Cr(he).set(new Cr(te)),he}function yr(te,he,$e,ct){$e||($e={});for(var tn=-1,an=he.length;++tn<an;){var oi=he[tn],ei=ct?ct($e[oi],te[oi],oi,$e,te):void 0;Xc($e,oi,void 0===ei?te[oi]:ei)}return $e}function ss(te,he){var $e=te.__data__;return function Kc(te){var he=typeof te;return"string"==he||"number"==he||"symbol"==he||"boolean"==he?"__proto__"!==te:null===te}(he)?$e["string"==typeof he?"string":"hash"]:$e.map}function Ho(te,he){var $e=function dt(te,he){return te?.[he]}(te,he);return function mc(te){return!(!Jr(te)||function kc(te){return!!Fn&&Fn in te}(te))&&(Eo(te)||Dn(te)?Ni:le).test(_l(te))}($e)?$e:void 0}Bo.prototype.clear=function Dl(){this.__data__=ol?ol(null):{}},Bo.prototype.delete=function qr(te){return this.has(te)&&delete this.__data__[te]},Bo.prototype.get=function Wo(te){var he=this.__data__;if(ol){var $e=he[te];return $e===C?void 0:$e}return $n.call(he,te)?he[te]:void 0},Bo.prototype.has=function Il(te){var he=this.__data__;return ol?void 0!==he[te]:$n.call(he,te)},Bo.prototype.set=function os(te,he){return this.__data__[te]=ol&&void 0===he?C:he,this},Gs.prototype.clear=function _s(){this.__data__=[]},Gs.prototype.delete=function vl(te){var he=this.__data__,$e=sl(he,te);return!($e<0||($e==he.length-1?he.pop():ur.call(he,$e,1),0))},Gs.prototype.get=function Hs(te){var he=this.__data__,$e=sl(he,te);return $e<0?void 0:he[$e][1]},Gs.prototype.has=function es(te){return sl(this.__data__,te)>-1},Gs.prototype.set=function Al(te,he){var $e=this.__data__,ct=sl($e,te);return ct<0?$e.push([te,he]):$e[ct][1]=he,this},Us.prototype.clear=function Ml(){this.__data__={hash:new Bo,map:new(Ro||Gs),string:new Bo}},Us.prototype.delete=function rc(te){return ss(this,te).delete(te)},Us.prototype.get=function Xl(te){return ss(this,te).get(te)},Us.prototype.has=function uu(te){return ss(this,te).has(te)},Us.prototype.set=function qu(te,he){return ss(this,te).set(te,he),this},Fa.prototype.clear=function xc(){this.__data__=new Gs},Fa.prototype.delete=function ad(te){return this.__data__.delete(te)},Fa.prototype.get=function Du(te){return this.__data__.get(te)},Fa.prototype.has=function Ka(te){return this.__data__.has(te)},Fa.prototype.set=function Ec(te,he){var $e=this.__data__;if($e instanceof Gs){var ct=$e.__data__;if(!Ro||ct.length<199)return ct.push([te,he]),this;$e=this.__data__=new Us(ct)}return $e.set(te,he),this};var Ps=Ns?Hn(Ns,Object):function gc(){return[]},bi=function Dc(te){return Ii.call(te)};function oo(te,he){return!!(he=he??E)&&("number"==typeof te||xe.test(te))&&te>-1&&te%1==0&&te<he}function fi(te){var he=te&&te.constructor;return te===("function"==typeof he&&he.prototype||Ot)}function _l(te){if(null!=te){try{return kn.call(te)}catch{}try{return te+""}catch{}}return""}function Is(te,he){return te===he||te!=te&&he!=he}(pr&&bi(new pr(new ArrayBuffer(1)))!=n||Ro&&bi(new Ro)!=Z||Xo&&bi(Xo.resolve())!=fe||El&&bi(new El)!=ne||ks&&bi(new ks)!=W)&&(bi=function(te){var he=Ii.call(te),$e=he==z?te.constructor:void 0,ct=$e?_l($e):void 0;if(ct)switch(ct){case Xa:return n;case ya:return Z;case Dr:return fe;case ja:return ne;case ws:return W}return he});var ku=Array.isArray;function cl(te){return null!=te&&function Ha(te){return"number"==typeof te&&te>-1&&te%1==0&&te<=E}(te.length)&&!Eo(te)}var na=to||function Ic(){return!1};function Eo(te){var he=Jr(te)?Ii.call(te):"";return he==Q||he==H}function Jr(te){var he=typeof te;return!!te&&("object"==he||"function"==he)}function du(te){return cl(te)?function ri(te,he){var $e=ku(te)||function ll(te){return function yl(te){return function uo(te){return!!te&&"object"==typeof te}(te)&&cl(te)}(te)&&$n.call(te,"callee")&&(!rs.call(te,"callee")||Ii.call(te)==D)}(te)?function Ge(te,he){for(var $e=-1,ct=Array(te);++$e<te;)ct[$e]=he($e);return ct}(te.length,String):[],ct=$e.length,tn=!!ct;for(var an in te)(he||$n.call(te,an))&&(!tn||"length"!=an&&!oo(an,ct))&&$e.push(an);return $e}(te):function At(te){if(!fi(te))return Qs(te);var he=[];for(var $e in Object(te))$n.call(te,$e)&&"constructor"!=$e&&he.push($e);return he}(te)}m.exports=function al(te){return Ia(te,!0,!0)}},5667:(m,y,b)=>{m=b.nmd(m);var C="__lodash_hash_undefined__",k=9007199254740991,R="[object Arguments]",P="[object Array]",Q="[object Boolean]",H="[object Date]",Z="[object Error]",X="[object Function]",fe="[object Map]",q="[object Number]",N="[object Object]",Y="[object Promise]",J="[object RegExp]",n="[object Set]",K="[object String]",Fe="[object WeakMap]",_e="[object ArrayBuffer]",ke="[object DataView]",Ae=/^\[object .+?Constructor\]$/,ye=/^(?:0|[1-9]\d*)$/,Re={};Re["[object Float32Array]"]=Re["[object Float64Array]"]=Re["[object Int8Array]"]=Re["[object Int16Array]"]=Re["[object Int32Array]"]=Re["[object Uint8Array]"]=Re["[object Uint8ClampedArray]"]=Re["[object Uint16Array]"]=Re["[object Uint32Array]"]=!0,Re[R]=Re[P]=Re[_e]=Re[Q]=Re[ke]=Re[H]=Re[Z]=Re[X]=Re[fe]=Re[q]=Re[N]=Re[J]=Re[n]=Re[K]=Re[Fe]=!1;var Qe="object"==typeof global&&global&&global.Object===Object&&global,vt="object"==typeof self&&self&&self.Object===Object&&self,Nt=Qe||vt||Function("return this")(),Dt=y&&!y.nodeType&&y,qe=Dt&&m&&!m.nodeType&&m,ze=qe&&qe.exports===Dt,Ge=ze&&Qe.process,dt=function(){try{return Ge&&Ge.binding&&Ge.binding("util")}catch{}}(),Dn=dt&&dt.isTypedArray;function Gt(te,he){for(var $e=-1,ct=null==te?0:te.length;++$e<ct;)if(he(te[$e],$e,te))return!0;return!1}function Ot(te,he){return te.has(he)}function Fn(te){var he=-1,$e=Array(te.size);return te.forEach(function(ct,tn){$e[++he]=[tn,ct]}),$e}function $n(te){var he=-1,$e=Array(te.size);return te.forEach(function(ct){$e[++he]=ct}),$e}var te,Ii=Array.prototype,Ki=Object.prototype,Qr=Nt["__core-js_shared__"],Cr=Function.prototype.toString,wr=Ki.hasOwnProperty,vs=(te=/[^.]+$/.exec(Qr&&Qr.keys&&Qr.keys.IE_PROTO||""))?"Symbol(src)_1."+te:"",rs=Ki.toString,ur=RegExp("^"+Cr.call(wr).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ns=ze?Nt.Buffer:void 0,to=Nt.Symbol,Qs=Nt.Uint8Array,pr=Ki.propertyIsEnumerable,Ro=Ii.splice,Xo=to?to.toStringTag:void 0,El=Object.getOwnPropertySymbols,ks=Ns?Ns.isBuffer:void 0,ol=function kn(te,he){return function($e){return te(he($e))}}(Object.keys,Object),Xa=Ps(Nt,"DataView"),ya=Ps(Nt,"Map"),Dr=Ps(Nt,"Promise"),ja=Ps(Nt,"Set"),ws=Ps(Nt,"WeakMap"),Ko=Ps(Object,"create"),da=_l(Xa),Bo=_l(ya),Dl=_l(Dr),qr=_l(ja),Wo=_l(ws),Il=to?to.prototype:void 0,os=Il?Il.valueOf:void 0;function Gs(te){var he=-1,$e=null==te?0:te.length;for(this.clear();++he<$e;){var ct=te[he];this.set(ct[0],ct[1])}}function Us(te){var he=-1,$e=null==te?0:te.length;for(this.clear();++he<$e;){var ct=te[he];this.set(ct[0],ct[1])}}function Fa(te){var he=-1,$e=null==te?0:te.length;for(this.clear();++he<$e;){var ct=te[he];this.set(ct[0],ct[1])}}function ri(te){var he=-1,$e=null==te?0:te.length;for(this.__data__=new Fa;++he<$e;)this.add(te[he])}function ta(te){var he=this.__data__=new Us(te);this.size=he.size}function _n(te,he){for(var $e=te.length;$e--;)if(al(te[$e][0],he))return $e;return-1}function qt(te){return null==te?void 0===te?"[object Undefined]":"[object Null]":Xo&&Xo in Object(te)?function bi(te){var he=wr.call(te,Xo),$e=te[Xo];try{te[Xo]=void 0;var ct=!0}catch{}var tn=rs.call(te);return ct&&(he?te[Xo]=$e:delete te[Xo]),tn}(te):function fi(te){return rs.call(te)}(te)}function Mn(te){return Jr(te)&&qt(te)==R}function En(te,he,$e,ct,tn){return te===he||(null==te||null==he||!Jr(te)&&!Jr(he)?te!=te&&he!=he:function Oi(te,he,$e,ct,tn,an){var oi=ll(te),ei=ll(he),Ci=oi?P:Aa(te),Zn=ei?P:Aa(he),vr=(Ci=Ci==R?N:Ci)==N,ti=(Zn=Zn==R?N:Zn)==N,Rr=Ci==Zn;if(Rr&&cl(te)){if(!cl(he))return!1;oi=!0,vr=!1}if(Rr&&!vr)return an||(an=new ta),oi||uo(te)?yr(te,he,$e,ct,tn,an):function Wr(te,he,$e,ct,tn,an,oi){switch($e){case ke:if(te.byteLength!=he.byteLength||te.byteOffset!=he.byteOffset)return!1;te=te.buffer,he=he.buffer;case _e:return!(te.byteLength!=he.byteLength||!an(new Qs(te),new Qs(he)));case Q:case H:case q:return al(+te,+he);case Z:return te.name==he.name&&te.message==he.message;case J:case K:return te==he+"";case fe:var ei=Fn;case n:if(ei||(ei=$n),te.size!=he.size&&!(1&ct))return!1;var Zn=oi.get(te);if(Zn)return Zn==he;ct|=2,oi.set(te,he);var vr=yr(ei(te),ei(he),ct,tn,an,oi);return oi.delete(te),vr;case"[object Symbol]":if(os)return os.call(te)==os.call(he)}return!1}(te,he,Ci,$e,ct,tn,an);if(!(1&$e)){var Rn=vr&&wr.call(te,"__wrapped__"),nr=ti&&wr.call(he,"__wrapped__");if(Rn||nr){var dr=Rn?te.value():te,Or=nr?he.value():he;return an||(an=new ta),tn(dr,Or,$e,ct,an)}}return!!Rr&&(an||(an=new ta),function zo(te,he,$e,ct,tn,an){var oi=1&$e,ei=ss(te),Ci=ei.length;if(Ci!=ss(he).length&&!oi)return!1;for(var ti=Ci;ti--;){var Rr=ei[ti];if(!(oi?Rr in he:wr.call(he,Rr)))return!1}var Rn=an.get(te);if(Rn&&an.get(he))return Rn==he;var nr=!0;an.set(te,he),an.set(he,te);for(var dr=oi;++ti<Ci;){var Or=te[Rr=ei[ti]],Zo=he[Rr];if(ct)var jr=oi?ct(Zo,Or,Rr,he,te,an):ct(Or,Zo,Rr,te,he,an);if(!(void 0===jr?Or===Zo||tn(Or,Zo,$e,ct,an):jr)){nr=!1;break}dr||(dr="constructor"==Rr)}if(nr&&!dr){var as=te.constructor,$s=he.constructor;as!=$s&&"constructor"in te&&"constructor"in he&&!("function"==typeof as&&as instanceof as&&"function"==typeof $s&&$s instanceof $s)&&(nr=!1)}return an.delete(te),an.delete(he),nr}(te,he,$e,ct,tn,an))}(te,he,$e,ct,En,tn))}function yr(te,he,$e,ct,tn,an){var oi=1&$e,ei=te.length,Ci=he.length;if(ei!=Ci&&!(oi&&Ci>ei))return!1;var Zn=an.get(te);if(Zn&&an.get(he))return Zn==he;var vr=-1,ti=!0,Rr=2&$e?new ri:void 0;for(an.set(te,he),an.set(he,te);++vr<ei;){var Rn=te[vr],nr=he[vr];if(ct)var dr=oi?ct(nr,Rn,vr,he,te,an):ct(Rn,nr,vr,te,he,an);if(void 0!==dr){if(dr)continue;ti=!1;break}if(Rr){if(!Gt(he,function(Or,Zo){if(!Ot(Rr,Zo)&&(Rn===Or||tn(Rn,Or,$e,ct,an)))return Rr.push(Zo)})){ti=!1;break}}else if(Rn!==nr&&!tn(Rn,nr,$e,ct,an)){ti=!1;break}}return an.delete(te),an.delete(he),ti}function ss(te){return function $t(te,he,$e){var ct=he(te);return ll(te)?ct:function Hn(te,he){for(var $e=-1,ct=he.length,tn=te.length;++$e<ct;)te[tn+$e]=he[$e];return te}(ct,$e(te))}(te,du,go)}function Ho(te,he){var $e=te.__data__;return function oo(te){var he=typeof te;return"string"==he||"number"==he||"symbol"==he||"boolean"==he?"__proto__"!==te:null===te}(he)?$e["string"==typeof he?"string":"hash"]:$e.map}function Ps(te,he){var $e=function Vt(te,he){return te?.[he]}(te,he);return function ir(te){return!(!Ha(te)||function Kc(te){return!!vs&&vs in te}(te))&&(na(te)?ur:Ae).test(_l(te))}($e)?$e:void 0}Gs.prototype.clear=function _s(){this.__data__=Ko?Ko(null):{},this.size=0},Gs.prototype.delete=function vl(te){var he=this.has(te)&&delete this.__data__[te];return this.size-=he?1:0,he},Gs.prototype.get=function Hs(te){var he=this.__data__;if(Ko){var $e=he[te];return $e===C?void 0:$e}return wr.call(he,te)?he[te]:void 0},Gs.prototype.has=function es(te){var he=this.__data__;return Ko?void 0!==he[te]:wr.call(he,te)},Gs.prototype.set=function Al(te,he){var $e=this.__data__;return this.size+=this.has(te)?0:1,$e[te]=Ko&&void 0===he?C:he,this},Us.prototype.clear=function Ml(){this.__data__=[],this.size=0},Us.prototype.delete=function rc(te){var he=this.__data__,$e=_n(he,te);return!($e<0||($e==he.length-1?he.pop():Ro.call(he,$e,1),--this.size,0))},Us.prototype.get=function Xl(te){var he=this.__data__,$e=_n(he,te);return $e<0?void 0:he[$e][1]},Us.prototype.has=function uu(te){return _n(this.__data__,te)>-1},Us.prototype.set=function qu(te,he){var $e=this.__data__,ct=_n($e,te);return ct<0?(++this.size,$e.push([te,he])):$e[ct][1]=he,this},Fa.prototype.clear=function xc(){this.size=0,this.__data__={hash:new Gs,map:new(ya||Us),string:new Gs}},Fa.prototype.delete=function ad(te){var he=Ho(this,te).delete(te);return this.size-=he?1:0,he},Fa.prototype.get=function Du(te){return Ho(this,te).get(te)},Fa.prototype.has=function Ka(te){return Ho(this,te).has(te)},Fa.prototype.set=function Ec(te,he){var $e=Ho(this,te),ct=$e.size;return $e.set(te,he),this.size+=$e.size==ct?0:1,this},ri.prototype.add=ri.prototype.push=function Xc(te){return this.__data__.set(te,C),this},ri.prototype.has=function sl(te){return this.__data__.has(te)},ta.prototype.clear=function Ia(){this.__data__=new Us,this.size=0},ta.prototype.delete=function ns(te){var he=this.__data__,$e=he.delete(te);return this.size=he.size,$e},ta.prototype.get=function Mr(te){return this.__data__.get(te)},ta.prototype.has=function Dc(te){return this.__data__.has(te)},ta.prototype.set=function mc(te,he){var $e=this.__data__;if($e instanceof Us){var ct=$e.__data__;if(!ya||ct.length<199)return ct.push([te,he]),this.size=++$e.size,this;$e=this.__data__=new Fa(ct)}return $e.set(te,he),this.size=$e.size,this};var go=El?function(te){return null==te?[]:(te=Object(te),function wt(te,he){for(var $e=-1,ct=null==te?0:te.length,tn=0,an=[];++$e<ct;){var oi=te[$e];he(oi,$e,te)&&(an[tn++]=oi)}return an}(El(te),function(he){return pr.call(te,he)}))}:function gc(){return[]},Aa=qt;function Bs(te,he){return!!(he=he??k)&&("number"==typeof te||ye.test(te))&&te>-1&&te%1==0&&te<he}function _l(te){if(null!=te){try{return Cr.call(te)}catch{}try{return te+""}catch{}}return""}function al(te,he){return te===he||te!=te&&he!=he}(Xa&&Aa(new Xa(new ArrayBuffer(1)))!=ke||ya&&Aa(new ya)!=fe||Dr&&Aa(Dr.resolve())!=Y||ja&&Aa(new ja)!=n||ws&&Aa(new ws)!=Fe)&&(Aa=function(te){var he=qt(te),$e=he==N?te.constructor:void 0,ct=$e?_l($e):"";if(ct)switch(ct){case da:return ke;case Bo:return fe;case Dl:return Y;case qr:return n;case Wo:return Fe}return he});var Is=Mn(function(){return arguments}())?Mn:function(te){return Jr(te)&&wr.call(te,"callee")&&!pr.call(te,"callee")},ll=Array.isArray,cl=ks||function Ic(){return!1};function na(te){if(!Ha(te))return!1;var he=qt(te);return he==X||"[object GeneratorFunction]"==he||"[object AsyncFunction]"==he||"[object Proxy]"==he}function Eo(te){return"number"==typeof te&&te>-1&&te%1==0&&te<=k}function Ha(te){var he=typeof te;return null!=te&&("object"==he||"function"==he)}function Jr(te){return null!=te&&"object"==typeof te}var uo=Dn?function Kt(te){return function(he){return te(he)}}(Dn):function or(te){return Jr(te)&&Eo(te.length)&&!!Re[qt(te)]};function du(te){return function ku(te){return null!=te&&Eo(te.length)&&!na(te)}(te)?function At(te,he){var $e=ll(te),ct=!$e&&Is(te),tn=!$e&&!ct&&cl(te),an=!$e&&!ct&&!tn&&uo(te),oi=$e||ct||tn||an,ei=oi?function An(te,he){for(var $e=-1,ct=Array(te);++$e<te;)ct[$e]=he($e);return ct}(te.length,String):[],Ci=ei.length;for(var Zn in te)(he||wr.call(te,Zn))&&(!oi||!("length"==Zn||tn&&("offset"==Zn||"parent"==Zn)||an&&("buffer"==Zn||"byteLength"==Zn||"byteOffset"==Zn)||Bs(Zn,Ci)))&&ei.push(Zn);return ei}(te):function Ui(te){if(!function kc(te){var he=te&&te.constructor;return te===("function"==typeof he&&he.prototype||Ki)}(te))return ol(te);var he=[];for(var $e in Object(te))wr.call(te,$e)&&"constructor"!=$e&&he.push($e);return he}(te)}m.exports=function yl(te,he){return En(te,he)}},8982:function(module,exports,__webpack_require__){var y;typeof navigator<"u"&&(y=function(){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(y){_useWebWorker=!!y},getWebWorker=function(){return _useWebWorker},setLocationHref=function(y){locationHref=y},getLocationHref=function(){return locationHref};function createTag(m){return document.createElement(m)}function extendPrototype(m,y){var b,C,T=m.length;for(b=0;b<T;b+=1)for(var E in C=m[b].prototype)Object.prototype.hasOwnProperty.call(C,E)&&(y.prototype[E]=C[E])}function getDescriptor(m,y){return Object.getOwnPropertyDescriptor(m,y)}function createProxyFunction(m){function y(){}return y.prototype=m,y}var audioControllerFactory=function(){function m(y){this.audios=[],this.audioFactory=y,this._volume=1,this._isMuted=!1}return m.prototype={addAudio:function(b){this.audios.push(b)},pause:function(){var b,T=this.audios.length;for(b=0;b<T;b+=1)this.audios[b].pause()},resume:function(){var b,T=this.audios.length;for(b=0;b<T;b+=1)this.audios[b].resume()},setRate:function(b){var T,C=this.audios.length;for(T=0;T<C;T+=1)this.audios[T].setRate(b)},createAudio:function(b){return this.audioFactory?this.audioFactory(b):window.Howl?new window.Howl({src:[b]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(b){this.audioFactory=b},setVolume:function(b){this._volume=b,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var b,T=this.audios.length;for(b=0;b<T;b+=1)this.audios[b].volume(this._volume*(this._isMuted?0:1))}},function(){return new m}}(),createTypedArray=function(){function m(b,T){var D,C=0,E=[];switch(b){case"int16":case"uint8c":D=1;break;default:D=1.1}for(C=0;C<T;C+=1)E.push(D);return E}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function y(b,T){return"float32"===b?new Float32Array(T):"int16"===b?new Int16Array(T):"uint8c"===b?new Uint8ClampedArray(T):m(b,T)}:m}();function createSizedArray(m){return Array.apply(null,{length:m})}function _typeof$6(m){return(_typeof$6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(b){return typeof b}:function(b){return b&&"function"==typeof Symbol&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b})(m)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_shouldRoundValues=!1,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};function ProjectInterface$1(){return{}}!function(){var y,m=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],b=m.length;for(y=0;y<b;y+=1)BMMath[m[y]]=Math[m[y]]}(),BMMath.random=Math.random,BMMath.abs=function(m){if("object"===_typeof$6(m)&&m.length){var T,b=createSizedArray(m.length),C=m.length;for(T=0;T<C;T+=1)b[T]=Math.abs(m[T]);return b}return Math.abs(m)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(m){_shouldRoundValues=!!m}function bmRnd(m){return _shouldRoundValues?Math.round(m):m}function styleDiv(m){m.style.position="absolute",m.style.top=0,m.style.left=0,m.style.display="block",m.style.transformOrigin="0 0",m.style.webkitTransformOrigin="0 0",m.style.backfaceVisibility="visible",m.style.webkitBackfaceVisibility="visible",m.style.transformStyle="preserve-3d",m.style.webkitTransformStyle="preserve-3d",m.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(m,y,b,T){this.type=m,this.currentTime=y,this.totalTime=b,this.direction=T<0?-1:1}function BMCompleteEvent(m,y){this.type=m,this.direction=y<0?-1:1}function BMCompleteLoopEvent(m,y,b,T){this.type=m,this.currentLoop=b,this.totalLoops=y,this.direction=T<0?-1:1}function BMSegmentStartEvent(m,y,b){this.type=m,this.firstFrame=y,this.totalFrames=b}function BMDestroyEvent(m,y){this.type=m,this.target=y}function BMRenderFrameErrorEvent(m,y){this.type="renderFrameError",this.nativeError=m,this.currentTime=y}function BMConfigErrorEvent(m){this.type="configError",this.nativeError=m}function BMAnimationConfigErrorEvent(m,y){this.type=m,this.nativeError=y}var createElementID=function(){var m=0;return function(){return idPrefix$1+"__lottie_element_"+(m+=1)}}();function HSVtoRGB(m,y,b){var T,C,E,D,k,R,P,G;switch(R=b*(1-y),P=b*(1-(k=6*m-(D=Math.floor(6*m)))*y),G=b*(1-(1-k)*y),D%6){case 0:T=b,C=G,E=R;break;case 1:T=P,C=b,E=R;break;case 2:T=R,C=b,E=G;break;case 3:T=R,C=P,E=b;break;case 4:T=G,C=R,E=b;break;case 5:T=b,C=R,E=P}return[T,C,E]}function RGBtoHSV(m,y,b){var D,T=Math.max(m,y,b),C=Math.min(m,y,b),E=T-C,k=0===T?0:E/T,R=T/255;switch(T){case C:D=0;break;case m:D=y-b+E*(y<b?6:0),D/=6*E;break;case y:D=b-m+2*E,D/=6*E;break;case b:D=m-y+4*E,D/=6*E}return[D,k,R]}function addSaturationToRGB(m,y){var b=RGBtoHSV(255*m[0],255*m[1],255*m[2]);return b[1]+=y,b[1]>1?b[1]=1:b[1]<=0&&(b[1]=0),HSVtoRGB(b[0],b[1],b[2])}function addBrightnessToRGB(m,y){var b=RGBtoHSV(255*m[0],255*m[1],255*m[2]);return b[2]+=y,b[2]>1?b[2]=1:b[2]<0&&(b[2]=0),HSVtoRGB(b[0],b[1],b[2])}function addHueToRGB(m,y){var b=RGBtoHSV(255*m[0],255*m[1],255*m[2]);return b[0]+=y/360,b[0]>1?b[0]-=1:b[0]<0&&(b[0]+=1),HSVtoRGB(b[0],b[1],b[2])}var rgbToHex=function(){var y,b,m=[];for(y=0;y<256;y+=1)b=y.toString(16),m[y]=1===b.length?"0"+b:b;return function(T,C,E){return T<0&&(T=0),C<0&&(C=0),E<0&&(E=0),"#"+m[T]+m[C]+m[E]}}(),setSubframeEnabled=function(y){subframeEnabled=!!y},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(y){expressionsPlugin=y},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(y){expressionsInterfaces=y},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(y){defaultCurveSegments=y},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(y){idPrefix$1=y},getIdPrefix=function(){return idPrefix$1};function createNS(m){return document.createElementNS(svgNS,m)}function _typeof$5(m){return(_typeof$5="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(b){return typeof b}:function(b){return b&&"function"==typeof Symbol&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b})(m)}var dataManager=function(){var b,T,m=1,y=[],C={onmessage:function(){},postMessage:function(Z){b({data:Z})}},E={postMessage:function(Z){C.onmessage({data:Z})}};function k(){T||((T=function D(H){if(window.Worker&&window.Blob&&getWebWorker()){var Z=new Blob(["var _workerSelf = self; self.onmessage = ",H.toString()],{type:"text/javascript"}),X=URL.createObjectURL(Z);return new Worker(X)}return b=H,C}(function(Z){if(E.dataManager||(E.dataManager=function X(){function fe(Ve,Ie){var Se,de,xe,We,st,ut,le=Ve.length;for(de=0;de<le;de+=1)if("ks"in(Se=Ve[de])&&!Se.completed){if(Se.completed=!0,Se.hasMask){var Ae=Se.masksProperties;for(We=Ae.length,xe=0;xe<We;xe+=1)if(Ae[xe].pt.k.i)W(Ae[xe].pt.k);else for(ut=Ae[xe].pt.k.length,st=0;st<ut;st+=1)Ae[xe].pt.k[st].s&&W(Ae[xe].pt.k[st].s[0]),Ae[xe].pt.k[st].e&&W(Ae[xe].pt.k[st].e[0])}0===Se.ty?(Se.layers=N(Se.refId,Ie),fe(Se.layers,Ie)):4===Se.ty&&Y(Se.shapes)}}function N(Ve,Ie){var Se=function ne(Ve,Ie){for(var Se=0,de=Ie.length;Se<de;){if(Ie[Se].id===Ve)return Ie[Se];Se+=1}return null}(Ve,Ie);return Se?Se.layers.__used?JSON.parse(JSON.stringify(Se.layers)):(Se.layers.__used=!0,Se.layers):null}function Y(Ve){var Ie,de,le;for(Ie=Ve.length-1;Ie>=0;Ie-=1)if("sh"===Ve[Ie].ty)if(Ve[Ie].ks.k.i)W(Ve[Ie].ks.k);else for(le=Ve[Ie].ks.k.length,de=0;de<le;de+=1)Ve[Ie].ks.k[de].s&&W(Ve[Ie].ks.k[de].s[0]),Ve[Ie].ks.k[de].e&&W(Ve[Ie].ks.k[de].e[0]);else"gr"===Ve[Ie].ty&&Y(Ve[Ie].it)}function W(Ve){var Ie,Se=Ve.i.length;for(Ie=0;Ie<Se;Ie+=1)Ve.i[Ie][0]+=Ve.v[Ie][0],Ve.i[Ie][1]+=Ve.v[Ie][1],Ve.o[Ie][0]+=Ve.v[Ie][0],Ve.o[Ie][1]+=Ve.v[Ie][1]}function J(Ve,Ie){var Se=Ie?Ie.split("."):[100,100,100];return Ve[0]>Se[0]||!(Se[0]>Ve[0])&&(Ve[1]>Se[1]||!(Se[1]>Ve[1])&&(Ve[2]>Se[2]||!(Se[2]>Ve[2])&&null))}var n=function(){var Ve=[4,4,14];function Ie(de){de.t.d={k:[{s:de.t.d,t:0}]}}function Se(de){var le,xe=de.length;for(le=0;le<xe;le+=1)5===de[le].ty&&Ie(de[le])}return function(de){if(J(Ve,de.v)&&(Se(de.layers),de.assets)){var le,xe=de.assets.length;for(le=0;le<xe;le+=1)de.assets[le].layers&&Se(de.assets[le].layers)}}}(),K=function(){var Ve=[4,7,99];return function(Ie){if(Ie.chars&&!J(Ve,Ie.v)){var Se,de=Ie.chars.length;for(Se=0;Se<de;Se+=1){var le=Ie.chars[Se];le.data&&le.data.shapes&&(Y(le.data.shapes),le.data.ip=0,le.data.op=99999,le.data.st=0,le.data.sr=1,le.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},Ie.chars[Se].t||(le.data.shapes.push({ty:"no"}),le.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),se=function(){var Ve=[5,7,15];function Ie(de){var le=de.t.p;"number"==typeof le.a&&(le.a={a:0,k:le.a}),"number"==typeof le.p&&(le.p={a:0,k:le.p}),"number"==typeof le.r&&(le.r={a:0,k:le.r})}function Se(de){var le,xe=de.length;for(le=0;le<xe;le+=1)5===de[le].ty&&Ie(de[le])}return function(de){if(J(Ve,de.v)&&(Se(de.layers),de.assets)){var le,xe=de.assets.length;for(le=0;le<xe;le+=1)de.assets[le].layers&&Se(de.assets[le].layers)}}}(),De=function(){var Ve=[4,1,9];function Ie(de){var le,We,st,xe=de.length;for(le=0;le<xe;le+=1)if("gr"===de[le].ty)Ie(de[le].it);else if("fl"===de[le].ty||"st"===de[le].ty)if(de[le].c.k&&de[le].c.k[0].i)for(st=de[le].c.k.length,We=0;We<st;We+=1)de[le].c.k[We].s&&(de[le].c.k[We].s[0]/=255,de[le].c.k[We].s[1]/=255,de[le].c.k[We].s[2]/=255,de[le].c.k[We].s[3]/=255),de[le].c.k[We].e&&(de[le].c.k[We].e[0]/=255,de[le].c.k[We].e[1]/=255,de[le].c.k[We].e[2]/=255,de[le].c.k[We].e[3]/=255);else de[le].c.k[0]/=255,de[le].c.k[1]/=255,de[le].c.k[2]/=255,de[le].c.k[3]/=255}function Se(de){var le,xe=de.length;for(le=0;le<xe;le+=1)4===de[le].ty&&Ie(de[le].shapes)}return function(de){if(J(Ve,de.v)&&(Se(de.layers),de.assets)){var le,xe=de.assets.length;for(le=0;le<xe;le+=1)de.assets[le].layers&&Se(de.assets[le].layers)}}}(),Fe=function(){var Ve=[4,4,18];function Ie(de){var le,We,st;for(le=de.length-1;le>=0;le-=1)if("sh"===de[le].ty)if(de[le].ks.k.i)de[le].ks.k.c=de[le].closed;else for(st=de[le].ks.k.length,We=0;We<st;We+=1)de[le].ks.k[We].s&&(de[le].ks.k[We].s[0].c=de[le].closed),de[le].ks.k[We].e&&(de[le].ks.k[We].e[0].c=de[le].closed);else"gr"===de[le].ty&&Ie(de[le].it)}function Se(de){var le,xe,st,ut,Ae,ye,We=de.length;for(xe=0;xe<We;xe+=1){if((le=de[xe]).hasMask){var Re=le.masksProperties;for(ut=Re.length,st=0;st<ut;st+=1)if(Re[st].pt.k.i)Re[st].pt.k.c=Re[st].cl;else for(ye=Re[st].pt.k.length,Ae=0;Ae<ye;Ae+=1)Re[st].pt.k[Ae].s&&(Re[st].pt.k[Ae].s[0].c=Re[st].cl),Re[st].pt.k[Ae].e&&(Re[st].pt.k[Ae].e[0].c=Re[st].cl)}4===le.ty&&Ie(le.shapes)}}return function(de){if(J(Ve,de.v)&&(Se(de.layers),de.assets)){var le,xe=de.assets.length;for(le=0;le<xe;le+=1)de.assets[le].layers&&Se(de.assets[le].layers)}}}(),be={completeData:function _e(Ve){Ve.__complete||(De(Ve),n(Ve),K(Ve),se(Ve),Fe(Ve),fe(Ve.layers,Ve.assets),function q(Ve,Ie){if(Ve){var Se=0,de=Ve.length;for(Se=0;Se<de;Se+=1)1===Ve[Se].t&&(Ve[Se].data.layers=N(Ve[Se].data.refId,Ie),fe(Ve[Se].data.layers,Ie))}}(Ve.chars,Ve.assets),Ve.__complete=!0)}};return be.checkColors=De,be.checkChars=K,be.checkPathProperties=se,be.checkShapes=Fe,be.completeLayers=fe,be}()),E.assetLoader||(E.assetLoader=function(){function fe(ne){var N=ne.getResponseHeader("content-type");return N&&"json"===ne.responseType&&-1!==N.indexOf("json")||ne.response&&"object"===_typeof$5(ne.response)?ne.response:ne.response&&"string"==typeof ne.response?JSON.parse(ne.response):ne.responseText?JSON.parse(ne.responseText):null}return{load:function q(ne,N,Y,W){var J,n=new XMLHttpRequest;try{n.responseType="json"}catch{}n.onreadystatechange=function(){if(4===n.readyState)if(200===n.status)J=fe(n),Y(J);else try{J=fe(n),Y(J)}catch(K){W&&W(K)}};try{n.open(["G","E","T"].join(""),ne,!0)}catch{n.open(["G","E","T"].join(""),N+"/"+ne,!0)}n.send()}}}()),"loadAnimation"===Z.data.type)E.assetLoader.load(Z.data.path,Z.data.fullPath,function(fe){E.dataManager.completeData(fe),E.postMessage({id:Z.data.id,payload:fe,status:"success"})},function(){E.postMessage({id:Z.data.id,status:"error"})});else if("complete"===Z.data.type){var z=Z.data.animation;E.dataManager.completeData(z),E.postMessage({id:Z.data.id,payload:z,status:"success"})}else"loadData"===Z.data.type&&E.assetLoader.load(Z.data.path,Z.data.fullPath,function(fe){E.postMessage({id:Z.data.id,payload:fe,status:"success"})},function(){E.postMessage({id:Z.data.id,status:"error"})})})).onmessage=function(H){var Z=H.data,X=Z.id,z=y[X];y[X]=null,"success"===Z.status?z.onComplete(Z.payload):z.onError&&z.onError()})}function R(H,Z){var X="processId_"+(m+=1);return y[X]={onComplete:H,onError:Z},X}return{loadAnimation:function P(H,Z,X){k();var z=R(Z,X);T.postMessage({type:"loadAnimation",path:H,fullPath:window.location.origin+window.location.pathname,id:z})},loadData:function G(H,Z,X){k();var z=R(Z,X);T.postMessage({type:"loadData",path:H,fullPath:window.location.origin+window.location.pathname,id:z})},completeAnimation:function Q(H,Z,X){k();var z=R(Z,X);T.postMessage({type:"complete",animation:H,id:z})}}}(),ImagePreloader=function(){var m=function(){var q=createTag("canvas");q.width=1,q.height=1;var ne=q.getContext("2d");return ne.fillStyle="rgba(0,0,0,0)",ne.fillRect(0,0,1,1),q}();function y(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function b(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function T(q,ne,N){var Y="";if(q.e)Y=q.p;else if(ne){var W=q.p;-1!==W.indexOf("images/")&&(W=W.split("/")[1]),Y=ne+W}else Y=N,Y+=q.u?q.u:"",Y+=q.p;return Y}function C(q){var ne=0,N=setInterval(function(){(q.getBBox().width||ne>500)&&(this._imageLoaded(),clearInterval(N)),ne+=1}.bind(this),50)}function k(q){var ne={assetData:q},N=T(q,this.assetsPath,this.path);return dataManager.loadData(N,function(Y){ne.img=Y,this._footageLoaded()}.bind(this),function(){ne.img={},this._footageLoaded()}.bind(this)),ne}function fe(){this._imageLoaded=y.bind(this),this._footageLoaded=b.bind(this),this.testImageLoaded=C.bind(this),this.createFootageData=k.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return fe.prototype={loadAssets:function R(q,ne){this.imagesLoadedCb=ne;var N,Y=q.length;for(N=0;N<Y;N+=1)q[N].layers||(q[N].t&&"seq"!==q[N].t?3===q[N].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(q[N]))):(this.totalImages+=1,this.images.push(this._createImageData(q[N]))))},setAssetsPath:function G(q){this.assetsPath=q||""},setPath:function P(q){this.path=q||""},loadedImages:function Z(){return this.totalImages===this.loadedAssets},loadedFootages:function X(){return this.totalFootages===this.loadedFootagesCount},destroy:function H(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function Q(q){for(var ne=0,N=this.images.length;ne<N;){if(this.images[ne].assetData===q)return this.images[ne].img;ne+=1}return null},createImgData:function D(q){var ne=T(q,this.assetsPath,this.path),N=createTag("img");N.crossOrigin="anonymous",N.addEventListener("load",this._imageLoaded,!1),N.addEventListener("error",function(){Y.img=m,this._imageLoaded()}.bind(this),!1),N.src=ne;var Y={img:N,assetData:q};return Y},createImageData:function E(q){var ne=T(q,this.assetsPath,this.path),N=createNS("image");isSafari?this.testImageLoaded(N):N.addEventListener("load",this._imageLoaded,!1),N.addEventListener("error",function(){Y.img=m,this._imageLoaded()}.bind(this),!1),N.setAttributeNS("http://www.w3.org/1999/xlink","href",ne),this._elementHelper.append?this._elementHelper.append(N):this._elementHelper.appendChild(N);var Y={img:N,assetData:q};return Y},imageLoaded:y,footageLoaded:b,setCacheType:function z(q,ne){"svg"===q?(this._elementHelper=ne,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},fe}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(y,b){if(this._cbs[y])for(var T=this._cbs[y],C=0;C<T.length;C+=1)T[C](b)},addEventListener:function(y,b){return this._cbs[y]||(this._cbs[y]=[]),this._cbs[y].push(b),function(){this.removeEventListener(y,b)}.bind(this)},removeEventListener:function(y,b){if(b){if(this._cbs[y]){for(var T=0,C=this._cbs[y].length;T<C;)this._cbs[y][T]===b&&(this._cbs[y].splice(T,1),T-=1,C-=1),T+=1;this._cbs[y].length||(this._cbs[y]=null)}}else this._cbs[y]=null}};var markerParser=function(){function m(y){for(var C,b=y.split("\r\n"),T={},E=0,D=0;D<b.length;D+=1)2===(C=b[D].split(":")).length&&(T[C[0]]=C[1].trim(),E+=1);if(0===E)throw new Error;return T}return function(y){for(var b=[],T=0;T<y.length;T+=1){var C=y[T],E={time:C.tm,duration:C.dr};try{E.payload=JSON.parse(y[T].cm)}catch{try{E.payload=m(y[T].cm)}catch{E.payload={name:y[T].cm}}}b.push(E)}return b}}(),ProjectInterface=function(){function m(y){this.compositions.push(y)}return function(){function y(b){for(var T=0,C=this.compositions.length;T<C;){if(this.compositions[T].data&&this.compositions[T].data.nm===b)return this.compositions[T].prepareFrame&&this.compositions[T].data.xt&&this.compositions[T].prepareFrame(this.currentFrame),this.compositions[T].compInterface;T+=1}return null}return y.compositions=[],y.currentFrame=0,y.registerComposition=m,y}}(),renderers={},registerRenderer=function(y,b){renderers[y]=b};function getRenderer(m){return renderers[m]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var m in renderers)if(renderers[m])return m;return""}function _typeof$4(m){return(_typeof$4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(b){return typeof b}:function(b){return b&&"function"==typeof Symbol&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b})(m)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(m){(m.wrapper||m.container)&&(this.wrapper=m.wrapper||m.container);var y="svg";m.animType?y=m.animType:m.renderer&&(y=m.renderer);var b=getRenderer(y);this.renderer=new b(this,m.rendererSettings),this.imagePreloader.setCacheType(y,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=y,this.loop=""===m.loop||null==m.loop||!0===m.loop||!1!==m.loop&&parseInt(m.loop,10),this.autoplay=!("autoplay"in m)||m.autoplay,this.name=m.name?m.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(m,"autoloadSegments")||m.autoloadSegments,this.assetsPath=m.assetsPath,this.initialSegment=m.initialSegment,m.audioFactory&&this.audioController.setAudioFactory(m.audioFactory),m.animationData?this.setupAnimation(m.animationData):m.path&&(this.path=-1!==m.path.lastIndexOf("\\")?m.path.substr(0,m.path.lastIndexOf("\\")+1):m.path.substr(0,m.path.lastIndexOf("/")+1),this.fileName=m.path.substr(m.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(m.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(m){dataManager.completeAnimation(m,this.configAnimation)},AnimationItem.prototype.setData=function(m,y){y&&"object"!==_typeof$4(y)&&(y=JSON.parse(y));var b={wrapper:m,animationData:y},T=m.attributes;b.path=T.getNamedItem("data-animation-path")?T.getNamedItem("data-animation-path").value:T.getNamedItem("data-bm-path")?T.getNamedItem("data-bm-path").value:T.getNamedItem("bm-path")?T.getNamedItem("bm-path").value:"",b.animType=T.getNamedItem("data-anim-type")?T.getNamedItem("data-anim-type").value:T.getNamedItem("data-bm-type")?T.getNamedItem("data-bm-type").value:T.getNamedItem("bm-type")?T.getNamedItem("bm-type").value:T.getNamedItem("data-bm-renderer")?T.getNamedItem("data-bm-renderer").value:T.getNamedItem("bm-renderer")?T.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var C=T.getNamedItem("data-anim-loop")?T.getNamedItem("data-anim-loop").value:T.getNamedItem("data-bm-loop")?T.getNamedItem("data-bm-loop").value:T.getNamedItem("bm-loop")?T.getNamedItem("bm-loop").value:"";"false"===C?b.loop=!1:"true"===C?b.loop=!0:""!==C&&(b.loop=parseInt(C,10));var E=T.getNamedItem("data-anim-autoplay")?T.getNamedItem("data-anim-autoplay").value:T.getNamedItem("data-bm-autoplay")?T.getNamedItem("data-bm-autoplay").value:!T.getNamedItem("bm-autoplay")||T.getNamedItem("bm-autoplay").value;b.autoplay="false"!==E,b.name=T.getNamedItem("data-name")?T.getNamedItem("data-name").value:T.getNamedItem("data-bm-name")?T.getNamedItem("data-bm-name").value:T.getNamedItem("bm-name")?T.getNamedItem("bm-name").value:"","false"===(T.getNamedItem("data-anim-prerender")?T.getNamedItem("data-anim-prerender").value:T.getNamedItem("data-bm-prerender")?T.getNamedItem("data-bm-prerender").value:T.getNamedItem("bm-prerender")?T.getNamedItem("bm-prerender").value:"")&&(b.prerender=!1),b.path?this.setParams(b):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(m){m.op>this.animationData.op&&(this.animationData.op=m.op,this.totalFrames=Math.floor(m.op-this.animationData.ip));var b,E,y=this.animationData.layers,T=y.length,C=m.layers,D=C.length;for(E=0;E<D;E+=1)for(b=0;b<T;){if(y[b].id===C[E].id){y[b]=C[E];break}b+=1}if((m.chars||m.fonts)&&(this.renderer.globalData.fontManager.addChars(m.chars),this.renderer.globalData.fontManager.addFonts(m.fonts,this.renderer.globalData.defs)),m.assets)for(T=m.assets.length,b=0;b<T;b+=1)this.animationData.assets.push(m.assets[b]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(m){this.animationData=m;var y=getExpressionsPlugin();y&&y.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var m=this.animationData.segments;if(!m||0===m.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var y=m.shift();this.timeCompleted=y.time*this.frameRate;var b=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(b,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(m){if(this.renderer)try{this.animationData=m,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(m),m.assets||(m.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(m.assets),this.markers=markerParser(m.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(y){this.triggerConfigError(y)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var m=getExpressionsPlugin();m&&m.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(m,y){this.renderer.updateContainerSize("number"==typeof m?m:void 0,"number"==typeof y?y:void 0)},AnimationItem.prototype.setSubframe=function(m){this.isSubframeEnabled=!!m},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(m){this.triggerRenderFrameError(m)}},AnimationItem.prototype.play=function(m){m&&this.name!==m||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(m){m&&this.name!==m||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(m){m&&this.name!==m||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(m){m&&this.name!==m||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(m){for(var y,b=0;b<this.markers.length;b+=1)if((y=this.markers[b]).payload&&y.payload.name===m)return y;return null},AnimationItem.prototype.goToAndStop=function(m,y,b){if(!b||this.name===b){var T=Number(m);if(isNaN(T)){var C=this.getMarkerData(m);C&&this.goToAndStop(C.time,!0)}else this.setCurrentRawFrameValue(y?m:m*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(m,y,b){if(!b||this.name===b){var T=Number(m);if(isNaN(T)){var C=this.getMarkerData(m);C&&(C.duration?this.playSegments([C.time,C.time+C.duration],!0):this.goToAndStop(C.time,!0))}else this.goToAndStop(T,y,b);this.play()}},AnimationItem.prototype.advanceTime=function(m){if(!0!==this.isPaused&&!1!==this.isLoaded){var y=this.currentRawFrame+m*this.frameModifier,b=!1;y>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?y>=this.totalFrames?(this.playCount+=1,this.checkSegments(y%this.totalFrames)||(this.setCurrentRawFrameValue(y%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(y):this.checkSegments(y>this.totalFrames?y%this.totalFrames:0)||(b=!0,y=this.totalFrames-1):y<0?this.checkSegments(y%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(b=!0,y=0):(this.setCurrentRawFrameValue(this.totalFrames+y%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(y),b&&(this.setCurrentRawFrameValue(y),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(m,y){this.playCount=0,m[1]<m[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=m[0]-m[1],this.timeCompleted=this.totalFrames,this.firstFrame=m[1],this.setCurrentRawFrameValue(this.totalFrames-.001-y)):m[1]>m[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=m[1]-m[0],this.timeCompleted=this.totalFrames,this.firstFrame=m[0],this.setCurrentRawFrameValue(.001+y)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(m,y){var b=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<m?b=m:this.currentRawFrame+this.firstFrame>y&&(b=y-m)),this.firstFrame=m,this.totalFrames=y-m,this.timeCompleted=this.totalFrames,-1!==b&&this.goToAndStop(b,!0)},AnimationItem.prototype.playSegments=function(m,y){if(y&&(this.segments.length=0),"object"===_typeof$4(m[0])){var b,T=m.length;for(b=0;b<T;b+=1)this.segments.push(m[b])}else this.segments.push(m);this.segments.length&&y&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(m){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),m&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(m){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),m),!0)},AnimationItem.prototype.destroy=function(m){m&&this.name!==m||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(m){this.currentRawFrame=m,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(m){this.playSpeed=m,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(m){this.playDirection=m<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(m){this.loop=m},AnimationItem.prototype.setVolume=function(m,y){y&&this.name!==y||this.audioController.setVolume(m)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(m){m&&this.name!==m||this.audioController.mute()},AnimationItem.prototype.unmute=function(m){m&&this.name!==m||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(m){var y="";if(m.e)y=m.p;else if(this.assetsPath){var b=m.p;-1!==b.indexOf("images/")&&(b=b.split("/")[1]),y=this.assetsPath+b}else y=this.path,y+=m.u?m.u:"",y+=m.p;return y},AnimationItem.prototype.getAssetData=function(m){for(var y=0,b=this.assets.length;y<b;){if(m===this.assets[y].id)return this.assets[y];y+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(m){return m?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(m,y,b){try{this.renderer.getElementByPath(m).updateDocumentData(y,b)}catch{}},AnimationItem.prototype.trigger=function(m){if(this._cbs&&this._cbs[m])switch(m){case"enterFrame":this.triggerEvent(m,new BMEnterFrameEvent(m,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(m,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(m,new BMCompleteLoopEvent(m,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(m,new BMCompleteEvent(m,this.frameMult));break;case"segmentStart":this.triggerEvent(m,new BMSegmentStartEvent(m,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(m,new BMDestroyEvent(m,this));break;default:this.triggerEvent(m)}"enterFrame"===m&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(m,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===m&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(m,this.loop,this.playCount,this.frameMult)),"complete"===m&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(m,this.frameMult)),"segmentStart"===m&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(m,this.firstFrame,this.totalFrames)),"destroy"===m&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(m,this))},AnimationItem.prototype.triggerRenderFrameError=function(m){var y=new BMRenderFrameErrorEvent(m,this.currentFrame);this.triggerEvent("error",y),this.onError&&this.onError.call(this,y)},AnimationItem.prototype.triggerConfigError=function(m){var y=new BMConfigErrorEvent(m,this.currentFrame);this.triggerEvent("error",y),this.onError&&this.onError.call(this,y)};var animationManager=function(){var m={},y=[],b=0,T=0,C=0,E=!0,D=!1;function k(Ie){for(var Se=0,de=Ie.target;Se<T;)y[Se].animation===de&&(y.splice(Se,1),Se-=1,T-=1,de.isPaused||Q()),Se+=1}function R(Ie,Se){if(!Ie)return null;for(var de=0;de<T;){if(y[de].elem===Ie&&null!==y[de].elem)return y[de].animation;de+=1}var le=new AnimationItem;return H(le,Ie),le.setData(Ie,Se),le}function G(){C+=1,De()}function Q(){C-=1}function H(Ie,Se){Ie.addEventListener("destroy",k),Ie.addEventListener("_active",G),Ie.addEventListener("_idle",Q),y.push({elem:Se,animation:Ie}),T+=1}function q(Ie){var de,Se=Ie-b;for(de=0;de<T;de+=1)y[de].animation.advanceTime(Se);b=Ie,C&&!D?window.requestAnimationFrame(q):E=!0}function ne(Ie){b=Ie,window.requestAnimationFrame(q)}function De(){!D&&C&&E&&(window.requestAnimationFrame(ne),E=!1)}return m.registerAnimation=R,m.loadAnimation=function Z(Ie){var Se=new AnimationItem;return H(Se,null),Se.setParams(Ie),Se},m.setSpeed=function X(Ie,Se){var de;for(de=0;de<T;de+=1)y[de].animation.setSpeed(Ie,Se)},m.setDirection=function z(Ie,Se){var de;for(de=0;de<T;de+=1)y[de].animation.setDirection(Ie,Se)},m.play=function fe(Ie){var Se;for(Se=0;Se<T;Se+=1)y[Se].animation.play(Ie)},m.pause=function N(Ie){var Se;for(Se=0;Se<T;Se+=1)y[Se].animation.pause(Ie)},m.stop=function W(Ie){var Se;for(Se=0;Se<T;Se+=1)y[Se].animation.stop(Ie)},m.togglePause=function J(Ie){var Se;for(Se=0;Se<T;Se+=1)y[Se].animation.togglePause(Ie)},m.searchAnimations=function K(Ie,Se,de){var xe,le=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),We=le.length;for(xe=0;xe<We;xe+=1)de&&le[xe].setAttribute("data-bm-type",de),R(le[xe],Ie);if(Se&&0===We){de||(de="svg");var st=document.getElementsByTagName("body")[0];st.innerText="";var ut=createTag("div");ut.style.width="100%",ut.style.height="100%",ut.setAttribute("data-bm-type",de),st.appendChild(ut),R(ut,Ie)}},m.resize=function se(){var Ie;for(Ie=0;Ie<T;Ie+=1)y[Ie].animation.resize()},m.goToAndStop=function Y(Ie,Se,de){var le;for(le=0;le<T;le+=1)y[le].animation.goToAndStop(Ie,Se,de)},m.destroy=function n(Ie){var Se;for(Se=T-1;Se>=0;Se-=1)y[Se].animation.destroy(Ie)},m.freeze=function Fe(){D=!0},m.unfreeze=function _e(){D=!1,De()},m.setVolume=function ke(Ie,Se){var de;for(de=0;de<T;de+=1)y[de].animation.setVolume(Ie,Se)},m.mute=function be(Ie){var Se;for(Se=0;Se<T;Se+=1)y[Se].animation.mute(Ie)},m.unmute=function Ve(Ie){var Se;for(Se=0;Se<T;Se+=1)y[Se].animation.unmute(Ie)},m.getRegisteredAnimations=function P(){var Ie,Se=y.length,de=[];for(Ie=0;Ie<Se;Ie+=1)de.push(y[Ie].animation);return de},m}(),BezierFactory=function(){var m={getBezierEasing:function b(ne,N,Y,W,J){var n=J||("bez_"+ne+"_"+N+"_"+Y+"_"+W).replace(/\./g,"p");if(y[n])return y[n];var K=new q([ne,N,Y,W]);return y[n]=K,K}},y={},k=11,R=1/(k-1),P="function"==typeof Float32Array;function G(ne,N){return 1-3*N+3*ne}function Q(ne,N){return 3*N-6*ne}function H(ne){return 3*ne}function Z(ne,N,Y){return((G(N,Y)*ne+Q(N,Y))*ne+H(N))*ne}function X(ne,N,Y){return 3*G(N,Y)*ne*ne+2*Q(N,Y)*ne+H(N)}function q(ne){this._p=ne,this._mSampleValues=P?new Float32Array(k):new Array(k),this._precomputed=!1,this.get=this.get.bind(this)}return q.prototype={get:function(N){var Y=this._p[0],W=this._p[1],J=this._p[2],n=this._p[3];return this._precomputed||this._precompute(),Y===W&&J===n?N:0===N?0:1===N?1:Z(this._getTForX(N),W,n)},_precompute:function(){var N=this._p[0],Y=this._p[1],W=this._p[2],J=this._p[3];this._precomputed=!0,(N!==Y||W!==J)&&this._calcSampleValues()},_calcSampleValues:function(){for(var N=this._p[0],Y=this._p[2],W=0;W<k;++W)this._mSampleValues[W]=Z(W*R,N,Y)},_getTForX:function(N){for(var Y=this._p[0],W=this._p[2],J=this._mSampleValues,n=0,K=1,se=k-1;K!==se&&J[K]<=N;++K)n+=R;var Fe=n+(N-J[--K])/(J[K+1]-J[K])*R,_e=X(Fe,Y,W);return _e>=.001?function fe(ne,N,Y,W){for(var J=0;J<4;++J){var n=X(N,Y,W);if(0===n)return N;N-=(Z(N,Y,W)-ne)/n}return N}(N,Fe,Y,W):0===_e?Fe:function z(ne,N,Y,W,J){var n,K,se=0;do{(n=Z(K=N+(Y-N)/2,W,J)-ne)>0?Y=K:N=K}while(Math.abs(n)>1e-7&&++se<10);return K}(N,n,n+R,Y,W)}},m}(),pooling=function(){return{double:function m(y){return y.concat(createSizedArray(y.length))}}}(),poolFactory=function(){return function(m,y,b){var T=0,C=m,E=createSizedArray(C);return{newElement:function k(){return T?E[T-=1]:y()},release:function R(P){T===C&&(E=pooling.double(E),C*=2),b&&b(P),E[T]=P,T+=1}}}}(),bezierLengthPool=poolFactory(8,function m(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}),segmentsLengthPool=poolFactory(8,function m(){return{lengths:[],totalLength:0}},function y(b){var T,C=b.lengths.length;for(T=0;T<C;T+=1)bezierLengthPool.release(b.lengths[T]);b.lengths.length=0});function bezFunction(){var m=Math;function y(H,Z,X,z,fe,q){var ne=H*z+Z*fe+X*q-fe*z-q*H-X*Z;return ne>-.001&&ne<.001}var T=function(){return function(H,Z,X,z){var q,ne,N,Y,W,n,fe=getDefaultCurveSegments(),J=0,K=[],se=[],De=bezierLengthPool.newElement();for(N=X.length,q=0;q<fe;q+=1){for(W=q/(fe-1),n=0,ne=0;ne<N;ne+=1)Y=bmPow(1-W,3)*H[ne]+3*bmPow(1-W,2)*W*X[ne]+3*(1-W)*bmPow(W,2)*z[ne]+bmPow(W,3)*Z[ne],K[ne]=Y,null!==se[ne]&&(n+=bmPow(K[ne]-se[ne],2)),se[ne]=K[ne];n&&(J+=n=bmSqrt(n)),De.percents[q]=W,De.lengths[q]=J}return De.addedLength=J,De}}();function E(H){this.segmentLength=0,this.points=new Array(H)}function D(H,Z){this.partialLength=H,this.point=Z}var k=function(){var H={};return function(Z,X,z,fe){var q=(Z[0]+"_"+Z[1]+"_"+X[0]+"_"+X[1]+"_"+z[0]+"_"+z[1]+"_"+fe[0]+"_"+fe[1]).replace(/\./g,"p");if(!H[q]){var N,Y,W,J,n,se,De,ne=getDefaultCurveSegments(),K=0,Fe=null;2===Z.length&&(Z[0]!==X[0]||Z[1]!==X[1])&&y(Z[0],Z[1],X[0],X[1],Z[0]+z[0],Z[1]+z[1])&&y(Z[0],Z[1],X[0],X[1],X[0]+fe[0],X[1]+fe[1])&&(ne=2);var _e=new E(ne);for(W=z.length,N=0;N<ne;N+=1){for(De=createSizedArray(W),n=N/(ne-1),se=0,Y=0;Y<W;Y+=1)J=bmPow(1-n,3)*Z[Y]+3*bmPow(1-n,2)*n*(Z[Y]+z[Y])+3*(1-n)*bmPow(n,2)*(X[Y]+fe[Y])+bmPow(n,3)*X[Y],De[Y]=J,null!==Fe&&(se+=bmPow(De[Y]-Fe[Y],2));K+=se=bmSqrt(se),_e.points[N]=new D(se,De),Fe=De}_e.segmentLength=K,H[q]=_e}return H[q]}}();function R(H,Z){var X=Z.percents,z=Z.lengths,fe=X.length,q=bmFloor((fe-1)*H),ne=H*Z.addedLength,N=0;if(q===fe-1||0===q||ne===z[q])return X[q];for(var Y=z[q]>ne?-1:1,W=!0;W;)if(z[q]<=ne&&z[q+1]>ne?(N=(ne-z[q])/(z[q+1]-z[q]),W=!1):q+=Y,q<0||q>=fe-1){if(q===fe-1)return X[q];W=!1}return X[q]+(X[q+1]-X[q])*N}var G=createTypedArray("float32",8);return{getSegmentsLength:function C(H){var ne,Z=segmentsLengthPool.newElement(),X=H.c,z=H.v,fe=H.o,q=H.i,N=H._length,Y=Z.lengths,W=0;for(ne=0;ne<N-1;ne+=1)Y[ne]=T(z[ne],z[ne+1],fe[ne],q[ne+1]),W+=Y[ne].addedLength;return X&&N&&(Y[ne]=T(z[ne],z[0],fe[ne],q[0]),W+=Y[ne].addedLength),Z.totalLength=W,Z},getNewSegment:function Q(H,Z,X,z,fe,q,ne){fe<0?fe=0:fe>1&&(fe=1);var W,N=R(fe,ne),Y=R(q=q>1?1:q,ne),J=H.length,n=1-N,K=1-Y,se=n*n*n,De=N*n*n*3,Fe=N*N*n*3,_e=N*N*N,ke=n*n*K,be=N*n*K+n*N*K+n*n*Y,Ve=N*N*K+n*N*Y+N*n*Y,Ie=N*N*Y,Se=n*K*K,de=N*K*K+n*Y*K+n*K*Y,le=N*Y*K+n*Y*Y+N*K*Y,xe=N*Y*Y,We=K*K*K,st=Y*K*K+K*Y*K+K*K*Y,ut=Y*Y*K+K*Y*Y+Y*K*Y,Ae=Y*Y*Y;for(W=0;W<J;W+=1)G[4*W]=m.round(1e3*(se*H[W]+De*X[W]+Fe*z[W]+_e*Z[W]))/1e3,G[4*W+1]=m.round(1e3*(ke*H[W]+be*X[W]+Ve*z[W]+Ie*Z[W]))/1e3,G[4*W+2]=m.round(1e3*(Se*H[W]+de*X[W]+le*z[W]+xe*Z[W]))/1e3,G[4*W+3]=m.round(1e3*(We*H[W]+st*X[W]+ut*z[W]+Ae*Z[W]))/1e3;return G},getPointInSegment:function P(H,Z,X,z,fe,q){var ne=R(fe,q),N=1-ne;return[m.round(1e3*(N*N*N*H[0]+(ne*N*N+N*ne*N+N*N*ne)*X[0]+(ne*ne*N+N*ne*ne+ne*N*ne)*z[0]+ne*ne*ne*Z[0]))/1e3,m.round(1e3*(N*N*N*H[1]+(ne*N*N+N*ne*N+N*N*ne)*X[1]+(ne*ne*N+N*ne*ne+ne*N*ne)*z[1]+ne*ne*ne*Z[1]))/1e3]},buildBezierData:k,pointOnLine2D:y,pointOnLine3D:function b(H,Z,X,z,fe,q,ne,N,Y){if(0===X&&0===q&&0===Y)return y(H,Z,z,fe,ne,N);var K,W=m.sqrt(m.pow(z-H,2)+m.pow(fe-Z,2)+m.pow(q-X,2)),J=m.sqrt(m.pow(ne-H,2)+m.pow(N-Z,2)+m.pow(Y-X,2)),n=m.sqrt(m.pow(ne-z,2)+m.pow(N-fe,2)+m.pow(Y-q,2));return(K=W>J?W>n?W-J-n:n-J-W:n>J?n-J-W:J-W-n)>-1e-4&&K<1e-4}}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(m,y){var T,b=this.offsetTime;"multidimensional"===this.propType&&(T=createTypedArray("float32",this.pv.length));for(var R,P,G,C=y.lastIndex,E=C,D=this.keyframes.length-1,k=!0;k;){if(R=this.keyframes[E],P=this.keyframes[E+1],E===D-1&&m>=P.t-b){R.h&&(R=P),C=0;break}if(P.t-b>m){C=E;break}E<D-1?E+=1:(C=0,k=!1)}G=this.keyframesMetadata[E]||{};var Q,H,Z,X,z,fe,N,q=P.t-b,ne=R.t-b;if(R.to){G.bezierData||(G.bezierData=bez.buildBezierData(R.s,P.s||R.e,R.to,R.ti));var Y=G.bezierData;if(m>=q||m<ne){var W=m>=q?Y.points.length-1:0;for(H=Y.points[W].point.length,Q=0;Q<H;Q+=1)T[Q]=Y.points[W].point[Q]}else{G.__fnct?fe=G.__fnct:(fe=BezierFactory.getBezierEasing(R.o.x,R.o.y,R.i.x,R.i.y,R.n).get,G.__fnct=fe),Z=fe((m-ne)/(q-ne));var n,J=Y.segmentLength*Z,K=y.lastFrame<m&&y._lastKeyframeIndex===E?y._lastAddedLength:0;for(z=y.lastFrame<m&&y._lastKeyframeIndex===E?y._lastPoint:0,k=!0,X=Y.points.length;k;){if(K+=Y.points[z].partialLength,0===J||0===Z||z===Y.points.length-1){for(H=Y.points[z].point.length,Q=0;Q<H;Q+=1)T[Q]=Y.points[z].point[Q];break}if(J>=K&&J<K+Y.points[z+1].partialLength){for(n=(J-K)/Y.points[z+1].partialLength,H=Y.points[z].point.length,Q=0;Q<H;Q+=1)T[Q]=Y.points[z].point[Q]+(Y.points[z+1].point[Q]-Y.points[z].point[Q])*n;break}z<X-1?z+=1:k=!1}y._lastPoint=z,y._lastAddedLength=K-Y.points[z].partialLength,y._lastKeyframeIndex=E}}else{var ke;if(D=R.s.length,N=P.s||R.e,this.sh&&1!==R.h)m>=q?(T[0]=N[0],T[1]=N[1],T[2]=N[2]):m<=ne?(T[0]=R.s[0],T[1]=R.s[1],T[2]=R.s[2]):quaternionToEuler(T,slerp(createQuaternion(R.s),createQuaternion(N),(m-ne)/(q-ne)));else for(E=0;E<D;E+=1)1!==R.h&&(m>=q?Z=1:m<ne?Z=0:(R.o.x.constructor===Array?(G.__fnct||(G.__fnct=[]),G.__fnct[E]?fe=G.__fnct[E]:(fe=BezierFactory.getBezierEasing(void 0===R.o.x[E]?R.o.x[0]:R.o.x[E],void 0===R.o.y[E]?R.o.y[0]:R.o.y[E],void 0===R.i.x[E]?R.i.x[0]:R.i.x[E],void 0===R.i.y[E]?R.i.y[0]:R.i.y[E]).get,G.__fnct[E]=fe)):G.__fnct?fe=G.__fnct:(fe=BezierFactory.getBezierEasing(R.o.x,R.o.y,R.i.x,R.i.y).get,R.keyframeMetadata=fe),Z=fe((m-ne)/(q-ne)))),N=P.s||R.e,ke=1===R.h?R.s[E]:R.s[E]+(N[E]-R.s[E])*Z,"multidimensional"===this.propType?T[E]=ke:T=ke}return y.lastIndex=C,T}function slerp(m,y,b){var H,Z,X,z,fe,T=[],C=m[0],E=m[1],D=m[2],k=m[3],R=y[0],P=y[1],G=y[2],Q=y[3];return(Z=C*R+E*P+D*G+k*Q)<0&&(Z=-Z,R=-R,P=-P,G=-G,Q=-Q),1-Z>1e-6?(H=Math.acos(Z),X=Math.sin(H),z=Math.sin((1-b)*H)/X,fe=Math.sin(b*H)/X):(z=1-b,fe=b),T[0]=z*C+fe*R,T[1]=z*E+fe*P,T[2]=z*D+fe*G,T[3]=z*k+fe*Q,T}function quaternionToEuler(m,y){var b=y[0],T=y[1],C=y[2],E=y[3],D=Math.atan2(2*T*E-2*b*C,1-2*T*T-2*C*C),k=Math.asin(2*b*T+2*C*E),R=Math.atan2(2*b*E-2*T*C,1-2*b*b-2*C*C);m[0]=D/degToRads,m[1]=k/degToRads,m[2]=R/degToRads}function createQuaternion(m){var y=m[0]*degToRads,b=m[1]*degToRads,T=m[2]*degToRads,C=Math.cos(y/2),E=Math.cos(b/2),D=Math.cos(T/2),k=Math.sin(y/2),R=Math.sin(b/2),P=Math.sin(T/2);return[k*R*D+C*E*P,k*E*D+C*R*P,C*R*D-k*E*P,C*E*D-k*R*P]}function getValueAtCurrentTime(){var m=this.comp.renderedFrame-this.offsetTime,y=this.keyframes[0].t-this.offsetTime,b=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(m===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=b&&m>=b||this._caching.lastFrame<y&&m<y))){this._caching.lastFrame>=m&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var T=this.interpolateValue(m,this._caching);this.pv=T}return this._caching.lastFrame=m,this.pv}function setVValue(m){var y;if("unidimensional"===this.propType)mathAbs(this.v-(y=m*this.mult))>1e-5&&(this.v=y,this._mdf=!0);else for(var b=0,T=this.v.length;b<T;)mathAbs(this.v[b]-(y=m[b]*this.mult))>1e-5&&(this.v[b]=y,this._mdf=!0),b+=1}function processEffectsSequence(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length){if(this.lock)return void this.setVValue(this.pv);this.lock=!0,this._mdf=this._isFirstFrame;var m,y=this.effectsSequence.length,b=this.kf?this.pv:this.data.k;for(m=0;m<y;m+=1)b=this.effectsSequence[m](b);this.setVValue(b),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(m){this.effectsSequence.push(m),this.container.addDynamicProperty(this)}function ValueProperty(m,y,b,T){this.propType="unidimensional",this.mult=b||1,this.data=y,this.v=b?y.k*b:y.k,this.pv=y.k,this._mdf=!1,this.elem=m,this.container=T,this.comp=m.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(m,y,b,T){this.propType="multidimensional",this.mult=b||1,this.data=y,this._mdf=!1,this.elem=m,this.container=T,this.comp=m.comp,this.k=!1,this.kf=!1,this.frameId=-1;var C,E=y.k.length;for(this.v=createTypedArray("float32",E),this.pv=createTypedArray("float32",E),this.vel=createTypedArray("float32",E),C=0;C<E;C+=1)this.v[C]=y.k[C]*this.mult,this.pv[C]=y.k[C];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(m,y,b,T){this.propType="unidimensional",this.keyframes=y.k,this.keyframesMetadata=[],this.offsetTime=m.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=y,this.mult=b||1,this.elem=m,this.container=T,this.comp=m.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(m,y,b,T){this.propType="multidimensional";var C,D,k,R,P,E=y.k.length;for(C=0;C<E-1;C+=1)y.k[C].to&&y.k[C].s&&y.k[C+1]&&y.k[C+1].s&&(k=y.k[C+1].s,R=y.k[C].to,P=y.k[C].ti,(2===(D=y.k[C].s).length&&!(D[0]===k[0]&&D[1]===k[1])&&bez.pointOnLine2D(D[0],D[1],k[0],k[1],D[0]+R[0],D[1]+R[1])&&bez.pointOnLine2D(D[0],D[1],k[0],k[1],k[0]+P[0],k[1]+P[1])||3===D.length&&!(D[0]===k[0]&&D[1]===k[1]&&D[2]===k[2])&&bez.pointOnLine3D(D[0],D[1],D[2],k[0],k[1],k[2],D[0]+R[0],D[1]+R[1],D[2]+R[2])&&bez.pointOnLine3D(D[0],D[1],D[2],k[0],k[1],k[2],k[0]+P[0],k[1]+P[1],k[2]+P[2]))&&(y.k[C].to=null,y.k[C].ti=null),D[0]===k[0]&&D[1]===k[1]&&0===R[0]&&0===R[1]&&0===P[0]&&0===P[1]&&(2===D.length||D[2]===k[2]&&0===R[2]&&0===P[2])&&(y.k[C].to=null,y.k[C].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=y,this.keyframes=y.k,this.keyframesMetadata=[],this.offsetTime=m.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=b||1,this.elem=m,this.container=T,this.comp=m.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var G=y.k[0].s.length;for(this.v=createTypedArray("float32",G),this.pv=createTypedArray("float32",G),C=0;C<G;C+=1)this.v[C]=initFrame,this.pv[C]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",G)},this.addEffect=addEffect}var PropertyFactory=function(){return{getProp:function m(b,T,C,E,D){var k;if(T.sid&&(T=b.globalData.slotManager.getProp(T)),T.k.length)if("number"==typeof T.k[0])k=new MultiDimensionalProperty(b,T,E,D);else switch(C){case 0:k=new KeyframedValueProperty(b,T,E,D);break;case 1:k=new KeyframedMultidimensionalProperty(b,T,E,D)}else k=new ValueProperty(b,T,E,D);return k.effectsSequence.length&&D.addDynamicProperty(k),k}}}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(y){-1===this.dynamicProperties.indexOf(y)&&(this.dynamicProperties.push(y),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var y,b=this.dynamicProperties.length;for(y=0;y<b;y+=1)this.dynamicProperties[y].getValue(),this.dynamicProperties[y]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(y){this.container=y,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,function m(){return createTypedArray("float32",2)});function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(m,y){this.c=m,this.setLength(y);for(var b=0;b<y;)this.v[b]=pointPool.newElement(),this.o[b]=pointPool.newElement(),this.i[b]=pointPool.newElement(),b+=1},ShapePath.prototype.setLength=function(m){for(;this._maxLength<m;)this.doubleArrayLength();this._length=m},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(m,y,b,T,C){var E;switch(this._length=Math.max(this._length,T+1),this._length>=this._maxLength&&this.doubleArrayLength(),b){case"v":E=this.v;break;case"i":E=this.i;break;case"o":E=this.o;break;default:E=[]}(!E[T]||E[T]&&!C)&&(E[T]=pointPool.newElement()),E[T][0]=m,E[T][1]=y},ShapePath.prototype.setTripleAt=function(m,y,b,T,C,E,D,k){this.setXYAt(m,y,"v",D,k),this.setXYAt(b,T,"o",D,k),this.setXYAt(C,E,"i",D,k)},ShapePath.prototype.reverse=function(){var m=new ShapePath;m.setPathData(this.c,this._length);var y=this.v,b=this.o,T=this.i,C=0;this.c&&(m.setTripleAt(y[0][0],y[0][1],T[0][0],T[0][1],b[0][0],b[0][1],0,!1),C=1);var k,E=this._length-1,D=this._length;for(k=C;k<D;k+=1)m.setTripleAt(y[E][0],y[E][1],T[E][0],T[E][1],b[E][0],b[E][1],k,!1),E-=1;return m},ShapePath.prototype.length=function(){return this._length};var shapePool=(T=poolFactory(4,function m(){return new ShapePath},function y(C){var D,E=C._length;for(D=0;D<E;D+=1)pointPool.release(C.v[D]),pointPool.release(C.i[D]),pointPool.release(C.o[D]),C.v[D]=null,C.i[D]=null,C.o[D]=null;C._length=0,C.c=!1}),T.clone=function b(C){var D,E=T.newElement(),k=void 0===C._length?C.v.length:C._length;for(E.setLength(k),E.c=C.c,D=0;D<k;D+=1)E.setTripleAt(C.v[D][0],C.v[D][1],C.o[D][0],C.o[D][1],C.i[D][0],C.i[D][1],D);return E},T),T;function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(m){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=m,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var m;for(m=0;m<this._length;m+=1)shapePool.release(this.shapes[m]);this._length=0};var shapeCollectionPool=function(){var m={newShapeCollection:function C(){return y?T[y-=1]:new ShapeCollection},release:function E(D){var k,R=D._length;for(k=0;k<R;k+=1)shapePool.release(D.shapes[k]);D._length=0,y===b&&(T=pooling.double(T),b*=2),T[y]=D,y+=1}},y=0,b=4,T=createSizedArray(b);return m}(),ShapePropertyFactory=function(){var m=-999999;function y(q,ne,N){var W,J,n,K,se,De,Fe,_e,Y=N.lastIndex,be=this.keyframes;if(q<be[0].t-this.offsetTime)W=be[0].s[0],n=!0,Y=0;else if(q>=be[be.length-1].t-this.offsetTime)W=be[be.length-1].s?be[be.length-1].s[0]:be[be.length-2].e[0],n=!0;else{for(var de,le,xe,Ve=Y,Ie=be.length-1,Se=!0;Se&&(de=be[Ve],!((le=be[Ve+1]).t-this.offsetTime>q));)Ve<Ie-1?Ve+=1:Se=!1;if(xe=this.keyframesMetadata[Ve]||{},Y=Ve,!(n=1===de.h)){if(q>=le.t-this.offsetTime)_e=1;else if(q<de.t-this.offsetTime)_e=0;else{var We;xe.__fnct?We=xe.__fnct:(We=BezierFactory.getBezierEasing(de.o.x,de.o.y,de.i.x,de.i.y).get,xe.__fnct=We),_e=We((q-(de.t-this.offsetTime))/(le.t-this.offsetTime-(de.t-this.offsetTime)))}J=le.s?le.s[0]:de.e[0]}W=de.s[0]}for(De=ne._length,Fe=W.i[0].length,N.lastIndex=Y,K=0;K<De;K+=1)for(se=0;se<Fe;se+=1)ne.i[K][se]=n?W.i[K][se]:W.i[K][se]+(J.i[K][se]-W.i[K][se])*_e,ne.o[K][se]=n?W.o[K][se]:W.o[K][se]+(J.o[K][se]-W.o[K][se])*_e,ne.v[K][se]=n?W.v[K][se]:W.v[K][se]+(J.v[K][se]-W.v[K][se])*_e}function b(){var q=this.comp.renderedFrame-this.offsetTime,ne=this.keyframes[0].t-this.offsetTime,N=this.keyframes[this.keyframes.length-1].t-this.offsetTime,Y=this._caching.lastFrame;return Y!==m&&(Y<ne&&q<ne||Y>N&&q>N)||(this._caching.lastIndex=Y<q?this._caching.lastIndex:0,this.interpolateShape(q,this.pv,this._caching)),this._caching.lastFrame=q,this.pv}function T(){this.paths=this.localShapeCollection}function E(q){(function C(q,ne){if(q._length!==ne._length||q.c!==ne.c)return!1;var N,Y=q._length;for(N=0;N<Y;N+=1)if(q.v[N][0]!==ne.v[N][0]||q.v[N][1]!==ne.v[N][1]||q.o[N][0]!==ne.o[N][0]||q.o[N][1]!==ne.o[N][1]||q.i[N][0]!==ne.i[N][0]||q.i[N][1]!==ne.i[N][1])return!1;return!0})(this.v,q)||(this.v=shapePool.clone(q),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function D(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length)return void(this._mdf=!1);if(this.lock)return void this.setVValue(this.pv);var q;this.lock=!0,this._mdf=!1,q=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var ne,N=this.effectsSequence.length;for(ne=0;ne<N;ne+=1)q=this.effectsSequence[ne](q);this.setVValue(q),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function k(q,ne,N){this.propType="shape",this.comp=q.comp,this.container=q,this.elem=q,this.data=ne,this.k=!1,this.kf=!1,this._mdf=!1,this.v=shapePool.clone(3===N?ne.pt.k:ne.ks.k),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=T,this.effectsSequence=[]}function R(q){this.effectsSequence.push(q),this.container.addDynamicProperty(this)}function P(q,ne,N){this.propType="shape",this.comp=q.comp,this.elem=q,this.container=q,this.offsetTime=q.data.st,this.keyframes=3===N?ne.pt.k:ne.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var Y=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,Y),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=m,this.reset=T,this._caching={lastFrame:m,lastIndex:0},this.effectsSequence=[b.bind(this)]}k.prototype.interpolateShape=y,k.prototype.getValue=D,k.prototype.setVValue=E,k.prototype.addEffect=R,P.prototype.getValue=D,P.prototype.interpolateShape=y,P.prototype.setVValue=E,P.prototype.addEffect=R;var G=function(){var q=roundCorner;function ne(N,Y){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=Y.d,this.elem=N,this.comp=N.comp,this.frameId=-1,this.initDynamicPropertyContainer(N),this.p=PropertyFactory.getProp(N,Y.p,1,0,this),this.s=PropertyFactory.getProp(N,Y.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return ne.prototype={reset:T,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var Y=this.p.v[0],W=this.p.v[1],J=this.s.v[0]/2,n=this.s.v[1]/2,K=3!==this.d,se=this.v;se.v[0][0]=Y,se.v[0][1]=W-n,se.v[1][0]=K?Y+J:Y-J,se.v[1][1]=W,se.v[2][0]=Y,se.v[2][1]=W+n,se.v[3][0]=K?Y-J:Y+J,se.v[3][1]=W,se.i[0][0]=K?Y-J*q:Y+J*q,se.i[0][1]=W-n,se.i[1][0]=K?Y+J:Y-J,se.i[1][1]=W-n*q,se.i[2][0]=K?Y+J*q:Y-J*q,se.i[2][1]=W+n,se.i[3][0]=K?Y-J:Y+J,se.i[3][1]=W+n*q,se.o[0][0]=K?Y+J*q:Y-J*q,se.o[0][1]=W-n,se.o[1][0]=K?Y+J:Y-J,se.o[1][1]=W+n*q,se.o[2][0]=K?Y-J*q:Y+J*q,se.o[2][1]=W+n,se.o[3][0]=K?Y-J:Y+J,se.o[3][1]=W-n*q}},extendPrototype([DynamicPropertyContainer],ne),ne}(),Q=function(){function q(ne,N){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=ne,this.comp=ne.comp,this.data=N,this.frameId=-1,this.d=N.d,this.initDynamicPropertyContainer(ne),1===N.sy?(this.ir=PropertyFactory.getProp(ne,N.ir,0,0,this),this.is=PropertyFactory.getProp(ne,N.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(ne,N.pt,0,0,this),this.p=PropertyFactory.getProp(ne,N.p,1,0,this),this.r=PropertyFactory.getProp(ne,N.r,0,degToRads,this),this.or=PropertyFactory.getProp(ne,N.or,0,0,this),this.os=PropertyFactory.getProp(ne,N.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return q.prototype={reset:T,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var _e,ke,be,Ve,N=2*Math.floor(this.pt.v),Y=2*Math.PI/N,W=!0,J=this.or.v,n=this.ir.v,K=this.os.v,se=this.is.v,De=2*Math.PI*J/(2*N),Fe=2*Math.PI*n/(2*N),Ie=-Math.PI/2;Ie+=this.r.v;var Se=3===this.data.d?-1:1;for(this.v._length=0,_e=0;_e<N;_e+=1){be=W?K:se,Ve=W?De:Fe;var de=(ke=W?J:n)*Math.cos(Ie),le=ke*Math.sin(Ie),xe=0===de&&0===le?0:le/Math.sqrt(de*de+le*le),We=0===de&&0===le?0:-de/Math.sqrt(de*de+le*le);this.v.setTripleAt(de+=+this.p.v[0],le+=+this.p.v[1],de-xe*Ve*be*Se,le-We*Ve*be*Se,de+xe*Ve*be*Se,le+We*Ve*be*Se,_e,!0),W=!W,Ie+=Y*Se}},convertPolygonToPath:function(){var K,N=Math.floor(this.pt.v),Y=2*Math.PI/N,W=this.or.v,J=this.os.v,n=2*Math.PI*W/(4*N),se=.5*-Math.PI,De=3===this.data.d?-1:1;for(se+=this.r.v,this.v._length=0,K=0;K<N;K+=1){var Fe=W*Math.cos(se),_e=W*Math.sin(se),ke=0===Fe&&0===_e?0:_e/Math.sqrt(Fe*Fe+_e*_e),be=0===Fe&&0===_e?0:-Fe/Math.sqrt(Fe*Fe+_e*_e);this.v.setTripleAt(Fe+=+this.p.v[0],_e+=+this.p.v[1],Fe-ke*n*J*De,_e-be*n*J*De,Fe+ke*n*J*De,_e+be*n*J*De,K,!0),se+=Y*De}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],q),q}(),H=function(){function q(ne,N){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=ne,this.comp=ne.comp,this.frameId=-1,this.d=N.d,this.initDynamicPropertyContainer(ne),this.p=PropertyFactory.getProp(ne,N.p,1,0,this),this.s=PropertyFactory.getProp(ne,N.s,1,0,this),this.r=PropertyFactory.getProp(ne,N.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return q.prototype={convertRectToPath:function(){var N=this.p.v[0],Y=this.p.v[1],W=this.s.v[0]/2,J=this.s.v[1]/2,n=bmMin(W,J,this.r.v),K=n*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(N+W,Y-J+n,N+W,Y-J+n,N+W,Y-J+K,0,!0),this.v.setTripleAt(N+W,Y+J-n,N+W,Y+J-K,N+W,Y+J-n,1,!0),0!==n?(this.v.setTripleAt(N+W-n,Y+J,N+W-n,Y+J,N+W-K,Y+J,2,!0),this.v.setTripleAt(N-W+n,Y+J,N-W+K,Y+J,N-W+n,Y+J,3,!0),this.v.setTripleAt(N-W,Y+J-n,N-W,Y+J-n,N-W,Y+J-K,4,!0),this.v.setTripleAt(N-W,Y-J+n,N-W,Y-J+K,N-W,Y-J+n,5,!0),this.v.setTripleAt(N-W+n,Y-J,N-W+n,Y-J,N-W+K,Y-J,6,!0),this.v.setTripleAt(N+W-n,Y-J,N+W-K,Y-J,N+W-n,Y-J,7,!0)):(this.v.setTripleAt(N-W,Y+J,N-W+K,Y+J,N-W,Y+J,2),this.v.setTripleAt(N-W,Y-J,N-W,Y-J+K,N-W,Y-J,3))):(this.v.setTripleAt(N+W,Y-J+n,N+W,Y-J+K,N+W,Y-J+n,0,!0),0!==n?(this.v.setTripleAt(N+W-n,Y-J,N+W-n,Y-J,N+W-K,Y-J,1,!0),this.v.setTripleAt(N-W+n,Y-J,N-W+K,Y-J,N-W+n,Y-J,2,!0),this.v.setTripleAt(N-W,Y-J+n,N-W,Y-J+n,N-W,Y-J+K,3,!0),this.v.setTripleAt(N-W,Y+J-n,N-W,Y+J-K,N-W,Y+J-n,4,!0),this.v.setTripleAt(N-W+n,Y+J,N-W+n,Y+J,N-W+K,Y+J,5,!0),this.v.setTripleAt(N+W-n,Y+J,N+W-K,Y+J,N+W-n,Y+J,6,!0),this.v.setTripleAt(N+W,Y+J-n,N+W,Y+J-n,N+W,Y+J-K,7,!0)):(this.v.setTripleAt(N-W,Y-J,N-W+K,Y-J,N-W,Y-J,1,!0),this.v.setTripleAt(N-W,Y+J,N-W,Y+J-K,N-W,Y+J,2,!0),this.v.setTripleAt(N+W,Y+J,N+W-K,Y+J,N+W,Y+J,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:T},extendPrototype([DynamicPropertyContainer],q),q}();return{getShapeProp:function Z(q,ne,N){var Y;return 3===N||4===N?Y=(3===N?ne.pt:ne.ks).k.length?new P(q,ne,N):new k(q,ne,N):5===N?Y=new H(q,ne):6===N?Y=new G(q,ne):7===N&&(Y=new Q(q,ne)),Y.k&&q.addDynamicProperty(Y),Y},getConstructorFunction:function X(){return k},getKeyframedConstructorFunction:function z(){return P}}}(),Matrix=function(){var m=Math.cos,y=Math.sin,b=Math.tan,T=Math.round;function C(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function E(de){if(0===de)return this;var le=m(de),xe=y(de);return this._t(le,-xe,0,0,xe,le,0,0,0,0,1,0,0,0,0,1)}function D(de){if(0===de)return this;var le=m(de),xe=y(de);return this._t(1,0,0,0,0,le,-xe,0,0,xe,le,0,0,0,0,1)}function k(de){if(0===de)return this;var le=m(de),xe=y(de);return this._t(le,0,xe,0,0,1,0,0,-xe,0,le,0,0,0,0,1)}function R(de){if(0===de)return this;var le=m(de),xe=y(de);return this._t(le,-xe,0,0,xe,le,0,0,0,0,1,0,0,0,0,1)}function P(de,le){return this._t(1,le,de,1,0,0)}function G(de,le){return this.shear(b(de),b(le))}function Q(de,le){var xe=m(le),We=y(le);return this._t(xe,We,0,0,-We,xe,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,b(de),1,0,0,0,0,1,0,0,0,0,1)._t(xe,-We,0,0,We,xe,0,0,0,0,1,0,0,0,0,1)}function H(de,le,xe){return!xe&&0!==xe&&(xe=1),1===de&&1===le&&1===xe?this:this._t(de,0,0,0,0,le,0,0,0,0,xe,0,0,0,0,1)}function Z(de,le,xe,We,st,ut,Ae,ye,Re,Qe,vt,Nt,Dt,qe,ze,Ge){return this.props[0]=de,this.props[1]=le,this.props[2]=xe,this.props[3]=We,this.props[4]=st,this.props[5]=ut,this.props[6]=Ae,this.props[7]=ye,this.props[8]=Re,this.props[9]=Qe,this.props[10]=vt,this.props[11]=Nt,this.props[12]=Dt,this.props[13]=qe,this.props[14]=ze,this.props[15]=Ge,this}function X(de,le,xe){return xe=xe||0,0!==de||0!==le||0!==xe?this._t(1,0,0,0,0,1,0,0,0,0,1,0,de,le,xe,1):this}function z(de,le,xe,We,st,ut,Ae,ye,Re,Qe,vt,Nt,Dt,qe,ze,Ge){var dt=this.props;if(1===de&&0===le&&0===xe&&0===We&&0===st&&1===ut&&0===Ae&&0===ye&&0===Re&&0===Qe&&1===vt&&0===Nt)return dt[12]=dt[12]*de+dt[15]*Dt,dt[13]=dt[13]*ut+dt[15]*qe,dt[14]=dt[14]*vt+dt[15]*ze,dt[15]*=Ge,this._identityCalculated=!1,this;var Dn=dt[0],wt=dt[1],Hn=dt[2],Gt=dt[3],An=dt[4],Kt=dt[5],Ot=dt[6],Vt=dt[7],Fn=dt[8],kn=dt[9],$n=dt[10],Ii=dt[11],Ni=dt[12],Ki=dt[13],Qr=dt[14],Cr=dt[15];return dt[0]=Dn*de+wt*st+Hn*Re+Gt*Dt,dt[1]=Dn*le+wt*ut+Hn*Qe+Gt*qe,dt[2]=Dn*xe+wt*Ae+Hn*vt+Gt*ze,dt[3]=Dn*We+wt*ye+Hn*Nt+Gt*Ge,dt[4]=An*de+Kt*st+Ot*Re+Vt*Dt,dt[5]=An*le+Kt*ut+Ot*Qe+Vt*qe,dt[6]=An*xe+Kt*Ae+Ot*vt+Vt*ze,dt[7]=An*We+Kt*ye+Ot*Nt+Vt*Ge,dt[8]=Fn*de+kn*st+$n*Re+Ii*Dt,dt[9]=Fn*le+kn*ut+$n*Qe+Ii*qe,dt[10]=Fn*xe+kn*Ae+$n*vt+Ii*ze,dt[11]=Fn*We+kn*ye+$n*Nt+Ii*Ge,dt[12]=Ni*de+Ki*st+Qr*Re+Cr*Dt,dt[13]=Ni*le+Ki*ut+Qr*Qe+Cr*qe,dt[14]=Ni*xe+Ki*Ae+Qr*vt+Cr*ze,dt[15]=Ni*We+Ki*ye+Qr*Nt+Cr*Ge,this._identityCalculated=!1,this}function fe(de){var le=de.props;return this.transform(le[0],le[1],le[2],le[3],le[4],le[5],le[6],le[7],le[8],le[9],le[10],le[11],le[12],le[13],le[14],le[15])}function q(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function ne(de){for(var le=0;le<16;){if(de.props[le]!==this.props[le])return!1;le+=1}return!0}function N(de){var le;for(le=0;le<16;le+=1)de.props[le]=this.props[le];return de}function Y(de){var le;for(le=0;le<16;le+=1)this.props[le]=de[le]}function W(de,le,xe){return{x:de*this.props[0]+le*this.props[4]+xe*this.props[8]+this.props[12],y:de*this.props[1]+le*this.props[5]+xe*this.props[9]+this.props[13],z:de*this.props[2]+le*this.props[6]+xe*this.props[10]+this.props[14]}}function J(de,le,xe){return de*this.props[0]+le*this.props[4]+xe*this.props[8]+this.props[12]}function n(de,le,xe){return de*this.props[1]+le*this.props[5]+xe*this.props[9]+this.props[13]}function K(de,le,xe){return de*this.props[2]+le*this.props[6]+xe*this.props[10]+this.props[14]}function se(){var de=this.props[0]*this.props[5]-this.props[1]*this.props[4],le=this.props[5]/de,xe=-this.props[1]/de,We=-this.props[4]/de,st=this.props[0]/de,ut=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/de,Ae=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/de,ye=new Matrix;return ye.props[0]=le,ye.props[1]=xe,ye.props[4]=We,ye.props[5]=st,ye.props[12]=ut,ye.props[13]=Ae,ye}function De(de){return this.getInverseMatrix().applyToPointArray(de[0],de[1],de[2]||0)}function Fe(de){var le,xe=de.length,We=[];for(le=0;le<xe;le+=1)We[le]=De(de[le]);return We}function _e(de,le,xe){var We=createTypedArray("float32",6);if(this.isIdentity())We[0]=de[0],We[1]=de[1],We[2]=le[0],We[3]=le[1],We[4]=xe[0],We[5]=xe[1];else{var st=this.props[0],ut=this.props[1],Ae=this.props[4],ye=this.props[5],Re=this.props[12],Qe=this.props[13];We[0]=de[0]*st+de[1]*Ae+Re,We[1]=de[0]*ut+de[1]*ye+Qe,We[2]=le[0]*st+le[1]*Ae+Re,We[3]=le[0]*ut+le[1]*ye+Qe,We[4]=xe[0]*st+xe[1]*Ae+Re,We[5]=xe[0]*ut+xe[1]*ye+Qe}return We}function ke(de,le,xe){return this.isIdentity()?[de,le,xe]:[de*this.props[0]+le*this.props[4]+xe*this.props[8]+this.props[12],de*this.props[1]+le*this.props[5]+xe*this.props[9]+this.props[13],de*this.props[2]+le*this.props[6]+xe*this.props[10]+this.props[14]]}function be(de,le){if(this.isIdentity())return de+","+le;var xe=this.props;return Math.round(100*(de*xe[0]+le*xe[4]+xe[12]))/100+","+Math.round(100*(de*xe[1]+le*xe[5]+xe[13]))/100}function Ve(){for(var de=0,le=this.props,xe="matrix3d(";de<16;)xe+=T(1e4*le[de])/1e4,xe+=15===de?")":",",de+=1;return xe}function Ie(de){return de<1e-6&&de>0||de>-1e-6&&de<0?T(1e4*de)/1e4:de}function Se(){var de=this.props;return"matrix("+Ie(de[0])+","+Ie(de[1])+","+Ie(de[4])+","+Ie(de[5])+","+Ie(de[12])+","+Ie(de[13])+")"}return function(){this.reset=C,this.rotate=E,this.rotateX=D,this.rotateY=k,this.rotateZ=R,this.skew=G,this.skewFromAxis=Q,this.shear=P,this.scale=H,this.setTransform=Z,this.translate=X,this.transform=z,this.multiply=fe,this.applyToPoint=W,this.applyToX=J,this.applyToY=n,this.applyToZ=K,this.applyToPointArray=ke,this.applyToTriplePoints=_e,this.applyToPointStringified=be,this.toCSS=Ve,this.to2dCSS=Se,this.clone=N,this.cloneFromProps=Y,this.equals=ne,this.inversePoints=Fe,this.inversePoint=De,this.getInverseMatrix=se,this._t=this.transform,this.isIdentity=q,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(m){return(_typeof$3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(b){return typeof b}:function(b){return b&&"function"==typeof Symbol&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b})(m)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(m){setLocationHref(m)}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(m){setSubframeEnabled(m)}function setPrefix(m){setIdPrefix(m)}function loadAnimation(m){return!0===standalone&&(m.animationData=JSON.parse(animationData)),animationManager.loadAnimation(m)}function setQuality(m){if("string"==typeof m)switch(m){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(m)&&m>1&&setDefaultCurveSegments(m);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return typeof navigator<"u"}function installPlugin(m,y){"expressions"===m&&setExpressionsPlugin(y)}function getFactory(m){switch(m){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(m){for(var y=queryString.split("&"),b=0;b<y.length;b+=1){var T=y[b].split("=");if(decodeURIComponent(T[0])==m)return decodeURIComponent(T[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.12.2";var queryString="";if(standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{_typeof$3(exports)}catch(m){}var ShapeModifiers=(m={},y={},m.registerModifier=function b(C,E){y[C]||(y[C]=E)},m.getModifier=function T(C,E,D){return new y[C](E,D)},m),m,y;function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(m){if(!this.closed){m.sh.container.addDynamicProperty(m.sh);var y={shape:m.sh,data:m,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(y),this.addShapeToModifier(y),this._isAnimated&&m.setAsAnimated()}},ShapeModifier.prototype.init=function(m,y){this.shapes=[],this.elem=m,this.initDynamicPropertyContainer(m),this.initModifierProperties(m,y),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(m,y){this.s=PropertyFactory.getProp(m,y.s,0,.01,this),this.e=PropertyFactory.getProp(m,y.e,0,.01,this),this.o=PropertyFactory.getProp(m,y.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=y.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(m){m.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(m,y,b,T,C){var E=[];y<=1?E.push({s:m,e:y}):m>=1?E.push({s:m-1,e:y-1}):(E.push({s:m,e:1}),E.push({s:0,e:y-1}));var k,P,D=[],R=E.length;for(k=0;k<R;k+=1)(P=E[k]).e*C<T||P.s*C>T+b||D.push([P.s*C<=T?0:(P.s*C-T)/b,P.e*C>=T+b?1:(P.e*C-T)/b]);return D.length||D.push([0,0]),D},TrimModifier.prototype.releasePathsData=function(m){var y,b=m.length;for(y=0;y<b;y+=1)segmentsLengthPool.release(m[y]);return m.length=0,m},TrimModifier.prototype.processShapes=function(m){var y,b;if(this._mdf||m){var T=this.o.v%360/360;if(T<0&&(T+=1),(y=this.s.v>1?1+T:this.s.v<0?0+T:this.s.v+T)>(b=this.e.v>1?1+T:this.e.v<0?0+T:this.e.v+T)){var C=y;y=b,b=C}y=1e-4*Math.round(1e4*y),b=1e-4*Math.round(1e4*b),this.sValue=y,this.eValue=b}else y=this.sValue,b=this.eValue;var E,D,R,P,G,Q,H,k=this.shapes.length,Z=0;if(b===y)for(D=0;D<k;D+=1)this.shapes[D].localShapeCollection.releaseShapes(),this.shapes[D].shape._mdf=!0,this.shapes[D].shape.paths=this.shapes[D].localShapeCollection,this._mdf&&(this.shapes[D].pathsData.length=0);else if(1===b&&0===y||0===b&&1===y){if(this._mdf)for(D=0;D<k;D+=1)this.shapes[D].pathsData.length=0,this.shapes[D].shape._mdf=!0}else{var z,fe,X=[];for(D=0;D<k;D+=1)if((z=this.shapes[D]).shape._mdf||this._mdf||m||2===this.m){if(P=(E=z.shape.paths)._length,H=0,!z.shape._mdf&&z.pathsData.length)H=z.totalShapeLength;else{for(G=this.releasePathsData(z.pathsData),R=0;R<P;R+=1)Q=bez.getSegmentsLength(E.shapes[R]),G.push(Q),H+=Q.totalLength;z.totalShapeLength=H,z.pathsData=G}Z+=H,z.shape._mdf=!0}else z.shape.paths=z.localShapeCollection;var Y,q=y,ne=b,N=0;for(D=k-1;D>=0;D-=1)if((z=this.shapes[D]).shape._mdf){for((fe=z.localShapeCollection).releaseShapes(),2===this.m&&k>1?(Y=this.calculateShapeEdges(y,b,z.totalShapeLength,N,Z),N+=z.totalShapeLength):Y=[[q,ne]],P=Y.length,R=0;R<P;R+=1){q=Y[R][0],ne=Y[R][1],X.length=0,ne<=1?X.push({s:z.totalShapeLength*q,e:z.totalShapeLength*ne}):q>=1?X.push({s:z.totalShapeLength*(q-1),e:z.totalShapeLength*(ne-1)}):(X.push({s:z.totalShapeLength*q,e:z.totalShapeLength}),X.push({s:0,e:z.totalShapeLength*(ne-1)}));var W=this.addShapes(z,X[0]);if(X[0].s!==X[0].e){if(X.length>1)if(z.shape.paths.shapes[z.shape.paths._length-1].c){var n=W.pop();this.addPaths(W,fe),W=this.addShapes(z,X[1],n)}else this.addPaths(W,fe),W=this.addShapes(z,X[1]);this.addPaths(W,fe)}}z.shape.paths=fe}}},TrimModifier.prototype.addPaths=function(m,y){var b,T=m.length;for(b=0;b<T;b+=1)y.addShape(m[b])},TrimModifier.prototype.addSegment=function(m,y,b,T,C,E,D){C.setXYAt(y[0],y[1],"o",E),C.setXYAt(b[0],b[1],"i",E+1),D&&C.setXYAt(m[0],m[1],"v",E),C.setXYAt(T[0],T[1],"v",E+1)},TrimModifier.prototype.addSegmentFromArray=function(m,y,b,T){y.setXYAt(m[1],m[5],"o",b),y.setXYAt(m[2],m[6],"i",b+1),T&&y.setXYAt(m[0],m[4],"v",b),y.setXYAt(m[3],m[7],"v",b+1)},TrimModifier.prototype.addShapes=function(m,y,b){var E,k,R,G,Q,H,Z,z,T=m.pathsData,C=m.shape.paths.shapes,D=m.shape.paths._length,P=0,X=[],fe=!0;for(b?(Q=b._length,z=b._length):(b=shapePool.newElement(),Q=0,z=0),X.push(b),E=0;E<D;E+=1){for(H=T[E].lengths,b.c=C[E].c,R=C[E].c?H.length:H.length+1,k=1;k<R;k+=1)if(P+(G=H[k-1]).addedLength<y.s)P+=G.addedLength,b.c=!1;else{if(P>y.e){b.c=!1;break}y.s<=P&&y.e>=P+G.addedLength?(this.addSegment(C[E].v[k-1],C[E].o[k-1],C[E].i[k],C[E].v[k],b,Q,fe),fe=!1):(Z=bez.getNewSegment(C[E].v[k-1],C[E].v[k],C[E].o[k-1],C[E].i[k],(y.s-P)/G.addedLength,(y.e-P)/G.addedLength,H[k-1]),this.addSegmentFromArray(Z,b,Q,fe),fe=!1,b.c=!1),P+=G.addedLength,Q+=1}if(C[E].c&&H.length){if(G=H[k-1],P<=y.e){var q=H[k-1].addedLength;y.s<=P&&y.e>=P+q?(this.addSegment(C[E].v[k-1],C[E].o[k-1],C[E].i[0],C[E].v[0],b,Q,fe),fe=!1):(Z=bez.getNewSegment(C[E].v[k-1],C[E].v[0],C[E].o[k-1],C[E].i[0],(y.s-P)/q,(y.e-P)/q,H[k-1]),this.addSegmentFromArray(Z,b,Q,fe),fe=!1,b.c=!1)}else b.c=!1;P+=G.addedLength,Q+=1}if(b._length&&(b.setXYAt(b.v[z][0],b.v[z][1],"i",z),b.setXYAt(b.v[b._length-1][0],b.v[b._length-1][1],"o",b._length-1)),P>y.e)break;E<D-1&&(b=shapePool.newElement(),fe=!0,X.push(b),Q=0)}return X},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(m,y){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(m,y.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(m,y){var b=y/100,T=[0,0],C=m._length,E=0;for(E=0;E<C;E+=1)T[0]+=m.v[E][0],T[1]+=m.v[E][1];T[0]/=C,T[1]/=C;var D=shapePool.newElement();for(D.c=m.c,E=0;E<C;E+=1)D.setTripleAt(m.v[E][0]+(T[0]-m.v[E][0])*b,m.v[E][1]+(T[1]-m.v[E][1])*b,m.o[E][0]+(T[0]-m.o[E][0])*-b,m.o[E][1]+(T[1]-m.o[E][1])*-b,m.i[E][0]+(T[0]-m.i[E][0])*-b,m.i[E][1]+(T[1]-m.i[E][1])*-b,E);return D},PuckerAndBloatModifier.prototype.processShapes=function(m){var y,b,C,E,k,R,T=this.shapes.length,D=this.amount.v;if(0!==D)for(b=0;b<T;b+=1){if(R=(k=this.shapes[b]).localShapeCollection,k.shape._mdf||this._mdf||m)for(R.releaseShapes(),k.shape._mdf=!0,y=k.shape.paths.shapes,E=k.shape.paths._length,C=0;C<E;C+=1)R.addShape(this.processPath(y[C],D));k.shape.paths=k.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var m=[0,0];function D(R,P,G){if(this.elem=R,this.frameId=-1,this.propType="transform",this.data=P,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(G||R),P.p&&P.p.s?(this.px=PropertyFactory.getProp(R,P.p.x,0,0,this),this.py=PropertyFactory.getProp(R,P.p.y,0,0,this),P.p.z&&(this.pz=PropertyFactory.getProp(R,P.p.z,0,0,this))):this.p=PropertyFactory.getProp(R,P.p||{k:[0,0,0]},1,0,this),P.rx){if(this.rx=PropertyFactory.getProp(R,P.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(R,P.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(R,P.rz,0,degToRads,this),P.or.k[0].ti){var Q,H=P.or.k.length;for(Q=0;Q<H;Q+=1)P.or.k[Q].to=null,P.or.k[Q].ti=null}this.or=PropertyFactory.getProp(R,P.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(R,P.r||{k:0},0,degToRads,this);P.sk&&(this.sk=PropertyFactory.getProp(R,P.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(R,P.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(R,P.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(R,P.s||{k:[100,100,100]},1,.01,this),this.o=P.o?PropertyFactory.getProp(R,P.o,0,.01,R):{_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return D.prototype={applyToMatrix:function y(R){var P=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||P,this.a&&R.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&R.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&R.skewFromAxis(-this.sk.v,this.sa.v),this.r?R.rotate(-this.r.v):R.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?R.translate(this.px.v,this.py.v,this.data.p.z?-this.pz.v:0):R.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function b(R){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||R){var P;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var G,Q;if(P=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(G=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/P,0),Q=this.p.getValueAtTime(this.p.keyframes[0].t/P,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(G=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/P,0),Q=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/P,0)):(G=this.p.pv,Q=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/P,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){G=[],Q=[];var H=this.px,Z=this.py;H._caching.lastFrame+H.offsetTime<=H.keyframes[0].t?(G[0]=H.getValueAtTime((H.keyframes[0].t+.01)/P,0),G[1]=Z.getValueAtTime((Z.keyframes[0].t+.01)/P,0),Q[0]=H.getValueAtTime(H.keyframes[0].t/P,0),Q[1]=Z.getValueAtTime(Z.keyframes[0].t/P,0)):H._caching.lastFrame+H.offsetTime>=H.keyframes[H.keyframes.length-1].t?(G[0]=H.getValueAtTime(H.keyframes[H.keyframes.length-1].t/P,0),G[1]=Z.getValueAtTime(Z.keyframes[Z.keyframes.length-1].t/P,0),Q[0]=H.getValueAtTime((H.keyframes[H.keyframes.length-1].t-.01)/P,0),Q[1]=Z.getValueAtTime((Z.keyframes[Z.keyframes.length-1].t-.01)/P,0)):(G=[H.pv,Z.pv],Q[0]=H.getValueAtTime((H._caching.lastFrame+H.offsetTime-.01)/P,H.offsetTime),Q[1]=Z.getValueAtTime((Z._caching.lastFrame+Z.offsetTime-.01)/P,Z.offsetTime))}else G=Q=m;this.v.rotate(-Math.atan2(G[1]-Q[1],G[0]-Q[0]))}this.data.p&&this.data.p.s?this.v.translate(this.px.v,this.py.v,this.data.p.z?-this.pz.v:0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function T(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function C(){}},extendPrototype([DynamicPropertyContainer],D),D.prototype.addDynamicProperty=function E(R){this._addDynamicProperty(R),this.elem.addDynamicProperty(R),this._isDirty=!0},D.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function k(R,P,G){return new D(R,P,G)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(m,y){return 1e5*Math.abs(m-y)<=Math.min(Math.abs(m),Math.abs(y))}function floatZero(m){return Math.abs(m)<=1e-5}function lerp(m,y,b){return m*(1-b)+y*b}function lerpPoint(m,y,b){return[lerp(m[0],y[0],b),lerp(m[1],y[1],b)]}function quadRoots(m,y,b){if(0===m)return[];var T=y*y-4*m*b;if(T<0)return[];var C=-y/(2*m);if(0===T)return[C];var E=Math.sqrt(T)/(2*m);return[C-E,C+E]}function polynomialCoefficients(m,y,b,T){return[3*y-m-3*b+T,3*m-6*y+3*b,-3*m+3*y,m]}function singlePoint(m){return new PolynomialBezier(m,m,m,m,!1)}function PolynomialBezier(m,y,b,T,C){C&&pointEqual(m,y)&&(y=lerpPoint(m,T,1/3)),C&&pointEqual(b,T)&&(b=lerpPoint(m,T,2/3));var E=polynomialCoefficients(m[0],y[0],b[0],T[0]),D=polynomialCoefficients(m[1],y[1],b[1],T[1]);this.a=[E[0],D[0]],this.b=[E[1],D[1]],this.c=[E[2],D[2]],this.d=[E[3],D[3]],this.points=[m,y,b,T]}function extrema(m,y){var b=m.points[0][y],T=m.points[m.points.length-1][y];if(b>T){var C=T;T=b,b=C}for(var E=quadRoots(3*m.a[y],2*m.b[y],m.c[y]),D=0;D<E.length;D+=1)if(E[D]>0&&E[D]<1){var k=m.point(E[D])[y];k<b?b=k:k>T&&(T=k)}return{min:b,max:T}}function intersectData(m,y,b){var T=m.boundingBox();return{cx:T.cx,cy:T.cy,width:T.width,height:T.height,bez:m,t:(y+b)/2,t1:y,t2:b}}function splitData(m){var y=m.bez.split(.5);return[intersectData(y[0],m.t1,m.t),intersectData(y[1],m.t,m.t2)]}function boxIntersect(m,y){return 2*Math.abs(m.cx-y.cx)<m.width+y.width&&2*Math.abs(m.cy-y.cy)<m.height+y.height}function intersectsImpl(m,y,b,T,C,E){if(boxIntersect(m,y)){if(b>=E||m.width<=T&&m.height<=T&&y.width<=T&&y.height<=T)return void C.push([m.t,y.t]);var D=splitData(m),k=splitData(y);intersectsImpl(D[0],k[0],b+1,T,C,E),intersectsImpl(D[0],k[1],b+1,T,C,E),intersectsImpl(D[1],k[0],b+1,T,C,E),intersectsImpl(D[1],k[1],b+1,T,C,E)}}function crossProduct(m,y){return[m[1]*y[2]-m[2]*y[1],m[2]*y[0]-m[0]*y[2],m[0]*y[1]-m[1]*y[0]]}function lineIntersection(m,y,b,T){var D=[b[0],b[1],1],k=[T[0],T[1],1],R=crossProduct(crossProduct([m[0],m[1],1],[y[0],y[1],1]),crossProduct(D,k));return floatZero(R[2])?null:[R[0]/R[2],R[1]/R[2]]}function polarOffset(m,y,b){return[m[0]+Math.cos(y)*b,m[1]-Math.sin(y)*b]}function pointDistance(m,y){return Math.hypot(m[0]-y[0],m[1]-y[1])}function pointEqual(m,y){return floatEqual(m[0],y[0])&&floatEqual(m[1],y[1])}function ZigZagModifier(){}function setPoint(m,y,b,T,C,E,D){var k=b-Math.PI/2,R=b+Math.PI/2,P=y[0]+Math.cos(b)*T*C,G=y[1]-Math.sin(b)*T*C;m.setTripleAt(P,G,P+Math.cos(k)*E,G-Math.sin(k)*E,P+Math.cos(R)*D,G-Math.sin(R)*D,m.length())}function getPerpendicularVector(m,y){var b=[y[0]-m[0],y[1]-m[1]],T=.5*-Math.PI;return[Math.cos(T)*b[0]-Math.sin(T)*b[1],Math.sin(T)*b[0]+Math.cos(T)*b[1]]}function getProjectingAngle(m,y){var b=0===y?m.length()-1:y-1,T=(y+1)%m.length(),D=getPerpendicularVector(m.v[b],m.v[T]);return Math.atan2(0,1)-Math.atan2(D[1],D[0])}function zigZagCorner(m,y,b,T,C,E,D){var k=getProjectingAngle(y,b),R=y.v[b%y._length],P=y.v[0===b?y._length-1:b-1],G=y.v[(b+1)%y._length],Q=2===E?Math.sqrt(Math.pow(R[0]-P[0],2)+Math.pow(R[1]-P[1],2)):0,H=2===E?Math.sqrt(Math.pow(R[0]-G[0],2)+Math.pow(R[1]-G[1],2)):0;setPoint(m,y.v[b%y._length],k,D,T,H/(2*(C+1)),Q/(2*(C+1)),E)}function zigZagSegment(m,y,b,T,C,E){for(var D=0;D<T;D+=1){var k=(D+1)/(T+1),R=2===C?Math.sqrt(Math.pow(y.points[3][0]-y.points[0][0],2)+Math.pow(y.points[3][1]-y.points[0][1],2)):0,P=y.normalAngle(k);setPoint(m,y.point(k),P,E,b,R/(2*(T+1)),R/(2*(T+1)),C),E=-E}return E}function linearOffset(m,y,b){var T=Math.atan2(y[0]-m[0],y[1]-m[1]);return[polarOffset(m,T,b),polarOffset(y,T,b)]}function offsetSegment(m,y){var b,T,C,E,D,k,R;b=(R=linearOffset(m.points[0],m.points[1],y))[0],T=R[1],C=(R=linearOffset(m.points[1],m.points[2],y))[0],E=R[1],D=(R=linearOffset(m.points[2],m.points[3],y))[0],k=R[1];var P=lineIntersection(b,T,C,E);null===P&&(P=T);var G=lineIntersection(D,k,C,E);return null===G&&(G=D),new PolynomialBezier(b,P,G,k)}function joinLines(m,y,b,T,C){var E=y.points[3],D=b.points[0];if(3===T||pointEqual(E,D))return E;if(2===T){var k=-y.tangentAngle(1),R=-b.tangentAngle(0)+Math.PI,P=lineIntersection(E,polarOffset(E,k+Math.PI/2,100),D,polarOffset(D,k+Math.PI/2,100)),G=P?pointDistance(P,E):pointDistance(E,D)/2,Q=polarOffset(E,k,2*G*roundCorner);return m.setXYAt(Q[0],Q[1],"o",m.length()-1),Q=polarOffset(D,R,2*G*roundCorner),m.setTripleAt(D[0],D[1],D[0],D[1],Q[0],Q[1],m.length()),D}var X=lineIntersection(pointEqual(E,y.points[2])?y.points[0]:y.points[2],E,D,pointEqual(D,b.points[1])?b.points[3]:b.points[1]);return X&&pointDistance(X,E)<C?(m.setTripleAt(X[0],X[1],X[0],X[1],X[0],X[1],m.length()),X):E}function getIntersection(m,y){var b=m.intersections(y);return b.length&&floatEqual(b[0][0],1)&&b.shift(),b.length?b[0]:null}function pruneSegmentIntersection(m,y){var b=m.slice(),T=y.slice(),C=getIntersection(m[m.length-1],y[0]);return C&&(b[m.length-1]=m[m.length-1].split(C[0])[0],T[0]=y[0].split(C[1])[1]),m.length>1&&y.length>1&&(C=getIntersection(m[0],y[y.length-1]))?[[m[0].split(C[0])[0]],[y[y.length-1].split(C[1])[1]]]:[b,T]}function pruneIntersections(m){for(var y,b=1;b<m.length;b+=1)y=pruneSegmentIntersection(m[b-1],m[b]),m[b-1]=y[0],m[b]=y[1];return m.length>1&&(y=pruneSegmentIntersection(m[m.length-1],m[0]),m[m.length-1]=y[0],m[0]=y[1]),m}function offsetSegmentSplit(m,y){var T,C,E,D,b=m.inflectionPoints();return 0===b.length?[offsetSegment(m,y)]:1===b.length||floatEqual(b[1],1)?(C=(E=m.split(b[0]))[1],[offsetSegment(T=E[0],y),offsetSegment(C,y)]):(T=(E=m.split(b[0]))[0],D=(E=E[1].split((b[1]-b[0])/(1-b[0])))[0],C=E[1],[offsetSegment(T,y),offsetSegment(D,y),offsetSegment(C,y)])}function OffsetPathModifier(){}function getFontProperties(m){for(var E,y=m.fStyle?m.fStyle.split(" "):[],b="normal",T="normal",C=y.length,D=0;D<C;D+=1)switch(E=y[D].toLowerCase(),E){case"italic":T="italic";break;case"bold":b="700";break;case"black":b="900";break;case"medium":b="500";break;case"regular":case"normal":b="400";break;case"light":case"thin":b="200"}return{style:T,weight:m.fWeight||b}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(m,y){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(m,y.c,0,null,this),this.o=PropertyFactory.getProp(m,y.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(m,y.tr,this),this.so=PropertyFactory.getProp(m,y.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(m,y.tr.eo,0,.01,this),this.data=y,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(m,y,b,T,C,E){var D=E?-1:1,k=T.s.v[0]+(1-T.s.v[0])*(1-C),R=T.s.v[1]+(1-T.s.v[1])*(1-C);m.translate(T.p.v[0]*D*C,T.p.v[1]*D*C,T.p.v[2]),y.translate(-T.a.v[0],-T.a.v[1],T.a.v[2]),y.rotate(-T.r.v*D*C),y.translate(T.a.v[0],T.a.v[1],T.a.v[2]),b.translate(-T.a.v[0],-T.a.v[1],T.a.v[2]),b.scale(E?1/k:k,E?1/R:R),b.translate(T.a.v[0],T.a.v[1],T.a.v[2])},RepeaterModifier.prototype.init=function(m,y,b,T){for(this.elem=m,this.arr=y,this.pos=b,this.elemsData=T,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(m),this.initModifierProperties(m,y[b]);b>0;)this._elements.unshift(y[b-=1]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(m){var y,b=m.length;for(y=0;y<b;y+=1)m[y]._processed=!1,"gr"===m[y].ty&&this.resetElements(m[y].it)},RepeaterModifier.prototype.cloneElements=function(m){var y=JSON.parse(JSON.stringify(m));return this.resetElements(y),y},RepeaterModifier.prototype.changeGroupRender=function(m,y){var b,T=m.length;for(b=0;b<T;b+=1)m[b]._render=y,"gr"===m[b].ty&&this.changeGroupRender(m[b].it,y)},RepeaterModifier.prototype.processShapes=function(m){var y,b,T,C,E,D=!1;if(this._mdf||m){var P,k=Math.ceil(this.c.v);if(this._groups.length<k){for(;this._groups.length<k;){var R={it:this.cloneElements(this._elements),ty:"gr"};R.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,R),this._groups.splice(0,0,R),this._currentCopies+=1}this.elem.reloadShapes(),D=!0}for(E=0,T=0;T<=this._groups.length-1;T+=1){if(this._groups[T]._render=P=E<k,this.changeGroupRender(this._groups[T].it,P),!P){var G=this.elemsData[T].it,Q=G[G.length-1];0!==Q.transform.op.v?(Q.transform.op._mdf=!0,Q.transform.op.v=0):Q.transform.op._mdf=!1}E+=1}this._currentCopies=k;var H=this.o.v,Z=H%1,X=H>0?Math.floor(H):Math.ceil(H),z=this.pMatrix.props,fe=this.rMatrix.props,q=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var N,Y,ne=0;if(H>0){for(;ne<X;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),ne+=1;Z&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,Z,!1),ne+=Z)}else if(H<0){for(;ne>X;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),ne-=1;Z&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-Z,!0),ne-=Z)}for(T=1===this.data.m?0:this._currentCopies-1,C=1===this.data.m?1:-1,E=this._currentCopies;E;){if(Y=(b=(y=this.elemsData[T].it)[y.length-1].transform.mProps.v.props).length,y[y.length-1].transform.mProps._mdf=!0,y[y.length-1].transform.op._mdf=!0,y[y.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+T/(this._currentCopies-1)*(this.eo.v-this.so.v),0!==ne){for((0!==T&&1===C||T!==this._currentCopies-1&&-1===C)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(fe[0],fe[1],fe[2],fe[3],fe[4],fe[5],fe[6],fe[7],fe[8],fe[9],fe[10],fe[11],fe[12],fe[13],fe[14],fe[15]),this.matrix.transform(q[0],q[1],q[2],q[3],q[4],q[5],q[6],q[7],q[8],q[9],q[10],q[11],q[12],q[13],q[14],q[15]),this.matrix.transform(z[0],z[1],z[2],z[3],z[4],z[5],z[6],z[7],z[8],z[9],z[10],z[11],z[12],z[13],z[14],z[15]),N=0;N<Y;N+=1)b[N]=this.matrix.props[N];this.matrix.reset()}else for(this.matrix.reset(),N=0;N<Y;N+=1)b[N]=this.matrix.props[N];ne+=1,E-=1,T+=C}}else for(E=this._currentCopies,T=0,C=1;E;)b=(y=this.elemsData[T].it)[y.length-1].transform.mProps.v.props,y[y.length-1].transform.mProps._mdf=!1,y[y.length-1].transform.op._mdf=!1,E-=1,T+=C;return D},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(m,y){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(m,y.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(m,y){var b=shapePool.newElement();b.c=m.c;var T,E,D,k,R,P,G,H,Z,X,z,fe,q,C=m._length,Q=0;for(T=0;T<C;T+=1)D=m.i[T],(E=m.v[T])[0]===(k=m.o[T])[0]&&E[1]===k[1]&&E[0]===D[0]&&E[1]===D[1]?0!==T&&T!==C-1||m.c?(R=0===T?m.v[C-1]:m.v[T-1],G=(P=Math.sqrt(Math.pow(E[0]-R[0],2)+Math.pow(E[1]-R[1],2)))?Math.min(P/2,y)/P:0,b.setTripleAt(H=fe=E[0]+(R[0]-E[0])*G,Z=q=E[1]-(E[1]-R[1])*G,H-(H-E[0])*roundCorner,Z-(Z-E[1])*roundCorner,fe,q,Q),Q+=1,R=T===C-1?m.v[0]:m.v[T+1],G=(P=Math.sqrt(Math.pow(E[0]-R[0],2)+Math.pow(E[1]-R[1],2)))?Math.min(P/2,y)/P:0,b.setTripleAt(H=X=E[0]+(R[0]-E[0])*G,Z=z=E[1]+(R[1]-E[1])*G,X,z,fe=H-(H-E[0])*roundCorner,q=Z-(Z-E[1])*roundCorner,Q),Q+=1):(b.setTripleAt(E[0],E[1],k[0],k[1],D[0],D[1],Q),Q+=1):(b.setTripleAt(m.v[T][0],m.v[T][1],m.o[T][0],m.o[T][1],m.i[T][0],m.i[T][1],Q),Q+=1);return b},RoundCornersModifier.prototype.processShapes=function(m){var y,b,C,E,k,R,T=this.shapes.length,D=this.rd.v;if(0!==D)for(b=0;b<T;b+=1){if(R=(k=this.shapes[b]).localShapeCollection,k.shape._mdf||this._mdf||m)for(R.releaseShapes(),k.shape._mdf=!0,y=k.shape.paths.shapes,E=k.shape.paths._length,C=0;C<E;C+=1)R.addShape(this.processPath(y[C],D));k.shape.paths=k.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(m){return[((this.a[0]*m+this.b[0])*m+this.c[0])*m+this.d[0],((this.a[1]*m+this.b[1])*m+this.c[1])*m+this.d[1]]},PolynomialBezier.prototype.derivative=function(m){return[(3*m*this.a[0]+2*this.b[0])*m+this.c[0],(3*m*this.a[1]+2*this.b[1])*m+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(m){var y=this.derivative(m);return Math.atan2(y[1],y[0])},PolynomialBezier.prototype.normalAngle=function(m){var y=this.derivative(m);return Math.atan2(y[0],y[1])},PolynomialBezier.prototype.inflectionPoints=function(){var m=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(m))return[];var y=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/m,b=y*y-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/m;if(b<0)return[];var T=Math.sqrt(b);return floatZero(T)?T>0&&T<1?[y]:[]:[y-T,y+T].filter(function(C){return C>0&&C<1})},PolynomialBezier.prototype.split=function(m){if(m<=0)return[singlePoint(this.points[0]),this];if(m>=1)return[this,singlePoint(this.points[this.points.length-1])];var y=lerpPoint(this.points[0],this.points[1],m),b=lerpPoint(this.points[1],this.points[2],m),T=lerpPoint(this.points[2],this.points[3],m),C=lerpPoint(y,b,m),E=lerpPoint(b,T,m),D=lerpPoint(C,E,m);return[new PolynomialBezier(this.points[0],y,C,D,!0),new PolynomialBezier(D,E,T,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var m=this.bounds();return{left:m.x.min,right:m.x.max,top:m.y.min,bottom:m.y.max,width:m.x.max-m.x.min,height:m.y.max-m.y.min,cx:(m.x.max+m.x.min)/2,cy:(m.y.max+m.y.min)/2}},PolynomialBezier.prototype.intersections=function(m,y,b){void 0===y&&(y=2),void 0===b&&(b=7);var T=[];return intersectsImpl(intersectData(this,0,1),intersectData(m,0,1),0,y,T,b),T},PolynomialBezier.shapeSegment=function(m,y){var b=(y+1)%m.length();return new PolynomialBezier(m.v[y],m.o[y],m.i[b],m.v[b],!0)},PolynomialBezier.shapeSegmentInverted=function(m,y){var b=(y+1)%m.length();return new PolynomialBezier(m.v[b],m.i[b],m.o[y],m.v[y],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(m,y){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(m,y.s,0,null,this),this.frequency=PropertyFactory.getProp(m,y.r,0,null,this),this.pointsType=PropertyFactory.getProp(m,y.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPath=function(m,y,b,T){var C=m._length,E=shapePool.newElement();if(E.c=m.c,m.c||(C-=1),0===C)return E;var D=-1,k=PolynomialBezier.shapeSegment(m,0);zigZagCorner(E,m,0,y,b,T,D);for(var R=0;R<C;R+=1)D=zigZagSegment(E,k,y,b,T,-D),k=R!==C-1||m.c?PolynomialBezier.shapeSegment(m,(R+1)%C):null,zigZagCorner(E,m,R+1,y,b,T,D);return E},ZigZagModifier.prototype.processShapes=function(m){var y,b,C,E,P,G,T=this.shapes.length,D=this.amplitude.v,k=Math.max(0,Math.round(this.frequency.v)),R=this.pointsType.v;if(0!==D)for(b=0;b<T;b+=1){if(G=(P=this.shapes[b]).localShapeCollection,P.shape._mdf||this._mdf||m)for(G.releaseShapes(),P.shape._mdf=!0,y=P.shape.paths.shapes,E=P.shape.paths._length,C=0;C<E;C+=1)G.addShape(this.processPath(y[C],D,k,R));P.shape.paths=P.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(m,y){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(m,y.a,0,null,this),this.miterLimit=PropertyFactory.getProp(m,y.ml,0,null,this),this.lineJoin=y.lj,this._isAnimated=0!==this.amount.effectsSequence.length},OffsetPathModifier.prototype.processPath=function(m,y,b,T){var C=shapePool.newElement();C.c=m.c;var E=m.length();m.c||(E-=1);var D,k,R,P=[];for(D=0;D<E;D+=1)R=PolynomialBezier.shapeSegment(m,D),P.push(offsetSegmentSplit(R,y));if(!m.c)for(D=E-1;D>=0;D-=1)R=PolynomialBezier.shapeSegmentInverted(m,D),P.push(offsetSegmentSplit(R,y));P=pruneIntersections(P);var G=null,Q=null;for(D=0;D<P.length;D+=1){var H=P[D];for(Q&&(G=joinLines(C,Q,H[0],b,T)),Q=H[H.length-1],k=0;k<H.length;k+=1)R=H[k],G&&pointEqual(R.points[0],G)?C.setXYAt(R.points[1][0],R.points[1][1],"o",C.length()-1):C.setTripleAt(R.points[0][0],R.points[0][1],R.points[1][0],R.points[1][1],R.points[0][0],R.points[0][1],C.length()),C.setTripleAt(R.points[3][0],R.points[3][1],R.points[3][0],R.points[3][1],R.points[2][0],R.points[2][1],C.length()),G=R.points[3]}return P.length&&joinLines(C,Q,P[0][0],b,T),C},OffsetPathModifier.prototype.processShapes=function(m){var y,b,C,E,P,G,T=this.shapes.length,D=this.amount.v,k=this.miterLimit.v,R=this.lineJoin;if(0!==D)for(b=0;b<T;b+=1){if(G=(P=this.shapes[b]).localShapeCollection,P.shape._mdf||this._mdf||m)for(G.releaseShapes(),P.shape._mdf=!0,y=P.shape.paths.shapes,E=P.shape.paths._length,C=0;C<E;C+=1)G.addShape(this.processPath(y[C],D,R,k));P.shape.paths=P.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var y={w:0,size:0,shapes:[],data:{shapes:[]}},b=[];b=b.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var T=127988,Q=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function Z(Ie,Se){var de=createTag("span");de.setAttribute("aria-hidden",!0),de.style.fontFamily=Se;var le=createTag("span");le.innerText="giItT1WQy@!-/#",de.style.position="absolute",de.style.left="-10000px",de.style.top="-10000px",de.style.fontSize="300px",de.style.fontVariant="normal",de.style.fontStyle="normal",de.style.fontWeight="normal",de.style.letterSpacing="0",de.appendChild(le),document.body.appendChild(de);var xe=le.offsetWidth;return le.style.fontFamily=function H(Ie){var de,Se=Ie.split(","),le=Se.length,xe=[];for(de=0;de<le;de+=1)"sans-serif"!==Se[de]&&"monospace"!==Se[de]&&xe.push(Se[de]);return xe.join(",")}(Ie)+", "+Se,{node:le,w:xe,parent:de}}function z(Ie,Se){var le,de=document.body&&Se?"svg":"canvas",xe=getFontProperties(Ie);if("svg"===de){var We=createNS("text");We.style.fontSize="100px",We.setAttribute("font-family",Ie.fFamily),We.setAttribute("font-style",xe.style),We.setAttribute("font-weight",xe.weight),We.textContent="1",Ie.fClass?(We.style.fontFamily="inherit",We.setAttribute("class",Ie.fClass)):We.style.fontFamily=Ie.fFamily,Se.appendChild(We),le=We}else{var st=new OffscreenCanvas(500,500).getContext("2d");st.font=xe.style+" "+xe.weight+" 100px "+Ie.fFamily,le=st}return{measureText:function ut(Ae){return"svg"===de?(le.textContent=Ae,le.getComputedTextLength()):le.measureText(Ae).width}}}function W(Ie){var Se=0,de=Ie.charCodeAt(0);if(de>=55296&&de<=56319){var le=Ie.charCodeAt(1);le>=56320&&le<=57343&&(Se=1024*(de-55296)+le-56320+65536)}return Se}function se(Ie){var Se=W(Ie);return Se>=127462&&Se<=127487}var be=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};return be.isModifier=function J(Ie,Se){var de=Ie.toString(16)+Se.toString(16);return-1!==Q.indexOf(de)},be.isZeroWidthJoiner=function n(Ie){return 8205===Ie},be.isFlagEmoji=function De(Ie){return se(Ie.substr(0,2))&&se(Ie.substr(2,2))},be.isRegionalCode=se,be.isCombinedCharacter=function Fe(Ie){return-1!==b.indexOf(Ie)},be.isRegionalFlag=function _e(Ie,Se){var de=W(Ie.substr(Se,2));if(de!==T)return!1;var le=0;for(Se+=2;le<5;){if((de=W(Ie.substr(Se,2)))<917601||de>917626)return!1;le+=1,Se+=2}return 917631===W(Ie.substr(Se,2))},be.isVariationSelector=function K(Ie){return 65039===Ie},be.BLACK_FLAG_CODE_POINT=T,be.prototype={addChars:function q(Ie){if(Ie){this.chars||(this.chars=[]);var Se,le,We,de=Ie.length,xe=this.chars.length;for(Se=0;Se<de;Se+=1){for(le=0,We=!1;le<xe;)this.chars[le].style===Ie[Se].style&&this.chars[le].fFamily===Ie[Se].fFamily&&this.chars[le].ch===Ie[Se].ch&&(We=!0),le+=1;We||(this.chars.push(Ie[Se]),xe+=1)}}},addFonts:function fe(Ie,Se){if(Ie){if(this.chars)return this.isLoaded=!0,void(this.fonts=Ie.list);if(!document.body)return this.isLoaded=!0,Ie.list.forEach(function(vt){vt.helper=z(vt),vt.cache={}}),void(this.fonts=Ie.list);var le,de=Ie.list,xe=de.length,We=xe;for(le=0;le<xe;le+=1){var ut,Ae,st=!0;if(de[le].loaded=!1,de[le].monoCase=Z(de[le].fFamily,"monospace"),de[le].sansCase=Z(de[le].fFamily,"sans-serif"),de[le].fPath){if("p"===de[le].fOrigin||3===de[le].origin){if((ut=document.querySelectorAll('style[f-forigin="p"][f-family="'+de[le].fFamily+'"], style[f-origin="3"][f-family="'+de[le].fFamily+'"]')).length>0&&(st=!1),st){var ye=createTag("style");ye.setAttribute("f-forigin",de[le].fOrigin),ye.setAttribute("f-origin",de[le].origin),ye.setAttribute("f-family",de[le].fFamily),ye.type="text/css",ye.innerText="@font-face {font-family: "+de[le].fFamily+"; font-style: normal; src: url('"+de[le].fPath+"');}",Se.appendChild(ye)}}else if("g"===de[le].fOrigin||1===de[le].origin){for(ut=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),Ae=0;Ae<ut.length;Ae+=1)-1!==ut[Ae].href.indexOf(de[le].fPath)&&(st=!1);if(st){var Re=createTag("link");Re.setAttribute("f-forigin",de[le].fOrigin),Re.setAttribute("f-origin",de[le].origin),Re.type="text/css",Re.rel="stylesheet",Re.href=de[le].fPath,document.body.appendChild(Re)}}else if("t"===de[le].fOrigin||2===de[le].origin){for(ut=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),Ae=0;Ae<ut.length;Ae+=1)de[le].fPath===ut[Ae].src&&(st=!1);if(st){var Qe=createTag("link");Qe.setAttribute("f-forigin",de[le].fOrigin),Qe.setAttribute("f-origin",de[le].origin),Qe.setAttribute("rel","stylesheet"),Qe.setAttribute("href",de[le].fPath),Se.appendChild(Qe)}}}else de[le].loaded=!0,We-=1;de[le].helper=z(de[le],Se),de[le].cache={},this.fonts.push(de[le])}0===We?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function ne(Ie,Se,de){for(var le=0,xe=this.chars.length;le<xe;){if(this.chars[le].ch===Ie&&this.chars[le].style===Se&&this.chars[le].fFamily===de)return this.chars[le];le+=1}return("string"==typeof Ie&&13!==Ie.charCodeAt(0)||!Ie)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",Ie,Se,de)),y},getFontByName:function Y(Ie){for(var Se=0,de=this.fonts.length;Se<de;){if(this.fonts[Se].fName===Ie)return this.fonts[Se];Se+=1}return this.fonts[0]},measureText:function N(Ie,Se,de){var le=this.getFontByName(Se),xe=Ie;if(!le.cache[xe]){var We=le.helper;if(" "===Ie){var st=We.measureText("|"+Ie+"|"),ut=We.measureText("||");le.cache[xe]=(st-ut)/100}else le.cache[xe]=We.measureText(Ie)/100}return le.cache[xe]*de},checkLoadedFonts:function X(){var Ie,Se=this.fonts.length,xe=Se;for(Ie=0;Ie<Se;Ie+=1)this.fonts[Ie].loaded?xe-=1:"n"===this.fonts[Ie].fOrigin||0===this.fonts[Ie].origin?this.fonts[Ie].loaded=!0:((this.fonts[Ie].monoCase.node.offsetWidth!==this.fonts[Ie].monoCase.w||this.fonts[Ie].sansCase.node.offsetWidth!==this.fonts[Ie].sansCase.w)&&(xe-=1,this.fonts[Ie].loaded=!0),this.fonts[Ie].loaded&&(this.fonts[Ie].sansCase.parent.parentNode.removeChild(this.fonts[Ie].sansCase.parent),this.fonts[Ie].monoCase.parent.parentNode.removeChild(this.fonts[Ie].monoCase.parent)));0!==xe&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function ke(){this.isLoaded=!0}},be}();function SlotManager(m){this.animationData=m}function slotFactory(m){return new SlotManager(m)}function RenderableElement(){}SlotManager.prototype.getProp=function(m){return this.animationData.slots&&this.animationData.slots[m.sid]?Object.assign(m,this.animationData.slots[m.sid].p):m},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(y){-1===this.renderableComponents.indexOf(y)&&this.renderableComponents.push(y)},removeRenderableComponent:function(y){-1!==this.renderableComponents.indexOf(y)&&this.renderableComponents.splice(this.renderableComponents.indexOf(y),1)},prepareRenderableFrame:function(y){this.checkLayerLimits(y)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(y){this.data.ip-this.data.st<=y&&this.data.op-this.data.st>y?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var y,b=this.renderableComponents.length;for(y=0;y<b;y+=1)this.renderableComponents[y].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=function(){var m={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(y){return m[y]||""}}();function SliderEffect(m,y,b){this.p=PropertyFactory.getProp(y,m.v,0,0,b)}function AngleEffect(m,y,b){this.p=PropertyFactory.getProp(y,m.v,0,0,b)}function ColorEffect(m,y,b){this.p=PropertyFactory.getProp(y,m.v,1,0,b)}function PointEffect(m,y,b){this.p=PropertyFactory.getProp(y,m.v,1,0,b)}function LayerIndexEffect(m,y,b){this.p=PropertyFactory.getProp(y,m.v,0,0,b)}function MaskIndexEffect(m,y,b){this.p=PropertyFactory.getProp(y,m.v,0,0,b)}function CheckboxEffect(m,y,b){this.p=PropertyFactory.getProp(y,m.v,0,0,b)}function NoValueEffect(){this.p={}}function EffectsManager(m,y){var b=m.ef||[];this.effectElements=[];var T,E,C=b.length;for(T=0;T<C;T+=1)E=new GroupEffect(b[T],y),this.effectElements.push(E)}function GroupEffect(m,y){this.init(m,y)}function BaseElement(){}function FrameElement(){}function FootageElement(m,y,b){this.initFrame(),this.initRenderable(),this.assetData=y.getAssetData(m.refId),this.footageData=y.imageLoader.getAsset(this.assetData),this.initBaseData(m,y,b)}function AudioElement(m,y,b){this.initFrame(),this.initRenderable(),this.assetData=y.getAssetData(m.refId),this.initBaseData(m,y,b),this._isPlaying=!1,this._canPlay=!1;var T=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(T),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=m.tm?PropertyFactory.getProp(this,m.tm,0,y.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,m.au&&m.au.lv?m.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(m,y){this.data=m,this.effectElements=[],this.initDynamicPropertyContainer(y);var b,C,T=this.data.ef.length,E=this.data.ef;for(b=0;b<T;b+=1){switch(C=null,E[b].ty){case 0:C=new SliderEffect(E[b],y,this);break;case 1:C=new AngleEffect(E[b],y,this);break;case 2:C=new ColorEffect(E[b],y,this);break;case 3:C=new PointEffect(E[b],y,this);break;case 4:case 7:C=new CheckboxEffect(E[b],y,this);break;case 10:C=new LayerIndexEffect(E[b],y,this);break;case 11:C=new MaskIndexEffect(E[b],y,this);break;case 5:C=new EffectsManager(E[b],y,this);break;default:C=new NoValueEffect(E[b],y,this)}C&&this.effectElements.push(C)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var y=0,b=this.data.masksProperties.length;y<b;){if("n"!==this.data.masksProperties[y].mode&&!1!==this.data.masksProperties[y].cl)return!0;y+=1}return!1},initExpressions:function(){var y=getExpressionInterfaces();if(y){var b=y("layer"),T=y("effects"),C=y("shape"),E=y("text"),D=y("comp");this.layerInterface=b(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var k=T.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(k),0===this.data.ty||this.data.xt?this.compInterface=D(this):4===this.data.ty?(this.layerInterface.shapeInterface=C(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=E(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var y=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=y},initBaseData:function(y,b,T){this.globalData=b,this.comp=T,this.data=y,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(y,b){var T,C=this.dynamicProperties.length;for(T=0;T<C;T+=1)(b||this._isParent&&"transform"===this.dynamicProperties[T].propType)&&(this.dynamicProperties[T].getValue(),this.dynamicProperties[T]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(y){-1===this.dynamicProperties.indexOf(y)&&this.dynamicProperties.push(y)}},FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var m=getExpressionInterfaces();if(m){var y=m("footage");this.layerInterface=y(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(m){this.prepareRenderableFrame(m,!0),this.prepareProperties(m,!0),this._currentTime=this.tm._placeholder?m/this.data.sr:this.tm.v,this._volume=this.lv.v[0];var b=this._volume*this._volumeMultiplier;this._previousVolume!==b&&(this._previousVolume=b,this.audio.volume(b))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(m){this.audio.rate(m)},AudioElement.prototype.volume=function(m){this._volumeMultiplier=m,this._previousVolume=m*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(m){var y,T,b=this.layers.length;for(this.completeLayers=!0,y=b-1;y>=0;y-=1)this.elements[y]||(T=this.layers[y]).ip-T.st<=m-this.layers[y].st&&T.op-T.st>m-this.layers[y].st&&this.buildItem(y),this.completeLayers=!!this.elements[y]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(m){switch(m.ty){case 2:return this.createImage(m);case 0:return this.createComp(m);case 1:return this.createSolid(m);case 3:default:return this.createNull(m);case 4:return this.createShape(m);case 5:return this.createText(m);case 6:return this.createAudio(m);case 13:return this.createCamera(m);case 15:return this.createFootage(m)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(m){return new AudioElement(m,this.globalData,this)},BaseRenderer.prototype.createFootage=function(m){return new FootageElement(m,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var m,y=this.layers.length;for(m=0;m<y;m+=1)this.buildItem(m);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(m){this.completeLayers=!1;var y,T,b=m.length,C=this.layers.length;for(y=0;y<b;y+=1)for(T=0;T<C;){if(this.layers[T].id===m[y].id){this.layers[T]=m[y];break}T+=1}},BaseRenderer.prototype.setProjectInterface=function(m){this.globalData.projectInterface=m},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(m,y,b){for(var T=this.elements,C=this.layers,E=0,D=C.length;E<D;)C[E].ind==y&&(T[E]&&!0!==T[E]?(b.push(T[E]),T[E].setAsParent(),void 0!==C[E].parent?this.buildElementParenting(m,C[E].parent,b):m.setHierarchy(b)):(this.buildItem(E),this.addPendingElement(m))),E+=1},BaseRenderer.prototype.addPendingElement=function(m){this.pendingElements.push(m)},BaseRenderer.prototype.searchExtraCompositions=function(m){var y,b=m.length;for(y=0;y<b;y+=1)if(m[y].xt){var T=this.createComp(m[y]);T.initExpressions(),this.globalData.projectInterface.registerComposition(T)}},BaseRenderer.prototype.getElementById=function(m){var y,b=this.elements.length;for(y=0;y<b;y+=1)if(this.elements[y].data.ind===m)return this.elements[y];return null},BaseRenderer.prototype.getElementByPath=function(m){var b,y=m.shift();if("number"==typeof y)b=this.elements[y];else{var T,C=this.elements.length;for(T=0;T<C;T+=1)if(this.elements[T].data.nm===y){b=this.elements[T];break}}return 0===m.length?b:b.getElementByPath(m)},BaseRenderer.prototype.setupGlobalData=function(m,y){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(m),this.globalData.fontManager.addChars(m.chars),this.globalData.fontManager.addFonts(m.fonts,y),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=m.fr,this.globalData.nm=m.nm,this.globalData.compSize={w:m.w,h:m.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}function MaskElement(m,y,b){this.data=m,this.element=y,this.globalData=b,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var C,T=this.globalData.defs,E=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(E),this.solidPath="";var D,G,Q,Z,X,z,fe,k=this.masksProperties,R=0,P=[],H=createElementID(),q="clipPath",ne="clip-path";for(C=0;C<E;C+=1)if(("a"!==k[C].mode&&"n"!==k[C].mode||k[C].inv||100!==k[C].o.k||k[C].o.x)&&(q="mask",ne="mask"),"s"!==k[C].mode&&"i"!==k[C].mode||0!==R?Z=null:((Z=createNS("rect")).setAttribute("fill","#ffffff"),Z.setAttribute("width",this.element.comp.data.w||0),Z.setAttribute("height",this.element.comp.data.h||0),P.push(Z)),D=createNS("path"),"n"===k[C].mode)this.viewData[C]={op:PropertyFactory.getProp(this.element,k[C].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,k[C],3),elem:D,lastPath:""},T.appendChild(D);else{var N;if(R+=1,D.setAttribute("fill","s"===k[C].mode?"#000000":"#ffffff"),D.setAttribute("clip-rule","nonzero"),0!==k[C].x.k?(q="mask",ne="mask",fe=PropertyFactory.getProp(this.element,k[C].x,0,null,this.element),N=createElementID(),(X=createNS("filter")).setAttribute("id",N),(z=createNS("feMorphology")).setAttribute("operator","erode"),z.setAttribute("in","SourceGraphic"),z.setAttribute("radius","0"),X.appendChild(z),T.appendChild(X),D.setAttribute("stroke","s"===k[C].mode?"#000000":"#ffffff")):(z=null,fe=null),this.storedData[C]={elem:D,x:fe,expan:z,lastPath:"",lastOperator:"",filterId:N,lastRadius:0},"i"===k[C].mode){Q=P.length;var Y=createNS("g");for(G=0;G<Q;G+=1)Y.appendChild(P[G]);var W=createNS("mask");W.setAttribute("mask-type","alpha"),W.setAttribute("id",H+"_"+R),W.appendChild(D),T.appendChild(W),Y.setAttribute("mask","url("+getLocationHref()+"#"+H+"_"+R+")"),P.length=0,P.push(Y)}else P.push(D);k[C].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[C]={elem:D,lastPath:"",op:PropertyFactory.getProp(this.element,k[C].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,k[C],3),invRect:Z},this.viewData[C].prop.k||this.drawPath(k[C],this.viewData[C].prop.v,this.viewData[C])}for(this.maskElement=createNS(q),E=P.length,C=0;C<E;C+=1)this.maskElement.appendChild(P[C]);R>0&&(this.maskElement.setAttribute("id",H),this.element.maskedElement.setAttribute(ne,"url("+getLocationHref()+"#"+H+")"),T.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}TransformElement.prototype={initTransform:function(){var y=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:y,localMat:y,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0)},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var b=this.finalTransform.mat,T=0,C=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;T<C;){if(this.hierarchy[T].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}T+=1}if(this.finalTransform._matMdf)for(b.cloneFromProps(this.finalTransform.mProp.v.props),T=0;T<C;T+=1)b.multiply(this.hierarchy[T].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var y=0,b=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;y<b;)this.localTransforms[y]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[y]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),y+=1;if(this.finalTransform._localMatMdf){var T=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(T),y=1;y<b;y+=1)T.multiply(this.localTransforms[y].matrix);T.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var E=this.finalTransform.localOpacity;for(y=0;y<b;y+=1)E*=.01*this.localTransforms[y].opacity;this.finalTransform.localOpacity=E}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var y=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(y.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var b=0,T=y.length;for(b=0;b<T;b+=1)this.localTransforms.push(y[b])}}},globalToLocal:function(y){var b=[];b.push(this.finalTransform);for(var T=!0,C=this.comp;T;)C.finalTransform?(C.data.hasMask&&b.splice(0,0,C.finalTransform),C=C.comp):T=!1;var E,k,D=b.length;for(E=0;E<D;E+=1)k=b[E].mat.applyToPointArray(0,0,0),y=[y[0]-k[0],y[1]-k[1],0];return y},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(m){return this.viewData[m].prop},MaskElement.prototype.renderFrame=function(m){var b,y=this.element.finalTransform.mat,T=this.masksProperties.length;for(b=0;b<T;b+=1)if((this.viewData[b].prop._mdf||m)&&this.drawPath(this.masksProperties[b],this.viewData[b].prop.v,this.viewData[b]),(this.viewData[b].op._mdf||m)&&this.viewData[b].elem.setAttribute("fill-opacity",this.viewData[b].op.v),"n"!==this.masksProperties[b].mode&&(this.viewData[b].invRect&&(this.element.finalTransform.mProp._mdf||m)&&this.viewData[b].invRect.setAttribute("transform",y.getInverseMatrix().to2dCSS()),this.storedData[b].x&&(this.storedData[b].x._mdf||m))){var C=this.storedData[b].expan;this.storedData[b].x.v<0?("erode"!==this.storedData[b].lastOperator&&(this.storedData[b].lastOperator="erode",this.storedData[b].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[b].filterId+")")),C.setAttribute("radius",-this.storedData[b].x.v)):("dilate"!==this.storedData[b].lastOperator&&(this.storedData[b].lastOperator="dilate",this.storedData[b].elem.setAttribute("filter",null)),this.storedData[b].elem.setAttribute("stroke-width",2*this.storedData[b].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var m="M0,0 ";return m+=" h"+this.globalData.compSize.w,m+=" v"+this.globalData.compSize.h,(m+=" h-"+this.globalData.compSize.w)+" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(m,y,b){var C,E,T=" M"+y.v[0][0]+","+y.v[0][1];for(E=y._length,C=1;C<E;C+=1)T+=" C"+y.o[C-1][0]+","+y.o[C-1][1]+" "+y.i[C][0]+","+y.i[C][1]+" "+y.v[C][0]+","+y.v[C][1];if(y.c&&E>1&&(T+=" C"+y.o[C-1][0]+","+y.o[C-1][1]+" "+y.i[0][0]+","+y.i[0][1]+" "+y.v[0][0]+","+y.v[0][1]),b.lastPath!==T){var D="";b.elem&&(y.c&&(D=m.inv?this.solidPath+T:T),b.elem.setAttribute("d",D)),b.lastPath=T}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var m={createFilter:function y(T,C){var E=createNS("filter");return E.setAttribute("id",T),!0!==C&&(E.setAttribute("filterUnits","objectBoundingBox"),E.setAttribute("x","0%"),E.setAttribute("y","0%"),E.setAttribute("width","100%"),E.setAttribute("height","100%")),E},createAlphaToLuminanceFilter:function b(){var T=createNS("feColorMatrix");return T.setAttribute("type","matrix"),T.setAttribute("color-interpolation-filters","sRGB"),T.setAttribute("values","0 0 0 1 0  0 0 0 1 0  0 0 0 1 0  0 0 0 1 1"),T}};return m}(),featureSupport=function(){var m={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(m.maskType=!1),/firefox/i.test(navigator.userAgent)&&(m.svgLumaHidden=!1),m}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(m){var y,k,b="SourceGraphic",T=m.data.ef?m.data.ef.length:0,C=createElementID(),E=filtersFactory.createFilter(C,!0),D=0;for(this.filters=[],y=0;y<T;y+=1){k=null;var R=m.data.ef[y].ty;registeredEffects$1[R]&&(k=new(0,registeredEffects$1[R].effect)(E,m.effectsManager.effectElements[y],m,idPrefix+D,b),b=idPrefix+D,registeredEffects$1[R].countsAsEffect&&(D+=1)),k&&this.filters.push(k)}D&&(m.globalData.defs.appendChild(E),m.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+C+")")),this.filters.length&&m.addRenderableComponent(this)}function registerEffect$1(m,y,b){registeredEffects$1[m]={effect:y,countsAsEffect:b}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(m,y,b){this.assetData=y.getAssetData(m.refId),this.assetData&&this.assetData.sid&&(this.assetData=y.slotManager.getProp(this.assetData)),this.initElement(m,y,b),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(m,y){this.elem=m,this.pos=y}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(m){var y,b=this.filters.length;for(y=0;y<b;y+=1)this.filters[y].renderFrame(m)},SVGEffects.prototype.getEffects=function(m){var y,b=this.filters.length,T=[];for(y=0;y<b;y+=1)this.filters[y].type===m&&T.push(this.filters[y]);return T},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var y=null;if(this.data.td){this.matteMasks={};var b=createNS("g");b.setAttribute("id",this.layerId),b.appendChild(this.layerElement),y=b,this.globalData.defs.appendChild(b)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),y=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var T=createNS("clipPath"),C=createNS("path");C.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var E=createElementID();if(T.setAttribute("id",E),T.appendChild(C),this.globalData.defs.appendChild(T),this.checkMasks()){var D=createNS("g");D.setAttribute("clip-path","url("+getLocationHref()+"#"+E+")"),D.appendChild(this.layerElement),this.transformedElement=D,y?y.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+E+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(y){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[y]){var T,C,E,D,b=this.layerId+"_"+y;if(1===y||3===y){var k=createNS("mask");k.setAttribute("id",b),k.setAttribute("mask-type",3===y?"luminance":"alpha"),(E=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),k.appendChild(E),this.globalData.defs.appendChild(k),!featureSupport.maskType&&1===y&&(k.setAttribute("mask-type","luminance"),T=createElementID(),C=filtersFactory.createFilter(T),this.globalData.defs.appendChild(C),C.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(D=createNS("g")).appendChild(E),k.appendChild(D),D.setAttribute("filter","url("+getLocationHref()+"#"+T+")"))}else if(2===y){var R=createNS("mask");R.setAttribute("id",b),R.setAttribute("mask-type","alpha");var P=createNS("g");R.appendChild(P),T=createElementID(),C=filtersFactory.createFilter(T);var G=createNS("feComponentTransfer");G.setAttribute("in","SourceGraphic"),C.appendChild(G);var Q=createNS("feFuncA");Q.setAttribute("type","table"),Q.setAttribute("tableValues","1.0 0.0"),G.appendChild(Q),this.globalData.defs.appendChild(C);var H=createNS("rect");H.setAttribute("width",this.comp.data.w),H.setAttribute("height",this.comp.data.h),H.setAttribute("x","0"),H.setAttribute("y","0"),H.setAttribute("fill","#ffffff"),H.setAttribute("opacity","0"),P.setAttribute("filter","url("+getLocationHref()+"#"+T+")"),P.appendChild(H),(E=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),P.appendChild(E),featureSupport.maskType||(R.setAttribute("mask-type","luminance"),C.appendChild(filtersFactory.createAlphaToLuminanceFilter()),D=createNS("g"),P.appendChild(H),D.appendChild(this.layerElement),P.appendChild(D)),this.globalData.defs.appendChild(R)}this.matteMasks[y]=b}return this.matteMasks[y]},setMatte:function(y){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+y+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(y){this.hierarchy=y},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(b,T,C){this.initFrame(),this.initBaseData(b,T,C),this.initTransform(b,T,C),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(b){this._mdf=!1,this.prepareRenderableFrame(b),this.prepareProperties(b,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var m=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",m),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(y){var b,T=this.shapeModifiers.length;for(b=0;b<T;b+=1)this.shapeModifiers[b].addShape(y)},isShapeInAnimatedModifiers:function(y){for(var T=this.shapeModifiers.length;0<T;)if(this.shapeModifiers[0].isAnimatedWithShape(y))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var y,b=this.shapes.length;for(y=0;y<b;y+=1)this.shapes[y].sh.reset();for(y=(b=this.shapeModifiers.length)-1;y>=0&&!this.shapeModifiers[y].processShapes(this._isFirstFrame);y-=1);}},searchProcessedElement:function(y){for(var b=this.processedElements,T=0,C=b.length;T<C;){if(b[T].elem===y)return b[T].pos;T+=1}return 0},addProcessedElement:function(y,b){for(var T=this.processedElements,C=T.length;C;)if(T[C-=1].elem===y)return void(T[C].pos=b);T.push(new ProcessedElement(y,b))},prepareFrame:function(y){this.prepareRenderableFrame(y),this.prepareProperties(y,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(m,y,b){this.caches=[],this.styles=[],this.transformers=m,this.lStr="",this.sh=b,this.lvl=y,this._isAnimated=!!b.k;for(var T=0,C=m.length;T<C;){if(m[T].mProps.dynamicProperties.length){this._isAnimated=!0;break}T+=1}}function SVGStyleData(m,y){this.data=m,this.type=m.ty,this.d="",this.lvl=y,this._mdf=!1,this.closed=!0===m.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(m,y,b,T){this.elem=m,this.frameId=-1,this.dataProps=createSizedArray(y.length),this.renderer=b,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",y.length?y.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(T);var C,D,E=y.length||0;for(C=0;C<E;C+=1)D=PropertyFactory.getProp(m,y[C].v,0,0,this),this.k=D.k||this.k,this.dataProps[C]={n:y[C].n,p:D};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(m,y,b){this.initDynamicPropertyContainer(m),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(m,y.o,0,.01,this),this.w=PropertyFactory.getProp(m,y.w,0,null,this),this.d=new DashProperty(m,y.d||{},"svg",this),this.c=PropertyFactory.getProp(m,y.c,1,255,this),this.style=b,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(m,y,b){this.initDynamicPropertyContainer(m),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(m,y.o,0,.01,this),this.c=PropertyFactory.getProp(m,y.c,1,255,this),this.style=b}function SVGNoStyleData(m,y,b){this.initDynamicPropertyContainer(m),this.getValue=this.iterateDynamicProperties,this.style=b}function GradientProperty(m,y,b){this.data=y,this.c=createTypedArray("uint8c",4*y.p);var T=y.k.k[0].s?y.k.k[0].s.length-4*y.p:y.k.k.length-4*y.p;this.o=createTypedArray("float32",T),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=T,this.initDynamicPropertyContainer(b),this.prop=PropertyFactory.getProp(m,y.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(m,y,b){this.initDynamicPropertyContainer(m),this.getValue=this.iterateDynamicProperties,this.initGradientData(m,y,b)}function SVGGradientStrokeStyleData(m,y,b){this.initDynamicPropertyContainer(m),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(m,y.w,0,null,this),this.d=new DashProperty(m,y.d||{},"svg",this),this.initGradientData(m,y,b),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(m,y,b){this.transform={mProps:m,op:y,container:b},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(m){if((this.elem.globalData.frameId!==this.frameId||m)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||m,this._mdf)){var y=0,b=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),y=0;y<b;y+=1)"o"!==this.dataProps[y].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[y].p.v:this.dashArray[y]=this.dataProps[y].p.v:this.dashoffset[0]=this.dataProps[y].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(m,y){for(var b=0,T=this.o.length/2;b<T;){if(Math.abs(m[4*b]-m[4*y+2*b])>.01)return!1;b+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var m=0,y=this.data.k.k.length;m<y;){if(!this.comparePoints(this.data.k.k[m].s,this.data.p))return!1;m+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(m){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||m){var y,T,C,b=4*this.data.p;for(y=0;y<b;y+=1)T=y%4==0?100:255,C=Math.round(this.prop.v[y]*T),this.c[y]!==C&&(this.c[y]=C,this._cmdf=!m);if(this.o.length)for(b=this.prop.v.length,y=4*this.data.p;y<b;y+=1)T=y%2==0?100:1,C=y%2==0?Math.round(100*this.prop.v[y]):this.prop.v[y],this.o[y-4*this.data.p]!==C&&(this.o[y-4*this.data.p]=C,this._omdf=!m);this._mdf=!m}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(m,y,b){this.o=PropertyFactory.getProp(m,y.o,0,.01,this),this.s=PropertyFactory.getProp(m,y.s,1,null,this),this.e=PropertyFactory.getProp(m,y.e,1,null,this),this.h=PropertyFactory.getProp(m,y.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(m,y.a||{k:0},0,degToRads,this),this.g=new GradientProperty(m,y.g,this),this.style=b,this.stops=[],this.setGradientData(b.pElem,y),this.setGradientOpacity(y,b),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(m,y){var b=createElementID(),T=createNS(1===y.t?"linearGradient":"radialGradient");T.setAttribute("id",b),T.setAttribute("spreadMethod","pad"),T.setAttribute("gradientUnits","userSpaceOnUse");var E,D,k,C=[];for(k=4*y.g.p,D=0;D<k;D+=4)E=createNS("stop"),T.appendChild(E),C.push(E);m.setAttribute("gf"===y.ty?"fill":"stroke","url("+getLocationHref()+"#"+b+")"),this.gf=T,this.cst=C},SVGGradientFillStyleData.prototype.setGradientOpacity=function(m,y){if(this.g._hasOpacity&&!this.g._collapsable){var b,T,C,E=createNS("mask"),D=createNS("path");E.appendChild(D);var k=createElementID(),R=createElementID();E.setAttribute("id",R);var P=createNS(1===m.t?"linearGradient":"radialGradient");P.setAttribute("id",k),P.setAttribute("spreadMethod","pad"),P.setAttribute("gradientUnits","userSpaceOnUse"),C=m.g.k.k[0].s?m.g.k.k[0].s.length:m.g.k.k.length;var G=this.stops;for(T=4*m.g.p;T<C;T+=2)(b=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),P.appendChild(b),G.push(b);D.setAttribute("gf"===m.ty?"fill":"stroke","url("+getLocationHref()+"#"+k+")"),"gs"===m.ty&&(D.setAttribute("stroke-linecap",lineCapEnum[m.lc||2]),D.setAttribute("stroke-linejoin",lineJoinEnum[m.lj||2]),1===m.lj&&D.setAttribute("stroke-miterlimit",m.ml)),this.of=P,this.ms=E,this.ost=G,this.maskId=R,y.msElem=D}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(y,b,T,C){if(0===b)return"";var R,E=y.o,D=y.i,k=y.v,P=" M"+C.applyToPointStringified(k[0][0],k[0][1]);for(R=1;R<b;R+=1)P+=" C"+C.applyToPointStringified(E[R-1][0],E[R-1][1])+" "+C.applyToPointStringified(D[R][0],D[R][1])+" "+C.applyToPointStringified(k[R][0],k[R][1]);return T&&b&&(P+=" C"+C.applyToPointStringified(E[R-1][0],E[R-1][1])+" "+C.applyToPointStringified(D[0][0],D[0][1])+" "+C.applyToPointStringified(k[0][0],k[0][1]),P+="z"),P},SVGElementsRenderer=function(){var m=new Matrix,y=new Matrix;function C(Q,H,Z){(Z||H.transform.op._mdf)&&H.transform.container.setAttribute("opacity",H.transform.op.v),(Z||H.transform.mProps._mdf)&&H.transform.container.setAttribute("transform",H.transform.mProps.v.to2dCSS())}function E(){}function D(Q,H,Z){var X,z,fe,q,ne,N,J,n,K,se,Y=H.styles.length,W=H.lvl;for(N=0;N<Y;N+=1){if(q=H.sh._mdf||Z,H.styles[N].lvl<W){for(n=y.reset(),K=W-H.styles[N].lvl,se=H.transformers.length-1;!q&&K>0;)q=H.transformers[se].mProps._mdf||q,K-=1,se-=1;if(q)for(K=W-H.styles[N].lvl,se=H.transformers.length-1;K>0;)n.multiply(H.transformers[se].mProps.v),K-=1,se-=1}else n=m;if(z=(J=H.sh.paths)._length,q){for(fe="",X=0;X<z;X+=1)(ne=J.shapes[X])&&ne._length&&(fe+=buildShapeString(ne,ne._length,ne.c,n));H.caches[N]=fe}else fe=H.caches[N];H.styles[N].d+=!0===Q.hd?"":fe,H.styles[N]._mdf=q||H.styles[N]._mdf}}function k(Q,H,Z){var X=H.style;(H.c._mdf||Z)&&X.pElem.setAttribute("fill","rgb("+bmFloor(H.c.v[0])+","+bmFloor(H.c.v[1])+","+bmFloor(H.c.v[2])+")"),(H.o._mdf||Z)&&X.pElem.setAttribute("fill-opacity",H.o.v)}function R(Q,H,Z){P(Q,H,Z),G(0,H,Z)}function P(Q,H,Z){var W,J,n,K,Fe,X=H.gf,z=H.g._hasOpacity,fe=H.s.v,q=H.e.v;if((H.o._mdf||Z)&&H.style.pElem.setAttribute("gf"===Q.ty?"fill-opacity":"stroke-opacity",H.o.v),H.s._mdf||Z){var N=1===Q.t?"x1":"cx",Y="x1"===N?"y1":"cy";X.setAttribute(N,fe[0]),X.setAttribute(Y,fe[1]),z&&!H.g._collapsable&&(H.of.setAttribute(N,fe[0]),H.of.setAttribute(Y,fe[1]))}if(H.g._cmdf||Z){var se=H.g.c;for(n=(W=H.cst).length,J=0;J<n;J+=1)(K=W[J]).setAttribute("offset",se[4*J]+"%"),K.setAttribute("stop-color","rgb("+se[4*J+1]+","+se[4*J+2]+","+se[4*J+3]+")")}if(z&&(H.g._omdf||Z)){var De=H.g.o;for(n=(W=H.g._collapsable?H.cst:H.ost).length,J=0;J<n;J+=1)K=W[J],H.g._collapsable||K.setAttribute("offset",De[2*J]+"%"),K.setAttribute("stop-opacity",De[2*J+1])}if(1===Q.t)(H.e._mdf||Z)&&(X.setAttribute("x2",q[0]),X.setAttribute("y2",q[1]),z&&!H.g._collapsable&&(H.of.setAttribute("x2",q[0]),H.of.setAttribute("y2",q[1])));else if((H.s._mdf||H.e._mdf||Z)&&(Fe=Math.sqrt(Math.pow(fe[0]-q[0],2)+Math.pow(fe[1]-q[1],2)),X.setAttribute("r",Fe),z&&!H.g._collapsable&&H.of.setAttribute("r",Fe)),H.e._mdf||H.h._mdf||H.a._mdf||Z){Fe||(Fe=Math.sqrt(Math.pow(fe[0]-q[0],2)+Math.pow(fe[1]-q[1],2)));var _e=Math.atan2(q[1]-fe[1],q[0]-fe[0]),ke=H.h.v;ke>=1?ke=.99:ke<=-1&&(ke=-.99);var be=Fe*ke,Ve=Math.cos(_e+H.a.v)*be+fe[0],Ie=Math.sin(_e+H.a.v)*be+fe[1];X.setAttribute("fx",Ve),X.setAttribute("fy",Ie),z&&!H.g._collapsable&&(H.of.setAttribute("fx",Ve),H.of.setAttribute("fy",Ie))}}function G(Q,H,Z){var X=H.style,z=H.d;z&&(z._mdf||Z)&&z.dashStr&&(X.pElem.setAttribute("stroke-dasharray",z.dashStr),X.pElem.setAttribute("stroke-dashoffset",z.dashoffset[0])),H.c&&(H.c._mdf||Z)&&X.pElem.setAttribute("stroke","rgb("+bmFloor(H.c.v[0])+","+bmFloor(H.c.v[1])+","+bmFloor(H.c.v[2])+")"),(H.o._mdf||Z)&&X.pElem.setAttribute("stroke-opacity",H.o.v),(H.w._mdf||Z)&&(X.pElem.setAttribute("stroke-width",H.w.v),X.msElem&&X.msElem.setAttribute("stroke-width",H.w.v))}return{createRenderFunction:function T(Q){switch(Q.ty){case"fl":return k;case"gf":return P;case"gs":return R;case"st":return G;case"sh":case"el":case"rc":case"sr":return D;case"tr":return C;case"no":return E;default:return null}}}}();function SVGShapeElement(m,y,b){this.shapes=[],this.shapesData=m.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(m,y,b),this.prevViewData=[]}function LetterProps(m,y,b,T,C,E){this.o=m,this.sw=y,this.sc=b,this.fc=T,this.m=C,this.p=E,this._mdf={o:!0,sw:!!y,sc:!!b,fc:!!T,m:!0,p:!0}}function TextProperty(m,y){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,y.d&&y.d.sid&&(y.d=m.globalData.slotManager.getProp(y.d)),this.data=y,this.elem=m,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var m,b,T,E,y=this.shapes.length,C=this.stylesList.length,D=[],k=!1;for(T=0;T<C;T+=1){for(E=this.stylesList[T],k=!1,D.length=0,m=0;m<y;m+=1)-1!==(b=this.shapes[m]).styles.indexOf(E)&&(D.push(b),k=b._isAnimated||k);D.length>1&&k&&this.setShapesAsAnimated(D)}},SVGShapeElement.prototype.setShapesAsAnimated=function(m){var y,b=m.length;for(y=0;y<b;y+=1)m[y].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(m,y){var b,T=new SVGStyleData(m,y),C=T.pElem;return"st"===m.ty?b=new SVGStrokeStyleData(this,m,T):"fl"===m.ty?b=new SVGFillStyleData(this,m,T):"gf"===m.ty||"gs"===m.ty?(b=new("gf"===m.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,m,T),this.globalData.defs.appendChild(b.gf),b.maskId&&(this.globalData.defs.appendChild(b.ms),this.globalData.defs.appendChild(b.of),C.setAttribute("mask","url("+getLocationHref()+"#"+b.maskId+")"))):"no"===m.ty&&(b=new SVGNoStyleData(this,m,T)),("st"===m.ty||"gs"===m.ty)&&(C.setAttribute("stroke-linecap",lineCapEnum[m.lc||2]),C.setAttribute("stroke-linejoin",lineJoinEnum[m.lj||2]),C.setAttribute("fill-opacity","0"),1===m.lj&&C.setAttribute("stroke-miterlimit",m.ml)),2===m.r&&C.setAttribute("fill-rule","evenodd"),m.ln&&C.setAttribute("id",m.ln),m.cl&&C.setAttribute("class",m.cl),m.bm&&(C.style["mix-blend-mode"]=getBlendMode(m.bm)),this.stylesList.push(T),this.addToAnimatedContents(m,b),b},SVGShapeElement.prototype.createGroupElement=function(m){var y=new ShapeGroupData;return m.ln&&y.gr.setAttribute("id",m.ln),m.cl&&y.gr.setAttribute("class",m.cl),m.bm&&(y.gr.style["mix-blend-mode"]=getBlendMode(m.bm)),y},SVGShapeElement.prototype.createTransformElement=function(m,y){var b=TransformPropertyFactory.getTransformProperty(this,m,this),T=new SVGTransformData(b,b.o,y);return this.addToAnimatedContents(m,T),T},SVGShapeElement.prototype.createShapeElement=function(m,y,b){var T=4;"rc"===m.ty?T=5:"el"===m.ty?T=6:"sr"===m.ty&&(T=7);var E=new SVGShapeData(y,b,ShapePropertyFactory.getShapeProp(this,m,T,this));return this.shapes.push(E),this.addShapeToModifiers(E),this.addToAnimatedContents(m,E),E},SVGShapeElement.prototype.addToAnimatedContents=function(m,y){for(var b=0,T=this.animatedContents.length;b<T;){if(this.animatedContents[b].element===y)return;b+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(m),element:y,data:m})},SVGShapeElement.prototype.setElementStyles=function(m){var b,y=m.styles,T=this.stylesList.length;for(b=0;b<T;b+=1)this.stylesList[b].closed||y.push(this.stylesList[b])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var m,y=this.itemsData.length;for(m=0;m<y;m+=1)this.prevViewData[m]=this.itemsData[m];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),y=this.dynamicProperties.length,m=0;m<y;m+=1)this.dynamicProperties[m].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(m,y,b,T,C,E,D){var R,G,Q,z,fe,k=[].concat(E),P=m.length-1,H=[],Z=[];for(R=P;R>=0;R-=1){if((fe=this.searchProcessedElement(m[R]))?y[R]=b[fe-1]:m[R]._render=D,"fl"===m[R].ty||"st"===m[R].ty||"gf"===m[R].ty||"gs"===m[R].ty||"no"===m[R].ty)fe?y[R].style.closed=!1:y[R]=this.createStyleElement(m[R],C),m[R]._render&&y[R].style.pElem.parentNode!==T&&T.appendChild(y[R].style.pElem),H.push(y[R].style);else if("gr"===m[R].ty){if(fe)for(Q=y[R].it.length,G=0;G<Q;G+=1)y[R].prevViewData[G]=y[R].it[G];else y[R]=this.createGroupElement(m[R]);this.searchShapes(m[R].it,y[R].it,y[R].prevViewData,y[R].gr,C+1,k,D),m[R]._render&&y[R].gr.parentNode!==T&&T.appendChild(y[R].gr)}else"tr"===m[R].ty?(fe||(y[R]=this.createTransformElement(m[R],T)),k.push(y[R].transform)):"sh"===m[R].ty||"rc"===m[R].ty||"el"===m[R].ty||"sr"===m[R].ty?(fe||(y[R]=this.createShapeElement(m[R],k,C)),this.setElementStyles(y[R])):"tm"===m[R].ty||"rd"===m[R].ty||"ms"===m[R].ty||"pb"===m[R].ty||"zz"===m[R].ty||"op"===m[R].ty?(fe?(z=y[R]).closed=!1:((z=ShapeModifiers.getModifier(m[R].ty)).init(this,m[R]),y[R]=z,this.shapeModifiers.push(z)),Z.push(z)):"rp"===m[R].ty&&(fe?(z=y[R]).closed=!0:(z=ShapeModifiers.getModifier(m[R].ty),y[R]=z,z.init(this,m,R,y),this.shapeModifiers.push(z),D=!1),Z.push(z));this.addProcessedElement(m[R],R+1)}for(P=H.length,R=0;R<P;R+=1)H[R].closed=!0;for(P=Z.length,R=0;R<P;R+=1)Z[R].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var m,y=this.stylesList.length;for(m=0;m<y;m+=1)this.stylesList[m].reset();for(this.renderShape(),m=0;m<y;m+=1)(this.stylesList[m]._mdf||this._isFirstFrame)&&(this.stylesList[m].msElem&&(this.stylesList[m].msElem.setAttribute("d",this.stylesList[m].d),this.stylesList[m].d="M0 0"+this.stylesList[m].d),this.stylesList[m].pElem.setAttribute("d",this.stylesList[m].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var m,b,y=this.animatedContents.length;for(m=0;m<y;m+=1)b=this.animatedContents[m],(this._isFirstFrame||b.element._isAnimated)&&!0!==b.data&&b.fn(b.data,b.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(m,y,b,T,C,E){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var D=!1;return this.o!==m&&(this.o=m,this._mdf.o=!0,D=!0),this.sw!==y&&(this.sw=y,this._mdf.sw=!0,D=!0),this.sc!==b&&(this.sc=b,this._mdf.sc=!0,D=!0),this.fc!==T&&(this.fc=T,this._mdf.fc=!0,D=!0),this.m!==C&&(this.m=C,this._mdf.m=!0,D=!0),E.length&&(this.p[0]!==E[0]||this.p[1]!==E[1]||this.p[4]!==E[4]||this.p[5]!==E[5]||this.p[12]!==E[12]||this.p[13]!==E[13])&&(this.p=E,this._mdf.p=!0,D=!0),D},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(m,y){for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(m[b]=y[b]);return m},TextProperty.prototype.setCurrentData=function(m){m.__complete||this.completeTextData(m),this.currentData=m,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(m){this.effectsSequence.push(m),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(m){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||m){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var y=this.currentData,b=this.keysIndex;if(this.lock)return void this.setCurrentData(this.currentData);this.lock=!0,this._mdf=!1;var T,C=this.effectsSequence.length,E=m||this.data.d.k[this.keysIndex].s;for(T=0;T<C;T+=1)E=this.effectsSequence[T](b!==this.keysIndex?E:this.currentData,E.t);y!==E&&this.setCurrentData(E),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var m=this.data.d.k,y=this.elem.comp.renderedFrame,b=0,T=m.length;b<=T-1&&!(b===T-1||m[b+1].t>y);)b+=1;return this.keysIndex!==b&&(this.keysIndex=b),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(m){for(var C,E,y=[],b=0,T=m.length,D=!1,k=!1,R="";b<T;)D=k,k=!1,C=m.charCodeAt(b),R=m.charAt(b),FontManager.isCombinedCharacter(C)?D=!0:C>=55296&&C<=56319?FontManager.isRegionalFlag(m,b)?R=m.substr(b,14):(E=m.charCodeAt(b+1))>=56320&&E<=57343&&(FontManager.isModifier(C,E)?(R=m.substr(b,2),D=!0):R=FontManager.isFlagEmoji(m.substr(b,4))?m.substr(b,4):m.substr(b,2)):C>56319?(E=m.charCodeAt(b+1),FontManager.isVariationSelector(C)&&(D=!0)):FontManager.isZeroWidthJoiner(C)&&(D=!0,k=!0),D?(y[y.length-1]+=R,D=!1):y.push(R),b+=R.length;return y},TextProperty.prototype.completeTextData=function(m){m.__complete=!0;var C,E,D,R,fe,q,N,y=this.elem.globalData.fontManager,b=this.data,T=[],k=0,P=b.m.g,G=0,Q=0,H=0,Z=[],X=0,z=0,ne=y.getFontByName(m.f),Y=0,W=getFontProperties(ne);m.fWeight=W.weight,m.fStyle=W.style,m.finalSize=m.s,m.finalText=this.buildFinalText(m.t),E=m.finalText.length,m.finalLineHeight=m.lh;var n,J=m.tr/1e3*m.finalSize;if(m.sz)for(var Fe,_e,K=!0,se=m.sz[0],De=m.sz[1];K;){Fe=0,X=0,E=(_e=this.buildFinalText(m.t)).length,J=m.tr/1e3*m.finalSize;var ke=-1;for(C=0;C<E;C+=1)n=_e[C].charCodeAt(0),D=!1," "===_e[C]?ke=C:(13===n||3===n)&&(X=0,D=!0,Fe+=m.finalLineHeight||1.2*m.finalSize),y.chars?(N=y.getCharData(_e[C],ne.fStyle,ne.fFamily),Y=D?0:N.w*m.finalSize/100):Y=y.measureText(_e[C],m.f,m.finalSize),X+Y>se&&" "!==_e[C]?(-1===ke?E+=1:C=ke,Fe+=m.finalLineHeight||1.2*m.finalSize,_e.splice(C,ke===C?1:0,"\r"),ke=-1,X=0):(X+=Y,X+=J);Fe+=ne.ascent*m.finalSize/100,this.canResize&&m.finalSize>this.minimumFontSize&&De<Fe?(m.finalSize-=1,m.finalLineHeight=m.finalSize*m.lh/m.s):(m.finalText=_e,E=m.finalText.length,K=!1)}X=-J,Y=0;var Ve,be=0;for(C=0;C<E;C+=1)if(D=!1,13===(n=(Ve=m.finalText[C]).charCodeAt(0))||3===n?(be=0,Z.push(X),z=X>z?X:z,X=-2*J,R="",D=!0,H+=1):R=Ve,y.chars?(N=y.getCharData(Ve,ne.fStyle,y.getFontByName(m.f).fFamily),Y=D?0:N.w*m.finalSize/100):Y=y.measureText(R,m.f,m.finalSize)," "===Ve?be+=Y+J:(X+=Y+J+be,be=0),T.push({l:Y,an:Y,add:G,n:D,anIndexes:[],val:R,line:H,animatorJustifyOffset:0}),2==P){if(G+=Y,""===R||" "===R||C===E-1){for((""===R||" "===R)&&(G-=Y);Q<=C;)T[Q].an=G,T[Q].ind=k,T[Q].extra=Y,Q+=1;k+=1,G=0}}else if(3==P){if(G+=Y,""===R||C===E-1){for(""===R&&(G-=Y);Q<=C;)T[Q].an=G,T[Q].ind=k,T[Q].extra=Y,Q+=1;G=0,k+=1}}else T[k].ind=k,T[k].extra=0,k+=1;if(m.l=T,z=X>z?X:z,Z.push(X),m.sz)m.boxWidth=m.sz[0],m.justifyOffset=0;else switch(m.boxWidth=z,m.j){case 1:m.justifyOffset=-m.boxWidth;break;case 2:m.justifyOffset=-m.boxWidth/2;break;default:m.justifyOffset=0}m.lineWidths=Z;var Se,de,Ie=b.a;q=Ie.length;var le,xe,We=[];for(fe=0;fe<q;fe+=1){for((Se=Ie[fe]).a.sc&&(m.strokeColorAnim=!0),Se.a.sw&&(m.strokeWidthAnim=!0),(Se.a.fc||Se.a.fh||Se.a.fs||Se.a.fb)&&(m.fillColorAnim=!0),xe=0,le=Se.s.b,C=0;C<E;C+=1)(de=T[C]).anIndexes[fe]=xe,(1==le&&""!==de.val||2==le&&""!==de.val&&" "!==de.val||3==le&&(de.n||" "==de.val||C==E-1)||4==le&&(de.n||C==E-1))&&(1===Se.s.rn&&We.push(xe),xe+=1);b.a[fe].s.totalChars=xe;var ut,st=-1;if(1===Se.s.rn)for(C=0;C<E;C+=1)st!=(de=T[C]).anIndexes[fe]&&(st=de.anIndexes[fe],ut=We.splice(Math.floor(Math.random()*We.length),1)[0]),de.anIndexes[fe]=ut}m.yOffset=m.finalLineHeight||1.2*m.finalSize,m.ls=m.ls||0,m.ascent=ne.ascent*m.finalSize/100},TextProperty.prototype.updateDocumentData=function(m,y){var b=this.copyData({},this.data.d.k[y=void 0===y?this.keysIndex:y].s);b=this.copyData(b,m),this.data.d.k[y].s=b,this.recalculate(y),this.setCurrentData(b),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(m){var y=this.data.d.k[m].s;y.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(y)},TextProperty.prototype.canResizeFont=function(m){this.canResize=m,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(m){this.minimumFontSize=Math.floor(m)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var m=Math.max,y=Math.min,b=Math.floor;function T(E,D){this._currentTextLength=-1,this.k=!1,this.data=D,this.elem=E,this.comp=E.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(E),this.s=PropertyFactory.getProp(E,D.s||{k:0},0,0,this),this.e="e"in D?PropertyFactory.getProp(E,D.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(E,D.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(E,D.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(E,D.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(E,D.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(E,D.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return T.prototype={getMult:function(D){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var k=0,R=0,P=1,G=1;this.ne.v>0?k=this.ne.v/100:R=-this.ne.v/100,this.xe.v>0?P=1-this.xe.v/100:G=1+this.xe.v/100;var Q=BezierFactory.getBezierEasing(k,R,P,G).get,H=0,Z=this.finalS,X=this.finalE,z=this.data.sh;if(2===z)H=Q(H=X===Z?D>=X?1:0:m(0,y(.5/(X-Z)+(D-Z)/(X-Z),1)));else if(3===z)H=Q(H=X===Z?D>=X?0:1:1-m(0,y(.5/(X-Z)+(D-Z)/(X-Z),1)));else if(4===z)X===Z?H=0:(H=m(0,y(.5/(X-Z)+(D-Z)/(X-Z),1)))<.5?H*=2:H=1-2*(H-.5),H=Q(H);else if(5===z){if(X===Z)H=0;else{var fe=X-Z,q=-fe/2+(D=y(m(0,D+.5-Z),X-Z)),ne=fe/2;H=Math.sqrt(1-q*q/(ne*ne))}H=Q(H)}else 6===z?(X===Z?H=0:(D=y(m(0,D+.5-Z),X-Z),H=(1+Math.cos(Math.PI+2*Math.PI*D/(X-Z)))/2),H=Q(H)):(D>=b(Z)&&(H=m(0,y(D-Z<0?y(X,1)-(Z-D):X-D,1))),H=Q(H));if(100!==this.sm.v){var N=.01*this.sm.v;0===N&&(N=1e-8);var Y=.5-.5*N;H<Y?H=0:(H=(H-Y)/N)>1&&(H=1)}return H*this.a.v},getValue:function(D){this.iterateDynamicProperties(),this._mdf=D||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,D&&2===this.data.r&&(this.e.v=this._currentTextLength);var k=2===this.data.r?1:100/this.data.totalChars,R=this.o.v/k,P=this.s.v/k+R,G=this.e.v/k+R;if(P>G){var Q=P;P=G,G=Q}this.finalS=P,this.finalE=G}},extendPrototype([DynamicPropertyContainer],T),{getTextSelectorProp:function C(E,D,k){return new T(E,D,k)}}}();function TextAnimatorDataProperty(m,y,b){var T={propType:!1},C=PropertyFactory.getProp,E=y.a;this.a={r:E.r?C(m,E.r,0,degToRads,b):T,rx:E.rx?C(m,E.rx,0,degToRads,b):T,ry:E.ry?C(m,E.ry,0,degToRads,b):T,sk:E.sk?C(m,E.sk,0,degToRads,b):T,sa:E.sa?C(m,E.sa,0,degToRads,b):T,s:E.s?C(m,E.s,1,.01,b):T,a:E.a?C(m,E.a,1,0,b):T,o:E.o?C(m,E.o,0,.01,b):T,p:E.p?C(m,E.p,1,0,b):T,sw:E.sw?C(m,E.sw,0,0,b):T,sc:E.sc?C(m,E.sc,1,0,b):T,fc:E.fc?C(m,E.fc,1,0,b):T,fh:E.fh?C(m,E.fh,0,0,b):T,fs:E.fs?C(m,E.fs,0,.01,b):T,fb:E.fb?C(m,E.fb,0,.01,b):T,t:E.t?C(m,E.t,0,0,b):T},this.s=TextSelectorProp.getTextSelectorProp(m,y.s,b),this.s.t=y.s.t}function TextAnimatorProperty(m,y,b){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=m,this._renderType=y,this._elem=b,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(b)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var m,y=this._textData.a.length,T=PropertyFactory.getProp;for(m=0;m<y;m+=1)this._animatorsData[m]=new TextAnimatorDataProperty(this._elem,this._textData.a[m],this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:T(this._elem,this._textData.p.a,0,0,this),f:T(this._elem,this._textData.p.f,0,0,this),l:T(this._elem,this._textData.p.l,0,0,this),r:T(this._elem,this._textData.p.r,0,0,this),p:T(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=T(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(m,y){if(this.lettersChangedFlag=y,this._mdf||this._isFirstFrame||y||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var R,P,G,Q,Z,X,z,fe,q,ne,N,Y,W,J,n,K,se,Fe,b=this._moreOptions.alignment.v,T=this._animatorsData,C=this._textData,E=this.mHelper,D=this._renderType,k=this.renderedLetters.length,H=m.l;if(this._hasMaskedPath){if(Fe=this._pathData.m,!this._pathData.n||this._pathData._mdf){var ke,_e=Fe.v;for(this._pathData.r.v&&(_e=_e.reverse()),Z={tLength:0,segments:[]},Q=_e._length-1,K=0,G=0;G<Q;G+=1)ke=bez.buildBezierData(_e.v[G],_e.v[G+1],[_e.o[G][0]-_e.v[G][0],_e.o[G][1]-_e.v[G][1]],[_e.i[G+1][0]-_e.v[G+1][0],_e.i[G+1][1]-_e.v[G+1][1]]),Z.tLength+=ke.segmentLength,Z.segments.push(ke),K+=ke.segmentLength;G=Q,Fe.v.c&&(ke=bez.buildBezierData(_e.v[G],_e.v[0],[_e.o[G][0]-_e.v[G][0],_e.o[G][1]-_e.v[G][1]],[_e.i[0][0]-_e.v[0][0],_e.i[0][1]-_e.v[0][1]]),Z.tLength+=ke.segmentLength,Z.segments.push(ke),K+=ke.segmentLength),this._pathData.pi=Z}if(N=0,ne=1,fe=0,q=!0,J=(Z=this._pathData.pi).segments,(X=this._pathData.f.v)<0&&Fe.v.c)for(Z.tLength<Math.abs(X)&&(X=-Math.abs(X)%Z.tLength),ne=(W=J[N=J.length-1].points).length-1;X<0;)X+=W[ne].partialLength,(ne-=1)<0&&(ne=(W=J[N-=1].points).length-1);Y=(W=J[N].points)[ne-1],n=(z=W[ne]).partialLength}Q=H.length,R=0,P=0;var Ie,de,le,xe,be=1.2*m.finalSize*.714,Ve=!0;le=T.length;var We,ut,Ae,ye,Dt,qe,ze,Ge,dt,Dn,wt,Hn,Kt,st=-1,Re=X,Qe=N,vt=ne,Nt=-1,Gt="",An=this.defaultPropsArray;if(2===m.j||1===m.j){var Ot=0,Vt=0,Fn=2===m.j?-.5:-1,kn=0,$n=!0;for(G=0;G<Q;G+=1)if(H[G].n){for(Ot&&(Ot+=Vt);kn<G;)H[kn].animatorJustifyOffset=Ot,kn+=1;Ot=0,$n=!0}else{for(de=0;de<le;de+=1)(Ie=T[de].a).t.propType&&($n&&2===m.j&&(Vt+=Ie.t.v*Fn),Ot+=(We=T[de].s.getMult(H[G].anIndexes[de],C.a[de].s.totalChars)).length?Ie.t.v*We[0]*Fn:Ie.t.v*We*Fn);$n=!1}for(Ot&&(Ot+=Vt);kn<G;)H[kn].animatorJustifyOffset=Ot,kn+=1}for(G=0;G<Q;G+=1){if(E.reset(),Dt=1,H[G].n)R=0,P+=m.yOffset,P+=Ve?1:0,X=Re,Ve=!1,this._hasMaskedPath&&(Y=(W=J[N=Qe].points)[(ne=vt)-1],n=(z=W[ne]).partialLength,fe=0),Gt="",Hn="",Dn="",Kt="",An=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Nt!==H[G].line){switch(m.j){case 1:X+=K-m.lineWidths[H[G].line];break;case 2:X+=(K-m.lineWidths[H[G].line])/2}Nt=H[G].line}st!==H[G].ind&&(H[st]&&(X+=H[st].extra),X+=H[G].an/2,st=H[G].ind),X+=b[0]*H[G].an*.005;var Ii=0;for(de=0;de<le;de+=1)(Ie=T[de].a).p.propType&&(Ii+=(We=T[de].s.getMult(H[G].anIndexes[de],C.a[de].s.totalChars)).length?Ie.p.v[0]*We[0]:Ie.p.v[0]*We),Ie.a.propType&&(Ii+=(We=T[de].s.getMult(H[G].anIndexes[de],C.a[de].s.totalChars)).length?Ie.a.v[0]*We[0]:Ie.a.v[0]*We);for(q=!0,this._pathData.a.v&&(X=.5*H[0].an+(K-this._pathData.f.v-.5*H[0].an-.5*H[H.length-1].an)*st/(Q-1),X+=this._pathData.f.v);q;)fe+n>=X+Ii||!W?(Ae=Y.point[0]+(z.point[0]-Y.point[0])*(se=(X+Ii-fe)/z.partialLength),ye=Y.point[1]+(z.point[1]-Y.point[1])*se,E.translate(-b[0]*H[G].an*.005,-b[1]*be*.01),q=!1):W&&(fe+=z.partialLength,(ne+=1)>=W.length&&(ne=0,J[N+=1]?W=J[N].points:Fe.v.c?(ne=0,W=J[N=0].points):(fe-=z.partialLength,W=null)),W&&(Y=z,n=(z=W[ne]).partialLength));E.translate(-(ut=H[G].an/2-H[G].add),0,0)}else E.translate(-(ut=H[G].an/2-H[G].add),0,0),E.translate(-b[0]*H[G].an*.005,-b[1]*be*.01,0);for(de=0;de<le;de+=1)(Ie=T[de].a).t.propType&&(We=T[de].s.getMult(H[G].anIndexes[de],C.a[de].s.totalChars),(0!==R||0!==m.j)&&(this._hasMaskedPath?X+=We.length?Ie.t.v*We[0]:Ie.t.v*We:R+=We.length?Ie.t.v*We[0]:Ie.t.v*We));for(m.strokeWidthAnim&&(ze=m.sw||0),m.strokeColorAnim&&(qe=m.sc?[m.sc[0],m.sc[1],m.sc[2]]:[0,0,0]),m.fillColorAnim&&m.fc&&(Ge=[m.fc[0],m.fc[1],m.fc[2]]),de=0;de<le;de+=1)(Ie=T[de].a).a.propType&&((We=T[de].s.getMult(H[G].anIndexes[de],C.a[de].s.totalChars)).length?E.translate(-Ie.a.v[0]*We[0],-Ie.a.v[1]*We[1],Ie.a.v[2]*We[2]):E.translate(-Ie.a.v[0]*We,-Ie.a.v[1]*We,Ie.a.v[2]*We));for(de=0;de<le;de+=1)(Ie=T[de].a).s.propType&&((We=T[de].s.getMult(H[G].anIndexes[de],C.a[de].s.totalChars)).length?E.scale(1+(Ie.s.v[0]-1)*We[0],1+(Ie.s.v[1]-1)*We[1],1):E.scale(1+(Ie.s.v[0]-1)*We,1+(Ie.s.v[1]-1)*We,1));for(de=0;de<le;de+=1){if(Ie=T[de].a,We=T[de].s.getMult(H[G].anIndexes[de],C.a[de].s.totalChars),Ie.sk.propType&&(We.length?E.skewFromAxis(-Ie.sk.v*We[0],Ie.sa.v*We[1]):E.skewFromAxis(-Ie.sk.v*We,Ie.sa.v*We)),Ie.r.propType&&E.rotateZ(We.length?-Ie.r.v*We[2]:-Ie.r.v*We),Ie.ry.propType&&E.rotateY(We.length?Ie.ry.v*We[1]:Ie.ry.v*We),Ie.rx.propType&&E.rotateX(We.length?Ie.rx.v*We[0]:Ie.rx.v*We),Ie.o.propType&&(Dt+=We.length?(Ie.o.v*We[0]-Dt)*We[0]:(Ie.o.v*We-Dt)*We),m.strokeWidthAnim&&Ie.sw.propType&&(ze+=We.length?Ie.sw.v*We[0]:Ie.sw.v*We),m.strokeColorAnim&&Ie.sc.propType)for(dt=0;dt<3;dt+=1)qe[dt]+=We.length?(Ie.sc.v[dt]-qe[dt])*We[0]:(Ie.sc.v[dt]-qe[dt])*We;if(m.fillColorAnim&&m.fc){if(Ie.fc.propType)for(dt=0;dt<3;dt+=1)Ge[dt]+=We.length?(Ie.fc.v[dt]-Ge[dt])*We[0]:(Ie.fc.v[dt]-Ge[dt])*We;Ie.fh.propType&&(Ge=addHueToRGB(Ge,We.length?Ie.fh.v*We[0]:Ie.fh.v*We)),Ie.fs.propType&&(Ge=addSaturationToRGB(Ge,We.length?Ie.fs.v*We[0]:Ie.fs.v*We)),Ie.fb.propType&&(Ge=addBrightnessToRGB(Ge,We.length?Ie.fb.v*We[0]:Ie.fb.v*We))}}for(de=0;de<le;de+=1)(Ie=T[de].a).p.propType&&(We=T[de].s.getMult(H[G].anIndexes[de],C.a[de].s.totalChars),this._hasMaskedPath?We.length?E.translate(0,Ie.p.v[1]*We[0],-Ie.p.v[2]*We[1]):E.translate(0,Ie.p.v[1]*We,-Ie.p.v[2]*We):We.length?E.translate(Ie.p.v[0]*We[0],Ie.p.v[1]*We[1],-Ie.p.v[2]*We[2]):E.translate(Ie.p.v[0]*We,Ie.p.v[1]*We,-Ie.p.v[2]*We));if(m.strokeWidthAnim&&(Dn=ze<0?0:ze),m.strokeColorAnim&&(wt="rgb("+Math.round(255*qe[0])+","+Math.round(255*qe[1])+","+Math.round(255*qe[2])+")"),m.fillColorAnim&&m.fc&&(Hn="rgb("+Math.round(255*Ge[0])+","+Math.round(255*Ge[1])+","+Math.round(255*Ge[2])+")"),this._hasMaskedPath){if(E.translate(0,-m.ls),E.translate(0,b[1]*be*.01+P,0),this._pathData.p.v){var Ni=180*Math.atan((z.point[1]-Y.point[1])/(z.point[0]-Y.point[0]))/Math.PI;z.point[0]<Y.point[0]&&(Ni+=180),E.rotate(-Ni*Math.PI/180)}E.translate(Ae,ye,0),X-=b[0]*H[G].an*.005,H[G+1]&&st!==H[G+1].ind&&(X+=H[G].an/2,X+=.001*m.tr*m.finalSize)}else{switch(E.translate(R,P,0),m.ps&&E.translate(m.ps[0],m.ps[1]+m.ascent,0),m.j){case 1:E.translate(H[G].animatorJustifyOffset+m.justifyOffset+(m.boxWidth-m.lineWidths[H[G].line]),0,0);break;case 2:E.translate(H[G].animatorJustifyOffset+m.justifyOffset+(m.boxWidth-m.lineWidths[H[G].line])/2,0,0)}E.translate(0,-m.ls),E.translate(ut,0,0),E.translate(b[0]*H[G].an*.005,b[1]*be*.01,0),R+=H[G].l+.001*m.tr*m.finalSize}"html"===D?Gt=E.toCSS():"svg"===D?Gt=E.to2dCSS():An=[E.props[0],E.props[1],E.props[2],E.props[3],E.props[4],E.props[5],E.props[6],E.props[7],E.props[8],E.props[9],E.props[10],E.props[11],E.props[12],E.props[13],E.props[14],E.props[15]],Kt=Dt}k<=G?(xe=new LetterProps(Kt,Dn,wt,Hn,Gt,An),this.renderedLetters.push(xe),k+=1,this.lettersChangedFlag=!0):this.lettersChangedFlag=(xe=this.renderedLetters[G]).update(Kt,Dn,wt,Hn,Gt,An)||this.lettersChangedFlag}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(m,y,b){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(m,y,b),this.textProperty=new TextProperty(this,m.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(m.t,this.renderType,this),this.initTransform(m,y,b),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(m){this._mdf=!1,this.prepareRenderableFrame(m),this.prepareProperties(m,this.isInRange)},ITextElement.prototype.createPathShape=function(m,y){var b,C,T=y.length,E="";for(b=0;b<T;b+=1)"sh"===y[b].ty&&(E+=buildShapeString(C=y[b].ks.k,C.i.length,!0,m));return E},ITextElement.prototype.updateDocumentData=function(m,y){this.textProperty.updateDocumentData(m,y)},ITextElement.prototype.canResizeFont=function(m){this.textProperty.canResizeFont(m)},ITextElement.prototype.setMinimumFontSize=function(m){this.textProperty.setMinimumFontSize(m)},ITextElement.prototype.applyTextPropertiesToMatrix=function(m,y,b,T,C){switch(m.ps&&y.translate(m.ps[0],m.ps[1]+m.ascent,0),y.translate(0,-m.ls,0),m.j){case 1:y.translate(m.justifyOffset+(m.boxWidth-m.lineWidths[b]),0,0);break;case 2:y.translate(m.justifyOffset+(m.boxWidth-m.lineWidths[b])/2,0,0)}y.translate(T,C,0)},ITextElement.prototype.buildColor=function(m){return"rgb("+Math.round(255*m[0])+","+Math.round(255*m[1])+","+Math.round(255*m[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(m,y,b){this.textSpans=[],this.renderType="svg",this.initElement(m,y,b)}function ISolidElement(m,y,b){this.initElement(m,y,b)}function NullElement(m,y,b){this.initFrame(),this.initBaseData(m,y,b),this.initFrame(),this.initTransform(m,y,b),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(m,y,b){this.layers=m.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(m,y,b),this.tm=m.tm?PropertyFactory.getProp(this,m.tm,0,y.frameRate,this):{_placeholder:!0}}function SVGRenderer(m,y){this.animationItem=m,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var b="";if(y&&y.title){var T=createNS("title"),C=createElementID();T.setAttribute("id",C),T.textContent=y.title,this.svgElement.appendChild(T),b+=C}if(y&&y.description){var E=createNS("desc"),D=createElementID();E.setAttribute("id",D),E.textContent=y.description,this.svgElement.appendChild(E),b+=" "+D}b&&this.svgElement.setAttribute("aria-labelledby",b);var k=createNS("defs");this.svgElement.appendChild(k);var R=createNS("g");this.svgElement.appendChild(R),this.layerElement=R,this.renderConfig={preserveAspectRatio:y&&y.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:y&&y.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:y&&y.contentVisibility||"visible",progressiveLoad:y&&y.progressiveLoad||!1,hideOnTransparent:!(y&&!1===y.hideOnTransparent),viewBoxOnly:y&&y.viewBoxOnly||!1,viewBoxSize:y&&y.viewBoxSize||!1,className:y&&y.className||"",id:y&&y.id||"",focusable:y&&y.focusable,filterSize:{width:y&&y.filterSize&&y.filterSize.width||"100%",height:y&&y.filterSize&&y.filterSize.height||"100%",x:y&&y.filterSize&&y.filterSize.x||"0%",y:y&&y.filterSize&&y.filterSize.y||"0%"},width:y&&y.width,height:y&&y.height,runExpressions:!y||void 0===y.runExpressions||y.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:k,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(m){for(var y=0,b=m.length,T=[],C="";y<b;)"\r"===m[y]||"\x03"===m[y]?(T.push(C),C=""):C+=m[y],y+=1;return T.push(C),T},SVGTextLottieElement.prototype.buildShapeData=function(m,y){if(m.shapes&&m.shapes.length){var b=m.shapes[0];if(b.it){var T=b.it[b.it.length-1];T.s&&(T.s.k[0]=y,T.s.k[1]=y)}}return m},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var m,y,b=this.textProperty.currentData;this.renderedLetters=createSizedArray(b?b.l.length:0),this.layerElement.setAttribute("fill",b.fc?this.buildColor(b.fc):"rgba(0,0,0,0)"),b.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(b.sc)),this.layerElement.setAttribute("stroke-width",b.sw)),this.layerElement.setAttribute("font-size",b.finalSize);var T=this.globalData.fontManager.getFontByName(b.f);if(T.fClass)this.layerElement.setAttribute("class",T.fClass);else{this.layerElement.setAttribute("font-family",T.fFamily);var C=b.fWeight;this.layerElement.setAttribute("font-style",b.fStyle),this.layerElement.setAttribute("font-weight",C)}this.layerElement.setAttribute("aria-label",b.t);var D=b.l||[],k=!!this.globalData.fontManager.chars;y=D.length;var R,P=this.mHelper,Q=this.data.singleShape,H=0,Z=0,X=!0,z=.001*b.tr*b.finalSize;if(!Q||k||b.sz){var Y,N=this.textSpans.length;for(m=0;m<y;m+=1){if(this.textSpans[m]||(this.textSpans[m]={span:null,childSpan:null,glyph:null}),!k||!Q||0===m){if(R=N>m?this.textSpans[m].span:createNS(k?"g":"text"),N<=m){if(R.setAttribute("stroke-linecap","butt"),R.setAttribute("stroke-linejoin","round"),R.setAttribute("stroke-miterlimit","4"),this.textSpans[m].span=R,k){var W=createNS("g");R.appendChild(W),this.textSpans[m].childSpan=W}this.textSpans[m].span=R,this.layerElement.appendChild(R)}R.style.display="inherit"}if(P.reset(),Q&&(D[m].n&&(H=-z,Z+=b.yOffset,Z+=X?1:0,X=!1),this.applyTextPropertiesToMatrix(b,P,D[m].line,H,Z),H+=D[m].l||0,H+=z),k){var J;if(1===(Y=this.globalData.fontManager.getCharData(b.finalText[m],T.fStyle,this.globalData.fontManager.getFontByName(b.f).fFamily)).t)J=new SVGCompElement(Y.data,this.globalData,this);else{var n=emptyShapeData;Y.data&&Y.data.shapes&&(n=this.buildShapeData(Y.data,b.finalSize)),J=new SVGShapeElement(n,this.globalData,this)}if(this.textSpans[m].glyph){var K=this.textSpans[m].glyph;this.textSpans[m].childSpan.removeChild(K.layerElement),K.destroy()}this.textSpans[m].glyph=J,J._debug=!0,J.prepareFrame(0),J.renderFrame(),this.textSpans[m].childSpan.appendChild(J.layerElement),1===Y.t&&this.textSpans[m].childSpan.setAttribute("transform","scale("+b.finalSize/100+","+b.finalSize/100+")")}else Q&&R.setAttribute("transform","translate("+P.props[12]+","+P.props[13]+")"),R.textContent=D[m].val,R.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}Q&&R&&R.setAttribute("d","")}else{var fe=this.textContainer,q="start";switch(b.j){case 1:q="end";break;case 2:q="middle";break;default:q="start"}fe.setAttribute("text-anchor",q),fe.setAttribute("letter-spacing",z);var ne=this.buildTextContents(b.finalText);for(y=ne.length,Z=b.ps?b.ps[1]+b.ascent:0,m=0;m<y;m+=1)(R=this.textSpans[m].span||createNS("tspan")).textContent=ne[m],R.setAttribute("x",0),R.setAttribute("y",Z),R.style.display="inherit",fe.appendChild(R),this.textSpans[m]||(this.textSpans[m]={span:null,glyph:null}),this.textSpans[m].span=R,Z+=b.finalLineHeight;this.layerElement.appendChild(fe)}for(;m<this.textSpans.length;)this.textSpans[m].span.style.display="none",m+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var m=this.layerElement.getBBox();this.bbox={top:m.y,left:m.x,width:m.width,height:m.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var m,b,y=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,m=0;m<y;m+=1)(b=this.textSpans[m].glyph)&&(b.prepareFrame(this.comp.renderedFrame-this.data.st),b._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var m,y,C,E,D,b=this.textAnimator.renderedLetters,T=this.textProperty.currentData.l;for(y=T.length,m=0;m<y;m+=1)T[m].n||(C=b[m],E=this.textSpans[m].span,(D=this.textSpans[m].glyph)&&D.renderFrame(),C._mdf.m&&E.setAttribute("transform",C.m),C._mdf.o&&E.setAttribute("opacity",C.o),C._mdf.sw&&E.setAttribute("stroke-width",C.sw),C._mdf.sc&&E.setAttribute("stroke",C.sc),C._mdf.fc&&E.setAttribute("fill",C.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var m=createNS("rect");m.setAttribute("width",this.data.sw),m.setAttribute("height",this.data.sh),m.setAttribute("fill",this.data.sc),this.layerElement.appendChild(m)},NullElement.prototype.prepareFrame=function(m){this.prepareProperties(m,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(m){return new NullElement(m,this.globalData,this)},SVGRendererBase.prototype.createShape=function(m){return new SVGShapeElement(m,this.globalData,this)},SVGRendererBase.prototype.createText=function(m){return new SVGTextLottieElement(m,this.globalData,this)},SVGRendererBase.prototype.createImage=function(m){return new IImageElement(m,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(m){return new ISolidElement(m,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(m){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize?this.renderConfig.viewBoxSize:"0 0 "+m.w+" "+m.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",m.w),this.svgElement.setAttribute("height",m.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var y=this.globalData.defs;this.setupGlobalData(m,y),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=m;var b=createNS("clipPath"),T=createNS("rect");T.setAttribute("width",m.w),T.setAttribute("height",m.h),T.setAttribute("x",0),T.setAttribute("y",0);var C=createElementID();b.setAttribute("id",C),b.appendChild(T),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+C+")"),y.appendChild(b),this.layers=m.layers,this.elements=createSizedArray(m.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var m,y=this.layers?this.layers.length:0;for(m=0;m<y;m+=1)this.elements[m]&&this.elements[m].destroy&&this.elements[m].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(m){var y=0,b=this.layers.length;for(y=0;y<b;y+=1)if(this.layers[y].ind===m)return y;return-1},SVGRendererBase.prototype.buildItem=function(m){var y=this.elements;if(!y[m]&&99!==this.layers[m].ty){y[m]=!0;var b=this.createItem(this.layers[m]);if(y[m]=b,getExpressionsPlugin()&&(0===this.layers[m].ty&&this.globalData.projectInterface.registerComposition(b),b.initExpressions()),this.appendElementInPos(b,m),this.layers[m].tt){var T="tp"in this.layers[m]?this.findIndexByInd(this.layers[m].tp):m-1;if(-1===T)return;if(this.elements[T]&&!0!==this.elements[T]){var E=y[T].getMatte(this.layers[m].tt);b.setMatte(E)}else this.buildItem(T),this.addPendingElement(b)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var m=this.pendingElements.pop();if(m.checkParenting(),m.data.tt)for(var y=0,b=this.elements.length;y<b;){if(this.elements[y]===m){var T="tp"in m.data?this.findIndexByInd(m.data.tp):y-1,E=this.elements[T].getMatte(this.layers[y].tt);m.setMatte(E);break}y+=1}}},SVGRendererBase.prototype.renderFrame=function(m){if(this.renderedFrame!==m&&!this.destroyed){null===m?m=this.renderedFrame:this.renderedFrame=m,this.globalData.frameNum=m,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=m,this.globalData._mdf=!1;var y,b=this.layers.length;for(this.completeLayers||this.checkLayers(m),y=b-1;y>=0;y-=1)(this.completeLayers||this.elements[y])&&this.elements[y].prepareFrame(m-this.layers[y].st);if(this.globalData._mdf)for(y=0;y<b;y+=1)(this.completeLayers||this.elements[y])&&this.elements[y].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(m,y){var b=m.getBaseElement();if(b){for(var C,T=0;T<y;)this.elements[T]&&!0!==this.elements[T]&&this.elements[T].getBaseElement()&&(C=this.elements[T].getBaseElement()),T+=1;C?this.layerElement.insertBefore(b,C):this.layerElement.appendChild(b)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(m,y,b){this.initFrame(),this.initBaseData(m,y,b),this.initTransform(m,y,b),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!y.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(m){if(this._mdf=!1,this.prepareRenderableFrame(m),this.prepareProperties(m,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=m/this.data.sr;else{var y=this.tm.v;y===this.data.op&&(y=this.data.op-1),this.renderedFrame=y}var b,T=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),b=T-1;b>=0;b-=1)(this.completeLayers||this.elements[b])&&(this.elements[b].prepareFrame(this.renderedFrame-this.layers[b].st),this.elements[b]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var m,y=this.layers.length;for(m=0;m<y;m+=1)(this.completeLayers||this.elements[m])&&this.elements[m].renderFrame()},ICompElement.prototype.setElements=function(m){this.elements=m},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var m,y=this.layers.length;for(m=0;m<y;m+=1)this.elements[m]&&this.elements[m].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(m){return new SVGCompElement(m,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(m){return new SVGCompElement(m,this.globalData,this)},ShapeTransformManager.prototype={addTransformSequence:function(y){var b,T=y.length,C="_";for(b=0;b<T;b+=1)C+=y[b].transform.key+"_";var E=this.sequences[C];return E||(E={transforms:[].concat(y),finalTransform:new Matrix,_mdf:!1},this.sequences[C]=E,this.sequenceList.push(E)),E},processSequence:function(y,b){for(var T=0,C=y.transforms.length,E=b;T<C&&!b;){if(y.transforms[T].transform.mProps._mdf){E=!0;break}T+=1}if(E)for(y.finalTransform.reset(),T=C-1;T>=0;T-=1)y.finalTransform.multiply(y.transforms[T].transform.mProps.v);y._mdf=E},processSequences:function(y){var b,T=this.sequenceList.length;for(b=0;b<T;b+=1)this.processSequence(this.sequenceList[b],y)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var y="__lottie_element_luma_buffer",b=null,T=null,C=null;function D(){b||(C=function E(){var R=createNS("svg"),P=createNS("filter"),G=createNS("feColorMatrix");return P.setAttribute("id",y),G.setAttribute("type","matrix"),G.setAttribute("color-interpolation-filters","sRGB"),G.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),P.appendChild(G),R.appendChild(P),R.setAttribute("id",y+"_svg"),featureSupport.svgLumaHidden&&(R.style.display="none"),R}(),document.body.appendChild(C),b=createTag("canvas"),(T=b.getContext("2d")).filter="url(#"+y+")",T.fillStyle="rgba(0,0,0,0)",T.fillRect(0,0,1,1))}return{load:D,get:function k(R){return b||D(),b.width=R.width,b.height=R.height,T.filter="url(#"+y+")",b}}};function createCanvas(m,y){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(m,y);var b=createTag("canvas");return b.width=m,b.height=y,b}var assetLoader={loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas},registeredEffects={};function CVEffects(m){var y,T,b=m.data.ef?m.data.ef.length:0;for(this.filters=[],y=0;y<b;y+=1){T=null;var C=m.data.ef[y].ty;registeredEffects[C]&&(T=new(0,registeredEffects[C].effect)(m.effectsManager.effectElements[y],m)),T&&this.filters.push(T)}this.filters.length&&m.addRenderableComponent(this)}function registerEffect(m,y){registeredEffects[m]={effect:y}}function CVMaskElement(m,y){this.data=m,this.element=y,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var b,T=this.masksProperties.length,C=!1;for(b=0;b<T;b+=1)"n"!==this.masksProperties[b].mode&&(C=!0),this.viewData[b]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[b],3);this.hasMasks=C,C&&this.element.addRenderableComponent(this)}function CVBaseElement(){}CVEffects.prototype.renderFrame=function(m){var y,b=this.filters.length;for(y=0;y<b;y+=1)this.filters[y].renderFrame(m)},CVEffects.prototype.getEffects=function(m){var y,b=this.filters.length,T=[];for(y=0;y<b;y+=1)this.filters[y].type===m&&T.push(this.filters[y]);return T},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var b,C,E,D,m=this.element.finalTransform.mat,y=this.element.canvasContext,T=this.masksProperties.length;for(y.beginPath(),b=0;b<T;b+=1)if("n"!==this.masksProperties[b].mode){this.masksProperties[b].inv&&(y.moveTo(0,0),y.lineTo(this.element.globalData.compSize.w,0),y.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),y.lineTo(0,this.element.globalData.compSize.h),y.lineTo(0,0)),C=m.applyToPointArray((D=this.viewData[b].v).v[0][0],D.v[0][1],0),y.moveTo(C[0],C[1]);var k,R=D._length;for(k=1;k<R;k+=1)E=m.applyToTriplePoints(D.o[k-1],D.i[k],D.v[k]),y.bezierCurveTo(E[0],E[1],E[2],E[3],E[4],E[5]);E=m.applyToTriplePoints(D.o[k-1],D.i[0],D.v[0]),y.bezierCurveTo(E[0],E[1],E[2],E[3],E[4],E[5])}this.element.globalData.renderer.save(!0),y.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};function CVShapeData(m,y,b,T){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var C=4;"rc"===y.ty?C=5:"el"===y.ty?C=6:"sr"===y.ty&&(C=7),this.sh=ShapePropertyFactory.getShapeProp(m,y,C,m);var E,k,D=b.length;for(E=0;E<D;E+=1)b[E].closed||(k={transforms:T.addTransformSequence(b[E].transforms),trNodes:[]},this.styledShapes.push(k),b[E].elements.push(k))}function CVShapeElement(m,y,b){this.shapes=[],this.shapesData=m.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(m,y,b)}function CVTextElement(m,y,b){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(m,y,b)}function CVImageElement(m,y,b){this.assetData=y.getAssetData(m.refId),this.img=y.imageLoader.getAsset(this.assetData),this.initElement(m,y,b)}function CVSolidElement(m,y,b){this.initElement(m,y,b)}function CanvasRendererBase(){}function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){var m;for(this.stack=[],this.cArrPos=0,this.cTr=new Matrix,m=0;m<15;m+=1){var b=new CanvasContext;this.stack[m]=b}this._length=15,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}function CVCompElement(m,y,b){this.completeLayers=!1,this.layers=m.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(m,y,b),this.tm=m.tm?PropertyFactory.getProp(this,m.tm,0,y.frameRate,this):{_placeholder:!0}}function CanvasRenderer(m,y){this.animationItem=m,this.renderConfig={clearCanvas:!y||void 0===y.clearCanvas||y.clearCanvas,context:y&&y.context||null,progressiveLoad:y&&y.progressiveLoad||!1,preserveAspectRatio:y&&y.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:y&&y.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:y&&y.contentVisibility||"visible",className:y&&y.className||"",id:y&&y.id||"",runExpressions:!y||void 0===y.runExpressions||y.runExpressions},this.renderConfig.dpr=y&&y.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=y&&y.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}function HBaseElement(){}function HSolidElement(m,y,b){this.initElement(m,y,b)}function HShapeElement(m,y,b){this.shapes=[],this.shapesData=m.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(m,y,b),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(m,y,b){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(m,y,b)}function HCameraElement(m,y,b){this.initFrame(),this.initBaseData(m,y,b),this.initHierarchy();var T=PropertyFactory.getProp;if(this.pe=T(this,m.pe,0,0,this),m.ks.p.s?(this.px=T(this,m.ks.p.x,1,0,this),this.py=T(this,m.ks.p.y,1,0,this),this.pz=T(this,m.ks.p.z,1,0,this)):this.p=T(this,m.ks.p,1,0,this),m.ks.a&&(this.a=T(this,m.ks.a,1,0,this)),m.ks.or.k.length&&m.ks.or.k[0].to){var C,E=m.ks.or.k.length;for(C=0;C<E;C+=1)m.ks.or.k[C].to=null,m.ks.or.k[C].ti=null}this.or=T(this,m.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=T(this,m.ks.rx,0,degToRads,this),this.ry=T(this,m.ks.ry,0,degToRads,this),this.rz=T(this,m.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(m,y,b){this.assetData=y.getAssetData(m.refId),this.initElement(m,y,b)}function HybridRendererBase(m,y){this.animationItem=m,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:y&&y.className||"",imagePreserveAspectRatio:y&&y.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(y&&!1===y.hideOnTransparent),filterSize:{width:y&&y.filterSize&&y.filterSize.width||"400%",height:y&&y.filterSize&&y.filterSize.height||"400%",x:y&&y.filterSize&&y.filterSize.x||"-100%",y:y&&y.filterSize&&y.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(m,y,b){this.layers=m.layers,this.supports3d=!m.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(m,y,b),this.tm=m.tm?PropertyFactory.getProp(this,m.tm,0,y.frameRate,this):{_placeholder:!0}}function HybridRenderer(m,y){this.animationItem=m,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:y&&y.className||"",imagePreserveAspectRatio:y&&y.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(y&&!1===y.hideOnTransparent),filterSize:{width:y&&y.filterSize&&y.filterSize.width||"400%",height:y&&y.filterSize&&y.filterSize.height||"400%",x:y&&y.filterSize&&y.filterSize.x||"-100%",y:y&&y.filterSize&&y.filterSize.y||"-100%"},runExpressions:!y||void 0===y.runExpressions||y.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var y=this.globalData.canvasContext,b=assetLoader.createCanvas(y.canvas.width,y.canvas.height);this.buffers.push(b);var T=assetLoader.createCanvas(y.canvas.width,y.canvas.height);this.buffers.push(T),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var y=this.globalData;if(y.blendMode!==this.data.bm){y.blendMode=this.data.bm;var b=getBlendMode(this.data.bm);y.canvasContext.globalCompositeOperation=b}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){!this.hidden&&(!this.isInRange||this.isTransparent)&&(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(y){y.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var b=this.buffers[0].getContext("2d");this.clearCanvas(b),b.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var y=this.buffers[1],b=y.getContext("2d");if(this.clearCanvas(b),b.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform),this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1).renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var C=assetLoader.getLumaCanvas(this.canvasContext.canvas);C.getContext("2d").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(C,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(y,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(y){if(!this.hidden&&!this.data.hd&&(1!==this.data.td||y)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var b=0===this.data.ty;this.prepareLayer(),this.globalData.renderer.save(b),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(b),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(m,y){var b={data:m,type:m.ty,preTransforms:this.transformsManager.addTransformSequence(y),transforms:[],elements:[],closed:!0===m.hd},T={};if("fl"===m.ty||"st"===m.ty?(T.c=PropertyFactory.getProp(this,m.c,1,255,this),T.c.k||(b.co="rgb("+bmFloor(T.c.v[0])+","+bmFloor(T.c.v[1])+","+bmFloor(T.c.v[2])+")")):("gf"===m.ty||"gs"===m.ty)&&(T.s=PropertyFactory.getProp(this,m.s,1,null,this),T.e=PropertyFactory.getProp(this,m.e,1,null,this),T.h=PropertyFactory.getProp(this,m.h||{k:0},0,.01,this),T.a=PropertyFactory.getProp(this,m.a||{k:0},0,degToRads,this),T.g=new GradientProperty(this,m.g,this)),T.o=PropertyFactory.getProp(this,m.o,0,.01,this),"st"===m.ty||"gs"===m.ty){if(b.lc=lineCapEnum[m.lc||2],b.lj=lineJoinEnum[m.lj||2],1==m.lj&&(b.ml=m.ml),T.w=PropertyFactory.getProp(this,m.w,0,null,this),T.w.k||(b.wi=T.w.v),m.d){var C=new DashProperty(this,m.d,"canvas",this);T.d=C,T.d.k||(b.da=T.d.dashArray,b.do=T.d.dashoffset[0])}}else b.r=2===m.r?"evenodd":"nonzero";return this.stylesList.push(b),T.style=b,T},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(m){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,m.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,m,this)}}},CVShapeElement.prototype.createShapeElement=function(m){var y=new CVShapeData(this,m,this.stylesList,this.transformsManager);return this.shapes.push(y),this.addShapeToModifiers(y),y},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var m,y=this.itemsData.length;for(m=0;m<y;m+=1)this.prevViewData[m]=this.itemsData[m];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),y=this.dynamicProperties.length,m=0;m<y;m+=1)this.dynamicProperties[m].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(m){var y,b=this.stylesList.length;for(y=0;y<b;y+=1)this.stylesList[y].closed||this.stylesList[y].transforms.push(m)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var m,y=this.stylesList.length;for(m=0;m<y;m+=1)this.stylesList[m].closed||this.stylesList[m].transforms.pop()},CVShapeElement.prototype.closeStyles=function(m){var y,b=m.length;for(y=0;y<b;y+=1)m[y].closed=!0},CVShapeElement.prototype.searchShapes=function(m,y,b,T,C){var E,k,R,Q,H,Z,D=m.length-1,P=[],G=[],X=[].concat(C);for(E=D;E>=0;E-=1){if((Q=this.searchProcessedElement(m[E]))?y[E]=b[Q-1]:m[E]._shouldRender=T,"fl"===m[E].ty||"st"===m[E].ty||"gf"===m[E].ty||"gs"===m[E].ty)Q?y[E].style.closed=!1:y[E]=this.createStyleElement(m[E],X),P.push(y[E].style);else if("gr"===m[E].ty){if(Q)for(R=y[E].it.length,k=0;k<R;k+=1)y[E].prevViewData[k]=y[E].it[k];else y[E]=this.createGroupElement(m[E]);this.searchShapes(m[E].it,y[E].it,y[E].prevViewData,T,X)}else"tr"===m[E].ty?(Q||(Z=this.createTransformElement(m[E]),y[E]=Z),X.push(y[E]),this.addTransformToStyleList(y[E])):"sh"===m[E].ty||"rc"===m[E].ty||"el"===m[E].ty||"sr"===m[E].ty?Q||(y[E]=this.createShapeElement(m[E])):"tm"===m[E].ty||"rd"===m[E].ty||"pb"===m[E].ty||"zz"===m[E].ty||"op"===m[E].ty?(Q?(H=y[E]).closed=!1:((H=ShapeModifiers.getModifier(m[E].ty)).init(this,m[E]),y[E]=H,this.shapeModifiers.push(H)),G.push(H)):"rp"===m[E].ty&&(Q?(H=y[E]).closed=!0:(H=ShapeModifiers.getModifier(m[E].ty),y[E]=H,H.init(this,m,E,y),this.shapeModifiers.push(H),T=!1),G.push(H));this.addProcessedElement(m[E],E+1)}for(this.removeTransformFromStyleList(),this.closeStyles(P),D=G.length,E=0;E<D;E+=1)G[E].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(m,y){(m._opMdf||y.op._mdf||this._isFirstFrame)&&(y.opacity=m.opacity,y.opacity*=y.op.v,y._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var m,b,T,C,E,D,k,G,Q,y=this.stylesList.length,R=this.globalData.renderer,P=this.globalData.canvasContext;for(m=0;m<y;m+=1)if(("st"!==(G=(Q=this.stylesList[m]).type)&&"gs"!==G||0!==Q.wi)&&Q.data._shouldRender&&0!==Q.coOp&&0!==this.globalData.currentGlobalAlpha){for(R.save(),D=Q.elements,"st"===G||"gs"===G?(R.ctxStrokeStyle("st"===G?Q.co:Q.grd),R.ctxLineWidth(Q.wi),R.ctxLineCap(Q.lc),R.ctxLineJoin(Q.lj),R.ctxMiterLimit(Q.ml||0)):R.ctxFillStyle("fl"===G?Q.co:Q.grd),R.ctxOpacity(Q.coOp),"st"!==G&&"gs"!==G&&P.beginPath(),R.ctxTransform(Q.preTransforms.finalTransform.props),T=D.length,b=0;b<T;b+=1){for(("st"===G||"gs"===G)&&(P.beginPath(),Q.da&&(P.setLineDash(Q.da),P.lineDashOffset=Q.do)),E=(k=D[b].trNodes).length,C=0;C<E;C+=1)"m"===k[C].t?P.moveTo(k[C].p[0],k[C].p[1]):"c"===k[C].t?P.bezierCurveTo(k[C].pts[0],k[C].pts[1],k[C].pts[2],k[C].pts[3],k[C].pts[4],k[C].pts[5]):P.closePath();("st"===G||"gs"===G)&&(R.ctxStroke(),Q.da&&P.setLineDash(this.dashResetter))}"st"!==G&&"gs"!==G&&this.globalData.renderer.ctxFill(Q.r),R.restore()}},CVShapeElement.prototype.renderShape=function(m,y,b,T){var C,D;for(D=m,C=y.length-1;C>=0;C-=1)"tr"===y[C].ty?this.renderShapeTransform(m,D=b[C].transform):"sh"===y[C].ty||"el"===y[C].ty||"rc"===y[C].ty||"sr"===y[C].ty?this.renderPath(y[C],b[C]):"fl"===y[C].ty?this.renderFill(y[C],b[C],D):"st"===y[C].ty?this.renderStroke(y[C],b[C],D):"gf"===y[C].ty||"gs"===y[C].ty?this.renderGradientFill(y[C],b[C],D):"gr"===y[C].ty&&this.renderShape(D,y[C].it,b[C].it);T&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(m,y){if(this._isFirstFrame||y._mdf||m.transforms._mdf){var C,E,D,b=m.trNodes,T=y.paths,k=T._length;b.length=0;var R=m.transforms.finalTransform;for(D=0;D<k;D+=1){var P=T.shapes[D];if(P&&P.v){for(E=P._length,C=1;C<E;C+=1)1===C&&b.push({t:"m",p:R.applyToPointArray(P.v[0][0],P.v[0][1],0)}),b.push({t:"c",pts:R.applyToTriplePoints(P.o[C-1],P.i[C],P.v[C])});1===E&&b.push({t:"m",p:R.applyToPointArray(P.v[0][0],P.v[0][1],0)}),P.c&&E&&(b.push({t:"c",pts:R.applyToTriplePoints(P.o[C-1],P.i[0],P.v[0])}),b.push({t:"z"}))}}m.trNodes=b}},CVShapeElement.prototype.renderPath=function(m,y){if(!0!==m.hd&&m._shouldRender){var b,T=y.styledShapes.length;for(b=0;b<T;b+=1)this.renderStyledShape(y.styledShapes[b],y.sh)}},CVShapeElement.prototype.renderFill=function(m,y,b){var T=y.style;(y.c._mdf||this._isFirstFrame)&&(T.co="rgb("+bmFloor(y.c.v[0])+","+bmFloor(y.c.v[1])+","+bmFloor(y.c.v[2])+")"),(y.o._mdf||b._opMdf||this._isFirstFrame)&&(T.coOp=y.o.v*b.opacity)},CVShapeElement.prototype.renderGradientFill=function(m,y,b){var C,T=y.style;if(!T.grd||y.g._mdf||y.s._mdf||y.e._mdf||1!==m.t&&(y.h._mdf||y.a._mdf)){var E=this.globalData.canvasContext,D=y.s.v,k=y.e.v;if(1===m.t)C=E.createLinearGradient(D[0],D[1],k[0],k[1]);else{var R=Math.sqrt(Math.pow(D[0]-k[0],2)+Math.pow(D[1]-k[1],2)),P=Math.atan2(k[1]-D[1],k[0]-D[0]),G=y.h.v;G>=1?G=.99:G<=-1&&(G=-.99);var Q=R*G,H=Math.cos(P+y.a.v)*Q+D[0],Z=Math.sin(P+y.a.v)*Q+D[1];C=E.createRadialGradient(H,Z,0,D[0],D[1],R)}var X,z=m.g.p,fe=y.g.c,q=1;for(X=0;X<z;X+=1)y.g._hasOpacity&&y.g._collapsable&&(q=y.g.o[2*X+1]),C.addColorStop(fe[4*X]/100,"rgba("+fe[4*X+1]+","+fe[4*X+2]+","+fe[4*X+3]+","+q+")");T.grd=C}T.coOp=y.o.v*b.opacity},CVShapeElement.prototype.renderStroke=function(m,y,b){var T=y.style,C=y.d;C&&(C._mdf||this._isFirstFrame)&&(T.da=C.dashArray,T.do=C.dashoffset[0]),(y.c._mdf||this._isFirstFrame)&&(T.co="rgb("+bmFloor(y.c.v[0])+","+bmFloor(y.c.v[1])+","+bmFloor(y.c.v[2])+")"),(y.o._mdf||b._opMdf||this._isFirstFrame)&&(T.coOp=y.o.v*b.opacity),(y.w._mdf||this._isFirstFrame)&&(T.wi=y.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var m=this.textProperty.currentData;this.renderedLetters=createSizedArray(m.l?m.l.length:0);var y=!1;m.fc?(y=!0,this.values.fill=this.buildColor(m.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=y;var b=!1;m.sc&&(b=!0,this.values.stroke=this.buildColor(m.sc),this.values.sWidth=m.sw);var C,E,T=this.globalData.fontManager.getFontByName(m.f),D=m.l,k=this.mHelper;this.stroke=b,this.values.fValue=m.finalSize+"px "+this.globalData.fontManager.getFontByName(m.f).fFamily,E=m.finalText.length;var R,P,G,Q,H,Z,X,z,fe,q,ne=this.data.singleShape,N=.001*m.tr*m.finalSize,Y=0,W=0,J=!0,n=0;for(C=0;C<E;C+=1){P=(R=this.globalData.fontManager.getCharData(m.finalText[C],T.fStyle,this.globalData.fontManager.getFontByName(m.f).fFamily))&&R.data||{},k.reset(),ne&&D[C].n&&(Y=-N,W+=m.yOffset,W+=J?1:0,J=!1),X=(H=P.shapes?P.shapes[0].it:[]).length,k.scale(m.finalSize/100,m.finalSize/100),ne&&this.applyTextPropertiesToMatrix(m,k,D[C].line,Y,W),fe=createSizedArray(X-1);var K=0;for(Z=0;Z<X;Z+=1)if("sh"===H[Z].ty){for(Q=H[Z].ks.k.i.length,z=H[Z].ks.k,q=[],G=1;G<Q;G+=1)1===G&&q.push(k.applyToX(z.v[0][0],z.v[0][1],0),k.applyToY(z.v[0][0],z.v[0][1],0)),q.push(k.applyToX(z.o[G-1][0],z.o[G-1][1],0),k.applyToY(z.o[G-1][0],z.o[G-1][1],0),k.applyToX(z.i[G][0],z.i[G][1],0),k.applyToY(z.i[G][0],z.i[G][1],0),k.applyToX(z.v[G][0],z.v[G][1],0),k.applyToY(z.v[G][0],z.v[G][1],0));q.push(k.applyToX(z.o[G-1][0],z.o[G-1][1],0),k.applyToY(z.o[G-1][0],z.o[G-1][1],0),k.applyToX(z.i[0][0],z.i[0][1],0),k.applyToY(z.i[0][0],z.i[0][1],0),k.applyToX(z.v[0][0],z.v[0][1],0),k.applyToY(z.v[0][0],z.v[0][1],0)),fe[K]=q,K+=1}ne&&(Y+=D[C].l,Y+=N),this.textSpans[n]?this.textSpans[n].elem=fe:this.textSpans[n]={elem:fe},n+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText(),this.canvasContext.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var y,b,T,C,E,D,k=this.textAnimator.renderedLetters,R=this.textProperty.currentData.l;b=R.length;var P,Z,X,G=null,Q=null,H=null,z=this.globalData.renderer;for(y=0;y<b;y+=1)if(!R[y].n){if((P=k[y])&&(z.save(),z.ctxTransform(P.p),z.ctxOpacity(P.o)),this.fill){for(P&&P.fc?G!==P.fc&&(z.ctxFillStyle(P.fc),G=P.fc):G!==this.values.fill&&(G=this.values.fill,z.ctxFillStyle(this.values.fill)),C=(Z=this.textSpans[y].elem).length,this.globalData.canvasContext.beginPath(),T=0;T<C;T+=1)for(D=(X=Z[T]).length,this.globalData.canvasContext.moveTo(X[0],X[1]),E=2;E<D;E+=6)this.globalData.canvasContext.bezierCurveTo(X[E],X[E+1],X[E+2],X[E+3],X[E+4],X[E+5]);this.globalData.canvasContext.closePath(),z.ctxFill()}if(this.stroke){for(P&&P.sw?H!==P.sw&&(H=P.sw,z.ctxLineWidth(P.sw)):H!==this.values.sWidth&&(H=this.values.sWidth,z.ctxLineWidth(this.values.sWidth)),P&&P.sc?Q!==P.sc&&(Q=P.sc,z.ctxStrokeStyle(P.sc)):Q!==this.values.stroke&&(Q=this.values.stroke,z.ctxStrokeStyle(this.values.stroke)),C=(Z=this.textSpans[y].elem).length,this.globalData.canvasContext.beginPath(),T=0;T<C;T+=1)for(D=(X=Z[T]).length,this.globalData.canvasContext.moveTo(X[0],X[1]),E=2;E<D;E+=6)this.globalData.canvasContext.bezierCurveTo(X[E],X[E+1],X[E+2],X[E+3],X[E+4],X[E+5]);this.globalData.canvasContext.closePath(),z.ctxStroke()}P&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var m=createTag("canvas");m.width=this.assetData.w,m.height=this.assetData.h;var D,k,y=m.getContext("2d"),b=this.img.width,T=this.img.height,C=b/T,E=this.assetData.w/this.assetData.h,R=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;C>E&&"xMidYMid slice"===R||C<E&&"xMidYMid slice"!==R?D=(k=T)*E:k=(D=b)/E,y.drawImage(this.img,(b-D)/2,(T-k)/2,D,k,0,0,this.assetData.w,this.assetData.h),this.img=m}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(m){return new CVShapeElement(m,this.globalData,this)},CanvasRendererBase.prototype.createText=function(m){return new CVTextElement(m,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(m){return new CVImageElement(m,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(m){return new CVSolidElement(m,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(m){1===m[0]&&0===m[1]&&0===m[4]&&1===m[5]&&0===m[12]&&0===m[13]||this.canvasContext.transform(m[0],m[1],m[4],m[5],m[12],m[13])},CanvasRendererBase.prototype.ctxOpacity=function(m){this.canvasContext.globalAlpha*=m<0?0:m},CanvasRendererBase.prototype.ctxFillStyle=function(m){this.canvasContext.fillStyle=m},CanvasRendererBase.prototype.ctxStrokeStyle=function(m){this.canvasContext.strokeStyle=m},CanvasRendererBase.prototype.ctxLineWidth=function(m){this.canvasContext.lineWidth=m},CanvasRendererBase.prototype.ctxLineCap=function(m){this.canvasContext.lineCap=m},CanvasRendererBase.prototype.ctxLineJoin=function(m){this.canvasContext.lineJoin=m},CanvasRendererBase.prototype.ctxMiterLimit=function(m){this.canvasContext.miterLimit=m},CanvasRendererBase.prototype.ctxFill=function(m){this.canvasContext.fill(m)},CanvasRendererBase.prototype.ctxFillRect=function(m,y,b,T){this.canvasContext.fillRect(m,y,b,T)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(m){this.renderConfig.clearCanvas?(m&&(this.globalData.blendMode="source-over"),this.contextData.restore(m)):this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(m){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var y=this.animationItem.container.style;y.width="100%",y.height="100%";var b="0px 0px 0px";y.transformOrigin=b,y.mozTransformOrigin=b,y.webkitTransformOrigin=b,y["-webkit-transform"]=b,y.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=m,this.layers=m.layers,this.transformCanvas={w:m.w,h:m.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(m,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(m.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(m,y){var b,T,C,E;if(this.reset(),m?(T=y,this.canvasContext.canvas.width=b=m,this.canvasContext.canvas.height=T):(this.animationItem.wrapper&&this.animationItem.container?(b=this.animationItem.wrapper.offsetWidth,T=this.animationItem.wrapper.offsetHeight):(b=this.canvasContext.canvas.width,T=this.canvasContext.canvas.height),this.canvasContext.canvas.width=b*this.renderConfig.dpr,this.canvasContext.canvas.height=T*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var D=this.renderConfig.preserveAspectRatio.split(" "),k=D[1]||"meet",R=D[0]||"xMidYMid",P=R.substr(0,4),G=R.substr(4);(E=this.transformCanvas.w/this.transformCanvas.h)>(C=b/T)&&"meet"===k||E<C&&"slice"===k?(this.transformCanvas.sx=b/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=b/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=T/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=T/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===P&&(E<C&&"meet"===k||E>C&&"slice"===k)?(b-this.transformCanvas.w*(T/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===P&&(E<C&&"meet"===k||E>C&&"slice"===k)?(b-this.transformCanvas.w*(T/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===G&&(E>C&&"meet"===k||E<C&&"slice"===k)?(T-this.transformCanvas.h*(b/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===G&&(E>C&&"meet"===k||E<C&&"slice"===k)?(T-this.transformCanvas.h*(b/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=b/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=T/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){var m;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),m=(this.layers?this.layers.length:0)-1;m>=0;m-=1)this.elements[m]&&this.elements[m].destroy&&this.elements[m].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(m,y){if((this.renderedFrame!==m||!0!==this.renderConfig.clearCanvas||y)&&!this.destroyed&&-1!==m){this.renderedFrame=m,this.globalData.frameNum=m-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||y,this.globalData.projectInterface.currentFrame=m;var b,T=this.layers.length;for(this.completeLayers||this.checkLayers(m),b=T-1;b>=0;b-=1)(this.completeLayers||this.elements[b])&&this.elements[b].prepareFrame(m-this.layers[b].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),b=T-1;b>=0;b-=1)(this.completeLayers||this.elements[b])&&this.elements[b].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(m){var y=this.elements;if(!y[m]&&99!==this.layers[m].ty){var b=this.createItem(this.layers[m],this,this.globalData);y[m]=b,b.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},CVContextData.prototype.duplicate=function(){var m=2*this._length,y=0;for(y=this._length;y<m;y+=1)this.stack[y]=new CanvasContext;this._length=m},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(m){this.cArrPos-=1;var T,y=this.stack[this.cArrPos],b=y.transform,C=this.cTr.props;for(T=0;T<16;T+=1)C[T]=b[T];if(m){this.nativeContext.restore();var E=this.stack[this.cArrPos+1];this.appliedFillStyle=E.fillStyle,this.appliedStrokeStyle=E.strokeStyle,this.appliedLineWidth=E.lineWidth,this.appliedLineCap=E.lineCap,this.appliedLineJoin=E.lineJoin,this.appliedMiterLimit=E.miterLimit}this.nativeContext.setTransform(b[0],b[1],b[4],b[5],b[12],b[13]),(m||-1!==y.opacity&&this.currentOpacity!==y.opacity)&&(this.nativeContext.globalAlpha=y.opacity,this.currentOpacity=y.opacity),this.currentFillStyle=y.fillStyle,this.currentStrokeStyle=y.strokeStyle,this.currentLineWidth=y.lineWidth,this.currentLineCap=y.lineCap,this.currentLineJoin=y.lineJoin,this.currentMiterLimit=y.miterLimit},CVContextData.prototype.save=function(m){m&&this.nativeContext.save();var y=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var T,b=this.stack[this.cArrPos];for(T=0;T<16;T+=1)b.transform[T]=y[T];this.cArrPos+=1;var C=this.stack[this.cArrPos];C.opacity=b.opacity,C.fillStyle=b.fillStyle,C.strokeStyle=b.strokeStyle,C.lineWidth=b.lineWidth,C.lineCap=b.lineCap,C.lineJoin=b.lineJoin,C.miterLimit=b.miterLimit},CVContextData.prototype.setOpacity=function(m){this.stack[this.cArrPos].opacity=m},CVContextData.prototype.setContext=function(m){this.nativeContext=m},CVContextData.prototype.fillStyle=function(m){this.stack[this.cArrPos].fillStyle!==m&&(this.currentFillStyle=m,this.stack[this.cArrPos].fillStyle=m)},CVContextData.prototype.strokeStyle=function(m){this.stack[this.cArrPos].strokeStyle!==m&&(this.currentStrokeStyle=m,this.stack[this.cArrPos].strokeStyle=m)},CVContextData.prototype.lineWidth=function(m){this.stack[this.cArrPos].lineWidth!==m&&(this.currentLineWidth=m,this.stack[this.cArrPos].lineWidth=m)},CVContextData.prototype.lineCap=function(m){this.stack[this.cArrPos].lineCap!==m&&(this.currentLineCap=m,this.stack[this.cArrPos].lineCap=m)},CVContextData.prototype.lineJoin=function(m){this.stack[this.cArrPos].lineJoin!==m&&(this.currentLineJoin=m,this.stack[this.cArrPos].lineJoin=m)},CVContextData.prototype.miterLimit=function(m){this.stack[this.cArrPos].miterLimit!==m&&(this.currentMiterLimit=m,this.stack[this.cArrPos].miterLimit=m)},CVContextData.prototype.transform=function(m){this.transformMat.cloneFromProps(m);var y=this.cTr;this.transformMat.multiply(y),y.cloneFromProps(this.transformMat.props);var b=y.props;this.nativeContext.setTransform(b[0],b[1],b[4],b[5],b[12],b[13])},CVContextData.prototype.opacity=function(m){var y=this.stack[this.cArrPos].opacity;this.stack[this.cArrPos].opacity!==(y*=m<0?0:m)&&(this.currentOpacity!==m&&(this.nativeContext.globalAlpha=m,this.currentOpacity=m),this.stack[this.cArrPos].opacity=y)},CVContextData.prototype.fill=function(m){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(m)},CVContextData.prototype.fillRect=function(m,y,b,T){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(m,y,b,T)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var y,m=this.canvasContext;for(m.beginPath(),m.moveTo(0,0),m.lineTo(this.data.w,0),m.lineTo(this.data.w,this.data.h),m.lineTo(0,this.data.h),m.lineTo(0,0),m.clip(),y=this.layers.length-1;y>=0;y-=1)(this.completeLayers||this.elements[y])&&this.elements[y].renderFrame()},CVCompElement.prototype.destroy=function(){var m;for(m=this.layers.length-1;m>=0;m-=1)this.elements[m]&&this.elements[m].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(m){return new CVCompElement(m,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(m){return new CVCompElement(m,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var y=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var b=this.finalTransform.mat.toCSS();y.transform=b,y.webkitTransform=b}this.finalTransform._opMdf&&(y.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var m;this.data.hasMask?((m=createNS("rect")).setAttribute("width",this.data.sw),m.setAttribute("height",this.data.sh),m.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((m=createTag("div")).style.width=this.data.sw+"px",m.style.height=this.data.sh+"px",m.style.backgroundColor=this.data.sc),this.layerElement.appendChild(m)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var m;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),m=this.svgElement;else{m=createNS("svg");var y=this.comp.data?this.comp.data:this.globalData.compSize;m.setAttribute("width",y.w),m.setAttribute("height",y.h),m.appendChild(this.shapesContainer),this.layerElement.appendChild(m)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=m},HShapeElement.prototype.getTransformedPoint=function(m,y){var b,T=m.length;for(b=0;b<T;b+=1)y=m[b].mProps.v.applyToPointArray(y[0],y[1],0);return y},HShapeElement.prototype.calculateShapeBoundingBox=function(m,y){var C,D,k,R,P,b=m.sh.v,T=m.transformers,E=b._length;if(!(E<=1)){for(C=0;C<E-1;C+=1)D=this.getTransformedPoint(T,b.v[C]),k=this.getTransformedPoint(T,b.o[C]),R=this.getTransformedPoint(T,b.i[C+1]),P=this.getTransformedPoint(T,b.v[C+1]),this.checkBounds(D,k,R,P,y);b.c&&(D=this.getTransformedPoint(T,b.v[C]),k=this.getTransformedPoint(T,b.o[C]),R=this.getTransformedPoint(T,b.i[0]),P=this.getTransformedPoint(T,b.v[0]),this.checkBounds(D,k,R,P,y))}},HShapeElement.prototype.checkBounds=function(m,y,b,T,C){this.getBoundsOfCurve(m,y,b,T);var E=this.shapeBoundingBox;C.x=bmMin(E.left,C.x),C.xMax=bmMax(E.right,C.xMax),C.y=bmMin(E.top,C.y),C.yMax=bmMax(E.bottom,C.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(m,y,b,T){for(var E,D,k,R,P,G,Q,C=[[m[0],T[0]],[m[1],T[1]]],H=0;H<2;++H)D=6*m[H]-12*y[H]+6*b[H],E=-3*m[H]+9*y[H]-9*b[H]+3*T[H],k=3*y[H]-3*m[H],D|=0,k|=0,0==(E|=0)&&0===D||(0===E?(R=-k/D)>0&&R<1&&C[H].push(this.calculateF(R,m,y,b,T,H)):(P=D*D-4*k*E)>=0&&((G=(-D+bmSqrt(P))/(2*E))>0&&G<1&&C[H].push(this.calculateF(G,m,y,b,T,H)),(Q=(-D-bmSqrt(P))/(2*E))>0&&Q<1&&C[H].push(this.calculateF(Q,m,y,b,T,H))));this.shapeBoundingBox.left=bmMin.apply(null,C[0]),this.shapeBoundingBox.top=bmMin.apply(null,C[1]),this.shapeBoundingBox.right=bmMax.apply(null,C[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,C[1])},HShapeElement.prototype.calculateF=function(m,y,b,T,C,E){return bmPow(1-m,3)*y[E]+3*bmPow(1-m,2)*m*b[E]+3*(1-m)*bmPow(m,2)*T[E]+bmPow(m,3)*C[E]},HShapeElement.prototype.calculateBoundingBox=function(m,y){var b,T=m.length;for(b=0;b<T;b+=1)m[b]&&m[b].sh?this.calculateShapeBoundingBox(m[b],y):m[b]&&m[b].it?this.calculateBoundingBox(m[b].it,y):m[b]&&m[b].style&&m[b].w&&this.expandStrokeBoundingBox(m[b].w,y)},HShapeElement.prototype.expandStrokeBoundingBox=function(m,y){var b=0;if(m.keyframes){for(var T=0;T<m.keyframes.length;T+=1){var C=m.keyframes[T].s;C>b&&(b=C)}b*=m.mult}else b=m.v*m.mult;y.x-=b,y.xMax+=b,y.y-=b,y.yMax+=b},HShapeElement.prototype.currentBoxContains=function(m){return this.currentBBox.x<=m.x&&this.currentBBox.y<=m.y&&this.currentBBox.width+this.currentBBox.x>=m.x+m.width&&this.currentBBox.height+this.currentBBox.y>=m.y+m.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var m=this.tempBoundingBox,y=999999;if(m.x=y,m.xMax=-y,m.y=y,m.yMax=-y,this.calculateBoundingBox(this.itemsData,m),m.width=m.xMax<m.x?0:m.xMax-m.x,m.height=m.yMax<m.y?0:m.yMax-m.y,this.currentBoxContains(m))return;var b=!1;if(this.currentBBox.w!==m.width&&(this.currentBBox.w=m.width,this.shapeCont.setAttribute("width",m.width),b=!0),this.currentBBox.h!==m.height&&(this.currentBBox.h=m.height,this.shapeCont.setAttribute("height",m.height),b=!0),b||this.currentBBox.x!==m.x||this.currentBBox.y!==m.y){this.currentBBox.w=m.width,this.currentBBox.h=m.height,this.currentBBox.x=m.x,this.currentBBox.y=m.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var T=this.shapeCont.style,C="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";T.transform=C,T.webkitTransform=C}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var m=createNS("g");this.maskedElement.appendChild(m),this.innerElem=m}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var m=this.textProperty.currentData;this.renderedLetters=createSizedArray(m.l?m.l.length:0);var y=this.innerElem.style,b=m.fc?this.buildColor(m.fc):"rgba(0,0,0,0)";y.fill=b,y.color=b,m.sc&&(y.stroke=this.buildColor(m.sc),y.strokeWidth=m.sw+"px");var T=this.globalData.fontManager.getFontByName(m.f);if(!this.globalData.fontManager.chars)if(y.fontSize=m.finalSize+"px",y.lineHeight=m.finalSize+"px",T.fClass)this.innerElem.className=T.fClass;else{y.fontFamily=T.fFamily;var C=m.fWeight;y.fontStyle=m.fStyle,y.fontWeight=C}var D,k,R=m.l;k=R.length;var P,G,Q,Z,H=this.mHelper,X="",z=0;for(D=0;D<k;D+=1){if(this.globalData.fontManager.chars?(this.textPaths[z]?P=this.textPaths[z]:((P=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),P.setAttribute("stroke-linejoin",lineJoinEnum[2]),P.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[z]?Q=(G=this.textSpans[z]).children[0]:((G=createTag("div")).style.lineHeight=0,(Q=createNS("svg")).appendChild(P),styleDiv(G)))):this.isMasked?P=this.textPaths[z]?this.textPaths[z]:createNS("text"):this.textSpans[z]?(G=this.textSpans[z],P=this.textPaths[z]):(styleDiv(G=createTag("span")),styleDiv(P=createTag("span")),G.appendChild(P)),this.globalData.fontManager.chars){var q,fe=this.globalData.fontManager.getCharData(m.finalText[D],T.fStyle,this.globalData.fontManager.getFontByName(m.f).fFamily);if(q=fe?fe.data:null,H.reset(),q&&q.shapes&&q.shapes.length&&(Z=q.shapes[0].it,H.scale(m.finalSize/100,m.finalSize/100),X=this.createPathShape(H,Z),P.setAttribute("d",X)),this.isMasked)this.innerElem.appendChild(P);else{if(this.innerElem.appendChild(G),q&&q.shapes){document.body.appendChild(Q);var ne=Q.getBBox();Q.setAttribute("width",ne.width+2),Q.setAttribute("height",ne.height+2),Q.setAttribute("viewBox",ne.x-1+" "+(ne.y-1)+" "+(ne.width+2)+" "+(ne.height+2));var N=Q.style,Y="translate("+(ne.x-1)+"px,"+(ne.y-1)+"px)";N.transform=Y,N.webkitTransform=Y,R[D].yOffset=ne.y-1}else Q.setAttribute("width",1),Q.setAttribute("height",1);G.appendChild(Q)}}else if(P.textContent=R[D].val,P.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(P);else{this.innerElem.appendChild(G);var W=P.style,J="translate3d(0,"+-m.finalSize/1.2+"px,0)";W.transform=J,W.webkitTransform=J}this.textSpans[z]=this.isMasked?P:G,this.textSpans[z].style.display="block",this.textPaths[z]=P,z+=1}for(;z<this.textSpans.length;)this.textSpans[z].style.display="none",z+=1},HTextElement.prototype.renderInnerContent=function(){var m;if(this.validateText(),this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH);var y="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";(m=this.svgElement.style).transform=y,m.webkitTransform=y}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var b,T,k,R,P,C=0,E=this.textAnimator.renderedLetters,D=this.textProperty.currentData.l;for(T=D.length,b=0;b<T;b+=1)D[b].n?C+=1:(R=this.textSpans[b],P=this.textPaths[b],k=E[C],C+=1,k._mdf.m&&(this.isMasked?R.setAttribute("transform",k.m):(R.style.webkitTransform=k.m,R.style.transform=k.m)),R.style.opacity=k.o,k.sw&&k._mdf.sw&&P.setAttribute("stroke-width",k.sw),k.sc&&k._mdf.sc&&P.setAttribute("stroke",k.sc),k.fc&&k._mdf.fc&&(P.setAttribute("fill",k.fc),P.style.color=k.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var G=this.innerElem.getBBox();if(this.currentBBox.w!==G.width&&(this.currentBBox.w=G.width,this.svgElement.setAttribute("width",G.width)),this.currentBBox.h!==G.height&&(this.currentBBox.h=G.height,this.svgElement.setAttribute("height",G.height)),this.currentBBox.w!==G.width+2||this.currentBBox.h!==G.height+2||this.currentBBox.x!==G.x-1||this.currentBBox.y!==G.y-1){this.currentBBox.w=G.width+2,this.currentBBox.h=G.height+2,this.currentBBox.x=G.x-1,this.currentBBox.y=G.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var H="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";(m=this.svgElement.style).transform=H,m.webkitTransform=H}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var m,b,T,C,y=this.comp.threeDElements.length;for(m=0;m<y;m+=1)if("3d"===(b=this.comp.threeDElements[m]).type){C=b.container.style;var E=this.pe.v+"px",D="0px 0px 0px",k="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(T=b.perspectiveElem.style).perspective=E,T.webkitPerspective=E,C.transformOrigin=D,C.mozTransformOrigin=D,C.webkitTransformOrigin=D,T.transform=k,T.webkitTransform=k}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var y,b,m=this._isFirstFrame;if(this.hierarchy)for(b=this.hierarchy.length,y=0;y<b;y+=1)m=this.hierarchy[y].finalTransform.mProp._mdf||m;if(m||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(y=b=this.hierarchy.length-1;y>=0;y-=1){var T=this.hierarchy[y].finalTransform.mProp;this.mat.translate(-T.p.v[0],-T.p.v[1],T.p.v[2]),this.mat.rotateX(-T.or.v[0]).rotateY(-T.or.v[1]).rotateZ(T.or.v[2]),this.mat.rotateX(-T.rx.v).rotateY(-T.ry.v).rotateZ(T.rz.v),this.mat.scale(1/T.s.v[0],1/T.s.v[1],1/T.s.v[2]),this.mat.translate(T.a.v[0],T.a.v[1],T.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var C;C=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var E=Math.sqrt(Math.pow(C[0],2)+Math.pow(C[1],2)+Math.pow(C[2],2)),D=[C[0]/E,C[1]/E,C[2]/E],k=Math.sqrt(D[2]*D[2]+D[0]*D[0]),R=Math.atan2(D[1],k),P=Math.atan2(D[0],-D[2]);this.mat.rotateY(P).rotateX(-R)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var G=!this._prevMat.equals(this.mat);if((G||this.pe._mdf)&&this.comp.threeDElements){var Q,H,Z;for(b=this.comp.threeDElements.length,y=0;y<b;y+=1)if("3d"===(Q=this.comp.threeDElements[y]).type){if(G){var X=this.mat.toCSS();(Z=Q.container.style).transform=X,Z.webkitTransform=X}this.pe._mdf&&((H=Q.perspectiveElem.style).perspective=this.pe.v+"px",H.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(m){this.prepareProperties(m,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var m=this.globalData.getAssetsPath(this.assetData),y=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",m),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(y),y.crossOrigin="anonymous",y.src=m,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(m,y){var b=m.getBaseElement();if(b){var T=this.layers[y];if(T.ddd&&this.supports3d)this.addTo3dContainer(b,y);else if(this.threeDElements)this.addTo3dContainer(b,y);else{for(var E,D,C=0;C<y;)this.elements[C]&&!0!==this.elements[C]&&this.elements[C].getBaseElement&&(D=this.elements[C],E=(this.layers[C].ddd?this.getThreeDContainerByPos(C):D.getBaseElement())||E),C+=1;E?(!T.ddd||!this.supports3d)&&this.layerElement.insertBefore(b,E):(!T.ddd||!this.supports3d)&&this.layerElement.appendChild(b)}}},HybridRendererBase.prototype.createShape=function(m){return this.supports3d?new HShapeElement(m,this.globalData,this):new SVGShapeElement(m,this.globalData,this)},HybridRendererBase.prototype.createText=function(m){return this.supports3d?new HTextElement(m,this.globalData,this):new SVGTextLottieElement(m,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(m){return this.camera=new HCameraElement(m,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(m){return this.supports3d?new HImageElement(m,this.globalData,this):new IImageElement(m,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(m){return this.supports3d?new HSolidElement(m,this.globalData,this):new ISolidElement(m,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(m){for(var y=0,b=this.threeDElements.length;y<b;){if(this.threeDElements[y].startPos<=m&&this.threeDElements[y].endPos>=m)return this.threeDElements[y].perspectiveElem;y+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(m,y){var T,C,b=createTag("div");styleDiv(b);var E=createTag("div");if(styleDiv(E),"3d"===y){(T=b.style).width=this.globalData.compSize.w+"px",T.height=this.globalData.compSize.h+"px";var D="50% 50%";T.webkitTransformOrigin=D,T.mozTransformOrigin=D,T.transformOrigin=D;var k="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(C=E.style).transform=k,C.webkitTransform=k}b.appendChild(E);var R={container:E,perspectiveElem:b,startPos:m,endPos:m,type:y};return this.threeDElements.push(R),R},HybridRendererBase.prototype.build3dContainers=function(){var m,b,y=this.layers.length,T="";for(m=0;m<y;m+=1)this.layers[m].ddd&&3!==this.layers[m].ty?("3d"!==T&&(T="3d",b=this.createThreeDContainer(m,"3d")),b.endPos=Math.max(b.endPos,m)):("2d"!==T&&(T="2d",b=this.createThreeDContainer(m,"2d")),b.endPos=Math.max(b.endPos,m));for(m=(y=this.threeDElements.length)-1;m>=0;m-=1)this.resizerElem.appendChild(this.threeDElements[m].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(m,y){for(var b=0,T=this.threeDElements.length;b<T;){if(y<=this.threeDElements[b].endPos){for(var E,C=this.threeDElements[b].startPos;C<y;)this.elements[C]&&this.elements[C].getBaseElement&&(E=this.elements[C].getBaseElement()),C+=1;E?this.threeDElements[b].container.insertBefore(m,E):this.threeDElements[b].container.appendChild(m);break}b+=1}},HybridRendererBase.prototype.configAnimation=function(m){var y=createTag("div"),b=this.animationItem.wrapper,T=y.style;T.width=m.w+"px",T.height=m.h+"px",this.resizerElem=y,styleDiv(y),T.transformStyle="flat",T.mozTransformStyle="flat",T.webkitTransformStyle="flat",this.renderConfig.className&&y.setAttribute("class",this.renderConfig.className),b.appendChild(y),T.overflow="hidden";var C=createNS("svg");C.setAttribute("width","1"),C.setAttribute("height","1"),styleDiv(C),this.resizerElem.appendChild(C);var E=createNS("defs");C.appendChild(E),this.data=m,this.setupGlobalData(m,C),this.globalData.defs=E,this.layers=m.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var m,y=this.layers?this.layers.length:0;for(m=0;m<y;m+=1)this.elements[m]&&this.elements[m].destroy&&this.elements[m].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var C,E,D,k,m=this.animationItem.wrapper.offsetWidth,y=this.animationItem.wrapper.offsetHeight;this.globalData.compSize.w/this.globalData.compSize.h>m/y?(C=m/this.globalData.compSize.w,E=m/this.globalData.compSize.w,D=0,k=(y-this.globalData.compSize.h*(m/this.globalData.compSize.w))/2):(C=y/this.globalData.compSize.h,E=y/this.globalData.compSize.h,D=(m-this.globalData.compSize.w*(y/this.globalData.compSize.h))/2,k=0);var R=this.resizerElem.style;R.webkitTransform="matrix3d("+C+",0,0,0,0,"+E+",0,0,0,0,1,0,"+D+","+k+",0,1)",R.transform=R.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var b,m=this.globalData.compSize.w,y=this.globalData.compSize.h,T=this.threeDElements.length;for(b=0;b<T;b+=1){var C=this.threeDElements[b].perspectiveElem.style;C.webkitPerspective=Math.sqrt(Math.pow(m,2)+Math.pow(y,2))+"px",C.perspective=C.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(m){var y,b=m.length,T=createTag("div");for(y=0;y<b;y+=1)if(m[y].xt){var C=this.createComp(m[y],T,this.globalData.comp,null);C.initExpressions(),this.globalData.projectInterface.registerComposition(C)}},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(m,y){for(var T,b=0;b<y;)this.elements[b]&&this.elements[b].getBaseElement&&(T=this.elements[b].getBaseElement()),b+=1;T?this.layerElement.insertBefore(m,T):this.layerElement.appendChild(m)},HCompElement.prototype.createComp=function(m){return this.supports3d?new HCompElement(m,this.globalData,this):new SVGCompElement(m,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(m){return this.supports3d?new HCompElement(m,this.globalData,this):new SVGCompElement(m,this.globalData,this)};var CompExpressionInterface=function(){return function(m){function y(b){for(var T=0,C=m.layers.length;T<C;){if(m.layers[T].nm===b||m.layers[T].ind===b)return m.elements[T].layerInterface;T+=1}return null}return Object.defineProperty(y,"_name",{value:m.data.nm}),y.layer=y,y.pixelAspect=1,y.height=m.data.h||m.globalData.compSize.h,y.width=m.data.w||m.globalData.compSize.w,y.pixelAspect=1,y.frameDuration=1/m.globalData.frameRate,y.displayStartTime=0,y.numLayers=m.layers.length,y}}();function _typeof$2(m){return(_typeof$2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(b){return typeof b}:function(b){return b&&"function"==typeof Symbol&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b})(m)}function seedRandom(m,y){var b=this,T=256,D="random",k=y.pow(T,6),R=y.pow(2,52),P=2*R,G=255;function Z(N){var Y,W=N.length,J=this,n=0,K=J.i=J.j=0,se=J.S=[];for(W||(N=[W++]);n<T;)se[n]=n++;for(n=0;n<T;n++)se[n]=se[K=G&K+N[n%W]+(Y=se[n])],se[K]=Y;J.g=function(De){for(var Fe,_e=0,ke=J.i,be=J.j,Ve=J.S;De--;)Fe=Ve[ke=G&ke+1],_e=_e*T+Ve[G&(Ve[ke]=Ve[be=G&be+Fe])+(Ve[be]=Fe)];return J.i=ke,J.j=be,_e}}function X(N,Y){return Y.i=N.i,Y.j=N.j,Y.S=N.S.slice(),Y}function z(N,Y){var n,W=[],J=_typeof$2(N);if(Y&&"object"==J)for(n in N)try{W.push(z(N[n],Y-1))}catch{}return W.length?W:"string"==J?N:N+"\0"}function fe(N,Y){for(var J,W=N+"",n=0;n<W.length;)Y[G&n]=G&(J^=19*Y[G&n])+W.charCodeAt(n++);return ne(Y)}function ne(N){return String.fromCharCode.apply(0,N)}y["seed"+D]=function H(N,Y,W){var J=[],n=fe(z((Y=!0===Y?{entropy:!0}:Y||{}).entropy?[N,ne(m)]:null===N?function q(){try{var N=new Uint8Array(T);return(b.crypto||b.msCrypto).getRandomValues(N),ne(N)}catch{var Y=b.navigator,W=Y&&Y.plugins;return[+new Date,b,W,b.screen,ne(m)]}}():N,3),J),K=new Z(J),se=function(){for(var Fe=K.g(6),_e=k,ke=0;Fe<R;)Fe=(Fe+ke)*T,_e*=T,ke=K.g(1);for(;Fe>=P;)Fe/=2,_e/=2,ke>>>=1;return(Fe+ke)/_e};return se.int32=function(){return 0|K.g(4)},se.quick=function(){return K.g(4)/4294967296},se.double=se,fe(ne(K.S),m),(Y.pass||W||function(De,Fe,_e,ke){return ke&&(ke.S&&X(ke,K),De.state=function(){return X(K,{})}),_e?(y[D]=De,Fe):De})(se,n,"global"in Y?Y.global:this==y,Y.state)},fe(y.random(),m)}function initialize$2(m){seedRandom([],m)}var propTypes={SHAPE:"shape"};function _typeof$1(m){return(_typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(b){return typeof b}:function(b){return b&&"function"==typeof Symbol&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b})(m)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(m){return m.constructor===Array||m.constructor===Float32Array}function isNumerable(m,y){return"number"===m||y instanceof Number||"boolean"===m||"string"===m}function $bm_neg(m){var y=_typeof$1(m);if("number"===y||m instanceof Number||"boolean"===y)return-m;if($bm_isInstanceOfArray(m)){var b,T=m.length,C=[];for(b=0;b<T;b+=1)C[b]=-m[b];return C}return m.propType?m.v:-m}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(m,y){var b=_typeof$1(m),T=_typeof$1(y);if(isNumerable(b,m)&&isNumerable(T,y)||"string"===b||"string"===T)return m+y;if($bm_isInstanceOfArray(m)&&isNumerable(T,y))return(m=m.slice(0))[0]+=y,m;if(isNumerable(b,m)&&$bm_isInstanceOfArray(y))return(y=y.slice(0))[0]=m+y[0],y;if($bm_isInstanceOfArray(m)&&$bm_isInstanceOfArray(y)){for(var C=0,E=m.length,D=y.length,k=[];C<E||C<D;)k[C]=("number"==typeof m[C]||m[C]instanceof Number)&&("number"==typeof y[C]||y[C]instanceof Number)?m[C]+y[C]:void 0===y[C]?m[C]:m[C]||y[C],C+=1;return k}return 0}var add=sum;function sub(m,y){var b=_typeof$1(m),T=_typeof$1(y);if(isNumerable(b,m)&&isNumerable(T,y))return"string"===b&&(m=parseInt(m,10)),"string"===T&&(y=parseInt(y,10)),m-y;if($bm_isInstanceOfArray(m)&&isNumerable(T,y))return(m=m.slice(0))[0]-=y,m;if(isNumerable(b,m)&&$bm_isInstanceOfArray(y))return(y=y.slice(0))[0]=m-y[0],y;if($bm_isInstanceOfArray(m)&&$bm_isInstanceOfArray(y)){for(var C=0,E=m.length,D=y.length,k=[];C<E||C<D;)k[C]=("number"==typeof m[C]||m[C]instanceof Number)&&("number"==typeof y[C]||y[C]instanceof Number)?m[C]-y[C]:void 0===y[C]?m[C]:m[C]||y[C],C+=1;return k}return 0}function mul(m,y){var C,E,D,b=_typeof$1(m),T=_typeof$1(y);if(isNumerable(b,m)&&isNumerable(T,y))return m*y;if($bm_isInstanceOfArray(m)&&isNumerable(T,y)){for(C=createTypedArray("float32",D=m.length),E=0;E<D;E+=1)C[E]=m[E]*y;return C}if(isNumerable(b,m)&&$bm_isInstanceOfArray(y)){for(C=createTypedArray("float32",D=y.length),E=0;E<D;E+=1)C[E]=m*y[E];return C}return 0}function div(m,y){var C,E,D,b=_typeof$1(m),T=_typeof$1(y);if(isNumerable(b,m)&&isNumerable(T,y))return m/y;if($bm_isInstanceOfArray(m)&&isNumerable(T,y)){for(C=createTypedArray("float32",D=m.length),E=0;E<D;E+=1)C[E]=m[E]/y;return C}if(isNumerable(b,m)&&$bm_isInstanceOfArray(y)){for(C=createTypedArray("float32",D=y.length),E=0;E<D;E+=1)C[E]=m/y[E];return C}return 0}function mod(m,y){return"string"==typeof m&&(m=parseInt(m,10)),"string"==typeof y&&(y=parseInt(y,10)),m%y}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(m,y,b){if(y>b){var T=b;b=y,y=T}return Math.min(Math.max(m,y),b)}function radiansToDegrees(m){return m/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(m){return m*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(m,y){if("number"==typeof m||m instanceof Number)return Math.abs(m-(y=y||0));y||(y=helperLengthArray);var b,T=Math.min(m.length,y.length),C=0;for(b=0;b<T;b+=1)C+=Math.pow(y[b]-m[b],2);return Math.sqrt(C)}function normalize(m){return div(m,length(m))}function rgbToHsl(m){var D,k,y=m[0],b=m[1],T=m[2],C=Math.max(y,b,T),E=Math.min(y,b,T),R=(C+E)/2;if(C===E)D=0,k=0;else{var P=C-E;switch(k=R>.5?P/(2-C-E):P/(C+E),C){case y:D=(b-T)/P+(b<T?6:0);break;case b:D=(T-y)/P+2;break;case T:D=(y-b)/P+4}D/=6}return[D,k,R,m[3]]}function hue2rgb(m,y,b){return b<0&&(b+=1),b>1&&(b-=1),b<1/6?m+6*(y-m)*b:b<.5?y:b<2/3?m+(y-m)*(2/3-b)*6:m}function hslToRgb(m){var C,E,D,y=m[0],b=m[1],T=m[2];if(0===b)C=T,D=T,E=T;else{var k=T<.5?T*(1+b):T+b-T*b,R=2*T-k;C=hue2rgb(R,k,y+1/3),E=hue2rgb(R,k,y),D=hue2rgb(R,k,y-1/3)}return[C,E,D,m[3]]}function linear(m,y,b,T,C){if((void 0===T||void 0===C)&&(T=y,C=b,y=0,b=1),b<y){var E=b;b=y,y=E}if(m<=y)return T;if(m>=b)return C;var D=b===y?0:(m-y)/(b-y);if(!T.length)return T+(C-T)*D;var k,R=T.length,P=createTypedArray("float32",R);for(k=0;k<R;k+=1)P[k]=T[k]+(C[k]-T[k])*D;return P}function random(m,y){if(void 0===y&&(void 0===m?(m=0,y=1):(y=m,m=void 0)),y.length){var b,T=y.length;m||(m=createTypedArray("float32",T));var C=createTypedArray("float32",T),E=BMMath.random();for(b=0;b<T;b+=1)C[b]=m[b]+E*(y[b]-m[b]);return C}return void 0===m&&(m=0),m+BMMath.random()*(y-m)}function createPath(m,y,b,T){var C,E=m.length,D=shapePool.newElement();D.setPathData(!!T,E);var R,P,k=[0,0];for(C=0;C<E;C+=1)D.setTripleAt(m[C][0],m[C][1],(P=b&&b[C]?b[C]:k)[0]+m[C][0],P[1]+m[C][1],(R=y&&y[C]?y[C]:k)[0]+m[C][0],R[1]+m[C][1],C,!0);return D}function initiateExpression(elem,data,property){function noOp(m){return m}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function m(y,b){var T,C,E=this.pv.length?this.pv.length:1,D=createTypedArray("float32",E),k=Math.floor(5*time);for(T=0,C=0;T<k;){for(C=0;C<E;C+=1)D[C]+=-b+2*b*BMMath.random();T+=1}var R=5*time,P=R-Math.floor(R),G=createTypedArray("float32",E);if(E>1){for(C=0;C<E;C+=1)G[C]=this.pv[C]+D[C]+(-b+2*b*BMMath.random())*P;return G}return this.pv+D[0]+(-b+2*b*BMMath.random())*P}.bind(this);function loopInDuration(m,y){return loopIn(m,y,!0)}function loopOutDuration(m,y){return loopOut(m,y,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);function lookAt(m,y){var b=[y[0]-m[0],y[1]-m[1],y[2]-m[2]],T=Math.atan2(b[0],Math.sqrt(b[1]*b[1]+b[2]*b[2]))/degToRads;return[-Math.atan2(b[1],b[2])/degToRads,T,0]}function easeOut(m,y,b,T,C){return applyEase(easeOutBez,m,y,b,T,C)}function easeIn(m,y,b,T,C){return applyEase(easeInBez,m,y,b,T,C)}function ease(m,y,b,T,C){return applyEase(easeInOutBez,m,y,b,T,C)}function applyEase(m,y,b,T,C,E){void 0===C?(C=b,E=T):y=(y-b)/(T-b),y>1?y=1:y<0&&(y=0);var D=m(y);if($bm_isInstanceOfArray(C)){var k,R=C.length,P=createTypedArray("float32",R);for(k=0;k<R;k+=1)P[k]=(E[k]-C[k])*D+C[k];return P}return(E-C)*D+C}function nearestKey(m){var y,T,C,b=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(T=-1,(m*=elem.comp.globalData.frameRate)<data.k[0].t)T=1,C=data.k[0].t;else{for(y=0;y<b-1;y+=1){if(m===data.k[y].t){T=y+1,C=data.k[y].t;break}if(m>data.k[y].t&&m<data.k[y+1].t){m-data.k[y].t>data.k[y+1].t-m?(T=y+2,C=data.k[y+1].t):(T=y+1,C=data.k[y].t);break}}-1===T&&(T=y+1,C=data.k[y].t)}else T=0,C=0;var E={};return E.index=T,E.time=C/elem.comp.globalData.frameRate,E}function key(m){var y,b,T;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+m);y={time:data.k[m-=1].t/elem.comp.globalData.frameRate,value:[]};var C=Object.prototype.hasOwnProperty.call(data.k[m],"s")?data.k[m].s:data.k[m-1].e;for(T=C.length,b=0;b<T;b+=1)y[b]=C[b],y.value[b]=C[b];return y}function framesToTime(m,y){return y||(y=elem.comp.globalData.frameRate),m/y}function timeToFrames(m,y){return!m&&0!==m&&(m=time),y||(y=elem.comp.globalData.frameRate),m*y}function seedRandom(m){BMMath.seedrandom(randSeed+m)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(m,y){return"string"==typeof value?void 0===y?value.substring(m):value.substring(m,y):""}function substr(m,y){return"string"==typeof value?void 0===y?value.substr(m):value.substr(m,y):""}function posterizeTime(m){time=0===m?0:Math.floor(time*m)/m,value=valueAtTime(time)}var time,velocity,value,text,textIndex,textTotal,selectorValue,index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(m){return value=m,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisComp=elem.comp.compInterface,toWorld=(thisLayer=elem.layerInterface).toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),4===elemType&&!content&&(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var m={initExpressions:function y(b){var T=0,C=[];b.renderer.compInterface=CompExpressionInterface(b.renderer),b.renderer.globalData.projectInterface.registerComposition(b.renderer),b.renderer.globalData.pushExpression=function E(){T+=1},b.renderer.globalData.popExpression=function D(){0==(T-=1)&&function R(){var P,G=C.length;for(P=0;P<G;P+=1)C[P].release();C.length=0}()},b.renderer.globalData.registerExpressionProperty=function k(P){-1===C.indexOf(P)&&C.push(P)}}};return m.resetFrame=ExpressionManager.resetFrame,m}(),MaskManagerInterface=function(){function m(b,T){this._mask=b,this._data=T}return Object.defineProperty(m.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(m.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(T){var E,C=createSizedArray(T.viewData.length),D=T.viewData.length;for(E=0;E<D;E+=1)C[E]=new m(T.viewData[E],T.masksProperties[E]);return function(P){for(E=0;E<D;){if(T.masksProperties[E].nm===P)return C[E];E+=1}return null}}}(),ExpressionPropertyInterface=function(){var m={pv:0,v:0,mult:1},y={pv:[0,0,0],v:[0,0,0],mult:1};function b(D,k,R){Object.defineProperty(D,"velocity",{get:function(){return k.getVelocityAtTime(k.comp.currentFrame)}}),D.numKeys=k.keyframes?k.keyframes.length:0,D.key=function(P){if(!D.numKeys)return 0;var G;G="s"in k.keyframes[P-1]?k.keyframes[P-1].s:"e"in k.keyframes[P-2]?k.keyframes[P-2].e:k.keyframes[P-2].s;var Q="unidimensional"===R?new Number(G):Object.assign({},G);return Q.time=k.keyframes[P-1].t/k.elem.comp.globalData.frameRate,Q.value="unidimensional"===R?G[0]:G,Q},D.valueAtTime=k.getValueAtTime,D.speedAtTime=k.getSpeedAtTime,D.velocityAtTime=k.getVelocityAtTime,D.propertyGroup=k.propertyGroup}function E(){return m}return function(D){return D?"unidimensional"===D.propType?function T(D){(!D||!("pv"in D))&&(D=m);var k=1/D.mult,R=D.pv*k,P=new Number(R);return P.value=R,b(P,D,"unidimensional"),function(){return D.k&&D.getValue(),P.value!==(R=D.v*k)&&((P=new Number(R)).value=R,b(P,D,"unidimensional")),P}}(D):function C(D){(!D||!("pv"in D))&&(D=y);var k=1/D.mult,R=D.data&&D.data.l||D.pv.length,P=createTypedArray("float32",R),G=createTypedArray("float32",R);return P.value=G,b(P,D,"multidimensional"),function(){D.k&&D.getValue();for(var Q=0;Q<R;Q+=1)G[Q]=D.v[Q]*k,P[Q]=G[Q];return P}}(D):E}}(),TransformExpressionInterface=function(){return function(m){function y(D){switch(D){case"scale":case"Scale":case"ADBE Scale":case 6:return y.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return y.rotation;case"ADBE Rotate X":return y.xRotation;case"ADBE Rotate Y":return y.yRotation;case"position":case"Position":case"ADBE Position":case 2:return y.position;case"ADBE Position_0":return y.xPosition;case"ADBE Position_1":return y.yPosition;case"ADBE Position_2":return y.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return y.anchorPoint;case"opacity":case"Opacity":case 11:return y.opacity;default:return null}}var b,T,C,E;return Object.defineProperty(y,"rotation",{get:ExpressionPropertyInterface(m.r||m.rz)}),Object.defineProperty(y,"zRotation",{get:ExpressionPropertyInterface(m.rz||m.r)}),Object.defineProperty(y,"xRotation",{get:ExpressionPropertyInterface(m.rx)}),Object.defineProperty(y,"yRotation",{get:ExpressionPropertyInterface(m.ry)}),Object.defineProperty(y,"scale",{get:ExpressionPropertyInterface(m.s)}),m.p?E=ExpressionPropertyInterface(m.p):(b=ExpressionPropertyInterface(m.px),T=ExpressionPropertyInterface(m.py),m.pz&&(C=ExpressionPropertyInterface(m.pz))),Object.defineProperty(y,"position",{get:function(){return m.p?E():[b(),T(),C?C():0]}}),Object.defineProperty(y,"xPosition",{get:ExpressionPropertyInterface(m.px)}),Object.defineProperty(y,"yPosition",{get:ExpressionPropertyInterface(m.py)}),Object.defineProperty(y,"zPosition",{get:ExpressionPropertyInterface(m.pz)}),Object.defineProperty(y,"anchorPoint",{get:ExpressionPropertyInterface(m.a)}),Object.defineProperty(y,"opacity",{get:ExpressionPropertyInterface(m.o)}),Object.defineProperty(y,"skew",{get:ExpressionPropertyInterface(m.sk)}),Object.defineProperty(y,"skewAxis",{get:ExpressionPropertyInterface(m.sa)}),Object.defineProperty(y,"orientation",{get:ExpressionPropertyInterface(m.or)}),y}}(),LayerExpressionInterface=function(){function m(P){var G=new Matrix;return void 0!==P?this._elem.finalTransform.mProp.getValueAtTime(P).clone(G):this._elem.finalTransform.mProp.applyToMatrix(G),G}function y(P,G){var Q=this.getMatrix(G);return Q.props[12]=0,Q.props[13]=0,Q.props[14]=0,this.applyPoint(Q,P)}function b(P,G){var Q=this.getMatrix(G);return this.applyPoint(Q,P)}function T(P,G){var Q=this.getMatrix(G);return Q.props[12]=0,Q.props[13]=0,Q.props[14]=0,this.invertPoint(Q,P)}function C(P,G){var Q=this.getMatrix(G);return this.invertPoint(Q,P)}function E(P,G){if(this._elem.hierarchy&&this._elem.hierarchy.length){var Q,H=this._elem.hierarchy.length;for(Q=0;Q<H;Q+=1)this._elem.hierarchy[Q].finalTransform.mProp.applyToMatrix(P)}return P.applyToPointArray(G[0],G[1],G[2]||0)}function D(P,G){if(this._elem.hierarchy&&this._elem.hierarchy.length){var Q,H=this._elem.hierarchy.length;for(Q=0;Q<H;Q+=1)this._elem.hierarchy[Q].finalTransform.mProp.applyToMatrix(P)}return P.inversePoint(G)}function k(P){var G=new Matrix;if(G.reset(),this._elem.finalTransform.mProp.applyToMatrix(G),this._elem.hierarchy&&this._elem.hierarchy.length){var Q,H=this._elem.hierarchy.length;for(Q=0;Q<H;Q+=1)this._elem.hierarchy[Q].finalTransform.mProp.applyToMatrix(G);return G.inversePoint(P)}return G.inversePoint(P)}function R(){return[1,1,1,1]}return function(P){var G;function Z(z){switch(z){case"ADBE Root Vectors Group":case"Contents":case 2:return Z.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return G;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return Z.effect;case"ADBE Text Properties":return Z.textInterface;default:return null}}Z.getMatrix=m,Z.invertPoint=D,Z.applyPoint=E,Z.toWorld=b,Z.toWorldVec=y,Z.fromWorld=C,Z.fromWorldVec=T,Z.toComp=b,Z.fromComp=k,Z.sampleImage=R,Z.sourceRectAtTime=P.sourceRectAtTime.bind(P),Z._elem=P;var X=getDescriptor(G=TransformExpressionInterface(P.finalTransform.mProp),"anchorPoint");return Object.defineProperties(Z,{hasParent:{get:function(){return P.hierarchy.length}},parent:{get:function(){return P.hierarchy[0].layerInterface}},rotation:getDescriptor(G,"rotation"),scale:getDescriptor(G,"scale"),position:getDescriptor(G,"position"),opacity:getDescriptor(G,"opacity"),anchorPoint:X,anchor_point:X,transform:{get:function(){return G}},active:{get:function(){return P.isInRange}}}),Z.startTime=P.data.st,Z.index=P.data.ind,Z.source=P.data.refId,Z.height=0===P.data.ty?P.data.h:100,Z.width=0===P.data.ty?P.data.w:100,Z.inPoint=P.data.ip/P.comp.globalData.frameRate,Z.outPoint=P.data.op/P.comp.globalData.frameRate,Z._name=P.data.nm,Z.registerMaskInterface=function Q(z){Z.mask=new MaskManagerInterface(z,P)},Z.registerEffectsInterface=function H(z){Z.effect=z},Z}}(),propertyGroupFactory=function(){return function(m,y){return function(b){return(b=void 0===b?1:b)<=0?m:y(b-1)}}}(),PropertyInterface=function(){return function(m,y){var b={_name:m};return function T(C){return(C=void 0===C?1:C)<=0?b:y(C-1)}}}(),EffectsExpressionInterface=function(){function b(C,E,D,k){function R(Z){for(var X=C.ef,z=0,fe=X.length;z<fe;){if(Z===X[z].nm||Z===X[z].mn||Z===X[z].ix)return 5===X[z].ty?G[z]:G[z]();z+=1}throw new Error}var Q,P=propertyGroupFactory(R,D),G=[],H=C.ef.length;for(Q=0;Q<H;Q+=1)G.push(5===C.ef[Q].ty?b(C.ef[Q],E.effectElements[Q],E.effectElements[Q].propertyGroup,k):T(E.effectElements[Q],C.ef[Q].ty,k,P));return"ADBE Color Control"===C.mn&&Object.defineProperty(R,"color",{get:function(){return G[0]()}}),Object.defineProperties(R,{numProperties:{get:function(){return C.np}},_name:{value:C.nm},propertyGroup:{value:P}}),R.active=R.enabled=0!==C.en,R}function T(C,E,D,k){var R=ExpressionPropertyInterface(C.p);return C.p.setGroupProperty&&C.p.setGroupProperty(PropertyInterface("",k)),function P(){return 10===E?D.comp.compInterface(C.p.v):R()}}return{createEffectsInterface:function y(C,E){if(C.effectsManager){var R,D=[],k=C.data.ef,P=C.effectsManager.effectElements.length;for(R=0;R<P;R+=1)D.push(b(k[R],C.effectsManager.effectElements[R],E,C));var G=C.data.ef||[],Q=function(Z){for(R=0,P=G.length;R<P;){if(Z===G[R].nm||Z===G[R].mn||Z===G[R].ix)return D[R];R+=1}return null};return Object.defineProperty(Q,"numProperties",{get:function(){return G.length}}),Q}return null}}}(),ShapePathInterface=function(){return function(y,b,T){var C=b.sh;function E(k){return"Shape"===k||"shape"===k||"Path"===k||"path"===k||"ADBE Vector Shape"===k||2===k?E.path:null}var D=propertyGroupFactory(E,T);return C.setGroupProperty(PropertyInterface("Path",D)),Object.defineProperties(E,{path:{get:function(){return C.k&&C.getValue(),C}},shape:{get:function(){return C.k&&C.getValue(),C}},_name:{value:y.nm},ix:{value:y.ix},propertyIndex:{value:y.ix},mn:{value:y.mn},propertyGroup:{value:T}}),E}}(),ShapeExpressionInterface=function(){function m(X,z,fe){var ne,q=[],N=X?X.length:0;for(ne=0;ne<N;ne+=1)"gr"===X[ne].ty?q.push(b(X[ne],z[ne],fe)):"fl"===X[ne].ty?q.push(T(X[ne],z[ne],fe)):"st"===X[ne].ty?q.push(D(X[ne],z[ne],fe)):"tm"===X[ne].ty?q.push(k(X[ne],z[ne],fe)):"tr"===X[ne].ty||q.push("el"===X[ne].ty?P(X[ne],z[ne],fe):"sr"===X[ne].ty?G(X[ne],z[ne],fe):"sh"===X[ne].ty?ShapePathInterface(X[ne],z[ne],fe):"rc"===X[ne].ty?Q(X[ne],z[ne],fe):"rd"===X[ne].ty?H(X[ne],z[ne],fe):"rp"===X[ne].ty?Z(X[ne],z[ne],fe):"gf"===X[ne].ty?C(X[ne],z[ne],fe):function X(){return null});return q}function b(X,z,fe){var q=function(W){switch(W){case"ADBE Vectors Group":case"Contents":case 2:return q.content;default:return q.transform}};q.propertyGroup=propertyGroupFactory(q,fe);var ne=function y(X,z,fe){var q,ne=function(W){for(var J=0,n=q.length;J<n;){if(q[J]._name===W||q[J].mn===W||q[J].propertyIndex===W||q[J].ix===W||q[J].ind===W)return q[J];J+=1}return"number"==typeof W?q[W-1]:null};ne.propertyGroup=propertyGroupFactory(ne,fe),q=m(X.it,z.it,ne.propertyGroup),ne.numProperties=q.length;var N=R(X.it[X.it.length-1],z.it[z.it.length-1],ne.propertyGroup);return ne.transform=N,ne.propertyIndex=X.cix,ne._name=X.nm,ne}(X,z,q.propertyGroup),N=R(X.it[X.it.length-1],z.it[z.it.length-1],q.propertyGroup);return q.content=ne,q.transform=N,Object.defineProperty(q,"_name",{get:function(){return X.nm}}),q.numProperties=X.np,q.propertyIndex=X.ix,q.nm=X.nm,q.mn=X.mn,q}function T(X,z,fe){function q(ne){return"Color"===ne||"color"===ne?q.color:"Opacity"===ne||"opacity"===ne?q.opacity:null}return Object.defineProperties(q,{color:{get:ExpressionPropertyInterface(z.c)},opacity:{get:ExpressionPropertyInterface(z.o)},_name:{value:X.nm},mn:{value:X.mn}}),z.c.setGroupProperty(PropertyInterface("Color",fe)),z.o.setGroupProperty(PropertyInterface("Opacity",fe)),q}function C(X,z,fe){function q(ne){return"Start Point"===ne||"start point"===ne?q.startPoint:"End Point"===ne||"end point"===ne?q.endPoint:"Opacity"===ne||"opacity"===ne?q.opacity:null}return Object.defineProperties(q,{startPoint:{get:ExpressionPropertyInterface(z.s)},endPoint:{get:ExpressionPropertyInterface(z.e)},opacity:{get:ExpressionPropertyInterface(z.o)},type:{get:function(){return"a"}},_name:{value:X.nm},mn:{value:X.mn}}),z.s.setGroupProperty(PropertyInterface("Start Point",fe)),z.e.setGroupProperty(PropertyInterface("End Point",fe)),z.o.setGroupProperty(PropertyInterface("Opacity",fe)),q}function D(X,z,fe){var Y,K,q=propertyGroupFactory(n,fe),ne=propertyGroupFactory(J,q),W=X.d?X.d.length:0,J={};for(Y=0;Y<W;Y+=1)K=Y,Object.defineProperty(J,X.d[K].nm,{get:ExpressionPropertyInterface(z.d.dataProps[K].p)}),z.d.dataProps[Y].p.setGroupProperty(ne);function n(K){return"Color"===K||"color"===K?n.color:"Opacity"===K||"opacity"===K?n.opacity:"Stroke Width"===K||"stroke width"===K?n.strokeWidth:null}return Object.defineProperties(n,{color:{get:ExpressionPropertyInterface(z.c)},opacity:{get:ExpressionPropertyInterface(z.o)},strokeWidth:{get:ExpressionPropertyInterface(z.w)},dash:{get:function(){return J}},_name:{value:X.nm},mn:{value:X.mn}}),z.c.setGroupProperty(PropertyInterface("Color",q)),z.o.setGroupProperty(PropertyInterface("Opacity",q)),z.w.setGroupProperty(PropertyInterface("Stroke Width",q)),n}function k(X,z,fe){function q(N){return N===X.e.ix||"End"===N||"end"===N?q.end:N===X.s.ix?q.start:N===X.o.ix?q.offset:null}var ne=propertyGroupFactory(q,fe);return q.propertyIndex=X.ix,z.s.setGroupProperty(PropertyInterface("Start",ne)),z.e.setGroupProperty(PropertyInterface("End",ne)),z.o.setGroupProperty(PropertyInterface("Offset",ne)),q.propertyIndex=X.ix,q.propertyGroup=fe,Object.defineProperties(q,{start:{get:ExpressionPropertyInterface(z.s)},end:{get:ExpressionPropertyInterface(z.e)},offset:{get:ExpressionPropertyInterface(z.o)},_name:{value:X.nm}}),q.mn=X.mn,q}function R(X,z,fe){function q(N){return X.a.ix===N||"Anchor Point"===N?q.anchorPoint:X.o.ix===N||"Opacity"===N?q.opacity:X.p.ix===N||"Position"===N?q.position:X.r.ix===N||"Rotation"===N||"ADBE Vector Rotation"===N?q.rotation:X.s.ix===N||"Scale"===N?q.scale:X.sk&&X.sk.ix===N||"Skew"===N?q.skew:X.sa&&X.sa.ix===N||"Skew Axis"===N?q.skewAxis:null}var ne=propertyGroupFactory(q,fe);return z.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",ne)),z.transform.mProps.p.setGroupProperty(PropertyInterface("Position",ne)),z.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",ne)),z.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",ne)),z.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",ne)),z.transform.mProps.sk&&(z.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",ne)),z.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",ne))),z.transform.op.setGroupProperty(PropertyInterface("Opacity",ne)),Object.defineProperties(q,{opacity:{get:ExpressionPropertyInterface(z.transform.mProps.o)},position:{get:ExpressionPropertyInterface(z.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(z.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(z.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(z.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(z.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(z.transform.mProps.sa)},_name:{value:X.nm}}),q.ty="tr",q.mn=X.mn,q.propertyGroup=fe,q}function P(X,z,fe){function q(Y){return X.p.ix===Y?q.position:X.s.ix===Y?q.size:null}var ne=propertyGroupFactory(q,fe);q.propertyIndex=X.ix;var N="tm"===z.sh.ty?z.sh.prop:z.sh;return N.s.setGroupProperty(PropertyInterface("Size",ne)),N.p.setGroupProperty(PropertyInterface("Position",ne)),Object.defineProperties(q,{size:{get:ExpressionPropertyInterface(N.s)},position:{get:ExpressionPropertyInterface(N.p)},_name:{value:X.nm}}),q.mn=X.mn,q}function G(X,z,fe){function q(Y){return X.p.ix===Y?q.position:X.r.ix===Y?q.rotation:X.pt.ix===Y?q.points:X.or.ix===Y||"ADBE Vector Star Outer Radius"===Y?q.outerRadius:X.os.ix===Y?q.outerRoundness:!X.ir||X.ir.ix!==Y&&"ADBE Vector Star Inner Radius"!==Y?X.is&&X.is.ix===Y?q.innerRoundness:null:q.innerRadius}var ne=propertyGroupFactory(q,fe),N="tm"===z.sh.ty?z.sh.prop:z.sh;return q.propertyIndex=X.ix,N.or.setGroupProperty(PropertyInterface("Outer Radius",ne)),N.os.setGroupProperty(PropertyInterface("Outer Roundness",ne)),N.pt.setGroupProperty(PropertyInterface("Points",ne)),N.p.setGroupProperty(PropertyInterface("Position",ne)),N.r.setGroupProperty(PropertyInterface("Rotation",ne)),X.ir&&(N.ir.setGroupProperty(PropertyInterface("Inner Radius",ne)),N.is.setGroupProperty(PropertyInterface("Inner Roundness",ne))),Object.defineProperties(q,{position:{get:ExpressionPropertyInterface(N.p)},rotation:{get:ExpressionPropertyInterface(N.r)},points:{get:ExpressionPropertyInterface(N.pt)},outerRadius:{get:ExpressionPropertyInterface(N.or)},outerRoundness:{get:ExpressionPropertyInterface(N.os)},innerRadius:{get:ExpressionPropertyInterface(N.ir)},innerRoundness:{get:ExpressionPropertyInterface(N.is)},_name:{value:X.nm}}),q.mn=X.mn,q}function Q(X,z,fe){function q(Y){return X.p.ix===Y?q.position:X.r.ix===Y?q.roundness:X.s.ix===Y||"Size"===Y||"ADBE Vector Rect Size"===Y?q.size:null}var ne=propertyGroupFactory(q,fe),N="tm"===z.sh.ty?z.sh.prop:z.sh;return q.propertyIndex=X.ix,N.p.setGroupProperty(PropertyInterface("Position",ne)),N.s.setGroupProperty(PropertyInterface("Size",ne)),N.r.setGroupProperty(PropertyInterface("Rotation",ne)),Object.defineProperties(q,{position:{get:ExpressionPropertyInterface(N.p)},roundness:{get:ExpressionPropertyInterface(N.r)},size:{get:ExpressionPropertyInterface(N.s)},_name:{value:X.nm}}),q.mn=X.mn,q}function H(X,z,fe){function q(Y){return X.r.ix===Y||"Round Corners 1"===Y?q.radius:null}var ne=propertyGroupFactory(q,fe),N=z;return q.propertyIndex=X.ix,N.rd.setGroupProperty(PropertyInterface("Radius",ne)),Object.defineProperties(q,{radius:{get:ExpressionPropertyInterface(N.rd)},_name:{value:X.nm}}),q.mn=X.mn,q}function Z(X,z,fe){function q(Y){return X.c.ix===Y||"Copies"===Y?q.copies:X.o.ix===Y||"Offset"===Y?q.offset:null}var ne=propertyGroupFactory(q,fe),N=z;return q.propertyIndex=X.ix,N.c.setGroupProperty(PropertyInterface("Copies",ne)),N.o.setGroupProperty(PropertyInterface("Offset",ne)),Object.defineProperties(q,{copies:{get:ExpressionPropertyInterface(N.c)},offset:{get:ExpressionPropertyInterface(N.o)},_name:{value:X.nm}}),q.mn=X.mn,q}return function(X,z,fe){var q;function ne(Y){if("number"==typeof Y)return 0===(Y=void 0===Y?1:Y)?fe:q[Y-1];for(var W=0,J=q.length;W<J;){if(q[W]._name===Y)return q[W];W+=1}return null}return ne.propertyGroup=propertyGroupFactory(ne,function N(){return fe}),q=m(X,z,ne.propertyGroup),ne.numProperties=q.length,ne._name="Contents",ne}}(),TextExpressionInterface=function(){return function(m){var y;function b(T){return"ADBE Text Document"===T?b.sourceText:null}return Object.defineProperty(b,"sourceText",{get:function(){m.textProperty.getValue();var C=m.textProperty.currentData.t;return(!y||C!==y.value)&&((y=new String(C)).value=C||new String(C),Object.defineProperty(y,"style",{get:function(){return{fillColor:m.textProperty.currentData.fc}}})),y}}),b}}();function _typeof(m){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(b){return typeof b}:function(b){return b&&"function"==typeof Symbol&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b})(m)}var FootageInterface=function(){return function(b){function T(C){return"Data"===C?T.dataInterface:null}return T._name="Data",T.dataInterface=function(T){function C(E){return"Outline"===E?C.outlineInterface():null}return C._name="Outline",C.outlineInterface=function(T){var C="",E=T.getFootageData();function k(R){if(E[R])return C=R,"object"===_typeof(E=E[R])?k:E;var P=R.indexOf(C);if(-1!==P){var G=parseInt(R.substr(P+C.length),10);return"object"===_typeof(E=E[G])?k:E}return""}return function D(){return C="",E=T.getFootageData(),k}}(T),C}(b),T}}(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(m){return interfaces[m]||null}var expressionHelpers=function(){return{searchExpressions:function m(D,k,R){k.x&&(R.k=!0,R.x=!0,R.initiateExpression=ExpressionManager.initiateExpression,R.effectsSequence.push(R.initiateExpression(D,k,R).bind(R)))},getSpeedAtTime:function b(D){var R=this.getValueAtTime(D),P=this.getValueAtTime(D+-.01),G=0;if(R.length){var Q;for(Q=0;Q<R.length;Q+=1)G+=Math.pow(P[Q]-R[Q],2);G=100*Math.sqrt(G)}else G=0;return G},getVelocityAtTime:function T(D){if(void 0!==this.vel)return this.vel;var G,Q,k=-.001,R=this.getValueAtTime(D),P=this.getValueAtTime(D+k);if(R.length)for(G=createTypedArray("float32",R.length),Q=0;Q<R.length;Q+=1)G[Q]=(P[Q]-R[Q])/k;else G=(P-R)/k;return G},getValueAtTime:function y(D){return D*=this.elem.globalData.frameRate,(D-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<D?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(D,this._cachingAtTime),this._cachingAtTime.lastFrame=D),this._cachingAtTime.value},getStaticValueAtTime:function C(){return this.pv},setGroupProperty:function E(D){this.propertyGroup=D}}}();function addPropertyDecorator(){function m(H,Z,X){if(!this.k||!this.keyframes)return this.pv;H=H?H.toLowerCase():"";var ne,N,Y,W,J,z=this.comp.renderedFrame,fe=this.keyframes,q=fe[fe.length-1].t;if(z<=q)return this.pv;if(X?N=q-(ne=Z?Math.abs(q-this.elem.comp.globalData.frameRate*Z):Math.max(0,q-this.elem.data.ip)):((!Z||Z>fe.length-1)&&(Z=fe.length-1),ne=q-(N=fe[fe.length-1-Z].t)),"pingpong"===H){if(Math.floor((z-N)/ne)%2!=0)return this.getValueAtTime((ne-(z-N)%ne+N)/this.comp.globalData.frameRate,0)}else{if("offset"===H){var K=this.getValueAtTime(N/this.comp.globalData.frameRate,0),se=this.getValueAtTime(q/this.comp.globalData.frameRate,0),De=this.getValueAtTime(((z-N)%ne+N)/this.comp.globalData.frameRate,0),Fe=Math.floor((z-N)/ne);if(this.pv.length){for(W=(J=new Array(K.length)).length,Y=0;Y<W;Y+=1)J[Y]=(se[Y]-K[Y])*Fe+De[Y];return J}return(se-K)*Fe+De}if("continue"===H){var _e=this.getValueAtTime(q/this.comp.globalData.frameRate,0),ke=this.getValueAtTime((q-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(W=(J=new Array(_e.length)).length,Y=0;Y<W;Y+=1)J[Y]=_e[Y]+(z-q)/this.comp.globalData.frameRate*(_e[Y]-ke[Y])/5e-4;return J}return _e+(z-q)/.001*(_e-ke)}}return this.getValueAtTime(((z-N)%ne+N)/this.comp.globalData.frameRate,0)}function y(H,Z,X){if(!this.k)return this.pv;H=H?H.toLowerCase():"";var ne,N,Y,W,J,z=this.comp.renderedFrame,fe=this.keyframes,q=fe[0].t;if(z>=q)return this.pv;if(X?N=q+(ne=Z?Math.abs(this.elem.comp.globalData.frameRate*Z):Math.max(0,this.elem.data.op-q)):((!Z||Z>fe.length-1)&&(Z=fe.length-1),ne=(N=fe[Z].t)-q),"pingpong"===H){if(Math.floor((q-z)/ne)%2==0)return this.getValueAtTime(((q-z)%ne+q)/this.comp.globalData.frameRate,0)}else{if("offset"===H){var K=this.getValueAtTime(q/this.comp.globalData.frameRate,0),se=this.getValueAtTime(N/this.comp.globalData.frameRate,0),De=this.getValueAtTime((ne-(q-z)%ne+q)/this.comp.globalData.frameRate,0),Fe=Math.floor((q-z)/ne)+1;if(this.pv.length){for(W=(J=new Array(K.length)).length,Y=0;Y<W;Y+=1)J[Y]=De[Y]-(se[Y]-K[Y])*Fe;return J}return De-(se-K)*Fe}if("continue"===H){var _e=this.getValueAtTime(q/this.comp.globalData.frameRate,0),ke=this.getValueAtTime((q+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(W=(J=new Array(_e.length)).length,Y=0;Y<W;Y+=1)J[Y]=_e[Y]+(_e[Y]-ke[Y])*(q-z)/.001;return J}return _e+(_e-ke)*(q-z)/.001}}return this.getValueAtTime((ne-((q-z)%ne+q))/this.comp.globalData.frameRate,0)}function b(H,Z){if(!this.k)return this.pv;if(H=.5*(H||.4),(Z=Math.floor(Z||5))<=1)return this.pv;var Y,W,X=this.comp.renderedFrame/this.comp.globalData.frameRate,z=X-H,q=Z>1?(X+H-z)/(Z-1):1,ne=0,N=0;for(Y=this.pv.length?createTypedArray("float32",this.pv.length):0;ne<Z;){if(W=this.getValueAtTime(z+ne*q),this.pv.length)for(N=0;N<this.pv.length;N+=1)Y[N]+=W[N];else Y+=W;ne+=1}if(this.pv.length)for(N=0;N<this.pv.length;N+=1)Y[N]/=Z;else Y/=Z;return Y}function T(H){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var Z=this._transformCachingAtTime.v;if(Z.cloneFromProps(this.pre.props),this.appliedTransformations<1){var X=this.a.getValueAtTime(H);Z.translate(-X[0]*this.a.mult,-X[1]*this.a.mult,X[2]*this.a.mult)}if(this.appliedTransformations<2){var z=this.s.getValueAtTime(H);Z.scale(z[0]*this.s.mult,z[1]*this.s.mult,z[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var fe=this.sk.getValueAtTime(H),q=this.sa.getValueAtTime(H);Z.skewFromAxis(-fe*this.sk.mult,q*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var ne=this.r.getValueAtTime(H);Z.rotate(-ne*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var N=this.rz.getValueAtTime(H),Y=this.ry.getValueAtTime(H),W=this.rx.getValueAtTime(H),J=this.or.getValueAtTime(H);Z.rotateZ(-N*this.rz.mult).rotateY(Y*this.ry.mult).rotateX(W*this.rx.mult).rotateZ(-J[2]*this.or.mult).rotateY(J[1]*this.or.mult).rotateX(J[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var n=this.px.getValueAtTime(H),K=this.py.getValueAtTime(H);if(this.data.p.z){var se=this.pz.getValueAtTime(H);Z.translate(n*this.px.mult,K*this.py.mult,-se*this.pz.mult)}else Z.translate(n*this.px.mult,K*this.py.mult,0)}else{var De=this.p.getValueAtTime(H);Z.translate(De[0]*this.p.mult,De[1]*this.p.mult,-De[2]*this.p.mult)}return Z}function C(){return this.v.clone(new Matrix)}var E=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(H,Z,X){var z=E(H,Z,X);return z.getValueAtTime=z.dynamicProperties.length?T.bind(z):C.bind(z),z.setGroupProperty=expressionHelpers.setGroupProperty,z};var D=PropertyFactory.getProp;PropertyFactory.getProp=function(H,Z,X,z,fe){var q=D(H,Z,X,z,fe);q.getValueAtTime=q.kf?expressionHelpers.getValueAtTime.bind(q):expressionHelpers.getStaticValueAtTime.bind(q),q.setGroupProperty=expressionHelpers.setGroupProperty,q.loopOut=m,q.loopIn=y,q.smooth=b,q.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(q),q.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(q),q.numKeys=1===Z.a?Z.k.length:0,q.propertyIndex=Z.ix;var ne=0;return 0!==X&&(ne=createTypedArray("float32",1===Z.a?Z.k[0].s.length:Z.k.length)),q._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:ne},expressionHelpers.searchExpressions(H,Z,q),q.k&&fe.addDynamicProperty(q),q};var R=ShapePropertyFactory.getConstructorFunction(),P=ShapePropertyFactory.getKeyframedConstructorFunction();function G(){}G.prototype={vertices:function(Z,X){this.k&&this.getValue();var z=this.v;void 0!==X&&(z=this.getValueAtTime(X,0));var fe,q=z._length,ne=z[Z],N=z.v,Y=createSizedArray(q);for(fe=0;fe<q;fe+=1)Y[fe]="i"===Z||"o"===Z?[ne[fe][0]-N[fe][0],ne[fe][1]-N[fe][1]]:[ne[fe][0],ne[fe][1]];return Y},points:function(Z){return this.vertices("v",Z)},inTangents:function(Z){return this.vertices("i",Z)},outTangents:function(Z){return this.vertices("o",Z)},isClosed:function(){return this.v.c},pointOnPath:function(Z,X){var z=this.v;void 0!==X&&(z=this.getValueAtTime(X,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(z));for(var J,fe=this._segmentsLength,q=fe.lengths,ne=fe.totalLength*Z,N=0,Y=q.length,W=0;N<Y;){if(W+q[N].addedLength>ne){var K=z.c&&N===Y-1?0:N+1;J=bez.getPointInSegment(z.v[N],z.v[K],z.o[N],z.i[K],(ne-W)/q[N].addedLength,q[N]);break}W+=q[N].addedLength,N+=1}return J||(J=z.c?[z.v[0][0],z.v[0][1]]:[z.v[z._length-1][0],z.v[z._length-1][1]]),J},vectorOnPath:function(Z,X,z){1==Z?Z=this.v.c:0==Z&&(Z=.999);var fe=this.pointOnPath(Z,X),q=this.pointOnPath(Z+.001,X),ne=q[0]-fe[0],N=q[1]-fe[1],Y=Math.sqrt(Math.pow(ne,2)+Math.pow(N,2));return 0===Y?[0,0]:"tangent"===z?[ne/Y,N/Y]:[-N/Y,ne/Y]},tangentOnPath:function(Z,X){return this.vectorOnPath(Z,X,"tangent")},normalOnPath:function(Z,X){return this.vectorOnPath(Z,X,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([G],R),extendPrototype([G],P),P.prototype.getValueAtTime=function k(H){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),H*=this.elem.globalData.frameRate,(H-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<H?this._caching.lastIndex:0,this._cachingAtTime.lastTime=H,this.interpolateShape(H,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},P.prototype.initiateExpression=ExpressionManager.initiateExpression;var Q=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(H,Z,X,z,fe){var q=Q(H,Z,X,z,fe);return q.propertyIndex=Z.ix,q.lock=!1,3===X?expressionHelpers.searchExpressions(H,Z.pt,q):4===X&&expressionHelpers.searchExpressions(H,Z.ks,q),q.k&&H.addDynamicProperty(q),q}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(y,b){var T=this.calculateExpression(b);if(y.t!==T){var C={};return this.copyData(C,y),C.t=T.toString(),C.__complete=!1,C}return y},TextProperty.prototype.searchProperty=function(){var y=this.searchKeyframes(),b=this.searchExpressions();return this.kf=y||b,this.kf},TextProperty.prototype.searchExpressions=function m(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function m(y,b){var C,E,T=createNS("feMerge");for(T.setAttribute("result",y),E=0;E<b.length;E+=1)(C=createNS("feMergeNode")).setAttribute("in",b[E]),T.appendChild(C),T.appendChild(C);return T}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(m,y,b,T,C){this.filterManager=y;var E=createNS("feColorMatrix");E.setAttribute("type","matrix"),E.setAttribute("color-interpolation-filters","linearRGB"),E.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=E,E.setAttribute("result",T+"_tint_1"),m.appendChild(E),(E=createNS("feColorMatrix")).setAttribute("type","matrix"),E.setAttribute("color-interpolation-filters","sRGB"),E.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),E.setAttribute("result",T+"_tint_2"),m.appendChild(E),this.matrixFilter=E;var D=this.createMergeNode(T,[C,T+"_tint_1",T+"_tint_2"]);m.appendChild(D)}function SVGFillFilter(m,y,b,T){this.filterManager=y;var C=createNS("feColorMatrix");C.setAttribute("type","matrix"),C.setAttribute("color-interpolation-filters","sRGB"),C.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),C.setAttribute("result",T),m.appendChild(C),this.matrixFilter=C}function SVGStrokeEffect(m,y,b){this.initialized=!1,this.filterManager=y,this.elem=b,this.paths=[]}function SVGTritoneFilter(m,y,b,T){this.filterManager=y;var C=createNS("feColorMatrix");C.setAttribute("type","matrix"),C.setAttribute("color-interpolation-filters","linearRGB"),C.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),m.appendChild(C);var E=createNS("feComponentTransfer");E.setAttribute("color-interpolation-filters","sRGB"),E.setAttribute("result",T),this.matrixFilter=E;var D=createNS("feFuncR");D.setAttribute("type","table"),E.appendChild(D),this.feFuncR=D;var k=createNS("feFuncG");k.setAttribute("type","table"),E.appendChild(k),this.feFuncG=k;var R=createNS("feFuncB");R.setAttribute("type","table"),E.appendChild(R),this.feFuncB=R,m.appendChild(E)}function SVGProLevelsFilter(m,y,b,T){this.filterManager=y;var C=this.filterManager.effectElements,E=createNS("feComponentTransfer");(C[10].p.k||0!==C[10].p.v||C[11].p.k||1!==C[11].p.v||C[12].p.k||1!==C[12].p.v||C[13].p.k||0!==C[13].p.v||C[14].p.k||1!==C[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",E)),(C[17].p.k||0!==C[17].p.v||C[18].p.k||1!==C[18].p.v||C[19].p.k||1!==C[19].p.v||C[20].p.k||0!==C[20].p.v||C[21].p.k||1!==C[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",E)),(C[24].p.k||0!==C[24].p.v||C[25].p.k||1!==C[25].p.v||C[26].p.k||1!==C[26].p.v||C[27].p.k||0!==C[27].p.v||C[28].p.k||1!==C[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",E)),(C[31].p.k||0!==C[31].p.v||C[32].p.k||1!==C[32].p.v||C[33].p.k||1!==C[33].p.v||C[34].p.k||0!==C[34].p.v||C[35].p.k||1!==C[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",E)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(E.setAttribute("color-interpolation-filters","sRGB"),m.appendChild(E)),(C[3].p.k||0!==C[3].p.v||C[4].p.k||1!==C[4].p.v||C[5].p.k||1!==C[5].p.v||C[6].p.k||0!==C[6].p.v||C[7].p.k||1!==C[7].p.v)&&((E=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),E.setAttribute("result",T),m.appendChild(E),this.feFuncRComposed=this.createFeFunc("feFuncR",E),this.feFuncGComposed=this.createFeFunc("feFuncG",E),this.feFuncBComposed=this.createFeFunc("feFuncB",E))}function SVGDropShadowEffect(m,y,b,T,C){var E=y.container.globalData.renderConfig.filterSize,D=y.data.fs||E;m.setAttribute("x",D.x||E.x),m.setAttribute("y",D.y||E.y),m.setAttribute("width",D.width||E.width),m.setAttribute("height",D.height||E.height),this.filterManager=y;var k=createNS("feGaussianBlur");k.setAttribute("in","SourceAlpha"),k.setAttribute("result",T+"_drop_shadow_1"),k.setAttribute("stdDeviation","0"),this.feGaussianBlur=k,m.appendChild(k);var R=createNS("feOffset");R.setAttribute("dx","25"),R.setAttribute("dy","0"),R.setAttribute("in",T+"_drop_shadow_1"),R.setAttribute("result",T+"_drop_shadow_2"),this.feOffset=R,m.appendChild(R);var P=createNS("feFlood");P.setAttribute("flood-color","#00ff00"),P.setAttribute("flood-opacity","1"),P.setAttribute("result",T+"_drop_shadow_3"),this.feFlood=P,m.appendChild(P);var G=createNS("feComposite");G.setAttribute("in",T+"_drop_shadow_3"),G.setAttribute("in2",T+"_drop_shadow_2"),G.setAttribute("operator","in"),G.setAttribute("result",T+"_drop_shadow_4"),m.appendChild(G);var Q=this.createMergeNode(T,[T+"_drop_shadow_4",C]);m.appendChild(Q)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(m){if(m||this.filterManager._mdf){var y=this.filterManager.effectElements[0].p.v,b=this.filterManager.effectElements[1].p.v;this.linearFilter.setAttribute("values",linearFilterValue+" "+this.filterManager.effectElements[2].p.v/100+" 0"),this.matrixFilter.setAttribute("values",b[0]-y[0]+" 0 0 0 "+y[0]+" "+(b[1]-y[1])+" 0 0 0 "+y[1]+" "+(b[2]-y[2])+" 0 0 0 "+y[2]+" 0 0 0 1 0")}},SVGFillFilter.prototype.renderFrame=function(m){if(m||this.filterManager._mdf){var y=this.filterManager.effectElements[2].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+y[0]+" 0 0 0 0 "+y[1]+" 0 0 0 0 "+y[2]+" 0 0 0 "+this.filterManager.effectElements[6].p.v+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var y,b,T,C,m=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(C=this.elem.maskManager.masksProperties.length,T=0):C=1+(T=this.filterManager.effectElements[0].p.v-1),(b=createNS("g")).setAttribute("fill","none"),b.setAttribute("stroke-linecap","round"),b.setAttribute("stroke-dashoffset",1);T<C;T+=1)y=createNS("path"),b.appendChild(y),this.paths.push({p:y,m:T});if(3===this.filterManager.effectElements[10].p.v){var E=createNS("mask"),D=createElementID();E.setAttribute("id",D),E.setAttribute("mask-type","alpha"),E.appendChild(b),this.elem.globalData.defs.appendChild(E);var k=createNS("g");for(k.setAttribute("mask","url("+getLocationHref()+"#"+D+")");m[0];)k.appendChild(m[0]);this.elem.layerElement.appendChild(k),this.masker=E,b.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(m=this.elem.layerElement.children||this.elem.layerElement.childNodes;m.length;)this.elem.layerElement.removeChild(m[0]);this.elem.layerElement.appendChild(b),this.elem.layerElement.removeAttribute("mask"),b.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=b},SVGStrokeEffect.prototype.renderFrame=function(m){this.initialized||this.initialize();var y,T,C,b=this.paths.length;for(y=0;y<b;y+=1)if(-1!==this.paths[y].m&&(T=this.elem.maskManager.viewData[this.paths[y].m],C=this.paths[y].p,(m||this.filterManager._mdf||T.prop._mdf)&&C.setAttribute("d",T.lastPath),m||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||T.prop._mdf)){var E;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var D=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),k=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),R=C.getTotalLength();E="0 0 0 "+R*D+" ";var H,Q=Math.floor(R*(k-D)/(1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01));for(H=0;H<Q;H+=1)E+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";E+="0 "+10*R+" 0 0"}else E="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;C.setAttribute("stroke-dasharray",E)}if((m||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(m||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(m||this.filterManager.effectElements[3].p._mdf)){var Z=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*Z[0])+","+bmFloor(255*Z[1])+","+bmFloor(255*Z[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(m){if(m||this.filterManager._mdf){var y=this.filterManager.effectElements[0].p.v,b=this.filterManager.effectElements[1].p.v,T=this.filterManager.effectElements[2].p.v,E=T[1]+" "+b[1]+" "+y[1],D=T[2]+" "+b[2]+" "+y[2];this.feFuncR.setAttribute("tableValues",T[0]+" "+b[0]+" "+y[0]),this.feFuncG.setAttribute("tableValues",E),this.feFuncB.setAttribute("tableValues",D)}},SVGProLevelsFilter.prototype.createFeFunc=function(m,y){var b=createNS(m);return b.setAttribute("type","table"),y.appendChild(b),b},SVGProLevelsFilter.prototype.getTableValue=function(m,y,b,T,C){for(var k,Q,E=0,R=Math.min(m,y),P=Math.max(m,y),G=Array.call(null,{length:256}),H=0,Z=C-T,X=y-m;E<=256;)Q=(k=E/256)<=R?X<0?C:T:k>=P?X<0?T:C:T+Z*Math.pow((k-m)/X,1/b),G[H]=Q,H+=1,E+=256/255;return G.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(m){if(m||this.filterManager._mdf){var y,b=this.filterManager.effectElements;this.feFuncRComposed&&(m||b[3].p._mdf||b[4].p._mdf||b[5].p._mdf||b[6].p._mdf||b[7].p._mdf)&&(y=this.getTableValue(b[3].p.v,b[4].p.v,b[5].p.v,b[6].p.v,b[7].p.v),this.feFuncRComposed.setAttribute("tableValues",y),this.feFuncGComposed.setAttribute("tableValues",y),this.feFuncBComposed.setAttribute("tableValues",y)),this.feFuncR&&(m||b[10].p._mdf||b[11].p._mdf||b[12].p._mdf||b[13].p._mdf||b[14].p._mdf)&&(y=this.getTableValue(b[10].p.v,b[11].p.v,b[12].p.v,b[13].p.v,b[14].p.v),this.feFuncR.setAttribute("tableValues",y)),this.feFuncG&&(m||b[17].p._mdf||b[18].p._mdf||b[19].p._mdf||b[20].p._mdf||b[21].p._mdf)&&(y=this.getTableValue(b[17].p.v,b[18].p.v,b[19].p.v,b[20].p.v,b[21].p.v),this.feFuncG.setAttribute("tableValues",y)),this.feFuncB&&(m||b[24].p._mdf||b[25].p._mdf||b[26].p._mdf||b[27].p._mdf||b[28].p._mdf)&&(y=this.getTableValue(b[24].p.v,b[25].p.v,b[26].p.v,b[27].p.v,b[28].p.v),this.feFuncB.setAttribute("tableValues",y)),this.feFuncA&&(m||b[31].p._mdf||b[32].p._mdf||b[33].p._mdf||b[34].p._mdf||b[35].p._mdf)&&(y=this.getTableValue(b[31].p.v,b[32].p.v,b[33].p.v,b[34].p.v,b[35].p.v),this.feFuncA.setAttribute("tableValues",y))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(m){if(m||this.filterManager._mdf){if((m||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),m||this.filterManager.effectElements[0].p._mdf){var y=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*y[0]),Math.round(255*y[1]),Math.round(255*y[2])))}if((m||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),m||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var b=this.filterManager.effectElements[3].p.v,T=(this.filterManager.effectElements[2].p.v-90)*degToRads,C=b*Math.cos(T),E=b*Math.sin(T);this.feOffset.setAttribute("dx",C),this.feOffset.setAttribute("dy",E)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(m,y,b){this.initialized=!1,this.filterManager=y,this.filterElem=m,this.elem=b,b.matteElement=createNS("g"),b.matteElement.appendChild(b.layerElement),b.matteElement.appendChild(b.transformedElement),b.baseElement=b.matteElement}function SVGGaussianBlurEffect(m,y,b,T){m.setAttribute("x","-100%"),m.setAttribute("y","-100%"),m.setAttribute("width","300%"),m.setAttribute("height","300%"),this.filterManager=y;var C=createNS("feGaussianBlur");C.setAttribute("result",T),m.appendChild(C),this.feGaussianBlur=C}function TransformEffect(){}function SVGTransformEffect(m,y){this.init(y)}function CVTransformEffect(m){this.init(m)}return SVGMatte3Effect.prototype.findSymbol=function(m){for(var y=0,b=_svgMatteSymbols.length;y<b;){if(_svgMatteSymbols[y]===m)return _svgMatteSymbols[y];y+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(m,y){var b=m.layerElement.parentNode;if(b){for(var T=b.children,C=0,E=T.length;C<E&&T[C]!==m.layerElement;)C+=1;var D;C<=E-2&&(D=T[C+1]);var k=createNS("use");k.setAttribute("href","#"+y),D?b.insertBefore(k,D):b.appendChild(k)}},SVGMatte3Effect.prototype.setElementAsMask=function(m,y){if(!this.findSymbol(y)){var b=createElementID(),T=createNS("mask");T.setAttribute("id",y.layerId),T.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(y);var C=m.globalData.defs;C.appendChild(T);var E=createNS("symbol");E.setAttribute("id",b),this.replaceInParent(y,b),E.appendChild(y.layerElement),C.appendChild(E);var D=createNS("use");D.setAttribute("href","#"+b),T.appendChild(D),y.data.hd=!1,y.show()}m.setMatte(y.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var m=this.filterManager.effectElements[0].p.v,y=this.elem.comp.elements,b=0,T=y.length;b<T;)y[b]&&y[b].data.ind===m&&this.setElementAsMask(this.elem,y[b]),b+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(m){if(m||this.filterManager._mdf){var b=.3*this.filterManager.effectElements[0].p.v,T=this.filterManager.effectElements[1].p.v;this.feGaussianBlur.setAttribute("stdDeviation",(3==T?0:b)+" "+(2==T?0:b)),this.feGaussianBlur.setAttribute("edgeMode",1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate")}},TransformEffect.prototype.init=function(m){this.effectsManager=m,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(m){if(this._opMdf=!1,this._mdf=!1,m||this.effectsManager._mdf){var y=this.effectsManager.effectElements,b=y[0].p.v,T=y[1].p.v,E=y[3].p.v,D=1===y[2].p.v?E:y[4].p.v,k=y[5].p.v,R=y[6].p.v,P=y[7].p.v;this.matrix.reset(),this.matrix.translate(-b[0],-b[1],b[2]),this.matrix.scale(.01*D,.01*E,1),this.matrix.rotate(-P*degToRads),this.matrix.skewFromAxis(-k*degToRads,(R+90)*degToRads),this.matrix.translate(T[0],T[1],0),this._mdf=!0,this.opacity!==y[8].p.v&&(this.opacity=y[8].p.v,this._opMdf=!0)}},extendPrototype([TransformEffect],SVGTransformEffect),extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie},module.exports=y())},1544:function(m,y,b){!function(T){"use strict";T.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(E){return/^nm$/i.test(E)},meridiem:function(E,D,k){return E<12?k?"vm":"VM":k?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[M\xf4re om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(E){return E+(1===E||8===E||E>=20?"ste":"de")},week:{dow:1,doy:4}})}(b(7586))},2155:function(m,y,b){!function(T){"use strict";var C=function(P){return 0===P?0:1===P?1:2===P?2:P%100>=3&&P%100<=10?3:P%100>=11?4:5},E={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},D=function(P){return function(G,Q,H,Z){var X=C(G),z=E[P][C(G)];return 2===X&&(z=z[Q?0:1]),z.replace(/%d/i,G)}},k=["\u062c\u0627\u0646\u0641\u064a","\u0641\u064a\u0641\u0631\u064a","\u0645\u0627\u0631\u0633","\u0623\u0641\u0631\u064a\u0644","\u0645\u0627\u064a","\u062c\u0648\u0627\u0646","\u062c\u0648\u064a\u0644\u064a\u0629","\u0623\u0648\u062a","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];T.defineLocale("ar-dz",{months:k,monthsShort:k,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(P){return"\u0645"===P},meridiem:function(P,G,Q){return P<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:D("s"),ss:D("s"),m:D("m"),mm:D("m"),h:D("h"),hh:D("h"),d:D("d"),dd:D("d"),M:D("M"),MM:D("M"),y:D("y"),yy:D("y")},postformat:function(P){return P.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})}(b(7586))},3583:function(m,y,b){!function(T){"use strict";T.defineLocale("ar-kw",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062a\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062a\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:0,doy:12}})}(b(7586))},1638:function(m,y,b){!function(T){"use strict";var C={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},E=function(G){return 0===G?0:1===G?1:2===G?2:G%100>=3&&G%100<=10?3:G%100>=11?4:5},D={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},k=function(G){return function(Q,H,Z,X){var z=E(Q),fe=D[G][E(Q)];return 2===z&&(fe=fe[H?0:1]),fe.replace(/%d/i,Q)}},R=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];T.defineLocale("ar-ly",{months:R,monthsShort:R,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(G){return"\u0645"===G},meridiem:function(G,Q,H){return G<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:k("s"),ss:k("s"),m:k("m"),mm:k("m"),h:k("h"),hh:k("h"),d:k("d"),dd:k("d"),M:k("M"),MM:k("M"),y:k("y"),yy:k("y")},preparse:function(G){return G.replace(/\u060c/g,",")},postformat:function(G){return G.replace(/\d/g,function(Q){return C[Q]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(b(7586))},7823:function(m,y,b){!function(T){"use strict";T.defineLocale("ar-ma",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(b(7586))},7712:function(m,y,b){!function(T){"use strict";var C={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},E={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};T.defineLocale("ar-ps",{months:"\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u062b\u0627\u0646\u064a_\u0634\u0628\u0627\u0637_\u0622\u0630\u0627\u0631_\u0646\u064a\u0633\u0627\u0646_\u0623\u064a\u0651\u0627\u0631_\u062d\u0632\u064a\u0631\u0627\u0646_\u062a\u0645\u0651\u0648\u0632_\u0622\u0628_\u0623\u064a\u0644\u0648\u0644_\u062a\u0634\u0631\u064a \u0627\u0644\u0623\u0648\u0651\u0644_\u062a\u0634\u0631\u064a\u0646 \u0627\u0644\u062b\u0627\u0646\u064a_\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u0623\u0648\u0651\u0644".split("_"),monthsShort:"\u0643\u0662_\u0634\u0628\u0627\u0637_\u0622\u0630\u0627\u0631_\u0646\u064a\u0633\u0627\u0646_\u0623\u064a\u0651\u0627\u0631_\u062d\u0632\u064a\u0631\u0627\u0646_\u062a\u0645\u0651\u0648\u0632_\u0622\u0628_\u0623\u064a\u0644\u0648\u0644_\u062a\u0661_\u062a\u0662_\u0643\u0661".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(k){return"\u0645"===k},meridiem:function(k,R,P){return k<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(k){return k.replace(/[\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(R){return E[R]}).split("").reverse().join("").replace(/[\u0661\u0662](?![\u062a\u0643])/g,function(R){return E[R]}).split("").reverse().join("").replace(/\u060c/g,",")},postformat:function(k){return k.replace(/\d/g,function(R){return C[R]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(b(7586))},8261:function(m,y,b){!function(T){"use strict";var C={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},E={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};T.defineLocale("ar-sa",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(k){return"\u0645"===k},meridiem:function(k,R,P){return k<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(k){return k.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(R){return E[R]}).replace(/\u060c/g,",")},postformat:function(k){return k.replace(/\d/g,function(R){return C[R]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(b(7586))},6703:function(m,y,b){!function(T){"use strict";T.defineLocale("ar-tn",{months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(b(7586))},3108:function(m,y,b){!function(T){"use strict";var C={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},E={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},D=function(Q){return 0===Q?0:1===Q?1:2===Q?2:Q%100>=3&&Q%100<=10?3:Q%100>=11?4:5},k={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},R=function(Q){return function(H,Z,X,z){var fe=D(H),q=k[Q][D(H)];return 2===fe&&(q=q[Z?0:1]),q.replace(/%d/i,H)}},P=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];T.defineLocale("ar",{months:P,monthsShort:P,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(Q){return"\u0645"===Q},meridiem:function(Q,H,Z){return Q<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:R("s"),ss:R("s"),m:R("m"),mm:R("m"),h:R("h"),hh:R("h"),d:R("d"),dd:R("d"),M:R("M"),MM:R("M"),y:R("y"),yy:R("y")},preparse:function(Q){return Q.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(H){return E[H]}).replace(/\u060c/g,",")},postformat:function(Q){return Q.replace(/\d/g,function(H){return C[H]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(b(7586))},6508:function(m,y,b){!function(T){"use strict";var C={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-\xfcnc\xfc",4:"-\xfcnc\xfc",100:"-\xfcnc\xfc",6:"-nc\u0131",9:"-uncu",10:"-uncu",30:"-uncu",60:"-\u0131nc\u0131",90:"-\u0131nc\u0131"};T.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ert\u0259si_\xc7\u0259r\u015f\u0259nb\u0259 ax\u015fam\u0131_\xc7\u0259r\u015f\u0259nb\u0259_C\xfcm\u0259 ax\u015fam\u0131_C\xfcm\u0259_\u015e\u0259nb\u0259".split("_"),weekdaysShort:"Baz_BzE_\xc7Ax_\xc7\u0259r_CAx_C\xfcm_\u015e\u0259n".split("_"),weekdaysMin:"Bz_BE_\xc7A_\xc7\u0259_CA_C\xfc_\u015e\u0259".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[g\u0259l\u0259n h\u0259ft\u0259] dddd [saat] LT",lastDay:"[d\xfcn\u0259n] LT",lastWeek:"[ke\xe7\u0259n h\u0259ft\u0259] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \u0259vv\u0259l",s:"bir ne\xe7\u0259 saniy\u0259",ss:"%d saniy\u0259",m:"bir d\u0259qiq\u0259",mm:"%d d\u0259qiq\u0259",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(D){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(D)},meridiem:function(D,k,R){return D<4?"gec\u0259":D<12?"s\u0259h\u0259r":D<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(D){if(0===D)return D+"-\u0131nc\u0131";var k=D%10;return D+(C[k]||C[D%100-k]||C[D>=100?100:null])},week:{dow:1,doy:7}})}(b(7586))},6766:function(m,y,b){!function(T){"use strict";function E(k,R,P){return"m"===P?R?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===P?R?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":k+" "+function C(k,R){var P=k.split("_");return R%10==1&&R%100!=11?P[0]:R%10>=2&&R%10<=4&&(R%100<10||R%100>=20)?P[1]:P[2]}({ss:R?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:R?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d",hh:R?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d",dd:"\u0434\u0437\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u0437\u0451\u043d",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u044b_\u043c\u0435\u0441\u044f\u0446\u0430\u045e",yy:"\u0433\u043e\u0434_\u0433\u0430\u0434\u044b_\u0433\u0430\u0434\u043e\u045e"}[P],+k)}T.defineLocale("be",{months:{format:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),standalone:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c_\u043b\u044e\u0442\u044b_\u0441\u0430\u043a\u0430\u0432\u0456\u043a_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u044d\u0440\u0432\u0435\u043d\u044c_\u043b\u0456\u043f\u0435\u043d\u044c_\u0436\u043d\u0456\u0432\u0435\u043d\u044c_\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434_\u0441\u043d\u0435\u0436\u0430\u043d\u044c".split("_")},monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".split("_"),weekdays:{format:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),standalone:"\u043d\u044f\u0434\u0437\u0435\u043b\u044f_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0430_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"},calendar:{sameDay:"[\u0421\u0451\u043d\u043d\u044f \u045e] LT",nextDay:"[\u0417\u0430\u045e\u0442\u0440\u0430 \u045e] LT",lastDay:"[\u0423\u0447\u043e\u0440\u0430 \u045e] LT",nextWeek:function(){return"[\u0423] dddd [\u045e] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u0443\u044e] dddd [\u045e] LT";case 1:case 2:case 4:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u044b] dddd [\u045e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u0440\u0430\u0437 %s",past:"%s \u0442\u0430\u043c\u0443",s:"\u043d\u0435\u043a\u0430\u043b\u044c\u043a\u0456 \u0441\u0435\u043a\u0443\u043d\u0434",m:E,mm:E,h:E,hh:E,d:"\u0434\u0437\u0435\u043d\u044c",dd:E,M:"\u043c\u0435\u0441\u044f\u0446",MM:E,y:"\u0433\u043e\u0434",yy:E},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(k){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(k)},meridiem:function(k,R,P){return k<4?"\u043d\u043e\u0447\u044b":k<12?"\u0440\u0430\u043d\u0456\u0446\u044b":k<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(k,R){switch(R){case"M":case"d":case"DDD":case"w":case"W":return k%10!=2&&k%10!=3||k%100==12||k%100==13?k+"-\u044b":k+"-\u0456";case"D":return k+"-\u0433\u0430";default:return k}},week:{dow:1,doy:7}})}(b(7586))},8564:function(m,y,b){!function(T){"use strict";T.defineLocale("bg",{months:"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u044f\u043d\u0443_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u043d\u0435\u0441 \u0432] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432] LT",nextWeek:"dddd [\u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u041c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u041c\u0438\u043d\u0430\u043b\u0438\u044f] dddd [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0441\u043b\u0435\u0434 %s",past:"\u043f\u0440\u0435\u0434\u0438 %s",s:"\u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",w:"\u0441\u0435\u0434\u043c\u0438\u0446\u0430",ww:"%d \u0441\u0435\u0434\u043c\u0438\u0446\u0438",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(E){var D=E%10,k=E%100;return 0===E?E+"-\u0435\u0432":0===k?E+"-\u0435\u043d":k>10&&k<20?E+"-\u0442\u0438":1===D?E+"-\u0432\u0438":2===D?E+"-\u0440\u0438":7===D||8===D?E+"-\u043c\u0438":E+"-\u0442\u0438"},week:{dow:1,doy:7}})}(b(7586))},7462:function(m,y,b){!function(T){"use strict";T.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025bkalo_Zuw\u025bnkalo_Zuluyekalo_Utikalo_S\u025btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_M\u025b_Zuw_Zul_Uti_S\u025bt_\u0254ku_Now_Des".split("_"),weekdays:"Kari_Nt\u025bn\u025bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Nt\u025b_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm"},calendar:{sameDay:"[Bi l\u025br\u025b] LT",nextDay:"[Sini l\u025br\u025b] LT",nextWeek:"dddd [don l\u025br\u025b] LT",lastDay:"[Kunu l\u025br\u025b] LT",lastWeek:"dddd [t\u025bm\u025bnen l\u025br\u025b] LT",sameElse:"L"},relativeTime:{future:"%s k\u0254n\u0254",past:"a b\u025b %s b\u0254",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"l\u025br\u025b kelen",hh:"l\u025br\u025b %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(b(7586))},3438:function(m,y,b){!function(T){"use strict";var C={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},E={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};T.defineLocale("bn-bd",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(k){return k.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(R){return E[R]})},postformat:function(k){return k.replace(/\d/g,function(R){return C[R]})},meridiemParse:/\u09b0\u09be\u09a4|\u09ad\u09cb\u09b0|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be|\u09b0\u09be\u09a4/,meridiemHour:function(k,R){return 12===k&&(k=0),"\u09b0\u09be\u09a4"===R?k<4?k:k+12:"\u09ad\u09cb\u09b0"===R||"\u09b8\u0995\u09be\u09b2"===R?k:"\u09a6\u09c1\u09aa\u09c1\u09b0"===R?k>=3?k:k+12:"\u09ac\u09bf\u0995\u09be\u09b2"===R||"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be"===R?k+12:void 0},meridiem:function(k,R,P){return k<4?"\u09b0\u09be\u09a4":k<6?"\u09ad\u09cb\u09b0":k<12?"\u09b8\u0995\u09be\u09b2":k<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":k<18?"\u09ac\u09bf\u0995\u09be\u09b2":k<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(b(7586))},7107:function(m,y,b){!function(T){"use strict";var C={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},E={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};T.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(k){return k.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(R){return E[R]})},postformat:function(k){return k.replace(/\d/g,function(R){return C[R]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(k,R){return 12===k&&(k=0),"\u09b0\u09be\u09a4"===R&&k>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===R&&k<5||"\u09ac\u09bf\u0995\u09be\u09b2"===R?k+12:k},meridiem:function(k,R,P){return k<4?"\u09b0\u09be\u09a4":k<10?"\u09b8\u0995\u09be\u09b2":k<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":k<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(b(7586))},9004:function(m,y,b){!function(T){"use strict";var C={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},E={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};T.defineLocale("bo",{months:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),monthsShort:"\u0f5f\u0fb3\u0f0b1_\u0f5f\u0fb3\u0f0b2_\u0f5f\u0fb3\u0f0b3_\u0f5f\u0fb3\u0f0b4_\u0f5f\u0fb3\u0f0b5_\u0f5f\u0fb3\u0f0b6_\u0f5f\u0fb3\u0f0b7_\u0f5f\u0fb3\u0f0b8_\u0f5f\u0fb3\u0f0b9_\u0f5f\u0fb3\u0f0b10_\u0f5f\u0fb3\u0f0b11_\u0f5f\u0fb3\u0f0b12".split("_"),monthsShortRegex:/^(\u0f5f\u0fb3\u0f0b\d{1,2})/,monthsParseExact:!0,weekdays:"\u0f42\u0f5f\u0f60\u0f0b\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f42\u0f5f\u0f60\u0f0b\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysShort:"\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysMin:"\u0f49\u0f72_\u0f5f\u0fb3_\u0f58\u0f72\u0f42_\u0f63\u0fb7\u0f42_\u0f55\u0f74\u0f62_\u0f66\u0f44\u0f66_\u0f66\u0fa4\u0f7a\u0f53".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0f51\u0f72\u0f0b\u0f62\u0f72\u0f44] LT",nextDay:"[\u0f66\u0f44\u0f0b\u0f49\u0f72\u0f53] LT",nextWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f62\u0f97\u0f7a\u0f66\u0f0b\u0f58], LT",lastDay:"[\u0f41\u0f0b\u0f66\u0f44] LT",lastWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f58\u0f50\u0f60\u0f0b\u0f58] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0f63\u0f0b",past:"%s \u0f66\u0f94\u0f53\u0f0b\u0f63",s:"\u0f63\u0f58\u0f0b\u0f66\u0f44",ss:"%d \u0f66\u0f90\u0f62\u0f0b\u0f46\u0f0d",m:"\u0f66\u0f90\u0f62\u0f0b\u0f58\u0f0b\u0f42\u0f45\u0f72\u0f42",mm:"%d \u0f66\u0f90\u0f62\u0f0b\u0f58",h:"\u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51\u0f0b\u0f42\u0f45\u0f72\u0f42",hh:"%d \u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51",d:"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f45\u0f72\u0f42",dd:"%d \u0f49\u0f72\u0f53\u0f0b",M:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f45\u0f72\u0f42",MM:"%d \u0f5f\u0fb3\u0f0b\u0f56",y:"\u0f63\u0f7c\u0f0b\u0f42\u0f45\u0f72\u0f42",yy:"%d \u0f63\u0f7c"},preparse:function(k){return k.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(R){return E[R]})},postformat:function(k){return k.replace(/\d/g,function(R){return C[R]})},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(k,R){return 12===k&&(k=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===R&&k>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===R&&k<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===R?k+12:k},meridiem:function(k,R,P){return k<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":k<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":k<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":k<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(b(7586))},927:function(m,y,b){!function(T){"use strict";function C(q,ne,N){return q+" "+function k(q,ne){return 2===ne?function R(q){var ne={m:"v",b:"v",d:"z"};return void 0===ne[q.charAt(0)]?q:ne[q.charAt(0)]+q.substring(1)}(q):q}({mm:"munutenn",MM:"miz",dd:"devezh"}[N],q)}function D(q){return q>9?D(q%10):q}var P=[/^gen/i,/^c[\u02bc\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],G=/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,z=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];T.defineLocale("br",{months:"Genver_C\u02bchwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C\u02bchwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc\u02bcher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:z,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[\u02bc\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:z,monthsRegex:G,monthsShortRegex:G,monthsStrictRegex:/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:P,longMonthsParse:P,shortMonthsParse:P,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc\u02bchoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec\u02bch da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s \u02bczo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:C,h:"un eur",hh:"%d eur",d:"un devezh",dd:C,M:"ur miz",MM:C,y:"ur bloaz",yy:function E(q){switch(D(q)){case 1:case 3:case 4:case 5:case 9:return q+" bloaz";default:return q+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(q){return q+(1===q?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(q){return"g.m."===q},meridiem:function(q,ne,N){return q<12?"a.m.":"g.m."}})}(b(7586))},7768:function(m,y,b){!function(T){"use strict";function E(k,R,P){var G=k+" ";switch(P){case"ss":return G+(1===k?"sekunda":2===k||3===k||4===k?"sekunde":"sekundi");case"mm":return G+(1===k?"minuta":2===k||3===k||4===k?"minute":"minuta");case"h":return"jedan sat";case"hh":return G+(1===k?"sat":2===k||3===k||4===k?"sata":"sati");case"dd":return G+(1===k?"dan":"dana");case"MM":return G+(1===k?"mjesec":2===k||3===k||4===k?"mjeseca":"mjeseci");case"yy":return G+(1===k?"godina":2===k||3===k||4===k?"godine":"godina")}}T.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[pro\u0161lu] dddd [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:E,m:function C(k,R,P,G){if("m"===P)return R?"jedna minuta":G?"jednu minutu":"jedne minute"},mm:E,h:E,hh:E,d:"dan",dd:E,M:"mjesec",MM:E,y:"godinu",yy:E},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(b(7586))},6291:function(m,y,b){!function(T){"use strict";T.defineLocale("ca",{months:{standalone:"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[dem\xe0 a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(E,D){var k=1===E?"r":2===E?"n":3===E?"r":4===E?"t":"\xe8";return("w"===D||"W"===D)&&(k="a"),E+k},week:{dow:1,doy:4}})}(b(7586))},5301:function(m,y,b){!function(T){"use strict";var C={standalone:"leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),format:"ledna_\xfanora_b\u0159ezna_dubna_kv\u011btna_\u010dervna_\u010dervence_srpna_z\xe1\u0159\xed_\u0159\xedjna_listopadu_prosince".split("_"),isFormat:/DD?[o.]?(\[[^\[\]]*\]|\s)+MMMM/},E="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),D=[/^led/i,/^\xfano/i,/^b\u0159e/i,/^dub/i,/^kv\u011b/i,/^(\u010dvn|\u010derven$|\u010dervna)/i,/^(\u010dvc|\u010dervenec|\u010dervence)/i,/^srp/i,/^z\xe1\u0159/i,/^\u0159\xedj/i,/^lis/i,/^pro/i],k=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;function R(Q){return Q>1&&Q<5&&1!=~~(Q/10)}function P(Q,H,Z,X){var z=Q+" ";switch(Z){case"s":return H||X?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return H||X?z+(R(Q)?"sekundy":"sekund"):z+"sekundami";case"m":return H?"minuta":X?"minutu":"minutou";case"mm":return H||X?z+(R(Q)?"minuty":"minut"):z+"minutami";case"h":return H?"hodina":X?"hodinu":"hodinou";case"hh":return H||X?z+(R(Q)?"hodiny":"hodin"):z+"hodinami";case"d":return H||X?"den":"dnem";case"dd":return H||X?z+(R(Q)?"dny":"dn\xed"):z+"dny";case"M":return H||X?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return H||X?z+(R(Q)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):z+"m\u011bs\xedci";case"y":return H||X?"rok":"rokem";case"yy":return H||X?z+(R(Q)?"roky":"let"):z+"lety"}}T.defineLocale("cs",{months:C,monthsShort:E,monthsRegex:k,monthsShortRegex:k,monthsStrictRegex:/^(leden|ledna|\xfanora|\xfanor|b\u0159ezen|b\u0159ezna|duben|dubna|kv\u011bten|kv\u011btna|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|srpna|z\xe1\u0159\xed|\u0159\xedjen|\u0159\xedjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i,monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),weekdaysShort:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),weekdaysMin:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[z\xedtra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v ned\u011bli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve st\u0159edu v] LT";case 4:return"[ve \u010dtvrtek v] LT";case 5:return"[v p\xe1tek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[v\u010dera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou ned\u011bli v] LT";case 1:case 2:return"[minul\xe9] dddd [v] LT";case 3:return"[minulou st\u0159edu v] LT";case 4:case 5:return"[minul\xfd] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:P,ss:P,m:P,mm:P,h:P,hh:P,d:P,dd:P,M:P,MM:P,y:P,yy:P},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(b(7586))},6666:function(m,y,b){!function(T){"use strict";T.defineLocale("cv",{months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"},calendar:{sameDay:"[\u041f\u0430\u044f\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextDay:"[\u042b\u0440\u0430\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastDay:"[\u04d6\u043d\u0435\u0440] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextWeek:"[\u04aa\u0438\u0442\u0435\u0441] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastWeek:"[\u0418\u0440\u0442\u043d\u04d7] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",sameElse:"L"},relativeTime:{future:function(E){return E+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(E)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(E)?"\u0442\u0430\u043d":"\u0440\u0430\u043d")},past:"%s \u043a\u0430\u044f\u043b\u043b\u0430",s:"\u043f\u04d7\u0440-\u0438\u043a \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",ss:"%d \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",m:"\u043f\u04d7\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u043f\u04d7\u0440 \u0441\u0435\u0445\u0435\u0442",hh:"%d \u0441\u0435\u0445\u0435\u0442",d:"\u043f\u04d7\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u043f\u04d7\u0440 \u0443\u0439\u04d1\u0445",MM:"%d \u0443\u0439\u04d1\u0445",y:"\u043f\u04d7\u0440 \u04ab\u0443\u043b",yy:"%d \u04ab\u0443\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-\u043c\u04d7\u0448",week:{dow:1,doy:7}})}(b(7586))},5163:function(m,y,b){!function(T){"use strict";T.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn \xf4l",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(E){var k="";return E>20?k=40===E||50===E||60===E||80===E||100===E?"fed":"ain":E>0&&(k=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][E]),E+k},week:{dow:1,doy:4}})}(b(7586))},7360:function(m,y,b){!function(T){"use strict";T.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n_man_tir_ons_tor_fre_l\xf8r".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xe5 dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(b(7586))},3248:function(m,y,b){!function(T){"use strict";function C(D,k,R,P){var G={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[D+" Tage",D+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[D+" Monate",D+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[D+" Jahre",D+" Jahren"]};return k?G[R][0]:G[R][1]}T.defineLocale("de-at",{months:"J\xe4nner_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xe4n._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:C,mm:"%d Minuten",h:C,hh:"%d Stunden",d:C,dd:C,w:C,ww:"%d Wochen",M:C,MM:C,y:C,yy:C},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(b(7586))},3222:function(m,y,b){!function(T){"use strict";function C(D,k,R,P){var G={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[D+" Tage",D+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[D+" Monate",D+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[D+" Jahre",D+" Jahren"]};return k?G[R][0]:G[R][1]}T.defineLocale("de-ch",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:C,mm:"%d Minuten",h:C,hh:"%d Stunden",d:C,dd:C,w:C,ww:"%d Wochen",M:C,MM:C,y:C,yy:C},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(b(7586))},5932:function(m,y,b){!function(T){"use strict";function C(D,k,R,P){var G={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[D+" Tage",D+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[D+" Monate",D+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[D+" Jahre",D+" Jahren"]};return k?G[R][0]:G[R][1]}T.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:C,mm:"%d Minuten",h:C,hh:"%d Stunden",d:C,dd:C,w:C,ww:"%d Wochen",M:C,MM:C,y:C,yy:C},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(b(7586))},6405:function(m,y,b){!function(T){"use strict";var C=["\u0796\u07ac\u0782\u07aa\u0787\u07a6\u0783\u07a9","\u078a\u07ac\u0784\u07b0\u0783\u07aa\u0787\u07a6\u0783\u07a9","\u0789\u07a7\u0783\u07a8\u0797\u07aa","\u0787\u07ad\u0795\u07b0\u0783\u07a9\u078d\u07aa","\u0789\u07ad","\u0796\u07ab\u0782\u07b0","\u0796\u07aa\u078d\u07a6\u0787\u07a8","\u0787\u07af\u078e\u07a6\u0790\u07b0\u0793\u07aa","\u0790\u07ac\u0795\u07b0\u0793\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0787\u07ae\u0786\u07b0\u0793\u07af\u0784\u07a6\u0783\u07aa","\u0782\u07ae\u0788\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0791\u07a8\u0790\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa"],E=["\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6","\u0780\u07af\u0789\u07a6","\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6","\u0784\u07aa\u078b\u07a6","\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8","\u0780\u07aa\u0786\u07aa\u0783\u07aa","\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa"];T.defineLocale("dv",{months:C,monthsShort:C,weekdays:E,weekdaysShort:E,weekdaysMin:"\u0787\u07a7\u078b\u07a8_\u0780\u07af\u0789\u07a6_\u0787\u07a6\u0782\u07b0_\u0784\u07aa\u078b\u07a6_\u0784\u07aa\u0783\u07a7_\u0780\u07aa\u0786\u07aa_\u0780\u07ae\u0782\u07a8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(k){return"\u0789\u078a"===k},meridiem:function(k,R,P){return k<12?"\u0789\u0786":"\u0789\u078a"},calendar:{sameDay:"[\u0789\u07a8\u0787\u07a6\u078b\u07aa] LT",nextDay:"[\u0789\u07a7\u078b\u07a6\u0789\u07a7] LT",nextWeek:"dddd LT",lastDay:"[\u0787\u07a8\u0787\u07b0\u0794\u07ac] LT",lastWeek:"[\u078a\u07a7\u0787\u07a8\u078c\u07aa\u0788\u07a8] dddd LT",sameElse:"L"},relativeTime:{future:"\u078c\u07ac\u0783\u07ad\u078e\u07a6\u0787\u07a8 %s",past:"\u0786\u07aa\u0783\u07a8\u0782\u07b0 %s",s:"\u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa\u0786\u07ae\u0785\u07ac\u0787\u07b0",ss:"d% \u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa",m:"\u0789\u07a8\u0782\u07a8\u0793\u07ac\u0787\u07b0",mm:"\u0789\u07a8\u0782\u07a8\u0793\u07aa %d",h:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07ac\u0787\u07b0",hh:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07aa %d",d:"\u078b\u07aa\u0788\u07a6\u0780\u07ac\u0787\u07b0",dd:"\u078b\u07aa\u0788\u07a6\u0790\u07b0 %d",M:"\u0789\u07a6\u0780\u07ac\u0787\u07b0",MM:"\u0789\u07a6\u0790\u07b0 %d",y:"\u0787\u07a6\u0780\u07a6\u0783\u07ac\u0787\u07b0",yy:"\u0787\u07a6\u0780\u07a6\u0783\u07aa %d"},preparse:function(k){return k.replace(/\u060c/g,",")},postformat:function(k){return k.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(b(7586))},718:function(m,y,b){!function(T){"use strict";T.defineLocale("el",{monthsNominativeEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2_\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2_\u039c\u03ac\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2_\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2_\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2_\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2".split("_"),monthsGenitiveEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5_\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5_\u039c\u03b1\u0390\u03bf\u03c5_\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5_\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5_\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5_\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5_\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5".split("_"),months:function(D,k){return D?"string"==typeof k&&/D/.test(k.substring(0,k.indexOf("MMMM")))?this._monthsGenitiveEl[D.month()]:this._monthsNominativeEl[D.month()]:this._monthsNominativeEl},monthsShort:"\u0399\u03b1\u03bd_\u03a6\u03b5\u03b2_\u039c\u03b1\u03c1_\u0391\u03c0\u03c1_\u039c\u03b1\u03ca_\u0399\u03bf\u03c5\u03bd_\u0399\u03bf\u03c5\u03bb_\u0391\u03c5\u03b3_\u03a3\u03b5\u03c0_\u039f\u03ba\u03c4_\u039d\u03bf\u03b5_\u0394\u03b5\u03ba".split("_"),weekdays:"\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae_\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1_\u03a4\u03c1\u03af\u03c4\u03b7_\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7_\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7_\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae_\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf".split("_"),weekdaysShort:"\u039a\u03c5\u03c1_\u0394\u03b5\u03c5_\u03a4\u03c1\u03b9_\u03a4\u03b5\u03c4_\u03a0\u03b5\u03bc_\u03a0\u03b1\u03c1_\u03a3\u03b1\u03b2".split("_"),weekdaysMin:"\u039a\u03c5_\u0394\u03b5_\u03a4\u03c1_\u03a4\u03b5_\u03a0\u03b5_\u03a0\u03b1_\u03a3\u03b1".split("_"),meridiem:function(D,k,R){return D>11?R?"\u03bc\u03bc":"\u039c\u039c":R?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(D){return"\u03bc"===(D+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1 {}] LT",nextDay:"[\u0391\u03cd\u03c1\u03b9\u03bf {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[\u03a7\u03b8\u03b5\u03c2 {}] LT",lastWeek:function(){return 6===this.day()?"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT":"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"},sameElse:"L"},calendar:function(D,k){var R=this._calendarEl[D],P=k&&k.hours();return function C(D){return typeof Function<"u"&&D instanceof Function||"[object Function]"===Object.prototype.toString.call(D)}(R)&&(R=R.apply(k)),R.replace("{}",P%12==1?"\u03c3\u03c4\u03b7":"\u03c3\u03c4\u03b9\u03c2")},relativeTime:{future:"\u03c3\u03b5 %s",past:"%s \u03c0\u03c1\u03b9\u03bd",s:"\u03bb\u03af\u03b3\u03b1 \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",ss:"%d \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",m:"\u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",mm:"%d \u03bb\u03b5\u03c0\u03c4\u03ac",h:"\u03bc\u03af\u03b1 \u03ce\u03c1\u03b1",hh:"%d \u03ce\u03c1\u03b5\u03c2",d:"\u03bc\u03af\u03b1 \u03bc\u03ad\u03c1\u03b1",dd:"%d \u03bc\u03ad\u03c1\u03b5\u03c2",M:"\u03ad\u03bd\u03b1\u03c2 \u03bc\u03ae\u03bd\u03b1\u03c2",MM:"%d \u03bc\u03ae\u03bd\u03b5\u03c2",y:"\u03ad\u03bd\u03b1\u03c2 \u03c7\u03c1\u03cc\u03bd\u03bf\u03c2",yy:"%d \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%d\u03b7",week:{dow:1,doy:4}})}(b(7586))},6319:function(m,y,b){!function(T){"use strict";T.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var D=E%10;return E+(1==~~(E%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:0,doy:4}})}(b(7586))},597:function(m,y,b){!function(T){"use strict";T.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var D=E%10;return E+(1==~~(E%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")}})}(b(7586))},1800:function(m,y,b){!function(T){"use strict";T.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var D=E%10;return E+(1==~~(E%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:1,doy:4}})}(b(7586))},807:function(m,y,b){!function(T){"use strict";T.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var D=E%10;return E+(1==~~(E%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:1,doy:4}})}(b(7586))},5960:function(m,y,b){!function(T){"use strict";T.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var D=E%10;return E+(1==~~(E%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")}})}(b(7586))},4418:function(m,y,b){!function(T){"use strict";T.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var D=E%10;return E+(1==~~(E%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:0,doy:6}})}(b(7586))},6865:function(m,y,b){!function(T){"use strict";T.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var D=E%10;return E+(1==~~(E%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:1,doy:4}})}(b(7586))},2647:function(m,y,b){!function(T){"use strict";T.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var D=E%10;return E+(1==~~(E%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:1,doy:4}})}(b(7586))},1931:function(m,y,b){!function(T){"use strict";T.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_a\u016dg_sept_okt_nov_dec".split("_"),weekdays:"diman\u0109o_lundo_mardo_merkredo_\u0135a\u016ddo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_\u0135a\u016d_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_\u0135a_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(E){return"p"===E.charAt(0).toLowerCase()},meridiem:function(E,D,k){return E>11?k?"p.t.m.":"P.T.M.":k?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(b(7586))},1805:function(m,y,b){!function(T){"use strict";var C="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),E="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),D=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],k=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;T.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(P,G){return P?/-MMM-/.test(G)?E[P.month()]:C[P.month()]:C},monthsRegex:k,monthsShortRegex:k,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(b(7586))},3445:function(m,y,b){!function(T){"use strict";var C="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),E="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),D=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],k=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;T.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(P,G){return P?/-MMM-/.test(G)?E[P.month()]:C[P.month()]:C},monthsRegex:k,monthsShortRegex:k,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:4},invalidDate:"Fecha inv\xe1lida"})}(b(7586))},1516:function(m,y,b){!function(T){"use strict";var C="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),E="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),D=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],k=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;T.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(P,G){return P?/-MMM-/.test(G)?E[P.month()]:C[P.month()]:C},monthsRegex:k,monthsShortRegex:k,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:6}})}(b(7586))},6679:function(m,y,b){!function(T){"use strict";var C="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),E="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),D=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],k=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;T.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(P,G){return P?/-MMM-/.test(G)?E[P.month()]:C[P.month()]:C},monthsRegex:k,monthsShortRegex:k,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4},invalidDate:"Fecha inv\xe1lida"})}(b(7586))},8150:function(m,y,b){!function(T){"use strict";function C(D,k,R,P){var G={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[D+"sekundi",D+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[D+" minuti",D+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[D+" tunni",D+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[D+" kuu",D+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[D+" aasta",D+" aastat"]};return k?G[R][2]?G[R][2]:G[R][1]:P?G[R][0]:G[R][1]}T.defineLocale("et",{months:"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xe4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xe4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s:C,ss:C,m:C,mm:C,h:C,hh:C,d:C,dd:"%d p\xe4eva",M:C,MM:C,y:C,yy:C},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(b(7586))},757:function(m,y,b){!function(T){"use strict";T.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(b(7586))},5742:function(m,y,b){!function(T){"use strict";var C={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},E={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};T.defineLocale("fa",{months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(k){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(k)},meridiem:function(k,R,P){return k<12?"\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631":"\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631"},calendar:{sameDay:"[\u0627\u0645\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",nextDay:"[\u0641\u0631\u062f\u0627 \u0633\u0627\u0639\u062a] LT",nextWeek:"dddd [\u0633\u0627\u0639\u062a] LT",lastDay:"[\u062f\u06cc\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",lastWeek:"dddd [\u067e\u06cc\u0634] [\u0633\u0627\u0639\u062a] LT",sameElse:"L"},relativeTime:{future:"\u062f\u0631 %s",past:"%s \u067e\u06cc\u0634",s:"\u0686\u0646\u062f \u062b\u0627\u0646\u06cc\u0647",ss:"%d \u062b\u0627\u0646\u06cc\u0647",m:"\u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647",mm:"%d \u062f\u0642\u06cc\u0642\u0647",h:"\u06cc\u06a9 \u0633\u0627\u0639\u062a",hh:"%d \u0633\u0627\u0639\u062a",d:"\u06cc\u06a9 \u0631\u0648\u0632",dd:"%d \u0631\u0648\u0632",M:"\u06cc\u06a9 \u0645\u0627\u0647",MM:"%d \u0645\u0627\u0647",y:"\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(k){return k.replace(/[\u06f0-\u06f9]/g,function(R){return E[R]}).replace(/\u060c/g,",")},postformat:function(k){return k.replace(/\d/g,function(R){return C[R]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(b(7586))},3958:function(m,y,b){!function(T){"use strict";var C="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),E=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",C[7],C[8],C[9]];function D(P,G,Q,H){var Z="";switch(Q){case"s":return H?"muutaman sekunnin":"muutama sekunti";case"ss":Z=H?"sekunnin":"sekuntia";break;case"m":return H?"minuutin":"minuutti";case"mm":Z=H?"minuutin":"minuuttia";break;case"h":return H?"tunnin":"tunti";case"hh":Z=H?"tunnin":"tuntia";break;case"d":return H?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":Z=H?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return H?"kuukauden":"kuukausi";case"MM":Z=H?"kuukauden":"kuukautta";break;case"y":return H?"vuoden":"vuosi";case"yy":Z=H?"vuoden":"vuotta"}return function k(P,G){return P<10?G?E[P]:C[P]:P}(P,H)+" "+Z}T.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[t\xe4n\xe4\xe4n] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s p\xe4\xe4st\xe4",past:"%s sitten",s:D,ss:D,m:D,mm:D,h:D,hh:D,d:D,dd:D,M:D,MM:D,y:D,yy:D},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(b(7586))},6720:function(m,y,b){!function(T){"use strict";T.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(E){return E},week:{dow:1,doy:4}})}(b(7586))},8352:function(m,y,b){!function(T){"use strict";T.defineLocale("fo",{months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[\xcd dag kl.] LT",nextDay:"[\xcd morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xcd gj\xe1r kl.] LT",lastWeek:"[s\xed\xf0stu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(b(7586))},2096:function(m,y,b){!function(T){"use strict";T.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(E,D){switch(D){default:case"M":case"Q":case"D":case"DDD":case"d":return E+(1===E?"er":"e");case"w":case"W":return E+(1===E?"re":"e")}}})}(b(7586))},5759:function(m,y,b){!function(T){"use strict";T.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(E,D){switch(D){default:case"M":case"Q":case"D":case"DDD":case"d":return E+(1===E?"er":"e");case"w":case"W":return E+(1===E?"re":"e")}},week:{dow:1,doy:4}})}(b(7586))},4059:function(m,y,b){!function(T){"use strict";var D=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?|janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,k=[/^janv/i,/^f\xe9vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\xfbt/i,/^sept/i,/^oct/i,/^nov/i,/^d\xe9c/i];T.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsRegex:D,monthsShortRegex:D,monthsStrictRegex:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,monthsShortStrictRegex:/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?)/i,monthsParse:k,longMonthsParse:k,shortMonthsParse:k,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(P,G){switch(G){case"D":return P+(1===P?"er":"");default:case"M":case"Q":case"DDD":case"d":return P+(1===P?"er":"e");case"w":case"W":return P+(1===P?"re":"e")}},week:{dow:1,doy:4}})}(b(7586))},5958:function(m,y,b){!function(T){"use strict";var C="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),E="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");T.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(k,R){return k?/-MMM-/.test(R)?E[k.month()]:C[k.month()]:C},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[\xf4fr\xfbne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien min\xfat",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(k){return k+(1===k||8===k||k>=20?"ste":"de")},week:{dow:1,doy:4}})}(b(7586))},4143:function(m,y,b){!function(T){"use strict";T.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","Meitheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","M\xe1rt","Aib","Beal","Meith","I\xfail","L\xfan","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["D\xe9 Domhnaigh","D\xe9 Luain","D\xe9 M\xe1irt","D\xe9 C\xe9adaoin","D\xe9ardaoin","D\xe9 hAoine","D\xe9 Sathairn"],weekdaysShort:["Domh","Luan","M\xe1irt","C\xe9ad","D\xe9ar","Aoine","Sath"],weekdaysMin:["Do","Lu","M\xe1","C\xe9","D\xe9","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s \xf3 shin",s:"c\xfapla soicind",ss:"%d soicind",m:"n\xf3im\xe9ad",mm:"%d n\xf3im\xe9ad",h:"uair an chloig",hh:"%d uair an chloig",d:"l\xe1",dd:"%d l\xe1",M:"m\xed",MM:"%d m\xedonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(G){return G+(1===G?"d":G%10==2?"na":"mh")},week:{dow:1,doy:4}})}(b(7586))},7028:function(m,y,b){!function(T){"use strict";T.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"],monthsShort:["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],monthsParseExact:!0,weekdays:["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-m\xe0ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-d\xe8 aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(G){return G+(1===G?"d":G%10==2?"na":"mh")},week:{dow:1,doy:4}})}(b(7586))},428:function(m,y,b){!function(T){"use strict";T.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextDay:function(){return"[ma\xf1\xe1 "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"\xe1s":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"\xe1":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"\xe1s":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(E){return 0===E.indexOf("un")?"n"+E:"en "+E},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(b(7586))},6861:function(m,y,b){!function(T){"use strict";function C(D,k,R,P){var G={s:["\u0925\u094b\u0921\u092f\u093e \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940","\u0925\u094b\u0921\u0947 \u0938\u0945\u0915\u0902\u0921"],ss:[D+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",D+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[D+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",D+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[D+" \u0935\u0930\u093e\u0902\u0928\u0940",D+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[D+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",D+" \u0926\u0940\u0938"],M:["\u090f\u0915\u093e \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928","\u090f\u0915 \u092e\u094d\u0939\u092f\u0928\u094b"],MM:[D+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",D+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[D+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",D+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return P?G[R][0]:G[R][1]}T.defineLocale("gom-deva",{months:{standalone:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u092f_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),format:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092e\u093e\u0930\u094d\u091a\u093e\u091a\u094d\u092f\u093e_\u090f\u092a\u094d\u0930\u0940\u0932\u093e\u091a\u094d\u092f\u093e_\u092e\u0947\u092f\u093e\u091a\u094d\u092f\u093e_\u091c\u0942\u0928\u093e\u091a\u094d\u092f\u093e_\u091c\u0941\u0932\u092f\u093e\u091a\u094d\u092f\u093e_\u0911\u0917\u0938\u094d\u091f\u093e\u091a\u094d\u092f\u093e_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0911\u0915\u094d\u091f\u094b\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0921\u093f\u0938\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940._\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u092f\u0924\u093e\u0930_\u0938\u094b\u092e\u093e\u0930_\u092e\u0902\u0917\u0933\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u092c\u093f\u0930\u0947\u0938\u094d\u0924\u093e\u0930_\u0938\u0941\u0915\u094d\u0930\u093e\u0930_\u0936\u0947\u0928\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0906\u092f\u0924._\u0938\u094b\u092e._\u092e\u0902\u0917\u0933._\u092c\u0941\u0927._\u092c\u094d\u0930\u0947\u0938\u094d\u0924._\u0938\u0941\u0915\u094d\u0930._\u0936\u0947\u0928.".split("_"),weekdaysMin:"\u0906_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u092c\u094d\u0930\u0947_\u0938\u0941_\u0936\u0947".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LTS:"A h:mm:ss [\u0935\u093e\u091c\u0924\u093e\u0902]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",llll:"ddd, D MMM YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]"},calendar:{sameDay:"[\u0906\u092f\u091c] LT",nextDay:"[\u092b\u093e\u0932\u094d\u092f\u093e\u0902] LT",nextWeek:"[\u092b\u0941\u0921\u0932\u094b] dddd[,] LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092b\u093e\u091f\u0932\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s \u0906\u0926\u0940\u0902",s:C,ss:C,m:C,mm:C,h:C,hh:C,d:C,dd:C,M:C,MM:C,y:C,yy:C},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(D,k){return"D"===k?D+"\u0935\u0947\u0930":D},week:{dow:0,doy:3},meridiemParse:/\u0930\u093e\u0924\u0940|\u0938\u0915\u093e\u0933\u0940\u0902|\u0926\u0928\u092a\u093e\u0930\u093e\u0902|\u0938\u093e\u0902\u091c\u0947/,meridiemHour:function(D,k){return 12===D&&(D=0),"\u0930\u093e\u0924\u0940"===k?D<4?D:D+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===k?D:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===k?D>12?D:D+12:"\u0938\u093e\u0902\u091c\u0947"===k?D+12:void 0},meridiem:function(D,k,R){return D<4?"\u0930\u093e\u0924\u0940":D<12?"\u0938\u0915\u093e\u0933\u0940\u0902":D<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":D<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})}(b(7586))},7718:function(m,y,b){!function(T){"use strict";function C(D,k,R,P){var G={s:["thoddea sekondamni","thodde sekond"],ss:[D+" sekondamni",D+" sekond"],m:["eka mintan","ek minut"],mm:[D+" mintamni",D+" mintam"],h:["eka voran","ek vor"],hh:[D+" voramni",D+" voram"],d:["eka disan","ek dis"],dd:[D+" disamni",D+" dis"],M:["eka mhoinean","ek mhoino"],MM:[D+" mhoineamni",D+" mhoine"],y:["eka vorsan","ek voros"],yy:[D+" vorsamni",D+" vorsam"]};return P?G[R][0]:G[R][1]}T.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:C,ss:C,m:C,mm:C,h:C,hh:C,d:C,dd:C,M:C,MM:C,y:C,yy:C},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(D,k){return"D"===k?D+"er":D},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(D,k){return 12===D&&(D=0),"rati"===k?D<4?D:D+12:"sokallim"===k?D:"donparam"===k?D>12?D:D+12:"sanje"===k?D+12:void 0},meridiem:function(D,k,R){return D<4?"rati":D<12?"sokallim":D<16?"donparam":D<20?"sanje":"rati"}})}(b(7586))},6827:function(m,y,b){!function(T){"use strict";var C={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},E={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};T.defineLocale("gu",{months:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0_\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0_\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2_\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe\u0a88_\u0a91\u0a97\u0ab8\u0acd\u0a9f_\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0a91\u0a95\u0acd\u0a9f\u0acd\u0aac\u0ab0_\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split("_"),monthsShort:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1._\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1._\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf._\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe._\u0a91\u0a97._\u0ab8\u0aaa\u0acd\u0a9f\u0ac7._\u0a91\u0a95\u0acd\u0a9f\u0acd._\u0aa8\u0ab5\u0ac7._\u0aa1\u0abf\u0ab8\u0ac7.".split("_"),monthsParseExact:!0,weekdays:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0_\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0_\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0_\u0aac\u0ac1\u0aa7\u0acd\u0ab5\u0abe\u0ab0_\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0_\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0_\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split("_"),weekdaysShort:"\u0ab0\u0ab5\u0abf_\u0ab8\u0acb\u0aae_\u0aae\u0a82\u0a97\u0ab3_\u0aac\u0ac1\u0aa7\u0acd_\u0a97\u0ac1\u0ab0\u0ac1_\u0ab6\u0ac1\u0a95\u0acd\u0ab0_\u0ab6\u0aa8\u0abf".split("_"),weekdaysMin:"\u0ab0_\u0ab8\u0acb_\u0aae\u0a82_\u0aac\u0ac1_\u0a97\u0ac1_\u0ab6\u0ac1_\u0ab6".split("_"),longDateFormat:{LT:"A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LTS:"A h:mm:ss \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LLLL:"dddd, D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7"},calendar:{sameDay:"[\u0a86\u0a9c] LT",nextDay:"[\u0a95\u0abe\u0ab2\u0ac7] LT",nextWeek:"dddd, LT",lastDay:"[\u0a97\u0a87\u0a95\u0abe\u0ab2\u0ac7] LT",lastWeek:"[\u0aaa\u0abe\u0a9b\u0ab2\u0abe] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0aae\u0abe",past:"%s \u0aaa\u0ab9\u0ac7\u0ab2\u0abe",s:"\u0a85\u0aae\u0ac1\u0a95 \u0aaa\u0ab3\u0acb",ss:"%d \u0ab8\u0ac7\u0a95\u0a82\u0aa1",m:"\u0a8f\u0a95 \u0aae\u0abf\u0aa8\u0abf\u0a9f",mm:"%d \u0aae\u0abf\u0aa8\u0abf\u0a9f",h:"\u0a8f\u0a95 \u0a95\u0ab2\u0abe\u0a95",hh:"%d \u0a95\u0ab2\u0abe\u0a95",d:"\u0a8f\u0a95 \u0aa6\u0abf\u0ab5\u0ab8",dd:"%d \u0aa6\u0abf\u0ab5\u0ab8",M:"\u0a8f\u0a95 \u0aae\u0ab9\u0abf\u0aa8\u0acb",MM:"%d \u0aae\u0ab9\u0abf\u0aa8\u0acb",y:"\u0a8f\u0a95 \u0ab5\u0ab0\u0acd\u0ab7",yy:"%d \u0ab5\u0ab0\u0acd\u0ab7"},preparse:function(k){return k.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(R){return E[R]})},postformat:function(k){return k.replace(/\d/g,function(R){return C[R]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(k,R){return 12===k&&(k=0),"\u0ab0\u0abe\u0aa4"===R?k<4?k:k+12:"\u0ab8\u0ab5\u0abe\u0ab0"===R?k:"\u0aac\u0aaa\u0acb\u0ab0"===R?k>=10?k:k+12:"\u0ab8\u0abe\u0a82\u0a9c"===R?k+12:void 0},meridiem:function(k,R,P){return k<4?"\u0ab0\u0abe\u0aa4":k<10?"\u0ab8\u0ab5\u0abe\u0ab0":k<17?"\u0aac\u0aaa\u0acb\u0ab0":k<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(b(7586))},1936:function(m,y,b){!function(T){"use strict";T.defineLocale("he",{months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05d4\u05d9\u05d5\u05dd \u05d1\u05be]LT",nextDay:"[\u05de\u05d7\u05e8 \u05d1\u05be]LT",nextWeek:"dddd [\u05d1\u05e9\u05e2\u05d4] LT",lastDay:"[\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05be]LT",lastWeek:"[\u05d1\u05d9\u05d5\u05dd] dddd [\u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d1\u05e9\u05e2\u05d4] LT",sameElse:"L"},relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:function(E){return 2===E?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":E+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(E){return 2===E?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":E+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(E){return 2===E?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":E+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(E){return 2===E?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":E%10==0&&10!==E?E+" \u05e9\u05e0\u05d4":E+" \u05e9\u05e0\u05d9\u05dd"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(E){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(E)},meridiem:function(E,D,k){return E<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":E<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":E<12?k?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":E<18?k?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(b(7586))},1332:function(m,y,b){!function(T){"use strict";var C={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},E={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"},D=[/^\u091c\u0928/i,/^\u092b\u093c\u0930|\u092b\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924\u0902|\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935|\u0928\u0935\u0902/i,/^\u0926\u093f\u0938\u0902|\u0926\u093f\u0938/i];T.defineLocale("hi",{months:{format:"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),standalone:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u0902\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u0902\u092c\u0930_\u0926\u093f\u0938\u0902\u092c\u0930".split("_")},monthsShort:"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u092c\u091c\u0947",LTS:"A h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A h:mm \u092c\u091c\u0947"},monthsParse:D,longMonthsParse:D,shortMonthsParse:[/^\u091c\u0928/i,/^\u092b\u093c\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935/i,/^\u0926\u093f\u0938/i],monthsRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsShortRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsStrictRegex:/^(\u091c\u0928\u0935\u0930\u0940?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908?|\u0905\u0917\u0938\u094d\u0924?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924?\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930?)/i,monthsShortStrictRegex:/^(\u091c\u0928\.?|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\.?|\u0905\u0917\.?|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\.?|\u0926\u093f\u0938\.?)/i,calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0915\u0932] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u0932] LT",lastWeek:"[\u092a\u093f\u091b\u0932\u0947] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u092e\u0947\u0902",past:"%s \u092a\u0939\u0932\u0947",s:"\u0915\u0941\u091b \u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0902\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u091f",mm:"%d \u092e\u093f\u0928\u091f",h:"\u090f\u0915 \u0918\u0902\u091f\u093e",hh:"%d \u0918\u0902\u091f\u0947",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u0940\u0928\u0947",MM:"%d \u092e\u0939\u0940\u0928\u0947",y:"\u090f\u0915 \u0935\u0930\u094d\u0937",yy:"%d \u0935\u0930\u094d\u0937"},preparse:function(P){return P.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(G){return E[G]})},postformat:function(P){return P.replace(/\d/g,function(G){return C[G]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(P,G){return 12===P&&(P=0),"\u0930\u093e\u0924"===G?P<4?P:P+12:"\u0938\u0941\u092c\u0939"===G?P:"\u0926\u094b\u092a\u0939\u0930"===G?P>=10?P:P+12:"\u0936\u093e\u092e"===G?P+12:void 0},meridiem:function(P,G,Q){return P<4?"\u0930\u093e\u0924":P<10?"\u0938\u0941\u092c\u0939":P<17?"\u0926\u094b\u092a\u0939\u0930":P<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(b(7586))},1957:function(m,y,b){!function(T){"use strict";function C(D,k,R){var P=D+" ";switch(R){case"ss":return P+(1===D?"sekunda":2===D||3===D||4===D?"sekunde":"sekundi");case"m":return k?"jedna minuta":"jedne minute";case"mm":return P+(1===D?"minuta":2===D||3===D||4===D?"minute":"minuta");case"h":return k?"jedan sat":"jednog sata";case"hh":return P+(1===D?"sat":2===D||3===D||4===D?"sata":"sati");case"dd":return P+(1===D?"dan":"dana");case"MM":return P+(1===D?"mjesec":2===D||3===D||4===D?"mjeseca":"mjeseci");case"yy":return P+(1===D?"godina":2===D||3===D||4===D?"godine":"godina")}}T.defineLocale("hr",{months:{format:"sije\u010dnja_velja\u010de_o\u017eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"sije\u010danj_velja\u010da_o\u017eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._o\u017eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:return"[pro\u0161lu] [nedjelju] [u] LT";case 3:return"[pro\u0161lu] [srijedu] [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:C,m:C,mm:C,h:C,hh:C,d:"dan",dd:C,M:"mjesec",MM:C,y:"godinu",yy:C},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(b(7586))},8928:function(m,y,b){!function(T){"use strict";var C="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function E(R,P,G,Q){var H=R;switch(G){case"s":return Q||P?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return H+(Q||P)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(Q||P?" perc":" perce");case"mm":return H+(Q||P?" perc":" perce");case"h":return"egy"+(Q||P?" \xf3ra":" \xf3r\xe1ja");case"hh":return H+(Q||P?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(Q||P?" nap":" napja");case"dd":return H+(Q||P?" nap":" napja");case"M":return"egy"+(Q||P?" h\xf3nap":" h\xf3napja");case"MM":return H+(Q||P?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(Q||P?" \xe9v":" \xe9ve");case"yy":return H+(Q||P?" \xe9v":" \xe9ve")}return""}function D(R){return(R?"":"[m\xfalt] ")+"["+C[this.day()]+"] LT[-kor]"}T.defineLocale("hu",{months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan._feb._m\xe1rc._\xe1pr._m\xe1j._j\xfan._j\xfal._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),weekdaysShort:"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(R){return"u"===R.charAt(1).toLowerCase()},meridiem:function(R,P,G){return R<12?!0===G?"de":"DE":!0===G?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return D.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return D.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:E,ss:E,m:E,mm:E,h:E,hh:E,d:E,dd:E,M:E,MM:E,y:E,yy:E},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(b(7586))},6215:function(m,y,b){!function(T){"use strict";T.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(E){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(E)},meridiem:function(E){return E<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":E<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":E<17?"\u0581\u0565\u0580\u0565\u056f\u057e\u0561":"\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(E,D){switch(D){case"DDD":case"w":case"W":case"DDDo":return 1===E?E+"-\u056b\u0576":E+"-\u0580\u0564";default:return E}},week:{dow:1,doy:7}})}(b(7586))},586:function(m,y,b){!function(T){"use strict";T.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(E,D){return 12===E&&(E=0),"pagi"===D?E:"siang"===D?E>=11?E:E+12:"sore"===D||"malam"===D?E+12:void 0},meridiem:function(E,D,k){return E<11?"pagi":E<15?"siang":E<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(b(7586))},211:function(m,y,b){!function(T){"use strict";function C(k){return k%100==11||k%10!=1}function E(k,R,P,G){var Q=k+" ";switch(P){case"s":return R||G?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return C(k)?Q+(R||G?"sek\xfandur":"sek\xfandum"):Q+"sek\xfanda";case"m":return R?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return C(k)?Q+(R||G?"m\xedn\xfatur":"m\xedn\xfatum"):R?Q+"m\xedn\xfata":Q+"m\xedn\xfatu";case"hh":return C(k)?Q+(R||G?"klukkustundir":"klukkustundum"):Q+"klukkustund";case"d":return R?"dagur":G?"dag":"degi";case"dd":return C(k)?R?Q+"dagar":Q+(G?"daga":"d\xf6gum"):R?Q+"dagur":Q+(G?"dag":"degi");case"M":return R?"m\xe1nu\xf0ur":G?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return C(k)?R?Q+"m\xe1nu\xf0ir":Q+(G?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):R?Q+"m\xe1nu\xf0ur":Q+(G?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return R||G?"\xe1r":"\xe1ri";case"yy":return C(k)?Q+(R||G?"\xe1r":"\xe1rum"):Q+(R||G?"\xe1r":"\xe1ri")}}T.defineLocale("is",{months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[\xed dag kl.] LT",nextDay:"[\xe1 morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xed g\xe6r kl.] LT",lastWeek:"[s\xed\xf0asta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:E,ss:E,m:E,mm:E,h:"klukkustund",hh:E,d:E,dd:E,M:E,MM:E,y:E,yy:E},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(b(7586))},2340:function(m,y,b){!function(T){"use strict";T.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(E){return(/^[0-9].+$/.test(E)?"tra":"in")+" "+E},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(b(7586))},170:function(m,y,b){!function(T){"use strict";T.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(b(7586))},9770:function(m,y,b){!function(T){"use strict";T.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"\u4ee4\u548c",narrow:"\u32ff",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"\u5e73\u6210",narrow:"\u337b",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"\u662d\u548c",narrow:"\u337c",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"\u5927\u6b63",narrow:"\u337d",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"\u660e\u6cbb",narrow:"\u337e",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"\u897f\u66a6",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"\u7d00\u5143\u524d",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(\u5143|\d+)\u5e74/,eraYearOrdinalParse:function(E,D){return"\u5143"===D[1]?1:parseInt(D[1]||E,10)},months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(E){return"\u5348\u5f8c"===E},meridiem:function(E,D,k){return E<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(E){return E.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(E){return this.week()!==E.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(E,D){switch(D){case"y":return 1===E?"\u5143\u5e74":E+"\u5e74";case"d":case"D":case"DDD":return E+"\u65e5";default:return E}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u6570\u79d2",ss:"%d\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65e5",dd:"%d\u65e5",M:"1\u30f6\u6708",MM:"%d\u30f6\u6708",y:"1\u5e74",yy:"%d\u5e74"}})}(b(7586))},3875:function(m,y,b){!function(T){"use strict";T.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(E,D){return 12===E&&(E=0),"enjing"===D?E:"siyang"===D?E>=11?E:E+12:"sonten"===D||"ndalu"===D?E+12:void 0},meridiem:function(E,D,k){return E<11?"enjing":E<15?"siyang":E<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(b(7586))},9499:function(m,y,b){!function(T){"use strict";T.defineLocale("ka",{months:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),monthsShort:"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),weekdays:{standalone:"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),format:"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),weekdaysMin:"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u10d3\u10e6\u10d4\u10e1] LT[-\u10d6\u10d4]",nextDay:"[\u10ee\u10d5\u10d0\u10da] LT[-\u10d6\u10d4]",lastDay:"[\u10d2\u10e3\u10e8\u10d8\u10dc] LT[-\u10d6\u10d4]",nextWeek:"[\u10e8\u10d4\u10db\u10d3\u10d4\u10d2] dddd LT[-\u10d6\u10d4]",lastWeek:"[\u10ec\u10d8\u10dc\u10d0] dddd LT-\u10d6\u10d4",sameElse:"L"},relativeTime:{future:function(E){return E.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,function(D,k,R){return"\u10d8"===R?k+"\u10e8\u10d8":k+R+"\u10e8\u10d8"})},past:function(E){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(E)?E.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(E)?E.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):E},s:"\u10e0\u10d0\u10db\u10d3\u10d4\u10dc\u10d8\u10db\u10d4 \u10ec\u10d0\u10db\u10d8",ss:"%d \u10ec\u10d0\u10db\u10d8",m:"\u10ec\u10e3\u10d7\u10d8",mm:"%d \u10ec\u10e3\u10d7\u10d8",h:"\u10e1\u10d0\u10d0\u10d7\u10d8",hh:"%d \u10e1\u10d0\u10d0\u10d7\u10d8",d:"\u10d3\u10e6\u10d4",dd:"%d \u10d3\u10e6\u10d4",M:"\u10d7\u10d5\u10d4",MM:"%d \u10d7\u10d5\u10d4",y:"\u10ec\u10d4\u10da\u10d8",yy:"%d \u10ec\u10d4\u10da\u10d8"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(E){return 0===E?E:1===E?E+"-\u10da\u10d8":E<20||E<=100&&E%20==0||E%100==0?"\u10db\u10d4-"+E:E+"-\u10d4"},week:{dow:1,doy:7}})}(b(7586))},3573:function(m,y,b){!function(T){"use strict";var C={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044b",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044b",10:"-\u0448\u044b",20:"-\u0448\u044b",30:"-\u0448\u044b",40:"-\u0448\u044b",50:"-\u0448\u0456",60:"-\u0448\u044b",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044b",100:"-\u0448\u0456"};T.defineLocale("kk",{months:"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),monthsShort:"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),weekdays:"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),weekdaysMin:"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u0456\u043d \u0441\u0430\u0493\u0430\u0442] LT",nextDay:"[\u0415\u0440\u0442\u0435\u04a3 \u0441\u0430\u0493\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0493\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u0435\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u04a3] dddd [\u0441\u0430\u0493\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0456\u0448\u0456\u043d\u0434\u0435",past:"%s \u0431\u04b1\u0440\u044b\u043d",s:"\u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(D){return D+(C[D]||C[D%10]||C[D>=100?100:null])},week:{dow:1,doy:7}})}(b(7586))},8807:function(m,y,b){!function(T){"use strict";var C={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},E={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};T.defineLocale("km",{months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdays:"\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(k){return"\u179b\u17d2\u1784\u17b6\u1785"===k},meridiem:function(k,R,P){return k<12?"\u1796\u17d2\u179a\u17b9\u1780":"\u179b\u17d2\u1784\u17b6\u1785"},calendar:{sameDay:"[\u1790\u17d2\u1784\u17c3\u1793\u17c1\u17c7 \u1798\u17c9\u17c4\u1784] LT",nextDay:"[\u179f\u17d2\u17a2\u17c2\u1780 \u1798\u17c9\u17c4\u1784] LT",nextWeek:"dddd [\u1798\u17c9\u17c4\u1784] LT",lastDay:"[\u1798\u17d2\u179f\u17b7\u179b\u1798\u17b7\u1789 \u1798\u17c9\u17c4\u1784] LT",lastWeek:"dddd [\u179f\u1794\u17d2\u178f\u17b6\u17a0\u17cd\u1798\u17bb\u1793] [\u1798\u17c9\u17c4\u1784] LT",sameElse:"L"},relativeTime:{future:"%s\u1791\u17c0\u178f",past:"%s\u1798\u17bb\u1793",s:"\u1794\u17c9\u17bb\u1793\u17d2\u1798\u17b6\u1793\u179c\u17b7\u1793\u17b6\u1791\u17b8",ss:"%d \u179c\u17b7\u1793\u17b6\u1791\u17b8",m:"\u1798\u17bd\u1799\u1793\u17b6\u1791\u17b8",mm:"%d \u1793\u17b6\u1791\u17b8",h:"\u1798\u17bd\u1799\u1798\u17c9\u17c4\u1784",hh:"%d \u1798\u17c9\u17c4\u1784",d:"\u1798\u17bd\u1799\u1790\u17d2\u1784\u17c3",dd:"%d \u1790\u17d2\u1784\u17c3",M:"\u1798\u17bd\u1799\u1781\u17c2",MM:"%d \u1781\u17c2",y:"\u1798\u17bd\u1799\u1786\u17d2\u1793\u17b6\u17c6",yy:"%d \u1786\u17d2\u1793\u17b6\u17c6"},dayOfMonthOrdinalParse:/\u1791\u17b8\d{1,2}/,ordinal:"\u1791\u17b8%d",preparse:function(k){return k.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(R){return E[R]})},postformat:function(k){return k.replace(/\d/g,function(R){return C[R]})},week:{dow:1,doy:4}})}(b(7586))},5082:function(m,y,b){!function(T){"use strict";var C={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},E={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};T.defineLocale("kn",{months:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf_\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5\u0cac\u0cb0\u0ccd_\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split("_"),monthsShort:"\u0c9c\u0ca8_\u0cab\u0cc6\u0cac\u0ccd\u0cb0_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5_\u0ca8\u0cb5\u0cc6\u0c82_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82".split("_"),monthsParseExact:!0,weekdays:"\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae\u0cb5\u0cbe\u0cb0_\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0_\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0_\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0_\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split("_"),weekdaysShort:"\u0cad\u0cbe\u0ca8\u0cc1_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae_\u0cae\u0c82\u0c97\u0cb3_\u0cac\u0cc1\u0ca7_\u0c97\u0cc1\u0cb0\u0cc1_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0_\u0cb6\u0ca8\u0cbf".split("_"),weekdaysMin:"\u0cad\u0cbe_\u0cb8\u0cc6\u0cc2\u0cd5_\u0cae\u0c82_\u0cac\u0cc1_\u0c97\u0cc1_\u0cb6\u0cc1_\u0cb6".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c87\u0c82\u0ca6\u0cc1] LT",nextDay:"[\u0ca8\u0cbe\u0cb3\u0cc6] LT",nextWeek:"dddd, LT",lastDay:"[\u0ca8\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6] LT",lastWeek:"[\u0c95\u0cc6\u0cc2\u0ca8\u0cc6\u0caf] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0ca8\u0c82\u0ca4\u0cb0",past:"%s \u0cb9\u0cbf\u0c82\u0ca6\u0cc6",s:"\u0c95\u0cc6\u0cb2\u0cb5\u0cc1 \u0c95\u0ccd\u0cb7\u0ca3\u0c97\u0cb3\u0cc1",ss:"%d \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0cc1\u0c97\u0cb3\u0cc1",m:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",mm:"%d \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",h:"\u0c92\u0c82\u0ca6\u0cc1 \u0c97\u0c82\u0c9f\u0cc6",hh:"%d \u0c97\u0c82\u0c9f\u0cc6",d:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cbf\u0ca8",dd:"%d \u0ca6\u0cbf\u0ca8",M:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",MM:"%d \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",y:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7",yy:"%d \u0cb5\u0cb0\u0ccd\u0cb7"},preparse:function(k){return k.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(R){return E[R]})},postformat:function(k){return k.replace(/\d/g,function(R){return C[R]})},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(k,R){return 12===k&&(k=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===R?k<4?k:k+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===R?k:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===R?k>=10?k:k+12:"\u0cb8\u0c82\u0c9c\u0cc6"===R?k+12:void 0},meridiem:function(k,R,P){return k<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":k<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":k<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":k<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(k){return k+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(b(7586))},137:function(m,y,b){!function(T){"use strict";T.defineLocale("ko",{months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},calendar:{sameDay:"\uc624\ub298 LT",nextDay:"\ub0b4\uc77c LT",nextWeek:"dddd LT",lastDay:"\uc5b4\uc81c LT",lastWeek:"\uc9c0\ub09c\uc8fc dddd LT",sameElse:"L"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(E,D){switch(D){case"d":case"D":case"DDD":return E+"\uc77c";case"M":return E+"\uc6d4";case"w":case"W":return E+"\uc8fc";default:return E}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(E){return"\uc624\ud6c4"===E},meridiem:function(E,D,k){return E<12?"\uc624\uc804":"\uc624\ud6c4"}})}(b(7586))},1363:function(m,y,b){!function(T){"use strict";function C(k,R,P,G){var Q={s:["\xe7end san\xeeye","\xe7end san\xeeyeyan"],ss:[k+" san\xeeye",k+" san\xeeyeyan"],m:["deq\xeeqeyek","deq\xeeqeyek\xea"],mm:[k+" deq\xeeqe",k+" deq\xeeqeyan"],h:["saetek","saetek\xea"],hh:[k+" saet",k+" saetan"],d:["rojek","rojek\xea"],dd:[k+" roj",k+" rojan"],w:["hefteyek","hefteyek\xea"],ww:[k+" hefte",k+" hefteyan"],M:["mehek","mehek\xea"],MM:[k+" meh",k+" mehan"],y:["salek","salek\xea"],yy:[k+" sal",k+" salan"]};return R?Q[P][0]:Q[P][1]}T.defineLocale("ku-kmr",{months:"R\xeabendan_Sibat_Adar_N\xeesan_Gulan_Hez\xeeran_T\xeermeh_Tebax_\xcelon_Cotmeh_Mijdar_Berfanbar".split("_"),monthsShort:"R\xeab_Sib_Ada_N\xees_Gul_Hez_T\xeer_Teb_\xcelo_Cot_Mij_Ber".split("_"),monthsParseExact:!0,weekdays:"Yek\u015fem_Du\u015fem_S\xea\u015fem_\xc7ar\u015fem_P\xeanc\u015fem_\xcen_\u015eem\xee".split("_"),weekdaysShort:"Yek_Du_S\xea_\xc7ar_P\xean_\xcen_\u015eem".split("_"),weekdaysMin:"Ye_Du_S\xea_\xc7a_P\xea_\xcen_\u015ee".split("_"),meridiem:function(k,R,P){return k<12?P?"bn":"BN":P?"pn":"PN"},meridiemParse:/bn|BN|pn|PN/,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM[a] YYYY[an]",LLL:"Do MMMM[a] YYYY[an] HH:mm",LLLL:"dddd, Do MMMM[a] YYYY[an] HH:mm",ll:"Do MMM[.] YYYY[an]",lll:"Do MMM[.] YYYY[an] HH:mm",llll:"ddd[.], Do MMM[.] YYYY[an] HH:mm"},calendar:{sameDay:"[\xcero di saet] LT [de]",nextDay:"[Sib\xea di saet] LT [de]",nextWeek:"dddd [di saet] LT [de]",lastDay:"[Duh di saet] LT [de]",lastWeek:"dddd[a bor\xee di saet] LT [de]",sameElse:"L"},relativeTime:{future:"di %s de",past:"ber\xee %s",s:C,ss:C,m:C,mm:C,h:C,hh:C,d:C,dd:C,w:C,ww:C,M:C,MM:C,y:C,yy:C},dayOfMonthOrdinalParse:/\d{1,2}(?:y\xea|\xea|\.)/,ordinal:function(k,R){var P=R.toLowerCase();return P.includes("w")||P.includes("m")?k+".":k+function E(k){var R=(k=""+k).substring(k.length-1),P=k.length>1?k.substring(k.length-2):"";return 12==P||13==P||"2"!=R&&"3"!=R&&"50"!=P&&"70"!=R&&"80"!=R?"\xea":"y\xea"}(k)},week:{dow:1,doy:4}})}(b(7586))},111:function(m,y,b){!function(T){"use strict";var C={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},E={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},D=["\u06a9\u0627\u0646\u0648\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0634\u0648\u0628\u0627\u062a","\u0626\u0627\u0632\u0627\u0631","\u0646\u06cc\u0633\u0627\u0646","\u0626\u0627\u06cc\u0627\u0631","\u062d\u0648\u0632\u06d5\u06cc\u0631\u0627\u0646","\u062a\u06d5\u0645\u0645\u0648\u0632","\u0626\u0627\u0628","\u0626\u06d5\u06cc\u0644\u0648\u0648\u0644","\u062a\u0634\u0631\u06cc\u0646\u06cc \u06cc\u06d5\u0643\u06d5\u0645","\u062a\u0634\u0631\u06cc\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0643\u0627\u0646\u0648\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645"];T.defineLocale("ku",{months:D,monthsShort:D,weekdays:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u062f\u0648\u0648\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0633\u06ce\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysShort:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645_\u062f\u0648\u0648\u0634\u0647\u200c\u0645_\u0633\u06ce\u0634\u0647\u200c\u0645_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u0647_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c|\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc/,isPM:function(R){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(R)},meridiem:function(R,P,G){return R<12?"\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc":"\u0626\u06ce\u0648\u0627\u0631\u0647\u200c"},calendar:{sameDay:"[\u0626\u0647\u200c\u0645\u0631\u06c6 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextDay:"[\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastDay:"[\u062f\u0648\u06ce\u0646\u06ce \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",sameElse:"L"},relativeTime:{future:"\u0644\u0647\u200c %s",past:"%s",s:"\u0686\u0647\u200c\u0646\u062f \u0686\u0631\u0643\u0647\u200c\u06cc\u0647\u200c\u0643",ss:"\u0686\u0631\u0643\u0647\u200c %d",m:"\u06cc\u0647\u200c\u0643 \u062e\u0648\u0644\u0647\u200c\u0643",mm:"%d \u062e\u0648\u0644\u0647\u200c\u0643",h:"\u06cc\u0647\u200c\u0643 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",hh:"%d \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",d:"\u06cc\u0647\u200c\u0643 \u0695\u06c6\u0698",dd:"%d \u0695\u06c6\u0698",M:"\u06cc\u0647\u200c\u0643 \u0645\u0627\u0646\u06af",MM:"%d \u0645\u0627\u0646\u06af",y:"\u06cc\u0647\u200c\u0643 \u0633\u0627\u06b5",yy:"%d \u0633\u0627\u06b5"},preparse:function(R){return R.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(P){return E[P]}).replace(/\u060c/g,",")},postformat:function(R){return R.replace(/\d/g,function(P){return C[P]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(b(7586))},9187:function(m,y,b){!function(T){"use strict";var C={0:"-\u0447\u04af",1:"-\u0447\u0438",2:"-\u0447\u0438",3:"-\u0447\u04af",4:"-\u0447\u04af",5:"-\u0447\u0438",6:"-\u0447\u044b",7:"-\u0447\u0438",8:"-\u0447\u0438",9:"-\u0447\u0443",10:"-\u0447\u0443",20:"-\u0447\u044b",30:"-\u0447\u0443",40:"-\u0447\u044b",50:"-\u0447\u04af",60:"-\u0447\u044b",70:"-\u0447\u0438",80:"-\u0447\u0438",90:"-\u0447\u0443",100:"-\u0447\u04af"};T.defineLocale("ky",{months:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u0416\u0435\u043a\u0448\u0435\u043c\u0431\u0438_\u0414\u04af\u0439\u0448\u04e9\u043c\u0431\u04af_\u0428\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043c\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0416\u0443\u043c\u0430_\u0418\u0448\u0435\u043c\u0431\u0438".split("_"),weekdaysShort:"\u0416\u0435\u043a_\u0414\u04af\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043c_\u0418\u0448\u0435".split("_"),weekdaysMin:"\u0416\u043a_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043c_\u0418\u0448".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u04af\u043d \u0441\u0430\u0430\u0442] LT",nextDay:"[\u042d\u0440\u0442\u0435\u04a3 \u0441\u0430\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0447\u044d\u044d \u0441\u0430\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u04e9\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u043d] dddd [\u043a\u04af\u043d\u04af] [\u0441\u0430\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0438\u0447\u0438\u043d\u0434\u0435",past:"%s \u043c\u0443\u0440\u0443\u043d",s:"\u0431\u0438\u0440\u043d\u0435\u0447\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0438\u0440 \u043c\u04af\u043d\u04e9\u0442",mm:"%d \u043c\u04af\u043d\u04e9\u0442",h:"\u0431\u0438\u0440 \u0441\u0430\u0430\u0442",hh:"%d \u0441\u0430\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0438\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0438\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(D){return D+(C[D]||C[D%10]||C[D>=100?100:null])},week:{dow:1,doy:7}})}(b(7586))},5969:function(m,y,b){!function(T){"use strict";function C(P,G,Q,H){var Z={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return G?Z[Q][0]:Z[Q][1]}function k(P){if(P=parseInt(P,10),isNaN(P))return!1;if(P<0)return!0;if(P<10)return 4<=P&&P<=7;if(P<100){var G=P%10;return k(0===G?P/10:G)}if(P<1e4){for(;P>=10;)P/=10;return k(P)}return k(P/=1e3)}T.defineLocale("lb",{months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[G\xebschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function E(P){return k(P.substr(0,P.indexOf(" ")))?"a "+P:"an "+P},past:function D(P){return k(P.substr(0,P.indexOf(" ")))?"viru "+P:"virun "+P},s:"e puer Sekonnen",ss:"%d Sekonnen",m:C,mm:"%d Minutten",h:C,hh:"%d Stonnen",d:C,dd:"%d Deeg",M:C,MM:"%d M\xe9int",y:C,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(b(7586))},3526:function(m,y,b){!function(T){"use strict";T.defineLocale("lo",{months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(E){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===E},meridiem:function(E,D,k){return E<12?"\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2":"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"},calendar:{sameDay:"[\u0ea1\u0eb7\u0ec9\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextDay:"[\u0ea1\u0eb7\u0ec9\u0ead\u0eb7\u0ec8\u0e99\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0edc\u0ec9\u0eb2\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastDay:"[\u0ea1\u0eb7\u0ec9\u0ea7\u0eb2\u0e99\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0ec1\u0ea5\u0ec9\u0ea7\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",sameElse:"L"},relativeTime:{future:"\u0ead\u0eb5\u0e81 %s",past:"%s\u0e9c\u0ec8\u0eb2\u0e99\u0ea1\u0eb2",s:"\u0e9a\u0ecd\u0ec8\u0ec0\u0e97\u0ebb\u0ec8\u0eb2\u0ec3\u0e94\u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",ss:"%d \u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",m:"1 \u0e99\u0eb2\u0e97\u0eb5",mm:"%d \u0e99\u0eb2\u0e97\u0eb5",h:"1 \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",hh:"%d \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",d:"1 \u0ea1\u0eb7\u0ec9",dd:"%d \u0ea1\u0eb7\u0ec9",M:"1 \u0ec0\u0e94\u0eb7\u0ead\u0e99",MM:"%d \u0ec0\u0e94\u0eb7\u0ead\u0e99",y:"1 \u0e9b\u0eb5",yy:"%d \u0e9b\u0eb5"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(E){return"\u0e97\u0eb5\u0ec8"+E}})}(b(7586))},411:function(m,y,b){!function(T){"use strict";var C={ss:"sekund\u0117_sekund\u017ei\u0173_sekundes",m:"minut\u0117_minut\u0117s_minut\u0119",mm:"minut\u0117s_minu\u010di\u0173_minutes",h:"valanda_valandos_valand\u0105",hh:"valandos_valand\u0173_valandas",d:"diena_dienos_dien\u0105",dd:"dienos_dien\u0173_dienas",M:"m\u0117nuo_m\u0117nesio_m\u0117nes\u012f",MM:"m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius",y:"metai_met\u0173_metus",yy:"metai_met\u0173_metus"};function D(Q,H,Z,X){return H?R(Z)[0]:X?R(Z)[1]:R(Z)[2]}function k(Q){return Q%10==0||Q>10&&Q<20}function R(Q){return C[Q].split("_")}function P(Q,H,Z,X){var z=Q+" ";return 1===Q?z+D(0,H,Z[0],X):H?z+(k(Q)?R(Z)[1]:R(Z)[0]):X?z+R(Z)[1]:z+(k(Q)?R(Z)[1]:R(Z)[2])}T.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012f] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:function E(Q,H,Z,X){return H?"kelios sekund\u0117s":X?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:P,m:D,mm:P,h:D,hh:P,d:D,dd:P,M:D,MM:P,y:D,yy:P},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(Q){return Q+"-oji"},week:{dow:1,doy:4}})}(b(7586))},2621:function(m,y,b){!function(T){"use strict";var C={ss:"sekundes_sekund\u0113m_sekunde_sekundes".split("_"),m:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),mm:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),h:"stundas_stund\u0101m_stunda_stundas".split("_"),hh:"stundas_stund\u0101m_stunda_stundas".split("_"),d:"dienas_dien\u0101m_diena_dienas".split("_"),dd:"dienas_dien\u0101m_diena_dienas".split("_"),M:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),MM:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function E(G,Q,H){return H?Q%10==1&&Q%100!=11?G[2]:G[3]:Q%10==1&&Q%100!=11?G[0]:G[1]}function D(G,Q,H){return G+" "+E(C[H],G,Q)}function k(G,Q,H){return E(C[H],G,Q)}T.defineLocale("lv",{months:"janv\u0101ris_febru\u0101ris_marts_apr\u012blis_maijs_j\u016bnijs_j\u016blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016bn_j\u016bl_aug_sep_okt_nov_dec".split("_"),weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[\u0160odien pulksten] LT",nextDay:"[R\u012bt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pag\u0101ju\u0161\u0101] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:function R(G,Q){return Q?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:D,m:k,mm:D,h:k,hh:D,d:k,dd:D,M:k,MM:D,y:k,yy:D},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(b(7586))},5869:function(m,y,b){!function(T){"use strict";var C={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(D,k){return 1===D?k[0]:D>=2&&D<=4?k[1]:k[2]},translate:function(D,k,R){var P=C.words[R];return 1===R.length?k?P[0]:P[1]:D+" "+C.correctGrammaticalCase(D,P)}};T.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedjelje] [u] LT","[pro\u0161log] [ponedjeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srijede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:C.translate,m:C.translate,mm:C.translate,h:C.translate,hh:C.translate,d:"dan",dd:C.translate,M:"mjesec",MM:C.translate,y:"godinu",yy:C.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(b(7586))},5881:function(m,y,b){!function(T){"use strict";T.defineLocale("mi",{months:"Kohi-t\u0101te_Hui-tanguru_Pout\u016b-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014dngoingoi_Here-turi-k\u014dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"R\u0101tapu_Mane_T\u016brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"),weekdaysShort:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),weekdaysMin:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te h\u0113kona ruarua",ss:"%d h\u0113kona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(b(7586))},2391:function(m,y,b){!function(T){"use strict";T.defineLocale("mk",{months:"\u0458\u0430\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d\u0438_\u0458\u0443\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u0458\u0430\u043d_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a_\u043f\u0435\u0442\u043e\u043a_\u0441\u0430\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u0430\u0431".split("_"),weekdaysMin:"\u043de_\u043fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441a".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u0435\u043d\u0435\u0441 \u0432\u043e] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432\u043e] LT",nextWeek:"[\u0412\u043e] dddd [\u0432\u043e] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432\u043e] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0430\u0442\u0430] dddd [\u0432\u043e] LT";case 1:case 2:case 4:case 5:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0438\u043e\u0442] dddd [\u0432\u043e] LT"}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435\u0434 %s",s:"\u043d\u0435\u043a\u043e\u043b\u043a\u0443 \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u0435\u0434\u043d\u0430 \u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0435\u0434\u0435\u043d \u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0435\u0434\u0435\u043d \u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",M:"\u0435\u0434\u0435\u043d \u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",y:"\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(E){var D=E%10,k=E%100;return 0===E?E+"-\u0435\u0432":0===k?E+"-\u0435\u043d":k>10&&k<20?E+"-\u0442\u0438":1===D?E+"-\u0432\u0438":2===D?E+"-\u0440\u0438":7===D||8===D?E+"-\u043c\u0438":E+"-\u0442\u0438"},week:{dow:1,doy:7}})}(b(7586))},1126:function(m,y,b){!function(T){"use strict";T.defineLocale("ml",{months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),monthsParseExact:!0,weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),longDateFormat:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},calendar:{sameDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d4d] LT",nextDay:"[\u0d28\u0d3e\u0d33\u0d46] LT",nextWeek:"dddd, LT",lastDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d32\u0d46] LT",lastWeek:"[\u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",ss:"%d \u0d38\u0d46\u0d15\u0d4d\u0d15\u0d7b\u0d21\u0d4d",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(E,D){return 12===E&&(E=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===D&&E>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===D||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===D?E+12:E},meridiem:function(E,D,k){return E<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":E<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":E<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":E<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(b(7586))},4892:function(m,y,b){!function(T){"use strict";function C(D,k,R,P){switch(R){case"s":return k?"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434":"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d";case"ss":return D+(k?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return D+(k?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return D+(k?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return D+(k?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return D+(k?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return D+(k?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return D}}T.defineLocale("mn",{months:"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),monthsShort:"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),monthsParseExact:!0,weekdays:"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),weekdaysShort:"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),weekdaysMin:"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D",LLL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm",LLLL:"dddd, YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(D){return"\u04ae\u0425"===D},meridiem:function(D,k,R){return D<12?"\u04ae\u04e8":"\u04ae\u0425"},calendar:{sameDay:"[\u04e8\u043d\u04e9\u04e9\u0434\u04e9\u0440] LT",nextDay:"[\u041c\u0430\u0440\u0433\u0430\u0430\u0448] LT",nextWeek:"[\u0418\u0440\u044d\u0445] dddd LT",lastDay:"[\u04e8\u0447\u0438\u0433\u0434\u04e9\u0440] LT",lastWeek:"[\u04e8\u043d\u0433\u04e9\u0440\u0441\u04e9\u043d] dddd LT",sameElse:"L"},relativeTime:{future:"%s \u0434\u0430\u0440\u0430\u0430",past:"%s \u04e9\u043c\u043d\u04e9",s:C,ss:C,m:C,mm:C,h:C,hh:C,d:C,dd:C,M:C,MM:C,y:C,yy:C},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(D,k){switch(k){case"d":case"D":case"DDD":return D+" \u04e9\u0434\u04e9\u0440";default:return D}}})}(b(7586))},9080:function(m,y,b){!function(T){"use strict";var C={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},E={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function D(R,P,G,Q){var H="";if(P)switch(G){case"s":H="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":H="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":H="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":H="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":H="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":H="%d \u0924\u093e\u0938";break;case"d":H="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":H="%d \u0926\u093f\u0935\u0938";break;case"M":H="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":H="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":H="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":H="%d \u0935\u0930\u094d\u0937\u0947"}else switch(G){case"s":H="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":H="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":H="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":H="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":H="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":H="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":H="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":H="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":H="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":H="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":H="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":H="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return H.replace(/%d/i,R)}T.defineLocale("mr",{months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0909\u0926\u094d\u092f\u093e] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092e\u093e\u0917\u0940\u0932] dddd, LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u0927\u094d\u092f\u0947",past:"%s\u092a\u0942\u0930\u094d\u0935\u0940",s:D,ss:D,m:D,mm:D,h:D,hh:D,d:D,dd:D,M:D,MM:D,y:D,yy:D},preparse:function(R){return R.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(P){return E[P]})},postformat:function(R){return R.replace(/\d/g,function(P){return C[P]})},meridiemParse:/\u092a\u0939\u093e\u091f\u0947|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940|\u0930\u093e\u0924\u094d\u0930\u0940/,meridiemHour:function(R,P){return 12===R&&(R=0),"\u092a\u0939\u093e\u091f\u0947"===P||"\u0938\u0915\u093e\u0933\u0940"===P?R:"\u0926\u0941\u092a\u093e\u0930\u0940"===P||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===P||"\u0930\u093e\u0924\u094d\u0930\u0940"===P?R>=12?R:R+12:void 0},meridiem:function(R,P,G){return R>=0&&R<6?"\u092a\u0939\u093e\u091f\u0947":R<12?"\u0938\u0915\u093e\u0933\u0940":R<17?"\u0926\u0941\u092a\u093e\u0930\u0940":R<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(b(7586))},5950:function(m,y,b){!function(T){"use strict";T.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(E,D){return 12===E&&(E=0),"pagi"===D?E:"tengahari"===D?E>=11?E:E+12:"petang"===D||"malam"===D?E+12:void 0},meridiem:function(E,D,k){return E<11?"pagi":E<15?"tengahari":E<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(b(7586))},399:function(m,y,b){!function(T){"use strict";T.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(E,D){return 12===E&&(E=0),"pagi"===D?E:"tengahari"===D?E>=11?E:E+12:"petang"===D||"malam"===D?E+12:void 0},meridiem:function(E,D,k){return E<11?"pagi":E<15?"tengahari":E<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(b(7586))},9902:function(m,y,b){!function(T){"use strict";T.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[G\u0127ada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-biera\u0127 fil-]LT",lastWeek:"dddd [li g\u0127adda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(b(7586))},2985:function(m,y,b){!function(T){"use strict";var C={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},E={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};T.defineLocale("my",{months:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e_\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e_\u1019\u1010\u103a_\u1027\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u1007\u1030\u101c\u102d\u102f\u1004\u103a_\u101e\u103c\u1002\u102f\u1010\u103a_\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c_\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c_\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c_\u1012\u102e\u1007\u1004\u103a\u1018\u102c".split("_"),monthsShort:"\u1007\u1014\u103a_\u1016\u1031_\u1019\u1010\u103a_\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u101c\u102d\u102f\u1004\u103a_\u101e\u103c_\u1005\u1000\u103a_\u1021\u1031\u102c\u1000\u103a_\u1014\u102d\u102f_\u1012\u102e".split("_"),weekdays:"\u1010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031_\u1010\u1014\u1004\u103a\u1039\u101c\u102c_\u1021\u1004\u103a\u1039\u1002\u102b_\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038_\u1000\u103c\u102c\u101e\u1015\u1010\u1031\u1038_\u101e\u1031\u102c\u1000\u103c\u102c_\u1005\u1014\u1031".split("_"),weekdaysShort:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),weekdaysMin:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u101a\u1014\u1031.] LT [\u1019\u103e\u102c]",nextDay:"[\u1019\u1014\u1000\u103a\u1016\u103c\u1014\u103a] LT [\u1019\u103e\u102c]",nextWeek:"dddd LT [\u1019\u103e\u102c]",lastDay:"[\u1019\u1014\u1031.\u1000] LT [\u1019\u103e\u102c]",lastWeek:"[\u1015\u103c\u102e\u1038\u1001\u1032\u1037\u101e\u1031\u102c] dddd LT [\u1019\u103e\u102c]",sameElse:"L"},relativeTime:{future:"\u101c\u102c\u1019\u100a\u103a\u1037 %s \u1019\u103e\u102c",past:"\u101c\u103d\u1014\u103a\u1001\u1032\u1037\u101e\u1031\u102c %s \u1000",s:"\u1005\u1000\u1039\u1000\u1014\u103a.\u1021\u1014\u100a\u103a\u1038\u1004\u101a\u103a",ss:"%d \u1005\u1000\u1039\u1000\u1014\u1037\u103a",m:"\u1010\u1005\u103a\u1019\u102d\u1014\u1005\u103a",mm:"%d \u1019\u102d\u1014\u1005\u103a",h:"\u1010\u1005\u103a\u1014\u102c\u101b\u102e",hh:"%d \u1014\u102c\u101b\u102e",d:"\u1010\u1005\u103a\u101b\u1000\u103a",dd:"%d \u101b\u1000\u103a",M:"\u1010\u1005\u103a\u101c",MM:"%d \u101c",y:"\u1010\u1005\u103a\u1014\u103e\u1005\u103a",yy:"%d \u1014\u103e\u1005\u103a"},preparse:function(k){return k.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(R){return E[R]})},postformat:function(k){return k.replace(/\d/g,function(R){return C[R]})},week:{dow:1,doy:4}})}(b(7586))},7859:function(m,y,b){!function(T){"use strict";T.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"\xe9n time",hh:"%d timer",d:"\xe9n dag",dd:"%d dager",w:"\xe9n uke",ww:"%d uker",M:"\xe9n m\xe5ned",MM:"%d m\xe5neder",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(b(7586))},3642:function(m,y,b){!function(T){"use strict";var C={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},E={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};T.defineLocale("ne",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"},preparse:function(k){return k.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(R){return E[R]})},postformat:function(k){return k.replace(/\d/g,function(R){return C[R]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(k,R){return 12===k&&(k=0),"\u0930\u093e\u0924\u093f"===R?k<4?k:k+12:"\u092c\u093f\u0939\u093e\u0928"===R?k:"\u0926\u093f\u0909\u0901\u0938\u094b"===R?k>=10?k:k+12:"\u0938\u093e\u0901\u091d"===R?k+12:void 0},meridiem:function(k,R,P){return k<3?"\u0930\u093e\u0924\u093f":k<12?"\u092c\u093f\u0939\u093e\u0928":k<16?"\u0926\u093f\u0909\u0901\u0938\u094b":k<20?"\u0938\u093e\u0901\u091d":"\u0930\u093e\u0924\u093f"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u092d\u094b\u0932\u093f] LT",nextWeek:"[\u0906\u0909\u0901\u0926\u094b] dddd[,] LT",lastDay:"[\u0939\u093f\u091c\u094b] LT",lastWeek:"[\u0917\u090f\u0915\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u093e",past:"%s \u0905\u0917\u093e\u0921\u093f",s:"\u0915\u0947\u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0947\u0923\u094d\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u0947\u091f",mm:"%d \u092e\u093f\u0928\u0947\u091f",h:"\u090f\u0915 \u0918\u0923\u094d\u091f\u093e",hh:"%d \u0918\u0923\u094d\u091f\u093e",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u093f\u0928\u093e",MM:"%d \u092e\u0939\u093f\u0928\u093e",y:"\u090f\u0915 \u092c\u0930\u094d\u0937",yy:"%d \u092c\u0930\u094d\u0937"},week:{dow:0,doy:6}})}(b(7586))},9875:function(m,y,b){!function(T){"use strict";var C="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),E="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),D=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],k=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;T.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(P,G){return P?/-MMM-/.test(G)?E[P.month()]:C[P.month()]:C},monthsRegex:k,monthsShortRegex:k,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(P){return P+(1===P||8===P||P>=20?"ste":"de")},week:{dow:1,doy:4}})}(b(7586))},5441:function(m,y,b){!function(T){"use strict";var C="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),E="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),D=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],k=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;T.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(P,G){return P?/-MMM-/.test(G)?E[P.month()]:C[P.month()]:C},monthsRegex:k,monthsShortRegex:k,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",w:"\xe9\xe9n week",ww:"%d weken",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(P){return P+(1===P||8===P||P>=20?"ste":"de")},week:{dow:1,doy:4}})}(b(7586))},1311:function(m,y,b){!function(T){"use strict";T.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._m\xe5._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_m\xe5_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I g\xe5r klokka] LT",lastWeek:"[F\xf8reg\xe5ande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein m\xe5nad",MM:"%d m\xe5nader",y:"eit \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(b(7586))},2567:function(m,y,b){!function(T){"use strict";T.defineLocale("oc-lnc",{months:{standalone:"geni\xe8r_febri\xe8r_mar\xe7_abril_mai_junh_julhet_agost_setembre_oct\xf2bre_novembre_decembre".split("_"),format:"de geni\xe8r_de febri\xe8r_de mar\xe7_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'oct\xf2bre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dim\xe8cres_dij\xf2us_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[u\xe8i a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[i\xe8r a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(E,D){var k=1===E?"r":2===E?"n":3===E?"r":4===E?"t":"\xe8";return("w"===D||"W"===D)&&(k="a"),E+k},week:{dow:1,doy:4}})}(b(7586))},6962:function(m,y,b){!function(T){"use strict";var C={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},E={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};T.defineLocale("pa-in",{months:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),monthsShort:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdays:"\u0a10\u0a24\u0a35\u0a3e\u0a30_\u0a38\u0a4b\u0a2e\u0a35\u0a3e\u0a30_\u0a2e\u0a70\u0a17\u0a32\u0a35\u0a3e\u0a30_\u0a2c\u0a41\u0a27\u0a35\u0a3e\u0a30_\u0a35\u0a40\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a28\u0a40\u0a1a\u0a30\u0a35\u0a3e\u0a30".split("_"),weekdaysShort:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),weekdaysMin:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),longDateFormat:{LT:"A h:mm \u0a35\u0a1c\u0a47",LTS:"A h:mm:ss \u0a35\u0a1c\u0a47",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47",LLLL:"dddd, D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47"},calendar:{sameDay:"[\u0a05\u0a1c] LT",nextDay:"[\u0a15\u0a32] LT",nextWeek:"[\u0a05\u0a17\u0a32\u0a3e] dddd, LT",lastDay:"[\u0a15\u0a32] LT",lastWeek:"[\u0a2a\u0a3f\u0a1b\u0a32\u0a47] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0a35\u0a3f\u0a71\u0a1a",past:"%s \u0a2a\u0a3f\u0a1b\u0a32\u0a47",s:"\u0a15\u0a41\u0a1d \u0a38\u0a15\u0a3f\u0a70\u0a1f",ss:"%d \u0a38\u0a15\u0a3f\u0a70\u0a1f",m:"\u0a07\u0a15 \u0a2e\u0a3f\u0a70\u0a1f",mm:"%d \u0a2e\u0a3f\u0a70\u0a1f",h:"\u0a07\u0a71\u0a15 \u0a18\u0a70\u0a1f\u0a3e",hh:"%d \u0a18\u0a70\u0a1f\u0a47",d:"\u0a07\u0a71\u0a15 \u0a26\u0a3f\u0a28",dd:"%d \u0a26\u0a3f\u0a28",M:"\u0a07\u0a71\u0a15 \u0a2e\u0a39\u0a40\u0a28\u0a3e",MM:"%d \u0a2e\u0a39\u0a40\u0a28\u0a47",y:"\u0a07\u0a71\u0a15 \u0a38\u0a3e\u0a32",yy:"%d \u0a38\u0a3e\u0a32"},preparse:function(k){return k.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(R){return E[R]})},postformat:function(k){return k.replace(/\d/g,function(R){return C[R]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(k,R){return 12===k&&(k=0),"\u0a30\u0a3e\u0a24"===R?k<4?k:k+12:"\u0a38\u0a35\u0a47\u0a30"===R?k:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===R?k>=10?k:k+12:"\u0a38\u0a3c\u0a3e\u0a2e"===R?k+12:void 0},meridiem:function(k,R,P){return k<4?"\u0a30\u0a3e\u0a24":k<10?"\u0a38\u0a35\u0a47\u0a30":k<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":k<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(b(7586))},1063:function(m,y,b){!function(T){"use strict";var C="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),E="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),D=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^pa\u017a/i,/^lis/i,/^gru/i];function k(G){return G%10<5&&G%10>1&&~~(G/10)%10!=1}function R(G,Q,H){var Z=G+" ";switch(H){case"ss":return Z+(k(G)?"sekundy":"sekund");case"m":return Q?"minuta":"minut\u0119";case"mm":return Z+(k(G)?"minuty":"minut");case"h":return Q?"godzina":"godzin\u0119";case"hh":return Z+(k(G)?"godziny":"godzin");case"ww":return Z+(k(G)?"tygodnie":"tygodni");case"MM":return Z+(k(G)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return Z+(k(G)?"lata":"lat")}}T.defineLocale("pl",{months:function(G,Q){return G?/D MMMM/.test(Q)?E[G.month()]:C[G.month()]:C},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:D,longMonthsParse:D,shortMonthsParse:D,weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dzi\u015b o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:R,m:R,mm:R,h:R,hh:R,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:R,M:"miesi\u0105c",MM:R,y:"rok",yy:R},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(b(7586))},7476:function(m,y,b){!function(T){"use strict";T.defineLocale("pt-br",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_s\xe1b".split("_"),weekdaysMin:"do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",invalidDate:"Data inv\xe1lida"})}(b(7586))},8719:function(m,y,b){!function(T){"use strict";T.defineLocale("pt",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(b(7586))},1004:function(m,y,b){!function(T){"use strict";function C(D,k,R){var G=" ";return(D%100>=20||D>=100&&D%100==0)&&(G=" de "),D+G+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[R]}T.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[m\xe2ine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s \xeen urm\u0103",s:"c\xe2teva secunde",ss:C,m:"un minut",mm:C,h:"o or\u0103",hh:C,d:"o zi",dd:C,w:"o s\u0103pt\u0103m\xe2n\u0103",ww:C,M:"o lun\u0103",MM:C,y:"un an",yy:C},week:{dow:1,doy:7}})}(b(7586))},1326:function(m,y,b){!function(T){"use strict";function E(R,P,G){return"m"===G?P?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":R+" "+function C(R,P){var G=R.split("_");return P%10==1&&P%100!=11?G[0]:P%10>=2&&P%10<=4&&(P%100<10||P%100>=20)?G[1]:G[2]}({ss:P?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:P?"\u043c\u0438\u043d\u0443\u0442\u0430_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442":"\u043c\u0438\u043d\u0443\u0442\u0443_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043e\u0432",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u044f_\u0434\u043d\u0435\u0439",ww:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043d\u0435\u0434\u0435\u043b\u0438_\u043d\u0435\u0434\u0435\u043b\u044c",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u0430_\u043c\u0435\u0441\u044f\u0446\u0435\u0432",yy:"\u0433\u043e\u0434_\u0433\u043e\u0434\u0430_\u043b\u0435\u0442"}[G],+R)}var D=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];T.defineLocale("ru",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_")},monthsShort:{format:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),standalone:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_")},weekdays:{standalone:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),format:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?] ?dddd/},weekdaysShort:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),monthsParse:D,longMonthsParse:D,shortMonthsParse:D,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},calendar:{sameDay:"[\u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u0432] LT",nextDay:"[\u0417\u0430\u0432\u0442\u0440\u0430, \u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430, \u0432] LT",nextWeek:function(R){if(R.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e] dddd, [\u0432] LT"}},lastWeek:function(R){if(R.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u0443\u044e] dddd, [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043d\u0430\u0437\u0430\u0434",s:"\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434",ss:E,m:E,mm:E,h:"\u0447\u0430\u0441",hh:E,d:"\u0434\u0435\u043d\u044c",dd:E,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:E,M:"\u043c\u0435\u0441\u044f\u0446",MM:E,y:"\u0433\u043e\u0434",yy:E},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(R){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(R)},meridiem:function(R,P,G){return R<4?"\u043d\u043e\u0447\u0438":R<12?"\u0443\u0442\u0440\u0430":R<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(R,P){switch(P){case"M":case"d":case"DDD":return R+"-\u0439";case"D":return R+"-\u0433\u043e";case"w":case"W":return R+"-\u044f";default:return R}},week:{dow:1,doy:4}})}(b(7586))},2608:function(m,y,b){!function(T){"use strict";var C=["\u062c\u0646\u0648\u0631\u064a","\u0641\u064a\u0628\u0631\u0648\u0631\u064a","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u064a\u0644","\u0645\u0626\u064a","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0621\u0650","\u0622\u06af\u0633\u067d","\u0633\u064a\u067e\u067d\u0645\u0628\u0631","\u0622\u06aa\u067d\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u068a\u0633\u0645\u0628\u0631"],E=["\u0622\u0686\u0631","\u0633\u0648\u0645\u0631","\u0627\u06b1\u0627\u0631\u0648","\u0627\u0631\u0628\u0639","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639","\u0687\u0646\u0687\u0631"];T.defineLocale("sd",{months:C,monthsShort:C,weekdays:E,weekdaysShort:E,weekdaysMin:E,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(k){return"\u0634\u0627\u0645"===k},meridiem:function(k,R,P){return k<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0627\u0684] LT",nextDay:"[\u0633\u0680\u0627\u06bb\u064a] LT",nextWeek:"dddd [\u0627\u06b3\u064a\u0646 \u0647\u0641\u062a\u064a \u062a\u064a] LT",lastDay:"[\u06aa\u0627\u0644\u0647\u0647] LT",lastWeek:"[\u06af\u0632\u0631\u064a\u0644 \u0647\u0641\u062a\u064a] dddd [\u062a\u064a] LT",sameElse:"L"},relativeTime:{future:"%s \u067e\u0648\u0621",past:"%s \u0627\u06b3",s:"\u0686\u0646\u062f \u0633\u064a\u06aa\u0646\u068a",ss:"%d \u0633\u064a\u06aa\u0646\u068a",m:"\u0647\u06aa \u0645\u0646\u067d",mm:"%d \u0645\u0646\u067d",h:"\u0647\u06aa \u06aa\u0644\u0627\u06aa",hh:"%d \u06aa\u0644\u0627\u06aa",d:"\u0647\u06aa \u068f\u064a\u0646\u0647\u0646",dd:"%d \u068f\u064a\u0646\u0647\u0646",M:"\u0647\u06aa \u0645\u0647\u064a\u0646\u0648",MM:"%d \u0645\u0647\u064a\u0646\u0627",y:"\u0647\u06aa \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(k){return k.replace(/\u060c/g,",")},postformat:function(k){return k.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(b(7586))},3911:function(m,y,b){!function(T){"use strict";T.defineLocale("se",{months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(b(7586))},5147:function(m,y,b){!function(T){"use strict";T.defineLocale("si",{months:"\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2_\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2_\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4_\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4_\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca_\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca".split("_"),monthsShort:"\u0da2\u0db1_\u0db4\u0dd9\u0db6_\u0db8\u0dcf\u0dbb\u0dca_\u0d85\u0db4\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd_\u0dc3\u0dd0\u0db4\u0dca_\u0d94\u0d9a\u0dca_\u0db1\u0ddc\u0dc0\u0dd0_\u0daf\u0dd9\u0dc3\u0dd0".split("_"),weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},calendar:{sameDay:"[\u0d85\u0daf] LT[\u0da7]",nextDay:"[\u0dc4\u0dd9\u0da7] LT[\u0da7]",nextWeek:"dddd LT[\u0da7]",lastDay:"[\u0d8a\u0dba\u0dda] LT[\u0da7]",lastWeek:"[\u0db4\u0dc3\u0dd4\u0d9c\u0dd2\u0dba] dddd LT[\u0da7]",sameElse:"L"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",ss:"\u0dad\u0dad\u0dca\u0db4\u0dbb %d",m:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4\u0dc0",mm:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(E){return E+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(E){return"\u0db4.\u0dc0."===E||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===E},meridiem:function(E,D,k){return E>11?k?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":k?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(b(7586))},3741:function(m,y,b){!function(T){"use strict";var C="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),E="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function D(P){return P>1&&P<5}function k(P,G,Q,H){var Z=P+" ";switch(Q){case"s":return G||H?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return G||H?Z+(D(P)?"sekundy":"sek\xfand"):Z+"sekundami";case"m":return G?"min\xfata":H?"min\xfatu":"min\xfatou";case"mm":return G||H?Z+(D(P)?"min\xfaty":"min\xfat"):Z+"min\xfatami";case"h":return G?"hodina":H?"hodinu":"hodinou";case"hh":return G||H?Z+(D(P)?"hodiny":"hod\xedn"):Z+"hodinami";case"d":return G||H?"de\u0148":"d\u0148om";case"dd":return G||H?Z+(D(P)?"dni":"dn\xed"):Z+"d\u0148ami";case"M":return G||H?"mesiac":"mesiacom";case"MM":return G||H?Z+(D(P)?"mesiace":"mesiacov"):Z+"mesiacmi";case"y":return G||H?"rok":"rokom";case"yy":return G||H?Z+(D(P)?"roky":"rokov"):Z+"rokmi"}}T.defineLocale("sk",{months:C,monthsShort:E,weekdays:"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nede\u013eu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo \u0161tvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[v\u010dera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minul\xfa nede\u013eu o] LT";case 1:case 2:case 4:case 5:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:k,ss:k,m:k,mm:k,h:k,hh:k,d:k,dd:k,M:k,MM:k,y:k,yy:k},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(b(7586))},3e3:function(m,y,b){!function(T){"use strict";function C(D,k,R,P){var G=D+" ";switch(R){case"s":return k||P?"nekaj sekund":"nekaj sekundami";case"ss":return G+(1===D?k?"sekundo":"sekundi":2===D?k||P?"sekundi":"sekundah":D<5?k||P?"sekunde":"sekundah":"sekund");case"m":return k?"ena minuta":"eno minuto";case"mm":return G+(1===D?k?"minuta":"minuto":2===D?k||P?"minuti":"minutama":D<5?k||P?"minute":"minutami":k||P?"minut":"minutami");case"h":return k?"ena ura":"eno uro";case"hh":return G+(1===D?k?"ura":"uro":2===D?k||P?"uri":"urama":D<5?k||P?"ure":"urami":k||P?"ur":"urami");case"d":return k||P?"en dan":"enim dnem";case"dd":return G+(1===D?k||P?"dan":"dnem":2===D?k||P?"dni":"dnevoma":k||P?"dni":"dnevi");case"M":return k||P?"en mesec":"enim mesecem";case"MM":return G+(1===D?k||P?"mesec":"mesecem":2===D?k||P?"meseca":"mesecema":D<5?k||P?"mesece":"meseci":k||P?"mesecev":"meseci");case"y":return k||P?"eno leto":"enim letom";case"yy":return G+(1===D?k||P?"leto":"letom":2===D?k||P?"leti":"letoma":D<5?k||P?"leta":"leti":k||P?"let":"leti")}}T.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_\u010de_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[v\u010deraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prej\u0161njo] [nedeljo] [ob] LT";case 3:return"[prej\u0161njo] [sredo] [ob] LT";case 6:return"[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prej\u0161nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"\u010dez %s",past:"pred %s",s:C,ss:C,m:C,mm:C,h:C,hh:C,d:C,dd:C,M:C,MM:C,y:C,yy:C},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(b(7586))},451:function(m,y,b){!function(T){"use strict";T.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(E){return"M"===E.charAt(0)},meridiem:function(E,D,k){return E<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot n\xeb] LT",nextDay:"[Nes\xebr n\xeb] LT",nextWeek:"dddd [n\xeb] LT",lastDay:"[Dje n\xeb] LT",lastWeek:"dddd [e kaluar n\xeb] LT",sameElse:"L"},relativeTime:{future:"n\xeb %s",past:"%s m\xeb par\xeb",s:"disa sekonda",ss:"%d sekonda",m:"nj\xeb minut\xeb",mm:"%d minuta",h:"nj\xeb or\xeb",hh:"%d or\xeb",d:"nj\xeb dit\xeb",dd:"%d dit\xeb",M:"nj\xeb muaj",MM:"%d muaj",y:"nj\xeb vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(b(7586))},905:function(m,y,b){!function(T){"use strict";var C={words:{ss:["\u0441\u0435\u043a\u0443\u043d\u0434\u0430","\u0441\u0435\u043a\u0443\u043d\u0434\u0435","\u0441\u0435\u043a\u0443\u043d\u0434\u0438"],m:["\u0458\u0435\u0434\u0430\u043d \u043c\u0438\u043d\u0443\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0438\u043d\u0443\u0442\u0430"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0430","\u043c\u0438\u043d\u0443\u0442\u0430"],h:["\u0458\u0435\u0434\u0430\u043d \u0441\u0430\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u0441\u0430\u0442\u0430"],hh:["\u0441\u0430\u0442","\u0441\u0430\u0442\u0430","\u0441\u0430\u0442\u0438"],d:["\u0458\u0435\u0434\u0430\u043d \u0434\u0430\u043d","\u0458\u0435\u0434\u043d\u043e\u0433 \u0434\u0430\u043d\u0430"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],M:["\u0458\u0435\u0434\u0430\u043d \u043c\u0435\u0441\u0435\u0446","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0435\u0441\u0435\u0446\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],y:["\u0458\u0435\u0434\u043d\u0443 \u0433\u043e\u0434\u0438\u043d\u0443","\u0458\u0435\u0434\u043d\u0435 \u0433\u043e\u0434\u0438\u043d\u0435"],yy:["\u0433\u043e\u0434\u0438\u043d\u0443","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(D,k){return D%10>=1&&D%10<=4&&(D%100<10||D%100>=20)?D%10==1?k[0]:k[1]:k[2]},translate:function(D,k,R,P){var Q,G=C.words[R];return 1===R.length?"y"===R&&k?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":P||k?G[0]:G[1]:(Q=C.correctGrammaticalCase(D,G),"yy"===R&&k&&"\u0433\u043e\u0434\u0438\u043d\u0443"===Q?D+" \u0433\u043e\u0434\u0438\u043d\u0430":D+" "+Q)}};T.defineLocale("sr-cyrl",{months:"\u0458\u0430\u043d\u0443\u0430\u0440_\u0444\u0435\u0431\u0440\u0443\u0430\u0440_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u043e\u043a\u0442\u043e\u0431\u0430\u0440_\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0458\u0430\u043d._\u0444\u0435\u0431._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433._\u0441\u0435\u043f._\u043e\u043a\u0442._\u043d\u043e\u0432._\u0434\u0435\u0446.".split("_"),monthsParseExact:!0,weekdays:"\u043d\u0435\u0434\u0435\u0459\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0443\u0442\u043e\u0440\u0430\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u043f\u0435\u0442\u0430\u043a_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434._\u043f\u043e\u043d._\u0443\u0442\u043e._\u0441\u0440\u0435._\u0447\u0435\u0442._\u043f\u0435\u0442._\u0441\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[\u0434\u0430\u043d\u0430\u0441 \u0443] LT",nextDay:"[\u0441\u0443\u0442\u0440\u0430 \u0443] LT",nextWeek:function(){switch(this.day()){case 0:return"[\u0443] [\u043d\u0435\u0434\u0435\u0459\u0443] [\u0443] LT";case 3:return"[\u0443] [\u0441\u0440\u0435\u0434\u0443] [\u0443] LT";case 6:return"[\u0443] [\u0441\u0443\u0431\u043e\u0442\u0443] [\u0443] LT";case 1:case 2:case 4:case 5:return"[\u0443] dddd [\u0443] LT"}},lastDay:"[\u0458\u0443\u0447\u0435 \u0443] LT",lastWeek:function(){return["[\u043f\u0440\u043e\u0448\u043b\u0435] [\u043d\u0435\u0434\u0435\u0459\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0443\u0442\u043e\u0440\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0440\u0435\u0434\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0447\u0435\u0442\u0432\u0440\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u0435\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0443\u0431\u043e\u0442\u0435] [\u0443] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435 %s",s:"\u043d\u0435\u043a\u043e\u043b\u0438\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:C.translate,m:C.translate,mm:C.translate,h:C.translate,hh:C.translate,d:C.translate,dd:C.translate,M:C.translate,MM:C.translate,y:C.translate,yy:C.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(b(7586))},5046:function(m,y,b){!function(T){"use strict";var C={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(D,k){return D%10>=1&&D%10<=4&&(D%100<10||D%100>=20)?D%10==1?k[0]:k[1]:k[2]},translate:function(D,k,R,P){var Q,G=C.words[R];return 1===R.length?"y"===R&&k?"jedna godina":P||k?G[0]:G[1]:(Q=C.correctGrammaticalCase(D,G),"yy"===R&&k&&"godinu"===Q?D+" godina":D+" "+Q)}};T.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedelje] [u] LT","[pro\u0161log] [ponedeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:C.translate,m:C.translate,mm:C.translate,h:C.translate,hh:C.translate,d:C.translate,dd:C.translate,M:C.translate,MM:C.translate,y:C.translate,yy:C.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(b(7586))},5765:function(m,y,b){!function(T){"use strict";T.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(E,D,k){return E<11?"ekuseni":E<15?"emini":E<19?"entsambama":"ebusuku"},meridiemHour:function(E,D){return 12===E&&(E=0),"ekuseni"===D?E:"emini"===D?E>=11?E:E+12:"entsambama"===D||"ebusuku"===D?0===E?0:E+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(b(7586))},9290:function(m,y,b){!function(T){"use strict";T.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xe5r] LT",nextWeek:"[P\xe5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(E){var D=E%10;return E+(1==~~(E%100/10)?":e":1===D||2===D?":a":":e")},week:{dow:1,doy:4}})}(b(7586))},3449:function(m,y,b){!function(T){"use strict";T.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(b(7586))},2688:function(m,y,b){!function(T){"use strict";var C={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},E={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};T.defineLocale("ta",{months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[\u0b87\u0ba9\u0bcd\u0bb1\u0bc1] LT",nextDay:"[\u0ba8\u0bbe\u0bb3\u0bc8] LT",nextWeek:"dddd, LT",lastDay:"[\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1] LT",lastWeek:"[\u0b95\u0b9f\u0ba8\u0bcd\u0ba4 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",ss:"%d \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(k){return k+"\u0bb5\u0ba4\u0bc1"},preparse:function(k){return k.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(R){return E[R]})},postformat:function(k){return k.replace(/\d/g,function(R){return C[R]})},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(k,R,P){return k<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":k<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":k<10?" \u0b95\u0bbe\u0bb2\u0bc8":k<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":k<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":k<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(k,R){return 12===k&&(k=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===R?k<2?k:k+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===R||"\u0b95\u0bbe\u0bb2\u0bc8"===R||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===R&&k>=10?k:k+12},week:{dow:0,doy:6}})}(b(7586))},2060:function(m,y,b){!function(T){"use strict";T.defineLocale("te",{months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),monthsParseExact:!0,weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c28\u0c47\u0c21\u0c41] LT",nextDay:"[\u0c30\u0c47\u0c2a\u0c41] LT",nextWeek:"dddd, LT",lastDay:"[\u0c28\u0c3f\u0c28\u0c4d\u0c28] LT",lastWeek:"[\u0c17\u0c24] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",ss:"%d \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%d\u0c35",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(E,D){return 12===E&&(E=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===D?E<4?E:E+12:"\u0c09\u0c26\u0c2f\u0c02"===D?E:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===D?E>=10?E:E+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===D?E+12:void 0},meridiem:function(E,D,k){return E<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":E<10?"\u0c09\u0c26\u0c2f\u0c02":E<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":E<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(b(7586))},3290:function(m,y,b){!function(T){"use strict";T.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var D=E%10;return E+(1==~~(E%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:1,doy:4}})}(b(7586))},8294:function(m,y,b){!function(T){"use strict";var C={0:"-\u0443\u043c",1:"-\u0443\u043c",2:"-\u044e\u043c",3:"-\u044e\u043c",4:"-\u0443\u043c",5:"-\u0443\u043c",6:"-\u0443\u043c",7:"-\u0443\u043c",8:"-\u0443\u043c",9:"-\u0443\u043c",10:"-\u0443\u043c",12:"-\u0443\u043c",13:"-\u0443\u043c",20:"-\u0443\u043c",30:"-\u044e\u043c",40:"-\u0443\u043c",50:"-\u0443\u043c",60:"-\u0443\u043c",70:"-\u0443\u043c",80:"-\u0443\u043c",90:"-\u0443\u043c",100:"-\u0443\u043c"};T.defineLocale("tg",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0430\u043b\u0438_\u043c\u0430\u0440\u0442\u0438_\u0430\u043f\u0440\u0435\u043b\u0438_\u043c\u0430\u0439\u0438_\u0438\u044e\u043d\u0438_\u0438\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442\u0438_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u0438_\u043e\u043a\u0442\u044f\u0431\u0440\u0438_\u043d\u043e\u044f\u0431\u0440\u0438_\u0434\u0435\u043a\u0430\u0431\u0440\u0438".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_")},monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u044f\u043a\u0448\u0430\u043d\u0431\u0435_\u0434\u0443\u0448\u0430\u043d\u0431\u0435_\u0441\u0435\u0448\u0430\u043d\u0431\u0435_\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0435_\u043f\u0430\u043d\u04b7\u0448\u0430\u043d\u0431\u0435_\u04b7\u0443\u043c\u044a\u0430_\u0448\u0430\u043d\u0431\u0435".split("_"),weekdaysShort:"\u044f\u0448\u0431_\u0434\u0448\u0431_\u0441\u0448\u0431_\u0447\u0448\u0431_\u043f\u0448\u0431_\u04b7\u0443\u043c_\u0448\u043d\u0431".split("_"),weekdaysMin:"\u044f\u0448_\u0434\u0448_\u0441\u0448_\u0447\u0448_\u043f\u0448_\u04b7\u043c_\u0448\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0418\u043c\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextDay:"[\u0424\u0430\u0440\u0434\u043e \u0441\u043e\u0430\u0442\u0438] LT",lastDay:"[\u0414\u0438\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u043e\u044f\u043d\u0434\u0430 \u0441\u043e\u0430\u0442\u0438] LT",lastWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043e\u0430\u0442\u0438] LT",sameElse:"L"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(D,k){return 12===D&&(D=0),"\u0448\u0430\u0431"===k?D<4?D:D+12:"\u0441\u0443\u0431\u04b3"===k?D:"\u0440\u04ef\u0437"===k?D>=11?D:D+12:"\u0431\u0435\u0433\u043e\u04b3"===k?D+12:void 0},meridiem:function(D,k,R){return D<4?"\u0448\u0430\u0431":D<11?"\u0441\u0443\u0431\u04b3":D<16?"\u0440\u04ef\u0437":D<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(D){return D+(C[D]||C[D%10]||C[D>=100?100:null])},week:{dow:1,doy:7}})}(b(7586))},1231:function(m,y,b){!function(T){"use strict";T.defineLocale("th",{months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(E){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===E},meridiem:function(E,D,k){return E<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"},calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",w:"1 \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",ww:"%d \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(b(7586))},3746:function(m,y,b){!function(T){"use strict";var C={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'\xfcnji",4:"'\xfcnji",100:"'\xfcnji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};T.defineLocale("tk",{months:"\xddanwar_Fewral_Mart_Aprel_Ma\xfd_I\xfdun_I\xfdul_Awgust_Sent\xfdabr_Okt\xfdabr_No\xfdabr_Dekabr".split("_"),monthsShort:"\xddan_Few_Mar_Apr_Ma\xfd_I\xfdn_I\xfdl_Awg_Sen_Okt_No\xfd_Dek".split("_"),weekdays:"\xddek\u015fenbe_Du\u015fenbe_Si\u015fenbe_\xc7ar\u015fenbe_Pen\u015fenbe_Anna_\u015eenbe".split("_"),weekdaysShort:"\xddek_Du\u015f_Si\u015f_\xc7ar_Pen_Ann_\u015een".split("_"),weekdaysMin:"\xddk_D\u015f_S\u015f_\xc7r_Pn_An_\u015en".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[d\xfc\xfdn] LT",lastWeek:"[ge\xe7en] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s so\u0148",past:"%s \xf6\u0148",s:"birn\xe4\xe7e sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir a\xfd",MM:"%d a\xfd",y:"bir \xfdyl",yy:"%d \xfdyl"},ordinal:function(D,k){switch(k){case"d":case"D":case"Do":case"DD":return D;default:if(0===D)return D+"'unjy";var R=D%10;return D+(C[R]||C[D%100-R]||C[D>=100?100:null])}},week:{dow:1,doy:7}})}(b(7586))},9040:function(m,y,b){!function(T){"use strict";T.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(E){return E},week:{dow:1,doy:4}})}(b(7586))},7187:function(m,y,b){!function(T){"use strict";var C="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function k(G,Q,H,Z){var X=function R(G){var Q=Math.floor(G%1e3/100),H=Math.floor(G%100/10),Z=G%10,X="";return Q>0&&(X+=C[Q]+"vatlh"),H>0&&(X+=(""!==X?" ":"")+C[H]+"maH"),Z>0&&(X+=(""!==X?" ":"")+C[Z]),""===X?"pagh":X}(G);switch(H){case"ss":return X+" lup";case"mm":return X+" tup";case"hh":return X+" rep";case"dd":return X+" jaj";case"MM":return X+" jar";case"yy":return X+" DIS"}}T.defineLocale("tlh",{months:"tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"),monthsShort:"jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_jar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa\u2019leS] LT",nextWeek:"LLL",lastDay:"[wa\u2019Hu\u2019] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function E(G){var Q=G;return-1!==G.indexOf("jaj")?Q.slice(0,-3)+"leS":-1!==G.indexOf("jar")?Q.slice(0,-3)+"waQ":-1!==G.indexOf("DIS")?Q.slice(0,-3)+"nem":Q+" pIq"},past:function D(G){var Q=G;return-1!==G.indexOf("jaj")?Q.slice(0,-3)+"Hu\u2019":-1!==G.indexOf("jar")?Q.slice(0,-3)+"wen":-1!==G.indexOf("DIS")?Q.slice(0,-3)+"ben":Q+" ret"},s:"puS lup",ss:k,m:"wa\u2019 tup",mm:k,h:"wa\u2019 rep",hh:k,d:"wa\u2019 jaj",dd:k,M:"wa\u2019 jar",MM:k,y:"wa\u2019 DIS",yy:k},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(b(7586))},153:function(m,y,b){!function(T){"use strict";var C={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};T.defineLocale("tr",{months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_\xc7ar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),meridiem:function(D,k,R){return D<12?R?"\xf6\xf6":"\xd6\xd6":R?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(D){return"\xf6s"===D||"\xd6S"===D},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[yar\u0131n saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[d\xfcn] LT",lastWeek:"[ge\xe7en] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \xf6nce",s:"birka\xe7 saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(D,k){switch(k){case"d":case"D":case"Do":case"DD":return D;default:if(0===D)return D+"'\u0131nc\u0131";var R=D%10;return D+(C[R]||C[D%100-R]||C[D>=100?100:null])}},week:{dow:1,doy:7}})}(b(7586))},8521:function(m,y,b){!function(T){"use strict";function E(D,k,R,P){var G={s:["viensas secunds","'iensas secunds"],ss:[D+" secunds",D+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[D+" m\xeduts",D+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[D+" \xfeoras",D+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[D+" ziuas",D+" ziuas"],M:["'n mes","'iens mes"],MM:[D+" mesen",D+" mesen"],y:["'n ar","'iens ar"],yy:[D+" ars",D+" ars"]};return P||k?G[R][0]:G[R][1]}T.defineLocale("tzl",{months:"Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4ts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"),weekdaysShort:"S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"),weekdaysMin:"S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(D){return"d'o"===D.toLowerCase()},meridiem:function(D,k,R){return D>11?R?"d'o":"D'O":R?"d'a":"D'A"},calendar:{sameDay:"[oxhi \xe0] LT",nextDay:"[dem\xe0 \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[ieiri \xe0] LT",lastWeek:"[s\xfcr el] dddd [lasteu \xe0] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:E,ss:E,m:E,mm:E,h:E,hh:E,d:E,dd:E,M:E,MM:E,y:E,yy:E},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(b(7586))},2234:function(m,y,b){!function(T){"use strict";T.defineLocale("tzm-latn",{months:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minu\u1e0d",mm:"%d minu\u1e0d",h:"sa\u025ba",hh:"%d tassa\u025bin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(b(7586))},8010:function(m,y,b){!function(T){"use strict";T.defineLocale("tzm",{months:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),monthsShort:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekdays:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysShort:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysMin:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u2d30\u2d59\u2d37\u2d45 \u2d34] LT",nextDay:"[\u2d30\u2d59\u2d3d\u2d30 \u2d34] LT",nextWeek:"dddd [\u2d34] LT",lastDay:"[\u2d30\u2d5a\u2d30\u2d4f\u2d5c \u2d34] LT",lastWeek:"dddd [\u2d34] LT",sameElse:"L"},relativeTime:{future:"\u2d37\u2d30\u2d37\u2d45 \u2d59 \u2d62\u2d30\u2d4f %s",past:"\u2d62\u2d30\u2d4f %s",s:"\u2d49\u2d4e\u2d49\u2d3d",ss:"%d \u2d49\u2d4e\u2d49\u2d3d",m:"\u2d4e\u2d49\u2d4f\u2d53\u2d3a",mm:"%d \u2d4e\u2d49\u2d4f\u2d53\u2d3a",h:"\u2d59\u2d30\u2d44\u2d30",hh:"%d \u2d5c\u2d30\u2d59\u2d59\u2d30\u2d44\u2d49\u2d4f",d:"\u2d30\u2d59\u2d59",dd:"%d o\u2d59\u2d59\u2d30\u2d4f",M:"\u2d30\u2d62o\u2d53\u2d54",MM:"%d \u2d49\u2d62\u2d62\u2d49\u2d54\u2d4f",y:"\u2d30\u2d59\u2d33\u2d30\u2d59",yy:"%d \u2d49\u2d59\u2d33\u2d30\u2d59\u2d4f"},week:{dow:6,doy:12}})}(b(7586))},3349:function(m,y,b){!function(T){"use strict";T.defineLocale("ug-cn",{months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(E,D){return 12===E&&(E=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===D||"\u0633\u06d5\u06be\u06d5\u0631"===D||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===D?E:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===D||"\u0643\u06d5\u0686"===D?E+12:E>=11?E:E+12},meridiem:function(E,D,k){var R=100*E+D;return R<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":R<900?"\u0633\u06d5\u06be\u06d5\u0631":R<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":R<1230?"\u0686\u06c8\u0634":R<1800?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646":"\u0643\u06d5\u0686"},calendar:{sameDay:"[\u0628\u06c8\u06af\u06c8\u0646 \u0633\u0627\u0626\u06d5\u062a] LT",nextDay:"[\u0626\u06d5\u062a\u06d5 \u0633\u0627\u0626\u06d5\u062a] LT",nextWeek:"[\u0643\u06d0\u0644\u06d5\u0631\u0643\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",lastDay:"[\u062a\u06c6\u0646\u06c8\u06af\u06c8\u0646] LT",lastWeek:"[\u0626\u0627\u0644\u062f\u0649\u0646\u0642\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0643\u06d0\u064a\u0649\u0646",past:"%s \u0628\u06c7\u0631\u06c7\u0646",s:"\u0646\u06d5\u0686\u0686\u06d5 \u0633\u06d0\u0643\u0648\u0646\u062a",ss:"%d \u0633\u06d0\u0643\u0648\u0646\u062a",m:"\u0628\u0649\u0631 \u0645\u0649\u0646\u06c7\u062a",mm:"%d \u0645\u0649\u0646\u06c7\u062a",h:"\u0628\u0649\u0631 \u0633\u0627\u0626\u06d5\u062a",hh:"%d \u0633\u0627\u0626\u06d5\u062a",d:"\u0628\u0649\u0631 \u0643\u06c8\u0646",dd:"%d \u0643\u06c8\u0646",M:"\u0628\u0649\u0631 \u0626\u0627\u064a",MM:"%d \u0626\u0627\u064a",y:"\u0628\u0649\u0631 \u064a\u0649\u0644",yy:"%d \u064a\u0649\u0644"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(E,D){switch(D){case"d":case"D":case"DDD":return E+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return E+"-\u06be\u06d5\u067e\u062a\u06d5";default:return E}},preparse:function(E){return E.replace(/\u060c/g,",")},postformat:function(E){return E.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(b(7586))},8479:function(m,y,b){!function(T){"use strict";function E(P,G,Q){return"m"===Q?G?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===Q?G?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":P+" "+function C(P,G){var Q=P.split("_");return G%10==1&&G%100!=11?Q[0]:G%10>=2&&G%10<=4&&(G%100<10||G%100>=20)?Q[1]:Q[2]}({ss:G?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434",mm:G?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d",hh:G?"\u0433\u043e\u0434\u0438\u043d\u0430_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d":"\u0433\u043e\u0434\u0438\u043d\u0443_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u043d\u0456\u0432",MM:"\u043c\u0456\u0441\u044f\u0446\u044c_\u043c\u0456\u0441\u044f\u0446\u0456_\u043c\u0456\u0441\u044f\u0446\u0456\u0432",yy:"\u0440\u0456\u043a_\u0440\u043e\u043a\u0438_\u0440\u043e\u043a\u0456\u0432"}[Q],+P)}function k(P){return function(){return P+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}T.defineLocale("uk",{months:{format:"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_")},monthsShort:"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:function D(P,G){var Q={nominative:"\u043d\u0435\u0434\u0456\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044f_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),accusative:"\u043d\u0435\u0434\u0456\u043b\u044e_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044e_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),genitive:"\u043d\u0435\u0434\u0456\u043b\u0456_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043a\u0430_\u0432\u0456\u0432\u0442\u043e\u0440\u043a\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u0456_\u0441\u0443\u0431\u043e\u0442\u0438".split("_")};return!0===P?Q.nominative.slice(1,7).concat(Q.nominative.slice(0,1)):P?Q[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(G)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(G)?"genitive":"nominative"][P.day()]:Q.nominative},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:k("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:k("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:k("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:k("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return k("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return k("[\u041c\u0438\u043d\u0443\u043b\u043e\u0433\u043e] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043e\u043c\u0443",s:"\u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0441\u0435\u043a\u0443\u043d\u0434",ss:E,m:E,mm:E,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:E,d:"\u0434\u0435\u043d\u044c",dd:E,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:E,y:"\u0440\u0456\u043a",yy:E},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(P){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(P)},meridiem:function(P,G,Q){return P<4?"\u043d\u043e\u0447\u0456":P<12?"\u0440\u0430\u043d\u043a\u0443":P<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(P,G){switch(G){case"M":case"d":case"DDD":case"w":case"W":return P+"-\u0439";case"D":return P+"-\u0433\u043e";default:return P}},week:{dow:1,doy:7}})}(b(7586))},3024:function(m,y,b){!function(T){"use strict";var C=["\u062c\u0646\u0648\u0631\u06cc","\u0641\u0631\u0648\u0631\u06cc","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u06cc\u0644","\u0645\u0626\u06cc","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0626\u06cc","\u0627\u06af\u0633\u062a","\u0633\u062a\u0645\u0628\u0631","\u0627\u06a9\u062a\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u062f\u0633\u0645\u0628\u0631"],E=["\u0627\u062a\u0648\u0627\u0631","\u067e\u06cc\u0631","\u0645\u0646\u06af\u0644","\u0628\u062f\u06be","\u062c\u0645\u0639\u0631\u0627\u062a","\u062c\u0645\u0639\u06c1","\u06c1\u0641\u062a\u06c1"];T.defineLocale("ur",{months:C,monthsShort:C,weekdays:E,weekdaysShort:E,weekdaysMin:E,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(k){return"\u0634\u0627\u0645"===k},meridiem:function(k,R,P){return k<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0622\u062c \u0628\u0648\u0642\u062a] LT",nextDay:"[\u06a9\u0644 \u0628\u0648\u0642\u062a] LT",nextWeek:"dddd [\u0628\u0648\u0642\u062a] LT",lastDay:"[\u06af\u0630\u0634\u062a\u06c1 \u0631\u0648\u0632 \u0628\u0648\u0642\u062a] LT",lastWeek:"[\u06af\u0630\u0634\u062a\u06c1] dddd [\u0628\u0648\u0642\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0628\u0639\u062f",past:"%s \u0642\u0628\u0644",s:"\u0686\u0646\u062f \u0633\u06cc\u06a9\u0646\u0688",ss:"%d \u0633\u06cc\u06a9\u0646\u0688",m:"\u0627\u06cc\u06a9 \u0645\u0646\u0679",mm:"%d \u0645\u0646\u0679",h:"\u0627\u06cc\u06a9 \u06af\u06be\u0646\u0679\u06c1",hh:"%d \u06af\u06be\u0646\u0679\u06d2",d:"\u0627\u06cc\u06a9 \u062f\u0646",dd:"%d \u062f\u0646",M:"\u0627\u06cc\u06a9 \u0645\u0627\u06c1",MM:"%d \u0645\u0627\u06c1",y:"\u0627\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(k){return k.replace(/\u060c/g,",")},postformat:function(k){return k.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(b(7586))},2376:function(m,y,b){!function(T){"use strict";T.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(b(7586))},9800:function(m,y,b){!function(T){"use strict";T.defineLocale("uz",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[\u0411\u0443\u0433\u0443\u043d \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",nextDay:"[\u042d\u0440\u0442\u0430\u0433\u0430] LT [\u0434\u0430]",nextWeek:"dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastDay:"[\u041a\u0435\u0447\u0430 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastWeek:"[\u0423\u0442\u0433\u0430\u043d] dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",sameElse:"L"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"\u0411\u0438\u0440 \u043d\u0435\u0447\u0430 %s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",ss:"%d \u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"},week:{dow:1,doy:7}})}(b(7586))},9366:function(m,y,b){!function(T){"use strict";T.defineLocale("vi",{months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(E){return/^ch$/i.test(E)},meridiem:function(E,D,k){return E<12?k?"sa":"SA":k?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[H\xf4m nay l\xfac] LT",nextDay:"[Ng\xe0y mai l\xfac] LT",nextWeek:"dddd [tu\u1ea7n t\u1edbi l\xfac] LT",lastDay:"[H\xf4m qua l\xfac] LT",lastWeek:"dddd [tu\u1ea7n tr\u01b0\u1edbc l\xfac] LT",sameElse:"L"},relativeTime:{future:"%s t\u1edbi",past:"%s tr\u01b0\u1edbc",s:"v\xe0i gi\xe2y",ss:"%d gi\xe2y",m:"m\u1ed9t ph\xfat",mm:"%d ph\xfat",h:"m\u1ed9t gi\u1edd",hh:"%d gi\u1edd",d:"m\u1ed9t ng\xe0y",dd:"%d ng\xe0y",w:"m\u1ed9t tu\u1ea7n",ww:"%d tu\u1ea7n",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(E){return E},week:{dow:1,doy:4}})}(b(7586))},9702:function(m,y,b){!function(T){"use strict";T.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(E){var D=E%10;return E+(1==~~(E%100/10)?"th":1===D?"st":2===D?"nd":3===D?"rd":"th")},week:{dow:1,doy:4}})}(b(7586))},2655:function(m,y,b){!function(T){"use strict";T.defineLocale("yo",{months:"S\u1eb9\u0301r\u1eb9\u0301_E\u0300re\u0300le\u0300_\u1eb8r\u1eb9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1eb9mo_O\u0300gu\u0301n_Owewe_\u1ecc\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),monthsShort:"S\u1eb9\u0301r_E\u0300rl_\u1eb8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1eb9_O\u0300gu\u0301_Owe_\u1ecc\u0300wa\u0300_Be\u0301l_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekdays:"A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1eb9\u0301gun_\u1eccj\u1ecd\u0301ru\u0301_\u1eccj\u1ecd\u0301b\u1ecd_\u1eb8ti\u0300_A\u0300ba\u0301m\u1eb9\u0301ta".split("_"),weekdaysShort:"A\u0300i\u0300k_Aje\u0301_I\u0300s\u1eb9\u0301_\u1eccjr_\u1eccjb_\u1eb8ti\u0300_A\u0300ba\u0301".split("_"),weekdaysMin:"A\u0300i\u0300_Aj_I\u0300s_\u1eccr_\u1eccb_\u1eb8t_A\u0300b".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[O\u0300ni\u0300 ni] LT",nextDay:"[\u1ecc\u0300la ni] LT",nextWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301n'b\u1ecd] [ni] LT",lastDay:"[A\u0300na ni] LT",lastWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301l\u1ecd\u0301] [ni] LT",sameElse:"L"},relativeTime:{future:"ni\u0301 %s",past:"%s k\u1ecdja\u0301",s:"i\u0300s\u1eb9ju\u0301 aaya\u0301 die",ss:"aaya\u0301 %d",m:"i\u0300s\u1eb9ju\u0301 kan",mm:"i\u0300s\u1eb9ju\u0301 %d",h:"wa\u0301kati kan",hh:"wa\u0301kati %d",d:"\u1ecdj\u1ecd\u0301 kan",dd:"\u1ecdj\u1ecd\u0301 %d",M:"osu\u0300 kan",MM:"osu\u0300 %d",y:"\u1ecddu\u0301n kan",yy:"\u1ecddu\u0301n %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"\u1ecdj\u1ecd\u0301 %d",week:{dow:1,doy:4}})}(b(7586))},575:function(m,y,b){!function(T){"use strict";T.defineLocale("zh-cn",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(E,D){return 12===E&&(E=0),"\u51cc\u6668"===D||"\u65e9\u4e0a"===D||"\u4e0a\u5348"===D?E:"\u4e0b\u5348"===D||"\u665a\u4e0a"===D?E+12:E>=11?E:E+12},meridiem:function(E,D,k){var R=100*E+D;return R<600?"\u51cc\u6668":R<900?"\u65e9\u4e0a":R<1130?"\u4e0a\u5348":R<1230?"\u4e2d\u5348":R<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:function(E){return E.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(E){return this.week()!==E.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(E,D){switch(D){case"d":case"D":case"DDD":return E+"\u65e5";case"M":return E+"\u6708";case"w":case"W":return E+"\u5468";default:return E}},relativeTime:{future:"%s\u540e",past:"%s\u524d",s:"\u51e0\u79d2",ss:"%d \u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",w:"1 \u5468",ww:"%d \u5468",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(b(7586))},8351:function(m,y,b){!function(T){"use strict";T.defineLocale("zh-hk",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(E,D){return 12===E&&(E=0),"\u51cc\u6668"===D||"\u65e9\u4e0a"===D||"\u4e0a\u5348"===D?E:"\u4e2d\u5348"===D?E>=11?E:E+12:"\u4e0b\u5348"===D||"\u665a\u4e0a"===D?E+12:void 0},meridiem:function(E,D,k){var R=100*E+D;return R<600?"\u51cc\u6668":R<900?"\u65e9\u4e0a":R<1200?"\u4e0a\u5348":1200===R?"\u4e2d\u5348":R<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(E,D){switch(D){case"d":case"D":case"DDD":return E+"\u65e5";case"M":return E+"\u6708";case"w":case"W":return E+"\u9031";default:return E}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(b(7586))},1626:function(m,y,b){!function(T){"use strict";T.defineLocale("zh-mo",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"D/M/YYYY",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(E,D){return 12===E&&(E=0),"\u51cc\u6668"===D||"\u65e9\u4e0a"===D||"\u4e0a\u5348"===D?E:"\u4e2d\u5348"===D?E>=11?E:E+12:"\u4e0b\u5348"===D||"\u665a\u4e0a"===D?E+12:void 0},meridiem:function(E,D,k){var R=100*E+D;return R<600?"\u51cc\u6668":R<900?"\u65e9\u4e0a":R<1130?"\u4e0a\u5348":R<1230?"\u4e2d\u5348":R<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(E,D){switch(D){case"d":case"D":case"DDD":return E+"\u65e5";case"M":return E+"\u6708";case"w":case"W":return E+"\u9031";default:return E}},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(b(7586))},8887:function(m,y,b){!function(T){"use strict";T.defineLocale("zh-tw",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(E,D){return 12===E&&(E=0),"\u51cc\u6668"===D||"\u65e9\u4e0a"===D||"\u4e0a\u5348"===D?E:"\u4e2d\u5348"===D?E>=11?E:E+12:"\u4e0b\u5348"===D||"\u665a\u4e0a"===D?E+12:void 0},meridiem:function(E,D,k){var R=100*E+D;return R<600?"\u51cc\u6668":R<900?"\u65e9\u4e0a":R<1130?"\u4e0a\u5348":R<1230?"\u4e2d\u5348":R<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(E,D){switch(D){case"d":case"D":case"DDD":return E+"\u65e5";case"M":return E+"\u6708";case"w":case"W":return E+"\u9031";default:return E}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(b(7586))},7586:function(m,y,b){(m=b.nmd(m)).exports=function(){"use strict";var T,ne;function C(){return T.apply(null,arguments)}function D(U){return U instanceof Array||"[object Array]"===Object.prototype.toString.call(U)}function k(U){return null!=U&&"[object Object]"===Object.prototype.toString.call(U)}function R(U,ve){return Object.prototype.hasOwnProperty.call(U,ve)}function P(U){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(U).length;var ve;for(ve in U)if(R(U,ve))return!1;return!0}function G(U){return void 0===U}function Q(U){return"number"==typeof U||"[object Number]"===Object.prototype.toString.call(U)}function H(U){return U instanceof Date||"[object Date]"===Object.prototype.toString.call(U)}function Z(U,ve){var et,Ue=[],It=U.length;for(et=0;et<It;++et)Ue.push(ve(U[et],et));return Ue}function X(U,ve){for(var Ue in ve)R(ve,Ue)&&(U[Ue]=ve[Ue]);return R(ve,"toString")&&(U.toString=ve.toString),R(ve,"valueOf")&&(U.valueOf=ve.valueOf),U}function z(U,ve,Ue,et){return Tr(U,ve,Ue,et,!0).utc()}function q(U){return null==U._pf&&(U._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),U._pf}function N(U){var ve=null,Ue=!1,et=U._d&&!isNaN(U._d.getTime());return et&&(ve=q(U),Ue=ne.call(ve.parsedDateParts,function(It){return null!=It}),et=ve.overflow<0&&!ve.empty&&!ve.invalidEra&&!ve.invalidMonth&&!ve.invalidWeekday&&!ve.weekdayMismatch&&!ve.nullInput&&!ve.invalidFormat&&!ve.userInvalidated&&(!ve.meridiem||ve.meridiem&&Ue),U._strict&&(et=et&&0===ve.charsLeftOver&&0===ve.unusedTokens.length&&void 0===ve.bigHour)),null!=Object.isFrozen&&Object.isFrozen(U)?et:(U._isValid=et,U._isValid)}function Y(U){var ve=z(NaN);return null!=U?X(q(ve),U):q(ve).userInvalidated=!0,ve}ne=Array.prototype.some?Array.prototype.some:function(U){var et,ve=Object(this),Ue=ve.length>>>0;for(et=0;et<Ue;et++)if(et in ve&&U.call(this,ve[et],et,ve))return!0;return!1};var W=C.momentProperties=[],J=!1;function n(U,ve){var Ue,et,It,In=W.length;if(G(ve._isAMomentObject)||(U._isAMomentObject=ve._isAMomentObject),G(ve._i)||(U._i=ve._i),G(ve._f)||(U._f=ve._f),G(ve._l)||(U._l=ve._l),G(ve._strict)||(U._strict=ve._strict),G(ve._tzm)||(U._tzm=ve._tzm),G(ve._isUTC)||(U._isUTC=ve._isUTC),G(ve._offset)||(U._offset=ve._offset),G(ve._pf)||(U._pf=q(ve)),G(ve._locale)||(U._locale=ve._locale),In>0)for(Ue=0;Ue<In;Ue++)G(It=ve[et=W[Ue]])||(U[et]=It);return U}function K(U){n(this,U),this._d=new Date(null!=U._d?U._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===J&&(J=!0,C.updateOffset(this),J=!1)}function se(U){return U instanceof K||null!=U&&null!=U._isAMomentObject}function De(U){!1===C.suppressDeprecationWarnings&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+U)}function Fe(U,ve){var Ue=!0;return X(function(){if(null!=C.deprecationHandler&&C.deprecationHandler(null,U),Ue){var It,In,Li,et=[],Co=arguments.length;for(In=0;In<Co;In++){if(It="","object"==typeof arguments[In]){for(Li in It+="\n["+In+"] ",arguments[0])R(arguments[0],Li)&&(It+=Li+": "+arguments[0][Li]+", ");It=It.slice(0,-2)}else It=arguments[In];et.push(It)}De(U+"\nArguments: "+Array.prototype.slice.call(et).join("")+"\n"+(new Error).stack),Ue=!1}return ve.apply(this,arguments)},ve)}var de,_e={};function ke(U,ve){null!=C.deprecationHandler&&C.deprecationHandler(U,ve),_e[U]||(De(ve),_e[U]=!0)}function be(U){return typeof Function<"u"&&U instanceof Function||"[object Function]"===Object.prototype.toString.call(U)}function Ie(U,ve){var et,Ue=X({},U);for(et in ve)R(ve,et)&&(k(U[et])&&k(ve[et])?(Ue[et]={},X(Ue[et],U[et]),X(Ue[et],ve[et])):null!=ve[et]?Ue[et]=ve[et]:delete Ue[et]);for(et in U)R(U,et)&&!R(ve,et)&&k(U[et])&&(Ue[et]=X({},Ue[et]));return Ue}function Se(U){null!=U&&this.set(U)}C.suppressDeprecationWarnings=!1,C.deprecationHandler=null,de=Object.keys?Object.keys:function(U){var ve,Ue=[];for(ve in U)R(U,ve)&&Ue.push(ve);return Ue};function We(U,ve,Ue){var et=""+Math.abs(U);return(U>=0?Ue?"+":"":"-")+Math.pow(10,Math.max(0,ve-et.length)).toString().substr(1)+et}var st=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ut=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Ae={},ye={};function Re(U,ve,Ue,et){var It=et;"string"==typeof et&&(It=function(){return this[et]()}),U&&(ye[U]=It),ve&&(ye[ve[0]]=function(){return We(It.apply(this,arguments),ve[1],ve[2])}),Ue&&(ye[Ue]=function(){return this.localeData().ordinal(It.apply(this,arguments),U)})}function Qe(U){return U.match(/\[[\s\S]/)?U.replace(/^\[|\]$/g,""):U.replace(/\\/g,"")}function Nt(U,ve){return U.isValid()?(ve=Dt(ve,U.localeData()),Ae[ve]=Ae[ve]||function vt(U){var Ue,et,ve=U.match(st);for(Ue=0,et=ve.length;Ue<et;Ue++)ve[Ue]=ye[ve[Ue]]?ye[ve[Ue]]:Qe(ve[Ue]);return function(It){var Li,In="";for(Li=0;Li<et;Li++)In+=be(ve[Li])?ve[Li].call(It,U):ve[Li];return In}}(ve),Ae[ve](U)):U.localeData().invalidDate()}function Dt(U,ve){var Ue=5;function et(It){return ve.longDateFormat(It)||It}for(ut.lastIndex=0;Ue>=0&&ut.test(U);)U=U.replace(ut,et),ut.lastIndex=0,Ue-=1;return U}var Ot={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Vt(U){return"string"==typeof U?Ot[U]||Ot[U.toLowerCase()]:void 0}function Fn(U){var Ue,et,ve={};for(et in U)R(U,et)&&(Ue=Vt(et))&&(ve[Ue]=U[et]);return ve}var kn={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};var ya,Ii=/\d/,Ni=/\d\d/,Ki=/\d{3}/,Qr=/\d{4}/,Cr=/[+-]?\d{6}/,wr=/\d\d?/,vs=/\d\d\d\d?/,rs=/\d\d\d\d\d\d?/,ur=/\d{1,3}/,Ns=/\d{1,4}/,to=/[+-]?\d{1,6}/,Qs=/\d+/,pr=/[+-]?\d+/,Ro=/Z|[+-]\d\d:?\d\d/gi,Xo=/Z|[+-]\d\d(?::?\d\d)?/gi,ks=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ol=/^[1-9]\d?/,Xa=/^([1-9]\d|\d)/;function Dr(U,ve,Ue){ya[U]=be(ve)?ve:function(et,It){return et&&Ue?Ue:ve}}function ja(U,ve){return R(ya,U)?ya[U](ve._strict,ve._locale):new RegExp(function ws(U){return Ko(U.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(ve,Ue,et,It,In){return Ue||et||It||In}))}(U))}function Ko(U){return U.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function da(U){return U<0?Math.ceil(U)||0:Math.floor(U)}function Bo(U){var ve=+U,Ue=0;return 0!==ve&&isFinite(ve)&&(Ue=da(ve)),Ue}ya={};var Dl={};function qr(U,ve){var Ue,It,et=ve;for("string"==typeof U&&(U=[U]),Q(ve)&&(et=function(In,Li){Li[ve]=Bo(In)}),It=U.length,Ue=0;Ue<It;Ue++)Dl[U[Ue]]=et}function Wo(U,ve){qr(U,function(Ue,et,It,In){It._w=It._w||{},ve(Ue,It._w,It,In)})}function Il(U,ve,Ue){null!=ve&&R(Dl,U)&&Dl[U](ve,Ue._a,Ue,U)}function os(U){return U%4==0&&U%100!=0||U%400==0}var Gs=0,_s=1,vl=2,Hs=3,es=4,Al=5,Us=6,Ml=7,rc=8;function Xl(U){return os(U)?366:365}Re("Y",0,0,function(){var U=this.year();return U<=9999?We(U,4):"+"+U}),Re(0,["YY",2],0,function(){return this.year()%100}),Re(0,["YYYY",4],0,"year"),Re(0,["YYYYY",5],0,"year"),Re(0,["YYYYYY",6,!0],0,"year"),Dr("Y",pr),Dr("YY",wr,Ni),Dr("YYYY",Ns,Qr),Dr("YYYYY",to,Cr),Dr("YYYYYY",to,Cr),qr(["YYYYY","YYYYYY"],Gs),qr("YYYY",function(U,ve){ve[Gs]=2===U.length?C.parseTwoDigitYear(U):Bo(U)}),qr("YY",function(U,ve){ve[Gs]=C.parseTwoDigitYear(U)}),qr("Y",function(U,ve){ve[Gs]=parseInt(U,10)}),C.parseTwoDigitYear=function(U){return Bo(U)+(Bo(U)>68?1900:2e3)};var ri,uu=Fa("FullYear",!0);function Fa(U,ve){return function(Ue){return null!=Ue?(ad(this,U,Ue),C.updateOffset(this,ve),this):xc(this,U)}}function xc(U,ve){if(!U.isValid())return NaN;var Ue=U._d,et=U._isUTC;switch(ve){case"Milliseconds":return et?Ue.getUTCMilliseconds():Ue.getMilliseconds();case"Seconds":return et?Ue.getUTCSeconds():Ue.getSeconds();case"Minutes":return et?Ue.getUTCMinutes():Ue.getMinutes();case"Hours":return et?Ue.getUTCHours():Ue.getHours();case"Date":return et?Ue.getUTCDate():Ue.getDate();case"Day":return et?Ue.getUTCDay():Ue.getDay();case"Month":return et?Ue.getUTCMonth():Ue.getMonth();case"FullYear":return et?Ue.getUTCFullYear():Ue.getFullYear();default:return NaN}}function ad(U,ve,Ue){var et,It,In,Li,Co;if(U.isValid()&&!isNaN(Ue)){switch(et=U._d,It=U._isUTC,ve){case"Milliseconds":return void(It?et.setUTCMilliseconds(Ue):et.setMilliseconds(Ue));case"Seconds":return void(It?et.setUTCSeconds(Ue):et.setSeconds(Ue));case"Minutes":return void(It?et.setUTCMinutes(Ue):et.setMinutes(Ue));case"Hours":return void(It?et.setUTCHours(Ue):et.setHours(Ue));case"Date":return void(It?et.setUTCDate(Ue):et.setDate(Ue));case"FullYear":break;default:return}In=Ue,Li=U.month(),Co=29!==(Co=U.date())||1!==Li||os(In)?Co:28,It?et.setUTCFullYear(In,Li,Co):et.setFullYear(In,Li,Co)}}function Xc(U,ve){if(isNaN(U)||isNaN(ve))return NaN;var Ue=function Ec(U,ve){return(U%ve+ve)%ve}(ve,12);return U+=(ve-Ue)/12,1===Ue?os(U)?29:28:31-Ue%7%2}ri=Array.prototype.indexOf?Array.prototype.indexOf:function(U){var ve;for(ve=0;ve<this.length;++ve)if(this[ve]===U)return ve;return-1},Re("M",["MM",2],"Mo",function(){return this.month()+1}),Re("MMM",0,0,function(U){return this.localeData().monthsShort(this,U)}),Re("MMMM",0,0,function(U){return this.localeData().months(this,U)}),Dr("M",wr,ol),Dr("MM",wr,Ni),Dr("MMM",function(U,ve){return ve.monthsShortRegex(U)}),Dr("MMMM",function(U,ve){return ve.monthsRegex(U)}),qr(["M","MM"],function(U,ve){ve[_s]=Bo(U)-1}),qr(["MMM","MMMM"],function(U,ve,Ue,et){var It=Ue._locale.monthsParse(U,et,Ue._strict);null!=It?ve[_s]=It:q(Ue).invalidMonth=U});var sl="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ta="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ia=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ns=ks,Mr=ks;function At(U,ve,Ue){var et,It,In,Li=U.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],et=0;et<12;++et)In=z([2e3,et]),this._shortMonthsParse[et]=this.monthsShort(In,"").toLocaleLowerCase(),this._longMonthsParse[et]=this.months(In,"").toLocaleLowerCase();return Ue?"MMM"===ve?-1!==(It=ri.call(this._shortMonthsParse,Li))?It:null:-1!==(It=ri.call(this._longMonthsParse,Li))?It:null:"MMM"===ve?-1!==(It=ri.call(this._shortMonthsParse,Li))||-1!==(It=ri.call(this._longMonthsParse,Li))?It:null:-1!==(It=ri.call(this._longMonthsParse,Li))||-1!==(It=ri.call(this._shortMonthsParse,Li))?It:null}function $t(U,ve){if(!U.isValid())return U;if("string"==typeof ve)if(/^\d+$/.test(ve))ve=Bo(ve);else if(!Q(ve=U.localeData().monthsParse(ve)))return U;var Ue=ve,et=U.date();return et=et<29?et:Math.min(et,Xc(U.year(),Ue)),U._isUTC?U._d.setUTCMonth(Ue,et):U._d.setMonth(Ue,et),U}function qt(U){return null!=U?($t(this,U),C.updateOffset(this,!0),this):xc(this,"Month")}function ir(){function U(ls,Es){return Es.length-ls.length}var It,In,Li,Co,ve=[],Ue=[],et=[];for(It=0;It<12;It++)In=z([2e3,It]),Li=Ko(this.monthsShort(In,"")),Co=Ko(this.months(In,"")),ve.push(Li),Ue.push(Co),et.push(Co),et.push(Li);ve.sort(U),Ue.sort(U),et.sort(U),this._monthsRegex=new RegExp("^("+et.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+Ue.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+ve.join("|")+")","i")}function or(U,ve,Ue,et,It,In,Li){var Co;return U<100&&U>=0?(Co=new Date(U+400,ve,Ue,et,It,In,Li),isFinite(Co.getFullYear())&&Co.setFullYear(U)):Co=new Date(U,ve,Ue,et,It,In,Li),Co}function Ui(U){var ve,Ue;return U<100&&U>=0?((Ue=Array.prototype.slice.call(arguments))[0]=U+400,ve=new Date(Date.UTC.apply(null,Ue)),isFinite(ve.getUTCFullYear())&&ve.setUTCFullYear(U)):ve=new Date(Date.UTC.apply(null,arguments)),ve}function yr(U,ve,Ue){var et=7+ve-Ue;return-(7+Ui(U,0,et).getUTCDay()-ve)%7+et-1}function Wr(U,ve,Ue,et,It){var ls,Es,Co=1+7*(ve-1)+(7+Ue-et)%7+yr(U,et,It);return Co<=0?Es=Xl(ls=U-1)+Co:Co>Xl(U)?(ls=U+1,Es=Co-Xl(U)):(ls=U,Es=Co),{year:ls,dayOfYear:Es}}function zo(U,ve,Ue){var In,Li,et=yr(U.year(),ve,Ue),It=Math.floor((U.dayOfYear()-et-1)/7)+1;return It<1?In=It+ss(Li=U.year()-1,ve,Ue):It>ss(U.year(),ve,Ue)?(In=It-ss(U.year(),ve,Ue),Li=U.year()+1):(Li=U.year(),In=It),{week:In,year:Li}}function ss(U,ve,Ue){var et=yr(U,ve,Ue),It=yr(U+1,ve,Ue);return(Xl(U)-et+It)/7}Re("w",["ww",2],"wo","week"),Re("W",["WW",2],"Wo","isoWeek"),Dr("w",wr,ol),Dr("ww",wr,Ni),Dr("W",wr,ol),Dr("WW",wr,Ni),Wo(["w","ww","W","WW"],function(U,ve,Ue,et){ve[et.substr(0,1)]=Bo(U)});function kc(U,ve){return U.slice(ve,7).concat(U.slice(0,ve))}Re("d",0,"do","day"),Re("dd",0,0,function(U){return this.localeData().weekdaysMin(this,U)}),Re("ddd",0,0,function(U){return this.localeData().weekdaysShort(this,U)}),Re("dddd",0,0,function(U){return this.localeData().weekdays(this,U)}),Re("e",0,0,"weekday"),Re("E",0,0,"isoWeekday"),Dr("d",wr),Dr("e",wr),Dr("E",wr),Dr("dd",function(U,ve){return ve.weekdaysMinRegex(U)}),Dr("ddd",function(U,ve){return ve.weekdaysShortRegex(U)}),Dr("dddd",function(U,ve){return ve.weekdaysRegex(U)}),Wo(["dd","ddd","dddd"],function(U,ve,Ue,et){var It=Ue._locale.weekdaysParse(U,et,Ue._strict);null!=It?ve.d=It:q(Ue).invalidWeekday=U}),Wo(["d","e","E"],function(U,ve,Ue,et){ve[et]=Bo(U)});var fi="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),_l="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),al="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Is=ks,ll=ks,ku=ks;function Eo(U,ve,Ue){var et,It,In,Li=U.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],et=0;et<7;++et)In=z([2e3,1]).day(et),this._minWeekdaysParse[et]=this.weekdaysMin(In,"").toLocaleLowerCase(),this._shortWeekdaysParse[et]=this.weekdaysShort(In,"").toLocaleLowerCase(),this._weekdaysParse[et]=this.weekdays(In,"").toLocaleLowerCase();return Ue?"dddd"===ve?-1!==(It=ri.call(this._weekdaysParse,Li))?It:null:"ddd"===ve?-1!==(It=ri.call(this._shortWeekdaysParse,Li))?It:null:-1!==(It=ri.call(this._minWeekdaysParse,Li))?It:null:"dddd"===ve?-1!==(It=ri.call(this._weekdaysParse,Li))||-1!==(It=ri.call(this._shortWeekdaysParse,Li))||-1!==(It=ri.call(this._minWeekdaysParse,Li))?It:null:"ddd"===ve?-1!==(It=ri.call(this._shortWeekdaysParse,Li))||-1!==(It=ri.call(this._weekdaysParse,Li))||-1!==(It=ri.call(this._minWeekdaysParse,Li))?It:null:-1!==(It=ri.call(this._minWeekdaysParse,Li))||-1!==(It=ri.call(this._weekdaysParse,Li))||-1!==(It=ri.call(this._shortWeekdaysParse,Li))?It:null}function he(){function U(wu,Yp){return Yp.length-wu.length}var In,Li,Co,ls,Es,ve=[],Ue=[],et=[],It=[];for(In=0;In<7;In++)Li=z([2e3,1]).day(In),Co=Ko(this.weekdaysMin(Li,"")),ls=Ko(this.weekdaysShort(Li,"")),Es=Ko(this.weekdays(Li,"")),ve.push(Co),Ue.push(ls),et.push(Es),It.push(Co),It.push(ls),It.push(Es);ve.sort(U),Ue.sort(U),et.sort(U),It.sort(U),this._weekdaysRegex=new RegExp("^("+It.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+et.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+Ue.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+ve.join("|")+")","i")}function $e(){return this.hours()%12||12}function tn(U,ve){Re(U,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),ve)})}function an(U,ve){return ve._meridiemParse}Re("H",["HH",2],0,"hour"),Re("h",["hh",2],0,$e),Re("k",["kk",2],0,function ct(){return this.hours()||24}),Re("hmm",0,0,function(){return""+$e.apply(this)+We(this.minutes(),2)}),Re("hmmss",0,0,function(){return""+$e.apply(this)+We(this.minutes(),2)+We(this.seconds(),2)}),Re("Hmm",0,0,function(){return""+this.hours()+We(this.minutes(),2)}),Re("Hmmss",0,0,function(){return""+this.hours()+We(this.minutes(),2)+We(this.seconds(),2)}),tn("a",!0),tn("A",!1),Dr("a",an),Dr("A",an),Dr("H",wr,Xa),Dr("h",wr,ol),Dr("k",wr,ol),Dr("HH",wr,Ni),Dr("hh",wr,Ni),Dr("kk",wr,Ni),Dr("hmm",vs),Dr("hmmss",rs),Dr("Hmm",vs),Dr("Hmmss",rs),qr(["H","HH"],Hs),qr(["k","kk"],function(U,ve,Ue){var et=Bo(U);ve[Hs]=24===et?0:et}),qr(["a","A"],function(U,ve,Ue){Ue._isPm=Ue._locale.isPM(U),Ue._meridiem=U}),qr(["h","hh"],function(U,ve,Ue){ve[Hs]=Bo(U),q(Ue).bigHour=!0}),qr("hmm",function(U,ve,Ue){var et=U.length-2;ve[Hs]=Bo(U.substr(0,et)),ve[es]=Bo(U.substr(et)),q(Ue).bigHour=!0}),qr("hmmss",function(U,ve,Ue){var et=U.length-4,It=U.length-2;ve[Hs]=Bo(U.substr(0,et)),ve[es]=Bo(U.substr(et,2)),ve[Al]=Bo(U.substr(It)),q(Ue).bigHour=!0}),qr("Hmm",function(U,ve,Ue){var et=U.length-2;ve[Hs]=Bo(U.substr(0,et)),ve[es]=Bo(U.substr(et))}),qr("Hmmss",function(U,ve,Ue){var et=U.length-4,It=U.length-2;ve[Hs]=Bo(U.substr(0,et)),ve[es]=Bo(U.substr(et,2)),ve[Al]=Bo(U.substr(It))});var Ci=Fa("Hours",!0);var Rn,vr={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:sl,monthsShort:ta,week:{dow:0,doy:6},weekdays:fi,weekdaysMin:al,weekdaysShort:_l,meridiemParse:/[ap]\.?m?\.?/i},ti={},Rr={};function nr(U,ve){var Ue,et=Math.min(U.length,ve.length);for(Ue=0;Ue<et;Ue+=1)if(U[Ue]!==ve[Ue])return Ue;return et}function dr(U){return U&&U.toLowerCase().replace("_","-")}function jr(U){var ve=null;if(void 0===ti[U]&&m&&m.exports&&function Zo(U){return!(!U||!U.match("^[^/\\\\]*$"))}(U))try{ve=Rn._abbr,b(5358)("./"+U),as(ve)}catch{ti[U]=null}return ti[U]}function as(U,ve){var Ue;return U&&((Ue=G(ve)?Qa(U):$s(U,ve))?Rn=Ue:typeof console<"u"&&console.warn&&console.warn("Locale "+U+" not found. Did you forget to load it?")),Rn._abbr}function $s(U,ve){if(null!==ve){var Ue,et=vr;if(ve.abbr=U,null!=ti[U])ke("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),et=ti[U]._config;else if(null!=ve.parentLocale)if(null!=ti[ve.parentLocale])et=ti[ve.parentLocale]._config;else{if(null==(Ue=jr(ve.parentLocale)))return Rr[ve.parentLocale]||(Rr[ve.parentLocale]=[]),Rr[ve.parentLocale].push({name:U,config:ve}),null;et=Ue._config}return ti[U]=new Se(Ie(et,ve)),Rr[U]&&Rr[U].forEach(function(It){$s(It.name,It.config)}),as(U),ti[U]}return delete ti[U],null}function Qa(U){var ve;if(U&&U._locale&&U._locale._abbr&&(U=U._locale._abbr),!U)return Rn;if(!D(U)){if(ve=jr(U))return ve;U=[U]}return function Or(U){for(var Ue,et,It,In,ve=0;ve<U.length;){for(Ue=(In=dr(U[ve]).split("-")).length,et=(et=dr(U[ve+1]))?et.split("-"):null;Ue>0;){if(It=jr(In.slice(0,Ue).join("-")))return It;if(et&&et.length>=Ue&&nr(In,et)>=Ue-1)break;Ue--}ve++}return Rn}(U)}function ga(U){var ve,Ue=U._a;return Ue&&-2===q(U).overflow&&(ve=Ue[_s]<0||Ue[_s]>11?_s:Ue[vl]<1||Ue[vl]>Xc(Ue[Gs],Ue[_s])?vl:Ue[Hs]<0||Ue[Hs]>24||24===Ue[Hs]&&(0!==Ue[es]||0!==Ue[Al]||0!==Ue[Us])?Hs:Ue[es]<0||Ue[es]>59?es:Ue[Al]<0||Ue[Al]>59?Al:Ue[Us]<0||Ue[Us]>999?Us:-1,q(U)._overflowDayOfYear&&(ve<Gs||ve>vl)&&(ve=vl),q(U)._overflowWeeks&&-1===ve&&(ve=Ml),q(U)._overflowWeekday&&-1===ve&&(ve=rc),q(U).overflow=ve),U}var Rl=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,gn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,po=/Z|[+-]\d\d(?::?\d\d)?/,Ys=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Gr=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ts=/^\/?Date\((-?\d+)/i,Js=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,va={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ma(U){var ve,Ue,In,Li,Co,ls,et=U._i,It=Rl.exec(et)||gn.exec(et),Es=Ys.length,wu=Gr.length;if(It){for(q(U).iso=!0,ve=0,Ue=Es;ve<Ue;ve++)if(Ys[ve][1].exec(It[1])){Li=Ys[ve][0],In=!1!==Ys[ve][2];break}if(null==Li)return void(U._isValid=!1);if(It[3]){for(ve=0,Ue=wu;ve<Ue;ve++)if(Gr[ve][1].exec(It[3])){Co=(It[2]||" ")+Gr[ve][0];break}if(null==Co)return void(U._isValid=!1)}if(!In&&null!=Co)return void(U._isValid=!1);if(It[4]){if(!po.exec(It[4]))return void(U._isValid=!1);ls="Z"}U._f=Li+(Co||"")+(ls||""),ai(U)}else U._isValid=!1}function Ul(U){var ve=parseInt(U,10);return ve<=49?2e3+ve:ve<=999?1900+ve:ve}function Je(U){var Ue,ve=Js.exec(function Ft(U){return U.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}(U._i));if(ve){if(Ue=function Pa(U,ve,Ue,et,It,In){var Li=[Ul(U),ta.indexOf(ve),parseInt(Ue,10),parseInt(et,10),parseInt(It,10)];return In&&Li.push(parseInt(In,10)),Li}(ve[4],ve[3],ve[2],ve[5],ve[6],ve[7]),!function me(U,ve,Ue){return!U||_l.indexOf(U)===new Date(ve[0],ve[1],ve[2]).getDay()||(q(Ue).weekdayMismatch=!0,Ue._isValid=!1,!1)}(ve[1],Ue,U))return;U._a=Ue,U._tzm=function Oe(U,ve,Ue){if(U)return va[U];if(ve)return 0;var et=parseInt(Ue,10),It=et%100;return(et-It)/100*60+It}(ve[8],ve[9],ve[10]),U._d=Ui.apply(null,U._a),U._d.setUTCMinutes(U._d.getUTCMinutes()-U._tzm),q(U).rfc2822=!0}else U._isValid=!1}function Bt(U,ve,Ue){return U??ve??Ue}function Sn(U){var ve,Ue,It,In,Li,et=[];if(!U._d){for(It=function yn(U){var ve=new Date(C.now());return U._useUTC?[ve.getUTCFullYear(),ve.getUTCMonth(),ve.getUTCDate()]:[ve.getFullYear(),ve.getMonth(),ve.getDate()]}(U),U._w&&null==U._a[vl]&&null==U._a[_s]&&function ii(U){var ve,Ue,et,It,In,Li,Co,ls,Es;null!=(ve=U._w).GG||null!=ve.W||null!=ve.E?(In=1,Li=4,Ue=Bt(ve.GG,U._a[Gs],zo(Ts(),1,4).year),et=Bt(ve.W,1),((It=Bt(ve.E,1))<1||It>7)&&(ls=!0)):(In=U._locale._week.dow,Li=U._locale._week.doy,Es=zo(Ts(),In,Li),Ue=Bt(ve.gg,U._a[Gs],Es.year),et=Bt(ve.w,Es.week),null!=ve.d?((It=ve.d)<0||It>6)&&(ls=!0):null!=ve.e?(It=ve.e+In,(ve.e<0||ve.e>6)&&(ls=!0)):It=In),et<1||et>ss(Ue,In,Li)?q(U)._overflowWeeks=!0:null!=ls?q(U)._overflowWeekday=!0:(Co=Wr(Ue,et,It,In,Li),U._a[Gs]=Co.year,U._dayOfYear=Co.dayOfYear)}(U),null!=U._dayOfYear&&(Li=Bt(U._a[Gs],It[Gs]),(U._dayOfYear>Xl(Li)||0===U._dayOfYear)&&(q(U)._overflowDayOfYear=!0),Ue=Ui(Li,0,U._dayOfYear),U._a[_s]=Ue.getUTCMonth(),U._a[vl]=Ue.getUTCDate()),ve=0;ve<3&&null==U._a[ve];++ve)U._a[ve]=et[ve]=It[ve];for(;ve<7;ve++)U._a[ve]=et[ve]=null==U._a[ve]?2===ve?1:0:U._a[ve];24===U._a[Hs]&&0===U._a[es]&&0===U._a[Al]&&0===U._a[Us]&&(U._nextDay=!0,U._a[Hs]=0),U._d=(U._useUTC?Ui:or).apply(null,et),In=U._useUTC?U._d.getUTCDay():U._d.getDay(),null!=U._tzm&&U._d.setUTCMinutes(U._d.getUTCMinutes()-U._tzm),U._nextDay&&(U._a[Hs]=24),U._w&&typeof U._w.d<"u"&&U._w.d!==In&&(q(U).weekdayMismatch=!0)}}function ai(U){if(U._f!==C.ISO_8601)if(U._f!==C.RFC_2822){U._a=[],q(U).empty=!0;var Ue,et,It,In,Li,Es,wu,ve=""+U._i,Co=ve.length,ls=0;for(wu=(It=Dt(U._f,U._locale).match(st)||[]).length,Ue=0;Ue<wu;Ue++)(et=(ve.match(ja(In=It[Ue],U))||[])[0])&&((Li=ve.substr(0,ve.indexOf(et))).length>0&&q(U).unusedInput.push(Li),ve=ve.slice(ve.indexOf(et)+et.length),ls+=et.length),ye[In]?(et?q(U).empty=!1:q(U).unusedTokens.push(In),Il(In,et,U)):U._strict&&!et&&q(U).unusedTokens.push(In);q(U).charsLeftOver=Co-ls,ve.length>0&&q(U).unusedInput.push(ve),U._a[Hs]<=12&&!0===q(U).bigHour&&U._a[Hs]>0&&(q(U).bigHour=void 0),q(U).parsedDateParts=U._a.slice(0),q(U).meridiem=U._meridiem,U._a[Hs]=function br(U,ve,Ue){var et;return null==Ue?ve:null!=U.meridiemHour?U.meridiemHour(ve,Ue):(null!=U.isPM&&((et=U.isPM(Ue))&&ve<12&&(ve+=12),!et&&12===ve&&(ve=0)),ve)}(U._locale,U._a[Hs],U._meridiem),null!==(Es=q(U).era)&&(U._a[Gs]=U._locale.erasConvertYear(Es,U._a[Gs])),Sn(U),ga(U)}else Je(U);else Ma(U)}function ho(U){var ve=U._i,Ue=U._f;return U._locale=U._locale||Qa(U._l),null===ve||void 0===Ue&&""===ve?Y({nullInput:!0}):("string"==typeof ve&&(U._i=ve=U._locale.preparse(ve)),se(ve)?new K(ga(ve)):(H(ve)?U._d=ve:D(Ue)?function Kn(U){var ve,Ue,et,It,In,Li,Co=!1,ls=U._f.length;if(0===ls)return q(U).invalidFormat=!0,void(U._d=new Date(NaN));for(It=0;It<ls;It++)In=0,Li=!1,ve=n({},U),null!=U._useUTC&&(ve._useUTC=U._useUTC),ve._f=U._f[It],ai(ve),N(ve)&&(Li=!0),In+=q(ve).charsLeftOver,In+=10*q(ve).unusedTokens.length,q(ve).score=In,Co?In<et&&(et=In,Ue=ve):(null==et||In<et||Li)&&(et=In,Ue=ve,Li&&(Co=!0));X(U,Ue||ve)}(U):Ue?ai(U):function Po(U){var ve=U._i;G(ve)?U._d=new Date(C.now()):H(ve)?U._d=new Date(ve.valueOf()):"string"==typeof ve?function yt(U){var ve=ts.exec(U._i);null===ve?(Ma(U),!1===U._isValid&&(delete U._isValid,Je(U),!1===U._isValid&&(delete U._isValid,U._strict?U._isValid=!1:C.createFromInputFallback(U)))):U._d=new Date(+ve[1])}(U):D(ve)?(U._a=Z(ve.slice(0),function(Ue){return parseInt(Ue,10)}),Sn(U)):k(ve)?function xr(U){if(!U._d){var ve=Fn(U._i);U._a=Z([ve.year,ve.month,void 0===ve.day?ve.date:ve.day,ve.hour,ve.minute,ve.second,ve.millisecond],function(et){return et&&parseInt(et,10)}),Sn(U)}}(U):Q(ve)?U._d=new Date(ve):C.createFromInputFallback(U)}(U),N(U)||(U._d=null),U))}function Tr(U,ve,Ue,et,It){var In={};return(!0===ve||!1===ve)&&(et=ve,ve=void 0),(!0===Ue||!1===Ue)&&(et=Ue,Ue=void 0),(k(U)&&P(U)||D(U)&&0===U.length)&&(U=void 0),In._isAMomentObject=!0,In._useUTC=In._isUTC=It,In._l=Ue,In._i=U,In._f=ve,In._strict=et,function Fo(U){var ve=new K(ga(ho(U)));return ve._nextDay&&(ve.add(1,"d"),ve._nextDay=void 0),ve}(In)}function Ts(U,ve,Ue,et){return Tr(U,ve,Ue,et,!1)}C.createFromInputFallback=Fe("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(U){U._d=new Date(U._i+(U._useUTC?" UTC":""))}),C.ISO_8601=function(){},C.RFC_2822=function(){};var Ws=Fe("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var U=Ts.apply(null,arguments);return this.isValid()&&U.isValid()?U<this?this:U:Y()}),pa=Fe("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var U=Ts.apply(null,arguments);return this.isValid()&&U.isValid()?U>this?this:U:Y()});function ul(U,ve){var Ue,et;if(1===ve.length&&D(ve[0])&&(ve=ve[0]),!ve.length)return Ts();for(Ue=ve[0],et=1;et<ve.length;++et)(!ve[et].isValid()||ve[et][U](Ue))&&(Ue=ve[et]);return Ue}var sc=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ac(U){var ve=Fn(U),Ue=ve.year||0,et=ve.quarter||0,It=ve.month||0,In=ve.week||ve.isoWeek||0,Li=ve.day||0,Co=ve.hour||0,ls=ve.minute||0,Es=ve.second||0,wu=ve.millisecond||0;this._isValid=function Ua(U){var ve,et,Ue=!1,It=sc.length;for(ve in U)if(R(U,ve)&&(-1===ri.call(sc,ve)||null!=U[ve]&&isNaN(U[ve])))return!1;for(et=0;et<It;++et)if(U[sc[et]]){if(Ue)return!1;parseFloat(U[sc[et]])!==Bo(U[sc[et]])&&(Ue=!0)}return!0}(ve),this._milliseconds=+wu+1e3*Es+6e4*ls+1e3*Co*60*60,this._days=+Li+7*In,this._months=+It+3*et+12*Ue,this._data={},this._locale=Qa(),this._bubble()}function np(U){return U instanceof Ac}function dh(U){return U<0?-1*Math.round(-1*U):Math.round(U)}function Lo(U,ve){Re(U,0,0,function(){var Ue=this.utcOffset(),et="+";return Ue<0&&(Ue=-Ue,et="-"),et+We(~~(Ue/60),2)+ve+We(~~Ue%60,2)})}Lo("Z",":"),Lo("ZZ",""),Dr("Z",Xo),Dr("ZZ",Xo),qr(["Z","ZZ"],function(U,ve,Ue){Ue._useUTC=!0,Ue._tzm=No(Xo,U)});var Uo=/([\+\-]|\d\d)/gi;function No(U,ve){var It,In,Ue=(ve||"").match(U);return null===Ue?null:0===(In=60*(It=((Ue[Ue.length-1]||[])+"").match(Uo)||["-",0,0])[1]+Bo(It[2]))?0:"+"===It[0]?In:-In}function Er(U,ve){var Ue,et;return ve._isUTC?(Ue=ve.clone(),et=(se(U)||H(U)?U.valueOf():Ts(U).valueOf())-Ue.valueOf(),Ue._d.setTime(Ue._d.valueOf()+et),C.updateOffset(Ue,!1),Ue):Ts(U).local()}function Ss(U){return-Math.round(U._d.getTimezoneOffset())}function yu(){return!!this.isValid()&&this._isUTC&&0===this._offset}C.updateOffset=function(){};var Au=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,hu=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function dl(U,ve){var It,In,Li,Ue=U,et=null;return np(U)?Ue={ms:U._milliseconds,d:U._days,M:U._months}:Q(U)||!isNaN(+U)?(Ue={},ve?Ue[ve]=+U:Ue.milliseconds=+U):(et=Au.exec(U))?(It="-"===et[1]?-1:1,Ue={y:0,d:Bo(et[vl])*It,h:Bo(et[Hs])*It,m:Bo(et[es])*It,s:Bo(et[Al])*It,ms:Bo(dh(1e3*et[Us]))*It}):(et=hu.exec(U))?Ue={y:ip(et[2],It="-"===et[1]?-1:1),M:ip(et[3],It),w:ip(et[4],It),d:ip(et[5],It),h:ip(et[6],It),m:ip(et[7],It),s:ip(et[8],It)}:null==Ue?Ue={}:"object"==typeof Ue&&("from"in Ue||"to"in Ue)&&(Li=function gp(U,ve){var Ue;return U.isValid()&&ve.isValid()?(ve=Er(ve,U),U.isBefore(ve)?Ue=Uh(U,ve):((Ue=Uh(ve,U)).milliseconds=-Ue.milliseconds,Ue.months=-Ue.months),Ue):{milliseconds:0,months:0}}(Ts(Ue.from),Ts(Ue.to)),(Ue={}).ms=Li.milliseconds,Ue.M=Li.months),In=new Ac(Ue),np(U)&&R(U,"_locale")&&(In._locale=U._locale),np(U)&&R(U,"_isValid")&&(In._isValid=U._isValid),In}function ip(U,ve){var Ue=U&&parseFloat(U.replace(",","."));return(isNaN(Ue)?0:Ue)*ve}function Uh(U,ve){var Ue={};return Ue.months=ve.month()-U.month()+12*(ve.year()-U.year()),U.clone().add(Ue.months,"M").isAfter(ve)&&--Ue.months,Ue.milliseconds=+ve-+U.clone().add(Ue.months,"M"),Ue}function ph(U,ve){return function(Ue,et){var In;return null!==et&&!isNaN(+et)&&(ke(ve,"moment()."+ve+"(period, number) is deprecated. Please use moment()."+ve+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),In=Ue,Ue=et,et=In),rp(this,dl(Ue,et),U),this}}function rp(U,ve,Ue,et){var It=ve._milliseconds,In=dh(ve._days),Li=dh(ve._months);U.isValid()&&(et=et??!0,Li&&$t(U,xc(U,"Month")+Li*Ue),In&&ad(U,"Date",xc(U,"Date")+In*Ue),It&&U._d.setTime(U._d.valueOf()+It*Ue),et&&C.updateOffset(U,In||Li))}dl.fn=Ac.prototype,dl.invalid=function fp(){return dl(NaN)};var hh=ph(1,"add"),e1=ph(-1,"subtract");function p0(U){return"string"==typeof U||U instanceof String}function DT(U){return se(U)||H(U)||p0(U)||Q(U)||function f0(U){var ve=D(U),Ue=!1;return ve&&(Ue=0===U.filter(function(et){return!Q(et)&&p0(U)}).length),ve&&Ue}(U)||function h0(U){var It,ve=k(U)&&!P(U),Ue=!1,et=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],Li=et.length;for(It=0;It<Li;It+=1)Ue=Ue||R(U,et[It]);return ve&&Ue}(U)||null==U}function V(U,ve){if(U.date()<ve.date())return-V(ve,U);var Ue=12*(ve.year()-U.year())+(ve.month()-U.month()),et=U.clone().add(Ue,"months");return-(Ue+(ve-et<0?(ve-et)/(et-U.clone().add(Ue-1,"months")):(ve-et)/(U.clone().add(Ue+1,"months")-et)))||0}function ft(U){var ve;return void 0===U?this._locale._abbr:(null!=(ve=Qa(U))&&(this._locale=ve),this)}C.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",C.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var kt=Fe("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(U){return void 0===U?this.localeData():this.locale(U)});function Ze(){return this._locale}var Ht=6e4,rn=60*Ht,St=3506328*rn;function nn(U,ve){return(U%ve+ve)%ve}function Vn(U,ve,Ue){return U<100&&U>=0?new Date(U+400,ve,Ue)-St:new Date(U,ve,Ue).valueOf()}function qn(U,ve,Ue){return U<100&&U>=0?Date.UTC(U+400,ve,Ue)-St:Date.UTC(U,ve,Ue)}function pi(U,ve){return ve.erasAbbrRegex(U)}function kr(){var It,In,Li,Co,ls,U=[],ve=[],Ue=[],et=[],Es=this.eras();for(It=0,In=Es.length;It<In;++It)Li=Ko(Es[It].name),Co=Ko(Es[It].abbr),ls=Ko(Es[It].narrow),ve.push(Li),U.push(Co),Ue.push(ls),et.push(Li),et.push(Co),et.push(ls);this._erasRegex=new RegExp("^("+et.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+ve.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+U.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+Ue.join("|")+")","i")}function fo(U,ve){Re(0,[U,U.length],0,ve)}function Pr(U,ve,Ue,et,It){var In;return null==U?zo(this,et,It).year:(ve>(In=ss(U,et,It))&&(ve=In),ro.call(this,U,ve,Ue,et,It))}function ro(U,ve,Ue,et,It){var In=Wr(U,ve,Ue,et,It),Li=Ui(In.year,0,In.dayOfYear);return this.year(Li.getUTCFullYear()),this.month(Li.getUTCMonth()),this.date(Li.getUTCDate()),this}Re("N",0,0,"eraAbbr"),Re("NN",0,0,"eraAbbr"),Re("NNN",0,0,"eraAbbr"),Re("NNNN",0,0,"eraName"),Re("NNNNN",0,0,"eraNarrow"),Re("y",["y",1],"yo","eraYear"),Re("y",["yy",2],0,"eraYear"),Re("y",["yyy",3],0,"eraYear"),Re("y",["yyyy",4],0,"eraYear"),Dr("N",pi),Dr("NN",pi),Dr("NNN",pi),Dr("NNNN",function _i(U,ve){return ve.erasNameRegex(U)}),Dr("NNNNN",function yi(U,ve){return ve.erasNarrowRegex(U)}),qr(["N","NN","NNN","NNNN","NNNNN"],function(U,ve,Ue,et){var It=Ue._locale.erasParse(U,et,Ue._strict);It?q(Ue).era=It:q(Ue).invalidEra=U}),Dr("y",Qs),Dr("yy",Qs),Dr("yyy",Qs),Dr("yyyy",Qs),Dr("yo",function Hr(U,ve){return ve._eraYearOrdinalRegex||Qs}),qr(["y","yy","yyy","yyyy"],Gs),qr(["yo"],function(U,ve,Ue,et){var It;Ue._locale._eraYearOrdinalRegex&&(It=U.match(Ue._locale._eraYearOrdinalRegex)),ve[Gs]=Ue._locale.eraYearOrdinalParse?Ue._locale.eraYearOrdinalParse(U,It):parseInt(U,10)}),Re(0,["gg",2],0,function(){return this.weekYear()%100}),Re(0,["GG",2],0,function(){return this.isoWeekYear()%100}),fo("gggg","weekYear"),fo("ggggg","weekYear"),fo("GGGG","isoWeekYear"),fo("GGGGG","isoWeekYear"),Dr("G",pr),Dr("g",pr),Dr("GG",wr,Ni),Dr("gg",wr,Ni),Dr("GGGG",Ns,Qr),Dr("gggg",Ns,Qr),Dr("GGGGG",to,Cr),Dr("ggggg",to,Cr),Wo(["gggg","ggggg","GGGG","GGGGG"],function(U,ve,Ue,et){ve[et.substr(0,2)]=Bo(U)}),Wo(["gg","GG"],function(U,ve,Ue,et){ve[et]=C.parseTwoDigitYear(U)}),Re("Q",0,"Qo","quarter"),Dr("Q",Ii),qr("Q",function(U,ve){ve[_s]=3*(Bo(U)-1)}),Re("D",["DD",2],"Do","date"),Dr("D",wr,ol),Dr("DD",wr,Ni),Dr("Do",function(U,ve){return U?ve._dayOfMonthOrdinalParse||ve._ordinalParse:ve._dayOfMonthOrdinalParseLenient}),qr(["D","DD"],vl),qr("Do",function(U,ve){ve[vl]=Bo(U.match(wr)[0])});var He=Fa("Date",!0);Re("DDD",["DDDD",3],"DDDo","dayOfYear"),Dr("DDD",ur),Dr("DDDD",Ki),qr(["DDD","DDDD"],function(U,ve,Ue){Ue._dayOfYear=Bo(U)}),Re("m",["mm",2],0,"minute"),Dr("m",wr,Xa),Dr("mm",wr,Ni),qr(["m","mm"],es);var ee=Fa("Minutes",!1);Re("s",["ss",2],0,"second"),Dr("s",wr,Xa),Dr("ss",wr,Ni),qr(["s","ss"],Al);var Le,ot,Te=Fa("Seconds",!1);for(Re("S",0,0,function(){return~~(this.millisecond()/100)}),Re(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Re(0,["SSS",3],0,"millisecond"),Re(0,["SSSS",4],0,function(){return 10*this.millisecond()}),Re(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),Re(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),Re(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),Re(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),Re(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Dr("S",ur,Ii),Dr("SS",ur,Ni),Dr("SSS",ur,Ki),Le="SSSS";Le.length<=9;Le+="S")Dr(Le,Qs);function gt(U,ve){ve[Us]=Bo(1e3*("0."+U))}for(Le="S";Le.length<=9;Le+="S")qr(Le,gt);ot=Fa("Milliseconds",!1),Re("z",0,0,"zoneAbbr"),Re("zz",0,0,"zoneName");var Yt=K.prototype;function Qo(U){return U}Yt.add=hh,Yt.calendar=function g0(U,ve){1===arguments.length&&(arguments[0]?DT(arguments[0])?(U=arguments[0],ve=void 0):function m0(U){var It,ve=k(U)&&!P(U),Ue=!1,et=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(It=0;It<et.length;It+=1)Ue=Ue||R(U,et[It]);return ve&&Ue}(arguments[0])&&(ve=arguments[0],U=void 0):(U=void 0,ve=void 0));var Ue=U||Ts(),et=Er(Ue,this).startOf("day"),It=C.calendarFormat(this,et)||"sameElse",In=ve&&(be(ve[It])?ve[It].call(this,Ue):ve[It]);return this.format(In||this.localeData().calendar(It,this,Ts(Ue)))},Yt.clone=function jm(){return new K(this)},Yt.diff=function O(U,ve,Ue){var et,It,In;if(!this.isValid())return NaN;if(!(et=Er(U,this)).isValid())return NaN;switch(It=6e4*(et.utcOffset()-this.utcOffset()),ve=Vt(ve)){case"year":In=V(this,et)/12;break;case"month":In=V(this,et);break;case"quarter":In=V(this,et)/3;break;case"second":In=(this-et)/1e3;break;case"minute":In=(this-et)/6e4;break;case"hour":In=(this-et)/36e5;break;case"day":In=(this-et-It)/864e5;break;case"week":In=(this-et-It)/6048e5;break;default:In=this-et}return Ue?In:da(In)},Yt.endOf=function sr(U){var ve,Ue;if(void 0===(U=Vt(U))||"millisecond"===U||!this.isValid())return this;switch(Ue=this._isUTC?qn:Vn,U){case"year":ve=Ue(this.year()+1,0,1)-1;break;case"quarter":ve=Ue(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":ve=Ue(this.year(),this.month()+1,1)-1;break;case"week":ve=Ue(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":ve=Ue(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":ve=Ue(this.year(),this.month(),this.date()+1)-1;break;case"hour":ve=this._d.valueOf(),ve+=rn-nn(ve+(this._isUTC?0:this.utcOffset()*Ht),rn)-1;break;case"minute":ve=this._d.valueOf(),ve+=Ht-nn(ve,Ht)-1;break;case"second":ve=this._d.valueOf(),ve+=1e3-nn(ve,1e3)-1}return this._d.setTime(ve),C.updateOffset(this,!0),this},Yt.format=function Me(U){U||(U=this.isUtc()?C.defaultFormatUtc:C.defaultFormat);var ve=Nt(this,U);return this.localeData().postformat(ve)},Yt.from=function Ne(U,ve){return this.isValid()&&(se(U)&&U.isValid()||Ts(U).isValid())?dl({to:this,from:U}).locale(this.locale()).humanize(!ve):this.localeData().invalidDate()},Yt.fromNow=function Be(U){return this.from(Ts(),U)},Yt.to=function it(U,ve){return this.isValid()&&(se(U)&&U.isValid()||Ts(U).isValid())?dl({from:this,to:U}).locale(this.locale()).humanize(!ve):this.localeData().invalidDate()},Yt.toNow=function pt(U){return this.to(Ts(),U)},Yt.get=function Du(U){return be(this[U=Vt(U)])?this[U]():this},Yt.invalidAt=function Ei(){return q(this).overflow},Yt.isAfter=function kT(U,ve){var Ue=se(U)?U:Ts(U);return!(!this.isValid()||!Ue.isValid())&&("millisecond"===(ve=Vt(ve)||"millisecond")?this.valueOf()>Ue.valueOf():Ue.valueOf()<this.clone().startOf(ve).valueOf())},Yt.isBefore=function IT(U,ve){var Ue=se(U)?U:Ts(U);return!(!this.isValid()||!Ue.isValid())&&("millisecond"===(ve=Vt(ve)||"millisecond")?this.valueOf()<Ue.valueOf():this.clone().endOf(ve).valueOf()<Ue.valueOf())},Yt.isBetween=function n1(U,ve,Ue,et){var It=se(U)?U:Ts(U),In=se(ve)?ve:Ts(ve);return!!(this.isValid()&&It.isValid()&&In.isValid())&&("("===(et=et||"()")[0]?this.isAfter(It,Ue):!this.isBefore(It,Ue))&&(")"===et[1]?this.isBefore(In,Ue):!this.isAfter(In,Ue))},Yt.isSame=function r1(U,ve){var et,Ue=se(U)?U:Ts(U);return!(!this.isValid()||!Ue.isValid())&&("millisecond"===(ve=Vt(ve)||"millisecond")?this.valueOf()===Ue.valueOf():(et=Ue.valueOf(),this.clone().startOf(ve).valueOf()<=et&&et<=this.clone().endOf(ve).valueOf()))},Yt.isSameOrAfter=function AT(U,ve){return this.isSame(U,ve)||this.isAfter(U,ve)},Yt.isSameOrBefore=function j(U,ve){return this.isSame(U,ve)||this.isBefore(U,ve)},Yt.isValid=function Gn(){return N(this)},Yt.lang=kt,Yt.locale=ft,Yt.localeData=Ze,Yt.max=pa,Yt.min=Ws,Yt.parsingFlags=function Cn(){return X({},q(this))},Yt.set=function Ka(U,ve){if("object"==typeof U){var et,Ue=function $n(U){var Ue,ve=[];for(Ue in U)R(U,Ue)&&ve.push({unit:Ue,priority:kn[Ue]});return ve.sort(function(et,It){return et.priority-It.priority}),ve}(U=Fn(U)),It=Ue.length;for(et=0;et<It;et++)this[Ue[et].unit](U[Ue[et].unit])}else if(be(this[U=Vt(U)]))return this[U](ve);return this},Yt.startOf=function Ai(U){var ve,Ue;if(void 0===(U=Vt(U))||"millisecond"===U||!this.isValid())return this;switch(Ue=this._isUTC?qn:Vn,U){case"year":ve=Ue(this.year(),0,1);break;case"quarter":ve=Ue(this.year(),this.month()-this.month()%3,1);break;case"month":ve=Ue(this.year(),this.month(),1);break;case"week":ve=Ue(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":ve=Ue(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":ve=Ue(this.year(),this.month(),this.date());break;case"hour":ve=this._d.valueOf(),ve-=nn(ve+(this._isUTC?0:this.utcOffset()*Ht),rn);break;case"minute":ve=this._d.valueOf(),ve-=nn(ve,Ht);break;case"second":ve=this._d.valueOf(),ve-=nn(ve,1e3)}return this._d.setTime(ve),C.updateOffset(this,!0),this},Yt.subtract=e1,Yt.toArray=function ji(){var U=this;return[U.year(),U.month(),U.date(),U.hour(),U.minute(),U.second(),U.millisecond()]},Yt.toObject=function Ut(){var U=this;return{years:U.year(),months:U.month(),date:U.date(),hours:U.hours(),minutes:U.minutes(),seconds:U.seconds(),milliseconds:U.milliseconds()}},Yt.toDate=function ui(){return new Date(this.valueOf())},Yt.toISOString=function ge(U){if(!this.isValid())return null;var ve=!0!==U,Ue=ve?this.clone().utc():this;return Ue.year()<0||Ue.year()>9999?Nt(Ue,ve?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):be(Date.prototype.toISOString)?ve?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Nt(Ue,"Z")):Nt(Ue,ve?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Yt.inspect=function ue(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var Ue,et,U="moment",ve="";return this.isLocal()||(U=0===this.utcOffset()?"moment.utc":"moment.parseZone",ve="Z"),Ue="["+U+'("]',et=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(Ue+et+"-MM-DD[T]HH:mm:ss.SSS"+ve+'[")]')},typeof Symbol<"u"&&null!=Symbol.for&&(Yt[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Yt.toJSON=function jt(){return this.isValid()?this.toISOString():null},Yt.toString=function ie(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Yt.unix=function bn(){return Math.floor(this.valueOf()/1e3)},Yt.valueOf=function si(){return this._d.valueOf()-6e4*(this._offset||0)},Yt.creationData=function vi(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Yt.eraName=function Qi(){var U,ve,Ue,et=this.localeData().eras();for(U=0,ve=et.length;U<ve;++U)if(Ue=this.clone().startOf("day").valueOf(),et[U].since<=Ue&&Ue<=et[U].until||et[U].until<=Ue&&Ue<=et[U].since)return et[U].name;return""},Yt.eraNarrow=function no(){var U,ve,Ue,et=this.localeData().eras();for(U=0,ve=et.length;U<ve;++U)if(Ue=this.clone().startOf("day").valueOf(),et[U].since<=Ue&&Ue<=et[U].until||et[U].until<=Ue&&Ue<=et[U].since)return et[U].narrow;return""},Yt.eraAbbr=function mt(){var U,ve,Ue,et=this.localeData().eras();for(U=0,ve=et.length;U<ve;++U)if(Ue=this.clone().startOf("day").valueOf(),et[U].since<=Ue&&Ue<=et[U].until||et[U].until<=Ue&&Ue<=et[U].since)return et[U].abbr;return""},Yt.eraYear=function on(){var U,ve,Ue,et,It=this.localeData().eras();for(U=0,ve=It.length;U<ve;++U)if(Ue=It[U].since<=It[U].until?1:-1,et=this.clone().startOf("day").valueOf(),It[U].since<=et&&et<=It[U].until||It[U].until<=et&&et<=It[U].since)return(this.year()-C(It[U].since).year())*Ue+It[U].offset;return this.year()},Yt.year=uu,Yt.isLeapYear=function qu(){return os(this.year())},Yt.weekYear=function io(U){return Pr.call(this,U,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},Yt.isoWeekYear=function As(U){return Pr.call(this,U,this.isoWeek(),this.isoWeekday(),1,4)},Yt.quarter=Yt.quarters=function hr(U){return null==U?Math.ceil((this.month()+1)/3):this.month(3*(U-1)+this.month()%3)},Yt.month=qt,Yt.daysInMonth=function Mn(){return Xc(this.year(),this.month())},Yt.week=Yt.weeks=function Aa(U){var ve=this.localeData().week(this);return null==U?ve:this.add(7*(U-ve),"d")},Yt.isoWeek=Yt.isoWeeks=function Bs(U){var ve=zo(this,1,4).week;return null==U?ve:this.add(7*(U-ve),"d")},Yt.weeksInYear=function Yn(){var U=this.localeData()._week;return ss(this.year(),U.dow,U.doy)},Yt.weeksInWeekYear=function fr(){var U=this.localeData()._week;return ss(this.weekYear(),U.dow,U.doy)},Yt.isoWeeksInYear=function Yi(){return ss(this.year(),1,4)},Yt.isoWeeksInISOWeekYear=function vn(){return ss(this.isoWeekYear(),1,4)},Yt.date=He,Yt.day=Yt.days=function Jr(U){if(!this.isValid())return null!=U?this:NaN;var ve=xc(this,"Day");return null!=U?(U=function oo(U,ve){return"string"!=typeof U?U:isNaN(U)?"number"==typeof(U=ve.weekdaysParse(U))?U:null:parseInt(U,10)}(U,this.localeData()),this.add(U-ve,"d")):ve},Yt.weekday=function uo(U){if(!this.isValid())return null!=U?this:NaN;var ve=(this.day()+7-this.localeData()._week.dow)%7;return null==U?ve:this.add(U-ve,"d")},Yt.isoWeekday=function du(U){if(!this.isValid())return null!=U?this:NaN;if(null!=U){var ve=function Kc(U,ve){return"string"==typeof U?ve.weekdaysParse(U)%7||7:isNaN(U)?null:U}(U,this.localeData());return this.day(this.day()%7?ve:ve-7)}return this.day()||7},Yt.dayOfYear=function oe(U){var ve=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==U?ve:this.add(U-ve,"d")},Yt.hour=Yt.hours=Ci,Yt.minute=Yt.minutes=ee,Yt.second=Yt.seconds=Te,Yt.millisecond=Yt.milliseconds=ot,Yt.utcOffset=function jc(U,ve,Ue){var It,et=this._offset||0;if(!this.isValid())return null!=U?this:NaN;if(null!=U){if("string"==typeof U){if(null===(U=No(Xo,U)))return this}else Math.abs(U)<16&&!Ue&&(U*=60);return!this._isUTC&&ve&&(It=Ss(this)),this._offset=U,this._isUTC=!0,null!=It&&this.add(It,"m"),et!==U&&(!ve||this._changeInProgress?rp(this,dl(U-et,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,C.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?et:Ss(this)},Yt.utc=function cd(U){return this.utcOffset(0,U)},Yt.local=function bl(U){return this._isUTC&&(this.utcOffset(0,U),this._isUTC=!1,U&&this.subtract(Ss(this),"m")),this},Yt.parseZone=function Kl(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var U=No(Ro,this._i);null!=U?this.utcOffset(U):this.utcOffset(0,!0)}return this},Yt.hasAlignedHourOffset=function Af(U){return!!this.isValid()&&(U=U?Ts(U).utcOffset():0,(this.utcOffset()-U)%60==0)},Yt.isDST=function ba(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Yt.isLocal=function Iu(){return!!this.isValid()&&!this._isUTC},Yt.isUtcOffset=function Ld(){return!!this.isValid()&&this._isUTC},Yt.isUtc=yu,Yt.isUTC=yu,Yt.zoneAbbr=function Lt(){return this._isUTC?"UTC":""},Yt.zoneName=function On(){return this._isUTC?"Coordinated Universal Time":""},Yt.dates=Fe("dates accessor is deprecated. Use date instead.",He),Yt.months=Fe("months accessor is deprecated. Use month instead",qt),Yt.years=Fe("years accessor is deprecated. Use year instead",uu),Yt.zone=Fe("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function Ol(U,ve){return null!=U?("string"!=typeof U&&(U=-U),this.utcOffset(U,ve),this):-this.utcOffset()}),Yt.isDSTShifted=Fe("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function Fl(){if(!G(this._isDSTShifted))return this._isDSTShifted;var ve,U={};return n(U,this),(U=ho(U))._a?(ve=U._isUTC?z(U._a):Ts(U._a),this._isDSTShifted=this.isValid()&&function mp(U,ve,Ue){var Li,et=Math.min(U.length,ve.length),It=Math.abs(U.length-ve.length),In=0;for(Li=0;Li<et;Li++)(Ue&&U[Li]!==ve[Li]||!Ue&&Bo(U[Li])!==Bo(ve[Li]))&&In++;return In+It}(U._a,ve.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var Ur=Se.prototype;function Oo(U,ve,Ue,et){var It=Qa(),In=z().set(et,ve);return It[Ue](In,U)}function ia(U,ve,Ue){if(Q(U)&&(ve=U,U=void 0),U=U||"",null!=ve)return Oo(U,ve,Ue,"month");var et,It=[];for(et=0;et<12;et++)It[et]=Oo(U,et,Ue,"month");return It}function zs(U,ve,Ue,et){"boolean"==typeof U?(Q(ve)&&(Ue=ve,ve=void 0),ve=ve||""):(Ue=ve=U,U=!1,Q(ve)&&(Ue=ve,ve=void 0),ve=ve||"");var Li,It=Qa(),In=U?It._week.dow:0,Co=[];if(null!=Ue)return Oo(ve,(Ue+In)%7,et,"day");for(Li=0;Li<7;Li++)Co[Li]=Oo(ve,(Li+In)%7,et,"day");return Co}Ur.calendar=function xe(U,ve,Ue){var et=this._calendar[U]||this._calendar.sameElse;return be(et)?et.call(ve,Ue):et},Ur.longDateFormat=function ze(U){var ve=this._longDateFormat[U],Ue=this._longDateFormat[U.toUpperCase()];return ve||!Ue?ve:(this._longDateFormat[U]=Ue.match(st).map(function(et){return"MMMM"===et||"MM"===et||"DD"===et||"dddd"===et?et.slice(1):et}).join(""),this._longDateFormat[U])},Ur.invalidDate=function dt(){return this._invalidDate},Ur.ordinal=function Hn(U){return this._ordinal.replace("%d",U)},Ur.preparse=Qo,Ur.postformat=Qo,Ur.relativeTime=function An(U,ve,Ue,et){var It=this._relativeTime[Ue];return be(It)?It(U,ve,Ue,et):It.replace(/%d/i,U)},Ur.pastFuture=function Kt(U,ve){var Ue=this._relativeTime[U>0?"future":"past"];return be(Ue)?Ue(ve):Ue.replace(/%s/i,ve)},Ur.set=function Ve(U){var ve,Ue;for(Ue in U)R(U,Ue)&&(be(ve=U[Ue])?this[Ue]=ve:this["_"+Ue]=ve);this._config=U,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Ur.eras=function Mi(U,ve){var Ue,et,It,In=this._eras||Qa("en")._eras;for(Ue=0,et=In.length;Ue<et;++Ue)switch("string"==typeof In[Ue].since&&(It=C(In[Ue].since).startOf("day"),In[Ue].since=It.valueOf()),typeof In[Ue].until){case"undefined":In[Ue].until=1/0;break;case"string":It=C(In[Ue].until).startOf("day").valueOf(),In[Ue].until=It.valueOf()}return In},Ur.erasParse=function li(U,ve,Ue){var et,It,Li,Co,ls,In=this.eras();for(U=U.toUpperCase(),et=0,It=In.length;et<It;++et)if(Li=In[et].name.toUpperCase(),Co=In[et].abbr.toUpperCase(),ls=In[et].narrow.toUpperCase(),Ue)switch(ve){case"N":case"NN":case"NNN":if(Co===U)return In[et];break;case"NNNN":if(Li===U)return In[et];break;case"NNNNN":if(ls===U)return In[et]}else if([Li,Co,ls].indexOf(U)>=0)return In[et]},Ur.erasConvertYear=function Pi(U,ve){var Ue=U.since<=U.until?1:-1;return void 0===ve?C(U.since).year():C(U.since).year()+(ve-U.offset)*Ue},Ur.erasAbbrRegex=function Ln(U){return R(this,"_erasAbbrRegex")||kr.call(this),U?this._erasAbbrRegex:this._erasRegex},Ur.erasNameRegex=function mn(U){return R(this,"_erasNameRegex")||kr.call(this),U?this._erasNameRegex:this._erasRegex},Ur.erasNarrowRegex=function zn(U){return R(this,"_erasNarrowRegex")||kr.call(this),U?this._erasNarrowRegex:this._erasRegex},Ur.months=function Dc(U,ve){return U?D(this._months)?this._months[U.month()]:this._months[(this._months.isFormat||Ia).test(ve)?"format":"standalone"][U.month()]:D(this._months)?this._months:this._months.standalone},Ur.monthsShort=function mc(U,ve){return U?D(this._monthsShort)?this._monthsShort[U.month()]:this._monthsShort[Ia.test(ve)?"format":"standalone"][U.month()]:D(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Ur.monthsParse=function _n(U,ve,Ue){var et,It,In;if(this._monthsParseExact)return At.call(this,U,ve,Ue);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),et=0;et<12;et++){if(It=z([2e3,et]),Ue&&!this._longMonthsParse[et]&&(this._longMonthsParse[et]=new RegExp("^"+this.months(It,"").replace(".","")+"$","i"),this._shortMonthsParse[et]=new RegExp("^"+this.monthsShort(It,"").replace(".","")+"$","i")),!Ue&&!this._monthsParse[et]&&(In="^"+this.months(It,"")+"|^"+this.monthsShort(It,""),this._monthsParse[et]=new RegExp(In.replace(".",""),"i")),Ue&&"MMMM"===ve&&this._longMonthsParse[et].test(U))return et;if(Ue&&"MMM"===ve&&this._shortMonthsParse[et].test(U))return et;if(!Ue&&this._monthsParse[et].test(U))return et}},Ur.monthsRegex=function Oi(U){return this._monthsParseExact?(R(this,"_monthsRegex")||ir.call(this),U?this._monthsStrictRegex:this._monthsRegex):(R(this,"_monthsRegex")||(this._monthsRegex=Mr),this._monthsStrictRegex&&U?this._monthsStrictRegex:this._monthsRegex)},Ur.monthsShortRegex=function En(U){return this._monthsParseExact?(R(this,"_monthsRegex")||ir.call(this),U?this._monthsShortStrictRegex:this._monthsShortRegex):(R(this,"_monthsShortRegex")||(this._monthsShortRegex=ns),this._monthsShortStrictRegex&&U?this._monthsShortStrictRegex:this._monthsShortRegex)},Ur.week=function Ho(U){return zo(U,this._week.dow,this._week.doy).week},Ur.firstDayOfYear=function go(){return this._week.doy},Ur.firstDayOfWeek=function bi(){return this._week.dow},Ur.weekdays=function cl(U,ve){var Ue=D(this._weekdays)?this._weekdays:this._weekdays[U&&!0!==U&&this._weekdays.isFormat.test(ve)?"format":"standalone"];return!0===U?kc(Ue,this._week.dow):U?Ue[U.day()]:Ue},Ur.weekdaysMin=function na(U){return!0===U?kc(this._weekdaysMin,this._week.dow):U?this._weekdaysMin[U.day()]:this._weekdaysMin},Ur.weekdaysShort=function yl(U){return!0===U?kc(this._weekdaysShort,this._week.dow):U?this._weekdaysShort[U.day()]:this._weekdaysShort},Ur.weekdaysParse=function Ha(U,ve,Ue){var et,It,In;if(this._weekdaysParseExact)return Eo.call(this,U,ve,Ue);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),et=0;et<7;et++){if(It=z([2e3,1]).day(et),Ue&&!this._fullWeekdaysParse[et]&&(this._fullWeekdaysParse[et]=new RegExp("^"+this.weekdays(It,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[et]=new RegExp("^"+this.weekdaysShort(It,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[et]=new RegExp("^"+this.weekdaysMin(It,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[et]||(In="^"+this.weekdays(It,"")+"|^"+this.weekdaysShort(It,"")+"|^"+this.weekdaysMin(It,""),this._weekdaysParse[et]=new RegExp(In.replace(".",""),"i")),Ue&&"dddd"===ve&&this._fullWeekdaysParse[et].test(U))return et;if(Ue&&"ddd"===ve&&this._shortWeekdaysParse[et].test(U))return et;if(Ue&&"dd"===ve&&this._minWeekdaysParse[et].test(U))return et;if(!Ue&&this._weekdaysParse[et].test(U))return et}},Ur.weekdaysRegex=function gc(U){return this._weekdaysParseExact?(R(this,"_weekdaysRegex")||he.call(this),U?this._weekdaysStrictRegex:this._weekdaysRegex):(R(this,"_weekdaysRegex")||(this._weekdaysRegex=Is),this._weekdaysStrictRegex&&U?this._weekdaysStrictRegex:this._weekdaysRegex)},Ur.weekdaysShortRegex=function Ic(U){return this._weekdaysParseExact?(R(this,"_weekdaysRegex")||he.call(this),U?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(R(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ll),this._weekdaysShortStrictRegex&&U?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Ur.weekdaysMinRegex=function te(U){return this._weekdaysParseExact?(R(this,"_weekdaysRegex")||he.call(this),U?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(R(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ku),this._weekdaysMinStrictRegex&&U?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Ur.isPM=function oi(U){return"p"===(U+"").toLowerCase().charAt(0)},Ur.meridiem=function Zn(U,ve,Ue){return U>11?Ue?"pm":"PM":Ue?"am":"AM"},as("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(U){var ve=U%10;return U+(1===Bo(U%100/10)?"th":1===ve?"st":2===ve?"nd":3===ve?"rd":"th")}}),C.lang=Fe("moment.lang is deprecated. Use moment.locale instead.",as),C.langData=Fe("moment.langData is deprecated. Use moment.localeData instead.",Qa);var Cs=Math.abs;function cm(U,ve,Ue,et){var It=dl(ve,Ue);return U._milliseconds+=et*It._milliseconds,U._days+=et*It._days,U._months+=et*It._months,U._bubble()}function Vp(U){return U<0?Math.floor(U):Math.ceil(U)}function jp(U){return 4800*U/146097}function Hp(U){return 146097*U/4800}function Ql(U){return function(){return this.as(U)}}var La=Ql("ms"),Xu=Ql("s"),hl=Ql("m"),Mf=Ql("h"),$h=Ql("d"),Yh=Ql("w"),Ku=Ql("M"),fh=Ql("Q"),bu=Ql("y"),Qu=La;function op(U){return function(){return this.isValid()?this._data[U]:NaN}}var um=op("milliseconds"),dm=op("seconds"),e_=op("minutes"),o1=op("hours"),s1=op("days"),vp=op("months"),rr=op("years");var _c=Math.round,Up={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ud(U,ve,Ue,et,It){return It.relativeTime(ve||1,!!Ue,U,et)}var t_=Math.abs;function dd(U){return(U>0)-(U<0)||+U}function pm(){if(!this.isValid())return this.localeData().invalidDate();var et,It,In,Li,ls,Es,wu,Yp,U=t_(this._milliseconds)/1e3,ve=t_(this._days),Ue=t_(this._months),Co=this.asSeconds();return Co?(et=da(U/60),It=da(et/60),U%=60,et%=60,In=da(Ue/12),Ue%=12,Li=U?U.toFixed(3).replace(/\.?0+$/,""):"",ls=Co<0?"-":"",Es=dd(this._months)!==dd(Co)?"-":"",wu=dd(this._days)!==dd(Co)?"-":"",Yp=dd(this._milliseconds)!==dd(Co)?"-":"",ls+"P"+(In?Es+In+"Y":"")+(Ue?Es+Ue+"M":"")+(ve?wu+ve+"D":"")+(It||et||U?"T":"")+(It?Yp+It+"H":"")+(et?Yp+et+"M":"")+(U?Yp+Li+"S":"")):"P0D"}var Vo=Ac.prototype;return Vo.isValid=function ld(){return this._isValid},Vo.abs=function pl(){var U=this._data;return this._milliseconds=Cs(this._milliseconds),this._days=Cs(this._days),this._months=Cs(this._months),U.milliseconds=Cs(U.milliseconds),U.seconds=Cs(U.seconds),U.minutes=Cs(U.minutes),U.hours=Cs(U.hours),U.months=Cs(U.months),U.years=Cs(U.years),this},Vo.add=function Mu(U,ve){return cm(this,U,ve,1)},Vo.subtract=function Bp(U,ve){return cm(this,U,ve,-1)},Vo.as=function Nd(U){if(!this.isValid())return NaN;var ve,Ue,et=this._milliseconds;if("month"===(U=Vt(U))||"quarter"===U||"year"===U)switch(ve=this._days+et/864e5,Ue=this._months+jp(ve),U){case"month":return Ue;case"quarter":return Ue/3;case"year":return Ue/12}else switch(ve=this._days+Math.round(Hp(this._months)),U){case"week":return ve/7+et/6048e5;case"day":return ve+et/864e5;case"hour":return 24*ve+et/36e5;case"minute":return 1440*ve+et/6e4;case"second":return 86400*ve+et/1e3;case"millisecond":return Math.floor(864e5*ve)+et;default:throw new Error("Unknown unit "+U)}},Vo.asMilliseconds=La,Vo.asSeconds=Xu,Vo.asMinutes=hl,Vo.asHours=Mf,Vo.asDays=$h,Vo.asWeeks=Yh,Vo.asMonths=Ku,Vo.asQuarters=fh,Vo.asYears=bu,Vo.valueOf=Qu,Vo._bubble=function xs(){var It,In,Li,Co,ls,U=this._milliseconds,ve=this._days,Ue=this._months,et=this._data;return U>=0&&ve>=0&&Ue>=0||U<=0&&ve<=0&&Ue<=0||(U+=864e5*Vp(Hp(Ue)+ve),ve=0,Ue=0),et.milliseconds=U%1e3,It=da(U/1e3),et.seconds=It%60,In=da(It/60),et.minutes=In%60,Li=da(In/60),et.hours=Li%24,ve+=da(Li/24),Ue+=ls=da(jp(ve)),ve-=Vp(Hp(ls)),Co=da(Ue/12),Ue%=12,et.days=ve,et.months=Ue,et.years=Co,this},Vo.clone=function Gd(){return dl(this)},Vo.get=function Zv(U){return U=Vt(U),this.isValid()?this[U+"s"]():NaN},Vo.milliseconds=um,Vo.seconds=dm,Vo.minutes=e_,Vo.hours=o1,Vo.days=s1,Vo.weeks=function $o(){return da(this.days()/7)},Vo.months=vp,Vo.years=rr,Vo.humanize=function Cu(U,ve){if(!this.isValid())return this.localeData().invalidDate();var It,In,Ue=!1,et=Up;return"object"==typeof U&&(ve=U,U=!1),"boolean"==typeof U&&(Ue=U),"object"==typeof ve&&(et=Object.assign({},Up,ve),null!=ve.s&&null==ve.ss&&(et.ss=ve.s-1)),In=function $p(U,ve,Ue,et){var It=dl(U).abs(),In=_c(It.as("s")),Li=_c(It.as("m")),Co=_c(It.as("h")),ls=_c(It.as("d")),Es=_c(It.as("M")),wu=_c(It.as("w")),Yp=_c(It.as("y")),mh=In<=Ue.ss&&["s",In]||In<Ue.s&&["ss",In]||Li<=1&&["m"]||Li<Ue.m&&["mm",Li]||Co<=1&&["h"]||Co<Ue.h&&["hh",Co]||ls<=1&&["d"]||ls<Ue.d&&["dd",ls];return null!=Ue.w&&(mh=mh||wu<=1&&["w"]||wu<Ue.w&&["ww",wu]),(mh=mh||Es<=1&&["M"]||Es<Ue.M&&["MM",Es]||Yp<=1&&["y"]||["yy",Yp])[2]=ve,mh[3]=+U>0,mh[4]=et,ud.apply(null,mh)}(this,!Ue,et,It=this.localeData()),Ue&&(In=It.pastFuture(+this,In)),It.postformat(In)},Vo.toISOString=pm,Vo.toString=pm,Vo.toJSON=pm,Vo.locale=ft,Vo.localeData=Ze,Vo.toIsoString=Fe("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",pm),Vo.lang=kt,Re("X",0,0,"unix"),Re("x",0,0,"valueOf"),Dr("x",pr),Dr("X",/[+-]?\d+(\.\d{1,3})?/),qr("X",function(U,ve,Ue){Ue._d=new Date(1e3*parseFloat(U))}),qr("x",function(U,ve,Ue){Ue._d=new Date(Bo(U))}),C.version="2.30.1",function E(U){T=U}(Ts),C.fn=Yt,C.min=function ds(){return ul("isBefore",[].slice.call(arguments,0))},C.max=function Qc(){return ul("isAfter",[].slice.call(arguments,0))},C.now=function(){return Date.now?Date.now():+new Date},C.utc=z,C.unix=function mr(U){return Ts(1e3*U)},C.months=function ha(U,ve){return ia(U,ve,"months")},C.isDate=H,C.locale=as,C.invalid=Y,C.duration=dl,C.isMoment=se,C.weekdays=function Np(U,ve,Ue){return zs(U,ve,Ue,"weekdays")},C.parseZone=function Sr(){return Ts.apply(null,arguments).parseZone()},C.localeData=Qa,C.isDuration=np,C.monthsShort=function $a(U,ve){return ia(U,ve,"monthsShort")},C.weekdaysMin=function vc(U,ve,Ue){return zs(U,ve,Ue,"weekdaysMin")},C.defineLocale=$s,C.updateLocale=function oc(U,ve){if(null!=ve){var Ue,et,It=vr;null!=ti[U]&&null!=ti[U].parentLocale?ti[U].set(Ie(ti[U]._config,ve)):(null!=(et=jr(U))&&(It=et._config),ve=Ie(It,ve),null==et&&(ve.abbr=U),(Ue=new Se(ve)).parentLocale=ti[U],ti[U]=Ue),as(U)}else null!=ti[U]&&(null!=ti[U].parentLocale?(ti[U]=ti[U].parentLocale,U===as()&&as(U)):null!=ti[U]&&delete ti[U]);return ti[U]},C.locales=function Vs(){return de(ti)},C.weekdaysShort=function Gp(U,ve,Ue){return zs(U,ve,Ue,"weekdaysShort")},C.normalizeUnits=Vt,C.relativeTimeRounding=function Mg(U){return void 0===U?_c:"function"==typeof U&&(_c=U,!0)},C.relativeTimeThreshold=function a1(U,ve){return void 0!==Up[U]&&(void 0===ve?Up[U]:(Up[U]=ve,"s"===U&&(Up.ss=ve-1),!0))},C.calendarFormat=function t1(U,ve){var Ue=U.diff(ve,"days",!0);return Ue<-6?"sameElse":Ue<-1?"lastWeek":Ue<0?"lastDay":Ue<1?"sameDay":Ue<2?"nextDay":Ue<7?"nextWeek":"sameElse"},C.prototype=Yt,C.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},C}()},1561:(m,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});const T=b(8328),C=b(5667);var E,D;(D=E||(E={})).compose=function k(Q={},H={},Z=!1){"object"!=typeof Q&&(Q={}),"object"!=typeof H&&(H={});let X=T(H);Z||(X=Object.keys(X).reduce((z,fe)=>(null!=X[fe]&&(z[fe]=X[fe]),z),{}));for(const z in Q)void 0!==Q[z]&&void 0===H[z]&&(X[z]=Q[z]);return Object.keys(X).length>0?X:void 0},D.diff=function R(Q={},H={}){"object"!=typeof Q&&(Q={}),"object"!=typeof H&&(H={});const Z=Object.keys(Q).concat(Object.keys(H)).reduce((X,z)=>(C(Q[z],H[z])||(X[z]=void 0===H[z]?null:H[z]),X),{});return Object.keys(Z).length>0?Z:void 0},D.invert=function P(Q={},H={}){Q=Q||{};const Z=Object.keys(H).reduce((X,z)=>(H[z]!==Q[z]&&void 0!==Q[z]&&(X[z]=H[z]),X),{});return Object.keys(Q).reduce((X,z)=>(Q[z]!==H[z]&&void 0===H[z]&&(X[z]=null),X),Z)},D.transform=function G(Q,H,Z=!1){if("object"!=typeof Q)return H;if("object"!=typeof H)return;if(!Z)return H;const X=Object.keys(H).reduce((z,fe)=>(void 0===Q[fe]&&(z[fe]=H[fe]),z),{});return Object.keys(X).length>0?X:void 0},y.default=E},2577:(m,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.AttributeMap=y.OpIterator=y.Op=void 0;const T=b(8655),C=b(8328),E=b(5667),D=b(1561);y.AttributeMap=D.default;const k=b(8964);y.Op=k.default;const R=b(6366);y.OpIterator=R.default;const G=(H,Z)=>{if("object"!=typeof H||null===H)throw new Error("cannot retain a "+typeof H);if("object"!=typeof Z||null===Z)throw new Error("cannot retain a "+typeof Z);const X=Object.keys(H)[0];if(!X||X!==Object.keys(Z)[0])throw new Error(`embed types not matched: ${X} != ${Object.keys(Z)[0]}`);return[X,H[X],Z[X]]};class Q{constructor(Z){this.ops=Array.isArray(Z)?Z:null!=Z&&Array.isArray(Z.ops)?Z.ops:[]}static registerEmbed(Z,X){this.handlers[Z]=X}static unregisterEmbed(Z){delete this.handlers[Z]}static getHandler(Z){const X=this.handlers[Z];if(!X)throw new Error(`no handlers for embed type "${Z}"`);return X}insert(Z,X){const z={};return"string"==typeof Z&&0===Z.length?this:(z.insert=Z,null!=X&&"object"==typeof X&&Object.keys(X).length>0&&(z.attributes=X),this.push(z))}delete(Z){return Z<=0?this:this.push({delete:Z})}retain(Z,X){if("number"==typeof Z&&Z<=0)return this;const z={retain:Z};return null!=X&&"object"==typeof X&&Object.keys(X).length>0&&(z.attributes=X),this.push(z)}push(Z){let X=this.ops.length,z=this.ops[X-1];if(Z=C(Z),"object"==typeof z){if("number"==typeof Z.delete&&"number"==typeof z.delete)return this.ops[X-1]={delete:z.delete+Z.delete},this;if("number"==typeof z.delete&&null!=Z.insert&&(X-=1,z=this.ops[X-1],"object"!=typeof z))return this.ops.unshift(Z),this;if(E(Z.attributes,z.attributes)){if("string"==typeof Z.insert&&"string"==typeof z.insert)return this.ops[X-1]={insert:z.insert+Z.insert},"object"==typeof Z.attributes&&(this.ops[X-1].attributes=Z.attributes),this;if("number"==typeof Z.retain&&"number"==typeof z.retain)return this.ops[X-1]={retain:z.retain+Z.retain},"object"==typeof Z.attributes&&(this.ops[X-1].attributes=Z.attributes),this}}return X===this.ops.length?this.ops.push(Z):this.ops.splice(X,0,Z),this}chop(){const Z=this.ops[this.ops.length-1];return Z&&"number"==typeof Z.retain&&!Z.attributes&&this.ops.pop(),this}filter(Z){return this.ops.filter(Z)}forEach(Z){this.ops.forEach(Z)}map(Z){return this.ops.map(Z)}partition(Z){const X=[],z=[];return this.forEach(fe=>{(Z(fe)?X:z).push(fe)}),[X,z]}reduce(Z,X){return this.ops.reduce(Z,X)}changeLength(){return this.reduce((Z,X)=>X.insert?Z+k.default.length(X):X.delete?Z-X.delete:Z,0)}length(){return this.reduce((Z,X)=>Z+k.default.length(X),0)}slice(Z=0,X=1/0){const z=[],fe=new R.default(this.ops);let q=0;for(;q<X&&fe.hasNext();){let ne;q<Z?ne=fe.next(Z-q):(ne=fe.next(X-q),z.push(ne)),q+=k.default.length(ne)}return new Q(z)}compose(Z){const X=new R.default(this.ops),z=new R.default(Z.ops),fe=[],q=z.peek();if(null!=q&&"number"==typeof q.retain&&null==q.attributes){let N=q.retain;for(;"insert"===X.peekType()&&X.peekLength()<=N;)N-=X.peekLength(),fe.push(X.next());q.retain-N>0&&z.next(q.retain-N)}const ne=new Q(fe);for(;X.hasNext()||z.hasNext();)if("insert"===z.peekType())ne.push(z.next());else if("delete"===X.peekType())ne.push(X.next());else{const N=Math.min(X.peekLength(),z.peekLength()),Y=X.next(N),W=z.next(N);if(W.retain){const J={};if("number"==typeof Y.retain)J.retain="number"==typeof W.retain?N:W.retain;else if("number"==typeof W.retain)null==Y.retain?J.insert=Y.insert:J.retain=Y.retain;else{const K=null==Y.retain?"insert":"retain",[se,De,Fe]=G(Y[K],W.retain),_e=Q.getHandler(se);J[K]={[se]:_e.compose(De,Fe,"retain"===K)}}const n=D.default.compose(Y.attributes,W.attributes,"number"==typeof Y.retain);if(n&&(J.attributes=n),ne.push(J),!z.hasNext()&&E(ne.ops[ne.ops.length-1],J)){const K=new Q(X.rest());return ne.concat(K).chop()}}else"number"==typeof W.delete&&("number"==typeof Y.retain||"object"==typeof Y.retain&&null!==Y.retain)&&ne.push(W)}return ne.chop()}concat(Z){const X=new Q(this.ops.slice());return Z.ops.length>0&&(X.push(Z.ops[0]),X.ops=X.ops.concat(Z.ops.slice(1))),X}diff(Z,X){if(this.ops===Z.ops)return new Q;const z=[this,Z].map(Y=>Y.map(W=>{if(null!=W.insert)return"string"==typeof W.insert?W.insert:"\0";throw new Error("diff() called "+(Y===Z?"on":"with")+" non-document")}).join("")),fe=new Q,q=T(z[0],z[1],X,!0),ne=new R.default(this.ops),N=new R.default(Z.ops);return q.forEach(Y=>{let W=Y[1].length;for(;W>0;){let J=0;switch(Y[0]){case T.INSERT:J=Math.min(N.peekLength(),W),fe.push(N.next(J));break;case T.DELETE:J=Math.min(W,ne.peekLength()),ne.next(J),fe.delete(J);break;case T.EQUAL:J=Math.min(ne.peekLength(),N.peekLength(),W);const n=ne.next(J),K=N.next(J);E(n.insert,K.insert)?fe.retain(J,D.default.diff(n.attributes,K.attributes)):fe.push(K).delete(J)}W-=J}}),fe.chop()}eachLine(Z,X="\n"){const z=new R.default(this.ops);let fe=new Q,q=0;for(;z.hasNext();){if("insert"!==z.peekType())return;const ne=z.peek(),N=k.default.length(ne)-z.peekLength(),Y="string"==typeof ne.insert?ne.insert.indexOf(X,N)-N:-1;if(Y<0)fe.push(z.next());else if(Y>0)fe.push(z.next(Y));else{if(!1===Z(fe,z.next(1).attributes||{},q))return;q+=1,fe=new Q}}fe.length()>0&&Z(fe,{},q)}invert(Z){const X=new Q;return this.reduce((z,fe)=>{if(fe.insert)X.delete(k.default.length(fe));else{if("number"==typeof fe.retain&&null==fe.attributes)return X.retain(fe.retain),z+fe.retain;if(fe.delete||"number"==typeof fe.retain){const q=fe.delete||fe.retain;return Z.slice(z,z+q).forEach(N=>{fe.delete?X.push(N):fe.retain&&fe.attributes&&X.retain(k.default.length(N),D.default.invert(fe.attributes,N.attributes))}),z+q}if("object"==typeof fe.retain&&null!==fe.retain){const q=Z.slice(z,z+1),ne=new R.default(q.ops).next(),[N,Y,W]=G(fe.retain,ne.insert),J=Q.getHandler(N);return X.retain({[N]:J.invert(Y,W)},D.default.invert(fe.attributes,ne.attributes)),z+1}}return z},0),X.chop()}transform(Z,X=!1){if(X=!!X,"number"==typeof Z)return this.transformPosition(Z,X);const z=Z,fe=new R.default(this.ops),q=new R.default(z.ops),ne=new Q;for(;fe.hasNext()||q.hasNext();)if("insert"!==fe.peekType()||!X&&"insert"===q.peekType())if("insert"===q.peekType())ne.push(q.next());else{const N=Math.min(fe.peekLength(),q.peekLength()),Y=fe.next(N),W=q.next(N);if(Y.delete)continue;if(W.delete)ne.push(W);else{const J=Y.retain,n=W.retain;let K="object"==typeof n&&null!==n?n:N;if("object"==typeof J&&null!==J&&"object"==typeof n&&null!==n){const se=Object.keys(J)[0];if(se===Object.keys(n)[0]){const De=Q.getHandler(se);De&&(K={[se]:De.transform(J[se],n[se],X)})}}ne.retain(K,D.default.transform(Y.attributes,W.attributes,X))}}else ne.retain(k.default.length(fe.next()));return ne.chop()}transformPosition(Z,X=!1){X=!!X;const z=new R.default(this.ops);let fe=0;for(;z.hasNext()&&fe<=Z;){const q=z.peekLength(),ne=z.peekType();z.next(),"delete"!==ne?("insert"===ne&&(fe<Z||!X)&&(Z+=q),fe+=q):Z-=Math.min(q,Z-fe)}return Z}}Q.Op=k.default,Q.OpIterator=R.default,Q.AttributeMap=D.default,Q.handlers={},y.default=Q,m.exports=Q,m.exports.default=Q},8964:(m,y)=>{"use strict";var b;Object.defineProperty(y,"__esModule",{value:!0}),(b||(b={})).length=function C(E){return"number"==typeof E.delete?E.delete:"number"==typeof E.retain?E.retain:"object"==typeof E.retain&&null!==E.retain?1:"string"==typeof E.insert?E.insert.length:1},y.default=b},6366:(m,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});const T=b(8964);y.default=class C{constructor(D){this.ops=D,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(D){D||(D=1/0);const k=this.ops[this.index];if(k){const R=this.offset,P=T.default.length(k);if(D>=P-R?(D=P-R,this.index+=1,this.offset=0):this.offset+=D,"number"==typeof k.delete)return{delete:D};{const G={};return k.attributes&&(G.attributes=k.attributes),"number"==typeof k.retain?G.retain=D:"object"==typeof k.retain&&null!==k.retain?G.retain=k.retain:G.insert="string"==typeof k.insert?k.insert.substr(R,D):k.insert,G}}return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?T.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const D=this.ops[this.index];return D?"number"==typeof D.delete?"delete":"number"==typeof D.retain||"object"==typeof D.retain&&null!==D.retain?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);{const D=this.offset,k=this.index,R=this.next(),P=this.ops.slice(this.index);return this.offset=D,this.index=k,[R].concat(P)}}return[]}}},9280:m=>{"use strict";var y=Object.prototype.hasOwnProperty,b="~";function T(){}function C(R,P,G){this.fn=R,this.context=P,this.once=G||!1}function E(R,P,G,Q,H){if("function"!=typeof G)throw new TypeError("The listener must be a function");var Z=new C(G,Q||R,H),X=b?b+P:P;return R._events[X]?R._events[X].fn?R._events[X]=[R._events[X],Z]:R._events[X].push(Z):(R._events[X]=Z,R._eventsCount++),R}function D(R,P){0==--R._eventsCount?R._events=new T:delete R._events[P]}function k(){this._events=new T,this._eventsCount=0}Object.create&&(T.prototype=Object.create(null),(new T).__proto__||(b=!1)),k.prototype.eventNames=function(){var G,Q,P=[];if(0===this._eventsCount)return P;for(Q in G=this._events)y.call(G,Q)&&P.push(b?Q.slice(1):Q);return Object.getOwnPropertySymbols?P.concat(Object.getOwnPropertySymbols(G)):P},k.prototype.listeners=function(P){var Q=this._events[b?b+P:P];if(!Q)return[];if(Q.fn)return[Q.fn];for(var H=0,Z=Q.length,X=new Array(Z);H<Z;H++)X[H]=Q[H].fn;return X},k.prototype.listenerCount=function(P){var Q=this._events[b?b+P:P];return Q?Q.fn?1:Q.length:0},k.prototype.emit=function(P,G,Q,H,Z,X){var z=b?b+P:P;if(!this._events[z])return!1;var ne,N,fe=this._events[z],q=arguments.length;if(fe.fn){switch(fe.once&&this.removeListener(P,fe.fn,void 0,!0),q){case 1:return fe.fn.call(fe.context),!0;case 2:return fe.fn.call(fe.context,G),!0;case 3:return fe.fn.call(fe.context,G,Q),!0;case 4:return fe.fn.call(fe.context,G,Q,H),!0;case 5:return fe.fn.call(fe.context,G,Q,H,Z),!0;case 6:return fe.fn.call(fe.context,G,Q,H,Z,X),!0}for(N=1,ne=new Array(q-1);N<q;N++)ne[N-1]=arguments[N];fe.fn.apply(fe.context,ne)}else{var W,Y=fe.length;for(N=0;N<Y;N++)switch(fe[N].once&&this.removeListener(P,fe[N].fn,void 0,!0),q){case 1:fe[N].fn.call(fe[N].context);break;case 2:fe[N].fn.call(fe[N].context,G);break;case 3:fe[N].fn.call(fe[N].context,G,Q);break;case 4:fe[N].fn.call(fe[N].context,G,Q,H);break;default:if(!ne)for(W=1,ne=new Array(q-1);W<q;W++)ne[W-1]=arguments[W];fe[N].fn.apply(fe[N].context,ne)}}return!0},k.prototype.on=function(P,G,Q){return E(this,P,G,Q,!1)},k.prototype.once=function(P,G,Q){return E(this,P,G,Q,!0)},k.prototype.removeListener=function(P,G,Q,H){var Z=b?b+P:P;if(!this._events[Z])return this;if(!G)return D(this,Z),this;var X=this._events[Z];if(X.fn)X.fn===G&&(!H||X.once)&&(!Q||X.context===Q)&&D(this,Z);else{for(var z=0,fe=[],q=X.length;z<q;z++)(X[z].fn!==G||H&&!X[z].once||Q&&X[z].context!==Q)&&fe.push(X[z]);fe.length?this._events[Z]=1===fe.length?fe[0]:fe:D(this,Z)}return this},k.prototype.removeAllListeners=function(P){var G;return P?this._events[G=b?b+P:P]&&D(this,G):(this._events=new T,this._eventsCount=0),this},k.prototype.off=k.prototype.removeListener,k.prototype.addListener=k.prototype.on,k.prefixed=b,k.EventEmitter=k,m.exports=k},4412:(m,y,b)=>{"use strict";b.d(y,{t:()=>C});var T=b(1413);class C extends T.B{constructor(D){super(),this._value=D}get value(){return this.getValue()}_subscribe(D){const k=super._subscribe(D);return!k.closed&&D.next(this._value),k}getValue(){const{hasError:D,thrownError:k,_value:R}=this;if(D)throw k;return this._throwIfClosed(),R}next(D){super.next(this._value=D)}}},1985:(m,y,b)=>{"use strict";b.d(y,{c:()=>G});var T=b(7707),C=b(8359),E=b(3494),D=b(1203),k=b(1026),R=b(8071),P=b(9786);let G=(()=>{class X{constructor(fe){fe&&(this._subscribe=fe)}lift(fe){const q=new X;return q.source=this,q.operator=fe,q}subscribe(fe,q,ne){const N=function Z(X){return X&&X instanceof T.vU||function H(X){return X&&(0,R.T)(X.next)&&(0,R.T)(X.error)&&(0,R.T)(X.complete)}(X)&&(0,C.Uv)(X)}(fe)?fe:new T.Ms(fe,q,ne);return(0,P.Y)(()=>{const{operator:Y,source:W}=this;N.add(Y?Y.call(N,W):W?this._subscribe(N):this._trySubscribe(N))}),N}_trySubscribe(fe){try{return this._subscribe(fe)}catch(q){fe.error(q)}}forEach(fe,q){return new(q=Q(q))((ne,N)=>{const Y=new T.Ms({next:W=>{try{fe(W)}catch(J){N(J),Y.unsubscribe()}},error:N,complete:ne});this.subscribe(Y)})}_subscribe(fe){var q;return null===(q=this.source)||void 0===q?void 0:q.subscribe(fe)}[E.s](){return this}pipe(...fe){return(0,D.m)(fe)(this)}toPromise(fe){return new(fe=Q(fe))((q,ne)=>{let N;this.subscribe(Y=>N=Y,Y=>ne(Y),()=>q(N))})}}return X.create=z=>new X(z),X})();function Q(X){var z;return null!==(z=X??k.$.Promise)&&void 0!==z?z:Promise}},1413:(m,y,b)=>{"use strict";b.d(y,{B:()=>P});var T=b(1985),C=b(8359);const D=(0,b(1853).L)(Q=>function(){Q(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var k=b(7908),R=b(9786);let P=(()=>{class Q extends T.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(Z){const X=new G(this,this);return X.operator=Z,X}_throwIfClosed(){if(this.closed)throw new D}next(Z){(0,R.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const X of this.currentObservers)X.next(Z)}})}error(Z){(0,R.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=Z;const{observers:X}=this;for(;X.length;)X.shift().error(Z)}})}complete(){(0,R.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:Z}=this;for(;Z.length;)Z.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var Z;return(null===(Z=this.observers)||void 0===Z?void 0:Z.length)>0}_trySubscribe(Z){return this._throwIfClosed(),super._trySubscribe(Z)}_subscribe(Z){return this._throwIfClosed(),this._checkFinalizedStatuses(Z),this._innerSubscribe(Z)}_innerSubscribe(Z){const{hasError:X,isStopped:z,observers:fe}=this;return X||z?C.Kn:(this.currentObservers=null,fe.push(Z),new C.yU(()=>{this.currentObservers=null,(0,k.o)(fe,Z)}))}_checkFinalizedStatuses(Z){const{hasError:X,thrownError:z,isStopped:fe}=this;X?Z.error(z):fe&&Z.complete()}asObservable(){const Z=new T.c;return Z.source=this,Z}}return Q.create=(H,Z)=>new G(H,Z),Q})();class G extends P{constructor(H,Z){super(),this.destination=H,this.source=Z}next(H){var Z,X;null===(X=null===(Z=this.destination)||void 0===Z?void 0:Z.next)||void 0===X||X.call(Z,H)}error(H){var Z,X;null===(X=null===(Z=this.destination)||void 0===Z?void 0:Z.error)||void 0===X||X.call(Z,H)}complete(){var H,Z;null===(Z=null===(H=this.destination)||void 0===H?void 0:H.complete)||void 0===Z||Z.call(H)}_subscribe(H){var Z,X;return null!==(X=null===(Z=this.source)||void 0===Z?void 0:Z.subscribe(H))&&void 0!==X?X:C.Kn}}},7707:(m,y,b)=>{"use strict";b.d(y,{Ms:()=>ne,vU:()=>X});var T=b(8071),C=b(8359),E=b(1026),D=b(5334),k=b(5343);const R=Q("C",void 0,void 0);function Q(n,K,se){return{kind:n,value:K,error:se}}var H=b(9270),Z=b(9786);class X extends C.yU{constructor(K){super(),this.isStopped=!1,K?(this.destination=K,(0,C.Uv)(K)&&K.add(this)):this.destination=J}static create(K,se,De){return new ne(K,se,De)}next(K){this.isStopped?W(function G(n){return Q("N",n,void 0)}(K),this):this._next(K)}error(K){this.isStopped?W(function P(n){return Q("E",void 0,n)}(K),this):(this.isStopped=!0,this._error(K))}complete(){this.isStopped?W(R,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(K){this.destination.next(K)}_error(K){try{this.destination.error(K)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const z=Function.prototype.bind;function fe(n,K){return z.call(n,K)}class q{constructor(K){this.partialObserver=K}next(K){const{partialObserver:se}=this;if(se.next)try{se.next(K)}catch(De){N(De)}}error(K){const{partialObserver:se}=this;if(se.error)try{se.error(K)}catch(De){N(De)}else N(K)}complete(){const{partialObserver:K}=this;if(K.complete)try{K.complete()}catch(se){N(se)}}}class ne extends X{constructor(K,se,De){let Fe;if(super(),(0,T.T)(K)||!K)Fe={next:K??void 0,error:se??void 0,complete:De??void 0};else{let _e;this&&E.$.useDeprecatedNextContext?(_e=Object.create(K),_e.unsubscribe=()=>this.unsubscribe(),Fe={next:K.next&&fe(K.next,_e),error:K.error&&fe(K.error,_e),complete:K.complete&&fe(K.complete,_e)}):Fe=K}this.destination=new q(Fe)}}function N(n){E.$.useDeprecatedSynchronousErrorHandling?(0,Z.l)(n):(0,D.m)(n)}function W(n,K){const{onStoppedNotification:se}=E.$;se&&H.f.setTimeout(()=>se(n,K))}const J={closed:!0,next:k.l,error:function Y(n){throw n},complete:k.l}},8359:(m,y,b)=>{"use strict";b.d(y,{Kn:()=>R,yU:()=>k,Uv:()=>P});var T=b(8071);const E=(0,b(1853).L)(Q=>function(Z){Q(this),this.message=Z?`${Z.length} errors occurred during unsubscription:\n${Z.map((X,z)=>`${z+1}) ${X.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=Z});var D=b(7908);class k{constructor(H){this.initialTeardown=H,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let H;if(!this.closed){this.closed=!0;const{_parentage:Z}=this;if(Z)if(this._parentage=null,Array.isArray(Z))for(const fe of Z)fe.remove(this);else Z.remove(this);const{initialTeardown:X}=this;if((0,T.T)(X))try{X()}catch(fe){H=fe instanceof E?fe.errors:[fe]}const{_finalizers:z}=this;if(z){this._finalizers=null;for(const fe of z)try{G(fe)}catch(q){H=H??[],q instanceof E?H=[...H,...q.errors]:H.push(q)}}if(H)throw new E(H)}}add(H){var Z;if(H&&H!==this)if(this.closed)G(H);else{if(H instanceof k){if(H.closed||H._hasParent(this))return;H._addParent(this)}(this._finalizers=null!==(Z=this._finalizers)&&void 0!==Z?Z:[]).push(H)}}_hasParent(H){const{_parentage:Z}=this;return Z===H||Array.isArray(Z)&&Z.includes(H)}_addParent(H){const{_parentage:Z}=this;this._parentage=Array.isArray(Z)?(Z.push(H),Z):Z?[Z,H]:H}_removeParent(H){const{_parentage:Z}=this;Z===H?this._parentage=null:Array.isArray(Z)&&(0,D.o)(Z,H)}remove(H){const{_finalizers:Z}=this;Z&&(0,D.o)(Z,H),H instanceof k&&H._removeParent(this)}}k.EMPTY=(()=>{const Q=new k;return Q.closed=!0,Q})();const R=k.EMPTY;function P(Q){return Q instanceof k||Q&&"closed"in Q&&(0,T.T)(Q.remove)&&(0,T.T)(Q.add)&&(0,T.T)(Q.unsubscribe)}function G(Q){(0,T.T)(Q)?Q():Q.unsubscribe()}},1026:(m,y,b)=>{"use strict";b.d(y,{$:()=>T});const T={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},4360:(m,y,b)=>{"use strict";b.d(y,{_:()=>C});var T=b(7707);function C(D,k,R,P,G){return new E(D,k,R,P,G)}class E extends T.vU{constructor(k,R,P,G,Q,H){super(k),this.onFinalize=Q,this.shouldUnsubscribe=H,this._next=R?function(Z){try{R(Z)}catch(X){k.error(X)}}:super._next,this._error=G?function(Z){try{G(Z)}catch(X){k.error(X)}finally{this.unsubscribe()}}:super._error,this._complete=P?function(){try{P()}catch(Z){k.error(Z)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var k;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:R}=this;super.unsubscribe(),!R&&(null===(k=this.onFinalize)||void 0===k||k.call(this))}}}},6354:(m,y,b)=>{"use strict";b.d(y,{T:()=>E});var T=b(9974),C=b(4360);function E(D,k){return(0,T.N)((R,P)=>{let G=0;R.subscribe((0,C._)(P,Q=>{P.next(D.call(k,Q,G++))}))})}},9270:(m,y,b)=>{"use strict";b.d(y,{f:()=>T});const T={setTimeout(C,E,...D){const{delegate:k}=T;return k?.setTimeout?k.setTimeout(C,E,...D):setTimeout(C,E,...D)},clearTimeout(C){const{delegate:E}=T;return(E?.clearTimeout||clearTimeout)(C)},delegate:void 0}},3494:(m,y,b)=>{"use strict";b.d(y,{s:()=>T});const T="function"==typeof Symbol&&Symbol.observable||"@@observable"},7908:(m,y,b)=>{"use strict";function T(C,E){if(C){const D=C.indexOf(E);0<=D&&C.splice(D,1)}}b.d(y,{o:()=>T})},1853:(m,y,b)=>{"use strict";function T(C){const D=C(k=>{Error.call(k),k.stack=(new Error).stack});return D.prototype=Object.create(Error.prototype),D.prototype.constructor=D,D}b.d(y,{L:()=>T})},9786:(m,y,b)=>{"use strict";b.d(y,{Y:()=>E,l:()=>D});var T=b(1026);let C=null;function E(k){if(T.$.useDeprecatedSynchronousErrorHandling){const R=!C;if(R&&(C={errorThrown:!1,error:null}),k(),R){const{errorThrown:P,error:G}=C;if(C=null,P)throw G}}else k()}function D(k){T.$.useDeprecatedSynchronousErrorHandling&&C&&(C.errorThrown=!0,C.error=k)}},3669:(m,y,b)=>{"use strict";function T(C){return C}b.d(y,{D:()=>T})},8071:(m,y,b)=>{"use strict";function T(C){return"function"==typeof C}b.d(y,{T:()=>T})},9974:(m,y,b)=>{"use strict";b.d(y,{N:()=>E,S:()=>C});var T=b(8071);function C(D){return(0,T.T)(D?.lift)}function E(D){return k=>{if(C(k))return k.lift(function(R){try{return D(R,this)}catch(P){this.error(P)}});throw new TypeError("Unable to lift unknown Observable type")}}},5343:(m,y,b)=>{"use strict";function T(){}b.d(y,{l:()=>T})},1203:(m,y,b)=>{"use strict";b.d(y,{F:()=>C,m:()=>E});var T=b(3669);function C(...D){return E(D)}function E(D){return 0===D.length?T.D:1===D.length?D[0]:function(R){return D.reduce((P,G)=>G(P),R)}}},5334:(m,y,b)=>{"use strict";b.d(y,{m:()=>E});var T=b(1026),C=b(9270);function E(D){C.f.setTimeout(()=>{const{onUnhandledError:k}=T.$;if(!k)throw D;k(D)})}},7484:(m,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var T=b(5831),C=b(8208),E=b(7419);function D(H){var Z;return(Z={id:H,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:H}}})[C.symbolObservable]=function(){return this},Z}function R(H,Z,X){var z=D(Z);if(z.deferred=!0,C.isMachine(H)){var fe=z.state=E.provide(void 0,function(){return(X?H.withContext(X):H).initialState});z.getSnapshot=function(){return fe}}return z}function P(H){try{return"function"==typeof H.send}catch{return!1}}y.createDeferredActor=R,y.createInvocableActor=function k(H,Z,X,z){var fe,q=C.toInvokeSource(H.src),ne=null===(fe=Z?.options.services)||void 0===fe?void 0:fe[q.type],N=H.data?C.mapContext(H.data,X,z):void 0,Y=ne?R(ne,H.id,N):D(H.id);return Y.meta=H,Y},y.createNullActor=D,y.isActor=P,y.isSpawnedActor=function G(H){return P(H)&&"id"in H},y.toActorRef=function Q(H){var Z;return T.__assign(((Z={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}})[C.symbolObservable]=function(){return this},Z),H)}},1924:(m,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var T=b(3224),C=b(4848),E=!1;y.Machine=function D(R,P,G){return void 0===G&&(G=R.context),new T.StateNode(R,P,G)},y.createMachine=function k(R,P){return!C.IS_PRODUCTION&&!("predictableActionArguments"in R)&&!E&&(E=!0,console.warn("It is highly recommended to set `predictableActionArguments` to `true` when using `createMachine`. https://xstate.js.org/docs/guides/actions.html")),new T.StateNode(R,P)}},8:(m,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var T=b(5831),C=b(6700),E=b(8208),D=b(2611),k=b(4598),R=b(4848);function G(X){return"object"==typeof X&&null!==X&&"value"in X&&"_event"in X}var Q=G;y.State=function(){function X(z){var q,fe=this;this.actions=[],this.activities=C.EMPTY_ACTIVITY_MAP,this.meta={},this.events=[],this.value=z.value,this.context=z.context,this._event=z._event,this._sessionid=z._sessionid,this.event=this._event.data,this.historyValue=z.historyValue,this.history=z.history,this.actions=z.actions||[],this.activities=z.activities||C.EMPTY_ACTIVITY_MAP,this.meta=D.getMeta(z.configuration),this.events=z.events||[],this.matches=this.matches.bind(this),this.toStrings=this.toStrings.bind(this),this.configuration=z.configuration,this.transitions=z.transitions,this.children=z.children,this.done=!!z.done,this.tags=null!==(q=Array.isArray(z.tags)?new Set(z.tags):z.tags)&&void 0!==q?q:new Set,this.machine=z.machine,Object.defineProperty(this,"nextEvents",{get:function(){return D.nextEvents(fe.configuration)}})}return X.from=function(z,fe){return z instanceof X?z.context!==fe?new X({value:z.value,context:fe,_event:z._event,_sessionid:null,historyValue:z.historyValue,history:z.history,actions:[],activities:z.activities,meta:{},events:[],configuration:[],transitions:[],children:{}}):z:new X({value:z,context:fe,_event:k.initEvent,_sessionid:null,historyValue:void 0,history:void 0,actions:[],activities:void 0,meta:void 0,events:[],configuration:[],transitions:[],children:{}})},X.create=function(z){return new X(z)},X.inert=function(z,fe){return z instanceof X?z.actions.length?new X({value:z.value,context:fe,_event:k.initEvent,_sessionid:null,historyValue:z.historyValue,history:z.history,activities:z.activities,configuration:z.configuration,transitions:[],children:{}}):z:X.from(z,fe)},X.prototype.toStrings=function(z,fe){var q=this;if(void 0===z&&(z=this.value),void 0===fe&&(fe="."),E.isString(z))return[z];var ne=Object.keys(z);return ne.concat.apply(ne,T.__spreadArray([],T.__read(ne.map(function(N){return q.toStrings(z[N],fe).map(function(Y){return N+fe+Y})})),!1))},X.prototype.toJSON=function(){var fe=this.tags,q=T.__rest(this,["configuration","transitions","tags","machine"]);return T.__assign(T.__assign({},q),{tags:Array.from(fe)})},X.prototype.matches=function(z){return E.matchesState(z,this.value)},X.prototype.hasTag=function(z){return this.tags.has(z)},X.prototype.can=function(z){var fe;R.IS_PRODUCTION&&E.warn(!!this.machine,"state.can(...) used outside of a machine-created State object; this will always return false.");var q=null===(fe=this.machine)||void 0===fe?void 0:fe.getTransitionData(this,z);return!!q?.transitions.length&&q.transitions.some(function(ne){return void 0!==ne.target||ne.actions.length})},X}(),y.bindActionToState=function H(X,z){var fe=X.exec;return T.__assign(T.__assign({},X),{exec:void 0!==fe?function(){return fe(z.context,z.event,{action:X,state:z,_event:z._event})}:void 0})},y.isState=Q,y.isStateConfig=G,y.stateValuesEqual=function P(X,z){if(X===z)return!0;if(void 0===X||void 0===z)return!1;if(E.isString(X)||E.isString(z))return X===z;var fe=Object.keys(X),q=Object.keys(z);return fe.length===q.length&&fe.every(function(ne){return P(X[ne],z[ne])})}},3224:(m,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var T=b(5831),C=b(8208),E=b(8),D=b(6254),k=b(4598),R=b(4848),P=b(6700),G=b(2611),Q=b(7484),H=b(7600),Z="",z="*",fe={},q=function(W){return"#"===W[0]};y.StateNode=function(){function W(J,n,K,se){void 0===K&&(K="context"in J?J.context:void 0);var Fe,De=this;this.config=J,this._context=K,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.tags=[],this.options=Object.assign({actions:{},guards:{},services:{},activities:{},delays:{}},n),this.parent=se?.parent,this.key=this.config.key||se?.key||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:P.STATE_DELIMITER),this.id=this.config.id||T.__spreadArray([this.machine.key],T.__read(this.path),!1).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:null!==(Fe=this.config.schema)&&void 0!==Fe?Fe:{},this.description=this.config.description,R.IS_PRODUCTION||C.warn(!("parallel"in this.config),'The "parallel" property is deprecated and will be removed in version 4.1. '.concat(this.config.parallel?"Replace with `type: 'parallel'`":"Use `type: '".concat(this.type,"'`")," in the config for state node '").concat(this.id,"' instead.")),this.initial=this.config.initial,this.states=this.config.states?C.mapValues(this.config.states,function(be,Ve){var Ie,Se=new W(be,{},void 0,{parent:De,key:Ve});return Object.assign(De.idMap,T.__assign(((Ie={})[Se.id]=Se,Ie),Se.idMap)),Se}):fe;var _e=0;(function ke(be){var Ve,Ie;be.order=_e++;try{for(var Se=T.__values(G.getAllChildren(be)),de=Se.next();!de.done;de=Se.next())ke(de.value)}catch(xe){Ve={error:xe}}finally{try{de&&!de.done&&(Ie=Se.return)&&Ie.call(Se)}finally{if(Ve)throw Ve.error}}})(this),this.history=!0===this.config.history?"shallow":this.config.history||!1,this._transient=!!this.config.always||!!this.config.on&&(Array.isArray(this.config.on)?this.config.on.some(function(be){return be.event===Z}):Z in this.config.on),this.strict=!!this.config.strict,this.onEntry=C.toArray(this.config.entry||this.config.onEntry).map(function(be){return k.toActionObject(be)}),this.onExit=C.toArray(this.config.exit||this.config.onExit).map(function(be){return k.toActionObject(be)}),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=C.toArray(this.config.invoke).map(function(be,Ve){var Ie,Se;if(C.isMachine(be)){var de=C.createInvokeId(De.id,Ve);return De.machine.options.services=T.__assign(((Ie={})[de]=be,Ie),De.machine.options.services),H.toInvokeDefinition({src:de,id:de})}if(C.isString(be.src))return de=be.id||C.createInvokeId(De.id,Ve),H.toInvokeDefinition(T.__assign(T.__assign({},be),{id:de,src:be.src}));if(C.isMachine(be.src)||C.isFunction(be.src))return de=be.id||C.createInvokeId(De.id,Ve),De.machine.options.services=T.__assign(((Se={})[de]=be.src,Se),De.machine.options.services),H.toInvokeDefinition(T.__assign(T.__assign({id:de},be),{src:de}));var le=be.src;return H.toInvokeDefinition(T.__assign(T.__assign({id:C.createInvokeId(De.id,Ve)},be),{src:le}))}),this.activities=C.toArray(this.config.activities).concat(this.invoke).map(function(be){return k.toActivityDefinition(be)}),this.transition=this.transition.bind(this),this.tags=C.toArray(this.config.tags)}return W.prototype._init=function(){this.__cache.transitions||G.getAllStateNodes(this).forEach(function(J){return J.on})},W.prototype.withConfig=function(J,n){var K=this.options,De=K.activities,Fe=K.guards,_e=K.services,ke=K.delays;return new W(this.config,{actions:T.__assign(T.__assign({},K.actions),J.actions),activities:T.__assign(T.__assign({},De),J.activities),guards:T.__assign(T.__assign({},Fe),J.guards),services:T.__assign(T.__assign({},_e),J.services),delays:T.__assign(T.__assign({},ke),J.delays)},n??this.context)},W.prototype.withContext=function(J){return new W(this.config,this.options,J)},Object.defineProperty(W.prototype,"context",{get:function(){return C.isFunction(this._context)?this._context():this._context},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:C.mapValues(this.states,function(J){return J.definition}),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke,description:this.description,tags:this.tags}},enumerable:!1,configurable:!0}),W.prototype.toJSON=function(){return this.definition},Object.defineProperty(W.prototype,"on",{get:function(){return this.__cache.on?this.__cache.on:this.__cache.on=this.transitions.reduce(function(n,K){return n[K.eventType]=n[K.eventType]||[],n[K.eventType].push(K),n},{})},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),W.prototype.getCandidates=function(J){if(this.__cache.candidates[J])return this.__cache.candidates[J];var n=J===Z,K=this.transitions.filter(function(se){var De=se.eventType===J;return n?De:De||se.eventType===z});return this.__cache.candidates[J]=K,K},W.prototype.getDelayedTransitions=function(){var J=this,n=this.config.after;if(!n)return[];var K=function(De,Fe){var _e=C.isFunction(De)?"".concat(J.id,":delay[").concat(Fe,"]"):De,ke=k.after(_e,J.id);return J.onEntry.push(k.send(ke,{delay:De})),J.onExit.push(k.cancel(ke)),ke};return(C.isArray(n)?n.map(function(De,Fe){var _e=K(De.delay,Fe);return T.__assign(T.__assign({},De),{event:_e})}):C.flatten(Object.keys(n).map(function(De,Fe){var _e=n[De],ke=C.isString(_e)?{target:_e}:_e,be=isNaN(+De)?De:+De,Ve=K(be,Fe);return C.toArray(ke).map(function(Ie){return T.__assign(T.__assign({},Ie),{event:Ve,delay:be})})}))).map(function(De){var Fe=De.delay;return T.__assign(T.__assign({},J.formatTransition(De)),{delay:Fe})})},W.prototype.getStateNodes=function(J){var n,K=this;if(!J)return[];var se=J instanceof E.State?J.value:C.toStateValue(J,this.delimiter);if(C.isString(se)){var De=this.getStateNode(se).initial;return void 0!==De?this.getStateNodes(((n={})[se]=De,n)):[this,this.states[se]]}var Fe=Object.keys(se),_e=[this];return _e.push.apply(_e,T.__spreadArray([],T.__read(C.flatten(Fe.map(function(ke){return K.getStateNode(ke).getStateNodes(se[ke])}))),!1)),_e},W.prototype.handles=function(J){var n=C.getEventType(J);return this.events.includes(n)},W.prototype.resolveState=function(J){var n=J instanceof E.State?J:E.State.create(J),K=Array.from(G.getConfiguration([],this.getStateNodes(n.value)));return new E.State(T.__assign(T.__assign({},n),{value:this.resolve(n.value),configuration:K,done:G.isInFinalState(K,this),tags:G.getTagsFromConfiguration(K),machine:this.machine}))},W.prototype.transitionLeafNode=function(J,n,K){var De=this.getStateNode(J).next(n,K);return De&&De.transitions.length?De:this.next(n,K)},W.prototype.transitionCompoundNode=function(J,n,K){var se=Object.keys(J),Fe=this.getStateNode(se[0])._transition(J[se[0]],n,K);return Fe&&Fe.transitions.length?Fe:this.next(n,K)},W.prototype.transitionParallelNode=function(J,n,K){var se,De,Fe={};try{for(var _e=T.__values(Object.keys(J)),ke=_e.next();!ke.done;ke=_e.next()){var be=ke.value,Ve=J[be];if(Ve){var Se=this.getStateNode(be)._transition(Ve,n,K);Se&&(Fe[be]=Se)}}}catch(st){se={error:st}}finally{try{ke&&!ke.done&&(De=_e.return)&&De.call(_e)}finally{if(se)throw se.error}}var de=Object.keys(Fe).map(function(st){return Fe[st]}),le=C.flatten(de.map(function(st){return st.transitions}));if(!de.some(function(st){return st.transitions.length>0}))return this.next(n,K);var We=C.flatten(Object.keys(Fe).map(function(st){return Fe[st].configuration}));return{transitions:le,exitSet:C.flatten(de.map(function(st){return st.exitSet})),configuration:We,source:n,actions:C.flatten(Object.keys(Fe).map(function(st){return Fe[st].actions}))}},W.prototype._transition=function(J,n,K){return C.isString(J)?this.transitionLeafNode(J,n,K):1===Object.keys(J).length?this.transitionCompoundNode(J,n,K):this.transitionParallelNode(J,n,K)},W.prototype.getTransitionData=function(J,n){return this._transition(J.value,J,C.toSCXMLEvent(n))},W.prototype.next=function(J,n){var K,se,be,De=this,Fe=n.name,_e=[],ke=[];try{for(var Ve=T.__values(this.getCandidates(Fe)),Ie=Ve.next();!Ie.done;Ie=Ve.next()){var Se=Ie.value,de=Se.cond,le=Se.in,xe=J.context,We=!le||(C.isString(le)&&q(le)?J.matches(C.toStateValue(this.getStateNodeById(le).path,this.delimiter)):C.matchesState(C.toStateValue(le,this.delimiter),C.path(this.path.slice(0,-2))(J.value))),st=!1;try{st=!de||C.evaluateGuard(this.machine,de,xe,n,J)}catch(ye){throw new Error("Unable to evaluate guard '".concat(de.name||de.type,"' in transition for event '").concat(Fe,"' in state node '").concat(this.id,"':\n").concat(ye.message))}if(st&&We){void 0!==Se.target&&(ke=Se.target),_e.push.apply(_e,T.__spreadArray([],T.__read(Se.actions),!1)),be=Se;break}}}catch(ye){K={error:ye}}finally{try{Ie&&!Ie.done&&(se=Ve.return)&&se.call(Ve)}finally{if(K)throw K.error}}if(be){if(!ke.length)return{transitions:[be],exitSet:[],configuration:J.value?[this]:[],source:J,actions:_e};var ut=C.flatten(ke.map(function(ye){return De.getRelativeStateNodes(ye,J.historyValue)}));return{transitions:[be],exitSet:be.internal?[]:C.flatten(ke.map(function(ye){return De.getPotentiallyReenteringNodes(ye)})),configuration:ut,source:J,actions:_e}}},W.prototype.getPotentiallyReenteringNodes=function(J){if(this.order<J.order)return[this];for(var n=[],K=this,se=J;K&&K!==se;)n.push(K),K=K.parent;return K!==se?[]:(n.push(se),n)},W.prototype.getActions=function(J,n,K,se,De,Fe,_e){var ke,be,Ve,Ie,Se=this,de=Fe?G.getConfiguration([],this.getStateNodes(Fe.value)):[],le=new Set;try{for(var xe=T.__values(Array.from(J).sort(function(ze,Ge){return ze.order-Ge.order})),We=xe.next();!We.done;We=xe.next())(!G.has(de,st=We.value)||G.has(K.exitSet,st)||st.parent&&le.has(st.parent))&&le.add(st)}catch(ze){ke={error:ze}}finally{try{We&&!We.done&&(be=xe.return)&&be.call(xe)}finally{if(ke)throw ke.error}}try{for(var ut=T.__values(de),Ae=ut.next();!Ae.done;Ae=ut.next()){var st;(!G.has(J,st=Ae.value)||G.has(K.exitSet,st.parent))&&K.exitSet.push(st)}}catch(ze){Ve={error:ze}}finally{try{Ae&&!Ae.done&&(Ie=ut.return)&&Ie.call(ut)}finally{if(Ve)throw Ve.error}}K.exitSet.sort(function(ze,Ge){return Ge.order-ze.order});var ye=Array.from(le).sort(function(ze,Ge){return ze.order-Ge.order}),Re=new Set(K.exitSet),Qe=C.flatten(ye.map(function(ze){var Ge=[];if("final"!==ze.type)return Ge;var dt=ze.parent;if(!dt.parent)return Ge;Ge.push(k.done(ze.id,ze.doneData),k.done(dt.id,ze.doneData?C.mapContext(ze.doneData,se,De):void 0));var Dn=dt.parent;return"parallel"===Dn.type&&G.getChildren(Dn).every(function(wt){return G.isInFinalState(K.configuration,wt)})&&Ge.push(k.done(Dn.id)),Ge})),vt=ye.map(function(ze){var Ge=ze.onEntry,dt=ze.activities.map(function(Dn){return k.start(Dn)});return{type:"entry",actions:k.toActionObjects(_e?T.__spreadArray(T.__spreadArray([],T.__read(Ge),!1),T.__read(dt),!1):T.__spreadArray(T.__spreadArray([],T.__read(dt),!1),T.__read(Ge),!1),Se.machine.options.actions)}}).concat({type:"state_done",actions:Qe.map(function(ze){return k.raise(ze)})}),Dt=Array.from(Re).map(function(ze){return{type:"exit",actions:k.toActionObjects(T.__spreadArray(T.__spreadArray([],T.__read(ze.onExit),!1),T.__read(ze.activities.map(function(Ge){return k.stop(Ge)})),!1),Se.machine.options.actions)}}).concat({type:"transition",actions:k.toActionObjects(K.actions,this.machine.options.actions)}).concat(vt);if(n){var qe=k.toActionObjects(C.flatten(T.__spreadArray([],T.__read(J),!1).sort(function(ze,Ge){return Ge.order-ze.order}).map(function(ze){return ze.onExit})),this.machine.options.actions).filter(function(ze){return!C.isRaisableAction(ze)});return Dt.concat({type:"stop",actions:qe})}return Dt},W.prototype.transition=function(J,n,K,se){void 0===J&&(J=this.initialState);var Fe,De=C.toSCXMLEvent(n);if(J instanceof E.State)Fe=void 0===K?J:this.resolveState(E.State.from(J,K));else{var _e=C.isString(J)?this.resolve(C.pathToStateValue(this.getResolvedPath(J))):this.resolve(J);Fe=this.resolveState(E.State.from(_e,K??this.machine.context))}if(!R.IS_PRODUCTION&&De.name===z)throw new Error("An event cannot have the wildcard type ('".concat(z,"')"));if(this.strict&&!this.events.includes(De.name)&&!C.isBuiltInEvent(De.name))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(De.name,"'"));var be=this._transition(Fe.value,Fe,De)||{transitions:[],configuration:[],exitSet:[],source:Fe,actions:[]},Ve=G.getConfiguration([],this.getStateNodes(Fe.value)),Ie=be.configuration.length?G.getConfiguration(Ve,be.configuration):Ve;return be.configuration=T.__spreadArray([],T.__read(Ie),!1),this.resolveTransition(be,Fe,Fe.context,se,De)},W.prototype.resolveRaisedTransition=function(J,n,K,se){var De,Fe=J.actions;return(J=this.transition(J,n,void 0,se))._event=K,J.event=K.data,(De=J.actions).unshift.apply(De,T.__spreadArray([],T.__read(Fe),!1)),J},W.prototype.resolveTransition=function(J,n,K,se,De){var Fe,_e,ke,be,Ve=this;void 0===De&&(De=k.initEvent);var Ie=J.configuration,Se=!n||J.transitions.length>0,de=Se?J.configuration:n?n.configuration:[],le=G.isInFinalState(de,this),xe=Se?G.getValue(this.machine,Ie):void 0,We=n?n.historyValue?n.historyValue:J.source?this.machine.historyValue(n.value):void 0:void 0,st=this.getActions(new Set(de),le,J,K,De,n,se),ut=n?T.__assign({},n.activities):{};try{for(var Ae=T.__values(st),ye=Ae.next();!ye.done;ye=Ae.next()){var Re=ye.value;try{for(var Qe=(ke=void 0,T.__values(Re.actions)),vt=Qe.next();!vt.done;vt=Qe.next()){var Nt=vt.value;Nt.type===D.start?ut[Nt.activity.id||Nt.activity.type]=Nt:Nt.type===D.stop&&(ut[Nt.activity.id||Nt.activity.type]=!1)}}catch($n){ke={error:$n}}finally{try{vt&&!vt.done&&(be=Qe.return)&&be.call(Qe)}finally{if(ke)throw ke.error}}}}catch($n){Fe={error:$n}}finally{try{ye&&!ye.done&&(_e=Ae.return)&&_e.call(Ae)}finally{if(Fe)throw Fe.error}}var Dt=T.__read(k.resolveActions(this,n,K,De,st,se,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),qe=Dt[0],ze=Dt[1],Ge=T.__read(C.partition(qe,C.isRaisableAction),2),dt=Ge[0],Dn=Ge[1],Hn=qe.filter(function($n){var Ii;return $n.type===D.start&&(null===(Ii=$n.activity)||void 0===Ii?void 0:Ii.type)===D.invoke}).reduce(function($n,Ii){return $n[Ii.activity.id]=Q.createInvocableActor(Ii.activity,Ve.machine,ze,De),$n},n?T.__assign({},n.children):{}),Gt=new E.State({value:xe||n.value,context:ze,_event:De,_sessionid:n?n._sessionid:null,historyValue:xe?We?C.updateHistoryValue(We,xe):void 0:n?n.historyValue:void 0,history:!xe||J.source?n:void 0,actions:xe?Dn:[],activities:xe?ut:n?n.activities:{},events:[],configuration:de,transitions:J.transitions,children:Hn,done:le,tags:G.getTagsFromConfiguration(de),machine:this}),An=K!==ze;Gt.changed=De.name===D.update||An;var Kt=Gt.history;Kt&&delete Kt.history;var Ot=!le&&(this._transient||Ie.some(function($n){return $n._transient}));if(!(Se||Ot&&De.name!==Z))return Gt;var Vt=Gt;if(!le)for(Ot&&(Vt=this.resolveRaisedTransition(Vt,{type:D.nullEvent},De,se));dt.length;){var Fn=dt.shift();Vt=this.resolveRaisedTransition(Vt,Fn._event,De,se)}var kn=Vt.changed||(Kt?!!Vt.actions.length||An||typeof Kt.value!=typeof Vt.value||!E.stateValuesEqual(Vt.value,Kt.value):void 0);return Vt.changed=kn,Vt.history=Kt,Vt},W.prototype.getStateNode=function(J){if(q(J))return this.machine.getStateNodeById(J);if(!this.states)throw new Error("Unable to retrieve child state '".concat(J,"' from '").concat(this.id,"'; no child states exist."));var n=this.states[J];if(!n)throw new Error("Child state '".concat(J,"' does not exist on '").concat(this.id,"'"));return n},W.prototype.getStateNodeById=function(J){var n=q(J)?J.slice(1):J;if(n===this.id)return this;var K=this.machine.idMap[n];if(!K)throw new Error("Child state node '#".concat(n,"' does not exist on machine '").concat(this.id,"'"));return K},W.prototype.getStateNodeByPath=function(J){if("string"==typeof J&&q(J))try{return this.getStateNodeById(J.slice(1))}catch{}for(var n=C.toStatePath(J,this.delimiter).slice(),K=this;n.length;){var se=n.shift();if(!se.length)break;K=K.getStateNode(se)}return K},W.prototype.resolve=function(J){var n,K=this;if(!J)return this.initialStateValue||fe;switch(this.type){case"parallel":return C.mapValues(this.initialStateValue,function(De,Fe){return De?K.getStateNode(Fe).resolve(J[Fe]||De):fe});case"compound":if(C.isString(J)){var se=this.getStateNode(J);return"parallel"===se.type||"compound"===se.type?((n={})[J]=se.initialStateValue,n):J}return Object.keys(J).length?C.mapValues(J,function(De,Fe){return De?K.getStateNode(Fe).resolve(De):fe}):this.initialStateValue||{};default:return J||fe}},W.prototype.getResolvedPath=function(J){if(q(J)){var n=this.machine.idMap[J.slice(1)];if(!n)throw new Error("Unable to find state node '".concat(J,"'"));return n.path}return C.toStatePath(J,this.delimiter)},Object.defineProperty(W.prototype,"initialStateValue",{get:function(){var J,n;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;if("parallel"===this.type)n=C.mapFilterValues(this.states,function(K){return K.initialStateValue||fe},function(K){return"history"!==K.type});else if(void 0!==this.initial){if(!this.states[this.initial])throw new Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));n=G.isLeafNode(this.states[this.initial])?this.initial:((J={})[this.initial]=this.states[this.initial].initialStateValue,J)}else n={};return this.__cache.initialStateValue=n,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),W.prototype.getInitialState=function(J,n){this._init();var K=this.getStateNodes(J);return this.resolveTransition({configuration:K,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,n??this.machine.context,void 0)},Object.defineProperty(W.prototype,"initialState",{get:function(){var J=this.initialStateValue;if(!J)throw new Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(J)},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"target",{get:function(){var J;if("history"===this.type){var n=this.config;J=C.isString(n.target)&&q(n.target)?C.pathToStateValue(this.machine.getStateNodeById(n.target).path.slice(this.path.length-1)):n.target}return J},enumerable:!1,configurable:!0}),W.prototype.getRelativeStateNodes=function(J,n,K){return void 0===K&&(K=!0),K?"history"===J.type?J.resolveHistory(n):J.initialStateNodes:[J]},Object.defineProperty(W.prototype,"initialStateNodes",{get:function(){var J=this;if(G.isLeafNode(this))return[this];if("compound"===this.type&&!this.initial)return R.IS_PRODUCTION||C.warn(!1,"Compound state node '".concat(this.id,"' has no initial state.")),[this];var n=C.toStatePaths(this.initialStateValue);return C.flatten(n.map(function(K){return J.getFromRelativePath(K)}))},enumerable:!1,configurable:!0}),W.prototype.getFromRelativePath=function(J){if(!J.length)return[this];var n=T.__read(J),K=n[0],se=n.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '".concat(K,"' from node with no states"));var De=this.getStateNode(K);if("history"===De.type)return De.resolveHistory();if(!this.states[K])throw new Error("Child state '".concat(K,"' does not exist on '").concat(this.id,"'"));return this.states[K].getFromRelativePath(se)},W.prototype.historyValue=function(J){if(Object.keys(this.states).length)return{current:J||this.initialStateValue,states:C.mapFilterValues(this.states,function(n,K){if(!J)return n.historyValue();var se=C.isString(J)?void 0:J[K];return n.historyValue(se||n.initialStateValue)},function(n){return!n.history})}},W.prototype.resolveHistory=function(J){var n=this;if("history"!==this.type)return[this];var K=this.parent;if(!J){var se=this.target;return se?C.flatten(C.toStatePaths(se).map(function(Fe){return K.getFromRelativePath(Fe)})):K.initialStateNodes}var De=C.nestedPath(K.path,"states")(J).current;return C.isString(De)?[K.getStateNode(De)]:C.flatten(C.toStatePaths(De).map(function(Fe){return"deep"===n.history?K.getFromRelativePath(Fe):[K.states[Fe[0]]]}))},Object.defineProperty(W.prototype,"stateIds",{get:function(){var J=this,n=C.flatten(Object.keys(this.states).map(function(K){return J.states[K].stateIds}));return[this.id].concat(n)},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"events",{get:function(){var J,n,K,se;if(this.__cache.events)return this.__cache.events;var De=this.states,Fe=new Set(this.ownEvents);if(De)try{for(var _e=T.__values(Object.keys(De)),ke=_e.next();!ke.done;ke=_e.next()){var Ve=De[ke.value];if(Ve.states)try{for(var Ie=(K=void 0,T.__values(Ve.events)),Se=Ie.next();!Se.done;Se=Ie.next())Fe.add("".concat(Se.value))}catch(le){K={error:le}}finally{try{Se&&!Se.done&&(se=Ie.return)&&se.call(Ie)}finally{if(K)throw K.error}}}}catch(le){J={error:le}}finally{try{ke&&!ke.done&&(n=_e.return)&&n.call(_e)}finally{if(J)throw J.error}}return this.__cache.events=Array.from(Fe)},enumerable:!1,configurable:!0}),Object.defineProperty(W.prototype,"ownEvents",{get:function(){var J=new Set(this.transitions.filter(function(n){return!(!n.target&&!n.actions.length&&n.internal)}).map(function(n){return n.eventType}));return Array.from(J)},enumerable:!1,configurable:!0}),W.prototype.resolveTarget=function(J){var n=this;if(void 0!==J)return J.map(function(K){if(!C.isString(K))return K;var se=K[0]===n.delimiter;if(se&&!n.parent)return n.getStateNodeByPath(K.slice(1));var De=se?n.key+K:K;if(!n.parent)return n.getStateNodeByPath(De);try{return n.parent.getStateNodeByPath(De)}catch(_e){throw new Error("Invalid transition definition for state node '".concat(n.id,"':\n").concat(_e.message))}})},W.prototype.formatTransition=function(J){var n=this,K=C.normalizeTarget(J.target),se="internal"in J?J.internal:!K||K.some(function(ke){return C.isString(ke)&&ke[0]===n.delimiter}),De=this.machine.options.guards,Fe=this.resolveTarget(K),_e=T.__assign(T.__assign({},J),{actions:k.toActionObjects(C.toArray(J.actions)),cond:C.toGuard(J.cond,De),target:Fe,source:this,internal:se,eventType:J.event,toJSON:function(){return T.__assign(T.__assign({},_e),{target:_e.target?_e.target.map(function(ke){return"#".concat(ke.id)}):void 0,source:"#".concat(n.id)})}});return _e},W.prototype.formatTransitions=function(){var J,n,se,K=this;if(this.config.on)if(Array.isArray(this.config.on))se=this.config.on;else{var De=this.config.on,_e=De[z],ke=void 0===_e?[]:_e,be=T.__rest(De,["*"]);se=C.flatten(Object.keys(be).map(function(ut){!R.IS_PRODUCTION&&ut===Z&&C.warn(!1,"Empty string transition configs (e.g., `{ on: { '': ... }}`) for transient transitions are deprecated. Specify the transition in the `{ always: ... }` property instead. "+'Please check the `on` configuration for "#'.concat(K.id,'".'));var Ae=C.toTransitionConfigArray(ut,be[ut]);return R.IS_PRODUCTION||function(W,J,n){var K=n.slice(0,-1).some(function(De){return!("cond"in De)&&!("in"in De)&&(C.isString(De.target)||C.isMachine(De.target))}),se=J===Z?"the transient event":"event '".concat(J,"'");C.warn(!K,"One or more transitions for ".concat(se," on state '").concat(W.id,"' are unreachable. ")+"Make sure that the default transition is the last one defined.")}(K,ut,Ae),Ae}).concat(C.toTransitionConfigArray(z,ke)))}else se=[];var Ve=this.config.always?C.toTransitionConfigArray("",this.config.always):[],Ie=this.config.onDone?C.toTransitionConfigArray(String(k.done(this.id)),this.config.onDone):[];R.IS_PRODUCTION||C.warn(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'));var Se=C.flatten(this.invoke.map(function(ut){var Ae=[];return ut.onDone&&Ae.push.apply(Ae,T.__spreadArray([],T.__read(C.toTransitionConfigArray(String(k.doneInvoke(ut.id)),ut.onDone)),!1)),ut.onError&&Ae.push.apply(Ae,T.__spreadArray([],T.__read(C.toTransitionConfigArray(String(k.error(ut.id)),ut.onError)),!1)),Ae})),de=this.after,le=C.flatten(T.__spreadArray(T.__spreadArray(T.__spreadArray(T.__spreadArray([],T.__read(Ie),!1),T.__read(Se),!1),T.__read(se),!1),T.__read(Ve),!1).map(function(ut){return C.toArray(ut).map(function(Ae){return K.formatTransition(Ae)})}));try{for(var xe=T.__values(de),We=xe.next();!We.done;We=xe.next())le.push(We.value)}catch(ut){J={error:ut}}finally{try{We&&!We.done&&(n=xe.return)&&n.call(xe)}finally{if(J)throw J.error}}return le},W}()},5831:(m,y)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.__assign=function(){return y.__assign=Object.assign||function(k){for(var R,P=1,G=arguments.length;P<G;P++)for(var Q in R=arguments[P])Object.prototype.hasOwnProperty.call(R,Q)&&(k[Q]=R[Q]);return k},y.__assign.apply(this,arguments)},y.__read=function C(D,k){var R="function"==typeof Symbol&&D[Symbol.iterator];if(!R)return D;var G,H,P=R.call(D),Q=[];try{for(;(void 0===k||k-- >0)&&!(G=P.next()).done;)Q.push(G.value)}catch(Z){H={error:Z}}finally{try{G&&!G.done&&(R=P.return)&&R.call(P)}finally{if(H)throw H.error}}return Q},y.__rest=function b(D,k){var R={};for(var P in D)Object.prototype.hasOwnProperty.call(D,P)&&k.indexOf(P)<0&&(R[P]=D[P]);if(null!=D&&"function"==typeof Object.getOwnPropertySymbols){var G=0;for(P=Object.getOwnPropertySymbols(D);G<P.length;G++)k.indexOf(P[G])<0&&Object.prototype.propertyIsEnumerable.call(D,P[G])&&(R[P[G]]=D[P[G]])}return R},y.__spreadArray=function E(D,k,R){if(R||2===arguments.length)for(var Q,P=0,G=k.length;P<G;P++)(Q||!(P in k))&&(Q||(Q=Array.prototype.slice.call(k,0,P)),Q[P]=k[P]);return D.concat(Q||Array.prototype.slice.call(k))},y.__values=function T(D){var k="function"==typeof Symbol&&Symbol.iterator,R=k&&D[k],P=0;if(R)return R.call(D);if(D&&"number"==typeof D.length)return{next:function(){return D&&P>=D.length&&(D=void 0),{value:D&&D[P++],done:!D}}};throw new TypeError(k?"Object is not iterable.":"Symbol.iterator is not defined.")}},6254:(m,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var T=b(7708),C=T.ActionTypes.Start,E=T.ActionTypes.Stop,D=T.ActionTypes.Raise,k=T.ActionTypes.Send,R=T.ActionTypes.Cancel,P=T.ActionTypes.NullEvent,G=T.ActionTypes.Assign,H=T.ActionTypes.DoneState,Z=T.ActionTypes.Log,X=T.ActionTypes.Init,z=T.ActionTypes.Invoke,fe=T.ActionTypes.ErrorExecution,q=T.ActionTypes.ErrorPlatform,ne=T.ActionTypes.ErrorCustom,N=T.ActionTypes.Update,Y=T.ActionTypes.Choose,W=T.ActionTypes.Pure;y.after=T.ActionTypes.After,y.assign=G,y.cancel=R,y.choose=Y,y.doneState=H,y.error=ne,y.errorExecution=fe,y.errorPlatform=q,y.init=X,y.invoke=z,y.log=Z,y.nullEvent=P,y.pure=W,y.raise=D,y.send=k,y.start=C,y.stop=E,y.update=N},4598:(m,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var T=b(5831),C=b(7708),E=b(6254),D=b(8208),k=b(4848),R=D.toSCXMLEvent({type:E.init});function P(Ae,ye){return ye&&ye[Ae]||void 0}function G(Ae,ye){var Re;if(D.isString(Ae)||"number"==typeof Ae){var Qe=P(Ae,ye);Re=D.isFunction(Qe)?{type:Ae,exec:Qe}:Qe||{type:Ae,exec:void 0}}else if(D.isFunction(Ae))Re={type:Ae.name||Ae.toString(),exec:Ae};else if(Qe=P(Ae.type,ye),D.isFunction(Qe))Re=T.__assign(T.__assign({},Ae),{exec:Qe});else if(Qe){var vt=Qe.type||Ae.type;Re=T.__assign(T.__assign(T.__assign({},Qe),Ae),{type:vt})}else Re=Ae;return Re}var Q=function(Ae,ye){return Ae?(D.isArray(Ae)?Ae:[Ae]).map(function(Qe){return G(Qe,ye)}):[]};function H(Ae){var ye=G(Ae);return T.__assign(T.__assign({id:D.isString(Ae)?Ae:ye.id},ye),{type:ye.type})}function X(Ae,ye,Re,Qe){var Dt,vt={_event:Re},Nt=D.toSCXMLEvent(D.isFunction(Ae.event)?Ae.event(ye,Re.data,vt):Ae.event);if(D.isString(Ae.delay)){var qe=Qe&&Qe[Ae.delay];Dt=D.isFunction(qe)?qe(ye,Re.data,vt):qe}else Dt=D.isFunction(Ae.delay)?Ae.delay(ye,Re.data,vt):Ae.delay;return T.__assign(T.__assign({},Ae),{type:E.raise,_event:Nt,delay:Dt})}function z(Ae,ye){return{to:ye?ye.to:void 0,type:E.send,event:D.isFunction(Ae)?Ae:D.toEventObject(Ae),delay:ye?ye.delay:void 0,id:ye&&void 0!==ye.id?ye.id:D.isFunction(Ae)?Ae.name:D.getEventType(Ae)}}function fe(Ae,ye,Re,Qe){var Dt,vt={_event:Re},Nt=D.toSCXMLEvent(D.isFunction(Ae.event)?Ae.event(ye,Re.data,vt):Ae.event);if(D.isString(Ae.delay)){var qe=Qe&&Qe[Ae.delay];Dt=D.isFunction(qe)?qe(ye,Re.data,vt):qe}else Dt=D.isFunction(Ae.delay)?Ae.delay(ye,Re.data,vt):Ae.delay;var ze=D.isFunction(Ae.to)?Ae.to(ye,Re.data,vt):Ae.to;return T.__assign(T.__assign({},Ae),{to:ze,_event:Nt,event:Nt.data,delay:Dt})}function q(Ae,ye){return z(Ae,T.__assign(T.__assign({},ye),{to:C.SpecialTargets.Parent}))}var W=function(Ae,ye){return{context:Ae,event:ye}},n=function(Ae,ye,Re){return T.__assign(T.__assign({},Ae),{value:D.isString(Ae.expr)?Ae.expr:Ae.expr(ye,Re.data,{_event:Re})})};function Fe(Ae,ye,Re){var Qe=D.isFunction(Ae.activity)?Ae.activity(ye,Re.data):Ae.activity;return{type:C.ActionTypes.Stop,activity:"string"==typeof Qe?{id:Qe}:Qe}}y.actionTypes=E,y.after=function be(Ae,ye){var Re=ye?"#".concat(ye):"";return"".concat(C.ActionTypes.After,"(").concat(Ae,")").concat(Re)},y.assign=function(Ae){return{type:E.assign,assignment:Ae}},y.cancel=function(Ae){return{type:E.cancel,sendId:Ae}},y.choose=function We(Ae){return{type:C.ActionTypes.Choose,conds:Ae}},y.done=function Ve(Ae,ye){var Re="".concat(C.ActionTypes.DoneState,".").concat(Ae);return{type:Re,data:ye,toString:function(){return Re}}},y.doneInvoke=function Ie(Ae,ye){var Re="".concat(C.ActionTypes.DoneInvoke,".").concat(Ae);return{type:Re,data:ye,toString:function(){return Re}}},y.error=function Se(Ae,ye){var Re="".concat(C.ActionTypes.ErrorPlatform,".").concat(Ae);return{type:Re,data:ye,toString:function(){return Re}}},y.escalate=function xe(Ae,ye){return q(function(Re,Qe,vt){return{type:E.error,data:D.isFunction(Ae)?Ae(Re,Qe,vt):Ae}},T.__assign(T.__assign({},ye),{to:C.SpecialTargets.Parent}))},y.forwardTo=function le(Ae,ye){if(!(k.IS_PRODUCTION||Ae&&"function"!=typeof Ae)){var Re=Ae;Ae=function(){for(var Qe=[],vt=0;vt<arguments.length;vt++)Qe[vt]=arguments[vt];var Nt="function"==typeof Re?Re.apply(void 0,T.__spreadArray([],T.__read(Qe),!1)):Re;if(!Nt)throw new Error("Attempted to forward event to undefined actor. This risks an infinite loop in the sender.");return Nt}}return z(function(Qe,vt){return vt},T.__assign(T.__assign({},ye),{to:Ae}))},y.getActionFunction=P,y.initEvent=R,y.isActionObject=function ke(Ae){return"object"==typeof Ae&&"type"in Ae},y.log=function J(Ae,ye){return void 0===Ae&&(Ae=W),{type:E.log,label:ye,expr:Ae}},y.pure=function de(Ae){return{type:C.ActionTypes.Pure,get:Ae}},y.raise=function Z(Ae,ye){return{type:E.raise,event:"function"==typeof Ae?Ae:D.toEventObject(Ae),delay:ye?ye.delay:void 0,id:ye?.id}},y.resolveActions=function ut(Ae,ye,Re,Qe,vt,Nt,Dt){void 0===Dt&&(Dt=!1);var qe=Dt?[]:function(Ae){var ye,Re,Qe=[];try{for(var vt=T.__values(Ae),Nt=vt.next();!Nt.done;Nt=vt.next())for(var Dt=Nt.value,qe=0;qe<Dt.actions.length;)Dt.actions[qe].type!==E.assign?qe++:(Qe.push(Dt.actions[qe]),Dt.actions.splice(qe,1))}catch(ze){ye={error:ze}}finally{try{Nt&&!Nt.done&&(Re=vt.return)&&Re.call(vt)}finally{if(ye)throw ye.error}}return Qe}(vt),ze=qe.length?D.updateContext(Re,Qe,qe,ye):Re,Ge=Dt?[Re]:void 0,dt=[];function Dn(Gt,An){var Kt;switch(An.type){case E.raise:var Ot=X(An,ze,Qe,Ae.options.delays);return Nt&&"number"==typeof Ot.delay&&Nt(Ot,ze,Qe),Ot;case E.send:var Vt=fe(An,ze,Qe,Ae.options.delays);if(!k.IS_PRODUCTION){var Fn=An.delay;D.warn(!D.isString(Fn)||"number"==typeof Vt.delay,"No delay reference for delay expression '".concat(Fn,"' was found on machine '").concat(Ae.id,"'"))}return Nt&&Vt.to!==C.SpecialTargets.Internal&&("entry"===Gt?dt.push(Vt):Nt(Vt,ze,Qe)),Vt;case E.log:var kn=n(An,ze,Qe);return Nt?.(kn,ze,Qe),kn;case E.choose:if(!(Ii=null===(Kt=An.conds.find(function(Qs){var pr=D.toGuard(Qs.cond,Ae.options.guards);return!pr||D.evaluateGuard(Ae,pr,ze,Qe,Nt?void 0:ye)}))||void 0===Kt?void 0:Kt.actions))return[];var Ni=T.__read(ut(Ae,ye,ze,Qe,[{type:Gt,actions:Q(D.toArray(Ii),Ae.options.actions)}],Nt,Dt),2),Ki=Ni[0];return ze=Ni[1],Ge?.push(ze),Ki;case E.pure:var Ii;if(!(Ii=An.get(ze,Qe.data)))return[];var Cr=T.__read(ut(Ae,ye,ze,Qe,[{type:Gt,actions:Q(D.toArray(Ii),Ae.options.actions)}],Nt,Dt),2),wr=Cr[0];return ze=Cr[1],Ge?.push(ze),wr;case E.stop:return kn=Fe(An,ze,Qe),Nt?.(kn,Re,Qe),kn;case E.assign:ze=D.updateContext(ze,Qe,[An],Nt?void 0:ye),Ge?.push(ze);break;default:var rs=G(An,Ae.options.actions),ur=rs.exec;if(Nt)Nt(rs,ze,Qe);else if(ur&&Ge){var Ns=Ge.length-1,to=T.__assign(T.__assign({},rs),{exec:function(Qs){for(var pr=[],Ro=1;Ro<arguments.length;Ro++)pr[Ro-1]=arguments[Ro];ur.apply(void 0,T.__spreadArray([Ge[Ns]],T.__read(pr),!1))}});rs=to}return rs}}return[D.flatten(vt.map(function wt(Gt){var An,Kt,Ot=[];try{for(var Vt=T.__values(Gt.actions),Fn=Vt.next();!Fn.done;Fn=Vt.next()){var $n=Dn(Gt.type,Fn.value);$n&&(Ot=Ot.concat($n))}}catch(Ii){An={error:Ii}}finally{try{Fn&&!Fn.done&&(Kt=Vt.return)&&Kt.call(Vt)}finally{if(An)throw An.error}}return dt.forEach(function(Ii){Nt(Ii,ze,Qe)}),dt.length=0,Ot})),ze]},y.resolveLog=n,y.resolveRaise=X,y.resolveSend=fe,y.resolveStop=Fe,y.respond=function Y(Ae,ye){return z(Ae,T.__assign(T.__assign({},ye),{to:function(Re,Qe,vt){return vt._event.origin}}))},y.send=z,y.sendParent=q,y.sendTo=function ne(Ae,ye,Re){return z(ye,T.__assign(T.__assign({},Re),{to:Ae}))},y.sendUpdate=function N(){return q(E.update)},y.start=function se(Ae){var ye=H(Ae);return{type:C.ActionTypes.Start,activity:ye,exec:void 0}},y.stop=function De(Ae){var ye=D.isFunction(Ae)?Ae:H(Ae);return{type:C.ActionTypes.Stop,activity:ye,exec:void 0}},y.toActionObject=G,y.toActionObjects=Q,y.toActivityDefinition=H},6700:(m,y)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.DEFAULT_GUARD_TYPE="xstate.guard",y.EMPTY_ACTIVITY_MAP={},y.STATE_DELIMITER=".",y.TARGETLESS_KEY=""},4848:(m,y)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.IS_PRODUCTION=!0},7600:(m,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var T=b(5831);b(7708);var C=b(6254);function E(k){return"string"==typeof k?{type:k,toString:function(){return k}}:k}b(8208),b(4848),y.toInvokeDefinition=function D(k){return T.__assign(T.__assign({type:C.invoke},k),{toJSON:function(){var R=T.__rest(k,["onDone","onError"]);return T.__assign(T.__assign({},R),{type:C.invoke,src:E(k.src)})}})},y.toInvokeSource=E},1184:(m,y,b)=>{"use strict";var C=b(5831),E=b(4598),D=b(1924),k=b(8208);y.k=function R(P,G){var Q=G?.events,H=G?.actions;return{initialContext:P,assign:E.assign,events:Q?k.mapValues(Q,function(X,z){return function(){for(var fe=[],q=0;q<arguments.length;q++)fe[q]=arguments[q];return C.__assign(C.__assign({},X.apply(void 0,C.__spreadArray([],C.__read(fe),!1))),{type:z})}}):void 0,actions:H?k.mapValues(H,function(X,z){return function(){for(var fe=[],q=0;q<arguments.length;q++)fe[q]=arguments[q];return C.__assign(C.__assign({},X.apply(void 0,C.__spreadArray([],C.__read(fe),!1))),{type:z})}}):void 0,reset:function(){return E.assign(P)},createMachine:function(X,z){return D.createMachine("context"in X?X:C.__assign(C.__assign({},X),{context:P}),z)}}}},7419:(m,y)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var b=[];y.consume=function(E){return E(b[b.length-1])},y.provide=function(E,D){b.push(E);var k=D(E);return b.pop(),k}},2611:(m,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var T=b(5831),C=b(8208),E=function(ne){return"atomic"===ne.type||"final"===ne.type};function D(ne){return Object.keys(ne.states).map(function(N){return ne.states[N]})}function k(ne){return D(ne).filter(function(N){return"history"!==N.type})}function P(ne,N){var Y,W,J,n,K,se,De,Fe,ke=Q(new Set(ne)),be=new Set(N);try{for(var Ve=T.__values(be),Ie=Ve.next();!Ie.done;Ie=Ve.next())for(var de=(Se=Ie.value).parent;de&&!be.has(de);)be.add(de),de=de.parent}catch(Qe){Y={error:Qe}}finally{try{Ie&&!Ie.done&&(W=Ve.return)&&W.call(Ve)}finally{if(Y)throw Y.error}}var le=Q(be);try{for(var xe=T.__values(be),We=xe.next();!We.done;We=xe.next())if("compound"!==(Se=We.value).type||le.get(Se)&&le.get(Se).length){if("parallel"===Se.type)try{for(var st=(K=void 0,T.__values(k(Se))),ut=st.next();!ut.done;ut=st.next()){var Ae=ut.value;be.has(Ae)||(be.add(Ae),ke.get(Ae)?ke.get(Ae).forEach(function(vt){return be.add(vt)}):Ae.initialStateNodes.forEach(function(vt){return be.add(vt)}))}}catch(vt){K={error:vt}}finally{try{ut&&!ut.done&&(se=st.return)&&se.call(st)}finally{if(K)throw K.error}}}else ke.get(Se)?ke.get(Se).forEach(function(vt){return be.add(vt)}):Se.initialStateNodes.forEach(function(vt){return be.add(vt)})}catch(Qe){J={error:Qe}}finally{try{We&&!We.done&&(n=xe.return)&&n.call(xe)}finally{if(J)throw J.error}}try{for(var ye=T.__values(be),Re=ye.next();!Re.done;Re=ye.next()){var Se;for(de=(Se=Re.value).parent;de&&!be.has(de);)be.add(de),de=de.parent}}catch(Qe){De={error:Qe}}finally{try{Re&&!Re.done&&(Fe=ye.return)&&Fe.call(ye)}finally{if(De)throw De.error}}return be}function G(ne,N){var Y=N.get(ne);if(!Y)return{};if("compound"===ne.type){var W=Y[0];if(!W)return{};if(E(W))return W.key}var J={};return Y.forEach(function(n){J[n.key]=G(n,N)}),J}function Q(ne){var N,Y,W=new Map;try{for(var J=T.__values(ne),n=J.next();!n.done;n=J.next()){var K=n.value;W.has(K)||W.set(K,[]),K.parent&&(W.has(K.parent)||W.set(K.parent,[]),W.get(K.parent).push(K))}}catch(se){N={error:se}}finally{try{n&&!n.done&&(Y=J.return)&&Y.call(J)}finally{if(N)throw N.error}}return W}function Z(ne,N){return Array.isArray(ne)?ne.some(function(Y){return Y===N}):ne instanceof Set&&ne.has(N)}y.getAdjList=Q,y.getAllChildren=D,y.getAllStateNodes=function R(ne){var N=[ne];return E(ne)?N:N.concat(C.flatten(k(ne).map(R)))},y.getChildren=k,y.getConfiguration=P,y.getMeta=function fe(ne){return void 0===ne&&(ne=[]),ne.reduce(function(N,Y){return void 0!==Y.meta&&(N[Y.id]=Y.meta),N},{})},y.getTagsFromConfiguration=function q(ne){return new Set(C.flatten(ne.map(function(N){return N.tags})))},y.getValue=function H(ne,N){return G(ne,Q(P([ne],N)))},y.has=Z,y.isInFinalState=function z(ne,N){return"compound"===N.type?k(N).some(function(Y){return"final"===Y.type&&Z(ne,Y)}):"parallel"===N.type&&k(N).every(function(Y){return z(ne,Y)})},y.isLeafNode=E,y.nextEvents=function X(ne){return T.__spreadArray([],T.__read(new Set(C.flatten(T.__spreadArray([],T.__read(ne.map(function(N){return N.ownEvents})),!1)))),!1)}},7708:(m,y)=>{"use strict";var b;Object.defineProperty(y,"__esModule",{value:!0}),y.ActionTypes=void 0,(b=y.ActionTypes||(y.ActionTypes={})).Start="xstate.start",b.Stop="xstate.stop",b.Raise="xstate.raise",b.Send="xstate.send",b.Cancel="xstate.cancel",b.NullEvent="",b.Assign="xstate.assign",b.After="xstate.after",b.DoneState="done.state",b.DoneInvoke="done.invoke",b.Log="xstate.log",b.Init="xstate.init",b.Invoke="xstate.invoke",b.ErrorExecution="error.execution",b.ErrorCommunication="error.communication",b.ErrorPlatform="error.platform",b.ErrorCustom="xstate.error",b.Update="xstate.update",b.Pure="xstate.pure",b.Choose="xstate.choose",y.SpecialTargets=void 0,function(b){b.Parent="#_parent",b.Internal="#_internal"}(y.SpecialTargets||(y.SpecialTargets={}))},8208:(m,y,b)=>{"use strict";Object.defineProperty(y,"__esModule",{value:!0});var R,T=b(5831),C=b(7708),E=b(6254),D=b(6700),k=b(4848);function Z(Gt,An){try{return de(Gt)?Gt:Gt.toString().split(An)}catch{throw new Error("'".concat(Gt,"' is not a valid state path."))}}function X(Gt){return"object"==typeof Gt&&"value"in Gt&&"context"in Gt&&"event"in Gt&&"_event"in Gt}function z(Gt,An){return X(Gt)?Gt.value:de(Gt)?fe(Gt):"string"!=typeof Gt?Gt:fe(Z(Gt,An))}function fe(Gt){if(1===Gt.length)return Gt[0];for(var An={},Kt=An,Ot=0;Ot<Gt.length-1;Ot++)Ot===Gt.length-2?Kt[Gt[Ot]]=Gt[Ot+1]:(Kt[Gt[Ot]]={},Kt=Kt[Gt[Ot]]);return An}function q(Gt,An){for(var Kt={},Ot=Object.keys(Gt),Vt=0;Vt<Ot.length;Vt++){var Fn=Ot[Vt];Kt[Fn]=An(Gt[Fn],Fn,Gt,Vt)}return Kt}function n(Gt){var An;return(An=[]).concat.apply(An,T.__spreadArray([],T.__read(Gt),!1))}function K(Gt){return de(Gt)?Gt:[Gt]}function se(Gt){return void 0===Gt?[]:K(Gt)}function Ve(Gt,An){return q(Gt.states,function(Kt,Ot){if(Kt){var Vt=(xe(An)?void 0:An[Ot])||(Kt?Kt.current:void 0);if(Vt)return{current:Vt,states:Ve(Kt,Vt)}}})}function de(Gt){return Array.isArray(Gt)}function le(Gt){return"function"==typeof Gt}function xe(Gt){return"string"==typeof Gt}y.warn=function(){},k.IS_PRODUCTION||(y.warn=function(Gt,An){var Kt=Gt instanceof Error?Gt:void 0;if((Kt||!Gt)&&void 0!==console){var Ot=["Warning: ".concat(An)];Kt&&Ot.push(Kt),console.warn.apply(console,Ot)}});var ut=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}(),Ae=((R={})[ut]=function(){return this},R[Symbol.observable]=function(){return this},R);function ye(Gt){return!!Gt&&"__xstatenode"in Gt}var Qe=function(){var Gt=0;return function(){return(++Gt).toString(16)}}();function vt(Gt,An){return xe(Gt)||"number"==typeof Gt?T.__assign({type:Gt},An):Gt}y.createInvokeId=function wt(Gt,An){return"".concat(Gt,":invocation[").concat(An,"]")},y.evaluateGuard=function Ge(Gt,An,Kt,Ot,Vt){var Fn=Gt.options.guards,kn={state:Vt,cond:An,_event:Ot};if(An.type===D.DEFAULT_GUARD_TYPE)return(Fn?.[An.name]||An.predicate)(Kt,Ot.data,kn);var $n=Fn?.[An.type];if(!$n)throw new Error("Guard '".concat(An.type,"' is not implemented on machine '").concat(Gt.id,"'."));return $n(Kt,Ot.data,kn)},y.flatten=n,y.getActionType=function H(Gt){try{return xe(Gt)||"number"==typeof Gt?"".concat(Gt):le(Gt)?Gt.name:Gt.type}catch{throw new Error("Actions must be strings or objects with a string action.type property.")}},y.getEventType=function Q(Gt){try{return xe(Gt)||"number"==typeof Gt?"".concat(Gt):Gt.type}catch{throw new Error("Events must be strings or objects with a string event.type property.")}},y.interopSymbols=Ae,y.isActor=function Re(Gt){return!!Gt&&"function"==typeof Gt.send},y.isArray=de,y.isBehavior=function ke(Gt){return null!==Gt&&"object"==typeof Gt&&"transition"in Gt&&"function"==typeof Gt.transition},y.isBuiltInEvent=function Fe(Gt){return/^(done|error)\./.test(Gt)},y.isFunction=le,y.isMachine=ye,y.isObservable=function st(Gt){try{return"subscribe"in Gt&&le(Gt.subscribe)}catch{return!1}},y.isPromiseLike=function _e(Gt){return!!(Gt instanceof Promise||null!==Gt&&(le(Gt)||"object"==typeof Gt)&&le(Gt.then))},y.isRaisableAction=function Hn(Gt){return(Gt.type===E.raise||Gt.type===E.send&&Gt.to===C.SpecialTargets.Internal)&&"number"!=typeof Gt.delay},y.isStateLike=X,y.isString=xe,y.keys=function P(Gt){return Object.keys(Gt)},y.mapContext=function De(Gt,An,Kt){var Ot,Vt;if(le(Gt))return Gt(An,Kt.data);var Fn={};try{for(var kn=T.__values(Object.keys(Gt)),$n=kn.next();!$n.done;$n=kn.next()){var Ii=$n.value,Ni=Gt[Ii];Fn[Ii]=le(Ni)?Ni(An,Kt.data):Ni}}catch(Ki){Ot={error:Ki}}finally{try{$n&&!$n.done&&(Vt=kn.return)&&Vt.call(kn)}finally{if(Ot)throw Ot.error}}return Fn},y.mapFilterValues=function ne(Gt,An,Kt){var Ot,Vt,Fn={};try{for(var kn=T.__values(Object.keys(Gt)),$n=kn.next();!$n.done;$n=kn.next()){var Ii=$n.value,Ni=Gt[Ii];Kt(Ni)&&(Fn[Ii]=An(Ni,Ii,Gt))}}catch(Ki){Ot={error:Ki}}finally{try{$n&&!$n.done&&(Vt=kn.return)&&Vt.call(kn)}finally{if(Ot)throw Ot.error}}return Fn},y.mapValues=q,y.matchesState=function G(Gt,An,Kt){void 0===Kt&&(Kt=D.STATE_DELIMITER);var Ot=z(Gt,Kt),Vt=z(An,Kt);return xe(Vt)?!!xe(Ot)&&Vt===Ot:xe(Ot)?Ot in Vt:Object.keys(Ot).every(function(Fn){return Fn in Vt&&G(Ot[Fn],Vt[Fn])})},y.nestedPath=function Y(Gt,An){return function(Kt){var Ot,Vt,Fn=Kt;try{for(var kn=T.__values(Gt),$n=kn.next();!$n.done;$n=kn.next())Fn=Fn[An][$n.value]}catch(Ni){Ot={error:Ni}}finally{try{$n&&!$n.done&&(Vt=kn.return)&&Vt.call(kn)}finally{if(Ot)throw Ot.error}}return Fn}},y.normalizeTarget=function qe(Gt){if(void 0!==Gt&&Gt!==D.TARGETLESS_KEY)return se(Gt)},y.partition=function be(Gt,An){var Kt,Ot,Vt=T.__read([[],[]],2),Fn=Vt[0],kn=Vt[1];try{for(var $n=T.__values(Gt),Ii=$n.next();!Ii.done;Ii=$n.next()){var Ni=Ii.value;An(Ni)?Fn.push(Ni):kn.push(Ni)}}catch(Ki){Kt={error:Ki}}finally{try{Ii&&!Ii.done&&(Ot=$n.return)&&Ot.call($n)}finally{if(Kt)throw Kt.error}}return[Fn,kn]},y.path=function(Gt){return function(An){var Kt,Ot,Vt=An;try{for(var Fn=T.__values(Gt),kn=Fn.next();!kn.done;kn=Fn.next())Vt=Vt[kn.value]}catch(Ii){Kt={error:Ii}}finally{try{kn&&!kn.done&&(Ot=Fn.return)&&Ot.call(Fn)}finally{if(Kt)throw Kt.error}}return Vt}},y.pathToStateValue=fe,y.pathsToStateValue=function J(Gt){var An,Kt,Ot={};if(Gt&&1===Gt.length&&1===Gt[0].length)return Gt[0][0];try{for(var Vt=T.__values(Gt),Fn=Vt.next();!Fn.done;Fn=Vt.next())for(var kn=Fn.value,$n=Ot,Ii=0;Ii<kn.length;Ii++){var Ni=kn[Ii];if(Ii===kn.length-2){$n[Ni]=kn[Ii+1];break}$n[Ni]=$n[Ni]||{},$n=$n[Ni]}}catch(Ki){An={error:Ki}}finally{try{Fn&&!Fn.done&&(Kt=Vt.return)&&Kt.call(Vt)}finally{if(An)throw An.error}}return Ot},y.reportUnhandledExceptionOnInvocation=function ze(Gt,An,Kt){if(!k.IS_PRODUCTION){var Ot=Gt.stack?" Stacktrace was '".concat(Gt.stack,"'"):"";if(Gt===An)console.error("Missing onError handler for invocation '".concat(Kt,"', error was '").concat(Gt,"'.").concat(Ot));else{var Vt=An.stack?" Stacktrace was '".concat(An.stack,"'"):"";console.error("Missing onError handler and/or unhandled exception/promise rejection for invocation '".concat(Kt,"'. ")+"Original error: '".concat(Gt,"'. ").concat(Ot," Current error is '").concat(An,"'.").concat(Vt))}}},y.symbolObservable=ut,y.toArray=se,y.toArrayStrict=K,y.toEventObject=vt,y.toGuard=function We(Gt,An){if(Gt)return xe(Gt)?{type:D.DEFAULT_GUARD_TYPE,name:Gt,predicate:An?An[Gt]:void 0}:le(Gt)?{type:D.DEFAULT_GUARD_TYPE,name:Gt.name,predicate:Gt}:Gt},y.toInvokeSource=function dt(Gt){return"string"==typeof Gt?{type:Gt}:Gt},y.toObserver=function Dn(Gt,An,Kt){var Ot=function(){},Vt="object"==typeof Gt,Fn=Vt?Gt:null;return{next:((Vt?Gt.next:Gt)||Ot).bind(Fn),error:((Vt?Gt.error:An)||Ot).bind(Fn),complete:((Vt?Gt.complete:Kt)||Ot).bind(Fn)}},y.toSCXMLEvent=function Nt(Gt,An){if(!xe(Gt)&&"$$type"in Gt&&"scxml"===Gt.$$type)return Gt;var Kt=vt(Gt);return T.__assign({name:Kt.type,data:Kt,$$type:"scxml",type:"external"},An)},y.toStatePath=Z,y.toStatePaths=function W(Gt){return Gt?xe(Gt)?[[Gt]]:n(Object.keys(Gt).map(function(Kt){var Ot=Gt[Kt];return"string"==typeof Ot||Ot&&Object.keys(Ot).length?W(Gt[Kt]).map(function(Vt){return[Kt].concat(Vt)}):[[Kt]]})):[[]]},y.toStateValue=z,y.toTransitionConfigArray=function Dt(Gt,An){return K(An).map(function(Ot){return typeof Ot>"u"||"string"==typeof Ot||ye(Ot)?{target:Ot,event:Gt}:T.__assign(T.__assign({},Ot),{event:Gt})})},y.uniqueId=Qe,y.updateContext=function Se(Gt,An,Kt,Ot){return k.IS_PRODUCTION||y.warn(!!Gt,"Attempting to update undefined context"),Gt&&Kt.reduce(function(Fn,kn){var $n,Ii,Ni=kn.assignment,Ki={state:Ot,action:kn,_event:An},Qr={};if(le(Ni))Qr=Ni(Fn,An.data,Ki);else try{for(var Cr=T.__values(Object.keys(Ni)),wr=Cr.next();!wr.done;wr=Cr.next()){var vs=wr.value,rs=Ni[vs];Qr[vs]=le(rs)?rs(Fn,An.data,Ki):rs}}catch(ur){$n={error:ur}}finally{try{wr&&!wr.done&&(Ii=Cr.return)&&Ii.call(Cr)}finally{if($n)throw $n.error}}return Object.assign({},Fn,Qr)},Gt)},y.updateHistoryStates=Ve,y.updateHistoryValue=function Ie(Gt,An){return{current:An,states:Ve(Gt,An)}}},5358:(m,y,b)=>{var T={"./af":1544,"./af.js":1544,"./ar":3108,"./ar-dz":2155,"./ar-dz.js":2155,"./ar-kw":3583,"./ar-kw.js":3583,"./ar-ly":1638,"./ar-ly.js":1638,"./ar-ma":7823,"./ar-ma.js":7823,"./ar-ps":7712,"./ar-ps.js":7712,"./ar-sa":8261,"./ar-sa.js":8261,"./ar-tn":6703,"./ar-tn.js":6703,"./ar.js":3108,"./az":6508,"./az.js":6508,"./be":6766,"./be.js":6766,"./bg":8564,"./bg.js":8564,"./bm":7462,"./bm.js":7462,"./bn":7107,"./bn-bd":3438,"./bn-bd.js":3438,"./bn.js":7107,"./bo":9004,"./bo.js":9004,"./br":927,"./br.js":927,"./bs":7768,"./bs.js":7768,"./ca":6291,"./ca.js":6291,"./cs":5301,"./cs.js":5301,"./cv":6666,"./cv.js":6666,"./cy":5163,"./cy.js":5163,"./da":7360,"./da.js":7360,"./de":5932,"./de-at":3248,"./de-at.js":3248,"./de-ch":3222,"./de-ch.js":3222,"./de.js":5932,"./dv":6405,"./dv.js":6405,"./el":718,"./el.js":718,"./en-au":6319,"./en-au.js":6319,"./en-ca":597,"./en-ca.js":597,"./en-gb":1800,"./en-gb.js":1800,"./en-ie":807,"./en-ie.js":807,"./en-il":5960,"./en-il.js":5960,"./en-in":4418,"./en-in.js":4418,"./en-nz":6865,"./en-nz.js":6865,"./en-sg":2647,"./en-sg.js":2647,"./eo":1931,"./eo.js":1931,"./es":6679,"./es-do":1805,"./es-do.js":1805,"./es-mx":3445,"./es-mx.js":3445,"./es-us":1516,"./es-us.js":1516,"./es.js":6679,"./et":8150,"./et.js":8150,"./eu":757,"./eu.js":757,"./fa":5742,"./fa.js":5742,"./fi":3958,"./fi.js":3958,"./fil":6720,"./fil.js":6720,"./fo":8352,"./fo.js":8352,"./fr":4059,"./fr-ca":2096,"./fr-ca.js":2096,"./fr-ch":5759,"./fr-ch.js":5759,"./fr.js":4059,"./fy":5958,"./fy.js":5958,"./ga":4143,"./ga.js":4143,"./gd":7028,"./gd.js":7028,"./gl":428,"./gl.js":428,"./gom-deva":6861,"./gom-deva.js":6861,"./gom-latn":7718,"./gom-latn.js":7718,"./gu":6827,"./gu.js":6827,"./he":1936,"./he.js":1936,"./hi":1332,"./hi.js":1332,"./hr":1957,"./hr.js":1957,"./hu":8928,"./hu.js":8928,"./hy-am":6215,"./hy-am.js":6215,"./id":586,"./id.js":586,"./is":211,"./is.js":211,"./it":170,"./it-ch":2340,"./it-ch.js":2340,"./it.js":170,"./ja":9770,"./ja.js":9770,"./jv":3875,"./jv.js":3875,"./ka":9499,"./ka.js":9499,"./kk":3573,"./kk.js":3573,"./km":8807,"./km.js":8807,"./kn":5082,"./kn.js":5082,"./ko":137,"./ko.js":137,"./ku":111,"./ku-kmr":1363,"./ku-kmr.js":1363,"./ku.js":111,"./ky":9187,"./ky.js":9187,"./lb":5969,"./lb.js":5969,"./lo":3526,"./lo.js":3526,"./lt":411,"./lt.js":411,"./lv":2621,"./lv.js":2621,"./me":5869,"./me.js":5869,"./mi":5881,"./mi.js":5881,"./mk":2391,"./mk.js":2391,"./ml":1126,"./ml.js":1126,"./mn":4892,"./mn.js":4892,"./mr":9080,"./mr.js":9080,"./ms":399,"./ms-my":5950,"./ms-my.js":5950,"./ms.js":399,"./mt":9902,"./mt.js":9902,"./my":2985,"./my.js":2985,"./nb":7859,"./nb.js":7859,"./ne":3642,"./ne.js":3642,"./nl":5441,"./nl-be":9875,"./nl-be.js":9875,"./nl.js":5441,"./nn":1311,"./nn.js":1311,"./oc-lnc":2567,"./oc-lnc.js":2567,"./pa-in":6962,"./pa-in.js":6962,"./pl":1063,"./pl.js":1063,"./pt":8719,"./pt-br":7476,"./pt-br.js":7476,"./pt.js":8719,"./ro":1004,"./ro.js":1004,"./ru":1326,"./ru.js":1326,"./sd":2608,"./sd.js":2608,"./se":3911,"./se.js":3911,"./si":5147,"./si.js":5147,"./sk":3741,"./sk.js":3741,"./sl":3e3,"./sl.js":3e3,"./sq":451,"./sq.js":451,"./sr":5046,"./sr-cyrl":905,"./sr-cyrl.js":905,"./sr.js":5046,"./ss":5765,"./ss.js":5765,"./sv":9290,"./sv.js":9290,"./sw":3449,"./sw.js":3449,"./ta":2688,"./ta.js":2688,"./te":2060,"./te.js":2060,"./tet":3290,"./tet.js":3290,"./tg":8294,"./tg.js":8294,"./th":1231,"./th.js":1231,"./tk":3746,"./tk.js":3746,"./tl-ph":9040,"./tl-ph.js":9040,"./tlh":7187,"./tlh.js":7187,"./tr":153,"./tr.js":153,"./tzl":8521,"./tzl.js":8521,"./tzm":8010,"./tzm-latn":2234,"./tzm-latn.js":2234,"./tzm.js":8010,"./ug-cn":3349,"./ug-cn.js":3349,"./uk":8479,"./uk.js":8479,"./ur":3024,"./ur.js":3024,"./uz":9800,"./uz-latn":2376,"./uz-latn.js":2376,"./uz.js":9800,"./vi":9366,"./vi.js":9366,"./x-pseudo":9702,"./x-pseudo.js":9702,"./yo":2655,"./yo.js":2655,"./zh-cn":575,"./zh-cn.js":575,"./zh-hk":8351,"./zh-hk.js":8351,"./zh-mo":1626,"./zh-mo.js":1626,"./zh-tw":8887,"./zh-tw.js":8887};function C(D){var k=E(D);return b(k)}function E(D){if(!b.o(T,D)){var k=new Error("Cannot find module '"+D+"'");throw k.code="MODULE_NOT_FOUND",k}return T[D]}C.keys=function(){return Object.keys(T)},C.resolve=E,m.exports=C,C.id=5358},9969:(m,y,b)=>{"use strict";b.d(y,{FX:()=>_e,If:()=>T,K2:()=>R,hZ:()=>E,i0:()=>D,iF:()=>P,kY:()=>H,kp:()=>C,lY:()=>Z,sM:()=>z,sf:()=>De,ui:()=>Fe,wk:()=>G});var T=function(ke){return ke[ke.State=0]="State",ke[ke.Transition=1]="Transition",ke[ke.Sequence=2]="Sequence",ke[ke.Group=3]="Group",ke[ke.Animate=4]="Animate",ke[ke.Keyframes=5]="Keyframes",ke[ke.Style=6]="Style",ke[ke.Trigger=7]="Trigger",ke[ke.Reference=8]="Reference",ke[ke.AnimateChild=9]="AnimateChild",ke[ke.AnimateRef=10]="AnimateRef",ke[ke.Query=11]="Query",ke[ke.Stagger=12]="Stagger",ke}(T||{});const C="*";function E(ke,be){return{type:T.Trigger,name:ke,definitions:be,options:{}}}function D(ke,be=null){return{type:T.Animate,styles:be,timings:ke}}function R(ke,be=null){return{type:T.Sequence,steps:ke,options:be}}function P(ke){return{type:T.Style,styles:ke,offset:null}}function G(ke,be,Ve){return{type:T.State,name:ke,styles:be,options:Ve}}function H(ke,be,Ve=null){return{type:T.Transition,expr:ke,animation:be,options:Ve}}function Z(ke,be=null){return{type:T.Reference,animation:ke,options:be}}function z(ke,be=null){return{type:T.AnimateRef,animation:ke,options:be}}class De{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(be=0,Ve=0){this.totalTime=be+Ve}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(be=>be()),this._onDoneFns=[])}onStart(be){this._originalOnStartFns.push(be),this._onStartFns.push(be)}onDone(be){this._originalOnDoneFns.push(be),this._onDoneFns.push(be)}onDestroy(be){this._onDestroyFns.push(be)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(be=>be()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(be=>be()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(be){this._position=this.totalTime?be*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(be){const Ve="start"==be?this._onStartFns:this._onDoneFns;Ve.forEach(Ie=>Ie()),Ve.length=0}}class Fe{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(be){this.players=be;let Ve=0,Ie=0,Se=0;const de=this.players.length;0==de?queueMicrotask(()=>this._onFinish()):this.players.forEach(le=>{le.onDone(()=>{++Ve==de&&this._onFinish()}),le.onDestroy(()=>{++Ie==de&&this._onDestroy()}),le.onStart(()=>{++Se==de&&this._onStart()})}),this.totalTime=this.players.reduce((le,xe)=>Math.max(le,xe.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(be=>be()),this._onDoneFns=[])}init(){this.players.forEach(be=>be.init())}onStart(be){this._onStartFns.push(be)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(be=>be()),this._onStartFns=[])}onDone(be){this._onDoneFns.push(be)}onDestroy(be){this._onDestroyFns.push(be)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(be=>be.play())}pause(){this.players.forEach(be=>be.pause())}restart(){this.players.forEach(be=>be.restart())}finish(){this._onFinish(),this.players.forEach(be=>be.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(be=>be.destroy()),this._onDestroyFns.forEach(be=>be()),this._onDestroyFns=[])}reset(){this.players.forEach(be=>be.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(be){const Ve=be*this.totalTime;this.players.forEach(Ie=>{const Se=Ie.totalTime?Math.min(1,Ve/Ie.totalTime):1;Ie.setPosition(Se)})}getPosition(){const be=this.players.reduce((Ve,Ie)=>null===Ve||Ie.totalTime>Ve.totalTime?Ie:Ve,null);return null!=be?be.getPosition():0}beforeDestroy(){this.players.forEach(be=>{be.beforeDestroy&&be.beforeDestroy()})}triggerCallback(be){const Ve="start"==be?this._onStartFns:this._onDoneFns;Ve.forEach(Ie=>Ie()),Ve.length=0}}const _e="!"},8008:(m,y,b)=>{"use strict";b.r(y),b.d(y,{AnimationDriver:()=>Ii,NoopAnimationDriver:()=>$n,\u0275Animation:()=>Ys,\u0275AnimationEngine:()=>$s,\u0275AnimationRenderer:()=>va,\u0275AnimationRendererFactory:()=>Ul,\u0275AnimationStyleNormalizer:()=>Ni,\u0275BaseAnimationRenderer:()=>Js,\u0275NoopAnimationStyleNormalizer:()=>Ki,\u0275WebAnimationsDriver:()=>gn,\u0275WebAnimationsPlayer:()=>Rl,\u0275WebAnimationsStyleNormalizer:()=>vl,\u0275allowPreviousPlayerStylesMerge:()=>Wo,\u0275camelCaseToDashCase:()=>qr,\u0275containsElement:()=>Vt,\u0275createEngine:()=>po,\u0275getParentElement:()=>Dn,\u0275invokeQuery:()=>Fn,\u0275normalizeKeyframes:()=>ks,\u0275validateStyleProperty:()=>An,\u0275validateWebAnimatableStyleProperty:()=>Kt});var T=b(9969),C=b(7705);function D(Ft){return new C.wOt(3e3,!1)}const Re=new Set(["-moz-outline-radius","-moz-outline-radius-bottomleft","-moz-outline-radius-bottomright","-moz-outline-radius-topleft","-moz-outline-radius-topright","-ms-grid-columns","-ms-grid-rows","-webkit-line-clamp","-webkit-text-fill-color","-webkit-text-stroke","-webkit-text-stroke-color","accent-color","all","backdrop-filter","background","background-color","background-position","background-size","block-size","border","border-block-end","border-block-end-color","border-block-end-width","border-block-start","border-block-start-color","border-block-start-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-width","border-color","border-end-end-radius","border-end-start-radius","border-image-outset","border-image-slice","border-image-width","border-inline-end","border-inline-end-color","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-width","border-left","border-left-color","border-left-width","border-radius","border-right","border-right-color","border-right-width","border-start-end-radius","border-start-start-radius","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-width","border-width","bottom","box-shadow","caret-color","clip","clip-path","color","column-count","column-gap","column-rule","column-rule-color","column-rule-width","column-width","columns","filter","flex","flex-basis","flex-grow","flex-shrink","font","font-size","font-size-adjust","font-stretch","font-variation-settings","font-weight","gap","grid-column-gap","grid-gap","grid-row-gap","grid-template-columns","grid-template-rows","height","inline-size","input-security","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","left","letter-spacing","line-clamp","line-height","margin","margin-block-end","margin-block-start","margin-bottom","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","mask","mask-border","mask-position","mask-size","max-block-size","max-height","max-inline-size","max-lines","max-width","min-block-size","min-height","min-inline-size","min-width","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","outline","outline-color","outline-offset","outline-width","padding","padding-block-end","padding-block-start","padding-bottom","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","perspective","perspective-origin","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-coordinate","scroll-snap-destination","scrollbar-color","shape-image-threshold","shape-margin","shape-outside","tab-size","text-decoration","text-decoration-color","text-decoration-thickness","text-emphasis","text-emphasis-color","text-indent","text-shadow","text-underline-offset","top","transform","transform-origin","translate","vertical-align","visibility","width","word-spacing","z-index","zoom"]);function Qe(Ft){switch(Ft.length){case 0:return new T.sf;case 1:return Ft[0];default:return new T.ui(Ft)}}function vt(Ft,me,Oe=new Map,Je=new Map){const yt=[],Bt=[];let yn=-1,Sn=null;if(me.forEach(ii=>{const ai=ii.get("offset"),br=ai==yn,Kn=br&&Sn||new Map;ii.forEach((xr,Fo)=>{let ho=Fo,Po=xr;if("offset"!==Fo)switch(ho=Ft.normalizePropertyName(ho,yt),Po){case T.FX:Po=Oe.get(Fo);break;case T.kp:Po=Je.get(Fo);break;default:Po=Ft.normalizeStyleValue(Fo,ho,Po,yt)}Kn.set(ho,Po)}),br||Bt.push(Kn),Sn=Kn,yn=ai}),yt.length)throw function be(){return new C.wOt(3502,!1)}();return Bt}function Nt(Ft,me,Oe,Je){switch(me){case"start":Ft.onStart(()=>Je(Oe&&Dt(Oe,"start",Ft)));break;case"done":Ft.onDone(()=>Je(Oe&&Dt(Oe,"done",Ft)));break;case"destroy":Ft.onDestroy(()=>Je(Oe&&Dt(Oe,"destroy",Ft)))}}function Dt(Ft,me,Oe){const Bt=qe(Ft.element,Ft.triggerName,Ft.fromState,Ft.toState,me||Ft.phaseName,Oe.totalTime??Ft.totalTime,!!Oe.disabled),yn=Ft._data;return null!=yn&&(Bt._data=yn),Bt}function qe(Ft,me,Oe,Je,yt="",Bt=0,yn){return{element:Ft,triggerName:me,fromState:Oe,toState:Je,phaseName:yt,totalTime:Bt,disabled:!!yn}}function ze(Ft,me,Oe){let Je=Ft.get(me);return Je||Ft.set(me,Je=Oe),Je}function Ge(Ft){const me=Ft.indexOf(":");return[Ft.substring(1,me),Ft.slice(me+1)]}const dt=typeof document>"u"?null:document.documentElement;function Dn(Ft){const me=Ft.parentNode||Ft.host||null;return me===dt?null:me}let Hn=null,Gt=!1;function An(Ft){Hn||(Hn=function Ot(){return typeof document<"u"?document.body:null}()||{},Gt=!!Hn.style&&"WebkitAppearance"in Hn.style);let me=!0;return Hn.style&&!function wt(Ft){return"ebkit"==Ft.substring(1,6)}(Ft)&&(me=Ft in Hn.style,!me&&Gt&&(me="Webkit"+Ft.charAt(0).toUpperCase()+Ft.slice(1)in Hn.style)),me}function Kt(Ft){return Re.has(Ft)}function Vt(Ft,me){for(;me;){if(me===Ft)return!0;me=Dn(me)}return!1}function Fn(Ft,me,Oe){if(Oe)return Array.from(Ft.querySelectorAll(me));const Je=Ft.querySelector(me);return Je?[Je]:[]}let $n=(()=>{class Ft{validateStyleProperty(Oe){return An(Oe)}containsElement(Oe,Je){return Vt(Oe,Je)}getParentElement(Oe){return Dn(Oe)}query(Oe,Je,yt){return Fn(Oe,Je,yt)}computeStyle(Oe,Je,yt){return yt||""}animate(Oe,Je,yt,Bt,yn,Sn=[],ii){return new T.sf(yt,Bt)}static \u0275fac=function(Je){return new(Je||Ft)};static \u0275prov=C.jDH({token:Ft,factory:Ft.\u0275fac})}return Ft})();class Ii{static NOOP=new $n}class Ni{}class Ki{normalizePropertyName(me,Oe){return me}normalizeStyleValue(me,Oe,Je,yt){return Je}}const vs="ng-enter",rs="ng-leave",ur="ng-trigger",Ns=".ng-trigger",to="ng-animating",Qs=".ng-animating";function pr(Ft){if("number"==typeof Ft)return Ft;const me=Ft.match(/^(-?[\.\d]+)(m?s)/);return!me||me.length<2?0:Ro(parseFloat(me[1]),me[2])}function Ro(Ft,me){return"s"===me?1e3*Ft:Ft}function Xo(Ft,me,Oe){return Ft.hasOwnProperty("duration")?Ft:function El(Ft,me,Oe){let yt,Bt=0,yn="";if("string"==typeof Ft){const Sn=Ft.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Sn)return me.push(D()),{duration:0,delay:0,easing:""};yt=Ro(parseFloat(Sn[1]),Sn[2]);const ii=Sn[3];null!=ii&&(Bt=Ro(parseFloat(ii),Sn[4]));const ai=Sn[5];ai&&(yn=ai)}else yt=Ft;if(!Oe){let Sn=!1,ii=me.length;yt<0&&(me.push(function k(){return new C.wOt(3100,!1)}()),Sn=!0),Bt<0&&(me.push(function R(){return new C.wOt(3101,!1)}()),Sn=!0),Sn&&me.splice(ii,0,D())}return{duration:yt,delay:Bt,easing:yn}}(Ft,me,Oe)}function ks(Ft){return Ft.length?Ft[0]instanceof Map?Ft:Ft.map(me=>new Map(Object.entries(me))):[]}function ol(Ft){return Array.isArray(Ft)?new Map(...Ft):new Map(Ft)}function Xa(Ft,me,Oe){me.forEach((Je,yt)=>{const Bt=Dl(yt);Oe&&!Oe.has(yt)&&Oe.set(yt,Ft.style[Bt]),Ft.style[Bt]=Je})}function ya(Ft,me){me.forEach((Oe,Je)=>{const yt=Dl(Je);Ft.style[yt]=""})}function Dr(Ft){return Array.isArray(Ft)?1==Ft.length?Ft[0]:(0,T.K2)(Ft):Ft}const ws=new RegExp("{{\\s*(.+?)\\s*}}","g");function Ko(Ft){let me=[];if("string"==typeof Ft){let Oe;for(;Oe=ws.exec(Ft);)me.push(Oe[1]);ws.lastIndex=0}return me}function da(Ft,me,Oe){const Je=`${Ft}`,yt=Je.replace(ws,(Bt,yn)=>{let Sn=me[yn];return null==Sn&&(Oe.push(function G(){return new C.wOt(3003,!1)}()),Sn=""),Sn.toString()});return yt==Je?Ft:yt}const Bo=/-+([a-z0-9])/g;function Dl(Ft){return Ft.replace(Bo,(...me)=>me[1].toUpperCase())}function qr(Ft){return Ft.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Wo(Ft,me){return 0===Ft||0===me}function os(Ft,me,Oe){switch(me.type){case T.If.Trigger:return Ft.visitTrigger(me,Oe);case T.If.State:return Ft.visitState(me,Oe);case T.If.Transition:return Ft.visitTransition(me,Oe);case T.If.Sequence:return Ft.visitSequence(me,Oe);case T.If.Group:return Ft.visitGroup(me,Oe);case T.If.Animate:return Ft.visitAnimate(me,Oe);case T.If.Keyframes:return Ft.visitKeyframes(me,Oe);case T.If.Style:return Ft.visitStyle(me,Oe);case T.If.Reference:return Ft.visitReference(me,Oe);case T.If.AnimateChild:return Ft.visitAnimateChild(me,Oe);case T.If.AnimateRef:return Ft.visitAnimateRef(me,Oe);case T.If.Query:return Ft.visitQuery(me,Oe);case T.If.Stagger:return Ft.visitStagger(me,Oe);default:throw function Q(){return new C.wOt(3004,!1)}()}}function Gs(Ft,me){return window.getComputedStyle(Ft)[me]}const _s=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class vl extends Ni{normalizePropertyName(me,Oe){return Dl(me)}normalizeStyleValue(me,Oe,Je,yt){let Bt="";const yn=Je.toString().trim();if(_s.has(Oe)&&0!==Je&&"0"!==Je)if("number"==typeof Je)Bt="px";else{const Sn=Je.match(/^[+-]?[\d\.]+([a-z]*)$/);Sn&&0==Sn[1].length&&yt.push(function H(){return new C.wOt(3005,!1)}())}return yn+Bt}}const xc=new Set(["true","1"]),ad=new Set(["false","0"]);function Du(Ft,me){const Oe=xc.has(Ft)||ad.has(Ft),Je=xc.has(me)||ad.has(me);return(yt,Bt)=>{let yn="*"==Ft||Ft==yt,Sn="*"==me||me==Bt;return!yn&&Oe&&"boolean"==typeof yt&&(yn=yt?xc.has(Ft):ad.has(Ft)),!Sn&&Je&&"boolean"==typeof Bt&&(Sn=Bt?xc.has(me):ad.has(me)),yn&&Sn}}const Ec=new RegExp("s*:selfs*,?","g");function ri(Ft,me,Oe,Je){return new sl(Ft).build(me,Oe,Je)}class sl{_driver;constructor(me){this._driver=me}build(me,Oe,Je){const yt=new ns(Oe);return this._resetContextStyleTimingState(yt),os(this,Dr(me),yt)}_resetContextStyleTimingState(me){me.currentQuerySelector="",me.collectedStyles=new Map,me.collectedStyles.set("",new Map),me.currentTime=0}visitTrigger(me,Oe){let Je=Oe.queryCount=0,yt=Oe.depCount=0;const Bt=[],yn=[];return"@"==me.name.charAt(0)&&Oe.errors.push(function Z(){return new C.wOt(3006,!1)}()),me.definitions.forEach(Sn=>{if(this._resetContextStyleTimingState(Oe),Sn.type==T.If.State){const ii=Sn,ai=ii.name;ai.toString().split(/\s*,\s*/).forEach(br=>{ii.name=br,Bt.push(this.visitState(ii,Oe))}),ii.name=ai}else if(Sn.type==T.If.Transition){const ii=this.visitTransition(Sn,Oe);Je+=ii.queryCount,yt+=ii.depCount,yn.push(ii)}else Oe.errors.push(function X(){return new C.wOt(3007,!1)}())}),{type:T.If.Trigger,name:me.name,states:Bt,transitions:yn,queryCount:Je,depCount:yt,options:null}}visitState(me,Oe){const Je=this.visitStyle(me.styles,Oe),yt=me.options&&me.options.params||null;if(Je.containsDynamicStyles){const Bt=new Set,yn=yt||{};Je.styles.forEach(Sn=>{Sn instanceof Map&&Sn.forEach(ii=>{Ko(ii).forEach(ai=>{yn.hasOwnProperty(ai)||Bt.add(ai)})})}),Bt.size&&Oe.errors.push(function z(){return new C.wOt(3008,!1)}(0,Bt.values()))}return{type:T.If.State,name:me.name,style:Je,options:yt?{params:yt}:null}}visitTransition(me,Oe){Oe.queryCount=0,Oe.depCount=0;const Je=os(this,Dr(me.animation),Oe),yt=function uu(Ft,me){const Oe=[];return"string"==typeof Ft?Ft.split(/\s*,\s*/).forEach(Je=>function qu(Ft,me,Oe){if(":"==Ft[0]){const ii=function Fa(Ft,me){switch(Ft){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(Oe,Je)=>parseFloat(Je)>parseFloat(Oe);case":decrement":return(Oe,Je)=>parseFloat(Je)<parseFloat(Oe);default:return me.push(function De(){return new C.wOt(3016,!1)}()),"* => *"}}(Ft,Oe);if("function"==typeof ii)return void me.push(ii);Ft=ii}const Je=Ft.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==Je||Je.length<4)return Oe.push(function se(){return new C.wOt(3015,!1)}()),me;const yt=Je[1],Bt=Je[2],yn=Je[3];me.push(Du(yt,yn)),"<"==Bt[0]&&("*"!=yt||"*"!=yn)&&me.push(Du(yn,yt))}(Je,Oe,me)):Oe.push(Ft),Oe}(me.expr,Oe.errors);return{type:T.If.Transition,matchers:yt,animation:Je,queryCount:Oe.queryCount,depCount:Oe.depCount,options:mc(me.options)}}visitSequence(me,Oe){return{type:T.If.Sequence,steps:me.steps.map(Je=>os(this,Je,Oe)),options:mc(me.options)}}visitGroup(me,Oe){const Je=Oe.currentTime;let yt=0;const Bt=me.steps.map(yn=>{Oe.currentTime=Je;const Sn=os(this,yn,Oe);return yt=Math.max(yt,Oe.currentTime),Sn});return Oe.currentTime=yt,{type:T.If.Group,steps:Bt,options:mc(me.options)}}visitAnimate(me,Oe){const Je=function Dc(Ft,me){if(Ft.hasOwnProperty("duration"))return Ft;if("number"==typeof Ft)return At(Xo(Ft,me).duration,0,"");const Oe=Ft;if(Oe.split(/\s+/).some(Bt=>"{"==Bt.charAt(0)&&"{"==Bt.charAt(1))){const Bt=At(0,0,"");return Bt.dynamic=!0,Bt.strValue=Oe,Bt}const yt=Xo(Oe,me);return At(yt.duration,yt.delay,yt.easing)}(me.timings,Oe.errors);Oe.currentAnimateTimings=Je;let yt,Bt=me.styles?me.styles:(0,T.iF)({});if(Bt.type==T.If.Keyframes)yt=this.visitKeyframes(Bt,Oe);else{let yn=me.styles,Sn=!1;if(!yn){Sn=!0;const ai={};Je.easing&&(ai.easing=Je.easing),yn=(0,T.iF)(ai)}Oe.currentTime+=Je.duration+Je.delay;const ii=this.visitStyle(yn,Oe);ii.isEmptyStep=Sn,yt=ii}return Oe.currentAnimateTimings=null,{type:T.If.Animate,timings:Je,style:yt,options:null}}visitStyle(me,Oe){const Je=this._makeStyleAst(me,Oe);return this._validateStyleAst(Je,Oe),Je}_makeStyleAst(me,Oe){const Je=[],yt=Array.isArray(me.styles)?me.styles:[me.styles];for(let Sn of yt)"string"==typeof Sn?Sn===T.kp?Je.push(Sn):Oe.errors.push(new C.wOt(3002,!1)):Je.push(new Map(Object.entries(Sn)));let Bt=!1,yn=null;return Je.forEach(Sn=>{if(Sn instanceof Map&&(Sn.has("easing")&&(yn=Sn.get("easing"),Sn.delete("easing")),!Bt))for(let ii of Sn.values())if(ii.toString().indexOf("{{")>=0){Bt=!0;break}}),{type:T.If.Style,styles:Je,easing:yn,offset:me.offset,containsDynamicStyles:Bt,options:null}}_validateStyleAst(me,Oe){const Je=Oe.currentAnimateTimings;let yt=Oe.currentTime,Bt=Oe.currentTime;Je&&Bt>0&&(Bt-=Je.duration+Je.delay),me.styles.forEach(yn=>{"string"!=typeof yn&&yn.forEach((Sn,ii)=>{const ai=Oe.collectedStyles.get(Oe.currentQuerySelector),br=ai.get(ii);let Kn=!0;br&&(Bt!=yt&&Bt>=br.startTime&&yt<=br.endTime&&(Oe.errors.push(function ne(){return new C.wOt(3010,!1)}()),Kn=!1),Bt=br.startTime),Kn&&ai.set(ii,{startTime:Bt,endTime:yt}),Oe.options&&function ja(Ft,me,Oe){const Je=me.params||{},yt=Ko(Ft);yt.length&&yt.forEach(Bt=>{Je.hasOwnProperty(Bt)||Oe.push(function P(){return new C.wOt(3001,!1)}())})}(Sn,Oe.options,Oe.errors)})})}visitKeyframes(me,Oe){const Je={type:T.If.Keyframes,styles:[],options:null};if(!Oe.currentAnimateTimings)return Oe.errors.push(function N(){return new C.wOt(3011,!1)}()),Je;let Bt=0;const yn=[];let Sn=!1,ii=!1,ai=0;const br=me.steps.map(Ts=>{const Ws=this._makeStyleAst(Ts,Oe);let pa=null!=Ws.offset?Ws.offset:function Mr(Ft){if("string"==typeof Ft)return null;let me=null;if(Array.isArray(Ft))Ft.forEach(Oe=>{if(Oe instanceof Map&&Oe.has("offset")){const Je=Oe;me=parseFloat(Je.get("offset")),Je.delete("offset")}});else if(Ft instanceof Map&&Ft.has("offset")){const Oe=Ft;me=parseFloat(Oe.get("offset")),Oe.delete("offset")}return me}(Ws.styles),ul=0;return null!=pa&&(Bt++,ul=Ws.offset=pa),ii=ii||ul<0||ul>1,Sn=Sn||ul<ai,ai=ul,yn.push(ul),Ws});ii&&Oe.errors.push(function Y(){return new C.wOt(3012,!1)}()),Sn&&Oe.errors.push(function W(){return new C.wOt(3200,!1)}());const Kn=me.steps.length;let xr=0;Bt>0&&Bt<Kn?Oe.errors.push(function J(){return new C.wOt(3202,!1)}()):0==Bt&&(xr=1/(Kn-1));const Fo=Kn-1,ho=Oe.currentTime,Po=Oe.currentAnimateTimings,Tr=Po.duration;return br.forEach((Ts,Ws)=>{const pa=xr>0?Ws==Fo?1:xr*Ws:yn[Ws],ul=pa*Tr;Oe.currentTime=ho+Po.delay+ul,Po.duration=ul,this._validateStyleAst(Ts,Oe),Ts.offset=pa,Je.styles.push(Ts)}),Je}visitReference(me,Oe){return{type:T.If.Reference,animation:os(this,Dr(me.animation),Oe),options:mc(me.options)}}visitAnimateChild(me,Oe){return Oe.depCount++,{type:T.If.AnimateChild,options:mc(me.options)}}visitAnimateRef(me,Oe){return{type:T.If.AnimateRef,animation:this.visitReference(me.animation,Oe),options:mc(me.options)}}visitQuery(me,Oe){const Je=Oe.currentQuerySelector,yt=me.options||{};Oe.queryCount++,Oe.currentQuery=me;const[Bt,yn]=function ta(Ft){const me=!!Ft.split(/\s*,\s*/).find(Oe=>":self"==Oe);return me&&(Ft=Ft.replace(Ec,"")),Ft=Ft.replace(/@\*/g,Ns).replace(/@\w+/g,Oe=>Ns+"-"+Oe.slice(1)).replace(/:animating/g,Qs),[Ft,me]}(me.selector);Oe.currentQuerySelector=Je.length?Je+" "+Bt:Bt,ze(Oe.collectedStyles,Oe.currentQuerySelector,new Map);const Sn=os(this,Dr(me.animation),Oe);return Oe.currentQuery=null,Oe.currentQuerySelector=Je,{type:T.If.Query,selector:Bt,limit:yt.limit||0,optional:!!yt.optional,includeSelf:yn,animation:Sn,originalSelector:me.selector,options:mc(me.options)}}visitStagger(me,Oe){Oe.currentQuery||Oe.errors.push(function n(){return new C.wOt(3013,!1)}());const Je="full"===me.timings?{duration:0,delay:0,easing:"full"}:Xo(me.timings,Oe.errors,!0);return{type:T.If.Stagger,animation:os(this,Dr(me.animation),Oe),timings:Je,options:null}}}class ns{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(me){this.errors=me}}function mc(Ft){return Ft?(Ft={...Ft}).params&&(Ft.params=function Ia(Ft){return Ft?{...Ft}:null}(Ft.params)):Ft={},Ft}function At(Ft,me,Oe){return{duration:Ft,delay:me,easing:Oe}}function _n(Ft,me,Oe,Je,yt,Bt,yn=null,Sn=!1){return{type:1,element:Ft,keyframes:me,preStyleProps:Oe,postStyleProps:Je,duration:yt,delay:Bt,totalTime:yt+Bt,easing:yn,subTimeline:Sn}}class $t{_map=new Map;get(me){return this._map.get(me)||[]}append(me,Oe){let Je=this._map.get(me);Je||this._map.set(me,Je=[]),Je.push(...Oe)}has(me){return this._map.has(me)}clear(){this._map.clear()}}const En=new RegExp(":enter","g"),ir=new RegExp(":leave","g");function or(Ft,me,Oe,Je,yt,Bt=new Map,yn=new Map,Sn,ii,ai=[]){return(new Ui).buildKeyframes(Ft,me,Oe,Je,yt,Bt,yn,Sn,ii,ai)}class Ui{buildKeyframes(me,Oe,Je,yt,Bt,yn,Sn,ii,ai,br=[]){ai=ai||new $t;const Kn=new Wr(me,Oe,ai,yt,Bt,br,[]);Kn.options=ii;const xr=ii.delay?pr(ii.delay):0;Kn.currentTimeline.delayNextStep(xr),Kn.currentTimeline.setStyles([yn],null,Kn.errors,ii),os(this,Je,Kn);const Fo=Kn.timelines.filter(ho=>ho.containsAnimation());if(Fo.length&&Sn.size){let ho;for(let Po=Fo.length-1;Po>=0;Po--){const Tr=Fo[Po];if(Tr.element===Oe){ho=Tr;break}}ho&&!ho.allowOnlyTimelineStyles()&&ho.setStyles([Sn],null,Kn.errors,ii)}return Fo.length?Fo.map(ho=>ho.buildKeyframes()):[_n(Oe,[],[],[],0,xr,"",!1)]}visitTrigger(me,Oe){}visitState(me,Oe){}visitTransition(me,Oe){}visitAnimateChild(me,Oe){const Je=Oe.subInstructions.get(Oe.element);if(Je){const yt=Oe.createSubContext(me.options),Bt=Oe.currentTimeline.currentTime,yn=this._visitSubInstructions(Je,yt,yt.options);Bt!=yn&&Oe.transformIntoNewTimeline(yn)}Oe.previousNode=me}visitAnimateRef(me,Oe){const Je=Oe.createSubContext(me.options);Je.transformIntoNewTimeline(),this._applyAnimationRefDelays([me.options,me.animation.options],Oe,Je),this.visitReference(me.animation,Je),Oe.transformIntoNewTimeline(Je.currentTimeline.currentTime),Oe.previousNode=me}_applyAnimationRefDelays(me,Oe,Je){for(const yt of me){const Bt=yt?.delay;if(Bt){const yn="number"==typeof Bt?Bt:pr(da(Bt,yt?.params??{},Oe.errors));Je.delayNextStep(yn)}}}_visitSubInstructions(me,Oe,Je){let Bt=Oe.currentTimeline.currentTime;const yn=null!=Je.duration?pr(Je.duration):null,Sn=null!=Je.delay?pr(Je.delay):null;return 0!==yn&&me.forEach(ii=>{const ai=Oe.appendInstructionToTimeline(ii,yn,Sn);Bt=Math.max(Bt,ai.duration+ai.delay)}),Bt}visitReference(me,Oe){Oe.updateOptions(me.options,!0),os(this,me.animation,Oe),Oe.previousNode=me}visitSequence(me,Oe){const Je=Oe.subContextCount;let yt=Oe;const Bt=me.options;if(Bt&&(Bt.params||Bt.delay)&&(yt=Oe.createSubContext(Bt),yt.transformIntoNewTimeline(),null!=Bt.delay)){yt.previousNode.type==T.If.Style&&(yt.currentTimeline.snapshotCurrentStyles(),yt.previousNode=yr);const yn=pr(Bt.delay);yt.delayNextStep(yn)}me.steps.length&&(me.steps.forEach(yn=>os(this,yn,yt)),yt.currentTimeline.applyStylesToKeyframe(),yt.subContextCount>Je&&yt.transformIntoNewTimeline()),Oe.previousNode=me}visitGroup(me,Oe){const Je=[];let yt=Oe.currentTimeline.currentTime;const Bt=me.options&&me.options.delay?pr(me.options.delay):0;me.steps.forEach(yn=>{const Sn=Oe.createSubContext(me.options);Bt&&Sn.delayNextStep(Bt),os(this,yn,Sn),yt=Math.max(yt,Sn.currentTimeline.currentTime),Je.push(Sn.currentTimeline)}),Je.forEach(yn=>Oe.currentTimeline.mergeTimelineCollectedStyles(yn)),Oe.transformIntoNewTimeline(yt),Oe.previousNode=me}_visitTiming(me,Oe){if(me.dynamic){const Je=me.strValue;return Xo(Oe.params?da(Je,Oe.params,Oe.errors):Je,Oe.errors)}return{duration:me.duration,delay:me.delay,easing:me.easing}}visitAnimate(me,Oe){const Je=Oe.currentAnimateTimings=this._visitTiming(me.timings,Oe),yt=Oe.currentTimeline;Je.delay&&(Oe.incrementTime(Je.delay),yt.snapshotCurrentStyles());const Bt=me.style;Bt.type==T.If.Keyframes?this.visitKeyframes(Bt,Oe):(Oe.incrementTime(Je.duration),this.visitStyle(Bt,Oe),yt.applyStylesToKeyframe()),Oe.currentAnimateTimings=null,Oe.previousNode=me}visitStyle(me,Oe){const Je=Oe.currentTimeline,yt=Oe.currentAnimateTimings;!yt&&Je.hasCurrentStyleProperties()&&Je.forwardFrame();const Bt=yt&&yt.easing||me.easing;me.isEmptyStep?Je.applyEmptyStep(Bt):Je.setStyles(me.styles,Bt,Oe.errors,Oe.options),Oe.previousNode=me}visitKeyframes(me,Oe){const Je=Oe.currentAnimateTimings,yt=Oe.currentTimeline.duration,Bt=Je.duration,Sn=Oe.createSubContext().currentTimeline;Sn.easing=Je.easing,me.styles.forEach(ii=>{Sn.forwardTime((ii.offset||0)*Bt),Sn.setStyles(ii.styles,ii.easing,Oe.errors,Oe.options),Sn.applyStylesToKeyframe()}),Oe.currentTimeline.mergeTimelineCollectedStyles(Sn),Oe.transformIntoNewTimeline(yt+Bt),Oe.previousNode=me}visitQuery(me,Oe){const Je=Oe.currentTimeline.currentTime,yt=me.options||{},Bt=yt.delay?pr(yt.delay):0;Bt&&(Oe.previousNode.type===T.If.Style||0==Je&&Oe.currentTimeline.hasCurrentStyleProperties())&&(Oe.currentTimeline.snapshotCurrentStyles(),Oe.previousNode=yr);let yn=Je;const Sn=Oe.invokeQuery(me.selector,me.originalSelector,me.limit,me.includeSelf,!!yt.optional,Oe.errors);Oe.currentQueryTotal=Sn.length;let ii=null;Sn.forEach((ai,br)=>{Oe.currentQueryIndex=br;const Kn=Oe.createSubContext(me.options,ai);Bt&&Kn.delayNextStep(Bt),ai===Oe.element&&(ii=Kn.currentTimeline),os(this,me.animation,Kn),Kn.currentTimeline.applyStylesToKeyframe(),yn=Math.max(yn,Kn.currentTimeline.currentTime)}),Oe.currentQueryIndex=0,Oe.currentQueryTotal=0,Oe.transformIntoNewTimeline(yn),ii&&(Oe.currentTimeline.mergeTimelineCollectedStyles(ii),Oe.currentTimeline.snapshotCurrentStyles()),Oe.previousNode=me}visitStagger(me,Oe){const Je=Oe.parentContext,yt=Oe.currentTimeline,Bt=me.timings,yn=Math.abs(Bt.duration),Sn=yn*(Oe.currentQueryTotal-1);let ii=yn*Oe.currentQueryIndex;switch(Bt.duration<0?"reverse":Bt.easing){case"reverse":ii=Sn-ii;break;case"full":ii=Je.currentStaggerTime}const br=Oe.currentTimeline;ii&&br.delayNextStep(ii);const Kn=br.currentTime;os(this,me.animation,Oe),Oe.previousNode=me,Je.currentStaggerTime=yt.currentTime-Kn+(yt.startTime-Je.currentTimeline.startTime)}}const yr={};class Wr{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=yr;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(me,Oe,Je,yt,Bt,yn,Sn,ii){this._driver=me,this.element=Oe,this.subInstructions=Je,this._enterClassName=yt,this._leaveClassName=Bt,this.errors=yn,this.timelines=Sn,this.currentTimeline=ii||new zo(this._driver,Oe,0),Sn.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(me,Oe){if(!me)return;const Je=me;let yt=this.options;null!=Je.duration&&(yt.duration=pr(Je.duration)),null!=Je.delay&&(yt.delay=pr(Je.delay));const Bt=Je.params;if(Bt){let yn=yt.params;yn||(yn=this.options.params={}),Object.keys(Bt).forEach(Sn=>{(!Oe||!yn.hasOwnProperty(Sn))&&(yn[Sn]=da(Bt[Sn],yn,this.errors))})}}_copyOptions(){const me={};if(this.options){const Oe=this.options.params;if(Oe){const Je=me.params={};Object.keys(Oe).forEach(yt=>{Je[yt]=Oe[yt]})}}return me}createSubContext(me=null,Oe,Je){const yt=Oe||this.element,Bt=new Wr(this._driver,yt,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(yt,Je||0));return Bt.previousNode=this.previousNode,Bt.currentAnimateTimings=this.currentAnimateTimings,Bt.options=this._copyOptions(),Bt.updateOptions(me),Bt.currentQueryIndex=this.currentQueryIndex,Bt.currentQueryTotal=this.currentQueryTotal,Bt.parentContext=this,this.subContextCount++,Bt}transformIntoNewTimeline(me){return this.previousNode=yr,this.currentTimeline=this.currentTimeline.fork(this.element,me),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(me,Oe,Je){const yt={duration:Oe??me.duration,delay:this.currentTimeline.currentTime+(Je??0)+me.delay,easing:""},Bt=new ss(this._driver,me.element,me.keyframes,me.preStyleProps,me.postStyleProps,yt,me.stretchStartingKeyframe);return this.timelines.push(Bt),yt}incrementTime(me){this.currentTimeline.forwardTime(this.currentTimeline.duration+me)}delayNextStep(me){me>0&&this.currentTimeline.delayNextStep(me)}invokeQuery(me,Oe,Je,yt,Bt,yn){let Sn=[];if(yt&&Sn.push(this.element),me.length>0){me=(me=me.replace(En,"."+this._enterClassName)).replace(ir,"."+this._leaveClassName);let ai=this._driver.query(this.element,me,1!=Je);0!==Je&&(ai=Je<0?ai.slice(ai.length+Je,ai.length):ai.slice(0,Je)),Sn.push(...ai)}return!Bt&&0==Sn.length&&yn.push(function K(){return new C.wOt(3014,!1)}()),Sn}}class zo{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(me,Oe,Je,yt){this._driver=me,this.element=Oe,this.startTime=Je,this._elementTimelineStylesLookup=yt,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(Oe),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(Oe,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(me){const Oe=1===this._keyframes.size&&this._pendingStyles.size;this.duration||Oe?(this.forwardTime(this.currentTime+me),Oe&&this.snapshotCurrentStyles()):this.startTime+=me}fork(me,Oe){return this.applyStylesToKeyframe(),new zo(this._driver,me,Oe||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(me){this.applyStylesToKeyframe(),this.duration=me,this._loadKeyframe()}_updateStyle(me,Oe){this._localTimelineStyles.set(me,Oe),this._globalTimelineStyles.set(me,Oe),this._styleSummary.set(me,{time:this.currentTime,value:Oe})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(me){me&&this._previousKeyframe.set("easing",me);for(let[Oe,Je]of this._globalTimelineStyles)this._backFill.set(Oe,Je||T.kp),this._currentKeyframe.set(Oe,T.kp);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(me,Oe,Je,yt){Oe&&this._previousKeyframe.set("easing",Oe);const Bt=yt&&yt.params||{},yn=function Ps(Ft,me){const Oe=new Map;let Je;return Ft.forEach(yt=>{if("*"===yt){Je??=me.keys();for(let Bt of Je)Oe.set(Bt,T.kp)}else for(let[Bt,yn]of yt)Oe.set(Bt,yn)}),Oe}(me,this._globalTimelineStyles);for(let[Sn,ii]of yn){const ai=da(ii,Bt,Je);this._pendingStyles.set(Sn,ai),this._localTimelineStyles.has(Sn)||this._backFill.set(Sn,this._globalTimelineStyles.get(Sn)??T.kp),this._updateStyle(Sn,ai)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((me,Oe)=>{this._currentKeyframe.set(Oe,me)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((me,Oe)=>{this._currentKeyframe.has(Oe)||this._currentKeyframe.set(Oe,me)}))}snapshotCurrentStyles(){for(let[me,Oe]of this._localTimelineStyles)this._pendingStyles.set(me,Oe),this._updateStyle(me,Oe)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const me=[];for(let Oe in this._currentKeyframe)me.push(Oe);return me}mergeTimelineCollectedStyles(me){me._styleSummary.forEach((Oe,Je)=>{const yt=this._styleSummary.get(Je);(!yt||Oe.time>yt.time)&&this._updateStyle(Je,Oe.value)})}buildKeyframes(){this.applyStylesToKeyframe();const me=new Set,Oe=new Set,Je=1===this._keyframes.size&&0===this.duration;let yt=[];this._keyframes.forEach((Sn,ii)=>{const ai=new Map([...this._backFill,...Sn]);ai.forEach((br,Kn)=>{br===T.FX?me.add(Kn):br===T.kp&&Oe.add(Kn)}),Je||ai.set("offset",ii/this.duration),yt.push(ai)});const Bt=[...me.values()],yn=[...Oe.values()];if(Je){const Sn=yt[0],ii=new Map(Sn);Sn.set("offset",0),ii.set("offset",1),yt=[Sn,ii]}return _n(this.element,yt,Bt,yn,this.duration,this.startTime,this.easing,!1)}}class ss extends zo{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(me,Oe,Je,yt,Bt,yn,Sn=!1){super(me,Oe,yn.delay),this.keyframes=Je,this.preStyleProps=yt,this.postStyleProps=Bt,this._stretchStartingKeyframe=Sn,this.timings={duration:yn.duration,delay:yn.delay,easing:yn.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let me=this.keyframes,{delay:Oe,duration:Je,easing:yt}=this.timings;if(this._stretchStartingKeyframe&&Oe){const Bt=[],yn=Je+Oe,Sn=Oe/yn,ii=new Map(me[0]);ii.set("offset",0),Bt.push(ii);const ai=new Map(me[0]);ai.set("offset",Ho(Sn)),Bt.push(ai);const br=me.length-1;for(let Kn=1;Kn<=br;Kn++){let xr=new Map(me[Kn]);const Fo=xr.get("offset");xr.set("offset",Ho((Oe+Fo*Je)/yn)),Bt.push(xr)}Je=yn,Oe=0,yt="",me=Bt}return _n(this.element,me,this.preStyleProps,this.postStyleProps,Je,Oe,yt,!0)}}function Ho(Ft,me=3){const Oe=Math.pow(10,me-1);return Math.round(Ft*Oe)/Oe}function bi(Ft,me,Oe,Je,yt,Bt,yn,Sn,ii,ai,br,Kn,xr){return{type:0,element:Ft,triggerName:me,isRemovalTransition:yt,fromState:Oe,fromStyles:Bt,toState:Je,toStyles:yn,timelines:Sn,queriedElements:ii,preStyleProps:ai,postStyleProps:br,totalTime:Kn,errors:xr}}const go={};class Aa{_triggerName;ast;_stateStyles;constructor(me,Oe,Je){this._triggerName=me,this.ast=Oe,this._stateStyles=Je}match(me,Oe,Je,yt){return function oo(Ft,me,Oe,Je,yt){return Ft.some(Bt=>Bt(me,Oe,Je,yt))}(this.ast.matchers,me,Oe,Je,yt)}buildStyles(me,Oe,Je){let yt=this._stateStyles.get("*");return void 0!==me&&(yt=this._stateStyles.get(me?.toString())||yt),yt?yt.buildStyles(Oe,Je):new Map}build(me,Oe,Je,yt,Bt,yn,Sn,ii,ai,br){const Kn=[],xr=this.ast.options&&this.ast.options.params||go,ho=this.buildStyles(Je,Sn&&Sn.params||go,Kn),Po=ii&&ii.params||go,Tr=this.buildStyles(yt,Po,Kn),Ts=new Set,Ws=new Map,pa=new Map,ul="void"===yt,ds={params:Kc(Po,xr),delay:this.ast.options?.delay},Qc=br?[]:or(me,Oe,this.ast.animation,Bt,yn,ho,Tr,ds,ai,Kn);let pu=0;return Qc.forEach(sc=>{pu=Math.max(sc.duration+sc.delay,pu)}),Kn.length?bi(Oe,this._triggerName,Je,yt,ul,ho,Tr,[],[],Ws,pa,pu,Kn):(Qc.forEach(sc=>{const Ua=sc.element,ld=ze(Ws,Ua,new Set);sc.preStyleProps.forEach(Ac=>ld.add(Ac));const fp=ze(pa,Ua,new Set);sc.postStyleProps.forEach(Ac=>fp.add(Ac)),Ua!==Oe&&Ts.add(Ua)}),bi(Oe,this._triggerName,Je,yt,ul,ho,Tr,Qc,[...Ts.values()],Ws,pa,pu))}}function Kc(Ft,me){const Oe={...me};return Object.entries(Ft).forEach(([Je,yt])=>{null!=yt&&(Oe[Je]=yt)}),Oe}class kc{styles;defaultParams;normalizer;constructor(me,Oe,Je){this.styles=me,this.defaultParams=Oe,this.normalizer=Je}buildStyles(me,Oe){const Je=new Map,yt=Kc(me,this.defaultParams);return this.styles.styles.forEach(Bt=>{"string"!=typeof Bt&&Bt.forEach((yn,Sn)=>{yn&&(yn=da(yn,yt,Oe));const ii=this.normalizer.normalizePropertyName(Sn,Oe);yn=this.normalizer.normalizeStyleValue(Sn,ii,yn,Oe),Je.set(Sn,yn)})}),Je}}class _l{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(me,Oe,Je){this.name=me,this.ast=Oe,this._normalizer=Je,Oe.states.forEach(yt=>{this.states.set(yt.name,new kc(yt.style,yt.options&&yt.options.params||{},Je))}),Is(this.states,"true","1"),Is(this.states,"false","0"),Oe.transitions.forEach(yt=>{this.transitionFactories.push(new Aa(me,yt,this.states))}),this.fallbackTransition=function al(Ft,me){return new Aa(Ft,{type:T.If.Transition,animation:{type:T.If.Sequence,steps:[],options:null},matchers:[(yn,Sn)=>!0],options:null,queryCount:0,depCount:0},me)}(me,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(me,Oe,Je,yt){return this.transitionFactories.find(yn=>yn.match(me,Oe,Je,yt))||null}matchStyles(me,Oe,Je){return this.fallbackTransition.buildStyles(me,Oe,Je)}}function Is(Ft,me,Oe){Ft.has(me)?Ft.has(Oe)||Ft.set(Oe,Ft.get(me)):Ft.has(Oe)&&Ft.set(me,Ft.get(Oe))}const ll=new $t;class ku{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(me,Oe,Je){this.bodyNode=me,this._driver=Oe,this._normalizer=Je}register(me,Oe){const Je=[],Bt=ri(this._driver,Oe,Je,[]);if(Je.length)throw function Ve(){return new C.wOt(3503,!1)}();this._animations.set(me,Bt)}_buildPlayer(me,Oe,Je){const yt=me.element,Bt=vt(this._normalizer,me.keyframes,Oe,Je);return this._driver.animate(yt,Bt,me.duration,me.delay,me.easing,[],!0)}create(me,Oe,Je={}){const yt=[],Bt=this._animations.get(me);let yn;const Sn=new Map;if(Bt?(yn=or(this._driver,Oe,Bt,vs,rs,new Map,new Map,Je,ll,yt),yn.forEach(br=>{const Kn=ze(Sn,br.element,new Map);br.postStyleProps.forEach(xr=>Kn.set(xr,null))})):(yt.push(function Ie(){return new C.wOt(3300,!1)}()),yn=[]),yt.length)throw function Se(){return new C.wOt(3504,!1)}();Sn.forEach((br,Kn)=>{br.forEach((xr,Fo)=>{br.set(Fo,this._driver.computeStyle(Kn,Fo,T.kp))})});const ai=Qe(yn.map(br=>{const Kn=Sn.get(br.element);return this._buildPlayer(br,new Map,Kn)}));return this._playersById.set(me,ai),ai.onDestroy(()=>this.destroy(me)),this.players.push(ai),ai}destroy(me){const Oe=this._getPlayer(me);Oe.destroy(),this._playersById.delete(me);const Je=this.players.indexOf(Oe);Je>=0&&this.players.splice(Je,1)}_getPlayer(me){const Oe=this._playersById.get(me);if(!Oe)throw function de(){return new C.wOt(3301,!1)}();return Oe}listen(me,Oe,Je,yt){const Bt=qe(Oe,"","","");return Nt(this._getPlayer(me),Je,Bt,yt),()=>{}}command(me,Oe,Je,yt){if("register"==Je)return void this.register(me,yt[0]);if("create"==Je)return void this.create(me,Oe,yt[0]||{});const Bt=this._getPlayer(me);switch(Je){case"play":Bt.play();break;case"pause":Bt.pause();break;case"reset":Bt.reset();break;case"restart":Bt.restart();break;case"finish":Bt.finish();break;case"init":Bt.init();break;case"setPosition":Bt.setPosition(parseFloat(yt[0]));break;case"destroy":this.destroy(me)}}}const cl="ng-animate-queued",na="ng-animate-disabled",uo=[],du={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},gc={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ic="__ng_removed";class te{namespaceId;value;options;get params(){return this.options.params}constructor(me,Oe=""){this.namespaceId=Oe;const Je=me&&me.hasOwnProperty("value");if(this.value=function ei(Ft){return Ft??null}(Je?me.value:me),Je){const{value:Bt,...yn}=me;this.options=yn}else this.options={};this.options.params||(this.options.params={})}absorbOptions(me){const Oe=me.params;if(Oe){const Je=this.options.params;Object.keys(Oe).forEach(yt=>{null==Je[yt]&&(Je[yt]=Oe[yt])})}}}const he="void",$e=new te(he);class ct{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(me,Oe,Je){this.id=me,this.hostElement=Oe,this._engine=Je,this._hostClassName="ng-tns-"+me,Rn(Oe,this._hostClassName)}listen(me,Oe,Je,yt){if(!this._triggers.has(Oe))throw function le(){return new C.wOt(3302,!1)}();if(null==Je||0==Je.length)throw function xe(){return new C.wOt(3303,!1)}();if(!function Zn(Ft){return"start"==Ft||"done"==Ft}(Je))throw function We(){return new C.wOt(3400,!1)}();const Bt=ze(this._elementListeners,me,[]),yn={name:Oe,phase:Je,callback:yt};Bt.push(yn);const Sn=ze(this._engine.statesByElement,me,new Map);return Sn.has(Oe)||(Rn(me,ur),Rn(me,ur+"-"+Oe),Sn.set(Oe,$e)),()=>{this._engine.afterFlush(()=>{const ii=Bt.indexOf(yn);ii>=0&&Bt.splice(ii,1),this._triggers.has(Oe)||Sn.delete(Oe)})}}register(me,Oe){return!this._triggers.has(me)&&(this._triggers.set(me,Oe),!0)}_getTrigger(me){const Oe=this._triggers.get(me);if(!Oe)throw function st(){return new C.wOt(3401,!1)}();return Oe}trigger(me,Oe,Je,yt=!0){const Bt=this._getTrigger(Oe),yn=new an(this.id,Oe,me);let Sn=this._engine.statesByElement.get(me);Sn||(Rn(me,ur),Rn(me,ur+"-"+Oe),this._engine.statesByElement.set(me,Sn=new Map));let ii=Sn.get(Oe);const ai=new te(Je,this.id);if(!(Je&&Je.hasOwnProperty("value"))&&ii&&ai.absorbOptions(ii.options),Sn.set(Oe,ai),ii||(ii=$e),ai.value!==he&&ii.value===ai.value){if(!function jr(Ft,me){const Oe=Object.keys(Ft),Je=Object.keys(me);if(Oe.length!=Je.length)return!1;for(let yt=0;yt<Oe.length;yt++){const Bt=Oe[yt];if(!me.hasOwnProperty(Bt)||Ft[Bt]!==me[Bt])return!1}return!0}(ii.params,ai.params)){const Po=[],Tr=Bt.matchStyles(ii.value,ii.params,Po),Ts=Bt.matchStyles(ai.value,ai.params,Po);Po.length?this._engine.reportError(Po):this._engine.afterFlush(()=>{ya(me,Tr),Xa(me,Ts)})}return}const xr=ze(this._engine.playersByElement,me,[]);xr.forEach(Po=>{Po.namespaceId==this.id&&Po.triggerName==Oe&&Po.queued&&Po.destroy()});let Fo=Bt.matchTransition(ii.value,ai.value,me,ai.params),ho=!1;if(!Fo){if(!yt)return;Fo=Bt.fallbackTransition,ho=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:me,triggerName:Oe,transition:Fo,fromState:ii,toState:ai,player:yn,isFallbackTransition:ho}),ho||(Rn(me,cl),yn.onStart(()=>{nr(me,cl)})),yn.onDone(()=>{let Po=this.players.indexOf(yn);Po>=0&&this.players.splice(Po,1);const Tr=this._engine.playersByElement.get(me);if(Tr){let Ts=Tr.indexOf(yn);Ts>=0&&Tr.splice(Ts,1)}}),this.players.push(yn),xr.push(yn),yn}deregister(me){this._triggers.delete(me),this._engine.statesByElement.forEach(Oe=>Oe.delete(me)),this._elementListeners.forEach((Oe,Je)=>{this._elementListeners.set(Je,Oe.filter(yt=>yt.name!=me))})}clearElementCache(me){this._engine.statesByElement.delete(me),this._elementListeners.delete(me);const Oe=this._engine.playersByElement.get(me);Oe&&(Oe.forEach(Je=>Je.destroy()),this._engine.playersByElement.delete(me))}_signalRemovalForInnerTriggers(me,Oe){const Je=this._engine.driver.query(me,Ns,!0);Je.forEach(yt=>{if(yt[Ic])return;const Bt=this._engine.fetchNamespacesByElement(yt);Bt.size?Bt.forEach(yn=>yn.triggerLeaveAnimation(yt,Oe,!1,!0)):this.clearElementCache(yt)}),this._engine.afterFlushAnimationsDone(()=>Je.forEach(yt=>this.clearElementCache(yt)))}triggerLeaveAnimation(me,Oe,Je,yt){const Bt=this._engine.statesByElement.get(me),yn=new Map;if(Bt){const Sn=[];if(Bt.forEach((ii,ai)=>{if(yn.set(ai,ii.value),this._triggers.has(ai)){const br=this.trigger(me,ai,he,yt);br&&Sn.push(br)}}),Sn.length)return this._engine.markElementAsRemoved(this.id,me,!0,Oe,yn),Je&&Qe(Sn).onDone(()=>this._engine.processLeaveNode(me)),!0}return!1}prepareLeaveAnimationListeners(me){const Oe=this._elementListeners.get(me),Je=this._engine.statesByElement.get(me);if(Oe&&Je){const yt=new Set;Oe.forEach(Bt=>{const yn=Bt.name;if(yt.has(yn))return;yt.add(yn);const ii=this._triggers.get(yn).fallbackTransition,ai=Je.get(yn)||$e,br=new te(he),Kn=new an(this.id,yn,me);this._engine.totalQueuedPlayers++,this._queue.push({element:me,triggerName:yn,transition:ii,fromState:ai,toState:br,player:Kn,isFallbackTransition:!0})})}}removeNode(me,Oe){const Je=this._engine;if(me.childElementCount&&this._signalRemovalForInnerTriggers(me,Oe),this.triggerLeaveAnimation(me,Oe,!0))return;let yt=!1;if(Je.totalAnimations){const Bt=Je.players.length?Je.playersByQueriedElement.get(me):[];if(Bt&&Bt.length)yt=!0;else{let yn=me;for(;yn=yn.parentNode;)if(Je.statesByElement.get(yn)){yt=!0;break}}}if(this.prepareLeaveAnimationListeners(me),yt)Je.markElementAsRemoved(this.id,me,!1,Oe);else{const Bt=me[Ic];(!Bt||Bt===du)&&(Je.afterFlush(()=>this.clearElementCache(me)),Je.destroyInnerAnimations(me),Je._onRemovalComplete(me,Oe))}}insertNode(me,Oe){Rn(me,this._hostClassName)}drainQueuedTransitions(me){const Oe=[];return this._queue.forEach(Je=>{const yt=Je.player;if(yt.destroyed)return;const Bt=Je.element,yn=this._elementListeners.get(Bt);yn&&yn.forEach(Sn=>{if(Sn.name==Je.triggerName){const ii=qe(Bt,Je.triggerName,Je.fromState.value,Je.toState.value);ii._data=me,Nt(Je.player,Sn.phase,ii,Sn.callback)}}),yt.markedForDestroy?this._engine.afterFlush(()=>{yt.destroy()}):Oe.push(Je)}),this._queue=[],Oe.sort((Je,yt)=>{const Bt=Je.transition.ast.depCount,yn=yt.transition.ast.depCount;return 0==Bt||0==yn?Bt-yn:this._engine.driver.containsElement(Je.element,yt.element)?1:-1})}destroy(me){this.players.forEach(Oe=>Oe.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,me)}}class tn{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(me,Oe)=>{};_onRemovalComplete(me,Oe){this.onRemovalComplete(me,Oe)}constructor(me,Oe,Je){this.bodyNode=me,this.driver=Oe,this._normalizer=Je}get queuedPlayers(){const me=[];return this._namespaceList.forEach(Oe=>{Oe.players.forEach(Je=>{Je.queued&&me.push(Je)})}),me}createNamespace(me,Oe){const Je=new ct(me,Oe,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,Oe)?this._balanceNamespaceList(Je,Oe):(this.newHostElements.set(Oe,Je),this.collectEnterElement(Oe)),this._namespaceLookup[me]=Je}_balanceNamespaceList(me,Oe){const Je=this._namespaceList,yt=this.namespacesByHostElement;if(Je.length-1>=0){let yn=!1,Sn=this.driver.getParentElement(Oe);for(;Sn;){const ii=yt.get(Sn);if(ii){const ai=Je.indexOf(ii);Je.splice(ai+1,0,me),yn=!0;break}Sn=this.driver.getParentElement(Sn)}yn||Je.unshift(me)}else Je.push(me);return yt.set(Oe,me),me}register(me,Oe){let Je=this._namespaceLookup[me];return Je||(Je=this.createNamespace(me,Oe)),Je}registerTrigger(me,Oe,Je){let yt=this._namespaceLookup[me];yt&&yt.register(Oe,Je)&&this.totalAnimations++}destroy(me,Oe){me&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const Je=this._fetchNamespace(me);this.namespacesByHostElement.delete(Je.hostElement);const yt=this._namespaceList.indexOf(Je);yt>=0&&this._namespaceList.splice(yt,1),Je.destroy(Oe),delete this._namespaceLookup[me]}))}_fetchNamespace(me){return this._namespaceLookup[me]}fetchNamespacesByElement(me){const Oe=new Set,Je=this.statesByElement.get(me);if(Je)for(let yt of Je.values())if(yt.namespaceId){const Bt=this._fetchNamespace(yt.namespaceId);Bt&&Oe.add(Bt)}return Oe}trigger(me,Oe,Je,yt){if(Ci(Oe)){const Bt=this._fetchNamespace(me);if(Bt)return Bt.trigger(Oe,Je,yt),!0}return!1}insertNode(me,Oe,Je,yt){if(!Ci(Oe))return;const Bt=Oe[Ic];if(Bt&&Bt.setForRemoval){Bt.setForRemoval=!1,Bt.setForMove=!0;const yn=this.collectedLeaveElements.indexOf(Oe);yn>=0&&this.collectedLeaveElements.splice(yn,1)}if(me){const yn=this._fetchNamespace(me);yn&&yn.insertNode(Oe,Je)}yt&&this.collectEnterElement(Oe)}collectEnterElement(me){this.collectedEnterElements.push(me)}markElementAsDisabled(me,Oe){Oe?this.disabledNodes.has(me)||(this.disabledNodes.add(me),Rn(me,na)):this.disabledNodes.has(me)&&(this.disabledNodes.delete(me),nr(me,na))}removeNode(me,Oe,Je){if(Ci(Oe)){const yt=me?this._fetchNamespace(me):null;yt?yt.removeNode(Oe,Je):this.markElementAsRemoved(me,Oe,!1,Je);const Bt=this.namespacesByHostElement.get(Oe);Bt&&Bt.id!==me&&Bt.removeNode(Oe,Je)}else this._onRemovalComplete(Oe,Je)}markElementAsRemoved(me,Oe,Je,yt,Bt){this.collectedLeaveElements.push(Oe),Oe[Ic]={namespaceId:me,setForRemoval:yt,hasAnimation:Je,removedBeforeQueried:!1,previousTriggersValues:Bt}}listen(me,Oe,Je,yt,Bt){return Ci(Oe)?this._fetchNamespace(me).listen(Oe,Je,yt,Bt):()=>{}}_buildInstruction(me,Oe,Je,yt,Bt){return me.transition.build(this.driver,me.element,me.fromState.value,me.toState.value,Je,yt,me.fromState.options,me.toState.options,Oe,Bt)}destroyInnerAnimations(me){let Oe=this.driver.query(me,Ns,!0);Oe.forEach(Je=>this.destroyActiveAnimationsForElement(Je)),0!=this.playersByQueriedElement.size&&(Oe=this.driver.query(me,Qs,!0),Oe.forEach(Je=>this.finishActiveQueriedAnimationOnElement(Je)))}destroyActiveAnimationsForElement(me){const Oe=this.playersByElement.get(me);Oe&&Oe.forEach(Je=>{Je.queued?Je.markedForDestroy=!0:Je.destroy()})}finishActiveQueriedAnimationOnElement(me){const Oe=this.playersByQueriedElement.get(me);Oe&&Oe.forEach(Je=>Je.finish())}whenRenderingDone(){return new Promise(me=>{if(this.players.length)return Qe(this.players).onDone(()=>me());me()})}processLeaveNode(me){const Oe=me[Ic];if(Oe&&Oe.setForRemoval){if(me[Ic]=du,Oe.namespaceId){this.destroyInnerAnimations(me);const Je=this._fetchNamespace(Oe.namespaceId);Je&&Je.clearElementCache(me)}this._onRemovalComplete(me,Oe.setForRemoval)}me.classList?.contains(na)&&this.markElementAsDisabled(me,!1),this.driver.query(me,".ng-animate-disabled",!0).forEach(Je=>{this.markElementAsDisabled(Je,!1)})}flush(me=-1){let Oe=[];if(this.newHostElements.size&&(this.newHostElements.forEach((Je,yt)=>this._balanceNamespaceList(Je,yt)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let Je=0;Je<this.collectedEnterElements.length;Je++)Rn(this.collectedEnterElements[Je],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const Je=[];try{Oe=this._flushAnimations(Je,me)}finally{for(let yt=0;yt<Je.length;yt++)Je[yt]()}}else for(let Je=0;Je<this.collectedLeaveElements.length;Je++)this.processLeaveNode(this.collectedLeaveElements[Je]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(Je=>Je()),this._flushFns=[],this._whenQuietFns.length){const Je=this._whenQuietFns;this._whenQuietFns=[],Oe.length?Qe(Oe).onDone(()=>{Je.forEach(yt=>yt())}):Je.forEach(yt=>yt())}}reportError(me){throw function ut(){return new C.wOt(3402,!1)}()}_flushAnimations(me,Oe){const Je=new $t,yt=[],Bt=new Map,yn=[],Sn=new Map,ii=new Map,ai=new Map,br=new Set;this.disabledNodes.forEach(Lo=>{br.add(Lo);const Uo=this.driver.query(Lo,".ng-animate-queued",!0);for(let No=0;No<Uo.length;No++)br.add(Uo[No])});const Kn=this.bodyNode,xr=Array.from(this.statesByElement.keys()),Fo=Rr(xr,this.collectedEnterElements),ho=new Map;let Po=0;Fo.forEach((Lo,Uo)=>{const No=vs+Po++;ho.set(Uo,No),Lo.forEach(Er=>Rn(Er,No))});const Tr=[],Ts=new Set,Ws=new Set;for(let Lo=0;Lo<this.collectedLeaveElements.length;Lo++){const Uo=this.collectedLeaveElements[Lo],No=Uo[Ic];No&&No.setForRemoval&&(Tr.push(Uo),Ts.add(Uo),No.hasAnimation?this.driver.query(Uo,".ng-star-inserted",!0).forEach(Er=>Ts.add(Er)):Ws.add(Uo))}const pa=new Map,ul=Rr(xr,Array.from(Ts));ul.forEach((Lo,Uo)=>{const No=rs+Po++;pa.set(Uo,No),Lo.forEach(Er=>Rn(Er,No))}),me.push(()=>{Fo.forEach((Lo,Uo)=>{const No=ho.get(Uo);Lo.forEach(Er=>nr(Er,No))}),ul.forEach((Lo,Uo)=>{const No=pa.get(Uo);Lo.forEach(Er=>nr(Er,No))}),Tr.forEach(Lo=>{this.processLeaveNode(Lo)})});const ds=[],Qc=[];for(let Lo=this._namespaceList.length-1;Lo>=0;Lo--)this._namespaceList[Lo].drainQueuedTransitions(Oe).forEach(No=>{const Er=No.player,Ss=No.element;if(ds.push(Er),this.collectedEnterElements.length){const ba=Ss[Ic];if(ba&&ba.setForMove){if(ba.previousTriggersValues&&ba.previousTriggersValues.has(No.triggerName)){const Fl=ba.previousTriggersValues.get(No.triggerName),Iu=this.statesByElement.get(No.element);if(Iu&&Iu.has(No.triggerName)){const Ld=Iu.get(No.triggerName);Ld.value=Fl,Iu.set(No.triggerName,Ld)}}return void Er.destroy()}}const jc=!Kn||!this.driver.containsElement(Kn,Ss),Ol=pa.get(Ss),cd=ho.get(Ss),bl=this._buildInstruction(No,Je,cd,Ol,jc);if(bl.errors&&bl.errors.length)return void Qc.push(bl);if(jc)return Er.onStart(()=>ya(Ss,bl.fromStyles)),Er.onDestroy(()=>Xa(Ss,bl.toStyles)),void yt.push(Er);if(No.isFallbackTransition)return Er.onStart(()=>ya(Ss,bl.fromStyles)),Er.onDestroy(()=>Xa(Ss,bl.toStyles)),void yt.push(Er);const Kl=[];bl.timelines.forEach(ba=>{ba.stretchStartingKeyframe=!0,this.disabledNodes.has(ba.element)||Kl.push(ba)}),bl.timelines=Kl,Je.append(Ss,bl.timelines),yn.push({instruction:bl,player:Er,element:Ss}),bl.queriedElements.forEach(ba=>ze(Sn,ba,[]).push(Er)),bl.preStyleProps.forEach((ba,Fl)=>{if(ba.size){let Iu=ii.get(Fl);Iu||ii.set(Fl,Iu=new Set),ba.forEach((Ld,yu)=>Iu.add(yu))}}),bl.postStyleProps.forEach((ba,Fl)=>{let Iu=ai.get(Fl);Iu||ai.set(Fl,Iu=new Set),ba.forEach((Ld,yu)=>Iu.add(yu))})});if(Qc.length){const Lo=[];Qc.forEach(Uo=>{Lo.push(function ye(){return new C.wOt(3505,!1)}())}),ds.forEach(Uo=>Uo.destroy()),this.reportError(Lo)}const pu=new Map,sc=new Map;yn.forEach(Lo=>{const Uo=Lo.element;Je.has(Uo)&&(sc.set(Uo,Uo),this._beforeAnimationBuild(Lo.player.namespaceId,Lo.instruction,pu))}),yt.forEach(Lo=>{const Uo=Lo.element;this._getPreviousPlayers(Uo,!1,Lo.namespaceId,Lo.triggerName,null).forEach(Er=>{ze(pu,Uo,[]).push(Er),Er.destroy()})});const Ua=Tr.filter(Lo=>as(Lo,ii,ai)),ld=new Map;ti(ld,this.driver,Ws,ai,T.kp).forEach(Lo=>{as(Lo,ii,ai)&&Ua.push(Lo)});const Ac=new Map;Fo.forEach((Lo,Uo)=>{ti(Ac,this.driver,new Set(Lo),ii,T.FX)}),Ua.forEach(Lo=>{const Uo=ld.get(Lo),No=Ac.get(Lo);ld.set(Lo,new Map([...Uo?.entries()??[],...No?.entries()??[]]))});const np=[],dh=[],mp={};yn.forEach(Lo=>{const{element:Uo,player:No,instruction:Er}=Lo;if(Je.has(Uo)){if(br.has(Uo))return No.onDestroy(()=>Xa(Uo,Er.toStyles)),No.disabled=!0,No.overrideTotalTime(Er.totalTime),void yt.push(No);let Ss=mp;if(sc.size>1){let Ol=Uo;const cd=[];for(;Ol=Ol.parentNode;){const bl=sc.get(Ol);if(bl){Ss=bl;break}cd.push(Ol)}cd.forEach(bl=>sc.set(bl,Ss))}const jc=this._buildAnimation(No.namespaceId,Er,pu,Bt,Ac,ld);if(No.setRealPlayer(jc),Ss===mp)np.push(No);else{const Ol=this.playersByElement.get(Ss);Ol&&Ol.length&&(No.parentPlayer=Qe(Ol)),yt.push(No)}}else ya(Uo,Er.fromStyles),No.onDestroy(()=>Xa(Uo,Er.toStyles)),dh.push(No),br.has(Uo)&&yt.push(No)}),dh.forEach(Lo=>{const Uo=Bt.get(Lo.element);if(Uo&&Uo.length){const No=Qe(Uo);Lo.setRealPlayer(No)}}),yt.forEach(Lo=>{Lo.parentPlayer?Lo.syncPlayerEvents(Lo.parentPlayer):Lo.destroy()});for(let Lo=0;Lo<Tr.length;Lo++){const Uo=Tr[Lo],No=Uo[Ic];if(nr(Uo,rs),No&&No.hasAnimation)continue;let Er=[];if(Sn.size){let jc=Sn.get(Uo);jc&&jc.length&&Er.push(...jc);let Ol=this.driver.query(Uo,Qs,!0);for(let cd=0;cd<Ol.length;cd++){let bl=Sn.get(Ol[cd]);bl&&bl.length&&Er.push(...bl)}}const Ss=Er.filter(jc=>!jc.destroyed);Ss.length?dr(this,Uo,Ss):this.processLeaveNode(Uo)}return Tr.length=0,np.forEach(Lo=>{this.players.push(Lo),Lo.onDone(()=>{Lo.destroy();const Uo=this.players.indexOf(Lo);this.players.splice(Uo,1)}),Lo.play()}),np}afterFlush(me){this._flushFns.push(me)}afterFlushAnimationsDone(me){this._whenQuietFns.push(me)}_getPreviousPlayers(me,Oe,Je,yt,Bt){let yn=[];if(Oe){const Sn=this.playersByQueriedElement.get(me);Sn&&(yn=Sn)}else{const Sn=this.playersByElement.get(me);if(Sn){const ii=!Bt||Bt==he;Sn.forEach(ai=>{ai.queued||!ii&&ai.triggerName!=yt||yn.push(ai)})}}return(Je||yt)&&(yn=yn.filter(Sn=>!(Je&&Je!=Sn.namespaceId||yt&&yt!=Sn.triggerName))),yn}_beforeAnimationBuild(me,Oe,Je){const Bt=Oe.element,yn=Oe.isRemovalTransition?void 0:me,Sn=Oe.isRemovalTransition?void 0:Oe.triggerName;for(const ii of Oe.timelines){const ai=ii.element,br=ai!==Bt,Kn=ze(Je,ai,[]);this._getPreviousPlayers(ai,br,yn,Sn,Oe.toState).forEach(Fo=>{const ho=Fo.getRealPlayer();ho.beforeDestroy&&ho.beforeDestroy(),Fo.destroy(),Kn.push(Fo)})}ya(Bt,Oe.fromStyles)}_buildAnimation(me,Oe,Je,yt,Bt,yn){const Sn=Oe.triggerName,ii=Oe.element,ai=[],br=new Set,Kn=new Set,xr=Oe.timelines.map(ho=>{const Po=ho.element;br.add(Po);const Tr=Po[Ic];if(Tr&&Tr.removedBeforeQueried)return new T.sf(ho.duration,ho.delay);const Ts=Po!==ii,Ws=function Or(Ft){const me=[];return Zo(Ft,me),me}((Je.get(Po)||uo).map(pu=>pu.getRealPlayer())).filter(pu=>!!pu.element&&pu.element===Po),pa=Bt.get(Po),ul=yn.get(Po),ds=vt(this._normalizer,ho.keyframes,pa,ul),Qc=this._buildPlayer(ho,ds,Ws);if(ho.subTimeline&&yt&&Kn.add(Po),Ts){const pu=new an(me,Sn,Po);pu.setRealPlayer(Qc),ai.push(pu)}return Qc});ai.forEach(ho=>{ze(this.playersByQueriedElement,ho.element,[]).push(ho),ho.onDone(()=>function oi(Ft,me,Oe){let Je=Ft.get(me);if(Je){if(Je.length){const yt=Je.indexOf(Oe);Je.splice(yt,1)}0==Je.length&&Ft.delete(me)}return Je}(this.playersByQueriedElement,ho.element,ho))}),br.forEach(ho=>Rn(ho,to));const Fo=Qe(xr);return Fo.onDestroy(()=>{br.forEach(ho=>nr(ho,to)),Xa(ii,Oe.toStyles)}),Kn.forEach(ho=>{ze(yt,ho,[]).push(Fo)}),Fo}_buildPlayer(me,Oe,Je){return Oe.length>0?this.driver.animate(me.element,Oe,me.duration,me.delay,me.easing,Je):new T.sf(me.duration,me.delay)}}class an{namespaceId;triggerName;element;_player=new T.sf;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(me,Oe,Je){this.namespaceId=me,this.triggerName=Oe,this.element=Je}setRealPlayer(me){this._containsRealPlayer||(this._player=me,this._queuedCallbacks.forEach((Oe,Je)=>{Oe.forEach(yt=>Nt(me,Je,void 0,yt))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(me.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(me){this.totalTime=me}syncPlayerEvents(me){const Oe=this._player;Oe.triggerCallback&&me.onStart(()=>Oe.triggerCallback("start")),me.onDone(()=>this.finish()),me.onDestroy(()=>this.destroy())}_queueEvent(me,Oe){ze(this._queuedCallbacks,me,[]).push(Oe)}onDone(me){this.queued&&this._queueEvent("done",me),this._player.onDone(me)}onStart(me){this.queued&&this._queueEvent("start",me),this._player.onStart(me)}onDestroy(me){this.queued&&this._queueEvent("destroy",me),this._player.onDestroy(me)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(me){this.queued||this._player.setPosition(me)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(me){const Oe=this._player;Oe.triggerCallback&&Oe.triggerCallback(me)}}function Ci(Ft){return Ft&&1===Ft.nodeType}function vr(Ft,me){const Oe=Ft.style.display;return Ft.style.display=me??"none",Oe}function ti(Ft,me,Oe,Je,yt){const Bt=[];Oe.forEach(ii=>Bt.push(vr(ii)));const yn=[];Je.forEach((ii,ai)=>{const br=new Map;ii.forEach(Kn=>{const xr=me.computeStyle(ai,Kn,yt);br.set(Kn,xr),(!xr||0==xr.length)&&(ai[Ic]=gc,yn.push(ai))}),Ft.set(ai,br)});let Sn=0;return Oe.forEach(ii=>vr(ii,Bt[Sn++])),yn}function Rr(Ft,me){const Oe=new Map;if(Ft.forEach(Sn=>Oe.set(Sn,[])),0==me.length)return Oe;const yt=new Set(me),Bt=new Map;function yn(Sn){if(!Sn)return 1;let ii=Bt.get(Sn);if(ii)return ii;const ai=Sn.parentNode;return ii=Oe.has(ai)?ai:yt.has(ai)?1:yn(ai),Bt.set(Sn,ii),ii}return me.forEach(Sn=>{const ii=yn(Sn);1!==ii&&Oe.get(ii).push(Sn)}),Oe}function Rn(Ft,me){Ft.classList?.add(me)}function nr(Ft,me){Ft.classList?.remove(me)}function dr(Ft,me,Oe){Qe(Oe).onDone(()=>Ft.processLeaveNode(me))}function Zo(Ft,me){for(let Oe=0;Oe<Ft.length;Oe++){const Je=Ft[Oe];Je instanceof T.ui?Zo(Je.players,me):me.push(Je)}}function as(Ft,me,Oe){const Je=Oe.get(Ft);if(!Je)return!1;let yt=me.get(Ft);return yt?Je.forEach(Bt=>yt.add(Bt)):me.set(Ft,Je),Oe.delete(Ft),!0}class $s{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(me,Oe)=>{};constructor(me,Oe,Je){this._driver=Oe,this._normalizer=Je,this._transitionEngine=new tn(me.body,Oe,Je),this._timelineEngine=new ku(me.body,Oe,Je),this._transitionEngine.onRemovalComplete=(yt,Bt)=>this.onRemovalComplete(yt,Bt)}registerTrigger(me,Oe,Je,yt,Bt){const yn=me+"-"+yt;let Sn=this._triggerCache[yn];if(!Sn){const ii=[],br=ri(this._driver,Bt,ii,[]);if(ii.length)throw function ke(){return new C.wOt(3404,!1)}();Sn=function fi(Ft,me,Oe){return new _l(Ft,me,Oe)}(yt,br,this._normalizer),this._triggerCache[yn]=Sn}this._transitionEngine.registerTrigger(Oe,yt,Sn)}register(me,Oe){this._transitionEngine.register(me,Oe)}destroy(me,Oe){this._transitionEngine.destroy(me,Oe)}onInsert(me,Oe,Je,yt){this._transitionEngine.insertNode(me,Oe,Je,yt)}onRemove(me,Oe,Je){this._transitionEngine.removeNode(me,Oe,Je)}disableAnimations(me,Oe){this._transitionEngine.markElementAsDisabled(me,Oe)}process(me,Oe,Je,yt){if("@"==Je.charAt(0)){const[Bt,yn]=Ge(Je);this._timelineEngine.command(Bt,Oe,yn,yt)}else this._transitionEngine.trigger(me,Oe,Je,yt)}listen(me,Oe,Je,yt,Bt){if("@"==Je.charAt(0)){const[yn,Sn]=Ge(Je);return this._timelineEngine.listen(yn,Oe,Sn,Bt)}return this._transitionEngine.listen(me,Oe,Je,yt,Bt)}flush(me=-1){this._transitionEngine.flush(me)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(me){this._transitionEngine.afterFlushAnimationsDone(me)}}let Qa=(()=>{class Ft{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(Oe,Je,yt){this._element=Oe,this._startStyles=Je,this._endStyles=yt;let Bt=Ft.initialStylesByElement.get(Oe);Bt||Ft.initialStylesByElement.set(Oe,Bt=new Map),this._initialStyles=Bt}start(){this._state<1&&(this._startStyles&&Xa(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Xa(this._element,this._initialStyles),this._endStyles&&(Xa(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Ft.initialStylesByElement.delete(this._element),this._startStyles&&(ya(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ya(this._element,this._endStyles),this._endStyles=null),Xa(this._element,this._initialStyles),this._state=3)}}return Ft})();function Vs(Ft){let me=null;return Ft.forEach((Oe,Je)=>{(function ga(Ft){return"display"===Ft||"position"===Ft})(Je)&&(me=me||new Map,me.set(Je,Oe))}),me}class Rl{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(me,Oe,Je,yt){this.element=me,this.keyframes=Oe,this.options=Je,this._specialStyles=yt,this._duration=Je.duration,this._delay=Je.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(me=>me()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const me=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,me,this.options),this._finalKeyframe=me.length?me[me.length-1]:new Map;const Oe=()=>this._onFinish();this.domPlayer.addEventListener("finish",Oe),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",Oe)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(me){const Oe=[];return me.forEach(Je=>{Oe.push(Object.fromEntries(Je))}),Oe}_triggerWebAnimation(me,Oe,Je){return me.animate(this._convertKeyframesToObject(Oe),Je)}onStart(me){this._originalOnStartFns.push(me),this._onStartFns.push(me)}onDone(me){this._originalOnDoneFns.push(me),this._onDoneFns.push(me)}onDestroy(me){this._onDestroyFns.push(me)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(me=>me()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(me=>me()),this._onDestroyFns=[])}setPosition(me){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=me*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const me=new Map;this.hasStarted()&&this._finalKeyframe.forEach((Je,yt)=>{"offset"!==yt&&me.set(yt,this._finished?Je:Gs(this.element,yt))}),this.currentSnapshot=me}triggerCallback(me){const Oe="start"===me?this._onStartFns:this._onDoneFns;Oe.forEach(Je=>Je()),Oe.length=0}}class gn{validateStyleProperty(me){return!0}validateAnimatableStyleProperty(me){return!0}containsElement(me,Oe){return Vt(me,Oe)}getParentElement(me){return Dn(me)}query(me,Oe,Je){return Fn(me,Oe,Je)}computeStyle(me,Oe,Je){return Gs(me,Oe)}animate(me,Oe,Je,yt,Bt,yn=[]){const ii={duration:Je,delay:yt,fill:0==yt?"both":"forwards"};Bt&&(ii.easing=Bt);const ai=new Map,br=yn.filter(Fo=>Fo instanceof Rl);Wo(Je,yt)&&br.forEach(Fo=>{Fo.currentSnapshot.forEach((ho,Po)=>ai.set(Po,ho))});let Kn=ks(Oe).map(Fo=>new Map(Fo));Kn=function Il(Ft,me,Oe){if(Oe.size&&me.length){let Je=me[0],yt=[];if(Oe.forEach((Bt,yn)=>{Je.has(yn)||yt.push(yn),Je.set(yn,Bt)}),yt.length)for(let Bt=1;Bt<me.length;Bt++){let yn=me[Bt];yt.forEach(Sn=>yn.set(Sn,Gs(Ft,Sn)))}}return me}(me,Kn,ai);const xr=function oc(Ft,me){let Oe=null,Je=null;return Array.isArray(me)&&me.length?(Oe=Vs(me[0]),me.length>1&&(Je=Vs(me[me.length-1]))):me instanceof Map&&(Oe=Vs(me)),Oe||Je?new Qa(Ft,Oe,Je):null}(me,Kn);return new Rl(me,Kn,ii,xr)}}function po(Ft,me){return"noop"===Ft?new $s(me,new $n,new Ki):new $s(me,new gn,new vl)}class Ys{_driver;_animationAst;constructor(me,Oe){this._driver=me;const Je=[],Bt=ri(me,Oe,Je,[]);if(Je.length)throw function Fe(){return new C.wOt(3500,!1)}();this._animationAst=Bt}buildTimelines(me,Oe,Je,yt,Bt){const yn=Array.isArray(Oe)?ol(Oe):Oe,Sn=Array.isArray(Je)?ol(Je):Je,ii=[];Bt=Bt||new $t;const ai=or(this._driver,me,this._animationAst,vs,rs,yn,Sn,yt,Bt,ii);if(ii.length)throw function _e(){return new C.wOt(3501,!1)}();return ai}}const ts="@.disabled";class Js{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(me,Oe,Je,yt){this.namespaceId=me,this.delegate=Oe,this.engine=Je,this._onDestroy=yt}get data(){return this.delegate.data}destroyNode(me){this.delegate.destroyNode?.(me)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(me,Oe){return this.delegate.createElement(me,Oe)}createComment(me){return this.delegate.createComment(me)}createText(me){return this.delegate.createText(me)}appendChild(me,Oe){this.delegate.appendChild(me,Oe),this.engine.onInsert(this.namespaceId,Oe,me,!1)}insertBefore(me,Oe,Je,yt=!0){this.delegate.insertBefore(me,Oe,Je),this.engine.onInsert(this.namespaceId,Oe,me,yt)}removeChild(me,Oe,Je){this.parentNode(Oe)&&this.engine.onRemove(this.namespaceId,Oe,this.delegate)}selectRootElement(me,Oe){return this.delegate.selectRootElement(me,Oe)}parentNode(me){return this.delegate.parentNode(me)}nextSibling(me){return this.delegate.nextSibling(me)}setAttribute(me,Oe,Je,yt){this.delegate.setAttribute(me,Oe,Je,yt)}removeAttribute(me,Oe,Je){this.delegate.removeAttribute(me,Oe,Je)}addClass(me,Oe){this.delegate.addClass(me,Oe)}removeClass(me,Oe){this.delegate.removeClass(me,Oe)}setStyle(me,Oe,Je,yt){this.delegate.setStyle(me,Oe,Je,yt)}removeStyle(me,Oe,Je){this.delegate.removeStyle(me,Oe,Je)}setProperty(me,Oe,Je){"@"==Oe.charAt(0)&&Oe==ts?this.disableAnimations(me,!!Je):this.delegate.setProperty(me,Oe,Je)}setValue(me,Oe){this.delegate.setValue(me,Oe)}listen(me,Oe,Je){return this.delegate.listen(me,Oe,Je)}disableAnimations(me,Oe){this.engine.disableAnimations(me,Oe)}}class va extends Js{factory;constructor(me,Oe,Je,yt,Bt){super(Oe,Je,yt,Bt),this.factory=me,this.namespaceId=Oe}setProperty(me,Oe,Je){"@"==Oe.charAt(0)?"."==Oe.charAt(1)&&Oe==ts?this.disableAnimations(me,Je=void 0===Je||!!Je):this.engine.process(this.namespaceId,me,Oe.slice(1),Je):this.delegate.setProperty(me,Oe,Je)}listen(me,Oe,Je){if("@"==Oe.charAt(0)){const yt=function Ma(Ft){switch(Ft){case"body":return document.body;case"document":return document;case"window":return window;default:return Ft}}(me);let Bt=Oe.slice(1),yn="";return"@"!=Bt.charAt(0)&&([Bt,yn]=function Pa(Ft){const me=Ft.indexOf(".");return[Ft.substring(0,me),Ft.slice(me+1)]}(Bt)),this.engine.listen(this.namespaceId,yt,Bt,yn,Sn=>{this.factory.scheduleListenerCallback(Sn._data||-1,Je,Sn)})}return this.delegate.listen(me,Oe,Je)}}class Ul{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(me,Oe,Je){this.delegate=me,this.engine=Oe,this._zone=Je,Oe.onRemovalComplete=(yt,Bt)=>{Bt?.removeChild(null,yt)}}createRenderer(me,Oe){const yt=this.delegate.createRenderer(me,Oe);if(!me||!Oe?.data?.animation){const ai=this._rendererCache;let br=ai.get(yt);return br||(br=new Js("",yt,this.engine,()=>ai.delete(yt)),ai.set(yt,br)),br}const Bt=Oe.id,yn=Oe.id+"-"+this._currentId;this._currentId++,this.engine.register(yn,me);const Sn=ai=>{Array.isArray(ai)?ai.forEach(Sn):this.engine.registerTrigger(Bt,yn,me,ai.name,ai)};return Oe.data.animation.forEach(Sn),new va(this,yn,yt,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(me,Oe,Je){if(me>=0&&me<this._microtaskId)return void this._zone.run(()=>Oe(Je));const yt=this._animationCallbacksBuffer;0==yt.length&&queueMicrotask(()=>{this._zone.run(()=>{yt.forEach(Bt=>{const[yn,Sn]=Bt;yn(Sn)}),this._animationCallbacksBuffer=[]})}),yt.push([Oe,Je])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}},7705:(m,y,b)=>{"use strict";b.d(y,{$C:()=>qA,$GK:()=>es,$MX:()=>A1,AVh:()=>iD,Aen:()=>sg,Af3:()=>ts,Agw:()=>qm,An2:()=>Wp,B4B:()=>WT,BIS:()=>Gf,BMQ:()=>CM,C4Q:()=>sS,C5r:()=>yR,C6U:()=>iN,CGW:()=>qp,Co$:()=>m3,DH7:()=>uy,DNE:()=>JA,Dyx:()=>p9,E5c:()=>cb,EBC:()=>WP,EFF:()=>gN,EJ8:()=>_3,EWP:()=>UR,EmA:()=>du,FRM:()=>ie,FS9:()=>JM,FsC:()=>v3,G2t:()=>kn,GBs:()=>nR,GFd:()=>E3,H3F:()=>P3,H5H:()=>cD,H8p:()=>ti,HJs:()=>mx,HbH:()=>g4,Hbi:()=>CQ,Ifb:()=>Ko,JRh:()=>ly,JZv:()=>De,Jv_:()=>bN,KH2:()=>ry,KVO:()=>Ia,Kcf:()=>FI,L39:()=>oU,LHq:()=>CD,LfX:()=>Ii,Lme:()=>oR,MKu:()=>yv,Mz_:()=>vD,N4e:()=>Ys,NAR:()=>Lu,NYb:()=>kj,Njj:()=>ro,NyB:()=>oN,O8t:()=>Mw,OA$:()=>ue,OM3:()=>yS,Obh:()=>qS,Ocv:()=>KN,Ol2:()=>zA,PLl:()=>$g,QTQ:()=>JI,QZP:()=>YR,Ql9:()=>gb,QuC:()=>uo,R50:()=>cy,R7$:()=>FC,RV6:()=>Qp,Rfq:()=>le,RxE:()=>ix,SKi:()=>Ca,SdG:()=>V9,SjE:()=>Cw,SmG:()=>Dw,SpI:()=>bD,TL$:()=>S1,Tbb:()=>Ve,Tg_:()=>FD,UR7:()=>Ue,Ua0:()=>Jn,Udg:()=>sU,UyX:()=>G6,VBU:()=>g3,Vm6:()=>k4,Vns:()=>J0,Vt3:()=>XA,WHO:()=>KE,WPN:()=>O1,WQX:()=>Mr,XpG:()=>Q4,Xx1:()=>En,Y8G:()=>BS,Z63:()=>ll,Z7z:()=>A4,ZF7:()=>I1,ZvI:()=>T4,Zy3:()=>H,_9s:()=>DA,_q3:()=>Jp,aKT:()=>fm,abz:()=>Yl,bIt:()=>K4,bMT:()=>EN,bVm:()=>VS,bc$:()=>x1,bkB:()=>zr,brH:()=>kN,c1b:()=>ME,cWb:()=>N6,czy:()=>rE,e01:()=>H3,e5t:()=>V6,eBV:()=>Pr,ebz:()=>Q0,eq3:()=>XS,eu8:()=>jS,f$h:()=>BI,fX1:()=>I4,fpN:()=>H_,gRc:()=>kR,gXe:()=>B0,geq:()=>LE,giA:()=>FS,h9k:()=>GI,hFB:()=>g1,hVU:()=>Dj,hnV:()=>dM,i5U:()=>DN,iLQ:()=>Q1,j41:()=>rb,jDH:()=>Vt,jNT:()=>QE,k0s:()=>dw,kS0:()=>Xe,kdw:()=>ir,l4e:()=>xD,lJ4:()=>pb,lNU:()=>G,lV:()=>SN,l_i:()=>gR,lsd:()=>nN,mGM:()=>tN,mal:()=>Qn,mq5:()=>mv,mxI:()=>ub,n$t:()=>VP,nI1:()=>Y9,nKC:()=>ur,nM4:()=>T3,ngT:()=>Ke,npT:()=>BP,nrm:()=>pw,o8S:()=>Yf,oH4:()=>Ew,osQ:()=>B6,phd:()=>Aj,plB:()=>q0,qSk:()=>Mf,qex:()=>hw,rXU:()=>N1,rcV:()=>S_,s1E:()=>vR,sFG:()=>VL,sGs:()=>TN,sMw:()=>SD,sZ2:()=>Pl,sbv:()=>BV,sdS:()=>sN,tSv:()=>jI,tdH:()=>_t,uvJ:()=>Or,vPA:()=>YC,vxM:()=>D4,w6W:()=>qC,wEZ:()=>rN,wOt:()=>Q,wjB:()=>mR,wni:()=>oy,xGo:()=>vh,xc7:()=>lw,xe9:()=>vb,yjJ:()=>ZM,zJS:()=>uc,zZn:()=>$l,zcH:()=>zp,ziG:()=>wN,zjR:()=>U3}),b(467);var C=b(3488),E=b(4412),D=b(1413),k=b(8359),R=b(6354);const G="https://g.co/ng/security#xss";class Q extends Error{code;constructor(p,h){super(H(p,h)),this.code=p}}function H(u,p){return`NG0${Math.abs(u)}${p?": "+p:""}`}const Z=Symbol("InputSignalNode#UNSET"),X={...C.s0,transformFn:void 0,applyValueToInputSignal(u,p){(0,C.j2)(u,p)}};function q(u,p){const h=Object.create(X);function g(){if((0,C.mK)(h),h.value===Z)throw new Q(-950,!1);return h.value}return h.value=u,h.transformFn=p?.transform,g[C.bh]=h,g}function ne(u){return{toString:u}.toString()}const Y="__parameters__";function K(u,p,h){return ne(()=>{const g=function n(u){return function(...h){if(u){const g=u(...h);for(const S in g)this[S]=g[S]}}}(p);function S(...A){if(this instanceof S)return g.apply(this,A),this;const L=new S(...A);return ce.annotation=L,ce;function ce(Ce,Ye,at){const xt=Ce.hasOwnProperty(Y)?Ce[Y]:Object.defineProperty(Ce,Y,{value:[]})[Y];for(;xt.length<=at;)xt.push(null);return(xt[at]=xt[at]||[]).push(L),Ce}}return h&&(S.prototype=Object.create(h.prototype)),S.prototype.ngMetadataName=u,S.annotationCls=S,S})}const De=globalThis;function ke(u){for(let p in u)if(u[p]===ke)return p;throw Error("Could not find renamed property on target object.")}function be(u,p){for(const h in p)p.hasOwnProperty(h)&&!u.hasOwnProperty(h)&&(u[h]=p[h])}function Ve(u){if("string"==typeof u)return u;if(Array.isArray(u))return"["+u.map(Ve).join(", ")+"]";if(null==u)return""+u;if(u.overriddenName)return`${u.overriddenName}`;if(u.name)return`${u.name}`;const p=u.toString();if(null==p)return""+p;const h=p.indexOf("\n");return-1===h?p:p.substring(0,h)}function Ie(u,p){return null==u||""===u?null===p?"":p:null==p||""===p?u:u+" "+p}const de=ke({__forward_ref__:ke});function le(u){return u.__forward_ref__=le,u.toString=function(){return Ve(this())},u}function xe(u){return We(u)?u():u}function We(u){return"function"==typeof u&&u.hasOwnProperty(de)&&u.__forward_ref__===le}function Vt(u){return{token:u.token,providedIn:u.providedIn||null,factory:u.factory,value:void 0}}function kn(u){return{providers:u.providers||[],imports:u.imports||[]}}function $n(u){return Ni(u,Cr)||Ni(u,vs)}function Ii(u){return null!==$n(u)}function Ni(u,p){return u.hasOwnProperty(p)?u[p]:null}function Qr(u){return u&&(u.hasOwnProperty(wr)||u.hasOwnProperty(rs))?u[wr]:null}const Cr=ke({\u0275prov:ke}),wr=ke({\u0275inj:ke}),vs=ke({ngInjectableDef:ke}),rs=ke({ngInjectorDef:ke});class ur{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(p,h){this._desc=p,this.\u0275prov=void 0,"number"==typeof h?this.__NG_ELEMENT_ID__=h:void 0!==h&&(this.\u0275prov=Vt({token:this,providedIn:h.providedIn||"root",factory:h.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function ya(u){return u&&!!u.\u0275providers}const Dr=ke({\u0275cmp:ke}),ja=ke({\u0275dir:ke}),ws=ke({\u0275pipe:ke}),Ko=ke({\u0275mod:ke}),da=ke({\u0275fac:ke}),Bo=ke({__NG_ELEMENT_ID__:ke}),Dl=ke({__NG_ENV_ID__:ke});function qr(u){return"string"==typeof u?u:null==u?"":String(u)}function Wo(u){return"function"==typeof u?u.name||u.toString():"object"==typeof u&&null!=u&&"function"==typeof u.type?u.type.name||u.type.toString():qr(u)}function Hs(u,p){throw new Q(-201,!1)}var es=function(u){return u[u.Default=0]="Default",u[u.Host=1]="Host",u[u.Self=2]="Self",u[u.SkipSelf=4]="SkipSelf",u[u.Optional=8]="Optional",u}(es||{});let Al;function Us(){return Al}function Ml(u){const p=Al;return Al=u,p}function rc(u,p,h){const g=$n(u);return g&&"root"==g.providedIn?void 0===g.value?g.value=g.factory():g.value:h&es.Optional?null:void 0!==p?p:void Hs()}const qu={},Fa="__NG_DI_FLAG__",xc="ngTempTokenPath",Du=/\n/gm,Ec="__source";let ri;function sl(u){const p=ri;return ri=u,p}function ta(u,p=es.Default){if(void 0===ri)throw new Q(-203,!1);return null===ri?rc(u,void 0,p):ri.get(u,p&es.Optional?null:void 0,p)}function Ia(u,p=es.Default){return(Us()||ta)(xe(u),p)}function Mr(u,p=es.Default){return Ia(u,Dc(p))}function Dc(u){return typeof u>"u"||"number"==typeof u?u:(u.optional&&8)|(u.host&&1)|(u.self&&2)|(u.skipSelf&&4)}function mc(u){const p=[];for(let h=0;h<u.length;h++){const g=xe(u[h]);if(Array.isArray(g)){if(0===g.length)throw new Q(900,!1);let S,A=es.Default;for(let L=0;L<g.length;L++){const ce=g[L],Ce=_n(ce);"number"==typeof Ce?-1===Ce?S=ce.token:A|=Ce:S=ce}p.push(Ia(S,A))}else p.push(Ia(g))}return p}function At(u,p){return u[Fa]=p,u.prototype[Fa]=p,u}function _n(u){return u[Fa]}const En=At(K("Optional"),8),ir=At(K("SkipSelf"),4);function Ui(u,p){return u.hasOwnProperty(da)?u[da]:null}function Wr(u){return u.flat(Number.POSITIVE_INFINITY)}function zo(u,p){u.forEach(h=>Array.isArray(h)?zo(h,p):p(h))}function ss(u,p,h){p>=u.length?u.push(h):u.splice(p,0,h)}function Ho(u,p){return p>=u.length-1?u.pop():u.splice(p,1)[0]}function oo(u,p,h){let g=kc(u,p);return g>=0?u[1|g]=h:(g=~g,function Aa(u,p,h,g){let S=u.length;if(S==p)u.push(h,g);else if(1===S)u.push(g,u[0]),u[0]=h;else{for(S--,u.push(u[S-1],u[S]);S>p;)u[S]=u[S-2],S--;u[p]=h,u[p+1]=g}}(u,g,p,h)),g}function Kc(u,p){const h=kc(u,p);if(h>=0)return u[1|h]}function kc(u,p){return function _l(u,p,h){let g=0,S=u.length>>h;for(;S!==g;){const A=g+(S-g>>1),L=u[A<<h];if(p===L)return A<<h;L>p?S=A:g=A+1}return~(S<<h)}(u,p,1)}const al={},Is=[],ll=new ur(""),ku=new ur("",-1),cl=new ur("");class yl{get(p,h=qu){if(h===qu){const g=new Error(`NullInjectorError: No provider for ${Ve(p)}!`);throw g.name="NullInjectorError",g}return h}}function na(u,p){const h=u[Ko]||null;if(!h&&!0===p)throw new Error(`Type ${Ve(u)} does not have '\u0275mod' property.`);return h}function Eo(u){return u[Dr]||null}function Ha(u){return u[ja]||null}function Jr(u){return u[ws]||null}function uo(u){const p=Eo(u)||Ha(u)||Jr(u);return null!==p&&p.standalone}function du(u){return{\u0275providers:u}}function Ic(...u){return{\u0275providers:te(0,u),\u0275fromNgModule:!0}}function te(u,...p){const h=[],g=new Set;let S;const A=L=>{h.push(L)};return zo(p,L=>{const ce=L;$e(ce,A,[],g)&&(S||=[],S.push(ce))}),void 0!==S&&he(S,A),h}function he(u,p){for(let h=0;h<u.length;h++){const{ngModule:g,providers:S}=u[h];tn(S,A=>{p(A,g)})}}function $e(u,p,h,g){if(!(u=xe(u)))return!1;let S=null,A=Qr(u);const L=!A&&Eo(u);if(A||L){if(L&&!L.standalone)return!1;S=u}else{const Ce=u.ngModule;if(A=Qr(Ce),!A)return!1;S=Ce}const ce=g.has(S);if(L){if(ce)return!1;if(g.add(S),L.dependencies){const Ce="function"==typeof L.dependencies?L.dependencies():L.dependencies;for(const Ye of Ce)$e(Ye,p,h,g)}}else{if(!A)return!1;{if(null!=A.imports&&!ce){let Ye;g.add(S);try{zo(A.imports,at=>{$e(at,p,h,g)&&(Ye||=[],Ye.push(at))})}finally{}void 0!==Ye&&he(Ye,p)}if(!ce){const Ye=Ui(S)||(()=>new S);p({provide:S,useFactory:Ye,deps:Is},S),p({provide:cl,useValue:S,multi:!0},S),p({provide:ll,useValue:()=>Ia(S),multi:!0},S)}const Ce=A.providers;if(null!=Ce&&!ce){const Ye=u;tn(Ce,at=>{p(at,Ye)})}}}return S!==u&&void 0!==u.providers}function tn(u,p){for(let h of u)ya(h)&&(h=h.\u0275providers),Array.isArray(h)?tn(h,p):p(h)}const an=ke({provide:String,useValue:ke});function oi(u){return null!==u&&"object"==typeof u&&an in u}function Zn(u){return"function"==typeof u}const ti=new ur(""),Rr={},Rn={};let nr;function dr(){return void 0===nr&&(nr=new yl),nr}class Or{}class Zo extends Or{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(p,h,g,S){super(),this.parent=h,this.source=g,this.scopes=S,po(p,L=>this.processProvider(L)),this.records.set(ku,Vs(void 0,this)),S.has("environment")&&this.records.set(Or,Vs(void 0,this));const A=this.records.get(ti);null!=A&&"string"==typeof A.value&&this.scopes.add(A.value),this.injectorDefTypes=new Set(this.get(cl,Is,es.Self))}destroy(){Qa(this),this._destroyed=!0;const p=(0,C.Ht)(null);try{for(const g of this._ngOnDestroyHooks)g.ngOnDestroy();const h=this._onDestroyHooks;this._onDestroyHooks=[];for(const g of h)g()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),(0,C.Ht)(p)}}onDestroy(p){return Qa(this),this._onDestroyHooks.push(p),()=>this.removeOnDestroy(p)}runInContext(p){Qa(this);const h=sl(this),g=Ml(void 0);try{return p()}finally{sl(h),Ml(g)}}get(p,h=qu,g=es.Default){if(Qa(this),p.hasOwnProperty(Dl))return p[Dl](this);g=Dc(g);const A=sl(this),L=Ml(void 0);try{if(!(g&es.SkipSelf)){let Ce=this.records.get(p);if(void 0===Ce){const Ye=function gn(u){return"function"==typeof u||"object"==typeof u&&u instanceof ur}(p)&&$n(p);Ce=Ye&&this.injectableDefInScope(Ye)?Vs(jr(p),Rr):null,this.records.set(p,Ce)}if(null!=Ce)return this.hydrate(p,Ce)}return(g&es.Self?dr():this.parent).get(p,h=g&es.Optional&&h===qu?null:h)}catch(ce){if("NullInjectorError"===ce.name){if((ce[xc]=ce[xc]||[]).unshift(Ve(p)),A)throw ce;return function $t(u,p,h,g){const S=u[xc];throw p[Ec]&&S.unshift(p[Ec]),u.message=function qt(u,p,h,g=null){u=u&&"\n"===u.charAt(0)&&"\u0275"==u.charAt(1)?u.slice(2):u;let S=Ve(p);if(Array.isArray(p))S=p.map(Ve).join(" -> ");else if("object"==typeof p){let A=[];for(let L in p)if(p.hasOwnProperty(L)){let ce=p[L];A.push(L+":"+("string"==typeof ce?JSON.stringify(ce):Ve(ce)))}S=`{${A.join(", ")}}`}return`${h}${g?"("+g+")":""}[${S}]: ${u.replace(Du,"\n  ")}`}("\n"+u.message,S,h,g),u.ngTokenPath=S,u[xc]=null,u}(ce,p,"R3InjectorError",this.source)}throw ce}finally{Ml(L),sl(A)}}resolveInjectorInitializers(){const p=(0,C.Ht)(null),h=sl(this),g=Ml(void 0);try{const A=this.get(ll,Is,es.Self);for(const L of A)L()}finally{sl(h),Ml(g),(0,C.Ht)(p)}}toString(){const p=[],h=this.records;for(const g of h.keys())p.push(Ve(g));return`R3Injector[${p.join(", ")}]`}processProvider(p){let h=Zn(p=xe(p))?p:xe(p&&p.provide);const g=function $s(u){return oi(u)?Vs(void 0,u.useValue):Vs(oc(u),Rr)}(p);if(!Zn(p)&&!0===p.multi){let S=this.records.get(h);S||(S=Vs(void 0,Rr,!0),S.factory=()=>mc(S.multi),this.records.set(h,S)),h=p,S.multi.push(p)}this.records.set(h,g)}hydrate(p,h){const g=(0,C.Ht)(null);try{return h.value===Rr&&(h.value=Rn,h.value=h.factory()),"object"==typeof h.value&&h.value&&function Rl(u){return null!==u&&"object"==typeof u&&"function"==typeof u.ngOnDestroy}(h.value)&&this._ngOnDestroyHooks.add(h.value),h.value}finally{(0,C.Ht)(g)}}injectableDefInScope(p){if(!p.providedIn)return!1;const h=xe(p.providedIn);return"string"==typeof h?"any"===h||this.scopes.has(h):this.injectorDefTypes.has(h)}removeOnDestroy(p){const h=this._onDestroyHooks.indexOf(p);-1!==h&&this._onDestroyHooks.splice(h,1)}}function jr(u){const p=$n(u),h=null!==p?p.factory:Ui(u);if(null!==h)return h;if(u instanceof ur)throw new Q(204,!1);if(u instanceof Function)return function as(u){if(u.length>0)throw new Q(204,!1);const h=function Ki(u){return u&&(u[Cr]||u[vs])||null}(u);return null!==h?()=>h.factory(u):()=>new u}(u);throw new Q(204,!1)}function oc(u,p,h){let g;if(Zn(u)){const S=xe(u);return Ui(S)||jr(S)}if(oi(u))g=()=>xe(u.useValue);else if(function Ci(u){return!(!u||!u.useFactory)}(u))g=()=>u.useFactory(...mc(u.deps||[]));else if(function ei(u){return!(!u||!u.useExisting)}(u))g=()=>Ia(xe(u.useExisting));else{const S=xe(u&&(u.useClass||u.provide));if(!function ga(u){return!!u.deps}(u))return Ui(S)||jr(S);g=()=>new S(...mc(u.deps))}return g}function Qa(u){if(u.destroyed)throw new Q(205,!1)}function Vs(u,p,h=!1){return{factory:u,value:p,multi:h?[]:void 0}}function po(u,p){for(const h of u)Array.isArray(h)?po(h,p):h&&ya(h)?po(h.\u0275providers,p):p(h)}function Ys(u,p){u instanceof Zo&&Qa(u);const g=sl(u),S=Ml(void 0);try{return p()}finally{sl(g),Ml(S)}}function Gr(){return void 0!==Us()||null!=function Xc(){return ri}()}function ts(u){if(!Gr())throw new Q(-203,!1)}const br=0,Kn=1,xr=2,Fo=3,ho=4,Po=5,Tr=6,Ts=7,Ws=8,pa=9,ul=10,ds=11,Qc=12,pu=13,sc=14,Ua=15,ld=16,fp=17,Ac=18,np=19,dh=20,mp=21,Lo=22,Uo=23,No=24,Er=25,Ss=1,Ol=7,bl=9,Kl=10;var Af=function(u){return u[u.None=0]="None",u[u.HasTransplantedViews=2]="HasTransplantedViews",u}(Af||{});function ba(u){return Array.isArray(u)&&"object"==typeof u[Ss]}function Fl(u){return Array.isArray(u)&&!0===u[Ss]}function Iu(u){return!!(4&u.flags)}function Ld(u){return u.componentOffset>-1}function yu(u){return!(1&~u.flags)}function Au(u){return!!u.template}function hu(u){return!!(512&u[xr])}class ie{previousValue;currentValue;firstChange;constructor(p,h,g){this.previousValue=p,this.currentValue=h,this.firstChange=g}isFirstChange(){return this.firstChange}}function ge(u,p,h,g){null!==p?p.applyValueToInputSignal(p,g):u[h]=g}const ue=(()=>{const u=()=>Me;return u.ngInherit=!0,u})();function Me(u){return u.type.prototype.ngOnChanges&&(u.setInput=Be),Ne}function Ne(){const u=pt(this),p=u?.current;if(p){const h=u.previous;if(h===al)u.previous=p;else for(let g in p)h[g]=p[g];u.current=null,this.ngOnChanges(p)}}function Be(u,p,h,g,S){const A=this.declaredInputs[g],L=pt(u)||function ft(u,p){return u[it]=p}(u,{previous:al,current:null}),ce=L.current||(L.current={}),Ce=L.previous,Ye=Ce[A];ce[A]=new ie(Ye&&Ye.currentValue,h,Ce===al),ge(u,p,S,h)}const it="__ngSimpleChanges__";function pt(u){return u[it]||null}const Qt=function(u,p,h){},Ht="svg";function St(u){for(;Array.isArray(u);)u=u[br];return u}function Vn(u,p){return St(p[u])}function qn(u,p){return St(p[u.index])}function sr(u,p){return u.data[p]}function si(u,p){return u[p]}function bn(u,p){const h=p[u];return ba(h)?h:h[br]}function ji(u){return!(128&~u[xr])}function jt(u,p){return null==p?null:u[p]}function Gn(u){u[fp]=0}function Cn(u){1024&u[xr]||(u[xr]|=1024,ji(u)&&li(u))}function vi(u){return!!(9216&u[xr]||u[No]?.dirty)}function Mi(u){u[ul].changeDetectionScheduler?.notify(9),64&u[xr]&&(u[xr]|=1024),vi(u)&&li(u)}function li(u){u[ul].changeDetectionScheduler?.notify(0);let p=no(u);for(;null!==p&&!(8192&p[xr])&&(p[xr]|=8192,ji(p));)p=no(p)}function Pi(u,p){if(!(256&~u[xr]))throw new Q(911,!1);null===u[mp]&&(u[mp]=[]),u[mp].push(p)}function no(u){const p=u[Fo];return Fl(p)?p[Fo]:p}const mt={lFrame:xs(null),bindingsEnabled:!0,skipHydrationRootTNode:null};let Ln=!1;function Hr(){return mt.bindingsEnabled}function kr(){return null!==mt.skipHydrationRootTNode}function Yn(){return mt.lFrame.lView}function fr(){return mt.lFrame.tView}function Pr(u){return mt.lFrame.contextLView=u,u[Ws]}function ro(u){return mt.lFrame.contextLView=null,u}function hr(){let u=He();for(;null!==u&&64===u.type;)u=u.parent;return u}function He(){return mt.lFrame.currentTNode}function ee(u,p){const h=mt.lFrame;h.currentTNode=u,h.isParent=p}function Te(){return mt.lFrame.isParent}function Le(){mt.lFrame.isParent=!1}function Yt(){return Ln}function mr(u){const p=Ln;return Ln=u,p}function Sr(){const u=mt.lFrame;let p=u.bindingRootIndex;return-1===p&&(p=u.bindingRootIndex=u.tView.bindingStartIndex),p}function Qo(){return mt.lFrame.bindingIndex}function Oo(){return mt.lFrame.bindingIndex++}function ia(u){const p=mt.lFrame,h=p.bindingIndex;return p.bindingIndex=p.bindingIndex+u,h}function $a(u,p){const h=mt.lFrame;h.bindingIndex=h.bindingRootIndex=u,Gp(p)}function Gp(u){mt.lFrame.currentDirectiveIndex=u}function Cs(){return mt.lFrame.currentQueryIndex}function pl(u){mt.lFrame.currentQueryIndex=u}function cm(u){const p=u[Kn];return 2===p.type?p.declTNode:1===p.type?u[Po]:null}function Mu(u,p,h){if(h&es.SkipSelf){let S=p,A=u;for(;!(S=S.parent,null!==S||h&es.Host||(S=cm(A),null===S||(A=A[sc],10&S.type))););if(null===S)return!1;p=S,u=A}const g=mt.lFrame=Vp();return g.currentTNode=p,g.lView=u,!0}function Bp(u){const p=Vp(),h=u[Kn];mt.lFrame=p,p.currentTNode=h.firstChild,p.lView=u,p.tView=h,p.contextLView=u,p.bindingIndex=h.bindingStartIndex,p.inI18n=!1}function Vp(){const u=mt.lFrame,p=null===u?null:u.child;return null===p?xs(u):p}function xs(u){const p={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:u,child:null,inI18n:!1};return null!==u&&(u.child=p),p}function jp(){const u=mt.lFrame;return mt.lFrame=u.parent,u.currentTNode=null,u.lView=null,u}const Hp=jp;function Nd(){const u=jp();u.isParent=!0,u.tView=null,u.selectedIndex=-1,u.contextLView=null,u.elementDepthCount=0,u.currentDirectiveIndex=-1,u.currentNamespace=null,u.bindingRootIndex=-1,u.bindingIndex=-1,u.currentQueryIndex=0}function La(){return mt.lFrame.selectedIndex}function Xu(u){mt.lFrame.selectedIndex=u}function hl(){const u=mt.lFrame;return sr(u.tView,u.selectedIndex)}function Mf(){mt.lFrame.currentNamespace=Ht}let bu=!0;function Qu(){return bu}function Gd(u){bu=u}function op(u,p){for(let h=p.directiveStart,g=p.directiveEnd;h<g;h++){const A=u.data[h].type.prototype,{ngAfterContentInit:L,ngAfterContentChecked:ce,ngAfterViewInit:Ce,ngAfterViewChecked:Ye,ngOnDestroy:at}=A;L&&(u.contentHooks??=[]).push(-h,L),ce&&((u.contentHooks??=[]).push(h,ce),(u.contentCheckHooks??=[]).push(h,ce)),Ce&&(u.viewHooks??=[]).push(-h,Ce),Ye&&((u.viewHooks??=[]).push(h,Ye),(u.viewCheckHooks??=[]).push(h,Ye)),null!=at&&(u.destroyHooks??=[]).push(h,at)}}function um(u,p,h){o1(u,p,3,h)}function dm(u,p,h,g){(3&u[xr])===h&&o1(u,p,h,g)}function e_(u,p){let h=u[xr];(3&h)===p&&(h&=16383,h+=1,u[xr]=h)}function o1(u,p,h,g){const A=g??-1,L=p.length-1;let ce=0;for(let Ce=void 0!==g?65535&u[fp]:0;Ce<L;Ce++)if("number"==typeof p[Ce+1]){if(ce=p[Ce],null!=g&&ce>=g)break}else p[Ce]<0&&(u[fp]+=65536),(ce<A||-1==A)&&(vp(u,h,p,Ce),u[fp]=(4294901760&u[fp])+Ce+2),Ce++}function s1(u,p){Qt(4,u,p);const h=(0,C.Ht)(null);try{p.call(u)}finally{(0,C.Ht)(h),Qt(5,u,p)}}function vp(u,p,h,g){const S=h[g]<0,A=h[g+1],ce=u[S?-h[g]:h[g]];S?u[xr]>>14<u[fp]>>16&&(3&u[xr])===p&&(u[xr]+=16384,s1(ce,A)):s1(ce,A)}const rr=-1;class $o{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(p,h,g){this.factory=p,this.canSeeViewProviders=h,this.injectImpl=g}}function dd(u,p,h){let g=0;for(;g<h.length;){const S=h[g];if("number"==typeof S){if(0!==S)break;g++;const A=h[g++],L=h[g++],ce=h[g++];u.setAttribute(p,L,ce,A)}else{const A=S,L=h[++g];Vo(A)?u.setProperty(p,A,L):u.setAttribute(p,A,L),g++}}return g}function pm(u){return 3===u||4===u||6===u}function Vo(u){return 64===u.charCodeAt(0)}function U(u,p){if(null!==p&&0!==p.length)if(null===u||0===u.length)u=p.slice();else{let h=-1;for(let g=0;g<p.length;g++){const S=p[g];"number"==typeof S?h=S:0===h||ve(u,h,S,null,-1===h||2===h?p[++g]:null)}}return u}function ve(u,p,h,g,S){let A=0,L=u.length;if(-1===p)L=-1;else for(;A<u.length;){const ce=u[A++];if("number"==typeof ce){if(ce===p){L=-1;break}if(ce>p){L=A-1;break}}}for(;A<u.length;){const ce=u[A];if("number"==typeof ce)break;if(ce===h){if(null===g)return void(null!==S&&(u[A+1]=S));if(g===u[A+1])return void(u[A+2]=S)}A++,null!==g&&A++,null!==S&&A++}-1!==L&&(u.splice(L,0,p),A=L+1),u.splice(A++,0,h),null!==g&&u.splice(A++,0,g),null!==S&&u.splice(A++,0,S)}const Ue={};class et{injector;parentInjector;constructor(p,h){this.injector=p,this.parentInjector=h}get(p,h,g){g=Dc(g);const S=this.injector.get(p,Ue,g);return S!==Ue||h===Ue?S:this.parentInjector.get(p,h,g)}}function It(u){return u!==rr}function In(u){return 32767&u}function Co(u,p){let h=function Li(u){return u>>16}(u),g=p;for(;h>0;)g=g[sc],h--;return g}let Es=!0;function wu(u){const p=Es;return Es=u,p}const mh=255,l1=5;let v0=0;const pd={};function Hm(u,p){const h=bd(u,p);if(-1!==h)return h;const g=p[Kn];g.firstCreatePass&&(u.injectorIndex=p.length,_0(g.data,u),_0(p,null),_0(g.blueprint,null));const S=sa(u,p),A=u.injectorIndex;if(It(S)){const L=In(S),ce=Co(S,p),Ce=ce[Kn].data;for(let Ye=0;Ye<8;Ye++)p[A+Ye]=ce[L+Ye]|Ce[L+Ye]}return p[A+8]=S,A}function _0(u,p){u.push(0,0,0,0,0,0,0,0,p)}function bd(u,p){return-1===u.injectorIndex||u.parent&&u.parent.injectorIndex===u.injectorIndex||null===p[u.injectorIndex+8]?-1:u.injectorIndex}function sa(u,p){if(u.parent&&-1!==u.parent.injectorIndex)return u.parent.injectorIndex;let h=0,g=null,S=p;for(;null!==S;){if(g=Kr(S),null===g)return rr;if(h++,S=S[sc],-1!==g.injectorIndex)return g.injectorIndex|h<<16}return rr}function Um(u,p,h){!function Rf(u,p,h){let g;"string"==typeof h?g=h.charCodeAt(0)||0:h.hasOwnProperty(Bo)&&(g=h[Bo]),null==g&&(g=h[Bo]=v0++);const S=g&mh;p.data[u+(S>>l1)]|=1<<S}(u,p,h)}function y0(u,p,h){if(h&es.Optional||void 0!==u)return u;Hs()}function c1(u,p,h,g){if(h&es.Optional&&void 0===g&&(g=null),!(h&(es.Self|es.Host))){const S=u[pa],A=Ml(void 0);try{return S?S.get(p,g,h&es.Optional):rc(p,g,h&es.Optional)}finally{Ml(A)}}return y0(g,0,h)}function gh(u,p,h,g=es.Default,S){if(null!==u){if(2048&p[xr]&&!(g&es.Self)){const L=function Ru(u,p,h,g,S){let A=u,L=p;for(;null!==A&&null!==L&&2048&L[xr]&&!(512&L[xr]);){const ce=n_(A,L,h,g|es.Self,pd);if(ce!==pd)return ce;let Ce=A.parent;if(!Ce){const Ye=L[dh];if(Ye){const at=Ye.get(h,pd,g);if(at!==pd)return at}Ce=Kr(L),L=L[sc]}A=Ce}return S}(u,p,h,g,pd);if(L!==pd)return L}const A=n_(u,p,h,g,pd);if(A!==pd)return A}return c1(p,h,g,S)}function n_(u,p,h,g,S){const A=function u1(u){if("string"==typeof u)return u.charCodeAt(0)||0;const p=u.hasOwnProperty(Bo)?u[Bo]:void 0;return"number"==typeof p?p>=0?p&mh:MT:p}(h);if("function"==typeof A){if(!Mu(p,u,g))return g&es.Host?y0(S,0,g):c1(p,h,g,S);try{let L;if(L=A(g),null!=L||g&es.Optional)return L;Hs()}finally{Hp()}}else if("number"==typeof A){let L=null,ce=bd(u,p),Ce=rr,Ye=g&es.Host?p[Ua][Po]:null;for((-1===ce||g&es.SkipSelf)&&(Ce=-1===ce?sa(u,p):p[ce+8],Ce!==rr&&oC(g,!1)?(L=p[Kn],ce=In(Ce),p=Co(Ce,p)):ce=-1);-1!==ce;){const at=p[Kn];if(d1(A,ce,at.data)){const xt=b0(ce,p,h,L,g,Ye);if(xt!==pd)return xt}Ce=p[ce+8],Ce!==rr&&oC(g,p[Kn].data[ce+8]===Ye)&&d1(A,ce,p)?(L=at,ce=In(Ce),p=Co(Ce,p)):ce=-1}}return S}function b0(u,p,h,g,S,A){const L=p[Kn],ce=L.data[u+8],at=hm(ce,L,h,null==g?Ld(ce)&&Es:g!=L&&!!(3&ce.type),S&es.Host&&A===ce);return null!==at?hd(p,L,at,ce):pd}function hm(u,p,h,g,S){const A=u.providerIndexes,L=p.data,ce=1048575&A,Ce=u.directiveStart,at=A>>20,un=S?ce+at:u.directiveEnd;for(let fn=g?ce:ce+at;fn<un;fn++){const Wn=L[fn];if(fn<Ce&&h===Wn||fn>=Ce&&Wn.type===h)return fn}if(S){const fn=L[Ce];if(fn&&Au(fn)&&fn.type===h)return Ce}return null}function hd(u,p,h,g){let S=u[h];const A=p.data;if(function _c(u){return u instanceof $o}(S)){const L=S;L.resolving&&function Gs(u,p){throw p&&p.join(" > "),new Q(-200,u)}(Wo(A[h]));const ce=wu(L.canSeeViewProviders);L.resolving=!0;const Ye=L.injectImpl?Ml(L.injectImpl):null;Mu(u,g,es.Default);try{S=u[h]=L.factory(void 0,A,u,g),p.firstCreatePass&&h>=g.directiveStart&&function Zv(u,p,h){const{ngOnChanges:g,ngOnInit:S,ngDoCheck:A}=p.type.prototype;if(g){const L=Me(p);(h.preOrderHooks??=[]).push(u,L),(h.preOrderCheckHooks??=[]).push(u,L)}S&&(h.preOrderHooks??=[]).push(0-u,S),A&&((h.preOrderHooks??=[]).push(u,A),(h.preOrderCheckHooks??=[]).push(u,A))}(h,A[h],p)}finally{null!==Ye&&Ml(Ye),wu(ce),L.resolving=!1,Hp()}}return S}function d1(u,p,h){return!!(h[p+(u>>l1)]&1<<u)}function oC(u,p){return!(u&es.Self||u&es.Host&&p)}class Mc{_tNode;_lView;constructor(p,h){this._tNode=p,this._lView=h}get(p,h,g){return gh(this._tNode,this._lView,p,Dc(g),h)}}function MT(){return new Mc(hr(),Yn())}function vh(u){return ne(()=>{const p=u.prototype.constructor,h=p[da]||qi(p),g=Object.prototype;let S=Object.getPrototypeOf(u.prototype).constructor;for(;S&&S!==g;){const A=S[da]||qi(S);if(A&&A!==h)return A;S=Object.getPrototypeOf(S)}return A=>new A})}function qi(u){return We(u)?()=>{const p=qi(xe(u));return p&&p()}:Ui(u)}function Kr(u){const p=u[Kn],h=p.type;return 2===h?p.declTNode:1===h?u[Po]:null}function Xe(u){return function oa(u,p){if("class"===p)return u.classes;if("style"===p)return u.styles;const h=u.attrs;if(h){const g=h.length;let S=0;for(;S<g;){const A=h[S];if(pm(A))break;if(0===A)S+=2;else if("number"==typeof A)for(S++;S<g&&"string"==typeof h[S];)S++;else{if(A===p)return h[S+1];S+=2}}}return null}(hr(),u)}function f1(u,p=null,h=null,g){const S=Ja(u,p,h,g);return S.resolveInjectorInitializers(),S}function Ja(u,p=null,h=null,g,S=new Set){const A=[h||Is,Ic(u)];return g=g||("object"==typeof u?void 0:Ve(u)),new Zo(A,p||dr(),g||null,S)}class $l{static THROW_IF_NOT_FOUND=qu;static NULL=new yl;static create(p,h){if(Array.isArray(p))return f1({name:""},h,p,"");{const g=p.name??"";return f1({name:g},p.parent,p.providers,g)}}static \u0275prov=Vt({token:$l,providedIn:"any",factory:()=>Ia(ku)});static __NG_ELEMENT_ID__=-1}new ur("").__NG_ELEMENT_ID__=u=>{const p=hr();if(null===p)throw new Q(204,!1);if(2&p.type)return p.value;if(u&es.Optional)return null;throw new Q(204,!1)};const i_=!1;let Yl=(()=>class u{static __NG_ELEMENT_ID__=qh;static __NG_ENV_ID__=h=>h})();class Rg extends Yl{_lView;constructor(p){super(),this._lView=p}onDestroy(p){return Pi(this._lView,p),()=>function Qi(u,p){if(null===u[mp])return;const h=u[mp].indexOf(p);-1!==h&&u[mp].splice(h,1)}(this._lView,p)}}function qh(){return new Rg(Yn())}class Wp{}const Ee=new ur("",{providedIn:"root",factory:()=>!1}),sn=new ur(""),Pn=new ur("");let Jn=(()=>{class u{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new E.t(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const h=this.taskId++;return this.pendingTasks.add(h),h}has(h){return this.pendingTasks.has(h)}remove(h){this.pendingTasks.delete(h),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=Vt({token:u,providedIn:"root",factory:()=>new u})}return u})();const zr=class Nr extends D.B{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(p=!1){super(),this.__isAsync=p,Gr()&&(this.destroyRef=Mr(Yl,{optional:!0})??void 0,this.pendingTasks=Mr(Jn,{optional:!0})??void 0)}emit(p){const h=(0,C.Ht)(null);try{super.next(p)}finally{(0,C.Ht)(h)}}subscribe(p,h,g){let S=p,A=h||(()=>null),L=g;if(p&&"object"==typeof p){const Ce=p;S=Ce.next?.bind(Ce),A=Ce.error?.bind(Ce),L=Ce.complete?.bind(Ce)}this.__isAsync&&(A=this.wrapInTimeout(A),S&&(S=this.wrapInTimeout(S)),L&&(L=this.wrapInTimeout(L)));const ce=super.subscribe({next:S,error:A,complete:L});return p instanceof k.yU&&p.add(ce),ce}wrapInTimeout(p){return h=>{const g=this.pendingTasks?.add();setTimeout(()=>{p(h),void 0!==g&&this.pendingTasks?.remove(g)})}}};function Zr(...u){}function aa(u){let p,h;function g(){u=Zr;try{void 0!==h&&"function"==typeof cancelAnimationFrame&&cancelAnimationFrame(h),void 0!==p&&clearTimeout(p)}catch{}}return p=setTimeout(()=>{u(),g()}),"function"==typeof requestAnimationFrame&&(h=requestAnimationFrame(()=>{u(),g()})),()=>g()}function ra(u){return queueMicrotask(()=>u()),()=>{u=Zr}}const yc="isAngularZone",Wl=yc+"_ID";let Jl=0;class Ca{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new zr(!1);onMicrotaskEmpty=new zr(!1);onStable=new zr(!1);onError=new zr(!1);constructor(p){const{enableLongStackTrace:h=!1,shouldCoalesceEventChangeDetection:g=!1,shouldCoalesceRunChangeDetection:S=!1,scheduleInRootZone:A=i_}=p;if(typeof Zone>"u")throw new Q(908,!1);Zone.assertZonePatched();const L=this;L._nesting=0,L._outer=L._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(L._inner=L._inner.fork(new Zone.TaskTrackingZoneSpec)),h&&Zone.longStackTraceZoneSpec&&(L._inner=L._inner.fork(Zone.longStackTraceZoneSpec)),L.shouldCoalesceEventChangeDetection=!S&&g,L.shouldCoalesceRunChangeDetection=S,L.callbackScheduled=!1,L.scheduleInRootZone=A,function Pf(u){const p=()=>{!function sp(u){function p(){aa(()=>{u.callbackScheduled=!1,w0(u),u.isCheckStableRunning=!0,_h(u),u.isCheckStableRunning=!1})}u.isCheckStableRunning||u.callbackScheduled||(u.callbackScheduled=!0,u.scheduleInRootZone?Zone.root.run(()=>{p()}):u._outer.run(()=>{p()}),w0(u))}(u)},h=Jl++;u._inner=u._inner.fork({name:"angular",properties:{[yc]:!0,[Wl]:h,[Wl+h]:!0},onInvokeTask:(g,S,A,L,ce,Ce)=>{if(function Zi(u){return $m(u,"__ignore_ng_zone__")}(Ce))return g.invokeTask(A,L,ce,Ce);try{return Og(u),g.invokeTask(A,L,ce,Ce)}finally{(u.shouldCoalesceEventChangeDetection&&"eventTask"===L.type||u.shouldCoalesceRunChangeDetection)&&p(),r_(u)}},onInvoke:(g,S,A,L,ce,Ce,Ye)=>{try{return Og(u),g.invoke(A,L,ce,Ce,Ye)}finally{u.shouldCoalesceRunChangeDetection&&!u.callbackScheduled&&!function m1(u){return $m(u,"__scheduler_tick__")}(Ce)&&p(),r_(u)}},onHasTask:(g,S,A,L)=>{g.hasTask(A,L),S===A&&("microTask"==L.change?(u._hasPendingMicrotasks=L.microTask,w0(u),_h(u)):"macroTask"==L.change&&(u.hasPendingMacrotasks=L.macroTask))},onHandleError:(g,S,A,L)=>(g.handleError(A,L),u.runOutsideAngular(()=>u.onError.emit(L)),!1)})}(L)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get(yc)}static assertInAngularZone(){if(!Ca.isInAngularZone())throw new Q(909,!1)}static assertNotInAngularZone(){if(Ca.isInAngularZone())throw new Q(909,!1)}run(p,h,g){return this._inner.run(p,h,g)}runTask(p,h,g,S){const A=this._inner,L=A.scheduleEventTask("NgZoneEvent: "+S,p,Ou,Zr,Zr);try{return A.runTask(L,h,g)}finally{A.cancelTask(L)}}runGuarded(p,h,g){return this._inner.runGuarded(p,h,g)}runOutsideAngular(p){return this._outer.run(p)}}const Ou={};function _h(u){if(0==u._nesting&&!u.hasPendingMicrotasks&&!u.isStable)try{u._nesting++,u.onMicrotaskEmpty.emit(null)}finally{if(u._nesting--,!u.hasPendingMicrotasks)try{u.runOutsideAngular(()=>u.onStable.emit(null))}finally{u.isStable=!0}}}function w0(u){u.hasPendingMicrotasks=!!(u._hasPendingMicrotasks||(u.shouldCoalesceEventChangeDetection||u.shouldCoalesceRunChangeDetection)&&!0===u.callbackScheduled)}function Og(u){u._nesting++,u.isStable&&(u.isStable=!1,u.onUnstable.emit(null))}function r_(u){u._nesting--,_h(u)}class Xh{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new zr;onMicrotaskEmpty=new zr;onStable=new zr;onError=new zr;run(p,h,g){return p.apply(h,g)}runGuarded(p,h,g){return p.apply(h,g)}runOutsideAngular(p){return p()}runTask(p,h,g,S){return p.apply(h,g)}}function $m(u,p){return!(!Array.isArray(u)||1!==u.length)&&!0===u[0]?.data?.[p]}class zp{_console=console;handleError(p){this._console.error("ERROR",p)}}const Et=new ur("",{providedIn:"root",factory:()=>{const u=Mr(Ca),p=Mr(zp);return h=>u.runOutsideAngular(()=>p.handleError(h))}});class Fg{destroyed=!1;listeners=null;errorHandler=Mr(zp,{optional:!0});destroyRef=Mr(Yl);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(p){if(this.destroyed)throw new Q(953,!1);return(this.listeners??=[]).push(p),{unsubscribe:()=>{const h=this.listeners?.indexOf(p);void 0!==h&&-1!==h&&this.listeners?.splice(h,1)}}}emit(p){if(this.destroyed)throw new Q(953,!1);if(null===this.listeners)return;const h=(0,C.Ht)(null);try{for(const g of this.listeners)try{g(p)}catch(S){this.errorHandler?.handleError(S)}}finally{(0,C.Ht)(h)}}}function qp(u){return new Fg}function cC(u,p){return q(u,p)}const g1=(cC.required=function T0(u){return q(Z,u)},cC);function Xp(){return Ju(hr(),Yn())}function Ju(u,p){return new fm(qn(u,p))}let fm=(()=>class u{nativeElement;constructor(h){this.nativeElement=h}static __NG_ELEMENT_ID__=Xp})();function Kh(u){return u instanceof fm?u.nativeElement:u}function Pg(){return this._results[Symbol.iterator]()}class o_{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new D.B}constructor(p=!1){this._emitDistinctChangesOnly=p}get(p){return this._results[p]}map(p){return this._results.map(p)}filter(p){return this._results.filter(p)}find(p){return this._results.find(p)}reduce(p,h){return this._results.reduce(p,h)}forEach(p){this._results.forEach(p)}some(p){return this._results.some(p)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(p,h){this.dirty=!1;const g=Wr(p);(this._changesDetected=!function yr(u,p,h){if(u.length!==p.length)return!1;for(let g=0;g<u.length;g++){let S=u[g],A=p[g];if(h&&(S=h(S),A=h(A)),A!==S)return!1}return!0}(this._results,g,h))&&(this._results=g,this.length=g.length,this.last=g[this.length-1],this.first=g[0])}notifyOnChanges(){void 0!==this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(p){this._onDirty=p}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){void 0!==this._changes&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=Pg}function yh(u){return!(128&~u.flags)}var Jc=function(u){return u[u.OnPush=0]="OnPush",u[u.Default=1]="Default",u}(Jc||{});const Lg=new Map;let yp=0;function s_(u){Lg.delete(u[np])}const Td="__ngContext__";function bc(u,p){ba(p)?(u[Td]=p[np],function S0(u){Lg.set(u[np],u)}(p)):u[Td]=p}function u_(u){return E0(u[Qc])}function d_(u){return E0(u[ho])}function E0(u){for(;null!==u&&!Fl(u);)u=u[ho];return u}let Ug;function S1(u){Ug=u}function Nf(){if(void 0!==Ug)return Ug;if(typeof document<"u")return document;throw new Q(210,!1)}const Pl=new ur("",{providedIn:"root",factory:()=>PT}),PT="ng",$g=new ur(""),qm=new ur("",{providedIn:"platform",factory:()=>"unknown"}),x1=new ur(""),Gf=new ur("",{providedIn:"root",factory:()=>Nf().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),fC=new ur("",{providedIn:"root",factory:()=>!1});var B=function(u){return u[u.CHANGE_DETECTION=0]="CHANGE_DETECTION",u[u.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",u}(B||{});const ae=new ur(""),Pe=new Set;function Ke(u){Pe.has(u)||(Pe.add(u),performance?.mark?.("mark_feature_usage",{detail:{feature:u}}))}function _t(u,p){if(null!==(0,C.nR)())throw new Q(-602,!1)}var Ct=function(u){return u[u.EarlyRead=0]="EarlyRead",u[u.Write=1]="Write",u[u.MixedReadWrite=2]="MixedReadWrite",u[u.Read=3]="Read",u}(Ct||{});let Tt=(()=>{class u{impl=null;execute(){this.impl?.execute()}static \u0275prov=Vt({token:u,providedIn:"root",factory:()=>new u})}return u})();const Rt=[Ct.EarlyRead,Ct.Write,Ct.MixedReadWrite,Ct.Read];let Pt=(()=>{class u{ngZone=Mr(Ca);scheduler=Mr(Wp);errorHandler=Mr(zp,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){Mr(ae,{optional:!0})}execute(){this.executing=!0;for(const h of Rt)for(const g of this.sequences)if(!g.erroredOrDestroyed&&g.hooks[h])try{g.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>g.hooks[h](g.pipelinedValue),g.snapshot))}catch(S){g.erroredOrDestroyed=!0,this.errorHandler?.handleError(S)}this.executing=!1;for(const h of this.sequences)h.afterRun(),h.once&&(this.sequences.delete(h),h.destroy());for(const h of this.deferredRegistrations)this.sequences.add(h);this.deferredRegistrations.size>0&&this.scheduler.notify(8),this.deferredRegistrations.clear()}register(h){this.executing?this.deferredRegistrations.add(h):(this.sequences.add(h),this.scheduler.notify(7))}unregister(h){this.executing&&this.sequences.has(h)?(h.erroredOrDestroyed=!0,h.pipelinedValue=void 0,h.once=!0):(this.sequences.delete(h),this.deferredRegistrations.delete(h))}maybeTrace(h,g){return g?g.run(B.AFTER_NEXT_RENDER,h):h()}static \u0275prov=Vt({token:u,providedIn:"root",factory:()=>new u})}return u})();class Xt{impl;hooks;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(p,h,g,S,A=null){this.impl=p,this.hooks=h,this.once=g,this.snapshot=A,this.unregisterOnDestroy=S?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}}function Qn(u,p){!p?.injector&&ts();const h=p?.injector??Mr($l);return Ke("NgAfterNextRender"),function Xn(u,p,h,g){const S=p.get(Tt);S.impl??=p.get(Pt);const A=p.get(ae,null,{optional:!0}),L=h?.phase??Ct.MixedReadWrite,ce=!0!==h?.manualCleanup?p.get(Yl):null,Ce=new Xt(S.impl,function di(u,p){if(u instanceof Function){const h=[void 0,void 0,void 0,void 0];return h[p]=u,h}return[u.earlyRead,u.write,u.mixedReadWrite,u.read]}(u,L),g,ce,A?.snapshot(null));return S.impl.register(Ce),Ce}(u,h,p,!0)}let Y2=()=>null;function Kg(u,p,h=!1){return Y2(u,p,h)}var B0=function(u){return u[u.Emulated=0]="Emulated",u[u.None=2]="None",u[u.ShadowDom=3]="ShadowDom",u}(B0||{});let UT,Zg;function EC(u){return function K2(){if(void 0===UT&&(UT=null,De.trustedTypes))try{UT=De.trustedTypes.createPolicy("angular",{createHTML:u=>u,createScript:u=>u,createScriptURL:u=>u})}catch{}return UT}()?.createHTML(u)||u}function Sp(){if(void 0===Zg&&(Zg=null,De.trustedTypes))try{Zg=De.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:u=>u,createScript:u=>u,createScriptURL:u=>u})}catch{}return Zg}function ed(u){return Sp()?.createHTML(u)||u}function $d(u){return Sp()?.createScriptURL(u)||u}class k1{changingThisBreaksApplicationSecurity;constructor(p){this.changingThisBreaksApplicationSecurity=p}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${G})`}}class OI extends k1{getTypeName(){return"HTML"}}class $T extends k1{getTypeName(){return"Style"}}class IP extends k1{getTypeName(){return"Script"}}class AP extends k1{getTypeName(){return"URL"}}class MP extends k1{getTypeName(){return"ResourceURL"}}function S_(u){return u instanceof k1?u.changingThisBreaksApplicationSecurity:u}function I1(u,p){const h=function L6(u){return u instanceof k1&&u.getTypeName()||null}(u);if(null!=h&&h!==p){if("ResourceURL"===h&&"URL"===p)return!0;throw new Error(`Required a safe ${p}, got a ${h} (see ${G})`)}return h===p}function FI(u){return new OI(u)}function N6(u){return new $T(u)}function G6(u){return new IP(u)}function B6(u){return new AP(u)}function V6(u){return new MP(u)}class Q2{inertDocumentHelper;constructor(p){this.inertDocumentHelper=p}getInertBodyElement(p){p="<body><remove></remove>"+p;try{const h=(new window.DOMParser).parseFromString(EC(p),"text/html").body;return null===h?this.inertDocumentHelper.getInertBodyElement(p):(h.firstChild?.remove(),h)}catch{return null}}}class OP{defaultDoc;inertDocument;constructor(p){this.defaultDoc=p,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(p){const h=this.inertDocument.createElement("template");return h.innerHTML=EC(p),h}}const J2=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function A1(u){return(u=String(u)).match(J2)?u:"unsafe:"+u}function eg(u){const p={};for(const h of u.split(","))p[h]=!0;return p}function YT(...u){const p={};for(const h of u)for(const g in h)h.hasOwnProperty(g)&&(p[g]=!0);return p}const Z2=eg("area,br,col,hr,img,wbr"),PI=eg("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),FP=eg("rp,rt"),xp=YT(Z2,YT(PI,eg("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),YT(FP,eg("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),YT(FP,PI)),LI=eg("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),PP=YT(LI,eg("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),eg("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),NI=eg("script,style,template");class H6{sanitizedSomething=!1;buf=[];sanitizeChildren(p){let h=p.firstChild,g=!0,S=[];for(;h;)if(h.nodeType===Node.ELEMENT_NODE?g=this.startElement(h):h.nodeType===Node.TEXT_NODE?this.chars(h.nodeValue):this.sanitizedSomething=!0,g&&h.firstChild)S.push(h),h=LP(h);else for(;h;){h.nodeType===Node.ELEMENT_NODE&&this.endElement(h);let A=R1(h);if(A){h=A;break}h=S.pop()}return this.buf.join("")}startElement(p){const h=NP(p).toLowerCase();if(!xp.hasOwnProperty(h))return this.sanitizedSomething=!0,!NI.hasOwnProperty(h);this.buf.push("<"),this.buf.push(h);const g=p.attributes;for(let S=0;S<g.length;S++){const A=g.item(S),L=A.name,ce=L.toLowerCase();if(!PP.hasOwnProperty(ce)){this.sanitizedSomething=!0;continue}let Ce=A.value;LI[ce]&&(Ce=A1(Ce)),this.buf.push(" ",L,'="',GP(Ce),'"')}return this.buf.push(">"),!0}endElement(p){const h=NP(p).toLowerCase();xp.hasOwnProperty(h)&&!Z2.hasOwnProperty(h)&&(this.buf.push("</"),this.buf.push(h),this.buf.push(">"))}chars(p){this.buf.push(GP(p))}}function R1(u){const p=u.nextSibling;if(p&&u!==p.previousSibling)throw DC(p);return p}function LP(u){const p=u.firstChild;if(p&&function U6(u,p){return(u.compareDocumentPosition(p)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(u,p))throw DC(p);return p}function NP(u){const p=u.nodeName;return"string"==typeof p?p:"FORM"}function DC(u){return new Error(`Failed to sanitize html because the element is clobbered: ${u.outerHTML}`)}const $6=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Y6=/([^\#-~ |!])/g;function GP(u){return u.replace(/&/g,"&amp;").replace($6,function(p){return"&#"+(1024*(p.charCodeAt(0)-55296)+(p.charCodeAt(1)-56320)+65536)+";"}).replace(Y6,function(p){return"&#"+p.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let eE;function GI(u,p){let h=null;try{eE=eE||function RP(u){const p=new OP(u);return function j6(){try{return!!(new window.DOMParser).parseFromString(EC(""),"text/html")}catch{return!1}}()?new Q2(p):p}(u);let g=p?String(p):"";h=eE.getInertBodyElement(g);let S=5,A=g;do{if(0===S)throw new Error("Failed to sanitize html because the input is unstable");S--,g=A,A=h.innerHTML,h=eE.getInertBodyElement(g)}while(g!==A);return EC((new H6).sanitizeChildren(tE(h)||h))}finally{if(h){const g=tE(h)||h;for(;g.firstChild;)g.firstChild.remove()}}}function tE(u){return"content"in u&&function W6(u){return u.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===u.nodeName}(u)?u.content:null}var O1=function(u){return u[u.NONE=0]="NONE",u[u.HTML=1]="HTML",u[u.STYLE=2]="STYLE",u[u.SCRIPT=3]="SCRIPT",u[u.URL=4]="URL",u[u.RESOURCE_URL=5]="RESOURCE_URL",u}(O1||{});function BP(u){const p=zT();return p?ed(p.sanitize(O1.HTML,u)||""):I1(u,"HTML")?ed(S_(u)):GI(Nf(),qr(u))}function WT(u){const p=zT();return p?p.sanitize(O1.URL,u)||"":I1(u,"URL")?S_(u):A1(qr(u))}function BI(u){const p=zT();if(p)return $d(p.sanitize(O1.RESOURCE_URL,u)||"");if(I1(u,"ResourceURL"))return $d(S_(u));throw new Q(904,!1)}function VP(u,p,h){return function Q6(u,p){return"src"===p&&("embed"===u||"frame"===u||"iframe"===u||"media"===u||"script"===u)||"href"===p&&("base"===u||"link"===u)?BI:WT}(p,h)(u)}function zT(){const u=Yn();return u&&u[ul].sanitizer}const J6=/^>|^->|<!--|-->|--!>|<!-$/g,V0=/(<|>)/g;function jI(u){return u.ownerDocument.defaultView}function WP(u){return u.ownerDocument}function Vf(u){return u instanceof Function?u():u}var H0=function(u){return u[u.None=0]="None",u[u.SignalBased=1]="SignalBased",u[u.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",u}(H0||{}),rE=function(u){return u[u.Important=1]="Important",u[u.DashCase=2]="DashCase",u}(rE||{});let UI;function oE(u,p){return UI(u,p)}function L1(u,p,h,g,S){if(null!=g){let A,L=!1;Fl(g)?A=g:ba(g)&&(L=!0,g=g[br]);const ce=St(g);0===u&&null!==h?null==S?eL(p,h,ce):jf(p,h,ce,S||null,!0):1===u&&null!==h?jf(p,h,ce,S||null,!0):2===u?function OC(u,p,h){u.removeChild(null,p,h)}(p,ce,L):3===u&&p.destroyNode(ce),null!=A&&function cB(u,p,h,g,S){const A=h[Ol];A!==St(h)&&L1(p,u,g,A,S);for(let ce=Kl;ce<h.length;ce++){const Ce=h[ce];lE(Ce[Kn],Ce,u,p,g,A)}}(p,u,A,h,S)}}function YI(u,p){return u.createComment(function jP(u){return u.replace(J6,p=>p.replace(V0,"\u200b$1\u200b"))}(p))}function MC(u,p,h){return u.createElement(p,h)}function QP(u,p){p[ul].changeDetectionScheduler?.notify(10),lE(u,p,p[ds],2,null,null)}function JP(u,p){const h=u[bl],g=p[Fo];(ba(g)||p[Ua]!==g[Fo][Ua])&&(u[xr]|=Af.HasTransplantedViews),null===h?u[bl]=[p]:h.push(p)}function WI(u,p){const h=u[bl],g=h.indexOf(p);h.splice(g,1)}function XT(u,p){if(u.length<=Kl)return;const h=Kl+p,g=u[h];if(g){const S=g[ld];null!==S&&S!==u&&WI(S,g),p>0&&(u[h-1][ho]=g[ho]);const A=Ho(u,Kl+p);!function KP(u,p){QP(u,p),p[br]=null,p[Po]=null}(g[Kn],g);const L=A[Ac];null!==L&&L.detachView(A[Kn]),g[Fo]=null,g[ho]=null,g[xr]&=-129}return g}function KT(u,p){if(!(256&p[xr])){const h=p[ds];h.destroyNode&&lE(u,p,h,3,null,null),function oB(u){let p=u[Qc];if(!p)return U0(u[Kn],u);for(;p;){let h=null;if(ba(p))h=p[Qc];else{const g=p[Kl];g&&(h=g)}if(!h){for(;p&&!p[ho]&&p!==u;)ba(p)&&U0(p[Kn],p),p=p[Fo];null===p&&(p=u),ba(p)&&U0(p[Kn],p),h=p&&p[ho]}p=h}}(p)}}function U0(u,p){if(256&p[xr])return;const h=(0,C.Ht)(null);try{p[xr]&=-129,p[xr]|=256,p[No]&&(0,C.XR)(p[No]),function aB(u,p){let h;if(null!=u&&null!=(h=u.destroyHooks))for(let g=0;g<h.length;g+=2){const S=p[h[g]];if(!(S instanceof $o)){const A=h[g+1];if(Array.isArray(A))for(let L=0;L<A.length;L+=2){const ce=S[A[L]],Ce=A[L+1];Qt(4,ce,Ce);try{Ce.call(ce)}finally{Qt(5,ce,Ce)}}else{Qt(4,S,A);try{A.call(S)}finally{Qt(5,S,A)}}}}}(u,p),function bK(u,p){const h=u.cleanup,g=p[Ts];if(null!==h)for(let L=0;L<h.length-1;L+=2)if("string"==typeof h[L]){const ce=h[L+3];ce>=0?g[ce]():g[-ce].unsubscribe(),L+=2}else h[L].call(g[h[L+1]]);null!==g&&(p[Ts]=null);const S=p[mp];if(null!==S){p[mp]=null;for(let L=0;L<S.length;L++)(0,S[L])()}const A=p[Uo];if(null!==A){p[Uo]=null;for(const L of A)L.destroy()}}(u,p),1===p[Kn].type&&p[ds].destroy();const g=p[ld];if(null!==g&&Fl(p[Fo])){g!==p[Fo]&&WI(g,p);const S=p[Ac];null!==S&&S.detachView(u)}s_(p)}finally{(0,C.Ht)(h)}}function D_(u,p,h){return function ZP(u,p,h){let g=p;for(;null!==g&&168&g.type;)g=(p=g).parent;if(null===g)return h[br];{const{componentOffset:S}=g;if(S>-1){const{encapsulation:A}=u.data[g.directiveStart+S];if(A===B0.None||A===B0.Emulated)return null}return qn(g,h)}}(u,p.parent,h)}function jf(u,p,h,g,S){u.insertBefore(p,h,g,S)}function eL(u,p,h){u.appendChild(p,h)}function tL(u,p,h,g,S){null!==g?jf(u,p,h,g,S):eL(u,p,h)}function RC(u,p){return u.parentNode(p)}function nL(u,p,h){return sE(u,p,h)}let zI,sE=function iL(u,p,h){return 40&u.type?qn(u,h):null};function aE(u,p,h,g){const S=D_(u,g,p),A=p[ds],ce=nL(g.parent||p[Po],g,p);if(null!=S)if(Array.isArray(h))for(let Ce=0;Ce<h.length;Ce++)tL(A,S,h[Ce],ce,!1);else tL(A,S,h,ce,!1);void 0!==zI&&zI(A,g,p,h,S)}function $0(u,p){if(null!==p){const h=p.type;if(3&h)return qn(p,u);if(4&h)return tv(-1,u[p.index]);if(8&h){const g=p.child;if(null!==g)return $0(u,g);{const S=u[p.index];return Fl(S)?tv(-1,S):St(S)}}if(128&h)return $0(u,p.next);if(32&h)return oE(p,u)()||St(u[p.index]);{const g=JT(u,p);return null!==g?Array.isArray(g)?g[0]:$0(no(u[Ua]),g):$0(u,p.next)}}return null}function JT(u,p){return null!==p?u[Ua][Po].projection[p.projection]:null}function tv(u,p){const h=Kl+u+1;if(h<p.length){const g=p[h],S=g[Kn].firstChild;if(null!==S)return $0(g,S)}return p[Ol]}function ZT(u,p,h,g,S,A,L){for(;null!=h;){if(128===h.type){h=h.next;continue}const ce=g[h.index],Ce=h.type;if(L&&0===p&&(ce&&bc(St(ce),g),h.flags|=2),32&~h.flags)if(8&Ce)ZT(u,p,h.child,g,S,A,!1),L1(p,u,S,ce,A);else if(32&Ce){const Ye=oE(h,g);let at;for(;at=Ye();)L1(p,u,S,at,A);L1(p,u,S,ce,A)}else 16&Ce?oL(u,p,g,h,S,A):L1(p,u,S,ce,A);h=L?h.projectionNext:h.next}}function lE(u,p,h,g,S,A){ZT(h,g,u.firstChild,p,S,A,!1)}function oL(u,p,h,g,S,A){const L=h[Ua],Ce=L[Po].projection[g.projection];if(Array.isArray(Ce))for(let Ye=0;Ye<Ce.length;Ye++)L1(p,u,S,Ce[Ye],A);else{let Ye=Ce;const at=L[Fo];yh(g)&&(Ye.flags|=128),ZT(u,p,Ye,at,S,A,!0)}}function cE(u,p,h){""===h?u.removeAttribute(p,"class"):u.setAttribute(p,"class",h)}function sL(u,p,h){const{mergedAttrs:g,classes:S,styles:A}=h;null!==g&&dd(u,p,g),null!==S&&cE(u,p,S),null!==A&&function Gi(u,p,h){u.setAttribute(p,"style",h)}(u,p,A)}function aL(u,p,h){let g=u.length;for(;;){const S=u.indexOf(p,h);if(-1===S)return S;if(0===S||u.charCodeAt(S-1)<=32){const A=p.length;if(S+A===g||u.charCodeAt(S+A)<=32)return S}h=S+1}}const So="ng-template";function dB(u,p,h,g){let S=0;if(g){for(;S<p.length&&"string"==typeof p[S];S+=2)if("class"===p[S]&&-1!==aL(p[S+1].toLowerCase(),h,0))return!0}else if(uE(u))return!1;if(S=p.indexOf(1,S),S>-1){let A;for(;++S<p.length&&"string"==typeof(A=p[S]);)if(A.toLowerCase()===h)return!0}return!1}function uE(u){return 4===u.type&&u.value!==So}function Yd(u,p,h){return p===(4!==u.type||h?u.value:So)}function qI(u,p,h){let g=4;const S=u.attrs,A=null!==S?function pB(u){for(let p=0;p<u.length;p++)if(pm(u[p]))return p;return u.length}(S):0;let L=!1;for(let ce=0;ce<p.length;ce++){const Ce=p[ce];if("number"!=typeof Ce){if(!L)if(4&g){if(g=2|1&g,""!==Ce&&!Yd(u,Ce,h)||""===Ce&&1===p.length){if(tg(g))return!1;L=!0}}else if(8&g){if(null===S||!dB(u,S,Ce,h)){if(tg(g))return!1;L=!0}}else{const Ye=p[++ce],at=nv(Ce,S,uE(u),h);if(-1===at){if(tg(g))return!1;L=!0;continue}if(""!==Ye){let xt;if(xt=at>A?"":S[at+1].toLowerCase(),2&g&&Ye!==xt){if(tg(g))return!1;L=!0}}}}else{if(!L&&!tg(g)&&!tg(Ce))return!1;if(L&&tg(Ce))continue;L=!1,g=Ce|1&g}}return tg(g)||L}function tg(u){return!(1&u)}function nv(u,p,h,g){if(null===p)return-1;let S=0;if(g||!h){let A=!1;for(;S<p.length;){const L=p[S];if(L===u)return S;if(3===L||6===L)A=!0;else{if(1===L||2===L){let ce=p[++S];for(;"string"==typeof ce;)ce=p[++S];continue}if(4===L)break;if(0===L){S+=4;continue}}S+=A?1:2}return-1}return function KI(u,p){let h=u.indexOf(4);if(h>-1)for(h++;h<u.length;){const g=u[h];if("number"==typeof g)return-1;if(g===p)return h;h++}return-1}(p,u)}function lL(u,p,h=!1){for(let g=0;g<p.length;g++)if(qI(u,p[g],h))return!0;return!1}function tf(u,p){e:for(let h=0;h<p.length;h++){const g=p[h];if(u.length===g.length){for(let S=0;S<u.length;S++)if(u[S]!==g[S])continue e;return!0}}return!1}function cL(u,p){return u?":not("+p.trim()+")":p}function hB(u){let p=u[0],h=1,g=2,S="",A=!1;for(;h<u.length;){let L=u[h];if("string"==typeof L)if(2&g){const ce=u[++h];S+="["+L+(ce.length>0?'="'+ce+'"':"")+"]"}else 8&g?S+="."+L:4&g&&(S+=" "+L);else""!==S&&!tg(L)&&(p+=cL(A,S),S=""),g=L,A=A||!tg(g);h++}return""!==S&&(p+=cL(A,S)),p}const Ds={};function FC(u=1){QI(fr(),Yn(),La()+u,!1)}function QI(u,p,h,g){if(!g)if(3&~p[xr]){const A=u.preOrderHooks;null!==A&&dm(p,A,0,h)}else{const A=u.preOrderCheckHooks;null!==A&&um(p,A,h)}Xu(h)}function N1(u,p=es.Default){const h=Yn();return null===h?Ia(u,p):gh(hr(),h,xe(u),p)}function JI(){throw new Error("invalid")}function uL(u,p,h,g,S,A){const L=(0,C.Ht)(null);try{let ce=null;S&H0.SignalBased&&(ce=p[g][C.bh]),null!==ce&&void 0!==ce.transformFn&&(A=ce.transformFn(A)),S&H0.HasDecoratorInputTransform&&(A=u.inputTransforms[g].call(p,A)),null!==u.setInput?u.setInput(p,ce,A,h,g):ge(p,ce,g,A)}finally{(0,C.Ht)(L)}}function ng(u,p,h,g,S,A,L,ce,Ce,Ye,at){const xt=p.blueprint.slice();return xt[br]=S,xt[xr]=1228|g,(null!==Ye||u&&2048&u[xr])&&(xt[xr]|=2048),Gn(xt),xt[Fo]=xt[sc]=u,xt[Ws]=h,xt[ul]=L||u&&u[ul],xt[ds]=ce||u&&u[ds],xt[pa]=Ce||u&&u[pa]||null,xt[Po]=A,xt[np]=function Qh(){return yp++}(),xt[Tr]=at,xt[dh]=Ye,xt[Ua]=2==p.type?u[Ua]:xt,xt}function ig(u,p,h,g,S){let A=u.data[p];if(null===A)A=function ZI(u,p,h,g,S){const A=He(),L=Te(),Ce=u.data[p]=function Sa(u,p,h,g,S,A){let L=p?p.injectorIndex:-1,ce=0;return kr()&&(ce|=128),{type:h,index:g,insertBeforeIndex:null,injectorIndex:L,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:ce,providerIndexes:0,value:S,attrs:A,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:p,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,L?A:A&&A.parent,h,p,g,S);return null===u.firstChild&&(u.firstChild=Ce),null!==A&&(L?null==A.child&&null!==Ce.parent&&(A.child=Ce):null===A.next&&(A.next=Ce,Ce.prev=A)),Ce}(u,p,h,g,S),function zs(){return mt.lFrame.inI18n}()&&(A.flags|=32);else if(64&A.type){A.type=h,A.value=g,A.attrs=S;const L=function oe(){const u=mt.lFrame,p=u.currentTNode;return u.isParent?p:p.parent}();A.injectorIndex=null===L?-1:L.injectorIndex}return ee(A,!0),A}function eS(u,p,h,g){if(0===h)return-1;const S=p.length;for(let A=0;A<h;A++)p.push(g),u.blueprint.push(g),u.data.push(null);return S}function dL(u,p,h,g,S){const A=La(),L=2&g;try{Xu(-1),L&&p.length>Er&&QI(u,p,Er,!1),Qt(L?2:0,S),h(g,S)}finally{Xu(A),Qt(L?3:1,S)}}function eA(u,p,h){if(Iu(p)){const g=(0,C.Ht)(null);try{const A=p.directiveEnd;for(let L=p.directiveStart;L<A;L++){const ce=u.data[L];ce.contentQueries&&ce.contentQueries(1,h[L],L)}}finally{(0,C.Ht)(g)}}}function tA(u,p,h){Hr()&&(function DB(u,p,h,g){const S=h.directiveStart,A=h.directiveEnd;Ld(h)&&function B1(u,p,h){const g=qn(p,u),S=iA(h),A=u[ul].rendererFactory,L=pE(u,ng(u,S,null,lA(h),g,p,null,A.createRenderer(g,h),null,null,null));u[p.index]=L}(p,h,u.data[S+h.componentOffset]),u.firstCreatePass||Hm(h,p),bc(g,p);const L=h.initialInputs;for(let ce=S;ce<A;ce++){const Ce=u.data[ce],Ye=hd(p,u,ce,h);bc(Ye,p),null!==L&&FB(0,ce-S,Ye,Ce,0,L),Au(Ce)&&(bn(h.index,p)[Ws]=hd(p,u,ce,h))}}(u,p,h,qn(h,p)),!(64&~h.flags)&&fL(u,p,h))}function nA(u,p,h=qn){const g=p.localNames;if(null!==g){let S=p.index+1;for(let A=0;A<g.length;A+=2){const L=g[A+1],ce=-1===L?h(p,u):u[L];u[S++]=ce}}}function iA(u){const p=u.tView;return null===p||p.incompleteFirstPass?u.tView=rA(1,null,u.template,u.decls,u.vars,u.directiveDefs,u.pipeDefs,u.viewQuery,u.schemas,u.consts,u.id):p}function rA(u,p,h,g,S,A,L,ce,Ce,Ye,at){const xt=Er+g,un=xt+S,fn=function gB(u,p){const h=[];for(let g=0;g<p;g++)h.push(g<u?null:Ds);return h}(xt,un),Wn="function"==typeof Ye?Ye():Ye;return fn[Kn]={type:u,blueprint:fn,template:h,queries:null,viewQuery:ce,declTNode:p,data:fn.slice().fill(null,xt),bindingStartIndex:xt,expandoStartIndex:un,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof A?A():A,pipeRegistry:"function"==typeof L?L():L,firstChild:null,schemas:Ce,consts:Wn,incompleteFirstPass:!1,ssrId:at}}let pL=()=>null;function sA(u,p,h,g,S){for(let A in p){if(!p.hasOwnProperty(A))continue;const L=p[A];if(void 0===L)continue;g??={};let ce,Ce=H0.None;Array.isArray(L)?(ce=L[0],Ce=L[1]):ce=L;let Ye=A;if(null!==S){if(!S.hasOwnProperty(A))continue;Ye=S[A]}0===u?hL(g,h,Ye,ce,Ce):hL(g,h,Ye,ce)}return g}function hL(u,p,h,g,S){let A;u.hasOwnProperty(h)?(A=u[h]).push(p,g):A=u[h]=[p,g],void 0!==S&&A.push(S)}function nf(u,p,h,g,S,A,L,ce){const Ce=qn(p,h);let at,Ye=p.inputs;!ce&&null!=Ye&&(at=Ye[g])?(uA(u,h,at,g,S),Ld(p)&&function TB(u,p){const h=bn(p,u);16&h[xr]||(h[xr]|=64)}(h,p.index)):3&p.type&&(g=function wB(u){return"class"===u?"className":"for"===u?"htmlFor":"formaction"===u?"formAction":"innerHtml"===u?"innerHTML":"readonly"===u?"readOnly":"tabindex"===u?"tabIndex":u}(g),S=null!=L?L(S,p.value||"",g):S,A.setProperty(Ce,g,S))}function aA(u,p,h,g){if(Hr()){const S=null===g?null:{"":-1},A=function IB(u,p){const h=u.directiveRegistry;let g=null,S=null;if(h)for(let A=0;A<h.length;A++){const L=h[A];if(lL(p,L.selectors,!1))if(g||(g=[]),Au(L))if(null!==L.findHostDirectiveDefs){const ce=[];S=S||new Map,L.findHostDirectiveDefs(L,ce,S),g.unshift(...ce,L),dE(u,p,ce.length)}else g.unshift(L),dE(u,p,0);else S=S||new Map,L.findHostDirectiveDefs?.(L,g,S),g.push(L)}return null===g?null:[g,S]}(u,h);let L,ce;null===A?L=ce=null:[L,ce]=A,null!==L&&tS(u,p,h,L,S,ce),S&&function AB(u,p,h){if(p){const g=u.localNames=[];for(let S=0;S<p.length;S+=2){const A=h[p[S+1]];if(null==A)throw new Q(-301,!1);g.push(p[S],A)}}}(h,g,S)}h.mergedAttrs=U(h.mergedAttrs,h.attrs)}function tS(u,p,h,g,S,A){for(let Ye=0;Ye<g.length;Ye++)Um(Hm(h,p),u,g[Ye].type);!function RB(u,p,h){u.flags|=1,u.directiveStart=p,u.directiveEnd=p+h,u.providerIndexes=p}(h,u.data.length,g.length);for(let Ye=0;Ye<g.length;Ye++){const at=g[Ye];at.providersResolver&&at.providersResolver(at)}let L=!1,ce=!1,Ce=eS(u,p,g.length,null);for(let Ye=0;Ye<g.length;Ye++){const at=g[Ye];h.mergedAttrs=U(h.mergedAttrs,at.hostAttrs),OB(u,h,p,Ce,at),MB(Ce,at,S),null!==at.contentQueries&&(h.flags|=4),(null!==at.hostBindings||null!==at.hostAttrs||0!==at.hostVars)&&(h.flags|=64);const xt=at.type.prototype;!L&&(xt.ngOnChanges||xt.ngOnInit||xt.ngDoCheck)&&((u.preOrderHooks??=[]).push(h.index),L=!0),!ce&&(xt.ngOnChanges||xt.ngDoCheck)&&((u.preOrderCheckHooks??=[]).push(h.index),ce=!0),Ce++}!function CB(u,p,h){const S=p.directiveEnd,A=u.data,L=p.attrs,ce=[];let Ce=null,Ye=null;for(let at=p.directiveStart;at<S;at++){const xt=A[at],un=h?h.get(xt):null,Wn=un?un.outputs:null;Ce=sA(0,xt.inputs,at,Ce,un?un.inputs:null),Ye=sA(1,xt.outputs,at,Ye,Wn);const Bi=null===Ce||null===L||uE(p)?null:Hf(Ce,at,L);ce.push(Bi)}null!==Ce&&(Ce.hasOwnProperty("class")&&(p.flags|=8),Ce.hasOwnProperty("style")&&(p.flags|=16)),p.initialInputs=ce,p.inputs=Ce,p.outputs=Ye}(u,h,A)}function fL(u,p,h){const g=h.directiveStart,S=h.directiveEnd,A=h.index,L=function Np(){return mt.lFrame.currentDirectiveIndex}();try{Xu(A);for(let ce=g;ce<S;ce++){const Ce=u.data[ce],Ye=p[ce];Gp(ce),(null!==Ce.hostBindings||0!==Ce.hostVars||null!==Ce.hostAttrs)&&kB(Ce,Ye)}}finally{Xu(-1),Gp(L)}}function kB(u,p){null!==u.hostBindings&&u.hostBindings(1,p)}function dE(u,p,h){p.componentOffset=h,(u.components??=[]).push(p.index)}function MB(u,p,h){if(h){if(p.exportAs)for(let g=0;g<p.exportAs.length;g++)h[p.exportAs[g]]=u;Au(p)&&(h[""]=u)}}function OB(u,p,h,g,S){u.data[g]=S;const A=S.factory||(S.factory=Ui(S.type)),L=new $o(A,Au(S),N1);u.blueprint[g]=L,h[g]=L,function xB(u,p,h,g,S){const A=S.hostBindings;if(A){let L=u.hostBindingOpCodes;null===L&&(L=u.hostBindingOpCodes=[]);const ce=~p.index;(function EB(u){let p=u.length;for(;p>0;){const h=u[--p];if("number"==typeof h&&h<0)return h}return 0})(L)!=ce&&L.push(ce),L.push(h,g,A)}}(u,p,g,eS(u,h,S.hostVars,Ds),S)}function lA(u){let p=16;return u.signals?p=4096:u.onPush&&(p=64),p}function iv(u,p,h,g,S,A){const L=qn(u,p);!function cA(u,p,h,g,S,A,L){if(null==A)u.removeAttribute(p,S,h);else{const ce=null==L?qr(A):L(A,g||"",S);u.setAttribute(p,S,ce,h)}}(p[ds],L,A,u.value,h,g,S)}function FB(u,p,h,g,S,A){const L=A[p];if(null!==L)for(let ce=0;ce<L.length;)uL(g,h,L[ce++],L[ce++],L[ce++],L[ce++])}function Hf(u,p,h){let g=null,S=0;for(;S<h.length;){const A=h[S];if(0!==A)if(5!==A){if("number"==typeof A)break;if(u.hasOwnProperty(A)){null===g&&(g=[]);const L=u[A];for(let ce=0;ce<L.length;ce+=3)if(L[ce]===p){g.push(A,L[ce+1],L[ce+2],h[S+1]);break}}S+=2}else S+=2;else S+=4}return g}function mL(u,p,h,g){return[u,!0,0,p,null,g,null,h,null,null]}function Y0(u,p){const h=u.contentQueries;if(null!==h){const g=(0,C.Ht)(null);try{for(let S=0;S<h.length;S+=2){const L=h[S+1];if(-1!==L){const ce=u.data[L];pl(h[S]),ce.contentQueries(2,p[L],L)}}}finally{(0,C.Ht)(g)}}}function pE(u,p){return u[Qc]?u[pu][ho]=p:u[Qc]=p,u[pu]=p,p}function Eh(u,p,h){pl(0);const g=(0,C.Ht)(null);try{p(u,h)}finally{(0,C.Ht)(g)}}function gL(u){return u[Ts]??=[]}function vL(u){return u.cleanup??=[]}function hE(u,p){const h=u[pa],g=h?h.get(zp,null):null;g&&g.handleError(p)}function uA(u,p,h,g,S){for(let A=0;A<h.length;){const L=h[A++],ce=h[A++],Ce=h[A++];uL(u.data[L],p[L],g,ce,Ce,S)}}function rv(u,p,h){const g=Vn(p,u);!function XP(u,p,h){u.setValue(p,h)}(u[ds],g,h)}function PB(u,p){const h=bn(p,u),g=h[Kn];!function LB(u,p){for(let h=p.length;h<u.blueprint.length;h++)p.push(u.blueprint[h])}(g,h);const S=h[br];null!==S&&null===h[Tr]&&(h[Tr]=Kg(S,h[pa])),nS(g,h,h[Ws])}function nS(u,p,h){Bp(p);try{const g=u.viewQuery;null!==g&&Eh(1,g,h);const S=u.template;null!==S&&dL(u,p,S,1,h),u.firstCreatePass&&(u.firstCreatePass=!1),p[Ac]?.finishViewCreation(u),u.staticContentQueries&&Y0(u,p),u.staticViewQueries&&Eh(2,u.viewQuery,h);const A=u.components;null!==A&&function NB(u,p){for(let h=0;h<p.length;h++)PB(u,p[h])}(p,A)}catch(g){throw u.firstCreatePass&&(u.incompleteFirstPass=!0,u.firstCreatePass=!1),g}finally{p[xr]&=-5,Nd()}}function PC(u,p,h,g){const S=(0,C.Ht)(null);try{const A=p.tView,Ce=ng(u,A,h,4096&u[xr]?4096:16,null,p,null,null,g?.injector??null,g?.embeddedViewInjector??null,g?.dehydratedView??null);Ce[ld]=u[p.index];const at=u[Ac];return null!==at&&(Ce[Ac]=at.createEmbeddedView(A)),nS(A,Ce,h),Ce}finally{(0,C.Ht)(S)}}function dA(u,p){const h=Kl+p;if(h<u.length)return u[h]}function j1(u,p){return!p||null===p.firstChild||yh(u)}function LC(u,p,h,g=!0){const S=p[Kn];if(function sB(u,p,h,g){const S=Kl+g,A=h.length;g>0&&(h[S-1][ho]=p),g<A-Kl?(p[ho]=h[S],ss(h,Kl+g,p)):(h.push(p),p[ho]=null),p[Fo]=h;const L=p[ld];null!==L&&h!==L&&JP(L,p);const ce=p[Ac];null!==ce&&ce.insertView(u),Mi(p),p[xr]|=128}(S,p,u,h),g){const L=tv(h,u),ce=p[ds],Ce=RC(ce,u[Ol]);null!==Ce&&function rB(u,p,h,g,S,A){g[br]=S,g[Po]=p,lE(u,g,h,1,S,A)}(S,u[Po],ce,p,Ce,L)}const A=p[Tr];null!==A&&null!==A.firstChild&&(A.firstChild=null)}function iS(u,p){const h=XT(u,p);return void 0!==h&&KT(h[Kn],h),h}function rS(u,p,h,g,S=!1){for(;null!==h;){if(128===h.type){h=S?h.projectionNext:h.next;continue}const A=p[h.index];null!==A&&g.push(St(A)),Fl(A)&&pA(A,g);const L=h.type;if(8&L)rS(u,p,h.child,g);else if(32&L){const ce=oE(h,p);let Ce;for(;Ce=ce();)g.push(Ce)}else if(16&L){const ce=JT(p,h);if(Array.isArray(ce))g.push(...ce);else{const Ce=no(p[Ua]);rS(Ce[Kn],Ce,ce,g,!0)}}h=S?h.projectionNext:h.next}return g}function pA(u,p){for(let h=Kl;h<u.length;h++){const g=u[h],S=g[Kn].firstChild;null!==S&&rS(g[Kn],g,S,p)}u[Ol]!==u[br]&&p.push(u[Ol])}let hA=[];const BB={...C.pL,consumerIsAlwaysLive:!0,consumerMarkedDirty:u=>{li(u.lView)},consumerOnSignalRead(){this.lView[No]=this}},$i={...C.pL,consumerIsAlwaysLive:!0,consumerMarkedDirty:u=>{let p=no(u.lView);for(;p&&!Uf(p[Kn]);)p=no(p);p&&Cn(p)},consumerOnSignalRead(){this.lView[No]=this}};function Uf(u){return 2!==u.type}function _L(u){if(null===u[Uo])return;let p=!0;for(;p;){let h=!1;for(const g of u[Uo])g.dirty&&(h=!0,null===g.zone||Zone.current===g.zone?g.run():g.zone.run(()=>g.run()));p=h&&!!(8192&u[xr])}}function fE(u,p=!0,h=0){const S=u[ul].rendererFactory;S.begin?.();try{!function HB(u,p){const h=Yt();try{mr(!0),U1(u,p);let g=0;for(;vi(u);){if(100===g)throw new Q(103,!1);g++,U1(u,1)}}finally{mr(h)}}(u,h)}catch(L){throw p&&hE(u,L),L}finally{S.end?.()}}function yL(u,p,h,g){const S=p[xr];if(!(256&~S))return;Bp(p);let ce=!0,Ce=null,Ye=null;Uf(u)?(Ye=function fA(u){return u[No]??function GB(u){const p=hA.pop()??Object.create(BB);return p.lView=u,p}(u)}(p),Ce=(0,C.Bg)(Ye)):null===(0,C.nR)()?(ce=!1,Ye=function VB(u){const p=u[No]??Object.create($i);return p.lView=u,p}(p),Ce=(0,C.Bg)(Ye)):p[No]&&((0,C.XR)(p[No]),p[No]=null);try{Gn(p),function Ur(u){return mt.lFrame.bindingIndex=u}(u.bindingStartIndex),null!==h&&dL(u,p,h,2,g);const at=!(3&~S);if(at){const fn=u.preOrderCheckHooks;null!==fn&&um(p,fn,null)}else{const fn=u.preOrderHooks;null!==fn&&dm(p,fn,0,null),e_(p,0)}if(function UB(u){for(let p=u_(u);null!==p;p=d_(p)){if(!(p[xr]&Af.HasTransplantedViews))continue;const h=p[bl];for(let g=0;g<h.length;g++)Cn(h[g])}}(p),_L(p),k_(p,0),null!==u.contentQueries&&Y0(u,p),at){const fn=u.contentCheckHooks;null!==fn&&um(p,fn)}else{const fn=u.contentHooks;null!==fn&&dm(p,fn,1),e_(p,1)}!function G1(u,p){const h=u.hostBindingOpCodes;if(null!==h)try{for(let g=0;g<h.length;g++){const S=h[g];if(S<0)Xu(~S);else{const A=S,L=h[++g],ce=h[++g];$a(L,A),ce(2,p[A])}}}finally{Xu(-1)}}(u,p);const xt=u.components;null!==xt&&CL(p,xt,0);const un=u.viewQuery;if(null!==un&&Eh(2,un,g),at){const fn=u.viewCheckHooks;null!==fn&&um(p,fn)}else{const fn=u.viewHooks;null!==fn&&dm(p,fn,2),e_(p,2)}if(!0===u.firstUpdatePass&&(u.firstUpdatePass=!1),p[Lo]){for(const fn of p[Lo])fn();p[Lo]=null}p[xr]&=-73}catch(at){throw li(p),at}finally{null!==Ye&&((0,C.Wu)(Ye,Ce),ce&&function H1(u){u.lView[No]!==u&&(u.lView=null,hA.push(u))}(Ye)),Nd()}}function k_(u,p){for(let h=u_(u);null!==h;h=d_(h))for(let g=Kl;g<h.length;g++)bL(h[g],p)}function $B(u,p,h){bL(bn(p,u),h)}function bL(u,p){ji(u)&&U1(u,p)}function U1(u,p){const g=u[Kn],S=u[xr],A=u[No];let L=!!(0===p&&16&S);if(L||=!!(64&S&&0===p),L||=!!(1024&S),L||=!(!A?.dirty||!(0,C.si)(A)),L||=!1,A&&(A.dirty=!1),u[xr]&=-9217,L)yL(g,u,g.template,u[Ws]);else if(8192&S){_L(u),k_(u,1);const ce=g.components;null!==ce&&CL(u,ce,1)}}function CL(u,p,h){for(let g=0;g<p.length;g++)$B(u,p[g],h)}function oS(u,p){const h=Yt()?64:1088;for(u[ul].changeDetectionScheduler?.notify(p);u;){u[xr]|=h;const g=no(u);if(hu(u)&&!g)return u;u=g}return null}class NC{_lView;_cdRefInjectingView;notifyErrorHandler;_appRef=null;_attachedToViewContainer=!1;get rootNodes(){const p=this._lView,h=p[Kn];return rS(h,p,h.firstChild,[])}constructor(p,h,g=!0){this._lView=p,this._cdRefInjectingView=h,this.notifyErrorHandler=g}get context(){return this._lView[Ws]}get dirty(){return!!(9280&this._lView[xr])||!!this._lView[No]?.dirty}set context(p){this._lView[Ws]=p}get destroyed(){return!(256&~this._lView[xr])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const p=this._lView[Fo];if(Fl(p)){const h=p[8],g=h?h.indexOf(this):-1;g>-1&&(XT(p,g),Ho(h,g))}this._attachedToViewContainer=!1}KT(this._lView[Kn],this._lView)}onDestroy(p){Pi(this._lView,p)}markForCheck(){oS(this._cdRefInjectingView||this._lView,4)}markForRefresh(){Cn(this._cdRefInjectingView||this._lView)}detach(){this._lView[xr]&=-129}reattach(){Mi(this._lView),this._lView[xr]|=128}detectChanges(){this._lView[xr]|=1024,fE(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Q(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const p=hu(this._lView),h=this._lView[ld];null!==h&&!p&&WI(h,this._lView),QP(this._lView[Kn],this._lView)}attachToAppRef(p){if(this._attachedToViewContainer)throw new Q(902,!1);this._appRef=p;const h=hu(this._lView),g=this._lView[ld];null!==g&&!h&&JP(g,this._lView),Mi(this._lView)}}let sS=(()=>class u{static __NG_ELEMENT_ID__=Ep})();const YB=sS,gE=class extends YB{_declarationLView;_declarationTContainer;elementRef;constructor(p,h,g){super(),this._declarationLView=p,this._declarationTContainer=h,this.elementRef=g}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(p,h){return this.createEmbeddedViewImpl(p,h)}createEmbeddedViewImpl(p,h,g){const S=PC(this._declarationLView,this._declarationTContainer,p,{embeddedViewInjector:h,dehydratedView:g});return new NC(S)}};function Ep(){return vE(hr(),Yn())}function vE(u,p){return 4&u.type?new gE(p,u,Ju(u,p)):null}let GL=()=>null;function HC(u,p){return GL(u,p)}class kE{}class BL{}class DK{resolveComponentFactory(p){throw Error(`No component factory found for ${Ve(p)}.`)}}class yS{static NULL=new DK}class DA{}let VL=(()=>class u{destroyNode=null;static __NG_ELEMENT_ID__=()=>function bV(){const u=Yn(),h=bn(hr().index,u);return(ba(h)?h:u)[ds]}()})(),CV=(()=>{class u{static \u0275prov=Vt({token:u,providedIn:"root",factory:()=>null})}return u})();function bS(u){return void 0!==u.ngModule}function q0(u){return!!na(u)}function IE(u){return!!Jr(u)}function kA(u){return!!Ha(u)}function UC(u){return!!Eo(u)}function IA(u,p){if(We(u)&&!(u=xe(u)))throw new Error(`Expected forwardRef function, imported from "${Wo(p)}", to return a standalone entity or NgModule but got "${Wo(u)||u}".`);if(null==na(u)){const h=Eo(u)||Ha(u)||Jr(u);if(null==h)throw bS(u)?new Error(`A module with providers was imported from "${Wo(p)}". Modules with providers are not supported in standalone components imports.`):new Error(`The "${Wo(u)}" type, imported from "${Wo(p)}", must be a standalone component / directive / pipe or an NgModule. Did you forget to add the required @Component / @Directive / @Pipe or @NgModule annotation?`);if(!h.standalone)throw new Error(`The "${Wo(u)}" ${function wV(u){return Eo(u)?"component":Ha(u)?"directive":Jr(u)?"pipe":"type"}(u)}, imported from "${Wo(p)}", is not standalone. Did you forget to add the standalone: true flag?`)}}class $C{ownerNgModule=new Map;ngModulesWithSomeUnresolvedDecls=new Set;ngModulesScopeCache=new Map;standaloneComponentsScopeCache=new Map;resolveNgModulesDecls(){if(0!==this.ngModulesWithSomeUnresolvedDecls.size){for(const p of this.ngModulesWithSomeUnresolvedDecls){const h=na(p);if(h?.declarations)for(const g of Vf(h.declarations))UC(g)&&this.ownerNgModule.set(g,p)}this.ngModulesWithSomeUnresolvedDecls.clear()}}getComponentDependencies(p,h){this.resolveNgModulesDecls();const g=Eo(p);if(null===g)throw new Error(`Attempting to get component dependencies for a type that is not a component: ${p}`);if(g.standalone){const S=this.getStandaloneComponentScope(p,h);return S.compilation.isPoisoned?{dependencies:[]}:{dependencies:[...S.compilation.directives,...S.compilation.pipes,...S.compilation.ngModules]}}{if(!this.ownerNgModule.has(p))return{dependencies:[]};const S=this.getNgModuleScope(this.ownerNgModule.get(p));return S.compilation.isPoisoned?{dependencies:[]}:{dependencies:[...S.compilation.directives,...S.compilation.pipes]}}}registerNgModule(p,h){if(!q0(p))throw new Error(`Attempting to register a Type which is not NgModule as NgModule: ${p}`);this.ngModulesWithSomeUnresolvedDecls.add(p)}clearScopeCacheFor(p){this.ngModulesScopeCache.delete(p),this.standaloneComponentsScopeCache.delete(p)}getNgModuleScope(p){if(this.ngModulesScopeCache.has(p))return this.ngModulesScopeCache.get(p);const h=this.computeNgModuleScope(p);return this.ngModulesScopeCache.set(p,h),h}computeNgModuleScope(p){const h=na(p,!0),g={exported:{directives:new Set,pipes:new Set},compilation:{directives:new Set,pipes:new Set}};for(const S of Vf(h.imports))if(q0(S)){const A=this.getNgModuleScope(S);X0(A.exported.directives,g.compilation.directives),X0(A.exported.pipes,g.compilation.pipes)}else{if(!uo(S)){g.compilation.isPoisoned=!0;break}if(kA(S)||UC(S))g.compilation.directives.add(S);else{if(!IE(S))throw new Q(980,"The standalone imported type is neither a component nor a directive nor a pipe");g.compilation.pipes.add(S)}}if(!g.compilation.isPoisoned)for(const S of Vf(h.declarations)){if(q0(S)||uo(S)){g.compilation.isPoisoned=!0;break}IE(S)?g.compilation.pipes.add(S):g.compilation.directives.add(S)}for(const S of Vf(h.exports))if(q0(S)){const A=this.getNgModuleScope(S);X0(A.exported.directives,g.exported.directives),X0(A.exported.pipes,g.exported.pipes),X0(A.exported.directives,g.compilation.directives),X0(A.exported.pipes,g.compilation.pipes)}else IE(S)?g.exported.pipes.add(S):g.exported.directives.add(S);return g}getStandaloneComponentScope(p,h){if(this.standaloneComponentsScopeCache.has(p))return this.standaloneComponentsScopeCache.get(p);const g=this.computeStandaloneComponentScope(p,h);return this.standaloneComponentsScopeCache.set(p,g),g}computeStandaloneComponentScope(p,h){const g={compilation:{directives:new Set([p]),pipes:new Set,ngModules:new Set}};for(const S of Wr(h??[])){const A=xe(S);try{IA(A,p)}catch{return g.compilation.isPoisoned=!0,g}if(q0(A)){g.compilation.ngModules.add(A);const L=this.getNgModuleScope(A);if(L.exported.isPoisoned)return g.compilation.isPoisoned=!0,g;X0(L.exported.directives,g.compilation.directives),X0(L.exported.pipes,g.compilation.pipes)}else if(IE(A))g.compilation.pipes.add(A);else{if(!kA(A)&&!UC(A))return g.compilation.isPoisoned=!0,g;g.compilation.directives.add(A)}}return g}isOrphanComponent(p){const h=Eo(p);return!(!h||h.standalone||(this.resolveNgModulesDecls(),this.ownerNgModule.has(p)))}}function X0(u,p){for(const h of u)p.add(h)}const CS=new $C;function AE(u,p,h){let g=h?u.styles:null,S=h?u.classes:null,A=0;if(null!==p)for(let L=0;L<p.length;L++){const ce=p[L];"number"==typeof ce?A=ce:1==A?S=Ie(S,ce):2==A&&(g=Ie(g,ce+": "+p[++L]+";"))}h?u.styles=g:u.stylesWithoutHost=g,h?u.classes=S:u.classesWithoutHost=S}class jL extends yS{ngModule;constructor(p){super(),this.ngModule=p}resolveComponentFactory(p){const h=Eo(p);return new wS(h,this.ngModule)}}function HL(u,p){const h=[];for(const g in u){if(!u.hasOwnProperty(g))continue;const S=u[g];if(void 0===S)continue;const A=Array.isArray(S),L=A?S[0]:S;h.push(p?{propName:L,templateName:g,isSignal:!!((A?S[1]:H0.None)&H0.SignalBased)}:{propName:L,templateName:g})}return h}class wS extends BL{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;get inputs(){const p=this.componentDef,h=p.inputTransforms,g=HL(p.inputs,!0);if(null!==h)for(const S of g)h.hasOwnProperty(S.propName)&&(S.transform=h[S.propName]);return g}get outputs(){return HL(this.componentDef.outputs,!1)}constructor(p,h){super(),this.componentDef=p,this.ngModule=h,this.componentType=p.type,this.selector=function fB(u){return u.map(hB).join(",")}(p.selectors),this.ngContentSelectors=p.ngContentSelectors?p.ngContentSelectors:[],this.isBoundToModule=!!h}create(p,h,g,S){const A=(0,C.Ht)(null);try{let L=(S=S||this.ngModule)instanceof Or?S:S?.injector;L&&null!==this.componentDef.getStandaloneInjector&&(L=this.componentDef.getStandaloneInjector(L)||L);const ce=L?new et(p,L):p,Ce=ce.get(DA,null);if(null===Ce)throw new Q(407,!1);const xt={rendererFactory:Ce,sanitizer:ce.get(CV,null),changeDetectionScheduler:ce.get(Wp,null)},un=Ce.createRenderer(null,this.componentDef),fn=this.componentDef.selectors[0][0]||"div",Wn=g?function vB(u,p,h,g){const A=g.get(fC,!1)||h===B0.ShadowDom,L=u.selectRootElement(p,A);return function _B(u){pL(u)}(L),L}(un,g,this.componentDef.encapsulation,ce):MC(un,fn,function TV(u){const p=u.toLowerCase();return"svg"===p?Ht:"math"===p?"math":null}(fn));let Bi=512;this.componentDef.signals?Bi|=4096:this.componentDef.onPush||(Bi|=16);let Fr=null;null!==Wn&&(Fr=Kg(Wn,ce,!0));const Br=rA(0,null,null,1,0,null,null,null,null,null,null),Vi=ng(null,Br,null,Bi,null,null,xt,un,ce,null,Fr);Bp(Vi);let Ms,Rs,Ya=null;try{const gd=this.componentDef;let uf,Rw=null;gd.findHostDirectiveDefs?(uf=[],Rw=new Map,gd.findHostDirectiveDefs(gd,uf,Rw),uf.push(gd)):uf=[gd];const qR=function SV(u,p){const h=u[Kn],g=Er;return u[g]=p,ig(h,g,2,"#host",null)}(Vi,Wn);Ya=function UL(u,p,h,g,S,A,L){const ce=S[Kn];!function xV(u,p,h,g){for(const S of u)p.mergedAttrs=U(p.mergedAttrs,S.hostAttrs);null!==p.mergedAttrs&&(AE(p,p.mergedAttrs,!0),null!==h&&sL(g,h,p))}(g,u,p,L);let Ce=null;null!==p&&(Ce=Kg(p,S[pa]));const Ye=A.rendererFactory.createRenderer(p,h),at=ng(S,iA(h),null,lA(h),S[u.index],u,A,Ye,null,null,Ce);return ce.firstCreatePass&&dE(ce,u,g.length-1),pE(S,at),S[u.index]=at}(qR,Wn,gd,uf,Vi,xt,un),Rs=sr(Br,Er),Wn&&function DV(u,p,h,g){if(g)dd(u,h,["ng-version","19.0.5"]);else{const{attrs:S,classes:A}=function mB(u){const p=[],h=[];let g=1,S=2;for(;g<u.length;){let A=u[g];if("string"==typeof A)2===S?""!==A&&p.push(A,u[++g]):8===S&&h.push(A);else{if(!tg(S))break;S=A}g++}return{attrs:p,classes:h}}(p.selectors[0]);S&&dd(u,h,S),A&&A.length>0&&cE(u,h,A.join(" "))}}(un,gd,Wn,g),void 0!==h&&function $L(u,p,h){const g=u.projection=[];for(let S=0;S<p.length;S++){const A=h[S];g.push(null!=A&&A.length?Array.from(A):null)}}(Rs,this.ngContentSelectors,h),Ms=function EV(u,p,h,g,S,A){const L=hr(),ce=S[Kn],Ce=qn(L,S);tS(ce,S,L,h,null,g);for(let at=0;at<h.length;at++)bc(hd(S,ce,L.directiveStart+at,L),S);fL(ce,S,L),Ce&&bc(Ce,S);const Ye=hd(S,ce,L.directiveStart+L.componentOffset,L);if(u[Ws]=S[Ws]=Ye,null!==A)for(const at of A)at(Ye,p);return eA(ce,L,S),Ye}(Ya,gd,uf,Rw,Vi,[kV]),nS(Br,Vi,null)}catch(gd){throw null!==Ya&&s_(Ya),s_(Vi),gd}finally{Nd()}return new $f(this.componentType,Ms,Ju(Rs,Vi),Vi,Rs)}finally{(0,C.Ht)(A)}}}class $f extends kE{location;_rootLView;_tNode;instance;hostView;changeDetectorRef;componentType;previousInputValues=null;constructor(p,h,g,S,A){super(),this.location=g,this._rootLView=S,this._tNode=A,this.instance=h,this.hostView=this.changeDetectorRef=new NC(S,void 0,!1),this.componentType=p}setInput(p,h){const g=this._tNode.inputs;let S;if(null!==g&&(S=g[p])){if(this.previousInputValues??=new Map,this.previousInputValues.has(p)&&Object.is(this.previousInputValues.get(p),h))return;const A=this._rootLView;uA(A[Kn],A,S,p,h),this.previousInputValues.set(p,h),oS(bn(this._tNode.index,A),1)}}get injector(){return new Mc(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(p){this.hostView.onDestroy(p)}}function kV(){const u=hr();op(Yn()[Kn],u)}let ME=(()=>class u{static __NG_ELEMENT_ID__=TS})();function TS(){return OA(hr(),Yn())}const IV=ME,YL=class extends IV{_lContainer;_hostTNode;_hostLView;constructor(p,h,g){super(),this._lContainer=p,this._hostTNode=h,this._hostLView=g}get element(){return Ju(this._hostTNode,this._hostLView)}get injector(){return new Mc(this._hostTNode,this._hostLView)}get parentInjector(){const p=sa(this._hostTNode,this._hostLView);if(It(p)){const h=Co(p,this._hostLView),g=In(p);return new Mc(h[Kn].data[g+8],h)}return new Mc(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(p){const h=SS(this._lContainer);return null!==h&&h[p]||null}get length(){return this._lContainer.length-Kl}createEmbeddedView(p,h,g){let S,A;"number"==typeof g?S=g:null!=g&&(S=g.index,A=g.injector);const L=HC(this._lContainer,p.ssrId),ce=p.createEmbeddedViewImpl(h||{},A,L);return this.insertImpl(ce,S,j1(this._hostTNode,L)),ce}createComponent(p,h,g,S,A){const L=p&&!function me(u){return"function"==typeof u}(p);let ce;if(L)ce=h;else{const Wn=h||{};ce=Wn.index,g=Wn.injector,S=Wn.projectableNodes,A=Wn.environmentInjector||Wn.ngModuleRef}const Ce=L?p:new wS(Eo(p)),Ye=g||this.parentInjector;if(!A&&null==Ce.ngModule){const Bi=(L?Ye:this.parentInjector).get(Or,null);Bi&&(A=Bi)}const at=Eo(Ce.componentType??{}),xt=HC(this._lContainer,at?.id??null),fn=Ce.create(Ye,S,xt?.firstChild??null,A);return this.insertImpl(fn.hostView,ce,j1(this._hostTNode,xt)),fn}insert(p,h){return this.insertImpl(p,h,!0)}insertImpl(p,h,g){const S=p._lView;if(function Ut(u){return Fl(u[Fo])}(S)){const ce=this.indexOf(p);if(-1!==ce)this.detach(ce);else{const Ce=S[Fo],Ye=new YL(Ce,Ce[Po],Ce[Fo]);Ye.detach(Ye.indexOf(p))}}const A=this._adjustIndex(h),L=this._lContainer;return LC(L,S,A,g),p.attachToViewContainerRef(),ss(RA(L),A,p),p}move(p,h){return this.insert(p,h)}indexOf(p){const h=SS(this._lContainer);return null!==h?h.indexOf(p):-1}remove(p){const h=this._adjustIndex(p,-1),g=XT(this._lContainer,h);g&&(Ho(RA(this._lContainer),h),KT(g[Kn],g))}detach(p){const h=this._adjustIndex(p,-1),g=XT(this._lContainer,h);return g&&null!=Ho(RA(this._lContainer),h)?new NC(g):null}_adjustIndex(p,h=0){return p??this.length+h}};function SS(u){return u[8]}function RA(u){return u[8]||(u[8]=[])}function OA(u,p){let h;const g=p[u.index];return Fl(g)?h=g:(h=mL(g,p,null,u),p[u.index]=h,pE(p,h)),RE(h,p,u,g),new YL(h,u,p)}let RE=function zL(u,p,h,g){if(u[Ol])return;let S;S=8&h.type?St(g):function AV(u,p){const h=u[ds],g=h.createComment(""),S=qn(p,u);return jf(h,RC(h,S),g,function ev(u,p){return u.nextSibling(p)}(h,S),!1),g}(p,h),u[Ol]=S},FA=()=>!1;class OE{queryList;matches=null;constructor(p){this.queryList=p}clone(){return new OE(this.queryList)}setDirty(){this.queryList.setDirty()}}class PA{queries;constructor(p=[]){this.queries=p}createEmbeddedView(p){const h=p.queries;if(null!==h){const g=null!==p.contentQueries?p.contentQueries[0]:h.length,S=[];for(let A=0;A<g;A++){const L=h.getByIndex(A);S.push(this.queries[L.indexInDeclarationView].clone())}return new PA(S)}return null}insertView(p){this.dirtyQueriesWithMatches(p)}detachView(p){this.dirtyQueriesWithMatches(p)}finishViewCreation(p){this.dirtyQueriesWithMatches(p)}dirtyQueriesWithMatches(p){for(let h=0;h<this.queries.length;h++)null!==z1(p,h).matches&&this.queries[h].setDirty()}}class qL{flags;read;predicate;constructor(p,h,g=null){this.flags=h,this.read=g,this.predicate="string"==typeof p?function FE(u){return u.split(",").map(p=>p.trim())}(p):p}}class LA{queries;constructor(p=[]){this.queries=p}elementStart(p,h){for(let g=0;g<this.queries.length;g++)this.queries[g].elementStart(p,h)}elementEnd(p){for(let h=0;h<this.queries.length;h++)this.queries[h].elementEnd(p)}embeddedTView(p){let h=null;for(let g=0;g<this.length;g++){const S=null!==h?h.length:0,A=this.getByIndex(g).embeddedTView(p,S);A&&(A.indexInDeclarationView=g,null!==h?h.push(A):h=[A])}return null!==h?new LA(h):null}template(p,h){for(let g=0;g<this.queries.length;g++)this.queries[g].template(p,h)}getByIndex(p){return this.queries[p]}get length(){return this.queries.length}track(p){this.queries.push(p)}}class NA{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(p,h=-1){this.metadata=p,this._declarationNodeIndex=h}elementStart(p,h){this.isApplyingToNode(h)&&this.matchTNode(p,h)}elementEnd(p){this._declarationNodeIndex===p.index&&(this._appliesToNextNode=!1)}template(p,h){this.elementStart(p,h)}embeddedTView(p,h){return this.isApplyingToNode(p)?(this.crossesNgTemplate=!0,this.addMatch(-p.index,h),new NA(this.metadata)):null}isApplyingToNode(p){if(this._appliesToNextNode&&1&~this.metadata.flags){const h=this._declarationNodeIndex;let g=p.parent;for(;null!==g&&8&g.type&&g.index!==h;)g=g.parent;return h===(null!==g?g.index:-1)}return this._appliesToNextNode}matchTNode(p,h){const g=this.metadata.predicate;if(Array.isArray(g))for(let S=0;S<g.length;S++){const A=g[S];this.matchTNodeWithReadOption(p,h,OV(h,A)),this.matchTNodeWithReadOption(p,h,hm(h,p,A,!1,!1))}else g===sS?4&h.type&&this.matchTNodeWithReadOption(p,h,-1):this.matchTNodeWithReadOption(p,h,hm(h,p,g,!1,!1))}matchTNodeWithReadOption(p,h,g){if(null!==g){const S=this.metadata.read;if(null!==S)if(S===fm||S===ME||S===sS&&4&h.type)this.addMatch(h.index,-2);else{const A=hm(h,p,S,!1,!1);null!==A&&this.addMatch(h.index,A)}else this.addMatch(h.index,g)}}addMatch(p,h){null===this.matches?this.matches=[p,h]:this.matches.push(p,h)}}function OV(u,p){const h=u.localNames;if(null!==h)for(let g=0;g<h.length;g+=2)if(h[g]===p)return h[g+1];return null}function XL(u,p,h,g){return-1===h?function FV(u,p){return 11&u.type?Ju(u,p):4&u.type?vE(u,p):null}(p,u):-2===h?function PV(u,p,h){return h===fm?Ju(p,u):h===sS?vE(p,u):h===ME?OA(p,u):void 0}(u,p,g):hd(u,u[Kn],h,p)}function KL(u,p,h,g){const S=p[Ac].queries[g];if(null===S.matches){const A=u.data,L=h.matches,ce=[];for(let Ce=0;null!==L&&Ce<L.length;Ce+=2){const Ye=L[Ce];ce.push(Ye<0?null:XL(p,A[Ye],L[Ce+1],h.metadata.read))}S.matches=ce}return S.matches}function GA(u,p,h,g){const S=u.queries.getByIndex(h),A=S.matches;if(null!==A){const L=KL(u,p,S,h);for(let ce=0;ce<A.length;ce+=2){const Ce=A[ce];if(Ce>0)g.push(L[ce/2]);else{const Ye=A[ce+1],at=p[-Ce];for(let xt=Kl;xt<at.length;xt++){const un=at[xt];un[ld]===un[Fo]&&GA(un[Kn],un,Ye,g)}if(null!==at[bl]){const xt=at[bl];for(let un=0;un<xt.length;un++){const fn=xt[un];GA(fn[Kn],fn,Ye,g)}}}}}return g}function BA(u,p){return u[Ac].queries[p].queryList}function QL(u,p,h){const g=new o_(!(4&~h));return function oA(u,p,h,g){const S=gL(p);S.push(h),u.firstCreatePass&&vL(u).push(g,S.length-1)}(u,p,g,g.destroy),(p[Ac]??=new PA).queries.push(new OE(g))-1}function JL(u,p,h){const g=fr();return g.firstCreatePass&&(e3(g,new qL(u,p,h),-1),!(2&~p)&&(g.staticViewQueries=!0)),QL(g,Yn(),p)}function ZL(u,p,h,g){const S=fr();if(S.firstCreatePass){const A=hr();e3(S,new qL(p,h,g),A.index),function LV(u,p){const h=u.contentQueries||(u.contentQueries=[]);p!==(h.length?h[h.length-1]:-1)&&h.push(u.queries.length-1,p)}(S,u),!(2&~h)&&(S.staticContentQueries=!0)}return QL(S,Yn(),h)}function e3(u,p,h){null===u.queries&&(u.queries=new LA),u.queries.track(new NA(p,h))}function z1(u,p){return u.queries.getByIndex(p)}function t3(u,p){const h=u[Kn],g=z1(h,p);return g.crossesNgTemplate?GA(h,u,p,[]):KL(h,u,g,p)}function YC(u,p){Ke("NgSignals");const h=(0,C.n5)(u),g=h[C.bh];return p?.equal&&(g.equal=p.equal),h.set=S=>(0,C.j2)(g,S),h.update=S=>(0,C.mC)(g,S),h.asReadonly=VA.bind(h),h}function VA(){const u=this[C.bh];if(void 0===u.readonlyFn){const p=()=>this();p[C.bh]=u,u.readonlyFn=p}return u.readonlyFn}function WC(u){return function n3(u){return"function"==typeof u&&void 0!==u[C.bh]}(u)&&"function"==typeof u.set}function PE(u,p,h){let g;const S=(0,C.KZ)(()=>{g._dirtyCounter();const A=function NV(u,p){const h=u._lView,g=u._queryIndex;if(void 0===h||void 0===g||4&h[xr])return p?void 0:Is;const S=BA(h,g),A=t3(h,g);return S.reset(A,Kh),p?S.first:S._changesDetected||void 0===u._flatValue?u._flatValue=S.toArray():u._flatValue}(g,u);if(p&&void 0===A)throw new Q(-951,!1);return A});return g=S[C.bh],g._dirtyCounter=YC(0),g._flatValue=void 0,S}function i3(u){return PE(!0,!1)}function ES(u){return PE(!0,!0)}function jA(u,p){const h=u[C.bh];h._lView=Yn(),h._queryIndex=p,h._queryList=BA(h._lView,p),h._queryList.onDirty(()=>h._dirtyCounter.update(g=>g+1))}function o3(u,p){return i3()}const Q0=(o3.required=function GV(u,p){return ES()},o3);function a3(u,p){return i3()}const BV=(a3.required=function l3(u,p){return ES()},a3);function c3(u,p){const h=Object.create(X),g=new Fg;function S(){return(0,C.mK)(h),u3(h.value),h.value}return h.value=u,S[C.bh]=h,S.asReadonly=VA.bind(S),S.set=A=>{h.equal(h.value,A)||((0,C.j2)(h,A),g.emit(A))},S.update=A=>{u3(h.value),S.set(A(h.value))},S.subscribe=g.subscribe.bind(g),S.destroyRef=g.destroyRef,S}function u3(u){if(u===Z)throw new Q(952,!1)}function zC(u,p){return c3(u)}const LE=(zC.required=function VV(u){return c3(Z)},zC);class J0{}class m3{}function qC(u,p){return new YA(u,p??null,[])}class YA extends J0{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new jL(this);constructor(p,h,g,S=!0){super(),this.ngModuleType=p,this._parent=h;const A=na(p);this._bootstrapComponents=Vf(A.bootstrap),this._r3Injector=Ja(p,h,[{provide:J0,useValue:this},{provide:yS,useValue:this.componentFactoryResolver},...g],Ve(p),new Set(["environment"])),S&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){const p=this._r3Injector;!p.destroyed&&p.destroy(),this.destroyCbs.forEach(h=>h()),this.destroyCbs=null}onDestroy(p){this.destroyCbs.push(p)}}class WA extends m3{moduleType;constructor(p){super(),this.moduleType=p}create(p){return new YA(this.moduleType,p,[])}}class XC extends J0{injector;componentFactoryResolver=new jL(this);instance=null;constructor(p){super();const h=new Zo([...p.providers,{provide:J0,useValue:this},{provide:yS,useValue:this.componentFactoryResolver}],p.parent||dr(),p.debugName,new Set(["environment"]));this.injector=h,p.runEnvironmentInitializers&&h.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(p){this.injector.onDestroy(p)}}function zA(u,p,h=null){return new XC({providers:u,parent:p,debugName:h,runEnvironmentInitializers:!0}).injector}let zV=(()=>{class u{_injector;cachedInjectors=new Map;constructor(h){this._injector=h}getOrCreateStandaloneInjector(h){if(!h.standalone)return null;if(!this.cachedInjectors.has(h)){const g=te(0,h.type),S=g.length>0?zA([g],this._injector,`Standalone[${h.type.name}]`):null;this.cachedInjectors.set(h,S)}return this.cachedInjectors.get(h)}ngOnDestroy(){try{for(const h of this.cachedInjectors.values())null!==h&&h.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=Vt({token:u,providedIn:"environment",factory:()=>new u(Ia(Or))})}return u})();function g3(u){return ne(()=>{const p=QC(u),h={...p,decls:u.decls,vars:u.vars,template:u.template,consts:u.consts||null,ngContentSelectors:u.ngContentSelectors,onPush:u.changeDetection===Jc.OnPush,directiveDefs:null,pipeDefs:null,dependencies:p.standalone&&u.dependencies||null,getStandaloneInjector:p.standalone?S=>S.get(zV).getOrCreateStandaloneInjector(h):null,getExternalStyles:null,signals:u.signals??!1,data:u.data||{},encapsulation:u.encapsulation||B0.Emulated,styles:u.styles||Is,_:null,schemas:u.schemas||null,tView:null,id:""};p.standalone&&Ke("NgStandalone"),y3(h);const g=u.dependencies;return h.directiveDefs=GE(g,!1),h.pipeDefs=GE(g,!0),h.id=function XV(u){let p=0;const g=[u.selectors,u.ngContentSelectors,u.hostVars,u.hostAttrs,"function"==typeof u.consts?"":u.consts,u.vars,u.decls,u.encapsulation,u.standalone,u.signals,u.exportAs,JSON.stringify(u.inputs),JSON.stringify(u.outputs),Object.getOwnPropertyNames(u.type.prototype),!!u.contentQueries,!!u.viewQuery];for(const A of g.join("|"))p=Math.imul(31,p)+A.charCodeAt(0)|0;return p+=2147483648,"c"+p}(h),h})}function KC(u){return Eo(u)||Ha(u)}function qV(u){return null!==u}function qA(u){return ne(()=>({type:u.type,bootstrap:u.bootstrap||Is,declarations:u.declarations||Is,imports:u.imports||Is,exports:u.exports||Is,transitiveCompileScopes:null,schemas:u.schemas||null,id:u.id||null}))}function NE(u,p){if(null==u)return al;const h={};for(const g in u)if(u.hasOwnProperty(g)){const S=u[g];let A,L,ce=H0.None;Array.isArray(S)?(ce=S[0],A=S[1],L=S[2]??A):(A=S,L=S),p?(h[A]=ce!==H0.None?[g,ce]:g,p[A]=L):h[A]=g}return h}function v3(u){return ne(()=>{const p=QC(u);return y3(p),p})}function _3(u){return{type:u.type,name:u.name,factory:null,pure:!1!==u.pure,standalone:u.standalone??!0,onDestroy:u.type.prototype.ngOnDestroy||null}}function QC(u){const p={};return{type:u.type,providersResolver:null,factory:null,hostBindings:u.hostBindings||null,hostVars:u.hostVars||0,hostAttrs:u.hostAttrs||null,contentQueries:u.contentQueries||null,declaredInputs:p,inputTransforms:null,inputConfig:u.inputs||al,exportAs:u.exportAs||null,standalone:u.standalone??!0,signals:!0===u.signals,selectors:u.selectors||Is,viewQuery:u.viewQuery||null,features:u.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:NE(u.inputs,p),outputs:NE(u.outputs),debugInfo:null}}function y3(u){u.features?.forEach(p=>p(u))}function GE(u,p){if(!u)return null;const h=p?Jr:KC;return()=>("function"==typeof u?u():u).map(g=>h(g)).filter(qV)}function XA(u){let p=function C3(u){return Object.getPrototypeOf(u.prototype).constructor}(u.type),h=!0;const g=[u];for(;p;){let S;if(Au(u))S=p.\u0275cmp||p.\u0275dir;else{if(p.\u0275cmp)throw new Q(903,!1);S=p.\u0275dir}if(S){if(h){g.push(S);const L=u;L.inputs=BE(u.inputs),L.inputTransforms=BE(u.inputTransforms),L.declaredInputs=BE(u.declaredInputs),L.outputs=BE(u.outputs);const ce=S.hostBindings;ce&&ZV(u,ce);const Ce=S.viewQuery,Ye=S.contentQueries;if(Ce&&w3(u,Ce),Ye&&JV(u,Ye),KV(u,S),be(u.outputs,S.outputs),Au(S)&&S.data.animation){const at=u.data;at.animation=(at.animation||[]).concat(S.data.animation)}}const A=S.features;if(A)for(let L=0;L<A.length;L++){const ce=A[L];ce&&ce.ngInherit&&ce(u),ce===XA&&(h=!1)}}p=Object.getPrototypeOf(p)}!function QV(u){let p=0,h=null;for(let g=u.length-1;g>=0;g--){const S=u[g];S.hostVars=p+=S.hostVars,S.hostAttrs=U(S.hostAttrs,h=U(h,S.hostAttrs))}}(g)}function KV(u,p){for(const h in p.inputs){if(!p.inputs.hasOwnProperty(h)||u.inputs.hasOwnProperty(h))continue;const g=p.inputs[h];if(void 0!==g&&(u.inputs[h]=g,u.declaredInputs[h]=p.declaredInputs[h],null!==p.inputTransforms)){const S=Array.isArray(g)?g[0]:g;if(!p.inputTransforms.hasOwnProperty(S))continue;u.inputTransforms??={},u.inputTransforms[S]=p.inputTransforms[S]}}}function BE(u){return u===al?{}:u===Is?[]:u}function w3(u,p){const h=u.viewQuery;u.viewQuery=h?(g,S)=>{p(g,S),h(g,S)}:p}function JV(u,p){const h=u.contentQueries;u.contentQueries=h?(g,S,A)=>{p(g,S,A),h(g,S,A)}:p}function ZV(u,p){const h=u.hostBindings;u.hostBindings=h?(g,S)=>{p(g,S),h(g,S)}:p}function T3(u){const p=h=>{const g=Array.isArray(u);null===h.hostDirectives?(h.findHostDirectiveDefs=S3,h.hostDirectives=g?u.map(QA):[u]):g?h.hostDirectives.unshift(...u.map(QA)):h.hostDirectives.unshift(u)};return p.ngInherit=!0,p}function S3(u,p,h){if(null!==u.hostDirectives)for(const g of u.hostDirectives)if("function"==typeof g){const S=g();for(const A of S)JC(QA(A),p,h)}else JC(g,p,h)}function JC(u,p,h){const g=Ha(u.directive);(function VE(u,p){for(const h in p)p.hasOwnProperty(h)&&(u[p[h]]=u[h])})(g.declaredInputs,u.inputs),S3(g,p,h),h.set(g,u),p.push(g)}function QA(u){return"function"==typeof u?{directive:xe(u),inputs:al,outputs:al}:{directive:xe(u.directive),inputs:x3(u.inputs),outputs:x3(u.outputs)}}function x3(u){if(void 0===u||0===u.length)return al;const p={};for(let h=0;h<u.length;h+=2)p[u[h]]=u[h+1];return p}function E3(u){const p=u.inputConfig,h={};for(const g in p)if(p.hasOwnProperty(g)){const S=p[g];Array.isArray(S)&&S[3]&&(h[g]=S[3])}u.inputTransforms=h}function ZC(u){return!!AS(u)&&(Array.isArray(u)||!(u instanceof Map)&&Symbol.iterator in u)}function AS(u){return null!==u&&("function"==typeof u||"object"==typeof u)}function av(u,p,h){return u[p]=h}function q1(u,p){return u[p]}function td(u,p,h){return!Object.is(u[p],h)&&(u[p]=h,!0)}function X1(u,p,h,g){const S=td(u,p,h);return td(u,p+1,g)||S}function ew(u,p,h,g,S){const A=X1(u,p,h,g);return td(u,p+2,S)||A}function Sm(u,p,h,g,S,A){const L=X1(u,p,h,g);return X1(u,p+2,S,A)||L}function MS(u,p,h,g,S,A,L,ce,Ce,Ye){const at=h+Er,xt=p.firstCreatePass?function D3(u,p,h,g,S,A,L,ce,Ce){const Ye=p.consts,at=ig(p,u,4,L||null,ce||null);aA(p,h,at,jt(Ye,Ce)),op(p,at);const xt=at.tView=rA(2,at,g,S,A,p.directiveRegistry,p.pipeRegistry,null,p.schemas,Ye,null);return null!==p.queries&&(p.queries.template(p,at),xt.queries=p.queries.embeddedTView(at)),at}(at,p,u,g,S,A,L,ce,Ce):p.data[at];ee(xt,!1);const un=RS(p,u,xt,h);Qu()&&aE(p,u,un,xt),bc(un,u);const fn=mL(un,u,un,xt);return u[at]=fn,pE(u,fn),function WL(u,p,h){return FA(u,p,h)}(fn,xt,u),yu(xt)&&tA(p,u,xt),null!=Ce&&nA(u,xt,Ye),xt}function JA(u,p,h,g,S,A,L,ce){const Ce=Yn(),Ye=fr();return MS(Ce,Ye,u,p,h,g,S,jt(Ye.consts,A),L,ce),JA}let RS=function k3(u,p,h,g){return Gd(!0),p[ds].createComment("")};let P3=(()=>{class u{log(h){console.log(h)}warn(h){console.warn(h)}static \u0275fac=function(g){return new(g||u)};static \u0275prov=Vt({token:u,factory:u.\u0275fac,providedIn:"platform"})}return u})();const B3="ng";function Dj(u,p){!function j3(u,p){if(typeof COMPILED>"u"||!COMPILED){const h=De;h[B3]??={},h[B3][u]=p}}(u,p)}const KE=new ur(""),H3=new ur("");let uM,kj=(()=>{class u{_ngZone;registry;_isZoneStable=!0;_callbacks=[];taskTrackingZone=null;constructor(h,g,S){this._ngZone=h,this.registry=g,uM||(function Ij(u){uM=u}(S),S.addToWindow(g)),this._watchAngularEvents(),h.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ca.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let h=this._callbacks.pop();clearTimeout(h.timeoutId),h.doneCb()}});else{let h=this.getPendingTasks();this._callbacks=this._callbacks.filter(g=>!g.updateCb||!g.updateCb(h)||(clearTimeout(g.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(h=>({source:h.source,creationLocation:h.creationLocation,data:h.data})):[]}addCallback(h,g,S){let A=-1;g&&g>0&&(A=setTimeout(()=>{this._callbacks=this._callbacks.filter(L=>L.timeoutId!==A),h()},g)),this._callbacks.push({doneCb:h,timeoutId:A,updateCb:S})}whenStable(h,g,S){if(S&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(h,g,S),this._runCallbacksIfReady()}registerApplication(h){this.registry.registerApplication(h,this)}unregisterApplication(h){this.registry.unregisterApplication(h)}findProviders(h,g,S){return[]}static \u0275fac=function(g){return new(g||u)(Ia(Ca),Ia(FS),Ia(H3))};static \u0275prov=Vt({token:u,factory:u.\u0275fac})}return u})(),FS=(()=>{class u{_applications=new Map;registerApplication(h,g){this._applications.set(h,g)}unregisterApplication(h){this._applications.delete(h)}unregisterAllApplications(){this._applications.clear()}getTestability(h){return this._applications.get(h)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(h,g=!0){return uM?.findTestabilityInTree(this,h,g)??null}static \u0275fac=function(g){return new(g||u)};static \u0275prov=Vt({token:u,factory:u.\u0275fac,providedIn:"platform"})}return u})();function QE(u){return!!u&&"function"==typeof u.then}function U3(u){return!!u&&"function"==typeof u.subscribe}const dM=new ur("");function Aj(u){return du([{provide:dM,multi:!0,useValue:u}])}let $3=(()=>{class u{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((h,g)=>{this.resolve=h,this.reject=g});appInits=Mr(dM,{optional:!0})??[];injector=Mr($l);constructor(){}runInitializers(){if(this.initialized)return;const h=[];for(const S of this.appInits){const A=Ys(this.injector,S);if(QE(A))h.push(A);else if(U3(A)){const L=new Promise((ce,Ce)=>{A.subscribe({complete:ce,error:Ce})});h.push(L)}}const g=()=>{this.done=!0,this.resolve()};Promise.all(h).then(()=>{g()}).catch(S=>{this.reject(S)}),0===h.length&&g(),this.initialized=!0}static \u0275fac=function(g){return new(g||u)};static \u0275prov=Vt({token:u,factory:u.\u0275fac,providedIn:"root"})}return u})(),ny=(()=>{class u{static \u0275prov=Vt({token:u,providedIn:"root",factory:()=>new Y3})}return u})();class Y3{queuedEffectCount=0;queues=new Map;schedule(p){this.enqueue(p)}enqueue(p){const h=p.zone;this.queues.has(h)||this.queues.set(h,new Set);const g=this.queues.get(h);g.has(p)||(this.queuedEffectCount++,g.add(p))}flush(){for(;this.queuedEffectCount>0;)for(const[p,h]of this.queues)null===p?this.flushQueue(h):p.run(()=>this.flushQueue(h))}flushQueue(p){for(const h of p)p.delete(h),this.queuedEffectCount--,h.run()}}const Q1=new ur("");function JE(u,p){return Array.isArray(p)?p.reduce(JE,u):{...u,...p}}let Yf=(()=>{class u{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=Mr(Et);afterRenderManager=Mr(Tt);zonelessEnabled=Mr(Ee);rootEffectScheduler=Mr(ny);dirtyFlags=0;deferredDirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new D.B;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=Mr(Jn).hasPendingTasks.pipe((0,R.T)(h=>!h));constructor(){Mr(ae,{optional:!0})}whenStable(){let h;return new Promise(g=>{h=this.isStable.subscribe({next:S=>{S&&g()}})}).finally(()=>{h.unsubscribe()})}_injector=Mr(Or);_rendererFactory=null;get injector(){return this._injector}bootstrap(h,g){const S=h instanceof BL;if(!this._injector.get($3).done)throw!S&&uo(h),new Q(405,!1);let L;L=S?h:this._injector.get(yS).resolveComponentFactory(h),this.componentTypes.push(L.componentType);const ce=function Mj(u){return u.isBoundToModule}(L)?void 0:this._injector.get(J0),Ye=L.create($l.NULL,[],g||L.selector,ce),at=Ye.location.nativeElement,xt=Ye.injector.get(KE,null);return xt?.registerApplication(at),Ye.onDestroy(()=>{this.detachView(Ye.hostView),rg(this.components,Ye),xt?.unregisterApplication(at)}),this._loadComponent(Ye),Ye}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick=()=>{if(null!==this.tracingSnapshot){const g=this.tracingSnapshot;return this.tracingSnapshot=null,g.run(B.CHANGE_DETECTION,this._tick),void g.dispose()}if(this._runningTick)throw new Q(101,!1);const h=(0,C.Ht)(null);try{this._runningTick=!0,this.synchronize()}catch(g){this.internalErrorHandler(g)}finally{this._runningTick=!1,(0,C.Ht)(h),this.afterTick.next()}};synchronize(){null===this._rendererFactory&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(DA,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let h=0;for(;0!==this.dirtyFlags&&h++<10;)this.synchronizeOnce()}synchronizeOnce(){if(this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0,16&this.dirtyFlags&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),7&this.dirtyFlags){const h=!!(1&this.dirtyFlags);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:g,notifyErrorHandler:S}of this.allViews)Em(g,S,h,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),23&this.dirtyFlags)return}else this._rendererFactory?.begin?.(),this._rendererFactory?.end?.();8&this.dirtyFlags&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){this.allViews.some(({_lView:h})=>vi(h))?this.dirtyFlags|=2:this.dirtyFlags&=-8}attachView(h){const g=h;this._views.push(g),g.attachToAppRef(this)}detachView(h){const g=h;rg(this._views,g),g.detachFromAppRef()}_loadComponent(h){this.attachView(h.hostView),this.tick(),this.components.push(h),this._injector.get(Q1,[]).forEach(S=>S(h))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(h=>h()),this._views.slice().forEach(h=>h.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(h){return this._destroyListeners.push(h),()=>rg(this._destroyListeners,h)}destroy(){if(this._destroyed)throw new Q(406,!1);const h=this._injector;h.destroy&&!h.destroyed&&h.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static \u0275fac=function(g){return new(g||u)};static \u0275prov=Vt({token:u,factory:u.\u0275fac,providedIn:"root"})}return u})();function rg(u,p){const h=u.indexOf(p);h>-1&&u.splice(h,1)}function Em(u,p,h,g){(h||vi(u))&&fE(u,p,h&&!g?0:1)}function CM(u,p,h,g){const S=Yn();return td(S,Oo(),p)&&(fr(),iv(hl(),S,u,p,h,g)),CM}function ow(u,p,h,g){return td(u,Oo(),h)?p+qr(h)+g:Ds}function uv(u,p,h,g,S,A,L,ce){const Ye=ew(u,Qo(),h,S,L);return ia(3),Ye?p+qr(h)+g+qr(S)+A+qr(L)+ce:Ds}function iy(u,p){return u<<17|p<<2}function og(u){return u>>17&32767}function tD(u){return 2|u}function nb(u){return(131068&u)>>2}function NS(u,p){return-131069&u|p<<2}function xM(u){return 1|u}function d4(u,p,h,g){const S=u[h+1],A=null===p;let L=g?og(S):nb(S),ce=!1;for(;0!==L&&(!1===ce||A);){const Ye=u[L+1];Wj(u[L],p)&&(ce=!0,u[L+1]=g?xM(Ye):tD(Ye)),L=g?og(Ye):nb(Ye)}ce&&(u[h+1]=g?tD(S):xM(S))}function Wj(u,p){return null===u||null==p||(Array.isArray(u)?u[1]:u)===p||!(!Array.isArray(u)||"string"!=typeof p)&&kc(u,p)>=0}const Wd={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function p4(u){return u.substring(Wd.key,Wd.keyEnd)}function zj(u){return u.substring(Wd.value,Wd.valueEnd)}function h4(u,p){const h=Wd.textEnd;return h===p?-1:(p=Wd.keyEnd=function Kj(u,p,h){for(;p<h&&u.charCodeAt(p)>32;)p++;return p}(u,Wd.key=p,h),O_(u,p,h))}function f4(u,p){const h=Wd.textEnd;let g=Wd.key=O_(u,p,h);return h===g?-1:(g=Wd.keyEnd=function EM(u,p,h){let g;for(;p<h&&(45===(g=u.charCodeAt(p))||95===g||(-33&g)>=65&&(-33&g)<=90||g>=48&&g<=57);)p++;return p}(u,g,h),g=DM(u,g,h),g=Wd.value=O_(u,g,h),g=Wd.valueEnd=function GS(u,p,h){let g=-1,S=-1,A=-1,L=p,ce=L;for(;L<h;){const Ce=u.charCodeAt(L++);if(59===Ce)return ce;34===Ce||39===Ce?ce=L=kM(u,Ce,L,h):p===L-4&&85===A&&82===S&&76===g&&40===Ce?ce=L=kM(u,41,L,h):Ce>32&&(ce=L),A=S,S=g,g=-33&Ce}return ce}(u,g,h),DM(u,g,h))}function Xj(u){Wd.key=0,Wd.keyEnd=0,Wd.value=0,Wd.valueEnd=0,Wd.textEnd=u.length}function O_(u,p,h){for(;p<h&&u.charCodeAt(p)<=32;)p++;return p}function DM(u,p,h,g){return(p=O_(u,p,h))<h&&p++,p}function kM(u,p,h,g){let S=-1,A=h;for(;A<g;){const L=u.charCodeAt(A++);if(L==p&&92!==S)return A;S=92==L&&92===S?0:L}throw new Error}function BS(u,p,h){const g=Yn();return td(g,Oo(),p)&&nf(fr(),hl(),g,u,p,g[ds],h,!1),BS}function m4(u,p,h,g,S){const L=S?"class":"style";uA(u,h,p.inputs[L],L,g)}function lw(u,p,h){return Dm(u,p,h,!1),lw}function iD(u,p){return Dm(u,p,null,!0),iD}function sg(u){km(zf,Jj,u,!1)}function Jj(u,p){for(let h=function qj(u){return Xj(u),f4(u,O_(u,0,Wd.textEnd))}(p);h>=0;h=f4(p,h))zf(u,p4(p),zj(p))}function g4(u){km(ni,pv,u,!0)}function pv(u,p){for(let h=function nD(u){return Xj(u),h4(u,O_(u,0,Wd.textEnd))}(p);h>=0;h=h4(p,h))oo(u,p4(p),!0)}function Dm(u,p,h,g){const S=Yn(),A=fr(),L=ia(2);A.firstUpdatePass&&Zj(A,u,L,g),p!==Ds&&td(S,L,p)&&b4(A,A.data[La()],S,S[ds],u,S[L+1]=function n9(u,p){return null==u||""===u||("string"==typeof p?u+=p:"object"==typeof u&&(u=Ve(S_(u)))),u}(p,h),g,L)}function km(u,p,h,g){const S=fr(),A=ia(2);S.firstUpdatePass&&Zj(S,null,A,g);const L=Yn();if(h!==Ds&&td(L,A,h)){const ce=S.data[La()];if(w4(ce,g)&&!v4(S,A)){let Ce=g?ce.classesWithoutHost:ce.stylesWithoutHost;null!==Ce&&(h=Ie(Ce,h||"")),m4(S,ce,L,h,g)}else!function ag(u,p,h,g,S,A,L,ce){S===Ds&&(S=Is);let Ce=0,Ye=0,at=0<S.length?S[0]:null,xt=0<A.length?A[0]:null;for(;null!==at||null!==xt;){const un=Ce<S.length?S[Ce+1]:void 0,fn=Ye<A.length?A[Ye+1]:void 0;let Bi,Wn=null;at===xt?(Ce+=2,Ye+=2,un!==fn&&(Wn=xt,Bi=fn)):null===xt||null!==at&&at<xt?(Ce+=2,Wn=at):(Ye+=2,Wn=xt,Bi=fn),null!==Wn&&b4(u,p,h,g,Wn,Bi,L,ce),at=Ce<S.length?S[Ce]:null,xt=Ye<A.length?A[Ye]:null}}(S,ce,L,L[ds],L[A+1],L[A+1]=function AM(u,p,h){if(null==h||""===h)return Is;const g=[],S=S_(h);if(Array.isArray(S))for(let A=0;A<S.length;A++)u(g,S[A],!0);else if("object"==typeof S)for(const A in S)S.hasOwnProperty(A)&&u(g,A,S[A]);else"string"==typeof S&&p(g,S);return g}(u,p,h),g,A)}}function v4(u,p){return p>=u.expandoStartIndex}function Zj(u,p,h,g){const S=u.data;if(null===S[h+1]){const A=S[La()],L=v4(u,h);w4(A,g)&&null===p&&!L&&(p=!1),p=function _4(u,p,h,g){const S=function vc(u){const p=mt.lFrame.currentDirectiveIndex;return-1===p?null:u[p]}(u);let A=g?p.residualClasses:p.residualStyles;if(null===S)0===(g?p.classBindings:p.styleBindings)&&(h=cw(h=IM(null,u,p,h,g),p.attrs,g),A=null);else{const L=p.directiveStylingLast;if(-1===L||u[L]!==S)if(h=IM(S,u,p,h,g),null===A){let Ce=function y4(u,p,h){const g=h?p.classBindings:p.styleBindings;if(0!==nb(g))return u[og(g)]}(u,p,g);void 0!==Ce&&Array.isArray(Ce)&&(Ce=IM(null,u,p,Ce[1],g),Ce=cw(Ce,p.attrs,g),function e9(u,p,h,g){u[og(h?p.classBindings:p.styleBindings)]=g}(u,p,g,Ce))}else A=function t9(u,p,h){let g;const S=p.directiveEnd;for(let A=1+p.directiveStylingLast;A<S;A++)g=cw(g,u[A].hostAttrs,h);return cw(g,p.attrs,h)}(u,p,g)}return void 0!==A&&(g?p.residualClasses=A:p.residualStyles=A),h}(S,A,p,g),function qK(u,p,h,g,S,A){let L=A?p.classBindings:p.styleBindings,ce=og(L),Ce=nb(L);u[g]=h;let at,Ye=!1;if(Array.isArray(h)?(at=h[1],(null===at||kc(h,at)>0)&&(Ye=!0)):at=h,S)if(0!==Ce){const un=og(u[ce+1]);u[g+1]=iy(un,ce),0!==un&&(u[un+1]=NS(u[un+1],g)),u[ce+1]=function Wf(u,p){return 131071&u|p<<17}(u[ce+1],g)}else u[g+1]=iy(ce,0),0!==ce&&(u[ce+1]=NS(u[ce+1],g)),ce=g;else u[g+1]=iy(Ce,0),0===ce?ce=g:u[Ce+1]=NS(u[Ce+1],g),Ce=g;Ye&&(u[g+1]=tD(u[g+1])),d4(u,at,g,!0),d4(u,at,g,!1),function u4(u,p,h,g,S){const A=S?u.residualClasses:u.residualStyles;null!=A&&"string"==typeof p&&kc(A,p)>=0&&(h[g+1]=xM(h[g+1]))}(p,at,u,g,A),L=iy(ce,Ce),A?p.classBindings=L:p.styleBindings=L}(S,A,p,h,L,g)}}function IM(u,p,h,g,S){let A=null;const L=h.directiveEnd;let ce=h.directiveStylingLast;for(-1===ce?ce=h.directiveStart:ce++;ce<L&&(A=p[ce],g=cw(g,A.hostAttrs,S),A!==u);)ce++;return null!==u&&(h.directiveStylingLast=ce),g}function cw(u,p,h){const g=h?1:2;let S=-1;if(null!==p)for(let A=0;A<p.length;A++){const L=p[A];"number"==typeof L?S=L:S===g&&(Array.isArray(u)||(u=void 0===u?[]:["",u]),oo(u,L,!!h||p[++A]))}return void 0===u?null:u}function zf(u,p,h){oo(u,p,S_(h))}function ni(u,p,h){const g=String(p);""!==g&&!g.includes(" ")&&oo(u,g,h)}function b4(u,p,h,g,S,A,L,ce){if(!(3&p.type))return;const Ce=u.data,Ye=Ce[ce+1],at=function Uj(u){return!(1&~u)}(Ye)?C4(Ce,p,h,S,nb(Ye),L):void 0;rD(at)||(rD(A)||function SM(u){return!(2&~u)}(Ye)&&(A=C4(Ce,null,h,S,ce,L)),function uB(u,p,h,g,S){if(p)S?u.addClass(h,g):u.removeClass(h,g);else{let A=-1===g.indexOf("-")?void 0:rE.DashCase;null==S?u.removeStyle(h,g,A):("string"==typeof S&&S.endsWith("!important")&&(S=S.slice(0,-10),A|=rE.Important),u.setStyle(h,g,S,A))}}(g,L,Vn(La(),h),S,A))}function C4(u,p,h,g,S,A){const L=null===p;let ce;for(;S>0;){const Ce=u[S],Ye=Array.isArray(Ce),at=Ye?Ce[1]:Ce,xt=null===at;let un=h[S+1];un===Ds&&(un=xt?Is:void 0);let fn=xt?Kc(un,g):at===g?un:void 0;if(Ye&&!rD(fn)&&(fn=Kc(Ce,g)),rD(fn)&&(ce=fn,L))return ce;const Wn=u[S+1];S=L?og(Wn):nb(Wn)}if(null!==p){let Ce=A?p.residualClasses:p.residualStyles;null!=Ce&&(ce=Kc(Ce,g))}return ce}function rD(u){return void 0!==u}function w4(u,p){return!!(u.flags&(p?8:16))}function T4(u,p,h){km(oo,pv,ow(Yn(),u,p,h),!0)}class Dp{destroy(p){}updateValue(p,h){}swap(p,h){const g=Math.min(p,h),S=Math.max(p,h),A=this.detach(S);if(S-g>1){const L=this.detach(g);this.attach(g,A),this.attach(S,L)}else this.attach(g,A)}move(p,h){this.attach(h,this.detach(p))}}function fv(u,p,h,g,S){return u===h&&Object.is(p,g)?1:Object.is(S(u,p),S(h,g))?-1:0}function oD(u,p,h,g){return!(void 0===p||!p.has(g)||(u.attach(h,p.get(g)),p.delete(g),0))}function x4(u,p,h,g,S){if(oD(u,p,g,h(g,S)))u.updateValue(g,S);else{const A=u.create(g,S);u.attach(g,A)}}function E4(u,p,h,g){const S=new Set;for(let A=p;A<=h;A++)S.add(g(A,u.at(A)));return S}class sD{kvMap=new Map;_vMap=void 0;has(p){return this.kvMap.has(p)}delete(p){if(!this.has(p))return!1;const h=this.kvMap.get(p);return void 0!==this._vMap&&this._vMap.has(h)?(this.kvMap.set(p,this._vMap.get(h)),this._vMap.delete(h)):this.kvMap.delete(p),!0}get(p){return this.kvMap.get(p)}set(p,h){if(this.kvMap.has(p)){let g=this.kvMap.get(p);void 0===this._vMap&&(this._vMap=new Map);const S=this._vMap;for(;S.has(g);)g=S.get(g);S.set(g,h)}else this.kvMap.set(p,h)}forEach(p){for(let[h,g]of this.kvMap)if(p(g,h),void 0!==this._vMap){const S=this._vMap;for(;S.has(g);)g=S.get(g),p(g,h)}}}function D4(u,p){Ke("NgControlFlow");const h=Yn(),g=Oo(),S=h[g]!==Ds?h[g]:-1,A=-1!==S?uw(h,Er+S):void 0;if(td(h,g,u)){const ce=(0,C.Ht)(null);try{if(void 0!==A&&iS(A,0),-1!==u){const Ce=Er+u,Ye=uw(h,Ce),at=aD(h[Kn],Ce),xt=HC(Ye,at.tView.ssrId);LC(Ye,PC(h,at,p,{dehydratedView:xt}),0,j1(at,xt))}}finally{(0,C.Ht)(ce)}}else if(void 0!==A){const ce=dA(A,0);void 0!==ce&&(ce[Ws]=p)}}class c9{lContainer;$implicit;$index;constructor(p,h,g){this.lContainer=p,this.$implicit=h,this.$index=g}get $count(){return this.lContainer.length-Kl}}function k4(u){return u}function I4(u,p){return p}class u9{hasEmptyBlock;trackByFn;liveCollection;constructor(p,h,g){this.hasEmptyBlock=p,this.trackByFn=h,this.liveCollection=g}}function A4(u,p,h,g,S,A,L,ce,Ce,Ye,at,xt,un){Ke("NgControlFlow");const fn=Yn(),Wn=fr(),Bi=void 0!==Ce,Fr=Yn(),Br=ce?L.bind(Fr[Ua][Ws]):L,Vi=new u9(Bi,Br);Fr[Er+u]=Vi,MS(fn,Wn,u+1,p,h,g,S,jt(Wn.consts,A)),Bi&&MS(fn,Wn,u+2,Ce,Ye,at,xt,jt(Wn.consts,un))}class d9 extends Dp{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(p,h,g){super(),this.lContainer=p,this.hostLView=h,this.templateTNode=g}get length(){return this.lContainer.length-Kl}at(p){return this.getLView(p)[Ws].$implicit}attach(p,h){const g=h[Tr];this.needsIndexUpdate||=p!==this.length,LC(this.lContainer,h,p,j1(this.templateTNode,g))}detach(p){return this.needsIndexUpdate||=p!==this.length-1,function M4(u,p){return XT(u,p)}(this.lContainer,p)}create(p,h){const g=HC(this.lContainer,this.templateTNode.tView.ssrId),S=PC(this.hostLView,this.templateTNode,new c9(this.lContainer,h,p),{dehydratedView:g});return this.operationsCounter?.recordCreate(),S}destroy(p){KT(p[Kn],p),this.operationsCounter?.recordDestroy()}updateValue(p,h){this.getLView(p)[Ws].$implicit=h}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let p=0;p<this.length;p++)this.getLView(p)[Ws].$index=p}getLView(p){return function h9(u,p){return dA(u,p)}(this.lContainer,p)}}function p9(u){const p=(0,C.Ht)(null),h=La();try{const g=Yn(),S=g[Kn],A=g[h],L=h+1,ce=uw(g,L);if(void 0===A.liveCollection){const Ye=aD(S,L);A.liveCollection=new d9(ce,g,Ye)}else A.liveCollection.reset();const Ce=A.liveCollection;if(function l9(u,p,h){let g,S,A=0,L=u.length-1;if(Array.isArray(p)){let Ce=p.length-1;for(;A<=L&&A<=Ce;){const Ye=u.at(A),at=p[A],xt=fv(A,Ye,A,at,h);if(0!==xt){xt<0&&u.updateValue(A,at),A++;continue}const un=u.at(L),fn=p[Ce],Wn=fv(L,un,Ce,fn,h);if(0!==Wn){Wn<0&&u.updateValue(L,fn),L--,Ce--;continue}const Bi=h(A,Ye),Fr=h(L,un),Br=h(A,at);if(Object.is(Br,Fr)){const Vi=h(Ce,fn);Object.is(Vi,Bi)?(u.swap(A,L),u.updateValue(L,fn),Ce--,L--):u.move(L,A),u.updateValue(A,at),A++}else if(g??=new sD,S??=E4(u,A,L,h),oD(u,g,A,Br))u.updateValue(A,at),A++,L++;else if(S.has(Br))g.set(Bi,u.detach(A)),L--;else{const Vi=u.create(A,p[A]);u.attach(A,Vi),A++,L++}}for(;A<=Ce;)x4(u,g,h,A,p[A]),A++}else if(null!=p){const Ce=p[Symbol.iterator]();let Ye=Ce.next();for(;!Ye.done&&A<=L;){const at=u.at(A),xt=Ye.value,un=fv(A,at,A,xt,h);if(0!==un)un<0&&u.updateValue(A,xt),A++,Ye=Ce.next();else{g??=new sD,S??=E4(u,A,L,h);const fn=h(A,xt);if(oD(u,g,A,fn))u.updateValue(A,xt),A++,L++,Ye=Ce.next();else if(S.has(fn)){const Wn=h(A,at);g.set(Wn,u.detach(A)),L--}else u.attach(A,u.create(A,xt)),A++,L++,Ye=Ce.next()}}for(;!Ye.done;)x4(u,g,h,u.length,Ye.value),Ye=Ce.next()}for(;A<=L;)u.destroy(u.detach(L--));g?.forEach(Ce=>{u.destroy(Ce)})}(Ce,u,A.trackByFn),Ce.updateIndexes(),A.hasEmptyBlock){const Ye=Oo(),at=0===Ce.length;if(td(g,Ye,at)){const xt=h+2,un=uw(g,xt);if(at){const fn=aD(S,xt),Wn=HC(un,fn.tView.ssrId);LC(un,PC(g,fn,void 0,{dehydratedView:Wn}),0,j1(fn,Wn))}else iS(un,0)}}}finally{(0,C.Ht)(p)}}function uw(u,p){return u[p]}function aD(u,p){return sr(u,p)}function rb(u,p,h,g){const S=Yn(),A=fr(),L=Er+u,ce=S[ds],Ce=A.firstCreatePass?function ib(u,p,h,g,S,A){const L=p.consts,Ce=ig(p,u,2,g,jt(L,S));return aA(p,h,Ce,jt(L,A)),null!==Ce.attrs&&AE(Ce,Ce.attrs,!1),null!==Ce.mergedAttrs&&AE(Ce,Ce.mergedAttrs,!0),null!==p.queries&&p.queries.elementStart(p,Ce),Ce}(L,A,S,p,h,g):A.data[L],Ye=f9(A,S,Ce,ce,p,u);S[L]=Ye;const at=yu(Ce);return ee(Ce,!0),sL(ce,Ye,Ce),!function tw(u){return!(32&~u.flags)}(Ce)&&Qu()&&aE(A,S,Ye,Ce),0===function pi(){return mt.lFrame.elementDepthCount}()&&bc(Ye,S),function _i(){mt.lFrame.elementDepthCount++}(),at&&(tA(A,S,Ce),eA(A,Ce,S)),null!==g&&nA(S,Ce),rb}function dw(){let u=hr();Te()?Le():(u=u.parent,ee(u,!1));const p=u;(function fo(u){return mt.skipHydrationRootTNode===u})(p)&&function vn(){mt.skipHydrationRootTNode=null}(),function yi(){mt.lFrame.elementDepthCount--}();const h=fr();return h.firstCreatePass&&(op(h,u),Iu(u)&&h.queries.elementEnd(u)),null!=p.classesWithoutHost&&function Mg(u){return!!(8&u.flags)}(p)&&m4(h,p,Yn(),p.classesWithoutHost,!0),null!=p.stylesWithoutHost&&function a1(u){return!!(16&u.flags)}(p)&&m4(h,p,Yn(),p.stylesWithoutHost,!1),dw}function pw(u,p,h,g){return rb(u,p,h,g),dw(),pw}let f9=(u,p,h,g,S,A)=>(Gd(!0),MC(g,S,function fh(){return mt.lFrame.currentNamespace}()));function hw(u,p,h){const g=Yn(),S=fr(),A=u+Er,L=S.firstCreatePass?function lg(u,p,h,g,S){const A=p.consts,L=jt(A,g),ce=ig(p,u,8,"ng-container",L);return null!==L&&AE(ce,L,!0),aA(p,h,ce,jt(A,S)),null!==p.queries&&p.queries.elementStart(p,ce),ce}(A,S,g,p,h):S.data[A];ee(L,!0);const ce=FM(S,g,L,u);return g[A]=ce,Qu()&&aE(S,g,ce,L),bc(ce,g),yu(L)&&(tA(S,g,L),eA(S,L,g)),null!=h&&nA(g,L),hw}function VS(){let u=hr();const p=fr();return Te()?Le():(u=u.parent,ee(u,!1)),p.firstCreatePass&&(op(p,u),Iu(u)&&p.queries.elementEnd(u)),VS}function jS(u,p,h){return hw(u,p,h),VS(),jS}let FM=(u,p,h,g)=>(Gd(!0),YI(p[ds],""));function Qp(){return Yn()}const P_=void 0;var JK=["en",[["a","p"],["AM","PM"],P_],[["AM","PM"],P_,P_],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],P_,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],P_,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",P_,"{1} 'at' {0}",P_],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function NM(u){const h=Math.floor(Math.abs(u)),g=u.toString().replace(/^[^.]*\.?/,"").length;return 1===h&&0===g?1:5}];let fw={};function cD(u){const p=function kp(u){return u.toLowerCase().replace(/_/g,"-")}(u);let h=R4(p);if(h)return h;const g=p.split("-")[0];if(h=R4(g),h)return h;if("en"===g)return JK;throw new Q(701,!1)}function mv(u){return cD(u)[ry.PluralCase]}function R4(u){return u in fw||(fw[u]=De.ng&&De.ng.common&&De.ng.common.locales&&De.ng.common.locales[u]),fw[u]}var ry=function(u){return u[u.LocaleId=0]="LocaleId",u[u.DayPeriodsFormat=1]="DayPeriodsFormat",u[u.DayPeriodsStandalone=2]="DayPeriodsStandalone",u[u.DaysFormat=3]="DaysFormat",u[u.DaysStandalone=4]="DaysStandalone",u[u.MonthsFormat=5]="MonthsFormat",u[u.MonthsStandalone=6]="MonthsStandalone",u[u.Eras=7]="Eras",u[u.FirstDayOfWeek=8]="FirstDayOfWeek",u[u.WeekendRange=9]="WeekendRange",u[u.DateFormat=10]="DateFormat",u[u.TimeFormat=11]="TimeFormat",u[u.DateTimeFormat=12]="DateTimeFormat",u[u.NumberSymbols=13]="NumberSymbols",u[u.NumberFormats=14]="NumberFormats",u[u.CurrencyCode=15]="CurrencyCode",u[u.CurrencySymbol=16]="CurrencySymbol",u[u.CurrencyName=17]="CurrencyName",u[u.Currencies=18]="Currencies",u[u.Directionality=19]="Directionality",u[u.PluralCase=20]="PluralCase",u[u.ExtraData=21]="ExtraData",u}(ry||{});const uD="en-US";let gw=uD,N_=(u,p,h)=>{};function K4(u,p,h,g){const S=Yn(),A=fr(),L=hr();return KM(A,S,S[ds],L,u,p,g),K4}function KM(u,p,h,g,S,A,L){const ce=yu(g),Ye=u.firstCreatePass&&vL(u),at=p[Ws],xt=gL(p);let un=!0;if(3&g.type||L){const Bi=qn(g,p),Fr=L?L(Bi):Bi,Br=xt.length,Vi=L?Rs=>L(St(Rs[g.index])):g.index;let Ms=null;if(!L&&ce&&(Ms=function oQ(u,p,h,g){const S=u.cleanup;if(null!=S)for(let A=0;A<S.length-1;A+=2){const L=S[A];if(L===h&&S[A+1]===g){const ce=p[Ts],Ce=S[A+2];return ce.length>Ce?ce[Ce]:null}"string"==typeof L&&(A+=2)}return null}(u,p,S,g.index)),null!==Ms)(Ms.__ngLastListenerFn__||Ms).__ngNextListenerFn__=A,Ms.__ngLastListenerFn__=A,un=!1;else{A=$S(g,p,at,A),N_(Bi,S,A);const Rs=h.listen(Fr,S,A);xt.push(A,Rs),Ye&&Ye.push(S,Vi,Br,Br+1)}}else A=$S(g,p,at,A);const fn=g.outputs;let Wn;if(un&&null!==fn&&(Wn=fn[S])){const Bi=Wn.length;if(Bi)for(let Fr=0;Fr<Bi;Fr+=2){const Ya=p[Wn[Fr]][Wn[Fr+1]].subscribe(A),gd=xt.length;xt.push(A,Ya),Ye&&Ye.push(S,g.index,gd,-(gd+1))}}}function ab(u,p,h,g){const S=(0,C.Ht)(null);try{return Qt(6,p,h),!1!==h(g)}catch(A){return hE(u,A),!1}finally{Qt(7,p,h),(0,C.Ht)(S)}}function $S(u,p,h,g){return function S(A){if(A===Function)return g;oS(u.componentOffset>-1?bn(u.index,p):p,5);let ce=ab(p,h,g,A),Ce=S.__ngNextListenerFn__;for(;Ce;)ce=ab(p,h,Ce,A)&&ce,Ce=Ce.__ngNextListenerFn__;return ce}}function Q4(u=1){return function Ql(u){return(mt.lFrame.contextLView=function Ei(u,p){for(;u>0;)p=p[sc],u--;return p}(u,mt.lFrame.contextLView))[Ws]}(u)}function G_(u,p){let h=null;const g=function XI(u){const p=u.attrs;if(null!=p){const h=p.indexOf(5);if(!(1&h))return p[h+1]}return null}(u);for(let S=0;S<p.length;S++){const A=p[S];if("*"!==A){if(null===g?lL(u,A,!0):tf(g,A))return S}else h=S}return h}function Lu(u){const p=Yn()[Ua][Po];if(!p.projection){const g=p.projection=function Ps(u,p){const h=[];for(let g=0;g<u;g++)h.push(p);return h}(u?u.length:1,null),S=g.slice();let A=p.child;for(;null!==A;){if(128!==A.type){const L=u?G_(A,u):0;null!==L&&(S[L]?S[L].projectionNext=A:g[L]=A,S[L]=A)}A=A.next}}}function V9(u,p=0,h,g,S,A){const L=Yn(),ce=fr(),Ce=g?u+1:null;null!==Ce&&MS(L,ce,Ce,g,S,A,null,h);const Ye=ig(ce,Er+u,16,null,h||null);null===Ye.projection&&(Ye.projection=p),Le();const xt=!L[Tr]||kr();null===L[Ua][Po].projection[Ye.projection]&&null!==Ce?function QM(u,p,h){const g=Er+h,S=p.data[g],A=u[g],L=HC(A,S.tView.ssrId);LC(A,PC(u,S,void 0,{dehydratedView:L}),0,j1(S,L))}(L,ce,Ce):xt&&32&~Ye.flags&&function lB(u,p,h){oL(p[ds],0,p,h,D_(u,h,p),nL(h.parent||p[Po],h,p))}(ce,L,Ye)}function JM(u,p,h){return vD(u,"",p,"",h),JM}function vD(u,p,h,g,S){const A=Yn(),L=ow(A,p,h,g);return L!==Ds&&nf(fr(),hl(),A,u,L,A[ds],S,!1),vD}function ZM(u,p,h,g,S,A,L,ce,Ce){const Ye=Yn(),at=uv(Ye,p,h,g,S,A,L,ce);return at!==Ds&&nf(fr(),hl(),Ye,u,at,Ye[ds],Ce,!1),ZM}function oy(u,p,h,g){ZL(u,p,h,g)}function nR(u,p,h){JL(u,p,h)}function tN(u){const p=Yn(),h=fr(),g=Cs();pl(g+1);const S=z1(h,g);if(u.dirty&&function ui(u){return!(4&~u[xr])}(p)===!(2&~S.metadata.flags)){if(null===S.matches)u.reset([]);else{const A=t3(p,g);u.reset(A,Kh),u.notifyOnChanges()}return!0}return!1}function nN(){return BA(Yn(),Cs())}function iN(u,p,h,g,S){jA(p,ZL(u,h,g,S))}function rN(u,p,h,g){jA(u,JL(p,h,g))}function oN(u=1){pl(Cs()+u)}function sN(u){return si(function ot(){return mt.lFrame.contextLView}(),Er+u)}function gN(u,p=""){const h=Yn(),g=fr(),S=u+Er,A=g.firstCreatePass?ig(g,S,1,p,null):g.data[S],L=vN(g,h,A,p,u);h[S]=L,Qu()&&aE(g,h,L,A),ee(A,!1)}let vN=(u,p,h,g,S)=>(Gd(!0),function $I(u,p){return u.createText(p)}(p[ds],g));function ly(u){return bD("",u,""),ly}function bD(u,p,h){const g=Yn(),S=ow(g,u,p,h);return S!==Ds&&rv(g,La(),S),bD}function oR(u,p,h,g,S){const A=Yn(),L=function lf(u,p,h,g,S,A){const ce=X1(u,Qo(),h,S);return ia(2),ce?p+qr(h)+g+qr(S)+A:Ds}(A,u,p,h,g,S);return L!==Ds&&rv(A,La(),L),oR}function cb(u,p,h,g,S,A,L){const ce=Yn(),Ce=uv(ce,u,p,h,g,S,A,L);return Ce!==Ds&&rv(ce,La(),Ce),cb}function CD(u,p,h,g,S,A,L,ce,Ce){const Ye=Yn(),at=function sw(u,p,h,g,S,A,L,ce,Ce,Ye){const xt=Sm(u,Qo(),h,S,L,Ce);return ia(4),xt?p+qr(h)+g+qr(S)+A+qr(L)+ce+qr(Ce)+Ye:Ds}(Ye,u,p,h,g,S,A,L,ce,Ce);return at!==Ds&&rv(Ye,La(),at),CD}function Cw(u,p,h,g,S,A,L,ce,Ce,Ye,at){const xt=Yn(),un=function dv(u,p,h,g,S,A,L,ce,Ce,Ye,at,xt){const un=Qo();let fn=Sm(u,un,h,S,L,Ce);return fn=td(u,un+4,at)||fn,ia(5),fn?p+qr(h)+g+qr(S)+A+qr(L)+ce+qr(Ce)+Ye+qr(at)+xt:Ds}(xt,u,p,h,g,S,A,L,ce,Ce,Ye,at);return un!==Ds&&rv(xt,La(),un),Cw}function cy(u,p,h){WC(p)&&(p=p());const g=Yn();return td(g,Oo(),p)&&nf(fr(),hl(),g,u,p,g[ds],h,!1),cy}function uy(u,p){const h=WC(u);return h&&u.set(p),h}function ub(u,p){const h=Yn(),g=fr(),S=hr();return KM(g,h,h[ds],S,u,p),ub}function lR(u,p,h,g,S){if(u=xe(u),Array.isArray(u))for(let A=0;A<u.length;A++)lR(u[A],p,h,g,S);else{const A=fr(),L=Yn(),ce=hr();let Ce=Zn(u)?u:xe(u.provide);const Ye=oc(u),at=1048575&ce.providerIndexes,xt=ce.directiveStart,un=ce.providerIndexes>>20;if(Zn(u)||!u.multi){const fn=new $o(Ye,S,N1),Wn=TD(Ce,p,S?at:at+un,xt);-1===Wn?(Um(Hm(ce,L),A,Ce),cR(A,u,p.length),p.push(Ce),ce.directiveStart++,ce.directiveEnd++,S&&(ce.providerIndexes+=1048576),h.push(fn),L.push(fn)):(h[Wn]=fn,L[Wn]=fn)}else{const fn=TD(Ce,p,at+un,xt),Wn=TD(Ce,p,at,at+un),Fr=Wn>=0&&h[Wn];if(S&&!Fr||!S&&!(fn>=0&&h[fn])){Um(Hm(ce,L),A,Ce);const Br=function hR(u,p,h,g,S){const A=new $o(u,h,N1);return A.multi=[],A.index=p,A.componentProviders=0,uR(A,S,g&&!h),A}(S?pR:dR,h.length,S,g,Ye);!S&&Fr&&(h[Wn].providerFactory=Br),cR(A,u,p.length,0),p.push(Ce),ce.directiveStart++,ce.directiveEnd++,S&&(ce.providerIndexes+=1048576),h.push(Br),L.push(Br)}else cR(A,u,fn>-1?fn:Wn,uR(h[S?Wn:fn],Ye,!S&&g));!S&&g&&Fr&&h[Wn].componentProviders++}}}function cR(u,p,h,g){const S=Zn(p),A=function vr(u){return!!u.useClass}(p);if(S||A){const Ce=(A?xe(p.useClass):p).prototype.ngOnDestroy;if(Ce){const Ye=u.destroyHooks||(u.destroyHooks=[]);if(!S&&p.multi){const at=Ye.indexOf(h);-1===at?Ye.push(h,[g,Ce]):Ye[at+1].push(g,Ce)}else Ye.push(h,Ce)}}}function uR(u,p,h){return h&&u.componentProviders++,u.multi.push(p)-1}function TD(u,p,h,g){for(let S=h;S<g;S++)if(p[S]===u)return S;return-1}function dR(u,p,h,g){return zS(this.multi,[])}function pR(u,p,h,g){const S=this.multi;let A;if(this.providerFactory){const L=this.providerFactory.componentProviders,ce=hd(h,h[Kn],this.providerFactory.index,g);A=ce.slice(0,L),zS(S,A);for(let Ce=L;Ce<ce.length;Ce++)A.push(ce[Ce])}else A=[],zS(S,A);return A}function zS(u,p){for(let h=0;h<u.length;h++)p.push((0,u[h])());return p}function bN(u,p=[]){return h=>{h.providersResolver=(g,S)=>function aR(u,p,h){const g=fr();if(g.firstCreatePass){const S=Au(u);lR(h,g.data,g.blueprint,S,!0),lR(p,g.data,g.blueprint,S,!1)}}(g,S?S(u):u,p)}}function mR(u,p,h){const g=u.\u0275cmp;g.directiveDefs=GE(p,!1),g.pipeDefs=GE(h,!0)}function qS(u,p){return ne(()=>{const h=na(u,!0);h.declarations=dy(p.declarations||Is),h.imports=dy(p.imports||Is),h.exports=dy(p.exports||Is),p.bootstrap&&(h.bootstrap=dy(p.bootstrap)),CS.registerNgModule(u,p)})}function dy(u){if("function"==typeof u)return u;const p=Wr(u);return p.some(We)?()=>p.map(xe).map(CN):p.map(CN)}function CN(u){return bS(u)?u.ngModule:u}function pb(u,p,h){const g=Sr()+u,S=Yn();return S[g]===Ds?av(S,g,h?p.call(h):p()):q1(S,g)}function XS(u,p,h,g){return _R(Yn(),Sr(),u,p,h,g)}function gR(u,p,h,g,S){return QS(Yn(),Sr(),u,p,h,g,S)}function SD(u,p,h,g,S,A){return xN(Yn(),Sr(),u,p,h,g,S,A)}function wN(u,p,h,g,S,A,L){return function V_(u,p,h,g,S,A,L,ce,Ce){const Ye=p+h;return Sm(u,Ye,S,A,L,ce)?av(u,Ye+4,Ce?g.call(Ce,S,A,L,ce):g(S,A,L,ce)):KS(u,Ye+4)}(Yn(),Sr(),u,p,h,g,S,A,L)}function vR(u,p,h,g,S,A,L,ce){const Ce=Sr()+u,Ye=Yn(),at=Sm(Ye,Ce,h,g,S,A);return td(Ye,Ce+4,L)||at?av(Ye,Ce+5,ce?p.call(ce,h,g,S,A,L):p(h,g,S,A,L)):q1(Ye,Ce+5)}function xD(u,p,h,g,S,A,L,ce,Ce){const Ye=Sr()+u,at=Yn(),xt=Sm(at,Ye,h,g,S,A);return X1(at,Ye+4,L,ce)||xt?av(at,Ye+6,Ce?p.call(Ce,h,g,S,A,L,ce):p(h,g,S,A,L,ce)):q1(at,Ye+6)}function TN(u,p,h,g,S,A,L,ce,Ce,Ye){const at=Sr()+u,xt=Yn();let un=Sm(xt,at,h,g,S,A);return ew(xt,at+4,L,ce,Ce)||un?av(xt,at+7,Ye?p.call(Ye,h,g,S,A,L,ce,Ce):p(h,g,S,A,L,ce,Ce)):q1(xt,at+7)}function SN(u,p,h,g,S,A,L,ce,Ce,Ye,at){const xt=Sr()+u,un=Yn(),fn=Sm(un,xt,h,g,S,A);return Sm(un,xt+4,L,ce,Ce,Ye)||fn?av(un,xt+8,at?p.call(at,h,g,S,A,L,ce,Ce,Ye):p(h,g,S,A,L,ce,Ce,Ye)):q1(un,xt+8)}function uc(u,p,h,g){return function ww(u,p,h,g,S,A){let L=p+h,ce=!1;for(let Ce=0;Ce<S.length;Ce++)td(u,L++,S[Ce])&&(ce=!0);return ce?av(u,L,g.apply(A,S)):KS(u,L)}(Yn(),Sr(),u,p,h,g)}function KS(u,p){const h=u[p];return h===Ds?void 0:h}function _R(u,p,h,g,S,A){const L=p+h;return td(u,L,S)?av(u,L+1,A?g.call(A,S):g(S)):KS(u,L+1)}function QS(u,p,h,g,S,A,L){const ce=p+h;return X1(u,ce,S,A)?av(u,ce+2,L?g.call(L,S,A):g(S,A)):KS(u,ce+2)}function xN(u,p,h,g,S,A,L,ce){const Ce=p+h;return ew(u,Ce,S,A,L)?av(u,Ce+3,ce?g.call(ce,S,A,L):g(S,A,L)):KS(u,Ce+3)}function Y9(u,p){const h=fr();let g;const S=u+Er;h.firstCreatePass?(g=function aQ(u,p){if(p)for(let h=p.length-1;h>=0;h--){const g=p[h];if(u===g.name)return g}}(p,h.pipeRegistry),h.data[S]=g,g.onDestroy&&(h.destroyHooks??=[]).push(S,g.onDestroy)):g=h.data[S];const A=g.factory||(g.factory=Ui(g.type)),ce=Ml(N1);try{const Ce=wu(!1),Ye=A();return wu(Ce),function yD(u,p,h,g){h>=u.data.length&&(u.data[h]=null,u.blueprint[h]=null),p[h]=g}(h,Yn(),S,Ye),Ye}finally{Ml(ce)}}function EN(u,p,h){const g=u+Er,S=Yn(),A=si(S,g);return py(S,g)?_R(S,Sr(),p,A.transform,h,A):A.transform(h)}function DN(u,p,h,g){const S=u+Er,A=Yn(),L=si(A,S);return py(A,S)?QS(A,Sr(),p,L.transform,h,g,L):L.transform(h,g)}function kN(u,p,h,g,S){const A=u+Er,L=Yn(),ce=si(L,A);return py(L,A)?xN(L,Sr(),p,ce.transform,h,g,S,ce):ce.transform(h,g,S)}function py(u,p){return u[Kn].data[p].pure}function yR(u,p){return vE(u,p)}class ix{full;major;minor;patch;constructor(p){this.full=p;const h=p.split(".");this.major=h[0],this.minor=h[1],this.patch=h.slice(2).join(".")}}class rx{ngModuleFactory;componentFactories;constructor(p,h){this.ngModuleFactory=p,this.componentFactories=h}}let gb=(()=>{class u{compileModuleSync(h){return new WA(h)}compileModuleAsync(h){return Promise.resolve(this.compileModuleSync(h))}compileModuleAndAllComponentsSync(h){const g=this.compileModuleSync(h),A=Vf(na(h).declarations).reduce((L,ce)=>{const Ce=Eo(ce);return Ce&&L.push(new wS(Ce)),L},[]);return new rx(g,A)}compileModuleAndAllComponentsAsync(h){return Promise.resolve(this.compileModuleAndAllComponentsSync(h))}clearCache(){}clearCacheFor(h){}getModuleId(h){}static \u0275fac=function(g){return new(g||u)};static \u0275prov=Vt({token:u,factory:u.\u0275fac,providedIn:"root"})}return u})(),WN=(()=>{class u{zone=Mr(Ca);changeDetectionScheduler=Mr(Wp);applicationRef=Mr(Yf);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(g){return new(g||u)};static \u0275prov=Vt({token:u,factory:u.\u0275fac,providedIn:"root"})}return u})();function AD({ngZoneFactory:u,ignoreChangesOutsideZone:p,scheduleInRootZone:h}){return u??=()=>new Ca({...MD(),scheduleInRootZone:h}),[{provide:Ca,useFactory:u},{provide:ll,multi:!0,useFactory:()=>{const g=Mr(WN,{optional:!0});return()=>g.initialize()}},{provide:ll,multi:!0,useFactory:()=>{const g=Mr(hy);return()=>{g.initialize()}}},!0===p?{provide:sn,useValue:!0}:[],{provide:Pn,useValue:h??i_}]}function MD(u){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:u?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:u?.runCoalescing??!1}}let hy=(()=>{class u{subscription=new k.yU;initialized=!1;zone=Mr(Ca);pendingTasks=Mr(Jn);initialize(){if(this.initialized)return;this.initialized=!0;let h=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(h=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Ca.assertNotInAngularZone(),queueMicrotask(()=>{null!==h&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(h),h=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Ca.assertInAngularZone(),h??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(g){return new(g||u)};static \u0275prov=Vt({token:u,factory:u.\u0275fac,providedIn:"root"})}return u})(),my=(()=>{class u{appRef=Mr(Yf);taskService=Mr(Jn);ngZone=Mr(Ca);zonelessEnabled=Mr(Ee);tracing=Mr(ae,{optional:!0});disableScheduling=Mr(sn,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new k.yU;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Wl):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(Mr(Pn,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Xh||!this.zoneIsDefined)}notify(h){if(!this.zonelessEnabled&&5===h)return;let g=!1;switch(h){case 0:this.appRef.dirtyFlags|=2;break;case 3:case 2:case 4:case 5:case 1:this.appRef.dirtyFlags|=4;break;case 8:this.appRef.deferredDirtyFlags|=8;break;case 6:case 14:this.appRef.dirtyFlags|=2,g=!0;break;case 13:this.appRef.dirtyFlags|=16,g=!0;break;case 12:g=!0;break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(g))return;const S=this.useMicrotaskScheduler?ra:aa;this.pendingRenderTaskId=this.taskService.add(),this.cancelScheduledCallback=this.scheduleInRootZone?Zone.root.run(()=>S(()=>this.tick())):this.ngZone.runOutsideAngular(()=>S(()=>this.tick()))}shouldScheduleTick(h){return!(this.disableScheduling&&!h||this.appRef.destroyed||null!==this.pendingRenderTaskId||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Wl+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(0===this.appRef.dirtyFlags)return void this.cleanup();!this.zonelessEnabled&&7&this.appRef.dirtyFlags&&(this.appRef.dirtyFlags|=1);const h=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(g){throw this.taskService.remove(h),g}finally{this.cleanup()}this.useMicrotaskScheduler=!0,ra(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(h)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,null!==this.pendingRenderTaskId){const h=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(h)}}static \u0275fac=function(g){return new(g||u)};static \u0275prov=Vt({token:u,factory:u.\u0275fac,providedIn:"root"})}return u})();const vb=new ur("",{providedIn:"root",factory:()=>Mr(vb,es.Optional|es.SkipSelf)||function XN(){return typeof $localize<"u"&&$localize.locale||uD}()}),KN=new ur("",{providedIn:"root",factory:()=>"USD"}),sx=new ur(""),mH=new ur("");function ax(u){return!u.moduleRef}let FD=(()=>{class u{_injector;_modules=[];_destroyListeners=[];_destroyed=!1;constructor(h){this._injector=h}bootstrapModuleFactory(h,g){const S=g?.scheduleInRootZone,L=g?.ignoreChangesOutsideZone,ce=[AD({ngZoneFactory:()=>function Bd(u="zone.js",p){return"noop"===u?new Xh:"zone.js"===u?new Ca(p):u}(g?.ngZone,{...MD({eventCoalescing:g?.ngZoneEventCoalescing,runCoalescing:g?.ngZoneRunCoalescing}),scheduleInRootZone:S}),ignoreChangesOutsideZone:L}),{provide:Wp,useExisting:my}],Ce=function WV(u,p,h){return new YA(u,p,h,!1)}(h.moduleType,this.injector,ce);return function e5(u){const p=ax(u)?u.r3Injector:u.moduleRef.injector,h=p.get(Ca);return h.run(()=>{ax(u)?u.r3Injector.resolveInjectorInitializers():u.moduleRef.resolveInjectorInitializers();const g=p.get(zp,null);let S;if(h.runOutsideAngular(()=>{S=h.onError.subscribe({next:A=>{g.handleError(A)}})}),ax(u)){const A=()=>p.destroy(),L=u.platformInjector.get(sx);L.add(A),p.onDestroy(()=>{S.unsubscribe(),L.delete(A)})}else{const A=()=>u.moduleRef.destroy(),L=u.platformInjector.get(sx);L.add(A),u.moduleRef.onDestroy(()=>{rg(u.allPlatformModules,u.moduleRef),S.unsubscribe(),L.delete(A)})}return function Fj(u,p,h){try{const g=h();return QE(g)?g.catch(S=>{throw p.runOutsideAngular(()=>u.handleError(S)),S}):g}catch(g){throw p.runOutsideAngular(()=>u.handleError(g)),g}}(g,h,()=>{const A=p.get($3);return A.runInitializers(),A.donePromise.then(()=>{if(function BM(u){"string"==typeof u&&(gw=u.toLowerCase().replace(/_/g,"-"))}(p.get(vb,uD)||uD),!p.get(mH,!0))return ax(u)?p.get(Yf):(u.allPlatformModules.push(u.moduleRef),u.moduleRef);if(ax(u)){const Ce=p.get(Yf);return void 0!==u.rootComponent&&Ce.bootstrap(u.rootComponent),Ce}return function gH(u,p){const h=u.injector.get(Yf);if(u._bootstrapComponents.length>0)u._bootstrapComponents.forEach(g=>h.bootstrap(g));else{if(!u.instance.ngDoBootstrap)throw new Q(-403,!1);u.instance.ngDoBootstrap(h)}p.push(u)}(u.moduleRef,u.allPlatformModules),u.moduleRef})})})}({moduleRef:Ce,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(h,g=[]){const S=JE({},g);return function ox(u,p,h){const g=new WA(h);return Promise.resolve(g)}(0,0,h).then(A=>this.bootstrapModuleFactory(A,S))}onDestroy(h){this._destroyListeners.push(h)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Q(404,!1);this._modules.slice().forEach(g=>g.destroy()),this._destroyListeners.forEach(g=>g());const h=this._injector.get(sx,null);h&&(h.forEach(g=>g()),h.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static \u0275fac=function(g){return new(g||u)(Ia($l))};static \u0275prov=Vt({token:u,factory:u.\u0275fac,providedIn:"platform"})}return u})(),_v=null;const PD=new ur("");function Ew(u,p,h=[]){const g=`Platform: ${p}`,S=new ur(g);return(A=[])=>{let L=ER();if(!L||L.injector.get(PD,!1)){const ce=[...h,...A,{provide:S,useValue:!0}];u?u(ce):function t5(u){if(_v&&!_v.get(PD,!1))throw new Q(400,!1);(function pM(){(0,C.KO)(()=>{throw new Q(600,!1)})})(),_v=u;const p=u.get(FD);(function DR(u){const p=u.get($g,null);Ys(u,()=>{p?.forEach(h=>h())})})(u)}(function xR(u=[],p){return $l.create({name:p,providers:[{provide:ti,useValue:"platform"},{provide:sx,useValue:new Set([()=>_v=null])},...u]})}(ce,g))}return function vH(){const p=ER();if(!p)throw new Q(401,!1);return p}()}}function ER(){return _v?.get(FD)??null}function Dw(){}let kR=(()=>class u{static __NG_ELEMENT_ID__=a5})();function a5(u){return function l5(u,p,h){if(Ld(u)&&!h){const g=bn(u.index,p);return new NC(g,g)}return 175&u.type?new NC(p[Ua],p):null}(hr(),Yn(),!(16&~u))}class h5{constructor(){}supports(p){return ZC(p)}create(p){return new BD(p)}}const OR=(u,p)=>p;class BD{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(p){this._trackByFn=p||OR}forEachItem(p){let h;for(h=this._itHead;null!==h;h=h._next)p(h)}forEachOperation(p){let h=this._itHead,g=this._removalsHead,S=0,A=null;for(;h||g;){const L=!g||h&&h.currentIndex<id(g,S,A)?h:g,ce=id(L,S,A),Ce=L.currentIndex;if(L===g)S--,g=g._nextRemoved;else if(h=h._next,null==L.previousIndex)S++;else{A||(A=[]);const Ye=ce-S,at=Ce-S;if(Ye!=at){for(let un=0;un<Ye;un++){const fn=un<A.length?A[un]:A[un]=0,Wn=fn+un;at<=Wn&&Wn<Ye&&(A[un]=fn+1)}A[L.previousIndex]=at-Ye}}ce!==Ce&&p(L,ce,Ce)}}forEachPreviousItem(p){let h;for(h=this._previousItHead;null!==h;h=h._nextPrevious)p(h)}forEachAddedItem(p){let h;for(h=this._additionsHead;null!==h;h=h._nextAdded)p(h)}forEachMovedItem(p){let h;for(h=this._movesHead;null!==h;h=h._nextMoved)p(h)}forEachRemovedItem(p){let h;for(h=this._removalsHead;null!==h;h=h._nextRemoved)p(h)}forEachIdentityChange(p){let h;for(h=this._identityChangesHead;null!==h;h=h._nextIdentityChange)p(h)}diff(p){if(null==p&&(p=[]),!ZC(p))throw new Q(900,!1);return this.check(p)?this:null}onDestroy(){}check(p){this._reset();let S,A,L,h=this._itHead,g=!1;if(Array.isArray(p)){this.length=p.length;for(let ce=0;ce<this.length;ce++)A=p[ce],L=this._trackByFn(ce,A),null!==h&&Object.is(h.trackById,L)?(g&&(h=this._verifyReinsertion(h,A,L,ce)),Object.is(h.item,A)||this._addIdentityChange(h,A)):(h=this._mismatch(h,A,L,ce),g=!0),h=h._next}else S=0,function nj(u,p){if(Array.isArray(u))for(let h=0;h<u.length;h++)p(u[h]);else{const h=u[Symbol.iterator]();let g;for(;!(g=h.next()).done;)p(g.value)}}(p,ce=>{L=this._trackByFn(S,ce),null!==h&&Object.is(h.trackById,L)?(g&&(h=this._verifyReinsertion(h,ce,L,S)),Object.is(h.item,ce)||this._addIdentityChange(h,ce)):(h=this._mismatch(h,ce,L,S),g=!0),h=h._next,S++}),this.length=S;return this._truncate(h),this.collection=p,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let p;for(p=this._previousItHead=this._itHead;null!==p;p=p._next)p._nextPrevious=p._next;for(p=this._additionsHead;null!==p;p=p._nextAdded)p.previousIndex=p.currentIndex;for(this._additionsHead=this._additionsTail=null,p=this._movesHead;null!==p;p=p._nextMoved)p.previousIndex=p.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(p,h,g,S){let A;return null===p?A=this._itTail:(A=p._prev,this._remove(p)),null!==(p=null===this._unlinkedRecords?null:this._unlinkedRecords.get(g,null))?(Object.is(p.item,h)||this._addIdentityChange(p,h),this._reinsertAfter(p,A,S)):null!==(p=null===this._linkedRecords?null:this._linkedRecords.get(g,S))?(Object.is(p.item,h)||this._addIdentityChange(p,h),this._moveAfter(p,A,S)):p=this._addAfter(new FR(h,g),A,S),p}_verifyReinsertion(p,h,g,S){let A=null===this._unlinkedRecords?null:this._unlinkedRecords.get(g,null);return null!==A?p=this._reinsertAfter(A,p._prev,S):p.currentIndex!=S&&(p.currentIndex=S,this._addToMoves(p,S)),p}_truncate(p){for(;null!==p;){const h=p._next;this._addToRemovals(this._unlink(p)),p=h}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(p,h,g){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(p);const S=p._prevRemoved,A=p._nextRemoved;return null===S?this._removalsHead=A:S._nextRemoved=A,null===A?this._removalsTail=S:A._prevRemoved=S,this._insertAfter(p,h,g),this._addToMoves(p,g),p}_moveAfter(p,h,g){return this._unlink(p),this._insertAfter(p,h,g),this._addToMoves(p,g),p}_addAfter(p,h,g){return this._insertAfter(p,h,g),this._additionsTail=null===this._additionsTail?this._additionsHead=p:this._additionsTail._nextAdded=p,p}_insertAfter(p,h,g){const S=null===h?this._itHead:h._next;return p._next=S,p._prev=h,null===S?this._itTail=p:S._prev=p,null===h?this._itHead=p:h._next=p,null===this._linkedRecords&&(this._linkedRecords=new ml),this._linkedRecords.put(p),p.currentIndex=g,p}_remove(p){return this._addToRemovals(this._unlink(p))}_unlink(p){null!==this._linkedRecords&&this._linkedRecords.remove(p);const h=p._prev,g=p._next;return null===h?this._itHead=g:h._next=g,null===g?this._itTail=h:g._prev=h,p}_addToMoves(p,h){return p.previousIndex===h||(this._movesTail=null===this._movesTail?this._movesHead=p:this._movesTail._nextMoved=p),p}_addToRemovals(p){return null===this._unlinkedRecords&&(this._unlinkedRecords=new ml),this._unlinkedRecords.put(p),p.currentIndex=null,p._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=p,p._prevRemoved=null):(p._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=p),p}_addIdentityChange(p,h){return p.item=h,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=p:this._identityChangesTail._nextIdentityChange=p,p}}class FR{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(p,h){this.item=p,this.trackById=h}}class qs{_head=null;_tail=null;add(p){null===this._head?(this._head=this._tail=p,p._nextDup=null,p._prevDup=null):(this._tail._nextDup=p,p._prevDup=this._tail,p._nextDup=null,this._tail=p)}get(p,h){let g;for(g=this._head;null!==g;g=g._nextDup)if((null===h||h<=g.currentIndex)&&Object.is(g.trackById,p))return g;return null}remove(p){const h=p._prevDup,g=p._nextDup;return null===h?this._head=g:h._nextDup=g,null===g?this._tail=h:g._prevDup=h,null===this._head}}class ml{map=new Map;put(p){const h=p.trackById;let g=this.map.get(h);g||(g=new qs,this.map.set(h,g)),g.add(p)}get(p,h){const S=this.map.get(p);return S?S.get(p,h):null}remove(p){const h=p.trackById;return this.map.get(h).remove(p)&&this.map.delete(h),p}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function id(u,p,h){const g=u.previousIndex;if(null===g)return g;let S=0;return h&&g<h.length&&(S=h[g]),g+p+S}class f5{constructor(){}supports(p){return p instanceof Map||AS(p)}create(){return new bQ}}class bQ{_records=new Map;_mapHead=null;_appendAfter=null;_previousMapHead=null;_changesHead=null;_changesTail=null;_additionsHead=null;_additionsTail=null;_removalsHead=null;_removalsTail=null;get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(p){let h;for(h=this._mapHead;null!==h;h=h._next)p(h)}forEachPreviousItem(p){let h;for(h=this._previousMapHead;null!==h;h=h._nextPrevious)p(h)}forEachChangedItem(p){let h;for(h=this._changesHead;null!==h;h=h._nextChanged)p(h)}forEachAddedItem(p){let h;for(h=this._additionsHead;null!==h;h=h._nextAdded)p(h)}forEachRemovedItem(p){let h;for(h=this._removalsHead;null!==h;h=h._nextRemoved)p(h)}diff(p){if(p){if(!(p instanceof Map||AS(p)))throw new Q(900,!1)}else p=new Map;return this.check(p)?this:null}onDestroy(){}check(p){this._reset();let h=this._mapHead;if(this._appendAfter=null,this._forEach(p,(g,S)=>{if(h&&h.key===S)this._maybeAddToChanges(h,g),this._appendAfter=h,h=h._next;else{const A=this._getOrCreateRecordForKey(S,g);h=this._insertBeforeOrAppend(h,A)}}),h){h._prev&&(h._prev._next=null),this._removalsHead=h;for(let g=h;null!==g;g=g._nextRemoved)g===this._mapHead&&(this._mapHead=null),this._records.delete(g.key),g._nextRemoved=g._next,g.previousValue=g.currentValue,g.currentValue=null,g._prev=null,g._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(p,h){if(p){const g=p._prev;return h._next=p,h._prev=g,p._prev=h,g&&(g._next=h),p===this._mapHead&&(this._mapHead=h),this._appendAfter=p,p}return this._appendAfter?(this._appendAfter._next=h,h._prev=this._appendAfter):this._mapHead=h,this._appendAfter=h,null}_getOrCreateRecordForKey(p,h){if(this._records.has(p)){const S=this._records.get(p);this._maybeAddToChanges(S,h);const A=S._prev,L=S._next;return A&&(A._next=L),L&&(L._prev=A),S._next=null,S._prev=null,S}const g=new DH(p);return this._records.set(p,g),g.currentValue=h,this._addToAdditions(g),g}_reset(){if(this.isDirty){let p;for(this._previousMapHead=this._mapHead,p=this._previousMapHead;null!==p;p=p._next)p._nextPrevious=p._next;for(p=this._changesHead;null!==p;p=p._nextChanged)p.previousValue=p.currentValue;for(p=this._additionsHead;null!=p;p=p._nextAdded)p.previousValue=p.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(p,h){Object.is(h,p.currentValue)||(p.previousValue=p.currentValue,p.currentValue=h,this._addToChanges(p))}_addToAdditions(p){null===this._additionsHead?this._additionsHead=this._additionsTail=p:(this._additionsTail._nextAdded=p,this._additionsTail=p)}_addToChanges(p){null===this._changesHead?this._changesHead=this._changesTail=p:(this._changesTail._nextChanged=p,this._changesTail=p)}_forEach(p,h){p instanceof Map?p.forEach(h):Object.keys(p).forEach(g=>h(p[g],g))}}class DH{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(p){this.key=p}}function kH(){return new Jp([new h5])}let Jp=(()=>{class u{factories;static \u0275prov=Vt({token:u,providedIn:"root",factory:kH});constructor(h){this.factories=h}static create(h,g){if(null!=g){const S=g.factories.slice();h=h.concat(S)}return new u(h)}static extend(h){return{provide:u,useFactory:g=>u.create(h,g||kH()),deps:[[u,new ir,new En]]}}find(h){const g=this.factories.find(S=>S.supports(h));if(null!=g)return g;throw new Q(901,!1)}}return u})();function pg(){return new yv([new f5])}let yv=(()=>{class u{static \u0275prov=Vt({token:u,providedIn:"root",factory:pg});factories;constructor(h){this.factories=h}static create(h,g){if(g){const S=g.factories.slice();h=h.concat(S)}return new u(h)}static extend(h){return{provide:u,useFactory:g=>u.create(h,g||pg()),deps:[[u,new ir,new En]]}}find(h){const g=this.factories.find(S=>S.supports(h));if(g)return g;throw new Q(901,!1)}}return u})();const H_=Ew(null,"core",[]);let CQ=(()=>{class u{constructor(h){}static \u0275fac=function(g){return new(g||u)(Ia(Yf))};static \u0275mod=qA({type:u});static \u0275inj=kn({})}return u})();function oU(u){return"boolean"==typeof u?u:null!=u&&"false"!==u}function sU(u,p=NaN){return isNaN(parseFloat(u))||isNaN(Number(u))?p:Number(u)}function UR(u,p){Ke("NgSignals");const h=(0,C.KZ)(u);return p?.equal&&(h[C.bh].equal=p.equal),h}function Mw(u){const p=(0,C.Ht)(null);try{return u()}finally{(0,C.Ht)(p)}}let F5=(()=>class u{view;node;constructor(h,g){this.view=h,this.node=g}static __NG_ELEMENT_ID__=pU})();function pU(){return new F5(Yn(),hr())}let fU=(()=>{class u extends Y3{pendingTasks=Mr(Jn);taskId=null;schedule(h){super.schedule(h),null===this.taskId&&(this.taskId=this.pendingTasks.add(),queueMicrotask(()=>this.flush()))}flush(){try{super.flush()}finally{null!==this.taskId&&(this.pendingTasks.remove(this.taskId),this.taskId=null)}}static \u0275prov=Vt({token:u,providedIn:"root",factory:()=>new u})}return u})();class mU{scheduler;effectFn;zone;injector;unregisterOnDestroy;watcher;constructor(p,h,g,S,A,L){this.scheduler=p,this.effectFn=h,this.zone=g,this.injector=A,this.watcher=(0,C.AX)(ce=>this.runEffect(ce),()=>this.schedule(),L),this.unregisterOnDestroy=S?.onDestroy(()=>this.destroy())}runEffect(p){try{this.effectFn(p)}catch(h){this.injector.get(zp,null,{optional:!0})?.handleError(h)}}run(){this.watcher.run()}schedule(){this.scheduler.schedule(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}}let $R=!1;class _U{[C.bh];constructor(p){this[C.bh]=p}destroy(){this[C.bh].destroy()}}function YR(u,p){if($R)return function vU(u,p){Ke("NgSignals"),!p?.injector&&ts();const h=p?.injector??Mr($l),g=!0!==p?.manualCleanup?h.get(Yl):null,S=new mU(h.get(fU),u,typeof Zone>"u"?null:Zone.current,g,h,p?.allowSignalWrites??!1),A=h.get(kR,null,{optional:!0});return A&&8&A._lView[xr]?(A._lView[Lo]??=[]).push(S.watcher.notify):S.watcher.notify(),S}(u,p);Ke("NgSignals"),!p?.injector&&ts();const h=p?.injector??Mr($l);let S,g=!0!==p?.manualCleanup?h.get(Yl):null;const A=h.get(F5,null,{optional:!0}),L=h.get(Wp);return null===A||p?.forceRoot?S=function wU(u,p,h){const g=Object.create(yU);return g.fn=u,g.scheduler=p,g.notifier=h,g.zone=typeof Zone<"u"?Zone.current:null,g.scheduler.schedule(g),g.notifier.notify(13),g}(u,h.get(ny),L):(S=function CU(u,p,h){const g=Object.create(bU);return g.view=u,g.zone=typeof Zone<"u"?Zone.current:null,g.notifier=p,g.fn=h,u[Uo]??=new Set,u[Uo].add(g),g.consumerMarkedDirty(g),g}(A.view,L,u),g instanceof Rg&&g._lView===A.view&&(g=null)),S.injector=h,null!==g&&(S.onDestroyFn=g.onDestroy(()=>S.destroy())),new _U(S)}const P5={...C.pL,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,cleanupFns:void 0,zone:null,onDestroyFn:Zr,run(){if(this.dirty=!1,this.hasRun&&!(0,C.si)(this))return;this.hasRun=!0;const u=g=>(this.cleanupFns??=[]).push(g),p=(0,C.Bg)(this),h=mr(!1);try{this.maybeCleanup(),this.fn(u)}finally{mr(h),(0,C.Wu)(this,p)}},maybeCleanup(){if(this.cleanupFns?.length)try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[]}}},yU={...P5,consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(13)},destroy(){(0,C.XR)(this),this.onDestroyFn(),this.maybeCleanup()}},bU={...P5,consumerMarkedDirty(){this.view[xr]|=8192,li(this.view),this.notifier.notify(14)},destroy(){(0,C.XR)(this),this.onDestroyFn(),this.maybeCleanup(),this.view[Uo]?.delete(this)}};function mx(u){const p=Eo(u);if(!p)return null;const h=new wS(p);return{get selector(){return h.selector},get type(){return h.componentType},get inputs(){return h.inputs},get outputs(){return h.outputs},get ngContentSelectors(){return h.ngContentSelectors},get isStandalone(){return p.standalone},get isSignal(){return p.signals}}}},3488:(m,y,b)=>{"use strict";function T(wt,Hn){return Object.is(wt,Hn)}b.d(y,{AX:()=>ze,Bg:()=>Y,Ht:()=>R,KE:()=>G,KO:()=>st,KZ:()=>be,Wu:()=>W,XR:()=>n,bh:()=>k,j2:()=>Qe,mC:()=>vt,mK:()=>Z,n5:()=>Ae,nR:()=>P,pL:()=>H,s0:()=>Dt,si:()=>J});let C=null,E=!1,D=1;const k=Symbol("SIGNAL");function R(wt){const Hn=C;return C=wt,Hn}function P(){return C}function G(){return E}const H={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Z(wt){if(E)throw new Error("");if(null===C)return;C.consumerOnSignalRead(wt);const Hn=C.nextProducerIndex++;Fe(C),Hn<C.producerNode.length&&C.producerNode[Hn]!==wt&&De(C)&&se(C.producerNode[Hn],C.producerIndexOfThis[Hn]),C.producerNode[Hn]!==wt&&(C.producerNode[Hn]=wt,C.producerIndexOfThis[Hn]=De(C)?K(wt,C,Hn):0),C.producerLastReadVersion[Hn]=wt.version}function z(wt){if((!De(wt)||wt.dirty)&&(wt.dirty||wt.lastCleanEpoch!==D)){if(!wt.producerMustRecompute(wt)&&!J(wt))return void N(wt);wt.producerRecomputeValue(wt),N(wt)}}function fe(wt){if(void 0===wt.liveConsumerNode)return;const Hn=E;E=!0;try{for(const Gt of wt.liveConsumerNode)Gt.dirty||ne(Gt)}finally{E=Hn}}function q(){return!1!==C?.consumerAllowSignalWrites}function ne(wt){wt.dirty=!0,fe(wt),wt.consumerMarkedDirty?.(wt)}function N(wt){wt.dirty=!1,wt.lastCleanEpoch=D}function Y(wt){return wt&&(wt.nextProducerIndex=0),R(wt)}function W(wt,Hn){if(R(Hn),wt&&void 0!==wt.producerNode&&void 0!==wt.producerIndexOfThis&&void 0!==wt.producerLastReadVersion){if(De(wt))for(let Gt=wt.nextProducerIndex;Gt<wt.producerNode.length;Gt++)se(wt.producerNode[Gt],wt.producerIndexOfThis[Gt]);for(;wt.producerNode.length>wt.nextProducerIndex;)wt.producerNode.pop(),wt.producerLastReadVersion.pop(),wt.producerIndexOfThis.pop()}}function J(wt){Fe(wt);for(let Hn=0;Hn<wt.producerNode.length;Hn++){const Gt=wt.producerNode[Hn],An=wt.producerLastReadVersion[Hn];if(An!==Gt.version||(z(Gt),An!==Gt.version))return!0}return!1}function n(wt){if(Fe(wt),De(wt))for(let Hn=0;Hn<wt.producerNode.length;Hn++)se(wt.producerNode[Hn],wt.producerIndexOfThis[Hn]);wt.producerNode.length=wt.producerLastReadVersion.length=wt.producerIndexOfThis.length=0,wt.liveConsumerNode&&(wt.liveConsumerNode.length=wt.liveConsumerIndexOfThis.length=0)}function K(wt,Hn,Gt){if(_e(wt),0===wt.liveConsumerNode.length&&ke(wt))for(let An=0;An<wt.producerNode.length;An++)wt.producerIndexOfThis[An]=K(wt.producerNode[An],wt,An);return wt.liveConsumerIndexOfThis.push(Gt),wt.liveConsumerNode.push(Hn)-1}function se(wt,Hn){if(_e(wt),1===wt.liveConsumerNode.length&&ke(wt))for(let An=0;An<wt.producerNode.length;An++)se(wt.producerNode[An],wt.producerIndexOfThis[An]);const Gt=wt.liveConsumerNode.length-1;if(wt.liveConsumerNode[Hn]=wt.liveConsumerNode[Gt],wt.liveConsumerIndexOfThis[Hn]=wt.liveConsumerIndexOfThis[Gt],wt.liveConsumerNode.length--,wt.liveConsumerIndexOfThis.length--,Hn<wt.liveConsumerNode.length){const An=wt.liveConsumerIndexOfThis[Hn],Kt=wt.liveConsumerNode[Hn];Fe(Kt),Kt.producerIndexOfThis[An]=Hn}}function De(wt){return wt.consumerIsAlwaysLive||(wt?.liveConsumerNode?.length??0)>0}function Fe(wt){wt.producerNode??=[],wt.producerIndexOfThis??=[],wt.producerLastReadVersion??=[]}function _e(wt){wt.liveConsumerNode??=[],wt.liveConsumerIndexOfThis??=[]}function ke(wt){return void 0!==wt.producerNode}function be(wt){const Hn=Object.create(de);Hn.computation=wt;const Gt=()=>{if(z(Hn),Z(Hn),Hn.value===Se)throw Hn.error;return Hn.value};return Gt[k]=Hn,Gt}const Ve=Symbol("UNSET"),Ie=Symbol("COMPUTING"),Se=Symbol("ERRORED"),de={...H,value:Ve,dirty:!0,error:null,equal:T,producerMustRecompute:wt=>wt.value===Ve||wt.value===Ie,producerRecomputeValue(wt){if(wt.value===Ie)throw new Error("Detected cycle in computations.");const Hn=wt.value;wt.value=Ie;const Gt=Y(wt);let An;try{An=wt.computation()}catch(Kt){An=Se,wt.error=Kt}finally{W(wt,Gt)}Hn!==Ve&&Hn!==Se&&An!==Se&&wt.equal(Hn,An)?wt.value=Hn:(wt.value=An,wt.version++)}};let xe=function le(){throw new Error};function We(){xe()}function st(wt){xe=wt}let ut=null;function Ae(wt){const Hn=Object.create(Dt);Hn.value=wt;const Gt=()=>(Z(Hn),Hn.value);return Gt[k]=Hn,Gt}function Qe(wt,Hn){q()||We(),wt.equal(wt.value,Hn)||(wt.value=Hn,function qe(wt){wt.version++,function X(){D++}(),fe(wt),ut?.()}(wt))}function vt(wt,Hn){q()||We(),Qe(wt,Hn(wt.value))}const Dt={...H,equal:T,value:void 0};function ze(wt,Hn,Gt){const An=Object.create(dt);Gt&&(An.consumerAllowSignalWrites=!0),An.fn=wt,An.schedule=Hn;const Kt=kn=>{An.cleanupFn=kn};return An.ref={notify:()=>ne(An),run:()=>{if(null===An.fn)return;if(G())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(An.dirty=!1,An.hasRun&&!J(An))return;An.hasRun=!0;const kn=Y(An);try{An.cleanupFn(),An.cleanupFn=Ge,An.fn(Kt)}finally{W(An,kn)}},cleanup:()=>An.cleanupFn(),destroy:()=>function Vt(kn){(function Ot(kn){return null===kn.fn&&null===kn.schedule})(kn)||(n(kn),kn.cleanupFn(),kn.fn=null,kn.schedule=null,kn.cleanupFn=Ge)}(An),[k]:An},An.ref}const Ge=()=>{},dt={...H,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:wt=>{null!==wt.schedule&&wt.schedule(wt.ref)},hasRun:!1,cleanupFn:Ge}},7015:(m,y,b)=>{"use strict";b.d(y,{A:()=>N});var E=b(1319);const k=function D(Y,W){for(var J=Y.length;J--;)if((0,E.A)(Y[J][0],W))return J;return-1};var P=Array.prototype.splice;function ne(Y){var W=-1,J=null==Y?0:Y.length;for(this.clear();++W<J;){var n=Y[W];this.set(n[0],n[1])}}ne.prototype.clear=function T(){this.__data__=[],this.size=0},ne.prototype.delete=function G(Y){var W=this.__data__,J=k(W,Y);return!(J<0||(J==W.length-1?W.pop():P.call(W,J,1),--this.size,0))},ne.prototype.get=function H(Y){var W=this.__data__,J=k(W,Y);return J<0?void 0:W[J][1]},ne.prototype.has=function X(Y){return k(this.__data__,Y)>-1},ne.prototype.set=function fe(Y,W){var J=this.__data__,n=k(J,Y);return n<0?(++this.size,J.push([Y,W])):J[n][1]=W,this};const N=ne},6568:(m,y,b)=>{"use strict";b.d(y,{A:()=>D});var T=b(4713),C=b(1860);const D=(0,T.A)(C.A,"Map")},2291:(m,y,b)=>{"use strict";b.d(y,{A:()=>ye});const E=(0,b(4713).A)(Object,"create");var H=Object.prototype.hasOwnProperty;var fe=Object.prototype.hasOwnProperty;function J(Re){var Qe=-1,vt=null==Re?0:Re.length;for(this.clear();++Qe<vt;){var Nt=Re[Qe];this.set(Nt[0],Nt[1])}}J.prototype.clear=function D(){this.__data__=E?E(null):{},this.size=0},J.prototype.delete=function R(Re){var Qe=this.has(Re)&&delete this.__data__[Re];return this.size-=Qe?1:0,Qe},J.prototype.get=function Z(Re){var Qe=this.__data__;if(E){var vt=Qe[Re];return"__lodash_hash_undefined__"===vt?void 0:vt}return H.call(Qe,Re)?Qe[Re]:void 0},J.prototype.has=function q(Re){var Qe=this.__data__;return E?void 0!==Qe[Re]:fe.call(Qe,Re)},J.prototype.set=function Y(Re,Qe){var vt=this.__data__;return this.size+=this.has(Re)?0:1,vt[Re]=E&&void 0===Qe?"__lodash_hash_undefined__":Qe,this};const n=J;var K=b(7015),se=b(6568);const Ve=function be(Re,Qe){var vt=Re.__data__;return function _e(Re){var Qe=typeof Re;return"string"==Qe||"number"==Qe||"symbol"==Qe||"boolean"==Qe?"__proto__"!==Re:null===Re}(Qe)?vt["string"==typeof Qe?"string":"hash"]:vt.map};function Ae(Re){var Qe=-1,vt=null==Re?0:Re.length;for(this.clear();++Qe<vt;){var Nt=Re[Qe];this.set(Nt[0],Nt[1])}}Ae.prototype.clear=function De(){this.size=0,this.__data__={hash:new n,map:new(se.A||K.A),string:new n}},Ae.prototype.delete=function Ie(Re){var Qe=Ve(this,Re).delete(Re);return this.size-=Qe?1:0,Qe},Ae.prototype.get=function de(Re){return Ve(this,Re).get(Re)},Ae.prototype.has=function xe(Re){return Ve(this,Re).has(Re)},Ae.prototype.set=function st(Re,Qe){var vt=Ve(this,Re),Nt=vt.size;return vt.set(Re,Qe),this.size+=vt.size==Nt?0:1,this};const ye=Ae},4226:(m,y,b)=>{"use strict";b.d(y,{A:()=>D});var T=b(4713),C=b(1860);const D=(0,T.A)(C.A,"Set")},8587:(m,y,b)=>{"use strict";b.d(y,{A:()=>G});var T=b(2291);function P(Q){var H=-1,Z=null==Q?0:Q.length;for(this.__data__=new T.A;++H<Z;)this.add(Q[H])}P.prototype.add=P.prototype.push=function E(Q){return this.__data__.set(Q,"__lodash_hash_undefined__"),this},P.prototype.has=function k(Q){return this.__data__.has(Q)};const G=P},5401:(m,y,b)=>{"use strict";b.d(y,{A:()=>ne});var T=b(7015);var H=b(6568),Z=b(2291);function q(N){var Y=this.__data__=new T.A(N);this.size=Y.size}q.prototype.clear=function C(){this.__data__=new T.A,this.size=0},q.prototype.delete=function D(N){var Y=this.__data__,W=Y.delete(N);return this.size=Y.size,W},q.prototype.get=function R(N){return this.__data__.get(N)},q.prototype.has=function G(N){return this.__data__.has(N)},q.prototype.set=function z(N,Y){var W=this.__data__;if(W instanceof T.A){var J=W.__data__;if(!H.A||J.length<199)return J.push([N,Y]),this.size=++W.size,this;W=this.__data__=new Z.A(J)}return W.set(N,Y),this.size=W.size,this};const ne=q},6944:(m,y,b)=>{"use strict";b.d(y,{A:()=>E});const E=b(1860).A.Symbol},6509:(m,y,b)=>{"use strict";b.d(y,{A:()=>E});const E=b(1860).A.Uint8Array},9162:(m,y,b)=>{"use strict";b.d(y,{A:()=>C});const C=function T(E,D){for(var k=-1,R=null==E?0:E.length;++k<R&&!1!==D(E[k],k,E););return E}},1861:(m,y,b)=>{"use strict";b.d(y,{A:()=>C});const C=function T(E,D){for(var k=-1,R=null==E?0:E.length,P=0,G=[];++k<R;){var Q=E[k];D(Q,k,E)&&(G[P++]=Q)}return G}},6726:(m,y,b)=>{"use strict";b.d(y,{A:()=>Z});var E=b(6513),D=b(3744),k=b(9377),R=b(8606),P=b(8885),Q=Object.prototype.hasOwnProperty;const Z=function H(X,z){var fe=(0,D.A)(X),q=!fe&&(0,E.A)(X),ne=!fe&&!q&&(0,k.A)(X),N=!fe&&!q&&!ne&&(0,P.A)(X),Y=fe||q||ne||N,W=Y?function T(X,z){for(var fe=-1,q=Array(X);++fe<X;)q[fe]=z(fe);return q}(X.length,String):[],J=W.length;for(var n in X)(z||Q.call(X,n))&&(!Y||!("length"==n||ne&&("offset"==n||"parent"==n)||N&&("buffer"==n||"byteLength"==n||"byteOffset"==n)||(0,R.A)(n,J)))&&W.push(n);return W}},563:(m,y,b)=>{"use strict";b.d(y,{A:()=>C});const C=function T(E,D){for(var k=-1,R=D.length,P=E.length;++k<R;)E[P+k]=D[k];return E}},1984:(m,y,b)=>{"use strict";b.d(y,{A:()=>R});var T=b(1827),C=b(1319),D=Object.prototype.hasOwnProperty;const R=function k(P,G,Q){var H=P[G];(!D.call(P,G)||!(0,C.A)(H,Q)||void 0===Q&&!(G in P))&&(0,T.A)(P,G,Q)}},1827:(m,y,b)=>{"use strict";b.d(y,{A:()=>E});var T=b(4746);const E=function C(D,k,R){"__proto__"==k&&T.A?(0,T.A)(D,k,{configurable:!0,enumerable:!0,value:R,writable:!0}):D[k]=R}},2676:(m,y,b)=>{"use strict";b.d(y,{A:()=>D});const D=function T(k){return function(R,P,G){for(var Q=-1,H=Object(R),Z=G(R),X=Z.length;X--;){var z=Z[k?X:++Q];if(!1===P(H[z],z,H))break}return R}}()},6658:(m,y,b)=>{"use strict";b.d(y,{A:()=>D});var T=b(563),C=b(3744);const D=function E(k,R,P){var G=R(k);return(0,C.A)(k)?G:(0,T.A)(G,P(k))}},5281:(m,y,b)=>{"use strict";b.d(y,{A:()=>ne});var T=b(6944),C=Object.prototype,E=C.hasOwnProperty,D=C.toString,k=T.A?T.A.toStringTag:void 0;var Q=Object.prototype.toString;var fe=T.A?T.A.toStringTag:void 0;const ne=function q(N){return null==N?void 0===N?"[object Undefined]":"[object Null]":fe&&fe in Object(N)?function R(N){var Y=E.call(N,k),W=N[k];try{N[k]=void 0;var J=!0}catch{}var n=D.call(N);return J&&(Y?N[k]=W:delete N[k]),n}(N):function H(N){return Q.call(N)}(N)}},6155:(m,y,b)=>{"use strict";b.d(y,{A:()=>An});var T=b(5401),C=b(8587);const D=function E(Kt,Ot){for(var Vt=-1,Fn=null==Kt?0:Kt.length;++Vt<Fn;)if(Ot(Kt[Vt],Vt,Kt))return!0;return!1};var k=b(5934);const Q=function G(Kt,Ot,Vt,Fn,kn,$n){var Ii=1&Vt,Ni=Kt.length,Ki=Ot.length;if(Ni!=Ki&&!(Ii&&Ki>Ni))return!1;var Qr=$n.get(Kt),Cr=$n.get(Ot);if(Qr&&Cr)return Qr==Ot&&Cr==Kt;var wr=-1,vs=!0,rs=2&Vt?new C.A:void 0;for($n.set(Kt,Ot),$n.set(Ot,Kt);++wr<Ni;){var ur=Kt[wr],Ns=Ot[wr];if(Fn)var to=Ii?Fn(Ns,ur,wr,Ot,Kt,$n):Fn(ur,Ns,wr,Kt,Ot,$n);if(void 0!==to){if(to)continue;vs=!1;break}if(rs){if(!D(Ot,function(Qs,pr){if(!(0,k.A)(rs,pr)&&(ur===Qs||kn(ur,Qs,Vt,Fn,$n)))return rs.push(pr)})){vs=!1;break}}else if(ur!==Ns&&!kn(ur,Ns,Vt,Fn,$n)){vs=!1;break}}return $n.delete(Kt),$n.delete(Ot),vs};var H=b(6944),Z=b(6509),X=b(1319);const fe=function z(Kt){var Ot=-1,Vt=Array(Kt.size);return Kt.forEach(function(Fn,kn){Vt[++Ot]=[kn,Fn]}),Vt};var q=b(3998),Ve=H.A?H.A.prototype:void 0,Ie=Ve?Ve.valueOf:void 0;var le=b(7895),st=Object.prototype.hasOwnProperty;var ye=b(1938),Re=b(3744),Qe=b(9377),vt=b(8885),Dt="[object Arguments]",qe="[object Array]",ze="[object Object]",dt=Object.prototype.hasOwnProperty;const wt=function Dn(Kt,Ot,Vt,Fn,kn,$n){var Ii=(0,Re.A)(Kt),Ni=(0,Re.A)(Ot),Ki=Ii?qe:(0,ye.A)(Kt),Qr=Ni?qe:(0,ye.A)(Ot),Cr=(Ki=Ki==Dt?ze:Ki)==ze,wr=(Qr=Qr==Dt?ze:Qr)==ze,vs=Ki==Qr;if(vs&&(0,Qe.A)(Kt)){if(!(0,Qe.A)(Ot))return!1;Ii=!0,Cr=!1}if(vs&&!Cr)return $n||($n=new T.A),Ii||(0,vt.A)(Kt)?Q(Kt,Ot,Vt,Fn,kn,$n):function Se(Kt,Ot,Vt,Fn,kn,$n,Ii){switch(Vt){case"[object DataView]":if(Kt.byteLength!=Ot.byteLength||Kt.byteOffset!=Ot.byteOffset)return!1;Kt=Kt.buffer,Ot=Ot.buffer;case"[object ArrayBuffer]":return!(Kt.byteLength!=Ot.byteLength||!$n(new Z.A(Kt),new Z.A(Ot)));case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,X.A)(+Kt,+Ot);case"[object Error]":return Kt.name==Ot.name&&Kt.message==Ot.message;case"[object RegExp]":case"[object String]":return Kt==Ot+"";case"[object Map]":var Ni=fe;case"[object Set]":if(Ni||(Ni=q.A),Kt.size!=Ot.size&&!(1&Fn))return!1;var Qr=Ii.get(Kt);if(Qr)return Qr==Ot;Fn|=2,Ii.set(Kt,Ot);var Cr=Q(Ni(Kt),Ni(Ot),Fn,kn,$n,Ii);return Ii.delete(Kt),Cr;case"[object Symbol]":if(Ie)return Ie.call(Kt)==Ie.call(Ot)}return!1}(Kt,Ot,Ki,Vt,Fn,kn,$n);if(!(1&Vt)){var rs=Cr&&dt.call(Kt,"__wrapped__"),ur=wr&&dt.call(Ot,"__wrapped__");if(rs||ur){var Ns=rs?Kt.value():Kt,to=ur?Ot.value():Ot;return $n||($n=new T.A),kn(Ns,to,Vt,Fn,$n)}}return!!vs&&($n||($n=new T.A),function ut(Kt,Ot,Vt,Fn,kn,$n){var Ii=1&Vt,Ni=(0,le.A)(Kt),Ki=Ni.length;if(Ki!=(0,le.A)(Ot).length&&!Ii)return!1;for(var wr=Ki;wr--;){var vs=Ni[wr];if(!(Ii?vs in Ot:st.call(Ot,vs)))return!1}var rs=$n.get(Kt),ur=$n.get(Ot);if(rs&&ur)return rs==Ot&&ur==Kt;var Ns=!0;$n.set(Kt,Ot),$n.set(Ot,Kt);for(var to=Ii;++wr<Ki;){var Qs=Kt[vs=Ni[wr]],pr=Ot[vs];if(Fn)var Ro=Ii?Fn(pr,Qs,vs,Ot,Kt,$n):Fn(Qs,pr,vs,Kt,Ot,$n);if(!(void 0===Ro?Qs===pr||kn(Qs,pr,Vt,Fn,$n):Ro)){Ns=!1;break}to||(to="constructor"==vs)}if(Ns&&!to){var Xo=Kt.constructor,El=Ot.constructor;Xo!=El&&"constructor"in Kt&&"constructor"in Ot&&!("function"==typeof Xo&&Xo instanceof Xo&&"function"==typeof El&&El instanceof El)&&(Ns=!1)}return $n.delete(Kt),$n.delete(Ot),Ns}(Kt,Ot,Vt,Fn,kn,$n))};var Hn=b(2661);const An=function Gt(Kt,Ot,Vt,Fn,kn){return Kt===Ot||(null==Kt||null==Ot||!(0,Hn.A)(Kt)&&!(0,Hn.A)(Ot)?Kt!=Kt&&Ot!=Ot:wt(Kt,Ot,Vt,Fn,Gt,kn))}},4495:(m,y,b)=>{"use strict";b.d(y,{A:()=>J});var T=b(7003);var D=Math.max;const G=function P(n){return function(){return n}};var Q=b(4746),fe=Date.now;const Y=function q(n){var K=0,se=0;return function(){var De=fe(),Fe=16-(De-se);if(se=De,Fe>0){if(++K>=800)return arguments[0]}else K=0;return n.apply(void 0,arguments)}}(Q.A?function(n,K){return(0,Q.A)(n,"toString",{configurable:!0,enumerable:!1,value:G(K),writable:!0})}:T.A),J=function W(n,K){return Y(function k(n,K,se){return K=D(void 0===K?n.length-1:K,0),function(){for(var De=arguments,Fe=-1,_e=D(De.length-K,0),ke=Array(_e);++Fe<_e;)ke[Fe]=De[K+Fe];Fe=-1;for(var be=Array(K+1);++Fe<K;)be[Fe]=De[Fe];return be[K]=se(ke),function C(n,K,se){switch(se.length){case 0:return n.call(K);case 1:return n.call(K,se[0]);case 2:return n.call(K,se[0],se[1]);case 3:return n.call(K,se[0],se[1],se[2])}return n.apply(K,se)}(n,this,be)}}(n,K,T.A),n+"")}},778:(m,y,b)=>{"use strict";b.d(y,{A:()=>C});const C=function T(E){return function(D){return E(D)}}},5934:(m,y,b)=>{"use strict";b.d(y,{A:()=>C});const C=function T(E,D){return E.has(D)}},5152:(m,y,b)=>{"use strict";b.d(y,{A:()=>E});var T=b(6509);const E=function C(D){var k=new D.constructor(D.byteLength);return new T.A(k).set(new T.A(D)),k}},9933:(m,y,b)=>{"use strict";b.d(y,{A:()=>G});var T=b(1860),C="object"==typeof exports&&exports&&!exports.nodeType&&exports,E=C&&"object"==typeof module&&module&&!module.nodeType&&module,k=E&&E.exports===C?T.A.Buffer:void 0,R=k?k.allocUnsafe:void 0;const G=function P(Q,H){if(H)return Q.slice();var Z=Q.length,X=R?R(Z):new Q.constructor(Z);return Q.copy(X),X}},4314:(m,y,b)=>{"use strict";b.d(y,{A:()=>E});var T=b(5152);const E=function C(D,k){var R=k?(0,T.A)(D.buffer):D.buffer;return new D.constructor(R,D.byteOffset,D.length)}},4528:(m,y,b)=>{"use strict";b.d(y,{A:()=>C});const C=function T(E,D){var k=-1,R=E.length;for(D||(D=Array(R));++k<R;)D[k]=E[k];return D}},9898:(m,y,b)=>{"use strict";b.d(y,{A:()=>D});var T=b(1984),C=b(1827);const D=function E(k,R,P,G){var Q=!P;P||(P={});for(var H=-1,Z=R.length;++H<Z;){var X=R[H],z=G?G(P[X],k[X],X,P,k):void 0;void 0===z&&(z=k[X]),Q?(0,C.A)(P,X,z):(0,T.A)(P,X,z)}return P}},4746:(m,y,b)=>{"use strict";b.d(y,{A:()=>E});var T=b(4713);const E=function(){try{var D=(0,T.A)(Object,"defineProperty");return D({},"",{}),D}catch{}}()},7133:(m,y,b)=>{"use strict";b.d(y,{A:()=>C});const C="object"==typeof global&&global&&global.Object===Object&&global},7895:(m,y,b)=>{"use strict";b.d(y,{A:()=>k});var T=b(6658),C=b(2697),E=b(2662);const k=function D(R){return(0,T.A)(R,E.A,C.A)}},4713:(m,y,b)=>{"use strict";b.d(y,{A:()=>K});var se,T=b(129),E=b(1860).A["__core-js_shared__"],k=(se=/[^.]+$/.exec(E&&E.keys&&E.keys.IE_PROTO||""))?"Symbol(src)_1."+se:"";var G=b(554),Q=b(8736),Z=/^\[object .+?Constructor\]$/,ne=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Y=function N(se){return!(!(0,G.A)(se)||function R(se){return!!k&&k in se}(se))&&((0,T.A)(se)?ne:Z).test((0,Q.A)(se))},K=function n(se,De){var Fe=function W(se,De){return se?.[De]}(se,De);return Y(Fe)?Fe:void 0}},5629:(m,y,b)=>{"use strict";b.d(y,{A:()=>E});const E=(0,b(8992).A)(Object.getPrototypeOf,Object)},2697:(m,y,b)=>{"use strict";b.d(y,{A:()=>P});var T=b(1861),C=b(6032),D=Object.prototype.propertyIsEnumerable,k=Object.getOwnPropertySymbols;const P=k?function(G){return null==G?[]:(G=Object(G),(0,T.A)(k(G),function(Q){return D.call(G,Q)}))}:C.A},1938:(m,y,b)=>{"use strict";b.d(y,{A:()=>Fe});var T=b(4713),C=b(1860);const D=(0,T.A)(C.A,"DataView");var k=b(6568);const P=(0,T.A)(C.A,"Promise");var G=b(4226);const H=(0,T.A)(C.A,"WeakMap");var Z=b(5281),X=b(8736),z="[object Map]",q="[object Promise]",ne="[object Set]",N="[object WeakMap]",Y="[object DataView]",W=(0,X.A)(D),J=(0,X.A)(k.A),n=(0,X.A)(P),K=(0,X.A)(G.A),se=(0,X.A)(H),De=Z.A;(D&&De(new D(new ArrayBuffer(1)))!=Y||k.A&&De(new k.A)!=z||P&&De(P.resolve())!=q||G.A&&De(new G.A)!=ne||H&&De(new H)!=N)&&(De=function(_e){var ke=(0,Z.A)(_e),be="[object Object]"==ke?_e.constructor:void 0,Ve=be?(0,X.A)(be):"";if(Ve)switch(Ve){case W:return Y;case J:return z;case n:return q;case K:return ne;case se:return N}return ke});const Fe=De},923:(m,y,b)=>{"use strict";b.d(y,{A:()=>G});var T=b(554),C=Object.create;const D=function(){function Q(){}return function(H){if(!(0,T.A)(H))return{};if(C)return C(H);Q.prototype=H;var Z=new Q;return Q.prototype=void 0,Z}}();var k=b(5629),R=b(5776);const G=function P(Q){return"function"!=typeof Q.constructor||(0,R.A)(Q)?{}:D((0,k.A)(Q))}},8606:(m,y,b)=>{"use strict";b.d(y,{A:()=>D});var C=/^(?:0|[1-9]\d*)$/;const D=function E(k,R){var P=typeof k;return!!(R=R??9007199254740991)&&("number"==P||"symbol"!=P&&C.test(k))&&k>-1&&k%1==0&&k<R}},7357:(m,y,b)=>{"use strict";b.d(y,{A:()=>R});var T=b(1319),C=b(1287),E=b(8606),D=b(554);const R=function k(P,G,Q){if(!(0,D.A)(Q))return!1;var H=typeof G;return!!("number"==H?(0,C.A)(Q)&&(0,E.A)(G,Q.length):"string"==H&&G in Q)&&(0,T.A)(Q[G],P)}},5776:(m,y,b)=>{"use strict";b.d(y,{A:()=>E});var T=Object.prototype;const E=function C(D){var k=D&&D.constructor;return D===("function"==typeof k&&k.prototype||T)}},3340:(m,y,b)=>{"use strict";b.d(y,{A:()=>P});var T=b(7133),C="object"==typeof exports&&exports&&!exports.nodeType&&exports,E=C&&"object"==typeof module&&module&&!module.nodeType&&module,k=E&&E.exports===C&&T.A.process;const P=function(){try{return E&&E.require&&E.require("util").types||k&&k.binding&&k.binding("util")}catch{}}()},8992:(m,y,b)=>{"use strict";b.d(y,{A:()=>C});const C=function T(E,D){return function(k){return E(D(k))}}},1860:(m,y,b)=>{"use strict";b.d(y,{A:()=>D});var T=b(7133),C="object"==typeof self&&self&&self.Object===Object&&self;const D=T.A||C||Function("return this")()},3998:(m,y,b)=>{"use strict";b.d(y,{A:()=>C});const C=function T(E){var D=-1,k=Array(E.size);return E.forEach(function(R){k[++D]=R}),k}},8736:(m,y,b)=>{"use strict";b.d(y,{A:()=>D});var C=Function.prototype.toString;const D=function E(k){if(null!=k){try{return C.call(k)}catch{}try{return k+""}catch{}}return""}},6118:(m,y,b)=>{"use strict";b.d(y,{A:()=>$t});var T=b(5401),C=b(9162),E=b(1984),D=b(9898),k=b(2662);var G=b(133);var Z=b(9933),X=b(4528),z=b(2697);var ne=b(563),N=b(5629),Y=b(6032);const n=Object.getOwnPropertySymbols?function(qt){for(var Mn=[];qt;)(0,ne.A)(Mn,(0,z.A)(qt)),qt=(0,N.A)(qt);return Mn}:Y.A;var De=b(7895),Fe=b(6658);const ke=function _e(qt){return(0,Fe.A)(qt,G.A,n)};var be=b(1938),Ie=Object.prototype.hasOwnProperty;var le=b(5152);var st=/\w*$/;var ye=b(6944),Re=ye.A?ye.A.prototype:void 0,Qe=Re?Re.valueOf:void 0;var Dt=b(4314);const wr=function Cr(qt,Mn,En){var Oi=qt.constructor;switch(Mn){case"[object ArrayBuffer]":return(0,le.A)(qt);case"[object Boolean]":case"[object Date]":return new Oi(+qt);case"[object DataView]":return function xe(qt,Mn){var En=Mn?(0,le.A)(qt.buffer):qt.buffer;return new qt.constructor(En,qt.byteOffset,qt.byteLength)}(qt,En);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return(0,Dt.A)(qt,En);case"[object Map]":case"[object Set]":return new Oi;case"[object Number]":case"[object String]":return new Oi(qt);case"[object RegExp]":return function ut(qt){var Mn=new qt.constructor(qt.source,st.exec(qt));return Mn.lastIndex=qt.lastIndex,Mn}(qt);case"[object Symbol]":return function vt(qt){return Qe?Object(Qe.call(qt)):{}}(qt)}};var vs=b(923),rs=b(3744),ur=b(9377),Ns=b(2661);var Ro=b(778),Xo=b(3340),El=Xo.A&&Xo.A.isMap;const ol=El?(0,Ro.A)(El):function Qs(qt){return(0,Ns.A)(qt)&&"[object Map]"==(0,be.A)(qt)};var Xa=b(554);var ws=Xo.A&&Xo.A.isSet;const da=ws?(0,Ro.A)(ws):function Dr(qt){return(0,Ns.A)(qt)&&"[object Set]"==(0,be.A)(qt)};var Wo="[object Arguments]",vl="[object Function]",Us="[object Object]",ns={};ns[Wo]=ns["[object Array]"]=ns["[object ArrayBuffer]"]=ns["[object DataView]"]=ns["[object Boolean]"]=ns["[object Date]"]=ns["[object Float32Array]"]=ns["[object Float64Array]"]=ns["[object Int8Array]"]=ns["[object Int16Array]"]=ns["[object Int32Array]"]=ns["[object Map]"]=ns["[object Number]"]=ns[Us]=ns["[object RegExp]"]=ns["[object Set]"]=ns["[object String]"]=ns["[object Symbol]"]=ns["[object Uint8Array]"]=ns["[object Uint8ClampedArray]"]=ns["[object Uint16Array]"]=ns["[object Uint32Array]"]=!0,ns["[object Error]"]=ns[vl]=ns["[object WeakMap]"]=!1;const Dc=function Mr(qt,Mn,En,Oi,ir,or){var Ui,yr=1&Mn,Wr=2&Mn,zo=4&Mn;if(En&&(Ui=ir?En(qt,Oi,ir,or):En(qt)),void 0!==Ui)return Ui;if(!(0,Xa.A)(qt))return qt;var ss=(0,rs.A)(qt);if(ss){if(Ui=function Se(qt){var Mn=qt.length,En=new qt.constructor(Mn);return Mn&&"string"==typeof qt[0]&&Ie.call(qt,"index")&&(En.index=qt.index,En.input=qt.input),En}(qt),!yr)return(0,X.A)(qt,Ui)}else{var Ho=(0,be.A)(qt),Ps=Ho==vl||"[object GeneratorFunction]"==Ho;if((0,ur.A)(qt))return(0,Z.A)(qt,yr);if(Ho==Us||Ho==Wo||Ps&&!ir){if(Ui=Wr||Ps?{}:(0,vs.A)(qt),!yr)return Wr?function K(qt,Mn){return(0,D.A)(qt,n(qt),Mn)}(qt,function Q(qt,Mn){return qt&&(0,D.A)(Mn,(0,G.A)(Mn),qt)}(Ui,qt)):function fe(qt,Mn){return(0,D.A)(qt,(0,z.A)(qt),Mn)}(qt,function R(qt,Mn){return qt&&(0,D.A)(Mn,(0,k.A)(Mn),qt)}(Ui,qt))}else{if(!ns[Ho])return ir?qt:{};Ui=wr(qt,Ho,yr)}}or||(or=new T.A);var bi=or.get(qt);if(bi)return bi;or.set(qt,Ui),da(qt)?qt.forEach(function(Bs){Ui.add(Mr(Bs,Mn,En,Bs,qt,or))}):ol(qt)&&qt.forEach(function(Bs,oo){Ui.set(oo,Mr(Bs,Mn,En,oo,qt,or))});var Aa=ss?void 0:(zo?Wr?ke:De.A:Wr?G.A:k.A)(qt);return(0,C.A)(Aa||qt,function(Bs,oo){Aa&&(Bs=qt[oo=Bs]),(0,E.A)(Ui,oo,Mr(Bs,Mn,En,oo,qt,or))}),Ui},$t=function _n(qt){return Dc(qt,5)}},1319:(m,y,b)=>{"use strict";b.d(y,{A:()=>C});const C=function T(E,D){return E===D||E!=E&&D!=D}},7003:(m,y,b)=>{"use strict";b.d(y,{A:()=>C});const C=function T(E){return E}},6513:(m,y,b)=>{"use strict";b.d(y,{A:()=>H});var T=b(5281),C=b(2661);const k=function D(Z){return(0,C.A)(Z)&&"[object Arguments]"==(0,T.A)(Z)};var R=Object.prototype,P=R.hasOwnProperty,G=R.propertyIsEnumerable;const H=k(function(){return arguments}())?k:function(Z){return(0,C.A)(Z)&&P.call(Z,"callee")&&!G.call(Z,"callee")}},3744:(m,y,b)=>{"use strict";b.d(y,{A:()=>C});const C=Array.isArray},1287:(m,y,b)=>{"use strict";b.d(y,{A:()=>D});var T=b(129),C=b(5481);const D=function E(k){return null!=k&&(0,C.A)(k.length)&&!(0,T.A)(k)}},9377:(m,y,b)=>{"use strict";b.d(y,{A:()=>H});var T=b(1860),D="object"==typeof exports&&exports&&!exports.nodeType&&exports,k=D&&"object"==typeof module&&module&&!module.nodeType&&module,P=k&&k.exports===D?T.A.Buffer:void 0;const H=(P?P.isBuffer:void 0)||function C(){return!1}},977:(m,y,b)=>{"use strict";b.d(y,{A:()=>E});var T=b(6155);const E=function C(D,k){return(0,T.A)(D,k)}},129:(m,y,b)=>{"use strict";b.d(y,{A:()=>G});var T=b(5281),C=b(554);const G=function P(Q){if(!(0,C.A)(Q))return!1;var H=(0,T.A)(Q);return"[object Function]"==H||"[object GeneratorFunction]"==H||"[object AsyncFunction]"==H||"[object Proxy]"==H}},5481:(m,y,b)=>{"use strict";b.d(y,{A:()=>E});const E=function C(D){return"number"==typeof D&&D>-1&&D%1==0&&D<=9007199254740991}},554:(m,y,b)=>{"use strict";b.d(y,{A:()=>C});const C=function T(E){var D=typeof E;return null!=E&&("object"==D||"function"==D)}},2661:(m,y,b)=>{"use strict";b.d(y,{A:()=>C});const C=function T(E){return null!=E&&"object"==typeof E}},8885:(m,y,b)=>{"use strict";b.d(y,{A:()=>We});var T=b(5281),C=b(5481),E=b(2661),be={};be["[object Float32Array]"]=be["[object Float64Array]"]=be["[object Int8Array]"]=be["[object Int16Array]"]=be["[object Int32Array]"]=be["[object Uint8Array]"]=be["[object Uint8ClampedArray]"]=be["[object Uint16Array]"]=be["[object Uint32Array]"]=!0,be["[object Arguments]"]=be["[object Array]"]=be["[object ArrayBuffer]"]=be["[object Boolean]"]=be["[object DataView]"]=be["[object Date]"]=be["[object Error]"]=be["[object Function]"]=be["[object Map]"]=be["[object Number]"]=be["[object Object]"]=be["[object RegExp]"]=be["[object Set]"]=be["[object String]"]=be["[object WeakMap]"]=!1;var Se=b(778),de=b(3340),le=de.A&&de.A.isTypedArray;const We=le?(0,Se.A)(le):function Ve(st){return(0,E.A)(st)&&(0,C.A)(st.length)&&!!be[(0,T.A)(st)]}},2662:(m,y,b)=>{"use strict";b.d(y,{A:()=>X});var T=b(6726),C=b(5776);const k=(0,b(8992).A)(Object.keys,Object);var P=Object.prototype.hasOwnProperty;var H=b(1287);const X=function Z(z){return(0,H.A)(z)?(0,T.A)(z):function G(z){if(!(0,C.A)(z))return k(z);var fe=[];for(var q in Object(z))P.call(z,q)&&"constructor"!=q&&fe.push(q);return fe}(z)}},133:(m,y,b)=>{"use strict";b.d(y,{A:()=>X});var T=b(6726),C=b(554),E=b(5776);var P=Object.prototype.hasOwnProperty;const Q=function G(z){if(!(0,C.A)(z))return function D(z){var fe=[];if(null!=z)for(var q in Object(z))fe.push(q);return fe}(z);var fe=(0,E.A)(z),q=[];for(var ne in z)"constructor"==ne&&(fe||!P.call(z,ne))||q.push(ne);return q};var H=b(1287);const X=function Z(z){return(0,H.A)(z)?(0,T.A)(z,!0):Q(z)}},6032:(m,y,b)=>{"use strict";b.d(y,{A:()=>C});const C=function T(){return[]}},6042:(m,y,b)=>{"use strict";b.r(y),b.d(y,{Attributor:()=>C,AttributorStore:()=>z,BlockBlot:()=>Ie,ClassAttributor:()=>G,ContainerBlot:()=>le,EmbedBlot:()=>We,InlineBlot:()=>ke,LeafBlot:()=>Y,ParentBlot:()=>se,Registry:()=>k,Scope:()=>T,ScrollBlot:()=>Re,StyleAttributor:()=>Z,TextBlot:()=>Nt});var T=(Dt=>(Dt[Dt.TYPE=3]="TYPE",Dt[Dt.LEVEL=12]="LEVEL",Dt[Dt.ATTRIBUTE=13]="ATTRIBUTE",Dt[Dt.BLOT=14]="BLOT",Dt[Dt.INLINE=7]="INLINE",Dt[Dt.BLOCK=11]="BLOCK",Dt[Dt.BLOCK_BLOT=10]="BLOCK_BLOT",Dt[Dt.INLINE_BLOT=6]="INLINE_BLOT",Dt[Dt.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",Dt[Dt.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",Dt[Dt.ANY=15]="ANY",Dt))(T||{});class C{constructor(qe,ze,Ge={}){this.attrName=qe,this.keyName=ze,this.scope=null!=Ge.scope?Ge.scope&T.LEVEL|T.TYPE&T.ATTRIBUTE:T.ATTRIBUTE,null!=Ge.whitelist&&(this.whitelist=Ge.whitelist)}static keys(qe){return Array.from(qe.attributes).map(ze=>ze.name)}add(qe,ze){return!!this.canAdd(qe,ze)&&(qe.setAttribute(this.keyName,ze),!0)}canAdd(qe,ze){return null==this.whitelist||("string"==typeof ze?this.whitelist.indexOf(ze.replace(/["']/g,""))>-1:this.whitelist.indexOf(ze)>-1)}remove(qe){qe.removeAttribute(this.keyName)}value(qe){const ze=qe.getAttribute(this.keyName);return this.canAdd(qe,ze)&&ze?ze:""}}class E extends Error{constructor(qe){super(qe="[Parchment] "+qe),this.message=qe,this.name=this.constructor.name}}let k=(()=>{let Dt=class oK{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(ze,Ge=!1){if(null==ze)return null;if(this.blots.has(ze))return this.blots.get(ze)||null;if(Ge){let dt=null;try{dt=ze.parentNode}catch{return null}return this.find(dt,Ge)}return null}create(ze,Ge,dt){const Dn=this.query(Ge);if(null==Dn)throw new E(`Unable to create ${Ge} blot`);const wt=Dn,Hn=Ge instanceof Node||Ge.nodeType===Node.TEXT_NODE?Ge:wt.create(dt),Gt=new wt(ze,Hn,dt);return oK.blots.set(Gt.domNode,Gt),Gt}find(ze,Ge=!1){return oK.find(ze,Ge)}query(ze,Ge=T.ANY){let dt;return"string"==typeof ze?dt=this.types[ze]||this.attributes[ze]:ze instanceof Text||ze.nodeType===Node.TEXT_NODE?dt=this.types.text:"number"==typeof ze?ze&T.LEVEL&T.BLOCK?dt=this.types.block:ze&T.LEVEL&T.INLINE&&(dt=this.types.inline):ze instanceof Element&&((ze.getAttribute("class")||"").split(/\s+/).some(Dn=>(dt=this.classes[Dn],!!dt)),dt=dt||this.tags[ze.tagName]),null==dt?null:"scope"in dt&&Ge&T.LEVEL&dt.scope&&Ge&T.TYPE&dt.scope?dt:null}register(...ze){return ze.map(Ge=>{const dt="blotName"in Ge,Dn="attrName"in Ge;if(!dt&&!Dn)throw new E("Invalid definition");if(dt&&"abstract"===Ge.blotName)throw new E("Cannot register abstract class");return this.types[dt?Ge.blotName:Dn?Ge.attrName:void 0]=Ge,Dn?"string"==typeof Ge.keyName&&(this.attributes[Ge.keyName]=Ge):dt&&(Ge.className&&(this.classes[Ge.className]=Ge),Ge.tagName&&(Ge.tagName=Array.isArray(Ge.tagName)?Ge.tagName.map(Hn=>Hn.toUpperCase()):Ge.tagName.toUpperCase(),(Array.isArray(Ge.tagName)?Ge.tagName:[Ge.tagName]).forEach(Hn=>{(null==this.tags[Hn]||null==Ge.className)&&(this.tags[Hn]=Ge)}))),Ge})}};return Dt.blots=new WeakMap,Dt})();function R(Dt,qe){return(Dt.getAttribute("class")||"").split(/\s+/).filter(ze=>0===ze.indexOf(`${qe}-`))}const G=class P extends C{static keys(qe){return(qe.getAttribute("class")||"").split(/\s+/).map(ze=>ze.split("-").slice(0,-1).join("-"))}add(qe,ze){return!!this.canAdd(qe,ze)&&(this.remove(qe),qe.classList.add(`${this.keyName}-${ze}`),!0)}remove(qe){R(qe,this.keyName).forEach(ze=>{qe.classList.remove(ze)}),0===qe.classList.length&&qe.removeAttribute("class")}value(qe){const ze=(R(qe,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(qe,ze)?ze:""}};function Q(Dt){const qe=Dt.split("-"),ze=qe.slice(1).map(Ge=>Ge[0].toUpperCase()+Ge.slice(1)).join("");return qe[0]+ze}const Z=class H extends C{static keys(qe){return(qe.getAttribute("style")||"").split(";").map(ze=>ze.split(":")[0].trim())}add(qe,ze){return!!this.canAdd(qe,ze)&&(qe.style[Q(this.keyName)]=ze,!0)}remove(qe){qe.style[Q(this.keyName)]="",qe.getAttribute("style")||qe.removeAttribute("style")}value(qe){const ze=qe.style[Q(this.keyName)];return this.canAdd(qe,ze)?ze:""}},z=class X{constructor(qe){this.attributes={},this.domNode=qe,this.build()}attribute(qe,ze){ze?qe.add(this.domNode,ze)&&(null!=qe.value(this.domNode)?this.attributes[qe.attrName]=qe:delete this.attributes[qe.attrName]):(qe.remove(this.domNode),delete this.attributes[qe.attrName])}build(){this.attributes={};const qe=k.find(this.domNode);if(null==qe)return;const ze=C.keys(this.domNode),Ge=G.keys(this.domNode),dt=Z.keys(this.domNode);ze.concat(Ge).concat(dt).forEach(Dn=>{const wt=qe.scroll.query(Dn,T.ATTRIBUTE);wt instanceof C&&(this.attributes[wt.attrName]=wt)})}copy(qe){Object.keys(this.attributes).forEach(ze=>{const Ge=this.attributes[ze].value(this.domNode);qe.format(ze,Ge)})}move(qe){this.copy(qe),Object.keys(this.attributes).forEach(ze=>{this.attributes[ze].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((qe,ze)=>(qe[ze]=this.attributes[ze].value(this.domNode),qe),{})}},fe=class{constructor(qe,ze){this.scroll=qe,this.domNode=ze,k.blots.set(ze,this),this.prev=null,this.next=null}static create(qe){if(null==this.tagName)throw new E("Blot definition missing tagName");let ze,Ge;return Array.isArray(this.tagName)?("string"==typeof qe?(Ge=qe.toUpperCase(),parseInt(Ge,10).toString()===Ge&&(Ge=parseInt(Ge,10))):"number"==typeof qe&&(Ge=qe),ze="number"==typeof Ge?document.createElement(this.tagName[Ge-1]):Ge&&this.tagName.indexOf(Ge)>-1?document.createElement(Ge):document.createElement(this.tagName[0])):ze=document.createElement(this.tagName),this.className&&ze.classList.add(this.className),ze}get statics(){return this.constructor}attach(){}clone(){const qe=this.domNode.cloneNode(!1);return this.scroll.create(qe)}detach(){null!=this.parent&&this.parent.removeChild(this),k.blots.delete(this.domNode)}deleteAt(qe,ze){this.isolate(qe,ze).remove()}formatAt(qe,ze,Ge,dt){const Dn=this.isolate(qe,ze);if(null!=this.scroll.query(Ge,T.BLOT)&&dt)Dn.wrap(Ge,dt);else if(null!=this.scroll.query(Ge,T.ATTRIBUTE)){const wt=this.scroll.create(this.statics.scope);Dn.wrap(wt),wt.format(Ge,dt)}}insertAt(qe,ze,Ge){const dt=null==Ge?this.scroll.create("text",ze):this.scroll.create(ze,Ge),Dn=this.split(qe);this.parent.insertBefore(dt,Dn||void 0)}isolate(qe,ze){const Ge=this.split(qe);if(null==Ge)throw new Error("Attempt to isolate at end");return Ge.split(ze),Ge}length(){return 1}offset(qe=this.parent){return null==this.parent||this===qe?0:this.parent.children.offset(this)+this.parent.offset(qe)}optimize(qe){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(qe,ze){const Ge="string"==typeof qe?this.scroll.create(qe,ze):qe;return null!=this.parent&&(this.parent.insertBefore(Ge,this.next||void 0),this.remove()),Ge}split(qe,ze){return 0===qe?this:this.next}update(qe,ze){}wrap(qe,ze){const Ge="string"==typeof qe?this.scroll.create(qe,ze):qe;if(null!=this.parent&&this.parent.insertBefore(Ge,this.next||void 0),"function"!=typeof Ge.appendChild)throw new E(`Cannot wrap ${qe}`);return Ge.appendChild(this),Ge}};fe.blotName="abstract";let q=fe;const ne=class extends q{static value(qe){return!0}index(qe,ze){return this.domNode===qe||this.domNode.compareDocumentPosition(qe)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(ze,1):-1}position(qe,ze){let Ge=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return qe>0&&(Ge+=1),[this.parent.domNode,Ge]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};ne.scope=T.INLINE_BLOT;const Y=ne;class W{constructor(){this.head=null,this.tail=null,this.length=0}append(...qe){if(this.insertBefore(qe[0],null),qe.length>1){const ze=qe.slice(1);this.append(...ze)}}at(qe){const ze=this.iterator();let Ge=ze();for(;Ge&&qe>0;)qe-=1,Ge=ze();return Ge}contains(qe){const ze=this.iterator();let Ge=ze();for(;Ge;){if(Ge===qe)return!0;Ge=ze()}return!1}indexOf(qe){const ze=this.iterator();let Ge=ze(),dt=0;for(;Ge;){if(Ge===qe)return dt;dt+=1,Ge=ze()}return-1}insertBefore(qe,ze){null!=qe&&(this.remove(qe),qe.next=ze,null!=ze?(qe.prev=ze.prev,null!=ze.prev&&(ze.prev.next=qe),ze.prev=qe,ze===this.head&&(this.head=qe)):null!=this.tail?(this.tail.next=qe,qe.prev=this.tail,this.tail=qe):(qe.prev=null,this.head=this.tail=qe),this.length+=1)}offset(qe){let ze=0,Ge=this.head;for(;null!=Ge;){if(Ge===qe)return ze;ze+=Ge.length(),Ge=Ge.next}return-1}remove(qe){this.contains(qe)&&(null!=qe.prev&&(qe.prev.next=qe.next),null!=qe.next&&(qe.next.prev=qe.prev),qe===this.head&&(this.head=qe.next),qe===this.tail&&(this.tail=qe.prev),this.length-=1)}iterator(qe=this.head){return()=>{const ze=qe;return null!=qe&&(qe=qe.next),ze}}find(qe,ze=!1){const Ge=this.iterator();let dt=Ge();for(;dt;){const Dn=dt.length();if(qe<Dn||ze&&qe===Dn&&(null==dt.next||0!==dt.next.length()))return[dt,qe];qe-=Dn,dt=Ge()}return[null,0]}forEach(qe){const ze=this.iterator();let Ge=ze();for(;Ge;)qe(Ge),Ge=ze()}forEachAt(qe,ze,Ge){if(ze<=0)return;const[dt,Dn]=this.find(qe);let wt=qe-Dn;const Hn=this.iterator(dt);let Gt=Hn();for(;Gt&&wt<qe+ze;){const An=Gt.length();qe>wt?Ge(Gt,qe-wt,Math.min(ze,wt+An-qe)):Ge(Gt,0,Math.min(An,qe+ze-wt)),wt+=An,Gt=Hn()}}map(qe){return this.reduce((ze,Ge)=>(ze.push(qe(Ge)),ze),[])}reduce(qe,ze){const Ge=this.iterator();let dt=Ge();for(;dt;)ze=qe(ze,dt),dt=Ge();return ze}}function J(Dt,qe){const ze=qe.find(Dt);if(ze)return ze;try{return qe.create(Dt)}catch{const Ge=qe.create(T.INLINE);return Array.from(Dt.childNodes).forEach(dt=>{Ge.domNode.appendChild(dt)}),Dt.parentNode&&Dt.parentNode.replaceChild(Ge.domNode,Dt),Ge.attach(),Ge}}const se=(()=>{let Dt=class ET extends q{constructor(ze,Ge){super(ze,Ge),this.uiNode=null,this.build()}appendChild(ze){this.insertBefore(ze)}attach(){super.attach(),this.children.forEach(ze=>{ze.attach()})}attachUI(ze){null!=this.uiNode&&this.uiNode.remove(),this.uiNode=ze,ET.uiClass&&this.uiNode.classList.add(ET.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new W,Array.from(this.domNode.childNodes).filter(ze=>ze!==this.uiNode).reverse().forEach(ze=>{try{const Ge=J(ze,this.scroll);this.insertBefore(Ge,this.children.head||void 0)}catch(Ge){if(Ge instanceof E)return;throw Ge}})}deleteAt(ze,Ge){if(0===ze&&Ge===this.length())return this.remove();this.children.forEachAt(ze,Ge,(dt,Dn,wt)=>{dt.deleteAt(Dn,wt)})}descendant(ze,Ge=0){const[dt,Dn]=this.children.find(Ge);return null==ze.blotName&&ze(dt)||null!=ze.blotName&&dt instanceof ze?[dt,Dn]:dt instanceof ET?dt.descendant(ze,Dn):[null,-1]}descendants(ze,Ge=0,dt=Number.MAX_VALUE){let Dn=[],wt=dt;return this.children.forEachAt(Ge,dt,(Hn,Gt,An)=>{(null==ze.blotName&&ze(Hn)||null!=ze.blotName&&Hn instanceof ze)&&Dn.push(Hn),Hn instanceof ET&&(Dn=Dn.concat(Hn.descendants(ze,Gt,wt))),wt-=An}),Dn}detach(){this.children.forEach(ze=>{ze.detach()}),super.detach()}enforceAllowedChildren(){let ze=!1;this.children.forEach(Ge=>{ze||this.statics.allowedChildren.some(dt=>Ge instanceof dt)||(Ge.statics.scope===T.BLOCK_BLOT?(null!=Ge.next&&this.splitAfter(Ge),null!=Ge.prev&&this.splitAfter(Ge.prev),Ge.parent.unwrap(),ze=!0):Ge instanceof ET?Ge.unwrap():Ge.remove())})}formatAt(ze,Ge,dt,Dn){this.children.forEachAt(ze,Ge,(wt,Hn,Gt)=>{wt.formatAt(Hn,Gt,dt,Dn)})}insertAt(ze,Ge,dt){const[Dn,wt]=this.children.find(ze);if(Dn)Dn.insertAt(wt,Ge,dt);else{const Hn=null==dt?this.scroll.create("text",Ge):this.scroll.create(Ge,dt);this.appendChild(Hn)}}insertBefore(ze,Ge){null!=ze.parent&&ze.parent.children.remove(ze);let dt=null;this.children.insertBefore(ze,Ge||null),ze.parent=this,null!=Ge&&(dt=Ge.domNode),(this.domNode.parentNode!==ze.domNode||this.domNode.nextSibling!==dt)&&this.domNode.insertBefore(ze.domNode,dt),ze.attach()}length(){return this.children.reduce((ze,Ge)=>ze+Ge.length(),0)}moveChildren(ze,Ge){this.children.forEach(dt=>{ze.insertBefore(dt,Ge)})}optimize(ze){if(super.optimize(ze),this.enforceAllowedChildren(),null!=this.uiNode&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),0===this.children.length)if(null!=this.statics.defaultChild){const Ge=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(Ge)}else this.remove()}path(ze,Ge=!1){const[dt,Dn]=this.children.find(ze,Ge),wt=[[this,ze]];return dt instanceof ET?wt.concat(dt.path(Dn,Ge)):(null!=dt&&wt.push([dt,Dn]),wt)}removeChild(ze){this.children.remove(ze)}replaceWith(ze,Ge){const dt="string"==typeof ze?this.scroll.create(ze,Ge):ze;return dt instanceof ET&&this.moveChildren(dt),super.replaceWith(dt)}split(ze,Ge=!1){if(!Ge){if(0===ze)return this;if(ze===this.length())return this.next}const dt=this.clone();return this.parent&&this.parent.insertBefore(dt,this.next||void 0),this.children.forEachAt(ze,this.length(),(Dn,wt,Hn)=>{const Gt=Dn.split(wt,Ge);null!=Gt&&dt.appendChild(Gt)}),dt}splitAfter(ze){const Ge=this.clone();for(;null!=ze.next;)Ge.appendChild(ze.next);return this.parent&&this.parent.insertBefore(Ge,this.next||void 0),Ge}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(ze,Ge){const dt=[],Dn=[];ze.forEach(wt=>{wt.target===this.domNode&&"childList"===wt.type&&(dt.push(...wt.addedNodes),Dn.push(...wt.removedNodes))}),Dn.forEach(wt=>{if(null!=wt.parentNode&&"IFRAME"!==wt.tagName&&document.body.compareDocumentPosition(wt)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const Hn=this.scroll.find(wt);null!=Hn&&(null==Hn.domNode.parentNode||Hn.domNode.parentNode===this.domNode)&&Hn.detach()}),dt.filter(wt=>wt.parentNode===this.domNode&&wt!==this.uiNode).sort((wt,Hn)=>wt===Hn?0:wt.compareDocumentPosition(Hn)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(wt=>{let Hn=null;null!=wt.nextSibling&&(Hn=this.scroll.find(wt.nextSibling));const Gt=J(wt,this.scroll);(Gt.next!==Hn||null==Gt.next)&&(null!=Gt.parent&&Gt.parent.removeChild(this),this.insertBefore(Gt,Hn||void 0))}),this.enforceAllowedChildren()}};return Dt.uiClass="",Dt})(),Fe=class EI extends se{static create(qe){return super.create(qe)}static formats(qe,ze){const Ge=ze.query(EI.blotName);if(null==Ge||qe.tagName!==Ge.tagName){if("string"==typeof this.tagName)return!0;if(Array.isArray(this.tagName))return qe.tagName.toLowerCase()}}constructor(qe,ze){super(qe,ze),this.attributes=new z(this.domNode)}format(qe,ze){if(qe!==this.statics.blotName||ze){const Ge=this.scroll.query(qe,T.INLINE);if(null==Ge)return;Ge instanceof C?this.attributes.attribute(Ge,ze):ze&&(qe!==this.statics.blotName||this.formats()[qe]!==ze)&&this.replaceWith(qe,ze)}else this.children.forEach(Ge=>{Ge instanceof EI||(Ge=Ge.wrap(EI.blotName,!0)),this.attributes.copy(Ge)}),this.unwrap()}formats(){const qe=this.attributes.values(),ze=this.statics.formats(this.domNode,this.scroll);return null!=ze&&(qe[this.statics.blotName]=ze),qe}formatAt(qe,ze,Ge,dt){null!=this.formats()[Ge]||this.scroll.query(Ge,T.ATTRIBUTE)?this.isolate(qe,ze).format(Ge,dt):super.formatAt(qe,ze,Ge,dt)}optimize(qe){super.optimize(qe);const ze=this.formats();if(0===Object.keys(ze).length)return this.unwrap();const Ge=this.next;Ge instanceof EI&&Ge.prev===this&&function De(Dt,qe){if(Object.keys(Dt).length!==Object.keys(qe).length)return!1;for(const ze in Dt)if(Dt[ze]!==qe[ze])return!1;return!0}(ze,Ge.formats())&&(Ge.moveChildren(this),Ge.remove())}replaceWith(qe,ze){const Ge=super.replaceWith(qe,ze);return this.attributes.copy(Ge),Ge}update(qe,ze){super.update(qe,ze),qe.some(Ge=>Ge.target===this.domNode&&"attributes"===Ge.type)&&this.attributes.build()}wrap(qe,ze){const Ge=super.wrap(qe,ze);return Ge instanceof EI&&this.attributes.move(Ge),Ge}};Fe.allowedChildren=[Fe,Y],Fe.blotName="inline",Fe.scope=T.INLINE_BLOT,Fe.tagName="SPAN";const ke=Fe,be=class sK extends se{static create(qe){return super.create(qe)}static formats(qe,ze){const Ge=ze.query(sK.blotName);if(null==Ge||qe.tagName!==Ge.tagName){if("string"==typeof this.tagName)return!0;if(Array.isArray(this.tagName))return qe.tagName.toLowerCase()}}constructor(qe,ze){super(qe,ze),this.attributes=new z(this.domNode)}format(qe,ze){const Ge=this.scroll.query(qe,T.BLOCK);null!=Ge&&(Ge instanceof C?this.attributes.attribute(Ge,ze):qe!==this.statics.blotName||ze?ze&&(qe!==this.statics.blotName||this.formats()[qe]!==ze)&&this.replaceWith(qe,ze):this.replaceWith(sK.blotName))}formats(){const qe=this.attributes.values(),ze=this.statics.formats(this.domNode,this.scroll);return null!=ze&&(qe[this.statics.blotName]=ze),qe}formatAt(qe,ze,Ge,dt){null!=this.scroll.query(Ge,T.BLOCK)?this.format(Ge,dt):super.formatAt(qe,ze,Ge,dt)}insertAt(qe,ze,Ge){if(null==Ge||null!=this.scroll.query(ze,T.INLINE))super.insertAt(qe,ze,Ge);else{const dt=this.split(qe);if(null==dt)throw new Error("Attempt to insertAt after block boundaries");{const Dn=this.scroll.create(ze,Ge);dt.parent.insertBefore(Dn,dt)}}}replaceWith(qe,ze){const Ge=super.replaceWith(qe,ze);return this.attributes.copy(Ge),Ge}update(qe,ze){super.update(qe,ze),qe.some(Ge=>Ge.target===this.domNode&&"attributes"===Ge.type)&&this.attributes.build()}};be.blotName="block",be.scope=T.BLOCK_BLOT,be.tagName="P",be.allowedChildren=[ke,be,Y];const Ie=be,Se=class extends se{checkMerge(){return null!==this.next&&this.next.statics.blotName===this.statics.blotName}deleteAt(qe,ze){super.deleteAt(qe,ze),this.enforceAllowedChildren()}formatAt(qe,ze,Ge,dt){super.formatAt(qe,ze,Ge,dt),this.enforceAllowedChildren()}insertAt(qe,ze,Ge){super.insertAt(qe,ze,Ge),this.enforceAllowedChildren()}optimize(qe){super.optimize(qe),this.children.length>0&&null!=this.next&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};Se.blotName="container",Se.scope=T.BLOCK_BLOT;const le=Se,We=class xe extends Y{static formats(qe,ze){}format(qe,ze){super.formatAt(0,this.length(),qe,ze)}formatAt(qe,ze,Ge,dt){0===qe&&ze===this.length()?this.format(Ge,dt):super.formatAt(qe,ze,Ge,dt)}formats(){return this.statics.formats(this.domNode,this.scroll)}},st={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},Ae=class extends se{constructor(qe,ze){super(null,ze),this.registry=qe,this.scroll=this,this.build(),this.observer=new MutationObserver(Ge=>{this.update(Ge)}),this.observer.observe(this.domNode,st),this.attach()}create(qe,ze){return this.registry.create(this,qe,ze)}find(qe,ze=!1){const Ge=this.registry.find(qe,ze);return Ge?Ge.scroll===this?Ge:ze?this.find(Ge.scroll.domNode.parentNode,!0):null:null}query(qe,ze=T.ANY){return this.registry.query(qe,ze)}register(...qe){return this.registry.register(...qe)}build(){null!=this.scroll&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(qe,ze){this.update(),0===qe&&ze===this.length()?this.children.forEach(Ge=>{Ge.remove()}):super.deleteAt(qe,ze)}formatAt(qe,ze,Ge,dt){this.update(),super.formatAt(qe,ze,Ge,dt)}insertAt(qe,ze,Ge){this.update(),super.insertAt(qe,ze,Ge)}optimize(qe=[],ze={}){super.optimize(ze);const Ge=ze.mutationsMap||new WeakMap;let dt=Array.from(this.observer.takeRecords());for(;dt.length>0;)qe.push(dt.pop());const Dn=(Gt,An=!0)=>{null==Gt||Gt===this||null!=Gt.domNode.parentNode&&(Ge.has(Gt.domNode)||Ge.set(Gt.domNode,[]),An&&Dn(Gt.parent))},wt=Gt=>{Ge.has(Gt.domNode)&&(Gt instanceof se&&Gt.children.forEach(wt),Ge.delete(Gt.domNode),Gt.optimize(ze))};let Hn=qe;for(let Gt=0;Hn.length>0;Gt+=1){if(Gt>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(Hn.forEach(An=>{const Kt=this.find(An.target,!0);null!=Kt&&(Kt.domNode===An.target&&("childList"===An.type?(Dn(this.find(An.previousSibling,!1)),Array.from(An.addedNodes).forEach(Ot=>{const Vt=this.find(Ot,!1);Dn(Vt,!1),Vt instanceof se&&Vt.children.forEach(Fn=>{Dn(Fn,!1)})})):"attributes"===An.type&&Dn(Kt.prev)),Dn(Kt))}),this.children.forEach(wt),Hn=Array.from(this.observer.takeRecords()),dt=Hn.slice();dt.length>0;)qe.push(dt.pop())}}update(qe,ze={}){qe=qe||this.observer.takeRecords();const Ge=new WeakMap;qe.map(dt=>{const Dn=this.find(dt.target,!0);return null==Dn?null:Ge.has(Dn.domNode)?(Ge.get(Dn.domNode).push(dt),null):(Ge.set(Dn.domNode,[dt]),Dn)}).forEach(dt=>{null!=dt&&dt!==this&&Ge.has(dt.domNode)&&dt.update(Ge.get(dt.domNode)||[],ze)}),ze.mutationsMap=Ge,Ge.has(this.domNode)&&super.update(Ge.get(this.domNode),ze),this.optimize(qe,ze)}};Ae.blotName="scroll",Ae.defaultChild=Ie,Ae.allowedChildren=[Ie,le],Ae.scope=T.BLOCK_BLOT,Ae.tagName="DIV";const Re=Ae,Qe=class Ghe extends Y{static create(qe){return document.createTextNode(qe)}static value(qe){return qe.data}constructor(qe,ze){super(qe,ze),this.text=this.statics.value(this.domNode)}deleteAt(qe,ze){this.domNode.data=this.text=this.text.slice(0,qe)+this.text.slice(qe+ze)}index(qe,ze){return this.domNode===qe?ze:-1}insertAt(qe,ze,Ge){null==Ge?(this.text=this.text.slice(0,qe)+ze+this.text.slice(qe),this.domNode.data=this.text):super.insertAt(qe,ze,Ge)}length(){return this.text.length}optimize(qe){super.optimize(qe),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof Ghe&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(qe,ze=!1){return[this.domNode,qe]}split(qe,ze=!1){if(!ze){if(0===qe)return this;if(qe===this.length())return this.next}const Ge=this.scroll.create(this.domNode.splitText(qe));return this.parent.insertBefore(Ge,this.next||void 0),this.text=this.statics.value(this.domNode),Ge}update(qe,ze){qe.some(Ge=>"characterData"===Ge.type&&Ge.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};Qe.blotName="text",Qe.scope=T.INLINE_BLOT;const Nt=Qe},2986:(m,y,b)=>{"use strict";b.d(y,{A:()=>E});var T=b(6042);const E=(()=>{class D extends T.EmbedBlot{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}return D.blotName="break",D.tagName="BR",D})()},1060:(m,y,b)=>{"use strict";b.d(y,{A:()=>k});var T=b(6042),C=b(2986),E=b(9234);const k=(()=>{class R extends T.InlineBlot{static allowedChildren=[R,C.A,T.EmbedBlot,E.A];static order=["cursor","inline","link","underline","strike","italic","bold","script","code"];static compare(G,Q){const H=R.order.indexOf(G),Z=R.order.indexOf(Q);return H>=0||Z>=0?H-Z:G===Q?0:G<Q?-1:1}formatAt(G,Q,H,Z){if(R.compare(this.statics.blotName,H)<0&&this.scroll.query(H,T.Scope.BLOT)){const X=this.isolate(G,Q);Z&&X.wrap(H,Z)}else super.formatAt(G,Q,H,Z)}optimize(G){if(super.optimize(G),this.parent instanceof R&&R.compare(this.statics.blotName,this.parent.statics.blotName)>0){const Q=this.parent.isolate(this.offset(),this.length());this.moveChildren(Q),Q.wrap(this)}}}return R})()},9234:(m,y,b)=>{"use strict";b.d(y,{A:()=>C,X:()=>E});var T=b(6042);class C extends T.TextBlot{}function E(D){return D.replace(/[&<>"']/g,k=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}[k]))}},5843:(m,y,b)=>{"use strict";b.d(y,{A:()=>C,a:()=>E});var T=b(1060);let C=(()=>class D extends T.A{static blotName="link";static tagName="A";static SANITIZED_URL="about:blank";static PROTOCOL_WHITELIST=["http","https","mailto","tel","sms"];static create(R){const P=super.create(R);return P.setAttribute("href",this.sanitize(R)),P.setAttribute("rel","noopener noreferrer"),P.setAttribute("target","_blank"),P}static formats(R){return R.getAttribute("href")}static sanitize(R){return E(R,this.PROTOCOL_WHITELIST)?R:this.SANITIZED_URL}format(R,P){R===this.statics.blotName&&P?this.domNode.setAttribute("href",this.constructor.sanitize(P)):super.format(R,P)}})();function E(D,k){const R=document.createElement("a");R.href=D;const P=R.href.slice(0,R.href.indexOf(":"));return k.indexOf(P)>-1}},9825:(m,y,b)=>{"use strict";b.r(y),b.d(y,{Module:()=>Il,Parchment:()=>Ge,Range:()=>Xo,default:()=>hr});var T=b(5401),C=b(1827),E=b(1319);const k=function D(He,oe,ee){(void 0!==ee&&!(0,E.A)(He[oe],ee)||void 0===ee&&!(oe in He))&&(0,C.A)(He,oe,ee)};var R=b(2676),P=b(9933),G=b(4314),Q=b(4528),H=b(923),Z=b(6513),X=b(3744),z=b(1287),fe=b(2661);var N=b(9377),Y=b(129),W=b(554),J=b(5281),n=b(5629),Fe=Function.prototype.toString,_e=Object.prototype.hasOwnProperty,ke=Fe.call(Object);var Ie=b(8885);const de=function Se(He,oe){if(("constructor"!==oe||"function"!=typeof He[oe])&&"__proto__"!=oe)return He[oe]};var le=b(9898),xe=b(133);const Ae=function ut(He,oe,ee,Te,Le,ot,gt){var Lt=de(He,ee),On=de(oe,ee),Yt=gt.get(On);if(Yt)k(He,ee,Yt);else{var mr=ot?ot(Lt,On,ee+"",He,oe,gt):void 0,Sr=void 0===mr;if(Sr){var Qo=(0,X.A)(On),Ur=!Qo&&(0,N.A)(On),Oo=!Qo&&!Ur&&(0,Ie.A)(On);mr=On,Qo||Ur||Oo?(0,X.A)(Lt)?mr=Lt:function q(He){return(0,fe.A)(He)&&(0,z.A)(He)}(Lt)?mr=(0,Q.A)(Lt):Ur?(Sr=!1,mr=(0,P.A)(On,!0)):Oo?(Sr=!1,mr=(0,G.A)(On,!0)):mr=[]:function be(He){if(!(0,fe.A)(He)||"[object Object]"!=(0,J.A)(He))return!1;var oe=(0,n.A)(He);if(null===oe)return!0;var ee=_e.call(oe,"constructor")&&oe.constructor;return"function"==typeof ee&&ee instanceof ee&&Fe.call(ee)==ke}(On)||(0,Z.A)(On)?(mr=Lt,(0,Z.A)(Lt)?mr=function We(He){return(0,le.A)(He,(0,xe.A)(He))}(Lt):(!(0,W.A)(Lt)||(0,Y.A)(Lt))&&(mr=(0,H.A)(On))):Sr=!1}Sr&&(gt.set(On,mr),Le(mr,On,Te,ot,gt),gt.delete(On)),k(He,ee,mr)}},Re=function ye(He,oe,ee,Te,Le){He!==oe&&(0,R.A)(oe,function(ot,gt){if(Le||(Le=new T.A),(0,W.A)(ot))Ae(He,oe,gt,ee,ye,Te,Le);else{var Lt=Te?Te(de(He,gt),ot,gt+"",He,oe,Le):void 0;void 0===Lt&&(Lt=ot),k(He,gt,Lt)}},xe.A)};var Qe=b(4495),vt=b(7357);const ze=function Nt(He){return(0,Qe.A)(function(oe,ee){var Te=-1,Le=ee.length,ot=Le>1?ee[Le-1]:void 0,gt=Le>2?ee[2]:void 0;for(ot=He.length>3&&"function"==typeof ot?(Le--,ot):void 0,gt&&(0,vt.A)(ee[0],ee[1],gt)&&(ot=Le<3?void 0:ot,Le=1),oe=Object(oe);++Te<Le;){var Lt=ee[Te];Lt&&He(oe,Lt,Te,ot)}return oe})}(function(He,oe,ee){Re(He,oe,ee)});var Ge=b(6042),dt=b(2577),Dn=b(6118),wt=b(977),Hn=b(2986),Gt=b(1060),An=b(9234);let Ot=(()=>{class He extends Ge.BlockBlot{cache={};delta(){return null==this.cache.delta&&(this.cache.delta=Fn(this)),this.cache.delta}deleteAt(ee,Te){super.deleteAt(ee,Te),this.cache={}}formatAt(ee,Te,Le,ot){Te<=0||(this.scroll.query(Le,Ge.Scope.BLOCK)?ee+Te===this.length()&&this.format(Le,ot):super.formatAt(ee,Math.min(Te,this.length()-ee-1),Le,ot),this.cache={})}insertAt(ee,Te,Le){if(null!=Le)return super.insertAt(ee,Te,Le),void(this.cache={});if(0===Te.length)return;const ot=Te.split("\n"),gt=ot.shift();gt.length>0&&(ee<this.length()-1||null==this.children.tail?super.insertAt(Math.min(ee,this.length()-1),gt):this.children.tail.insertAt(this.children.tail.length(),gt),this.cache={});let Lt=this;ot.reduce((On,Yt)=>(Lt=Lt.split(On,!0),Lt.insertAt(0,Yt),Yt.length),ee+gt.length)}insertBefore(ee,Te){const{head:Le}=this.children;super.insertBefore(ee,Te),Le instanceof Hn.A&&Le.remove(),this.cache={}}length(){return null==this.cache.length&&(this.cache.length=super.length()+1),this.cache.length}moveChildren(ee,Te){super.moveChildren(ee,Te),this.cache={}}optimize(ee){super.optimize(ee),this.cache={}}path(ee){return super.path(ee,!0)}removeChild(ee){super.removeChild(ee),this.cache={}}split(ee){let Te=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Te&&(0===ee||ee>=this.length()-1)){const ot=this.clone();return 0===ee?(this.parent.insertBefore(ot,this),this):(this.parent.insertBefore(ot,this.next),ot)}const Le=super.split(ee,Te);return this.cache={},Le}}return He.blotName="block",He.tagName="P",He.defaultChild=Hn.A,He.allowedChildren=[Hn.A,Gt.A,Ge.EmbedBlot,An.A],He})();class Vt extends Ge.EmbedBlot{attach(){super.attach(),this.attributes=new Ge.AttributorStore(this.domNode)}delta(){return(new dt).insert(this.value(),{...this.formats(),...this.attributes.values()})}format(oe,ee){const Te=this.scroll.query(oe,Ge.Scope.BLOCK_ATTRIBUTE);null!=Te&&this.attributes.attribute(Te,ee)}formatAt(oe,ee,Te,Le){this.format(Te,Le)}insertAt(oe,ee,Te){if(null!=Te)return void super.insertAt(oe,ee,Te);const Le=ee.split("\n"),ot=Le.pop(),gt=Le.map(On=>{const Yt=this.scroll.create(Ot.blotName);return Yt.insertAt(0,On),Yt}),Lt=this.split(oe);gt.forEach(On=>{this.parent.insertBefore(On,Lt)}),ot&&this.parent.insertBefore(this.scroll.create("text",ot),Lt)}}function Fn(He){let oe=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return He.descendants(Ge.LeafBlot).reduce((ee,Te)=>0===Te.length()?ee:ee.insert(Te.value(),kn(Te,{},oe)),new dt).insert("\n",kn(He))}function kn(He){let oe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ee=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return null==He||("formats"in He&&"function"==typeof He.formats&&(oe={...oe,...He.formats()},ee&&delete oe["code-token"]),null==He.parent||"scroll"===He.parent.statics.blotName||He.parent.statics.scope!==He.statics.scope)?oe:kn(He.parent,oe,ee)}Vt.scope=Ge.Scope.BLOCK_BLOT;const Ii=(()=>{class He extends Ge.EmbedBlot{static blotName="cursor";static className="ql-cursor";static tagName="span";static CONTENTS="\ufeff";static value(){}constructor(ee,Te,Le){super(ee,Te),this.selection=Le,this.textNode=document.createTextNode(He.CONTENTS),this.domNode.appendChild(this.textNode),this.savedLength=0}detach(){null!=this.parent&&this.parent.removeChild(this)}format(ee,Te){if(0!==this.savedLength)return void super.format(ee,Te);let Le=this,ot=0;for(;null!=Le&&Le.statics.scope!==Ge.Scope.BLOCK_BLOT;)ot+=Le.offset(Le.parent),Le=Le.parent;null!=Le&&(this.savedLength=He.CONTENTS.length,Le.optimize(),Le.formatAt(ot,He.CONTENTS.length,ee,Te),this.savedLength=0)}index(ee,Te){return ee===this.textNode?0:super.index(ee,Te)}length(){return this.savedLength}position(){return[this.textNode,this.textNode.data.length]}remove(){super.remove(),this.parent=null}restore(){if(this.selection.composing||null==this.parent)return null;const ee=this.selection.getNativeRange();for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);const Te=this.prev instanceof An.A?this.prev:null,Le=Te?Te.length():0,ot=this.next instanceof An.A?this.next:null,gt=ot?ot.text:"",{textNode:Lt}=this,On=Lt.data.split(He.CONTENTS).join("");let Yt;if(Lt.data=He.CONTENTS,Te)Yt=Te,(On||ot)&&(Te.insertAt(Te.length(),On+gt),ot&&ot.remove());else if(ot)Yt=ot,ot.insertAt(0,On);else{const mr=document.createTextNode(On);Yt=this.scroll.create(mr),this.parent.insertBefore(Yt,this)}if(this.remove(),ee){const mr=(Ur,Oo)=>Te&&Ur===Te.domNode?Oo:Ur===Lt?Le+Oo-1:ot&&Ur===ot.domNode?Le+On.length+Oo:null,Sr=mr(ee.start.node,ee.start.offset),Qo=mr(ee.end.node,ee.end.offset);if(null!==Sr&&null!==Qo)return{startNode:Yt.domNode,startOffset:Sr,endNode:Yt.domNode,endOffset:Qo}}return null}update(ee,Te){if(ee.some(Le=>"characterData"===Le.type&&Le.target===this.textNode)){const Le=this.restore();Le&&(Te.range=Le)}}optimize(ee){super.optimize(ee);let{parent:Te}=this;for(;Te;){if("A"===Te.domNode.tagName){this.savedLength=He.CONTENTS.length,Te.isolate(this.offset(Te),this.length()).unwrap(),this.savedLength=0;break}Te=Te.parent}}value(){return""}}return He})();var Ni=b(9280);const Qr=new WeakMap,Cr=["error","warn","log","info"];let wr="warn";function vs(He){if(wr&&Cr.indexOf(He)<=Cr.indexOf(wr)){for(var oe=arguments.length,ee=new Array(oe>1?oe-1:0),Te=1;Te<oe;Te++)ee[Te-1]=arguments[Te];console[He](...ee)}}function rs(He){return Cr.reduce((oe,ee)=>(oe[ee]=vs.bind(console,ee,He),oe),{})}vs.level=rs.level=He=>{wr=He};const ur=rs,Ns=ur("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(He=>{document.addEventListener(He,function(){for(var oe=arguments.length,ee=new Array(oe),Te=0;Te<oe;Te++)ee[Te]=arguments[Te];Array.from(document.querySelectorAll(".ql-container")).forEach(Le=>{const ot=Qr.get(Le);ot&&ot.emitter&&ot.emitter.handleDOM(...ee)})})});const pr=(()=>class He extends Ni{static events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_BLOT_MOUNT:"scroll-blot-mount",SCROLL_BLOT_UNMOUNT:"scroll-blot-unmount",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SCROLL_EMBED_UPDATE:"scroll-embed-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change",COMPOSITION_BEFORE_START:"composition-before-start",COMPOSITION_START:"composition-start",COMPOSITION_BEFORE_END:"composition-before-end",COMPOSITION_END:"composition-end"};static sources={API:"api",SILENT:"silent",USER:"user"};constructor(){super(),this.domListeners={},this.on("error",Ns.error)}emit(){for(var ee=arguments.length,Te=new Array(ee),Le=0;Le<ee;Le++)Te[Le]=arguments[Le];return Ns.log.call(Ns,...Te),super.emit(...Te)}handleDOM(ee){for(var Te=arguments.length,Le=new Array(Te>1?Te-1:0),ot=1;ot<Te;ot++)Le[ot-1]=arguments[ot];(this.domListeners[ee.type]||[]).forEach(gt=>{let{node:Lt,handler:On}=gt;(ee.target===Lt||Lt.contains(ee.target))&&On(ee,...Le)})}listenDOM(ee,Te,Le){this.domListeners[ee]||(this.domListeners[ee]=[]),this.domListeners[ee].push({node:Te,handler:Le})}})(),Ro=ur("quill:selection");class Xo{constructor(oe){let ee=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.index=oe,this.length=ee}}function ks(He,oe){return He.contains(oe)}const ol=class El{constructor(oe,ee){this.emitter=ee,this.scroll=oe,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new Xo(0,0),this.lastRange=this.savedRange,this.lastNative=null,this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,()=>{!this.mouseDown&&!this.composing&&setTimeout(this.update.bind(this,pr.sources.USER),1)}),this.emitter.on(pr.events.SCROLL_BEFORE_UPDATE,()=>{if(!this.hasFocus())return;const Te=this.getNativeRange();null!=Te&&Te.start.node!==this.cursor.textNode&&this.emitter.once(pr.events.SCROLL_UPDATE,(Le,ot)=>{try{this.root.contains(Te.start.node)&&this.root.contains(Te.end.node)&&this.setNativeRange(Te.start.node,Te.start.offset,Te.end.node,Te.end.offset);const gt=ot.some(Lt=>"characterData"===Lt.type||"childList"===Lt.type||"attributes"===Lt.type&&Lt.target===this.root);this.update(gt?pr.sources.SILENT:Le)}catch{}})}),this.emitter.on(pr.events.SCROLL_OPTIMIZE,(Te,Le)=>{if(Le.range){const{startNode:ot,startOffset:gt,endNode:Lt,endOffset:On}=Le.range;this.setNativeRange(ot,gt,Lt,On),this.update(pr.sources.SILENT)}}),this.update(pr.sources.SILENT)}handleComposition(){this.emitter.on(pr.events.COMPOSITION_BEFORE_START,()=>{this.composing=!0}),this.emitter.on(pr.events.COMPOSITION_END,()=>{if(this.composing=!1,this.cursor.parent){const oe=this.cursor.restore();if(!oe)return;setTimeout(()=>{this.setNativeRange(oe.startNode,oe.startOffset,oe.endNode,oe.endOffset)},1)}})}handleDragging(){this.emitter.listenDOM("mousedown",document.body,()=>{this.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,()=>{this.mouseDown=!1,this.update(pr.sources.USER)})}focus(){this.hasFocus()||(this.root.focus({preventScroll:!0}),this.setRange(this.savedRange))}format(oe,ee){this.scroll.update();const Te=this.getNativeRange();if(null!=Te&&Te.native.collapsed&&!this.scroll.query(oe,Ge.Scope.BLOCK)){if(Te.start.node!==this.cursor.textNode){const Le=this.scroll.find(Te.start.node,!1);if(null==Le)return;if(Le instanceof Ge.LeafBlot){const ot=Le.split(Te.start.offset);Le.parent.insertBefore(this.cursor,ot)}else Le.insertBefore(this.cursor,Te.start.node);this.cursor.attach()}this.cursor.format(oe,ee),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}getBounds(oe){let ee=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const Te=this.scroll.length();oe=Math.min(oe,Te-1),ee=Math.min(oe+ee,Te-1)-oe;let Le,[ot,gt]=this.scroll.leaf(oe);if(null==ot)return null;if(ee>0&&gt===ot.length()){const[mr]=this.scroll.leaf(oe+1);if(mr){const[Sr]=this.scroll.line(oe),[Qo]=this.scroll.line(oe+1);Sr===Qo&&(ot=mr,gt=0)}}[Le,gt]=ot.position(gt,!0);const Lt=document.createRange();if(ee>0)return Lt.setStart(Le,gt),[ot,gt]=this.scroll.leaf(oe+ee),null==ot?null:([Le,gt]=ot.position(gt,!0),Lt.setEnd(Le,gt),Lt.getBoundingClientRect());let Yt,On="left";if(Le instanceof Text){if(!Le.data.length)return null;gt<Le.data.length?(Lt.setStart(Le,gt),Lt.setEnd(Le,gt+1)):(Lt.setStart(Le,gt-1),Lt.setEnd(Le,gt),On="right"),Yt=Lt.getBoundingClientRect()}else{if(!(ot.domNode instanceof Element))return null;Yt=ot.domNode.getBoundingClientRect(),gt>0&&(On="right")}return{bottom:Yt.top+Yt.height,height:Yt.height,left:Yt[On],right:Yt[On],top:Yt.top,width:0}}getNativeRange(){const oe=document.getSelection();if(null==oe||oe.rangeCount<=0)return null;const ee=oe.getRangeAt(0);if(null==ee)return null;const Te=this.normalizeNative(ee);return Ro.info("getNativeRange",Te),Te}getRange(){const oe=this.scroll.domNode;if("isConnected"in oe&&!oe.isConnected)return[null,null];const ee=this.getNativeRange();return null==ee?[null,null]:[this.normalizedToRange(ee),ee]}hasFocus(){return document.activeElement===this.root||null!=document.activeElement&&ks(this.root,document.activeElement)}normalizedToRange(oe){const ee=[[oe.start.node,oe.start.offset]];oe.native.collapsed||ee.push([oe.end.node,oe.end.offset]);const Te=ee.map(gt=>{const[Lt,On]=gt,Yt=this.scroll.find(Lt,!0),mr=Yt.offset(this.scroll);return 0===On?mr:Yt instanceof Ge.LeafBlot?mr+Yt.index(Lt,On):mr+Yt.length()}),Le=Math.min(Math.max(...Te),this.scroll.length()-1),ot=Math.min(Le,...Te);return new Xo(ot,Le-ot)}normalizeNative(oe){if(!ks(this.root,oe.startContainer)||!oe.collapsed&&!ks(this.root,oe.endContainer))return null;const ee={start:{node:oe.startContainer,offset:oe.startOffset},end:{node:oe.endContainer,offset:oe.endOffset},native:oe};return[ee.start,ee.end].forEach(Te=>{let{node:Le,offset:ot}=Te;for(;!(Le instanceof Text)&&Le.childNodes.length>0;)if(Le.childNodes.length>ot)Le=Le.childNodes[ot],ot=0;else{if(Le.childNodes.length!==ot)break;Le=Le.lastChild,ot=Le instanceof Text?Le.data.length:Le.childNodes.length>0?Le.childNodes.length:Le.childNodes.length+1}Te.node=Le,Te.offset=ot}),ee}rangeToNative(oe){const ee=this.scroll.length(),Te=(Le,ot)=>{Le=Math.min(ee-1,Le);const[gt,Lt]=this.scroll.leaf(Le);return gt?gt.position(Lt,ot):[null,-1]};return[...Te(oe.index,!1),...Te(oe.index+oe.length,!0)]}setNativeRange(oe,ee){let Te=arguments.length>2&&void 0!==arguments[2]?arguments[2]:oe,Le=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ee,ot=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(Ro.info("setNativeRange",oe,ee,Te,Le),null!=oe&&(null==this.root.parentNode||null==oe.parentNode||null==Te.parentNode))return;const gt=document.getSelection();if(null!=gt)if(null!=oe){this.hasFocus()||this.root.focus({preventScroll:!0});const{native:Lt}=this.getNativeRange()||{};if(null==Lt||ot||oe!==Lt.startContainer||ee!==Lt.startOffset||Te!==Lt.endContainer||Le!==Lt.endOffset){oe instanceof Element&&"BR"===oe.tagName&&(ee=Array.from(oe.parentNode.childNodes).indexOf(oe),oe=oe.parentNode),Te instanceof Element&&"BR"===Te.tagName&&(Le=Array.from(Te.parentNode.childNodes).indexOf(Te),Te=Te.parentNode);const On=document.createRange();On.setStart(oe,ee),On.setEnd(Te,Le),gt.removeAllRanges(),gt.addRange(On)}}else gt.removeAllRanges(),this.root.blur()}setRange(oe){let ee=arguments.length>1&&void 0!==arguments[1]&&arguments[1],Te=arguments.length>2&&void 0!==arguments[2]?arguments[2]:pr.sources.API;if("string"==typeof ee&&(Te=ee,ee=!1),Ro.info("setRange",oe),null!=oe){const Le=this.rangeToNative(oe);this.setNativeRange(...Le,ee)}else this.setNativeRange(null);this.update(Te)}update(){let oe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:pr.sources.USER;const ee=this.lastRange,[Te,Le]=this.getRange();if(this.lastRange=Te,this.lastNative=Le,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,wt.A)(ee,this.lastRange)){if(!this.composing&&null!=Le&&Le.native.collapsed&&Le.start.node!==this.cursor.textNode){const gt=this.cursor.restore();gt&&this.setNativeRange(gt.startNode,gt.startOffset,gt.endNode,gt.endOffset)}const ot=[pr.events.SELECTION_CHANGE,(0,Dn.A)(this.lastRange),(0,Dn.A)(ee),oe];this.emitter.emit(pr.events.EDITOR_CHANGE,...ot),oe!==pr.sources.SILENT&&this.emitter.emit(...ot)}}},Xa=/^[ -~]*$/;function Dr(He,oe,ee){if(0===He.length){const[Ur]=Ko(ee.pop());return oe<=0?`</li></${Ur}>`:`</li></${Ur}>${Dr([],oe-1,ee)}`}const[{child:Te,offset:Le,length:ot,indent:gt,type:Lt},...On]=He,[Yt,mr]=Ko(Lt);if(gt>oe)return ee.push(Lt),gt===oe+1?`<${Yt}><li${mr}>${ja(Te,Le,ot)}${Dr(On,gt,ee)}`:`<${Yt}><li>${Dr(He,oe+1,ee)}`;if(gt===oe&&Lt===ee[ee.length-1])return`</li><li${mr}>${ja(Te,Le,ot)}${Dr(On,gt,ee)}`;const[Qo]=Ko(ee.pop());return`</li></${Qo}>${Dr(He,oe-1,ee)}`}function ja(He,oe,ee){let Te=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("html"in He&&"function"==typeof He.html)return He.html(oe,ee);if(He instanceof An.A)return(0,An.X)(He.value().slice(oe,oe+ee));if(He instanceof Ge.ParentBlot){if("list-container"===He.statics.blotName){const Yt=[];return He.children.forEachAt(oe,ee,(mr,Sr,Qo)=>{const Ur="formats"in mr&&"function"==typeof mr.formats?mr.formats():{};Yt.push({child:mr,offset:Sr,length:Qo,indent:Ur.indent||0,type:Ur.list})}),Dr(Yt,-1,[])}const Le=[];if(He.children.forEachAt(oe,ee,(Yt,mr,Sr)=>{Le.push(ja(Yt,mr,Sr))}),Te||"list"===He.statics.blotName)return Le.join("");const{outerHTML:ot,innerHTML:gt}=He.domNode,[Lt,On]=ot.split(`>${gt}<`);return"<table"===Lt?`<table style="border: 1px solid #000;">${Le.join("")}<${On}`:`${Lt}>${Le.join("")}<${On}`}return He.domNode instanceof Element?He.domNode.outerHTML:""}function ws(He,oe){return Object.keys(oe).reduce((ee,Te)=>{if(null==He[Te])return ee;const Le=oe[Te];return ee[Te]=Le===He[Te]?Le:Array.isArray(Le)?Le.indexOf(He[Te])<0?Le.concat([He[Te]]):Le:[Le,He[Te]],ee},{})}function Ko(He){const oe="ordered"===He?"ol":"ul";switch(He){case"checked":return[oe,' data-list="checked"'];case"unchecked":return[oe,' data-list="unchecked"'];default:return[oe,""]}}function da(He){return He.reduce((oe,ee)=>{if("string"==typeof ee.insert){const Te=ee.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return oe.insert(Te,ee.attributes)}return oe.push(ee)},new dt)}function Bo(He,oe){let{index:ee,length:Te}=He;return new Xo(ee+oe,Te)}const qr=class ya{constructor(oe){this.scroll=oe,this.delta=this.getDelta()}applyDelta(oe){this.scroll.update();let ee=this.scroll.length();this.scroll.batchStart();const Te=da(oe),Le=new dt;return function Dl(He){const oe=[];return He.forEach(ee=>{"string"==typeof ee.insert?ee.insert.split("\n").forEach((Le,ot)=>{ot&&oe.push({insert:"\n",attributes:ee.attributes}),Le&&oe.push({insert:Le,attributes:ee.attributes})}):oe.push(ee)}),oe}(Te.ops.slice()).reduce((gt,Lt)=>{const On=dt.Op.length(Lt);let Yt=Lt.attributes||{},mr=!1,Sr=!1;if(null!=Lt.insert){if(Le.retain(On),"string"==typeof Lt.insert){const Oo=Lt.insert;Sr=!Oo.endsWith("\n")&&(ee<=gt||!!this.scroll.descendant(Vt,gt)[0]),this.scroll.insertAt(gt,Oo);const[ia,zs]=this.scroll.line(gt);let ha=ze({},kn(ia));if(ia instanceof Ot){const[$a]=ia.descendant(Ge.LeafBlot,zs);$a&&(ha=ze(ha,kn($a)))}Yt=dt.AttributeMap.diff(ha,Yt)||{}}else if("object"==typeof Lt.insert){const Oo=Object.keys(Lt.insert)[0];if(null==Oo)return gt;const ia=null!=this.scroll.query(Oo,Ge.Scope.INLINE);if(ia)(ee<=gt||this.scroll.descendant(Vt,gt)[0])&&(Sr=!0);else if(gt>0){const[zs,ha]=this.scroll.descendant(Ge.LeafBlot,gt-1);zs instanceof An.A?"\n"!==zs.value()[ha]&&(mr=!0):zs instanceof Ge.EmbedBlot&&zs.statics.scope===Ge.Scope.INLINE_BLOT&&(mr=!0)}if(this.scroll.insertAt(gt,Oo,Lt.insert[Oo]),ia){const[zs]=this.scroll.descendant(Ge.LeafBlot,gt);if(zs){const ha=ze({},kn(zs));Yt=dt.AttributeMap.diff(ha,Yt)||{}}}}ee+=On}else if(Le.push(Lt),null!==Lt.retain&&"object"==typeof Lt.retain){const Oo=Object.keys(Lt.retain)[0];if(null==Oo)return gt;this.scroll.updateEmbedAt(gt,Oo,Lt.retain[Oo])}Object.keys(Yt).forEach(Oo=>{this.scroll.formatAt(gt,On,Oo,Yt[Oo])});const Qo=mr?1:0,Ur=Sr?1:0;return ee+=Qo+Ur,Le.retain(Qo),Le.delete(Ur),gt+On+Qo+Ur},0),Le.reduce((gt,Lt)=>"number"==typeof Lt.delete?(this.scroll.deleteAt(gt,Lt.delete),gt):gt+dt.Op.length(Lt),0),this.scroll.batchEnd(),this.scroll.optimize(),this.update(Te)}deleteText(oe,ee){return this.scroll.deleteAt(oe,ee),this.update((new dt).retain(oe).delete(ee))}formatLine(oe,ee){let Te=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.scroll.update(),Object.keys(Te).forEach(ot=>{this.scroll.lines(oe,Math.max(ee,1)).forEach(gt=>{gt.format(ot,Te[ot])})}),this.scroll.optimize();const Le=(new dt).retain(oe).retain(ee,(0,Dn.A)(Te));return this.update(Le)}formatText(oe,ee){let Te=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Object.keys(Te).forEach(ot=>{this.scroll.formatAt(oe,ee,ot,Te[ot])});const Le=(new dt).retain(oe).retain(ee,(0,Dn.A)(Te));return this.update(Le)}getContents(oe,ee){return this.delta.slice(oe,oe+ee)}getDelta(){return this.scroll.lines().reduce((oe,ee)=>oe.concat(ee.delta()),new dt)}getFormat(oe){let ee=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,Te=[],Le=[];0===ee?this.scroll.path(oe).forEach(Lt=>{const[On]=Lt;On instanceof Ot?Te.push(On):On instanceof Ge.LeafBlot&&Le.push(On)}):(Te=this.scroll.lines(oe,ee),Le=this.scroll.descendants(Ge.LeafBlot,oe,ee));const[ot,gt]=[Te,Le].map(Lt=>{const On=Lt.shift();if(null==On)return{};let Yt=kn(On);for(;Object.keys(Yt).length>0;){const mr=Lt.shift();if(null==mr)return Yt;Yt=ws(kn(mr),Yt)}return Yt});return{...ot,...gt}}getHTML(oe,ee){const[Te,Le]=this.scroll.line(oe);if(Te){const ot=Te.length();return Te.length()>=Le+ee&&(0!==Le||ee!==ot)?ja(Te,Le,ee,!0):ja(this.scroll,oe,ee,!0)}return""}getText(oe,ee){return this.getContents(oe,ee).filter(Te=>"string"==typeof Te.insert).map(Te=>Te.insert).join("")}insertContents(oe,ee){const Te=da(ee),Le=(new dt).retain(oe).concat(Te);return this.scroll.insertContents(oe,Te),this.update(Le)}insertEmbed(oe,ee,Te){return this.scroll.insertAt(oe,ee,Te),this.update((new dt).retain(oe).insert({[ee]:Te}))}insertText(oe,ee){let Te=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return ee=ee.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(oe,ee),Object.keys(Te).forEach(Le=>{this.scroll.formatAt(oe,ee.length,Le,Te[Le])}),this.update((new dt).retain(oe).insert(ee,(0,Dn.A)(Te)))}isBlank(){if(0===this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;const oe=this.scroll.children.head;return oe?.statics.blotName===Ot.blotName&&(!(oe.children.length>1)&&oe.children.head instanceof Hn.A)}removeFormat(oe,ee){const Te=this.getText(oe,ee),[Le,ot]=this.scroll.line(oe+ee);let gt=0,Lt=new dt;null!=Le&&(gt=Le.length()-ot,Lt=Le.delta().slice(ot,ot+gt-1).insert("\n"));const Yt=this.getContents(oe,ee+gt).diff((new dt).insert(Te).concat(Lt)),mr=(new dt).retain(oe).concat(Yt);return this.applyDelta(mr)}update(oe){let ee=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],Te=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const Le=this.delta;if(1===ee.length&&"characterData"===ee[0].type&&ee[0].target.data.match(Xa)&&this.scroll.find(ee[0].target)){const ot=this.scroll.find(ee[0].target),gt=kn(ot),Lt=ot.offset(this.scroll),On=ee[0].oldValue.replace(Ii.CONTENTS,""),Yt=(new dt).insert(On),mr=(new dt).insert(ot.value()),Sr=Te&&{oldRange:Bo(Te.oldRange,-Lt),newRange:Bo(Te.newRange,-Lt)};oe=(new dt).retain(Lt).concat(Yt.diff(mr,Sr)).reduce((Ur,Oo)=>Oo.insert?Ur.insert(Oo.insert,gt):Ur.push(Oo),new dt),this.delta=Le.compose(oe)}else this.delta=this.getDelta(),(!oe||!(0,wt.A)(Le.compose(oe),this.delta))&&(oe=Le.diff(this.delta,Te));return oe}},Il=(()=>class He{static DEFAULTS={};constructor(ee){let Te=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.quill=ee,this.options=Te}})(),_s=class Gs extends Ge.EmbedBlot{constructor(oe,ee){super(oe,ee),this.contentNode=document.createElement("span"),this.contentNode.setAttribute("contenteditable","false"),Array.from(this.domNode.childNodes).forEach(Te=>{this.contentNode.appendChild(Te)}),this.leftGuard=document.createTextNode("\ufeff"),this.rightGuard=document.createTextNode("\ufeff"),this.domNode.appendChild(this.leftGuard),this.domNode.appendChild(this.contentNode),this.domNode.appendChild(this.rightGuard)}index(oe,ee){return oe===this.leftGuard?0:oe===this.rightGuard?1:super.index(oe,ee)}restore(oe){let Te,ee=null;const Le=oe.data.split("\ufeff").join("");if(oe===this.leftGuard)if(this.prev instanceof An.A){const ot=this.prev.length();this.prev.insertAt(ot,Le),ee={startNode:this.prev.domNode,startOffset:ot+Le.length}}else Te=document.createTextNode(Le),this.parent.insertBefore(this.scroll.create(Te),this),ee={startNode:Te,startOffset:Le.length};else oe===this.rightGuard&&(this.next instanceof An.A?(this.next.insertAt(0,Le),ee={startNode:this.next.domNode,startOffset:Le.length}):(Te=document.createTextNode(Le),this.parent.insertBefore(this.scroll.create(Te),this.next),ee={startNode:Te,startOffset:Le.length}));return oe.data="\ufeff",ee}update(oe,ee){oe.forEach(Te=>{if("characterData"===Te.type&&(Te.target===this.leftGuard||Te.target===this.rightGuard)){const Le=this.restore(Te.target);Le&&(ee.range=Le)}})}},Hs=class vl{isComposing=!1;constructor(oe,ee){this.scroll=oe,this.emitter=ee,this.setupListeners()}setupListeners(){this.scroll.domNode.addEventListener("compositionstart",oe=>{this.isComposing||this.handleCompositionStart(oe)}),this.scroll.domNode.addEventListener("compositionend",oe=>{this.isComposing&&queueMicrotask(()=>{this.handleCompositionEnd(oe)})})}handleCompositionStart(oe){const ee=oe.target instanceof Node?this.scroll.find(oe.target,!0):null;ee&&!(ee instanceof _s)&&(this.emitter.emit(pr.events.COMPOSITION_BEFORE_START,oe),this.scroll.batchStart(),this.emitter.emit(pr.events.COMPOSITION_START,oe),this.isComposing=!0)}handleCompositionEnd(oe){this.emitter.emit(pr.events.COMPOSITION_BEFORE_END,oe),this.scroll.batchEnd(),this.emitter.emit(pr.events.COMPOSITION_END,oe),this.isComposing=!1}},Al=(()=>{class He{static DEFAULTS={modules:{}};static themes={default:He};modules={};constructor(ee,Te){this.quill=ee,this.options=Te}init(){Object.keys(this.options.modules).forEach(ee=>{null==this.modules[ee]&&this.addModule(ee)})}addModule(ee){const Te=this.quill.constructor.import(`modules/${ee}`);return this.modules[ee]=new Te(this.quill,this.options.modules[ee]||{}),this.modules[ee]}}return He})(),Us=He=>He.parentElement||He.getRootNode().host||null,Ml=He=>{const oe=He.getBoundingClientRect(),ee="offsetWidth"in He&&Math.abs(oe.width)/He.offsetWidth||1,Te="offsetHeight"in He&&Math.abs(oe.height)/He.offsetHeight||1;return{top:oe.top,right:oe.left+He.clientWidth*ee,bottom:oe.top+He.clientHeight*Te,left:oe.left}},rc=He=>{const oe=parseInt(He,10);return Number.isNaN(oe)?0:oe},Xl=(He,oe,ee,Te,Le,ot)=>He<ee&&oe>Te?0:He<ee?-(ee-He+Le):oe>Te?oe-He>Te-ee?He+Le-ee:oe-Te+ot:0,xc=["block","break","cursor","inline","scroll","text"],Ka=ur("quill"),Ec=new Ge.Registry;Ge.ParentBlot.uiClass="ql-ui";class ri{static DEFAULTS={bounds:null,modules:{clipboard:!0,keyboard:!0,history:!0,uploader:!0},placeholder:"",readOnly:!1,registry:Ec,theme:"default"};static events=pr.events;static sources=pr.sources;static version="2.0.2";static imports={delta:dt,parchment:Ge,"core/module":Il,"core/theme":Al};static debug(oe){!0===oe&&(oe="log"),ur.level(oe)}static find(oe){let ee=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Qr.get(oe)||Ec.find(oe,ee)}static import(oe){return null==this.imports[oe]&&Ka.error(`Cannot import ${oe}. Are you sure it was registered?`),this.imports[oe]}static register(){if("string"!=typeof(arguments.length<=0?void 0:arguments[0])){const oe=arguments.length<=0?void 0:arguments[0],ee=!(arguments.length<=1||!arguments[1]),Te="attrName"in oe?oe.attrName:oe.blotName;"string"==typeof Te?this.register(`formats/${Te}`,oe,ee):Object.keys(oe).forEach(Le=>{this.register(Le,oe[Le],ee)})}else{const oe=arguments.length<=0?void 0:arguments[0],ee=arguments.length<=1?void 0:arguments[1];null!=this.imports[oe]&&!(!(arguments.length<=2)&&arguments[2])&&Ka.warn(`Overwriting ${oe} with`,ee),this.imports[oe]=ee,(oe.startsWith("blots/")||oe.startsWith("formats/"))&&ee&&"boolean"!=typeof ee&&"abstract"!==ee.blotName&&Ec.register(ee),"function"==typeof ee.register&&ee.register(Ec)}}constructor(oe){if(this.options=function Ia(He,oe){const ee=Xc(He);if(!ee)throw new Error("Invalid Quill container");const Le=oe.theme&&oe.theme!==ri.DEFAULTS.theme?ri.import(`themes/${oe.theme}`):Al;if(!Le)throw new Error(`Invalid theme ${oe.theme}. Did you register it?`);const{modules:ot,...gt}=ri.DEFAULTS,{modules:Lt,...On}=Le.DEFAULTS;let Yt=sl(oe.modules);null!=Yt&&Yt.toolbar&&Yt.toolbar.constructor!==Object&&(Yt={...Yt,toolbar:{container:Yt.toolbar}});const mr=ze({},sl(ot),sl(Lt),Yt),Sr={...gt,...ta(On),...ta(oe)};let Qo=oe.registry;return Qo?oe.formats&&Ka.warn('Ignoring "formats" option because "registry" is specified'):Qo=oe.formats?((He,oe,ee)=>{const Te=new Ge.Registry;return xc.forEach(Le=>{const ot=oe.query(Le);ot&&Te.register(ot)}),He.forEach(Le=>{let ot=oe.query(Le);ot||ee.error(`Cannot register "${Le}" specified in "formats" config. Are you sure it was registered?`);let gt=0;for(;ot;)if(Te.register(ot),ot="blotName"in ot?ot.requiredContainer??null:null,gt+=1,gt>100){ee.error(`Cycle detected in registering blot requiredContainer: "${Le}"`);break}}),Te})(oe.formats,Sr.registry,Ka):Sr.registry,{...Sr,registry:Qo,container:ee,theme:Le,modules:Object.entries(mr).reduce((Ur,Oo)=>{let[ia,zs]=Oo;if(!zs)return Ur;const ha=ri.import(`modules/${ia}`);return null==ha?(Ka.error(`Cannot load ${ia} module. Are you sure you registered it?`),Ur):{...Ur,[ia]:ze({},ha.DEFAULTS||{},zs)}},{}),bounds:Xc(Sr.bounds)}}(oe,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),this.container=this.options.container,null==this.container)return void Ka.error("Invalid Quill container",oe);this.options.debug&&ri.debug(this.options.debug);const Te=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",Qr.set(this.container,this),this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.emitter=new pr;const Le=Ge.ScrollBlot.blotName,ot=this.options.registry.query(Le);if(!ot||!("blotName"in ot))throw new Error(`Cannot initialize Quill without "${Le}" blot`);if(this.scroll=new ot(this.options.registry,this.root,{emitter:this.emitter}),this.editor=new qr(this.scroll),this.selection=new ol(this.scroll,this.emitter),this.composition=new Hs(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.uploader=this.theme.addModule("uploader"),this.theme.addModule("input"),this.theme.addModule("uiNode"),this.theme.init(),this.emitter.on(pr.events.EDITOR_CHANGE,gt=>{gt===pr.events.TEXT_CHANGE&&this.root.classList.toggle("ql-blank",this.editor.isBlank())}),this.emitter.on(pr.events.SCROLL_UPDATE,(gt,Lt)=>{const On=this.selection.lastRange,[Yt]=this.selection.getRange(),mr=On&&Yt?{oldRange:On,newRange:Yt}:void 0;ns.call(this,()=>this.editor.update(null,Lt,mr),gt)}),this.emitter.on(pr.events.SCROLL_EMBED_UPDATE,(gt,Lt)=>{const On=this.selection.lastRange,[Yt]=this.selection.getRange(),mr=On&&Yt?{oldRange:On,newRange:Yt}:void 0;ns.call(this,()=>{const Sr=(new dt).retain(gt.offset(this)).retain({[gt.statics.blotName]:Lt});return this.editor.update(Sr,[],mr)},ri.sources.USER)}),Te){const gt=this.clipboard.convert({html:`${Te}<p><br></p>`,text:"\n"});this.setContents(gt)}this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable(),this.allowReadOnlyEdits=!1}addContainer(oe){let ee=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof oe){const Te=oe;(oe=document.createElement("div")).classList.add(Te)}return this.container.insertBefore(oe,ee),oe}blur(){this.selection.setRange(null)}deleteText(oe,ee,Te){return[oe,ee,,Te]=Mr(oe,ee,Te),ns.call(this,()=>this.editor.deleteText(oe,ee),Te,oe,-1*ee)}disable(){this.enable(!1)}editReadOnly(oe){this.allowReadOnlyEdits=!0;const ee=oe();return this.allowReadOnlyEdits=!1,ee}enable(){let oe=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(oe),this.container.classList.toggle("ql-disabled",!oe)}focus(){let oe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.selection.focus(),oe.preventScroll||this.scrollSelectionIntoView()}format(oe,ee){return ns.call(this,()=>{const Le=this.getSelection(!0);let ot=new dt;if(null==Le)return ot;if(this.scroll.query(oe,Ge.Scope.BLOCK))ot=this.editor.formatLine(Le.index,Le.length,{[oe]:ee});else{if(0===Le.length)return this.selection.format(oe,ee),ot;ot=this.editor.formatText(Le.index,Le.length,{[oe]:ee})}return this.setSelection(Le,pr.sources.SILENT),ot},arguments.length>2&&void 0!==arguments[2]?arguments[2]:pr.sources.API)}formatLine(oe,ee,Te,Le,ot){let gt;return[oe,ee,gt,ot]=Mr(oe,ee,Te,Le,ot),ns.call(this,()=>this.editor.formatLine(oe,ee,gt),ot,oe,0)}formatText(oe,ee,Te,Le,ot){let gt;return[oe,ee,gt,ot]=Mr(oe,ee,Te,Le,ot),ns.call(this,()=>this.editor.formatText(oe,ee,gt),ot,oe,0)}getBounds(oe){let Te=null;if(Te="number"==typeof oe?this.selection.getBounds(oe,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0):this.selection.getBounds(oe.index,oe.length),!Te)return null;const Le=this.container.getBoundingClientRect();return{bottom:Te.bottom-Le.top,height:Te.height,left:Te.left-Le.left,right:Te.right-Le.left,top:Te.top-Le.top,width:Te.width}}getContents(){let oe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,ee=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-oe;return[oe,ee]=Mr(oe,ee),this.editor.getContents(oe,ee)}getFormat(){let oe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0);return"number"==typeof oe?this.editor.getFormat(oe,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0):this.editor.getFormat(oe.index,oe.length)}getIndex(oe){return oe.offset(this.scroll)}getLength(){return this.scroll.length()}getLeaf(oe){return this.scroll.leaf(oe)}getLine(oe){return this.scroll.line(oe)}getLines(){let oe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,ee=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof oe?this.scroll.lines(oe.index,oe.length):this.scroll.lines(oe,ee)}getModule(oe){return this.theme.modules[oe]}getSelection(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}getSemanticHTML(){let oe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,ee=arguments.length>1?arguments[1]:void 0;return"number"==typeof oe&&(ee=ee??this.getLength()-oe),[oe,ee]=Mr(oe,ee),this.editor.getHTML(oe,ee)}getText(){let oe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,ee=arguments.length>1?arguments[1]:void 0;return"number"==typeof oe&&(ee=ee??this.getLength()-oe),[oe,ee]=Mr(oe,ee),this.editor.getText(oe,ee)}hasFocus(){return this.selection.hasFocus()}insertEmbed(oe,ee,Te){return ns.call(this,()=>this.editor.insertEmbed(oe,ee,Te),arguments.length>3&&void 0!==arguments[3]?arguments[3]:ri.sources.API,oe)}insertText(oe,ee,Te,Le,ot){let gt;return[oe,,gt,ot]=Mr(oe,0,Te,Le,ot),ns.call(this,()=>this.editor.insertText(oe,ee,gt),ot,oe,ee.length)}isEnabled(){return this.scroll.isEnabled()}off(){return this.emitter.off(...arguments)}on(){return this.emitter.on(...arguments)}once(){return this.emitter.once(...arguments)}removeFormat(oe,ee,Te){return[oe,ee,,Te]=Mr(oe,ee,Te),ns.call(this,()=>this.editor.removeFormat(oe,ee),Te,oe)}scrollRectIntoView(oe){((He,oe)=>{const ee=He.ownerDocument;let Te=oe,Le=He;for(;Le;){const ot=Le===ee.body,gt=ot?{top:0,right:window.visualViewport?.width??ee.documentElement.clientWidth,bottom:window.visualViewport?.height??ee.documentElement.clientHeight,left:0}:Ml(Le),Lt=getComputedStyle(Le),On=Xl(Te.left,Te.right,gt.left,gt.right,rc(Lt.scrollPaddingLeft),rc(Lt.scrollPaddingRight)),Yt=Xl(Te.top,Te.bottom,gt.top,gt.bottom,rc(Lt.scrollPaddingTop),rc(Lt.scrollPaddingBottom));if(On||Yt)if(ot)ee.defaultView?.scrollBy(On,Yt);else{const{scrollLeft:mr,scrollTop:Sr}=Le;Yt&&(Le.scrollTop+=Yt),On&&(Le.scrollLeft+=On);const Qo=Le.scrollLeft-mr,Ur=Le.scrollTop-Sr;Te={left:Te.left-Qo,top:Te.top-Ur,right:Te.right-Qo,bottom:Te.bottom-Ur}}Le=ot||"fixed"===Lt.position?null:Us(Le)}})(this.root,oe)}scrollIntoView(){console.warn("Quill#scrollIntoView() has been deprecated and will be removed in the near future. Please use Quill#scrollSelectionIntoView() instead."),this.scrollSelectionIntoView()}scrollSelectionIntoView(){const oe=this.selection.lastRange,ee=oe&&this.selection.getBounds(oe.index,oe.length);ee&&this.scrollRectIntoView(ee)}setContents(oe){return ns.call(this,()=>{oe=new dt(oe);const Te=this.getLength(),Le=this.editor.deleteText(0,Te),ot=this.editor.insertContents(0,oe),gt=this.editor.deleteText(this.getLength()-1,1);return Le.compose(ot).compose(gt)},arguments.length>1&&void 0!==arguments[1]?arguments[1]:pr.sources.API)}setSelection(oe,ee,Te){null==oe?this.selection.setRange(null,ee||ri.sources.API):([oe,ee,,Te]=Mr(oe,ee,Te),this.selection.setRange(new Xo(Math.max(0,oe),ee),Te),Te!==pr.sources.SILENT&&this.scrollSelectionIntoView())}setText(oe){let ee=arguments.length>1&&void 0!==arguments[1]?arguments[1]:pr.sources.API;const Te=(new dt).insert(oe);return this.setContents(Te,ee)}update(){let oe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:pr.sources.USER;const ee=this.scroll.update(oe);return this.selection.update(oe),ee}updateContents(oe){return ns.call(this,()=>(oe=new dt(oe),this.editor.applyDelta(oe)),arguments.length>1&&void 0!==arguments[1]?arguments[1]:pr.sources.API,!0)}}function Xc(He){return"string"==typeof He?document.querySelector(He):He}function sl(He){return Object.entries(He??{}).reduce((oe,ee)=>{let[Te,Le]=ee;return{...oe,[Te]:!0===Le?{}:Le}},{})}function ta(He){return Object.fromEntries(Object.entries(He).filter(oe=>void 0!==oe[1]))}function ns(He,oe,ee,Te){if(!this.isEnabled()&&oe===pr.sources.USER&&!this.allowReadOnlyEdits)return new dt;let Le=null==ee?null:this.getSelection();const ot=this.editor.delta,gt=He();if(null!=Le&&(!0===ee&&(ee=Le.index),null==Te?Le=Dc(Le,gt,oe):0!==Te&&(Le=Dc(Le,ee,Te,oe)),this.setSelection(Le,pr.sources.SILENT)),gt.length()>0){const Lt=[pr.events.TEXT_CHANGE,gt,ot,oe];this.emitter.emit(pr.events.EDITOR_CHANGE,...Lt),oe!==pr.sources.SILENT&&this.emitter.emit(...Lt)}return gt}function Mr(He,oe,ee,Te,Le){let ot={};return"number"==typeof He.index&&"number"==typeof He.length?"number"!=typeof oe?(Le=Te,Te=ee,ee=oe,oe=He.length,He=He.index):(oe=He.length,He=He.index):"number"!=typeof oe&&(Le=Te,Te=ee,ee=oe,oe=0),"object"==typeof ee?(ot=ee,Le=Te):"string"==typeof ee&&(null!=Te?ot[ee]=Te:Le=ee),[He,oe,ot,Le=Le||pr.sources.API]}function Dc(He,oe,ee,Te){const Le="number"==typeof ee?ee:0;if(null==He)return null;let ot,gt;return[ot,gt]=[He.index,He.index+He.length].map(oe&&"function"==typeof oe.transformPosition?Lt=>oe.transformPosition(Lt,Te!==pr.sources.USER):Lt=>Lt<oe||Lt===oe&&Te===pr.sources.USER?Lt:Le>=0?Lt+Le:Math.max(oe,Lt+Le)),new Xo(ot,gt-ot)}const At=class mc extends Ge.ContainerBlot{};function _n(He){return He instanceof Ot||He instanceof Vt}function $t(He){return"function"==typeof He.updateContent}function Mn(He,oe,ee){ee.reduce((Te,Le)=>{const ot=dt.Op.length(Le);let gt=Le.attributes||{};if(null!=Le.insert)if("string"==typeof Le.insert){He.insertAt(Te,Le.insert);const[On]=He.descendant(Ge.LeafBlot,Te),Yt=kn(On);gt=dt.AttributeMap.diff(Yt,gt)||{}}else if("object"==typeof Le.insert){const Lt=Object.keys(Le.insert)[0];if(null==Lt)return Te;if(He.insertAt(Te,Lt,Le.insert[Lt]),null!=He.scroll.query(Lt,Ge.Scope.INLINE)){const[Yt]=He.descendant(Ge.LeafBlot,Te),mr=kn(Yt);gt=dt.AttributeMap.diff(mr,gt)||{}}}return Object.keys(gt).forEach(Lt=>{He.formatAt(Te,ot,Lt,gt[Lt])}),Te+ot},oe)}const En=(()=>class He extends Ge.ScrollBlot{static blotName="scroll";static className="ql-editor";static tagName="DIV";static defaultChild=Ot;static allowedChildren=[Ot,Vt,At];constructor(ee,Te,Le){let{emitter:ot}=Le;super(ee,Te),this.emitter=ot,this.batch=!1,this.optimize(),this.enable(),this.domNode.addEventListener("dragstart",gt=>this.handleDragStart(gt))}batchStart(){Array.isArray(this.batch)||(this.batch=[])}batchEnd(){if(!this.batch)return;const ee=this.batch;this.batch=!1,this.update(ee)}emitMount(ee){this.emitter.emit(pr.events.SCROLL_BLOT_MOUNT,ee)}emitUnmount(ee){this.emitter.emit(pr.events.SCROLL_BLOT_UNMOUNT,ee)}emitEmbedUpdate(ee,Te){this.emitter.emit(pr.events.SCROLL_EMBED_UPDATE,ee,Te)}deleteAt(ee,Te){const[Le,ot]=this.line(ee),[gt]=this.line(ee+Te);if(super.deleteAt(ee,Te),null!=gt&&Le!==gt&&ot>0){if(Le instanceof Vt||gt instanceof Vt)return void this.optimize();Le.moveChildren(gt,gt.children.head instanceof Hn.A?null:gt.children.head),Le.remove()}this.optimize()}enable(){this.domNode.setAttribute("contenteditable",arguments.length>0&&void 0!==arguments[0]&&!arguments[0]?"false":"true")}formatAt(ee,Te,Le,ot){super.formatAt(ee,Te,Le,ot),this.optimize()}insertAt(ee,Te,Le){if(ee>=this.length())if(null==Le||null==this.scroll.query(Te,Ge.Scope.BLOCK)){const ot=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(ot),null==Le&&Te.endsWith("\n")?ot.insertAt(0,Te.slice(0,-1),Le):ot.insertAt(0,Te,Le)}else{const ot=this.scroll.create(Te,Le);this.appendChild(ot)}else super.insertAt(ee,Te,Le);this.optimize()}insertBefore(ee,Te){if(ee.statics.scope===Ge.Scope.INLINE_BLOT){const Le=this.scroll.create(this.statics.defaultChild.blotName);Le.appendChild(ee),super.insertBefore(Le,Te)}else super.insertBefore(ee,Te)}insertContents(ee,Te){const Le=this.deltaToRenderBlocks(Te.concat((new dt).insert("\n"))),ot=Le.pop();if(null==ot)return;this.batchStart();const gt=Le.shift();if(gt){const Yt="block"===gt.type&&(0===gt.delta.length()||!this.descendant(Vt,ee)[0]&&ee<this.length()),mr="block"===gt.type?gt.delta:(new dt).insert({[gt.key]:gt.value});Mn(this,ee,mr);const Sr="block"===gt.type?1:0,Qo=ee+mr.length()+Sr;Yt&&this.insertAt(Qo-1,"\n");const Ur=kn(this.line(ee)[0]),Oo=dt.AttributeMap.diff(Ur,gt.attributes)||{};Object.keys(Oo).forEach(ia=>{this.formatAt(Qo-1,1,ia,Oo[ia])}),ee=Qo}let[Lt,On]=this.children.find(ee);Le.length&&(Lt&&(Lt=Lt.split(On),On=0),Le.forEach(Yt=>{if("block"===Yt.type)Mn(this.createBlock(Yt.attributes,Lt||void 0),0,Yt.delta);else{const mr=this.create(Yt.key,Yt.value);this.insertBefore(mr,Lt||void 0),Object.keys(Yt.attributes).forEach(Sr=>{mr.format(Sr,Yt.attributes[Sr])})}})),"block"===ot.type&&ot.delta.length()&&Mn(this,Lt?Lt.offset(Lt.scroll)+On:this.length(),ot.delta),this.batchEnd(),this.optimize()}isEnabled(){return"true"===this.domNode.getAttribute("contenteditable")}leaf(ee){const Te=this.path(ee).pop();if(!Te)return[null,-1];const[Le,ot]=Te;return Le instanceof Ge.LeafBlot?[Le,ot]:[null,-1]}line(ee){return ee===this.length()?this.line(ee-1):this.descendant(_n,ee)}lines(){const Le=(ot,gt,Lt)=>{let On=[],Yt=Lt;return ot.children.forEachAt(gt,Lt,(mr,Sr,Qo)=>{_n(mr)?On.push(mr):mr instanceof Ge.ContainerBlot&&(On=On.concat(Le(mr,Sr,Yt))),Yt-=Qo}),On};return Le(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}optimize(){let ee=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],Te=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.batch||(super.optimize(ee,Te),ee.length>0&&this.emitter.emit(pr.events.SCROLL_OPTIMIZE,ee,Te))}path(ee){return super.path(ee).slice(1)}remove(){}update(ee){if(this.batch)return void(Array.isArray(ee)&&(this.batch=this.batch.concat(ee)));let Te=pr.sources.USER;"string"==typeof ee&&(Te=ee),Array.isArray(ee)||(ee=this.observer.takeRecords()),(ee=ee.filter(Le=>{let{target:ot}=Le;const gt=this.find(ot,!0);return gt&&!$t(gt)})).length>0&&this.emitter.emit(pr.events.SCROLL_BEFORE_UPDATE,Te,ee),super.update(ee.concat([])),ee.length>0&&this.emitter.emit(pr.events.SCROLL_UPDATE,Te,ee)}updateEmbedAt(ee,Te,Le){const[ot]=this.descendant(gt=>gt instanceof Vt,ee);ot&&ot.statics.blotName===Te&&$t(ot)&&ot.updateContent(Le)}handleDragStart(ee){ee.preventDefault()}deltaToRenderBlocks(ee){const Te=[];let Le=new dt;return ee.forEach(ot=>{const gt=ot?.insert;if(gt)if("string"==typeof gt){const Lt=gt.split("\n");Lt.slice(0,-1).forEach(Yt=>{Le.insert(Yt,ot.attributes),Te.push({type:"block",delta:Le,attributes:ot.attributes??{}}),Le=new dt});const On=Lt[Lt.length-1];On&&Le.insert(On,ot.attributes)}else{const Lt=Object.keys(gt)[0];if(!Lt)return;this.query(Lt,Ge.Scope.INLINE)?Le.push(ot):(Le.length()&&Te.push({type:"block",delta:Le,attributes:{}}),Le=new dt,Te.push({type:"blockEmbed",key:Lt,value:gt[Lt],attributes:ot.attributes??{}}))}}),Le.length()&&Te.push({type:"block",delta:Le,attributes:{}}),Te}createBlock(ee,Te){let Le;const ot={};Object.entries(ee).forEach(On=>{let[Yt,mr]=On;null!=this.query(Yt,Ge.Scope.BLOCK&Ge.Scope.BLOT)?Le=Yt:ot[Yt]=mr});const gt=this.create(Le||this.statics.defaultChild.blotName,Le?ee[Le]:void 0);this.insertBefore(gt,Te||void 0);const Lt=gt.length();return Object.entries(ot).forEach(On=>{let[Yt,mr]=On;gt.formatAt(0,Lt,Yt,mr)}),gt}})(),Oi={scope:Ge.Scope.BLOCK,whitelist:["right","center","justify"]},ir=new Ge.Attributor("align","align",Oi),or=new Ge.ClassAttributor("align","ql-align",Oi),Ui=new Ge.StyleAttributor("align","text-align",Oi);class yr extends Ge.StyleAttributor{value(oe){let ee=super.value(oe);return ee.startsWith("rgb(")?(ee=ee.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),`#${ee.split(",").map(Le=>`00${parseInt(Le,10).toString(16)}`.slice(-2)).join("")}`):ee}}const Wr=new Ge.ClassAttributor("color","ql-color",{scope:Ge.Scope.INLINE}),zo=new yr("color","color",{scope:Ge.Scope.INLINE}),ss=new Ge.ClassAttributor("background","ql-bg",{scope:Ge.Scope.INLINE}),Ho=new yr("background","background-color",{scope:Ge.Scope.INLINE});class Ps extends At{static create(oe){const ee=super.create(oe);return ee.setAttribute("spellcheck","false"),ee}code(oe,ee){return this.children.map(Te=>Te.length()<=1?"":Te.domNode.innerText).join("\n").slice(oe,oe+ee)}html(oe,ee){return`<pre>\n${(0,An.X)(this.code(oe,ee))}\n</pre>`}}let bi=(()=>class He extends Ot{static TAB="  ";static register(){ri.register(Ps)}})(),go=(()=>{class He extends Gt.A{}return He.blotName="code",He.tagName="CODE",He})();bi.blotName="code-block",bi.className="ql-code-block",bi.tagName="DIV",Ps.blotName="code-block-container",Ps.className="ql-code-block-container",Ps.tagName="DIV",Ps.allowedChildren=[bi],bi.allowedChildren=[An.A,Hn.A,Ii],bi.requiredContainer=Ps;const Aa={scope:Ge.Scope.BLOCK,whitelist:["rtl"]},Bs=new Ge.Attributor("direction","dir",Aa),oo=new Ge.ClassAttributor("direction","ql-direction",Aa),Kc=new Ge.StyleAttributor("direction","direction",Aa),kc={scope:Ge.Scope.INLINE,whitelist:["serif","monospace"]},fi=new Ge.ClassAttributor("font","ql-font",kc),al=new class _l extends Ge.StyleAttributor{value(oe){return super.value(oe).replace(/["']/g,"")}}("font","font-family",kc),Is=new Ge.ClassAttributor("size","ql-size",{scope:Ge.Scope.INLINE,whitelist:["small","large","huge"]}),ll=new Ge.StyleAttributor("size","font-size",{scope:Ge.Scope.INLINE,whitelist:["10px","18px","32px"]}),ku=ur("quill:keyboard"),cl=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey";class yl extends Il{static match(oe,ee){return!["altKey","ctrlKey","metaKey","shiftKey"].some(Te=>!!ee[Te]!==oe[Te]&&null!==ee[Te])&&(ee.key===oe.key||ee.key===oe.which)}constructor(oe,ee){super(oe,ee),this.bindings={},Object.keys(this.options.bindings).forEach(Te=>{this.options.bindings[Te]&&this.addBinding(this.options.bindings[Te])}),this.addBinding({key:"Enter",shiftKey:null},this.handleEnter),this.addBinding({key:"Enter",metaKey:null,ctrlKey:null,altKey:null},()=>{}),/Firefox/i.test(navigator.userAgent)?(this.addBinding({key:"Backspace"},{collapsed:!0},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0},this.handleDelete)):(this.addBinding({key:"Backspace"},{collapsed:!0,prefix:/^.?$/},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0,suffix:/^.?$/},this.handleDelete)),this.addBinding({key:"Backspace"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Delete"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Backspace",altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},this.handleBackspace),this.listen()}addBinding(oe){let ee=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Te=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const Le=function du(He){if("string"==typeof He||"number"==typeof He)He={key:He};else{if("object"!=typeof He)return null;He=(0,Dn.A)(He)}return He.shortKey&&(He[cl]=He.shortKey,delete He.shortKey),He}(oe);null!=Le?("function"==typeof ee&&(ee={handler:ee}),"function"==typeof Te&&(Te={handler:Te}),(Array.isArray(Le.key)?Le.key:[Le.key]).forEach(gt=>{const Lt={...Le,key:gt,...ee,...Te};this.bindings[Lt.key]=this.bindings[Lt.key]||[],this.bindings[Lt.key].push(Lt)})):ku.warn("Attempted to add invalid keyboard binding",Le)}listen(){this.quill.root.addEventListener("keydown",oe=>{if(oe.defaultPrevented||oe.isComposing||229===oe.keyCode&&("Enter"===oe.key||"Backspace"===oe.key))return;const Le=(this.bindings[oe.key]||[]).concat(this.bindings[oe.which]||[]).filter(ha=>yl.match(oe,ha));if(0===Le.length)return;const ot=ri.find(oe.target,!0);if(ot&&ot.scroll!==this.quill.scroll)return;const gt=this.quill.getSelection();if(null==gt||!this.quill.hasFocus())return;const[Lt,On]=this.quill.getLine(gt.index),[Yt,mr]=this.quill.getLeaf(gt.index),[Sr,Qo]=0===gt.length?[Yt,mr]:this.quill.getLeaf(gt.index+gt.length),Ur=Yt instanceof Ge.TextBlot?Yt.value().slice(0,mr):"",Oo=Sr instanceof Ge.TextBlot?Sr.value().slice(Qo):"",ia={collapsed:0===gt.length,empty:0===gt.length&&Lt.length()<=1,format:this.quill.getFormat(gt),line:Lt,offset:On,prefix:Ur,suffix:Oo,event:oe};Le.some(ha=>{if(null!=ha.collapsed&&ha.collapsed!==ia.collapsed||null!=ha.empty&&ha.empty!==ia.empty||null!=ha.offset&&ha.offset!==ia.offset)return!1;if(Array.isArray(ha.format)){if(ha.format.every($a=>null==ia.format[$a]))return!1}else if("object"==typeof ha.format&&!Object.keys(ha.format).every($a=>!0===ha.format[$a]?null!=ia.format[$a]:!1===ha.format[$a]?null==ia.format[$a]:(0,wt.A)(ha.format[$a],ia.format[$a])))return!1;return!(null!=ha.prefix&&!ha.prefix.test(ia.prefix)||null!=ha.suffix&&!ha.suffix.test(ia.suffix))&&!0!==ha.handler.call(this,gt,ia,ha)})&&oe.preventDefault()})}handleBackspace(oe,ee){const Te=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(ee.prefix)?2:1;if(0===oe.index||this.quill.getLength()<=1)return;let Le={};const[ot]=this.quill.getLine(oe.index);let gt=(new dt).retain(oe.index-Te).delete(Te);if(0===ee.offset){const[Lt]=this.quill.getLine(oe.index-1);if(Lt&&!("block"===Lt.statics.blotName&&Lt.length()<=1)){const Yt=ot.formats(),mr=this.quill.getFormat(oe.index-1,1);if(Le=dt.AttributeMap.diff(Yt,mr)||{},Object.keys(Le).length>0){const Sr=(new dt).retain(oe.index+ot.length()-2).retain(1,Le);gt=gt.compose(Sr)}}}this.quill.updateContents(gt,ri.sources.USER),this.quill.focus()}handleDelete(oe,ee){const Te=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(ee.suffix)?2:1;if(oe.index>=this.quill.getLength()-Te)return;let Le={};const[ot]=this.quill.getLine(oe.index);let gt=(new dt).retain(oe.index).delete(Te);if(ee.offset>=ot.length()-1){const[Lt]=this.quill.getLine(oe.index+1);if(Lt){const On=ot.formats(),Yt=this.quill.getFormat(oe.index,1);Le=dt.AttributeMap.diff(On,Yt)||{},Object.keys(Le).length>0&&(gt=gt.retain(Lt.length()-1).retain(1,Le))}}this.quill.updateContents(gt,ri.sources.USER),this.quill.focus()}handleDeleteRange(oe){gc({range:oe,quill:this.quill}),this.quill.focus()}handleEnter(oe,ee){const Te=Object.keys(ee.format).reduce((ot,gt)=>(this.quill.scroll.query(gt,Ge.Scope.BLOCK)&&!Array.isArray(ee.format[gt])&&(ot[gt]=ee.format[gt]),ot),{}),Le=(new dt).retain(oe.index).delete(oe.length).insert("\n",Te);this.quill.updateContents(Le,ri.sources.USER),this.quill.setSelection(oe.index+1,ri.sources.SILENT),this.quill.focus()}}const na={bindings:{bold:Jr("bold"),italic:Jr("italic"),underline:Jr("underline"),indent:{key:"Tab",format:["blockquote","indent","list"],handler(He,oe){return!(!oe.collapsed||0===oe.offset)||(this.quill.format("indent","+1",ri.sources.USER),!1)}},outdent:{key:"Tab",shiftKey:!0,format:["blockquote","indent","list"],handler(He,oe){return!(!oe.collapsed||0===oe.offset)||(this.quill.format("indent","-1",ri.sources.USER),!1)}},"outdent backspace":{key:"Backspace",collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler(He,oe){null!=oe.format.indent?this.quill.format("indent","-1",ri.sources.USER):null!=oe.format.list&&this.quill.format("list",!1,ri.sources.USER)}},"indent code-block":Eo(!0),"outdent code-block":Eo(!1),"remove tab":{key:"Tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler(He){this.quill.deleteText(He.index-1,1,ri.sources.USER)}},tab:{key:"Tab",handler(He,oe){if(oe.format.table)return!0;this.quill.history.cutoff();const ee=(new dt).retain(He.index).delete(He.length).insert("\t");return this.quill.updateContents(ee,ri.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(He.index+1,ri.sources.SILENT),!1}},"blockquote empty enter":{key:"Enter",collapsed:!0,format:["blockquote"],empty:!0,handler(){this.quill.format("blockquote",!1,ri.sources.USER)}},"list empty enter":{key:"Enter",collapsed:!0,format:["list"],empty:!0,handler(He,oe){const ee={list:!1};oe.format.indent&&(ee.indent=!1),this.quill.formatLine(He.index,He.length,ee,ri.sources.USER)}},"checklist enter":{key:"Enter",collapsed:!0,format:{list:"checked"},handler(He){const[oe,ee]=this.quill.getLine(He.index),Te={...oe.formats(),list:"checked"},Le=(new dt).retain(He.index).insert("\n",Te).retain(oe.length()-ee-1).retain(1,{list:"unchecked"});this.quill.updateContents(Le,ri.sources.USER),this.quill.setSelection(He.index+1,ri.sources.SILENT),this.quill.scrollSelectionIntoView()}},"header enter":{key:"Enter",collapsed:!0,format:["header"],suffix:/^$/,handler(He,oe){const[ee,Te]=this.quill.getLine(He.index),Le=(new dt).retain(He.index).insert("\n",oe.format).retain(ee.length()-Te-1).retain(1,{header:null});this.quill.updateContents(Le,ri.sources.USER),this.quill.setSelection(He.index+1,ri.sources.SILENT),this.quill.scrollSelectionIntoView()}},"table backspace":{key:"Backspace",format:["table"],collapsed:!0,offset:0,handler(){}},"table delete":{key:"Delete",format:["table"],collapsed:!0,suffix:/^$/,handler(){}},"table enter":{key:"Enter",shiftKey:null,format:["table"],handler(He){const oe=this.quill.getModule("table");if(oe){const[ee,Te,Le,ot]=oe.getTable(He),gt=function Ic(He,oe,ee,Te){return null==oe.prev&&null==oe.next?null==ee.prev&&null==ee.next?0===Te?-1:1:null==ee.prev?-1:1:null==oe.prev?-1:null==oe.next?1:null}(0,Te,Le,ot);if(null==gt)return;let Lt=ee.offset();if(gt<0){const On=(new dt).retain(Lt).insert("\n");this.quill.updateContents(On,ri.sources.USER),this.quill.setSelection(He.index+1,He.length,ri.sources.SILENT)}else if(gt>0){Lt+=ee.length();const On=(new dt).retain(Lt).insert("\n");this.quill.updateContents(On,ri.sources.USER),this.quill.setSelection(Lt,ri.sources.USER)}}}},"table tab":{key:"Tab",shiftKey:null,format:["table"],handler(He,oe){const{event:ee,line:Te}=oe,Le=Te.offset(this.quill.scroll);this.quill.setSelection(ee.shiftKey?Le-1:Le+Te.length(),ri.sources.USER)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler(He,oe){if(null==this.quill.scroll.query("list"))return!0;const{length:ee}=oe.prefix,[Te,Le]=this.quill.getLine(He.index);if(Le>ee)return!0;let ot;switch(oe.prefix.trim()){case"[]":case"[ ]":ot="unchecked";break;case"[x]":ot="checked";break;case"-":case"*":ot="bullet";break;default:ot="ordered"}this.quill.insertText(He.index," ",ri.sources.USER),this.quill.history.cutoff();const gt=(new dt).retain(He.index-Le).delete(ee+1).retain(Te.length()-2-Le).retain(1,{list:ot});return this.quill.updateContents(gt,ri.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(He.index-ee,ri.sources.SILENT),!1}},"code exit":{key:"Enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler(He){const[oe,ee]=this.quill.getLine(He.index);let Te=2,Le=oe;for(;null!=Le&&Le.length()<=1&&Le.formats()["code-block"];)if(Le=Le.prev,Te-=1,Te<=0){const ot=(new dt).retain(He.index+oe.length()-ee-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(ot,ri.sources.USER),this.quill.setSelection(He.index-1,ri.sources.SILENT),!1}return!0}},"embed left":Ha("ArrowLeft",!1),"embed left shift":Ha("ArrowLeft",!0),"embed right":Ha("ArrowRight",!1),"embed right shift":Ha("ArrowRight",!0),"table down":uo(!1),"table up":uo(!0)}};function Eo(He){return{key:"Tab",shiftKey:!He,format:{"code-block":!0},handler(oe,ee){let{event:Te}=ee;const Le=this.quill.scroll.query("code-block"),{TAB:ot}=Le;if(0===oe.length&&!Te.shiftKey)return this.quill.insertText(oe.index,ot,ri.sources.USER),void this.quill.setSelection(oe.index+ot.length,ri.sources.SILENT);const gt=0===oe.length?this.quill.getLines(oe.index,1):this.quill.getLines(oe);let{index:Lt,length:On}=oe;gt.forEach((Yt,mr)=>{He?(Yt.insertAt(0,ot),0===mr?Lt+=ot.length:On+=ot.length):Yt.domNode.textContent.startsWith(ot)&&(Yt.deleteAt(0,ot.length),0===mr?Lt-=ot.length:On-=ot.length)}),this.quill.update(ri.sources.USER),this.quill.setSelection(Lt,On,ri.sources.SILENT)}}}function Ha(He,oe){return{key:He,shiftKey:oe,altKey:null,["ArrowLeft"===He?"prefix":"suffix"]:/^$/,handler(Te){let{index:Le}=Te;"ArrowRight"===He&&(Le+=Te.length+1);const[ot]=this.quill.getLeaf(Le);return!(ot instanceof Ge.EmbedBlot&&("ArrowLeft"===He?oe?this.quill.setSelection(Te.index-1,Te.length+1,ri.sources.USER):this.quill.setSelection(Te.index-1,ri.sources.USER):oe?this.quill.setSelection(Te.index,Te.length+1,ri.sources.USER):this.quill.setSelection(Te.index+Te.length+1,ri.sources.USER),1))}}}function Jr(He){return{key:He[0],shortKey:!0,handler(oe,ee){this.quill.format(He,!ee.format[He],ri.sources.USER)}}}function uo(He){return{key:He?"ArrowUp":"ArrowDown",collapsed:!0,format:["table"],handler(oe,ee){const Te=He?"prev":"next",Le=ee.line,ot=Le.parent[Te];if(null!=ot){if("table-row"===ot.statics.blotName){let gt=ot.children.head,Lt=Le;for(;null!=Lt.prev;)Lt=Lt.prev,gt=gt.next;const On=gt.offset(this.quill.scroll)+Math.min(ee.offset,gt.length()-1);this.quill.setSelection(On,0,ri.sources.USER)}}else{const gt=Le.table()[Te];null!=gt&&this.quill.setSelection(He?gt.offset(this.quill.scroll)+gt.length()-1:gt.offset(this.quill.scroll),0,ri.sources.USER)}return!1}}}function gc(He){let{quill:oe,range:ee}=He;const Te=oe.getLines(ee);let Le={};if(Te.length>1){const ot=Te[0].formats(),gt=Te[Te.length-1].formats();Le=dt.AttributeMap.diff(gt,ot)||{}}oe.deleteText(ee,ri.sources.USER),Object.keys(Le).length>0&&oe.formatLine(ee.index,1,Le,ri.sources.USER),oe.setSelection(ee.index,ri.sources.SILENT)}yl.DEFAULTS=na;const te=/font-weight:\s*normal/,he=["P","OL","UL"],$e=He=>He&&he.includes(He.tagName),oi=/\bmso-list:[^;]*ignore/i,ei=/\bmso-list:[^;]*\bl(\d+)/i,Ci=/\bmso-list:[^;]*\blevel(\d+)/i,Rr=[function ti(He){"urn:schemas-microsoft-com:office:word"===He.documentElement.getAttribute("xmlns:w")&&(He=>{const oe=Array.from(He.querySelectorAll("[style*=mso-list]")),ee=[],Te=[];oe.forEach(gt=>{(gt.getAttribute("style")||"").match(oi)?ee.push(gt):Te.push(gt)}),ee.forEach(gt=>gt.parentNode?.removeChild(gt));const Le=He.documentElement.innerHTML,ot=Te.map(gt=>((He,oe)=>{const ee=He.getAttribute("style"),Te=ee?.match(ei);if(!Te)return null;const Le=Number(Te[1]),ot=ee?.match(Ci),gt=ot?Number(ot[1]):1,Lt=new RegExp(`@list l${Le}:level${gt}\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)`,"i"),On=oe.match(Lt);return{id:Le,indent:gt,type:On&&"bullet"===On[1]?"bullet":"ordered",element:He}})(gt,Le)).filter(gt=>gt);for(;ot.length;){const gt=[];let Lt=ot.shift();for(;Lt;)gt.push(Lt),Lt=ot.length&&ot[0]?.element===Lt.element.nextElementSibling&&ot[0].id===Lt.id?ot.shift():null;const On=document.createElement("ul");gt.forEach(Sr=>{const Qo=document.createElement("li");Qo.setAttribute("data-list",Sr.type),Sr.indent>1&&Qo.setAttribute("class","ql-indent-"+(Sr.indent-1)),Qo.innerHTML=Sr.element.innerHTML,On.appendChild(Qo)});const Yt=gt[0]?.element,{parentNode:mr}=Yt??{};Yt&&mr?.replaceChild(On,Yt),gt.slice(1).forEach(Sr=>{let{element:Qo}=Sr;mr?.removeChild(Qo)})}})(He)},function an(He){He.querySelector('[id^="docs-internal-guid-"]')&&((He=>{Array.from(He.querySelectorAll('b[style*="font-weight"]')).filter(oe=>oe.getAttribute("style")?.match(te)).forEach(oe=>{const ee=He.createDocumentFragment();ee.append(...oe.childNodes),oe.parentNode?.replaceChild(ee,oe)})})(He),(He=>{Array.from(He.querySelectorAll("br")).filter(oe=>$e(oe.previousElementSibling)&&$e(oe.nextElementSibling)).forEach(oe=>{oe.parentNode?.removeChild(oe)})})(He))}],dr=ur("quill:clipboard"),Or=[[Node.TEXT_NODE,function Oe(He,oe,ee){let Te=He.data;if("O:P"===He.parentElement?.tagName)return oe.insert(Te.trim());if(!Rl(He)){if(0===Te.trim().length&&Te.includes("\n")&&!function Vs(He,oe){return He.previousElementSibling&&He.nextElementSibling&&!Qa(He.previousElementSibling,oe)&&!Qa(He.nextElementSibling,oe)}(He,ee))return oe;const Le=(ot,gt)=>{const Lt=gt.replace(/[^\u00a0]/g,"");return Lt.length<1&&ot?" ":Lt};Te=Te.replace(/\r\n/g," ").replace(/\n/g," "),Te=Te.replace(/\s\s+/g,Le.bind(Le,!0)),(null==He.previousSibling&&null!=He.parentElement&&Qa(He.parentElement,ee)||He.previousSibling instanceof Element&&Qa(He.previousSibling,ee))&&(Te=Te.replace(/^\s+/,Le.bind(Le,!1))),(null==He.nextSibling&&null!=He.parentElement&&Qa(He.parentElement,ee)||He.nextSibling instanceof Element&&Qa(He.nextSibling,ee))&&(Te=Te.replace(/\s+$/,Le.bind(Le,!1)))}return oe.insert(Te)}],[Node.TEXT_NODE,Ul],["br",function ts(He,oe){return oc(oe,"\n")||oe.insert("\n"),oe}],[Node.ELEMENT_NODE,Ul],[Node.ELEMENT_NODE,function Gr(He,oe,ee){const Te=ee.query(He);if(null==Te)return oe;if(Te.prototype instanceof Ge.EmbedBlot){const Le={},ot=Te.value(He);if(null!=ot)return Le[Te.blotName]=ot,(new dt).insert(Le,Te.formats(He,ee))}else if(Te.prototype instanceof Ge.BlockBlot&&!oc(oe,"\n")&&oe.insert("\n"),"blotName"in Te&&"formats"in Te&&"function"==typeof Te.formats)return $s(oe,Te.blotName,Te.formats(He,ee),ee);return oe}],[Node.ELEMENT_NODE,function Ys(He,oe,ee){const Te=Ge.Attributor.keys(He),Le=Ge.ClassAttributor.keys(He),ot=Ge.StyleAttributor.keys(He),gt={};return Te.concat(Le).concat(ot).forEach(Lt=>{let On=ee.query(Lt,Ge.Scope.ATTRIBUTE);null!=On&&(gt[On.attrName]=On.value(He),gt[On.attrName])||(On=Zo[Lt],null!=On&&(On.attrName===Lt||On.keyName===Lt)&&(gt[On.attrName]=On.value(He)||void 0),On=jr[Lt],null!=On&&(On.attrName===Lt||On.keyName===Lt)&&(On=jr[Lt],gt[On.attrName]=On.value(He)||void 0))}),Object.entries(gt).reduce((Lt,On)=>{let[Yt,mr]=On;return $s(Lt,Yt,mr,ee)},oe)}],[Node.ELEMENT_NODE,function Ft(He,oe,ee){const Te={},Le=He.style||{};return"italic"===Le.fontStyle&&(Te.italic=!0),"underline"===Le.textDecoration&&(Te.underline=!0),"line-through"===Le.textDecoration&&(Te.strike=!0),(Le.fontWeight?.startsWith("bold")||parseInt(Le.fontWeight,10)>=700)&&(Te.bold=!0),oe=Object.entries(Te).reduce((ot,gt)=>{let[Lt,On]=gt;return $s(ot,Lt,On,ee)},oe),parseFloat(Le.textIndent||0)>0?(new dt).insert("\t").concat(oe):oe}],["li",function Ma(He,oe,ee){const Te=ee.query(He);if(null==Te||"list"!==Te.blotName||!oc(oe,"\n"))return oe;let Le=-1,ot=He.parentNode;for(;null!=ot;)["OL","UL"].includes(ot.tagName)&&(Le+=1),ot=ot.parentNode;return Le<=0?oe:oe.reduce((gt,Lt)=>Lt.insert?Lt.attributes&&"number"==typeof Lt.attributes.indent?gt.push(Lt):gt.insert(Lt.insert,{indent:Le,...Lt.attributes||{}}):gt,new dt)}],["ol, ul",function Pa(He,oe,ee){let Le="OL"===He.tagName?"ordered":"bullet";const ot=He.getAttribute("data-checked");return ot&&(Le="true"===ot?"checked":"unchecked"),$s(oe,"list",Le,ee)}],["pre",function Js(He,oe,ee){const Te=ee.query("code-block");return $s(oe,"code-block",!Te||!("formats"in Te)||"function"!=typeof Te.formats||Te.formats(He,ee),ee)}],["tr",function me(He,oe,ee){const Te="TABLE"===He.parentElement?.tagName?He.parentElement:He.parentElement?.parentElement;return null!=Te?$s(oe,"table",Array.from(Te.querySelectorAll("tr")).indexOf(He)+1,ee):oe}],["b",po("bold")],["i",po("italic")],["strike",po("strike")],["style",function va(){return new dt}]],Zo=[ir,Bs].reduce((He,oe)=>(He[oe.keyName]=oe,He),{}),jr=[Ui,Ho,zo,Kc,al,ll].reduce((He,oe)=>(He[oe.keyName]=oe,He),{});let as=(()=>class He extends Il{static DEFAULTS={matchers:[]};constructor(ee,Te){super(ee,Te),this.quill.root.addEventListener("copy",Le=>this.onCaptureCopy(Le,!1)),this.quill.root.addEventListener("cut",Le=>this.onCaptureCopy(Le,!0)),this.quill.root.addEventListener("paste",this.onCapturePaste.bind(this)),this.matchers=[],Or.concat(this.options.matchers??[]).forEach(Le=>{let[ot,gt]=Le;this.addMatcher(ot,gt)})}addMatcher(ee,Te){this.matchers.push([ee,Te])}convert(ee){let{html:Te,text:Le}=ee,ot=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(ot[bi.blotName])return(new dt).insert(Le||"",{[bi.blotName]:ot[bi.blotName]});if(!Te)return(new dt).insert(Le||"",ot);const gt=this.convertHTML(Te);return oc(gt,"\n")&&(null==gt.ops[gt.ops.length-1].attributes||ot.table)?gt.compose((new dt).retain(gt.length()-1).delete(1)):gt}normalizeHTML(ee){(He=>{He.documentElement&&Rr.forEach(oe=>{oe(He)})})(ee)}convertHTML(ee){const Te=(new DOMParser).parseFromString(ee,"text/html");this.normalizeHTML(Te);const Le=Te.body,ot=new WeakMap,[gt,Lt]=this.prepareMatching(Le,ot);return gn(this.quill.scroll,Le,gt,Lt,ot)}dangerouslyPasteHTML(ee,Te){let Le=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ri.sources.API;if("string"==typeof ee){const ot=this.convert({html:ee,text:""});this.quill.setContents(ot,Te),this.quill.setSelection(0,ri.sources.SILENT)}else{const ot=this.convert({html:Te,text:""});this.quill.updateContents((new dt).retain(ee).concat(ot),Le),this.quill.setSelection(ee+ot.length(),ri.sources.SILENT)}}onCaptureCopy(ee){let Te=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(ee.defaultPrevented)return;ee.preventDefault();const[Le]=this.quill.selection.getRange();if(null==Le)return;const{html:ot,text:gt}=this.onCopy(Le,Te);ee.clipboardData?.setData("text/plain",gt),ee.clipboardData?.setData("text/html",ot),Te&&gc({range:Le,quill:this.quill})}normalizeURIList(ee){return ee.split(/\r?\n/).filter(Te=>"#"!==Te[0]).join("\n")}onCapturePaste(ee){if(ee.defaultPrevented||!this.quill.isEnabled())return;ee.preventDefault();const Te=this.quill.getSelection(!0);if(null==Te)return;const Le=ee.clipboardData?.getData("text/html");let ot=ee.clipboardData?.getData("text/plain");if(!Le&&!ot){const Lt=ee.clipboardData?.getData("text/uri-list");Lt&&(ot=this.normalizeURIList(Lt))}const gt=Array.from(ee.clipboardData?.files||[]);if(!Le&&gt.length>0)this.quill.uploader.upload(Te,gt);else{if(Le&&gt.length>0){const Lt=(new DOMParser).parseFromString(Le,"text/html");if(1===Lt.body.childElementCount&&"IMG"===Lt.body.firstElementChild?.tagName)return void this.quill.uploader.upload(Te,gt)}this.onPaste(Te,{html:Le,text:ot})}}onCopy(ee){const Te=this.quill.getText(ee);return{html:this.quill.getSemanticHTML(ee),text:Te}}onPaste(ee,Te){let{text:Le,html:ot}=Te;const gt=this.quill.getFormat(ee.index),Lt=this.convert({text:Le,html:ot},gt);dr.log("onPaste",Lt,{text:Le,html:ot});const On=(new dt).retain(ee.index).delete(ee.length).concat(Lt);this.quill.updateContents(On,ri.sources.USER),this.quill.setSelection(On.length()-ee.length,ri.sources.SILENT),this.quill.scrollSelectionIntoView()}prepareMatching(ee,Te){const Le=[],ot=[];return this.matchers.forEach(gt=>{const[Lt,On]=gt;switch(Lt){case Node.TEXT_NODE:ot.push(On);break;case Node.ELEMENT_NODE:Le.push(On);break;default:Array.from(ee.querySelectorAll(Lt)).forEach(Yt=>{Te.has(Yt)?Te.get(Yt)?.push(On):Te.set(Yt,[On])})}}),[Le,ot]}})();function $s(He,oe,ee,Te){return Te.query(oe)?He.reduce((Le,ot)=>ot.insert?ot.attributes&&ot.attributes[oe]?Le.push(ot):Le.insert(ot.insert,{...ee?{[oe]:ee}:{},...ot.attributes}):Le,new dt):He}function oc(He,oe){let ee="";for(let Te=He.ops.length-1;Te>=0&&ee.length<oe.length;--Te){const Le=He.ops[Te];if("string"!=typeof Le.insert)break;ee=Le.insert+ee}return ee.slice(-1*oe.length)===oe}function Qa(He,oe){if(!(He instanceof Element))return!1;const ee=oe.query(He);return!(ee&&ee.prototype instanceof Ge.EmbedBlot)&&["address","article","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","iframe","li","main","nav","ol","output","p","pre","section","table","td","tr","ul","video"].includes(He.tagName.toLowerCase())}const ga=new WeakMap;function Rl(He){return null!=He&&(ga.has(He)||ga.set(He,"PRE"===He.tagName||Rl(He.parentNode)),ga.get(He))}function gn(He,oe,ee,Te,Le){return oe.nodeType===oe.TEXT_NODE?Te.reduce((ot,gt)=>gt(oe,ot,He),new dt):oe.nodeType===oe.ELEMENT_NODE?Array.from(oe.childNodes||[]).reduce((ot,gt)=>{let Lt=gn(He,gt,ee,Te,Le);return gt.nodeType===oe.ELEMENT_NODE&&(Lt=ee.reduce((On,Yt)=>Yt(gt,On,He),Lt),Lt=(Le.get(gt)||[]).reduce((On,Yt)=>Yt(gt,On,He),Lt)),ot.concat(Lt)},new dt):new dt}function po(He){return(oe,ee,Te)=>$s(ee,He,!0,Te)}function Ul(He,oe,ee){if(!oc(oe,"\n")){if(Qa(He,ee)&&(He.childNodes.length>0||He instanceof HTMLParagraphElement))return oe.insert("\n");if(oe.length()>0&&He.nextSibling){let Te=He.nextSibling;for(;null!=Te;){if(Qa(Te,ee))return oe.insert("\n");const Le=ee.query(Te);if(Le&&Le.prototype instanceof Vt)return oe.insert("\n");Te=Te.firstChild}}}return oe}let Je=(()=>class He extends Il{static DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};lastRecorded=0;ignoreChange=!1;stack={undo:[],redo:[]};currentRange=null;constructor(ee,Te){super(ee,Te),this.quill.on(ri.events.EDITOR_CHANGE,(Le,ot,gt,Lt)=>{Le===ri.events.SELECTION_CHANGE?ot&&Lt!==ri.sources.SILENT&&(this.currentRange=ot):Le===ri.events.TEXT_CHANGE&&(this.ignoreChange||(this.options.userOnly&&Lt!==ri.sources.USER?this.transform(ot):this.record(ot,gt)),this.currentRange=Sn(this.currentRange,ot))}),this.quill.keyboard.addBinding({key:"z",shortKey:!0},this.undo.bind(this)),this.quill.keyboard.addBinding({key:["z","Z"],shortKey:!0,shiftKey:!0},this.redo.bind(this)),/Win/i.test(navigator.platform)&&this.quill.keyboard.addBinding({key:"y",shortKey:!0},this.redo.bind(this)),this.quill.root.addEventListener("beforeinput",Le=>{"historyUndo"===Le.inputType?(this.undo(),Le.preventDefault()):"historyRedo"===Le.inputType&&(this.redo(),Le.preventDefault())})}change(ee,Te){if(0===this.stack[ee].length)return;const Le=this.stack[ee].pop();if(!Le)return;const ot=this.quill.getContents(),gt=Le.delta.invert(ot);this.stack[Te].push({delta:gt,range:Sn(Le.range,gt)}),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(Le.delta,ri.sources.USER),this.ignoreChange=!1,this.restoreSelection(Le)}clear(){this.stack={undo:[],redo:[]}}cutoff(){this.lastRecorded=0}record(ee,Te){if(0===ee.ops.length)return;this.stack.redo=[];let Le=ee.invert(Te),ot=this.currentRange;const gt=Date.now();if(this.lastRecorded+this.options.delay>gt&&this.stack.undo.length>0){const Lt=this.stack.undo.pop();Lt&&(Le=Le.compose(Lt.delta),ot=Lt.range)}else this.lastRecorded=gt;0!==Le.length()&&(this.stack.undo.push({delta:Le,range:ot}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}redo(){this.change("redo","undo")}transform(ee){yt(this.stack.undo,ee),yt(this.stack.redo,ee)}undo(){this.change("undo","redo")}restoreSelection(ee){if(ee.range)this.quill.setSelection(ee.range,ri.sources.USER);else{const Te=function yn(He,oe){const ee=oe.reduce((Le,ot)=>Le+(ot.delete||0),0);let Te=oe.length()-ee;return function Bt(He,oe){const ee=oe.ops[oe.ops.length-1];return null!=ee&&(null!=ee.insert?"string"==typeof ee.insert&&ee.insert.endsWith("\n"):null!=ee.attributes&&Object.keys(ee.attributes).some(Te=>null!=He.query(Te,Ge.Scope.BLOCK)))}(He,oe)&&(Te-=1),Te}(this.quill.scroll,ee.delta);this.quill.setSelection(Te,ri.sources.USER)}}})();function yt(He,oe){let ee=oe;for(let Te=He.length-1;Te>=0;Te-=1){const Le=He[Te];He[Te]={delta:ee.transform(Le.delta,!0),range:Le.range&&Sn(Le.range,ee)},ee=Le.delta.transform(ee),0===He[Te].delta.length()&&He.splice(Te,1)}}function Sn(He,oe){if(!He)return He;const ee=oe.transformPosition(He.index);return{index:ee,length:oe.transformPosition(He.index+He.length)-ee}}const ai=(()=>{class He extends Il{constructor(ee,Te){super(ee,Te),ee.root.addEventListener("drop",Le=>{Le.preventDefault();let ot=null;if(document.caretRangeFromPoint)ot=document.caretRangeFromPoint(Le.clientX,Le.clientY);else if(document.caretPositionFromPoint){const Lt=document.caretPositionFromPoint(Le.clientX,Le.clientY);ot=document.createRange(),ot.setStart(Lt.offsetNode,Lt.offset),ot.setEnd(Lt.offsetNode,Lt.offset)}const gt=ot&&ee.selection.normalizeNative(ot);if(gt){const Lt=ee.selection.normalizedToRange(gt);Le.dataTransfer?.files&&this.upload(Lt,Le.dataTransfer.files)}})}upload(ee,Te){const Le=[];Array.from(Te).forEach(ot=>{ot&&this.options.mimetypes?.includes(ot.type)&&Le.push(ot)}),Le.length>0&&this.options.handler.call(this,ee,Le)}}return He.DEFAULTS={mimetypes:["image/png","image/jpeg"],handler(oe,ee){if(!this.quill.scroll.query("image"))return;const Te=ee.map(Le=>new Promise(ot=>{const gt=new FileReader;gt.onload=()=>{ot(gt.result)},gt.readAsDataURL(Le)}));Promise.all(Te).then(Le=>{const ot=Le.reduce((gt,Lt)=>gt.insert({image:Lt}),(new dt).retain(oe.index).delete(oe.length));this.quill.updateContents(ot,pr.sources.USER),this.quill.setSelection(oe.index+Le.length,pr.sources.SILENT)})}},He})(),br=["insertText","insertReplacementText"],ho=/Mac/i.test(navigator.platform);ri.register({"blots/block":Ot,"blots/block/embed":Vt,"blots/break":Hn.A,"blots/container":At,"blots/cursor":Ii,"blots/embed":_s,"blots/inline":Gt.A,"blots/scroll":En,"blots/text":An.A,"modules/clipboard":as,"modules/history":Je,"modules/keyboard":yl,"modules/uploader":ai,"modules/input":class Kn extends Il{constructor(oe,ee){super(oe,ee),oe.root.addEventListener("beforeinput",Te=>{this.handleBeforeInput(Te)}),/Android/i.test(navigator.userAgent)||oe.on(ri.events.COMPOSITION_BEFORE_START,()=>{this.handleCompositionStart()})}deleteRange(oe){gc({range:oe,quill:this.quill})}replaceText(oe){let ee=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(0===oe.length)return!1;if(ee){const Te=this.quill.getFormat(oe.index,1);this.deleteRange(oe),this.quill.updateContents((new dt).retain(oe.index).insert(ee,Te),ri.sources.USER)}else this.deleteRange(oe);return this.quill.setSelection(oe.index+ee.length,0,ri.sources.SILENT),!0}handleBeforeInput(oe){if(this.quill.composition.isComposing||oe.defaultPrevented||!br.includes(oe.inputType))return;const ee=oe.getTargetRanges?oe.getTargetRanges()[0]:null;if(!ee||!0===ee.collapsed)return;const Te=function xr(He){return"string"==typeof He.data?He.data:He.dataTransfer?.types.includes("text/plain")?He.dataTransfer.getData("text/plain"):null}(oe);if(null==Te)return;const Le=this.quill.selection.normalizeNative(ee),ot=Le?this.quill.selection.normalizedToRange(Le):null;ot&&this.replaceText(ot,Te)&&oe.preventDefault()}handleCompositionStart(){const oe=this.quill.getSelection();oe&&this.replaceText(oe)}},"modules/uiNode":class Ts extends Il{isListening=!1;selectionChangeDeadline=0;constructor(oe,ee){super(oe,ee),this.handleArrowKeys(),this.handleNavigationShortcuts()}handleArrowKeys(){this.quill.keyboard.addBinding({key:["ArrowLeft","ArrowRight"],offset:0,shiftKey:null,handler(oe,ee){let{line:Te,event:Le}=ee;if(!(Te instanceof Ge.ParentBlot&&Te.uiNode))return!0;const ot="rtl"===getComputedStyle(Te.domNode).direction;return!!(ot&&"ArrowRight"!==Le.key||!ot&&"ArrowLeft"!==Le.key)||(this.quill.setSelection(oe.index-1,oe.length+(Le.shiftKey?1:0),ri.sources.USER),!1)}})}handleNavigationShortcuts(){this.quill.root.addEventListener("keydown",oe=>{var He;!oe.defaultPrevented&&("ArrowLeft"===(He=oe).key||"ArrowRight"===He.key||"ArrowUp"===He.key||"ArrowDown"===He.key||"Home"===He.key||ho&&"a"===He.key&&!0===He.ctrlKey)&&this.ensureListeningToSelectionChange()})}ensureListeningToSelectionChange(){this.selectionChangeDeadline=Date.now()+100,this.isListening||(this.isListening=!0,document.addEventListener("selectionchange",()=>{this.isListening=!1,Date.now()<=this.selectionChangeDeadline&&this.handleSelectionChange()},{once:!0}))}handleSelectionChange(){const oe=document.getSelection();if(!oe)return;const ee=oe.getRangeAt(0);if(!0!==ee.collapsed||0!==ee.startOffset)return;const Te=this.quill.scroll.find(ee.startContainer);if(!(Te instanceof Ge.ParentBlot&&Te.uiNode))return;const Le=document.createRange();Le.setStartAfter(Te.uiNode),Le.setEndAfter(Te.uiNode),oe.removeAllRanges(),oe.addRange(Le)}}});const pa=ri,Qc=new class ul extends Ge.ClassAttributor{add(oe,ee){let Te=0;if("+1"===ee||"-1"===ee){const Le=this.value(oe)||0;Te="+1"===ee?Le+1:Le-1}else"number"==typeof ee&&(Te=ee);return 0===Te?(this.remove(oe),!0):super.add(oe,Te.toString())}canAdd(oe,ee){return super.canAdd(oe,ee)||super.canAdd(oe,parseInt(ee,10))}value(oe){return parseInt(super.value(oe),10)||void 0}}("indent","ql-indent",{scope:Ge.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]}),sc=(()=>class He extends Ot{static blotName="blockquote";static tagName="blockquote"})(),ld=(()=>class He extends Ot{static blotName="header";static tagName=["H1","H2","H3","H4","H5","H6"];static formats(ee){return this.tagName.indexOf(ee.tagName)+1}})();let fp=(()=>{class He extends At{}return He.blotName="list-container",He.tagName="OL",He})(),Ac=(()=>{class He extends Ot{static create(ee){const Te=super.create();return Te.setAttribute("data-list",ee),Te}static formats(ee){return ee.getAttribute("data-list")||void 0}static register(){ri.register(fp)}constructor(ee,Te){super(ee,Te);const Le=Te.ownerDocument.createElement("span"),ot=gt=>{if(!ee.isEnabled())return;const Lt=this.statics.formats(Te,ee);"checked"===Lt?(this.format("list","unchecked"),gt.preventDefault()):"unchecked"===Lt&&(this.format("list","checked"),gt.preventDefault())};Le.addEventListener("mousedown",ot),Le.addEventListener("touchstart",ot),this.attachUI(Le)}format(ee,Te){ee===this.statics.blotName&&Te?this.domNode.setAttribute("data-list",Te):super.format(ee,Te)}}return He.blotName="list",He.tagName="LI",He})();fp.allowedChildren=[Ac],Ac.requiredContainer=fp;const dh=(()=>class He extends Gt.A{static blotName="bold";static tagName=["STRONG","B"];static create(){return super.create()}static formats(){return!0}optimize(ee){super.optimize(ee),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}})(),Lo=(()=>class He extends dh{static blotName="italic";static tagName=["EM","I"]})();var Uo=b(5843);const Er=(()=>class He extends Gt.A{static blotName="script";static tagName=["SUB","SUP"];static create(ee){return"super"===ee?document.createElement("sup"):"sub"===ee?document.createElement("sub"):super.create(ee)}static formats(ee){return"SUB"===ee.tagName?"sub":"SUP"===ee.tagName?"super":void 0}})(),jc=(()=>class He extends dh{static blotName="strike";static tagName=["S","STRIKE"]})(),cd=(()=>class He extends Gt.A{static blotName="underline";static tagName="U"})(),Kl=(()=>class He extends _s{static blotName="formula";static className="ql-formula";static tagName="SPAN";static create(ee){if(null==window.katex)throw new Error("Formula module requires KaTeX.");const Te=super.create(ee);return"string"==typeof ee&&(window.katex.render(ee,Te,{throwOnError:!1,errorColor:"#f00"}),Te.setAttribute("data-value",ee)),Te}static value(ee){return ee.getAttribute("data-value")}html(){const{formula:ee}=this.value();return`<span>${ee}</span>`}})(),Af=["alt","height","width"],Fl=(()=>class He extends Ge.EmbedBlot{static blotName="image";static tagName="IMG";static create(ee){const Te=super.create(ee);return"string"==typeof ee&&Te.setAttribute("src",this.sanitize(ee)),Te}static formats(ee){return Af.reduce((Te,Le)=>(ee.hasAttribute(Le)&&(Te[Le]=ee.getAttribute(Le)),Te),{})}static match(ee){return/\.(jpe?g|gif|png)$/.test(ee)||/^data:image\/.+;base64/.test(ee)}static sanitize(ee){return(0,Uo.a)(ee,["http","https","data"])?ee:"//:0"}static value(ee){return ee.getAttribute("src")}format(ee,Te){Af.indexOf(ee)>-1?Te?this.domNode.setAttribute(ee,Te):this.domNode.removeAttribute(ee):super.format(ee,Te)}})(),Iu=["height","width"],yu=(()=>class He extends Vt{static blotName="video";static className="ql-video";static tagName="IFRAME";static create(ee){const Te=super.create(ee);return Te.setAttribute("frameborder","0"),Te.setAttribute("allowfullscreen","true"),Te.setAttribute("src",this.sanitize(ee)),Te}static formats(ee){return Iu.reduce((Te,Le)=>(ee.hasAttribute(Le)&&(Te[Le]=ee.getAttribute(Le)),Te),{})}static sanitize(ee){return Uo.A.sanitize(ee)}static value(ee){return ee.getAttribute("src")}format(ee,Te){Iu.indexOf(ee)>-1?Te?this.domNode.setAttribute(ee,Te):this.domNode.removeAttribute(ee):super.format(ee,Te)}html(){const{video:ee}=this.value();return`<a href="${ee}">${ee}</a>`}})(),Au=new Ge.ClassAttributor("code-token","hljs",{scope:Ge.Scope.INLINE});let hu=(()=>{class He extends Gt.A{static formats(ee,Te){for(;null!=ee&&ee!==Te.domNode;){if(ee.classList&&ee.classList.contains(bi.className))return super.formats(ee,Te);ee=ee.parentNode}}constructor(ee,Te,Le){super(ee,Te,Le),Au.add(this.domNode,Le)}format(ee,Te){ee!==He.blotName?super.format(ee,Te):Te?Au.add(this.domNode,Te):(Au.remove(this.domNode),this.domNode.classList.remove(this.statics.className))}optimize(){super.optimize(...arguments),Au.value(this.domNode)||this.unwrap()}}return He.blotName="code-token",He.className="ql-token",He})();class dl extends bi{static create(oe){const ee=super.create(oe);return"string"==typeof oe&&ee.setAttribute("data-language",oe),ee}static formats(oe){return oe.getAttribute("data-language")||"plain"}static register(){}format(oe,ee){oe===this.statics.blotName&&ee?this.domNode.setAttribute("data-language",ee):super.format(oe,ee)}replaceWith(oe,ee){return this.formatAt(0,this.length(),hu.blotName,!1),super.replaceWith(oe,ee)}}let ip=(()=>{class He extends Ps{attach(){super.attach(),this.forceNext=!1,this.scroll.emitMount(this)}format(ee,Te){ee===dl.blotName&&(this.forceNext=!0,this.children.forEach(Le=>{Le.format(ee,Te)}))}formatAt(ee,Te,Le,ot){Le===dl.blotName&&(this.forceNext=!0),super.formatAt(ee,Te,Le,ot)}highlight(ee){let Te=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null==this.children.head)return;const ot=`${Array.from(this.domNode.childNodes).filter(Lt=>Lt!==this.uiNode).map(Lt=>Lt.textContent).join("\n")}\n`,gt=dl.formats(this.children.head.domNode);if(Te||this.forceNext||this.cachedText!==ot){if(ot.trim().length>0||null==this.cachedText){const Lt=this.children.reduce((Yt,mr)=>Yt.concat(Fn(mr,!1)),new dt),On=ee(ot,gt);Lt.diff(On).reduce((Yt,mr)=>{let{retain:Sr,attributes:Qo}=mr;return Sr?(Qo&&Object.keys(Qo).forEach(Ur=>{[dl.blotName,hu.blotName].includes(Ur)&&this.formatAt(Yt,Sr,Ur,Qo[Ur])}),Yt+Sr):Yt},0)}this.cachedText=ot,this.forceNext=!1}}html(ee,Te){const[Le]=this.children.find(ee);return`<pre data-language="${Le?dl.formats(Le.domNode):"plain"}">\n${(0,An.X)(this.code(ee,Te))}\n</pre>`}optimize(ee){if(super.optimize(ee),null!=this.parent&&null!=this.children.head&&null!=this.uiNode){const Te=dl.formats(this.children.head.domNode);Te!==this.uiNode.value&&(this.uiNode.value=Te)}}}return He.allowedChildren=[dl],He})();dl.requiredContainer=ip,dl.allowedChildren=[hu,Ii,An.A,Hn.A];class gp extends Il{static register(){ri.register(hu,!0),ri.register(dl,!0),ri.register(ip,!0)}constructor(oe,ee){if(super(oe,ee),null==this.options.hljs)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");this.languages=this.options.languages.reduce((Te,Le)=>{let{key:ot}=Le;return Te[ot]=!0,Te},{}),this.highlightBlot=this.highlightBlot.bind(this),this.initListener(),this.initTimer()}initListener(){this.quill.on(ri.events.SCROLL_BLOT_MOUNT,oe=>{if(!(oe instanceof ip))return;const ee=this.quill.root.ownerDocument.createElement("select");this.options.languages.forEach(Te=>{let{key:Le,label:ot}=Te;const gt=ee.ownerDocument.createElement("option");gt.textContent=ot,gt.setAttribute("value",Le),ee.appendChild(gt)}),ee.addEventListener("change",()=>{oe.format(dl.blotName,ee.value),this.quill.root.focus(),this.highlight(oe,!0)}),null==oe.uiNode&&(oe.attachUI(ee),oe.children.head&&(ee.value=dl.formats(oe.children.head.domNode)))})}initTimer(){let oe=null;this.quill.on(ri.events.SCROLL_OPTIMIZE,()=>{oe&&clearTimeout(oe),oe=setTimeout(()=>{this.highlight(),oe=null},this.options.interval)})}highlight(){let oe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,ee=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.quill.selection.composing)return;this.quill.update(ri.sources.USER);const Te=this.quill.getSelection();(null==oe?this.quill.scroll.descendants(ip):[oe]).forEach(ot=>{ot.highlight(this.highlightBlot,ee)}),this.quill.update(ri.sources.SILENT),null!=Te&&this.quill.setSelection(Te,ri.sources.SILENT)}highlightBlot(oe){let ee=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"plain";if(ee=this.languages[ee]?ee:"plain","plain"===ee)return(0,An.X)(oe).split("\n").reduce((Le,ot,gt)=>(0!==gt&&Le.insert("\n",{[bi.blotName]:ee}),Le.insert(ot)),new dt);const Te=this.quill.root.ownerDocument.createElement("div");return Te.classList.add(bi.className),Te.innerHTML=((He,oe,ee)=>{if("string"==typeof He.versionString){const Te=He.versionString.split(".")[0];if(parseInt(Te,10)>=11)return He.highlight(ee,{language:oe}).value}return He.highlight(oe,ee).value})(this.options.hljs,ee,oe),gn(this.quill.scroll,Te,[(Le,ot)=>{const gt=Au.value(Le);return gt?ot.compose((new dt).retain(ot.length(),{[hu.blotName]:gt})):ot}],[(Le,ot)=>Le.data.split("\n").reduce((gt,Lt,On)=>(0!==On&&gt.insert("\n",{[bi.blotName]:ee}),gt.insert(Lt)),ot)],new WeakMap)}}gp.DEFAULTS={hljs:window.hljs,interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"JavaScript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]};let ph=(()=>{class He extends Ot{static blotName="table";static tagName="TD";static create(ee){const Te=super.create();return Te.setAttribute("data-row",ee||p0()),Te}static formats(ee){if(ee.hasAttribute("data-row"))return ee.getAttribute("data-row")}cellOffset(){return this.parent?this.parent.children.indexOf(this):-1}format(ee,Te){ee===He.blotName&&Te?this.domNode.setAttribute("data-row",Te):super.format(ee,Te)}row(){return this.parent}rowOffset(){return this.row()?this.row().rowOffset():-1}table(){return this.row()&&this.row().table()}}return He})(),rp=(()=>class He extends At{static blotName="table-row";static tagName="TR";checkMerge(){if(super.checkMerge()&&null!=this.next.children.head){const ee=this.children.head.formats(),Te=this.children.tail.formats(),Le=this.next.children.head.formats(),ot=this.next.children.tail.formats();return ee.table===Te.table&&ee.table===Le.table&&ee.table===ot.table}return!1}optimize(ee){super.optimize(ee),this.children.forEach(Te=>{if(null==Te.next)return;const Le=Te.formats(),ot=Te.next.formats();if(Le.table!==ot.table){const gt=this.splitAfter(Te);gt&&gt.optimize(),this.prev&&this.prev.optimize()}})}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}})(),hh=(()=>class He extends At{static blotName="table-body";static tagName="TBODY"})(),e1=(()=>{class He extends At{static blotName="table-container";static tagName="TABLE";balanceCells(){const ee=this.descendants(rp),Te=ee.reduce((Le,ot)=>Math.max(ot.children.length,Le),0);ee.forEach(Le=>{new Array(Te-Le.children.length).fill(0).forEach(()=>{let ot;null!=Le.children.head&&(ot=ph.formats(Le.children.head.domNode));const gt=this.scroll.create(ph.blotName,ot);Le.appendChild(gt),gt.optimize()})})}cells(ee){return this.rows().map(Te=>Te.children.at(ee))}deleteColumn(ee){const[Te]=this.descendant(hh);null==Te||null==Te.children.head||Te.children.forEach(Le=>{const ot=Le.children.at(ee);ot?.remove()})}insertColumn(ee){const[Te]=this.descendant(hh);null==Te||null==Te.children.head||Te.children.forEach(Le=>{const ot=Le.children.at(ee),gt=ph.formats(Le.children.head.domNode),Lt=this.scroll.create(ph.blotName,gt);Le.insertBefore(Lt,ot)})}insertRow(ee){const[Te]=this.descendant(hh);if(null==Te||null==Te.children.head)return;const Le=p0(),ot=this.scroll.create(rp.blotName);Te.children.head.children.forEach(()=>{const Lt=this.scroll.create(ph.blotName,Le);ot.appendChild(Lt)});const gt=Te.children.at(ee);Te.insertBefore(ot,gt)}rows(){const ee=this.children.head;return null==ee?[]:ee.children.map(Te=>Te)}}return He.allowedChildren=[hh],He})();function p0(){return`row-${Math.random().toString(36).slice(2,6)}`}hh.requiredContainer=e1,hh.allowedChildren=[rp],rp.requiredContainer=hh,rp.allowedChildren=[ph],ph.requiredContainer=rp;const f0=ur("quill:toolbar");let m0=(()=>{class He extends Il{constructor(ee,Te){if(super(ee,Te),Array.isArray(this.options.container)){const Le=document.createElement("div");Le.setAttribute("role","toolbar"),function g0(He,oe){Array.isArray(oe[0])||(oe=[oe]),oe.forEach(ee=>{const Te=document.createElement("span");Te.classList.add("ql-formats"),ee.forEach(Le=>{if("string"==typeof Le)t1(Te,Le);else{const ot=Object.keys(Le)[0],gt=Le[ot];Array.isArray(gt)?function jm(He,oe,ee){const Te=document.createElement("select");Te.classList.add(`ql-${oe}`),ee.forEach(Le=>{const ot=document.createElement("option");!1!==Le?ot.setAttribute("value",String(Le)):ot.setAttribute("selected","selected"),Te.appendChild(ot)}),He.appendChild(Te)}(Te,ot,gt):t1(Te,ot,gt)}}),He.appendChild(Te)})}(Le,this.options.container),ee.container?.parentNode?.insertBefore(Le,ee.container),this.container=Le}else this.container="string"==typeof this.options.container?document.querySelector(this.options.container):this.options.container;this.container instanceof HTMLElement?(this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach(Le=>{const ot=this.options.handlers?.[Le];ot&&this.addHandler(Le,ot)}),Array.from(this.container.querySelectorAll("button, select")).forEach(Le=>{this.attach(Le)}),this.quill.on(ri.events.EDITOR_CHANGE,()=>{const[Le]=this.quill.selection.getRange();this.update(Le)})):f0.error("Container required for toolbar",this.options)}addHandler(ee,Te){this.handlers[ee]=Te}attach(ee){let Te=Array.from(ee.classList).find(ot=>0===ot.indexOf("ql-"));Te&&(Te=Te.slice(3),"BUTTON"===ee.tagName&&ee.setAttribute("type","button"),null!=this.handlers[Te]||null!=this.quill.scroll.query(Te)?(ee.addEventListener("SELECT"===ee.tagName?"change":"click",ot=>{let gt;if("SELECT"===ee.tagName){if(ee.selectedIndex<0)return;const On=ee.options[ee.selectedIndex];gt=!On.hasAttribute("selected")&&(On.value||!1)}else gt=!ee.classList.contains("ql-active")&&(ee.value||!ee.hasAttribute("value")),ot.preventDefault();this.quill.focus();const[Lt]=this.quill.selection.getRange();if(null!=this.handlers[Te])this.handlers[Te].call(this,gt);else if(this.quill.scroll.query(Te).prototype instanceof Ge.EmbedBlot){if(gt=prompt(`Enter ${Te}`),!gt)return;this.quill.updateContents((new dt).retain(Lt.index).delete(Lt.length).insert({[Te]:gt}),ri.sources.USER)}else this.quill.format(Te,gt,ri.sources.USER);this.update(Lt)}),this.controls.push([Te,ee])):f0.warn("ignoring attaching to nonexistent format",Te,ee))}update(ee){const Te=null==ee?{}:this.quill.getFormat(ee);this.controls.forEach(Le=>{const[ot,gt]=Le;if("SELECT"===gt.tagName){let Lt=null;if(null==ee)Lt=null;else if(null==Te[ot])Lt=gt.querySelector("option[selected]");else if(!Array.isArray(Te[ot])){let On=Te[ot];"string"==typeof On&&(On=On.replace(/"/g,'\\"')),Lt=gt.querySelector(`option[value="${On}"]`)}null==Lt?(gt.value="",gt.selectedIndex=-1):Lt.selected=!0}else if(null==ee)gt.classList.remove("ql-active"),gt.setAttribute("aria-pressed","false");else if(gt.hasAttribute("value")){const Lt=Te[ot],On=Lt===gt.getAttribute("value")||null!=Lt&&Lt.toString()===gt.getAttribute("value")||null==Lt&&!gt.getAttribute("value");gt.classList.toggle("ql-active",On),gt.setAttribute("aria-pressed",On.toString())}else{const Lt=null!=Te[ot];gt.classList.toggle("ql-active",Lt),gt.setAttribute("aria-pressed",Lt.toString())}})}}return He.DEFAULTS={},He})();function t1(He,oe,ee){const Te=document.createElement("button");Te.setAttribute("type","button"),Te.classList.add(`ql-${oe}`),Te.setAttribute("aria-pressed","false"),null!=ee?(Te.value=ee,Te.setAttribute("aria-label",`${oe}: ${ee}`)):Te.setAttribute("aria-label",oe),He.appendChild(Te)}m0.DEFAULTS={container:null,handlers:{clean(){const He=this.quill.getSelection();if(null!=He)if(0===He.length){const oe=this.quill.getFormat();Object.keys(oe).forEach(ee=>{null!=this.quill.scroll.query(ee,Ge.Scope.INLINE)&&this.quill.format(ee,!1,ri.sources.USER)})}else this.quill.removeFormat(He.index,He.length,ri.sources.USER)},direction(He){const{align:oe}=this.quill.getFormat();"rtl"===He&&null==oe?this.quill.format("align","right",ri.sources.USER):!He&&"right"===oe&&this.quill.format("align",!1,ri.sources.USER),this.quill.format("direction",He,ri.sources.USER)},indent(He){const oe=this.quill.getSelection(),ee=this.quill.getFormat(oe),Te=parseInt(ee.indent||0,10);if("+1"===He||"-1"===He){let Le="+1"===He?1:-1;"rtl"===ee.direction&&(Le*=-1),this.quill.format("indent",Te+Le,ri.sources.USER)}},link(He){!0===He&&(He=prompt("Enter link URL:")),this.quill.format("link",He,ri.sources.USER)},list(He){const oe=this.quill.getSelection(),ee=this.quill.getFormat(oe);this.quill.format("list","check"===He?"checked"!==ee.list&&"unchecked"!==ee.list&&"unchecked":He,ri.sources.USER)}}};const ie='<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>',jt={align:{"":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>',center:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>',right:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>',justify:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>'},background:'<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>',blockquote:'<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>',bold:'<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>',clean:'<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>',code:ie,"code-block":ie,color:'<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>',direction:{"":'<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>',rtl:'<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>'},formula:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>',header:{1:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>',2:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',3:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',4:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>',5:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',6:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>'},italic:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>',image:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>',indent:{"+1":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>',"-1":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>'},link:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>',list:{bullet:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>',check:'<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>',ordered:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>'},script:{sub:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>',super:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>'},strike:'<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>',table:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>',underline:'<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>',video:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>'};let Cn=0;function Ei(He,oe){He.setAttribute(oe,`${"true"!==He.getAttribute(oe)}`)}const Mi=class vi{constructor(oe){this.select=oe,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",()=>{this.togglePicker()}),this.label.addEventListener("keydown",ee=>{switch(ee.key){case"Enter":this.togglePicker();break;case"Escape":this.escape(),ee.preventDefault()}}),this.select.addEventListener("change",this.update.bind(this))}togglePicker(){this.container.classList.toggle("ql-expanded"),Ei(this.label,"aria-expanded"),Ei(this.options,"aria-hidden")}buildItem(oe){const ee=document.createElement("span");ee.tabIndex="0",ee.setAttribute("role","button"),ee.classList.add("ql-picker-item");const Te=oe.getAttribute("value");return Te&&ee.setAttribute("data-value",Te),oe.textContent&&ee.setAttribute("data-label",oe.textContent),ee.addEventListener("click",()=>{this.selectItem(ee,!0)}),ee.addEventListener("keydown",Le=>{switch(Le.key){case"Enter":this.selectItem(ee,!0),Le.preventDefault();break;case"Escape":this.escape(),Le.preventDefault()}}),ee}buildLabel(){const oe=document.createElement("span");return oe.classList.add("ql-picker-label"),oe.innerHTML='<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>',oe.tabIndex="0",oe.setAttribute("role","button"),oe.setAttribute("aria-expanded","false"),this.container.appendChild(oe),oe}buildOptions(){const oe=document.createElement("span");oe.classList.add("ql-picker-options"),oe.setAttribute("aria-hidden","true"),oe.tabIndex="-1",oe.id=`ql-picker-options-${Cn}`,Cn+=1,this.label.setAttribute("aria-controls",oe.id),this.options=oe,Array.from(this.select.options).forEach(ee=>{const Te=this.buildItem(ee);oe.appendChild(Te),!0===ee.selected&&this.selectItem(Te)}),this.container.appendChild(oe)}buildPicker(){Array.from(this.select.attributes).forEach(oe=>{this.container.setAttribute(oe.name,oe.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}escape(){this.close(),setTimeout(()=>this.label.focus(),1)}close(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}selectItem(oe){let ee=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const Te=this.container.querySelector(".ql-selected");oe!==Te&&(Te?.classList.remove("ql-selected"),null!=oe&&(oe.classList.add("ql-selected"),this.select.selectedIndex=Array.from(oe.parentNode.children).indexOf(oe),oe.hasAttribute("data-value")?this.label.setAttribute("data-value",oe.getAttribute("data-value")):this.label.removeAttribute("data-value"),oe.hasAttribute("data-label")?this.label.setAttribute("data-label",oe.getAttribute("data-label")):this.label.removeAttribute("data-label"),ee&&(this.select.dispatchEvent(new Event("change")),this.close())))}update(){let oe;if(this.select.selectedIndex>-1){const Te=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];oe=this.select.options[this.select.selectedIndex],this.selectItem(Te)}else this.selectItem(null);const ee=null!=oe&&oe!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",ee)}},Pi=class li extends Mi{constructor(oe,ee){super(oe),this.label.innerHTML=ee,this.container.classList.add("ql-color-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach(Te=>{Te.classList.add("ql-primary")})}buildItem(oe){const ee=super.buildItem(oe);return ee.style.backgroundColor=oe.getAttribute("value")||"",ee}selectItem(oe,ee){super.selectItem(oe,ee);const Te=this.label.querySelector(".ql-color-label"),Le=oe&&oe.getAttribute("data-value")||"";Te&&("line"===Te.tagName?Te.style.stroke=Le:Te.style.fill=Le)}},no=class Qi extends Mi{constructor(oe,ee){super(oe),this.container.classList.add("ql-icon-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach(Te=>{Te.innerHTML=ee[Te.getAttribute("data-value")||""]}),this.defaultItem=this.container.querySelector(".ql-selected"),this.selectItem(this.defaultItem)}selectItem(oe,ee){super.selectItem(oe,ee);const Te=oe||this.defaultItem;if(null!=Te){if(this.label.innerHTML===Te.innerHTML)return;this.label.innerHTML=Te.innerHTML}}},mn=class on{constructor(oe,ee){this.quill=oe,this.boundsContainer=ee||document.body,this.root=oe.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,(He=>{const{overflowY:oe}=getComputedStyle(He,null);return"visible"!==oe&&"clip"!==oe})(this.quill.root)&&this.quill.root.addEventListener("scroll",()=>{this.root.style.marginTop=-1*this.quill.root.scrollTop+"px"}),this.hide()}hide(){this.root.classList.add("ql-hidden")}position(oe){const ee=oe.left+oe.width/2-this.root.offsetWidth/2,Te=oe.bottom+this.quill.root.scrollTop;this.root.style.left=`${ee}px`,this.root.style.top=`${Te}px`,this.root.classList.remove("ql-flip");const Le=this.boundsContainer.getBoundingClientRect(),ot=this.root.getBoundingClientRect();let gt=0;return ot.right>Le.right&&(gt=Le.right-ot.right,this.root.style.left=`${ee+gt}px`),ot.left<Le.left&&(gt=Le.left-ot.left,this.root.style.left=`${ee+gt}px`),ot.bottom>Le.bottom&&(this.root.style.top=Te-(oe.bottom-oe.top+(ot.bottom-ot.top))+"px",this.root.classList.add("ql-flip")),gt}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}},Ln=[!1,"center","right","justify"],zn=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],pi=[!1,"serif","monospace"],_i=["1","2","3",!1],yi=["small",!1,"large","huge"];class Hr extends Al{constructor(oe,ee){super(oe,ee);const Te=Le=>{document.body.contains(oe.root)?(null!=this.tooltip&&!this.tooltip.root.contains(Le.target)&&document.activeElement!==this.tooltip.textbox&&!this.quill.hasFocus()&&this.tooltip.hide(),null!=this.pickers&&this.pickers.forEach(ot=>{ot.container.contains(Le.target)||ot.close()})):document.body.removeEventListener("click",Te)};oe.emitter.listenDOM("click",document.body,Te)}addModule(oe){const ee=super.addModule(oe);return"toolbar"===oe&&this.extendToolbar(ee),ee}buildButtons(oe,ee){Array.from(oe).forEach(Te=>{(Te.getAttribute("class")||"").split(/\s+/).forEach(ot=>{if(ot.startsWith("ql-")&&(ot=ot.slice(3),null!=ee[ot]))if("direction"===ot)Te.innerHTML=ee[ot][""]+ee[ot].rtl;else if("string"==typeof ee[ot])Te.innerHTML=ee[ot];else{const gt=Te.value||"";null!=gt&&ee[ot][gt]&&(Te.innerHTML=ee[ot][gt])}})})}buildPickers(oe,ee){this.pickers=Array.from(oe).map(Le=>{if(Le.classList.contains("ql-align")&&(null==Le.querySelector("option")&&io(Le,Ln),"object"==typeof ee.align))return new no(Le,ee.align);if(Le.classList.contains("ql-background")||Le.classList.contains("ql-color")){const ot=Le.classList.contains("ql-background")?"background":"color";return null==Le.querySelector("option")&&io(Le,zn,"background"===ot?"#ffffff":"#000000"),new Pi(Le,ee[ot])}return null==Le.querySelector("option")&&(Le.classList.contains("ql-font")?io(Le,pi):Le.classList.contains("ql-header")?io(Le,_i):Le.classList.contains("ql-size")&&io(Le,yi)),new Mi(Le)}),this.quill.on(pr.events.EDITOR_CHANGE,()=>{this.pickers.forEach(Le=>{Le.update()})})}}Hr.DEFAULTS=ze({},Al.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let He=this.container.querySelector("input.ql-image[type=file]");null==He&&(He=document.createElement("input"),He.setAttribute("type","file"),He.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),He.classList.add("ql-image"),He.addEventListener("change",()=>{const oe=this.quill.getSelection(!0);this.quill.uploader.upload(oe,He.files),He.value=""}),this.container.appendChild(He)),He.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});class kr extends mn{constructor(oe,ee){super(oe,ee),this.textbox=this.root.querySelector('input[type="text"]'),this.listen()}listen(){this.textbox.addEventListener("keydown",oe=>{"Enter"===oe.key?(this.save(),oe.preventDefault()):"Escape"===oe.key&&(this.cancel(),oe.preventDefault())})}cancel(){this.hide(),this.restoreFocus()}edit(){let oe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",ee=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null==this.textbox)return;null!=ee?this.textbox.value=ee:oe!==this.root.getAttribute("data-mode")&&(this.textbox.value="");const Te=this.quill.getBounds(this.quill.selection.savedRange);null!=Te&&this.position(Te),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${oe}`)||""),this.root.setAttribute("data-mode",oe)}restoreFocus(){this.quill.focus({preventScroll:!0})}save(){let{value:oe}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{const{scrollTop:ee}=this.quill.root;this.linkRange?(this.quill.formatText(this.linkRange,"link",oe,pr.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",oe,pr.sources.USER)),this.quill.root.scrollTop=ee;break}case"video":oe=function fo(He){let oe=He.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||He.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return oe?`${oe[1]||"https"}://www.youtube.com/embed/${oe[2]}?showinfo=0`:(oe=He.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?`${oe[1]||"https"}://player.vimeo.com/video/${oe[2]}/`:He}(oe);case"formula":{if(!oe)break;const ee=this.quill.getSelection(!0);if(null!=ee){const Te=ee.index+ee.length;this.quill.insertEmbed(Te,this.root.getAttribute("data-mode"),oe,pr.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(Te+1," ",pr.sources.USER),this.quill.setSelection(Te+2,pr.sources.USER)}break}}this.textbox.value="",this.hide()}}function io(He,oe){let ee=arguments.length>2&&void 0!==arguments[2]&&arguments[2];oe.forEach(Te=>{const Le=document.createElement("option");Te===ee?Le.setAttribute("selected","selected"):Le.setAttribute("value",String(Te)),He.appendChild(Le)})}const As=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class Yi extends kr{static TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join("");constructor(oe,ee){super(oe,ee),this.quill.on(pr.events.EDITOR_CHANGE,(Te,Le,ot,gt)=>{if(Te===pr.events.SELECTION_CHANGE)if(null!=Le&&Le.length>0&&gt===pr.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="",this.root.style.width=`${this.root.offsetWidth}px`;const Lt=this.quill.getLines(Le.index,Le.length);if(1===Lt.length){const On=this.quill.getBounds(Le);null!=On&&this.position(On)}else{const On=Lt[Lt.length-1],Yt=this.quill.getIndex(On),mr=Math.min(On.length()-1,Le.index+Le.length-Yt),Sr=this.quill.getBounds(new Xo(Yt,mr));null!=Sr&&this.position(Sr)}}else document.activeElement!==this.textbox&&this.quill.hasFocus()&&this.hide()})}listen(){super.listen(),this.root.querySelector(".ql-close").addEventListener("click",()=>{this.root.classList.remove("ql-editing")}),this.quill.on(pr.events.SCROLL_OPTIMIZE,()=>{setTimeout(()=>{if(this.root.classList.contains("ql-hidden"))return;const oe=this.quill.getSelection();if(null!=oe){const ee=this.quill.getBounds(oe);null!=ee&&this.position(ee)}},1)})}cancel(){this.show()}position(oe){const ee=super.position(oe),Te=this.root.querySelector(".ql-tooltip-arrow");return Te.style.marginLeft="",0!==ee&&(Te.style.marginLeft=-1*ee-Te.offsetWidth/2+"px"),ee}}class vn extends Hr{constructor(oe,ee){null!=ee.modules.toolbar&&null==ee.modules.toolbar.container&&(ee.modules.toolbar.container=As),super(oe,ee),this.quill.container.classList.add("ql-bubble")}extendToolbar(oe){this.tooltip=new Yi(this.quill,this.options.bounds),null!=oe.container&&(this.tooltip.root.appendChild(oe.container),this.buildButtons(oe.container.querySelectorAll("button"),jt),this.buildPickers(oe.container.querySelectorAll("select"),jt))}}vn.DEFAULTS=ze({},Hr.DEFAULTS,{modules:{toolbar:{handlers:{link(He){He?this.quill.theme.tooltip.edit():this.quill.format("link",!1,ri.sources.USER)}}}}});const Yn=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class fr extends kr{static TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join("");preview=this.root.querySelector("a.ql-preview");listen(){super.listen(),this.root.querySelector("a.ql-action").addEventListener("click",oe=>{this.root.classList.contains("ql-editing")?this.save():this.edit("link",this.preview.textContent),oe.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",oe=>{if(null!=this.linkRange){const ee=this.linkRange;this.restoreFocus(),this.quill.formatText(ee,"link",!1,pr.sources.USER),delete this.linkRange}oe.preventDefault(),this.hide()}),this.quill.on(pr.events.SELECTION_CHANGE,(oe,ee,Te)=>{if(null!=oe){if(0===oe.length&&Te===pr.sources.USER){const[Le,ot]=this.quill.scroll.descendant(Uo.A,oe.index);if(null!=Le){this.linkRange=new Xo(oe.index-ot,Le.length());const gt=Uo.A.formats(Le.domNode);this.preview.textContent=gt,this.preview.setAttribute("href",gt),this.show();const Lt=this.quill.getBounds(this.linkRange);return void(null!=Lt&&this.position(Lt))}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}}class Pr extends Hr{constructor(oe,ee){null!=ee.modules.toolbar&&null==ee.modules.toolbar.container&&(ee.modules.toolbar.container=Yn),super(oe,ee),this.quill.container.classList.add("ql-snow")}extendToolbar(oe){null!=oe.container&&(oe.container.classList.add("ql-snow"),this.buildButtons(oe.container.querySelectorAll("button"),jt),this.buildPickers(oe.container.querySelectorAll("select"),jt),this.tooltip=new fr(this.quill,this.options.bounds),oe.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(ee,Te)=>{oe.handlers.link.call(oe,!Te.format.link)}))}}Pr.DEFAULTS=ze({},Hr.DEFAULTS,{modules:{toolbar:{handlers:{link(He){if(He){const oe=this.quill.getSelection();if(null==oe||0===oe.length)return;let ee=this.quill.getText(oe);/^\S+@\S+\.\S+$/.test(ee)&&0!==ee.indexOf("mailto:")&&(ee=`mailto:${ee}`);const{tooltip:Te}=this.quill.theme;Te.edit("link",ee)}else this.quill.format("link",!1,ri.sources.USER)}}}}});const ro=Pr;pa.register({"attributors/attribute/direction":Bs,"attributors/class/align":or,"attributors/class/background":ss,"attributors/class/color":Wr,"attributors/class/direction":oo,"attributors/class/font":fi,"attributors/class/size":Is,"attributors/style/align":Ui,"attributors/style/background":Ho,"attributors/style/color":zo,"attributors/style/direction":Kc,"attributors/style/font":al,"attributors/style/size":ll},!0),pa.register({"formats/align":or,"formats/direction":oo,"formats/indent":Qc,"formats/background":Ho,"formats/color":zo,"formats/font":fi,"formats/size":Is,"formats/blockquote":sc,"formats/code-block":bi,"formats/header":ld,"formats/list":Ac,"formats/bold":dh,"formats/code":go,"formats/italic":Lo,"formats/link":Uo.A,"formats/script":Er,"formats/strike":jc,"formats/underline":cd,"formats/formula":Kl,"formats/image":Fl,"formats/video":yu,"modules/syntax":gp,"modules/table":class DT extends Il{static register(){ri.register(ph),ri.register(rp),ri.register(hh),ri.register(e1)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(e1).forEach(oe=>{oe.balanceCells()})}deleteColumn(){const[oe,,ee]=this.getTable();null!=ee&&(oe.deleteColumn(ee.cellOffset()),this.quill.update(ri.sources.USER))}deleteRow(){const[,oe]=this.getTable();null!=oe&&(oe.remove(),this.quill.update(ri.sources.USER))}deleteTable(){const[oe]=this.getTable();if(null==oe)return;const ee=oe.offset();oe.remove(),this.quill.update(ri.sources.USER),this.quill.setSelection(ee,ri.sources.SILENT)}getTable(){let oe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.quill.getSelection();if(null==oe)return[null,null,null,-1];const[ee,Te]=this.quill.getLine(oe.index);if(null==ee||ee.statics.blotName!==ph.blotName)return[null,null,null,-1];const Le=ee.parent;return[Le.parent.parent,Le,ee,Te]}insertColumn(oe){const ee=this.quill.getSelection();if(!ee)return;const[Te,Le,ot]=this.getTable(ee);if(null==ot)return;const gt=ot.cellOffset();Te.insertColumn(gt+oe),this.quill.update(ri.sources.USER);let Lt=Le.rowOffset();0===oe&&(Lt+=1),this.quill.setSelection(ee.index+Lt,ee.length,ri.sources.SILENT)}insertColumnLeft(){this.insertColumn(0)}insertColumnRight(){this.insertColumn(1)}insertRow(oe){const ee=this.quill.getSelection();if(!ee)return;const[Te,Le,ot]=this.getTable(ee);if(null==ot)return;const gt=Le.rowOffset();Te.insertRow(gt+oe),this.quill.update(ri.sources.USER),oe>0?this.quill.setSelection(ee,ri.sources.SILENT):this.quill.setSelection(ee.index+Le.children.length,ee.length,ri.sources.SILENT)}insertRowAbove(){this.insertRow(0)}insertRowBelow(){this.insertRow(1)}insertTable(oe,ee){const Te=this.quill.getSelection();if(null==Te)return;const Le=new Array(oe).fill(0).reduce(ot=>{const gt=new Array(ee).fill("\n").join("");return ot.insert(gt,{table:p0()})},(new dt).retain(Te.index));this.quill.updateContents(Le,ri.sources.USER),this.quill.setSelection(Te.index,ri.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(ri.events.SCROLL_OPTIMIZE,oe=>{oe.some(ee=>!!["TD","TR","TBODY","TABLE"].includes(ee.target.tagName)&&(this.quill.once(ri.events.TEXT_CHANGE,(Te,Le,ot)=>{ot===ri.sources.USER&&this.balanceTables()}),!0))})}},"modules/toolbar":m0,"themes/bubble":vn,"themes/snow":ro,"ui/icons":jt,"ui/picker":Mi,"ui/icon-picker":no,"ui/color-picker":Pi,"ui/tooltip":mn},!0);const hr=pa},467:(m,y,b)=>{"use strict";function T(E,D,k,R,P,G,Q){try{var H=E[G](Q),Z=H.value}catch(X){return void k(X)}H.done?D(Z):Promise.resolve(Z).then(R,P)}function C(E){return function(){var D=this,k=arguments;return new Promise(function(R,P){var G=E.apply(D,k);function Q(Z){T(G,R,P,Q,H,"next",Z)}function H(Z){T(G,R,P,Q,H,"throw",Z)}Q(void 0)})}}b.d(y,{A:()=>C})},2284:(m,y,b)=>{"use strict";function T(C){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(E){return typeof E}:function(E){return E&&"function"==typeof Symbol&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E})(C)}b.d(y,{A:()=>T})}},m=>{m(m.s=3439)}]);;
