@oardi/ts-utils 0.0.55 → 0.0.56

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.
@@ -2,7 +2,7 @@ declare global {
2
2
  interface Array<T> {
3
3
  distinct<T>(this: T[], comparator?: (obj1: T, obj2: T) => boolean): T[];
4
4
  filterBy<T>(this: T[], valueGetter: (a: T) => boolean): T[];
5
- first(this: T[]): T;
5
+ first(this: T[]): Nullable<T>;
6
6
  groupBy(this: T[], valueGetter: (a: T) => string): Record<string, T[]>;
7
7
  orderBy<T, G>(this: T[], valueGetter: (a: T) => G, ascending?: boolean): T[];
8
8
  removeBy<T, G>(this: T[], valueGetter: (a: T) => G, val: G): T[];
@@ -0,0 +1 @@
1
+ export declare function definePrototypeExtension(prototype: object, propertyKey: PropertyKey, value: unknown): void;
package/index.cjs CHANGED
@@ -1,10 +1,10 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ft={xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400,xxxl:1600};class _t{static getScreenWidth(){return document.documentElement.clientWidth}static getScreenHeight(){return document.documentElement.clientHeight}}class ht{static breakPoints=Ft;static getCurrentBreakpoint(){return ht.getBreakpointByScreenWidth(_t.getScreenWidth())}static getBreakpointByScreenWidth(t=_t.getScreenWidth()){let n="xs";for(const a of Object.keys(ht.breakPoints))ht.breakPoints[a]<=t&&(n=a);return{breakpoint:n,screenWidth:t}}static isScreenGreaterThan(t){return _t.getScreenWidth()>ht.breakPoints[t]}static isScreenSmallerThan(t){return _t.getScreenWidth()<ht.breakPoints[t]}}var X=(s=>(s.opera="opera",s.firefox="firefox",s.safari="safari",s.ie="ie",s.edgeLegacy="edgeLegacy",s.edg="edg",s.chrome="chrome",s.iOS="iOS",s.headlessChrome="headlessChrome",s.nodeRuntime="nodeRuntime",s.electron="electron",s))(X||{});const Yt=typeof navigator<"u"?navigator.userAgent:"",lt=Yt.toLowerCase();class H{static isBrowserEnv(){return typeof window<"u"&&typeof navigator<"u"}static isOpera(t=lt){return this.isBrowserEnv()?t.includes("opr/")||t.includes("opera"):!1}static isFirefox(t=lt){return this.isBrowserEnv()?t.includes("firefox")||typeof globalThis.InstallTrigger<"u":!1}static isSafari(t=lt){if(!this.isBrowserEnv())return!1;const n=navigator.vendor&&navigator.vendor.includes("Apple"),a=t.includes("safari"),_=!(t.includes("crios")||t.includes("chrome")||t.includes("android")||t.includes("opr/")||t.includes("edg"));return n&&a&&_}static isIOS(t=lt){if(!this.isBrowserEnv())return!1;const n=/iphone|ipad|ipod/.test(t),a=t.includes("macintosh")&&navigator.maxTouchPoints>1;return n||a}static isEdgeLegacy(){return this.isBrowserEnv()?!!window.StyleMedia&&!lt.includes("edg/"):!1}static isEdg(t=lt){return this.isBrowserEnv()?t.includes("edg/"):!1}static isIE(){return!this.isBrowserEnv()&&typeof document>"u"?!1:!!document.documentMode}static isChrome(t=lt){if(!this.isBrowserEnv())return!1;const n=navigator.vendor&&navigator.vendor.includes("Google"),a=t.includes("chrome")||t.includes("crios"),_=!this.isEdg(t)&&!this.isOpera(t);return n&&a&&_}static isElectron(t=lt){return typeof process<"u"&&process.versions?.electron?!0:t.includes("electron")}static isHeadlessChrome(t=lt){return t.includes("headlesschrome")}static isNodeRuntime(){return typeof process<"u"&&!!process.versions?.node&&!this.isBrowserEnv()}static getCurrentBrowser(){if(typeof navigator>"u"){if(H.isElectron())return X.electron;if(H.isNodeRuntime())return X.nodeRuntime;throw new Error("navigator not set")}const t=navigator.userAgent.toLowerCase();if(H.isOpera())return X.opera;if(H.isFirefox())return X.firefox;if(H.isSafari())return X.safari;if(H.isIE())return X.ie;if(H.isEdgeLegacy())return X.edgeLegacy;if(H.isEdg())return X.edg;if(H.isChrome())return X.chrome;if(H.isIOS(t))return X.iOS;if(H.isElectron(t))return X.electron;if(H.isHeadlessChrome(t))return X.headlessChrome;if(H.isNodeRuntime())return X.nodeRuntime;throw new Error("Browser could not be detected: "+t)}}function Ut(s){return navigator.clipboard.writeText(s)}function Mt(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var St={exports:{}};var Wt=St.exports,Rt;function Bt(){return Rt||(Rt=1,(function(s,t){((n,a)=>{s.exports=a()})(Wt,function n(){var a=typeof self<"u"?self:typeof window<"u"?window:a!==void 0?a:{},_,D=!a.document&&!!a.postMessage,R=a.IS_PAPA_WORKER||!1,Y={},q=0,p={};function U(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(r){var i=ut(r);i.chunkSize=parseInt(i.chunkSize),r.step||r.chunk||(i.chunkSize=null),this._handle=new rt(i),(this._handle.streamer=this)._config=i}).call(this,e),this.parseChunk=function(r,i){var u=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<u){let S=this._config.newline;S||(m=this._config.quoteChar||'"',S=this._handle.guessLineEndings(r,m)),r=[...r.split(S).slice(u)].join(S)}this.isFirstChunk&&T(this._config.beforeFirstChunk)&&(m=this._config.beforeFirstChunk(r))!==void 0&&(r=m),this.isFirstChunk=!1,this._halted=!1;var u=this._partialLine+r,m=(this._partialLine="",this._handle.parse(u,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(r=m.meta.cursor,u=(this._finished||(this._partialLine=u.substring(r-this._baseIndex),this._baseIndex=r),m&&m.data&&(this._rowCount+=m.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),R)a.postMessage({results:m,workerId:p.WORKER_ID,finished:u});else if(T(this._config.chunk)&&!i){if(this._config.chunk(m,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=m=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(m.data),this._completeResults.errors=this._completeResults.errors.concat(m.errors),this._completeResults.meta=m.meta),this._completed||!u||!T(this._config.complete)||m&&m.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),u||m&&m.meta.paused||this._nextChunk(),m}this._halted=!0},this._sendError=function(r){T(this._config.error)?this._config.error(r):R&&this._config.error&&a.postMessage({workerId:p.WORKER_ID,error:r,finished:!1})}}function z(e){var r;(e=e||{}).chunkSize||(e.chunkSize=p.RemoteChunkSize),U.call(this,e),this._nextChunk=D?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(i){this._input=i,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(r=new XMLHttpRequest,this._config.withCredentials&&(r.withCredentials=this._config.withCredentials),D||(r.onload=Q(this._chunkLoaded,this),r.onerror=Q(this._chunkError,this)),r.open(this._config.downloadRequestBody?"POST":"GET",this._input,!D),this._config.downloadRequestHeaders){var i,u=this._config.downloadRequestHeaders;for(i in u)r.setRequestHeader(i,u[i])}var m;this._config.chunkSize&&(m=this._start+this._config.chunkSize-1,r.setRequestHeader("Range","bytes="+this._start+"-"+m));try{r.send(this._config.downloadRequestBody)}catch(S){this._chunkError(S.message)}D&&r.status===0&&this._chunkError()}},this._chunkLoaded=function(){r.readyState===4&&(r.status<200||400<=r.status?this._chunkError():(this._start+=this._config.chunkSize||r.responseText.length,this._finished=!this._config.chunkSize||this._start>=(i=>(i=i.getResponseHeader("Content-Range"))!==null?parseInt(i.substring(i.lastIndexOf("/")+1)):-1)(r),this.parseChunk(r.responseText)))},this._chunkError=function(i){i=r.statusText||i,this._sendError(new Error(i))}}function J(e){(e=e||{}).chunkSize||(e.chunkSize=p.LocalChunkSize),U.call(this,e);var r,i,u=typeof FileReader<"u";this.stream=function(m){this._input=m,i=m.slice||m.webkitSlice||m.mozSlice,u?((r=new FileReader).onload=Q(this._chunkLoaded,this),r.onerror=Q(this._chunkError,this)):r=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var m=this._input,S=(this._config.chunkSize&&(S=Math.min(this._start+this._config.chunkSize,this._input.size),m=i.call(m,this._start,S)),r.readAsText(m,this._config.encoding));u||this._chunkLoaded({target:{result:S}})},this._chunkLoaded=function(m){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(m.target.result)},this._chunkError=function(){this._sendError(r.error)}}function N(e){var r;U.call(this,e=e||{}),this.stream=function(i){return r=i,this._nextChunk()},this._nextChunk=function(){var i,u;if(!this._finished)return i=this._config.chunkSize,r=i?(u=r.substring(0,i),r.substring(i)):(u=r,""),this._finished=!r,this.parseChunk(u)}}function G(e){U.call(this,e=e||{});var r=[],i=!0,u=!1;this.pause=function(){U.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){U.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(m){this._input=m,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){u&&r.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),r.length?this.parseChunk(r.shift()):i=!0},this._streamData=Q(function(m){try{r.push(typeof m=="string"?m:m.toString(this._config.encoding)),i&&(i=!1,this._checkIsFinished(),this.parseChunk(r.shift()))}catch(S){this._streamError(S)}},this),this._streamError=Q(function(m){this._streamCleanUp(),this._sendError(m)},this),this._streamEnd=Q(function(){this._streamCleanUp(),u=!0,this._streamData("")},this),this._streamCleanUp=Q(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function rt(e){var r,i,u,m,S=Math.pow(2,53),y=-S,d=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,f=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,o=this,c=0,l=0,v=!1,g=!1,w=[],h={data:[],errors:[],meta:{}};function M(b){return e.skipEmptyLines==="greedy"?b.join("").trim()==="":b.length===1&&b[0].length===0}function C(){if(h&&u&&(B("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+p.DefaultDelimiter+"'"),u=!1),e.skipEmptyLines&&(h.data=h.data.filter(function(k){return!M(k)})),j()){let k=function(A,P){T(e.transformHeader)&&(A=e.transformHeader(A,P)),w.push(A)};if(h)if(Array.isArray(h.data[0])){for(var b=0;j()&&b<h.data.length;b++)h.data[b].forEach(k);h.data.splice(0,1)}else h.data.forEach(k)}function x(k,A){for(var P=e.header?{}:[],I=0;I<k.length;I++){var F=I,$=k[I],$=((nt,E)=>(W=>(e.dynamicTypingFunction&&e.dynamicTyping[W]===void 0&&(e.dynamicTyping[W]=e.dynamicTypingFunction(W)),(e.dynamicTyping[W]||e.dynamicTyping)===!0))(nt)?E==="true"||E==="TRUE"||E!=="false"&&E!=="FALSE"&&((W=>{if(d.test(W)&&(W=parseFloat(W),y<W&&W<S))return 1})(E)?parseFloat(E):f.test(E)?new Date(E):E===""?null:E):E)(F=e.header?I>=w.length?"__parsed_extra":w[I]:F,$=e.transform?e.transform($,F):$);F==="__parsed_extra"?(P[F]=P[F]||[],P[F].push($)):P[F]=$}return e.header&&(I>w.length?B("FieldMismatch","TooManyFields","Too many fields: expected "+w.length+" fields but parsed "+I,l+A):I<w.length&&B("FieldMismatch","TooFewFields","Too few fields: expected "+w.length+" fields but parsed "+I,l+A)),P}var O;h&&(e.header||e.dynamicTyping||e.transform)&&(O=1,!h.data.length||Array.isArray(h.data[0])?(h.data=h.data.map(x),O=h.data.length):h.data=x(h.data,0),e.header&&h.meta&&(h.meta.fields=w),l+=O)}function j(){return e.header&&w.length===0}function B(b,x,O,k){b={type:b,code:x,message:O},k!==void 0&&(b.row=k),h.errors.push(b)}T(e.step)&&(m=e.step,e.step=function(b){h=b,j()?C():(C(),h.data.length!==0&&(c+=b.data.length,e.preview&&c>e.preview?i.abort():(h.data=h.data[0],m(h,o))))}),this.parse=function(b,x,O){var k=e.quoteChar||'"',k=(e.newline||(e.newline=this.guessLineEndings(b,k)),u=!1,e.delimiter?T(e.delimiter)&&(e.delimiter=e.delimiter(b),h.meta.delimiter=e.delimiter):((k=((A,P,I,F,$)=>{var nt,E,W,dt;$=$||[","," ","|",";",p.RECORD_SEP,p.UNIT_SEP];for(var mt=0;mt<$.length;mt++){for(var it,wt=$[mt],V=0,st=0,K=0,et=(W=void 0,new gt({comments:F,delimiter:wt,newline:P,preview:10}).parse(A)),ct=0;ct<et.data.length;ct++)I&&M(et.data[ct])?K++:(it=et.data[ct].length,st+=it,W===void 0?W=it:0<it&&(V+=Math.abs(it-W),W=it));0<et.data.length&&(st/=et.data.length-K),(E===void 0||V<=E)&&(dt===void 0||dt<st)&&1.99<st&&(E=V,nt=wt,dt=st)}return{successful:!!(e.delimiter=nt),bestDelimiter:nt}})(b,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess)).successful?e.delimiter=k.bestDelimiter:(u=!0,e.delimiter=p.DefaultDelimiter),h.meta.delimiter=e.delimiter),ut(e));return e.preview&&e.header&&k.preview++,r=b,i=new gt(k),h=i.parse(r,x,O),C(),v?{meta:{paused:!0}}:h||{meta:{paused:!1}}},this.paused=function(){return v},this.pause=function(){v=!0,i.abort(),r=T(e.chunk)?"":r.substring(i.getCharIndex())},this.resume=function(){o.streamer._halted?(v=!1,o.streamer.parseChunk(r,!0)):setTimeout(o.resume,3)},this.aborted=function(){return g},this.abort=function(){g=!0,i.abort(),h.meta.aborted=!0,T(e.complete)&&e.complete(h),r=""},this.guessLineEndings=function(A,k){A=A.substring(0,1048576);var k=new RegExp(ot(k)+"([^]*?)"+ot(k),"gm"),O=(A=A.replace(k,"")).split("\r"),k=A.split(`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const zt={xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400,xxxl:1600};class bt{static getScreenWidth(){return document.documentElement.clientWidth}static getScreenHeight(){return document.documentElement.clientHeight}}class pt{static breakPoints=zt;static getCurrentBreakpoint(){return pt.getBreakpointByScreenWidth(bt.getScreenWidth())}static getBreakpointByScreenWidth(t=bt.getScreenWidth()){let n="xs";for(const a of Object.keys(pt.breakPoints))pt.breakPoints[a]<=t&&(n=a);return{breakpoint:n,screenWidth:t}}static isScreenGreaterThan(t){return bt.getScreenWidth()>pt.breakPoints[t]}static isScreenSmallerThan(t){return bt.getScreenWidth()<pt.breakPoints[t]}}var H=(s=>(s.opera="opera",s.firefox="firefox",s.safari="safari",s.ie="ie",s.edgeLegacy="edgeLegacy",s.edg="edg",s.chrome="chrome",s.iOS="iOS",s.headlessChrome="headlessChrome",s.nodeRuntime="nodeRuntime",s.electron="electron",s))(H||{});const Ut=typeof navigator<"u"?navigator.userAgent:"",ft=Ut.toLowerCase();class tt{static isBrowserEnv(){return typeof window<"u"&&typeof navigator<"u"}static isOpera(t=ft){return this.isBrowserEnv()?t.includes("opr/")||t.includes("opera"):!1}static isFirefox(t=ft){return this.isBrowserEnv()?t.includes("firefox")||typeof globalThis.InstallTrigger<"u":!1}static isSafari(t=ft){if(!this.isBrowserEnv())return!1;const n=navigator.vendor&&navigator.vendor.includes("Apple"),a=t.includes("safari"),_=!(t.includes("crios")||t.includes("chrome")||t.includes("android")||t.includes("opr/")||t.includes("edg"));return n&&a&&_}static isIOS(t=ft){if(!this.isBrowserEnv())return!1;const n=/iphone|ipad|ipod/.test(t),a=t.includes("macintosh")&&navigator.maxTouchPoints>1;return n||a}static isEdgeLegacy(){return this.isBrowserEnv()?!!window.StyleMedia&&!ft.includes("edg/"):!1}static isEdg(t=ft){return this.isBrowserEnv()?t.includes("edg/"):!1}static isIE(){return!this.isBrowserEnv()&&typeof document>"u"?!1:!!document.documentMode}static isChrome(t=ft){if(!this.isBrowserEnv())return!1;const n=navigator.vendor&&navigator.vendor.includes("Google"),a=t.includes("chrome")||t.includes("crios"),_=!this.isEdg(t)&&!this.isOpera(t);return n&&a&&_}static isElectron(t=ft){return typeof process<"u"&&process.versions?.electron?!0:t.includes("electron")}static isHeadlessChrome(t=ft){return t.includes("headlesschrome")}static isNodeRuntime(){return typeof process<"u"&&!!process.versions?.node&&!this.isBrowserEnv()}static getCurrentBrowser(){if(typeof navigator>"u"){if(tt.isElectron())return H.electron;if(tt.isNodeRuntime())return H.nodeRuntime;throw new Error("navigator not set")}const t=navigator.userAgent.toLowerCase();if(tt.isOpera())return H.opera;if(tt.isFirefox())return H.firefox;if(tt.isSafari())return H.safari;if(tt.isIE())return H.ie;if(tt.isEdgeLegacy())return H.edgeLegacy;if(tt.isEdg())return H.edg;if(tt.isChrome())return H.chrome;if(tt.isIOS(t))return H.iOS;if(tt.isElectron(t))return H.electron;if(tt.isHeadlessChrome(t))return H.headlessChrome;if(tt.isNodeRuntime())return H.nodeRuntime;throw new Error("Browser could not be detected: "+t)}}function Wt(s){return navigator.clipboard.writeText(s)}function $t(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var Et={exports:{}};var Bt=Et.exports,At;function Nt(){return At||(At=1,(function(s,t){((n,a)=>{s.exports=a()})(Bt,function n(){var a=typeof self<"u"?self:typeof window<"u"?window:a!==void 0?a:{},_,D=!a.document&&!!a.postMessage,R=a.IS_PAPA_WORKER||!1,B={},K=0,p={};function Y(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(r){var i=ct(r);i.chunkSize=parseInt(i.chunkSize),r.step||r.chunk||(i.chunkSize=null),this._handle=new nt(i),(this._handle.streamer=this)._config=i}).call(this,e),this.parseChunk=function(r,i){var u=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<u){let S=this._config.newline;S||(m=this._config.quoteChar||'"',S=this._handle.guessLineEndings(r,m)),r=[...r.split(S).slice(u)].join(S)}this.isFirstChunk&&T(this._config.beforeFirstChunk)&&(m=this._config.beforeFirstChunk(r))!==void 0&&(r=m),this.isFirstChunk=!1,this._halted=!1;var u=this._partialLine+r,m=(this._partialLine="",this._handle.parse(u,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(r=m.meta.cursor,u=(this._finished||(this._partialLine=u.substring(r-this._baseIndex),this._baseIndex=r),m&&m.data&&(this._rowCount+=m.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),R)a.postMessage({results:m,workerId:p.WORKER_ID,finished:u});else if(T(this._config.chunk)&&!i){if(this._config.chunk(m,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=m=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(m.data),this._completeResults.errors=this._completeResults.errors.concat(m.errors),this._completeResults.meta=m.meta),this._completed||!u||!T(this._config.complete)||m&&m.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),u||m&&m.meta.paused||this._nextChunk(),m}this._halted=!0},this._sendError=function(r){T(this._config.error)?this._config.error(r):R&&this._config.error&&a.postMessage({workerId:p.WORKER_ID,error:r,finished:!1})}}function z(e){var r;(e=e||{}).chunkSize||(e.chunkSize=p.RemoteChunkSize),Y.call(this,e),this._nextChunk=D?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(i){this._input=i,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(r=new XMLHttpRequest,this._config.withCredentials&&(r.withCredentials=this._config.withCredentials),D||(r.onload=V(this._chunkLoaded,this),r.onerror=V(this._chunkError,this)),r.open(this._config.downloadRequestBody?"POST":"GET",this._input,!D),this._config.downloadRequestHeaders){var i,u=this._config.downloadRequestHeaders;for(i in u)r.setRequestHeader(i,u[i])}var m;this._config.chunkSize&&(m=this._start+this._config.chunkSize-1,r.setRequestHeader("Range","bytes="+this._start+"-"+m));try{r.send(this._config.downloadRequestBody)}catch(S){this._chunkError(S.message)}D&&r.status===0&&this._chunkError()}},this._chunkLoaded=function(){r.readyState===4&&(r.status<200||400<=r.status?this._chunkError():(this._start+=this._config.chunkSize||r.responseText.length,this._finished=!this._config.chunkSize||this._start>=(i=>(i=i.getResponseHeader("Content-Range"))!==null?parseInt(i.substring(i.lastIndexOf("/")+1)):-1)(r),this.parseChunk(r.responseText)))},this._chunkError=function(i){i=r.statusText||i,this._sendError(new Error(i))}}function Q(e){(e=e||{}).chunkSize||(e.chunkSize=p.LocalChunkSize),Y.call(this,e);var r,i,u=typeof FileReader<"u";this.stream=function(m){this._input=m,i=m.slice||m.webkitSlice||m.mozSlice,u?((r=new FileReader).onload=V(this._chunkLoaded,this),r.onerror=V(this._chunkError,this)):r=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var m=this._input,S=(this._config.chunkSize&&(S=Math.min(this._start+this._config.chunkSize,this._input.size),m=i.call(m,this._start,S)),r.readAsText(m,this._config.encoding));u||this._chunkLoaded({target:{result:S}})},this._chunkLoaded=function(m){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(m.target.result)},this._chunkError=function(){this._sendError(r.error)}}function q(e){var r;Y.call(this,e=e||{}),this.stream=function(i){return r=i,this._nextChunk()},this._nextChunk=function(){var i,u;if(!this._finished)return i=this._config.chunkSize,r=i?(u=r.substring(0,i),r.substring(i)):(u=r,""),this._finished=!r,this.parseChunk(u)}}function X(e){Y.call(this,e=e||{});var r=[],i=!0,u=!1;this.pause=function(){Y.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){Y.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(m){this._input=m,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){u&&r.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),r.length?this.parseChunk(r.shift()):i=!0},this._streamData=V(function(m){try{r.push(typeof m=="string"?m:m.toString(this._config.encoding)),i&&(i=!1,this._checkIsFinished(),this.parseChunk(r.shift()))}catch(S){this._streamError(S)}},this),this._streamError=V(function(m){this._streamCleanUp(),this._sendError(m)},this),this._streamEnd=V(function(){this._streamCleanUp(),u=!0,this._streamData("")},this),this._streamCleanUp=V(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function nt(e){var r,i,u,m,S=Math.pow(2,53),y=-S,d=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,f=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,o=this,c=0,l=0,v=!1,g=!1,w=[],h={data:[],errors:[],meta:{}};function M(b){return e.skipEmptyLines==="greedy"?b.join("").trim()==="":b.length===1&&b[0].length===0}function C(){if(h&&u&&(N("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+p.DefaultDelimiter+"'"),u=!1),e.skipEmptyLines&&(h.data=h.data.filter(function(k){return!M(k)})),j()){let k=function(A,P){T(e.transformHeader)&&(A=e.transformHeader(A,P)),w.push(A)};if(h)if(Array.isArray(h.data[0])){for(var b=0;j()&&b<h.data.length;b++)h.data[b].forEach(k);h.data.splice(0,1)}else h.data.forEach(k)}function x(k,A){for(var P=e.header?{}:[],I=0;I<k.length;I++){var F=I,$=k[I],$=((it,E)=>(U=>(e.dynamicTypingFunction&&e.dynamicTyping[U]===void 0&&(e.dynamicTyping[U]=e.dynamicTypingFunction(U)),(e.dynamicTyping[U]||e.dynamicTyping)===!0))(it)?E==="true"||E==="TRUE"||E!=="false"&&E!=="FALSE"&&((U=>{if(d.test(U)&&(U=parseFloat(U),y<U&&U<S))return 1})(E)?parseFloat(E):f.test(E)?new Date(E):E===""?null:E):E)(F=e.header?I>=w.length?"__parsed_extra":w[I]:F,$=e.transform?e.transform($,F):$);F==="__parsed_extra"?(P[F]=P[F]||[],P[F].push($)):P[F]=$}return e.header&&(I>w.length?N("FieldMismatch","TooManyFields","Too many fields: expected "+w.length+" fields but parsed "+I,l+A):I<w.length&&N("FieldMismatch","TooFewFields","Too few fields: expected "+w.length+" fields but parsed "+I,l+A)),P}var O;h&&(e.header||e.dynamicTyping||e.transform)&&(O=1,!h.data.length||Array.isArray(h.data[0])?(h.data=h.data.map(x),O=h.data.length):h.data=x(h.data,0),e.header&&h.meta&&(h.meta.fields=w),l+=O)}function j(){return e.header&&w.length===0}function N(b,x,O,k){b={type:b,code:x,message:O},k!==void 0&&(b.row=k),h.errors.push(b)}T(e.step)&&(m=e.step,e.step=function(b){h=b,j()?C():(C(),h.data.length!==0&&(c+=b.data.length,e.preview&&c>e.preview?i.abort():(h.data=h.data[0],m(h,o))))}),this.parse=function(b,x,O){var k=e.quoteChar||'"',k=(e.newline||(e.newline=this.guessLineEndings(b,k)),u=!1,e.delimiter?T(e.delimiter)&&(e.delimiter=e.delimiter(b),h.meta.delimiter=e.delimiter):((k=((A,P,I,F,$)=>{var it,E,U,ht;$=$||[","," ","|",";",p.RECORD_SEP,p.UNIT_SEP];for(var yt=0;yt<$.length;yt++){for(var st,kt=$[yt],Z=0,at=0,J=0,rt=(U=void 0,new mt({comments:F,delimiter:kt,newline:P,preview:10}).parse(A)),lt=0;lt<rt.data.length;lt++)I&&M(rt.data[lt])?J++:(st=rt.data[lt].length,at+=st,U===void 0?U=st:0<st&&(Z+=Math.abs(st-U),U=st));0<rt.data.length&&(at/=rt.data.length-J),(E===void 0||Z<=E)&&(ht===void 0||ht<at)&&1.99<at&&(E=Z,it=kt,ht=at)}return{successful:!!(e.delimiter=it),bestDelimiter:it}})(b,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess)).successful?e.delimiter=k.bestDelimiter:(u=!0,e.delimiter=p.DefaultDelimiter),h.meta.delimiter=e.delimiter),ct(e));return e.preview&&e.header&&k.preview++,r=b,i=new mt(k),h=i.parse(r,x,O),C(),v?{meta:{paused:!0}}:h||{meta:{paused:!1}}},this.paused=function(){return v},this.pause=function(){v=!0,i.abort(),r=T(e.chunk)?"":r.substring(i.getCharIndex())},this.resume=function(){o.streamer._halted?(v=!1,o.streamer.parseChunk(r,!0)):setTimeout(o.resume,3)},this.aborted=function(){return g},this.abort=function(){g=!0,i.abort(),h.meta.aborted=!0,T(e.complete)&&e.complete(h),r=""},this.guessLineEndings=function(A,k){A=A.substring(0,1048576);var k=new RegExp(ut(k)+"([^]*?)"+ut(k),"gm"),O=(A=A.replace(k,"")).split("\r"),k=A.split(`
2
2
  `),A=1<k.length&&k[0].length<O[0].length;if(O.length===1||A)return`
3
3
  `;for(var P=0,I=0;I<O.length;I++)O[I][0]===`
4
4
  `&&P++;return P>=O.length/2?`\r
5
- `:"\r"}}function ot(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function gt(e){var r=(e=e||{}).delimiter,i=e.newline,u=e.comments,m=e.step,S=e.preview,y=e.fastMode,d=null,f=!1,o=e.quoteChar==null?'"':e.quoteChar,c=o;if(e.escapeChar!==void 0&&(c=e.escapeChar),(typeof r!="string"||-1<p.BAD_DELIMITERS.indexOf(r))&&(r=","),u===r)throw new Error("Comment character same as delimiter");u===!0?u="#":(typeof u!="string"||-1<p.BAD_DELIMITERS.indexOf(u))&&(u=!1),i!==`
5
+ `:"\r"}}function ut(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function mt(e){var r=(e=e||{}).delimiter,i=e.newline,u=e.comments,m=e.step,S=e.preview,y=e.fastMode,d=null,f=!1,o=e.quoteChar==null?'"':e.quoteChar,c=o;if(e.escapeChar!==void 0&&(c=e.escapeChar),(typeof r!="string"||-1<p.BAD_DELIMITERS.indexOf(r))&&(r=","),u===r)throw new Error("Comment character same as delimiter");u===!0?u="#":(typeof u!="string"||-1<p.BAD_DELIMITERS.indexOf(u))&&(u=!1),i!==`
6
6
  `&&i!=="\r"&&i!==`\r
7
7
  `&&(i=`
8
- `);var l=0,v=!1;this.parse=function(g,w,h){if(typeof g!="string")throw new Error("Input must be a string");var M=g.length,C=r.length,j=i.length,B=u.length,b=T(m),x=[],O=[],k=[],A=l=0;if(!g)return V();if(y||y!==!1&&g.indexOf(o)===-1){for(var P=g.split(i),I=0;I<P.length;I++){if(k=P[I],l+=k.length,I!==P.length-1)l+=i.length;else if(h)return V();if(!u||k.substring(0,B)!==u){if(b){if(x=[],dt(k.split(r)),st(),v)return V()}else dt(k.split(r));if(S&&S<=I)return x=x.slice(0,S),V(!0)}}return V()}for(var F=g.indexOf(r,l),$=g.indexOf(i,l),nt=new RegExp(ot(c)+ot(o),"g"),E=g.indexOf(o,l);;)if(g[l]===o)for(E=l,l++;;){if((E=g.indexOf(o,E+1))===-1)return h||O.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:x.length,index:l}),it();if(E===M-1)return it(g.substring(l,E).replace(nt,o));if(o===c&&g[E+1]===c)E++;else if(o===c||E===0||g[E-1]!==c){F!==-1&&F<E+1&&(F=g.indexOf(r,E+1));var W=mt(($=$!==-1&&$<E+1?g.indexOf(i,E+1):$)===-1?F:Math.min(F,$));if(g.substr(E+1+W,C)===r){k.push(g.substring(l,E).replace(nt,o)),g[l=E+1+W+C]!==o&&(E=g.indexOf(o,l)),F=g.indexOf(r,l),$=g.indexOf(i,l);break}if(W=mt($),g.substring(E+1+W,E+1+W+j)===i){if(k.push(g.substring(l,E).replace(nt,o)),wt(E+1+W+j),F=g.indexOf(r,l),E=g.indexOf(o,l),b&&(st(),v))return V();if(S&&x.length>=S)return V(!0);break}O.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:x.length,index:l}),E++}}else if(u&&k.length===0&&g.substring(l,l+B)===u){if($===-1)return V();l=$+j,$=g.indexOf(i,l),F=g.indexOf(r,l)}else if(F!==-1&&(F<$||$===-1))k.push(g.substring(l,F)),l=F+C,F=g.indexOf(r,l);else{if($===-1)break;if(k.push(g.substring(l,$)),wt($+j),b&&(st(),v))return V();if(S&&x.length>=S)return V(!0)}return it();function dt(K){x.push(K),A=l}function mt(K){var et=0;return et=K!==-1&&(K=g.substring(E+1,K))&&K.trim()===""?K.length:et}function it(K){return h||(K===void 0&&(K=g.substring(l)),k.push(K),l=M,dt(k),b&&st()),V()}function wt(K){l=K,dt(k),k=[],$=g.indexOf(i,l)}function V(K){if(e.header&&!w&&x.length&&!f){var et=x[0],ct=Object.create(null),$t=new Set(et);let Ct=!1;for(let yt=0;yt<et.length;yt++){let at=et[yt];if(ct[at=T(e.transformHeader)?e.transformHeader(at,yt):at]){let kt,Tt=ct[at];for(;kt=at+"_"+Tt,Tt++,$t.has(kt););$t.add(kt),et[yt]=kt,ct[at]++,Ct=!0,(d=d===null?{}:d)[kt]=at}else ct[at]=1,et[yt]=at;$t.add(at)}Ct&&console.warn("Duplicate headers found and renamed."),f=!0}return{data:x,errors:O,meta:{delimiter:r,linebreak:i,aborted:v,truncated:!!K,cursor:A+(w||0),renamedHeaders:d}}}function st(){m(V()),x=[],O=[]}},this.abort=function(){v=!0},this.getCharIndex=function(){return l}}function vt(e){var r=e.data,i=Y[r.workerId],u=!1;if(r.error)i.userError(r.error,r.file);else if(r.results&&r.results.data){var m={abort:function(){u=!0,ft(r.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:bt,resume:bt};if(T(i.userStep)){for(var S=0;S<r.results.data.length&&(i.userStep({data:r.results.data[S],errors:r.results.errors,meta:r.results.meta},m),!u);S++);delete r.results}else T(i.userChunk)&&(i.userChunk(r.results,m,r.file),delete r.results)}r.finished&&!u&&ft(r.workerId,r.results)}function ft(e,r){var i=Y[e];T(i.userComplete)&&i.userComplete(r),i.terminate(),delete Y[e]}function bt(){throw new Error("Not implemented.")}function ut(e){if(typeof e!="object"||e===null)return e;var r,i=Array.isArray(e)?[]:{};for(r in e)i[r]=ut(e[r]);return i}function Q(e,r){return function(){e.apply(r,arguments)}}function T(e){return typeof e=="function"}return p.parse=function(e,r){var i=(r=r||{}).dynamicTyping||!1;if(T(i)&&(r.dynamicTypingFunction=i,i={}),r.dynamicTyping=i,r.transform=!!T(r.transform)&&r.transform,!r.worker||!p.WORKERS_SUPPORTED)return i=null,p.NODE_STREAM_INPUT,typeof e=="string"?(e=(u=>u.charCodeAt(0)!==65279?u:u.slice(1))(e),i=new(r.download?z:N)(r)):e.readable===!0&&T(e.read)&&T(e.on)?i=new G(r):(a.File&&e instanceof File||e instanceof Object)&&(i=new J(r)),i.stream(e);(i=(()=>{var u;return!!p.WORKERS_SUPPORTED&&(u=(()=>{var m=a.URL||a.webkitURL||null,S=n.toString();return p.BLOB_URL||(p.BLOB_URL=m.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",S,")();"],{type:"text/javascript"})))})(),(u=new a.Worker(u)).onmessage=vt,u.id=q++,Y[u.id]=u)})()).userStep=r.step,i.userChunk=r.chunk,i.userComplete=r.complete,i.userError=r.error,r.step=T(r.step),r.chunk=T(r.chunk),r.complete=T(r.complete),r.error=T(r.error),delete r.worker,i.postMessage({input:e,config:r,workerId:i.id})},p.unparse=function(e,r){var i=!1,u=!0,m=",",S=`\r
9
- `,y='"',d=y+y,f=!1,o=null,c=!1,l=((()=>{if(typeof r=="object"){if(typeof r.delimiter!="string"||p.BAD_DELIMITERS.filter(function(w){return r.delimiter.indexOf(w)!==-1}).length||(m=r.delimiter),typeof r.quotes!="boolean"&&typeof r.quotes!="function"&&!Array.isArray(r.quotes)||(i=r.quotes),typeof r.skipEmptyLines!="boolean"&&typeof r.skipEmptyLines!="string"||(f=r.skipEmptyLines),typeof r.newline=="string"&&(S=r.newline),typeof r.quoteChar=="string"&&(y=r.quoteChar),typeof r.header=="boolean"&&(u=r.header),Array.isArray(r.columns)){if(r.columns.length===0)throw new Error("Option columns is empty");o=r.columns}r.escapeChar!==void 0&&(d=r.escapeChar+y),r.escapeFormulae instanceof RegExp?c=r.escapeFormulae:typeof r.escapeFormulae=="boolean"&&r.escapeFormulae&&(c=/^[=+\-@\t\r].*$/)}})(),new RegExp(ot(y),"g"));if(typeof e=="string"&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return v(null,e,f);if(typeof e[0]=="object")return v(o||Object.keys(e[0]),e,f)}else if(typeof e=="object")return typeof e.data=="string"&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||o),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:typeof e.data[0]=="object"?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||typeof e.data[0]=="object"||(e.data=[e.data])),v(e.fields||[],e.data||[],f);throw new Error("Unable to serialize unrecognized input");function v(w,h,M){var C="",j=(typeof w=="string"&&(w=JSON.parse(w)),typeof h=="string"&&(h=JSON.parse(h)),Array.isArray(w)&&0<w.length),B=!Array.isArray(h[0]);if(j&&u){for(var b=0;b<w.length;b++)0<b&&(C+=m),C+=g(w[b],b);0<h.length&&(C+=S)}for(var x=0;x<h.length;x++){var O=(j?w:h[x]).length,k=!1,A=j?Object.keys(h[x]).length===0:h[x].length===0;if(M&&!j&&(k=M==="greedy"?h[x].join("").trim()==="":h[x].length===1&&h[x][0].length===0),M==="greedy"&&j){for(var P=[],I=0;I<O;I++){var F=B?w[I]:I;P.push(h[x][F])}k=P.join("").trim()===""}if(!k){for(var $=0;$<O;$++){0<$&&!A&&(C+=m);var nt=j&&B?w[$]:$;C+=g(h[x][nt],$)}x<h.length-1&&(!M||0<O&&!A)&&(C+=S)}}return C}function g(w,h){var M,C;return w==null?"":w.constructor===Date?JSON.stringify(w).slice(1,25):(C=!1,c&&typeof w=="string"&&c.test(w)&&(w="'"+w,C=!0),M=w.toString().replace(l,d),(C=C||i===!0||typeof i=="function"&&i(w,h)||Array.isArray(i)&&i[h]||((j,B)=>{for(var b=0;b<B.length;b++)if(-1<j.indexOf(B[b]))return!0;return!1})(M,p.BAD_DELIMITERS)||-1<M.indexOf(m)||M.charAt(0)===" "||M.charAt(M.length-1)===" ")?y+M+y:M)}},p.RECORD_SEP="",p.UNIT_SEP="",p.BYTE_ORDER_MARK="\uFEFF",p.BAD_DELIMITERS=["\r",`
10
- `,'"',p.BYTE_ORDER_MARK],p.WORKERS_SUPPORTED=!D&&!!a.Worker,p.NODE_STREAM_INPUT=1,p.LocalChunkSize=10485760,p.RemoteChunkSize=5242880,p.DefaultDelimiter=",",p.Parser=gt,p.ParserHandle=rt,p.NetworkStreamer=z,p.FileStreamer=J,p.StringStreamer=N,p.ReadableStreamStreamer=G,a.jQuery&&((_=a.jQuery).fn.parse=function(e){var r=e.config||{},i=[];return this.each(function(S){if(!(_(this).prop("tagName").toUpperCase()==="INPUT"&&_(this).attr("type").toLowerCase()==="file"&&a.FileReader)||!this.files||this.files.length===0)return!0;for(var y=0;y<this.files.length;y++)i.push({file:this.files[y],inputElem:this,instanceConfig:_.extend({},r)})}),u(),this;function u(){if(i.length===0)T(e.complete)&&e.complete();else{var S,y,d,f,o=i[0];if(T(e.before)){var c=e.before(o.file,o.inputElem);if(typeof c=="object"){if(c.action==="abort")return S="AbortError",y=o.file,d=o.inputElem,f=c.reason,void(T(e.error)&&e.error({name:S},y,d,f));if(c.action==="skip")return void m();typeof c.config=="object"&&(o.instanceConfig=_.extend(o.instanceConfig,c.config))}else if(c==="skip")return void m()}var l=o.instanceConfig.complete;o.instanceConfig.complete=function(v){T(l)&&l(v,o.file,o.inputElem),m()},p.parse(o.file,o.instanceConfig)}}function m(){i.splice(0,1),u()}}),R&&(a.onmessage=function(e){e=e.data,p.WORKER_ID===void 0&&e&&(p.WORKER_ID=e.workerId),typeof e.input=="string"?a.postMessage({workerId:p.WORKER_ID,results:p.parse(e.input,e.config),finished:!0}):(a.File&&e.input instanceof File||e.input instanceof Object)&&(e=p.parse(e.input,e.config))&&a.postMessage({workerId:p.WORKER_ID,results:e,finished:!0})}),(z.prototype=Object.create(U.prototype)).constructor=z,(J.prototype=Object.create(U.prototype)).constructor=J,(N.prototype=Object.create(N.prototype)).constructor=N,(G.prototype=Object.create(U.prototype)).constructor=G,p})})(St)),St.exports}var Nt=Bt();const qt=Mt(Nt),{parse:Kt,unparse:Jt}=qt;class Qt{static unparse(t,n){return Jt(t,n)}static parse(t){return new Promise((n,a)=>{Kt(t,{header:!0,complete:_=>n(_),error:_=>a(_)})})}}async function zt(s,t,n){const a=n?.mimeType??Zt(t),_=Vt(s,a);if("showSaveFilePicker"in window&&n?.showSaveFilePicker)try{const q=await(await window.showSaveFilePicker({suggestedName:t,types:[{description:"Datei",accept:{[a]:[`.${jt(t)}`]}}]})).createWritable();await q.write(_),await q.close();return}catch{}const D=URL.createObjectURL(_),R=document.createElement("a");R.href=D,R.download=t,R.rel="noopener",R.style.display="none",document.body.appendChild(R),Gt(R),window.setTimeout(()=>{document.body.removeChild(R),URL.revokeObjectURL(D)},0),Xt()&&window.open(D,"_blank","noopener,noreferrer")}function Vt(s,t){if(s instanceof Blob)return s.type?s:new Blob([s],{type:t});if(s instanceof ArrayBuffer||s instanceof Uint8Array){const n=s instanceof Uint8Array?s:new Uint8Array(s);return new Blob([n],{type:t})}return new Blob([s],{type:t||"text/plain;charset=utf-8"})}function Zt(s){switch(jt(s).toLowerCase()){case"txt":return"text/plain;charset=utf-8";case"csv":return"text/csv;charset=utf-8";case"json":return"application/json;charset=utf-8";case"pdf":return"application/pdf";case"png":return"image/png";case"jpg":case"jpeg":return"image/jpeg";case"svg":return"image/svg+xml";case"zip":return"application/zip";default:return"application/octet-stream"}}function jt(s){const t=s.lastIndexOf(".");return t>=0&&t<s.length-1?s.slice(t+1):""}function Gt(s){const t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),s.dispatchEvent(t)}function Xt(){const s=navigator.userAgent,t=/iPad|iPhone|iPod/.test(s),n=/^((?!chrome|android).)*safari/i.test(s);return t||n}class Ht{static getEnumValue(t,n){if(n in t)return t[n];throw Error(`${n} not found in ${t}`)}static getKeyValues(t){return Object.keys(t).filter(n=>!isNaN(Number(n))).map(n=>({key:Number(n),value:t[n]}))}}class te{static getFileExtension(t){let n="";const a=t.lastIndexOf(".");return a>0&&a<t.length-1&&(n=`.${t.substring(a+1).toLowerCase()}`),n}static readAsText(t){const n=new FileReader;return new Promise((a,_)=>{n.onload=()=>{n.onload=null,n.onerror=null,typeof n.result=="string"?a(n.result):_(new Error("Unexpected result type"))},n.onerror=()=>{const D=n.error??new Error("FileReader error");n.onload=null,n.onerror=null,_(D)},n.readAsText(t)})}static readAsArrayBuffer(t){const n=new FileReader;return new Promise((a,_)=>{n.onload=()=>{n.onload=null,n.onerror=null,n.result instanceof ArrayBuffer?a(n.result):_(new Error("Unexpected result type"))},n.onerror=()=>{const D=n.error??new Error("FileReader error");n.onload=null,n.onerror=null,_(D)},n.readAsArrayBuffer(t)})}static readAsDataUrl(t){const n=new FileReader;return new Promise((a,_)=>{n.onload=D=>{a(D)},n.onerror=D=>_(D),n.readAsDataURL(t)})}static formatFileSize(t,n=2,a){if(t===0)return"0 Bytes";const _=1024,D=["Bytes","KB","MB","GB","TB"];let R=Math.floor(Math.log(t)/Math.log(_));a&&D.includes(a)&&(R=D.indexOf(a));const Y=t/Math.pow(_,R);return`${parseFloat(Y.toFixed(n))} ${D[R]}`}static save(t,n,a){const _=new Blob([t],{type:a});zt(_,n)}}class Et{static set(t,n){localStorage.setItem(t,JSON.stringify(n))}static get(t){let n=null;const a=localStorage.getItem(t);return a&&(n=JSON.parse(a)),n}static remove(t){const n=localStorage.getItem(t)!==null;return n&&localStorage.removeItem(t),n}static removeAll(){localStorage.clear()}static getKeysBy(t){return Object.keys(localStorage).filter(n=>n.startsWith(t))}}var pt=(s=>(s.log="log",s.info="info",s.warn="warn",s.debug="debug",s.error="error",s))(pt||{});class Z{static listeners=new Set;static enabled=!0;static log(...t){Z.doLog(pt.log,t)}static info(...t){Z.doLog(pt.info,t)}static warn(...t){Z.doLog(pt.warn,t)}static debug(...t){Z.doLog(pt.debug,t)}static error(...t){Z.doLog(pt.error,t)}static clearListeners(){Z.listeners.clear()}static setEnabled(t){Z.enabled=t}static doLog(t,n){if(!Z.enabled)return;const a={type:t,args:n,timestamp:new Date().toISOString()};for(const _ of Z.listeners)try{if(_(a)===!1)return}catch{}console[t].apply(console,n)}static onLog(t,n=!1){if(n){const a=_=>{try{return t(_)}finally{Z.listeners.delete(a)}};return Z.listeners.add(a),()=>Z.listeners.delete(a)}return Z.listeners.add(t),()=>Z.listeners.delete(t)}}const ee=(s,t,n)=>s.localeCompare(t)*(n?1:-1),re=(s,t)=>s<t?-1:s===t?0:1,ne=(s,t,n)=>re(s,t)*(n?1:-1),ie=(s,t,n)=>{let a=0;return typeof s=="string"&&typeof t=="string"?a=ee(s,t,n):a=ne(s,t,n),a},Pt=(s,t,n,a)=>{const _=n(s),D=n(t);return ie(_,D,a)};class se{static get(t){return Et.get(t)}static set(t,n){Et.set(t,n)}static remove(t){Et.remove(t)}}class L{static listeners=new Set;static initialized=!1;static resizeTimeout=null;static lastWidth=null;static onResize(t){return L.initialized||L.init(),L.listeners.add(t),()=>L.off(t)}static handleResize=()=>{L.resizeTimeout!==null&&(window.clearTimeout(L.resizeTimeout),L.resizeTimeout=null),L.resizeTimeout=window.setTimeout(()=>{const t=window.innerWidth;if(L.resizeTimeout=null,t!==L.lastWidth){L.lastWidth=t;for(const n of L.listeners)n(t)}},150)};static init(){if(!L.initialized){if(typeof window>"u")throw new Error("WindowResizeHelper is only available in browser environments");L.lastWidth=window.innerWidth,window.addEventListener("resize",L.handleResize,{passive:!0}),L.initialized=!0}}static off(t){L.initialized&&(L.listeners.delete(t),L.listeners.size===0&&(L.resizeTimeout!==null&&(window.clearTimeout(L.resizeTimeout),L.resizeTimeout=null),window.removeEventListener("resize",L.handleResize),L.initialized=!1,L.lastWidth=null))}}function ae(){Array.prototype.distinct=function(s){return s?this.filter((n,a,_)=>_.findIndex(D=>s(D,n))===a):this.filter((n,a,_)=>_.indexOf(n)===a)},Array.prototype.filterBy=function(s){return this.filter(t=>s(t))},Array.prototype.first=function(){return this.length>0?this[0]:null},Array.prototype.groupBy=function(s){return this.reduce((t,n)=>{const a=s(n);return t[a]||(t[a]=[]),t[a].push(n),t},{})},Array.prototype.orderBy=function(s,t=!0){return this?.sort((n,a)=>Pt(n,a,s,t)),this},Array.prototype.removeBy=function(s,t){return this.filter(n=>s(n)!==t)}}var xt={exports:{}},oe=xt.exports,At;function ue(){return At||(At=1,(function(s,t){(function(n,a){s.exports=a()})(oe,(function(){var n=1e3,a=6e4,_=36e5,D="millisecond",R="second",Y="minute",q="hour",p="day",U="week",z="month",J="quarter",N="year",G="date",rt="Invalid Date",ot=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,gt=/\[([^\]]+)]|YYYY|YY|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,vt={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(y){var d=["th","st","nd","rd"],f=y%100;return"["+y+(d[(f-20)%10]||d[f]||d[0])+"]"}},ft=function(y,d,f){var o=String(y);return!o||o.length>=d?y:""+Array(d+1-o.length).join(f)+y},bt={s:ft,z:function(y){var d=-y.utcOffset(),f=Math.abs(d),o=Math.floor(f/60),c=f%60;return(d<=0?"+":"-")+ft(o,2,"0")+":"+ft(c,2,"0")},m:function y(d,f){if(d.date()<f.date())return-y(f,d);var o=12*(f.year()-d.year())+(f.month()-d.month()),c=d.clone().add(o,z),l=f-c<0,v=d.clone().add(o+(l?-1:1),z);return+(-(o+(f-c)/(l?c-v:v-c))||0)},a:function(y){return y<0?Math.ceil(y)||0:Math.floor(y)},p:function(y){return{M:z,y:N,w:U,d:p,D:G,h:q,m:Y,s:R,ms:D,Q:J}[y]||String(y||"").toLowerCase().replace(/s$/,"")},u:function(y){return y===void 0}},ut="en",Q={};Q[ut]=vt;var T="$isDayjsObject",e=function(y){return y instanceof m||!(!y||!y[T])},r=function y(d,f,o){var c;if(!d)return ut;if(typeof d=="string"){var l=d.toLowerCase();Q[l]&&(c=l),f&&(Q[l]=f,c=l);var v=d.split("-");if(!c&&v.length>1)return y(v[0])}else{var g=d.name;Q[g]=d,c=g}return!o&&c&&(ut=c),c||!o&&ut},i=function(y,d){if(e(y))return y.clone();var f=typeof d=="object"?d:{};return f.date=y,f.args=arguments,new m(f)},u=bt;u.l=r,u.i=e,u.w=function(y,d){return i(y,{locale:d.$L,utc:d.$u,x:d.$x,$offset:d.$offset})};var m=(function(){function y(f){this.$L=r(f.locale,null,!0),this.parse(f),this.$x=this.$x||f.x||{},this[T]=!0}var d=y.prototype;return d.parse=function(f){this.$d=(function(o){var c=o.date,l=o.utc;if(c===null)return new Date(NaN);if(u.u(c))return new Date;if(c instanceof Date)return new Date(c);if(typeof c=="string"&&!/Z$/i.test(c)){var v=c.match(ot);if(v){var g=v[2]-1||0,w=(v[7]||"0").substring(0,3);return l?new Date(Date.UTC(v[1],g,v[3]||1,v[4]||0,v[5]||0,v[6]||0,w)):new Date(v[1],g,v[3]||1,v[4]||0,v[5]||0,v[6]||0,w)}}return new Date(c)})(f),this.init()},d.init=function(){var f=this.$d;this.$y=f.getFullYear(),this.$M=f.getMonth(),this.$D=f.getDate(),this.$W=f.getDay(),this.$H=f.getHours(),this.$m=f.getMinutes(),this.$s=f.getSeconds(),this.$ms=f.getMilliseconds()},d.$utils=function(){return u},d.isValid=function(){return this.$d.toString()!==rt},d.isSame=function(f,o){var c=i(f);return this.startOf(o)<=c&&c<=this.endOf(o)},d.isAfter=function(f,o){return i(f)<this.startOf(o)},d.isBefore=function(f,o){return this.endOf(o)<i(f)},d.$g=function(f,o,c){return u.u(f)?this[o]:this.set(c,f)},d.unix=function(){return Math.floor(this.valueOf()/1e3)},d.valueOf=function(){return this.$d.getTime()},d.startOf=function(f,o){var c=this,l=!!u.u(o)||o,v=u.p(f),g=function(x,O){var k=u.w(c.$u?Date.UTC(c.$y,O,x):new Date(c.$y,O,x),c);return l?k:k.endOf(p)},w=function(x,O){return u.w(c.toDate()[x].apply(c.toDate("s"),(l?[0,0,0,0]:[23,59,59,999]).slice(O)),c)},h=this.$W,M=this.$M,C=this.$D,j="set"+(this.$u?"UTC":"");switch(v){case N:return l?g(1,0):g(31,11);case z:return l?g(1,M):g(0,M+1);case U:var B=this.$locale().weekStart||0,b=(h<B?h+7:h)-B;return g(l?C-b:C+(6-b),M);case p:case G:return w(j+"Hours",0);case q:return w(j+"Minutes",1);case Y:return w(j+"Seconds",2);case R:return w(j+"Milliseconds",3);default:return this.clone()}},d.endOf=function(f){return this.startOf(f,!1)},d.$set=function(f,o){var c,l=u.p(f),v="set"+(this.$u?"UTC":""),g=(c={},c[p]=v+"Date",c[G]=v+"Date",c[z]=v+"Month",c[N]=v+"FullYear",c[q]=v+"Hours",c[Y]=v+"Minutes",c[R]=v+"Seconds",c[D]=v+"Milliseconds",c)[l],w=l===p?this.$D+(o-this.$W):o;if(l===z||l===N){var h=this.clone().set(G,1);h.$d[g](w),h.init(),this.$d=h.set(G,Math.min(this.$D,h.daysInMonth())).$d}else g&&this.$d[g](w);return this.init(),this},d.set=function(f,o){return this.clone().$set(f,o)},d.get=function(f){return this[u.p(f)]()},d.add=function(f,o){var c,l=this;f=Number(f);var v=u.p(o),g=function(M){var C=i(l);return u.w(C.date(C.date()+Math.round(M*f)),l)};if(v===z)return this.set(z,this.$M+f);if(v===N)return this.set(N,this.$y+f);if(v===p)return g(1);if(v===U)return g(7);var w=(c={},c[Y]=a,c[q]=_,c[R]=n,c)[v]||1,h=this.$d.getTime()+f*w;return u.w(h,this)},d.subtract=function(f,o){return this.add(-1*f,o)},d.format=function(f){var o=this,c=this.$locale();if(!this.isValid())return c.invalidDate||rt;var l=f||"YYYY-MM-DDTHH:mm:ssZ",v=u.z(this),g=this.$H,w=this.$m,h=this.$M,M=c.weekdays,C=c.months,j=c.meridiem,B=function(O,k,A,P){return O&&(O[k]||O(o,l))||A[k].slice(0,P)},b=function(O){return u.s(g%12||12,O,"0")},x=j||function(O,k,A){var P=O<12?"AM":"PM";return A?P.toLowerCase():P};return l.replace(gt,(function(O,k){return k||(function(A){switch(A){case"YY":return String(o.$y).slice(-2);case"YYYY":return u.s(o.$y,4,"0");case"M":return h+1;case"MM":return u.s(h+1,2,"0");case"MMM":return B(c.monthsShort,h,C,3);case"MMMM":return B(C,h);case"D":return o.$D;case"DD":return u.s(o.$D,2,"0");case"d":return String(o.$W);case"dd":return B(c.weekdaysMin,o.$W,M,2);case"ddd":return B(c.weekdaysShort,o.$W,M,3);case"dddd":return M[o.$W];case"H":return String(g);case"HH":return u.s(g,2,"0");case"h":return b(1);case"hh":return b(2);case"a":return x(g,w,!0);case"A":return x(g,w,!1);case"m":return String(w);case"mm":return u.s(w,2,"0");case"s":return String(o.$s);case"ss":return u.s(o.$s,2,"0");case"SSS":return u.s(o.$ms,3,"0");case"Z":return v}return null})(O)||v.replace(":","")}))},d.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},d.diff=function(f,o,c){var l,v=this,g=u.p(o),w=i(f),h=(w.utcOffset()-this.utcOffset())*a,M=this-w,C=function(){return u.m(v,w)};switch(g){case N:l=C()/12;break;case z:l=C();break;case J:l=C()/3;break;case U:l=(M-h)/6048e5;break;case p:l=(M-h)/864e5;break;case q:l=M/_;break;case Y:l=M/a;break;case R:l=M/n;break;default:l=M}return c?l:u.a(l)},d.daysInMonth=function(){return this.endOf(z).$D},d.$locale=function(){return Q[this.$L]},d.locale=function(f,o){if(!f)return this.$L;var c=this.clone(),l=r(f,o,!0);return l&&(c.$L=l),c},d.clone=function(){return u.w(this.$d,this)},d.toDate=function(){return new Date(this.valueOf())},d.toJSON=function(){return this.isValid()?this.toISOString():null},d.toISOString=function(){return this.$d.toISOString()},d.toString=function(){return this.$d.toUTCString()},y})(),S=m.prototype;return i.prototype=S,[["$ms",D],["$s",R],["$m",Y],["$H",q],["$W",p],["$M",z],["$y",N],["$D",G]].forEach((function(y){S[y[1]]=function(d){return this.$g(d,y[0],y[1])}})),i.extend=function(y,d){return y.$i||(y(d,m,i),y.$i=!0),i},i.locale=r,i.isDayjs=e,i.unix=function(y){return i(1e3*y)},i.en=Q[ut],i.Ls=Q,i.p={},i}))})(xt)),xt.exports}var ce=ue();const tt=Mt(ce);var Ot={exports:{}},le=Ot.exports,It;function fe(){return It||(It=1,(function(s,t){(function(n,a){s.exports=a()})(le,(function(){var n="day";return function(a,_,D){var R=function(p){return p.add(4-p.isoWeekday(),n)},Y=_.prototype;Y.isoWeekYear=function(){return R(this).year()},Y.isoWeek=function(p){if(!this.$utils().u(p))return this.add(7*(p-this.isoWeek()),n);var U,z,J,N,G=R(this),rt=(U=this.isoWeekYear(),z=this.$u,J=(z?D.utc:D)().year(U).startOf("year"),N=4-J.isoWeekday(),J.isoWeekday()>4&&(N+=7),J.add(N,n));return G.diff(rt,"week")+1},Y.isoWeekday=function(p){return this.$utils().u(p)?this.day()||7:this.day(this.day()%7?p:p-7)};var q=Y.startOf;Y.startOf=function(p,U){var z=this.$utils(),J=!!z.u(U)||U;return z.p(p)==="isoweek"?J?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):q.bind(this)(p,U)}}}))})(Ot)),Ot.exports}var de=fe();const he=Mt(de);var Dt={exports:{}},pe=Dt.exports,Lt;function ge(){return Lt||(Lt=1,(function(s,t){(function(n,a){s.exports=a()})(pe,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(a,_,D){var R=_.prototype,Y=R.format;D.en.formats=n,R.format=function(q){q===void 0&&(q="YYYY-MM-DDTHH:mm:ssZ");var p=this.$locale().formats,U=(function(z,J){return z.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(N,G,rt){var ot=rt&&rt.toUpperCase();return G||J[rt]||n[rt]||J[ot].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(gt,vt,ft){return vt||ft.slice(1)}))}))})(q,p===void 0?{}:p);return Y.call(this,U)}}}))})(Dt)),Dt.exports}var me=ge();const ye=Mt(me);tt.extend(ye);tt.extend(he);function ve(){Date.prototype.add=function(s,t){return tt(this).add(s,t).toDate()},Date.prototype.diff=function(s,t){return tt(this).diff(s,t)},Date.prototype.endOf=function(s){return tt(this).endOf(s).toDate()},Date.prototype.firstDayOfMonth=function(){return tt(this).startOf("month").toDate()},Date.prototype.format=function(s){return tt(this).format(s)},Date.prototype.isAfter=function(s,t){return tt(this).isAfter(s,t)},Date.prototype.isBefore=function(s,t){return tt(this).isBefore(s,t)},Date.prototype.isValid=function(){return tt(this).isValid()},Date.prototype.isoWeek=function(){return tt(this).isoWeek()},Date.prototype.subtract=function(s,t){return tt(this).subtract(s,t).toDate()},Date.prototype.lastDayOfMonth=function(){return tt(this).endOf("month").toDate()},Date.prototype.set=function(s,t){return tt(this).set(s,t).toDate()},Date.prototype.startOf=function(s){return tt(this).startOf(s).toDate()}}function we(){String.prototype.capitalize=function(){return this.charAt(0).toUpperCase()+this.slice(1)},String.prototype.isNumber=function(){return!isNaN(Number(this))&&this.trim()!==""},String.prototype.isEmpty=function(){return this===void 0||!this||this.length===0},String.prototype.stripTags=function(){return new DOMParser().parseFromString(this.toString(),"text/html").body.textContent||""}}class ke{resizeListener=null;onResizeCallbacks=new Set;emitTimeoutId=null;duplicateThresholdMs=60;constructor(){typeof window<"u"&&(this.resizeListener=this.onResize,window.addEventListener("resize",this.resizeListener,{passive:!0}))}destroy(){typeof window<"u"&&this.resizeListener!==null&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null),this.emitTimeoutId!==null&&(clearTimeout(this.emitTimeoutId),this.emitTimeoutId=null),this.onResizeCallbacks.clear()}onResizeChange(t){this.onResizeCallbacks.add(t)}offResizeChange(t){this.onResizeCallbacks.delete(t)}onResize=()=>{if(typeof window>"u")return;const t=window.innerWidth;this.emitTimeoutId!==null&&clearTimeout(this.emitTimeoutId),this.emitTimeoutId=window.setTimeout(()=>{this.emitTimeoutId=null;const n=ht.getBreakpointByScreenWidth(t);for(const a of this.onResizeCallbacks)a(t,n)},this.duplicateThresholdMs)}}exports.BreakPointHelper=ht;exports.BreakPoints=Ft;exports.BrowserHelper=H;exports.BrowserService=ke;exports.BrowserType=X;exports.CsvHelper=Qt;exports.EnumHelper=Ht;exports.FileHelper=te;exports.LocalStorageHelper=Et;exports.LoggerHelper=Z;exports.LoggerType=pt;exports.ScreenHelper=_t;exports.TokenHelper=se;exports.WindowResizeHelper=L;exports.copyToClipboard=Ut;exports.initArrayExtensions=ae;exports.initDateExtensions=ve;exports.initStringExtensions=we;exports.saveAs=zt;exports.sortHelper=Pt;
8
+ `);var l=0,v=!1;this.parse=function(g,w,h){if(typeof g!="string")throw new Error("Input must be a string");var M=g.length,C=r.length,j=i.length,N=u.length,b=T(m),x=[],O=[],k=[],A=l=0;if(!g)return Z();if(y||y!==!1&&g.indexOf(o)===-1){for(var P=g.split(i),I=0;I<P.length;I++){if(k=P[I],l+=k.length,I!==P.length-1)l+=i.length;else if(h)return Z();if(!u||k.substring(0,N)!==u){if(b){if(x=[],ht(k.split(r)),at(),v)return Z()}else ht(k.split(r));if(S&&S<=I)return x=x.slice(0,S),Z(!0)}}return Z()}for(var F=g.indexOf(r,l),$=g.indexOf(i,l),it=new RegExp(ut(c)+ut(o),"g"),E=g.indexOf(o,l);;)if(g[l]===o)for(E=l,l++;;){if((E=g.indexOf(o,E+1))===-1)return h||O.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:x.length,index:l}),st();if(E===M-1)return st(g.substring(l,E).replace(it,o));if(o===c&&g[E+1]===c)E++;else if(o===c||E===0||g[E-1]!==c){F!==-1&&F<E+1&&(F=g.indexOf(r,E+1));var U=yt(($=$!==-1&&$<E+1?g.indexOf(i,E+1):$)===-1?F:Math.min(F,$));if(g.substr(E+1+U,C)===r){k.push(g.substring(l,E).replace(it,o)),g[l=E+1+U+C]!==o&&(E=g.indexOf(o,l)),F=g.indexOf(r,l),$=g.indexOf(i,l);break}if(U=yt($),g.substring(E+1+U,E+1+U+j)===i){if(k.push(g.substring(l,E).replace(it,o)),kt(E+1+U+j),F=g.indexOf(r,l),E=g.indexOf(o,l),b&&(at(),v))return Z();if(S&&x.length>=S)return Z(!0);break}O.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:x.length,index:l}),E++}}else if(u&&k.length===0&&g.substring(l,l+N)===u){if($===-1)return Z();l=$+j,$=g.indexOf(i,l),F=g.indexOf(r,l)}else if(F!==-1&&(F<$||$===-1))k.push(g.substring(l,F)),l=F+C,F=g.indexOf(r,l);else{if($===-1)break;if(k.push(g.substring(l,$)),kt($+j),b&&(at(),v))return Z();if(S&&x.length>=S)return Z(!0)}return st();function ht(J){x.push(J),A=l}function yt(J){var rt=0;return rt=J!==-1&&(J=g.substring(E+1,J))&&J.trim()===""?J.length:rt}function st(J){return h||(J===void 0&&(J=g.substring(l)),k.push(J),l=M,ht(k),b&&at()),Z()}function kt(J){l=J,ht(k),k=[],$=g.indexOf(i,l)}function Z(J){if(e.header&&!w&&x.length&&!f){var rt=x[0],lt=Object.create(null),Ct=new Set(rt);let Tt=!1;for(let vt=0;vt<rt.length;vt++){let ot=rt[vt];if(lt[ot=T(e.transformHeader)?e.transformHeader(ot,vt):ot]){let _t,Rt=lt[ot];for(;_t=ot+"_"+Rt,Rt++,Ct.has(_t););Ct.add(_t),rt[vt]=_t,lt[ot]++,Tt=!0,(d=d===null?{}:d)[_t]=ot}else lt[ot]=1,rt[vt]=ot;Ct.add(ot)}Tt&&console.warn("Duplicate headers found and renamed."),f=!0}return{data:x,errors:O,meta:{delimiter:r,linebreak:i,aborted:v,truncated:!!J,cursor:A+(w||0),renamedHeaders:d}}}function at(){m(Z()),x=[],O=[]}},this.abort=function(){v=!0},this.getCharIndex=function(){return l}}function wt(e){var r=e.data,i=B[r.workerId],u=!1;if(r.error)i.userError(r.error,r.file);else if(r.results&&r.results.data){var m={abort:function(){u=!0,dt(r.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:St,resume:St};if(T(i.userStep)){for(var S=0;S<r.results.data.length&&(i.userStep({data:r.results.data[S],errors:r.results.errors,meta:r.results.meta},m),!u);S++);delete r.results}else T(i.userChunk)&&(i.userChunk(r.results,m,r.file),delete r.results)}r.finished&&!u&&dt(r.workerId,r.results)}function dt(e,r){var i=B[e];T(i.userComplete)&&i.userComplete(r),i.terminate(),delete B[e]}function St(){throw new Error("Not implemented.")}function ct(e){if(typeof e!="object"||e===null)return e;var r,i=Array.isArray(e)?[]:{};for(r in e)i[r]=ct(e[r]);return i}function V(e,r){return function(){e.apply(r,arguments)}}function T(e){return typeof e=="function"}return p.parse=function(e,r){var i=(r=r||{}).dynamicTyping||!1;if(T(i)&&(r.dynamicTypingFunction=i,i={}),r.dynamicTyping=i,r.transform=!!T(r.transform)&&r.transform,!r.worker||!p.WORKERS_SUPPORTED)return i=null,p.NODE_STREAM_INPUT,typeof e=="string"?(e=(u=>u.charCodeAt(0)!==65279?u:u.slice(1))(e),i=new(r.download?z:q)(r)):e.readable===!0&&T(e.read)&&T(e.on)?i=new X(r):(a.File&&e instanceof File||e instanceof Object)&&(i=new Q(r)),i.stream(e);(i=(()=>{var u;return!!p.WORKERS_SUPPORTED&&(u=(()=>{var m=a.URL||a.webkitURL||null,S=n.toString();return p.BLOB_URL||(p.BLOB_URL=m.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",S,")();"],{type:"text/javascript"})))})(),(u=new a.Worker(u)).onmessage=wt,u.id=K++,B[u.id]=u)})()).userStep=r.step,i.userChunk=r.chunk,i.userComplete=r.complete,i.userError=r.error,r.step=T(r.step),r.chunk=T(r.chunk),r.complete=T(r.complete),r.error=T(r.error),delete r.worker,i.postMessage({input:e,config:r,workerId:i.id})},p.unparse=function(e,r){var i=!1,u=!0,m=",",S=`\r
9
+ `,y='"',d=y+y,f=!1,o=null,c=!1,l=((()=>{if(typeof r=="object"){if(typeof r.delimiter!="string"||p.BAD_DELIMITERS.filter(function(w){return r.delimiter.indexOf(w)!==-1}).length||(m=r.delimiter),typeof r.quotes!="boolean"&&typeof r.quotes!="function"&&!Array.isArray(r.quotes)||(i=r.quotes),typeof r.skipEmptyLines!="boolean"&&typeof r.skipEmptyLines!="string"||(f=r.skipEmptyLines),typeof r.newline=="string"&&(S=r.newline),typeof r.quoteChar=="string"&&(y=r.quoteChar),typeof r.header=="boolean"&&(u=r.header),Array.isArray(r.columns)){if(r.columns.length===0)throw new Error("Option columns is empty");o=r.columns}r.escapeChar!==void 0&&(d=r.escapeChar+y),r.escapeFormulae instanceof RegExp?c=r.escapeFormulae:typeof r.escapeFormulae=="boolean"&&r.escapeFormulae&&(c=/^[=+\-@\t\r].*$/)}})(),new RegExp(ut(y),"g"));if(typeof e=="string"&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return v(null,e,f);if(typeof e[0]=="object")return v(o||Object.keys(e[0]),e,f)}else if(typeof e=="object")return typeof e.data=="string"&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||o),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:typeof e.data[0]=="object"?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||typeof e.data[0]=="object"||(e.data=[e.data])),v(e.fields||[],e.data||[],f);throw new Error("Unable to serialize unrecognized input");function v(w,h,M){var C="",j=(typeof w=="string"&&(w=JSON.parse(w)),typeof h=="string"&&(h=JSON.parse(h)),Array.isArray(w)&&0<w.length),N=!Array.isArray(h[0]);if(j&&u){for(var b=0;b<w.length;b++)0<b&&(C+=m),C+=g(w[b],b);0<h.length&&(C+=S)}for(var x=0;x<h.length;x++){var O=(j?w:h[x]).length,k=!1,A=j?Object.keys(h[x]).length===0:h[x].length===0;if(M&&!j&&(k=M==="greedy"?h[x].join("").trim()==="":h[x].length===1&&h[x][0].length===0),M==="greedy"&&j){for(var P=[],I=0;I<O;I++){var F=N?w[I]:I;P.push(h[x][F])}k=P.join("").trim()===""}if(!k){for(var $=0;$<O;$++){0<$&&!A&&(C+=m);var it=j&&N?w[$]:$;C+=g(h[x][it],$)}x<h.length-1&&(!M||0<O&&!A)&&(C+=S)}}return C}function g(w,h){var M,C;return w==null?"":w.constructor===Date?JSON.stringify(w).slice(1,25):(C=!1,c&&typeof w=="string"&&c.test(w)&&(w="'"+w,C=!0),M=w.toString().replace(l,d),(C=C||i===!0||typeof i=="function"&&i(w,h)||Array.isArray(i)&&i[h]||((j,N)=>{for(var b=0;b<N.length;b++)if(-1<j.indexOf(N[b]))return!0;return!1})(M,p.BAD_DELIMITERS)||-1<M.indexOf(m)||M.charAt(0)===" "||M.charAt(M.length-1)===" ")?y+M+y:M)}},p.RECORD_SEP="",p.UNIT_SEP="",p.BYTE_ORDER_MARK="\uFEFF",p.BAD_DELIMITERS=["\r",`
10
+ `,'"',p.BYTE_ORDER_MARK],p.WORKERS_SUPPORTED=!D&&!!a.Worker,p.NODE_STREAM_INPUT=1,p.LocalChunkSize=10485760,p.RemoteChunkSize=5242880,p.DefaultDelimiter=",",p.Parser=mt,p.ParserHandle=nt,p.NetworkStreamer=z,p.FileStreamer=Q,p.StringStreamer=q,p.ReadableStreamStreamer=X,a.jQuery&&((_=a.jQuery).fn.parse=function(e){var r=e.config||{},i=[];return this.each(function(S){if(!(_(this).prop("tagName").toUpperCase()==="INPUT"&&_(this).attr("type").toLowerCase()==="file"&&a.FileReader)||!this.files||this.files.length===0)return!0;for(var y=0;y<this.files.length;y++)i.push({file:this.files[y],inputElem:this,instanceConfig:_.extend({},r)})}),u(),this;function u(){if(i.length===0)T(e.complete)&&e.complete();else{var S,y,d,f,o=i[0];if(T(e.before)){var c=e.before(o.file,o.inputElem);if(typeof c=="object"){if(c.action==="abort")return S="AbortError",y=o.file,d=o.inputElem,f=c.reason,void(T(e.error)&&e.error({name:S},y,d,f));if(c.action==="skip")return void m();typeof c.config=="object"&&(o.instanceConfig=_.extend(o.instanceConfig,c.config))}else if(c==="skip")return void m()}var l=o.instanceConfig.complete;o.instanceConfig.complete=function(v){T(l)&&l(v,o.file,o.inputElem),m()},p.parse(o.file,o.instanceConfig)}}function m(){i.splice(0,1),u()}}),R&&(a.onmessage=function(e){e=e.data,p.WORKER_ID===void 0&&e&&(p.WORKER_ID=e.workerId),typeof e.input=="string"?a.postMessage({workerId:p.WORKER_ID,results:p.parse(e.input,e.config),finished:!0}):(a.File&&e.input instanceof File||e.input instanceof Object)&&(e=p.parse(e.input,e.config))&&a.postMessage({workerId:p.WORKER_ID,results:e,finished:!0})}),(z.prototype=Object.create(Y.prototype)).constructor=z,(Q.prototype=Object.create(Y.prototype)).constructor=Q,(q.prototype=Object.create(q.prototype)).constructor=q,(X.prototype=Object.create(Y.prototype)).constructor=X,p})})(Et)),Et.exports}var qt=Nt();const Kt=$t(qt),{parse:Jt,unparse:Qt}=Kt;class Vt{static unparse(t,n){return Qt(t,n)}static parse(t){return new Promise((n,a)=>{Jt(t,{header:!0,complete:_=>n(_),error:_=>a(_)})})}}async function jt(s,t,n){const a=n?.mimeType??Gt(t),_=Zt(s,a);if("showSaveFilePicker"in window&&n?.showSaveFilePicker)try{const K=await(await window.showSaveFilePicker({suggestedName:t,types:[{description:"Datei",accept:{[a]:[`.${Pt(t)}`]}}]})).createWritable();await K.write(_),await K.close();return}catch{}const D=URL.createObjectURL(_),R=document.createElement("a");R.href=D,R.download=t,R.rel="noopener",R.style.display="none",document.body.appendChild(R),R.click(),window.setTimeout(()=>{document.body.removeChild(R),URL.revokeObjectURL(D)},0),Xt()&&window.open(D,"_blank","noopener,noreferrer")}function Zt(s,t){if(s instanceof Blob)return s.type?s:new Blob([s],{type:t});if(s instanceof ArrayBuffer||s instanceof Uint8Array){const n=s instanceof Uint8Array?s:new Uint8Array(s);return new Blob([n],{type:t})}return new Blob([s],{type:t||"text/plain;charset=utf-8"})}function Gt(s){switch(Pt(s).toLowerCase()){case"txt":return"text/plain;charset=utf-8";case"csv":return"text/csv;charset=utf-8";case"json":return"application/json;charset=utf-8";case"pdf":return"application/pdf";case"png":return"image/png";case"jpg":case"jpeg":return"image/jpeg";case"svg":return"image/svg+xml";case"zip":return"application/zip";default:return"application/octet-stream"}}function Pt(s){const t=s.lastIndexOf(".");return t>=0&&t<s.length-1?s.slice(t+1):""}function Xt(){const s=navigator.userAgent,t=/iPad|iPhone|iPod/.test(s),n=/^((?!chrome|android).)*safari/i.test(s);return t||n}class Ht{static getEnumValue(t,n){if(n in t)return t[n];throw Error(`${n} not found in ${t}`)}static getKeyValues(t){return Object.keys(t).filter(n=>!isNaN(Number(n))).map(n=>({key:Number(n),value:t[n]}))}}class te{static getFileExtension(t){let n="";const a=t.lastIndexOf(".");return a>0&&a<t.length-1&&(n=`.${t.substring(a+1).toLowerCase()}`),n}static readAsText(t){const n=new FileReader;return new Promise((a,_)=>{n.onload=()=>{n.onload=null,n.onerror=null,typeof n.result=="string"?a(n.result):_(new Error("Unexpected result type"))},n.onerror=()=>{const D=n.error??new Error("FileReader error");n.onload=null,n.onerror=null,_(D)},n.readAsText(t)})}static readAsArrayBuffer(t){const n=new FileReader;return new Promise((a,_)=>{n.onload=()=>{n.onload=null,n.onerror=null,n.result instanceof ArrayBuffer?a(n.result):_(new Error("Unexpected result type"))},n.onerror=()=>{const D=n.error??new Error("FileReader error");n.onload=null,n.onerror=null,_(D)},n.readAsArrayBuffer(t)})}static readAsDataUrl(t){const n=new FileReader;return new Promise((a,_)=>{n.onload=D=>{a(D)},n.onerror=D=>_(D),n.readAsDataURL(t)})}static formatFileSize(t,n=2,a){if(t===0)return"0 Bytes";const _=1024,D=["Bytes","KB","MB","GB","TB"];let R=Math.floor(Math.log(t)/Math.log(_));a&&D.includes(a)&&(R=D.indexOf(a));const B=t/Math.pow(_,R);return`${parseFloat(B.toFixed(n))} ${D[R]}`}static save(t,n,a){const _=new Blob([t],{type:a});jt(_,n)}}class xt{static set(t,n){localStorage.setItem(t,JSON.stringify(n))}static get(t){let n=null;const a=localStorage.getItem(t);return a&&(n=JSON.parse(a)),n}static remove(t){const n=localStorage.getItem(t)!==null;return n&&localStorage.removeItem(t),n}static removeAll(){localStorage.clear()}static getKeysBy(t){return Object.keys(localStorage).filter(n=>n.startsWith(t))}}var gt=(s=>(s.log="log",s.info="info",s.warn="warn",s.debug="debug",s.error="error",s))(gt||{});class G{static listeners=new Set;static enabled=!0;static log(...t){G.doLog(gt.log,t)}static info(...t){G.doLog(gt.info,t)}static warn(...t){G.doLog(gt.warn,t)}static debug(...t){G.doLog(gt.debug,t)}static error(...t){G.doLog(gt.error,t)}static clearListeners(){G.listeners.clear()}static setEnabled(t){G.enabled=t}static doLog(t,n){if(!G.enabled)return;const a={type:t,args:n,timestamp:new Date().toISOString()};for(const _ of G.listeners)try{if(_(a)===!1)return}catch{}console[t].apply(console,n)}static onLog(t,n=!1){if(n){const a=_=>{try{return t(_)}finally{G.listeners.delete(a)}};return G.listeners.add(a),()=>G.listeners.delete(a)}return G.listeners.add(t),()=>G.listeners.delete(t)}}const ee=(s,t,n)=>s.localeCompare(t)*(n?1:-1),re=(s,t)=>s<t?-1:s===t?0:1,ne=(s,t,n)=>re(s,t)*(n?1:-1),ie=(s,t,n)=>{let a=0;return typeof s=="string"&&typeof t=="string"?a=ee(s,t,n):a=ne(s,t,n),a},Yt=(s,t,n,a)=>{const _=n(s),D=n(t);return ie(_,D,a)};class se{static get(t){return xt.get(t)}static set(t,n){xt.set(t,n)}static remove(t){xt.remove(t)}}class L{static listeners=new Set;static initialized=!1;static resizeTimeout=null;static lastWidth=null;static onResize(t){return L.initialized||L.init(),L.listeners.add(t),()=>L.off(t)}static handleResize=()=>{L.resizeTimeout!==null&&(window.clearTimeout(L.resizeTimeout),L.resizeTimeout=null),L.resizeTimeout=window.setTimeout(()=>{const t=window.innerWidth;if(L.resizeTimeout=null,t!==L.lastWidth){L.lastWidth=t;for(const n of L.listeners)n(t)}},150)};static init(){if(!L.initialized){if(typeof window>"u")throw new Error("WindowResizeHelper is only available in browser environments");L.lastWidth=window.innerWidth,window.addEventListener("resize",L.handleResize,{passive:!0}),L.initialized=!0}}static off(t){L.initialized&&(L.listeners.delete(t),L.listeners.size===0&&(L.resizeTimeout!==null&&(window.clearTimeout(L.resizeTimeout),L.resizeTimeout=null),window.removeEventListener("resize",L.handleResize),L.initialized=!1,L.lastWidth=null))}}function W(s,t,n){Object.defineProperty(s,t,{configurable:!0,enumerable:!1,value:n,writable:!0})}function ae(){W(Array.prototype,"distinct",function(s){return s?this.filter((n,a,_)=>_.findIndex(D=>s(D,n))===a):this.filter((n,a,_)=>_.indexOf(n)===a)}),W(Array.prototype,"filterBy",function(s){return this.filter(t=>s(t))}),W(Array.prototype,"first",function(){return this.length>0?this[0]:null}),W(Array.prototype,"groupBy",function(s){return this.reduce((t,n)=>{const a=s(n);return t[a]||(t[a]=[]),t[a].push(n),t},{})}),W(Array.prototype,"orderBy",function(s,t=!0){return this?.sort((n,a)=>Yt(n,a,s,t)),this}),W(Array.prototype,"removeBy",function(s,t){return this.filter(n=>s(n)!==t)})}var Ot={exports:{}},oe=Ot.exports,It;function ue(){return It||(It=1,(function(s,t){(function(n,a){s.exports=a()})(oe,(function(){var n=1e3,a=6e4,_=36e5,D="millisecond",R="second",B="minute",K="hour",p="day",Y="week",z="month",Q="quarter",q="year",X="date",nt="Invalid Date",ut=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,mt=/\[([^\]]+)]|YYYY|YY|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,wt={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(y){var d=["th","st","nd","rd"],f=y%100;return"["+y+(d[(f-20)%10]||d[f]||d[0])+"]"}},dt=function(y,d,f){var o=String(y);return!o||o.length>=d?y:""+Array(d+1-o.length).join(f)+y},St={s:dt,z:function(y){var d=-y.utcOffset(),f=Math.abs(d),o=Math.floor(f/60),c=f%60;return(d<=0?"+":"-")+dt(o,2,"0")+":"+dt(c,2,"0")},m:function y(d,f){if(d.date()<f.date())return-y(f,d);var o=12*(f.year()-d.year())+(f.month()-d.month()),c=d.clone().add(o,z),l=f-c<0,v=d.clone().add(o+(l?-1:1),z);return+(-(o+(f-c)/(l?c-v:v-c))||0)},a:function(y){return y<0?Math.ceil(y)||0:Math.floor(y)},p:function(y){return{M:z,y:q,w:Y,d:p,D:X,h:K,m:B,s:R,ms:D,Q}[y]||String(y||"").toLowerCase().replace(/s$/,"")},u:function(y){return y===void 0}},ct="en",V={};V[ct]=wt;var T="$isDayjsObject",e=function(y){return y instanceof m||!(!y||!y[T])},r=function y(d,f,o){var c;if(!d)return ct;if(typeof d=="string"){var l=d.toLowerCase();V[l]&&(c=l),f&&(V[l]=f,c=l);var v=d.split("-");if(!c&&v.length>1)return y(v[0])}else{var g=d.name;V[g]=d,c=g}return!o&&c&&(ct=c),c||!o&&ct},i=function(y,d){if(e(y))return y.clone();var f=typeof d=="object"?d:{};return f.date=y,f.args=arguments,new m(f)},u=St;u.l=r,u.i=e,u.w=function(y,d){return i(y,{locale:d.$L,utc:d.$u,x:d.$x,$offset:d.$offset})};var m=(function(){function y(f){this.$L=r(f.locale,null,!0),this.parse(f),this.$x=this.$x||f.x||{},this[T]=!0}var d=y.prototype;return d.parse=function(f){this.$d=(function(o){var c=o.date,l=o.utc;if(c===null)return new Date(NaN);if(u.u(c))return new Date;if(c instanceof Date)return new Date(c);if(typeof c=="string"&&!/Z$/i.test(c)){var v=c.match(ut);if(v){var g=v[2]-1||0,w=(v[7]||"0").substring(0,3);return l?new Date(Date.UTC(v[1],g,v[3]||1,v[4]||0,v[5]||0,v[6]||0,w)):new Date(v[1],g,v[3]||1,v[4]||0,v[5]||0,v[6]||0,w)}}return new Date(c)})(f),this.init()},d.init=function(){var f=this.$d;this.$y=f.getFullYear(),this.$M=f.getMonth(),this.$D=f.getDate(),this.$W=f.getDay(),this.$H=f.getHours(),this.$m=f.getMinutes(),this.$s=f.getSeconds(),this.$ms=f.getMilliseconds()},d.$utils=function(){return u},d.isValid=function(){return this.$d.toString()!==nt},d.isSame=function(f,o){var c=i(f);return this.startOf(o)<=c&&c<=this.endOf(o)},d.isAfter=function(f,o){return i(f)<this.startOf(o)},d.isBefore=function(f,o){return this.endOf(o)<i(f)},d.$g=function(f,o,c){return u.u(f)?this[o]:this.set(c,f)},d.unix=function(){return Math.floor(this.valueOf()/1e3)},d.valueOf=function(){return this.$d.getTime()},d.startOf=function(f,o){var c=this,l=!!u.u(o)||o,v=u.p(f),g=function(x,O){var k=u.w(c.$u?Date.UTC(c.$y,O,x):new Date(c.$y,O,x),c);return l?k:k.endOf(p)},w=function(x,O){return u.w(c.toDate()[x].apply(c.toDate("s"),(l?[0,0,0,0]:[23,59,59,999]).slice(O)),c)},h=this.$W,M=this.$M,C=this.$D,j="set"+(this.$u?"UTC":"");switch(v){case q:return l?g(1,0):g(31,11);case z:return l?g(1,M):g(0,M+1);case Y:var N=this.$locale().weekStart||0,b=(h<N?h+7:h)-N;return g(l?C-b:C+(6-b),M);case p:case X:return w(j+"Hours",0);case K:return w(j+"Minutes",1);case B:return w(j+"Seconds",2);case R:return w(j+"Milliseconds",3);default:return this.clone()}},d.endOf=function(f){return this.startOf(f,!1)},d.$set=function(f,o){var c,l=u.p(f),v="set"+(this.$u?"UTC":""),g=(c={},c[p]=v+"Date",c[X]=v+"Date",c[z]=v+"Month",c[q]=v+"FullYear",c[K]=v+"Hours",c[B]=v+"Minutes",c[R]=v+"Seconds",c[D]=v+"Milliseconds",c)[l],w=l===p?this.$D+(o-this.$W):o;if(l===z||l===q){var h=this.clone().set(X,1);h.$d[g](w),h.init(),this.$d=h.set(X,Math.min(this.$D,h.daysInMonth())).$d}else g&&this.$d[g](w);return this.init(),this},d.set=function(f,o){return this.clone().$set(f,o)},d.get=function(f){return this[u.p(f)]()},d.add=function(f,o){var c,l=this;f=Number(f);var v=u.p(o),g=function(M){var C=i(l);return u.w(C.date(C.date()+Math.round(M*f)),l)};if(v===z)return this.set(z,this.$M+f);if(v===q)return this.set(q,this.$y+f);if(v===p)return g(1);if(v===Y)return g(7);var w=(c={},c[B]=a,c[K]=_,c[R]=n,c)[v]||1,h=this.$d.getTime()+f*w;return u.w(h,this)},d.subtract=function(f,o){return this.add(-1*f,o)},d.format=function(f){var o=this,c=this.$locale();if(!this.isValid())return c.invalidDate||nt;var l=f||"YYYY-MM-DDTHH:mm:ssZ",v=u.z(this),g=this.$H,w=this.$m,h=this.$M,M=c.weekdays,C=c.months,j=c.meridiem,N=function(O,k,A,P){return O&&(O[k]||O(o,l))||A[k].slice(0,P)},b=function(O){return u.s(g%12||12,O,"0")},x=j||function(O,k,A){var P=O<12?"AM":"PM";return A?P.toLowerCase():P};return l.replace(mt,(function(O,k){return k||(function(A){switch(A){case"YY":return String(o.$y).slice(-2);case"YYYY":return u.s(o.$y,4,"0");case"M":return h+1;case"MM":return u.s(h+1,2,"0");case"MMM":return N(c.monthsShort,h,C,3);case"MMMM":return N(C,h);case"D":return o.$D;case"DD":return u.s(o.$D,2,"0");case"d":return String(o.$W);case"dd":return N(c.weekdaysMin,o.$W,M,2);case"ddd":return N(c.weekdaysShort,o.$W,M,3);case"dddd":return M[o.$W];case"H":return String(g);case"HH":return u.s(g,2,"0");case"h":return b(1);case"hh":return b(2);case"a":return x(g,w,!0);case"A":return x(g,w,!1);case"m":return String(w);case"mm":return u.s(w,2,"0");case"s":return String(o.$s);case"ss":return u.s(o.$s,2,"0");case"SSS":return u.s(o.$ms,3,"0");case"Z":return v}return null})(O)||v.replace(":","")}))},d.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},d.diff=function(f,o,c){var l,v=this,g=u.p(o),w=i(f),h=(w.utcOffset()-this.utcOffset())*a,M=this-w,C=function(){return u.m(v,w)};switch(g){case q:l=C()/12;break;case z:l=C();break;case Q:l=C()/3;break;case Y:l=(M-h)/6048e5;break;case p:l=(M-h)/864e5;break;case K:l=M/_;break;case B:l=M/a;break;case R:l=M/n;break;default:l=M}return c?l:u.a(l)},d.daysInMonth=function(){return this.endOf(z).$D},d.$locale=function(){return V[this.$L]},d.locale=function(f,o){if(!f)return this.$L;var c=this.clone(),l=r(f,o,!0);return l&&(c.$L=l),c},d.clone=function(){return u.w(this.$d,this)},d.toDate=function(){return new Date(this.valueOf())},d.toJSON=function(){return this.isValid()?this.toISOString():null},d.toISOString=function(){return this.$d.toISOString()},d.toString=function(){return this.$d.toUTCString()},y})(),S=m.prototype;return i.prototype=S,[["$ms",D],["$s",R],["$m",B],["$H",K],["$W",p],["$M",z],["$y",q],["$D",X]].forEach((function(y){S[y[1]]=function(d){return this.$g(d,y[0],y[1])}})),i.extend=function(y,d){return y.$i||(y(d,m,i),y.$i=!0),i},i.locale=r,i.isDayjs=e,i.unix=function(y){return i(1e3*y)},i.en=V[ct],i.Ls=V,i.p={},i}))})(Ot)),Ot.exports}var ce=ue();const et=$t(ce);var Dt={exports:{}},le=Dt.exports,Lt;function fe(){return Lt||(Lt=1,(function(s,t){(function(n,a){s.exports=a()})(le,(function(){var n="day";return function(a,_,D){var R=function(p){return p.add(4-p.isoWeekday(),n)},B=_.prototype;B.isoWeekYear=function(){return R(this).year()},B.isoWeek=function(p){if(!this.$utils().u(p))return this.add(7*(p-this.isoWeek()),n);var Y,z,Q,q,X=R(this),nt=(Y=this.isoWeekYear(),z=this.$u,Q=(z?D.utc:D)().year(Y).startOf("year"),q=4-Q.isoWeekday(),Q.isoWeekday()>4&&(q+=7),Q.add(q,n));return X.diff(nt,"week")+1},B.isoWeekday=function(p){return this.$utils().u(p)?this.day()||7:this.day(this.day()%7?p:p-7)};var K=B.startOf;B.startOf=function(p,Y){var z=this.$utils(),Q=!!z.u(Y)||Y;return z.p(p)==="isoweek"?Q?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):K.bind(this)(p,Y)}}}))})(Dt)),Dt.exports}var de=fe();const he=$t(de);var Mt={exports:{}},pe=Mt.exports,Ft;function ge(){return Ft||(Ft=1,(function(s,t){(function(n,a){s.exports=a()})(pe,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(a,_,D){var R=_.prototype,B=R.format;D.en.formats=n,R.format=function(K){K===void 0&&(K="YYYY-MM-DDTHH:mm:ssZ");var p=this.$locale().formats,Y=(function(z,Q){return z.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(q,X,nt){var ut=nt&&nt.toUpperCase();return X||Q[nt]||n[nt]||Q[ut].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(mt,wt,dt){return wt||dt.slice(1)}))}))})(K,p===void 0?{}:p);return B.call(this,Y)}}}))})(Mt)),Mt.exports}var me=ge();const ye=$t(me);et.extend(ye);et.extend(he);function ve(){W(Date.prototype,"add",function(s,t){return et(this).add(s,t).toDate()}),W(Date.prototype,"diff",function(s,t){return et(this).diff(s,t)}),W(Date.prototype,"endOf",function(s){return et(this).endOf(s).toDate()}),W(Date.prototype,"firstDayOfMonth",function(){return et(this).startOf("month").toDate()}),W(Date.prototype,"format",function(s){return et(this).format(s)}),W(Date.prototype,"isAfter",function(s,t){return et(this).isAfter(s,t)}),W(Date.prototype,"isBefore",function(s,t){return et(this).isBefore(s,t)}),W(Date.prototype,"isValid",function(){return et(this).isValid()}),W(Date.prototype,"isoWeek",function(){return et(this).isoWeek()}),W(Date.prototype,"subtract",function(s,t){return et(this).subtract(s,t).toDate()}),W(Date.prototype,"lastDayOfMonth",function(){return et(this).endOf("month").toDate()}),W(Date.prototype,"set",function(s,t){return et(this).set(s,t).toDate()}),W(Date.prototype,"startOf",function(s){return et(this).startOf(s).toDate()})}function we(){W(String.prototype,"capitalize",function(){return this.charAt(0).toUpperCase()+this.slice(1)}),W(String.prototype,"isNumber",function(){return!isNaN(Number(this))&&this.trim()!==""}),W(String.prototype,"isEmpty",function(){return this===void 0||!this||this.length===0}),W(String.prototype,"stripTags",function(){return new DOMParser().parseFromString(this.toString(),"text/html").body.textContent||""})}class ke{resizeListener=null;onResizeCallbacks=new Set;emitTimeoutId=null;duplicateThresholdMs=60;constructor(){typeof window<"u"&&(this.resizeListener=this.onResize,window.addEventListener("resize",this.resizeListener,{passive:!0}))}destroy(){typeof window<"u"&&this.resizeListener!==null&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null),this.emitTimeoutId!==null&&(clearTimeout(this.emitTimeoutId),this.emitTimeoutId=null),this.onResizeCallbacks.clear()}onResizeChange(t){this.onResizeCallbacks.add(t)}offResizeChange(t){this.onResizeCallbacks.delete(t)}onResize=()=>{if(typeof window>"u")return;const t=window.innerWidth;this.emitTimeoutId!==null&&clearTimeout(this.emitTimeoutId),this.emitTimeoutId=window.setTimeout(()=>{this.emitTimeoutId=null;const n=pt.getBreakpointByScreenWidth(t);for(const a of this.onResizeCallbacks)a(t,n)},this.duplicateThresholdMs)}}exports.BreakPointHelper=pt;exports.BreakPoints=zt;exports.BrowserHelper=tt;exports.BrowserService=ke;exports.BrowserType=H;exports.CsvHelper=Vt;exports.EnumHelper=Ht;exports.FileHelper=te;exports.LocalStorageHelper=xt;exports.LoggerHelper=G;exports.LoggerType=gt;exports.ScreenHelper=bt;exports.TokenHelper=se;exports.WindowResizeHelper=L;exports.copyToClipboard=Wt;exports.initArrayExtensions=ae;exports.initDateExtensions=ve;exports.initStringExtensions=we;exports.saveAs=jt;exports.sortHelper=Yt;