diff --git a/assets/index-BkU4S0X_.js b/assets/index-Dv0jHttL.js similarity index 97% rename from assets/index-BkU4S0X_.js rename to assets/index-Dv0jHttL.js index 51f38cd..3ba0bb5 100644 --- a/assets/index-BkU4S0X_.js +++ b/assets/index-Dv0jHttL.js @@ -14,7 +14,7 @@ function c1(e,t){for(var n=0;n>>1,te=K[oe];if(0>>1;oeo(pt,X))sto(tt,pt)?(K[oe]=tt,K[st]=X,oe=st):(K[oe]=pt,K[Oe]=X,oe=Oe);else if(sto(tt,X))K[oe]=tt,K[st]=X,oe=st;else break e}}return re}function o(K,re){var X=K.sortIndex-re.sortIndex;return X!==0?X:K.id-re.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var l=Date,i=l.now();e.unstable_now=function(){return l.now()-i}}var u=[],c=[],d=1,f=null,m=3,y=!1,b=!1,g=!1,x=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(K){for(var re=n(c);re!==null;){if(re.callback===null)r(c);else if(re.startTime<=K)r(c),re.sortIndex=re.expirationTime,t(u,re);else break;re=n(c)}}function E(K){if(g=!1,v(K),!b)if(n(u)!==null)b=!0,it(O);else{var re=n(c);re!==null&&qe(E,re.startTime-K)}}function O(K,re){b=!1,g&&(g=!1,h(D),D=-1),y=!0;var X=m;try{for(v(re),f=n(u);f!==null&&(!(f.expirationTime>re)||K&&!A());){var oe=f.callback;if(typeof oe=="function"){f.callback=null,m=f.priorityLevel;var te=oe(f.expirationTime<=re);re=e.unstable_now(),typeof te=="function"?f.callback=te:f===n(u)&&r(u),v(re)}else r(u);f=n(u)}if(f!==null)var ve=!0;else{var Oe=n(c);Oe!==null&&qe(E,Oe.startTime-re),ve=!1}return ve}finally{f=null,m=X,y=!1}}var k=!1,w=null,D=-1,I=5,B=-1;function A(){return!(e.unstable_now()-BK||125oe?(K.sortIndex=X,t(c,K),n(u)===null&&K===n(c)&&(g?(h(D),D=-1):g=!0,qe(E,X-oe))):(K.sortIndex=te,t(u,K),b||y||(b=!0,it(O))),K},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(K){var re=m;return function(){var X=m;m=re;try{return K.apply(this,arguments)}finally{m=X}}}})(P1);x1.exports=P1;var US=x1.exports;/** + */(function(e){function t(K,re){var Y=K.length;K.push(re);e:for(;0>>1,te=K[oe];if(0>>1;oeo(pt,Y))sto(tt,pt)?(K[oe]=tt,K[st]=Y,oe=st):(K[oe]=pt,K[Oe]=Y,oe=Oe);else if(sto(tt,Y))K[oe]=tt,K[st]=Y,oe=st;else break e}}return re}function o(K,re){var Y=K.sortIndex-re.sortIndex;return Y!==0?Y:K.id-re.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var l=Date,i=l.now();e.unstable_now=function(){return l.now()-i}}var u=[],c=[],d=1,f=null,m=3,y=!1,b=!1,g=!1,x=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(K){for(var re=n(c);re!==null;){if(re.callback===null)r(c);else if(re.startTime<=K)r(c),re.sortIndex=re.expirationTime,t(u,re);else break;re=n(c)}}function E(K){if(g=!1,v(K),!b)if(n(u)!==null)b=!0,it(O);else{var re=n(c);re!==null&&qe(E,re.startTime-K)}}function O(K,re){b=!1,g&&(g=!1,h(D),D=-1),y=!0;var Y=m;try{for(v(re),f=n(u);f!==null&&(!(f.expirationTime>re)||K&&!A());){var oe=f.callback;if(typeof oe=="function"){f.callback=null,m=f.priorityLevel;var te=oe(f.expirationTime<=re);re=e.unstable_now(),typeof te=="function"?f.callback=te:f===n(u)&&r(u),v(re)}else r(u);f=n(u)}if(f!==null)var ve=!0;else{var Oe=n(c);Oe!==null&&qe(E,Oe.startTime-re),ve=!1}return ve}finally{f=null,m=Y,y=!1}}var k=!1,w=null,D=-1,I=5,B=-1;function A(){return!(e.unstable_now()-BK||125oe?(K.sortIndex=Y,t(c,K),n(u)===null&&K===n(c)&&(g?(h(D),D=-1):g=!0,qe(E,Y-oe))):(K.sortIndex=te,t(u,K),b||y||(b=!0,it(O))),K},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(K){var re=m;return function(){var Y=m;m=re;try{return K.apply(this,arguments)}finally{m=Y}}}})(P1);x1.exports=P1;var US=x1.exports;/** * @license React * react-dom.production.min.js * @@ -46,7 +46,7 @@ Error generating stack: `+a.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function hn(){return hn=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Ia(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function JE(){return Math.random().toString(36).substr(2,8)}function sg(e,t){return{usr:e.state,key:e.key,idx:t}}function Ai(e,t,n,r){return n===void 0&&(n=null),hn({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?fo(t):t,{state:n,key:t&&t.key||r||JE()})}function nu(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function fo(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function XE(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:a=!1}=r,l=o.history,i=Tn.Pop,u=null,c=d();c==null&&(c=0,l.replaceState(hn({},l.state,{idx:c}),""));function d(){return(l.state||{idx:null}).idx}function f(){i=Tn.Pop;let x=d(),h=x==null?null:x-c;c=x,u&&u({action:i,location:g.location,delta:h})}function m(x,h){i=Tn.Push;let p=Ai(g.location,x,h);n&&n(p,x),c=d()+1;let v=sg(p,c),E=g.createHref(p);try{l.pushState(v,"",E)}catch(O){if(O instanceof DOMException&&O.name==="DataCloneError")throw O;o.location.assign(E)}a&&u&&u({action:i,location:g.location,delta:1})}function y(x,h){i=Tn.Replace;let p=Ai(g.location,x,h);n&&n(p,x),c=d();let v=sg(p,c),E=g.createHref(p);l.replaceState(v,"",E),a&&u&&u({action:i,location:g.location,delta:0})}function b(x){let h=o.location.origin!=="null"?o.location.origin:o.location.href,p=typeof x=="string"?x:nu(x);return p=p.replace(/ $/,"%20"),Ft(h,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,h)}let g={get action(){return i},get location(){return e(o,l)},listen(x){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(ug,f),u=x,()=>{o.removeEventListener(ug,f),u=null}},createHref(x){return t(o,x)},createURL:b,encodeLocation(x){let h=b(x);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:m,replace:y,go(x){return l.go(x)}};return g}var mn;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(mn||(mn={}));const YE=new Set(["lazy","caseSensitive","path","id","index","children"]);function qE(e){return e.index===!0}function vf(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,a)=>{let l=[...n,a],i=typeof o.id=="string"?o.id:l.join("-");if(Ft(o.index!==!0||!o.children,"Cannot specify children on an index route"),Ft(!r[i],'Found a route id collision on id "'+i+`". Route id's must be globally unique within Data Router usages`),qE(o)){let u=hn({},o,t(o),{id:i});return r[i]=u,u}else{let u=hn({},o,t(o),{id:i,children:void 0});return r[i]=u,o.children&&(u.children=vf(o.children,t,l,r)),u}})}function el(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?fo(t):t,o=ru(r.pathname||"/",n);if(o==null)return null;let a=O0(e);QE(a);let l=null;for(let i=0;l==null&&i{let u={relativePath:i===void 0?a.path||"":i,caseSensitive:a.caseSensitive===!0,childrenIndex:l,route:a};u.relativePath.startsWith("/")&&(Ft(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let c=wa([r,u.relativePath]),d=n.concat(u);a.children&&a.children.length>0&&(Ft(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),O0(a.children,t,d,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:l2(c,a.index),routesMeta:d})};return e.forEach((a,l)=>{var i;if(a.path===""||!((i=a.path)!=null&&i.includes("?")))o(a,l);else for(let u of R0(a.path))o(a,l,u)}),t}function R0(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return o?[a,""]:[a];let l=R0(r.join("/")),i=[];return i.push(...l.map(u=>u===""?a:[a,u].join("/"))),o&&i.push(...l),i.map(u=>e.startsWith("/")&&u===""?"/":u)}function QE(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:i2(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const e2=/^:[\w-]+$/,t2=3,n2=2,r2=1,o2=10,a2=-2,cg=e=>e==="*";function l2(e,t){let n=e.split("/"),r=n.length;return n.some(cg)&&(r+=a2),t&&(r+=n2),n.filter(o=>!cg(o)).reduce((o,a)=>o+(e2.test(a)?t2:a===""?r2:o2),r)}function i2(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function u2(e,t){let{routesMeta:n}=e,r={},o="/",a=[];for(let l=0;l{let{paramName:m,isOptional:y}=d;if(m==="*"){let g=i[f]||"";l=a.slice(0,a.length-g.length).replace(/(.)\/+$/,"$1")}const b=i[f];return y&&!b?c[m]=void 0:c[m]=(b||"").replace(/%2F/g,"/"),c},{}),pathname:a,pathnameBase:l,pattern:e}}function c2(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Ia(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,i,u)=>(r.push({paramName:i,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function d2(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ia(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function ru(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function f2(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?fo(e):e;return{pathname:n?n.startsWith("/")?n:p2(n,t):t,search:h2(r),hash:y2(o)}}function p2(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function ad(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function I0(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function m2(e,t){let n=I0(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function v2(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=fo(e):(o=hn({},e),Ft(!o.pathname||!o.pathname.includes("?"),ad("?","pathname","search",o)),Ft(!o.pathname||!o.pathname.includes("#"),ad("#","pathname","hash",o)),Ft(!o.search||!o.search.includes("#"),ad("#","search","hash",o)));let a=e===""||o.pathname==="",l=a?"/":o.pathname,i;if(l==null)i=n;else{let f=t.length-1;if(!r&&l.startsWith("..")){let m=l.split("/");for(;m[0]==="..";)m.shift(),f-=1;o.pathname=m.join("/")}i=f>=0?t[f]:"/"}let u=f2(o,i),c=l&&l!=="/"&&l.endsWith("/"),d=(a||l===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||d)&&(u.pathname+="/"),u}const wa=e=>e.join("/").replace(/\/\/+/g,"/"),g2=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),h2=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,y2=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class pm{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function mm(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const T0=["post","put","patch","delete"],b2=new Set(T0),w2=["get",...T0],S2=new Set(w2),C2=new Set([301,302,303,307,308]),E2=new Set([307,308]),ld={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},x2={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Vl={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},vm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,P2=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),k0="remix-router-transitions";function O2(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;Ft(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let N=e.detectErrorBoundary;o=$=>({hasErrorBoundary:N($)})}else o=P2;let a={},l=vf(e.routes,o,void 0,a),i,u=e.basename||"/",c=e.unstable_dataStrategy||k2,d=hn({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,unstable_skipActionErrorRevalidation:!1},e.future),f=null,m=new Set,y=null,b=null,g=null,x=e.hydrationData!=null,h=el(l,e.history.location,u),p=null;if(h==null){let N=Dr(404,{pathname:e.history.location.pathname}),{matches:$,route:V}=wg(l);h=$,p={[V.id]:N}}let v,E=h.some(N=>N.route.lazy),O=h.some(N=>N.route.loader);if(E)v=!1;else if(!O)v=!0;else if(d.v7_partialHydration){let N=e.hydrationData?e.hydrationData.loaderData:null,$=e.hydrationData?e.hydrationData.errors:null,V=de=>de.route.loader?typeof de.route.loader=="function"&&de.route.loader.hydrate===!0?!1:N&&N[de.route.id]!==void 0||$&&$[de.route.id]!==void 0:!0;if($){let de=h.findIndex(je=>$[je.route.id]!==void 0);v=h.slice(0,de+1).every(V)}else v=h.every(V)}else v=e.hydrationData!=null;let k,w={historyAction:e.history.action,location:e.history.location,matches:h,initialized:v,navigation:ld,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||p,fetchers:new Map,blockers:new Map},D=Tn.Pop,I=!1,B,A=!1,ye=new Map,Ie=null,Me=!1,Ae=!1,it=[],qe=[],K=new Map,re=0,X=-1,oe=new Map,te=new Set,ve=new Map,Oe=new Map,pt=new Set,st=new Map,tt=new Map,lt=!1;function Rt(){if(f=e.history.listen(N=>{let{action:$,location:V,delta:de}=N;if(lt){lt=!1;return}Ia(tt.size===0||de!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let je=L({currentLocation:w.location,nextLocation:V,historyAction:$});if(je&&de!=null){lt=!0,e.history.go(de*-1),ce(je,{state:"blocked",location:V,proceed(){ce(je,{state:"proceeding",proceed:void 0,reset:void 0,location:V}),e.history.go(de)},reset(){let Ge=new Map(w.blockers);Ge.set(je,Vl),q({blockers:Ge})}});return}return et($,V)}),n){H2(t,ye);let N=()=>U2(t,ye);t.addEventListener("pagehide",N),Ie=()=>t.removeEventListener("pagehide",N)}return w.initialized||et(Tn.Pop,w.location,{initialHydration:!0}),k}function zt(){f&&f(),Ie&&Ie(),m.clear(),B&&B.abort(),w.fetchers.forEach((N,$)=>yt($)),w.blockers.forEach((N,$)=>at($))}function Xe(N){return m.add(N),()=>m.delete(N)}function q(N,$){$===void 0&&($={}),w=hn({},w,N);let V=[],de=[];d.v7_fetcherPersist&&w.fetchers.forEach((je,Ge)=>{je.state==="idle"&&(pt.has(Ge)?de.push(Ge):V.push(Ge))}),[...m].forEach(je=>je(w,{deletedFetchers:de,unstable_viewTransitionOpts:$.viewTransitionOpts,unstable_flushSync:$.flushSync===!0})),d.v7_fetcherPersist&&(V.forEach(je=>w.fetchers.delete(je)),de.forEach(je=>yt(je)))}function Te(N,$,V){var de,je;let{flushSync:Ge}=V===void 0?{}:V,Be=w.actionData!=null&&w.navigation.formMethod!=null&&Gr(w.navigation.formMethod)&&w.navigation.state==="loading"&&((de=N.state)==null?void 0:de._isRedirect)!==!0,$e;$.actionData?Object.keys($.actionData).length>0?$e=$.actionData:$e=null:Be?$e=w.actionData:$e=null;let Ze=$.loaderData?yg(w.loaderData,$.loaderData,$.matches||[],$.errors):w.loaderData,Qe=w.blockers;Qe.size>0&&(Qe=new Map(Qe),Qe.forEach((Ke,nt)=>Qe.set(nt,Vl)));let Lt=I===!0||w.navigation.formMethod!=null&&Gr(w.navigation.formMethod)&&((je=N.state)==null?void 0:je._isRedirect)!==!0;i&&(l=i,i=void 0),Me||D===Tn.Pop||(D===Tn.Push?e.history.push(N,N.state):D===Tn.Replace&&e.history.replace(N,N.state));let Dt;if(D===Tn.Pop){let Ke=ye.get(w.location.pathname);Ke&&Ke.has(N.pathname)?Dt={currentLocation:w.location,nextLocation:N}:ye.has(N.pathname)&&(Dt={currentLocation:N,nextLocation:w.location})}else if(A){let Ke=ye.get(w.location.pathname);Ke?Ke.add(N.pathname):(Ke=new Set([N.pathname]),ye.set(w.location.pathname,Ke)),Dt={currentLocation:w.location,nextLocation:N}}q(hn({},$,{actionData:$e,loaderData:Ze,historyAction:D,location:N,initialized:!0,navigation:ld,revalidation:"idle",restoreScrollPosition:It(N,$.matches||w.matches),preventScrollReset:Lt,blockers:Qe}),{viewTransitionOpts:Dt,flushSync:Ge===!0}),D=Tn.Pop,I=!1,A=!1,Me=!1,Ae=!1,it=[],qe=[]}async function we(N,$){if(typeof N=="number"){e.history.go(N);return}let V=gf(w.location,w.matches,u,d.v7_prependBasename,N,d.v7_relativeSplatPath,$==null?void 0:$.fromRouteId,$==null?void 0:$.relative),{path:de,submission:je,error:Ge}=dg(d.v7_normalizeFormMethod,!1,V,$),Be=w.location,$e=Ai(w.location,de,$&&$.state);$e=hn({},$e,e.history.encodeLocation($e));let Ze=$&&$.replace!=null?$.replace:void 0,Qe=Tn.Push;Ze===!0?Qe=Tn.Replace:Ze===!1||je!=null&&Gr(je.formMethod)&&je.formAction===w.location.pathname+w.location.search&&(Qe=Tn.Replace);let Lt=$&&"preventScrollReset"in $?$.preventScrollReset===!0:void 0,Dt=($&&$.unstable_flushSync)===!0,Ke=L({currentLocation:Be,nextLocation:$e,historyAction:Qe});if(Ke){ce(Ke,{state:"blocked",location:$e,proceed(){ce(Ke,{state:"proceeding",proceed:void 0,reset:void 0,location:$e}),we(N,$)},reset(){let nt=new Map(w.blockers);nt.set(Ke,Vl),q({blockers:nt})}});return}return await et(Qe,$e,{submission:je,pendingError:Ge,preventScrollReset:Lt,replace:$&&$.replace,enableViewTransition:$&&$.unstable_viewTransition,flushSync:Dt})}function ut(){if(mt(),q({revalidation:"loading"}),w.navigation.state!=="submitting"){if(w.navigation.state==="idle"){et(w.historyAction,w.location,{startUninterruptedRevalidation:!0});return}et(D||w.historyAction,w.navigation.location,{overrideNavigation:w.navigation})}}async function et(N,$,V){B&&B.abort(),B=null,D=N,Me=(V&&V.startUninterruptedRevalidation)===!0,_t(w.location,w.matches),I=(V&&V.preventScrollReset)===!0,A=(V&&V.enableViewTransition)===!0;let de=i||l,je=V&&V.overrideNavigation,Ge=el(de,$,u),Be=(V&&V.flushSync)===!0;if(!Ge){let Ke=Dr(404,{pathname:$.pathname}),{matches:nt,route:ge}=wg(de);Re(),Te($,{matches:nt,loaderData:{},errors:{[ge.id]:Ke}},{flushSync:Be});return}if(w.initialized&&!Ae&&F2(w.location,$)&&!(V&&V.submission&&Gr(V.submission.formMethod))){Te($,{matches:Ge},{flushSync:Be});return}B=new AbortController;let $e=La(e.history,$,B.signal,V&&V.submission),Ze;if(V&&V.pendingError)Ze=[mi(Ge).route.id,{type:mn.error,error:V.pendingError}];else if(V&&V.submission&&Gr(V.submission.formMethod)){let Ke=await ht($e,$,V.submission,Ge,{replace:V.replace,flushSync:Be});if(Ke.shortCircuited)return;Ze=Ke.pendingActionResult,je=id($,V.submission),Be=!1,$e=La(e.history,$e.url,$e.signal)}let{shortCircuited:Qe,loaderData:Lt,errors:Dt}=await Ct($e,$,Ge,je,V&&V.submission,V&&V.fetcherSubmission,V&&V.replace,V&&V.initialHydration===!0,Be,Ze);Qe||(B=null,Te($,hn({matches:Ge},bg(Ze),{loaderData:Lt,errors:Dt})))}async function ht(N,$,V,de,je){je===void 0&&(je={}),mt();let Ge=z2($,V);q({navigation:Ge},{flushSync:je.flushSync===!0});let Be,$e=yf(de,$);if(!$e.route.action&&!$e.route.lazy)Be={type:mn.error,error:Dr(405,{method:N.method,pathname:$.pathname,routeId:$e.route.id})};else if(Be=(await me("action",N,[$e],de))[0],N.signal.aborted)return{shortCircuited:!0};if(va(Be)){let Ze;return je&&je.replace!=null?Ze=je.replace:Ze=vg(Be.response.headers.get("Location"),new URL(N.url),u)===w.location.pathname+w.location.search,await z(N,Be,{submission:V,replace:Ze}),{shortCircuited:!0}}if(ma(Be))throw Dr(400,{type:"defer-action"});if(_r(Be)){let Ze=mi(de,$e.route.id);return(je&&je.replace)!==!0&&(D=Tn.Push),{pendingActionResult:[Ze.route.id,Be]}}return{pendingActionResult:[$e.route.id,Be]}}async function Ct(N,$,V,de,je,Ge,Be,$e,Ze,Qe){let Lt=de||id($,je),Dt=je||Ge||Eg(Lt),Ke=i||l,[nt,ge]=fg(e.history,w,V,Dt,$,d.v7_partialHydration&&$e===!0,d.unstable_skipActionErrorRevalidation,Ae,it,qe,pt,ve,te,Ke,u,Qe);if(Re(he=>!(V&&V.some(U=>U.route.id===he))||nt&&nt.some(U=>U.route.id===he)),X=++re,nt.length===0&&ge.length===0){let he=Ye();return Te($,hn({matches:V,loaderData:{},errors:Qe&&_r(Qe[1])?{[Qe[0]]:Qe[1].error}:null},bg(Qe),he?{fetchers:new Map(w.fetchers)}:{}),{flushSync:Ze}),{shortCircuited:!0}}if(!Me&&(!d.v7_partialHydration||!$e)){ge.forEach(U=>{let C=w.fetchers.get(U.key),M=Kl(void 0,C?C.data:void 0);w.fetchers.set(U.key,M)});let he;Qe&&!_r(Qe[1])?he={[Qe[0]]:Qe[1].data}:w.actionData&&(Object.keys(w.actionData).length===0?he=null:he=w.actionData),q(hn({navigation:Lt},he!==void 0?{actionData:he}:{},ge.length>0?{fetchers:new Map(w.fetchers)}:{}),{flushSync:Ze})}ge.forEach(he=>{K.has(he.key)&&Mt(he.key),he.controller&&K.set(he.key,he.controller)});let W=()=>ge.forEach(he=>Mt(he.key));B&&B.signal.addEventListener("abort",W);let{loaderResults:ue,fetcherResults:ae}=await Le(w.matches,V,nt,ge,N);if(N.signal.aborted)return{shortCircuited:!0};B&&B.signal.removeEventListener("abort",W),ge.forEach(he=>K.delete(he.key));let fe=Sg([...ue,...ae]);if(fe){if(fe.idx>=nt.length){let he=ge[fe.idx-nt.length].key;te.add(he)}return await z(N,fe.result,{replace:Be}),{shortCircuited:!0}}let{loaderData:H,errors:ie}=hg(w,V,nt,ue,Qe,ge,ae,st);st.forEach((he,U)=>{he.subscribe(C=>{(C||he.done)&&st.delete(U)})}),d.v7_partialHydration&&$e&&w.errors&&Object.entries(w.errors).filter(he=>{let[U]=he;return!nt.some(C=>C.route.id===U)}).forEach(he=>{let[U,C]=he;ie=Object.assign(ie||{},{[U]:C})});let Se=Ye(),ke=Z(X),We=Se||ke||ge.length>0;return hn({loaderData:H,errors:ie},We?{fetchers:new Map(w.fetchers)}:{})}function ln(N,$,V,de){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");K.has(N)&&Mt(N);let je=(de&&de.unstable_flushSync)===!0,Ge=i||l,Be=gf(w.location,w.matches,u,d.v7_prependBasename,V,d.v7_relativeSplatPath,$,de==null?void 0:de.relative),$e=el(Ge,Be,u);if(!$e){ft(N,$,Dr(404,{pathname:Be}),{flushSync:je});return}let{path:Ze,submission:Qe,error:Lt}=dg(d.v7_normalizeFormMethod,!0,Be,de);if(Lt){ft(N,$,Lt,{flushSync:je});return}let Dt=yf($e,Ze);if(I=(de&&de.preventScrollReset)===!0,Qe&&Gr(Qe.formMethod)){Bt(N,$,Ze,Dt,$e,je,Qe);return}ve.set(N,{routeId:$,path:Ze}),_e(N,$,Ze,Dt,$e,je,Qe)}async function Bt(N,$,V,de,je,Ge,Be){if(mt(),ve.delete(N),!de.route.action&&!de.route.lazy){let M=Dr(405,{method:Be.formMethod,pathname:V,routeId:$});ft(N,$,M,{flushSync:Ge});return}let $e=w.fetchers.get(N);bt(N,B2(Be,$e),{flushSync:Ge});let Ze=new AbortController,Qe=La(e.history,V,Ze.signal,Be);K.set(N,Ze);let Lt=re,Ke=(await me("action",Qe,[de],je))[0];if(Qe.signal.aborted){K.get(N)===Ze&&K.delete(N);return}if(d.v7_fetcherPersist&&pt.has(N)){if(va(Ke)||_r(Ke)){bt(N,Mo(void 0));return}}else{if(va(Ke))if(K.delete(N),X>Lt){bt(N,Mo(void 0));return}else return te.add(N),bt(N,Kl(Be)),z(Qe,Ke,{fetcherSubmission:Be});if(_r(Ke)){ft(N,$,Ke.error);return}}if(ma(Ke))throw Dr(400,{type:"defer-action"});let nt=w.navigation.location||w.location,ge=La(e.history,nt,Ze.signal),W=i||l,ue=w.navigation.state!=="idle"?el(W,w.navigation.location,u):w.matches;Ft(ue,"Didn't find any matches after fetcher action");let ae=++re;oe.set(N,ae);let fe=Kl(Be,Ke.data);w.fetchers.set(N,fe);let[H,ie]=fg(e.history,w,ue,Be,nt,!1,d.unstable_skipActionErrorRevalidation,Ae,it,qe,pt,ve,te,W,u,[de.route.id,Ke]);ie.filter(M=>M.key!==N).forEach(M=>{let ee=M.key,Ce=w.fetchers.get(ee),G=Kl(void 0,Ce?Ce.data:void 0);w.fetchers.set(ee,G),K.has(ee)&&Mt(ee),M.controller&&K.set(ee,M.controller)}),q({fetchers:new Map(w.fetchers)});let Se=()=>ie.forEach(M=>Mt(M.key));Ze.signal.addEventListener("abort",Se);let{loaderResults:ke,fetcherResults:We}=await Le(w.matches,ue,H,ie,ge);if(Ze.signal.aborted)return;Ze.signal.removeEventListener("abort",Se),oe.delete(N),K.delete(N),ie.forEach(M=>K.delete(M.key));let he=Sg([...ke,...We]);if(he){if(he.idx>=H.length){let M=ie[he.idx-H.length].key;te.add(M)}return z(ge,he.result)}let{loaderData:U,errors:C}=hg(w,w.matches,H,ke,void 0,ie,We,st);if(w.fetchers.has(N)){let M=Mo(Ke.data);w.fetchers.set(N,M)}Z(ae),w.navigation.state==="loading"&&ae>X?(Ft(D,"Expected pending action"),B&&B.abort(),Te(w.navigation.location,{matches:ue,loaderData:U,errors:C,fetchers:new Map(w.fetchers)})):(q({errors:C,loaderData:yg(w.loaderData,U,ue,C),fetchers:new Map(w.fetchers)}),Ae=!1)}async function _e(N,$,V,de,je,Ge,Be){let $e=w.fetchers.get(N);bt(N,Kl(Be,$e?$e.data:void 0),{flushSync:Ge});let Ze=new AbortController,Qe=La(e.history,V,Ze.signal);K.set(N,Ze);let Lt=re,Ke=(await me("loader",Qe,[de],je))[0];if(ma(Ke)&&(Ke=await _0(Ke,Qe.signal,!0)||Ke),K.get(N)===Ze&&K.delete(N),!Qe.signal.aborted){if(pt.has(N)){bt(N,Mo(void 0));return}if(va(Ke))if(X>Lt){bt(N,Mo(void 0));return}else{te.add(N),await z(Qe,Ke);return}if(_r(Ke)){ft(N,$,Ke.error);return}Ft(!ma(Ke),"Unhandled fetcher deferred data"),bt(N,Mo(Ke.data))}}async function z(N,$,V){let{submission:de,fetcherSubmission:je,replace:Ge}=V===void 0?{}:V;$.response.headers.has("X-Remix-Revalidate")&&(Ae=!0);let Be=$.response.headers.get("Location");Ft(Be,"Expected a Location header on the redirect Response"),Be=vg(Be,new URL(N.url),u);let $e=Ai(w.location,Be,{_isRedirect:!0});if(n){let nt=!1;if($.response.headers.has("X-Remix-Reload-Document"))nt=!0;else if(vm.test(Be)){const ge=e.history.createURL(Be);nt=ge.origin!==t.location.origin||ru(ge.pathname,u)==null}if(nt){Ge?t.location.replace(Be):t.location.assign(Be);return}}B=null;let Ze=Ge===!0?Tn.Replace:Tn.Push,{formMethod:Qe,formAction:Lt,formEncType:Dt}=w.navigation;!de&&!je&&Qe&&Lt&&Dt&&(de=Eg(w.navigation));let Ke=de||je;if(E2.has($.response.status)&&Ke&&Gr(Ke.formMethod))await et(Ze,$e,{submission:hn({},Ke,{formAction:Be}),preventScrollReset:I});else{let nt=id($e,de);await et(Ze,$e,{overrideNavigation:nt,fetcherSubmission:je,preventScrollReset:I})}}async function me(N,$,V,de){try{let je=await D2(c,N,$,V,de,a,o);return await Promise.all(je.map((Ge,Be)=>{if(j2(Ge)){let $e=Ge.result;return{type:mn.redirect,response:_2($e,$,V[Be].route.id,de,u,d.v7_relativeSplatPath)}}return M2(Ge)}))}catch(je){return V.map(()=>({type:mn.error,error:je}))}}async function Le(N,$,V,de,je){let[Ge,...Be]=await Promise.all([V.length?me("loader",je,V,$):[],...de.map($e=>{if($e.matches&&$e.match&&$e.controller){let Ze=La(e.history,$e.path,$e.controller.signal);return me("loader",Ze,[$e.match],$e.matches).then(Qe=>Qe[0])}else return Promise.resolve({type:mn.error,error:Dr(404,{pathname:$e.path})})})]);return await Promise.all([Cg(N,V,Ge,Ge.map(()=>je.signal),!1,w.loaderData),Cg(N,de.map($e=>$e.match),Be,de.map($e=>$e.controller?$e.controller.signal:null),!0)]),{loaderResults:Ge,fetcherResults:Be}}function mt(){Ae=!0,it.push(...Re()),ve.forEach((N,$)=>{K.has($)&&(qe.push($),Mt($))})}function bt(N,$,V){V===void 0&&(V={}),w.fetchers.set(N,$),q({fetchers:new Map(w.fetchers)},{flushSync:(V&&V.flushSync)===!0})}function ft(N,$,V,de){de===void 0&&(de={});let je=mi(w.matches,$);yt(N),q({errors:{[je.route.id]:V},fetchers:new Map(w.fetchers)},{flushSync:(de&&de.flushSync)===!0})}function xt(N){return d.v7_fetcherPersist&&(Oe.set(N,(Oe.get(N)||0)+1),pt.has(N)&&pt.delete(N)),w.fetchers.get(N)||x2}function yt(N){let $=w.fetchers.get(N);K.has(N)&&!($&&$.state==="loading"&&oe.has(N))&&Mt(N),ve.delete(N),oe.delete(N),te.delete(N),pt.delete(N),w.fetchers.delete(N)}function un(N){if(d.v7_fetcherPersist){let $=(Oe.get(N)||0)-1;$<=0?(Oe.delete(N),pt.add(N)):Oe.set(N,$)}else yt(N);q({fetchers:new Map(w.fetchers)})}function Mt(N){let $=K.get(N);Ft($,"Expected fetch controller: "+N),$.abort(),K.delete(N)}function $t(N){for(let $ of N){let V=xt($),de=Mo(V.data);w.fetchers.set($,de)}}function Ye(){let N=[],$=!1;for(let V of te){let de=w.fetchers.get(V);Ft(de,"Expected fetcher: "+V),de.state==="loading"&&(te.delete(V),N.push(V),$=!0)}return $t(N),$}function Z(N){let $=[];for(let[V,de]of oe)if(de0}function He(N,$){let V=w.blockers.get(N)||Vl;return tt.get(N)!==$&&tt.set(N,$),V}function at(N){w.blockers.delete(N),tt.delete(N)}function ce(N,$){let V=w.blockers.get(N)||Vl;Ft(V.state==="unblocked"&&$.state==="blocked"||V.state==="blocked"&&$.state==="blocked"||V.state==="blocked"&&$.state==="proceeding"||V.state==="blocked"&&$.state==="unblocked"||V.state==="proceeding"&&$.state==="unblocked","Invalid blocker state transition: "+V.state+" -> "+$.state);let de=new Map(w.blockers);de.set(N,$),q({blockers:de})}function L(N){let{currentLocation:$,nextLocation:V,historyAction:de}=N;if(tt.size===0)return;tt.size>1&&Ia(!1,"A router only supports one blocker at a time");let je=Array.from(tt.entries()),[Ge,Be]=je[je.length-1],$e=w.blockers.get(Ge);if(!($e&&$e.state==="proceeding")&&Be({currentLocation:$,nextLocation:V,historyAction:de}))return Ge}function Re(N){let $=[];return st.forEach((V,de)=>{(!N||N(de))&&(V.cancel(),$.push(de),st.delete(de))}),$}function Ve(N,$,V){if(y=N,g=$,b=V||null,!x&&w.navigation===ld){x=!0;let de=It(w.location,w.matches);de!=null&&q({restoreScrollPosition:de})}return()=>{y=null,g=null,b=null}}function Pt(N,$){return b&&b(N,$.map(de=>ZE(de,w.loaderData)))||N.key}function _t(N,$){if(y&&g){let V=Pt(N,$);y[V]=g()}}function It(N,$){if(y){let V=Pt(N,$),de=y[V];if(typeof de=="number")return de}return null}function Wt(N){a={},i=vf(N,o,void 0,a)}return k={get basename(){return u},get future(){return d},get state(){return w},get routes(){return l},get window(){return t},initialize:Rt,subscribe:Xe,enableScrollRestoration:Ve,navigate:we,fetch:ln,revalidate:ut,createHref:N=>e.history.createHref(N),encodeLocation:N=>e.history.encodeLocation(N),getFetcher:xt,deleteFetcher:un,dispose:zt,getBlocker:He,deleteBlocker:at,_internalFetchControllers:K,_internalActiveDeferreds:st,_internalSetRoutes:Wt},k}function R2(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function gf(e,t,n,r,o,a,l,i){let u,c;if(l){u=[];for(let f of t)if(u.push(f),f.route.id===l){c=f;break}}else u=t,c=t[t.length-1];let d=v2(o||".",m2(u,a),ru(e.pathname,n)||e.pathname,i==="path");return o==null&&(d.search=e.search,d.hash=e.hash),(o==null||o===""||o===".")&&c&&c.route.index&&!gm(d.search)&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(d.pathname=d.pathname==="/"?n:wa([n,d.pathname])),nu(d)}function dg(e,t,n,r){if(!r||!R2(r))return{path:n};if(r.formMethod&&!$2(r.formMethod))return{path:n,error:Dr(405,{method:r.formMethod})};let o=()=>({path:n,error:Dr(400,{type:"invalid-body"})}),a=r.formMethod||"get",l=e?a.toUpperCase():a.toLowerCase(),i=N0(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Gr(l))return o();let m=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((y,b)=>{let[g,x]=b;return""+y+g+"="+x+` + */function hn(){return hn=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Ia(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function JE(){return Math.random().toString(36).substr(2,8)}function sg(e,t){return{usr:e.state,key:e.key,idx:t}}function Ai(e,t,n,r){return n===void 0&&(n=null),hn({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?fo(t):t,{state:n,key:t&&t.key||r||JE()})}function nu(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function fo(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function XE(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:a=!1}=r,l=o.history,i=Tn.Pop,u=null,c=d();c==null&&(c=0,l.replaceState(hn({},l.state,{idx:c}),""));function d(){return(l.state||{idx:null}).idx}function f(){i=Tn.Pop;let x=d(),h=x==null?null:x-c;c=x,u&&u({action:i,location:g.location,delta:h})}function m(x,h){i=Tn.Push;let p=Ai(g.location,x,h);n&&n(p,x),c=d()+1;let v=sg(p,c),E=g.createHref(p);try{l.pushState(v,"",E)}catch(O){if(O instanceof DOMException&&O.name==="DataCloneError")throw O;o.location.assign(E)}a&&u&&u({action:i,location:g.location,delta:1})}function y(x,h){i=Tn.Replace;let p=Ai(g.location,x,h);n&&n(p,x),c=d();let v=sg(p,c),E=g.createHref(p);l.replaceState(v,"",E),a&&u&&u({action:i,location:g.location,delta:0})}function b(x){let h=o.location.origin!=="null"?o.location.origin:o.location.href,p=typeof x=="string"?x:nu(x);return p=p.replace(/ $/,"%20"),Ft(h,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,h)}let g={get action(){return i},get location(){return e(o,l)},listen(x){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(ug,f),u=x,()=>{o.removeEventListener(ug,f),u=null}},createHref(x){return t(o,x)},createURL:b,encodeLocation(x){let h=b(x);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:m,replace:y,go(x){return l.go(x)}};return g}var mn;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(mn||(mn={}));const YE=new Set(["lazy","caseSensitive","path","id","index","children"]);function qE(e){return e.index===!0}function vf(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,a)=>{let l=[...n,a],i=typeof o.id=="string"?o.id:l.join("-");if(Ft(o.index!==!0||!o.children,"Cannot specify children on an index route"),Ft(!r[i],'Found a route id collision on id "'+i+`". Route id's must be globally unique within Data Router usages`),qE(o)){let u=hn({},o,t(o),{id:i});return r[i]=u,u}else{let u=hn({},o,t(o),{id:i,children:void 0});return r[i]=u,o.children&&(u.children=vf(o.children,t,l,r)),u}})}function el(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?fo(t):t,o=ru(r.pathname||"/",n);if(o==null)return null;let a=O0(e);QE(a);let l=null;for(let i=0;l==null&&i{let u={relativePath:i===void 0?a.path||"":i,caseSensitive:a.caseSensitive===!0,childrenIndex:l,route:a};u.relativePath.startsWith("/")&&(Ft(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let c=wa([r,u.relativePath]),d=n.concat(u);a.children&&a.children.length>0&&(Ft(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),O0(a.children,t,d,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:l2(c,a.index),routesMeta:d})};return e.forEach((a,l)=>{var i;if(a.path===""||!((i=a.path)!=null&&i.includes("?")))o(a,l);else for(let u of R0(a.path))o(a,l,u)}),t}function R0(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return o?[a,""]:[a];let l=R0(r.join("/")),i=[];return i.push(...l.map(u=>u===""?a:[a,u].join("/"))),o&&i.push(...l),i.map(u=>e.startsWith("/")&&u===""?"/":u)}function QE(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:i2(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const e2=/^:[\w-]+$/,t2=3,n2=2,r2=1,o2=10,a2=-2,cg=e=>e==="*";function l2(e,t){let n=e.split("/"),r=n.length;return n.some(cg)&&(r+=a2),t&&(r+=n2),n.filter(o=>!cg(o)).reduce((o,a)=>o+(e2.test(a)?t2:a===""?r2:o2),r)}function i2(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function u2(e,t){let{routesMeta:n}=e,r={},o="/",a=[];for(let l=0;l{let{paramName:m,isOptional:y}=d;if(m==="*"){let g=i[f]||"";l=a.slice(0,a.length-g.length).replace(/(.)\/+$/,"$1")}const b=i[f];return y&&!b?c[m]=void 0:c[m]=(b||"").replace(/%2F/g,"/"),c},{}),pathname:a,pathnameBase:l,pattern:e}}function c2(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Ia(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,i,u)=>(r.push({paramName:i,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function d2(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ia(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function ru(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function f2(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?fo(e):e;return{pathname:n?n.startsWith("/")?n:p2(n,t):t,search:h2(r),hash:y2(o)}}function p2(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function ad(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function I0(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function m2(e,t){let n=I0(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function v2(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=fo(e):(o=hn({},e),Ft(!o.pathname||!o.pathname.includes("?"),ad("?","pathname","search",o)),Ft(!o.pathname||!o.pathname.includes("#"),ad("#","pathname","hash",o)),Ft(!o.search||!o.search.includes("#"),ad("#","search","hash",o)));let a=e===""||o.pathname==="",l=a?"/":o.pathname,i;if(l==null)i=n;else{let f=t.length-1;if(!r&&l.startsWith("..")){let m=l.split("/");for(;m[0]==="..";)m.shift(),f-=1;o.pathname=m.join("/")}i=f>=0?t[f]:"/"}let u=f2(o,i),c=l&&l!=="/"&&l.endsWith("/"),d=(a||l===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||d)&&(u.pathname+="/"),u}const wa=e=>e.join("/").replace(/\/\/+/g,"/"),g2=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),h2=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,y2=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class pm{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function mm(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const T0=["post","put","patch","delete"],b2=new Set(T0),w2=["get",...T0],S2=new Set(w2),C2=new Set([301,302,303,307,308]),E2=new Set([307,308]),ld={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},x2={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Vl={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},vm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,P2=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),k0="remix-router-transitions";function O2(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;Ft(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let N=e.detectErrorBoundary;o=$=>({hasErrorBoundary:N($)})}else o=P2;let a={},l=vf(e.routes,o,void 0,a),i,u=e.basename||"/",c=e.unstable_dataStrategy||k2,d=hn({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,unstable_skipActionErrorRevalidation:!1},e.future),f=null,m=new Set,y=null,b=null,g=null,x=e.hydrationData!=null,h=el(l,e.history.location,u),p=null;if(h==null){let N=Dr(404,{pathname:e.history.location.pathname}),{matches:$,route:V}=wg(l);h=$,p={[V.id]:N}}let v,E=h.some(N=>N.route.lazy),O=h.some(N=>N.route.loader);if(E)v=!1;else if(!O)v=!0;else if(d.v7_partialHydration){let N=e.hydrationData?e.hydrationData.loaderData:null,$=e.hydrationData?e.hydrationData.errors:null,V=de=>de.route.loader?typeof de.route.loader=="function"&&de.route.loader.hydrate===!0?!1:N&&N[de.route.id]!==void 0||$&&$[de.route.id]!==void 0:!0;if($){let de=h.findIndex(je=>$[je.route.id]!==void 0);v=h.slice(0,de+1).every(V)}else v=h.every(V)}else v=e.hydrationData!=null;let k,w={historyAction:e.history.action,location:e.history.location,matches:h,initialized:v,navigation:ld,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||p,fetchers:new Map,blockers:new Map},D=Tn.Pop,I=!1,B,A=!1,ye=new Map,Ie=null,Me=!1,Ae=!1,it=[],qe=[],K=new Map,re=0,Y=-1,oe=new Map,te=new Set,ve=new Map,Oe=new Map,pt=new Set,st=new Map,tt=new Map,lt=!1;function Rt(){if(f=e.history.listen(N=>{let{action:$,location:V,delta:de}=N;if(lt){lt=!1;return}Ia(tt.size===0||de!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let je=L({currentLocation:w.location,nextLocation:V,historyAction:$});if(je&&de!=null){lt=!0,e.history.go(de*-1),ce(je,{state:"blocked",location:V,proceed(){ce(je,{state:"proceeding",proceed:void 0,reset:void 0,location:V}),e.history.go(de)},reset(){let Ge=new Map(w.blockers);Ge.set(je,Vl),q({blockers:Ge})}});return}return et($,V)}),n){H2(t,ye);let N=()=>U2(t,ye);t.addEventListener("pagehide",N),Ie=()=>t.removeEventListener("pagehide",N)}return w.initialized||et(Tn.Pop,w.location,{initialHydration:!0}),k}function zt(){f&&f(),Ie&&Ie(),m.clear(),B&&B.abort(),w.fetchers.forEach((N,$)=>yt($)),w.blockers.forEach((N,$)=>at($))}function Xe(N){return m.add(N),()=>m.delete(N)}function q(N,$){$===void 0&&($={}),w=hn({},w,N);let V=[],de=[];d.v7_fetcherPersist&&w.fetchers.forEach((je,Ge)=>{je.state==="idle"&&(pt.has(Ge)?de.push(Ge):V.push(Ge))}),[...m].forEach(je=>je(w,{deletedFetchers:de,unstable_viewTransitionOpts:$.viewTransitionOpts,unstable_flushSync:$.flushSync===!0})),d.v7_fetcherPersist&&(V.forEach(je=>w.fetchers.delete(je)),de.forEach(je=>yt(je)))}function Te(N,$,V){var de,je;let{flushSync:Ge}=V===void 0?{}:V,Be=w.actionData!=null&&w.navigation.formMethod!=null&&Gr(w.navigation.formMethod)&&w.navigation.state==="loading"&&((de=N.state)==null?void 0:de._isRedirect)!==!0,$e;$.actionData?Object.keys($.actionData).length>0?$e=$.actionData:$e=null:Be?$e=w.actionData:$e=null;let Ze=$.loaderData?yg(w.loaderData,$.loaderData,$.matches||[],$.errors):w.loaderData,Qe=w.blockers;Qe.size>0&&(Qe=new Map(Qe),Qe.forEach((Ke,nt)=>Qe.set(nt,Vl)));let Lt=I===!0||w.navigation.formMethod!=null&&Gr(w.navigation.formMethod)&&((je=N.state)==null?void 0:je._isRedirect)!==!0;i&&(l=i,i=void 0),Me||D===Tn.Pop||(D===Tn.Push?e.history.push(N,N.state):D===Tn.Replace&&e.history.replace(N,N.state));let Dt;if(D===Tn.Pop){let Ke=ye.get(w.location.pathname);Ke&&Ke.has(N.pathname)?Dt={currentLocation:w.location,nextLocation:N}:ye.has(N.pathname)&&(Dt={currentLocation:N,nextLocation:w.location})}else if(A){let Ke=ye.get(w.location.pathname);Ke?Ke.add(N.pathname):(Ke=new Set([N.pathname]),ye.set(w.location.pathname,Ke)),Dt={currentLocation:w.location,nextLocation:N}}q(hn({},$,{actionData:$e,loaderData:Ze,historyAction:D,location:N,initialized:!0,navigation:ld,revalidation:"idle",restoreScrollPosition:It(N,$.matches||w.matches),preventScrollReset:Lt,blockers:Qe}),{viewTransitionOpts:Dt,flushSync:Ge===!0}),D=Tn.Pop,I=!1,A=!1,Me=!1,Ae=!1,it=[],qe=[]}async function we(N,$){if(typeof N=="number"){e.history.go(N);return}let V=gf(w.location,w.matches,u,d.v7_prependBasename,N,d.v7_relativeSplatPath,$==null?void 0:$.fromRouteId,$==null?void 0:$.relative),{path:de,submission:je,error:Ge}=dg(d.v7_normalizeFormMethod,!1,V,$),Be=w.location,$e=Ai(w.location,de,$&&$.state);$e=hn({},$e,e.history.encodeLocation($e));let Ze=$&&$.replace!=null?$.replace:void 0,Qe=Tn.Push;Ze===!0?Qe=Tn.Replace:Ze===!1||je!=null&&Gr(je.formMethod)&&je.formAction===w.location.pathname+w.location.search&&(Qe=Tn.Replace);let Lt=$&&"preventScrollReset"in $?$.preventScrollReset===!0:void 0,Dt=($&&$.unstable_flushSync)===!0,Ke=L({currentLocation:Be,nextLocation:$e,historyAction:Qe});if(Ke){ce(Ke,{state:"blocked",location:$e,proceed(){ce(Ke,{state:"proceeding",proceed:void 0,reset:void 0,location:$e}),we(N,$)},reset(){let nt=new Map(w.blockers);nt.set(Ke,Vl),q({blockers:nt})}});return}return await et(Qe,$e,{submission:je,pendingError:Ge,preventScrollReset:Lt,replace:$&&$.replace,enableViewTransition:$&&$.unstable_viewTransition,flushSync:Dt})}function ut(){if(mt(),q({revalidation:"loading"}),w.navigation.state!=="submitting"){if(w.navigation.state==="idle"){et(w.historyAction,w.location,{startUninterruptedRevalidation:!0});return}et(D||w.historyAction,w.navigation.location,{overrideNavigation:w.navigation})}}async function et(N,$,V){B&&B.abort(),B=null,D=N,Me=(V&&V.startUninterruptedRevalidation)===!0,_t(w.location,w.matches),I=(V&&V.preventScrollReset)===!0,A=(V&&V.enableViewTransition)===!0;let de=i||l,je=V&&V.overrideNavigation,Ge=el(de,$,u),Be=(V&&V.flushSync)===!0;if(!Ge){let Ke=Dr(404,{pathname:$.pathname}),{matches:nt,route:ge}=wg(de);Re(),Te($,{matches:nt,loaderData:{},errors:{[ge.id]:Ke}},{flushSync:Be});return}if(w.initialized&&!Ae&&F2(w.location,$)&&!(V&&V.submission&&Gr(V.submission.formMethod))){Te($,{matches:Ge},{flushSync:Be});return}B=new AbortController;let $e=La(e.history,$,B.signal,V&&V.submission),Ze;if(V&&V.pendingError)Ze=[mi(Ge).route.id,{type:mn.error,error:V.pendingError}];else if(V&&V.submission&&Gr(V.submission.formMethod)){let Ke=await ht($e,$,V.submission,Ge,{replace:V.replace,flushSync:Be});if(Ke.shortCircuited)return;Ze=Ke.pendingActionResult,je=id($,V.submission),Be=!1,$e=La(e.history,$e.url,$e.signal)}let{shortCircuited:Qe,loaderData:Lt,errors:Dt}=await Ct($e,$,Ge,je,V&&V.submission,V&&V.fetcherSubmission,V&&V.replace,V&&V.initialHydration===!0,Be,Ze);Qe||(B=null,Te($,hn({matches:Ge},bg(Ze),{loaderData:Lt,errors:Dt})))}async function ht(N,$,V,de,je){je===void 0&&(je={}),mt();let Ge=z2($,V);q({navigation:Ge},{flushSync:je.flushSync===!0});let Be,$e=yf(de,$);if(!$e.route.action&&!$e.route.lazy)Be={type:mn.error,error:Dr(405,{method:N.method,pathname:$.pathname,routeId:$e.route.id})};else if(Be=(await me("action",N,[$e],de))[0],N.signal.aborted)return{shortCircuited:!0};if(va(Be)){let Ze;return je&&je.replace!=null?Ze=je.replace:Ze=vg(Be.response.headers.get("Location"),new URL(N.url),u)===w.location.pathname+w.location.search,await z(N,Be,{submission:V,replace:Ze}),{shortCircuited:!0}}if(ma(Be))throw Dr(400,{type:"defer-action"});if(_r(Be)){let Ze=mi(de,$e.route.id);return(je&&je.replace)!==!0&&(D=Tn.Push),{pendingActionResult:[Ze.route.id,Be]}}return{pendingActionResult:[$e.route.id,Be]}}async function Ct(N,$,V,de,je,Ge,Be,$e,Ze,Qe){let Lt=de||id($,je),Dt=je||Ge||Eg(Lt),Ke=i||l,[nt,ge]=fg(e.history,w,V,Dt,$,d.v7_partialHydration&&$e===!0,d.unstable_skipActionErrorRevalidation,Ae,it,qe,pt,ve,te,Ke,u,Qe);if(Re(he=>!(V&&V.some(U=>U.route.id===he))||nt&&nt.some(U=>U.route.id===he)),Y=++re,nt.length===0&&ge.length===0){let he=Ye();return Te($,hn({matches:V,loaderData:{},errors:Qe&&_r(Qe[1])?{[Qe[0]]:Qe[1].error}:null},bg(Qe),he?{fetchers:new Map(w.fetchers)}:{}),{flushSync:Ze}),{shortCircuited:!0}}if(!Me&&(!d.v7_partialHydration||!$e)){ge.forEach(U=>{let C=w.fetchers.get(U.key),M=Kl(void 0,C?C.data:void 0);w.fetchers.set(U.key,M)});let he;Qe&&!_r(Qe[1])?he={[Qe[0]]:Qe[1].data}:w.actionData&&(Object.keys(w.actionData).length===0?he=null:he=w.actionData),q(hn({navigation:Lt},he!==void 0?{actionData:he}:{},ge.length>0?{fetchers:new Map(w.fetchers)}:{}),{flushSync:Ze})}ge.forEach(he=>{K.has(he.key)&&Mt(he.key),he.controller&&K.set(he.key,he.controller)});let W=()=>ge.forEach(he=>Mt(he.key));B&&B.signal.addEventListener("abort",W);let{loaderResults:ue,fetcherResults:ae}=await Le(w.matches,V,nt,ge,N);if(N.signal.aborted)return{shortCircuited:!0};B&&B.signal.removeEventListener("abort",W),ge.forEach(he=>K.delete(he.key));let fe=Sg([...ue,...ae]);if(fe){if(fe.idx>=nt.length){let he=ge[fe.idx-nt.length].key;te.add(he)}return await z(N,fe.result,{replace:Be}),{shortCircuited:!0}}let{loaderData:H,errors:ie}=hg(w,V,nt,ue,Qe,ge,ae,st);st.forEach((he,U)=>{he.subscribe(C=>{(C||he.done)&&st.delete(U)})}),d.v7_partialHydration&&$e&&w.errors&&Object.entries(w.errors).filter(he=>{let[U]=he;return!nt.some(C=>C.route.id===U)}).forEach(he=>{let[U,C]=he;ie=Object.assign(ie||{},{[U]:C})});let Se=Ye(),ke=Z(Y),We=Se||ke||ge.length>0;return hn({loaderData:H,errors:ie},We?{fetchers:new Map(w.fetchers)}:{})}function ln(N,$,V,de){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");K.has(N)&&Mt(N);let je=(de&&de.unstable_flushSync)===!0,Ge=i||l,Be=gf(w.location,w.matches,u,d.v7_prependBasename,V,d.v7_relativeSplatPath,$,de==null?void 0:de.relative),$e=el(Ge,Be,u);if(!$e){ft(N,$,Dr(404,{pathname:Be}),{flushSync:je});return}let{path:Ze,submission:Qe,error:Lt}=dg(d.v7_normalizeFormMethod,!0,Be,de);if(Lt){ft(N,$,Lt,{flushSync:je});return}let Dt=yf($e,Ze);if(I=(de&&de.preventScrollReset)===!0,Qe&&Gr(Qe.formMethod)){Bt(N,$,Ze,Dt,$e,je,Qe);return}ve.set(N,{routeId:$,path:Ze}),_e(N,$,Ze,Dt,$e,je,Qe)}async function Bt(N,$,V,de,je,Ge,Be){if(mt(),ve.delete(N),!de.route.action&&!de.route.lazy){let M=Dr(405,{method:Be.formMethod,pathname:V,routeId:$});ft(N,$,M,{flushSync:Ge});return}let $e=w.fetchers.get(N);bt(N,B2(Be,$e),{flushSync:Ge});let Ze=new AbortController,Qe=La(e.history,V,Ze.signal,Be);K.set(N,Ze);let Lt=re,Ke=(await me("action",Qe,[de],je))[0];if(Qe.signal.aborted){K.get(N)===Ze&&K.delete(N);return}if(d.v7_fetcherPersist&&pt.has(N)){if(va(Ke)||_r(Ke)){bt(N,Mo(void 0));return}}else{if(va(Ke))if(K.delete(N),Y>Lt){bt(N,Mo(void 0));return}else return te.add(N),bt(N,Kl(Be)),z(Qe,Ke,{fetcherSubmission:Be});if(_r(Ke)){ft(N,$,Ke.error);return}}if(ma(Ke))throw Dr(400,{type:"defer-action"});let nt=w.navigation.location||w.location,ge=La(e.history,nt,Ze.signal),W=i||l,ue=w.navigation.state!=="idle"?el(W,w.navigation.location,u):w.matches;Ft(ue,"Didn't find any matches after fetcher action");let ae=++re;oe.set(N,ae);let fe=Kl(Be,Ke.data);w.fetchers.set(N,fe);let[H,ie]=fg(e.history,w,ue,Be,nt,!1,d.unstable_skipActionErrorRevalidation,Ae,it,qe,pt,ve,te,W,u,[de.route.id,Ke]);ie.filter(M=>M.key!==N).forEach(M=>{let ee=M.key,Ce=w.fetchers.get(ee),G=Kl(void 0,Ce?Ce.data:void 0);w.fetchers.set(ee,G),K.has(ee)&&Mt(ee),M.controller&&K.set(ee,M.controller)}),q({fetchers:new Map(w.fetchers)});let Se=()=>ie.forEach(M=>Mt(M.key));Ze.signal.addEventListener("abort",Se);let{loaderResults:ke,fetcherResults:We}=await Le(w.matches,ue,H,ie,ge);if(Ze.signal.aborted)return;Ze.signal.removeEventListener("abort",Se),oe.delete(N),K.delete(N),ie.forEach(M=>K.delete(M.key));let he=Sg([...ke,...We]);if(he){if(he.idx>=H.length){let M=ie[he.idx-H.length].key;te.add(M)}return z(ge,he.result)}let{loaderData:U,errors:C}=hg(w,w.matches,H,ke,void 0,ie,We,st);if(w.fetchers.has(N)){let M=Mo(Ke.data);w.fetchers.set(N,M)}Z(ae),w.navigation.state==="loading"&&ae>Y?(Ft(D,"Expected pending action"),B&&B.abort(),Te(w.navigation.location,{matches:ue,loaderData:U,errors:C,fetchers:new Map(w.fetchers)})):(q({errors:C,loaderData:yg(w.loaderData,U,ue,C),fetchers:new Map(w.fetchers)}),Ae=!1)}async function _e(N,$,V,de,je,Ge,Be){let $e=w.fetchers.get(N);bt(N,Kl(Be,$e?$e.data:void 0),{flushSync:Ge});let Ze=new AbortController,Qe=La(e.history,V,Ze.signal);K.set(N,Ze);let Lt=re,Ke=(await me("loader",Qe,[de],je))[0];if(ma(Ke)&&(Ke=await _0(Ke,Qe.signal,!0)||Ke),K.get(N)===Ze&&K.delete(N),!Qe.signal.aborted){if(pt.has(N)){bt(N,Mo(void 0));return}if(va(Ke))if(Y>Lt){bt(N,Mo(void 0));return}else{te.add(N),await z(Qe,Ke);return}if(_r(Ke)){ft(N,$,Ke.error);return}Ft(!ma(Ke),"Unhandled fetcher deferred data"),bt(N,Mo(Ke.data))}}async function z(N,$,V){let{submission:de,fetcherSubmission:je,replace:Ge}=V===void 0?{}:V;$.response.headers.has("X-Remix-Revalidate")&&(Ae=!0);let Be=$.response.headers.get("Location");Ft(Be,"Expected a Location header on the redirect Response"),Be=vg(Be,new URL(N.url),u);let $e=Ai(w.location,Be,{_isRedirect:!0});if(n){let nt=!1;if($.response.headers.has("X-Remix-Reload-Document"))nt=!0;else if(vm.test(Be)){const ge=e.history.createURL(Be);nt=ge.origin!==t.location.origin||ru(ge.pathname,u)==null}if(nt){Ge?t.location.replace(Be):t.location.assign(Be);return}}B=null;let Ze=Ge===!0?Tn.Replace:Tn.Push,{formMethod:Qe,formAction:Lt,formEncType:Dt}=w.navigation;!de&&!je&&Qe&&Lt&&Dt&&(de=Eg(w.navigation));let Ke=de||je;if(E2.has($.response.status)&&Ke&&Gr(Ke.formMethod))await et(Ze,$e,{submission:hn({},Ke,{formAction:Be}),preventScrollReset:I});else{let nt=id($e,de);await et(Ze,$e,{overrideNavigation:nt,fetcherSubmission:je,preventScrollReset:I})}}async function me(N,$,V,de){try{let je=await D2(c,N,$,V,de,a,o);return await Promise.all(je.map((Ge,Be)=>{if(j2(Ge)){let $e=Ge.result;return{type:mn.redirect,response:_2($e,$,V[Be].route.id,de,u,d.v7_relativeSplatPath)}}return M2(Ge)}))}catch(je){return V.map(()=>({type:mn.error,error:je}))}}async function Le(N,$,V,de,je){let[Ge,...Be]=await Promise.all([V.length?me("loader",je,V,$):[],...de.map($e=>{if($e.matches&&$e.match&&$e.controller){let Ze=La(e.history,$e.path,$e.controller.signal);return me("loader",Ze,[$e.match],$e.matches).then(Qe=>Qe[0])}else return Promise.resolve({type:mn.error,error:Dr(404,{pathname:$e.path})})})]);return await Promise.all([Cg(N,V,Ge,Ge.map(()=>je.signal),!1,w.loaderData),Cg(N,de.map($e=>$e.match),Be,de.map($e=>$e.controller?$e.controller.signal:null),!0)]),{loaderResults:Ge,fetcherResults:Be}}function mt(){Ae=!0,it.push(...Re()),ve.forEach((N,$)=>{K.has($)&&(qe.push($),Mt($))})}function bt(N,$,V){V===void 0&&(V={}),w.fetchers.set(N,$),q({fetchers:new Map(w.fetchers)},{flushSync:(V&&V.flushSync)===!0})}function ft(N,$,V,de){de===void 0&&(de={});let je=mi(w.matches,$);yt(N),q({errors:{[je.route.id]:V},fetchers:new Map(w.fetchers)},{flushSync:(de&&de.flushSync)===!0})}function xt(N){return d.v7_fetcherPersist&&(Oe.set(N,(Oe.get(N)||0)+1),pt.has(N)&&pt.delete(N)),w.fetchers.get(N)||x2}function yt(N){let $=w.fetchers.get(N);K.has(N)&&!($&&$.state==="loading"&&oe.has(N))&&Mt(N),ve.delete(N),oe.delete(N),te.delete(N),pt.delete(N),w.fetchers.delete(N)}function un(N){if(d.v7_fetcherPersist){let $=(Oe.get(N)||0)-1;$<=0?(Oe.delete(N),pt.add(N)):Oe.set(N,$)}else yt(N);q({fetchers:new Map(w.fetchers)})}function Mt(N){let $=K.get(N);Ft($,"Expected fetch controller: "+N),$.abort(),K.delete(N)}function $t(N){for(let $ of N){let V=xt($),de=Mo(V.data);w.fetchers.set($,de)}}function Ye(){let N=[],$=!1;for(let V of te){let de=w.fetchers.get(V);Ft(de,"Expected fetcher: "+V),de.state==="loading"&&(te.delete(V),N.push(V),$=!0)}return $t(N),$}function Z(N){let $=[];for(let[V,de]of oe)if(de0}function He(N,$){let V=w.blockers.get(N)||Vl;return tt.get(N)!==$&&tt.set(N,$),V}function at(N){w.blockers.delete(N),tt.delete(N)}function ce(N,$){let V=w.blockers.get(N)||Vl;Ft(V.state==="unblocked"&&$.state==="blocked"||V.state==="blocked"&&$.state==="blocked"||V.state==="blocked"&&$.state==="proceeding"||V.state==="blocked"&&$.state==="unblocked"||V.state==="proceeding"&&$.state==="unblocked","Invalid blocker state transition: "+V.state+" -> "+$.state);let de=new Map(w.blockers);de.set(N,$),q({blockers:de})}function L(N){let{currentLocation:$,nextLocation:V,historyAction:de}=N;if(tt.size===0)return;tt.size>1&&Ia(!1,"A router only supports one blocker at a time");let je=Array.from(tt.entries()),[Ge,Be]=je[je.length-1],$e=w.blockers.get(Ge);if(!($e&&$e.state==="proceeding")&&Be({currentLocation:$,nextLocation:V,historyAction:de}))return Ge}function Re(N){let $=[];return st.forEach((V,de)=>{(!N||N(de))&&(V.cancel(),$.push(de),st.delete(de))}),$}function Ve(N,$,V){if(y=N,g=$,b=V||null,!x&&w.navigation===ld){x=!0;let de=It(w.location,w.matches);de!=null&&q({restoreScrollPosition:de})}return()=>{y=null,g=null,b=null}}function Pt(N,$){return b&&b(N,$.map(de=>ZE(de,w.loaderData)))||N.key}function _t(N,$){if(y&&g){let V=Pt(N,$);y[V]=g()}}function It(N,$){if(y){let V=Pt(N,$),de=y[V];if(typeof de=="number")return de}return null}function Wt(N){a={},i=vf(N,o,void 0,a)}return k={get basename(){return u},get future(){return d},get state(){return w},get routes(){return l},get window(){return t},initialize:Rt,subscribe:Xe,enableScrollRestoration:Ve,navigate:we,fetch:ln,revalidate:ut,createHref:N=>e.history.createHref(N),encodeLocation:N=>e.history.encodeLocation(N),getFetcher:xt,deleteFetcher:un,dispose:zt,getBlocker:He,deleteBlocker:at,_internalFetchControllers:K,_internalActiveDeferreds:st,_internalSetRoutes:Wt},k}function R2(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function gf(e,t,n,r,o,a,l,i){let u,c;if(l){u=[];for(let f of t)if(u.push(f),f.route.id===l){c=f;break}}else u=t,c=t[t.length-1];let d=v2(o||".",m2(u,a),ru(e.pathname,n)||e.pathname,i==="path");return o==null&&(d.search=e.search,d.hash=e.hash),(o==null||o===""||o===".")&&c&&c.route.index&&!gm(d.search)&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(d.pathname=d.pathname==="/"?n:wa([n,d.pathname])),nu(d)}function dg(e,t,n,r){if(!r||!R2(r))return{path:n};if(r.formMethod&&!$2(r.formMethod))return{path:n,error:Dr(405,{method:r.formMethod})};let o=()=>({path:n,error:Dr(400,{type:"invalid-body"})}),a=r.formMethod||"get",l=e?a.toUpperCase():a.toLowerCase(),i=N0(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Gr(l))return o();let m=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((y,b)=>{let[g,x]=b;return""+y+g+"="+x+` `},""):String(r.body);return{path:n,submission:{formMethod:l,formAction:i,formEncType:r.formEncType,formData:void 0,json:void 0,text:m}}}else if(r.formEncType==="application/json"){if(!Gr(l))return o();try{let m=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:l,formAction:i,formEncType:r.formEncType,formData:void 0,json:m,text:void 0}}}catch{return o()}}}Ft(typeof FormData=="function","FormData is not available in this environment");let u,c;if(r.formData)u=hf(r.formData),c=r.formData;else if(r.body instanceof FormData)u=hf(r.body),c=r.body;else if(r.body instanceof URLSearchParams)u=r.body,c=gg(u);else if(r.body==null)u=new URLSearchParams,c=new FormData;else try{u=new URLSearchParams(r.body),c=gg(u)}catch{return o()}let d={formMethod:l,formAction:i,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(Gr(d.formMethod))return{path:n,submission:d};let f=fo(n);return t&&f.search&&gm(f.search)&&u.append("index",""),f.search="?"+u,{path:nu(f),submission:d}}function I2(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function fg(e,t,n,r,o,a,l,i,u,c,d,f,m,y,b,g){let x=g?_r(g[1])?g[1].error:g[1].data:void 0,h=e.createURL(t.location),p=e.createURL(o),v=g&&_r(g[1])?g[0]:void 0,E=v?I2(n,v):n,O=g?g[1].statusCode:void 0,k=l&&O&&O>=400,w=E.filter((I,B)=>{let{route:A}=I;if(A.lazy)return!0;if(A.loader==null)return!1;if(a)return typeof A.loader!="function"||A.loader.hydrate?!0:t.loaderData[A.id]===void 0&&(!t.errors||t.errors[A.id]===void 0);if(T2(t.loaderData,t.matches[B],I)||u.some(Me=>Me===I.route.id))return!0;let ye=t.matches[B],Ie=I;return pg(I,hn({currentUrl:h,currentParams:ye.params,nextUrl:p,nextParams:Ie.params},r,{actionResult:x,unstable_actionStatus:O,defaultShouldRevalidate:k?!1:i||h.pathname+h.search===p.pathname+p.search||h.search!==p.search||D0(ye,Ie)}))}),D=[];return f.forEach((I,B)=>{if(a||!n.some(Ae=>Ae.route.id===I.routeId)||d.has(B))return;let A=el(y,I.path,b);if(!A){D.push({key:B,routeId:I.routeId,path:I.path,matches:null,match:null,controller:null});return}let ye=t.fetchers.get(B),Ie=yf(A,I.path),Me=!1;m.has(B)?Me=!1:c.includes(B)?Me=!0:ye&&ye.state!=="idle"&&ye.data===void 0?Me=i:Me=pg(Ie,hn({currentUrl:h,currentParams:t.matches[t.matches.length-1].params,nextUrl:p,nextParams:n[n.length-1].params},r,{actionResult:x,unstable_actionStatus:O,defaultShouldRevalidate:k?!1:i})),Me&&D.push({key:B,routeId:I.routeId,path:I.path,matches:A,match:Ie,controller:new AbortController})}),[w,D]}function T2(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function D0(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function pg(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function mg(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];Ft(o,"No route found in manifest");let a={};for(let l in r){let u=o[l]!==void 0&&l!=="hasErrorBoundary";Ia(!u,'Route "'+o.id+'" has a static property "'+l+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+l+'" will be ignored.')),!u&&!YE.has(l)&&(a[l]=r[l])}Object.assign(o,a),Object.assign(o,hn({},t(o),{lazy:void 0}))}function k2(e){return Promise.all(e.matches.map(t=>t.resolve()))}async function D2(e,t,n,r,o,a,l,i){let u=r.reduce((f,m)=>f.add(m.route.id),new Set),c=new Set,d=await e({matches:o.map(f=>{let m=u.has(f.route.id);return hn({},f,{shouldLoad:m,resolve:b=>(c.add(f.route.id),m?N2(t,n,f,a,l,b,i):Promise.resolve({type:mn.data,result:void 0}))})}),request:n,params:o[0].params,context:i});return o.forEach(f=>Ft(c.has(f.route.id),'`match.resolve()` was not called for route id "'+f.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),d.filter((f,m)=>u.has(o[m].route.id))}async function N2(e,t,n,r,o,a,l){let i,u,c=d=>{let f,m=new Promise((g,x)=>f=x);u=()=>f(),t.signal.addEventListener("abort",u);let y=g=>typeof d!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):d({request:t,params:n.params,context:l},...g!==void 0?[g]:[]),b;return a?b=a(g=>y(g)):b=(async()=>{try{return{type:"data",result:await y()}}catch(g){return{type:"error",result:g}}})(),Promise.race([b,m])};try{let d=n.route[e];if(n.route.lazy)if(d){let f,[m]=await Promise.all([c(d).catch(y=>{f=y}),mg(n.route,o,r)]);if(f!==void 0)throw f;i=m}else if(await mg(n.route,o,r),d=n.route[e],d)i=await c(d);else if(e==="action"){let f=new URL(t.url),m=f.pathname+f.search;throw Dr(405,{method:t.method,pathname:m,routeId:n.route.id})}else return{type:mn.data,result:void 0};else if(d)i=await c(d);else{let f=new URL(t.url),m=f.pathname+f.search;throw Dr(404,{pathname:m})}Ft(i.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(d){return{type:mn.error,result:d}}finally{u&&t.signal.removeEventListener("abort",u)}return i}async function M2(e){let{result:t,type:n,status:r}=e;if(M0(t)){let l;try{let i=t.headers.get("Content-Type");i&&/\bapplication\/json\b/.test(i)?t.body==null?l=null:l=await t.json():l=await t.text()}catch(i){return{type:mn.error,error:i}}return n===mn.error?{type:mn.error,error:new pm(t.status,t.statusText,l),statusCode:t.status,headers:t.headers}:{type:mn.data,data:l,statusCode:t.status,headers:t.headers}}if(n===mn.error)return{type:mn.error,error:t,statusCode:mm(t)?t.status:r};if(A2(t)){var o,a;return{type:mn.deferred,deferredData:t,statusCode:(o=t.init)==null?void 0:o.status,headers:((a=t.init)==null?void 0:a.headers)&&new Headers(t.init.headers)}}return{type:mn.data,data:t,statusCode:r}}function _2(e,t,n,r,o,a){let l=e.headers.get("Location");if(Ft(l,"Redirects returned/thrown from loaders/actions must have a Location header"),!vm.test(l)){let i=r.slice(0,r.findIndex(u=>u.route.id===n)+1);l=gf(new URL(t.url),i,o,!0,l,a),e.headers.set("Location",l)}return e}function vg(e,t,n){if(vm.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),a=ru(o.pathname,n)!=null;if(o.origin===t.origin&&a)return o.pathname+o.search+o.hash}return e}function La(e,t,n,r){let o=e.createURL(N0(t)).toString(),a={signal:n};if(r&&Gr(r.formMethod)){let{formMethod:l,formEncType:i}=r;a.method=l.toUpperCase(),i==="application/json"?(a.headers=new Headers({"Content-Type":i}),a.body=JSON.stringify(r.json)):i==="text/plain"?a.body=r.text:i==="application/x-www-form-urlencoded"&&r.formData?a.body=hf(r.formData):a.body=r.formData}return new Request(o,a)}function hf(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function gg(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function L2(e,t,n,r,o,a){let l={},i=null,u,c=!1,d={},f=r&&_r(r[1])?r[1].error:void 0;return n.forEach((m,y)=>{let b=t[y].route.id;if(Ft(!va(m),"Cannot handle redirect results in processLoaderData"),_r(m)){let g=m.error;if(f!==void 0&&(g=f,f=void 0),i=i||{},a)i[b]=g;else{let x=mi(e,b);i[x.route.id]==null&&(i[x.route.id]=g)}l[b]=void 0,c||(c=!0,u=mm(m.error)?m.error.status:500),m.headers&&(d[b]=m.headers)}else ma(m)?(o.set(b,m.deferredData),l[b]=m.deferredData.data,m.statusCode!=null&&m.statusCode!==200&&!c&&(u=m.statusCode),m.headers&&(d[b]=m.headers)):(l[b]=m.data,m.statusCode&&m.statusCode!==200&&!c&&(u=m.statusCode),m.headers&&(d[b]=m.headers))}),f!==void 0&&r&&(i={[r[0]]:f},l[r[0]]=void 0),{loaderData:l,errors:i,statusCode:u||200,loaderHeaders:d}}function hg(e,t,n,r,o,a,l,i){let{loaderData:u,errors:c}=L2(t,n,r,o,i,!1);for(let d=0;dr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function wg(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Dr(e,t){let{pathname:n,routeId:r,method:o,type:a}=t===void 0?{}:t,l="Unknown Server Error",i="Unknown @remix-run/router error";return e===400?(l="Bad Request",o&&n&&r?i="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":a==="defer-action"?i="defer() is not supported in actions":a==="invalid-body"&&(i="Unable to encode submission body")):e===403?(l="Forbidden",i='Route "'+r+'" does not match URL "'+n+'"'):e===404?(l="Not Found",i='No route matches URL "'+n+'"'):e===405&&(l="Method Not Allowed",o&&n&&r?i="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(i='Invalid request method "'+o.toUpperCase()+'"')),new pm(e||500,l,new Error(i),!0)}function Sg(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(va(n))return{result:n,idx:t}}}function N0(e){let t=typeof e=="string"?fo(e):e;return nu(hn({},t,{hash:""}))}function F2(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function j2(e){return M0(e.result)&&C2.has(e.result.status)}function ma(e){return e.type===mn.deferred}function _r(e){return e.type===mn.error}function va(e){return(e&&e.type)===mn.redirect}function A2(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function M0(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function $2(e){return S2.has(e.toLowerCase())}function Gr(e){return b2.has(e.toLowerCase())}async function Cg(e,t,n,r,o,a){for(let l=0;lf.route.id===u.route.id),d=c!=null&&!D0(c,u)&&(a&&a[u.route.id])!==void 0;if(ma(i)&&(o||d)){let f=r[l];Ft(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await _0(i,f,o).then(m=>{m&&(n[l]=m||n[l])})}}}async function _0(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:mn.data,data:e.deferredData.unwrappedData}}catch(o){return{type:mn.error,error:o}}return{type:mn.data,data:e.deferredData.data}}}function gm(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function yf(e,t){let n=typeof t=="string"?fo(t).search:t.search;if(e[e.length-1].route.index&&gm(n||""))return e[e.length-1];let r=I0(e);return r[r.length-1]}function Eg(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:a,json:l}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(l!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:l,text:void 0}}}function id(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function z2(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Kl(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function B2(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Mo(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function H2(e,t){try{let n=e.sessionStorage.getItem(k0);if(n){let r=JSON.parse(n);for(let[o,a]of Object.entries(r||{}))a&&Array.isArray(a)&&t.set(o,new Set(a||[]))}}catch{}}function U2(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(k0,JSON.stringify(n))}catch(r){Ia(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** * React Router v6.23.1 * @@ -485,7 +485,7 @@ svg.p-icon g, `).concat(Xx,` `).concat(Yx,` } -`),St={cProps:void 0,cParams:void 0,cName:void 0,defaultProps:{pt:void 0,ptOptions:void 0,unstyled:!1},context:{},globalCSS:void 0,classes:{},styles:"",extend:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.css,r=Fn(Fn({},t.defaultProps),St.defaultProps),o={},a=function(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return St.context=f,St.cProps=d,T.getMergedProps(d,r)},l=function(d){return T.getDiffProps(d,r)},i=function(){var d,f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;f.hasOwnProperty("pt")&&f.pt!==void 0&&(f=f.pt);var g=m,x=/./g.test(g)&&!!y[g.split(".")[0]],h=x?T.toFlatCase(g.split(".")[1]):T.toFlatCase(g),p=y.hostName&&T.toFlatCase(y.hostName),v=p||y.props&&y.props.__TYPE&&T.toFlatCase(y.props.__TYPE)||"",E=h==="transition",O="data-pc-",k=function qe(K){return K!=null&&K.props?K.hostName?K.props.__TYPE===K.hostName?K.props:qe(K.parent):K.parent:void 0},w=function(K){var re,X;return((re=y.props)===null||re===void 0?void 0:re[K])||((X=k(y))===null||X===void 0?void 0:X[K])};St.cParams=y,St.cName=v;var D=w("ptOptions")||St.context.ptOptions||{},I=D.mergeSections,B=I===void 0?!0:I,A=D.mergeProps,ye=A===void 0?!1:A,Ie=function(){var K=Bo.apply(void 0,arguments);return Array.isArray(K)?{className:ze.apply(void 0,zg(K))}:T.isString(K)?{className:K}:K!=null&&K.hasOwnProperty("className")&&Array.isArray(K.className)?{className:ze.apply(void 0,zg(K.className))}:K},Me=b?x?W0(Ie,g,y):G0(Ie,g,y):void 0,Ae=x?void 0:mc(pc(f,v),Ie,g,y),it=!E&&Fn(Fn({},h==="root"&&Ef({},"".concat(O,"name"),y.props&&y.props.__parentMetadata?T.toFlatCase(y.props.__TYPE):v)),{},Ef({},"".concat(O,"section"),h));return B||!B&&Ae?ye?$s([Me,Ae,Object.keys(it).length?it:{}],{classNameMergeFunction:(d=St.context.ptOptions)===null||d===void 0?void 0:d.classNameMergeFunction}):Fn(Fn(Fn({},Me),Ae),Object.keys(it).length?it:{}):Fn(Fn({},Ae),Object.keys(it).length?it:{})},u=function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=d.props,m=d.state,y=function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return i((f||{}).pt,v,Fn(Fn({},d),E))},b=function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return i(v,E,O,!1)},g=function(){return St.context.unstyled||jt.unstyled||f.unstyled},x=function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return g()?void 0:Bo(n&&n.classes,v,Fn({props:f,state:m},E))},h=function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(O){var k,w=Bo(n&&n.inlineStyles,v,Fn({props:f,state:m},E)),D=Bo(o,v,Fn({props:f,state:m},E));return $s([D,w],{classNameMergeFunction:(k=St.context.ptOptions)===null||k===void 0?void 0:k.classNameMergeFunction})}};return{ptm:y,ptmo:b,sx:h,cx:x,isUnstyled:g}};return Fn(Fn({getProps:a,getOtherProps:l,setMetaData:u},t),{},{defaultProps:r})}},Bo=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=String(T.toFlatCase(n)).split("."),a=o.shift(),l=T.isNotEmpty(t)?Object.keys(t).find(function(i){return T.toFlatCase(i)===a}):"";return a?T.isObject(t)?e(T.getItemValue(t[l],r),o.join("."),r):void 0:T.getItemValue(t,r)},pc=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0,o=t==null?void 0:t._usept,a=function(i){var u,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d=r?r(i):i,f=T.toFlatCase(n);return(u=c?f!==St.cName?d==null?void 0:d[f]:void 0:d==null?void 0:d[f])!==null&&u!==void 0?u:d};return T.isNotEmpty(o)?{_usept:o,originalValue:a(t.originalValue),value:a(t.value)}:a(t,!0)},mc=function(t,n,r,o){var a=function(g){return n(g,r,o)};if(t!=null&&t.hasOwnProperty("_usept")){var l=t._usept||St.context.ptOptions||{},i=l.mergeSections,u=i===void 0?!0:i,c=l.mergeProps,d=c===void 0?!1:c,f=l.classNameMergeFunction,m=a(t.originalValue),y=a(t.value);return m===void 0&&y===void 0?void 0:T.isString(y)?y:T.isString(m)?m:u||!u&&y?d?$s([m,y],{classNameMergeFunction:f}):Fn(Fn({},m),y):y}return a(t)},Zx=function(){return pc(St.context.pt||jt.pt,void 0,function(t){return T.getItemValue(t,St.cParams)})},Qx=function(){return pc(St.context.pt||jt.pt,void 0,function(t){return Bo(t,St.cName,St.cParams)||T.getItemValue(t,St.cParams)})},W0=function(t,n,r){return mc(Zx(),t,n,r)},G0=function(t,n,r){return mc(Qx(),t,n,r)},no=function(t){var n=arguments.length>2?arguments[2]:void 0,r=n.name,o=n.styled,a=o===void 0?!1:o,l=n.hostName,i=l===void 0?"":l,u=W0(Bo,"global.css",St.cParams),c=T.toFlatCase(r),d=ga(Gx,{name:"base",manual:!0}),f=d.load,m=ga(qx,{name:"common",manual:!0}),y=m.load,b=ga(u,{name:"global",manual:!0}),g=b.load,x=ga(t,{name:r,manual:!0}),h=x.load,p=function(E){if(!i){var O=mc(pc((St.cProps||{}).pt,c),Bo,"hooks.".concat(E)),k=G0(Bo,"hooks.".concat(E));O==null||O(),k==null||k()}};p("useMountEffect"),Ir(function(){f(),g(),y(),a||h()}),Xt(function(){p("useUpdateEffect")}),Rr(function(){p("useUnmountEffect")})},on={defaultProps:{__TYPE:"IconBase",className:null,label:null,spin:!1},getProps:function(t){return T.getMergedProps(t,on.defaultProps)},getOtherProps:function(t){return T.getDiffProps(t,on.defaultProps)},getPTI:function(t){var n=T.isEmpty(t.label),r=on.getOtherProps(t),o={className:ze("p-icon",{"p-icon-spin":t.spin},t.className),role:n?void 0:"img","aria-label":n?void 0:t.label,"aria-hidden":n};return T.getMergedProps(r,o)}};function xf(){return xf=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:{},n=t.css,r=Fn(Fn({},t.defaultProps),St.defaultProps),o={},a=function(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return St.context=f,St.cProps=d,T.getMergedProps(d,r)},l=function(d){return T.getDiffProps(d,r)},i=function(){var d,f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;f.hasOwnProperty("pt")&&f.pt!==void 0&&(f=f.pt);var g=m,x=/./g.test(g)&&!!y[g.split(".")[0]],h=x?T.toFlatCase(g.split(".")[1]):T.toFlatCase(g),p=y.hostName&&T.toFlatCase(y.hostName),v=p||y.props&&y.props.__TYPE&&T.toFlatCase(y.props.__TYPE)||"",E=h==="transition",O="data-pc-",k=function qe(K){return K!=null&&K.props?K.hostName?K.props.__TYPE===K.hostName?K.props:qe(K.parent):K.parent:void 0},w=function(K){var re,Y;return((re=y.props)===null||re===void 0?void 0:re[K])||((Y=k(y))===null||Y===void 0?void 0:Y[K])};St.cParams=y,St.cName=v;var D=w("ptOptions")||St.context.ptOptions||{},I=D.mergeSections,B=I===void 0?!0:I,A=D.mergeProps,ye=A===void 0?!1:A,Ie=function(){var K=Bo.apply(void 0,arguments);return Array.isArray(K)?{className:ze.apply(void 0,zg(K))}:T.isString(K)?{className:K}:K!=null&&K.hasOwnProperty("className")&&Array.isArray(K.className)?{className:ze.apply(void 0,zg(K.className))}:K},Me=b?x?W0(Ie,g,y):G0(Ie,g,y):void 0,Ae=x?void 0:mc(pc(f,v),Ie,g,y),it=!E&&Fn(Fn({},h==="root"&&Ef({},"".concat(O,"name"),y.props&&y.props.__parentMetadata?T.toFlatCase(y.props.__TYPE):v)),{},Ef({},"".concat(O,"section"),h));return B||!B&&Ae?ye?$s([Me,Ae,Object.keys(it).length?it:{}],{classNameMergeFunction:(d=St.context.ptOptions)===null||d===void 0?void 0:d.classNameMergeFunction}):Fn(Fn(Fn({},Me),Ae),Object.keys(it).length?it:{}):Fn(Fn({},Ae),Object.keys(it).length?it:{})},u=function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=d.props,m=d.state,y=function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return i((f||{}).pt,v,Fn(Fn({},d),E))},b=function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return i(v,E,O,!1)},g=function(){return St.context.unstyled||jt.unstyled||f.unstyled},x=function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return g()?void 0:Bo(n&&n.classes,v,Fn({props:f,state:m},E))},h=function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(O){var k,w=Bo(n&&n.inlineStyles,v,Fn({props:f,state:m},E)),D=Bo(o,v,Fn({props:f,state:m},E));return $s([D,w],{classNameMergeFunction:(k=St.context.ptOptions)===null||k===void 0?void 0:k.classNameMergeFunction})}};return{ptm:y,ptmo:b,sx:h,cx:x,isUnstyled:g}};return Fn(Fn({getProps:a,getOtherProps:l,setMetaData:u},t),{},{defaultProps:r})}},Bo=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=String(T.toFlatCase(n)).split("."),a=o.shift(),l=T.isNotEmpty(t)?Object.keys(t).find(function(i){return T.toFlatCase(i)===a}):"";return a?T.isObject(t)?e(T.getItemValue(t[l],r),o.join("."),r):void 0:T.getItemValue(t,r)},pc=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0,o=t==null?void 0:t._usept,a=function(i){var u,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d=r?r(i):i,f=T.toFlatCase(n);return(u=c?f!==St.cName?d==null?void 0:d[f]:void 0:d==null?void 0:d[f])!==null&&u!==void 0?u:d};return T.isNotEmpty(o)?{_usept:o,originalValue:a(t.originalValue),value:a(t.value)}:a(t,!0)},mc=function(t,n,r,o){var a=function(g){return n(g,r,o)};if(t!=null&&t.hasOwnProperty("_usept")){var l=t._usept||St.context.ptOptions||{},i=l.mergeSections,u=i===void 0?!0:i,c=l.mergeProps,d=c===void 0?!1:c,f=l.classNameMergeFunction,m=a(t.originalValue),y=a(t.value);return m===void 0&&y===void 0?void 0:T.isString(y)?y:T.isString(m)?m:u||!u&&y?d?$s([m,y],{classNameMergeFunction:f}):Fn(Fn({},m),y):y}return a(t)},Zx=function(){return pc(St.context.pt||jt.pt,void 0,function(t){return T.getItemValue(t,St.cParams)})},Qx=function(){return pc(St.context.pt||jt.pt,void 0,function(t){return Bo(t,St.cName,St.cParams)||T.getItemValue(t,St.cParams)})},W0=function(t,n,r){return mc(Zx(),t,n,r)},G0=function(t,n,r){return mc(Qx(),t,n,r)},no=function(t){var n=arguments.length>2?arguments[2]:void 0,r=n.name,o=n.styled,a=o===void 0?!1:o,l=n.hostName,i=l===void 0?"":l,u=W0(Bo,"global.css",St.cParams),c=T.toFlatCase(r),d=ga(Gx,{name:"base",manual:!0}),f=d.load,m=ga(qx,{name:"common",manual:!0}),y=m.load,b=ga(u,{name:"global",manual:!0}),g=b.load,x=ga(t,{name:r,manual:!0}),h=x.load,p=function(E){if(!i){var O=mc(pc((St.cProps||{}).pt,c),Bo,"hooks.".concat(E)),k=G0(Bo,"hooks.".concat(E));O==null||O(),k==null||k()}};p("useMountEffect"),Ir(function(){f(),g(),y(),a||h()}),Xt(function(){p("useUpdateEffect")}),Rr(function(){p("useUnmountEffect")})},on={defaultProps:{__TYPE:"IconBase",className:null,label:null,spin:!1},getProps:function(t){return T.getMergedProps(t,on.defaultProps)},getOtherProps:function(t){return T.getDiffProps(t,on.defaultProps)},getPTI:function(t){var n=T.isEmpty(t.label),r=on.getOtherProps(t),o={className:ze("p-icon",{"p-icon-spin":t.spin},t.className),role:n?void 0:"img","aria-label":n?void 0:t.label,"aria-hidden":n};return T.getMergedProps(r,o)}};function xf(){return xf=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);nVe.width?(w.current.style.left="0px",w.current.style.right=window.innerWidth-Ve.width-ce+"px"):(w.current.style.right="",w.current.style.left=ce+"px"),w.current.style.top=L+"px",_.addClass(w.current,"p-tooltip-active")}else{var Wt=_.findCollisionPosition(Re),N=lt(Z,"my")||o.my||Wt.my,$=lt(Z,"at")||o.at||Wt.at;w.current.style.padding="0px",_.flipfitCollision(w.current,Z,N,$,function(V){var de=V.at,je=de.x,Ge=de.y,Be=V.my.x,$e=o.at?je!=="center"&&je!==Be?je:Ge:V.at["".concat(Wt.axis)];w.current.style.padding="",m($e),Ct($e),_.addClass(w.current,"p-tooltip-active")})}},Ct=function(Z){if(w.current){var He=getComputedStyle(w.current);Z==="left"?w.current.style.left=parseFloat(He.left)-parseFloat(He.paddingLeft)*2+"px":Z==="top"&&(w.current.style.top=parseFloat(He.top)-parseFloat(He.paddingTop)*2+"px")}},ln=function(){tt()||(A.current=!1)},Bt=function(Z){tt()||(A.current=!0,et(Z))},_e=function(Z){if(Z){var He=zt(Z),at=He.showEvents,ce=He.hideEvents,L=bt(Z);at.forEach(function(Re){return L==null?void 0:L.addEventListener(Re,ut)}),ce.forEach(function(Re){return L==null?void 0:L.addEventListener(Re,et)})}},z=function(Z){if(Z){var He=zt(Z),at=He.showEvents,ce=He.hideEvents,L=bt(Z);at.forEach(function(Re){return L==null?void 0:L.removeEventListener(Re,ut)}),ce.forEach(function(Re){return L==null?void 0:L.removeEventListener(Re,et)})}},me=function(Z,He){mt();var at=lt(I.current,Z.toLowerCase())||o[Z];at?ye.current["".concat(Z)]=setTimeout(function(){return He()},at):He()},Le=function(Z){if(Z){for(var He=arguments.length,at=new Array(He>1?He-1:0),ce=1;cee.length)&&(t=e.length);for(var n=0,r=new Array(t);nVe.width?(w.current.style.left="0px",w.current.style.right=window.innerWidth-Ve.width-ce+"px"):(w.current.style.right="",w.current.style.left=ce+"px"),w.current.style.top=L+"px",_.addClass(w.current,"p-tooltip-active")}else{var Wt=_.findCollisionPosition(Re),N=lt(Z,"my")||o.my||Wt.my,$=lt(Z,"at")||o.at||Wt.at;w.current.style.padding="0px",_.flipfitCollision(w.current,Z,N,$,function(V){var de=V.at,je=de.x,Ge=de.y,Be=V.my.x,$e=o.at?je!=="center"&&je!==Be?je:Ge:V.at["".concat(Wt.axis)];w.current.style.padding="",m($e),Ct($e),_.addClass(w.current,"p-tooltip-active")})}},Ct=function(Z){if(w.current){var He=getComputedStyle(w.current);Z==="left"?w.current.style.left=parseFloat(He.left)-parseFloat(He.paddingLeft)*2+"px":Z==="top"&&(w.current.style.top=parseFloat(He.top)-parseFloat(He.paddingTop)*2+"px")}},ln=function(){tt()||(A.current=!1)},Bt=function(Z){tt()||(A.current=!0,et(Z))},_e=function(Z){if(Z){var He=zt(Z),at=He.showEvents,ce=He.hideEvents,L=bt(Z);at.forEach(function(Re){return L==null?void 0:L.addEventListener(Re,ut)}),ce.forEach(function(Re){return L==null?void 0:L.addEventListener(Re,et)})}},z=function(Z){if(Z){var He=zt(Z),at=He.showEvents,ce=He.hideEvents,L=bt(Z);at.forEach(function(Re){return L==null?void 0:L.removeEventListener(Re,ut)}),ce.forEach(function(Re){return L==null?void 0:L.removeEventListener(Re,et)})}},me=function(Z,He){mt();var at=lt(I.current,Z.toLowerCase())||o[Z];at?ye.current["".concat(Z)]=setTimeout(function(){return He()},at):He()},Le=function(Z){if(Z){for(var He=arguments.length,at=new Array(He>1?He-1:0),ce=1;cee.length)&&(t=e.length);for(var n=0,r=new Array(t);n0,"p-inputwrapper-focus":r,"p-inputnumber-buttons-stacked":o,"p-inputnumber-buttons-horizontal":a,"p-inputnumber-buttons-vertical":l,"p-invalid":n.invalid})},input:function(t){var n=t.props,r=t.context;return ze("p-inputnumber-input",{"p-variant-filled":n.variant?n.variant==="filled":r&&r.inputStyle==="filled"})},buttonGroup:"p-inputnumber-button-group",incrementButton:function(t){var n=t.props;return ze("p-inputnumber-button p-inputnumber-button-up p-button p-button-icon-only p-component",{"p-disabled":n.disabled})},incrementIcon:"p-button-icon",decrementButton:function(t){var n=t.props;return ze("p-inputnumber-button p-inputnumber-button-down p-button p-button-icon-only p-component",{"p-disabled":n.disabled})},decrementIcon:"p-button-icon"},Y3=` @layer primereact { @@ -695,7 +695,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho width: 100%; } } -`,Du=St.extend({defaultProps:{__TYPE:"InputNumber",__parentMetadata:null,allowEmpty:!0,ariaLabelledBy:null,autoFocus:!1,buttonLayout:"stacked",className:null,currency:void 0,currencyDisplay:void 0,decrementButtonClassName:null,decrementButtonIcon:null,disabled:!1,format:!0,id:null,incrementButtonClassName:null,incrementButtonIcon:null,inputClassName:null,inputId:null,inputMode:null,inputRef:null,inputStyle:null,invalid:!1,variant:null,locale:void 0,localeMatcher:void 0,max:null,maxFractionDigits:void 0,maxLength:null,min:null,minFractionDigits:void 0,mode:"decimal",name:null,onBlur:null,onChange:null,onFocus:null,onKeyDown:null,onKeyUp:null,onValueChange:null,pattern:null,placeholder:null,prefix:null,readOnly:!1,required:!1,roundingMode:void 0,showButtons:!1,size:null,step:1,style:null,suffix:null,tabIndex:null,tooltip:null,tooltipOptions:null,type:"text",useGrouping:!0,value:null,children:void 0},css:{classes:X3,styles:Y3}});function Jg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Fa(e){for(var t=1;t0&&F>Gt){var Cn=Z()&&(o.minFractionDigits||0)0?se:""):se=le.slice(0,F-1)+le.slice(F)}else if(B.current.test(ct)){var dt=ce(le),Tt=dt.minusCharIndex,En=dt.currencyCharIndex;Tt===En-1&&(se=le.slice(0,Tt)+le.slice(F))}V(S,se,null,"delete-single")}else se=Pt(le,F,J),V(S,se,null,"delete-range");break;case"Delete":if(S.preventDefault(),F===J){var Zt=le.charAt(F),On=at(le),Rn=On.decimalCharIndex,hr=On.decimalCharIndexWithoutPrefix;if(N(Zt)){var oo=Ke(le);if(D.current.test(Zt))D.current.lastIndex=0,se=le.slice(0,F)+le.slice(F+2);else if(A.current.test(Zt))A.current.lastIndex=0,oo?g.current.setSelectionRange(F+1,F+1):se=le.slice(0,F)+le.slice(F+1);else if(Rn>0&&F>Rn){var Tr=Z()&&(o.minFractionDigits||0)0?se:""):se=le.slice(0,F)+le.slice(F+1)}V(S,se,null,"delete-back-single")}else se=Pt(le,F,J),V(S,se,null,"delete-range");break;case"End":S.preventDefault(),T.isEmpty(o.max)||nt(S,o.max);break;case"Home":S.preventDefault(),T.isEmpty(o.min)||nt(S,o.min);break;default:S.preventDefault();var sr=S.key;if(sr){var De=Ye(sr),P=Mt(sr);(S.code&&(S.code.startsWith("Digit")||S.code.startsWith("Numpad"))&&Number(sr)>=0&&Number(sr)<=9||P||De)&&L(S,sr,{isDecimalSign:De,isMinusSign:P})}break}}}},yt=function(S){if(S.preventDefault(),!(o.disabled||o.readOnly)){var F=(S.clipboardData||window.clipboardData).getData("Text");if(F){var J=Te(F);J!=null&&L(S,J.toString())}}},un=function(){return T.isEmpty(o.min)||o.min<0},Mt=function(S){return I.current.test(S)||S==="-"?(I.current.lastIndex=0,!0):!1},$t=function(S){return He(S)?S.toString().replace(/\.(?=[^.]*$)/,ye.current):S},Ye=function(S){return A.current.test(S)||He(S)?(A.current.lastIndex=0,!0):!1},Z=function(){return o.mode==="decimal"},He=function(S){var F=new Intl.NumberFormat(qe,te()),J=Te(F.format(S));return J===null?!1:J%1!==0},at=function(S){var F=S.search(A.current);A.current.lastIndex=0;var J=S.replace(Me.current,"").trim().replace(/\s/g,"").replace(B.current,""),le=J.search(A.current);return A.current.lastIndex=0,{decimalCharIndex:F,decimalCharIndexWithoutPrefix:le}},ce=function(S){var F=S.search(A.current);A.current.lastIndex=0;var J=S.search(I.current);I.current.lastIndex=0;var le=S.search(Ie.current);Ie.current.lastIndex=0;var se=S.search(B.current);return se===0&&E.current&&E.current.length>1&&(se=E.current.trim().length),B.current.lastIndex=0,{decimalCharIndex:F,minusCharIndex:J,suffixCharIndex:le,currencyCharIndex:se}},L=function(S,F){var J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{isDecimalSign:!1,isMinusSign:!1},le=F.search(I.current);if(I.current.lastIndex=0,!(!un()&&le!==-1)){var se=g.current.selectionStart,ct=g.current.selectionEnd,gt=g.current.value.trim(),Gt=ce(gt),wt=Gt.decimalCharIndex,tn=Gt.minusCharIndex,Cn=Gt.suffixCharIndex,dt=Gt.currencyCharIndex,Tt;if(J.isMinusSign){var En=tn===-1;(se===0||se===dt+1)&&(Tt=gt,(En||ct!==0)&&(Tt=Ve(gt,F,0,ct)),V(S,Tt,F,"insert"))}else if(J.isDecimalSign)wt>0&&se===wt?V(S,gt,F,"insert"):(wt>se&&wt0&&se>wt){if(se+F.length-(wt+1)<=Zt){var Rn=dt>=se?dt-1:Cn>=se?Cn:gt.length;Tt=gt.slice(0,se)+F+gt.slice(se+F.length,Rn)+gt.slice(Rn),V(S,Tt,F,On)}}else Tt=Ve(gt,F,se,ct),V(S,Tt,F,On)}}},Re=function(S){return S&&S.replace(Ie.current,"").trim().replace(/\s/g,"").replace(B.current,"")},Ve=function(S,F,J,le){var se=F==="."?F:F.split(".");if(se.length===2){var ct=S.slice(J,le).search(A.current);return A.current.lastIndex=0,ct>0?S.slice(0,J)+q(F)+Re(S).slice(le):S||q(F)}else{if(le-J===S.length)return q(F);if(J===0){var gt=T.isLetter(S[le])?le-1:le;return F+S.slice(gt)}else if(le===S.length)return S.slice(0,J)+F}var Gt=S.slice(J,le),wt=/\s$/.test(Gt)?" ":"";return S.slice(0,J)+F+wt+S.slice(le)},Pt=function(S,F,J){var le;return J-F===S.length?le="":F===0?le=S.slice(J):J===S.length?le=S.slice(0,F):le=S.slice(0,F)+S.slice(J),le},_t=function(){var S=g.current.selectionStart,F=g.current.value,J=F.length,le=null,se=(E.current||"").length;F=F.replace(Me.current,""),S=S-se;var ct=F.charAt(S);if(N(ct))return S+se;for(var gt=S-1;gt>=0;)if(ct=F.charAt(gt),N(ct)){le=gt+se;break}else gt--;if(le!==null)g.current.setSelectionRange(le+1,le+1);else{for(gt=S;gto.max?o.max:S},Ze=function(S,F,J,le){F=F||"";var se=g.current,ct=se.value,gt=q(S),Gt=ct.length;if(gt!==le&&(gt=Dt(gt,le)),Gt===0){se.value=gt,se.setSelectionRange(0,0);var wt=_t(),tn=wt+F.length;se.setSelectionRange(tn,tn)}else{var Cn=se.selectionStart,dt=se.selectionEnd;if(o.maxLength&&o.maxLength=0)&&(n[o]=e[o]);return n}function Bf(e,t){return Bf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Bf(e,t)}function ib(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Bf(e,t)}function q3(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Z3(e,t){e.classList?e.classList.add(t):q3(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Xg(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Q3(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Xg(e.className,t):e.setAttribute("class",Xg(e.className&&e.className.baseVal||"",t))}const Yg={disabled:!1},ub=dn.createContext(null);var sb=function(t){return t.scrollTop},ni="unmounted",sa="exited",ca="entering",za="entered",Hf="exiting",To=function(e){ib(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var l=o,i=l&&!l.isMounting?r.enter:r.appear,u;return a.appearStatus=null,r.in?i?(u=sa,a.appearStatus=ca):u=za:r.unmountOnExit||r.mountOnEnter?u=ni:u=sa,a.state={status:u},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var l=o.in;return l&&a.status===ni?{status:sa}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var a=null;if(o!==this.props){var l=this.state.status;this.props.in?l!==ca&&l!==za&&(a=ca):(l===ca||l===za)&&(a=Hf)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,a,l,i;return a=l=i=o,o!=null&&typeof o!="number"&&(a=o.exit,l=o.enter,i=o.appear!==void 0?o.appear:l),{exit:a,enter:l,appear:i}},n.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===ca){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:Qa.findDOMNode(this);l&&sb(l)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===sa&&this.setState({status:ni})},n.performEnter=function(o){var a=this,l=this.props.enter,i=this.context?this.context.isMounting:o,u=this.props.nodeRef?[i]:[Qa.findDOMNode(this),i],c=u[0],d=u[1],f=this.getTimeouts(),m=i?f.appear:f.enter;if(!o&&!l||Yg.disabled){this.safeSetState({status:za},function(){a.props.onEntered(c)});return}this.props.onEnter(c,d),this.safeSetState({status:ca},function(){a.props.onEntering(c,d),a.onTransitionEnd(m,function(){a.safeSetState({status:za},function(){a.props.onEntered(c,d)})})})},n.performExit=function(){var o=this,a=this.props.exit,l=this.getTimeouts(),i=this.props.nodeRef?void 0:Qa.findDOMNode(this);if(!a||Yg.disabled){this.safeSetState({status:sa},function(){o.props.onExited(i)});return}this.props.onExit(i),this.safeSetState({status:Hf},function(){o.props.onExiting(i),o.onTransitionEnd(l.exit,function(){o.safeSetState({status:sa},function(){o.props.onExited(i)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},n.setNextCallback=function(o){var a=this,l=!0;return this.nextCallback=function(i){l&&(l=!1,a.nextCallback=null,o(i))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},n.onTransitionEnd=function(o,a){this.setNextCallback(a);var l=this.props.nodeRef?this.props.nodeRef.current:Qa.findDOMNode(this),i=o==null&&!this.props.addEndListener;if(!l||i){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],c=u[0],d=u[1];this.props.addEndListener(c,d)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===ni)return null;var a=this.props,l=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var i=lb(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return dn.createElement(ub.Provider,{value:null},typeof l=="function"?l(o,i):dn.cloneElement(dn.Children.only(l),i))},t}(dn.Component);To.contextType=ub;To.propTypes={};function ja(){}To.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ja,onEntering:ja,onEntered:ja,onExit:ja,onExiting:ja,onExited:ja};To.UNMOUNTED=ni;To.EXITED=sa;To.ENTERING=ca;To.ENTERED=za;To.EXITING=Hf;const e4=To;var t4=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Z3(t,r)})},sd=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Q3(t,r)})},Cm=function(e){ib(t,e);function t(){for(var r,o=arguments.length,a=new Array(o),l=0;le.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&F>Gt){var Cn=Z()&&(o.minFractionDigits||0)0?se:""):se=le.slice(0,F-1)+le.slice(F)}else if(B.current.test(ct)){var dt=ce(le),Tt=dt.minusCharIndex,En=dt.currencyCharIndex;Tt===En-1&&(se=le.slice(0,Tt)+le.slice(F))}V(S,se,null,"delete-single")}else se=Pt(le,F,X),V(S,se,null,"delete-range");break;case"Delete":if(S.preventDefault(),F===X){var Zt=le.charAt(F),On=at(le),Rn=On.decimalCharIndex,hr=On.decimalCharIndexWithoutPrefix;if(N(Zt)){var oo=Ke(le);if(D.current.test(Zt))D.current.lastIndex=0,se=le.slice(0,F)+le.slice(F+2);else if(A.current.test(Zt))A.current.lastIndex=0,oo?g.current.setSelectionRange(F+1,F+1):se=le.slice(0,F)+le.slice(F+1);else if(Rn>0&&F>Rn){var Tr=Z()&&(o.minFractionDigits||0)0?se:""):se=le.slice(0,F)+le.slice(F+1)}V(S,se,null,"delete-back-single")}else se=Pt(le,F,X),V(S,se,null,"delete-range");break;case"End":S.preventDefault(),T.isEmpty(o.max)||nt(S,o.max);break;case"Home":S.preventDefault(),T.isEmpty(o.min)||nt(S,o.min);break;default:S.preventDefault();var sr=S.key;if(sr){var De=Ye(sr),P=Mt(sr);(S.code&&(S.code.startsWith("Digit")||S.code.startsWith("Numpad"))&&Number(sr)>=0&&Number(sr)<=9||P||De)&&L(S,sr,{isDecimalSign:De,isMinusSign:P})}break}}}},yt=function(S){if(S.preventDefault(),!(o.disabled||o.readOnly)){var F=(S.clipboardData||window.clipboardData).getData("Text");if(F){var X=Te(F);X!=null&&L(S,X.toString())}}},un=function(){return T.isEmpty(o.min)||o.min<0},Mt=function(S){return I.current.test(S)||S==="-"?(I.current.lastIndex=0,!0):!1},$t=function(S){return He(S)?S.toString().replace(/\.(?=[^.]*$)/,ye.current):S},Ye=function(S){return A.current.test(S)||He(S)?(A.current.lastIndex=0,!0):!1},Z=function(){return o.mode==="decimal"},He=function(S){var F=new Intl.NumberFormat(qe,te()),X=Te(F.format(S));return X===null?!1:X%1!==0},at=function(S){var F=S.search(A.current);A.current.lastIndex=0;var X=S.replace(Me.current,"").trim().replace(/\s/g,"").replace(B.current,""),le=X.search(A.current);return A.current.lastIndex=0,{decimalCharIndex:F,decimalCharIndexWithoutPrefix:le}},ce=function(S){var F=S.search(A.current);A.current.lastIndex=0;var X=S.search(I.current);I.current.lastIndex=0;var le=S.search(Ie.current);Ie.current.lastIndex=0;var se=S.search(B.current);return se===0&&E.current&&E.current.length>1&&(se=E.current.trim().length),B.current.lastIndex=0,{decimalCharIndex:F,minusCharIndex:X,suffixCharIndex:le,currencyCharIndex:se}},L=function(S,F){var X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{isDecimalSign:!1,isMinusSign:!1},le=F.search(I.current);if(I.current.lastIndex=0,!(!un()&&le!==-1)){var se=g.current.selectionStart,ct=g.current.selectionEnd,gt=g.current.value.trim(),Gt=ce(gt),wt=Gt.decimalCharIndex,tn=Gt.minusCharIndex,Cn=Gt.suffixCharIndex,dt=Gt.currencyCharIndex,Tt;if(X.isMinusSign){var En=tn===-1;(se===0||se===dt+1)&&(Tt=gt,(En||ct!==0)&&(Tt=Ve(gt,F,0,ct)),V(S,Tt,F,"insert"))}else if(X.isDecimalSign)wt>0&&se===wt?V(S,gt,F,"insert"):(wt>se&&wt0&&se>wt){if(se+F.length-(wt+1)<=Zt){var Rn=dt>=se?dt-1:Cn>=se?Cn:gt.length;Tt=gt.slice(0,se)+F+gt.slice(se+F.length,Rn)+gt.slice(Rn),V(S,Tt,F,On)}}else Tt=Ve(gt,F,se,ct),V(S,Tt,F,On)}}},Re=function(S){return S&&S.replace(Ie.current,"").trim().replace(/\s/g,"").replace(B.current,"")},Ve=function(S,F,X,le){var se=F==="."?F:F.split(".");if(se.length===2){var ct=S.slice(X,le).search(A.current);return A.current.lastIndex=0,ct>0?S.slice(0,X)+q(F)+Re(S).slice(le):S||q(F)}else{if(le-X===S.length)return q(F);if(X===0){var gt=T.isLetter(S[le])?le-1:le;return F+S.slice(gt)}else if(le===S.length)return S.slice(0,X)+F}var Gt=S.slice(X,le),wt=/\s$/.test(Gt)?" ":"";return S.slice(0,X)+F+wt+S.slice(le)},Pt=function(S,F,X){var le;return X-F===S.length?le="":F===0?le=S.slice(X):X===S.length?le=S.slice(0,F):le=S.slice(0,F)+S.slice(X),le},_t=function(){var S=g.current.selectionStart,F=g.current.value,X=F.length,le=null,se=(E.current||"").length;F=F.replace(Me.current,""),S=S-se;var ct=F.charAt(S);if(N(ct))return S+se;for(var gt=S-1;gt>=0;)if(ct=F.charAt(gt),N(ct)){le=gt+se;break}else gt--;if(le!==null)g.current.setSelectionRange(le+1,le+1);else{for(gt=S;gto.max?o.max:S},Ze=function(S,F,X,le){F=F||"";var se=g.current,ct=se.value,gt=q(S),Gt=ct.length;if(gt!==le&&(gt=Dt(gt,le)),Gt===0){se.value=gt,se.setSelectionRange(0,0);var wt=_t(),tn=wt+F.length;se.setSelectionRange(tn,tn)}else{var Cn=se.selectionStart,dt=se.selectionEnd;if(o.maxLength&&o.maxLength=0)&&(n[o]=e[o]);return n}function Bf(e,t){return Bf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Bf(e,t)}function ib(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Bf(e,t)}function q3(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Z3(e,t){e.classList?e.classList.add(t):q3(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Xg(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Q3(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Xg(e.className,t):e.setAttribute("class",Xg(e.className&&e.className.baseVal||"",t))}const Yg={disabled:!1},ub=dn.createContext(null);var sb=function(t){return t.scrollTop},ni="unmounted",sa="exited",ca="entering",za="entered",Hf="exiting",To=function(e){ib(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var l=o,i=l&&!l.isMounting?r.enter:r.appear,u;return a.appearStatus=null,r.in?i?(u=sa,a.appearStatus=ca):u=za:r.unmountOnExit||r.mountOnEnter?u=ni:u=sa,a.state={status:u},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var l=o.in;return l&&a.status===ni?{status:sa}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var a=null;if(o!==this.props){var l=this.state.status;this.props.in?l!==ca&&l!==za&&(a=ca):(l===ca||l===za)&&(a=Hf)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,a,l,i;return a=l=i=o,o!=null&&typeof o!="number"&&(a=o.exit,l=o.enter,i=o.appear!==void 0?o.appear:l),{exit:a,enter:l,appear:i}},n.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===ca){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:Qa.findDOMNode(this);l&&sb(l)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===sa&&this.setState({status:ni})},n.performEnter=function(o){var a=this,l=this.props.enter,i=this.context?this.context.isMounting:o,u=this.props.nodeRef?[i]:[Qa.findDOMNode(this),i],c=u[0],d=u[1],f=this.getTimeouts(),m=i?f.appear:f.enter;if(!o&&!l||Yg.disabled){this.safeSetState({status:za},function(){a.props.onEntered(c)});return}this.props.onEnter(c,d),this.safeSetState({status:ca},function(){a.props.onEntering(c,d),a.onTransitionEnd(m,function(){a.safeSetState({status:za},function(){a.props.onEntered(c,d)})})})},n.performExit=function(){var o=this,a=this.props.exit,l=this.getTimeouts(),i=this.props.nodeRef?void 0:Qa.findDOMNode(this);if(!a||Yg.disabled){this.safeSetState({status:sa},function(){o.props.onExited(i)});return}this.props.onExit(i),this.safeSetState({status:Hf},function(){o.props.onExiting(i),o.onTransitionEnd(l.exit,function(){o.safeSetState({status:sa},function(){o.props.onExited(i)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},n.setNextCallback=function(o){var a=this,l=!0;return this.nextCallback=function(i){l&&(l=!1,a.nextCallback=null,o(i))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},n.onTransitionEnd=function(o,a){this.setNextCallback(a);var l=this.props.nodeRef?this.props.nodeRef.current:Qa.findDOMNode(this),i=o==null&&!this.props.addEndListener;if(!l||i){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],c=u[0],d=u[1];this.props.addEndListener(c,d)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===ni)return null;var a=this.props,l=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var i=lb(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return dn.createElement(ub.Provider,{value:null},typeof l=="function"?l(o,i):dn.cloneElement(dn.Children.only(l),i))},t}(dn.Component);To.contextType=ub;To.propTypes={};function ja(){}To.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ja,onEntering:ja,onEntered:ja,onExit:ja,onExiting:ja,onExited:ja};To.UNMOUNTED=ni;To.EXITED=sa;To.ENTERING=ca;To.ENTERED=za;To.EXITING=Hf;const e4=To;var t4=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Z3(t,r)})},sd=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Q3(t,r)})},Cm=function(e){ib(t,e);function t(){for(var r,o=arguments.length,a=new Array(o),l=0;le.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:"auto",Se=Z(),ke=Se.numToleratedItems,We=L(),he=function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,S=arguments.length>1?arguments[1]:void 0;return G<=S?0:G},U=function(G,S,F){return G*S+F},C=function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return xt({left:G,top:S,behavior:ie})},M=u?{rows:0,cols:0}:0,ee=!1;u?(M={rows:he(H[0],ke[0]),cols:he(H[1],ke[1])},C(U(M.cols,o.itemSize[1],We.left),U(M.rows,o.itemSize[0],We.top)),ee=f.rows!==M.rows||f.cols!==M.cols):(M=he(H,ke),i?C(U(M,o.itemSize,We.left),0):C(0,U(M,o.itemSize,We.top)),ee=f!==M),et.current=ee,m(M)},un=function(H,ie){var Se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"auto";if(ie){var ke=Ye(),We=ke.first,he=ke.viewport,U=function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return xt({left:S,top:F,behavior:Se})},C=ie==="to-start",M=ie==="to-end";if(C){if(u)he.first.rows-We.rows>H[0]?U(he.first.cols*o.itemSize[1],(he.first.rows-1)*o.itemSize[0]):he.first.cols-We.cols>H[1]&&U((he.first.cols-1)*o.itemSize[1],he.first.rows*o.itemSize[0]);else if(he.first-We>H){var ee=(he.first-1)*o.itemSize;i?U(ee,0):U(0,ee)}}else if(M){if(u)he.last.rows-We.rows<=H[0]+1?U(he.first.cols*o.itemSize[1],(he.first.rows+1)*o.itemSize[0]):he.last.cols-We.cols<=H[1]+1&&U((he.first.cols+1)*o.itemSize[1],he.first.rows*o.itemSize[0]);else if(he.last-We<=H+1){var Ce=(he.first+1)*o.itemSize;i?U(Ce,0):U(0,Ce)}}}else yt(H,Se)},Mt=function(){return Ae?o.loaderDisabled?re:[]:de()},$t=function(){return o.columns&&u||i?Ae&&o.loaderDisabled?u?re[0]:re:o.columns.slice(u?f.cols:f,u?g.cols:g):o.columns},Ye=function(){var H=function(M,ee){return Math.floor(M/(ee||M))},ie=f,Se=0;if(ve.current){var ke=ve.current,We=ke.scrollTop,he=ke.scrollLeft;if(u)ie={rows:H(We,o.itemSize[0]),cols:H(he,o.itemSize[1])},Se={rows:ie.rows+w.rows,cols:ie.cols+w.cols};else{var U=i?he:We;ie=H(U,o.itemSize),Se=ie+w}}return{first:f,last:g,viewport:{first:ie,last:Se}}},Z=function(){var H=L(),ie=ve.current?ve.current.offsetWidth-H.left:0,Se=ve.current?ve.current.offsetHeight-H.top:0,ke=function(M,ee){return Math.ceil(M/(ee||M))},We=function(M){return Math.ceil(M/2)},he=u?{rows:ke(Se,o.itemSize[0]),cols:ke(ie,o.itemSize[1])}:ke(i?ie:Se,o.itemSize),U=A||(u?[We(he.rows),We(he.cols)]:We(he));return{numItemsInViewport:he,numToleratedItems:U}},He=function(){var H=Z(),ie=H.numItemsInViewport,Se=H.numToleratedItems,ke=function(U,C,M){var ee=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return ce(U+C+(U0&&arguments[0]!==void 0?arguments[0]:0,Se=arguments.length>1?arguments[1]:void 0;return o.items?Math.min(Se?((H=o.columns||o.items[0])===null||H===void 0?void 0:H.length)||0:(o.items||[]).length,ie):0},L=function(){if(Oe.current){var H=getComputedStyle(Oe.current),ie=parseFloat(H.paddingLeft)+Math.max(parseFloat(H.left)||0,0),Se=parseFloat(H.paddingRight)+Math.max(parseFloat(H.right)||0,0),ke=parseFloat(H.paddingTop)+Math.max(parseFloat(H.top)||0,0),We=parseFloat(H.paddingBottom)+Math.max(parseFloat(H.bottom)||0,0);return{left:ie,right:Se,top:ke,bottom:We,x:ie+Se,y:ke+We}}return{left:0,right:0,top:0,bottom:0,x:0,y:0}},Re=function(){if(ve.current){var H=ve.current.parentElement,ie=o.scrollWidth||"".concat(ve.current.offsetWidth||H.offsetWidth,"px"),Se=o.scrollHeight||"".concat(ve.current.offsetHeight||H.offsetHeight,"px"),ke=function(he,U){return ve.current.style[he]=U};u||i?(ke("height",Se),ke("width",ie)):ke("height",Se)}},Ve=function(){var H=o.items;if(H){var ie=L(),Se=function(We,he,U){var C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return Xe.current=Aa(Aa({},Xe.current),db({},"".concat(We),(he||[]).length*U+C+"px"))};u?(Se("height",H,o.itemSize[0],ie.y),Se("width",o.columns||H[1],o.itemSize[1],ie.x)):i?Se("width",o.columns||H,o.itemSize,ie.x):Se("height",H,o.itemSize,ie.y)}},Pt=function(H){if(Oe.current&&!o.appendOnly){var ie=H?H.first:f,Se=function(U,C){return U*C},ke=function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;st.current&&(st.current.style.top="-".concat(C,"px")),zt.current=Aa(Aa({},zt.current),{transform:"translate3d(".concat(U,"px, ").concat(C,"px, 0)")})};if(u)ke(Se(ie.cols,o.itemSize[1]),Se(ie.rows,o.itemSize[0]));else{var We=Se(ie,o.itemSize);i?ke(We,0):ke(0,We)}}},_t=function(H){var ie=H.target,Se=L(),ke=function(dt,Tt){return dt?dt>Tt?dt-Tt:dt:0},We=function(dt,Tt){return Math.floor(dt/(Tt||dt))},he=function(dt,Tt,En,Zt,On,Rn){return dt<=On?On:Rn?En-Zt-On:Tt+On-1},U=function(dt,Tt,En,Zt,On,Rn,hr){return dt<=Rn?0:Math.max(0,hr?dtTt?En:dt-2*Rn)},C=function(dt,Tt,En,Zt,On,Rn){var hr=Tt+Zt+2*On;return dt>=On&&(hr=hr+(On+1)),ce(hr,Rn)},M=ke(ie.scrollTop,Se.top),ee=ke(ie.scrollLeft,Se.left),Ce=u?{rows:0,cols:0}:0,G=g,S=!1,F=tt.current;if(u){var J=tt.current.top<=M,le=tt.current.left<=ee;if(!o.appendOnly||o.appendOnly&&(J||le)){var se={rows:We(M,o.itemSize[0]),cols:We(ee,o.itemSize[1])},ct={rows:he(se.rows,f.rows,g.rows,w.rows,A[0],J),cols:he(se.cols,f.cols,g.cols,w.cols,A[1],le)};Ce={rows:U(se.rows,ct.rows,f.rows,g.rows,w.rows,A[0],J),cols:U(se.cols,ct.cols,f.cols,g.cols,w.cols,A[1],le)},G={rows:C(se.rows,Ce.rows,g.rows,w.rows,A[0]),cols:C(se.cols,Ce.cols,g.cols,w.cols,A[1],!0)},S=Ce.rows!==f.rows||G.rows!==g.rows||Ce.cols!==f.cols||G.cols!==g.cols||et.current,F={top:M,left:ee}}}else{var gt=i?ee:M,Gt=tt.current<=gt;if(!o.appendOnly||o.appendOnly&&Gt){var wt=We(gt,o.itemSize),tn=he(wt,f,g,w,A,Gt);Ce=U(wt,tn,f,g,w,A,Gt),G=C(wt,Ce,g,w,A),S=Ce!==f||G!==g||et.current,F=gt}}return{first:Ce,last:G,isRangeChanged:S,scrollPos:F}},It=function(H){var ie=_t(H),Se=ie.first,ke=ie.last,We=ie.isRangeChanged,he=ie.scrollPos;if(We){var U={first:Se,last:ke};if(Pt(U),m(Se),x(ke),tt.current=he,o.onScrollIndexChange&&o.onScrollIndexChange(U),o.lazy&&ft(Se)){var C={first:o.step?Math.min(mt(Se)*o.step,(o.items||[]).length-o.step):Se,last:Math.min(o.step?(mt(Se)+1)*o.step:ke,(o.items||[]).length)},M=!ht.current||ht.current.first!==C.first||ht.current.last!==C.last;M&&o.onLazyLoad&&o.onLazyLoad(C),ht.current=C}}},Wt=function(H){if(o.onScroll&&o.onScroll(H),o.delay){if(lt.current&&clearTimeout(lt.current),ft(f)){if(!Ae&&o.showLoader){var ie=_t(H),Se=ie.isRangeChanged,ke=Se||(o.step?ft(f):!1);ke&&it(!0)}lt.current=setTimeout(function(){It(H),Ae&&o.showLoader&&(!o.lazy||o.loading===void 0)&&(it(!1),E(mt(f)))},o.delay)}}else It(H)},N=function(){Rt.current&&clearTimeout(Rt.current),Rt.current=setTimeout(function(){if(ve.current){var H=[_.getWidth(ve.current),_.getHeight(ve.current)],ie=H[0],Se=H[1],ke=ie!==q.current,We=Se!==Te.current,he=u?ke||We:i?ke:l?We:!1;he&&(ye(o.numToleratedItems),q.current=ie,Te.current=Se,we.current=_.getWidth(Oe.current),ut.current=_.getHeight(Oe.current))}},o.resizeDelay)},$=function(H){var ie=(o.items||[]).length,Se=u?f.rows+H:f+H;return{index:Se,count:ie,first:Se===0,last:Se===ie-1,even:Se%2===0,odd:Se%2!==0,props:o}},V=function(H,ie){var Se=re.length||0;return Aa({index:H,count:Se,first:H===0,last:H===Se-1,even:H%2===0,odd:H%2!==0,props:o},ie)},de=function(){var H=o.items;return H&&!Ae?u?H.slice(o.appendOnly?0:f.rows,g.rows).map(function(ie){return o.columns?ie:ie.slice(o.appendOnly?0:f.cols,g.cols)}):i&&o.columns?H:H.slice(o.appendOnly?0:f,g):[]},je=function(){ve.current&&_.isVisible(ve.current)&&(bt(Oe.current),Ge(),Bt(),me(),q.current=_.getWidth(ve.current),Te.current=_.getHeight(ve.current),we.current=_.getWidth(Oe.current),ut.current=_.getHeight(Oe.current))},Ge=function(){o.disabled||(Re(),He(),Ve())};Ir(function(){je()}),Xt(function(){Ge()},[o.itemSize,o.scrollHeight,o.scrollWidth]),Xt(function(){o.numToleratedItems!==A&&ye(o.numToleratedItems)},[o.numToleratedItems]),Xt(function(){o.numToleratedItems===A&&Ge()},[A]),Xt(function(){var fe=a.items!==void 0&&a.items!==null,H=o.items!==void 0&&o.items!==null,ie=fe?a.items.length:0,Se=H?o.items.length:0,ke=ie!==Se;if(u&&!ke){var We=fe&&a.items.length>0?a.items[0].length:0,he=H&&o.items.length>0?o.items[0].length:0;ke=We!==he}(!fe||ke)&&Ge();var U=Ae;o.lazy&&a.loading!==o.loading&&o.loading!==Ae&&(it(o.loading),U=o.loading),at(U)}),Xt(function(){tt.current=u?{top:0,left:0}:0},[o.orientation]),s.useImperativeHandle(t,function(){return{props:o,getElementRef:Le,scrollTo:xt,scrollToIndex:yt,scrollInView:un,getRenderedRange:Ye}});var Be=function(H){var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Se=V(H,ie),ke=T.getJSXElement(o.loadingTemplate,Se);return s.createElement(s.Fragment,{key:H},ke)},$e=function(){var H="p-virtualscroller-loading-icon",ie=n({className:H},te("loadingIcon")),Se=o.loadingIcon||s.createElement(au,Kf({},ie,{spin:!0})),ke=en.getJSXIcon(Se,Aa({},ie),{props:o});if(!o.loaderDisabled&&o.showLoader&&Ae){var We=ze("p-virtualscroller-loader",{"p-component-overlay":!o.loadingTemplate}),he=ke;if(o.loadingTemplate)he=re.map(function(M,ee){return Be(ee,u&&{numCols:w.cols})});else if(o.loaderIconTemplate){var U={iconClassName:H,element:he,props:o};he=T.getJSXElement(o.loaderIconTemplate,U)}var C=n({className:We},te("loader"));return s.createElement("div",C,he)}return null},Ze=function(){if(o.showSpacer){var H=n({ref:pt,style:Xe.current,className:"p-virtualscroller-spacer"},te("spacer"));return s.createElement("div",H)}return null},Qe=function(H,ie){var Se=$(ie),ke=T.getJSXElement(o.itemTemplate,H,Se);return s.createElement(s.Fragment,{key:Se.index},ke)},Lt=function(){var H=de();return H.map(Qe)},Dt=function(){var H=Lt(),ie=ze("p-virtualscroller-content",{"p-virtualscroller-loading":Ae}),Se=n({ref:Oe,style:zt.current,className:ie},te("content")),ke=s.createElement("div",Se,H);if(o.contentTemplate){var We={style:zt.current,className:ie,spacerStyle:Xe.current,contentRef:function(U){return Oe.current=T.getRefElement(U)},spacerRef:function(U){return pt.current=T.getRefElement(U)},stickyRef:function(U){return st.current=T.getRefElement(U)},items:de(),getItemOptions:function(U){return $(U)},children:H,element:ke,props:o,loading:Ae,getLoaderOptions:function(U,C){return V(U,C)},loadingTemplate:o.loadingTemplate,itemSize:o.itemSize,rows:Mt(),columns:$t(),vertical:l,horizontal:i,both:u};return T.getJSXElement(o.contentTemplate,We)}return ke};if(o.disabled){var Ke=T.getJSXElement(o.contentTemplate,{items:o.items,rows:o.items,columns:o.columns});return s.createElement(s.Fragment,null,o.children,Ke)}var nt=ze("p-virtualscroller",{"p-virtualscroller-inline":o.inline,"p-virtualscroller-both p-both-scroll":u,"p-virtualscroller-horizontal p-horizontal-scroll":i},o.className),ge=$e(),W=Dt(),ue=Ze(),ae=n({ref:ve,className:nt,tabIndex:o.tabIndex,style:o.style,onScroll:function(H){return Wt(H)}},Nu.getOtherProps(o),te("root"));return s.createElement("div",ae,W,ue,ge)}));xm.displayName="VirtualScroller";function Wf(){return Wf=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:"auto",Se=Z(),ke=Se.numToleratedItems,We=L(),he=function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,S=arguments.length>1?arguments[1]:void 0;return G<=S?0:G},U=function(G,S,F){return G*S+F},C=function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return xt({left:G,top:S,behavior:ie})},M=u?{rows:0,cols:0}:0,ee=!1;u?(M={rows:he(H[0],ke[0]),cols:he(H[1],ke[1])},C(U(M.cols,o.itemSize[1],We.left),U(M.rows,o.itemSize[0],We.top)),ee=f.rows!==M.rows||f.cols!==M.cols):(M=he(H,ke),i?C(U(M,o.itemSize,We.left),0):C(0,U(M,o.itemSize,We.top)),ee=f!==M),et.current=ee,m(M)},un=function(H,ie){var Se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"auto";if(ie){var ke=Ye(),We=ke.first,he=ke.viewport,U=function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return xt({left:S,top:F,behavior:Se})},C=ie==="to-start",M=ie==="to-end";if(C){if(u)he.first.rows-We.rows>H[0]?U(he.first.cols*o.itemSize[1],(he.first.rows-1)*o.itemSize[0]):he.first.cols-We.cols>H[1]&&U((he.first.cols-1)*o.itemSize[1],he.first.rows*o.itemSize[0]);else if(he.first-We>H){var ee=(he.first-1)*o.itemSize;i?U(ee,0):U(0,ee)}}else if(M){if(u)he.last.rows-We.rows<=H[0]+1?U(he.first.cols*o.itemSize[1],(he.first.rows+1)*o.itemSize[0]):he.last.cols-We.cols<=H[1]+1&&U((he.first.cols+1)*o.itemSize[1],he.first.rows*o.itemSize[0]);else if(he.last-We<=H+1){var Ce=(he.first+1)*o.itemSize;i?U(Ce,0):U(0,Ce)}}}else yt(H,Se)},Mt=function(){return Ae?o.loaderDisabled?re:[]:de()},$t=function(){return o.columns&&u||i?Ae&&o.loaderDisabled?u?re[0]:re:o.columns.slice(u?f.cols:f,u?g.cols:g):o.columns},Ye=function(){var H=function(M,ee){return Math.floor(M/(ee||M))},ie=f,Se=0;if(ve.current){var ke=ve.current,We=ke.scrollTop,he=ke.scrollLeft;if(u)ie={rows:H(We,o.itemSize[0]),cols:H(he,o.itemSize[1])},Se={rows:ie.rows+w.rows,cols:ie.cols+w.cols};else{var U=i?he:We;ie=H(U,o.itemSize),Se=ie+w}}return{first:f,last:g,viewport:{first:ie,last:Se}}},Z=function(){var H=L(),ie=ve.current?ve.current.offsetWidth-H.left:0,Se=ve.current?ve.current.offsetHeight-H.top:0,ke=function(M,ee){return Math.ceil(M/(ee||M))},We=function(M){return Math.ceil(M/2)},he=u?{rows:ke(Se,o.itemSize[0]),cols:ke(ie,o.itemSize[1])}:ke(i?ie:Se,o.itemSize),U=A||(u?[We(he.rows),We(he.cols)]:We(he));return{numItemsInViewport:he,numToleratedItems:U}},He=function(){var H=Z(),ie=H.numItemsInViewport,Se=H.numToleratedItems,ke=function(U,C,M){var ee=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return ce(U+C+(U0&&arguments[0]!==void 0?arguments[0]:0,Se=arguments.length>1?arguments[1]:void 0;return o.items?Math.min(Se?((H=o.columns||o.items[0])===null||H===void 0?void 0:H.length)||0:(o.items||[]).length,ie):0},L=function(){if(Oe.current){var H=getComputedStyle(Oe.current),ie=parseFloat(H.paddingLeft)+Math.max(parseFloat(H.left)||0,0),Se=parseFloat(H.paddingRight)+Math.max(parseFloat(H.right)||0,0),ke=parseFloat(H.paddingTop)+Math.max(parseFloat(H.top)||0,0),We=parseFloat(H.paddingBottom)+Math.max(parseFloat(H.bottom)||0,0);return{left:ie,right:Se,top:ke,bottom:We,x:ie+Se,y:ke+We}}return{left:0,right:0,top:0,bottom:0,x:0,y:0}},Re=function(){if(ve.current){var H=ve.current.parentElement,ie=o.scrollWidth||"".concat(ve.current.offsetWidth||H.offsetWidth,"px"),Se=o.scrollHeight||"".concat(ve.current.offsetHeight||H.offsetHeight,"px"),ke=function(he,U){return ve.current.style[he]=U};u||i?(ke("height",Se),ke("width",ie)):ke("height",Se)}},Ve=function(){var H=o.items;if(H){var ie=L(),Se=function(We,he,U){var C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return Xe.current=Aa(Aa({},Xe.current),db({},"".concat(We),(he||[]).length*U+C+"px"))};u?(Se("height",H,o.itemSize[0],ie.y),Se("width",o.columns||H[1],o.itemSize[1],ie.x)):i?Se("width",o.columns||H,o.itemSize,ie.x):Se("height",H,o.itemSize,ie.y)}},Pt=function(H){if(Oe.current&&!o.appendOnly){var ie=H?H.first:f,Se=function(U,C){return U*C},ke=function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;st.current&&(st.current.style.top="-".concat(C,"px")),zt.current=Aa(Aa({},zt.current),{transform:"translate3d(".concat(U,"px, ").concat(C,"px, 0)")})};if(u)ke(Se(ie.cols,o.itemSize[1]),Se(ie.rows,o.itemSize[0]));else{var We=Se(ie,o.itemSize);i?ke(We,0):ke(0,We)}}},_t=function(H){var ie=H.target,Se=L(),ke=function(dt,Tt){return dt?dt>Tt?dt-Tt:dt:0},We=function(dt,Tt){return Math.floor(dt/(Tt||dt))},he=function(dt,Tt,En,Zt,On,Rn){return dt<=On?On:Rn?En-Zt-On:Tt+On-1},U=function(dt,Tt,En,Zt,On,Rn,hr){return dt<=Rn?0:Math.max(0,hr?dtTt?En:dt-2*Rn)},C=function(dt,Tt,En,Zt,On,Rn){var hr=Tt+Zt+2*On;return dt>=On&&(hr=hr+(On+1)),ce(hr,Rn)},M=ke(ie.scrollTop,Se.top),ee=ke(ie.scrollLeft,Se.left),Ce=u?{rows:0,cols:0}:0,G=g,S=!1,F=tt.current;if(u){var X=tt.current.top<=M,le=tt.current.left<=ee;if(!o.appendOnly||o.appendOnly&&(X||le)){var se={rows:We(M,o.itemSize[0]),cols:We(ee,o.itemSize[1])},ct={rows:he(se.rows,f.rows,g.rows,w.rows,A[0],X),cols:he(se.cols,f.cols,g.cols,w.cols,A[1],le)};Ce={rows:U(se.rows,ct.rows,f.rows,g.rows,w.rows,A[0],X),cols:U(se.cols,ct.cols,f.cols,g.cols,w.cols,A[1],le)},G={rows:C(se.rows,Ce.rows,g.rows,w.rows,A[0]),cols:C(se.cols,Ce.cols,g.cols,w.cols,A[1],!0)},S=Ce.rows!==f.rows||G.rows!==g.rows||Ce.cols!==f.cols||G.cols!==g.cols||et.current,F={top:M,left:ee}}}else{var gt=i?ee:M,Gt=tt.current<=gt;if(!o.appendOnly||o.appendOnly&&Gt){var wt=We(gt,o.itemSize),tn=he(wt,f,g,w,A,Gt);Ce=U(wt,tn,f,g,w,A,Gt),G=C(wt,Ce,g,w,A),S=Ce!==f||G!==g||et.current,F=gt}}return{first:Ce,last:G,isRangeChanged:S,scrollPos:F}},It=function(H){var ie=_t(H),Se=ie.first,ke=ie.last,We=ie.isRangeChanged,he=ie.scrollPos;if(We){var U={first:Se,last:ke};if(Pt(U),m(Se),x(ke),tt.current=he,o.onScrollIndexChange&&o.onScrollIndexChange(U),o.lazy&&ft(Se)){var C={first:o.step?Math.min(mt(Se)*o.step,(o.items||[]).length-o.step):Se,last:Math.min(o.step?(mt(Se)+1)*o.step:ke,(o.items||[]).length)},M=!ht.current||ht.current.first!==C.first||ht.current.last!==C.last;M&&o.onLazyLoad&&o.onLazyLoad(C),ht.current=C}}},Wt=function(H){if(o.onScroll&&o.onScroll(H),o.delay){if(lt.current&&clearTimeout(lt.current),ft(f)){if(!Ae&&o.showLoader){var ie=_t(H),Se=ie.isRangeChanged,ke=Se||(o.step?ft(f):!1);ke&&it(!0)}lt.current=setTimeout(function(){It(H),Ae&&o.showLoader&&(!o.lazy||o.loading===void 0)&&(it(!1),E(mt(f)))},o.delay)}}else It(H)},N=function(){Rt.current&&clearTimeout(Rt.current),Rt.current=setTimeout(function(){if(ve.current){var H=[_.getWidth(ve.current),_.getHeight(ve.current)],ie=H[0],Se=H[1],ke=ie!==q.current,We=Se!==Te.current,he=u?ke||We:i?ke:l?We:!1;he&&(ye(o.numToleratedItems),q.current=ie,Te.current=Se,we.current=_.getWidth(Oe.current),ut.current=_.getHeight(Oe.current))}},o.resizeDelay)},$=function(H){var ie=(o.items||[]).length,Se=u?f.rows+H:f+H;return{index:Se,count:ie,first:Se===0,last:Se===ie-1,even:Se%2===0,odd:Se%2!==0,props:o}},V=function(H,ie){var Se=re.length||0;return Aa({index:H,count:Se,first:H===0,last:H===Se-1,even:H%2===0,odd:H%2!==0,props:o},ie)},de=function(){var H=o.items;return H&&!Ae?u?H.slice(o.appendOnly?0:f.rows,g.rows).map(function(ie){return o.columns?ie:ie.slice(o.appendOnly?0:f.cols,g.cols)}):i&&o.columns?H:H.slice(o.appendOnly?0:f,g):[]},je=function(){ve.current&&_.isVisible(ve.current)&&(bt(Oe.current),Ge(),Bt(),me(),q.current=_.getWidth(ve.current),Te.current=_.getHeight(ve.current),we.current=_.getWidth(Oe.current),ut.current=_.getHeight(Oe.current))},Ge=function(){o.disabled||(Re(),He(),Ve())};Ir(function(){je()}),Xt(function(){Ge()},[o.itemSize,o.scrollHeight,o.scrollWidth]),Xt(function(){o.numToleratedItems!==A&&ye(o.numToleratedItems)},[o.numToleratedItems]),Xt(function(){o.numToleratedItems===A&&Ge()},[A]),Xt(function(){var fe=a.items!==void 0&&a.items!==null,H=o.items!==void 0&&o.items!==null,ie=fe?a.items.length:0,Se=H?o.items.length:0,ke=ie!==Se;if(u&&!ke){var We=fe&&a.items.length>0?a.items[0].length:0,he=H&&o.items.length>0?o.items[0].length:0;ke=We!==he}(!fe||ke)&&Ge();var U=Ae;o.lazy&&a.loading!==o.loading&&o.loading!==Ae&&(it(o.loading),U=o.loading),at(U)}),Xt(function(){tt.current=u?{top:0,left:0}:0},[o.orientation]),s.useImperativeHandle(t,function(){return{props:o,getElementRef:Le,scrollTo:xt,scrollToIndex:yt,scrollInView:un,getRenderedRange:Ye}});var Be=function(H){var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Se=V(H,ie),ke=T.getJSXElement(o.loadingTemplate,Se);return s.createElement(s.Fragment,{key:H},ke)},$e=function(){var H="p-virtualscroller-loading-icon",ie=n({className:H},te("loadingIcon")),Se=o.loadingIcon||s.createElement(au,Kf({},ie,{spin:!0})),ke=en.getJSXIcon(Se,Aa({},ie),{props:o});if(!o.loaderDisabled&&o.showLoader&&Ae){var We=ze("p-virtualscroller-loader",{"p-component-overlay":!o.loadingTemplate}),he=ke;if(o.loadingTemplate)he=re.map(function(M,ee){return Be(ee,u&&{numCols:w.cols})});else if(o.loaderIconTemplate){var U={iconClassName:H,element:he,props:o};he=T.getJSXElement(o.loaderIconTemplate,U)}var C=n({className:We},te("loader"));return s.createElement("div",C,he)}return null},Ze=function(){if(o.showSpacer){var H=n({ref:pt,style:Xe.current,className:"p-virtualscroller-spacer"},te("spacer"));return s.createElement("div",H)}return null},Qe=function(H,ie){var Se=$(ie),ke=T.getJSXElement(o.itemTemplate,H,Se);return s.createElement(s.Fragment,{key:Se.index},ke)},Lt=function(){var H=de();return H.map(Qe)},Dt=function(){var H=Lt(),ie=ze("p-virtualscroller-content",{"p-virtualscroller-loading":Ae}),Se=n({ref:Oe,style:zt.current,className:ie},te("content")),ke=s.createElement("div",Se,H);if(o.contentTemplate){var We={style:zt.current,className:ie,spacerStyle:Xe.current,contentRef:function(U){return Oe.current=T.getRefElement(U)},spacerRef:function(U){return pt.current=T.getRefElement(U)},stickyRef:function(U){return st.current=T.getRefElement(U)},items:de(),getItemOptions:function(U){return $(U)},children:H,element:ke,props:o,loading:Ae,getLoaderOptions:function(U,C){return V(U,C)},loadingTemplate:o.loadingTemplate,itemSize:o.itemSize,rows:Mt(),columns:$t(),vertical:l,horizontal:i,both:u};return T.getJSXElement(o.contentTemplate,We)}return ke};if(o.disabled){var Ke=T.getJSXElement(o.contentTemplate,{items:o.items,rows:o.items,columns:o.columns});return s.createElement(s.Fragment,null,o.children,Ke)}var nt=ze("p-virtualscroller",{"p-virtualscroller-inline":o.inline,"p-virtualscroller-both p-both-scroll":u,"p-virtualscroller-horizontal p-horizontal-scroll":i},o.className),ge=$e(),W=Dt(),ue=Ze(),ae=n({ref:ve,className:nt,tabIndex:o.tabIndex,style:o.style,onScroll:function(H){return Wt(H)}},Nu.getOtherProps(o),te("root"));return s.createElement("div",ae,W,ue,ge)}));xm.displayName="VirtualScroller";function Wf(){return Wf=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:{},ye={height:A.props?A.props.itemSize:void 0};if(ye=Ur(Ur({},ye),I.style),I.group&&I.optionGroup&&e.optionGroupLabel){var Ie=e.optionGroupLabel,Me=e.optionGroupTemplate?T.getJSXElement(e.optionGroupTemplate,I,B):e.getOptionGroupLabel(I),Ae=B+"_"+e.getOptionGroupRenderKey(I),it=n({className:o("itemGroup",{optionGroupLabel:Ie}),style:ye,"data-p-highlight":e.selected},d("itemGroup")),qe=n({className:o("itemGroupLabel")},d("itemGroupLabel"));return s.createElement("li",Co({key:Ae},it),s.createElement("span",qe,Me))}var K=e.getOptionRenderKey(I)+"_"+B,re=e.getOptionLabel(I),X=e.isOptionDisabled(I);return s.createElement(pb,{key:K,label:re,index:B,focusedOptionIndex:e.focusedOptionIndex,option:I,style:ye,template:e.itemTemplate,selected:e.isSelected(I),highlightOnSelect:e.highlightOnSelect,disabled:X,onClick:e.onOptionClick,onMouseMove:g,ptm:r,cx:o,checkmark:e.checkmark})},p=function(){return T.isNotEmpty(e.visibleOptions)?e.visibleOptions.map(h):e.hasFilter?x(e.emptyFilterMessage,!0):x(e.emptyMessage)},v=function(){if(e.showFilterClear&&e.filterValue){var I=cr("clear"),B=n({className:o("filterClearIcon"),"aria-label":I,onClick:function(){return e.onFilterClearIconClick(function(){return _.focus(i.current)})}},d("filterClearIcon")),A=e.filterClearIcon||s.createElement(hc,B),ye=en.getJSXIcon(A,Ur({},B),{props:e});return ye}return null},E=function(){if(e.filter){var I=v(),B=n({className:o("filterIcon")},d("filterIcon")),A=e.filterIcon||s.createElement(cb,B),ye=en.getJSXIcon(A,Ur({},B),{props:e}),Ie=n({className:o("filterContainer",{clearIcon:I})},d("filterContainer")),Me=n({ref:i,type:"text",autoComplete:"off",className:o("filterInput",{context:l}),placeholder:e.filterPlaceholder,onKeyDown:e.onFilterInputKeyDown,onChange:function(re){return y(re)},value:e.filterValue},d("filterInput")),Ae=s.createElement("div",Ie,s.createElement("input",Me),I,ye);if(e.filterTemplate){var it={className:ze("p-dropdown-filter-container",{"p-dropdown-clearable-filter":!!I}),element:Ae,filterOptions:c,filterInputKeyDown:e.onFilterInputKeyDown,filterInputChange:y,filterIconClassName:"p-dropdown-filter-icon",clearIcon:I,props:e};Ae=T.getJSXElement(e.filterTemplate,it)}var qe=n({className:o("header")},d("header"));return s.createElement("div",qe,Ae)}return null},O=function(){if(e.virtualScrollerOptions){var I=Ur(Ur({},e.virtualScrollerOptions),{style:Ur(Ur({},e.virtualScrollerOptions.style),{height:e.scrollHeight}),className:ze("p-dropdown-items-wrapper",e.virtualScrollerOptions.className),items:e.visibleOptions,autoSize:!0,onLazyLoad:function(Me){return e.virtualScrollerOptions.onLazyLoad(Ur(Ur({},Me),{filter:e.filterValue}))},itemTemplate:function(Me,Ae){return Me&&h(Me,Ae.index,Ae)},contentTemplate:function(Me){var Ae=e.hasFilter?e.emptyFilterMessage:e.emptyMessage,it=u?x(Ae):Me.children,qe=n({ref:Me.contentRef,style:Me.style,className:ze(Me.className,o("list",{virtualScrollerProps:e.virtualScrollerOptions})),role:"listbox"},d("list"));return s.createElement("ul",qe,it)}});return s.createElement(xm,Co({ref:e.virtualScrollerRef},I,{pt:r("virtualScroller")}))}var B=p(),A=n({className:o("wrapper"),style:a("wrapper")},d("wrapper")),ye=n({className:o("list"),role:"listbox"},d("list"));return s.createElement("div",A,s.createElement("ul",ye,B))},k=function(){var I=E(),B=O(),A=b(),ye=n({className:ze(e.panelClassName,o("panel",{context:l})),style:a("panel"),onClick:e.onClick},d("panel")),Ie=n({classNames:o("transition"),in:e.in,timeout:{enter:120,exit:100},options:e.transitionOptions,unmountOnExit:!0,onEnter:f,onEntered:m,onExit:e.onExit,onExited:e.onExited},d("transition"));return s.createElement(Em,Co({nodeRef:t},Ie),s.createElement("div",Co({ref:t},ye),e.firstFocusableElement,I,B,A,e.lastFocusableElement))},w=k();return s.createElement(vc,{element:w,appendTo:e.appendTo})}));mb.displayName="DropdownPanel";function C4(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=E4(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,l=!1,i;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return a=c.done,c},e:function(c){l=!0,i=c},f:function(){try{!a&&n.return!=null&&n.return()}finally{if(l)throw i}}}}function E4(e,t){if(e){if(typeof e=="string")return nh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nh(e,t)}}function nh(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:!0,Ut=We(xe);$e({originalEvent:P,option:Ut}),rt&&nt()},et=function(P){Ho.emit("overlay-click",{originalEvent:P,target:k.current})},ht=function(P){if(o.disabled||_.isAndroid()){P.preventDefault();return}var xe=P.metaKey||P.ctrlKey;switch(P.code){case"ArrowDown":Ye(P);break;case"ArrowUp":Z(P);break;case"ArrowLeft":case"ArrowRight":He(P,o.editable);break;case"Home":at(P);break;case"End":ce(P);break;case"PageDown":Re(P);break;case"PageUp":L(P);break;case"Space":Ve(P,o.editable);break;case"NumpadEnter":case"Enter":Pt(P);break;case"Escape":_t(P);break;case"Tab":It(P);break;case"Backspace":Wt(P,o.editable);break;case"ShiftLeft":case"ShiftRight":break;default:!xe&&T.isPrintableCharacter(P.key)&&(!v&&!o.editable&&Ke(),!o.editable&&bt(P,P.key));break}O.current=!1},Ct=function(P){switch(P.code){case"ArrowDown":Ye(P);break;case"ArrowUp":Z(P);break;case"ArrowLeft":case"ArrowRight":He(P,!0);break;case"Escape":case"Enter":case"NumpadEnter":Pt(P),P.preventDefault();break}},ln=function(){return _.getFocusableElements(w.current,':not([data-p-hidden-focusable="true"])').length>0},Bt=function(P){var xe;return _e(P)&&((xe=ke(P))===null||xe===void 0?void 0:xe.toLocaleLowerCase(o.filterLocale).startsWith(Me.current.toLocaleLowerCase(o.filterLocale)))},_e=function(P){return T.isNotEmpty(P)&&!(C(P)||U(P))},z=function(){return T.isNotEmpty(o.value)},me=function(P){return _e(P)&&Dt(P)},Le=function(){return z?wt.findIndex(function(P){return me(P)}):-1},mt=function(){var P=Le();return P<0?xt():P},bt=function(P,xe){Me.current=(Me.current||"")+xe;var rt=-1,Ut=!1;return T.isNotEmpty(Me.current)&&(g!==-1?(rt=wt.slice(g).findIndex(function(pn){return Bt(pn)}),rt=rt===-1?wt.slice(0,g).findIndex(function(pn){return Bt(pn)}):rt+g):rt=wt.findIndex(function(pn){return Bt(pn)}),rt!==-1&&(Ut=!0),rt===-1&&g===-1&&(rt=mt()),rt!==-1&&$t(P,rt)),Ie.current&&clearTimeout(Ie.current),Ie.current=setTimeout(function(){Me.current="",Ie.current=null},500),Ut},ft=function(){var P=Le();return P<0?yt():P},xt=function(){return wt.findIndex(function(P){return _e(P)})},yt=function(){return T.findLastIndex(wt,function(P){return _e(P)})},un=function(P){var xe=P-1?xe+P+1:P},Mt=function(P){var xe=P>0?T.findLastIndex(wt.slice(0,P),function(rt){return _e(rt)}):-1;return xe>-1?xe:P},$t=function(P,xe){g!==xe&&(x(xe),o.selectOnFocus&&ut(P,wt[xe],!1))},Ye=function(P){if(!v)Ke(),o.editable&&$t(P,Le());else{var xe=g!==-1?un(g):O.current?xt():mt();$t(P,xe)}P.preventDefault()},Z=function(P){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(P.altKey&&!xe)g!==-1&&ut(P,wt[g]),state.overlayVisible&&nt(),P.preventDefault();else{var rt=g!==-1?Mt(g):O.current?yt():ft();$t(P,rt),!v&&Ke(),P.preventDefault()}},He=function(P){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;xe&&x(-1)},at=function(P){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;xe?(P.currentTarget.setSelectionRange(0,0),x(-1)):($t(P,xt()),!v&&Ke()),P.preventDefault()},ce=function(P){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(xe){var rt=P.currentTarget,Ut=rt.value.length;rt.setSelectionRange(Ut,Ut),x(-1)}else $t(P,yt()),!v&&Ke();P.preventDefault()},L=function(P){P.preventDefault()},Re=function(P){P.preventDefault()},Ve=function(P){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;!xe&&Pt(P)},Pt=function(P){v?(g!==-1&&ut(P,wt[g]),nt()):(x(-1),Ye(P)),P.preventDefault()},_t=function(P){v&&nt(),P.preventDefault()},It=function(P){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;xe||(v&&!ln()?(_.focus(D.current),P.preventDefault()):(g!==-1&&ut(P,wt[g]),v&&nt()))},Wt=function(P){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;xe&&!v&&Ke()},N=function(P){var xe=null;P.target.value&&(xe=wt.findIndex(function(rt){return ke(rt).toLocaleLowerCase().startsWith(P.target.value.toLocaleLowerCase())})),x(xe),o.onChange&&o.onChange({originalEvent:P.originalEvent,value:P.target.value,stopPropagation:function(){P.originalEvent.stopPropagation()},preventDefault:function(){P.originalEvent.preventDefault()},target:{name:o.name,id:o.id,value:P.target.value}})},$=function(P){m(!0),nt(),o.onFocus&&o.onFocus(P)},V=function(P){var xe=P.option;xe.disabled||($e(P),_.focus(A.current)),nt()},de=function(P){var xe=P.target.value;u(xe),o.onFilter&&o.onFilter({originalEvent:P,filter:xe})},je=function(P){Ge(P)},Ge=function(P){u(""),o.onFilter&&o.onFilter({filter:""}),P&&P()},Be=function(P){o.onChange&&o.onChange({originalEvent:P,value:void 0,stopPropagation:function(){P==null||P.stopPropagation()},preventDefault:function(){P==null||P.preventDefault()},target:{name:o.name,id:o.id,value:void 0}}),o.filter&&Ge(),Se()},$e=function(P){if(tn!==P.option){Se(P.option),x(-1);var xe=We(P.option),rt=Lt(P.option,wt);o.onChange&&o.onChange({originalEvent:P.originalEvent,value:xe,stopPropagation:function(){P.originalEvent.stopPropagation()},preventDefault:function(){P.originalEvent.preventDefault()},target:{name:o.name,id:o.id,value:xe}}),$t(P.originalEvent,rt)}},Ze=function(P){if(P=P||wt,o.value!=null&&P)if(o.optionGroupLabel)for(var xe=0;xe=0)&&ie()},[v,o.value,g]),Xt(function(){v&&i&&o.filter&&H()},[v,i,o.filter]),Xt(function(){i&&(!o.options||o.options.length===0)&&u(""),G(),B.current&&(B.current.selectedIndex=1)}),Rr(function(){Xr.clear(w.current)});var F=function(){var P={value:"",label:o.placeholder};if(tn){var xe=We(tn);P={value:bl(xe)==="object"?o.options.findIndex(function(ko){return ko===xe}):xe,label:ke(tn)}}var rt=n({className:"p-hidden-accessible p-dropdown-hidden-select"},re("hiddenSelectedMessage")),Ut=n({ref:B,required:o.required,defaultValue:P.value,name:o.name,tabIndex:-1,"aria-hidden":"true"},re("select")),pn=n({value:P.value},re("option"));return s.createElement("div",rt,s.createElement("select",Ut,s.createElement("option",pn,P.label)))},J=function(){var P=T.isNotEmpty(tn)?ke(tn):null;o.editable&&(P=P||o.value||"");var xe=n({className:"p-hidden-accessible"},re("hiddenSelectedMessage")),rt=n(vo({ref:A,id:o.inputId,defaultValue:P,type:"text",readOnly:!0,"aria-haspopup":"listbox",onFocus:Te,onBlur:we,onKeyDown:ht,disabled:o.disabled,tabIndex:o.disabled?-1:o.tabIndex||0},Tt),re("input"));return s.createElement("div",xe,s.createElement("input",rt))},le=function(){var P=T.isNotEmpty(tn)?ke(tn):null;if(o.editable){var xe=P||o.value||"",rt=n(vo({ref:B,type:"text",defaultValue:xe,className:X("input",{label:P}),disabled:o.disabled,placeholder:o.placeholder,maxLength:o.maxLength,onInput:N,onFocus:$,onKeyDown:ht,onBlur:we,tabIndex:o.disabled?-1:o.tabIndex||0,"aria-haspopup":"listbox"},Tt),re("input"));return s.createElement("input",rt)}var Ut=o.valueTemplate?T.getJSXElement(o.valueTemplate,tn,o):P||o.placeholder||"empty",pn=n({ref:B,className:X("input",{label:P}),tabIndex:"-1"},re("input"));return s.createElement("span",pn,Ut)},se=function(P){(P.key==="Enter"||P.code==="Space")&&(Be(P),P.preventDefault())},ct=function(){if(o.value!=null&&o.showClear&&!o.disabled){var P=n({className:X("clearIcon"),onPointerUp:Be,tabIndex:o.tabIndex||"0",onKeyDown:se,"aria-label":cr("clear")},re("clearIcon")),xe=o.clearIcon||s.createElement(hc,P);return en.getJSXIcon(xe,vo({},P),{props:o})}return null},gt=function(){var P=n({className:X("loadingIcon"),"data-pr-overlay-visible":v},re("loadingIcon")),xe=o.loadingIcon||s.createElement(au,{spin:!0}),rt=en.getJSXIcon(xe,vo({},P),{props:o}),Ut=o.placeholder||o.ariaLabel,pn=n({className:X("trigger"),role:"button","aria-haspopup":"listbox","aria-expanded":v,"aria-label":Ut},re("trigger"));return s.createElement("div",pn,rt)},Gt=function(){var P=n({className:X("dropdownIcon"),"data-pr-overlay-visible":v},re("dropdownIcon")),xe=o.dropdownIcon||s.createElement(gc,P),rt=en.getJSXIcon(xe,vo({},P),{props:o}),Ut=o.placeholder||o.ariaLabel,pn=n({className:X("trigger"),role:"button","aria-haspopup":"listbox","aria-expanded":v,"aria-label":Ut},re("trigger"));return s.createElement("div",pn,rt)},wt=lt(),tn=S(),Cn=T.isNotEmpty(o.tooltip),dt=Mu.getOtherProps(o),Tt=T.reduceKeys(dt,_.ARIA_PROPS),En=F(),Zt=J(),On=le(),Rn=o.loading?gt():Gt(),hr=ct(),oo=n({id:o.id,ref:k,className:ze(o.className,X("root",{context:r,focusedState:f,overlayVisibleState:v})),style:o.style,onClick:function(P){return q(P)},onMouseDown:o.onMouseDown,onContextMenu:o.onContextMenu,onFocus:ge,"data-p-disabled":o.disabled,"data-p-focus":f},dt,re("root")),Tr=n({ref:D,role:"presentation","aria-hidden":"true",className:"p-hidden-accessible p-hidden-focusable",tabIndex:"0",onFocus:Rt,"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0},re("hiddenFirstFocusableEl")),sr=n({ref:I,role:"presentation","aria-hidden":"true",className:"p-hidden-accessible p-hidden-focusable",tabIndex:"0",onFocus:zt,"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0},re("hiddenLastFocusableEl"));return s.createElement(s.Fragment,null,s.createElement("div",oo,Zt,En,On,hr,Rn,s.createElement(mb,Co({hostName:"Dropdown",ref:w,visibleOptions:wt,virtualScrollerRef:ye},o,{appendTo:qe,cx:X,filterValue:i,focusedOptionIndex:g,getOptionGroupChildren:Ce,getOptionGroupLabel:ee,getOptionGroupRenderKey:M,getOptionLabel:ke,getOptionRenderKey:he,getSelectedOptionIndex:Ze,hasFilter:it,in:v,isOptionDisabled:C,isSelected:Dt,onClick:et,onEnter:W,onEntered:ue,onExit:ae,onExited:fe,onFilterClearIconClick:je,onFilterInputChange:de,onFilterInputKeyDown:Ct,onOptionClick:V,ptm:re,resetFilter:Ge,changeFocusedOptionIndex:$t,firstFocusableElement:s.createElement("span",Tr),lastFocusableElement:s.createElement("span",sr),sx:oe}))),Cn&&s.createElement(ra,Co({target:k,content:o.tooltip,pt:re("tooltip")},o.tooltipOptions)))}));Hs.displayName="Dropdown";function x4(e){if(Array.isArray(e))return e}function P4(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,l,i=[],u=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(i.push(r.value),i.length!==t);u=!0);}catch(d){c=!0,o=d}finally{try{if(!u&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw o}}return i}}function oh(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:{},ye={height:A.props?A.props.itemSize:void 0};if(ye=Ur(Ur({},ye),I.style),I.group&&I.optionGroup&&e.optionGroupLabel){var Ie=e.optionGroupLabel,Me=e.optionGroupTemplate?T.getJSXElement(e.optionGroupTemplate,I,B):e.getOptionGroupLabel(I),Ae=B+"_"+e.getOptionGroupRenderKey(I),it=n({className:o("itemGroup",{optionGroupLabel:Ie}),style:ye,"data-p-highlight":e.selected},d("itemGroup")),qe=n({className:o("itemGroupLabel")},d("itemGroupLabel"));return s.createElement("li",Co({key:Ae},it),s.createElement("span",qe,Me))}var K=e.getOptionRenderKey(I)+"_"+B,re=e.getOptionLabel(I),Y=e.isOptionDisabled(I);return s.createElement(pb,{key:K,label:re,index:B,focusedOptionIndex:e.focusedOptionIndex,option:I,style:ye,template:e.itemTemplate,selected:e.isSelected(I),highlightOnSelect:e.highlightOnSelect,disabled:Y,onClick:e.onOptionClick,onMouseMove:g,ptm:r,cx:o,checkmark:e.checkmark})},p=function(){return T.isNotEmpty(e.visibleOptions)?e.visibleOptions.map(h):e.hasFilter?x(e.emptyFilterMessage,!0):x(e.emptyMessage)},v=function(){if(e.showFilterClear&&e.filterValue){var I=cr("clear"),B=n({className:o("filterClearIcon"),"aria-label":I,onClick:function(){return e.onFilterClearIconClick(function(){return _.focus(i.current)})}},d("filterClearIcon")),A=e.filterClearIcon||s.createElement(hc,B),ye=en.getJSXIcon(A,Ur({},B),{props:e});return ye}return null},E=function(){if(e.filter){var I=v(),B=n({className:o("filterIcon")},d("filterIcon")),A=e.filterIcon||s.createElement(cb,B),ye=en.getJSXIcon(A,Ur({},B),{props:e}),Ie=n({className:o("filterContainer",{clearIcon:I})},d("filterContainer")),Me=n({ref:i,type:"text",autoComplete:"off",className:o("filterInput",{context:l}),placeholder:e.filterPlaceholder,onKeyDown:e.onFilterInputKeyDown,onChange:function(re){return y(re)},value:e.filterValue},d("filterInput")),Ae=s.createElement("div",Ie,s.createElement("input",Me),I,ye);if(e.filterTemplate){var it={className:ze("p-dropdown-filter-container",{"p-dropdown-clearable-filter":!!I}),element:Ae,filterOptions:c,filterInputKeyDown:e.onFilterInputKeyDown,filterInputChange:y,filterIconClassName:"p-dropdown-filter-icon",clearIcon:I,props:e};Ae=T.getJSXElement(e.filterTemplate,it)}var qe=n({className:o("header")},d("header"));return s.createElement("div",qe,Ae)}return null},O=function(){if(e.virtualScrollerOptions){var I=Ur(Ur({},e.virtualScrollerOptions),{style:Ur(Ur({},e.virtualScrollerOptions.style),{height:e.scrollHeight}),className:ze("p-dropdown-items-wrapper",e.virtualScrollerOptions.className),items:e.visibleOptions,autoSize:!0,onLazyLoad:function(Me){return e.virtualScrollerOptions.onLazyLoad(Ur(Ur({},Me),{filter:e.filterValue}))},itemTemplate:function(Me,Ae){return Me&&h(Me,Ae.index,Ae)},contentTemplate:function(Me){var Ae=e.hasFilter?e.emptyFilterMessage:e.emptyMessage,it=u?x(Ae):Me.children,qe=n({ref:Me.contentRef,style:Me.style,className:ze(Me.className,o("list",{virtualScrollerProps:e.virtualScrollerOptions})),role:"listbox"},d("list"));return s.createElement("ul",qe,it)}});return s.createElement(xm,Co({ref:e.virtualScrollerRef},I,{pt:r("virtualScroller")}))}var B=p(),A=n({className:o("wrapper"),style:a("wrapper")},d("wrapper")),ye=n({className:o("list"),role:"listbox"},d("list"));return s.createElement("div",A,s.createElement("ul",ye,B))},k=function(){var I=E(),B=O(),A=b(),ye=n({className:ze(e.panelClassName,o("panel",{context:l})),style:a("panel"),onClick:e.onClick},d("panel")),Ie=n({classNames:o("transition"),in:e.in,timeout:{enter:120,exit:100},options:e.transitionOptions,unmountOnExit:!0,onEnter:f,onEntered:m,onExit:e.onExit,onExited:e.onExited},d("transition"));return s.createElement(Em,Co({nodeRef:t},Ie),s.createElement("div",Co({ref:t},ye),e.firstFocusableElement,I,B,A,e.lastFocusableElement))},w=k();return s.createElement(vc,{element:w,appendTo:e.appendTo})}));mb.displayName="DropdownPanel";function C4(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=E4(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,l=!1,i;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return a=c.done,c},e:function(c){l=!0,i=c},f:function(){try{!a&&n.return!=null&&n.return()}finally{if(l)throw i}}}}function E4(e,t){if(e){if(typeof e=="string")return nh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nh(e,t)}}function nh(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:!0,Ut=We(xe);$e({originalEvent:P,option:Ut}),rt&&nt()},et=function(P){Ho.emit("overlay-click",{originalEvent:P,target:k.current})},ht=function(P){if(o.disabled||_.isAndroid()){P.preventDefault();return}var xe=P.metaKey||P.ctrlKey;switch(P.code){case"ArrowDown":Ye(P);break;case"ArrowUp":Z(P);break;case"ArrowLeft":case"ArrowRight":He(P,o.editable);break;case"Home":at(P);break;case"End":ce(P);break;case"PageDown":Re(P);break;case"PageUp":L(P);break;case"Space":Ve(P,o.editable);break;case"NumpadEnter":case"Enter":Pt(P);break;case"Escape":_t(P);break;case"Tab":It(P);break;case"Backspace":Wt(P,o.editable);break;case"ShiftLeft":case"ShiftRight":break;default:!xe&&T.isPrintableCharacter(P.key)&&(!v&&!o.editable&&Ke(),!o.editable&&bt(P,P.key));break}O.current=!1},Ct=function(P){switch(P.code){case"ArrowDown":Ye(P);break;case"ArrowUp":Z(P);break;case"ArrowLeft":case"ArrowRight":He(P,!0);break;case"Escape":case"Enter":case"NumpadEnter":Pt(P),P.preventDefault();break}},ln=function(){return _.getFocusableElements(w.current,':not([data-p-hidden-focusable="true"])').length>0},Bt=function(P){var xe;return _e(P)&&((xe=ke(P))===null||xe===void 0?void 0:xe.toLocaleLowerCase(o.filterLocale).startsWith(Me.current.toLocaleLowerCase(o.filterLocale)))},_e=function(P){return T.isNotEmpty(P)&&!(C(P)||U(P))},z=function(){return T.isNotEmpty(o.value)},me=function(P){return _e(P)&&Dt(P)},Le=function(){return z?wt.findIndex(function(P){return me(P)}):-1},mt=function(){var P=Le();return P<0?xt():P},bt=function(P,xe){Me.current=(Me.current||"")+xe;var rt=-1,Ut=!1;return T.isNotEmpty(Me.current)&&(g!==-1?(rt=wt.slice(g).findIndex(function(pn){return Bt(pn)}),rt=rt===-1?wt.slice(0,g).findIndex(function(pn){return Bt(pn)}):rt+g):rt=wt.findIndex(function(pn){return Bt(pn)}),rt!==-1&&(Ut=!0),rt===-1&&g===-1&&(rt=mt()),rt!==-1&&$t(P,rt)),Ie.current&&clearTimeout(Ie.current),Ie.current=setTimeout(function(){Me.current="",Ie.current=null},500),Ut},ft=function(){var P=Le();return P<0?yt():P},xt=function(){return wt.findIndex(function(P){return _e(P)})},yt=function(){return T.findLastIndex(wt,function(P){return _e(P)})},un=function(P){var xe=P-1?xe+P+1:P},Mt=function(P){var xe=P>0?T.findLastIndex(wt.slice(0,P),function(rt){return _e(rt)}):-1;return xe>-1?xe:P},$t=function(P,xe){g!==xe&&(x(xe),o.selectOnFocus&&ut(P,wt[xe],!1))},Ye=function(P){if(!v)Ke(),o.editable&&$t(P,Le());else{var xe=g!==-1?un(g):O.current?xt():mt();$t(P,xe)}P.preventDefault()},Z=function(P){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(P.altKey&&!xe)g!==-1&&ut(P,wt[g]),state.overlayVisible&&nt(),P.preventDefault();else{var rt=g!==-1?Mt(g):O.current?yt():ft();$t(P,rt),!v&&Ke(),P.preventDefault()}},He=function(P){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;xe&&x(-1)},at=function(P){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;xe?(P.currentTarget.setSelectionRange(0,0),x(-1)):($t(P,xt()),!v&&Ke()),P.preventDefault()},ce=function(P){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(xe){var rt=P.currentTarget,Ut=rt.value.length;rt.setSelectionRange(Ut,Ut),x(-1)}else $t(P,yt()),!v&&Ke();P.preventDefault()},L=function(P){P.preventDefault()},Re=function(P){P.preventDefault()},Ve=function(P){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;!xe&&Pt(P)},Pt=function(P){v?(g!==-1&&ut(P,wt[g]),nt()):(x(-1),Ye(P)),P.preventDefault()},_t=function(P){v&&nt(),P.preventDefault()},It=function(P){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;xe||(v&&!ln()?(_.focus(D.current),P.preventDefault()):(g!==-1&&ut(P,wt[g]),v&&nt()))},Wt=function(P){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;xe&&!v&&Ke()},N=function(P){var xe=null;P.target.value&&(xe=wt.findIndex(function(rt){return ke(rt).toLocaleLowerCase().startsWith(P.target.value.toLocaleLowerCase())})),x(xe),o.onChange&&o.onChange({originalEvent:P.originalEvent,value:P.target.value,stopPropagation:function(){P.originalEvent.stopPropagation()},preventDefault:function(){P.originalEvent.preventDefault()},target:{name:o.name,id:o.id,value:P.target.value}})},$=function(P){m(!0),nt(),o.onFocus&&o.onFocus(P)},V=function(P){var xe=P.option;xe.disabled||($e(P),_.focus(A.current)),nt()},de=function(P){var xe=P.target.value;u(xe),o.onFilter&&o.onFilter({originalEvent:P,filter:xe})},je=function(P){Ge(P)},Ge=function(P){u(""),o.onFilter&&o.onFilter({filter:""}),P&&P()},Be=function(P){o.onChange&&o.onChange({originalEvent:P,value:void 0,stopPropagation:function(){P==null||P.stopPropagation()},preventDefault:function(){P==null||P.preventDefault()},target:{name:o.name,id:o.id,value:void 0}}),o.filter&&Ge(),Se()},$e=function(P){if(tn!==P.option){Se(P.option),x(-1);var xe=We(P.option),rt=Lt(P.option,wt);o.onChange&&o.onChange({originalEvent:P.originalEvent,value:xe,stopPropagation:function(){P.originalEvent.stopPropagation()},preventDefault:function(){P.originalEvent.preventDefault()},target:{name:o.name,id:o.id,value:xe}}),$t(P.originalEvent,rt)}},Ze=function(P){if(P=P||wt,o.value!=null&&P)if(o.optionGroupLabel)for(var xe=0;xe=0)&&ie()},[v,o.value,g]),Xt(function(){v&&i&&o.filter&&H()},[v,i,o.filter]),Xt(function(){i&&(!o.options||o.options.length===0)&&u(""),G(),B.current&&(B.current.selectedIndex=1)}),Rr(function(){Xr.clear(w.current)});var F=function(){var P={value:"",label:o.placeholder};if(tn){var xe=We(tn);P={value:bl(xe)==="object"?o.options.findIndex(function(ko){return ko===xe}):xe,label:ke(tn)}}var rt=n({className:"p-hidden-accessible p-dropdown-hidden-select"},re("hiddenSelectedMessage")),Ut=n({ref:B,required:o.required,defaultValue:P.value,name:o.name,tabIndex:-1,"aria-hidden":"true"},re("select")),pn=n({value:P.value},re("option"));return s.createElement("div",rt,s.createElement("select",Ut,s.createElement("option",pn,P.label)))},X=function(){var P=T.isNotEmpty(tn)?ke(tn):null;o.editable&&(P=P||o.value||"");var xe=n({className:"p-hidden-accessible"},re("hiddenSelectedMessage")),rt=n(vo({ref:A,id:o.inputId,defaultValue:P,type:"text",readOnly:!0,"aria-haspopup":"listbox",onFocus:Te,onBlur:we,onKeyDown:ht,disabled:o.disabled,tabIndex:o.disabled?-1:o.tabIndex||0},Tt),re("input"));return s.createElement("div",xe,s.createElement("input",rt))},le=function(){var P=T.isNotEmpty(tn)?ke(tn):null;if(o.editable){var xe=P||o.value||"",rt=n(vo({ref:B,type:"text",defaultValue:xe,className:Y("input",{label:P}),disabled:o.disabled,placeholder:o.placeholder,maxLength:o.maxLength,onInput:N,onFocus:$,onKeyDown:ht,onBlur:we,tabIndex:o.disabled?-1:o.tabIndex||0,"aria-haspopup":"listbox"},Tt),re("input"));return s.createElement("input",rt)}var Ut=o.valueTemplate?T.getJSXElement(o.valueTemplate,tn,o):P||o.placeholder||"empty",pn=n({ref:B,className:Y("input",{label:P}),tabIndex:"-1"},re("input"));return s.createElement("span",pn,Ut)},se=function(P){(P.key==="Enter"||P.code==="Space")&&(Be(P),P.preventDefault())},ct=function(){if(o.value!=null&&o.showClear&&!o.disabled){var P=n({className:Y("clearIcon"),onPointerUp:Be,tabIndex:o.tabIndex||"0",onKeyDown:se,"aria-label":cr("clear")},re("clearIcon")),xe=o.clearIcon||s.createElement(hc,P);return en.getJSXIcon(xe,vo({},P),{props:o})}return null},gt=function(){var P=n({className:Y("loadingIcon"),"data-pr-overlay-visible":v},re("loadingIcon")),xe=o.loadingIcon||s.createElement(au,{spin:!0}),rt=en.getJSXIcon(xe,vo({},P),{props:o}),Ut=o.placeholder||o.ariaLabel,pn=n({className:Y("trigger"),role:"button","aria-haspopup":"listbox","aria-expanded":v,"aria-label":Ut},re("trigger"));return s.createElement("div",pn,rt)},Gt=function(){var P=n({className:Y("dropdownIcon"),"data-pr-overlay-visible":v},re("dropdownIcon")),xe=o.dropdownIcon||s.createElement(gc,P),rt=en.getJSXIcon(xe,vo({},P),{props:o}),Ut=o.placeholder||o.ariaLabel,pn=n({className:Y("trigger"),role:"button","aria-haspopup":"listbox","aria-expanded":v,"aria-label":Ut},re("trigger"));return s.createElement("div",pn,rt)},wt=lt(),tn=S(),Cn=T.isNotEmpty(o.tooltip),dt=Mu.getOtherProps(o),Tt=T.reduceKeys(dt,_.ARIA_PROPS),En=F(),Zt=X(),On=le(),Rn=o.loading?gt():Gt(),hr=ct(),oo=n({id:o.id,ref:k,className:ze(o.className,Y("root",{context:r,focusedState:f,overlayVisibleState:v})),style:o.style,onClick:function(P){return q(P)},onMouseDown:o.onMouseDown,onContextMenu:o.onContextMenu,onFocus:ge,"data-p-disabled":o.disabled,"data-p-focus":f},dt,re("root")),Tr=n({ref:D,role:"presentation","aria-hidden":"true",className:"p-hidden-accessible p-hidden-focusable",tabIndex:"0",onFocus:Rt,"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0},re("hiddenFirstFocusableEl")),sr=n({ref:I,role:"presentation","aria-hidden":"true",className:"p-hidden-accessible p-hidden-focusable",tabIndex:"0",onFocus:zt,"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0},re("hiddenLastFocusableEl"));return s.createElement(s.Fragment,null,s.createElement("div",oo,Zt,En,On,hr,Rn,s.createElement(mb,Co({hostName:"Dropdown",ref:w,visibleOptions:wt,virtualScrollerRef:ye},o,{appendTo:qe,cx:Y,filterValue:i,focusedOptionIndex:g,getOptionGroupChildren:Ce,getOptionGroupLabel:ee,getOptionGroupRenderKey:M,getOptionLabel:ke,getOptionRenderKey:he,getSelectedOptionIndex:Ze,hasFilter:it,in:v,isOptionDisabled:C,isSelected:Dt,onClick:et,onEnter:W,onEntered:ue,onExit:ae,onExited:fe,onFilterClearIconClick:je,onFilterInputChange:de,onFilterInputKeyDown:Ct,onOptionClick:V,ptm:re,resetFilter:Ge,changeFocusedOptionIndex:$t,firstFocusableElement:s.createElement("span",Tr),lastFocusableElement:s.createElement("span",sr),sx:oe}))),Cn&&s.createElement(ra,Co({target:k,content:o.tooltip,pt:re("tooltip")},o.tooltipOptions)))}));Hs.displayName="Dropdown";function x4(e){if(Array.isArray(e))return e}function P4(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,l,i=[],u=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(i.push(r.value),i.length!==t);u=!0);}catch(d){c=!0,o=d}finally{try{if(!u&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw o}}return i}}function oh(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?n.page+1:0,l=s.createElement(nb,{value:a,onChange:o,className:"p-paginator-page-input",disabled:n.disabled,pt:n.ptm("JTPInput"),unstyled:n.unstyled,__parentMetadata:{parent:n.metaData},"aria-label":r});if(n.template){var i={value:a,onChange:o,disabled:n.disabled,className:"p-paginator-page-input","aria-label":r,element:l,props:n};return T.getJSXElement(n.template,i)}return l});bb.displayName="JumpToPageInput";function sh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function K4(e){for(var t=1;t0,o=r?n.options.map(function(c){return{label:String(c),value:c}}):[],a=cr("choose"),l=yb("jumpToPageDropdownLabel"),i=r?s.createElement(s.Fragment,null,s.createElement(Hs,{value:n.value,options:o,onChange:n.onChange,appendTo:n.appendTo,disabled:n.disabled,placeholder:a,"aria-label":l,pt:n.ptm("RPPDropdown"),unstyled:n.unstyled,__parentMetadata:{parent:n.metaData}})):null;if(n.template){var u={value:n.value,options:o,onChange:n.onChange,appendTo:n.appendTo,currentPage:n.page,totalPages:n.pageCount,totalRecords:n.totalRecords,disabled:n.disabled,ariaLabel:l,element:i,props:n};return T.getJSXElement(n.template,u)}return i});xb.displayName="RowsPerPageDropdown";function fh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function J4(e){for(var t=1;t=0&&ve0&&o.first>=o.totalRecords&&p((m-1)*o.rows,o.rows)},[o.totalRecords]);var I=function(X,oe){var te;switch(X){case"FirstPageLink":te=s.createElement(hb,{hostName:"Paginator",key:X,page:f,totalPages:m,totalRecords:o.totalRecords,rows:o.rows,onClick:v,disabled:y||g,template:oe,firstPageLinkIcon:o.firstPageLinkIcon,ptm:i,cx:u});break;case"PrevPageLink":te=s.createElement(Eb,{hostName:"Paginator",key:X,page:f,totalPages:m,totalRecords:o.totalRecords,rows:o.rows,onClick:E,disabled:y||g,template:oe,prevPageLinkIcon:o.prevPageLinkIcon,ptm:i,cx:u});break;case"NextPageLink":te=s.createElement(Sb,{hostName:"Paginator",key:X,page:f,totalPages:m,totalRecords:o.totalRecords,rows:o.rows,onClick:k,disabled:b||g,template:oe,nextPageLinkIcon:o.nextPageLinkIcon,ptm:i,cx:u});break;case"LastPageLink":te=s.createElement(wb,{hostName:"Paginator",key:X,page:f,totalPages:m,totalRecords:o.totalRecords,rows:o.rows,onClick:w,disabled:b||g,template:oe,lastPageLinkIcon:o.lastPageLinkIcon,ptm:i,cx:u});break;case"PageLinks":te=s.createElement(Cb,{hostName:"Paginator",key:X,page:f,totalPages:m,totalRecords:o.totalRecords,rows:o.rows,value:h(),onClick:O,template:oe,ptm:i,cx:u});break;case"RowsPerPageDropdown":te=s.createElement(xb,{hostName:"Paginator",key:X,value:o.rows,page:f,totalPages:m,totalRecords:o.totalRecords,options:o.rowsPerPageOptions,onChange:D,appendTo:o.dropdownAppendTo,template:oe,disabled:g,unstyled:o.unstyled,ptm:i,cx:u,metaData:a});break;case"CurrentPageReport":te=s.createElement(gb,{hostName:"Paginator",reportTemplate:o.currentPageReportTemplate,key:X,page:f,totalPages:m,totalRecords:o.totalRecords,rows:o.rows,first:o.first,template:oe,ptm:i});break;case"JumpToPageInput":te=s.createElement(bb,{hostName:"Paginator",key:X,rows:o.rows,page:f,totalPages:m,onChange:p,disabled:g,template:oe,ptm:i,unstyled:o.unstyled,metaData:a});break;default:te=null;break}return te},B=function(){var X=o.template;return X?wl(X)==="object"?X.layout?X.layout.split(" ").map(function(oe){var te=oe.trim();return I(te,X[te])}):Object.entries(X).map(function(oe){var te=I4(oe,2),ve=te[0],Oe=te[1];return I(ve,Oe)}):X.split(" ").map(function(oe){return I(oe.trim())}):null};if(!o.alwaysShow&&m<=1)return null;var A=T.getJSXElement(o.leftContent,o),ye=T.getJSXElement(o.rightContent,o),Ie=B(),Me=n({className:u("left")},i("left")),Ae=A&&s.createElement("div",Me,A),it=n({className:u("end")},i("end")),qe=ye&&s.createElement("div",it,ye),K=n({ref:d,className:ze(o.className,u("root")),style:o.style},_u.getOtherProps(o),i("root"));return s.createElement("div",K,Ae,Ie,qe)}));Pb.displayName="Paginator";function Gf(){return Gf=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?n.page+1:0,l=s.createElement(nb,{value:a,onChange:o,className:"p-paginator-page-input",disabled:n.disabled,pt:n.ptm("JTPInput"),unstyled:n.unstyled,__parentMetadata:{parent:n.metaData},"aria-label":r});if(n.template){var i={value:a,onChange:o,disabled:n.disabled,className:"p-paginator-page-input","aria-label":r,element:l,props:n};return T.getJSXElement(n.template,i)}return l});bb.displayName="JumpToPageInput";function sh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function K4(e){for(var t=1;t0,o=r?n.options.map(function(c){return{label:String(c),value:c}}):[],a=cr("choose"),l=yb("jumpToPageDropdownLabel"),i=r?s.createElement(s.Fragment,null,s.createElement(Hs,{value:n.value,options:o,onChange:n.onChange,appendTo:n.appendTo,disabled:n.disabled,placeholder:a,"aria-label":l,pt:n.ptm("RPPDropdown"),unstyled:n.unstyled,__parentMetadata:{parent:n.metaData}})):null;if(n.template){var u={value:n.value,options:o,onChange:n.onChange,appendTo:n.appendTo,currentPage:n.page,totalPages:n.pageCount,totalRecords:n.totalRecords,disabled:n.disabled,ariaLabel:l,element:i,props:n};return T.getJSXElement(n.template,u)}return i});xb.displayName="RowsPerPageDropdown";function fh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function J4(e){for(var t=1;t=0&&ve0&&o.first>=o.totalRecords&&p((m-1)*o.rows,o.rows)},[o.totalRecords]);var I=function(Y,oe){var te;switch(Y){case"FirstPageLink":te=s.createElement(hb,{hostName:"Paginator",key:Y,page:f,totalPages:m,totalRecords:o.totalRecords,rows:o.rows,onClick:v,disabled:y||g,template:oe,firstPageLinkIcon:o.firstPageLinkIcon,ptm:i,cx:u});break;case"PrevPageLink":te=s.createElement(Eb,{hostName:"Paginator",key:Y,page:f,totalPages:m,totalRecords:o.totalRecords,rows:o.rows,onClick:E,disabled:y||g,template:oe,prevPageLinkIcon:o.prevPageLinkIcon,ptm:i,cx:u});break;case"NextPageLink":te=s.createElement(Sb,{hostName:"Paginator",key:Y,page:f,totalPages:m,totalRecords:o.totalRecords,rows:o.rows,onClick:k,disabled:b||g,template:oe,nextPageLinkIcon:o.nextPageLinkIcon,ptm:i,cx:u});break;case"LastPageLink":te=s.createElement(wb,{hostName:"Paginator",key:Y,page:f,totalPages:m,totalRecords:o.totalRecords,rows:o.rows,onClick:w,disabled:b||g,template:oe,lastPageLinkIcon:o.lastPageLinkIcon,ptm:i,cx:u});break;case"PageLinks":te=s.createElement(Cb,{hostName:"Paginator",key:Y,page:f,totalPages:m,totalRecords:o.totalRecords,rows:o.rows,value:h(),onClick:O,template:oe,ptm:i,cx:u});break;case"RowsPerPageDropdown":te=s.createElement(xb,{hostName:"Paginator",key:Y,value:o.rows,page:f,totalPages:m,totalRecords:o.totalRecords,options:o.rowsPerPageOptions,onChange:D,appendTo:o.dropdownAppendTo,template:oe,disabled:g,unstyled:o.unstyled,ptm:i,cx:u,metaData:a});break;case"CurrentPageReport":te=s.createElement(gb,{hostName:"Paginator",reportTemplate:o.currentPageReportTemplate,key:Y,page:f,totalPages:m,totalRecords:o.totalRecords,rows:o.rows,first:o.first,template:oe,ptm:i});break;case"JumpToPageInput":te=s.createElement(bb,{hostName:"Paginator",key:Y,rows:o.rows,page:f,totalPages:m,onChange:p,disabled:g,template:oe,ptm:i,unstyled:o.unstyled,metaData:a});break;default:te=null;break}return te},B=function(){var Y=o.template;return Y?wl(Y)==="object"?Y.layout?Y.layout.split(" ").map(function(oe){var te=oe.trim();return I(te,Y[te])}):Object.entries(Y).map(function(oe){var te=I4(oe,2),ve=te[0],Oe=te[1];return I(ve,Oe)}):Y.split(" ").map(function(oe){return I(oe.trim())}):null};if(!o.alwaysShow&&m<=1)return null;var A=T.getJSXElement(o.leftContent,o),ye=T.getJSXElement(o.rightContent,o),Ie=B(),Me=n({className:u("left")},i("left")),Ae=A&&s.createElement("div",Me,A),it=n({className:u("end")},i("end")),qe=ye&&s.createElement("div",it,ye),K=n({ref:d,className:ze(o.className,u("root")),style:o.style},_u.getOtherProps(o),i("root"));return s.createElement("div",K,Ae,Ie,qe)}));Pb.displayName="Paginator";function Gf(){return Gf=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function f9(e,t){if(e==null)return{};var n=d9(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var p9={box:"p-checkbox-box",input:"p-checkbox-input",icon:"p-checkbox-icon",root:function(t){var n=t.props,r=t.checked,o=t.context;return ze("p-checkbox p-component",{"p-highlight":r,"p-disabled":n.disabled,"p-invalid":n.invalid,"p-variant-filled":n.variant?n.variant==="filled":o&&o.inputStyle==="filled"})}},Au=St.extend({defaultProps:{__TYPE:"Checkbox",autoFocus:!1,checked:!1,className:null,disabled:!1,falseValue:!1,icon:null,id:null,inputId:null,inputRef:null,invalid:!1,variant:null,name:null,onChange:null,onContextMenu:null,onMouseDown:null,readOnly:!1,required:!1,style:null,tabIndex:null,tooltip:null,tooltipOptions:null,trueValue:!0,value:null,children:void 0},css:{classes:p9}});function hh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function yh(e){for(var t=1;t-1:te(e.selection):!1},oe=function(L){return e.compareSelectionBy==="equals"?L===e.rowData:T.equals(L,e.rowData,e.dataKey)},te=function(L){return L&&(L.rowIndex===e.rowIndex||oe(L.rowData))&&(L.field===ye||L.cellIndex===e.index)},ve=function(L){return b.current&&!(b.current.isSameNode(L)||b.current.contains(L))},Oe=function(L){return e.virtualScrollerOptions?e.virtualScrollerOptions[L]:null},pt=function(){var L=I("bodyStyle"),Re=I("style");return I("frozen")?Object.assign({},Re,L,m):Object.assign({},Re,L)},st=function(){return{value:lt(),field:ye,rowData:e.rowData,rowIndex:e.rowIndex,cellIndex:e.index,selected:X(),column:e.column,props:e}},tt=function(L){var Re=st();return er({originalEvent:L},Re)},lt=function(L){return T.resolveFieldData(L||e.rowData,ye)},Rt=function(){return e.editingMeta&&e.editingMeta[Ie]?e.editingMeta[Ie].data:e.rowData},zt=function(L){return e.allowCellSelection?L?0:e.rowIndex===0&&e.index===0?e.tabIndex:-1:null},Xe=function(L){return(L||[]).findIndex(function(Re){return te(Re)})},q=function(L){var Re=tt(L),Ve=I("onBeforeCellEditHide");Ve&&Ve(Re),setTimeout(function(){a(!1),re(),Ho.off("overlay-click",x.current),x.current=null,E.current=null,h.current=!1},1)},Te=function(L,Re){var Ve=tt(L),Pt=er({},E.current),_t=lt(Pt),It=er(er({},Ve),{},{newRowData:Pt,newValue:_t}),Wt=I("onCellEditCancel"),N=I("cellEditValidator"),$=I("onCellEditComplete");!Re&&Wt&&Wt(It);var V=!0;(!Re||Ae())&&N&&(V=N(It)),V?(Re&&$&&$(It),q(L)):L.preventDefault(),c(Pt)},we=function ce(L){var Re=L.nextElementSibling;return Re?_.getAttribute(Re,"data-p-selectable-cell")?Re:ce(Re):null},ut=function ce(L){var Re=L.previousElementSibling;return Re?_.getAttribute(Re,"data-p-selectable-cell")?Re:ce(Re):null},et=function ce(L){var Re=L.parentElement.nextElementSibling,Ve=Re?Re.children[e.index]:null;return Re&&Ve?_.getAttribute(Re,"data-p-selectable-row")&&_.getAttribute(Ve,"data-p-selectable-cell")?Ve:ce(Ve):null},ht=function ce(L){var Re=L.parentElement.previousElementSibling,Ve=Re?Re.children[e.index]:null;return Re&&Ve?_.getAttribute(Re,"data-p-selectable-row")&&_.getAttribute(Ve,"data-p-selectable-cell")?Ve:ce(Ve):null},Ct=function(L,Re){L&&Re&&(L.tabIndex=-1,Re.tabIndex=e.tabIndex)},ln=function(){clearTimeout(p.current),p.current=setTimeout(function(){if(o){var L=e.editMode==="cell"?_.getFirstFocusableElement(b.current,':not([data-pc-section="editorkeyhelperlabel"])'):_.findSingle(b.current,'[data-p-row-editor-save="true"]');L&&L.focus()}g.current&&(g.current.tabIndex=o?-1:0)},1)},Bt=function(){clearTimeout(v.current),v.current=setTimeout(function(){var L=e.editMode==="row"?_.findSingle(b.current,'[data-p-row-editor-init="true"]'):null;L&&L.focus()},1)},_e=function(){if(I("frozen")){var L=er({},m),Re=I("alignFrozen");if(Re==="right"){var Ve=0,Pt=b.current&&b.current.nextElementSibling;Pt&&(Ve=_.getOuterWidth(Pt)+parseFloat(Pt.style.right||0)),L.right=Ve+"px"}else{var _t=0,It=b.current&&b.current.previousElementSibling;It&&(_t=_.getOuterWidth(It)+parseFloat(It.style.left||0)),L.left=_t+"px"}var Wt=m.left===L.left&&m.right===L.right;!Wt&&y(L)}},z=function(L){var Re=er({},u);T.mutateFieldData(Re,ye,L),c(Re);var Ve=Rt();Ve&&T.mutateFieldData(Ve,ye,L)},me=function(L){var Re=tt(L);if(e.editMode!=="row"&&Me()&&!o&&(e.selectOnEdit||!e.selectOnEdit&&e.selected)){h.current=!0;var Ve=I("onBeforeCellEditShow"),Pt=I("onCellEditInit"),_t=I("cellEditValidatorEvent");if(Ve&&(Ve(Re)===!1||L&&L.defaultPrevented))return;setTimeout(function(){a(!0),!(Pt&&(Pt(Re)===!1||L&&L.defaultPrevented))&&_t==="click"&&(K(),x.current=function(It){ve(It.target)||(h.current=!0)},Ho.on("overlay-click",x.current))},1)}e.allowCellSelection&&e.onClick&&e.onClick(Re)},Le=function(L){var Re=tt(L);e.onMouseDown&&e.onMouseDown(Re)},mt=function(L){var Re=tt(L);e.onMouseUp&&e.onMouseUp(Re)},bt=function(L){if(e.editMode!=="row"&&((L.code==="Enter"||L.code==="NumpadEnter"||L.code==="Tab")&&Te(L,!0),L.code==="Escape"&&Te(L,!1)),e.allowCellSelection){var Re=L.target,Ve=L.currentTarget;switch(L.code){case"ArrowLeft":var Pt=ut(Ve);Pt&&(Ct(Ve,Pt),Pt.focus()),L.preventDefault();break;case"ArrowRight":var _t=we(Ve);_t&&(Ct(Ve,_t),_t.focus()),L.preventDefault();break;case"ArrowUp":var It=ht(Ve);It&&(Ct(Ve,It),It.focus()),L.preventDefault();break;case"ArrowDown":var Wt=et(Ve);Wt&&(Ct(Ve,Wt),Wt.focus()),L.preventDefault();break;case"Enter":case"NumpadEnter":L.shiftKey||L.ctrlKey||_.isClickable(Re)||(me(L),L.preventDefault());break;case"Space":!_.isClickable(Re)&&!Re.readOnly&&(me(L),L.preventDefault());break}}},ft=function(L){h.current=!1,e.editMode!=="row"&&o&&I("cellEditValidatorEvent")==="blur"&&Te(L,!0)},xt=function(L){me(L)},yt=function(L){e.onRadioChange({originalEvent:L,data:e.rowData,index:e.rowIndex})},un=function(L){e.onCheckboxChange({originalEvent:L,data:e.rowData,index:e.rowIndex})},Mt=function(L){e.onRowToggle({originalEvent:L,data:e.rowData}),L.preventDefault(),L.stopPropagation()},$t=function(L){e.onRowEditInit({originalEvent:L,data:e.rowData,newData:Rt(),field:ye,index:e.rowIndex})},Ye=function(L){e.onRowEditSave({originalEvent:L,data:e.rowData,newData:Rt(),field:ye,index:e.rowIndex}),Bt()},Z=function(L){e.onRowEditCancel({originalEvent:L,data:e.rowData,newData:Rt(),field:ye,index:e.rowIndex}),Bt()};s.useEffect(function(){I("frozen")&&_e(),(e.editMode==="cell"||e.editMode==="row")&&ln()}),s.useEffect(function(){e.editMode==="row"&&e.editing!==o&&a(e.editing)},[e.editMode,e.editing,o]),Xt(function(){(e.editMode==="cell"||e.editMode==="row")&&c(Rt())},[e.editingMeta]),s.useEffect(function(){u&&(E.current=u)},[u]),s.useEffect(function(){if(e.editMode==="cell"||e.editMode==="row"){var ce=tt(),L=er(er({},ce),{},{editing:o,editingKey:Ie});e.onEditingMetaChange(L)}},[o]),Rr(function(){x.current&&(Ho.off("overlay-click",x.current),x.current=null)});var He=function(){var L=Oe("getLoaderOptions")(e.rowIndex,{cellIndex:e.index,cellFirst:e.index===0,cellLast:e.index===Oe("columns").length-1,cellEven:e.index%2===0,cellOdd:e.index%2!==0,column:e.column,field:ye}),Re=T.getJSXElement(Oe("loadingTemplate"),L),Ve=t(A("bodyCell"),{role:"cell"});return s.createElement("td",Ve,Re)},at=function(){var L,Re,Ve=e.allowCellSelection&&X(),Pt=e.editMode==="row",_t=zt(Ve),It=I("selectionMode"),Wt=I("rowReorder"),N=I("header"),$=I("body"),V=I("editor"),de=I("frozen"),je=I("align"),Ge=lt(),Be={column:e.column,field:ye,rowIndex:e.rowIndex,frozenRow:e.frozenRow,props:e.tableProps},$e=T.getPropValue(I("rowEditor"),e.rowData,Be),Ze=T.getPropValue(I("expander"),e.rowData,Be),Qe=T.getPropValue(e.cellClassName,Ge,Be),Lt=T.getPropValue(I("bodyClassName"),e.rowData,Be),Dt=pt(),Ke=t({className:D("columnTitle")},A("columnTitle")),nt=e.responsiveLayout==="stack"&&s.createElement("span",Ke,T.getJSXElement(N,{props:e.tableProps}));if(It){var ge=e.showSelectionElement?e.showSelectionElement(e.rowData,{rowIndex:e.rowIndex,props:e.tableProps}):!0,W;if(ge){var ue=e.selectionAriaLabel||e.tableProps.dataKey,ae=T.resolveFieldData(e.rowData,ue);W="".concat(e.selected?rr("unselectLabel"):rr("selectLabel")," ").concat(ae)}L=ge&&s.createElement(s.Fragment,null,It==="single"&&s.createElement(zb,{hostName:e.hostName,column:e.column,checked:e.selected,disabled:!e.isSelectable({data:e.rowData,index:e.rowIndex}),onChange:yt,tabIndex:e.tabIndex,tableSelector:e.tableSelector,ariaLabel:W,ptCallbacks:e.ptCallbacks,metaData:e.metaData}),It==="multiple"&&s.createElement(Ab,{hostName:e.hostName,column:e.column,checked:e.selected,disabled:!e.isSelectable({data:e.rowData,index:e.rowIndex}),onChange:un,tabIndex:e.tabIndex,ariaLabel:W,checkIcon:e.checkIcon,ptCallbacks:e.ptCallbacks,metaData:e.metaData}))}else if(Wt){var fe=e.showRowReorderElement?e.showRowReorderElement(e.rowData,{rowIndex:e.rowIndex,props:e.tableProps}):!0,H=I("rowReorderIcon"),ie=t({className:D("rowReorderIcon")},H?null:A("rowReorderIcon")),Se=H||s.createElement(Ob,ie);L=fe?en.getJSXIcon(Se,er({},ie),{props:e}):null}else if(Ze){var ke=t({className:D("rowTogglerIcon"),"aria-hidden":!0},A("rowTogglerIcon")),We=e.expanded?e.expandedRowIcon||s.createElement(gc,ke):e.collapsedRowIcon||s.createElement(Om,ke),he=en.getJSXIcon(We,er({},ke),{props:e}),U="".concat(e.tableSelector,"_content_").concat(e.rowIndex,"_expanded"),C=e.selectionAriaLabel||e.tableProps.dataKey,M=T.resolveFieldData(e.rowData,C),ee="".concat(e.expanded?rr("collapseLabel"):rr("expandLabel")," ").concat(M),Ce={onClick:Mt,className:D("rowToggler")},G=t(er(er({},Ce),{},{type:"button","aria-expanded":e.expanded,"aria-controls":U,tabIndex:e.tabIndex,"aria-label":ee}),A("rowToggler"));L=s.createElement("button",G,he,s.createElement(Hn,null)),$&&(Ce.element=L,L=T.getJSXElement($,e.rowData,{column:e.column,field:ye,rowIndex:e.rowIndex,frozenRow:e.frozenRow,props:e.tableProps,expander:Ce}))}else if(Pt&&$e){var S={},F=t({className:D("rowEditorSaveIcon")},A("rowEditorSaveIcon")),J=t({className:D("rowEditorCancelIcon")},A("rowEditorCancelIcon")),le=t({className:D("rowEditorInitIcon")},A("rowEditorInitIcon")),se=en.getJSXIcon(e.rowEditorSaveIcon||s.createElement(Tl,F),er({},F),{props:e}),ct=en.getJSXIcon(e.rowEditorCancelIcon||s.createElement(hc,J),er({},J),{props:e}),gt=en.getJSXIcon(e.rowEditorInitIcon||s.createElement(Rb,le),er({},le),{props:e});if(o){S={editing:!0,onSaveClick:Ye,saveClassName:D("rowEditorSaveButton"),onCancelClick:Z,cancelClassName:D("rowEditorCancelButton")};var Gt=t({type:"button",name:"row-save","aria-label":rr("saveEdit"),onClick:S.onSaveClick,className:S.saveClassName,tabIndex:e.tabIndex,"data-p-row-editor-save":!0},A("rowEditorSaveButton")),wt=t({type:"button",name:"row-cancel","aria-label":rr("cancelEdit"),onClick:S.onCancelClick,className:S.cancelClassName,tabIndex:e.tabIndex},A("rowEditorCancelButton"));L=s.createElement(s.Fragment,null,s.createElement("button",Gt,se,s.createElement(Hn,null)),s.createElement("button",wt,ct,s.createElement(Hn,null)))}else{S={editing:!1,onInitClick:$t,initClassName:D("rowEditorInitButton")};var tn=t({type:"button",name:"row-edit","aria-label":rr("editRow"),onClick:S.onInitClick,className:S.initClassName,tabIndex:e.tabIndex,"data-p-row-editor-init":!0},A("rowEditorInitButton"));L=s.createElement("button",tn,gt,s.createElement(Hn,null))}$&&(S.element=L,L=T.getJSXElement($,e.rowData,{column:e.column,field:ye,rowIndex:e.rowIndex,frozenRow:e.frozenRow,props:e.tableProps,rowEditor:S}))}else $&&(!o||!V)?L=$?T.getJSXElement($,e.rowData,{column:e.column,field:ye,rowIndex:e.rowIndex,frozenRow:e.frozenRow,props:e.tableProps}):Ge:V&&o?L=T.getJSXElement(V,{rowData:u,value:lt(u),column:e.column,field:ye,rowIndex:e.rowIndex,frozenRow:e.frozenRow,props:e.tableProps,editorCallback:z}):L=Ge;if(L=typeof L=="boolean"?L.toString():L,!Pt&&V){var Cn=t({tabIndex:"0",className:"p-cell-editor-key-helper p-hidden-accessible",onFocus:function(Zt){return xt(Zt)}},A("editorKeyHelperLabel")),dt=t(A("editorKeyHelper"));Re=s.createElement("a",Jt({ref:g},Cn),s.createElement("span",dt))}var Tt=t({style:Dt,className:ze(Lt,I("className"),Qe,D("bodyCell",{selectionMode:It,editor:V,editingState:o,frozen:de,cellSelected:Ve,align:je,bodyProps:e,getCellParams:st})),rowSpan:e.rowSpan,tabIndex:_t,role:"cell",onClick:function(Zt){return me(Zt)},onKeyDown:function(Zt){return bt(Zt)},onBlur:function(Zt){return ft(Zt)},onMouseDown:function(Zt){return Le(Zt)},onMouseUp:function(Zt){return mt(Zt)},"data-p-selectable-cell":e.allowCellSelection&&e.isSelectable({data:st(),index:e.rowIndex}),"data-p-selection-column":I("selectionMode")!=null,"data-p-editable-column":Me()!=null,"data-p-cell-editing":o,"data-p-frozen-column":de},A("root"),A("bodyCell"));return s.createElement("td",Jt({ref:b},Tt),Re,nt,L)};return Oe("loading")?He():at()});Bb.displayName="BodyCell";function Ch(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function h9(e){for(var t=1;t-1:e.groupRowsBy===me:!1},b=function(z,me){return e.compareSelectionBy==="equals"?z===me:T.equals(z,me,e.dataKey)},g=function(){return m()&&!e.allowCellSelection?e.rowIndex===0?e.tabIndex:-1:null},x=function(z,me){return(z||[]).findIndex(function(Le){return b(me,Le)})},h=function(z,me){z&&me&&(z.tabIndex=-1,me.tabIndex=e.tabIndex)},p=function(z){var me=_.findSingle(z.parentNode,"tr[data-p-selectable-row]");return me||null},v=function _e(z){var me=z.nextElementSibling;return me?_.getAttribute(me,"data-p-selectable-row")===!0?me:_e(me):null},E=function _e(z){var me=z.previousElementSibling;return me?_.getAttribute(me,"data-p-selectable-row")===!0?me:_e(me):null},O=function(z){var me=_.findSingle(z.parentNode,"tr[data-p-selectable-row]:last-child");return me||null},k=function(z,me,Le){if(f(me,"hidden"))return!1;if(e.rowGroupMode&&e.rowGroupMode==="rowspan"&&y(me)){var mt=z[Le-1];if(mt){var bt=T.resolveFieldData(z[Le],f(me,"field")),ft=T.resolveFieldData(mt,f(me,"field"));return bt!==ft}}return!0},w=function(z,me,Le){if(y(me)){for(var mt=T.resolveFieldData(z[Le],f(me,"field")),bt=mt,ft=0;mt===bt;){ft++;var xt=z[++Le];if(xt)bt=T.resolveFieldData(xt,f(me,"field"));else break}return ft===1?null:ft}return null},D=function(z){e.onRowClick({originalEvent:z,data:e.rowData,index:e.rowIndex})},I=function(z){e.onRowDoubleClick({originalEvent:z,data:e.rowData,index:e.rowIndex})},B=function(z){e.onRowPointerDown({originalEvent:z,data:e.rowData,index:e.rowIndex})},A=function(z){e.onRowPointerUp({originalEvent:z,data:e.rowData,index:e.rowIndex})},ye=function(z){e.onRowRightClick({originalEvent:z,data:e.rowData,index:e.rowIndex})},Ie=function(z){e.onRowMouseEnter({originalEvent:z,data:e.rowData,index:e.rowIndex})},Me=function(z){e.onRowMouseLeave({originalEvent:z,data:e.rowData,index:e.rowIndex})},Ae=function(z){e.onRowTouchEnd(z)},it=function(z){if(m()&&!e.allowCellSelection){var me=z.target,Le=z.currentTarget;switch(z.code){case"ArrowDown":qe(Le,z);break;case"ArrowUp":K(Le,z);break;case"Home":re(Le,z);break;case"End":X(Le,z);break;case"Enter":case"NumpadEnter":oe(Le,z,me);break;case"Space":te(Le,z,me);break;case"Tab":ve(Le,z);break}}},qe=function(z,me){var Le=v(z);Le&&(h(z,Le),Le.focus()),me.preventDefault()},K=function(z,me){var Le=E(z);Le&&(h(z,Le),Le.focus()),me.preventDefault()},re=function(z,me){var Le=p(z);Le&&(h(z,Le),Le.focus()),me.preventDefault()},X=function(z,me){var Le=O(z);Le&&(h(z,Le),Le.focus()),me.preventDefault()},oe=function(z,me,Le){_.isClickable(Le)||(D(me),me.preventDefault())},te=function(z,me,Le){!_.isClickable(Le)&&!Le.readOnly&&(D(me),me.preventDefault())},ve=function(z,me){var Le=z.parentNode,mt=_.find(Le,'tr[data-p-selectable-row="true"]');if(me.code==="Tab"&&mt&&mt.length>0){var bt=_.findSingle(Le,'tr[data-p-highlight="true"]'),ft=_.findSingle(Le,'tr[data-p-selectable-row="true"][tabindex="0"]');bt?(bt.tabIndex="0",ft&&ft!==bt&&(ft.tabIndex="-1")):(mt[0].tabIndex="0",ft!==mt[0]&&(mt[e.rowIndex].tabIndex="-1"))}},Oe=function(z){e.onRowMouseDown({originalEvent:z,data:e.rowData,index:e.rowIndex})},pt=function(z){e.onRowMouseUp({originalEvent:z,data:e.rowData,index:e.rowIndex})},st=function(z){e.onRowDragStart({originalEvent:z,data:e.rowData,index:e.rowIndex})},tt=function(z){e.onRowDragOver({originalEvent:z,data:e.rowData,index:e.rowIndex})},lt=function(z){e.onRowDragLeave({originalEvent:z,data:e.rowData,index:e.rowIndex})},Rt=function(z){e.onRowDragEnd({originalEvent:z,data:e.rowData,index:e.rowIndex})},zt=function(z){e.onRowDrop({originalEvent:z,data:e.rowData,index:e.rowIndex})},Xe=function(z,me){if(e.onRowEditChange){var Le,mt=e.dataKey,bt=z.originalEvent,ft=z.data,xt=z.index,yt=z.newData;if(mt){var un=String(T.resolveFieldData(ft,mt));if(Le=e.editingRows?h9({},e.editingRows):{},me)Le[un]=!0;else{delete Le[un];var Mt=String(T.resolveFieldData(yt,mt));delete Le[Mt]}}else{var $t=x(e.editingRows,ft);Le=e.editingRows?xn(e.editingRows):[],$t!==-1?Le=Le.filter(function(Ye,Z){return Z!==$t}):Le.push(ft)}e.onRowEditChange({originalEvent:bt,data:Le,index:xt})}else a(me)},q=function(z){var me=z.originalEvent;e.onRowEditInit&&e.onRowEditInit({originalEvent:me,data:e.rowData,index:e.rowIndex}),Xe(z,!0),me.preventDefault()},Te=function(z){var me=z.originalEvent,Le=z.newData,mt=e.rowEditValidator?e.rowEditValidator(Le,{props:e.tableProps,rowIndex:e.rowIndex}):!0;e.onRowEditSave&&e.onRowEditSave({originalEvent:me,data:e.rowData,index:e.rowIndex,newData:Le,valid:mt}),mt&&(e.onRowEditComplete&&e.onRowEditComplete(z),Xe(z,!1)),me.preventDefault()},we=function(z){var me=z.originalEvent;e.onRowEditCancel&&e.onRowEditCancel({originalEvent:me,data:e.rowData,index:e.rowIndex}),Xe(z,!1),me.preventDefault()},ut=function(){return e.columns.map(function(z,me){if(k(e.value,z,e.index)){var Le="".concat(e.rowIndex,"_").concat(f(z,"columnKey")||f(z,"field"),"_").concat(me),mt=e.rowGroupMode==="rowspan"?w(e.value,z,e.index):null;return s.createElement(Bb,{hostName:e.hostName,key:Le,allowCellSelection:e.allowCellSelection,cellClassName:e.cellClassName,checkIcon:e.checkIcon,collapsedRowIcon:e.collapsedRowIcon,column:z,compareSelectionBy:e.compareSelectionBy,dataKey:e.dataKey,editMode:e.editMode,editing:l,editingMeta:e.editingMeta,expanded:e.expanded,expandedRowIcon:e.expandedRowIcon,frozenRow:e.frozenRow,index:me,isSelectable:e.isSelectable,onCheckboxChange:e.onCheckboxChange,onClick:e.onCellClick,onEditingMetaChange:e.onEditingMetaChange,onMouseDown:e.onCellMouseDown,onMouseUp:e.onCellMouseUp,onRadioChange:e.onRadioChange,onRowEditCancel:we,onRowEditInit:q,onRowEditSave:Te,onRowToggle:e.onRowToggle,responsiveLayout:e.responsiveLayout,rowData:e.rowData,rowEditorCancelIcon:e.rowEditorCancelIcon,rowEditorInitIcon:e.rowEditorInitIcon,rowEditorSaveIcon:e.rowEditorSaveIcon,rowIndex:e.rowIndex,rowSpan:mt,selectOnEdit:e.selectOnEdit,selected:e.selected,selection:e.selection,selectionAriaLabel:e.tableProps.selectionAriaLabel,showRowReorderElement:e.showRowReorderElement,showSelectionElement:e.showSelectionElement,tabIndex:e.tabIndex,tableProps:e.tableProps,tableSelector:e.tableSelector,value:e.value,virtualScrollerOptions:e.virtualScrollerOptions,ptCallbacks:e.ptCallbacks,metaData:e.metaData})}return null})},et=T.getPropValue(e.rowClassName,e.rowData,{props:e.tableProps}),ht={height:e.virtualScrollerOptions?e.virtualScrollerOptions.itemSize:void 0},Ct=ut(),ln=g(),Bt=t({role:"row",tabIndex:ln,className:ze(c("bodyRow",{rowProps:e})),style:ht,onMouseDown:function(z){return Oe(z)},onMouseUp:function(z){return pt(z)},onMouseEnter:function(z){return Ie(z)},onMouseLeave:function(z){return Me(z)},onClick:function(z){return D(z)},onDoubleClick:function(z){return I(z)},onPointerDown:function(z){return B(z)},onPointerUp:function(z){return A(z)},onContextMenu:function(z){return ye(z)},onTouchEnd:function(z){return Ae(z)},onKeyDown:function(z){return it(z)},onDragStart:function(z){return st(z)},onDragOver:function(z){return tt(z)},onDragLeave:function(z){return lt(z)},onDragEnd:function(z){return Rt(z)},onDrop:function(z){return zt(z)},"aria-selected":e!=null&&e.selectionMode?e.selected:null,"data-p-selectable-row":e.allowRowSelection&&e.isSelectable({data:e.rowData,index:e.rowIndex}),"data-p-highlight":e.selected,"data-p-highlight-contextmenu":e.contextMenuSelected},d("bodyRow"),{className:ze(et)});return s.createElement("tr",Bt,Ct)});Hb.displayName="BodyRow";function Eh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function y9(e){for(var t=1;t-1:Ae(C,e.selection):!1},te=function(C){return C&&e.contextMenuSelection?Ae(C,e.contextMenuSelection):!1},ve=function(C){return e.isDataSelectable?e.isDataSelectable(C):!0},Oe=function(C){if(C&&e.expandedRows){if(B&&e.expandableRowGroups)return pt(C);if(e.dataKey){var M=T.resolveFieldData(C,e.dataKey),ee=!1;return e.expandedRows&&(Array.isArray(e.expandedRows)?ee=e.expandedRows.some(function(Ce){return T.resolveFieldData(Ce,e.dataKey)===M}):ee=e.expandedRows[M]!==void 0),ee}return Ct(e.expandedRows,C)!==-1}return!1},pt=function(C){return e.dataKey===e.groupRowsBy?Object.keys(e.expandedRows).some(function(M){return T.equals(M,T.resolveFieldData(C,e.dataKey))}):e.expandedRows.some(function(M){return T.equals(M,C,e.groupRowsBy)})},st=function(C){return e.editMode==="row"&&C&&e.editingRows?e.dataKey?e.editingRows?e.editingRows[T.resolveFieldData(C,e.dataKey)]!==void 0:!1:Ct(e.editingRows,C)!==-1:!1},tt=function(C){return e.dragSelection&&K()&&!C.originalEvent.shiftKey},lt=function(C){return!we()&&tt(C)||e.reorderableRows},Rt=function(C){return we()&&tt(C)},zt=function(C){return!_.isClickable(C.originalEvent.target)},Xe=function(C){return!k.current&&(!e.metaKeySelection||e.metaKeySelection&&(C.originalEvent.metaKey||C.originalEvent.ctrlKey))},q=function(C){return K()&&C.originalEvent.shiftKey&&p.current!==null},Te=function(){return(e.selectionMode||e.selectionModeInColumn)&&!re()&&!X()},we=function(){return e.cellSelection&&!Ie&&!Me},ut=function(){return e.columns?e.columns.length:0},et=function(C,M){return gn.getCProp(C,M)},ht=function(C,M){return M=M||e.virtualScrollerOptions,M?M[C]:null},Ct=function(C,M){return(C||[]).findIndex(function(ee){return Ae(M,ee)})},ln=function(){return e.scrollable?{top:d.top}:null},Bt=function(C,M){return e.dataKey?T.resolveFieldData(C,e.dataKey):M},_e=function(C,M,ee){var Ce=T.resolveFieldData(M,e.groupRowsBy),G=C[ee-1];if(G){var S=T.resolveFieldData(G,e.groupRowsBy);return!T.deepEquals(Ce,S)}return!0},z=function(C,M,ee,Ce){if(e.expandableRowGroups&&!Ce)return!1;var G=T.resolveFieldData(M,e.groupRowsBy),S=C[ee+1];if(S){var F=T.resolveFieldData(S,e.groupRowsBy);return!T.deepEquals(G,F)}return!0},me=function(){b.current.style.top=_.getOuterHeight(b.current.previousElementSibling)+"px"},Le=function(){var C=_.getOuterHeight(b.current.previousElementSibling),M=C+"px";d.top!==M&&f({top:M})},mt=function(C){var M=C.originalEvent,ee=C.data,Ce=C.index,G=C.toggleable,S=C.type;if(ve({data:ee,index:Ce})){var F=oe(ee),J=e.selection;F?G&&(J=null,$t({originalEvent:M,data:ee,type:S})):(J=ee,Mt({originalEvent:M,data:ee,type:S})),Z(M,!0),e.onSelectionChange&&J!==e.selection&&e.onSelectionChange({originalEvent:M,value:J,type:S})}},bt=function(C){var M=C.originalEvent,ee=C.data,Ce=C.index,G=C.toggleable,S=C.type;if(ve({data:ee,index:Ce})){var F=oe(ee),J=e.selection||[];if(F)if(G){var le=Ct(J,ee);J=e.selection.filter(function(se,ct){return ct!==le}),$t({originalEvent:M,data:ee,type:S})}else J.length&&(e.selection.forEach(function(se){return $t({originalEvent:M,data:se,type:S})}),J=[ee],Mt({originalEvent:M,data:ee,type:S}));else J=T.isObject(J)?[J]:J,J=G&&K()?[].concat(xn(J),[ee]):[ee],Mt({originalEvent:M,data:ee,type:S});e.onSelectionChange&&J!==e.selection&&e.onSelectionChange({originalEvent:M,value:J,type:S})}},ft=function(C,M){_.clearSelection(),E.current=we()?C.rowIndex:C.index;var ee=xt(C);e.onSelectionChange&&ee!==e.selection&&e.onSelectionChange({originalEvent:C.originalEvent,value:ee,type:M}),p.current=E.current,v.current=C.cellIndex},xt=function(C){var M,ee,Ce,G=we(),S=T.findIndexInList(C.data,e.value,e.dataKey);return E.current>p.current?(M=p.current,ee=E.current,G||(Ce=ee-M,ee=S,M=S-Ce)):E.currentv.current?(Ce=v.current,G=S):S td":"tr",S=_.findSingle(b.current,"".concat(G,'[tabindex="').concat(e.tabIndex,'"]'));S&&ee&&(S.tabIndex=-1,ee.tabIndex=e.tabIndex)}},at=function(C){if(!(C.defaultPrevented||C.originalEvent&&C.originalEvent.defaultPrevented||we()||!zt(C))){if(e.onRowClick&&e.onRowClick(C),Te()){if(q(C))ft(C,"row");else{var M=Ie||Me||Xe(C);p.current=C.index,E.current=C.index,O.current=e.first,qe()?mt(yr(yr({},C),{},{toggleable:M,type:"row"})):bt(yr(yr({},C),{},{toggleable:M,type:"row"}))}He(C.originalEvent,"row")}else Z(C.originalEvent);k.current=!1}},ce=function(C){var M=C.originalEvent;_.isClickable(M.target)||e.onRowDoubleClick&&e.onRowDoubleClick(C)},L=function(C){var M=C.originalEvent;_.isClickable(M.target)||e.onRowPointerDown&&e.onRowPointerDown(C)},Re=function(C){var M=C.originalEvent;_.isClickable(M.target)||e.onRowPointerUp&&e.onRowPointerUp(C)},Ve=function(C){if(e.onContextMenu||e.onContextMenuSelectionChange){var M=T.isNotEmpty(e.selection),ee=C.data;M&&_.clearSelection(),e.onContextMenuSelectionChange&&e.onContextMenuSelectionChange({originalEvent:C.originalEvent,value:ee,index:C.index}),e.onContextMenu&&e.onContextMenu({originalEvent:C.originalEvent,data:ee,index:C.index}),C.originalEvent.preventDefault()}},Pt=function(C){e.onRowMouseEnter&&e.onRowMouseEnter(C)},_t=function(C){e.onRowMouseLeave&&e.onRowMouseLeave(C)},It=function(){k.current=!0},Wt=function(C){var M=C.originalEvent;!i&&_.hasClass(M.target,"p-datatable-reorderablerow-handle")?(M.currentTarget.draggable=!0,M.target.draggable=!1):M.currentTarget.draggable=!1,lt(C)&&(Ye(M),p.current=C.index,E.current=C.index,O.current=e.first)},N=function(C){var M=C.index===p.current;lt(C)&&!M&&ft(C,"row")},$=function(C){var M,ee=e.dataKey,Ce=e.groupRowsBy?ee===e.groupRowsBy:!!ee;if(Ce){var G=String(T.resolveFieldData(C.data,ee));M=e.expandedRows?yr({},e.expandedRows):{},M[G]!=null?(delete M[G],e.onRowCollapse&&e.onRowCollapse({originalEvent:C,data:C.data})):(M[G]=!0,e.onRowExpand&&e.onRowExpand({originalEvent:C,data:C.data}))}else{var S=Ct(e.expandedRows,C.data);M=e.expandedRows?xn(e.expandedRows):[],S!==-1?(M=M.filter(function(F,J){return J!==S}),e.onRowCollapse&&e.onRowCollapse({originalEvent:C,data:C.data})):(M.push(C.data),e.onRowExpand&&e.onRowExpand({originalEvent:C,data:C.data}))}e.onRowToggle&&e.onRowToggle({data:M})},V=function(C){var M=C.originalEvent,ee=C.index;lt(M)&&(w.current=!0,D.current=ee,M.dataTransfer.setData("text","b"))},de=function(C){var M=C.originalEvent,ee=C.index;if(w.current&&D.current!==ee){var Ce=M.currentTarget,G=_.getOffset(Ce).top+_.getWindowScrollTop(),S=M.pageY+window.scrollY,F=G+_.getOuterHeight(Ce)/2,J=Ce.previousElementSibling;SI.current?I.current:I.current===0?0:I.current-1,Ce=xn(e.tableProps.value);T.reorderArray(Ce,D.current,ee),e.onRowReorder&&e.onRowReorder({originalEvent:M,value:Ce,dragIndex:D.current,dropIndex:ee})}je(C),Ge(C),M.preventDefault()},$e=function(C){mt(yr(yr({},C),{},{toggleable:!0,type:"radio"}))},Ze=function(C){bt(yr(yr({},C),{},{toggleable:!0,type:"checkbox"}))},Qe=function(C){var M=h.current,ee=M.x,Ce=M.y,G=C.clientX-ee,S=C.clientY-Ce;S<0&&(x.current.style.top="".concat(C.pageY+5,"px")),G<0&&(x.current.style.left="".concat(C.pageX+5,"px")),x.current.style.height="".concat(Math.abs(S),"px"),x.current.style.width="".concat(Math.abs(G),"px"),C.preventDefault()},Lt=function U(){x.current&&(x.current.remove(),x.current=null),document.removeEventListener("mousemove",Qe),document.removeEventListener("mouseup",U)},Dt=function(C){if(zt(C)){if(e.onCellClick&&e.onCellClick(C),we()){if(q(C))ft(C,"cell");else{var M=Xe(C),ee=C.originalEvent,Ce=f9(C,b9);p.current=C.rowIndex,E.current=C.rowIndex,O.current=e.first,v.current=C.cellIndex,qe()?mt({originalEvent:ee,data:Ce,index:C.rowIndex,toggleable:M,type:"cell"}):bt({originalEvent:ee,data:Ce,index:C.rowIndex,toggleable:M,type:"cell"})}He(C.originalEvent,"cell")}k.current=!1}},Ke=function(C){Rt(C)&&(Ye(C.originalEvent),p.current=C.rowIndex,E.current=C.rowIndex,O.current=e.first,v.current=C.cellIndex)},nt=function(C){var M=C.rowIndex===p.current&&C.cellIndex===v.current;Rt(C)&&!M&&ft(C,"cell")},ge=function(){document.addEventListener("mousemove",Qe),document.addEventListener("mouseup",Lt),document.body.appendChild(x.current)},W=function(){Lt()};s.useEffect(function(){e.frozenRow&&me(),e.scrollable&&e.rowGroupMode==="subheader"&&Le()}),Xt(function(){e.paginator&&K()&&(p.current=null)},[e.first]),Rr(function(){e.dragSelection&&W()});var ue=function(){if(!e.loading){var C=ut(),M=T.getJSXElement(e.emptyMessage,{props:e.tableProps,frozen:e.frozenRow})||cr("emptyMessage"),ee=n({className:l("emptyMessage"),role:"row"},y("emptyMessage")),Ce=n({colSpan:C,role:"cell"},y("root"),y("bodyCell"));return s.createElement("tr",ee,s.createElement("td",Ce,M))}return null},ae=function(C,M,ee,Ce){if(B&&_e(e.value,C,M-e.first)){var G=ln(),S=e.expandableRowGroups&&s.createElement(Ub,{hostName:e.hostName,onClick:$,rowData:C,expanded:ee,expandedRowIcon:e.expandedRowIcon,collapsedRowIcon:e.collapsedRowIcon,ptCallbacks:e.ptCallbacks,metaData:e.metaData}),F={index:M,props:e.tableProps,customRendering:!1},J=T.getJSXElement(e.rowGroupHeaderTemplate,C,F);if(!F.customRendering){var le=n({colSpan:Ce},y("root"),y("bodyCell")),se=n({className:l("rowGroupHeaderName")},y("rowGroupHeaderName"));J=s.createElement("td",le,S,s.createElement("span",se,J))}var ct=n({className:l("rowGroupHeader"),style:G,role:"row"},y("rowGroupHeader"));return s.createElement("tr",ct,J)}return null},fe=function(C,M,ee,Ce){if(!e.expandableRowGroups||Ce){var G=it()?oe(C):!1,S=te(C),F=Te(),J=we(),le=st(C);return s.createElement(Hb,{hostName:e.hostName,allowCellSelection:J,allowRowSelection:F,cellClassName:e.cellClassName,checkIcon:e.checkIcon,collapsedRowIcon:e.collapsedRowIcon,columns:e.columns,compareSelectionBy:e.compareSelectionBy,contextMenuSelected:S,dataKey:e.dataKey,editMode:e.editMode,editing:le,editingMeta:e.editingMeta,editingRows:e.editingRows,expanded:Ce,expandedRowIcon:e.expandedRowIcon,frozenRow:e.frozenRow,groupRowsBy:e.groupRowsBy,index:ee,isSelectable:ve,onCellClick:Dt,onCellMouseDown:Ke,onCellMouseUp:nt,onCheckboxChange:Ze,onEditingMetaChange:e.onEditingMetaChange,onRadioChange:$e,onRowClick:at,onRowDoubleClick:ce,onRowPointerDown:L,onRowPointerUp:Re,onRowDragEnd:Ge,onRowDragLeave:je,onRowDragOver:de,onRowDragStart:V,onRowDrop:Be,onRowEditCancel:e.onRowEditCancel,onRowEditChange:e.onRowEditChange,onRowEditComplete:e.onRowEditComplete,onRowEditInit:e.onRowEditInit,onRowEditSave:e.onRowEditSave,onRowMouseDown:Wt,onRowMouseEnter:Pt,onRowMouseLeave:_t,onRowMouseUp:N,onRowRightClick:Ve,onRowToggle:$,onRowTouchEnd:It,responsiveLayout:e.responsiveLayout,rowClassName:e.rowClassName,rowData:C,rowEditValidator:e.rowEditValidator,rowEditorCancelIcon:e.rowEditorCancelIcon,rowEditorInitIcon:e.rowEditorInitIcon,rowEditorSaveIcon:e.rowEditorSaveIcon,rowGroupMode:e.rowGroupMode,rowIndex:M,selectOnEdit:e.selectOnEdit,selected:G,selection:e.selection,selectionMode:e.selectionMode,selectionModeInColumn:e.selectionModeInColumn,showRowReorderElement:e.showRowReorderElement,showSelectionElement:e.showSelectionElement,tabIndex:e.tabIndex,tableProps:e.tableProps,tableSelector:e.tableSelector,value:e.value,virtualScrollerOptions:e.virtualScrollerOptions,ptCallbacks:e.ptCallbacks,metaData:e.metaData})}},H=function(C,M,ee,Ce){if(ee&&!(B&&e.expandableRowGroups)){var G="".concat(e.tableSelector,"_content_").concat(M,"_expanded"),S={index:M,customRendering:!1},F=T.getJSXElement(e.rowExpansionTemplate,C,S);if(!S.customRendering){var J=n({colSpan:Ce,role:"cell"},y("root"),y("bodyCell"));F=s.createElement("td",J,F)}var le=n({id:G,className:l("rowExpansion"),role:"row"},y("rowExpansion"));return s.createElement("tr",le,F)}return null},ie=function(C,M,ee,Ce){if(B&&z(e.value,C,M-e.first,ee)){var G=T.getJSXElement(e.rowGroupFooterTemplate,C,{index:M,colSpan:Ce,props:e.tableProps}),S=n({className:l("rowGroupFooter"),role:"row"},y("rowGroupFooter"));return s.createElement("tr",S,G)}return null},Se=function(){return e.value&&e.value.map(function(C,M){var ee=ht("getItemOptions")?ht("getItemOptions")(M).index:e.first+M,Ce=Bt(C,ee),G=Oe(C),S=ut(),F=ae(C,ee,G,S),J=fe(C,ee,M,G),le=H(C,ee,G,S),se=ie(C,ee,G,S);return s.createElement(s.Fragment,{key:Ce},F,J,le,se)})},ke=e.empty?ue():Se(),We=e.className==="p-datatable-virtualscroller-spacer"?"virtualScrollerSpacer":"tbody",he=n({style:e.style,className:l(We,{className:e.className}),role:" rowgroup"},o(We,{hostName:e.hostName}));return s.createElement("tbody",Jt({ref:g},he),ke)}));rs.displayName="TableBody";var qo=St.extend({defaultProps:{__TYPE:"ColumnGroup",children:void 0},getCProp:function(t,n){return T.getComponentProp(t,n,qo.defaultProps)},getCProps:function(t){return T.getComponentProps(t,qo.defaultProps)}}),Im=St.extend({defaultProps:{__TYPE:"Row",style:null,className:null,children:void 0},getCProp:function(t,n){return T.getComponentProp(t,n,Im.defaultProps)}});function Ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function w9(e){for(var t=1;t1},X=function(){return f("showAddButton")&&E&&E.operator&&xt()&&xt().length1&&arguments[1]!==void 0?arguments[1]:0,ae=Vr({},e.filters),fe=ae[v];e.display==="menu"&&fe&&fe.operator?ae[v].constraints[ue].value=W:ae[v].value=W,e.onFilterChange(ae)},ce=function(){for(var W=arguments.length,ue=new Array(W),ae=0;ae1},E=function(){return!O("sortable")||O("sortable")&&(e.allSortableDisabled||O("sortableDisabled"))},O=function(){return e.column?typeof(arguments.length<=0?void 0:arguments[0])=="string"?gn.getCProp(e.column,arguments.length<=0?void 0:arguments[0]):gn.getCProp((arguments.length<=0?void 0:arguments[0])||e.column,arguments.length<=1?void 0:arguments[1]):null},k=function(){var q=O("headerStyle"),Te=O("style");return O("frozen")?Object.assign({},Te,q,r):Object.assign({},Te,q)},w=function(){return e.multiSortMeta.findIndex(function(q){return q.field===O("field")||q.field===O("sortField")})},D=function(){var q=!1,Te=0,we=-1;return e.sortMode==="single"?(q=e.sortField&&(e.sortField===O("field")||e.sortField===O("sortField")),Te=q?e.sortOrder:0):e.sortMode==="multiple"&&(we=w(),we>-1&&(q=!0,Te=e.multiSortMeta[we].order)),{sorted:q,sortOrder:Te,metaIndex:we}},I=function(q){var Te=q.sorted,we=q.sortOrder;return O("sortable")?Te&&we<0?"descending":Te&&we>0?"ascending":"none":null},B=function(){if(O("frozen")){var q=$u({},r),Te=O("alignFrozen");if(Te==="right"){var we=0,ut=a.current.nextElementSibling;ut&&(we=_.getOuterWidth(ut)+parseFloat(ut.style.right||0)),q.right=we+"px"}else{var et=0,ht=a.current.previousElementSibling;ht&&(et=_.getOuterWidth(ht)+parseFloat(ht.style.left||0)),q.left=et+"px"}var Ct=a.current.parentElement.nextElementSibling;if(Ct){var ln=_.index(a.current);Ct.children[ln].style.left=q.left,Ct.children[ln].style.right=q.right}var Bt=r.left===q.left&&r.right===q.right;!Bt&&o(q)}},A=function(q){(O(q,"sortableDisabled")!==O("sortableDisabled")||O(q,"sortable")!==O("sortable"))&&e.onSortableChange()},ye=function(q){if(!E()){var Te=q.target;(_.getAttribute(Te,"data-p-sortable-column")===!0||_.getAttribute(Te,"data-pc-section")==="headertitle"||_.getAttribute(Te,"data-pc-section")==="headercontent"||_.getAttribute(Te,"data-pc-section")==="sortIcon"||_.getAttribute(Te.parentElement,"data-pc-section")==="sortIcon"||Te.closest('[data-p-sortable-column="true"]')&&!Te.closest('[data-pc-section="filtermenubutton"]'))&&(_.clearSelection(),e.onSortChange({originalEvent:q,column:e.column,sortableDisabledFields:e.sortableDisabledFields}))}},Ie=function(q){e.onColumnMouseDown({originalEvent:q,column:e.column})},Me=function(q){(q.code=="Enter"||q.code==="NumpadEnter"||q.code=="Space")&&q.currentTarget===a.current&&_.getAttribute(q.currentTarget,"data-p-sortable-column")==="true"&&(ye(q),q.preventDefault())},Ae=function(q){e.onColumnDragStart({originalEvent:q,column:e.column})},it=function(q){e.onColumnDragOver({originalEvent:q,column:e.column})},qe=function(q){e.onColumnDragLeave({originalEvent:q,column:e.column})},K=function(q){e.onColumnDrop({originalEvent:q,column:e.column})},re=function(q){e.onColumnResizeStart({originalEvent:q,column:e.column})},X=function(q){e.onColumnResizerClick&&(e.onColumnResizerClick({originalEvent:q,element:q.currentTarget.parentElement,column:e.column}),q.preventDefault())},oe=function(q){e.onColumnResizerDoubleClick&&(e.onColumnResizerDoubleClick({originalEvent:q,element:q.currentTarget.parentElement,column:e.column}),q.preventDefault())};s.useEffect(function(){O("frozen")&&B(),A(l)});var te=function(){if(e.resizableColumns&&!O("frozen")){var q=i({className:b("columnResizer"),onMouseDown:function(we){return re(we)},onClick:function(we){return X(we)},onDoubleClick:function(we){return oe(we)}},p("columnResizer"));return s.createElement("span",q)}return null},ve=function(){var q=T.getJSXElement(O("header"),{props:e.tableProps}),Te=i({className:b("headerTitle")},p("headerTitle"));return s.createElement("span",Te,q)},Oe=function(q){var Te=q.sorted,we=q.sortOrder;if(O("sortable")){var ut=i({className:b("sortIcon")},p("sortIcon")),et=i(p("sort")),ht=Te?we<0?s.createElement(_b,ut):s.createElement(Lb,ut):s.createElement(Mb,ut),Ct=en.getJSXIcon(e.sortIcon||ht,$u({},ut),{props:e,sorted:Te,sortOrder:we});return s.createElement("span",et,Ct)}return null},pt=function(q){var Te=q.metaIndex;if(Te!==-1&&v()){var we=e.groupRowsBy&&e.groupRowsBy===e.groupRowSortField?Te:Te+1,ut=i({className:b("sortBadge")},p("root"),p("sortBadge"));return s.createElement("span",ut,we)}return null},st=function(){if(e.showSelectAll&&O("selectionMode")==="multiple"&&e.filterDisplay!=="row"){var q=e.allRowsSelected(e.value);return s.createElement(km,{hostName:e.hostName,checked:q,onChange:e.onColumnCheckboxChange,disabled:e.empty,ptCallbacks:c,metaData:u})}return null},tt=function(){return e.filterDisplay==="menu"&&O("filter")?s.createElement(Tm,{hostName:e.hostName,display:"menu",column:e.column,filters:e.filters,onFilterChange:e.onFilterChange,onFilterApply:e.onFilterApply,filtersStore:e.filtersStore,filterIcon:e.filterIcon,filterClearIcon:e.filterClearIcon,ptCallbacks:c,metaData:u,unstyled:e.unstyled}):null},lt=function(q){var Te=ve(),we=Oe(q),ut=pt(q),et=st(),ht=tt(),Ct=i({className:b("headerContent")},p("headerContent"));return s.createElement("div",Ct,Te,we,ut,et,ht)},Rt=function(){var q=E(),Te=D(),we=k(),ut=O("alignHeader")||O("align"),et=O("frozen"),ht=O("sortable")&&!q?e.tabIndex:null,Ct=O("colSpan"),ln=O("rowSpan"),Bt=I(Te),_e=O("headerTooltip"),z=O("headerClassName"),me=T.isNotEmpty(_e),Le=O("headerTooltipOptions"),mt=te(),bt=lt(Te),ft=i({className:ze(z,b("headerCell",{headerProps:e,frozen:et,sortMeta:Te,align:ut,_isSortableDisabled:q,getColumnProp:O})),style:we,role:"columnheader",onClick:function(yt){return ye(yt)},onKeyDown:function(yt){return Me(yt)},onMouseDown:function(yt){return Ie(yt)},onDragStart:function(yt){return Ae(yt)},onDragOver:function(yt){return it(yt)},onDragLeave:function(yt){return qe(yt)},onDrop:function(yt){return K(yt)},tabIndex:ht,colSpan:Ct,rowSpan:ln,"aria-sort":Bt,"data-p-sortable-column":O("sortable"),"data-p-resizable-column":e.resizableColumns,"data-p-highlight":Te.sorted,"data-p-filter-column":!e.metaData.props.headerColumnGroup&&e.filterDisplay==="row","data-p-frozen-column":O("frozen"),"data-p-reorderable-column":e.reorderableColumns},p("root"),p("headerCell"));return s.createElement(s.Fragment,null,s.createElement("th",Jt({ref:a},ft),mt,bt),me&&s.createElement(ra,Jt({target:a,content:_e,pt:p("tooltip"),unstyled:e.unstyled},Le)))},zt=Rt();return zt});Wb.displayName="HeaderCell";function Dh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Nh(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,l=!1,i;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return a=c.done,c},e:function(c){l=!0,i=c},f:function(){try{!a&&n.return!=null&&n.return()}finally{if(l)throw i}}}}function D9(e,t){if(e){if(typeof e=="string")return Mh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Mh(e,t)}}function Mh(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:{};if(T.isNotEmpty(R)){if(o.paginator)if(o.onPage){var j=function(pe,Ee){var be=J(la()),Fe=Math.ceil(be/Ee)||1,Ue=Math.floor(pe/Ee);return{first:pe,rows:Ee,page:Ue,pageCount:Fe}};o.onPage(aa(j(R.first,R.rows)))}else u(R.first),m(R.rows);R.sortField&&(o.onSort?o.onSort(aa({sortField:R.sortField,sortOrder:R.sortOrder})):(x(R.sortField),E(R.sortOrder))),R.multiSortMeta&&(o.onSort?o.onSort(aa({multiSortMeta:R.multiSortMeta})):D(R.multiSortMeta)),R.filters&&(q(oa(R.filters)),o.onFilter?o.onFilter(aa({filters:R.filters})):ye(oa(R.filters))),o.resizableColumns&&(Ye.current=R.columnWidths,Z.current=R.tableWidth,C()),o.reorderableColumns&&it(R.columnOrder),R.expandedRows&&o.onRowToggle&&o.onRowToggle({data:R.expandedRows}),R.selection&&o.onSelectionChange&&o.onSelectionChange({value:R.selection}),o.onStateRestore&&o.onStateRestore(R)}},he=function(R){var j=[],Q=_.find(et.current,'[data-pc-section="thead"] > tr > th');Q.forEach(function(pe){return j.push(_.getOuterWidth(pe))}),R.columnWidths=j.join(","),o.columnResizeMode==="expand"&&(R.tableWidth=_.getOuterWidth(ht.current)+"px")},U=function(R){oo();var j="",Q='[data-pc-name="datatable"]['.concat(ut.current,'] > [data-pc-section="wrapper"] ').concat(Ze()?"":'> [data-pc-name="virtualscroller"]',' > [data-pc-section="table"]');R.forEach(function(pe,Ee){var be="width: ".concat(pe,"px !important; max-width: ").concat(pe,"px !important");j=j+` +`,s9={root:function(t){var n=t.props,r=t.selectable;return ze("p-datatable p-component",{"p-datatable-hoverable-rows":n.rowHover,"p-datatable-selectable":r&&!n.cellSelection,"p-datatable-selectable-cell":r&&n.cellSelection,"p-datatable-resizable":n.resizableColumns,"p-datatable-resizable-fit":n.resizableColumns&&n.columnResizeMode==="fit","p-datatable-scrollable":n.scrollable,"p-datatable-flex-scrollable":n.scrollable&&n.scrollHeight==="flex","p-datatable-responsive-stack":n.responsiveLayout==="stack","p-datatable-responsive-scroll":n.responsiveLayout==="scroll","p-datatable-striped":n.stripedRows,"p-datatable-gridlines":n.showGridlines,"p-datatable-grouped-header":n.headerColumnGroup!=null,"p-datatable-grouped-footer":n.footerColumnGroup!=null,"p-datatable-sm":n.size==="small","p-datatable-lg":n.size==="large"})},loadingIcon:"p-datatable-loading-icon",loadingOverlay:"p-datatable-loading-overlay p-component-overlay",header:"p-datatable-header",wrapper:"p-datatable-wrapper",table:function(t){var n=t.props;return ze("p-datatable-table",{"p-datatable-scrollable-table":n.scrollable,"p-datatable-resizable-table":n.resizableColumns,"p-datatable-resizable-table-fit":n.resizableColumns&&n.columnResizeMode==="fit"})},thead:"p-datatable-thead",tfoot:"p-datatable-tfoot",footer:"p-datatable-footer",checkIcon:"p-checkbox-icon",resizeHelper:"p-column-resizer-helper",reorderIndicatorUp:"p-datatable-reorder-indicator-up",reorderIndicatorDown:"p-datatable-reorder-indicator-down",paginator:function(t){var n=t.position;return ze("p-paginator-"+n)},bodyCell:function(t){var n=t.selectionMode,r=t.editor,o=t.editingState,a=t.frozen,l=t.cellSelected,i=t.align,u=t.bodyProps,c=t.getCellParams;return ze(Vt({"p-selection-column":n!==null,"p-editable-column":r,"p-cell-editing":r&&o,"p-frozen-column":a,"p-selectable-cell":u.allowCellSelection&&u.isSelectable({data:c(),index:u.rowIndex}),"p-highlight":l},"p-align-".concat(i),!!i))},columnTitle:"p-column-title",bodyRow:function(t){var n=t.rowProps;return ze({"p-highlight":!n.allowCellSelection&&n.selected||n.contextMenuSelected,"p-highlight-contextmenu":n.contextMenuSelected,"p-selectable-row":n.allowRowSelection&&n.isSelectable({data:n.rowData,index:n.rowIndex}),"p-row-odd":n.rowIndex%2!==0})},rowGroupTogglerIcon:"p-row-toggler-icon",rowGroupToggler:"p-row-toggler p-link",rowGroupHeader:"p-rowgroup-header",rowGroupHeaderName:"p-rowgroup-header-name",rowGroupFooter:"p-rowgroup-footer",rowReorderIcon:"p-datatable-reorderablerow-handle",rowTogglerIcon:"p-row-toggler-icon",rowToggler:"p-row-toggler p-link",rowEditorSaveIcon:"p-row-editor-save-icon",rowEditorSaveButton:"p-row-editor-save p-link",rowEditorCancelIcon:"p-row-editor-cancel-icon",rowEditorCancelButton:"p-row-editor-cancel p-link",rowEditorInitIcon:"p-row-editor-init-icon",rowEditorInitButton:"p-row-editor-init p-link",rowExpansion:"p-datatable-row-expansion",virtualScrollerSpacer:function(t){var n=t.className;return n},tbody:function(t){var n=t.className;return n},filterInput:"p-fluid p-column-filter-element",filterMenuButton:function(t){var n=t.overlayVisibleState,r=t.hasFilter;return ze("p-column-filter-menu-button p-link",{"p-column-filter-menu-button-open":n,"p-column-filter-menu-button-active":r()})},headerFilterClearButton:function(t){var n=t.hasRowFilter;return ze("p-column-filter-clear-button p-link",{"p-hidden-space":!n()})},filterSeparator:"p-column-filter-separator",filterRowItem:function(t){var n=t.isRowMatchModeSelected,r=t.isShowMatchModes,o=t.value;return r()?ze("p-column-filter-row-item",{"p-highlight":o&&n(o)}):void 0},filterRowItems:"p-column-filter-row-items",filterOperator:"p-column-filter-operator",filterConstraints:"p-column-filter-constraints",filterConstraint:"p-column-filter-constraint",filterAddRule:"p-column-filter-add-rule",filterButtonBar:"p-column-filter-buttonbar",filterOverlay:function(t){var n=t.columnFilterProps,r=t.context,o=t.getColumnProp;return ze("p-column-filter-overlay p-component p-fluid",o("filterMenuClassName"),{"p-column-filter-overlay-menu":n.display==="menu","p-input-filled":r&&r.inputStyle==="filled"||jt.inputStyle==="filled","p-ripple-disabled":r&&r.ripple===!1||jt.ripple===!1})},columnFilter:function(t){var n=t.columnFilterProps;return ze("p-column-filter p-fluid",{"p-column-filter-row":n.display==="row","p-column-filter-menu":n.display==="menu"})},columnResizer:"p-column-resizer",emptyMessage:"p-datatable-emptymessage",sortBadge:"p-sortable-column-badge",sortIcon:"p-sortable-column-icon",headerTitle:"p-column-title",headerContent:"p-column-header-content",headerCell:function(t){var n=t.headerProps,r=t.frozen,o=t.sortMeta,a=t.align,l=t._isSortableDisabled,i=t.getColumnProp;return T.isEmpty(n)?ze("p-filter-column",{"p-frozen-column":r}):ze(Vt({"p-filter-column":!n.headerColumnGroup&&n.filterDisplay==="row","p-sortable-column":i("sortable"),"p-resizable-column":n.resizableColumns&&i("resizeable"),"p-highlight":o.sorted,"p-frozen-column":r,"p-selection-column":i("selectionMode"),"p-sortable-disabled":i("sortable")&&l,"p-reorderable-column":n.reorderableColumns&&i("reorderable")&&!r},"p-align-".concat(a),!!a))},footerCell:function(t){var n=t.getColumnProp,r=t.align;return ze(Vt({"p-frozen-column":n("frozen")},"p-align-".concat(r),!!r))},transition:"p-connected-overlay"},c9={wrapper:{overflow:"auto"},resizeHelper:{display:"none"},reorderIndicatorUp:function(t){var n=t.style;return gh({},n)},reorderIndicatorDown:function(t){var n=t.style;return gh({},n)}},ju=St.extend({defaultProps:{__TYPE:"DataTable",alwaysShowPaginator:!0,breakpoint:"960px",cellClassName:null,cellSelection:!1,checkIcon:null,className:null,collapsedRowIcon:null,columnResizeMode:"fit",compareSelectionBy:"deepEquals",contextMenuSelection:null,csvSeparator:",",currentPageReportTemplate:"({currentPage} of {totalPages})",customRestoreState:null,customSaveState:null,dataKey:null,defaultSortOrder:1,dragSelection:!1,editMode:null,editingRows:null,emptyMessage:null,expandableRowGroups:!1,expandedRowIcon:null,expandedRows:null,exportFilename:"download",exportFunction:null,filterClearIcon:null,filterDelay:300,filterDisplay:"menu",filterIcon:null,filterLocale:void 0,filters:null,first:0,footer:null,footerColumnGroup:null,frozenRow:!1,frozenValue:null,frozenWidth:null,globalFilter:null,globalFilterFields:null,globalFilterMatchMode:In.CONTAINS,groupRowsBy:null,header:null,headerColumnGroup:null,id:null,isDataSelectable:null,lazy:!1,loading:!1,loadingIcon:null,metaKeySelection:!1,multiSortMeta:null,onAllRowsSelect:null,onAllRowsUnselect:null,onCellClick:null,onCellSelect:null,onCellUnselect:null,onColReorder:null,onColumnResizeEnd:null,onColumnResizerClick:null,onColumnResizerDoubleClick:null,onContextMenu:null,onContextMenuSelectionChange:null,onFilter:null,onPage:null,onRowClick:null,onRowCollapse:null,onRowDoubleClick:null,onRowEditCancel:null,onRowEditChange:null,onRowEditComplete:null,onRowEditInit:null,onRowEditSave:null,onRowExpand:null,onRowMouseEnter:null,onRowMouseLeave:null,onRowPointerDown:null,onRowPointerUp:null,onRowReorder:null,onRowSelect:null,onRowToggle:null,onRowUnselect:null,onSelectAllChange:null,onSelectionChange:null,onSort:null,onStateRestore:null,onStateSave:null,onValueChange:null,pageLinkSize:5,paginator:!1,paginatorClassName:null,paginatorDropdownAppendTo:null,paginatorLeft:null,paginatorPosition:"bottom",paginatorRight:null,paginatorTemplate:"FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown",removableSort:!1,reorderIndicatorDownIcon:null,reorderIndicatorUpIcon:null,reorderableColumns:!1,reorderableRows:!1,resizableColumns:!1,responsiveLayout:"scroll",rowClassName:null,rowEditValidator:null,rowEditorCancelIcon:null,rowEditorInitIcon:null,rowEditorSaveIcon:null,rowExpansionTemplate:null,rowGroupFooterTemplate:null,rowGroupHeaderTemplate:null,rowGroupMode:null,rowHover:!1,rows:null,rowsPerPageOptions:null,scrollHeight:null,scrollable:!1,selectAll:!1,selectOnEdit:!0,selection:null,selectionAriaLabel:null,selectionAutoFocus:!0,selectionMode:null,selectionPageOnly:!1,showGridlines:!1,showHeaders:!0,showRowReorderElement:null,showSelectAll:!0,showSelectionElement:null,size:"normal",sortField:null,sortIcon:null,sortMode:"single",sortOrder:null,stateKey:null,stateStorage:"session",stripedRows:!1,style:null,tabIndex:0,tableClassName:null,tableStyle:null,totalRecords:null,value:null,virtualScrollerOptions:null,children:void 0},css:{styles:u9,classes:s9,inlineStyles:c9}});function d9(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a=0)&&(n[o]=e[o]);return n}function f9(e,t){if(e==null)return{};var n=d9(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var p9={box:"p-checkbox-box",input:"p-checkbox-input",icon:"p-checkbox-icon",root:function(t){var n=t.props,r=t.checked,o=t.context;return ze("p-checkbox p-component",{"p-highlight":r,"p-disabled":n.disabled,"p-invalid":n.invalid,"p-variant-filled":n.variant?n.variant==="filled":o&&o.inputStyle==="filled"})}},Au=St.extend({defaultProps:{__TYPE:"Checkbox",autoFocus:!1,checked:!1,className:null,disabled:!1,falseValue:!1,icon:null,id:null,inputId:null,inputRef:null,invalid:!1,variant:null,name:null,onChange:null,onContextMenu:null,onMouseDown:null,readOnly:!1,required:!1,style:null,tabIndex:null,tooltip:null,tooltipOptions:null,trueValue:!0,value:null,children:void 0},css:{classes:p9}});function hh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function yh(e){for(var t=1;t-1:te(e.selection):!1},oe=function(L){return e.compareSelectionBy==="equals"?L===e.rowData:T.equals(L,e.rowData,e.dataKey)},te=function(L){return L&&(L.rowIndex===e.rowIndex||oe(L.rowData))&&(L.field===ye||L.cellIndex===e.index)},ve=function(L){return b.current&&!(b.current.isSameNode(L)||b.current.contains(L))},Oe=function(L){return e.virtualScrollerOptions?e.virtualScrollerOptions[L]:null},pt=function(){var L=I("bodyStyle"),Re=I("style");return I("frozen")?Object.assign({},Re,L,m):Object.assign({},Re,L)},st=function(){return{value:lt(),field:ye,rowData:e.rowData,rowIndex:e.rowIndex,cellIndex:e.index,selected:Y(),column:e.column,props:e}},tt=function(L){var Re=st();return er({originalEvent:L},Re)},lt=function(L){return T.resolveFieldData(L||e.rowData,ye)},Rt=function(){return e.editingMeta&&e.editingMeta[Ie]?e.editingMeta[Ie].data:e.rowData},zt=function(L){return e.allowCellSelection?L?0:e.rowIndex===0&&e.index===0?e.tabIndex:-1:null},Xe=function(L){return(L||[]).findIndex(function(Re){return te(Re)})},q=function(L){var Re=tt(L),Ve=I("onBeforeCellEditHide");Ve&&Ve(Re),setTimeout(function(){a(!1),re(),Ho.off("overlay-click",x.current),x.current=null,E.current=null,h.current=!1},1)},Te=function(L,Re){var Ve=tt(L),Pt=er({},E.current),_t=lt(Pt),It=er(er({},Ve),{},{newRowData:Pt,newValue:_t}),Wt=I("onCellEditCancel"),N=I("cellEditValidator"),$=I("onCellEditComplete");!Re&&Wt&&Wt(It);var V=!0;(!Re||Ae())&&N&&(V=N(It)),V?(Re&&$&&$(It),q(L)):L.preventDefault(),c(Pt)},we=function ce(L){var Re=L.nextElementSibling;return Re?_.getAttribute(Re,"data-p-selectable-cell")?Re:ce(Re):null},ut=function ce(L){var Re=L.previousElementSibling;return Re?_.getAttribute(Re,"data-p-selectable-cell")?Re:ce(Re):null},et=function ce(L){var Re=L.parentElement.nextElementSibling,Ve=Re?Re.children[e.index]:null;return Re&&Ve?_.getAttribute(Re,"data-p-selectable-row")&&_.getAttribute(Ve,"data-p-selectable-cell")?Ve:ce(Ve):null},ht=function ce(L){var Re=L.parentElement.previousElementSibling,Ve=Re?Re.children[e.index]:null;return Re&&Ve?_.getAttribute(Re,"data-p-selectable-row")&&_.getAttribute(Ve,"data-p-selectable-cell")?Ve:ce(Ve):null},Ct=function(L,Re){L&&Re&&(L.tabIndex=-1,Re.tabIndex=e.tabIndex)},ln=function(){clearTimeout(p.current),p.current=setTimeout(function(){if(o){var L=e.editMode==="cell"?_.getFirstFocusableElement(b.current,':not([data-pc-section="editorkeyhelperlabel"])'):_.findSingle(b.current,'[data-p-row-editor-save="true"]');L&&L.focus()}g.current&&(g.current.tabIndex=o?-1:0)},1)},Bt=function(){clearTimeout(v.current),v.current=setTimeout(function(){var L=e.editMode==="row"?_.findSingle(b.current,'[data-p-row-editor-init="true"]'):null;L&&L.focus()},1)},_e=function(){if(I("frozen")){var L=er({},m),Re=I("alignFrozen");if(Re==="right"){var Ve=0,Pt=b.current&&b.current.nextElementSibling;Pt&&(Ve=_.getOuterWidth(Pt)+parseFloat(Pt.style.right||0)),L.right=Ve+"px"}else{var _t=0,It=b.current&&b.current.previousElementSibling;It&&(_t=_.getOuterWidth(It)+parseFloat(It.style.left||0)),L.left=_t+"px"}var Wt=m.left===L.left&&m.right===L.right;!Wt&&y(L)}},z=function(L){var Re=er({},u);T.mutateFieldData(Re,ye,L),c(Re);var Ve=Rt();Ve&&T.mutateFieldData(Ve,ye,L)},me=function(L){var Re=tt(L);if(e.editMode!=="row"&&Me()&&!o&&(e.selectOnEdit||!e.selectOnEdit&&e.selected)){h.current=!0;var Ve=I("onBeforeCellEditShow"),Pt=I("onCellEditInit"),_t=I("cellEditValidatorEvent");if(Ve&&(Ve(Re)===!1||L&&L.defaultPrevented))return;setTimeout(function(){a(!0),!(Pt&&(Pt(Re)===!1||L&&L.defaultPrevented))&&_t==="click"&&(K(),x.current=function(It){ve(It.target)||(h.current=!0)},Ho.on("overlay-click",x.current))},1)}e.allowCellSelection&&e.onClick&&e.onClick(Re)},Le=function(L){var Re=tt(L);e.onMouseDown&&e.onMouseDown(Re)},mt=function(L){var Re=tt(L);e.onMouseUp&&e.onMouseUp(Re)},bt=function(L){if(e.editMode!=="row"&&((L.code==="Enter"||L.code==="NumpadEnter"||L.code==="Tab")&&Te(L,!0),L.code==="Escape"&&Te(L,!1)),e.allowCellSelection){var Re=L.target,Ve=L.currentTarget;switch(L.code){case"ArrowLeft":var Pt=ut(Ve);Pt&&(Ct(Ve,Pt),Pt.focus()),L.preventDefault();break;case"ArrowRight":var _t=we(Ve);_t&&(Ct(Ve,_t),_t.focus()),L.preventDefault();break;case"ArrowUp":var It=ht(Ve);It&&(Ct(Ve,It),It.focus()),L.preventDefault();break;case"ArrowDown":var Wt=et(Ve);Wt&&(Ct(Ve,Wt),Wt.focus()),L.preventDefault();break;case"Enter":case"NumpadEnter":L.shiftKey||L.ctrlKey||_.isClickable(Re)||(me(L),L.preventDefault());break;case"Space":!_.isClickable(Re)&&!Re.readOnly&&(me(L),L.preventDefault());break}}},ft=function(L){h.current=!1,e.editMode!=="row"&&o&&I("cellEditValidatorEvent")==="blur"&&Te(L,!0)},xt=function(L){me(L)},yt=function(L){e.onRadioChange({originalEvent:L,data:e.rowData,index:e.rowIndex})},un=function(L){e.onCheckboxChange({originalEvent:L,data:e.rowData,index:e.rowIndex})},Mt=function(L){e.onRowToggle({originalEvent:L,data:e.rowData}),L.preventDefault(),L.stopPropagation()},$t=function(L){e.onRowEditInit({originalEvent:L,data:e.rowData,newData:Rt(),field:ye,index:e.rowIndex})},Ye=function(L){e.onRowEditSave({originalEvent:L,data:e.rowData,newData:Rt(),field:ye,index:e.rowIndex}),Bt()},Z=function(L){e.onRowEditCancel({originalEvent:L,data:e.rowData,newData:Rt(),field:ye,index:e.rowIndex}),Bt()};s.useEffect(function(){I("frozen")&&_e(),(e.editMode==="cell"||e.editMode==="row")&&ln()}),s.useEffect(function(){e.editMode==="row"&&e.editing!==o&&a(e.editing)},[e.editMode,e.editing,o]),Xt(function(){(e.editMode==="cell"||e.editMode==="row")&&c(Rt())},[e.editingMeta]),s.useEffect(function(){u&&(E.current=u)},[u]),s.useEffect(function(){if(e.editMode==="cell"||e.editMode==="row"){var ce=tt(),L=er(er({},ce),{},{editing:o,editingKey:Ie});e.onEditingMetaChange(L)}},[o]),Rr(function(){x.current&&(Ho.off("overlay-click",x.current),x.current=null)});var He=function(){var L=Oe("getLoaderOptions")(e.rowIndex,{cellIndex:e.index,cellFirst:e.index===0,cellLast:e.index===Oe("columns").length-1,cellEven:e.index%2===0,cellOdd:e.index%2!==0,column:e.column,field:ye}),Re=T.getJSXElement(Oe("loadingTemplate"),L),Ve=t(A("bodyCell"),{role:"cell"});return s.createElement("td",Ve,Re)},at=function(){var L,Re,Ve=e.allowCellSelection&&Y(),Pt=e.editMode==="row",_t=zt(Ve),It=I("selectionMode"),Wt=I("rowReorder"),N=I("header"),$=I("body"),V=I("editor"),de=I("frozen"),je=I("align"),Ge=lt(),Be={column:e.column,field:ye,rowIndex:e.rowIndex,frozenRow:e.frozenRow,props:e.tableProps},$e=T.getPropValue(I("rowEditor"),e.rowData,Be),Ze=T.getPropValue(I("expander"),e.rowData,Be),Qe=T.getPropValue(e.cellClassName,Ge,Be),Lt=T.getPropValue(I("bodyClassName"),e.rowData,Be),Dt=pt(),Ke=t({className:D("columnTitle")},A("columnTitle")),nt=e.responsiveLayout==="stack"&&s.createElement("span",Ke,T.getJSXElement(N,{props:e.tableProps}));if(It){var ge=e.showSelectionElement?e.showSelectionElement(e.rowData,{rowIndex:e.rowIndex,props:e.tableProps}):!0,W;if(ge){var ue=e.selectionAriaLabel||e.tableProps.dataKey,ae=T.resolveFieldData(e.rowData,ue);W="".concat(e.selected?rr("unselectLabel"):rr("selectLabel")," ").concat(ae)}L=ge&&s.createElement(s.Fragment,null,It==="single"&&s.createElement(zb,{hostName:e.hostName,column:e.column,checked:e.selected,disabled:!e.isSelectable({data:e.rowData,index:e.rowIndex}),onChange:yt,tabIndex:e.tabIndex,tableSelector:e.tableSelector,ariaLabel:W,ptCallbacks:e.ptCallbacks,metaData:e.metaData}),It==="multiple"&&s.createElement(Ab,{hostName:e.hostName,column:e.column,checked:e.selected,disabled:!e.isSelectable({data:e.rowData,index:e.rowIndex}),onChange:un,tabIndex:e.tabIndex,ariaLabel:W,checkIcon:e.checkIcon,ptCallbacks:e.ptCallbacks,metaData:e.metaData}))}else if(Wt){var fe=e.showRowReorderElement?e.showRowReorderElement(e.rowData,{rowIndex:e.rowIndex,props:e.tableProps}):!0,H=I("rowReorderIcon"),ie=t({className:D("rowReorderIcon")},H?null:A("rowReorderIcon")),Se=H||s.createElement(Ob,ie);L=fe?en.getJSXIcon(Se,er({},ie),{props:e}):null}else if(Ze){var ke=t({className:D("rowTogglerIcon"),"aria-hidden":!0},A("rowTogglerIcon")),We=e.expanded?e.expandedRowIcon||s.createElement(gc,ke):e.collapsedRowIcon||s.createElement(Om,ke),he=en.getJSXIcon(We,er({},ke),{props:e}),U="".concat(e.tableSelector,"_content_").concat(e.rowIndex,"_expanded"),C=e.selectionAriaLabel||e.tableProps.dataKey,M=T.resolveFieldData(e.rowData,C),ee="".concat(e.expanded?rr("collapseLabel"):rr("expandLabel")," ").concat(M),Ce={onClick:Mt,className:D("rowToggler")},G=t(er(er({},Ce),{},{type:"button","aria-expanded":e.expanded,"aria-controls":U,tabIndex:e.tabIndex,"aria-label":ee}),A("rowToggler"));L=s.createElement("button",G,he,s.createElement(Hn,null)),$&&(Ce.element=L,L=T.getJSXElement($,e.rowData,{column:e.column,field:ye,rowIndex:e.rowIndex,frozenRow:e.frozenRow,props:e.tableProps,expander:Ce}))}else if(Pt&&$e){var S={},F=t({className:D("rowEditorSaveIcon")},A("rowEditorSaveIcon")),X=t({className:D("rowEditorCancelIcon")},A("rowEditorCancelIcon")),le=t({className:D("rowEditorInitIcon")},A("rowEditorInitIcon")),se=en.getJSXIcon(e.rowEditorSaveIcon||s.createElement(Tl,F),er({},F),{props:e}),ct=en.getJSXIcon(e.rowEditorCancelIcon||s.createElement(hc,X),er({},X),{props:e}),gt=en.getJSXIcon(e.rowEditorInitIcon||s.createElement(Rb,le),er({},le),{props:e});if(o){S={editing:!0,onSaveClick:Ye,saveClassName:D("rowEditorSaveButton"),onCancelClick:Z,cancelClassName:D("rowEditorCancelButton")};var Gt=t({type:"button",name:"row-save","aria-label":rr("saveEdit"),onClick:S.onSaveClick,className:S.saveClassName,tabIndex:e.tabIndex,"data-p-row-editor-save":!0},A("rowEditorSaveButton")),wt=t({type:"button",name:"row-cancel","aria-label":rr("cancelEdit"),onClick:S.onCancelClick,className:S.cancelClassName,tabIndex:e.tabIndex},A("rowEditorCancelButton"));L=s.createElement(s.Fragment,null,s.createElement("button",Gt,se,s.createElement(Hn,null)),s.createElement("button",wt,ct,s.createElement(Hn,null)))}else{S={editing:!1,onInitClick:$t,initClassName:D("rowEditorInitButton")};var tn=t({type:"button",name:"row-edit","aria-label":rr("editRow"),onClick:S.onInitClick,className:S.initClassName,tabIndex:e.tabIndex,"data-p-row-editor-init":!0},A("rowEditorInitButton"));L=s.createElement("button",tn,gt,s.createElement(Hn,null))}$&&(S.element=L,L=T.getJSXElement($,e.rowData,{column:e.column,field:ye,rowIndex:e.rowIndex,frozenRow:e.frozenRow,props:e.tableProps,rowEditor:S}))}else $&&(!o||!V)?L=$?T.getJSXElement($,e.rowData,{column:e.column,field:ye,rowIndex:e.rowIndex,frozenRow:e.frozenRow,props:e.tableProps}):Ge:V&&o?L=T.getJSXElement(V,{rowData:u,value:lt(u),column:e.column,field:ye,rowIndex:e.rowIndex,frozenRow:e.frozenRow,props:e.tableProps,editorCallback:z}):L=Ge;if(L=typeof L=="boolean"?L.toString():L,!Pt&&V){var Cn=t({tabIndex:"0",className:"p-cell-editor-key-helper p-hidden-accessible",onFocus:function(Zt){return xt(Zt)}},A("editorKeyHelperLabel")),dt=t(A("editorKeyHelper"));Re=s.createElement("a",Jt({ref:g},Cn),s.createElement("span",dt))}var Tt=t({style:Dt,className:ze(Lt,I("className"),Qe,D("bodyCell",{selectionMode:It,editor:V,editingState:o,frozen:de,cellSelected:Ve,align:je,bodyProps:e,getCellParams:st})),rowSpan:e.rowSpan,tabIndex:_t,role:"cell",onClick:function(Zt){return me(Zt)},onKeyDown:function(Zt){return bt(Zt)},onBlur:function(Zt){return ft(Zt)},onMouseDown:function(Zt){return Le(Zt)},onMouseUp:function(Zt){return mt(Zt)},"data-p-selectable-cell":e.allowCellSelection&&e.isSelectable({data:st(),index:e.rowIndex}),"data-p-selection-column":I("selectionMode")!=null,"data-p-editable-column":Me()!=null,"data-p-cell-editing":o,"data-p-frozen-column":de},A("root"),A("bodyCell"));return s.createElement("td",Jt({ref:b},Tt),Re,nt,L)};return Oe("loading")?He():at()});Bb.displayName="BodyCell";function Ch(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function h9(e){for(var t=1;t-1:e.groupRowsBy===me:!1},b=function(z,me){return e.compareSelectionBy==="equals"?z===me:T.equals(z,me,e.dataKey)},g=function(){return m()&&!e.allowCellSelection?e.rowIndex===0?e.tabIndex:-1:null},x=function(z,me){return(z||[]).findIndex(function(Le){return b(me,Le)})},h=function(z,me){z&&me&&(z.tabIndex=-1,me.tabIndex=e.tabIndex)},p=function(z){var me=_.findSingle(z.parentNode,"tr[data-p-selectable-row]");return me||null},v=function _e(z){var me=z.nextElementSibling;return me?_.getAttribute(me,"data-p-selectable-row")===!0?me:_e(me):null},E=function _e(z){var me=z.previousElementSibling;return me?_.getAttribute(me,"data-p-selectable-row")===!0?me:_e(me):null},O=function(z){var me=_.findSingle(z.parentNode,"tr[data-p-selectable-row]:last-child");return me||null},k=function(z,me,Le){if(f(me,"hidden"))return!1;if(e.rowGroupMode&&e.rowGroupMode==="rowspan"&&y(me)){var mt=z[Le-1];if(mt){var bt=T.resolveFieldData(z[Le],f(me,"field")),ft=T.resolveFieldData(mt,f(me,"field"));return bt!==ft}}return!0},w=function(z,me,Le){if(y(me)){for(var mt=T.resolveFieldData(z[Le],f(me,"field")),bt=mt,ft=0;mt===bt;){ft++;var xt=z[++Le];if(xt)bt=T.resolveFieldData(xt,f(me,"field"));else break}return ft===1?null:ft}return null},D=function(z){e.onRowClick({originalEvent:z,data:e.rowData,index:e.rowIndex})},I=function(z){e.onRowDoubleClick({originalEvent:z,data:e.rowData,index:e.rowIndex})},B=function(z){e.onRowPointerDown({originalEvent:z,data:e.rowData,index:e.rowIndex})},A=function(z){e.onRowPointerUp({originalEvent:z,data:e.rowData,index:e.rowIndex})},ye=function(z){e.onRowRightClick({originalEvent:z,data:e.rowData,index:e.rowIndex})},Ie=function(z){e.onRowMouseEnter({originalEvent:z,data:e.rowData,index:e.rowIndex})},Me=function(z){e.onRowMouseLeave({originalEvent:z,data:e.rowData,index:e.rowIndex})},Ae=function(z){e.onRowTouchEnd(z)},it=function(z){if(m()&&!e.allowCellSelection){var me=z.target,Le=z.currentTarget;switch(z.code){case"ArrowDown":qe(Le,z);break;case"ArrowUp":K(Le,z);break;case"Home":re(Le,z);break;case"End":Y(Le,z);break;case"Enter":case"NumpadEnter":oe(Le,z,me);break;case"Space":te(Le,z,me);break;case"Tab":ve(Le,z);break}}},qe=function(z,me){var Le=v(z);Le&&(h(z,Le),Le.focus()),me.preventDefault()},K=function(z,me){var Le=E(z);Le&&(h(z,Le),Le.focus()),me.preventDefault()},re=function(z,me){var Le=p(z);Le&&(h(z,Le),Le.focus()),me.preventDefault()},Y=function(z,me){var Le=O(z);Le&&(h(z,Le),Le.focus()),me.preventDefault()},oe=function(z,me,Le){_.isClickable(Le)||(D(me),me.preventDefault())},te=function(z,me,Le){!_.isClickable(Le)&&!Le.readOnly&&(D(me),me.preventDefault())},ve=function(z,me){var Le=z.parentNode,mt=_.find(Le,'tr[data-p-selectable-row="true"]');if(me.code==="Tab"&&mt&&mt.length>0){var bt=_.findSingle(Le,'tr[data-p-highlight="true"]'),ft=_.findSingle(Le,'tr[data-p-selectable-row="true"][tabindex="0"]');bt?(bt.tabIndex="0",ft&&ft!==bt&&(ft.tabIndex="-1")):(mt[0].tabIndex="0",ft!==mt[0]&&(mt[e.rowIndex].tabIndex="-1"))}},Oe=function(z){e.onRowMouseDown({originalEvent:z,data:e.rowData,index:e.rowIndex})},pt=function(z){e.onRowMouseUp({originalEvent:z,data:e.rowData,index:e.rowIndex})},st=function(z){e.onRowDragStart({originalEvent:z,data:e.rowData,index:e.rowIndex})},tt=function(z){e.onRowDragOver({originalEvent:z,data:e.rowData,index:e.rowIndex})},lt=function(z){e.onRowDragLeave({originalEvent:z,data:e.rowData,index:e.rowIndex})},Rt=function(z){e.onRowDragEnd({originalEvent:z,data:e.rowData,index:e.rowIndex})},zt=function(z){e.onRowDrop({originalEvent:z,data:e.rowData,index:e.rowIndex})},Xe=function(z,me){if(e.onRowEditChange){var Le,mt=e.dataKey,bt=z.originalEvent,ft=z.data,xt=z.index,yt=z.newData;if(mt){var un=String(T.resolveFieldData(ft,mt));if(Le=e.editingRows?h9({},e.editingRows):{},me)Le[un]=!0;else{delete Le[un];var Mt=String(T.resolveFieldData(yt,mt));delete Le[Mt]}}else{var $t=x(e.editingRows,ft);Le=e.editingRows?xn(e.editingRows):[],$t!==-1?Le=Le.filter(function(Ye,Z){return Z!==$t}):Le.push(ft)}e.onRowEditChange({originalEvent:bt,data:Le,index:xt})}else a(me)},q=function(z){var me=z.originalEvent;e.onRowEditInit&&e.onRowEditInit({originalEvent:me,data:e.rowData,index:e.rowIndex}),Xe(z,!0),me.preventDefault()},Te=function(z){var me=z.originalEvent,Le=z.newData,mt=e.rowEditValidator?e.rowEditValidator(Le,{props:e.tableProps,rowIndex:e.rowIndex}):!0;e.onRowEditSave&&e.onRowEditSave({originalEvent:me,data:e.rowData,index:e.rowIndex,newData:Le,valid:mt}),mt&&(e.onRowEditComplete&&e.onRowEditComplete(z),Xe(z,!1)),me.preventDefault()},we=function(z){var me=z.originalEvent;e.onRowEditCancel&&e.onRowEditCancel({originalEvent:me,data:e.rowData,index:e.rowIndex}),Xe(z,!1),me.preventDefault()},ut=function(){return e.columns.map(function(z,me){if(k(e.value,z,e.index)){var Le="".concat(e.rowIndex,"_").concat(f(z,"columnKey")||f(z,"field"),"_").concat(me),mt=e.rowGroupMode==="rowspan"?w(e.value,z,e.index):null;return s.createElement(Bb,{hostName:e.hostName,key:Le,allowCellSelection:e.allowCellSelection,cellClassName:e.cellClassName,checkIcon:e.checkIcon,collapsedRowIcon:e.collapsedRowIcon,column:z,compareSelectionBy:e.compareSelectionBy,dataKey:e.dataKey,editMode:e.editMode,editing:l,editingMeta:e.editingMeta,expanded:e.expanded,expandedRowIcon:e.expandedRowIcon,frozenRow:e.frozenRow,index:me,isSelectable:e.isSelectable,onCheckboxChange:e.onCheckboxChange,onClick:e.onCellClick,onEditingMetaChange:e.onEditingMetaChange,onMouseDown:e.onCellMouseDown,onMouseUp:e.onCellMouseUp,onRadioChange:e.onRadioChange,onRowEditCancel:we,onRowEditInit:q,onRowEditSave:Te,onRowToggle:e.onRowToggle,responsiveLayout:e.responsiveLayout,rowData:e.rowData,rowEditorCancelIcon:e.rowEditorCancelIcon,rowEditorInitIcon:e.rowEditorInitIcon,rowEditorSaveIcon:e.rowEditorSaveIcon,rowIndex:e.rowIndex,rowSpan:mt,selectOnEdit:e.selectOnEdit,selected:e.selected,selection:e.selection,selectionAriaLabel:e.tableProps.selectionAriaLabel,showRowReorderElement:e.showRowReorderElement,showSelectionElement:e.showSelectionElement,tabIndex:e.tabIndex,tableProps:e.tableProps,tableSelector:e.tableSelector,value:e.value,virtualScrollerOptions:e.virtualScrollerOptions,ptCallbacks:e.ptCallbacks,metaData:e.metaData})}return null})},et=T.getPropValue(e.rowClassName,e.rowData,{props:e.tableProps}),ht={height:e.virtualScrollerOptions?e.virtualScrollerOptions.itemSize:void 0},Ct=ut(),ln=g(),Bt=t({role:"row",tabIndex:ln,className:ze(c("bodyRow",{rowProps:e})),style:ht,onMouseDown:function(z){return Oe(z)},onMouseUp:function(z){return pt(z)},onMouseEnter:function(z){return Ie(z)},onMouseLeave:function(z){return Me(z)},onClick:function(z){return D(z)},onDoubleClick:function(z){return I(z)},onPointerDown:function(z){return B(z)},onPointerUp:function(z){return A(z)},onContextMenu:function(z){return ye(z)},onTouchEnd:function(z){return Ae(z)},onKeyDown:function(z){return it(z)},onDragStart:function(z){return st(z)},onDragOver:function(z){return tt(z)},onDragLeave:function(z){return lt(z)},onDragEnd:function(z){return Rt(z)},onDrop:function(z){return zt(z)},"aria-selected":e!=null&&e.selectionMode?e.selected:null,"data-p-selectable-row":e.allowRowSelection&&e.isSelectable({data:e.rowData,index:e.rowIndex}),"data-p-highlight":e.selected,"data-p-highlight-contextmenu":e.contextMenuSelected},d("bodyRow"),{className:ze(et)});return s.createElement("tr",Bt,Ct)});Hb.displayName="BodyRow";function Eh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function y9(e){for(var t=1;t-1:Ae(C,e.selection):!1},te=function(C){return C&&e.contextMenuSelection?Ae(C,e.contextMenuSelection):!1},ve=function(C){return e.isDataSelectable?e.isDataSelectable(C):!0},Oe=function(C){if(C&&e.expandedRows){if(B&&e.expandableRowGroups)return pt(C);if(e.dataKey){var M=T.resolveFieldData(C,e.dataKey),ee=!1;return e.expandedRows&&(Array.isArray(e.expandedRows)?ee=e.expandedRows.some(function(Ce){return T.resolveFieldData(Ce,e.dataKey)===M}):ee=e.expandedRows[M]!==void 0),ee}return Ct(e.expandedRows,C)!==-1}return!1},pt=function(C){return e.dataKey===e.groupRowsBy?Object.keys(e.expandedRows).some(function(M){return T.equals(M,T.resolveFieldData(C,e.dataKey))}):e.expandedRows.some(function(M){return T.equals(M,C,e.groupRowsBy)})},st=function(C){return e.editMode==="row"&&C&&e.editingRows?e.dataKey?e.editingRows?e.editingRows[T.resolveFieldData(C,e.dataKey)]!==void 0:!1:Ct(e.editingRows,C)!==-1:!1},tt=function(C){return e.dragSelection&&K()&&!C.originalEvent.shiftKey},lt=function(C){return!we()&&tt(C)||e.reorderableRows},Rt=function(C){return we()&&tt(C)},zt=function(C){return!_.isClickable(C.originalEvent.target)},Xe=function(C){return!k.current&&(!e.metaKeySelection||e.metaKeySelection&&(C.originalEvent.metaKey||C.originalEvent.ctrlKey))},q=function(C){return K()&&C.originalEvent.shiftKey&&p.current!==null},Te=function(){return(e.selectionMode||e.selectionModeInColumn)&&!re()&&!Y()},we=function(){return e.cellSelection&&!Ie&&!Me},ut=function(){return e.columns?e.columns.length:0},et=function(C,M){return gn.getCProp(C,M)},ht=function(C,M){return M=M||e.virtualScrollerOptions,M?M[C]:null},Ct=function(C,M){return(C||[]).findIndex(function(ee){return Ae(M,ee)})},ln=function(){return e.scrollable?{top:d.top}:null},Bt=function(C,M){return e.dataKey?T.resolveFieldData(C,e.dataKey):M},_e=function(C,M,ee){var Ce=T.resolveFieldData(M,e.groupRowsBy),G=C[ee-1];if(G){var S=T.resolveFieldData(G,e.groupRowsBy);return!T.deepEquals(Ce,S)}return!0},z=function(C,M,ee,Ce){if(e.expandableRowGroups&&!Ce)return!1;var G=T.resolveFieldData(M,e.groupRowsBy),S=C[ee+1];if(S){var F=T.resolveFieldData(S,e.groupRowsBy);return!T.deepEquals(G,F)}return!0},me=function(){b.current.style.top=_.getOuterHeight(b.current.previousElementSibling)+"px"},Le=function(){var C=_.getOuterHeight(b.current.previousElementSibling),M=C+"px";d.top!==M&&f({top:M})},mt=function(C){var M=C.originalEvent,ee=C.data,Ce=C.index,G=C.toggleable,S=C.type;if(ve({data:ee,index:Ce})){var F=oe(ee),X=e.selection;F?G&&(X=null,$t({originalEvent:M,data:ee,type:S})):(X=ee,Mt({originalEvent:M,data:ee,type:S})),Z(M,!0),e.onSelectionChange&&X!==e.selection&&e.onSelectionChange({originalEvent:M,value:X,type:S})}},bt=function(C){var M=C.originalEvent,ee=C.data,Ce=C.index,G=C.toggleable,S=C.type;if(ve({data:ee,index:Ce})){var F=oe(ee),X=e.selection||[];if(F)if(G){var le=Ct(X,ee);X=e.selection.filter(function(se,ct){return ct!==le}),$t({originalEvent:M,data:ee,type:S})}else X.length&&(e.selection.forEach(function(se){return $t({originalEvent:M,data:se,type:S})}),X=[ee],Mt({originalEvent:M,data:ee,type:S}));else X=T.isObject(X)?[X]:X,X=G&&K()?[].concat(xn(X),[ee]):[ee],Mt({originalEvent:M,data:ee,type:S});e.onSelectionChange&&X!==e.selection&&e.onSelectionChange({originalEvent:M,value:X,type:S})}},ft=function(C,M){_.clearSelection(),E.current=we()?C.rowIndex:C.index;var ee=xt(C);e.onSelectionChange&&ee!==e.selection&&e.onSelectionChange({originalEvent:C.originalEvent,value:ee,type:M}),p.current=E.current,v.current=C.cellIndex},xt=function(C){var M,ee,Ce,G=we(),S=T.findIndexInList(C.data,e.value,e.dataKey);return E.current>p.current?(M=p.current,ee=E.current,G||(Ce=ee-M,ee=S,M=S-Ce)):E.currentv.current?(Ce=v.current,G=S):S td":"tr",S=_.findSingle(b.current,"".concat(G,'[tabindex="').concat(e.tabIndex,'"]'));S&&ee&&(S.tabIndex=-1,ee.tabIndex=e.tabIndex)}},at=function(C){if(!(C.defaultPrevented||C.originalEvent&&C.originalEvent.defaultPrevented||we()||!zt(C))){if(e.onRowClick&&e.onRowClick(C),Te()){if(q(C))ft(C,"row");else{var M=Ie||Me||Xe(C);p.current=C.index,E.current=C.index,O.current=e.first,qe()?mt(yr(yr({},C),{},{toggleable:M,type:"row"})):bt(yr(yr({},C),{},{toggleable:M,type:"row"}))}He(C.originalEvent,"row")}else Z(C.originalEvent);k.current=!1}},ce=function(C){var M=C.originalEvent;_.isClickable(M.target)||e.onRowDoubleClick&&e.onRowDoubleClick(C)},L=function(C){var M=C.originalEvent;_.isClickable(M.target)||e.onRowPointerDown&&e.onRowPointerDown(C)},Re=function(C){var M=C.originalEvent;_.isClickable(M.target)||e.onRowPointerUp&&e.onRowPointerUp(C)},Ve=function(C){if(e.onContextMenu||e.onContextMenuSelectionChange){var M=T.isNotEmpty(e.selection),ee=C.data;M&&_.clearSelection(),e.onContextMenuSelectionChange&&e.onContextMenuSelectionChange({originalEvent:C.originalEvent,value:ee,index:C.index}),e.onContextMenu&&e.onContextMenu({originalEvent:C.originalEvent,data:ee,index:C.index}),C.originalEvent.preventDefault()}},Pt=function(C){e.onRowMouseEnter&&e.onRowMouseEnter(C)},_t=function(C){e.onRowMouseLeave&&e.onRowMouseLeave(C)},It=function(){k.current=!0},Wt=function(C){var M=C.originalEvent;!i&&_.hasClass(M.target,"p-datatable-reorderablerow-handle")?(M.currentTarget.draggable=!0,M.target.draggable=!1):M.currentTarget.draggable=!1,lt(C)&&(Ye(M),p.current=C.index,E.current=C.index,O.current=e.first)},N=function(C){var M=C.index===p.current;lt(C)&&!M&&ft(C,"row")},$=function(C){var M,ee=e.dataKey,Ce=e.groupRowsBy?ee===e.groupRowsBy:!!ee;if(Ce){var G=String(T.resolveFieldData(C.data,ee));M=e.expandedRows?yr({},e.expandedRows):{},M[G]!=null?(delete M[G],e.onRowCollapse&&e.onRowCollapse({originalEvent:C,data:C.data})):(M[G]=!0,e.onRowExpand&&e.onRowExpand({originalEvent:C,data:C.data}))}else{var S=Ct(e.expandedRows,C.data);M=e.expandedRows?xn(e.expandedRows):[],S!==-1?(M=M.filter(function(F,X){return X!==S}),e.onRowCollapse&&e.onRowCollapse({originalEvent:C,data:C.data})):(M.push(C.data),e.onRowExpand&&e.onRowExpand({originalEvent:C,data:C.data}))}e.onRowToggle&&e.onRowToggle({data:M})},V=function(C){var M=C.originalEvent,ee=C.index;lt(M)&&(w.current=!0,D.current=ee,M.dataTransfer.setData("text","b"))},de=function(C){var M=C.originalEvent,ee=C.index;if(w.current&&D.current!==ee){var Ce=M.currentTarget,G=_.getOffset(Ce).top+_.getWindowScrollTop(),S=M.pageY+window.scrollY,F=G+_.getOuterHeight(Ce)/2,X=Ce.previousElementSibling;SI.current?I.current:I.current===0?0:I.current-1,Ce=xn(e.tableProps.value);T.reorderArray(Ce,D.current,ee),e.onRowReorder&&e.onRowReorder({originalEvent:M,value:Ce,dragIndex:D.current,dropIndex:ee})}je(C),Ge(C),M.preventDefault()},$e=function(C){mt(yr(yr({},C),{},{toggleable:!0,type:"radio"}))},Ze=function(C){bt(yr(yr({},C),{},{toggleable:!0,type:"checkbox"}))},Qe=function(C){var M=h.current,ee=M.x,Ce=M.y,G=C.clientX-ee,S=C.clientY-Ce;S<0&&(x.current.style.top="".concat(C.pageY+5,"px")),G<0&&(x.current.style.left="".concat(C.pageX+5,"px")),x.current.style.height="".concat(Math.abs(S),"px"),x.current.style.width="".concat(Math.abs(G),"px"),C.preventDefault()},Lt=function U(){x.current&&(x.current.remove(),x.current=null),document.removeEventListener("mousemove",Qe),document.removeEventListener("mouseup",U)},Dt=function(C){if(zt(C)){if(e.onCellClick&&e.onCellClick(C),we()){if(q(C))ft(C,"cell");else{var M=Xe(C),ee=C.originalEvent,Ce=f9(C,b9);p.current=C.rowIndex,E.current=C.rowIndex,O.current=e.first,v.current=C.cellIndex,qe()?mt({originalEvent:ee,data:Ce,index:C.rowIndex,toggleable:M,type:"cell"}):bt({originalEvent:ee,data:Ce,index:C.rowIndex,toggleable:M,type:"cell"})}He(C.originalEvent,"cell")}k.current=!1}},Ke=function(C){Rt(C)&&(Ye(C.originalEvent),p.current=C.rowIndex,E.current=C.rowIndex,O.current=e.first,v.current=C.cellIndex)},nt=function(C){var M=C.rowIndex===p.current&&C.cellIndex===v.current;Rt(C)&&!M&&ft(C,"cell")},ge=function(){document.addEventListener("mousemove",Qe),document.addEventListener("mouseup",Lt),document.body.appendChild(x.current)},W=function(){Lt()};s.useEffect(function(){e.frozenRow&&me(),e.scrollable&&e.rowGroupMode==="subheader"&&Le()}),Xt(function(){e.paginator&&K()&&(p.current=null)},[e.first]),Rr(function(){e.dragSelection&&W()});var ue=function(){if(!e.loading){var C=ut(),M=T.getJSXElement(e.emptyMessage,{props:e.tableProps,frozen:e.frozenRow})||cr("emptyMessage"),ee=n({className:l("emptyMessage"),role:"row"},y("emptyMessage")),Ce=n({colSpan:C,role:"cell"},y("root"),y("bodyCell"));return s.createElement("tr",ee,s.createElement("td",Ce,M))}return null},ae=function(C,M,ee,Ce){if(B&&_e(e.value,C,M-e.first)){var G=ln(),S=e.expandableRowGroups&&s.createElement(Ub,{hostName:e.hostName,onClick:$,rowData:C,expanded:ee,expandedRowIcon:e.expandedRowIcon,collapsedRowIcon:e.collapsedRowIcon,ptCallbacks:e.ptCallbacks,metaData:e.metaData}),F={index:M,props:e.tableProps,customRendering:!1},X=T.getJSXElement(e.rowGroupHeaderTemplate,C,F);if(!F.customRendering){var le=n({colSpan:Ce},y("root"),y("bodyCell")),se=n({className:l("rowGroupHeaderName")},y("rowGroupHeaderName"));X=s.createElement("td",le,S,s.createElement("span",se,X))}var ct=n({className:l("rowGroupHeader"),style:G,role:"row"},y("rowGroupHeader"));return s.createElement("tr",ct,X)}return null},fe=function(C,M,ee,Ce){if(!e.expandableRowGroups||Ce){var G=it()?oe(C):!1,S=te(C),F=Te(),X=we(),le=st(C);return s.createElement(Hb,{hostName:e.hostName,allowCellSelection:X,allowRowSelection:F,cellClassName:e.cellClassName,checkIcon:e.checkIcon,collapsedRowIcon:e.collapsedRowIcon,columns:e.columns,compareSelectionBy:e.compareSelectionBy,contextMenuSelected:S,dataKey:e.dataKey,editMode:e.editMode,editing:le,editingMeta:e.editingMeta,editingRows:e.editingRows,expanded:Ce,expandedRowIcon:e.expandedRowIcon,frozenRow:e.frozenRow,groupRowsBy:e.groupRowsBy,index:ee,isSelectable:ve,onCellClick:Dt,onCellMouseDown:Ke,onCellMouseUp:nt,onCheckboxChange:Ze,onEditingMetaChange:e.onEditingMetaChange,onRadioChange:$e,onRowClick:at,onRowDoubleClick:ce,onRowPointerDown:L,onRowPointerUp:Re,onRowDragEnd:Ge,onRowDragLeave:je,onRowDragOver:de,onRowDragStart:V,onRowDrop:Be,onRowEditCancel:e.onRowEditCancel,onRowEditChange:e.onRowEditChange,onRowEditComplete:e.onRowEditComplete,onRowEditInit:e.onRowEditInit,onRowEditSave:e.onRowEditSave,onRowMouseDown:Wt,onRowMouseEnter:Pt,onRowMouseLeave:_t,onRowMouseUp:N,onRowRightClick:Ve,onRowToggle:$,onRowTouchEnd:It,responsiveLayout:e.responsiveLayout,rowClassName:e.rowClassName,rowData:C,rowEditValidator:e.rowEditValidator,rowEditorCancelIcon:e.rowEditorCancelIcon,rowEditorInitIcon:e.rowEditorInitIcon,rowEditorSaveIcon:e.rowEditorSaveIcon,rowGroupMode:e.rowGroupMode,rowIndex:M,selectOnEdit:e.selectOnEdit,selected:G,selection:e.selection,selectionMode:e.selectionMode,selectionModeInColumn:e.selectionModeInColumn,showRowReorderElement:e.showRowReorderElement,showSelectionElement:e.showSelectionElement,tabIndex:e.tabIndex,tableProps:e.tableProps,tableSelector:e.tableSelector,value:e.value,virtualScrollerOptions:e.virtualScrollerOptions,ptCallbacks:e.ptCallbacks,metaData:e.metaData})}},H=function(C,M,ee,Ce){if(ee&&!(B&&e.expandableRowGroups)){var G="".concat(e.tableSelector,"_content_").concat(M,"_expanded"),S={index:M,customRendering:!1},F=T.getJSXElement(e.rowExpansionTemplate,C,S);if(!S.customRendering){var X=n({colSpan:Ce,role:"cell"},y("root"),y("bodyCell"));F=s.createElement("td",X,F)}var le=n({id:G,className:l("rowExpansion"),role:"row"},y("rowExpansion"));return s.createElement("tr",le,F)}return null},ie=function(C,M,ee,Ce){if(B&&z(e.value,C,M-e.first,ee)){var G=T.getJSXElement(e.rowGroupFooterTemplate,C,{index:M,colSpan:Ce,props:e.tableProps}),S=n({className:l("rowGroupFooter"),role:"row"},y("rowGroupFooter"));return s.createElement("tr",S,G)}return null},Se=function(){return e.value&&e.value.map(function(C,M){var ee=ht("getItemOptions")?ht("getItemOptions")(M).index:e.first+M,Ce=Bt(C,ee),G=Oe(C),S=ut(),F=ae(C,ee,G,S),X=fe(C,ee,M,G),le=H(C,ee,G,S),se=ie(C,ee,G,S);return s.createElement(s.Fragment,{key:Ce},F,X,le,se)})},ke=e.empty?ue():Se(),We=e.className==="p-datatable-virtualscroller-spacer"?"virtualScrollerSpacer":"tbody",he=n({style:e.style,className:l(We,{className:e.className}),role:" rowgroup"},o(We,{hostName:e.hostName}));return s.createElement("tbody",Jt({ref:g},he),ke)}));rs.displayName="TableBody";var qo=St.extend({defaultProps:{__TYPE:"ColumnGroup",children:void 0},getCProp:function(t,n){return T.getComponentProp(t,n,qo.defaultProps)},getCProps:function(t){return T.getComponentProps(t,qo.defaultProps)}}),Im=St.extend({defaultProps:{__TYPE:"Row",style:null,className:null,children:void 0},getCProp:function(t,n){return T.getComponentProp(t,n,Im.defaultProps)}});function Ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function w9(e){for(var t=1;t1},Y=function(){return f("showAddButton")&&E&&E.operator&&xt()&&xt().length1&&arguments[1]!==void 0?arguments[1]:0,ae=Vr({},e.filters),fe=ae[v];e.display==="menu"&&fe&&fe.operator?ae[v].constraints[ue].value=W:ae[v].value=W,e.onFilterChange(ae)},ce=function(){for(var W=arguments.length,ue=new Array(W),ae=0;ae1},E=function(){return!O("sortable")||O("sortable")&&(e.allSortableDisabled||O("sortableDisabled"))},O=function(){return e.column?typeof(arguments.length<=0?void 0:arguments[0])=="string"?gn.getCProp(e.column,arguments.length<=0?void 0:arguments[0]):gn.getCProp((arguments.length<=0?void 0:arguments[0])||e.column,arguments.length<=1?void 0:arguments[1]):null},k=function(){var q=O("headerStyle"),Te=O("style");return O("frozen")?Object.assign({},Te,q,r):Object.assign({},Te,q)},w=function(){return e.multiSortMeta.findIndex(function(q){return q.field===O("field")||q.field===O("sortField")})},D=function(){var q=!1,Te=0,we=-1;return e.sortMode==="single"?(q=e.sortField&&(e.sortField===O("field")||e.sortField===O("sortField")),Te=q?e.sortOrder:0):e.sortMode==="multiple"&&(we=w(),we>-1&&(q=!0,Te=e.multiSortMeta[we].order)),{sorted:q,sortOrder:Te,metaIndex:we}},I=function(q){var Te=q.sorted,we=q.sortOrder;return O("sortable")?Te&&we<0?"descending":Te&&we>0?"ascending":"none":null},B=function(){if(O("frozen")){var q=$u({},r),Te=O("alignFrozen");if(Te==="right"){var we=0,ut=a.current.nextElementSibling;ut&&(we=_.getOuterWidth(ut)+parseFloat(ut.style.right||0)),q.right=we+"px"}else{var et=0,ht=a.current.previousElementSibling;ht&&(et=_.getOuterWidth(ht)+parseFloat(ht.style.left||0)),q.left=et+"px"}var Ct=a.current.parentElement.nextElementSibling;if(Ct){var ln=_.index(a.current);Ct.children[ln].style.left=q.left,Ct.children[ln].style.right=q.right}var Bt=r.left===q.left&&r.right===q.right;!Bt&&o(q)}},A=function(q){(O(q,"sortableDisabled")!==O("sortableDisabled")||O(q,"sortable")!==O("sortable"))&&e.onSortableChange()},ye=function(q){if(!E()){var Te=q.target;(_.getAttribute(Te,"data-p-sortable-column")===!0||_.getAttribute(Te,"data-pc-section")==="headertitle"||_.getAttribute(Te,"data-pc-section")==="headercontent"||_.getAttribute(Te,"data-pc-section")==="sortIcon"||_.getAttribute(Te.parentElement,"data-pc-section")==="sortIcon"||Te.closest('[data-p-sortable-column="true"]')&&!Te.closest('[data-pc-section="filtermenubutton"]'))&&(_.clearSelection(),e.onSortChange({originalEvent:q,column:e.column,sortableDisabledFields:e.sortableDisabledFields}))}},Ie=function(q){e.onColumnMouseDown({originalEvent:q,column:e.column})},Me=function(q){(q.code=="Enter"||q.code==="NumpadEnter"||q.code=="Space")&&q.currentTarget===a.current&&_.getAttribute(q.currentTarget,"data-p-sortable-column")==="true"&&(ye(q),q.preventDefault())},Ae=function(q){e.onColumnDragStart({originalEvent:q,column:e.column})},it=function(q){e.onColumnDragOver({originalEvent:q,column:e.column})},qe=function(q){e.onColumnDragLeave({originalEvent:q,column:e.column})},K=function(q){e.onColumnDrop({originalEvent:q,column:e.column})},re=function(q){e.onColumnResizeStart({originalEvent:q,column:e.column})},Y=function(q){e.onColumnResizerClick&&(e.onColumnResizerClick({originalEvent:q,element:q.currentTarget.parentElement,column:e.column}),q.preventDefault())},oe=function(q){e.onColumnResizerDoubleClick&&(e.onColumnResizerDoubleClick({originalEvent:q,element:q.currentTarget.parentElement,column:e.column}),q.preventDefault())};s.useEffect(function(){O("frozen")&&B(),A(l)});var te=function(){if(e.resizableColumns&&!O("frozen")){var q=i({className:b("columnResizer"),onMouseDown:function(we){return re(we)},onClick:function(we){return Y(we)},onDoubleClick:function(we){return oe(we)}},p("columnResizer"));return s.createElement("span",q)}return null},ve=function(){var q=T.getJSXElement(O("header"),{props:e.tableProps}),Te=i({className:b("headerTitle")},p("headerTitle"));return s.createElement("span",Te,q)},Oe=function(q){var Te=q.sorted,we=q.sortOrder;if(O("sortable")){var ut=i({className:b("sortIcon")},p("sortIcon")),et=i(p("sort")),ht=Te?we<0?s.createElement(_b,ut):s.createElement(Lb,ut):s.createElement(Mb,ut),Ct=en.getJSXIcon(e.sortIcon||ht,$u({},ut),{props:e,sorted:Te,sortOrder:we});return s.createElement("span",et,Ct)}return null},pt=function(q){var Te=q.metaIndex;if(Te!==-1&&v()){var we=e.groupRowsBy&&e.groupRowsBy===e.groupRowSortField?Te:Te+1,ut=i({className:b("sortBadge")},p("root"),p("sortBadge"));return s.createElement("span",ut,we)}return null},st=function(){if(e.showSelectAll&&O("selectionMode")==="multiple"&&e.filterDisplay!=="row"){var q=e.allRowsSelected(e.value);return s.createElement(km,{hostName:e.hostName,checked:q,onChange:e.onColumnCheckboxChange,disabled:e.empty,ptCallbacks:c,metaData:u})}return null},tt=function(){return e.filterDisplay==="menu"&&O("filter")?s.createElement(Tm,{hostName:e.hostName,display:"menu",column:e.column,filters:e.filters,onFilterChange:e.onFilterChange,onFilterApply:e.onFilterApply,filtersStore:e.filtersStore,filterIcon:e.filterIcon,filterClearIcon:e.filterClearIcon,ptCallbacks:c,metaData:u,unstyled:e.unstyled}):null},lt=function(q){var Te=ve(),we=Oe(q),ut=pt(q),et=st(),ht=tt(),Ct=i({className:b("headerContent")},p("headerContent"));return s.createElement("div",Ct,Te,we,ut,et,ht)},Rt=function(){var q=E(),Te=D(),we=k(),ut=O("alignHeader")||O("align"),et=O("frozen"),ht=O("sortable")&&!q?e.tabIndex:null,Ct=O("colSpan"),ln=O("rowSpan"),Bt=I(Te),_e=O("headerTooltip"),z=O("headerClassName"),me=T.isNotEmpty(_e),Le=O("headerTooltipOptions"),mt=te(),bt=lt(Te),ft=i({className:ze(z,b("headerCell",{headerProps:e,frozen:et,sortMeta:Te,align:ut,_isSortableDisabled:q,getColumnProp:O})),style:we,role:"columnheader",onClick:function(yt){return ye(yt)},onKeyDown:function(yt){return Me(yt)},onMouseDown:function(yt){return Ie(yt)},onDragStart:function(yt){return Ae(yt)},onDragOver:function(yt){return it(yt)},onDragLeave:function(yt){return qe(yt)},onDrop:function(yt){return K(yt)},tabIndex:ht,colSpan:Ct,rowSpan:ln,"aria-sort":Bt,"data-p-sortable-column":O("sortable"),"data-p-resizable-column":e.resizableColumns,"data-p-highlight":Te.sorted,"data-p-filter-column":!e.metaData.props.headerColumnGroup&&e.filterDisplay==="row","data-p-frozen-column":O("frozen"),"data-p-reorderable-column":e.reorderableColumns},p("root"),p("headerCell"));return s.createElement(s.Fragment,null,s.createElement("th",Jt({ref:a},ft),mt,bt),me&&s.createElement(ra,Jt({target:a,content:_e,pt:p("tooltip"),unstyled:e.unstyled},Le)))},zt=Rt();return zt});Wb.displayName="HeaderCell";function Dh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Nh(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,l=!1,i;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return a=c.done,c},e:function(c){l=!0,i=c},f:function(){try{!a&&n.return!=null&&n.return()}finally{if(l)throw i}}}}function D9(e,t){if(e){if(typeof e=="string")return Mh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Mh(e,t)}}function Mh(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:{};if(T.isNotEmpty(R)){if(o.paginator)if(o.onPage){var j=function(pe,Ee){var be=X(la()),Fe=Math.ceil(be/Ee)||1,Ue=Math.floor(pe/Ee);return{first:pe,rows:Ee,page:Ue,pageCount:Fe}};o.onPage(aa(j(R.first,R.rows)))}else u(R.first),m(R.rows);R.sortField&&(o.onSort?o.onSort(aa({sortField:R.sortField,sortOrder:R.sortOrder})):(x(R.sortField),E(R.sortOrder))),R.multiSortMeta&&(o.onSort?o.onSort(aa({multiSortMeta:R.multiSortMeta})):D(R.multiSortMeta)),R.filters&&(q(oa(R.filters)),o.onFilter?o.onFilter(aa({filters:R.filters})):ye(oa(R.filters))),o.resizableColumns&&(Ye.current=R.columnWidths,Z.current=R.tableWidth,C()),o.reorderableColumns&&it(R.columnOrder),R.expandedRows&&o.onRowToggle&&o.onRowToggle({data:R.expandedRows}),R.selection&&o.onSelectionChange&&o.onSelectionChange({value:R.selection}),o.onStateRestore&&o.onStateRestore(R)}},he=function(R){var j=[],Q=_.find(et.current,'[data-pc-section="thead"] > tr > th');Q.forEach(function(pe){return j.push(_.getOuterWidth(pe))}),R.columnWidths=j.join(","),o.columnResizeMode==="expand"&&(R.tableWidth=_.getOuterWidth(ht.current)+"px")},U=function(R){oo();var j="",Q='[data-pc-name="datatable"]['.concat(ut.current,'] > [data-pc-section="wrapper"] ').concat(Ze()?"":'> [data-pc-name="virtualscroller"]',' > [data-pc-section="table"]');R.forEach(function(pe,Ee){var be="width: ".concat(pe,"px !important; max-width: ").concat(pe,"px !important");j=j+` `.concat(Q,' > [data-pc-section="thead"] > tr > th:nth-child(').concat(Ee+1,`), `).concat(Q,' > [data-pc-section="tbody"] > tr > td:nth-child(').concat(Ee+1,`), `).concat(Q,' > [data-pc-section="tfoot"] > tr > td:nth-child(').concat(Ee+1,`) { `).concat(be,` } - `)}),un.current.innerHTML=j},C=function(){if(Ye.current){var R=Ye.current.split(",");o.columnResizeMode==="expand"&&Z.current&&(ht.current.style.width=Z.current,ht.current.style.minWidth=Z.current),T.isNotEmpty(R)&&U(R)}},M=function(R){if(R.nodeName==="TH")return R;for(var j=R.parentElement;j.nodeName!=="TH"&&(j=j.parentElement,!!j););return j},ee=function(){return o.sortMode==="single"?o.sortField:re?re.field:null},Ce=function(R){return o.showSelectionElement||o.isDataSelectable?R.filter(function(j,Q){var pe=!0;return o.showSelectionElement&&(pe=o.showSelectionElement({rowIndex:Q,props:o})),o.isDataSelectable&&pe&&(pe=o.isDataSelectable({data:j,index:Q})),pe}):R},G=function(R){if(o.onSelectAllChange)return o.selectAll;var j=o.selectionPageOnly?kc(R):R,Q=T.isNotEmpty(o.frozenValue)?[].concat(xn(o.frozenValue),xn(j)):j,pe=Ce(Q);return T.isNotEmpty(pe)&&o.selection&&pe.every(function(Ee){return T.isArray(o.selection)&&o.selection.some(function(be){return Qe(be,Ee)})})},S=function(R){if(R){var j=R.find(function(Q){return!!ae(Q,"selectionMode")});return j?ae(j,"selectionMode"):null}return null},F=function(R,j){return T.isNotEmpty(R)?R.find(function(Q){return ae(Q,"columnKey")===j||ae(Q,"field")===j}):null},J=function(R){return o.lazy?o.totalRecords:R?R.length:0},le=function(R){var j=R.rowData,Q=R.field,pe=R.editingKey;R.rowIndex;var Ee=R.editing,be=tr({},ve),Fe=be[pe];if(Ee)!Fe&&(Fe=be[pe]={data:tr({},j),fields:[]}),Fe.fields.push(Q);else if(Fe){var Ue=Fe.fields.filter(function(ot){return ot!==Q});Ue.length?Fe.fields=Ue:delete be[pe]}Oe(be)},se=function(){o.editMode&&T.isNotEmpty(ve)&&Oe({})},ct=function(R){hr();var j=R.originalEvent,Q=R.column,pe=_.getOffset(et.current).left;He.current=Q,at.current=j.currentTarget.parentElement,ce.current=!0,L.current=j.pageX-pe+et.current.scrollLeft,tn()},gt=function(R){var j=_.getOffset(et.current).left;et.current.setAttribute("data-p-unselectable-text",!0),bt.current.style.height=et.current.offsetHeight+"px",bt.current.style.top="0px",bt.current.style.left=R.pageX-j+et.current.scrollLeft+"px",bt.current.style.display="block"},Gt=function(){var R=bt.current.offsetLeft-L.current,j=at.current.offsetWidth,Q=j+R,pe=at.current.style.minWidth||15;if(j+R>parseInt(pe,10)){if(o.columnResizeMode==="fit"){var Ee=at.current.nextElementSibling,be=Ee.offsetWidth-R;Q>15&&be>15&&wt(Q,be)}else if(o.columnResizeMode==="expand"){var Fe=ht.current.offsetWidth+R+"px",Ue=function(vt){vt&&(vt.style.width=vt.style.minWidth=Fe)};wt(Q),Ue(ht.current),Ze()||(Ue(ln.current),Ue(Bt.current),Ct.current&&Ue(_.findSingle(Ct.current,'[data-pc-name="virtualscroller"] > table > tbody')))}o.onColumnResizeEnd&&o.onColumnResizeEnd({element:at.current,column:He.current,delta:R}),$e()&&H()}bt.current.style.display="none",He.current=null,at.current=null,et.current.setAttribute("data-p-unselectable-text","true"),P(),Cn()},wt=function(R,j){var Q=[],pe=_.index(at.current),Ee=_.find(ht.current,'[data-pc-section="thead"] > tr > th');Ee.forEach(function(Ue){return Q.push(_.getOuterWidth(Ue))}),De(),oo();var be="",Fe='[data-pc-name="datatable"]['.concat(ut.current,'] > [data-pc-section="wrapper"] ').concat(Ze()?"":'> [data-pc-name="virtualscroller"]',' > [data-pc-section="table"]');Q.forEach(function(Ue,ot){var vt=ot===pe?R:j&&ot===pe+1?j:Ue,Nt="width: ".concat(vt,"px !important; max-width: ").concat(vt,"px !important");be=be+` + `)}),un.current.innerHTML=j},C=function(){if(Ye.current){var R=Ye.current.split(",");o.columnResizeMode==="expand"&&Z.current&&(ht.current.style.width=Z.current,ht.current.style.minWidth=Z.current),T.isNotEmpty(R)&&U(R)}},M=function(R){if(R.nodeName==="TH")return R;for(var j=R.parentElement;j.nodeName!=="TH"&&(j=j.parentElement,!!j););return j},ee=function(){return o.sortMode==="single"?o.sortField:re?re.field:null},Ce=function(R){return o.showSelectionElement||o.isDataSelectable?R.filter(function(j,Q){var pe=!0;return o.showSelectionElement&&(pe=o.showSelectionElement({rowIndex:Q,props:o})),o.isDataSelectable&&pe&&(pe=o.isDataSelectable({data:j,index:Q})),pe}):R},G=function(R){if(o.onSelectAllChange)return o.selectAll;var j=o.selectionPageOnly?kc(R):R,Q=T.isNotEmpty(o.frozenValue)?[].concat(xn(o.frozenValue),xn(j)):j,pe=Ce(Q);return T.isNotEmpty(pe)&&o.selection&&pe.every(function(Ee){return T.isArray(o.selection)&&o.selection.some(function(be){return Qe(be,Ee)})})},S=function(R){if(R){var j=R.find(function(Q){return!!ae(Q,"selectionMode")});return j?ae(j,"selectionMode"):null}return null},F=function(R,j){return T.isNotEmpty(R)?R.find(function(Q){return ae(Q,"columnKey")===j||ae(Q,"field")===j}):null},X=function(R){return o.lazy?o.totalRecords:R?R.length:0},le=function(R){var j=R.rowData,Q=R.field,pe=R.editingKey;R.rowIndex;var Ee=R.editing,be=tr({},ve),Fe=be[pe];if(Ee)!Fe&&(Fe=be[pe]={data:tr({},j),fields:[]}),Fe.fields.push(Q);else if(Fe){var Ue=Fe.fields.filter(function(ot){return ot!==Q});Ue.length?Fe.fields=Ue:delete be[pe]}Oe(be)},se=function(){o.editMode&&T.isNotEmpty(ve)&&Oe({})},ct=function(R){hr();var j=R.originalEvent,Q=R.column,pe=_.getOffset(et.current).left;He.current=Q,at.current=j.currentTarget.parentElement,ce.current=!0,L.current=j.pageX-pe+et.current.scrollLeft,tn()},gt=function(R){var j=_.getOffset(et.current).left;et.current.setAttribute("data-p-unselectable-text",!0),bt.current.style.height=et.current.offsetHeight+"px",bt.current.style.top="0px",bt.current.style.left=R.pageX-j+et.current.scrollLeft+"px",bt.current.style.display="block"},Gt=function(){var R=bt.current.offsetLeft-L.current,j=at.current.offsetWidth,Q=j+R,pe=at.current.style.minWidth||15;if(j+R>parseInt(pe,10)){if(o.columnResizeMode==="fit"){var Ee=at.current.nextElementSibling,be=Ee.offsetWidth-R;Q>15&&be>15&&wt(Q,be)}else if(o.columnResizeMode==="expand"){var Fe=ht.current.offsetWidth+R+"px",Ue=function(vt){vt&&(vt.style.width=vt.style.minWidth=Fe)};wt(Q),Ue(ht.current),Ze()||(Ue(ln.current),Ue(Bt.current),Ct.current&&Ue(_.findSingle(Ct.current,'[data-pc-name="virtualscroller"] > table > tbody')))}o.onColumnResizeEnd&&o.onColumnResizeEnd({element:at.current,column:He.current,delta:R}),$e()&&H()}bt.current.style.display="none",He.current=null,at.current=null,et.current.setAttribute("data-p-unselectable-text","true"),P(),Cn()},wt=function(R,j){var Q=[],pe=_.index(at.current),Ee=_.find(ht.current,'[data-pc-section="thead"] > tr > th');Ee.forEach(function(Ue){return Q.push(_.getOuterWidth(Ue))}),De(),oo();var be="",Fe='[data-pc-name="datatable"]['.concat(ut.current,'] > [data-pc-section="wrapper"] ').concat(Ze()?"":'> [data-pc-name="virtualscroller"]',' > [data-pc-section="table"]');Q.forEach(function(Ue,ot){var vt=ot===pe?R:j&&ot===pe+1?j:Ue,Nt="width: ".concat(vt,"px !important; max-width: ").concat(vt,"px !important");be=be+` `.concat(Fe,' > [data-pc-section="thead"] > tr > th:nth-child(').concat(ot+1,`), `).concat(Fe,' > [data-pc-section="tbody"] > tr > td:nth-child(').concat(ot+1,`), `).concat(Fe,' > [data-pc-section="tfoot"] > tr > td:nth-child(').concat(ot+1,`) { @@ -1243,14 +1243,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho display: block; } } -`);Mt.current.innerHTML=pe}},sr=function(){Mt.current=_.removeInlineStyle(Mt.current)},De=function(){un.current=_.removeInlineStyle(un.current)},P=function(){$t.current=_.removeInlineStyle($t.current)},xe=function(R){se(),o.onPage?o.onPage(aa(R)):(u(R.first),m(R.rows)),o.onValueChange&&o.onValueChange(la())},rt=function(R){se();var j=R.originalEvent,Q=R.column,pe=R.sortableDisabledFields,Ee=ae(Q,"sortField")||ae(Q,"field"),be=o.defaultSortOrder,Fe,Ue;if(Re.current=ae(Q,"sortable"),Ve.current=ae(Q,"sortFunction"),Pt.current=Ee,o.sortMode==="multiple"){var ot=j.metaKey||j.ctrlKey;Fe=xn(W());var vt=Fe.find(function(nn){return nn.field===Ee});be=vt?Ut(vt.order):be;var Nt={field:Ee,order:be};be?(Fe=ot?Fe:Fe.filter(function(nn){return pe.some(function(Qt){return Qt===nn.field})}),ko(Nt,Fe)):o.removableSort&&su(Nt,Fe),Ue={multiSortMeta:Fe}}else be=nt()===Ee?Ut(ge()):be,o.removableSort&&(Ee=be?Ee:null),Ue={sortField:Ee,sortOrder:be};o.onSort?o.onSort(aa(Ue)):(u(0),x(Ue.sortField),E(Ue.sortOrder),D(Ue.multiSortMeta)),o.onValueChange&&o.onValueChange(la({sortField:Ee,sortOrder:be,multiSortMeta:Fe}))},Ut=function(R){return o.removableSort?o.defaultSortOrder===R?R*-1:0:R*-1},pn=function(R,j,Q,pe){return T.sort(R,j,pe,Q,n&&n.nullSortOrder||jt.nullSortOrder)},ko=function(R,j){var Q=j.findIndex(function(pe){return pe.field===R.field});Q>=0?j[Q]=R:j.push(R)},su=function(R,j){var Q=j.findIndex(function(pe){return pe.field===R.field});Q>=0&&j.splice(Q,1),j=j.length>0?j:null},_l=function(R,j,Q){if(o.groupRowsBy&&o.groupRowsBy===o.sortField){var pe=[{field:o.sortField,order:o.sortOrder||o.defaultSortOrder}];return o.sortField!==j&&pe.push({field:j,order:Q}),cu(R,pe)}var Ee=xn(R);if(Re.current&&Ve.current)Ee=Ve.current({data:R,field:j,order:Q});else{var be=new Map,Fe=T.localeComparator(n&&n.locale||jt.locale),Ue=k9(R),ot;try{for(Ue.s();!(ot=Ue.n()).done;){var vt=ot.value;be.set(vt,T.resolveFieldData(vt,j))}}catch(Nt){Ue.e(Nt)}finally{Ue.f()}Ee.sort(function(Nt,nn){var Qt=be.get(Nt),Zn=be.get(nn);return pn(Qt,Zn,Fe,Q)})}return Ee},cu=function(R){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(o.groupRowsBy&&(re||j.length&&o.groupRowsBy===j[0].field)){var Q=re,pe=j[0];Q||(Q=pe,X(Q)),pe.field!==Q.field&&(j=[Q].concat(xn(j)))}var Ee=xn(R);if(Re.current&&Ve.current){var be=j.find(function(vt){return vt.field===Pt.current}),Fe=Pt.current,Ue=be?be.order:o.defaultSortOrder;Ee=Ve.current({data:R,field:Fe,order:Ue,multiSortMeta:j})}else{var ot=T.localeComparator(n&&n.locale||jt.locale);Ee.sort(function(vt,Nt){return Hw(vt,Nt,j,0,ot)})}return Ee},Hw=function Pe(R,j,Q,pe,Ee){if(!(!Q||!Q[pe])){var be=T.resolveFieldData(R,Q[pe].field),Fe=T.resolveFieldData(j,Q[pe].field);return T.compare(be,Fe,Ee)===0?Q.length-1>pe?Pe(R,j,Q,pe+1,Ee):0:pn(be,Fe,Ee,Q[pe].order)}},Uw=function(R){se(),q(R)},Km=function(R){clearTimeout(_t.current),_t.current=setTimeout(function(){var j=oa(R||Xe);o.onFilter?o.onFilter(aa({filters:j})):(u(0),ye(j)),o.onValueChange&&o.onValueChange(la({filters:j}))},o.filterDelay)},Vw=function(R){var j=function(be){var Fe=rn(be,2),Ue=Fe[0],ot=Fe[1];if(ot.constraints){var vt=ot.constraints.filter(function(Nt){return Nt.value!==null});if(vt.length>0)return[Ue,tr(tr({},ot),{},{constraints:vt})]}else if(ot.value!==null)return[Ue,ot]},Q=function(be){return be!==void 0},pe=Object.entries(R).map(j).filter(Q);return Object.fromEntries(pe)},Kw=function(R,j){if(R){var Q=j?Vw(j):{},pe=fe(),Ee=[],be=Q.global||o.globalFilter,Fe;be&&(Fe=o.globalFilterFields||pe.filter(function(du){return!ae(du,"excludeGlobalFilter")}).map(function(du){return ae(du,"filterField")||ae(du,"field")}));for(var Ue=0;Ue3&&arguments[3]!==void 0?arguments[3]:0,Ee=tr({},Xe),be=Ee[j],Fe=be&&be.operator?be.constraints[pe]:be;Fe=be?{value:R,matchMode:Q||Fe.matchMode}:{value:R,matchMode:Q},o.filterDisplay==="menu"&&be&&be.operator?Ee[j].constraints[pe]=Fe:Ee[j]=Fe,q(Ee),Km(Ee)},Ww=function(){lt(o.rows),q(oa(o.filters)),X(null),Oe({}),o.onPage||(u(o.first),m(o.rows)),o.onSort||(x(o.sortField),E(o.sortOrder),D(o.multiSortMeta)),o.onFilter||ye(o.filters),Jm()},Gw=function(){if(Ct.current){var R=Ze()?Ct.current:_.findSingle(Ct.current,'[data-pc-name="virtualscroller"]');R.scrollTo(0,0)}},Jw=function(){De()},Jm=function(){var R=fe(!0),j=[];R&&(j=R.reduce(function(Q,pe){return Q.push(ae(pe,"columnKey")||ae(pe,"field")),Q},[])),it(j)},Xw=function(R){var j,Q="\uFEFF",pe=fe();R&&R.selectionOnly?j=o.selection||[]:j=[].concat(xn(o.frozenValue||[]),xn(la()||[])),pe.forEach(function(Ee,be){var Fe=[ae(Ee,"field"),ae(Ee,"header"),ae(Ee,"exportHeader"),ae(Ee,"exportable")],Ue=Fe[0],ot=Fe[1],vt=Fe[2],Nt=Fe[3];if(Nt&&Ue){var nn=String(vt||ot||Ue).replace(/"/g,'""').replace(/\n/g,"\u2028");Q=Q+('"'+nn+'"'),bet=>{const n=N9.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ro=e=>(e=e.toLowerCase(),t=>yc(t)===e),bc=e=>t=>typeof t===e,{isArray:kl}=Array,Xi=bc("undefined");function M9(e){return e!==null&&!Xi(e)&&e.constructor!==null&&!Xi(e.constructor)&&Ar(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Xb=ro("ArrayBuffer");function _9(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Xb(e.buffer),t}const L9=bc("string"),Ar=bc("function"),Yb=bc("number"),wc=e=>e!==null&&typeof e=="object",F9=e=>e===!0||e===!1,os=e=>{if(yc(e)!=="object")return!1;const t=Nm(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},j9=ro("Date"),A9=ro("File"),$9=ro("Blob"),z9=ro("FileList"),B9=e=>wc(e)&&Ar(e.pipe),H9=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ar(e.append)&&((t=yc(e))==="formdata"||t==="object"&&Ar(e.toString)&&e.toString()==="[object FormData]"))},U9=ro("URLSearchParams"),[V9,K9,W9,G9]=["ReadableStream","Request","Response","Headers"].map(ro),J9=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function lu(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),kl(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Zb=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Qb=e=>!Xi(e)&&e!==Zb;function op(){const{caseless:e}=Qb(this)&&this||{},t={},n=(r,o)=>{const a=e&&qb(t,o)||o;os(t[a])&&os(r)?t[a]=op(t[a],r):os(r)?t[a]=op({},r):kl(r)?t[a]=r.slice():t[a]=r};for(let r=0,o=arguments.length;r(lu(t,(o,a)=>{n&&Ar(o)?e[a]=Jb(o,n):e[a]=o},{allOwnKeys:r}),e),Y9=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),q9=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Z9=(e,t,n,r)=>{let o,a,l;const i={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)l=o[a],(!r||r(l,e,t))&&!i[l]&&(t[l]=e[l],i[l]=!0);e=n!==!1&&Nm(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Q9=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},eP=e=>{if(!e)return null;if(kl(e))return e;let t=e.length;if(!Yb(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},tP=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Nm(Uint8Array)),nP=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},rP=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},oP=ro("HTMLFormElement"),aP=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Lh=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),lP=ro("RegExp"),ew=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};lu(n,(o,a)=>{let l;(l=t(o,a,e))!==!1&&(r[a]=l||o)}),Object.defineProperties(e,r)},iP=e=>{ew(e,(t,n)=>{if(Ar(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ar(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},uP=(e,t)=>{const n={},r=o=>{o.forEach(a=>{n[a]=!0})};return kl(e)?r(e):r(String(e).split(t)),n},sP=()=>{},cP=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,pd="abcdefghijklmnopqrstuvwxyz",Fh="0123456789",tw={DIGIT:Fh,ALPHA:pd,ALPHA_DIGIT:pd+pd.toUpperCase()+Fh},dP=(e=16,t=tw.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function fP(e){return!!(e&&Ar(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const pP=e=>{const t=new Array(10),n=(r,o)=>{if(wc(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const a=kl(r)?[]:{};return lu(r,(l,i)=>{const u=n(l,o+1);!Xi(u)&&(a[i]=u)}),t[o]=void 0,a}}return r};return n(e,0)},mP=ro("AsyncFunction"),vP=e=>e&&(wc(e)||Ar(e))&&Ar(e.then)&&Ar(e.catch),ne={isArray:kl,isArrayBuffer:Xb,isBuffer:M9,isFormData:H9,isArrayBufferView:_9,isString:L9,isNumber:Yb,isBoolean:F9,isObject:wc,isPlainObject:os,isReadableStream:V9,isRequest:K9,isResponse:W9,isHeaders:G9,isUndefined:Xi,isDate:j9,isFile:A9,isBlob:$9,isRegExp:lP,isFunction:Ar,isStream:B9,isURLSearchParams:U9,isTypedArray:tP,isFileList:z9,forEach:lu,merge:op,extend:X9,trim:J9,stripBOM:Y9,inherits:q9,toFlatObject:Z9,kindOf:yc,kindOfTest:ro,endsWith:Q9,toArray:eP,forEachEntry:nP,matchAll:rP,isHTMLForm:oP,hasOwnProperty:Lh,hasOwnProp:Lh,reduceDescriptors:ew,freezeMethods:iP,toObjectSet:uP,toCamelCase:aP,noop:sP,toFiniteNumber:cP,findKey:qb,global:Zb,isContextDefined:Qb,ALPHABET:tw,generateString:dP,isSpecCompliantForm:fP,toJSONObject:pP,isAsyncFn:mP,isThenable:vP};function Et(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}ne.inherits(Et,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ne.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const nw=Et.prototype,rw={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{rw[e]={value:e}});Object.defineProperties(Et,rw);Object.defineProperty(nw,"isAxiosError",{value:!0});Et.from=(e,t,n,r,o,a)=>{const l=Object.create(nw);return ne.toFlatObject(e,l,function(u){return u!==Error.prototype},i=>i!=="isAxiosError"),Et.call(l,e.message,t,n,r,o),l.cause=e,l.name=e.name,a&&Object.assign(l,a),l};const gP=null;function ap(e){return ne.isPlainObject(e)||ne.isArray(e)}function ow(e){return ne.endsWith(e,"[]")?e.slice(0,-2):e}function jh(e,t,n){return e?e.concat(t).map(function(o,a){return o=ow(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function hP(e){return ne.isArray(e)&&!e.some(ap)}const yP=ne.toFlatObject(ne,{},null,function(t){return/^is[A-Z]/.test(t)});function Sc(e,t,n){if(!ne.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ne.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,x){return!ne.isUndefined(x[g])});const r=n.metaTokens,o=n.visitor||d,a=n.dots,l=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&ne.isSpecCompliantForm(t);if(!ne.isFunction(o))throw new TypeError("visitor must be a function");function c(b){if(b===null)return"";if(ne.isDate(b))return b.toISOString();if(!u&&ne.isBlob(b))throw new Et("Blob is not supported. Use a Buffer instead.");return ne.isArrayBuffer(b)||ne.isTypedArray(b)?u&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function d(b,g,x){let h=b;if(b&&!x&&typeof b=="object"){if(ne.endsWith(g,"{}"))g=r?g:g.slice(0,-2),b=JSON.stringify(b);else if(ne.isArray(b)&&hP(b)||(ne.isFileList(b)||ne.endsWith(g,"[]"))&&(h=ne.toArray(b)))return g=ow(g),h.forEach(function(v,E){!(ne.isUndefined(v)||v===null)&&t.append(l===!0?jh([g],E,a):l===null?g:g+"[]",c(v))}),!1}return ap(b)?!0:(t.append(jh(x,g,a),c(b)),!1)}const f=[],m=Object.assign(yP,{defaultVisitor:d,convertValue:c,isVisitable:ap});function y(b,g){if(!ne.isUndefined(b)){if(f.indexOf(b)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(b),ne.forEach(b,function(h,p){(!(ne.isUndefined(h)||h===null)&&o.call(t,h,ne.isString(p)?p.trim():p,g,m))===!0&&y(h,g?g.concat(p):[p])}),f.pop()}}if(!ne.isObject(e))throw new TypeError("data must be an object");return y(e),t}function Ah(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Mm(e,t){this._pairs=[],e&&Sc(e,this,t)}const aw=Mm.prototype;aw.append=function(t,n){this._pairs.push([t,n])};aw.toString=function(t){const n=t?function(r){return t.call(this,r,Ah)}:Ah;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function bP(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function lw(e,t,n){if(!t)return e;const r=n&&n.encode||bP,o=n&&n.serialize;let a;if(o?a=o(t,n):a=ne.isURLSearchParams(t)?t.toString():new Mm(t,n).toString(r),a){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class $h{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ne.forEach(this.handlers,function(r){r!==null&&t(r)})}}const iw={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},wP=typeof URLSearchParams<"u"?URLSearchParams:Mm,SP=typeof FormData<"u"?FormData:null,CP=typeof Blob<"u"?Blob:null,EP={isBrowser:!0,classes:{URLSearchParams:wP,FormData:SP,Blob:CP},protocols:["http","https","file","blob","url","data"]},_m=typeof window<"u"&&typeof document<"u",xP=(e=>_m&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),PP=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",OP=_m&&window.location.href||"http://localhost",RP=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:_m,hasStandardBrowserEnv:xP,hasStandardBrowserWebWorkerEnv:PP,origin:OP},Symbol.toStringTag,{value:"Module"})),Zr={...RP,...EP};function IP(e,t){return Sc(e,new Zr.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,a){return Zr.isNode&&ne.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function TP(e){return ne.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function kP(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r=n.length;return l=!l&&ne.isArray(o)?o.length:l,u?(ne.hasOwnProp(o,l)?o[l]=[o[l],r]:o[l]=r,!i):((!o[l]||!ne.isObject(o[l]))&&(o[l]=[]),t(n,r,o[l],a)&&ne.isArray(o[l])&&(o[l]=kP(o[l])),!i)}if(ne.isFormData(e)&&ne.isFunction(e.entries)){const n={};return ne.forEachEntry(e,(r,o)=>{t(TP(r),o,n,0)}),n}return null}function DP(e,t,n){if(ne.isString(e))try{return(t||JSON.parse)(e),ne.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Lm={transitional:iw,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,a=ne.isObject(t);if(a&&ne.isHTMLForm(t)&&(t=new FormData(t)),ne.isFormData(t))return o?JSON.stringify(uw(t)):t;if(ne.isArrayBuffer(t)||ne.isBuffer(t)||ne.isStream(t)||ne.isFile(t)||ne.isBlob(t)||ne.isReadableStream(t))return t;if(ne.isArrayBufferView(t))return t.buffer;if(ne.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return IP(t,this.formSerializer).toString();if((i=ne.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Sc(i?{"files[]":t}:t,u&&new u,this.formSerializer)}}return a||o?(n.setContentType("application/json",!1),DP(t)):t}],transformResponse:[function(t){const n=this.transitional||Lm.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(ne.isResponse(t)||ne.isReadableStream(t))return t;if(t&&ne.isString(t)&&(r&&!this.responseType||o)){const l=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(i){if(l)throw i.name==="SyntaxError"?Et.from(i,Et.ERR_BAD_RESPONSE,this,null,this.response):i}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Zr.classes.FormData,Blob:Zr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ne.forEach(["delete","get","head","post","put","patch"],e=>{Lm.headers[e]={}});const Fm=Lm,NP=ne.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),MP=e=>{const t={};let n,r,o;return e&&e.split(` +`);Mt.current.innerHTML=pe}},sr=function(){Mt.current=_.removeInlineStyle(Mt.current)},De=function(){un.current=_.removeInlineStyle(un.current)},P=function(){$t.current=_.removeInlineStyle($t.current)},xe=function(R){se(),o.onPage?o.onPage(aa(R)):(u(R.first),m(R.rows)),o.onValueChange&&o.onValueChange(la())},rt=function(R){se();var j=R.originalEvent,Q=R.column,pe=R.sortableDisabledFields,Ee=ae(Q,"sortField")||ae(Q,"field"),be=o.defaultSortOrder,Fe,Ue;if(Re.current=ae(Q,"sortable"),Ve.current=ae(Q,"sortFunction"),Pt.current=Ee,o.sortMode==="multiple"){var ot=j.metaKey||j.ctrlKey;Fe=xn(W());var vt=Fe.find(function(nn){return nn.field===Ee});be=vt?Ut(vt.order):be;var Nt={field:Ee,order:be};be?(Fe=ot?Fe:Fe.filter(function(nn){return pe.some(function(Qt){return Qt===nn.field})}),ko(Nt,Fe)):o.removableSort&&su(Nt,Fe),Ue={multiSortMeta:Fe}}else be=nt()===Ee?Ut(ge()):be,o.removableSort&&(Ee=be?Ee:null),Ue={sortField:Ee,sortOrder:be};o.onSort?o.onSort(aa(Ue)):(u(0),x(Ue.sortField),E(Ue.sortOrder),D(Ue.multiSortMeta)),o.onValueChange&&o.onValueChange(la({sortField:Ee,sortOrder:be,multiSortMeta:Fe}))},Ut=function(R){return o.removableSort?o.defaultSortOrder===R?R*-1:0:R*-1},pn=function(R,j,Q,pe){return T.sort(R,j,pe,Q,n&&n.nullSortOrder||jt.nullSortOrder)},ko=function(R,j){var Q=j.findIndex(function(pe){return pe.field===R.field});Q>=0?j[Q]=R:j.push(R)},su=function(R,j){var Q=j.findIndex(function(pe){return pe.field===R.field});Q>=0&&j.splice(Q,1),j=j.length>0?j:null},_l=function(R,j,Q){if(o.groupRowsBy&&o.groupRowsBy===o.sortField){var pe=[{field:o.sortField,order:o.sortOrder||o.defaultSortOrder}];return o.sortField!==j&&pe.push({field:j,order:Q}),cu(R,pe)}var Ee=xn(R);if(Re.current&&Ve.current)Ee=Ve.current({data:R,field:j,order:Q});else{var be=new Map,Fe=T.localeComparator(n&&n.locale||jt.locale),Ue=k9(R),ot;try{for(Ue.s();!(ot=Ue.n()).done;){var vt=ot.value;be.set(vt,T.resolveFieldData(vt,j))}}catch(Nt){Ue.e(Nt)}finally{Ue.f()}Ee.sort(function(Nt,nn){var Qt=be.get(Nt),Zn=be.get(nn);return pn(Qt,Zn,Fe,Q)})}return Ee},cu=function(R){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(o.groupRowsBy&&(re||j.length&&o.groupRowsBy===j[0].field)){var Q=re,pe=j[0];Q||(Q=pe,Y(Q)),pe.field!==Q.field&&(j=[Q].concat(xn(j)))}var Ee=xn(R);if(Re.current&&Ve.current){var be=j.find(function(vt){return vt.field===Pt.current}),Fe=Pt.current,Ue=be?be.order:o.defaultSortOrder;Ee=Ve.current({data:R,field:Fe,order:Ue,multiSortMeta:j})}else{var ot=T.localeComparator(n&&n.locale||jt.locale);Ee.sort(function(vt,Nt){return Hw(vt,Nt,j,0,ot)})}return Ee},Hw=function Pe(R,j,Q,pe,Ee){if(!(!Q||!Q[pe])){var be=T.resolveFieldData(R,Q[pe].field),Fe=T.resolveFieldData(j,Q[pe].field);return T.compare(be,Fe,Ee)===0?Q.length-1>pe?Pe(R,j,Q,pe+1,Ee):0:pn(be,Fe,Ee,Q[pe].order)}},Uw=function(R){se(),q(R)},Km=function(R){clearTimeout(_t.current),_t.current=setTimeout(function(){var j=oa(R||Xe);o.onFilter?o.onFilter(aa({filters:j})):(u(0),ye(j)),o.onValueChange&&o.onValueChange(la({filters:j}))},o.filterDelay)},Vw=function(R){var j=function(be){var Fe=rn(be,2),Ue=Fe[0],ot=Fe[1];if(ot.constraints){var vt=ot.constraints.filter(function(Nt){return Nt.value!==null});if(vt.length>0)return[Ue,tr(tr({},ot),{},{constraints:vt})]}else if(ot.value!==null)return[Ue,ot]},Q=function(be){return be!==void 0},pe=Object.entries(R).map(j).filter(Q);return Object.fromEntries(pe)},Kw=function(R,j){if(R){var Q=j?Vw(j):{},pe=fe(),Ee=[],be=Q.global||o.globalFilter,Fe;be&&(Fe=o.globalFilterFields||pe.filter(function(du){return!ae(du,"excludeGlobalFilter")}).map(function(du){return ae(du,"filterField")||ae(du,"field")}));for(var Ue=0;Ue3&&arguments[3]!==void 0?arguments[3]:0,Ee=tr({},Xe),be=Ee[j],Fe=be&&be.operator?be.constraints[pe]:be;Fe=be?{value:R,matchMode:Q||Fe.matchMode}:{value:R,matchMode:Q},o.filterDisplay==="menu"&&be&&be.operator?Ee[j].constraints[pe]=Fe:Ee[j]=Fe,q(Ee),Km(Ee)},Ww=function(){lt(o.rows),q(oa(o.filters)),Y(null),Oe({}),o.onPage||(u(o.first),m(o.rows)),o.onSort||(x(o.sortField),E(o.sortOrder),D(o.multiSortMeta)),o.onFilter||ye(o.filters),Jm()},Gw=function(){if(Ct.current){var R=Ze()?Ct.current:_.findSingle(Ct.current,'[data-pc-name="virtualscroller"]');R.scrollTo(0,0)}},Jw=function(){De()},Jm=function(){var R=fe(!0),j=[];R&&(j=R.reduce(function(Q,pe){return Q.push(ae(pe,"columnKey")||ae(pe,"field")),Q},[])),it(j)},Xw=function(R){var j,Q="\uFEFF",pe=fe();R&&R.selectionOnly?j=o.selection||[]:j=[].concat(xn(o.frozenValue||[]),xn(la()||[])),pe.forEach(function(Ee,be){var Fe=[ae(Ee,"field"),ae(Ee,"header"),ae(Ee,"exportHeader"),ae(Ee,"exportable")],Ue=Fe[0],ot=Fe[1],vt=Fe[2],Nt=Fe[3];if(Nt&&Ue){var nn=String(vt||ot||Ue).replace(/"/g,'""').replace(/\n/g,"\u2028");Q=Q+('"'+nn+'"'),bet=>{const n=N9.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ro=e=>(e=e.toLowerCase(),t=>yc(t)===e),bc=e=>t=>typeof t===e,{isArray:kl}=Array,Xi=bc("undefined");function M9(e){return e!==null&&!Xi(e)&&e.constructor!==null&&!Xi(e.constructor)&&Ar(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Xb=ro("ArrayBuffer");function _9(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Xb(e.buffer),t}const L9=bc("string"),Ar=bc("function"),Yb=bc("number"),wc=e=>e!==null&&typeof e=="object",F9=e=>e===!0||e===!1,os=e=>{if(yc(e)!=="object")return!1;const t=Nm(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},j9=ro("Date"),A9=ro("File"),$9=ro("Blob"),z9=ro("FileList"),B9=e=>wc(e)&&Ar(e.pipe),H9=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ar(e.append)&&((t=yc(e))==="formdata"||t==="object"&&Ar(e.toString)&&e.toString()==="[object FormData]"))},U9=ro("URLSearchParams"),[V9,K9,W9,G9]=["ReadableStream","Request","Response","Headers"].map(ro),J9=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function lu(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),kl(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Zb=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Qb=e=>!Xi(e)&&e!==Zb;function op(){const{caseless:e}=Qb(this)&&this||{},t={},n=(r,o)=>{const a=e&&qb(t,o)||o;os(t[a])&&os(r)?t[a]=op(t[a],r):os(r)?t[a]=op({},r):kl(r)?t[a]=r.slice():t[a]=r};for(let r=0,o=arguments.length;r(lu(t,(o,a)=>{n&&Ar(o)?e[a]=Jb(o,n):e[a]=o},{allOwnKeys:r}),e),Y9=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),q9=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Z9=(e,t,n,r)=>{let o,a,l;const i={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)l=o[a],(!r||r(l,e,t))&&!i[l]&&(t[l]=e[l],i[l]=!0);e=n!==!1&&Nm(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Q9=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},eP=e=>{if(!e)return null;if(kl(e))return e;let t=e.length;if(!Yb(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},tP=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Nm(Uint8Array)),nP=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},rP=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},oP=ro("HTMLFormElement"),aP=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Lh=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),lP=ro("RegExp"),ew=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};lu(n,(o,a)=>{let l;(l=t(o,a,e))!==!1&&(r[a]=l||o)}),Object.defineProperties(e,r)},iP=e=>{ew(e,(t,n)=>{if(Ar(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ar(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},uP=(e,t)=>{const n={},r=o=>{o.forEach(a=>{n[a]=!0})};return kl(e)?r(e):r(String(e).split(t)),n},sP=()=>{},cP=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,pd="abcdefghijklmnopqrstuvwxyz",Fh="0123456789",tw={DIGIT:Fh,ALPHA:pd,ALPHA_DIGIT:pd+pd.toUpperCase()+Fh},dP=(e=16,t=tw.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function fP(e){return!!(e&&Ar(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const pP=e=>{const t=new Array(10),n=(r,o)=>{if(wc(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const a=kl(r)?[]:{};return lu(r,(l,i)=>{const u=n(l,o+1);!Xi(u)&&(a[i]=u)}),t[o]=void 0,a}}return r};return n(e,0)},mP=ro("AsyncFunction"),vP=e=>e&&(wc(e)||Ar(e))&&Ar(e.then)&&Ar(e.catch),ne={isArray:kl,isArrayBuffer:Xb,isBuffer:M9,isFormData:H9,isArrayBufferView:_9,isString:L9,isNumber:Yb,isBoolean:F9,isObject:wc,isPlainObject:os,isReadableStream:V9,isRequest:K9,isResponse:W9,isHeaders:G9,isUndefined:Xi,isDate:j9,isFile:A9,isBlob:$9,isRegExp:lP,isFunction:Ar,isStream:B9,isURLSearchParams:U9,isTypedArray:tP,isFileList:z9,forEach:lu,merge:op,extend:X9,trim:J9,stripBOM:Y9,inherits:q9,toFlatObject:Z9,kindOf:yc,kindOfTest:ro,endsWith:Q9,toArray:eP,forEachEntry:nP,matchAll:rP,isHTMLForm:oP,hasOwnProperty:Lh,hasOwnProp:Lh,reduceDescriptors:ew,freezeMethods:iP,toObjectSet:uP,toCamelCase:aP,noop:sP,toFiniteNumber:cP,findKey:qb,global:Zb,isContextDefined:Qb,ALPHABET:tw,generateString:dP,isSpecCompliantForm:fP,toJSONObject:pP,isAsyncFn:mP,isThenable:vP};function Et(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}ne.inherits(Et,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ne.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const nw=Et.prototype,rw={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{rw[e]={value:e}});Object.defineProperties(Et,rw);Object.defineProperty(nw,"isAxiosError",{value:!0});Et.from=(e,t,n,r,o,a)=>{const l=Object.create(nw);return ne.toFlatObject(e,l,function(u){return u!==Error.prototype},i=>i!=="isAxiosError"),Et.call(l,e.message,t,n,r,o),l.cause=e,l.name=e.name,a&&Object.assign(l,a),l};const gP=null;function ap(e){return ne.isPlainObject(e)||ne.isArray(e)}function ow(e){return ne.endsWith(e,"[]")?e.slice(0,-2):e}function jh(e,t,n){return e?e.concat(t).map(function(o,a){return o=ow(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function hP(e){return ne.isArray(e)&&!e.some(ap)}const yP=ne.toFlatObject(ne,{},null,function(t){return/^is[A-Z]/.test(t)});function Sc(e,t,n){if(!ne.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ne.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,x){return!ne.isUndefined(x[g])});const r=n.metaTokens,o=n.visitor||d,a=n.dots,l=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&ne.isSpecCompliantForm(t);if(!ne.isFunction(o))throw new TypeError("visitor must be a function");function c(b){if(b===null)return"";if(ne.isDate(b))return b.toISOString();if(!u&&ne.isBlob(b))throw new Et("Blob is not supported. Use a Buffer instead.");return ne.isArrayBuffer(b)||ne.isTypedArray(b)?u&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function d(b,g,x){let h=b;if(b&&!x&&typeof b=="object"){if(ne.endsWith(g,"{}"))g=r?g:g.slice(0,-2),b=JSON.stringify(b);else if(ne.isArray(b)&&hP(b)||(ne.isFileList(b)||ne.endsWith(g,"[]"))&&(h=ne.toArray(b)))return g=ow(g),h.forEach(function(v,E){!(ne.isUndefined(v)||v===null)&&t.append(l===!0?jh([g],E,a):l===null?g:g+"[]",c(v))}),!1}return ap(b)?!0:(t.append(jh(x,g,a),c(b)),!1)}const f=[],m=Object.assign(yP,{defaultVisitor:d,convertValue:c,isVisitable:ap});function y(b,g){if(!ne.isUndefined(b)){if(f.indexOf(b)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(b),ne.forEach(b,function(h,p){(!(ne.isUndefined(h)||h===null)&&o.call(t,h,ne.isString(p)?p.trim():p,g,m))===!0&&y(h,g?g.concat(p):[p])}),f.pop()}}if(!ne.isObject(e))throw new TypeError("data must be an object");return y(e),t}function Ah(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Mm(e,t){this._pairs=[],e&&Sc(e,this,t)}const aw=Mm.prototype;aw.append=function(t,n){this._pairs.push([t,n])};aw.toString=function(t){const n=t?function(r){return t.call(this,r,Ah)}:Ah;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function bP(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function lw(e,t,n){if(!t)return e;const r=n&&n.encode||bP,o=n&&n.serialize;let a;if(o?a=o(t,n):a=ne.isURLSearchParams(t)?t.toString():new Mm(t,n).toString(r),a){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class $h{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ne.forEach(this.handlers,function(r){r!==null&&t(r)})}}const iw={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},wP=typeof URLSearchParams<"u"?URLSearchParams:Mm,SP=typeof FormData<"u"?FormData:null,CP=typeof Blob<"u"?Blob:null,EP={isBrowser:!0,classes:{URLSearchParams:wP,FormData:SP,Blob:CP},protocols:["http","https","file","blob","url","data"]},_m=typeof window<"u"&&typeof document<"u",xP=(e=>_m&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),PP=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",OP=_m&&window.location.href||"http://localhost",RP=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:_m,hasStandardBrowserEnv:xP,hasStandardBrowserWebWorkerEnv:PP,origin:OP},Symbol.toStringTag,{value:"Module"})),Zr={...RP,...EP};function IP(e,t){return Sc(e,new Zr.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,a){return Zr.isNode&&ne.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function TP(e){return ne.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function kP(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r=n.length;return l=!l&&ne.isArray(o)?o.length:l,u?(ne.hasOwnProp(o,l)?o[l]=[o[l],r]:o[l]=r,!i):((!o[l]||!ne.isObject(o[l]))&&(o[l]=[]),t(n,r,o[l],a)&&ne.isArray(o[l])&&(o[l]=kP(o[l])),!i)}if(ne.isFormData(e)&&ne.isFunction(e.entries)){const n={};return ne.forEachEntry(e,(r,o)=>{t(TP(r),o,n,0)}),n}return null}function DP(e,t,n){if(ne.isString(e))try{return(t||JSON.parse)(e),ne.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Lm={transitional:iw,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,a=ne.isObject(t);if(a&&ne.isHTMLForm(t)&&(t=new FormData(t)),ne.isFormData(t))return o?JSON.stringify(uw(t)):t;if(ne.isArrayBuffer(t)||ne.isBuffer(t)||ne.isStream(t)||ne.isFile(t)||ne.isBlob(t)||ne.isReadableStream(t))return t;if(ne.isArrayBufferView(t))return t.buffer;if(ne.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return IP(t,this.formSerializer).toString();if((i=ne.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Sc(i?{"files[]":t}:t,u&&new u,this.formSerializer)}}return a||o?(n.setContentType("application/json",!1),DP(t)):t}],transformResponse:[function(t){const n=this.transitional||Lm.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(ne.isResponse(t)||ne.isReadableStream(t))return t;if(t&&ne.isString(t)&&(r&&!this.responseType||o)){const l=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(i){if(l)throw i.name==="SyntaxError"?Et.from(i,Et.ERR_BAD_RESPONSE,this,null,this.response):i}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Zr.classes.FormData,Blob:Zr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ne.forEach(["delete","get","head","post","put","patch"],e=>{Lm.headers[e]={}});const Fm=Lm,NP=ne.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),MP=e=>{const t={};let n,r,o;return e&&e.split(` `).forEach(function(l){o=l.indexOf(":"),n=l.substring(0,o).trim().toLowerCase(),r=l.substring(o+1).trim(),!(!n||t[n]&&NP[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},zh=Symbol("internals");function Yl(e){return e&&String(e).trim().toLowerCase()}function as(e){return e===!1||e==null?e:ne.isArray(e)?e.map(as):String(e)}function _P(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const LP=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function md(e,t,n,r,o){if(ne.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!ne.isString(t)){if(ne.isString(r))return t.indexOf(r)!==-1;if(ne.isRegExp(r))return r.test(t)}}function FP(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function jP(e,t){const n=ne.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,a,l){return this[r].call(this,t,o,a,l)},configurable:!0})})}class Cc{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function a(i,u,c){const d=Yl(u);if(!d)throw new Error("header name must be a non-empty string");const f=ne.findKey(o,d);(!f||o[f]===void 0||c===!0||c===void 0&&o[f]!==!1)&&(o[f||u]=as(i))}const l=(i,u)=>ne.forEach(i,(c,d)=>a(c,d,u));if(ne.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(ne.isString(t)&&(t=t.trim())&&!LP(t))l(MP(t),n);else if(ne.isHeaders(t))for(const[i,u]of t.entries())a(u,i,r);else t!=null&&a(n,t,r);return this}get(t,n){if(t=Yl(t),t){const r=ne.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return _P(o);if(ne.isFunction(n))return n.call(this,o,r);if(ne.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Yl(t),t){const r=ne.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||md(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function a(l){if(l=Yl(l),l){const i=ne.findKey(r,l);i&&(!n||md(r,r[i],i,n))&&(delete r[i],o=!0)}}return ne.isArray(t)?t.forEach(a):a(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const a=n[r];(!t||md(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const n=this,r={};return ne.forEach(this,(o,a)=>{const l=ne.findKey(r,a);if(l){n[l]=as(o),delete n[a];return}const i=t?FP(a):String(a).trim();i!==a&&delete n[a],n[i]=as(o),r[i]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ne.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&ne.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[zh]=this[zh]={accessors:{}}).accessors,o=this.prototype;function a(l){const i=Yl(l);r[i]||(jP(o,l),r[i]=!0)}return ne.isArray(t)?t.forEach(a):a(t),this}}Cc.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ne.reduceDescriptors(Cc.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ne.freezeMethods(Cc);const Qr=Cc;function vd(e,t){const n=this||Fm,r=t||n,o=Qr.from(r.headers);let a=r.data;return ne.forEach(e,function(i){a=i.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function sw(e){return!!(e&&e.__CANCEL__)}function Dl(e,t,n){Et.call(this,e??"canceled",Et.ERR_CANCELED,t,n),this.name="CanceledError"}ne.inherits(Dl,Et,{__CANCEL__:!0});function cw(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Et("Request failed with status code "+n.status,[Et.ERR_BAD_REQUEST,Et.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function AP(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function $P(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,a=0,l;return t=t!==void 0?t:1e3,function(u){const c=Date.now(),d=r[a];l||(l=c),n[o]=u,r[o]=c;let f=a,m=0;for(;f!==o;)m+=n[f++],f=f%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),c-lr)return o&&(clearTimeout(o),o=null),n=i,e.apply(null,arguments);o||(o=setTimeout(()=>(o=null,n=Date.now(),e.apply(null,arguments)),r-(i-n)))}}const Us=(e,t,n=3)=>{let r=0;const o=$P(50,250);return zP(a=>{const l=a.loaded,i=a.lengthComputable?a.total:void 0,u=l-r,c=o(u),d=l<=i;r=l;const f={loaded:l,total:i,progress:i?l/i:void 0,bytes:u,rate:c||void 0,estimated:c&&i&&d?(i-l)/c:void 0,event:a,lengthComputable:i!=null};f[t?"download":"upload"]=!0,e(f)},n)},BP=Zr.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(a){let l=a;return t&&(n.setAttribute("href",l),l=n.href),n.setAttribute("href",l),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(l){const i=ne.isString(l)?o(l):l;return i.protocol===r.protocol&&i.host===r.host}}():function(){return function(){return!0}}(),HP=Zr.hasStandardBrowserEnv?{write(e,t,n,r,o,a){const l=[e+"="+encodeURIComponent(t)];ne.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),ne.isString(r)&&l.push("path="+r),ne.isString(o)&&l.push("domain="+o),a===!0&&l.push("secure"),document.cookie=l.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function UP(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function VP(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function dw(e,t){return e&&!UP(t)?VP(e,t):t}const Bh=e=>e instanceof Qr?{...e}:e;function ka(e,t){t=t||{};const n={};function r(c,d,f){return ne.isPlainObject(c)&&ne.isPlainObject(d)?ne.merge.call({caseless:f},c,d):ne.isPlainObject(d)?ne.merge({},d):ne.isArray(d)?d.slice():d}function o(c,d,f){if(ne.isUndefined(d)){if(!ne.isUndefined(c))return r(void 0,c,f)}else return r(c,d,f)}function a(c,d){if(!ne.isUndefined(d))return r(void 0,d)}function l(c,d){if(ne.isUndefined(d)){if(!ne.isUndefined(c))return r(void 0,c)}else return r(void 0,d)}function i(c,d,f){if(f in t)return r(c,d);if(f in e)return r(void 0,c)}const u={url:a,method:a,data:a,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:i,headers:(c,d)=>o(Bh(c),Bh(d),!0)};return ne.forEach(Object.keys(Object.assign({},e,t)),function(d){const f=u[d]||o,m=f(e[d],t[d],d);ne.isUndefined(m)&&f!==i||(n[d]=m)}),n}const fw=e=>{const t=ka({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:a,headers:l,auth:i}=t;t.headers=l=Qr.from(l),t.url=lw(dw(t.baseURL,t.url),e.params,e.paramsSerializer),i&&l.set("Authorization","Basic "+btoa((i.username||"")+":"+(i.password?unescape(encodeURIComponent(i.password)):"")));let u;if(ne.isFormData(n)){if(Zr.hasStandardBrowserEnv||Zr.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((u=l.getContentType())!==!1){const[c,...d]=u?u.split(";").map(f=>f.trim()).filter(Boolean):[];l.setContentType([c||"multipart/form-data",...d].join("; "))}}if(Zr.hasStandardBrowserEnv&&(r&&ne.isFunction(r)&&(r=r(t)),r||r!==!1&&BP(t.url))){const c=o&&a&&HP.read(a);c&&l.set(o,c)}return t},KP=typeof XMLHttpRequest<"u",WP=KP&&function(e){return new Promise(function(n,r){const o=fw(e);let a=o.data;const l=Qr.from(o.headers).normalize();let{responseType:i}=o,u;function c(){o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let d=new XMLHttpRequest;d.open(o.method.toUpperCase(),o.url,!0),d.timeout=o.timeout;function f(){if(!d)return;const y=Qr.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),g={data:!i||i==="text"||i==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:y,config:e,request:d};cw(function(h){n(h),c()},function(h){r(h),c()},g),d=null}"onloadend"in d?d.onloadend=f:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(f)},d.onabort=function(){d&&(r(new Et("Request aborted",Et.ECONNABORTED,o,d)),d=null)},d.onerror=function(){r(new Et("Network Error",Et.ERR_NETWORK,o,d)),d=null},d.ontimeout=function(){let b=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const g=o.transitional||iw;o.timeoutErrorMessage&&(b=o.timeoutErrorMessage),r(new Et(b,g.clarifyTimeoutError?Et.ETIMEDOUT:Et.ECONNABORTED,o,d)),d=null},a===void 0&&l.setContentType(null),"setRequestHeader"in d&&ne.forEach(l.toJSON(),function(b,g){d.setRequestHeader(g,b)}),ne.isUndefined(o.withCredentials)||(d.withCredentials=!!o.withCredentials),i&&i!=="json"&&(d.responseType=o.responseType),typeof o.onDownloadProgress=="function"&&d.addEventListener("progress",Us(o.onDownloadProgress,!0)),typeof o.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",Us(o.onUploadProgress)),(o.cancelToken||o.signal)&&(u=y=>{d&&(r(!y||y.type?new Dl(null,e,d):y),d.abort(),d=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const m=AP(o.url);if(m&&Zr.protocols.indexOf(m)===-1){r(new Et("Unsupported protocol "+m+":",Et.ERR_BAD_REQUEST,e));return}d.send(a||null)})},GP=(e,t)=>{let n=new AbortController,r;const o=function(u){if(!r){r=!0,l();const c=u instanceof Error?u:this.reason;n.abort(c instanceof Et?c:new Dl(c instanceof Error?c.message:c))}};let a=t&&setTimeout(()=>{o(new Et(`timeout ${t} of ms exceeded`,Et.ETIMEDOUT))},t);const l=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(u=>{u&&(u.removeEventListener?u.removeEventListener("abort",o):u.unsubscribe(o))}),e=null)};e.forEach(u=>u&&u.addEventListener&&u.addEventListener("abort",o));const{signal:i}=n;return i.unsubscribe=l,[i,()=>{a&&clearTimeout(a),a=null}]},JP=function*(e,t){let n=e.byteLength;if(!t||n{const a=XP(e,t,o);let l=0;return new ReadableStream({type:"bytes",async pull(i){const{done:u,value:c}=await a.next();if(u){i.close(),r();return}let d=c.byteLength;n&&n(l+=d),i.enqueue(new Uint8Array(c))},cancel(i){return r(i),a.return()}},{highWaterMark:2})},Uh=(e,t)=>{const n=e!=null;return r=>setTimeout(()=>t({lengthComputable:n,total:e,loaded:r}))},Ec=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",pw=Ec&&typeof ReadableStream=="function",lp=Ec&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),YP=pw&&(()=>{let e=!1;const t=new Request(Zr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),Vh=64*1024,ip=pw&&!!(()=>{try{return ne.isReadableStream(new Response("").body)}catch{}})(),Vs={stream:ip&&(e=>e.body)};Ec&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Vs[t]&&(Vs[t]=ne.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Et(`Response type '${t}' is not supported`,Et.ERR_NOT_SUPPORT,r)})})})(new Response);const qP=async e=>{if(e==null)return 0;if(ne.isBlob(e))return e.size;if(ne.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(ne.isArrayBufferView(e))return e.byteLength;if(ne.isURLSearchParams(e)&&(e=e+""),ne.isString(e))return(await lp(e)).byteLength},ZP=async(e,t)=>{const n=ne.toFiniteNumber(e.getContentLength());return n??qP(t)},QP=Ec&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:a,timeout:l,onDownloadProgress:i,onUploadProgress:u,responseType:c,headers:d,withCredentials:f="same-origin",fetchOptions:m}=fw(e);c=c?(c+"").toLowerCase():"text";let[y,b]=o||a||l?GP([o,a],l):[],g,x;const h=()=>{!g&&setTimeout(()=>{y&&y.unsubscribe()}),g=!0};let p;try{if(u&&YP&&n!=="get"&&n!=="head"&&(p=await ZP(d,r))!==0){let k=new Request(t,{method:"POST",body:r,duplex:"half"}),w;ne.isFormData(r)&&(w=k.headers.get("content-type"))&&d.setContentType(w),k.body&&(r=Hh(k.body,Vh,Uh(p,Us(u)),null,lp))}ne.isString(f)||(f=f?"cors":"omit"),x=new Request(t,{...m,signal:y,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",withCredentials:f});let v=await fetch(x);const E=ip&&(c==="stream"||c==="response");if(ip&&(i||E)){const k={};["status","statusText","headers"].forEach(D=>{k[D]=v[D]});const w=ne.toFiniteNumber(v.headers.get("content-length"));v=new Response(Hh(v.body,Vh,i&&Uh(w,Us(i,!0)),E&&h,lp),k)}c=c||"text";let O=await Vs[ne.findKey(Vs,c)||"text"](v,e);return!E&&h(),b&&b(),await new Promise((k,w)=>{cw(k,w,{data:O,headers:Qr.from(v.headers),status:v.status,statusText:v.statusText,config:e,request:x})})}catch(v){throw h(),v&&v.name==="TypeError"&&/fetch/i.test(v.message)?Object.assign(new Et("Network Error",Et.ERR_NETWORK,e,x),{cause:v.cause||v}):Et.from(v,v&&v.code,e,x)}}),up={http:gP,xhr:WP,fetch:QP};ne.forEach(up,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Kh=e=>`- ${e}`,eO=e=>ne.isFunction(e)||e===null||e===!1,mw={getAdapter:e=>{e=ne.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let a=0;a`adapter ${i} `+(u===!1?"is not supported by the environment":"is not available in the build"));let l=t?a.length>1?`since : `+a.map(Kh).join(` `):" "+Kh(a[0]):"as no adapter specified";throw new Et("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return r},adapters:up};function gd(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Dl(null,e)}function Wh(e){return gd(e),e.headers=Qr.from(e.headers),e.data=vd.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),mw.getAdapter(e.adapter||Fm.adapter)(e).then(function(r){return gd(e),r.data=vd.call(e,e.transformResponse,r),r.headers=Qr.from(r.headers),r},function(r){return sw(r)||(gd(e),r&&r.response&&(r.response.data=vd.call(e,e.transformResponse,r.response),r.response.headers=Qr.from(r.response.headers))),Promise.reject(r)})}const vw="1.7.2",jm={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{jm[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Gh={};jm.transitional=function(t,n,r){function o(a,l){return"[Axios v"+vw+"] Transitional option '"+a+"'"+l+(r?". "+r:"")}return(a,l,i)=>{if(t===!1)throw new Et(o(l," has been removed"+(n?" in "+n:"")),Et.ERR_DEPRECATED);return n&&!Gh[l]&&(Gh[l]=!0,console.warn(o(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,l,i):!0}};function tO(e,t,n){if(typeof e!="object")throw new Et("options must be an object",Et.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],l=t[a];if(l){const i=e[a],u=i===void 0||l(i,a,e);if(u!==!0)throw new Et("option "+a+" must be "+u,Et.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Et("Unknown option "+a,Et.ERR_BAD_OPTION)}}const sp={assertOptions:tO,validators:jm},No=sp.validators;class Ks{constructor(t){this.defaults=t,this.interceptors={request:new $h,response:new $h}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const a=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=` `+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ka(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:a}=n;r!==void 0&&sp.assertOptions(r,{silentJSONParsing:No.transitional(No.boolean),forcedJSONParsing:No.transitional(No.boolean),clarifyTimeoutError:No.transitional(No.boolean)},!1),o!=null&&(ne.isFunction(o)?n.paramsSerializer={serialize:o}:sp.assertOptions(o,{encode:No.function,serialize:No.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=a&&ne.merge(a.common,a[n.method]);a&&ne.forEach(["delete","get","head","post","put","patch","common"],b=>{delete a[b]}),n.headers=Qr.concat(l,a);const i=[];let u=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(u=u&&g.synchronous,i.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let d,f=0,m;if(!u){const b=[Wh.bind(this),void 0];for(b.unshift.apply(b,i),b.push.apply(b,c),m=b.length,d=Promise.resolve(n);f{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](o);r._listeners=null}),this.promise.then=o=>{let a;const l=new Promise(i=>{r.subscribe(i),a=i}).then(o);return l.cancel=function(){r.unsubscribe(a)},l},t(function(a,l,i){r.reason||(r.reason=new Dl(a,l,i),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Am(function(o){t=o}),cancel:t}}}const nO=Am;function rO(e){return function(n){return e.apply(null,n)}}function oO(e){return ne.isObject(e)&&e.isAxiosError===!0}const cp={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(cp).forEach(([e,t])=>{cp[t]=e});const aO=cp;function gw(e){const t=new ls(e),n=Jb(ls.prototype.request,t);return ne.extend(n,ls.prototype,t,{allOwnKeys:!0}),ne.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return gw(ka(e,o))},n}const Sn=gw(Fm);Sn.Axios=ls;Sn.CanceledError=Dl;Sn.CancelToken=nO;Sn.isCancel=sw;Sn.VERSION=vw;Sn.toFormData=Sc;Sn.AxiosError=Et;Sn.Cancel=Sn.CanceledError;Sn.all=function(t){return Promise.all(t)};Sn.spread=rO;Sn.isAxiosError=oO;Sn.mergeConfig=ka;Sn.AxiosHeaders=Qr;Sn.formToJSON=e=>uw(ne.isHTMLForm(e)?new FormData(e):e);Sn.getAdapter=mw.getAdapter;Sn.HttpStatusCode=aO;Sn.default=Sn;var pr=function(){return pr=Object.assign||function(t){for(var n,r=1,o=arguments.length;r0?An(Nl,--Br):0,Cl--,Dn===10&&(Cl=1,Pc--),Dn}function eo(){return Dn=Br2||fp(Dn)>3?"":" "}function vO(e,t){for(;--t&&eo()&&!(Dn<48||Dn>102||Dn>57&&Dn<65||Dn>70&&Dn<97););return Rc(e,us()+(t<6&&Sa()==32&&eo()==32))}function pp(e){for(;eo();)switch(Dn){case e:return Br;case 34:case 39:e!==34&&e!==39&&pp(Dn);break;case 40:e===41&&pp(e);break;case 92:eo();break}return Br}function gO(e,t){for(;eo()&&e+Dn!==57;)if(e+Dn===84&&Sa()===47)break;return"/*"+Rc(t,Br-1)+"*"+zm(e===47?e:eo())}function hO(e){for(;!fp(Sa());)eo();return Rc(e,Br)}function yO(e){return pO(ss("",null,null,null,[""],e=fO(e),0,[0],e))}function ss(e,t,n,r,o,a,l,i,u){for(var c=0,d=0,f=l,m=0,y=0,b=0,g=1,x=1,h=1,p=0,v="",E=o,O=a,k=r,w=v;x;)switch(b=p,p=eo()){case 40:if(b!=108&&An(w,f-1)==58){is(w+=Ot(hd(p),"&","&\f"),"&\f",bw(c?i[c-1]:0))!=-1&&(h=-1);break}case 34:case 39:case 91:w+=hd(p);break;case 9:case 10:case 13:case 32:w+=mO(b);break;case 92:w+=vO(us()-1,7);continue;case 47:switch(Sa()){case 42:case 47:oi(bO(gO(eo(),us()),t,n,u),u);break;default:w+="/"}break;case 123*g:i[c++]=io(w)*h;case 125*g:case 59:case 0:switch(p){case 0:case 125:x=0;case 59+d:h==-1&&(w=Ot(w,/\f/g,"")),y>0&&io(w)-f&&oi(y>32?Yh(w+";",r,n,f-1,u):Yh(Ot(w," ","")+";",r,n,f-2,u),u);break;case 59:w+=";";default:if(oi(k=Xh(w,t,n,c,d,o,i,v,E=[],O=[],f,a),a),p===123)if(d===0)ss(w,t,k,k,E,a,f,i,O);else switch(m===99&&An(w,3)===110?100:m){case 100:case 108:case 109:case 115:ss(e,k,k,r&&oi(Xh(e,k,k,0,0,o,i,v,o,E=[],f,O),O),o,O,f,i,r?E:O);break;default:ss(w,k,k,k,[""],O,0,i,O)}}c=d=y=0,g=h=1,v=w="",f=l;break;case 58:f=1+io(w),y=b;default:if(g<1){if(p==123)--g;else if(p==125&&g++==0&&dO()==125)continue}switch(w+=zm(p),p*g){case 38:h=d>0?1:(w+="\f",-1);break;case 44:i[c++]=(io(w)-1)*h,h=1;break;case 64:Sa()===45&&(w+=hd(eo())),m=Sa(),d=f=io(v=w+=hO(us())),p++;break;case 45:b===45&&io(w)==2&&(g=0)}}return a}function Xh(e,t,n,r,o,a,l,i,u,c,d,f){for(var m=o-1,y=o===0?a:[""],b=Sw(y),g=0,x=0,h=0;g0?y[p]+" "+v:Ot(v,/&\f/g,y[p])))&&(u[h++]=E);return Oc(e,t,n,o===0?xc:i,u,c,d,f)}function bO(e,t,n,r){return Oc(e,t,n,hw,zm(cO()),Sl(e,2,-2),0,r)}function Yh(e,t,n,r,o){return Oc(e,t,n,$m,Sl(e,0,r),Sl(e,r+1,-1),r,o)}function Ew(e,t,n){switch(uO(e,t)){case 5103:return Kt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Kt+e+e;case 4789:return wi+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Kt+e+wi+e+cn+e+e;case 5936:switch(An(e,t+11)){case 114:return Kt+e+cn+Ot(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Kt+e+cn+Ot(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Kt+e+cn+Ot(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Kt+e+cn+e+e;case 6165:return Kt+e+cn+"flex-"+e+e;case 5187:return Kt+e+Ot(e,/(\w+).+(:[^]+)/,Kt+"box-$1$2"+cn+"flex-$1$2")+e;case 5443:return Kt+e+cn+"flex-item-"+Ot(e,/flex-|-self/g,"")+(ho(e,/flex-|baseline/)?"":cn+"grid-row-"+Ot(e,/flex-|-self/g,""))+e;case 4675:return Kt+e+cn+"flex-line-pack"+Ot(e,/align-content|flex-|-self/g,"")+e;case 5548:return Kt+e+cn+Ot(e,"shrink","negative")+e;case 5292:return Kt+e+cn+Ot(e,"basis","preferred-size")+e;case 6060:return Kt+"box-"+Ot(e,"-grow","")+Kt+e+cn+Ot(e,"grow","positive")+e;case 4554:return Kt+Ot(e,/([^-])(transform)/g,"$1"+Kt+"$2")+e;case 6187:return Ot(Ot(Ot(e,/(zoom-|grab)/,Kt+"$1"),/(image-set)/,Kt+"$1"),e,"")+e;case 5495:case 3959:return Ot(e,/(image-set\([^]*)/,Kt+"$1$`$1");case 4968:return Ot(Ot(e,/(.+:)(flex-)?(.*)/,Kt+"box-pack:$3"+cn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Kt+e+e;case 4200:if(!ho(e,/flex-|baseline/))return cn+"grid-column-align"+Sl(e,t)+e;break;case 2592:case 3360:return cn+Ot(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,ho(r.props,/grid-\w+-end/)})?~is(e+(n=n[t].value),"span",0)?e:cn+Ot(e,"-start","")+e+cn+"grid-row-span:"+(~is(n,"span",0)?ho(n,/\d+/):+ho(n,/\d+/)-+ho(e,/\d+/))+";":cn+Ot(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return ho(r.props,/grid-\w+-start/)})?e:cn+Ot(Ot(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Ot(e,/(.+)-inline(.+)/,Kt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(io(e)-1-t>6)switch(An(e,t+1)){case 109:if(An(e,t+4)!==45)break;case 102:return Ot(e,/(.+:)(.+)-([^]+)/,"$1"+Kt+"$2-$3$1"+wi+(An(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~is(e,"stretch",0)?Ew(Ot(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Ot(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,a,l,i,u,c){return cn+o+":"+a+c+(l?cn+o+"-span:"+(i?u:+u-+a)+c:"")+e});case 4949:if(An(e,t+6)===121)return Ot(e,":",":"+Kt)+e;break;case 6444:switch(An(e,An(e,14)===45?18:11)){case 120:return Ot(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Kt+(An(e,14)===45?"inline-":"")+"box$3$1"+Kt+"$2$3$1"+cn+"$2box$3")+e;case 100:return Ot(e,":",":"+cn)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ot(e,"scroll-","scroll-snap-")+e}return e}function Gs(e,t){for(var n="",r=0;r-1&&!e.return)switch(e.type){case $m:e.return=Ew(e.value,e.length,n);return;case yw:return Gs([_o(e,{value:Ot(e.value,"@","@"+Kt)})],r);case xc:if(e.length)return sO(n=e.props,function(o){switch(ho(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":$a(_o(e,{props:[Ot(o,/:(read-\w+)/,":"+wi+"$1")]})),$a(_o(e,{props:[o]})),dp(e,{props:Jh(n,r)});break;case"::placeholder":$a(_o(e,{props:[Ot(o,/:(plac\w+)/,":"+Kt+"input-$1")]})),$a(_o(e,{props:[Ot(o,/:(plac\w+)/,":"+wi+"$1")]})),$a(_o(e,{props:[Ot(o,/:(plac\w+)/,cn+"input-$1")]})),$a(_o(e,{props:[o]})),dp(e,{props:Jh(n,r)});break}return""})}}var xO={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},br={},El=typeof process<"u"&&br!==void 0&&(br.REACT_APP_SC_ATTR||br.SC_ATTR)||"data-styled",xw="active",Pw="data-styled-version",Ic="6.1.11",Bm=`/*!sc*/ -`,Hm=typeof window<"u"&&"HTMLElement"in window,PO=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&br!==void 0&&br.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&br.REACT_APP_SC_DISABLE_SPEEDY!==""?br.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&br.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&br!==void 0&&br.SC_DISABLE_SPEEDY!==void 0&&br.SC_DISABLE_SPEEDY!==""&&br.SC_DISABLE_SPEEDY!=="false"&&br.SC_DISABLE_SPEEDY),Tc=Object.freeze([]),xl=Object.freeze({});function OO(e,t,n){return n===void 0&&(n=xl),e.theme!==n.theme&&e.theme||t||n.theme}var Ow=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),RO=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,IO=/(^-|-$)/g;function qh(e){return e.replace(RO,"-").replace(IO,"")}var TO=/(a)(d)/gi,zu=52,Zh=function(e){return String.fromCharCode(e+(e>25?39:97))};function mp(e){var t,n="";for(t=Math.abs(e);t>zu;t=t/zu|0)n=Zh(t%zu)+n;return(Zh(t%zu)+n).replace(TO,"$1-$2")}var yd,Rw=5381,ol=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Iw=function(e){return ol(Rw,e)};function kO(e){return mp(Iw(e)>>>0)}function DO(e){return e.displayName||e.name||"Component"}function bd(e){return typeof e=="string"&&!0}var Tw=typeof Symbol=="function"&&Symbol.for,kw=Tw?Symbol.for("react.memo"):60115,NO=Tw?Symbol.for("react.forward_ref"):60112,MO={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},_O={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Dw={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},LO=((yd={})[NO]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},yd[kw]=Dw,yd);function Qh(e){return("type"in(t=e)&&t.type.$$typeof)===kw?Dw:"$$typeof"in e?LO[e.$$typeof]:MO;var t}var FO=Object.defineProperty,jO=Object.getOwnPropertyNames,e1=Object.getOwnPropertySymbols,AO=Object.getOwnPropertyDescriptor,$O=Object.getPrototypeOf,t1=Object.prototype;function Nw(e,t,n){if(typeof t!="string"){if(t1){var r=$O(t);r&&r!==t1&&Nw(e,r,n)}var o=jO(t);e1&&(o=o.concat(e1(t)));for(var a=Qh(e),l=Qh(t),i=0;i0?" Args: ".concat(t.join(", ")):""))}var zO=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r=this.groupSizes.length){for(var r=this.groupSizes,o=r.length,a=o;t>=a;)if((a<<=1)<0)throw iu(16,"".concat(t));this.groupSizes=new Uint32Array(a),this.groupSizes.set(r),this.length=a;for(var l=o;l=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],o=this.indexOfGroup(t),a=o+r,l=o;l=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t0&&(x+="".concat(h,","))}),u+="".concat(b).concat(g,'{content:"').concat(x,'"}').concat(Bm)},d=0;d0?".".concat(t):m},d=u.slice();d.push(function(m){m.type===xc&&m.value.includes("&")&&(m.props[0]=m.props[0].replace(qO,n).replace(r,c))}),l.prefix&&d.push(EO),d.push(wO);var f=function(m,y,b,g){y===void 0&&(y=""),b===void 0&&(b=""),g===void 0&&(g="&"),t=g,n=y,r=new RegExp("\\".concat(n,"\\b"),"g");var x=m.replace(ZO,""),h=yO(b||y?"".concat(b," ").concat(y," { ").concat(x," }"):x);l.namespace&&(h=Lw(h,l.namespace));var p=[];return Gs(h,SO(d.concat(CO(function(v){return p.push(v)})))),p};return f.hash=u.length?u.reduce(function(m,y){return y.name||iu(15),ol(m,y.name)},Rw).toString():"",f}var e6=new _w,gp=QO(),Fw=dn.createContext({shouldForwardProp:void 0,styleSheet:e6,stylis:gp});Fw.Consumer;dn.createContext(void 0);function o1(){return s.useContext(Fw)}var t6=function(){function e(t,n){var r=this;this.inject=function(o,a){a===void 0&&(a=gp);var l=r.name+a.hash;o.hasNameForId(r.id,l)||o.insertRules(r.id,l,a(r.rules,l,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,Vm(this,function(){throw iu(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=gp),this.name+t.hash},e}(),n6=function(e){return e>="A"&&e<="Z"};function a1(e){for(var t="",n=0;n>>0);if(!n.hasNameForId(this.componentId,l)){var i=r(a,".".concat(l),void 0,this.componentId);n.insertRules(this.componentId,l,i)}o=ha(o,l),this.staticRulesId=l}else{for(var u=ol(this.baseHash,r.hash),c="",d=0;d>>0);n.hasNameForId(this.componentId,y)||n.insertRules(this.componentId,y,r(c,".".concat(y),void 0,this.componentId)),o=ha(o,y)}}return o},e}(),$w=dn.createContext(void 0);$w.Consumer;var wd={};function l6(e,t,n){var r=Um(e),o=e,a=!bd(e),l=t.attrs,i=l===void 0?Tc:l,u=t.componentId,c=u===void 0?function(E,O){var k=typeof E!="string"?"sc":qh(E);wd[k]=(wd[k]||0)+1;var w="".concat(k,"-").concat(kO(Ic+k+wd[k]));return O?"".concat(O,"-").concat(w):w}(t.displayName,t.parentComponentId):u,d=t.displayName,f=d===void 0?function(E){return bd(E)?"styled.".concat(E):"Styled(".concat(DO(E),")")}(e):d,m=t.displayName&&t.componentId?"".concat(qh(t.displayName),"-").concat(t.componentId):t.componentId||c,y=r&&o.attrs?o.attrs.concat(i).filter(Boolean):i,b=t.shouldForwardProp;if(r&&o.shouldForwardProp){var g=o.shouldForwardProp;if(t.shouldForwardProp){var x=t.shouldForwardProp;b=function(E,O){return g(E,O)&&x(E,O)}}else b=g}var h=new a6(n,m,r?o.componentStyle:void 0);function p(E,O){return function(k,w,D){var I=k.attrs,B=k.componentStyle,A=k.defaultProps,ye=k.foldedComponentIds,Ie=k.styledComponentId,Me=k.target,Ae=dn.useContext($w),it=o1(),qe=k.shouldForwardProp||it.shouldForwardProp,K=OO(w,Ae,A)||xl,re=function(pt,st,tt){for(var lt,Rt=pr(pr({},st),{className:void 0,theme:tt}),zt=0;zt?@[\\\]^`{|}~-]+/g,IO=/(^-|-$)/g;function qh(e){return e.replace(RO,"-").replace(IO,"")}var TO=/(a)(d)/gi,zu=52,Zh=function(e){return String.fromCharCode(e+(e>25?39:97))};function mp(e){var t,n="";for(t=Math.abs(e);t>zu;t=t/zu|0)n=Zh(t%zu)+n;return(Zh(t%zu)+n).replace(TO,"$1-$2")}var yd,Rw=5381,ol=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Iw=function(e){return ol(Rw,e)};function kO(e){return mp(Iw(e)>>>0)}function DO(e){return e.displayName||e.name||"Component"}function bd(e){return typeof e=="string"&&!0}var Tw=typeof Symbol=="function"&&Symbol.for,kw=Tw?Symbol.for("react.memo"):60115,NO=Tw?Symbol.for("react.forward_ref"):60112,MO={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},_O={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Dw={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},LO=((yd={})[NO]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},yd[kw]=Dw,yd);function Qh(e){return("type"in(t=e)&&t.type.$$typeof)===kw?Dw:"$$typeof"in e?LO[e.$$typeof]:MO;var t}var FO=Object.defineProperty,jO=Object.getOwnPropertyNames,e1=Object.getOwnPropertySymbols,AO=Object.getOwnPropertyDescriptor,$O=Object.getPrototypeOf,t1=Object.prototype;function Nw(e,t,n){if(typeof t!="string"){if(t1){var r=$O(t);r&&r!==t1&&Nw(e,r,n)}var o=jO(t);e1&&(o=o.concat(e1(t)));for(var a=Qh(e),l=Qh(t),i=0;i0?" Args: ".concat(t.join(", ")):""))}var zO=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r=this.groupSizes.length){for(var r=this.groupSizes,o=r.length,a=o;t>=a;)if((a<<=1)<0)throw iu(16,"".concat(t));this.groupSizes=new Uint32Array(a),this.groupSizes.set(r),this.length=a;for(var l=o;l=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],o=this.indexOfGroup(t),a=o+r,l=o;l=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t0&&(x+="".concat(h,","))}),u+="".concat(b).concat(g,'{content:"').concat(x,'"}').concat(Bm)},d=0;d0?".".concat(t):m},d=u.slice();d.push(function(m){m.type===xc&&m.value.includes("&")&&(m.props[0]=m.props[0].replace(qO,n).replace(r,c))}),l.prefix&&d.push(EO),d.push(wO);var f=function(m,y,b,g){y===void 0&&(y=""),b===void 0&&(b=""),g===void 0&&(g="&"),t=g,n=y,r=new RegExp("\\".concat(n,"\\b"),"g");var x=m.replace(ZO,""),h=yO(b||y?"".concat(b," ").concat(y," { ").concat(x," }"):x);l.namespace&&(h=Lw(h,l.namespace));var p=[];return Gs(h,SO(d.concat(CO(function(v){return p.push(v)})))),p};return f.hash=u.length?u.reduce(function(m,y){return y.name||iu(15),ol(m,y.name)},Rw).toString():"",f}var e6=new _w,gp=QO(),Fw=dn.createContext({shouldForwardProp:void 0,styleSheet:e6,stylis:gp});Fw.Consumer;dn.createContext(void 0);function o1(){return s.useContext(Fw)}var t6=function(){function e(t,n){var r=this;this.inject=function(o,a){a===void 0&&(a=gp);var l=r.name+a.hash;o.hasNameForId(r.id,l)||o.insertRules(r.id,l,a(r.rules,l,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,Vm(this,function(){throw iu(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=gp),this.name+t.hash},e}(),n6=function(e){return e>="A"&&e<="Z"};function a1(e){for(var t="",n=0;n>>0);if(!n.hasNameForId(this.componentId,l)){var i=r(a,".".concat(l),void 0,this.componentId);n.insertRules(this.componentId,l,i)}o=ha(o,l),this.staticRulesId=l}else{for(var u=ol(this.baseHash,r.hash),c="",d=0;d>>0);n.hasNameForId(this.componentId,y)||n.insertRules(this.componentId,y,r(c,".".concat(y),void 0,this.componentId)),o=ha(o,y)}}return o},e}(),$w=dn.createContext(void 0);$w.Consumer;var wd={};function l6(e,t,n){var r=Um(e),o=e,a=!bd(e),l=t.attrs,i=l===void 0?Tc:l,u=t.componentId,c=u===void 0?function(E,O){var k=typeof E!="string"?"sc":qh(E);wd[k]=(wd[k]||0)+1;var w="".concat(k,"-").concat(kO(Ic+k+wd[k]));return O?"".concat(O,"-").concat(w):w}(t.displayName,t.parentComponentId):u,d=t.displayName,f=d===void 0?function(E){return bd(E)?"styled.".concat(E):"Styled(".concat(DO(E),")")}(e):d,m=t.displayName&&t.componentId?"".concat(qh(t.displayName),"-").concat(t.componentId):t.componentId||c,y=r&&o.attrs?o.attrs.concat(i).filter(Boolean):i,b=t.shouldForwardProp;if(r&&o.shouldForwardProp){var g=o.shouldForwardProp;if(t.shouldForwardProp){var x=t.shouldForwardProp;b=function(E,O){return g(E,O)&&x(E,O)}}else b=g}var h=new a6(n,m,r?o.componentStyle:void 0);function p(E,O){return function(k,w,D){var I=k.attrs,B=k.componentStyle,A=k.defaultProps,ye=k.foldedComponentIds,Ie=k.styledComponentId,Me=k.target,Ae=dn.useContext($w),it=o1(),qe=k.shouldForwardProp||it.shouldForwardProp,K=OO(w,Ae,A)||xl,re=function(pt,st,tt){for(var lt,Rt=pr(pr({},st),{className:void 0,theme:tt}),zt=0;ztY.jsx(u6,{children:Y.jsxs(s6,{children:[Y.jsx(c6,{children:"ZK Clay Analytics"}),Y.jsxs(d6,{children:[Y.jsx(Hu,{children:Y.jsx("a",{href:"/",children:"Home"})}),Y.jsx(Hu,{children:Y.jsx("a",{href:"/#privacy_pools",children:"Privacy Pools"})}),Y.jsx(Hu,{children:Y.jsx("a",{href:"/#projects",children:"Project Tracker"})}),Y.jsx(Hu,{children:Y.jsx("a",{href:"/#about",children:"About"})})]})]})}),p6=()=>Y.jsx("footer",{className:"footer",children:Y.jsxs("p",{children:["I run privacy preserving analytics provided by ",Y.jsx("a",{href:"https://umami.is/",target:"_blank",rel:"noopener noreferrer",children:"Umami"}),". © 2024 ZK Clay"]})}),uu=({children:e})=>Y.jsxs("div",{children:[Y.jsx(f6,{}),Y.jsx("main",{children:e}),Y.jsx(p6,{})]});function m6(){const[e,t]=s.useState(null);if(s.useState(0),s.useEffect(()=>{Sn.get("https://api.zkclay.com/fetch_projects").then(o=>{t(o.data)}).catch(o=>{console.error("Error fetching data:",o)})},[]),!e)return Y.jsx("div",{children:"Loading..."});const n=o=>Y.jsxs("span",{className:"project-label",children:[Y.jsx("img",{src:"/icons/"+o.id+".jpg",className:"project-icon"}),Y.jsx("a",{href:o.website_url,target:"_blank",rel:"noopener noreferrer",className:"project-name",children:o.name})]}),r=o=>Y.jsx("a",{href:o.twitter_url,target:"_blank",rel:"noopener noreferrer",children:o.twitter_url});return Y.jsx(uu,{children:Y.jsxs("div",{className:"project-tracker-root",children:[Y.jsx("h2",{children:"Pre-Launch Privacy Projects"}),Y.jsxs("p",{children:["This project tracker is a big board of all the projects we are looking at that have not yet launched a token, or gone live on mainnet. This list can be useful to find airdrops opportunities, project to contribute to, or find the next big thing in privacy tech. Created by ",Y.jsx("a",{href:"https://x.com/zk_clay",target:"_blank",rel:"noopener noreferrer",children:"@zk_clay"}),". Follow on twitter for questions, comments, and site updates.",Y.jsx("br",{}),Y.jsx("br",{})]}),Y.jsxs(Dm,{value:e,children:[Y.jsx(Lr,{field:"id",header:"ID"}),Y.jsx(Lr,{header:"Name",body:n,sortable:!0}),Y.jsx(Lr,{header:"Twitter URL",body:r}),Y.jsx(Lr,{field:"twitter_count",header:"Twitter Follower Count",sortable:!0}),Y.jsx(Lr,{field:"level_1",header:"Is Level 1?",sortable:!0}),Y.jsx(Lr,{field:"level_1_name",header:"Level 1 Name",sortable:!0})]})]})})}const v6=()=>{const[e,t]=s.useState(null);if(s.useEffect(()=>{Sn.get("https://api.zkclay.com/fetch_tracker").then(o=>{t(o.data)}).catch(o=>{console.error("Error fetching data:",o)})},[]),!e)return Y.jsx("div",{children:"Loading..."});const n=e.blockchains.sort((o,a)=>a.amount_val-o.amount_val),r=new Date(e.timestamp*1e3).toLocaleString();return Y.jsx(uu,{children:Y.jsxs("div",{className:"container",children:[Y.jsxs("header",{className:"header",children:[Y.jsx("span",{className:"headline-number",children:Y.jsxs("h1",{children:[e.total_issued,Y.jsx("br",{})]})}),Y.jsx("h2",{children:"Privacy Ecosystem Market Cap"}),Y.jsxs("p",{children:["as of ",r]})]}),Y.jsxs("section",{className:"data-section",children:[Y.jsx("div",{className:"data-row",children:e.changes.map((o,a)=>Y.jsxs("div",{className:"data-box",children:[Y.jsx("span",{className:"data-value",children:o.percentage}),Y.jsx("span",{className:"data-time",children:o.period}),Y.jsx("span",{className:"data-amount",children:o.amount})]},a))}),Y.jsx("div",{className:"data-table",children:n.map((o,a)=>Y.jsxs("div",{className:"data-table-row",children:[Y.jsx("span",{children:o.name}),Y.jsx("span",{children:o.amount})]},a))}),Y.jsxs("div",{children:[Y.jsx("br",{}),Y.jsx("br",{}),Y.jsx("h3",{children:"Are we missing something?"}),Y.jsxs("p",{children:["This is a rapidly evolving space and ecosystem, and many projects have not yet launched. Learn more about these projects using our ",Y.jsx("a",{href:"/#projects",children:"project tracker."})]})]})]})]})})},g6=()=>Y.jsx(uu,{children:Y.jsxs("div",{className:"about-us-container",children:[Y.jsx("p",{children:"This site is dedicated to tracking and analyzing the second wave of privacy preserving technologies being built in the crypto space."}),Y.jsxs("p",{children:[Y.jsx("a",{href:"/",target:"_blank",children:"Privacy V2 Index"})," is a market index which tracks the performance of all privacy tokens vs each other and the broader market.  ",Y.jsx("a",{href:"/#projects",target:"_blank",children:"Project Tracker"})," is a list upcoming privacy projects that are working towards launch. This is the a starting point, with some much more to come.  ",Y.jsx("a",{href:"/#privacy_pools",target:"_blank",children:"Privacy Pools"})," is a tracker of the current privacy pools."]}),Y.jsx("p",{children:"We hope this information will prove useful to traders, airdroppers, data analysts, security researchers, marketers and everyone working to create more safe and private crypto. We hope to build an alternative to Nansen and existing analytics platforms, where privacy is supported, verified and tracked, rather than violated."}),"Feel free to reach out on Twitter at ",Y.jsx("a",{href:"http://x.com/zk_clay",target:"_blank",children:"ZK Clay"}),"."]})});function h6(){const[e,t]=s.useState(null);if(s.useEffect(()=>{Sn.get("https://api.zkclay.com/privacy_pools").then(o=>{t(o.data)}).catch(o=>{console.error("Error fetching data:",o)})},[]),!e)return Y.jsx("div",{children:"Loading..."});const n=o=>Y.jsxs("span",{className:"pool-label",children:[Y.jsx("img",{src:"/icons/"+o.project_id+".jpg",className:"project-icon"}),Y.jsx("a",{href:"/#privacy_pool/"+o.id,rel:"noopener noreferrer",className:"project-name",children:o.name})]}),r=o=>o.tvl.toLocaleString("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2});return Y.jsx(uu,{children:Y.jsxs("div",{className:"pool-tracker-root",children:[Y.jsx("h2",{children:"Privacy Pools"}),Y.jsxs("p",{children:["Privacy pools are crypto assets grouped together for the purpose of providing anonymity to the collected uses. This page tracks a number of statistics for privacy pool users. Much more to come here. Created by ",Y.jsx("a",{href:"https://x.com/zk_clay",target:"_blank",rel:"noopener noreferrer",children:"@zk_clay"}),". Follow on twitter for questions, comments, and site updates.",Y.jsx("br",{}),Y.jsx("br",{})]}),Y.jsxs(Dm,{value:e,sortField:"tvl",sortOrder:-1,children:[Y.jsx(Lr,{field:"id",header:"ID"}),Y.jsx(Lr,{header:"Name",body:n,sortable:!0}),Y.jsx(Lr,{field:"description",header:"Description"}),Y.jsx(Lr,{field:"tvl",header:"Total Value Locked (TVL)",body:r,sortable:!0}),Y.jsx(Lr,{field:"defunct",header:"Is Defunct?",sortable:!0})]})]})})}const y6="modulepreload",b6=function(e){return"/"+e},u1={},w6=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){const a=document.getElementsByTagName("link"),l=document.querySelector("meta[property=csp-nonce]"),i=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));o=Promise.all(n.map(u=>{if(u=b6(u),u in u1)return;u1[u]=!0;const c=u.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(!!r)for(let y=a.length-1;y>=0;y--){const b=a[y];if(b.href===u&&(!c||b.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${d}`))return;const m=document.createElement("link");if(m.rel=c?"stylesheet":y6,c||(m.as="script",m.crossOrigin=""),m.href=u,i&&m.setAttribute("nonce",i),document.head.appendChild(m),c)return new Promise((y,b)=>{m.addEventListener("load",y),m.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${u}`)))})}))}return o.then(()=>t()).catch(a=>{const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=a,window.dispatchEvent(l),!l.defaultPrevented)throw a})};var Uu=St.extend({defaultProps:{__TYPE:"Chart",id:null,type:null,data:null,options:null,plugins:null,width:null,height:null,style:null,className:null,children:void 0},css:{classes:{root:"p-chart"},inlineStyles:{root:function(t){var n=t.props;return Object.assign({width:n.width,height:n.height},n.style)}},styles:` +`,f6=()=>J.jsx(u6,{children:J.jsxs(s6,{children:[J.jsx(c6,{children:"ZK Clay Analytics"}),J.jsxs(d6,{children:[J.jsx(Hu,{children:J.jsx("a",{href:"/",children:"Home"})}),J.jsx(Hu,{children:J.jsx("a",{href:"/#privacy_pools",children:"Privacy Pools"})}),J.jsx(Hu,{children:J.jsx("a",{href:"/#projects",children:"Project Tracker"})}),J.jsx(Hu,{children:J.jsx("a",{href:"/#about",children:"About"})})]})]})}),p6=()=>J.jsx("footer",{className:"footer",children:J.jsxs("p",{children:["I run privacy preserving analytics provided by ",J.jsx("a",{href:"https://umami.is/",target:"_blank",rel:"noopener noreferrer",children:"Umami"}),". © 2024 ZK Clay"]})}),uu=({children:e})=>J.jsxs("div",{children:[J.jsx(f6,{}),J.jsx("main",{children:e}),J.jsx(p6,{})]});function m6(){const[e,t]=s.useState(null);if(s.useState(0),s.useEffect(()=>{Sn.get("https://api.zkclay.com/fetch_projects").then(o=>{t(o.data)}).catch(o=>{console.error("Error fetching data:",o)})},[]),!e)return J.jsx("div",{children:"Loading..."});const n=o=>J.jsxs("span",{className:"project-label",children:[J.jsx("img",{src:"/icons/"+o.id+".jpg",className:"project-icon"}),J.jsx("a",{href:o.website_url,target:"_blank",rel:"noopener noreferrer",className:"project-name",children:o.name})]}),r=o=>J.jsx("a",{href:o.twitter_url,target:"_blank",rel:"noopener noreferrer",children:o.twitter_url});return J.jsx(uu,{children:J.jsxs("div",{className:"project-tracker-root",children:[J.jsx("h2",{children:"Pre-Launch Privacy Projects"}),J.jsxs("p",{children:["This project tracker is a big board of all the projects we are looking at that have not yet launched a token, or gone live on mainnet. This list can be useful to find airdrops opportunities, project to contribute to, or find the next big thing in privacy tech. Created by ",J.jsx("a",{href:"https://x.com/zk_clay",target:"_blank",rel:"noopener noreferrer",children:"@zk_clay"}),". Follow on twitter for questions, comments, and site updates.",J.jsx("br",{}),J.jsx("br",{})]}),J.jsxs(Dm,{value:e,children:[J.jsx(Lr,{field:"id",header:"ID"}),J.jsx(Lr,{header:"Name",body:n,sortable:!0}),J.jsx(Lr,{header:"Twitter URL",body:r}),J.jsx(Lr,{field:"twitter_count",header:"Twitter Follower Count",sortable:!0}),J.jsx(Lr,{field:"level_1",header:"Is Level 1?",sortable:!0}),J.jsx(Lr,{field:"level_1_name",header:"Level 1 Name",sortable:!0})]})]})})}const v6=()=>{const[e,t]=s.useState(null);if(s.useEffect(()=>{Sn.get("https://api.zkclay.com/fetch_tracker").then(o=>{t(o.data)}).catch(o=>{console.error("Error fetching data:",o)})},[]),!e)return J.jsx("div",{children:"Loading..."});const n=e.blockchains.sort((o,a)=>a.amount_val-o.amount_val),r=new Date(e.timestamp*1e3).toLocaleString();return J.jsx(uu,{children:J.jsxs("div",{className:"container",children:[J.jsxs("header",{className:"header",children:[J.jsx("span",{className:"headline-number",children:J.jsxs("h1",{children:[e.total_issued,J.jsx("br",{})]})}),J.jsx("h2",{children:"Privacy Ecosystem Market Cap"}),J.jsxs("p",{children:["as of ",r]})]}),J.jsxs("section",{className:"data-section",children:[J.jsx("div",{className:"data-row",children:e.changes.map((o,a)=>J.jsxs("div",{className:"data-box",children:[J.jsx("span",{className:"data-value",children:o.percentage}),J.jsx("span",{className:"data-time",children:o.period}),J.jsx("span",{className:"data-amount",children:o.amount})]},a))}),J.jsx("div",{className:"data-table",children:n.map((o,a)=>J.jsxs("div",{className:"data-table-row",children:[J.jsx("span",{children:o.name}),J.jsx("span",{children:o.amount})]},a))}),J.jsxs("div",{children:[J.jsx("br",{}),J.jsx("br",{}),J.jsx("h3",{children:"Are we missing something?"}),J.jsxs("p",{children:["This is a rapidly evolving space and ecosystem, and many projects have not yet launched. Learn more about these projects using our ",J.jsx("a",{href:"/#projects",children:"project tracker."})]})]})]})]})})},g6=()=>J.jsx(uu,{children:J.jsxs("div",{className:"about-us-container",children:[J.jsx("p",{children:"This site is dedicated to tracking and analyzing the second wave of privacy preserving technologies being built in the crypto space."}),J.jsxs("p",{children:[J.jsx("a",{href:"/",target:"_blank",children:"Privacy V2 Index"})," is a market index which tracks the performance of all privacy tokens vs each other and the broader market.  ",J.jsx("a",{href:"/#projects",target:"_blank",children:"Project Tracker"})," is a list upcoming privacy projects that are working towards launch. This is the a starting point, with some much more to come.  ",J.jsx("a",{href:"/#privacy_pools",target:"_blank",children:"Privacy Pools"})," is a tracker of the current privacy pools."]}),J.jsx("p",{children:"We hope this information will prove useful to traders, airdroppers, data analysts, security researchers, marketers and everyone working to create more safe and private crypto. We hope to build an alternative to Nansen and existing analytics platforms, where privacy is supported, verified and tracked, rather than violated."}),"Feel free to reach out on Twitter at ",J.jsx("a",{href:"http://x.com/zk_clay",target:"_blank",children:"ZK Clay"}),"."]})});function h6(){const[e,t]=s.useState(null);if(s.useEffect(()=>{Sn.get("https://api.zkclay.com/privacy_pools").then(o=>{t(o.data)}).catch(o=>{console.error("Error fetching data:",o)})},[]),!e)return J.jsx("div",{children:"Loading..."});const n=o=>J.jsxs("span",{className:"pool-label",children:[J.jsx("img",{src:"/icons/"+o.project_id+".jpg",className:"project-icon"}),J.jsx("a",{href:"/#privacy_pool/"+o.id,rel:"noopener noreferrer",className:"project-name",children:o.name})]}),r=o=>o.tvl.toLocaleString("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2});return J.jsx(uu,{children:J.jsxs("div",{className:"pool-tracker-root",children:[J.jsx("h2",{children:"Privacy Pools"}),J.jsxs("p",{children:["Privacy pools are crypto assets grouped together for the purpose of providing anonymity to the collected uses. This page tracks a number of statistics for privacy pool users. Much more to come here. Created by ",J.jsx("a",{href:"https://x.com/zk_clay",target:"_blank",rel:"noopener noreferrer",children:"@zk_clay"}),". Follow on twitter for questions, comments, and site updates.",J.jsx("br",{}),J.jsx("br",{})]}),J.jsxs(Dm,{value:e,sortField:"tvl",sortOrder:-1,children:[J.jsx(Lr,{field:"id",header:"ID"}),J.jsx(Lr,{header:"Name",body:n,sortable:!0}),J.jsx(Lr,{field:"description",header:"Description"}),J.jsx(Lr,{field:"tvl",header:"Total Value Locked (TVL)",body:r,sortable:!0}),J.jsx(Lr,{field:"defunct",header:"Is Defunct?",sortable:!0})]})]})})}const y6="modulepreload",b6=function(e){return"/"+e},u1={},w6=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){const a=document.getElementsByTagName("link"),l=document.querySelector("meta[property=csp-nonce]"),i=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));o=Promise.all(n.map(u=>{if(u=b6(u),u in u1)return;u1[u]=!0;const c=u.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(!!r)for(let y=a.length-1;y>=0;y--){const b=a[y];if(b.href===u&&(!c||b.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${d}`))return;const m=document.createElement("link");if(m.rel=c?"stylesheet":y6,c||(m.as="script",m.crossOrigin=""),m.href=u,i&&m.setAttribute("nonce",i),document.head.appendChild(m),c)return new Promise((y,b)=>{m.addEventListener("load",y),m.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${u}`)))})}))}return o.then(()=>t()).catch(a=>{const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=a,window.dispatchEvent(l),!l.defaultPrevented)throw a})};var Uu=St.extend({defaultProps:{__TYPE:"Chart",id:null,type:null,data:null,options:null,plugins:null,width:null,height:null,style:null,className:null,children:void 0},css:{classes:{root:"p-chart"},inlineStyles:{root:function(t){var n=t.props;return Object.assign({width:n.width,height:n.height},n.style)}},styles:` @layer primereact { .p-chart { position: relative } } - `}}),s1=function(){try{return Chart}catch{return null}}(),Bw=s.memo(s.forwardRef(function(e,t){var n=At(),r=s.useContext(qt),o=Uu.getProps(e,r),a=Uu.setMetaData({props:o}),l=a.ptm,i=a.cx,u=a.sx,c=a.isUnstyled;no(Uu.css.styles,c,{name:"chart"});var d=s.useRef(null),f=s.useRef(null),m=s.useRef(null),y=function(){b();var E={type:o.type,data:o.data,options:o.options,plugins:o.plugins};s1?f.current=new s1(m.current,E):w6(()=>import("./auto-BiIF6-fZ.js"),[]).then(function(O){b(),m.current&&O&&(O.default?f.current=new O.default(m.current,E):f.current=new O(m.current,E))})},b=function(){f.current&&(f.current.destroy(),f.current=null)};s.useImperativeHandle(t,function(){return{props:o,getCanvas:function(){return m.current},getChart:function(){return f.current},getBase64Image:function(){return f.current.toBase64Image()},getElement:function(){return d.current},generateLegend:function(){return f.current&&f.current.generateLegend()},refresh:function(){return f.current&&f.current.update()}}}),s.useEffect(function(){y()}),Rr(function(){b()});var g=o.options&&o.options.plugins&&o.options.plugins.title&&o.options.plugins.title.text,x=o.ariaLabel||g,h=n({id:o.id,ref:d,style:u("root"),className:ze(o.className,i("root"))},Uu.getOtherProps(o),l("root")),p=n({ref:m,width:o.width,height:o.height,role:"img","aria-label":x},l("canvas"));return s.createElement("div",h,s.createElement("canvas",p))}),function(e,t){return e.data===t.data&&e.options===t.options&&e.type===t.type});Bw.displayName="Chart";const S6=e=>e.map(t=>new Date(t*1e3).toLocaleDateString()),C6=({chartData:e,chartLabels:t})=>{const[n,r]=s.useState({}),[o,a]=s.useState({});return s.useEffect(()=>{const i={labels:S6(t),datasets:[{label:"TVL in millions",data:e,fill:!1,borderColor:"#4bc0c0"}]},u={responsive:!0,plugins:{legend:{position:"top"},title:{display:!1,text:"Privacy Pool TVL over time"}}};r(i),a(u)},[e,t]),Y.jsxs("div",{children:[Y.jsx("h2",{children:"Privacy Pool TVL over time"}),Y.jsx(Bw,{type:"line",data:n,options:o})]})},E6=()=>{const[e,t]=s.useState(null),{id:n}=K2(),[r,o]=s.useState(null),[a,l]=s.useState(null);function i(u){return isNaN(u)?"Invalid number":new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(u)}return s.useEffect(()=>{Sn.get("https://api.zkclay.com/privacy_pool/"+n).then(u=>{t(u.data),o(u.data.tvl_timeseries.tvls),l(u.data.tvl_timeseries.timestamps)}).catch(u=>{console.error("Error fetching data:",u)})},[]),e?Y.jsx(uu,{children:Y.jsxs("div",{className:"pool-container",children:[Y.jsxs("p",{children:[Y.jsx("h2",{children:e.name}),Y.jsxs("h3",{children:[Y.jsx("b",{children:"Total Value Locked:  "})," ",i(e.tvl)," ",Y.jsx("br",{})]}),Y.jsx("b",{children:"Description:"})," ",e.description," ",Y.jsx("br",{}),Y.jsx("b",{children:"Is Pool Defunct?: "})," ",e.defunct.toString()," ",Y.jsx("br",{}),Y.jsx("br",{}),Y.jsx("h3",{children:"Onchain Addresses"}),e.eth_address&&Y.jsxs("span",{children:[Y.jsx("b",{children:"ETH Address: "}),Y.jsx("a",{href:"https://etherscan.io/address/"+e.eth_address,target:"_blank",children:e.eth_address}),Y.jsx("br",{})]}),e.eth_address_2&&Y.jsxs("span",{children:[Y.jsx("b",{children:"ETH Address: "}),Y.jsx("a",{href:"https://etherscan.io/address/"+e.eth_address_2,target:"_blank",children:e.eth_address_2}),Y.jsx("br",{})]}),e.bsc_address&&Y.jsxs("span",{children:[Y.jsx("b",{children:"Binance Smart Chain Address: "}),Y.jsx("a",{href:"https://bscscan.com/address/"+e.bsc_address,target:"_blank",children:e.bsc_address}),Y.jsx("br",{})]}),e.polygon_address&&Y.jsxs("span",{children:[Y.jsx("b",{children:"Polygon Address: "}),Y.jsx("a",{href:"https://polygonscan.com/address/"+e.polygon_address,target:"_blank",children:e.polygon_address}),Y.jsx("br",{})]}),e.base_address&&Y.jsxs("span",{children:[Y.jsx("b",{children:"Base Address: "}),Y.jsx("a",{href:"https://basescan.org/address/"+e.base_address,target:"_blank",children:e.base_address}),Y.jsx("br",{})]})]}),Y.jsx("br",{}),Y.jsx("br",{}),Y.jsx(C6,{chartData:r,chartLabels:a}),Y.jsx("br",{}),Y.jsx("br",{}),Y.jsx("br",{}),Y.jsx("br",{}),Y.jsx("a",{href:"/#privacy_pools",children:"Return to Privacy Pools"})]})}):Y.jsx("div",{children:"Loading..."})},x6=lx([{path:"/",element:Y.jsx(v6,{})},{path:"/projects",element:Y.jsx(m6,{})},{path:"/about",element:Y.jsx(g6,{})},{path:"/privacy_pools",element:Y.jsx(h6,{})},{path:"/privacy_pool/:id",element:Y.jsx(E6,{})}]);Sd.createRoot(document.getElementById("root")).render(Y.jsx(dn.StrictMode,{children:Y.jsx(vx,{router:x6})})); + `}}),s1=function(){try{return Chart}catch{return null}}(),Bw=s.memo(s.forwardRef(function(e,t){var n=At(),r=s.useContext(qt),o=Uu.getProps(e,r),a=Uu.setMetaData({props:o}),l=a.ptm,i=a.cx,u=a.sx,c=a.isUnstyled;no(Uu.css.styles,c,{name:"chart"});var d=s.useRef(null),f=s.useRef(null),m=s.useRef(null),y=function(){b();var E={type:o.type,data:o.data,options:o.options,plugins:o.plugins};s1?f.current=new s1(m.current,E):w6(()=>import("./auto-BiIF6-fZ.js"),[]).then(function(O){b(),m.current&&O&&(O.default?f.current=new O.default(m.current,E):f.current=new O(m.current,E))})},b=function(){f.current&&(f.current.destroy(),f.current=null)};s.useImperativeHandle(t,function(){return{props:o,getCanvas:function(){return m.current},getChart:function(){return f.current},getBase64Image:function(){return f.current.toBase64Image()},getElement:function(){return d.current},generateLegend:function(){return f.current&&f.current.generateLegend()},refresh:function(){return f.current&&f.current.update()}}}),s.useEffect(function(){y()}),Rr(function(){b()});var g=o.options&&o.options.plugins&&o.options.plugins.title&&o.options.plugins.title.text,x=o.ariaLabel||g,h=n({id:o.id,ref:d,style:u("root"),className:ze(o.className,i("root"))},Uu.getOtherProps(o),l("root")),p=n({ref:m,width:o.width,height:o.height,role:"img","aria-label":x},l("canvas"));return s.createElement("div",h,s.createElement("canvas",p))}),function(e,t){return e.data===t.data&&e.options===t.options&&e.type===t.type});Bw.displayName="Chart";const S6=e=>e.map(t=>new Date(t*1e3).toLocaleDateString()),C6=({chartData:e,chartLabels:t})=>{const[n,r]=s.useState(null),[o,a]=s.useState({});return s.useEffect(()=>{if(!e||!t)return;const i={labels:S6(t),datasets:[{label:"TVL in millions",data:e,fill:!1,borderColor:"#4bc0c0"}]},u={responsive:!0,plugins:{legend:{position:"top"},title:{display:!1,text:"Privacy Pool TVL over time"}}};r(i),a(u)},[e,t]),J.jsxs("div",{children:[J.jsx("h2",{children:"Privacy Pool TVL over time"}),n?J.jsx(J.Fragment,{children:J.jsx(Bw,{type:"line",data:n,options:o})}):J.jsx("p",{children:"Loading chart..."})]})},E6=()=>{const[e,t]=s.useState(null),{id:n}=K2(),[r,o]=s.useState(null),[a,l]=s.useState(null);function i(u){return isNaN(u)?"Invalid number":new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(u)}return s.useEffect(()=>{Sn.get("https://api.zkclay.com/privacy_pool/"+n).then(u=>{t(u.data),o(u.data.tvl_timeseries.tvls),l(u.data.tvl_timeseries.timestamps)}).catch(u=>{console.error("Error fetching data:",u)})},[]),e?J.jsx(uu,{children:J.jsxs("div",{className:"pool-container",children:[J.jsxs("p",{children:[J.jsx("h2",{children:e.name}),J.jsxs("h3",{children:[J.jsx("b",{children:"Total Value Locked:  "})," ",i(e.tvl)," ",J.jsx("br",{})]}),J.jsx("b",{children:"Description:"})," ",e.description," ",J.jsx("br",{}),J.jsx("b",{children:"Is Pool Defunct?: "})," ",e.defunct.toString()," ",J.jsx("br",{}),J.jsx("br",{}),J.jsx("h3",{children:"Onchain Addresses"}),e.eth_address&&J.jsxs("span",{children:[J.jsx("b",{children:"ETH Address: "}),J.jsx("a",{href:"https://etherscan.io/address/"+e.eth_address,target:"_blank",children:e.eth_address}),J.jsx("br",{})]}),e.eth_address_2&&J.jsxs("span",{children:[J.jsx("b",{children:"ETH Address: "}),J.jsx("a",{href:"https://etherscan.io/address/"+e.eth_address_2,target:"_blank",children:e.eth_address_2}),J.jsx("br",{})]}),e.bsc_address&&J.jsxs("span",{children:[J.jsx("b",{children:"Binance Smart Chain Address: "}),J.jsx("a",{href:"https://bscscan.com/address/"+e.bsc_address,target:"_blank",children:e.bsc_address}),J.jsx("br",{})]}),e.polygon_address&&J.jsxs("span",{children:[J.jsx("b",{children:"Polygon Address: "}),J.jsx("a",{href:"https://polygonscan.com/address/"+e.polygon_address,target:"_blank",children:e.polygon_address}),J.jsx("br",{})]}),e.base_address&&J.jsxs("span",{children:[J.jsx("b",{children:"Base Address: "}),J.jsx("a",{href:"https://basescan.org/address/"+e.base_address,target:"_blank",children:e.base_address}),J.jsx("br",{})]})]}),J.jsx("br",{}),J.jsx("br",{}),J.jsx(C6,{chartData:r,chartLabels:a}),J.jsx("br",{}),J.jsx("br",{}),J.jsx("br",{}),J.jsx("br",{}),J.jsx("a",{href:"/#privacy_pools",children:"Return to Privacy Pools"})]})}):J.jsx("div",{children:"Loading..."})},x6=lx([{path:"/",element:J.jsx(v6,{})},{path:"/projects",element:J.jsx(m6,{})},{path:"/about",element:J.jsx(g6,{})},{path:"/privacy_pools",element:J.jsx(h6,{})},{path:"/privacy_pool/:id",element:J.jsx(E6,{})}]);Sd.createRoot(document.getElementById("root")).render(J.jsx(dn.StrictMode,{children:J.jsx(vx,{router:x6})})); diff --git a/index.html b/index.html index 0b0b871..3fffd52 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,7 @@ Privacy V2 Ecosystem - ZK Clay - +