@espresso-lab/mantine-data-table 1.0.20 → 1.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -18,7 +18,7 @@
18
18
  1. You might have mismatching versions of React and the renderer (such as React DOM)
19
19
  2. You might be breaking the Rules of Hooks
20
20
  3. You might have more than one copy of React in the same app
21
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),r.useMemoCache(n)}}()),Ks}var ll;function pd(){return ll||(ll=1,process.env.NODE_ENV==="production"?_o.exports=hd():_o.exports=dd()),_o.exports}var un=pd(),bo=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(i){return this.listeners.add(i),this.onSubscribe(),()=>{this.listeners.delete(i),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ti=typeof window>"u"||"Deno"in globalThis;function gd(){}function cl(i){return typeof i=="number"&&i>=0&&i!==1/0}function vd(i,n){return Math.max(i+(n||0)-Date.now(),0)}function xo(i,n){return typeof i=="function"?i(n):i}function En(i,n){return typeof i=="function"?i(n):i}function fl(i){return JSON.stringify(i,(n,r)=>Js(r)?Object.keys(r).sort().reduce((s,l)=>(s[l]=r[l],s),{}):r)}function Qs(i,n){if(i===n)return i;const r=hl(i)&&hl(n);if(r||Js(i)&&Js(n)){const s=r?i:Object.keys(i),l=s.length,g=r?n:Object.keys(n),h=g.length,c=r?[]:{};let b=0;for(let C=0;C<h;C++){const O=r?C:g[C];(!r&&s.includes(O)||r)&&i[O]===void 0&&n[O]===void 0?(c[O]=void 0,b++):(c[O]=Qs(i[O],n[O]),c[O]===i[O]&&i[O]!==void 0&&b++)}return l===h&&b===l?i:c}return n}function So(i,n){if(!n||Object.keys(i).length!==Object.keys(n).length)return!1;for(const r in i)if(i[r]!==n[r])return!1;return!0}function hl(i){return Array.isArray(i)&&i.length===Object.keys(i).length}function Js(i){if(!dl(i))return!1;const n=i.constructor;if(n===void 0)return!0;const r=n.prototype;return!(!dl(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(i)!==Object.prototype)}function dl(i){return Object.prototype.toString.call(i)==="[object Object]"}function pl(i,n,r){if(typeof r.structuralSharing=="function")return r.structuralSharing(i,n);if(r.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return Qs(i,n)}catch(s){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${r.queryHash}]: ${s}`),s}return Qs(i,n)}return n}var md=(Qc=class extends bo{constructor(){super();st(this,Mr);st(this,or);st(this,Xr);He(this,Xr,n=>{if(!Ti&&window.addEventListener){const r=()=>n();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){me(this,or)||this.setEventListener(me(this,Xr))}onUnsubscribe(){var n;this.hasListeners()||((n=me(this,or))==null||n.call(this),He(this,or,void 0))}setEventListener(n){var r;He(this,Xr,n),(r=me(this,or))==null||r.call(this),He(this,or,n(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(n){me(this,Mr)!==n&&(He(this,Mr,n),this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(r=>{r(n)})}isFocused(){var n;return typeof me(this,Mr)=="boolean"?me(this,Mr):((n=globalThis.document)==null?void 0:n.visibilityState)!=="hidden"}},Mr=new WeakMap,or=new WeakMap,Xr=new WeakMap,Qc),yd=new md,wd=(Jc=class extends bo{constructor(){super();st(this,ei,!0);st(this,sr);st(this,ti);He(this,ti,n=>{if(!Ti&&window.addEventListener){const r=()=>n(!0),s=()=>n(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",s)}}})}onSubscribe(){me(this,sr)||this.setEventListener(me(this,ti))}onUnsubscribe(){var n;this.hasListeners()||((n=me(this,sr))==null||n.call(this),He(this,sr,void 0))}setEventListener(n){var r;He(this,ti,n),(r=me(this,sr))==null||r.call(this),He(this,sr,n(this.setOnline.bind(this)))}setOnline(n){me(this,ei)!==n&&(He(this,ei,n),this.listeners.forEach(s=>{s(n)}))}isOnline(){return me(this,ei)}},ei=new WeakMap,sr=new WeakMap,ti=new WeakMap,Jc),_d=new wd;function gl(){let i,n;const r=new Promise((l,g)=>{i=l,n=g});r.status="pending",r.catch(()=>{});function s(l){Object.assign(r,l),delete r.resolve,delete r.reject}return r.resolve=l=>{s({status:"fulfilled",value:l}),i(l)},r.reject=l=>{s({status:"rejected",reason:l}),n(l)},r}function bd(i){return(i??"online")==="online"?_d.isOnline():!0}var xd=i=>setTimeout(i,0);function Sd(){let i=[],n=0,r=c=>{c()},s=c=>{c()},l=xd;const g=c=>{n?i.push(c):l(()=>{r(c)})},h=()=>{const c=i;i=[],c.length&&l(()=>{s(()=>{c.forEach(b=>{r(b)})})})};return{batch:c=>{let b;n++;try{b=c()}finally{n--,n||h()}return b},batchCalls:c=>(...b)=>{g(()=>{c(...b)})},schedule:g,setNotifyFunction:c=>{r=c},setBatchNotifyFunction:c=>{s=c},setScheduler:c=>{l=c}}}var Co=Sd();function Cd(i,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:bd(n.networkMode)?"fetching":"paused",...i===void 0&&{error:null,status:"pending"}}}function Ad(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Od=(Xc=class extends bo{constructor(n,r){super();st(this,rt);st(this,Wt);st(this,Je);st(this,zi);st(this,jt);st(this,Rr);st(this,ni);st(this,ar);st(this,Mn);st(this,Fi);st(this,ri);st(this,ii);st(this,Lr);st(this,kr);st(this,ur);st(this,oi,new Set);this.options=r,He(this,Wt,n),He(this,Mn,null),He(this,ar,gl()),this.options.experimental_prefetchInRender||me(this,ar).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(me(this,Je).addObserver(this),vl(me(this,Je),this.options)?dt(this,rt,mo).call(this):this.updateResult(),dt(this,rt,nl).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Xs(me(this,Je),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Xs(me(this,Je),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,dt(this,rt,rl).call(this),dt(this,rt,il).call(this),me(this,Je).removeObserver(this)}setOptions(n){const r=this.options,s=me(this,Je);if(this.options=me(this,Wt).defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof En(this.options.enabled,me(this,Je))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");dt(this,rt,ol).call(this),me(this,Je).setOptions(this.options),r._defaulted&&!So(this.options,r)&&me(this,Wt).getQueryCache().notify({type:"observerOptionsUpdated",query:me(this,Je),observer:this});const l=this.hasListeners();l&&ml(me(this,Je),s,this.options,r)&&dt(this,rt,mo).call(this),this.updateResult(),l&&(me(this,Je)!==s||En(this.options.enabled,me(this,Je))!==En(r.enabled,me(this,Je))||xo(this.options.staleTime,me(this,Je))!==xo(r.staleTime,me(this,Je)))&&dt(this,rt,Xu).call(this);const g=dt(this,rt,el).call(this);l&&(me(this,Je)!==s||En(this.options.enabled,me(this,Je))!==En(r.enabled,me(this,Je))||g!==me(this,ur))&&dt(this,rt,tl).call(this,g)}getOptimisticResult(n){const r=me(this,Wt).getQueryCache().build(me(this,Wt),n),s=this.createResult(r,n);return Dd(this,s)&&(He(this,jt,s),He(this,ni,this.options),He(this,Rr,me(this,Je).state)),s}getCurrentResult(){return me(this,jt)}trackResult(n,r){const s={};return Object.keys(n).forEach(l=>{Object.defineProperty(s,l,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(l),r==null||r(l),n[l])})}),s}trackProp(n){me(this,oi).add(n)}getCurrentQuery(){return me(this,Je)}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const r=me(this,Wt).defaultQueryOptions(n),s=me(this,Wt).getQueryCache().build(me(this,Wt),r);return s.fetch().then(()=>this.createResult(s,r))}fetch(n){return dt(this,rt,mo).call(this,{...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),me(this,jt)))}createResult(n,r){var re;const s=me(this,Je),l=this.options,g=me(this,jt),h=me(this,Rr),c=me(this,ni),C=n!==s?n.state:me(this,zi),{state:O}=n;let L={...O},k=!1,M;if(r._optimisticResults){const se=this.hasListeners(),pe=!se&&vl(n,r),ie=se&&ml(n,s,r,l);(pe||ie)&&(L={...L,...Cd(O.data,n.options)}),r._optimisticResults==="isRestoring"&&(L.fetchStatus="idle")}let{error:R,errorUpdatedAt:E,status:N}=L;if(r.select&&L.data!==void 0)if(g&&L.data===(h==null?void 0:h.data)&&r.select===me(this,Fi))M=me(this,ri);else try{He(this,Fi,r.select),M=r.select(L.data),M=pl(g==null?void 0:g.data,M,r),He(this,ri,M),He(this,Mn,null)}catch(se){He(this,Mn,se)}else M=L.data;if(r.placeholderData!==void 0&&M===void 0&&N==="pending"){let se;if(g!=null&&g.isPlaceholderData&&r.placeholderData===(c==null?void 0:c.placeholderData))se=g.data;else if(se=typeof r.placeholderData=="function"?r.placeholderData((re=me(this,ii))==null?void 0:re.state.data,me(this,ii)):r.placeholderData,r.select&&se!==void 0)try{se=r.select(se),He(this,Mn,null)}catch(pe){He(this,Mn,pe)}se!==void 0&&(N="success",M=pl(g==null?void 0:g.data,se,r),k=!0)}me(this,Mn)&&(R=me(this,Mn),M=me(this,ri),E=Date.now(),N="error");const Q=L.fetchStatus==="fetching",te=N==="pending",ee=N==="error",ue=te&&Q,G=M!==void 0,ne={status:N,fetchStatus:L.fetchStatus,isPending:te,isSuccess:N==="success",isError:ee,isInitialLoading:ue,isLoading:ue,data:M,dataUpdatedAt:L.dataUpdatedAt,error:R,errorUpdatedAt:E,failureCount:L.fetchFailureCount,failureReason:L.fetchFailureReason,errorUpdateCount:L.errorUpdateCount,isFetched:L.dataUpdateCount>0||L.errorUpdateCount>0,isFetchedAfterMount:L.dataUpdateCount>C.dataUpdateCount||L.errorUpdateCount>C.errorUpdateCount,isFetching:Q,isRefetching:Q&&!te,isLoadingError:ee&&!G,isPaused:L.fetchStatus==="paused",isPlaceholderData:k,isRefetchError:ee&&G,isStale:ea(n,r),refetch:this.refetch,promise:me(this,ar)};if(this.options.experimental_prefetchInRender){const se=Ae=>{ne.status==="error"?Ae.reject(ne.error):ne.data!==void 0&&Ae.resolve(ne.data)},pe=()=>{const Ae=He(this,ar,ne.promise=gl());se(Ae)},ie=me(this,ar);switch(ie.status){case"pending":n.queryHash===s.queryHash&&se(ie);break;case"fulfilled":(ne.status==="error"||ne.data!==ie.value)&&pe();break;case"rejected":(ne.status!=="error"||ne.error!==ie.reason)&&pe();break}}return ne}updateResult(){const n=me(this,jt),r=this.createResult(me(this,Je),this.options);if(He(this,Rr,me(this,Je).state),He(this,ni,this.options),me(this,Rr).data!==void 0&&He(this,ii,me(this,Je)),So(r,n))return;He(this,jt,r);const s=()=>{if(!n)return!0;const{notifyOnChangeProps:l}=this.options,g=typeof l=="function"?l():l;if(g==="all"||!g&&!me(this,oi).size)return!0;const h=new Set(g??me(this,oi));return this.options.throwOnError&&h.add("error"),Object.keys(me(this,jt)).some(c=>{const b=c;return me(this,jt)[b]!==n[b]&&h.has(b)})};dt(this,rt,cd).call(this,{listeners:s()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&dt(this,rt,nl).call(this)}},Wt=new WeakMap,Je=new WeakMap,zi=new WeakMap,jt=new WeakMap,Rr=new WeakMap,ni=new WeakMap,ar=new WeakMap,Mn=new WeakMap,Fi=new WeakMap,ri=new WeakMap,ii=new WeakMap,Lr=new WeakMap,kr=new WeakMap,ur=new WeakMap,oi=new WeakMap,rt=new WeakSet,mo=function(n){dt(this,rt,ol).call(this);let r=me(this,Je).fetch(this.options,n);return n!=null&&n.throwOnError||(r=r.catch(gd)),r},Xu=function(){dt(this,rt,rl).call(this);const n=xo(this.options.staleTime,me(this,Je));if(Ti||me(this,jt).isStale||!cl(n))return;const s=vd(me(this,jt).dataUpdatedAt,n)+1;He(this,Lr,setTimeout(()=>{me(this,jt).isStale||this.updateResult()},s))},el=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(me(this,Je)):this.options.refetchInterval)??!1},tl=function(n){dt(this,rt,il).call(this),He(this,ur,n),!(Ti||En(this.options.enabled,me(this,Je))===!1||!cl(me(this,ur))||me(this,ur)===0)&&He(this,kr,setInterval(()=>{(this.options.refetchIntervalInBackground||yd.isFocused())&&dt(this,rt,mo).call(this)},me(this,ur)))},nl=function(){dt(this,rt,Xu).call(this),dt(this,rt,tl).call(this,dt(this,rt,el).call(this))},rl=function(){me(this,Lr)&&(clearTimeout(me(this,Lr)),He(this,Lr,void 0))},il=function(){me(this,kr)&&(clearInterval(me(this,kr)),He(this,kr,void 0))},ol=function(){const n=me(this,Wt).getQueryCache().build(me(this,Wt),this.options);if(n===me(this,Je))return;const r=me(this,Je);He(this,Je,n),He(this,zi,n.state),this.hasListeners()&&(r==null||r.removeObserver(this),n.addObserver(this))},cd=function(n){Co.batch(()=>{n.listeners&&this.listeners.forEach(r=>{r(me(this,jt))}),me(this,Wt).getQueryCache().notify({query:me(this,Je),type:"observerResultsUpdated"})})},Xc);function Td(i,n){return En(n.enabled,i)!==!1&&i.state.data===void 0&&!(i.state.status==="error"&&n.retryOnMount===!1)}function vl(i,n){return Td(i,n)||i.state.data!==void 0&&Xs(i,n,n.refetchOnMount)}function Xs(i,n,r){if(En(n.enabled,i)!==!1){const s=typeof r=="function"?r(i):r;return s==="always"||s!==!1&&ea(i,n)}return!1}function ml(i,n,r,s){return(i!==n||En(s.enabled,i)===!1)&&(!r.suspense||i.state.status!=="error")&&ea(i,r)}function ea(i,n){return En(n.enabled,i)!==!1&&i.isStaleByTime(xo(n.staleTime,i))}function Dd(i,n){return!So(i.getCurrentResult(),n)}var Ed=(ef=class extends bo{constructor(n,r){super();st(this,Nn);st(this,lr);st(this,cr);st(this,Yt);st(this,Pn);He(this,lr,n),this.setOptions(r),this.bindMethods(),dt(this,Nn,Vs).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var s;const r=this.options;this.options=me(this,lr).defaultMutationOptions(n),So(this.options,r)||me(this,lr).getMutationCache().notify({type:"observerOptionsUpdated",mutation:me(this,Yt),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&fl(r.mutationKey)!==fl(this.options.mutationKey)?this.reset():((s=me(this,Yt))==null?void 0:s.state.status)==="pending"&&me(this,Yt).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=me(this,Yt))==null||n.removeObserver(this)}onMutationUpdate(n){dt(this,Nn,Vs).call(this),dt(this,Nn,sl).call(this,n)}getCurrentResult(){return me(this,cr)}reset(){var n;(n=me(this,Yt))==null||n.removeObserver(this),He(this,Yt,void 0),dt(this,Nn,Vs).call(this),dt(this,Nn,sl).call(this)}mutate(n,r){var s;return He(this,Pn,r),(s=me(this,Yt))==null||s.removeObserver(this),He(this,Yt,me(this,lr).getMutationCache().build(me(this,lr),this.options)),me(this,Yt).addObserver(this),me(this,Yt).execute(n)}},lr=new WeakMap,cr=new WeakMap,Yt=new WeakMap,Pn=new WeakMap,Nn=new WeakSet,Vs=function(){var r;const n=((r=me(this,Yt))==null?void 0:r.state)??Ad();He(this,cr,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},sl=function(n){Co.batch(()=>{var r,s,l,g,h,c,b,C;if(me(this,Pn)&&this.hasListeners()){const O=me(this,cr).variables,L=me(this,cr).context;(n==null?void 0:n.type)==="success"?((s=(r=me(this,Pn)).onSuccess)==null||s.call(r,n.data,O,L),(g=(l=me(this,Pn)).onSettled)==null||g.call(l,n.data,null,O,L)):(n==null?void 0:n.type)==="error"&&((c=(h=me(this,Pn)).onError)==null||c.call(h,n.error,O,L),(C=(b=me(this,Pn)).onSettled)==null||C.call(b,void 0,n.error,O,L))}this.listeners.forEach(O=>{O(me(this,cr))})})},ef),Ao={exports:{}},Di={};/**
21
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),r.useMemoCache(n)}}()),Ks}var ll;function pd(){return ll||(ll=1,process.env.NODE_ENV==="production"?_o.exports=hd():_o.exports=dd()),_o.exports}var un=pd(),bo=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(i){return this.listeners.add(i),this.onSubscribe(),()=>{this.listeners.delete(i),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ti=typeof window>"u"||"Deno"in globalThis;function gd(){}function cl(i){return typeof i=="number"&&i>=0&&i!==1/0}function vd(i,n){return Math.max(i+(n||0)-Date.now(),0)}function xo(i,n){return typeof i=="function"?i(n):i}function En(i,n){return typeof i=="function"?i(n):i}function fl(i){return JSON.stringify(i,(n,r)=>Js(r)?Object.keys(r).sort().reduce((s,l)=>(s[l]=r[l],s),{}):r)}function Qs(i,n){if(i===n)return i;const r=hl(i)&&hl(n);if(r||Js(i)&&Js(n)){const s=r?i:Object.keys(i),l=s.length,p=r?n:Object.keys(n),f=p.length,c=r?[]:{};let b=0;for(let C=0;C<f;C++){const O=r?C:p[C];(!r&&s.includes(O)||r)&&i[O]===void 0&&n[O]===void 0?(c[O]=void 0,b++):(c[O]=Qs(i[O],n[O]),c[O]===i[O]&&i[O]!==void 0&&b++)}return l===f&&b===l?i:c}return n}function So(i,n){if(!n||Object.keys(i).length!==Object.keys(n).length)return!1;for(const r in i)if(i[r]!==n[r])return!1;return!0}function hl(i){return Array.isArray(i)&&i.length===Object.keys(i).length}function Js(i){if(!dl(i))return!1;const n=i.constructor;if(n===void 0)return!0;const r=n.prototype;return!(!dl(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(i)!==Object.prototype)}function dl(i){return Object.prototype.toString.call(i)==="[object Object]"}function pl(i,n,r){if(typeof r.structuralSharing=="function")return r.structuralSharing(i,n);if(r.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return Qs(i,n)}catch(s){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${r.queryHash}]: ${s}`),s}return Qs(i,n)}return n}var md=(Qc=class extends bo{constructor(){super();st(this,Mr);st(this,or);st(this,Xr);He(this,Xr,n=>{if(!Ti&&window.addEventListener){const r=()=>n();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){me(this,or)||this.setEventListener(me(this,Xr))}onUnsubscribe(){var n;this.hasListeners()||((n=me(this,or))==null||n.call(this),He(this,or,void 0))}setEventListener(n){var r;He(this,Xr,n),(r=me(this,or))==null||r.call(this),He(this,or,n(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(n){me(this,Mr)!==n&&(He(this,Mr,n),this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(r=>{r(n)})}isFocused(){var n;return typeof me(this,Mr)=="boolean"?me(this,Mr):((n=globalThis.document)==null?void 0:n.visibilityState)!=="hidden"}},Mr=new WeakMap,or=new WeakMap,Xr=new WeakMap,Qc),yd=new md,wd=(Jc=class extends bo{constructor(){super();st(this,ei,!0);st(this,sr);st(this,ti);He(this,ti,n=>{if(!Ti&&window.addEventListener){const r=()=>n(!0),s=()=>n(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",s)}}})}onSubscribe(){me(this,sr)||this.setEventListener(me(this,ti))}onUnsubscribe(){var n;this.hasListeners()||((n=me(this,sr))==null||n.call(this),He(this,sr,void 0))}setEventListener(n){var r;He(this,ti,n),(r=me(this,sr))==null||r.call(this),He(this,sr,n(this.setOnline.bind(this)))}setOnline(n){me(this,ei)!==n&&(He(this,ei,n),this.listeners.forEach(s=>{s(n)}))}isOnline(){return me(this,ei)}},ei=new WeakMap,sr=new WeakMap,ti=new WeakMap,Jc),_d=new wd;function gl(){let i,n;const r=new Promise((l,p)=>{i=l,n=p});r.status="pending",r.catch(()=>{});function s(l){Object.assign(r,l),delete r.resolve,delete r.reject}return r.resolve=l=>{s({status:"fulfilled",value:l}),i(l)},r.reject=l=>{s({status:"rejected",reason:l}),n(l)},r}function bd(i){return(i??"online")==="online"?_d.isOnline():!0}var xd=i=>setTimeout(i,0);function Sd(){let i=[],n=0,r=c=>{c()},s=c=>{c()},l=xd;const p=c=>{n?i.push(c):l(()=>{r(c)})},f=()=>{const c=i;i=[],c.length&&l(()=>{s(()=>{c.forEach(b=>{r(b)})})})};return{batch:c=>{let b;n++;try{b=c()}finally{n--,n||f()}return b},batchCalls:c=>(...b)=>{p(()=>{c(...b)})},schedule:p,setNotifyFunction:c=>{r=c},setBatchNotifyFunction:c=>{s=c},setScheduler:c=>{l=c}}}var Co=Sd();function Cd(i,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:bd(n.networkMode)?"fetching":"paused",...i===void 0&&{error:null,status:"pending"}}}function Ad(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Od=(Xc=class extends bo{constructor(n,r){super();st(this,rt);st(this,Wt);st(this,Je);st(this,zi);st(this,jt);st(this,Rr);st(this,ni);st(this,ar);st(this,Mn);st(this,Fi);st(this,ri);st(this,ii);st(this,Lr);st(this,kr);st(this,ur);st(this,oi,new Set);this.options=r,He(this,Wt,n),He(this,Mn,null),He(this,ar,gl()),this.options.experimental_prefetchInRender||me(this,ar).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(me(this,Je).addObserver(this),vl(me(this,Je),this.options)?dt(this,rt,mo).call(this):this.updateResult(),dt(this,rt,nl).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Xs(me(this,Je),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Xs(me(this,Je),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,dt(this,rt,rl).call(this),dt(this,rt,il).call(this),me(this,Je).removeObserver(this)}setOptions(n){const r=this.options,s=me(this,Je);if(this.options=me(this,Wt).defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof En(this.options.enabled,me(this,Je))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");dt(this,rt,ol).call(this),me(this,Je).setOptions(this.options),r._defaulted&&!So(this.options,r)&&me(this,Wt).getQueryCache().notify({type:"observerOptionsUpdated",query:me(this,Je),observer:this});const l=this.hasListeners();l&&ml(me(this,Je),s,this.options,r)&&dt(this,rt,mo).call(this),this.updateResult(),l&&(me(this,Je)!==s||En(this.options.enabled,me(this,Je))!==En(r.enabled,me(this,Je))||xo(this.options.staleTime,me(this,Je))!==xo(r.staleTime,me(this,Je)))&&dt(this,rt,Xu).call(this);const p=dt(this,rt,el).call(this);l&&(me(this,Je)!==s||En(this.options.enabled,me(this,Je))!==En(r.enabled,me(this,Je))||p!==me(this,ur))&&dt(this,rt,tl).call(this,p)}getOptimisticResult(n){const r=me(this,Wt).getQueryCache().build(me(this,Wt),n),s=this.createResult(r,n);return Dd(this,s)&&(He(this,jt,s),He(this,ni,this.options),He(this,Rr,me(this,Je).state)),s}getCurrentResult(){return me(this,jt)}trackResult(n,r){const s={};return Object.keys(n).forEach(l=>{Object.defineProperty(s,l,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(l),r==null||r(l),n[l])})}),s}trackProp(n){me(this,oi).add(n)}getCurrentQuery(){return me(this,Je)}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const r=me(this,Wt).defaultQueryOptions(n),s=me(this,Wt).getQueryCache().build(me(this,Wt),r);return s.fetch().then(()=>this.createResult(s,r))}fetch(n){return dt(this,rt,mo).call(this,{...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),me(this,jt)))}createResult(n,r){var re;const s=me(this,Je),l=this.options,p=me(this,jt),f=me(this,Rr),c=me(this,ni),C=n!==s?n.state:me(this,zi),{state:O}=n;let L={...O},k=!1,M;if(r._optimisticResults){const se=this.hasListeners(),pe=!se&&vl(n,r),ie=se&&ml(n,s,r,l);(pe||ie)&&(L={...L,...Cd(O.data,n.options)}),r._optimisticResults==="isRestoring"&&(L.fetchStatus="idle")}let{error:R,errorUpdatedAt:E,status:N}=L;if(r.select&&L.data!==void 0)if(p&&L.data===(f==null?void 0:f.data)&&r.select===me(this,Fi))M=me(this,ri);else try{He(this,Fi,r.select),M=r.select(L.data),M=pl(p==null?void 0:p.data,M,r),He(this,ri,M),He(this,Mn,null)}catch(se){He(this,Mn,se)}else M=L.data;if(r.placeholderData!==void 0&&M===void 0&&N==="pending"){let se;if(p!=null&&p.isPlaceholderData&&r.placeholderData===(c==null?void 0:c.placeholderData))se=p.data;else if(se=typeof r.placeholderData=="function"?r.placeholderData((re=me(this,ii))==null?void 0:re.state.data,me(this,ii)):r.placeholderData,r.select&&se!==void 0)try{se=r.select(se),He(this,Mn,null)}catch(pe){He(this,Mn,pe)}se!==void 0&&(N="success",M=pl(p==null?void 0:p.data,se,r),k=!0)}me(this,Mn)&&(R=me(this,Mn),M=me(this,ri),E=Date.now(),N="error");const Q=L.fetchStatus==="fetching",te=N==="pending",X=N==="error",ae=te&&Q,H=M!==void 0,ee={status:N,fetchStatus:L.fetchStatus,isPending:te,isSuccess:N==="success",isError:X,isInitialLoading:ae,isLoading:ae,data:M,dataUpdatedAt:L.dataUpdatedAt,error:R,errorUpdatedAt:E,failureCount:L.fetchFailureCount,failureReason:L.fetchFailureReason,errorUpdateCount:L.errorUpdateCount,isFetched:L.dataUpdateCount>0||L.errorUpdateCount>0,isFetchedAfterMount:L.dataUpdateCount>C.dataUpdateCount||L.errorUpdateCount>C.errorUpdateCount,isFetching:Q,isRefetching:Q&&!te,isLoadingError:X&&!H,isPaused:L.fetchStatus==="paused",isPlaceholderData:k,isRefetchError:X&&H,isStale:ea(n,r),refetch:this.refetch,promise:me(this,ar)};if(this.options.experimental_prefetchInRender){const se=Ae=>{ee.status==="error"?Ae.reject(ee.error):ee.data!==void 0&&Ae.resolve(ee.data)},pe=()=>{const Ae=He(this,ar,ee.promise=gl());se(Ae)},ie=me(this,ar);switch(ie.status){case"pending":n.queryHash===s.queryHash&&se(ie);break;case"fulfilled":(ee.status==="error"||ee.data!==ie.value)&&pe();break;case"rejected":(ee.status!=="error"||ee.error!==ie.reason)&&pe();break}}return ee}updateResult(){const n=me(this,jt),r=this.createResult(me(this,Je),this.options);if(He(this,Rr,me(this,Je).state),He(this,ni,this.options),me(this,Rr).data!==void 0&&He(this,ii,me(this,Je)),So(r,n))return;He(this,jt,r);const s=()=>{if(!n)return!0;const{notifyOnChangeProps:l}=this.options,p=typeof l=="function"?l():l;if(p==="all"||!p&&!me(this,oi).size)return!0;const f=new Set(p??me(this,oi));return this.options.throwOnError&&f.add("error"),Object.keys(me(this,jt)).some(c=>{const b=c;return me(this,jt)[b]!==n[b]&&f.has(b)})};dt(this,rt,cd).call(this,{listeners:s()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&dt(this,rt,nl).call(this)}},Wt=new WeakMap,Je=new WeakMap,zi=new WeakMap,jt=new WeakMap,Rr=new WeakMap,ni=new WeakMap,ar=new WeakMap,Mn=new WeakMap,Fi=new WeakMap,ri=new WeakMap,ii=new WeakMap,Lr=new WeakMap,kr=new WeakMap,ur=new WeakMap,oi=new WeakMap,rt=new WeakSet,mo=function(n){dt(this,rt,ol).call(this);let r=me(this,Je).fetch(this.options,n);return n!=null&&n.throwOnError||(r=r.catch(gd)),r},Xu=function(){dt(this,rt,rl).call(this);const n=xo(this.options.staleTime,me(this,Je));if(Ti||me(this,jt).isStale||!cl(n))return;const s=vd(me(this,jt).dataUpdatedAt,n)+1;He(this,Lr,setTimeout(()=>{me(this,jt).isStale||this.updateResult()},s))},el=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(me(this,Je)):this.options.refetchInterval)??!1},tl=function(n){dt(this,rt,il).call(this),He(this,ur,n),!(Ti||En(this.options.enabled,me(this,Je))===!1||!cl(me(this,ur))||me(this,ur)===0)&&He(this,kr,setInterval(()=>{(this.options.refetchIntervalInBackground||yd.isFocused())&&dt(this,rt,mo).call(this)},me(this,ur)))},nl=function(){dt(this,rt,Xu).call(this),dt(this,rt,tl).call(this,dt(this,rt,el).call(this))},rl=function(){me(this,Lr)&&(clearTimeout(me(this,Lr)),He(this,Lr,void 0))},il=function(){me(this,kr)&&(clearInterval(me(this,kr)),He(this,kr,void 0))},ol=function(){const n=me(this,Wt).getQueryCache().build(me(this,Wt),this.options);if(n===me(this,Je))return;const r=me(this,Je);He(this,Je,n),He(this,zi,n.state),this.hasListeners()&&(r==null||r.removeObserver(this),n.addObserver(this))},cd=function(n){Co.batch(()=>{n.listeners&&this.listeners.forEach(r=>{r(me(this,jt))}),me(this,Wt).getQueryCache().notify({query:me(this,Je),type:"observerResultsUpdated"})})},Xc);function Td(i,n){return En(n.enabled,i)!==!1&&i.state.data===void 0&&!(i.state.status==="error"&&n.retryOnMount===!1)}function vl(i,n){return Td(i,n)||i.state.data!==void 0&&Xs(i,n,n.refetchOnMount)}function Xs(i,n,r){if(En(n.enabled,i)!==!1){const s=typeof r=="function"?r(i):r;return s==="always"||s!==!1&&ea(i,n)}return!1}function ml(i,n,r,s){return(i!==n||En(s.enabled,i)===!1)&&(!r.suspense||i.state.status!=="error")&&ea(i,r)}function ea(i,n){return En(n.enabled,i)!==!1&&i.isStaleByTime(xo(n.staleTime,i))}function Dd(i,n){return!So(i.getCurrentResult(),n)}var Ed=(ef=class extends bo{constructor(n,r){super();st(this,Nn);st(this,lr);st(this,cr);st(this,Yt);st(this,Pn);He(this,lr,n),this.setOptions(r),this.bindMethods(),dt(this,Nn,Vs).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var s;const r=this.options;this.options=me(this,lr).defaultMutationOptions(n),So(this.options,r)||me(this,lr).getMutationCache().notify({type:"observerOptionsUpdated",mutation:me(this,Yt),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&fl(r.mutationKey)!==fl(this.options.mutationKey)?this.reset():((s=me(this,Yt))==null?void 0:s.state.status)==="pending"&&me(this,Yt).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=me(this,Yt))==null||n.removeObserver(this)}onMutationUpdate(n){dt(this,Nn,Vs).call(this),dt(this,Nn,sl).call(this,n)}getCurrentResult(){return me(this,cr)}reset(){var n;(n=me(this,Yt))==null||n.removeObserver(this),He(this,Yt,void 0),dt(this,Nn,Vs).call(this),dt(this,Nn,sl).call(this)}mutate(n,r){var s;return He(this,Pn,r),(s=me(this,Yt))==null||s.removeObserver(this),He(this,Yt,me(this,lr).getMutationCache().build(me(this,lr),this.options)),me(this,Yt).addObserver(this),me(this,Yt).execute(n)}},lr=new WeakMap,cr=new WeakMap,Yt=new WeakMap,Pn=new WeakMap,Nn=new WeakSet,Vs=function(){var r;const n=((r=me(this,Yt))==null?void 0:r.state)??Ad();He(this,cr,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},sl=function(n){Co.batch(()=>{var r,s,l,p,f,c,b,C;if(me(this,Pn)&&this.hasListeners()){const O=me(this,cr).variables,L=me(this,cr).context;(n==null?void 0:n.type)==="success"?((s=(r=me(this,Pn)).onSuccess)==null||s.call(r,n.data,O,L),(p=(l=me(this,Pn)).onSettled)==null||p.call(l,n.data,null,O,L)):(n==null?void 0:n.type)==="error"&&((c=(f=me(this,Pn)).onError)==null||c.call(f,n.error,O,L),(C=(b=me(this,Pn)).onSettled)==null||C.call(b,void 0,n.error,O,L))}this.listeners.forEach(O=>{O(me(this,cr))})})},ef),Ao={exports:{}},Di={};/**
22
22
  * @license React
23
23
  * react-jsx-runtime.production.js
24
24
  *
@@ -26,7 +26,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
26
26
  *
27
27
  * This source code is licensed under the MIT license found in the
28
28
  * LICENSE file in the root directory of this source tree.
29
- */var yl;function Md(){if(yl)return Di;yl=1;var i=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(s,l,g){var h=null;if(g!==void 0&&(h=""+g),l.key!==void 0&&(h=""+l.key),"key"in l){g={};for(var c in l)c!=="key"&&(g[c]=l[c])}else g=l;return l=g.ref,{$$typeof:i,type:s,key:h,ref:l!==void 0?l:null,props:g}}return Di.Fragment=n,Di.jsx=r,Di.jsxs=r,Di}var Ei={};/**
29
+ */var yl;function Md(){if(yl)return Di;yl=1;var i=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(s,l,p){var f=null;if(p!==void 0&&(f=""+p),l.key!==void 0&&(f=""+l.key),"key"in l){p={};for(var c in l)c!=="key"&&(p[c]=l[c])}else p=l;return l=p.ref,{$$typeof:i,type:s,key:f,ref:l!==void 0?l:null,props:p}}return Di.Fragment=n,Di.jsx=r,Di.jsxs=r,Di}var Ei={};/**
30
30
  * @license React
31
31
  * react-jsx-runtime.development.js
32
32
  *
@@ -34,12 +34,12 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
34
34
  *
35
35
  * This source code is licensed under the MIT license found in the
36
36
  * LICENSE file in the root directory of this source tree.
37
- */var wl;function Rd(){return wl||(wl=1,process.env.NODE_ENV!=="production"&&function(){function i(v){if(v==null)return null;if(typeof v=="function")return v.$$typeof===pe?null:v.displayName||v.name||null;if(typeof v=="string")return v;switch(v){case E:return"Fragment";case Q:return"Profiler";case N:return"StrictMode";case G:return"Suspense";case de:return"SuspenseList";case se:return"Activity"}if(typeof v=="object")switch(typeof v.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),v.$$typeof){case R:return"Portal";case ee:return(v.displayName||"Context")+".Provider";case te:return(v._context.displayName||"Context")+".Consumer";case ue:var m=v.render;return v=v.displayName,v||(v=m.displayName||m.name||"",v=v!==""?"ForwardRef("+v+")":"ForwardRef"),v;case ne:return m=v.displayName||null,m!==null?m:i(v.type)||"Memo";case re:m=v._payload,v=v._init;try{return i(v(m))}catch{}}return null}function n(v){return""+v}function r(v){try{n(v);var m=!1}catch{m=!0}if(m){m=console;var D=m.error,Y=typeof Symbol=="function"&&Symbol.toStringTag&&v[Symbol.toStringTag]||v.constructor.name||"Object";return D.call(m,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Y),n(v)}}function s(v){if(v===E)return"<>";if(typeof v=="object"&&v!==null&&v.$$typeof===re)return"<...>";try{var m=i(v);return m?"<"+m+">":"<...>"}catch{return"<...>"}}function l(){var v=ie.A;return v===null?null:v.getOwner()}function g(){return Error("react-stack-top-frame")}function h(v){if(Ae.call(v,"key")){var m=Object.getOwnPropertyDescriptor(v,"key").get;if(m&&m.isReactWarning)return!1}return v.key!==void 0}function c(v,m){function D(){I||(I=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",m))}D.isReactWarning=!0,Object.defineProperty(v,"key",{get:D,configurable:!0})}function b(){var v=i(this.type);return T[v]||(T[v]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),v=this.props.ref,v!==void 0?v:null}function C(v,m,D,Y,Z,ce,he,we){return D=ce.ref,v={$$typeof:M,type:v,key:m,props:ce,_owner:Z},(D!==void 0?D:null)!==null?Object.defineProperty(v,"ref",{enumerable:!1,get:b}):Object.defineProperty(v,"ref",{enumerable:!1,value:null}),v._store={},Object.defineProperty(v._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(v,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(v,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:he}),Object.defineProperty(v,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:we}),Object.freeze&&(Object.freeze(v.props),Object.freeze(v)),v}function O(v,m,D,Y,Z,ce,he,we){var J=m.children;if(J!==void 0)if(Y)if(Oe(J)){for(Y=0;Y<J.length;Y++)L(J[Y]);Object.freeze&&Object.freeze(J)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else L(J);if(Ae.call(m,"key")){J=i(v);var le=Object.keys(m).filter(function(be){return be!=="key"});Y=0<le.length?"{key: someKey, "+le.join(": ..., ")+": ...}":"{key: someKey}",_[J+Y]||(le=0<le.length?"{"+le.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
37
+ */var wl;function Rd(){return wl||(wl=1,process.env.NODE_ENV!=="production"&&function(){function i(g){if(g==null)return null;if(typeof g=="function")return g.$$typeof===pe?null:g.displayName||g.name||null;if(typeof g=="string")return g;switch(g){case E:return"Fragment";case Q:return"Profiler";case N:return"StrictMode";case H:return"Suspense";case fe:return"SuspenseList";case se:return"Activity"}if(typeof g=="object")switch(typeof g.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),g.$$typeof){case R:return"Portal";case X:return(g.displayName||"Context")+".Provider";case te:return(g._context.displayName||"Context")+".Consumer";case ae:var m=g.render;return g=g.displayName,g||(g=m.displayName||m.name||"",g=g!==""?"ForwardRef("+g+")":"ForwardRef"),g;case ee:return m=g.displayName||null,m!==null?m:i(g.type)||"Memo";case re:m=g._payload,g=g._init;try{return i(g(m))}catch{}}return null}function n(g){return""+g}function r(g){try{n(g);var m=!1}catch{m=!0}if(m){m=console;var T=m.error,Y=typeof Symbol=="function"&&Symbol.toStringTag&&g[Symbol.toStringTag]||g.constructor.name||"Object";return T.call(m,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Y),n(g)}}function s(g){if(g===E)return"<>";if(typeof g=="object"&&g!==null&&g.$$typeof===re)return"<...>";try{var m=i(g);return m?"<"+m+">":"<...>"}catch{return"<...>"}}function l(){var g=ie.A;return g===null?null:g.getOwner()}function p(){return Error("react-stack-top-frame")}function f(g){if(Ae.call(g,"key")){var m=Object.getOwnPropertyDescriptor(g,"key").get;if(m&&m.isReactWarning)return!1}return g.key!==void 0}function c(g,m){function T(){I||(I=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",m))}T.isReactWarning=!0,Object.defineProperty(g,"key",{get:T,configurable:!0})}function b(){var g=i(this.type);return A[g]||(A[g]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),g=this.props.ref,g!==void 0?g:null}function C(g,m,T,Y,Z,ce,de,we){return T=ce.ref,g={$$typeof:M,type:g,key:m,props:ce,_owner:Z},(T!==void 0?T:null)!==null?Object.defineProperty(g,"ref",{enumerable:!1,get:b}):Object.defineProperty(g,"ref",{enumerable:!1,value:null}),g._store={},Object.defineProperty(g._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(g,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(g,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:de}),Object.defineProperty(g,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:we}),Object.freeze&&(Object.freeze(g.props),Object.freeze(g)),g}function O(g,m,T,Y,Z,ce,de,we){var J=m.children;if(J!==void 0)if(Y)if(Oe(J)){for(Y=0;Y<J.length;Y++)L(J[Y]);Object.freeze&&Object.freeze(J)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else L(J);if(Ae.call(m,"key")){J=i(g);var le=Object.keys(m).filter(function(be){return be!=="key"});Y=0<le.length?"{key: someKey, "+le.join(": ..., ")+": ...}":"{key: someKey}",_[J+Y]||(le=0<le.length?"{"+le.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
38
38
  let props = %s;
39
39
  <%s {...props} />
40
40
  React keys must be passed directly to JSX without using spread:
41
41
  let props = %s;
42
- <%s key={someKey} {...props} />`,Y,J,le,J),_[J+Y]=!0)}if(J=null,D!==void 0&&(r(D),J=""+D),h(m)&&(r(m.key),J=""+m.key),"key"in m){D={};for(var Ce in m)Ce!=="key"&&(D[Ce]=m[Ce])}else D=m;return J&&c(D,typeof v=="function"?v.displayName||v.name||"Unknown":v),C(v,J,ce,Z,l(),D,he,we)}function L(v){typeof v=="object"&&v!==null&&v.$$typeof===M&&v._store&&(v._store.validated=1)}var k=ye,M=Symbol.for("react.transitional.element"),R=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),te=Symbol.for("react.consumer"),ee=Symbol.for("react.context"),ue=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),de=Symbol.for("react.suspense_list"),ne=Symbol.for("react.memo"),re=Symbol.for("react.lazy"),se=Symbol.for("react.activity"),pe=Symbol.for("react.client.reference"),ie=k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ae=Object.prototype.hasOwnProperty,Oe=Array.isArray,j=console.createTask?console.createTask:function(){return null};k={"react-stack-bottom-frame":function(v){return v()}};var I,T={},p=k["react-stack-bottom-frame"].bind(k,g)(),f=j(s(g)),_={};Ei.Fragment=E,Ei.jsx=function(v,m,D,Y,Z){var ce=1e4>ie.recentlyCreatedOwnerStacks++;return O(v,m,D,!1,Y,Z,ce?Error("react-stack-top-frame"):p,ce?j(s(v)):f)},Ei.jsxs=function(v,m,D,Y,Z){var ce=1e4>ie.recentlyCreatedOwnerStacks++;return O(v,m,D,!0,Y,Z,ce?Error("react-stack-top-frame"):p,ce?j(s(v)):f)}}()),Ei}var _l;function Ld(){return _l||(_l=1,process.env.NODE_ENV==="production"?Ao.exports=Md():Ao.exports=Rd()),Ao.exports}var A=Ld(),bl=Mt.createContext(void 0),xl=i=>{const n=Mt.useContext(bl);if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},Sl=({client:i,children:n})=>(Mt.useEffect(()=>(i.mount(),()=>{i.unmount()}),[i]),A.jsx(bl.Provider,{value:i,children:n})),Cl=Mt.createContext(!1),kd=()=>Mt.useContext(Cl);Cl.Provider;function Id(){let i=!1;return{clearReset:()=>{i=!1},reset:()=>{i=!0},isReset:()=>i}}var $d=Mt.createContext(Id()),Pd=()=>Mt.useContext($d);function Al(i,n){return typeof i=="function"?i(...n):!!i}function ta(){}var Nd=(i,n)=>{(i.suspense||i.throwOnError||i.experimental_prefetchInRender)&&(n.isReset()||(i.retryOnMount=!1))},Bd=i=>{Mt.useEffect(()=>{i.clearReset()},[i])},jd=({result:i,errorResetBoundary:n,throwOnError:r,query:s,suspense:l})=>i.isError&&!n.isReset()&&!i.isFetching&&s&&(l&&i.data===void 0||Al(r,[i.error,s])),Ud=i=>{const n=i.staleTime;i.suspense&&(i.staleTime=typeof n=="function"?(...r)=>Math.max(n(...r),1e3):Math.max(n??1e3,1e3),typeof i.gcTime=="number"&&(i.gcTime=Math.max(i.gcTime,1e3)))},zd=(i,n)=>i.isLoading&&i.isFetching&&!n,Fd=(i,n)=>(i==null?void 0:i.suspense)&&n.isPending,Ol=(i,n,r)=>n.fetchOptimistic(i).catch(()=>{r.clearReset()});function Wd(i,n,r){var L,k,M,R,E;if(process.env.NODE_ENV!=="production"&&(typeof i!="object"||Array.isArray(i)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const s=xl(),l=kd(),g=Pd(),h=s.defaultQueryOptions(i);(k=(L=s.getDefaultOptions().queries)==null?void 0:L._experimental_beforeQuery)==null||k.call(L,h),process.env.NODE_ENV!=="production"&&(h.queryFn||console.error(`[${h.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`)),h._optimisticResults=l?"isRestoring":"optimistic",Ud(h),Nd(h,g),Bd(g);const c=!s.getQueryCache().get(h.queryHash),[b]=Mt.useState(()=>new n(s,h)),C=b.getOptimisticResult(h),O=!l&&i.subscribed!==!1;if(Mt.useSyncExternalStore(Mt.useCallback(N=>{const Q=O?b.subscribe(Co.batchCalls(N)):ta;return b.updateResult(),Q},[b,O]),()=>b.getCurrentResult(),()=>b.getCurrentResult()),Mt.useEffect(()=>{b.setOptions(h)},[h,b]),Fd(h,C))throw Ol(h,b,g);if(jd({result:C,errorResetBoundary:g,throwOnError:h.throwOnError,query:s.getQueryCache().get(h.queryHash),suspense:h.suspense}))throw C.error;if((R=(M=s.getDefaultOptions().queries)==null?void 0:M._experimental_afterQuery)==null||R.call(M,h,C),h.experimental_prefetchInRender&&!Ti&&zd(C,l)){const N=c?Ol(h,b,g):(E=s.getQueryCache().get(h.queryHash))==null?void 0:E.promise;N==null||N.catch(ta).finally(()=>{b.updateResult()})}return h.notifyOnChangeProps?C:b.trackResult(C)}function Tl(i,n){return Wd(i,Od)}function na(i,n){const r=xl(),[s]=Mt.useState(()=>new Ed(r,i));Mt.useEffect(()=>{s.setOptions(i)},[s,i]);const l=Mt.useSyncExternalStore(Mt.useCallback(h=>s.subscribe(Co.batchCalls(h)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),g=Mt.useCallback((h,c)=>{s.mutate(h,c).catch(ta)},[s]);if(l.error&&Al(s.options.throwOnError,[l.error]))throw l.error;return{...l,mutate:g,mutateAsync:l.mutate}}var Dl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ra(i){if(Object.prototype.hasOwnProperty.call(i,"__esModule"))return i;var n=i.default;if(typeof n=="function"){var r=function s(){return this instanceof s?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};r.prototype=n.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(i).forEach(function(s){var l=Object.getOwnPropertyDescriptor(i,s);Object.defineProperty(r,s,l.get?l:{enumerable:!0,get:function(){return i[s]}})}),r}var ia={exports:{}},Mi={};/**
42
+ <%s key={someKey} {...props} />`,Y,J,le,J),_[J+Y]=!0)}if(J=null,T!==void 0&&(r(T),J=""+T),f(m)&&(r(m.key),J=""+m.key),"key"in m){T={};for(var Ce in m)Ce!=="key"&&(T[Ce]=m[Ce])}else T=m;return J&&c(T,typeof g=="function"?g.displayName||g.name||"Unknown":g),C(g,J,ce,Z,l(),T,de,we)}function L(g){typeof g=="object"&&g!==null&&g.$$typeof===M&&g._store&&(g._store.validated=1)}var k=ye,M=Symbol.for("react.transitional.element"),R=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),te=Symbol.for("react.consumer"),X=Symbol.for("react.context"),ae=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),fe=Symbol.for("react.suspense_list"),ee=Symbol.for("react.memo"),re=Symbol.for("react.lazy"),se=Symbol.for("react.activity"),pe=Symbol.for("react.client.reference"),ie=k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ae=Object.prototype.hasOwnProperty,Oe=Array.isArray,j=console.createTask?console.createTask:function(){return null};k={"react-stack-bottom-frame":function(g){return g()}};var I,A={},v=k["react-stack-bottom-frame"].bind(k,p)(),d=j(s(p)),_={};Ei.Fragment=E,Ei.jsx=function(g,m,T,Y,Z){var ce=1e4>ie.recentlyCreatedOwnerStacks++;return O(g,m,T,!1,Y,Z,ce?Error("react-stack-top-frame"):v,ce?j(s(g)):d)},Ei.jsxs=function(g,m,T,Y,Z){var ce=1e4>ie.recentlyCreatedOwnerStacks++;return O(g,m,T,!0,Y,Z,ce?Error("react-stack-top-frame"):v,ce?j(s(g)):d)}}()),Ei}var _l;function Ld(){return _l||(_l=1,process.env.NODE_ENV==="production"?Ao.exports=Md():Ao.exports=Rd()),Ao.exports}var D=Ld(),bl=Mt.createContext(void 0),xl=i=>{const n=Mt.useContext(bl);if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},Sl=({client:i,children:n})=>(Mt.useEffect(()=>(i.mount(),()=>{i.unmount()}),[i]),D.jsx(bl.Provider,{value:i,children:n})),Cl=Mt.createContext(!1),kd=()=>Mt.useContext(Cl);Cl.Provider;function Id(){let i=!1;return{clearReset:()=>{i=!1},reset:()=>{i=!0},isReset:()=>i}}var $d=Mt.createContext(Id()),Pd=()=>Mt.useContext($d);function Al(i,n){return typeof i=="function"?i(...n):!!i}function ta(){}var Nd=(i,n)=>{(i.suspense||i.throwOnError||i.experimental_prefetchInRender)&&(n.isReset()||(i.retryOnMount=!1))},Bd=i=>{Mt.useEffect(()=>{i.clearReset()},[i])},jd=({result:i,errorResetBoundary:n,throwOnError:r,query:s,suspense:l})=>i.isError&&!n.isReset()&&!i.isFetching&&s&&(l&&i.data===void 0||Al(r,[i.error,s])),Ud=i=>{const n=i.staleTime;i.suspense&&(i.staleTime=typeof n=="function"?(...r)=>Math.max(n(...r),1e3):Math.max(n??1e3,1e3),typeof i.gcTime=="number"&&(i.gcTime=Math.max(i.gcTime,1e3)))},zd=(i,n)=>i.isLoading&&i.isFetching&&!n,Fd=(i,n)=>(i==null?void 0:i.suspense)&&n.isPending,Ol=(i,n,r)=>n.fetchOptimistic(i).catch(()=>{r.clearReset()});function Wd(i,n,r){var L,k,M,R,E;if(process.env.NODE_ENV!=="production"&&(typeof i!="object"||Array.isArray(i)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const s=xl(),l=kd(),p=Pd(),f=s.defaultQueryOptions(i);(k=(L=s.getDefaultOptions().queries)==null?void 0:L._experimental_beforeQuery)==null||k.call(L,f),process.env.NODE_ENV!=="production"&&(f.queryFn||console.error(`[${f.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`)),f._optimisticResults=l?"isRestoring":"optimistic",Ud(f),Nd(f,p),Bd(p);const c=!s.getQueryCache().get(f.queryHash),[b]=Mt.useState(()=>new n(s,f)),C=b.getOptimisticResult(f),O=!l&&i.subscribed!==!1;if(Mt.useSyncExternalStore(Mt.useCallback(N=>{const Q=O?b.subscribe(Co.batchCalls(N)):ta;return b.updateResult(),Q},[b,O]),()=>b.getCurrentResult(),()=>b.getCurrentResult()),Mt.useEffect(()=>{b.setOptions(f)},[f,b]),Fd(f,C))throw Ol(f,b,p);if(jd({result:C,errorResetBoundary:p,throwOnError:f.throwOnError,query:s.getQueryCache().get(f.queryHash),suspense:f.suspense}))throw C.error;if((R=(M=s.getDefaultOptions().queries)==null?void 0:M._experimental_afterQuery)==null||R.call(M,f,C),f.experimental_prefetchInRender&&!Ti&&zd(C,l)){const N=c?Ol(f,b,p):(E=s.getQueryCache().get(f.queryHash))==null?void 0:E.promise;N==null||N.catch(ta).finally(()=>{b.updateResult()})}return f.notifyOnChangeProps?C:b.trackResult(C)}function Tl(i,n){return Wd(i,Od)}function na(i,n){const r=xl(),[s]=Mt.useState(()=>new Ed(r,i));Mt.useEffect(()=>{s.setOptions(i)},[s,i]);const l=Mt.useSyncExternalStore(Mt.useCallback(f=>s.subscribe(Co.batchCalls(f)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),p=Mt.useCallback((f,c)=>{s.mutate(f,c).catch(ta)},[s]);if(l.error&&Al(s.options.throwOnError,[l.error]))throw l.error;return{...l,mutate:p,mutateAsync:l.mutate}}var Dl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ra(i){if(Object.prototype.hasOwnProperty.call(i,"__esModule"))return i;var n=i.default;if(typeof n=="function"){var r=function s(){return this instanceof s?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};r.prototype=n.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(i).forEach(function(s){var l=Object.getOwnPropertyDescriptor(i,s);Object.defineProperty(r,s,l.get?l:{enumerable:!0,get:function(){return i[s]}})}),r}var ia={exports:{}},Mi={};/**
43
43
  * @license React
44
44
  * react-jsx-runtime.production.js
45
45
  *
@@ -47,7 +47,7 @@ React keys must be passed directly to JSX without using spread:
47
47
  *
48
48
  * This source code is licensed under the MIT license found in the
49
49
  * LICENSE file in the root directory of this source tree.
50
- */var El;function Yd(){if(El)return Mi;El=1;var i=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(s,l,g){var h=null;if(g!==void 0&&(h=""+g),l.key!==void 0&&(h=""+l.key),"key"in l){g={};for(var c in l)c!=="key"&&(g[c]=l[c])}else g=l;return l=g.ref,{$$typeof:i,type:s,key:h,ref:l!==void 0?l:null,props:g}}return Mi.Fragment=n,Mi.jsx=r,Mi.jsxs=r,Mi}var Oo={};/**
50
+ */var El;function Yd(){if(El)return Mi;El=1;var i=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(s,l,p){var f=null;if(p!==void 0&&(f=""+p),l.key!==void 0&&(f=""+l.key),"key"in l){p={};for(var c in l)c!=="key"&&(p[c]=l[c])}else p=l;return l=p.ref,{$$typeof:i,type:s,key:f,ref:l!==void 0?l:null,props:p}}return Mi.Fragment=n,Mi.jsx=r,Mi.jsxs=r,Mi}var Oo={};/**
51
51
  * @license React
52
52
  * react-jsx-runtime.development.js
53
53
  *
@@ -55,12 +55,12 @@ React keys must be passed directly to JSX without using spread:
55
55
  *
56
56
  * This source code is licensed under the MIT license found in the
57
57
  * LICENSE file in the root directory of this source tree.
58
- */var Ml;function qd(){return Ml||(Ml=1,process.env.NODE_ENV!=="production"&&function(){function i(v){if(v==null)return null;if(typeof v=="function")return v.$$typeof===pe?null:v.displayName||v.name||null;if(typeof v=="string")return v;switch(v){case E:return"Fragment";case Q:return"Profiler";case N:return"StrictMode";case G:return"Suspense";case de:return"SuspenseList";case se:return"Activity"}if(typeof v=="object")switch(typeof v.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),v.$$typeof){case R:return"Portal";case ee:return(v.displayName||"Context")+".Provider";case te:return(v._context.displayName||"Context")+".Consumer";case ue:var m=v.render;return v=v.displayName,v||(v=m.displayName||m.name||"",v=v!==""?"ForwardRef("+v+")":"ForwardRef"),v;case ne:return m=v.displayName||null,m!==null?m:i(v.type)||"Memo";case re:m=v._payload,v=v._init;try{return i(v(m))}catch{}}return null}function n(v){return""+v}function r(v){try{n(v);var m=!1}catch{m=!0}if(m){m=console;var D=m.error,Y=typeof Symbol=="function"&&Symbol.toStringTag&&v[Symbol.toStringTag]||v.constructor.name||"Object";return D.call(m,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Y),n(v)}}function s(v){if(v===E)return"<>";if(typeof v=="object"&&v!==null&&v.$$typeof===re)return"<...>";try{var m=i(v);return m?"<"+m+">":"<...>"}catch{return"<...>"}}function l(){var v=ie.A;return v===null?null:v.getOwner()}function g(){return Error("react-stack-top-frame")}function h(v){if(Ae.call(v,"key")){var m=Object.getOwnPropertyDescriptor(v,"key").get;if(m&&m.isReactWarning)return!1}return v.key!==void 0}function c(v,m){function D(){I||(I=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",m))}D.isReactWarning=!0,Object.defineProperty(v,"key",{get:D,configurable:!0})}function b(){var v=i(this.type);return T[v]||(T[v]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),v=this.props.ref,v!==void 0?v:null}function C(v,m,D,Y,Z,ce,he,we){return D=ce.ref,v={$$typeof:M,type:v,key:m,props:ce,_owner:Z},(D!==void 0?D:null)!==null?Object.defineProperty(v,"ref",{enumerable:!1,get:b}):Object.defineProperty(v,"ref",{enumerable:!1,value:null}),v._store={},Object.defineProperty(v._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(v,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(v,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:he}),Object.defineProperty(v,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:we}),Object.freeze&&(Object.freeze(v.props),Object.freeze(v)),v}function O(v,m,D,Y,Z,ce,he,we){var J=m.children;if(J!==void 0)if(Y)if(Oe(J)){for(Y=0;Y<J.length;Y++)L(J[Y]);Object.freeze&&Object.freeze(J)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else L(J);if(Ae.call(m,"key")){J=i(v);var le=Object.keys(m).filter(function(be){return be!=="key"});Y=0<le.length?"{key: someKey, "+le.join(": ..., ")+": ...}":"{key: someKey}",_[J+Y]||(le=0<le.length?"{"+le.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
58
+ */var Ml;function qd(){return Ml||(Ml=1,process.env.NODE_ENV!=="production"&&function(){function i(g){if(g==null)return null;if(typeof g=="function")return g.$$typeof===pe?null:g.displayName||g.name||null;if(typeof g=="string")return g;switch(g){case E:return"Fragment";case Q:return"Profiler";case N:return"StrictMode";case H:return"Suspense";case fe:return"SuspenseList";case se:return"Activity"}if(typeof g=="object")switch(typeof g.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),g.$$typeof){case R:return"Portal";case X:return(g.displayName||"Context")+".Provider";case te:return(g._context.displayName||"Context")+".Consumer";case ae:var m=g.render;return g=g.displayName,g||(g=m.displayName||m.name||"",g=g!==""?"ForwardRef("+g+")":"ForwardRef"),g;case ee:return m=g.displayName||null,m!==null?m:i(g.type)||"Memo";case re:m=g._payload,g=g._init;try{return i(g(m))}catch{}}return null}function n(g){return""+g}function r(g){try{n(g);var m=!1}catch{m=!0}if(m){m=console;var T=m.error,Y=typeof Symbol=="function"&&Symbol.toStringTag&&g[Symbol.toStringTag]||g.constructor.name||"Object";return T.call(m,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Y),n(g)}}function s(g){if(g===E)return"<>";if(typeof g=="object"&&g!==null&&g.$$typeof===re)return"<...>";try{var m=i(g);return m?"<"+m+">":"<...>"}catch{return"<...>"}}function l(){var g=ie.A;return g===null?null:g.getOwner()}function p(){return Error("react-stack-top-frame")}function f(g){if(Ae.call(g,"key")){var m=Object.getOwnPropertyDescriptor(g,"key").get;if(m&&m.isReactWarning)return!1}return g.key!==void 0}function c(g,m){function T(){I||(I=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",m))}T.isReactWarning=!0,Object.defineProperty(g,"key",{get:T,configurable:!0})}function b(){var g=i(this.type);return A[g]||(A[g]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),g=this.props.ref,g!==void 0?g:null}function C(g,m,T,Y,Z,ce,de,we){return T=ce.ref,g={$$typeof:M,type:g,key:m,props:ce,_owner:Z},(T!==void 0?T:null)!==null?Object.defineProperty(g,"ref",{enumerable:!1,get:b}):Object.defineProperty(g,"ref",{enumerable:!1,value:null}),g._store={},Object.defineProperty(g._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(g,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(g,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:de}),Object.defineProperty(g,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:we}),Object.freeze&&(Object.freeze(g.props),Object.freeze(g)),g}function O(g,m,T,Y,Z,ce,de,we){var J=m.children;if(J!==void 0)if(Y)if(Oe(J)){for(Y=0;Y<J.length;Y++)L(J[Y]);Object.freeze&&Object.freeze(J)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else L(J);if(Ae.call(m,"key")){J=i(g);var le=Object.keys(m).filter(function(be){return be!=="key"});Y=0<le.length?"{key: someKey, "+le.join(": ..., ")+": ...}":"{key: someKey}",_[J+Y]||(le=0<le.length?"{"+le.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
59
59
  let props = %s;
60
60
  <%s {...props} />
61
61
  React keys must be passed directly to JSX without using spread:
62
62
  let props = %s;
63
- <%s key={someKey} {...props} />`,Y,J,le,J),_[J+Y]=!0)}if(J=null,D!==void 0&&(r(D),J=""+D),h(m)&&(r(m.key),J=""+m.key),"key"in m){D={};for(var Ce in m)Ce!=="key"&&(D[Ce]=m[Ce])}else D=m;return J&&c(D,typeof v=="function"?v.displayName||v.name||"Unknown":v),C(v,J,ce,Z,l(),D,he,we)}function L(v){typeof v=="object"&&v!==null&&v.$$typeof===M&&v._store&&(v._store.validated=1)}var k=ye,M=Symbol.for("react.transitional.element"),R=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),te=Symbol.for("react.consumer"),ee=Symbol.for("react.context"),ue=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),de=Symbol.for("react.suspense_list"),ne=Symbol.for("react.memo"),re=Symbol.for("react.lazy"),se=Symbol.for("react.activity"),pe=Symbol.for("react.client.reference"),ie=k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ae=Object.prototype.hasOwnProperty,Oe=Array.isArray,j=console.createTask?console.createTask:function(){return null};k={"react-stack-bottom-frame":function(v){return v()}};var I,T={},p=k["react-stack-bottom-frame"].bind(k,g)(),f=j(s(g)),_={};Oo.Fragment=E,Oo.jsx=function(v,m,D,Y,Z){var ce=1e4>ie.recentlyCreatedOwnerStacks++;return O(v,m,D,!1,Y,Z,ce?Error("react-stack-top-frame"):p,ce?j(s(v)):f)},Oo.jsxs=function(v,m,D,Y,Z){var ce=1e4>ie.recentlyCreatedOwnerStacks++;return O(v,m,D,!0,Y,Z,ce?Error("react-stack-top-frame"):p,ce?j(s(v)):f)}}()),Oo}var Rl;function Hd(){return Rl||(Rl=1,process.env.NODE_ENV==="production"?ia.exports=Yd():ia.exports=qd()),ia.exports}Hd();var oa={exports:{}},sa={};/**
63
+ <%s key={someKey} {...props} />`,Y,J,le,J),_[J+Y]=!0)}if(J=null,T!==void 0&&(r(T),J=""+T),f(m)&&(r(m.key),J=""+m.key),"key"in m){T={};for(var Ce in m)Ce!=="key"&&(T[Ce]=m[Ce])}else T=m;return J&&c(T,typeof g=="function"?g.displayName||g.name||"Unknown":g),C(g,J,ce,Z,l(),T,de,we)}function L(g){typeof g=="object"&&g!==null&&g.$$typeof===M&&g._store&&(g._store.validated=1)}var k=ye,M=Symbol.for("react.transitional.element"),R=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),te=Symbol.for("react.consumer"),X=Symbol.for("react.context"),ae=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),fe=Symbol.for("react.suspense_list"),ee=Symbol.for("react.memo"),re=Symbol.for("react.lazy"),se=Symbol.for("react.activity"),pe=Symbol.for("react.client.reference"),ie=k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ae=Object.prototype.hasOwnProperty,Oe=Array.isArray,j=console.createTask?console.createTask:function(){return null};k={"react-stack-bottom-frame":function(g){return g()}};var I,A={},v=k["react-stack-bottom-frame"].bind(k,p)(),d=j(s(p)),_={};Oo.Fragment=E,Oo.jsx=function(g,m,T,Y,Z){var ce=1e4>ie.recentlyCreatedOwnerStacks++;return O(g,m,T,!1,Y,Z,ce?Error("react-stack-top-frame"):v,ce?j(s(g)):d)},Oo.jsxs=function(g,m,T,Y,Z){var ce=1e4>ie.recentlyCreatedOwnerStacks++;return O(g,m,T,!0,Y,Z,ce?Error("react-stack-top-frame"):v,ce?j(s(g)):d)}}()),Oo}var Rl;function Hd(){return Rl||(Rl=1,process.env.NODE_ENV==="production"?ia.exports=Yd():ia.exports=qd()),ia.exports}Hd();var oa={exports:{}},sa={};/**
64
64
  * @license React
65
65
  * react-compiler-runtime.production.js
66
66
  *
@@ -83,12 +83,12 @@ React keys must be passed directly to JSX without using spread:
83
83
  See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),r.useMemoCache(n)}}()),kl}var $l;function Zd(){return $l||($l=1,process.env.NODE_ENV==="production"?oa.exports=Gd():oa.exports=Vd()),oa.exports}Zd();/*!
84
84
  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
85
85
  * SPDX-License-Identifier: Apache-2.0
86
- */var Pl={},Ri={},Nl;function Kd(){if(Nl)return Ri;Nl=1,Ri.byteLength=c,Ri.toByteArray=C,Ri.fromByteArray=k;for(var i=[],n=[],r=typeof Uint8Array<"u"?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,g=s.length;l<g;++l)i[l]=s[l],n[s.charCodeAt(l)]=l;n[45]=62,n[95]=63;function h(M){var R=M.length;if(R%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var E=M.indexOf("=");E===-1&&(E=R);var N=E===R?0:4-E%4;return[E,N]}function c(M){var R=h(M),E=R[0],N=R[1];return(E+N)*3/4-N}function b(M,R,E){return(R+E)*3/4-E}function C(M){var R,E=h(M),N=E[0],Q=E[1],te=new r(b(M,N,Q)),ee=0,ue=Q>0?N-4:N,G;for(G=0;G<ue;G+=4)R=n[M.charCodeAt(G)]<<18|n[M.charCodeAt(G+1)]<<12|n[M.charCodeAt(G+2)]<<6|n[M.charCodeAt(G+3)],te[ee++]=R>>16&255,te[ee++]=R>>8&255,te[ee++]=R&255;return Q===2&&(R=n[M.charCodeAt(G)]<<2|n[M.charCodeAt(G+1)]>>4,te[ee++]=R&255),Q===1&&(R=n[M.charCodeAt(G)]<<10|n[M.charCodeAt(G+1)]<<4|n[M.charCodeAt(G+2)]>>2,te[ee++]=R>>8&255,te[ee++]=R&255),te}function O(M){return i[M>>18&63]+i[M>>12&63]+i[M>>6&63]+i[M&63]}function L(M,R,E){for(var N,Q=[],te=R;te<E;te+=3)N=(M[te]<<16&16711680)+(M[te+1]<<8&65280)+(M[te+2]&255),Q.push(O(N));return Q.join("")}function k(M){for(var R,E=M.length,N=E%3,Q=[],te=16383,ee=0,ue=E-N;ee<ue;ee+=te)Q.push(L(M,ee,ee+te>ue?ue:ee+te));return N===1?(R=M[E-1],Q.push(i[R>>2]+i[R<<4&63]+"==")):N===2&&(R=(M[E-2]<<8)+M[E-1],Q.push(i[R>>10]+i[R>>4&63]+i[R<<2&63]+"=")),Q.join("")}return Ri}var aa={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var Bl;function Qd(){return Bl||(Bl=1,aa.read=function(i,n,r,s,l){var g,h,c=l*8-s-1,b=(1<<c)-1,C=b>>1,O=-7,L=r?l-1:0,k=r?-1:1,M=i[n+L];for(L+=k,g=M&(1<<-O)-1,M>>=-O,O+=c;O>0;g=g*256+i[n+L],L+=k,O-=8);for(h=g&(1<<-O)-1,g>>=-O,O+=s;O>0;h=h*256+i[n+L],L+=k,O-=8);if(g===0)g=1-C;else{if(g===b)return h?NaN:(M?-1:1)*(1/0);h=h+Math.pow(2,s),g=g-C}return(M?-1:1)*h*Math.pow(2,g-s)},aa.write=function(i,n,r,s,l,g){var h,c,b,C=g*8-l-1,O=(1<<C)-1,L=O>>1,k=l===23?Math.pow(2,-24)-Math.pow(2,-77):0,M=s?0:g-1,R=s?1:-1,E=n<0||n===0&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(c=isNaN(n)?1:0,h=O):(h=Math.floor(Math.log(n)/Math.LN2),n*(b=Math.pow(2,-h))<1&&(h--,b*=2),h+L>=1?n+=k/b:n+=k*Math.pow(2,1-L),n*b>=2&&(h++,b/=2),h+L>=O?(c=0,h=O):h+L>=1?(c=(n*b-1)*Math.pow(2,l),h=h+L):(c=n*Math.pow(2,L-1)*Math.pow(2,l),h=0));l>=8;i[r+M]=c&255,M+=R,c/=256,l-=8);for(h=h<<l|c,C+=l;C>0;i[r+M]=h&255,M+=R,h/=256,C-=8);i[r+M-R]|=E*128}),aa}var ua,jl;function Jd(){if(jl)return ua;jl=1;var i={}.toString;return ua=Array.isArray||function(n){return i.call(n)=="[object Array]"},ua}/*!
86
+ */var Pl={},Ri={},Nl;function Kd(){if(Nl)return Ri;Nl=1,Ri.byteLength=c,Ri.toByteArray=C,Ri.fromByteArray=k;for(var i=[],n=[],r=typeof Uint8Array<"u"?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,p=s.length;l<p;++l)i[l]=s[l],n[s.charCodeAt(l)]=l;n[45]=62,n[95]=63;function f(M){var R=M.length;if(R%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var E=M.indexOf("=");E===-1&&(E=R);var N=E===R?0:4-E%4;return[E,N]}function c(M){var R=f(M),E=R[0],N=R[1];return(E+N)*3/4-N}function b(M,R,E){return(R+E)*3/4-E}function C(M){var R,E=f(M),N=E[0],Q=E[1],te=new r(b(M,N,Q)),X=0,ae=Q>0?N-4:N,H;for(H=0;H<ae;H+=4)R=n[M.charCodeAt(H)]<<18|n[M.charCodeAt(H+1)]<<12|n[M.charCodeAt(H+2)]<<6|n[M.charCodeAt(H+3)],te[X++]=R>>16&255,te[X++]=R>>8&255,te[X++]=R&255;return Q===2&&(R=n[M.charCodeAt(H)]<<2|n[M.charCodeAt(H+1)]>>4,te[X++]=R&255),Q===1&&(R=n[M.charCodeAt(H)]<<10|n[M.charCodeAt(H+1)]<<4|n[M.charCodeAt(H+2)]>>2,te[X++]=R>>8&255,te[X++]=R&255),te}function O(M){return i[M>>18&63]+i[M>>12&63]+i[M>>6&63]+i[M&63]}function L(M,R,E){for(var N,Q=[],te=R;te<E;te+=3)N=(M[te]<<16&16711680)+(M[te+1]<<8&65280)+(M[te+2]&255),Q.push(O(N));return Q.join("")}function k(M){for(var R,E=M.length,N=E%3,Q=[],te=16383,X=0,ae=E-N;X<ae;X+=te)Q.push(L(M,X,X+te>ae?ae:X+te));return N===1?(R=M[E-1],Q.push(i[R>>2]+i[R<<4&63]+"==")):N===2&&(R=(M[E-2]<<8)+M[E-1],Q.push(i[R>>10]+i[R>>4&63]+i[R<<2&63]+"=")),Q.join("")}return Ri}var aa={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var Bl;function Qd(){return Bl||(Bl=1,aa.read=function(i,n,r,s,l){var p,f,c=l*8-s-1,b=(1<<c)-1,C=b>>1,O=-7,L=r?l-1:0,k=r?-1:1,M=i[n+L];for(L+=k,p=M&(1<<-O)-1,M>>=-O,O+=c;O>0;p=p*256+i[n+L],L+=k,O-=8);for(f=p&(1<<-O)-1,p>>=-O,O+=s;O>0;f=f*256+i[n+L],L+=k,O-=8);if(p===0)p=1-C;else{if(p===b)return f?NaN:(M?-1:1)*(1/0);f=f+Math.pow(2,s),p=p-C}return(M?-1:1)*f*Math.pow(2,p-s)},aa.write=function(i,n,r,s,l,p){var f,c,b,C=p*8-l-1,O=(1<<C)-1,L=O>>1,k=l===23?Math.pow(2,-24)-Math.pow(2,-77):0,M=s?0:p-1,R=s?1:-1,E=n<0||n===0&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(c=isNaN(n)?1:0,f=O):(f=Math.floor(Math.log(n)/Math.LN2),n*(b=Math.pow(2,-f))<1&&(f--,b*=2),f+L>=1?n+=k/b:n+=k*Math.pow(2,1-L),n*b>=2&&(f++,b/=2),f+L>=O?(c=0,f=O):f+L>=1?(c=(n*b-1)*Math.pow(2,l),f=f+L):(c=n*Math.pow(2,L-1)*Math.pow(2,l),f=0));l>=8;i[r+M]=c&255,M+=R,c/=256,l-=8);for(f=f<<l|c,C+=l;C>0;i[r+M]=f&255,M+=R,f/=256,C-=8);i[r+M-R]|=E*128}),aa}var ua,jl;function Jd(){if(jl)return ua;jl=1;var i={}.toString;return ua=Array.isArray||function(n){return i.call(n)=="[object Array]"},ua}/*!
87
87
  * The buffer module from node.js, for the browser.
88
88
  *
89
89
  * @author Feross Aboukhadijeh <http://feross.org>
90
90
  * @license MIT
91
- */var Ul;function Xd(){return Ul||(Ul=1,function(i){var n=Kd(),r=Qd(),s=Jd();i.Buffer=c,i.SlowBuffer=Q,i.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=Dl.TYPED_ARRAY_SUPPORT!==void 0?Dl.TYPED_ARRAY_SUPPORT:l(),i.kMaxLength=g();function l(){try{var u=new Uint8Array(1);return u.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},u.foo()===42&&typeof u.subarray=="function"&&u.subarray(1,1).byteLength===0}catch{return!1}}function g(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function h(u,d){if(g()<d)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(u=new Uint8Array(d),u.__proto__=c.prototype):(u===null&&(u=new c(d)),u.length=d),u}function c(u,d,w){if(!c.TYPED_ARRAY_SUPPORT&&!(this instanceof c))return new c(u,d,w);if(typeof u=="number"){if(typeof d=="string")throw new Error("If encoding is specified then the first argument must be a string");return L(this,u)}return b(this,u,d,w)}c.poolSize=8192,c._augment=function(u){return u.__proto__=c.prototype,u};function b(u,d,w,P){if(typeof d=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&d instanceof ArrayBuffer?R(u,d,w,P):typeof d=="string"?k(u,d,w):E(u,d)}c.from=function(u,d,w){return b(null,u,d,w)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0}));function C(u){if(typeof u!="number")throw new TypeError('"size" argument must be a number');if(u<0)throw new RangeError('"size" argument must not be negative')}function O(u,d,w,P){return C(d),d<=0?h(u,d):w!==void 0?typeof P=="string"?h(u,d).fill(w,P):h(u,d).fill(w):h(u,d)}c.alloc=function(u,d,w){return O(null,u,d,w)};function L(u,d){if(C(d),u=h(u,d<0?0:N(d)|0),!c.TYPED_ARRAY_SUPPORT)for(var w=0;w<d;++w)u[w]=0;return u}c.allocUnsafe=function(u){return L(null,u)},c.allocUnsafeSlow=function(u){return L(null,u)};function k(u,d,w){if((typeof w!="string"||w==="")&&(w="utf8"),!c.isEncoding(w))throw new TypeError('"encoding" must be a valid string encoding');var P=te(d,w)|0;u=h(u,P);var U=u.write(d,w);return U!==P&&(u=u.slice(0,U)),u}function M(u,d){var w=d.length<0?0:N(d.length)|0;u=h(u,w);for(var P=0;P<w;P+=1)u[P]=d[P]&255;return u}function R(u,d,w,P){if(d.byteLength,w<0||d.byteLength<w)throw new RangeError("'offset' is out of bounds");if(d.byteLength<w+(P||0))throw new RangeError("'length' is out of bounds");return w===void 0&&P===void 0?d=new Uint8Array(d):P===void 0?d=new Uint8Array(d,w):d=new Uint8Array(d,w,P),c.TYPED_ARRAY_SUPPORT?(u=d,u.__proto__=c.prototype):u=M(u,d),u}function E(u,d){if(c.isBuffer(d)){var w=N(d.length)|0;return u=h(u,w),u.length===0||d.copy(u,0,0,w),u}if(d){if(typeof ArrayBuffer<"u"&&d.buffer instanceof ArrayBuffer||"length"in d)return typeof d.length!="number"||Te(d.length)?h(u,0):M(u,d);if(d.type==="Buffer"&&s(d.data))return M(u,d.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function N(u){if(u>=g())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+g().toString(16)+" bytes");return u|0}function Q(u){return+u!=u&&(u=0),c.alloc(+u)}c.isBuffer=function(u){return!!(u!=null&&u._isBuffer)},c.compare=function(u,d){if(!c.isBuffer(u)||!c.isBuffer(d))throw new TypeError("Arguments must be Buffers");if(u===d)return 0;for(var w=u.length,P=d.length,U=0,X=Math.min(w,P);U<X;++U)if(u[U]!==d[U]){w=u[U],P=d[U];break}return w<P?-1:P<w?1:0},c.isEncoding=function(u){switch(String(u).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(u,d){if(!s(u))throw new TypeError('"list" argument must be an Array of Buffers');if(u.length===0)return c.alloc(0);var w;if(d===void 0)for(d=0,w=0;w<u.length;++w)d+=u[w].length;var P=c.allocUnsafe(d),U=0;for(w=0;w<u.length;++w){var X=u[w];if(!c.isBuffer(X))throw new TypeError('"list" argument must be an Array of Buffers');X.copy(P,U),U+=X.length}return P};function te(u,d){if(c.isBuffer(u))return u.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(u)||u instanceof ArrayBuffer))return u.byteLength;typeof u!="string"&&(u=""+u);var w=u.length;if(w===0)return 0;for(var P=!1;;)switch(d){case"ascii":case"latin1":case"binary":return w;case"utf8":case"utf-8":case void 0:return z(u).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w*2;case"hex":return w>>>1;case"base64":return K(u).length;default:if(P)return z(u).length;d=(""+d).toLowerCase(),P=!0}}c.byteLength=te;function ee(u,d,w){var P=!1;if((d===void 0||d<0)&&(d=0),d>this.length||((w===void 0||w>this.length)&&(w=this.length),w<=0)||(w>>>=0,d>>>=0,w<=d))return"";for(u||(u="utf8");;)switch(u){case"hex":return _(this,d,w);case"utf8":case"utf-8":return j(this,d,w);case"ascii":return p(this,d,w);case"latin1":case"binary":return f(this,d,w);case"base64":return Oe(this,d,w);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return v(this,d,w);default:if(P)throw new TypeError("Unknown encoding: "+u);u=(u+"").toLowerCase(),P=!0}}c.prototype._isBuffer=!0;function ue(u,d,w){var P=u[d];u[d]=u[w],u[w]=P}c.prototype.swap16=function(){var u=this.length;if(u%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var d=0;d<u;d+=2)ue(this,d,d+1);return this},c.prototype.swap32=function(){var u=this.length;if(u%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var d=0;d<u;d+=4)ue(this,d,d+3),ue(this,d+1,d+2);return this},c.prototype.swap64=function(){var u=this.length;if(u%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var d=0;d<u;d+=8)ue(this,d,d+7),ue(this,d+1,d+6),ue(this,d+2,d+5),ue(this,d+3,d+4);return this},c.prototype.toString=function(){var u=this.length|0;return u===0?"":arguments.length===0?j(this,0,u):ee.apply(this,arguments)},c.prototype.equals=function(u){if(!c.isBuffer(u))throw new TypeError("Argument must be a Buffer");return this===u?!0:c.compare(this,u)===0},c.prototype.inspect=function(){var u="",d=i.INSPECT_MAX_BYTES;return this.length>0&&(u=this.toString("hex",0,d).match(/.{2}/g).join(" "),this.length>d&&(u+=" ... ")),"<Buffer "+u+">"},c.prototype.compare=function(u,d,w,P,U){if(!c.isBuffer(u))throw new TypeError("Argument must be a Buffer");if(d===void 0&&(d=0),w===void 0&&(w=u?u.length:0),P===void 0&&(P=0),U===void 0&&(U=this.length),d<0||w>u.length||P<0||U>this.length)throw new RangeError("out of range index");if(P>=U&&d>=w)return 0;if(P>=U)return-1;if(d>=w)return 1;if(d>>>=0,w>>>=0,P>>>=0,U>>>=0,this===u)return 0;for(var X=U-P,xe=w-d,De=Math.min(X,xe),Re=this.slice(P,U),Se=u.slice(d,w),Le=0;Le<De;++Le)if(Re[Le]!==Se[Le]){X=Re[Le],xe=Se[Le];break}return X<xe?-1:xe<X?1:0};function G(u,d,w,P,U){if(u.length===0)return-1;if(typeof w=="string"?(P=w,w=0):w>2147483647?w=2147483647:w<-2147483648&&(w=-2147483648),w=+w,isNaN(w)&&(w=U?0:u.length-1),w<0&&(w=u.length+w),w>=u.length){if(U)return-1;w=u.length-1}else if(w<0)if(U)w=0;else return-1;if(typeof d=="string"&&(d=c.from(d,P)),c.isBuffer(d))return d.length===0?-1:de(u,d,w,P,U);if(typeof d=="number")return d=d&255,c.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?U?Uint8Array.prototype.indexOf.call(u,d,w):Uint8Array.prototype.lastIndexOf.call(u,d,w):de(u,[d],w,P,U);throw new TypeError("val must be string, number or Buffer")}function de(u,d,w,P,U){var X=1,xe=u.length,De=d.length;if(P!==void 0&&(P=String(P).toLowerCase(),P==="ucs2"||P==="ucs-2"||P==="utf16le"||P==="utf-16le")){if(u.length<2||d.length<2)return-1;X=2,xe/=2,De/=2,w/=2}function Re(et,Ge){return X===1?et[Ge]:et.readUInt16BE(Ge*X)}var Se;if(U){var Le=-1;for(Se=w;Se<xe;Se++)if(Re(u,Se)===Re(d,Le===-1?0:Se-Le)){if(Le===-1&&(Le=Se),Se-Le+1===De)return Le*X}else Le!==-1&&(Se-=Se-Le),Le=-1}else for(w+De>xe&&(w=xe-De),Se=w;Se>=0;Se--){for(var Pe=!0,Ie=0;Ie<De;Ie++)if(Re(u,Se+Ie)!==Re(d,Ie)){Pe=!1;break}if(Pe)return Se}return-1}c.prototype.includes=function(u,d,w){return this.indexOf(u,d,w)!==-1},c.prototype.indexOf=function(u,d,w){return G(this,u,d,w,!0)},c.prototype.lastIndexOf=function(u,d,w){return G(this,u,d,w,!1)};function ne(u,d,w,P){w=Number(w)||0;var U=u.length-w;P?(P=Number(P),P>U&&(P=U)):P=U;var X=d.length;if(X%2!==0)throw new TypeError("Invalid hex string");P>X/2&&(P=X/2);for(var xe=0;xe<P;++xe){var De=parseInt(d.substr(xe*2,2),16);if(isNaN(De))return xe;u[w+xe]=De}return xe}function re(u,d,w,P){return ae(z(d,u.length-w),u,w,P)}function se(u,d,w,P){return ae(q(d),u,w,P)}function pe(u,d,w,P){return se(u,d,w,P)}function ie(u,d,w,P){return ae(K(d),u,w,P)}function Ae(u,d,w,P){return ae(W(d,u.length-w),u,w,P)}c.prototype.write=function(u,d,w,P){if(d===void 0)P="utf8",w=this.length,d=0;else if(w===void 0&&typeof d=="string")P=d,w=this.length,d=0;else if(isFinite(d))d=d|0,isFinite(w)?(w=w|0,P===void 0&&(P="utf8")):(P=w,w=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var U=this.length-d;if((w===void 0||w>U)&&(w=U),u.length>0&&(w<0||d<0)||d>this.length)throw new RangeError("Attempt to write outside buffer bounds");P||(P="utf8");for(var X=!1;;)switch(P){case"hex":return ne(this,u,d,w);case"utf8":case"utf-8":return re(this,u,d,w);case"ascii":return se(this,u,d,w);case"latin1":case"binary":return pe(this,u,d,w);case"base64":return ie(this,u,d,w);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ae(this,u,d,w);default:if(X)throw new TypeError("Unknown encoding: "+P);P=(""+P).toLowerCase(),X=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Oe(u,d,w){return d===0&&w===u.length?n.fromByteArray(u):n.fromByteArray(u.slice(d,w))}function j(u,d,w){w=Math.min(u.length,w);for(var P=[],U=d;U<w;){var X=u[U],xe=null,De=X>239?4:X>223?3:X>191?2:1;if(U+De<=w){var Re,Se,Le,Pe;switch(De){case 1:X<128&&(xe=X);break;case 2:Re=u[U+1],(Re&192)===128&&(Pe=(X&31)<<6|Re&63,Pe>127&&(xe=Pe));break;case 3:Re=u[U+1],Se=u[U+2],(Re&192)===128&&(Se&192)===128&&(Pe=(X&15)<<12|(Re&63)<<6|Se&63,Pe>2047&&(Pe<55296||Pe>57343)&&(xe=Pe));break;case 4:Re=u[U+1],Se=u[U+2],Le=u[U+3],(Re&192)===128&&(Se&192)===128&&(Le&192)===128&&(Pe=(X&15)<<18|(Re&63)<<12|(Se&63)<<6|Le&63,Pe>65535&&Pe<1114112&&(xe=Pe))}}xe===null?(xe=65533,De=1):xe>65535&&(xe-=65536,P.push(xe>>>10&1023|55296),xe=56320|xe&1023),P.push(xe),U+=De}return T(P)}var I=4096;function T(u){var d=u.length;if(d<=I)return String.fromCharCode.apply(String,u);for(var w="",P=0;P<d;)w+=String.fromCharCode.apply(String,u.slice(P,P+=I));return w}function p(u,d,w){var P="";w=Math.min(u.length,w);for(var U=d;U<w;++U)P+=String.fromCharCode(u[U]&127);return P}function f(u,d,w){var P="";w=Math.min(u.length,w);for(var U=d;U<w;++U)P+=String.fromCharCode(u[U]);return P}function _(u,d,w){var P=u.length;(!d||d<0)&&(d=0),(!w||w<0||w>P)&&(w=P);for(var U="",X=d;X<w;++X)U+=be(u[X]);return U}function v(u,d,w){for(var P=u.slice(d,w),U="",X=0;X<P.length;X+=2)U+=String.fromCharCode(P[X]+P[X+1]*256);return U}c.prototype.slice=function(u,d){var w=this.length;u=~~u,d=d===void 0?w:~~d,u<0?(u+=w,u<0&&(u=0)):u>w&&(u=w),d<0?(d+=w,d<0&&(d=0)):d>w&&(d=w),d<u&&(d=u);var P;if(c.TYPED_ARRAY_SUPPORT)P=this.subarray(u,d),P.__proto__=c.prototype;else{var U=d-u;P=new c(U,void 0);for(var X=0;X<U;++X)P[X]=this[X+u]}return P};function m(u,d,w){if(u%1!==0||u<0)throw new RangeError("offset is not uint");if(u+d>w)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUIntLE=function(u,d,w){u=u|0,d=d|0,w||m(u,d,this.length);for(var P=this[u],U=1,X=0;++X<d&&(U*=256);)P+=this[u+X]*U;return P},c.prototype.readUIntBE=function(u,d,w){u=u|0,d=d|0,w||m(u,d,this.length);for(var P=this[u+--d],U=1;d>0&&(U*=256);)P+=this[u+--d]*U;return P},c.prototype.readUInt8=function(u,d){return d||m(u,1,this.length),this[u]},c.prototype.readUInt16LE=function(u,d){return d||m(u,2,this.length),this[u]|this[u+1]<<8},c.prototype.readUInt16BE=function(u,d){return d||m(u,2,this.length),this[u]<<8|this[u+1]},c.prototype.readUInt32LE=function(u,d){return d||m(u,4,this.length),(this[u]|this[u+1]<<8|this[u+2]<<16)+this[u+3]*16777216},c.prototype.readUInt32BE=function(u,d){return d||m(u,4,this.length),this[u]*16777216+(this[u+1]<<16|this[u+2]<<8|this[u+3])},c.prototype.readIntLE=function(u,d,w){u=u|0,d=d|0,w||m(u,d,this.length);for(var P=this[u],U=1,X=0;++X<d&&(U*=256);)P+=this[u+X]*U;return U*=128,P>=U&&(P-=Math.pow(2,8*d)),P},c.prototype.readIntBE=function(u,d,w){u=u|0,d=d|0,w||m(u,d,this.length);for(var P=d,U=1,X=this[u+--P];P>0&&(U*=256);)X+=this[u+--P]*U;return U*=128,X>=U&&(X-=Math.pow(2,8*d)),X},c.prototype.readInt8=function(u,d){return d||m(u,1,this.length),this[u]&128?(255-this[u]+1)*-1:this[u]},c.prototype.readInt16LE=function(u,d){d||m(u,2,this.length);var w=this[u]|this[u+1]<<8;return w&32768?w|4294901760:w},c.prototype.readInt16BE=function(u,d){d||m(u,2,this.length);var w=this[u+1]|this[u]<<8;return w&32768?w|4294901760:w},c.prototype.readInt32LE=function(u,d){return d||m(u,4,this.length),this[u]|this[u+1]<<8|this[u+2]<<16|this[u+3]<<24},c.prototype.readInt32BE=function(u,d){return d||m(u,4,this.length),this[u]<<24|this[u+1]<<16|this[u+2]<<8|this[u+3]},c.prototype.readFloatLE=function(u,d){return d||m(u,4,this.length),r.read(this,u,!0,23,4)},c.prototype.readFloatBE=function(u,d){return d||m(u,4,this.length),r.read(this,u,!1,23,4)},c.prototype.readDoubleLE=function(u,d){return d||m(u,8,this.length),r.read(this,u,!0,52,8)},c.prototype.readDoubleBE=function(u,d){return d||m(u,8,this.length),r.read(this,u,!1,52,8)};function D(u,d,w,P,U,X){if(!c.isBuffer(u))throw new TypeError('"buffer" argument must be a Buffer instance');if(d>U||d<X)throw new RangeError('"value" argument is out of bounds');if(w+P>u.length)throw new RangeError("Index out of range")}c.prototype.writeUIntLE=function(u,d,w,P){if(u=+u,d=d|0,w=w|0,!P){var U=Math.pow(2,8*w)-1;D(this,u,d,w,U,0)}var X=1,xe=0;for(this[d]=u&255;++xe<w&&(X*=256);)this[d+xe]=u/X&255;return d+w},c.prototype.writeUIntBE=function(u,d,w,P){if(u=+u,d=d|0,w=w|0,!P){var U=Math.pow(2,8*w)-1;D(this,u,d,w,U,0)}var X=w-1,xe=1;for(this[d+X]=u&255;--X>=0&&(xe*=256);)this[d+X]=u/xe&255;return d+w},c.prototype.writeUInt8=function(u,d,w){return u=+u,d=d|0,w||D(this,u,d,1,255,0),c.TYPED_ARRAY_SUPPORT||(u=Math.floor(u)),this[d]=u&255,d+1};function Y(u,d,w,P){d<0&&(d=65535+d+1);for(var U=0,X=Math.min(u.length-w,2);U<X;++U)u[w+U]=(d&255<<8*(P?U:1-U))>>>(P?U:1-U)*8}c.prototype.writeUInt16LE=function(u,d,w){return u=+u,d=d|0,w||D(this,u,d,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[d]=u&255,this[d+1]=u>>>8):Y(this,u,d,!0),d+2},c.prototype.writeUInt16BE=function(u,d,w){return u=+u,d=d|0,w||D(this,u,d,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[d]=u>>>8,this[d+1]=u&255):Y(this,u,d,!1),d+2};function Z(u,d,w,P){d<0&&(d=4294967295+d+1);for(var U=0,X=Math.min(u.length-w,4);U<X;++U)u[w+U]=d>>>(P?U:3-U)*8&255}c.prototype.writeUInt32LE=function(u,d,w){return u=+u,d=d|0,w||D(this,u,d,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[d+3]=u>>>24,this[d+2]=u>>>16,this[d+1]=u>>>8,this[d]=u&255):Z(this,u,d,!0),d+4},c.prototype.writeUInt32BE=function(u,d,w){return u=+u,d=d|0,w||D(this,u,d,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[d]=u>>>24,this[d+1]=u>>>16,this[d+2]=u>>>8,this[d+3]=u&255):Z(this,u,d,!1),d+4},c.prototype.writeIntLE=function(u,d,w,P){if(u=+u,d=d|0,!P){var U=Math.pow(2,8*w-1);D(this,u,d,w,U-1,-U)}var X=0,xe=1,De=0;for(this[d]=u&255;++X<w&&(xe*=256);)u<0&&De===0&&this[d+X-1]!==0&&(De=1),this[d+X]=(u/xe>>0)-De&255;return d+w},c.prototype.writeIntBE=function(u,d,w,P){if(u=+u,d=d|0,!P){var U=Math.pow(2,8*w-1);D(this,u,d,w,U-1,-U)}var X=w-1,xe=1,De=0;for(this[d+X]=u&255;--X>=0&&(xe*=256);)u<0&&De===0&&this[d+X+1]!==0&&(De=1),this[d+X]=(u/xe>>0)-De&255;return d+w},c.prototype.writeInt8=function(u,d,w){return u=+u,d=d|0,w||D(this,u,d,1,127,-128),c.TYPED_ARRAY_SUPPORT||(u=Math.floor(u)),u<0&&(u=255+u+1),this[d]=u&255,d+1},c.prototype.writeInt16LE=function(u,d,w){return u=+u,d=d|0,w||D(this,u,d,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[d]=u&255,this[d+1]=u>>>8):Y(this,u,d,!0),d+2},c.prototype.writeInt16BE=function(u,d,w){return u=+u,d=d|0,w||D(this,u,d,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[d]=u>>>8,this[d+1]=u&255):Y(this,u,d,!1),d+2},c.prototype.writeInt32LE=function(u,d,w){return u=+u,d=d|0,w||D(this,u,d,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[d]=u&255,this[d+1]=u>>>8,this[d+2]=u>>>16,this[d+3]=u>>>24):Z(this,u,d,!0),d+4},c.prototype.writeInt32BE=function(u,d,w){return u=+u,d=d|0,w||D(this,u,d,4,2147483647,-2147483648),u<0&&(u=4294967295+u+1),c.TYPED_ARRAY_SUPPORT?(this[d]=u>>>24,this[d+1]=u>>>16,this[d+2]=u>>>8,this[d+3]=u&255):Z(this,u,d,!1),d+4};function ce(u,d,w,P,U,X){if(w+P>u.length)throw new RangeError("Index out of range");if(w<0)throw new RangeError("Index out of range")}function he(u,d,w,P,U){return U||ce(u,d,w,4),r.write(u,d,w,P,23,4),w+4}c.prototype.writeFloatLE=function(u,d,w){return he(this,u,d,!0,w)},c.prototype.writeFloatBE=function(u,d,w){return he(this,u,d,!1,w)};function we(u,d,w,P,U){return U||ce(u,d,w,8),r.write(u,d,w,P,52,8),w+8}c.prototype.writeDoubleLE=function(u,d,w){return we(this,u,d,!0,w)},c.prototype.writeDoubleBE=function(u,d,w){return we(this,u,d,!1,w)},c.prototype.copy=function(u,d,w,P){if(w||(w=0),!P&&P!==0&&(P=this.length),d>=u.length&&(d=u.length),d||(d=0),P>0&&P<w&&(P=w),P===w||u.length===0||this.length===0)return 0;if(d<0)throw new RangeError("targetStart out of bounds");if(w<0||w>=this.length)throw new RangeError("sourceStart out of bounds");if(P<0)throw new RangeError("sourceEnd out of bounds");P>this.length&&(P=this.length),u.length-d<P-w&&(P=u.length-d+w);var U=P-w,X;if(this===u&&w<d&&d<P)for(X=U-1;X>=0;--X)u[X+d]=this[X+w];else if(U<1e3||!c.TYPED_ARRAY_SUPPORT)for(X=0;X<U;++X)u[X+d]=this[X+w];else Uint8Array.prototype.set.call(u,this.subarray(w,w+U),d);return U},c.prototype.fill=function(u,d,w,P){if(typeof u=="string"){if(typeof d=="string"?(P=d,d=0,w=this.length):typeof w=="string"&&(P=w,w=this.length),u.length===1){var U=u.charCodeAt(0);U<256&&(u=U)}if(P!==void 0&&typeof P!="string")throw new TypeError("encoding must be a string");if(typeof P=="string"&&!c.isEncoding(P))throw new TypeError("Unknown encoding: "+P)}else typeof u=="number"&&(u=u&255);if(d<0||this.length<d||this.length<w)throw new RangeError("Out of range index");if(w<=d)return this;d=d>>>0,w=w===void 0?this.length:w>>>0,u||(u=0);var X;if(typeof u=="number")for(X=d;X<w;++X)this[X]=u;else{var xe=c.isBuffer(u)?u:z(new c(u,P).toString()),De=xe.length;for(X=0;X<w-d;++X)this[X+d]=xe[X%De]}return this};var J=/[^+\/0-9A-Za-z-_]/g;function le(u){if(u=Ce(u).replace(J,""),u.length<2)return"";for(;u.length%4!==0;)u=u+"=";return u}function Ce(u){return u.trim?u.trim():u.replace(/^\s+|\s+$/g,"")}function be(u){return u<16?"0"+u.toString(16):u.toString(16)}function z(u,d){d=d||1/0;for(var w,P=u.length,U=null,X=[],xe=0;xe<P;++xe){if(w=u.charCodeAt(xe),w>55295&&w<57344){if(!U){if(w>56319){(d-=3)>-1&&X.push(239,191,189);continue}else if(xe+1===P){(d-=3)>-1&&X.push(239,191,189);continue}U=w;continue}if(w<56320){(d-=3)>-1&&X.push(239,191,189),U=w;continue}w=(U-55296<<10|w-56320)+65536}else U&&(d-=3)>-1&&X.push(239,191,189);if(U=null,w<128){if((d-=1)<0)break;X.push(w)}else if(w<2048){if((d-=2)<0)break;X.push(w>>6|192,w&63|128)}else if(w<65536){if((d-=3)<0)break;X.push(w>>12|224,w>>6&63|128,w&63|128)}else if(w<1114112){if((d-=4)<0)break;X.push(w>>18|240,w>>12&63|128,w>>6&63|128,w&63|128)}else throw new Error("Invalid code point")}return X}function q(u){for(var d=[],w=0;w<u.length;++w)d.push(u.charCodeAt(w)&255);return d}function W(u,d){for(var w,P,U,X=[],xe=0;xe<u.length&&!((d-=2)<0);++xe)w=u.charCodeAt(xe),P=w>>8,U=w%256,X.push(U),X.push(P);return X}function K(u){return n.toByteArray(le(u))}function ae(u,d,w,P){for(var U=0;U<P&&!(U+w>=d.length||U>=u.length);++U)d[U+w]=u[U];return U}function Te(u){return u!==u}}(Pl)),Pl}Xd();var Tr;if(typeof window<"u"&&window.crypto&&(Tr=window.crypto),!Tr&&typeof window<"u"&&window.msCrypto&&(Tr=window.msCrypto),!Tr&&typeof global<"u"&&global.crypto&&(Tr=global.crypto),!Tr&&typeof require=="function")try{Tr=require("crypto")}catch{}var zl={};/*! *****************************************************************************
91
+ */var Ul;function Xd(){return Ul||(Ul=1,function(i){var n=Kd(),r=Qd(),s=Jd();i.Buffer=c,i.SlowBuffer=Q,i.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=Dl.TYPED_ARRAY_SUPPORT!==void 0?Dl.TYPED_ARRAY_SUPPORT:l(),i.kMaxLength=p();function l(){try{var u=new Uint8Array(1);return u.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},u.foo()===42&&typeof u.subarray=="function"&&u.subarray(1,1).byteLength===0}catch{return!1}}function p(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function f(u,h){if(p()<h)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(u=new Uint8Array(h),u.__proto__=c.prototype):(u===null&&(u=new c(h)),u.length=h),u}function c(u,h,w){if(!c.TYPED_ARRAY_SUPPORT&&!(this instanceof c))return new c(u,h,w);if(typeof u=="number"){if(typeof h=="string")throw new Error("If encoding is specified then the first argument must be a string");return L(this,u)}return b(this,u,h,w)}c.poolSize=8192,c._augment=function(u){return u.__proto__=c.prototype,u};function b(u,h,w,P){if(typeof h=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&h instanceof ArrayBuffer?R(u,h,w,P):typeof h=="string"?k(u,h,w):E(u,h)}c.from=function(u,h,w){return b(null,u,h,w)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0}));function C(u){if(typeof u!="number")throw new TypeError('"size" argument must be a number');if(u<0)throw new RangeError('"size" argument must not be negative')}function O(u,h,w,P){return C(h),h<=0?f(u,h):w!==void 0?typeof P=="string"?f(u,h).fill(w,P):f(u,h).fill(w):f(u,h)}c.alloc=function(u,h,w){return O(null,u,h,w)};function L(u,h){if(C(h),u=f(u,h<0?0:N(h)|0),!c.TYPED_ARRAY_SUPPORT)for(var w=0;w<h;++w)u[w]=0;return u}c.allocUnsafe=function(u){return L(null,u)},c.allocUnsafeSlow=function(u){return L(null,u)};function k(u,h,w){if((typeof w!="string"||w==="")&&(w="utf8"),!c.isEncoding(w))throw new TypeError('"encoding" must be a valid string encoding');var P=te(h,w)|0;u=f(u,P);var U=u.write(h,w);return U!==P&&(u=u.slice(0,U)),u}function M(u,h){var w=h.length<0?0:N(h.length)|0;u=f(u,w);for(var P=0;P<w;P+=1)u[P]=h[P]&255;return u}function R(u,h,w,P){if(h.byteLength,w<0||h.byteLength<w)throw new RangeError("'offset' is out of bounds");if(h.byteLength<w+(P||0))throw new RangeError("'length' is out of bounds");return w===void 0&&P===void 0?h=new Uint8Array(h):P===void 0?h=new Uint8Array(h,w):h=new Uint8Array(h,w,P),c.TYPED_ARRAY_SUPPORT?(u=h,u.__proto__=c.prototype):u=M(u,h),u}function E(u,h){if(c.isBuffer(h)){var w=N(h.length)|0;return u=f(u,w),u.length===0||h.copy(u,0,0,w),u}if(h){if(typeof ArrayBuffer<"u"&&h.buffer instanceof ArrayBuffer||"length"in h)return typeof h.length!="number"||Te(h.length)?f(u,0):M(u,h);if(h.type==="Buffer"&&s(h.data))return M(u,h.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function N(u){if(u>=p())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+p().toString(16)+" bytes");return u|0}function Q(u){return+u!=u&&(u=0),c.alloc(+u)}c.isBuffer=function(u){return!!(u!=null&&u._isBuffer)},c.compare=function(u,h){if(!c.isBuffer(u)||!c.isBuffer(h))throw new TypeError("Arguments must be Buffers");if(u===h)return 0;for(var w=u.length,P=h.length,U=0,ne=Math.min(w,P);U<ne;++U)if(u[U]!==h[U]){w=u[U],P=h[U];break}return w<P?-1:P<w?1:0},c.isEncoding=function(u){switch(String(u).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(u,h){if(!s(u))throw new TypeError('"list" argument must be an Array of Buffers');if(u.length===0)return c.alloc(0);var w;if(h===void 0)for(h=0,w=0;w<u.length;++w)h+=u[w].length;var P=c.allocUnsafe(h),U=0;for(w=0;w<u.length;++w){var ne=u[w];if(!c.isBuffer(ne))throw new TypeError('"list" argument must be an Array of Buffers');ne.copy(P,U),U+=ne.length}return P};function te(u,h){if(c.isBuffer(u))return u.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(u)||u instanceof ArrayBuffer))return u.byteLength;typeof u!="string"&&(u=""+u);var w=u.length;if(w===0)return 0;for(var P=!1;;)switch(h){case"ascii":case"latin1":case"binary":return w;case"utf8":case"utf-8":case void 0:return z(u).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w*2;case"hex":return w>>>1;case"base64":return K(u).length;default:if(P)return z(u).length;h=(""+h).toLowerCase(),P=!0}}c.byteLength=te;function X(u,h,w){var P=!1;if((h===void 0||h<0)&&(h=0),h>this.length||((w===void 0||w>this.length)&&(w=this.length),w<=0)||(w>>>=0,h>>>=0,w<=h))return"";for(u||(u="utf8");;)switch(u){case"hex":return _(this,h,w);case"utf8":case"utf-8":return j(this,h,w);case"ascii":return v(this,h,w);case"latin1":case"binary":return d(this,h,w);case"base64":return Oe(this,h,w);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return g(this,h,w);default:if(P)throw new TypeError("Unknown encoding: "+u);u=(u+"").toLowerCase(),P=!0}}c.prototype._isBuffer=!0;function ae(u,h,w){var P=u[h];u[h]=u[w],u[w]=P}c.prototype.swap16=function(){var u=this.length;if(u%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var h=0;h<u;h+=2)ae(this,h,h+1);return this},c.prototype.swap32=function(){var u=this.length;if(u%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var h=0;h<u;h+=4)ae(this,h,h+3),ae(this,h+1,h+2);return this},c.prototype.swap64=function(){var u=this.length;if(u%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var h=0;h<u;h+=8)ae(this,h,h+7),ae(this,h+1,h+6),ae(this,h+2,h+5),ae(this,h+3,h+4);return this},c.prototype.toString=function(){var u=this.length|0;return u===0?"":arguments.length===0?j(this,0,u):X.apply(this,arguments)},c.prototype.equals=function(u){if(!c.isBuffer(u))throw new TypeError("Argument must be a Buffer");return this===u?!0:c.compare(this,u)===0},c.prototype.inspect=function(){var u="",h=i.INSPECT_MAX_BYTES;return this.length>0&&(u=this.toString("hex",0,h).match(/.{2}/g).join(" "),this.length>h&&(u+=" ... ")),"<Buffer "+u+">"},c.prototype.compare=function(u,h,w,P,U){if(!c.isBuffer(u))throw new TypeError("Argument must be a Buffer");if(h===void 0&&(h=0),w===void 0&&(w=u?u.length:0),P===void 0&&(P=0),U===void 0&&(U=this.length),h<0||w>u.length||P<0||U>this.length)throw new RangeError("out of range index");if(P>=U&&h>=w)return 0;if(P>=U)return-1;if(h>=w)return 1;if(h>>>=0,w>>>=0,P>>>=0,U>>>=0,this===u)return 0;for(var ne=U-P,xe=w-h,De=Math.min(ne,xe),Re=this.slice(P,U),Se=u.slice(h,w),Le=0;Le<De;++Le)if(Re[Le]!==Se[Le]){ne=Re[Le],xe=Se[Le];break}return ne<xe?-1:xe<ne?1:0};function H(u,h,w,P,U){if(u.length===0)return-1;if(typeof w=="string"?(P=w,w=0):w>2147483647?w=2147483647:w<-2147483648&&(w=-2147483648),w=+w,isNaN(w)&&(w=U?0:u.length-1),w<0&&(w=u.length+w),w>=u.length){if(U)return-1;w=u.length-1}else if(w<0)if(U)w=0;else return-1;if(typeof h=="string"&&(h=c.from(h,P)),c.isBuffer(h))return h.length===0?-1:fe(u,h,w,P,U);if(typeof h=="number")return h=h&255,c.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?U?Uint8Array.prototype.indexOf.call(u,h,w):Uint8Array.prototype.lastIndexOf.call(u,h,w):fe(u,[h],w,P,U);throw new TypeError("val must be string, number or Buffer")}function fe(u,h,w,P,U){var ne=1,xe=u.length,De=h.length;if(P!==void 0&&(P=String(P).toLowerCase(),P==="ucs2"||P==="ucs-2"||P==="utf16le"||P==="utf-16le")){if(u.length<2||h.length<2)return-1;ne=2,xe/=2,De/=2,w/=2}function Re(et,Ge){return ne===1?et[Ge]:et.readUInt16BE(Ge*ne)}var Se;if(U){var Le=-1;for(Se=w;Se<xe;Se++)if(Re(u,Se)===Re(h,Le===-1?0:Se-Le)){if(Le===-1&&(Le=Se),Se-Le+1===De)return Le*ne}else Le!==-1&&(Se-=Se-Le),Le=-1}else for(w+De>xe&&(w=xe-De),Se=w;Se>=0;Se--){for(var Pe=!0,Ie=0;Ie<De;Ie++)if(Re(u,Se+Ie)!==Re(h,Ie)){Pe=!1;break}if(Pe)return Se}return-1}c.prototype.includes=function(u,h,w){return this.indexOf(u,h,w)!==-1},c.prototype.indexOf=function(u,h,w){return H(this,u,h,w,!0)},c.prototype.lastIndexOf=function(u,h,w){return H(this,u,h,w,!1)};function ee(u,h,w,P){w=Number(w)||0;var U=u.length-w;P?(P=Number(P),P>U&&(P=U)):P=U;var ne=h.length;if(ne%2!==0)throw new TypeError("Invalid hex string");P>ne/2&&(P=ne/2);for(var xe=0;xe<P;++xe){var De=parseInt(h.substr(xe*2,2),16);if(isNaN(De))return xe;u[w+xe]=De}return xe}function re(u,h,w,P){return ue(z(h,u.length-w),u,w,P)}function se(u,h,w,P){return ue(q(h),u,w,P)}function pe(u,h,w,P){return se(u,h,w,P)}function ie(u,h,w,P){return ue(K(h),u,w,P)}function Ae(u,h,w,P){return ue(W(h,u.length-w),u,w,P)}c.prototype.write=function(u,h,w,P){if(h===void 0)P="utf8",w=this.length,h=0;else if(w===void 0&&typeof h=="string")P=h,w=this.length,h=0;else if(isFinite(h))h=h|0,isFinite(w)?(w=w|0,P===void 0&&(P="utf8")):(P=w,w=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var U=this.length-h;if((w===void 0||w>U)&&(w=U),u.length>0&&(w<0||h<0)||h>this.length)throw new RangeError("Attempt to write outside buffer bounds");P||(P="utf8");for(var ne=!1;;)switch(P){case"hex":return ee(this,u,h,w);case"utf8":case"utf-8":return re(this,u,h,w);case"ascii":return se(this,u,h,w);case"latin1":case"binary":return pe(this,u,h,w);case"base64":return ie(this,u,h,w);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ae(this,u,h,w);default:if(ne)throw new TypeError("Unknown encoding: "+P);P=(""+P).toLowerCase(),ne=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Oe(u,h,w){return h===0&&w===u.length?n.fromByteArray(u):n.fromByteArray(u.slice(h,w))}function j(u,h,w){w=Math.min(u.length,w);for(var P=[],U=h;U<w;){var ne=u[U],xe=null,De=ne>239?4:ne>223?3:ne>191?2:1;if(U+De<=w){var Re,Se,Le,Pe;switch(De){case 1:ne<128&&(xe=ne);break;case 2:Re=u[U+1],(Re&192)===128&&(Pe=(ne&31)<<6|Re&63,Pe>127&&(xe=Pe));break;case 3:Re=u[U+1],Se=u[U+2],(Re&192)===128&&(Se&192)===128&&(Pe=(ne&15)<<12|(Re&63)<<6|Se&63,Pe>2047&&(Pe<55296||Pe>57343)&&(xe=Pe));break;case 4:Re=u[U+1],Se=u[U+2],Le=u[U+3],(Re&192)===128&&(Se&192)===128&&(Le&192)===128&&(Pe=(ne&15)<<18|(Re&63)<<12|(Se&63)<<6|Le&63,Pe>65535&&Pe<1114112&&(xe=Pe))}}xe===null?(xe=65533,De=1):xe>65535&&(xe-=65536,P.push(xe>>>10&1023|55296),xe=56320|xe&1023),P.push(xe),U+=De}return A(P)}var I=4096;function A(u){var h=u.length;if(h<=I)return String.fromCharCode.apply(String,u);for(var w="",P=0;P<h;)w+=String.fromCharCode.apply(String,u.slice(P,P+=I));return w}function v(u,h,w){var P="";w=Math.min(u.length,w);for(var U=h;U<w;++U)P+=String.fromCharCode(u[U]&127);return P}function d(u,h,w){var P="";w=Math.min(u.length,w);for(var U=h;U<w;++U)P+=String.fromCharCode(u[U]);return P}function _(u,h,w){var P=u.length;(!h||h<0)&&(h=0),(!w||w<0||w>P)&&(w=P);for(var U="",ne=h;ne<w;++ne)U+=be(u[ne]);return U}function g(u,h,w){for(var P=u.slice(h,w),U="",ne=0;ne<P.length;ne+=2)U+=String.fromCharCode(P[ne]+P[ne+1]*256);return U}c.prototype.slice=function(u,h){var w=this.length;u=~~u,h=h===void 0?w:~~h,u<0?(u+=w,u<0&&(u=0)):u>w&&(u=w),h<0?(h+=w,h<0&&(h=0)):h>w&&(h=w),h<u&&(h=u);var P;if(c.TYPED_ARRAY_SUPPORT)P=this.subarray(u,h),P.__proto__=c.prototype;else{var U=h-u;P=new c(U,void 0);for(var ne=0;ne<U;++ne)P[ne]=this[ne+u]}return P};function m(u,h,w){if(u%1!==0||u<0)throw new RangeError("offset is not uint");if(u+h>w)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUIntLE=function(u,h,w){u=u|0,h=h|0,w||m(u,h,this.length);for(var P=this[u],U=1,ne=0;++ne<h&&(U*=256);)P+=this[u+ne]*U;return P},c.prototype.readUIntBE=function(u,h,w){u=u|0,h=h|0,w||m(u,h,this.length);for(var P=this[u+--h],U=1;h>0&&(U*=256);)P+=this[u+--h]*U;return P},c.prototype.readUInt8=function(u,h){return h||m(u,1,this.length),this[u]},c.prototype.readUInt16LE=function(u,h){return h||m(u,2,this.length),this[u]|this[u+1]<<8},c.prototype.readUInt16BE=function(u,h){return h||m(u,2,this.length),this[u]<<8|this[u+1]},c.prototype.readUInt32LE=function(u,h){return h||m(u,4,this.length),(this[u]|this[u+1]<<8|this[u+2]<<16)+this[u+3]*16777216},c.prototype.readUInt32BE=function(u,h){return h||m(u,4,this.length),this[u]*16777216+(this[u+1]<<16|this[u+2]<<8|this[u+3])},c.prototype.readIntLE=function(u,h,w){u=u|0,h=h|0,w||m(u,h,this.length);for(var P=this[u],U=1,ne=0;++ne<h&&(U*=256);)P+=this[u+ne]*U;return U*=128,P>=U&&(P-=Math.pow(2,8*h)),P},c.prototype.readIntBE=function(u,h,w){u=u|0,h=h|0,w||m(u,h,this.length);for(var P=h,U=1,ne=this[u+--P];P>0&&(U*=256);)ne+=this[u+--P]*U;return U*=128,ne>=U&&(ne-=Math.pow(2,8*h)),ne},c.prototype.readInt8=function(u,h){return h||m(u,1,this.length),this[u]&128?(255-this[u]+1)*-1:this[u]},c.prototype.readInt16LE=function(u,h){h||m(u,2,this.length);var w=this[u]|this[u+1]<<8;return w&32768?w|4294901760:w},c.prototype.readInt16BE=function(u,h){h||m(u,2,this.length);var w=this[u+1]|this[u]<<8;return w&32768?w|4294901760:w},c.prototype.readInt32LE=function(u,h){return h||m(u,4,this.length),this[u]|this[u+1]<<8|this[u+2]<<16|this[u+3]<<24},c.prototype.readInt32BE=function(u,h){return h||m(u,4,this.length),this[u]<<24|this[u+1]<<16|this[u+2]<<8|this[u+3]},c.prototype.readFloatLE=function(u,h){return h||m(u,4,this.length),r.read(this,u,!0,23,4)},c.prototype.readFloatBE=function(u,h){return h||m(u,4,this.length),r.read(this,u,!1,23,4)},c.prototype.readDoubleLE=function(u,h){return h||m(u,8,this.length),r.read(this,u,!0,52,8)},c.prototype.readDoubleBE=function(u,h){return h||m(u,8,this.length),r.read(this,u,!1,52,8)};function T(u,h,w,P,U,ne){if(!c.isBuffer(u))throw new TypeError('"buffer" argument must be a Buffer instance');if(h>U||h<ne)throw new RangeError('"value" argument is out of bounds');if(w+P>u.length)throw new RangeError("Index out of range")}c.prototype.writeUIntLE=function(u,h,w,P){if(u=+u,h=h|0,w=w|0,!P){var U=Math.pow(2,8*w)-1;T(this,u,h,w,U,0)}var ne=1,xe=0;for(this[h]=u&255;++xe<w&&(ne*=256);)this[h+xe]=u/ne&255;return h+w},c.prototype.writeUIntBE=function(u,h,w,P){if(u=+u,h=h|0,w=w|0,!P){var U=Math.pow(2,8*w)-1;T(this,u,h,w,U,0)}var ne=w-1,xe=1;for(this[h+ne]=u&255;--ne>=0&&(xe*=256);)this[h+ne]=u/xe&255;return h+w},c.prototype.writeUInt8=function(u,h,w){return u=+u,h=h|0,w||T(this,u,h,1,255,0),c.TYPED_ARRAY_SUPPORT||(u=Math.floor(u)),this[h]=u&255,h+1};function Y(u,h,w,P){h<0&&(h=65535+h+1);for(var U=0,ne=Math.min(u.length-w,2);U<ne;++U)u[w+U]=(h&255<<8*(P?U:1-U))>>>(P?U:1-U)*8}c.prototype.writeUInt16LE=function(u,h,w){return u=+u,h=h|0,w||T(this,u,h,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[h]=u&255,this[h+1]=u>>>8):Y(this,u,h,!0),h+2},c.prototype.writeUInt16BE=function(u,h,w){return u=+u,h=h|0,w||T(this,u,h,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[h]=u>>>8,this[h+1]=u&255):Y(this,u,h,!1),h+2};function Z(u,h,w,P){h<0&&(h=4294967295+h+1);for(var U=0,ne=Math.min(u.length-w,4);U<ne;++U)u[w+U]=h>>>(P?U:3-U)*8&255}c.prototype.writeUInt32LE=function(u,h,w){return u=+u,h=h|0,w||T(this,u,h,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[h+3]=u>>>24,this[h+2]=u>>>16,this[h+1]=u>>>8,this[h]=u&255):Z(this,u,h,!0),h+4},c.prototype.writeUInt32BE=function(u,h,w){return u=+u,h=h|0,w||T(this,u,h,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[h]=u>>>24,this[h+1]=u>>>16,this[h+2]=u>>>8,this[h+3]=u&255):Z(this,u,h,!1),h+4},c.prototype.writeIntLE=function(u,h,w,P){if(u=+u,h=h|0,!P){var U=Math.pow(2,8*w-1);T(this,u,h,w,U-1,-U)}var ne=0,xe=1,De=0;for(this[h]=u&255;++ne<w&&(xe*=256);)u<0&&De===0&&this[h+ne-1]!==0&&(De=1),this[h+ne]=(u/xe>>0)-De&255;return h+w},c.prototype.writeIntBE=function(u,h,w,P){if(u=+u,h=h|0,!P){var U=Math.pow(2,8*w-1);T(this,u,h,w,U-1,-U)}var ne=w-1,xe=1,De=0;for(this[h+ne]=u&255;--ne>=0&&(xe*=256);)u<0&&De===0&&this[h+ne+1]!==0&&(De=1),this[h+ne]=(u/xe>>0)-De&255;return h+w},c.prototype.writeInt8=function(u,h,w){return u=+u,h=h|0,w||T(this,u,h,1,127,-128),c.TYPED_ARRAY_SUPPORT||(u=Math.floor(u)),u<0&&(u=255+u+1),this[h]=u&255,h+1},c.prototype.writeInt16LE=function(u,h,w){return u=+u,h=h|0,w||T(this,u,h,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[h]=u&255,this[h+1]=u>>>8):Y(this,u,h,!0),h+2},c.prototype.writeInt16BE=function(u,h,w){return u=+u,h=h|0,w||T(this,u,h,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[h]=u>>>8,this[h+1]=u&255):Y(this,u,h,!1),h+2},c.prototype.writeInt32LE=function(u,h,w){return u=+u,h=h|0,w||T(this,u,h,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[h]=u&255,this[h+1]=u>>>8,this[h+2]=u>>>16,this[h+3]=u>>>24):Z(this,u,h,!0),h+4},c.prototype.writeInt32BE=function(u,h,w){return u=+u,h=h|0,w||T(this,u,h,4,2147483647,-2147483648),u<0&&(u=4294967295+u+1),c.TYPED_ARRAY_SUPPORT?(this[h]=u>>>24,this[h+1]=u>>>16,this[h+2]=u>>>8,this[h+3]=u&255):Z(this,u,h,!1),h+4};function ce(u,h,w,P,U,ne){if(w+P>u.length)throw new RangeError("Index out of range");if(w<0)throw new RangeError("Index out of range")}function de(u,h,w,P,U){return U||ce(u,h,w,4),r.write(u,h,w,P,23,4),w+4}c.prototype.writeFloatLE=function(u,h,w){return de(this,u,h,!0,w)},c.prototype.writeFloatBE=function(u,h,w){return de(this,u,h,!1,w)};function we(u,h,w,P,U){return U||ce(u,h,w,8),r.write(u,h,w,P,52,8),w+8}c.prototype.writeDoubleLE=function(u,h,w){return we(this,u,h,!0,w)},c.prototype.writeDoubleBE=function(u,h,w){return we(this,u,h,!1,w)},c.prototype.copy=function(u,h,w,P){if(w||(w=0),!P&&P!==0&&(P=this.length),h>=u.length&&(h=u.length),h||(h=0),P>0&&P<w&&(P=w),P===w||u.length===0||this.length===0)return 0;if(h<0)throw new RangeError("targetStart out of bounds");if(w<0||w>=this.length)throw new RangeError("sourceStart out of bounds");if(P<0)throw new RangeError("sourceEnd out of bounds");P>this.length&&(P=this.length),u.length-h<P-w&&(P=u.length-h+w);var U=P-w,ne;if(this===u&&w<h&&h<P)for(ne=U-1;ne>=0;--ne)u[ne+h]=this[ne+w];else if(U<1e3||!c.TYPED_ARRAY_SUPPORT)for(ne=0;ne<U;++ne)u[ne+h]=this[ne+w];else Uint8Array.prototype.set.call(u,this.subarray(w,w+U),h);return U},c.prototype.fill=function(u,h,w,P){if(typeof u=="string"){if(typeof h=="string"?(P=h,h=0,w=this.length):typeof w=="string"&&(P=w,w=this.length),u.length===1){var U=u.charCodeAt(0);U<256&&(u=U)}if(P!==void 0&&typeof P!="string")throw new TypeError("encoding must be a string");if(typeof P=="string"&&!c.isEncoding(P))throw new TypeError("Unknown encoding: "+P)}else typeof u=="number"&&(u=u&255);if(h<0||this.length<h||this.length<w)throw new RangeError("Out of range index");if(w<=h)return this;h=h>>>0,w=w===void 0?this.length:w>>>0,u||(u=0);var ne;if(typeof u=="number")for(ne=h;ne<w;++ne)this[ne]=u;else{var xe=c.isBuffer(u)?u:z(new c(u,P).toString()),De=xe.length;for(ne=0;ne<w-h;++ne)this[ne+h]=xe[ne%De]}return this};var J=/[^+\/0-9A-Za-z-_]/g;function le(u){if(u=Ce(u).replace(J,""),u.length<2)return"";for(;u.length%4!==0;)u=u+"=";return u}function Ce(u){return u.trim?u.trim():u.replace(/^\s+|\s+$/g,"")}function be(u){return u<16?"0"+u.toString(16):u.toString(16)}function z(u,h){h=h||1/0;for(var w,P=u.length,U=null,ne=[],xe=0;xe<P;++xe){if(w=u.charCodeAt(xe),w>55295&&w<57344){if(!U){if(w>56319){(h-=3)>-1&&ne.push(239,191,189);continue}else if(xe+1===P){(h-=3)>-1&&ne.push(239,191,189);continue}U=w;continue}if(w<56320){(h-=3)>-1&&ne.push(239,191,189),U=w;continue}w=(U-55296<<10|w-56320)+65536}else U&&(h-=3)>-1&&ne.push(239,191,189);if(U=null,w<128){if((h-=1)<0)break;ne.push(w)}else if(w<2048){if((h-=2)<0)break;ne.push(w>>6|192,w&63|128)}else if(w<65536){if((h-=3)<0)break;ne.push(w>>12|224,w>>6&63|128,w&63|128)}else if(w<1114112){if((h-=4)<0)break;ne.push(w>>18|240,w>>12&63|128,w>>6&63|128,w&63|128)}else throw new Error("Invalid code point")}return ne}function q(u){for(var h=[],w=0;w<u.length;++w)h.push(u.charCodeAt(w)&255);return h}function W(u,h){for(var w,P,U,ne=[],xe=0;xe<u.length&&!((h-=2)<0);++xe)w=u.charCodeAt(xe),P=w>>8,U=w%256,ne.push(U),ne.push(P);return ne}function K(u){return n.toByteArray(le(u))}function ue(u,h,w,P){for(var U=0;U<P&&!(U+w>=h.length||U>=u.length);++U)h[U+w]=u[U];return U}function Te(u){return u!==u}}(Pl)),Pl}Xd();var Tr;if(typeof window<"u"&&window.crypto&&(Tr=window.crypto),!Tr&&typeof window<"u"&&window.msCrypto&&(Tr=window.msCrypto),!Tr&&typeof global<"u"&&global.crypto&&(Tr=global.crypto),!Tr&&typeof require=="function")try{Tr=require("crypto")}catch{}var zl={};/*! *****************************************************************************
92
92
  Copyright (c) Microsoft Corporation.
93
93
 
94
94
  Permission to use, copy, modify, and/or distribute this software for any
@@ -101,7 +101,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
101
101
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
102
102
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
103
103
  PERFORMANCE OF THIS SOFTWARE.
104
- ***************************************************************************** */var la=function(i,n){return la=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var l in s)s.hasOwnProperty(l)&&(r[l]=s[l])},la(i,n)};function ep(i,n){la(i,n);function r(){this.constructor=i}i.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}var ca=function(){return ca=Object.assign||function(i){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(i[l]=n[l])}return i},ca.apply(this,arguments)};function tp(i,n){var r={};for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&n.indexOf(s)<0&&(r[s]=i[s]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,s=Object.getOwnPropertySymbols(i);l<s.length;l++)n.indexOf(s[l])<0&&Object.prototype.propertyIsEnumerable.call(i,s[l])&&(r[s[l]]=i[s[l]]);return r}function np(i,n,r,s){var l=arguments.length,g=l<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,r):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(i,n,r,s);else for(var c=i.length-1;c>=0;c--)(h=i[c])&&(g=(l<3?h(g):l>3?h(n,r,g):h(n,r))||g);return l>3&&g&&Object.defineProperty(n,r,g),g}function rp(i,n){return function(r,s){n(r,s,i)}}function ip(i,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,n)}function op(i,n,r,s){function l(g){return g instanceof r?g:new r(function(h){h(g)})}return new(r||(r=Promise))(function(g,h){function c(O){try{C(s.next(O))}catch(L){h(L)}}function b(O){try{C(s.throw(O))}catch(L){h(L)}}function C(O){O.done?g(O.value):l(O.value).then(c,b)}C((s=s.apply(i,n||[])).next())})}function sp(i,n){var r={label:0,sent:function(){if(g[0]&1)throw g[1];return g[1]},trys:[],ops:[]},s,l,g,h;return h={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(h[Symbol.iterator]=function(){return this}),h;function c(C){return function(O){return b([C,O])}}function b(C){if(s)throw new TypeError("Generator is already executing.");for(;r;)try{if(s=1,l&&(g=C[0]&2?l.return:C[0]?l.throw||((g=l.return)&&g.call(l),0):l.next)&&!(g=g.call(l,C[1])).done)return g;switch(l=0,g&&(C=[C[0]&2,g.value]),C[0]){case 0:case 1:g=C;break;case 4:return r.label++,{value:C[1],done:!1};case 5:r.label++,l=C[1],C=[0];continue;case 7:C=r.ops.pop(),r.trys.pop();continue;default:if(g=r.trys,!(g=g.length>0&&g[g.length-1])&&(C[0]===6||C[0]===2)){r=0;continue}if(C[0]===3&&(!g||C[1]>g[0]&&C[1]<g[3])){r.label=C[1];break}if(C[0]===6&&r.label<g[1]){r.label=g[1],g=C;break}if(g&&r.label<g[2]){r.label=g[2],r.ops.push(C);break}g[2]&&r.ops.pop(),r.trys.pop();continue}C=n.call(i,r)}catch(O){C=[6,O],l=0}finally{s=g=0}if(C[0]&5)throw C[1];return{value:C[0]?C[1]:void 0,done:!0}}}function ap(i,n,r,s){s===void 0&&(s=r),i[s]=n[r]}function up(i,n){for(var r in i)r!=="default"&&!n.hasOwnProperty(r)&&(n[r]=i[r])}function fa(i){var n=typeof Symbol=="function"&&Symbol.iterator,r=n&&i[n],s=0;if(r)return r.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&s>=i.length&&(i=void 0),{value:i&&i[s++],done:!i}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function Fl(i,n){var r=typeof Symbol=="function"&&i[Symbol.iterator];if(!r)return i;var s=r.call(i),l,g=[],h;try{for(;(n===void 0||n-- >0)&&!(l=s.next()).done;)g.push(l.value)}catch(c){h={error:c}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(h)throw h.error}}return g}function lp(){for(var i=[],n=0;n<arguments.length;n++)i=i.concat(Fl(arguments[n]));return i}function cp(){for(var i=0,n=0,r=arguments.length;n<r;n++)i+=arguments[n].length;for(var s=Array(i),l=0,n=0;n<r;n++)for(var g=arguments[n],h=0,c=g.length;h<c;h++,l++)s[l]=g[h];return s}function Li(i){return this instanceof Li?(this.v=i,this):new Li(i)}function fp(i,n,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=r.apply(i,n||[]),l,g=[];return l={},h("next"),h("throw"),h("return"),l[Symbol.asyncIterator]=function(){return this},l;function h(k){s[k]&&(l[k]=function(M){return new Promise(function(R,E){g.push([k,M,R,E])>1||c(k,M)})})}function c(k,M){try{b(s[k](M))}catch(R){L(g[0][3],R)}}function b(k){k.value instanceof Li?Promise.resolve(k.value.v).then(C,O):L(g[0][2],k)}function C(k){c("next",k)}function O(k){c("throw",k)}function L(k,M){k(M),g.shift(),g.length&&c(g[0][0],g[0][1])}}function hp(i){var n,r;return n={},s("next"),s("throw",function(l){throw l}),s("return"),n[Symbol.iterator]=function(){return this},n;function s(l,g){n[l]=i[l]?function(h){return(r=!r)?{value:Li(i[l](h)),done:l==="return"}:g?g(h):h}:g}}function dp(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i[Symbol.asyncIterator],r;return n?n.call(i):(i=typeof fa=="function"?fa(i):i[Symbol.iterator](),r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r);function s(g){r[g]=i[g]&&function(h){return new Promise(function(c,b){h=i[g](h),l(c,b,h.done,h.value)})}}function l(g,h,c,b){Promise.resolve(b).then(function(C){g({value:C,done:c})},h)}}function pp(i,n){return Object.defineProperty?Object.defineProperty(i,"raw",{value:n}):i.raw=n,i}function gp(i){if(i&&i.__esModule)return i;var n={};if(i!=null)for(var r in i)Object.hasOwnProperty.call(i,r)&&(n[r]=i[r]);return n.default=i,n}function vp(i){return i&&i.__esModule?i:{default:i}}function mp(i,n){if(!n.has(i))throw new TypeError("attempted to get private field on non-instance");return n.get(i)}function yp(i,n,r){if(!n.has(i))throw new TypeError("attempted to set private field on non-instance");return n.set(i,r),r}const wp=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return ca},__asyncDelegator:hp,__asyncGenerator:fp,__asyncValues:dp,__await:Li,__awaiter:op,__classPrivateFieldGet:mp,__classPrivateFieldSet:yp,__createBinding:ap,__decorate:np,__exportStar:up,__extends:ep,__generator:sp,__importDefault:vp,__importStar:gp,__makeTemplateObject:pp,__metadata:ip,__param:rp,__read:Fl,__rest:tp,__spread:lp,__spreadArrays:cp,__values:fa},Symbol.toStringTag,{value:"Module"})),Wl=ra(wp);var ki={},ln={},Yl;function ql(){return Yl||(Yl=1,Object.defineProperty(ln,"__esModule",{value:!0}),ln.MAX_HASHABLE_LENGTH=ln.INIT=ln.KEY=ln.DIGEST_LENGTH=ln.BLOCK_SIZE=void 0,ln.BLOCK_SIZE=64,ln.DIGEST_LENGTH=32,ln.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),ln.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],ln.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1),ln}var Ii={},Hl;function _p(){if(Hl)return Ii;Hl=1,Object.defineProperty(Ii,"__esModule",{value:!0}),Ii.RawSha256=void 0;var i=ql(),n=function(){function r(){this.state=Int32Array.from(i.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return r.prototype.update=function(s){if(this.finished)throw new Error("Attempted to update an already finished hash.");var l=0,g=s.byteLength;if(this.bytesHashed+=g,this.bytesHashed*8>i.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;g>0;)this.buffer[this.bufferLength++]=s[l++],g--,this.bufferLength===i.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},r.prototype.digest=function(){if(!this.finished){var s=this.bytesHashed*8,l=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),g=this.bufferLength;if(l.setUint8(this.bufferLength++,128),g%i.BLOCK_SIZE>=i.BLOCK_SIZE-8){for(var h=this.bufferLength;h<i.BLOCK_SIZE;h++)l.setUint8(h,0);this.hashBuffer(),this.bufferLength=0}for(var h=this.bufferLength;h<i.BLOCK_SIZE-8;h++)l.setUint8(h,0);l.setUint32(i.BLOCK_SIZE-8,Math.floor(s/4294967296),!0),l.setUint32(i.BLOCK_SIZE-4,s),this.hashBuffer(),this.finished=!0}for(var c=new Uint8Array(i.DIGEST_LENGTH),h=0;h<8;h++)c[h*4]=this.state[h]>>>24&255,c[h*4+1]=this.state[h]>>>16&255,c[h*4+2]=this.state[h]>>>8&255,c[h*4+3]=this.state[h]>>>0&255;return c},r.prototype.hashBuffer=function(){for(var s=this,l=s.buffer,g=s.state,h=g[0],c=g[1],b=g[2],C=g[3],O=g[4],L=g[5],k=g[6],M=g[7],R=0;R<i.BLOCK_SIZE;R++){if(R<16)this.temp[R]=(l[R*4]&255)<<24|(l[R*4+1]&255)<<16|(l[R*4+2]&255)<<8|l[R*4+3]&255;else{var E=this.temp[R-2],N=(E>>>17|E<<15)^(E>>>19|E<<13)^E>>>10;E=this.temp[R-15];var Q=(E>>>7|E<<25)^(E>>>18|E<<14)^E>>>3;this.temp[R]=(N+this.temp[R-7]|0)+(Q+this.temp[R-16]|0)}var te=(((O>>>6|O<<26)^(O>>>11|O<<21)^(O>>>25|O<<7))+(O&L^~O&k)|0)+(M+(i.KEY[R]+this.temp[R]|0)|0)|0,ee=((h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10))+(h&c^h&b^c&b)|0;M=k,k=L,L=O,O=C+te|0,C=b,b=c,c=h,h=te+ee|0}g[0]+=h,g[1]+=c,g[2]+=b,g[3]+=C,g[4]+=O,g[5]+=L,g[6]+=k,g[7]+=M},r}();return Ii.RawSha256=n,Ii}var Gl={},$i={};const bp=i=>{const n=[];for(let r=0,s=i.length;r<s;r++){const l=i.charCodeAt(r);if(l<128)n.push(l);else if(l<2048)n.push(l>>6|192,l&63|128);else if(r+1<i.length&&(l&64512)===55296&&(i.charCodeAt(r+1)&64512)===56320){const g=65536+((l&1023)<<10)+(i.charCodeAt(++r)&1023);n.push(g>>18|240,g>>12&63|128,g>>6&63|128,g&63|128)}else n.push(l>>12|224,l>>6&63|128,l&63|128)}return Uint8Array.from(n)},xp=i=>{let n="";for(let r=0,s=i.length;r<s;r++){const l=i[r];if(l<128)n+=String.fromCharCode(l);else if(192<=l&&l<224){const g=i[++r];n+=String.fromCharCode((l&31)<<6|g&63)}else if(240<=l&&l<365){const g="%"+[l,i[++r],i[++r],i[++r]].map(h=>h.toString(16)).join("%");n+=decodeURIComponent(g)}else n+=String.fromCharCode((l&15)<<12|(i[++r]&63)<<6|i[++r]&63)}return n};function Sp(i){return new TextEncoder().encode(i)}function Cp(i){return new TextDecoder("utf-8").decode(i)}const Ap=i=>typeof TextEncoder=="function"?Sp(i):bp(i),Op=i=>typeof TextDecoder=="function"?Cp(i):xp(i),Tp=Object.freeze(Object.defineProperty({__proto__:null,fromUtf8:Ap,toUtf8:Op},Symbol.toStringTag,{value:"Module"})),Dp=ra(Tp);var Vl;function Ep(){if(Vl)return $i;Vl=1,Object.defineProperty($i,"__esModule",{value:!0}),$i.convertToBuffer=void 0;var i=Dp,n=typeof Buffer<"u"&&Buffer.from?function(s){return Buffer.from(s,"utf8")}:i.fromUtf8;function r(s){return s instanceof Uint8Array?s:typeof s=="string"?n(s):ArrayBuffer.isView(s)?new Uint8Array(s.buffer,s.byteOffset,s.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(s)}return $i.convertToBuffer=r,$i}var Pi={},Zl;function Mp(){if(Zl)return Pi;Zl=1,Object.defineProperty(Pi,"__esModule",{value:!0}),Pi.isEmptyData=void 0;function i(n){return typeof n=="string"?n.length===0:n.byteLength===0}return Pi.isEmptyData=i,Pi}var Ni={},Kl;function Rp(){if(Kl)return Ni;Kl=1,Object.defineProperty(Ni,"__esModule",{value:!0}),Ni.numToUint8=void 0;function i(n){return new Uint8Array([(n&4278190080)>>24,(n&16711680)>>16,(n&65280)>>8,n&255])}return Ni.numToUint8=i,Ni}var Bi={},Ql;function Lp(){if(Ql)return Bi;Ql=1,Object.defineProperty(Bi,"__esModule",{value:!0}),Bi.uint32ArrayFrom=void 0;function i(n){if(!Array.from){for(var r=new Uint32Array(n.length),s=0;s<n.length;)r[s]=n[s];return r}return Uint32Array.from(n)}return Bi.uint32ArrayFrom=i,Bi}var Jl;function kp(){return Jl||(Jl=1,function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.uint32ArrayFrom=i.numToUint8=i.isEmptyData=i.convertToBuffer=void 0;var n=Ep();Object.defineProperty(i,"convertToBuffer",{enumerable:!0,get:function(){return n.convertToBuffer}});var r=Mp();Object.defineProperty(i,"isEmptyData",{enumerable:!0,get:function(){return r.isEmptyData}});var s=Rp();Object.defineProperty(i,"numToUint8",{enumerable:!0,get:function(){return s.numToUint8}});var l=Lp();Object.defineProperty(i,"uint32ArrayFrom",{enumerable:!0,get:function(){return l.uint32ArrayFrom}})}(Gl)),Gl}var Xl;function Ip(){if(Xl)return ki;Xl=1,Object.defineProperty(ki,"__esModule",{value:!0}),ki.Sha256=void 0;var i=Wl,n=ql(),r=_p(),s=kp(),l=function(){function h(c){if(this.hash=new r.RawSha256,c){this.outer=new r.RawSha256;var b=g(c),C=new Uint8Array(n.BLOCK_SIZE);C.set(b);for(var O=0;O<n.BLOCK_SIZE;O++)b[O]^=54,C[O]^=92;this.hash.update(b),this.outer.update(C);for(var O=0;O<b.byteLength;O++)b[O]=0}}return h.prototype.update=function(c){if(!((0,s.isEmptyData)(c)||this.error))try{this.hash.update((0,s.convertToBuffer)(c))}catch(b){this.error=b}},h.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},h.prototype.digest=function(){return(0,i.__awaiter)(this,void 0,void 0,function(){return(0,i.__generator)(this,function(c){return[2,this.digestSync()]})})},h}();ki.Sha256=l;function g(h){var c=(0,s.convertToBuffer)(h);if(c.byteLength>n.BLOCK_SIZE){var b=new r.RawSha256;b.update(c),c=b.digest()}var C=new Uint8Array(n.BLOCK_SIZE);return C.set(c),C}return ki}var ec;function $p(){return ec||(ec=1,function(i){Object.defineProperty(i,"__esModule",{value:!0});var n=Wl;(0,n.__exportStar)(Ip(),i)}(zl)),zl}$p();function Ue(i,n){i!=null&&this.fromString(i,n)}function Nt(){return new Ue(null)}var er,Pp=0xdeadbeefcafe,tc=(Pp&16777215)==15715070;function Np(i,n,r,s,l,g){for(;--g>=0;){var h=n*this[i++]+r[s]+l;l=Math.floor(h/67108864),r[s++]=h&67108863}return l}function Bp(i,n,r,s,l,g){for(var h=n&32767,c=n>>15;--g>=0;){var b=this[i]&32767,C=this[i++]>>15,O=c*b+C*h;b=h*b+((O&32767)<<15)+r[s]+(l&1073741823),l=(b>>>30)+(O>>>15)+c*C+(l>>>30),r[s++]=b&1073741823}return l}function jp(i,n,r,s,l,g){for(var h=n&16383,c=n>>14;--g>=0;){var b=this[i]&16383,C=this[i++]>>14,O=c*b+C*h;b=h*b+((O&16383)<<14)+r[s]+l,l=(b>>28)+(O>>14)+c*C,r[s++]=b&268435455}return l}var nc=typeof navigator<"u";nc&&tc&&navigator.appName=="Microsoft Internet Explorer"?(Ue.prototype.am=Bp,er=30):nc&&tc&&navigator.appName!="Netscape"?(Ue.prototype.am=Np,er=26):(Ue.prototype.am=jp,er=28),Ue.prototype.DB=er,Ue.prototype.DM=(1<<er)-1,Ue.prototype.DV=1<<er;var ha=52;Ue.prototype.FV=Math.pow(2,ha),Ue.prototype.F1=ha-er,Ue.prototype.F2=2*er-ha;var Up="0123456789abcdefghijklmnopqrstuvwxyz",To=new Array,Zr,cn;for(Zr=48,cn=0;cn<=9;++cn)To[Zr++]=cn;for(Zr=97,cn=10;cn<36;++cn)To[Zr++]=cn;for(Zr=65,cn=10;cn<36;++cn)To[Zr++]=cn;function rc(i){return Up.charAt(i)}function zp(i,n){var r=To[i.charCodeAt(n)];return r??-1}function Fp(i){for(var n=this.t-1;n>=0;--n)i[n]=this[n];i.t=this.t,i.s=this.s}function Wp(i){this.t=1,this.s=i<0?-1:0,i>0?this[0]=i:i<-1?this[0]=i+this.DV:this.t=0}function da(i){var n=Nt();return n.fromInt(i),n}function Yp(i,n){var r;if(n==16)r=4;else if(n==8)r=3;else if(n==2)r=1;else if(n==32)r=5;else if(n==4)r=2;else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");this.t=0,this.s=0;for(var s=i.length,l=!1,g=0;--s>=0;){var h=zp(i,s);if(h<0){i.charAt(s)=="-"&&(l=!0);continue}l=!1,g==0?this[this.t++]=h:g+r>this.DB?(this[this.t-1]|=(h&(1<<this.DB-g)-1)<<g,this[this.t++]=h>>this.DB-g):this[this.t-1]|=h<<g,g+=r,g>=this.DB&&(g-=this.DB)}this.clamp(),l&&Ue.ZERO.subTo(this,this)}function qp(){for(var i=this.s&this.DM;this.t>0&&this[this.t-1]==i;)--this.t}function Hp(i){if(this.s<0)return"-"+this.negate().toString(i);var n;if(i==16)n=4;else if(i==8)n=3;else if(i==2)n=1;else if(i==32)n=5;else if(i==4)n=2;else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");var r=(1<<n)-1,s,l=!1,g="",h=this.t,c=this.DB-h*this.DB%n;if(h-- >0)for(c<this.DB&&(s=this[h]>>c)>0&&(l=!0,g=rc(s));h>=0;)c<n?(s=(this[h]&(1<<c)-1)<<n-c,s|=this[--h]>>(c+=this.DB-n)):(s=this[h]>>(c-=n)&r,c<=0&&(c+=this.DB,--h)),s>0&&(l=!0),l&&(g+=rc(s));return l?g:"0"}function Gp(){var i=Nt();return Ue.ZERO.subTo(this,i),i}function Vp(){return this.s<0?this.negate():this}function Zp(i){var n=this.s-i.s;if(n!=0)return n;var r=this.t;if(n=r-i.t,n!=0)return this.s<0?-n:n;for(;--r>=0;)if((n=this[r]-i[r])!=0)return n;return 0}function pa(i){var n=1,r;return(r=i>>>16)!=0&&(i=r,n+=16),(r=i>>8)!=0&&(i=r,n+=8),(r=i>>4)!=0&&(i=r,n+=4),(r=i>>2)!=0&&(i=r,n+=2),(r=i>>1)!=0&&(i=r,n+=1),n}function Kp(){return this.t<=0?0:this.DB*(this.t-1)+pa(this[this.t-1]^this.s&this.DM)}function Qp(i,n){var r;for(r=this.t-1;r>=0;--r)n[r+i]=this[r];for(r=i-1;r>=0;--r)n[r]=0;n.t=this.t+i,n.s=this.s}function Jp(i,n){for(var r=i;r<this.t;++r)n[r-i]=this[r];n.t=Math.max(this.t-i,0),n.s=this.s}function Xp(i,n){var r=i%this.DB,s=this.DB-r,l=(1<<s)-1,g=Math.floor(i/this.DB),h=this.s<<r&this.DM,c;for(c=this.t-1;c>=0;--c)n[c+g+1]=this[c]>>s|h,h=(this[c]&l)<<r;for(c=g-1;c>=0;--c)n[c]=0;n[g]=h,n.t=this.t+g+1,n.s=this.s,n.clamp()}function eg(i,n){n.s=this.s;var r=Math.floor(i/this.DB);if(r>=this.t){n.t=0;return}var s=i%this.DB,l=this.DB-s,g=(1<<s)-1;n[0]=this[r]>>s;for(var h=r+1;h<this.t;++h)n[h-r-1]|=(this[h]&g)<<l,n[h-r]=this[h]>>s;s>0&&(n[this.t-r-1]|=(this.s&g)<<l),n.t=this.t-r,n.clamp()}function tg(i,n){for(var r=0,s=0,l=Math.min(i.t,this.t);r<l;)s+=this[r]-i[r],n[r++]=s&this.DM,s>>=this.DB;if(i.t<this.t){for(s-=i.s;r<this.t;)s+=this[r],n[r++]=s&this.DM,s>>=this.DB;s+=this.s}else{for(s+=this.s;r<i.t;)s-=i[r],n[r++]=s&this.DM,s>>=this.DB;s-=i.s}n.s=s<0?-1:0,s<-1?n[r++]=this.DV+s:s>0&&(n[r++]=s),n.t=r,n.clamp()}function ng(i,n){var r=this.abs(),s=i.abs(),l=r.t;for(n.t=l+s.t;--l>=0;)n[l]=0;for(l=0;l<s.t;++l)n[l+r.t]=r.am(0,s[l],n,l,0,r.t);n.s=0,n.clamp(),this.s!=i.s&&Ue.ZERO.subTo(n,n)}function rg(i){for(var n=this.abs(),r=i.t=2*n.t;--r>=0;)i[r]=0;for(r=0;r<n.t-1;++r){var s=n.am(r,n[r],i,2*r,0,1);(i[r+n.t]+=n.am(r+1,2*n[r],i,2*r+1,s,n.t-r-1))>=n.DV&&(i[r+n.t]-=n.DV,i[r+n.t+1]=1)}i.t>0&&(i[i.t-1]+=n.am(r,n[r],i,2*r,0,1)),i.s=0,i.clamp()}function ig(i,n,r){var s=i.abs();if(!(s.t<=0)){var l=this.abs();if(l.t<s.t){n!=null&&n.fromInt(0),r!=null&&this.copyTo(r);return}r==null&&(r=Nt());var g=Nt(),h=this.s,c=i.s,b=this.DB-pa(s[s.t-1]);b>0?(s.lShiftTo(b,g),l.lShiftTo(b,r)):(s.copyTo(g),l.copyTo(r));var C=g.t,O=g[C-1];if(O!=0){var L=O*(1<<this.F1)+(C>1?g[C-2]>>this.F2:0),k=this.FV/L,M=(1<<this.F1)/L,R=1<<this.F2,E=r.t,N=E-C,Q=n??Nt();for(g.dlShiftTo(N,Q),r.compareTo(Q)>=0&&(r[r.t++]=1,r.subTo(Q,r)),Ue.ONE.dlShiftTo(C,Q),Q.subTo(g,g);g.t<C;)g[g.t++]=0;for(;--N>=0;){var te=r[--E]==O?this.DM:Math.floor(r[E]*k+(r[E-1]+R)*M);if((r[E]+=g.am(0,te,r,N,0,C))<te)for(g.dlShiftTo(N,Q),r.subTo(Q,r);r[E]<--te;)r.subTo(Q,r)}n!=null&&(r.drShiftTo(C,n),h!=c&&Ue.ZERO.subTo(n,n)),r.t=C,r.clamp(),b>0&&r.rShiftTo(b,r),h<0&&Ue.ZERO.subTo(r,r)}}}function og(i){var n=Nt();return this.abs().divRemTo(i,null,n),this.s<0&&n.compareTo(Ue.ZERO)>0&&i.subTo(n,n),n}function sg(){if(this.t<1)return 0;var i=this[0];if((i&1)==0)return 0;var n=i&3;return n=n*(2-(i&15)*n)&15,n=n*(2-(i&255)*n)&255,n=n*(2-((i&65535)*n&65535))&65535,n=n*(2-i*n%this.DV)%this.DV,n>0?this.DV-n:-n}function ag(i){return this.compareTo(i)==0}function ug(i,n){for(var r=0,s=0,l=Math.min(i.t,this.t);r<l;)s+=this[r]+i[r],n[r++]=s&this.DM,s>>=this.DB;if(i.t<this.t){for(s+=i.s;r<this.t;)s+=this[r],n[r++]=s&this.DM,s>>=this.DB;s+=this.s}else{for(s+=this.s;r<i.t;)s+=i[r],n[r++]=s&this.DM,s>>=this.DB;s+=i.s}n.s=s<0?-1:0,s>0?n[r++]=s:s<-1&&(n[r++]=this.DV+s),n.t=r,n.clamp()}function lg(i){var n=Nt();return this.addTo(i,n),n}function cg(i){var n=Nt();return this.subTo(i,n),n}function fg(i){var n=Nt();return this.multiplyTo(i,n),n}function hg(i){var n=Nt();return this.divRemTo(i,n,null),n}function Kr(i){this.m=i,this.mp=i.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<i.DB-15)-1,this.mt2=2*i.t}function dg(i){var n=Nt();return i.abs().dlShiftTo(this.m.t,n),n.divRemTo(this.m,null,n),i.s<0&&n.compareTo(Ue.ZERO)>0&&this.m.subTo(n,n),n}function pg(i){var n=Nt();return i.copyTo(n),this.reduce(n),n}function gg(i){for(;i.t<=this.mt2;)i[i.t++]=0;for(var n=0;n<this.m.t;++n){var r=i[n]&32767,s=r*this.mpl+((r*this.mph+(i[n]>>15)*this.mpl&this.um)<<15)&i.DM;for(r=n+this.m.t,i[r]+=this.m.am(0,s,i,n,0,this.m.t);i[r]>=i.DV;)i[r]-=i.DV,i[++r]++}i.clamp(),i.drShiftTo(this.m.t,i),i.compareTo(this.m)>=0&&i.subTo(this.m,i)}function vg(i,n){i.squareTo(n),this.reduce(n)}function mg(i,n,r){i.multiplyTo(n,r),this.reduce(r)}Kr.prototype.convert=dg,Kr.prototype.revert=pg,Kr.prototype.reduce=gg,Kr.prototype.mulTo=mg,Kr.prototype.sqrTo=vg;function yg(i,n,r){var s=i.bitLength(),l,g=da(1),h=new Kr(n);if(s<=0)return g;s<18?l=1:s<48?l=3:s<144?l=4:s<768?l=5:l=6;var c=new Array,b=3,C=l-1,O=(1<<l)-1;if(c[1]=h.convert(this),l>1){var L=Nt();for(h.sqrTo(c[1],L);b<=O;)c[b]=Nt(),h.mulTo(L,c[b-2],c[b]),b+=2}var k=i.t-1,M,R=!0,E=Nt(),N;for(s=pa(i[k])-1;k>=0;){for(s>=C?M=i[k]>>s-C&O:(M=(i[k]&(1<<s+1)-1)<<C-s,k>0&&(M|=i[k-1]>>this.DB+s-C)),b=l;(M&1)==0;)M>>=1,--b;if((s-=b)<0&&(s+=this.DB,--k),R)c[M].copyTo(g),R=!1;else{for(;b>1;)h.sqrTo(g,E),h.sqrTo(E,g),b-=2;b>0?h.sqrTo(g,E):(N=g,g=E,E=N),h.mulTo(E,c[M],g)}for(;k>=0&&(i[k]&1<<s)==0;)h.sqrTo(g,E),N=g,g=E,E=N,--s<0&&(s=this.DB-1,--k)}var Q=h.revert(g);return r(null,Q),Q}Ue.prototype.copyTo=Fp,Ue.prototype.fromInt=Wp,Ue.prototype.fromString=Yp,Ue.prototype.clamp=qp,Ue.prototype.dlShiftTo=Qp,Ue.prototype.drShiftTo=Jp,Ue.prototype.lShiftTo=Xp,Ue.prototype.rShiftTo=eg,Ue.prototype.subTo=tg,Ue.prototype.multiplyTo=ng,Ue.prototype.squareTo=rg,Ue.prototype.divRemTo=ig,Ue.prototype.invDigit=sg,Ue.prototype.addTo=ug,Ue.prototype.toString=Hp,Ue.prototype.negate=Gp,Ue.prototype.abs=Vp,Ue.prototype.compareTo=Zp,Ue.prototype.bitLength=Kp,Ue.prototype.mod=og,Ue.prototype.equals=ag,Ue.prototype.add=lg,Ue.prototype.subtract=cg,Ue.prototype.multiply=fg,Ue.prototype.divide=hg,Ue.prototype.modPow=yg,Ue.ZERO=da(0),Ue.ONE=da(1);function wg(i,n){return n=n||{},new Promise(function(r,s){var l=new XMLHttpRequest,g=[],h=[],c={},b=function(){return{ok:(l.status/100|0)==2,statusText:l.statusText,status:l.status,url:l.responseURL,text:function(){return Promise.resolve(l.responseText)},json:function(){return Promise.resolve(l.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([l.response]))},clone:b,headers:{keys:function(){return g},entries:function(){return h},get:function(O){return c[O.toLowerCase()]},has:function(O){return O.toLowerCase()in c}}}};for(var C in l.open(n.method||"get",i,!0),l.onload=function(){l.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(O,L,k){g.push(L=L.toLowerCase()),h.push([L,k]),c[L]=c[L]?c[L]+","+k:k}),r(b())},l.onerror=s,l.withCredentials=n.credentials=="include",n.headers)l.setRequestHeader(C,n.headers[C]);l.send(n.body||null)})}const _g=Object.freeze(Object.defineProperty({__proto__:null,default:wg},Symbol.toStringTag,{value:"Module"})),ic=ra(_g);var oc,sc;function bg(){return sc||(sc=1,oc=self.fetch||(self.fetch=ic.default||ic)),oc}bg();/*!
104
+ ***************************************************************************** */var la=function(i,n){return la=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var l in s)s.hasOwnProperty(l)&&(r[l]=s[l])},la(i,n)};function ep(i,n){la(i,n);function r(){this.constructor=i}i.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}var ca=function(){return ca=Object.assign||function(i){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(i[l]=n[l])}return i},ca.apply(this,arguments)};function tp(i,n){var r={};for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&n.indexOf(s)<0&&(r[s]=i[s]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,s=Object.getOwnPropertySymbols(i);l<s.length;l++)n.indexOf(s[l])<0&&Object.prototype.propertyIsEnumerable.call(i,s[l])&&(r[s[l]]=i[s[l]]);return r}function np(i,n,r,s){var l=arguments.length,p=l<3?n:s===null?s=Object.getOwnPropertyDescriptor(n,r):s,f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(i,n,r,s);else for(var c=i.length-1;c>=0;c--)(f=i[c])&&(p=(l<3?f(p):l>3?f(n,r,p):f(n,r))||p);return l>3&&p&&Object.defineProperty(n,r,p),p}function rp(i,n){return function(r,s){n(r,s,i)}}function ip(i,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,n)}function op(i,n,r,s){function l(p){return p instanceof r?p:new r(function(f){f(p)})}return new(r||(r=Promise))(function(p,f){function c(O){try{C(s.next(O))}catch(L){f(L)}}function b(O){try{C(s.throw(O))}catch(L){f(L)}}function C(O){O.done?p(O.value):l(O.value).then(c,b)}C((s=s.apply(i,n||[])).next())})}function sp(i,n){var r={label:0,sent:function(){if(p[0]&1)throw p[1];return p[1]},trys:[],ops:[]},s,l,p,f;return f={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(f[Symbol.iterator]=function(){return this}),f;function c(C){return function(O){return b([C,O])}}function b(C){if(s)throw new TypeError("Generator is already executing.");for(;r;)try{if(s=1,l&&(p=C[0]&2?l.return:C[0]?l.throw||((p=l.return)&&p.call(l),0):l.next)&&!(p=p.call(l,C[1])).done)return p;switch(l=0,p&&(C=[C[0]&2,p.value]),C[0]){case 0:case 1:p=C;break;case 4:return r.label++,{value:C[1],done:!1};case 5:r.label++,l=C[1],C=[0];continue;case 7:C=r.ops.pop(),r.trys.pop();continue;default:if(p=r.trys,!(p=p.length>0&&p[p.length-1])&&(C[0]===6||C[0]===2)){r=0;continue}if(C[0]===3&&(!p||C[1]>p[0]&&C[1]<p[3])){r.label=C[1];break}if(C[0]===6&&r.label<p[1]){r.label=p[1],p=C;break}if(p&&r.label<p[2]){r.label=p[2],r.ops.push(C);break}p[2]&&r.ops.pop(),r.trys.pop();continue}C=n.call(i,r)}catch(O){C=[6,O],l=0}finally{s=p=0}if(C[0]&5)throw C[1];return{value:C[0]?C[1]:void 0,done:!0}}}function ap(i,n,r,s){s===void 0&&(s=r),i[s]=n[r]}function up(i,n){for(var r in i)r!=="default"&&!n.hasOwnProperty(r)&&(n[r]=i[r])}function fa(i){var n=typeof Symbol=="function"&&Symbol.iterator,r=n&&i[n],s=0;if(r)return r.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&s>=i.length&&(i=void 0),{value:i&&i[s++],done:!i}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function Fl(i,n){var r=typeof Symbol=="function"&&i[Symbol.iterator];if(!r)return i;var s=r.call(i),l,p=[],f;try{for(;(n===void 0||n-- >0)&&!(l=s.next()).done;)p.push(l.value)}catch(c){f={error:c}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(f)throw f.error}}return p}function lp(){for(var i=[],n=0;n<arguments.length;n++)i=i.concat(Fl(arguments[n]));return i}function cp(){for(var i=0,n=0,r=arguments.length;n<r;n++)i+=arguments[n].length;for(var s=Array(i),l=0,n=0;n<r;n++)for(var p=arguments[n],f=0,c=p.length;f<c;f++,l++)s[l]=p[f];return s}function Li(i){return this instanceof Li?(this.v=i,this):new Li(i)}function fp(i,n,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=r.apply(i,n||[]),l,p=[];return l={},f("next"),f("throw"),f("return"),l[Symbol.asyncIterator]=function(){return this},l;function f(k){s[k]&&(l[k]=function(M){return new Promise(function(R,E){p.push([k,M,R,E])>1||c(k,M)})})}function c(k,M){try{b(s[k](M))}catch(R){L(p[0][3],R)}}function b(k){k.value instanceof Li?Promise.resolve(k.value.v).then(C,O):L(p[0][2],k)}function C(k){c("next",k)}function O(k){c("throw",k)}function L(k,M){k(M),p.shift(),p.length&&c(p[0][0],p[0][1])}}function hp(i){var n,r;return n={},s("next"),s("throw",function(l){throw l}),s("return"),n[Symbol.iterator]=function(){return this},n;function s(l,p){n[l]=i[l]?function(f){return(r=!r)?{value:Li(i[l](f)),done:l==="return"}:p?p(f):f}:p}}function dp(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i[Symbol.asyncIterator],r;return n?n.call(i):(i=typeof fa=="function"?fa(i):i[Symbol.iterator](),r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r);function s(p){r[p]=i[p]&&function(f){return new Promise(function(c,b){f=i[p](f),l(c,b,f.done,f.value)})}}function l(p,f,c,b){Promise.resolve(b).then(function(C){p({value:C,done:c})},f)}}function pp(i,n){return Object.defineProperty?Object.defineProperty(i,"raw",{value:n}):i.raw=n,i}function gp(i){if(i&&i.__esModule)return i;var n={};if(i!=null)for(var r in i)Object.hasOwnProperty.call(i,r)&&(n[r]=i[r]);return n.default=i,n}function vp(i){return i&&i.__esModule?i:{default:i}}function mp(i,n){if(!n.has(i))throw new TypeError("attempted to get private field on non-instance");return n.get(i)}function yp(i,n,r){if(!n.has(i))throw new TypeError("attempted to set private field on non-instance");return n.set(i,r),r}const wp=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return ca},__asyncDelegator:hp,__asyncGenerator:fp,__asyncValues:dp,__await:Li,__awaiter:op,__classPrivateFieldGet:mp,__classPrivateFieldSet:yp,__createBinding:ap,__decorate:np,__exportStar:up,__extends:ep,__generator:sp,__importDefault:vp,__importStar:gp,__makeTemplateObject:pp,__metadata:ip,__param:rp,__read:Fl,__rest:tp,__spread:lp,__spreadArrays:cp,__values:fa},Symbol.toStringTag,{value:"Module"})),Wl=ra(wp);var ki={},ln={},Yl;function ql(){return Yl||(Yl=1,Object.defineProperty(ln,"__esModule",{value:!0}),ln.MAX_HASHABLE_LENGTH=ln.INIT=ln.KEY=ln.DIGEST_LENGTH=ln.BLOCK_SIZE=void 0,ln.BLOCK_SIZE=64,ln.DIGEST_LENGTH=32,ln.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),ln.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],ln.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1),ln}var Ii={},Hl;function _p(){if(Hl)return Ii;Hl=1,Object.defineProperty(Ii,"__esModule",{value:!0}),Ii.RawSha256=void 0;var i=ql(),n=function(){function r(){this.state=Int32Array.from(i.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return r.prototype.update=function(s){if(this.finished)throw new Error("Attempted to update an already finished hash.");var l=0,p=s.byteLength;if(this.bytesHashed+=p,this.bytesHashed*8>i.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;p>0;)this.buffer[this.bufferLength++]=s[l++],p--,this.bufferLength===i.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},r.prototype.digest=function(){if(!this.finished){var s=this.bytesHashed*8,l=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),p=this.bufferLength;if(l.setUint8(this.bufferLength++,128),p%i.BLOCK_SIZE>=i.BLOCK_SIZE-8){for(var f=this.bufferLength;f<i.BLOCK_SIZE;f++)l.setUint8(f,0);this.hashBuffer(),this.bufferLength=0}for(var f=this.bufferLength;f<i.BLOCK_SIZE-8;f++)l.setUint8(f,0);l.setUint32(i.BLOCK_SIZE-8,Math.floor(s/4294967296),!0),l.setUint32(i.BLOCK_SIZE-4,s),this.hashBuffer(),this.finished=!0}for(var c=new Uint8Array(i.DIGEST_LENGTH),f=0;f<8;f++)c[f*4]=this.state[f]>>>24&255,c[f*4+1]=this.state[f]>>>16&255,c[f*4+2]=this.state[f]>>>8&255,c[f*4+3]=this.state[f]>>>0&255;return c},r.prototype.hashBuffer=function(){for(var s=this,l=s.buffer,p=s.state,f=p[0],c=p[1],b=p[2],C=p[3],O=p[4],L=p[5],k=p[6],M=p[7],R=0;R<i.BLOCK_SIZE;R++){if(R<16)this.temp[R]=(l[R*4]&255)<<24|(l[R*4+1]&255)<<16|(l[R*4+2]&255)<<8|l[R*4+3]&255;else{var E=this.temp[R-2],N=(E>>>17|E<<15)^(E>>>19|E<<13)^E>>>10;E=this.temp[R-15];var Q=(E>>>7|E<<25)^(E>>>18|E<<14)^E>>>3;this.temp[R]=(N+this.temp[R-7]|0)+(Q+this.temp[R-16]|0)}var te=(((O>>>6|O<<26)^(O>>>11|O<<21)^(O>>>25|O<<7))+(O&L^~O&k)|0)+(M+(i.KEY[R]+this.temp[R]|0)|0)|0,X=((f>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10))+(f&c^f&b^c&b)|0;M=k,k=L,L=O,O=C+te|0,C=b,b=c,c=f,f=te+X|0}p[0]+=f,p[1]+=c,p[2]+=b,p[3]+=C,p[4]+=O,p[5]+=L,p[6]+=k,p[7]+=M},r}();return Ii.RawSha256=n,Ii}var Gl={},$i={};const bp=i=>{const n=[];for(let r=0,s=i.length;r<s;r++){const l=i.charCodeAt(r);if(l<128)n.push(l);else if(l<2048)n.push(l>>6|192,l&63|128);else if(r+1<i.length&&(l&64512)===55296&&(i.charCodeAt(r+1)&64512)===56320){const p=65536+((l&1023)<<10)+(i.charCodeAt(++r)&1023);n.push(p>>18|240,p>>12&63|128,p>>6&63|128,p&63|128)}else n.push(l>>12|224,l>>6&63|128,l&63|128)}return Uint8Array.from(n)},xp=i=>{let n="";for(let r=0,s=i.length;r<s;r++){const l=i[r];if(l<128)n+=String.fromCharCode(l);else if(192<=l&&l<224){const p=i[++r];n+=String.fromCharCode((l&31)<<6|p&63)}else if(240<=l&&l<365){const p="%"+[l,i[++r],i[++r],i[++r]].map(f=>f.toString(16)).join("%");n+=decodeURIComponent(p)}else n+=String.fromCharCode((l&15)<<12|(i[++r]&63)<<6|i[++r]&63)}return n};function Sp(i){return new TextEncoder().encode(i)}function Cp(i){return new TextDecoder("utf-8").decode(i)}const Ap=i=>typeof TextEncoder=="function"?Sp(i):bp(i),Op=i=>typeof TextDecoder=="function"?Cp(i):xp(i),Tp=Object.freeze(Object.defineProperty({__proto__:null,fromUtf8:Ap,toUtf8:Op},Symbol.toStringTag,{value:"Module"})),Dp=ra(Tp);var Vl;function Ep(){if(Vl)return $i;Vl=1,Object.defineProperty($i,"__esModule",{value:!0}),$i.convertToBuffer=void 0;var i=Dp,n=typeof Buffer<"u"&&Buffer.from?function(s){return Buffer.from(s,"utf8")}:i.fromUtf8;function r(s){return s instanceof Uint8Array?s:typeof s=="string"?n(s):ArrayBuffer.isView(s)?new Uint8Array(s.buffer,s.byteOffset,s.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(s)}return $i.convertToBuffer=r,$i}var Pi={},Zl;function Mp(){if(Zl)return Pi;Zl=1,Object.defineProperty(Pi,"__esModule",{value:!0}),Pi.isEmptyData=void 0;function i(n){return typeof n=="string"?n.length===0:n.byteLength===0}return Pi.isEmptyData=i,Pi}var Ni={},Kl;function Rp(){if(Kl)return Ni;Kl=1,Object.defineProperty(Ni,"__esModule",{value:!0}),Ni.numToUint8=void 0;function i(n){return new Uint8Array([(n&4278190080)>>24,(n&16711680)>>16,(n&65280)>>8,n&255])}return Ni.numToUint8=i,Ni}var Bi={},Ql;function Lp(){if(Ql)return Bi;Ql=1,Object.defineProperty(Bi,"__esModule",{value:!0}),Bi.uint32ArrayFrom=void 0;function i(n){if(!Array.from){for(var r=new Uint32Array(n.length),s=0;s<n.length;)r[s]=n[s];return r}return Uint32Array.from(n)}return Bi.uint32ArrayFrom=i,Bi}var Jl;function kp(){return Jl||(Jl=1,function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.uint32ArrayFrom=i.numToUint8=i.isEmptyData=i.convertToBuffer=void 0;var n=Ep();Object.defineProperty(i,"convertToBuffer",{enumerable:!0,get:function(){return n.convertToBuffer}});var r=Mp();Object.defineProperty(i,"isEmptyData",{enumerable:!0,get:function(){return r.isEmptyData}});var s=Rp();Object.defineProperty(i,"numToUint8",{enumerable:!0,get:function(){return s.numToUint8}});var l=Lp();Object.defineProperty(i,"uint32ArrayFrom",{enumerable:!0,get:function(){return l.uint32ArrayFrom}})}(Gl)),Gl}var Xl;function Ip(){if(Xl)return ki;Xl=1,Object.defineProperty(ki,"__esModule",{value:!0}),ki.Sha256=void 0;var i=Wl,n=ql(),r=_p(),s=kp(),l=function(){function f(c){if(this.hash=new r.RawSha256,c){this.outer=new r.RawSha256;var b=p(c),C=new Uint8Array(n.BLOCK_SIZE);C.set(b);for(var O=0;O<n.BLOCK_SIZE;O++)b[O]^=54,C[O]^=92;this.hash.update(b),this.outer.update(C);for(var O=0;O<b.byteLength;O++)b[O]=0}}return f.prototype.update=function(c){if(!((0,s.isEmptyData)(c)||this.error))try{this.hash.update((0,s.convertToBuffer)(c))}catch(b){this.error=b}},f.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},f.prototype.digest=function(){return(0,i.__awaiter)(this,void 0,void 0,function(){return(0,i.__generator)(this,function(c){return[2,this.digestSync()]})})},f}();ki.Sha256=l;function p(f){var c=(0,s.convertToBuffer)(f);if(c.byteLength>n.BLOCK_SIZE){var b=new r.RawSha256;b.update(c),c=b.digest()}var C=new Uint8Array(n.BLOCK_SIZE);return C.set(c),C}return ki}var ec;function $p(){return ec||(ec=1,function(i){Object.defineProperty(i,"__esModule",{value:!0});var n=Wl;(0,n.__exportStar)(Ip(),i)}(zl)),zl}$p();function Ue(i,n){i!=null&&this.fromString(i,n)}function Nt(){return new Ue(null)}var er,Pp=0xdeadbeefcafe,tc=(Pp&16777215)==15715070;function Np(i,n,r,s,l,p){for(;--p>=0;){var f=n*this[i++]+r[s]+l;l=Math.floor(f/67108864),r[s++]=f&67108863}return l}function Bp(i,n,r,s,l,p){for(var f=n&32767,c=n>>15;--p>=0;){var b=this[i]&32767,C=this[i++]>>15,O=c*b+C*f;b=f*b+((O&32767)<<15)+r[s]+(l&1073741823),l=(b>>>30)+(O>>>15)+c*C+(l>>>30),r[s++]=b&1073741823}return l}function jp(i,n,r,s,l,p){for(var f=n&16383,c=n>>14;--p>=0;){var b=this[i]&16383,C=this[i++]>>14,O=c*b+C*f;b=f*b+((O&16383)<<14)+r[s]+l,l=(b>>28)+(O>>14)+c*C,r[s++]=b&268435455}return l}var nc=typeof navigator<"u";nc&&tc&&navigator.appName=="Microsoft Internet Explorer"?(Ue.prototype.am=Bp,er=30):nc&&tc&&navigator.appName!="Netscape"?(Ue.prototype.am=Np,er=26):(Ue.prototype.am=jp,er=28),Ue.prototype.DB=er,Ue.prototype.DM=(1<<er)-1,Ue.prototype.DV=1<<er;var ha=52;Ue.prototype.FV=Math.pow(2,ha),Ue.prototype.F1=ha-er,Ue.prototype.F2=2*er-ha;var Up="0123456789abcdefghijklmnopqrstuvwxyz",To=new Array,Zr,cn;for(Zr=48,cn=0;cn<=9;++cn)To[Zr++]=cn;for(Zr=97,cn=10;cn<36;++cn)To[Zr++]=cn;for(Zr=65,cn=10;cn<36;++cn)To[Zr++]=cn;function rc(i){return Up.charAt(i)}function zp(i,n){var r=To[i.charCodeAt(n)];return r??-1}function Fp(i){for(var n=this.t-1;n>=0;--n)i[n]=this[n];i.t=this.t,i.s=this.s}function Wp(i){this.t=1,this.s=i<0?-1:0,i>0?this[0]=i:i<-1?this[0]=i+this.DV:this.t=0}function da(i){var n=Nt();return n.fromInt(i),n}function Yp(i,n){var r;if(n==16)r=4;else if(n==8)r=3;else if(n==2)r=1;else if(n==32)r=5;else if(n==4)r=2;else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");this.t=0,this.s=0;for(var s=i.length,l=!1,p=0;--s>=0;){var f=zp(i,s);if(f<0){i.charAt(s)=="-"&&(l=!0);continue}l=!1,p==0?this[this.t++]=f:p+r>this.DB?(this[this.t-1]|=(f&(1<<this.DB-p)-1)<<p,this[this.t++]=f>>this.DB-p):this[this.t-1]|=f<<p,p+=r,p>=this.DB&&(p-=this.DB)}this.clamp(),l&&Ue.ZERO.subTo(this,this)}function qp(){for(var i=this.s&this.DM;this.t>0&&this[this.t-1]==i;)--this.t}function Hp(i){if(this.s<0)return"-"+this.negate().toString(i);var n;if(i==16)n=4;else if(i==8)n=3;else if(i==2)n=1;else if(i==32)n=5;else if(i==4)n=2;else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");var r=(1<<n)-1,s,l=!1,p="",f=this.t,c=this.DB-f*this.DB%n;if(f-- >0)for(c<this.DB&&(s=this[f]>>c)>0&&(l=!0,p=rc(s));f>=0;)c<n?(s=(this[f]&(1<<c)-1)<<n-c,s|=this[--f]>>(c+=this.DB-n)):(s=this[f]>>(c-=n)&r,c<=0&&(c+=this.DB,--f)),s>0&&(l=!0),l&&(p+=rc(s));return l?p:"0"}function Gp(){var i=Nt();return Ue.ZERO.subTo(this,i),i}function Vp(){return this.s<0?this.negate():this}function Zp(i){var n=this.s-i.s;if(n!=0)return n;var r=this.t;if(n=r-i.t,n!=0)return this.s<0?-n:n;for(;--r>=0;)if((n=this[r]-i[r])!=0)return n;return 0}function pa(i){var n=1,r;return(r=i>>>16)!=0&&(i=r,n+=16),(r=i>>8)!=0&&(i=r,n+=8),(r=i>>4)!=0&&(i=r,n+=4),(r=i>>2)!=0&&(i=r,n+=2),(r=i>>1)!=0&&(i=r,n+=1),n}function Kp(){return this.t<=0?0:this.DB*(this.t-1)+pa(this[this.t-1]^this.s&this.DM)}function Qp(i,n){var r;for(r=this.t-1;r>=0;--r)n[r+i]=this[r];for(r=i-1;r>=0;--r)n[r]=0;n.t=this.t+i,n.s=this.s}function Jp(i,n){for(var r=i;r<this.t;++r)n[r-i]=this[r];n.t=Math.max(this.t-i,0),n.s=this.s}function Xp(i,n){var r=i%this.DB,s=this.DB-r,l=(1<<s)-1,p=Math.floor(i/this.DB),f=this.s<<r&this.DM,c;for(c=this.t-1;c>=0;--c)n[c+p+1]=this[c]>>s|f,f=(this[c]&l)<<r;for(c=p-1;c>=0;--c)n[c]=0;n[p]=f,n.t=this.t+p+1,n.s=this.s,n.clamp()}function eg(i,n){n.s=this.s;var r=Math.floor(i/this.DB);if(r>=this.t){n.t=0;return}var s=i%this.DB,l=this.DB-s,p=(1<<s)-1;n[0]=this[r]>>s;for(var f=r+1;f<this.t;++f)n[f-r-1]|=(this[f]&p)<<l,n[f-r]=this[f]>>s;s>0&&(n[this.t-r-1]|=(this.s&p)<<l),n.t=this.t-r,n.clamp()}function tg(i,n){for(var r=0,s=0,l=Math.min(i.t,this.t);r<l;)s+=this[r]-i[r],n[r++]=s&this.DM,s>>=this.DB;if(i.t<this.t){for(s-=i.s;r<this.t;)s+=this[r],n[r++]=s&this.DM,s>>=this.DB;s+=this.s}else{for(s+=this.s;r<i.t;)s-=i[r],n[r++]=s&this.DM,s>>=this.DB;s-=i.s}n.s=s<0?-1:0,s<-1?n[r++]=this.DV+s:s>0&&(n[r++]=s),n.t=r,n.clamp()}function ng(i,n){var r=this.abs(),s=i.abs(),l=r.t;for(n.t=l+s.t;--l>=0;)n[l]=0;for(l=0;l<s.t;++l)n[l+r.t]=r.am(0,s[l],n,l,0,r.t);n.s=0,n.clamp(),this.s!=i.s&&Ue.ZERO.subTo(n,n)}function rg(i){for(var n=this.abs(),r=i.t=2*n.t;--r>=0;)i[r]=0;for(r=0;r<n.t-1;++r){var s=n.am(r,n[r],i,2*r,0,1);(i[r+n.t]+=n.am(r+1,2*n[r],i,2*r+1,s,n.t-r-1))>=n.DV&&(i[r+n.t]-=n.DV,i[r+n.t+1]=1)}i.t>0&&(i[i.t-1]+=n.am(r,n[r],i,2*r,0,1)),i.s=0,i.clamp()}function ig(i,n,r){var s=i.abs();if(!(s.t<=0)){var l=this.abs();if(l.t<s.t){n!=null&&n.fromInt(0),r!=null&&this.copyTo(r);return}r==null&&(r=Nt());var p=Nt(),f=this.s,c=i.s,b=this.DB-pa(s[s.t-1]);b>0?(s.lShiftTo(b,p),l.lShiftTo(b,r)):(s.copyTo(p),l.copyTo(r));var C=p.t,O=p[C-1];if(O!=0){var L=O*(1<<this.F1)+(C>1?p[C-2]>>this.F2:0),k=this.FV/L,M=(1<<this.F1)/L,R=1<<this.F2,E=r.t,N=E-C,Q=n??Nt();for(p.dlShiftTo(N,Q),r.compareTo(Q)>=0&&(r[r.t++]=1,r.subTo(Q,r)),Ue.ONE.dlShiftTo(C,Q),Q.subTo(p,p);p.t<C;)p[p.t++]=0;for(;--N>=0;){var te=r[--E]==O?this.DM:Math.floor(r[E]*k+(r[E-1]+R)*M);if((r[E]+=p.am(0,te,r,N,0,C))<te)for(p.dlShiftTo(N,Q),r.subTo(Q,r);r[E]<--te;)r.subTo(Q,r)}n!=null&&(r.drShiftTo(C,n),f!=c&&Ue.ZERO.subTo(n,n)),r.t=C,r.clamp(),b>0&&r.rShiftTo(b,r),f<0&&Ue.ZERO.subTo(r,r)}}}function og(i){var n=Nt();return this.abs().divRemTo(i,null,n),this.s<0&&n.compareTo(Ue.ZERO)>0&&i.subTo(n,n),n}function sg(){if(this.t<1)return 0;var i=this[0];if((i&1)==0)return 0;var n=i&3;return n=n*(2-(i&15)*n)&15,n=n*(2-(i&255)*n)&255,n=n*(2-((i&65535)*n&65535))&65535,n=n*(2-i*n%this.DV)%this.DV,n>0?this.DV-n:-n}function ag(i){return this.compareTo(i)==0}function ug(i,n){for(var r=0,s=0,l=Math.min(i.t,this.t);r<l;)s+=this[r]+i[r],n[r++]=s&this.DM,s>>=this.DB;if(i.t<this.t){for(s+=i.s;r<this.t;)s+=this[r],n[r++]=s&this.DM,s>>=this.DB;s+=this.s}else{for(s+=this.s;r<i.t;)s+=i[r],n[r++]=s&this.DM,s>>=this.DB;s+=i.s}n.s=s<0?-1:0,s>0?n[r++]=s:s<-1&&(n[r++]=this.DV+s),n.t=r,n.clamp()}function lg(i){var n=Nt();return this.addTo(i,n),n}function cg(i){var n=Nt();return this.subTo(i,n),n}function fg(i){var n=Nt();return this.multiplyTo(i,n),n}function hg(i){var n=Nt();return this.divRemTo(i,n,null),n}function Kr(i){this.m=i,this.mp=i.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<i.DB-15)-1,this.mt2=2*i.t}function dg(i){var n=Nt();return i.abs().dlShiftTo(this.m.t,n),n.divRemTo(this.m,null,n),i.s<0&&n.compareTo(Ue.ZERO)>0&&this.m.subTo(n,n),n}function pg(i){var n=Nt();return i.copyTo(n),this.reduce(n),n}function gg(i){for(;i.t<=this.mt2;)i[i.t++]=0;for(var n=0;n<this.m.t;++n){var r=i[n]&32767,s=r*this.mpl+((r*this.mph+(i[n]>>15)*this.mpl&this.um)<<15)&i.DM;for(r=n+this.m.t,i[r]+=this.m.am(0,s,i,n,0,this.m.t);i[r]>=i.DV;)i[r]-=i.DV,i[++r]++}i.clamp(),i.drShiftTo(this.m.t,i),i.compareTo(this.m)>=0&&i.subTo(this.m,i)}function vg(i,n){i.squareTo(n),this.reduce(n)}function mg(i,n,r){i.multiplyTo(n,r),this.reduce(r)}Kr.prototype.convert=dg,Kr.prototype.revert=pg,Kr.prototype.reduce=gg,Kr.prototype.mulTo=mg,Kr.prototype.sqrTo=vg;function yg(i,n,r){var s=i.bitLength(),l,p=da(1),f=new Kr(n);if(s<=0)return p;s<18?l=1:s<48?l=3:s<144?l=4:s<768?l=5:l=6;var c=new Array,b=3,C=l-1,O=(1<<l)-1;if(c[1]=f.convert(this),l>1){var L=Nt();for(f.sqrTo(c[1],L);b<=O;)c[b]=Nt(),f.mulTo(L,c[b-2],c[b]),b+=2}var k=i.t-1,M,R=!0,E=Nt(),N;for(s=pa(i[k])-1;k>=0;){for(s>=C?M=i[k]>>s-C&O:(M=(i[k]&(1<<s+1)-1)<<C-s,k>0&&(M|=i[k-1]>>this.DB+s-C)),b=l;(M&1)==0;)M>>=1,--b;if((s-=b)<0&&(s+=this.DB,--k),R)c[M].copyTo(p),R=!1;else{for(;b>1;)f.sqrTo(p,E),f.sqrTo(E,p),b-=2;b>0?f.sqrTo(p,E):(N=p,p=E,E=N),f.mulTo(E,c[M],p)}for(;k>=0&&(i[k]&1<<s)==0;)f.sqrTo(p,E),N=p,p=E,E=N,--s<0&&(s=this.DB-1,--k)}var Q=f.revert(p);return r(null,Q),Q}Ue.prototype.copyTo=Fp,Ue.prototype.fromInt=Wp,Ue.prototype.fromString=Yp,Ue.prototype.clamp=qp,Ue.prototype.dlShiftTo=Qp,Ue.prototype.drShiftTo=Jp,Ue.prototype.lShiftTo=Xp,Ue.prototype.rShiftTo=eg,Ue.prototype.subTo=tg,Ue.prototype.multiplyTo=ng,Ue.prototype.squareTo=rg,Ue.prototype.divRemTo=ig,Ue.prototype.invDigit=sg,Ue.prototype.addTo=ug,Ue.prototype.toString=Hp,Ue.prototype.negate=Gp,Ue.prototype.abs=Vp,Ue.prototype.compareTo=Zp,Ue.prototype.bitLength=Kp,Ue.prototype.mod=og,Ue.prototype.equals=ag,Ue.prototype.add=lg,Ue.prototype.subtract=cg,Ue.prototype.multiply=fg,Ue.prototype.divide=hg,Ue.prototype.modPow=yg,Ue.ZERO=da(0),Ue.ONE=da(1);function wg(i,n){return n=n||{},new Promise(function(r,s){var l=new XMLHttpRequest,p=[],f=[],c={},b=function(){return{ok:(l.status/100|0)==2,statusText:l.statusText,status:l.status,url:l.responseURL,text:function(){return Promise.resolve(l.responseText)},json:function(){return Promise.resolve(l.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([l.response]))},clone:b,headers:{keys:function(){return p},entries:function(){return f},get:function(O){return c[O.toLowerCase()]},has:function(O){return O.toLowerCase()in c}}}};for(var C in l.open(n.method||"get",i,!0),l.onload=function(){l.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(O,L,k){p.push(L=L.toLowerCase()),f.push([L,k]),c[L]=c[L]?c[L]+","+k:k}),r(b())},l.onerror=s,l.withCredentials=n.credentials=="include",n.headers)l.setRequestHeader(C,n.headers[C]);l.send(n.body||null)})}const _g=Object.freeze(Object.defineProperty({__proto__:null,default:wg},Symbol.toStringTag,{value:"Module"})),ic=ra(_g);var oc,sc;function bg(){return sc||(sc=1,oc=self.fetch||(self.fetch=ic.default||ic)),oc}bg();/*!
105
105
  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
106
106
  * SPDX-License-Identifier: Apache-2.0
107
107
  */var ac={exports:{}};/*!
@@ -110,21 +110,21 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
110
110
  *
111
111
  * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
112
112
  * Released under the MIT license
113
- */var uc;function xg(){return uc||(uc=1,function(i,n){(function(r){var s;if(i.exports=r(),s=!0,!s){var l=window.Cookies,g=window.Cookies=r();g.noConflict=function(){return window.Cookies=l,g}}})(function(){function r(){for(var g=0,h={};g<arguments.length;g++){var c=arguments[g];for(var b in c)h[b]=c[b]}return h}function s(g){return g.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function l(g){function h(){}function c(C,O,L){if(!(typeof document>"u")){L=r({path:"/"},h.defaults,L),typeof L.expires=="number"&&(L.expires=new Date(new Date*1+L.expires*864e5)),L.expires=L.expires?L.expires.toUTCString():"";try{var k=JSON.stringify(O);/^[\{\[]/.test(k)&&(O=k)}catch{}O=g.write?g.write(O,C):encodeURIComponent(String(O)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),C=encodeURIComponent(String(C)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var M="";for(var R in L)L[R]&&(M+="; "+R,L[R]!==!0&&(M+="="+L[R].split(";")[0]));return document.cookie=C+"="+O+M}}function b(C,O){if(!(typeof document>"u")){for(var L={},k=document.cookie?document.cookie.split("; "):[],M=0;M<k.length;M++){var R=k[M].split("="),E=R.slice(1).join("=");!O&&E.charAt(0)==='"'&&(E=E.slice(1,-1));try{var N=s(R[0]);if(E=(g.read||g)(E,N)||s(E),O)try{E=JSON.parse(E)}catch{}if(L[N]=E,C===N)break}catch{}}return C?L[C]:L}}return h.set=c,h.get=function(C){return b(C,!1)},h.getJSON=function(C){return b(C,!0)},h.remove=function(C,O){c(C,"",r(O,{expires:-1}))},h.defaults={},h.withConverter=l,h}return l(function(){})})}(ac)),ac.exports}xg();function Sg(){if(!window.MantineCognitoUserPool)throw new Error("Cognito Userpool has not been initialized.");return window.MantineCognitoUserPool}function Cg(){return Sg().getCurrentUser()}function Ag(){return new Promise((i,n)=>{const r=Cg();r===null&&n(null),r==null||r.getSession((s,l)=>{if(s!==null||l===null)return n(null);i({session:l,authenticatedUser:r})})})}async function Og(){const{session:i}=await Ag();return i==null?void 0:i.getIdToken().getJwtToken()}ye.createContext(void 0);var Tg="undefined",Dg="object",Do="browser",lc="cpu",cc="device",ga="engine",Eo="os",tr="name",Mo="type",va="vendor",xn="version",ma="architecture",ya="major",wa="model",Eg="console",Mg="mobile",Rg="tablet",Lg="smarttv",kg="wearable",Ig="embedded",$g=typeof window!==Tg,_a=$g&&window.navigator?window.navigator:void 0;_a&&_a.userAgentData&&_a.userAgentData;var Ro=function(i){for(var n={},r=0;r<i.length;r++)n[i[r].toUpperCase()]=i[r];return n},Lo=function(i){for(var n in i){var r=i[n];typeof r==Dg&&r.length==2?this[r[0]]=r[1]:this[r]=void 0}return this};(function(){var i={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}};return Lo.call(i.init,[[Do,[tr,xn,ya,Mo]],[lc,[ma]],[cc,[Mo,wa,va]],[ga,[tr,xn]],[Eo,[tr,xn]]]),Lo.call(i.isIgnore,[[Do,[xn,ya]],[ga,[xn]],[Eo,[xn]]]),Lo.call(i.isIgnoreRgx,[[Do,/ ?browser$/i],[Eo,/ ?os$/i]]),Lo.call(i.toString,[[Do,[tr,xn]],[lc,[ma]],[cc,[va,wa]],[ga,[tr,xn]],[Eo,[tr,xn]]]),i})(),Ro([tr,xn,ya,Mo]),Ro([ma]),Ro([wa,va,Mo,Eg,Mg,Lg,Rg,kg,Ig]),Ro([tr,xn]);var ba={exports:{}},Pg=ba.exports,fc;function Ng(){return fc||(fc=1,function(i,n){(function(r,s){i.exports=s()})(Pg,()=>(()=>{var r={873:(h,c)=>{var b,C,O=function(){var L=function(j,I){var T=j,p=Q[I],f=null,_=0,v=null,m=[],D={},Y=function(z,q){f=function(W){for(var K=new Array(W),ae=0;ae<W;ae+=1){K[ae]=new Array(W);for(var Te=0;Te<W;Te+=1)K[ae][Te]=null}return K}(_=4*T+17),Z(0,0),Z(_-7,0),Z(0,_-7),he(),ce(),J(z,q),T>=7&&we(z),v==null&&(v=Ce(T,p,m)),le(v,q)},Z=function(z,q){for(var W=-1;W<=7;W+=1)if(!(z+W<=-1||_<=z+W))for(var K=-1;K<=7;K+=1)q+K<=-1||_<=q+K||(f[z+W][q+K]=0<=W&&W<=6&&(K==0||K==6)||0<=K&&K<=6&&(W==0||W==6)||2<=W&&W<=4&&2<=K&&K<=4)},ce=function(){for(var z=8;z<_-8;z+=1)f[z][6]==null&&(f[z][6]=z%2==0);for(var q=8;q<_-8;q+=1)f[6][q]==null&&(f[6][q]=q%2==0)},he=function(){for(var z=te.getPatternPosition(T),q=0;q<z.length;q+=1)for(var W=0;W<z.length;W+=1){var K=z[q],ae=z[W];if(f[K][ae]==null)for(var Te=-2;Te<=2;Te+=1)for(var u=-2;u<=2;u+=1)f[K+Te][ae+u]=Te==-2||Te==2||u==-2||u==2||Te==0&&u==0}},we=function(z){for(var q=te.getBCHTypeNumber(T),W=0;W<18;W+=1){var K=!z&&(q>>W&1)==1;f[Math.floor(W/3)][W%3+_-8-3]=K}for(W=0;W<18;W+=1)K=!z&&(q>>W&1)==1,f[W%3+_-8-3][Math.floor(W/3)]=K},J=function(z,q){for(var W=p<<3|q,K=te.getBCHTypeInfo(W),ae=0;ae<15;ae+=1){var Te=!z&&(K>>ae&1)==1;ae<6?f[ae][8]=Te:ae<8?f[ae+1][8]=Te:f[_-15+ae][8]=Te}for(ae=0;ae<15;ae+=1)Te=!z&&(K>>ae&1)==1,ae<8?f[8][_-ae-1]=Te:ae<9?f[8][15-ae-1+1]=Te:f[8][15-ae-1]=Te;f[_-8][8]=!z},le=function(z,q){for(var W=-1,K=_-1,ae=7,Te=0,u=te.getMaskFunction(q),d=_-1;d>0;d-=2)for(d==6&&(d-=1);;){for(var w=0;w<2;w+=1)if(f[K][d-w]==null){var P=!1;Te<z.length&&(P=(z[Te]>>>ae&1)==1),u(K,d-w)&&(P=!P),f[K][d-w]=P,(ae-=1)==-1&&(Te+=1,ae=7)}if((K+=W)<0||_<=K){K-=W,W=-W;break}}},Ce=function(z,q,W){for(var K=G.getRSBlocks(z,q),ae=de(),Te=0;Te<W.length;Te+=1){var u=W[Te];ae.put(u.getMode(),4),ae.put(u.getLength(),te.getLengthInBits(u.getMode(),z)),u.write(ae)}var d=0;for(Te=0;Te<K.length;Te+=1)d+=K[Te].dataCount;if(ae.getLengthInBits()>8*d)throw"code length overflow. ("+ae.getLengthInBits()+">"+8*d+")";for(ae.getLengthInBits()+4<=8*d&&ae.put(0,4);ae.getLengthInBits()%8!=0;)ae.putBit(!1);for(;!(ae.getLengthInBits()>=8*d||(ae.put(236,8),ae.getLengthInBits()>=8*d));)ae.put(17,8);return function(w,P){for(var U=0,X=0,xe=0,De=new Array(P.length),Re=new Array(P.length),Se=0;Se<P.length;Se+=1){var Le=P[Se].dataCount,Pe=P[Se].totalCount-Le;X=Math.max(X,Le),xe=Math.max(xe,Pe),De[Se]=new Array(Le);for(var Ie=0;Ie<De[Se].length;Ie+=1)De[Se][Ie]=255&w.getBuffer()[Ie+U];U+=Le;var et=te.getErrorCorrectPolynomial(Pe),Ge=ue(De[Se],et.getLength()-1).mod(et);for(Re[Se]=new Array(et.getLength()-1),Ie=0;Ie<Re[Se].length;Ie+=1){var tt=Ie+Ge.getLength()-Re[Se].length;Re[Se][Ie]=tt>=0?Ge.getAt(tt):0}}var pt=0;for(Ie=0;Ie<P.length;Ie+=1)pt+=P[Ie].totalCount;var xt=new Array(pt),lt=0;for(Ie=0;Ie<X;Ie+=1)for(Se=0;Se<P.length;Se+=1)Ie<De[Se].length&&(xt[lt]=De[Se][Ie],lt+=1);for(Ie=0;Ie<xe;Ie+=1)for(Se=0;Se<P.length;Se+=1)Ie<Re[Se].length&&(xt[lt]=Re[Se][Ie],lt+=1);return xt}(ae,K)};D.addData=function(z,q){var W=null;switch(q=q||"Byte"){case"Numeric":W=ne(z);break;case"Alphanumeric":W=re(z);break;case"Byte":W=se(z);break;case"Kanji":W=pe(z);break;default:throw"mode:"+q}m.push(W),v=null},D.isDark=function(z,q){if(z<0||_<=z||q<0||_<=q)throw z+","+q;return f[z][q]},D.getModuleCount=function(){return _},D.make=function(){if(T<1){for(var z=1;z<40;z++){for(var q=G.getRSBlocks(z,p),W=de(),K=0;K<m.length;K++){var ae=m[K];W.put(ae.getMode(),4),W.put(ae.getLength(),te.getLengthInBits(ae.getMode(),z)),ae.write(W)}var Te=0;for(K=0;K<q.length;K++)Te+=q[K].dataCount;if(W.getLengthInBits()<=8*Te)break}T=z}Y(!1,function(){for(var u=0,d=0,w=0;w<8;w+=1){Y(!0,w);var P=te.getLostPoint(D);(w==0||u>P)&&(u=P,d=w)}return d}())},D.createTableTag=function(z,q){z=z||2;var W="";W+='<table style="',W+=" border-width: 0px; border-style: none;",W+=" border-collapse: collapse;",W+=" padding: 0px; margin: "+(q=q===void 0?4*z:q)+"px;",W+='">',W+="<tbody>";for(var K=0;K<D.getModuleCount();K+=1){W+="<tr>";for(var ae=0;ae<D.getModuleCount();ae+=1)W+='<td style="',W+=" border-width: 0px; border-style: none;",W+=" border-collapse: collapse;",W+=" padding: 0px; margin: 0px;",W+=" width: "+z+"px;",W+=" height: "+z+"px;",W+=" background-color: ",W+=D.isDark(K,ae)?"#000000":"#ffffff",W+=";",W+='"/>';W+="</tr>"}return(W+="</tbody>")+"</table>"},D.createSvgTag=function(z,q,W,K){var ae={};typeof arguments[0]=="object"&&(z=(ae=arguments[0]).cellSize,q=ae.margin,W=ae.alt,K=ae.title),z=z||2,q=q===void 0?4*z:q,(W=typeof W=="string"?{text:W}:W||{}).text=W.text||null,W.id=W.text?W.id||"qrcode-description":null,(K=typeof K=="string"?{text:K}:K||{}).text=K.text||null,K.id=K.text?K.id||"qrcode-title":null;var Te,u,d,w,P=D.getModuleCount()*z+2*q,U="";for(w="l"+z+",0 0,"+z+" -"+z+",0 0,-"+z+"z ",U+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',U+=ae.scalable?"":' width="'+P+'px" height="'+P+'px"',U+=' viewBox="0 0 '+P+" "+P+'" ',U+=' preserveAspectRatio="xMinYMin meet"',U+=K.text||W.text?' role="img" aria-labelledby="'+be([K.id,W.id].join(" ").trim())+'"':"",U+=">",U+=K.text?'<title id="'+be(K.id)+'">'+be(K.text)+"</title>":"",U+=W.text?'<description id="'+be(W.id)+'">'+be(W.text)+"</description>":"",U+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',U+='<path d="',u=0;u<D.getModuleCount();u+=1)for(d=u*z+q,Te=0;Te<D.getModuleCount();Te+=1)D.isDark(u,Te)&&(U+="M"+(Te*z+q)+","+d+w);return(U+='" stroke="transparent" fill="black"/>')+"</svg>"},D.createDataURL=function(z,q){z=z||2,q=q===void 0?4*z:q;var W=D.getModuleCount()*z+2*q,K=q,ae=W-q;return Oe(W,W,function(Te,u){if(K<=Te&&Te<ae&&K<=u&&u<ae){var d=Math.floor((Te-K)/z),w=Math.floor((u-K)/z);return D.isDark(w,d)?0:1}return 1})},D.createImgTag=function(z,q,W){z=z||2,q=q===void 0?4*z:q;var K=D.getModuleCount()*z+2*q,ae="";return ae+="<img",ae+=' src="',ae+=D.createDataURL(z,q),ae+='"',ae+=' width="',ae+=K,ae+='"',ae+=' height="',ae+=K,ae+='"',W&&(ae+=' alt="',ae+=be(W),ae+='"'),ae+"/>"};var be=function(z){for(var q="",W=0;W<z.length;W+=1){var K=z.charAt(W);switch(K){case"<":q+="&lt;";break;case">":q+="&gt;";break;case"&":q+="&amp;";break;case'"':q+="&quot;";break;default:q+=K}}return q};return D.createASCII=function(z,q){if((z=z||1)<2)return function(De){De=De===void 0?2:De;var Re,Se,Le,Pe,Ie,et=1*D.getModuleCount()+2*De,Ge=De,tt=et-De,pt={"██":"█","█ ":"▀"," █":"▄"," ":" "},xt={"██":"▀","█ ":"▀"," █":" "," ":" "},lt="";for(Re=0;Re<et;Re+=2){for(Le=Math.floor((Re-Ge)/1),Pe=Math.floor((Re+1-Ge)/1),Se=0;Se<et;Se+=1)Ie="█",Ge<=Se&&Se<tt&&Ge<=Re&&Re<tt&&D.isDark(Le,Math.floor((Se-Ge)/1))&&(Ie=" "),Ge<=Se&&Se<tt&&Ge<=Re+1&&Re+1<tt&&D.isDark(Pe,Math.floor((Se-Ge)/1))?Ie+=" ":Ie+="█",lt+=De<1&&Re+1>=tt?xt[Ie]:pt[Ie];lt+=`
114
- `}return et%2&&De>0?lt.substring(0,lt.length-et-1)+Array(et+1).join("▀"):lt.substring(0,lt.length-1)}(q);z-=1,q=q===void 0?2*z:q;var W,K,ae,Te,u=D.getModuleCount()*z+2*q,d=q,w=u-q,P=Array(z+1).join("██"),U=Array(z+1).join(" "),X="",xe="";for(W=0;W<u;W+=1){for(ae=Math.floor((W-d)/z),xe="",K=0;K<u;K+=1)Te=1,d<=K&&K<w&&d<=W&&W<w&&D.isDark(ae,Math.floor((K-d)/z))&&(Te=0),xe+=Te?P:U;for(ae=0;ae<z;ae+=1)X+=xe+`
115
- `}return X.substring(0,X.length-1)},D.renderTo2dContext=function(z,q){q=q||2;for(var W=D.getModuleCount(),K=0;K<W;K++)for(var ae=0;ae<W;ae++)z.fillStyle=D.isDark(K,ae)?"black":"white",z.fillRect(K*q,ae*q,q,q)},D};L.stringToBytes=(L.stringToBytesFuncs={default:function(j){for(var I=[],T=0;T<j.length;T+=1){var p=j.charCodeAt(T);I.push(255&p)}return I}}).default,L.createStringToBytes=function(j,I){var T=function(){for(var f=Ae(j),_=function(){var ce=f.read();if(ce==-1)throw"eof";return ce},v=0,m={};;){var D=f.read();if(D==-1)break;var Y=_(),Z=_()<<8|_();m[String.fromCharCode(D<<8|Y)]=Z,v+=1}if(v!=I)throw v+" != "+I;return m}(),p=63;return function(f){for(var _=[],v=0;v<f.length;v+=1){var m=f.charCodeAt(v);if(m<128)_.push(m);else{var D=T[f.charAt(v)];typeof D=="number"?(255&D)==D?_.push(D):(_.push(D>>>8),_.push(255&D)):_.push(p)}}return _}};var k,M,R,E,N,Q={L:1,M:0,Q:3,H:2},te=(k=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],M=1335,R=7973,N=function(j){for(var I=0;j!=0;)I+=1,j>>>=1;return I},(E={}).getBCHTypeInfo=function(j){for(var I=j<<10;N(I)-N(M)>=0;)I^=M<<N(I)-N(M);return 21522^(j<<10|I)},E.getBCHTypeNumber=function(j){for(var I=j<<12;N(I)-N(R)>=0;)I^=R<<N(I)-N(R);return j<<12|I},E.getPatternPosition=function(j){return k[j-1]},E.getMaskFunction=function(j){switch(j){case 0:return function(I,T){return(I+T)%2==0};case 1:return function(I,T){return I%2==0};case 2:return function(I,T){return T%3==0};case 3:return function(I,T){return(I+T)%3==0};case 4:return function(I,T){return(Math.floor(I/2)+Math.floor(T/3))%2==0};case 5:return function(I,T){return I*T%2+I*T%3==0};case 6:return function(I,T){return(I*T%2+I*T%3)%2==0};case 7:return function(I,T){return(I*T%3+(I+T)%2)%2==0};default:throw"bad maskPattern:"+j}},E.getErrorCorrectPolynomial=function(j){for(var I=ue([1],0),T=0;T<j;T+=1)I=I.multiply(ue([1,ee.gexp(T)],0));return I},E.getLengthInBits=function(j,I){if(1<=I&&I<10)switch(j){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+j}else if(I<27)switch(j){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+j}else{if(!(I<41))throw"type:"+I;switch(j){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+j}}},E.getLostPoint=function(j){for(var I=j.getModuleCount(),T=0,p=0;p<I;p+=1)for(var f=0;f<I;f+=1){for(var _=0,v=j.isDark(p,f),m=-1;m<=1;m+=1)if(!(p+m<0||I<=p+m))for(var D=-1;D<=1;D+=1)f+D<0||I<=f+D||m==0&&D==0||v==j.isDark(p+m,f+D)&&(_+=1);_>5&&(T+=3+_-5)}for(p=0;p<I-1;p+=1)for(f=0;f<I-1;f+=1){var Y=0;j.isDark(p,f)&&(Y+=1),j.isDark(p+1,f)&&(Y+=1),j.isDark(p,f+1)&&(Y+=1),j.isDark(p+1,f+1)&&(Y+=1),Y!=0&&Y!=4||(T+=3)}for(p=0;p<I;p+=1)for(f=0;f<I-6;f+=1)j.isDark(p,f)&&!j.isDark(p,f+1)&&j.isDark(p,f+2)&&j.isDark(p,f+3)&&j.isDark(p,f+4)&&!j.isDark(p,f+5)&&j.isDark(p,f+6)&&(T+=40);for(f=0;f<I;f+=1)for(p=0;p<I-6;p+=1)j.isDark(p,f)&&!j.isDark(p+1,f)&&j.isDark(p+2,f)&&j.isDark(p+3,f)&&j.isDark(p+4,f)&&!j.isDark(p+5,f)&&j.isDark(p+6,f)&&(T+=40);var Z=0;for(f=0;f<I;f+=1)for(p=0;p<I;p+=1)j.isDark(p,f)&&(Z+=1);return T+Math.abs(100*Z/I/I-50)/5*10},E),ee=function(){for(var j=new Array(256),I=new Array(256),T=0;T<8;T+=1)j[T]=1<<T;for(T=8;T<256;T+=1)j[T]=j[T-4]^j[T-5]^j[T-6]^j[T-8];for(T=0;T<255;T+=1)I[j[T]]=T;return{glog:function(p){if(p<1)throw"glog("+p+")";return I[p]},gexp:function(p){for(;p<0;)p+=255;for(;p>=256;)p-=255;return j[p]}}}();function ue(j,I){if(j.length===void 0)throw j.length+"/"+I;var T=function(){for(var f=0;f<j.length&&j[f]==0;)f+=1;for(var _=new Array(j.length-f+I),v=0;v<j.length-f;v+=1)_[v]=j[v+f];return _}(),p={getAt:function(f){return T[f]},getLength:function(){return T.length},multiply:function(f){for(var _=new Array(p.getLength()+f.getLength()-1),v=0;v<p.getLength();v+=1)for(var m=0;m<f.getLength();m+=1)_[v+m]^=ee.gexp(ee.glog(p.getAt(v))+ee.glog(f.getAt(m)));return ue(_,0)},mod:function(f){if(p.getLength()-f.getLength()<0)return p;for(var _=ee.glog(p.getAt(0))-ee.glog(f.getAt(0)),v=new Array(p.getLength()),m=0;m<p.getLength();m+=1)v[m]=p.getAt(m);for(m=0;m<f.getLength();m+=1)v[m]^=ee.gexp(ee.glog(f.getAt(m))+_);return ue(v,0).mod(f)}};return p}var G=function(){var j=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],I=function(p,f){var _={};return _.totalCount=p,_.dataCount=f,_},T={getRSBlocks:function(p,f){var _=function(we,J){switch(J){case Q.L:return j[4*(we-1)+0];case Q.M:return j[4*(we-1)+1];case Q.Q:return j[4*(we-1)+2];case Q.H:return j[4*(we-1)+3];default:return}}(p,f);if(_===void 0)throw"bad rs block @ typeNumber:"+p+"/errorCorrectionLevel:"+f;for(var v=_.length/3,m=[],D=0;D<v;D+=1)for(var Y=_[3*D+0],Z=_[3*D+1],ce=_[3*D+2],he=0;he<Y;he+=1)m.push(I(Z,ce));return m}};return T}(),de=function(){var j=[],I=0,T={getBuffer:function(){return j},getAt:function(p){var f=Math.floor(p/8);return(j[f]>>>7-p%8&1)==1},put:function(p,f){for(var _=0;_<f;_+=1)T.putBit((p>>>f-_-1&1)==1)},getLengthInBits:function(){return I},putBit:function(p){var f=Math.floor(I/8);j.length<=f&&j.push(0),p&&(j[f]|=128>>>I%8),I+=1}};return T},ne=function(j){var I=j,T={getMode:function(){return 1},getLength:function(_){return I.length},write:function(_){for(var v=I,m=0;m+2<v.length;)_.put(p(v.substring(m,m+3)),10),m+=3;m<v.length&&(v.length-m==1?_.put(p(v.substring(m,m+1)),4):v.length-m==2&&_.put(p(v.substring(m,m+2)),7))}},p=function(_){for(var v=0,m=0;m<_.length;m+=1)v=10*v+f(_.charAt(m));return v},f=function(_){if("0"<=_&&_<="9")return _.charCodeAt(0)-48;throw"illegal char :"+_};return T},re=function(j){var I=j,T={getMode:function(){return 2},getLength:function(f){return I.length},write:function(f){for(var _=I,v=0;v+1<_.length;)f.put(45*p(_.charAt(v))+p(_.charAt(v+1)),11),v+=2;v<_.length&&f.put(p(_.charAt(v)),6)}},p=function(f){if("0"<=f&&f<="9")return f.charCodeAt(0)-48;if("A"<=f&&f<="Z")return f.charCodeAt(0)-65+10;switch(f){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+f}};return T},se=function(j){var I=L.stringToBytes(j);return{getMode:function(){return 4},getLength:function(T){return I.length},write:function(T){for(var p=0;p<I.length;p+=1)T.put(I[p],8)}}},pe=function(j){var I=L.stringToBytesFuncs.SJIS;if(!I)throw"sjis not supported.";(function(){var f=I("友");if(f.length!=2||(f[0]<<8|f[1])!=38726)throw"sjis not supported."})();var T=I(j),p={getMode:function(){return 8},getLength:function(f){return~~(T.length/2)},write:function(f){for(var _=T,v=0;v+1<_.length;){var m=(255&_[v])<<8|255&_[v+1];if(33088<=m&&m<=40956)m-=33088;else{if(!(57408<=m&&m<=60351))throw"illegal char at "+(v+1)+"/"+m;m-=49472}m=192*(m>>>8&255)+(255&m),f.put(m,13),v+=2}if(v<_.length)throw"illegal char at "+(v+1)}};return p},ie=function(){var j=[],I={writeByte:function(T){j.push(255&T)},writeShort:function(T){I.writeByte(T),I.writeByte(T>>>8)},writeBytes:function(T,p,f){p=p||0,f=f||T.length;for(var _=0;_<f;_+=1)I.writeByte(T[_+p])},writeString:function(T){for(var p=0;p<T.length;p+=1)I.writeByte(T.charCodeAt(p))},toByteArray:function(){return j},toString:function(){var T="";T+="[";for(var p=0;p<j.length;p+=1)p>0&&(T+=","),T+=j[p];return T+"]"}};return I},Ae=function(j){var I=j,T=0,p=0,f=0,_={read:function(){for(;f<8;){if(T>=I.length){if(f==0)return-1;throw"unexpected end of file./"+f}var m=I.charAt(T);if(T+=1,m=="=")return f=0,-1;m.match(/^\s$/)||(p=p<<6|v(m.charCodeAt(0)),f+=6)}var D=p>>>f-8&255;return f-=8,D}},v=function(m){if(65<=m&&m<=90)return m-65;if(97<=m&&m<=122)return m-97+26;if(48<=m&&m<=57)return m-48+52;if(m==43)return 62;if(m==47)return 63;throw"c:"+m};return _},Oe=function(j,I,T){for(var p=function(Z,ce){var he=Z,we=ce,J=new Array(Z*ce),le={setPixel:function(z,q,W){J[q*he+z]=W},write:function(z){z.writeString("GIF87a"),z.writeShort(he),z.writeShort(we),z.writeByte(128),z.writeByte(0),z.writeByte(0),z.writeByte(0),z.writeByte(0),z.writeByte(0),z.writeByte(255),z.writeByte(255),z.writeByte(255),z.writeString(","),z.writeShort(0),z.writeShort(0),z.writeShort(he),z.writeShort(we),z.writeByte(0);var q=Ce(2);z.writeByte(2);for(var W=0;q.length-W>255;)z.writeByte(255),z.writeBytes(q,W,255),W+=255;z.writeByte(q.length-W),z.writeBytes(q,W,q.length-W),z.writeByte(0),z.writeString(";")}},Ce=function(z){for(var q=1<<z,W=1+(1<<z),K=z+1,ae=be(),Te=0;Te<q;Te+=1)ae.add(String.fromCharCode(Te));ae.add(String.fromCharCode(q)),ae.add(String.fromCharCode(W));var u,d,w,P=ie(),U=(u=P,d=0,w=0,{write:function(Re,Se){if(Re>>>Se)throw"length over";for(;d+Se>=8;)u.writeByte(255&(Re<<d|w)),Se-=8-d,Re>>>=8-d,w=0,d=0;w|=Re<<d,d+=Se},flush:function(){d>0&&u.writeByte(w)}});U.write(q,K);var X=0,xe=String.fromCharCode(J[X]);for(X+=1;X<J.length;){var De=String.fromCharCode(J[X]);X+=1,ae.contains(xe+De)?xe+=De:(U.write(ae.indexOf(xe),K),ae.size()<4095&&(ae.size()==1<<K&&(K+=1),ae.add(xe+De)),xe=De)}return U.write(ae.indexOf(xe),K),U.write(W,K),U.flush(),P.toByteArray()},be=function(){var z={},q=0,W={add:function(K){if(W.contains(K))throw"dup key:"+K;z[K]=q,q+=1},size:function(){return q},indexOf:function(K){return z[K]},contains:function(K){return z[K]!==void 0}};return W};return le}(j,I),f=0;f<I;f+=1)for(var _=0;_<j;_+=1)p.setPixel(_,f,T(_,f));var v=ie();p.write(v);for(var m=function(){var Z=0,ce=0,he=0,we="",J={},le=function(be){we+=String.fromCharCode(Ce(63&be))},Ce=function(be){if(!(be<0)){if(be<26)return 65+be;if(be<52)return be-26+97;if(be<62)return be-52+48;if(be==62)return 43;if(be==63)return 47}throw"n:"+be};return J.writeByte=function(be){for(Z=Z<<8|255&be,ce+=8,he+=1;ce>=6;)le(Z>>>ce-6),ce-=6},J.flush=function(){if(ce>0&&(le(Z<<6-ce),Z=0,ce=0),he%3!=0)for(var be=3-he%3,z=0;z<be;z+=1)we+="="},J.toString=function(){return we},J}(),D=v.toByteArray(),Y=0;Y<D.length;Y+=1)m.writeByte(D[Y]);return m.flush(),"data:image/gif;base64,"+m};return L}();O.stringToBytesFuncs["UTF-8"]=function(L){return function(k){for(var M=[],R=0;R<k.length;R++){var E=k.charCodeAt(R);E<128?M.push(E):E<2048?M.push(192|E>>6,128|63&E):E<55296||E>=57344?M.push(224|E>>12,128|E>>6&63,128|63&E):(R++,E=65536+((1023&E)<<10|1023&k.charCodeAt(R)),M.push(240|E>>18,128|E>>12&63,128|E>>6&63,128|63&E))}return M}(L)},(C=typeof(b=function(){return O})=="function"?b.apply(c,[]):b)===void 0||(h.exports=C)}},s={};function l(h){var c=s[h];if(c!==void 0)return c.exports;var b=s[h]={exports:{}};return r[h](b,b.exports,l),b.exports}l.n=h=>{var c=h&&h.__esModule?()=>h.default:()=>h;return l.d(c,{a:c}),c},l.d=(h,c)=>{for(var b in c)l.o(c,b)&&!l.o(h,b)&&Object.defineProperty(h,b,{enumerable:!0,get:c[b]})},l.o=(h,c)=>Object.prototype.hasOwnProperty.call(h,c);var g={};return(()=>{l.d(g,{default:()=>I});const h=T=>!!T&&typeof T=="object"&&!Array.isArray(T);function c(T,...p){if(!p.length)return T;const f=p.shift();return f!==void 0&&h(T)&&h(f)?(T=Object.assign({},T),Object.keys(f).forEach(_=>{const v=T[_],m=f[_];Array.isArray(v)&&Array.isArray(m)?T[_]=m:h(v)&&h(m)?T[_]=c(Object.assign({},v),m):T[_]=m}),c(T,...p)):T}function b(T,p){const f=document.createElement("a");f.download=p,f.href=T,document.body.appendChild(f),f.click(),document.body.removeChild(f)}const C={L:.07,M:.15,Q:.25,H:.3};class O{constructor({svg:p,type:f,window:_}){this._svg=p,this._type=f,this._window=_}draw(p,f,_,v){let m;switch(this._type){case"dots":m=this._drawDot;break;case"classy":m=this._drawClassy;break;case"classy-rounded":m=this._drawClassyRounded;break;case"rounded":m=this._drawRounded;break;case"extra-rounded":m=this._drawExtraRounded;break;default:m=this._drawSquare}m.call(this,{x:p,y:f,size:_,getNeighbor:v})}_rotateFigure({x:p,y:f,size:_,rotation:v=0,draw:m}){var D;const Y=p+_/2,Z=f+_/2;m(),(D=this._element)===null||D===void 0||D.setAttribute("transform",`rotate(${180*v/Math.PI},${Y},${Z})`)}_basicDot(p){const{size:f,x:_,y:v}=p;this._rotateFigure(Object.assign(Object.assign({},p),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(_+f/2)),this._element.setAttribute("cy",String(v+f/2)),this._element.setAttribute("r",String(f/2))}}))}_basicSquare(p){const{size:f,x:_,y:v}=p;this._rotateFigure(Object.assign(Object.assign({},p),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(_)),this._element.setAttribute("y",String(v)),this._element.setAttribute("width",String(f)),this._element.setAttribute("height",String(f))}}))}_basicSideRounded(p){const{size:f,x:_,y:v}=p;this._rotateFigure(Object.assign(Object.assign({},p),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${_} ${v}v ${f}h `+f/2+`a ${f/2} ${f/2}, 0, 0, 0, 0 ${-f}`)}}))}_basicCornerRounded(p){const{size:f,x:_,y:v}=p;this._rotateFigure(Object.assign(Object.assign({},p),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${_} ${v}v ${f}h ${f}v `+-f/2+`a ${f/2} ${f/2}, 0, 0, 0, ${-f/2} ${-f/2}`)}}))}_basicCornerExtraRounded(p){const{size:f,x:_,y:v}=p;this._rotateFigure(Object.assign(Object.assign({},p),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${_} ${v}v ${f}h ${f}a ${f} ${f}, 0, 0, 0, ${-f} ${-f}`)}}))}_basicCornersRounded(p){const{size:f,x:_,y:v}=p;this._rotateFigure(Object.assign(Object.assign({},p),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${_} ${v}v `+f/2+`a ${f/2} ${f/2}, 0, 0, 0, ${f/2} ${f/2}h `+f/2+"v "+-f/2+`a ${f/2} ${f/2}, 0, 0, 0, ${-f/2} ${-f/2}`)}}))}_drawDot({x:p,y:f,size:_}){this._basicDot({x:p,y:f,size:_,rotation:0})}_drawSquare({x:p,y:f,size:_}){this._basicSquare({x:p,y:f,size:_,rotation:0})}_drawRounded({x:p,y:f,size:_,getNeighbor:v}){const m=v?+v(-1,0):0,D=v?+v(1,0):0,Y=v?+v(0,-1):0,Z=v?+v(0,1):0,ce=m+D+Y+Z;if(ce!==0)if(ce>2||m&&D||Y&&Z)this._basicSquare({x:p,y:f,size:_,rotation:0});else{if(ce===2){let he=0;return m&&Y?he=Math.PI/2:Y&&D?he=Math.PI:D&&Z&&(he=-Math.PI/2),void this._basicCornerRounded({x:p,y:f,size:_,rotation:he})}if(ce===1){let he=0;return Y?he=Math.PI/2:D?he=Math.PI:Z&&(he=-Math.PI/2),void this._basicSideRounded({x:p,y:f,size:_,rotation:he})}}else this._basicDot({x:p,y:f,size:_,rotation:0})}_drawExtraRounded({x:p,y:f,size:_,getNeighbor:v}){const m=v?+v(-1,0):0,D=v?+v(1,0):0,Y=v?+v(0,-1):0,Z=v?+v(0,1):0,ce=m+D+Y+Z;if(ce!==0)if(ce>2||m&&D||Y&&Z)this._basicSquare({x:p,y:f,size:_,rotation:0});else{if(ce===2){let he=0;return m&&Y?he=Math.PI/2:Y&&D?he=Math.PI:D&&Z&&(he=-Math.PI/2),void this._basicCornerExtraRounded({x:p,y:f,size:_,rotation:he})}if(ce===1){let he=0;return Y?he=Math.PI/2:D?he=Math.PI:Z&&(he=-Math.PI/2),void this._basicSideRounded({x:p,y:f,size:_,rotation:he})}}else this._basicDot({x:p,y:f,size:_,rotation:0})}_drawClassy({x:p,y:f,size:_,getNeighbor:v}){const m=v?+v(-1,0):0,D=v?+v(1,0):0,Y=v?+v(0,-1):0,Z=v?+v(0,1):0;m+D+Y+Z!==0?m||Y?D||Z?this._basicSquare({x:p,y:f,size:_,rotation:0}):this._basicCornerRounded({x:p,y:f,size:_,rotation:Math.PI/2}):this._basicCornerRounded({x:p,y:f,size:_,rotation:-Math.PI/2}):this._basicCornersRounded({x:p,y:f,size:_,rotation:Math.PI/2})}_drawClassyRounded({x:p,y:f,size:_,getNeighbor:v}){const m=v?+v(-1,0):0,D=v?+v(1,0):0,Y=v?+v(0,-1):0,Z=v?+v(0,1):0;m+D+Y+Z!==0?m||Y?D||Z?this._basicSquare({x:p,y:f,size:_,rotation:0}):this._basicCornerExtraRounded({x:p,y:f,size:_,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:p,y:f,size:_,rotation:-Math.PI/2}):this._basicCornersRounded({x:p,y:f,size:_,rotation:Math.PI/2})}}const L={dot:"dot",square:"square",extraRounded:"extra-rounded"},k=Object.values(L);class M{constructor({svg:p,type:f,window:_}){this._svg=p,this._type=f,this._window=_}draw(p,f,_,v){let m;switch(this._type){case L.square:m=this._drawSquare;break;case L.extraRounded:m=this._drawExtraRounded;break;default:m=this._drawDot}m.call(this,{x:p,y:f,size:_,rotation:v})}_rotateFigure({x:p,y:f,size:_,rotation:v=0,draw:m}){var D;const Y=p+_/2,Z=f+_/2;m(),(D=this._element)===null||D===void 0||D.setAttribute("transform",`rotate(${180*v/Math.PI},${Y},${Z})`)}_basicDot(p){const{size:f,x:_,y:v}=p,m=f/7;this._rotateFigure(Object.assign(Object.assign({},p),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${_+f/2} ${v}a ${f/2} ${f/2} 0 1 0 0.1 0zm 0 ${m}a ${f/2-m} ${f/2-m} 0 1 1 -0.1 0Z`)}}))}_basicSquare(p){const{size:f,x:_,y:v}=p,m=f/7;this._rotateFigure(Object.assign(Object.assign({},p),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${_} ${v}v ${f}h ${f}v `+-f+`zM ${_+m} ${v+m}h `+(f-2*m)+"v "+(f-2*m)+"h "+(2*m-f)+"z")}}))}_basicExtraRounded(p){const{size:f,x:_,y:v}=p,m=f/7;this._rotateFigure(Object.assign(Object.assign({},p),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${_} ${v+2.5*m}v `+2*m+`a ${2.5*m} ${2.5*m}, 0, 0, 0, ${2.5*m} ${2.5*m}h `+2*m+`a ${2.5*m} ${2.5*m}, 0, 0, 0, ${2.5*m} ${2.5*-m}v `+-2*m+`a ${2.5*m} ${2.5*m}, 0, 0, 0, ${2.5*-m} ${2.5*-m}h `+-2*m+`a ${2.5*m} ${2.5*m}, 0, 0, 0, ${2.5*-m} ${2.5*m}M ${_+2.5*m} ${v+m}h `+2*m+`a ${1.5*m} ${1.5*m}, 0, 0, 1, ${1.5*m} ${1.5*m}v `+2*m+`a ${1.5*m} ${1.5*m}, 0, 0, 1, ${1.5*-m} ${1.5*m}h `+-2*m+`a ${1.5*m} ${1.5*m}, 0, 0, 1, ${1.5*-m} ${1.5*-m}v `+-2*m+`a ${1.5*m} ${1.5*m}, 0, 0, 1, ${1.5*m} ${1.5*-m}`)}}))}_drawDot({x:p,y:f,size:_,rotation:v}){this._basicDot({x:p,y:f,size:_,rotation:v})}_drawSquare({x:p,y:f,size:_,rotation:v}){this._basicSquare({x:p,y:f,size:_,rotation:v})}_drawExtraRounded({x:p,y:f,size:_,rotation:v}){this._basicExtraRounded({x:p,y:f,size:_,rotation:v})}}const R={dot:"dot",square:"square"},E=Object.values(R);class N{constructor({svg:p,type:f,window:_}){this._svg=p,this._type=f,this._window=_}draw(p,f,_,v){let m;m=this._type===R.square?this._drawSquare:this._drawDot,m.call(this,{x:p,y:f,size:_,rotation:v})}_rotateFigure({x:p,y:f,size:_,rotation:v=0,draw:m}){var D;const Y=p+_/2,Z=f+_/2;m(),(D=this._element)===null||D===void 0||D.setAttribute("transform",`rotate(${180*v/Math.PI},${Y},${Z})`)}_basicDot(p){const{size:f,x:_,y:v}=p;this._rotateFigure(Object.assign(Object.assign({},p),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(_+f/2)),this._element.setAttribute("cy",String(v+f/2)),this._element.setAttribute("r",String(f/2))}}))}_basicSquare(p){const{size:f,x:_,y:v}=p;this._rotateFigure(Object.assign(Object.assign({},p),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(_)),this._element.setAttribute("y",String(v)),this._element.setAttribute("width",String(f)),this._element.setAttribute("height",String(f))}}))}_drawDot({x:p,y:f,size:_,rotation:v}){this._basicDot({x:p,y:f,size:_,rotation:v})}_drawSquare({x:p,y:f,size:_,rotation:v}){this._basicSquare({x:p,y:f,size:_,rotation:v})}}const Q="circle",te=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],ee=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];class ue{constructor(p,f){this._roundSize=_=>this._options.dotsOptions.roundSize?Math.floor(_):_,this._window=f,this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(p.width)),this._element.setAttribute("height",String(p.height)),this._element.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),p.dotsOptions.roundSize||this._element.setAttribute("shape-rendering","crispEdges"),this._element.setAttribute("viewBox",`0 0 ${p.width} ${p.height}`),this._defs=this._window.document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._imageUri=p.image,this._instanceId=ue.instanceCount++,this._options=p}get width(){return this._options.width}get height(){return this._options.height}getElement(){return this._element}async drawQR(p){const f=p.getModuleCount(),_=Math.min(this._options.width,this._options.height)-2*this._options.margin,v=this._options.shape===Q?_/Math.sqrt(2):_,m=this._roundSize(v/f);let D={hideXDots:0,hideYDots:0,width:0,height:0};if(this._qr=p,this._options.image){if(await this.loadImage(),!this._image)return;const{imageOptions:Y,qrOptions:Z}=this._options,ce=Y.imageSize*C[Z.errorCorrectionLevel],he=Math.floor(ce*f*f);D=function({originalHeight:we,originalWidth:J,maxHiddenDots:le,maxHiddenAxisDots:Ce,dotSize:be}){const z={x:0,y:0},q={x:0,y:0};if(we<=0||J<=0||le<=0||be<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};const W=we/J;return z.x=Math.floor(Math.sqrt(le/W)),z.x<=0&&(z.x=1),Ce&&Ce<z.x&&(z.x=Ce),z.x%2==0&&z.x--,q.x=z.x*be,z.y=1+2*Math.ceil((z.x*W-1)/2),q.y=Math.round(q.x*W),(z.y*z.x>le||Ce&&Ce<z.y)&&(Ce&&Ce<z.y?(z.y=Ce,z.y%2==0&&z.x--):z.y-=2,q.y=z.y*be,z.x=1+2*Math.ceil((z.y/W-1)/2),q.x=Math.round(q.y/W)),{height:q.y,width:q.x,hideYDots:z.y,hideXDots:z.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:he,maxHiddenAxisDots:f-14,dotSize:m})}this.drawBackground(),this.drawDots((Y,Z)=>{var ce,he,we,J,le,Ce;return!(this._options.imageOptions.hideBackgroundDots&&Y>=(f-D.hideYDots)/2&&Y<(f+D.hideYDots)/2&&Z>=(f-D.hideXDots)/2&&Z<(f+D.hideXDots)/2||!((ce=te[Y])===null||ce===void 0)&&ce[Z]||!((he=te[Y-f+7])===null||he===void 0)&&he[Z]||!((we=te[Y])===null||we===void 0)&&we[Z-f+7]||!((J=ee[Y])===null||J===void 0)&&J[Z]||!((le=ee[Y-f+7])===null||le===void 0)&&le[Z]||!((Ce=ee[Y])===null||Ce===void 0)&&Ce[Z-f+7])}),this.drawCorners(),this._options.image&&await this.drawImage({width:D.width,height:D.height,count:f,dotSize:m})}drawBackground(){var p,f,_;const v=this._element,m=this._options;if(v){const D=(p=m.backgroundOptions)===null||p===void 0?void 0:p.gradient,Y=(f=m.backgroundOptions)===null||f===void 0?void 0:f.color;let Z=m.height,ce=m.width;if(D||Y){const he=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");this._backgroundClipPath=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._backgroundClipPath.setAttribute("id",`clip-path-background-color-${this._instanceId}`),this._defs.appendChild(this._backgroundClipPath),!((_=m.backgroundOptions)===null||_===void 0)&&_.round&&(Z=ce=Math.min(m.width,m.height),he.setAttribute("rx",String(Z/2*m.backgroundOptions.round))),he.setAttribute("x",String(this._roundSize((m.width-ce)/2))),he.setAttribute("y",String(this._roundSize((m.height-Z)/2))),he.setAttribute("width",String(ce)),he.setAttribute("height",String(Z)),this._backgroundClipPath.appendChild(he),this._createColor({options:D,color:Y,additionalRotation:0,x:0,y:0,height:m.height,width:m.width,name:`background-color-${this._instanceId}`})}}}drawDots(p){var f,_;if(!this._qr)throw"QR code is not defined";const v=this._options,m=this._qr.getModuleCount();if(m>v.width||m>v.height)throw"The canvas is too small.";const D=Math.min(v.width,v.height)-2*v.margin,Y=v.shape===Q?D/Math.sqrt(2):D,Z=this._roundSize(Y/m),ce=this._roundSize((v.width-m*Z)/2),he=this._roundSize((v.height-m*Z)/2),we=new O({svg:this._element,type:v.dotsOptions.type,window:this._window});this._dotsClipPath=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id",`clip-path-dot-color-${this._instanceId}`),this._defs.appendChild(this._dotsClipPath),this._createColor({options:(f=v.dotsOptions)===null||f===void 0?void 0:f.gradient,color:v.dotsOptions.color,additionalRotation:0,x:0,y:0,height:v.height,width:v.width,name:`dot-color-${this._instanceId}`});for(let J=0;J<m;J++)for(let le=0;le<m;le++)p&&!p(J,le)||!((_=this._qr)===null||_===void 0)&&_.isDark(J,le)&&(we.draw(ce+le*Z,he+J*Z,Z,(Ce,be)=>!(le+Ce<0||J+be<0||le+Ce>=m||J+be>=m)&&!(p&&!p(J+be,le+Ce))&&!!this._qr&&this._qr.isDark(J+be,le+Ce)),we._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(we._element));if(v.shape===Q){const J=this._roundSize((D/Z-m)/2),le=m+2*J,Ce=ce-J*Z,be=he-J*Z,z=[],q=this._roundSize(le/2);for(let W=0;W<le;W++){z[W]=[];for(let K=0;K<le;K++)W>=J-1&&W<=le-J&&K>=J-1&&K<=le-J||Math.sqrt((W-q)*(W-q)+(K-q)*(K-q))>q?z[W][K]=0:z[W][K]=this._qr.isDark(K-2*J<0?K:K>=m?K-2*J:K-J,W-2*J<0?W:W>=m?W-2*J:W-J)?1:0}for(let W=0;W<le;W++)for(let K=0;K<le;K++)z[W][K]&&(we.draw(Ce+K*Z,be+W*Z,Z,(ae,Te)=>{var u;return!!(!((u=z[W+Te])===null||u===void 0)&&u[K+ae])}),we._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(we._element))}}drawCorners(){if(!this._qr)throw"QR code is not defined";const p=this._element,f=this._options;if(!p)throw"Element code is not defined";const _=this._qr.getModuleCount(),v=Math.min(f.width,f.height)-2*f.margin,m=f.shape===Q?v/Math.sqrt(2):v,D=this._roundSize(m/_),Y=7*D,Z=3*D,ce=this._roundSize((f.width-_*D)/2),he=this._roundSize((f.height-_*D)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(([we,J,le])=>{var Ce,be,z,q,W,K,ae,Te,u,d,w,P,U,X;const xe=ce+we*D*(_-7),De=he+J*D*(_-7);let Re=this._dotsClipPath,Se=this._dotsClipPath;if((!((Ce=f.cornersSquareOptions)===null||Ce===void 0)&&Ce.gradient||!((be=f.cornersSquareOptions)===null||be===void 0)&&be.color)&&(Re=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),Re.setAttribute("id",`clip-path-corners-square-color-${we}-${J}-${this._instanceId}`),this._defs.appendChild(Re),this._cornersSquareClipPath=this._cornersDotClipPath=Se=Re,this._createColor({options:(z=f.cornersSquareOptions)===null||z===void 0?void 0:z.gradient,color:(q=f.cornersSquareOptions)===null||q===void 0?void 0:q.color,additionalRotation:le,x:xe,y:De,height:Y,width:Y,name:`corners-square-color-${we}-${J}-${this._instanceId}`})),((W=f.cornersSquareOptions)===null||W===void 0?void 0:W.type)&&k.includes(f.cornersSquareOptions.type)){const Le=new M({svg:this._element,type:f.cornersSquareOptions.type,window:this._window});Le.draw(xe,De,Y,le),Le._element&&Re&&Re.appendChild(Le._element)}else{const Le=new O({svg:this._element,type:((K=f.cornersSquareOptions)===null||K===void 0?void 0:K.type)||f.dotsOptions.type,window:this._window});for(let Pe=0;Pe<te.length;Pe++)for(let Ie=0;Ie<te[Pe].length;Ie++)!((ae=te[Pe])===null||ae===void 0)&&ae[Ie]&&(Le.draw(xe+Ie*D,De+Pe*D,D,(et,Ge)=>{var tt;return!!(!((tt=te[Pe+Ge])===null||tt===void 0)&&tt[Ie+et])}),Le._element&&Re&&Re.appendChild(Le._element))}if((!((Te=f.cornersDotOptions)===null||Te===void 0)&&Te.gradient||!((u=f.cornersDotOptions)===null||u===void 0)&&u.color)&&(Se=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),Se.setAttribute("id",`clip-path-corners-dot-color-${we}-${J}-${this._instanceId}`),this._defs.appendChild(Se),this._cornersDotClipPath=Se,this._createColor({options:(d=f.cornersDotOptions)===null||d===void 0?void 0:d.gradient,color:(w=f.cornersDotOptions)===null||w===void 0?void 0:w.color,additionalRotation:le,x:xe+2*D,y:De+2*D,height:Z,width:Z,name:`corners-dot-color-${we}-${J}-${this._instanceId}`})),((P=f.cornersDotOptions)===null||P===void 0?void 0:P.type)&&E.includes(f.cornersDotOptions.type)){const Le=new N({svg:this._element,type:f.cornersDotOptions.type,window:this._window});Le.draw(xe+2*D,De+2*D,Z,le),Le._element&&Se&&Se.appendChild(Le._element)}else{const Le=new O({svg:this._element,type:((U=f.cornersDotOptions)===null||U===void 0?void 0:U.type)||f.dotsOptions.type,window:this._window});for(let Pe=0;Pe<ee.length;Pe++)for(let Ie=0;Ie<ee[Pe].length;Ie++)!((X=ee[Pe])===null||X===void 0)&&X[Ie]&&(Le.draw(xe+Ie*D,De+Pe*D,D,(et,Ge)=>{var tt;return!!(!((tt=ee[Pe+Ge])===null||tt===void 0)&&tt[Ie+et])}),Le._element&&Se&&Se.appendChild(Le._element))}})}loadImage(){return new Promise((p,f)=>{var _;const v=this._options;if(!v.image)return f("Image is not defined");if(!((_=v.nodeCanvas)===null||_===void 0)&&_.loadImage)v.nodeCanvas.loadImage(v.image).then(m=>{var D,Y;if(this._image=m,this._options.imageOptions.saveAsBlob){const Z=(D=v.nodeCanvas)===null||D===void 0?void 0:D.createCanvas(this._image.width,this._image.height);(Y=Z==null?void 0:Z.getContext("2d"))===null||Y===void 0||Y.drawImage(m,0,0),this._imageUri=Z==null?void 0:Z.toDataURL()}p()}).catch(f);else{const m=new this._window.Image;typeof v.imageOptions.crossOrigin=="string"&&(m.crossOrigin=v.imageOptions.crossOrigin),this._image=m,m.onload=async()=>{this._options.imageOptions.saveAsBlob&&(this._imageUri=await async function(D,Y){return new Promise(Z=>{const ce=new Y.XMLHttpRequest;ce.onload=function(){const he=new Y.FileReader;he.onloadend=function(){Z(he.result)},he.readAsDataURL(ce.response)},ce.open("GET",D),ce.responseType="blob",ce.send()})}(v.image||"",this._window)),p()},m.src=v.image}})}async drawImage({width:p,height:f,count:_,dotSize:v}){const m=this._options,D=this._roundSize((m.width-_*v)/2),Y=this._roundSize((m.height-_*v)/2),Z=D+this._roundSize(m.imageOptions.margin+(_*v-p)/2),ce=Y+this._roundSize(m.imageOptions.margin+(_*v-f)/2),he=p-2*m.imageOptions.margin,we=f-2*m.imageOptions.margin,J=this._window.document.createElementNS("http://www.w3.org/2000/svg","image");J.setAttribute("href",this._imageUri||""),J.setAttribute("x",String(Z)),J.setAttribute("y",String(ce)),J.setAttribute("width",`${he}px`),J.setAttribute("height",`${we}px`),this._element.appendChild(J)}_createColor({options:p,color:f,additionalRotation:_,x:v,y:m,height:D,width:Y,name:Z}){const ce=Y>D?Y:D,he=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");if(he.setAttribute("x",String(v)),he.setAttribute("y",String(m)),he.setAttribute("height",String(D)),he.setAttribute("width",String(Y)),he.setAttribute("clip-path",`url('#clip-path-${Z}')`),p){let we;if(p.type==="radial")we=this._window.document.createElementNS("http://www.w3.org/2000/svg","radialGradient"),we.setAttribute("id",Z),we.setAttribute("gradientUnits","userSpaceOnUse"),we.setAttribute("fx",String(v+Y/2)),we.setAttribute("fy",String(m+D/2)),we.setAttribute("cx",String(v+Y/2)),we.setAttribute("cy",String(m+D/2)),we.setAttribute("r",String(ce/2));else{const J=((p.rotation||0)+_)%(2*Math.PI),le=(J+2*Math.PI)%(2*Math.PI);let Ce=v+Y/2,be=m+D/2,z=v+Y/2,q=m+D/2;le>=0&&le<=.25*Math.PI||le>1.75*Math.PI&&le<=2*Math.PI?(Ce-=Y/2,be-=D/2*Math.tan(J),z+=Y/2,q+=D/2*Math.tan(J)):le>.25*Math.PI&&le<=.75*Math.PI?(be-=D/2,Ce-=Y/2/Math.tan(J),q+=D/2,z+=Y/2/Math.tan(J)):le>.75*Math.PI&&le<=1.25*Math.PI?(Ce+=Y/2,be+=D/2*Math.tan(J),z-=Y/2,q-=D/2*Math.tan(J)):le>1.25*Math.PI&&le<=1.75*Math.PI&&(be+=D/2,Ce+=Y/2/Math.tan(J),q-=D/2,z-=Y/2/Math.tan(J)),we=this._window.document.createElementNS("http://www.w3.org/2000/svg","linearGradient"),we.setAttribute("id",Z),we.setAttribute("gradientUnits","userSpaceOnUse"),we.setAttribute("x1",String(Math.round(Ce))),we.setAttribute("y1",String(Math.round(be))),we.setAttribute("x2",String(Math.round(z))),we.setAttribute("y2",String(Math.round(q)))}p.colorStops.forEach(({offset:J,color:le})=>{const Ce=this._window.document.createElementNS("http://www.w3.org/2000/svg","stop");Ce.setAttribute("offset",100*J+"%"),Ce.setAttribute("stop-color",le),we.appendChild(Ce)}),he.setAttribute("fill",`url('#${Z}')`),this._defs.appendChild(we)}else f&&he.setAttribute("fill",f);this._element.appendChild(he)}}ue.instanceCount=0;const G=ue,de="canvas",ne={};for(let T=0;T<=40;T++)ne[T]=T;const re={type:de,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:ne[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{saveAsBlob:!0,hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000",roundSize:!0},backgroundOptions:{round:0,color:"#fff"}};function se(T){const p=Object.assign({},T);if(!p.colorStops||!p.colorStops.length)throw"Field 'colorStops' is required in gradient";return p.rotation?p.rotation=Number(p.rotation):p.rotation=0,p.colorStops=p.colorStops.map(f=>Object.assign(Object.assign({},f),{offset:Number(f.offset)})),p}function pe(T){const p=Object.assign({},T);return p.width=Number(p.width),p.height=Number(p.height),p.margin=Number(p.margin),p.imageOptions=Object.assign(Object.assign({},p.imageOptions),{hideBackgroundDots:!!p.imageOptions.hideBackgroundDots,imageSize:Number(p.imageOptions.imageSize),margin:Number(p.imageOptions.margin)}),p.margin>Math.min(p.width,p.height)&&(p.margin=Math.min(p.width,p.height)),p.dotsOptions=Object.assign({},p.dotsOptions),p.dotsOptions.gradient&&(p.dotsOptions.gradient=se(p.dotsOptions.gradient)),p.cornersSquareOptions&&(p.cornersSquareOptions=Object.assign({},p.cornersSquareOptions),p.cornersSquareOptions.gradient&&(p.cornersSquareOptions.gradient=se(p.cornersSquareOptions.gradient))),p.cornersDotOptions&&(p.cornersDotOptions=Object.assign({},p.cornersDotOptions),p.cornersDotOptions.gradient&&(p.cornersDotOptions.gradient=se(p.cornersDotOptions.gradient))),p.backgroundOptions&&(p.backgroundOptions=Object.assign({},p.backgroundOptions),p.backgroundOptions.gradient&&(p.backgroundOptions.gradient=se(p.backgroundOptions.gradient))),p}var ie=l(873),Ae=l.n(ie);function Oe(T){if(!T)throw new Error("Extension must be defined");T[0]==="."&&(T=T.substring(1));const p={bmp:"image/bmp",gif:"image/gif",ico:"image/vnd.microsoft.icon",jpeg:"image/jpeg",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",tif:"image/tiff",tiff:"image/tiff",webp:"image/webp",pdf:"application/pdf"}[T.toLowerCase()];if(!p)throw new Error(`Extension "${T}" is not supported`);return p}class j{constructor(p){p!=null&&p.jsdom?this._window=new p.jsdom("",{resources:"usable"}).window:this._window=window,this._options=p?pe(c(re,p)):re,this.update()}static _clearContainer(p){p&&(p.innerHTML="")}_setupSvg(){if(!this._qr)return;const p=new G(this._options,this._window);this._svg=p.getElement(),this._svgDrawingPromise=p.drawQR(this._qr).then(()=>{var f;this._svg&&((f=this._extension)===null||f===void 0||f.call(this,p.getElement(),this._options))})}_setupCanvas(){var p,f;this._qr&&(!((p=this._options.nodeCanvas)===null||p===void 0)&&p.createCanvas?(this._nodeCanvas=this._options.nodeCanvas.createCanvas(this._options.width,this._options.height),this._nodeCanvas.width=this._options.width,this._nodeCanvas.height=this._options.height):(this._domCanvas=document.createElement("canvas"),this._domCanvas.width=this._options.width,this._domCanvas.height=this._options.height),this._setupSvg(),this._canvasDrawingPromise=(f=this._svgDrawingPromise)===null||f===void 0?void 0:f.then(()=>{var _;if(!this._svg)return;const v=this._svg,m=new this._window.XMLSerializer().serializeToString(v),D=btoa(m),Y=`data:${Oe("svg")};base64,${D}`;if(!((_=this._options.nodeCanvas)===null||_===void 0)&&_.loadImage)return this._options.nodeCanvas.loadImage(Y).then(Z=>{var ce,he;Z.width=this._options.width,Z.height=this._options.height,(he=(ce=this._nodeCanvas)===null||ce===void 0?void 0:ce.getContext("2d"))===null||he===void 0||he.drawImage(Z,0,0)});{const Z=new this._window.Image;return new Promise(ce=>{Z.onload=()=>{var he,we;(we=(he=this._domCanvas)===null||he===void 0?void 0:he.getContext("2d"))===null||we===void 0||we.drawImage(Z,0,0),ce()},Z.src=Y})}}))}async _getElement(p="png"){if(!this._qr)throw"QR code is empty";return p.toLowerCase()==="svg"?(this._svg&&this._svgDrawingPromise||this._setupSvg(),await this._svgDrawingPromise,this._svg):((this._domCanvas||this._nodeCanvas)&&this._canvasDrawingPromise||this._setupCanvas(),await this._canvasDrawingPromise,this._domCanvas||this._nodeCanvas)}update(p){j._clearContainer(this._container),this._options=p?pe(c(this._options,p)):this._options,this._options.data&&(this._qr=Ae()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(f){switch(!0){case/^[0-9]*$/.test(f):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(f):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===de?this._setupCanvas():this._setupSvg(),this.append(this._container))}append(p){if(p){if(typeof p.appendChild!="function")throw"Container should be a single DOM node";this._options.type===de?this._domCanvas&&p.appendChild(this._domCanvas):this._svg&&p.appendChild(this._svg),this._container=p}}applyExtension(p){if(!p)throw"Extension function should be defined.";this._extension=p,this.update()}deleteExtension(){this._extension=void 0,this.update()}async getRawData(p="png"){if(!this._qr)throw"QR code is empty";const f=await this._getElement(p),_=Oe(p);if(!f)return null;if(p.toLowerCase()==="svg"){const v=`<?xml version="1.0" standalone="no"?>\r
116
- ${new this._window.XMLSerializer().serializeToString(f)}`;return typeof Blob>"u"||this._options.jsdom?Buffer.from(v):new Blob([v],{type:_})}return new Promise(v=>{const m=f;if("toBuffer"in m)if(_==="image/png")v(m.toBuffer(_));else if(_==="image/jpeg")v(m.toBuffer(_));else{if(_!=="application/pdf")throw Error("Unsupported extension");v(m.toBuffer(_))}else"toBlob"in m&&m.toBlob(v,_,1)})}async download(p){if(!this._qr)throw"QR code is empty";if(typeof Blob>"u")throw"Cannot download in Node.js, call getRawData instead.";let f="png",_="qr";typeof p=="string"?(f=p,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):typeof p=="object"&&p!==null&&(p.name&&(_=p.name),p.extension&&(f=p.extension));const v=await this._getElement(f);if(v)if(f.toLowerCase()==="svg"){let m=new XMLSerializer().serializeToString(v);m=`<?xml version="1.0" standalone="no"?>\r
117
- `+m,b(`data:${Oe(f)};charset=utf-8,${encodeURIComponent(m)}`,`${_}.svg`)}else b(v.toDataURL(Oe(f)),`${_}.${f}`)}}const I=j})(),g.default})())}(ba)),ba.exports}Ng();const hc=ye.createContext(void 0);function Bg(i){const n=un.c(9),{children:r,baseUrl:s,queryClient:l}=i;let g;n[0]!==s||n[1]!==l?(g={baseUrl:s,queryClient:l},n[0]=s,n[1]=l,n[2]=g):g=n[2];let h;n[3]!==r||n[4]!==l?(h=A.jsx(Sl,{client:l,children:r}),n[3]=r,n[4]=l,n[5]=h):h=n[5];let c;return n[6]!==g||n[7]!==h?(c=A.jsx(hc.Provider,{value:g,children:h}),n[6]=g,n[7]=h,n[8]=c):c=n[8],c}function nr(){const i=ye.useContext(hc);if(!i)throw new Error("useDataTable must be used within a DataTableProvider");return i}function jg(){const i=localStorage.getItem("a360.assumed-org");return i?{"X-Assume-Org":i}:{}}async function Dr(){return{"Content-Type":"application/json",Authorization:`Bearer ${await Og()??""}`,...jg()}}async function dc(i){return fetch(i,{method:"GET",headers:await Dr()}).then(async n=>{if(n.status>=400)throw await n.text();return n}).then(n=>n.json()).then(n=>n)}async function pc(i,n){return fetch(`${i}/${n}`,{method:"GET",headers:await Dr()}).then(async r=>{if(r.status>=400)throw await r.text();return r}).then(r=>r.json()).then(r=>r)}async function gc(i,n){await fetch(`${i}/${n}`,{method:"DELETE",headers:await Dr()}).then(async r=>{if(r.status>=400)throw await r.text();return r})}async function vc(i,n){return fetch(i,{method:"POST",headers:await Dr(),body:JSON.stringify(n)}).then(async r=>{if(r.status>=400)throw await r.text();return r}).then(r=>r.status==204?n:r.json()).then(r=>r)}async function Ug(i,n,r){return fetch(n,{method:i,headers:await Dr(),body:r?JSON.stringify(r):void 0}).then(async s=>{if(s.status>=400)throw await s.text();return s}).then(s=>{if(s.status!=204)return s.json()}).then(s=>s)}async function mc(i,n){return fetch(`${i}/${n.id}`,{method:"PUT",headers:await Dr(),body:JSON.stringify(n)}).then(async r=>{if(r.status>=400)throw await r.text();return r}).then(r=>r.status==204?n:r.json()).then(r=>r)}function yc(i,n,r){const s=un.c(13),{baseUrl:l}=nr();let g;if(s[0]!==r||s[1]!==n){let C;s[3]!==r?(C=r==null?void 0:r.toString(),s[3]=r,s[4]=C):C=s[4],g=[...n.map(zg),String(C)],s[0]=r,s[1]=n,s[2]=g}else g=s[2];let h;s[5]!==i||s[6]!==l||s[7]!==r?(h=()=>pc(`${l}${i}`,r),s[5]=i,s[6]=l,s[7]=r,s[8]=h):h=s[8];const c=!!r;let b;return s[9]!==g||s[10]!==h||s[11]!==c?(b={queryKey:g,queryFn:h,enabled:c},s[9]=g,s[10]=h,s[11]=c,s[12]=b):b=s[12],Tl(b)}function zg(i){return i.toString()}function wc(i,n){const r=un.c(8),{baseUrl:s}=nr();let l;r[0]!==n?(l=[...n.map(Fg)],r[0]=n,r[1]=l):l=r[1];let g;r[2]!==i||r[3]!==s?(g=()=>dc(`${s}${i}`),r[2]=i,r[3]=s,r[4]=g):g=r[4];let h;return r[5]!==l||r[6]!==g?(h={queryKey:l,queryFn:g},r[5]=l,r[6]=g,r[7]=h):h=r[7],Tl(h)}function Fg(i){return i.toString()}function _c(i,n){const r=un.c(10),{baseUrl:s,queryClient:l}=nr();let g;r[0]!==n?(g=[...n.map(Yg)],r[0]=n,r[1]=g):g=r[1];let h;r[2]!==i||r[3]!==s?(h=b=>vc(`${s}${i}`,b),r[2]=i,r[3]=s,r[4]=h):h=r[4];let c;return r[5]!==l||r[6]!==n||r[7]!==g||r[8]!==h?(c={mutationKey:g,mutationFn:h,onSettled(){return l.invalidateQueries({queryKey:[...n.map(Wg)]})}},r[5]=l,r[6]=n,r[7]=g,r[8]=h,r[9]=c):c=r[9],na(c)}function Wg(i){return i.toString()}function Yg(i){return i.toString()}function xa(i,n){const r=un.c(10),{baseUrl:s,queryClient:l}=nr();let g;r[0]!==n?(g=[...n.map(Hg)],r[0]=n,r[1]=g):g=r[1];let h;r[2]!==i||r[3]!==s?(h=b=>mc(`${s}${i}`,b),r[2]=i,r[3]=s,r[4]=h):h=r[4];let c;return r[5]!==l||r[6]!==n||r[7]!==g||r[8]!==h?(c={mutationKey:g,mutationFn:h,onSettled(){return l.invalidateQueries({queryKey:[...n.map(qg)]})}},r[5]=l,r[6]=n,r[7]=g,r[8]=h,r[9]=c):c=r[9],na(c)}function qg(i){return i.toString()}function Hg(i){return i.toString()}function bc(i,n){const r=un.c(10),{baseUrl:s,queryClient:l}=nr();let g;r[0]!==n?(g=[...n.map(Vg)],r[0]=n,r[1]=g):g=r[1];let h;r[2]!==i||r[3]!==s?(h=b=>gc(`${s}${i}`,b),r[2]=i,r[3]=s,r[4]=h):h=r[4];let c;return r[5]!==l||r[6]!==n||r[7]!==g||r[8]!==h?(c={mutationKey:g,mutationFn:h,onSettled(){return l.invalidateQueries({queryKey:[...n.map(Gg)]})}},r[5]=l,r[6]=n,r[7]=g,r[8]=h,r[9]=c):c=r[9],na(c)}function Gg(i){return i.toString()}function Vg(i){return i.toString()}var ko={exports:{}},Zg=ko.exports,xc;function Kg(){return xc||(xc=1,function(i,n){(function(r,s){i.exports=s()})(Zg,function(){var r=1e3,s=6e4,l=36e5,g="millisecond",h="second",c="minute",b="hour",C="day",O="week",L="month",k="quarter",M="year",R="date",E="Invalid Date",N=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Q=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,te={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(j){var I=["th","st","nd","rd"],T=j%100;return"["+j+(I[(T-20)%10]||I[T]||I[0])+"]"}},ee=function(j,I,T){var p=String(j);return!p||p.length>=I?j:""+Array(I+1-p.length).join(T)+j},ue={s:ee,z:function(j){var I=-j.utcOffset(),T=Math.abs(I),p=Math.floor(T/60),f=T%60;return(I<=0?"+":"-")+ee(p,2,"0")+":"+ee(f,2,"0")},m:function j(I,T){if(I.date()<T.date())return-j(T,I);var p=12*(T.year()-I.year())+(T.month()-I.month()),f=I.clone().add(p,L),_=T-f<0,v=I.clone().add(p+(_?-1:1),L);return+(-(p+(T-f)/(_?f-v:v-f))||0)},a:function(j){return j<0?Math.ceil(j)||0:Math.floor(j)},p:function(j){return{M:L,y:M,w:O,d:C,D:R,h:b,m:c,s:h,ms:g,Q:k}[j]||String(j||"").toLowerCase().replace(/s$/,"")},u:function(j){return j===void 0}},G="en",de={};de[G]=te;var ne="$isDayjsObject",re=function(j){return j instanceof Ae||!(!j||!j[ne])},se=function j(I,T,p){var f;if(!I)return G;if(typeof I=="string"){var _=I.toLowerCase();de[_]&&(f=_),T&&(de[_]=T,f=_);var v=I.split("-");if(!f&&v.length>1)return j(v[0])}else{var m=I.name;de[m]=I,f=m}return!p&&f&&(G=f),f||!p&&G},pe=function(j,I){if(re(j))return j.clone();var T=typeof I=="object"?I:{};return T.date=j,T.args=arguments,new Ae(T)},ie=ue;ie.l=se,ie.i=re,ie.w=function(j,I){return pe(j,{locale:I.$L,utc:I.$u,x:I.$x,$offset:I.$offset})};var Ae=function(){function j(T){this.$L=se(T.locale,null,!0),this.parse(T),this.$x=this.$x||T.x||{},this[ne]=!0}var I=j.prototype;return I.parse=function(T){this.$d=function(p){var f=p.date,_=p.utc;if(f===null)return new Date(NaN);if(ie.u(f))return new Date;if(f instanceof Date)return new Date(f);if(typeof f=="string"&&!/Z$/i.test(f)){var v=f.match(N);if(v){var m=v[2]-1||0,D=(v[7]||"0").substring(0,3);return _?new Date(Date.UTC(v[1],m,v[3]||1,v[4]||0,v[5]||0,v[6]||0,D)):new Date(v[1],m,v[3]||1,v[4]||0,v[5]||0,v[6]||0,D)}}return new Date(f)}(T),this.init()},I.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},I.$utils=function(){return ie},I.isValid=function(){return this.$d.toString()!==E},I.isSame=function(T,p){var f=pe(T);return this.startOf(p)<=f&&f<=this.endOf(p)},I.isAfter=function(T,p){return pe(T)<this.startOf(p)},I.isBefore=function(T,p){return this.endOf(p)<pe(T)},I.$g=function(T,p,f){return ie.u(T)?this[p]:this.set(f,T)},I.unix=function(){return Math.floor(this.valueOf()/1e3)},I.valueOf=function(){return this.$d.getTime()},I.startOf=function(T,p){var f=this,_=!!ie.u(p)||p,v=ie.p(T),m=function(le,Ce){var be=ie.w(f.$u?Date.UTC(f.$y,Ce,le):new Date(f.$y,Ce,le),f);return _?be:be.endOf(C)},D=function(le,Ce){return ie.w(f.toDate()[le].apply(f.toDate("s"),(_?[0,0,0,0]:[23,59,59,999]).slice(Ce)),f)},Y=this.$W,Z=this.$M,ce=this.$D,he="set"+(this.$u?"UTC":"");switch(v){case M:return _?m(1,0):m(31,11);case L:return _?m(1,Z):m(0,Z+1);case O:var we=this.$locale().weekStart||0,J=(Y<we?Y+7:Y)-we;return m(_?ce-J:ce+(6-J),Z);case C:case R:return D(he+"Hours",0);case b:return D(he+"Minutes",1);case c:return D(he+"Seconds",2);case h:return D(he+"Milliseconds",3);default:return this.clone()}},I.endOf=function(T){return this.startOf(T,!1)},I.$set=function(T,p){var f,_=ie.p(T),v="set"+(this.$u?"UTC":""),m=(f={},f[C]=v+"Date",f[R]=v+"Date",f[L]=v+"Month",f[M]=v+"FullYear",f[b]=v+"Hours",f[c]=v+"Minutes",f[h]=v+"Seconds",f[g]=v+"Milliseconds",f)[_],D=_===C?this.$D+(p-this.$W):p;if(_===L||_===M){var Y=this.clone().set(R,1);Y.$d[m](D),Y.init(),this.$d=Y.set(R,Math.min(this.$D,Y.daysInMonth())).$d}else m&&this.$d[m](D);return this.init(),this},I.set=function(T,p){return this.clone().$set(T,p)},I.get=function(T){return this[ie.p(T)]()},I.add=function(T,p){var f,_=this;T=Number(T);var v=ie.p(p),m=function(Z){var ce=pe(_);return ie.w(ce.date(ce.date()+Math.round(Z*T)),_)};if(v===L)return this.set(L,this.$M+T);if(v===M)return this.set(M,this.$y+T);if(v===C)return m(1);if(v===O)return m(7);var D=(f={},f[c]=s,f[b]=l,f[h]=r,f)[v]||1,Y=this.$d.getTime()+T*D;return ie.w(Y,this)},I.subtract=function(T,p){return this.add(-1*T,p)},I.format=function(T){var p=this,f=this.$locale();if(!this.isValid())return f.invalidDate||E;var _=T||"YYYY-MM-DDTHH:mm:ssZ",v=ie.z(this),m=this.$H,D=this.$m,Y=this.$M,Z=f.weekdays,ce=f.months,he=f.meridiem,we=function(Ce,be,z,q){return Ce&&(Ce[be]||Ce(p,_))||z[be].slice(0,q)},J=function(Ce){return ie.s(m%12||12,Ce,"0")},le=he||function(Ce,be,z){var q=Ce<12?"AM":"PM";return z?q.toLowerCase():q};return _.replace(Q,function(Ce,be){return be||function(z){switch(z){case"YY":return String(p.$y).slice(-2);case"YYYY":return ie.s(p.$y,4,"0");case"M":return Y+1;case"MM":return ie.s(Y+1,2,"0");case"MMM":return we(f.monthsShort,Y,ce,3);case"MMMM":return we(ce,Y);case"D":return p.$D;case"DD":return ie.s(p.$D,2,"0");case"d":return String(p.$W);case"dd":return we(f.weekdaysMin,p.$W,Z,2);case"ddd":return we(f.weekdaysShort,p.$W,Z,3);case"dddd":return Z[p.$W];case"H":return String(m);case"HH":return ie.s(m,2,"0");case"h":return J(1);case"hh":return J(2);case"a":return le(m,D,!0);case"A":return le(m,D,!1);case"m":return String(D);case"mm":return ie.s(D,2,"0");case"s":return String(p.$s);case"ss":return ie.s(p.$s,2,"0");case"SSS":return ie.s(p.$ms,3,"0");case"Z":return v}return null}(Ce)||v.replace(":","")})},I.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},I.diff=function(T,p,f){var _,v=this,m=ie.p(p),D=pe(T),Y=(D.utcOffset()-this.utcOffset())*s,Z=this-D,ce=function(){return ie.m(v,D)};switch(m){case M:_=ce()/12;break;case L:_=ce();break;case k:_=ce()/3;break;case O:_=(Z-Y)/6048e5;break;case C:_=(Z-Y)/864e5;break;case b:_=Z/l;break;case c:_=Z/s;break;case h:_=Z/r;break;default:_=Z}return f?_:ie.a(_)},I.daysInMonth=function(){return this.endOf(L).$D},I.$locale=function(){return de[this.$L]},I.locale=function(T,p){if(!T)return this.$L;var f=this.clone(),_=se(T,p,!0);return _&&(f.$L=_),f},I.clone=function(){return ie.w(this.$d,this)},I.toDate=function(){return new Date(this.valueOf())},I.toJSON=function(){return this.isValid()?this.toISOString():null},I.toISOString=function(){return this.$d.toISOString()},I.toString=function(){return this.$d.toUTCString()},j}(),Oe=Ae.prototype;return pe.prototype=Oe,[["$ms",g],["$s",h],["$m",c],["$H",b],["$W",C],["$M",L],["$y",M],["$D",R]].forEach(function(j){Oe[j[1]]=function(I){return this.$g(I,j[0],j[1])}}),pe.extend=function(j,I){return j.$i||(j(I,Ae,pe),j.$i=!0),pe},pe.locale=se,pe.isDayjs=re,pe.unix=function(j){return pe(1e3*j)},pe.en=de[G],pe.Ls=de,pe.p={},pe})}(ko)),ko.exports}var Qg=Kg();const ke=wo(Qg);function Jg({direction:i,levelIndex:n,rowIndex:r,cellIndex:s,size:l}){switch(i){case"up":return n===0&&r===0?null:r===0?{levelIndex:n-1,rowIndex:s<=l[n-1][l[n-1].length-1]-1?l[n-1].length-1:l[n-1].length-2,cellIndex:s}:{levelIndex:n,rowIndex:r-1,cellIndex:s};case"down":return r===l[n].length-1?{levelIndex:n+1,rowIndex:0,cellIndex:s}:r===l[n].length-2&&s>=l[n][l[n].length-1]?{levelIndex:n+1,rowIndex:0,cellIndex:s}:{levelIndex:n,rowIndex:r+1,cellIndex:s};case"left":return n===0&&r===0&&s===0?null:r===0&&s===0?{levelIndex:n-1,rowIndex:l[n-1].length-1,cellIndex:l[n-1][l[n-1].length-1]-1}:s===0?{levelIndex:n,rowIndex:r-1,cellIndex:l[n][r-1]-1}:{levelIndex:n,rowIndex:r,cellIndex:s-1};case"right":return r===l[n].length-1&&s===l[n][r]-1?{levelIndex:n+1,rowIndex:0,cellIndex:0}:s===l[n][r]-1?{levelIndex:n,rowIndex:r+1,cellIndex:0}:{levelIndex:n,rowIndex:r,cellIndex:s+1};default:return{levelIndex:n,rowIndex:r,cellIndex:s}}}function Sc({controlsRef:i,direction:n,levelIndex:r,rowIndex:s,cellIndex:l,size:g}){var b,C,O;const h=Jg({direction:n,size:g,rowIndex:s,cellIndex:l,levelIndex:r});if(!h)return;const c=(O=(C=(b=i.current)==null?void 0:b[h.levelIndex])==null?void 0:C[h.rowIndex])==null?void 0:O[h.cellIndex];c&&(c.disabled||c.getAttribute("data-hidden")||c.getAttribute("data-outside")?Sc({controlsRef:i,direction:n,levelIndex:h.levelIndex,cellIndex:h.cellIndex,rowIndex:h.rowIndex,size:g}):c.focus())}function Xg(i){switch(i){case"ArrowDown":return"down";case"ArrowUp":return"up";case"ArrowRight":return"right";case"ArrowLeft":return"left";default:return null}}function e1(i){var n;return(n=i.current)==null?void 0:n.map(r=>r.map(s=>s.length))}function Sa({controlsRef:i,levelIndex:n,rowIndex:r,cellIndex:s,event:l}){const g=Xg(l.key);if(g){l.preventDefault();const h=e1(i);Sc({controlsRef:i,direction:g,levelIndex:n,rowIndex:r,cellIndex:s,size:h})}}function t1(i,n){if(!i||!n)return n;const r=i.getHours(),s=i.getMinutes(),l=i.getSeconds(),g=i.getMilliseconds(),h=new Date(n);return h.setHours(r),h.setMinutes(s),h.setSeconds(l),h.setMilliseconds(g),h}var Io={exports:{}},n1=Io.exports,Cc;function r1(){return Cc||(Cc=1,function(i,n){(function(r,s){i.exports=s()})(n1,function(){var r={year:0,month:1,day:2,hour:3,minute:4,second:5},s={};return function(l,g,h){var c,b=function(k,M,R){R===void 0&&(R={});var E=new Date(k),N=function(Q,te){te===void 0&&(te={});var ee=te.timeZoneName||"short",ue=Q+"|"+ee,G=s[ue];return G||(G=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:Q,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:ee}),s[ue]=G),G}(M,R);return N.formatToParts(E)},C=function(k,M){for(var R=b(k,M),E=[],N=0;N<R.length;N+=1){var Q=R[N],te=Q.type,ee=Q.value,ue=r[te];ue>=0&&(E[ue]=parseInt(ee,10))}var G=E[3],de=G===24?0:G,ne=E[0]+"-"+E[1]+"-"+E[2]+" "+de+":"+E[4]+":"+E[5]+":000",re=+k;return(h.utc(ne).valueOf()-(re-=re%1e3))/6e4},O=g.prototype;O.tz=function(k,M){k===void 0&&(k=c);var R,E=this.utcOffset(),N=this.toDate(),Q=N.toLocaleString("en-US",{timeZone:k}),te=Math.round((N-new Date(Q))/1e3/60),ee=15*-Math.round(N.getTimezoneOffset()/15)-te;if(!Number(ee))R=this.utcOffset(0,M);else if(R=h(Q,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(ee,!0),M){var ue=R.utcOffset();R=R.add(E-ue,"minute")}return R.$x.$timezone=k,R},O.offsetName=function(k){var M=this.$x.$timezone||h.tz.guess(),R=b(this.valueOf(),M,{timeZoneName:k}).find(function(E){return E.type.toLowerCase()==="timezonename"});return R&&R.value};var L=O.startOf;O.startOf=function(k,M){if(!this.$x||!this.$x.$timezone)return L.call(this,k,M);var R=h(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return L.call(R,k,M).tz(this.$x.$timezone,!0)},h.tz=function(k,M,R){var E=R&&M,N=R||M||c,Q=C(+h(),N);if(typeof k!="string")return h(k).tz(N);var te=function(de,ne,re){var se=de-60*ne*1e3,pe=C(se,re);if(ne===pe)return[se,ne];var ie=C(se-=60*(pe-ne)*1e3,re);return pe===ie?[se,pe]:[de-60*Math.min(pe,ie)*1e3,Math.max(pe,ie)]}(h.utc(k,E).valueOf(),Q,N),ee=te[0],ue=te[1],G=h(ee).utcOffset(ue);return G.$x.$timezone=N,G},h.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},h.tz.setDefault=function(k){c=k}}})}(Io)),Io.exports}var i1=r1();const o1=wo(i1);var $o={exports:{}},s1=$o.exports,Ac;function a1(){return Ac||(Ac=1,function(i,n){(function(r,s){i.exports=s()})(s1,function(){var r="minute",s=/[+-]\d\d(?::?\d\d)?/g,l=/([+-]|\d\d)/g;return function(g,h,c){var b=h.prototype;c.utc=function(E){var N={date:E,utc:!0,args:arguments};return new h(N)},b.utc=function(E){var N=c(this.toDate(),{locale:this.$L,utc:!0});return E?N.add(this.utcOffset(),r):N},b.local=function(){return c(this.toDate(),{locale:this.$L,utc:!1})};var C=b.parse;b.parse=function(E){E.utc&&(this.$u=!0),this.$utils().u(E.$offset)||(this.$offset=E.$offset),C.call(this,E)};var O=b.init;b.init=function(){if(this.$u){var E=this.$d;this.$y=E.getUTCFullYear(),this.$M=E.getUTCMonth(),this.$D=E.getUTCDate(),this.$W=E.getUTCDay(),this.$H=E.getUTCHours(),this.$m=E.getUTCMinutes(),this.$s=E.getUTCSeconds(),this.$ms=E.getUTCMilliseconds()}else O.call(this)};var L=b.utcOffset;b.utcOffset=function(E,N){var Q=this.$utils().u;if(Q(E))return this.$u?0:Q(this.$offset)?L.call(this):this.$offset;if(typeof E=="string"&&(E=function(G){G===void 0&&(G="");var de=G.match(s);if(!de)return null;var ne=(""+de[0]).match(l)||["-",0,0],re=ne[0],se=60*+ne[1]+ +ne[2];return se===0?0:re==="+"?se:-se}(E),E===null))return this;var te=Math.abs(E)<=16?60*E:E,ee=this;if(N)return ee.$offset=te,ee.$u=E===0,ee;if(E!==0){var ue=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(ee=this.local().add(te+ue,r)).$offset=te,ee.$x.$localOffset=ue}else ee=this.utc();return ee};var k=b.format;b.format=function(E){var N=E||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return k.call(this,N)},b.valueOf=function(){var E=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*E},b.isUTC=function(){return!!this.$u},b.toISOString=function(){return this.toDate().toISOString()},b.toString=function(){return this.toDate().toUTCString()};var M=b.toDate;b.toDate=function(E){return E==="s"&&this.$offset?c(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():M.call(this)};var R=b.diff;b.diff=function(E,N,Q){if(E&&this.$u===E.$u)return R.call(this,E,N,Q);var te=this.local(),ee=c(E).local();return R.call(te,ee,N,Q)}}})}($o)),$o.exports}var u1=a1();const l1=wo(u1);ke.extend(l1),ke.extend(o1);function c1(i,n){return n?ke(i).tz(n).utcOffset()+i.getTimezoneOffset():0}const Oc=(i,n,r)=>{if(!i)return null;if(!n)return i;let s=c1(i,n);return r==="remove"&&(s*=-1),ke(i).add(s,"minutes").toDate()};function Er(i,n,r,s){return s||!n?n:Array.isArray(n)?n.map(l=>Oc(l,r,i)):Oc(n,r,i)}const f1={locale:"en",timezone:null,firstDayOfWeek:1,weekendDays:[0,6],labelSeparator:"–",consistentWeeks:!1},h1=ye.createContext(f1);function fn(){const i=ye.useContext(h1),n=ye.useCallback(h=>h||i.locale,[i.locale]),r=ye.useCallback(h=>h||i.timezone||void 0,[i.timezone]),s=ye.useCallback(h=>typeof h=="number"?h:i.firstDayOfWeek,[i.firstDayOfWeek]),l=ye.useCallback(h=>Array.isArray(h)?h:i.weekendDays,[i.weekendDays]),g=ye.useCallback(h=>typeof h=="string"?h:i.labelSeparator,[i.labelSeparator]);return{...i,getLocale:n,getTimezone:r,getFirstDayOfWeek:s,getWeekendDays:l,getLabelSeparator:g}}function d1(i,n){const r=fn(),s=l=>Er("remove",l,r.getTimezone()).toISOString();if(n==="range"&&Array.isArray(i)){const[l,g]=i;return l?g?`${s(l)} – ${s(g)}`:`${s(l)} –`:""}return n==="multiple"&&Array.isArray(i)?i.map(l=>l&&s(l)).filter(Boolean).join(", "):!Array.isArray(i)&&i?s(i):""}function Tc({value:i,type:n,name:r,form:s}){return A.jsx("input",{type:"hidden",value:d1(i,n),name:r,form:s})}Tc.displayName="@mantine/dates/HiddenDatesInput";function Dc(i){var n,r,s="";if(typeof i=="string"||typeof i=="number")s+=i;else if(typeof i=="object")if(Array.isArray(i)){var l=i.length;for(n=0;n<l;n++)i[n]&&(r=Dc(i[n]))&&(s&&(s+=" "),s+=r)}else for(r in i)i[r]&&(s&&(s+=" "),s+=r);return s}function mt(){for(var i,n,r=0,s="",l=arguments.length;r<l;r++)(i=arguments[r])&&(n=Dc(i))&&(s&&(s+=" "),s+=n);return s}var Ec={day:"m_396ce5cb"};const p1={},g1=B.createVarsResolver((i,{size:n})=>({day:{"--day-size":B.getSize(n,"day-size")}})),Ca=B.factory((i,n)=>{const r=B.useProps("Day",p1,i),{classNames:s,className:l,style:g,styles:h,unstyled:c,vars:b,date:C,disabled:O,__staticSelector:L,weekend:k,outside:M,selected:R,renderDay:E,inRange:N,firstInRange:Q,lastInRange:te,hidden:ee,static:ue,highlightToday:G,...de}=r,ne=B.useStyles({name:L||"Day",classes:Ec,props:r,className:l,style:g,classNames:s,styles:h,unstyled:c,vars:b,varsResolver:g1,rootSelector:"day"}),re=fn();return A.jsx(B.UnstyledButton,{...ne("day",{style:ee?{display:"none"}:void 0}),component:ue?"div":"button",ref:n,disabled:O,"data-today":ke(C).isSame(Er("add",new Date,re.getTimezone()),"day")||void 0,"data-hidden":ee||void 0,"data-highlight-today":G||void 0,"data-disabled":O||void 0,"data-weekend":!O&&!M&&k||void 0,"data-outside":!O&&M||void 0,"data-selected":!O&&R||void 0,"data-in-range":N&&!O||void 0,"data-first-in-range":Q&&!O||void 0,"data-last-in-range":te&&!O||void 0,"data-static":ue||void 0,unstyled:c,...de,children:(E==null?void 0:E(C))||ke(C).date()})});Ca.classes=Ec,Ca.displayName="@mantine/dates/Day";function v1({locale:i,format:n="dd",firstDayOfWeek:r=1}){const s=ke().day(r),l=[];for(let g=0;g<7;g+=1)typeof n=="string"?l.push(ke(s).add(g,"days").locale(i).format(n)):l.push(n(ke(s).add(g,"days").toDate()));return l}var Mc={weekday:"m_18a3eca"};const m1={},y1=B.createVarsResolver((i,{size:n})=>({weekdaysRow:{"--wr-fz":B.getFontSize(n),"--wr-spacing":B.getSpacing(n)}})),Aa=B.factory((i,n)=>{const r=B.useProps("WeekdaysRow",m1,i),{classNames:s,className:l,style:g,styles:h,unstyled:c,vars:b,locale:C,firstDayOfWeek:O,weekdayFormat:L,cellComponent:k="th",__staticSelector:M,withWeekNumbers:R,...E}=r,N=B.useStyles({name:M||"WeekdaysRow",classes:Mc,props:r,className:l,style:g,classNames:s,styles:h,unstyled:c,vars:b,varsResolver:y1,rootSelector:"weekdaysRow"}),Q=fn(),te=v1({locale:Q.getLocale(C),format:L,firstDayOfWeek:Q.getFirstDayOfWeek(O)}).map((ee,ue)=>A.jsx(k,{...N("weekday"),children:ee},ue));return A.jsxs(B.Box,{component:"tr",ref:n,...N("weekdaysRow"),...E,children:[R&&A.jsx(k,{...N("weekday"),children:"#"}),te]})});Aa.classes=Mc,Aa.displayName="@mantine/dates/WeekdaysRow";function w1(i,n=1){let r=ke(i);const s=n===0?6:n-1;for(;r.day()!==s;)r=r.add(1,"day");return r.toDate()}function _1(i,n=1){let r=ke(i);for(;r.day()!==n;)r=r.subtract(1,"day");return r.toDate()}function b1({month:i,firstDayOfWeek:n=1,consistentWeeks:r}){const s=ke(i).subtract(ke(i).date()-1,"day"),l=ke(s).startOf("day"),g=l.toDate(),h=l.add(+l.daysInMonth()-1,"day").toDate(),c=w1(h,n),b=_1(g,n),C=[];for(;b<=c;){const O=[];for(let L=0;L<7;L+=1)O.push(new Date(b)),b.setDate(b.getDate()+1);C.push(O)}if(r&&C.length<6){const O=C[C.length-1],L=O[O.length-1],k=new Date(L);for(k.setDate(k.getDate()+1);C.length<6;){const M=[];for(let R=0;R<7;R+=1)M.push(new Date(k)),k.setDate(k.getDate()+1);C.push(M)}}return C}function Rc(i,n){return n instanceof Date?ke(i).isAfter(ke(n).subtract(1,"day"),"day"):!0}function Lc(i,n){return n instanceof Date?ke(i).isBefore(ke(n).add(1,"day"),"day"):!0}function x1(i,n,r,s,l,g,h){const c=i.flat().filter(O=>{var L;return Lc(O,r)&&Rc(O,n)&&!(l!=null&&l(O))&&!((L=s==null?void 0:s(O))!=null&&L.disabled)&&(!g||ke(O).isSame(ke(h),"month"))}),b=c.find(O=>{var L;return(L=s==null?void 0:s(O))==null?void 0:L.selected});if(b)return b;const C=c.find(O=>ke().isSame(O,"date"));return C||c[0]}var Po={exports:{}},S1=Po.exports,kc;function C1(){return kc||(kc=1,function(i,n){(function(r,s){i.exports=s()})(S1,function(){var r="day";return function(s,l,g){var h=function(C){return C.add(4-C.isoWeekday(),r)},c=l.prototype;c.isoWeekYear=function(){return h(this).year()},c.isoWeek=function(C){if(!this.$utils().u(C))return this.add(7*(C-this.isoWeek()),r);var O,L,k,M,R=h(this),E=(O=this.isoWeekYear(),L=this.$u,k=(L?g.utc:g)().year(O).startOf("year"),M=4-k.isoWeekday(),k.isoWeekday()>4&&(M+=7),k.add(M,r));return R.diff(E,"week")+1},c.isoWeekday=function(C){return this.$utils().u(C)?this.day()||7:this.day(this.day()%7?C:C-7)};var b=c.startOf;c.startOf=function(C,O){var L=this.$utils(),k=!!L.u(O)||O;return L.p(C)==="isoweek"?k?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):b.bind(this)(C,O)}}})}(Po)),Po.exports}var A1=C1();const O1=wo(A1);ke.extend(O1);function T1(i){const n=i.find(r=>ke(r).day()===1);return ke(n).isoWeek()}var Ic={month:"m_cc9820d3",monthCell:"m_8f457cd5",weekNumber:"m_6cff9dea"};const D1={withCellSpacing:!0},E1=B.createVarsResolver((i,{size:n})=>({weekNumber:{"--wn-fz":B.getFontSize(n),"--wn-size":B.getSize(n,"wn-size")}})),No=B.factory((i,n)=>{const r=B.useProps("Month",D1,i),{classNames:s,className:l,style:g,styles:h,unstyled:c,vars:b,__staticSelector:C,locale:O,firstDayOfWeek:L,weekdayFormat:k,month:M,weekendDays:R,getDayProps:E,excludeDate:N,minDate:Q,maxDate:te,renderDay:ee,hideOutsideDates:ue,hideWeekdays:G,getDayAriaLabel:de,static:ne,__getDayRef:re,__onDayKeyDown:se,__onDayClick:pe,__onDayMouseEnter:ie,__preventFocus:Ae,__stopPropagation:Oe,withCellSpacing:j,size:I,highlightToday:T,withWeekNumbers:p,...f}=r,_=B.useStyles({name:C||"Month",classes:Ic,props:r,className:l,style:g,classNames:s,styles:h,unstyled:c,vars:b,varsResolver:E1,rootSelector:"month"}),v=fn(),m=b1({month:M,firstDayOfWeek:v.getFirstDayOfWeek(L),consistentWeeks:v.consistentWeeks}),D=x1(m,Q,te,E,N,ue,M),{resolvedClassNames:Y,resolvedStyles:Z}=B.useResolvedStylesApi({classNames:s,styles:h,props:r}),ce=m.map((he,we)=>{const J=he.map((le,Ce)=>{const be=!ke(le).isSame(ke(M),"month"),z=(de==null?void 0:de(le))||ke(le).locale(O||v.locale).format("D MMMM YYYY"),q=E==null?void 0:E(le),W=ke(le).isSame(D,"date");return A.jsx("td",{..._("monthCell"),"data-with-spacing":j||void 0,children:A.jsx(Ca,{__staticSelector:C||"Month",classNames:Y,styles:Z,unstyled:c,"data-mantine-stop-propagation":Oe||void 0,highlightToday:T,renderDay:ee,date:le,size:I,weekend:v.getWeekendDays(R).includes(le.getDay()),outside:be,hidden:ue?be:!1,"aria-label":z,static:ne,disabled:(N==null?void 0:N(le))||!Lc(le,te)||!Rc(le,Q),ref:K=>re==null?void 0:re(we,Ce,K),...q,onKeyDown:K=>{var ae;(ae=q==null?void 0:q.onKeyDown)==null||ae.call(q,K),se==null||se(K,{rowIndex:we,cellIndex:Ce,date:le})},onMouseEnter:K=>{var ae;(ae=q==null?void 0:q.onMouseEnter)==null||ae.call(q,K),ie==null||ie(K,le)},onClick:K=>{var ae;(ae=q==null?void 0:q.onClick)==null||ae.call(q,K),pe==null||pe(K,le)},onMouseDown:K=>{var ae;(ae=q==null?void 0:q.onMouseDown)==null||ae.call(q,K),Ae&&K.preventDefault()},tabIndex:Ae||!W?-1:0})},le.toString())});return A.jsxs("tr",{..._("monthRow"),children:[p&&A.jsx("td",{..._("weekNumber"),children:T1(he)}),J]},we)});return A.jsxs(B.Box,{component:"table",..._("month"),size:I,ref:n,...f,children:[!G&&A.jsx("thead",{..._("monthThead"),children:A.jsx(Aa,{__staticSelector:C||"Month",locale:O,firstDayOfWeek:L,weekdayFormat:k,size:I,classNames:Y,styles:Z,unstyled:c,withWeekNumbers:p})}),A.jsx("tbody",{..._("monthTbody"),children:ce})]})});No.classes=Ic,No.displayName="@mantine/dates/Month";var $c={pickerControl:"m_dc6a3c71"};const M1={},R1=B.createVarsResolver((i,{size:n})=>({pickerControl:{"--dpc-fz":B.getFontSize(n),"--dpc-size":B.getSize(n,"dpc-size")}})),Bo=B.factory((i,n)=>{const r=B.useProps("PickerControl",M1,i),{classNames:s,className:l,style:g,styles:h,unstyled:c,vars:b,firstInRange:C,lastInRange:O,inRange:L,__staticSelector:k,selected:M,disabled:R,...E}=r,N=B.useStyles({name:k||"PickerControl",classes:$c,props:r,className:l,style:g,classNames:s,styles:h,unstyled:c,vars:b,varsResolver:R1,rootSelector:"pickerControl"});return A.jsx(B.UnstyledButton,{...N("pickerControl"),ref:n,unstyled:c,"data-picker-control":!0,"data-selected":M&&!R||void 0,"data-disabled":R||void 0,"data-in-range":L&&!R&&!M||void 0,"data-first-in-range":C&&!R||void 0,"data-last-in-range":O&&!R||void 0,disabled:R,...E})});Bo.classes=$c,Bo.displayName="@mantine/dates/PickerControl";function Pc(i,n,r){return!n&&!r?!1:!!(n&&ke(i).isBefore(n,"year")||r&&ke(i).isAfter(r,"year"))}function L1(i,n,r,s){const l=i.flat().filter(c=>{var b;return!Pc(c,n,r)&&!((b=s==null?void 0:s(c))!=null&&b.disabled)}),g=l.find(c=>{var b;return(b=s==null?void 0:s(c))==null?void 0:b.selected});if(g)return g;const h=l.find(c=>ke().isSame(c,"year"));return h||l[0]}function Nc(i){const n=i.getFullYear(),r=n-n%10;let s=0;const l=[[],[],[],[]];for(let g=0;g<4;g+=1){const h=g===3?1:3;for(let c=0;c<h;c+=1)l[g].push(new Date(r+s,0)),s+=1}return l}var Bc={yearsList:"m_9206547b",yearsListCell:"m_c5a19c7d"};const k1={yearsListFormat:"YYYY",withCellSpacing:!0},jo=B.factory((i,n)=>{const r=B.useProps("YearsList",k1,i),{classNames:s,className:l,style:g,styles:h,unstyled:c,vars:b,decade:C,yearsListFormat:O,locale:L,minDate:k,maxDate:M,getYearControlProps:R,__staticSelector:E,__getControlRef:N,__onControlKeyDown:Q,__onControlClick:te,__onControlMouseEnter:ee,__preventFocus:ue,__stopPropagation:G,withCellSpacing:de,size:ne,...re}=r,se=B.useStyles({name:E||"YearsList",classes:Bc,props:r,className:l,style:g,classNames:s,styles:h,unstyled:c,vars:b,rootSelector:"yearsList"}),pe=fn(),ie=Nc(C),Ae=L1(ie,k,M,R),Oe=ie.map((j,I)=>{const T=j.map((p,f)=>{const _=R==null?void 0:R(p),v=ke(p).isSame(Ae,"year");return A.jsx("td",{...se("yearsListCell"),"data-with-spacing":de||void 0,children:A.jsx(Bo,{...se("yearsListControl"),size:ne,unstyled:c,"data-mantine-stop-propagation":G||void 0,disabled:Pc(p,k,M),ref:m=>N==null?void 0:N(I,f,m),..._,onKeyDown:m=>{var D;(D=_==null?void 0:_.onKeyDown)==null||D.call(_,m),Q==null||Q(m,{rowIndex:I,cellIndex:f,date:p})},onClick:m=>{var D;(D=_==null?void 0:_.onClick)==null||D.call(_,m),te==null||te(m,p)},onMouseEnter:m=>{var D;(D=_==null?void 0:_.onMouseEnter)==null||D.call(_,m),ee==null||ee(m,p)},onMouseDown:m=>{var D;(D=_==null?void 0:_.onMouseDown)==null||D.call(_,m),ue&&m.preventDefault()},tabIndex:ue||!v?-1:0,children:ke(p).locale(pe.getLocale(L)).format(O)})},f)});return A.jsx("tr",{...se("yearsListRow"),children:T},I)});return A.jsx(B.Box,{component:"table",ref:n,size:ne,...se("yearsList"),...re,children:A.jsx("tbody",{children:Oe})})});jo.classes=Bc,jo.displayName="@mantine/dates/YearsList";function jc(i,n,r){return!n&&!r?!1:!!(n&&ke(i).isBefore(n,"month")||r&&ke(i).isAfter(r,"month"))}function I1(i,n,r,s){const l=i.flat().filter(c=>{var b;return!jc(c,n,r)&&!((b=s==null?void 0:s(c))!=null&&b.disabled)}),g=l.find(c=>{var b;return(b=s==null?void 0:s(c))==null?void 0:b.selected});if(g)return g;const h=l.find(c=>ke().isSame(c,"month"));return h||l[0]}function $1(i){const n=ke(i).startOf("year").toDate(),r=[[],[],[],[]];let s=0;for(let l=0;l<4;l+=1)for(let g=0;g<3;g+=1)r[l].push(ke(n).add(s,"months").toDate()),s+=1;return r}var Uc={monthsList:"m_2a6c32d",monthsListCell:"m_fe27622f"};const P1={monthsListFormat:"MMM",withCellSpacing:!0},Uo=B.factory((i,n)=>{const r=B.useProps("MonthsList",P1,i),{classNames:s,className:l,style:g,styles:h,unstyled:c,vars:b,__staticSelector:C,year:O,monthsListFormat:L,locale:k,minDate:M,maxDate:R,getMonthControlProps:E,__getControlRef:N,__onControlKeyDown:Q,__onControlClick:te,__onControlMouseEnter:ee,__preventFocus:ue,__stopPropagation:G,withCellSpacing:de,size:ne,...re}=r,se=B.useStyles({name:C||"MonthsList",classes:Uc,props:r,className:l,style:g,classNames:s,styles:h,unstyled:c,vars:b,rootSelector:"monthsList"}),pe=fn(),ie=$1(O),Ae=I1(ie,M,R,E),Oe=ie.map((j,I)=>{const T=j.map((p,f)=>{const _=E==null?void 0:E(p),v=ke(p).isSame(Ae,"month");return A.jsx("td",{...se("monthsListCell"),"data-with-spacing":de||void 0,children:A.jsx(Bo,{...se("monthsListControl"),size:ne,unstyled:c,__staticSelector:C||"MonthsList","data-mantine-stop-propagation":G||void 0,disabled:jc(p,M,R),ref:m=>N==null?void 0:N(I,f,m),..._,onKeyDown:m=>{var D;(D=_==null?void 0:_.onKeyDown)==null||D.call(_,m),Q==null||Q(m,{rowIndex:I,cellIndex:f,date:p})},onClick:m=>{var D;(D=_==null?void 0:_.onClick)==null||D.call(_,m),te==null||te(m,p)},onMouseEnter:m=>{var D;(D=_==null?void 0:_.onMouseEnter)==null||D.call(_,m),ee==null||ee(m,p)},onMouseDown:m=>{var D;(D=_==null?void 0:_.onMouseDown)==null||D.call(_,m),ue&&m.preventDefault()},tabIndex:ue||!v?-1:0,children:ke(p).locale(pe.getLocale(k)).format(L)})},f)});return A.jsx("tr",{...se("monthsListRow"),children:T},I)});return A.jsx(B.Box,{component:"table",ref:n,size:ne,...se("monthsList"),...re,children:A.jsx("tbody",{children:Oe})})});Uo.classes=Uc,Uo.displayName="@mantine/dates/MonthsList";var zc={calendarHeader:"m_730a79ed",calendarHeaderLevel:"m_f6645d97",calendarHeaderControl:"m_2351eeb0",calendarHeaderControlIcon:"m_367dc749"};const N1={nextDisabled:!1,previousDisabled:!1,hasNextLevel:!0,withNext:!0,withPrevious:!0},B1=B.createVarsResolver((i,{size:n})=>({calendarHeader:{"--dch-control-size":B.getSize(n,"dch-control-size"),"--dch-fz":B.getFontSize(n)}})),rr=B.factory((i,n)=>{const r=B.useProps("CalendarHeader",N1,i),{classNames:s,className:l,style:g,styles:h,unstyled:c,vars:b,nextIcon:C,previousIcon:O,nextLabel:L,previousLabel:k,onNext:M,onPrevious:R,onLevelClick:E,label:N,nextDisabled:Q,previousDisabled:te,hasNextLevel:ee,levelControlAriaLabel:ue,withNext:G,withPrevious:de,__staticSelector:ne,__preventFocus:re,__stopPropagation:se,...pe}=r,ie=B.useStyles({name:ne||"CalendarHeader",classes:zc,props:r,className:l,style:g,classNames:s,styles:h,unstyled:c,vars:b,varsResolver:B1,rootSelector:"calendarHeader"}),Ae=re?Oe=>Oe.preventDefault():void 0;return A.jsxs(B.Box,{...ie("calendarHeader"),ref:n,...pe,children:[de&&A.jsx(B.UnstyledButton,{...ie("calendarHeaderControl"),"data-direction":"previous","aria-label":k,onClick:R,unstyled:c,onMouseDown:Ae,disabled:te,"data-disabled":te||void 0,tabIndex:re||te?-1:0,"data-mantine-stop-propagation":se||void 0,children:O||A.jsx(B.AccordionChevron,{...ie("calendarHeaderControlIcon"),"data-direction":"previous",size:"45%"})}),A.jsx(B.UnstyledButton,{component:ee?"button":"div",...ie("calendarHeaderLevel"),onClick:ee?E:void 0,unstyled:c,onMouseDown:ee?Ae:void 0,disabled:!ee,"data-static":!ee||void 0,"aria-label":ue,tabIndex:re||!ee?-1:0,"data-mantine-stop-propagation":se||void 0,children:N}),G&&A.jsx(B.UnstyledButton,{...ie("calendarHeaderControl"),"data-direction":"next","aria-label":L,onClick:M,unstyled:c,onMouseDown:Ae,disabled:Q,"data-disabled":Q||void 0,tabIndex:re||Q?-1:0,"data-mantine-stop-propagation":se||void 0,children:C||A.jsx(B.AccordionChevron,{...ie("calendarHeaderControlIcon"),"data-direction":"next",size:"45%"})})]})});rr.classes=zc,rr.displayName="@mantine/dates/CalendarHeader";function j1(i){const n=Nc(i);return[n[0][0],n[3][0]]}const U1={decadeLabelFormat:"YYYY"},zo=B.factory((i,n)=>{const r=B.useProps("DecadeLevel",U1,i),{decade:s,locale:l,minDate:g,maxDate:h,yearsListFormat:c,getYearControlProps:b,__getControlRef:C,__onControlKeyDown:O,__onControlClick:L,__onControlMouseEnter:k,withCellSpacing:M,__preventFocus:R,nextIcon:E,previousIcon:N,nextLabel:Q,previousLabel:te,onNext:ee,onPrevious:ue,nextDisabled:G,previousDisabled:de,levelControlAriaLabel:ne,withNext:re,withPrevious:se,decadeLabelFormat:pe,classNames:ie,styles:Ae,unstyled:Oe,__staticSelector:j,__stopPropagation:I,size:T,...p}=r,f=fn(),[_,v]=j1(s),m={__staticSelector:j||"DecadeLevel",classNames:ie,styles:Ae,unstyled:Oe,size:T},D=typeof G=="boolean"?G:h?!ke(v).endOf("year").isBefore(h):!1,Y=typeof de=="boolean"?de:g?!ke(_).startOf("year").isAfter(g):!1,Z=(ce,he)=>ke(ce).locale(l||f.locale).format(he);return A.jsxs(B.Box,{"data-decade-level":!0,size:T,ref:n,...p,children:[A.jsx(rr,{label:typeof pe=="function"?pe(_,v):`${Z(_,pe)} – ${Z(v,pe)}`,__preventFocus:R,__stopPropagation:I,nextIcon:E,previousIcon:N,nextLabel:Q,previousLabel:te,onNext:ee,onPrevious:ue,nextDisabled:D,previousDisabled:Y,hasNextLevel:!1,levelControlAriaLabel:ne,withNext:re,withPrevious:se,...m}),A.jsx(jo,{decade:s,locale:l,minDate:g,maxDate:h,yearsListFormat:c,getYearControlProps:b,__getControlRef:C,__onControlKeyDown:O,__onControlClick:L,__onControlMouseEnter:k,__preventFocus:R,__stopPropagation:I,withCellSpacing:M,...m})]})});zo.classes={...jo.classes,...rr.classes},zo.displayName="@mantine/dates/DecadeLevel";const z1={yearLabelFormat:"YYYY"},Fo=B.factory((i,n)=>{const r=B.useProps("YearLevel",z1,i),{year:s,locale:l,minDate:g,maxDate:h,monthsListFormat:c,getMonthControlProps:b,__getControlRef:C,__onControlKeyDown:O,__onControlClick:L,__onControlMouseEnter:k,withCellSpacing:M,__preventFocus:R,nextIcon:E,previousIcon:N,nextLabel:Q,previousLabel:te,onNext:ee,onPrevious:ue,onLevelClick:G,nextDisabled:de,previousDisabled:ne,hasNextLevel:re,levelControlAriaLabel:se,withNext:pe,withPrevious:ie,yearLabelFormat:Ae,__staticSelector:Oe,__stopPropagation:j,size:I,classNames:T,styles:p,unstyled:f,..._}=r,v=fn(),m={__staticSelector:Oe||"YearLevel",classNames:T,styles:p,unstyled:f,size:I},D=typeof de=="boolean"?de:h?!ke(s).endOf("year").isBefore(h):!1,Y=typeof ne=="boolean"?ne:g?!ke(s).startOf("year").isAfter(g):!1;return A.jsxs(B.Box,{"data-year-level":!0,size:I,ref:n,..._,children:[A.jsx(rr,{label:typeof Ae=="function"?Ae(s):ke(s).locale(l||v.locale).format(Ae),__preventFocus:R,__stopPropagation:j,nextIcon:E,previousIcon:N,nextLabel:Q,previousLabel:te,onNext:ee,onPrevious:ue,onLevelClick:G,nextDisabled:D,previousDisabled:Y,hasNextLevel:re,levelControlAriaLabel:se,withNext:pe,withPrevious:ie,...m}),A.jsx(Uo,{year:s,locale:l,minDate:g,maxDate:h,monthsListFormat:c,getMonthControlProps:b,__getControlRef:C,__onControlKeyDown:O,__onControlClick:L,__onControlMouseEnter:k,__preventFocus:R,__stopPropagation:j,withCellSpacing:M,...m})]})});Fo.classes={...rr.classes,...Uo.classes},Fo.displayName="@mantine/dates/YearLevel";const F1={monthLabelFormat:"MMMM YYYY"},Wo=B.factory((i,n)=>{const r=B.useProps("MonthLevel",F1,i),{month:s,locale:l,firstDayOfWeek:g,weekdayFormat:h,weekendDays:c,getDayProps:b,excludeDate:C,minDate:O,maxDate:L,renderDay:k,hideOutsideDates:M,hideWeekdays:R,getDayAriaLabel:E,__getDayRef:N,__onDayKeyDown:Q,__onDayClick:te,__onDayMouseEnter:ee,withCellSpacing:ue,highlightToday:G,withWeekNumbers:de,__preventFocus:ne,__stopPropagation:re,nextIcon:se,previousIcon:pe,nextLabel:ie,previousLabel:Ae,onNext:Oe,onPrevious:j,onLevelClick:I,nextDisabled:T,previousDisabled:p,hasNextLevel:f,levelControlAriaLabel:_,withNext:v,withPrevious:m,monthLabelFormat:D,classNames:Y,styles:Z,unstyled:ce,__staticSelector:he,size:we,static:J,...le}=r,Ce=fn(),be={__staticSelector:he||"MonthLevel",classNames:Y,styles:Z,unstyled:ce,size:we},z=typeof T=="boolean"?T:L?!ke(s).endOf("month").isBefore(L):!1,q=typeof p=="boolean"?p:O?!ke(s).startOf("month").isAfter(O):!1;return A.jsxs(B.Box,{"data-month-level":!0,size:we,ref:n,...le,children:[A.jsx(rr,{label:typeof D=="function"?D(s):ke(s).locale(l||Ce.locale).format(D),__preventFocus:ne,__stopPropagation:re,nextIcon:se,previousIcon:pe,nextLabel:ie,previousLabel:Ae,onNext:Oe,onPrevious:j,onLevelClick:I,nextDisabled:z,previousDisabled:q,hasNextLevel:f,levelControlAriaLabel:_,withNext:v,withPrevious:m,...be}),A.jsx(No,{month:s,locale:l,firstDayOfWeek:g,weekdayFormat:h,weekendDays:c,getDayProps:b,excludeDate:C,minDate:O,maxDate:L,renderDay:k,hideOutsideDates:M,hideWeekdays:R,getDayAriaLabel:E,__getDayRef:N,__onDayKeyDown:Q,__onDayClick:te,__onDayMouseEnter:ee,__preventFocus:ne,__stopPropagation:re,static:J,withCellSpacing:ue,highlightToday:G,withWeekNumbers:de,...be})]})});Wo.classes={...No.classes,...rr.classes},Wo.displayName="@mantine/dates/MonthLevel";var Fc={levelsGroup:"m_30b26e33"};const W1={},ir=B.factory((i,n)=>{const r=B.useProps("LevelsGroup",W1,i),{classNames:s,className:l,style:g,styles:h,unstyled:c,vars:b,__staticSelector:C,...O}=r,L=B.useStyles({name:C||"LevelsGroup",classes:Fc,props:r,className:l,style:g,classNames:s,styles:h,unstyled:c,vars:b,rootSelector:"levelsGroup"});return A.jsx(B.Box,{ref:n,...L("levelsGroup"),...O})});ir.classes=Fc,ir.displayName="@mantine/dates/LevelsGroup";const Y1={numberOfColumns:1},Yo=B.factory((i,n)=>{const r=B.useProps("DecadeLevelGroup",Y1,i),{decade:s,locale:l,minDate:g,maxDate:h,yearsListFormat:c,getYearControlProps:b,__onControlClick:C,__onControlMouseEnter:O,withCellSpacing:L,__preventFocus:k,nextIcon:M,previousIcon:R,nextLabel:E,previousLabel:N,onNext:Q,onPrevious:te,nextDisabled:ee,previousDisabled:ue,classNames:G,styles:de,unstyled:ne,__staticSelector:re,__stopPropagation:se,numberOfColumns:pe,levelControlAriaLabel:ie,decadeLabelFormat:Ae,size:Oe,vars:j,...I}=r,T=ye.useRef([]),p=Array(pe).fill(0).map((f,_)=>{const v=ke(s).add(_*10,"years").toDate();return A.jsx(zo,{size:Oe,yearsListFormat:c,decade:v,withNext:_===pe-1,withPrevious:_===0,decadeLabelFormat:Ae,__onControlClick:C,__onControlMouseEnter:O,__onControlKeyDown:(m,D)=>Sa({levelIndex:_,rowIndex:D.rowIndex,cellIndex:D.cellIndex,event:m,controlsRef:T}),__getControlRef:(m,D,Y)=>{Array.isArray(T.current[_])||(T.current[_]=[]),Array.isArray(T.current[_][m])||(T.current[_][m]=[]),T.current[_][m][D]=Y},levelControlAriaLabel:typeof ie=="function"?ie(v):ie,locale:l,minDate:g,maxDate:h,__preventFocus:k,__stopPropagation:se,nextIcon:M,previousIcon:R,nextLabel:E,previousLabel:N,onNext:Q,onPrevious:te,nextDisabled:ee,previousDisabled:ue,getYearControlProps:b,__staticSelector:re||"DecadeLevelGroup",classNames:G,styles:de,unstyled:ne,withCellSpacing:L},_)});return A.jsx(ir,{classNames:G,styles:de,__staticSelector:re||"DecadeLevelGroup",ref:n,size:Oe,unstyled:ne,...I,children:p})});Yo.classes={...ir.classes,...zo.classes},Yo.displayName="@mantine/dates/DecadeLevelGroup";const q1={numberOfColumns:1},qo=B.factory((i,n)=>{const r=B.useProps("YearLevelGroup",q1,i),{year:s,locale:l,minDate:g,maxDate:h,monthsListFormat:c,getMonthControlProps:b,__onControlClick:C,__onControlMouseEnter:O,withCellSpacing:L,__preventFocus:k,nextIcon:M,previousIcon:R,nextLabel:E,previousLabel:N,onNext:Q,onPrevious:te,onLevelClick:ee,nextDisabled:ue,previousDisabled:G,hasNextLevel:de,classNames:ne,styles:re,unstyled:se,__staticSelector:pe,__stopPropagation:ie,numberOfColumns:Ae,levelControlAriaLabel:Oe,yearLabelFormat:j,size:I,vars:T,...p}=r,f=ye.useRef([]),_=Array(Ae).fill(0).map((v,m)=>{const D=ke(s).add(m,"years").toDate();return A.jsx(Fo,{size:I,monthsListFormat:c,year:D,withNext:m===Ae-1,withPrevious:m===0,yearLabelFormat:j,__stopPropagation:ie,__onControlClick:C,__onControlMouseEnter:O,__onControlKeyDown:(Y,Z)=>Sa({levelIndex:m,rowIndex:Z.rowIndex,cellIndex:Z.cellIndex,event:Y,controlsRef:f}),__getControlRef:(Y,Z,ce)=>{Array.isArray(f.current[m])||(f.current[m]=[]),Array.isArray(f.current[m][Y])||(f.current[m][Y]=[]),f.current[m][Y][Z]=ce},levelControlAriaLabel:typeof Oe=="function"?Oe(D):Oe,locale:l,minDate:g,maxDate:h,__preventFocus:k,nextIcon:M,previousIcon:R,nextLabel:E,previousLabel:N,onNext:Q,onPrevious:te,onLevelClick:ee,nextDisabled:ue,previousDisabled:G,hasNextLevel:de,getMonthControlProps:b,classNames:ne,styles:re,unstyled:se,__staticSelector:pe||"YearLevelGroup",withCellSpacing:L},m)});return A.jsx(ir,{classNames:ne,styles:re,__staticSelector:pe||"YearLevelGroup",ref:n,size:I,unstyled:se,...p,children:_})});qo.classes={...Fo.classes,...ir.classes},qo.displayName="@mantine/dates/YearLevelGroup";const H1={numberOfColumns:1},Ho=B.factory((i,n)=>{const r=B.useProps("MonthLevelGroup",H1,i),{month:s,locale:l,firstDayOfWeek:g,weekdayFormat:h,weekendDays:c,getDayProps:b,excludeDate:C,minDate:O,maxDate:L,renderDay:k,hideOutsideDates:M,hideWeekdays:R,getDayAriaLabel:E,__onDayClick:N,__onDayMouseEnter:Q,withCellSpacing:te,highlightToday:ee,withWeekNumbers:ue,__preventFocus:G,nextIcon:de,previousIcon:ne,nextLabel:re,previousLabel:se,onNext:pe,onPrevious:ie,onLevelClick:Ae,nextDisabled:Oe,previousDisabled:j,hasNextLevel:I,classNames:T,styles:p,unstyled:f,numberOfColumns:_,levelControlAriaLabel:v,monthLabelFormat:m,__staticSelector:D,__stopPropagation:Y,size:Z,static:ce,vars:he,...we}=r,J=ye.useRef([]),le=Array(_).fill(0).map((Ce,be)=>{const z=ke(s).add(be,"months").toDate();return A.jsx(Wo,{month:z,withNext:be===_-1,withPrevious:be===0,monthLabelFormat:m,__stopPropagation:Y,__onDayClick:N,__onDayMouseEnter:Q,__onDayKeyDown:(q,W)=>Sa({levelIndex:be,rowIndex:W.rowIndex,cellIndex:W.cellIndex,event:q,controlsRef:J}),__getDayRef:(q,W,K)=>{Array.isArray(J.current[be])||(J.current[be]=[]),Array.isArray(J.current[be][q])||(J.current[be][q]=[]),J.current[be][q][W]=K},levelControlAriaLabel:typeof v=="function"?v(z):v,locale:l,firstDayOfWeek:g,weekdayFormat:h,weekendDays:c,getDayProps:b,excludeDate:C,minDate:O,maxDate:L,renderDay:k,hideOutsideDates:M,hideWeekdays:R,getDayAriaLabel:E,__preventFocus:G,nextIcon:de,previousIcon:ne,nextLabel:re,previousLabel:se,onNext:pe,onPrevious:ie,onLevelClick:Ae,nextDisabled:Oe,previousDisabled:j,hasNextLevel:I,classNames:T,styles:p,unstyled:f,__staticSelector:D||"MonthLevelGroup",size:Z,static:ce,withCellSpacing:te,highlightToday:ee,withWeekNumbers:ue},be)});return A.jsx(ir,{classNames:T,styles:p,__staticSelector:D||"MonthLevelGroup",ref:n,size:Z,...we,children:le})});Ho.classes={...ir.classes,...Wo.classes},Ho.displayName="@mantine/dates/MonthLevelGroup";const Wc=i=>i==="range"?[null,null]:i==="multiple"?[]:null;function Oa({type:i,value:n,defaultValue:r,onChange:s,applyTimezone:l=!0}){const g=ye.useRef(i),h=fn(),[c,b,C]=Tt.useUncontrolled({value:Er("add",n,h.getTimezone(),!l),defaultValue:Er("add",r,h.getTimezone(),!l),finalValue:Wc(i),onChange:L=>{s==null||s(Er("remove",L,h.getTimezone(),!l))}});let O=c;if(g.current!==i){if(g.current=i,n===void 0)O=r!==void 0?r:Wc(i),b(O);else if(process.env.NODE_ENV==="development")switch(i){case"default":n!==null&&typeof n!="string"&&console.error("[@mantine/dates/use-uncontrolled-dates] Value must be type of `null` or `string`");break;case"multiple":n instanceof Array||console.error("[@mantine/dates/use-uncontrolled-dates] Value must be type of `string[]`");break;case"range":(!(n instanceof Array)||n.length!==2)&&console.error("[@mantine/dates/use-uncontrolled-dates] Value must be type of `[string, string]`");break}}return[O,b,C]}function Ta(i,n){return i?i==="month"?0:i==="year"?1:2:n||0}function G1(i){return i===0?"month":i===1?"year":"decade"}function ji(i,n,r){return G1(Tt.clamp(Ta(i,0),Ta(n,0),Ta(r,2)))}const V1={maxLevel:"decade",minLevel:"month",__updateDateOnYearSelect:!0,__updateDateOnMonthSelect:!0},Go=B.factory((i,n)=>{const r=B.useProps("Calendar",V1,i),{vars:s,maxLevel:l,minLevel:g,defaultLevel:h,level:c,onLevelChange:b,date:C,defaultDate:O,onDateChange:L,numberOfColumns:k,columnsToScroll:M,ariaLabels:R,nextLabel:E,previousLabel:N,onYearSelect:Q,onMonthSelect:te,onYearMouseEnter:ee,onMonthMouseEnter:ue,__updateDateOnYearSelect:G,__updateDateOnMonthSelect:de,firstDayOfWeek:ne,weekdayFormat:re,weekendDays:se,getDayProps:pe,excludeDate:ie,renderDay:Ae,hideOutsideDates:Oe,hideWeekdays:j,getDayAriaLabel:I,monthLabelFormat:T,nextIcon:p,previousIcon:f,__onDayClick:_,__onDayMouseEnter:v,withCellSpacing:m,highlightToday:D,withWeekNumbers:Y,monthsListFormat:Z,getMonthControlProps:ce,yearLabelFormat:he,yearsListFormat:we,getYearControlProps:J,decadeLabelFormat:le,classNames:Ce,styles:be,unstyled:z,minDate:q,maxDate:W,locale:K,__staticSelector:ae,size:Te,__preventFocus:u,__stopPropagation:d,onNextDecade:w,onPreviousDecade:P,onNextYear:U,onPreviousYear:X,onNextMonth:xe,onPreviousMonth:De,static:Re,__timezoneApplied:Se,...Le}=r,{resolvedClassNames:Pe,resolvedStyles:Ie}=B.useResolvedStylesApi({classNames:Ce,styles:be,props:r}),[et,Ge]=Tt.useUncontrolled({value:c?ji(c,g,l):void 0,defaultValue:h?ji(h,g,l):void 0,finalValue:ji(void 0,g,l),onChange:b}),[tt,pt]=Oa({type:"default",value:C,defaultValue:O,onChange:L,applyTimezone:!Se}),xt={__staticSelector:ae||"Calendar",styles:Ie,classNames:Pe,unstyled:z,size:Te},lt=fn(),St=M||k||1,Sn=new Date,Bn=q&&q>Sn?q:Sn,Dt=tt||Er("add",Bn,lt.getTimezone()),Qt=()=>{const at=ke(Dt).add(St,"month").toDate();xe==null||xe(at),pt(at)},Jt=()=>{const at=ke(Dt).subtract(St,"month").toDate();De==null||De(at),pt(at)},hn=()=>{const at=ke(Dt).add(St,"year").toDate();U==null||U(at),pt(at)},Rn=()=>{const at=ke(Dt).subtract(St,"year").toDate();X==null||X(at),pt(at)},ct=()=>{const at=ke(Dt).add(10*St,"year").toDate();w==null||w(at),pt(at)},Ct=()=>{const at=ke(Dt).subtract(10*St,"year").toDate();P==null||P(at),pt(at)};return A.jsxs(B.Box,{ref:n,size:Te,"data-calendar":!0,...Le,children:[et==="month"&&A.jsx(Ho,{month:Dt,minDate:q,maxDate:W,firstDayOfWeek:ne,weekdayFormat:re,weekendDays:se,getDayProps:pe,excludeDate:ie,renderDay:Ae,hideOutsideDates:Oe,hideWeekdays:j,getDayAriaLabel:I,onNext:Qt,onPrevious:Jt,hasNextLevel:l!=="month",onLevelClick:()=>Ge("year"),numberOfColumns:k,locale:K,levelControlAriaLabel:R==null?void 0:R.monthLevelControl,nextLabel:(R==null?void 0:R.nextMonth)??E,nextIcon:p,previousLabel:(R==null?void 0:R.previousMonth)??N,previousIcon:f,monthLabelFormat:T,__onDayClick:_,__onDayMouseEnter:v,__preventFocus:u,__stopPropagation:d,static:Re,withCellSpacing:m,highlightToday:D,withWeekNumbers:Y,...xt}),et==="year"&&A.jsx(qo,{year:Dt,numberOfColumns:k,minDate:q,maxDate:W,monthsListFormat:Z,getMonthControlProps:ce,locale:K,onNext:hn,onPrevious:Rn,hasNextLevel:l!=="month"&&l!=="year",onLevelClick:()=>Ge("decade"),levelControlAriaLabel:R==null?void 0:R.yearLevelControl,nextLabel:(R==null?void 0:R.nextYear)??E,nextIcon:p,previousLabel:(R==null?void 0:R.previousYear)??N,previousIcon:f,yearLabelFormat:he,__onControlMouseEnter:ue,__onControlClick:(at,qt)=>{de&&pt(qt),Ge(ji("month",g,l)),te==null||te(qt)},__preventFocus:u,__stopPropagation:d,withCellSpacing:m,...xt}),et==="decade"&&A.jsx(Yo,{decade:Dt,minDate:q,maxDate:W,yearsListFormat:we,getYearControlProps:J,locale:K,onNext:ct,onPrevious:Ct,numberOfColumns:k,nextLabel:(R==null?void 0:R.nextDecade)??E,nextIcon:p,previousLabel:(R==null?void 0:R.previousDecade)??N,previousIcon:f,decadeLabelFormat:le,__onControlMouseEnter:ee,__onControlClick:(at,qt)=>{G&&pt(qt),Ge(ji("year",g,l)),Q==null||Q(qt)},__preventFocus:u,__stopPropagation:d,withCellSpacing:m,...xt})]})});Go.classes={...Yo.classes,...qo.classes,...Ho.classes},Go.displayName="@mantine/dates/Calendar";function Z1(i){const{maxLevel:n,minLevel:r,defaultLevel:s,level:l,onLevelChange:g,nextIcon:h,previousIcon:c,date:b,defaultDate:C,onDateChange:O,numberOfColumns:L,columnsToScroll:k,ariaLabels:M,nextLabel:R,previousLabel:E,onYearSelect:N,onMonthSelect:Q,onYearMouseEnter:te,onMonthMouseEnter:ee,onNextMonth:ue,onPreviousMonth:G,onNextYear:de,onPreviousYear:ne,onNextDecade:re,onPreviousDecade:se,withCellSpacing:pe,highlightToday:ie,__updateDateOnYearSelect:Ae,__updateDateOnMonthSelect:Oe,withWeekNumbers:j,firstDayOfWeek:I,weekdayFormat:T,weekendDays:p,getDayProps:f,excludeDate:_,renderDay:v,hideOutsideDates:m,hideWeekdays:D,getDayAriaLabel:Y,monthLabelFormat:Z,monthsListFormat:ce,getMonthControlProps:he,yearLabelFormat:we,yearsListFormat:J,getYearControlProps:le,decadeLabelFormat:Ce,allowSingleDateInRange:be,allowDeselect:z,minDate:q,maxDate:W,locale:K,...ae}=i;return{calendarProps:{maxLevel:n,minLevel:r,defaultLevel:s,level:l,onLevelChange:g,nextIcon:h,previousIcon:c,date:b,defaultDate:C,onDateChange:O,numberOfColumns:L,columnsToScroll:k,ariaLabels:M,nextLabel:R,previousLabel:E,onYearSelect:N,onMonthSelect:Q,onYearMouseEnter:te,onMonthMouseEnter:ee,onNextMonth:ue,onPreviousMonth:G,onNextYear:de,onPreviousYear:ne,onNextDecade:re,onPreviousDecade:se,withCellSpacing:pe,highlightToday:ie,__updateDateOnYearSelect:Ae,__updateDateOnMonthSelect:Oe,withWeekNumbers:j,firstDayOfWeek:I,weekdayFormat:T,weekendDays:p,getDayProps:f,excludeDate:_,renderDay:v,hideOutsideDates:m,hideWeekdays:D,getDayAriaLabel:Y,monthLabelFormat:Z,monthsListFormat:ce,getMonthControlProps:he,yearLabelFormat:we,yearsListFormat:J,getYearControlProps:le,decadeLabelFormat:Ce,allowSingleDateInRange:be,allowDeselect:z,minDate:q,maxDate:W,locale:K},others:ae}}function K1(i,n){if(i===null)return null;const r=Er("add",new Date(i),n);return Number.isNaN(r.getTime())||!i?null:r}function Q1({date:i,maxDate:n,minDate:r}){return!(i==null||Number.isNaN(i.getTime())||n&&ke(i).isAfter(n,"date")||r&&ke(i).isBefore(r,"date"))}const J1={valueFormat:"MMMM D, YYYY",fixOnBlur:!0,preserveTime:!0},Vo=B.factory((i,n)=>{const r=B.useInputProps("DateInput",J1,i),{inputProps:s,wrapperProps:l,value:g,defaultValue:h,onChange:c,clearable:b,clearButtonProps:C,popoverProps:O,getDayProps:L,locale:k,valueFormat:M,dateParser:R,minDate:E,maxDate:N,fixOnBlur:Q,onFocus:te,onBlur:ee,onClick:ue,readOnly:G,name:de,form:ne,rightSection:re,unstyled:se,classNames:pe,styles:ie,allowDeselect:Ae,preserveTime:Oe,date:j,defaultDate:I,onDateChange:T,...p}=r,f=ye.useRef(null),_=ye.useRef(null),[v,m]=ye.useState(!1),{calendarProps:D,others:Y}=Z1(p),Z=fn(),he=R||(U=>{const X=ke(U,M,Z.getLocale(k)).toDate();return Number.isNaN(X.getTime())?K1(U,Z.getTimezone()):X}),we=Ae!==void 0?Ae:b,J=U=>U?ke(U).locale(Z.getLocale(k)).format(M):"",[le,Ce,be]=Oa({type:"default",value:g,defaultValue:h,onChange:c}),[z,q]=Oa({type:"default",value:j,defaultValue:h||I,onChange:T});ye.useEffect(()=>{be&&g!==null&&q(g)},[be,g]);const[W,K]=ye.useState(J(le));ye.useEffect(()=>{K(J(le))},[Z.getLocale(k)]);const ae=U=>{const X=U.currentTarget.value;if(K(X),m(!0),X.trim()===""&&b)Ce(null);else{const xe=he(X);Q1({date:xe,minDate:E,maxDate:N})&&(Ce(xe),q(xe))}},Te=U=>{ee==null||ee(U),m(!1),Q&&K(J(le))},u=U=>{te==null||te(U),m(!0)},d=U=>{ue==null||ue(U),m(!0)},w=U=>({...L==null?void 0:L(U),selected:ke(le).isSame(U,"day"),onClick:X=>{var Re,Se;(Se=L==null?void 0:(Re=L(U)).onClick)==null||Se.call(Re,X);const xe=Oe?t1(le,U):U,De=b&&we&&ke(le).isSame(U,"day")?null:xe;Ce(De),!be&&K(J(De)),m(!1)}}),P=re||(b&&le&&!G?A.jsx(B.CloseButton,{variant:"transparent",onMouseDown:U=>U.preventDefault(),tabIndex:-1,onClick:()=>{Ce(null),!be&&K(""),m(!1)},unstyled:se,size:s.size||"sm",...C}):null);return Tt.useDidUpdate(()=>{le!==void 0&&!v&&K(J(le))},[le]),Tt.useClickOutside(()=>m(!1),void 0,[f.current,_.current]),A.jsxs(A.Fragment,{children:[A.jsx(B.Input.Wrapper,{...l,__staticSelector:"DateInput",ref:f,children:A.jsxs(B.Popover,{opened:v,trapFocus:!1,position:"bottom-start",disabled:G,withRoles:!1,unstyled:se,...O,children:[A.jsx(B.Popover.Target,{children:A.jsx(B.Input,{"data-dates-input":!0,"data-read-only":G||void 0,autoComplete:"off",ref:n,value:W,onChange:ae,onBlur:Te,onFocus:u,onClick:d,readOnly:G,rightSection:P,...s,...Y,__staticSelector:"DateInput"})}),A.jsx(B.Popover.Dropdown,{onMouseDown:U=>U.preventDefault(),"data-dates-dropdown":!0,ref:_,children:A.jsx(Go,{__staticSelector:"DateInput",__timezoneApplied:!0,...D,classNames:pe,styles:ie,unstyled:se,__preventFocus:!0,minDate:E,maxDate:N,locale:k,getDayProps:w,size:s.size,date:z,onDateChange:q})})]})}),A.jsx(Tc,{name:de,form:ne,value:le,type:"default"})]})});Vo.classes={...B.Input.classes,...Go.classes},Vo.displayName="@mantine/dates/DateInput";function X1(i){const n=un.c(35),{fields:r,onClose:s,queryKey:l,apiPath:g,steps:h,onCreated:c}=i,[b,C]=ye.useState(0),[O,L]=ye.useState(!1),[k,M]=ye.useState(),{mutateAsync:R,isError:E,error:N,isPending:Q}=_c(g,l),{mutateAsync:te,isPending:ee}=xa(g,l),ue=Q||ee;let G;n[0]!==r?(G=new Set(r.filter(s0).map(o0)),n[0]=r,n[1]=G):G=n[1];let de;n[2]!==G?(de=[...G],n[2]=G,n[3]=de):de=n[3];const ne=de;let re;n[4]!==r?(re=r.reduce(i0,{}),n[4]=r,n[5]=re):re=n[5];let se;n[6]!==r?(se=r.filter(r0).reduce(t0,{}),n[6]=r,n[7]=se):se=n[7];let pe;n[8]!==re||n[9]!==se?(pe={mode:"uncontrolled",initialValues:re,validate:se},n[8]=re,n[9]=se,n[10]=pe):pe=n[10];const ie=Ai.useForm(pe);let Ae;n[11]!==ie?(Ae=function(f){return A.jsxs(ye.Fragment,{children:[(f.type===void 0||f.type=="text")&&A.jsx(B.TextInput,{label:f.column.title,placeholder:f.placeholder??"",...ie.getInputProps(f.id),type:f.id.includes("email")?"email":void 0},ie.key(f.id)),f.type==="number"&&A.jsx(B.NumberInput,{decimalSeparator:",",label:f.column.title,placeholder:f.placeholder??"",...ie.getInputProps(f.id)},ie.key(f.id)),f.type==="date"&&A.jsx(Vo,{label:f.column.title,placeholder:f.placeholder??"",valueFormat:"DD.MM.YYYY",clearable:!0,...ie.getInputProps(f.id)},ie.key(f.id)),f.type==="boolean"&&A.jsx(B.Checkbox,{mt:"md",label:f.column.title,...ie.getInputProps(f.id,{type:"checkbox"})},ie.key(f.id)),f.type==="custom"&&f.render&&f.render(ie.getValues(),ie.getInputProps(f.id).onChange,L,ie.setValues)]},f.id)},n[11]=ie,n[12]=Ae):Ae=n[12];const Oe=Ae;let j;n[13]!==(N==null?void 0:N.message)||n[14]!==(N==null?void 0:N.name)||n[15]!==E?(j=E&&A.jsx(B.Alert,{variant:"outline",color:"red",title:(N==null?void 0:N.name)??"Fehler aufgetreten",mb:"lg",children:(N==null?void 0:N.message)??"Fehler aufgetreten"}),n[13]=N==null?void 0:N.message,n[14]=N==null?void 0:N.name,n[15]=E,n[16]=j):j=n[16];let I;n[17]!==b||n[18]!==R||n[19]!==r||n[20]!==ie||n[21]!==O||n[22]!==E||n[23]!==ue||n[24]!==s||n[25]!==c||n[26]!==k||n[27]!==Oe||n[28]!==h||n[29]!==ne||n[30]!==te?(I=ue?A.jsxs(B.Stack,{gap:"md",children:[A.jsx(B.Skeleton,{height:40}),Array(r.length).fill(0).map(e0),A.jsxs(B.Group,{mt:"md",justify:"end",children:[A.jsx(B.Skeleton,{width:100,height:36}),A.jsx(B.Skeleton,{width:100,height:36})]})]}):A.jsxs("form",{onSubmit:ie.onSubmit(async p=>{if(k)await te({...p,id:k});else{const f=await R(p);M(f.id),c==null||c(f.id)}ne.length&&b<ne.length-1?E||C(b+1):E||(ie.setInitialValues(p),ie.reset(),s())}),children:[ne.length?A.jsx(B.Stepper,{active:b,size:"sm",children:ne.map(p=>A.jsx(B.Stepper.Step,{...h&&h[p-1]?{label:h[p-1].label}:{},children:r.filter(f=>f.step===p).map(f=>Oe(f))},p))}):r.map(p=>Oe(p)),!O&&A.jsxs(B.Group,{mt:"md",justify:"end",children:[A.jsx(B.Button,{onClick:()=>ne.length?b===0?s():C(b-1):s(),variant:"outline",children:ne.length?b===0?"Abbrechen":"Zurück":"Abbrechen"}),A.jsx(B.Button,{type:"submit",loading:ue,children:ne.length?b===ne.length-1?"Speichern":"Weiter":"Speichern"})]})]}),n[17]=b,n[18]=R,n[19]=r,n[20]=ie,n[21]=O,n[22]=E,n[23]=ue,n[24]=s,n[25]=c,n[26]=k,n[27]=Oe,n[28]=h,n[29]=ne,n[30]=te,n[31]=I):I=n[31];let T;return n[32]!==j||n[33]!==I?(T=A.jsxs(A.Fragment,{children:[j,I]}),n[32]=j,n[33]=I,n[34]=T):T=n[34],T}function e0(i,n){return A.jsx(B.Skeleton,{height:35},`skeleton-field-${n}`)}function t0(i,n){return i[n.id]=n0,i}function n0(i){return i?null:"Pflichtfeld"}function r0(i){return i.required}function i0(i,n){return i[n.id]=n.type==="boolean"?!1:n.defaultValue??"",i}function o0(i){return i.step}function s0(i){return typeof i.step=="number"}var[a0,Da]=B.createSafeContext("useDataTableColumnsContext must be used within DataTableColumnProvider"),Yc=i=>{let{children:n,columnsOrder:r,setColumnsOrder:s,columnsToggle:l,setColumnsToggle:g,resetColumnsOrder:h,resetColumnsToggle:c,setColumnWidth:b,resetColumnsWidth:C}=i,[O,L]=ye.useState(""),[k,M]=ye.useState("");return A.jsx(a0,{value:{sourceColumn:O,setSourceColumn:L,targetColumn:k,setTargetColumn:M,columnsToggle:l,setColumnsToggle:g,swapColumns:()=>{if(!r||!s||!O||!k)return;let R=r.indexOf(O),E=r.indexOf(k);if(R!==-1&&E!==-1){let N=r.splice(R,1)[0];r.splice(E,0,N),s([...r])}},resetColumnsOrder:h,resetColumnsToggle:c,setColumnWidth:b,resetColumnsWidth:C},children:n})};function u0(){return A.jsx("tr",{className:"mantine-datatable-empty-row",children:A.jsx("td",{})})}function l0(){return A.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[A.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),A.jsx("path",{d:"M12.983 8.978c3.955 -.182 7.017 -1.446 7.017 -2.978c0 -1.657 -3.582 -3 -8 -3c-1.661 0 -3.204 .19 -4.483 .515m-2.783 1.228c-.471 .382 -.734 .808 -.734 1.257c0 1.22 1.944 2.271 4.734 2.74"}),A.jsx("path",{d:"M4 6v6c0 1.657 3.582 3 8 3c.986 0 1.93 -.067 2.802 -.19m3.187 -.82c1.251 -.53 2.011 -1.228 2.011 -1.99v-6"}),A.jsx("path",{d:"M4 12v6c0 1.657 3.582 3 8 3c3.217 0 5.991 -.712 7.261 -1.74m.739 -3.26v-4"}),A.jsx("path",{d:"M3 3l18 18"})]})}function c0({icon:i,text:n,pt:r,pb:s,active:l,children:g}){return A.jsx(B.Center,{pt:r,pb:s,className:"mantine-datatable-empty-state","data-active":l||void 0,children:g||A.jsxs(A.Fragment,{children:[i||A.jsx("div",{className:"mantine-datatable-empty-state-icon",children:A.jsx(l0,{})}),A.jsx(B.Text,{component:"div",size:"sm",c:"dimmed",children:n})]})})}var f0=({key:i,columns:n=[],getInitialValueInEffect:r=!0})=>{function s(G,de){let ne=[];return G.forEach(re=>{de.find(se=>se.accessor===re)&&ne.push(re)}),de.forEach(re=>{ne.includes(re.accessor)||ne.push(re.accessor)}),ne}function l(G,de){let ne=[];return G.forEach(re=>{de.find(se=>se.accessor===re.accessor)&&ne.push(re)}),de.forEach(re=>{ne.find(se=>se.accessor===re.accessor)||ne.push({accessor:re.accessor,defaultToggle:re.defaultToggle||!0,toggleable:re.toggleable,toggled:re.defaultToggle===void 0?!0:re.defaultToggle})}),ne}function g(G,de){let ne=[];return G.forEach(re=>{let se=Object.keys(re)[0];de.find(pe=>pe.accessor===se)&&ne.push(re)}),de.forEach(re=>{let se=re.accessor;if(!ne.find(pe=>Object.keys(pe)[0]===se)){let pe={};pe[se]="",ne.push(pe)}}),ne}function h(){let[G,de]=Tt.useLocalStorage({key:i?`${i}-columns-order`:"",defaultValue:i?C:void 0,getInitialValueInEffect:r});function ne(pe){i&&de(pe)}if(!i)return[G,ne];let re=s(G,n),se=JSON.stringify(G);return JSON.stringify(re)!==se&&ne(re),[re,ne]}function c(){let[G,de]=Tt.useLocalStorage({key:i?`${i}-columns-toggle`:"",defaultValue:i?L:void 0,getInitialValueInEffect:r});function ne(pe){i&&de(pe)}if(!i)return[G,ne];let re=l(G,n),se=JSON.stringify(G);return JSON.stringify(re)!==se&&ne(re),[l(G,n),ne]}function b(){let[G,de]=Tt.useLocalStorage({key:i?`${i}-columns-width`:"",defaultValue:i?O:void 0,getInitialValueInEffect:r});function ne(pe){i&&de(pe)}if(!i)return[G,ne];let re=g(G,n),se=JSON.stringify(G);return JSON.stringify(re)!==se&&ne(re),[g(G,n),ne]}let C=n&&n.map(G=>G.accessor)||[],O=n&&n.map(G=>({[G.accessor]:G.width??"initial"}))||[],L=n&&n.map(G=>({accessor:G.accessor,defaultToggle:G.defaultToggle||!0,toggleable:G.toggleable,toggled:G.defaultToggle===void 0?!0:G.defaultToggle})),[k,M]=h(),[R,E]=c(),[N,Q]=b(),te=()=>M(C),ee=()=>{E(L)},ue=()=>Q(O);return{effectiveColumns:ye.useMemo(()=>k?k.map(G=>n.find(de=>de.accessor===G)).map(G=>{var de;return{...G,hidden:(G==null?void 0:G.hidden)||!((de=R.find(ne=>ne.accessor===(G==null?void 0:G.accessor)))!=null&&de.toggled)}}).map(G=>{var de;return{...G,width:(de=N.find(ne=>ne[G==null?void 0:G.accessor]))==null?void 0:de[G==null?void 0:G.accessor]}}):n,[n,k,R,N]),setColumnsOrder:M,columnsOrder:k,resetColumnsOrder:te,columnsToggle:R,setColumnsToggle:E,resetColumnsToggle:ee,columnsWidth:N,setColumnsWidth:Q,setColumnWidth:(G,de)=>{let ne=N.map(re=>re[G]?{[G]:de}:re);Q(ne)},resetColumnsWidth:ue}};function Qr(){var s;let[i]=Tt.useResizeObserver(),{width:n,height:r}=((s=i.current)==null?void 0:s.getBoundingClientRect())||{width:0,height:0};return{ref:i,width:n,height:r}}var h0=typeof window<"u"?ye.useLayoutEffect:ye.useEffect;function d0(i){let[n,r]=ye.useState(null),s=(i==null?void 0:i.join(":"))||"";return ye.useEffect(()=>{r(null)},[s]),{lastSelectionChangeIndex:n,setLastSelectionChangeIndex:r}}function p0(i,n){let r=()=>{n(i.map(l=>l.matches))},s=i.map(l=>{try{return l.addEventListener("change",r),()=>l.removeEventListener("change",r)}catch{return l.addListener(r),()=>l.removeListener(r)}});return()=>{s.forEach(l=>l())}}function g0(i,n){return n||(typeof window<"u"&&"matchMedia"in window?i.map(r=>window.matchMedia(r).matches):i.map(()=>!1))}function v0(i,n,{getInitialValueInEffect:r}={getInitialValueInEffect:!0}){let[s,l]=ye.useState(r?n:g0(i,n)),g=ye.useRef(null);return ye.useEffect(()=>{if("matchMedia"in window)return g.current=i.map(h=>window.matchMedia(h)),l(g.current.map(h=>h.matches)),p0(g.current,h=>{l(h)})},[i]),s}function m0(i){let n=B.useMantineTheme(),r=ye.useMemo(()=>i.map(l=>(typeof l=="function"?l(n):l)??""),[i,n]),s=ye.useMemo(()=>i.map(()=>!0),[i]);return v0(r,s)}function Zo(i){let n=B.useMantineTheme(),r=typeof i=="function"?i(n):i;return Tt.useMediaQuery(r||"",!0)}function Ea(i){let n=i.replace(/([a-z\d])([A-Z]+)/g,"$1 $2").replace(/\W|_/g," ").trim().toLowerCase();return`${n.charAt(0).toUpperCase()}${n.slice(1)}`}function y0(i,n,r){return i.filter(s=>!n.map(r).includes(r(s)))}function Ma(i,n){return i.filter((r,s,l)=>s===l.findIndex(g=>n(r)===n(g)))}function qc(i,n){return n?n.match(/([^[.\]])+/g).reduce((r,s)=>r&&r[s],i):void 0}function Bt(i,n){return typeof n=="string"?qc(i,n):n(i)}function w0({rowExpansion:i,records:n,idAccessor:r}){let s=[];if(i&&n){let{trigger:c,allowMultiple:b,initiallyExpanded:C}=i;n&&c==="always"?s=n.map(O=>Bt(O,r)):C&&(s=n.filter((O,L)=>C({record:O,index:L})).map(O=>Bt(O,r)),b||(s=[s[0]]))}let l,g,h=ye.useState(s);if(i){let{expandable:c,trigger:b,allowMultiple:C,collapseProps:O,content:L}=i;i.expanded?{recordIds:l,onRecordIdsChange:g}=i.expanded:[l,g]=h;let k=M=>g==null?void 0:g(l.filter(R=>R!==Bt(M,r)));return{expandOnClick:b!=="always"&&b!=="never",isRowExpanded:M=>b==="always"?!0:l.includes(Bt(M,r)),isExpandable:({record:M,index:R})=>c?c({record:M,index:R}):!0,expandRow:M=>{let R=Bt(M,r);g==null||g(C?[...l,R]:[R])},collapseRow:k,collapseProps:O,content:({record:M,index:R})=>()=>L({record:M,index:R,collapse:()=>k(M)})}}}function _0(i,n){let[r,s]=ye.useState(i),[l,g]=ye.useState(i),h=Tt.useTimeout(()=>s(!0),0),c=Tt.useTimeout(()=>g(!1),n||200);return ye.useEffect(()=>{i?(c.clear(),g(!0),h.start()):(h.clear(),s(!1),c.start())},[h,c,i]),{expanded:r,visible:l}}var Ra="mantine-datatable-nowrap",La="mantine-datatable-ellipsis",Jr="mantine-datatable-pointer-cursor",Hc="mantine-datatable-context-menu-cursor",b0="mantine-datatable-text-selection-disabled",Ko="mantine-datatable-text-align-left",Qo="mantine-datatable-text-align-center",Jo="mantine-datatable-text-align-right";function x0({className:i,style:n,visibleMediaQuery:r,title:s,noWrap:l,ellipsis:g,textAlign:h,width:c}){return Zo(r)?A.jsx(B.TableTh,{className:mt({[Ra]:l||g,[La]:g,[Ko]:h==="left",[Qo]:h==="center",[Jo]:h==="right"},i),style:[{width:c,minWidth:c,maxWidth:c},n],children:s}):null}function S0({shadowVisible:i}){return A.jsx(B.TableTh,{className:"mantine-datatable-footer-selector-placeholder-cell","data-shadow-visible":i||void 0})}var C0=ye.forwardRef(function({className:i,style:n,columns:r,defaultColumnProps:s,selectionVisible:l,selectorCellShadowVisible:g,scrollDiff:h},c){let b=h<0;return A.jsx(B.TableTfoot,{ref:c,className:mt("mantine-datatable-footer",i),style:[{position:b?"relative":"sticky",bottom:B.rem(b?h:0)},n],children:A.jsxs(B.TableTr,{children:[l&&A.jsx(S0,{shadowVisible:g}),r.map(({hidden:C,...O})=>{if(C)return null;let{accessor:L,visibleMediaQuery:k,textAlign:M,width:R,footer:E,footerClassName:N,footerStyle:Q,noWrap:te,ellipsis:ee}={...s,...O};return A.jsx(x0,{className:N,style:Q,visibleMediaQuery:k,textAlign:M,width:R,title:E,noWrap:te,ellipsis:ee},L)})]})})});function A0({group:{id:i,columns:n,title:r,textAlign:s,className:l,style:g}}){let h=ye.useMemo(()=>n.map(({visibleMediaQuery:C})=>C),[n]),c=m0(h),b=ye.useMemo(()=>n.filter(({hidden:C},O)=>!C&&(c==null?void 0:c[O])).length,[n,c]);return b>0?A.jsx(B.TableTh,{colSpan:b,className:mt("mantine-datatable-column-group-header-cell",{[Ko]:s==="left",[Qo]:s==="center",[Jo]:s==="right"},l),style:g,children:r??Ea(i)}):null}function O0(){return A.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[A.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),A.jsx("path",{d:"M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z"})]})}function T0(){return A.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[A.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),A.jsx("path",{d:"M20 3h-16a1 1 0 0 0 -1 1v2.227l.008 .223a3 3 0 0 0 .772 1.795l4.22 4.641v8.114a1 1 0 0 0 1.316 .949l6 -2l.108 -.043a1 1 0 0 0 .576 -.906v-6.586l4.121 -4.12a3 3 0 0 0 .879 -2.123v-2.171a1 1 0 0 0 -1 -1z",strokeWidth:"0",fill:"currentColor"})]})}function D0({children:i,isActive:n,filterPopoverProps:r}){let[s,{close:l,toggle:g}]=Tt.useDisclosure(!1),h=n?T0:O0,c=Tt.useClickOutside(l);return A.jsxs(B.Popover,{withArrow:!0,shadow:"md",opened:s,onClose:l,trapFocus:!0,...r,children:[A.jsx(B.PopoverTarget,{children:A.jsx(B.ActionIcon,{className:"mantine-datatable-header-cell-filter-action-icon","data-active":n||void 0,size:"sm",variant:"default",onClick:b=>{b.preventDefault(),g()},onKeyDown:b=>b.stopPropagation(),children:A.jsx(h,{})})}),A.jsx(B.PopoverDropdown,{ref:c,onClick:b=>b.stopPropagation(),onKeyDown:b=>b.stopPropagation(),children:typeof i=="function"?i({close:l}):i})]})}var E0=i=>{let{accessor:n,columnRef:r}=i,s=ye.useRef(null),[l,g]=ye.useState(0),{setColumnWidth:h}=Da(),c=O=>{O.preventDefault(),O.stopPropagation(),document.addEventListener("mousemove",b),document.addEventListener("mouseup",C),document.body.style.cursor="col-resize"},b=O=>{if(!r.current)return;let L=O.clientX-r.current.getBoundingClientRect().right,k=`${r.current.getBoundingClientRect().width+L}px`;r.current.style.width=k,h(n,r.current.style.width),g(-L)},C=()=>{r.current&&(document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",C),document.body.style.cursor="initial",h(n,r.current.style.width),g(0))};return A.jsx("div",{ref:s,onClick:O=>O.stopPropagation(),onMouseDown:c,onDoubleClick:()=>{r.current&&(r.current.style.maxWidth="initial",r.current.style.minWidth="initial",r.current.style.width="initial",h(n,"initial"))},className:"mantine-datatable-header-resizable-handle",style:{right:B.rem(l)}})};function M0(){return A.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[A.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),A.jsx("path",{d:"M12 5l0 14"}),A.jsx("path",{d:"M16 9l-4 -4"}),A.jsx("path",{d:"M8 9l4 -4"})]})}function R0(){return A.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[A.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),A.jsx("path",{d:"M8 7l4 -4l4 4"}),A.jsx("path",{d:"M8 17l4 4l4 -4"}),A.jsx("path",{d:"M12 3l0 18"})]})}function L0(){return A.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[A.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),A.jsx("path",{d:"M9 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),A.jsx("path",{d:"M9 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),A.jsx("path",{d:"M9 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),A.jsx("path",{d:"M15 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),A.jsx("path",{d:"M15 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),A.jsx("path",{d:"M15 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]})}function k0(){return A.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[A.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),A.jsx("path",{d:"M18 6l-12 12"}),A.jsx("path",{d:"M6 6l12 12"})]})}function I0({className:i,style:n,accessor:r,visibleMediaQuery:s,title:l,sortable:g,draggable:h,toggleable:c,resizable:b,sortIcons:C,textAlign:O,width:L,sortStatus:k,onSortStatusChange:M,filter:R,filterPopoverProps:E,filtering:N,sortKey:Q}){let{setSourceColumn:te,setTargetColumn:ee,swapColumns:ue,setColumnsToggle:G}=Da(),[de,ne]=ye.useState(!1),re=ye.useRef(null);if(!Zo(s))return null;let se=l??Ea(r),pe=typeof se=="string"?se:void 0,ie=g&&M?f=>{f!=null&&f.defaultPrevented||M({sortKey:Q,columnAccessor:r,direction:(k==null?void 0:k.columnAccessor)===r?k.direction==="asc"?"desc":"asc":(k==null?void 0:k.direction)??"asc"})}:void 0,Ae=f=>{f.stopPropagation(),te(r),ne(!1)},Oe=f=>{f.preventDefault(),ee(r),ne(!0)},j=()=>{ee(r),ne(!1),ue()},I=()=>{ne(!0)},T=()=>{ne(!1)},p=f=>{f.stopPropagation(),G(_=>_.map(v=>v.accessor===r?{...v,toggled:!1}:v))};return A.jsxs(B.TableTh,{className:mt({"mantine-datatable-header-cell-sortable":g,"mantine-datatable-header-cell-toggleable":c,"mantine-datatable-header-cell-resizable":b},i),style:[{width:L,...b?{minWidth:"1px"}:{minWidth:L,maxWidth:L}},n],role:g?"button":void 0,tabIndex:g?0:void 0,onClick:ie,onKeyDown:f=>f.key==="Enter"&&(ie==null?void 0:ie()),ref:re,children:[A.jsxs(B.Group,{className:"mantine-datatable-header-cell-sortable-group",justify:"space-between",wrap:"nowrap",children:[A.jsxs(B.Flex,{align:"center",w:"100%",className:mt({"mantine-datatable-header-cell-draggable":h,"mantine-datatable-header-cell-drag-over":de}),draggable:h,onDragStart:h?Ae:void 0,onDragEnter:h?I:void 0,onDragOver:h?Oe:void 0,onDrop:h?j:void 0,onDragLeave:h?T:void 0,children:[h?A.jsx(B.Center,{role:"img","aria-label":"Drag column",children:A.jsx(B.ActionIcon,{className:"mantine-datatable-header-cell-draggable-action-icon",variant:"subtle",size:"xs",onClick:f=>{f.stopPropagation()},children:A.jsx(L0,{})})}):null,A.jsx(B.Box,{className:mt("mantine-datatable-header-cell-sortable-text",{[Ko]:O==="left",[Qo]:O==="center",[Jo]:O==="right"},Ra,La),title:pe,children:se})]}),c?A.jsx(B.Center,{className:"mantine-datatable-header-cell-toggleable-icon",role:"img","aria-label":"Toggle column",children:A.jsx(B.ActionIcon,{size:"xs",variant:"light",onClick:p,children:A.jsx(k0,{})})}):null,g||(k==null?void 0:k.columnAccessor)===r?A.jsx(A.Fragment,{children:(k==null?void 0:k.columnAccessor)===r?A.jsx(B.Center,{className:mt("mantine-datatable-header-cell-sortable-icon",{"mantine-datatable-header-cell-sortable-icon-reversed":k.direction==="desc"}),role:"img","aria-label":`Sorted ${k.direction==="desc"?"descending":"ascending"}`,children:(C==null?void 0:C.sorted)||A.jsx(M0,{})}):A.jsx(B.Center,{className:"mantine-datatable-header-cell-sortable-unsorted-icon",role:"img","aria-label":"Not sorted",children:(C==null?void 0:C.unsorted)||A.jsx(R0,{})})}):null,R?A.jsx(D0,{filterPopoverProps:E,isActive:!!N,children:R}):null]}),b?A.jsx(E0,{accessor:r,columnRef:re}):null]})}var $0=ye.forwardRef(function({className:i,style:n,trigger:r,shadowVisible:s,checked:l,indeterminate:g,checkboxProps:h,onChange:c,rowSpan:b},C){let O=!h.disabled;return A.jsx(B.TableTh,{ref:C,className:mt("mantine-datatable-header-selector-cell",{[Jr]:r==="cell"&&O},i),style:n,rowSpan:b,"data-shadow-visible":s||void 0,onClick:r==="cell"&&O?c:void 0,children:A.jsx(B.Checkbox,{classNames:O?{input:Jr}:void 0,checked:l,indeterminate:g,onChange:c,...h,disabled:!(c||h.onChange)||h.disabled})})}),P0=ye.forwardRef(function({selectionColumnHeaderRef:i,className:n,style:r,sortStatus:s,sortIcons:l,onSortStatusChange:g,columns:h,defaultColumnProps:c,groups:b,selectionTrigger:C,selectionVisible:O,selectionChecked:L,selectionIndeterminate:k,onSelectionChange:M,selectionCheckboxProps:R,selectorCellShadowVisible:E,selectionColumnClassName:N,selectionColumnStyle:Q},te){let ee=O?A.jsx($0,{ref:i,className:N,style:Q,trigger:C,shadowVisible:E,checked:L,indeterminate:k,checkboxProps:R,onChange:M,rowSpan:b?2:void 0}):null,{columnsToggle:ue,setColumnsToggle:G}=Da(),[de,ne]=ye.useState(!1),re=h.some(ie=>ie.toggleable),se=re?Object.fromEntries(h.map(({accessor:ie,title:Ae})=>[ie,Ae??Ea(String(ie))])):void 0,pe=A.jsxs(B.TableThead,{className:mt("mantine-datatable-header",n),style:r,ref:te,onContextMenu:re?ie=>{ie.preventDefault(),ne(Ae=>!Ae)}:void 0,children:[b&&A.jsxs(B.TableTr,{children:[ee,b.map(ie=>A.jsx(A0,{group:ie},ie.id))]}),A.jsxs(B.TableTr,{children:[!b&&ee,h.map(({hidden:ie,...Ae},Oe)=>{if(ie)return null;let{accessor:j,visibleMediaQuery:I,textAlign:T,width:p,title:f,sortable:_,draggable:v,toggleable:m,resizable:D,titleClassName:Y,titleStyle:Z,filter:ce,filterPopoverProps:he,filtering:we,sortKey:J}={...c,...Ae};return A.jsx(I0,{accessor:j,className:Y,style:Z,visibleMediaQuery:I,textAlign:T,width:p,title:f,sortable:_,draggable:v,toggleable:m,resizable:D&&Oe<h.length-1,sortStatus:s,sortIcons:l,sortKey:J,onSortStatusChange:g,filter:ce,filterPopoverProps:he,filtering:we},j)})]})]});return re?A.jsxs(B.Popover,{position:"bottom",withArrow:!0,shadow:"md",opened:de,onChange:ne,children:[A.jsx(B.PopoverTarget,{children:pe}),A.jsx(B.PopoverDropdown,{children:A.jsx(B.Stack,{children:ue.filter(ie=>ie.toggleable).map(ie=>A.jsx(B.Group,{children:A.jsx(B.Checkbox,{classNames:{label:"mantine-datatable-header-column-toggle-checkbox-label"},size:"xs",label:se[ie.accessor],checked:ie.toggled,onChange:Ae=>{G(ue.map(Oe=>Oe.accessor===ie.accessor?{...Oe,toggled:Ae.currentTarget.checked}:Oe))}})},ie.accessor))})})]}):pe});function N0({pt:i,pb:n,fetching:r,customContent:s,backgroundBlur:l,size:g,type:h,color:c}){return A.jsx(B.Center,{pt:i,pb:n,className:mt("mantine-datatable-loader",{"mantine-datatable-loader-fetching":r}),style:[{backdropFilter:l?`blur(${l}px)`:void 0}],children:r&&(s||A.jsx(B.Loader,{size:g,type:h,color:c}))})}function bt(i,n,r){return i?B.parseThemeColor({color:typeof i=="object"?i[r]:i,theme:n}).value:void 0}function B0({theme:i,c:n,backgroundColor:r,borderColor:s,rowBorderColor:l,stripedColor:g,highlightOnHoverColor:h}){return{"--mantine-datatable-color-light":bt(n,i,"light"),"--mantine-datatable-color-dark":bt(n,i,"dark"),"--mantine-datatable-background-color-light":bt(r,i,"light"),"--mantine-datatable-background-color-dark":bt(r,i,"dark"),"--mantine-datatable-border-color-light":bt(s,i,"light"),"--mantine-datatable-border-color-dark":bt(s,i,"dark"),"--mantine-datatable-row-border-color-light":bt(l,i,"light"),"--mantine-datatable-row-border-color-dark":bt(l,i,"dark"),"--mantine-datatable-striped-color-light":bt(g,i,"light"),"--mantine-datatable-striped-color-dark":bt(g,i,"dark"),"--mantine-datatable-highlight-on-hover-color-light":bt(h,i,"light"),"--mantine-datatable-highlight-on-hover-color-dark":bt(h,i,"dark")}}function Gc({theme:i,paginationActiveTextColor:n,paginationActiveBackgroundColor:r}){return{"--mantine-datatable-pagination-active-text-color-light":bt(n,i,"light"),"--mantine-datatable-pagination-active-text-color-dark":bt(n,i,"dark"),"--mantine-datatable-pagination-active-background-color-light":bt(r,i,"light"),"--mantine-datatable-pagination-active-background-color-dark":bt(r,i,"dark")}}function j0({theme:i,color:n,backgroundColor:r}){return{"--mantine-datatable-row-color-light":bt(n,i,"light"),"--mantine-datatable-row-color-dark":bt(n,i,"dark"),"--mantine-datatable-row-background-color-light":bt(r,i,"light"),"--mantine-datatable-row-background-color-dark":bt(r,i,"dark")}}function U0(){return A.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[A.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),A.jsx("path",{d:"M8 9l4 -4l4 4"}),A.jsx("path",{d:"M16 15l-4 4l-4 -4"})]})}var Vc={xs:B.rem(22),sm:B.rem(26),md:B.rem(32),lg:B.rem(38),xl:B.rem(44)};function z0({size:i,label:n,values:r,value:s,activeTextColor:l,activeBackgroundColor:g,onChange:h}){return A.jsxs(B.Group,{gap:"xs",children:[A.jsx(B.Text,{component:"div",size:i,children:n}),A.jsxs(B.Menu,{withinPortal:!0,withArrow:!0,classNames:{arrow:"mantine-datatable-page-size-selector-menu-arrow"},children:[A.jsx(B.MenuTarget,{children:A.jsx(B.Button,{size:i,variant:"default",classNames:{section:"mantine-datatable-page-size-selector-button-icon"},rightSection:A.jsx(U0,{}),style:[{fontWeight:"normal"},c=>({height:Vc[i],paddingLeft:c.spacing[i],paddingRight:c.spacing[i]})],children:s})}),A.jsx(B.MenuDropdown,{children:r.map(c=>{let b=c===s;return A.jsx(B.MenuItem,{className:mt({"mantine-datatable-page-size-selector-active":b}),style:[{height:Vc[i]},b&&(l||g)?C=>Gc({theme:C,paginationActiveTextColor:l,paginationActiveBackgroundColor:g}):void 0],disabled:b,onClick:()=>h(c),children:A.jsx(B.Text,{component:"div",size:i,children:c})},c)})})]})]})}var F0=ye.forwardRef(function({className:i,style:n,fetching:r,page:s,onPageChange:l,paginationWithEdges:g,paginationWithControls:h,paginationActiveTextColor:c,paginationActiveBackgroundColor:b,paginationSize:C,loadingText:O,noRecordsText:L,paginationText:k,totalRecords:M,recordsPerPage:R,onRecordsPerPageChange:E,recordsPerPageLabel:N,recordsPerPageOptions:Q,recordsLength:te,horizontalSpacing:ee,paginationWrapBreakpoint:ue,getPaginationControlProps:G},de){let ne;if(M){let se=(s-1)*R+1,pe=se+(te||0)-1;ne=k({from:se,to:pe,totalRecords:M})}else ne=r?O:L;let re=Zo(({breakpoints:se})=>`(min-width: ${typeof ue=="number"?`${B.rem(ue)}rem`:se[ue]||ue})`);return A.jsxs(B.Box,{ref:de,px:ee??"xs",py:"xs",className:mt("mantine-datatable-pagination",i),style:[{flexDirection:re?"row":"column"},n],children:[A.jsx(B.Text,{component:"div",className:"mantine-datatable-pagination-text",size:C,children:ne}),Q&&A.jsx(z0,{activeTextColor:c,activeBackgroundColor:b,size:C,label:N,values:Q,value:R,onChange:E}),A.jsx(B.Pagination,{classNames:{root:mt("mantine-datatable-pagination-pages",{"mantine-datatable-pagination-pages-fetching":r||!te}),control:"mantine-datatable-pagination-pages-control"},style:c||b?se=>Gc({theme:se,paginationActiveTextColor:c,paginationActiveBackgroundColor:b}):void 0,withEdges:g,withControls:h,value:s,onChange:l,size:C,total:Math.ceil(M/R),getControlProps:G})]})});function W0({className:i,style:n,visibleMediaQuery:r,record:s,index:l,onClick:g,onDoubleClick:h,onContextMenu:c,noWrap:b,ellipsis:C,textAlign:O,width:L,accessor:k,render:M,defaultRender:R,customCellAttributes:E}){return Zo(r)?A.jsx(B.TableTd,{className:mt({[Ra]:b||C,[La]:C,[Jr]:g||h,[Hc]:c,[Ko]:O==="left",[Qo]:O==="center",[Jo]:O==="right"},i),style:[{width:L,minWidth:L,maxWidth:L},n],onClick:g,onDoubleClick:h,onContextMenu:c,...E==null?void 0:E(s,l),children:M?M(s,l):R?R(s,l,k):qc(s,k)}):null}function Y0({open:i,colSpan:n,content:r,collapseProps:s}){let{expanded:l,visible:g}=_0(i,s==null?void 0:s.transitionDuration);return g?A.jsxs(A.Fragment,{children:[A.jsx(B.TableTr,{}),A.jsx(B.TableTr,{children:A.jsx(B.TableTd,{className:"mantine-datatable-row-expansion-cell",colSpan:n,children:A.jsx(B.Collapse,{in:l,...s,children:A.jsx("div",{className:"mantine-datatable-row-expansion-cell-content",children:r()})})})})]}):null}function q0({className:i,style:n,record:r,index:s,trigger:l,onChange:g,withRightShadow:h,checkboxProps:c,getCheckboxProps:b,...C}){let O={...c,...b(r,s)},L=!C.disabled&&!O.disabled,k=M=>{M.stopPropagation(),l==="cell"&&L&&(g==null||g(M))};return A.jsx(B.TableTd,{className:mt("mantine-datatable-row-selector-cell",{[Jr]:l==="cell"&&L},i),style:n,"data-shadow-visible":h||void 0,onClick:k,children:A.jsx(B.Checkbox,{classNames:L?{input:Jr}:void 0,onChange:g,...C,...O})})}function H0({record:i,index:n,columns:r,defaultColumnProps:s,defaultColumnRender:l,selectionTrigger:g,selectionVisible:h,selectionChecked:c,onSelectionChange:b,isRecordSelectable:C,selectionCheckboxProps:O,getSelectionCheckboxProps:L,onClick:k,onDoubleClick:M,onContextMenu:R,onCellClick:E,onCellDoubleClick:N,onCellContextMenu:Q,expansion:te,customAttributes:ee,color:ue,backgroundColor:G,className:de,style:ne,selectorCellShadowVisible:re,selectionColumnClassName:se,selectionColumnStyle:pe,rowFactory:ie}){let Ae=A.jsxs(A.Fragment,{children:[h&&A.jsx(q0,{className:se,style:pe,record:i,index:n,trigger:g,withRightShadow:re,checked:c,disabled:!b||(C?!C(i,n):!1),onChange:b,checkboxProps:O,getCheckboxProps:L}),r.map(({hidden:I,hiddenContent:T,...p},f)=>{if(I||T)return null;let{accessor:_,visibleMediaQuery:v,textAlign:m,noWrap:D,ellipsis:Y,width:Z,render:ce,cellsClassName:he,cellsStyle:we,customCellAttributes:J}={...s,...p};return A.jsx(W0,{className:typeof he=="function"?he(i,n):he,style:we==null?void 0:we(i,n),visibleMediaQuery:v,record:i,index:n,onClick:E?le=>E({event:le,record:i,index:n,column:p,columnIndex:f}):void 0,onDoubleClick:N?le=>N({event:le,record:i,index:n,column:p,columnIndex:f}):void 0,onContextMenu:Q?le=>Q({event:le,record:i,index:n,column:p,columnIndex:f}):void 0,accessor:_,textAlign:m,noWrap:D,ellipsis:Y,width:Z,render:ce,defaultRender:l,customCellAttributes:J},_)})]}),Oe=te&&A.jsx(Y0,{colSpan:r.filter(({hidden:I})=>!I).length+(h?1:0),open:te.isRowExpanded(i),content:te.content({record:i,index:n}),collapseProps:te.collapseProps}),j=G0({record:i,index:n,selectionChecked:c,onClick:k,onDoubleClick:M,onContextMenu:R,expansion:te,customAttributes:ee,color:ue,backgroundColor:G,className:de,style:ne});return ie?ie({record:i,index:n,rowProps:j,children:Ae,expandedElement:Oe}):A.jsxs(A.Fragment,{children:[A.jsx(B.TableTr,{...j,children:Ae}),Oe]})}function G0({record:i,index:n,selectionChecked:r,onClick:s,onDoubleClick:l,onContextMenu:g,expansion:h,customAttributes:c,color:b,backgroundColor:C,className:O,style:L}){return{className:mt("mantine-datatable-row",{[Jr]:s||l||(h==null?void 0:h.isExpandable({record:i,index:n}))&&(h==null?void 0:h.expandOnClick)},{[Hc]:g},typeof O=="function"?O(i,n):O),"data-selected":r||void 0,onClick:k=>{if(h){let{isExpandable:M,isRowExpanded:R,expandOnClick:E,expandRow:N,collapseRow:Q}=h;M({record:i,index:n})&&E&&(R(i)?Q(i):N(i))}s==null||s({event:k,record:i,index:n})},onDoubleClick:l?k=>l({event:k,record:i,index:n}):void 0,onContextMenu:g?k=>g({event:k,record:i,index:n}):void 0,style:[b||C?k=>{let M=b==null?void 0:b(i,n),R=C==null?void 0:C(i,n);return j0({theme:k,color:M,backgroundColor:R})}:void 0,L==null?void 0:L(i,n)],...(c==null?void 0:c(i,n))??{}}}function V0({topShadowVisible:i,leftShadowVisible:n,leftShadowBehind:r,rightShadowVisible:s,rightShadowBehind:l,bottomShadowVisible:g,headerHeight:h,footerHeight:c,onScrollPositionChange:b,children:C,viewportRef:O,scrollAreaProps:L}){return A.jsxs(B.ScrollArea,{...L,viewportRef:O,classNames:{root:"mantine-datatable-scroll-area",scrollbar:"mantine-datatable-scroll-area-scrollbar",thumb:"mantine-datatable-scroll-area-thumb",corner:"mantine-datatable-scroll-area-corner"},onScrollPositionChange:b,children:[C,A.jsx(B.Box,{className:mt("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-top-shadow",{"mantine-datatable-scroll-area-shadow-visible":i}),style:{top:h?B.rem(h):0}}),A.jsx("div",{className:mt("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-left-shadow",{"mantine-datatable-scroll-area-shadow-visible":n,"mantine-datatable-scroll-area-shadow-behind":r})}),A.jsx("div",{className:mt("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-right-shadow",{"mantine-datatable-scroll-area-shadow-visible":s,"mantine-datatable-scroll-area-shadow-behind":l})}),A.jsx(B.Box,{className:mt("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-bottom-shadow",{"mantine-datatable-scroll-area-shadow-visible":g}),style:{bottom:c?B.rem(c+1):0}})]})}function Z0({withTableBorder:i,borderRadius:n,textSelectionDisabled:r,height:s="100%",minHeight:l,maxHeight:g,shadow:h,verticalAlign:c="center",fetching:b,columns:C,storeColumnsKey:O,groups:L,pinFirstColumn:k,pinLastColumn:M,defaultColumnProps:R,defaultColumnRender:E,idAccessor:N="id",records:Q,selectionTrigger:te="checkbox",selectedRecords:ee,onSelectedRecordsChange:ue,selectionColumnClassName:G,selectionColumnStyle:de,isRecordSelectable:ne,selectionCheckboxProps:re,allRecordsSelectionCheckboxProps:se={"aria-label":"Select all records"},getRecordSelectionCheckboxProps:pe=(Ht,jn)=>({"aria-label":`Select record ${jn+1}`}),sortStatus:ie,sortIcons:Ae,onSortStatusChange:Oe,horizontalSpacing:j,page:I,onPageChange:T,totalRecords:p,recordsPerPage:f,onRecordsPerPageChange:_,recordsPerPageOptions:v,recordsPerPageLabel:m="Records per page",paginationWithEdges:D,paginationWithControls:Y,paginationActiveTextColor:Z,paginationActiveBackgroundColor:ce,paginationSize:he="sm",paginationText:we=({from:Ht,to:jn,totalRecords:Un})=>`${Ht} - ${jn} / ${Un}`,paginationWrapBreakpoint:J="sm",getPaginationControlProps:le=Ht=>Ht==="previous"?{"aria-label":"Previous page"}:Ht==="next"?{"aria-label":"Next page"}:{},loaderBackgroundBlur:Ce,customLoader:be,loaderSize:z,loaderType:q,loaderColor:W,loadingText:K="...",emptyState:ae,noRecordsText:Te="No records",noRecordsIcon:u,highlightOnHover:d,striped:w,noHeader:P,onRowClick:U,onRowDoubleClick:X,onRowContextMenu:xe,onCellClick:De,onCellDoubleClick:Re,onCellContextMenu:Se,onScroll:Le,onScrollToTop:Pe,onScrollToBottom:Ie,onScrollToLeft:et,onScrollToRight:Ge,c:tt,backgroundColor:pt,borderColor:xt,rowBorderColor:lt,stripedColor:St,highlightOnHoverColor:Sn,rowColor:Bn,rowBackgroundColor:Dt,rowExpansion:Qt,rowClassName:Jt,rowStyle:hn,customRowAttributes:Rn,scrollViewportRef:ct,scrollAreaProps:Ct,tableRef:at,bodyRef:qt,m:si,my:ai,mx:fr,mt:ui,mb:Wi,ml:ka,mr:Ia,className:$a,classNames:Rt,style:Pa,styles:Lt,rowFactory:Na,tableWrapper:Yi,...qi}){let{ref:Ht,width:jn,height:Un}=Qr(),Ir=ye.useMemo(()=>(L==null?void 0:L.flatMap(Ze=>Ze.columns))??C,[C,L]),es=f0({key:O,columns:Ir}),{ref:Ba,height:hr}=Qr(),{ref:ja,width:dr,height:$r}=Qr(),{ref:Ua,height:za}=Qr(),{ref:ts,height:Hi}=Qr(),{ref:ns,width:Fa}=Qr(),Wa=Tt.useMergedRef(ja,at),Ya=Tt.useMergedRef(Ht,ct),[Gi,Vi]=ye.useState(!0),[li,Zi]=ye.useState(!0),[zn,rs]=ye.useState(!0),[Pr,Nr]=ye.useState(!0),is=w0({rowExpansion:Qt,records:Q,idAccessor:N}),Ki=ye.useCallback(()=>{var gr,vr;let Ze=((gr=Ht.current)==null?void 0:gr.scrollTop)??0,Xt=((vr=Ht.current)==null?void 0:vr.scrollLeft)??0;if(b||$r<=Un)Vi(!0),Zi(!0);else{let dn=Ze===0,en=$r-Ze-Un<1;Vi(dn),Zi(en),dn&&dn!==Gi&&(Pe==null||Pe()),en&&en!==li&&(Ie==null||Ie())}if(b||dr===jn)rs(!0),Nr(!0);else{let dn=Xt===0,en=dr-Xt-jn<1;rs(dn),Nr(en),dn&&dn!==zn&&(et==null||et()),en&&en!==Pr&&(Ge==null||Ge())}},[b,Ie,et,Ge,Pe,Un,Ht,jn,li,zn,Pr,Gi,$r,dr]);h0(Ki,[Ki]);let Qi=Tt.useDebouncedCallback(Ki,50),os=ye.useCallback(Ze=>{Le==null||Le(Ze),Qi()},[Qi,Le]),Ji=ye.useCallback(Ze=>{var Xt;(Xt=Ht.current)==null||Xt.scrollTo({top:0,left:0}),T(Ze)},[T,Ht]),ci=Q==null?void 0:Q.length,Xi=Q==null?void 0:Q.map(Ze=>Bt(Ze,N)),Ln=!!ee,Cn=ee==null?void 0:ee.map(Ze=>Bt(Ze,N)),Fn=Xi!==void 0&&Cn!==void 0&&Cn.length>0,pr=ne?Q==null?void 0:Q.filter(ne):Q,Br=pr==null?void 0:pr.map(Ze=>Bt(Ze,N)),fi=Fn&&Br.every(Ze=>Cn.includes(Ze)),ss=Fn&&Br.some(Ze=>Cn.includes(Ze)),as=ye.useCallback(()=>{ee&&ue&&ue(fi?ee.filter(Ze=>!Br.includes(Bt(Ze,N))):Ma([...ee,...pr],Ze=>Bt(Ze,N)))},[fi,N,ue,Br,pr,ee]),{lastSelectionChangeIndex:jr,setLastSelectionChangeIndex:us}=d0(Xi),eo=Ln&&!zn&&!k,qa={m:si,my:ai,mx:fr,mt:ui,mb:Wi,ml:ka,mr:Ia},Ha=ye.useCallback(({children:Ze})=>Yi?Yi({children:Ze}):Ze,[Yi]);return A.jsx(Yc,{...es,children:A.jsxs(B.Box,{...qa,className:mt("mantine-datatable",{"mantine-datatable-with-border":i},$a,Rt==null?void 0:Rt.root),style:[Ze=>({...B0({theme:Ze,c:tt,backgroundColor:pt,borderColor:xt,rowBorderColor:lt,stripedColor:St,highlightOnHoverColor:Sn}),borderRadius:Ze.radius[n]||n,boxShadow:Ze.shadows[h]||h,height:s,minHeight:l,maxHeight:g}),Pa,Lt==null?void 0:Lt.root,{position:"relative"}],children:[A.jsx(V0,{viewportRef:Ya,topShadowVisible:!Gi,leftShadowVisible:!zn,leftShadowBehind:Ln||!!k,rightShadowVisible:!Pr,rightShadowBehind:M,bottomShadowVisible:!li,headerHeight:hr,footerHeight:za,onScrollPositionChange:os,scrollAreaProps:Ct,children:A.jsx(Ha,{children:A.jsxs(B.Table,{ref:Wa,horizontalSpacing:j,className:mt("mantine-datatable-table",{[b0]:r,"mantine-datatable-vertical-align-top":c==="top","mantine-datatable-vertical-align-bottom":c==="bottom","mantine-datatable-last-row-border-bottom-visible":qi.withRowBorders&&$r<Un,"mantine-datatable-pin-last-column":M,"mantine-datatable-pin-last-column-scrolled":!Pr&&M,"mantine-datatable-selection-column-visible":Ln,"mantine-datatable-pin-first-column":k,"mantine-datatable-pin-first-column-scrolled":!zn&&k},Rt==null?void 0:Rt.table),style:{...Lt==null?void 0:Lt.table,"--mantine-datatable-selection-column-width":`${Fa}px`},"data-striped":ci&&w||void 0,"data-highlight-on-hover":d||void 0,...qi,children:[P?null:A.jsx(Yc,{...es,children:A.jsx(P0,{ref:Ba,selectionColumnHeaderRef:ns,className:Rt==null?void 0:Rt.header,style:Lt==null?void 0:Lt.header,columns:Ir,defaultColumnProps:R,groups:L,sortStatus:ie,sortIcons:Ae,onSortStatusChange:Oe,selectionTrigger:te,selectionVisible:Ln,selectionChecked:fi,selectionIndeterminate:ss&&!fi,onSelectionChange:as,selectionCheckboxProps:{...re,...se},selectorCellShadowVisible:eo,selectionColumnClassName:G,selectionColumnStyle:de})}),A.jsx("tbody",{ref:qt,children:ci?Q.map((Ze,Xt)=>{let gr=Bt(Ze,N),vr=(Cn==null?void 0:Cn.includes(gr))||!1,dn;return ue&&ee&&(dn=en=>{if(en.nativeEvent.shiftKey&&jr!==null){let mr=Q.filter(Xt>jr?(Wn,Yn)=>Yn>=jr&&Yn<=Xt&&(ne?ne(Wn,Yn):!0):(Wn,Yn)=>Yn>=Xt&&Yn<=jr&&(ne?ne(Wn,Yn):!0));ue(vr?y0(ee,mr,Wn=>Bt(Wn,N)):Ma([...ee,...mr],Wn=>Bt(Wn,N)))}else ue(vr?ee.filter(mr=>Bt(mr,N)!==gr):Ma([...ee,Ze],mr=>Bt(mr,N)));us(Xt)}),A.jsx(H0,{record:Ze,index:Xt,columns:Ir,defaultColumnProps:R,defaultColumnRender:E,selectionTrigger:te,selectionVisible:Ln,selectionChecked:vr,onSelectionChange:dn,isRecordSelectable:ne,selectionCheckboxProps:re,getSelectionCheckboxProps:pe,onClick:U,onDoubleClick:X,onCellClick:De,onCellDoubleClick:Re,onContextMenu:xe,onCellContextMenu:Se,expansion:is,color:Bn,backgroundColor:Dt,className:Jt,style:hn,customAttributes:Rn,selectorCellShadowVisible:eo,selectionColumnClassName:G,selectionColumnStyle:de,idAccessor:N,rowFactory:Na},gr)}):A.jsx(u0,{})}),Ir.some(({footer:Ze})=>Ze)&&A.jsx(C0,{ref:Ua,className:Rt==null?void 0:Rt.footer,style:Lt==null?void 0:Lt.footer,columns:Ir,defaultColumnProps:R,selectionVisible:Ln,selectorCellShadowVisible:eo,scrollDiff:$r-Un})]})})}),I&&A.jsx(F0,{ref:ts,className:Rt==null?void 0:Rt.pagination,style:Lt==null?void 0:Lt.pagination,horizontalSpacing:j,fetching:b,page:I,onPageChange:Ji,totalRecords:p,recordsPerPage:f,onRecordsPerPageChange:_,recordsPerPageOptions:v,recordsPerPageLabel:m,paginationWithEdges:D,paginationWithControls:Y,paginationActiveTextColor:Z,paginationActiveBackgroundColor:ce,paginationSize:he,paginationText:we,paginationWrapBreakpoint:J,getPaginationControlProps:le,noRecordsText:Te,loadingText:K,recordsLength:ci}),A.jsx(N0,{pt:hr,pb:Hi,fetching:b,backgroundBlur:Ce,customContent:be,size:z,type:q,color:W}),A.jsx(c0,{pt:hr,pb:Hi,icon:u,text:Te,active:!b&&!ci,children:ae})]})})}var K0=ye.forwardRef(function({children:i,isDragging:n,...r},s){let l=ye.useRef(null),g=Tt.useMergedRef(l,s);return ye.useEffect(()=>{if(!l.current||!n)return;let h=l.current.parentElement.parentElement.children[0].children[0];for(let c=0;c<h.children.length;c++){let b=h.children[c].getBoundingClientRect(),C=l.current.children[c];C.style.height=b.height+"px",C.style.width=b.width+"px",C.style.minWidth=b.width+"px",C.style.maxWidth=b.width+"px"}},[n,i]),A.jsx(B.TableTr,{"data-is-dragging":n,ref:g,...r,children:i})});K0.displayName="DataTableDraggableRow";var Ui={exports:{}};/**
113
+ */var uc;function xg(){return uc||(uc=1,function(i,n){(function(r){var s;if(i.exports=r(),s=!0,!s){var l=window.Cookies,p=window.Cookies=r();p.noConflict=function(){return window.Cookies=l,p}}})(function(){function r(){for(var p=0,f={};p<arguments.length;p++){var c=arguments[p];for(var b in c)f[b]=c[b]}return f}function s(p){return p.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function l(p){function f(){}function c(C,O,L){if(!(typeof document>"u")){L=r({path:"/"},f.defaults,L),typeof L.expires=="number"&&(L.expires=new Date(new Date*1+L.expires*864e5)),L.expires=L.expires?L.expires.toUTCString():"";try{var k=JSON.stringify(O);/^[\{\[]/.test(k)&&(O=k)}catch{}O=p.write?p.write(O,C):encodeURIComponent(String(O)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),C=encodeURIComponent(String(C)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var M="";for(var R in L)L[R]&&(M+="; "+R,L[R]!==!0&&(M+="="+L[R].split(";")[0]));return document.cookie=C+"="+O+M}}function b(C,O){if(!(typeof document>"u")){for(var L={},k=document.cookie?document.cookie.split("; "):[],M=0;M<k.length;M++){var R=k[M].split("="),E=R.slice(1).join("=");!O&&E.charAt(0)==='"'&&(E=E.slice(1,-1));try{var N=s(R[0]);if(E=(p.read||p)(E,N)||s(E),O)try{E=JSON.parse(E)}catch{}if(L[N]=E,C===N)break}catch{}}return C?L[C]:L}}return f.set=c,f.get=function(C){return b(C,!1)},f.getJSON=function(C){return b(C,!0)},f.remove=function(C,O){c(C,"",r(O,{expires:-1}))},f.defaults={},f.withConverter=l,f}return l(function(){})})}(ac)),ac.exports}xg();function Sg(){if(!window.MantineCognitoUserPool)throw new Error("Cognito Userpool has not been initialized.");return window.MantineCognitoUserPool}function Cg(){return Sg().getCurrentUser()}function Ag(){return new Promise((i,n)=>{const r=Cg();r===null&&n(null),r==null||r.getSession((s,l)=>{if(s!==null||l===null)return n(null);i({session:l,authenticatedUser:r})})})}async function Og(){const{session:i}=await Ag();return i==null?void 0:i.getIdToken().getJwtToken()}ye.createContext(void 0);var Tg="undefined",Dg="object",Do="browser",lc="cpu",cc="device",ga="engine",Eo="os",tr="name",Mo="type",va="vendor",xn="version",ma="architecture",ya="major",wa="model",Eg="console",Mg="mobile",Rg="tablet",Lg="smarttv",kg="wearable",Ig="embedded",$g=typeof window!==Tg,_a=$g&&window.navigator?window.navigator:void 0;_a&&_a.userAgentData&&_a.userAgentData;var Ro=function(i){for(var n={},r=0;r<i.length;r++)n[i[r].toUpperCase()]=i[r];return n},Lo=function(i){for(var n in i){var r=i[n];typeof r==Dg&&r.length==2?this[r[0]]=r[1]:this[r]=void 0}return this};(function(){var i={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}};return Lo.call(i.init,[[Do,[tr,xn,ya,Mo]],[lc,[ma]],[cc,[Mo,wa,va]],[ga,[tr,xn]],[Eo,[tr,xn]]]),Lo.call(i.isIgnore,[[Do,[xn,ya]],[ga,[xn]],[Eo,[xn]]]),Lo.call(i.isIgnoreRgx,[[Do,/ ?browser$/i],[Eo,/ ?os$/i]]),Lo.call(i.toString,[[Do,[tr,xn]],[lc,[ma]],[cc,[va,wa]],[ga,[tr,xn]],[Eo,[tr,xn]]]),i})(),Ro([tr,xn,ya,Mo]),Ro([ma]),Ro([wa,va,Mo,Eg,Mg,Lg,Rg,kg,Ig]),Ro([tr,xn]);var ba={exports:{}},Pg=ba.exports,fc;function Ng(){return fc||(fc=1,function(i,n){(function(r,s){i.exports=s()})(Pg,()=>(()=>{var r={873:(f,c)=>{var b,C,O=function(){var L=function(j,I){var A=j,v=Q[I],d=null,_=0,g=null,m=[],T={},Y=function(z,q){d=function(W){for(var K=new Array(W),ue=0;ue<W;ue+=1){K[ue]=new Array(W);for(var Te=0;Te<W;Te+=1)K[ue][Te]=null}return K}(_=4*A+17),Z(0,0),Z(_-7,0),Z(0,_-7),de(),ce(),J(z,q),A>=7&&we(z),g==null&&(g=Ce(A,v,m)),le(g,q)},Z=function(z,q){for(var W=-1;W<=7;W+=1)if(!(z+W<=-1||_<=z+W))for(var K=-1;K<=7;K+=1)q+K<=-1||_<=q+K||(d[z+W][q+K]=0<=W&&W<=6&&(K==0||K==6)||0<=K&&K<=6&&(W==0||W==6)||2<=W&&W<=4&&2<=K&&K<=4)},ce=function(){for(var z=8;z<_-8;z+=1)d[z][6]==null&&(d[z][6]=z%2==0);for(var q=8;q<_-8;q+=1)d[6][q]==null&&(d[6][q]=q%2==0)},de=function(){for(var z=te.getPatternPosition(A),q=0;q<z.length;q+=1)for(var W=0;W<z.length;W+=1){var K=z[q],ue=z[W];if(d[K][ue]==null)for(var Te=-2;Te<=2;Te+=1)for(var u=-2;u<=2;u+=1)d[K+Te][ue+u]=Te==-2||Te==2||u==-2||u==2||Te==0&&u==0}},we=function(z){for(var q=te.getBCHTypeNumber(A),W=0;W<18;W+=1){var K=!z&&(q>>W&1)==1;d[Math.floor(W/3)][W%3+_-8-3]=K}for(W=0;W<18;W+=1)K=!z&&(q>>W&1)==1,d[W%3+_-8-3][Math.floor(W/3)]=K},J=function(z,q){for(var W=v<<3|q,K=te.getBCHTypeInfo(W),ue=0;ue<15;ue+=1){var Te=!z&&(K>>ue&1)==1;ue<6?d[ue][8]=Te:ue<8?d[ue+1][8]=Te:d[_-15+ue][8]=Te}for(ue=0;ue<15;ue+=1)Te=!z&&(K>>ue&1)==1,ue<8?d[8][_-ue-1]=Te:ue<9?d[8][15-ue-1+1]=Te:d[8][15-ue-1]=Te;d[_-8][8]=!z},le=function(z,q){for(var W=-1,K=_-1,ue=7,Te=0,u=te.getMaskFunction(q),h=_-1;h>0;h-=2)for(h==6&&(h-=1);;){for(var w=0;w<2;w+=1)if(d[K][h-w]==null){var P=!1;Te<z.length&&(P=(z[Te]>>>ue&1)==1),u(K,h-w)&&(P=!P),d[K][h-w]=P,(ue-=1)==-1&&(Te+=1,ue=7)}if((K+=W)<0||_<=K){K-=W,W=-W;break}}},Ce=function(z,q,W){for(var K=H.getRSBlocks(z,q),ue=fe(),Te=0;Te<W.length;Te+=1){var u=W[Te];ue.put(u.getMode(),4),ue.put(u.getLength(),te.getLengthInBits(u.getMode(),z)),u.write(ue)}var h=0;for(Te=0;Te<K.length;Te+=1)h+=K[Te].dataCount;if(ue.getLengthInBits()>8*h)throw"code length overflow. ("+ue.getLengthInBits()+">"+8*h+")";for(ue.getLengthInBits()+4<=8*h&&ue.put(0,4);ue.getLengthInBits()%8!=0;)ue.putBit(!1);for(;!(ue.getLengthInBits()>=8*h||(ue.put(236,8),ue.getLengthInBits()>=8*h));)ue.put(17,8);return function(w,P){for(var U=0,ne=0,xe=0,De=new Array(P.length),Re=new Array(P.length),Se=0;Se<P.length;Se+=1){var Le=P[Se].dataCount,Pe=P[Se].totalCount-Le;ne=Math.max(ne,Le),xe=Math.max(xe,Pe),De[Se]=new Array(Le);for(var Ie=0;Ie<De[Se].length;Ie+=1)De[Se][Ie]=255&w.getBuffer()[Ie+U];U+=Le;var et=te.getErrorCorrectPolynomial(Pe),Ge=ae(De[Se],et.getLength()-1).mod(et);for(Re[Se]=new Array(et.getLength()-1),Ie=0;Ie<Re[Se].length;Ie+=1){var tt=Ie+Ge.getLength()-Re[Se].length;Re[Se][Ie]=tt>=0?Ge.getAt(tt):0}}var pt=0;for(Ie=0;Ie<P.length;Ie+=1)pt+=P[Ie].totalCount;var xt=new Array(pt),lt=0;for(Ie=0;Ie<ne;Ie+=1)for(Se=0;Se<P.length;Se+=1)Ie<De[Se].length&&(xt[lt]=De[Se][Ie],lt+=1);for(Ie=0;Ie<xe;Ie+=1)for(Se=0;Se<P.length;Se+=1)Ie<Re[Se].length&&(xt[lt]=Re[Se][Ie],lt+=1);return xt}(ue,K)};T.addData=function(z,q){var W=null;switch(q=q||"Byte"){case"Numeric":W=ee(z);break;case"Alphanumeric":W=re(z);break;case"Byte":W=se(z);break;case"Kanji":W=pe(z);break;default:throw"mode:"+q}m.push(W),g=null},T.isDark=function(z,q){if(z<0||_<=z||q<0||_<=q)throw z+","+q;return d[z][q]},T.getModuleCount=function(){return _},T.make=function(){if(A<1){for(var z=1;z<40;z++){for(var q=H.getRSBlocks(z,v),W=fe(),K=0;K<m.length;K++){var ue=m[K];W.put(ue.getMode(),4),W.put(ue.getLength(),te.getLengthInBits(ue.getMode(),z)),ue.write(W)}var Te=0;for(K=0;K<q.length;K++)Te+=q[K].dataCount;if(W.getLengthInBits()<=8*Te)break}A=z}Y(!1,function(){for(var u=0,h=0,w=0;w<8;w+=1){Y(!0,w);var P=te.getLostPoint(T);(w==0||u>P)&&(u=P,h=w)}return h}())},T.createTableTag=function(z,q){z=z||2;var W="";W+='<table style="',W+=" border-width: 0px; border-style: none;",W+=" border-collapse: collapse;",W+=" padding: 0px; margin: "+(q=q===void 0?4*z:q)+"px;",W+='">',W+="<tbody>";for(var K=0;K<T.getModuleCount();K+=1){W+="<tr>";for(var ue=0;ue<T.getModuleCount();ue+=1)W+='<td style="',W+=" border-width: 0px; border-style: none;",W+=" border-collapse: collapse;",W+=" padding: 0px; margin: 0px;",W+=" width: "+z+"px;",W+=" height: "+z+"px;",W+=" background-color: ",W+=T.isDark(K,ue)?"#000000":"#ffffff",W+=";",W+='"/>';W+="</tr>"}return(W+="</tbody>")+"</table>"},T.createSvgTag=function(z,q,W,K){var ue={};typeof arguments[0]=="object"&&(z=(ue=arguments[0]).cellSize,q=ue.margin,W=ue.alt,K=ue.title),z=z||2,q=q===void 0?4*z:q,(W=typeof W=="string"?{text:W}:W||{}).text=W.text||null,W.id=W.text?W.id||"qrcode-description":null,(K=typeof K=="string"?{text:K}:K||{}).text=K.text||null,K.id=K.text?K.id||"qrcode-title":null;var Te,u,h,w,P=T.getModuleCount()*z+2*q,U="";for(w="l"+z+",0 0,"+z+" -"+z+",0 0,-"+z+"z ",U+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',U+=ue.scalable?"":' width="'+P+'px" height="'+P+'px"',U+=' viewBox="0 0 '+P+" "+P+'" ',U+=' preserveAspectRatio="xMinYMin meet"',U+=K.text||W.text?' role="img" aria-labelledby="'+be([K.id,W.id].join(" ").trim())+'"':"",U+=">",U+=K.text?'<title id="'+be(K.id)+'">'+be(K.text)+"</title>":"",U+=W.text?'<description id="'+be(W.id)+'">'+be(W.text)+"</description>":"",U+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',U+='<path d="',u=0;u<T.getModuleCount();u+=1)for(h=u*z+q,Te=0;Te<T.getModuleCount();Te+=1)T.isDark(u,Te)&&(U+="M"+(Te*z+q)+","+h+w);return(U+='" stroke="transparent" fill="black"/>')+"</svg>"},T.createDataURL=function(z,q){z=z||2,q=q===void 0?4*z:q;var W=T.getModuleCount()*z+2*q,K=q,ue=W-q;return Oe(W,W,function(Te,u){if(K<=Te&&Te<ue&&K<=u&&u<ue){var h=Math.floor((Te-K)/z),w=Math.floor((u-K)/z);return T.isDark(w,h)?0:1}return 1})},T.createImgTag=function(z,q,W){z=z||2,q=q===void 0?4*z:q;var K=T.getModuleCount()*z+2*q,ue="";return ue+="<img",ue+=' src="',ue+=T.createDataURL(z,q),ue+='"',ue+=' width="',ue+=K,ue+='"',ue+=' height="',ue+=K,ue+='"',W&&(ue+=' alt="',ue+=be(W),ue+='"'),ue+"/>"};var be=function(z){for(var q="",W=0;W<z.length;W+=1){var K=z.charAt(W);switch(K){case"<":q+="&lt;";break;case">":q+="&gt;";break;case"&":q+="&amp;";break;case'"':q+="&quot;";break;default:q+=K}}return q};return T.createASCII=function(z,q){if((z=z||1)<2)return function(De){De=De===void 0?2:De;var Re,Se,Le,Pe,Ie,et=1*T.getModuleCount()+2*De,Ge=De,tt=et-De,pt={"██":"█","█ ":"▀"," █":"▄"," ":" "},xt={"██":"▀","█ ":"▀"," █":" "," ":" "},lt="";for(Re=0;Re<et;Re+=2){for(Le=Math.floor((Re-Ge)/1),Pe=Math.floor((Re+1-Ge)/1),Se=0;Se<et;Se+=1)Ie="█",Ge<=Se&&Se<tt&&Ge<=Re&&Re<tt&&T.isDark(Le,Math.floor((Se-Ge)/1))&&(Ie=" "),Ge<=Se&&Se<tt&&Ge<=Re+1&&Re+1<tt&&T.isDark(Pe,Math.floor((Se-Ge)/1))?Ie+=" ":Ie+="█",lt+=De<1&&Re+1>=tt?xt[Ie]:pt[Ie];lt+=`
114
+ `}return et%2&&De>0?lt.substring(0,lt.length-et-1)+Array(et+1).join("▀"):lt.substring(0,lt.length-1)}(q);z-=1,q=q===void 0?2*z:q;var W,K,ue,Te,u=T.getModuleCount()*z+2*q,h=q,w=u-q,P=Array(z+1).join("██"),U=Array(z+1).join(" "),ne="",xe="";for(W=0;W<u;W+=1){for(ue=Math.floor((W-h)/z),xe="",K=0;K<u;K+=1)Te=1,h<=K&&K<w&&h<=W&&W<w&&T.isDark(ue,Math.floor((K-h)/z))&&(Te=0),xe+=Te?P:U;for(ue=0;ue<z;ue+=1)ne+=xe+`
115
+ `}return ne.substring(0,ne.length-1)},T.renderTo2dContext=function(z,q){q=q||2;for(var W=T.getModuleCount(),K=0;K<W;K++)for(var ue=0;ue<W;ue++)z.fillStyle=T.isDark(K,ue)?"black":"white",z.fillRect(K*q,ue*q,q,q)},T};L.stringToBytes=(L.stringToBytesFuncs={default:function(j){for(var I=[],A=0;A<j.length;A+=1){var v=j.charCodeAt(A);I.push(255&v)}return I}}).default,L.createStringToBytes=function(j,I){var A=function(){for(var d=Ae(j),_=function(){var ce=d.read();if(ce==-1)throw"eof";return ce},g=0,m={};;){var T=d.read();if(T==-1)break;var Y=_(),Z=_()<<8|_();m[String.fromCharCode(T<<8|Y)]=Z,g+=1}if(g!=I)throw g+" != "+I;return m}(),v=63;return function(d){for(var _=[],g=0;g<d.length;g+=1){var m=d.charCodeAt(g);if(m<128)_.push(m);else{var T=A[d.charAt(g)];typeof T=="number"?(255&T)==T?_.push(T):(_.push(T>>>8),_.push(255&T)):_.push(v)}}return _}};var k,M,R,E,N,Q={L:1,M:0,Q:3,H:2},te=(k=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],M=1335,R=7973,N=function(j){for(var I=0;j!=0;)I+=1,j>>>=1;return I},(E={}).getBCHTypeInfo=function(j){for(var I=j<<10;N(I)-N(M)>=0;)I^=M<<N(I)-N(M);return 21522^(j<<10|I)},E.getBCHTypeNumber=function(j){for(var I=j<<12;N(I)-N(R)>=0;)I^=R<<N(I)-N(R);return j<<12|I},E.getPatternPosition=function(j){return k[j-1]},E.getMaskFunction=function(j){switch(j){case 0:return function(I,A){return(I+A)%2==0};case 1:return function(I,A){return I%2==0};case 2:return function(I,A){return A%3==0};case 3:return function(I,A){return(I+A)%3==0};case 4:return function(I,A){return(Math.floor(I/2)+Math.floor(A/3))%2==0};case 5:return function(I,A){return I*A%2+I*A%3==0};case 6:return function(I,A){return(I*A%2+I*A%3)%2==0};case 7:return function(I,A){return(I*A%3+(I+A)%2)%2==0};default:throw"bad maskPattern:"+j}},E.getErrorCorrectPolynomial=function(j){for(var I=ae([1],0),A=0;A<j;A+=1)I=I.multiply(ae([1,X.gexp(A)],0));return I},E.getLengthInBits=function(j,I){if(1<=I&&I<10)switch(j){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+j}else if(I<27)switch(j){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+j}else{if(!(I<41))throw"type:"+I;switch(j){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+j}}},E.getLostPoint=function(j){for(var I=j.getModuleCount(),A=0,v=0;v<I;v+=1)for(var d=0;d<I;d+=1){for(var _=0,g=j.isDark(v,d),m=-1;m<=1;m+=1)if(!(v+m<0||I<=v+m))for(var T=-1;T<=1;T+=1)d+T<0||I<=d+T||m==0&&T==0||g==j.isDark(v+m,d+T)&&(_+=1);_>5&&(A+=3+_-5)}for(v=0;v<I-1;v+=1)for(d=0;d<I-1;d+=1){var Y=0;j.isDark(v,d)&&(Y+=1),j.isDark(v+1,d)&&(Y+=1),j.isDark(v,d+1)&&(Y+=1),j.isDark(v+1,d+1)&&(Y+=1),Y!=0&&Y!=4||(A+=3)}for(v=0;v<I;v+=1)for(d=0;d<I-6;d+=1)j.isDark(v,d)&&!j.isDark(v,d+1)&&j.isDark(v,d+2)&&j.isDark(v,d+3)&&j.isDark(v,d+4)&&!j.isDark(v,d+5)&&j.isDark(v,d+6)&&(A+=40);for(d=0;d<I;d+=1)for(v=0;v<I-6;v+=1)j.isDark(v,d)&&!j.isDark(v+1,d)&&j.isDark(v+2,d)&&j.isDark(v+3,d)&&j.isDark(v+4,d)&&!j.isDark(v+5,d)&&j.isDark(v+6,d)&&(A+=40);var Z=0;for(d=0;d<I;d+=1)for(v=0;v<I;v+=1)j.isDark(v,d)&&(Z+=1);return A+Math.abs(100*Z/I/I-50)/5*10},E),X=function(){for(var j=new Array(256),I=new Array(256),A=0;A<8;A+=1)j[A]=1<<A;for(A=8;A<256;A+=1)j[A]=j[A-4]^j[A-5]^j[A-6]^j[A-8];for(A=0;A<255;A+=1)I[j[A]]=A;return{glog:function(v){if(v<1)throw"glog("+v+")";return I[v]},gexp:function(v){for(;v<0;)v+=255;for(;v>=256;)v-=255;return j[v]}}}();function ae(j,I){if(j.length===void 0)throw j.length+"/"+I;var A=function(){for(var d=0;d<j.length&&j[d]==0;)d+=1;for(var _=new Array(j.length-d+I),g=0;g<j.length-d;g+=1)_[g]=j[g+d];return _}(),v={getAt:function(d){return A[d]},getLength:function(){return A.length},multiply:function(d){for(var _=new Array(v.getLength()+d.getLength()-1),g=0;g<v.getLength();g+=1)for(var m=0;m<d.getLength();m+=1)_[g+m]^=X.gexp(X.glog(v.getAt(g))+X.glog(d.getAt(m)));return ae(_,0)},mod:function(d){if(v.getLength()-d.getLength()<0)return v;for(var _=X.glog(v.getAt(0))-X.glog(d.getAt(0)),g=new Array(v.getLength()),m=0;m<v.getLength();m+=1)g[m]=v.getAt(m);for(m=0;m<d.getLength();m+=1)g[m]^=X.gexp(X.glog(d.getAt(m))+_);return ae(g,0).mod(d)}};return v}var H=function(){var j=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],I=function(v,d){var _={};return _.totalCount=v,_.dataCount=d,_},A={getRSBlocks:function(v,d){var _=function(we,J){switch(J){case Q.L:return j[4*(we-1)+0];case Q.M:return j[4*(we-1)+1];case Q.Q:return j[4*(we-1)+2];case Q.H:return j[4*(we-1)+3];default:return}}(v,d);if(_===void 0)throw"bad rs block @ typeNumber:"+v+"/errorCorrectionLevel:"+d;for(var g=_.length/3,m=[],T=0;T<g;T+=1)for(var Y=_[3*T+0],Z=_[3*T+1],ce=_[3*T+2],de=0;de<Y;de+=1)m.push(I(Z,ce));return m}};return A}(),fe=function(){var j=[],I=0,A={getBuffer:function(){return j},getAt:function(v){var d=Math.floor(v/8);return(j[d]>>>7-v%8&1)==1},put:function(v,d){for(var _=0;_<d;_+=1)A.putBit((v>>>d-_-1&1)==1)},getLengthInBits:function(){return I},putBit:function(v){var d=Math.floor(I/8);j.length<=d&&j.push(0),v&&(j[d]|=128>>>I%8),I+=1}};return A},ee=function(j){var I=j,A={getMode:function(){return 1},getLength:function(_){return I.length},write:function(_){for(var g=I,m=0;m+2<g.length;)_.put(v(g.substring(m,m+3)),10),m+=3;m<g.length&&(g.length-m==1?_.put(v(g.substring(m,m+1)),4):g.length-m==2&&_.put(v(g.substring(m,m+2)),7))}},v=function(_){for(var g=0,m=0;m<_.length;m+=1)g=10*g+d(_.charAt(m));return g},d=function(_){if("0"<=_&&_<="9")return _.charCodeAt(0)-48;throw"illegal char :"+_};return A},re=function(j){var I=j,A={getMode:function(){return 2},getLength:function(d){return I.length},write:function(d){for(var _=I,g=0;g+1<_.length;)d.put(45*v(_.charAt(g))+v(_.charAt(g+1)),11),g+=2;g<_.length&&d.put(v(_.charAt(g)),6)}},v=function(d){if("0"<=d&&d<="9")return d.charCodeAt(0)-48;if("A"<=d&&d<="Z")return d.charCodeAt(0)-65+10;switch(d){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+d}};return A},se=function(j){var I=L.stringToBytes(j);return{getMode:function(){return 4},getLength:function(A){return I.length},write:function(A){for(var v=0;v<I.length;v+=1)A.put(I[v],8)}}},pe=function(j){var I=L.stringToBytesFuncs.SJIS;if(!I)throw"sjis not supported.";(function(){var d=I("友");if(d.length!=2||(d[0]<<8|d[1])!=38726)throw"sjis not supported."})();var A=I(j),v={getMode:function(){return 8},getLength:function(d){return~~(A.length/2)},write:function(d){for(var _=A,g=0;g+1<_.length;){var m=(255&_[g])<<8|255&_[g+1];if(33088<=m&&m<=40956)m-=33088;else{if(!(57408<=m&&m<=60351))throw"illegal char at "+(g+1)+"/"+m;m-=49472}m=192*(m>>>8&255)+(255&m),d.put(m,13),g+=2}if(g<_.length)throw"illegal char at "+(g+1)}};return v},ie=function(){var j=[],I={writeByte:function(A){j.push(255&A)},writeShort:function(A){I.writeByte(A),I.writeByte(A>>>8)},writeBytes:function(A,v,d){v=v||0,d=d||A.length;for(var _=0;_<d;_+=1)I.writeByte(A[_+v])},writeString:function(A){for(var v=0;v<A.length;v+=1)I.writeByte(A.charCodeAt(v))},toByteArray:function(){return j},toString:function(){var A="";A+="[";for(var v=0;v<j.length;v+=1)v>0&&(A+=","),A+=j[v];return A+"]"}};return I},Ae=function(j){var I=j,A=0,v=0,d=0,_={read:function(){for(;d<8;){if(A>=I.length){if(d==0)return-1;throw"unexpected end of file./"+d}var m=I.charAt(A);if(A+=1,m=="=")return d=0,-1;m.match(/^\s$/)||(v=v<<6|g(m.charCodeAt(0)),d+=6)}var T=v>>>d-8&255;return d-=8,T}},g=function(m){if(65<=m&&m<=90)return m-65;if(97<=m&&m<=122)return m-97+26;if(48<=m&&m<=57)return m-48+52;if(m==43)return 62;if(m==47)return 63;throw"c:"+m};return _},Oe=function(j,I,A){for(var v=function(Z,ce){var de=Z,we=ce,J=new Array(Z*ce),le={setPixel:function(z,q,W){J[q*de+z]=W},write:function(z){z.writeString("GIF87a"),z.writeShort(de),z.writeShort(we),z.writeByte(128),z.writeByte(0),z.writeByte(0),z.writeByte(0),z.writeByte(0),z.writeByte(0),z.writeByte(255),z.writeByte(255),z.writeByte(255),z.writeString(","),z.writeShort(0),z.writeShort(0),z.writeShort(de),z.writeShort(we),z.writeByte(0);var q=Ce(2);z.writeByte(2);for(var W=0;q.length-W>255;)z.writeByte(255),z.writeBytes(q,W,255),W+=255;z.writeByte(q.length-W),z.writeBytes(q,W,q.length-W),z.writeByte(0),z.writeString(";")}},Ce=function(z){for(var q=1<<z,W=1+(1<<z),K=z+1,ue=be(),Te=0;Te<q;Te+=1)ue.add(String.fromCharCode(Te));ue.add(String.fromCharCode(q)),ue.add(String.fromCharCode(W));var u,h,w,P=ie(),U=(u=P,h=0,w=0,{write:function(Re,Se){if(Re>>>Se)throw"length over";for(;h+Se>=8;)u.writeByte(255&(Re<<h|w)),Se-=8-h,Re>>>=8-h,w=0,h=0;w|=Re<<h,h+=Se},flush:function(){h>0&&u.writeByte(w)}});U.write(q,K);var ne=0,xe=String.fromCharCode(J[ne]);for(ne+=1;ne<J.length;){var De=String.fromCharCode(J[ne]);ne+=1,ue.contains(xe+De)?xe+=De:(U.write(ue.indexOf(xe),K),ue.size()<4095&&(ue.size()==1<<K&&(K+=1),ue.add(xe+De)),xe=De)}return U.write(ue.indexOf(xe),K),U.write(W,K),U.flush(),P.toByteArray()},be=function(){var z={},q=0,W={add:function(K){if(W.contains(K))throw"dup key:"+K;z[K]=q,q+=1},size:function(){return q},indexOf:function(K){return z[K]},contains:function(K){return z[K]!==void 0}};return W};return le}(j,I),d=0;d<I;d+=1)for(var _=0;_<j;_+=1)v.setPixel(_,d,A(_,d));var g=ie();v.write(g);for(var m=function(){var Z=0,ce=0,de=0,we="",J={},le=function(be){we+=String.fromCharCode(Ce(63&be))},Ce=function(be){if(!(be<0)){if(be<26)return 65+be;if(be<52)return be-26+97;if(be<62)return be-52+48;if(be==62)return 43;if(be==63)return 47}throw"n:"+be};return J.writeByte=function(be){for(Z=Z<<8|255&be,ce+=8,de+=1;ce>=6;)le(Z>>>ce-6),ce-=6},J.flush=function(){if(ce>0&&(le(Z<<6-ce),Z=0,ce=0),de%3!=0)for(var be=3-de%3,z=0;z<be;z+=1)we+="="},J.toString=function(){return we},J}(),T=g.toByteArray(),Y=0;Y<T.length;Y+=1)m.writeByte(T[Y]);return m.flush(),"data:image/gif;base64,"+m};return L}();O.stringToBytesFuncs["UTF-8"]=function(L){return function(k){for(var M=[],R=0;R<k.length;R++){var E=k.charCodeAt(R);E<128?M.push(E):E<2048?M.push(192|E>>6,128|63&E):E<55296||E>=57344?M.push(224|E>>12,128|E>>6&63,128|63&E):(R++,E=65536+((1023&E)<<10|1023&k.charCodeAt(R)),M.push(240|E>>18,128|E>>12&63,128|E>>6&63,128|63&E))}return M}(L)},(C=typeof(b=function(){return O})=="function"?b.apply(c,[]):b)===void 0||(f.exports=C)}},s={};function l(f){var c=s[f];if(c!==void 0)return c.exports;var b=s[f]={exports:{}};return r[f](b,b.exports,l),b.exports}l.n=f=>{var c=f&&f.__esModule?()=>f.default:()=>f;return l.d(c,{a:c}),c},l.d=(f,c)=>{for(var b in c)l.o(c,b)&&!l.o(f,b)&&Object.defineProperty(f,b,{enumerable:!0,get:c[b]})},l.o=(f,c)=>Object.prototype.hasOwnProperty.call(f,c);var p={};return(()=>{l.d(p,{default:()=>I});const f=A=>!!A&&typeof A=="object"&&!Array.isArray(A);function c(A,...v){if(!v.length)return A;const d=v.shift();return d!==void 0&&f(A)&&f(d)?(A=Object.assign({},A),Object.keys(d).forEach(_=>{const g=A[_],m=d[_];Array.isArray(g)&&Array.isArray(m)?A[_]=m:f(g)&&f(m)?A[_]=c(Object.assign({},g),m):A[_]=m}),c(A,...v)):A}function b(A,v){const d=document.createElement("a");d.download=v,d.href=A,document.body.appendChild(d),d.click(),document.body.removeChild(d)}const C={L:.07,M:.15,Q:.25,H:.3};class O{constructor({svg:v,type:d,window:_}){this._svg=v,this._type=d,this._window=_}draw(v,d,_,g){let m;switch(this._type){case"dots":m=this._drawDot;break;case"classy":m=this._drawClassy;break;case"classy-rounded":m=this._drawClassyRounded;break;case"rounded":m=this._drawRounded;break;case"extra-rounded":m=this._drawExtraRounded;break;default:m=this._drawSquare}m.call(this,{x:v,y:d,size:_,getNeighbor:g})}_rotateFigure({x:v,y:d,size:_,rotation:g=0,draw:m}){var T;const Y=v+_/2,Z=d+_/2;m(),(T=this._element)===null||T===void 0||T.setAttribute("transform",`rotate(${180*g/Math.PI},${Y},${Z})`)}_basicDot(v){const{size:d,x:_,y:g}=v;this._rotateFigure(Object.assign(Object.assign({},v),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(_+d/2)),this._element.setAttribute("cy",String(g+d/2)),this._element.setAttribute("r",String(d/2))}}))}_basicSquare(v){const{size:d,x:_,y:g}=v;this._rotateFigure(Object.assign(Object.assign({},v),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(_)),this._element.setAttribute("y",String(g)),this._element.setAttribute("width",String(d)),this._element.setAttribute("height",String(d))}}))}_basicSideRounded(v){const{size:d,x:_,y:g}=v;this._rotateFigure(Object.assign(Object.assign({},v),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${_} ${g}v ${d}h `+d/2+`a ${d/2} ${d/2}, 0, 0, 0, 0 ${-d}`)}}))}_basicCornerRounded(v){const{size:d,x:_,y:g}=v;this._rotateFigure(Object.assign(Object.assign({},v),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${_} ${g}v ${d}h ${d}v `+-d/2+`a ${d/2} ${d/2}, 0, 0, 0, ${-d/2} ${-d/2}`)}}))}_basicCornerExtraRounded(v){const{size:d,x:_,y:g}=v;this._rotateFigure(Object.assign(Object.assign({},v),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${_} ${g}v ${d}h ${d}a ${d} ${d}, 0, 0, 0, ${-d} ${-d}`)}}))}_basicCornersRounded(v){const{size:d,x:_,y:g}=v;this._rotateFigure(Object.assign(Object.assign({},v),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${_} ${g}v `+d/2+`a ${d/2} ${d/2}, 0, 0, 0, ${d/2} ${d/2}h `+d/2+"v "+-d/2+`a ${d/2} ${d/2}, 0, 0, 0, ${-d/2} ${-d/2}`)}}))}_drawDot({x:v,y:d,size:_}){this._basicDot({x:v,y:d,size:_,rotation:0})}_drawSquare({x:v,y:d,size:_}){this._basicSquare({x:v,y:d,size:_,rotation:0})}_drawRounded({x:v,y:d,size:_,getNeighbor:g}){const m=g?+g(-1,0):0,T=g?+g(1,0):0,Y=g?+g(0,-1):0,Z=g?+g(0,1):0,ce=m+T+Y+Z;if(ce!==0)if(ce>2||m&&T||Y&&Z)this._basicSquare({x:v,y:d,size:_,rotation:0});else{if(ce===2){let de=0;return m&&Y?de=Math.PI/2:Y&&T?de=Math.PI:T&&Z&&(de=-Math.PI/2),void this._basicCornerRounded({x:v,y:d,size:_,rotation:de})}if(ce===1){let de=0;return Y?de=Math.PI/2:T?de=Math.PI:Z&&(de=-Math.PI/2),void this._basicSideRounded({x:v,y:d,size:_,rotation:de})}}else this._basicDot({x:v,y:d,size:_,rotation:0})}_drawExtraRounded({x:v,y:d,size:_,getNeighbor:g}){const m=g?+g(-1,0):0,T=g?+g(1,0):0,Y=g?+g(0,-1):0,Z=g?+g(0,1):0,ce=m+T+Y+Z;if(ce!==0)if(ce>2||m&&T||Y&&Z)this._basicSquare({x:v,y:d,size:_,rotation:0});else{if(ce===2){let de=0;return m&&Y?de=Math.PI/2:Y&&T?de=Math.PI:T&&Z&&(de=-Math.PI/2),void this._basicCornerExtraRounded({x:v,y:d,size:_,rotation:de})}if(ce===1){let de=0;return Y?de=Math.PI/2:T?de=Math.PI:Z&&(de=-Math.PI/2),void this._basicSideRounded({x:v,y:d,size:_,rotation:de})}}else this._basicDot({x:v,y:d,size:_,rotation:0})}_drawClassy({x:v,y:d,size:_,getNeighbor:g}){const m=g?+g(-1,0):0,T=g?+g(1,0):0,Y=g?+g(0,-1):0,Z=g?+g(0,1):0;m+T+Y+Z!==0?m||Y?T||Z?this._basicSquare({x:v,y:d,size:_,rotation:0}):this._basicCornerRounded({x:v,y:d,size:_,rotation:Math.PI/2}):this._basicCornerRounded({x:v,y:d,size:_,rotation:-Math.PI/2}):this._basicCornersRounded({x:v,y:d,size:_,rotation:Math.PI/2})}_drawClassyRounded({x:v,y:d,size:_,getNeighbor:g}){const m=g?+g(-1,0):0,T=g?+g(1,0):0,Y=g?+g(0,-1):0,Z=g?+g(0,1):0;m+T+Y+Z!==0?m||Y?T||Z?this._basicSquare({x:v,y:d,size:_,rotation:0}):this._basicCornerExtraRounded({x:v,y:d,size:_,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:v,y:d,size:_,rotation:-Math.PI/2}):this._basicCornersRounded({x:v,y:d,size:_,rotation:Math.PI/2})}}const L={dot:"dot",square:"square",extraRounded:"extra-rounded"},k=Object.values(L);class M{constructor({svg:v,type:d,window:_}){this._svg=v,this._type=d,this._window=_}draw(v,d,_,g){let m;switch(this._type){case L.square:m=this._drawSquare;break;case L.extraRounded:m=this._drawExtraRounded;break;default:m=this._drawDot}m.call(this,{x:v,y:d,size:_,rotation:g})}_rotateFigure({x:v,y:d,size:_,rotation:g=0,draw:m}){var T;const Y=v+_/2,Z=d+_/2;m(),(T=this._element)===null||T===void 0||T.setAttribute("transform",`rotate(${180*g/Math.PI},${Y},${Z})`)}_basicDot(v){const{size:d,x:_,y:g}=v,m=d/7;this._rotateFigure(Object.assign(Object.assign({},v),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${_+d/2} ${g}a ${d/2} ${d/2} 0 1 0 0.1 0zm 0 ${m}a ${d/2-m} ${d/2-m} 0 1 1 -0.1 0Z`)}}))}_basicSquare(v){const{size:d,x:_,y:g}=v,m=d/7;this._rotateFigure(Object.assign(Object.assign({},v),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${_} ${g}v ${d}h ${d}v `+-d+`zM ${_+m} ${g+m}h `+(d-2*m)+"v "+(d-2*m)+"h "+(2*m-d)+"z")}}))}_basicExtraRounded(v){const{size:d,x:_,y:g}=v,m=d/7;this._rotateFigure(Object.assign(Object.assign({},v),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${_} ${g+2.5*m}v `+2*m+`a ${2.5*m} ${2.5*m}, 0, 0, 0, ${2.5*m} ${2.5*m}h `+2*m+`a ${2.5*m} ${2.5*m}, 0, 0, 0, ${2.5*m} ${2.5*-m}v `+-2*m+`a ${2.5*m} ${2.5*m}, 0, 0, 0, ${2.5*-m} ${2.5*-m}h `+-2*m+`a ${2.5*m} ${2.5*m}, 0, 0, 0, ${2.5*-m} ${2.5*m}M ${_+2.5*m} ${g+m}h `+2*m+`a ${1.5*m} ${1.5*m}, 0, 0, 1, ${1.5*m} ${1.5*m}v `+2*m+`a ${1.5*m} ${1.5*m}, 0, 0, 1, ${1.5*-m} ${1.5*m}h `+-2*m+`a ${1.5*m} ${1.5*m}, 0, 0, 1, ${1.5*-m} ${1.5*-m}v `+-2*m+`a ${1.5*m} ${1.5*m}, 0, 0, 1, ${1.5*m} ${1.5*-m}`)}}))}_drawDot({x:v,y:d,size:_,rotation:g}){this._basicDot({x:v,y:d,size:_,rotation:g})}_drawSquare({x:v,y:d,size:_,rotation:g}){this._basicSquare({x:v,y:d,size:_,rotation:g})}_drawExtraRounded({x:v,y:d,size:_,rotation:g}){this._basicExtraRounded({x:v,y:d,size:_,rotation:g})}}const R={dot:"dot",square:"square"},E=Object.values(R);class N{constructor({svg:v,type:d,window:_}){this._svg=v,this._type=d,this._window=_}draw(v,d,_,g){let m;m=this._type===R.square?this._drawSquare:this._drawDot,m.call(this,{x:v,y:d,size:_,rotation:g})}_rotateFigure({x:v,y:d,size:_,rotation:g=0,draw:m}){var T;const Y=v+_/2,Z=d+_/2;m(),(T=this._element)===null||T===void 0||T.setAttribute("transform",`rotate(${180*g/Math.PI},${Y},${Z})`)}_basicDot(v){const{size:d,x:_,y:g}=v;this._rotateFigure(Object.assign(Object.assign({},v),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(_+d/2)),this._element.setAttribute("cy",String(g+d/2)),this._element.setAttribute("r",String(d/2))}}))}_basicSquare(v){const{size:d,x:_,y:g}=v;this._rotateFigure(Object.assign(Object.assign({},v),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(_)),this._element.setAttribute("y",String(g)),this._element.setAttribute("width",String(d)),this._element.setAttribute("height",String(d))}}))}_drawDot({x:v,y:d,size:_,rotation:g}){this._basicDot({x:v,y:d,size:_,rotation:g})}_drawSquare({x:v,y:d,size:_,rotation:g}){this._basicSquare({x:v,y:d,size:_,rotation:g})}}const Q="circle",te=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],X=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];class ae{constructor(v,d){this._roundSize=_=>this._options.dotsOptions.roundSize?Math.floor(_):_,this._window=d,this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(v.width)),this._element.setAttribute("height",String(v.height)),this._element.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),v.dotsOptions.roundSize||this._element.setAttribute("shape-rendering","crispEdges"),this._element.setAttribute("viewBox",`0 0 ${v.width} ${v.height}`),this._defs=this._window.document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._imageUri=v.image,this._instanceId=ae.instanceCount++,this._options=v}get width(){return this._options.width}get height(){return this._options.height}getElement(){return this._element}async drawQR(v){const d=v.getModuleCount(),_=Math.min(this._options.width,this._options.height)-2*this._options.margin,g=this._options.shape===Q?_/Math.sqrt(2):_,m=this._roundSize(g/d);let T={hideXDots:0,hideYDots:0,width:0,height:0};if(this._qr=v,this._options.image){if(await this.loadImage(),!this._image)return;const{imageOptions:Y,qrOptions:Z}=this._options,ce=Y.imageSize*C[Z.errorCorrectionLevel],de=Math.floor(ce*d*d);T=function({originalHeight:we,originalWidth:J,maxHiddenDots:le,maxHiddenAxisDots:Ce,dotSize:be}){const z={x:0,y:0},q={x:0,y:0};if(we<=0||J<=0||le<=0||be<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};const W=we/J;return z.x=Math.floor(Math.sqrt(le/W)),z.x<=0&&(z.x=1),Ce&&Ce<z.x&&(z.x=Ce),z.x%2==0&&z.x--,q.x=z.x*be,z.y=1+2*Math.ceil((z.x*W-1)/2),q.y=Math.round(q.x*W),(z.y*z.x>le||Ce&&Ce<z.y)&&(Ce&&Ce<z.y?(z.y=Ce,z.y%2==0&&z.x--):z.y-=2,q.y=z.y*be,z.x=1+2*Math.ceil((z.y/W-1)/2),q.x=Math.round(q.y/W)),{height:q.y,width:q.x,hideYDots:z.y,hideXDots:z.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:de,maxHiddenAxisDots:d-14,dotSize:m})}this.drawBackground(),this.drawDots((Y,Z)=>{var ce,de,we,J,le,Ce;return!(this._options.imageOptions.hideBackgroundDots&&Y>=(d-T.hideYDots)/2&&Y<(d+T.hideYDots)/2&&Z>=(d-T.hideXDots)/2&&Z<(d+T.hideXDots)/2||!((ce=te[Y])===null||ce===void 0)&&ce[Z]||!((de=te[Y-d+7])===null||de===void 0)&&de[Z]||!((we=te[Y])===null||we===void 0)&&we[Z-d+7]||!((J=X[Y])===null||J===void 0)&&J[Z]||!((le=X[Y-d+7])===null||le===void 0)&&le[Z]||!((Ce=X[Y])===null||Ce===void 0)&&Ce[Z-d+7])}),this.drawCorners(),this._options.image&&await this.drawImage({width:T.width,height:T.height,count:d,dotSize:m})}drawBackground(){var v,d,_;const g=this._element,m=this._options;if(g){const T=(v=m.backgroundOptions)===null||v===void 0?void 0:v.gradient,Y=(d=m.backgroundOptions)===null||d===void 0?void 0:d.color;let Z=m.height,ce=m.width;if(T||Y){const de=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");this._backgroundClipPath=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._backgroundClipPath.setAttribute("id",`clip-path-background-color-${this._instanceId}`),this._defs.appendChild(this._backgroundClipPath),!((_=m.backgroundOptions)===null||_===void 0)&&_.round&&(Z=ce=Math.min(m.width,m.height),de.setAttribute("rx",String(Z/2*m.backgroundOptions.round))),de.setAttribute("x",String(this._roundSize((m.width-ce)/2))),de.setAttribute("y",String(this._roundSize((m.height-Z)/2))),de.setAttribute("width",String(ce)),de.setAttribute("height",String(Z)),this._backgroundClipPath.appendChild(de),this._createColor({options:T,color:Y,additionalRotation:0,x:0,y:0,height:m.height,width:m.width,name:`background-color-${this._instanceId}`})}}}drawDots(v){var d,_;if(!this._qr)throw"QR code is not defined";const g=this._options,m=this._qr.getModuleCount();if(m>g.width||m>g.height)throw"The canvas is too small.";const T=Math.min(g.width,g.height)-2*g.margin,Y=g.shape===Q?T/Math.sqrt(2):T,Z=this._roundSize(Y/m),ce=this._roundSize((g.width-m*Z)/2),de=this._roundSize((g.height-m*Z)/2),we=new O({svg:this._element,type:g.dotsOptions.type,window:this._window});this._dotsClipPath=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id",`clip-path-dot-color-${this._instanceId}`),this._defs.appendChild(this._dotsClipPath),this._createColor({options:(d=g.dotsOptions)===null||d===void 0?void 0:d.gradient,color:g.dotsOptions.color,additionalRotation:0,x:0,y:0,height:g.height,width:g.width,name:`dot-color-${this._instanceId}`});for(let J=0;J<m;J++)for(let le=0;le<m;le++)v&&!v(J,le)||!((_=this._qr)===null||_===void 0)&&_.isDark(J,le)&&(we.draw(ce+le*Z,de+J*Z,Z,(Ce,be)=>!(le+Ce<0||J+be<0||le+Ce>=m||J+be>=m)&&!(v&&!v(J+be,le+Ce))&&!!this._qr&&this._qr.isDark(J+be,le+Ce)),we._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(we._element));if(g.shape===Q){const J=this._roundSize((T/Z-m)/2),le=m+2*J,Ce=ce-J*Z,be=de-J*Z,z=[],q=this._roundSize(le/2);for(let W=0;W<le;W++){z[W]=[];for(let K=0;K<le;K++)W>=J-1&&W<=le-J&&K>=J-1&&K<=le-J||Math.sqrt((W-q)*(W-q)+(K-q)*(K-q))>q?z[W][K]=0:z[W][K]=this._qr.isDark(K-2*J<0?K:K>=m?K-2*J:K-J,W-2*J<0?W:W>=m?W-2*J:W-J)?1:0}for(let W=0;W<le;W++)for(let K=0;K<le;K++)z[W][K]&&(we.draw(Ce+K*Z,be+W*Z,Z,(ue,Te)=>{var u;return!!(!((u=z[W+Te])===null||u===void 0)&&u[K+ue])}),we._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(we._element))}}drawCorners(){if(!this._qr)throw"QR code is not defined";const v=this._element,d=this._options;if(!v)throw"Element code is not defined";const _=this._qr.getModuleCount(),g=Math.min(d.width,d.height)-2*d.margin,m=d.shape===Q?g/Math.sqrt(2):g,T=this._roundSize(m/_),Y=7*T,Z=3*T,ce=this._roundSize((d.width-_*T)/2),de=this._roundSize((d.height-_*T)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(([we,J,le])=>{var Ce,be,z,q,W,K,ue,Te,u,h,w,P,U,ne;const xe=ce+we*T*(_-7),De=de+J*T*(_-7);let Re=this._dotsClipPath,Se=this._dotsClipPath;if((!((Ce=d.cornersSquareOptions)===null||Ce===void 0)&&Ce.gradient||!((be=d.cornersSquareOptions)===null||be===void 0)&&be.color)&&(Re=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),Re.setAttribute("id",`clip-path-corners-square-color-${we}-${J}-${this._instanceId}`),this._defs.appendChild(Re),this._cornersSquareClipPath=this._cornersDotClipPath=Se=Re,this._createColor({options:(z=d.cornersSquareOptions)===null||z===void 0?void 0:z.gradient,color:(q=d.cornersSquareOptions)===null||q===void 0?void 0:q.color,additionalRotation:le,x:xe,y:De,height:Y,width:Y,name:`corners-square-color-${we}-${J}-${this._instanceId}`})),((W=d.cornersSquareOptions)===null||W===void 0?void 0:W.type)&&k.includes(d.cornersSquareOptions.type)){const Le=new M({svg:this._element,type:d.cornersSquareOptions.type,window:this._window});Le.draw(xe,De,Y,le),Le._element&&Re&&Re.appendChild(Le._element)}else{const Le=new O({svg:this._element,type:((K=d.cornersSquareOptions)===null||K===void 0?void 0:K.type)||d.dotsOptions.type,window:this._window});for(let Pe=0;Pe<te.length;Pe++)for(let Ie=0;Ie<te[Pe].length;Ie++)!((ue=te[Pe])===null||ue===void 0)&&ue[Ie]&&(Le.draw(xe+Ie*T,De+Pe*T,T,(et,Ge)=>{var tt;return!!(!((tt=te[Pe+Ge])===null||tt===void 0)&&tt[Ie+et])}),Le._element&&Re&&Re.appendChild(Le._element))}if((!((Te=d.cornersDotOptions)===null||Te===void 0)&&Te.gradient||!((u=d.cornersDotOptions)===null||u===void 0)&&u.color)&&(Se=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),Se.setAttribute("id",`clip-path-corners-dot-color-${we}-${J}-${this._instanceId}`),this._defs.appendChild(Se),this._cornersDotClipPath=Se,this._createColor({options:(h=d.cornersDotOptions)===null||h===void 0?void 0:h.gradient,color:(w=d.cornersDotOptions)===null||w===void 0?void 0:w.color,additionalRotation:le,x:xe+2*T,y:De+2*T,height:Z,width:Z,name:`corners-dot-color-${we}-${J}-${this._instanceId}`})),((P=d.cornersDotOptions)===null||P===void 0?void 0:P.type)&&E.includes(d.cornersDotOptions.type)){const Le=new N({svg:this._element,type:d.cornersDotOptions.type,window:this._window});Le.draw(xe+2*T,De+2*T,Z,le),Le._element&&Se&&Se.appendChild(Le._element)}else{const Le=new O({svg:this._element,type:((U=d.cornersDotOptions)===null||U===void 0?void 0:U.type)||d.dotsOptions.type,window:this._window});for(let Pe=0;Pe<X.length;Pe++)for(let Ie=0;Ie<X[Pe].length;Ie++)!((ne=X[Pe])===null||ne===void 0)&&ne[Ie]&&(Le.draw(xe+Ie*T,De+Pe*T,T,(et,Ge)=>{var tt;return!!(!((tt=X[Pe+Ge])===null||tt===void 0)&&tt[Ie+et])}),Le._element&&Se&&Se.appendChild(Le._element))}})}loadImage(){return new Promise((v,d)=>{var _;const g=this._options;if(!g.image)return d("Image is not defined");if(!((_=g.nodeCanvas)===null||_===void 0)&&_.loadImage)g.nodeCanvas.loadImage(g.image).then(m=>{var T,Y;if(this._image=m,this._options.imageOptions.saveAsBlob){const Z=(T=g.nodeCanvas)===null||T===void 0?void 0:T.createCanvas(this._image.width,this._image.height);(Y=Z==null?void 0:Z.getContext("2d"))===null||Y===void 0||Y.drawImage(m,0,0),this._imageUri=Z==null?void 0:Z.toDataURL()}v()}).catch(d);else{const m=new this._window.Image;typeof g.imageOptions.crossOrigin=="string"&&(m.crossOrigin=g.imageOptions.crossOrigin),this._image=m,m.onload=async()=>{this._options.imageOptions.saveAsBlob&&(this._imageUri=await async function(T,Y){return new Promise(Z=>{const ce=new Y.XMLHttpRequest;ce.onload=function(){const de=new Y.FileReader;de.onloadend=function(){Z(de.result)},de.readAsDataURL(ce.response)},ce.open("GET",T),ce.responseType="blob",ce.send()})}(g.image||"",this._window)),v()},m.src=g.image}})}async drawImage({width:v,height:d,count:_,dotSize:g}){const m=this._options,T=this._roundSize((m.width-_*g)/2),Y=this._roundSize((m.height-_*g)/2),Z=T+this._roundSize(m.imageOptions.margin+(_*g-v)/2),ce=Y+this._roundSize(m.imageOptions.margin+(_*g-d)/2),de=v-2*m.imageOptions.margin,we=d-2*m.imageOptions.margin,J=this._window.document.createElementNS("http://www.w3.org/2000/svg","image");J.setAttribute("href",this._imageUri||""),J.setAttribute("x",String(Z)),J.setAttribute("y",String(ce)),J.setAttribute("width",`${de}px`),J.setAttribute("height",`${we}px`),this._element.appendChild(J)}_createColor({options:v,color:d,additionalRotation:_,x:g,y:m,height:T,width:Y,name:Z}){const ce=Y>T?Y:T,de=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");if(de.setAttribute("x",String(g)),de.setAttribute("y",String(m)),de.setAttribute("height",String(T)),de.setAttribute("width",String(Y)),de.setAttribute("clip-path",`url('#clip-path-${Z}')`),v){let we;if(v.type==="radial")we=this._window.document.createElementNS("http://www.w3.org/2000/svg","radialGradient"),we.setAttribute("id",Z),we.setAttribute("gradientUnits","userSpaceOnUse"),we.setAttribute("fx",String(g+Y/2)),we.setAttribute("fy",String(m+T/2)),we.setAttribute("cx",String(g+Y/2)),we.setAttribute("cy",String(m+T/2)),we.setAttribute("r",String(ce/2));else{const J=((v.rotation||0)+_)%(2*Math.PI),le=(J+2*Math.PI)%(2*Math.PI);let Ce=g+Y/2,be=m+T/2,z=g+Y/2,q=m+T/2;le>=0&&le<=.25*Math.PI||le>1.75*Math.PI&&le<=2*Math.PI?(Ce-=Y/2,be-=T/2*Math.tan(J),z+=Y/2,q+=T/2*Math.tan(J)):le>.25*Math.PI&&le<=.75*Math.PI?(be-=T/2,Ce-=Y/2/Math.tan(J),q+=T/2,z+=Y/2/Math.tan(J)):le>.75*Math.PI&&le<=1.25*Math.PI?(Ce+=Y/2,be+=T/2*Math.tan(J),z-=Y/2,q-=T/2*Math.tan(J)):le>1.25*Math.PI&&le<=1.75*Math.PI&&(be+=T/2,Ce+=Y/2/Math.tan(J),q-=T/2,z-=Y/2/Math.tan(J)),we=this._window.document.createElementNS("http://www.w3.org/2000/svg","linearGradient"),we.setAttribute("id",Z),we.setAttribute("gradientUnits","userSpaceOnUse"),we.setAttribute("x1",String(Math.round(Ce))),we.setAttribute("y1",String(Math.round(be))),we.setAttribute("x2",String(Math.round(z))),we.setAttribute("y2",String(Math.round(q)))}v.colorStops.forEach(({offset:J,color:le})=>{const Ce=this._window.document.createElementNS("http://www.w3.org/2000/svg","stop");Ce.setAttribute("offset",100*J+"%"),Ce.setAttribute("stop-color",le),we.appendChild(Ce)}),de.setAttribute("fill",`url('#${Z}')`),this._defs.appendChild(we)}else d&&de.setAttribute("fill",d);this._element.appendChild(de)}}ae.instanceCount=0;const H=ae,fe="canvas",ee={};for(let A=0;A<=40;A++)ee[A]=A;const re={type:fe,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:ee[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{saveAsBlob:!0,hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000",roundSize:!0},backgroundOptions:{round:0,color:"#fff"}};function se(A){const v=Object.assign({},A);if(!v.colorStops||!v.colorStops.length)throw"Field 'colorStops' is required in gradient";return v.rotation?v.rotation=Number(v.rotation):v.rotation=0,v.colorStops=v.colorStops.map(d=>Object.assign(Object.assign({},d),{offset:Number(d.offset)})),v}function pe(A){const v=Object.assign({},A);return v.width=Number(v.width),v.height=Number(v.height),v.margin=Number(v.margin),v.imageOptions=Object.assign(Object.assign({},v.imageOptions),{hideBackgroundDots:!!v.imageOptions.hideBackgroundDots,imageSize:Number(v.imageOptions.imageSize),margin:Number(v.imageOptions.margin)}),v.margin>Math.min(v.width,v.height)&&(v.margin=Math.min(v.width,v.height)),v.dotsOptions=Object.assign({},v.dotsOptions),v.dotsOptions.gradient&&(v.dotsOptions.gradient=se(v.dotsOptions.gradient)),v.cornersSquareOptions&&(v.cornersSquareOptions=Object.assign({},v.cornersSquareOptions),v.cornersSquareOptions.gradient&&(v.cornersSquareOptions.gradient=se(v.cornersSquareOptions.gradient))),v.cornersDotOptions&&(v.cornersDotOptions=Object.assign({},v.cornersDotOptions),v.cornersDotOptions.gradient&&(v.cornersDotOptions.gradient=se(v.cornersDotOptions.gradient))),v.backgroundOptions&&(v.backgroundOptions=Object.assign({},v.backgroundOptions),v.backgroundOptions.gradient&&(v.backgroundOptions.gradient=se(v.backgroundOptions.gradient))),v}var ie=l(873),Ae=l.n(ie);function Oe(A){if(!A)throw new Error("Extension must be defined");A[0]==="."&&(A=A.substring(1));const v={bmp:"image/bmp",gif:"image/gif",ico:"image/vnd.microsoft.icon",jpeg:"image/jpeg",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",tif:"image/tiff",tiff:"image/tiff",webp:"image/webp",pdf:"application/pdf"}[A.toLowerCase()];if(!v)throw new Error(`Extension "${A}" is not supported`);return v}class j{constructor(v){v!=null&&v.jsdom?this._window=new v.jsdom("",{resources:"usable"}).window:this._window=window,this._options=v?pe(c(re,v)):re,this.update()}static _clearContainer(v){v&&(v.innerHTML="")}_setupSvg(){if(!this._qr)return;const v=new H(this._options,this._window);this._svg=v.getElement(),this._svgDrawingPromise=v.drawQR(this._qr).then(()=>{var d;this._svg&&((d=this._extension)===null||d===void 0||d.call(this,v.getElement(),this._options))})}_setupCanvas(){var v,d;this._qr&&(!((v=this._options.nodeCanvas)===null||v===void 0)&&v.createCanvas?(this._nodeCanvas=this._options.nodeCanvas.createCanvas(this._options.width,this._options.height),this._nodeCanvas.width=this._options.width,this._nodeCanvas.height=this._options.height):(this._domCanvas=document.createElement("canvas"),this._domCanvas.width=this._options.width,this._domCanvas.height=this._options.height),this._setupSvg(),this._canvasDrawingPromise=(d=this._svgDrawingPromise)===null||d===void 0?void 0:d.then(()=>{var _;if(!this._svg)return;const g=this._svg,m=new this._window.XMLSerializer().serializeToString(g),T=btoa(m),Y=`data:${Oe("svg")};base64,${T}`;if(!((_=this._options.nodeCanvas)===null||_===void 0)&&_.loadImage)return this._options.nodeCanvas.loadImage(Y).then(Z=>{var ce,de;Z.width=this._options.width,Z.height=this._options.height,(de=(ce=this._nodeCanvas)===null||ce===void 0?void 0:ce.getContext("2d"))===null||de===void 0||de.drawImage(Z,0,0)});{const Z=new this._window.Image;return new Promise(ce=>{Z.onload=()=>{var de,we;(we=(de=this._domCanvas)===null||de===void 0?void 0:de.getContext("2d"))===null||we===void 0||we.drawImage(Z,0,0),ce()},Z.src=Y})}}))}async _getElement(v="png"){if(!this._qr)throw"QR code is empty";return v.toLowerCase()==="svg"?(this._svg&&this._svgDrawingPromise||this._setupSvg(),await this._svgDrawingPromise,this._svg):((this._domCanvas||this._nodeCanvas)&&this._canvasDrawingPromise||this._setupCanvas(),await this._canvasDrawingPromise,this._domCanvas||this._nodeCanvas)}update(v){j._clearContainer(this._container),this._options=v?pe(c(this._options,v)):this._options,this._options.data&&(this._qr=Ae()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(d){switch(!0){case/^[0-9]*$/.test(d):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(d):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===fe?this._setupCanvas():this._setupSvg(),this.append(this._container))}append(v){if(v){if(typeof v.appendChild!="function")throw"Container should be a single DOM node";this._options.type===fe?this._domCanvas&&v.appendChild(this._domCanvas):this._svg&&v.appendChild(this._svg),this._container=v}}applyExtension(v){if(!v)throw"Extension function should be defined.";this._extension=v,this.update()}deleteExtension(){this._extension=void 0,this.update()}async getRawData(v="png"){if(!this._qr)throw"QR code is empty";const d=await this._getElement(v),_=Oe(v);if(!d)return null;if(v.toLowerCase()==="svg"){const g=`<?xml version="1.0" standalone="no"?>\r
116
+ ${new this._window.XMLSerializer().serializeToString(d)}`;return typeof Blob>"u"||this._options.jsdom?Buffer.from(g):new Blob([g],{type:_})}return new Promise(g=>{const m=d;if("toBuffer"in m)if(_==="image/png")g(m.toBuffer(_));else if(_==="image/jpeg")g(m.toBuffer(_));else{if(_!=="application/pdf")throw Error("Unsupported extension");g(m.toBuffer(_))}else"toBlob"in m&&m.toBlob(g,_,1)})}async download(v){if(!this._qr)throw"QR code is empty";if(typeof Blob>"u")throw"Cannot download in Node.js, call getRawData instead.";let d="png",_="qr";typeof v=="string"?(d=v,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):typeof v=="object"&&v!==null&&(v.name&&(_=v.name),v.extension&&(d=v.extension));const g=await this._getElement(d);if(g)if(d.toLowerCase()==="svg"){let m=new XMLSerializer().serializeToString(g);m=`<?xml version="1.0" standalone="no"?>\r
117
+ `+m,b(`data:${Oe(d)};charset=utf-8,${encodeURIComponent(m)}`,`${_}.svg`)}else b(g.toDataURL(Oe(d)),`${_}.${d}`)}}const I=j})(),p.default})())}(ba)),ba.exports}Ng();const hc=ye.createContext(void 0);function Bg(i){const n=un.c(9),{children:r,baseUrl:s,queryClient:l}=i;let p;n[0]!==s||n[1]!==l?(p={baseUrl:s,queryClient:l},n[0]=s,n[1]=l,n[2]=p):p=n[2];let f;n[3]!==r||n[4]!==l?(f=D.jsx(Sl,{client:l,children:r}),n[3]=r,n[4]=l,n[5]=f):f=n[5];let c;return n[6]!==p||n[7]!==f?(c=D.jsx(hc.Provider,{value:p,children:f}),n[6]=p,n[7]=f,n[8]=c):c=n[8],c}function nr(){const i=ye.useContext(hc);if(!i)throw new Error("useDataTable must be used within a DataTableProvider");return i}function jg(){const i=localStorage.getItem("a360.assumed-org");return i?{"X-Assume-Org":i}:{}}async function Dr(){return{"Content-Type":"application/json",Authorization:`Bearer ${await Og()??""}`,...jg()}}async function dc(i){return fetch(i,{method:"GET",headers:await Dr()}).then(async n=>{if(n.status>=400)throw await n.text();return n}).then(n=>n.json()).then(n=>n)}async function pc(i,n){return fetch(`${i}/${n}`,{method:"GET",headers:await Dr()}).then(async r=>{if(r.status>=400)throw await r.text();return r}).then(r=>r.json()).then(r=>r)}async function gc(i,n){await fetch(`${i}/${n}`,{method:"DELETE",headers:await Dr()}).then(async r=>{if(r.status>=400)throw await r.text();return r})}async function vc(i,n){return fetch(i,{method:"POST",headers:await Dr(),body:JSON.stringify(n)}).then(async r=>{if(r.status>=400)throw await r.text();return r}).then(r=>r.status==204?n:r.json()).then(r=>r)}async function Ug(i,n,r){return fetch(n,{method:i,headers:await Dr(),body:r?JSON.stringify(r):void 0}).then(async s=>{if(s.status>=400)throw await s.text();return s}).then(s=>{if(s.status!=204)return s.json()}).then(s=>s)}async function mc(i,n){return fetch(`${i}/${n.id}`,{method:"PUT",headers:await Dr(),body:JSON.stringify(n)}).then(async r=>{if(r.status>=400)throw await r.text();return r}).then(r=>r.status==204?n:r.json()).then(r=>r)}function yc(i,n,r){const s=un.c(13),{baseUrl:l}=nr();let p;if(s[0]!==r||s[1]!==n){let C;s[3]!==r?(C=r==null?void 0:r.toString(),s[3]=r,s[4]=C):C=s[4],p=[...n.map(zg),String(C)],s[0]=r,s[1]=n,s[2]=p}else p=s[2];let f;s[5]!==i||s[6]!==l||s[7]!==r?(f=()=>pc(`${l}${i}`,r),s[5]=i,s[6]=l,s[7]=r,s[8]=f):f=s[8];const c=!!r;let b;return s[9]!==p||s[10]!==f||s[11]!==c?(b={queryKey:p,queryFn:f,enabled:c},s[9]=p,s[10]=f,s[11]=c,s[12]=b):b=s[12],Tl(b)}function zg(i){return i.toString()}function wc(i,n){const r=un.c(8),{baseUrl:s}=nr();let l;r[0]!==n?(l=[...n.map(Fg)],r[0]=n,r[1]=l):l=r[1];let p;r[2]!==i||r[3]!==s?(p=()=>dc(`${s}${i}`),r[2]=i,r[3]=s,r[4]=p):p=r[4];let f;return r[5]!==l||r[6]!==p?(f={queryKey:l,queryFn:p},r[5]=l,r[6]=p,r[7]=f):f=r[7],Tl(f)}function Fg(i){return i.toString()}function _c(i,n){const r=un.c(10),{baseUrl:s,queryClient:l}=nr();let p;r[0]!==n?(p=[...n.map(Yg)],r[0]=n,r[1]=p):p=r[1];let f;r[2]!==i||r[3]!==s?(f=b=>vc(`${s}${i}`,b),r[2]=i,r[3]=s,r[4]=f):f=r[4];let c;return r[5]!==l||r[6]!==n||r[7]!==p||r[8]!==f?(c={mutationKey:p,mutationFn:f,onSettled(){return l.invalidateQueries({queryKey:[...n.map(Wg)]})}},r[5]=l,r[6]=n,r[7]=p,r[8]=f,r[9]=c):c=r[9],na(c)}function Wg(i){return i.toString()}function Yg(i){return i.toString()}function xa(i,n){const r=un.c(10),{baseUrl:s,queryClient:l}=nr();let p;r[0]!==n?(p=[...n.map(Hg)],r[0]=n,r[1]=p):p=r[1];let f;r[2]!==i||r[3]!==s?(f=b=>mc(`${s}${i}`,b),r[2]=i,r[3]=s,r[4]=f):f=r[4];let c;return r[5]!==l||r[6]!==n||r[7]!==p||r[8]!==f?(c={mutationKey:p,mutationFn:f,onSettled(){return l.invalidateQueries({queryKey:[...n.map(qg)]})}},r[5]=l,r[6]=n,r[7]=p,r[8]=f,r[9]=c):c=r[9],na(c)}function qg(i){return i.toString()}function Hg(i){return i.toString()}function bc(i,n){const r=un.c(10),{baseUrl:s,queryClient:l}=nr();let p;r[0]!==n?(p=[...n.map(Vg)],r[0]=n,r[1]=p):p=r[1];let f;r[2]!==i||r[3]!==s?(f=b=>gc(`${s}${i}`,b),r[2]=i,r[3]=s,r[4]=f):f=r[4];let c;return r[5]!==l||r[6]!==n||r[7]!==p||r[8]!==f?(c={mutationKey:p,mutationFn:f,onSettled(){return l.invalidateQueries({queryKey:[...n.map(Gg)]})}},r[5]=l,r[6]=n,r[7]=p,r[8]=f,r[9]=c):c=r[9],na(c)}function Gg(i){return i.toString()}function Vg(i){return i.toString()}var ko={exports:{}},Zg=ko.exports,xc;function Kg(){return xc||(xc=1,function(i,n){(function(r,s){i.exports=s()})(Zg,function(){var r=1e3,s=6e4,l=36e5,p="millisecond",f="second",c="minute",b="hour",C="day",O="week",L="month",k="quarter",M="year",R="date",E="Invalid Date",N=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Q=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,te={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(j){var I=["th","st","nd","rd"],A=j%100;return"["+j+(I[(A-20)%10]||I[A]||I[0])+"]"}},X=function(j,I,A){var v=String(j);return!v||v.length>=I?j:""+Array(I+1-v.length).join(A)+j},ae={s:X,z:function(j){var I=-j.utcOffset(),A=Math.abs(I),v=Math.floor(A/60),d=A%60;return(I<=0?"+":"-")+X(v,2,"0")+":"+X(d,2,"0")},m:function j(I,A){if(I.date()<A.date())return-j(A,I);var v=12*(A.year()-I.year())+(A.month()-I.month()),d=I.clone().add(v,L),_=A-d<0,g=I.clone().add(v+(_?-1:1),L);return+(-(v+(A-d)/(_?d-g:g-d))||0)},a:function(j){return j<0?Math.ceil(j)||0:Math.floor(j)},p:function(j){return{M:L,y:M,w:O,d:C,D:R,h:b,m:c,s:f,ms:p,Q:k}[j]||String(j||"").toLowerCase().replace(/s$/,"")},u:function(j){return j===void 0}},H="en",fe={};fe[H]=te;var ee="$isDayjsObject",re=function(j){return j instanceof Ae||!(!j||!j[ee])},se=function j(I,A,v){var d;if(!I)return H;if(typeof I=="string"){var _=I.toLowerCase();fe[_]&&(d=_),A&&(fe[_]=A,d=_);var g=I.split("-");if(!d&&g.length>1)return j(g[0])}else{var m=I.name;fe[m]=I,d=m}return!v&&d&&(H=d),d||!v&&H},pe=function(j,I){if(re(j))return j.clone();var A=typeof I=="object"?I:{};return A.date=j,A.args=arguments,new Ae(A)},ie=ae;ie.l=se,ie.i=re,ie.w=function(j,I){return pe(j,{locale:I.$L,utc:I.$u,x:I.$x,$offset:I.$offset})};var Ae=function(){function j(A){this.$L=se(A.locale,null,!0),this.parse(A),this.$x=this.$x||A.x||{},this[ee]=!0}var I=j.prototype;return I.parse=function(A){this.$d=function(v){var d=v.date,_=v.utc;if(d===null)return new Date(NaN);if(ie.u(d))return new Date;if(d instanceof Date)return new Date(d);if(typeof d=="string"&&!/Z$/i.test(d)){var g=d.match(N);if(g){var m=g[2]-1||0,T=(g[7]||"0").substring(0,3);return _?new Date(Date.UTC(g[1],m,g[3]||1,g[4]||0,g[5]||0,g[6]||0,T)):new Date(g[1],m,g[3]||1,g[4]||0,g[5]||0,g[6]||0,T)}}return new Date(d)}(A),this.init()},I.init=function(){var A=this.$d;this.$y=A.getFullYear(),this.$M=A.getMonth(),this.$D=A.getDate(),this.$W=A.getDay(),this.$H=A.getHours(),this.$m=A.getMinutes(),this.$s=A.getSeconds(),this.$ms=A.getMilliseconds()},I.$utils=function(){return ie},I.isValid=function(){return this.$d.toString()!==E},I.isSame=function(A,v){var d=pe(A);return this.startOf(v)<=d&&d<=this.endOf(v)},I.isAfter=function(A,v){return pe(A)<this.startOf(v)},I.isBefore=function(A,v){return this.endOf(v)<pe(A)},I.$g=function(A,v,d){return ie.u(A)?this[v]:this.set(d,A)},I.unix=function(){return Math.floor(this.valueOf()/1e3)},I.valueOf=function(){return this.$d.getTime()},I.startOf=function(A,v){var d=this,_=!!ie.u(v)||v,g=ie.p(A),m=function(le,Ce){var be=ie.w(d.$u?Date.UTC(d.$y,Ce,le):new Date(d.$y,Ce,le),d);return _?be:be.endOf(C)},T=function(le,Ce){return ie.w(d.toDate()[le].apply(d.toDate("s"),(_?[0,0,0,0]:[23,59,59,999]).slice(Ce)),d)},Y=this.$W,Z=this.$M,ce=this.$D,de="set"+(this.$u?"UTC":"");switch(g){case M:return _?m(1,0):m(31,11);case L:return _?m(1,Z):m(0,Z+1);case O:var we=this.$locale().weekStart||0,J=(Y<we?Y+7:Y)-we;return m(_?ce-J:ce+(6-J),Z);case C:case R:return T(de+"Hours",0);case b:return T(de+"Minutes",1);case c:return T(de+"Seconds",2);case f:return T(de+"Milliseconds",3);default:return this.clone()}},I.endOf=function(A){return this.startOf(A,!1)},I.$set=function(A,v){var d,_=ie.p(A),g="set"+(this.$u?"UTC":""),m=(d={},d[C]=g+"Date",d[R]=g+"Date",d[L]=g+"Month",d[M]=g+"FullYear",d[b]=g+"Hours",d[c]=g+"Minutes",d[f]=g+"Seconds",d[p]=g+"Milliseconds",d)[_],T=_===C?this.$D+(v-this.$W):v;if(_===L||_===M){var Y=this.clone().set(R,1);Y.$d[m](T),Y.init(),this.$d=Y.set(R,Math.min(this.$D,Y.daysInMonth())).$d}else m&&this.$d[m](T);return this.init(),this},I.set=function(A,v){return this.clone().$set(A,v)},I.get=function(A){return this[ie.p(A)]()},I.add=function(A,v){var d,_=this;A=Number(A);var g=ie.p(v),m=function(Z){var ce=pe(_);return ie.w(ce.date(ce.date()+Math.round(Z*A)),_)};if(g===L)return this.set(L,this.$M+A);if(g===M)return this.set(M,this.$y+A);if(g===C)return m(1);if(g===O)return m(7);var T=(d={},d[c]=s,d[b]=l,d[f]=r,d)[g]||1,Y=this.$d.getTime()+A*T;return ie.w(Y,this)},I.subtract=function(A,v){return this.add(-1*A,v)},I.format=function(A){var v=this,d=this.$locale();if(!this.isValid())return d.invalidDate||E;var _=A||"YYYY-MM-DDTHH:mm:ssZ",g=ie.z(this),m=this.$H,T=this.$m,Y=this.$M,Z=d.weekdays,ce=d.months,de=d.meridiem,we=function(Ce,be,z,q){return Ce&&(Ce[be]||Ce(v,_))||z[be].slice(0,q)},J=function(Ce){return ie.s(m%12||12,Ce,"0")},le=de||function(Ce,be,z){var q=Ce<12?"AM":"PM";return z?q.toLowerCase():q};return _.replace(Q,function(Ce,be){return be||function(z){switch(z){case"YY":return String(v.$y).slice(-2);case"YYYY":return ie.s(v.$y,4,"0");case"M":return Y+1;case"MM":return ie.s(Y+1,2,"0");case"MMM":return we(d.monthsShort,Y,ce,3);case"MMMM":return we(ce,Y);case"D":return v.$D;case"DD":return ie.s(v.$D,2,"0");case"d":return String(v.$W);case"dd":return we(d.weekdaysMin,v.$W,Z,2);case"ddd":return we(d.weekdaysShort,v.$W,Z,3);case"dddd":return Z[v.$W];case"H":return String(m);case"HH":return ie.s(m,2,"0");case"h":return J(1);case"hh":return J(2);case"a":return le(m,T,!0);case"A":return le(m,T,!1);case"m":return String(T);case"mm":return ie.s(T,2,"0");case"s":return String(v.$s);case"ss":return ie.s(v.$s,2,"0");case"SSS":return ie.s(v.$ms,3,"0");case"Z":return g}return null}(Ce)||g.replace(":","")})},I.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},I.diff=function(A,v,d){var _,g=this,m=ie.p(v),T=pe(A),Y=(T.utcOffset()-this.utcOffset())*s,Z=this-T,ce=function(){return ie.m(g,T)};switch(m){case M:_=ce()/12;break;case L:_=ce();break;case k:_=ce()/3;break;case O:_=(Z-Y)/6048e5;break;case C:_=(Z-Y)/864e5;break;case b:_=Z/l;break;case c:_=Z/s;break;case f:_=Z/r;break;default:_=Z}return d?_:ie.a(_)},I.daysInMonth=function(){return this.endOf(L).$D},I.$locale=function(){return fe[this.$L]},I.locale=function(A,v){if(!A)return this.$L;var d=this.clone(),_=se(A,v,!0);return _&&(d.$L=_),d},I.clone=function(){return ie.w(this.$d,this)},I.toDate=function(){return new Date(this.valueOf())},I.toJSON=function(){return this.isValid()?this.toISOString():null},I.toISOString=function(){return this.$d.toISOString()},I.toString=function(){return this.$d.toUTCString()},j}(),Oe=Ae.prototype;return pe.prototype=Oe,[["$ms",p],["$s",f],["$m",c],["$H",b],["$W",C],["$M",L],["$y",M],["$D",R]].forEach(function(j){Oe[j[1]]=function(I){return this.$g(I,j[0],j[1])}}),pe.extend=function(j,I){return j.$i||(j(I,Ae,pe),j.$i=!0),pe},pe.locale=se,pe.isDayjs=re,pe.unix=function(j){return pe(1e3*j)},pe.en=fe[H],pe.Ls=fe,pe.p={},pe})}(ko)),ko.exports}var Qg=Kg();const ke=wo(Qg);function Jg({direction:i,levelIndex:n,rowIndex:r,cellIndex:s,size:l}){switch(i){case"up":return n===0&&r===0?null:r===0?{levelIndex:n-1,rowIndex:s<=l[n-1][l[n-1].length-1]-1?l[n-1].length-1:l[n-1].length-2,cellIndex:s}:{levelIndex:n,rowIndex:r-1,cellIndex:s};case"down":return r===l[n].length-1?{levelIndex:n+1,rowIndex:0,cellIndex:s}:r===l[n].length-2&&s>=l[n][l[n].length-1]?{levelIndex:n+1,rowIndex:0,cellIndex:s}:{levelIndex:n,rowIndex:r+1,cellIndex:s};case"left":return n===0&&r===0&&s===0?null:r===0&&s===0?{levelIndex:n-1,rowIndex:l[n-1].length-1,cellIndex:l[n-1][l[n-1].length-1]-1}:s===0?{levelIndex:n,rowIndex:r-1,cellIndex:l[n][r-1]-1}:{levelIndex:n,rowIndex:r,cellIndex:s-1};case"right":return r===l[n].length-1&&s===l[n][r]-1?{levelIndex:n+1,rowIndex:0,cellIndex:0}:s===l[n][r]-1?{levelIndex:n,rowIndex:r+1,cellIndex:0}:{levelIndex:n,rowIndex:r,cellIndex:s+1};default:return{levelIndex:n,rowIndex:r,cellIndex:s}}}function Sc({controlsRef:i,direction:n,levelIndex:r,rowIndex:s,cellIndex:l,size:p}){var b,C,O;const f=Jg({direction:n,size:p,rowIndex:s,cellIndex:l,levelIndex:r});if(!f)return;const c=(O=(C=(b=i.current)==null?void 0:b[f.levelIndex])==null?void 0:C[f.rowIndex])==null?void 0:O[f.cellIndex];c&&(c.disabled||c.getAttribute("data-hidden")||c.getAttribute("data-outside")?Sc({controlsRef:i,direction:n,levelIndex:f.levelIndex,cellIndex:f.cellIndex,rowIndex:f.rowIndex,size:p}):c.focus())}function Xg(i){switch(i){case"ArrowDown":return"down";case"ArrowUp":return"up";case"ArrowRight":return"right";case"ArrowLeft":return"left";default:return null}}function e1(i){var n;return(n=i.current)==null?void 0:n.map(r=>r.map(s=>s.length))}function Sa({controlsRef:i,levelIndex:n,rowIndex:r,cellIndex:s,event:l}){const p=Xg(l.key);if(p){l.preventDefault();const f=e1(i);Sc({controlsRef:i,direction:p,levelIndex:n,rowIndex:r,cellIndex:s,size:f})}}function t1(i,n){if(!i||!n)return n;const r=i.getHours(),s=i.getMinutes(),l=i.getSeconds(),p=i.getMilliseconds(),f=new Date(n);return f.setHours(r),f.setMinutes(s),f.setSeconds(l),f.setMilliseconds(p),f}var Io={exports:{}},n1=Io.exports,Cc;function r1(){return Cc||(Cc=1,function(i,n){(function(r,s){i.exports=s()})(n1,function(){var r={year:0,month:1,day:2,hour:3,minute:4,second:5},s={};return function(l,p,f){var c,b=function(k,M,R){R===void 0&&(R={});var E=new Date(k),N=function(Q,te){te===void 0&&(te={});var X=te.timeZoneName||"short",ae=Q+"|"+X,H=s[ae];return H||(H=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:Q,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:X}),s[ae]=H),H}(M,R);return N.formatToParts(E)},C=function(k,M){for(var R=b(k,M),E=[],N=0;N<R.length;N+=1){var Q=R[N],te=Q.type,X=Q.value,ae=r[te];ae>=0&&(E[ae]=parseInt(X,10))}var H=E[3],fe=H===24?0:H,ee=E[0]+"-"+E[1]+"-"+E[2]+" "+fe+":"+E[4]+":"+E[5]+":000",re=+k;return(f.utc(ee).valueOf()-(re-=re%1e3))/6e4},O=p.prototype;O.tz=function(k,M){k===void 0&&(k=c);var R,E=this.utcOffset(),N=this.toDate(),Q=N.toLocaleString("en-US",{timeZone:k}),te=Math.round((N-new Date(Q))/1e3/60),X=15*-Math.round(N.getTimezoneOffset()/15)-te;if(!Number(X))R=this.utcOffset(0,M);else if(R=f(Q,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(X,!0),M){var ae=R.utcOffset();R=R.add(E-ae,"minute")}return R.$x.$timezone=k,R},O.offsetName=function(k){var M=this.$x.$timezone||f.tz.guess(),R=b(this.valueOf(),M,{timeZoneName:k}).find(function(E){return E.type.toLowerCase()==="timezonename"});return R&&R.value};var L=O.startOf;O.startOf=function(k,M){if(!this.$x||!this.$x.$timezone)return L.call(this,k,M);var R=f(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return L.call(R,k,M).tz(this.$x.$timezone,!0)},f.tz=function(k,M,R){var E=R&&M,N=R||M||c,Q=C(+f(),N);if(typeof k!="string")return f(k).tz(N);var te=function(fe,ee,re){var se=fe-60*ee*1e3,pe=C(se,re);if(ee===pe)return[se,ee];var ie=C(se-=60*(pe-ee)*1e3,re);return pe===ie?[se,pe]:[fe-60*Math.min(pe,ie)*1e3,Math.max(pe,ie)]}(f.utc(k,E).valueOf(),Q,N),X=te[0],ae=te[1],H=f(X).utcOffset(ae);return H.$x.$timezone=N,H},f.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},f.tz.setDefault=function(k){c=k}}})}(Io)),Io.exports}var i1=r1();const o1=wo(i1);var $o={exports:{}},s1=$o.exports,Ac;function a1(){return Ac||(Ac=1,function(i,n){(function(r,s){i.exports=s()})(s1,function(){var r="minute",s=/[+-]\d\d(?::?\d\d)?/g,l=/([+-]|\d\d)/g;return function(p,f,c){var b=f.prototype;c.utc=function(E){var N={date:E,utc:!0,args:arguments};return new f(N)},b.utc=function(E){var N=c(this.toDate(),{locale:this.$L,utc:!0});return E?N.add(this.utcOffset(),r):N},b.local=function(){return c(this.toDate(),{locale:this.$L,utc:!1})};var C=b.parse;b.parse=function(E){E.utc&&(this.$u=!0),this.$utils().u(E.$offset)||(this.$offset=E.$offset),C.call(this,E)};var O=b.init;b.init=function(){if(this.$u){var E=this.$d;this.$y=E.getUTCFullYear(),this.$M=E.getUTCMonth(),this.$D=E.getUTCDate(),this.$W=E.getUTCDay(),this.$H=E.getUTCHours(),this.$m=E.getUTCMinutes(),this.$s=E.getUTCSeconds(),this.$ms=E.getUTCMilliseconds()}else O.call(this)};var L=b.utcOffset;b.utcOffset=function(E,N){var Q=this.$utils().u;if(Q(E))return this.$u?0:Q(this.$offset)?L.call(this):this.$offset;if(typeof E=="string"&&(E=function(H){H===void 0&&(H="");var fe=H.match(s);if(!fe)return null;var ee=(""+fe[0]).match(l)||["-",0,0],re=ee[0],se=60*+ee[1]+ +ee[2];return se===0?0:re==="+"?se:-se}(E),E===null))return this;var te=Math.abs(E)<=16?60*E:E,X=this;if(N)return X.$offset=te,X.$u=E===0,X;if(E!==0){var ae=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(X=this.local().add(te+ae,r)).$offset=te,X.$x.$localOffset=ae}else X=this.utc();return X};var k=b.format;b.format=function(E){var N=E||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return k.call(this,N)},b.valueOf=function(){var E=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*E},b.isUTC=function(){return!!this.$u},b.toISOString=function(){return this.toDate().toISOString()},b.toString=function(){return this.toDate().toUTCString()};var M=b.toDate;b.toDate=function(E){return E==="s"&&this.$offset?c(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():M.call(this)};var R=b.diff;b.diff=function(E,N,Q){if(E&&this.$u===E.$u)return R.call(this,E,N,Q);var te=this.local(),X=c(E).local();return R.call(te,X,N,Q)}}})}($o)),$o.exports}var u1=a1();const l1=wo(u1);ke.extend(l1),ke.extend(o1);function c1(i,n){return n?ke(i).tz(n).utcOffset()+i.getTimezoneOffset():0}const Oc=(i,n,r)=>{if(!i)return null;if(!n)return i;let s=c1(i,n);return r==="remove"&&(s*=-1),ke(i).add(s,"minutes").toDate()};function Er(i,n,r,s){return s||!n?n:Array.isArray(n)?n.map(l=>Oc(l,r,i)):Oc(n,r,i)}const f1={locale:"en",timezone:null,firstDayOfWeek:1,weekendDays:[0,6],labelSeparator:"–",consistentWeeks:!1},h1=ye.createContext(f1);function fn(){const i=ye.useContext(h1),n=ye.useCallback(f=>f||i.locale,[i.locale]),r=ye.useCallback(f=>f||i.timezone||void 0,[i.timezone]),s=ye.useCallback(f=>typeof f=="number"?f:i.firstDayOfWeek,[i.firstDayOfWeek]),l=ye.useCallback(f=>Array.isArray(f)?f:i.weekendDays,[i.weekendDays]),p=ye.useCallback(f=>typeof f=="string"?f:i.labelSeparator,[i.labelSeparator]);return{...i,getLocale:n,getTimezone:r,getFirstDayOfWeek:s,getWeekendDays:l,getLabelSeparator:p}}function d1(i,n){const r=fn(),s=l=>Er("remove",l,r.getTimezone()).toISOString();if(n==="range"&&Array.isArray(i)){const[l,p]=i;return l?p?`${s(l)} – ${s(p)}`:`${s(l)} –`:""}return n==="multiple"&&Array.isArray(i)?i.map(l=>l&&s(l)).filter(Boolean).join(", "):!Array.isArray(i)&&i?s(i):""}function Tc({value:i,type:n,name:r,form:s}){return D.jsx("input",{type:"hidden",value:d1(i,n),name:r,form:s})}Tc.displayName="@mantine/dates/HiddenDatesInput";function Dc(i){var n,r,s="";if(typeof i=="string"||typeof i=="number")s+=i;else if(typeof i=="object")if(Array.isArray(i)){var l=i.length;for(n=0;n<l;n++)i[n]&&(r=Dc(i[n]))&&(s&&(s+=" "),s+=r)}else for(r in i)i[r]&&(s&&(s+=" "),s+=r);return s}function mt(){for(var i,n,r=0,s="",l=arguments.length;r<l;r++)(i=arguments[r])&&(n=Dc(i))&&(s&&(s+=" "),s+=n);return s}var Ec={day:"m_396ce5cb"};const p1={},g1=B.createVarsResolver((i,{size:n})=>({day:{"--day-size":B.getSize(n,"day-size")}})),Ca=B.factory((i,n)=>{const r=B.useProps("Day",p1,i),{classNames:s,className:l,style:p,styles:f,unstyled:c,vars:b,date:C,disabled:O,__staticSelector:L,weekend:k,outside:M,selected:R,renderDay:E,inRange:N,firstInRange:Q,lastInRange:te,hidden:X,static:ae,highlightToday:H,...fe}=r,ee=B.useStyles({name:L||"Day",classes:Ec,props:r,className:l,style:p,classNames:s,styles:f,unstyled:c,vars:b,varsResolver:g1,rootSelector:"day"}),re=fn();return D.jsx(B.UnstyledButton,{...ee("day",{style:X?{display:"none"}:void 0}),component:ae?"div":"button",ref:n,disabled:O,"data-today":ke(C).isSame(Er("add",new Date,re.getTimezone()),"day")||void 0,"data-hidden":X||void 0,"data-highlight-today":H||void 0,"data-disabled":O||void 0,"data-weekend":!O&&!M&&k||void 0,"data-outside":!O&&M||void 0,"data-selected":!O&&R||void 0,"data-in-range":N&&!O||void 0,"data-first-in-range":Q&&!O||void 0,"data-last-in-range":te&&!O||void 0,"data-static":ae||void 0,unstyled:c,...fe,children:(E==null?void 0:E(C))||ke(C).date()})});Ca.classes=Ec,Ca.displayName="@mantine/dates/Day";function v1({locale:i,format:n="dd",firstDayOfWeek:r=1}){const s=ke().day(r),l=[];for(let p=0;p<7;p+=1)typeof n=="string"?l.push(ke(s).add(p,"days").locale(i).format(n)):l.push(n(ke(s).add(p,"days").toDate()));return l}var Mc={weekday:"m_18a3eca"};const m1={},y1=B.createVarsResolver((i,{size:n})=>({weekdaysRow:{"--wr-fz":B.getFontSize(n),"--wr-spacing":B.getSpacing(n)}})),Aa=B.factory((i,n)=>{const r=B.useProps("WeekdaysRow",m1,i),{classNames:s,className:l,style:p,styles:f,unstyled:c,vars:b,locale:C,firstDayOfWeek:O,weekdayFormat:L,cellComponent:k="th",__staticSelector:M,withWeekNumbers:R,...E}=r,N=B.useStyles({name:M||"WeekdaysRow",classes:Mc,props:r,className:l,style:p,classNames:s,styles:f,unstyled:c,vars:b,varsResolver:y1,rootSelector:"weekdaysRow"}),Q=fn(),te=v1({locale:Q.getLocale(C),format:L,firstDayOfWeek:Q.getFirstDayOfWeek(O)}).map((X,ae)=>D.jsx(k,{...N("weekday"),children:X},ae));return D.jsxs(B.Box,{component:"tr",ref:n,...N("weekdaysRow"),...E,children:[R&&D.jsx(k,{...N("weekday"),children:"#"}),te]})});Aa.classes=Mc,Aa.displayName="@mantine/dates/WeekdaysRow";function w1(i,n=1){let r=ke(i);const s=n===0?6:n-1;for(;r.day()!==s;)r=r.add(1,"day");return r.toDate()}function _1(i,n=1){let r=ke(i);for(;r.day()!==n;)r=r.subtract(1,"day");return r.toDate()}function b1({month:i,firstDayOfWeek:n=1,consistentWeeks:r}){const s=ke(i).subtract(ke(i).date()-1,"day"),l=ke(s).startOf("day"),p=l.toDate(),f=l.add(+l.daysInMonth()-1,"day").toDate(),c=w1(f,n),b=_1(p,n),C=[];for(;b<=c;){const O=[];for(let L=0;L<7;L+=1)O.push(new Date(b)),b.setDate(b.getDate()+1);C.push(O)}if(r&&C.length<6){const O=C[C.length-1],L=O[O.length-1],k=new Date(L);for(k.setDate(k.getDate()+1);C.length<6;){const M=[];for(let R=0;R<7;R+=1)M.push(new Date(k)),k.setDate(k.getDate()+1);C.push(M)}}return C}function Rc(i,n){return n instanceof Date?ke(i).isAfter(ke(n).subtract(1,"day"),"day"):!0}function Lc(i,n){return n instanceof Date?ke(i).isBefore(ke(n).add(1,"day"),"day"):!0}function x1(i,n,r,s,l,p,f){const c=i.flat().filter(O=>{var L;return Lc(O,r)&&Rc(O,n)&&!(l!=null&&l(O))&&!((L=s==null?void 0:s(O))!=null&&L.disabled)&&(!p||ke(O).isSame(ke(f),"month"))}),b=c.find(O=>{var L;return(L=s==null?void 0:s(O))==null?void 0:L.selected});if(b)return b;const C=c.find(O=>ke().isSame(O,"date"));return C||c[0]}var Po={exports:{}},S1=Po.exports,kc;function C1(){return kc||(kc=1,function(i,n){(function(r,s){i.exports=s()})(S1,function(){var r="day";return function(s,l,p){var f=function(C){return C.add(4-C.isoWeekday(),r)},c=l.prototype;c.isoWeekYear=function(){return f(this).year()},c.isoWeek=function(C){if(!this.$utils().u(C))return this.add(7*(C-this.isoWeek()),r);var O,L,k,M,R=f(this),E=(O=this.isoWeekYear(),L=this.$u,k=(L?p.utc:p)().year(O).startOf("year"),M=4-k.isoWeekday(),k.isoWeekday()>4&&(M+=7),k.add(M,r));return R.diff(E,"week")+1},c.isoWeekday=function(C){return this.$utils().u(C)?this.day()||7:this.day(this.day()%7?C:C-7)};var b=c.startOf;c.startOf=function(C,O){var L=this.$utils(),k=!!L.u(O)||O;return L.p(C)==="isoweek"?k?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):b.bind(this)(C,O)}}})}(Po)),Po.exports}var A1=C1();const O1=wo(A1);ke.extend(O1);function T1(i){const n=i.find(r=>ke(r).day()===1);return ke(n).isoWeek()}var Ic={month:"m_cc9820d3",monthCell:"m_8f457cd5",weekNumber:"m_6cff9dea"};const D1={withCellSpacing:!0},E1=B.createVarsResolver((i,{size:n})=>({weekNumber:{"--wn-fz":B.getFontSize(n),"--wn-size":B.getSize(n,"wn-size")}})),No=B.factory((i,n)=>{const r=B.useProps("Month",D1,i),{classNames:s,className:l,style:p,styles:f,unstyled:c,vars:b,__staticSelector:C,locale:O,firstDayOfWeek:L,weekdayFormat:k,month:M,weekendDays:R,getDayProps:E,excludeDate:N,minDate:Q,maxDate:te,renderDay:X,hideOutsideDates:ae,hideWeekdays:H,getDayAriaLabel:fe,static:ee,__getDayRef:re,__onDayKeyDown:se,__onDayClick:pe,__onDayMouseEnter:ie,__preventFocus:Ae,__stopPropagation:Oe,withCellSpacing:j,size:I,highlightToday:A,withWeekNumbers:v,...d}=r,_=B.useStyles({name:C||"Month",classes:Ic,props:r,className:l,style:p,classNames:s,styles:f,unstyled:c,vars:b,varsResolver:E1,rootSelector:"month"}),g=fn(),m=b1({month:M,firstDayOfWeek:g.getFirstDayOfWeek(L),consistentWeeks:g.consistentWeeks}),T=x1(m,Q,te,E,N,ae,M),{resolvedClassNames:Y,resolvedStyles:Z}=B.useResolvedStylesApi({classNames:s,styles:f,props:r}),ce=m.map((de,we)=>{const J=de.map((le,Ce)=>{const be=!ke(le).isSame(ke(M),"month"),z=(fe==null?void 0:fe(le))||ke(le).locale(O||g.locale).format("D MMMM YYYY"),q=E==null?void 0:E(le),W=ke(le).isSame(T,"date");return D.jsx("td",{..._("monthCell"),"data-with-spacing":j||void 0,children:D.jsx(Ca,{__staticSelector:C||"Month",classNames:Y,styles:Z,unstyled:c,"data-mantine-stop-propagation":Oe||void 0,highlightToday:A,renderDay:X,date:le,size:I,weekend:g.getWeekendDays(R).includes(le.getDay()),outside:be,hidden:ae?be:!1,"aria-label":z,static:ee,disabled:(N==null?void 0:N(le))||!Lc(le,te)||!Rc(le,Q),ref:K=>re==null?void 0:re(we,Ce,K),...q,onKeyDown:K=>{var ue;(ue=q==null?void 0:q.onKeyDown)==null||ue.call(q,K),se==null||se(K,{rowIndex:we,cellIndex:Ce,date:le})},onMouseEnter:K=>{var ue;(ue=q==null?void 0:q.onMouseEnter)==null||ue.call(q,K),ie==null||ie(K,le)},onClick:K=>{var ue;(ue=q==null?void 0:q.onClick)==null||ue.call(q,K),pe==null||pe(K,le)},onMouseDown:K=>{var ue;(ue=q==null?void 0:q.onMouseDown)==null||ue.call(q,K),Ae&&K.preventDefault()},tabIndex:Ae||!W?-1:0})},le.toString())});return D.jsxs("tr",{..._("monthRow"),children:[v&&D.jsx("td",{..._("weekNumber"),children:T1(de)}),J]},we)});return D.jsxs(B.Box,{component:"table",..._("month"),size:I,ref:n,...d,children:[!H&&D.jsx("thead",{..._("monthThead"),children:D.jsx(Aa,{__staticSelector:C||"Month",locale:O,firstDayOfWeek:L,weekdayFormat:k,size:I,classNames:Y,styles:Z,unstyled:c,withWeekNumbers:v})}),D.jsx("tbody",{..._("monthTbody"),children:ce})]})});No.classes=Ic,No.displayName="@mantine/dates/Month";var $c={pickerControl:"m_dc6a3c71"};const M1={},R1=B.createVarsResolver((i,{size:n})=>({pickerControl:{"--dpc-fz":B.getFontSize(n),"--dpc-size":B.getSize(n,"dpc-size")}})),Bo=B.factory((i,n)=>{const r=B.useProps("PickerControl",M1,i),{classNames:s,className:l,style:p,styles:f,unstyled:c,vars:b,firstInRange:C,lastInRange:O,inRange:L,__staticSelector:k,selected:M,disabled:R,...E}=r,N=B.useStyles({name:k||"PickerControl",classes:$c,props:r,className:l,style:p,classNames:s,styles:f,unstyled:c,vars:b,varsResolver:R1,rootSelector:"pickerControl"});return D.jsx(B.UnstyledButton,{...N("pickerControl"),ref:n,unstyled:c,"data-picker-control":!0,"data-selected":M&&!R||void 0,"data-disabled":R||void 0,"data-in-range":L&&!R&&!M||void 0,"data-first-in-range":C&&!R||void 0,"data-last-in-range":O&&!R||void 0,disabled:R,...E})});Bo.classes=$c,Bo.displayName="@mantine/dates/PickerControl";function Pc(i,n,r){return!n&&!r?!1:!!(n&&ke(i).isBefore(n,"year")||r&&ke(i).isAfter(r,"year"))}function L1(i,n,r,s){const l=i.flat().filter(c=>{var b;return!Pc(c,n,r)&&!((b=s==null?void 0:s(c))!=null&&b.disabled)}),p=l.find(c=>{var b;return(b=s==null?void 0:s(c))==null?void 0:b.selected});if(p)return p;const f=l.find(c=>ke().isSame(c,"year"));return f||l[0]}function Nc(i){const n=i.getFullYear(),r=n-n%10;let s=0;const l=[[],[],[],[]];for(let p=0;p<4;p+=1){const f=p===3?1:3;for(let c=0;c<f;c+=1)l[p].push(new Date(r+s,0)),s+=1}return l}var Bc={yearsList:"m_9206547b",yearsListCell:"m_c5a19c7d"};const k1={yearsListFormat:"YYYY",withCellSpacing:!0},jo=B.factory((i,n)=>{const r=B.useProps("YearsList",k1,i),{classNames:s,className:l,style:p,styles:f,unstyled:c,vars:b,decade:C,yearsListFormat:O,locale:L,minDate:k,maxDate:M,getYearControlProps:R,__staticSelector:E,__getControlRef:N,__onControlKeyDown:Q,__onControlClick:te,__onControlMouseEnter:X,__preventFocus:ae,__stopPropagation:H,withCellSpacing:fe,size:ee,...re}=r,se=B.useStyles({name:E||"YearsList",classes:Bc,props:r,className:l,style:p,classNames:s,styles:f,unstyled:c,vars:b,rootSelector:"yearsList"}),pe=fn(),ie=Nc(C),Ae=L1(ie,k,M,R),Oe=ie.map((j,I)=>{const A=j.map((v,d)=>{const _=R==null?void 0:R(v),g=ke(v).isSame(Ae,"year");return D.jsx("td",{...se("yearsListCell"),"data-with-spacing":fe||void 0,children:D.jsx(Bo,{...se("yearsListControl"),size:ee,unstyled:c,"data-mantine-stop-propagation":H||void 0,disabled:Pc(v,k,M),ref:m=>N==null?void 0:N(I,d,m),..._,onKeyDown:m=>{var T;(T=_==null?void 0:_.onKeyDown)==null||T.call(_,m),Q==null||Q(m,{rowIndex:I,cellIndex:d,date:v})},onClick:m=>{var T;(T=_==null?void 0:_.onClick)==null||T.call(_,m),te==null||te(m,v)},onMouseEnter:m=>{var T;(T=_==null?void 0:_.onMouseEnter)==null||T.call(_,m),X==null||X(m,v)},onMouseDown:m=>{var T;(T=_==null?void 0:_.onMouseDown)==null||T.call(_,m),ae&&m.preventDefault()},tabIndex:ae||!g?-1:0,children:ke(v).locale(pe.getLocale(L)).format(O)})},d)});return D.jsx("tr",{...se("yearsListRow"),children:A},I)});return D.jsx(B.Box,{component:"table",ref:n,size:ee,...se("yearsList"),...re,children:D.jsx("tbody",{children:Oe})})});jo.classes=Bc,jo.displayName="@mantine/dates/YearsList";function jc(i,n,r){return!n&&!r?!1:!!(n&&ke(i).isBefore(n,"month")||r&&ke(i).isAfter(r,"month"))}function I1(i,n,r,s){const l=i.flat().filter(c=>{var b;return!jc(c,n,r)&&!((b=s==null?void 0:s(c))!=null&&b.disabled)}),p=l.find(c=>{var b;return(b=s==null?void 0:s(c))==null?void 0:b.selected});if(p)return p;const f=l.find(c=>ke().isSame(c,"month"));return f||l[0]}function $1(i){const n=ke(i).startOf("year").toDate(),r=[[],[],[],[]];let s=0;for(let l=0;l<4;l+=1)for(let p=0;p<3;p+=1)r[l].push(ke(n).add(s,"months").toDate()),s+=1;return r}var Uc={monthsList:"m_2a6c32d",monthsListCell:"m_fe27622f"};const P1={monthsListFormat:"MMM",withCellSpacing:!0},Uo=B.factory((i,n)=>{const r=B.useProps("MonthsList",P1,i),{classNames:s,className:l,style:p,styles:f,unstyled:c,vars:b,__staticSelector:C,year:O,monthsListFormat:L,locale:k,minDate:M,maxDate:R,getMonthControlProps:E,__getControlRef:N,__onControlKeyDown:Q,__onControlClick:te,__onControlMouseEnter:X,__preventFocus:ae,__stopPropagation:H,withCellSpacing:fe,size:ee,...re}=r,se=B.useStyles({name:C||"MonthsList",classes:Uc,props:r,className:l,style:p,classNames:s,styles:f,unstyled:c,vars:b,rootSelector:"monthsList"}),pe=fn(),ie=$1(O),Ae=I1(ie,M,R,E),Oe=ie.map((j,I)=>{const A=j.map((v,d)=>{const _=E==null?void 0:E(v),g=ke(v).isSame(Ae,"month");return D.jsx("td",{...se("monthsListCell"),"data-with-spacing":fe||void 0,children:D.jsx(Bo,{...se("monthsListControl"),size:ee,unstyled:c,__staticSelector:C||"MonthsList","data-mantine-stop-propagation":H||void 0,disabled:jc(v,M,R),ref:m=>N==null?void 0:N(I,d,m),..._,onKeyDown:m=>{var T;(T=_==null?void 0:_.onKeyDown)==null||T.call(_,m),Q==null||Q(m,{rowIndex:I,cellIndex:d,date:v})},onClick:m=>{var T;(T=_==null?void 0:_.onClick)==null||T.call(_,m),te==null||te(m,v)},onMouseEnter:m=>{var T;(T=_==null?void 0:_.onMouseEnter)==null||T.call(_,m),X==null||X(m,v)},onMouseDown:m=>{var T;(T=_==null?void 0:_.onMouseDown)==null||T.call(_,m),ae&&m.preventDefault()},tabIndex:ae||!g?-1:0,children:ke(v).locale(pe.getLocale(k)).format(L)})},d)});return D.jsx("tr",{...se("monthsListRow"),children:A},I)});return D.jsx(B.Box,{component:"table",ref:n,size:ee,...se("monthsList"),...re,children:D.jsx("tbody",{children:Oe})})});Uo.classes=Uc,Uo.displayName="@mantine/dates/MonthsList";var zc={calendarHeader:"m_730a79ed",calendarHeaderLevel:"m_f6645d97",calendarHeaderControl:"m_2351eeb0",calendarHeaderControlIcon:"m_367dc749"};const N1={nextDisabled:!1,previousDisabled:!1,hasNextLevel:!0,withNext:!0,withPrevious:!0},B1=B.createVarsResolver((i,{size:n})=>({calendarHeader:{"--dch-control-size":B.getSize(n,"dch-control-size"),"--dch-fz":B.getFontSize(n)}})),rr=B.factory((i,n)=>{const r=B.useProps("CalendarHeader",N1,i),{classNames:s,className:l,style:p,styles:f,unstyled:c,vars:b,nextIcon:C,previousIcon:O,nextLabel:L,previousLabel:k,onNext:M,onPrevious:R,onLevelClick:E,label:N,nextDisabled:Q,previousDisabled:te,hasNextLevel:X,levelControlAriaLabel:ae,withNext:H,withPrevious:fe,__staticSelector:ee,__preventFocus:re,__stopPropagation:se,...pe}=r,ie=B.useStyles({name:ee||"CalendarHeader",classes:zc,props:r,className:l,style:p,classNames:s,styles:f,unstyled:c,vars:b,varsResolver:B1,rootSelector:"calendarHeader"}),Ae=re?Oe=>Oe.preventDefault():void 0;return D.jsxs(B.Box,{...ie("calendarHeader"),ref:n,...pe,children:[fe&&D.jsx(B.UnstyledButton,{...ie("calendarHeaderControl"),"data-direction":"previous","aria-label":k,onClick:R,unstyled:c,onMouseDown:Ae,disabled:te,"data-disabled":te||void 0,tabIndex:re||te?-1:0,"data-mantine-stop-propagation":se||void 0,children:O||D.jsx(B.AccordionChevron,{...ie("calendarHeaderControlIcon"),"data-direction":"previous",size:"45%"})}),D.jsx(B.UnstyledButton,{component:X?"button":"div",...ie("calendarHeaderLevel"),onClick:X?E:void 0,unstyled:c,onMouseDown:X?Ae:void 0,disabled:!X,"data-static":!X||void 0,"aria-label":ae,tabIndex:re||!X?-1:0,"data-mantine-stop-propagation":se||void 0,children:N}),H&&D.jsx(B.UnstyledButton,{...ie("calendarHeaderControl"),"data-direction":"next","aria-label":L,onClick:M,unstyled:c,onMouseDown:Ae,disabled:Q,"data-disabled":Q||void 0,tabIndex:re||Q?-1:0,"data-mantine-stop-propagation":se||void 0,children:C||D.jsx(B.AccordionChevron,{...ie("calendarHeaderControlIcon"),"data-direction":"next",size:"45%"})})]})});rr.classes=zc,rr.displayName="@mantine/dates/CalendarHeader";function j1(i){const n=Nc(i);return[n[0][0],n[3][0]]}const U1={decadeLabelFormat:"YYYY"},zo=B.factory((i,n)=>{const r=B.useProps("DecadeLevel",U1,i),{decade:s,locale:l,minDate:p,maxDate:f,yearsListFormat:c,getYearControlProps:b,__getControlRef:C,__onControlKeyDown:O,__onControlClick:L,__onControlMouseEnter:k,withCellSpacing:M,__preventFocus:R,nextIcon:E,previousIcon:N,nextLabel:Q,previousLabel:te,onNext:X,onPrevious:ae,nextDisabled:H,previousDisabled:fe,levelControlAriaLabel:ee,withNext:re,withPrevious:se,decadeLabelFormat:pe,classNames:ie,styles:Ae,unstyled:Oe,__staticSelector:j,__stopPropagation:I,size:A,...v}=r,d=fn(),[_,g]=j1(s),m={__staticSelector:j||"DecadeLevel",classNames:ie,styles:Ae,unstyled:Oe,size:A},T=typeof H=="boolean"?H:f?!ke(g).endOf("year").isBefore(f):!1,Y=typeof fe=="boolean"?fe:p?!ke(_).startOf("year").isAfter(p):!1,Z=(ce,de)=>ke(ce).locale(l||d.locale).format(de);return D.jsxs(B.Box,{"data-decade-level":!0,size:A,ref:n,...v,children:[D.jsx(rr,{label:typeof pe=="function"?pe(_,g):`${Z(_,pe)} – ${Z(g,pe)}`,__preventFocus:R,__stopPropagation:I,nextIcon:E,previousIcon:N,nextLabel:Q,previousLabel:te,onNext:X,onPrevious:ae,nextDisabled:T,previousDisabled:Y,hasNextLevel:!1,levelControlAriaLabel:ee,withNext:re,withPrevious:se,...m}),D.jsx(jo,{decade:s,locale:l,minDate:p,maxDate:f,yearsListFormat:c,getYearControlProps:b,__getControlRef:C,__onControlKeyDown:O,__onControlClick:L,__onControlMouseEnter:k,__preventFocus:R,__stopPropagation:I,withCellSpacing:M,...m})]})});zo.classes={...jo.classes,...rr.classes},zo.displayName="@mantine/dates/DecadeLevel";const z1={yearLabelFormat:"YYYY"},Fo=B.factory((i,n)=>{const r=B.useProps("YearLevel",z1,i),{year:s,locale:l,minDate:p,maxDate:f,monthsListFormat:c,getMonthControlProps:b,__getControlRef:C,__onControlKeyDown:O,__onControlClick:L,__onControlMouseEnter:k,withCellSpacing:M,__preventFocus:R,nextIcon:E,previousIcon:N,nextLabel:Q,previousLabel:te,onNext:X,onPrevious:ae,onLevelClick:H,nextDisabled:fe,previousDisabled:ee,hasNextLevel:re,levelControlAriaLabel:se,withNext:pe,withPrevious:ie,yearLabelFormat:Ae,__staticSelector:Oe,__stopPropagation:j,size:I,classNames:A,styles:v,unstyled:d,..._}=r,g=fn(),m={__staticSelector:Oe||"YearLevel",classNames:A,styles:v,unstyled:d,size:I},T=typeof fe=="boolean"?fe:f?!ke(s).endOf("year").isBefore(f):!1,Y=typeof ee=="boolean"?ee:p?!ke(s).startOf("year").isAfter(p):!1;return D.jsxs(B.Box,{"data-year-level":!0,size:I,ref:n,..._,children:[D.jsx(rr,{label:typeof Ae=="function"?Ae(s):ke(s).locale(l||g.locale).format(Ae),__preventFocus:R,__stopPropagation:j,nextIcon:E,previousIcon:N,nextLabel:Q,previousLabel:te,onNext:X,onPrevious:ae,onLevelClick:H,nextDisabled:T,previousDisabled:Y,hasNextLevel:re,levelControlAriaLabel:se,withNext:pe,withPrevious:ie,...m}),D.jsx(Uo,{year:s,locale:l,minDate:p,maxDate:f,monthsListFormat:c,getMonthControlProps:b,__getControlRef:C,__onControlKeyDown:O,__onControlClick:L,__onControlMouseEnter:k,__preventFocus:R,__stopPropagation:j,withCellSpacing:M,...m})]})});Fo.classes={...rr.classes,...Uo.classes},Fo.displayName="@mantine/dates/YearLevel";const F1={monthLabelFormat:"MMMM YYYY"},Wo=B.factory((i,n)=>{const r=B.useProps("MonthLevel",F1,i),{month:s,locale:l,firstDayOfWeek:p,weekdayFormat:f,weekendDays:c,getDayProps:b,excludeDate:C,minDate:O,maxDate:L,renderDay:k,hideOutsideDates:M,hideWeekdays:R,getDayAriaLabel:E,__getDayRef:N,__onDayKeyDown:Q,__onDayClick:te,__onDayMouseEnter:X,withCellSpacing:ae,highlightToday:H,withWeekNumbers:fe,__preventFocus:ee,__stopPropagation:re,nextIcon:se,previousIcon:pe,nextLabel:ie,previousLabel:Ae,onNext:Oe,onPrevious:j,onLevelClick:I,nextDisabled:A,previousDisabled:v,hasNextLevel:d,levelControlAriaLabel:_,withNext:g,withPrevious:m,monthLabelFormat:T,classNames:Y,styles:Z,unstyled:ce,__staticSelector:de,size:we,static:J,...le}=r,Ce=fn(),be={__staticSelector:de||"MonthLevel",classNames:Y,styles:Z,unstyled:ce,size:we},z=typeof A=="boolean"?A:L?!ke(s).endOf("month").isBefore(L):!1,q=typeof v=="boolean"?v:O?!ke(s).startOf("month").isAfter(O):!1;return D.jsxs(B.Box,{"data-month-level":!0,size:we,ref:n,...le,children:[D.jsx(rr,{label:typeof T=="function"?T(s):ke(s).locale(l||Ce.locale).format(T),__preventFocus:ee,__stopPropagation:re,nextIcon:se,previousIcon:pe,nextLabel:ie,previousLabel:Ae,onNext:Oe,onPrevious:j,onLevelClick:I,nextDisabled:z,previousDisabled:q,hasNextLevel:d,levelControlAriaLabel:_,withNext:g,withPrevious:m,...be}),D.jsx(No,{month:s,locale:l,firstDayOfWeek:p,weekdayFormat:f,weekendDays:c,getDayProps:b,excludeDate:C,minDate:O,maxDate:L,renderDay:k,hideOutsideDates:M,hideWeekdays:R,getDayAriaLabel:E,__getDayRef:N,__onDayKeyDown:Q,__onDayClick:te,__onDayMouseEnter:X,__preventFocus:ee,__stopPropagation:re,static:J,withCellSpacing:ae,highlightToday:H,withWeekNumbers:fe,...be})]})});Wo.classes={...No.classes,...rr.classes},Wo.displayName="@mantine/dates/MonthLevel";var Fc={levelsGroup:"m_30b26e33"};const W1={},ir=B.factory((i,n)=>{const r=B.useProps("LevelsGroup",W1,i),{classNames:s,className:l,style:p,styles:f,unstyled:c,vars:b,__staticSelector:C,...O}=r,L=B.useStyles({name:C||"LevelsGroup",classes:Fc,props:r,className:l,style:p,classNames:s,styles:f,unstyled:c,vars:b,rootSelector:"levelsGroup"});return D.jsx(B.Box,{ref:n,...L("levelsGroup"),...O})});ir.classes=Fc,ir.displayName="@mantine/dates/LevelsGroup";const Y1={numberOfColumns:1},Yo=B.factory((i,n)=>{const r=B.useProps("DecadeLevelGroup",Y1,i),{decade:s,locale:l,minDate:p,maxDate:f,yearsListFormat:c,getYearControlProps:b,__onControlClick:C,__onControlMouseEnter:O,withCellSpacing:L,__preventFocus:k,nextIcon:M,previousIcon:R,nextLabel:E,previousLabel:N,onNext:Q,onPrevious:te,nextDisabled:X,previousDisabled:ae,classNames:H,styles:fe,unstyled:ee,__staticSelector:re,__stopPropagation:se,numberOfColumns:pe,levelControlAriaLabel:ie,decadeLabelFormat:Ae,size:Oe,vars:j,...I}=r,A=ye.useRef([]),v=Array(pe).fill(0).map((d,_)=>{const g=ke(s).add(_*10,"years").toDate();return D.jsx(zo,{size:Oe,yearsListFormat:c,decade:g,withNext:_===pe-1,withPrevious:_===0,decadeLabelFormat:Ae,__onControlClick:C,__onControlMouseEnter:O,__onControlKeyDown:(m,T)=>Sa({levelIndex:_,rowIndex:T.rowIndex,cellIndex:T.cellIndex,event:m,controlsRef:A}),__getControlRef:(m,T,Y)=>{Array.isArray(A.current[_])||(A.current[_]=[]),Array.isArray(A.current[_][m])||(A.current[_][m]=[]),A.current[_][m][T]=Y},levelControlAriaLabel:typeof ie=="function"?ie(g):ie,locale:l,minDate:p,maxDate:f,__preventFocus:k,__stopPropagation:se,nextIcon:M,previousIcon:R,nextLabel:E,previousLabel:N,onNext:Q,onPrevious:te,nextDisabled:X,previousDisabled:ae,getYearControlProps:b,__staticSelector:re||"DecadeLevelGroup",classNames:H,styles:fe,unstyled:ee,withCellSpacing:L},_)});return D.jsx(ir,{classNames:H,styles:fe,__staticSelector:re||"DecadeLevelGroup",ref:n,size:Oe,unstyled:ee,...I,children:v})});Yo.classes={...ir.classes,...zo.classes},Yo.displayName="@mantine/dates/DecadeLevelGroup";const q1={numberOfColumns:1},qo=B.factory((i,n)=>{const r=B.useProps("YearLevelGroup",q1,i),{year:s,locale:l,minDate:p,maxDate:f,monthsListFormat:c,getMonthControlProps:b,__onControlClick:C,__onControlMouseEnter:O,withCellSpacing:L,__preventFocus:k,nextIcon:M,previousIcon:R,nextLabel:E,previousLabel:N,onNext:Q,onPrevious:te,onLevelClick:X,nextDisabled:ae,previousDisabled:H,hasNextLevel:fe,classNames:ee,styles:re,unstyled:se,__staticSelector:pe,__stopPropagation:ie,numberOfColumns:Ae,levelControlAriaLabel:Oe,yearLabelFormat:j,size:I,vars:A,...v}=r,d=ye.useRef([]),_=Array(Ae).fill(0).map((g,m)=>{const T=ke(s).add(m,"years").toDate();return D.jsx(Fo,{size:I,monthsListFormat:c,year:T,withNext:m===Ae-1,withPrevious:m===0,yearLabelFormat:j,__stopPropagation:ie,__onControlClick:C,__onControlMouseEnter:O,__onControlKeyDown:(Y,Z)=>Sa({levelIndex:m,rowIndex:Z.rowIndex,cellIndex:Z.cellIndex,event:Y,controlsRef:d}),__getControlRef:(Y,Z,ce)=>{Array.isArray(d.current[m])||(d.current[m]=[]),Array.isArray(d.current[m][Y])||(d.current[m][Y]=[]),d.current[m][Y][Z]=ce},levelControlAriaLabel:typeof Oe=="function"?Oe(T):Oe,locale:l,minDate:p,maxDate:f,__preventFocus:k,nextIcon:M,previousIcon:R,nextLabel:E,previousLabel:N,onNext:Q,onPrevious:te,onLevelClick:X,nextDisabled:ae,previousDisabled:H,hasNextLevel:fe,getMonthControlProps:b,classNames:ee,styles:re,unstyled:se,__staticSelector:pe||"YearLevelGroup",withCellSpacing:L},m)});return D.jsx(ir,{classNames:ee,styles:re,__staticSelector:pe||"YearLevelGroup",ref:n,size:I,unstyled:se,...v,children:_})});qo.classes={...Fo.classes,...ir.classes},qo.displayName="@mantine/dates/YearLevelGroup";const H1={numberOfColumns:1},Ho=B.factory((i,n)=>{const r=B.useProps("MonthLevelGroup",H1,i),{month:s,locale:l,firstDayOfWeek:p,weekdayFormat:f,weekendDays:c,getDayProps:b,excludeDate:C,minDate:O,maxDate:L,renderDay:k,hideOutsideDates:M,hideWeekdays:R,getDayAriaLabel:E,__onDayClick:N,__onDayMouseEnter:Q,withCellSpacing:te,highlightToday:X,withWeekNumbers:ae,__preventFocus:H,nextIcon:fe,previousIcon:ee,nextLabel:re,previousLabel:se,onNext:pe,onPrevious:ie,onLevelClick:Ae,nextDisabled:Oe,previousDisabled:j,hasNextLevel:I,classNames:A,styles:v,unstyled:d,numberOfColumns:_,levelControlAriaLabel:g,monthLabelFormat:m,__staticSelector:T,__stopPropagation:Y,size:Z,static:ce,vars:de,...we}=r,J=ye.useRef([]),le=Array(_).fill(0).map((Ce,be)=>{const z=ke(s).add(be,"months").toDate();return D.jsx(Wo,{month:z,withNext:be===_-1,withPrevious:be===0,monthLabelFormat:m,__stopPropagation:Y,__onDayClick:N,__onDayMouseEnter:Q,__onDayKeyDown:(q,W)=>Sa({levelIndex:be,rowIndex:W.rowIndex,cellIndex:W.cellIndex,event:q,controlsRef:J}),__getDayRef:(q,W,K)=>{Array.isArray(J.current[be])||(J.current[be]=[]),Array.isArray(J.current[be][q])||(J.current[be][q]=[]),J.current[be][q][W]=K},levelControlAriaLabel:typeof g=="function"?g(z):g,locale:l,firstDayOfWeek:p,weekdayFormat:f,weekendDays:c,getDayProps:b,excludeDate:C,minDate:O,maxDate:L,renderDay:k,hideOutsideDates:M,hideWeekdays:R,getDayAriaLabel:E,__preventFocus:H,nextIcon:fe,previousIcon:ee,nextLabel:re,previousLabel:se,onNext:pe,onPrevious:ie,onLevelClick:Ae,nextDisabled:Oe,previousDisabled:j,hasNextLevel:I,classNames:A,styles:v,unstyled:d,__staticSelector:T||"MonthLevelGroup",size:Z,static:ce,withCellSpacing:te,highlightToday:X,withWeekNumbers:ae},be)});return D.jsx(ir,{classNames:A,styles:v,__staticSelector:T||"MonthLevelGroup",ref:n,size:Z,...we,children:le})});Ho.classes={...ir.classes,...Wo.classes},Ho.displayName="@mantine/dates/MonthLevelGroup";const Wc=i=>i==="range"?[null,null]:i==="multiple"?[]:null;function Oa({type:i,value:n,defaultValue:r,onChange:s,applyTimezone:l=!0}){const p=ye.useRef(i),f=fn(),[c,b,C]=Tt.useUncontrolled({value:Er("add",n,f.getTimezone(),!l),defaultValue:Er("add",r,f.getTimezone(),!l),finalValue:Wc(i),onChange:L=>{s==null||s(Er("remove",L,f.getTimezone(),!l))}});let O=c;if(p.current!==i){if(p.current=i,n===void 0)O=r!==void 0?r:Wc(i),b(O);else if(process.env.NODE_ENV==="development")switch(i){case"default":n!==null&&typeof n!="string"&&console.error("[@mantine/dates/use-uncontrolled-dates] Value must be type of `null` or `string`");break;case"multiple":n instanceof Array||console.error("[@mantine/dates/use-uncontrolled-dates] Value must be type of `string[]`");break;case"range":(!(n instanceof Array)||n.length!==2)&&console.error("[@mantine/dates/use-uncontrolled-dates] Value must be type of `[string, string]`");break}}return[O,b,C]}function Ta(i,n){return i?i==="month"?0:i==="year"?1:2:n||0}function G1(i){return i===0?"month":i===1?"year":"decade"}function ji(i,n,r){return G1(Tt.clamp(Ta(i,0),Ta(n,0),Ta(r,2)))}const V1={maxLevel:"decade",minLevel:"month",__updateDateOnYearSelect:!0,__updateDateOnMonthSelect:!0},Go=B.factory((i,n)=>{const r=B.useProps("Calendar",V1,i),{vars:s,maxLevel:l,minLevel:p,defaultLevel:f,level:c,onLevelChange:b,date:C,defaultDate:O,onDateChange:L,numberOfColumns:k,columnsToScroll:M,ariaLabels:R,nextLabel:E,previousLabel:N,onYearSelect:Q,onMonthSelect:te,onYearMouseEnter:X,onMonthMouseEnter:ae,__updateDateOnYearSelect:H,__updateDateOnMonthSelect:fe,firstDayOfWeek:ee,weekdayFormat:re,weekendDays:se,getDayProps:pe,excludeDate:ie,renderDay:Ae,hideOutsideDates:Oe,hideWeekdays:j,getDayAriaLabel:I,monthLabelFormat:A,nextIcon:v,previousIcon:d,__onDayClick:_,__onDayMouseEnter:g,withCellSpacing:m,highlightToday:T,withWeekNumbers:Y,monthsListFormat:Z,getMonthControlProps:ce,yearLabelFormat:de,yearsListFormat:we,getYearControlProps:J,decadeLabelFormat:le,classNames:Ce,styles:be,unstyled:z,minDate:q,maxDate:W,locale:K,__staticSelector:ue,size:Te,__preventFocus:u,__stopPropagation:h,onNextDecade:w,onPreviousDecade:P,onNextYear:U,onPreviousYear:ne,onNextMonth:xe,onPreviousMonth:De,static:Re,__timezoneApplied:Se,...Le}=r,{resolvedClassNames:Pe,resolvedStyles:Ie}=B.useResolvedStylesApi({classNames:Ce,styles:be,props:r}),[et,Ge]=Tt.useUncontrolled({value:c?ji(c,p,l):void 0,defaultValue:f?ji(f,p,l):void 0,finalValue:ji(void 0,p,l),onChange:b}),[tt,pt]=Oa({type:"default",value:C,defaultValue:O,onChange:L,applyTimezone:!Se}),xt={__staticSelector:ue||"Calendar",styles:Ie,classNames:Pe,unstyled:z,size:Te},lt=fn(),St=M||k||1,Sn=new Date,Bn=q&&q>Sn?q:Sn,Dt=tt||Er("add",Bn,lt.getTimezone()),Qt=()=>{const at=ke(Dt).add(St,"month").toDate();xe==null||xe(at),pt(at)},Jt=()=>{const at=ke(Dt).subtract(St,"month").toDate();De==null||De(at),pt(at)},hn=()=>{const at=ke(Dt).add(St,"year").toDate();U==null||U(at),pt(at)},Rn=()=>{const at=ke(Dt).subtract(St,"year").toDate();ne==null||ne(at),pt(at)},ct=()=>{const at=ke(Dt).add(10*St,"year").toDate();w==null||w(at),pt(at)},Ct=()=>{const at=ke(Dt).subtract(10*St,"year").toDate();P==null||P(at),pt(at)};return D.jsxs(B.Box,{ref:n,size:Te,"data-calendar":!0,...Le,children:[et==="month"&&D.jsx(Ho,{month:Dt,minDate:q,maxDate:W,firstDayOfWeek:ee,weekdayFormat:re,weekendDays:se,getDayProps:pe,excludeDate:ie,renderDay:Ae,hideOutsideDates:Oe,hideWeekdays:j,getDayAriaLabel:I,onNext:Qt,onPrevious:Jt,hasNextLevel:l!=="month",onLevelClick:()=>Ge("year"),numberOfColumns:k,locale:K,levelControlAriaLabel:R==null?void 0:R.monthLevelControl,nextLabel:(R==null?void 0:R.nextMonth)??E,nextIcon:v,previousLabel:(R==null?void 0:R.previousMonth)??N,previousIcon:d,monthLabelFormat:A,__onDayClick:_,__onDayMouseEnter:g,__preventFocus:u,__stopPropagation:h,static:Re,withCellSpacing:m,highlightToday:T,withWeekNumbers:Y,...xt}),et==="year"&&D.jsx(qo,{year:Dt,numberOfColumns:k,minDate:q,maxDate:W,monthsListFormat:Z,getMonthControlProps:ce,locale:K,onNext:hn,onPrevious:Rn,hasNextLevel:l!=="month"&&l!=="year",onLevelClick:()=>Ge("decade"),levelControlAriaLabel:R==null?void 0:R.yearLevelControl,nextLabel:(R==null?void 0:R.nextYear)??E,nextIcon:v,previousLabel:(R==null?void 0:R.previousYear)??N,previousIcon:d,yearLabelFormat:de,__onControlMouseEnter:ae,__onControlClick:(at,qt)=>{fe&&pt(qt),Ge(ji("month",p,l)),te==null||te(qt)},__preventFocus:u,__stopPropagation:h,withCellSpacing:m,...xt}),et==="decade"&&D.jsx(Yo,{decade:Dt,minDate:q,maxDate:W,yearsListFormat:we,getYearControlProps:J,locale:K,onNext:ct,onPrevious:Ct,numberOfColumns:k,nextLabel:(R==null?void 0:R.nextDecade)??E,nextIcon:v,previousLabel:(R==null?void 0:R.previousDecade)??N,previousIcon:d,decadeLabelFormat:le,__onControlMouseEnter:X,__onControlClick:(at,qt)=>{H&&pt(qt),Ge(ji("year",p,l)),Q==null||Q(qt)},__preventFocus:u,__stopPropagation:h,withCellSpacing:m,...xt})]})});Go.classes={...Yo.classes,...qo.classes,...Ho.classes},Go.displayName="@mantine/dates/Calendar";function Z1(i){const{maxLevel:n,minLevel:r,defaultLevel:s,level:l,onLevelChange:p,nextIcon:f,previousIcon:c,date:b,defaultDate:C,onDateChange:O,numberOfColumns:L,columnsToScroll:k,ariaLabels:M,nextLabel:R,previousLabel:E,onYearSelect:N,onMonthSelect:Q,onYearMouseEnter:te,onMonthMouseEnter:X,onNextMonth:ae,onPreviousMonth:H,onNextYear:fe,onPreviousYear:ee,onNextDecade:re,onPreviousDecade:se,withCellSpacing:pe,highlightToday:ie,__updateDateOnYearSelect:Ae,__updateDateOnMonthSelect:Oe,withWeekNumbers:j,firstDayOfWeek:I,weekdayFormat:A,weekendDays:v,getDayProps:d,excludeDate:_,renderDay:g,hideOutsideDates:m,hideWeekdays:T,getDayAriaLabel:Y,monthLabelFormat:Z,monthsListFormat:ce,getMonthControlProps:de,yearLabelFormat:we,yearsListFormat:J,getYearControlProps:le,decadeLabelFormat:Ce,allowSingleDateInRange:be,allowDeselect:z,minDate:q,maxDate:W,locale:K,...ue}=i;return{calendarProps:{maxLevel:n,minLevel:r,defaultLevel:s,level:l,onLevelChange:p,nextIcon:f,previousIcon:c,date:b,defaultDate:C,onDateChange:O,numberOfColumns:L,columnsToScroll:k,ariaLabels:M,nextLabel:R,previousLabel:E,onYearSelect:N,onMonthSelect:Q,onYearMouseEnter:te,onMonthMouseEnter:X,onNextMonth:ae,onPreviousMonth:H,onNextYear:fe,onPreviousYear:ee,onNextDecade:re,onPreviousDecade:se,withCellSpacing:pe,highlightToday:ie,__updateDateOnYearSelect:Ae,__updateDateOnMonthSelect:Oe,withWeekNumbers:j,firstDayOfWeek:I,weekdayFormat:A,weekendDays:v,getDayProps:d,excludeDate:_,renderDay:g,hideOutsideDates:m,hideWeekdays:T,getDayAriaLabel:Y,monthLabelFormat:Z,monthsListFormat:ce,getMonthControlProps:de,yearLabelFormat:we,yearsListFormat:J,getYearControlProps:le,decadeLabelFormat:Ce,allowSingleDateInRange:be,allowDeselect:z,minDate:q,maxDate:W,locale:K},others:ue}}function K1(i,n){if(i===null)return null;const r=Er("add",new Date(i),n);return Number.isNaN(r.getTime())||!i?null:r}function Q1({date:i,maxDate:n,minDate:r}){return!(i==null||Number.isNaN(i.getTime())||n&&ke(i).isAfter(n,"date")||r&&ke(i).isBefore(r,"date"))}const J1={valueFormat:"MMMM D, YYYY",fixOnBlur:!0,preserveTime:!0},Vo=B.factory((i,n)=>{const r=B.useInputProps("DateInput",J1,i),{inputProps:s,wrapperProps:l,value:p,defaultValue:f,onChange:c,clearable:b,clearButtonProps:C,popoverProps:O,getDayProps:L,locale:k,valueFormat:M,dateParser:R,minDate:E,maxDate:N,fixOnBlur:Q,onFocus:te,onBlur:X,onClick:ae,readOnly:H,name:fe,form:ee,rightSection:re,unstyled:se,classNames:pe,styles:ie,allowDeselect:Ae,preserveTime:Oe,date:j,defaultDate:I,onDateChange:A,...v}=r,d=ye.useRef(null),_=ye.useRef(null),[g,m]=ye.useState(!1),{calendarProps:T,others:Y}=Z1(v),Z=fn(),de=R||(U=>{const ne=ke(U,M,Z.getLocale(k)).toDate();return Number.isNaN(ne.getTime())?K1(U,Z.getTimezone()):ne}),we=Ae!==void 0?Ae:b,J=U=>U?ke(U).locale(Z.getLocale(k)).format(M):"",[le,Ce,be]=Oa({type:"default",value:p,defaultValue:f,onChange:c}),[z,q]=Oa({type:"default",value:j,defaultValue:f||I,onChange:A});ye.useEffect(()=>{be&&p!==null&&q(p)},[be,p]);const[W,K]=ye.useState(J(le));ye.useEffect(()=>{K(J(le))},[Z.getLocale(k)]);const ue=U=>{const ne=U.currentTarget.value;if(K(ne),m(!0),ne.trim()===""&&b)Ce(null);else{const xe=de(ne);Q1({date:xe,minDate:E,maxDate:N})&&(Ce(xe),q(xe))}},Te=U=>{X==null||X(U),m(!1),Q&&K(J(le))},u=U=>{te==null||te(U),m(!0)},h=U=>{ae==null||ae(U),m(!0)},w=U=>({...L==null?void 0:L(U),selected:ke(le).isSame(U,"day"),onClick:ne=>{var Re,Se;(Se=L==null?void 0:(Re=L(U)).onClick)==null||Se.call(Re,ne);const xe=Oe?t1(le,U):U,De=b&&we&&ke(le).isSame(U,"day")?null:xe;Ce(De),!be&&K(J(De)),m(!1)}}),P=re||(b&&le&&!H?D.jsx(B.CloseButton,{variant:"transparent",onMouseDown:U=>U.preventDefault(),tabIndex:-1,onClick:()=>{Ce(null),!be&&K(""),m(!1)},unstyled:se,size:s.size||"sm",...C}):null);return Tt.useDidUpdate(()=>{le!==void 0&&!g&&K(J(le))},[le]),Tt.useClickOutside(()=>m(!1),void 0,[d.current,_.current]),D.jsxs(D.Fragment,{children:[D.jsx(B.Input.Wrapper,{...l,__staticSelector:"DateInput",ref:d,children:D.jsxs(B.Popover,{opened:g,trapFocus:!1,position:"bottom-start",disabled:H,withRoles:!1,unstyled:se,...O,children:[D.jsx(B.Popover.Target,{children:D.jsx(B.Input,{"data-dates-input":!0,"data-read-only":H||void 0,autoComplete:"off",ref:n,value:W,onChange:ue,onBlur:Te,onFocus:u,onClick:h,readOnly:H,rightSection:P,...s,...Y,__staticSelector:"DateInput"})}),D.jsx(B.Popover.Dropdown,{onMouseDown:U=>U.preventDefault(),"data-dates-dropdown":!0,ref:_,children:D.jsx(Go,{__staticSelector:"DateInput",__timezoneApplied:!0,...T,classNames:pe,styles:ie,unstyled:se,__preventFocus:!0,minDate:E,maxDate:N,locale:k,getDayProps:w,size:s.size,date:z,onDateChange:q})})]})}),D.jsx(Tc,{name:fe,form:ee,value:le,type:"default"})]})});Vo.classes={...B.Input.classes,...Go.classes},Vo.displayName="@mantine/dates/DateInput";function X1(i){const n=un.c(46),{fields:r,onClose:s,queryKey:l,apiPath:p,steps:f,onCreated:c}=i,[b,C]=ye.useState(0),[O,L]=ye.useState(!1),[k,M]=ye.useState(),{mutateAsync:R,isError:E,error:N,isPending:Q}=_c(p,l),{mutateAsync:te,isPending:X}=xa(p,l),ae=Q||X;let H;n[0]!==r?(H=new Set(r.filter(o0).map(i0)),n[0]=r,n[1]=H):H=n[1];let fe;n[2]!==H?(fe=[...H],n[2]=H,n[3]=fe):fe=n[3];const ee=fe;let re;n[4]!==r?(re=r.reduce(r0,{}),n[4]=r,n[5]=re):re=n[5];let se;n[6]!==r?(se=r.filter(n0).reduce(e0,{}),n[6]=r,n[7]=se):se=n[7];let pe;n[8]!==re||n[9]!==se?(pe={mode:"uncontrolled",initialValues:re,validate:se},n[8]=re,n[9]=se,n[10]=pe):pe=n[10];const ie=Ai.useForm(pe);let Ae;n[11]!==ie?(Ae=function(m){return D.jsxs(ye.Fragment,{children:[(m.type===void 0||m.type=="text")&&D.jsx(B.TextInput,{label:m.column.title,placeholder:m.placeholder??"",...ie.getInputProps(m.id),type:m.id.includes("email")?"email":void 0},ie.key(m.id)),m.type==="number"&&D.jsx(B.NumberInput,{decimalSeparator:",",label:m.column.title,placeholder:m.placeholder??"",...ie.getInputProps(m.id)},ie.key(m.id)),m.type==="date"&&D.jsx(Vo,{label:m.column.title,placeholder:m.placeholder??"",valueFormat:"DD.MM.YYYY",clearable:!0,...ie.getInputProps(m.id)},ie.key(m.id)),m.type==="boolean"&&D.jsx(B.Checkbox,{mt:"md",label:m.column.title,...ie.getInputProps(m.id,{type:"checkbox"})},ie.key(m.id)),m.type==="custom"&&m.render&&m.render(ie.getValues(),ie.getInputProps(m.id).onChange,L,ie.setValues)]},m.id)},n[11]=ie,n[12]=Ae):Ae=n[12];const Oe=Ae;let j;n[13]!==(N==null?void 0:N.message)||n[14]!==(N==null?void 0:N.name)||n[15]!==E?(j=E&&D.jsx(B.Alert,{variant:"outline",color:"red",title:(N==null?void 0:N.name)??"Fehler aufgetreten",mb:"lg",children:(N==null?void 0:N.message)??"Fehler aufgetreten"}),n[13]=N==null?void 0:N.message,n[14]=N==null?void 0:N.name,n[15]=E,n[16]=j):j=n[16];let I;n[17]!==b||n[18]!==R||n[19]!==ie||n[20]!==E||n[21]!==s||n[22]!==c||n[23]!==k||n[24]!==ee.length||n[25]!==te?(I=ie.onSubmit(async g=>{if(k)await te({...g,id:k});else{const m=await R(g);M(m.id),c==null||c(m.id)}ee.length&&b<ee.length-1?E||C(b+1):E||(ie.setInitialValues(g),ie.reset(),s())}),n[17]=b,n[18]=R,n[19]=ie,n[20]=E,n[21]=s,n[22]=c,n[23]=k,n[24]=ee.length,n[25]=te,n[26]=I):I=n[26];let A;n[27]!==b||n[28]!==r||n[29]!==Oe||n[30]!==f||n[31]!==ee?(A=ee.length?D.jsx(B.Stepper,{active:b,size:"sm",children:ee.map(g=>D.jsx(B.Stepper.Step,{...f&&f[g-1]?{label:f[g-1].label}:{},children:r.filter(m=>m.step===g).map(m=>Oe(m))},g))}):r.map(g=>Oe(g)),n[27]=b,n[28]=r,n[29]=Oe,n[30]=f,n[31]=ee,n[32]=A):A=n[32];let v;n[33]!==b||n[34]!==O||n[35]!==ae||n[36]!==s||n[37]!==ee.length?(v=!O&&D.jsxs(B.Group,{mt:"md",justify:"end",children:[D.jsx(B.Button,{onClick:()=>ee.length?b===0?s():C(b-1):s(),variant:"outline",children:ee.length?b===0?"Abbrechen":"Zurück":"Abbrechen"}),D.jsx(B.Button,{type:"submit",loading:ae,children:ee.length?b===ee.length-1?"Speichern":"Weiter":"Speichern"})]}),n[33]=b,n[34]=O,n[35]=ae,n[36]=s,n[37]=ee.length,n[38]=v):v=n[38];let d;n[39]!==v||n[40]!==I||n[41]!==A?(d=D.jsxs("form",{onSubmit:I,children:[A,v]}),n[39]=v,n[40]=I,n[41]=A,n[42]=d):d=n[42];let _;return n[43]!==d||n[44]!==j?(_=D.jsxs(D.Fragment,{children:[j,d]}),n[43]=d,n[44]=j,n[45]=_):_=n[45],_}function e0(i,n){return i[n.id]=t0,i}function t0(i){return i?null:"Pflichtfeld"}function n0(i){return i.required}function r0(i,n){return i[n.id]=n.type==="boolean"?!1:n.defaultValue??"",i}function i0(i){return i.step}function o0(i){return typeof i.step=="number"}var[s0,Da]=B.createSafeContext("useDataTableColumnsContext must be used within DataTableColumnProvider"),Yc=i=>{let{children:n,columnsOrder:r,setColumnsOrder:s,columnsToggle:l,setColumnsToggle:p,resetColumnsOrder:f,resetColumnsToggle:c,setColumnWidth:b,resetColumnsWidth:C}=i,[O,L]=ye.useState(""),[k,M]=ye.useState("");return D.jsx(s0,{value:{sourceColumn:O,setSourceColumn:L,targetColumn:k,setTargetColumn:M,columnsToggle:l,setColumnsToggle:p,swapColumns:()=>{if(!r||!s||!O||!k)return;let R=r.indexOf(O),E=r.indexOf(k);if(R!==-1&&E!==-1){let N=r.splice(R,1)[0];r.splice(E,0,N),s([...r])}},resetColumnsOrder:f,resetColumnsToggle:c,setColumnWidth:b,resetColumnsWidth:C},children:n})};function a0(){return D.jsx("tr",{className:"mantine-datatable-empty-row",children:D.jsx("td",{})})}function u0(){return D.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),D.jsx("path",{d:"M12.983 8.978c3.955 -.182 7.017 -1.446 7.017 -2.978c0 -1.657 -3.582 -3 -8 -3c-1.661 0 -3.204 .19 -4.483 .515m-2.783 1.228c-.471 .382 -.734 .808 -.734 1.257c0 1.22 1.944 2.271 4.734 2.74"}),D.jsx("path",{d:"M4 6v6c0 1.657 3.582 3 8 3c.986 0 1.93 -.067 2.802 -.19m3.187 -.82c1.251 -.53 2.011 -1.228 2.011 -1.99v-6"}),D.jsx("path",{d:"M4 12v6c0 1.657 3.582 3 8 3c3.217 0 5.991 -.712 7.261 -1.74m.739 -3.26v-4"}),D.jsx("path",{d:"M3 3l18 18"})]})}function l0({icon:i,text:n,pt:r,pb:s,active:l,children:p}){return D.jsx(B.Center,{pt:r,pb:s,className:"mantine-datatable-empty-state","data-active":l||void 0,children:p||D.jsxs(D.Fragment,{children:[i||D.jsx("div",{className:"mantine-datatable-empty-state-icon",children:D.jsx(u0,{})}),D.jsx(B.Text,{component:"div",size:"sm",c:"dimmed",children:n})]})})}var c0=({key:i,columns:n=[],getInitialValueInEffect:r=!0})=>{function s(H,fe){let ee=[];return H.forEach(re=>{fe.find(se=>se.accessor===re)&&ee.push(re)}),fe.forEach(re=>{ee.includes(re.accessor)||ee.push(re.accessor)}),ee}function l(H,fe){let ee=[];return H.forEach(re=>{fe.find(se=>se.accessor===re.accessor)&&ee.push(re)}),fe.forEach(re=>{ee.find(se=>se.accessor===re.accessor)||ee.push({accessor:re.accessor,defaultToggle:re.defaultToggle||!0,toggleable:re.toggleable,toggled:re.defaultToggle===void 0?!0:re.defaultToggle})}),ee}function p(H,fe){let ee=[];return H.forEach(re=>{let se=Object.keys(re)[0];fe.find(pe=>pe.accessor===se)&&ee.push(re)}),fe.forEach(re=>{let se=re.accessor;if(!ee.find(pe=>Object.keys(pe)[0]===se)){let pe={};pe[se]="",ee.push(pe)}}),ee}function f(){let[H,fe]=Tt.useLocalStorage({key:i?`${i}-columns-order`:"",defaultValue:i?C:void 0,getInitialValueInEffect:r});function ee(pe){i&&fe(pe)}if(!i)return[H,ee];let re=s(H,n),se=JSON.stringify(H);return JSON.stringify(re)!==se&&ee(re),[re,ee]}function c(){let[H,fe]=Tt.useLocalStorage({key:i?`${i}-columns-toggle`:"",defaultValue:i?L:void 0,getInitialValueInEffect:r});function ee(pe){i&&fe(pe)}if(!i)return[H,ee];let re=l(H,n),se=JSON.stringify(H);return JSON.stringify(re)!==se&&ee(re),[l(H,n),ee]}function b(){let[H,fe]=Tt.useLocalStorage({key:i?`${i}-columns-width`:"",defaultValue:i?O:void 0,getInitialValueInEffect:r});function ee(pe){i&&fe(pe)}if(!i)return[H,ee];let re=p(H,n),se=JSON.stringify(H);return JSON.stringify(re)!==se&&ee(re),[p(H,n),ee]}let C=n&&n.map(H=>H.accessor)||[],O=n&&n.map(H=>({[H.accessor]:H.width??"initial"}))||[],L=n&&n.map(H=>({accessor:H.accessor,defaultToggle:H.defaultToggle||!0,toggleable:H.toggleable,toggled:H.defaultToggle===void 0?!0:H.defaultToggle})),[k,M]=f(),[R,E]=c(),[N,Q]=b(),te=()=>M(C),X=()=>{E(L)},ae=()=>Q(O);return{effectiveColumns:ye.useMemo(()=>k?k.map(H=>n.find(fe=>fe.accessor===H)).map(H=>{var fe;return{...H,hidden:(H==null?void 0:H.hidden)||!((fe=R.find(ee=>ee.accessor===(H==null?void 0:H.accessor)))!=null&&fe.toggled)}}).map(H=>{var fe;return{...H,width:(fe=N.find(ee=>ee[H==null?void 0:H.accessor]))==null?void 0:fe[H==null?void 0:H.accessor]}}):n,[n,k,R,N]),setColumnsOrder:M,columnsOrder:k,resetColumnsOrder:te,columnsToggle:R,setColumnsToggle:E,resetColumnsToggle:X,columnsWidth:N,setColumnsWidth:Q,setColumnWidth:(H,fe)=>{let ee=N.map(re=>re[H]?{[H]:fe}:re);Q(ee)},resetColumnsWidth:ae}};function Qr(){var s;let[i]=Tt.useResizeObserver(),{width:n,height:r}=((s=i.current)==null?void 0:s.getBoundingClientRect())||{width:0,height:0};return{ref:i,width:n,height:r}}var f0=typeof window<"u"?ye.useLayoutEffect:ye.useEffect;function h0(i){let[n,r]=ye.useState(null),s=(i==null?void 0:i.join(":"))||"";return ye.useEffect(()=>{r(null)},[s]),{lastSelectionChangeIndex:n,setLastSelectionChangeIndex:r}}function d0(i,n){let r=()=>{n(i.map(l=>l.matches))},s=i.map(l=>{try{return l.addEventListener("change",r),()=>l.removeEventListener("change",r)}catch{return l.addListener(r),()=>l.removeListener(r)}});return()=>{s.forEach(l=>l())}}function p0(i,n){return n||(typeof window<"u"&&"matchMedia"in window?i.map(r=>window.matchMedia(r).matches):i.map(()=>!1))}function g0(i,n,{getInitialValueInEffect:r}={getInitialValueInEffect:!0}){let[s,l]=ye.useState(r?n:p0(i,n)),p=ye.useRef(null);return ye.useEffect(()=>{if("matchMedia"in window)return p.current=i.map(f=>window.matchMedia(f)),l(p.current.map(f=>f.matches)),d0(p.current,f=>{l(f)})},[i]),s}function v0(i){let n=B.useMantineTheme(),r=ye.useMemo(()=>i.map(l=>(typeof l=="function"?l(n):l)??""),[i,n]),s=ye.useMemo(()=>i.map(()=>!0),[i]);return g0(r,s)}function Zo(i){let n=B.useMantineTheme(),r=typeof i=="function"?i(n):i;return Tt.useMediaQuery(r||"",!0)}function Ea(i){let n=i.replace(/([a-z\d])([A-Z]+)/g,"$1 $2").replace(/\W|_/g," ").trim().toLowerCase();return`${n.charAt(0).toUpperCase()}${n.slice(1)}`}function m0(i,n,r){return i.filter(s=>!n.map(r).includes(r(s)))}function Ma(i,n){return i.filter((r,s,l)=>s===l.findIndex(p=>n(r)===n(p)))}function qc(i,n){return n?n.match(/([^[.\]])+/g).reduce((r,s)=>r&&r[s],i):void 0}function Bt(i,n){return typeof n=="string"?qc(i,n):n(i)}function y0({rowExpansion:i,records:n,idAccessor:r}){let s=[];if(i&&n){let{trigger:c,allowMultiple:b,initiallyExpanded:C}=i;n&&c==="always"?s=n.map(O=>Bt(O,r)):C&&(s=n.filter((O,L)=>C({record:O,index:L})).map(O=>Bt(O,r)),b||(s=[s[0]]))}let l,p,f=ye.useState(s);if(i){let{expandable:c,trigger:b,allowMultiple:C,collapseProps:O,content:L}=i;i.expanded?{recordIds:l,onRecordIdsChange:p}=i.expanded:[l,p]=f;let k=M=>p==null?void 0:p(l.filter(R=>R!==Bt(M,r)));return{expandOnClick:b!=="always"&&b!=="never",isRowExpanded:M=>b==="always"?!0:l.includes(Bt(M,r)),isExpandable:({record:M,index:R})=>c?c({record:M,index:R}):!0,expandRow:M=>{let R=Bt(M,r);p==null||p(C?[...l,R]:[R])},collapseRow:k,collapseProps:O,content:({record:M,index:R})=>()=>L({record:M,index:R,collapse:()=>k(M)})}}}function w0(i,n){let[r,s]=ye.useState(i),[l,p]=ye.useState(i),f=Tt.useTimeout(()=>s(!0),0),c=Tt.useTimeout(()=>p(!1),n||200);return ye.useEffect(()=>{i?(c.clear(),p(!0),f.start()):(f.clear(),s(!1),c.start())},[f,c,i]),{expanded:r,visible:l}}var Ra="mantine-datatable-nowrap",La="mantine-datatable-ellipsis",Jr="mantine-datatable-pointer-cursor",Hc="mantine-datatable-context-menu-cursor",_0="mantine-datatable-text-selection-disabled",Ko="mantine-datatable-text-align-left",Qo="mantine-datatable-text-align-center",Jo="mantine-datatable-text-align-right";function b0({className:i,style:n,visibleMediaQuery:r,title:s,noWrap:l,ellipsis:p,textAlign:f,width:c}){return Zo(r)?D.jsx(B.TableTh,{className:mt({[Ra]:l||p,[La]:p,[Ko]:f==="left",[Qo]:f==="center",[Jo]:f==="right"},i),style:[{width:c,minWidth:c,maxWidth:c},n],children:s}):null}function x0({shadowVisible:i}){return D.jsx(B.TableTh,{className:"mantine-datatable-footer-selector-placeholder-cell","data-shadow-visible":i||void 0})}var S0=ye.forwardRef(function({className:i,style:n,columns:r,defaultColumnProps:s,selectionVisible:l,selectorCellShadowVisible:p,scrollDiff:f},c){let b=f<0;return D.jsx(B.TableTfoot,{ref:c,className:mt("mantine-datatable-footer",i),style:[{position:b?"relative":"sticky",bottom:B.rem(b?f:0)},n],children:D.jsxs(B.TableTr,{children:[l&&D.jsx(x0,{shadowVisible:p}),r.map(({hidden:C,...O})=>{if(C)return null;let{accessor:L,visibleMediaQuery:k,textAlign:M,width:R,footer:E,footerClassName:N,footerStyle:Q,noWrap:te,ellipsis:X}={...s,...O};return D.jsx(b0,{className:N,style:Q,visibleMediaQuery:k,textAlign:M,width:R,title:E,noWrap:te,ellipsis:X},L)})]})})});function C0({group:{id:i,columns:n,title:r,textAlign:s,className:l,style:p}}){let f=ye.useMemo(()=>n.map(({visibleMediaQuery:C})=>C),[n]),c=v0(f),b=ye.useMemo(()=>n.filter(({hidden:C},O)=>!C&&(c==null?void 0:c[O])).length,[n,c]);return b>0?D.jsx(B.TableTh,{colSpan:b,className:mt("mantine-datatable-column-group-header-cell",{[Ko]:s==="left",[Qo]:s==="center",[Jo]:s==="right"},l),style:p,children:r??Ea(i)}):null}function A0(){return D.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),D.jsx("path",{d:"M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z"})]})}function O0(){return D.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),D.jsx("path",{d:"M20 3h-16a1 1 0 0 0 -1 1v2.227l.008 .223a3 3 0 0 0 .772 1.795l4.22 4.641v8.114a1 1 0 0 0 1.316 .949l6 -2l.108 -.043a1 1 0 0 0 .576 -.906v-6.586l4.121 -4.12a3 3 0 0 0 .879 -2.123v-2.171a1 1 0 0 0 -1 -1z",strokeWidth:"0",fill:"currentColor"})]})}function T0({children:i,isActive:n,filterPopoverProps:r}){let[s,{close:l,toggle:p}]=Tt.useDisclosure(!1),f=n?O0:A0,c=Tt.useClickOutside(l);return D.jsxs(B.Popover,{withArrow:!0,shadow:"md",opened:s,onClose:l,trapFocus:!0,...r,children:[D.jsx(B.PopoverTarget,{children:D.jsx(B.ActionIcon,{className:"mantine-datatable-header-cell-filter-action-icon","data-active":n||void 0,size:"sm",variant:"default",onClick:b=>{b.preventDefault(),p()},onKeyDown:b=>b.stopPropagation(),children:D.jsx(f,{})})}),D.jsx(B.PopoverDropdown,{ref:c,onClick:b=>b.stopPropagation(),onKeyDown:b=>b.stopPropagation(),children:typeof i=="function"?i({close:l}):i})]})}var D0=i=>{let{accessor:n,columnRef:r}=i,s=ye.useRef(null),[l,p]=ye.useState(0),{setColumnWidth:f}=Da(),c=O=>{O.preventDefault(),O.stopPropagation(),document.addEventListener("mousemove",b),document.addEventListener("mouseup",C),document.body.style.cursor="col-resize"},b=O=>{if(!r.current)return;let L=O.clientX-r.current.getBoundingClientRect().right,k=`${r.current.getBoundingClientRect().width+L}px`;r.current.style.width=k,f(n,r.current.style.width),p(-L)},C=()=>{r.current&&(document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",C),document.body.style.cursor="initial",f(n,r.current.style.width),p(0))};return D.jsx("div",{ref:s,onClick:O=>O.stopPropagation(),onMouseDown:c,onDoubleClick:()=>{r.current&&(r.current.style.maxWidth="initial",r.current.style.minWidth="initial",r.current.style.width="initial",f(n,"initial"))},className:"mantine-datatable-header-resizable-handle",style:{right:B.rem(l)}})};function E0(){return D.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),D.jsx("path",{d:"M12 5l0 14"}),D.jsx("path",{d:"M16 9l-4 -4"}),D.jsx("path",{d:"M8 9l4 -4"})]})}function M0(){return D.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),D.jsx("path",{d:"M8 7l4 -4l4 4"}),D.jsx("path",{d:"M8 17l4 4l4 -4"}),D.jsx("path",{d:"M12 3l0 18"})]})}function R0(){return D.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),D.jsx("path",{d:"M9 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),D.jsx("path",{d:"M9 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),D.jsx("path",{d:"M9 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),D.jsx("path",{d:"M15 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),D.jsx("path",{d:"M15 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),D.jsx("path",{d:"M15 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]})}function L0(){return D.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),D.jsx("path",{d:"M18 6l-12 12"}),D.jsx("path",{d:"M6 6l12 12"})]})}function k0({className:i,style:n,accessor:r,visibleMediaQuery:s,title:l,sortable:p,draggable:f,toggleable:c,resizable:b,sortIcons:C,textAlign:O,width:L,sortStatus:k,onSortStatusChange:M,filter:R,filterPopoverProps:E,filtering:N,sortKey:Q}){let{setSourceColumn:te,setTargetColumn:X,swapColumns:ae,setColumnsToggle:H}=Da(),[fe,ee]=ye.useState(!1),re=ye.useRef(null);if(!Zo(s))return null;let se=l??Ea(r),pe=typeof se=="string"?se:void 0,ie=p&&M?d=>{d!=null&&d.defaultPrevented||M({sortKey:Q,columnAccessor:r,direction:(k==null?void 0:k.columnAccessor)===r?k.direction==="asc"?"desc":"asc":(k==null?void 0:k.direction)??"asc"})}:void 0,Ae=d=>{d.stopPropagation(),te(r),ee(!1)},Oe=d=>{d.preventDefault(),X(r),ee(!0)},j=()=>{X(r),ee(!1),ae()},I=()=>{ee(!0)},A=()=>{ee(!1)},v=d=>{d.stopPropagation(),H(_=>_.map(g=>g.accessor===r?{...g,toggled:!1}:g))};return D.jsxs(B.TableTh,{className:mt({"mantine-datatable-header-cell-sortable":p,"mantine-datatable-header-cell-toggleable":c,"mantine-datatable-header-cell-resizable":b},i),style:[{width:L,...b?{minWidth:"1px"}:{minWidth:L,maxWidth:L}},n],role:p?"button":void 0,tabIndex:p?0:void 0,onClick:ie,onKeyDown:d=>d.key==="Enter"&&(ie==null?void 0:ie()),ref:re,children:[D.jsxs(B.Group,{className:"mantine-datatable-header-cell-sortable-group",justify:"space-between",wrap:"nowrap",children:[D.jsxs(B.Flex,{align:"center",w:"100%",className:mt({"mantine-datatable-header-cell-draggable":f,"mantine-datatable-header-cell-drag-over":fe}),draggable:f,onDragStart:f?Ae:void 0,onDragEnter:f?I:void 0,onDragOver:f?Oe:void 0,onDrop:f?j:void 0,onDragLeave:f?A:void 0,children:[f?D.jsx(B.Center,{role:"img","aria-label":"Drag column",children:D.jsx(B.ActionIcon,{className:"mantine-datatable-header-cell-draggable-action-icon",variant:"subtle",size:"xs",onClick:d=>{d.stopPropagation()},children:D.jsx(R0,{})})}):null,D.jsx(B.Box,{className:mt("mantine-datatable-header-cell-sortable-text",{[Ko]:O==="left",[Qo]:O==="center",[Jo]:O==="right"},Ra,La),title:pe,children:se})]}),c?D.jsx(B.Center,{className:"mantine-datatable-header-cell-toggleable-icon",role:"img","aria-label":"Toggle column",children:D.jsx(B.ActionIcon,{size:"xs",variant:"light",onClick:v,children:D.jsx(L0,{})})}):null,p||(k==null?void 0:k.columnAccessor)===r?D.jsx(D.Fragment,{children:(k==null?void 0:k.columnAccessor)===r?D.jsx(B.Center,{className:mt("mantine-datatable-header-cell-sortable-icon",{"mantine-datatable-header-cell-sortable-icon-reversed":k.direction==="desc"}),role:"img","aria-label":`Sorted ${k.direction==="desc"?"descending":"ascending"}`,children:(C==null?void 0:C.sorted)||D.jsx(E0,{})}):D.jsx(B.Center,{className:"mantine-datatable-header-cell-sortable-unsorted-icon",role:"img","aria-label":"Not sorted",children:(C==null?void 0:C.unsorted)||D.jsx(M0,{})})}):null,R?D.jsx(T0,{filterPopoverProps:E,isActive:!!N,children:R}):null]}),b?D.jsx(D0,{accessor:r,columnRef:re}):null]})}var I0=ye.forwardRef(function({className:i,style:n,trigger:r,shadowVisible:s,checked:l,indeterminate:p,checkboxProps:f,onChange:c,rowSpan:b},C){let O=!f.disabled;return D.jsx(B.TableTh,{ref:C,className:mt("mantine-datatable-header-selector-cell",{[Jr]:r==="cell"&&O},i),style:n,rowSpan:b,"data-shadow-visible":s||void 0,onClick:r==="cell"&&O?c:void 0,children:D.jsx(B.Checkbox,{classNames:O?{input:Jr}:void 0,checked:l,indeterminate:p,onChange:c,...f,disabled:!(c||f.onChange)||f.disabled})})}),$0=ye.forwardRef(function({selectionColumnHeaderRef:i,className:n,style:r,sortStatus:s,sortIcons:l,onSortStatusChange:p,columns:f,defaultColumnProps:c,groups:b,selectionTrigger:C,selectionVisible:O,selectionChecked:L,selectionIndeterminate:k,onSelectionChange:M,selectionCheckboxProps:R,selectorCellShadowVisible:E,selectionColumnClassName:N,selectionColumnStyle:Q},te){let X=O?D.jsx(I0,{ref:i,className:N,style:Q,trigger:C,shadowVisible:E,checked:L,indeterminate:k,checkboxProps:R,onChange:M,rowSpan:b?2:void 0}):null,{columnsToggle:ae,setColumnsToggle:H}=Da(),[fe,ee]=ye.useState(!1),re=f.some(ie=>ie.toggleable),se=re?Object.fromEntries(f.map(({accessor:ie,title:Ae})=>[ie,Ae??Ea(String(ie))])):void 0,pe=D.jsxs(B.TableThead,{className:mt("mantine-datatable-header",n),style:r,ref:te,onContextMenu:re?ie=>{ie.preventDefault(),ee(Ae=>!Ae)}:void 0,children:[b&&D.jsxs(B.TableTr,{children:[X,b.map(ie=>D.jsx(C0,{group:ie},ie.id))]}),D.jsxs(B.TableTr,{children:[!b&&X,f.map(({hidden:ie,...Ae},Oe)=>{if(ie)return null;let{accessor:j,visibleMediaQuery:I,textAlign:A,width:v,title:d,sortable:_,draggable:g,toggleable:m,resizable:T,titleClassName:Y,titleStyle:Z,filter:ce,filterPopoverProps:de,filtering:we,sortKey:J}={...c,...Ae};return D.jsx(k0,{accessor:j,className:Y,style:Z,visibleMediaQuery:I,textAlign:A,width:v,title:d,sortable:_,draggable:g,toggleable:m,resizable:T&&Oe<f.length-1,sortStatus:s,sortIcons:l,sortKey:J,onSortStatusChange:p,filter:ce,filterPopoverProps:de,filtering:we},j)})]})]});return re?D.jsxs(B.Popover,{position:"bottom",withArrow:!0,shadow:"md",opened:fe,onChange:ee,children:[D.jsx(B.PopoverTarget,{children:pe}),D.jsx(B.PopoverDropdown,{children:D.jsx(B.Stack,{children:ae.filter(ie=>ie.toggleable).map(ie=>D.jsx(B.Group,{children:D.jsx(B.Checkbox,{classNames:{label:"mantine-datatable-header-column-toggle-checkbox-label"},size:"xs",label:se[ie.accessor],checked:ie.toggled,onChange:Ae=>{H(ae.map(Oe=>Oe.accessor===ie.accessor?{...Oe,toggled:Ae.currentTarget.checked}:Oe))}})},ie.accessor))})})]}):pe});function P0({pt:i,pb:n,fetching:r,customContent:s,backgroundBlur:l,size:p,type:f,color:c}){return D.jsx(B.Center,{pt:i,pb:n,className:mt("mantine-datatable-loader",{"mantine-datatable-loader-fetching":r}),style:[{backdropFilter:l?`blur(${l}px)`:void 0}],children:r&&(s||D.jsx(B.Loader,{size:p,type:f,color:c}))})}function bt(i,n,r){return i?B.parseThemeColor({color:typeof i=="object"?i[r]:i,theme:n}).value:void 0}function N0({theme:i,c:n,backgroundColor:r,borderColor:s,rowBorderColor:l,stripedColor:p,highlightOnHoverColor:f}){return{"--mantine-datatable-color-light":bt(n,i,"light"),"--mantine-datatable-color-dark":bt(n,i,"dark"),"--mantine-datatable-background-color-light":bt(r,i,"light"),"--mantine-datatable-background-color-dark":bt(r,i,"dark"),"--mantine-datatable-border-color-light":bt(s,i,"light"),"--mantine-datatable-border-color-dark":bt(s,i,"dark"),"--mantine-datatable-row-border-color-light":bt(l,i,"light"),"--mantine-datatable-row-border-color-dark":bt(l,i,"dark"),"--mantine-datatable-striped-color-light":bt(p,i,"light"),"--mantine-datatable-striped-color-dark":bt(p,i,"dark"),"--mantine-datatable-highlight-on-hover-color-light":bt(f,i,"light"),"--mantine-datatable-highlight-on-hover-color-dark":bt(f,i,"dark")}}function Gc({theme:i,paginationActiveTextColor:n,paginationActiveBackgroundColor:r}){return{"--mantine-datatable-pagination-active-text-color-light":bt(n,i,"light"),"--mantine-datatable-pagination-active-text-color-dark":bt(n,i,"dark"),"--mantine-datatable-pagination-active-background-color-light":bt(r,i,"light"),"--mantine-datatable-pagination-active-background-color-dark":bt(r,i,"dark")}}function B0({theme:i,color:n,backgroundColor:r}){return{"--mantine-datatable-row-color-light":bt(n,i,"light"),"--mantine-datatable-row-color-dark":bt(n,i,"dark"),"--mantine-datatable-row-background-color-light":bt(r,i,"light"),"--mantine-datatable-row-background-color-dark":bt(r,i,"dark")}}function j0(){return D.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[D.jsx("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),D.jsx("path",{d:"M8 9l4 -4l4 4"}),D.jsx("path",{d:"M16 15l-4 4l-4 -4"})]})}var Vc={xs:B.rem(22),sm:B.rem(26),md:B.rem(32),lg:B.rem(38),xl:B.rem(44)};function U0({size:i,label:n,values:r,value:s,activeTextColor:l,activeBackgroundColor:p,onChange:f}){return D.jsxs(B.Group,{gap:"xs",children:[D.jsx(B.Text,{component:"div",size:i,children:n}),D.jsxs(B.Menu,{withinPortal:!0,withArrow:!0,classNames:{arrow:"mantine-datatable-page-size-selector-menu-arrow"},children:[D.jsx(B.MenuTarget,{children:D.jsx(B.Button,{size:i,variant:"default",classNames:{section:"mantine-datatable-page-size-selector-button-icon"},rightSection:D.jsx(j0,{}),style:[{fontWeight:"normal"},c=>({height:Vc[i],paddingLeft:c.spacing[i],paddingRight:c.spacing[i]})],children:s})}),D.jsx(B.MenuDropdown,{children:r.map(c=>{let b=c===s;return D.jsx(B.MenuItem,{className:mt({"mantine-datatable-page-size-selector-active":b}),style:[{height:Vc[i]},b&&(l||p)?C=>Gc({theme:C,paginationActiveTextColor:l,paginationActiveBackgroundColor:p}):void 0],disabled:b,onClick:()=>f(c),children:D.jsx(B.Text,{component:"div",size:i,children:c})},c)})})]})]})}var z0=ye.forwardRef(function({className:i,style:n,fetching:r,page:s,onPageChange:l,paginationWithEdges:p,paginationWithControls:f,paginationActiveTextColor:c,paginationActiveBackgroundColor:b,paginationSize:C,loadingText:O,noRecordsText:L,paginationText:k,totalRecords:M,recordsPerPage:R,onRecordsPerPageChange:E,recordsPerPageLabel:N,recordsPerPageOptions:Q,recordsLength:te,horizontalSpacing:X,paginationWrapBreakpoint:ae,getPaginationControlProps:H},fe){let ee;if(M){let se=(s-1)*R+1,pe=se+(te||0)-1;ee=k({from:se,to:pe,totalRecords:M})}else ee=r?O:L;let re=Zo(({breakpoints:se})=>`(min-width: ${typeof ae=="number"?`${B.rem(ae)}rem`:se[ae]||ae})`);return D.jsxs(B.Box,{ref:fe,px:X??"xs",py:"xs",className:mt("mantine-datatable-pagination",i),style:[{flexDirection:re?"row":"column"},n],children:[D.jsx(B.Text,{component:"div",className:"mantine-datatable-pagination-text",size:C,children:ee}),Q&&D.jsx(U0,{activeTextColor:c,activeBackgroundColor:b,size:C,label:N,values:Q,value:R,onChange:E}),D.jsx(B.Pagination,{classNames:{root:mt("mantine-datatable-pagination-pages",{"mantine-datatable-pagination-pages-fetching":r||!te}),control:"mantine-datatable-pagination-pages-control"},style:c||b?se=>Gc({theme:se,paginationActiveTextColor:c,paginationActiveBackgroundColor:b}):void 0,withEdges:p,withControls:f,value:s,onChange:l,size:C,total:Math.ceil(M/R),getControlProps:H})]})});function F0({className:i,style:n,visibleMediaQuery:r,record:s,index:l,onClick:p,onDoubleClick:f,onContextMenu:c,noWrap:b,ellipsis:C,textAlign:O,width:L,accessor:k,render:M,defaultRender:R,customCellAttributes:E}){return Zo(r)?D.jsx(B.TableTd,{className:mt({[Ra]:b||C,[La]:C,[Jr]:p||f,[Hc]:c,[Ko]:O==="left",[Qo]:O==="center",[Jo]:O==="right"},i),style:[{width:L,minWidth:L,maxWidth:L},n],onClick:p,onDoubleClick:f,onContextMenu:c,...E==null?void 0:E(s,l),children:M?M(s,l):R?R(s,l,k):qc(s,k)}):null}function W0({open:i,colSpan:n,content:r,collapseProps:s}){let{expanded:l,visible:p}=w0(i,s==null?void 0:s.transitionDuration);return p?D.jsxs(D.Fragment,{children:[D.jsx(B.TableTr,{}),D.jsx(B.TableTr,{children:D.jsx(B.TableTd,{className:"mantine-datatable-row-expansion-cell",colSpan:n,children:D.jsx(B.Collapse,{in:l,...s,children:D.jsx("div",{className:"mantine-datatable-row-expansion-cell-content",children:r()})})})})]}):null}function Y0({className:i,style:n,record:r,index:s,trigger:l,onChange:p,withRightShadow:f,checkboxProps:c,getCheckboxProps:b,...C}){let O={...c,...b(r,s)},L=!C.disabled&&!O.disabled,k=M=>{M.stopPropagation(),l==="cell"&&L&&(p==null||p(M))};return D.jsx(B.TableTd,{className:mt("mantine-datatable-row-selector-cell",{[Jr]:l==="cell"&&L},i),style:n,"data-shadow-visible":f||void 0,onClick:k,children:D.jsx(B.Checkbox,{classNames:L?{input:Jr}:void 0,onChange:p,...C,...O})})}function q0({record:i,index:n,columns:r,defaultColumnProps:s,defaultColumnRender:l,selectionTrigger:p,selectionVisible:f,selectionChecked:c,onSelectionChange:b,isRecordSelectable:C,selectionCheckboxProps:O,getSelectionCheckboxProps:L,onClick:k,onDoubleClick:M,onContextMenu:R,onCellClick:E,onCellDoubleClick:N,onCellContextMenu:Q,expansion:te,customAttributes:X,color:ae,backgroundColor:H,className:fe,style:ee,selectorCellShadowVisible:re,selectionColumnClassName:se,selectionColumnStyle:pe,rowFactory:ie}){let Ae=D.jsxs(D.Fragment,{children:[f&&D.jsx(Y0,{className:se,style:pe,record:i,index:n,trigger:p,withRightShadow:re,checked:c,disabled:!b||(C?!C(i,n):!1),onChange:b,checkboxProps:O,getCheckboxProps:L}),r.map(({hidden:I,hiddenContent:A,...v},d)=>{if(I||A)return null;let{accessor:_,visibleMediaQuery:g,textAlign:m,noWrap:T,ellipsis:Y,width:Z,render:ce,cellsClassName:de,cellsStyle:we,customCellAttributes:J}={...s,...v};return D.jsx(F0,{className:typeof de=="function"?de(i,n):de,style:we==null?void 0:we(i,n),visibleMediaQuery:g,record:i,index:n,onClick:E?le=>E({event:le,record:i,index:n,column:v,columnIndex:d}):void 0,onDoubleClick:N?le=>N({event:le,record:i,index:n,column:v,columnIndex:d}):void 0,onContextMenu:Q?le=>Q({event:le,record:i,index:n,column:v,columnIndex:d}):void 0,accessor:_,textAlign:m,noWrap:T,ellipsis:Y,width:Z,render:ce,defaultRender:l,customCellAttributes:J},_)})]}),Oe=te&&D.jsx(W0,{colSpan:r.filter(({hidden:I})=>!I).length+(f?1:0),open:te.isRowExpanded(i),content:te.content({record:i,index:n}),collapseProps:te.collapseProps}),j=H0({record:i,index:n,selectionChecked:c,onClick:k,onDoubleClick:M,onContextMenu:R,expansion:te,customAttributes:X,color:ae,backgroundColor:H,className:fe,style:ee});return ie?ie({record:i,index:n,rowProps:j,children:Ae,expandedElement:Oe}):D.jsxs(D.Fragment,{children:[D.jsx(B.TableTr,{...j,children:Ae}),Oe]})}function H0({record:i,index:n,selectionChecked:r,onClick:s,onDoubleClick:l,onContextMenu:p,expansion:f,customAttributes:c,color:b,backgroundColor:C,className:O,style:L}){return{className:mt("mantine-datatable-row",{[Jr]:s||l||(f==null?void 0:f.isExpandable({record:i,index:n}))&&(f==null?void 0:f.expandOnClick)},{[Hc]:p},typeof O=="function"?O(i,n):O),"data-selected":r||void 0,onClick:k=>{if(f){let{isExpandable:M,isRowExpanded:R,expandOnClick:E,expandRow:N,collapseRow:Q}=f;M({record:i,index:n})&&E&&(R(i)?Q(i):N(i))}s==null||s({event:k,record:i,index:n})},onDoubleClick:l?k=>l({event:k,record:i,index:n}):void 0,onContextMenu:p?k=>p({event:k,record:i,index:n}):void 0,style:[b||C?k=>{let M=b==null?void 0:b(i,n),R=C==null?void 0:C(i,n);return B0({theme:k,color:M,backgroundColor:R})}:void 0,L==null?void 0:L(i,n)],...(c==null?void 0:c(i,n))??{}}}function G0({topShadowVisible:i,leftShadowVisible:n,leftShadowBehind:r,rightShadowVisible:s,rightShadowBehind:l,bottomShadowVisible:p,headerHeight:f,footerHeight:c,onScrollPositionChange:b,children:C,viewportRef:O,scrollAreaProps:L}){return D.jsxs(B.ScrollArea,{...L,viewportRef:O,classNames:{root:"mantine-datatable-scroll-area",scrollbar:"mantine-datatable-scroll-area-scrollbar",thumb:"mantine-datatable-scroll-area-thumb",corner:"mantine-datatable-scroll-area-corner"},onScrollPositionChange:b,children:[C,D.jsx(B.Box,{className:mt("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-top-shadow",{"mantine-datatable-scroll-area-shadow-visible":i}),style:{top:f?B.rem(f):0}}),D.jsx("div",{className:mt("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-left-shadow",{"mantine-datatable-scroll-area-shadow-visible":n,"mantine-datatable-scroll-area-shadow-behind":r})}),D.jsx("div",{className:mt("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-right-shadow",{"mantine-datatable-scroll-area-shadow-visible":s,"mantine-datatable-scroll-area-shadow-behind":l})}),D.jsx(B.Box,{className:mt("mantine-datatable-scroll-area-shadow","mantine-datatable-scroll-area-bottom-shadow",{"mantine-datatable-scroll-area-shadow-visible":p}),style:{bottom:c?B.rem(c+1):0}})]})}function V0({withTableBorder:i,borderRadius:n,textSelectionDisabled:r,height:s="100%",minHeight:l,maxHeight:p,shadow:f,verticalAlign:c="center",fetching:b,columns:C,storeColumnsKey:O,groups:L,pinFirstColumn:k,pinLastColumn:M,defaultColumnProps:R,defaultColumnRender:E,idAccessor:N="id",records:Q,selectionTrigger:te="checkbox",selectedRecords:X,onSelectedRecordsChange:ae,selectionColumnClassName:H,selectionColumnStyle:fe,isRecordSelectable:ee,selectionCheckboxProps:re,allRecordsSelectionCheckboxProps:se={"aria-label":"Select all records"},getRecordSelectionCheckboxProps:pe=(Ht,jn)=>({"aria-label":`Select record ${jn+1}`}),sortStatus:ie,sortIcons:Ae,onSortStatusChange:Oe,horizontalSpacing:j,page:I,onPageChange:A,totalRecords:v,recordsPerPage:d,onRecordsPerPageChange:_,recordsPerPageOptions:g,recordsPerPageLabel:m="Records per page",paginationWithEdges:T,paginationWithControls:Y,paginationActiveTextColor:Z,paginationActiveBackgroundColor:ce,paginationSize:de="sm",paginationText:we=({from:Ht,to:jn,totalRecords:Un})=>`${Ht} - ${jn} / ${Un}`,paginationWrapBreakpoint:J="sm",getPaginationControlProps:le=Ht=>Ht==="previous"?{"aria-label":"Previous page"}:Ht==="next"?{"aria-label":"Next page"}:{},loaderBackgroundBlur:Ce,customLoader:be,loaderSize:z,loaderType:q,loaderColor:W,loadingText:K="...",emptyState:ue,noRecordsText:Te="No records",noRecordsIcon:u,highlightOnHover:h,striped:w,noHeader:P,onRowClick:U,onRowDoubleClick:ne,onRowContextMenu:xe,onCellClick:De,onCellDoubleClick:Re,onCellContextMenu:Se,onScroll:Le,onScrollToTop:Pe,onScrollToBottom:Ie,onScrollToLeft:et,onScrollToRight:Ge,c:tt,backgroundColor:pt,borderColor:xt,rowBorderColor:lt,stripedColor:St,highlightOnHoverColor:Sn,rowColor:Bn,rowBackgroundColor:Dt,rowExpansion:Qt,rowClassName:Jt,rowStyle:hn,customRowAttributes:Rn,scrollViewportRef:ct,scrollAreaProps:Ct,tableRef:at,bodyRef:qt,m:si,my:ai,mx:fr,mt:ui,mb:Wi,ml:ka,mr:Ia,className:$a,classNames:Rt,style:Pa,styles:Lt,rowFactory:Na,tableWrapper:Yi,...qi}){let{ref:Ht,width:jn,height:Un}=Qr(),Ir=ye.useMemo(()=>(L==null?void 0:L.flatMap(Ze=>Ze.columns))??C,[C,L]),es=c0({key:O,columns:Ir}),{ref:Ba,height:hr}=Qr(),{ref:ja,width:dr,height:$r}=Qr(),{ref:Ua,height:za}=Qr(),{ref:ts,height:Hi}=Qr(),{ref:ns,width:Fa}=Qr(),Wa=Tt.useMergedRef(ja,at),Ya=Tt.useMergedRef(Ht,ct),[Gi,Vi]=ye.useState(!0),[li,Zi]=ye.useState(!0),[zn,rs]=ye.useState(!0),[Pr,Nr]=ye.useState(!0),is=y0({rowExpansion:Qt,records:Q,idAccessor:N}),Ki=ye.useCallback(()=>{var gr,vr;let Ze=((gr=Ht.current)==null?void 0:gr.scrollTop)??0,Xt=((vr=Ht.current)==null?void 0:vr.scrollLeft)??0;if(b||$r<=Un)Vi(!0),Zi(!0);else{let dn=Ze===0,en=$r-Ze-Un<1;Vi(dn),Zi(en),dn&&dn!==Gi&&(Pe==null||Pe()),en&&en!==li&&(Ie==null||Ie())}if(b||dr===jn)rs(!0),Nr(!0);else{let dn=Xt===0,en=dr-Xt-jn<1;rs(dn),Nr(en),dn&&dn!==zn&&(et==null||et()),en&&en!==Pr&&(Ge==null||Ge())}},[b,Ie,et,Ge,Pe,Un,Ht,jn,li,zn,Pr,Gi,$r,dr]);f0(Ki,[Ki]);let Qi=Tt.useDebouncedCallback(Ki,50),os=ye.useCallback(Ze=>{Le==null||Le(Ze),Qi()},[Qi,Le]),Ji=ye.useCallback(Ze=>{var Xt;(Xt=Ht.current)==null||Xt.scrollTo({top:0,left:0}),A(Ze)},[A,Ht]),ci=Q==null?void 0:Q.length,Xi=Q==null?void 0:Q.map(Ze=>Bt(Ze,N)),Ln=!!X,Cn=X==null?void 0:X.map(Ze=>Bt(Ze,N)),Fn=Xi!==void 0&&Cn!==void 0&&Cn.length>0,pr=ee?Q==null?void 0:Q.filter(ee):Q,Br=pr==null?void 0:pr.map(Ze=>Bt(Ze,N)),fi=Fn&&Br.every(Ze=>Cn.includes(Ze)),ss=Fn&&Br.some(Ze=>Cn.includes(Ze)),as=ye.useCallback(()=>{X&&ae&&ae(fi?X.filter(Ze=>!Br.includes(Bt(Ze,N))):Ma([...X,...pr],Ze=>Bt(Ze,N)))},[fi,N,ae,Br,pr,X]),{lastSelectionChangeIndex:jr,setLastSelectionChangeIndex:us}=h0(Xi),eo=Ln&&!zn&&!k,qa={m:si,my:ai,mx:fr,mt:ui,mb:Wi,ml:ka,mr:Ia},Ha=ye.useCallback(({children:Ze})=>Yi?Yi({children:Ze}):Ze,[Yi]);return D.jsx(Yc,{...es,children:D.jsxs(B.Box,{...qa,className:mt("mantine-datatable",{"mantine-datatable-with-border":i},$a,Rt==null?void 0:Rt.root),style:[Ze=>({...N0({theme:Ze,c:tt,backgroundColor:pt,borderColor:xt,rowBorderColor:lt,stripedColor:St,highlightOnHoverColor:Sn}),borderRadius:Ze.radius[n]||n,boxShadow:Ze.shadows[f]||f,height:s,minHeight:l,maxHeight:p}),Pa,Lt==null?void 0:Lt.root,{position:"relative"}],children:[D.jsx(G0,{viewportRef:Ya,topShadowVisible:!Gi,leftShadowVisible:!zn,leftShadowBehind:Ln||!!k,rightShadowVisible:!Pr,rightShadowBehind:M,bottomShadowVisible:!li,headerHeight:hr,footerHeight:za,onScrollPositionChange:os,scrollAreaProps:Ct,children:D.jsx(Ha,{children:D.jsxs(B.Table,{ref:Wa,horizontalSpacing:j,className:mt("mantine-datatable-table",{[_0]:r,"mantine-datatable-vertical-align-top":c==="top","mantine-datatable-vertical-align-bottom":c==="bottom","mantine-datatable-last-row-border-bottom-visible":qi.withRowBorders&&$r<Un,"mantine-datatable-pin-last-column":M,"mantine-datatable-pin-last-column-scrolled":!Pr&&M,"mantine-datatable-selection-column-visible":Ln,"mantine-datatable-pin-first-column":k,"mantine-datatable-pin-first-column-scrolled":!zn&&k},Rt==null?void 0:Rt.table),style:{...Lt==null?void 0:Lt.table,"--mantine-datatable-selection-column-width":`${Fa}px`},"data-striped":ci&&w||void 0,"data-highlight-on-hover":h||void 0,...qi,children:[P?null:D.jsx(Yc,{...es,children:D.jsx($0,{ref:Ba,selectionColumnHeaderRef:ns,className:Rt==null?void 0:Rt.header,style:Lt==null?void 0:Lt.header,columns:Ir,defaultColumnProps:R,groups:L,sortStatus:ie,sortIcons:Ae,onSortStatusChange:Oe,selectionTrigger:te,selectionVisible:Ln,selectionChecked:fi,selectionIndeterminate:ss&&!fi,onSelectionChange:as,selectionCheckboxProps:{...re,...se},selectorCellShadowVisible:eo,selectionColumnClassName:H,selectionColumnStyle:fe})}),D.jsx("tbody",{ref:qt,children:ci?Q.map((Ze,Xt)=>{let gr=Bt(Ze,N),vr=(Cn==null?void 0:Cn.includes(gr))||!1,dn;return ae&&X&&(dn=en=>{if(en.nativeEvent.shiftKey&&jr!==null){let mr=Q.filter(Xt>jr?(Wn,Yn)=>Yn>=jr&&Yn<=Xt&&(ee?ee(Wn,Yn):!0):(Wn,Yn)=>Yn>=Xt&&Yn<=jr&&(ee?ee(Wn,Yn):!0));ae(vr?m0(X,mr,Wn=>Bt(Wn,N)):Ma([...X,...mr],Wn=>Bt(Wn,N)))}else ae(vr?X.filter(mr=>Bt(mr,N)!==gr):Ma([...X,Ze],mr=>Bt(mr,N)));us(Xt)}),D.jsx(q0,{record:Ze,index:Xt,columns:Ir,defaultColumnProps:R,defaultColumnRender:E,selectionTrigger:te,selectionVisible:Ln,selectionChecked:vr,onSelectionChange:dn,isRecordSelectable:ee,selectionCheckboxProps:re,getSelectionCheckboxProps:pe,onClick:U,onDoubleClick:ne,onCellClick:De,onCellDoubleClick:Re,onContextMenu:xe,onCellContextMenu:Se,expansion:is,color:Bn,backgroundColor:Dt,className:Jt,style:hn,customAttributes:Rn,selectorCellShadowVisible:eo,selectionColumnClassName:H,selectionColumnStyle:fe,idAccessor:N,rowFactory:Na},gr)}):D.jsx(a0,{})}),Ir.some(({footer:Ze})=>Ze)&&D.jsx(S0,{ref:Ua,className:Rt==null?void 0:Rt.footer,style:Lt==null?void 0:Lt.footer,columns:Ir,defaultColumnProps:R,selectionVisible:Ln,selectorCellShadowVisible:eo,scrollDiff:$r-Un})]})})}),I&&D.jsx(z0,{ref:ts,className:Rt==null?void 0:Rt.pagination,style:Lt==null?void 0:Lt.pagination,horizontalSpacing:j,fetching:b,page:I,onPageChange:Ji,totalRecords:v,recordsPerPage:d,onRecordsPerPageChange:_,recordsPerPageOptions:g,recordsPerPageLabel:m,paginationWithEdges:T,paginationWithControls:Y,paginationActiveTextColor:Z,paginationActiveBackgroundColor:ce,paginationSize:de,paginationText:we,paginationWrapBreakpoint:J,getPaginationControlProps:le,noRecordsText:Te,loadingText:K,recordsLength:ci}),D.jsx(P0,{pt:hr,pb:Hi,fetching:b,backgroundBlur:Ce,customContent:be,size:z,type:q,color:W}),D.jsx(l0,{pt:hr,pb:Hi,icon:u,text:Te,active:!b&&!ci,children:ue})]})})}var Z0=ye.forwardRef(function({children:i,isDragging:n,...r},s){let l=ye.useRef(null),p=Tt.useMergedRef(l,s);return ye.useEffect(()=>{if(!l.current||!n)return;let f=l.current.parentElement.parentElement.children[0].children[0];for(let c=0;c<f.children.length;c++){let b=f.children[c].getBoundingClientRect(),C=l.current.children[c];C.style.height=b.height+"px",C.style.width=b.width+"px",C.style.minWidth=b.width+"px",C.style.maxWidth=b.width+"px"}},[n,i]),D.jsx(B.TableTr,{"data-is-dragging":n,ref:p,...r,children:i})});Z0.displayName="DataTableDraggableRow";var Ui={exports:{}};/**
118
118
  * @license
119
119
  * Lodash <https://lodash.com/>
120
120
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
121
121
  * Released under MIT license <https://lodash.com/license>
122
122
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
123
123
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
124
- */var Q0=Ui.exports,Zc;function J0(){return Zc||(Zc=1,function(i,n){(function(){var r,s="4.17.21",l=200,g="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",h="Expected a function",c="Invalid `variable` option passed into `_.template`",b="__lodash_hash_undefined__",C=500,O="__lodash_placeholder__",L=1,k=2,M=4,R=1,E=2,N=1,Q=2,te=4,ee=8,ue=16,G=32,de=64,ne=128,re=256,se=512,pe=30,ie="...",Ae=800,Oe=16,j=1,I=2,T=3,p=1/0,f=9007199254740991,_=17976931348623157e292,v=NaN,m=4294967295,D=m-1,Y=m>>>1,Z=[["ary",ne],["bind",N],["bindKey",Q],["curry",ee],["curryRight",ue],["flip",se],["partial",G],["partialRight",de],["rearg",re]],ce="[object Arguments]",he="[object Array]",we="[object AsyncFunction]",J="[object Boolean]",le="[object Date]",Ce="[object DOMException]",be="[object Error]",z="[object Function]",q="[object GeneratorFunction]",W="[object Map]",K="[object Number]",ae="[object Null]",Te="[object Object]",u="[object Promise]",d="[object Proxy]",w="[object RegExp]",P="[object Set]",U="[object String]",X="[object Symbol]",xe="[object Undefined]",De="[object WeakMap]",Re="[object WeakSet]",Se="[object ArrayBuffer]",Le="[object DataView]",Pe="[object Float32Array]",Ie="[object Float64Array]",et="[object Int8Array]",Ge="[object Int16Array]",tt="[object Int32Array]",pt="[object Uint8Array]",xt="[object Uint8ClampedArray]",lt="[object Uint16Array]",St="[object Uint32Array]",Sn=/\b__p \+= '';/g,Bn=/\b(__p \+=) '' \+/g,Dt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Qt=/&(?:amp|lt|gt|quot|#39);/g,Jt=/[&<>"']/g,hn=RegExp(Qt.source),Rn=RegExp(Jt.source),ct=/<%-([\s\S]+?)%>/g,Ct=/<%([\s\S]+?)%>/g,at=/<%=([\s\S]+?)%>/g,qt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,si=/^\w*$/,ai=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,fr=/[\\^$.*+?()[\]{}|]/g,ui=RegExp(fr.source),Wi=/^\s+/,ka=/\s/,Ia=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,$a=/\{\n\/\* \[wrapped with (.+)\] \*/,Rt=/,? & /,Pa=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Lt=/[()=,{}\[\]\/\s]/,Na=/\\(\\)?/g,Yi=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qi=/\w*$/,Ht=/^[-+]0x[0-9a-f]+$/i,jn=/^0b[01]+$/i,Un=/^\[object .+?Constructor\]$/,Ir=/^0o[0-7]+$/i,es=/^(?:0|[1-9]\d*)$/,Ba=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,hr=/($^)/,ja=/['\n\r\u2028\u2029\\]/g,dr="\\ud800-\\udfff",$r="\\u0300-\\u036f",Ua="\\ufe20-\\ufe2f",za="\\u20d0-\\u20ff",ts=$r+Ua+za,Hi="\\u2700-\\u27bf",ns="a-z\\xdf-\\xf6\\xf8-\\xff",Fa="\\xac\\xb1\\xd7\\xf7",Wa="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ya="\\u2000-\\u206f",Gi=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Vi="A-Z\\xc0-\\xd6\\xd8-\\xde",li="\\ufe0e\\ufe0f",Zi=Fa+Wa+Ya+Gi,zn="['’]",rs="["+dr+"]",Pr="["+Zi+"]",Nr="["+ts+"]",is="\\d+",Ki="["+Hi+"]",Qi="["+ns+"]",os="[^"+dr+Zi+is+Hi+ns+Vi+"]",Ji="\\ud83c[\\udffb-\\udfff]",ci="(?:"+Nr+"|"+Ji+")",Xi="[^"+dr+"]",Ln="(?:\\ud83c[\\udde6-\\uddff]){2}",Cn="[\\ud800-\\udbff][\\udc00-\\udfff]",Fn="["+Vi+"]",pr="\\u200d",Br="(?:"+Qi+"|"+os+")",fi="(?:"+Fn+"|"+os+")",ss="(?:"+zn+"(?:d|ll|m|re|s|t|ve))?",as="(?:"+zn+"(?:D|LL|M|RE|S|T|VE))?",jr=ci+"?",us="["+li+"]?",eo="(?:"+pr+"(?:"+[Xi,Ln,Cn].join("|")+")"+us+jr+")*",qa="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ha="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ze=us+jr+eo,Xt="(?:"+[Ki,Ln,Cn].join("|")+")"+Ze,gr="(?:"+[Xi+Nr+"?",Nr,Ln,Cn,rs].join("|")+")",vr=RegExp(zn,"g"),dn=RegExp(Nr,"g"),en=RegExp(Ji+"(?="+Ji+")|"+gr+Ze,"g"),mr=RegExp([Fn+"?"+Qi+"+"+ss+"(?="+[Pr,Fn,"$"].join("|")+")",fi+"+"+as+"(?="+[Pr,Fn+Br,"$"].join("|")+")",Fn+"?"+Br+"+"+ss,Fn+"+"+as,Ha,qa,is,Xt].join("|"),"g"),Wn=RegExp("["+pr+dr+ts+li+"]"),Yn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,wv=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],_v=-1,ht={};ht[Pe]=ht[Ie]=ht[et]=ht[Ge]=ht[tt]=ht[pt]=ht[xt]=ht[lt]=ht[St]=!0,ht[ce]=ht[he]=ht[Se]=ht[J]=ht[Le]=ht[le]=ht[be]=ht[z]=ht[W]=ht[K]=ht[Te]=ht[w]=ht[P]=ht[U]=ht[De]=!1;var ft={};ft[ce]=ft[he]=ft[Se]=ft[Le]=ft[J]=ft[le]=ft[Pe]=ft[Ie]=ft[et]=ft[Ge]=ft[tt]=ft[W]=ft[K]=ft[Te]=ft[w]=ft[P]=ft[U]=ft[X]=ft[pt]=ft[xt]=ft[lt]=ft[St]=!0,ft[be]=ft[z]=ft[De]=!1;var bv={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},xv={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Sv={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Cv={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Av=parseFloat,Ov=parseInt,tf=typeof yo=="object"&&yo&&yo.Object===Object&&yo,Tv=typeof self=="object"&&self&&self.Object===Object&&self,kt=tf||Tv||Function("return this")(),Ga=n&&!n.nodeType&&n,Ur=Ga&&!0&&i&&!i.nodeType&&i,nf=Ur&&Ur.exports===Ga,Va=nf&&tf.process,pn=function(){try{var H=Ur&&Ur.require&&Ur.require("util").types;return H||Va&&Va.binding&&Va.binding("util")}catch{}}(),rf=pn&&pn.isArrayBuffer,of=pn&&pn.isDate,sf=pn&&pn.isMap,af=pn&&pn.isRegExp,uf=pn&&pn.isSet,lf=pn&&pn.isTypedArray;function tn(H,fe,oe){switch(oe.length){case 0:return H.call(fe);case 1:return H.call(fe,oe[0]);case 2:return H.call(fe,oe[0],oe[1]);case 3:return H.call(fe,oe[0],oe[1],oe[2])}return H.apply(fe,oe)}function Dv(H,fe,oe,Me){for(var Fe=-1,nt=H==null?0:H.length;++Fe<nt;){var At=H[Fe];fe(Me,At,oe(At),H)}return Me}function gn(H,fe){for(var oe=-1,Me=H==null?0:H.length;++oe<Me&&fe(H[oe],oe,H)!==!1;);return H}function Ev(H,fe){for(var oe=H==null?0:H.length;oe--&&fe(H[oe],oe,H)!==!1;);return H}function cf(H,fe){for(var oe=-1,Me=H==null?0:H.length;++oe<Me;)if(!fe(H[oe],oe,H))return!1;return!0}function yr(H,fe){for(var oe=-1,Me=H==null?0:H.length,Fe=0,nt=[];++oe<Me;){var At=H[oe];fe(At,oe,H)&&(nt[Fe++]=At)}return nt}function ls(H,fe){var oe=H==null?0:H.length;return!!oe&&hi(H,fe,0)>-1}function Za(H,fe,oe){for(var Me=-1,Fe=H==null?0:H.length;++Me<Fe;)if(oe(fe,H[Me]))return!0;return!1}function gt(H,fe){for(var oe=-1,Me=H==null?0:H.length,Fe=Array(Me);++oe<Me;)Fe[oe]=fe(H[oe],oe,H);return Fe}function wr(H,fe){for(var oe=-1,Me=fe.length,Fe=H.length;++oe<Me;)H[Fe+oe]=fe[oe];return H}function Ka(H,fe,oe,Me){var Fe=-1,nt=H==null?0:H.length;for(Me&&nt&&(oe=H[++Fe]);++Fe<nt;)oe=fe(oe,H[Fe],Fe,H);return oe}function Mv(H,fe,oe,Me){var Fe=H==null?0:H.length;for(Me&&Fe&&(oe=H[--Fe]);Fe--;)oe=fe(oe,H[Fe],Fe,H);return oe}function Qa(H,fe){for(var oe=-1,Me=H==null?0:H.length;++oe<Me;)if(fe(H[oe],oe,H))return!0;return!1}var Rv=Ja("length");function Lv(H){return H.split("")}function kv(H){return H.match(Pa)||[]}function ff(H,fe,oe){var Me;return oe(H,function(Fe,nt,At){if(fe(Fe,nt,At))return Me=nt,!1}),Me}function cs(H,fe,oe,Me){for(var Fe=H.length,nt=oe+(Me?1:-1);Me?nt--:++nt<Fe;)if(fe(H[nt],nt,H))return nt;return-1}function hi(H,fe,oe){return fe===fe?qv(H,fe,oe):cs(H,hf,oe)}function Iv(H,fe,oe,Me){for(var Fe=oe-1,nt=H.length;++Fe<nt;)if(Me(H[Fe],fe))return Fe;return-1}function hf(H){return H!==H}function df(H,fe){var oe=H==null?0:H.length;return oe?eu(H,fe)/oe:v}function Ja(H){return function(fe){return fe==null?r:fe[H]}}function Xa(H){return function(fe){return H==null?r:H[fe]}}function pf(H,fe,oe,Me,Fe){return Fe(H,function(nt,At,ut){oe=Me?(Me=!1,nt):fe(oe,nt,At,ut)}),oe}function $v(H,fe){var oe=H.length;for(H.sort(fe);oe--;)H[oe]=H[oe].value;return H}function eu(H,fe){for(var oe,Me=-1,Fe=H.length;++Me<Fe;){var nt=fe(H[Me]);nt!==r&&(oe=oe===r?nt:oe+nt)}return oe}function tu(H,fe){for(var oe=-1,Me=Array(H);++oe<H;)Me[oe]=fe(oe);return Me}function Pv(H,fe){return gt(fe,function(oe){return[oe,H[oe]]})}function gf(H){return H&&H.slice(0,wf(H)+1).replace(Wi,"")}function nn(H){return function(fe){return H(fe)}}function nu(H,fe){return gt(fe,function(oe){return H[oe]})}function to(H,fe){return H.has(fe)}function vf(H,fe){for(var oe=-1,Me=H.length;++oe<Me&&hi(fe,H[oe],0)>-1;);return oe}function mf(H,fe){for(var oe=H.length;oe--&&hi(fe,H[oe],0)>-1;);return oe}function Nv(H,fe){for(var oe=H.length,Me=0;oe--;)H[oe]===fe&&++Me;return Me}var Bv=Xa(bv),jv=Xa(xv);function Uv(H){return"\\"+Cv[H]}function zv(H,fe){return H==null?r:H[fe]}function di(H){return Wn.test(H)}function Fv(H){return Yn.test(H)}function Wv(H){for(var fe,oe=[];!(fe=H.next()).done;)oe.push(fe.value);return oe}function ru(H){var fe=-1,oe=Array(H.size);return H.forEach(function(Me,Fe){oe[++fe]=[Fe,Me]}),oe}function yf(H,fe){return function(oe){return H(fe(oe))}}function _r(H,fe){for(var oe=-1,Me=H.length,Fe=0,nt=[];++oe<Me;){var At=H[oe];(At===fe||At===O)&&(H[oe]=O,nt[Fe++]=oe)}return nt}function fs(H){var fe=-1,oe=Array(H.size);return H.forEach(function(Me){oe[++fe]=Me}),oe}function Yv(H){var fe=-1,oe=Array(H.size);return H.forEach(function(Me){oe[++fe]=[Me,Me]}),oe}function qv(H,fe,oe){for(var Me=oe-1,Fe=H.length;++Me<Fe;)if(H[Me]===fe)return Me;return-1}function Hv(H,fe,oe){for(var Me=oe+1;Me--;)if(H[Me]===fe)return Me;return Me}function pi(H){return di(H)?Vv(H):Rv(H)}function An(H){return di(H)?Zv(H):Lv(H)}function wf(H){for(var fe=H.length;fe--&&ka.test(H.charAt(fe)););return fe}var Gv=Xa(Sv);function Vv(H){for(var fe=en.lastIndex=0;en.test(H);)++fe;return fe}function Zv(H){return H.match(en)||[]}function Kv(H){return H.match(mr)||[]}var Qv=function H(fe){fe=fe==null?kt:gi.defaults(kt.Object(),fe,gi.pick(kt,wv));var oe=fe.Array,Me=fe.Date,Fe=fe.Error,nt=fe.Function,At=fe.Math,ut=fe.Object,iu=fe.RegExp,Jv=fe.String,vn=fe.TypeError,hs=oe.prototype,Xv=nt.prototype,vi=ut.prototype,ds=fe["__core-js_shared__"],ps=Xv.toString,ot=vi.hasOwnProperty,em=0,_f=function(){var e=/[^.]+$/.exec(ds&&ds.keys&&ds.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),gs=vi.toString,tm=ps.call(ut),nm=kt._,rm=iu("^"+ps.call(ot).replace(fr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),vs=nf?fe.Buffer:r,br=fe.Symbol,ms=fe.Uint8Array,bf=vs?vs.allocUnsafe:r,ys=yf(ut.getPrototypeOf,ut),xf=ut.create,Sf=vi.propertyIsEnumerable,ws=hs.splice,Cf=br?br.isConcatSpreadable:r,no=br?br.iterator:r,zr=br?br.toStringTag:r,_s=function(){try{var e=Hr(ut,"defineProperty");return e({},"",{}),e}catch{}}(),im=fe.clearTimeout!==kt.clearTimeout&&fe.clearTimeout,om=Me&&Me.now!==kt.Date.now&&Me.now,sm=fe.setTimeout!==kt.setTimeout&&fe.setTimeout,bs=At.ceil,xs=At.floor,ou=ut.getOwnPropertySymbols,am=vs?vs.isBuffer:r,Af=fe.isFinite,um=hs.join,lm=yf(ut.keys,ut),Ot=At.max,$t=At.min,cm=Me.now,fm=fe.parseInt,Of=At.random,hm=hs.reverse,su=Hr(fe,"DataView"),ro=Hr(fe,"Map"),au=Hr(fe,"Promise"),mi=Hr(fe,"Set"),io=Hr(fe,"WeakMap"),oo=Hr(ut,"create"),Ss=io&&new io,yi={},dm=Gr(su),pm=Gr(ro),gm=Gr(au),vm=Gr(mi),mm=Gr(io),Cs=br?br.prototype:r,so=Cs?Cs.valueOf:r,Tf=Cs?Cs.toString:r;function x(e){if(yt(e)&&!We(e)&&!(e instanceof Qe)){if(e instanceof mn)return e;if(ot.call(e,"__wrapped__"))return Dh(e)}return new mn(e)}var wi=function(){function e(){}return function(t){if(!vt(t))return{};if(xf)return xf(t);e.prototype=t;var o=new e;return e.prototype=r,o}}();function As(){}function mn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}x.templateSettings={escape:ct,evaluate:Ct,interpolate:at,variable:"",imports:{_:x}},x.prototype=As.prototype,x.prototype.constructor=x,mn.prototype=wi(As.prototype),mn.prototype.constructor=mn;function Qe(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function ym(){var e=new Qe(this.__wrapped__);return e.__actions__=Gt(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Gt(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Gt(this.__views__),e}function wm(){if(this.__filtered__){var e=new Qe(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function _m(){var e=this.__wrapped__.value(),t=this.__dir__,o=We(e),a=t<0,y=o?e.length:0,S=Ly(0,y,this.__views__),$=S.start,F=S.end,V=F-$,ge=a?F:$-1,ve=this.__iteratees__,_e=ve.length,Ee=0,$e=$t(V,this.__takeCount__);if(!o||!a&&y==V&&$e==V)return Qf(e,this.__actions__);var Be=[];e:for(;V--&&Ee<$e;){ge+=t;for(var qe=-1,je=e[ge];++qe<_e;){var Ke=ve[qe],Xe=Ke.iteratee,sn=Ke.type,Ft=Xe(je);if(sn==I)je=Ft;else if(!Ft){if(sn==j)continue e;break e}}Be[Ee++]=je}return Be}Qe.prototype=wi(As.prototype),Qe.prototype.constructor=Qe;function Fr(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var a=e[t];this.set(a[0],a[1])}}function bm(){this.__data__=oo?oo(null):{},this.size=0}function xm(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Sm(e){var t=this.__data__;if(oo){var o=t[e];return o===b?r:o}return ot.call(t,e)?t[e]:r}function Cm(e){var t=this.__data__;return oo?t[e]!==r:ot.call(t,e)}function Am(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=oo&&t===r?b:t,this}Fr.prototype.clear=bm,Fr.prototype.delete=xm,Fr.prototype.get=Sm,Fr.prototype.has=Cm,Fr.prototype.set=Am;function qn(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var a=e[t];this.set(a[0],a[1])}}function Om(){this.__data__=[],this.size=0}function Tm(e){var t=this.__data__,o=Os(t,e);if(o<0)return!1;var a=t.length-1;return o==a?t.pop():ws.call(t,o,1),--this.size,!0}function Dm(e){var t=this.__data__,o=Os(t,e);return o<0?r:t[o][1]}function Em(e){return Os(this.__data__,e)>-1}function Mm(e,t){var o=this.__data__,a=Os(o,e);return a<0?(++this.size,o.push([e,t])):o[a][1]=t,this}qn.prototype.clear=Om,qn.prototype.delete=Tm,qn.prototype.get=Dm,qn.prototype.has=Em,qn.prototype.set=Mm;function Hn(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var a=e[t];this.set(a[0],a[1])}}function Rm(){this.size=0,this.__data__={hash:new Fr,map:new(ro||qn),string:new Fr}}function Lm(e){var t=Bs(this,e).delete(e);return this.size-=t?1:0,t}function km(e){return Bs(this,e).get(e)}function Im(e){return Bs(this,e).has(e)}function $m(e,t){var o=Bs(this,e),a=o.size;return o.set(e,t),this.size+=o.size==a?0:1,this}Hn.prototype.clear=Rm,Hn.prototype.delete=Lm,Hn.prototype.get=km,Hn.prototype.has=Im,Hn.prototype.set=$m;function Wr(e){var t=-1,o=e==null?0:e.length;for(this.__data__=new Hn;++t<o;)this.add(e[t])}function Pm(e){return this.__data__.set(e,b),this}function Nm(e){return this.__data__.has(e)}Wr.prototype.add=Wr.prototype.push=Pm,Wr.prototype.has=Nm;function On(e){var t=this.__data__=new qn(e);this.size=t.size}function Bm(){this.__data__=new qn,this.size=0}function jm(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}function Um(e){return this.__data__.get(e)}function zm(e){return this.__data__.has(e)}function Fm(e,t){var o=this.__data__;if(o instanceof qn){var a=o.__data__;if(!ro||a.length<l-1)return a.push([e,t]),this.size=++o.size,this;o=this.__data__=new Hn(a)}return o.set(e,t),this.size=o.size,this}On.prototype.clear=Bm,On.prototype.delete=jm,On.prototype.get=Um,On.prototype.has=zm,On.prototype.set=Fm;function Df(e,t){var o=We(e),a=!o&&Vr(e),y=!o&&!a&&Or(e),S=!o&&!a&&!y&&Si(e),$=o||a||y||S,F=$?tu(e.length,Jv):[],V=F.length;for(var ge in e)(t||ot.call(e,ge))&&!($&&(ge=="length"||y&&(ge=="offset"||ge=="parent")||S&&(ge=="buffer"||ge=="byteLength"||ge=="byteOffset")||Kn(ge,V)))&&F.push(ge);return F}function Ef(e){var t=e.length;return t?e[yu(0,t-1)]:r}function Wm(e,t){return js(Gt(e),Yr(t,0,e.length))}function Ym(e){return js(Gt(e))}function uu(e,t,o){(o!==r&&!Tn(e[t],o)||o===r&&!(t in e))&&Gn(e,t,o)}function ao(e,t,o){var a=e[t];(!(ot.call(e,t)&&Tn(a,o))||o===r&&!(t in e))&&Gn(e,t,o)}function Os(e,t){for(var o=e.length;o--;)if(Tn(e[o][0],t))return o;return-1}function qm(e,t,o,a){return xr(e,function(y,S,$){t(a,y,o(y),$)}),a}function Mf(e,t){return e&&In(t,Et(t),e)}function Hm(e,t){return e&&In(t,Zt(t),e)}function Gn(e,t,o){t=="__proto__"&&_s?_s(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}function lu(e,t){for(var o=-1,a=t.length,y=oe(a),S=e==null;++o<a;)y[o]=S?r:Wu(e,t[o]);return y}function Yr(e,t,o){return e===e&&(o!==r&&(e=e<=o?e:o),t!==r&&(e=e>=t?e:t)),e}function yn(e,t,o,a,y,S){var $,F=t&L,V=t&k,ge=t&M;if(o&&($=y?o(e,a,y,S):o(e)),$!==r)return $;if(!vt(e))return e;var ve=We(e);if(ve){if($=Iy(e),!F)return Gt(e,$)}else{var _e=Pt(e),Ee=_e==z||_e==q;if(Or(e))return eh(e,F);if(_e==Te||_e==ce||Ee&&!y){if($=V||Ee?{}:wh(e),!F)return V?Sy(e,Hm($,e)):xy(e,Mf($,e))}else{if(!ft[_e])return y?e:{};$=$y(e,_e,F)}}S||(S=new On);var $e=S.get(e);if($e)return $e;S.set(e,$),Vh(e)?e.forEach(function(je){$.add(yn(je,t,o,je,e,S))}):Hh(e)&&e.forEach(function(je,Ke){$.set(Ke,yn(je,t,o,Ke,e,S))});var Be=ge?V?Eu:Du:V?Zt:Et,qe=ve?r:Be(e);return gn(qe||e,function(je,Ke){qe&&(Ke=je,je=e[Ke]),ao($,Ke,yn(je,t,o,Ke,e,S))}),$}function Gm(e){var t=Et(e);return function(o){return Rf(o,e,t)}}function Rf(e,t,o){var a=o.length;if(e==null)return!a;for(e=ut(e);a--;){var y=o[a],S=t[y],$=e[y];if($===r&&!(y in e)||!S($))return!1}return!0}function Lf(e,t,o){if(typeof e!="function")throw new vn(h);return go(function(){e.apply(r,o)},t)}function uo(e,t,o,a){var y=-1,S=ls,$=!0,F=e.length,V=[],ge=t.length;if(!F)return V;o&&(t=gt(t,nn(o))),a?(S=Za,$=!1):t.length>=l&&(S=to,$=!1,t=new Wr(t));e:for(;++y<F;){var ve=e[y],_e=o==null?ve:o(ve);if(ve=a||ve!==0?ve:0,$&&_e===_e){for(var Ee=ge;Ee--;)if(t[Ee]===_e)continue e;V.push(ve)}else S(t,_e,a)||V.push(ve)}return V}var xr=oh(kn),kf=oh(fu,!0);function Vm(e,t){var o=!0;return xr(e,function(a,y,S){return o=!!t(a,y,S),o}),o}function Ts(e,t,o){for(var a=-1,y=e.length;++a<y;){var S=e[a],$=t(S);if($!=null&&(F===r?$===$&&!on($):o($,F)))var F=$,V=S}return V}function Zm(e,t,o,a){var y=e.length;for(o=Ye(o),o<0&&(o=-o>y?0:y+o),a=a===r||a>y?y:Ye(a),a<0&&(a+=y),a=o>a?0:Kh(a);o<a;)e[o++]=t;return e}function If(e,t){var o=[];return xr(e,function(a,y,S){t(a,y,S)&&o.push(a)}),o}function It(e,t,o,a,y){var S=-1,$=e.length;for(o||(o=Ny),y||(y=[]);++S<$;){var F=e[S];t>0&&o(F)?t>1?It(F,t-1,o,a,y):wr(y,F):a||(y[y.length]=F)}return y}var cu=sh(),$f=sh(!0);function kn(e,t){return e&&cu(e,t,Et)}function fu(e,t){return e&&$f(e,t,Et)}function Ds(e,t){return yr(t,function(o){return Qn(e[o])})}function qr(e,t){t=Cr(t,e);for(var o=0,a=t.length;e!=null&&o<a;)e=e[$n(t[o++])];return o&&o==a?e:r}function Pf(e,t,o){var a=t(e);return We(e)?a:wr(a,o(e))}function Ut(e){return e==null?e===r?xe:ae:zr&&zr in ut(e)?Ry(e):Yy(e)}function hu(e,t){return e>t}function Km(e,t){return e!=null&&ot.call(e,t)}function Qm(e,t){return e!=null&&t in ut(e)}function Jm(e,t,o){return e>=$t(t,o)&&e<Ot(t,o)}function du(e,t,o){for(var a=o?Za:ls,y=e[0].length,S=e.length,$=S,F=oe(S),V=1/0,ge=[];$--;){var ve=e[$];$&&t&&(ve=gt(ve,nn(t))),V=$t(ve.length,V),F[$]=!o&&(t||y>=120&&ve.length>=120)?new Wr($&&ve):r}ve=e[0];var _e=-1,Ee=F[0];e:for(;++_e<y&&ge.length<V;){var $e=ve[_e],Be=t?t($e):$e;if($e=o||$e!==0?$e:0,!(Ee?to(Ee,Be):a(ge,Be,o))){for($=S;--$;){var qe=F[$];if(!(qe?to(qe,Be):a(e[$],Be,o)))continue e}Ee&&Ee.push(Be),ge.push($e)}}return ge}function Xm(e,t,o,a){return kn(e,function(y,S,$){t(a,o(y),S,$)}),a}function lo(e,t,o){t=Cr(t,e),e=Sh(e,t);var a=e==null?e:e[$n(_n(t))];return a==null?r:tn(a,e,o)}function Nf(e){return yt(e)&&Ut(e)==ce}function ey(e){return yt(e)&&Ut(e)==Se}function ty(e){return yt(e)&&Ut(e)==le}function co(e,t,o,a,y){return e===t?!0:e==null||t==null||!yt(e)&&!yt(t)?e!==e&&t!==t:ny(e,t,o,a,co,y)}function ny(e,t,o,a,y,S){var $=We(e),F=We(t),V=$?he:Pt(e),ge=F?he:Pt(t);V=V==ce?Te:V,ge=ge==ce?Te:ge;var ve=V==Te,_e=ge==Te,Ee=V==ge;if(Ee&&Or(e)){if(!Or(t))return!1;$=!0,ve=!1}if(Ee&&!ve)return S||(S=new On),$||Si(e)?vh(e,t,o,a,y,S):Ey(e,t,V,o,a,y,S);if(!(o&R)){var $e=ve&&ot.call(e,"__wrapped__"),Be=_e&&ot.call(t,"__wrapped__");if($e||Be){var qe=$e?e.value():e,je=Be?t.value():t;return S||(S=new On),y(qe,je,o,a,S)}}return Ee?(S||(S=new On),My(e,t,o,a,y,S)):!1}function ry(e){return yt(e)&&Pt(e)==W}function pu(e,t,o,a){var y=o.length,S=y,$=!a;if(e==null)return!S;for(e=ut(e);y--;){var F=o[y];if($&&F[2]?F[1]!==e[F[0]]:!(F[0]in e))return!1}for(;++y<S;){F=o[y];var V=F[0],ge=e[V],ve=F[1];if($&&F[2]){if(ge===r&&!(V in e))return!1}else{var _e=new On;if(a)var Ee=a(ge,ve,V,e,t,_e);if(!(Ee===r?co(ve,ge,R|E,a,_e):Ee))return!1}}return!0}function Bf(e){if(!vt(e)||jy(e))return!1;var t=Qn(e)?rm:Un;return t.test(Gr(e))}function iy(e){return yt(e)&&Ut(e)==w}function oy(e){return yt(e)&&Pt(e)==P}function sy(e){return yt(e)&&qs(e.length)&&!!ht[Ut(e)]}function jf(e){return typeof e=="function"?e:e==null?Kt:typeof e=="object"?We(e)?Ff(e[0],e[1]):zf(e):ad(e)}function gu(e){if(!po(e))return lm(e);var t=[];for(var o in ut(e))ot.call(e,o)&&o!="constructor"&&t.push(o);return t}function ay(e){if(!vt(e))return Wy(e);var t=po(e),o=[];for(var a in e)a=="constructor"&&(t||!ot.call(e,a))||o.push(a);return o}function vu(e,t){return e<t}function Uf(e,t){var o=-1,a=Vt(e)?oe(e.length):[];return xr(e,function(y,S,$){a[++o]=t(y,S,$)}),a}function zf(e){var t=Ru(e);return t.length==1&&t[0][2]?bh(t[0][0],t[0][1]):function(o){return o===e||pu(o,e,t)}}function Ff(e,t){return ku(e)&&_h(t)?bh($n(e),t):function(o){var a=Wu(o,e);return a===r&&a===t?Yu(o,e):co(t,a,R|E)}}function Es(e,t,o,a,y){e!==t&&cu(t,function(S,$){if(y||(y=new On),vt(S))uy(e,t,$,o,Es,a,y);else{var F=a?a($u(e,$),S,$+"",e,t,y):r;F===r&&(F=S),uu(e,$,F)}},Zt)}function uy(e,t,o,a,y,S,$){var F=$u(e,o),V=$u(t,o),ge=$.get(V);if(ge){uu(e,o,ge);return}var ve=S?S(F,V,o+"",e,t,$):r,_e=ve===r;if(_e){var Ee=We(V),$e=!Ee&&Or(V),Be=!Ee&&!$e&&Si(V);ve=V,Ee||$e||Be?We(F)?ve=F:wt(F)?ve=Gt(F):$e?(_e=!1,ve=eh(V,!0)):Be?(_e=!1,ve=th(V,!0)):ve=[]:vo(V)||Vr(V)?(ve=F,Vr(F)?ve=Qh(F):(!vt(F)||Qn(F))&&(ve=wh(V))):_e=!1}_e&&($.set(V,ve),y(ve,V,a,S,$),$.delete(V)),uu(e,o,ve)}function Wf(e,t){var o=e.length;if(o)return t+=t<0?o:0,Kn(t,o)?e[t]:r}function Yf(e,t,o){t.length?t=gt(t,function(S){return We(S)?function($){return qr($,S.length===1?S[0]:S)}:S}):t=[Kt];var a=-1;t=gt(t,nn(Ne()));var y=Uf(e,function(S,$,F){var V=gt(t,function(ge){return ge(S)});return{criteria:V,index:++a,value:S}});return $v(y,function(S,$){return by(S,$,o)})}function ly(e,t){return qf(e,t,function(o,a){return Yu(e,a)})}function qf(e,t,o){for(var a=-1,y=t.length,S={};++a<y;){var $=t[a],F=qr(e,$);o(F,$)&&fo(S,Cr($,e),F)}return S}function cy(e){return function(t){return qr(t,e)}}function mu(e,t,o,a){var y=a?Iv:hi,S=-1,$=t.length,F=e;for(e===t&&(t=Gt(t)),o&&(F=gt(e,nn(o)));++S<$;)for(var V=0,ge=t[S],ve=o?o(ge):ge;(V=y(F,ve,V,a))>-1;)F!==e&&ws.call(F,V,1),ws.call(e,V,1);return e}function Hf(e,t){for(var o=e?t.length:0,a=o-1;o--;){var y=t[o];if(o==a||y!==S){var S=y;Kn(y)?ws.call(e,y,1):bu(e,y)}}return e}function yu(e,t){return e+xs(Of()*(t-e+1))}function fy(e,t,o,a){for(var y=-1,S=Ot(bs((t-e)/(o||1)),0),$=oe(S);S--;)$[a?S:++y]=e,e+=o;return $}function wu(e,t){var o="";if(!e||t<1||t>f)return o;do t%2&&(o+=e),t=xs(t/2),t&&(e+=e);while(t);return o}function Ve(e,t){return Pu(xh(e,t,Kt),e+"")}function hy(e){return Ef(Ci(e))}function dy(e,t){var o=Ci(e);return js(o,Yr(t,0,o.length))}function fo(e,t,o,a){if(!vt(e))return e;t=Cr(t,e);for(var y=-1,S=t.length,$=S-1,F=e;F!=null&&++y<S;){var V=$n(t[y]),ge=o;if(V==="__proto__"||V==="constructor"||V==="prototype")return e;if(y!=$){var ve=F[V];ge=a?a(ve,V,F):r,ge===r&&(ge=vt(ve)?ve:Kn(t[y+1])?[]:{})}ao(F,V,ge),F=F[V]}return e}var Gf=Ss?function(e,t){return Ss.set(e,t),e}:Kt,py=_s?function(e,t){return _s(e,"toString",{configurable:!0,enumerable:!1,value:Hu(t),writable:!0})}:Kt;function gy(e){return js(Ci(e))}function wn(e,t,o){var a=-1,y=e.length;t<0&&(t=-t>y?0:y+t),o=o>y?y:o,o<0&&(o+=y),y=t>o?0:o-t>>>0,t>>>=0;for(var S=oe(y);++a<y;)S[a]=e[a+t];return S}function vy(e,t){var o;return xr(e,function(a,y,S){return o=t(a,y,S),!o}),!!o}function Ms(e,t,o){var a=0,y=e==null?a:e.length;if(typeof t=="number"&&t===t&&y<=Y){for(;a<y;){var S=a+y>>>1,$=e[S];$!==null&&!on($)&&(o?$<=t:$<t)?a=S+1:y=S}return y}return _u(e,t,Kt,o)}function _u(e,t,o,a){var y=0,S=e==null?0:e.length;if(S===0)return 0;t=o(t);for(var $=t!==t,F=t===null,V=on(t),ge=t===r;y<S;){var ve=xs((y+S)/2),_e=o(e[ve]),Ee=_e!==r,$e=_e===null,Be=_e===_e,qe=on(_e);if($)var je=a||Be;else ge?je=Be&&(a||Ee):F?je=Be&&Ee&&(a||!$e):V?je=Be&&Ee&&!$e&&(a||!qe):$e||qe?je=!1:je=a?_e<=t:_e<t;je?y=ve+1:S=ve}return $t(S,D)}function Vf(e,t){for(var o=-1,a=e.length,y=0,S=[];++o<a;){var $=e[o],F=t?t($):$;if(!o||!Tn(F,V)){var V=F;S[y++]=$===0?0:$}}return S}function Zf(e){return typeof e=="number"?e:on(e)?v:+e}function rn(e){if(typeof e=="string")return e;if(We(e))return gt(e,rn)+"";if(on(e))return Tf?Tf.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Sr(e,t,o){var a=-1,y=ls,S=e.length,$=!0,F=[],V=F;if(o)$=!1,y=Za;else if(S>=l){var ge=t?null:Ty(e);if(ge)return fs(ge);$=!1,y=to,V=new Wr}else V=t?[]:F;e:for(;++a<S;){var ve=e[a],_e=t?t(ve):ve;if(ve=o||ve!==0?ve:0,$&&_e===_e){for(var Ee=V.length;Ee--;)if(V[Ee]===_e)continue e;t&&V.push(_e),F.push(ve)}else y(V,_e,o)||(V!==F&&V.push(_e),F.push(ve))}return F}function bu(e,t){return t=Cr(t,e),e=Sh(e,t),e==null||delete e[$n(_n(t))]}function Kf(e,t,o,a){return fo(e,t,o(qr(e,t)),a)}function Rs(e,t,o,a){for(var y=e.length,S=a?y:-1;(a?S--:++S<y)&&t(e[S],S,e););return o?wn(e,a?0:S,a?S+1:y):wn(e,a?S+1:0,a?y:S)}function Qf(e,t){var o=e;return o instanceof Qe&&(o=o.value()),Ka(t,function(a,y){return y.func.apply(y.thisArg,wr([a],y.args))},o)}function xu(e,t,o){var a=e.length;if(a<2)return a?Sr(e[0]):[];for(var y=-1,S=oe(a);++y<a;)for(var $=e[y],F=-1;++F<a;)F!=y&&(S[y]=uo(S[y]||$,e[F],t,o));return Sr(It(S,1),t,o)}function Jf(e,t,o){for(var a=-1,y=e.length,S=t.length,$={};++a<y;){var F=a<S?t[a]:r;o($,e[a],F)}return $}function Su(e){return wt(e)?e:[]}function Cu(e){return typeof e=="function"?e:Kt}function Cr(e,t){return We(e)?e:ku(e,t)?[e]:Th(it(e))}var my=Ve;function Ar(e,t,o){var a=e.length;return o=o===r?a:o,!t&&o>=a?e:wn(e,t,o)}var Xf=im||function(e){return kt.clearTimeout(e)};function eh(e,t){if(t)return e.slice();var o=e.length,a=bf?bf(o):new e.constructor(o);return e.copy(a),a}function Au(e){var t=new e.constructor(e.byteLength);return new ms(t).set(new ms(e)),t}function yy(e,t){var o=t?Au(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.byteLength)}function wy(e){var t=new e.constructor(e.source,qi.exec(e));return t.lastIndex=e.lastIndex,t}function _y(e){return so?ut(so.call(e)):{}}function th(e,t){var o=t?Au(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}function nh(e,t){if(e!==t){var o=e!==r,a=e===null,y=e===e,S=on(e),$=t!==r,F=t===null,V=t===t,ge=on(t);if(!F&&!ge&&!S&&e>t||S&&$&&V&&!F&&!ge||a&&$&&V||!o&&V||!y)return 1;if(!a&&!S&&!ge&&e<t||ge&&o&&y&&!a&&!S||F&&o&&y||!$&&y||!V)return-1}return 0}function by(e,t,o){for(var a=-1,y=e.criteria,S=t.criteria,$=y.length,F=o.length;++a<$;){var V=nh(y[a],S[a]);if(V){if(a>=F)return V;var ge=o[a];return V*(ge=="desc"?-1:1)}}return e.index-t.index}function rh(e,t,o,a){for(var y=-1,S=e.length,$=o.length,F=-1,V=t.length,ge=Ot(S-$,0),ve=oe(V+ge),_e=!a;++F<V;)ve[F]=t[F];for(;++y<$;)(_e||y<S)&&(ve[o[y]]=e[y]);for(;ge--;)ve[F++]=e[y++];return ve}function ih(e,t,o,a){for(var y=-1,S=e.length,$=-1,F=o.length,V=-1,ge=t.length,ve=Ot(S-F,0),_e=oe(ve+ge),Ee=!a;++y<ve;)_e[y]=e[y];for(var $e=y;++V<ge;)_e[$e+V]=t[V];for(;++$<F;)(Ee||y<S)&&(_e[$e+o[$]]=e[y++]);return _e}function Gt(e,t){var o=-1,a=e.length;for(t||(t=oe(a));++o<a;)t[o]=e[o];return t}function In(e,t,o,a){var y=!o;o||(o={});for(var S=-1,$=t.length;++S<$;){var F=t[S],V=a?a(o[F],e[F],F,o,e):r;V===r&&(V=e[F]),y?Gn(o,F,V):ao(o,F,V)}return o}function xy(e,t){return In(e,Lu(e),t)}function Sy(e,t){return In(e,mh(e),t)}function Ls(e,t){return function(o,a){var y=We(o)?Dv:qm,S=t?t():{};return y(o,e,Ne(a,2),S)}}function _i(e){return Ve(function(t,o){var a=-1,y=o.length,S=y>1?o[y-1]:r,$=y>2?o[2]:r;for(S=e.length>3&&typeof S=="function"?(y--,S):r,$&&zt(o[0],o[1],$)&&(S=y<3?r:S,y=1),t=ut(t);++a<y;){var F=o[a];F&&e(t,F,a,S)}return t})}function oh(e,t){return function(o,a){if(o==null)return o;if(!Vt(o))return e(o,a);for(var y=o.length,S=t?y:-1,$=ut(o);(t?S--:++S<y)&&a($[S],S,$)!==!1;);return o}}function sh(e){return function(t,o,a){for(var y=-1,S=ut(t),$=a(t),F=$.length;F--;){var V=$[e?F:++y];if(o(S[V],V,S)===!1)break}return t}}function Cy(e,t,o){var a=t&N,y=ho(e);function S(){var $=this&&this!==kt&&this instanceof S?y:e;return $.apply(a?o:this,arguments)}return S}function ah(e){return function(t){t=it(t);var o=di(t)?An(t):r,a=o?o[0]:t.charAt(0),y=o?Ar(o,1).join(""):t.slice(1);return a[e]()+y}}function bi(e){return function(t){return Ka(od(id(t).replace(vr,"")),e,"")}}function ho(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var o=wi(e.prototype),a=e.apply(o,t);return vt(a)?a:o}}function Ay(e,t,o){var a=ho(e);function y(){for(var S=arguments.length,$=oe(S),F=S,V=xi(y);F--;)$[F]=arguments[F];var ge=S<3&&$[0]!==V&&$[S-1]!==V?[]:_r($,V);if(S-=ge.length,S<o)return hh(e,t,ks,y.placeholder,r,$,ge,r,r,o-S);var ve=this&&this!==kt&&this instanceof y?a:e;return tn(ve,this,$)}return y}function uh(e){return function(t,o,a){var y=ut(t);if(!Vt(t)){var S=Ne(o,3);t=Et(t),o=function(F){return S(y[F],F,y)}}var $=e(t,o,a);return $>-1?y[S?t[$]:$]:r}}function lh(e){return Zn(function(t){var o=t.length,a=o,y=mn.prototype.thru;for(e&&t.reverse();a--;){var S=t[a];if(typeof S!="function")throw new vn(h);if(y&&!$&&Ns(S)=="wrapper")var $=new mn([],!0)}for(a=$?a:o;++a<o;){S=t[a];var F=Ns(S),V=F=="wrapper"?Mu(S):r;V&&Iu(V[0])&&V[1]==(ne|ee|G|re)&&!V[4].length&&V[9]==1?$=$[Ns(V[0])].apply($,V[3]):$=S.length==1&&Iu(S)?$[F]():$.thru(S)}return function(){var ge=arguments,ve=ge[0];if($&&ge.length==1&&We(ve))return $.plant(ve).value();for(var _e=0,Ee=o?t[_e].apply(this,ge):ve;++_e<o;)Ee=t[_e].call(this,Ee);return Ee}})}function ks(e,t,o,a,y,S,$,F,V,ge){var ve=t&ne,_e=t&N,Ee=t&Q,$e=t&(ee|ue),Be=t&se,qe=Ee?r:ho(e);function je(){for(var Ke=arguments.length,Xe=oe(Ke),sn=Ke;sn--;)Xe[sn]=arguments[sn];if($e)var Ft=xi(je),an=Nv(Xe,Ft);if(a&&(Xe=rh(Xe,a,y,$e)),S&&(Xe=ih(Xe,S,$,$e)),Ke-=an,$e&&Ke<ge){var _t=_r(Xe,Ft);return hh(e,t,ks,je.placeholder,o,Xe,_t,F,V,ge-Ke)}var Dn=_e?o:this,Xn=Ee?Dn[e]:e;return Ke=Xe.length,F?Xe=qy(Xe,F):Be&&Ke>1&&Xe.reverse(),ve&&V<Ke&&(Xe.length=V),this&&this!==kt&&this instanceof je&&(Xn=qe||ho(Xn)),Xn.apply(Dn,Xe)}return je}function ch(e,t){return function(o,a){return Xm(o,e,t(a),{})}}function Is(e,t){return function(o,a){var y;if(o===r&&a===r)return t;if(o!==r&&(y=o),a!==r){if(y===r)return a;typeof o=="string"||typeof a=="string"?(o=rn(o),a=rn(a)):(o=Zf(o),a=Zf(a)),y=e(o,a)}return y}}function Ou(e){return Zn(function(t){return t=gt(t,nn(Ne())),Ve(function(o){var a=this;return e(t,function(y){return tn(y,a,o)})})})}function $s(e,t){t=t===r?" ":rn(t);var o=t.length;if(o<2)return o?wu(t,e):t;var a=wu(t,bs(e/pi(t)));return di(t)?Ar(An(a),0,e).join(""):a.slice(0,e)}function Oy(e,t,o,a){var y=t&N,S=ho(e);function $(){for(var F=-1,V=arguments.length,ge=-1,ve=a.length,_e=oe(ve+V),Ee=this&&this!==kt&&this instanceof $?S:e;++ge<ve;)_e[ge]=a[ge];for(;V--;)_e[ge++]=arguments[++F];return tn(Ee,y?o:this,_e)}return $}function fh(e){return function(t,o,a){return a&&typeof a!="number"&&zt(t,o,a)&&(o=a=r),t=Jn(t),o===r?(o=t,t=0):o=Jn(o),a=a===r?t<o?1:-1:Jn(a),fy(t,o,a,e)}}function Ps(e){return function(t,o){return typeof t=="string"&&typeof o=="string"||(t=bn(t),o=bn(o)),e(t,o)}}function hh(e,t,o,a,y,S,$,F,V,ge){var ve=t&ee,_e=ve?$:r,Ee=ve?r:$,$e=ve?S:r,Be=ve?r:S;t|=ve?G:de,t&=~(ve?de:G),t&te||(t&=-4);var qe=[e,t,y,$e,_e,Be,Ee,F,V,ge],je=o.apply(r,qe);return Iu(e)&&Ch(je,qe),je.placeholder=a,Ah(je,e,t)}function Tu(e){var t=At[e];return function(o,a){if(o=bn(o),a=a==null?0:$t(Ye(a),292),a&&Af(o)){var y=(it(o)+"e").split("e"),S=t(y[0]+"e"+(+y[1]+a));return y=(it(S)+"e").split("e"),+(y[0]+"e"+(+y[1]-a))}return t(o)}}var Ty=mi&&1/fs(new mi([,-0]))[1]==p?function(e){return new mi(e)}:Zu;function dh(e){return function(t){var o=Pt(t);return o==W?ru(t):o==P?Yv(t):Pv(t,e(t))}}function Vn(e,t,o,a,y,S,$,F){var V=t&Q;if(!V&&typeof e!="function")throw new vn(h);var ge=a?a.length:0;if(ge||(t&=-97,a=y=r),$=$===r?$:Ot(Ye($),0),F=F===r?F:Ye(F),ge-=y?y.length:0,t&de){var ve=a,_e=y;a=y=r}var Ee=V?r:Mu(e),$e=[e,t,o,a,y,ve,_e,S,$,F];if(Ee&&Fy($e,Ee),e=$e[0],t=$e[1],o=$e[2],a=$e[3],y=$e[4],F=$e[9]=$e[9]===r?V?0:e.length:Ot($e[9]-ge,0),!F&&t&(ee|ue)&&(t&=-25),!t||t==N)var Be=Cy(e,t,o);else t==ee||t==ue?Be=Ay(e,t,F):(t==G||t==(N|G))&&!y.length?Be=Oy(e,t,o,a):Be=ks.apply(r,$e);var qe=Ee?Gf:Ch;return Ah(qe(Be,$e),e,t)}function ph(e,t,o,a){return e===r||Tn(e,vi[o])&&!ot.call(a,o)?t:e}function gh(e,t,o,a,y,S){return vt(e)&&vt(t)&&(S.set(t,e),Es(e,t,r,gh,S),S.delete(t)),e}function Dy(e){return vo(e)?r:e}function vh(e,t,o,a,y,S){var $=o&R,F=e.length,V=t.length;if(F!=V&&!($&&V>F))return!1;var ge=S.get(e),ve=S.get(t);if(ge&&ve)return ge==t&&ve==e;var _e=-1,Ee=!0,$e=o&E?new Wr:r;for(S.set(e,t),S.set(t,e);++_e<F;){var Be=e[_e],qe=t[_e];if(a)var je=$?a(qe,Be,_e,t,e,S):a(Be,qe,_e,e,t,S);if(je!==r){if(je)continue;Ee=!1;break}if($e){if(!Qa(t,function(Ke,Xe){if(!to($e,Xe)&&(Be===Ke||y(Be,Ke,o,a,S)))return $e.push(Xe)})){Ee=!1;break}}else if(!(Be===qe||y(Be,qe,o,a,S))){Ee=!1;break}}return S.delete(e),S.delete(t),Ee}function Ey(e,t,o,a,y,S,$){switch(o){case Le:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Se:return!(e.byteLength!=t.byteLength||!S(new ms(e),new ms(t)));case J:case le:case K:return Tn(+e,+t);case be:return e.name==t.name&&e.message==t.message;case w:case U:return e==t+"";case W:var F=ru;case P:var V=a&R;if(F||(F=fs),e.size!=t.size&&!V)return!1;var ge=$.get(e);if(ge)return ge==t;a|=E,$.set(e,t);var ve=vh(F(e),F(t),a,y,S,$);return $.delete(e),ve;case X:if(so)return so.call(e)==so.call(t)}return!1}function My(e,t,o,a,y,S){var $=o&R,F=Du(e),V=F.length,ge=Du(t),ve=ge.length;if(V!=ve&&!$)return!1;for(var _e=V;_e--;){var Ee=F[_e];if(!($?Ee in t:ot.call(t,Ee)))return!1}var $e=S.get(e),Be=S.get(t);if($e&&Be)return $e==t&&Be==e;var qe=!0;S.set(e,t),S.set(t,e);for(var je=$;++_e<V;){Ee=F[_e];var Ke=e[Ee],Xe=t[Ee];if(a)var sn=$?a(Xe,Ke,Ee,t,e,S):a(Ke,Xe,Ee,e,t,S);if(!(sn===r?Ke===Xe||y(Ke,Xe,o,a,S):sn)){qe=!1;break}je||(je=Ee=="constructor")}if(qe&&!je){var Ft=e.constructor,an=t.constructor;Ft!=an&&"constructor"in e&&"constructor"in t&&!(typeof Ft=="function"&&Ft instanceof Ft&&typeof an=="function"&&an instanceof an)&&(qe=!1)}return S.delete(e),S.delete(t),qe}function Zn(e){return Pu(xh(e,r,Rh),e+"")}function Du(e){return Pf(e,Et,Lu)}function Eu(e){return Pf(e,Zt,mh)}var Mu=Ss?function(e){return Ss.get(e)}:Zu;function Ns(e){for(var t=e.name+"",o=yi[t],a=ot.call(yi,t)?o.length:0;a--;){var y=o[a],S=y.func;if(S==null||S==e)return y.name}return t}function xi(e){var t=ot.call(x,"placeholder")?x:e;return t.placeholder}function Ne(){var e=x.iteratee||Gu;return e=e===Gu?jf:e,arguments.length?e(arguments[0],arguments[1]):e}function Bs(e,t){var o=e.__data__;return By(t)?o[typeof t=="string"?"string":"hash"]:o.map}function Ru(e){for(var t=Et(e),o=t.length;o--;){var a=t[o],y=e[a];t[o]=[a,y,_h(y)]}return t}function Hr(e,t){var o=zv(e,t);return Bf(o)?o:r}function Ry(e){var t=ot.call(e,zr),o=e[zr];try{e[zr]=r;var a=!0}catch{}var y=gs.call(e);return a&&(t?e[zr]=o:delete e[zr]),y}var Lu=ou?function(e){return e==null?[]:(e=ut(e),yr(ou(e),function(t){return Sf.call(e,t)}))}:Ku,mh=ou?function(e){for(var t=[];e;)wr(t,Lu(e)),e=ys(e);return t}:Ku,Pt=Ut;(su&&Pt(new su(new ArrayBuffer(1)))!=Le||ro&&Pt(new ro)!=W||au&&Pt(au.resolve())!=u||mi&&Pt(new mi)!=P||io&&Pt(new io)!=De)&&(Pt=function(e){var t=Ut(e),o=t==Te?e.constructor:r,a=o?Gr(o):"";if(a)switch(a){case dm:return Le;case pm:return W;case gm:return u;case vm:return P;case mm:return De}return t});function Ly(e,t,o){for(var a=-1,y=o.length;++a<y;){var S=o[a],$=S.size;switch(S.type){case"drop":e+=$;break;case"dropRight":t-=$;break;case"take":t=$t(t,e+$);break;case"takeRight":e=Ot(e,t-$);break}}return{start:e,end:t}}function ky(e){var t=e.match($a);return t?t[1].split(Rt):[]}function yh(e,t,o){t=Cr(t,e);for(var a=-1,y=t.length,S=!1;++a<y;){var $=$n(t[a]);if(!(S=e!=null&&o(e,$)))break;e=e[$]}return S||++a!=y?S:(y=e==null?0:e.length,!!y&&qs(y)&&Kn($,y)&&(We(e)||Vr(e)))}function Iy(e){var t=e.length,o=new e.constructor(t);return t&&typeof e[0]=="string"&&ot.call(e,"index")&&(o.index=e.index,o.input=e.input),o}function wh(e){return typeof e.constructor=="function"&&!po(e)?wi(ys(e)):{}}function $y(e,t,o){var a=e.constructor;switch(t){case Se:return Au(e);case J:case le:return new a(+e);case Le:return yy(e,o);case Pe:case Ie:case et:case Ge:case tt:case pt:case xt:case lt:case St:return th(e,o);case W:return new a;case K:case U:return new a(e);case w:return wy(e);case P:return new a;case X:return _y(e)}}function Py(e,t){var o=t.length;if(!o)return e;var a=o-1;return t[a]=(o>1?"& ":"")+t[a],t=t.join(o>2?", ":" "),e.replace(Ia,`{
124
+ */var K0=Ui.exports,Zc;function Q0(){return Zc||(Zc=1,function(i,n){(function(){var r,s="4.17.21",l=200,p="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",f="Expected a function",c="Invalid `variable` option passed into `_.template`",b="__lodash_hash_undefined__",C=500,O="__lodash_placeholder__",L=1,k=2,M=4,R=1,E=2,N=1,Q=2,te=4,X=8,ae=16,H=32,fe=64,ee=128,re=256,se=512,pe=30,ie="...",Ae=800,Oe=16,j=1,I=2,A=3,v=1/0,d=9007199254740991,_=17976931348623157e292,g=NaN,m=4294967295,T=m-1,Y=m>>>1,Z=[["ary",ee],["bind",N],["bindKey",Q],["curry",X],["curryRight",ae],["flip",se],["partial",H],["partialRight",fe],["rearg",re]],ce="[object Arguments]",de="[object Array]",we="[object AsyncFunction]",J="[object Boolean]",le="[object Date]",Ce="[object DOMException]",be="[object Error]",z="[object Function]",q="[object GeneratorFunction]",W="[object Map]",K="[object Number]",ue="[object Null]",Te="[object Object]",u="[object Promise]",h="[object Proxy]",w="[object RegExp]",P="[object Set]",U="[object String]",ne="[object Symbol]",xe="[object Undefined]",De="[object WeakMap]",Re="[object WeakSet]",Se="[object ArrayBuffer]",Le="[object DataView]",Pe="[object Float32Array]",Ie="[object Float64Array]",et="[object Int8Array]",Ge="[object Int16Array]",tt="[object Int32Array]",pt="[object Uint8Array]",xt="[object Uint8ClampedArray]",lt="[object Uint16Array]",St="[object Uint32Array]",Sn=/\b__p \+= '';/g,Bn=/\b(__p \+=) '' \+/g,Dt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Qt=/&(?:amp|lt|gt|quot|#39);/g,Jt=/[&<>"']/g,hn=RegExp(Qt.source),Rn=RegExp(Jt.source),ct=/<%-([\s\S]+?)%>/g,Ct=/<%([\s\S]+?)%>/g,at=/<%=([\s\S]+?)%>/g,qt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,si=/^\w*$/,ai=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,fr=/[\\^$.*+?()[\]{}|]/g,ui=RegExp(fr.source),Wi=/^\s+/,ka=/\s/,Ia=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,$a=/\{\n\/\* \[wrapped with (.+)\] \*/,Rt=/,? & /,Pa=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Lt=/[()=,{}\[\]\/\s]/,Na=/\\(\\)?/g,Yi=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qi=/\w*$/,Ht=/^[-+]0x[0-9a-f]+$/i,jn=/^0b[01]+$/i,Un=/^\[object .+?Constructor\]$/,Ir=/^0o[0-7]+$/i,es=/^(?:0|[1-9]\d*)$/,Ba=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,hr=/($^)/,ja=/['\n\r\u2028\u2029\\]/g,dr="\\ud800-\\udfff",$r="\\u0300-\\u036f",Ua="\\ufe20-\\ufe2f",za="\\u20d0-\\u20ff",ts=$r+Ua+za,Hi="\\u2700-\\u27bf",ns="a-z\\xdf-\\xf6\\xf8-\\xff",Fa="\\xac\\xb1\\xd7\\xf7",Wa="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ya="\\u2000-\\u206f",Gi=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Vi="A-Z\\xc0-\\xd6\\xd8-\\xde",li="\\ufe0e\\ufe0f",Zi=Fa+Wa+Ya+Gi,zn="['’]",rs="["+dr+"]",Pr="["+Zi+"]",Nr="["+ts+"]",is="\\d+",Ki="["+Hi+"]",Qi="["+ns+"]",os="[^"+dr+Zi+is+Hi+ns+Vi+"]",Ji="\\ud83c[\\udffb-\\udfff]",ci="(?:"+Nr+"|"+Ji+")",Xi="[^"+dr+"]",Ln="(?:\\ud83c[\\udde6-\\uddff]){2}",Cn="[\\ud800-\\udbff][\\udc00-\\udfff]",Fn="["+Vi+"]",pr="\\u200d",Br="(?:"+Qi+"|"+os+")",fi="(?:"+Fn+"|"+os+")",ss="(?:"+zn+"(?:d|ll|m|re|s|t|ve))?",as="(?:"+zn+"(?:D|LL|M|RE|S|T|VE))?",jr=ci+"?",us="["+li+"]?",eo="(?:"+pr+"(?:"+[Xi,Ln,Cn].join("|")+")"+us+jr+")*",qa="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ha="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ze=us+jr+eo,Xt="(?:"+[Ki,Ln,Cn].join("|")+")"+Ze,gr="(?:"+[Xi+Nr+"?",Nr,Ln,Cn,rs].join("|")+")",vr=RegExp(zn,"g"),dn=RegExp(Nr,"g"),en=RegExp(Ji+"(?="+Ji+")|"+gr+Ze,"g"),mr=RegExp([Fn+"?"+Qi+"+"+ss+"(?="+[Pr,Fn,"$"].join("|")+")",fi+"+"+as+"(?="+[Pr,Fn+Br,"$"].join("|")+")",Fn+"?"+Br+"+"+ss,Fn+"+"+as,Ha,qa,is,Xt].join("|"),"g"),Wn=RegExp("["+pr+dr+ts+li+"]"),Yn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,yv=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],wv=-1,ht={};ht[Pe]=ht[Ie]=ht[et]=ht[Ge]=ht[tt]=ht[pt]=ht[xt]=ht[lt]=ht[St]=!0,ht[ce]=ht[de]=ht[Se]=ht[J]=ht[Le]=ht[le]=ht[be]=ht[z]=ht[W]=ht[K]=ht[Te]=ht[w]=ht[P]=ht[U]=ht[De]=!1;var ft={};ft[ce]=ft[de]=ft[Se]=ft[Le]=ft[J]=ft[le]=ft[Pe]=ft[Ie]=ft[et]=ft[Ge]=ft[tt]=ft[W]=ft[K]=ft[Te]=ft[w]=ft[P]=ft[U]=ft[ne]=ft[pt]=ft[xt]=ft[lt]=ft[St]=!0,ft[be]=ft[z]=ft[De]=!1;var _v={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},bv={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},xv={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Sv={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Cv=parseFloat,Av=parseInt,tf=typeof yo=="object"&&yo&&yo.Object===Object&&yo,Ov=typeof self=="object"&&self&&self.Object===Object&&self,kt=tf||Ov||Function("return this")(),Ga=n&&!n.nodeType&&n,Ur=Ga&&!0&&i&&!i.nodeType&&i,nf=Ur&&Ur.exports===Ga,Va=nf&&tf.process,pn=function(){try{var G=Ur&&Ur.require&&Ur.require("util").types;return G||Va&&Va.binding&&Va.binding("util")}catch{}}(),rf=pn&&pn.isArrayBuffer,of=pn&&pn.isDate,sf=pn&&pn.isMap,af=pn&&pn.isRegExp,uf=pn&&pn.isSet,lf=pn&&pn.isTypedArray;function tn(G,he,oe){switch(oe.length){case 0:return G.call(he);case 1:return G.call(he,oe[0]);case 2:return G.call(he,oe[0],oe[1]);case 3:return G.call(he,oe[0],oe[1],oe[2])}return G.apply(he,oe)}function Tv(G,he,oe,Me){for(var Fe=-1,nt=G==null?0:G.length;++Fe<nt;){var At=G[Fe];he(Me,At,oe(At),G)}return Me}function gn(G,he){for(var oe=-1,Me=G==null?0:G.length;++oe<Me&&he(G[oe],oe,G)!==!1;);return G}function Dv(G,he){for(var oe=G==null?0:G.length;oe--&&he(G[oe],oe,G)!==!1;);return G}function cf(G,he){for(var oe=-1,Me=G==null?0:G.length;++oe<Me;)if(!he(G[oe],oe,G))return!1;return!0}function yr(G,he){for(var oe=-1,Me=G==null?0:G.length,Fe=0,nt=[];++oe<Me;){var At=G[oe];he(At,oe,G)&&(nt[Fe++]=At)}return nt}function ls(G,he){var oe=G==null?0:G.length;return!!oe&&hi(G,he,0)>-1}function Za(G,he,oe){for(var Me=-1,Fe=G==null?0:G.length;++Me<Fe;)if(oe(he,G[Me]))return!0;return!1}function gt(G,he){for(var oe=-1,Me=G==null?0:G.length,Fe=Array(Me);++oe<Me;)Fe[oe]=he(G[oe],oe,G);return Fe}function wr(G,he){for(var oe=-1,Me=he.length,Fe=G.length;++oe<Me;)G[Fe+oe]=he[oe];return G}function Ka(G,he,oe,Me){var Fe=-1,nt=G==null?0:G.length;for(Me&&nt&&(oe=G[++Fe]);++Fe<nt;)oe=he(oe,G[Fe],Fe,G);return oe}function Ev(G,he,oe,Me){var Fe=G==null?0:G.length;for(Me&&Fe&&(oe=G[--Fe]);Fe--;)oe=he(oe,G[Fe],Fe,G);return oe}function Qa(G,he){for(var oe=-1,Me=G==null?0:G.length;++oe<Me;)if(he(G[oe],oe,G))return!0;return!1}var Mv=Ja("length");function Rv(G){return G.split("")}function Lv(G){return G.match(Pa)||[]}function ff(G,he,oe){var Me;return oe(G,function(Fe,nt,At){if(he(Fe,nt,At))return Me=nt,!1}),Me}function cs(G,he,oe,Me){for(var Fe=G.length,nt=oe+(Me?1:-1);Me?nt--:++nt<Fe;)if(he(G[nt],nt,G))return nt;return-1}function hi(G,he,oe){return he===he?Yv(G,he,oe):cs(G,hf,oe)}function kv(G,he,oe,Me){for(var Fe=oe-1,nt=G.length;++Fe<nt;)if(Me(G[Fe],he))return Fe;return-1}function hf(G){return G!==G}function df(G,he){var oe=G==null?0:G.length;return oe?eu(G,he)/oe:g}function Ja(G){return function(he){return he==null?r:he[G]}}function Xa(G){return function(he){return G==null?r:G[he]}}function pf(G,he,oe,Me,Fe){return Fe(G,function(nt,At,ut){oe=Me?(Me=!1,nt):he(oe,nt,At,ut)}),oe}function Iv(G,he){var oe=G.length;for(G.sort(he);oe--;)G[oe]=G[oe].value;return G}function eu(G,he){for(var oe,Me=-1,Fe=G.length;++Me<Fe;){var nt=he(G[Me]);nt!==r&&(oe=oe===r?nt:oe+nt)}return oe}function tu(G,he){for(var oe=-1,Me=Array(G);++oe<G;)Me[oe]=he(oe);return Me}function $v(G,he){return gt(he,function(oe){return[oe,G[oe]]})}function gf(G){return G&&G.slice(0,wf(G)+1).replace(Wi,"")}function nn(G){return function(he){return G(he)}}function nu(G,he){return gt(he,function(oe){return G[oe]})}function to(G,he){return G.has(he)}function vf(G,he){for(var oe=-1,Me=G.length;++oe<Me&&hi(he,G[oe],0)>-1;);return oe}function mf(G,he){for(var oe=G.length;oe--&&hi(he,G[oe],0)>-1;);return oe}function Pv(G,he){for(var oe=G.length,Me=0;oe--;)G[oe]===he&&++Me;return Me}var Nv=Xa(_v),Bv=Xa(bv);function jv(G){return"\\"+Sv[G]}function Uv(G,he){return G==null?r:G[he]}function di(G){return Wn.test(G)}function zv(G){return Yn.test(G)}function Fv(G){for(var he,oe=[];!(he=G.next()).done;)oe.push(he.value);return oe}function ru(G){var he=-1,oe=Array(G.size);return G.forEach(function(Me,Fe){oe[++he]=[Fe,Me]}),oe}function yf(G,he){return function(oe){return G(he(oe))}}function _r(G,he){for(var oe=-1,Me=G.length,Fe=0,nt=[];++oe<Me;){var At=G[oe];(At===he||At===O)&&(G[oe]=O,nt[Fe++]=oe)}return nt}function fs(G){var he=-1,oe=Array(G.size);return G.forEach(function(Me){oe[++he]=Me}),oe}function Wv(G){var he=-1,oe=Array(G.size);return G.forEach(function(Me){oe[++he]=[Me,Me]}),oe}function Yv(G,he,oe){for(var Me=oe-1,Fe=G.length;++Me<Fe;)if(G[Me]===he)return Me;return-1}function qv(G,he,oe){for(var Me=oe+1;Me--;)if(G[Me]===he)return Me;return Me}function pi(G){return di(G)?Gv(G):Mv(G)}function An(G){return di(G)?Vv(G):Rv(G)}function wf(G){for(var he=G.length;he--&&ka.test(G.charAt(he)););return he}var Hv=Xa(xv);function Gv(G){for(var he=en.lastIndex=0;en.test(G);)++he;return he}function Vv(G){return G.match(en)||[]}function Zv(G){return G.match(mr)||[]}var Kv=function G(he){he=he==null?kt:gi.defaults(kt.Object(),he,gi.pick(kt,yv));var oe=he.Array,Me=he.Date,Fe=he.Error,nt=he.Function,At=he.Math,ut=he.Object,iu=he.RegExp,Qv=he.String,vn=he.TypeError,hs=oe.prototype,Jv=nt.prototype,vi=ut.prototype,ds=he["__core-js_shared__"],ps=Jv.toString,ot=vi.hasOwnProperty,Xv=0,_f=function(){var e=/[^.]+$/.exec(ds&&ds.keys&&ds.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),gs=vi.toString,em=ps.call(ut),tm=kt._,nm=iu("^"+ps.call(ot).replace(fr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),vs=nf?he.Buffer:r,br=he.Symbol,ms=he.Uint8Array,bf=vs?vs.allocUnsafe:r,ys=yf(ut.getPrototypeOf,ut),xf=ut.create,Sf=vi.propertyIsEnumerable,ws=hs.splice,Cf=br?br.isConcatSpreadable:r,no=br?br.iterator:r,zr=br?br.toStringTag:r,_s=function(){try{var e=Hr(ut,"defineProperty");return e({},"",{}),e}catch{}}(),rm=he.clearTimeout!==kt.clearTimeout&&he.clearTimeout,im=Me&&Me.now!==kt.Date.now&&Me.now,om=he.setTimeout!==kt.setTimeout&&he.setTimeout,bs=At.ceil,xs=At.floor,ou=ut.getOwnPropertySymbols,sm=vs?vs.isBuffer:r,Af=he.isFinite,am=hs.join,um=yf(ut.keys,ut),Ot=At.max,$t=At.min,lm=Me.now,cm=he.parseInt,Of=At.random,fm=hs.reverse,su=Hr(he,"DataView"),ro=Hr(he,"Map"),au=Hr(he,"Promise"),mi=Hr(he,"Set"),io=Hr(he,"WeakMap"),oo=Hr(ut,"create"),Ss=io&&new io,yi={},hm=Gr(su),dm=Gr(ro),pm=Gr(au),gm=Gr(mi),vm=Gr(io),Cs=br?br.prototype:r,so=Cs?Cs.valueOf:r,Tf=Cs?Cs.toString:r;function x(e){if(yt(e)&&!We(e)&&!(e instanceof Qe)){if(e instanceof mn)return e;if(ot.call(e,"__wrapped__"))return Dh(e)}return new mn(e)}var wi=function(){function e(){}return function(t){if(!vt(t))return{};if(xf)return xf(t);e.prototype=t;var o=new e;return e.prototype=r,o}}();function As(){}function mn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}x.templateSettings={escape:ct,evaluate:Ct,interpolate:at,variable:"",imports:{_:x}},x.prototype=As.prototype,x.prototype.constructor=x,mn.prototype=wi(As.prototype),mn.prototype.constructor=mn;function Qe(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function mm(){var e=new Qe(this.__wrapped__);return e.__actions__=Gt(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Gt(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Gt(this.__views__),e}function ym(){if(this.__filtered__){var e=new Qe(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function wm(){var e=this.__wrapped__.value(),t=this.__dir__,o=We(e),a=t<0,y=o?e.length:0,S=Ry(0,y,this.__views__),$=S.start,F=S.end,V=F-$,ge=a?F:$-1,ve=this.__iteratees__,_e=ve.length,Ee=0,$e=$t(V,this.__takeCount__);if(!o||!a&&y==V&&$e==V)return Qf(e,this.__actions__);var Be=[];e:for(;V--&&Ee<$e;){ge+=t;for(var qe=-1,je=e[ge];++qe<_e;){var Ke=ve[qe],Xe=Ke.iteratee,sn=Ke.type,Ft=Xe(je);if(sn==I)je=Ft;else if(!Ft){if(sn==j)continue e;break e}}Be[Ee++]=je}return Be}Qe.prototype=wi(As.prototype),Qe.prototype.constructor=Qe;function Fr(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var a=e[t];this.set(a[0],a[1])}}function _m(){this.__data__=oo?oo(null):{},this.size=0}function bm(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function xm(e){var t=this.__data__;if(oo){var o=t[e];return o===b?r:o}return ot.call(t,e)?t[e]:r}function Sm(e){var t=this.__data__;return oo?t[e]!==r:ot.call(t,e)}function Cm(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=oo&&t===r?b:t,this}Fr.prototype.clear=_m,Fr.prototype.delete=bm,Fr.prototype.get=xm,Fr.prototype.has=Sm,Fr.prototype.set=Cm;function qn(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var a=e[t];this.set(a[0],a[1])}}function Am(){this.__data__=[],this.size=0}function Om(e){var t=this.__data__,o=Os(t,e);if(o<0)return!1;var a=t.length-1;return o==a?t.pop():ws.call(t,o,1),--this.size,!0}function Tm(e){var t=this.__data__,o=Os(t,e);return o<0?r:t[o][1]}function Dm(e){return Os(this.__data__,e)>-1}function Em(e,t){var o=this.__data__,a=Os(o,e);return a<0?(++this.size,o.push([e,t])):o[a][1]=t,this}qn.prototype.clear=Am,qn.prototype.delete=Om,qn.prototype.get=Tm,qn.prototype.has=Dm,qn.prototype.set=Em;function Hn(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var a=e[t];this.set(a[0],a[1])}}function Mm(){this.size=0,this.__data__={hash:new Fr,map:new(ro||qn),string:new Fr}}function Rm(e){var t=Bs(this,e).delete(e);return this.size-=t?1:0,t}function Lm(e){return Bs(this,e).get(e)}function km(e){return Bs(this,e).has(e)}function Im(e,t){var o=Bs(this,e),a=o.size;return o.set(e,t),this.size+=o.size==a?0:1,this}Hn.prototype.clear=Mm,Hn.prototype.delete=Rm,Hn.prototype.get=Lm,Hn.prototype.has=km,Hn.prototype.set=Im;function Wr(e){var t=-1,o=e==null?0:e.length;for(this.__data__=new Hn;++t<o;)this.add(e[t])}function $m(e){return this.__data__.set(e,b),this}function Pm(e){return this.__data__.has(e)}Wr.prototype.add=Wr.prototype.push=$m,Wr.prototype.has=Pm;function On(e){var t=this.__data__=new qn(e);this.size=t.size}function Nm(){this.__data__=new qn,this.size=0}function Bm(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}function jm(e){return this.__data__.get(e)}function Um(e){return this.__data__.has(e)}function zm(e,t){var o=this.__data__;if(o instanceof qn){var a=o.__data__;if(!ro||a.length<l-1)return a.push([e,t]),this.size=++o.size,this;o=this.__data__=new Hn(a)}return o.set(e,t),this.size=o.size,this}On.prototype.clear=Nm,On.prototype.delete=Bm,On.prototype.get=jm,On.prototype.has=Um,On.prototype.set=zm;function Df(e,t){var o=We(e),a=!o&&Vr(e),y=!o&&!a&&Or(e),S=!o&&!a&&!y&&Si(e),$=o||a||y||S,F=$?tu(e.length,Qv):[],V=F.length;for(var ge in e)(t||ot.call(e,ge))&&!($&&(ge=="length"||y&&(ge=="offset"||ge=="parent")||S&&(ge=="buffer"||ge=="byteLength"||ge=="byteOffset")||Kn(ge,V)))&&F.push(ge);return F}function Ef(e){var t=e.length;return t?e[yu(0,t-1)]:r}function Fm(e,t){return js(Gt(e),Yr(t,0,e.length))}function Wm(e){return js(Gt(e))}function uu(e,t,o){(o!==r&&!Tn(e[t],o)||o===r&&!(t in e))&&Gn(e,t,o)}function ao(e,t,o){var a=e[t];(!(ot.call(e,t)&&Tn(a,o))||o===r&&!(t in e))&&Gn(e,t,o)}function Os(e,t){for(var o=e.length;o--;)if(Tn(e[o][0],t))return o;return-1}function Ym(e,t,o,a){return xr(e,function(y,S,$){t(a,y,o(y),$)}),a}function Mf(e,t){return e&&In(t,Et(t),e)}function qm(e,t){return e&&In(t,Zt(t),e)}function Gn(e,t,o){t=="__proto__"&&_s?_s(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}function lu(e,t){for(var o=-1,a=t.length,y=oe(a),S=e==null;++o<a;)y[o]=S?r:Wu(e,t[o]);return y}function Yr(e,t,o){return e===e&&(o!==r&&(e=e<=o?e:o),t!==r&&(e=e>=t?e:t)),e}function yn(e,t,o,a,y,S){var $,F=t&L,V=t&k,ge=t&M;if(o&&($=y?o(e,a,y,S):o(e)),$!==r)return $;if(!vt(e))return e;var ve=We(e);if(ve){if($=ky(e),!F)return Gt(e,$)}else{var _e=Pt(e),Ee=_e==z||_e==q;if(Or(e))return eh(e,F);if(_e==Te||_e==ce||Ee&&!y){if($=V||Ee?{}:wh(e),!F)return V?xy(e,qm($,e)):by(e,Mf($,e))}else{if(!ft[_e])return y?e:{};$=Iy(e,_e,F)}}S||(S=new On);var $e=S.get(e);if($e)return $e;S.set(e,$),Vh(e)?e.forEach(function(je){$.add(yn(je,t,o,je,e,S))}):Hh(e)&&e.forEach(function(je,Ke){$.set(Ke,yn(je,t,o,Ke,e,S))});var Be=ge?V?Eu:Du:V?Zt:Et,qe=ve?r:Be(e);return gn(qe||e,function(je,Ke){qe&&(Ke=je,je=e[Ke]),ao($,Ke,yn(je,t,o,Ke,e,S))}),$}function Hm(e){var t=Et(e);return function(o){return Rf(o,e,t)}}function Rf(e,t,o){var a=o.length;if(e==null)return!a;for(e=ut(e);a--;){var y=o[a],S=t[y],$=e[y];if($===r&&!(y in e)||!S($))return!1}return!0}function Lf(e,t,o){if(typeof e!="function")throw new vn(f);return go(function(){e.apply(r,o)},t)}function uo(e,t,o,a){var y=-1,S=ls,$=!0,F=e.length,V=[],ge=t.length;if(!F)return V;o&&(t=gt(t,nn(o))),a?(S=Za,$=!1):t.length>=l&&(S=to,$=!1,t=new Wr(t));e:for(;++y<F;){var ve=e[y],_e=o==null?ve:o(ve);if(ve=a||ve!==0?ve:0,$&&_e===_e){for(var Ee=ge;Ee--;)if(t[Ee]===_e)continue e;V.push(ve)}else S(t,_e,a)||V.push(ve)}return V}var xr=oh(kn),kf=oh(fu,!0);function Gm(e,t){var o=!0;return xr(e,function(a,y,S){return o=!!t(a,y,S),o}),o}function Ts(e,t,o){for(var a=-1,y=e.length;++a<y;){var S=e[a],$=t(S);if($!=null&&(F===r?$===$&&!on($):o($,F)))var F=$,V=S}return V}function Vm(e,t,o,a){var y=e.length;for(o=Ye(o),o<0&&(o=-o>y?0:y+o),a=a===r||a>y?y:Ye(a),a<0&&(a+=y),a=o>a?0:Kh(a);o<a;)e[o++]=t;return e}function If(e,t){var o=[];return xr(e,function(a,y,S){t(a,y,S)&&o.push(a)}),o}function It(e,t,o,a,y){var S=-1,$=e.length;for(o||(o=Py),y||(y=[]);++S<$;){var F=e[S];t>0&&o(F)?t>1?It(F,t-1,o,a,y):wr(y,F):a||(y[y.length]=F)}return y}var cu=sh(),$f=sh(!0);function kn(e,t){return e&&cu(e,t,Et)}function fu(e,t){return e&&$f(e,t,Et)}function Ds(e,t){return yr(t,function(o){return Qn(e[o])})}function qr(e,t){t=Cr(t,e);for(var o=0,a=t.length;e!=null&&o<a;)e=e[$n(t[o++])];return o&&o==a?e:r}function Pf(e,t,o){var a=t(e);return We(e)?a:wr(a,o(e))}function Ut(e){return e==null?e===r?xe:ue:zr&&zr in ut(e)?My(e):Wy(e)}function hu(e,t){return e>t}function Zm(e,t){return e!=null&&ot.call(e,t)}function Km(e,t){return e!=null&&t in ut(e)}function Qm(e,t,o){return e>=$t(t,o)&&e<Ot(t,o)}function du(e,t,o){for(var a=o?Za:ls,y=e[0].length,S=e.length,$=S,F=oe(S),V=1/0,ge=[];$--;){var ve=e[$];$&&t&&(ve=gt(ve,nn(t))),V=$t(ve.length,V),F[$]=!o&&(t||y>=120&&ve.length>=120)?new Wr($&&ve):r}ve=e[0];var _e=-1,Ee=F[0];e:for(;++_e<y&&ge.length<V;){var $e=ve[_e],Be=t?t($e):$e;if($e=o||$e!==0?$e:0,!(Ee?to(Ee,Be):a(ge,Be,o))){for($=S;--$;){var qe=F[$];if(!(qe?to(qe,Be):a(e[$],Be,o)))continue e}Ee&&Ee.push(Be),ge.push($e)}}return ge}function Jm(e,t,o,a){return kn(e,function(y,S,$){t(a,o(y),S,$)}),a}function lo(e,t,o){t=Cr(t,e),e=Sh(e,t);var a=e==null?e:e[$n(_n(t))];return a==null?r:tn(a,e,o)}function Nf(e){return yt(e)&&Ut(e)==ce}function Xm(e){return yt(e)&&Ut(e)==Se}function ey(e){return yt(e)&&Ut(e)==le}function co(e,t,o,a,y){return e===t?!0:e==null||t==null||!yt(e)&&!yt(t)?e!==e&&t!==t:ty(e,t,o,a,co,y)}function ty(e,t,o,a,y,S){var $=We(e),F=We(t),V=$?de:Pt(e),ge=F?de:Pt(t);V=V==ce?Te:V,ge=ge==ce?Te:ge;var ve=V==Te,_e=ge==Te,Ee=V==ge;if(Ee&&Or(e)){if(!Or(t))return!1;$=!0,ve=!1}if(Ee&&!ve)return S||(S=new On),$||Si(e)?vh(e,t,o,a,y,S):Dy(e,t,V,o,a,y,S);if(!(o&R)){var $e=ve&&ot.call(e,"__wrapped__"),Be=_e&&ot.call(t,"__wrapped__");if($e||Be){var qe=$e?e.value():e,je=Be?t.value():t;return S||(S=new On),y(qe,je,o,a,S)}}return Ee?(S||(S=new On),Ey(e,t,o,a,y,S)):!1}function ny(e){return yt(e)&&Pt(e)==W}function pu(e,t,o,a){var y=o.length,S=y,$=!a;if(e==null)return!S;for(e=ut(e);y--;){var F=o[y];if($&&F[2]?F[1]!==e[F[0]]:!(F[0]in e))return!1}for(;++y<S;){F=o[y];var V=F[0],ge=e[V],ve=F[1];if($&&F[2]){if(ge===r&&!(V in e))return!1}else{var _e=new On;if(a)var Ee=a(ge,ve,V,e,t,_e);if(!(Ee===r?co(ve,ge,R|E,a,_e):Ee))return!1}}return!0}function Bf(e){if(!vt(e)||By(e))return!1;var t=Qn(e)?nm:Un;return t.test(Gr(e))}function ry(e){return yt(e)&&Ut(e)==w}function iy(e){return yt(e)&&Pt(e)==P}function oy(e){return yt(e)&&qs(e.length)&&!!ht[Ut(e)]}function jf(e){return typeof e=="function"?e:e==null?Kt:typeof e=="object"?We(e)?Ff(e[0],e[1]):zf(e):ad(e)}function gu(e){if(!po(e))return um(e);var t=[];for(var o in ut(e))ot.call(e,o)&&o!="constructor"&&t.push(o);return t}function sy(e){if(!vt(e))return Fy(e);var t=po(e),o=[];for(var a in e)a=="constructor"&&(t||!ot.call(e,a))||o.push(a);return o}function vu(e,t){return e<t}function Uf(e,t){var o=-1,a=Vt(e)?oe(e.length):[];return xr(e,function(y,S,$){a[++o]=t(y,S,$)}),a}function zf(e){var t=Ru(e);return t.length==1&&t[0][2]?bh(t[0][0],t[0][1]):function(o){return o===e||pu(o,e,t)}}function Ff(e,t){return ku(e)&&_h(t)?bh($n(e),t):function(o){var a=Wu(o,e);return a===r&&a===t?Yu(o,e):co(t,a,R|E)}}function Es(e,t,o,a,y){e!==t&&cu(t,function(S,$){if(y||(y=new On),vt(S))ay(e,t,$,o,Es,a,y);else{var F=a?a($u(e,$),S,$+"",e,t,y):r;F===r&&(F=S),uu(e,$,F)}},Zt)}function ay(e,t,o,a,y,S,$){var F=$u(e,o),V=$u(t,o),ge=$.get(V);if(ge){uu(e,o,ge);return}var ve=S?S(F,V,o+"",e,t,$):r,_e=ve===r;if(_e){var Ee=We(V),$e=!Ee&&Or(V),Be=!Ee&&!$e&&Si(V);ve=V,Ee||$e||Be?We(F)?ve=F:wt(F)?ve=Gt(F):$e?(_e=!1,ve=eh(V,!0)):Be?(_e=!1,ve=th(V,!0)):ve=[]:vo(V)||Vr(V)?(ve=F,Vr(F)?ve=Qh(F):(!vt(F)||Qn(F))&&(ve=wh(V))):_e=!1}_e&&($.set(V,ve),y(ve,V,a,S,$),$.delete(V)),uu(e,o,ve)}function Wf(e,t){var o=e.length;if(o)return t+=t<0?o:0,Kn(t,o)?e[t]:r}function Yf(e,t,o){t.length?t=gt(t,function(S){return We(S)?function($){return qr($,S.length===1?S[0]:S)}:S}):t=[Kt];var a=-1;t=gt(t,nn(Ne()));var y=Uf(e,function(S,$,F){var V=gt(t,function(ge){return ge(S)});return{criteria:V,index:++a,value:S}});return Iv(y,function(S,$){return _y(S,$,o)})}function uy(e,t){return qf(e,t,function(o,a){return Yu(e,a)})}function qf(e,t,o){for(var a=-1,y=t.length,S={};++a<y;){var $=t[a],F=qr(e,$);o(F,$)&&fo(S,Cr($,e),F)}return S}function ly(e){return function(t){return qr(t,e)}}function mu(e,t,o,a){var y=a?kv:hi,S=-1,$=t.length,F=e;for(e===t&&(t=Gt(t)),o&&(F=gt(e,nn(o)));++S<$;)for(var V=0,ge=t[S],ve=o?o(ge):ge;(V=y(F,ve,V,a))>-1;)F!==e&&ws.call(F,V,1),ws.call(e,V,1);return e}function Hf(e,t){for(var o=e?t.length:0,a=o-1;o--;){var y=t[o];if(o==a||y!==S){var S=y;Kn(y)?ws.call(e,y,1):bu(e,y)}}return e}function yu(e,t){return e+xs(Of()*(t-e+1))}function cy(e,t,o,a){for(var y=-1,S=Ot(bs((t-e)/(o||1)),0),$=oe(S);S--;)$[a?S:++y]=e,e+=o;return $}function wu(e,t){var o="";if(!e||t<1||t>d)return o;do t%2&&(o+=e),t=xs(t/2),t&&(e+=e);while(t);return o}function Ve(e,t){return Pu(xh(e,t,Kt),e+"")}function fy(e){return Ef(Ci(e))}function hy(e,t){var o=Ci(e);return js(o,Yr(t,0,o.length))}function fo(e,t,o,a){if(!vt(e))return e;t=Cr(t,e);for(var y=-1,S=t.length,$=S-1,F=e;F!=null&&++y<S;){var V=$n(t[y]),ge=o;if(V==="__proto__"||V==="constructor"||V==="prototype")return e;if(y!=$){var ve=F[V];ge=a?a(ve,V,F):r,ge===r&&(ge=vt(ve)?ve:Kn(t[y+1])?[]:{})}ao(F,V,ge),F=F[V]}return e}var Gf=Ss?function(e,t){return Ss.set(e,t),e}:Kt,dy=_s?function(e,t){return _s(e,"toString",{configurable:!0,enumerable:!1,value:Hu(t),writable:!0})}:Kt;function py(e){return js(Ci(e))}function wn(e,t,o){var a=-1,y=e.length;t<0&&(t=-t>y?0:y+t),o=o>y?y:o,o<0&&(o+=y),y=t>o?0:o-t>>>0,t>>>=0;for(var S=oe(y);++a<y;)S[a]=e[a+t];return S}function gy(e,t){var o;return xr(e,function(a,y,S){return o=t(a,y,S),!o}),!!o}function Ms(e,t,o){var a=0,y=e==null?a:e.length;if(typeof t=="number"&&t===t&&y<=Y){for(;a<y;){var S=a+y>>>1,$=e[S];$!==null&&!on($)&&(o?$<=t:$<t)?a=S+1:y=S}return y}return _u(e,t,Kt,o)}function _u(e,t,o,a){var y=0,S=e==null?0:e.length;if(S===0)return 0;t=o(t);for(var $=t!==t,F=t===null,V=on(t),ge=t===r;y<S;){var ve=xs((y+S)/2),_e=o(e[ve]),Ee=_e!==r,$e=_e===null,Be=_e===_e,qe=on(_e);if($)var je=a||Be;else ge?je=Be&&(a||Ee):F?je=Be&&Ee&&(a||!$e):V?je=Be&&Ee&&!$e&&(a||!qe):$e||qe?je=!1:je=a?_e<=t:_e<t;je?y=ve+1:S=ve}return $t(S,T)}function Vf(e,t){for(var o=-1,a=e.length,y=0,S=[];++o<a;){var $=e[o],F=t?t($):$;if(!o||!Tn(F,V)){var V=F;S[y++]=$===0?0:$}}return S}function Zf(e){return typeof e=="number"?e:on(e)?g:+e}function rn(e){if(typeof e=="string")return e;if(We(e))return gt(e,rn)+"";if(on(e))return Tf?Tf.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Sr(e,t,o){var a=-1,y=ls,S=e.length,$=!0,F=[],V=F;if(o)$=!1,y=Za;else if(S>=l){var ge=t?null:Oy(e);if(ge)return fs(ge);$=!1,y=to,V=new Wr}else V=t?[]:F;e:for(;++a<S;){var ve=e[a],_e=t?t(ve):ve;if(ve=o||ve!==0?ve:0,$&&_e===_e){for(var Ee=V.length;Ee--;)if(V[Ee]===_e)continue e;t&&V.push(_e),F.push(ve)}else y(V,_e,o)||(V!==F&&V.push(_e),F.push(ve))}return F}function bu(e,t){return t=Cr(t,e),e=Sh(e,t),e==null||delete e[$n(_n(t))]}function Kf(e,t,o,a){return fo(e,t,o(qr(e,t)),a)}function Rs(e,t,o,a){for(var y=e.length,S=a?y:-1;(a?S--:++S<y)&&t(e[S],S,e););return o?wn(e,a?0:S,a?S+1:y):wn(e,a?S+1:0,a?y:S)}function Qf(e,t){var o=e;return o instanceof Qe&&(o=o.value()),Ka(t,function(a,y){return y.func.apply(y.thisArg,wr([a],y.args))},o)}function xu(e,t,o){var a=e.length;if(a<2)return a?Sr(e[0]):[];for(var y=-1,S=oe(a);++y<a;)for(var $=e[y],F=-1;++F<a;)F!=y&&(S[y]=uo(S[y]||$,e[F],t,o));return Sr(It(S,1),t,o)}function Jf(e,t,o){for(var a=-1,y=e.length,S=t.length,$={};++a<y;){var F=a<S?t[a]:r;o($,e[a],F)}return $}function Su(e){return wt(e)?e:[]}function Cu(e){return typeof e=="function"?e:Kt}function Cr(e,t){return We(e)?e:ku(e,t)?[e]:Th(it(e))}var vy=Ve;function Ar(e,t,o){var a=e.length;return o=o===r?a:o,!t&&o>=a?e:wn(e,t,o)}var Xf=rm||function(e){return kt.clearTimeout(e)};function eh(e,t){if(t)return e.slice();var o=e.length,a=bf?bf(o):new e.constructor(o);return e.copy(a),a}function Au(e){var t=new e.constructor(e.byteLength);return new ms(t).set(new ms(e)),t}function my(e,t){var o=t?Au(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.byteLength)}function yy(e){var t=new e.constructor(e.source,qi.exec(e));return t.lastIndex=e.lastIndex,t}function wy(e){return so?ut(so.call(e)):{}}function th(e,t){var o=t?Au(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}function nh(e,t){if(e!==t){var o=e!==r,a=e===null,y=e===e,S=on(e),$=t!==r,F=t===null,V=t===t,ge=on(t);if(!F&&!ge&&!S&&e>t||S&&$&&V&&!F&&!ge||a&&$&&V||!o&&V||!y)return 1;if(!a&&!S&&!ge&&e<t||ge&&o&&y&&!a&&!S||F&&o&&y||!$&&y||!V)return-1}return 0}function _y(e,t,o){for(var a=-1,y=e.criteria,S=t.criteria,$=y.length,F=o.length;++a<$;){var V=nh(y[a],S[a]);if(V){if(a>=F)return V;var ge=o[a];return V*(ge=="desc"?-1:1)}}return e.index-t.index}function rh(e,t,o,a){for(var y=-1,S=e.length,$=o.length,F=-1,V=t.length,ge=Ot(S-$,0),ve=oe(V+ge),_e=!a;++F<V;)ve[F]=t[F];for(;++y<$;)(_e||y<S)&&(ve[o[y]]=e[y]);for(;ge--;)ve[F++]=e[y++];return ve}function ih(e,t,o,a){for(var y=-1,S=e.length,$=-1,F=o.length,V=-1,ge=t.length,ve=Ot(S-F,0),_e=oe(ve+ge),Ee=!a;++y<ve;)_e[y]=e[y];for(var $e=y;++V<ge;)_e[$e+V]=t[V];for(;++$<F;)(Ee||y<S)&&(_e[$e+o[$]]=e[y++]);return _e}function Gt(e,t){var o=-1,a=e.length;for(t||(t=oe(a));++o<a;)t[o]=e[o];return t}function In(e,t,o,a){var y=!o;o||(o={});for(var S=-1,$=t.length;++S<$;){var F=t[S],V=a?a(o[F],e[F],F,o,e):r;V===r&&(V=e[F]),y?Gn(o,F,V):ao(o,F,V)}return o}function by(e,t){return In(e,Lu(e),t)}function xy(e,t){return In(e,mh(e),t)}function Ls(e,t){return function(o,a){var y=We(o)?Tv:Ym,S=t?t():{};return y(o,e,Ne(a,2),S)}}function _i(e){return Ve(function(t,o){var a=-1,y=o.length,S=y>1?o[y-1]:r,$=y>2?o[2]:r;for(S=e.length>3&&typeof S=="function"?(y--,S):r,$&&zt(o[0],o[1],$)&&(S=y<3?r:S,y=1),t=ut(t);++a<y;){var F=o[a];F&&e(t,F,a,S)}return t})}function oh(e,t){return function(o,a){if(o==null)return o;if(!Vt(o))return e(o,a);for(var y=o.length,S=t?y:-1,$=ut(o);(t?S--:++S<y)&&a($[S],S,$)!==!1;);return o}}function sh(e){return function(t,o,a){for(var y=-1,S=ut(t),$=a(t),F=$.length;F--;){var V=$[e?F:++y];if(o(S[V],V,S)===!1)break}return t}}function Sy(e,t,o){var a=t&N,y=ho(e);function S(){var $=this&&this!==kt&&this instanceof S?y:e;return $.apply(a?o:this,arguments)}return S}function ah(e){return function(t){t=it(t);var o=di(t)?An(t):r,a=o?o[0]:t.charAt(0),y=o?Ar(o,1).join(""):t.slice(1);return a[e]()+y}}function bi(e){return function(t){return Ka(od(id(t).replace(vr,"")),e,"")}}function ho(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var o=wi(e.prototype),a=e.apply(o,t);return vt(a)?a:o}}function Cy(e,t,o){var a=ho(e);function y(){for(var S=arguments.length,$=oe(S),F=S,V=xi(y);F--;)$[F]=arguments[F];var ge=S<3&&$[0]!==V&&$[S-1]!==V?[]:_r($,V);if(S-=ge.length,S<o)return hh(e,t,ks,y.placeholder,r,$,ge,r,r,o-S);var ve=this&&this!==kt&&this instanceof y?a:e;return tn(ve,this,$)}return y}function uh(e){return function(t,o,a){var y=ut(t);if(!Vt(t)){var S=Ne(o,3);t=Et(t),o=function(F){return S(y[F],F,y)}}var $=e(t,o,a);return $>-1?y[S?t[$]:$]:r}}function lh(e){return Zn(function(t){var o=t.length,a=o,y=mn.prototype.thru;for(e&&t.reverse();a--;){var S=t[a];if(typeof S!="function")throw new vn(f);if(y&&!$&&Ns(S)=="wrapper")var $=new mn([],!0)}for(a=$?a:o;++a<o;){S=t[a];var F=Ns(S),V=F=="wrapper"?Mu(S):r;V&&Iu(V[0])&&V[1]==(ee|X|H|re)&&!V[4].length&&V[9]==1?$=$[Ns(V[0])].apply($,V[3]):$=S.length==1&&Iu(S)?$[F]():$.thru(S)}return function(){var ge=arguments,ve=ge[0];if($&&ge.length==1&&We(ve))return $.plant(ve).value();for(var _e=0,Ee=o?t[_e].apply(this,ge):ve;++_e<o;)Ee=t[_e].call(this,Ee);return Ee}})}function ks(e,t,o,a,y,S,$,F,V,ge){var ve=t&ee,_e=t&N,Ee=t&Q,$e=t&(X|ae),Be=t&se,qe=Ee?r:ho(e);function je(){for(var Ke=arguments.length,Xe=oe(Ke),sn=Ke;sn--;)Xe[sn]=arguments[sn];if($e)var Ft=xi(je),an=Pv(Xe,Ft);if(a&&(Xe=rh(Xe,a,y,$e)),S&&(Xe=ih(Xe,S,$,$e)),Ke-=an,$e&&Ke<ge){var _t=_r(Xe,Ft);return hh(e,t,ks,je.placeholder,o,Xe,_t,F,V,ge-Ke)}var Dn=_e?o:this,Xn=Ee?Dn[e]:e;return Ke=Xe.length,F?Xe=Yy(Xe,F):Be&&Ke>1&&Xe.reverse(),ve&&V<Ke&&(Xe.length=V),this&&this!==kt&&this instanceof je&&(Xn=qe||ho(Xn)),Xn.apply(Dn,Xe)}return je}function ch(e,t){return function(o,a){return Jm(o,e,t(a),{})}}function Is(e,t){return function(o,a){var y;if(o===r&&a===r)return t;if(o!==r&&(y=o),a!==r){if(y===r)return a;typeof o=="string"||typeof a=="string"?(o=rn(o),a=rn(a)):(o=Zf(o),a=Zf(a)),y=e(o,a)}return y}}function Ou(e){return Zn(function(t){return t=gt(t,nn(Ne())),Ve(function(o){var a=this;return e(t,function(y){return tn(y,a,o)})})})}function $s(e,t){t=t===r?" ":rn(t);var o=t.length;if(o<2)return o?wu(t,e):t;var a=wu(t,bs(e/pi(t)));return di(t)?Ar(An(a),0,e).join(""):a.slice(0,e)}function Ay(e,t,o,a){var y=t&N,S=ho(e);function $(){for(var F=-1,V=arguments.length,ge=-1,ve=a.length,_e=oe(ve+V),Ee=this&&this!==kt&&this instanceof $?S:e;++ge<ve;)_e[ge]=a[ge];for(;V--;)_e[ge++]=arguments[++F];return tn(Ee,y?o:this,_e)}return $}function fh(e){return function(t,o,a){return a&&typeof a!="number"&&zt(t,o,a)&&(o=a=r),t=Jn(t),o===r?(o=t,t=0):o=Jn(o),a=a===r?t<o?1:-1:Jn(a),cy(t,o,a,e)}}function Ps(e){return function(t,o){return typeof t=="string"&&typeof o=="string"||(t=bn(t),o=bn(o)),e(t,o)}}function hh(e,t,o,a,y,S,$,F,V,ge){var ve=t&X,_e=ve?$:r,Ee=ve?r:$,$e=ve?S:r,Be=ve?r:S;t|=ve?H:fe,t&=~(ve?fe:H),t&te||(t&=-4);var qe=[e,t,y,$e,_e,Be,Ee,F,V,ge],je=o.apply(r,qe);return Iu(e)&&Ch(je,qe),je.placeholder=a,Ah(je,e,t)}function Tu(e){var t=At[e];return function(o,a){if(o=bn(o),a=a==null?0:$t(Ye(a),292),a&&Af(o)){var y=(it(o)+"e").split("e"),S=t(y[0]+"e"+(+y[1]+a));return y=(it(S)+"e").split("e"),+(y[0]+"e"+(+y[1]-a))}return t(o)}}var Oy=mi&&1/fs(new mi([,-0]))[1]==v?function(e){return new mi(e)}:Zu;function dh(e){return function(t){var o=Pt(t);return o==W?ru(t):o==P?Wv(t):$v(t,e(t))}}function Vn(e,t,o,a,y,S,$,F){var V=t&Q;if(!V&&typeof e!="function")throw new vn(f);var ge=a?a.length:0;if(ge||(t&=-97,a=y=r),$=$===r?$:Ot(Ye($),0),F=F===r?F:Ye(F),ge-=y?y.length:0,t&fe){var ve=a,_e=y;a=y=r}var Ee=V?r:Mu(e),$e=[e,t,o,a,y,ve,_e,S,$,F];if(Ee&&zy($e,Ee),e=$e[0],t=$e[1],o=$e[2],a=$e[3],y=$e[4],F=$e[9]=$e[9]===r?V?0:e.length:Ot($e[9]-ge,0),!F&&t&(X|ae)&&(t&=-25),!t||t==N)var Be=Sy(e,t,o);else t==X||t==ae?Be=Cy(e,t,F):(t==H||t==(N|H))&&!y.length?Be=Ay(e,t,o,a):Be=ks.apply(r,$e);var qe=Ee?Gf:Ch;return Ah(qe(Be,$e),e,t)}function ph(e,t,o,a){return e===r||Tn(e,vi[o])&&!ot.call(a,o)?t:e}function gh(e,t,o,a,y,S){return vt(e)&&vt(t)&&(S.set(t,e),Es(e,t,r,gh,S),S.delete(t)),e}function Ty(e){return vo(e)?r:e}function vh(e,t,o,a,y,S){var $=o&R,F=e.length,V=t.length;if(F!=V&&!($&&V>F))return!1;var ge=S.get(e),ve=S.get(t);if(ge&&ve)return ge==t&&ve==e;var _e=-1,Ee=!0,$e=o&E?new Wr:r;for(S.set(e,t),S.set(t,e);++_e<F;){var Be=e[_e],qe=t[_e];if(a)var je=$?a(qe,Be,_e,t,e,S):a(Be,qe,_e,e,t,S);if(je!==r){if(je)continue;Ee=!1;break}if($e){if(!Qa(t,function(Ke,Xe){if(!to($e,Xe)&&(Be===Ke||y(Be,Ke,o,a,S)))return $e.push(Xe)})){Ee=!1;break}}else if(!(Be===qe||y(Be,qe,o,a,S))){Ee=!1;break}}return S.delete(e),S.delete(t),Ee}function Dy(e,t,o,a,y,S,$){switch(o){case Le:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Se:return!(e.byteLength!=t.byteLength||!S(new ms(e),new ms(t)));case J:case le:case K:return Tn(+e,+t);case be:return e.name==t.name&&e.message==t.message;case w:case U:return e==t+"";case W:var F=ru;case P:var V=a&R;if(F||(F=fs),e.size!=t.size&&!V)return!1;var ge=$.get(e);if(ge)return ge==t;a|=E,$.set(e,t);var ve=vh(F(e),F(t),a,y,S,$);return $.delete(e),ve;case ne:if(so)return so.call(e)==so.call(t)}return!1}function Ey(e,t,o,a,y,S){var $=o&R,F=Du(e),V=F.length,ge=Du(t),ve=ge.length;if(V!=ve&&!$)return!1;for(var _e=V;_e--;){var Ee=F[_e];if(!($?Ee in t:ot.call(t,Ee)))return!1}var $e=S.get(e),Be=S.get(t);if($e&&Be)return $e==t&&Be==e;var qe=!0;S.set(e,t),S.set(t,e);for(var je=$;++_e<V;){Ee=F[_e];var Ke=e[Ee],Xe=t[Ee];if(a)var sn=$?a(Xe,Ke,Ee,t,e,S):a(Ke,Xe,Ee,e,t,S);if(!(sn===r?Ke===Xe||y(Ke,Xe,o,a,S):sn)){qe=!1;break}je||(je=Ee=="constructor")}if(qe&&!je){var Ft=e.constructor,an=t.constructor;Ft!=an&&"constructor"in e&&"constructor"in t&&!(typeof Ft=="function"&&Ft instanceof Ft&&typeof an=="function"&&an instanceof an)&&(qe=!1)}return S.delete(e),S.delete(t),qe}function Zn(e){return Pu(xh(e,r,Rh),e+"")}function Du(e){return Pf(e,Et,Lu)}function Eu(e){return Pf(e,Zt,mh)}var Mu=Ss?function(e){return Ss.get(e)}:Zu;function Ns(e){for(var t=e.name+"",o=yi[t],a=ot.call(yi,t)?o.length:0;a--;){var y=o[a],S=y.func;if(S==null||S==e)return y.name}return t}function xi(e){var t=ot.call(x,"placeholder")?x:e;return t.placeholder}function Ne(){var e=x.iteratee||Gu;return e=e===Gu?jf:e,arguments.length?e(arguments[0],arguments[1]):e}function Bs(e,t){var o=e.__data__;return Ny(t)?o[typeof t=="string"?"string":"hash"]:o.map}function Ru(e){for(var t=Et(e),o=t.length;o--;){var a=t[o],y=e[a];t[o]=[a,y,_h(y)]}return t}function Hr(e,t){var o=Uv(e,t);return Bf(o)?o:r}function My(e){var t=ot.call(e,zr),o=e[zr];try{e[zr]=r;var a=!0}catch{}var y=gs.call(e);return a&&(t?e[zr]=o:delete e[zr]),y}var Lu=ou?function(e){return e==null?[]:(e=ut(e),yr(ou(e),function(t){return Sf.call(e,t)}))}:Ku,mh=ou?function(e){for(var t=[];e;)wr(t,Lu(e)),e=ys(e);return t}:Ku,Pt=Ut;(su&&Pt(new su(new ArrayBuffer(1)))!=Le||ro&&Pt(new ro)!=W||au&&Pt(au.resolve())!=u||mi&&Pt(new mi)!=P||io&&Pt(new io)!=De)&&(Pt=function(e){var t=Ut(e),o=t==Te?e.constructor:r,a=o?Gr(o):"";if(a)switch(a){case hm:return Le;case dm:return W;case pm:return u;case gm:return P;case vm:return De}return t});function Ry(e,t,o){for(var a=-1,y=o.length;++a<y;){var S=o[a],$=S.size;switch(S.type){case"drop":e+=$;break;case"dropRight":t-=$;break;case"take":t=$t(t,e+$);break;case"takeRight":e=Ot(e,t-$);break}}return{start:e,end:t}}function Ly(e){var t=e.match($a);return t?t[1].split(Rt):[]}function yh(e,t,o){t=Cr(t,e);for(var a=-1,y=t.length,S=!1;++a<y;){var $=$n(t[a]);if(!(S=e!=null&&o(e,$)))break;e=e[$]}return S||++a!=y?S:(y=e==null?0:e.length,!!y&&qs(y)&&Kn($,y)&&(We(e)||Vr(e)))}function ky(e){var t=e.length,o=new e.constructor(t);return t&&typeof e[0]=="string"&&ot.call(e,"index")&&(o.index=e.index,o.input=e.input),o}function wh(e){return typeof e.constructor=="function"&&!po(e)?wi(ys(e)):{}}function Iy(e,t,o){var a=e.constructor;switch(t){case Se:return Au(e);case J:case le:return new a(+e);case Le:return my(e,o);case Pe:case Ie:case et:case Ge:case tt:case pt:case xt:case lt:case St:return th(e,o);case W:return new a;case K:case U:return new a(e);case w:return yy(e);case P:return new a;case ne:return wy(e)}}function $y(e,t){var o=t.length;if(!o)return e;var a=o-1;return t[a]=(o>1?"& ":"")+t[a],t=t.join(o>2?", ":" "),e.replace(Ia,`{
125
125
  /* [wrapped with `+t+`] */
126
- `)}function Ny(e){return We(e)||Vr(e)||!!(Cf&&e&&e[Cf])}function Kn(e,t){var o=typeof e;return t=t??f,!!t&&(o=="number"||o!="symbol"&&es.test(e))&&e>-1&&e%1==0&&e<t}function zt(e,t,o){if(!vt(o))return!1;var a=typeof t;return(a=="number"?Vt(o)&&Kn(t,o.length):a=="string"&&t in o)?Tn(o[t],e):!1}function ku(e,t){if(We(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||on(e)?!0:si.test(e)||!qt.test(e)||t!=null&&e in ut(t)}function By(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Iu(e){var t=Ns(e),o=x[t];if(typeof o!="function"||!(t in Qe.prototype))return!1;if(e===o)return!0;var a=Mu(o);return!!a&&e===a[0]}function jy(e){return!!_f&&_f in e}var Uy=ds?Qn:Qu;function po(e){var t=e&&e.constructor,o=typeof t=="function"&&t.prototype||vi;return e===o}function _h(e){return e===e&&!vt(e)}function bh(e,t){return function(o){return o==null?!1:o[e]===t&&(t!==r||e in ut(o))}}function zy(e){var t=Ws(e,function(a){return o.size===C&&o.clear(),a}),o=t.cache;return t}function Fy(e,t){var o=e[1],a=t[1],y=o|a,S=y<(N|Q|ne),$=a==ne&&o==ee||a==ne&&o==re&&e[7].length<=t[8]||a==(ne|re)&&t[7].length<=t[8]&&o==ee;if(!(S||$))return e;a&N&&(e[2]=t[2],y|=o&N?0:te);var F=t[3];if(F){var V=e[3];e[3]=V?rh(V,F,t[4]):F,e[4]=V?_r(e[3],O):t[4]}return F=t[5],F&&(V=e[5],e[5]=V?ih(V,F,t[6]):F,e[6]=V?_r(e[5],O):t[6]),F=t[7],F&&(e[7]=F),a&ne&&(e[8]=e[8]==null?t[8]:$t(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=y,e}function Wy(e){var t=[];if(e!=null)for(var o in ut(e))t.push(o);return t}function Yy(e){return gs.call(e)}function xh(e,t,o){return t=Ot(t===r?e.length-1:t,0),function(){for(var a=arguments,y=-1,S=Ot(a.length-t,0),$=oe(S);++y<S;)$[y]=a[t+y];y=-1;for(var F=oe(t+1);++y<t;)F[y]=a[y];return F[t]=o($),tn(e,this,F)}}function Sh(e,t){return t.length<2?e:qr(e,wn(t,0,-1))}function qy(e,t){for(var o=e.length,a=$t(t.length,o),y=Gt(e);a--;){var S=t[a];e[a]=Kn(S,o)?y[S]:r}return e}function $u(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Ch=Oh(Gf),go=sm||function(e,t){return kt.setTimeout(e,t)},Pu=Oh(py);function Ah(e,t,o){var a=t+"";return Pu(e,Py(a,Hy(ky(a),o)))}function Oh(e){var t=0,o=0;return function(){var a=cm(),y=Oe-(a-o);if(o=a,y>0){if(++t>=Ae)return arguments[0]}else t=0;return e.apply(r,arguments)}}function js(e,t){var o=-1,a=e.length,y=a-1;for(t=t===r?a:t;++o<t;){var S=yu(o,y),$=e[S];e[S]=e[o],e[o]=$}return e.length=t,e}var Th=zy(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ai,function(o,a,y,S){t.push(y?S.replace(Na,"$1"):a||o)}),t});function $n(e){if(typeof e=="string"||on(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Gr(e){if(e!=null){try{return ps.call(e)}catch{}try{return e+""}catch{}}return""}function Hy(e,t){return gn(Z,function(o){var a="_."+o[0];t&o[1]&&!ls(e,a)&&e.push(a)}),e.sort()}function Dh(e){if(e instanceof Qe)return e.clone();var t=new mn(e.__wrapped__,e.__chain__);return t.__actions__=Gt(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Gy(e,t,o){(o?zt(e,t,o):t===r)?t=1:t=Ot(Ye(t),0);var a=e==null?0:e.length;if(!a||t<1)return[];for(var y=0,S=0,$=oe(bs(a/t));y<a;)$[S++]=wn(e,y,y+=t);return $}function Vy(e){for(var t=-1,o=e==null?0:e.length,a=0,y=[];++t<o;){var S=e[t];S&&(y[a++]=S)}return y}function Zy(){var e=arguments.length;if(!e)return[];for(var t=oe(e-1),o=arguments[0],a=e;a--;)t[a-1]=arguments[a];return wr(We(o)?Gt(o):[o],It(t,1))}var Ky=Ve(function(e,t){return wt(e)?uo(e,It(t,1,wt,!0)):[]}),Qy=Ve(function(e,t){var o=_n(t);return wt(o)&&(o=r),wt(e)?uo(e,It(t,1,wt,!0),Ne(o,2)):[]}),Jy=Ve(function(e,t){var o=_n(t);return wt(o)&&(o=r),wt(e)?uo(e,It(t,1,wt,!0),r,o):[]});function Xy(e,t,o){var a=e==null?0:e.length;return a?(t=o||t===r?1:Ye(t),wn(e,t<0?0:t,a)):[]}function e2(e,t,o){var a=e==null?0:e.length;return a?(t=o||t===r?1:Ye(t),t=a-t,wn(e,0,t<0?0:t)):[]}function t2(e,t){return e&&e.length?Rs(e,Ne(t,3),!0,!0):[]}function n2(e,t){return e&&e.length?Rs(e,Ne(t,3),!0):[]}function r2(e,t,o,a){var y=e==null?0:e.length;return y?(o&&typeof o!="number"&&zt(e,t,o)&&(o=0,a=y),Zm(e,t,o,a)):[]}function Eh(e,t,o){var a=e==null?0:e.length;if(!a)return-1;var y=o==null?0:Ye(o);return y<0&&(y=Ot(a+y,0)),cs(e,Ne(t,3),y)}function Mh(e,t,o){var a=e==null?0:e.length;if(!a)return-1;var y=a-1;return o!==r&&(y=Ye(o),y=o<0?Ot(a+y,0):$t(y,a-1)),cs(e,Ne(t,3),y,!0)}function Rh(e){var t=e==null?0:e.length;return t?It(e,1):[]}function i2(e){var t=e==null?0:e.length;return t?It(e,p):[]}function o2(e,t){var o=e==null?0:e.length;return o?(t=t===r?1:Ye(t),It(e,t)):[]}function s2(e){for(var t=-1,o=e==null?0:e.length,a={};++t<o;){var y=e[t];a[y[0]]=y[1]}return a}function Lh(e){return e&&e.length?e[0]:r}function a2(e,t,o){var a=e==null?0:e.length;if(!a)return-1;var y=o==null?0:Ye(o);return y<0&&(y=Ot(a+y,0)),hi(e,t,y)}function u2(e){var t=e==null?0:e.length;return t?wn(e,0,-1):[]}var l2=Ve(function(e){var t=gt(e,Su);return t.length&&t[0]===e[0]?du(t):[]}),c2=Ve(function(e){var t=_n(e),o=gt(e,Su);return t===_n(o)?t=r:o.pop(),o.length&&o[0]===e[0]?du(o,Ne(t,2)):[]}),f2=Ve(function(e){var t=_n(e),o=gt(e,Su);return t=typeof t=="function"?t:r,t&&o.pop(),o.length&&o[0]===e[0]?du(o,r,t):[]});function h2(e,t){return e==null?"":um.call(e,t)}function _n(e){var t=e==null?0:e.length;return t?e[t-1]:r}function d2(e,t,o){var a=e==null?0:e.length;if(!a)return-1;var y=a;return o!==r&&(y=Ye(o),y=y<0?Ot(a+y,0):$t(y,a-1)),t===t?Hv(e,t,y):cs(e,hf,y,!0)}function p2(e,t){return e&&e.length?Wf(e,Ye(t)):r}var g2=Ve(kh);function kh(e,t){return e&&e.length&&t&&t.length?mu(e,t):e}function v2(e,t,o){return e&&e.length&&t&&t.length?mu(e,t,Ne(o,2)):e}function m2(e,t,o){return e&&e.length&&t&&t.length?mu(e,t,r,o):e}var y2=Zn(function(e,t){var o=e==null?0:e.length,a=lu(e,t);return Hf(e,gt(t,function(y){return Kn(y,o)?+y:y}).sort(nh)),a});function w2(e,t){var o=[];if(!(e&&e.length))return o;var a=-1,y=[],S=e.length;for(t=Ne(t,3);++a<S;){var $=e[a];t($,a,e)&&(o.push($),y.push(a))}return Hf(e,y),o}function Nu(e){return e==null?e:hm.call(e)}function _2(e,t,o){var a=e==null?0:e.length;return a?(o&&typeof o!="number"&&zt(e,t,o)?(t=0,o=a):(t=t==null?0:Ye(t),o=o===r?a:Ye(o)),wn(e,t,o)):[]}function b2(e,t){return Ms(e,t)}function x2(e,t,o){return _u(e,t,Ne(o,2))}function S2(e,t){var o=e==null?0:e.length;if(o){var a=Ms(e,t);if(a<o&&Tn(e[a],t))return a}return-1}function C2(e,t){return Ms(e,t,!0)}function A2(e,t,o){return _u(e,t,Ne(o,2),!0)}function O2(e,t){var o=e==null?0:e.length;if(o){var a=Ms(e,t,!0)-1;if(Tn(e[a],t))return a}return-1}function T2(e){return e&&e.length?Vf(e):[]}function D2(e,t){return e&&e.length?Vf(e,Ne(t,2)):[]}function E2(e){var t=e==null?0:e.length;return t?wn(e,1,t):[]}function M2(e,t,o){return e&&e.length?(t=o||t===r?1:Ye(t),wn(e,0,t<0?0:t)):[]}function R2(e,t,o){var a=e==null?0:e.length;return a?(t=o||t===r?1:Ye(t),t=a-t,wn(e,t<0?0:t,a)):[]}function L2(e,t){return e&&e.length?Rs(e,Ne(t,3),!1,!0):[]}function k2(e,t){return e&&e.length?Rs(e,Ne(t,3)):[]}var I2=Ve(function(e){return Sr(It(e,1,wt,!0))}),$2=Ve(function(e){var t=_n(e);return wt(t)&&(t=r),Sr(It(e,1,wt,!0),Ne(t,2))}),P2=Ve(function(e){var t=_n(e);return t=typeof t=="function"?t:r,Sr(It(e,1,wt,!0),r,t)});function N2(e){return e&&e.length?Sr(e):[]}function B2(e,t){return e&&e.length?Sr(e,Ne(t,2)):[]}function j2(e,t){return t=typeof t=="function"?t:r,e&&e.length?Sr(e,r,t):[]}function Bu(e){if(!(e&&e.length))return[];var t=0;return e=yr(e,function(o){if(wt(o))return t=Ot(o.length,t),!0}),tu(t,function(o){return gt(e,Ja(o))})}function Ih(e,t){if(!(e&&e.length))return[];var o=Bu(e);return t==null?o:gt(o,function(a){return tn(t,r,a)})}var U2=Ve(function(e,t){return wt(e)?uo(e,t):[]}),z2=Ve(function(e){return xu(yr(e,wt))}),F2=Ve(function(e){var t=_n(e);return wt(t)&&(t=r),xu(yr(e,wt),Ne(t,2))}),W2=Ve(function(e){var t=_n(e);return t=typeof t=="function"?t:r,xu(yr(e,wt),r,t)}),Y2=Ve(Bu);function q2(e,t){return Jf(e||[],t||[],ao)}function H2(e,t){return Jf(e||[],t||[],fo)}var G2=Ve(function(e){var t=e.length,o=t>1?e[t-1]:r;return o=typeof o=="function"?(e.pop(),o):r,Ih(e,o)});function $h(e){var t=x(e);return t.__chain__=!0,t}function V2(e,t){return t(e),e}function Us(e,t){return t(e)}var Z2=Zn(function(e){var t=e.length,o=t?e[0]:0,a=this.__wrapped__,y=function(S){return lu(S,e)};return t>1||this.__actions__.length||!(a instanceof Qe)||!Kn(o)?this.thru(y):(a=a.slice(o,+o+(t?1:0)),a.__actions__.push({func:Us,args:[y],thisArg:r}),new mn(a,this.__chain__).thru(function(S){return t&&!S.length&&S.push(r),S}))});function K2(){return $h(this)}function Q2(){return new mn(this.value(),this.__chain__)}function J2(){this.__values__===r&&(this.__values__=Zh(this.value()));var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}}function X2(){return this}function ew(e){for(var t,o=this;o instanceof As;){var a=Dh(o);a.__index__=0,a.__values__=r,t?y.__wrapped__=a:t=a;var y=a;o=o.__wrapped__}return y.__wrapped__=e,t}function tw(){var e=this.__wrapped__;if(e instanceof Qe){var t=e;return this.__actions__.length&&(t=new Qe(this)),t=t.reverse(),t.__actions__.push({func:Us,args:[Nu],thisArg:r}),new mn(t,this.__chain__)}return this.thru(Nu)}function nw(){return Qf(this.__wrapped__,this.__actions__)}var rw=Ls(function(e,t,o){ot.call(e,o)?++e[o]:Gn(e,o,1)});function iw(e,t,o){var a=We(e)?cf:Vm;return o&&zt(e,t,o)&&(t=r),a(e,Ne(t,3))}function ow(e,t){var o=We(e)?yr:If;return o(e,Ne(t,3))}var sw=uh(Eh),aw=uh(Mh);function uw(e,t){return It(zs(e,t),1)}function lw(e,t){return It(zs(e,t),p)}function cw(e,t,o){return o=o===r?1:Ye(o),It(zs(e,t),o)}function Ph(e,t){var o=We(e)?gn:xr;return o(e,Ne(t,3))}function Nh(e,t){var o=We(e)?Ev:kf;return o(e,Ne(t,3))}var fw=Ls(function(e,t,o){ot.call(e,o)?e[o].push(t):Gn(e,o,[t])});function hw(e,t,o,a){e=Vt(e)?e:Ci(e),o=o&&!a?Ye(o):0;var y=e.length;return o<0&&(o=Ot(y+o,0)),Hs(e)?o<=y&&e.indexOf(t,o)>-1:!!y&&hi(e,t,o)>-1}var dw=Ve(function(e,t,o){var a=-1,y=typeof t=="function",S=Vt(e)?oe(e.length):[];return xr(e,function($){S[++a]=y?tn(t,$,o):lo($,t,o)}),S}),pw=Ls(function(e,t,o){Gn(e,o,t)});function zs(e,t){var o=We(e)?gt:Uf;return o(e,Ne(t,3))}function gw(e,t,o,a){return e==null?[]:(We(t)||(t=t==null?[]:[t]),o=a?r:o,We(o)||(o=o==null?[]:[o]),Yf(e,t,o))}var vw=Ls(function(e,t,o){e[o?0:1].push(t)},function(){return[[],[]]});function mw(e,t,o){var a=We(e)?Ka:pf,y=arguments.length<3;return a(e,Ne(t,4),o,y,xr)}function yw(e,t,o){var a=We(e)?Mv:pf,y=arguments.length<3;return a(e,Ne(t,4),o,y,kf)}function ww(e,t){var o=We(e)?yr:If;return o(e,Ys(Ne(t,3)))}function _w(e){var t=We(e)?Ef:hy;return t(e)}function bw(e,t,o){(o?zt(e,t,o):t===r)?t=1:t=Ye(t);var a=We(e)?Wm:dy;return a(e,t)}function xw(e){var t=We(e)?Ym:gy;return t(e)}function Sw(e){if(e==null)return 0;if(Vt(e))return Hs(e)?pi(e):e.length;var t=Pt(e);return t==W||t==P?e.size:gu(e).length}function Cw(e,t,o){var a=We(e)?Qa:vy;return o&&zt(e,t,o)&&(t=r),a(e,Ne(t,3))}var Aw=Ve(function(e,t){if(e==null)return[];var o=t.length;return o>1&&zt(e,t[0],t[1])?t=[]:o>2&&zt(t[0],t[1],t[2])&&(t=[t[0]]),Yf(e,It(t,1),[])}),Fs=om||function(){return kt.Date.now()};function Ow(e,t){if(typeof t!="function")throw new vn(h);return e=Ye(e),function(){if(--e<1)return t.apply(this,arguments)}}function Bh(e,t,o){return t=o?r:t,t=e&&t==null?e.length:t,Vn(e,ne,r,r,r,r,t)}function jh(e,t){var o;if(typeof t!="function")throw new vn(h);return e=Ye(e),function(){return--e>0&&(o=t.apply(this,arguments)),e<=1&&(t=r),o}}var ju=Ve(function(e,t,o){var a=N;if(o.length){var y=_r(o,xi(ju));a|=G}return Vn(e,a,t,o,y)}),Uh=Ve(function(e,t,o){var a=N|Q;if(o.length){var y=_r(o,xi(Uh));a|=G}return Vn(t,a,e,o,y)});function zh(e,t,o){t=o?r:t;var a=Vn(e,ee,r,r,r,r,r,t);return a.placeholder=zh.placeholder,a}function Fh(e,t,o){t=o?r:t;var a=Vn(e,ue,r,r,r,r,r,t);return a.placeholder=Fh.placeholder,a}function Wh(e,t,o){var a,y,S,$,F,V,ge=0,ve=!1,_e=!1,Ee=!0;if(typeof e!="function")throw new vn(h);t=bn(t)||0,vt(o)&&(ve=!!o.leading,_e="maxWait"in o,S=_e?Ot(bn(o.maxWait)||0,t):S,Ee="trailing"in o?!!o.trailing:Ee);function $e(_t){var Dn=a,Xn=y;return a=y=r,ge=_t,$=e.apply(Xn,Dn),$}function Be(_t){return ge=_t,F=go(Ke,t),ve?$e(_t):$}function qe(_t){var Dn=_t-V,Xn=_t-ge,ud=t-Dn;return _e?$t(ud,S-Xn):ud}function je(_t){var Dn=_t-V,Xn=_t-ge;return V===r||Dn>=t||Dn<0||_e&&Xn>=S}function Ke(){var _t=Fs();if(je(_t))return Xe(_t);F=go(Ke,qe(_t))}function Xe(_t){return F=r,Ee&&a?$e(_t):(a=y=r,$)}function sn(){F!==r&&Xf(F),ge=0,a=V=y=F=r}function Ft(){return F===r?$:Xe(Fs())}function an(){var _t=Fs(),Dn=je(_t);if(a=arguments,y=this,V=_t,Dn){if(F===r)return Be(V);if(_e)return Xf(F),F=go(Ke,t),$e(V)}return F===r&&(F=go(Ke,t)),$}return an.cancel=sn,an.flush=Ft,an}var Tw=Ve(function(e,t){return Lf(e,1,t)}),Dw=Ve(function(e,t,o){return Lf(e,bn(t)||0,o)});function Ew(e){return Vn(e,se)}function Ws(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new vn(h);var o=function(){var a=arguments,y=t?t.apply(this,a):a[0],S=o.cache;if(S.has(y))return S.get(y);var $=e.apply(this,a);return o.cache=S.set(y,$)||S,$};return o.cache=new(Ws.Cache||Hn),o}Ws.Cache=Hn;function Ys(e){if(typeof e!="function")throw new vn(h);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Mw(e){return jh(2,e)}var Rw=my(function(e,t){t=t.length==1&&We(t[0])?gt(t[0],nn(Ne())):gt(It(t,1),nn(Ne()));var o=t.length;return Ve(function(a){for(var y=-1,S=$t(a.length,o);++y<S;)a[y]=t[y].call(this,a[y]);return tn(e,this,a)})}),Uu=Ve(function(e,t){var o=_r(t,xi(Uu));return Vn(e,G,r,t,o)}),Yh=Ve(function(e,t){var o=_r(t,xi(Yh));return Vn(e,de,r,t,o)}),Lw=Zn(function(e,t){return Vn(e,re,r,r,r,t)});function kw(e,t){if(typeof e!="function")throw new vn(h);return t=t===r?t:Ye(t),Ve(e,t)}function Iw(e,t){if(typeof e!="function")throw new vn(h);return t=t==null?0:Ot(Ye(t),0),Ve(function(o){var a=o[t],y=Ar(o,0,t);return a&&wr(y,a),tn(e,this,y)})}function $w(e,t,o){var a=!0,y=!0;if(typeof e!="function")throw new vn(h);return vt(o)&&(a="leading"in o?!!o.leading:a,y="trailing"in o?!!o.trailing:y),Wh(e,t,{leading:a,maxWait:t,trailing:y})}function Pw(e){return Bh(e,1)}function Nw(e,t){return Uu(Cu(t),e)}function Bw(){if(!arguments.length)return[];var e=arguments[0];return We(e)?e:[e]}function jw(e){return yn(e,M)}function Uw(e,t){return t=typeof t=="function"?t:r,yn(e,M,t)}function zw(e){return yn(e,L|M)}function Fw(e,t){return t=typeof t=="function"?t:r,yn(e,L|M,t)}function Ww(e,t){return t==null||Rf(e,t,Et(t))}function Tn(e,t){return e===t||e!==e&&t!==t}var Yw=Ps(hu),qw=Ps(function(e,t){return e>=t}),Vr=Nf(function(){return arguments}())?Nf:function(e){return yt(e)&&ot.call(e,"callee")&&!Sf.call(e,"callee")},We=oe.isArray,Hw=rf?nn(rf):ey;function Vt(e){return e!=null&&qs(e.length)&&!Qn(e)}function wt(e){return yt(e)&&Vt(e)}function Gw(e){return e===!0||e===!1||yt(e)&&Ut(e)==J}var Or=am||Qu,Vw=of?nn(of):ty;function Zw(e){return yt(e)&&e.nodeType===1&&!vo(e)}function Kw(e){if(e==null)return!0;if(Vt(e)&&(We(e)||typeof e=="string"||typeof e.splice=="function"||Or(e)||Si(e)||Vr(e)))return!e.length;var t=Pt(e);if(t==W||t==P)return!e.size;if(po(e))return!gu(e).length;for(var o in e)if(ot.call(e,o))return!1;return!0}function Qw(e,t){return co(e,t)}function Jw(e,t,o){o=typeof o=="function"?o:r;var a=o?o(e,t):r;return a===r?co(e,t,r,o):!!a}function zu(e){if(!yt(e))return!1;var t=Ut(e);return t==be||t==Ce||typeof e.message=="string"&&typeof e.name=="string"&&!vo(e)}function Xw(e){return typeof e=="number"&&Af(e)}function Qn(e){if(!vt(e))return!1;var t=Ut(e);return t==z||t==q||t==we||t==d}function qh(e){return typeof e=="number"&&e==Ye(e)}function qs(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=f}function vt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function yt(e){return e!=null&&typeof e=="object"}var Hh=sf?nn(sf):ry;function e_(e,t){return e===t||pu(e,t,Ru(t))}function t_(e,t,o){return o=typeof o=="function"?o:r,pu(e,t,Ru(t),o)}function n_(e){return Gh(e)&&e!=+e}function r_(e){if(Uy(e))throw new Fe(g);return Bf(e)}function i_(e){return e===null}function o_(e){return e==null}function Gh(e){return typeof e=="number"||yt(e)&&Ut(e)==K}function vo(e){if(!yt(e)||Ut(e)!=Te)return!1;var t=ys(e);if(t===null)return!0;var o=ot.call(t,"constructor")&&t.constructor;return typeof o=="function"&&o instanceof o&&ps.call(o)==tm}var Fu=af?nn(af):iy;function s_(e){return qh(e)&&e>=-9007199254740991&&e<=f}var Vh=uf?nn(uf):oy;function Hs(e){return typeof e=="string"||!We(e)&&yt(e)&&Ut(e)==U}function on(e){return typeof e=="symbol"||yt(e)&&Ut(e)==X}var Si=lf?nn(lf):sy;function a_(e){return e===r}function u_(e){return yt(e)&&Pt(e)==De}function l_(e){return yt(e)&&Ut(e)==Re}var c_=Ps(vu),f_=Ps(function(e,t){return e<=t});function Zh(e){if(!e)return[];if(Vt(e))return Hs(e)?An(e):Gt(e);if(no&&e[no])return Wv(e[no]());var t=Pt(e),o=t==W?ru:t==P?fs:Ci;return o(e)}function Jn(e){if(!e)return e===0?e:0;if(e=bn(e),e===p||e===-1/0){var t=e<0?-1:1;return t*_}return e===e?e:0}function Ye(e){var t=Jn(e),o=t%1;return t===t?o?t-o:t:0}function Kh(e){return e?Yr(Ye(e),0,m):0}function bn(e){if(typeof e=="number")return e;if(on(e))return v;if(vt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=vt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=gf(e);var o=jn.test(e);return o||Ir.test(e)?Ov(e.slice(2),o?2:8):Ht.test(e)?v:+e}function Qh(e){return In(e,Zt(e))}function h_(e){return e?Yr(Ye(e),-9007199254740991,f):e===0?e:0}function it(e){return e==null?"":rn(e)}var d_=_i(function(e,t){if(po(t)||Vt(t)){In(t,Et(t),e);return}for(var o in t)ot.call(t,o)&&ao(e,o,t[o])}),Jh=_i(function(e,t){In(t,Zt(t),e)}),Gs=_i(function(e,t,o,a){In(t,Zt(t),e,a)}),p_=_i(function(e,t,o,a){In(t,Et(t),e,a)}),g_=Zn(lu);function v_(e,t){var o=wi(e);return t==null?o:Mf(o,t)}var m_=Ve(function(e,t){e=ut(e);var o=-1,a=t.length,y=a>2?t[2]:r;for(y&&zt(t[0],t[1],y)&&(a=1);++o<a;)for(var S=t[o],$=Zt(S),F=-1,V=$.length;++F<V;){var ge=$[F],ve=e[ge];(ve===r||Tn(ve,vi[ge])&&!ot.call(e,ge))&&(e[ge]=S[ge])}return e}),y_=Ve(function(e){return e.push(r,gh),tn(Xh,r,e)});function w_(e,t){return ff(e,Ne(t,3),kn)}function __(e,t){return ff(e,Ne(t,3),fu)}function b_(e,t){return e==null?e:cu(e,Ne(t,3),Zt)}function x_(e,t){return e==null?e:$f(e,Ne(t,3),Zt)}function S_(e,t){return e&&kn(e,Ne(t,3))}function C_(e,t){return e&&fu(e,Ne(t,3))}function A_(e){return e==null?[]:Ds(e,Et(e))}function O_(e){return e==null?[]:Ds(e,Zt(e))}function Wu(e,t,o){var a=e==null?r:qr(e,t);return a===r?o:a}function T_(e,t){return e!=null&&yh(e,t,Km)}function Yu(e,t){return e!=null&&yh(e,t,Qm)}var D_=ch(function(e,t,o){t!=null&&typeof t.toString!="function"&&(t=gs.call(t)),e[t]=o},Hu(Kt)),E_=ch(function(e,t,o){t!=null&&typeof t.toString!="function"&&(t=gs.call(t)),ot.call(e,t)?e[t].push(o):e[t]=[o]},Ne),M_=Ve(lo);function Et(e){return Vt(e)?Df(e):gu(e)}function Zt(e){return Vt(e)?Df(e,!0):ay(e)}function R_(e,t){var o={};return t=Ne(t,3),kn(e,function(a,y,S){Gn(o,t(a,y,S),a)}),o}function L_(e,t){var o={};return t=Ne(t,3),kn(e,function(a,y,S){Gn(o,y,t(a,y,S))}),o}var k_=_i(function(e,t,o){Es(e,t,o)}),Xh=_i(function(e,t,o,a){Es(e,t,o,a)}),I_=Zn(function(e,t){var o={};if(e==null)return o;var a=!1;t=gt(t,function(S){return S=Cr(S,e),a||(a=S.length>1),S}),In(e,Eu(e),o),a&&(o=yn(o,L|k|M,Dy));for(var y=t.length;y--;)bu(o,t[y]);return o});function $_(e,t){return ed(e,Ys(Ne(t)))}var P_=Zn(function(e,t){return e==null?{}:ly(e,t)});function ed(e,t){if(e==null)return{};var o=gt(Eu(e),function(a){return[a]});return t=Ne(t),qf(e,o,function(a,y){return t(a,y[0])})}function N_(e,t,o){t=Cr(t,e);var a=-1,y=t.length;for(y||(y=1,e=r);++a<y;){var S=e==null?r:e[$n(t[a])];S===r&&(a=y,S=o),e=Qn(S)?S.call(e):S}return e}function B_(e,t,o){return e==null?e:fo(e,t,o)}function j_(e,t,o,a){return a=typeof a=="function"?a:r,e==null?e:fo(e,t,o,a)}var td=dh(Et),nd=dh(Zt);function U_(e,t,o){var a=We(e),y=a||Or(e)||Si(e);if(t=Ne(t,4),o==null){var S=e&&e.constructor;y?o=a?new S:[]:vt(e)?o=Qn(S)?wi(ys(e)):{}:o={}}return(y?gn:kn)(e,function($,F,V){return t(o,$,F,V)}),o}function z_(e,t){return e==null?!0:bu(e,t)}function F_(e,t,o){return e==null?e:Kf(e,t,Cu(o))}function W_(e,t,o,a){return a=typeof a=="function"?a:r,e==null?e:Kf(e,t,Cu(o),a)}function Ci(e){return e==null?[]:nu(e,Et(e))}function Y_(e){return e==null?[]:nu(e,Zt(e))}function q_(e,t,o){return o===r&&(o=t,t=r),o!==r&&(o=bn(o),o=o===o?o:0),t!==r&&(t=bn(t),t=t===t?t:0),Yr(bn(e),t,o)}function H_(e,t,o){return t=Jn(t),o===r?(o=t,t=0):o=Jn(o),e=bn(e),Jm(e,t,o)}function G_(e,t,o){if(o&&typeof o!="boolean"&&zt(e,t,o)&&(t=o=r),o===r&&(typeof t=="boolean"?(o=t,t=r):typeof e=="boolean"&&(o=e,e=r)),e===r&&t===r?(e=0,t=1):(e=Jn(e),t===r?(t=e,e=0):t=Jn(t)),e>t){var a=e;e=t,t=a}if(o||e%1||t%1){var y=Of();return $t(e+y*(t-e+Av("1e-"+((y+"").length-1))),t)}return yu(e,t)}var V_=bi(function(e,t,o){return t=t.toLowerCase(),e+(o?rd(t):t)});function rd(e){return qu(it(e).toLowerCase())}function id(e){return e=it(e),e&&e.replace(Ba,Bv).replace(dn,"")}function Z_(e,t,o){e=it(e),t=rn(t);var a=e.length;o=o===r?a:Yr(Ye(o),0,a);var y=o;return o-=t.length,o>=0&&e.slice(o,y)==t}function K_(e){return e=it(e),e&&Rn.test(e)?e.replace(Jt,jv):e}function Q_(e){return e=it(e),e&&ui.test(e)?e.replace(fr,"\\$&"):e}var J_=bi(function(e,t,o){return e+(o?"-":"")+t.toLowerCase()}),X_=bi(function(e,t,o){return e+(o?" ":"")+t.toLowerCase()}),eb=ah("toLowerCase");function tb(e,t,o){e=it(e),t=Ye(t);var a=t?pi(e):0;if(!t||a>=t)return e;var y=(t-a)/2;return $s(xs(y),o)+e+$s(bs(y),o)}function nb(e,t,o){e=it(e),t=Ye(t);var a=t?pi(e):0;return t&&a<t?e+$s(t-a,o):e}function rb(e,t,o){e=it(e),t=Ye(t);var a=t?pi(e):0;return t&&a<t?$s(t-a,o)+e:e}function ib(e,t,o){return o||t==null?t=0:t&&(t=+t),fm(it(e).replace(Wi,""),t||0)}function ob(e,t,o){return(o?zt(e,t,o):t===r)?t=1:t=Ye(t),wu(it(e),t)}function sb(){var e=arguments,t=it(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var ab=bi(function(e,t,o){return e+(o?"_":"")+t.toLowerCase()});function ub(e,t,o){return o&&typeof o!="number"&&zt(e,t,o)&&(t=o=r),o=o===r?m:o>>>0,o?(e=it(e),e&&(typeof t=="string"||t!=null&&!Fu(t))&&(t=rn(t),!t&&di(e))?Ar(An(e),0,o):e.split(t,o)):[]}var lb=bi(function(e,t,o){return e+(o?" ":"")+qu(t)});function cb(e,t,o){return e=it(e),o=o==null?0:Yr(Ye(o),0,e.length),t=rn(t),e.slice(o,o+t.length)==t}function fb(e,t,o){var a=x.templateSettings;o&&zt(e,t,o)&&(t=r),e=it(e),t=Gs({},t,a,ph);var y=Gs({},t.imports,a.imports,ph),S=Et(y),$=nu(y,S),F,V,ge=0,ve=t.interpolate||hr,_e="__p += '",Ee=iu((t.escape||hr).source+"|"+ve.source+"|"+(ve===at?Yi:hr).source+"|"+(t.evaluate||hr).source+"|$","g"),$e="//# sourceURL="+(ot.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++_v+"]")+`
127
- `;e.replace(Ee,function(je,Ke,Xe,sn,Ft,an){return Xe||(Xe=sn),_e+=e.slice(ge,an).replace(ja,Uv),Ke&&(F=!0,_e+=`' +
126
+ `)}function Py(e){return We(e)||Vr(e)||!!(Cf&&e&&e[Cf])}function Kn(e,t){var o=typeof e;return t=t??d,!!t&&(o=="number"||o!="symbol"&&es.test(e))&&e>-1&&e%1==0&&e<t}function zt(e,t,o){if(!vt(o))return!1;var a=typeof t;return(a=="number"?Vt(o)&&Kn(t,o.length):a=="string"&&t in o)?Tn(o[t],e):!1}function ku(e,t){if(We(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||on(e)?!0:si.test(e)||!qt.test(e)||t!=null&&e in ut(t)}function Ny(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Iu(e){var t=Ns(e),o=x[t];if(typeof o!="function"||!(t in Qe.prototype))return!1;if(e===o)return!0;var a=Mu(o);return!!a&&e===a[0]}function By(e){return!!_f&&_f in e}var jy=ds?Qn:Qu;function po(e){var t=e&&e.constructor,o=typeof t=="function"&&t.prototype||vi;return e===o}function _h(e){return e===e&&!vt(e)}function bh(e,t){return function(o){return o==null?!1:o[e]===t&&(t!==r||e in ut(o))}}function Uy(e){var t=Ws(e,function(a){return o.size===C&&o.clear(),a}),o=t.cache;return t}function zy(e,t){var o=e[1],a=t[1],y=o|a,S=y<(N|Q|ee),$=a==ee&&o==X||a==ee&&o==re&&e[7].length<=t[8]||a==(ee|re)&&t[7].length<=t[8]&&o==X;if(!(S||$))return e;a&N&&(e[2]=t[2],y|=o&N?0:te);var F=t[3];if(F){var V=e[3];e[3]=V?rh(V,F,t[4]):F,e[4]=V?_r(e[3],O):t[4]}return F=t[5],F&&(V=e[5],e[5]=V?ih(V,F,t[6]):F,e[6]=V?_r(e[5],O):t[6]),F=t[7],F&&(e[7]=F),a&ee&&(e[8]=e[8]==null?t[8]:$t(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=y,e}function Fy(e){var t=[];if(e!=null)for(var o in ut(e))t.push(o);return t}function Wy(e){return gs.call(e)}function xh(e,t,o){return t=Ot(t===r?e.length-1:t,0),function(){for(var a=arguments,y=-1,S=Ot(a.length-t,0),$=oe(S);++y<S;)$[y]=a[t+y];y=-1;for(var F=oe(t+1);++y<t;)F[y]=a[y];return F[t]=o($),tn(e,this,F)}}function Sh(e,t){return t.length<2?e:qr(e,wn(t,0,-1))}function Yy(e,t){for(var o=e.length,a=$t(t.length,o),y=Gt(e);a--;){var S=t[a];e[a]=Kn(S,o)?y[S]:r}return e}function $u(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Ch=Oh(Gf),go=om||function(e,t){return kt.setTimeout(e,t)},Pu=Oh(dy);function Ah(e,t,o){var a=t+"";return Pu(e,$y(a,qy(Ly(a),o)))}function Oh(e){var t=0,o=0;return function(){var a=lm(),y=Oe-(a-o);if(o=a,y>0){if(++t>=Ae)return arguments[0]}else t=0;return e.apply(r,arguments)}}function js(e,t){var o=-1,a=e.length,y=a-1;for(t=t===r?a:t;++o<t;){var S=yu(o,y),$=e[S];e[S]=e[o],e[o]=$}return e.length=t,e}var Th=Uy(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ai,function(o,a,y,S){t.push(y?S.replace(Na,"$1"):a||o)}),t});function $n(e){if(typeof e=="string"||on(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Gr(e){if(e!=null){try{return ps.call(e)}catch{}try{return e+""}catch{}}return""}function qy(e,t){return gn(Z,function(o){var a="_."+o[0];t&o[1]&&!ls(e,a)&&e.push(a)}),e.sort()}function Dh(e){if(e instanceof Qe)return e.clone();var t=new mn(e.__wrapped__,e.__chain__);return t.__actions__=Gt(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Hy(e,t,o){(o?zt(e,t,o):t===r)?t=1:t=Ot(Ye(t),0);var a=e==null?0:e.length;if(!a||t<1)return[];for(var y=0,S=0,$=oe(bs(a/t));y<a;)$[S++]=wn(e,y,y+=t);return $}function Gy(e){for(var t=-1,o=e==null?0:e.length,a=0,y=[];++t<o;){var S=e[t];S&&(y[a++]=S)}return y}function Vy(){var e=arguments.length;if(!e)return[];for(var t=oe(e-1),o=arguments[0],a=e;a--;)t[a-1]=arguments[a];return wr(We(o)?Gt(o):[o],It(t,1))}var Zy=Ve(function(e,t){return wt(e)?uo(e,It(t,1,wt,!0)):[]}),Ky=Ve(function(e,t){var o=_n(t);return wt(o)&&(o=r),wt(e)?uo(e,It(t,1,wt,!0),Ne(o,2)):[]}),Qy=Ve(function(e,t){var o=_n(t);return wt(o)&&(o=r),wt(e)?uo(e,It(t,1,wt,!0),r,o):[]});function Jy(e,t,o){var a=e==null?0:e.length;return a?(t=o||t===r?1:Ye(t),wn(e,t<0?0:t,a)):[]}function Xy(e,t,o){var a=e==null?0:e.length;return a?(t=o||t===r?1:Ye(t),t=a-t,wn(e,0,t<0?0:t)):[]}function e2(e,t){return e&&e.length?Rs(e,Ne(t,3),!0,!0):[]}function t2(e,t){return e&&e.length?Rs(e,Ne(t,3),!0):[]}function n2(e,t,o,a){var y=e==null?0:e.length;return y?(o&&typeof o!="number"&&zt(e,t,o)&&(o=0,a=y),Vm(e,t,o,a)):[]}function Eh(e,t,o){var a=e==null?0:e.length;if(!a)return-1;var y=o==null?0:Ye(o);return y<0&&(y=Ot(a+y,0)),cs(e,Ne(t,3),y)}function Mh(e,t,o){var a=e==null?0:e.length;if(!a)return-1;var y=a-1;return o!==r&&(y=Ye(o),y=o<0?Ot(a+y,0):$t(y,a-1)),cs(e,Ne(t,3),y,!0)}function Rh(e){var t=e==null?0:e.length;return t?It(e,1):[]}function r2(e){var t=e==null?0:e.length;return t?It(e,v):[]}function i2(e,t){var o=e==null?0:e.length;return o?(t=t===r?1:Ye(t),It(e,t)):[]}function o2(e){for(var t=-1,o=e==null?0:e.length,a={};++t<o;){var y=e[t];a[y[0]]=y[1]}return a}function Lh(e){return e&&e.length?e[0]:r}function s2(e,t,o){var a=e==null?0:e.length;if(!a)return-1;var y=o==null?0:Ye(o);return y<0&&(y=Ot(a+y,0)),hi(e,t,y)}function a2(e){var t=e==null?0:e.length;return t?wn(e,0,-1):[]}var u2=Ve(function(e){var t=gt(e,Su);return t.length&&t[0]===e[0]?du(t):[]}),l2=Ve(function(e){var t=_n(e),o=gt(e,Su);return t===_n(o)?t=r:o.pop(),o.length&&o[0]===e[0]?du(o,Ne(t,2)):[]}),c2=Ve(function(e){var t=_n(e),o=gt(e,Su);return t=typeof t=="function"?t:r,t&&o.pop(),o.length&&o[0]===e[0]?du(o,r,t):[]});function f2(e,t){return e==null?"":am.call(e,t)}function _n(e){var t=e==null?0:e.length;return t?e[t-1]:r}function h2(e,t,o){var a=e==null?0:e.length;if(!a)return-1;var y=a;return o!==r&&(y=Ye(o),y=y<0?Ot(a+y,0):$t(y,a-1)),t===t?qv(e,t,y):cs(e,hf,y,!0)}function d2(e,t){return e&&e.length?Wf(e,Ye(t)):r}var p2=Ve(kh);function kh(e,t){return e&&e.length&&t&&t.length?mu(e,t):e}function g2(e,t,o){return e&&e.length&&t&&t.length?mu(e,t,Ne(o,2)):e}function v2(e,t,o){return e&&e.length&&t&&t.length?mu(e,t,r,o):e}var m2=Zn(function(e,t){var o=e==null?0:e.length,a=lu(e,t);return Hf(e,gt(t,function(y){return Kn(y,o)?+y:y}).sort(nh)),a});function y2(e,t){var o=[];if(!(e&&e.length))return o;var a=-1,y=[],S=e.length;for(t=Ne(t,3);++a<S;){var $=e[a];t($,a,e)&&(o.push($),y.push(a))}return Hf(e,y),o}function Nu(e){return e==null?e:fm.call(e)}function w2(e,t,o){var a=e==null?0:e.length;return a?(o&&typeof o!="number"&&zt(e,t,o)?(t=0,o=a):(t=t==null?0:Ye(t),o=o===r?a:Ye(o)),wn(e,t,o)):[]}function _2(e,t){return Ms(e,t)}function b2(e,t,o){return _u(e,t,Ne(o,2))}function x2(e,t){var o=e==null?0:e.length;if(o){var a=Ms(e,t);if(a<o&&Tn(e[a],t))return a}return-1}function S2(e,t){return Ms(e,t,!0)}function C2(e,t,o){return _u(e,t,Ne(o,2),!0)}function A2(e,t){var o=e==null?0:e.length;if(o){var a=Ms(e,t,!0)-1;if(Tn(e[a],t))return a}return-1}function O2(e){return e&&e.length?Vf(e):[]}function T2(e,t){return e&&e.length?Vf(e,Ne(t,2)):[]}function D2(e){var t=e==null?0:e.length;return t?wn(e,1,t):[]}function E2(e,t,o){return e&&e.length?(t=o||t===r?1:Ye(t),wn(e,0,t<0?0:t)):[]}function M2(e,t,o){var a=e==null?0:e.length;return a?(t=o||t===r?1:Ye(t),t=a-t,wn(e,t<0?0:t,a)):[]}function R2(e,t){return e&&e.length?Rs(e,Ne(t,3),!1,!0):[]}function L2(e,t){return e&&e.length?Rs(e,Ne(t,3)):[]}var k2=Ve(function(e){return Sr(It(e,1,wt,!0))}),I2=Ve(function(e){var t=_n(e);return wt(t)&&(t=r),Sr(It(e,1,wt,!0),Ne(t,2))}),$2=Ve(function(e){var t=_n(e);return t=typeof t=="function"?t:r,Sr(It(e,1,wt,!0),r,t)});function P2(e){return e&&e.length?Sr(e):[]}function N2(e,t){return e&&e.length?Sr(e,Ne(t,2)):[]}function B2(e,t){return t=typeof t=="function"?t:r,e&&e.length?Sr(e,r,t):[]}function Bu(e){if(!(e&&e.length))return[];var t=0;return e=yr(e,function(o){if(wt(o))return t=Ot(o.length,t),!0}),tu(t,function(o){return gt(e,Ja(o))})}function Ih(e,t){if(!(e&&e.length))return[];var o=Bu(e);return t==null?o:gt(o,function(a){return tn(t,r,a)})}var j2=Ve(function(e,t){return wt(e)?uo(e,t):[]}),U2=Ve(function(e){return xu(yr(e,wt))}),z2=Ve(function(e){var t=_n(e);return wt(t)&&(t=r),xu(yr(e,wt),Ne(t,2))}),F2=Ve(function(e){var t=_n(e);return t=typeof t=="function"?t:r,xu(yr(e,wt),r,t)}),W2=Ve(Bu);function Y2(e,t){return Jf(e||[],t||[],ao)}function q2(e,t){return Jf(e||[],t||[],fo)}var H2=Ve(function(e){var t=e.length,o=t>1?e[t-1]:r;return o=typeof o=="function"?(e.pop(),o):r,Ih(e,o)});function $h(e){var t=x(e);return t.__chain__=!0,t}function G2(e,t){return t(e),e}function Us(e,t){return t(e)}var V2=Zn(function(e){var t=e.length,o=t?e[0]:0,a=this.__wrapped__,y=function(S){return lu(S,e)};return t>1||this.__actions__.length||!(a instanceof Qe)||!Kn(o)?this.thru(y):(a=a.slice(o,+o+(t?1:0)),a.__actions__.push({func:Us,args:[y],thisArg:r}),new mn(a,this.__chain__).thru(function(S){return t&&!S.length&&S.push(r),S}))});function Z2(){return $h(this)}function K2(){return new mn(this.value(),this.__chain__)}function Q2(){this.__values__===r&&(this.__values__=Zh(this.value()));var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}}function J2(){return this}function X2(e){for(var t,o=this;o instanceof As;){var a=Dh(o);a.__index__=0,a.__values__=r,t?y.__wrapped__=a:t=a;var y=a;o=o.__wrapped__}return y.__wrapped__=e,t}function ew(){var e=this.__wrapped__;if(e instanceof Qe){var t=e;return this.__actions__.length&&(t=new Qe(this)),t=t.reverse(),t.__actions__.push({func:Us,args:[Nu],thisArg:r}),new mn(t,this.__chain__)}return this.thru(Nu)}function tw(){return Qf(this.__wrapped__,this.__actions__)}var nw=Ls(function(e,t,o){ot.call(e,o)?++e[o]:Gn(e,o,1)});function rw(e,t,o){var a=We(e)?cf:Gm;return o&&zt(e,t,o)&&(t=r),a(e,Ne(t,3))}function iw(e,t){var o=We(e)?yr:If;return o(e,Ne(t,3))}var ow=uh(Eh),sw=uh(Mh);function aw(e,t){return It(zs(e,t),1)}function uw(e,t){return It(zs(e,t),v)}function lw(e,t,o){return o=o===r?1:Ye(o),It(zs(e,t),o)}function Ph(e,t){var o=We(e)?gn:xr;return o(e,Ne(t,3))}function Nh(e,t){var o=We(e)?Dv:kf;return o(e,Ne(t,3))}var cw=Ls(function(e,t,o){ot.call(e,o)?e[o].push(t):Gn(e,o,[t])});function fw(e,t,o,a){e=Vt(e)?e:Ci(e),o=o&&!a?Ye(o):0;var y=e.length;return o<0&&(o=Ot(y+o,0)),Hs(e)?o<=y&&e.indexOf(t,o)>-1:!!y&&hi(e,t,o)>-1}var hw=Ve(function(e,t,o){var a=-1,y=typeof t=="function",S=Vt(e)?oe(e.length):[];return xr(e,function($){S[++a]=y?tn(t,$,o):lo($,t,o)}),S}),dw=Ls(function(e,t,o){Gn(e,o,t)});function zs(e,t){var o=We(e)?gt:Uf;return o(e,Ne(t,3))}function pw(e,t,o,a){return e==null?[]:(We(t)||(t=t==null?[]:[t]),o=a?r:o,We(o)||(o=o==null?[]:[o]),Yf(e,t,o))}var gw=Ls(function(e,t,o){e[o?0:1].push(t)},function(){return[[],[]]});function vw(e,t,o){var a=We(e)?Ka:pf,y=arguments.length<3;return a(e,Ne(t,4),o,y,xr)}function mw(e,t,o){var a=We(e)?Ev:pf,y=arguments.length<3;return a(e,Ne(t,4),o,y,kf)}function yw(e,t){var o=We(e)?yr:If;return o(e,Ys(Ne(t,3)))}function ww(e){var t=We(e)?Ef:fy;return t(e)}function _w(e,t,o){(o?zt(e,t,o):t===r)?t=1:t=Ye(t);var a=We(e)?Fm:hy;return a(e,t)}function bw(e){var t=We(e)?Wm:py;return t(e)}function xw(e){if(e==null)return 0;if(Vt(e))return Hs(e)?pi(e):e.length;var t=Pt(e);return t==W||t==P?e.size:gu(e).length}function Sw(e,t,o){var a=We(e)?Qa:gy;return o&&zt(e,t,o)&&(t=r),a(e,Ne(t,3))}var Cw=Ve(function(e,t){if(e==null)return[];var o=t.length;return o>1&&zt(e,t[0],t[1])?t=[]:o>2&&zt(t[0],t[1],t[2])&&(t=[t[0]]),Yf(e,It(t,1),[])}),Fs=im||function(){return kt.Date.now()};function Aw(e,t){if(typeof t!="function")throw new vn(f);return e=Ye(e),function(){if(--e<1)return t.apply(this,arguments)}}function Bh(e,t,o){return t=o?r:t,t=e&&t==null?e.length:t,Vn(e,ee,r,r,r,r,t)}function jh(e,t){var o;if(typeof t!="function")throw new vn(f);return e=Ye(e),function(){return--e>0&&(o=t.apply(this,arguments)),e<=1&&(t=r),o}}var ju=Ve(function(e,t,o){var a=N;if(o.length){var y=_r(o,xi(ju));a|=H}return Vn(e,a,t,o,y)}),Uh=Ve(function(e,t,o){var a=N|Q;if(o.length){var y=_r(o,xi(Uh));a|=H}return Vn(t,a,e,o,y)});function zh(e,t,o){t=o?r:t;var a=Vn(e,X,r,r,r,r,r,t);return a.placeholder=zh.placeholder,a}function Fh(e,t,o){t=o?r:t;var a=Vn(e,ae,r,r,r,r,r,t);return a.placeholder=Fh.placeholder,a}function Wh(e,t,o){var a,y,S,$,F,V,ge=0,ve=!1,_e=!1,Ee=!0;if(typeof e!="function")throw new vn(f);t=bn(t)||0,vt(o)&&(ve=!!o.leading,_e="maxWait"in o,S=_e?Ot(bn(o.maxWait)||0,t):S,Ee="trailing"in o?!!o.trailing:Ee);function $e(_t){var Dn=a,Xn=y;return a=y=r,ge=_t,$=e.apply(Xn,Dn),$}function Be(_t){return ge=_t,F=go(Ke,t),ve?$e(_t):$}function qe(_t){var Dn=_t-V,Xn=_t-ge,ud=t-Dn;return _e?$t(ud,S-Xn):ud}function je(_t){var Dn=_t-V,Xn=_t-ge;return V===r||Dn>=t||Dn<0||_e&&Xn>=S}function Ke(){var _t=Fs();if(je(_t))return Xe(_t);F=go(Ke,qe(_t))}function Xe(_t){return F=r,Ee&&a?$e(_t):(a=y=r,$)}function sn(){F!==r&&Xf(F),ge=0,a=V=y=F=r}function Ft(){return F===r?$:Xe(Fs())}function an(){var _t=Fs(),Dn=je(_t);if(a=arguments,y=this,V=_t,Dn){if(F===r)return Be(V);if(_e)return Xf(F),F=go(Ke,t),$e(V)}return F===r&&(F=go(Ke,t)),$}return an.cancel=sn,an.flush=Ft,an}var Ow=Ve(function(e,t){return Lf(e,1,t)}),Tw=Ve(function(e,t,o){return Lf(e,bn(t)||0,o)});function Dw(e){return Vn(e,se)}function Ws(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new vn(f);var o=function(){var a=arguments,y=t?t.apply(this,a):a[0],S=o.cache;if(S.has(y))return S.get(y);var $=e.apply(this,a);return o.cache=S.set(y,$)||S,$};return o.cache=new(Ws.Cache||Hn),o}Ws.Cache=Hn;function Ys(e){if(typeof e!="function")throw new vn(f);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Ew(e){return jh(2,e)}var Mw=vy(function(e,t){t=t.length==1&&We(t[0])?gt(t[0],nn(Ne())):gt(It(t,1),nn(Ne()));var o=t.length;return Ve(function(a){for(var y=-1,S=$t(a.length,o);++y<S;)a[y]=t[y].call(this,a[y]);return tn(e,this,a)})}),Uu=Ve(function(e,t){var o=_r(t,xi(Uu));return Vn(e,H,r,t,o)}),Yh=Ve(function(e,t){var o=_r(t,xi(Yh));return Vn(e,fe,r,t,o)}),Rw=Zn(function(e,t){return Vn(e,re,r,r,r,t)});function Lw(e,t){if(typeof e!="function")throw new vn(f);return t=t===r?t:Ye(t),Ve(e,t)}function kw(e,t){if(typeof e!="function")throw new vn(f);return t=t==null?0:Ot(Ye(t),0),Ve(function(o){var a=o[t],y=Ar(o,0,t);return a&&wr(y,a),tn(e,this,y)})}function Iw(e,t,o){var a=!0,y=!0;if(typeof e!="function")throw new vn(f);return vt(o)&&(a="leading"in o?!!o.leading:a,y="trailing"in o?!!o.trailing:y),Wh(e,t,{leading:a,maxWait:t,trailing:y})}function $w(e){return Bh(e,1)}function Pw(e,t){return Uu(Cu(t),e)}function Nw(){if(!arguments.length)return[];var e=arguments[0];return We(e)?e:[e]}function Bw(e){return yn(e,M)}function jw(e,t){return t=typeof t=="function"?t:r,yn(e,M,t)}function Uw(e){return yn(e,L|M)}function zw(e,t){return t=typeof t=="function"?t:r,yn(e,L|M,t)}function Fw(e,t){return t==null||Rf(e,t,Et(t))}function Tn(e,t){return e===t||e!==e&&t!==t}var Ww=Ps(hu),Yw=Ps(function(e,t){return e>=t}),Vr=Nf(function(){return arguments}())?Nf:function(e){return yt(e)&&ot.call(e,"callee")&&!Sf.call(e,"callee")},We=oe.isArray,qw=rf?nn(rf):Xm;function Vt(e){return e!=null&&qs(e.length)&&!Qn(e)}function wt(e){return yt(e)&&Vt(e)}function Hw(e){return e===!0||e===!1||yt(e)&&Ut(e)==J}var Or=sm||Qu,Gw=of?nn(of):ey;function Vw(e){return yt(e)&&e.nodeType===1&&!vo(e)}function Zw(e){if(e==null)return!0;if(Vt(e)&&(We(e)||typeof e=="string"||typeof e.splice=="function"||Or(e)||Si(e)||Vr(e)))return!e.length;var t=Pt(e);if(t==W||t==P)return!e.size;if(po(e))return!gu(e).length;for(var o in e)if(ot.call(e,o))return!1;return!0}function Kw(e,t){return co(e,t)}function Qw(e,t,o){o=typeof o=="function"?o:r;var a=o?o(e,t):r;return a===r?co(e,t,r,o):!!a}function zu(e){if(!yt(e))return!1;var t=Ut(e);return t==be||t==Ce||typeof e.message=="string"&&typeof e.name=="string"&&!vo(e)}function Jw(e){return typeof e=="number"&&Af(e)}function Qn(e){if(!vt(e))return!1;var t=Ut(e);return t==z||t==q||t==we||t==h}function qh(e){return typeof e=="number"&&e==Ye(e)}function qs(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=d}function vt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function yt(e){return e!=null&&typeof e=="object"}var Hh=sf?nn(sf):ny;function Xw(e,t){return e===t||pu(e,t,Ru(t))}function e_(e,t,o){return o=typeof o=="function"?o:r,pu(e,t,Ru(t),o)}function t_(e){return Gh(e)&&e!=+e}function n_(e){if(jy(e))throw new Fe(p);return Bf(e)}function r_(e){return e===null}function i_(e){return e==null}function Gh(e){return typeof e=="number"||yt(e)&&Ut(e)==K}function vo(e){if(!yt(e)||Ut(e)!=Te)return!1;var t=ys(e);if(t===null)return!0;var o=ot.call(t,"constructor")&&t.constructor;return typeof o=="function"&&o instanceof o&&ps.call(o)==em}var Fu=af?nn(af):ry;function o_(e){return qh(e)&&e>=-9007199254740991&&e<=d}var Vh=uf?nn(uf):iy;function Hs(e){return typeof e=="string"||!We(e)&&yt(e)&&Ut(e)==U}function on(e){return typeof e=="symbol"||yt(e)&&Ut(e)==ne}var Si=lf?nn(lf):oy;function s_(e){return e===r}function a_(e){return yt(e)&&Pt(e)==De}function u_(e){return yt(e)&&Ut(e)==Re}var l_=Ps(vu),c_=Ps(function(e,t){return e<=t});function Zh(e){if(!e)return[];if(Vt(e))return Hs(e)?An(e):Gt(e);if(no&&e[no])return Fv(e[no]());var t=Pt(e),o=t==W?ru:t==P?fs:Ci;return o(e)}function Jn(e){if(!e)return e===0?e:0;if(e=bn(e),e===v||e===-1/0){var t=e<0?-1:1;return t*_}return e===e?e:0}function Ye(e){var t=Jn(e),o=t%1;return t===t?o?t-o:t:0}function Kh(e){return e?Yr(Ye(e),0,m):0}function bn(e){if(typeof e=="number")return e;if(on(e))return g;if(vt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=vt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=gf(e);var o=jn.test(e);return o||Ir.test(e)?Av(e.slice(2),o?2:8):Ht.test(e)?g:+e}function Qh(e){return In(e,Zt(e))}function f_(e){return e?Yr(Ye(e),-9007199254740991,d):e===0?e:0}function it(e){return e==null?"":rn(e)}var h_=_i(function(e,t){if(po(t)||Vt(t)){In(t,Et(t),e);return}for(var o in t)ot.call(t,o)&&ao(e,o,t[o])}),Jh=_i(function(e,t){In(t,Zt(t),e)}),Gs=_i(function(e,t,o,a){In(t,Zt(t),e,a)}),d_=_i(function(e,t,o,a){In(t,Et(t),e,a)}),p_=Zn(lu);function g_(e,t){var o=wi(e);return t==null?o:Mf(o,t)}var v_=Ve(function(e,t){e=ut(e);var o=-1,a=t.length,y=a>2?t[2]:r;for(y&&zt(t[0],t[1],y)&&(a=1);++o<a;)for(var S=t[o],$=Zt(S),F=-1,V=$.length;++F<V;){var ge=$[F],ve=e[ge];(ve===r||Tn(ve,vi[ge])&&!ot.call(e,ge))&&(e[ge]=S[ge])}return e}),m_=Ve(function(e){return e.push(r,gh),tn(Xh,r,e)});function y_(e,t){return ff(e,Ne(t,3),kn)}function w_(e,t){return ff(e,Ne(t,3),fu)}function __(e,t){return e==null?e:cu(e,Ne(t,3),Zt)}function b_(e,t){return e==null?e:$f(e,Ne(t,3),Zt)}function x_(e,t){return e&&kn(e,Ne(t,3))}function S_(e,t){return e&&fu(e,Ne(t,3))}function C_(e){return e==null?[]:Ds(e,Et(e))}function A_(e){return e==null?[]:Ds(e,Zt(e))}function Wu(e,t,o){var a=e==null?r:qr(e,t);return a===r?o:a}function O_(e,t){return e!=null&&yh(e,t,Zm)}function Yu(e,t){return e!=null&&yh(e,t,Km)}var T_=ch(function(e,t,o){t!=null&&typeof t.toString!="function"&&(t=gs.call(t)),e[t]=o},Hu(Kt)),D_=ch(function(e,t,o){t!=null&&typeof t.toString!="function"&&(t=gs.call(t)),ot.call(e,t)?e[t].push(o):e[t]=[o]},Ne),E_=Ve(lo);function Et(e){return Vt(e)?Df(e):gu(e)}function Zt(e){return Vt(e)?Df(e,!0):sy(e)}function M_(e,t){var o={};return t=Ne(t,3),kn(e,function(a,y,S){Gn(o,t(a,y,S),a)}),o}function R_(e,t){var o={};return t=Ne(t,3),kn(e,function(a,y,S){Gn(o,y,t(a,y,S))}),o}var L_=_i(function(e,t,o){Es(e,t,o)}),Xh=_i(function(e,t,o,a){Es(e,t,o,a)}),k_=Zn(function(e,t){var o={};if(e==null)return o;var a=!1;t=gt(t,function(S){return S=Cr(S,e),a||(a=S.length>1),S}),In(e,Eu(e),o),a&&(o=yn(o,L|k|M,Ty));for(var y=t.length;y--;)bu(o,t[y]);return o});function I_(e,t){return ed(e,Ys(Ne(t)))}var $_=Zn(function(e,t){return e==null?{}:uy(e,t)});function ed(e,t){if(e==null)return{};var o=gt(Eu(e),function(a){return[a]});return t=Ne(t),qf(e,o,function(a,y){return t(a,y[0])})}function P_(e,t,o){t=Cr(t,e);var a=-1,y=t.length;for(y||(y=1,e=r);++a<y;){var S=e==null?r:e[$n(t[a])];S===r&&(a=y,S=o),e=Qn(S)?S.call(e):S}return e}function N_(e,t,o){return e==null?e:fo(e,t,o)}function B_(e,t,o,a){return a=typeof a=="function"?a:r,e==null?e:fo(e,t,o,a)}var td=dh(Et),nd=dh(Zt);function j_(e,t,o){var a=We(e),y=a||Or(e)||Si(e);if(t=Ne(t,4),o==null){var S=e&&e.constructor;y?o=a?new S:[]:vt(e)?o=Qn(S)?wi(ys(e)):{}:o={}}return(y?gn:kn)(e,function($,F,V){return t(o,$,F,V)}),o}function U_(e,t){return e==null?!0:bu(e,t)}function z_(e,t,o){return e==null?e:Kf(e,t,Cu(o))}function F_(e,t,o,a){return a=typeof a=="function"?a:r,e==null?e:Kf(e,t,Cu(o),a)}function Ci(e){return e==null?[]:nu(e,Et(e))}function W_(e){return e==null?[]:nu(e,Zt(e))}function Y_(e,t,o){return o===r&&(o=t,t=r),o!==r&&(o=bn(o),o=o===o?o:0),t!==r&&(t=bn(t),t=t===t?t:0),Yr(bn(e),t,o)}function q_(e,t,o){return t=Jn(t),o===r?(o=t,t=0):o=Jn(o),e=bn(e),Qm(e,t,o)}function H_(e,t,o){if(o&&typeof o!="boolean"&&zt(e,t,o)&&(t=o=r),o===r&&(typeof t=="boolean"?(o=t,t=r):typeof e=="boolean"&&(o=e,e=r)),e===r&&t===r?(e=0,t=1):(e=Jn(e),t===r?(t=e,e=0):t=Jn(t)),e>t){var a=e;e=t,t=a}if(o||e%1||t%1){var y=Of();return $t(e+y*(t-e+Cv("1e-"+((y+"").length-1))),t)}return yu(e,t)}var G_=bi(function(e,t,o){return t=t.toLowerCase(),e+(o?rd(t):t)});function rd(e){return qu(it(e).toLowerCase())}function id(e){return e=it(e),e&&e.replace(Ba,Nv).replace(dn,"")}function V_(e,t,o){e=it(e),t=rn(t);var a=e.length;o=o===r?a:Yr(Ye(o),0,a);var y=o;return o-=t.length,o>=0&&e.slice(o,y)==t}function Z_(e){return e=it(e),e&&Rn.test(e)?e.replace(Jt,Bv):e}function K_(e){return e=it(e),e&&ui.test(e)?e.replace(fr,"\\$&"):e}var Q_=bi(function(e,t,o){return e+(o?"-":"")+t.toLowerCase()}),J_=bi(function(e,t,o){return e+(o?" ":"")+t.toLowerCase()}),X_=ah("toLowerCase");function eb(e,t,o){e=it(e),t=Ye(t);var a=t?pi(e):0;if(!t||a>=t)return e;var y=(t-a)/2;return $s(xs(y),o)+e+$s(bs(y),o)}function tb(e,t,o){e=it(e),t=Ye(t);var a=t?pi(e):0;return t&&a<t?e+$s(t-a,o):e}function nb(e,t,o){e=it(e),t=Ye(t);var a=t?pi(e):0;return t&&a<t?$s(t-a,o)+e:e}function rb(e,t,o){return o||t==null?t=0:t&&(t=+t),cm(it(e).replace(Wi,""),t||0)}function ib(e,t,o){return(o?zt(e,t,o):t===r)?t=1:t=Ye(t),wu(it(e),t)}function ob(){var e=arguments,t=it(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var sb=bi(function(e,t,o){return e+(o?"_":"")+t.toLowerCase()});function ab(e,t,o){return o&&typeof o!="number"&&zt(e,t,o)&&(t=o=r),o=o===r?m:o>>>0,o?(e=it(e),e&&(typeof t=="string"||t!=null&&!Fu(t))&&(t=rn(t),!t&&di(e))?Ar(An(e),0,o):e.split(t,o)):[]}var ub=bi(function(e,t,o){return e+(o?" ":"")+qu(t)});function lb(e,t,o){return e=it(e),o=o==null?0:Yr(Ye(o),0,e.length),t=rn(t),e.slice(o,o+t.length)==t}function cb(e,t,o){var a=x.templateSettings;o&&zt(e,t,o)&&(t=r),e=it(e),t=Gs({},t,a,ph);var y=Gs({},t.imports,a.imports,ph),S=Et(y),$=nu(y,S),F,V,ge=0,ve=t.interpolate||hr,_e="__p += '",Ee=iu((t.escape||hr).source+"|"+ve.source+"|"+(ve===at?Yi:hr).source+"|"+(t.evaluate||hr).source+"|$","g"),$e="//# sourceURL="+(ot.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++wv+"]")+`
127
+ `;e.replace(Ee,function(je,Ke,Xe,sn,Ft,an){return Xe||(Xe=sn),_e+=e.slice(ge,an).replace(ja,jv),Ke&&(F=!0,_e+=`' +
128
128
  __e(`+Ke+`) +
129
129
  '`),Ft&&(V=!0,_e+=`';
130
130
  `+Ft+`;
@@ -140,5 +140,5 @@ __p += '`),Xe&&(_e+=`' +
140
140
  function print() { __p += __j.call(arguments, '') }
141
141
  `:`;
142
142
  `)+_e+`return __p
143
- }`;var qe=sd(function(){return nt(S,$e+"return "+_e).apply(r,$)});if(qe.source=_e,zu(qe))throw qe;return qe}function hb(e){return it(e).toLowerCase()}function db(e){return it(e).toUpperCase()}function pb(e,t,o){if(e=it(e),e&&(o||t===r))return gf(e);if(!e||!(t=rn(t)))return e;var a=An(e),y=An(t),S=vf(a,y),$=mf(a,y)+1;return Ar(a,S,$).join("")}function gb(e,t,o){if(e=it(e),e&&(o||t===r))return e.slice(0,wf(e)+1);if(!e||!(t=rn(t)))return e;var a=An(e),y=mf(a,An(t))+1;return Ar(a,0,y).join("")}function vb(e,t,o){if(e=it(e),e&&(o||t===r))return e.replace(Wi,"");if(!e||!(t=rn(t)))return e;var a=An(e),y=vf(a,An(t));return Ar(a,y).join("")}function mb(e,t){var o=pe,a=ie;if(vt(t)){var y="separator"in t?t.separator:y;o="length"in t?Ye(t.length):o,a="omission"in t?rn(t.omission):a}e=it(e);var S=e.length;if(di(e)){var $=An(e);S=$.length}if(o>=S)return e;var F=o-pi(a);if(F<1)return a;var V=$?Ar($,0,F).join(""):e.slice(0,F);if(y===r)return V+a;if($&&(F+=V.length-F),Fu(y)){if(e.slice(F).search(y)){var ge,ve=V;for(y.global||(y=iu(y.source,it(qi.exec(y))+"g")),y.lastIndex=0;ge=y.exec(ve);)var _e=ge.index;V=V.slice(0,_e===r?F:_e)}}else if(e.indexOf(rn(y),F)!=F){var Ee=V.lastIndexOf(y);Ee>-1&&(V=V.slice(0,Ee))}return V+a}function yb(e){return e=it(e),e&&hn.test(e)?e.replace(Qt,Gv):e}var wb=bi(function(e,t,o){return e+(o?" ":"")+t.toUpperCase()}),qu=ah("toUpperCase");function od(e,t,o){return e=it(e),t=o?r:t,t===r?Fv(e)?Kv(e):kv(e):e.match(t)||[]}var sd=Ve(function(e,t){try{return tn(e,r,t)}catch(o){return zu(o)?o:new Fe(o)}}),_b=Zn(function(e,t){return gn(t,function(o){o=$n(o),Gn(e,o,ju(e[o],e))}),e});function bb(e){var t=e==null?0:e.length,o=Ne();return e=t?gt(e,function(a){if(typeof a[1]!="function")throw new vn(h);return[o(a[0]),a[1]]}):[],Ve(function(a){for(var y=-1;++y<t;){var S=e[y];if(tn(S[0],this,a))return tn(S[1],this,a)}})}function xb(e){return Gm(yn(e,L))}function Hu(e){return function(){return e}}function Sb(e,t){return e==null||e!==e?t:e}var Cb=lh(),Ab=lh(!0);function Kt(e){return e}function Gu(e){return jf(typeof e=="function"?e:yn(e,L))}function Ob(e){return zf(yn(e,L))}function Tb(e,t){return Ff(e,yn(t,L))}var Db=Ve(function(e,t){return function(o){return lo(o,e,t)}}),Eb=Ve(function(e,t){return function(o){return lo(e,o,t)}});function Vu(e,t,o){var a=Et(t),y=Ds(t,a);o==null&&!(vt(t)&&(y.length||!a.length))&&(o=t,t=e,e=this,y=Ds(t,Et(t)));var S=!(vt(o)&&"chain"in o)||!!o.chain,$=Qn(e);return gn(y,function(F){var V=t[F];e[F]=V,$&&(e.prototype[F]=function(){var ge=this.__chain__;if(S||ge){var ve=e(this.__wrapped__),_e=ve.__actions__=Gt(this.__actions__);return _e.push({func:V,args:arguments,thisArg:e}),ve.__chain__=ge,ve}return V.apply(e,wr([this.value()],arguments))})}),e}function Mb(){return kt._===this&&(kt._=nm),this}function Zu(){}function Rb(e){return e=Ye(e),Ve(function(t){return Wf(t,e)})}var Lb=Ou(gt),kb=Ou(cf),Ib=Ou(Qa);function ad(e){return ku(e)?Ja($n(e)):cy(e)}function $b(e){return function(t){return e==null?r:qr(e,t)}}var Pb=fh(),Nb=fh(!0);function Ku(){return[]}function Qu(){return!1}function Bb(){return{}}function jb(){return""}function Ub(){return!0}function zb(e,t){if(e=Ye(e),e<1||e>f)return[];var o=m,a=$t(e,m);t=Ne(t),e-=m;for(var y=tu(a,t);++o<e;)t(o);return y}function Fb(e){return We(e)?gt(e,$n):on(e)?[e]:Gt(Th(it(e)))}function Wb(e){var t=++em;return it(e)+t}var Yb=Is(function(e,t){return e+t},0),qb=Tu("ceil"),Hb=Is(function(e,t){return e/t},1),Gb=Tu("floor");function Vb(e){return e&&e.length?Ts(e,Kt,hu):r}function Zb(e,t){return e&&e.length?Ts(e,Ne(t,2),hu):r}function Kb(e){return df(e,Kt)}function Qb(e,t){return df(e,Ne(t,2))}function Jb(e){return e&&e.length?Ts(e,Kt,vu):r}function Xb(e,t){return e&&e.length?Ts(e,Ne(t,2),vu):r}var ex=Is(function(e,t){return e*t},1),tx=Tu("round"),nx=Is(function(e,t){return e-t},0);function rx(e){return e&&e.length?eu(e,Kt):0}function ix(e,t){return e&&e.length?eu(e,Ne(t,2)):0}return x.after=Ow,x.ary=Bh,x.assign=d_,x.assignIn=Jh,x.assignInWith=Gs,x.assignWith=p_,x.at=g_,x.before=jh,x.bind=ju,x.bindAll=_b,x.bindKey=Uh,x.castArray=Bw,x.chain=$h,x.chunk=Gy,x.compact=Vy,x.concat=Zy,x.cond=bb,x.conforms=xb,x.constant=Hu,x.countBy=rw,x.create=v_,x.curry=zh,x.curryRight=Fh,x.debounce=Wh,x.defaults=m_,x.defaultsDeep=y_,x.defer=Tw,x.delay=Dw,x.difference=Ky,x.differenceBy=Qy,x.differenceWith=Jy,x.drop=Xy,x.dropRight=e2,x.dropRightWhile=t2,x.dropWhile=n2,x.fill=r2,x.filter=ow,x.flatMap=uw,x.flatMapDeep=lw,x.flatMapDepth=cw,x.flatten=Rh,x.flattenDeep=i2,x.flattenDepth=o2,x.flip=Ew,x.flow=Cb,x.flowRight=Ab,x.fromPairs=s2,x.functions=A_,x.functionsIn=O_,x.groupBy=fw,x.initial=u2,x.intersection=l2,x.intersectionBy=c2,x.intersectionWith=f2,x.invert=D_,x.invertBy=E_,x.invokeMap=dw,x.iteratee=Gu,x.keyBy=pw,x.keys=Et,x.keysIn=Zt,x.map=zs,x.mapKeys=R_,x.mapValues=L_,x.matches=Ob,x.matchesProperty=Tb,x.memoize=Ws,x.merge=k_,x.mergeWith=Xh,x.method=Db,x.methodOf=Eb,x.mixin=Vu,x.negate=Ys,x.nthArg=Rb,x.omit=I_,x.omitBy=$_,x.once=Mw,x.orderBy=gw,x.over=Lb,x.overArgs=Rw,x.overEvery=kb,x.overSome=Ib,x.partial=Uu,x.partialRight=Yh,x.partition=vw,x.pick=P_,x.pickBy=ed,x.property=ad,x.propertyOf=$b,x.pull=g2,x.pullAll=kh,x.pullAllBy=v2,x.pullAllWith=m2,x.pullAt=y2,x.range=Pb,x.rangeRight=Nb,x.rearg=Lw,x.reject=ww,x.remove=w2,x.rest=kw,x.reverse=Nu,x.sampleSize=bw,x.set=B_,x.setWith=j_,x.shuffle=xw,x.slice=_2,x.sortBy=Aw,x.sortedUniq=T2,x.sortedUniqBy=D2,x.split=ub,x.spread=Iw,x.tail=E2,x.take=M2,x.takeRight=R2,x.takeRightWhile=L2,x.takeWhile=k2,x.tap=V2,x.throttle=$w,x.thru=Us,x.toArray=Zh,x.toPairs=td,x.toPairsIn=nd,x.toPath=Fb,x.toPlainObject=Qh,x.transform=U_,x.unary=Pw,x.union=I2,x.unionBy=$2,x.unionWith=P2,x.uniq=N2,x.uniqBy=B2,x.uniqWith=j2,x.unset=z_,x.unzip=Bu,x.unzipWith=Ih,x.update=F_,x.updateWith=W_,x.values=Ci,x.valuesIn=Y_,x.without=U2,x.words=od,x.wrap=Nw,x.xor=z2,x.xorBy=F2,x.xorWith=W2,x.zip=Y2,x.zipObject=q2,x.zipObjectDeep=H2,x.zipWith=G2,x.entries=td,x.entriesIn=nd,x.extend=Jh,x.extendWith=Gs,Vu(x,x),x.add=Yb,x.attempt=sd,x.camelCase=V_,x.capitalize=rd,x.ceil=qb,x.clamp=q_,x.clone=jw,x.cloneDeep=zw,x.cloneDeepWith=Fw,x.cloneWith=Uw,x.conformsTo=Ww,x.deburr=id,x.defaultTo=Sb,x.divide=Hb,x.endsWith=Z_,x.eq=Tn,x.escape=K_,x.escapeRegExp=Q_,x.every=iw,x.find=sw,x.findIndex=Eh,x.findKey=w_,x.findLast=aw,x.findLastIndex=Mh,x.findLastKey=__,x.floor=Gb,x.forEach=Ph,x.forEachRight=Nh,x.forIn=b_,x.forInRight=x_,x.forOwn=S_,x.forOwnRight=C_,x.get=Wu,x.gt=Yw,x.gte=qw,x.has=T_,x.hasIn=Yu,x.head=Lh,x.identity=Kt,x.includes=hw,x.indexOf=a2,x.inRange=H_,x.invoke=M_,x.isArguments=Vr,x.isArray=We,x.isArrayBuffer=Hw,x.isArrayLike=Vt,x.isArrayLikeObject=wt,x.isBoolean=Gw,x.isBuffer=Or,x.isDate=Vw,x.isElement=Zw,x.isEmpty=Kw,x.isEqual=Qw,x.isEqualWith=Jw,x.isError=zu,x.isFinite=Xw,x.isFunction=Qn,x.isInteger=qh,x.isLength=qs,x.isMap=Hh,x.isMatch=e_,x.isMatchWith=t_,x.isNaN=n_,x.isNative=r_,x.isNil=o_,x.isNull=i_,x.isNumber=Gh,x.isObject=vt,x.isObjectLike=yt,x.isPlainObject=vo,x.isRegExp=Fu,x.isSafeInteger=s_,x.isSet=Vh,x.isString=Hs,x.isSymbol=on,x.isTypedArray=Si,x.isUndefined=a_,x.isWeakMap=u_,x.isWeakSet=l_,x.join=h2,x.kebabCase=J_,x.last=_n,x.lastIndexOf=d2,x.lowerCase=X_,x.lowerFirst=eb,x.lt=c_,x.lte=f_,x.max=Vb,x.maxBy=Zb,x.mean=Kb,x.meanBy=Qb,x.min=Jb,x.minBy=Xb,x.stubArray=Ku,x.stubFalse=Qu,x.stubObject=Bb,x.stubString=jb,x.stubTrue=Ub,x.multiply=ex,x.nth=p2,x.noConflict=Mb,x.noop=Zu,x.now=Fs,x.pad=tb,x.padEnd=nb,x.padStart=rb,x.parseInt=ib,x.random=G_,x.reduce=mw,x.reduceRight=yw,x.repeat=ob,x.replace=sb,x.result=N_,x.round=tx,x.runInContext=H,x.sample=_w,x.size=Sw,x.snakeCase=ab,x.some=Cw,x.sortedIndex=b2,x.sortedIndexBy=x2,x.sortedIndexOf=S2,x.sortedLastIndex=C2,x.sortedLastIndexBy=A2,x.sortedLastIndexOf=O2,x.startCase=lb,x.startsWith=cb,x.subtract=nx,x.sum=rx,x.sumBy=ix,x.template=fb,x.times=zb,x.toFinite=Jn,x.toInteger=Ye,x.toLength=Kh,x.toLower=hb,x.toNumber=bn,x.toSafeInteger=h_,x.toString=it,x.toUpper=db,x.trim=pb,x.trimEnd=gb,x.trimStart=vb,x.truncate=mb,x.unescape=yb,x.uniqueId=Wb,x.upperCase=wb,x.upperFirst=qu,x.each=Ph,x.eachRight=Nh,x.first=Lh,Vu(x,function(){var e={};return kn(x,function(t,o){ot.call(x.prototype,o)||(e[o]=t)}),e}(),{chain:!1}),x.VERSION=s,gn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){x[e].placeholder=x}),gn(["drop","take"],function(e,t){Qe.prototype[e]=function(o){o=o===r?1:Ot(Ye(o),0);var a=this.__filtered__&&!t?new Qe(this):this.clone();return a.__filtered__?a.__takeCount__=$t(o,a.__takeCount__):a.__views__.push({size:$t(o,m),type:e+(a.__dir__<0?"Right":"")}),a},Qe.prototype[e+"Right"]=function(o){return this.reverse()[e](o).reverse()}}),gn(["filter","map","takeWhile"],function(e,t){var o=t+1,a=o==j||o==T;Qe.prototype[e]=function(y){var S=this.clone();return S.__iteratees__.push({iteratee:Ne(y,3),type:o}),S.__filtered__=S.__filtered__||a,S}}),gn(["head","last"],function(e,t){var o="take"+(t?"Right":"");Qe.prototype[e]=function(){return this[o](1).value()[0]}}),gn(["initial","tail"],function(e,t){var o="drop"+(t?"":"Right");Qe.prototype[e]=function(){return this.__filtered__?new Qe(this):this[o](1)}}),Qe.prototype.compact=function(){return this.filter(Kt)},Qe.prototype.find=function(e){return this.filter(e).head()},Qe.prototype.findLast=function(e){return this.reverse().find(e)},Qe.prototype.invokeMap=Ve(function(e,t){return typeof e=="function"?new Qe(this):this.map(function(o){return lo(o,e,t)})}),Qe.prototype.reject=function(e){return this.filter(Ys(Ne(e)))},Qe.prototype.slice=function(e,t){e=Ye(e);var o=this;return o.__filtered__&&(e>0||t<0)?new Qe(o):(e<0?o=o.takeRight(-e):e&&(o=o.drop(e)),t!==r&&(t=Ye(t),o=t<0?o.dropRight(-t):o.take(t-e)),o)},Qe.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Qe.prototype.toArray=function(){return this.take(m)},kn(Qe.prototype,function(e,t){var o=/^(?:filter|find|map|reject)|While$/.test(t),a=/^(?:head|last)$/.test(t),y=x[a?"take"+(t=="last"?"Right":""):t],S=a||/^find/.test(t);y&&(x.prototype[t]=function(){var $=this.__wrapped__,F=a?[1]:arguments,V=$ instanceof Qe,ge=F[0],ve=V||We($),_e=function(Ke){var Xe=y.apply(x,wr([Ke],F));return a&&Ee?Xe[0]:Xe};ve&&o&&typeof ge=="function"&&ge.length!=1&&(V=ve=!1);var Ee=this.__chain__,$e=!!this.__actions__.length,Be=S&&!Ee,qe=V&&!$e;if(!S&&ve){$=qe?$:new Qe(this);var je=e.apply($,F);return je.__actions__.push({func:Us,args:[_e],thisArg:r}),new mn(je,Ee)}return Be&&qe?e.apply(this,F):(je=this.thru(_e),Be?a?je.value()[0]:je.value():je)})}),gn(["pop","push","shift","sort","splice","unshift"],function(e){var t=hs[e],o=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);x.prototype[e]=function(){var y=arguments;if(a&&!this.__chain__){var S=this.value();return t.apply(We(S)?S:[],y)}return this[o](function($){return t.apply(We($)?$:[],y)})}}),kn(Qe.prototype,function(e,t){var o=x[t];if(o){var a=o.name+"";ot.call(yi,a)||(yi[a]=[]),yi[a].push({name:t,func:o})}}),yi[ks(r,Q).name]=[{name:"wrapper",func:r}],Qe.prototype.clone=ym,Qe.prototype.reverse=wm,Qe.prototype.value=_m,x.prototype.at=Z2,x.prototype.chain=K2,x.prototype.commit=Q2,x.prototype.next=J2,x.prototype.plant=ew,x.prototype.reverse=tw,x.prototype.toJSON=x.prototype.valueOf=x.prototype.value=nw,x.prototype.first=x.prototype.head,no&&(x.prototype[no]=X2),x},gi=Qv();Ur?((Ur.exports=gi)._=gi,Ga._=gi):kt._=gi}).call(Q0)}(Ui,Ui.exports)),Ui.exports}var Kc=J0();function X0(i){const n=un.c(40),{fields:r,onClose:s,queryKey:l,apiPath:g,id:h,steps:c}=i,[b,C]=ye.useState(0),[O,L]=ye.useState(!1),{data:k,isLoading:M}=yc(g,l,h),{mutateAsync:R,isError:E,error:N,isPending:Q}=xa(g,l);let te;n[0]!==r?(te=new Set(r.filter(sv).map(ov)),n[0]=r,n[1]=te):te=n[1];let ee;n[2]!==te?(ee=[...te],n[2]=te,n[3]=ee):ee=n[3];const ue=ee;let G;n[4]!==r?(G=r.reduce(iv,{}),n[4]=r,n[5]=G):G=n[5];let de;n[6]!==r?(de=r.filter(rv).reduce(tv,{}),n[6]=r,n[7]=de):de=n[7];let ne;n[8]!==G||n[9]!==de?(ne={mode:"uncontrolled",initialValues:G,validate:de},n[8]=G,n[9]=de,n[10]=ne):ne=n[10];const re=Ai.useForm(ne);let se;n[11]!==k||n[12]!==r||n[13]!==re?(se=()=>{if(k){const T=r.reduce((p,f)=>{const _=f.id;return p[_]=Array.isArray(k[_])?k[_]:f.type==="boolean"?k[_]??!1:f.type==="date"?k[_]?new Date(k[_]):"":k[_]??"",p},{});re.initialize(T),re.setValues(T)}},n[11]=k,n[12]=r,n[13]=re,n[14]=se):se=n[14];let pe;n[15]!==k?(pe=[k],n[15]=k,n[16]=pe):pe=n[16],ye.useEffect(se,pe);let ie;n[17]!==re?(ie=function(p){return A.jsxs(ye.Fragment,{children:[(p.type===void 0||p.type=="text")&&A.jsx(B.TextInput,{label:p.column.title,placeholder:p.placeholder??"",...re.getInputProps(p.id),type:p.id.includes("email")?"email":void 0},re.key(p.id)),p.type==="number"&&A.jsx(B.NumberInput,{decimalSeparator:",",label:p.column.title,placeholder:p.placeholder??"",...re.getInputProps(p.id)},re.key(p.id)),p.type==="date"&&A.jsx(Vo,{label:p.column.title,placeholder:p.placeholder??"",valueFormat:"DD.MM.YYYY",clearable:!0,...re.getInputProps(p.id)},re.key(p.id)),p.type==="boolean"&&A.jsx(B.Checkbox,{mt:"md",label:p.column.title,...re.getInputProps(p.id,{type:"checkbox"})},re.key(p.id)),p.type==="custom"&&p.render&&p.render(re.getValues(),re.getInputProps(p.id).onChange,L,re.setValues)]},p.id)},n[17]=re,n[18]=ie):ie=n[18];const Ae=ie;let Oe;n[19]!==E||n[20]!==(N==null?void 0:N.message)||n[21]!==(N==null?void 0:N.name)?(Oe=E&&A.jsx(B.Alert,{variant:"outline",color:"red",title:(N==null?void 0:N.name)??"Fehler aufgetreten",mb:"lg",children:(N==null?void 0:N.message)??"Fehler aufgetreten"}),n[19]=E,n[20]=N==null?void 0:N.message,n[21]=N==null?void 0:N.name,n[22]=Oe):Oe=n[22];let j;n[23]!==b||n[24]!==r||n[25]!==re||n[26]!==O||n[27]!==h||n[28]!==M||n[29]!==Q||n[30]!==E||n[31]!==s||n[32]!==Ae||n[33]!==c||n[34]!==ue||n[35]!==R?(j=M?A.jsxs(B.Stack,{gap:"md",children:[A.jsx(B.Skeleton,{height:40}),Array(r.length).fill(0).map(ev),A.jsxs(B.Group,{mt:"md",justify:"end",children:[A.jsx(B.Skeleton,{width:100,height:36}),A.jsx(B.Skeleton,{width:100,height:36})]})]}):A.jsxs("form",{onSubmit:re.onSubmit(async T=>{await R({...T,id:h}),ue.length&&b<ue.length-1?E||C(b+1):E||(re.setInitialValues(T),re.reset(),s())}),children:[ue.length?A.jsx(B.Stepper,{active:b,size:"sm",children:ue.map(T=>A.jsx(B.Stepper.Step,{...c&&c[T-1]?{label:c[T-1].label}:{},children:r.filter(p=>p.step===T).map(p=>Ae(p))},T))}):r.map(T=>Ae(T)),!O&&A.jsxs(B.Group,{mt:"md",justify:"end",children:[A.jsx(B.Button,{onClick:()=>ue.length?b===0?s():C(b-1):s(),variant:"outline",children:ue.length?b===0?"Abbrechen":"Zurück":"Abbrechen"}),A.jsx(B.Button,{type:"submit",loading:Q,children:ue.length?b===ue.length-1?"Speichern":"Weiter":"Speichern"})]})]}),n[23]=b,n[24]=r,n[25]=re,n[26]=O,n[27]=h,n[28]=M,n[29]=Q,n[30]=E,n[31]=s,n[32]=Ae,n[33]=c,n[34]=ue,n[35]=R,n[36]=j):j=n[36];let I;return n[37]!==j||n[38]!==Oe?(I=A.jsxs(A.Fragment,{children:[Oe,j]}),n[37]=j,n[38]=Oe,n[39]=I):I=n[39],I}function ev(i,n){return A.jsx(B.Skeleton,{height:35},`skeleton-field-${n}`)}function tv(i,n){return i[n.id]=nv,i}function nv(i){return i?null:"Pflichtfeld"}function rv(i){return i.required}function iv(i,n){return i[n.id]=n.type==="boolean"?n.defaultValue??!1:n.defaultValue??"",i}function ov(i){return i.step}function sv(i){return typeof i.step=="number"}function av(i){const n=un.c(19),{queryKey:r,apiPath:s,onClose:l,selectedRecords:g}=i,{mutateAsync:h,isError:c,error:b,isPending:C}=bc(s,r),[O,L]=ye.useState(g);let k;n[0]!==l||n[1]!==O.length?(k=()=>{O.length||l()},n[0]=l,n[1]=O.length,n[2]=k):k=n[2];let M;if(n[3]!==l||n[4]!==O?(M=[l,O],n[3]=l,n[4]=O,n[5]=M):M=n[5],ye.useEffect(k,M),!O.length){let Q;return n[6]===Symbol.for("react.memo_cache_sentinel")?(Q=A.jsx(A.Fragment,{}),n[6]=Q):Q=n[6],Q}let R;n[7]!==b||n[8]!==c?(R=c&&b.message&&A.jsx(B.Alert,{variant:"outline",color:"red",title:b.name,children:b.message}),n[7]=b,n[8]=c,n[9]=R):R=n[9];let E;n[10]!==h||n[11]!==C||n[12]!==l||n[13]!==O[0]||n[14]!==g?(E=C?A.jsxs(B.Stack,{gap:"md",children:[A.jsx(B.Skeleton,{height:30,width:"80%"}),A.jsx(B.Skeleton,{height:20,width:"50%"}),A.jsxs(B.Group,{mt:"md",justify:"end",children:[A.jsx(B.Skeleton,{width:100,height:36}),A.jsx(B.Skeleton,{width:100,height:36})]})]}):A.jsxs(A.Fragment,{children:[A.jsxs(B.Text,{children:["Bist du sicher, dass du folgenden Eintrag löschen möchtest?",A.jsx("br",{}),g[0].id]}),A.jsxs(B.Group,{mt:"md",justify:"end",children:[A.jsx(B.Button,{onClick:l,variant:"outline",children:"Abbrechen"}),A.jsx(B.Button,{color:"red",loading:C,onClick:async()=>{await h(O[0].id),L(Q=>Q.filter(te=>te.id!==O[0].id))},children:"Delete"})]})]}),n[10]=h,n[11]=C,n[12]=l,n[13]=O[0],n[14]=g,n[15]=E):E=n[15];let N;return n[16]!==R||n[17]!==E?(N=A.jsxs(A.Fragment,{children:[R,E]}),n[16]=R,n[17]=E,n[18]=N):N=n[18],N}const Xo=10;function uv(i){const n=un.c(122),{title:r,queryKey:s,connectedQueryKeys:l,apiPath:g,buttons:h,fields:c,selection:b,pagination:C,filters:O,actions:L,steps:k,defaultSort:M,createButtonText:R}=i,{data:E,isLoading:N,isError:Q,isRefetching:te,refetch:ee}=wc(g,s);let ue;n[0]===Symbol.for("react.memo_cache_sentinel")?(ue=[],n[0]=ue):ue=n[0];const[G,de]=ye.useState(ue),{queryClient:ne}=nr();let re;n[1]!==E||n[2]!==l||n[3]!==O||n[4]!==ne?(re=()=>{if(!(!E||!Array.isArray(E))){if(l==null||l.forEach(ct=>ne.invalidateQueries({queryKey:ct})),!O||O.length===0){de(E);return}de(E.filter(ct=>O.every(Ct=>{const at=Ct.id;if(Ct.type==="query"&&typeof Ct.value=="string"){const qt=ct[at];return typeof qt=="string"&&qt.includes(Ct.value)}else if(Ct.type==="date"){if(!Ct.value)return!0;const qt=Ct.value,[si,ai]=qt;if(si&&ai){const fr=ct[at];if(typeof fr=="string"){const ui=new Date(fr);return ui>=si&&ui<=ai}}return!0}return!0})))}},n[1]=E,n[2]=l,n[3]=O,n[4]=ne,n[5]=re):re=n[5];let se;n[6]!==E||n[7]!==O?(se=[E,O],n[6]=E,n[7]=O,n[8]=se):se=n[8],ye.useEffect(re,se);const pe=(M==null?void 0:M.field)??c[0].id,ie=(M==null?void 0:M.direction)??"desc";let Ae;n[9]!==pe||n[10]!==ie?(Ae={columnAccessor:pe,direction:ie},n[9]=pe,n[10]=ie,n[11]=Ae):Ae=n[11];const[Oe,j]=ye.useState(Ae);let I;n[12]!==G||n[13]!==(M==null?void 0:M.direction)||n[14]!==(M==null?void 0:M.field)||n[15]!==c[0]?(I=()=>{const ct=Kc.sortBy(G,(M==null?void 0:M.field)??c[0].id);return(M==null?void 0:M.direction)==="asc"?ct:ct.reverse()},n[12]=G,n[13]=M==null?void 0:M.direction,n[14]=M==null?void 0:M.field,n[15]=c[0],n[16]=I):I=n[16];const[T,p]=ye.useState(I);let f;n[17]!==G||n[18]!==Oe.columnAccessor||n[19]!==Oe.direction?(f=()=>{const ct=Kc.sortBy(G,Oe.columnAccessor);p(Oe.direction==="desc"?ct.reverse():ct)},n[17]=G,n[18]=Oe.columnAccessor,n[19]=Oe.direction,n[20]=f):f=n[20];let _;n[21]!==G||n[22]!==Oe?(_=[Oe,G],n[21]=G,n[22]=Oe,n[23]=_):_=n[23],ye.useEffect(f,_);const[v,m]=ye.useState(1);let D;n[24]!==C||n[25]!==T?(D=C?T.slice(0,Xo):T,n[24]=C,n[25]=T,n[26]=D):D=n[26];const[Y,Z]=ye.useState(D);let ce,he;n[27]!==v||n[28]!==C||n[29]!==T?(ce=()=>{if(C){const ct=(v-1)*Xo,Ct=ct+Xo;Z(T.slice(ct,Ct))}else Z(T)},he=[v,T,C],n[27]=v,n[28]=C,n[29]=T,n[30]=ce,n[31]=he):(ce=n[30],he=n[31]),ye.useEffect(ce,he);let we;n[32]===Symbol.for("react.memo_cache_sentinel")?(we=[],n[32]=we):we=n[32];const[J,le]=ye.useState(we);let Ce;n[33]!==J||n[34]!==b||n[35]!==T?(Ce=()=>{b&&le(T.filter(ct=>J.some(Ct=>Ct.id===ct.id)))},n[33]=J,n[34]=b,n[35]=T,n[36]=Ce):Ce=n[36];let be;n[37]!==T?(be=[T],n[37]=T,n[38]=be):be=n[38],ye.useEffect(Ce,be);const[z,q]=ye.useState(!1),[W,K]=ye.useState(!1),[ae,Te]=ye.useState(!1),u=r?"space-between":"end";let d;n[39]!==r?(d=r&&(typeof r=="string"?A.jsx(B.Title,{order:4,children:r}):r),n[39]=r,n[40]=d):d=n[40];let w;n[41]!==ee?(w=()=>ee(),n[41]=ee,n[42]=w):w=n[42];let P;n[43]===Symbol.for("react.memo_cache_sentinel")?(P=A.jsx(Oi.IconRefresh,{}),n[43]=P):P=n[43];let U;n[44]!==w?(U=A.jsx(B.ActionIcon,{variant:"subtle",onClick:w,"aria-label":"Neuladen",children:P}),n[44]=w,n[45]=U):U=n[45];let X;n[46]!==L||n[47]!==c||n[48]!==J||n[49]!==b?(X=(c.some(vv)||b)&&A.jsxs(B.Menu,{shadow:"md",children:[A.jsx(B.Menu.Target,{children:A.jsx(B.Button,{variant:"outline",rightSection:A.jsx(Oi.IconCaretDownFilled,{size:14}),disabled:!J.length,children:"Aktionen"})}),A.jsxs(B.Menu.Dropdown,{children:[c.find(gv)&&A.jsx(B.Menu.Item,{leftSection:A.jsx(Oi.IconPencil,{size:14}),onClick:()=>K(!0),disabled:J.length!==1,children:"Bearbeiten"}),(L??[]).map((ct,Ct)=>ye.createElement(B.Menu.Item,{...ct.icon&&{leftSection:ct.icon},key:`custom_action_${Ct}`,onClick:()=>ct.onClick(J)},ct.label)),c.find(pv)&&A.jsx(B.Menu.Item,{leftSection:A.jsx(Oi.IconTrash,{size:14}),onClick:()=>Te(!0),color:"red",children:"Löschen"})]})]}),n[46]=L,n[47]=c,n[48]=J,n[49]=b,n[50]=X):X=n[50];let xe;n[51]!==R||n[52]!==c?(xe=c.find(dv)&&A.jsx(B.Button,{onClick:()=>q(!0),children:R??"Erstellen"}),n[51]=R,n[52]=c,n[53]=xe):xe=n[53];let De;n[54]!==h||n[55]!==U||n[56]!==X||n[57]!==xe?(De=A.jsxs(B.Group,{align:"center",gap:"xs",children:[U,X,xe,h]}),n[54]=h,n[55]=U,n[56]=X,n[57]=xe,n[58]=De):De=n[58];let Re;n[59]!==u||n[60]!==d||n[61]!==De?(Re=A.jsxs(B.Group,{gap:"xs",justify:u,align:"center",children:[d,De]}),n[59]=u,n[60]=d,n[61]=De,n[62]=Re):Re=n[62];let Se;n[63]!==Q?(Se=Q&&A.jsx(B.Alert,{mt:"md",variant:"light",color:"red",title:"Es ist ein Fehler aufgetreten.",icon:A.jsx(Oi.IconInfoCircle,{}),children:"Bitte versuche es später erneut oder sende eine Nachricht an unseren Support."}),n[63]=Q,n[64]=Se):Se=n[64];let Le;n[65]!==N||n[66]!==te?(Le=(N||te)&&A.jsxs(B.Stack,{my:"md",children:[A.jsx(B.Skeleton,{height:40}),Array(5).fill(0).map(hv)]}),n[65]=N,n[66]=te,n[67]=Le):Le=n[67];let Pe;n[68]!==c||n[69]!==Q||n[70]!==N||n[71]!==te||n[72]!==v||n[73]!==C||n[74]!==Y||n[75]!==J||n[76]!==b||n[77]!==Oe||n[78]!==T?(Pe=!N&&!te&&A.jsx(Z0,{my:"md",striped:!0,minHeight:150,fetching:Q,records:Y,sortStatus:Oe,onSortStatusChange:j,...b&&{selectedRecords:J,onSelectedRecordsChange:le},...C&&Y.length&&{totalRecords:T.length,recordsPerPage:Xo,onPageChange:m,page:v},columns:c.map(fv),noRecordsText:"Keine Einträge gefunden"}),n[68]=c,n[69]=Q,n[70]=N,n[71]=te,n[72]=v,n[73]=C,n[74]=Y,n[75]=J,n[76]=b,n[77]=Oe,n[78]=T,n[79]=Pe):Pe=n[79];let Ie;n[80]===Symbol.for("react.memo_cache_sentinel")?(Ie=()=>{K(!1),le([])},n[80]=Ie):Ie=n[80];const et=r??"Bearbeiten";let Ge;n[81]!==g||n[82]!==c||n[83]!==s||n[84]!==J[0]||n[85]!==J.length||n[86]!==k?(Ge=J.length>0&&A.jsx(X0,{fields:c.filter(cv),queryKey:s,apiPath:g,id:J[0].id,onClose:()=>{K(!1),le([])},steps:k}),n[81]=g,n[82]=c,n[83]=s,n[84]=J[0],n[85]=J.length,n[86]=k,n[87]=Ge):Ge=n[87];let tt;n[88]!==et||n[89]!==Ge||n[90]!==W?(tt=A.jsx(B.Modal,{opened:W,onClose:Ie,title:et,children:Ge}),n[88]=et,n[89]=Ge,n[90]=W,n[91]=tt):tt=n[91];let pt;n[92]===Symbol.for("react.memo_cache_sentinel")?(pt=()=>{Te(!1),le([])},n[92]=pt):pt=n[92];const xt=r??"Löschen";let lt;n[93]!==g||n[94]!==s||n[95]!==J?(lt=J.length>0&&A.jsx(av,{onClose:()=>{Te(!1),le([])},queryKey:s,apiPath:g,selectedRecords:J}),n[93]=g,n[94]=s,n[95]=J,n[96]=lt):lt=n[96];let St;n[97]!==ae||n[98]!==xt||n[99]!==lt?(St=A.jsx(B.Modal,{opened:ae,onClose:pt,title:xt,children:lt}),n[97]=ae,n[98]=xt,n[99]=lt,n[100]=St):St=n[100];let Sn;n[101]===Symbol.for("react.memo_cache_sentinel")?(Sn=()=>{q(!1)},n[101]=Sn):Sn=n[101];const Bn=r??"Anlegen";let Dt;n[102]===Symbol.for("react.memo_cache_sentinel")?(Dt=()=>{q(!1)},n[102]=Dt):Dt=n[102];let Qt;n[103]!==c?(Qt=c.filter(lv),n[103]=c,n[104]=Qt):Qt=n[104];let Jt;n[105]!==g||n[106]!==s||n[107]!==k||n[108]!==Qt?(Jt=A.jsx(X1,{queryKey:s,apiPath:g,onClose:Dt,fields:Qt,steps:k}),n[105]=g,n[106]=s,n[107]=k,n[108]=Qt,n[109]=Jt):Jt=n[109];let hn;n[110]!==z||n[111]!==Bn||n[112]!==Jt?(hn=A.jsx(B.Modal,{opened:z,onClose:Sn,title:Bn,children:Jt}),n[110]=z,n[111]=Bn,n[112]=Jt,n[113]=hn):hn=n[113];let Rn;return n[114]!==Re||n[115]!==Se||n[116]!==Le||n[117]!==Pe||n[118]!==tt||n[119]!==St||n[120]!==hn?(Rn=A.jsxs(A.Fragment,{children:[Re,Se,Le,Pe,tt,St,hn]}),n[114]=Re,n[115]=Se,n[116]=Le,n[117]=Pe,n[118]=tt,n[119]=St,n[120]=hn,n[121]=Rn):Rn=n[121],Rn}function lv(i){return i.create}function cv(i){return i.update}function fv(i){return i.column}function hv(i,n){return A.jsx(B.Skeleton,{height:35},`skeleton-${n}`)}function dv(i){return i.create}function pv(i){return i.delete}function gv(i){return i.update}function vv(i){return i.update}function mv(i){const n=un.c(5),{queryClient:r}=nr();let s;n[0]!==i?(s=A.jsx(uv,{...i}),n[0]=i,n[1]=s):s=n[1];let l;return n[2]!==r||n[3]!==s?(l=A.jsx(Sl,{client:r,children:s}),n[2]=r,n[3]=s,n[4]=l):l=n[4],l}function yv(i,n){const r=un.c(8);let s;r[0]!==i||r[1]!==n?(s=()=>{const C=localStorage.getItem(`use_persistent_storage_${n}`);return C?JSON.parse(C):i},r[0]=i,r[1]=n,r[2]=s):s=r[2];const[l,g]=ye.useState(s);let h;r[3]!==n?(h=C=>{g(C),localStorage.setItem(`use_persistent_storage_${n}`,JSON.stringify(C))},r[3]=n,r[4]=h):h=r[4];const c=h;let b;return r[5]!==c||r[6]!==l?(b=[l,c],r[5]=c,r[6]=l,r[7]=b):b=r[7],b}ze.DataTable=mv,ze.DataTableProvider=Bg,ze.api=Ug,ze.createOne=vc,ze.deleteOne=gc,ze.getAll=dc,ze.getApiHeaders=Dr,ze.getOne=pc,ze.updateOne=mc,ze.useAddOne=_c,ze.useDataTable=nr,ze.useDeleteOne=bc,ze.useGetAll=wc,ze.useGetOne=yc,ze.usePersistentState=yv,ze.useUpdateOne=xa,Object.defineProperty(ze,Symbol.toStringTag,{value:"Module"})});
143
+ }`;var qe=sd(function(){return nt(S,$e+"return "+_e).apply(r,$)});if(qe.source=_e,zu(qe))throw qe;return qe}function fb(e){return it(e).toLowerCase()}function hb(e){return it(e).toUpperCase()}function db(e,t,o){if(e=it(e),e&&(o||t===r))return gf(e);if(!e||!(t=rn(t)))return e;var a=An(e),y=An(t),S=vf(a,y),$=mf(a,y)+1;return Ar(a,S,$).join("")}function pb(e,t,o){if(e=it(e),e&&(o||t===r))return e.slice(0,wf(e)+1);if(!e||!(t=rn(t)))return e;var a=An(e),y=mf(a,An(t))+1;return Ar(a,0,y).join("")}function gb(e,t,o){if(e=it(e),e&&(o||t===r))return e.replace(Wi,"");if(!e||!(t=rn(t)))return e;var a=An(e),y=vf(a,An(t));return Ar(a,y).join("")}function vb(e,t){var o=pe,a=ie;if(vt(t)){var y="separator"in t?t.separator:y;o="length"in t?Ye(t.length):o,a="omission"in t?rn(t.omission):a}e=it(e);var S=e.length;if(di(e)){var $=An(e);S=$.length}if(o>=S)return e;var F=o-pi(a);if(F<1)return a;var V=$?Ar($,0,F).join(""):e.slice(0,F);if(y===r)return V+a;if($&&(F+=V.length-F),Fu(y)){if(e.slice(F).search(y)){var ge,ve=V;for(y.global||(y=iu(y.source,it(qi.exec(y))+"g")),y.lastIndex=0;ge=y.exec(ve);)var _e=ge.index;V=V.slice(0,_e===r?F:_e)}}else if(e.indexOf(rn(y),F)!=F){var Ee=V.lastIndexOf(y);Ee>-1&&(V=V.slice(0,Ee))}return V+a}function mb(e){return e=it(e),e&&hn.test(e)?e.replace(Qt,Hv):e}var yb=bi(function(e,t,o){return e+(o?" ":"")+t.toUpperCase()}),qu=ah("toUpperCase");function od(e,t,o){return e=it(e),t=o?r:t,t===r?zv(e)?Zv(e):Lv(e):e.match(t)||[]}var sd=Ve(function(e,t){try{return tn(e,r,t)}catch(o){return zu(o)?o:new Fe(o)}}),wb=Zn(function(e,t){return gn(t,function(o){o=$n(o),Gn(e,o,ju(e[o],e))}),e});function _b(e){var t=e==null?0:e.length,o=Ne();return e=t?gt(e,function(a){if(typeof a[1]!="function")throw new vn(f);return[o(a[0]),a[1]]}):[],Ve(function(a){for(var y=-1;++y<t;){var S=e[y];if(tn(S[0],this,a))return tn(S[1],this,a)}})}function bb(e){return Hm(yn(e,L))}function Hu(e){return function(){return e}}function xb(e,t){return e==null||e!==e?t:e}var Sb=lh(),Cb=lh(!0);function Kt(e){return e}function Gu(e){return jf(typeof e=="function"?e:yn(e,L))}function Ab(e){return zf(yn(e,L))}function Ob(e,t){return Ff(e,yn(t,L))}var Tb=Ve(function(e,t){return function(o){return lo(o,e,t)}}),Db=Ve(function(e,t){return function(o){return lo(e,o,t)}});function Vu(e,t,o){var a=Et(t),y=Ds(t,a);o==null&&!(vt(t)&&(y.length||!a.length))&&(o=t,t=e,e=this,y=Ds(t,Et(t)));var S=!(vt(o)&&"chain"in o)||!!o.chain,$=Qn(e);return gn(y,function(F){var V=t[F];e[F]=V,$&&(e.prototype[F]=function(){var ge=this.__chain__;if(S||ge){var ve=e(this.__wrapped__),_e=ve.__actions__=Gt(this.__actions__);return _e.push({func:V,args:arguments,thisArg:e}),ve.__chain__=ge,ve}return V.apply(e,wr([this.value()],arguments))})}),e}function Eb(){return kt._===this&&(kt._=tm),this}function Zu(){}function Mb(e){return e=Ye(e),Ve(function(t){return Wf(t,e)})}var Rb=Ou(gt),Lb=Ou(cf),kb=Ou(Qa);function ad(e){return ku(e)?Ja($n(e)):ly(e)}function Ib(e){return function(t){return e==null?r:qr(e,t)}}var $b=fh(),Pb=fh(!0);function Ku(){return[]}function Qu(){return!1}function Nb(){return{}}function Bb(){return""}function jb(){return!0}function Ub(e,t){if(e=Ye(e),e<1||e>d)return[];var o=m,a=$t(e,m);t=Ne(t),e-=m;for(var y=tu(a,t);++o<e;)t(o);return y}function zb(e){return We(e)?gt(e,$n):on(e)?[e]:Gt(Th(it(e)))}function Fb(e){var t=++Xv;return it(e)+t}var Wb=Is(function(e,t){return e+t},0),Yb=Tu("ceil"),qb=Is(function(e,t){return e/t},1),Hb=Tu("floor");function Gb(e){return e&&e.length?Ts(e,Kt,hu):r}function Vb(e,t){return e&&e.length?Ts(e,Ne(t,2),hu):r}function Zb(e){return df(e,Kt)}function Kb(e,t){return df(e,Ne(t,2))}function Qb(e){return e&&e.length?Ts(e,Kt,vu):r}function Jb(e,t){return e&&e.length?Ts(e,Ne(t,2),vu):r}var Xb=Is(function(e,t){return e*t},1),ex=Tu("round"),tx=Is(function(e,t){return e-t},0);function nx(e){return e&&e.length?eu(e,Kt):0}function rx(e,t){return e&&e.length?eu(e,Ne(t,2)):0}return x.after=Aw,x.ary=Bh,x.assign=h_,x.assignIn=Jh,x.assignInWith=Gs,x.assignWith=d_,x.at=p_,x.before=jh,x.bind=ju,x.bindAll=wb,x.bindKey=Uh,x.castArray=Nw,x.chain=$h,x.chunk=Hy,x.compact=Gy,x.concat=Vy,x.cond=_b,x.conforms=bb,x.constant=Hu,x.countBy=nw,x.create=g_,x.curry=zh,x.curryRight=Fh,x.debounce=Wh,x.defaults=v_,x.defaultsDeep=m_,x.defer=Ow,x.delay=Tw,x.difference=Zy,x.differenceBy=Ky,x.differenceWith=Qy,x.drop=Jy,x.dropRight=Xy,x.dropRightWhile=e2,x.dropWhile=t2,x.fill=n2,x.filter=iw,x.flatMap=aw,x.flatMapDeep=uw,x.flatMapDepth=lw,x.flatten=Rh,x.flattenDeep=r2,x.flattenDepth=i2,x.flip=Dw,x.flow=Sb,x.flowRight=Cb,x.fromPairs=o2,x.functions=C_,x.functionsIn=A_,x.groupBy=cw,x.initial=a2,x.intersection=u2,x.intersectionBy=l2,x.intersectionWith=c2,x.invert=T_,x.invertBy=D_,x.invokeMap=hw,x.iteratee=Gu,x.keyBy=dw,x.keys=Et,x.keysIn=Zt,x.map=zs,x.mapKeys=M_,x.mapValues=R_,x.matches=Ab,x.matchesProperty=Ob,x.memoize=Ws,x.merge=L_,x.mergeWith=Xh,x.method=Tb,x.methodOf=Db,x.mixin=Vu,x.negate=Ys,x.nthArg=Mb,x.omit=k_,x.omitBy=I_,x.once=Ew,x.orderBy=pw,x.over=Rb,x.overArgs=Mw,x.overEvery=Lb,x.overSome=kb,x.partial=Uu,x.partialRight=Yh,x.partition=gw,x.pick=$_,x.pickBy=ed,x.property=ad,x.propertyOf=Ib,x.pull=p2,x.pullAll=kh,x.pullAllBy=g2,x.pullAllWith=v2,x.pullAt=m2,x.range=$b,x.rangeRight=Pb,x.rearg=Rw,x.reject=yw,x.remove=y2,x.rest=Lw,x.reverse=Nu,x.sampleSize=_w,x.set=N_,x.setWith=B_,x.shuffle=bw,x.slice=w2,x.sortBy=Cw,x.sortedUniq=O2,x.sortedUniqBy=T2,x.split=ab,x.spread=kw,x.tail=D2,x.take=E2,x.takeRight=M2,x.takeRightWhile=R2,x.takeWhile=L2,x.tap=G2,x.throttle=Iw,x.thru=Us,x.toArray=Zh,x.toPairs=td,x.toPairsIn=nd,x.toPath=zb,x.toPlainObject=Qh,x.transform=j_,x.unary=$w,x.union=k2,x.unionBy=I2,x.unionWith=$2,x.uniq=P2,x.uniqBy=N2,x.uniqWith=B2,x.unset=U_,x.unzip=Bu,x.unzipWith=Ih,x.update=z_,x.updateWith=F_,x.values=Ci,x.valuesIn=W_,x.without=j2,x.words=od,x.wrap=Pw,x.xor=U2,x.xorBy=z2,x.xorWith=F2,x.zip=W2,x.zipObject=Y2,x.zipObjectDeep=q2,x.zipWith=H2,x.entries=td,x.entriesIn=nd,x.extend=Jh,x.extendWith=Gs,Vu(x,x),x.add=Wb,x.attempt=sd,x.camelCase=G_,x.capitalize=rd,x.ceil=Yb,x.clamp=Y_,x.clone=Bw,x.cloneDeep=Uw,x.cloneDeepWith=zw,x.cloneWith=jw,x.conformsTo=Fw,x.deburr=id,x.defaultTo=xb,x.divide=qb,x.endsWith=V_,x.eq=Tn,x.escape=Z_,x.escapeRegExp=K_,x.every=rw,x.find=ow,x.findIndex=Eh,x.findKey=y_,x.findLast=sw,x.findLastIndex=Mh,x.findLastKey=w_,x.floor=Hb,x.forEach=Ph,x.forEachRight=Nh,x.forIn=__,x.forInRight=b_,x.forOwn=x_,x.forOwnRight=S_,x.get=Wu,x.gt=Ww,x.gte=Yw,x.has=O_,x.hasIn=Yu,x.head=Lh,x.identity=Kt,x.includes=fw,x.indexOf=s2,x.inRange=q_,x.invoke=E_,x.isArguments=Vr,x.isArray=We,x.isArrayBuffer=qw,x.isArrayLike=Vt,x.isArrayLikeObject=wt,x.isBoolean=Hw,x.isBuffer=Or,x.isDate=Gw,x.isElement=Vw,x.isEmpty=Zw,x.isEqual=Kw,x.isEqualWith=Qw,x.isError=zu,x.isFinite=Jw,x.isFunction=Qn,x.isInteger=qh,x.isLength=qs,x.isMap=Hh,x.isMatch=Xw,x.isMatchWith=e_,x.isNaN=t_,x.isNative=n_,x.isNil=i_,x.isNull=r_,x.isNumber=Gh,x.isObject=vt,x.isObjectLike=yt,x.isPlainObject=vo,x.isRegExp=Fu,x.isSafeInteger=o_,x.isSet=Vh,x.isString=Hs,x.isSymbol=on,x.isTypedArray=Si,x.isUndefined=s_,x.isWeakMap=a_,x.isWeakSet=u_,x.join=f2,x.kebabCase=Q_,x.last=_n,x.lastIndexOf=h2,x.lowerCase=J_,x.lowerFirst=X_,x.lt=l_,x.lte=c_,x.max=Gb,x.maxBy=Vb,x.mean=Zb,x.meanBy=Kb,x.min=Qb,x.minBy=Jb,x.stubArray=Ku,x.stubFalse=Qu,x.stubObject=Nb,x.stubString=Bb,x.stubTrue=jb,x.multiply=Xb,x.nth=d2,x.noConflict=Eb,x.noop=Zu,x.now=Fs,x.pad=eb,x.padEnd=tb,x.padStart=nb,x.parseInt=rb,x.random=H_,x.reduce=vw,x.reduceRight=mw,x.repeat=ib,x.replace=ob,x.result=P_,x.round=ex,x.runInContext=G,x.sample=ww,x.size=xw,x.snakeCase=sb,x.some=Sw,x.sortedIndex=_2,x.sortedIndexBy=b2,x.sortedIndexOf=x2,x.sortedLastIndex=S2,x.sortedLastIndexBy=C2,x.sortedLastIndexOf=A2,x.startCase=ub,x.startsWith=lb,x.subtract=tx,x.sum=nx,x.sumBy=rx,x.template=cb,x.times=Ub,x.toFinite=Jn,x.toInteger=Ye,x.toLength=Kh,x.toLower=fb,x.toNumber=bn,x.toSafeInteger=f_,x.toString=it,x.toUpper=hb,x.trim=db,x.trimEnd=pb,x.trimStart=gb,x.truncate=vb,x.unescape=mb,x.uniqueId=Fb,x.upperCase=yb,x.upperFirst=qu,x.each=Ph,x.eachRight=Nh,x.first=Lh,Vu(x,function(){var e={};return kn(x,function(t,o){ot.call(x.prototype,o)||(e[o]=t)}),e}(),{chain:!1}),x.VERSION=s,gn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){x[e].placeholder=x}),gn(["drop","take"],function(e,t){Qe.prototype[e]=function(o){o=o===r?1:Ot(Ye(o),0);var a=this.__filtered__&&!t?new Qe(this):this.clone();return a.__filtered__?a.__takeCount__=$t(o,a.__takeCount__):a.__views__.push({size:$t(o,m),type:e+(a.__dir__<0?"Right":"")}),a},Qe.prototype[e+"Right"]=function(o){return this.reverse()[e](o).reverse()}}),gn(["filter","map","takeWhile"],function(e,t){var o=t+1,a=o==j||o==A;Qe.prototype[e]=function(y){var S=this.clone();return S.__iteratees__.push({iteratee:Ne(y,3),type:o}),S.__filtered__=S.__filtered__||a,S}}),gn(["head","last"],function(e,t){var o="take"+(t?"Right":"");Qe.prototype[e]=function(){return this[o](1).value()[0]}}),gn(["initial","tail"],function(e,t){var o="drop"+(t?"":"Right");Qe.prototype[e]=function(){return this.__filtered__?new Qe(this):this[o](1)}}),Qe.prototype.compact=function(){return this.filter(Kt)},Qe.prototype.find=function(e){return this.filter(e).head()},Qe.prototype.findLast=function(e){return this.reverse().find(e)},Qe.prototype.invokeMap=Ve(function(e,t){return typeof e=="function"?new Qe(this):this.map(function(o){return lo(o,e,t)})}),Qe.prototype.reject=function(e){return this.filter(Ys(Ne(e)))},Qe.prototype.slice=function(e,t){e=Ye(e);var o=this;return o.__filtered__&&(e>0||t<0)?new Qe(o):(e<0?o=o.takeRight(-e):e&&(o=o.drop(e)),t!==r&&(t=Ye(t),o=t<0?o.dropRight(-t):o.take(t-e)),o)},Qe.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Qe.prototype.toArray=function(){return this.take(m)},kn(Qe.prototype,function(e,t){var o=/^(?:filter|find|map|reject)|While$/.test(t),a=/^(?:head|last)$/.test(t),y=x[a?"take"+(t=="last"?"Right":""):t],S=a||/^find/.test(t);y&&(x.prototype[t]=function(){var $=this.__wrapped__,F=a?[1]:arguments,V=$ instanceof Qe,ge=F[0],ve=V||We($),_e=function(Ke){var Xe=y.apply(x,wr([Ke],F));return a&&Ee?Xe[0]:Xe};ve&&o&&typeof ge=="function"&&ge.length!=1&&(V=ve=!1);var Ee=this.__chain__,$e=!!this.__actions__.length,Be=S&&!Ee,qe=V&&!$e;if(!S&&ve){$=qe?$:new Qe(this);var je=e.apply($,F);return je.__actions__.push({func:Us,args:[_e],thisArg:r}),new mn(je,Ee)}return Be&&qe?e.apply(this,F):(je=this.thru(_e),Be?a?je.value()[0]:je.value():je)})}),gn(["pop","push","shift","sort","splice","unshift"],function(e){var t=hs[e],o=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);x.prototype[e]=function(){var y=arguments;if(a&&!this.__chain__){var S=this.value();return t.apply(We(S)?S:[],y)}return this[o](function($){return t.apply(We($)?$:[],y)})}}),kn(Qe.prototype,function(e,t){var o=x[t];if(o){var a=o.name+"";ot.call(yi,a)||(yi[a]=[]),yi[a].push({name:t,func:o})}}),yi[ks(r,Q).name]=[{name:"wrapper",func:r}],Qe.prototype.clone=mm,Qe.prototype.reverse=ym,Qe.prototype.value=wm,x.prototype.at=V2,x.prototype.chain=Z2,x.prototype.commit=K2,x.prototype.next=Q2,x.prototype.plant=X2,x.prototype.reverse=ew,x.prototype.toJSON=x.prototype.valueOf=x.prototype.value=tw,x.prototype.first=x.prototype.head,no&&(x.prototype[no]=J2),x},gi=Kv();Ur?((Ur.exports=gi)._=gi,Ga._=gi):kt._=gi}).call(K0)}(Ui,Ui.exports)),Ui.exports}var Kc=Q0();function J0(i){const n=un.c(40),{fields:r,onClose:s,queryKey:l,apiPath:p,id:f,steps:c}=i,[b,C]=ye.useState(0),[O,L]=ye.useState(!1),{data:k,isLoading:M}=yc(p,l,f),{mutateAsync:R,isError:E,error:N,isPending:Q}=xa(p,l);let te;n[0]!==r?(te=new Set(r.filter(ov).map(iv)),n[0]=r,n[1]=te):te=n[1];let X;n[2]!==te?(X=[...te],n[2]=te,n[3]=X):X=n[3];const ae=X;let H;n[4]!==r?(H=r.reduce(rv,{}),n[4]=r,n[5]=H):H=n[5];let fe;n[6]!==r?(fe=r.filter(nv).reduce(ev,{}),n[6]=r,n[7]=fe):fe=n[7];let ee;n[8]!==H||n[9]!==fe?(ee={mode:"uncontrolled",initialValues:H,validate:fe},n[8]=H,n[9]=fe,n[10]=ee):ee=n[10];const re=Ai.useForm(ee);let se;n[11]!==k||n[12]!==r||n[13]!==re?(se=()=>{if(k){const A=r.reduce((v,d)=>{const _=d.id;return v[_]=Array.isArray(k[_])?k[_]:d.type==="boolean"?k[_]??!1:d.type==="date"?k[_]?new Date(k[_]):"":k[_]??"",v},{});re.initialize(A),re.setValues(A)}},n[11]=k,n[12]=r,n[13]=re,n[14]=se):se=n[14];let pe;n[15]!==k?(pe=[k],n[15]=k,n[16]=pe):pe=n[16],ye.useEffect(se,pe);let ie;n[17]!==re?(ie=function(v){return D.jsxs(ye.Fragment,{children:[(v.type===void 0||v.type=="text")&&D.jsx(B.TextInput,{label:v.column.title,placeholder:v.placeholder??"",...re.getInputProps(v.id),type:v.id.includes("email")?"email":void 0},re.key(v.id)),v.type==="number"&&D.jsx(B.NumberInput,{decimalSeparator:",",label:v.column.title,placeholder:v.placeholder??"",...re.getInputProps(v.id)},re.key(v.id)),v.type==="date"&&D.jsx(Vo,{label:v.column.title,placeholder:v.placeholder??"",valueFormat:"DD.MM.YYYY",clearable:!0,...re.getInputProps(v.id)},re.key(v.id)),v.type==="boolean"&&D.jsx(B.Checkbox,{mt:"md",label:v.column.title,...re.getInputProps(v.id,{type:"checkbox"})},re.key(v.id)),v.type==="custom"&&v.render&&v.render(re.getValues(),re.getInputProps(v.id).onChange,L,re.setValues)]},v.id)},n[17]=re,n[18]=ie):ie=n[18];const Ae=ie;let Oe;n[19]!==E||n[20]!==(N==null?void 0:N.message)||n[21]!==(N==null?void 0:N.name)?(Oe=E&&D.jsx(B.Alert,{variant:"outline",color:"red",title:(N==null?void 0:N.name)??"Fehler aufgetreten",mb:"lg",children:(N==null?void 0:N.message)??"Fehler aufgetreten"}),n[19]=E,n[20]=N==null?void 0:N.message,n[21]=N==null?void 0:N.name,n[22]=Oe):Oe=n[22];let j;n[23]!==b||n[24]!==r||n[25]!==re||n[26]!==O||n[27]!==f||n[28]!==M||n[29]!==Q||n[30]!==E||n[31]!==s||n[32]!==Ae||n[33]!==c||n[34]!==ae||n[35]!==R?(j=M?D.jsxs(B.Stack,{gap:"md",children:[D.jsx(B.Skeleton,{height:40}),Array(r.length).fill(0).map(X0),D.jsxs(B.Group,{mt:"md",justify:"end",children:[D.jsx(B.Skeleton,{width:100,height:36}),D.jsx(B.Skeleton,{width:100,height:36})]})]}):D.jsxs("form",{onSubmit:re.onSubmit(async A=>{await R({...A,id:f}),ae.length&&b<ae.length-1?E||C(b+1):E||(re.setInitialValues(A),re.reset(),s())}),children:[ae.length?D.jsx(B.Stepper,{active:b,size:"sm",children:ae.map(A=>D.jsx(B.Stepper.Step,{...c&&c[A-1]?{label:c[A-1].label}:{},children:r.filter(v=>v.step===A).map(v=>Ae(v))},A))}):r.map(A=>Ae(A)),!O&&D.jsxs(B.Group,{mt:"md",justify:"end",children:[D.jsx(B.Button,{onClick:()=>ae.length?b===0?s():C(b-1):s(),variant:"outline",children:ae.length?b===0?"Abbrechen":"Zurück":"Abbrechen"}),D.jsx(B.Button,{type:"submit",loading:Q,children:ae.length?b===ae.length-1?"Speichern":"Weiter":"Speichern"})]})]}),n[23]=b,n[24]=r,n[25]=re,n[26]=O,n[27]=f,n[28]=M,n[29]=Q,n[30]=E,n[31]=s,n[32]=Ae,n[33]=c,n[34]=ae,n[35]=R,n[36]=j):j=n[36];let I;return n[37]!==j||n[38]!==Oe?(I=D.jsxs(D.Fragment,{children:[Oe,j]}),n[37]=j,n[38]=Oe,n[39]=I):I=n[39],I}function X0(i,n){return D.jsx(B.Skeleton,{height:35},`skeleton-field-${n}`)}function ev(i,n){return i[n.id]=tv,i}function tv(i){return i?null:"Pflichtfeld"}function nv(i){return i.required}function rv(i,n){return i[n.id]=n.type==="boolean"?n.defaultValue??!1:n.defaultValue??"",i}function iv(i){return i.step}function ov(i){return typeof i.step=="number"}function sv(i){const n=un.c(28),{queryKey:r,apiPath:s,onClose:l,selectedRecords:p}=i,{mutateAsync:f,isError:c,error:b,isPending:C}=bc(s,r),[O,L]=ye.useState(p);let k;n[0]!==l||n[1]!==O.length?(k=()=>{O.length||l()},n[0]=l,n[1]=O.length,n[2]=k):k=n[2];let M;if(n[3]!==l||n[4]!==O?(M=[l,O],n[3]=l,n[4]=O,n[5]=M):M=n[5],ye.useEffect(k,M),!O.length){let fe;return n[6]===Symbol.for("react.memo_cache_sentinel")?(fe=D.jsx(D.Fragment,{}),n[6]=fe):fe=n[6],fe}let R;n[7]!==b||n[8]!==c?(R=c&&b.message&&D.jsx(B.Alert,{variant:"outline",color:"red",title:b.name,children:b.message}),n[7]=b,n[8]=c,n[9]=R):R=n[9];let E;n[10]===Symbol.for("react.memo_cache_sentinel")?(E=D.jsx("br",{}),n[10]=E):E=n[10];let N;n[11]!==p[0].id?(N=D.jsxs(B.Text,{children:["Bist du sicher, dass du folgenden Eintrag löschen möchtest?",E,p[0].id]}),n[11]=p[0].id,n[12]=N):N=n[12];let Q;n[13]!==l?(Q=D.jsx(B.Button,{onClick:l,variant:"outline",children:"Abbrechen"}),n[13]=l,n[14]=Q):Q=n[14];let te;n[15]!==f||n[16]!==O[0].id?(te=async()=>{await f(O[0].id),L(fe=>fe.filter(ee=>ee.id!==O[0].id))},n[15]=f,n[16]=O[0].id,n[17]=te):te=n[17];let X;n[18]!==C||n[19]!==te?(X=D.jsx(B.Button,{color:"red",loading:C,onClick:te,children:"Delete"}),n[18]=C,n[19]=te,n[20]=X):X=n[20];let ae;n[21]!==Q||n[22]!==X?(ae=D.jsxs(B.Group,{mt:"md",justify:"end",children:[Q,X]}),n[21]=Q,n[22]=X,n[23]=ae):ae=n[23];let H;return n[24]!==R||n[25]!==N||n[26]!==ae?(H=D.jsxs(D.Fragment,{children:[R,N,ae]}),n[24]=R,n[25]=N,n[26]=ae,n[27]=H):H=n[27],H}const Xo=10;function av(i){const n=un.c(122),{title:r,queryKey:s,connectedQueryKeys:l,apiPath:p,buttons:f,fields:c,selection:b,pagination:C,filters:O,actions:L,steps:k,defaultSort:M,createButtonText:R}=i,{data:E,isLoading:N,isError:Q,isRefetching:te,refetch:X}=wc(p,s);let ae;n[0]===Symbol.for("react.memo_cache_sentinel")?(ae=[],n[0]=ae):ae=n[0];const[H,fe]=ye.useState(ae),{queryClient:ee}=nr();let re;n[1]!==E||n[2]!==l||n[3]!==O||n[4]!==ee?(re=()=>{if(!(!E||!Array.isArray(E))){if(l==null||l.forEach(ct=>ee.invalidateQueries({queryKey:ct})),!O||O.length===0){fe(E);return}fe(E.filter(ct=>O.every(Ct=>{const at=Ct.id;if(Ct.type==="query"&&typeof Ct.value=="string"){const qt=ct[at];return typeof qt=="string"&&qt.includes(Ct.value)}else if(Ct.type==="date"){if(!Ct.value)return!0;const qt=Ct.value,[si,ai]=qt;if(si&&ai){const fr=ct[at];if(typeof fr=="string"){const ui=new Date(fr);return ui>=si&&ui<=ai}}return!0}return!0})))}},n[1]=E,n[2]=l,n[3]=O,n[4]=ee,n[5]=re):re=n[5];let se;n[6]!==E||n[7]!==O?(se=[E,O],n[6]=E,n[7]=O,n[8]=se):se=n[8],ye.useEffect(re,se);const pe=(M==null?void 0:M.field)??c[0].id,ie=(M==null?void 0:M.direction)??"desc";let Ae;n[9]!==pe||n[10]!==ie?(Ae={columnAccessor:pe,direction:ie},n[9]=pe,n[10]=ie,n[11]=Ae):Ae=n[11];const[Oe,j]=ye.useState(Ae);let I;n[12]!==H||n[13]!==(M==null?void 0:M.direction)||n[14]!==(M==null?void 0:M.field)||n[15]!==c[0]?(I=()=>{const ct=Kc.sortBy(H,(M==null?void 0:M.field)??c[0].id);return(M==null?void 0:M.direction)==="asc"?ct:ct.reverse()},n[12]=H,n[13]=M==null?void 0:M.direction,n[14]=M==null?void 0:M.field,n[15]=c[0],n[16]=I):I=n[16];const[A,v]=ye.useState(I);let d;n[17]!==H||n[18]!==Oe.columnAccessor||n[19]!==Oe.direction?(d=()=>{const ct=Kc.sortBy(H,Oe.columnAccessor);v(Oe.direction==="desc"?ct.reverse():ct)},n[17]=H,n[18]=Oe.columnAccessor,n[19]=Oe.direction,n[20]=d):d=n[20];let _;n[21]!==H||n[22]!==Oe?(_=[Oe,H],n[21]=H,n[22]=Oe,n[23]=_):_=n[23],ye.useEffect(d,_);const[g,m]=ye.useState(1);let T;n[24]!==C||n[25]!==A?(T=C?A.slice(0,Xo):A,n[24]=C,n[25]=A,n[26]=T):T=n[26];const[Y,Z]=ye.useState(T);let ce,de;n[27]!==g||n[28]!==C||n[29]!==A?(ce=()=>{if(C){const ct=(g-1)*Xo,Ct=ct+Xo;Z(A.slice(ct,Ct))}else Z(A)},de=[g,A,C],n[27]=g,n[28]=C,n[29]=A,n[30]=ce,n[31]=de):(ce=n[30],de=n[31]),ye.useEffect(ce,de);let we;n[32]===Symbol.for("react.memo_cache_sentinel")?(we=[],n[32]=we):we=n[32];const[J,le]=ye.useState(we);let Ce;n[33]!==J||n[34]!==b||n[35]!==A?(Ce=()=>{b&&le(A.filter(ct=>J.some(Ct=>Ct.id===ct.id)))},n[33]=J,n[34]=b,n[35]=A,n[36]=Ce):Ce=n[36];let be;n[37]!==A?(be=[A],n[37]=A,n[38]=be):be=n[38],ye.useEffect(Ce,be);const[z,q]=ye.useState(!1),[W,K]=ye.useState(!1),[ue,Te]=ye.useState(!1),u=r?"space-between":"end";let h;n[39]!==r?(h=r&&(typeof r=="string"?D.jsx(B.Title,{order:4,children:r}):r),n[39]=r,n[40]=h):h=n[40];let w;n[41]!==X?(w=()=>X(),n[41]=X,n[42]=w):w=n[42];let P;n[43]===Symbol.for("react.memo_cache_sentinel")?(P=D.jsx(Oi.IconRefresh,{}),n[43]=P):P=n[43];let U;n[44]!==w?(U=D.jsx(B.ActionIcon,{variant:"subtle",onClick:w,"aria-label":"Neuladen",children:P}),n[44]=w,n[45]=U):U=n[45];let ne;n[46]!==L||n[47]!==c||n[48]!==J||n[49]!==b?(ne=(c.some(gv)||b)&&D.jsxs(B.Menu,{shadow:"md",children:[D.jsx(B.Menu.Target,{children:D.jsx(B.Button,{variant:"outline",rightSection:D.jsx(Oi.IconCaretDownFilled,{size:14}),disabled:!J.length,children:"Aktionen"})}),D.jsxs(B.Menu.Dropdown,{children:[c.find(pv)&&D.jsx(B.Menu.Item,{leftSection:D.jsx(Oi.IconPencil,{size:14}),onClick:()=>K(!0),disabled:J.length!==1,children:"Bearbeiten"}),(L??[]).map((ct,Ct)=>ye.createElement(B.Menu.Item,{...ct.icon&&{leftSection:ct.icon},key:`custom_action_${Ct}`,onClick:()=>ct.onClick(J)},ct.label)),c.find(dv)&&D.jsx(B.Menu.Item,{leftSection:D.jsx(Oi.IconTrash,{size:14}),onClick:()=>Te(!0),color:"red",children:"Löschen"})]})]}),n[46]=L,n[47]=c,n[48]=J,n[49]=b,n[50]=ne):ne=n[50];let xe;n[51]!==R||n[52]!==c?(xe=c.find(hv)&&D.jsx(B.Button,{onClick:()=>q(!0),children:R??"Erstellen"}),n[51]=R,n[52]=c,n[53]=xe):xe=n[53];let De;n[54]!==f||n[55]!==U||n[56]!==ne||n[57]!==xe?(De=D.jsxs(B.Group,{align:"center",gap:"xs",children:[U,ne,xe,f]}),n[54]=f,n[55]=U,n[56]=ne,n[57]=xe,n[58]=De):De=n[58];let Re;n[59]!==u||n[60]!==h||n[61]!==De?(Re=D.jsxs(B.Group,{gap:"xs",justify:u,align:"center",children:[h,De]}),n[59]=u,n[60]=h,n[61]=De,n[62]=Re):Re=n[62];let Se;n[63]!==Q?(Se=Q&&D.jsx(B.Alert,{mt:"md",variant:"light",color:"red",title:"Es ist ein Fehler aufgetreten.",icon:D.jsx(Oi.IconInfoCircle,{}),children:"Bitte versuche es später erneut oder sende eine Nachricht an unseren Support."}),n[63]=Q,n[64]=Se):Se=n[64];let Le;n[65]!==N||n[66]!==te?(Le=(N||te)&&D.jsxs(B.Stack,{my:"md",children:[D.jsx(B.Skeleton,{height:40}),Array(5).fill(0).map(fv)]}),n[65]=N,n[66]=te,n[67]=Le):Le=n[67];let Pe;n[68]!==c||n[69]!==Q||n[70]!==N||n[71]!==te||n[72]!==g||n[73]!==C||n[74]!==Y||n[75]!==J||n[76]!==b||n[77]!==Oe||n[78]!==A?(Pe=!N&&!te&&D.jsx(V0,{my:"md",striped:!0,minHeight:150,fetching:Q,records:Y,sortStatus:Oe,onSortStatusChange:j,...b&&{selectedRecords:J,onSelectedRecordsChange:le},...C&&Y.length&&{totalRecords:A.length,recordsPerPage:Xo,onPageChange:m,page:g},columns:c.map(cv),noRecordsText:"Keine Einträge gefunden"}),n[68]=c,n[69]=Q,n[70]=N,n[71]=te,n[72]=g,n[73]=C,n[74]=Y,n[75]=J,n[76]=b,n[77]=Oe,n[78]=A,n[79]=Pe):Pe=n[79];let Ie;n[80]===Symbol.for("react.memo_cache_sentinel")?(Ie=()=>{K(!1),le([])},n[80]=Ie):Ie=n[80];const et=r??"Bearbeiten";let Ge;n[81]!==p||n[82]!==c||n[83]!==s||n[84]!==J[0]||n[85]!==J.length||n[86]!==k?(Ge=J.length>0&&D.jsx(J0,{fields:c.filter(lv),queryKey:s,apiPath:p,id:J[0].id,onClose:()=>{K(!1),le([])},steps:k}),n[81]=p,n[82]=c,n[83]=s,n[84]=J[0],n[85]=J.length,n[86]=k,n[87]=Ge):Ge=n[87];let tt;n[88]!==et||n[89]!==Ge||n[90]!==W?(tt=D.jsx(B.Modal,{opened:W,onClose:Ie,title:et,children:Ge}),n[88]=et,n[89]=Ge,n[90]=W,n[91]=tt):tt=n[91];let pt;n[92]===Symbol.for("react.memo_cache_sentinel")?(pt=()=>{Te(!1),le([])},n[92]=pt):pt=n[92];const xt=r??"Löschen";let lt;n[93]!==p||n[94]!==s||n[95]!==J?(lt=J.length>0&&D.jsx(sv,{onClose:()=>{Te(!1),le([])},queryKey:s,apiPath:p,selectedRecords:J}),n[93]=p,n[94]=s,n[95]=J,n[96]=lt):lt=n[96];let St;n[97]!==ue||n[98]!==xt||n[99]!==lt?(St=D.jsx(B.Modal,{opened:ue,onClose:pt,title:xt,children:lt}),n[97]=ue,n[98]=xt,n[99]=lt,n[100]=St):St=n[100];let Sn;n[101]===Symbol.for("react.memo_cache_sentinel")?(Sn=()=>{q(!1)},n[101]=Sn):Sn=n[101];const Bn=r??"Anlegen";let Dt;n[102]===Symbol.for("react.memo_cache_sentinel")?(Dt=()=>{q(!1)},n[102]=Dt):Dt=n[102];let Qt;n[103]!==c?(Qt=c.filter(uv),n[103]=c,n[104]=Qt):Qt=n[104];let Jt;n[105]!==p||n[106]!==s||n[107]!==k||n[108]!==Qt?(Jt=D.jsx(X1,{queryKey:s,apiPath:p,onClose:Dt,fields:Qt,steps:k}),n[105]=p,n[106]=s,n[107]=k,n[108]=Qt,n[109]=Jt):Jt=n[109];let hn;n[110]!==z||n[111]!==Bn||n[112]!==Jt?(hn=D.jsx(B.Modal,{opened:z,onClose:Sn,title:Bn,children:Jt}),n[110]=z,n[111]=Bn,n[112]=Jt,n[113]=hn):hn=n[113];let Rn;return n[114]!==Re||n[115]!==Se||n[116]!==Le||n[117]!==Pe||n[118]!==tt||n[119]!==St||n[120]!==hn?(Rn=D.jsxs(D.Fragment,{children:[Re,Se,Le,Pe,tt,St,hn]}),n[114]=Re,n[115]=Se,n[116]=Le,n[117]=Pe,n[118]=tt,n[119]=St,n[120]=hn,n[121]=Rn):Rn=n[121],Rn}function uv(i){return i.create}function lv(i){return i.update}function cv(i){return i.column}function fv(i,n){return D.jsx(B.Skeleton,{height:35},`skeleton-${n}`)}function hv(i){return i.create}function dv(i){return i.delete}function pv(i){return i.update}function gv(i){return i.update}function vv(i){const n=un.c(5),{queryClient:r}=nr();let s;n[0]!==i?(s=D.jsx(av,{...i}),n[0]=i,n[1]=s):s=n[1];let l;return n[2]!==r||n[3]!==s?(l=D.jsx(Sl,{client:r,children:s}),n[2]=r,n[3]=s,n[4]=l):l=n[4],l}function mv(i,n){const r=un.c(8);let s;r[0]!==i||r[1]!==n?(s=()=>{const C=localStorage.getItem(`use_persistent_storage_${n}`);return C?JSON.parse(C):i},r[0]=i,r[1]=n,r[2]=s):s=r[2];const[l,p]=ye.useState(s);let f;r[3]!==n?(f=C=>{p(C),localStorage.setItem(`use_persistent_storage_${n}`,JSON.stringify(C))},r[3]=n,r[4]=f):f=r[4];const c=f;let b;return r[5]!==c||r[6]!==l?(b=[l,c],r[5]=c,r[6]=l,r[7]=b):b=r[7],b}ze.DataTable=vv,ze.DataTableProvider=Bg,ze.api=Ug,ze.createOne=vc,ze.deleteOne=gc,ze.getAll=dc,ze.getApiHeaders=Dr,ze.getOne=pc,ze.updateOne=mc,ze.useAddOne=_c,ze.useDataTable=nr,ze.useDeleteOne=bc,ze.useGetAll=wc,ze.useGetOne=yc,ze.usePersistentState=mv,ze.useUpdateOne=xa,Object.defineProperty(ze,Symbol.toStringTag,{value:"Module"})});
144
144
  //# sourceMappingURL=index.umd.js.map