Files
ONE-OS/axhub-make/admin/assets/chunks/vendor-export.js
王冕 a27e3b8e43 feat: sync full workspace including web modules, docs, and configurations to Gitea
Optimized the root .gitignore to exclude virtual environments, node modules,
and temp folders to ensure clean and lightweight version tracking.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-09 18:12:25 +08:00

17 lines
33 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import{c as Je,a as Xe}from"./_commonjsHelpers.js?v=1775123024591";var Ue={exports:{}};/* @license
Papa Parse
v5.5.3
https://github.com/mholt/PapaParse
License: MIT
*/(function(e,t){((s,i)=>{e.exports=i()})(Je,function s(){var i=typeof self<"u"?self:typeof window<"u"?window:i!==void 0?i:{},u,a=!i.document&&!!i.postMessage,c=i.IS_PAPA_WORKER||!1,l={},k=0,g={};function U(r){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(n){var o=we(n);o.chunkSize=parseInt(o.chunkSize),n.step||n.chunk||(o.chunkSize=null),this._handle=new xe(o),(this._handle.streamer=this)._config=o}).call(this,r),this.parseChunk=function(n,o){var f=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<f){let _=this._config.newline;_||(h=this._config.quoteChar||'"',_=this._handle.guessLineEndings(n,h)),n=[...n.split(_).slice(f)].join(_)}this.isFirstChunk&&v(this._config.beforeFirstChunk)&&(h=this._config.beforeFirstChunk(n))!==void 0&&(n=h),this.isFirstChunk=!1,this._halted=!1;var f=this._partialLine+n,h=(this._partialLine="",this._handle.parse(f,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(n=h.meta.cursor,f=(this._finished||(this._partialLine=f.substring(n-this._baseIndex),this._baseIndex=n),h&&h.data&&(this._rowCount+=h.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),c)i.postMessage({results:h,workerId:g.WORKER_ID,finished:f});else if(v(this._config.chunk)&&!o){if(this._config.chunk(h,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=h=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(h.data),this._completeResults.errors=this._completeResults.errors.concat(h.errors),this._completeResults.meta=h.meta),this._completed||!f||!v(this._config.complete)||h&&h.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),f||h&&h.meta.paused||this._nextChunk(),h}this._halted=!0},this._sendError=function(n){v(this._config.error)?this._config.error(n):c&&this._config.error&&i.postMessage({workerId:g.WORKER_ID,error:n,finished:!1})}}function N(r){var n;(r=r||{}).chunkSize||(r.chunkSize=g.RemoteChunkSize),U.call(this,r),this._nextChunk=a?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(o){this._input=o,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(n=new XMLHttpRequest,this._config.withCredentials&&(n.withCredentials=this._config.withCredentials),a||(n.onload=ee(this._chunkLoaded,this),n.onerror=ee(this._chunkError,this)),n.open(this._config.downloadRequestBody?"POST":"GET",this._input,!a),this._config.downloadRequestHeaders){var o,f=this._config.downloadRequestHeaders;for(o in f)n.setRequestHeader(o,f[o])}var h;this._config.chunkSize&&(h=this._start+this._config.chunkSize-1,n.setRequestHeader("Range","bytes="+this._start+"-"+h));try{n.send(this._config.downloadRequestBody)}catch(_){this._chunkError(_.message)}a&&n.status===0&&this._chunkError()}},this._chunkLoaded=function(){n.readyState===4&&(n.status<200||400<=n.status?this._chunkError():(this._start+=this._config.chunkSize||n.responseText.length,this._finished=!this._config.chunkSize||this._start>=(o=>(o=o.getResponseHeader("Content-Range"))!==null?parseInt(o.substring(o.lastIndexOf("/")+1)):-1)(n),this.parseChunk(n.responseText)))},this._chunkError=function(o){o=n.statusText||o,this._sendError(new Error(o))}}function ne(r){(r=r||{}).chunkSize||(r.chunkSize=g.LocalChunkSize),U.call(this,r);var n,o,f=typeof FileReader<"u";this.stream=function(h){this._input=h,o=h.slice||h.webkitSlice||h.mozSlice,f?((n=new FileReader).onload=ee(this._chunkLoaded,this),n.onerror=ee(this._chunkError,this)):n=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var h=this._input,_=(this._config.chunkSize&&(_=Math.min(this._start+this._config.chunkSize,this._input.size),h=o.call(h,this._start,_)),n.readAsText(h,this._config.encoding));f||this._chunkLoaded({target:{result:_}})},this._chunkLoaded=function(h){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(h.target.result)},this._chunkError=function(){this._sendError(n.error)}}function ue(r){var n;U.call(this,r=r||{}),this.stream=function(o){return n=o,this._nextChunk()},this._nextChunk=function(){var o,f;if(!this._finished)return o=this._config.chunkSize,n=o?(f=n.substring(0,o),n.substring(o)):(f=n,""),this._finished=!n,this.parseChunk(f)}}function de(r){U.call(this,r=r||{});var n=[],o=!0,f=!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(h){this._input=h,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){f&&n.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),n.length?this.parseChunk(n.shift()):o=!0},this._streamData=ee(function(h){try{n.push(typeof h=="string"?h:h.toString(this._config.encoding)),o&&(o=!1,this._checkIsFinished(),this.parseChunk(n.shift()))}catch(_){this._streamError(_)}},this),this._streamError=ee(function(h){this._streamCleanUp(),this._sendError(h)},this),this._streamEnd=ee(function(){this._streamCleanUp(),f=!0,this._streamData("")},this),this._streamCleanUp=ee(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function xe(r){var n,o,f,h,_=Math.pow(2,53),F=-_,V=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,K=/^((\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)))$/,b=this,I=0,p=0,z=!1,y=!1,E=[],d={data:[],errors:[],meta:{}};function D(S){return r.skipEmptyLines==="greedy"?S.join("").trim()==="":S.length===1&&S[0].length===0}function P(){if(d&&f&&(G("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+g.DefaultDelimiter+"'"),f=!1),r.skipEmptyLines&&(d.data=d.data.filter(function(m){return!D(m)})),j()){let m=function(A,$){v(r.transformHeader)&&(A=r.transformHeader(A,$)),E.push(A)};if(d)if(Array.isArray(d.data[0])){for(var S=0;j()&&S<d.data.length;S++)d.data[S].forEach(m);d.data.splice(0,1)}else d.data.forEach(m)}function x(m,A){for(var $=r.header?{}:[],C=0;C<m.length;C++){var T=C,R=m[C],R=((Q,w)=>(O=>(r.dynamicTypingFunction&&r.dynamicTyping[O]===void 0&&(r.dynamicTyping[O]=r.dynamicTypingFunction(O)),(r.dynamicTyping[O]||r.dynamicTyping)===!0))(Q)?w==="true"||w==="TRUE"||w!=="false"&&w!=="FALSE"&&((O=>{if(V.test(O)&&(O=parseFloat(O),F<O&&O<_))return 1})(w)?parseFloat(w):K.test(w)?new Date(w):w===""?null:w):w)(T=r.header?C>=E.length?"__parsed_extra":E[C]:T,R=r.transform?r.transform(R,T):R);T==="__parsed_extra"?($[T]=$[T]||[],$[T].push(R)):$[T]=R}return r.header&&(C>E.length?G("FieldMismatch","TooManyFields","Too many fields: expected "+E.length+" fields but parsed "+C,p+A):C<E.length&&G("FieldMismatch","TooFewFields","Too few fields: expected "+E.length+" fields but parsed "+C,p+A)),$}var L;d&&(r.header||r.dynamicTyping||r.transform)&&(L=1,!d.data.length||Array.isArray(d.data[0])?(d.data=d.data.map(x),L=d.data.length):d.data=x(d.data,0),r.header&&d.meta&&(d.meta.fields=E),p+=L)}function j(){return r.header&&E.length===0}function G(S,x,L,m){S={type:S,code:x,message:L},m!==void 0&&(S.row=m),d.errors.push(S)}v(r.step)&&(h=r.step,r.step=function(S){d=S,j()?P():(P(),d.data.length!==0&&(I+=S.data.length,r.preview&&I>r.preview?o.abort():(d.data=d.data[0],h(d,b))))}),this.parse=function(S,x,L){var m=r.quoteChar||'"',m=(r.newline||(r.newline=this.guessLineEndings(S,m)),f=!1,r.delimiter?v(r.delimiter)&&(r.delimiter=r.delimiter(S),d.meta.delimiter=r.delimiter):((m=((A,$,C,T,R)=>{var Q,w,O,te;R=R||[","," ","|",";",g.RECORD_SEP,g.UNIT_SEP];for(var ie=0;ie<R.length;ie++){for(var J,le=R[ie],q=0,X=0,M=0,H=(O=void 0,new ye({comments:T,delimiter:le,newline:$,preview:10}).parse(A)),Y=0;Y<H.data.length;Y++)C&&D(H.data[Y])?M++:(J=H.data[Y].length,X+=J,O===void 0?O=J:0<J&&(q+=Math.abs(J-O),O=J));0<H.data.length&&(X/=H.data.length-M),(w===void 0||q<=w)&&(te===void 0||te<X)&&1.99<X&&(w=q,Q=le,te=X)}return{successful:!!(r.delimiter=Q),bestDelimiter:Q}})(S,r.newline,r.skipEmptyLines,r.comments,r.delimitersToGuess)).successful?r.delimiter=m.bestDelimiter:(f=!0,r.delimiter=g.DefaultDelimiter),d.meta.delimiter=r.delimiter),we(r));return r.preview&&r.header&&m.preview++,n=S,o=new ye(m),d=o.parse(n,x,L),P(),z?{meta:{paused:!0}}:d||{meta:{paused:!1}}},this.paused=function(){return z},this.pause=function(){z=!0,o.abort(),n=v(r.chunk)?"":n.substring(o.getCharIndex())},this.resume=function(){b.streamer._halted?(z=!1,b.streamer.parseChunk(n,!0)):setTimeout(b.resume,3)},this.aborted=function(){return y},this.abort=function(){y=!0,o.abort(),d.meta.aborted=!0,v(r.complete)&&r.complete(d),n=""},this.guessLineEndings=function(A,m){A=A.substring(0,1048576);var m=new RegExp(ce(m)+"([^]*?)"+ce(m),"gm"),L=(A=A.replace(m,"")).split("\r"),m=A.split(`
`),A=1<m.length&&m[0].length<L[0].length;if(L.length===1||A)return`
`;for(var $=0,C=0;C<L.length;C++)L[C][0]===`
`&&$++;return $>=L.length/2?`\r
`:"\r"}}function ce(r){return r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ye(r){var n=(r=r||{}).delimiter,o=r.newline,f=r.comments,h=r.step,_=r.preview,F=r.fastMode,V=null,K=!1,b=r.quoteChar==null?'"':r.quoteChar,I=b;if(r.escapeChar!==void 0&&(I=r.escapeChar),(typeof n!="string"||-1<g.BAD_DELIMITERS.indexOf(n))&&(n=","),f===n)throw new Error("Comment character same as delimiter");f===!0?f="#":(typeof f!="string"||-1<g.BAD_DELIMITERS.indexOf(f))&&(f=!1),o!==`
`&&o!=="\r"&&o!==`\r
`&&(o=`
`);var p=0,z=!1;this.parse=function(y,E,d){if(typeof y!="string")throw new Error("Input must be a string");var D=y.length,P=n.length,j=o.length,G=f.length,S=v(h),x=[],L=[],m=[],A=p=0;if(!y)return q();if(F||F!==!1&&y.indexOf(b)===-1){for(var $=y.split(o),C=0;C<$.length;C++){if(m=$[C],p+=m.length,C!==$.length-1)p+=o.length;else if(d)return q();if(!f||m.substring(0,G)!==f){if(S){if(x=[],te(m.split(n)),X(),z)return q()}else te(m.split(n));if(_&&_<=C)return x=x.slice(0,_),q(!0)}}return q()}for(var T=y.indexOf(n,p),R=y.indexOf(o,p),Q=new RegExp(ce(I)+ce(b),"g"),w=y.indexOf(b,p);;)if(y[p]===b)for(w=p,p++;;){if((w=y.indexOf(b,w+1))===-1)return d||L.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:x.length,index:p}),J();if(w===D-1)return J(y.substring(p,w).replace(Q,b));if(b===I&&y[w+1]===I)w++;else if(b===I||w===0||y[w-1]!==I){T!==-1&&T<w+1&&(T=y.indexOf(n,w+1));var O=ie((R=R!==-1&&R<w+1?y.indexOf(o,w+1):R)===-1?T:Math.min(T,R));if(y.substr(w+1+O,P)===n){m.push(y.substring(p,w).replace(Q,b)),y[p=w+1+O+P]!==b&&(w=y.indexOf(b,p)),T=y.indexOf(n,p),R=y.indexOf(o,p);break}if(O=ie(R),y.substring(w+1+O,w+1+O+j)===o){if(m.push(y.substring(p,w).replace(Q,b)),le(w+1+O+j),T=y.indexOf(n,p),w=y.indexOf(b,p),S&&(X(),z))return q();if(_&&x.length>=_)return q(!0);break}L.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:x.length,index:p}),w++}}else if(f&&m.length===0&&y.substring(p,p+G)===f){if(R===-1)return q();p=R+j,R=y.indexOf(o,p),T=y.indexOf(n,p)}else if(T!==-1&&(T<R||R===-1))m.push(y.substring(p,T)),p=T+P,T=y.indexOf(n,p);else{if(R===-1)break;if(m.push(y.substring(p,R)),le(R+j),S&&(X(),z))return q();if(_&&x.length>=_)return q(!0)}return J();function te(M){x.push(M),A=p}function ie(M){var H=0;return H=M!==-1&&(M=y.substring(w+1,M))&&M.trim()===""?M.length:H}function J(M){return d||(M===void 0&&(M=y.substring(p)),m.push(M),p=D,te(m),S&&X()),q()}function le(M){p=M,te(m),m=[],R=y.indexOf(o,p)}function q(M){if(r.header&&!E&&x.length&&!K){var H=x[0],Y=Object.create(null),_e=new Set(H);let Te=!1;for(let se=0;se<H.length;se++){let Z=H[se];if(Y[Z=v(r.transformHeader)?r.transformHeader(Z,se):Z]){let he,Oe=Y[Z];for(;he=Z+"_"+Oe,Oe++,_e.has(he););_e.add(he),H[se]=he,Y[Z]++,Te=!0,(V=V===null?{}:V)[he]=Z}else Y[Z]=1,H[se]=Z;_e.add(Z)}Te&&console.warn("Duplicate headers found and renamed."),K=!0}return{data:x,errors:L,meta:{delimiter:n,linebreak:o,aborted:z,truncated:!!M,cursor:A+(E||0),renamedHeaders:V}}}function X(){h(q()),x=[],L=[]}},this.abort=function(){z=!0},this.getCharIndex=function(){return p}}function Qe(r){var n=r.data,o=l[n.workerId],f=!1;if(n.error)o.userError(n.error,n.file);else if(n.results&&n.results.data){var h={abort:function(){f=!0,Ce(n.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:ve,resume:ve};if(v(o.userStep)){for(var _=0;_<n.results.data.length&&(o.userStep({data:n.results.data[_],errors:n.results.errors,meta:n.results.meta},h),!f);_++);delete n.results}else v(o.userChunk)&&(o.userChunk(n.results,h,n.file),delete n.results)}n.finished&&!f&&Ce(n.workerId,n.results)}function Ce(r,n){var o=l[r];v(o.userComplete)&&o.userComplete(n),o.terminate(),delete l[r]}function ve(){throw new Error("Not implemented.")}function we(r){if(typeof r!="object"||r===null)return r;var n,o=Array.isArray(r)?[]:{};for(n in r)o[n]=we(r[n]);return o}function ee(r,n){return function(){r.apply(n,arguments)}}function v(r){return typeof r=="function"}return g.parse=function(r,n){var o=(n=n||{}).dynamicTyping||!1;if(v(o)&&(n.dynamicTypingFunction=o,o={}),n.dynamicTyping=o,n.transform=!!v(n.transform)&&n.transform,!n.worker||!g.WORKERS_SUPPORTED)return o=null,g.NODE_STREAM_INPUT,typeof r=="string"?(r=(f=>f.charCodeAt(0)!==65279?f:f.slice(1))(r),o=new(n.download?N:ue)(n)):r.readable===!0&&v(r.read)&&v(r.on)?o=new de(n):(i.File&&r instanceof File||r instanceof Object)&&(o=new ne(n)),o.stream(r);(o=(()=>{var f;return!!g.WORKERS_SUPPORTED&&(f=(()=>{var h=i.URL||i.webkitURL||null,_=s.toString();return g.BLOB_URL||(g.BLOB_URL=h.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; ","(",_,")();"],{type:"text/javascript"})))})(),(f=new i.Worker(f)).onmessage=Qe,f.id=k++,l[f.id]=f)})()).userStep=n.step,o.userChunk=n.chunk,o.userComplete=n.complete,o.userError=n.error,n.step=v(n.step),n.chunk=v(n.chunk),n.complete=v(n.complete),n.error=v(n.error),delete n.worker,o.postMessage({input:r,config:n,workerId:o.id})},g.unparse=function(r,n){var o=!1,f=!0,h=",",_=`\r
`,F='"',V=F+F,K=!1,b=null,I=!1,p=((()=>{if(typeof n=="object"){if(typeof n.delimiter!="string"||g.BAD_DELIMITERS.filter(function(E){return n.delimiter.indexOf(E)!==-1}).length||(h=n.delimiter),typeof n.quotes!="boolean"&&typeof n.quotes!="function"&&!Array.isArray(n.quotes)||(o=n.quotes),typeof n.skipEmptyLines!="boolean"&&typeof n.skipEmptyLines!="string"||(K=n.skipEmptyLines),typeof n.newline=="string"&&(_=n.newline),typeof n.quoteChar=="string"&&(F=n.quoteChar),typeof n.header=="boolean"&&(f=n.header),Array.isArray(n.columns)){if(n.columns.length===0)throw new Error("Option columns is empty");b=n.columns}n.escapeChar!==void 0&&(V=n.escapeChar+F),n.escapeFormulae instanceof RegExp?I=n.escapeFormulae:typeof n.escapeFormulae=="boolean"&&n.escapeFormulae&&(I=/^[=+\-@\t\r].*$/)}})(),new RegExp(ce(F),"g"));if(typeof r=="string"&&(r=JSON.parse(r)),Array.isArray(r)){if(!r.length||Array.isArray(r[0]))return z(null,r,K);if(typeof r[0]=="object")return z(b||Object.keys(r[0]),r,K)}else if(typeof r=="object")return typeof r.data=="string"&&(r.data=JSON.parse(r.data)),Array.isArray(r.data)&&(r.fields||(r.fields=r.meta&&r.meta.fields||b),r.fields||(r.fields=Array.isArray(r.data[0])?r.fields:typeof r.data[0]=="object"?Object.keys(r.data[0]):[]),Array.isArray(r.data[0])||typeof r.data[0]=="object"||(r.data=[r.data])),z(r.fields||[],r.data||[],K);throw new Error("Unable to serialize unrecognized input");function z(E,d,D){var P="",j=(typeof E=="string"&&(E=JSON.parse(E)),typeof d=="string"&&(d=JSON.parse(d)),Array.isArray(E)&&0<E.length),G=!Array.isArray(d[0]);if(j&&f){for(var S=0;S<E.length;S++)0<S&&(P+=h),P+=y(E[S],S);0<d.length&&(P+=_)}for(var x=0;x<d.length;x++){var L=(j?E:d[x]).length,m=!1,A=j?Object.keys(d[x]).length===0:d[x].length===0;if(D&&!j&&(m=D==="greedy"?d[x].join("").trim()==="":d[x].length===1&&d[x][0].length===0),D==="greedy"&&j){for(var $=[],C=0;C<L;C++){var T=G?E[C]:C;$.push(d[x][T])}m=$.join("").trim()===""}if(!m){for(var R=0;R<L;R++){0<R&&!A&&(P+=h);var Q=j&&G?E[R]:R;P+=y(d[x][Q],R)}x<d.length-1&&(!D||0<L&&!A)&&(P+=_)}}return P}function y(E,d){var D,P;return E==null?"":E.constructor===Date?JSON.stringify(E).slice(1,25):(P=!1,I&&typeof E=="string"&&I.test(E)&&(E="'"+E,P=!0),D=E.toString().replace(p,V),(P=P||o===!0||typeof o=="function"&&o(E,d)||Array.isArray(o)&&o[d]||((j,G)=>{for(var S=0;S<G.length;S++)if(-1<j.indexOf(G[S]))return!0;return!1})(D,g.BAD_DELIMITERS)||-1<D.indexOf(h)||D.charAt(0)===" "||D.charAt(D.length-1)===" ")?F+D+F:D)}},g.RECORD_SEP="",g.UNIT_SEP="",g.BYTE_ORDER_MARK="\uFEFF",g.BAD_DELIMITERS=["\r",`
`,'"',g.BYTE_ORDER_MARK],g.WORKERS_SUPPORTED=!a&&!!i.Worker,g.NODE_STREAM_INPUT=1,g.LocalChunkSize=10485760,g.RemoteChunkSize=5242880,g.DefaultDelimiter=",",g.Parser=ye,g.ParserHandle=xe,g.NetworkStreamer=N,g.FileStreamer=ne,g.StringStreamer=ue,g.ReadableStreamStreamer=de,i.jQuery&&((u=i.jQuery).fn.parse=function(r){var n=r.config||{},o=[];return this.each(function(_){if(!(u(this).prop("tagName").toUpperCase()==="INPUT"&&u(this).attr("type").toLowerCase()==="file"&&i.FileReader)||!this.files||this.files.length===0)return!0;for(var F=0;F<this.files.length;F++)o.push({file:this.files[F],inputElem:this,instanceConfig:u.extend({},n)})}),f(),this;function f(){if(o.length===0)v(r.complete)&&r.complete();else{var _,F,V,K,b=o[0];if(v(r.before)){var I=r.before(b.file,b.inputElem);if(typeof I=="object"){if(I.action==="abort")return _="AbortError",F=b.file,V=b.inputElem,K=I.reason,void(v(r.error)&&r.error({name:_},F,V,K));if(I.action==="skip")return void h();typeof I.config=="object"&&(b.instanceConfig=u.extend(b.instanceConfig,I.config))}else if(I==="skip")return void h()}var p=b.instanceConfig.complete;b.instanceConfig.complete=function(z){v(p)&&p(z,b.file,b.inputElem),h()},g.parse(b.file,b.instanceConfig)}}function h(){o.splice(0,1),f()}}),c&&(i.onmessage=function(r){r=r.data,g.WORKER_ID===void 0&&r&&(g.WORKER_ID=r.workerId),typeof r.input=="string"?i.postMessage({workerId:g.WORKER_ID,results:g.parse(r.input,r.config),finished:!0}):(i.File&&r.input instanceof File||r.input instanceof Object)&&(r=g.parse(r.input,r.config))&&i.postMessage({workerId:g.WORKER_ID,results:r,finished:!0})}),(N.prototype=Object.create(U.prototype)).constructor=N,(ne.prototype=Object.create(U.prototype)).constructor=ne,(ue.prototype=Object.create(ue.prototype)).constructor=ue,(de.prototype=Object.create(U.prototype)).constructor=de,g})})(Ue);var Ze=Ue.exports;const Qt=Xe(Ze);function Ye(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const s=document.implementation.createHTMLDocument(),i=s.createElement("base"),u=s.createElement("a");return s.head.appendChild(i),s.body.appendChild(u),t&&(i.href=t),u.href=e,u.href}const Ne=(()=>{let e=0;const t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function re(e){const t=[];for(let s=0,i=e.length;s<i;s++)t.push(e[s]);return t}let ae=null;function Me(e={}){return ae||(e.includeStyleProperties?(ae=e.includeStyleProperties,ae):(ae=re(window.getComputedStyle(document.documentElement)),ae))}function ge(e,t){const i=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return i?parseFloat(i.replace("px","")):0}function et(e){const t=ge(e,"border-left-width"),s=ge(e,"border-right-width");return e.clientWidth+t+s}function tt(e){const t=ge(e,"border-top-width"),s=ge(e,"border-bottom-width");return e.clientHeight+t+s}function Se(e,t={}){const s=t.width||et(e),i=t.height||tt(e);return{width:s,height:i}}function rt(){let e,t;try{t=process}catch{}const s=t&&t.env?t.env.devicePixelRatio:null;return s&&(e=parseInt(s,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}const W=16384;function nt(e){(e.width>W||e.height>W)&&(e.width>W&&e.height>W?e.width>e.height?(e.height*=W/e.width,e.width=W):(e.width*=W/e.height,e.height=W):e.width>W?(e.height*=W/e.width,e.width=W):(e.width*=W/e.height,e.height=W))}function it(e,t={}){return e.toBlob?new Promise(s=>{e.toBlob(s,t.type?t.type:"image/png",t.quality?t.quality:1)}):new Promise(s=>{const i=window.atob(e.toDataURL(t.type?t.type:void 0,t.quality?t.quality:void 0).split(",")[1]),u=i.length,a=new Uint8Array(u);for(let c=0;c<u;c+=1)a[c]=i.charCodeAt(c);s(new Blob([a],{type:t.type?t.type:"image/png"}))})}function pe(e){return new Promise((t,s)=>{const i=new Image;i.onload=()=>{i.decode().then(()=>{requestAnimationFrame(()=>t(i))})},i.onerror=s,i.crossOrigin="anonymous",i.decoding="async",i.src=e})}async function st(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function at(e,t,s){const i="http://www.w3.org/2000/svg",u=document.createElementNS(i,"svg"),a=document.createElementNS(i,"foreignObject");return u.setAttribute("width",`${t}`),u.setAttribute("height",`${s}`),u.setAttribute("viewBox",`0 0 ${t} ${s}`),a.setAttribute("width","100%"),a.setAttribute("height","100%"),a.setAttribute("x","0"),a.setAttribute("y","0"),a.setAttribute("externalResourcesRequired","true"),u.appendChild(a),a.appendChild(e),st(u)}const B=(e,t)=>{if(e instanceof t)return!0;const s=Object.getPrototypeOf(e);return s===null?!1:s.constructor.name===t.name||B(s,t)};function ot(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function ut(e,t){return Me(t).map(s=>{const i=e.getPropertyValue(s),u=e.getPropertyPriority(s);return`${s}: ${i}${u?" !important":""};`}).join(" ")}function ct(e,t,s,i){const u=`.${e}:${t}`,a=s.cssText?ot(s):ut(s,i);return document.createTextNode(`${u}{${a}}`)}function Ie(e,t,s,i){const u=window.getComputedStyle(e,s),a=u.getPropertyValue("content");if(a===""||a==="none")return;const c=Ne();try{t.className=`${t.className} ${c}`}catch{return}const l=document.createElement("style");l.appendChild(ct(c,s,u,i)),t.appendChild(l)}function lt(e,t,s){Ie(e,t,":before",s),Ie(e,t,":after",s)}const Le="application/font-woff",Ae="image/jpeg",ht={woff:Le,woff2:Le,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:Ae,jpeg:Ae,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function ft(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function Re(e){const t=ft(e).toLowerCase();return ht[t]||""}function dt(e){return e.split(/,/)[1]}function Ee(e){return e.search(/^(data:)/)!==-1}function gt(e,t){return`data:${t};base64,${e}`}async function je(e,t,s){const i=await fetch(e,t);if(i.status===404)throw new Error(`Resource "${i.url}" not found`);const u=await i.blob();return new Promise((a,c)=>{const l=new FileReader;l.onerror=c,l.onloadend=()=>{try{a(s({res:i,result:l.result}))}catch(k){c(k)}},l.readAsDataURL(u)})}const be={};function pt(e,t,s){let i=e.replace(/\?.*/,"");return s&&(i=e),/ttf|otf|eot|woff2?/i.test(i)&&(i=i.replace(/.*\//,"")),t?`[${t}]${i}`:i}async function ke(e,t,s){const i=pt(e,t,s.includeQueryParams);if(be[i]!=null)return be[i];s.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let u;try{const a=await je(e,s.fetchRequestInit,({res:c,result:l})=>(t||(t=c.headers.get("Content-Type")||""),dt(l)));u=gt(a,t)}catch(a){u=s.imagePlaceholder||"";let c=`Failed to fetch resource: ${e}`;a&&(c=typeof a=="string"?a:a.message),c&&console.warn(c)}return be[i]=u,u}async function mt(e){const t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):pe(t)}async function yt(e,t){if(e.currentSrc){const a=document.createElement("canvas"),c=a.getContext("2d");a.width=e.clientWidth,a.height=e.clientHeight,c==null||c.drawImage(e,0,0,a.width,a.height);const l=a.toDataURL();return pe(l)}const s=e.poster,i=Re(s),u=await ke(s,i,t);return pe(u)}async function wt(e,t){var s;try{if(!((s=e==null?void 0:e.contentDocument)===null||s===void 0)&&s.body)return await me(e.contentDocument.body,t,!0)}catch{}return e.cloneNode(!1)}async function _t(e,t){return B(e,HTMLCanvasElement)?mt(e):B(e,HTMLVideoElement)?yt(e,t):B(e,HTMLIFrameElement)?wt(e,t):e.cloneNode(ze(e))}const bt=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT",ze=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SVG";async function Et(e,t,s){var i,u;if(ze(t))return t;let a=[];return bt(e)&&e.assignedNodes?a=re(e.assignedNodes()):B(e,HTMLIFrameElement)&&(!((i=e.contentDocument)===null||i===void 0)&&i.body)?a=re(e.contentDocument.body.childNodes):a=re(((u=e.shadowRoot)!==null&&u!==void 0?u:e).childNodes),a.length===0||B(e,HTMLVideoElement)||await a.reduce((c,l)=>c.then(()=>me(l,s)).then(k=>{k&&t.appendChild(k)}),Promise.resolve()),t}function St(e,t,s){const i=t.style;if(!i)return;const u=window.getComputedStyle(e);u.cssText?(i.cssText=u.cssText,i.transformOrigin=u.transformOrigin):Me(s).forEach(a=>{let c=u.getPropertyValue(a);a==="font-size"&&c.endsWith("px")&&(c=`${Math.floor(parseFloat(c.substring(0,c.length-2)))-.1}px`),B(e,HTMLIFrameElement)&&a==="display"&&c==="inline"&&(c="block"),a==="d"&&t.getAttribute("d")&&(c=`path(${t.getAttribute("d")})`),i.setProperty(a,c,u.getPropertyPriority(a))})}function Rt(e,t){B(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),B(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function kt(e,t){if(B(e,HTMLSelectElement)){const s=t,i=Array.from(s.children).find(u=>e.value===u.getAttribute("value"));i&&i.setAttribute("selected","")}}function xt(e,t,s){return B(t,Element)&&(St(e,t,s),lt(e,t,s),Rt(e,t),kt(e,t)),t}async function Ct(e,t){const s=e.querySelectorAll?e.querySelectorAll("use"):[];if(s.length===0)return e;const i={};for(let a=0;a<s.length;a++){const l=s[a].getAttribute("xlink:href");if(l){const k=e.querySelector(l),g=document.querySelector(l);!k&&g&&!i[l]&&(i[l]=await me(g,t,!0))}}const u=Object.values(i);if(u.length){const a="http://www.w3.org/1999/xhtml",c=document.createElementNS(a,"svg");c.setAttribute("xmlns",a),c.style.position="absolute",c.style.width="0",c.style.height="0",c.style.overflow="hidden",c.style.display="none";const l=document.createElementNS(a,"defs");c.appendChild(l);for(let k=0;k<u.length;k++)l.appendChild(u[k]);e.appendChild(c)}return e}async function me(e,t,s){return!s&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(i=>_t(i,t)).then(i=>Et(e,i,t)).then(i=>xt(e,i,t)).then(i=>Ct(i,t))}const qe=/url\((['"]?)([^'"]+?)\1\)/g,vt=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,Tt=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function Ot(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function It(e){const t=[];return e.replace(qe,(s,i,u)=>(t.push(u),s)),t.filter(s=>!Ee(s))}async function Lt(e,t,s,i,u){try{const a=s?Ye(t,s):t,c=Re(t);let l;return u||(l=await ke(a,c,i)),e.replace(Ot(t),`$1${l}$3`)}catch{}return e}function At(e,{preferredFontFormat:t}){return t?e.replace(Tt,s=>{for(;;){const[i,,u]=vt.exec(s)||[];if(!u)return"";if(u===t)return`src: ${i};`}}):e}function He(e){return e.search(qe)!==-1}async function Be(e,t,s){if(!He(e))return e;const i=At(e,s);return It(i).reduce((a,c)=>a.then(l=>Lt(l,c,t,s)),Promise.resolve(i))}async function oe(e,t,s){var i;const u=(i=t.style)===null||i===void 0?void 0:i.getPropertyValue(e);if(u){const a=await Be(u,null,s);return t.style.setProperty(e,a,t.style.getPropertyPriority(e)),!0}return!1}async function Pt(e,t){await oe("background",e,t)||await oe("background-image",e,t),await oe("mask",e,t)||await oe("-webkit-mask",e,t)||await oe("mask-image",e,t)||await oe("-webkit-mask-image",e,t)}async function Ft(e,t){const s=B(e,HTMLImageElement);if(!(s&&!Ee(e.src))&&!(B(e,SVGImageElement)&&!Ee(e.href.baseVal)))return;const i=s?e.src:e.href.baseVal,u=await ke(i,Re(i),t);await new Promise((a,c)=>{e.onload=a,e.onerror=t.onImageErrorHandler?(...k)=>{try{a(t.onImageErrorHandler(...k))}catch(g){c(g)}}:c;const l=e;l.decode&&(l.decode=a),l.loading==="lazy"&&(l.loading="eager"),s?(e.srcset="",e.src=u):e.href.baseVal=u})}async function Dt(e,t){const i=re(e.childNodes).map(u=>We(u,t));await Promise.all(i).then(()=>e)}async function We(e,t){B(e,Element)&&(await Pt(e,t),await Ft(e,t),await Dt(e,t))}function $t(e,t){const{style:s}=e;t.backgroundColor&&(s.backgroundColor=t.backgroundColor),t.width&&(s.width=`${t.width}px`),t.height&&(s.height=`${t.height}px`);const i=t.style;return i!=null&&Object.keys(i).forEach(u=>{s[u]=i[u]}),e}const Pe={};async function Fe(e){let t=Pe[e];if(t!=null)return t;const i=await(await fetch(e)).text();return t={url:e,cssText:i},Pe[e]=t,t}async function De(e,t){let s=e.cssText;const i=/url\(["']?([^"')]+)["']?\)/g,a=(s.match(/url\([^)]+\)/g)||[]).map(async c=>{let l=c.replace(i,"$1");return l.startsWith("https://")||(l=new URL(l,e.url).href),je(l,t.fetchRequestInit,({result:k})=>(s=s.replace(c,`url(${k})`),[c,k]))});return Promise.all(a).then(()=>s)}function $e(e){if(e==null)return[];const t=[],s=/(\/\*[\s\S]*?\*\/)/gi;let i=e.replace(s,"");const u=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const k=u.exec(i);if(k===null)break;t.push(k[0])}i=i.replace(u,"");const a=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,c="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",l=new RegExp(c,"gi");for(;;){let k=a.exec(i);if(k===null){if(k=l.exec(i),k===null)break;a.lastIndex=l.lastIndex}else l.lastIndex=a.lastIndex;t.push(k[0])}return t}async function Ut(e,t){const s=[],i=[];return e.forEach(u=>{if("cssRules"in u)try{re(u.cssRules||[]).forEach((a,c)=>{if(a.type===CSSRule.IMPORT_RULE){let l=c+1;const k=a.href,g=Fe(k).then(U=>De(U,t)).then(U=>$e(U).forEach(N=>{try{u.insertRule(N,N.startsWith("@import")?l+=1:u.cssRules.length)}catch(ne){console.error("Error inserting rule from remote css",{rule:N,error:ne})}})).catch(U=>{console.error("Error loading remote css",U.toString())});i.push(g)}})}catch(a){const c=e.find(l=>l.href==null)||document.styleSheets[0];u.href!=null&&i.push(Fe(u.href).then(l=>De(l,t)).then(l=>$e(l).forEach(k=>{c.insertRule(k,c.cssRules.length)})).catch(l=>{console.error("Error loading remote stylesheet",l)})),console.error("Error inlining remote css file",a)}}),Promise.all(i).then(()=>(e.forEach(u=>{if("cssRules"in u)try{re(u.cssRules||[]).forEach(a=>{s.push(a)})}catch(a){console.error(`Error while reading CSS rules from ${u.href}`,a)}}),s))}function Mt(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>He(t.style.getPropertyValue("src")))}async function jt(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const s=re(e.ownerDocument.styleSheets),i=await Ut(s,t);return Mt(i)}function Ve(e){return e.trim().replace(/["']/g,"")}function zt(e){const t=new Set;function s(i){(i.style.fontFamily||getComputedStyle(i).fontFamily).split(",").forEach(a=>{t.add(Ve(a))}),Array.from(i.children).forEach(a=>{a instanceof HTMLElement&&s(a)})}return s(e),t}async function Ke(e,t){const s=await jt(e,t),i=zt(e);return(await Promise.all(s.filter(a=>i.has(Ve(a.style.fontFamily))).map(a=>{const c=a.parentStyleSheet?a.parentStyleSheet.href:null;return Be(a.cssText,c,t)}))).join(`
`)}async function qt(e,t){const s=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await Ke(e,t);if(s){const i=document.createElement("style"),u=document.createTextNode(s);i.appendChild(u),e.firstChild?e.insertBefore(i,e.firstChild):e.appendChild(i)}}async function Ge(e,t={}){const{width:s,height:i}=Se(e,t),u=await me(e,t,!0);return await qt(u,t),await We(u,t),$t(u,t),await at(u,s,i)}async function fe(e,t={}){const{width:s,height:i}=Se(e,t),u=await Ge(e,t),a=await pe(u),c=document.createElement("canvas"),l=c.getContext("2d"),k=t.pixelRatio||rt(),g=t.canvasWidth||s,U=t.canvasHeight||i;return c.width=g*k,c.height=U*k,t.skipAutoScale||nt(c),c.style.width=`${g}`,c.style.height=`${U}`,t.backgroundColor&&(l.fillStyle=t.backgroundColor,l.fillRect(0,0,c.width,c.height)),l.drawImage(a,0,0,c.width,c.height),c}async function Ht(e,t={}){const{width:s,height:i}=Se(e,t);return(await fe(e,t)).getContext("2d").getImageData(0,0,s,i).data}async function Bt(e,t={}){return(await fe(e,t)).toDataURL()}async function Wt(e,t={}){return(await fe(e,t)).toDataURL("image/jpeg",t.quality||1)}async function Vt(e,t={}){const s=await fe(e,t);return await it(s)}async function Kt(e,t={}){return Ke(e,t)}const Jt=Object.freeze(Object.defineProperty({__proto__:null,getFontEmbedCSS:Kt,toBlob:Vt,toCanvas:fe,toJpeg:Wt,toPixelData:Ht,toPng:Bt,toSvg:Ge},Symbol.toStringTag,{value:"Module"}));export{Qt as P,Jt as i};